diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/WTypes.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/WTypes.Idl new file mode 100644 index 0000000000000000000000000000000000000000..7f4a102f3c75991ba1ea6020e51713ecf4a3f1f2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/WTypes.Idl @@ -0,0 +1,970 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: wtypes.idl +// +// Contents: This interface definition contains typedefs for remotable +// data types. +//-------------------------------------------------------------------------- + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("#if ( _MSC_VER >= 1020 )") +cpp_quote("#pragma once") +cpp_quote("#endif") + +import "wtypesbase.idl"; + +cpp_quote("#if _MSC_VER >= 1200") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4820) /* padding added after data member */") +cpp_quote("#endif") + +[ uuid(D3980A60-910C-1068-9341-00DD010F2F1C), + version(0.1), pointer_default(unique) ] + +interface IWinTypes +{ + +typedef struct tagRemHGLOBAL +{ + LONG fNullHGlobal; + ULONG cbData; + [size_is(cbData)] byte data[]; +} RemHGLOBAL; + +typedef struct tagRemHMETAFILEPICT +{ + LONG mm; + LONG xExt; + LONG yExt; + ULONG cbData; + [size_is(cbData)] byte data[]; +} RemHMETAFILEPICT; + + +typedef struct tagRemHENHMETAFILE +{ + ULONG cbData; + [size_is(cbData)] byte data[]; +} RemHENHMETAFILE; + +typedef struct tagRemHBITMAP +{ + ULONG cbData; + [size_is(cbData)] byte data[]; +} RemHBITMAP; + +typedef struct tagRemHPALETTE +{ + ULONG cbData; + [size_is(cbData)] byte data[]; +} RemHPALETTE; + +typedef struct tagRemBRUSH +{ + ULONG cbData; + [size_is(cbData)] byte data[]; +} RemHBRUSH; + +cpp_quote("#if !defined(_WIN32) && !defined(_MPPC_)" ) +cpp_quote("// The following code is for Win16 only") + +cpp_quote("#ifndef WINAPI // If not included with 3.1 headers...") + +cpp_quote("#define FAR _far") +cpp_quote("#define PASCAL _pascal") +cpp_quote("#define CDECL _cdecl") + +cpp_quote("#define VOID void") +cpp_quote("#define WINAPI FAR PASCAL") +cpp_quote("#define CALLBACK FAR PASCAL") + + +cpp_quote("#ifndef FALSE") +cpp_quote("#define FALSE 0") +cpp_quote("#define TRUE 1") +cpp_quote("#endif // !FALSE") + +cpp_quote("#ifndef _BYTE_DEFINED") +cpp_quote("#define _BYTE_DEFINED") +cpp_quote("typedef byte BYTE;") +cpp_quote("#endif // !_BYTE_DEFINED") + +cpp_quote("#ifndef _WORD_DEFINED") +cpp_quote("#define _WORD_DEFINED") +cpp_quote("typedef unsigned short WORD;") +cpp_quote("#endif // !_WORD_DEFINED") + +cpp_quote("typedef unsigned int UINT;") +cpp_quote("typedef int INT;") +cpp_quote("typedef long BOOL;") + +cpp_quote("#ifndef _LONG_DEFINED") +cpp_quote("#define _LONG_DEFINED") +cpp_quote("typedef long LONG;") +cpp_quote("#endif // !_LONG_DEFINED") + +cpp_quote("#ifndef _WPARAM_DEFINED") +cpp_quote("#define _WPARAM_DEFINED") +typedef UINT_PTR WPARAM; +cpp_quote("#endif // _WPARAM_DEFINED") + +cpp_quote("#ifndef _DWORD_DEFINED") +cpp_quote("#define _DWORD_DEFINED") +cpp_quote("typedef unsigned long DWORD;") +cpp_quote("#endif // !_DWORD_DEFINED") + +cpp_quote("#ifndef _LPARAM_DEFINED") +cpp_quote("#define _LPARAM_DEFINED") +typedef LONG_PTR LPARAM; +cpp_quote("#endif // !_LPARAM_DEFINED") + +cpp_quote("#ifndef _LRESULT_DEFINED") +cpp_quote("#define _LRESULT_DEFINED") +typedef LONG_PTR LRESULT; +cpp_quote("#endif // !_LRESULT_DEFINED") + +cpp_quote("typedef void * HANDLE;") +#define DECLARE_WIREM_HANDLE(name) \ + typedef [wire_marshal(wire ## name)] void * name +#define DECLARE_HANDLE(name) typedef void * name + +DECLARE_HANDLE(HMODULE); +DECLARE_HANDLE(HINSTANCE); +DECLARE_HANDLE(HTASK); +DECLARE_HANDLE(HKEY); + +DECLARE_HANDLE(HDESK); + +DECLARE_HANDLE(HMF); +DECLARE_HANDLE(HEMF); + +DECLARE_HANDLE(HPEN); +DECLARE_HANDLE(HRSRC); +DECLARE_HANDLE(HSTR); +DECLARE_HANDLE(HWINSTA); +DECLARE_HANDLE(HKL); +DECLARE_HANDLE(HGDIOBJ); + +typedef HANDLE HDWP; + +cpp_quote("#ifndef _HFILE_DEFINED") +cpp_quote("#define _HFILE_DEFINED") +typedef INT HFILE; /* Polymorphic with C runtime file handle type */ +cpp_quote("#endif // !_HFILE_DEFINED") + + +cpp_quote("#ifndef _LPWORD_DEFINED") +cpp_quote("#define _LPWORD_DEFINED") +cpp_quote("typedef WORD *LPWORD;") +cpp_quote("#endif // !_LPWORD_DEFINED") + + +cpp_quote("#ifndef _LPDWORD_DEFINED") +cpp_quote("#define _LPDWORD_DEFINED") +cpp_quote("typedef DWORD *LPDWORD;") +cpp_quote("#endif // !_LPDWORD_DEFINED") + + +cpp_quote("typedef char CHAR;") +cpp_quote("typedef CHAR *LPSTR;") +cpp_quote("typedef const CHAR *LPCSTR;") + + +cpp_quote("#ifndef _WCHAR_DEFINED") +cpp_quote("#define _WCHAR_DEFINED") +cpp_quote("typedef wchar_t WCHAR;") +cpp_quote("typedef WCHAR TCHAR;") +cpp_quote("#endif // !_WCHAR_DEFINED") + +cpp_quote("typedef WCHAR *LPWSTR;") + + +cpp_quote("typedef TCHAR *LPTSTR;") + +cpp_quote("typedef const WCHAR *LPCWSTR;") +cpp_quote("typedef const TCHAR *LPCTSTR;") + + +cpp_quote("#ifndef _COLORREF_DEFINED") +cpp_quote("#define _COLORREF_DEFINED") +typedef DWORD COLORREF; +cpp_quote("#endif // !_COLORREF_DEFINED") + +cpp_quote("#ifndef _LPCOLORREF_DEFINED") +cpp_quote("#define _LPCOLORREF_DEFINED") +typedef DWORD *LPCOLORREF; +cpp_quote("#endif // !_LPCOLORREF_DEFINED") + + +cpp_quote("typedef HANDLE *LPHANDLE;") + +//typedefs for remotable types from wingdi.h + +typedef struct _RECTL +{ + LONG left; + LONG top; + LONG right; + LONG bottom; +} RECTL, *PRECTL, *LPRECTL; + + +typedef struct tagPOINT +{ + LONG x; + LONG y; +} POINT, *PPOINT, *LPPOINT; + +typedef struct _POINTL +{ + LONG x; + LONG y; +} POINTL, *PPOINTL; + + +cpp_quote("#ifndef WIN16") +typedef struct tagSIZE +{ + LONG cx; + LONG cy; +} SIZE, *PSIZE, *LPSIZE; +cpp_quote("#else // WIN16") +cpp_quote("typedef struct tagSIZE") +cpp_quote("{") +cpp_quote(" INT cx;") +cpp_quote(" INT cy;") +cpp_quote("} SIZE, *PSIZE, *LPSIZE;") +cpp_quote("#endif // WIN16") + + +typedef struct tagSIZEL +{ + LONG cx; + LONG cy; +} SIZEL, *PSIZEL, *LPSIZEL; + + +cpp_quote("#endif //WINAPI") +cpp_quote("#endif //!WIN32 && !MPPC") + + +cpp_quote("#ifndef _PALETTEENTRY_DEFINED") +cpp_quote("#define _PALETTEENTRY_DEFINED") + +typedef struct tagPALETTEENTRY { + BYTE peRed; + BYTE peGreen; + BYTE peBlue; + BYTE peFlags; +} PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY; + +cpp_quote("#endif // !_PALETTEENTRY_DEFINED") + +// Logical Palette +cpp_quote("#ifndef _LOGPALETTE_DEFINED") +cpp_quote("#define _LOGPALETTE_DEFINED") + +typedef struct tagLOGPALETTE { + WORD palVersion; + WORD palNumEntries; + [size_is(palNumEntries)] PALETTEENTRY palPalEntry[]; +} LOGPALETTE, *PLOGPALETTE, *LPLOGPALETTE; + +cpp_quote("#endif // !_LOGPALETTE_DEFINED") + +// This block contains types that are normally defined by the nt sdk in WINDEF.H +// but we need them here for definitions that follow in this file. If WINDEF.H +// hasn't been included then we need to define them now so that WTYPES.H +// will compile. +cpp_quote("#ifndef _WINDEF_") +typedef const RECTL *LPCRECTL; + +typedef struct tagRECT +{ + LONG left; + LONG top; + LONG right; + LONG bottom; +} RECT, *PRECT, *LPRECT; +typedef const RECT *LPCRECT; + +cpp_quote("#endif //_WINDEF_") + +//The following typedefs are used internally by MIDL. +cpp_quote("#if 0") + /* MIDL 2.0+ definitions */ + typedef FMTID *REFFMTID; +cpp_quote("#endif // 0") + +/************************* Misc types ***********************************/ + +// Common typdefs used in API paramaters, gleamed from compobj.h + +// For IRunningObjectTable::Register +cpp_quote("#ifndef _ROTFLAGS_DEFINED") +cpp_quote("#define _ROTFLAGS_DEFINED") +cpp_quote("#define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x1") +cpp_quote("#define ROTFLAGS_ALLOWANYCLIENT 0x2") +cpp_quote("#endif // !_ROTFLAGS_DEFINED") +// Maximum size of comparison buffer for IROTData::GetComparisonData +cpp_quote("#ifndef _ROT_COMPARE_MAX_DEFINED") +cpp_quote("#define _ROT_COMPARE_MAX_DEFINED") +cpp_quote("#define ROT_COMPARE_MAX 2048") +cpp_quote("#endif // !_ROT_COMPARE_MAX_DEFINED") + +// +// Common typedefs for paramaters used in data view API's, gleamed +// from dvobj.h +// + +// Data/View aspect; specifies the desired aspect of the object when +// drawing or getting data. +typedef enum tagDVASPECT +{ + DVASPECT_CONTENT = 1, + DVASPECT_THUMBNAIL = 2, + DVASPECT_ICON = 4, + DVASPECT_DOCPRINT = 8 +} DVASPECT; + +/****** Storage types *************************************************/ + + +/* Storage commit types */ +typedef enum tagSTGC +{ + STGC_DEFAULT = 0, + STGC_OVERWRITE = 1, + STGC_ONLYIFCURRENT = 2, + STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4, + STGC_CONSOLIDATE = 8 +} STGC; + + +typedef enum tagSTGMOVE +{ + STGMOVE_MOVE = 0, + STGMOVE_COPY = 1, + STGMOVE_SHALLOWCOPY = 2 +} STGMOVE; + +typedef enum tagSTATFLAG +{ + STATFLAG_DEFAULT = 0, + STATFLAG_NONAME = 1, + STATFLAG_NOOPEN = 2 +} STATFLAG; + + +typedef [context_handle] void *HCONTEXT; + +/****** Critical Section Wrappers ***********************************/ + + +/* if not already picked up from olenls.h */ +cpp_quote("#ifndef _LCID_DEFINED") +cpp_quote("#define _LCID_DEFINED") +typedef DWORD LCID; +cpp_quote("#endif // !_LCID_DEFINED") + +cpp_quote("#ifndef _LANGID_DEFINED") +cpp_quote("#define _LANGID_DEFINED") +typedef USHORT LANGID; +cpp_quote("#endif // !_LANGID_DEFINED") + +// ######################################################################### +// +// Constants for the call context +// + +const ULONG WDT_INPROC_CALL = 0x48746457; +const ULONG WDT_REMOTE_CALL = 0x52746457; +const ULONG WDT_INPROC64_CALL = 0x50746457; + + +// ######################################################################### +// +// CLIPFORMAT +// + +typedef union _userCLIPFORMAT switch(LONG fContext) u +{ + case WDT_INPROC_CALL: DWORD dwValue; + case WDT_REMOTE_CALL: [string] wchar_t * pwszName; +} userCLIPFORMAT; + +typedef [unique] userCLIPFORMAT * wireCLIPFORMAT; + +typedef [wire_marshal(wireCLIPFORMAT)] WORD CLIPFORMAT; + + +// ######################################################################### +// +// Good for most of the gdi handles. + +typedef union _GDI_NONREMOTE switch( LONG fContext ) u +{ + case WDT_INPROC_CALL: LONG hInproc; + case WDT_REMOTE_CALL: DWORD_BLOB *hRemote; +} GDI_NONREMOTE; + +// ######################################################################### +// +// HGLOBAL +// +// A global may be Null or may be non-NULL with 0 length. + +typedef union _userHGLOBAL switch( LONG fContext ) u +{ + case WDT_INPROC_CALL: LONG hInproc; + case WDT_REMOTE_CALL: FLAGGED_BYTE_BLOB * hRemote; + case WDT_INPROC64_CALL: __int64 hInproc64; +} userHGLOBAL; + +typedef [unique] userHGLOBAL * wireHGLOBAL; + +// ######################################################################### +// +// HMETAFILE +// + +typedef union _userHMETAFILE switch( LONG fContext ) u +{ + case WDT_INPROC_CALL: LONG hInproc; + case WDT_REMOTE_CALL: BYTE_BLOB * hRemote; + case WDT_INPROC64_CALL: __int64 hInproc64; +} userHMETAFILE; + +// ######################################################################### +// +// HMETAFILEPICT +// +typedef struct _remoteMETAFILEPICT +{ + LONG mm; + LONG xExt; + LONG yExt; + userHMETAFILE * hMF; +} remoteMETAFILEPICT; + +typedef union _userHMETAFILEPICT switch( LONG fContext ) u +{ + case WDT_INPROC_CALL: LONG hInproc; + case WDT_REMOTE_CALL: remoteMETAFILEPICT* hRemote; + case WDT_INPROC64_CALL: __int64 hInproc64; +} userHMETAFILEPICT; + +// ######################################################################### +// +// HENHMETAFILE +// + +typedef union _userHENHMETAFILE switch( LONG fContext ) u +{ + case WDT_INPROC_CALL: LONG hInproc; + case WDT_REMOTE_CALL: BYTE_BLOB * hRemote; + case WDT_INPROC64_CALL: __int64 hInproc64; +} userHENHMETAFILE; + +// ######################################################################### +// +// HBITMAP +// + +// RemHBITMAP was just a byte blob, but the whole bitmap structure was copied +// at the beginning of the buffer. + +// So, we take BITMAP fields from wingdi.x + +typedef struct _userBITMAP +{ + LONG bmType; + LONG bmWidth; + LONG bmHeight; + LONG bmWidthBytes; + WORD bmPlanes; + WORD bmBitsPixel; + ULONG cbSize; + [size_is(cbSize)] byte pBuffer[]; +} userBITMAP; + + +typedef union _userHBITMAP switch( LONG fContext ) u +{ + case WDT_INPROC_CALL: LONG hInproc; + case WDT_REMOTE_CALL: userBITMAP * hRemote; + case WDT_INPROC64_CALL: __int64 hInproc64; +} userHBITMAP; + +// ######################################################################### +// +// HPALETTE +// + +// PALETTEENTRY is in wingdi.x, it is a struct with 4 bytes. +// LOGPALETTE is in wingdi.x, it is a conf struct with paletteentries and +// a version field + +typedef union _userHPALETTE switch( LONG fContext ) u +{ + case WDT_INPROC_CALL: LONG hInproc; + case WDT_REMOTE_CALL: LOGPALETTE * hRemote; + case WDT_INPROC64_CALL: __int64 hInproc64; +} userHPALETTE; + +// ######################################################################### +// +// Handles passed locally as longs. +// + +typedef union _RemotableHandle switch( LONG fContext ) u +{ + case WDT_INPROC_CALL: LONG hInproc; + case WDT_REMOTE_CALL: LONG hRemote; +} RemotableHandle; + +typedef [unique] RemotableHandle * wireHWND; +typedef [unique] RemotableHandle * wireHMENU; +typedef [unique] RemotableHandle * wireHACCEL; +typedef [unique] RemotableHandle * wireHBRUSH; +typedef [unique] RemotableHandle * wireHFONT; +typedef [unique] RemotableHandle * wireHDC; +typedef [unique] RemotableHandle * wireHICON; +typedef [unique] RemotableHandle * wireHRGN; +typedef [unique] RemotableHandle * wireHMONITOR; + + +cpp_quote("#if 0") +#ifndef _MIDL_DECLARE_WIREM_HANDLE +DECLARE_WIREM_HANDLE( HWND ); +DECLARE_WIREM_HANDLE( HMENU ); +DECLARE_WIREM_HANDLE( HACCEL ); +DECLARE_WIREM_HANDLE( HBRUSH ); +DECLARE_WIREM_HANDLE( HFONT ); +DECLARE_WIREM_HANDLE( HDC ); +DECLARE_WIREM_HANDLE( HICON ); +DECLARE_WIREM_HANDLE( HRGN ); +DECLARE_WIREM_HANDLE( HMONITOR ); +#endif + +cpp_quote("#ifndef _HCURSOR_DEFINED") +cpp_quote("#define _HCURSOR_DEFINED") +typedef HICON HCURSOR; /* HICONs & HCURSORs are polymorphic */ +cpp_quote("#endif // !_HCURSOR_DEFINED") + +cpp_quote("#endif //0") + +cpp_quote("#ifndef _TEXTMETRIC_DEFINED") +cpp_quote("#define _TEXTMETRIC_DEFINED") +typedef struct tagTEXTMETRICW { + LONG tmHeight; + LONG tmAscent; + LONG tmDescent; + LONG tmInternalLeading; + LONG tmExternalLeading; + LONG tmAveCharWidth; + LONG tmMaxCharWidth; + LONG tmWeight; + LONG tmOverhang; + LONG tmDigitizedAspectX; + LONG tmDigitizedAspectY; + WCHAR tmFirstChar; + WCHAR tmLastChar; + WCHAR tmDefaultChar; + WCHAR tmBreakChar; + BYTE tmItalic; + BYTE tmUnderlined; + BYTE tmStruckOut; + BYTE tmPitchAndFamily; + BYTE tmCharSet; +} TEXTMETRICW, *PTEXTMETRICW, *LPTEXTMETRICW; +cpp_quote("#endif // !_TEXTMETRIC_DEFINED") + + +cpp_quote("#ifndef _WIN32 // The following code is for Win16 only") +cpp_quote("#ifndef WINAPI // If not included with 3.1 headers...") + +// Message structure + +typedef struct tagMSG { + HWND hwnd; + UINT message; + WPARAM wParam; + LPARAM lParam; + DWORD time; + POINT pt; +} MSG, *PMSG, *NPMSG, *LPMSG; +cpp_quote("#endif // _WIN32") +cpp_quote("#endif // WINAPI") + +typedef [unique] userHBITMAP * wireHBITMAP; +typedef [unique] userHPALETTE * wireHPALETTE; +typedef [unique] userHENHMETAFILE * wireHENHMETAFILE; +typedef [unique] userHMETAFILE * wireHMETAFILE; +typedef [unique] userHMETAFILEPICT* wireHMETAFILEPICT; + +cpp_quote("#if 0") +DECLARE_WIREM_HANDLE( HGLOBAL ); +typedef HGLOBAL HLOCAL; +DECLARE_WIREM_HANDLE( HBITMAP ); +DECLARE_WIREM_HANDLE( HPALETTE ); +DECLARE_WIREM_HANDLE( HENHMETAFILE ); +DECLARE_WIREM_HANDLE( HMETAFILE ); +cpp_quote("#endif //0") + +DECLARE_WIREM_HANDLE( HMETAFILEPICT ); + +} + +// ######################################################################### +// + +cpp_quote("#if ( _MSC_VER >= 800 )") +cpp_quote("#if _MSC_VER >= 1200") +cpp_quote("#pragma warning(push)") +cpp_quote("#endif") +cpp_quote("#pragma warning(disable:4201)") +cpp_quote("#endif") + +typedef double DATE; + +/* This is a helper struct for use in handling currency. */ +cpp_quote("#ifndef _tagCY_DEFINED") +cpp_quote("#define _tagCY_DEFINED") +cpp_quote("#define _CY_DEFINED") + +cpp_quote("#if 0") + +cpp_quote("/* the following isn't the real definition of CY, but it is */") +cpp_quote("/* what RPC knows how to remote */") +typedef struct tagCY { + LONGLONG int64; +} CY; + +cpp_quote("#else /* 0 */") + +cpp_quote("/* real definition that makes the C++ compiler happy */") +cpp_quote("typedef union tagCY {") +cpp_quote(" struct {") +cpp_quote(" ULONG Lo;") +cpp_quote(" LONG Hi;") +cpp_quote(" } DUMMYSTRUCTNAME;") +cpp_quote(" LONGLONG int64;") +cpp_quote("} CY;") + +cpp_quote("#endif /* 0 */") + +cpp_quote("#endif /* _tagCY_DEFINED */") + +typedef CY *LPCY; + +cpp_quote("#if 0 /* _tagDEC_DEFINED */") +cpp_quote("/* The following isn't the real definition of Decimal type, */") +cpp_quote("/* but it is what RPC knows how to remote */") + +typedef struct tagDEC { + USHORT wReserved; + BYTE scale; + BYTE sign; + ULONG Hi32; + ULONGLONG Lo64; +} DECIMAL; + +cpp_quote("#else /* _tagDEC_DEFINED */") + +cpp_quote("/* real definition that makes the C++ compiler happy */") +cpp_quote("typedef struct tagDEC {") +cpp_quote(" USHORT wReserved;") +cpp_quote(" union {") +cpp_quote(" struct {") +cpp_quote(" BYTE scale;") +cpp_quote(" BYTE sign;") +cpp_quote(" } DUMMYSTRUCTNAME;") +cpp_quote(" USHORT signscale;") +cpp_quote(" } DUMMYUNIONNAME;") +cpp_quote(" ULONG Hi32;") +cpp_quote(" union {") +cpp_quote(" struct {") +cpp_quote(" ULONG Lo32;") +cpp_quote(" ULONG Mid32;") +cpp_quote(" } DUMMYSTRUCTNAME2;") +cpp_quote(" ULONGLONG Lo64;") +cpp_quote(" } DUMMYUNIONNAME2;") +cpp_quote("} DECIMAL;") + +cpp_quote("#define DECIMAL_NEG ((BYTE)0x80)") +cpp_quote("#define DECIMAL_SETZERO(dec) \\") +cpp_quote(" {(dec).Lo64 = 0; (dec).Hi32 = 0; (dec).signscale = 0;}") + +cpp_quote("#endif /* _tagDEC_DEFINED */") + +typedef DECIMAL *LPDECIMAL; + +cpp_quote("#if ( _MSC_VER >= 800 )") +cpp_quote("#if _MSC_VER >= 1200") +cpp_quote("#pragma warning(pop)") +cpp_quote("#else") +cpp_quote("#pragma warning(default:4201)") +cpp_quote("#endif") +cpp_quote("#endif") + +/* IDL declarations for BSTR how to transmit them */ +// +typedef [unique] FLAGGED_WORD_BLOB * wireBSTR; +cpp_quote("#ifndef _PREFAST_") +typedef [wire_marshal( wireBSTR )] OLECHAR * BSTR; +cpp_quote("#else // _PREFAST_") +cpp_quote("typedef _Null_terminated_ OLECHAR *BSTR;") +cpp_quote("#endif") +typedef BSTR * LPBSTR; + +cpp_quote("/* 0 == FALSE, -1 == TRUE */") +typedef short VARIANT_BOOL; + +cpp_quote("/* The BSTRBLOB structure is used by some implementations */") +cpp_quote("/* of the IPropertyStorage interface when marshaling BSTRs */") +cpp_quote("/* on systems which don't support BSTR marshaling. */") + +cpp_quote("#ifndef _tagBSTRBLOB_DEFINED") +cpp_quote("#define _tagBSTRBLOB_DEFINED") +typedef struct tagBSTRBLOB +{ + ULONG cbSize; + [size_is(cbSize)] BYTE *pData; +} BSTRBLOB, *LPBSTRBLOB; +cpp_quote("#endif") + +cpp_quote("#define VARIANT_TRUE ((VARIANT_BOOL)-1)") +cpp_quote("#define VARIANT_FALSE ((VARIANT_BOOL)0)") + +typedef struct tagCLIPDATA { + ULONG cbSize; // count that includes sizeof(ulClipFmt) + LONG ulClipFmt; // LONG to keep alignment + [size_is(cbSize-4)] + BYTE * pClipData; // cbSize-sizeof(ULONG) bytes of data in clipboard format +} CLIPDATA; + +cpp_quote("// Macro to calculate the size of the above pClipData") +cpp_quote("#define CBPCLIPDATA(clipdata) ( (clipdata).cbSize - sizeof((clipdata).ulClipFmt) )") + + +typedef unsigned short VARTYPE; + +// ######################################################################### +// +// VARTYPE +// +// ######################################################################### + + +cpp_quote("/*") +cpp_quote(" * VARENUM usage key,") +cpp_quote(" *") +cpp_quote(" * * [V] - may appear in a VARIANT") +cpp_quote(" * * [T] - may appear in a TYPEDESC") +cpp_quote(" * * [P] - may appear in an OLE property set") +cpp_quote(" * * [S] - may appear in a Safe Array") +cpp_quote(" *") +cpp_quote(" *") +cpp_quote(" * VT_EMPTY [V] [P] nothing") +cpp_quote(" * VT_NULL [V] [P] SQL style Null") +cpp_quote(" * VT_I2 [V][T][P][S] 2 byte signed int") +cpp_quote(" * VT_I4 [V][T][P][S] 4 byte signed int") +cpp_quote(" * VT_R4 [V][T][P][S] 4 byte real") +cpp_quote(" * VT_R8 [V][T][P][S] 8 byte real") +cpp_quote(" * VT_CY [V][T][P][S] currency") +cpp_quote(" * VT_DATE [V][T][P][S] date") +cpp_quote(" * VT_BSTR [V][T][P][S] OLE Automation string") +cpp_quote(" * VT_DISPATCH [V][T] [S] IDispatch *") +cpp_quote(" * VT_ERROR [V][T][P][S] SCODE") +cpp_quote(" * VT_BOOL [V][T][P][S] True=-1, False=0") +cpp_quote(" * VT_VARIANT [V][T][P][S] VARIANT *") +cpp_quote(" * VT_UNKNOWN [V][T] [S] IUnknown *") +cpp_quote(" * VT_DECIMAL [V][T] [S] 16 byte fixed point") +cpp_quote(" * VT_RECORD [V] [P][S] user defined type") +cpp_quote(" * VT_I1 [V][T][P][s] signed char") +cpp_quote(" * VT_UI1 [V][T][P][S] unsigned char") +cpp_quote(" * VT_UI2 [V][T][P][S] unsigned short") +cpp_quote(" * VT_UI4 [V][T][P][S] ULONG") +cpp_quote(" * VT_I8 [T][P] signed 64-bit int") +cpp_quote(" * VT_UI8 [T][P] unsigned 64-bit int") +cpp_quote(" * VT_INT [V][T][P][S] signed machine int") +cpp_quote(" * VT_UINT [V][T] [S] unsigned machine int") +cpp_quote(" * VT_INT_PTR [T] signed machine register size width") +cpp_quote(" * VT_UINT_PTR [T] unsigned machine register size width") +cpp_quote(" * VT_VOID [T] C style void") +cpp_quote(" * VT_HRESULT [T] Standard return type") +cpp_quote(" * VT_PTR [T] pointer type") +cpp_quote(" * VT_SAFEARRAY [T] (use VT_ARRAY in VARIANT)") +cpp_quote(" * VT_CARRAY [T] C style array") +cpp_quote(" * VT_USERDEFINED [T] user defined type") +cpp_quote(" * VT_LPSTR [T][P] null terminated string") +cpp_quote(" * VT_LPWSTR [T][P] wide null terminated string") +cpp_quote(" * VT_FILETIME [P] FILETIME") +cpp_quote(" * VT_BLOB [P] Length prefixed bytes") +cpp_quote(" * VT_STREAM [P] Name of the stream follows") +cpp_quote(" * VT_STORAGE [P] Name of the storage follows") +cpp_quote(" * VT_STREAMED_OBJECT [P] Stream contains an object") +cpp_quote(" * VT_STORED_OBJECT [P] Storage contains an object") +cpp_quote(" * VT_VERSIONED_STREAM [P] Stream with a GUID version") +cpp_quote(" * VT_BLOB_OBJECT [P] Blob contains an object ") +cpp_quote(" * VT_CF [P] Clipboard format") +cpp_quote(" * VT_CLSID [P] A Class ID") +cpp_quote(" * VT_VECTOR [P] simple counted array") +cpp_quote(" * VT_ARRAY [V] SAFEARRAY*") +cpp_quote(" * VT_BYREF [V] void* for local use") +cpp_quote(" * VT_BSTR_BLOB Reserved for system use") +cpp_quote(" */") + +enum VARENUM +{ + VT_EMPTY = 0, + VT_NULL = 1, + VT_I2 = 2, + VT_I4 = 3, + VT_R4 = 4, + VT_R8 = 5, + VT_CY = 6, + VT_DATE = 7, + VT_BSTR = 8, + VT_DISPATCH = 9, + VT_ERROR = 10, + VT_BOOL = 11, + VT_VARIANT = 12, + VT_UNKNOWN = 13, + VT_DECIMAL = 14, +// VBA reserves 15 for future use + VT_I1 = 16, + VT_UI1 = 17, + VT_UI2 = 18, + VT_UI4 = 19, + VT_I8 = 20, + VT_UI8 = 21, + VT_INT = 22, + VT_UINT = 23, + VT_VOID = 24, + VT_HRESULT = 25, + VT_PTR = 26, + VT_SAFEARRAY = 27, + VT_CARRAY = 28, + VT_USERDEFINED = 29, + VT_LPSTR = 30, + VT_LPWSTR = 31, +// VBA reserves 32-35 for future use + VT_RECORD = 36, + VT_INT_PTR = 37, + VT_UINT_PTR = 38, + + VT_FILETIME = 64, + VT_BLOB = 65, + VT_STREAM = 66, + VT_STORAGE = 67, + VT_STREAMED_OBJECT = 68, + VT_STORED_OBJECT = 69, + VT_BLOB_OBJECT = 70, + VT_CF = 71, + VT_CLSID = 72, + VT_VERSIONED_STREAM= 73, + + VT_BSTR_BLOB = 0x0fff, + + VT_VECTOR = 0x1000, + VT_ARRAY = 0x2000, + VT_BYREF = 0x4000, + VT_RESERVED = 0x8000, + + VT_ILLEGAL = 0xffff, + VT_ILLEGALMASKED = 0x0fff, + VT_TYPEMASK = 0x0fff +}; + + +// Property stuff +typedef ULONG PROPID; +cpp_quote( "#ifndef PROPERTYKEY_DEFINED" ) +cpp_quote( "#define PROPERTYKEY_DEFINED" ) +typedef struct _tagpropertykey +{ + GUID fmtid; + DWORD pid; +} PROPERTYKEY; +cpp_quote( "#endif" ) + +// Class Store types + +// +// Platform/Architecture Definition +// + typedef struct tagCSPLATFORM + { + DWORD dwPlatformId; // This is the OS Platform + DWORD dwVersionHi; // Major Version of OS + DWORD dwVersionLo; // Minor Version of OS + DWORD dwProcessorArch; // This is the Processor Architecure + } CSPLATFORM; + +// +// Query Context Structure +// This contains a list of attributes used to look up a class implementation +// + typedef struct tagQUERYCONTEXT { + DWORD dwContext; // Execution context + CSPLATFORM Platform; // Client Platform/Architecture + LCID Locale; // Locale ID + DWORD dwVersionHi; // Low Version number + DWORD dwVersionLo; // Hi Version number + } QUERYCONTEXT; + + +// +// Class Specifier structure +// All means of mapping to a Class ID +// (Union of CLSID, File Extension, ProgId, MimeType, File Ext) +// + + typedef [v1_enum] enum tagTYSPEC { + TYSPEC_CLSID, + TYSPEC_FILEEXT, + TYSPEC_MIMETYPE, + TYSPEC_FILENAME, + TYSPEC_PROGID, + TYSPEC_PACKAGENAME, + TYSPEC_OBJECTID + } TYSPEC; + + typedef union switch(DWORD tyspec) + { + case TYSPEC_CLSID: + CLSID clsid; + case TYSPEC_FILEEXT: + LPOLESTR pFileExt; + case TYSPEC_MIMETYPE: + LPOLESTR pMimeType; + case TYSPEC_PROGID: + LPOLESTR pProgId; + case TYSPEC_FILENAME: + LPOLESTR pFileName; + case TYSPEC_PACKAGENAME: + struct { + LPOLESTR pPackageName; + GUID PolicyId; + } ByName; + case TYSPEC_OBJECTID: + struct { + GUID ObjectId; + GUID PolicyId; + } ByObjectId; + } uCLSSPEC; + +cpp_quote("#if _MSC_VER >= 1200") +cpp_quote("#pragma warning(pop)") +cpp_quote("#endif") + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/WTypesbase.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/WTypesbase.Idl new file mode 100644 index 0000000000000000000000000000000000000000..c58f343a1c2b9908ffca8cfa51248a4af296c132 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/WTypesbase.Idl @@ -0,0 +1,545 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: wtypesbase.idl +// +// Contents: This interface definition contains typedefs for remotable +// data types. +//-------------------------------------------------------------------------- + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("#if ( _MSC_VER >= 1020 )") +cpp_quote("#pragma once") +cpp_quote("#endif") + +// +// Import definitions of the base types related to the 64b porting effort. +// +import "basetsd.h"; +import "guiddef.h"; + +cpp_quote("#if _MSC_VER >= 1200") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4820) /* padding added after data member */") +cpp_quote("#endif") + +[ uuid(B1BEA154-1C2F-4da9-9ABF-6E2D24EEA1BE), + version(0.1), pointer_default(unique) ] + +interface IWinTypesBase +{ + +// just for local wtypesbase +cpp_quote("#if 0") + +typedef byte BYTE; +typedef unsigned short WORD; +typedef unsigned int UINT; +typedef int INT; +typedef long BOOL; +typedef long LONG; +typedef unsigned long DWORD; +typedef void * HANDLE; +typedef WORD *LPWORD; +typedef DWORD *LPDWORD; +typedef char CHAR; +typedef [string] CHAR *LPSTR; +typedef [string] const CHAR *LPCSTR; +typedef wchar_t WCHAR; +typedef WCHAR TCHAR; +typedef [string] WCHAR *LPWSTR; +typedef [string] TCHAR *LPTSTR; +typedef [string] const WCHAR *LPCWSTR; +typedef [string] const TCHAR *LPCTSTR; +typedef HANDLE *LPHANDLE; + +// just for local wtypesbase +cpp_quote("#endif // 0") + +cpp_quote("#if defined(_WIN32) && !defined(OLE2ANSI)") + +typedef WCHAR OLECHAR; +typedef [string] OLECHAR *LPOLESTR; +typedef [string] const OLECHAR *LPCOLESTR; +cpp_quote("#define OLESTR(str) L##str") + +cpp_quote("") +cpp_quote("#else") +cpp_quote("") + +cpp_quote("typedef char OLECHAR;") +cpp_quote("typedef LPSTR LPOLESTR;") +cpp_quote("typedef LPCSTR LPCOLESTR;") +cpp_quote("#define OLESTR(str) str") + +cpp_quote("#endif") + + +// This block contains types that are normally defined by the nt sdk in WINDEF.H +// but we need them here for definitions that follow in this file. If WINDEF.H +// hasn't been included then we need to define them now so that WTYPESBASE.H +// will compile. +cpp_quote("#ifndef _WINDEF_") +cpp_quote("#ifndef _MINWINDEF_") +typedef void * PVOID, * LPVOID; +typedef float FLOAT; +cpp_quote("#endif //_MINWINDEF_") +cpp_quote("#endif //_WINDEF_") + + +typedef unsigned char UCHAR; +typedef short SHORT; +typedef unsigned short USHORT; +typedef DWORD ULONG; +typedef double DOUBLE; + +cpp_quote("#ifndef _DWORDLONG_") +typedef unsigned __int64 DWORDLONG; +typedef DWORDLONG *PDWORDLONG; +cpp_quote("#endif // !_DWORDLONG_") + +cpp_quote("#ifndef _ULONGLONG_") +typedef __int64 LONGLONG; +typedef unsigned __int64 ULONGLONG; +typedef LONGLONG *PLONGLONG; +typedef ULONGLONG *PULONGLONG; +cpp_quote("#endif // _ULONGLONG_") + +// just for local wtypesbase +cpp_quote("#if 0") + +typedef struct _LARGE_INTEGER { + LONGLONG QuadPart; +} LARGE_INTEGER; + +typedef LARGE_INTEGER *PLARGE_INTEGER; + +typedef struct _ULARGE_INTEGER { + ULONGLONG QuadPart; +} ULARGE_INTEGER; + +// just for local wtypesbase +cpp_quote("#endif // 0") + + +cpp_quote("#ifndef _WINBASE_") + +cpp_quote("#ifndef _FILETIME_") +cpp_quote("#define _FILETIME_") +typedef struct _FILETIME +{ + DWORD dwLowDateTime; + DWORD dwHighDateTime; +} FILETIME, *PFILETIME, *LPFILETIME; +cpp_quote("#endif // !_FILETIME") + +cpp_quote("#ifndef _SYSTEMTIME_") +cpp_quote("#define _SYSTEMTIME_") +typedef struct _SYSTEMTIME { + WORD wYear; + WORD wMonth; + WORD wDayOfWeek; + WORD wDay; + WORD wHour; + WORD wMinute; + WORD wSecond; + WORD wMilliseconds; +} SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME; + +cpp_quote("#endif // !_SYSTEMTIME") + +cpp_quote("#ifndef _SECURITY_ATTRIBUTES_") +cpp_quote("#define _SECURITY_ATTRIBUTES_") +typedef struct _SECURITY_ATTRIBUTES { + DWORD nLength; + LPVOID lpSecurityDescriptor; + BOOL bInheritHandle; +} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; +cpp_quote("#endif // !_SECURITY_ATTRIBUTES_") + +cpp_quote("#ifndef SECURITY_DESCRIPTOR_REVISION") + +typedef USHORT SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL; + +typedef PVOID PSID; // winnt + +typedef struct _ACL { + UCHAR AclRevision; + UCHAR Sbz1; + USHORT AclSize; + USHORT AceCount; + USHORT Sbz2; +} ACL; +typedef ACL *PACL; + +typedef struct _SECURITY_DESCRIPTOR { + UCHAR Revision; + UCHAR Sbz1; + SECURITY_DESCRIPTOR_CONTROL Control; + PSID Owner; + PSID Group; + PACL Sacl; + PACL Dacl; +} SECURITY_DESCRIPTOR, *PISECURITY_DESCRIPTOR; + +cpp_quote("#endif // !SECURITY_DESCRIPTOR_REVISION") + +cpp_quote("#endif //_WINBASE_") + +typedef struct _COAUTHIDENTITY +{ + // User and Password length from lmcons.h + // Domain length === FQDN length which is 256 + [size_is(UserLength+1)] USHORT * User; + [range(0,256)]ULONG UserLength; + [size_is(DomainLength+1)] USHORT * Domain; + [range(0,256)]ULONG DomainLength; + [size_is(PasswordLength+1)] USHORT * Password; + [range(0,256)]ULONG PasswordLength; + ULONG Flags; +} COAUTHIDENTITY; + +typedef struct _COAUTHINFO +{ + DWORD dwAuthnSvc; + DWORD dwAuthzSvc; + LPWSTR pwszServerPrincName; + DWORD dwAuthnLevel; + DWORD dwImpersonationLevel; + COAUTHIDENTITY * pAuthIdentityData; + DWORD dwCapabilities; +} COAUTHINFO; + +// +// SCODE, HRESULT +// +// +// Status values are 32 bit values layed out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +-+-----------------------------+-------------------------------+ +// |S| Facility | Code | +// +-+-----------------------------+-------------------------------+ +// +// where +// +// S - is the severity code +// +// 0 - Success +// 1 - Error +// +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// SCODE and HRESULT are mktyplib base types. +// +typedef LONG SCODE; +typedef SCODE *PSCODE; + +cpp_quote("#ifndef _HRESULT_DEFINED") +cpp_quote("#define _HRESULT_DEFINED") +#if defined(_STRICT_HRESULT) +typedef struct _HRESULT_STRUCT { + DWORD Data1; +} HRESULT_STRUCT, *PHRESULT_STRUCT; +typedef PHRESULT_STRUCT HRESULT; +#else // defined(_STRICT_HRESULT) +cpp_quote("#ifdef __midl") +typedef LONG HRESULT; +cpp_quote("#else // __midl") +cpp_quote("typedef _Return_type_success_(return >= 0) LONG HRESULT;") +cpp_quote("#endif // __midl") +#endif // defined(_STRICT_HRESULT) +cpp_quote("#endif // !_HRESULT_DEFINED") +cpp_quote("") + +cpp_quote("#ifndef __OBJECTID_DEFINED") +cpp_quote("#define __OBJECTID_DEFINED") +cpp_quote("#define _OBJECTID_DEFINED") +typedef struct _OBJECTID // NOTE!! Order of structure members is important for OFS +{ // enumeration. + GUID Lineage; // Unique for objects copied from same original and copies of. + ULONG Uniquifier; // Random, to provide uniqueness within small set with same +} OBJECTID; // lineage id. +cpp_quote("#endif // !_OBJECTID_DEFINED") + +//The following typedefs are used internally by MIDL. +cpp_quote("#if 0") + /* MIDL 2.0+ definitions */ + typedef GUID *REFGUID; + typedef IID *REFIID; + typedef CLSID *REFCLSID; +cpp_quote("#endif // 0") + +/************************* Misc types ***********************************/ + +// Common typdefs used in API paramaters, gleamed from compobj.h + +// memory context values; passed to CoGetMalloc +typedef enum tagMEMCTX +{ + MEMCTX_TASK = 1, // task (private) memory + MEMCTX_SHARED = 2, // shared memory (between processes) + MEMCTX_MACSYSTEM = 3, // on the mac, the system heap + // these are mostly for internal use... + MEMCTX_UNKNOWN = -1, // unknown context (when asked about it) + MEMCTX_SAME = -2, // same context (as some other pointer) +} MEMCTX; + +// For ROT registry flags under AppID +cpp_quote("#ifndef _ROTREGFLAGS_DEFINED") +cpp_quote("#define _ROTREGFLAGS_DEFINED") +cpp_quote("#define ROTREGFLAGS_ALLOWANYCLIENT 0x1") +cpp_quote("#endif // !_ROTREGFLAGS_DEFINED") + +// For AppID registry flags under AppID +cpp_quote("#ifndef _APPIDREGFLAGS_DEFINED") +cpp_quote("#define _APPIDREGFLAGS_DEFINED") +cpp_quote("#define APPIDREGFLAGS_ACTIVATE_IUSERVER_INDESKTOP 0x1") +cpp_quote("#define APPIDREGFLAGS_SECURE_SERVER_PROCESS_SD_AND_BIND 0x2") +cpp_quote("#define APPIDREGFLAGS_ISSUE_ACTIVATION_RPC_AT_IDENTIFY 0x4") +cpp_quote("#define APPIDREGFLAGS_IUSERVER_UNMODIFIED_LOGON_TOKEN 0x8") +cpp_quote("#define APPIDREGFLAGS_IUSERVER_SELF_SID_IN_LAUNCH_PERMISSION 0x10") +cpp_quote("#define APPIDREGFLAGS_IUSERVER_ACTIVATE_IN_CLIENT_SESSION_ONLY 0x20") +cpp_quote("#define APPIDREGFLAGS_RESERVED1 0x40") +cpp_quote("#define APPIDREGFLAGS_RESERVED2 0x80") +cpp_quote("#define APPIDREGFLAGS_RESERVED3 0x100") +cpp_quote("#define APPIDREGFLAGS_RESERVED4 0x200") +cpp_quote("#define APPIDREGFLAGS_RESERVED5 0x400") +cpp_quote("#define APPIDREGFLAGS_AAA_NO_IMPLICIT_ACTIVATE_AS_IU 0x800") +cpp_quote("#define APPIDREGFLAGS_RESERVED7 0x1000") +cpp_quote("#define APPIDREGFLAGS_RESERVED8 0x2000") +cpp_quote("#define APPIDREGFLAGS_RESERVED9 0x4000") +cpp_quote("#define APPIDREGFLAGS_RESERVED10 0x8000") +cpp_quote("#endif // !_APPIDREGFLAGS_DEFINED") + +// Flags controlling security behavior of SCM/Resolver calls from RPCSS +cpp_quote("#ifndef _DCOMSCM_REMOTECALL_FLAGS_DEFINED") +cpp_quote("#define _DCOMSCM_REMOTECALL_FLAGS_DEFINED") +cpp_quote("#define DCOMSCM_ACTIVATION_USE_ALL_AUTHNSERVICES 0x1") +cpp_quote("#define DCOMSCM_ACTIVATION_DISALLOW_UNSECURE_CALL 0x2") +cpp_quote("#define DCOMSCM_RESOLVE_USE_ALL_AUTHNSERVICES 0x4") +cpp_quote("#define DCOMSCM_RESOLVE_DISALLOW_UNSECURE_CALL 0x8") +cpp_quote("#define DCOMSCM_PING_USE_MID_AUTHNSERVICE 0x10") +cpp_quote("#define DCOMSCM_PING_DISALLOW_UNSECURE_CALL 0x20") +cpp_quote("#endif // !_DCOMSCM_REMOTECALL_FLAGS_DEFINED") + + +// class context: used to determine what scope and kind of class object to use +// NOTE: this is a bitwise enum +typedef enum tagCLSCTX +{ + CLSCTX_INPROC_SERVER = 0x01, // server dll (runs in same process as caller) + CLSCTX_INPROC_HANDLER = 0x02, // handler dll (runs in same process as caller) + CLSCTX_LOCAL_SERVER = 0x04, // server exe (runs on same machine; diff proc) + CLSCTX_INPROC_SERVER16 = 0x08, // 16-bit server dll (runs in same process as caller) + CLSCTX_REMOTE_SERVER = 0x10, // remote server exe (runs on different machine) + CLSCTX_INPROC_HANDLER16 = 0x20, // 16-bit handler dll (runs in same process as caller) + CLSCTX_RESERVED1 = 0x40, // formerly INPROC_SERVERX86, deprecated + CLSCTX_RESERVED2 = 0x80, // formerly INPROC_HANDLERX86, deprecated + CLSCTX_RESERVED3 = 0x100, // formerly ESERVER_HANDLER, deprecated + CLSCTX_RESERVED4 = 0x200, // formerly CLSCTX_KERNEL_SERVER, now used only in kmode + CLSCTX_NO_CODE_DOWNLOAD = 0x400, // disallow code download from the Directory Service (if any) or the internet + CLSCTX_RESERVED5 = 0x800, // formerly NO_WX86_TRANSLATION, deprecated + CLSCTX_NO_CUSTOM_MARSHAL = 0x1000, + CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000, + // allow code download from the Directory Service (if any) or the internet + CLSCTX_NO_FAILURE_LOG = 0x4000, // do not log messages about activation failure (should one occur) to Event Log + CLSCTX_DISABLE_AAA = 0x8000, // Disable activate-as-activator capability for this activation only + CLSCTX_ENABLE_AAA = 0x10000, // Enable activate-as-activator capability for this activation only + CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000, // Begin this activation from the default context of the current apartment + CLSCTX_ACTIVATE_X86_SERVER = 0x40000, // Pick x86 server only + CLSCTX_ACTIVATE_32_BIT_SERVER = CLSCTX_ACTIVATE_X86_SERVER, // Old name for CLSCTX_ACTIVATE_X86_SERVER; value must be identical for compatibility + CLSCTX_ACTIVATE_64_BIT_SERVER = 0x80000, // Pick 64-bit server only + CLSCTX_ENABLE_CLOAKING = 0x100000, // Use the thread token (if present) for the activation. +// The following flag is internal only + CLSCTX_APPCONTAINER = 0x400000, // Internal CLSCTX used to indicate activation is for app container + CLSCTX_ACTIVATE_AAA_AS_IU = 0x800000, // Interactive User activation behavior for As-Activator servers. + CLSCTX_RESERVED6 = 0x1000000, // reserved + CLSCTX_ACTIVATE_ARM32_SERVER = 0x2000000, // Pick ARM32 server only + CLSCTX_ALLOW_LOWER_TRUST_REGISTRATION = 0x4000000, // allow activations of servers configured in insufficiently trusted locations. + CLSCTX_SERVER_MUST_BE_EQUAL_OR_GREATER_PRIVILEGE = 0x8000000, // do not activate the server unless it has privilege equal to the caller or greater + CLSCTX_DO_NOT_ELEVATE_SERVER = 0x10000000, // do not propagate the caller’s elevated privilege to the server + CLSCTX_PS_DLL = 0x80000000, // Internal CLSCTX used for loading Proxy/Stub DLLs + } CLSCTX; + +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CLSCTX);") + +cpp_quote("#define CLSCTX_VALID_MASK \\") +cpp_quote(" (CLSCTX_INPROC_SERVER | \\") +cpp_quote(" CLSCTX_INPROC_HANDLER | \\") +cpp_quote(" CLSCTX_LOCAL_SERVER | \\") +cpp_quote(" CLSCTX_INPROC_SERVER16 | \\") +cpp_quote(" CLSCTX_REMOTE_SERVER | \\") +cpp_quote(" CLSCTX_NO_CODE_DOWNLOAD | \\") +cpp_quote(" CLSCTX_NO_CUSTOM_MARSHAL | \\") +cpp_quote(" CLSCTX_ENABLE_CODE_DOWNLOAD | \\") +cpp_quote(" CLSCTX_NO_FAILURE_LOG | \\") +cpp_quote(" CLSCTX_DISABLE_AAA | \\") +cpp_quote(" CLSCTX_ENABLE_AAA | \\") +cpp_quote(" CLSCTX_FROM_DEFAULT_CONTEXT | \\") +cpp_quote(" CLSCTX_ACTIVATE_X86_SERVER | \\") +cpp_quote(" CLSCTX_ACTIVATE_64_BIT_SERVER | \\") +cpp_quote(" CLSCTX_ENABLE_CLOAKING | \\") +cpp_quote(" CLSCTX_APPCONTAINER | \\") +cpp_quote(" CLSCTX_ACTIVATE_AAA_AS_IU | \\") +cpp_quote(" CLSCTX_RESERVED6 | \\") +cpp_quote(" CLSCTX_ACTIVATE_ARM32_SERVER | \\") +cpp_quote(" CLSCTX_ALLOW_LOWER_TRUST_REGISTRATION | \\") +cpp_quote(" CLSCTX_DO_NOT_ELEVATE_SERVER | \\") +cpp_quote(" CLSCTX_SERVER_MUST_BE_EQUAL_OR_GREATER_PRIVILEGE | \\") +cpp_quote(" CLSCTX_PS_DLL)") + +// marshaling flags; passed to CoMarshalInterface +typedef enum tagMSHLFLAGS +{ + MSHLFLAGS_NORMAL = 0, // normal marshaling via proxy/stub + MSHLFLAGS_TABLESTRONG = 1, // keep object alive; must explicitly release + MSHLFLAGS_TABLEWEAK = 2, // doesn't hold object alive; still must release + MSHLFLAGS_NOPING = 4, // remote clients dont 'ping' to keep objects alive + MSHLFLAGS_RESERVED1 = 8, // reserved + MSHLFLAGS_RESERVED2 = 16, // reserved + MSHLFLAGS_RESERVED3 = 32, // reserved + MSHLFLAGS_RESERVED4 = 64 // reserved +} MSHLFLAGS; + + +// marshal context: determines the destination context of the marshal operation +typedef enum tagMSHCTX +{ + MSHCTX_LOCAL = 0, // unmarshal context is local (e.g. shared memory) + MSHCTX_NOSHAREDMEM = 1, // unmarshal context has no shared memory access + MSHCTX_DIFFERENTMACHINE = 2,// unmarshal context is on a different machine + MSHCTX_INPROC = 3, // unmarshal context is on different thread + MSHCTX_CROSSCTX = 4, // unmarshal context is on different context + MSHCTX_CONTAINER = 5, // unmarshal context is in a different container +} MSHCTX; + +// ####################################################################### +// +// User marshal support for Windows data types. + +// +// Frequently used helpers: sized blobs +// +// Never put [user_marshal] or [wire_marshal] on the helpers directly. +// + +// Simple blobs. + +typedef struct _BYTE_BLOB { + ULONG clSize; + [size_is(clSize)] byte abData[]; +} BYTE_BLOB; + +typedef [unique] BYTE_BLOB * UP_BYTE_BLOB; + +typedef struct _WORD_BLOB { + ULONG clSize; + [size_is(clSize)] unsigned short asData[]; +} WORD_BLOB; + +typedef [unique] WORD_BLOB * UP_WORD_BLOB; + +typedef struct _DWORD_BLOB { + ULONG clSize; + [size_is(clSize)] ULONG alData[]; +} DWORD_BLOB; + +typedef [unique] DWORD_BLOB * UP_DWORD_BLOB; + +// Flagged blobs. + +typedef struct _FLAGGED_BYTE_BLOB { + ULONG fFlags; + ULONG clSize; + [size_is(clSize)] byte abData[]; +} FLAGGED_BYTE_BLOB; + +typedef [unique] FLAGGED_BYTE_BLOB * UP_FLAGGED_BYTE_BLOB; + +typedef struct _FLAGGED_WORD_BLOB { + ULONG fFlags; + ULONG clSize; + [size_is(clSize)] unsigned short asData[]; +} FLAGGED_WORD_BLOB; + +typedef [unique] FLAGGED_WORD_BLOB * UP_FLAGGED_WORD_BLOB; + +// Frequently used helpers with sized pointers. + +typedef struct _BYTE_SIZEDARR { + ULONG clSize; + [size_is(clSize)] byte * pData ; +} BYTE_SIZEDARR; + +typedef struct _SHORT_SIZEDARR { + ULONG clSize; + [size_is(clSize)] unsigned short* pData ; +} WORD_SIZEDARR; + +typedef struct _LONG_SIZEDARR { + ULONG clSize; + [size_is(clSize)] ULONG * pData ; +} DWORD_SIZEDARR; + +typedef struct _HYPER_SIZEDARR { + ULONG clSize; + [size_is(clSize)] hyper * pData ; +} HYPER_SIZEDARR; + +} + +// ######################################################################### +// + +typedef boolean BOOLEAN; + +cpp_quote("#ifndef _tagBLOB_DEFINED") +cpp_quote("#define _tagBLOB_DEFINED") +cpp_quote("#define _BLOB_DEFINED") +cpp_quote("#define _LPBLOB_DEFINED") +typedef struct tagBLOB { + ULONG cbSize; + [size_is(cbSize)] + BYTE *pBlobData; +} BLOB, * LPBLOB; +cpp_quote("#endif") + +// Access Control - ntseapi.h +cpp_quote( "#ifndef SID_IDENTIFIER_AUTHORITY_DEFINED" ) +cpp_quote( "#define SID_IDENTIFIER_AUTHORITY_DEFINED" ) +typedef struct _SID_IDENTIFIER_AUTHORITY { + UCHAR Value[6]; +} SID_IDENTIFIER_AUTHORITY, *PSID_IDENTIFIER_AUTHORITY; +cpp_quote( "#endif" ) + +cpp_quote( "#ifndef SID_DEFINED" ) +cpp_quote( "#define SID_DEFINED" ) +typedef struct _SID { + BYTE Revision; + BYTE SubAuthorityCount; + SID_IDENTIFIER_AUTHORITY IdentifierAuthority; + [size_is(SubAuthorityCount)] ULONG SubAuthority[*]; +} SID, *PISID; + +typedef struct _SID_AND_ATTRIBUTES { + SID * Sid; + DWORD Attributes; + } SID_AND_ATTRIBUTES, * PSID_AND_ATTRIBUTES; +cpp_quote( "#endif" ) + +cpp_quote("#if _MSC_VER >= 1200") +cpp_quote("#pragma warning(pop)") +cpp_quote("#endif") + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/WTypesbase.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/WTypesbase.h new file mode 100644 index 0000000000000000000000000000000000000000..6b57b59a41441e4095ac71077efdcea13f0a4554 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/WTypesbase.h @@ -0,0 +1,589 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __wtypesbase_h__ +#define __wtypesbase_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +/* header files for imported files */ +#include "basetsd.h" +#include "guiddef.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_wtypesbase_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#if ( _MSC_VER >= 1020 ) +#pragma once +#endif +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0000_v0_0_s_ifspec; + +#ifndef __IWinTypesBase_INTERFACE_DEFINED__ +#define __IWinTypesBase_INTERFACE_DEFINED__ + +/* interface IWinTypesBase */ +/* [unique][version][uuid] */ + +#if 0 +typedef byte BYTE; + +typedef unsigned short WORD; + +typedef unsigned int UINT; + +typedef int INT; + +typedef long BOOL; + +typedef long LONG; + +typedef unsigned long DWORD; + +typedef void *HANDLE; + +typedef WORD *LPWORD; + +typedef DWORD *LPDWORD; + +typedef char CHAR; + +typedef /* [string] */ __RPC_string CHAR *LPSTR; + +typedef /* [string] */ __RPC_string const CHAR *LPCSTR; + +typedef wchar_t WCHAR; + +typedef WCHAR TCHAR; + +typedef /* [string] */ __RPC_string WCHAR *LPWSTR; + +typedef /* [string] */ __RPC_string TCHAR *LPTSTR; + +typedef /* [string] */ __RPC_string const WCHAR *LPCWSTR; + +typedef /* [string] */ __RPC_string const TCHAR *LPCTSTR; + +typedef HANDLE *LPHANDLE; + +#endif // 0 +#if defined(_WIN32) && !defined(OLE2ANSI) +typedef WCHAR OLECHAR; + +typedef /* [string] */ __RPC_string OLECHAR *LPOLESTR; + +typedef /* [string] */ __RPC_string const OLECHAR *LPCOLESTR; + +#define OLESTR(str) L##str + +#else + +typedef char OLECHAR; +typedef LPSTR LPOLESTR; +typedef LPCSTR LPCOLESTR; +#define OLESTR(str) str +#endif +#ifndef _WINDEF_ +#ifndef _MINWINDEF_ +typedef void *PVOID; + +typedef void *LPVOID; + +typedef float FLOAT; + +#endif //_MINWINDEF_ +#endif //_WINDEF_ +typedef unsigned char UCHAR; + +typedef short SHORT; + +typedef unsigned short USHORT; + +typedef DWORD ULONG; + +typedef double DOUBLE; + +#ifndef _DWORDLONG_ +typedef unsigned __int64 DWORDLONG; + +typedef DWORDLONG *PDWORDLONG; + +#endif // !_DWORDLONG_ +#ifndef _ULONGLONG_ +typedef __int64 LONGLONG; + +typedef unsigned __int64 ULONGLONG; + +typedef LONGLONG *PLONGLONG; + +typedef ULONGLONG *PULONGLONG; + +#endif // _ULONGLONG_ +#if 0 +typedef struct _LARGE_INTEGER + { + LONGLONG QuadPart; + } LARGE_INTEGER; + +typedef LARGE_INTEGER *PLARGE_INTEGER; + +typedef struct _ULARGE_INTEGER + { + ULONGLONG QuadPart; + } ULARGE_INTEGER; + +#endif // 0 +#ifndef _WINBASE_ +#ifndef _FILETIME_ +#define _FILETIME_ +typedef struct _FILETIME + { + DWORD dwLowDateTime; + DWORD dwHighDateTime; + } FILETIME; + +typedef struct _FILETIME *PFILETIME; + +typedef struct _FILETIME *LPFILETIME; + +#endif // !_FILETIME +#ifndef _SYSTEMTIME_ +#define _SYSTEMTIME_ +typedef struct _SYSTEMTIME + { + WORD wYear; + WORD wMonth; + WORD wDayOfWeek; + WORD wDay; + WORD wHour; + WORD wMinute; + WORD wSecond; + WORD wMilliseconds; + } SYSTEMTIME; + +typedef struct _SYSTEMTIME *PSYSTEMTIME; + +typedef struct _SYSTEMTIME *LPSYSTEMTIME; + +#endif // !_SYSTEMTIME +#ifndef _SECURITY_ATTRIBUTES_ +#define _SECURITY_ATTRIBUTES_ +typedef struct _SECURITY_ATTRIBUTES + { + DWORD nLength; + LPVOID lpSecurityDescriptor; + BOOL bInheritHandle; + } SECURITY_ATTRIBUTES; + +typedef struct _SECURITY_ATTRIBUTES *PSECURITY_ATTRIBUTES; + +typedef struct _SECURITY_ATTRIBUTES *LPSECURITY_ATTRIBUTES; + +#endif // !_SECURITY_ATTRIBUTES_ +#ifndef SECURITY_DESCRIPTOR_REVISION +typedef USHORT SECURITY_DESCRIPTOR_CONTROL; + +typedef USHORT *PSECURITY_DESCRIPTOR_CONTROL; + +typedef PVOID PSID; + +typedef struct _ACL + { + UCHAR AclRevision; + UCHAR Sbz1; + USHORT AclSize; + USHORT AceCount; + USHORT Sbz2; + } ACL; + +typedef ACL *PACL; + +typedef struct _SECURITY_DESCRIPTOR + { + UCHAR Revision; + UCHAR Sbz1; + SECURITY_DESCRIPTOR_CONTROL Control; + PSID Owner; + PSID Group; + PACL Sacl; + PACL Dacl; + } SECURITY_DESCRIPTOR; + +typedef struct _SECURITY_DESCRIPTOR *PISECURITY_DESCRIPTOR; + +#endif // !SECURITY_DESCRIPTOR_REVISION +#endif //_WINBASE_ +typedef struct _COAUTHIDENTITY + { + /* [size_is] */ USHORT *User; + /* [range] */ ULONG UserLength; + /* [size_is] */ USHORT *Domain; + /* [range] */ ULONG DomainLength; + /* [size_is] */ USHORT *Password; + /* [range] */ ULONG PasswordLength; + ULONG Flags; + } COAUTHIDENTITY; + +typedef struct _COAUTHINFO + { + DWORD dwAuthnSvc; + DWORD dwAuthzSvc; + LPWSTR pwszServerPrincName; + DWORD dwAuthnLevel; + DWORD dwImpersonationLevel; + COAUTHIDENTITY *pAuthIdentityData; + DWORD dwCapabilities; + } COAUTHINFO; + +typedef LONG SCODE; + +typedef SCODE *PSCODE; + +#ifndef _HRESULT_DEFINED +#define _HRESULT_DEFINED +#ifdef __midl +typedef LONG HRESULT; + +#else // __midl +typedef _Return_type_success_(return >= 0) LONG HRESULT; +#endif // __midl +#endif // !_HRESULT_DEFINED + +#ifndef __OBJECTID_DEFINED +#define __OBJECTID_DEFINED +#define _OBJECTID_DEFINED +typedef struct _OBJECTID + { + GUID Lineage; + ULONG Uniquifier; + } OBJECTID; + +#endif // !_OBJECTID_DEFINED +#if 0 +typedef GUID *REFGUID; + +typedef IID *REFIID; + +typedef CLSID *REFCLSID; + +#endif // 0 +typedef +enum tagMEMCTX + { + MEMCTX_TASK = 1, + MEMCTX_SHARED = 2, + MEMCTX_MACSYSTEM = 3, + MEMCTX_UNKNOWN = -1, + MEMCTX_SAME = -2 + } MEMCTX; + +#ifndef _ROTREGFLAGS_DEFINED +#define _ROTREGFLAGS_DEFINED +#define ROTREGFLAGS_ALLOWANYCLIENT 0x1 +#endif // !_ROTREGFLAGS_DEFINED +#ifndef _APPIDREGFLAGS_DEFINED +#define _APPIDREGFLAGS_DEFINED +#define APPIDREGFLAGS_ACTIVATE_IUSERVER_INDESKTOP 0x1 +#define APPIDREGFLAGS_SECURE_SERVER_PROCESS_SD_AND_BIND 0x2 +#define APPIDREGFLAGS_ISSUE_ACTIVATION_RPC_AT_IDENTIFY 0x4 +#define APPIDREGFLAGS_IUSERVER_UNMODIFIED_LOGON_TOKEN 0x8 +#define APPIDREGFLAGS_IUSERVER_SELF_SID_IN_LAUNCH_PERMISSION 0x10 +#define APPIDREGFLAGS_IUSERVER_ACTIVATE_IN_CLIENT_SESSION_ONLY 0x20 +#define APPIDREGFLAGS_RESERVED1 0x40 +#define APPIDREGFLAGS_RESERVED2 0x80 +#define APPIDREGFLAGS_RESERVED3 0x100 +#define APPIDREGFLAGS_RESERVED4 0x200 +#define APPIDREGFLAGS_RESERVED5 0x400 +#define APPIDREGFLAGS_AAA_NO_IMPLICIT_ACTIVATE_AS_IU 0x800 +#define APPIDREGFLAGS_RESERVED7 0x1000 +#define APPIDREGFLAGS_RESERVED8 0x2000 +#define APPIDREGFLAGS_RESERVED9 0x4000 +#define APPIDREGFLAGS_RESERVED10 0x8000 +#endif // !_APPIDREGFLAGS_DEFINED +#ifndef _DCOMSCM_REMOTECALL_FLAGS_DEFINED +#define _DCOMSCM_REMOTECALL_FLAGS_DEFINED +#define DCOMSCM_ACTIVATION_USE_ALL_AUTHNSERVICES 0x1 +#define DCOMSCM_ACTIVATION_DISALLOW_UNSECURE_CALL 0x2 +#define DCOMSCM_RESOLVE_USE_ALL_AUTHNSERVICES 0x4 +#define DCOMSCM_RESOLVE_DISALLOW_UNSECURE_CALL 0x8 +#define DCOMSCM_PING_USE_MID_AUTHNSERVICE 0x10 +#define DCOMSCM_PING_DISALLOW_UNSECURE_CALL 0x20 +#endif // !_DCOMSCM_REMOTECALL_FLAGS_DEFINED +typedef +enum tagCLSCTX + { + CLSCTX_INPROC_SERVER = 0x1, + CLSCTX_INPROC_HANDLER = 0x2, + CLSCTX_LOCAL_SERVER = 0x4, + CLSCTX_INPROC_SERVER16 = 0x8, + CLSCTX_REMOTE_SERVER = 0x10, + CLSCTX_INPROC_HANDLER16 = 0x20, + CLSCTX_RESERVED1 = 0x40, + CLSCTX_RESERVED2 = 0x80, + CLSCTX_RESERVED3 = 0x100, + CLSCTX_RESERVED4 = 0x200, + CLSCTX_NO_CODE_DOWNLOAD = 0x400, + CLSCTX_RESERVED5 = 0x800, + CLSCTX_NO_CUSTOM_MARSHAL = 0x1000, + CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000, + CLSCTX_NO_FAILURE_LOG = 0x4000, + CLSCTX_DISABLE_AAA = 0x8000, + CLSCTX_ENABLE_AAA = 0x10000, + CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000, + CLSCTX_ACTIVATE_X86_SERVER = 0x40000, + CLSCTX_ACTIVATE_32_BIT_SERVER = CLSCTX_ACTIVATE_X86_SERVER, + CLSCTX_ACTIVATE_64_BIT_SERVER = 0x80000, + CLSCTX_ENABLE_CLOAKING = 0x100000, + CLSCTX_APPCONTAINER = 0x400000, + CLSCTX_ACTIVATE_AAA_AS_IU = 0x800000, + CLSCTX_RESERVED6 = 0x1000000, + CLSCTX_ACTIVATE_ARM32_SERVER = 0x2000000, + CLSCTX_ALLOW_LOWER_TRUST_REGISTRATION = 0x4000000, + CLSCTX_SERVER_MUST_BE_EQUAL_OR_GREATER_PRIVILEGE = 0x8000000, + CLSCTX_DO_NOT_ELEVATE_SERVER = 0x10000000, + CLSCTX_PS_DLL = 0x80000000 + } CLSCTX; + +DEFINE_ENUM_FLAG_OPERATORS(CLSCTX); +#define CLSCTX_VALID_MASK \ + (CLSCTX_INPROC_SERVER | \ + CLSCTX_INPROC_HANDLER | \ + CLSCTX_LOCAL_SERVER | \ + CLSCTX_INPROC_SERVER16 | \ + CLSCTX_REMOTE_SERVER | \ + CLSCTX_NO_CODE_DOWNLOAD | \ + CLSCTX_NO_CUSTOM_MARSHAL | \ + CLSCTX_ENABLE_CODE_DOWNLOAD | \ + CLSCTX_NO_FAILURE_LOG | \ + CLSCTX_DISABLE_AAA | \ + CLSCTX_ENABLE_AAA | \ + CLSCTX_FROM_DEFAULT_CONTEXT | \ + CLSCTX_ACTIVATE_X86_SERVER | \ + CLSCTX_ACTIVATE_64_BIT_SERVER | \ + CLSCTX_ENABLE_CLOAKING | \ + CLSCTX_APPCONTAINER | \ + CLSCTX_ACTIVATE_AAA_AS_IU | \ + CLSCTX_RESERVED6 | \ + CLSCTX_ACTIVATE_ARM32_SERVER | \ + CLSCTX_ALLOW_LOWER_TRUST_REGISTRATION | \ + CLSCTX_DO_NOT_ELEVATE_SERVER | \ + CLSCTX_SERVER_MUST_BE_EQUAL_OR_GREATER_PRIVILEGE | \ + CLSCTX_PS_DLL) +typedef +enum tagMSHLFLAGS + { + MSHLFLAGS_NORMAL = 0, + MSHLFLAGS_TABLESTRONG = 1, + MSHLFLAGS_TABLEWEAK = 2, + MSHLFLAGS_NOPING = 4, + MSHLFLAGS_RESERVED1 = 8, + MSHLFLAGS_RESERVED2 = 16, + MSHLFLAGS_RESERVED3 = 32, + MSHLFLAGS_RESERVED4 = 64 + } MSHLFLAGS; + +typedef +enum tagMSHCTX + { + MSHCTX_LOCAL = 0, + MSHCTX_NOSHAREDMEM = 1, + MSHCTX_DIFFERENTMACHINE = 2, + MSHCTX_INPROC = 3, + MSHCTX_CROSSCTX = 4, + MSHCTX_CONTAINER = 5 + } MSHCTX; + +typedef struct _BYTE_BLOB + { + ULONG clSize; + /* [size_is] */ byte abData[ 1 ]; + } BYTE_BLOB; + +typedef /* [unique] */ __RPC_unique_pointer BYTE_BLOB *UP_BYTE_BLOB; + +typedef struct _WORD_BLOB + { + ULONG clSize; + /* [size_is] */ unsigned short asData[ 1 ]; + } WORD_BLOB; + +typedef /* [unique] */ __RPC_unique_pointer WORD_BLOB *UP_WORD_BLOB; + +typedef struct _DWORD_BLOB + { + ULONG clSize; + /* [size_is] */ ULONG alData[ 1 ]; + } DWORD_BLOB; + +typedef /* [unique] */ __RPC_unique_pointer DWORD_BLOB *UP_DWORD_BLOB; + +typedef struct _FLAGGED_BYTE_BLOB + { + ULONG fFlags; + ULONG clSize; + /* [size_is] */ byte abData[ 1 ]; + } FLAGGED_BYTE_BLOB; + +typedef /* [unique] */ __RPC_unique_pointer FLAGGED_BYTE_BLOB *UP_FLAGGED_BYTE_BLOB; + +typedef struct _FLAGGED_WORD_BLOB + { + ULONG fFlags; + ULONG clSize; + /* [size_is] */ unsigned short asData[ 1 ]; + } FLAGGED_WORD_BLOB; + +typedef /* [unique] */ __RPC_unique_pointer FLAGGED_WORD_BLOB *UP_FLAGGED_WORD_BLOB; + +typedef struct _BYTE_SIZEDARR + { + ULONG clSize; + /* [size_is] */ byte *pData; + } BYTE_SIZEDARR; + +typedef struct _SHORT_SIZEDARR + { + ULONG clSize; + /* [size_is] */ unsigned short *pData; + } WORD_SIZEDARR; + +typedef struct _LONG_SIZEDARR + { + ULONG clSize; + /* [size_is] */ ULONG *pData; + } DWORD_SIZEDARR; + +typedef struct _HYPER_SIZEDARR + { + ULONG clSize; + /* [size_is] */ hyper *pData; + } HYPER_SIZEDARR; + + + +extern RPC_IF_HANDLE IWinTypesBase_v0_1_c_ifspec; +extern RPC_IF_HANDLE IWinTypesBase_v0_1_s_ifspec; +#endif /* __IWinTypesBase_INTERFACE_DEFINED__ */ + +/* interface __MIDL_itf_wtypesbase_0000_0001 */ +/* [local] */ + +typedef boolean BOOLEAN; + +#ifndef _tagBLOB_DEFINED +#define _tagBLOB_DEFINED +#define _BLOB_DEFINED +#define _LPBLOB_DEFINED +typedef struct tagBLOB + { + ULONG cbSize; + /* [size_is] */ BYTE *pBlobData; + } BLOB; + +typedef struct tagBLOB *LPBLOB; + +#endif +#ifndef SID_IDENTIFIER_AUTHORITY_DEFINED +#define SID_IDENTIFIER_AUTHORITY_DEFINED +typedef struct _SID_IDENTIFIER_AUTHORITY + { + UCHAR Value[ 6 ]; + } SID_IDENTIFIER_AUTHORITY; + +typedef struct _SID_IDENTIFIER_AUTHORITY *PSID_IDENTIFIER_AUTHORITY; + +#endif +#ifndef SID_DEFINED +#define SID_DEFINED +typedef struct _SID + { + BYTE Revision; + BYTE SubAuthorityCount; + SID_IDENTIFIER_AUTHORITY IdentifierAuthority; + /* [size_is] */ ULONG SubAuthority[ 1 ]; + } SID; + +typedef struct _SID *PISID; + +typedef struct _SID_AND_ATTRIBUTES + { + SID *Sid; + DWORD Attributes; + } SID_AND_ATTRIBUTES; + +typedef struct _SID_AND_ATTRIBUTES *PSID_AND_ATTRIBUTES; + +#endif +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_wtypesbase_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbiodef.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbiodef.h new file mode 100644 index 0000000000000000000000000000000000000000..55d10e97d56a67cbe77d9145e27f69bec78c1f48 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbiodef.h @@ -0,0 +1,267 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + USBIODEF.H + +Abstract: + + Common header file for all USB IOCTLs defined for + the core stack. We define them in this single header file + so that we can maintain backward compatibilty with older + versions of the stack. + + + We divide the IOCTLS supported by the stack as follows: + + kernel IOCTLS: + + + user IOCTLS: + + IOCTLS Handled by HCD (PORT) FDO + IOCTLS Handled by HUB FDO + IOCTLS Handled by USB (DEVICE) PDO + +Environment: + + kernel & user mode + +Revision History: + + +--*/ + +#ifndef __USBIODEF_H__ +#define __USBIODEF_H__ +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +/* + Function codes for kernel mode IOCTLs with DeviceType : DEVICE_TYPE_USB (a.k.a DEVICE_TYPE_UNKNOWN) + + The following codes are valid only if passed as in + the icControlCode parameter for + IRP_MJ_INTERNAL_DEVICE_CONTROL + +*/ +#define USB_SUBMIT_URB 0 +#define USB_RESET_PORT 1 +#define USB_GET_ROOTHUB_PDO 3 +#define USB_GET_PORT_STATUS 4 +#define USB_ENABLE_PORT 5 +#define USB_GET_HUB_COUNT 6 +#define USB_CYCLE_PORT 7 +#define USB_GET_HUB_NAME 8 +#define USB_IDLE_NOTIFICATION 9 +#define USB_RECORD_FAILURE 10 +#define USB_GET_BUS_INFO 264 +#define USB_GET_CONTROLLER_NAME 265 +#define USB_GET_BUSGUID_INFO 266 +#define USB_GET_PARENT_HUB_INFO 267 +#define USB_GET_DEVICE_HANDLE 268 +#define USB_GET_DEVICE_HANDLE_EX 269 +#define USB_GET_TT_DEVICE_HANDLE 270 +#define USB_GET_TOPOLOGY_ADDRESS 271 +#define USB_IDLE_NOTIFICATION_EX 272 +#define USB_REQ_GLOBAL_SUSPEND 273 +#define USB_REQ_GLOBAL_RESUME 274 +#define USB_GET_HUB_CONFIG_INFO 275 +#define USB_FAIL_GET_STATUS 280 + +/* + Function codes for kernel mode IOCTLs with DeviceType : DEVICE_TYPE_USBEX + + The following codes are valid only if passed as in + the icControlCode parameter for + IRP_MJ_INTERNAL_DEVICE_CONTROL + + The range 0 - 2047 is reserved for use by Microsoft. + The range 0 - 1023 is used for Public Ioctls defined by Microsoft. + +*/ + +#define USB_REGISTER_COMPOSITE_DEVICE 0 +#define USB_UNREGISTER_COMPOSITE_DEVICE 1 +#define USB_REQUEST_REMOTE_WAKE_NOTIFICATION 2 + + +/* + Function codes for user mode IOCTLs + + The following codes are valid only if passed as in + the icControlCode parameter for + IRP_MJ_DEVICE_CONTROL + hence, they are callable by user mode applications +*/ +#define HCD_GET_STATS_1 255 +#define HCD_DIAGNOSTIC_MODE_ON 256 +#define HCD_DIAGNOSTIC_MODE_OFF 257 +#define HCD_GET_ROOT_HUB_NAME 258 +#define HCD_GET_DRIVERKEY_NAME 265 +#define HCD_GET_STATS_2 266 +#define HCD_DISABLE_PORT 268 +#define HCD_ENABLE_PORT 269 +#define HCD_USER_REQUEST 270 +#define HCD_TRACE_READ_REQUEST 275 + + +#define USB_GET_NODE_INFORMATION 258 +#define USB_GET_NODE_CONNECTION_INFORMATION 259 +#define USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION 260 +#define USB_GET_NODE_CONNECTION_NAME 261 +#define USB_DIAG_IGNORE_HUBS_ON 262 +#define USB_DIAG_IGNORE_HUBS_OFF 263 +#define USB_GET_NODE_CONNECTION_DRIVERKEY_NAME 264 +#define USB_GET_HUB_CAPABILITIES 271 +#define USB_GET_NODE_CONNECTION_ATTRIBUTES 272 +#define USB_HUB_CYCLE_PORT 273 +#define USB_GET_NODE_CONNECTION_INFORMATION_EX 274 +#define USB_RESET_HUB 275 +#define USB_GET_HUB_CAPABILITIES_EX 276 +#define USB_GET_HUB_INFORMATION_EX 277 +#define USB_GET_PORT_CONNECTOR_PROPERTIES 278 +#define USB_GET_NODE_CONNECTION_INFORMATION_EX_V2 279 + +#define USB_GET_TRANSPORT_CHARACTERISTICS 281 +#define USB_REGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE 282 +#define USB_NOTIFY_ON_TRANSPORT_CHARACTERISTICS_CHANGE 283 +#define USB_UNREGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE 284 + +#define USB_START_TRACKING_FOR_TIME_SYNC 285 +#define USB_GET_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC 286 +#define USB_STOP_TRACKING_FOR_TIME_SYNC 287 + +#define USB_GET_DEVICE_CHARACTERISTICS 288 + +#define USB_GET_NODE_CONNECTION_SUPERSPEEDPLUS_INFORMATION 289 + +// IOCTL codes starting here and beyond are for windows' internal use +#define USB_RESERVED_USER_BASE 1024 + +/* +USB specific GUIDs +*/ + + +/* f18a0e88-c30c-11d0-8815-00a0c906bed8 */ +DEFINE_GUID(GUID_DEVINTERFACE_USB_HUB, 0xf18a0e88, 0xc30c, 0x11d0, 0x88, 0x15, 0x00, \ + 0xa0, 0xc9, 0x06, 0xbe, 0xd8); + +/*5e9adaef-f879-473f-b807-4e5ea77d1b1c*/ +DEFINE_GUID(GUID_DEVINTERFACE_USB_BILLBOARD, 0x5e9adaef, 0xf879, 0x473f, 0xb8, 0x07, 0x4e, \ + 0x5e, 0xa7, 0x7d, 0x1b, 0x1c); + +/* A5DCBF10-6530-11D2-901F-00C04FB951ED */ +DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE, 0xA5DCBF10L, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, \ + 0xC0, 0x4F, 0xB9, 0x51, 0xED); + +/* 3ABF6F2D-71C4-462a-8A92-1E6861E6AF27 */ +DEFINE_GUID(GUID_DEVINTERFACE_USB_HOST_CONTROLLER, 0x3abf6f2d, 0x71c4, 0x462a, 0x8a, 0x92, 0x1e, \ + 0x68, 0x61, 0xe6, 0xaf, 0x27); + +/* 4E623B20-CB14-11D1-B331-00A0C959BBD2 */ +DEFINE_GUID(GUID_USB_WMI_STD_DATA, 0x4E623B20L, 0xCB14, 0x11D1, 0xB3, 0x31, 0x00,\ + 0xA0, 0xC9, 0x59, 0xBB, 0xD2); + +/* 4E623B20-CB14-11D1-B331-00A0C959BBD2 */ +DEFINE_GUID(GUID_USB_WMI_STD_NOTIFICATION, 0x4E623B20L, 0xCB14, 0x11D1, 0xB3, 0x31, 0x00,\ + 0xA0, 0xC9, 0x59, 0xBB, 0xD2); + +#if (_WIN32_WINNT >= 0x0600) +/* + For windows longhorn and later +*/ + +/* 66C1AA3C-499F-49a0-A9A5-61E2359F6407 */ +DEFINE_GUID(GUID_USB_WMI_DEVICE_PERF_INFO, 0x66c1aa3c, 0x499f, 0x49a0, 0xa9, 0xa5, 0x61, 0xe2,\ + 0x35, 0x9f, 0x64, 0x7); + +// {9C179357-DC7A-4f41-B66B-323B9DDCB5B1} +DEFINE_GUID(GUID_USB_WMI_NODE_INFO, +0x9c179357, 0xdc7a, 0x4f41, 0xb6, 0x6b, 0x32, 0x3b, 0x9d, 0xdc, 0xb5, 0xb1); + +/* 3a61881b-b4e6-4bf9-ae0f-3cd8f394e52f */ +DEFINE_GUID(GUID_USB_WMI_TRACING, +0x3a61881b, 0xb4e6, 0x4bf9, 0xae, 0xf, 0x3c, 0xd8, 0xf3, 0x94, 0xe5, 0x2f); + +// {681EB8AA-403D-452c-9F8A-F0616FAC9540} +DEFINE_GUID(GUID_USB_TRANSFER_TRACING, +0x681eb8aa, 0x403d, 0x452c, 0x9f, 0x8a, 0xf0, 0x61, 0x6f, 0xac, 0x95, 0x40); + +// {D5DE77A6-6AE9-425c-B1E2-F5615FD348A9} +DEFINE_GUID(GUID_USB_PERFORMANCE_TRACING, +0xd5de77a6, 0x6ae9, 0x425c, 0xb1, 0xe2, 0xf5, 0x61, 0x5f, 0xd3, 0x48, 0xa9); + +// {9BBBF831-A2F2-43B4-96D1-86944B5914B3} +DEFINE_GUID(GUID_USB_WMI_SURPRISE_REMOVAL_NOTIFICATION, +0x9bbbf831, 0xa2f2, 0x43b4, 0x96, 0xd1, 0x86, 0x94, 0x4b, 0x59, 0x14, 0xb3); + +#endif + +/* +Obsolete device interface class GUID names. +(use of above GUID_DEVINTERFACE_* names is recommended). +--*/ + +#define GUID_CLASS_USBHUB GUID_DEVINTERFACE_USB_HUB +#define GUID_CLASS_USB_DEVICE GUID_DEVINTERFACE_USB_DEVICE +#define GUID_CLASS_USB_HOST_CONTROLLER GUID_DEVINTERFACE_USB_HOST_CONTROLLER + +#define FILE_DEVICE_USB FILE_DEVICE_UNKNOWN + +/* + common macro used by IOCTL header files +*/ +#define USB_CTL(id) CTL_CODE(FILE_DEVICE_USB, \ + (id), \ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define USB_KERNEL_CTL(id) CTL_CODE(FILE_DEVICE_USB, \ + (id), \ + METHOD_NEITHER, \ + FILE_ANY_ACCESS) + +#define USB_KERNEL_CTL_BUFFERED(id) CTL_CODE(FILE_DEVICE_USB, \ + (id), \ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +/* + structures common to both usbioctl.h and usbdrivr.h +*/ + + +#if (_WIN32_WINNT >= 0x0501) + +/* + used by IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION. + Available on windows XP and later +*/ + + +_IRQL_requires_max_(PASSIVE_LEVEL) +typedef +VOID +(*USB_IDLE_CALLBACK)( + _In_ PVOID Context + ); + +typedef struct _USB_IDLE_CALLBACK_INFO { + USB_IDLE_CALLBACK IdleCallback; + PVOID IdleContext; +} USB_IDLE_CALLBACK_INFO, *PUSB_IDLE_CALLBACK_INFO; + +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif //__USBIODEF_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbprint.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbprint.h new file mode 100644 index 0000000000000000000000000000000000000000..cb933c38ad7fd20a5d7b61d06ecafb12ec44d15b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbprint.h @@ -0,0 +1,138 @@ +/*++ + +Copyright (c) 1998 - 2000 Microsoft Corporation + +Module Name: + + ioctl.h + +Abstract: + + + +Environment: + + Kernel & user mode + +Revision History: + + +--*/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// USBPRINT {28D78FAD-5A12-11d1-AE5B-0000F803A8C2} +DEFINE_GUID(GUID_DEVINTERFACE_USBPRINT, 0x28d78fad, 0x5a12, 0x11d1, 0xae, 0x5b, 0x0, 0x0, 0xf8, 0x3, 0xa8, 0xc2); + +// IPP over USB {f2f40381-f46d-4e51-bce7-62de6cf2d098} +DEFINE_GUID(GUID_DEVINTERFACE_IPPUSB_PRINT, 0xf2f40381, 0xf46d, 0x4e51, 0xbc, 0xe7, 0x62, 0xde, 0x6c, 0xf2, 0xd0, 0x98); + +// USB Printer Interface types +#define USB_PRINTER_INTERFACE_CLASSIC 1 // Has only 7-1-2 alternate config +#define USB_PRINTER_INTERFACE_IPP 2 // Has only 7-1-4 alternate config +#define USB_PRINTER_INTERFACE_DUAL 3 // Has both 7-1-2 and 7-1-4 alternate configs + +// Flags for IOCTL_USBPRINT_ADD_MSIPP_COMPAT_ID +#define USB_PRINT_IPP_COMPAT_ID 1 // add 1284_CID_MS_IPP compatid to child devnode +#define USB_PRINT_IPP_FAXOUT 2 // add PKEY_Printer_IsFaxDevice==TRUE to child devnode + +#define USBPRINT_IOCTL_INDEX 0x0000 + + +#define IOCTL_USBPRINT_GET_LPT_STATUS CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+12,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define IOCTL_USBPRINT_GET_1284_ID CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+13,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define IOCTL_USBPRINT_VENDOR_SET_COMMAND CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+14,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define IOCTL_USBPRINT_VENDOR_GET_COMMAND CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+15,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define IOCTL_USBPRINT_SOFT_RESET CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+16,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +// +// Retrieve the current printer protocol code (i.e. USB_PRINTER_PROTOCOL_IPPOVERUSB) +// +#define IOCTL_USBPRINT_GET_PROTOCOL CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+17,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +// +// Set the current printer protocol code (i.e. USB_PRINTER_PROTOCOL_IPPOVERUSB). +// +#define IOCTL_USBPRINT_SET_PROTOCOL CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+18,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +// +// Get the printer protocol capabilities (i.e. USB_PRINTER_INTERFACE_DUAL) +// +#define IOCTL_USBPRINT_GET_INTERFACE_TYPE CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+19,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +// +// Set the port number for this interface. +// +#define IOCTL_USBPRINT_SET_PORT_NUMBER CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+20,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +// +// Mark whether the MSIPP compat id should be added, and indicate Fax. +// +#define IOCTL_USBPRINT_ADD_MSIPP_COMPAT_ID CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+21,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +// +// Set the device id string based on the specified 1284 id string. +// +#define IOCTL_USBPRINT_SET_DEVICE_ID CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+22,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +// +// Add the child devnode which informs PNP printer driver matching. +// +#define IOCTL_USBPRINT_ADD_CHILD_DEVICE CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+23,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define IOCTL_USBPRINT_CYCLE_PORT CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+24,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define IOCTL_USBPRINT_GET_MFG_MDL_ID CTL_CODE(FILE_DEVICE_UNKNOWN, \ + USBPRINT_IOCTL_INDEX+25,\ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbscan.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbscan.h new file mode 100644 index 0000000000000000000000000000000000000000..2dce550eec7286eabe2db7b9adf5a9960b7bd470 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbscan.h @@ -0,0 +1,165 @@ +/*++ + +Copyright (c) Microsoft Corporation. + +Module Name: + UsbScan.h + +Abstract: + Interface with UsbScan kernel driver + +Environment: + User and kernel mode use + +Notes: + Interface definition for USB still image driver. + +--*/ + +#if (NTDDI_VERSION >= NTDDI_WIN2K) + +#ifndef _USBSCAN_H_ +#define _USBSCAN_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#pragma pack(push,8) + +#ifndef MAX_NUM_PIPES + #define MAX_NUM_PIPES 8 +#endif + +#define BULKIN_FLAG 0x80 + +typedef struct _DRV_VERSION { + _Out_ unsigned major; + _Out_ unsigned minor; + _Out_ unsigned internal; +} DRV_VERSION, *PDRV_VERSION; + +typedef struct _IO_BLOCK { + _In_ unsigned uOffset; + _In_ unsigned uLength; + _Inout_updates_bytes_(uLength) PUCHAR pbyData; + _In_ unsigned uIndex; +} IO_BLOCK, *PIO_BLOCK; + +typedef struct _IO_BLOCK_EX { + _In_ unsigned uOffset; + _In_ unsigned uLength; + _Inout_updates_bytes_(uLength) PUCHAR pbyData; + _In_ unsigned uIndex; + + // + // Following two fields are described in sec. 9.3.1,2 USB specification + // + _In_ UCHAR bRequest; // Specific request + _In_ UCHAR bmRequestType; // Bitmap - charateristics of request + _In_ UCHAR fTransferDirectionIn; // TRUE - Device-->Host; FALSE - Host-->Device + +} IO_BLOCK_EX, *PIO_BLOCK_EX; + + +typedef struct _CHANNEL_INFO { + _Out_ unsigned EventChannelSize; + _Out_ unsigned uReadDataAlignment; + _Out_ unsigned uWriteDataAlignment; +} CHANNEL_INFO, *PCHANNEL_INFO; + +typedef enum { + EVENT_PIPE, + READ_DATA_PIPE, + WRITE_DATA_PIPE, + ALL_PIPE +} PIPE_TYPE; + + +typedef struct _USBSCAN_GET_DESCRIPTOR { + _In_ UCHAR DescriptorType; // high byte of wValue field in USB spec. + _In_ UCHAR Index; // low byte of wValue field in USB spec. + _In_ USHORT LanguageId; // wIndex field in USB spec. +} USBSCAN_GET_DESCRIPTOR, *PUSBSCAN_GET_DESCRIPTOR; + + +// +// The device descriptor structure reports information define in the hardware. +// If there is enough space to copy the strings, it will be done otherwise +// only the three first fields: +// +// USHORT usVendorId; +// USHORT usProductId; +// USHORT usBcdDevice; +// +// will contain valid data. Remember: The strings are UNICODE format. +// + +typedef struct _DEVICE_DESCRIPTOR { + _Out_ USHORT usVendorId; + _Out_ USHORT usProductId; + _Out_ USHORT usBcdDevice; + _Out_ USHORT usLanguageId; +} DEVICE_DESCRIPTOR, *PDEVICE_DESCRIPTOR; + +typedef enum _RAW_PIPE_TYPE { + USBSCAN_PIPE_CONTROL, + USBSCAN_PIPE_ISOCHRONOUS, + USBSCAN_PIPE_BULK, + USBSCAN_PIPE_INTERRUPT +} RAW_PIPE_TYPE; + +typedef struct _USBSCAN_PIPE_INFORMATION { + USHORT MaximumPacketSize; // Maximum packet size for this pipe + UCHAR EndpointAddress; // 8 bit USB endpoint address (includes direction) + UCHAR Interval; // Polling interval in ms if interrupt pipe + RAW_PIPE_TYPE PipeType; // PipeType identifies type of transfer valid for this pipe +} USBSCAN_PIPE_INFORMATION, *PUSBSCAN_PIPE_INFORMATION; + +typedef struct _USBSCAN_PIPE_CONFIGURATION { + _Out_ ULONG NumberOfPipes; + _Out_writes_(NumberOfPipes) USBSCAN_PIPE_INFORMATION PipeInfo[MAX_NUM_PIPES]; +} USBSCAN_PIPE_CONFIGURATION, *PUSBSCAN_PIPE_CONFIGURATION; + +#if (NTDDI_VERSION >= NTDDI_WINXP) +typedef struct _USBSCAN_TIMEOUT { + ULONG TimeoutRead; + ULONG TimeoutWrite; + ULONG TimeoutEvent; +} USBSCAN_TIMEOUT, *PUSBSCAN_TIMEOUT; +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + +#define FILE_DEVICE_USB_SCAN 0x8000 +#define IOCTL_INDEX 0x0800 + +#define IOCTL_GET_VERSION CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX, METHOD_BUFFERED,FILE_ANY_ACCESS) +#define IOCTL_CANCEL_IO CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+1, METHOD_BUFFERED,FILE_ANY_ACCESS) +#define IOCTL_WAIT_ON_DEVICE_EVENT CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+2, METHOD_BUFFERED,FILE_ANY_ACCESS) +#define IOCTL_READ_REGISTERS CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+3, METHOD_BUFFERED,FILE_ANY_ACCESS) +#define IOCTL_WRITE_REGISTERS CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+4, METHOD_BUFFERED,FILE_ANY_ACCESS) +#define IOCTL_GET_CHANNEL_ALIGN_RQST CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+5, METHOD_BUFFERED,FILE_ANY_ACCESS) +#define IOCTL_GET_DEVICE_DESCRIPTOR CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+6, METHOD_BUFFERED,FILE_ANY_ACCESS) +#define IOCTL_RESET_PIPE CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+7, METHOD_BUFFERED,FILE_ANY_ACCESS) +#define IOCTL_GET_USB_DESCRIPTOR CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+8, METHOD_BUFFERED,FILE_ANY_ACCESS) +#define IOCTL_SEND_USB_REQUEST CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+9, METHOD_BUFFERED,FILE_ANY_ACCESS) +#define IOCTL_GET_PIPE_CONFIGURATION CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+10,METHOD_BUFFERED,FILE_ANY_ACCESS) + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define IOCTL_SET_TIMEOUT CTL_CODE(FILE_DEVICE_USB_SCAN,IOCTL_INDEX+11,METHOD_BUFFERED,FILE_ANY_ACCESS) +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + +// +// Temporary to avoid breaking LOGISCAN code +// +#define ALL ALL_PIPE +#define IOCTL_ABORT_PIPE IOCTL_CANCEL_IO +// +// +#pragma pack(pop) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _USBSCAN_H_ + +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbspec.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbspec.h new file mode 100644 index 0000000000000000000000000000000000000000..9a5d9a0cfa4a0fa55553def15a640904b96e9b17 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/usbspec.h @@ -0,0 +1,1273 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +// +// This header file contains definitions based on information contained +// in the following Universal Serial Bus Specifications: +// +// Universal Serial Bus Specification, Revision 1.1, September 23, 1998 +// Universal Serial Bus Specification, Revision 2.0, April 27, 2000 +// Universal Serial Bus 3.0 Specification, Revision 1.0, November 12, 2008 +// Universal Serial Bus 3.1 Specification, Revision 1.0, July 26, 2013 +// +// Refer to the referenced sections in these specifications for further +// information. +// + +#ifndef __USBSPEC_H__ +#define __USBSPEC_H__ +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#include + +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif +#pragma warning(disable:4201) // nameless struct/union +#pragma warning(disable:4214) // bit field types other than int + +// +// These definitions are not USB specification definitions and do not +// belong in this header file. They are only here to preserve +// compatibility with the previous usb200.h header file. +// +typedef enum _USB_DEVICE_SPEED { + UsbLowSpeed = 0, + UsbFullSpeed, + UsbHighSpeed, + UsbSuperSpeed +} USB_DEVICE_SPEED; + +typedef enum _USB_DEVICE_TYPE { + Usb11Device = 0, + Usb20Device +} USB_DEVICE_TYPE; + + + +// +// Chapter 9 USB Device Framework +// + +// +// USB 1.1: 9.3 USB Device Requests, Table 9-2. Format of Setup Data +// USB 2.1: 9.3 USB Device Requests, Table 9-2. Format of Setup Data +// USB 3.0: 9.3 USB Device Requests, Table 9-2. Format of Setup Data +// +typedef union _BM_REQUEST_TYPE { + struct _BM { + UCHAR Recipient:2; + UCHAR Reserved:3; + UCHAR Type:2; + UCHAR Dir:1; +#ifdef __cplusplus + } s; +#else + }; +#endif + UCHAR B; +} BM_REQUEST_TYPE, *PBM_REQUEST_TYPE; + +typedef struct _USB_DEFAULT_PIPE_SETUP_PACKET { + BM_REQUEST_TYPE bmRequestType; + UCHAR bRequest; + + union _wValue { + struct { + UCHAR LowByte; + UCHAR HiByte; + }; + USHORT W; + } wValue; + + union _wIndex { + struct { + UCHAR LowByte; + UCHAR HiByte; + }; + USHORT W; + } wIndex; + USHORT wLength; +} USB_DEFAULT_PIPE_SETUP_PACKET, *PUSB_DEFAULT_PIPE_SETUP_PACKET; + +C_ASSERT(sizeof(USB_DEFAULT_PIPE_SETUP_PACKET) == 8); + +// +// bmRequestType.Dir +// +#define BMREQUEST_HOST_TO_DEVICE 0 +#define BMREQUEST_DEVICE_TO_HOST 1 + +// +// bmRequestType.Type +#define BMREQUEST_STANDARD 0 +#define BMREQUEST_CLASS 1 +#define BMREQUEST_VENDOR 2 + +// +// bmRequestType.Recipient +// +#define BMREQUEST_TO_DEVICE 0 +#define BMREQUEST_TO_INTERFACE 1 +#define BMREQUEST_TO_ENDPOINT 2 +#define BMREQUEST_TO_OTHER 3 + +// +// wValue for Get Descriptor request +// +#define USB_DESCRIPTOR_MAKE_TYPE_AND_INDEX(d, i) ((USHORT)((USHORT)d<<8 | i)) + +// +// USB 1.1: 9.4 Standard Device Requests, Table 9-4. Standard Request Codes +// USB 2.0: 9.4 Standard Device Requests, Table 9-4. Standard Request Codes +// +#define USB_REQUEST_GET_STATUS 0x00 +#define USB_REQUEST_CLEAR_FEATURE 0x01 +#define USB_REQUEST_SET_FEATURE 0x03 +#define USB_REQUEST_SET_ADDRESS 0x05 +#define USB_REQUEST_GET_DESCRIPTOR 0x06 +#define USB_REQUEST_SET_DESCRIPTOR 0x07 +#define USB_REQUEST_GET_CONFIGURATION 0x08 +#define USB_REQUEST_SET_CONFIGURATION 0x09 +#define USB_REQUEST_GET_INTERFACE 0x0A +#define USB_REQUEST_SET_INTERFACE 0x0B +#define USB_REQUEST_SYNC_FRAME 0x0C + +#define USB_REQUEST_GET_FIRMWARE_STATUS 0x1A +#define USB_REQUEST_SET_FIRMWARE_STATUS 0x1B + +// +// wValue field options for USB_REQUEST_GET_FIRMWARE_STATUS +// + +#define USB_GET_FIRMWARE_ALLOWED_OR_DISALLOWED_STATE 0x00 +#define USB_GET_FIRMWARE_HASH 0x01 + +#define USB_DEVICE_FIRMWARE_HASH_LENGTH 32 + +// +// wValue field options for USB_REQUEST_SET_FIRMWARE_STATUS +// + +#define USB_DISALLOW_FIRMWARE_UPDATE 0x00 +#define USB_ALLOW_FIRMWARE_UPDATE 0x01 + +// +// USB 3.0: 9.4 Standard Device Requests, Table 9-4. Standard Request Codes +// +#define USB_REQUEST_SET_SEL 0x30 +#define USB_REQUEST_ISOCH_DELAY 0x31 + +// +// USB 1.1: 9.4 Standard Device Requests, Table 9-5. Descriptor Types +// +#define USB_DEVICE_DESCRIPTOR_TYPE 0x01 +#define USB_CONFIGURATION_DESCRIPTOR_TYPE 0x02 +#define USB_STRING_DESCRIPTOR_TYPE 0x03 +#define USB_INTERFACE_DESCRIPTOR_TYPE 0x04 +#define USB_ENDPOINT_DESCRIPTOR_TYPE 0x05 +// +// USB 2.0: 9.4 Standard Device Requests, Table 9-5. Descriptor Types +// +#define USB_DEVICE_QUALIFIER_DESCRIPTOR_TYPE 0x06 +#define USB_OTHER_SPEED_CONFIGURATION_DESCRIPTOR_TYPE 0x07 +#define USB_INTERFACE_POWER_DESCRIPTOR_TYPE 0x08 +#define EUSB2_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR_TYPE 0x12 + +// +// USB 3.0: 9.4 Standard Device Requests, Table 9-5. Descriptor Types +// +#define USB_OTG_DESCRIPTOR_TYPE 0x09 +#define USB_DEBUG_DESCRIPTOR_TYPE 0x0A +#define USB_INTERFACE_ASSOCIATION_DESCRIPTOR_TYPE 0x0B +#define USB_BOS_DESCRIPTOR_TYPE 0x0F +#define USB_DEVICE_CAPABILITY_DESCRIPTOR_TYPE 0x10 +#define USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_TYPE 0x30 +// +// USB 3.1: 9.4 Standard Device Requests, Table 9-6. Descriptor Types +// +#define USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR_TYPE 0x31 +// +// Legacy definitions, do not use. +// +#define USB_RESERVED_DESCRIPTOR_TYPE 0x06 +#define USB_CONFIG_POWER_DESCRIPTOR_TYPE 0x07 + +// +// USB 1.1: 9.4 Standard Device Requests, Table 9-6. Standard Feature Selectors +// +#define USB_FEATURE_ENDPOINT_STALL 0x00 +#define USB_FEATURE_REMOTE_WAKEUP 0x01 +// +// USB 2.0: 9.4 Standard Device Requests, Table 9-6. Standard Feature Selectors +// +#define USB_FEATURE_TEST_MODE 0x02 +// +// USB 3.0: 9.4 Standard Device Requests, Table 9-6. Standard Feature Selectors +// +#define USB_FEATURE_FUNCTION_SUSPEND 0x00 +#define USB_FEATURE_U1_ENABLE 0x30 +#define USB_FEATURE_U2_ENABLE 0x31 +#define USB_FEATURE_LTM_ENABLE 0x32 +// +// USB 3.1: 9.4 Standard Device Requests, Table 9-7. Standard Feature Selectors +// +#define USB_FEATURE_LDM_ENABLE 0x35 + +// +// USBPD Rev2.0: 9.3.1 Class-specific Device Requests, Table 9-8 PD. Class Feature Selectors +// +#define USB_FEATURE_BATTERY_WAKE_MASK 0x28 +#define USB_FEATURE_OS_IS_PD_AWARE 0x29 +#define USB_FEATURE_POLICY_MODE 0x2A +#define USB_FEATURE_CHARGING_POLICY 0x36 + +// +// USBPD Rev2.0: 9.4.5.4 CHARGING_POLICY Feature Selector +// +#define USB_CHARGING_POLICY_DEFAULT 0x00 +#define USB_CHARGING_POLICY_ICCHPF 0x01 +#define USB_CHARGING_POLICY_ICCLPF 0x02 +#define USB_CHARGING_POLICY_NO_POWER 0x03 + +// +// USB 3.1: 10.16.2.6 Get Port Status, Table 10-12. Port Status Type Codes +// +#define USB_STATUS_PORT_STATUS 0x00 +#define USB_STATUS_PD_STATUS 0x01 +#define USB_STATUS_EXT_PORT_STATUS 0x02 + +// +// USB 1.1: 9.4.5 Get Status, Figure 9-4. Information Returned by a GetStatus() Request to a Device +// USB 2.0: 9.4.5 Get Status, Figure 9-4. Information Returned by a GetStatus() Request to a Device +// +#define USB_GETSTATUS_SELF_POWERED 0x01 +#define USB_GETSTATUS_REMOTE_WAKEUP_ENABLED 0x02 +// +// USB 3.0: 9.4.5 Get Status, Figure 9-5. Information Returned by a GetStatus() Request to a Device +// +#define USB_GETSTATUS_U1_ENABLE 0x04 +#define USB_GETSTATUS_U2_ENABLE 0x08 +#define USB_GETSTATUS_LTM_ENABLE 0x10 + +typedef union _USB_DEVICE_STATUS { + USHORT AsUshort16; + struct { + USHORT SelfPowered:1; + USHORT RemoteWakeup:1; + USHORT U1Enable:1; // (USB 1.1, USB 2.0 Reserved) + USHORT U2Enable:1; // (USB 1.1, USB 2.0 Reserved) + USHORT LtmEnable:1; // (USB 1.1, USB 2.0 Reserved) + USHORT Reserved:11; + }; +} USB_DEVICE_STATUS, *PUSB_DEVICE_STATUS; + +C_ASSERT(sizeof(USB_DEVICE_STATUS) == sizeof(USHORT)); + +// +// USB 3.0: 9.4.5 Get Status, Figure 9-6. Information Returned by a GetStatus() Request to an Interface +// +typedef union _USB_INTERFACE_STATUS { + USHORT AsUshort16; + struct { + USHORT RemoteWakeupCapable:1; + USHORT RemoteWakeupEnabled:1; + USHORT Reserved:14; + }; +} USB_INTERFACE_STATUS, *PUSB_INTERFACE_STATUS; + +C_ASSERT(sizeof(USB_INTERFACE_STATUS) == sizeof(USHORT)); + +// +// USB 1.1: 9.4.5 Get Status, Figure 9-6. Information Returned by a GetStatus() Request to an Endpoint +// USB 2.0: 9.4.5 Get Status, Figure 9-6. Information Returned by a GetStatus() Request to an Endpoint +// USB 3.0: 9.4.5 Get Status, Figure 9-7. Information Returned by a GetStatus() Request to an Endpoint +// +typedef union _USB_ENDPOINT_STATUS { + USHORT AsUshort16; + struct { + USHORT Halt:1; + USHORT Reserved:15; + }; +} USB_ENDPOINT_STATUS, *PUSB_ENDPOINT_STATUS; + +C_ASSERT(sizeof(USB_ENDPOINT_STATUS) == sizeof(USHORT)); + + +typedef struct _USB_COMMON_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; +} USB_COMMON_DESCRIPTOR, *PUSB_COMMON_DESCRIPTOR; + +// +// USB 1.1: 9.6.1 Device, Table 9-7. Standard Device Descriptor +// USB 2.0: 9.6.1 Device, Table 9-8. Standard Device Descriptor +// USB 3.0: 9.6.1 Device, Table 9-8. Standard Device Descriptor +// +typedef struct _USB_DEVICE_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + USHORT bcdUSB; + UCHAR bDeviceClass; + UCHAR bDeviceSubClass; + UCHAR bDeviceProtocol; + UCHAR bMaxPacketSize0; + USHORT idVendor; + USHORT idProduct; + USHORT bcdDevice; + UCHAR iManufacturer; + UCHAR iProduct; + UCHAR iSerialNumber; + UCHAR bNumConfigurations; +} USB_DEVICE_DESCRIPTOR, *PUSB_DEVICE_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_DESCRIPTOR) == 18); + +// +// With the exception of the HUB device class, USB class codes are not +// defined in the core USB 1.1, 2.0, 3.0 specifications. +// +#define USB_DEVICE_CLASS_RESERVED 0x00 +#define USB_DEVICE_CLASS_AUDIO 0x01 +#define USB_DEVICE_CLASS_COMMUNICATIONS 0x02 +#define USB_DEVICE_CLASS_HUMAN_INTERFACE 0x03 +#define USB_DEVICE_CLASS_MONITOR 0x04 +#define USB_DEVICE_CLASS_PHYSICAL_INTERFACE 0x05 +#define USB_DEVICE_CLASS_POWER 0x06 +#define USB_DEVICE_CLASS_IMAGE 0x06 +#define USB_DEVICE_CLASS_PRINTER 0x07 +#define USB_DEVICE_CLASS_STORAGE 0x08 +#define USB_DEVICE_CLASS_HUB 0x09 +#define USB_DEVICE_CLASS_CDC_DATA 0x0A +#define USB_DEVICE_CLASS_SMART_CARD 0x0B +#define USB_DEVICE_CLASS_CONTENT_SECURITY 0x0D +#define USB_DEVICE_CLASS_VIDEO 0x0E +#define USB_DEVICE_CLASS_PERSONAL_HEALTHCARE 0x0F +#define USB_DEVICE_CLASS_AUDIO_VIDEO 0x10 +#define USB_DEVICE_CLASS_BILLBOARD 0x11 +#define USB_DEVICE_CLASS_DIAGNOSTIC_DEVICE 0xDC +#define USB_DEVICE_CLASS_WIRELESS_CONTROLLER 0xE0 +#define USB_DEVICE_CLASS_MISCELLANEOUS 0xEF +#define USB_DEVICE_CLASS_APPLICATION_SPECIFIC 0xFE +#define USB_DEVICE_CLASS_VENDOR_SPECIFIC 0xFF + +// +// USB 2.0: 9.6.2 Device_Qualifier, Table 9-9. Device_Qualifier Descriptor +// +typedef struct _USB_DEVICE_QUALIFIER_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + USHORT bcdUSB; + UCHAR bDeviceClass; + UCHAR bDeviceSubClass; + UCHAR bDeviceProtocol; + UCHAR bMaxPacketSize0; + UCHAR bNumConfigurations; + UCHAR bReserved; +} USB_DEVICE_QUALIFIER_DESCRIPTOR, *PUSB_DEVICE_QUALIFIER_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_QUALIFIER_DESCRIPTOR) == 10); + +// +// USB 3.0: 9.6.2 Binary Device Object Store (BOS), Table 9-9. BOS Descriptor +// +typedef struct _USB_BOS_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + USHORT wTotalLength; + UCHAR bNumDeviceCaps; +} USB_BOS_DESCRIPTOR, *PUSB_BOS_DESCRIPTOR; + +C_ASSERT(sizeof(USB_BOS_DESCRIPTOR) == 5); + +// +// USB 3.1: 9.6.2 Binary Device Object Store (BOS), Table 9-14. Device Capability Type Codes +// +#define USB_DEVICE_CAPABILITY_WIRELESS_USB 0x01 +#define USB_DEVICE_CAPABILITY_USB20_EXTENSION 0x02 +#define USB_DEVICE_CAPABILITY_SUPERSPEED_USB 0x03 +#define USB_DEVICE_CAPABILITY_CONTAINER_ID 0x04 +#define USB_DEVICE_CAPABILITY_PLATFORM 0x05 +#define USB_DEVICE_CAPABILITY_POWER_DELIVERY 0x06 +#define USB_DEVICE_CAPABILITY_BATTERY_INFO 0x07 +#define USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT 0x08 +#define USB_DEVICE_CAPABILITY_PD_PROVIDER_PORT 0x09 +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB 0x0A +#define USB_DEVICE_CAPABILITY_PRECISION_TIME_MEASUREMENT 0x0B +#define USB_DEVICE_CAPABILITY_BILLBOARD 0x0D +#define USB_DEVICE_CAPABILITY_FIRMWARE_STATUS 0x11 + +// +// USB 2.0 ECN: Link Power Management (LPM), 3. Framework: USB Device Capabilities - USB 2.0 Extension, +// Table 3-1. USB Device Capabilities - USB 2.0 Extension Descriptor +// USB 3.0: 9.6.2.1 USB 2.0 Extension, Table 9-12. USB 2.0 Extension Descriptor +// +typedef struct _USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; + union { + ULONG AsUlong; + struct { + ULONG Reserved:1; + ULONG LPMCapable:1; + ULONG BESLAndAlternateHIRDSupported:1; + ULONG BaselineBESLValid:1; + ULONG DeepBESLValid:1; + ULONG Reserved1:3; + ULONG BaselineBESL:4; + ULONG DeepBESL:4; + ULONG Reserved2:16; + }; + } bmAttributes; +} USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR, *PUSB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR) == 7); + +#define USB_DEVICE_CAPABILITY_USB20_EXTENSION_BMATTRIBUTES_RESERVED_MASK 0xFFFF00E1 + +// +// USBPD Rev2.0: 9.2.1 USB Power Delivery Capability Descriptor, Table 9-2. USB Power Delivery Capability Descriptor +// +typedef struct _USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; + UCHAR bReserved; + union { + ULONG AsUlong; + struct { + ULONG Reserved1:1; + ULONG BatteryCharging:1; + ULONG USBPowerDelivery:1; + ULONG Provider:1; + ULONG Consumer:1; + ULONG ChargingPolicy:1; + ULONG TypeCCurrent:1; + ULONG Reserved2:1; + ULONG ACSupply:1; + ULONG Battery:1; + ULONG Other:1; + ULONG NumBatteries:3; + ULONG UsesVbus:1; + ULONG Reserved3:17; + }; + } bmAttributes; + USHORT bmProviderPorts; + USHORT bmConsumerPorts; + USHORT bcdBCVersion; + USHORT bcdPDVersion; + USHORT bcdUSBTypeCVersion; +} USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR, *PUSB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR) == 18); + +// +// USBPD Rev2.0: 9.2.3 PD Consumer Port Capability Descriptor, Table 9-4. PD Consumer Port Descriptor +// +typedef struct _USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; + UCHAR bReserved; + union { + USHORT AsUshort; + struct { + USHORT BatteryCharging:1; + USHORT USBPowerDelivery:1; + USHORT USBTypeCCurrent:1; + USHORT Reserved:13; + }; + } bmCapabilities; + USHORT wMinVoltage; + USHORT wMaxVoltage; + USHORT wReserved; + ULONG dwMaxOperatingPower; + ULONG dwMaxPeakPower; + ULONG dwMaxPeakPowerTime; +} USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR, *PUSB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR) == 24); + +// +// USB 3.0: 9.6.2.2 SuperSpeed USB Device Capability, Table 9-13. SuperSpeed Device Capabilities Descriptor +// +typedef struct _USB_DEVICE_CAPABILITY_SUPERSPEED_USB_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; + UCHAR bmAttributes; // needs bitfield definitions + USHORT wSpeedsSupported; // needs bitfield definitions + UCHAR bFunctionalitySupport; + UCHAR bU1DevExitLat; + USHORT wU2DevExitLat; +} USB_DEVICE_CAPABILITY_SUPERSPEED_USB_DESCRIPTOR, *PUSB_DEVICE_CAPABILITY_SUPERSPEED_USB_DESCRIPTOR; + +#define USB_DEVICE_CAPABILITY_SUPERSPEED_BMATTRIBUTES_RESERVED_MASK 0xFD +#define USB_DEVICE_CAPABILITY_SUPERSPEED_BMATTRIBUTES_LTM_CAPABLE 0x02 + +#define USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_RESERVED_MASK 0xFFF0 +#define USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_LOW 0x0001 +#define USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_FULL 0x0002 +#define USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_HIGH 0x0004 +#define USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_SUPER 0x0008 + +#define USB_DEVICE_CAPABILITY_SUPERSPEED_U1_DEVICE_EXIT_MAX_VALUE 0x0A + +#define USB_DEVICE_CAPABILITY_SUPERSPEED_U2_DEVICE_EXIT_MAX_VALUE 0x07FF + +C_ASSERT(sizeof(USB_DEVICE_CAPABILITY_SUPERSPEED_USB_DESCRIPTOR) == 10); + +#define USB_DEVICE_CAPABILITY_MAX_U1_LATENCY 0x0A +#define USB_DEVICE_CAPABILITY_MAX_U2_LATENCY 0x07FF + +// +// USB 3.1: 9.6.2.5 SuperSpeedPlus USB Device Capability, Table 9-19. SuperSpeedPlus Device Capabilities Descriptor +// +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_BPS 0 +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_KBPS 1 +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_MBPS 2 +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_GBPS 3 + +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_MODE_SYMMETRIC 0 +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_MODE_ASYMMETRIC 1 +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_DIR_RX 0 +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_DIR_TX 1 + +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_PROTOCOL_SS 0 +#define USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_PROTOCOL_SSP 1 + +typedef union _USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED { + ULONG AsUlong32; + struct { + ULONG SublinkSpeedAttrID:4; + ULONG LaneSpeedExponent:2; + ULONG SublinkTypeMode:1; + ULONG SublinkTypeDir:1; + ULONG Reserved:6; + ULONG LinkProtocol:2; + ULONG LaneSpeedMantissa:16; + }; +} USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED, *PUSB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED; + +typedef struct _USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; + UCHAR bReserved; + union { + ULONG AsUlong; + struct { + ULONG SublinkSpeedAttrCount:5; + ULONG SublinkSpeedIDCount:4; + ULONG Reserved:23; + }; + } bmAttributes; + union { + USHORT AsUshort; + struct { + USHORT SublinkSpeedAttrID:4; + USHORT Reserved:4; + USHORT MinRxLaneCount:4; + USHORT MinTxLaneCount:4; + }; + } wFunctionalitySupport; + USHORT wReserved; + USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED bmSublinkSpeedAttr[1]; +} USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR, *PUSB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR) == 16); + +// +// USB 3.0: 9.6.2.3 Container ID, Table 9-14. Container ID Descriptor +// +typedef struct _USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; + UCHAR bReserved; + UCHAR ContainerID[16]; +} USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR, *PUSB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR) == 20); + +// +// USB Device Capability Platform Descriptor +// +typedef struct _USB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; + UCHAR bReserved; + GUID PlatformCapabilityUuid; + UCHAR CapabililityData[1]; +} USB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR, *PUSB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR) == 21); + +// +// USB Billboard 1.0: Section 3.1.5.2, Table 3-6. Billboard Capability Descriptor +// +typedef struct _USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; + UCHAR iAddtionalInfoURL; + UCHAR bNumberOfAlternateModes; + UCHAR bPreferredAlternateMode; + union { + USHORT AsUshort; + struct { + USHORT VConnPowerNeededForFullFunctionality:3; + USHORT Reserved:12; + USHORT NoVconnPowerRequired:1; + }; + } VconnPower; + UCHAR bmConfigured[32]; + ULONG bReserved; + struct { + USHORT wSVID; + UCHAR bAlternateMode; + UCHAR iAlternateModeSetting; + } AlternateMode[1]; +} USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR, *PUSB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR) == 48); + +// +// USB 3.2 ECN: USB FW Update +// +typedef struct _USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; + UCHAR bcdDescriptorVersion; + union { + ULONG AsUlong; + struct { + ULONG GetFirmwareImageHashSupport:1; + ULONG DisallowFirmwareUpdateSupport:1; + ULONG Reserved:30; + }; + } bmAttributes; +} USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR, *PUSB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR) == 8); + +// {D8DD60DF-4589-4CC7-9CD2-659D9E648A9F} +DEFINE_GUID(GUID_USB_MSOS20_PLATFORM_CAPABILITY_ID, +0xD8DD60DF, 0x4589, 0x4CC7, 0x9C, 0xD2, 0x65, 0x9D, 0x9E, 0x64, 0x8A, 0x9F); + +// +// USB 3.0: 9.6.2 Binary Device Object Store, Table 9-10. Device Capability Descriptor +// +typedef struct _USB_DEVICE_CAPABILITY_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; +} USB_DEVICE_CAPABILITY_DESCRIPTOR, *PUSB_DEVICE_CAPABILITY_DESCRIPTOR; + +C_ASSERT(sizeof(USB_DEVICE_CAPABILITY_DESCRIPTOR) == 3); +// +// USB 1.1: 9.6.2 Configuration, Table 9-8. Standard Configuration Descriptor +// USB 2.0: 9.6.3 Configuration, Table 9-10. Standard Configuration Descriptor +// USB 3.0: 9.6.3 Configuration, Table 9-15. Standard Configuration Descriptor +// +typedef struct _USB_CONFIGURATION_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + USHORT wTotalLength; + UCHAR bNumInterfaces; + UCHAR bConfigurationValue; + UCHAR iConfiguration; + UCHAR bmAttributes; + UCHAR MaxPower; +} USB_CONFIGURATION_DESCRIPTOR, *PUSB_CONFIGURATION_DESCRIPTOR; + +C_ASSERT(sizeof(USB_CONFIGURATION_DESCRIPTOR) == 9); + +// +// Configuration Descriptor bmAttributes bit definitions +// +#define USB_CONFIG_POWERED_MASK 0xC0 +#define USB_CONFIG_BUS_POWERED 0x80 +#define USB_CONFIG_SELF_POWERED 0x40 +#define USB_CONFIG_REMOTE_WAKEUP 0x20 +#define USB_CONFIG_RESERVED 0x1F + +// +// USB 2.0 ECN: USB ECN : Interface Association Descriptor, 9.X.Y Interface Association, +// Table 9-Z. Standard Interface Association Descriptor +// USB 3.0: 9.6.4 Interface Association, Table 9-16. Standard Interface Association Descriptor +// +typedef struct _USB_INTERFACE_ASSOCIATION_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bFirstInterface; + UCHAR bInterfaceCount; + UCHAR bFunctionClass; + UCHAR bFunctionSubClass; + UCHAR bFunctionProtocol; + UCHAR iFunction; +} USB_INTERFACE_ASSOCIATION_DESCRIPTOR, *PUSB_INTERFACE_ASSOCIATION_DESCRIPTOR; + +C_ASSERT(sizeof(USB_INTERFACE_ASSOCIATION_DESCRIPTOR) == 8); + +// +// USB 1.1: 9.6.3 Interface, Table 9-9. Standard Interface Descriptor +// USB 2.0: 9.6.5 Interface, Table 9-12. Standard Interface Descriptor +// USB 3.0: 9.6.5 Interface, Table 9-17. Standard Interface Descriptor +// +typedef struct _USB_INTERFACE_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bInterfaceNumber; + UCHAR bAlternateSetting; + UCHAR bNumEndpoints; + UCHAR bInterfaceClass; + UCHAR bInterfaceSubClass; + UCHAR bInterfaceProtocol; + UCHAR iInterface; +} USB_INTERFACE_DESCRIPTOR, *PUSB_INTERFACE_DESCRIPTOR; + +C_ASSERT(sizeof(USB_INTERFACE_DESCRIPTOR) == 9); + +// +// USB 1.1: 9.6.4 Endpoint, Table 9-10. Standard Endpoint Descriptor +// USB 2.0: 9.6.6 Endpoint, Table 9-13. Standard Endpoint Descriptor +// USB 3.0: 9.6.6 Endpoint, Table 9-18. Standard Endpoint Descriptor +// +typedef struct _USB_ENDPOINT_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bEndpointAddress; + UCHAR bmAttributes; + USHORT wMaxPacketSize; + UCHAR bInterval; +} USB_ENDPOINT_DESCRIPTOR, *PUSB_ENDPOINT_DESCRIPTOR; + +C_ASSERT(sizeof(USB_ENDPOINT_DESCRIPTOR) == 7); + +// +// USB_ENDPOINT_DESCRIPTOR bEndpointAddress bit 7 +// +#define USB_ENDPOINT_DIRECTION_MASK 0x80 +#define USB_ENDPOINT_DIRECTION_OUT(addr) (!((addr) & USB_ENDPOINT_DIRECTION_MASK)) +#define USB_ENDPOINT_DIRECTION_IN(addr) ((addr) & USB_ENDPOINT_DIRECTION_MASK) + +#define USB_ENDPOINT_ADDRESS_MASK 0x0F + +// +// USB_ENDPOINT_DESCRIPTOR bmAttributes bits 0-1 +// +#define USB_ENDPOINT_TYPE_MASK 0x03 +#define USB_ENDPOINT_TYPE_CONTROL 0x00 +#define USB_ENDPOINT_TYPE_ISOCHRONOUS 0x01 +#define USB_ENDPOINT_TYPE_BULK 0x02 +#define USB_ENDPOINT_TYPE_INTERRUPT 0x03 + +// +// USB_ENDPOINT_DESCRIPTOR bmAttributes bits 7-2 +// + +#define USB_ENDPOINT_TYPE_BULK_RESERVED_MASK 0xFC +#define USB_ENDPOINT_TYPE_CONTROL_RESERVED_MASK 0xFC +#define USB_20_ENDPOINT_TYPE_INTERRUPT_RESERVED_MASK 0xFC +#define USB_30_ENDPOINT_TYPE_INTERRUPT_RESERVED_MASK 0xCC +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_RESERVED_MASK 0xC0 + +#define USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_MASK 0x30 +#define USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_PERIODIC 0x00 +#define USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_NOTIFICATION 0x10 +#define USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_RESERVED10 0x20 +#define USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_RESERVED11 0x30 +#define USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE(bmAttr) (bmAttr & USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_MASK) + +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_MASK 0x0C +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_NO_SYNCHRONIZATION 0x00 +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_ASYNCHRONOUS 0x04 +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_ADAPTIVE 0x08 +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_SYNCHRONOUS 0x0C +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION(bmAttr) (bmAttr & USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_MASK) + +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_MASK 0x30 +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_DATA_ENDOINT 0x00 +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_FEEDBACK_ENDPOINT 0x10 +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_IMPLICIT_FEEDBACK_DATA_ENDPOINT 0x20 +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_RESERVED 0x30 +#define USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE(bmAttr) (bmAttr & USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_MASK) + +// +// USB_ENDPOINT_DESCRIPTOR wMaxPacketSize +// +typedef union _USB_HIGH_SPEED_MAXPACKET { + struct _MP { + USHORT MaxPacket:11; // 0-10 + USHORT HSmux:2; // 11-12 + USHORT Reserved:3; // 13-15 + }; + USHORT us; +} USB_HIGH_SPEED_MAXPACKET, *PUSB_HIGH_SPEED_MAXPACKET; + +C_ASSERT(sizeof(USB_HIGH_SPEED_MAXPACKET) == 2); + +#define USB_ENDPOINT_SUPERSPEED_BULK_MAX_PACKET_SIZE 1024 +#define USB_ENDPOINT_SUPERSPEED_CONTROL_MAX_PACKET_SIZE 512 +#define USB_ENDPOINT_SUPERSPEED_ISO_MAX_PACKET_SIZE 1024 +#define USB_ENDPOINT_SUPERSPEED_INTERRUPT_MAX_PACKET_SIZE 1024 + +// +// USB 1.1: 9.6.5 String, Table 9-12. UNICODE String Descriptor +// USB 2.0: 9.6.7 String, Table 9-16. UNICODE String Descriptor +// USB 3.0: 9.6.8 String, Table 9-22. UNICODE String Descriptor +// +typedef struct _USB_STRING_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + WCHAR bString[1]; +} USB_STRING_DESCRIPTOR, *PUSB_STRING_DESCRIPTOR; + +#define MAXIMUM_USB_STRING_LENGTH 255 + +// +// USB 3.0: 9.6.7 SuperSpeed Endpoint Companion, Table 9-20. SuperSpeed Endpoint Companion Descriptor +// +typedef struct _USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bMaxBurst; + union { + UCHAR AsUchar; + struct { + UCHAR MaxStreams:5; + UCHAR Reserved1:3; + } Bulk; + struct { + UCHAR Mult:2; + UCHAR Reserved2:5; + UCHAR SspCompanion:1; + } Isochronous; + } bmAttributes; + USHORT wBytesPerInterval; +} USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR, *PUSB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR; + +C_ASSERT(sizeof(USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR) == 6); + +#define USB_SUPERSPEED_ISOCHRONOUS_MAX_MULTIPLIER 2 + +// +// USB 3.1: 9.6.8 SuperSpeedPlus Isoch Endpoint Companion, Table 9-27. SuperSpeedPlus Isoch Endpoint Companion Descriptor +// +typedef struct _USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + USHORT wReserved; + ULONG dwBytesPerInterval; +} USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR, *PUSB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR; + +C_ASSERT(sizeof(USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR) == 8); + +#define USB_SUPERSPEEDPLUS_ISOCHRONOUS_MIN_BYTESPERINTERVAL 0xC001 +#define USB_SUPERSPEEDPLUS_ISOCHRONOUS_MAX_BYTESPERINTERVAL 0xFFFFFF + +// +// USB 2.0: 9.6.6.1 eUSB2 Isochronous Endpoint Companion Descriptor, Table 9-X. eUSB2 Isochronous Endpoint Companion Descriptor +// +typedef struct _EUSB2_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + USHORT wMaxPacketSize; + ULONG dwBytesPerInterval; +} EUSB2_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR , *PEUSB2_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR; + +C_ASSERT(sizeof(EUSB2_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR) == 8); + +#define USB_HIGHSPEED_EUSB2_ISOCHRONOUS_MIN_BYTESPERINTERVAL 0x0C01 +#define USB_HIGHSPEED_EUSB2_ISOCHRONOUS_MAX_BYTESPERINTERVAL 0x1800 + + +// +// Chapter 11 Hub Specification (USB 1.1, USB 2.0) +// Chapter 10 Hub, Host Downstream Port, and Device Upstream Port Specification (3.0) +// + +// +// USB 1.1: 11.15.2.1 Hub Descriptor, Table 11-8. Hub Descriptor +// USB 2.0: 11.23.2.1 Hub Descriptor, Table 11-13. Hub Descriptor +// +typedef struct _USB_HUB_DESCRIPTOR { + UCHAR bDescriptorLength; + UCHAR bDescriptorType; + UCHAR bNumberOfPorts; + USHORT wHubCharacteristics; + UCHAR bPowerOnToPowerGood; + UCHAR bHubControlCurrent; + UCHAR bRemoveAndPowerMask[64]; +} USB_HUB_DESCRIPTOR, *PUSB_HUB_DESCRIPTOR; + +#define USB_20_HUB_DESCRIPTOR_TYPE 0x29 + +// +// USB 3.0: 10.13.2.1 Hub Descriptor, Table 10-3. SuperSpeed Hub Descriptor +// +typedef struct _USB_30_HUB_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bNumberOfPorts; + USHORT wHubCharacteristics; + UCHAR bPowerOnToPowerGood; + UCHAR bHubControlCurrent; + UCHAR bHubHdrDecLat; + USHORT wHubDelay; + USHORT DeviceRemovable; +} USB_30_HUB_DESCRIPTOR, *PUSB_30_HUB_DESCRIPTOR; + +#define USB_30_HUB_DESCRIPTOR_TYPE 0x2A + +// +// USB 1.1: 11.16.2 Class-specific Requests, Table 11-11. Hub Class Request Codes +// +#define USB_REQUEST_GET_STATE 0x02 +// +// USB 2.0: 11.24.2 Class-specific Requests, Table 11-16. Hub Class Request Codes +// +#define USB_REQUEST_CLEAR_TT_BUFFER 0x08 +#define USB_REQUEST_RESET_TT 0x09 +#define USB_REQUEST_GET_TT_STATE 0x0A +#define USB_REQUEST_STOP_TT 0x0B +// +// USB 3.0: 10.14.2 Class-specific Requests, Table 10-6. Hub Class Request Codes +// +#define USB_REQUEST_SET_HUB_DEPTH 0x0C +#define USB_REQUEST_GET_PORT_ERR_COUNT 0x0D + +// +// USB 1.1: 11.16.2 Class-specific Requests, Table 11-12. Hub Class Feature Selectors +// USB 2.0: 11.24.2 Class-specific Requests, Table 11-17. Hub Class Feature Selectors +// USB 3.0: 10.14.2 Class-specific Requests, Table 10-7. Hub Class Feature Selectors +// +/* +typedef enum _USB_HUB_FEATURE_SELECTOR { + C_HUB_LOCAL_POWER = 0, + C_HUB_OVER_CURRENT = 1 +} USB_HUB_FEATURE_SELECTOR, *PUSB_HUB_FEATURE_SELECTOR; + +typedef enum _USB_PORT_FEATURE_SELECTOR { + PORT_CONNECTION = 0, + PORT_ENABLE = 1, + PORT_SUSPEND = 2, + PORT_OVER_CURRENT = 3, + PORT_RESET = 4, + PORT_LINK_STATE = 5, + PORT_POWER = 8, + PORT_LOW_SPEED = 9, + C_PORT_CONNECTION = 16, + C_PORT_ENABLE = 17, + C_PORT_SUSPEND = 18, + C_PORT_OVER_CURRENT = 19, + C_PORT_RESET = 20, + PORT_TEST = 21, + PORT_INDICATOR = 22, + PORT_U1_TIMEOUT = 23, + PORT_U2_TIMEOUT = 24, + C_PORT_LINK_STATE = 25, + C_PORT_CONFIG_ERROR = 26, + PORT_REMOTE_WAKE_MASK = 27, + BH_PORT_RESET = 28, + C_BH_PORT_RESET = 29, + FORCE_LINKPM_ACCEPT = 30 +} USB_PORT_FEATURE_SELECTOR, *PUSB_PORT_FEATURE_SELECTOR; +*/ + +// +// USB 1.1: 11.16.2.5 Get Hub Status, Table 11-13. Hub Status Field, wHubStatus +// USB 2.0: 11.24.2.6 Get Hub Status, Table 11-19. Hub Status Field, wHubStatus +// USB 3.0, 10.14.2.4 Get Hub Status, Table 10-8. Hub Status Field, wHubStatus +// +typedef union _USB_HUB_STATUS { + USHORT AsUshort16; + struct { + USHORT LocalPowerLost:1; + USHORT OverCurrent:1; + USHORT Reserved:14; + }; +} USB_HUB_STATUS, *PUSB_HUB_STATUS; + +C_ASSERT(sizeof(USB_HUB_STATUS) == sizeof(USHORT)); + +// +// USB 1.1: 11.16.2.5 Get Hub Status, Table 11-14. Hub Change Field, wHubChange +// USB 2.0: 11.24.2.6 Get Hub Status, Table 11-20. Hub Change Field, wHubChange +// USB 3.0, 10.14.2.4 Get Hub Status, Table 10-9. Hub Change Field, wHubChange +// +typedef union _USB_HUB_CHANGE { + USHORT AsUshort16; + struct { + USHORT LocalPowerChange:1; + USHORT OverCurrentChange:1; + USHORT Reserved:14; + }; +} USB_HUB_CHANGE, *PUSB_HUB_CHANGE; + +C_ASSERT(sizeof(USB_HUB_CHANGE) == sizeof(USHORT)); + +typedef union _USB_HUB_STATUS_AND_CHANGE { + ULONG AsUlong32; + struct { + USB_HUB_STATUS HubStatus; // 0-15 + USB_HUB_CHANGE HubChange; // 16-32 + }; +} USB_HUB_STATUS_AND_CHANGE, *PUSB_HUB_STATUS_AND_CHANGE; + +C_ASSERT(sizeof(USB_HUB_STATUS_AND_CHANGE) == sizeof(ULONG)); + +// +// USB 1.1: 11.16.2.6.1 Port Status Bits, Table 11-15. Port Status Field, wPortStatus +// USB 2.0: 11.24.2.7.1 Port Status Bits, Table 11-21. Port Status Field, wPortStatus +// +typedef union _USB_20_PORT_STATUS { + USHORT AsUshort16; + struct { + USHORT CurrentConnectStatus:1; // 0 + USHORT PortEnabledDisabled:1; // 1 + USHORT Suspend:1; // 2 + USHORT OverCurrent:1; // 3 + USHORT Reset:1; // 4 + USHORT L1:1; // 5 + USHORT Reserved0:2; // 6-7 + USHORT PortPower:1; // 8 + USHORT LowSpeedDeviceAttached:1; // 9 + USHORT HighSpeedDeviceAttached:1; // 10 (USB 1.1 Reserved) + USHORT PortTestMode:1; // 11 (USB 1.1 Reserved) + USHORT PortIndicatorControl:1; // 12 (USB 1.1 Reserved) + USHORT Reserved1:3; // 13-15 + }; +} USB_20_PORT_STATUS, *PUSB_20_PORT_STATUS; + +C_ASSERT(sizeof(USB_20_PORT_STATUS) == sizeof(USHORT)); + +#define USB_PORT_STATUS_CONNECT 0x0001 +#define USB_PORT_STATUS_ENABLE 0x0002 +#define USB_PORT_STATUS_SUSPEND 0x0004 +#define USB_PORT_STATUS_OVER_CURRENT 0x0008 +#define USB_PORT_STATUS_RESET 0x0010 +#define USB_PORT_STATUS_POWER 0x0100 +#define USB_PORT_STATUS_LOW_SPEED 0x0200 +#define USB_PORT_STATUS_HIGH_SPEED 0x0400 + +// +// USB 1.1: 11.16.2.6.2 Port Status Change Bits, Table 11-16. Port Change Field, wPortChange +// USB 2.0: 11.24.2.7.2 Port Status Change Bits, Table 11-22. Port Change Field, wPortChange +// +typedef union _USB_20_PORT_CHANGE { + USHORT AsUshort16; + struct { + USHORT ConnectStatusChange:1; // 0 + USHORT PortEnableDisableChange:1; // 1 + USHORT SuspendChange:1; // 2 + USHORT OverCurrentIndicatorChange:1; // 3 + USHORT ResetChange:1; // 4 + USHORT Reserved2:11; // 5-15 + }; +} USB_20_PORT_CHANGE, *PUSB_20_PORT_CHANGE; + +C_ASSERT(sizeof(USB_20_PORT_CHANGE) == sizeof(USHORT)); + +// +// USB 3.0: 10.14.2.6.1 Port Status Bits, Table 10-10. Port Status Field, wPortStatus +// +typedef union _USB_30_PORT_STATUS { + USHORT AsUshort16; + struct { + USHORT CurrentConnectStatus:1; // 0 + USHORT PortEnabledDisabled:1; // 1 + USHORT Reserved0:1; // 2 + USHORT OverCurrent:1; // 3 + USHORT Reset:1; // 4 + USHORT PortLinkState:4; // 5-8 + USHORT PortPower:1; // 9 + USHORT NegotiatedDeviceSpeed:3; // 10-12 + USHORT Reserved1:3; // 13-15 + }; +} USB_30_PORT_STATUS, *PUSB_30_PORT_STATUS; + +C_ASSERT(sizeof(USB_30_PORT_STATUS) == sizeof(USHORT)); + +#define PORT_LINK_STATE_U0 0 +#define PORT_LINK_STATE_U1 1 +#define PORT_LINK_STATE_U2 2 +#define PORT_LINK_STATE_U3 3 +#define PORT_LINK_STATE_DISABLED 4 +#define PORT_LINK_STATE_RX_DETECT 5 +#define PORT_LINK_STATE_INACTIVE 6 +#define PORT_LINK_STATE_POLLING 7 +#define PORT_LINK_STATE_RECOVERY 8 +#define PORT_LINK_STATE_HOT_RESET 9 +#define PORT_LINK_STATE_COMPLIANCE_MODE 10 +#define PORT_LINK_STATE_LOOPBACK 11 +#define PORT_LINK_STATE_TEST_MODE 11 // xHCI-specific, replacing LOOPBACK + +// +// USB 3.0: 10.14.2.6.2 Port Status Change Bits, Table 10-11. Port Change Field, wPortChange +// +typedef union _USB_30_PORT_CHANGE { + USHORT AsUshort16; + struct { + USHORT ConnectStatusChange:1; // 0 + USHORT Reserved2:2; // 1-2 + USHORT OverCurrentIndicatorChange:1; // 3 + USHORT ResetChange:1; // 4 + USHORT BHResetChange:1; // 5 + USHORT PortLinkStateChange:1; // 6 + USHORT PortConfigErrorChange:1; // 7 + USHORT Reserved3:8; // 8-15 + }; +} USB_30_PORT_CHANGE, *PUSB_30_PORT_CHANGE; + +C_ASSERT(sizeof(USB_30_PORT_CHANGE) == sizeof(USHORT)); + +typedef union _USB_PORT_STATUS { + USHORT AsUshort16; + USB_20_PORT_STATUS Usb20PortStatus; + USB_30_PORT_STATUS Usb30PortStatus; +} USB_PORT_STATUS, *PUSB_PORT_STATUS; + +C_ASSERT(sizeof(USB_PORT_STATUS) == sizeof(USHORT)); + +typedef union _USB_PORT_CHANGE { + USHORT AsUshort16; + USB_20_PORT_CHANGE Usb20PortChange; + USB_30_PORT_CHANGE Usb30PortChange; +} USB_PORT_CHANGE, *PUSB_PORT_CHANGE; + +C_ASSERT(sizeof(USB_PORT_CHANGE) == sizeof(USHORT)); + +typedef union _USB_PORT_EXT_STATUS { + ULONG AsUlong32; + struct { + ULONG RxSublinkSpeedID:4; + ULONG TxSublinkSpeedID:4; + ULONG RxLaneCount:4; + ULONG TxLaneCount:4; + ULONG Reserved:16; + }; +} USB_PORT_EXT_STATUS, *PUSB_PORT_EXT_STATUS; + +C_ASSERT(sizeof(USB_PORT_EXT_STATUS) == sizeof(ULONG)); + +typedef union _USB_PORT_STATUS_AND_CHANGE { + ULONG AsUlong32; + struct { + USB_PORT_STATUS PortStatus; // 0-15 + USB_PORT_CHANGE PortChange; // 16-31 + }; +} USB_PORT_STATUS_AND_CHANGE, *PUSB_PORT_STATUS_AND_CHANGE; + +C_ASSERT(sizeof(USB_PORT_STATUS_AND_CHANGE) == sizeof(ULONG)); + +typedef union _USB_PORT_EXT_STATUS_AND_CHANGE { + ULONG64 AsUlong64; + struct { + USB_PORT_STATUS_AND_CHANGE PortStatusChange; // 0-31 + USB_PORT_EXT_STATUS PortExtStatus; // 32-63 + }; +} USB_PORT_EXT_STATUS_AND_CHANGE, *PUSB_PORT_EXT_STATUS_AND_CHANGE; + +C_ASSERT(sizeof(USB_PORT_EXT_STATUS_AND_CHANGE) == sizeof(ULONG64)); + +// +// USB 3.0: 10.14.2.10 Set Port Feature, Table 10-14. Downstream Port Remote Wake Mask Encoding +// +typedef union _USB_HUB_30_PORT_REMOTE_WAKE_MASK { + UCHAR AsUchar8; + struct { + UCHAR ConnectRemoteWakeEnable:1; // 0 + UCHAR DisconnectRemoteWakeEnable:1; // 1 + UCHAR OverCurrentRemoteWakeEnable:1; // 2 + UCHAR Reserved0:5; // 3-7 + }; +} USB_HUB_30_PORT_REMOTE_WAKE_MASK, *PUSB_HUB_30_PORT_REMOTE_WAKE_MASK; + +C_ASSERT(sizeof(USB_HUB_30_PORT_REMOTE_WAKE_MASK) == sizeof(UCHAR)); + +// +// USB 3.0: 9.4.9 Set Feature, Table 9-7. Suspend Options +// +typedef union _USB_FUNCTION_SUSPEND_OPTIONS { + UCHAR AsUchar; + struct { + UCHAR PowerState:1; // 0 + UCHAR RemoteWakeEnabled:1; // 1 + UCHAR Reserved:6; // 2-7 + }; +} USB_FUNCTION_SUSPEND_OPTIONS, *PUSB_FUNCTION_SUSPEND_OPTIONS; + +C_ASSERT(sizeof(USB_FUNCTION_SUSPEND_OPTIONS) == sizeof(UCHAR)); + +// +// USB Interface Power Management Specification definitions. +// +// The USB Interface Power Management Specification was never released +// and these definitions should not be used. They are only included +// here to preserve compatibility with the previous usb100.h header +// file. +// +#define USB_FEATURE_INTERFACE_POWER_D0 0x0002 +#define USB_FEATURE_INTERFACE_POWER_D1 0x0003 +#define USB_FEATURE_INTERFACE_POWER_D2 0x0004 +#define USB_FEATURE_INTERFACE_POWER_D3 0x0005 + +#define USB_SUPPORT_D0_COMMAND 0x01 +#define USB_SUPPORT_D1_COMMAND 0x02 +#define USB_SUPPORT_D2_COMMAND 0x04 +#define USB_SUPPORT_D3_COMMAND 0x08 + +#define USB_SUPPORT_D1_WAKEUP 0x10 +#define USB_SUPPORT_D2_WAKEUP 0x20 + +typedef struct _USB_CONFIGURATION_POWER_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR SelfPowerConsumedD0[3]; + UCHAR bPowerSummaryId; + UCHAR bBusPowerSavingD1; + UCHAR bSelfPowerSavingD1; + UCHAR bBusPowerSavingD2; + UCHAR bSelfPowerSavingD2; + UCHAR bBusPowerSavingD3; + UCHAR bSelfPowerSavingD3; + USHORT TransitionTimeFromD1; + USHORT TransitionTimeFromD2; + USHORT TransitionTimeFromD3; +} USB_CONFIGURATION_POWER_DESCRIPTOR, *PUSB_CONFIGURATION_POWER_DESCRIPTOR; + +typedef struct _USB_INTERFACE_POWER_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bmCapabilitiesFlags; + UCHAR bBusPowerSavingD1; + UCHAR bSelfPowerSavingD1; + UCHAR bBusPowerSavingD2; + UCHAR bSelfPowerSavingD2; + UCHAR bBusPowerSavingD3; + UCHAR bSelfPowerSavingD3; + USHORT TransitionTimeFromD1; + USHORT TransitionTimeFromD2; + USHORT TransitionTimeFromD3; +} USB_INTERFACE_POWER_DESCRIPTOR, *PUSB_INTERFACE_POWER_DESCRIPTOR; + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#include + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/uuids.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/uuids.h new file mode 100644 index 0000000000000000000000000000000000000000..bc013b3a394c1ad307823804091cd050a7d88947 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/uuids.h @@ -0,0 +1,1842 @@ +//------------------------------------------------------------------------------ +// File: uuids.h +// +// Desc: Contains the GUIDs for the MediaType type, subtype fields and format +// types for standard media types, and also class ids for well-known +// components. +// +// Copyright (c) 1992 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +// +// We want to use this list for generating strings for debugging too +// so we redefine OUR_GUID_ENTRY depending on what we want to do +// +// It is imperative that all entries in this file are declared using +// OUR_GUID_ENTRY as that macro might have been defined in advance of +// including this file. See wxdebug.cpp in sdk\classes\base. +// + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef OUR_GUID_ENTRY + #define OUR_GUID_ENTRY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ + DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8); +#endif + + +// -- to allow consistent labeling of Media types and subtypes -- + +#define MEDIATYPE_NULL GUID_NULL +#define MEDIASUBTYPE_NULL GUID_NULL + +// -- Use this subtype if you don't have a use for a subtype for your type +// e436eb8e-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_None +OUR_GUID_ENTRY(MEDIASUBTYPE_None, +0xe436eb8e, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + + +// -- major types --- + + +// 73646976-0000-0010-8000-00AA00389B71 'vids' == MEDIATYPE_Video +OUR_GUID_ENTRY(MEDIATYPE_Video, +0x73646976, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 73647561-0000-0010-8000-00AA00389B71 'auds' == MEDIATYPE_Audio +OUR_GUID_ENTRY(MEDIATYPE_Audio, +0x73647561, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 73747874-0000-0010-8000-00AA00389B71 'txts' == MEDIATYPE_Text +OUR_GUID_ENTRY(MEDIATYPE_Text, +0x73747874, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 7364696D-0000-0010-8000-00AA00389B71 'mids' == MEDIATYPE_Midi +OUR_GUID_ENTRY(MEDIATYPE_Midi, +0x7364696D, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// e436eb83-524f-11ce-9f53-0020af0ba770 MEDIATYPE_Stream +OUR_GUID_ENTRY(MEDIATYPE_Stream, +0xe436eb83, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// 73(s)76(v)61(a)69(i)-0000-0010-8000-00AA00389B71 'iavs' == MEDIATYPE_Interleaved +OUR_GUID_ENTRY(MEDIATYPE_Interleaved, +0x73766169, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 656c6966-0000-0010-8000-00AA00389B71 'file' == MEDIATYPE_File +OUR_GUID_ENTRY(MEDIATYPE_File, +0x656c6966, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 73636d64-0000-0010-8000-00AA00389B71 'scmd' == MEDIATYPE_ScriptCommand +OUR_GUID_ENTRY(MEDIATYPE_ScriptCommand, +0x73636d64, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 670AEA80-3A82-11d0-B79B-00AA003767A7 MEDIATYPE_AUXLine21Data +OUR_GUID_ENTRY(MEDIATYPE_AUXLine21Data, +0x670aea80, 0x3a82, 0x11d0, 0xb7, 0x9b, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7) + +// {11264ACB-37DE-4eba-8C35-7F04A1A68332} +OUR_GUID_ENTRY(MEDIATYPE_AUXTeletextPage, +0x11264acb, 0x37de, 0x4eba, 0x8c, 0x35, 0x7f, 0x4, 0xa1, 0xa6, 0x83, 0x32) + +// AEB312E9-3357-43ca-B701-97EC198E2B62 MEDIATYPE_CC_CONTAINER +OUR_GUID_ENTRY(MEDIATYPE_CC_CONTAINER, +0xaeb312e9, 0x3357, 0x43ca, 0xb7, 0x1, 0x97, 0xec, 0x19, 0x8e, 0x2b, 0x62) + +// FB77E152-53B2-499c-B46B-509FC33EDFD7 MEDIATYPE_DTVCCData +OUR_GUID_ENTRY(MEDIATYPE_DTVCCData, +0xfb77e152, 0x53b2, 0x499c, 0xb4, 0x6b, 0x50, 0x9f, 0xc3, 0x3e, 0xdf, 0xd7) + +// B88B8A89-B049-4C80-ADCF-5898985E22C1 MEDIATYPE_MSTVCaption +OUR_GUID_ENTRY(MEDIATYPE_MSTVCaption, +0xB88B8A89, 0xB049, 0x4C80, 0xAD, 0xCF, 0x58, 0x98, 0x98, 0x5E, 0x22, 0xC1) + +// F72A76E1-EB0A-11D0-ACE4-0000C0CC16BA MEDIATYPE_VBI +OUR_GUID_ENTRY(MEDIATYPE_VBI, +0xf72a76e1, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// 34FFCBC3-D5B3-4171-9002-D4C60301697F DVB_SUBTITLES +OUR_GUID_ENTRY(MEDIASUBTYPE_DVB_SUBTITLES, +0x34FFCBC3, 0xD5B3, 0x4171, 0x90, 0x02, 0xD4, 0xC6, 0x03, 0x01, 0x69, 0x7F) + +// 059DD67D-2E55-4d41-8D1B-01F5E4F50607 ISDB_CAPTIONS +OUR_GUID_ENTRY(MEDIASUBTYPE_ISDB_CAPTIONS, +0x059dd67d, 0x2e55, 0x4d41, 0x8d, 0x1b, 0x01, 0xf5, 0xe4, 0xf5, 0x06, 0x07) + +// 36dc6d28-f1a6-4216-9048-9cfcefeb5eba ISDB_SUPERIMPOSE +OUR_GUID_ENTRY(MEDIASUBTYPE_ISDB_SUPERIMPOSE, +0x36dc6d28, 0xf1a6, 0x4216, 0x90, 0x48, 0x9c, 0xfc, 0xef, 0xeb, 0x5e, 0xba) + +// 0482DEE3-7817-11cf-8a03-00aa006ecb65 MEDIATYPE_Timecode +OUR_GUID_ENTRY(MEDIATYPE_Timecode, +0x482dee3, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 74726c6d-0000-0010-8000-00AA00389B71 'lmrt' == MEDIATYPE_LMRT +OUR_GUID_ENTRY(MEDIATYPE_LMRT, +0x74726c6d, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 74726c6d-0000-0010-8000-00AA00389B71 'urls' == MEDIATYPE_URL_STREAM +OUR_GUID_ENTRY(MEDIATYPE_URL_STREAM, +0x736c7275, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// -- sub types --- + +// 4C504C43-0000-0010-8000-00AA00389B71 'CLPL' == MEDIASUBTYPE_CLPL +OUR_GUID_ENTRY(MEDIASUBTYPE_CLPL, +0x4C504C43, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 56595559-0000-0010-8000-00AA00389B71 'YUYV' == MEDIASUBTYPE_YUYV +OUR_GUID_ENTRY(MEDIASUBTYPE_YUYV, +0x56595559, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 56555949-0000-0010-8000-00AA00389B71 'IYUV' == MEDIASUBTYPE_IYUV +OUR_GUID_ENTRY(MEDIASUBTYPE_IYUV, +0x56555949, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 39555659-0000-0010-8000-00AA00389B71 'YVU9' == MEDIASUBTYPE_YVU9 +OUR_GUID_ENTRY(MEDIASUBTYPE_YVU9, +0x39555659, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 31313459-0000-0010-8000-00AA00389B71 'Y411' == MEDIASUBTYPE_Y411 +OUR_GUID_ENTRY(MEDIASUBTYPE_Y411, +0x31313459, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 50313459-0000-0010-8000-00AA00389B71 'Y41P' == MEDIASUBTYPE_Y41P +OUR_GUID_ENTRY(MEDIASUBTYPE_Y41P, +0x50313459, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 32595559-0000-0010-8000-00AA00389B71 'YUY2' == MEDIASUBTYPE_YUY2 +OUR_GUID_ENTRY(MEDIASUBTYPE_YUY2, +0x32595559, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 55595659-0000-0010-8000-00AA00389B71 'YVYU' == MEDIASUBTYPE_YVYU +OUR_GUID_ENTRY(MEDIASUBTYPE_YVYU, +0x55595659, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 59565955-0000-0010-8000-00AA00389B71 'UYVY' == MEDIASUBTYPE_UYVY +OUR_GUID_ENTRY(MEDIASUBTYPE_UYVY, +0x59565955, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 31313259-0000-0010-8000-00AA00389B71 'Y211' == MEDIASUBTYPE_Y211 +OUR_GUID_ENTRY(MEDIASUBTYPE_Y211, +0x31313259, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 524a4c43-0000-0010-8000-00AA00389B71 'CLJR' == MEDIASUBTYPE_CLJR +OUR_GUID_ENTRY(MEDIASUBTYPE_CLJR, +0x524a4c43, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 39304649-0000-0010-8000-00AA00389B71 'IF09' == MEDIASUBTYPE_IF09 +OUR_GUID_ENTRY(MEDIASUBTYPE_IF09, +0x39304649, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 414c5043-0000-0010-8000-00AA00389B71 'CPLA' == MEDIASUBTYPE_CPLA +OUR_GUID_ENTRY(MEDIASUBTYPE_CPLA, +0x414c5043, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 47504A4D-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_MJPG +OUR_GUID_ENTRY(MEDIASUBTYPE_MJPG, +0x47504A4D, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 4A4D5654-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_TVMJ +OUR_GUID_ENTRY(MEDIASUBTYPE_TVMJ, +0x4A4D5654, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 454B4157-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_WAKE +OUR_GUID_ENTRY(MEDIASUBTYPE_WAKE, +0x454B4157, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 43434643-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_CFCC +OUR_GUID_ENTRY(MEDIASUBTYPE_CFCC, +0x43434643, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 47504A49-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_IJPG +OUR_GUID_ENTRY(MEDIASUBTYPE_IJPG, +0x47504A49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 6D756C50-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_Plum +OUR_GUID_ENTRY(MEDIASUBTYPE_Plum, +0x6D756C50, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// FAST DV-Master +// 53435644-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_DVCS +OUR_GUID_ENTRY(MEDIASUBTYPE_DVCS, +0x53435644, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// H.264 compressed video stream +// 34363248-0000-0010-8000-00AA00389B71 'H264' == MEDIASUBTYPE_H264 +OUR_GUID_ENTRY(MEDIASUBTYPE_H264, +0x34363248, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// FAST DV-Master +// 44535644-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_DVSD +OUR_GUID_ENTRY(MEDIASUBTYPE_DVSD, +0x44535644, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// MIROVideo DV +// 4656444D-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_MDVF +OUR_GUID_ENTRY(MEDIASUBTYPE_MDVF, +0x4656444D, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// e436eb78-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_RGB1 +// e436eb78-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_RGB1 +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB1, +0xe436eb78, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb79-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_RGB4 +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB4, +0xe436eb79, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb7a-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_RGB8 +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB8, +0xe436eb7a, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb7b-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_RGB565 +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB565, +0xe436eb7b, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb7c-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_RGB555 +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB555, +0xe436eb7c, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb7d-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_RGB24 +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB24, +0xe436eb7d, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb7e-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_RGB32 +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB32, +0xe436eb7e, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + + +// +// RGB surfaces that contain per pixel alpha values. +// + +// 297C55AF-E209-4cb3-B757-C76D6B9C88A8 MEDIASUBTYPE_ARGB1555 +OUR_GUID_ENTRY(MEDIASUBTYPE_ARGB1555, +0x297c55af, 0xe209, 0x4cb3, 0xb7, 0x57, 0xc7, 0x6d, 0x6b, 0x9c, 0x88, 0xa8) + +// 6E6415E6-5C24-425f-93CD-80102B3D1CCA MEDIASUBTYPE_ARGB4444 +OUR_GUID_ENTRY(MEDIASUBTYPE_ARGB4444, +0x6e6415e6, 0x5c24, 0x425f, 0x93, 0xcd, 0x80, 0x10, 0x2b, 0x3d, 0x1c, 0xca) + +// 773c9ac0-3274-11d0-B724-00aa006c1A01 MEDIASUBTYPE_ARGB32 +OUR_GUID_ENTRY(MEDIASUBTYPE_ARGB32, +0x773c9ac0, 0x3274, 0x11d0, 0xb7, 0x24, 0x0, 0xaa, 0x0, 0x6c, 0x1a, 0x1 ) + + +// 2f8bb76d-b644-4550-acf3-d30caa65d5c5 MEDIASUBTYPE_A2R10G10B10 +OUR_GUID_ENTRY(MEDIASUBTYPE_A2R10G10B10, +0x2f8bb76d, 0xb644, 0x4550, 0xac, 0xf3, 0xd3, 0x0c, 0xaa, 0x65, 0xd5, 0xc5) + +// 576f7893-bdf6-48c4-875f-ae7b81834567 MEDIASUBTYPE_A2B10G10R10 +OUR_GUID_ENTRY(MEDIASUBTYPE_A2B10G10R10, +0x576f7893, 0xbdf6, 0x48c4, 0x87, 0x5f, 0xae, 0x7b, 0x81, 0x83, 0x45, 0x67) + + +// 56555941-0000-0010-8000-00AA00389B71 'AYUV' == MEDIASUBTYPE_AYUV +// +// See the DX-VA header and documentation for a description of this format. +// +OUR_GUID_ENTRY(MEDIASUBTYPE_AYUV, +0x56555941, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 34344941-0000-0010-8000-00AA00389B71 'AI44' == MEDIASUBTYPE_AI44 +// +// See the DX-VA header and documentation for a description of this format. +// +OUR_GUID_ENTRY(MEDIASUBTYPE_AI44, +0x34344941, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 34344149-0000-0010-8000-00AA00389B71 'IA44' == MEDIASUBTYPE_IA44 +// +// See the DX-VA header and documentation for a description of this format. +// +OUR_GUID_ENTRY(MEDIASUBTYPE_IA44, +0x34344149, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + + +// +// DirectX7 D3D Render Target media subtypes. +// + +// 32335237-0000-0010-8000-00AA00389B71 '7R32' == MEDIASUBTYPE_RGB32_D3D_DX7_RT +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB32_D3D_DX7_RT, +0x32335237, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 36315237-0000-0010-8000-00AA00389B71 '7R16' == MEDIASUBTYPE_RGB16_D3D_DX7_RT +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB16_D3D_DX7_RT, +0x36315237, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 38384137-0000-0010-8000-00AA00389B71 '7A88' == MEDIASUBTYPE_ARGB32_D3D_DX7_RT +OUR_GUID_ENTRY(MEDIASUBTYPE_ARGB32_D3D_DX7_RT, +0x38384137, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 34344137-0000-0010-8000-00AA00389B71 '7A44' == MEDIASUBTYPE_ARGB4444_D3D_DX7_RT +OUR_GUID_ENTRY(MEDIASUBTYPE_ARGB4444_D3D_DX7_RT, +0x34344137, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 35314137-0000-0010-8000-00AA00389B71 '7A15' == MEDIASUBTYPE_ARGB1555_D3D_DX7_RT +OUR_GUID_ENTRY(MEDIASUBTYPE_ARGB1555_D3D_DX7_RT, +0x35314137, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + + +// +// DirectX9 D3D Render Target media subtypes. +// + +// 32335239-0000-0010-8000-00AA00389B71 '9R32' == MEDIASUBTYPE_RGB32_D3D_DX9_RT +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB32_D3D_DX9_RT, +0x32335239, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 36315239-0000-0010-8000-00AA00389B71 '9R16' == MEDIASUBTYPE_RGB16_D3D_DX9_RT +OUR_GUID_ENTRY(MEDIASUBTYPE_RGB16_D3D_DX9_RT, +0x36315239, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 38384139-0000-0010-8000-00AA00389B71 '9A88' == MEDIASUBTYPE_ARGB32_D3D_DX9_RT +OUR_GUID_ENTRY(MEDIASUBTYPE_ARGB32_D3D_DX9_RT, +0x38384139, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 34344139-0000-0010-8000-00AA00389B71 '9A44' == MEDIASUBTYPE_ARGB4444_D3D_DX9_RT +OUR_GUID_ENTRY(MEDIASUBTYPE_ARGB4444_D3D_DX9_RT, +0x34344139, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 35314139-0000-0010-8000-00AA00389B71 '9A15' == MEDIASUBTYPE_ARGB1555_D3D_DX9_RT +OUR_GUID_ENTRY(MEDIASUBTYPE_ARGB1555_D3D_DX9_RT, +0x35314139, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + + +#define MEDIASUBTYPE_HASALPHA(mt) ( ((mt).subtype == MEDIASUBTYPE_ARGB4444) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB32) || \ + ((mt).subtype == MEDIASUBTYPE_AYUV) || \ + ((mt).subtype == MEDIASUBTYPE_AI44) || \ + ((mt).subtype == MEDIASUBTYPE_IA44) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB1555) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB32_D3D_DX7_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB4444_D3D_DX7_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB1555_D3D_DX7_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB32_D3D_DX9_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB4444_D3D_DX9_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB1555_D3D_DX9_RT) ) + +#define MEDIASUBTYPE_HASALPHA7(mt) (((mt).subtype == MEDIASUBTYPE_ARGB32_D3D_DX7_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB4444_D3D_DX7_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB1555_D3D_DX7_RT) ) + +#define MEDIASUBTYPE_D3D_DX7_RT(mt) (((mt).subtype == MEDIASUBTYPE_ARGB32_D3D_DX7_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB4444_D3D_DX7_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB1555_D3D_DX7_RT) || \ + ((mt).subtype == MEDIASUBTYPE_RGB32_D3D_DX7_RT) || \ + ((mt).subtype == MEDIASUBTYPE_RGB16_D3D_DX7_RT)) + +#define MEDIASUBTYPE_HASALPHA9(mt) (((mt).subtype == MEDIASUBTYPE_ARGB32_D3D_DX9_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB4444_D3D_DX9_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB1555_D3D_DX9_RT) ) + + +#define MEDIASUBTYPE_D3D_DX9_RT(mt) (((mt).subtype == MEDIASUBTYPE_ARGB32_D3D_DX9_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB4444_D3D_DX9_RT) || \ + ((mt).subtype == MEDIASUBTYPE_ARGB1555_D3D_DX9_RT) || \ + ((mt).subtype == MEDIASUBTYPE_RGB32_D3D_DX9_RT) || \ + ((mt).subtype == MEDIASUBTYPE_RGB16_D3D_DX9_RT)) + + +// +// DX-VA uncompressed surface formats +// + +// 32315659-0000-0010-8000-00AA00389B71 'YV12' == MEDIASUBTYPE_YV12 +OUR_GUID_ENTRY(MEDIASUBTYPE_YV12, +0x32315659, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 3231564E-0000-0010-8000-00AA00389B71 'NV12' == MEDIASUBTYPE_NV12 +OUR_GUID_ENTRY(MEDIASUBTYPE_NV12, +0x3231564E, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 3131564E-0000-0010-8000-00AA00389B71 'NV11' == MEDIASUBTYPE_NV11 +#ifndef MEDIASUBTYPE_NV11_DEFINED +#define MEDIASUBTYPE_NV11_DEFINED +OUR_GUID_ENTRY(MEDIASUBTYPE_NV11, +0x3131564E, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) +#endif + +// 38303250-0000-0010-8000-00AA00389B71 'P208' == MEDIASUBTYPE_P208 +OUR_GUID_ENTRY(MEDIASUBTYPE_P208, +'802P', 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 38303250-0000-0010-8000-00AA00389B71 'P210' == MEDIASUBTYPE_P210 +OUR_GUID_ENTRY(MEDIASUBTYPE_P210, +'012P', 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 38303250-0000-0010-8000-00AA00389B71 'P216' == MEDIASUBTYPE_P216 +OUR_GUID_ENTRY(MEDIASUBTYPE_P216, +'612P', 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 38303250-0000-0010-8000-00AA00389B71 'P010' == MEDIASUBTYPE_P010 +OUR_GUID_ENTRY(MEDIASUBTYPE_P010, +'010P', 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 38303250-0000-0010-8000-00AA00389B71 'P016' == MEDIASUBTYPE_P016 +OUR_GUID_ENTRY(MEDIASUBTYPE_P016, +'610P', 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 38303250-0000-0010-8000-00AA00389B71 'Y210' == MEDIASUBTYPE_Y210 +OUR_GUID_ENTRY(MEDIASUBTYPE_Y210, +'012Y', 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 38303250-0000-0010-8000-00AA00389B71 'Y216' == MEDIASUBTYPE_Y216 +OUR_GUID_ENTRY(MEDIASUBTYPE_Y216, +'612Y', 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 38303450-0000-0010-8000-00AA00389B71 'P408' == MEDIASUBTYPE_P408 +OUR_GUID_ENTRY(MEDIASUBTYPE_P408, +'804P', 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 3432564E-0000-0010-8000-00AA00389B71 'NV24' == MEDIASUBTYPE_NV24 +OUR_GUID_ENTRY(MEDIASUBTYPE_NV24, +0x3432564E, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 4F303234-0000-0010-8000-00AA00389B71 '420O' == MEDIASUBTYPE_420O +OUR_GUID_ENTRY(MEDIASUBTYPE_420O, +0x4F303234, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 31434D49-0000-0010-8000-00AA00389B71 'IMC1' == MEDIASUBTYPE_IMC1 +OUR_GUID_ENTRY(MEDIASUBTYPE_IMC1, +0x31434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 32434d49-0000-0010-8000-00AA00389B71 'IMC2' == MEDIASUBTYPE_IMC2 +OUR_GUID_ENTRY(MEDIASUBTYPE_IMC2, +0x32434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 33434d49-0000-0010-8000-00AA00389B71 'IMC3' == MEDIASUBTYPE_IMC3 +OUR_GUID_ENTRY(MEDIASUBTYPE_IMC3, +0x33434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 34434d49-0000-0010-8000-00AA00389B71 'IMC4' == MEDIASUBTYPE_IMC4 +OUR_GUID_ENTRY(MEDIASUBTYPE_IMC4, +0x34434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 30343353-0000-0010-8000-00AA00389B71 'S340' == MEDIASUBTYPE_S340 +OUR_GUID_ENTRY(MEDIASUBTYPE_S340, +0x30343353, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 32343353-0000-0010-8000-00AA00389B71 'S342' == MEDIASUBTYPE_S342 +OUR_GUID_ENTRY(MEDIASUBTYPE_S342, +0x32343353, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + + +// e436eb7f-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_Overlay +OUR_GUID_ENTRY(MEDIASUBTYPE_Overlay, +0xe436eb7f, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb80-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_MPEGPacket +OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG1Packet, +0xe436eb80, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb81-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_MPEG1Payload +OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG1Payload, +0xe436eb81, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// 00000050-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_MPEG1AudioPayload +OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG1AudioPayload, +0x00000050, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71) + +// e436eb82-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_MPEG1SystemStream +OUR_GUID_ENTRY(MEDIATYPE_MPEG1SystemStream, +0xe436eb82, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// the next consecutive number is assigned to MEDIATYPE_Stream and appears higher up +// e436eb84-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_MPEG1System +OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG1System, +0xe436eb84, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb85-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_MPEG1VideoCD +OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG1VideoCD, +0xe436eb85, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb86-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_MPEG1Video +OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG1Video, +0xe436eb86, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb87-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_MPEG1Audio +OUR_GUID_ENTRY(MEDIASUBTYPE_MPEG1Audio, +0xe436eb87, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb88-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_Avi +OUR_GUID_ENTRY(MEDIASUBTYPE_Avi, +0xe436eb88, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// {3DB80F90-9412-11d1-ADED-0000F8754B99} MEDIASUBTYPE_Asf +OUR_GUID_ENTRY(MEDIASUBTYPE_Asf, +0x3db80f90, 0x9412, 0x11d1, 0xad, 0xed, 0x0, 0x0, 0xf8, 0x75, 0x4b, 0x99) + +// e436eb89-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_QTMovie +OUR_GUID_ENTRY(MEDIASUBTYPE_QTMovie, +0xe436eb89, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// 617a7072-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_Rpza +OUR_GUID_ENTRY(MEDIASUBTYPE_QTRpza, +0x617a7072, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 20636d73-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_Smc +OUR_GUID_ENTRY(MEDIASUBTYPE_QTSmc, +0x20636d73, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 20656c72-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_Rle +OUR_GUID_ENTRY(MEDIASUBTYPE_QTRle, +0x20656c72, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 6765706a-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_Jpeg +OUR_GUID_ENTRY(MEDIASUBTYPE_QTJpeg, +0x6765706a, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// e436eb8a-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_PCMAudio_Obsolete +OUR_GUID_ENTRY(MEDIASUBTYPE_PCMAudio_Obsolete, +0xe436eb8a, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// 00000001-0000-0010-8000-00AA00389B71 MEDIASUBTYPE_PCM +OUR_GUID_ENTRY(MEDIASUBTYPE_PCM, +0x00000001, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71) + +// e436eb8b-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_WAVE +OUR_GUID_ENTRY(MEDIASUBTYPE_WAVE, +0xe436eb8b, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb8c-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_AU +OUR_GUID_ENTRY(MEDIASUBTYPE_AU, +0xe436eb8c, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436eb8d-524f-11ce-9f53-0020af0ba770 MEDIASUBTYPE_AIFF +OUR_GUID_ENTRY(MEDIASUBTYPE_AIFF, +0xe436eb8d, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// 64(d)73(s)76(v)64(d)-0000-0010-8000-00AA00389B71 'dvsd' == MEDIASUBTYPE_dvsd +OUR_GUID_ENTRY(MEDIASUBTYPE_dvsd, +0x64737664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 64(d)68(h)76(v)64(d)-0000-0010-8000-00AA00389B71 'dvhd' == MEDIASUBTYPE_dvhd +OUR_GUID_ENTRY(MEDIASUBTYPE_dvhd, +0x64687664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 6c(l)73(s)76(v)64(d)-0000-0010-8000-00AA00389B71 'dvsl' == MEDIASUBTYPE_dvsl +OUR_GUID_ENTRY(MEDIASUBTYPE_dvsl, +0x6c737664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 35(5)32(2)76(v)64(d)-0000-0010-8000-00AA00389B71 'dv25' == MEDIASUBTYPE_dv25 +OUR_GUID_ENTRY(MEDIASUBTYPE_dv25, +0x35327664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 30(0)35(5)76(v)64(d)-0000-0010-8000-00AA00389B71 'dv50' == MEDIASUBTYPE_dv50 +OUR_GUID_ENTRY(MEDIASUBTYPE_dv50, +0x30357664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 31(1)68(h)76(v)64(d)-0000-0010-8000-00AA00389B71 'dvh1' == MEDIASUBTYPE_dvh1 +OUR_GUID_ENTRY(MEDIASUBTYPE_dvh1, +0x31687664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// 6E8D4A22-310C-11d0-B79A-00AA003767A7 MEDIASUBTYPE_Line21_BytePair +OUR_GUID_ENTRY(MEDIASUBTYPE_Line21_BytePair, +0x6e8d4a22, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7) + +// 6E8D4A23-310C-11d0-B79A-00AA003767A7 MEDIASUBTYPE_Line21_GOPPacket +OUR_GUID_ENTRY(MEDIASUBTYPE_Line21_GOPPacket, +0x6e8d4a23, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7) + +// 6E8D4A24-310C-11d0-B79A-00AA003767A7 MEDIASUBTYPE_Line21_VBIRawData +OUR_GUID_ENTRY(MEDIASUBTYPE_Line21_VBIRawData, +0x6e8d4a24, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7) + +//0AF414BC-4ED2-445e-9839-8F095568AB3C MEDIASUBTYPE_708_608Data +OUR_GUID_ENTRY(MEDIASUBTYPE_708_608Data, +0xaf414bc, 0x4ed2, 0x445e, 0x98, 0x39, 0x8f, 0x9, 0x55, 0x68, 0xab, 0x3c) + +// F52ADDAA-36F0-43F5-95EA-6D866484262A MEDIASUBTYPE_DtvCcData +OUR_GUID_ENTRY(MEDIASUBTYPE_DtvCcData, +0xF52ADDAA, 0x36F0, 0x43F5, 0x95, 0xEA, 0x6D, 0x86, 0x64, 0x84, 0x26, 0x2A) + +// 7EA626DB-54DA-437b-BE9F-F73073ADFA3C MEDIASUBTYPE_CC_CONTAINER +OUR_GUID_ENTRY(MEDIASUBTYPE_CC_CONTAINER, +0x7ea626db, 0x54da, 0x437b, 0xbe, 0x9f, 0xf7, 0x30, 0x73, 0xad, 0xfa, 0x3c) + +// F72A76E3-EB0A-11D0-ACE4-0000C0CC16BA MEDIASUBTYPE_TELETEXT +OUR_GUID_ENTRY(MEDIASUBTYPE_TELETEXT, +0xf72a76e3, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// 663DA43C-03E8-4e9a-9CD5-BF11ED0DEF76 MEDIASUBTYPE_VBI +OUR_GUID_ENTRY(MEDIASUBTYPE_VBI, +0x663da43c, 0x3e8, 0x4e9a, 0x9c, 0xd5, 0xbf, 0x11, 0xed, 0xd, 0xef, 0x76) + +// 2791D576-8E7A-466F-9E90-5D3F3083738B MEDIASUBTYPE_WSS +OUR_GUID_ENTRY(MEDIASUBTYPE_WSS, +0x2791D576, 0x8E7A, 0x466F, 0x9E, 0x90, 0x5D, 0x3F, 0x30, 0x83, 0x73, 0x8B) + +// 01CA73E3-DCE6-4575-AFE1-2BF1C902CAF3 MEDIASUBTYPE_XDS +OUR_GUID_ENTRY(MEDIASUBTYPE_XDS, +0x1ca73e3, 0xdce6, 0x4575, 0xaf, 0xe1, 0x2b, 0xf1, 0xc9, 0x2, 0xca, 0xf3) + +// A1B3F620-9792-4d8d-81A4-86AF25772090 MEDIASUBTYPE_VPS +OUR_GUID_ENTRY(MEDIASUBTYPE_VPS, +0xa1b3f620, 0x9792, 0x4d8d, 0x81, 0xa4, 0x86, 0xaf, 0x25, 0x77, 0x20, 0x90) + +// derived from WAVE_FORMAT_DRM +// 00000009-0000-0010-8000-00aa00389b71 +OUR_GUID_ENTRY(MEDIASUBTYPE_DRM_Audio, +0x00000009, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// derived from WAVE_FORMAT_IEEE_FLOAT +// 00000003-0000-0010-8000-00aa00389b71 +OUR_GUID_ENTRY(MEDIASUBTYPE_IEEE_FLOAT, +0x00000003, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// derived from WAVE_FORMAT_DOLBY_AC3_SPDIF +// 00000092-0000-0010-8000-00aa00389b71 +OUR_GUID_ENTRY(MEDIASUBTYPE_DOLBY_AC3_SPDIF, +0x00000092, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// derived from WAVE_FORMAT_RAW_SPORT +// 00000240-0000-0010-8000-00aa00389b71 +OUR_GUID_ENTRY(MEDIASUBTYPE_RAW_SPORT, +0x00000240, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + +// derived from wave format tag 0x241, call it SPDIF_TAG_241h for now +// 00000241-0000-0010-8000-00aa00389b71 +OUR_GUID_ENTRY(MEDIASUBTYPE_SPDIF_TAG_241h, +0x00000241, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71) + + + +// DirectShow DSS definitions + +// A0AF4F81-E163-11d0-BAD9-00609744111A +OUR_GUID_ENTRY(MEDIASUBTYPE_DssVideo, +0xa0af4f81, 0xe163, 0x11d0, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a) + +// A0AF4F82-E163-11d0-BAD9-00609744111A +OUR_GUID_ENTRY(MEDIASUBTYPE_DssAudio, +0xa0af4f82, 0xe163, 0x11d0, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a) + +// 5A9B6A40-1A22-11D1-BAD9-00609744111A +OUR_GUID_ENTRY(MEDIASUBTYPE_VPVideo, +0x5a9b6a40, 0x1a22, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a) + +// 5A9B6A41-1A22-11D1-BAD9-00609744111A +OUR_GUID_ENTRY(MEDIASUBTYPE_VPVBI, +0x5a9b6a41, 0x1a22, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a) + +// BF87B6E0-8C27-11d0-B3F0-00AA003761C5 Capture graph building +OUR_GUID_ENTRY(CLSID_CaptureGraphBuilder, +0xBF87B6E0, 0x8C27, 0x11d0, 0xB3, 0xF0, 0x0, 0xAA, 0x00, 0x37, 0x61, 0xC5) + +// BF87B6E1-8C27-11d0-B3F0-00AA003761C5 New Capture graph building +OUR_GUID_ENTRY(CLSID_CaptureGraphBuilder2, +0xBF87B6E1, 0x8C27, 0x11d0, 0xB3, 0xF0, 0x0, 0xAA, 0x00, 0x37, 0x61, 0xC5) + +// e436ebb0-524f-11ce-9f53-0020af0ba770 Prototype filtergraph +OUR_GUID_ENTRY(CLSID_ProtoFilterGraph, +0xe436ebb0, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436ebb1-524f-11ce-9f53-0020af0ba770 Reference clock +OUR_GUID_ENTRY(CLSID_SystemClock, +0xe436ebb1, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436ebb2-524f-11ce-9f53-0020af0ba770 Filter Mapper +OUR_GUID_ENTRY(CLSID_FilterMapper, +0xe436ebb2, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436ebb3-524f-11ce-9f53-0020af0ba770 Filter Graph +OUR_GUID_ENTRY(CLSID_FilterGraph, +0xe436ebb3, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// e436ebb8-524f-11ce-9f53-0020af0ba770 Filter Graph no thread +OUR_GUID_ENTRY(CLSID_FilterGraphNoThread, +0xe436ebb8, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// a3ecbc41-581a-4476-b693-a63340462d8b +OUR_GUID_ENTRY(CLSID_FilterGraphPrivateThread, +0xa3ecbc41, 0x581a, 0x4476, 0xb6, 0x93, 0xa6, 0x33, 0x40, 0x46, 0x2d, 0x8b) + +// e4bbd160-4269-11ce-838d-00aa0055595a MPEG System stream +OUR_GUID_ENTRY(CLSID_MPEG1Doc, +0xe4bbd160, 0x4269, 0x11ce, 0x83, 0x8d, 0x0, 0xaa, 0x0, 0x55, 0x59, 0x5a) + +// 701722e0-8ae3-11ce-a85c-00aa002feab5 MPEG file reader +OUR_GUID_ENTRY(CLSID_FileSource, +0x701722e0, 0x8ae3, 0x11ce, 0xa8, 0x5c, 0x00, 0xaa, 0x00, 0x2f, 0xea, 0xb5) + +// 26C25940-4CA9-11ce-A828-00AA002FEAB5 Takes MPEG1 packets as input +OUR_GUID_ENTRY(CLSID_MPEG1PacketPlayer, +0x26c25940, 0x4ca9, 0x11ce, 0xa8, 0x28, 0x0, 0xaa, 0x0, 0x2f, 0xea, 0xb5) + +// 336475d0-942a-11ce-a870-00aa002feab5 MPEG splitter +OUR_GUID_ENTRY(CLSID_MPEG1Splitter, +0x336475d0, 0x942a, 0x11ce, 0xa8, 0x70, 0x00, 0xaa, 0x00, 0x2f, 0xea, 0xb5) + +// feb50740-7bef-11ce-9bd9-0000e202599c MPEG video decoder +OUR_GUID_ENTRY(CLSID_CMpegVideoCodec, +0xfeb50740, 0x7bef, 0x11ce, 0x9b, 0xd9, 0x0, 0x0, 0xe2, 0x2, 0x59, 0x9c) + +// 4a2286e0-7bef-11ce-9bd9-0000e202599c MPEG audio decoder +OUR_GUID_ENTRY(CLSID_CMpegAudioCodec, +0x4a2286e0, 0x7bef, 0x11ce, 0x9b, 0xd9, 0x0, 0x0, 0xe2, 0x2, 0x59, 0x9c) + +// e30629d3-27e5-11ce-875d-00608cb78066 Text renderer +OUR_GUID_ENTRY(CLSID_TextRender, +0xe30629d3, 0x27e5, 0x11ce, 0x87, 0x5d, 0x0, 0x60, 0x8c, 0xb7, 0x80, 0x66) + + + +// {F8388A40-D5BB-11d0-BE5A-0080C706568E} +OUR_GUID_ENTRY(CLSID_InfTee, +0xf8388a40, 0xd5bb, 0x11d0, 0xbe, 0x5a, 0x0, 0x80, 0xc7, 0x6, 0x56, 0x8e) + +// 1b544c20-fd0b-11ce-8c63-00aa0044b51e Avi Stream Splitter +OUR_GUID_ENTRY(CLSID_AviSplitter, +0x1b544c20, 0xfd0b, 0x11ce, 0x8c, 0x63, 0x0, 0xaa, 0x00, 0x44, 0xb5, 0x1e) + +// 1b544c21-fd0b-11ce-8c63-00aa0044b51e Avi File Reader +OUR_GUID_ENTRY(CLSID_AviReader, +0x1b544c21, 0xfd0b, 0x11ce, 0x8c, 0x63, 0x0, 0xaa, 0x00, 0x44, 0xb5, 0x1e) + +// 1b544c22-fd0b-11ce-8c63-00aa0044b51e Vfw 2.0 Capture Driver +OUR_GUID_ENTRY(CLSID_VfwCapture, +0x1b544c22, 0xfd0b, 0x11ce, 0x8c, 0x63, 0x0, 0xaa, 0x00, 0x44, 0xb5, 0x1e) + +OUR_GUID_ENTRY(CLSID_CaptureProperties, +0x1B544c22, 0xFD0B, 0x11ce, 0x8C, 0x63, 0x00, 0xAA, 0x00, 0x44, 0xB5, 0x1F) + +//e436ebb4-524f-11ce-9f53-0020af0ba770 Control Distributor +OUR_GUID_ENTRY(CLSID_FGControl, +0xe436ebb4, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// 44584800-F8EE-11ce-B2D4-00DD01101B85 .MOV reader (old) +OUR_GUID_ENTRY(CLSID_MOVReader, +0x44584800, 0xf8ee, 0x11ce, 0xb2, 0xd4, 0x00, 0xdd, 0x1, 0x10, 0x1b, 0x85) + +// D51BD5A0-7548-11cf-A520-0080C77EF58A QT Splitter +OUR_GUID_ENTRY(CLSID_QuickTimeParser, +0xd51bd5a0, 0x7548, 0x11cf, 0xa5, 0x20, 0x0, 0x80, 0xc7, 0x7e, 0xf5, 0x8a) + +// FDFE9681-74A3-11d0-AFA7-00AA00B67A42 QT Decoder +OUR_GUID_ENTRY(CLSID_QTDec, +0xfdfe9681, 0x74a3, 0x11d0, 0xaf, 0xa7, 0x0, 0xaa, 0x0, 0xb6, 0x7a, 0x42) + +// D3588AB0-0781-11ce-B03A-0020AF0BA770 AVIFile-based reader +OUR_GUID_ENTRY(CLSID_AVIDoc, +0xd3588ab0, 0x0781, 0x11ce, 0xb0, 0x3a, 0x00, 0x20, 0xaf, 0xb, 0xa7, 0x70) + +// 70e102b0-5556-11ce-97c0-00aa0055595a Video renderer +OUR_GUID_ENTRY(CLSID_VideoRenderer, +0x70e102b0, 0x5556, 0x11ce, 0x97, 0xc0, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// 1643e180-90f5-11ce-97d5-00aa0055595a Colour space convertor +OUR_GUID_ENTRY(CLSID_Colour, +0x1643e180, 0x90f5, 0x11ce, 0x97, 0xd5, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// 1da08500-9edc-11cf-bc10-00aa00ac74f6 VGA 16 color ditherer +OUR_GUID_ENTRY(CLSID_Dither, +0x1da08500, 0x9edc, 0x11cf, 0xbc, 0x10, 0x00, 0xaa, 0x00, 0xac, 0x74, 0xf6) + +// 07167665-5011-11cf-BF33-00AA0055595A Modex video renderer +OUR_GUID_ENTRY(CLSID_ModexRenderer, +0x7167665, 0x5011, 0x11cf, 0xbf, 0x33, 0x0, 0xaa, 0x0, 0x55, 0x59, 0x5a) + +// e30629d1-27e5-11ce-875d-00608cb78066 Waveout audio renderer +OUR_GUID_ENTRY(CLSID_AudioRender, +0xe30629d1, 0x27e5, 0x11ce, 0x87, 0x5d, 0x0, 0x60, 0x8c, 0xb7, 0x80, 0x66) + +// 05589faf-c356-11ce-bf01-00aa0055595a Audio Renderer Property Page +OUR_GUID_ENTRY(CLSID_AudioProperties, +0x05589faf, 0xc356, 0x11ce, 0xbf, 0x01, 0x0, 0xaa, 0x0, 0x55, 0x59, 0x5a) + +// 79376820-07D0-11cf-A24D-0020AFD79767 DSound audio renderer +OUR_GUID_ENTRY(CLSID_DSoundRender, +0x79376820, 0x07D0, 0x11CF, 0xA2, 0x4D, 0x0, 0x20, 0xAF, 0xD7, 0x97, 0x67) + +// e30629d2-27e5-11ce-875d-00608cb78066 Wavein audio recorder +OUR_GUID_ENTRY(CLSID_AudioRecord, +0xe30629d2, 0x27e5, 0x11ce, 0x87, 0x5d, 0x0, 0x60, 0x8c, 0xb7, 0x80, 0x66) + +// {2CA8CA52-3C3F-11d2-B73D-00C04FB6BD3D} IAMAudioInputMixer property page +OUR_GUID_ENTRY(CLSID_AudioInputMixerProperties, +0x2ca8ca52, 0x3c3f, 0x11d2, 0xb7, 0x3d, 0x0, 0xc0, 0x4f, 0xb6, 0xbd, 0x3d) + +// {CF49D4E0-1115-11ce-B03A-0020AF0BA770} AVI Decoder +OUR_GUID_ENTRY(CLSID_AVIDec, +0xcf49d4e0, 0x1115, 0x11ce, 0xb0, 0x3a, 0x0, 0x20, 0xaf, 0xb, 0xa7, 0x70) + +// {A888DF60-1E90-11cf-AC98-00AA004C0FA9} AVI ICDraw* wrapper +OUR_GUID_ENTRY(CLSID_AVIDraw, +0xa888df60, 0x1e90, 0x11cf, 0xac, 0x98, 0x0, 0xaa, 0x0, 0x4c, 0xf, 0xa9) + +// 6a08cf80-0e18-11cf-a24d-0020afd79767 ACM Wrapper +OUR_GUID_ENTRY(CLSID_ACMWrapper, +0x6a08cf80, 0x0e18, 0x11cf, 0xa2, 0x4d, 0x0, 0x20, 0xaf, 0xd7, 0x97, 0x67) + +// {e436ebb5-524f-11ce-9f53-0020af0ba770} Async File Reader +OUR_GUID_ENTRY(CLSID_AsyncReader, +0xe436ebb5, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// {e436ebb6-524f-11ce-9f53-0020af0ba770} Async URL Reader +OUR_GUID_ENTRY(CLSID_URLReader, +0xe436ebb6, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// {e436ebb7-524f-11ce-9f53-0020af0ba770} IPersistMoniker PID +OUR_GUID_ENTRY(CLSID_PersistMonikerPID, +0xe436ebb7, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70) + +// {D76E2820-1563-11cf-AC98-00AA004C0FA9} +OUR_GUID_ENTRY(CLSID_AVICo, +0xd76e2820, 0x1563, 0x11cf, 0xac, 0x98, 0x0, 0xaa, 0x0, 0x4c, 0xf, 0xa9) + +// {8596E5F0-0DA5-11d0-BD21-00A0C911CE86} +OUR_GUID_ENTRY(CLSID_FileWriter, +0x8596e5f0, 0xda5, 0x11d0, 0xbd, 0x21, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) + +// {E2510970-F137-11CE-8B67-00AA00A3F1A6} AVI mux filter +OUR_GUID_ENTRY(CLSID_AviDest, +0xe2510970, 0xf137, 0x11ce, 0x8b, 0x67, 0x0, 0xaa, 0x0, 0xa3, 0xf1, 0xa6) + +// {C647B5C0-157C-11d0-BD23-00A0C911CE86} +OUR_GUID_ENTRY(CLSID_AviMuxProptyPage, +0xc647b5c0, 0x157c, 0x11d0, 0xbd, 0x23, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) + +// {0A9AE910-85C0-11d0-BD42-00A0C911CE86} +OUR_GUID_ENTRY(CLSID_AviMuxProptyPage1, +0xa9ae910, 0x85c0, 0x11d0, 0xbd, 0x42, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) + +// {07b65360-c445-11ce-afde-00aa006c14f4} +OUR_GUID_ENTRY(CLSID_AVIMIDIRender, +0x07b65360, 0xc445, 0x11ce, 0xaf, 0xde, 0x00, 0xaa, 0x00, 0x6c, 0x14, 0xf4) + +// {187463A0-5BB7-11d3-ACBE-0080C75E246E} WMSDK-based ASF reader +OUR_GUID_ENTRY(CLSID_WMAsfReader, +0x187463a0, 0x5bb7, 0x11d3, 0xac, 0xbe, 0x0, 0x80, 0xc7, 0x5e, 0x24, 0x6e) + +// {7c23220e-55bb-11d3-8b16-00c04fb6bd3d} WMSDK-based ASF writer +OUR_GUID_ENTRY(CLSID_WMAsfWriter, +0x7c23220e, 0x55bb, 0x11d3, 0x8b, 0x16, 0x0, 0xc0, 0x4f, 0xb6, 0xbd, 0x3d) + +// {afb6c280-2c41-11d3-8a60-0000f81e0e4a} +OUR_GUID_ENTRY(CLSID_MPEG2Demultiplexer, +0xafb6c280, 0x2c41, 0x11d3, 0x8a, 0x60, 0x00, 0x00, 0xf8, 0x1e, 0x0e, 0x4a) + +// {687D3367-3644-467a-ADFE-6CD7A85C4A2C} +OUR_GUID_ENTRY(CLSID_MPEG2Demultiplexer_NoClock, +0x687d3367, 0x3644, 0x467a, 0xad, 0xfe, 0x6c, 0xd7, 0xa8, 0x5c, 0x4a, 0x2c) + +// {3ae86b20-7be8-11d1-abe6-00a0c905f375} +OUR_GUID_ENTRY(CLSID_MMSPLITTER, +0x3ae86b20, 0x7be8, 0x11d1, 0xab, 0xe6, 0x00, 0xa0, 0xc9, 0x05, 0xf3, 0x75) + +// {2DB47AE5-CF39-43c2-B4D6-0CD8D90946F4} +OUR_GUID_ENTRY(CLSID_StreamBufferSink, +0x2db47ae5, 0xcf39, 0x43c2, 0xb4, 0xd6, 0xc, 0xd8, 0xd9, 0x9, 0x46, 0xf4) + +// {E2448508-95DA-4205-9A27-7EC81E723B1A} +OUR_GUID_ENTRY(CLSID_SBE2Sink, +0xe2448508, 0x95da, 0x4205, 0x9a, 0x27, 0x7e, 0xc8, 0x1e, 0x72, 0x3b, 0x1a) + +// {C9F5FE02-F851-4eb5-99EE-AD602AF1E619} +OUR_GUID_ENTRY(CLSID_StreamBufferSource, +0xc9f5fe02, 0xf851, 0x4eb5, 0x99, 0xee, 0xad, 0x60, 0x2a, 0xf1, 0xe6, 0x19) + +// {FA8A68B2-C864-4ba2-AD53-D3876A87494B} +OUR_GUID_ENTRY(CLSID_StreamBufferConfig, +0xfa8a68b2, 0xc864, 0x4ba2, 0xad, 0x53, 0xd3, 0x87, 0x6a, 0x87, 0x49, 0x4b) + +// {E37A73F8-FB01-43dc-914E-AAEE76095AB9} +OUR_GUID_ENTRY(CLSID_StreamBufferPropertyHandler, +0xe37a73f8, 0xfb01, 0x43dc, 0x91, 0x4e, 0xaa, 0xee, 0x76, 0x9, 0x5a, 0xb9) + +// {713790EE-5EE1-45ba-8070-A1337D2762FA} +OUR_GUID_ENTRY(CLSID_StreamBufferThumbnailHandler, +0x713790ee, 0x5ee1, 0x45ba, 0x80, 0x70, 0xa1, 0x33, 0x7d, 0x27, 0x62, 0xfa) + +// {6CFAD761-735D-4aa5-8AFC-AF91A7D61EBA} +OUR_GUID_ENTRY(CLSID_Mpeg2VideoStreamAnalyzer, +0x6cfad761, 0x735d, 0x4aa5, 0x8a, 0xfc, 0xaf, 0x91, 0xa7, 0xd6, 0x1e, 0xba) + +// {CCAA63AC-1057-4778-AE92-1206AB9ACEE6} +OUR_GUID_ENTRY(CLSID_StreamBufferRecordingAttributes, +0xccaa63ac, 0x1057, 0x4778, 0xae, 0x92, 0x12, 0x6, 0xab, 0x9a, 0xce, 0xe6) + +// {D682C4BA-A90A-42fe-B9E1-03109849C423} +OUR_GUID_ENTRY(CLSID_StreamBufferComposeRecording, +0xd682c4ba, 0xa90a, 0x42fe, 0xb9, 0xe1, 0x3, 0x10, 0x98, 0x49, 0xc4, 0x23) + +// {93A094D7-51E8-485b-904A-8D6B97DC6B39} +OUR_GUID_ENTRY(CLSID_SBE2File, +0x93a094d7, 0x51e8, 0x485b, 0x90, 0x4a, 0x8d, 0x6b, 0x97, 0xdc, 0x6b, 0x39) + +// {B1B77C00-C3E4-11cf-AF79-00AA00B67A42} DV video decoder +OUR_GUID_ENTRY(CLSID_DVVideoCodec, +0xb1b77c00, 0xc3e4, 0x11cf, 0xaf, 0x79, 0x0, 0xaa, 0x0, 0xb6, 0x7a, 0x42) + +// {13AA3650-BB6F-11d0-AFB9-00AA00B67A42} DV video encoder +OUR_GUID_ENTRY(CLSID_DVVideoEnc, +0x13aa3650, 0xbb6f, 0x11d0, 0xaf, 0xb9, 0x0, 0xaa, 0x0, 0xb6, 0x7a, 0x42) + +// {4EB31670-9FC6-11cf-AF6E-00AA00B67A42} DV splitter +OUR_GUID_ENTRY(CLSID_DVSplitter, +0x4eb31670, 0x9fc6, 0x11cf, 0xaf, 0x6e, 0x0, 0xaa, 0x0, 0xb6, 0x7a, 0x42) + +// {129D7E40-C10D-11d0-AFB9-00AA00B67A42} DV muxer +OUR_GUID_ENTRY(CLSID_DVMux, +0x129d7e40, 0xc10d, 0x11d0, 0xaf, 0xb9, 0x0, 0xaa, 0x0, 0xb6, 0x7a, 0x42) + +// {060AF76C-68DD-11d0-8FC1-00C04FD9189D} +OUR_GUID_ENTRY(CLSID_SeekingPassThru, +0x60af76c, 0x68dd, 0x11d0, 0x8f, 0xc1, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d) + +// 6E8D4A20-310C-11d0-B79A-00AA003767A7 Line21 (CC) Decoder +OUR_GUID_ENTRY(CLSID_Line21Decoder, +0x6e8d4a20, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7) + +// E4206432-01A1-4BEE-B3E1-3702C8EDC574 Line21 (CC) Decoder v2 +OUR_GUID_ENTRY(CLSID_Line21Decoder2, +0xe4206432, 0x01a1, 0x4bee, 0xb3, 0xe1, 0x37, 0x02, 0xc8, 0xed, 0xc5, 0x74) + +OUR_GUID_ENTRY(CLSID_CCAFilter, +0x3d07a539, 0x35ca, 0x447c, 0x9b, 0x5, 0x8d, 0x85, 0xce, 0x92, 0x4f, 0x9e) + +// {CD8743A1-3736-11d0-9E69-00C04FD7C15B} +OUR_GUID_ENTRY(CLSID_OverlayMixer, +0xcd8743a1, 0x3736, 0x11d0, 0x9e, 0x69, 0x0, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b) + +// {814B9800-1C88-11d1-BAD9-00609744111A} +OUR_GUID_ENTRY(CLSID_VBISurfaces, +0x814b9800, 0x1c88, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a) + +// {70BC06E0-5666-11d3-A184-00105AEF9F33} WST Teletext Decoder +OUR_GUID_ENTRY(CLSID_WSTDecoder, +0x70bc06e0, 0x5666, 0x11d3, 0xa1, 0x84, 0x0, 0x10, 0x5a, 0xef, 0x9f, 0x33) + +// {301056D0-6DFF-11d2-9EEB-006008039E37} +OUR_GUID_ENTRY(CLSID_MjpegDec, +0x301056d0, 0x6dff, 0x11d2, 0x9e, 0xeb, 0x0, 0x60, 0x8, 0x3, 0x9e, 0x37) + +// {B80AB0A0-7416-11d2-9EEB-006008039E37} +OUR_GUID_ENTRY(CLSID_MJPGEnc, +0xb80ab0a0, 0x7416, 0x11d2, 0x9e, 0xeb, 0x0, 0x60, 0x8, 0x3, 0x9e, 0x37) + + + +// pnp objects and categories +// 62BE5D10-60EB-11d0-BD3B-00A0C911CE86 ICreateDevEnum +OUR_GUID_ENTRY(CLSID_SystemDeviceEnum, +0x62BE5D10,0x60EB,0x11d0,0xBD,0x3B,0x00,0xA0,0xC9,0x11,0xCE,0x86) + +// 4315D437-5B8C-11d0-BD3B-00A0C911CE86 +OUR_GUID_ENTRY(CLSID_CDeviceMoniker, +0x4315D437,0x5B8C,0x11d0,0xBD,0x3B,0x00,0xA0,0xC9,0x11,0xCE,0x86) + +// 860BB310-5D01-11d0-BD3B-00A0C911CE86 Video capture category +OUR_GUID_ENTRY(CLSID_VideoInputDeviceCategory, +0x860BB310,0x5D01,0x11d0,0xBD,0x3B,0x00,0xA0,0xC9,0x11,0xCE,0x86) +OUR_GUID_ENTRY(CLSID_CVidCapClassManager, +0x860BB310,0x5D01,0x11d0,0xBD,0x3B,0x00,0xA0,0xC9,0x11,0xCE,0x86) + +// 083863F1-70DE-11d0-BD40-00A0C911CE86 Filter category +OUR_GUID_ENTRY(CLSID_LegacyAmFilterCategory, +0x083863F1,0x70DE,0x11d0,0xBD,0x40,0x00,0xA0,0xC9,0x11,0xCE,0x86) +OUR_GUID_ENTRY(CLSID_CQzFilterClassManager, +0x083863F1,0x70DE,0x11d0,0xBD,0x40,0x00,0xA0,0xC9,0x11,0xCE,0x86) + +// 33D9A760-90C8-11d0-BD43-00A0C911CE86 +OUR_GUID_ENTRY(CLSID_VideoCompressorCategory, +0x33d9a760, 0x90c8, 0x11d0, 0xbd, 0x43, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) +OUR_GUID_ENTRY(CLSID_CIcmCoClassManager, +0x33d9a760, 0x90c8, 0x11d0, 0xbd, 0x43, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) + +// 33D9A761-90C8-11d0-BD43-00A0C911CE86 +OUR_GUID_ENTRY(CLSID_AudioCompressorCategory, +0x33d9a761, 0x90c8, 0x11d0, 0xbd, 0x43, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) +OUR_GUID_ENTRY(CLSID_CAcmCoClassManager, +0x33d9a761, 0x90c8, 0x11d0, 0xbd, 0x43, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) + +// 33D9A762-90C8-11d0-BD43-00A0C911CE86 Audio source cateogry +OUR_GUID_ENTRY(CLSID_AudioInputDeviceCategory, +0x33d9a762, 0x90c8, 0x11d0, 0xbd, 0x43, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) +OUR_GUID_ENTRY(CLSID_CWaveinClassManager, +0x33d9a762, 0x90c8, 0x11d0, 0xbd, 0x43, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) + +// E0F158E1-CB04-11d0-BD4E-00A0C911CE86 Audio renderer category +OUR_GUID_ENTRY(CLSID_AudioRendererCategory, +0xe0f158e1, 0xcb04, 0x11d0, 0xbd, 0x4e, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) +OUR_GUID_ENTRY(CLSID_CWaveOutClassManager, +0xe0f158e1, 0xcb04, 0x11d0, 0xbd, 0x4e, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) + +// 4EFE2452-168A-11d1-BC76-00C04FB9453B Midi renderer category +OUR_GUID_ENTRY(CLSID_MidiRendererCategory, +0x4EfE2452, 0x168A, 0x11d1, 0xBC, 0x76, 0x0, 0xc0, 0x4F, 0xB9, 0x45, 0x3B) +OUR_GUID_ENTRY(CLSID_CMidiOutClassManager, +0x4EfE2452, 0x168A, 0x11d1, 0xBC, 0x76, 0x0, 0xc0, 0x4F, 0xB9, 0x45, 0x3B) + +// CC7BFB41-F175-11d1-A392-00E0291F3959 External Renderers Category +OUR_GUID_ENTRY(CLSID_TransmitCategory, +0xcc7bfb41, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59) + +// CC7BFB46-F175-11d1-A392-00E0291F3959 Device Control Filters +OUR_GUID_ENTRY(CLSID_DeviceControlCategory, +0xcc7bfb46, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59) + +// DA4E3DA0-D07D-11d0-BD50-00A0C911CE86 +OUR_GUID_ENTRY(CLSID_ActiveMovieCategories, +0xda4e3da0, 0xd07d, 0x11d0, 0xbd, 0x50, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) + +// 2721AE20-7E70-11D0-A5D6-28DB04C10000 +OUR_GUID_ENTRY(CLSID_DVDHWDecodersCategory, +0x2721AE20, 0x7E70, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00) + +// 7D22E920-5CA9-4787-8C2B-A6779BD11781 Encoder API encoder category +OUR_GUID_ENTRY(CLSID_MediaEncoderCategory, +0x7D22E920, 0x5CA9, 0x4787, 0x8C, 0x2B, 0xA6, 0x77, 0x9B, 0xD1, 0x17, 0x81) + +// 236C9559-ADCE-4736-BF72-BAB34E392196 Encoder API multiplexer category +OUR_GUID_ENTRY(CLSID_MediaMultiplexerCategory, +0x236C9559, 0xADCE, 0x4736, 0xBF, 0x72, 0xBA, 0xB3, 0x4E, 0x39, 0x21, 0x96) + +// CDA42200-BD88-11d0-BD4E-00A0C911CE86 +OUR_GUID_ENTRY(CLSID_FilterMapper2, +0xcda42200, 0xbd88, 0x11d0, 0xbd, 0x4e, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) + + +// 1e651cc0-b199-11d0-8212-00c04fc32c45 +OUR_GUID_ENTRY(CLSID_MemoryAllocator, +0x1e651cc0, 0xb199, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45) + +// CDBD8D00-C193-11d0-BD4E-00A0C911CE86 +OUR_GUID_ENTRY(CLSID_MediaPropertyBag, +0xcdbd8d00, 0xc193, 0x11d0, 0xbd, 0x4e, 0x0, 0xa0, 0xc9, 0x11, 0xce, 0x86) + +// FCC152B7-F372-11d0-8E00-00C04FD7C08B +OUR_GUID_ENTRY(CLSID_DvdGraphBuilder, +0xFCC152B7, 0xF372, 0x11d0, 0x8E, 0x00, 0x00, 0xC0, 0x4F, 0xD7, 0xC0, 0x8B) + +// 9B8C4620-2C1A-11d0-8493-00A02438AD48 +OUR_GUID_ENTRY(CLSID_DVDNavigator, +0x9b8c4620, 0x2c1a, 0x11d0, 0x84, 0x93, 0x0, 0xa0, 0x24, 0x38, 0xad, 0x48) + +// f963c5cf-a659-4a93-9638-caf3cd277d13 +OUR_GUID_ENTRY(CLSID_DVDState, +0xf963c5cf, 0xa659, 0x4a93, 0x96, 0x38, 0xca, 0xf3, 0xcd, 0x27, 0x7d, 0x13) + +// CC58E280-8AA1-11d1-B3F1-00AA003761C5 +OUR_GUID_ENTRY(CLSID_SmartTee, +0xcc58e280, 0x8aa1, 0x11d1, 0xb3, 0xf1, 0x0, 0xaa, 0x0, 0x37, 0x61, 0xc5) + +// FB056BA0-2502-45B9-8E86-2B40DE84AD29 +OUR_GUID_ENTRY(CLSID_DtvCcFilter, +0xfb056ba0, 0x2502, 0x45b9, 0x8e, 0x86, 0x2b, 0x40, 0xde, 0x84, 0xad, 0x29) + +// 2F7EE4B6-6FF5-4EB4-B24A-2BFC41117171 +OUR_GUID_ENTRY(CLSID_CaptionsFilter, +0x2F7EE4B6, 0x6FF5, 0x4EB4, 0xB2, 0x4A, 0x2B, 0xFC, 0x41, 0x11, 0x71, 0x71) + +// {9F22CFEA-CE07-41ab-8BA0-C7364AF90AF9} +OUR_GUID_ENTRY(CLSID_SubtitlesFilter, +0x9f22cfea, 0xce07, 0x41ab, 0x8b, 0xa0, 0xc7, 0x36, 0x4a, 0xf9, 0x0a, 0xf9) + +// {8670C736-F614-427b-8ADA-BBADC587194B} +OUR_GUID_ENTRY(CLSID_DirectShowPluginControl, +0x8670c736, 0xf614, 0x427b, 0x8a, 0xda, 0xbb, 0xad, 0xc5, 0x87, 0x19, 0x4b) + + +// -- format types --- + +// 0F6417D6-C318-11D0-A43F-00A0C9223196 FORMAT_None +OUR_GUID_ENTRY(FORMAT_None, +0x0F6417D6, 0xc318, 0x11d0, 0xa4, 0x3f, 0x00, 0xa0, 0xc9, 0x22, 0x31, 0x96) + +// 05589f80-c356-11ce-bf01-00aa0055595a FORMAT_VideoInfo +OUR_GUID_ENTRY(FORMAT_VideoInfo, +0x05589f80, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// F72A76A0-EB0A-11d0-ACE4-0000C0CC16BA FORMAT_VideoInfo2 +OUR_GUID_ENTRY(FORMAT_VideoInfo2, +0xf72a76A0, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// 05589f81-c356-11ce-bf01-00aa0055595a FORMAT_WaveFormatEx +OUR_GUID_ENTRY(FORMAT_WaveFormatEx, +0x05589f81, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// 05589f82-c356-11ce-bf01-00aa0055595a FORMAT_MPEGVideo +OUR_GUID_ENTRY(FORMAT_MPEGVideo, +0x05589f82, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// 05589f83-c356-11ce-bf01-00aa0055595a FORMAT_MPEGStreams +OUR_GUID_ENTRY(FORMAT_MPEGStreams, +0x05589f83, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// 05589f84-c356-11ce-bf01-00aa0055595a FORMAT_DvInfo, DVINFO +OUR_GUID_ENTRY(FORMAT_DvInfo, +0x05589f84, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// C7ECF04D-4582-4869-9ABB-BFB523B62EDF FORMAT_525WSS +OUR_GUID_ENTRY(FORMAT_525WSS, +0xc7ecf04d, 0x4582, 0x4869, 0x9a, 0xbb, 0xbf, 0xb5, 0x23, 0xb6, 0x2e, 0xdf) + +// -- Video related GUIDs --- + +// 944d4c00-dd52-11ce-bf0e-00aa0055595a +OUR_GUID_ENTRY(CLSID_DirectDrawProperties, +0x944d4c00, 0xdd52, 0x11ce, 0xbf, 0x0e, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// 59ce6880-acf8-11cf-b56e-0080c7c4b68a +OUR_GUID_ENTRY(CLSID_PerformanceProperties, +0x59ce6880, 0xacf8, 0x11cf, 0xb5, 0x6e, 0x00, 0x80, 0xc7, 0xc4, 0xb6, 0x8a) + +// 418afb70-f8b8-11ce-aac6-0020af0b99a3 +OUR_GUID_ENTRY(CLSID_QualityProperties, +0x418afb70, 0xf8b8, 0x11ce, 0xaa, 0xc6, 0x00, 0x20, 0xaf, 0x0b, 0x99, 0xa3) + +// 61ded640-e912-11ce-a099-00aa00479a58 +OUR_GUID_ENTRY(IID_IBaseVideoMixer, +0x61ded640, 0xe912, 0x11ce, 0xa0, 0x99, 0x00, 0xaa, 0x00, 0x47, 0x9a, 0x58) + +// 36d39eb0-dd75-11ce-bf0e-00aa0055595a +OUR_GUID_ENTRY(IID_IDirectDrawVideo, +0x36d39eb0, 0xdd75, 0x11ce, 0xbf, 0x0e, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// bd0ecb0-f8e2-11ce-aac6-0020af0b99a3 +OUR_GUID_ENTRY(IID_IQualProp, +0x1bd0ecb0, 0xf8e2, 0x11ce, 0xaa, 0xc6, 0x00, 0x20, 0xaf, 0x0b, 0x99, 0xa3) + +// {CE292861-FC88-11d0-9E69-00C04FD7C15B} +OUR_GUID_ENTRY(CLSID_VPObject, +0xce292861, 0xfc88, 0x11d0, 0x9e, 0x69, 0x0, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b) + +// {CE292862-FC88-11d0-9E69-00C04FD7C15B} +OUR_GUID_ENTRY(IID_IVPObject, +0xce292862, 0xfc88, 0x11d0, 0x9e, 0x69, 0x0, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b) + +// {25DF12C1-3DE0-11d1-9E69-00C04FD7C15B} +OUR_GUID_ENTRY(IID_IVPControl, +0x25df12c1, 0x3de0, 0x11d1, 0x9e, 0x69, 0x0, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b) + +// {814B9801-1C88-11d1-BAD9-00609744111A} +OUR_GUID_ENTRY(CLSID_VPVBIObject, +0x814b9801, 0x1c88, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a) + +// {814B9802-1C88-11d1-BAD9-00609744111A} +OUR_GUID_ENTRY(IID_IVPVBIObject, +0x814b9802, 0x1c88, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a) + +// {BC29A660-30E3-11d0-9E69-00C04FD7C15B} +OUR_GUID_ENTRY(IID_IVPConfig, +0xbc29a660, 0x30e3, 0x11d0, 0x9e, 0x69, 0x0, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b) + +// {C76794A1-D6C5-11d0-9E69-00C04FD7C15B} +OUR_GUID_ENTRY(IID_IVPNotify, +0xc76794a1, 0xd6c5, 0x11d0, 0x9e, 0x69, 0x0, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b) + +// {EBF47183-8764-11d1-9E69-00C04FD7C15B} +OUR_GUID_ENTRY(IID_IVPNotify2, +0xebf47183, 0x8764, 0x11d1, 0x9e, 0x69, 0x0, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b) + + +// {EC529B00-1A1F-11D1-BAD9-00609744111A} +OUR_GUID_ENTRY(IID_IVPVBIConfig, +0xec529b00, 0x1a1f, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a) + +// {EC529B01-1A1F-11D1-BAD9-00609744111A} +OUR_GUID_ENTRY(IID_IVPVBINotify, +0xec529b01, 0x1a1f, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a) + +// {593CDDE1-0759-11d1-9E69-00C04FD7C15B} +OUR_GUID_ENTRY(IID_IMixerPinConfig, +0x593cdde1, 0x759, 0x11d1, 0x9e, 0x69, 0x0, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b) + +// {EBF47182-8764-11d1-9E69-00C04FD7C15B} +OUR_GUID_ENTRY(IID_IMixerPinConfig2, +0xebf47182, 0x8764, 0x11d1, 0x9e, 0x69, 0x0, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b) + + +// This is a real pain in the neck. The OLE GUIDs are separated out into a +// different file from the main header files. The header files can then be +// included multiple times and are protected with the following statements, +// +// #ifndef __SOMETHING_DEFINED__ +// #define __SOMETHING_DEFINED__ +// all the header contents +// #endif // __SOMETHING_DEFINED__ +// +// When the actual GUIDs are to be defined (using initguid) the GUID header +// file can then be included to really define them just once. Unfortunately +// DirectDraw has the GUIDs defined in the main header file. So if the base +// classes bring in ddraw.h to get at the DirectDraw structures and so on +// nobody would then be able to really include ddraw.h to allocate the GUID +// memory structures because of the aforementioned header file protection +// Therefore the DirectDraw GUIDs are defined and allocated for real here + +#ifndef __DDRAW_INCLUDED__ +OUR_GUID_ENTRY(CLSID_DirectDraw, 0xD7B70EE0,0x4340,0x11CF,0xB0,0x63,0x00,0x20,0xAF,0xC2,0xCD,0x35) +OUR_GUID_ENTRY(CLSID_DirectDrawClipper, 0x593817A0,0x7DB3,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xb9,0x33,0x56) +OUR_GUID_ENTRY(IID_IDirectDraw, 0x6C14DB80,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60) +OUR_GUID_ENTRY(IID_IDirectDraw2, 0xB3A6F3E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56) +OUR_GUID_ENTRY(IID_IDirectDrawSurface, 0x6C14DB81,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60) +OUR_GUID_ENTRY(IID_IDirectDrawSurface2, 0x57805885,0x6eec,0x11cf,0x94,0x41,0xa8,0x23,0x03,0xc1,0x0e,0x27) +OUR_GUID_ENTRY(IID_IDirectDrawSurface3, 0xDA044E00,0x69B2,0x11D0,0xA1,0xD5,0x00,0xAA,0x00,0xB8,0xDF,0xBB) +OUR_GUID_ENTRY(IID_IDirectDrawSurface4, 0x0B2B8630,0xAD35,0x11D0,0x8E,0xA6,0x00,0x60,0x97,0x97,0xEA,0x5B) +OUR_GUID_ENTRY(IID_IDirectDrawSurface7, 0x06675a80,0x3b9b,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b) +OUR_GUID_ENTRY(IID_IDirectDrawPalette, 0x6C14DB84,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60) +OUR_GUID_ENTRY(IID_IDirectDrawClipper, 0x6C14DB85,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60) +OUR_GUID_ENTRY(IID_IDirectDrawColorControl, 0x4B9F0EE0,0x0D7E,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8) +#endif + +#ifndef __DVP_INCLUDED__ +OUR_GUID_ENTRY(IID_IDDVideoPortContainer, 0x6C142760,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60) +#endif + +#ifndef __DDKM_INCLUDED__ +OUR_GUID_ENTRY(IID_IDirectDrawKernel, 0x8D56C120,0x6A08,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8) +OUR_GUID_ENTRY(IID_IDirectDrawSurfaceKernel, 0x60755DA0,0x6A40,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8) +#endif + +// 0618aa30-6bc4-11cf-bf36-00aa0055595a +OUR_GUID_ENTRY(CLSID_ModexProperties, +0x0618aa30, 0x6bc4, 0x11cf, 0xbf, 0x36, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// dd1d7110-7836-11cf-bf47-00aa0055595a +OUR_GUID_ENTRY(IID_IFullScreenVideo, +0xdd1d7110, 0x7836, 0x11cf, 0xbf, 0x47, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a) + +// 53479470-f1dd-11cf-bc42-00aa00ac74f6 +OUR_GUID_ENTRY(IID_IFullScreenVideoEx, +0x53479470, 0xf1dd, 0x11cf, 0xbc, 0x42, 0x00, 0xaa, 0x00, 0xac, 0x74, 0xf6) + +// {101193C0-0BFE-11d0-AF91-00AA00B67A42} DV decoder property +OUR_GUID_ENTRY(CLSID_DVDecPropertiesPage, +0x101193c0, 0xbfe, 0x11d0, 0xaf, 0x91, 0x0, 0xaa, 0x0, 0xb6, 0x7a, 0x42) + +// {4150F050-BB6F-11d0-AFB9-00AA00B67A42} DV encoder property +OUR_GUID_ENTRY(CLSID_DVEncPropertiesPage, +0x4150f050, 0xbb6f, 0x11d0, 0xaf, 0xb9, 0x0, 0xaa, 0x0, 0xb6, 0x7a, 0x42) + +// {4DB880E0-C10D-11d0-AFB9-00AA00B67A42} DV Muxer property +OUR_GUID_ENTRY(CLSID_DVMuxPropertyPage, +0x4db880e0, 0xc10d, 0x11d0, 0xaf, 0xb9, 0x0, 0xaa, 0x0, 0xb6, 0x7a, 0x42) + + +// -- Direct Sound Audio related GUID --- + +// 546F4260-D53E-11cf-B3F0-00AA003761C5 +OUR_GUID_ENTRY(IID_IAMDirectSound, +0x546f4260, 0xd53e, 0x11cf, 0xb3, 0xf0, 0x0, 0xaa, 0x0, 0x37, 0x61, 0xc5) + +// -- MPEG audio decoder properties + +// {b45dd570-3c77-11d1-abe1-00a0c905f375} +OUR_GUID_ENTRY(IID_IMpegAudioDecoder, +0xb45dd570, 0x3c77, 0x11d1, 0xab, 0xe1, 0x00, 0xa0, 0xc9, 0x05, 0xf3, 0x75) + +// --- Line21 Decoder interface GUID --- + +// 6E8D4A21-310C-11d0-B79A-00AA003767A7 IID_IAMLine21Decoder +OUR_GUID_ENTRY(IID_IAMLine21Decoder, +0x6e8d4a21, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7) + +// --- WST Decoder interface GUID --- + +// C056DE21-75C2-11d3-A184-00105AEF9F33 IID_IAMWstDecoder +OUR_GUID_ENTRY(IID_IAMWstDecoder, +0xc056de21, 0x75c2, 0x11d3, 0xa1, 0x84, 0x0, 0x10, 0x5a, 0xef, 0x9f, 0x33) + +// --- WST Decoder Property Page --- + +// 04E27F80-91E4-11d3-A184-00105AEF9F33 WST Decoder Property Page +OUR_GUID_ENTRY(CLSID_WstDecoderPropertyPage, +0x4e27f80, 0x91e4, 0x11d3, 0xa1, 0x84, 0x0, 0x10, 0x5a, 0xef, 0x9f, 0x33) + + +// -- Analog video related GUIDs --- + + +// -- format types --- +// 0482DDE0-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(FORMAT_AnalogVideo, +0x482dde0, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + + +// -- major type, Analog Video + +// 0482DDE1-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIATYPE_AnalogVideo, +0x482dde1, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + + +// -- Analog Video subtypes, NTSC + +// 0482DDE2-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_NTSC_M, +0x482dde2, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// -- Analog Video subtypes, PAL + +// 0482DDE5-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_PAL_B, +0x482dde5, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDE6-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_PAL_D, +0x482dde6, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDE7-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_PAL_G, +0x482dde7, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDE8-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_PAL_H, +0x482dde8, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDE9-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_PAL_I, +0x482dde9, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDEA-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_PAL_M, +0x482ddea, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDEB-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_PAL_N, +0x482ddeb, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDEC-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_PAL_N_COMBO, +0x482ddec, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// -- Analog Video subtypes, SECAM + +// 0482DDF0-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_SECAM_B, +0x482ddf0, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDF1-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_SECAM_D, +0x482ddf1, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDF2-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_SECAM_G, +0x482ddf2, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDF3-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_SECAM_H, +0x482ddf3, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDF4-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_SECAM_K, +0x482ddf4, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDF5-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_SECAM_K1, +0x482ddf5, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// 0482DDF6-7817-11cf-8A03-00AA006ECB65 +OUR_GUID_ENTRY(MEDIASUBTYPE_AnalogVideo_SECAM_L, +0x482ddf6, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + + +// -- External audio related GUIDs --- + +// -- major types, Analog Audio + +// 0482DEE1-7817-11cf-8a03-00aa006ecb65 +OUR_GUID_ENTRY(MEDIATYPE_AnalogAudio, +0x482dee1, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// -- Video analysis related GUIDs --- + +// -- format types used by VA -- H.264, captioning + +// {A4EFC024-873E-4da3-898B-474DDBD79FD0} +OUR_GUID_ENTRY(FORMAT_CAPTIONED_H264VIDEO, +0xa4efc024, 0x873e, 0x4da3, 0x89, 0x8b, 0x47, 0x4d, 0xdb, 0xd7, 0x9f, 0xd0) + +// -- media, media subtype, and format types, CC container + +// {50997A4A-E508-4054-A2B2-10FF0AC1A69A} +OUR_GUID_ENTRY(FORMAT_CC_CONTAINER, +0x50997a4a, 0xe508, 0x4054, 0xa2, 0xb2, 0x10, 0xff, 0xa, 0xc1, 0xa6, 0x9a) + +// {3ED9CB31-FD10-4ade-BCCC-FB9105D2F3EF} +OUR_GUID_ENTRY(CAPTION_FORMAT_ATSC, +0x3ed9cb31, 0xfd10, 0x4ade, 0xbc, 0xcc, 0xfb, 0x91, 0x5, 0xd2, 0xf3, 0xef) + +// {12230DB4-FF2A-447e-BB88-6841C416D068} +OUR_GUID_ENTRY(CAPTION_FORMAT_DVB, +0x12230db4, 0xff2a, 0x447e, 0xbb, 0x88, 0x68, 0x41, 0xc4, 0x16, 0xd0, 0x68) + +// {E9CA1CE7-915E-47be-9BB9-BF1D8A13A5EC} +OUR_GUID_ENTRY(CAPTION_FORMAT_DIRECTV, +0xe9ca1ce7, 0x915e, 0x47be, 0x9b, 0xb9, 0xbf, 0x1d, 0x8a, 0x13, 0xa5, 0xec) + +// {EBB1A262-1158-4b99-AE80-92AC776952C4} +OUR_GUID_ENTRY(CAPTION_FORMAT_ECHOSTAR, +0xebb1a262, 0x1158, 0x4b99, 0xae, 0x80, 0x92, 0xac, 0x77, 0x69, 0x52, 0xc4) + +// -- format types, MPEG-2 + +// {7AB2ADA2-81B6-4f14-B3C8-D0C486393B67} +OUR_GUID_ENTRY(FORMAT_CAPTIONED_MPEG2VIDEO, +0x7ab2ada2, 0x81b6, 0x4f14, 0xb3, 0xc8, 0xd0, 0xc4, 0x86, 0x39, 0x3b, 0x67) + +// +// DirectShow's include file based on ksmedia.h from WDM DDK +// +#include "ksuuids.h" + + +// -- Well known time format GUIDs --- + + +// 00000000-0000-0000-0000-000000000000 +OUR_GUID_ENTRY(TIME_FORMAT_NONE, +0L, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) + +// 7b785570-8c82-11cf-bc0c-00aa00ac74f6 +OUR_GUID_ENTRY(TIME_FORMAT_FRAME, +0x7b785570, 0x8c82, 0x11cf, 0xbc, 0xc, 0x0, 0xaa, 0x0, 0xac, 0x74, 0xf6) + +// 7b785571-8c82-11cf-bc0c-00aa00ac74f6 +OUR_GUID_ENTRY(TIME_FORMAT_BYTE, +0x7b785571, 0x8c82, 0x11cf, 0xbc, 0xc, 0x0, 0xaa, 0x0, 0xac, 0x74, 0xf6) + +// 7b785572-8c82-11cf-bc0c-00aa00ac74f6 +OUR_GUID_ENTRY(TIME_FORMAT_SAMPLE, +0x7b785572, 0x8c82, 0x11cf, 0xbc, 0xc, 0x0, 0xaa, 0x0, 0xac, 0x74, 0xf6) + +// 7b785573-8c82-11cf-bc0c-00aa00ac74f6 +OUR_GUID_ENTRY(TIME_FORMAT_FIELD, +0x7b785573, 0x8c82, 0x11cf, 0xbc, 0xc, 0x0, 0xaa, 0x0, 0xac, 0x74, 0xf6) + + +// 7b785574-8c82-11cf-bc0c-00aa00ac74f6 +OUR_GUID_ENTRY(TIME_FORMAT_MEDIA_TIME, +0x7b785574, 0x8c82, 0x11cf, 0xbc, 0xc, 0x0, 0xaa, 0x0, 0xac, 0x74, 0xf6) + + +// for IKsPropertySet + +// 9B00F101-1567-11d1-B3F1-00AA003761C5 +OUR_GUID_ENTRY(AMPROPSETID_Pin, +0x9b00f101, 0x1567, 0x11d1, 0xb3, 0xf1, 0x0, 0xaa, 0x0, 0x37, 0x61, 0xc5) + +// fb6c4281-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_CAPTURE, +0xfb6c4281, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c4282-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_PREVIEW, +0xfb6c4282, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c4283-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_ANALOGVIDEOIN, +0xfb6c4283, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c4284-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_VBI, +0xfb6c4284, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c4285-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_VIDEOPORT, +0xfb6c4285, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c4286-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_NABTS, +0xfb6c4286, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c4287-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_EDS, +0xfb6c4287, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c4288-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_TELETEXT, +0xfb6c4288, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c4289-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_CC, +0xfb6c4289, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c428a-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_STILL, +0xfb6c428a, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c428b-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_TIMECODE, +0xfb6c428b, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + +// fb6c428c-0353-11d1-905f-0000c0cc16ba +OUR_GUID_ENTRY(PIN_CATEGORY_VIDEOPORT_VBI, +0xfb6c428c, 0x0353, 0x11d1, 0x90, 0x5f, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba) + + +// the following special GUIDS are used by ICaptureGraphBuilder::FindInterface + +// {AC798BE0-98E3-11d1-B3F1-00AA003761C5} +OUR_GUID_ENTRY(LOOK_UPSTREAM_ONLY, +0xac798be0, 0x98e3, 0x11d1, 0xb3, 0xf1, 0x0, 0xaa, 0x0, 0x37, 0x61, 0xc5) + +// {AC798BE1-98E3-11d1-B3F1-00AA003761C5} +OUR_GUID_ENTRY(LOOK_DOWNSTREAM_ONLY, +0xac798be1, 0x98e3, 0x11d1, 0xb3, 0xf1, 0x0, 0xaa, 0x0, 0x37, 0x61, 0xc5) + +// ------------------------------------------------------------------------- +// KSProxy GUIDS +// ------------------------------------------------------------------------- + +// {266EEE41-6C63-11cf-8A03-00AA006ECB65} +OUR_GUID_ENTRY(CLSID_TVTunerFilterPropertyPage, +0x266eee41, 0x6c63, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65) + +// {71F96461-78F3-11d0-A18C-00A0C9118956} +OUR_GUID_ENTRY(CLSID_CrossbarFilterPropertyPage, +0x71f96461, 0x78f3, 0x11d0, 0xa1, 0x8c, 0x0, 0xa0, 0xc9, 0x11, 0x89, 0x56) + +// {71F96463-78F3-11d0-A18C-00A0C9118956} +OUR_GUID_ENTRY(CLSID_TVAudioFilterPropertyPage, +0x71f96463, 0x78f3, 0x11d0, 0xa1, 0x8c, 0x0, 0xa0, 0xc9, 0x11, 0x89, 0x56) + +// {71F96464-78F3-11d0-A18C-00A0C9118956} +OUR_GUID_ENTRY(CLSID_VideoProcAmpPropertyPage, +0x71f96464, 0x78f3, 0x11d0, 0xa1, 0x8c, 0x0, 0xa0, 0xc9, 0x11, 0x89, 0x56) + +// {71F96465-78F3-11d0-A18C-00A0C9118956} +OUR_GUID_ENTRY(CLSID_CameraControlPropertyPage, +0x71f96465, 0x78f3, 0x11d0, 0xa1, 0x8c, 0x0, 0xa0, 0xc9, 0x11, 0x89, 0x56) + +// {71F96466-78F3-11d0-A18C-00A0C9118956} +OUR_GUID_ENTRY(CLSID_AnalogVideoDecoderPropertyPage, +0x71f96466, 0x78f3, 0x11d0, 0xa1, 0x8c, 0x0, 0xa0, 0xc9, 0x11, 0x89, 0x56) + +// {71F96467-78F3-11d0-A18C-00A0C9118956} +OUR_GUID_ENTRY(CLSID_VideoStreamConfigPropertyPage, +0x71f96467, 0x78f3, 0x11d0, 0xa1, 0x8c, 0x0, 0xa0, 0xc9, 0x11, 0x89, 0x56) + +// {37E92A92-D9AA-11d2-BF84-8EF2B1555AED} Audio Renderer Advanced Property Page +OUR_GUID_ENTRY(CLSID_AudioRendererAdvancedProperties, +0x37e92a92, 0xd9aa, 0x11d2, 0xbf, 0x84, 0x8e, 0xf2, 0xb1, 0x55, 0x5a, 0xed) + + +// ------------------------------------------------------------------------- +// VMR GUIDS +// ------------------------------------------------------------------------- + +// {B87BEB7B-8D29-423f-AE4D-6582C10175AC} +OUR_GUID_ENTRY(CLSID_VideoMixingRenderer, +0xB87BEB7B, 0x8D29, 0x423f, 0xAE, 0x4D, 0x65, 0x82, 0xC1, 0x01, 0x75, 0xAC) + +// {6BC1CFFA-8FC1-4261-AC22-CFB4CC38DB50} +OUR_GUID_ENTRY(CLSID_VideoRendererDefault, +0x6BC1CFFA, 0x8FC1, 0x4261, 0xAC, 0x22, 0xCF, 0xB4, 0xCC, 0x38, 0xDB, 0x50) + +// {99d54f63-1a69-41ae-aa4d-c976eb3f0713} +OUR_GUID_ENTRY(CLSID_AllocPresenter, +0x99d54f63, 0x1a69, 0x41ae, 0xaa, 0x4d, 0xc9, 0x76, 0xeb, 0x3f, 0x07, 0x13) + +// {4444ac9e-242e-471b-a3c7-45dcd46352bc} +OUR_GUID_ENTRY(CLSID_AllocPresenterDDXclMode, +0x4444ac9e, 0x242e, 0x471b, 0xa3, 0xc7, 0x45, 0xdc, 0xd4, 0x63, 0x52, 0xbc) + +// {6f26a6cd-967b-47fd-874a-7aed2c9d25a2} +OUR_GUID_ENTRY(CLSID_VideoPortManager, +0x6f26a6cd, 0x967b, 0x47fd, 0x87, 0x4a, 0x7a, 0xed, 0x2c, 0x9d, 0x25, 0xa2) + + +// ------------------------------------------------------------------------- +// VMR GUIDS for DX9 +// ------------------------------------------------------------------------- + +// {51b4abf3-748f-4e3b-a276-c828330e926a} +OUR_GUID_ENTRY(CLSID_VideoMixingRenderer9, +0x51b4abf3, 0x748f, 0x4e3b, 0xa2, 0x76, 0xc8, 0x28, 0x33, 0x0e, 0x92, 0x6a) + + +// ------------------------------------------------------------------------- +// EVR GUIDS +// ------------------------------------------------------------------------- + +// {FA10746C-9B63-4b6c-BC49-FC300EA5F256} +OUR_GUID_ENTRY(CLSID_EnhancedVideoRenderer, +0xfa10746c, 0x9b63, 0x4b6c, 0xbc, 0x49, 0xfc, 0x30, 0xe, 0xa5, 0xf2, 0x56) + +#ifndef __EVR_GUIDS__ +#define __EVR_GUIDS__ + +// {E474E05A-AB65-4f6a-827C-218B1BAAF31F} +OUR_GUID_ENTRY(CLSID_MFVideoMixer9, +0xE474E05A, 0xAB65, 0x4f6a, 0x82, 0x7C, 0x21, 0x8B, 0x1B, 0xAA, 0xF3, 0x1F) + +// {98455561-5136-4d28-AB08-4CEE40EA2781} +OUR_GUID_ENTRY(CLSID_MFVideoPresenter9, +0x98455561, 0x5136, 0x4d28, 0xab, 0x8, 0x4c, 0xee, 0x40, 0xea, 0x27, 0x81) + +#endif // __EVR_GUIDS__ + +// {a0a7a57b-59b2-4919-a694-add0a526c373} +OUR_GUID_ENTRY(CLSID_EVRTearlessWindowPresenter9, +0xa0a7a57b, 0x59b2, 0x4919, 0xa6, 0x94, 0xad, 0xd0, 0xa5, 0x26, 0xc3, 0x73) + +// {62079164-233b-41f8-a80f-f01705f514a8} +OUR_GUID_ENTRY(CLSID_EVRPlaybackPipelineOptimizer, +0x62079164, 0x233b, 0x41f8, 0xa8, 0x0f, 0xf0, 0x17, 0x05, 0xf5, 0x14, 0xa8) + +// {e447df01-10ca-4d17-b17e-6a840f8a3a4c} +// {e447df02-10ca-4d17-b17e-6a840f8a3a4c} +// {e447df03-10ca-4d17-b17e-6a840f8a3a4c} +// {e447df04-10ca-4d17-b17e-6a840f8a3a4c} +// {e447df05-10ca-4d17-b17e-6a840f8a3a4c} +// {e447df06-10ca-4d17-b17e-6a840f8a3a4c} +// {e447df07-10ca-4d17-b17e-6a840f8a3a4c} +// {e447df08-10ca-4d17-b17e-6a840f8a3a4c} +// {e447df09-10ca-4d17-b17e-6a840f8a3a4c} +// {e447df0a-10ca-4d17-b17e-6a840f8a3a4c} +OUR_GUID_ENTRY( EVRConfig_ForceBob, 0xe447df01,0x10ca,0x4d17,0xb1, 0x7e, 0x6a, 0x84, 0x0f, 0x8a, 0x3a, 0x4c) +OUR_GUID_ENTRY( EVRConfig_AllowDropToBob, 0xe447df02,0x10ca,0x4d17,0xb1, 0x7e, 0x6a, 0x84, 0x0f, 0x8a, 0x3a, 0x4c) +OUR_GUID_ENTRY( EVRConfig_ForceThrottle, 0xe447df03,0x10ca,0x4d17,0xb1, 0x7e, 0x6a, 0x84, 0x0f, 0x8a, 0x3a, 0x4c) +OUR_GUID_ENTRY( EVRConfig_AllowDropToThrottle, 0xe447df04,0x10ca,0x4d17,0xb1, 0x7e, 0x6a, 0x84, 0x0f, 0x8a, 0x3a, 0x4c) +OUR_GUID_ENTRY( EVRConfig_ForceHalfInterlace, 0xe447df05,0x10ca,0x4d17,0xb1, 0x7e, 0x6a, 0x84, 0x0f, 0x8a, 0x3a, 0x4c) +OUR_GUID_ENTRY( EVRConfig_AllowDropToHalfInterlace,0xe447df06,0x10ca,0x4d17,0xb1, 0x7e, 0x6a, 0x84, 0x0f, 0x8a, 0x3a, 0x4c) +OUR_GUID_ENTRY( EVRConfig_ForceScaling, 0xe447df07,0x10ca,0x4d17,0xb1, 0x7e, 0x6a, 0x84, 0x0f, 0x8a, 0x3a, 0x4c) +OUR_GUID_ENTRY( EVRConfig_AllowScaling, 0xe447df08,0x10ca,0x4d17,0xb1, 0x7e, 0x6a, 0x84, 0x0f, 0x8a, 0x3a, 0x4c) +OUR_GUID_ENTRY( EVRConfig_ForceBatching, 0xe447df09,0x10ca,0x4d17,0xb1, 0x7e, 0x6a, 0x84, 0x0f, 0x8a, 0x3a, 0x4c) +OUR_GUID_ENTRY( EVRConfig_AllowBatching, 0xe447df0a,0x10ca,0x4d17,0xb1, 0x7e, 0x6a, 0x84, 0x0f, 0x8a, 0x3a, 0x4c) + + +// ------------------------------------------------------------------------- +// BDA Network Provider GUIDS +// ------------------------------------------------------------------------- + +// This is the GUID for the generic NP which would replace ATSC, DVBT, DVBS +// and DVBC NP. All the other GUIDs are still kept for backward compatibility +// {B2F3A67C-29DA-4c78-8831-091ED509A475} +OUR_GUID_ENTRY(CLSID_NetworkProvider, +0xb2f3a67c, 0x29da, 0x4c78, 0x88, 0x31, 0x9, 0x1e, 0xd5, 0x9, 0xa4, 0x75) + +// {0DAD2FDD-5FD7-11D3-8F50-00C04F7971E2} +OUR_GUID_ENTRY(CLSID_ATSCNetworkProvider, +0x0dad2fdd, 0x5fd7, 0x11d3, 0x8f, 0x50, 0x00, 0xc0, 0x4f, 0x79, 0x71, 0xe2) + +// {E3444D16-5AC4-4386-88DF-13FD230E1DDA} +OUR_GUID_ENTRY(CLSID_ATSCNetworkPropertyPage, +0xe3444d16, 0x5ac4, 0x4386, 0x88, 0xdf, 0x13, 0xfd, 0x23, 0x0e, 0x1d, 0xda) + +// {FA4B375A-45B4-4d45-8440-263957B11623} +OUR_GUID_ENTRY(CLSID_DVBSNetworkProvider, +0xfa4b375a, 0x45b4, 0x4d45, 0x84, 0x40, 0x26, 0x39, 0x57, 0xb1, 0x16, 0x23) + +// {216C62DF-6D7F-4e9a-8571-05F14EDB766A} +OUR_GUID_ENTRY(CLSID_DVBTNetworkProvider, +0x216c62df, 0x6d7f, 0x4e9a, 0x85, 0x71, 0x5, 0xf1, 0x4e, 0xdb, 0x76, 0x6a) + +// {DC0C0FE7-0485-4266-B93F-68FBF80ED834} +OUR_GUID_ENTRY(CLSID_DVBCNetworkProvider, +0xdc0c0fe7, 0x485, 0x4266, 0xb9, 0x3f, 0x68, 0xfb, 0xf8, 0xe, 0xd8, 0x34) + +// ------------------------------------------------------------------------- +// attribute GUIDs +// ------------------------------------------------------------------------- + +// {EB7836CA-14FF-4919-BCE7-3AF12319E50C} +OUR_GUID_ENTRY(DSATTRIB_UDCRTag, +0xEB7836CA, 0x14FF, 0x4919, 0xbc, 0xe7, 0x3a, 0xf1, 0x23, 0x19, 0xe5, 0x0c) + +// {2F5BAE02-7B8F-4f60-82D6-E4EA2F1F4C99} +OUR_GUID_ENTRY(DSATTRIB_PicSampleSeq, +0x2f5bae02, 0x7b8f, 0x4f60, 0x82, 0xd6, 0xe4, 0xea, 0x2f, 0x1f, 0x4c, 0x99) + +// {5A5F08CA-55C2-4033-92AB-55DB8F781226} +OUR_GUID_ENTRY(DSATTRIB_OptionalVideoAttributes, +0x5A5F08CA, 0x55C2, 0x4033, 0x92, 0xAB, 0x55, 0xDB, 0x8F, 0x78, 0x12, 0x26) + +// {e7e050fb-dd5d-40dd-9915-35dcb81bdc8a} +OUR_GUID_ENTRY(DSATTRIB_CC_CONTAINER_INFO, +0xe7e050fb, 0xdd5d, 0x40dd, 0x99, 0x15, 0x35, 0xDC, 0xB8, 0x1B, 0xDC, 0x8a) + +// {B622F612-47AD-4671-AD6C-05A98E65DE3A} +OUR_GUID_ENTRY(DSATTRIB_TRANSPORT_PROPERTIES, +0xb622f612, 0x47ad, 0x4671, 0xad, 0x6c, 0x5, 0xa9, 0x8e, 0x65, 0xde, 0x3a) + +// {e0b56679-12b9-43cc-b7df-578caa5a7b63} +OUR_GUID_ENTRY(DSATTRIB_PBDATAG_ATTRIBUTE, +0xe0b56679, 0x12b9, 0x43cc, 0xb7, 0xdf, 0x57, 0x8c, 0xaa, 0x5a, 0x7b, 0x63) + +// {0c1a5614-30cd-4f40-bcbf-d03e52306207} +OUR_GUID_ENTRY( DSATTRIB_CAPTURE_STREAMTIME, +0x0c1a5614, 0x30cd, 0x4f40, 0xbc, 0xbf, 0xd0, 0x3e, 0x52, 0x30, 0x62, 0x07) + +// {5FB5673B-0A2A-4565-827B-6853FD75E611} DSATTRIB_DSHOW_STREAM_DESC +OUR_GUID_ENTRY(DSATTRIB_DSHOW_STREAM_DESC, +0x5fb5673b, 0xa2a, 0x4565, 0x82, 0x7b, 0x68, 0x53, 0xfd, 0x75, 0xe6, 0x11) + +// {892CD111-72F3-411d-8B91-A9E9123AC29A} +OUR_GUID_ENTRY(DSATTRIB_SAMPLE_LIVE_STREAM_TIME, +0x892cd111, 0x72f3, 0x411d, 0x8b, 0x91, 0xa9, 0xe9, 0x12, 0x3a, 0xc2, 0x9a) + +// UUID for supported UDRI TAG tables +OUR_GUID_ENTRY( UUID_UdriTagTables, +0xe1b98d74, 0x9778, 0x4878, 0xb6, 0x64, 0xeb, 0x20, 0x20, 0x36, 0x4d, 0x88) + +// UUID for supported WMDRM TAG tables +OUR_GUID_ENTRY( UUID_WMDRMTagTables, +0x5DCD1101, 0x9263, 0x45bb, 0xa4, 0xd5, 0xc4, 0x15, 0xab, 0x8c, 0x58, 0x9c) + +// ------------------------------------------------------------------------- +// TVE Receiver filter guids +// ------------------------------------------------------------------------- + +// The CLSID used by the TVE Receiver filter +// {05500280-FAA5-4DF9-8246-BFC23AC5CEA8} +OUR_GUID_ENTRY(CLSID_DShowTVEFilter, +0x05500280, 0xFAA5, 0x4DF9, 0x82, 0x46, 0xBF, 0xC2, 0x3A, 0xC5, 0xCE, 0xA8) + +// {05500281-FAA5-4DF9-8246-BFC23AC5CEA8} +OUR_GUID_ENTRY(CLSID_TVEFilterTuneProperties, +0x05500281, 0xFAA5, 0x4DF9, 0x82, 0x46, 0xBF, 0xC2, 0x3A, 0xC5, 0xCE, 0xA8) + + +// {05500282-FAA5-4DF9-8246-BFC23AC5CEA8} +OUR_GUID_ENTRY(CLSID_TVEFilterCCProperties, +0x05500282, 0xFAA5, 0x4DF9, 0x82, 0x46, 0xBF, 0xC2, 0x3A, 0xC5, 0xCE, 0xA8) + +// {05500283-FAA5-4DF9-8246-BFC23AC5CEA8} +OUR_GUID_ENTRY(CLSID_TVEFilterStatsProperties, +0x05500283, 0xFAA5, 0x4DF9, 0x82, 0x46, 0xBF, 0xC2, 0x3A, 0xC5, 0xCE, 0xA8) + +// ------------------------------------------------------------------------- +// Defined ENCAPI parameter GUIDs +// ------------------------------------------------------------------------- + +// The CLSID for the original IVideoEncoder proxy plug-in +// {B43C4EEC-8C32-4791-9102-508ADA5EE8E7} +OUR_GUID_ENTRY(CLSID_IVideoEncoderProxy, +0xb43c4eec, 0x8c32, 0x4791, 0x91, 0x2, 0x50, 0x8a, 0xda, 0x5e, 0xe8, 0xe7) + +// The CLSID for the ICodecAPI proxy plug-in +// {7ff0997a-1999-4286-a73c-622b8814e7eb} +OUR_GUID_ENTRY(CLSID_ICodecAPIProxy, +0x7ff0997a, 0x1999, 0x4286, 0xa7, 0x3c, 0x62, 0x2b, 0x88, 0x14, 0xe7, 0xeb ) + +// The CLSID for the combination ICodecAPI/IVideoEncoder proxy plug-in +// {b05dabd9-56e5-4fdc-afa4-8a47e91f1c9c} +OUR_GUID_ENTRY(CLSID_IVideoEncoderCodecAPIProxy, +0xb05dabd9, 0x56e5, 0x4fdc, 0xaf, 0xa4, 0x8a, 0x47, 0xe9, 0x1f, 0x1c, 0x9c ) + +#ifndef __ENCODER_API_GUIDS__ +#define __ENCODER_API_GUIDS__ + +// {49CC4C43-CA83-4ad4-A9AF-F3696AF666DF} +OUR_GUID_ENTRY(ENCAPIPARAM_BITRATE, +0x49cc4c43, 0xca83, 0x4ad4, 0xa9, 0xaf, 0xf3, 0x69, 0x6a, 0xf6, 0x66, 0xdf) + +// {703F16A9-3D48-44a1-B077-018DFF915D19} +OUR_GUID_ENTRY(ENCAPIPARAM_PEAK_BITRATE, +0x703f16a9, 0x3d48, 0x44a1, 0xb0, 0x77, 0x1, 0x8d, 0xff, 0x91, 0x5d, 0x19) + +// {EE5FB25C-C713-40d1-9D58-C0D7241E250F} +OUR_GUID_ENTRY(ENCAPIPARAM_BITRATE_MODE, +0xee5fb25c, 0xc713, 0x40d1, 0x9d, 0x58, 0xc0, 0xd7, 0x24, 0x1e, 0x25, 0xf) + +// {0C0171DB-FEFC-4af7-9991-A5657C191CD1} +OUR_GUID_ENTRY(ENCAPIPARAM_SAP_MODE, +0xc0171db, 0xfefc, 0x4af7, 0x99, 0x91, 0xa5, 0x65, 0x7c, 0x19, 0x1c, 0xd1) + +// for kernel control + +// {62b12acf-f6b0-47d9-9456-96f22c4e0b9d} +OUR_GUID_ENTRY(CODECAPI_CHANGELISTS, +0x62b12acf, 0xf6b0, 0x47d9, 0x94, 0x56, 0x96, 0xf2, 0x2c, 0x4e, 0x0b, 0x9d) + +// {7112e8e1-3d03-47ef-8e60-03f1cf537301 } +OUR_GUID_ENTRY(CODECAPI_VIDEO_ENCODER, +0x7112e8e1, 0x3d03, 0x47ef, 0x8e, 0x60, 0x03, 0xf1, 0xcf, 0x53, 0x73, 0x01) + +// {b9d19a3e-f897-429c-bc46-8138b7272b2d } +OUR_GUID_ENTRY(CODECAPI_AUDIO_ENCODER, +0xb9d19a3e, 0xf897, 0x429c, 0xbc, 0x46, 0x81, 0x38, 0xb7, 0x27, 0x2b, 0x2d) + +// {6c5e6a7c-acf8-4f55-a999-1a628109051b } +OUR_GUID_ENTRY(CODECAPI_SETALLDEFAULTS, +0x6c5e6a7c, 0xacf8, 0x4f55, 0xa9, 0x99, 0x1a, 0x62, 0x81, 0x09, 0x05, 0x1b) + +// {6a577e92-83e1-4113-adc2-4fcec32f83a1 } +OUR_GUID_ENTRY(CODECAPI_ALLSETTINGS, +0x6a577e92, 0x83e1, 0x4113, 0xad, 0xc2, 0x4f, 0xce, 0xc3, 0x2f, 0x83, 0xa1) + +// {0581af97-7693-4dbd-9dca-3f9ebd6585a1 } +OUR_GUID_ENTRY(CODECAPI_SUPPORTSEVENTS, +0x0581af97, 0x7693, 0x4dbd, 0x9d, 0xca, 0x3f, 0x9e, 0xbd, 0x65, 0x85, 0xa1 ) + +// {1cb14e83-7d72-4657-83fd-47a2c5b9d13d } +OUR_GUID_ENTRY(CODECAPI_CURRENTCHANGELIST, +0x1cb14e83, 0x7d72, 0x4657, 0x83, 0xfd, 0x47, 0xa2, 0xc5, 0xb9, 0xd1, 0x3d ) + +// {1f26a602-2b5c-4b63-b8e8-9ea5c1a7dc2e} +OUR_GUID_ENTRY(CLSID_SBE2MediaTypeProfile, +0x1f26a602, 0x2b5c, 0x4b63, 0xb8, 0xe8, 0x9e, 0xa5, 0xc1, 0xa7, 0xdc, 0x2e ) + +// {3E458037-0CA6-41aa-A594-2AA6C02D709B} +OUR_GUID_ENTRY(CLSID_SBE2FileScan, +0x3e458037, 0xca6, 0x41aa, 0xa5, 0x94, 0x2a, 0xa6, 0xc0, 0x2d, 0x70, 0x9b) ; + +// When generating strmiids.lib, include codecapi definitions +#ifdef INITGUID +#define UUID_GEN +#include +#endif + +#endif // __ENCODER_API_GUIDS__ + +// ----------------------------------------------- +// Used for decoders that exposing ICodecAPI +// ----------------------------------------------- +OUR_GUID_ENTRY(CODECAPI_AVDecMmcssClass, +0xe0ad4828, 0xdf66, 0x4893, 0x9f, 0x33, 0x78, 0x8a, 0xa4, 0xec, 0x40, 0x82) + +#undef OUR_GUID_ENTRY + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/vhf.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/vhf.h new file mode 100644 index 0000000000000000000000000000000000000000..ca4466dc9bf327e34def6c005829b66fae9a5c78 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/vhf.h @@ -0,0 +1,226 @@ +/*++ + +Copyright (c) Microsoft Corporation. All Rights Reserved. + +Module Name: + + vhf.h + +Abstract: + + This is the Virtual HID Framework (VHF) interface for both User mode and Kernel mode. + +Revision History: + +--*/ + +#ifndef __VHF_H__ +#define __VHF_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#if(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +// +// _HID_XFER_PACKET structure is defined in hidclass.h. If hidclass.h is +// not already included, then the structure will not be defined at this +// point. Instead of requiring that hidclass.h be included, define this +// structure in this header if not already defined. +// +#ifndef __HIDCLASS_H__ + +typedef struct _HID_XFER_PACKET { + PUCHAR reportBuffer; + ULONG reportBufferLen; + UCHAR reportId; +} HID_XFER_PACKET, *PHID_XFER_PACKET; + +#endif + +typedef PVOID VHFHANDLE; +typedef PVOID VHFOPERATIONHANDLE; + +typedef +_Function_class_(EVT_VHF_READY_FOR_NEXT_READ_REPORT) +_IRQL_requires_max_(DISPATCH_LEVEL) +_IRQL_requires_same_ +VOID +EVT_VHF_READY_FOR_NEXT_READ_REPORT( + _In_ + PVOID VhfClientContext + ); + +typedef EVT_VHF_READY_FOR_NEXT_READ_REPORT *PEVT_VHF_READY_FOR_NEXT_READ_REPORT; + +typedef +_Function_class_(EVT_VHF_CLEANUP) +_IRQL_requires_max_(DISPATCH_LEVEL) +_IRQL_requires_same_ +VOID +EVT_VHF_CLEANUP( + _In_ + PVOID VhfClientContext + ); + +typedef EVT_VHF_CLEANUP *PEVT_VHF_CLEANUP; + +typedef +_Function_class_(EVT_VHF_ASYNC_OPERATION) +_IRQL_requires_max_(DISPATCH_LEVEL) +_IRQL_requires_same_ +VOID +EVT_VHF_ASYNC_OPERATION( + _In_ + PVOID VhfClientContext, + _In_ + VHFOPERATIONHANDLE VhfOperationHandle, + _In_opt_ + PVOID VhfOperationContext, + _In_ + PHID_XFER_PACKET HidTransferPacket + ); + +typedef EVT_VHF_ASYNC_OPERATION *PEVT_VHF_ASYNC_OPERATION; + +typedef struct _VHF_CONFIG { + + ULONG Size; + + PVOID VhfClientContext; + + ULONG OperationContextSize; + +#ifdef _KERNEL_MODE + PDEVICE_OBJECT DeviceObject; +#else + HANDLE FileHandle; +#endif + + USHORT VendorID; + USHORT ProductID; + USHORT VersionNumber; + + GUID ContainerID; + + USHORT InstanceIDLength; + _Field_size_bytes_full_(InstanceIDLength) + PWSTR InstanceID; + + USHORT ReportDescriptorLength; + _Field_size_full_(ReportDescriptorLength) + PUCHAR ReportDescriptor; + + PEVT_VHF_READY_FOR_NEXT_READ_REPORT EvtVhfReadyForNextReadReport; + PEVT_VHF_ASYNC_OPERATION EvtVhfAsyncOperationGetFeature; + PEVT_VHF_ASYNC_OPERATION EvtVhfAsyncOperationSetFeature; + PEVT_VHF_ASYNC_OPERATION EvtVhfAsyncOperationWriteReport; + PEVT_VHF_ASYNC_OPERATION EvtVhfAsyncOperationGetInputReport; + PEVT_VHF_CLEANUP EvtVhfCleanup; + + USHORT HardwareIDsLength; + _Field_size_bytes_full_(HardwareIDsLength) + PWSTR HardwareIDs; + +} VHF_CONFIG, *PVHF_CONFIG; + +FORCEINLINE +VOID +VHF_CONFIG_INIT( + _Out_ + PVHF_CONFIG Config, +#ifdef _KERNEL_MODE + _In_ + PDEVICE_OBJECT DeviceObject, +#else + _In_ + HANDLE FileHandle, +#endif + _In_ + USHORT ReportDescriptorLength, + _In_reads_bytes_(ReportDescriptorLength) + PUCHAR ReportDescriptor + ) +{ + RtlZeroMemory(Config, sizeof(VHF_CONFIG)); + + Config->Size = sizeof(VHF_CONFIG); + Config->VhfClientContext = NULL; + Config->OperationContextSize = 0; + +#ifdef _KERNEL_MODE + Config->DeviceObject = DeviceObject; +#else + Config->FileHandle = FileHandle; +#endif + + Config->VendorID = 0; + Config->ProductID = 0; + Config->VersionNumber = 0; + + Config->ReportDescriptorLength = ReportDescriptorLength; + Config->ReportDescriptor = ReportDescriptor; + + Config->EvtVhfReadyForNextReadReport = NULL; + Config->EvtVhfCleanup = NULL; + Config->EvtVhfAsyncOperationGetFeature = NULL; + Config->EvtVhfAsyncOperationSetFeature = NULL; + Config->EvtVhfAsyncOperationWriteReport = NULL; + Config->EvtVhfAsyncOperationGetInputReport = NULL; +} + +_IRQL_requires_(PASSIVE_LEVEL) +_Must_inspect_result_ +NTSTATUS +VhfCreate( + _In_ + PVHF_CONFIG VhfConfig, + _Out_ + VHFHANDLE* VhfHandle + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +_Must_inspect_result_ +NTSTATUS +VhfStart( + _In_ + VHFHANDLE VhfHandle + ); + +_When_(Wait == __true, _IRQL_requires_(PASSIVE_LEVEL)) +_When_(Wait == __false, _IRQL_requires_max_(DISPATCH_LEVEL)) +VOID +VhfDelete( + _In_ + VHFHANDLE VhfHandle, + _In_ + BOOLEAN Wait + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +_Must_inspect_result_ +NTSTATUS +VhfReadReportSubmit( + _In_ + VHFHANDLE VhfHandle, + _In_ + PHID_XFER_PACKET HidTransferPacket + ); + +_IRQL_requires_max_(DISPATCH_LEVEL) +NTSTATUS +VhfAsyncOperationComplete( + _In_ + VHFOPERATIONHANDLE VhfOperationHandle, + _In_ + NTSTATUS CompletionStatus + ); + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +#ifdef __cplusplus +} +#endif + +#endif // __VHF_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/vmgenerationcounter.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/vmgenerationcounter.h new file mode 100644 index 0000000000000000000000000000000000000000..ff7c9781701bab906400e359f1e9f6f73b77828f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/vmgenerationcounter.h @@ -0,0 +1,44 @@ +/*++ + +Copyright (c) Microsoft Corporation. All Rights Reserved. + +Module Name: + + vmgenerationcounter.h + +Abstract: + + This file implements the published interface for the virtual machine + generation counter. + +--*/ + +#ifdef _MSC_VER +#pragma once +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if (NTDDI_VERSION >= NTDDI_WINXP) + +// {3ff2c92b-6598-4e60-8e1c-0ccf4927e319} +DEFINE_GUID(GUID_DEVINTERFACE_VM_GENCOUNTER, +0x3ff2c92b, 0x6598, 0x4e60, 0x8e, 0x1c, 0x0c, 0xcf, 0x49, 0x27, 0xe3, 0x19); + +#define VM_GENCOUNTER_SYMBOLIC_LINK_NAME L"\\VmGenerationCounter" + +#define IOCTL_VMGENCOUNTER_READ CTL_CODE(FILE_DEVICE_ACPI, 0x1, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) + +typedef struct _VM_GENCOUNTER +{ + ULONGLONG GenerationCount; + ULONGLONG GenerationCountHigh; +} VM_GENCOUNTER, *PVM_GENCOUNTER; + +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma endregion + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/warning.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/warning.h new file mode 100644 index 0000000000000000000000000000000000000000..dfac5e9f561bd9a81f7c5ecd62a826a62a3d2c2d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/warning.h @@ -0,0 +1,124 @@ +#ifndef _WARNING_H_ +#define _WARNING_H_ + + +#pragma warning(3:4092) // sizeof returns 'unsigned long' +#pragma warning(4:4096) // '__cdecl' must be used with '...' +#pragma warning(4:4121) // structure is sensitive to alignment +#pragma warning(3:4125) // decimal digit in octal sequence +#pragma warning(3:4130) // logical operation on address of string constant +#pragma warning(3:4132) // const object should be initialized +#if defined(_DBG_MEMCPY_INLINE_) +#pragma warning(disable:4163) // not available as an intrinsic function +#endif +#pragma warning(disable:4206) // Source File is empty +#pragma warning(4:4101) // Unreferenced local variable +#pragma warning(4:4208) // delete[exp] - exp evaluated but ignored +#pragma warning(3:4212) // function declaration used ellipsis +#pragma warning(3:4242) // convertion possible loss of data +#if defined(_M_IA64) +#pragma warning(disable:4714) // function marked as __forceinline not inlined + // (VC7.1: inlining is not allowed in finally) +#endif +#pragma warning(4:4267) // convertion from size_t to smaller type +#pragma warning(disable:4312) // conversion to type of greater size +#pragma warning(4:4313) // Mismatched types / format string specifiers +#pragma warning(disable:4324) // structure padded due to __declspec(align()) +#pragma warning(error:4700) // Local used w/o being initialized +#pragma warning(error:4703) // Local pointer potentially used used w/o being initialized +#pragma warning(error:4754) // Bad integer overflow checks warning (ineffective check) +#pragma warning(error:4013) // function' undefined - assuming extern returning int +#pragma warning(error:4551) // Function call missing argument list +#pragma warning(error:4806) // unsafe operation involving type 'bool' +#pragma warning(disable:4826) // pointer sign extension +#pragma warning(4:4509) // use of SEH with destructor +#pragma warning(4:4177) // pragma data_seg s/b at global scope +#pragma warning(disable:4274) // #ident ignored +#pragma warning(disable:4786) // identifier was truncated to 255 chararcers in debug information. +#pragma warning(disable:4503) // decorated name length exceeded, name was truncated. +#pragma warning(disable:4263) // Derived override doesn't match base - who cares... +#pragma warning(disable:4264) // base function is hidden - again who cares. +#pragma warning(disable:4710) // Function marked as inline - wasn't +#pragma warning(disable:4917) // A GUID can only be associated with a class, interface or namespace +#pragma warning(error:4552) // <<, >> ops used to no effect (probably missing an = sign) +#pragma warning(error:4553) // == op used w/o effect (probably s/b an = sign) +#pragma warning(3:4288) // nonstandard extension used (loop counter) +#pragma warning(3:4532) // jump out of __finally block +#pragma warning(error:4296) // expression is always true/false +#pragma warning(3:4546) // function call before comma missing argument list +// disable until __noop(arg,arg,arg) doesn't generate false hits. +// #pragma warning(3:4547) // '<' : operator before comma has no effect; expected operator with side-effect +// #pragma warning(3:4548) // expression before comma has no effect; expected expression with side-effect + +#pragma warning(disable:4306) // conversion from smaller to greater size + +#if _MSC_VER > 1300 +#pragma warning(disable:4356) // static member cannot be initialized via derived class +#endif + +// Ignoring these warnings can cause blatantly incorrect code generation. +// Since not all projects are -W4 -WX, treat as errors explicitly +#pragma warning(error:4028) // C4028: formal parameter different from declaration +#pragma warning(error:4029) // C4029: declared formal parameter list different from definition + +#if 0 +#pragma warning(3:4100) // Unreferenced formal parameter +#pragma warning(3:4701) // local may be used w/o init +// VSTS: 14791840: Disabling C4702 due to unmanageable number of instances +// that are triggered when certain inlining occurs, which can vary based on the build flavors. +// #pragma warning(3:4702) // Unreachable code +#pragma warning(3:4706) // assignment w/i conditional expression +#pragma warning(3:4709) // command operator w/o index expression +#endif + +#if !defined(__cplusplus) && !defined(DONT_REDEFINE_TRYEXCEPT_IN_WARNING_H) +// DONT_REDEFINE_TRYEXCEPT_IN_WARNING_H allows C files to opt-out of getting these symbols redefined so that they can be used as regular C identifiers for variables +#undef try +#undef except +#undef finally +#undef leave +#define try __try +#define except __except +#define finally __finally +#define leave __leave +#endif + +#pragma warning(disable: 4068) // turn off unknown pragma warning so prefast pragmas won't show + // show up in build.wrn/build.err + +// Macros for suppressing PREfast warnings +#include + + +#if _MSC_FULL_VER >= 140040702 +#pragma warning(disable:4430) // default-int warning (C++) +#pragma warning(disable:4431) // default-int warning (C) +#pragma warning(disable:4812) // obsolete template destructor syntax +#endif + + +#if defined(_M_IA64) && _MSC_VER > 1310 +#define __TYPENAME typename +#elif defined(_M_IX86) && _MSC_FULL_VER >= 13102154 +#define __TYPENAME typename +#elif defined(_M_AMD64) && _MSC_VER >= 1400 +#define __TYPENAME typename +#elif defined(_M_ARM) || defined(_M_ARM64) +#define __TYPENAME typename +#else +#define __TYPENAME +#endif + +#if _MSC_VER > 1400 +#if !defined(DONT_DISABLE_PCH_WARNINGS_IN_WARNING_H) +#pragma warning(disable:4603) // macro is not defined or definition is different after precompiled header use +#pragma warning(disable:4627) // skipped when looking for precompiled header use +#endif +#endif + +#ifdef _PREFAST_ +#pragma warning(disable:4091) // (If prefast only): annotations followed by ; are ignored (actual text is not that clear). +#endif + +#endif // _WARNING_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wdmguid.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wdmguid.h new file mode 100644 index 0000000000000000000000000000000000000000..427ef90caf233b8869589cc96fef109a3ed878d1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wdmguid.h @@ -0,0 +1,312 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + wdmguid.h + +Abstract: + + Defines GUIDs for function device classes and device events used in + Plug & Play. + +Revision History: + +--*/ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifndef FAR +#define FAR +#endif + +// +// Device events that can be broadcasted to drivers and user-mode apps. +// + +#if (NTDDI_VERSION >= NTDDI_WIN2K) +// {cb3a4001-46f0-11d0-b08f-00609713053f} +DEFINE_GUID( GUID_HWPROFILE_QUERY_CHANGE, 0xcb3a4001L, 0x46f0, 0x11d0, 0xb0, 0x8f, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3f ); +// {cb3a4002-46f0-11d0-b08f-00609713053f} +DEFINE_GUID( GUID_HWPROFILE_CHANGE_CANCELLED, 0xcb3a4002L, 0x46f0, 0x11d0, 0xb0, 0x8f, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3f ); +// {cb3a4003-46f0-11d0-b08f-00609713053f} +DEFINE_GUID( GUID_HWPROFILE_CHANGE_COMPLETE, 0xcb3a4003L, 0x46f0, 0x11d0, 0xb0, 0x8f, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3f ); +// {cb3a4004-46f0-11d0-b08f-00609713053f} +DEFINE_GUID( GUID_DEVICE_INTERFACE_ARRIVAL, 0xcb3a4004L, 0x46f0, 0x11d0, 0xb0, 0x8f, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3f ); +// {cb3a4005-46f0-11d0-b08f-00609713053f} +DEFINE_GUID( GUID_DEVICE_INTERFACE_REMOVAL, 0xcb3a4005L, 0x46f0, 0x11d0, 0xb0, 0x8f, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3f ); +// {cb3a4006-46f0-11d0-b08f-00609713053f} +DEFINE_GUID( GUID_TARGET_DEVICE_QUERY_REMOVE, 0xcb3a4006L, 0x46f0, 0x11d0, 0xb0, 0x8f, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3f ); +// {cb3a4007-46f0-11d0-b08f-00609713053f} +DEFINE_GUID( GUID_TARGET_DEVICE_REMOVE_CANCELLED, 0xcb3a4007L, 0x46f0, 0x11d0, 0xb0, 0x8f, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3f ); +// {cb3a4008-46f0-11d0-b08f-00609713053f} +DEFINE_GUID( GUID_TARGET_DEVICE_REMOVE_COMPLETE, 0xcb3a4008L, 0x46f0, 0x11d0, 0xb0, 0x8f, 0x00, 0x60, 0x97, 0x13, 0x05, 0x3f ); +// {aca73f8e-8d23-11d1-ac7d-0000f87571d0} +DEFINE_GUID( GUID_PNP_CUSTOM_NOTIFICATION, 0xACA73F8EL, 0x8D23, 0x11D1, 0xAC, 0x7D, 0x00, 0x00, 0xF8, 0x75, 0x71, 0xD0 ); +// {c2cf0660-eb7a-11d1-bd7f-0000f87571d0} +DEFINE_GUID( GUID_PNP_POWER_NOTIFICATION, 0xC2CF0660L, 0xEB7A, 0x11D1, 0xBD, 0x7F, 0x00, 0x00, 0xF8, 0x75, 0x71, 0xD0 ); +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +// {29c69b3e-c79a-43bf-bbde-a932fa1bea7e} +DEFINE_GUID( GUID_PNP_POWER_SETTING_CHANGE, 0x29C69B3EL, 0xC79A, 0x43BF, 0xBB, 0xDE, 0xA9, 0x32, 0xFA, 0x1B, 0xEA, 0x7E ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN7) +// {fcf528f6-a82f-47b1-ad3a-8050594cad28} +DEFINE_GUID( GUID_TARGET_DEVICE_TRANSPORT_RELATIONS_CHANGED, 0xfcf528f6, 0xa82f, 0x47b1, 0xad, 0x3a, 0x80, 0x50, 0x59, 0x4c, 0xad, 0x28 ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) +// {de373def-a85c-4f76-8cbf-f96bea8bd10f} +DEFINE_GUID( GUID_KERNEL_SOFT_RESTART_PREPARE, 0xde373def, 0xa85c, 0x4f76, 0x8c, 0xbf, 0xf9, 0x6b, 0xea, 0x8b, 0xd1, 0x0f ); +// {31d737e7-8c0b-468a-956e-9f433ec358fb} +DEFINE_GUID( GUID_KERNEL_SOFT_RESTART_CANCEL, 0x31d737e7, 0x8c0b, 0x468a, 0x95, 0x6e, 0x9f, 0x43, 0x3e, 0xc3, 0x58, 0xfb ); +// {90d889de-8704-44cf-8115-ed8528d2b2da} +DEFINE_GUID( GUID_RECOVERY_PCI_PREPARE_SHUTDOWN, 0x90d889de, 0x8704, 0x44cf, 0x81, 0x15, 0xed, 0x85, 0x28, 0xd2, 0xb2, 0xda ); +// {4b9770ea-bde7-400b-a9b9-4f684f54cc2a} +DEFINE_GUID( GUID_RECOVERY_NVMED_PREPARE_SHUTDOWN, 0x4b9770ea, 0xbde7, 0x400b, 0xa9, 0xb9, 0x4f, 0x68, 0x4f, 0x54, 0xcc, 0x2a ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_MN) +// {20e91abd-350a-4d4f-8577-99c81507473a} +DEFINE_GUID( GUID_KERNEL_SOFT_RESTART_FINALIZE, 0x20e91abd, 0x350a, 0x4d4f, 0x85, 0x77, 0x99, 0xc8, 0x15, 0x07, 0x47, 0x3a ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN11_GE) +// {af855082-530b-4a85-b5a6-120b63089451} +DEFINE_GUID( GUID_KERNEL_SOFT_RESTART_PRE_COMPLETE, 0xaf855082, 0x530b, 0x4a85, 0xb5, 0xa6, 0x12, 0x0b, 0x63, 0x08, 0x94, 0x51 ); +#endif + +// +// Interface GUIDs used for IRP_MN_QUERY_INTERFACE +// + +#if (NTDDI_VERSION >= NTDDI_WIN2K) +// {496b8280-6f25-11d0-beaf-08002be2092f} +DEFINE_GUID( GUID_BUS_INTERFACE_STANDARD, 0x496B8280L, 0x6F25, 0x11D0, 0xBE, 0xAF, 0x08, 0x00, 0x2B, 0xE2, 0x09, 0x2F ); +// {496b8281-6f25-11d0-beaf-08002be2092f} +DEFINE_GUID( GUID_PCI_BUS_INTERFACE_STANDARD, 0x496B8281L, 0x6F25, 0x11D0, 0xBE, 0xAF, 0x08, 0x00, 0x2B, 0xE2, 0x09, 0x2F ); +// {de94e966-fdff-4c9c-9998-6747b150e74c} +DEFINE_GUID( GUID_PCI_BUS_INTERFACE_STANDARD2, 0xde94e966L, 0xfdff, 0x4c9c, 0x99, 0x98, 0x67, 0x47, 0xb1, 0x50, 0xe7, 0x4c ); +// {e644f185-8c0e-11d0-becf-08002be2092f} +DEFINE_GUID( GUID_ARBITER_INTERFACE_STANDARD, 0xe644f185L, 0x8c0e, 0x11d0, 0xbe, 0xcf, 0x08, 0x00, 0x2b, 0xe2, 0x09, 0x2f ); +// {6c154a92-aacf-11d0-8d2a-00a0c906b244} +DEFINE_GUID( GUID_TRANSLATOR_INTERFACE_STANDARD, 0x6c154a92L, 0xaacf, 0x11d0, 0x8d, 0x2a, 0x00, 0xa0, 0xc9, 0x06, 0xb2, 0x44 ); +// {b091a08a-ba97-11d0-bd14-00aa00b7b32a} +DEFINE_GUID( GUID_ACPI_INTERFACE_STANDARD, 0xb091a08aL, 0xba97, 0x11d0, 0xbd, 0x14, 0x00, 0xaa, 0x00, 0xb7, 0xb3, 0x2a ); +// {70941bf4-0073-11d1-a09e-00c04fc340b1} +DEFINE_GUID( GUID_INT_ROUTE_INTERFACE_STANDARD, 0x70941bf4L, 0x0073, 0x11d1, 0xa0, 0x9e, 0x00, 0xc0, 0x4f, 0xc3, 0x40, 0xb1 ); +// {76173af0-c504-11d1-947f-00c04fb960ee} +DEFINE_GUID( GUID_PCMCIA_BUS_INTERFACE_STANDARD, 0x76173af0L, 0xc504, 0x11d1, 0x94, 0x7f, 0x00, 0xc0, 0x4f, 0xb9, 0x60, 0xee ); +// {06141966-7245-6369-462e-4e656c736f6e} +DEFINE_GUID( GUID_ACPI_REGS_INTERFACE_STANDARD, 0x06141966L, 0x7245, 0x6369, 0x46, 0x2e, 0x4e, 0x65, 0x6c, 0x73, 0x6f, 0x6e ); +// {50feb0de-596a-11d2-a5b8-0000f81a4619} +DEFINE_GUID( GUID_LEGACY_DEVICE_DETECTION_STANDARD, 0x50feb0deL, 0x596a, 0x11d2, 0xa5, 0xb8, 0x00, 0x00, 0xf8, 0x1a, 0x46, 0x19 ); +// {d1b82c26-bf49-45ef-b216-71cbd7889b57} +DEFINE_GUID( GUID_PCI_DEVICE_PRESENT_INTERFACE, 0xd1b82c26L, 0xbf49, 0x45ef, 0xb2, 0x16, 0x71, 0xcb, 0xd7, 0x88, 0x9b, 0x57 ); +// {aeb895f0-5586-11d1-8d84-00a0c906b244} +DEFINE_GUID( GUID_MF_ENUMERATION_INTERFACE, 0xaeb895f0L, 0x5586, 0x11d1, 0x8d, 0x84, 0x00, 0xa0, 0xc9, 0x06, 0xb2, 0x44 ); +// {2aeb0243-6a6e-486b-82fc-d815f6b97006} +DEFINE_GUID( GUID_REENUMERATE_SELF_INTERFACE_STANDARD, 0x2aeb0243, 0x6a6e, 0x486b, 0x82, 0xfc, 0xd8, 0x15, 0xf6, 0xb9, 0x70, 0x06 ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +// {b15cfce8-06d1-4d37-9d4c-bedde0c2a6ff} +DEFINE_GUID( GUID_AGP_TARGET_BUS_INTERFACE_STANDARD, 0xB15CFCE8L, 0x06D1, 0x4D37, 0x9D, 0x4C, 0xBE, 0xDD, 0xE0, 0xC2, 0xA6, 0xFF ); +// {3a8d0384-6505-40ca-bc39-56c15f8c5fed} +DEFINE_GUID( GUID_ACPI_CMOS_INTERFACE_STANDARD, 0x3a8d0384L, 0x6505, 0x40ca, 0xbc, 0x39, 0x56, 0xc1, 0x5f, 0x8c, 0x5f, 0xed ); +// {f14f609b-cbbd-4957-a674-bc00213f1c97} +DEFINE_GUID( GUID_ACPI_PORT_RANGES_INTERFACE_STANDARD, 0xf14f609bL, 0xcbbd, 0x4957, 0xa6, 0x74, 0xbc, 0x0, 0x21, 0x3f, 0x1c, 0x97 ); +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +// {e8695f63-1831-4870-a8cf-9c2f03f9dcb5} +DEFINE_GUID( GUID_ACPI_INTERFACE_STANDARD2, 0xe8695f63L, 0x1831, 0x4870, 0xa8, 0xcf, 0x9c, 0x2f, 0x03, 0xf9, 0xdc, 0xb5 ); +// {70211b0e-0afb-47db-afc1-410bf842497a} +DEFINE_GUID( GUID_PNP_LOCATION_INTERFACE, 0x70211b0e, 0x0afb, 0x47db, 0xaf, 0xc1, 0x41, 0x0b, 0xf8, 0x42, 0x49, 0x7a ); +// {146cd41c-dae3-4437-8aff-2af3f038099b} +DEFINE_GUID( GUID_PCI_EXPRESS_LINK_QUIESCENT_INTERFACE, 0x146cd41cL, 0xdae3, 0x4437, 0x8a, 0xff, 0x2a, 0xf3, 0xf0, 0x38, 0x09, 0x9b ); +// {83a7734a-84c7-4161-9a98-6000ed0c4a33} +DEFINE_GUID( GUID_PCI_EXPRESS_ROOT_PORT_INTERFACE, 0x83a7734aL, 0x84c7, 0x4161, 0x9a, 0x98, 0x60, 0x00, 0xed, 0x0c, 0x4a, 0x33 ); +// {1a6a460b-194f-455d-b34b-b84c5b05712b} +DEFINE_GUID( GUID_MSIX_TABLE_CONFIG_INTERFACE, 0x1a6a460b, 0x194f, 0x455d, 0xb3, 0x4b, 0xb8, 0x4c, 0x5b, 0x05, 0x71, 0x2b ); +// {b38290e5-3cd0-4f9d-9937-f5fe2b44d47a} +DEFINE_GUID( GUID_D3COLD_SUPPORT_INTERFACE, 0xb38290e5, 0x3cd0, 0x4f9d, 0x99, 0x37, 0xf5, 0xfe, 0x2b, 0x44, 0xd4, 0x7a ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN7) +// {37b17e9a-c21c-4296-972d-11c4b32b28f0} +DEFINE_GUID( GUID_PROCESSOR_PCC_INTERFACE_STANDARD, 0x37b17e9a, 0xc21c, 0x4296, 0x97, 0x2d, 0x11, 0xc4, 0xb3, 0x2b, 0x28, 0xf0); +// {64897b47-3a4a-4d75-bc74-89dd6c078293} +DEFINE_GUID( GUID_PCI_VIRTUALIZATION_INTERFACE, 0x64897b47, 0x3a4a, 0x4d75, 0xbc, 0x74, 0x89, 0xdd, 0x6c, 0x7, 0x82, 0x93); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN8) +// {3ee8ba63-0f59-4a24-8a45-35808bdd1249} +DEFINE_GUID( GUID_PCC_INTERFACE_STANDARD, 0x3ee8ba63, 0x0f59, 0x4a24, 0x8a, 0x45, 0x35, 0x80, 0x8b, 0xdd, 0x12, 0x49); +// {7cce62ce-c189-4814-a6a7-12112089e938} +DEFINE_GUID( GUID_PCC_INTERFACE_INTERNAL, 0x7cce62ce, 0xc189, 0x4814, 0xa6, 0xa7, 0x12, 0x11, 0x20, 0x89, 0xe9, 0x38); +// {ecbe47a8-c498-4bb9-bd70-e867e0940d22} +DEFINE_GUID( GUID_THERMAL_COOLING_INTERFACE, 0xecbe47a8L, 0xc498, 0x4bb9, 0xbd, 0x70, 0xe8, 0x67, 0xe0, 0x94, 0x0d, 0x22 ); +// {67593984-7cc0-4760-8d01-cbffd2d080f7} +DEFINE_GUID( GUID_PCI_LINK_CONFIG_INTERFACE, 0x67593984, 0x7cc0, 0x4760, 0x8d, 0x01, 0xcb, 0xff, 0xd2, 0xd0, 0x80, 0xf7 ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN11_GA) +DEFINE_GUID( GUID_POWER_LIMIT_INTERFACE, 0x3b96f4f2, 0xce49, 0x44d1, 0x91, 0xf8, 0x65, 0x2b, 0x81, 0x21, 0xe9, 0x3a); +#endif + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +// {b520f7fa-8a5a-4e40-a3f6-6be1e162d935} +DEFINE_GUID( GUID_DMA_CACHE_COHERENCY_INTERFACE, 0xb520f7fa, 0x8a5a, 0x4e40, 0xa3, 0xf6, 0x6b, 0xe1, 0xe1, 0x62, 0xd9, 0x35 ); +// {649fdf26-3bc0-4813-ad24-7e0c1eda3fa3} +DEFINE_GUID( GUID_DEVICE_RESET_INTERFACE_STANDARD, 0x649fdf26, 0x3bc0, 0x4813, 0xad, 0x24, 0x7e, 0xc, 0x1e, 0xda, 0x3f, 0xa3 ); +// {1efee0b2-d278-4ae4-bddc-1b34dd648043} +DEFINE_GUID( GUID_IOMMU_BUS_INTERFACE, 0x1efee0b2, 0xd278, 0x4ae4, 0xbd, 0xdc, 0x1b, 0x34, 0xdd, 0x64, 0x80, 0x43 ); +// {6e7f1451-199e-4acc-ba2d-762b4edf4674} +DEFINE_GUID( GUID_PCI_SECURITY_INTERFACE, 0x6e7f1451, 0x199e, 0x4acc, 0xba, 0x2d, 0x76, 0x2b, 0x4e, 0xdf, 0x46, 0x74); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_TH2) +// {25944783-ce79-4232-815e-4a30014e8eb4} +DEFINE_GUID( GUID_SCM_BUS_INTERFACE, 0x25944783, 0xce79, 0x4232, 0x81, 0x5e, 0x4a, 0x30, 0x1, 0x4e, 0x8e, 0xb4); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) +// {370f67e1-4ff5-4a94-9a35-06c5d9cc30e2} +DEFINE_GUID( GUID_SECURE_DRIVER_INTERFACE, 0x370f67e1, 0x4ff5, 0x4a94, 0x9a, 0x35, 0x6, 0xc5, 0xd9, 0xcc, 0x30, 0xe2 ); +// {49d67af8-916c-4ee8-9df1-889f17d21e91} +DEFINE_GUID( GUID_SDEV_IDENTIFIER_INTERFACE, 0x49d67af8, 0x916c, 0x4ee8, 0x9d, 0xf1, 0x88, 0x9f, 0x17, 0xd2, 0x1e, 0x91 ); +// {8de064ff-b630-42e4-88ea-6f24c8641175} +DEFINE_GUID( GUID_SCM_BUS_NVD_INTERFACE, 0x8de064ff, 0xb630, 0x42e4, 0x88, 0xea, 0x6f, 0x24, 0xc8, 0x64, 0x11, 0x75 ); +// {9b89307d-d76b-4f48-b186-54041ae92e8d} +DEFINE_GUID( GUID_SCM_BUS_LD_INTERFACE, 0x9b89307d, 0xd76b, 0x4f48, 0xb1, 0x86, 0x54, 0x4, 0x1a, 0xe9, 0x2e, 0x8d ); +// {0079c21b-917e-405e-a9ce-0732b5bbcebd} +DEFINE_GUID( GUID_SCM_PHYSICAL_NVDIMM_INTERFACE, 0x79c21b, 0x917e, 0x405e, 0xa9, 0xce, 0x7, 0x32, 0xb5, 0xbb, 0xce, 0xbd ); +// {b8e992ec-a797-4dc4-8846-84d041707446} +DEFINE_GUID( GUID_PNP_EXTENDED_ADDRESS_INTERFACE, 0xb8e992ec, 0xa797, 0x4dc4, 0x88, 0x46, 0x84, 0xd0, 0x41, 0x70, 0x74, 0x46); +#endif + +// TODO_NTDDI_WIN10_RS4 +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) +// {0044d8aa-f664-4588-9ffc-2afeaf5950b9} +DEFINE_GUID( GUID_D3COLD_AUX_POWER_AND_TIMING_INTERFACE, 0x44d8aa, 0xf664, 0x4588, 0x9f, 0xfc, 0x2a, 0xfe, 0xaf, 0x59, 0x50, 0xb9 ); +// {2df3f7a8-b9b3-4063-9215-b5d14a0b266e} +DEFINE_GUID( GUID_PCI_FPGA_CONTROL_INTERFACE, 0x2df3f7a8, 0xb9b3, 0x4063, 0x92, 0x15, 0xb5, 0xd1, 0x4a, 0x0b, 0x26, 0x6e ); +// {348a5ebb-ba24-44b7-9916-285687735117} +DEFINE_GUID( GUID_PCI_PTM_CONTROL_INTERFACE, 0x348a5ebb, 0xba24, 0x44b7, 0x99, 0x16, 0x28, 0x56, 0x87, 0x73, 0x51, 0x17 ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +// {27d0102d-bfb2-4164-81dd-dbb82f968b48} +DEFINE_GUID( GUID_BUS_RESOURCE_UPDATE_INTERFACE, 0x27d0102d, 0xbfb2, 0x4164, 0x81, 0xdd, 0xdb, 0xb8, 0x2f, 0x96, 0x8b, 0x48); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) +// {4d95573d-b774-488a-b120-4f284a9eff51} +DEFINE_GUID( GUID_NPEM_CONTROL_INTERFACE, 0x4d95573d, 0xb774, 0x488a, 0xb1, 0x20, 0x4f, 0x28, 0x4a, 0x9e, 0xff, 0x51); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +// {010a7fe8-96f5-4943-bedf-95e651b93412} +DEFINE_GUID( GUID_PCI_ATS_INTERFACE, 0x10a7fe8, 0x96f5, 0x4943, 0xbe, 0xdf, 0x95, 0xe6, 0x51, 0xb9, 0x34, 0x12); +#endif + +// +// Bus type GUIDs +// + +#if (NTDDI_VERSION >= NTDDI_WIN2K) +// {1530ea73-086b-11d1-a09f-00c04fc340b1} +DEFINE_GUID( GUID_BUS_TYPE_INTERNAL, 0x1530ea73L, 0x086b, 0x11d1, 0xa0, 0x9f, 0x00, 0xc0, 0x4f, 0xc3, 0x40, 0xb1 ); +// {09343630-af9f-11d0-92e9-0000f81e1b30} +DEFINE_GUID( GUID_BUS_TYPE_PCMCIA, 0x09343630L, 0xaf9f, 0x11d0, 0x92, 0xE9, 0x00, 0x00, 0xf8, 0x1e, 0x1b, 0x30 ); +// {c8ebdfb0-b510-11d0-80e5-00a0c92542e3} +DEFINE_GUID( GUID_BUS_TYPE_PCI, 0xc8ebdfb0L, 0xb510, 0x11d0, 0x80, 0xe5, 0x00, 0xa0, 0xc9, 0x25, 0x42, 0xe3 ); +// {e676f854-d87d-11d0-92b2-00a0c9055fc5} +DEFINE_GUID( GUID_BUS_TYPE_ISAPNP, 0xe676f854L, 0xd87d, 0x11d0, 0x92, 0xb2, 0x00, 0xa0, 0xc9, 0x05, 0x5f, 0xc5 ); +// {ddc35509-f3fc-11d0-a537-0000f8753ed1} +DEFINE_GUID( GUID_BUS_TYPE_EISA, 0xddc35509L, 0xf3fc, 0x11d0, 0xa5, 0x37, 0x00, 0x00, 0xf8, 0x75, 0x3e, 0xd1 ); +// {1c75997a-dc33-11d0-92b2-00a0c9055fc5} +DEFINE_GUID( GUID_BUS_TYPE_MCA, 0x1c75997aL, 0xdc33, 0x11d0, 0x92, 0xb2, 0x00, 0xa0, 0xc9, 0x05, 0x5f, 0xc5 ); +// {77114a87-8944-11d1-bd90-00a0c906be2d} +DEFINE_GUID( GUID_BUS_TYPE_SERENUM, 0x77114a87L, 0x8944, 0x11d1, 0xbd, 0x90, 0x00, 0xa0, 0xc9, 0x06, 0xbe, 0x2d ); +// {9d7debbc-c85d-11d1-9eb4-006008c3a19a} +DEFINE_GUID( GUID_BUS_TYPE_USB, 0x9d7debbcL, 0xc85d, 0x11d1, 0x9e, 0xb4, 0x00, 0x60, 0x08, 0xc3, 0xa1, 0x9a ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +// {c4ca1000-2ddc-11d5-a17a-00c04f60524d} +DEFINE_GUID( GUID_BUS_TYPE_LPTENUM, 0xc4ca1000L, 0x2ddc, 0x11d5, 0xa1, 0x7a, 0x00, 0xc0, 0x4f, 0x60, 0x52, 0x4d ); +// {441ee000-4342-11d5-a184-00c04f60524d} +DEFINE_GUID( GUID_BUS_TYPE_USBPRINT, 0x441ee000L, 0x4342, 0x11d5, 0xa1, 0x84, 0x00, 0xc0, 0x4f, 0x60, 0x52, 0x4d ); +// {441ee001-4342-11d5-a184-00c04f60524d} +DEFINE_GUID( GUID_BUS_TYPE_DOT4PRT, 0x441ee001L, 0x4342, 0x11d5, 0xa1, 0x84, 0x00, 0xc0, 0x4f, 0x60, 0x52, 0x4d ); +// {f74e73eb-9ac5-45eb-be4d-772cc71ddfb3} +DEFINE_GUID( GUID_BUS_TYPE_1394, 0xf74e73ebL, 0x9ac5, 0x45eb, 0xbe, 0x4d, 0x77, 0x2c, 0xc7, 0x1d, 0xdf, 0xb3 ); +// {eeaf37d0-1963-47c4-aa48-72476db7cf49} +DEFINE_GUID( GUID_BUS_TYPE_HID, 0xeeaf37d0L, 0x1963, 0x47c4, 0xaa, 0x48, 0x72, 0x47, 0x6d, 0xb7, 0xcf, 0x49 ); +// {c06ff265-ae09-48f0-812c-16753d7cba83} +DEFINE_GUID( GUID_BUS_TYPE_AVC, 0xc06ff265L, 0xae09, 0x48f0, 0x81, 0x2c, 0x16, 0x75, 0x3d, 0x7c, 0xba, 0x83 ); +// {7ae17dc1-c944-44d6-881f-4c2e61053bc1} +DEFINE_GUID( GUID_BUS_TYPE_IRDA, 0x7ae17dc1L, 0xc944, 0x44d6, 0x88, 0x1f, 0x4c, 0x2e, 0x61, 0x05, 0x3b, 0xc1 ); +// {e700cc04-4036-4e89-9579-89ebf45f00cd} +DEFINE_GUID( GUID_BUS_TYPE_SD, 0xe700cc04L, 0x4036, 0x4e89, 0x95, 0x79, 0x89, 0xeb, 0xf4, 0x5f, 0x00, 0xcd ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN8) +// {d7b46895-001a-4942-891f-a7d46610a843} +DEFINE_GUID( GUID_BUS_TYPE_ACPI, 0xd7b46895L, 0x001a, 0x4942, 0x89, 0x1f, 0xa7, 0xd4, 0x66, 0x10, 0xa8, 0x43 ); +// {06d10322-7de0-4cef-8e25-197d0e7442e2} +DEFINE_GUID( GUID_BUS_TYPE_SW_DEVICE, 0x06d10322L, 0x7de0, 0x4cef, 0x8e, 0x25, 0x19, 0x7d, 0x0e, 0x74, 0x42, 0xe2 ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_TH2) +// {375a5912-804c-45aa-bdc2-fdd25a1d9512} +DEFINE_GUID( GUID_BUS_TYPE_SCM, 0x375a5912L, 0x804c, 0x45aa, 0xbd, 0xc2, 0xfd, 0xd2, 0x5a, 0x1d, 0x95, 0x12 ); +#endif + +// +// Power management WMI guids for device control +// + +#if (NTDDI_VERSION >= NTDDI_WIN2K) +// {827c0a6f-feb0-11d0-bd26-00aa00b7b32a} +DEFINE_GUID( GUID_POWER_DEVICE_ENABLE, 0x827c0a6fL, 0xfeb0, 0x11d0, 0xbd, 0x26, 0x00, 0xaa, 0x00, 0xb7, 0xb3, 0x2a ); +// {a45da735-feb0-11d0-bd26-00aa00b7b32a} +DEFINE_GUID( GUID_POWER_DEVICE_TIMEOUTS, 0xa45da735L, 0xfeb0, 0x11d0, 0xbd, 0x26, 0x00, 0xaa, 0x00, 0xb7, 0xb3, 0x2a ); +// {a9546a82-feb0-11d0-bd26-00aa00b7b32a} +DEFINE_GUID( GUID_POWER_DEVICE_WAKE_ENABLE, 0xa9546a82L, 0xfeb0, 0x11d0, 0xbd, 0x26, 0x00, 0xaa, 0x00, 0xb7, 0xb3, 0x2a ); +#endif + +// +// User-Mode Driver Framework device events for detecting driver host crashes. +// + +#if (NTDDI_VERSION >= NTDDI_WINXP) +// {c43d25bd-9346-40ee-a2d2-d70c15f8b75b} +DEFINE_GUID( GUID_WUDF_DEVICE_HOST_PROBLEM, 0xc43d25bdL, 0x9346, 0x40ee, 0xa2, 0xd2, 0xd7, 0x0c, 0x15, 0xf8, 0xb7, 0x5b ); +#endif + +// +// Dynamic partitioning replace interface. +// + +#if (NTDDI_VERSION >= NTDDI_VISTA) +// {52363f5b-d891-429b-8195-aec5fef6853c} +DEFINE_GUID(GUID_PARTITION_UNIT_INTERFACE_STANDARD, 0x52363f5bL, 0xd891, 0x429b, 0x81, 0x95, 0xae, 0xc5, 0xfe, 0xf6, 0x85, 0x3c); +#endif + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) +// {9cc6b8ff-32e2-4834-b1de-b32ef8880a4b} +DEFINE_GUID(GUID_QUERY_CRASHDUMP_FUNCTIONS, 0x9cc6b8ff, 0x32e2, 0x4834, 0xb1, 0xde, 0xb3, 0x2e, 0xf8, 0x88, 0x0a, 0x4b); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winapifamily.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winapifamily.h new file mode 100644 index 0000000000000000000000000000000000000000..96bf0d91e2be407f7b44556211e111a0b8f2f35b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winapifamily.h @@ -0,0 +1,251 @@ +/* + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + winapifamily.h + +Abstract: + + Master include file for API family partitioning. + +*/ + +#ifndef _INC_WINAPIFAMILY +#define _INC_WINAPIFAMILY + +#if defined(_MSC_VER) && !defined(MOFCOMP_PASS) +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4001) /* nonstandard extension 'single line comment' was used */ +#endif +#pragma once +#endif // defined(_MSC_VER) && !defined(MOFCOMP_PASS) + +#include + +/* + * When compiling C and C++ code using SDK header files, the development + * environment can specify a target platform by #define-ing the + * pre-processor symbol WINAPI_FAMILY to one of the following values. + * Each FAMILY value denotes an application family for which a different + * subset of the total set of header-file-defined APIs are available. + * Setting the WINAPI_FAMILY value will effectively hide from the + * editing and compilation environments the existence of APIs that + * are not applicable to the family of applications targeting a + * specific platform. + */ + +/* In Windows 10, WINAPI_PARTITIONs will be used to add additional + * device specific APIs to a particular WINAPI_FAMILY. + * For example, when writing Windows Universal apps, specifying + * WINAPI_FAMILY_APP will hide phone APIs from compilation. + * However, specifying WINAPI_PARTITION_PHONE_APP=1 additionally, will + * unhide any API hidden behind the partition, to the compiler. + + * The following partitions are currently defined: + * WINAPI_PARTITION_DESKTOP // usable for Desktop Win32 apps (but not store apps) + * WINAPI_PARTITION_APP // usable for Windows Universal store apps + * WINAPI_PARTITION_PC_APP // specific to Desktop-only store apps + * WINAPI_PARTITION_PHONE_APP // specific to Phone-only store apps + * WINAPI_PARTITION_SYSTEM // specific to System applications + * WINAPI_PARTITION_GAMES // specific to games and apps + + * The following partitions are indirect partitions and defined in + * winpackagefamily.h. These partitions are related to package based + * partitions. For example, specifying WINAPI_PARTITION_SERVER=1 will light up + * any API hidden behind the package based partitions that are bound to + * WINAPI_PARTITION_SERVER, to the compiler. + * WINAPI_PARTITION_SERVER // specific to Server applications +*/ + +/* + * The WINAPI_FAMILY values of 0 and 1 are reserved to ensure that + * an error will occur if WINAPI_FAMILY is set to any + * WINAPI_PARTITION value (which must be 0 or 1, see below). + */ +#define WINAPI_FAMILY_PC_APP 2 /* Windows Store Applications */ +#define WINAPI_FAMILY_PHONE_APP 3 /* Windows Phone Applications */ +#define WINAPI_FAMILY_SYSTEM 4 /* Windows Drivers and Tools */ +#define WINAPI_FAMILY_SERVER 5 /* Windows Server Applications */ +#define WINAPI_FAMILY_GAMES 6 /* Windows Games and Applications */ +#define WINAPI_FAMILY_DESKTOP_APP 100 /* Windows Desktop Applications */ +/* The value of WINAPI_FAMILY_DESKTOP_APP may change in future SDKs. */ +/* Additional WINAPI_FAMILY values may be defined in future SDKs. */ + +/* + * For compatibility with Windows 8 header files, the following + * synonym for WINAPI_FAMILY_PC_APP is temporarily #define'd. + * Use of this symbol should be considered deprecated. + */ +#define WINAPI_FAMILY_APP WINAPI_FAMILY_PC_APP + +/* + * If no WINAPI_FAMILY value is specified, then all APIs available to + * Windows desktop applications are exposed. + */ +#ifndef WINAPI_FAMILY +#define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP +#endif + +/* + * API PARTITONs are part of an indirection mechanism for mapping between + * individual APIs and the FAMILYs to which they apply. + * Each PARTITION is a category or subset of named APIs. PARTITIONs + * are permitted to have overlapping membership -- some single API + * might be part of more than one PARTITION. PARTITIONS are each #define-ed + * to be either 1 or 0 or depending on the platform at which the app is targeted. + */ + +/* + * The mapping between families and partitions is summarized here. + * An X indicates that the given partition is active for the given + * platform/family. + * + * +---------------------------+ + * | *Partition* | + * +---+---+---+---+---+---+---+ + * | | | | | | | | + * | | | | | | | | + * | | | | P | | | | + * | | | | H | | | | + * | D | | | O | | | | + * | E | | P | N | S | S | | + * | S | | C | E | Y | E | G | + * | K | | _ | _ | S | R | A | + * | T | A | A | A | T | V | M | + * +-------------------------+----+ O | P | P | P | E | E | E | + * | *Platform/Family* \| P | P | P | P | M | R | S | + * +------------------------------+---+---+---+---+---+---+---+ + * | WINAPI_FAMILY_DESKTOP_APP | X | X | X | | | | | + * +------------------------------+---+---+---+---+---+---+---+ + * | WINAPI_FAMILY_PC_APP | | X | X | | | | | + * +------------------------------+---+---+---+---+---+---+---+ + * | WINAPI_FAMILY_PHONE_APP | | X | | X | | | | + * +----------------------------- +---+---+---+---+---+---+---+ + * | WINAPI_FAMILY_SYSTEM | | | | | X | | | + * +----------------------------- +---+---+---+---+---+---+---+ + * | WINAPI_FAMILY_SERVER | | | | | X | X | | + * +------------------------------+---+---+---+---+---+---+---+ + * | WINAPI_FAMILY_GAMES | | | | | | | X | + * +------------------------------+---+---+---+---+---+---+---+ + * + * The table above is encoded in the following expressions, + * each of which evaluates to 1 or 0. + * + * Whenever a new family is added, all of these expressions + * need to be reconsidered. + */ +#if WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP && \ + WINAPI_FAMILY != WINAPI_FAMILY_PC_APP && \ + WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP && \ + WINAPI_FAMILY != WINAPI_FAMILY_SYSTEM && \ + WINAPI_FAMILY != WINAPI_FAMILY_GAMES && \ + WINAPI_FAMILY != WINAPI_FAMILY_SERVER +#error Unknown WINAPI_FAMILY value. Was it defined in terms of a WINAPI_PARTITION_* value? +#endif + +#ifndef WINAPI_PARTITION_DESKTOP +#define WINAPI_PARTITION_DESKTOP (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP) +#endif + +#ifndef WINAPI_PARTITION_APP +#define WINAPI_PARTITION_APP \ + (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP || \ + WINAPI_FAMILY == WINAPI_FAMILY_PC_APP || \ + WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP) +#endif + +#ifndef WINAPI_PARTITION_PC_APP +#define WINAPI_PARTITION_PC_APP \ + (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP || \ + WINAPI_FAMILY == WINAPI_FAMILY_PC_APP) +#endif + +#ifndef WINAPI_PARTITION_PHONE_APP +#define WINAPI_PARTITION_PHONE_APP (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP) +#endif + +#ifndef WINAPI_PARTITION_GAMES +#define WINAPI_PARTITION_GAMES \ + (WINAPI_FAMILY == WINAPI_FAMILY_GAMES || \ + WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP) +#endif + +/* + * SYSTEM is the only partition defined here. + * All other System based editions are defined as packages + * on top of the System partition. + * See winpackagefamily.h for packages level partitions + */ +#ifndef WINAPI_PARTITION_SYSTEM +#define WINAPI_PARTITION_SYSTEM \ + (WINAPI_FAMILY == WINAPI_FAMILY_SYSTEM || \ + WINAPI_FAMILY == WINAPI_FAMILY_SERVER) +#endif + +/* + * For compatibility with Windows Phone 8 header files, the following + * synonym for WINAPI_PARTITION_PHONE_APP is temporarily #define'd. + * Use of this symbol should be regarded as deprecated. + */ +#define WINAPI_PARTITION_PHONE WINAPI_PARTITION_PHONE_APP + +/* + * Header files use the WINAPI_FAMILY_PARTITION macro to assign one or + * more declarations to some group of partitions. The macro chooses + * whether the preprocessor will emit or omit a sequence of declarations + * bracketed by an #if/#endif pair. All header file references to the + * WINAPI_PARTITION_* values should be in the form of occurrences of + * WINAPI_FAMILY_PARTITION(...). + * + * For example, the following usage of WINAPI_FAMILY_PARTITION identifies + * a sequence of declarations that are part of both the Windows Desktop + * Partition and the Windows-Phone-Specific Store Partition: + * + * #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PHONE_APP) + * ... + * #endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PHONE_APP) + * + * The comment on the closing #endif allow tools as well as people to find the + * matching #ifdef properly. + * + * Usages of WINAPI_FAMILY_PARTITION may be combined, when the partitition definitions are + * related. In particular one might use declarations like + * + * #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + * + * or + * + * #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PHONE_APP) + * + * Direct references to WINAPI_PARTITION_ values (eg #if !WINAPI_FAMILY_PARTITION_...) + * should not be used. + */ +#define WINAPI_FAMILY_PARTITION(Partitions) (Partitions) + +/* + * Macro used to #define or typedef a symbol used for selective deprecation + * of individual methods of a COM interfaces that are otherwise available + * for a given set of partitions. + */ +#define _WINAPI_DEPRECATED_DECLARATION __declspec(deprecated("This API cannot be used in the context of the caller's application type.")) + +/* + * For compatibility with Windows 8 header files, the following + * symbol is temporarily conditionally #define'd. Additional symbols + * like this should be not defined in winapifamily.h, but rather should be + * introduced locally to the header files of the component that needs them. + */ +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +# define APP_DEPRECATED_HRESULT HRESULT _WINAPI_DEPRECATED_DECLARATION +#endif // WINAPIFAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if defined(_MSC_VER) && !defined(MOFCOMP_PASS) +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif +#endif + +#endif /* !_INC_WINAPIFAMILY */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winbio_err.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winbio_err.h new file mode 100644 index 0000000000000000000000000000000000000000..b175e1ee5fbdc1c63640de844e726fbd7495bd45 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winbio_err.h @@ -0,0 +1,1023 @@ +/*++ + +Copyright (c) 2007 Microsoft Corporation + + +Module Name: + + winbio_err.h + +Abstract: + + Definitions of error codes used by + Windows Biometric Framework components. + + +Environment: + + User or Kernel mode. + +Revision History: + +--*/ + +#ifndef _WINBIO_ERR_H_06269BBC_B52E_4d0d_9D35_D23BEA12DE5D_ +#define _WINBIO_ERR_H_06269BBC_B52E_4d0d_9D35_D23BEA12DE5D_ + + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +// +// For now, WINBIO errors are piggy-backing on the Security +// facility code. That may change in a future revision. +// +// +// Error conditions -- values are in the range: 0x8001 - 0xFFFF +// +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---+-+-+-----------------------+-------------------------------+ +// |Sev|C|R| Facility | Code | +// +---+-+-+-----------------------+-------------------------------+ +// +// where +// +// Sev - is the severity code +// +// 00 - Success +// 01 - Informational +// 10 - Warning +// 11 - Error +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_WINBIO 0x9 +#define FACILITY_NONE 0x0 + + +// +// Define the severity codes +// + + +// +// MessageId: WINBIO_E_UNSUPPORTED_FACTOR +// +// MessageText: +// +// Windows Biometric Service doesn't support the specified biometric factor. +// +#define WINBIO_E_UNSUPPORTED_FACTOR ((HRESULT)0x80098001L) + +// +// MessageId: WINBIO_E_INVALID_UNIT +// +// MessageText: +// +// The unit ID number doesn't correspond to a valid biometric device. +// +#define WINBIO_E_INVALID_UNIT ((HRESULT)0x80098002L) + +// +// MessageId: WINBIO_E_UNKNOWN_ID +// +// MessageText: +// +// The biometric sample doesn't match any known identity. +// +#define WINBIO_E_UNKNOWN_ID ((HRESULT)0x80098003L) + +// +// MessageId: WINBIO_E_CANCELED +// +// MessageText: +// +// The biometric operation was canceled before it could complete. +// +#define WINBIO_E_CANCELED ((HRESULT)0x80098004L) + +// +// MessageId: WINBIO_E_NO_MATCH +// +// MessageText: +// +// The biometric sample doesn't match the specified identity or sub-factor. +// +#define WINBIO_E_NO_MATCH ((HRESULT)0x80098005L) + +// +// MessageId: WINBIO_E_CAPTURE_ABORTED +// +// MessageText: +// +// A biometric sample could not be captured because the operation was aborted. +// +#define WINBIO_E_CAPTURE_ABORTED ((HRESULT)0x80098006L) + +// +// MessageId: WINBIO_E_ENROLLMENT_IN_PROGRESS +// +// MessageText: +// +// An enrollment transaction could not be started because another enrollment is already in progress. +// +#define WINBIO_E_ENROLLMENT_IN_PROGRESS ((HRESULT)0x80098007L) + +// +// MessageId: WINBIO_E_BAD_CAPTURE +// +// MessageText: +// +// The captured sample cannot be used for any further biometric operations. +// +#define WINBIO_E_BAD_CAPTURE ((HRESULT)0x80098008L) + +// +// MessageId: WINBIO_E_INVALID_CONTROL_CODE +// +// MessageText: +// +// The biometric unit doesn't support the specified unit control code. +// +#define WINBIO_E_INVALID_CONTROL_CODE ((HRESULT)0x80098009L) + +// +// WINBIO_E_FACTOR_NOT_PRESENT - 0x8009800A +// [OBSOLETE] - DO NOT USE +// + +// +// MessageId: WINBIO_E_DATA_COLLECTION_IN_PROGRESS +// +// MessageText: +// +// The driver already has a pending data collection operation in progress. +// +#define WINBIO_E_DATA_COLLECTION_IN_PROGRESS ((HRESULT)0x8009800BL) + +// +// MessageId: WINBIO_E_UNSUPPORTED_DATA_FORMAT +// +// MessageText: +// +// The biometric sensor driver does not support the requested data format. +// +#define WINBIO_E_UNSUPPORTED_DATA_FORMAT ((HRESULT)0x8009800CL) + +// +// MessageId: WINBIO_E_UNSUPPORTED_DATA_TYPE +// +// MessageText: +// +// The biometric sensor driver does not support the requested data type. +// +#define WINBIO_E_UNSUPPORTED_DATA_TYPE ((HRESULT)0x8009800DL) + +// +// MessageId: WINBIO_E_UNSUPPORTED_PURPOSE +// +// MessageText: +// +// The biometric sensor driver does not support the requested data purpose. +// +#define WINBIO_E_UNSUPPORTED_PURPOSE ((HRESULT)0x8009800EL) + +// +// MessageId: WINBIO_E_INVALID_DEVICE_STATE +// +// MessageText: +// +// The biometric unit is not in the proper state to perform the specified operation. +// +#define WINBIO_E_INVALID_DEVICE_STATE ((HRESULT)0x8009800FL) + +// +// MessageId: WINBIO_E_DEVICE_BUSY +// +// MessageText: +// +// The operation could not be performed because the sensor device was busy. +// +#define WINBIO_E_DEVICE_BUSY ((HRESULT)0x80098010L) + +// +// MessageId: WINBIO_E_DATABASE_CANT_CREATE +// +// MessageText: +// +// The biometric unit's storage adapter was unable to create a new database. +// +#define WINBIO_E_DATABASE_CANT_CREATE ((HRESULT)0x80098011L) + +// +// MessageId: WINBIO_E_DATABASE_CANT_OPEN +// +// MessageText: +// +// The biometric unit's storage adapter was unable to open an existing database. +// +#define WINBIO_E_DATABASE_CANT_OPEN ((HRESULT)0x80098012L) + +// +// MessageId: WINBIO_E_DATABASE_CANT_CLOSE +// +// MessageText: +// +// The biometric unit's storage adapter was unable to close a database. +// +#define WINBIO_E_DATABASE_CANT_CLOSE ((HRESULT)0x80098013L) + +// +// MessageId: WINBIO_E_DATABASE_CANT_ERASE +// +// MessageText: +// +// The biometric unit's storage adapter was unable to erase a database. +// +#define WINBIO_E_DATABASE_CANT_ERASE ((HRESULT)0x80098014L) + +// +// MessageId: WINBIO_E_DATABASE_CANT_FIND +// +// MessageText: +// +// The biometric unit's storage adapter was unable to find a database. +// +#define WINBIO_E_DATABASE_CANT_FIND ((HRESULT)0x80098015L) + +// +// MessageId: WINBIO_E_DATABASE_ALREADY_EXISTS +// +// MessageText: +// +// The biometric unit's storage adapter was unable to create a database because that database already exists. +// +#define WINBIO_E_DATABASE_ALREADY_EXISTS ((HRESULT)0x80098016L) + +// +// WINBIO_E_DATABASE_INVALID_NAME - 0x80098017 +// [OBSOLETE] - DO NOT USE +// + +// +// MessageId: WINBIO_E_DATABASE_FULL +// +// MessageText: +// +// The biometric unit's storage adapter was unable to add a record to the database because the database is full. +// +#define WINBIO_E_DATABASE_FULL ((HRESULT)0x80098018L) + +// +// MessageId: WINBIO_E_DATABASE_LOCKED +// +// MessageText: +// +// The database is locked and its contents are inaccessible. +// +#define WINBIO_E_DATABASE_LOCKED ((HRESULT)0x80098019L) + +// +// MessageId: WINBIO_E_DATABASE_CORRUPTED +// +// MessageText: +// +// The contents of the database have become corrupted and are inaccessible. +// +#define WINBIO_E_DATABASE_CORRUPTED ((HRESULT)0x8009801AL) + +// +// MessageId: WINBIO_E_DATABASE_NO_SUCH_RECORD +// +// MessageText: +// +// No records were deleted because the specified identity and sub-factor are not present in the database. +// +#define WINBIO_E_DATABASE_NO_SUCH_RECORD ((HRESULT)0x8009801BL) + +// +// MessageId: WINBIO_E_DUPLICATE_ENROLLMENT +// +// MessageText: +// +// The specified identity and sub-factor are already enrolled in the database. +// +#define WINBIO_E_DUPLICATE_ENROLLMENT ((HRESULT)0x8009801CL) + +// +// MessageId: WINBIO_E_DATABASE_READ_ERROR +// +// MessageText: +// +// An error occurred while trying to read from the database. +// +#define WINBIO_E_DATABASE_READ_ERROR ((HRESULT)0x8009801DL) + +// +// MessageId: WINBIO_E_DATABASE_WRITE_ERROR +// +// MessageText: +// +// An error occurred while trying to write to the database. +// +#define WINBIO_E_DATABASE_WRITE_ERROR ((HRESULT)0x8009801EL) + +// +// MessageId: WINBIO_E_DATABASE_NO_RESULTS +// +// MessageText: +// +// No records in the database matched the query. +// +#define WINBIO_E_DATABASE_NO_RESULTS ((HRESULT)0x8009801FL) + +// +// MessageId: WINBIO_E_DATABASE_NO_MORE_RECORDS +// +// MessageText: +// +// All records from the most recent database query have been viewed. +// +#define WINBIO_E_DATABASE_NO_MORE_RECORDS ((HRESULT)0x80098020L) + +// +// MessageId: WINBIO_E_DATABASE_EOF +// +// MessageText: +// +// A database operation unexpectedly encountered the end of the file. +// +#define WINBIO_E_DATABASE_EOF ((HRESULT)0x80098021L) + +// +// MessageId: WINBIO_E_DATABASE_BAD_INDEX_VECTOR +// +// MessageText: +// +// A database operation failed due to a malformed index vector. +// +#define WINBIO_E_DATABASE_BAD_INDEX_VECTOR ((HRESULT)0x80098022L) + +// +// WINBIO_E_INVALID_IDENTITY - 0x80098023 +// [OBSOLETE] - DO NOT USE +// + +// +// MessageId: WINBIO_E_INCORRECT_BSP +// +// MessageText: +// +// The biometric unit doesn't belong to the specified service provider. +// +#define WINBIO_E_INCORRECT_BSP ((HRESULT)0x80098024L) + +// +// MessageId: WINBIO_E_INCORRECT_SENSOR_POOL +// +// MessageText: +// +// The biometric unit doesn't belong to the specified sensor pool. +// +#define WINBIO_E_INCORRECT_SENSOR_POOL ((HRESULT)0x80098025L) + +// +// MessageId: WINBIO_E_NO_CAPTURE_DATA +// +// MessageText: +// +// The sensor adapter's capture buffer is empty. +// +#define WINBIO_E_NO_CAPTURE_DATA ((HRESULT)0x80098026L) + +// +// MessageId: WINBIO_E_INVALID_SENSOR_MODE +// +// MessageText: +// +// The sensor adapter doesn't support the sensor mode specified in the configuration. +// +#define WINBIO_E_INVALID_SENSOR_MODE ((HRESULT)0x80098027L) + +// +// MessageId: WINBIO_E_LOCK_VIOLATION +// +// MessageText: +// +// The requested operation cannot be performed due to a locking conflict. +// +#define WINBIO_E_LOCK_VIOLATION ((HRESULT)0x8009802AL) + +// +// MessageId: WINBIO_E_DUPLICATE_TEMPLATE +// +// MessageText: +// +// The data in a biometric template matches another template already in the database. +// +#define WINBIO_E_DUPLICATE_TEMPLATE ((HRESULT)0x8009802BL) + +// +// MessageId: WINBIO_E_INVALID_OPERATION +// +// MessageText: +// +// The requested operation is not valid for the current state of the session or biometric unit. +// +#define WINBIO_E_INVALID_OPERATION ((HRESULT)0x8009802CL) + +// +// MessageId: WINBIO_E_SESSION_BUSY +// +// MessageText: +// +// The session cannot begin a new operation because another operation is already in progress. +// +#define WINBIO_E_SESSION_BUSY ((HRESULT)0x8009802DL) + +// +// WINBIO_E_ASYNC_OPERATION_IN_PROGRESS - 0x8009802E +// [OBSOLETE] - DO NOT USE +// + +// +// WINBIO_E_INVALID_ASYNC_OPERATION - 0x8009802F +// [OBSOLETE] - DO NOT USE +// + +// +// MessageId: WINBIO_E_CRED_PROV_DISABLED +// +// MessageText: +// +// System policy settings have disabled the Windows biometric credential provider. +// +#define WINBIO_E_CRED_PROV_DISABLED ((HRESULT)0x80098030L) + +// +// MessageId: WINBIO_E_CRED_PROV_NO_CREDENTIAL +// +// MessageText: +// +// The requested credential was not found. +// +#define WINBIO_E_CRED_PROV_NO_CREDENTIAL ((HRESULT)0x80098031L) + +// +// MessageId: WINBIO_E_DISABLED +// +// MessageText: +// +// System policy settings have disabled the Windows biometric service. +// +#define WINBIO_E_DISABLED ((HRESULT)0x80098032L) + +// +// MessageId: WINBIO_E_CONFIGURATION_FAILURE +// +// MessageText: +// +// The biometric unit could not be configured. +// +#define WINBIO_E_CONFIGURATION_FAILURE ((HRESULT)0x80098033L) + +// +// MessageId: WINBIO_E_SENSOR_UNAVAILABLE +// +// MessageText: +// +// A private pool cannot be created because one or more biometric units are not available. +// +#define WINBIO_E_SENSOR_UNAVAILABLE ((HRESULT)0x80098034L) + +// +// MessageId: WINBIO_E_SAS_ENABLED +// +// MessageText: +// +// A secure attention sequence (CTRL-ALT-DEL) is required for logon. +// +#define WINBIO_E_SAS_ENABLED ((HRESULT)0x80098035L) + +// +// MessageId: WINBIO_E_DEVICE_FAILURE +// +// MessageText: +// +// A biometric sensor has failed. +// +#define WINBIO_E_DEVICE_FAILURE ((HRESULT)0x80098036L) + +// +// MessageId: WINBIO_E_FAST_USER_SWITCH_DISABLED +// +// MessageText: +// +// Fast user switching is disabled. +// +#define WINBIO_E_FAST_USER_SWITCH_DISABLED ((HRESULT)0x80098037L) + +// +// MessageId: WINBIO_E_NOT_ACTIVE_CONSOLE +// +// MessageText: +// +// The System sensor pool cannot be opened from Terminal Server client sessions. +// +#define WINBIO_E_NOT_ACTIVE_CONSOLE ((HRESULT)0x80098038L) + +// +// MessageId: WINBIO_E_EVENT_MONITOR_ACTIVE +// +// MessageText: +// +// There is already an active event monitor associated with the specified session. +// +#define WINBIO_E_EVENT_MONITOR_ACTIVE ((HRESULT)0x80098039L) + +// +// MessageId: WINBIO_E_INVALID_PROPERTY_TYPE +// +// MessageText: +// +// The value specified is not a valid property type. +// +#define WINBIO_E_INVALID_PROPERTY_TYPE ((HRESULT)0x8009803AL) + +// +// MessageId: WINBIO_E_INVALID_PROPERTY_ID +// +// MessageText: +// +// The value specified is not a valid property ID. +// +#define WINBIO_E_INVALID_PROPERTY_ID ((HRESULT)0x8009803BL) + +// +// MessageId: WINBIO_E_UNSUPPORTED_PROPERTY +// +// MessageText: +// +// The biometric unit doesn't support the specified property. +// +#define WINBIO_E_UNSUPPORTED_PROPERTY ((HRESULT)0x8009803CL) + +// +// MessageId: WINBIO_E_ADAPTER_INTEGRITY_FAILURE +// +// MessageText: +// +// The adapter binary did not pass its integrity check. +// +#define WINBIO_E_ADAPTER_INTEGRITY_FAILURE ((HRESULT)0x8009803DL) + +// +// MessageId: WINBIO_E_INCORRECT_SESSION_TYPE +// +// MessageText: +// +// This operation requires a different type of session handle. +// +#define WINBIO_E_INCORRECT_SESSION_TYPE ((HRESULT)0x8009803EL) + +// +// MessageId: WINBIO_E_SESSION_HANDLE_CLOSED +// +// MessageText: +// +// This session handle has already been closed. +// +#define WINBIO_E_SESSION_HANDLE_CLOSED ((HRESULT)0x8009803FL) + +// +// MessageId: WINBIO_E_DEADLOCK_DETECTED +// +// MessageText: +// +// The requested operation was aborted because it would have caused a deadlock. +// +#define WINBIO_E_DEADLOCK_DETECTED ((HRESULT)0x80098040L) + +// +// MessageId: WINBIO_E_NO_PREBOOT_IDENTITY +// +// MessageText: +// +// There is no pre-boot logon identity available. +// +#define WINBIO_E_NO_PREBOOT_IDENTITY ((HRESULT)0x80098041L) + +// +// MessageId: WINBIO_E_MAX_ERROR_COUNT_EXCEEDED +// +// MessageText: +// +// The operation was aborted because there were too many errors. +// +#define WINBIO_E_MAX_ERROR_COUNT_EXCEEDED ((HRESULT)0x80098042L) + +// +// MessageId: WINBIO_E_AUTO_LOGON_DISABLED +// +// MessageText: +// +// System policy settings have disabled pre-boot auto-logon using biometrics. +// +#define WINBIO_E_AUTO_LOGON_DISABLED ((HRESULT)0x80098043L) + + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + + +#if (NTDDI_VERSION >= NTDDI_WIN9) + + +// +// MessageId: WINBIO_E_INVALID_TICKET +// +// MessageText: +// +// The specified ticket is either incorrect or has expired. +// +#define WINBIO_E_INVALID_TICKET ((HRESULT)0x80098044L) + +// +// MessageId: WINBIO_E_TICKET_QUOTA_EXCEEDED +// +// MessageText: +// +// The calling process has too many outstanding tickets. +// +#define WINBIO_E_TICKET_QUOTA_EXCEEDED ((HRESULT)0x80098045L) + +// +// MessageId: WINBIO_E_DATA_PROTECTION_FAILURE +// +// MessageText: +// +// The biometric service could not decrypt the data. +// +#define WINBIO_E_DATA_PROTECTION_FAILURE ((HRESULT)0x80098046L) + +// +// MessageId: WINBIO_E_CRED_PROV_SECURITY_LOCKOUT +// +// MessageText: +// +// Biometric authentication has been disabled because of too many unregistered fingerpint scans. +// +#define WINBIO_E_CRED_PROV_SECURITY_LOCKOUT ((HRESULT)0x80098047L) + +// +// MessageId: WINBIO_E_UNSUPPORTED_POOL_TYPE +// +// MessageText: +// +// The requested pool type is not supported by this biometric factor. +// +#define WINBIO_E_UNSUPPORTED_POOL_TYPE ((HRESULT)0x80098048L) + +// +// MessageId: WINBIO_E_SELECTION_REQUIRED +// +// MessageText: +// +// A specific individual must be selected in order to perform an enrollment. +// +#define WINBIO_E_SELECTION_REQUIRED ((HRESULT)0x80098049L) + +// +// MessageId: WINBIO_E_PRESENCE_MONITOR_ACTIVE +// +// MessageText: +// +// A presence monitor is already active on that session. +// +#define WINBIO_E_PRESENCE_MONITOR_ACTIVE ((HRESULT)0x8009804AL) + +// +// MessageId: WINBIO_E_INVALID_SUBFACTOR +// +// MessageText: +// +// The specified sub-factor value is out of range or is not supported. +// +#define WINBIO_E_INVALID_SUBFACTOR ((HRESULT)0x8009804BL) + +// +// MessageId: WINBIO_E_INVALID_CALIBRATION_FORMAT_ARRAY +// +// MessageText: +// +// The sensor adapter returned an invalid calibration format array. +// +#define WINBIO_E_INVALID_CALIBRATION_FORMAT_ARRAY ((HRESULT)0x8009804CL) + +// +// MessageId: WINBIO_E_NO_SUPPORTED_CALIBRATION_FORMAT +// +// MessageText: +// +// The sensor and engine adapter don't share a common calibration format. +// +#define WINBIO_E_NO_SUPPORTED_CALIBRATION_FORMAT ((HRESULT)0x8009804DL) + +// +// MessageId: WINBIO_E_UNSUPPORTED_SENSOR_CALIBRATION_FORMAT +// +// MessageText: +// +// The sensor adapter does not support the requested calibration format. +// +#define WINBIO_E_UNSUPPORTED_SENSOR_CALIBRATION_FORMAT ((HRESULT)0x8009804EL) + +// +// MessageId: WINBIO_E_CALIBRATION_BUFFER_TOO_SMALL +// +// MessageText: +// +// The requested calibration buffer size is too small. +// +#define WINBIO_E_CALIBRATION_BUFFER_TOO_SMALL ((HRESULT)0x8009804FL) + +// +// MessageId: WINBIO_E_CALIBRATION_BUFFER_TOO_LARGE +// +// MessageText: +// +// The requested calibration buffer size is too large. +// +#define WINBIO_E_CALIBRATION_BUFFER_TOO_LARGE ((HRESULT)0x80098050L) + +// +// MessageId: WINBIO_E_CALIBRATION_BUFFER_INVALID +// +// MessageText: +// +// The sensor adapter cannot process the contents of the calibration buffer. +// +#define WINBIO_E_CALIBRATION_BUFFER_INVALID ((HRESULT)0x80098051L) + + +#endif // (NTDDI_VERSION >= NTDDI_WIN9) + + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS1) + +// +// MessageId: WINBIO_E_INVALID_KEY_IDENTIFIER +// +// MessageText: +// +// The key identifier is invalid. +// +#define WINBIO_E_INVALID_KEY_IDENTIFIER ((HRESULT)0x80098052L) + +// +// MessageId: WINBIO_E_KEY_CREATION_FAILED +// +// MessageText: +// +// The key cannot be created. +// +#define WINBIO_E_KEY_CREATION_FAILED ((HRESULT)0x80098053L) + +// +// MessageId: WINBIO_E_KEY_IDENTIFIER_BUFFER_TOO_SMALL +// +// MessageText: +// +// The key identifier buffer is too small. +// +#define WINBIO_E_KEY_IDENTIFIER_BUFFER_TOO_SMALL ((HRESULT)0x80098054L) + +// +// MessageId: WINBIO_E_PROPERTY_UNAVAILABLE +// +// MessageText: +// +// The biometric unt is unable to provide data for this property at the present time. +// +#define WINBIO_E_PROPERTY_UNAVAILABLE ((HRESULT)0x80098055L) + + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS1) + + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +// +// MessageId: WINBIO_E_POLICY_PROTECTION_UNAVAILABLE +// +// MessageText: +// +// Policy protection is not available because a TPM 2.0 device is either not present or not supported. +// +#define WINBIO_E_POLICY_PROTECTION_UNAVAILABLE ((HRESULT)0x80098056L) + +// +// MessageId: WINBIO_E_INSECURE_SENSOR +// +// MessageText: +// +// The biometric sensor does not support a secure hardware data path. +// +#define WINBIO_E_INSECURE_SENSOR ((HRESULT)0x80098057L) + +// +// MessageId: WINBIO_E_INVALID_BUFFER_ID +// +// MessageText: +// +// The identifier does not refer to a valid buffer. +// +#define WINBIO_E_INVALID_BUFFER_ID ((HRESULT)0x80098058L) + +// +// MessageId: WINBIO_E_INVALID_BUFFER +// +// MessageText: +// +// The contents of the buffer are not valid. +// +#define WINBIO_E_INVALID_BUFFER ((HRESULT)0x80098059L) + +// +// MessageId: WINBIO_E_TRUSTLET_INTEGRITY_FAIL +// +// MessageText: +// +// The Windows Biometric Service secure component was compromised. +// +#define WINBIO_E_TRUSTLET_INTEGRITY_FAIL ((HRESULT)0x8009805AL) + + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +// +// MessageId: WINBIO_E_ENROLLMENT_CANCELED_BY_SUSPEND +// +// MessageText: +// +// The Windows Biometric Service canceled the enrollment because the platform entered a suspended state. +// +#define WINBIO_E_ENROLLMENT_CANCELED_BY_SUSPEND ((HRESULT)0x8009805BL) + + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#if (NTDDI_VERSION >= NTDDI_WIN7) + + +// +// Informational messages -- values are in the range: 0x0001 - 0x7FFF +// +// +// MessageId: WINBIO_I_MORE_DATA +// +// MessageText: +// +// Another sample is needed for the current enrollment template. +// +#define WINBIO_I_MORE_DATA ((HRESULT)0x00090001L) + + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + + +#if (NTDDI_VERSION >= NTDDI_WIN9) + +// +// MessageId: WINBIO_I_EXTENDED_STATUS_INFORMATION +// +// MessageText: +// +// Return data includes multiple status values, which must be checked separately. +// +#define WINBIO_I_EXTENDED_STATUS_INFORMATION ((HRESULT)0x00090002L) + + +#endif // (NTDDI_VERSION >= NTDDI_WIN9) + + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +// +// These messages match the Reject Detail errors +// returned by fingerprint readers. They provide +// extra information to help a user recover from +// a failed biometric operation. +// +#ifndef WINBIO_REJECT_DETAILS_DEFINED +#define WINBIO_REJECT_DETAILS_DEFINED +// +// MessageId: WINBIO_FP_TOO_HIGH +// +// MessageText: +// +// Position your finger lower on the fingerprint reader. +// +#define WINBIO_FP_TOO_HIGH ((WINBIO_REJECT_DETAIL)0x00000001L) + +// +// MessageId: WINBIO_FP_TOO_LOW +// +// MessageText: +// +// Position your finger higher on the fingerprint reader. +// +#define WINBIO_FP_TOO_LOW ((WINBIO_REJECT_DETAIL)0x00000002L) + +// +// MessageId: WINBIO_FP_TOO_LEFT +// +// MessageText: +// +// Position your finger more to the right on the fingerprint reader. +// +#define WINBIO_FP_TOO_LEFT ((WINBIO_REJECT_DETAIL)0x00000003L) + +// +// MessageId: WINBIO_FP_TOO_RIGHT +// +// MessageText: +// +// Position your finger more to the left on the fingerprint reader. +// +#define WINBIO_FP_TOO_RIGHT ((WINBIO_REJECT_DETAIL)0x00000004L) + +// +// MessageId: WINBIO_FP_TOO_FAST +// +// MessageText: +// +// Move your finger more slowly on the fingerprint reader. +// +#define WINBIO_FP_TOO_FAST ((WINBIO_REJECT_DETAIL)0x00000005L) + +// +// MessageId: WINBIO_FP_TOO_SLOW +// +// MessageText: +// +// Move your finger more quickly on the fingerprint reader. +// +#define WINBIO_FP_TOO_SLOW ((WINBIO_REJECT_DETAIL)0x00000006L) + +// +// MessageId: WINBIO_FP_POOR_QUALITY +// +// MessageText: +// +// The fingerprint reader could not capture a good sample. Check to be sure the sensor is clean. +// +#define WINBIO_FP_POOR_QUALITY ((WINBIO_REJECT_DETAIL)0x00000007L) + +// +// MessageId: WINBIO_FP_TOO_SKEWED +// +// MessageText: +// +// Hold your finger flat and straight when you use the fingerprint reader. +// +#define WINBIO_FP_TOO_SKEWED ((WINBIO_REJECT_DETAIL)0x00000008L) + +// +// MessageId: WINBIO_FP_TOO_SHORT +// +// MessageText: +// +// Use a longer stroke when scanning your fingerprint. +// +#define WINBIO_FP_TOO_SHORT ((WINBIO_REJECT_DETAIL)0x00000009L) + +// +// MessageId: WINBIO_FP_MERGE_FAILURE +// +// MessageText: +// +// The fingerprint reader could not capture a good sample. Check to be sure the sensor is clean. +// +#define WINBIO_FP_MERGE_FAILURE ((WINBIO_REJECT_DETAIL)0x0000000AL) + +#endif // (ifndef WINBIO_REJECT_DETAILS_DEFINED) + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#endif // _WINBIO_ERR_H_06269BBC_B52E_4d0d_9D35_D23BEA12DE5D_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winbio_ioctl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winbio_ioctl.h new file mode 100644 index 0000000000000000000000000000000000000000..ab046e2ffc4e0781bb8b7ddc8f13e57fab6bea8a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winbio_ioctl.h @@ -0,0 +1,319 @@ +/*++ + +Copyright (c) 2007 Microsoft Corporation + +Module Name: + + winbio_ioctl.h + +Abstract: + Biometric device class/port IOCTL codes. This file is required for all code + user mode and kernel mode, using Biometric IOCTL's, defines, data structures + +Revision History: + +--*/ + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +#include "winbio_types.h" + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef FILE_DEVICE_BIOMETRIC +#define FILE_DEVICE_BIOMETRIC 0x00000044 +#else +#if 0x00000044 != FILE_DEVICE_BIOMETRIC +#error "Incorrect Biometric Device Definition" +#endif +#endif + +// +// {E2B5183A-99EA-4cc3-AD6B-80CA8D715B80} +// +DEFINE_GUID( GUID_DEVINTERFACE_BIOMETRIC_READER, + 0xe2b5183a, 0x99ea, 0x4cc3, 0xad, 0x6b, 0x80, 0xca, 0x8d, 0x71, 0x5b, 0x80); + + +// +/////////////////////////////////////////////////////////////////////////////// +// +// Biometric Device IOCTLs +// + +#define BIO_CTL_CODE(code) CTL_CODE(FILE_DEVICE_BIOMETRIC, \ + (code), \ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +// +// Mandatory IOCTLs +// +#define IOCTL_BIOMETRIC_GET_ATTRIBUTES BIO_CTL_CODE(0x001) +#define IOCTL_BIOMETRIC_RESET BIO_CTL_CODE(0x002) +#define IOCTL_BIOMETRIC_CALIBRATE BIO_CTL_CODE(0x003) +#define IOCTL_BIOMETRIC_GET_SENSOR_STATUS BIO_CTL_CODE(0x004) +#define IOCTL_BIOMETRIC_CAPTURE_DATA BIO_CTL_CODE(0x005) + +// +// Optional IOCTL for updating the firmware +// +#define IOCTL_BIOMETRIC_UPDATE_FIRMWARE BIO_CTL_CODE(0x006) + +// +// Optional IOCTL for retrieving supported hash algorthims +// Capability: WINBIO_CAPABILITY_PROCESSING, WINBIO_CAPABILITY_ENCRYPTION +// +#define IOCTL_BIOMETRIC_GET_SUPPORTED_ALGORITHMS BIO_CTL_CODE(0x007) + +// +// Optional IOCTLs to set indicator status +// Capability: WINBIO_CAPABILITY_INDICATOR +// +#define IOCTL_BIOMETRIC_GET_INDICATOR BIO_CTL_CODE(0x008) +#define IOCTL_BIOMETRIC_SET_INDICATOR BIO_CTL_CODE(0x009) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +// +// Optional IOCTL to retrieve sensor-type information +// in a vendor-specific format +// +#define IOCTL_BIOMETRIC_GET_PRIVATE_SENSOR_TYPE BIO_CTL_CODE(0x00A) + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +// +// Optional IOCTLs for support of the Secure Connection Protocol (SCP) V1 +// Capability: WINBIO_CAPABILITY_SCP_V1 +// +#define IOCTL_BIOMETRIC_CONNECT_SECURE BIO_CTL_CODE(0x00B) +#define IOCTL_BIOMETRIC_CAPTURE_ENCRYPTED_DATA BIO_CTL_CODE(0x00C) + +// +// Optional IOCTL for wake-on-touch support. +// Capability: WINBIO_CAPABILITY_WAKE +// The WBDI driver must hold this IOCTL in non-power-managed IO queue. +// The Windows Biometric Framework will send this IOCTL on transition to a low +// power state. When the sensor wishes to wake the host, it should complete this +// IOCTL. +// +#define IOCTL_BIOMETRIC_NOTIFY_WAKE BIO_CTL_CODE(0x00D) + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +// +// Vendor control codes are specified at 0x800: +// +// +#define IOCTL_BIOMETRIC_VENDOR CTL_CODE(FILE_DEVICE_BIOMETRIC, 0x800, 0, 0) + + +// +/////////////////////////////////////////////////////////////////////////////// +// +// IOCTL payload and type definitions +// + +// +// WINBIO version +// + +#define WINBIO_WBDI_MAJOR_VERSION 0x1 +#define WINBIO_WBDI_MINOR_VERSION 0x0 + + +// +// OUT payload for IOCTL_BIOMETRIC_GET_ATTRIBUTES +// +typedef struct _WINBIO_SENSOR_ATTRIBUTES { + DWORD PayloadSize; + HRESULT WinBioHresult; + WINBIO_VERSION WinBioVersion; + WINBIO_BIOMETRIC_TYPE SensorType; + WINBIO_BIOMETRIC_SENSOR_SUBTYPE SensorSubType; + WINBIO_CAPABILITIES Capabilities; + WINBIO_STRING ManufacturerName; + WINBIO_STRING ModelName; + WINBIO_STRING SerialNumber; + WINBIO_VERSION FirmwareVersion; + DWORD SupportedFormatEntries; + WINBIO_REGISTERED_FORMAT SupportedFormat[1]; // Defined as a length of 1 to avoid compiler warning. +} WINBIO_SENSOR_ATTRIBUTES, *PWINBIO_SENSOR_ATTRIBUTES; + +// +// The WINBIO_DATA structure associates a length, in +// bytes, with an arbitrary block of contiguous memory. +// +typedef struct _WINBIO_DATA{ + DWORD Size; + BYTE Data[1]; // Defined as a length of 1 to avoid compiler warning. +} WINBIO_DATA, *PWINBIO_DATA; + + +// +// IN payload for IOCTL_BIOMETRIC_UPDATE_FIRMWARE +// +typedef struct _WINBIO_UPDATE_FIRMWARE { + DWORD PayloadSize; + WINBIO_DATA FirmwareData; +} WINBIO_UPDATE_FIRMWARE, *PWINBIO_UPDATE_FIRMWARE; + + +// +// OUT payload for IOCTL_BIOMETRIC_CALIBRATE +// +typedef struct _WINBIO_CALIBRATION_INFO { + DWORD PayloadSize; + HRESULT WinBioHresult; + WINBIO_DATA CalibrationData; +} WINBIO_CALIBRATION_INFO, *PWINBIO_CALIBRATION_INFO; + + +// +// OUT payload for IOCTL_BIOMETRIC_GET_SENSOR_STATUS +// +typedef struct _WINBIO_DIAGNOSTICS { + DWORD PayloadSize; + HRESULT WinBioHresult; + WINBIO_SENSOR_STATUS SensorStatus; + WINBIO_DATA VendorDiagnostics; +} WINBIO_DIAGNOSTICS, *PWINBIO_DIAGNOSTICS; + + +// +// OUT payload for IOCTL_BIOMETRIC_RESET +// OUT payload for IOCTL_BIOMETRIC_UPDATE_FIRMWARE +// +typedef struct _WINBIO_BLANK_PAYLOAD { + DWORD PayloadSize; + HRESULT WinBioHresult; +} WINBIO_BLANK_PAYLOAD, *PWINBIO_BLANK_PAYLOAD; + + +// +// Parameters for a capture operation. +// IN payload for IOCTL_BIOMETRIC_CAPTURE_DATA +// + +typedef struct _WINBIO_CAPTURE_PARAMETERS { + DWORD PayloadSize; + WINBIO_BIR_PURPOSE Purpose; + WINBIO_REGISTERED_FORMAT Format; + WINBIO_UUID VendorFormat; + WINBIO_BIR_DATA_FLAGS Flags; +} WINBIO_CAPTURE_PARAMETERS, *PWINBIO_CAPTURE_PARAMETERS; + +// +// A container for biometric captured data. +// OUT payload for IOCTL_BIOMETRIC_CAPTURE_DATA +// +typedef struct _WINBIO_CAPTURE_DATA { + DWORD PayloadSize; + HRESULT WinBioHresult; + WINBIO_SENSOR_STATUS SensorStatus; + WINBIO_REJECT_DETAIL RejectDetail; + WINBIO_DATA CaptureData; +} WINBIO_CAPTURE_DATA, *PWINBIO_CAPTURE_DATA; + + +// +// OUT payload for IOCTL_BIOMETRIC_GET_SUPPORTED_ALGORITHMS +// +typedef struct _WINBIO_SUPPORTED_ALGORITHMS { + DWORD PayloadSize; + HRESULT WinBioHresult; + DWORD NumberOfAlgorithms; + WINBIO_DATA AlgorithmData; +} WINBIO_SUPPORTED_ALGORITHMS, *PWINBIO_SUPPORTED_ALGORITHMS; + + +// +// OUT payload for IOCTL_GET_INDICATOR +// +typedef struct _WINBIO_GET_INDICATOR { + DWORD PayloadSize; + HRESULT WinBioHresult; + WINBIO_INDICATOR_STATUS IndicatorStatus; +} WINBIO_GET_INDICATOR, *PWINBIO_GET_INDICATOR; + + +// +// IN payload for IOCTL_SET_INDICATOR +// +typedef struct _WINBIO_SET_INDICATOR { + DWORD PayloadSize; + WINBIO_INDICATOR_STATUS IndicatorStatus; +} WINBIO_SET_INDICATOR, *PWINBIO_SET_INDICATOR; + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +// +// OUT payload for IOCTL_BIOMETRIC_GET_PRIVATE_SENSOR_TYPE +// +typedef struct _WINBIO_PRIVATE_SENSOR_TYPE_INFO { + DWORD PayloadSize; + HRESULT WinBioHresult; + WINBIO_DATA PrivateSensorTypeInfo; +} WINBIO_PRIVATE_SENSOR_TYPE_INFO, *PWINBIO_PRIVATE_SENSOR_TYPE_INFO; + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +// +// IN payload for IOCTL_BIOMETRIC_CONNECT_SECURE is a WINBIO_SECURE_CONNECTION_PARAMS structure +// + +// +// OUT payload for IOCTL_BIOMETRIC_CONNECT_SECURE is a WINBIO_SECURE_CONNECTION_DATA structure +// + +// +// IN payload for IOCTL_BIOMETRIC_CAPTURE_ENCRYPTED_DATA +// +typedef struct _WINBIO_ENCRYPTED_CAPTURE_PARAMS { + DWORD PayloadSize; + WINBIO_BIR_PURPOSE Purpose; + WINBIO_REGISTERED_FORMAT Format; + WINBIO_UUID VendorFormat; + WINBIO_BIR_DATA_FLAGS Flags; + DWORD NonceSize; + // Nonce[NonceSize] +} WINBIO_ENCRYPTED_CAPTURE_PARAMS, *PWINBIO_ENCRYPTED_CAPTURE_PARAMS; + +// +// OUT payload for IOCTL_BIOMETRIC_CAPTURE_ENCRYPTED_DATA is a WINBIO_CAPTURE_DATA structure +// + +// +// OUT payload for IOCTL_BIOMETRIC_NOTIFY_WAKE +// +typedef struct _WINBIO_NOTIFY_WAKE { + DWORD PayloadSize; + HRESULT WinBioHresult; + WINBIO_WAKE_REASON Reason; +} WINBIO_NOTIFY_WAKE, *PWINBIO_NOTIFY_WAKE; + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winbio_types.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winbio_types.h new file mode 100644 index 0000000000000000000000000000000000000000..a4161169ccead95ed919ce6e93cd5a114234e5b3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winbio_types.h @@ -0,0 +1,2470 @@ +/*++ + +Copyright (c) 2007 Microsoft Corporation + + +Module Name: + + winbio_types.h + +Abstract: + + Type definitions, constants, and structures used + by Windows Biometrics components. + + +Environment: + + User or Kernel mode. + +Revision History: + +--*/ + +#ifndef _WINBIO_TYPES_H_712486DB_3EF5_41da_937A_55DCB7B66A53_ +#define _WINBIO_TYPES_H_712486DB_3EF5_41da_937A_55DCB7B66A53_ + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +#pragma warning( push ) +#pragma warning( disable : 4324 ) // structure-padding message + +#ifdef __cplusplus +extern "C"{ +#endif + +/////////////////////////////////////////////////////////////////////////////// +// +// Types used throughout WinBio +// +/////////////////////////////////////////////////////////////////////////////// + +typedef ULONG WINBIO_UNIT_ID, *PWINBIO_UNIT_ID; +typedef ULONG WINBIO_SESSION_HANDLE, *PWINBIO_SESSION_HANDLE; +typedef WINBIO_SESSION_HANDLE WINBIO_FRAMEWORK_HANDLE, *PWINBIO_FRAMEWORK_HANDLE; + +// +// A GUID +// +typedef GUID WINBIO_UUID, *PWINBIO_UUID; + +// +// Represents a NULL-terminated Unicode character +// string inside a fixed-length buffer. +// +#define WINBIO_MAX_STRING_LEN 256 +typedef WCHAR WINBIO_STRING[WINBIO_MAX_STRING_LEN]; +typedef WINBIO_STRING *PWINBIO_STRING; + +// +// Version +// +typedef struct _WINBIO_VERSION { + DWORD MajorVersion; + DWORD MinorVersion; +} WINBIO_VERSION, *PWINBIO_VERSION; + +/////////////////////////////////////////////////////////////////////////////// +// +// Enumeration for template identity types... +// +typedef ULONG WINBIO_IDENTITY_TYPE, *PWINBIO_IDENTITY_TYPE; + +#ifdef MIDL_PASS + +const WINBIO_IDENTITY_TYPE WINBIO_ID_TYPE_NULL = (WINBIO_IDENTITY_TYPE)0; // The Identity structure is empty. +const WINBIO_IDENTITY_TYPE WINBIO_ID_TYPE_WILDCARD = (WINBIO_IDENTITY_TYPE)1; // The Identity matches "all identities". +const WINBIO_IDENTITY_TYPE WINBIO_ID_TYPE_GUID = (WINBIO_IDENTITY_TYPE)2; // A GUID identifies the template. +const WINBIO_IDENTITY_TYPE WINBIO_ID_TYPE_SID = (WINBIO_IDENTITY_TYPE)3; // An account SID identifies the template. +const WINBIO_IDENTITY_TYPE WINBIO_ID_TYPE_SECURE_ID = (WINBIO_IDENTITY_TYPE)4; // A secure ID identifies the template. + +const ULONG SECURITY_MAX_SID_SIZE = (ULONG)68; +const ULONG WINBIO_IDENTITY_SECURE_ID_SIZE = (ULONG)32; + +typedef union switch(WINBIO_IDENTITY_TYPE Type) _WINBIO_IDENTITY { + case WINBIO_ID_TYPE_NULL: ULONG Null; + case WINBIO_ID_TYPE_WILDCARD: ULONG Wildcard; + case WINBIO_ID_TYPE_GUID: GUID TemplateGuid; + case WINBIO_ID_TYPE_SID: struct { + ULONG Size; + UCHAR Data[SECURITY_MAX_SID_SIZE]; + } AccountSid; + case WINBIO_ID_TYPE_SECURE_ID: UCHAR SecureId[WINBIO_IDENTITY_SECURE_ID_SIZE]; +} WINBIO_IDENTITY; + +#else // MIDL_PASS + +#define WINBIO_ID_TYPE_NULL ((WINBIO_IDENTITY_TYPE)0) // The Identity structure is empty. +#define WINBIO_ID_TYPE_WILDCARD ((WINBIO_IDENTITY_TYPE)1) // The Identity matches "all identities" +#define WINBIO_ID_TYPE_GUID ((WINBIO_IDENTITY_TYPE)2) // A GUID identifies the template. +#define WINBIO_ID_TYPE_SID ((WINBIO_IDENTITY_TYPE)3) // An account SID identifies the template. +#define WINBIO_ID_TYPE_SECURE_ID ((WINBIO_IDENTITY_TYPE)4) // A secure ID identifies the template. + +// +// Structure that contains the identity value associated +// with a biometric template. +// +//#ifndef SECURITY_MAX_SID_SIZE +//#define SECURITY_MAX_SID_SIZE 68 +//#endif +#define WINBIO_IDENTITY_SECURE_ID_SIZE ((ULONG)32) +typedef struct _WINBIO_IDENTITY { + WINBIO_IDENTITY_TYPE Type; + union { + ULONG Null; + ULONG Wildcard; + GUID TemplateGuid; + struct { + ULONG Size; + UCHAR Data[SECURITY_MAX_SID_SIZE]; + } AccountSid; +#if (NTDDI_VERSION >= NTDDI_WIN10_RS4) + UCHAR SecureId[WINBIO_IDENTITY_SECURE_ID_SIZE]; +#endif + } Value; +} WINBIO_IDENTITY; + +#endif // MIDL_PASS + +typedef WINBIO_IDENTITY *PWINBIO_IDENTITY; + +#define WINBIO_IDENTITY_WILDCARD ((ULONG)0x25066282) + + +/////////////////////////////////////////////////////////////////////////////// +// +// Bitmask describing the supported set of biometric types (factors). +// +typedef ULONG32 WINBIO_BIOMETRIC_TYPE, *PWINBIO_BIOMETRIC_TYPE; + +#ifdef MIDL_PASS + +const WINBIO_BIOMETRIC_TYPE WINBIO_STANDARD_TYPE_MASK = (WINBIO_BIOMETRIC_TYPE)0x00FFFFFF; + +const WINBIO_BIOMETRIC_TYPE WINBIO_NO_TYPE_AVAILABLE = (WINBIO_BIOMETRIC_TYPE)0x00000000; + +// +// Standard biometric types (from NISTIR 6529-A) +// +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_MULTIPLE = (WINBIO_BIOMETRIC_TYPE)0x00000001; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_FACIAL_FEATURES = (WINBIO_BIOMETRIC_TYPE)0x00000002; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_VOICE = (WINBIO_BIOMETRIC_TYPE)0x00000004; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_FINGERPRINT = (WINBIO_BIOMETRIC_TYPE)0x00000008; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_IRIS = (WINBIO_BIOMETRIC_TYPE)0x00000010; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_RETINA = (WINBIO_BIOMETRIC_TYPE)0x00000020; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_HAND_GEOMETRY = (WINBIO_BIOMETRIC_TYPE)0x00000040; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_SIGNATURE_DYNAMICS = (WINBIO_BIOMETRIC_TYPE)0x00000080; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_KEYSTROKE_DYNAMICS = (WINBIO_BIOMETRIC_TYPE)0x00000100; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_LIP_MOVEMENT = (WINBIO_BIOMETRIC_TYPE)0x00000200; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_THERMAL_FACE_IMAGE = (WINBIO_BIOMETRIC_TYPE)0x00000400; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_THERMAL_HAND_IMAGE = (WINBIO_BIOMETRIC_TYPE)0x00000800; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_GAIT = (WINBIO_BIOMETRIC_TYPE)0x00001000; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_SCENT = (WINBIO_BIOMETRIC_TYPE)0x00002000; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_DNA = (WINBIO_BIOMETRIC_TYPE)0x00004000; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_EAR_SHAPE = (WINBIO_BIOMETRIC_TYPE)0x00008000; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_FINGER_GEOMETRY = (WINBIO_BIOMETRIC_TYPE)0x00010000; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_PALM_PRINT = (WINBIO_BIOMETRIC_TYPE)0x00020000; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_VEIN_PATTERN = (WINBIO_BIOMETRIC_TYPE)0x00040000; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_FOOT_PRINT = (WINBIO_BIOMETRIC_TYPE)0x00080000; +// +// WinBio extended types +// +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_OTHER = (WINBIO_BIOMETRIC_TYPE)0x40000000; +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_PASSWORD = (WINBIO_BIOMETRIC_TYPE)0x80000000; + +const WINBIO_BIOMETRIC_TYPE WINBIO_TYPE_ANY = (WINBIO_BIOMETRIC_TYPE)(WINBIO_STANDARD_TYPE_MASK | WINBIO_TYPE_OTHER | WINBIO_TYPE_PASSWORD); + +#else // MIDL_PASS + +#define WINBIO_STANDARD_TYPE_MASK ((WINBIO_BIOMETRIC_TYPE)0x00FFFFFF) + +#define WINBIO_NO_TYPE_AVAILABLE ((WINBIO_BIOMETRIC_TYPE)0x00000000) +// +// Standard biometric types (from NISTIR 6529-A) +// +#define WINBIO_TYPE_MULTIPLE ((WINBIO_BIOMETRIC_TYPE)0x00000001) +#define WINBIO_TYPE_FACIAL_FEATURES ((WINBIO_BIOMETRIC_TYPE)0x00000002) +#define WINBIO_TYPE_VOICE ((WINBIO_BIOMETRIC_TYPE)0x00000004) +#define WINBIO_TYPE_FINGERPRINT ((WINBIO_BIOMETRIC_TYPE)0x00000008) +#define WINBIO_TYPE_IRIS ((WINBIO_BIOMETRIC_TYPE)0x00000010) +#define WINBIO_TYPE_RETINA ((WINBIO_BIOMETRIC_TYPE)0x00000020) +#define WINBIO_TYPE_HAND_GEOMETRY ((WINBIO_BIOMETRIC_TYPE)0x00000040) +#define WINBIO_TYPE_SIGNATURE_DYNAMICS ((WINBIO_BIOMETRIC_TYPE)0x00000080) +#define WINBIO_TYPE_KEYSTROKE_DYNAMICS ((WINBIO_BIOMETRIC_TYPE)0x00000100) +#define WINBIO_TYPE_LIP_MOVEMENT ((WINBIO_BIOMETRIC_TYPE)0x00000200) +#define WINBIO_TYPE_THERMAL_FACE_IMAGE ((WINBIO_BIOMETRIC_TYPE)0x00000400) +#define WINBIO_TYPE_THERMAL_HAND_IMAGE ((WINBIO_BIOMETRIC_TYPE)0x00000800) +#define WINBIO_TYPE_GAIT ((WINBIO_BIOMETRIC_TYPE)0x00001000) +#define WINBIO_TYPE_SCENT ((WINBIO_BIOMETRIC_TYPE)0x00002000) +#define WINBIO_TYPE_DNA ((WINBIO_BIOMETRIC_TYPE)0x00004000) +#define WINBIO_TYPE_EAR_SHAPE ((WINBIO_BIOMETRIC_TYPE)0x00008000) +#define WINBIO_TYPE_FINGER_GEOMETRY ((WINBIO_BIOMETRIC_TYPE)0x00010000) +#define WINBIO_TYPE_PALM_PRINT ((WINBIO_BIOMETRIC_TYPE)0x00020000) +#define WINBIO_TYPE_VEIN_PATTERN ((WINBIO_BIOMETRIC_TYPE)0x00040000) +#define WINBIO_TYPE_FOOT_PRINT ((WINBIO_BIOMETRIC_TYPE)0x00080000) +// +// WinBio extended types +// +#define WINBIO_TYPE_OTHER ((WINBIO_BIOMETRIC_TYPE)0x40000000) +#define WINBIO_TYPE_PASSWORD ((WINBIO_BIOMETRIC_TYPE)0x80000000) + +#define WINBIO_TYPE_ANY ((WINBIO_BIOMETRIC_TYPE)(WINBIO_STANDARD_TYPE_MASK | \ + WINBIO_TYPE_OTHER | \ + WINBIO_TYPE_PASSWORD)) + +#endif // MIDL_PASS + +// +// WinBio sensor sub-types. These are defined per Biometric type, and are +// defined only for fingerprints in this version. +// +typedef ULONG WINBIO_BIOMETRIC_SENSOR_SUBTYPE, *PWINBIO_BIOMETRIC_SENSOR_SUBTYPE; + +#define WINBIO_SENSOR_SUBTYPE_UNKNOWN ((WINBIO_BIOMETRIC_SENSOR_SUBTYPE)0x00000000) + +#define WINBIO_FP_SENSOR_SUBTYPE_SWIPE ((WINBIO_BIOMETRIC_SENSOR_SUBTYPE)0x00000001) +#define WINBIO_FP_SENSOR_SUBTYPE_TOUCH ((WINBIO_BIOMETRIC_SENSOR_SUBTYPE)0x00000002) + +// +// Bitmask of sensor capabilities +// +typedef ULONG WINBIO_CAPABILITIES, *PWINBIO_CAPABILITIES; + +#define WINBIO_CAPABILITY_SENSOR ((WINBIO_CAPABILITIES)0x00000001) +#define WINBIO_CAPABILITY_MATCHING ((WINBIO_CAPABILITIES)0x00000002) +#define WINBIO_CAPABILITY_DATABASE ((WINBIO_CAPABILITIES)0x00000004) +#define WINBIO_CAPABILITY_PROCESSING ((WINBIO_CAPABILITIES)0x00000008) +#define WINBIO_CAPABILITY_ENCRYPTION ((WINBIO_CAPABILITIES)0x00000010) +#define WINBIO_CAPABILITY_NAVIGATION ((WINBIO_CAPABILITIES)0x00000020) +#define WINBIO_CAPABILITY_INDICATOR ((WINBIO_CAPABILITIES)0x00000040) + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +#define WINBIO_CAPABILITY_VIRTUAL_SENSOR ((WINBIO_CAPABILITIES)0x00000080) + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS1) + +#define WINBIO_CAPABILITY_SECURE_SENSOR ((WINBIO_CAPABILITIES)0x00000100) + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS1) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +// Secure Connection Protocol (SCP) V1 --> Secure Fingerprints +#define WINBIO_CAPABILITY_SCP_V1 ((WINBIO_CAPABILITIES)0x00000200) + +// Modern standby support +#define WINBIO_CAPABILITY_WAKE ((WINBIO_CAPABILITIES)0x00000400) + +// +// Constants for the SCP V1 protocol +// +typedef USHORT WINBIO_SCP_VERSION; +#define WINBIO_SCP_VERSION_1 1 + +// Sizes for the fixed V1 cipher suite +#define WINBIO_SCP_RANDOM_SIZE_V1 32 +#define WINBIO_SCP_DIGEST_SIZE_V1 32 // SHA256 +#define WINBIO_SCP_CURVE_FIELD_SIZE_V1 32 // NIST P256 +#define WINBIO_SCP_PUBLIC_KEY_SIZE_V1 65 // 0x04||x||y +#define WINBIO_SCP_PRIVATE_KEY_SIZE_V1 32 // log_2(n)/8 +#define WINBIO_SCP_SIGNATURE_SIZE_V1 64 // r||s +#define WINBIO_SCP_ENCRYPTION_BLOCK_SIZE_V1 16 // AES +#define WINBIO_SCP_ENCRYPTION_KEY_SIZE_V1 32 // AES256 + +typedef USHORT WINBIO_SCP_FLAGS; +#define WINBIO_SCP_FLAG_RECONNECT ((WINBIO_SCP_FLAGS)0x0001) + +// +// Secure Connection Protocol structures +// +typedef struct _WINBIO_SECURE_CONNECTION_PARAMS { + DWORD PayloadSize; + WINBIO_SCP_VERSION Version; // WINBIO_SCP_VERSION_1 + WINBIO_SCP_FLAGS Flags; + // Required fields: + // HostRandom[WINBIO_SCP_RANDOM_SIZE_V1]; + // Fields omitted for reconnection: + // PublicKey[WINBIO_SCP_PUBLIC_KEY_SIZE_V1] +} WINBIO_SECURE_CONNECTION_PARAMS, *PWINBIO_SECURE_CONNECTION_PARAMS; + +typedef struct _WINBIO_SECURE_CONNECTION_DATA { + DWORD Size; + WINBIO_SCP_VERSION Version; // WINBIO_SCP_VERSION_1 + WINBIO_SCP_FLAGS Flags; + DWORD ModelCertificateSize; + DWORD IntermediateCA1Size; + DWORD IntermediateCA2Size; + // Required fields: + // Mac[WINBIO_SCP_DIGEST_SIZE_V1]; + // Fields omitted for reconnection: + // DeviceRandom[WINBIO_SCP_RANDOM_SIZE_V1] + // ModelCertificate[ModelCertificateSize] + // DevicePublicKey[WINBIO_SCP_PUBLIC_KEY_SIZE_V1] + // FirmwarePublicKey[WINBIO_SPC_PUBLIC_KEY_SIZE_V1] + // FirmwareHash[WINBIO_SCP_DIGEST_SIZE_V1] + // ModelSignature[WINBIO_SCP_SIGNATURE_SIZE_V1] + // DeviceSignature[WINBIO_SCP_SIGNATURE_SIZE_V1] + // Field required the driver needs to append for full connection: + // IntermediateCA1[IntermediateCA1Size] + // IntermediateCA2[IntermediateCA2Size] +} WINBIO_SECURE_CONNECTION_DATA, *PWINBIO_SECURE_CONNECTION_DATA; + +// +// Values representing the reason the sensor woke the host +// +typedef ULONG WINBIO_WAKE_REASON, *PWINBIO_WAKE_REASON; + +#define WINBIO_WAKE_REASON_UNKNOWN ((WINBIO_WAKE_REASON)0) +#define WINBIO_WAKE_REASON_TOUCH ((WINBIO_WAKE_REASON)1) + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +// +// Values representing the operating status of a sensor +// +typedef ULONG WINBIO_SENSOR_STATUS, *PWINBIO_SENSOR_STATUS; + +#define WINBIO_SENSOR_STATUS_UNKNOWN ((WINBIO_SENSOR_STATUS)0) +#define WINBIO_SENSOR_ACCEPT ((WINBIO_SENSOR_STATUS)1) +#define WINBIO_SENSOR_REJECT ((WINBIO_SENSOR_STATUS)2) +#define WINBIO_SENSOR_READY ((WINBIO_SENSOR_STATUS)3) +#define WINBIO_SENSOR_BUSY ((WINBIO_SENSOR_STATUS)4) +#define WINBIO_SENSOR_NOT_CALIBRATED ((WINBIO_SENSOR_STATUS)5) +#define WINBIO_SENSOR_FAILURE ((WINBIO_SENSOR_STATUS)6) + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +// +// The following only apply to VIRTUAL_SENSOR units +// +#define WINBIO_SENSOR_AVAILABLE ((WINBIO_SENSOR_STATUS)7) +#define WINBIO_SENSOR_UNAVAILABLE ((WINBIO_SENSOR_STATUS)8) + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +// +// Values used to set the indicator on or off +// +// By default, sensors will not have a light on. +// Applications can use these values to enable +// or disable indicator lights on the sensor. +// WINBIO_SENSOR_STATUS will provide more detail +// about the status of the light when it is "on." +// +typedef DWORD WINBIO_INDICATOR_STATUS, *PWINBIO_INDICATOR_STATUS; + +#define WINBIO_INDICATOR_ON ((WINBIO_INDICATOR_STATUS)1) +#define WINBIO_INDICATOR_OFF ((WINBIO_INDICATOR_STATUS)2) + +/////////////////////////////////////////////////////////////////////////////// +// +// Sensor operating modes +// +typedef ULONG WINBIO_SENSOR_MODE, *PWINBIO_SENSOR_MODE; + +#define WINBIO_SENSOR_UNKNOWN_MODE ((WINBIO_SENSOR_MODE)0) +#define WINBIO_SENSOR_BASIC_MODE ((WINBIO_SENSOR_MODE)1) +#define WINBIO_SENSOR_ADVANCED_MODE ((WINBIO_SENSOR_MODE)2) +#define WINBIO_SENSOR_NAVIGATION_MODE ((WINBIO_SENSOR_MODE)3) +#define WINBIO_SENSOR_SLEEP_MODE ((WINBIO_SENSOR_MODE)4) + +/////////////////////////////////////////////////////////////////////////////// +// +// Factor-specific value giving additional information about +// a biometric measurement (e.g., *which* finger a fingerprint +// sample was taken from). +// +typedef UCHAR WINBIO_BIOMETRIC_SUBTYPE, *PWINBIO_BIOMETRIC_SUBTYPE; + +#define WINBIO_SUBTYPE_NO_INFORMATION ((WINBIO_BIOMETRIC_SUBTYPE)0x00) +#define WINBIO_SUBTYPE_ANY ((WINBIO_BIOMETRIC_SUBTYPE)0xFF) +// +// If the biometric type is WINBIO_TYPE_FINGERPRINT, WinBio uses +// 'WINBIO_ANSI_381_POS_xyz' constants to represent fingerprint sub-type +// information. (These are defined below in the WINBIO_BDB_ANSI_381_RECORD.) +// +// If the biometric type is WINBIO_TYPE_FACIAL_FEATURES, WinBio uses +// 'WINBIO_ANSI_385_xyz' constants to represent facial image sub-type +// information. +// + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +/////////////////////////////////////////////////////////////////////////////// +// +// Biometric unit security level +// +typedef ULONG WINBIO_UNIT_SECURITY_LEVEL, *PWINBIO_UNIT_SECURITY_LEVEL; + +#define WINBIO_UNIT_SECURITY_LEVEL_NORMAL ((WINBIO_UNIT_SECURITY_LEVEL)0) +#define WINBIO_UNIT_SECURITY_LEVEL_VBS ((WINBIO_UNIT_SECURITY_LEVEL)1) + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +/////////////////////////////////////////////////////////////////////////////// +// +// Factor-specific value that describes the reason a +// biometric sampling operation failed. +// +typedef ULONG WINBIO_REJECT_DETAIL, *PWINBIO_REJECT_DETAIL; + +#ifndef WINBIO_REJECT_DETAILS_DEFINED +#define WINBIO_REJECT_DETAILS_DEFINED + +// +// Reject detail values for WINBIO_TYPE_FINGERPRINT +// +#define WINBIO_FP_TOO_HIGH ((WINBIO_REJECT_DETAIL)1) +#define WINBIO_FP_TOO_LOW ((WINBIO_REJECT_DETAIL)2) +#define WINBIO_FP_TOO_LEFT ((WINBIO_REJECT_DETAIL)3) +#define WINBIO_FP_TOO_RIGHT ((WINBIO_REJECT_DETAIL)4) +#define WINBIO_FP_TOO_FAST ((WINBIO_REJECT_DETAIL)5) +#define WINBIO_FP_TOO_SLOW ((WINBIO_REJECT_DETAIL)6) +#define WINBIO_FP_POOR_QUALITY ((WINBIO_REJECT_DETAIL)7) +#define WINBIO_FP_TOO_SKEWED ((WINBIO_REJECT_DETAIL)8) +#define WINBIO_FP_TOO_SHORT ((WINBIO_REJECT_DETAIL)9) +#define WINBIO_FP_MERGE_FAILURE ((WINBIO_REJECT_DETAIL)10) + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +// +// REJECT_DETAIL values for IRIS and FACIAL_FEATURES contain multiple fields: +// +// - Flags requesting proof-of-liveness behaviors from the user [0xFF000000] +// - Flags indicating of position errors [0x00FF0000] +// - A (single) enumerated value explaining the reason for the rejection. [0x0000FFFF] +// +// This mask covers the upper 8 bits of the reject detail value, where +// the proof-of-liveness behaviors are located. +// +#define WINBIO_REJECT_DETAIL_ANTI_SPOOF_MASK ((WINBIO_REJECT_DETAIL)0xFF000000) + +// +// Anti-spoofing behaviors... +// +#define WINBIO_ANTI_SPOOF_TURN_SIDE_TO_SIDE ((WINBIO_REJECT_DETAIL)0x01000000) + +// +// This mask covers the range of bits devoted to position errors... +// +#define WINBIO_REJECT_DETAIL_POSITION_MASK ((WINBIO_REJECT_DETAIL)0x00FF0000) + +// +// This mask covers the lower 16 bits, where the enumerated reason for the +// rejection is located. +// +#define WINBIO_REJECT_DETAIL_REASON_MASK ((WINBIO_REJECT_DETAIL)0x0000FFFF) + +// +// Reject detail values for WINBIO_TYPE_IRIS +// +#define WINBIO_IRIS_POOR_QUALITY ((WINBIO_REJECT_DETAIL)1) +#define WINBIO_IRIS_TOO_BRIGHT ((WINBIO_REJECT_DETAIL)2) +#define WINBIO_IRIS_TOO_DARK ((WINBIO_REJECT_DETAIL)3) +#define WINBIO_IRIS_SPOOF_DETECTED ((WINBIO_REJECT_DETAIL)4) +#define WINBIO_IRIS_TOO_SKEWED ((WINBIO_REJECT_DETAIL)5) +#define WINBIO_IRIS_TOO_CLOSED ((WINBIO_REJECT_DETAIL)6) +#define WINBIO_IRIS_GLARE ((WINBIO_REJECT_DETAIL)7) +#define WINBIO_IRIS_DIRTY_LENS ((WINBIO_REJECT_DETAIL)8) +#define WINBIO_IRIS_POOR_FOCUS ((WINBIO_REJECT_DETAIL)9) + +// Camera orientation doesn't match mandatory value in EXTENDED_SENSOR_INFO +#define WINBIO_IRIS_WRONG_ORIENTATION ((WINBIO_REJECT_DETAIL)10) + +// +// Positioning errors... +// +#define WINBIO_IRIS_TOO_HIGH ((WINBIO_REJECT_DETAIL)0x00010000) +#define WINBIO_IRIS_TOO_LOW ((WINBIO_REJECT_DETAIL)0x00020000) +#define WINBIO_IRIS_TOO_LEFT ((WINBIO_REJECT_DETAIL)0x00040000) +#define WINBIO_IRIS_TOO_RIGHT ((WINBIO_REJECT_DETAIL)0x00080000) +#define WINBIO_IRIS_TOO_NEAR ((WINBIO_REJECT_DETAIL)0x00100000) +#define WINBIO_IRIS_TOO_FAR ((WINBIO_REJECT_DETAIL)0x00200000) + +// +// Reject detail values for WINBIO_TYPE_FACIAL_FEATURES +// +#define WINBIO_FACE_POOR_QUALITY ((WINBIO_REJECT_DETAIL)1) +#define WINBIO_FACE_TOO_BRIGHT ((WINBIO_REJECT_DETAIL)2) +#define WINBIO_FACE_TOO_DARK ((WINBIO_REJECT_DETAIL)3) +// +// SPOOF_DETECTED indicates that the recognition component believes the +// face is not live, but is coming from a replayed video feed, a photo, +// or a 3-D sculpture. +// +#define WINBIO_FACE_SPOOF_DETECTED ((WINBIO_REJECT_DETAIL)4) +#define WINBIO_FACE_AMBIGUOUS_TARGET ((WINBIO_REJECT_DETAIL)5) +// WINBIO_FACE_EYES_OCCLUDED is deprecated. Use WINBIO_FACE_OCCLUDED instead +#define WINBIO_FACE_EYES_OCCLUDED ((WINBIO_REJECT_DETAIL)6) +// WINBIO_FACE_OCCLUDED indicates that the user's eyes, mouth or nose are occluded. +// This is create to replace WINBIO_FACE_EYES_OCCLUDED +#define WINBIO_FACE_OCCLUDED ((WINBIO_REJECT_DETAIL)6) + +// Camera orientation doesn't match mandatory value in EXTENDED_SENSOR_INFO +#define WINBIO_FACE_WRONG_ORIENTATION ((WINBIO_REJECT_DETAIL)7) + +// +// Positioning errors... +// +#define WINBIO_FACE_TOO_HIGH ((WINBIO_REJECT_DETAIL)0x00010000) +#define WINBIO_FACE_TOO_LOW ((WINBIO_REJECT_DETAIL)0x00020000) +#define WINBIO_FACE_TOO_LEFT ((WINBIO_REJECT_DETAIL)0x00040000) +#define WINBIO_FACE_TOO_RIGHT ((WINBIO_REJECT_DETAIL)0x00080000) +#define WINBIO_FACE_TOO_NEAR ((WINBIO_REJECT_DETAIL)0x00100000) +#define WINBIO_FACE_TOO_FAR ((WINBIO_REJECT_DETAIL)0x00200000) + +// +// Reject detail values for WINBIO_TYPE_VOICE +// +#define WINBIO_VOICE_POOR_QUALITY ((WINBIO_REJECT_DETAIL)1) +#define WINBIO_VOICE_TOO_SLOW ((WINBIO_REJECT_DETAIL)2) +#define WINBIO_VOICE_TOO_FAST ((WINBIO_REJECT_DETAIL)3) +#define WINBIO_VOICE_NO_KEYWORD ((WINBIO_REJECT_DETAIL)4) +#define WINBIO_VOICE_PROCESSING_ERROR ((WINBIO_REJECT_DETAIL)5) + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +#endif // WINBIO_REJECT_DETAILS_DEFINED + + +/////////////////////////////////////////////////////////////////////////////// +// +// Biometric Information Record (BIR) +// +/////////////////////////////////////////////////////////////////////////////// +// +// +---------------------------------------+ +// 1. | WINBIO_BIR | +// +---------------------------------------+ +// 2. | WINBIO_BIR_HEADER | +// +---------------------------------------+ +// 3. | Standard Data Block (optional) | +// | | +// | WINBIO_BDB_ANSI_381_HEADER | +// | [0] WINBIO_BDB_ANSI_381_RECORD | +// | : | +// | [N] WINBIO_BDB_ANSI_381_RECORD | +// +---------------------------------------+ +// 4. | Vendor Data Block (optional) | +// +---------------------------------------+ +// 5. | Signature Block (optional) | +// +---------------------------------------+ +// +// NOTES: +// - The format of the Standard Data Block is determined +// by the 'BiometricDataFormat' field of WINBIO_BIR_HEADER. +// +// - Currently, the only supported format for the Standard +// Data Block is ANSI 381 fingerprint image data. Data in +// any other form must go into the Vendor Data Block instead. +// +// - It's vital that BIR structures and sub-structures be aligned +// on 8-byte boundaries. This means both C++ and MIDL compilation +// with at least /Zp8 alignment. This also applies to BIRs that +// are allocated dynamically from the heap. +// +#define WINBIO_BIR_ALIGN_SIZE (8) +// +// Also define legacy typo to be synonymous +// +#define WINBIO_BIR_ALGIN_SIZE WINBIO_BIR_ALIGN_SIZE + +// +// The following gives the location and size of a block +// in a BIR. The offset is measured from the beginning of +// the WINBIO_BIR structure. +// +typedef struct _WINBIO_BIR_DATA { + ULONG Size; + ULONG Offset; +} WINBIO_BIR_DATA; + +typedef WINBIO_BIR_DATA *PWINBIO_BIR_DATA; + +// +// Top-level structure contains offset/size +// information needed to find other items. +// +typedef struct _WINBIO_BIR { + WINBIO_BIR_DATA HeaderBlock; + WINBIO_BIR_DATA StandardDataBlock; + WINBIO_BIR_DATA VendorDataBlock; + WINBIO_BIR_DATA SignatureBlock; +} WINBIO_BIR; + +typedef WINBIO_BIR *PWINBIO_BIR; + +/////////////////////////////////////////////////////////////////////////////// +// +// Elements used in a BIR header +// +/////////////////////////////////////////////////////////////////////////////// +// +// BIR 'ValidFields' flags... +// +#define WINBIO_BIR_FIELD_SUBHEAD_COUNT ((USHORT)0x0001) +#define WINBIO_BIR_FIELD_PRODUCT_ID ((USHORT)0x0002) +#define WINBIO_BIR_FIELD_PATRON_ID ((USHORT)0x0004) +#define WINBIO_BIR_FIELD_INDEX ((USHORT)0x0008) + +#define WINBIO_BIR_FIELD_CREATION_DATE ((USHORT)0x0010) +#define WINBIO_BIR_FIELD_VALIDITY_PERIOD ((USHORT)0x0020) +#define WINBIO_BIR_FIELD_BIOMETRIC_TYPE ((USHORT)0x0040) +#define WINBIO_BIR_FIELD_BIOMETRIC_SUBTYPE ((USHORT)0x0080) + +#define WINBIO_BIR_FIELD_CBEFF_HEADER_VERSION ((USHORT)0x0100) +#define WINBIO_BIR_FIELD_PATRON_HEADER_VERSION ((USHORT)0x0200) +#define WINBIO_BIR_FIELD_BIOMETRIC_PURPOSE ((USHORT)0x0400) +#define WINBIO_BIR_FIELD_BIOMETRIC_CONDITION ((USHORT)0x0800) + +#define WINBIO_BIR_FIELD_QUALITY ((USHORT)0x1000) +#define WINBIO_BIR_FIELD_CREATOR ((USHORT)0x2000) +#define WINBIO_BIR_FIELD_CHALLENGE ((USHORT)0x4000) +#define WINBIO_BIR_FIELD_PAYLOAD ((USHORT)0x8000) + +// +// The following collection of optional fields will NEVER be +// part of a WinBio BIR. If any of these bits are asserted, +// the BIR is malformed. +// +#define WINBIO_BIR_FIELD_NEVER_VALID (WINBIO_BIR_FIELD_SUBHEAD_COUNT | \ + WINBIO_BIR_FIELD_PATRON_ID | \ + WINBIO_BIR_FIELD_INDEX | \ + WINBIO_BIR_FIELD_CHALLENGE | \ + WINBIO_BIR_FIELD_PAYLOAD ) + +/////////////////////////////////////////////////////////////////////////////// +// +// BIR 'HeaderVersion' and 'PatronHeaderVersion' fields: +// +// Versions are represented as 8-bit values of the +// form: 0xNM, where 'N' is the major version and 'M' +// is the minor version. +// +typedef UCHAR WINBIO_BIR_VERSION, *PWINBIO_BIR_VERSION; + +#define WINBIO_CBEFF_HEADER_VERSION ((WINBIO_BIR_VERSION)0x11) +#define WINBIO_PATRON_HEADER_VERSION ((WINBIO_BIR_VERSION)0x11) + +/////////////////////////////////////////////////////////////////////////////// +// +// BIR 'DataFlags' field: +// * Security and integrity-checking options +// PRIVACY - BDB is encrypted +// INTEGRITY - BDB is signed or MAC'ed +// SIGNED - 1 -> BDB is signed; 0 -> BDB is MAC'ed +// * Processing level of the data +// +typedef UCHAR WINBIO_BIR_DATA_FLAGS, *PWINBIO_BIR_DATA_FLAGS; + +#define WINBIO_DATA_FLAG_PRIVACY ((UCHAR)0x02) +#define WINBIO_DATA_FLAG_INTEGRITY ((UCHAR)0x01) +#define WINBIO_DATA_FLAG_SIGNED ((UCHAR)0x04) + +#define WINBIO_DATA_FLAG_RAW ((UCHAR)0x20) +#define WINBIO_DATA_FLAG_INTERMEDIATE ((UCHAR)0x40) +#define WINBIO_DATA_FLAG_PROCESSED ((UCHAR)0x80) + +#define WINBIO_DATA_FLAG_OPTION_MASK_PRESENT ((UCHAR)0x08) // Always '1'. + +/////////////////////////////////////////////////////////////////////////////// +// +// BIR 'Purpose' field: +// +// A value defining the purpose for which the BIR +// +// - is intended, when used as input to a WinBio function +// +// - is suitable, when used as output from a WinBio function +// or within a BIR header. +// +// NOTE: +// In a WINBIO BIR, the 'Purpose' field is defined as a set of flag bits +// rather than an enumerated type (as specified in NISTIR 6529-A). Transferring +// a WINBIO BIR to another environment (e.g., BioAPI) will require conversion. +// +// The suggested way to handle this conversion is to generate a set of nested +// BIRs for any WINBIO BIRs that have multiple 'Purpose' bits set. +// +typedef UCHAR WINBIO_BIR_PURPOSE, *PWINBIO_BIR_PURPOSE; + +#define WINBIO_NO_PURPOSE_AVAILABLE ((WINBIO_BIR_PURPOSE)0x00) +#define WINBIO_PURPOSE_VERIFY ((WINBIO_BIR_PURPOSE)0x01) +#define WINBIO_PURPOSE_IDENTIFY ((WINBIO_BIR_PURPOSE)0x02) +#define WINBIO_PURPOSE_ENROLL ((WINBIO_BIR_PURPOSE)0x04) +#define WINBIO_PURPOSE_ENROLL_FOR_VERIFICATION ((WINBIO_BIR_PURPOSE)0x08) +#define WINBIO_PURPOSE_ENROLL_FOR_IDENTIFICATION ((WINBIO_BIR_PURPOSE)0x10) +#define WINBIO_PURPOSE_AUDIT ((WINBIO_BIR_PURPOSE)0x80) + +/////////////////////////////////////////////////////////////////////////////// +// +// BIR 'DataQuality' field: +// +// FIndicates the relative quality of the biometric +// data in the BIR. +// +// Quality measurements are represented as signed +// integers in the range 0-100, except: +// +// -1 Quality measurements are supported by the +// BIR creator, but no value is set in the BIR. +// +// -2 Quality measurements are not supported +// by the BIR creator. +// +typedef CHAR WINBIO_BIR_QUALITY, *PWINBIO_BIR_QUALITY; + +#define WINBIO_DATA_QUALITY_NOT_SET ((WINBIO_BIR_QUALITY)-1) +#define WINBIO_DATA_QUALITY_NOT_SUPPORTED ((WINBIO_BIR_QUALITY)-2) + +/////////////////////////////////////////////////////////////////////////////// +// +// BIR 'BiometricDataFormat' and 'ProductId' fields: +// +// Identifies a registered data format as a pair consisting of +// an IBIA-assigned owner value plus an owner-assigned format-type +// value. +// +typedef struct _WINBIO_REGISTERED_FORMAT { + USHORT Owner; + USHORT Type; +} WINBIO_REGISTERED_FORMAT, *PWINBIO_REGISTERED_FORMAT; + +#define WINBIO_NO_FORMAT_OWNER_AVAILABLE ((USHORT)0) +#define WINBIO_NO_FORMAT_TYPE_AVAILABLE ((USHORT)0) + +/////////////////////////////////////////////////////////////////////////////// +// +// NISTIR 6529-A -- Common Biometric Exchange Formats Framework (CBEFF) +// April 5, 2004 +// +// CBEFF Patron Format A: Standard Biometric Header Block +// +// NOTE: +// This structure is COMPATIBLE with CBEFF Patron Format A in that +// it can be transformed to/from a fully-conformant Format A record. +// The following fields are NOT part of this structure: +// - Subheader -- WinBio doesn't support nested CBEFF structures +// - Patron format owner/type -- used only for nested CBEFF structures +// - Index +// - Creator +// - Challenge/response +// - Payload +// +/////////////////////////////////////////////////////////////////////////////// +typedef struct _WINBIO_BIR_HEADER { + // + // Mask indicating which fields are valid + // + // Annex A -- Note (1) to Table A.1 + // + USHORT ValidFields; + + // + // CBEFF Header version + // + // SECTION 5.2.1.3 + // + WINBIO_BIR_VERSION HeaderVersion; // = WINBIO_CBEFF_HEADER_VERSION + + // + // Patron header version + // + // SECTION 5.2.1.4 + // + WINBIO_BIR_VERSION PatronHeaderVersion; // = WINBIO_PATRON_HEADER_VERSION + + // + // 'DataFlags' is a combination of the 'Security + // Options' field and the 'Biometric Data Type' + // (RAW, INTERMEDIATE,PROCESSED) field. + // + // SECTION 5.2.1.1, 5.2.1.2, and 5.2.1.7 + // + WINBIO_BIR_DATA_FLAGS DataFlags; + + // + // Biometric type + // + // SECTION 5.2.1.5 + // + WINBIO_BIOMETRIC_TYPE Type; + + // + // Biometric subtype + // + // SECTION 5.2.1.6 + // + WINBIO_BIOMETRIC_SUBTYPE Subtype; + + // + // Intended use of the data + // + // SECTION 5.2.1.8 + // + WINBIO_BIR_PURPOSE Purpose; + + // + // Biometric data quality + // + // SECTION 5.2.1.9 + // + WINBIO_BIR_QUALITY DataQuality; + + // + // Creation date and time of this BIR (in UTC) + // + // SECTION 5.2.1.10 + // + LARGE_INTEGER CreationDate; + + // + // Validity period of this BIR (in UTC) + // + // SECTION 5.2.1.11 + // + struct { + LARGE_INTEGER BeginDate; + LARGE_INTEGER EndDate; + } ValidityPeriod; + + /////////////////////////////////////////////////////////////////////////// + // + // Data format of Standard Data Block. + // + // NOTE: If BIR doesn't contain 'StandardDataBlock' + // element, this is set to "no owner/type available". + // + WINBIO_REGISTERED_FORMAT BiometricDataFormat; + + // + // Product identifier for the component that + // generated the 'StandardDataBlock' element. + // + // NOTE: If BIR doesn't contain 'StandardDataBlock' + // element, this is set to "no owner/type available". + // + WINBIO_REGISTERED_FORMAT ProductId; + +} WINBIO_BIR_HEADER; + +typedef WINBIO_BIR_HEADER *PWINBIO_BIR_HEADER; + + +/////////////////////////////////////////////////////////////////////////////// +// +// ANSI INCITS 381-2004 -- Finger Image-Based Data Interchange Format +// +/////////////////////////////////////////////////////////////////////////////// +// +// SECTION 7 -- Registered Format +// +// WINBIO_BIR_HEADER.BiometricDataFormat.Owner = WINBIO_ANSI_381_FORMAT_OWNER +// WINBIO_BIR_HEADER.BiometricDataFormat.Type = WINBIO_ANSI_381_FORMAT_TYPE +// +#define WINBIO_ANSI_381_FORMAT_OWNER ((USHORT)0x001B) // INCITS Technical Committee M1 +#define WINBIO_ANSI_381_FORMAT_TYPE ((USHORT)0x0401) // ANSI-381 + +// +// SECTION 7.1 -- General Record Header +// +typedef struct _WINBIO_BDB_ANSI_381_HEADER { + ULONG64 RecordLength; // Only the low 6 bytes of this number are valid. + // sizeof(WINBIO_BDB_ANSI_381_HEADER) + // + sizeof( all WINBIO_BDB_ANSI_381_RECORD records) + + ULONG FormatIdentifier; // Must be 0x46495200 (ASCII: 'F' 'I' 'R' 0x0) + ULONG VersionNumber; // Must be 0x30313000 (ASCII: '0' '1' '0' 0x0) + + WINBIO_REGISTERED_FORMAT ProductId; + + USHORT CaptureDeviceId; + USHORT ImageAcquisitionLevel; + USHORT HorizontalScanResolution; + USHORT VerticalScanResolution; + USHORT HorizontalImageResolution; + USHORT VerticalImageResolution; + + UCHAR ElementCount; // Number of finger/palm records in the block + UCHAR ScaleUnits; // cm or inch + UCHAR PixelDepth; // 1-16 bits per pixel (2-64K gray levels) + UCHAR ImageCompressionAlg; + + USHORT Reserved; + // 38 bytes (because of unused 2 bytes in ULONG64) vs. 36 bytes defined in ANSI INCITS spec + +} WINBIO_BDB_ANSI_381_HEADER; + +typedef WINBIO_BDB_ANSI_381_HEADER *PWINBIO_BDB_ANSI_381_HEADER; + +// +// SECTION 7.1.6 Image acquistion level +// +// Table 1 -- Image acquistion setting levels +// +#define WINBIO_ANSI_381_IMG_ACQ_LEVEL_10 ((USHORT)10) +#define WINBIO_ANSI_381_IMG_ACQ_LEVEL_20 ((USHORT)20) +#define WINBIO_ANSI_381_IMG_ACQ_LEVEL_30 ((USHORT)30) +#define WINBIO_ANSI_381_IMG_ACQ_LEVEL_31 ((USHORT)31) +#define WINBIO_ANSI_381_IMG_ACQ_LEVEL_40 ((USHORT)40) +#define WINBIO_ANSI_381_IMG_ACQ_LEVEL_41 ((USHORT)41) + +// +// SECTION 7.1.8 -- Scale units +// +#define WINBIO_ANSI_381_PIXELS_PER_INCH ((UCHAR)0x01) +#define WINBIO_ANSI_381_PIXELS_PER_CM ((UCHAR)0x02) + +// +// SECTION 7.1.14 -- Image compression algorithm +// +// Table 3 -- Compression algorithm codes +// +#define WINBIO_ANSI_381_IMG_UNCOMPRESSED ((UCHAR)0) +#define WINBIO_ANSI_381_IMG_BIT_PACKED ((UCHAR)1) +#define WINBIO_ANSI_381_IMG_COMPRESSED_WSQ ((UCHAR)2) +#define WINBIO_ANSI_381_IMG_COMPRESSED_JPEG ((UCHAR)3) +#define WINBIO_ANSI_381_IMG_COMPRESSED_JPEG2000 ((UCHAR)4) +#define WINBIO_ANSI_381_IMG_COMPRESSED_PNG ((UCHAR)5) + +// +// SECTION 7.2 -- Finger Record Header +// +typedef struct _WINBIO_BDB_ANSI_381_RECORD { + ULONG BlockLength; // sizeof(WINBIO_BDB_ANSI_381_RECORD) + // + sizeof(image data) + USHORT HorizontalLineLength; // Number of pixels in a horizontal line + USHORT VerticalLineLength; // Number of horizontal lines in the image + WINBIO_BIOMETRIC_SUBTYPE Position; + UCHAR CountOfViews; // Must be set to one (1) + UCHAR ViewNumber; // Must be set to one (1) + UCHAR ImageQuality; // Reserved -- must be set to 254 (0xFE) + UCHAR ImpressionType; + UCHAR Reserved; // Must be set to zero + // 14 bytes of header data +} WINBIO_BDB_ANSI_381_RECORD; +// +// Followed immediately by compressed/uncompressed image data. +// (Image data must be < 43 * 10^8 bytes in length.) +// + +typedef WINBIO_BDB_ANSI_381_RECORD *PWINBIO_BDB_ANSI_381_RECORD; + +// +// SECTION 7.2.2 -- Finger position codes +// +// Table 5 -- Finger position codes, areas, and maximum dimensions +// +#define WINBIO_ANSI_381_POS_UNKNOWN ((WINBIO_BIOMETRIC_SUBTYPE)0) +#define WINBIO_ANSI_381_POS_RH_THUMB ((WINBIO_BIOMETRIC_SUBTYPE)1) +#define WINBIO_ANSI_381_POS_RH_INDEX_FINGER ((WINBIO_BIOMETRIC_SUBTYPE)2) +#define WINBIO_ANSI_381_POS_RH_MIDDLE_FINGER ((WINBIO_BIOMETRIC_SUBTYPE)3) +#define WINBIO_ANSI_381_POS_RH_RING_FINGER ((WINBIO_BIOMETRIC_SUBTYPE)4) +#define WINBIO_ANSI_381_POS_RH_LITTLE_FINGER ((WINBIO_BIOMETRIC_SUBTYPE)5) +#define WINBIO_ANSI_381_POS_LH_THUMB ((WINBIO_BIOMETRIC_SUBTYPE)6) +#define WINBIO_ANSI_381_POS_LH_INDEX_FINGER ((WINBIO_BIOMETRIC_SUBTYPE)7) +#define WINBIO_ANSI_381_POS_LH_MIDDLE_FINGER ((WINBIO_BIOMETRIC_SUBTYPE)8) +#define WINBIO_ANSI_381_POS_LH_RING_FINGER ((WINBIO_BIOMETRIC_SUBTYPE)9) +#define WINBIO_ANSI_381_POS_LH_LITTLE_FINGER ((WINBIO_BIOMETRIC_SUBTYPE)10) + +#define WINBIO_ANSI_381_POS_RH_FOUR_FINGERS ((WINBIO_BIOMETRIC_SUBTYPE)13) +#define WINBIO_ANSI_381_POS_LH_FOUR_FINGERS ((WINBIO_BIOMETRIC_SUBTYPE)14) +#define WINBIO_ANSI_381_POS_TWO_THUMBS ((WINBIO_BIOMETRIC_SUBTYPE)15) +// +// Table 6 -- Palm codes, areas, and maximum dimensions +// +#define WINBIO_ANSI_381_POS_UNKNOWN_PALM ((WINBIO_BIOMETRIC_SUBTYPE)20) +#define WINBIO_ANSI_381_POS_RH_FULL_PALM ((WINBIO_BIOMETRIC_SUBTYPE)21) +#define WINBIO_ANSI_381_POS_RH_WRITERS_PALM ((WINBIO_BIOMETRIC_SUBTYPE)22) +#define WINBIO_ANSI_381_POS_LH_FULL_PALM ((WINBIO_BIOMETRIC_SUBTYPE)23) +#define WINBIO_ANSI_381_POS_LH_WRITERS_PALM ((WINBIO_BIOMETRIC_SUBTYPE)24) +#define WINBIO_ANSI_381_POS_RH_LOWER_PALM ((WINBIO_BIOMETRIC_SUBTYPE)25) +#define WINBIO_ANSI_381_POS_RH_UPPER_PALM ((WINBIO_BIOMETRIC_SUBTYPE)26) +#define WINBIO_ANSI_381_POS_LH_LOWER_PALM ((WINBIO_BIOMETRIC_SUBTYPE)27) +#define WINBIO_ANSI_381_POS_LH_UPPER_PALM ((WINBIO_BIOMETRIC_SUBTYPE)28) +#define WINBIO_ANSI_381_POS_RH_OTHER ((WINBIO_BIOMETRIC_SUBTYPE)29) +#define WINBIO_ANSI_381_POS_LH_OTHER ((WINBIO_BIOMETRIC_SUBTYPE)30) +#define WINBIO_ANSI_381_POS_RH_INTERDIGITAL ((WINBIO_BIOMETRIC_SUBTYPE)31) +#define WINBIO_ANSI_381_POS_RH_THENAR ((WINBIO_BIOMETRIC_SUBTYPE)32) +#define WINBIO_ANSI_381_POS_RH_HYPOTHENAR ((WINBIO_BIOMETRIC_SUBTYPE)33) +#define WINBIO_ANSI_381_POS_LH_INTERDIGITAL ((WINBIO_BIOMETRIC_SUBTYPE)34) +#define WINBIO_ANSI_381_POS_LH_THENAR ((WINBIO_BIOMETRIC_SUBTYPE)35) +#define WINBIO_ANSI_381_POS_LH_HYPOTHENAR ((WINBIO_BIOMETRIC_SUBTYPE)36) + +// +// SECTION 7.2.6 -- Impression-Type Codes +// +// Table 7 -- Finger and palm impression types +// +#define WINBIO_ANSI_381_IMP_TYPE_LIVE_SCAN_PLAIN ((UCHAR)0) +#define WINBIO_ANSI_381_IMP_TYPE_LIVE_SCAN_ROLLED ((UCHAR)1) +#define WINBIO_ANSI_381_IMP_TYPE_NONLIVE_SCAN_PLAIN ((UCHAR)2) +#define WINBIO_ANSI_381_IMP_TYPE_NONLIVE_SCAN_ROLLED ((UCHAR)3) +#define WINBIO_ANSI_381_IMP_TYPE_LATENT ((UCHAR)7) +#define WINBIO_ANSI_381_IMP_TYPE_SWIPE ((UCHAR)8) +#define WINBIO_ANSI_381_IMP_TYPE_LIVE_SCAN_CONTACTLESS ((UCHAR)9) + + +#if (NTDDI_VERSION >= NTDDI_WIN9) + +// +// Sub-factor values for untagged fingerprints. +// Microsoft-specific extension -- not part of ANSI/ISO standard +// +#define WINBIO_FINGER_UNSPECIFIED_POS_01 ((WINBIO_BIOMETRIC_SUBTYPE)0xF5) +#define WINBIO_FINGER_UNSPECIFIED_POS_02 ((WINBIO_BIOMETRIC_SUBTYPE)0xF6) +#define WINBIO_FINGER_UNSPECIFIED_POS_03 ((WINBIO_BIOMETRIC_SUBTYPE)0xF7) +#define WINBIO_FINGER_UNSPECIFIED_POS_04 ((WINBIO_BIOMETRIC_SUBTYPE)0xF8) +#define WINBIO_FINGER_UNSPECIFIED_POS_05 ((WINBIO_BIOMETRIC_SUBTYPE)0xF9) +#define WINBIO_FINGER_UNSPECIFIED_POS_06 ((WINBIO_BIOMETRIC_SUBTYPE)0xFA) +#define WINBIO_FINGER_UNSPECIFIED_POS_07 ((WINBIO_BIOMETRIC_SUBTYPE)0xFB) +#define WINBIO_FINGER_UNSPECIFIED_POS_08 ((WINBIO_BIOMETRIC_SUBTYPE)0xFC) +#define WINBIO_FINGER_UNSPECIFIED_POS_09 ((WINBIO_BIOMETRIC_SUBTYPE)0xFD) +#define WINBIO_FINGER_UNSPECIFIED_POS_10 ((WINBIO_BIOMETRIC_SUBTYPE)0xFE) + +#endif // (NTDDI_VERSION >= NTDDI_WIN9) + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +// +// Sub-factor values for face recognition, taken from: +// +// ANSI/INCITS 385-2004: "Face Recognition Format for Data Interchange" +// +// 385-2004 defines two types of frontal face images: full resolution and low +// resolution. In practice, WinBio will use only full resolution images for +// face recognition. +// +#define WINBIO_ANSI_385_FACE_TYPE_UNKNOWN ((WINBIO_BIOMETRIC_SUBTYPE)0) +#define WINBIO_ANSI_385_FACE_FRONTAL_FULL ((WINBIO_BIOMETRIC_SUBTYPE)1) +#define WINBIO_ANSI_385_FACE_FRONTAL_TOKEN ((WINBIO_BIOMETRIC_SUBTYPE)2) + +// +// Sub-factor values for iris recognition. +// +// Microsoft-specific extension -- not part of ANSI/ISO standards +// (ANSI/INCITS 379-2004 doesn't define any left/right eye values) +// +#define WINBIO_IRIS_TYPE_UNKNOWN ((WINBIO_BIOMETRIC_SUBTYPE)0) +#define WINBIO_IRIS_LEFT_EYE ((WINBIO_BIOMETRIC_SUBTYPE)0xF5) +#define WINBIO_IRIS_RIGHT_EYE ((WINBIO_BIOMETRIC_SUBTYPE)0xF6) +#define WINBIO_IRIS_UNSPECIFIED_POS_01 ((WINBIO_BIOMETRIC_SUBTYPE)0xF7) +#define WINBIO_IRIS_UNSPECIFIED_POS_02 ((WINBIO_BIOMETRIC_SUBTYPE)0xF8) +#define WINBIO_IRIS_BOTH_EYES ((WINBIO_BIOMETRIC_SUBTYPE)0xF9) +#define WINBIO_IRIS_EITHER_EYE ((WINBIO_BIOMETRIC_SUBTYPE)0xFA) + +// +// Sub-factor values for voice recognition. +// +// Microsoft-specific extension. Each "sub-factor" is a separate utterance. +// +// An enrollment appication can create multiple templates for a single SID, +// each template corresponding to a unique "utterance". The enrollment's +// SubFactor value is used to identify a specific utterance. The SubFactor +// can be any value between WINBIO_VOICE_MIN_UTTERANCE and WINBIO_VOICE_MAX_UTTERANCE. +// After enrollment, WinBioIdentify will return the utterance ID through the +// SubFactor return value. +// +#define WINBIO_VOICE_TYPE_UNKNOWN ((WINBIO_BIOMETRIC_SUBTYPE)0) + +#define WINBIO_VOICE_MIN_UTTERANCE ((WINBIO_BIOMETRIC_SUBTYPE)1) +#define WINBIO_VOICE_MAX_UTTERANCE ((WINBIO_BIOMETRIC_SUBTYPE)32) + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +/////////////////////////////////////////////////////////////////////////////// +// +// Validation header placed at the beginning of every secure buffer. +// +/////////////////////////////////////////////////////////////////////////////// +typedef struct _WINBIO_SECURE_BUFFER_HEADER_V1 { + ULONG Type; // WINBIO_SECURE_BUFFER_TYPE_V1 + ULONG Size; // sizeof(this structure) + ULONG Flags; // Buffer creator must set to zero + ULONGLONG ValidationTag; // Buffer creator must set +} WINBIO_SECURE_BUFFER_HEADER_V1, *PWINBIO_SECURE_BUFFER_HEADER_V1; + +#define WINBIO_SECURE_BUFFER_TYPE_V1 ((ULONG)0xB9BE0001) + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS2 + +// +// Sensor pool type identifiers +// +typedef ULONG WINBIO_POOL_TYPE, *PWINBIO_POOL_TYPE; + +#define WINBIO_POOL_UNKNOWN ((WINBIO_POOL_TYPE)0) +#define WINBIO_POOL_SYSTEM ((WINBIO_POOL_TYPE)1) +#define WINBIO_POOL_PRIVATE ((WINBIO_POOL_TYPE)2) +#define WINBIO_POOL_UNASSIGNED ((WINBIO_POOL_TYPE)3) // Reserved for Microsoft - do not use. + +// +// Specific access rights for Biometric Units +// +#define BIO_UNIT_RAW ((USHORT)0x0001) +#define BIO_UNIT_MAINTENANCE ((USHORT)0x0002) +#define BIO_UNIT_OPEN_SESSION ((USHORT)0x0004) +#define BIO_UNIT_EXTENDED_ACCESS ((USHORT)0x0008) +#define BIO_UNIT_ENROLL ((USHORT)0x0010) + +#if (NTDDI_VERSION >= NTDDI_WIN9) + +#define BIO_UNIT_DELETE_TEMPLATE ((USHORT)0x0020) +#define BIO_UNIT_CONTROL_UNIT ((USHORT)0x0040) + +#endif // (NTDDI_VERSION >= NTDDI_WIN9) + +// +// OpenSession parameter that controls session attributes... +// +typedef ULONG WINBIO_SESSION_FLAGS, *PWINBIO_SESSION_FLAGS; +// +// Sensor configuration flags... +// +#define WINBIO_FLAG_DEFAULT ((WINBIO_SESSION_FLAGS)0x00000000) +#define WINBIO_FLAG_BASIC ((WINBIO_SESSION_FLAGS)((WINBIO_SENSOR_BASIC_MODE & 0xFFFF)<<16)) +#define WINBIO_FLAG_ADVANCED ((WINBIO_SESSION_FLAGS)((WINBIO_SENSOR_ADVANCED_MODE & 0xFFFF)<<16)) +// +// Desired access flags... +// +#define WINBIO_FLAG_RAW ((WINBIO_SESSION_FLAGS)BIO_UNIT_RAW) +#define WINBIO_FLAG_MAINTENANCE ((WINBIO_SESSION_FLAGS)BIO_UNIT_MAINTENANCE) + +// +// Well-known database IDs used by WinBioOpenSession +// +#define WINBIO_DB_DEFAULT ((GUID *)1) +#define WINBIO_DB_BOOTSTRAP ((GUID *)2) +#define WINBIO_DB_ONCHIP ((GUID *)3) + +// +// Identify one of the components in a Biometric Unit's +// processing pipeline (for ControlUnit operations)... +// +typedef ULONG WINBIO_COMPONENT, *PWINBIO_COMPONENT; + +#define WINBIO_COMPONENT_SENSOR ((WINBIO_COMPONENT)1) +#define WINBIO_COMPONENT_ENGINE ((WINBIO_COMPONENT)2) +#define WINBIO_COMPONENT_STORAGE ((WINBIO_COMPONENT)3) + +// +// Event Monitor stuff... +// +typedef ULONG WINBIO_EVENT_TYPE, *PWINBIO_EVENT_TYPE; + +#ifdef MIDL_PASS + +// +// Generic events +// +const WINBIO_EVENT_TYPE WINBIO_EVENT_ERROR = (WINBIO_EVENT_TYPE)0xFFFFFFFF; + +// +// Fingerprint events. +// +const WINBIO_EVENT_TYPE WINBIO_EVENT_FP_UNCLAIMED = (WINBIO_EVENT_TYPE)0x00000001; +const WINBIO_EVENT_TYPE WINBIO_EVENT_FP_UNCLAIMED_IDENTIFY = (WINBIO_EVENT_TYPE)0x00000002; + +typedef union switch(WINBIO_EVENT_TYPE Type) _WINBIO_EVENT { + + case WINBIO_EVENT_FP_UNCLAIMED: struct { + WINBIO_UNIT_ID UnitId; + WINBIO_REJECT_DETAIL RejectDetail; + } Unclaimed; + + case WINBIO_EVENT_FP_UNCLAIMED_IDENTIFY: struct { + WINBIO_UNIT_ID UnitId; + WINBIO_IDENTITY Identity; + WINBIO_BIOMETRIC_SUBTYPE SubFactor; + WINBIO_REJECT_DETAIL RejectDetail; + } UnclaimedIdentify; + + case WINBIO_EVENT_ERROR: struct { + HRESULT ErrorCode; + } Error; +} WINBIO_EVENT, *PWINBIO_EVENT; + +#else // MIDL_PASS + +// +// Generic events +// +#define WINBIO_EVENT_ERROR ((WINBIO_EVENT_TYPE)0xFFFFFFFF) + +// +// Fingerprint events. +// +#define WINBIO_EVENT_FP_UNCLAIMED ((WINBIO_EVENT_TYPE)0x00000001) +#define WINBIO_EVENT_FP_UNCLAIMED_IDENTIFY ((WINBIO_EVENT_TYPE)0x00000002) + + +// +// Event structure passed back to applications. +// +typedef struct _WINBIO_EVENT { + WINBIO_EVENT_TYPE Type; + union { + struct { + WINBIO_UNIT_ID UnitId; + WINBIO_REJECT_DETAIL RejectDetail; + } Unclaimed; + struct { + WINBIO_UNIT_ID UnitId; + WINBIO_IDENTITY Identity; + WINBIO_BIOMETRIC_SUBTYPE SubFactor; + WINBIO_REJECT_DETAIL RejectDetail; + } UnclaimedIdentify; + struct { + HRESULT ErrorCode; + } Error; + } Parameters; +} WINBIO_EVENT, *PWINBIO_EVENT; + +#endif // MIDL_PASS + +#if (NTDDI_VERSION >= NTDDI_WIN9) +// +// Tickets used by data protection and credential release APIs +// +typedef ULONG64 WINBIO_PROTECTION_TICKET, *PWINBIO_PROTECTION_TICKET; + +#endif // (NTDDI_VERSION >= NTDDI_WIN9) + +#define WINBIO_OPAQUE_ENGINE_DATA_ITEM_COUNT ((ULONG)78) // Number of ULONG slots in the array + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +/////////////////////////////////////////////////////////////////////////////// +// +// Items required by the presence-monitoring components +// +/////////////////////////////////////////////////////////////////////////////// +// +// Types of presence-change events recognized by WinBio +// +typedef ULONG WINBIO_PRESENCE_CHANGE, *PWINBIO_PRESENCE_CHANGE; + +#define WINBIO_PRESENCE_CHANGE_TYPE_UNKNOWN ((WINBIO_PRESENCE_CHANGE)0) +#define WINBIO_PRESENCE_CHANGE_TYPE_UPDATE_ALL ((WINBIO_PRESENCE_CHANGE)1) +#define WINBIO_PRESENCE_CHANGE_TYPE_ARRIVE ((WINBIO_PRESENCE_CHANGE)2) +#define WINBIO_PRESENCE_CHANGE_TYPE_RECOGNIZE ((WINBIO_PRESENCE_CHANGE)3) +#define WINBIO_PRESENCE_CHANGE_TYPE_DEPART ((WINBIO_PRESENCE_CHANGE)4) +#define WINBIO_PRESENCE_CHANGE_TYPE_TRACK ((WINBIO_PRESENCE_CHANGE)5) + +#ifdef MIDL_PASS + +// +// Factor-specific extended information about a single presence +// +typedef [switch_type(WINBIO_BIOMETRIC_TYPE)] union _WINBIO_PRESENCE_PROPERTIES { + + [case(WINBIO_NO_TYPE_AVAILABLE)] + ULONG32 Null; + + [case(WINBIO_TYPE_FACIAL_FEATURES)] + struct { + RECT BoundingBox; + LONG Distance; + struct { + WINBIO_UUID AdapterId; + ULONG Data[WINBIO_OPAQUE_ENGINE_DATA_ITEM_COUNT]; + } OpaqueEngineData; + // [...] other face-specific properties + } FacialFeatures; + + [case(WINBIO_TYPE_IRIS)] + struct { + RECT EyeBoundingBox_1; + RECT EyeBoundingBox_2; + POINT PupilCenter_1; + POINT PupilCenter_2; + LONG Distance; + } Iris; +} WINBIO_PRESENCE_PROPERTIES, *PWINBIO_PRESENCE_PROPERTIES; + +// +// A single individual... +// +typedef struct _WINBIO_PRESENCE { + WINBIO_BIOMETRIC_TYPE Factor; + WINBIO_BIOMETRIC_SUBTYPE SubFactor; + HRESULT Status; + WINBIO_REJECT_DETAIL RejectDetail; + WINBIO_IDENTITY Identity; + ULONGLONG TrackingId; + WINBIO_PROTECTION_TICKET Ticket; + [switch_is(Factor)] WINBIO_PRESENCE_PROPERTIES Properties; + struct { + ULONG Size; + UCHAR Data[32]; + } Authorization; +} WINBIO_PRESENCE, *PWINBIO_PRESENCE; + +#else // MIDL_PASS + +typedef union _WINBIO_PRESENCE_PROPERTIES { + struct { + RECT BoundingBox; + LONG Distance; + struct { + WINBIO_UUID AdapterId; + ULONG Data[WINBIO_OPAQUE_ENGINE_DATA_ITEM_COUNT]; + } OpaqueEngineData; + // [...] other face-specific properties + } FacialFeatures; + + struct { + RECT EyeBoundingBox_1; + RECT EyeBoundingBox_2; + POINT PupilCenter_1; + POINT PupilCenter_2; + LONG Distance; + } Iris; + + /* + struct { + WINBIO_COORDINATES Location; + // [...] other voice-specific properties + } Voice; + */ +} WINBIO_PRESENCE_PROPERTIES, *PWINBIO_PRESENCE_PROPERTIES; + +typedef struct _WINBIO_PRESENCE { + WINBIO_BIOMETRIC_TYPE Factor; + WINBIO_BIOMETRIC_SUBTYPE SubFactor; + HRESULT Status; + WINBIO_REJECT_DETAIL RejectDetail; + WINBIO_IDENTITY Identity; + ULONGLONG TrackingId; + WINBIO_PROTECTION_TICKET Ticket; + WINBIO_PRESENCE_PROPERTIES Properties; + struct { + ULONG Size; + UCHAR Data[32]; + } Authorization; +} WINBIO_PRESENCE, *PWINBIO_PRESENCE; + +#endif // MIDL_PASS + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +/////////////////////////////////////////////////////////////////////////////// +// +// Schemata returned by enumeration APIs... +// +/////////////////////////////////////////////////////////////////////////////// +// +// Results from EnumServiceProviders... +// +typedef struct _WINBIO_BSP_SCHEMA { + WINBIO_BIOMETRIC_TYPE BiometricFactor; + WINBIO_UUID BspId; + WINBIO_STRING Description; + WINBIO_STRING Vendor; + WINBIO_VERSION Version; +} WINBIO_BSP_SCHEMA, *PWINBIO_BSP_SCHEMA; + +// +// Results from EnumBiometricUnits... +// +typedef struct _WINBIO_UNIT_SCHEMA { + WINBIO_UNIT_ID UnitId; + WINBIO_POOL_TYPE PoolType; + WINBIO_BIOMETRIC_TYPE BiometricFactor; + WINBIO_BIOMETRIC_SENSOR_SUBTYPE SensorSubType; + WINBIO_CAPABILITIES Capabilities; + WINBIO_STRING DeviceInstanceId; + WINBIO_STRING Description; + WINBIO_STRING Manufacturer; + WINBIO_STRING Model; + WINBIO_STRING SerialNumber; + WINBIO_VERSION FirmwareVersion; +} WINBIO_UNIT_SCHEMA, *PWINBIO_UNIT_SCHEMA; + +/////////////////////////////////////////////////////////////////////////////// +// +// Definitions for the 'Attributes' database value... +// +/////////////////////////////////////////////////////////////////////////////// +#define WINBIO_DATABASE_TYPE_MASK ((ULONG)0x0000FFFF) +// +// Type values... +// +#define WINBIO_DATABASE_TYPE_FILE ((ULONG)0x00000001) +#define WINBIO_DATABASE_TYPE_DBMS ((ULONG)0x00000002) +#define WINBIO_DATABASE_TYPE_ONCHIP ((ULONG)0x00000003) +#define WINBIO_DATABASE_TYPE_SMARTCARD ((ULONG)0x00000004) + +#define WINBIO_DATABASE_FLAG_MASK ((ULONG)0xFFFF0000) +// +// Flag values... +// +#define WINBIO_DATABASE_FLAG_REMOVABLE ((ULONG)0x00010000) +#define WINBIO_DATABASE_FLAG_REMOTE ((ULONG)0x00020000) + +// +// Results from EnumDatabases... +// +typedef struct _WINBIO_STORAGE_SCHEMA { + WINBIO_BIOMETRIC_TYPE BiometricFactor; + WINBIO_UUID DatabaseId; + WINBIO_UUID DataFormat; + ULONG Attributes; + WINBIO_STRING FilePath; + WINBIO_STRING ConnectionString; +} WINBIO_STORAGE_SCHEMA, *PWINBIO_STORAGE_SCHEMA; + +/////////////////////////////////////////////////////////////////////////////// +// +// Bit flags for WinBio framework change notification... +// +typedef ULONG WINBIO_FRAMEWORK_CHANGE_TYPE, *PWINBIO_FRAMEWORK_CHANGE_TYPE; + +#define WINBIO_FRAMEWORK_CHANGE_UNIT ((WINBIO_FRAMEWORK_CHANGE_TYPE)0x00000001) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#define WINBIO_FRAMEWORK_CHANGE_UNIT_STATUS ((WINBIO_FRAMEWORK_CHANGE_TYPE)0x00000002) + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS2 + +/////////////////////////////////////////////////////////////////////////////// +// +// Maximum number of bytes in a single capture... +// + +#ifdef MIDL_PASS + +const ULONG WINBIO_MAX_SAMPLE_BUFFER_SIZE = 0x7FFFFFFF; + +#else // MIDL_PASS + +#define WINBIO_MAX_SAMPLE_BUFFER_SIZE ((ULONG)0x7FFFFFFF) + +#endif // MIDL_PASS + +/////////////////////////////////////////////////////////////////////////////// +// +// Results of asynchronous operations... +// +/////////////////////////////////////////////////////////////////////////////// +// +// Enumeration specifying what kind of operation is being completed... +// +typedef ULONG WINBIO_OPERATION_TYPE, *PWINBIO_OPERATION_TYPE; + +// +// Session-based operations... +// +#define WINBIO_OPERATION_NONE ((WINBIO_OPERATION_TYPE)0) +#define WINBIO_OPERATION_OPEN ((WINBIO_OPERATION_TYPE)1) +#define WINBIO_OPERATION_CLOSE ((WINBIO_OPERATION_TYPE)2) +#define WINBIO_OPERATION_VERIFY ((WINBIO_OPERATION_TYPE)3) +#define WINBIO_OPERATION_IDENTIFY ((WINBIO_OPERATION_TYPE)4) +#define WINBIO_OPERATION_LOCATE_SENSOR ((WINBIO_OPERATION_TYPE)5) +#define WINBIO_OPERATION_ENROLL_BEGIN ((WINBIO_OPERATION_TYPE)6) +#define WINBIO_OPERATION_ENROLL_CAPTURE ((WINBIO_OPERATION_TYPE)7) +#define WINBIO_OPERATION_ENROLL_COMMIT ((WINBIO_OPERATION_TYPE)8) +#define WINBIO_OPERATION_ENROLL_DISCARD ((WINBIO_OPERATION_TYPE)9) +#define WINBIO_OPERATION_ENUM_ENROLLMENTS ((WINBIO_OPERATION_TYPE)10) +#define WINBIO_OPERATION_DELETE_TEMPLATE ((WINBIO_OPERATION_TYPE)11) +#define WINBIO_OPERATION_CAPTURE_SAMPLE ((WINBIO_OPERATION_TYPE)12) +#define WINBIO_OPERATION_GET_PROPERTY ((WINBIO_OPERATION_TYPE)13) +#define WINBIO_OPERATION_SET_PROPERTY ((WINBIO_OPERATION_TYPE)14) +#define WINBIO_OPERATION_GET_EVENT ((WINBIO_OPERATION_TYPE)15) +#define WINBIO_OPERATION_LOCK_UNIT ((WINBIO_OPERATION_TYPE)16) +#define WINBIO_OPERATION_UNLOCK_UNIT ((WINBIO_OPERATION_TYPE)17) +#define WINBIO_OPERATION_CONTROL_UNIT ((WINBIO_OPERATION_TYPE)18) +#define WINBIO_OPERATION_CONTROL_UNIT_PRIVILEGED ((WINBIO_OPERATION_TYPE)19) + +// +// Framework operations... +// +#define WINBIO_OPERATION_OPEN_FRAMEWORK ((WINBIO_OPERATION_TYPE)20) +#define WINBIO_OPERATION_CLOSE_FRAMEWORK ((WINBIO_OPERATION_TYPE)21) +#define WINBIO_OPERATION_ENUM_SERVICE_PROVIDERS ((WINBIO_OPERATION_TYPE)22) +#define WINBIO_OPERATION_ENUM_BIOMETRIC_UNITS ((WINBIO_OPERATION_TYPE)23) +#define WINBIO_OPERATION_ENUM_DATABASES ((WINBIO_OPERATION_TYPE)24) +#define WINBIO_OPERATION_UNIT_ARRIVAL ((WINBIO_OPERATION_TYPE)25) +#define WINBIO_OPERATION_UNIT_REMOVAL ((WINBIO_OPERATION_TYPE)26) + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////////// +// +// Things related to get/set property operations +// +typedef ULONG32 WINBIO_PROPERTY_TYPE, *PWINBIO_PROPERTY_TYPE; + +#define WINBIO_PROPERTY_TYPE_SESSION ((WINBIO_PROPERTY_TYPE)1) +#define WINBIO_PROPERTY_TYPE_UNIT ((WINBIO_PROPERTY_TYPE)2) +#define WINBIO_PROPERTY_TYPE_TEMPLATE ((WINBIO_PROPERTY_TYPE)3) + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +#define WINBIO_PROPERTY_TYPE_ACCOUNT ((WINBIO_PROPERTY_TYPE)4) + +#ifdef MIDL_PASS + +// +// Limit the size of an ingoing property buffer for the server +// +const ULONG WINBIO_MAX_SET_PROPERTY_BUFFER_SIZE = 0x1000; + +#else // MIDL_PASS + +#define WINBIO_MAX_SET_PROPERTY_BUFFER_SIZE ((ULONG)0x1000) + +#endif // MIDL_PASS + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +typedef ULONG32 WINBIO_PROPERTY_ID, *PWINBIO_PROPERTY_ID; + + +/////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_TYPE_SESSION properties... +// +/////////////////////////////////////////////////////////////////////////// +// +// (None) +// + + +/////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_TYPE_UNIT properties... +// +/////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_SAMPLE_HINT +// +// Description: +// Estimate of the maximum number of good biometric +// samples required to complete an enrollment template. +// +// Access: +// Read-only +// +// Inputs: +// SessionHandle - must be valid +// UnitId - must be valid +// Identity - must be NULL +// SubFactor - must be WINBIO_SUBTYPE_NO_INFORMATION +// +// Outputs: +// PropertyBuffer - points to a ULONG buffer containing the hint +// PropertyBufferSize - points to a SIZE_T variable containing sizeof(ULONG) +// +#define WINBIO_PROPERTY_SAMPLE_HINT ((WINBIO_PROPERTY_ID)1) + + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +/////////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_EXTENDED_SENSOR_INFO +// +// Description: +// Returns extended information about the capabilities +// and attributes of the Sensor component connected to +// a specific biometric unit. +// +// Access: +// Read-only +// +// Inputs: +// SessionHandle - must be valid +// UnitId - must be valid +// Identity - must be NULL +// SubFactor - must be WINBIO_SUBTYPE_NO_INFORMATION +// +// Outputs: +// PropertyBuffer - points to a buffer containing a WINBIO_EXTENDED_SENSOR_INFO structure +// PropertyBufferSize - points to a SIZE_T variable containing sizeof(WINBIO_EXTENDED_SENSOR_INFO) +// +#define WINBIO_PROPERTY_EXTENDED_SENSOR_INFO ((WINBIO_PROPERTY_ID)2) + +// +// Enumeration for mandatory orientation... +// +typedef ULONG WINBIO_ORIENTATION, *PWINBIO_ORIENTATION; + +#define WINBIO_ORIENTATION_UNSPECIFIED ((WINBIO_ORIENTATION)0) +#define WINBIO_ORIENTATION_LANDSCAPE ((WINBIO_ORIENTATION)1) +#define WINBIO_ORIENTATION_PORTRAIT ((WINBIO_ORIENTATION)2) +#define WINBIO_ORIENTATION_ANY ((WINBIO_ORIENTATION)3) + +#ifdef MIDL_PASS + +// +// Factor-specific extended information about a single adapter +// +typedef struct _WINBIO_EXTENDED_SENSOR_INFO { + WINBIO_CAPABILITIES GenericSensorCapabilities; + + WINBIO_BIOMETRIC_TYPE Factor; + [switch_is(Factor)] union + { + [case(WINBIO_NO_TYPE_AVAILABLE)] + ULONG32 Null; + + [case(WINBIO_TYPE_FACIAL_FEATURES)] + struct { + RECT FrameSize; // Camera frame size, in pixels; (top, left) fields always (0,0) + POINT FrameOffset; // Offset of face camera frame from video camera, in pixels. (0, 0) indicates complete overlap + WINBIO_ORIENTATION MandatoryOrientation; + struct { + WCHAR ColorSensorId[260]; + WCHAR InfraredSensorId[260]; + UINT32 InfraredSensorRotationAngle; + } HardwareInfo; + } FacialFeatures; + + [case(WINBIO_TYPE_FINGERPRINT)] + struct { + ULONG32 Reserved; // Reserved for future expansion + } Fingerprint; + + [case(WINBIO_TYPE_IRIS)] + struct { + RECT FrameSize; // Iris camera frame size, in pixels; (top, left) fields always (0,0) + POINT FrameOffset; // Offset of iris camera frame from video camera, in pixels. (0, 0) indicates complete overlap + WINBIO_ORIENTATION MandatoryOrientation; + } Iris; + + [case(WINBIO_TYPE_VOICE)] + struct { + ULONG32 Reserved; // Reserved for future expansion + } Voice; + } Specific; +} WINBIO_EXTENDED_SENSOR_INFO, *PWINBIO_EXTENDED_SENSOR_INFO; + +#else // MIDL_PASS + +typedef struct _WINBIO_EXTENDED_SENSOR_INFO { + WINBIO_CAPABILITIES GenericSensorCapabilities; + + WINBIO_BIOMETRIC_TYPE Factor; + union + { + ULONG32 Null; + + struct { + RECT FrameSize; // Camera frame size, in pixels; (top, left) fields always (0,0) + POINT FrameOffset; // Offset of face camera frame from video camera, in pixels. (0, 0) indicates complete overlap + WINBIO_ORIENTATION MandatoryOrientation; + struct { + WCHAR ColorSensorId[260]; + WCHAR InfraredSensorId[260]; + UINT32 InfraredSensorRotationAngle; + } HardwareInfo; + } FacialFeatures; + + struct { + ULONG32 Reserved; // Reserved for future expansion + } Fingerprint; + + struct { + RECT FrameSize; // Iris camera frame size, in pixels; (top, left) fields always (0,0) + POINT FrameOffset; // Offset of iris camera frame from video camera, in pixels. (0, 0) indicates complete overlap + WINBIO_ORIENTATION MandatoryOrientation; + } Iris; + + struct { + ULONG32 Reserved; // Reserved for future expansion + } Voice; + } Specific; +} WINBIO_EXTENDED_SENSOR_INFO, *PWINBIO_EXTENDED_SENSOR_INFO; + +#endif // MIDL_PASS + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +/////////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_EXTENDED_ENGINE_INFO +// +// Description: +// Returns extended information about the capabilities +// and attributes of the Engine component connected to +// a specific biometric unit. +// +// Access: +// Read-only +// +// Inputs: +// SessionHandle - must be valid +// UnitId - must be valid +// Identity - must be NULL +// SubFactor - must be WINBIO_SUBTYPE_NO_INFORMATION +// +// Outputs: +// PropertyBuffer - points to a buffer containing a WINBIO_EXTENDED_ENGINE_INFO structure +// PropertyBufferSize - points to a SIZE_T variable containing sizeof(WINBIO_EXTENDED_ENGINE_INFO) +// +#define WINBIO_PROPERTY_EXTENDED_ENGINE_INFO ((WINBIO_PROPERTY_ID)3) + +// +// Generic Engine Capabilities +// +#define WINBIO_ENG_CAP_ITERATIVE_IMPROVEMENT ((WINBIO_CAPABILITIES)0x00000001) +#define WINBIO_ENG_CAP_SPOOF_DETECTION ((WINBIO_CAPABILITIES)0x00000002) + +#ifdef MIDL_PASS + +typedef struct _WINBIO_EXTENDED_ENGINE_INFO { + WINBIO_CAPABILITIES GenericEngineCapabilities; + + WINBIO_BIOMETRIC_TYPE Factor; + [switch_is(Factor)] union + { + [case(WINBIO_NO_TYPE_AVAILABLE)] + ULONG32 Null; + + [case(WINBIO_TYPE_FACIAL_FEATURES)] + struct { + WINBIO_CAPABILITIES Capabilities; // Reserved for future expansion + struct { + ULONG32 Null; + } EnrollmentRequirements; + } FacialFeatures; + + [case(WINBIO_TYPE_FINGERPRINT)] + struct { + WINBIO_CAPABILITIES Capabilities; // Reserved for future expansion + struct { + ULONG GeneralSamples; + ULONG Center; + ULONG TopEdge; + ULONG BottomEdge; + ULONG LeftEdge; + ULONG RightEdge; + } EnrollmentRequirements; + } Fingerprint; + + [case(WINBIO_TYPE_IRIS)] + struct { + WINBIO_CAPABILITIES Capabilities; // Reserved for future expansion + struct { + ULONG32 Null; + } EnrollmentRequirements; + } Iris; + + [case(WINBIO_TYPE_VOICE)] + struct { + WINBIO_CAPABILITIES Capabilities; // Reserved for future expansion + struct { + ULONG32 Null; + } EnrollmentRequirements; + } Voice; + } Specific; +} WINBIO_EXTENDED_ENGINE_INFO, *PWINBIO_EXTENDED_ENGINE_INFO; + +#else // MIDL_PASS + +typedef struct _WINBIO_EXTENDED_ENGINE_INFO { + WINBIO_CAPABILITIES GenericEngineCapabilities; + + WINBIO_BIOMETRIC_TYPE Factor; + union + { + ULONG32 Null; + + struct { + WINBIO_CAPABILITIES Capabilities; // Reserved for future expansion + struct { + ULONG32 Null; + } EnrollmentRequirements; + } FacialFeatures; + + struct { + WINBIO_CAPABILITIES Capabilities; // Reserved for future expansion + struct { + ULONG GeneralSamples; + ULONG Center; + ULONG TopEdge; + ULONG BottomEdge; + ULONG LeftEdge; + ULONG RightEdge; + } EnrollmentRequirements; + } Fingerprint; + + struct { + WINBIO_CAPABILITIES Capabilities; // Reserved for future expansion + struct { + ULONG32 Null; + } EnrollmentRequirements; + } Iris; + + struct { + WINBIO_CAPABILITIES Capabilities; // Reserved for future expansion + struct { + ULONG32 Null; + } EnrollmentRequirements; + } Voice; + } Specific; +} WINBIO_EXTENDED_ENGINE_INFO, *PWINBIO_EXTENDED_ENGINE_INFO; + +#endif // MIDL_PASS + +/////////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_EXTENDED_STORAGE_INFO +// +// Description: +// Returns extended information about the capabilities +// and attributes of the Storage component connected to +// a specific biometric unit. +// +// Access: +// Read-only +// +// Inputs: +// SessionHandle - must be valid +// UnitId - must be valid +// Identity - must be NULL +// SubFactor - must be WINBIO_SUBTYPE_NO_INFORMATION +// +// Outputs: +// PropertyBuffer - points to a buffer containing a WINBIO_EXTENDED_STORAGE_INFO structure +// PropertyBufferSize - points to a SIZE_T variable containing sizeof(WINBIO_EXTENDED_STORAGE_INFO) +// +#define WINBIO_PROPERTY_EXTENDED_STORAGE_INFO ((WINBIO_PROPERTY_ID)4) + +#ifdef MIDL_PASS + +typedef struct _WINBIO_EXTENDED_STORAGE_INFO { + WINBIO_CAPABILITIES GenericStorageCapabilities; + + WINBIO_BIOMETRIC_TYPE Factor; + [switch_is(Factor)] union + { + [case(WINBIO_NO_TYPE_AVAILABLE)] + ULONG32 Null; + + [case(WINBIO_TYPE_FACIAL_FEATURES)] + struct { + WINBIO_CAPABILITIES Capabilities; + // Reserved for future expansion + } FacialFeatures; + + [case(WINBIO_TYPE_FINGERPRINT)] + struct { + WINBIO_CAPABILITIES Capabilities; + // Reserved for future expansion + } Fingerprint; + + [case(WINBIO_TYPE_IRIS)] + struct { + WINBIO_CAPABILITIES Capabilities; + // Reserved for future expansion + } Iris; + + [case(WINBIO_TYPE_VOICE)] + struct { + WINBIO_CAPABILITIES Capabilities; + // Reserved for future expansion + } Voice; + } Specific; +} WINBIO_EXTENDED_STORAGE_INFO, *PWINBIO_EXTENDED_STORAGE_INFO; + +#else // MIDL_PASS + +typedef struct _WINBIO_EXTENDED_STORAGE_INFO { + WINBIO_CAPABILITIES GenericStorageCapabilities; + + WINBIO_BIOMETRIC_TYPE Factor; + union + { + ULONG32 Null; + + struct { + WINBIO_CAPABILITIES Capabilities; + // Reserved for future expansion + } FacialFeatures; + + struct { + WINBIO_CAPABILITIES Capabilities; + // Reserved for future expansion + } Fingerprint; + + struct { + WINBIO_CAPABILITIES Capabilities; + // Reserved for future expansion + } Iris; + + struct { + WINBIO_CAPABILITIES Capabilities; + // Reserved for future expansion + } Voice; + } Specific; +} WINBIO_EXTENDED_STORAGE_INFO, *PWINBIO_EXTENDED_STORAGE_INFO; + +#endif // MIDL_PASS + +/////////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_EXTENDED_ENROLLMENT_STATUS +// +// Description: +// Returns extended information about the status of an +// in-progress enrollment on a particular biometric unit. +// If no enrollment is in progress on the BU, it returns +// WINBIO_E_INVALID_OPERATION in the 'TemplateStatus' field. +// +// Access: +// Read-only +// +// Inputs: +// SessionHandle - must be valid +// UnitId - must be valid +// Identity - must be NULL +// SubFactor - must be WINBIO_SUBTYPE_NO_INFORMATION +// +// Outputs: +// PropertyBuffer - points to a buffer containing a WINBIO_EXTENDED_ENROLLMENT_STATUS structure +// PropertyBufferSize - points to a SIZE_T variable containing sizeof(WINBIO_EXTENDED_ENROLLMENT_STATUS) +// +#define WINBIO_PROPERTY_EXTENDED_ENROLLMENT_STATUS ((WINBIO_PROPERTY_ID)5) + +#ifdef MIDL_PASS + +typedef struct _WINBIO_EXTENDED_ENROLLMENT_STATUS { + HRESULT TemplateStatus; + WINBIO_REJECT_DETAIL RejectDetail; + ULONG PercentComplete; + + WINBIO_BIOMETRIC_TYPE Factor; + WINBIO_BIOMETRIC_SUBTYPE SubFactor; + [switch_is(Factor)] union + { + [case(WINBIO_NO_TYPE_AVAILABLE)] + ULONG32 Null; + + [case(WINBIO_TYPE_FACIAL_FEATURES)] + struct { + RECT BoundingBox; + LONG Distance; + struct { + WINBIO_UUID AdapterId; + ULONG Data[WINBIO_OPAQUE_ENGINE_DATA_ITEM_COUNT]; + } OpaqueEngineData; + } FacialFeatures; + + [case(WINBIO_TYPE_FINGERPRINT)] + struct { + ULONG GeneralSamples; + ULONG Center; + ULONG TopEdge; + ULONG BottomEdge; + ULONG LeftEdge; + ULONG RightEdge; + } Fingerprint; + + [case(WINBIO_TYPE_IRIS)] + struct { + RECT EyeBoundingBox_1; + RECT EyeBoundingBox_2; + POINT PupilCenter_1; + POINT PupilCenter_2; + LONG Distance; + ULONG GridPointCompletionPercent; + UINT16 GridPointIndex; + struct + { + double X; + double Y; + double Z; + } Point3D; + BOOL StopCaptureAndShowCriticalFeedback; + } Iris; + + [case(WINBIO_TYPE_VOICE)] + struct { + ULONG32 Reserved; // Reserved for future expansion + } Voice; + } Specific; +} WINBIO_EXTENDED_ENROLLMENT_STATUS, *PWINBIO_EXTENDED_ENROLLMENT_STATUS; + +#else // MIDL_PASS + +typedef struct _WINBIO_EXTENDED_ENROLLMENT_STATUS { + HRESULT TemplateStatus; + WINBIO_REJECT_DETAIL RejectDetail; + ULONG PercentComplete; + + WINBIO_BIOMETRIC_TYPE Factor; + WINBIO_BIOMETRIC_SUBTYPE SubFactor; + union + { + ULONG32 Null; + + struct { + RECT BoundingBox; + LONG Distance; + struct { + WINBIO_UUID AdapterId; + ULONG Data[WINBIO_OPAQUE_ENGINE_DATA_ITEM_COUNT]; + } OpaqueEngineData; + } FacialFeatures; + + struct { + ULONG GeneralSamples; + ULONG Center; + ULONG TopEdge; + ULONG BottomEdge; + ULONG LeftEdge; + ULONG RightEdge; + } Fingerprint; + + struct { + RECT EyeBoundingBox_1; + RECT EyeBoundingBox_2; + POINT PupilCenter_1; + POINT PupilCenter_2; + LONG Distance; + ULONG GridPointCompletionPercent; + UINT16 GridPointIndex; + struct + { + double X; + double Y; + double Z; + } Point3D; + BOOL StopCaptureAndShowCriticalFeedback; + } Iris; + + struct { + ULONG32 Reserved; // Reserved for future expansion + } Voice; + } Specific; +} WINBIO_EXTENDED_ENROLLMENT_STATUS, *PWINBIO_EXTENDED_ENROLLMENT_STATUS; + +#endif // MIDL_PASS + +/////////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_EXTENDED_UNIT_STATUS +// +// Description: +// Returns extended information about the current status +// of a specific biometric unit. +// +// Access: +// Read-only +// +// Inputs: +// SessionHandle - must be valid +// UnitId - must be valid +// Identity - must be NULL +// SubFactor - must be WINBIO_SUBTYPE_NO_INFORMATION +// +// Outputs: +// PropertyBuffer - points to a buffer containing a WINBIO_EXTENDED_UNIT_STATUS structure +// PropertyBufferSize - points to a SIZE_T variable containing sizeof(WINBIO_EXTENDED_UNIT_STATUS) +// +#define WINBIO_PROPERTY_EXTENDED_UNIT_STATUS ((WINBIO_PROPERTY_ID)6) + +typedef struct _WINBIO_EXTENDED_UNIT_STATUS { + WINBIO_SENSOR_STATUS Availability; + ULONG ReasonCode; +} WINBIO_EXTENDED_UNIT_STATUS, *PWINBIO_EXTENDED_UNIT_STATUS; + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +/////////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_UNIT_SECURITY_LEVEL +// +// Description: +// Returns the security level a specific biometric unit +// is running as. +// +// Access: +// Read-only +// +// Inputs: +// SessionHandle - must be valid +// UnitId - must be valid +// Identity - must be NULL +// SubFactor - must be WINBIO_SUBTYPE_NO_INFORMATION +// +// Outputs: +// PropertyBuffer - points to a WINBIO_UNIT_SECURITY_LEVEL buffer containing the level +// PropertyBufferSize - points to a SIZE_T variable containing sizeof(WINBIO_UNIT_SECURITY_LEVEL) +// +#define WINBIO_PROPERTY_UNIT_SECURITY_LEVEL ((WINBIO_PROPERTY_ID)7) + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) + +/////////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_FP_BU_STATE +// +// Description: +// Returns information on whether a FP sensor is currently +// attached to the machine, in addition to any relevant FP +// biometric unit (BU) creation error codes. +// +// Access: +// Read-only +// +// Inputs: +// SessionHandle - must be valid +// UnitId - must be zero +// Identity - must be NULL +// SubFactor - must be WINBIO_SUBTYPE_NO_INFORMATION +// +// Outputs: +// PropertyBuffer - points to buffer containing a WINBIO_FP_BU_STATE structure +// PropertyBufferSize - points to a SIZE_T variable containing sizeof(WINBIO_FP_BU_STATE) +// +#define WINBIO_PROPERTY_FP_BU_STATE ((WINBIO_PROPERTY_ID)8) + +typedef struct _WINBIO_FP_BU_STATE { + BOOL SensorAttached; + HRESULT CreationResult; +} WINBIO_FP_BU_STATE, *PWINBIO_FP_BU_STATE; + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) + +/////////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_FP_IS_IMPROVING +// +// Description: +// Returns information on whether a FP sensor is currently +// set to improve recognition through extra enrollment templates. +// Duplicate enrollment records are permitted while this is set. +// +// Access: +// Read-only +// +// Inputs: +// SessionHandle - must be valid +// UnitId - must be valid +// Identity - must be NULL +// SubFactor - must be WINBIO_SUBTYPE_NO_INFORMATION +// +// Outputs: +// PropertyBuffer - points to BOOL buffer containing the improvement status +// PropertyBufferSize - points to a SIZE_T variable containing sizeof(BOOL) +// +#define WINBIO_PROPERTY_FP_IS_IMPROVING ((WINBIO_PROPERTY_ID)9) + +#define WINBIO_OPERATION_IMPROVE_BEGIN ((WINBIO_OPERATION_TYPE)35) +#define WINBIO_OPERATION_IMPROVE_END ((WINBIO_OPERATION_TYPE)36) + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_VB) + +/////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_TYPE_TEMPLATE properties... +// +/////////////////////////////////////////////////////////////////////////// +// +// (None) +// + + +/////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_TYPE_ACCOUNT properties... +// +/////////////////////////////////////////////////////////////////////////// +// +// WINBIO_PROPERTY_ANTI_SPOOF_POLICY +// +// Description: +// Gets or sets the values of the anti-spoofing policy for a +// specific user account. +// +// Performing a 'Get' operation with the wildcard identity returns +// the system default value of this policy. +// +// Access: +// Read/Write +// +// Non-privileged users can only modify their own policy setting. If +// the 'Identity' argument refers to another account -- or contains a +// wildcard identifier value -- WinBioSetProperty will fail. +// +// Inputs: +// SessionHandle - must be valid +// UnitId - must be zero +// Identity - account SID to be queried or changed. If NULL, the +// SID associated with SessionHandle will be used. +// SubFactor - must be WINBIO_SUBTYPE_NO_INFORMATION +// +// Outputs: +// PropertyBuffer - points to a buffer containing a WINBIO_ANTI_SPOOF_POLICY structure +// PropertyBufferSize - points to a SIZE_T variable containing sizeof(WINBIO_ANTI_SPOOF_POLICY) +// +#define WINBIO_PROPERTY_ANTI_SPOOF_POLICY ((WINBIO_PROPERTY_ID)1) + +typedef enum _WINBIO_ANTI_SPOOF_POLICY_ACTION +{ + WINBIO_ANTI_SPOOF_DISABLE = 0x00000000, + WINBIO_ANTI_SPOOF_ENABLE = 0x00000001, + WINBIO_ANTI_SPOOF_REMOVE = 0x00000002, +} WINBIO_ANTI_SPOOF_POLICY_ACTION, *PWINBIO_ANTI_SPOOF_POLICY_ACTION; + +typedef enum _WINBIO_POLICY_SOURCE +{ + WINBIO_POLICY_UNKNOWN = 0x00000000, + WINBIO_POLICY_DEFAULT = 0x00000001, + WINBIO_POLICY_LOCAL = 0x00000002, + WINBIO_POLICY_ADMIN = 0x00000003, +} WINBIO_POLICY_SOURCE, *PWINBIO_POLICY_SOURCE; + + +typedef struct _WINBIO_ANTI_SPOOF_POLICY { + WINBIO_ANTI_SPOOF_POLICY_ACTION Action; + WINBIO_POLICY_SOURCE Source; +} WINBIO_ANTI_SPOOF_POLICY, *PWINBIO_ANTI_SPOOF_POLICY; + + +#if (NTDDI_VERSION >= NTDDI_WIN9) + +/////////////////////////////////////////////////////////////////////////////// +// +// Async ticket operations... +// +/////////////////////////////////////////////////////////////////////////////// +#define WINBIO_OPERATION_IDENTIFY_AND_RELEASE_TICKET ((WINBIO_OPERATION_TYPE)27) +#define WINBIO_OPERATION_VERIFY_AND_RELEASE_TICKET ((WINBIO_OPERATION_TYPE)28) + +#endif // (NTDDI_VERSION >= NTDDI_WIN9) + + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +/////////////////////////////////////////////////////////////////////////////// +// +// Facial features operations... +// +/////////////////////////////////////////////////////////////////////////////// +#define WINBIO_OPERATION_MONITOR_PRESENCE ((WINBIO_OPERATION_TYPE)29) +#define WINBIO_OPERATION_ENROLL_SELECT ((WINBIO_OPERATION_TYPE)30) + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +/////////////////////////////////////////////////////////////////////////////// +// +// Credential management +// +/////////////////////////////////////////////////////////////////////////////// + +typedef enum _WINBIO_CREDENTIAL_TYPE +{ + WINBIO_CREDENTIAL_PASSWORD = 0x00000001, + WINBIO_CREDENTIAL_ALL = 0xffffffff, +} WINBIO_CREDENTIAL_TYPE; + +typedef enum _WINBIO_CREDENTIAL_FORMAT +{ + WINBIO_PASSWORD_GENERIC = 0x00000001, + WINBIO_PASSWORD_PACKED = 0x00000002, + WINBIO_PASSWORD_PROTECTED = 0x00000003, +} WINBIO_CREDENTIAL_FORMAT; + +typedef enum _WINBIO_CREDENTIAL_STATE { + WINBIO_CREDENTIAL_NOT_SET = 0x00000001, + WINBIO_CREDENTIAL_SET = 0x00000002, +} WINBIO_CREDENTIAL_STATE, *PWINBIO_CREDENTIAL_STATE; + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////////// +// +// Settings +// +/////////////////////////////////////////////////////////////////////////////// + +typedef ULONG32 WINBIO_SETTING_SOURCE_TYPE, *PWINBIO_SETTING_SOURCE_TYPE; + +#define WINBIO_SETTING_SOURCE_INVALID ((WINBIO_SETTING_SOURCE_TYPE)0) +#define WINBIO_SETTING_SOURCE_DEFAULT ((WINBIO_SETTING_SOURCE_TYPE)1) +#define WINBIO_SETTING_SOURCE_POLICY ((WINBIO_SETTING_SOURCE_TYPE)2) +#define WINBIO_SETTING_SOURCE_LOCAL ((WINBIO_SETTING_SOURCE_TYPE)3) + +typedef ULONG32 WINBIO_SETTING_TYPE, *PWINBIO_SETTING_TYPE; + +#define WINBIO_SETTING_TYPE_PERIPHERALS_WITH_ESS ((WINBIO_SETTING_TYPE)0) +#define WINBIO_SETTING_TYPE_ESS_ENABLED ((WINBIO_SETTING_TYPE)1) + +typedef struct _WINBIO_EXTENDED_ENROLLMENT_PARAMETERS { + SIZE_T Size; + WINBIO_BIOMETRIC_SUBTYPE SubFactor; +} WINBIO_EXTENDED_ENROLLMENT_PARAMETERS, *PWINBIO_EXTENDED_ENROLLMENT_PARAMETERS; + +typedef struct _WINBIO_ACCOUNT_POLICY { + WINBIO_IDENTITY Identity; + WINBIO_ANTI_SPOOF_POLICY_ACTION AntiSpoofBehavior; +} WINBIO_ACCOUNT_POLICY, *PWINBIO_ACCOUNT_POLICY; + + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#define WINBIO_OPERATION_ENROLL_AUTHORIZE ((WINBIO_OPERATION_TYPE)31) +#define WINBIO_OPERATION_ENROLL_REVOKE ((WINBIO_OPERATION_TYPE)32) +#define WINBIO_OPERATION_GET_PROTECTION_POLICY ((WINBIO_OPERATION_TYPE)33) + +typedef struct _WINBIO_PROTECTION_POLICY +{ + ULONG Version; + WINBIO_IDENTITY Identity; + WINBIO_UUID DatabaseId; + ULONGLONG UserState; + SIZE_T PolicySize; + UCHAR Policy[128]; +} WINBIO_PROTECTION_POLICY, *PWINBIO_PROTECTION_POLICY; + +typedef ULONG32 WINBIO_MATCH_TYPE, *PWINBIO_MATCH_TYPE; + +#define WINBIO_MATCH_SOFTWARE ((WINBIO_MATCH_TYPE)1) +#define WINBIO_MATCH_TRUSTED_EXECUTION_ENVIRONMENT ((WINBIO_MATCH_TYPE)2) +#define WINBIO_MATCH_ON_CHIP ((WINBIO_MATCH_TYPE)3) + +typedef ULONG32 WINBIO_PROTECTION_TYPE, *PWINBIO_PROTECTION_TYPE; + +#define WINBIO_PROTECTION_SOFTWARE ((WINBIO_PROTECTION_TYPE)1) +#define WINBIO_PROTECTION_TRUSTED_EXECUTION_ENVIRONMENT ((WINBIO_PROTECTION_TYPE)2) + +typedef struct _WINBIO_GESTURE_METADATA +{ + SIZE_T Size; + WINBIO_BIOMETRIC_TYPE BiometricType; + WINBIO_MATCH_TYPE MatchType; + WINBIO_PROTECTION_TYPE ProtectionType; +} WINBIO_GESTURE_METADATA, *PWINBIO_GESTURE_METADATA; + +// +// Framework operation - async unit status update notification... +// +#define WINBIO_OPERATION_NOTIFY_UNIT_STATUS_CHANGE ((WINBIO_OPERATION_TYPE)34) + +typedef ULONG32 WINBIO_TELEMETRY_TYPE, *PWINBIO_TELEMETRY_TYPE; + +#define WINBIO_TELEMETRY_AUTH ((WINBIO_TELEMETRY_TYPE)1) +#define WINBIO_TELEMETRY_ENROLLMENT ((WINBIO_TELEMETRY_TYPE)2) + + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +#ifdef MIDL_PASS + +// +// Limit the size of vendor-specific type info about a sensor to 4K +// +const ULONG WINBIO_MAX_PRIVATE_SENSOR_TYPE_INFO_BUFFER_SIZE = 0x1000; + +#else // MIDL_PASS + +#define WINBIO_MAX_PRIVATE_SENSOR_TYPE_INFO_BUFFER_SIZE ((ULONG)0x1000) + +#endif // MIDL_PASS + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +# if (NTDDI_VERSION >= NTDDI_WIN11_GE) + +/////////////////////////////////////////////////////////////////////////////// +// +// Ess state query +// +/////////////////////////////////////////////////////////////////////////////// + +typedef ULONG64 WINBIO_ESS_STATE, *PWINBIO_ESS_STATE; + +enum WINBIO_ESS_STATE_FLAGS +{ + // This PC does not have TPM 2.0 + WINBIO_ESS_REQUIRES_TPM2 = 0x00000001, + + // This PC is not VBS capable. + WINBIO_ESS_REQUIRES_VBS_CAPABLE = 0x00000002, + + // This PC has a Windows Hello container not backed by VBS. + WINBIO_ESS_REQUIRES_NON_VBS_WINDOWS_HELLO_ABSENCE = 0x00000004, + + // This PC does not have a Windows Hello container backed by VBS. + WINBIO_ESS_REQUIRES_VBS_WINDOWS_HELLO = 0x00000008, + + // This PC does not have VBS running. + WINBIO_ESS_REQUIRES_VBS_RUNNING = 0x00000010, + + // This PC is missing VBS encryption keys. + WINBIO_ESS_REQUIRES_VBS_ENCRYPTION_KEY = 0x00000020, + + // On this PC, ESS is disabled either using a "Enhanced Sign-in Security" toggle in Accounts -> Sign-in options under "Additional settings" or + // using a policy. + // By default following flag will not be set. + WINBIO_ESS_REQUIRES_ENABLEMENT = 0x00000040, + + // On this PC, ESS is managed using a policy available through group policy or MDM policy. + // MDM policy: ./Device/Vendor/MSFT/PassportForWork/Biometrics/EnableESSwithSupportedPeripherals + // Group policy: Computer Configuration\Administrative Templates\Windows Components\Windows Hello for Business\Enable ESS with Supported Peripherals + WINBIO_ESS_MANAGED_BY_POLICY = 0x00000080, + + // This PC contains enrollments performed using biometric sensors that are not ESS-capable. + WINBIO_ESS_REQUIRES_NON_VBS_BIOMETRIC_ENROLLMENT_ABSENCE = 0x00000100, + + // This PC does not have enrollments performed using ESS capable biometric sensors. + WINBIO_ESS_REQUIRES_VBS_BIOMETRIC_ENROLLMENT = 0x00000200, + + // This PC does not have a ESS capable face camera sensor. + WINBIO_ESS_REQUIRES_FACE_SENSOR = 0x00000400, + + // This PC does not have a ESS FPR sensor. + WINBIO_ESS_REQUIRES_FPR_SENSOR = 0x00000800, + + // This PC could not start biometrics trustlet needed for ESS. + WINBIO_ESS_REQUIRES_ISOLATED_PROCESS = 0x00001000, + + // This PC blocked non-ESS capable fingerprint sensor. + WINBIO_ESS_BLOCKED_NON_ESS_FPR = 0x00002000, + + // This PC blocked non-ESS capable face camera sensor. + WINBIO_ESS_BLOCKED_NON_ESS_CAMERA = 0x00004000, + + // This PC's ESS state is determined based on if they have non ESS enrollments + WINBIO_ESS_SOURCE_DEFAULT = 0x00008000 +}; + +// Returns biometric capable sensor type connected to the PC. +typedef struct _WINBIO_CONNECTED_SENSOR +{ + WINBIO_BIOMETRIC_TYPE biometricType; + BOOL isEnhancedSignInSecurityCapable; +} WINBIO_CONNECTED_SENSOR, *PWINBIO_CONNECTED_SENSOR; + +#endif // (NTDDI_VERSION >= NTDDI_WIN11_GE) + +#ifdef __cplusplus +} // extern "C" +#endif + +#pragma warning( pop ) + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#endif // _WINBIO_TYPES_H_712486DB_3EF5_41da_937A_55DCB7B66A53_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windef.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windef.h new file mode 100644 index 0000000000000000000000000000000000000000..cdc03d4897b9e4b52a13307b570a6eba7b83e3f9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windef.h @@ -0,0 +1,280 @@ +#include + +/**************************************************************************** +* * +* windef.h -- Basic Windows Type Definitions * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +****************************************************************************/ + + +#ifndef _WINDEF_ +#define _WINDEF_ +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef _M_CEE_PURE +#define WINAPI_INLINE __clrcall +#endif + +#include + +#ifndef WINVER +#define WINVER 0x0500 +#endif /* WINVER */ + +#ifndef NT_INCLUDED +#include +#endif /* NT_INCLUDED */ + +#ifndef WIN_INTERNAL + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +DECLARE_HANDLE (HWND); +DECLARE_HANDLE (HHOOK); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#ifdef WINABLE + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +DECLARE_HANDLE (HEVENT); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif +#endif + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if !defined(_MAC) || !defined(GDI_INTERNAL) +#ifdef STRICT +typedef void NEAR* HGDIOBJ; +#else +DECLARE_HANDLE(HGDIOBJ); +#endif +#endif + +#if !defined(_MAC) || !defined(WIN_INTERNAL) +DECLARE_HANDLE(HACCEL); +#endif +#if !defined(_MAC) || !defined(GDI_INTERNAL) +DECLARE_HANDLE(HBITMAP); +DECLARE_HANDLE(HBRUSH); +#endif +#if(WINVER >= 0x0400) +DECLARE_HANDLE(HCOLORSPACE); +#endif /* WINVER >= 0x0400 */ +#if !defined(_MAC) || !defined(GDI_INTERNAL) +DECLARE_HANDLE(HDC); +#endif +DECLARE_HANDLE(HGLRC); // OpenGL +DECLARE_HANDLE(HDESK); +DECLARE_HANDLE(HENHMETAFILE); +#if !defined(_MAC) || !defined(GDI_INTERNAL) +DECLARE_HANDLE(HFONT); +#endif +DECLARE_HANDLE(HICON); +#if !defined(_MAC) || !defined(WIN_INTERNAL) +DECLARE_HANDLE(HMENU); +#endif +#if !defined(_MAC) || !defined(GDI_INTERNAL) +DECLARE_HANDLE(HPALETTE); +DECLARE_HANDLE(HPEN); +#endif + +#if(WINVER >= 0x0400) +DECLARE_HANDLE(HWINEVENTHOOK); +#endif /* WINVER >= 0x0400 */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#if(WINVER >= 0x0500) +#ifndef _MAC + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +DECLARE_HANDLE(HMONITOR); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +DECLARE_HANDLE(HUMPD); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* WINVER >= 0x0500 */ + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#ifndef _MAC +typedef HICON HCURSOR; /* HICONs & HCURSORs are polymorphic */ +#else +DECLARE_HANDLE(HCURSOR); /* HICONs & HCURSORs are not polymorphic */ +#endif + +typedef DWORD COLORREF; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef DWORD *LPCOLORREF; + +#define HFILE_ERROR ((HFILE)-1) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Application Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +typedef struct tagRECT +{ + LONG left; + LONG top; + LONG right; + LONG bottom; +} RECT, *PRECT, NEAR *NPRECT, FAR *LPRECT; + +typedef const RECT FAR* LPCRECT; + +typedef struct _RECTL /* rcl */ +{ + LONG left; + LONG top; + LONG right; + LONG bottom; +} RECTL, *PRECTL, *LPRECTL; + +typedef const RECTL FAR* LPCRECTL; + +typedef struct tagPOINT +{ + LONG x; + LONG y; +} POINT, *PPOINT, NEAR *NPPOINT, FAR *LPPOINT; + +typedef struct _POINTL /* ptl */ +{ + LONG x; + LONG y; +} POINTL, *PPOINTL; + +typedef struct tagSIZE +{ + LONG cx; + LONG cy; +} SIZE, *PSIZE, *LPSIZE; + +typedef SIZE SIZEL; +typedef SIZE *PSIZEL, *LPSIZEL; + +typedef struct tagPOINTS +{ +#ifndef _MAC + SHORT x; + SHORT y; +#else + SHORT y; + SHORT x; +#endif +} POINTS, *PPOINTS, *LPPOINTS; + +#define APP_LOCAL_DEVICE_ID_SIZE 32 +typedef struct APP_LOCAL_DEVICE_ID +{ + BYTE value[APP_LOCAL_DEVICE_ID_SIZE]; +} APP_LOCAL_DEVICE_ID; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +/* mode selections for the device mode function */ +#define DM_UPDATE 1 +#define DM_COPY 2 +#define DM_PROMPT 4 +#define DM_MODIFY 8 + +#define DM_IN_BUFFER DM_MODIFY +#define DM_IN_PROMPT DM_PROMPT +#define DM_OUT_BUFFER DM_COPY +#define DM_OUT_DEFAULT DM_UPDATE + +/* device capabilities indices */ +#define DC_FIELDS 1 +#define DC_PAPERS 2 +#define DC_PAPERSIZE 3 +#define DC_MINEXTENT 4 +#define DC_MAXEXTENT 5 +#define DC_BINS 6 +#define DC_DUPLEX 7 +#define DC_SIZE 8 +#define DC_EXTRA 9 +#define DC_VERSION 10 +#define DC_DRIVER 11 +#define DC_BINNAMES 12 +#define DC_ENUMRESOLUTIONS 13 +#define DC_FILEDEPENDENCIES 14 +#define DC_TRUETYPE 15 +#define DC_PAPERNAMES 16 +#define DC_ORIENTATION 17 +#define DC_COPIES 18 + +#ifdef __cplusplus +} +#endif + +#pragma region Desktop Family + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define _DPI_AWARENESS_CONTEXTS_ + +DECLARE_HANDLE(DPI_AWARENESS_CONTEXT); + +typedef enum DPI_AWARENESS { + DPI_AWARENESS_INVALID = -1, + DPI_AWARENESS_UNAWARE = 0, + DPI_AWARENESS_SYSTEM_AWARE = 1, + DPI_AWARENESS_PER_MONITOR_AWARE = 2 +} DPI_AWARENESS; + +#define DPI_AWARENESS_CONTEXT_UNAWARE ((DPI_AWARENESS_CONTEXT)-1) +#define DPI_AWARENESS_CONTEXT_SYSTEM_AWARE ((DPI_AWARENESS_CONTEXT)-2) +#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE ((DPI_AWARENESS_CONTEXT)-3) +#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((DPI_AWARENESS_CONTEXT)-4) +#define DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED ((DPI_AWARENESS_CONTEXT)-5) + +typedef enum DPI_HOSTING_BEHAVIOR { + DPI_HOSTING_BEHAVIOR_INVALID = -1, + DPI_HOSTING_BEHAVIOR_DEFAULT = 0, + DPI_HOSTING_BEHAVIOR_MIXED = 1 +} DPI_HOSTING_BEHAVIOR; + +#endif + +#endif /* _WINDEF_ */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windnsdef.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windnsdef.h new file mode 100644 index 0000000000000000000000000000000000000000..d12c2ad95cf73490696bdc40b8682190107598fc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windnsdef.h @@ -0,0 +1,1693 @@ +/*++ + +Copyright (2024) Microsoft. All rights reserved. + +Module Name: + + windnsdef.h + +Abstract: + + Domain Name System (DNS) definitions. + +Revision History: + +--*/ + + +#ifndef _WINDNSDEF_INCLUDED_ +#define _WINDNSDEF_INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#ifdef __cplusplus +extern "C" { +#endif + + +#ifndef QWORD +typedef unsigned __int64 QWORD, *PQWORD; +#endif + +// +// IP Address +// + +typedef DWORD IP4_ADDRESS, *PIP4_ADDRESS; + +#define SIZEOF_IP4_ADDRESS (4) +#define IP4_ADDRESS_STRING_LENGTH (16) + +// Backcompat only -- length def contains terminating NULL + +#define IP4_ADDRESS_STRING_BUFFER_LENGTH (16) + +// +// IPv6 Address +// + +#ifdef MIDL_PASS + +#ifdef _WIN64 +#pragma pack(push, 8) +#else +#pragma pack(push, 4) +#endif + +typedef struct +{ + QWORD IP6Qword[2]; +} +IP6_ADDRESS, *PIP6_ADDRESS; + +#pragma pack(pop) + +#else // MIDL_PASS + +typedef union +{ +#ifdef _WIN64 + QWORD IP6Qword[2]; +#endif + DWORD IP6Dword[4]; + WORD IP6Word[8]; + BYTE IP6Byte[16]; +#ifdef IN6_ADDR + IN6_ADDR In6; +#endif +} +IP6_ADDRESS, *PIP6_ADDRESS; + +#endif // MIDL_PASS + +#define DNS_ADDR_MAX_SOCKADDR_LENGTH (32) + +// +// DNS Message Header +// + +typedef struct _DNS_HEADER_EXT +{ + WORD Reserved : 15; + WORD DnssecOk : 1; + BYTE chRcode; + BYTE chVersion; +} +DNS_HEADER_EXT, *PDNS_HEADER_EXT; + +// +// DNS Record Types +// +// _TYPE_ defines are in host byte order. +// _RTYPE_ defines are in net byte order. +// +// Generally always deal with types in host byte order as we index +// resource record functions by type. +// + +#define DNS_TYPE_ZERO 0x0000 + +// RFC 1034/1035 +#define DNS_TYPE_A 0x0001 // 1 +#define DNS_TYPE_NS 0x0002 // 2 +#define DNS_TYPE_MD 0x0003 // 3 +#define DNS_TYPE_MF 0x0004 // 4 +#define DNS_TYPE_CNAME 0x0005 // 5 +#define DNS_TYPE_SOA 0x0006 // 6 +#define DNS_TYPE_MB 0x0007 // 7 +#define DNS_TYPE_MG 0x0008 // 8 +#define DNS_TYPE_MR 0x0009 // 9 +#define DNS_TYPE_NULL 0x000a // 10 +#define DNS_TYPE_WKS 0x000b // 11 +#define DNS_TYPE_PTR 0x000c // 12 +#define DNS_TYPE_HINFO 0x000d // 13 +#define DNS_TYPE_MINFO 0x000e // 14 +#define DNS_TYPE_MX 0x000f // 15 +#define DNS_TYPE_TEXT 0x0010 // 16 + +// RFC 1183 +#define DNS_TYPE_RP 0x0011 // 17 +#define DNS_TYPE_AFSDB 0x0012 // 18 +#define DNS_TYPE_X25 0x0013 // 19 +#define DNS_TYPE_ISDN 0x0014 // 20 +#define DNS_TYPE_RT 0x0015 // 21 + +// RFC 1348 +#define DNS_TYPE_NSAP 0x0016 // 22 +#define DNS_TYPE_NSAPPTR 0x0017 // 23 + +// RFC 2065 (DNS security) +#define DNS_TYPE_SIG 0x0018 // 24 +#define DNS_TYPE_KEY 0x0019 // 25 + +// RFC 1664 (X.400 mail) +#define DNS_TYPE_PX 0x001a // 26 + +// RFC 1712 (Geographic position) +#define DNS_TYPE_GPOS 0x001b // 27 + +// RFC 1886 (IPv6 Address) +#define DNS_TYPE_AAAA 0x001c // 28 + +// RFC 1876 (Geographic location) +#define DNS_TYPE_LOC 0x001d // 29 + +// RFC 2065 (Secure negative response) +#define DNS_TYPE_NXT 0x001e // 30 + +// Patton (Endpoint Identifier) +#define DNS_TYPE_EID 0x001f // 31 + +// Patton (Nimrod Locator) +#define DNS_TYPE_NIMLOC 0x0020 // 32 + +// RFC 2052 (Service location) +#define DNS_TYPE_SRV 0x0021 // 33 + +// ATM Standard something-or-another (ATM Address) +#define DNS_TYPE_ATMA 0x0022 // 34 + +// RFC 2168 (Naming Authority Pointer) +#define DNS_TYPE_NAPTR 0x0023 // 35 + +// RFC 2230 (Key Exchanger) +#define DNS_TYPE_KX 0x0024 // 36 + +// RFC 2538 (CERT) +#define DNS_TYPE_CERT 0x0025 // 37 + +// A6 Draft (A6) +#define DNS_TYPE_A6 0x0026 // 38 + +// DNAME Draft (DNAME) +#define DNS_TYPE_DNAME 0x0027 // 39 + +// Eastlake (Kitchen Sink) +#define DNS_TYPE_SINK 0x0028 // 40 + +// RFC 2671 (EDNS OPT) +#define DNS_TYPE_OPT 0x0029 // 41 + +// RFC 4034 (DNSSEC DS) +#define DNS_TYPE_DS 0x002b // 43 + +// RFC 4034 (DNSSEC RRSIG) +#define DNS_TYPE_RRSIG 0x002e // 46 + +// RFC 4034 (DNSSEC NSEC) +#define DNS_TYPE_NSEC 0x002f // 47 + +// RFC 4034 (DNSSEC DNSKEY) +#define DNS_TYPE_DNSKEY 0x0030 // 48 + +// RFC 4701 (DHCID) +#define DNS_TYPE_DHCID 0x0031 // 49 + +// RFC 5155 (DNSSEC NSEC3) +#define DNS_TYPE_NSEC3 0x0032 // 50 + +// RFC 5155 (DNSSEC NSEC3PARAM) +#define DNS_TYPE_NSEC3PARAM 0x0033 // 51 + +// RFC 6698 (TLSA) +#define DNS_TYPE_TLSA 0x0034 // 52 + +// draft-ietf-dnsop-svcb-https +#define DNS_TYPE_SVCB 0x0040 // 64 + +// draft-ietf-dnsop-svcb-https +#define DNS_TYPE_HTTPS 0x0041 // 65 + +// +// IANA Reserved +// + +#define DNS_TYPE_UINFO 0x0064 // 100 +#define DNS_TYPE_UID 0x0065 // 101 +#define DNS_TYPE_GID 0x0066 // 102 +#define DNS_TYPE_UNSPEC 0x0067 // 103 + +// +// Query only types (1035, 1995) +// - Crawford (ADDRS) +// - TKEY draft (TKEY) +// - TSIG draft (TSIG) +// - RFC 1995 (IXFR) +// - RFC 1035 (AXFR up) +// + +#define DNS_TYPE_ADDRS 0x00f8 // 248 +#define DNS_TYPE_TKEY 0x00f9 // 249 +#define DNS_TYPE_TSIG 0x00fa // 250 +#define DNS_TYPE_IXFR 0x00fb // 251 +#define DNS_TYPE_AXFR 0x00fc // 252 +#define DNS_TYPE_MAILB 0x00fd // 253 +#define DNS_TYPE_MAILA 0x00fe // 254 +#define DNS_TYPE_ALL 0x00ff // 255 +#define DNS_TYPE_ANY 0x00ff // 255 + +// +// Private use Microsoft types -- See www.iana.org/assignments/dns-parameters +// + +#define DNS_TYPE_WINS 0xff01 // 64K - 255 +#define DNS_TYPE_WINSR 0xff02 // 64K - 254 +#define DNS_TYPE_NBSTAT (DNS_TYPE_WINSR) + +// +// DNS Record Types -- Net Byte Order +// + +#define DNS_RTYPE_A 0x0100 // 1 +#define DNS_RTYPE_NS 0x0200 // 2 +#define DNS_RTYPE_MD 0x0300 // 3 +#define DNS_RTYPE_MF 0x0400 // 4 +#define DNS_RTYPE_CNAME 0x0500 // 5 +#define DNS_RTYPE_SOA 0x0600 // 6 +#define DNS_RTYPE_MB 0x0700 // 7 +#define DNS_RTYPE_MG 0x0800 // 8 +#define DNS_RTYPE_MR 0x0900 // 9 +#define DNS_RTYPE_NULL 0x0a00 // 10 +#define DNS_RTYPE_WKS 0x0b00 // 11 +#define DNS_RTYPE_PTR 0x0c00 // 12 +#define DNS_RTYPE_HINFO 0x0d00 // 13 +#define DNS_RTYPE_MINFO 0x0e00 // 14 +#define DNS_RTYPE_MX 0x0f00 // 15 +#define DNS_RTYPE_TEXT 0x1000 // 16 +#define DNS_RTYPE_RP 0x1100 // 17 +#define DNS_RTYPE_AFSDB 0x1200 // 18 +#define DNS_RTYPE_X25 0x1300 // 19 +#define DNS_RTYPE_ISDN 0x1400 // 20 +#define DNS_RTYPE_RT 0x1500 // 21 +#define DNS_RTYPE_NSAP 0x1600 // 22 +#define DNS_RTYPE_NSAPPTR 0x1700 // 23 +#define DNS_RTYPE_SIG 0x1800 // 24 +#define DNS_RTYPE_KEY 0x1900 // 25 +#define DNS_RTYPE_PX 0x1a00 // 26 +#define DNS_RTYPE_GPOS 0x1b00 // 27 +#define DNS_RTYPE_AAAA 0x1c00 // 28 +#define DNS_RTYPE_LOC 0x1d00 // 29 +#define DNS_RTYPE_NXT 0x1e00 // 30 +#define DNS_RTYPE_EID 0x1f00 // 31 +#define DNS_RTYPE_NIMLOC 0x2000 // 32 +#define DNS_RTYPE_SRV 0x2100 // 33 +#define DNS_RTYPE_ATMA 0x2200 // 34 +#define DNS_RTYPE_NAPTR 0x2300 // 35 +#define DNS_RTYPE_KX 0x2400 // 36 +#define DNS_RTYPE_CERT 0x2500 // 37 +#define DNS_RTYPE_A6 0x2600 // 38 +#define DNS_RTYPE_DNAME 0x2700 // 39 +#define DNS_RTYPE_SINK 0x2800 // 40 +#define DNS_RTYPE_OPT 0x2900 // 41 + +#define DNS_RTYPE_DS 0x2b00 // 43 +#define DNS_RTYPE_RRSIG 0x2e00 // 46 +#define DNS_RTYPE_NSEC 0x2f00 // 47 +#define DNS_RTYPE_DNSKEY 0x3000 // 48 +#define DNS_RTYPE_DHCID 0x3100 // 49 +#define DNS_RTYPE_NSEC3 0x3200 // 50 +#define DNS_RTYPE_NSEC3PARAM 0x3300 // 51 +#define DNS_RTYPE_TLSA 0x3400 // 52 + +// +// IANA Reserved +// + +#define DNS_RTYPE_UINFO 0x6400 // 100 +#define DNS_RTYPE_UID 0x6500 // 101 +#define DNS_RTYPE_GID 0x6600 // 102 +#define DNS_RTYPE_UNSPEC 0x6700 // 103 + +// +// Query only types +// + +#define DNS_RTYPE_TKEY 0xf900 // 249 +#define DNS_RTYPE_TSIG 0xfa00 // 250 +#define DNS_RTYPE_IXFR 0xfb00 // 251 +#define DNS_RTYPE_AXFR 0xfc00 // 252 +#define DNS_RTYPE_MAILB 0xfd00 // 253 +#define DNS_RTYPE_MAILA 0xfe00 // 254 +#define DNS_RTYPE_ALL 0xff00 // 255 +#define DNS_RTYPE_ANY 0xff00 // 255 + +// +// Private use Microsoft types -- See www.iana.org/assignments/dns-parameters +// + +#define DNS_RTYPE_WINS 0x01ff // 64K - 255 +#define DNS_RTYPE_WINSR 0x02ff // 64K - 254 + +// +// Record type specific definitions +// + +// +// ATMA (ATM address type) formats +// +// Define these directly for any environment (ex NT4) +// without winsock2 ATM support (ws2atm.h) +// + +#ifndef ATMA_E164 +#define DNS_ATMA_FORMAT_E164 1 +#define DNS_ATMA_FORMAT_AESA 2 +#define DNS_ATMA_MAX_ADDR_LENGTH (20) +#else +#define DNS_ATMA_FORMAT_E164 ATM_E164 +#define DNS_ATMA_FORMAT_AESA ATM_AESA +#define DNS_ATMA_MAX_ADDR_LENGTH ATM_ADDR_SIZE +#endif + +#define DNS_ATMA_AESA_ADDR_LENGTH (20) +#define DNS_ATMA_MAX_RECORD_LENGTH (DNS_ATMA_MAX_ADDR_LENGTH+1) + +// +// DNSSEC defs +// + +// DNSSEC algorithms + +#define DNSSEC_ALGORITHM_RSAMD5 1 +#define DNSSEC_ALGORITHM_RSASHA1 5 +#define DNSSEC_ALGORITHM_RSASHA1_NSEC3 7 +#define DNSSEC_ALGORITHM_RSASHA256 8 +#define DNSSEC_ALGORITHM_RSASHA512 10 +#define DNSSEC_ALGORITHM_ECDSAP256_SHA256 13 +#define DNSSEC_ALGORITHM_ECDSAP384_SHA384 14 +#define DNSSEC_ALGORITHM_NULL 253 +#define DNSSEC_ALGORITHM_PRIVATE 254 + +// DNSSEC DS record digest algorithms + +#define DNSSEC_DIGEST_ALGORITHM_SHA1 1 +#define DNSSEC_DIGEST_ALGORITHM_SHA256 2 +#define DNSSEC_DIGEST_ALGORITHM_SHA384 4 + +// DNSSEC KEY protocol table + +#define DNSSEC_PROTOCOL_NONE 0 +#define DNSSEC_PROTOCOL_TLS 1 +#define DNSSEC_PROTOCOL_EMAIL 2 +#define DNSSEC_PROTOCOL_DNSSEC 3 +#define DNSSEC_PROTOCOL_IPSEC 4 + +// DNSSEC KEY flag field + +#define DNSSEC_KEY_FLAG_NOAUTH 0x0001 +#define DNSSEC_KEY_FLAG_NOCONF 0x0002 +#define DNSSEC_KEY_FLAG_FLAG2 0x0004 +#define DNSSEC_KEY_FLAG_EXTEND 0x0008 +#define DNSSEC_KEY_FLAG_ +#define DNSSEC_KEY_FLAG_FLAG4 0x0010 +#define DNSSEC_KEY_FLAG_FLAG5 0x0020 + +// bits 6,7 are name type + +#define DNSSEC_KEY_FLAG_USER 0x0000 +#define DNSSEC_KEY_FLAG_ZONE 0x0040 +#define DNSSEC_KEY_FLAG_HOST 0x0080 +#define DNSSEC_KEY_FLAG_NTPE3 0x00c0 + +// bits 8-11 are reserved for future use + +#define DNSSEC_KEY_FLAG_FLAG8 0x0100 +#define DNSSEC_KEY_FLAG_FLAG9 0x0200 +#define DNSSEC_KEY_FLAG_FLAG10 0x0400 +#define DNSSEC_KEY_FLAG_FLAG11 0x0800 + +// bits 12-15 are sig field + +#define DNSSEC_KEY_FLAG_SIG0 0x0000 +#define DNSSEC_KEY_FLAG_SIG1 0x1000 +#define DNSSEC_KEY_FLAG_SIG2 0x2000 +#define DNSSEC_KEY_FLAG_SIG3 0x3000 +#define DNSSEC_KEY_FLAG_SIG4 0x4000 +#define DNSSEC_KEY_FLAG_SIG5 0x5000 +#define DNSSEC_KEY_FLAG_SIG6 0x6000 +#define DNSSEC_KEY_FLAG_SIG7 0x7000 +#define DNSSEC_KEY_FLAG_SIG8 0x8000 +#define DNSSEC_KEY_FLAG_SIG9 0x9000 +#define DNSSEC_KEY_FLAG_SIG10 0xa000 +#define DNSSEC_KEY_FLAG_SIG11 0xb000 +#define DNSSEC_KEY_FLAG_SIG12 0xc000 +#define DNSSEC_KEY_FLAG_SIG13 0xd000 +#define DNSSEC_KEY_FLAG_SIG14 0xe000 +#define DNSSEC_KEY_FLAG_SIG15 0xf000 + + +// +// TKEY modes +// + +#define DNS_TKEY_MODE_SERVER_ASSIGN 1 +#define DNS_TKEY_MODE_DIFFIE_HELLMAN 2 +#define DNS_TKEY_MODE_GSS 3 +#define DNS_TKEY_MODE_RESOLVER_ASSIGN 4 + + +// +// DNS resource record structure +// + +// +// Record data for specific types +// + +typedef struct +{ + IP4_ADDRESS IpAddress; +} +DNS_A_DATA, *PDNS_A_DATA; + +typedef struct +{ + PWSTR pNameHost; +} +DNS_PTR_DATAW, *PDNS_PTR_DATAW; + +typedef struct +{ + PSTR pNameHost; +} +DNS_PTR_DATAA, *PDNS_PTR_DATAA; + +typedef struct +{ + PWSTR pNamePrimaryServer; + PWSTR pNameAdministrator; + DWORD dwSerialNo; + DWORD dwRefresh; + DWORD dwRetry; + DWORD dwExpire; + DWORD dwDefaultTtl; +} +DNS_SOA_DATAW, *PDNS_SOA_DATAW; + +typedef struct +{ + PSTR pNamePrimaryServer; + PSTR pNameAdministrator; + DWORD dwSerialNo; + DWORD dwRefresh; + DWORD dwRetry; + DWORD dwExpire; + DWORD dwDefaultTtl; +} +DNS_SOA_DATAA, *PDNS_SOA_DATAA; + +typedef struct +{ + PWSTR pNameMailbox; + PWSTR pNameErrorsMailbox; +} +DNS_MINFO_DATAW, *PDNS_MINFO_DATAW; + +typedef struct +{ + PSTR pNameMailbox; + PSTR pNameErrorsMailbox; +} +DNS_MINFO_DATAA, *PDNS_MINFO_DATAA; + +typedef struct +{ + PWSTR pNameExchange; + WORD wPreference; + WORD Pad; // keep ptrs DWORD aligned +} +DNS_MX_DATAW, *PDNS_MX_DATAW; + +typedef struct +{ + PSTR pNameExchange; + WORD wPreference; + WORD Pad; // keep ptrs DWORD aligned +} +DNS_MX_DATAA, *PDNS_MX_DATAA; + +typedef struct +{ + DWORD dwStringCount; +#ifdef MIDL_PASS + [size_is(dwStringCount)] PWSTR pStringArray[]; +#else + PWSTR pStringArray[1]; +#endif +} +DNS_TXT_DATAW, *PDNS_TXT_DATAW; + +typedef struct +{ + DWORD dwStringCount; +#ifdef MIDL_PASS + [size_is(dwStringCount)] PSTR pStringArray[]; +#else + PSTR pStringArray[1]; +#endif +} +DNS_TXT_DATAA, *PDNS_TXT_DATAA; + +typedef struct +{ + DWORD dwByteCount; +#ifdef MIDL_PASS + [size_is(dwByteCount)] BYTE Data[]; +#else + BYTE Data[1]; +#endif +} +DNS_NULL_DATA, *PDNS_NULL_DATA; + +typedef struct +{ + IP4_ADDRESS IpAddress; + UCHAR chProtocol; + BYTE BitMask[1]; +} +DNS_WKS_DATA, *PDNS_WKS_DATA; + +typedef struct +{ + IP6_ADDRESS Ip6Address; +} +DNS_AAAA_DATA, *PDNS_AAAA_DATA; + +typedef struct +{ + WORD wTypeCovered; + BYTE chAlgorithm; + BYTE chLabelCount; + DWORD dwOriginalTtl; + DWORD dwExpiration; + DWORD dwTimeSigned; + WORD wKeyTag; + WORD wSignatureLength; + PWSTR pNameSigner; +#ifdef MIDL_PASS + [size_is(wSignatureLength)] BYTE Signature[]; +#else + BYTE Signature[1]; +#endif +} +DNS_SIG_DATAW, *PDNS_SIG_DATAW, DNS_RRSIG_DATAW, *PDNS_RRSIG_DATAW; + +typedef struct +{ + WORD wTypeCovered; + BYTE chAlgorithm; + BYTE chLabelCount; + DWORD dwOriginalTtl; + DWORD dwExpiration; + DWORD dwTimeSigned; + WORD wKeyTag; + WORD wSignatureLength; + PSTR pNameSigner; +#ifdef MIDL_PASS + [size_is(wSignatureLength)] BYTE Signature[]; +#else + BYTE Signature[1]; +#endif +} +DNS_SIG_DATAA, *PDNS_SIG_DATAA, DNS_RRSIG_DATAA, *PDNS_RRSIG_DATAA; + +typedef struct +{ + WORD wFlags; + BYTE chProtocol; + BYTE chAlgorithm; + WORD wKeyLength; + WORD wPad; // keep byte field aligned +#ifdef MIDL_PASS + [size_is(wKeyLength)] BYTE Key[]; +#else + BYTE Key[1]; +#endif +} +DNS_KEY_DATA, *PDNS_KEY_DATA, DNS_DNSKEY_DATA, *PDNS_DNSKEY_DATA; + +typedef struct +{ + DWORD dwByteCount; +#ifdef MIDL_PASS + [size_is(dwByteCount)] BYTE DHCID[]; +#else + BYTE DHCID[1]; +#endif +} +DNS_DHCID_DATA, *PDNS_DHCID_DATA; + +typedef struct +{ + PWSTR pNextDomainName; + WORD wTypeBitMapsLength; + WORD wPad; // keep byte field aligned +#ifdef MIDL_PASS + [size_is(wTypeBitMapsLength)] BYTE TypeBitMaps[]; +#else + BYTE TypeBitMaps[1]; +#endif +} +DNS_NSEC_DATAW, *PDNS_NSEC_DATAW; + +typedef struct +{ + PSTR pNextDomainName; + WORD wTypeBitMapsLength; + WORD wPad; // keep byte field aligned +#ifdef MIDL_PASS + [size_is(wTypeBitMapsLength)] BYTE TypeBitMaps[]; +#else + BYTE TypeBitMaps[1]; +#endif +} +DNS_NSEC_DATAA, *PDNS_NSEC_DATAA; + +typedef struct +{ + BYTE chAlgorithm; + BYTE bFlags; + WORD wIterations; + BYTE bSaltLength; + BYTE bHashLength; + WORD wTypeBitMapsLength; +#ifdef MIDL_PASS + [size_is(bSaltLength+bHashLength+wTypeBitMapsLength)] BYTE chData[]; +#else + BYTE chData[1]; +#endif +} +DNS_NSEC3_DATA, *PDNS_NSEC3_DATA; + +typedef struct +{ + BYTE chAlgorithm; + BYTE bFlags; + WORD wIterations; + BYTE bSaltLength; + BYTE bPad[3]; // keep salt field aligned +#ifdef MIDL_PASS + [size_is(bSaltLength)] BYTE pbSalt[]; +#else + BYTE pbSalt[1]; +#endif +} +DNS_NSEC3PARAM_DATA, *PDNS_NSEC3PARAM_DATA; + +typedef struct +{ + BYTE bCertUsage; + BYTE bSelector; + BYTE bMatchingType; + WORD bCertificateAssociationDataLength; + BYTE bPad[3]; // keep certificate association data field aligned +#ifdef MIDL_PASS + [size_is(bCertificateAssociationDataLength)] BYTE bCertificateAssociationData[]; +#else + BYTE bCertificateAssociationData[1]; +#endif +} +DNS_TLSA_DATA, *PDNS_TLSA_DATA; + +typedef struct +{ + WORD wKeyTag; + BYTE chAlgorithm; + BYTE chDigestType; + WORD wDigestLength; + WORD wPad; // keep byte field aligned +#ifdef MIDL_PASS + [size_is(wDigestLength)] BYTE Digest[]; +#else + BYTE Digest[1]; +#endif +} +DNS_DS_DATA, *PDNS_DS_DATA; + +typedef struct +{ + WORD wDataLength; + WORD wPad; // keep byte field aligned +#ifdef MIDL_PASS + [size_is(wDataLength)] BYTE Data[]; +#else + BYTE Data[1]; +#endif +} +DNS_OPT_DATA, *PDNS_OPT_DATA; + +typedef struct +{ + WORD wVersion; + WORD wSize; + WORD wHorPrec; + WORD wVerPrec; + DWORD dwLatitude; + DWORD dwLongitude; + DWORD dwAltitude; +} +DNS_LOC_DATA, *PDNS_LOC_DATA; + +typedef struct +{ + PWSTR pNameNext; + WORD wNumTypes; +#ifdef MIDL_PASS + [size_is(wNumTypes)] WORD wTypes[]; +#else + WORD wTypes[1]; +#endif +} +DNS_NXT_DATAW, *PDNS_NXT_DATAW; + +typedef struct +{ + PSTR pNameNext; + WORD wNumTypes; +#ifdef MIDL_PASS + [size_is(wNumTypes)] WORD wTypes[]; +#else + WORD wTypes[1]; +#endif +} +DNS_NXT_DATAA, *PDNS_NXT_DATAA; + +typedef struct +{ + PWSTR pNameTarget; + WORD wPriority; + WORD wWeight; + WORD wPort; + WORD Pad; // keep ptrs DWORD aligned +} +DNS_SRV_DATAW, *PDNS_SRV_DATAW; + +typedef struct +{ + PSTR pNameTarget; + WORD wPriority; + WORD wWeight; + WORD wPort; + WORD Pad; // keep ptrs DWORD aligned +} +DNS_SRV_DATAA, *PDNS_SRV_DATAA; + +typedef struct +{ + WORD wOrder; + WORD wPreference; + PWSTR pFlags; + PWSTR pService; + PWSTR pRegularExpression; + PWSTR pReplacement; +} +DNS_NAPTR_DATAW, *PDNS_NAPTR_DATAW; + +typedef struct +{ + WORD wOrder; + WORD wPreference; + PSTR pFlags; + PSTR pService; + PSTR pRegularExpression; + PSTR pReplacement; +} +DNS_NAPTR_DATAA, *PDNS_NAPTR_DATAA; + + + +typedef struct +{ + BYTE AddressType; + BYTE Address[ DNS_ATMA_MAX_ADDR_LENGTH ]; + + // E164 -- Null terminated string of less than + // DNS_ATMA_MAX_ADDR_LENGTH + // + // For NSAP (AESA) BCD encoding of exactly + // DNS_ATMA_AESA_ADDR_LENGTH +} +DNS_ATMA_DATA, *PDNS_ATMA_DATA; + + +typedef struct +{ + PWSTR pNameAlgorithm; + +#ifdef MIDL_PASS + [size_is(cAlgNameLength)] +#endif + PBYTE pAlgorithmPacket; + +#ifdef MIDL_PASS + [size_is(wKeyLength)] +#endif + PBYTE pKey; + +#ifdef MIDL_PASS + [size_is(wOtherLength)] +#endif + PBYTE pOtherData; + + DWORD dwCreateTime; + DWORD dwExpireTime; + WORD wMode; + WORD wError; + WORD wKeyLength; + WORD wOtherLength; + UCHAR cAlgNameLength; + BOOL bPacketPointers; +} +DNS_TKEY_DATAW, *PDNS_TKEY_DATAW; + +typedef struct +{ + PSTR pNameAlgorithm; + +#ifdef MIDL_PASS + [size_is(cAlgNameLength)] +#endif + PBYTE pAlgorithmPacket; + +#ifdef MIDL_PASS + [size_is(wKeyLength)] +#endif + PBYTE pKey; + +#ifdef MIDL_PASS + [size_is(wOtherLength)] +#endif + PBYTE pOtherData; + + DWORD dwCreateTime; + DWORD dwExpireTime; + WORD wMode; + WORD wError; + WORD wKeyLength; + WORD wOtherLength; + UCHAR cAlgNameLength; + BOOL bPacketPointers; +} +DNS_TKEY_DATAA, *PDNS_TKEY_DATAA; + +typedef struct +{ + PWSTR pNameAlgorithm; + +#ifdef MIDL_PASS + [size_is(cAlgNameLength)] +#endif + PBYTE pAlgorithmPacket; + +#ifdef MIDL_PASS + [size_is(wSigLength)] +#endif + PBYTE pSignature; + +#ifdef MIDL_PASS + [size_is(wOtherLength)] +#endif + PBYTE pOtherData; + + LONGLONG i64CreateTime; + WORD wFudgeTime; + WORD wOriginalXid; + WORD wError; + WORD wSigLength; + WORD wOtherLength; + UCHAR cAlgNameLength; + BOOL bPacketPointers; +} +DNS_TSIG_DATAW, *PDNS_TSIG_DATAW; + +typedef struct +{ + PSTR pNameAlgorithm; + +#ifdef MIDL_PASS + [size_is(cAlgNameLength)] +#endif + PBYTE pAlgorithmPacket; + +#ifdef MIDL_PASS + [size_is(wSigLength)] +#endif + PBYTE pSignature; + +#ifdef MIDL_PASS + [size_is(wOtherLength)] +#endif + PBYTE pOtherData; + + LONGLONG i64CreateTime; + WORD wFudgeTime; + WORD wOriginalXid; + WORD wError; + WORD wSigLength; + WORD wOtherLength; + UCHAR cAlgNameLength; + BOOL bPacketPointers; +} +DNS_TSIG_DATAA, *PDNS_TSIG_DATAA; + +typedef struct +{ + DWORD dwByteCount; +#ifdef MIDL_PASS + [size_is(dwByteCount)] BYTE bData[]; +#else + BYTE bData[1]; +#endif +} +DNS_UNKNOWN_DATA, *PDNS_UNKNOWN_DATA; + +// +// MS only types -- only hit the wire in MS-MS zone transfer +// + +typedef struct +{ + DWORD dwMappingFlag; + DWORD dwLookupTimeout; + DWORD dwCacheTimeout; + DWORD cWinsServerCount; +#ifdef MIDL_PASS + [size_is(cWinsServerCount)] + IP4_ADDRESS WinsServers[]; +#else + IP4_ADDRESS WinsServers[1]; +#endif +} +DNS_WINS_DATA, *PDNS_WINS_DATA; + +typedef struct +{ + DWORD dwMappingFlag; + DWORD dwLookupTimeout; + DWORD dwCacheTimeout; + PWSTR pNameResultDomain; +} +DNS_WINSR_DATAW, *PDNS_WINSR_DATAW; + +typedef struct +{ + DWORD dwMappingFlag; + DWORD dwLookupTimeout; + DWORD dwCacheTimeout; + PSTR pNameResultDomain; +} +DNS_WINSR_DATAA, *PDNS_WINSR_DATAA; + +#define DDR_MAX_IP_HINTS 4 + +typedef enum _DNS_SVCB_PARAM_TYPE +{ + DnsSvcbParamMandatory = 0, + DnsSvcbParamAlpn = 1, + DnsSvcbParamNoDefaultAlpn = 2, + DnsSvcbParamPort = 3, + DnsSvcbParamIpv4Hint = 4, + DnsSvcbParamEch = 5, + DnsSvcbParamIpv6Hint = 6, + DnsSvcbParamDohPath = 7, + DnsSvcbParamDohPathOpenDns = 65432, +} DNS_SVCB_PARAM_TYPE; + +typedef struct _DNS_SVCB_PARAM_MANDATORY +{ + WORD cMandatoryKeys; + WORD rgwMandatoryKeys[1]; +} DNS_SVCB_PARAM_MANDATORY; + +typedef struct _DNS_SVCB_PARAM_ALPN_ID +{ + BYTE cBytes; + BYTE *pbId; +} DNS_SVCB_PARAM_ALPN_ID; + +typedef struct _DNS_SVCB_PARAM_ALPN +{ + WORD cIds; + DNS_SVCB_PARAM_ALPN_ID rgIds[1]; +} DNS_SVCB_PARAM_ALPN; + +typedef struct _DNS_SVCB_PARAM_IPV4 +{ + WORD cIps; + IP4_ADDRESS rgIps[1]; +} DNS_SVCB_PARAM_IPV4; + +typedef struct _DNS_SVCB_PARAM_IPV6 +{ + WORD cIps; + IP6_ADDRESS rgIps[1]; +} DNS_SVCB_PARAM_IPV6; + +typedef struct _DNS_SVCB_PARAM_UNKNOWN +{ + WORD cBytes; + BYTE pbSvcParamValue[1]; +} DNS_SVCB_PARAM_UNKNOWN; + +#pragma warning(push) +#pragma warning(disable: 4201) // nameless struct/union (anonymous union for SVCB parameter variants) +typedef struct _DNS_SVCB_PARAM +{ + WORD wSvcParamKey; + union + { + DNS_SVCB_PARAM_IPV4 *pIpv4Hints; + DNS_SVCB_PARAM_IPV6 *pIpv6Hints; + DNS_SVCB_PARAM_MANDATORY *pMandatory; + DNS_SVCB_PARAM_ALPN *pAlpn; + WORD wPort; + DNS_SVCB_PARAM_UNKNOWN *pUnknown; + PSTR pszDohPath; + PVOID pReserved; + }; +} DNS_SVCB_PARAM; +#pragma warning(pop) + +typedef struct _DNS_SVCB_DATA +{ + WORD wSvcPriority; + PSTR pszTargetName; + WORD cSvcParams; + DNS_SVCB_PARAM *pSvcParams; +} DNS_SVCB_DATA; + +// +// Unicode/ANSI record types +// + +#ifdef UNICODE +typedef DNS_PTR_DATAW DNS_PTR_DATA, *PDNS_PTR_DATA; +typedef DNS_SOA_DATAW DNS_SOA_DATA, *PDNS_SOA_DATA; +typedef DNS_MINFO_DATAW DNS_MINFO_DATA, *PDNS_MINFO_DATA; +typedef DNS_MX_DATAW DNS_MX_DATA, *PDNS_MX_DATA; +typedef DNS_TXT_DATAW DNS_TXT_DATA, *PDNS_TXT_DATA; +typedef DNS_SIG_DATAW DNS_SIG_DATA, *PDNS_SIG_DATA; +typedef DNS_NXT_DATAW DNS_NXT_DATA, *PDNS_NXT_DATA; +typedef DNS_SRV_DATAW DNS_SRV_DATA, *PDNS_SRV_DATA; +typedef DNS_NAPTR_DATAW DNS_NAPTR_DATA, *PDNS_NAPTR_DATA; +typedef DNS_RRSIG_DATAW DNS_RRSIG_DATA, *PDNS_RRSIG_DATA; +typedef DNS_NSEC_DATAW DNS_NSEC_DATA, *PDNS_NSEC_DATA; +typedef DNS_TKEY_DATAW DNS_TKEY_DATA, *PDNS_TKEY_DATA; +typedef DNS_TSIG_DATAW DNS_TSIG_DATA, *PDNS_TSIG_DATA; +typedef DNS_WINSR_DATAW DNS_WINSR_DATA, *PDNS_WINSR_DATA; +#else +typedef DNS_PTR_DATAA DNS_PTR_DATA, *PDNS_PTR_DATA; +typedef DNS_SOA_DATAA DNS_SOA_DATA, *PDNS_SOA_DATA; +typedef DNS_MINFO_DATAA DNS_MINFO_DATA, *PDNS_MINFO_DATA; +typedef DNS_MX_DATAA DNS_MX_DATA, *PDNS_MX_DATA; +typedef DNS_TXT_DATAA DNS_TXT_DATA, *PDNS_TXT_DATA; +typedef DNS_SIG_DATAA DNS_SIG_DATA, *PDNS_SIG_DATA; +typedef DNS_NXT_DATAA DNS_NXT_DATA, *PDNS_NXT_DATA; +typedef DNS_SRV_DATAA DNS_SRV_DATA, *PDNS_SRV_DATA; +typedef DNS_NAPTR_DATAA DNS_NAPTR_DATA, *PDNS_NAPTR_DATA; +typedef DNS_RRSIG_DATAA DNS_RRSIG_DATA, *PDNS_RRSIG_DATA; +typedef DNS_NSEC_DATAA DNS_NSEC_DATA, *PDNS_NSEC_DATA; +typedef DNS_TKEY_DATAA DNS_TKEY_DATA, *PDNS_TKEY_DATA; +typedef DNS_TSIG_DATAA DNS_TSIG_DATA, *PDNS_TSIG_DATA; +typedef DNS_WINSR_DATAA DNS_WINSR_DATA, *PDNS_WINSR_DATA; +#endif + +// +// Length of non-fixed-length data types +// + +#define DNS_TEXT_RECORD_LENGTH(StringCount) \ + (FIELD_OFFSET(DNS_TXT_DATA, pStringArray) + ((StringCount) * sizeof(PCHAR))) + +#define DNS_NULL_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_NULL_DATA, Data) + (ByteCount)) + +#define DNS_WKS_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_WKS_DATA, BitMask) + (ByteCount)) + +#define DNS_WINS_RECORD_LENGTH(IpCount) \ + (FIELD_OFFSET(DNS_WINS_DATA, WinsServers) + ((IpCount) * sizeof(IP4_ADDRESS))) + +#define DNS_KEY_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_KEY_DATA, Key) + (ByteCount)) + +#define DNS_SIG_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_SIG_DATA, Signature) + (ByteCount)) + +#define DNS_NSEC_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_NSEC_DATA, TypeBitMaps) + (ByteCount)) + +#define DNS_DS_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_DS_DATA, Digest) + (ByteCount)) + +#define DNS_OPT_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_OPT_DATA, Data) + (ByteCount)) + +#define DNS_DHCID_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_DHCID_DATA, DHCID) + (ByteCount)) + +#define DNS_NSEC3_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_NSEC3_DATA, chData) + (ByteCount)) + +#define DNS_NSEC3PARAM_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_NSEC3PARAM_DATA, pbSalt) + (ByteCount)) + +#define DNS_TLSA_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_TLSA_DATA, bCertificateAssociationData) + (ByteCount)) + +#define DNS_UNKNOWN_RECORD_LENGTH(ByteCount) \ + (FIELD_OFFSET(DNS_UNKNOWN_DATA, bData) + (ByteCount)) + +// +// Record flags +// + +typedef struct _DnsRecordFlags +{ + DWORD Section : 2; + DWORD Delete : 1; + DWORD CharSet : 2; + DWORD Unused : 3; + + DWORD Reserved : 24; +} +DNS_RECORD_FLAGS; + +// +// Wire Record Sections +// +// Useable both in record flags "Section" and as index into +// wire message header section counts. +// + +typedef enum _DnsSection +{ + DnsSectionQuestion, + DnsSectionAnswer, + DnsSectionAuthority, + DnsSectionAddtional, +} +DNS_SECTION; + +// Update message section names + +#define DnsSectionZone DnsSectionQuestion +#define DnsSectionPrereq DnsSectionAnswer +#define DnsSectionUpdate DnsSectionAuthority + + +// +// Record flags as bit flags +// These may be or'd together to set the fields +// + +// RR Section in packet + +#define DNSREC_SECTION (0x00000003) + +#define DNSREC_QUESTION (0x00000000) +#define DNSREC_ANSWER (0x00000001) +#define DNSREC_AUTHORITY (0x00000002) +#define DNSREC_ADDITIONAL (0x00000003) + +// RR Section in packet (update) + +#define DNSREC_ZONE (0x00000000) +#define DNSREC_PREREQ (0x00000001) +#define DNSREC_UPDATE (0x00000002) + +// Delete RR (update) or No-exist (prerequisite) + +#define DNSREC_DELETE (0x00000004) +#define DNSREC_NOEXIST (0x00000004) + + +// +// Record \ RR set structure +// +// Note: The dwReserved flag serves to insure that the substructures +// start on 64-bit boundaries. Do NOT pack this structure, as the +// substructures may contain pointers or int64 values which are +// properly aligned unpacked. +// + +#ifdef MIDL_PASS + +#define PDNS_RECORD PVOID +#define PDNS_RECORDA PVOID +#define PDNS_RECORDW PVOID + +#else + +typedef _Struct_size_bytes_(FIELD_OFFSET(struct _DnsRecordW, Data) + wDataLength) struct _DnsRecordW +{ + struct _DnsRecordW * pNext; + PWSTR pName; + WORD wType; + WORD wDataLength; // Not referenced for DNS record types + // defined above. + union + { + DWORD DW; // flags as DWORD + DNS_RECORD_FLAGS S; // flags as structure + + } Flags; + + DWORD dwTtl; + DWORD dwReserved; + + // Record Data + + union + { + DNS_A_DATA A; + DNS_SOA_DATAW SOA, Soa; + DNS_PTR_DATAW PTR, Ptr, + NS, Ns, + CNAME, Cname, + DNAME, Dname, + MB, Mb, + MD, Md, + MF, Mf, + MG, Mg, + MR, Mr; + DNS_MINFO_DATAW MINFO, Minfo, + RP, Rp; + DNS_MX_DATAW MX, Mx, + AFSDB, Afsdb, + RT, Rt; + DNS_TXT_DATAW HINFO, Hinfo, + ISDN, Isdn, + TXT, Txt, + X25; + DNS_NULL_DATA Null; + DNS_WKS_DATA WKS, Wks; + DNS_AAAA_DATA AAAA; + DNS_KEY_DATA KEY, Key; + DNS_SIG_DATAW SIG, Sig; + DNS_ATMA_DATA ATMA, Atma; + DNS_NXT_DATAW NXT, Nxt; + DNS_SRV_DATAW SRV, Srv; + DNS_NAPTR_DATAW NAPTR, Naptr; + DNS_OPT_DATA OPT, Opt; + DNS_DS_DATA DS, Ds; + DNS_RRSIG_DATAW RRSIG, Rrsig; + DNS_NSEC_DATAW NSEC, Nsec; + DNS_DNSKEY_DATA DNSKEY, Dnskey; + DNS_TKEY_DATAW TKEY, Tkey; + DNS_TSIG_DATAW TSIG, Tsig; + DNS_WINS_DATA WINS, Wins; + DNS_WINSR_DATAW WINSR, WinsR, NBSTAT, Nbstat; + DNS_DHCID_DATA DHCID; + DNS_NSEC3_DATA NSEC3, Nsec3; + DNS_NSEC3PARAM_DATA NSEC3PARAM, Nsec3Param; + DNS_TLSA_DATA TLSA, Tlsa; + DNS_SVCB_DATA SVCB, Svcb; + DNS_UNKNOWN_DATA UNKNOWN, Unknown; + PBYTE pDataPtr; + + } Data; +} +DNS_RECORDW, *PDNS_RECORDW; + +typedef struct _DnsRecordOptW +{ + struct _DnsRecordW * pNext; + PWSTR pName; + WORD wType; + WORD wDataLength; // Not referenced for DNS record types + // defined above. + union + { + DWORD DW; // flags as DWORD + DNS_RECORD_FLAGS S; // flags as structure + + } Flags; + + DNS_HEADER_EXT ExtHeader; // TTL + WORD wPayloadSize; // dwReserved; + WORD wReserved; + + // Record Data + union + { + DNS_OPT_DATA OPT, Opt; + + } Data; +} +DNS_RECORD_OPTW, *PDNS_RECORD_OPTW; + + +typedef _Struct_size_bytes_(FIELD_OFFSET(struct _DnsRecordA, Data) + wDataLength) struct _DnsRecordA +{ + struct _DnsRecordA * pNext; + PSTR pName; + WORD wType; + WORD wDataLength; // Not referenced for DNS record types + // defined above. + union + { + DWORD DW; // flags as DWORD + DNS_RECORD_FLAGS S; // flags as structure + + } Flags; + + DWORD dwTtl; + DWORD dwReserved; + + // Record Data + + union + { + DNS_A_DATA A; + DNS_SOA_DATAA SOA, Soa; + DNS_PTR_DATAA PTR, Ptr, + NS, Ns, + CNAME, Cname, + DNAME, Dname, + MB, Mb, + MD, Md, + MF, Mf, + MG, Mg, + MR, Mr; + DNS_MINFO_DATAA MINFO, Minfo, + RP, Rp; + DNS_MX_DATAA MX, Mx, + AFSDB, Afsdb, + RT, Rt; + DNS_TXT_DATAA HINFO, Hinfo, + ISDN, Isdn, + TXT, Txt, + X25; + DNS_NULL_DATA Null; + DNS_WKS_DATA WKS, Wks; + DNS_AAAA_DATA AAAA; + DNS_KEY_DATA KEY, Key; + DNS_SIG_DATAA SIG, Sig; + DNS_ATMA_DATA ATMA, Atma; + DNS_NXT_DATAA NXT, Nxt; + DNS_SRV_DATAA SRV, Srv; + DNS_NAPTR_DATAA NAPTR, Naptr; + DNS_OPT_DATA OPT, Opt; + DNS_DS_DATA DS, Ds; + DNS_RRSIG_DATAA RRSIG, Rrsig; + DNS_NSEC_DATAA NSEC, Nsec; + DNS_DNSKEY_DATA DNSKEY, Dnskey; + DNS_TKEY_DATAA TKEY, Tkey; + DNS_TSIG_DATAA TSIG, Tsig; + DNS_WINS_DATA WINS, Wins; + DNS_WINSR_DATAA WINSR, WinsR, NBSTAT, Nbstat; + DNS_DHCID_DATA DHCID; + DNS_NSEC3_DATA NSEC3, Nsec3; + DNS_NSEC3PARAM_DATA NSEC3PARAM, Nsec3Param; + DNS_TLSA_DATA TLSA, Tlsa; + DNS_SVCB_DATA SVCB, Svcb; + DNS_UNKNOWN_DATA UNKNOWN, Unknown; + PBYTE pDataPtr; + + } Data; +} +DNS_RECORDA, *PDNS_RECORDA; + + +typedef struct _DnsRecordOptA +{ + struct _DnsRecordA * pNext; + PSTR pName; + WORD wType; + WORD wDataLength; // Not referenced for DNS record types + // defined above. + union + { + DWORD DW; // flags as DWORD + DNS_RECORD_FLAGS S; // flags as structure + + } Flags; + + DNS_HEADER_EXT ExtHeader; // TTL + WORD wPayloadSize; // dwReserved; + WORD wReserved; + + // Record Data + + union + { + DNS_OPT_DATA OPT, Opt; + + } Data; +} +DNS_RECORD_OPTA, *PDNS_RECORD_OPTA; + + +#ifdef UNICODE +typedef DNS_RECORDW DNS_RECORD, *PDNS_RECORD; +typedef DNS_RECORD_OPTW DNS_RECORD_OPT, *PDNS_RECORD_OPT; +#else +typedef DNS_RECORDA DNS_RECORD, *PDNS_RECORD; +typedef DNS_RECORD_OPTA DNS_RECORD_OPT, *PDNS_RECORD_OPT; +#endif + +// +// Header or fixed size of DNS_RECORD +// + +#define DNS_RECORD_FIXED_SIZE FIELD_OFFSET( DNS_RECORD, Data ) +#define SIZEOF_DNS_RECORD_HEADER DNS_RECORD_FIXED_SIZE + +#endif // MIDL_PASS + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// DNS public types +// + +#if !defined(_Return_type_success_) +# define _Return_type_success_(expr) +#endif + +typedef _Return_type_success_(return == 0) LONG DNS_STATUS; +typedef DNS_STATUS *PDNS_STATUS; + +// +// DNS Address structures representing both IPv4 and IPv6 addresses. +// + +#pragma pack(push, 1) + +#if defined( MIDL_PASS ) + +typedef struct _DnsAddr +{ + CHAR MaxSa[ DNS_ADDR_MAX_SOCKADDR_LENGTH ]; + DWORD DnsAddrUserDword[ 8 ]; +} +DNS_ADDR, *PDNS_ADDR; + +typedef struct _DnsAddrArray +{ + DWORD MaxCount; + DWORD AddrCount; + DWORD Tag; + WORD Family; + WORD WordReserved; + DWORD Flags; + DWORD MatchFlag; + DWORD Reserved1; + DWORD Reserved2; + [size_is( AddrCount )] DNS_ADDR AddrArray[]; +} +DNS_ADDR_ARRAY, *PDNS_ADDR_ARRAY; + +#elif !defined( USE_PRIVATE_DNS_ADDR ) + +typedef struct _DnsAddr +{ + CHAR MaxSa[ DNS_ADDR_MAX_SOCKADDR_LENGTH ]; + union + { + DWORD DnsAddrUserDword[ 8 ]; + } + Data; +} +DNS_ADDR, *PDNS_ADDR; + +typedef struct _DnsAddrArray +{ + DWORD MaxCount; + DWORD AddrCount; + DWORD Tag; + WORD Family; + WORD WordReserved; + DWORD Flags; + DWORD MatchFlag; + DWORD Reserved1; + DWORD Reserved2; + DNS_ADDR AddrArray[ 1 ]; +} +DNS_ADDR_ARRAY, *PDNS_ADDR_ARRAY; + +#endif // MIDL_PASS +#pragma pack(pop) + +// +// DNS UDP packets no more than 512 bytes +// + +#define DNS_RFC_MAX_UDP_PACKET_LENGTH (512) + + +// +// DNS Names limited to 255, 63 in any one label +// + +#define DNS_MAX_NAME_LENGTH (255) +#define DNS_MAX_LABEL_LENGTH (63) +#define DNS_MAX_NAME_BUFFER_LENGTH (256) +#define DNS_MAX_LABEL_BUFFER_LENGTH (64) + +#pragma pack(push, 1) + +// +// DNS Message Header +// + +typedef struct _DNS_HEADER +{ + WORD Xid; + +#ifdef MIDL_PASS + WORD Flags; +#else + BYTE RecursionDesired : 1; + BYTE Truncation : 1; + BYTE Authoritative : 1; + BYTE Opcode : 4; + BYTE IsResponse : 1; + + BYTE ResponseCode : 4; + BYTE CheckingDisabled : 1; + BYTE AuthenticatedData : 1; + BYTE Reserved : 1; + BYTE RecursionAvailable : 1; +#endif + + WORD QuestionCount; + WORD AnswerCount; + WORD NameServerCount; + WORD AdditionalCount; +} +DNS_HEADER, *PDNS_HEADER; + +// +// Flags as WORD +// + +#define DNS_HEADER_FLAGS(pHead) ( *((PWORD)(pHead)+1) ) + +#pragma pack(pop) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +typedef enum _DNS_CHARSET +{ + DnsCharSetUnknown, + DnsCharSetUnicode, + DnsCharSetUtf8, + DnsCharSetAnsi, +} +DNS_CHARSET; + +typedef struct _DNS_MESSAGE_BUFFER +{ + DNS_HEADER MessageHead; + CHAR MessageBody[1]; +} +DNS_MESSAGE_BUFFER, *PDNS_MESSAGE_BUFFER; + +#define DNS_CUSTOM_SERVER_TYPE_UDP 0x1 +#define DNS_CUSTOM_SERVER_TYPE_DOH 0x2 +#define DNS_CUSTOM_SERVER_TYPE_DOT 0x3 + +#define DNS_CUSTOM_SERVER_UDP_FALLBACK 0x1 +#define DNS_CUSTOM_SERVER_UPGRADE_FROM_WELL_KNOWN_SERVERS 0x2 + +#pragma warning(push) +#pragma warning(disable: 4201) // nameless struct/union (anonymous unions for DNS_CUSTOM_SERVER representation variants) + +#ifdef MIDL_PASS + +typedef struct _DNS_CUSTOM_SERVER +{ + DWORD dwServerType; + ULONG64 ullFlags; + + [switch_type(DWORD)] + [switch_is(dwServerType)] + union + { + [case(DNS_CUSTOM_SERVER_TYPE_DOH)] PWSTR pwszTemplate; + [case(DNS_CUSTOM_SERVER_TYPE_DOT)] PWSTR pwszHostname; + [case(DNS_CUSTOM_SERVER_TYPE_UDP)] ; + }; + + CHAR MaxSa[DNS_ADDR_MAX_SOCKADDR_LENGTH]; +} DNS_CUSTOM_SERVER; + +#else + +typedef struct _DNS_CUSTOM_SERVER +{ + DWORD dwServerType; + ULONG64 ullFlags; + + union + { + PWSTR pwszTemplate; + PWSTR pwszHostname; + }; + + union + { +#ifdef _WS2TCPIP_H_ + SOCKADDR_INET ServerAddr; +#endif + CHAR MaxSa[DNS_ADDR_MAX_SOCKADDR_LENGTH]; + }; +} DNS_CUSTOM_SERVER; + +#endif // MIDL_PASS + +#pragma warning(pop) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#endif // _WINDNSDEF_INCLUDED_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windot11.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windot11.h new file mode 100644 index 0000000000000000000000000000000000000000..4e84058e513142bd82fbcee7ea3fe5c615f5077c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windot11.h @@ -0,0 +1,4445 @@ +/*++ + + Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + windot11.h + +Abstract: + + Definitions for native 802.11 miniport driver specifications. + +--*/ + +#ifndef __WINDOT11_H__ +#define __WINDOT11_H__ + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) // padding added after data member +#endif + +// +// Disable C4201: nonstandard extension used : nameless struct/union +// +#pragma warning(disable:4201) + +// +// Disable C4214: nonstandard extension used : bit field types other than int +// +#pragma warning(disable:4214) + +#ifndef _NTDDNDIS_ +#include +#endif + +#include + +// These are needed for wlanapi.h for pre-vista targets +#ifdef __midl + typedef struct _DOT11_MAC_ADDRESS { + UCHAR ucDot11MacAddress[6]; + } DOT11_MAC_ADDRESS, * PDOT11_MAC_ADDRESS; +#else + typedef UCHAR DOT11_MAC_ADDRESS[6]; + typedef DOT11_MAC_ADDRESS * PDOT11_MAC_ADDRESS; +#endif + +// A list of DOT11_MAC_ADDRESS +typedef struct DOT11_BSSID_LIST { + #define DOT11_BSSID_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; +#ifdef __midl + [unique, size_is(uTotalNumOfEntries)] DOT11_MAC_ADDRESS BSSIDs[*]; +#else + DOT11_MAC_ADDRESS BSSIDs[1]; +#endif +} DOT11_BSSID_LIST, * PDOT11_BSSID_LIST; + +#define DOT11_HESSID_LENGTH 6 +typedef UCHAR DOT11_HESSID[DOT11_HESSID_LENGTH]; +typedef DOT11_HESSID* PDOT11_HESSID; + +#ifdef __midl +// use 4-byte enum +typedef [v1_enum] enum _DOT11_PHY_TYPE { +#else +typedef enum _DOT11_PHY_TYPE { +#endif + dot11_phy_type_unknown = 0, + dot11_phy_type_any = dot11_phy_type_unknown, + dot11_phy_type_fhss = 1, + dot11_phy_type_dsss = 2, + dot11_phy_type_irbaseband = 3, + dot11_phy_type_ofdm = 4, // 11a + dot11_phy_type_hrdsss = 5, // 11b + dot11_phy_type_erp = 6, // 11g + dot11_phy_type_ht = 7, // 11n + dot11_phy_type_vht = 8, // 11ac + dot11_phy_type_dmg = 9, // 11ad + dot11_phy_type_he = 10, // 11ax + dot11_phy_type_eht = 11, // 11be + dot11_phy_type_IHV_start = 0x80000000, + dot11_phy_type_IHV_end = 0xffffffff +} DOT11_PHY_TYPE, * PDOT11_PHY_TYPE; + +// The AKMs are defined in the IEEE 802.11 spec in Table 9-188-AKM suite selectors +// The mappings are defined in Table 12-11-Integrity and key wrap algorithms +// The KCK length for SAE is defined in the IEEE 802.11 spec in Table 12-1-Hash algorithm based on length of prime + +#define AKM_FROM_TYPE(_prefix, _akm) (_prefix + (_akm << 24)) + +#define RSNA_OUI_PREFIX 0xac0f00 +typedef enum +{ + rsna_akm_none = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 0), + rsna_akm_1x = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 1), // 1X + PRF-128 + rsna_akm_psk = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 2), // PSK + PRF-128 + rsna_akm_ft_1x_sha256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 3), // FT_1X + SHA-256 + rsna_akm_ft_psk_sha256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 4), // FT_PSK + SHA-256 + rsna_akm_1x_sha256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 5), // 1X + SHA-256 + rsna_akm_psk_sha256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 6), // PSK + SHA-256 + rsna_akm_tdls_sha256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 7), // TPK + SHA-256 + rsna_akm_sae_pmk256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 8), // SAE + [PMK = 256] + rsna_akm_ft_sae_pmk256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 9), // FT_SAE + [PMK = 256] + rsna_akm_peerkey_sha256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 10), + rsna_akm_1x_suite_b_sha256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 11), // 1X_Suite_B + SHA-256 + rsna_akm_1x_suite_b_sha384 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 12), // 1X_Suite_B/CSNA + SHA-384 + rsna_akm_ft_1x_sha384_cmp_256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 13), // FT_1X + SHA-384 + CCMP-256/GCMP-256 + rsna_akm_fils_1x_sha256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 14), + rsna_akm_fils_1x_sha384 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 15), + rsna_akm_ft_fils_1x_sha256 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 16), + rsna_akm_ft_fils_sha384 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 17), + rsna_akm_owe = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 18), // Reserved + rsna_akm_ft_psk_sha384 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 19), // FT_PSK + SHA-384 + rsna_akm_psk_sha384 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 20), // PSK + SHA-384 + // 21 is not defined + rsna_akm_ft_1x_sha384 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 22), // FT_1X + SHA-384 + rsna_akm_1x_sha384 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 23), // 1X + SHA-384 + rsna_akm_sae_pmk384 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 24), // SAE + [PMK = 384] + rsna_akm_ft_sae_pmk384 = AKM_FROM_TYPE(RSNA_OUI_PREFIX, 25), // FT_SAE + [PMK = 384] + + rsna_akm_max = rsna_akm_ft_sae_pmk384, +} RSNA_AKM_SUITE; + +#define WPA_OUI_PREFIX 0xf25000 +typedef enum +{ + wpa_akm_none = AKM_FROM_TYPE(WPA_OUI_PREFIX, 0), + wpa_akm_1x = AKM_FROM_TYPE(WPA_OUI_PREFIX, 1), // 1X + PRF-128 + wpa_akm_psk = AKM_FROM_TYPE(WPA_OUI_PREFIX, 2), // PSK + PRF-128 + + wpa_akm_max = wpa_akm_psk, +} WPA_AKM_SUITE; + +// The ciphers are defined in the IEEE 802.11 spec in Table 9-186-Cipher suite selectors +#define CIPHER_FROM_TYPE(_prefix, _cipher) (_prefix + (_cipher << 24)) +typedef enum +{ + rsna_cipher_group = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 0), + rsna_cipher_wep40 = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 1), + rsna_cipher_tkip = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 2), + rsna_cipher_reserved = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 3), + rsna_cipher_ccmp_128 = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 4), + rsna_cipher_wep104 = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 5), + rsna_cipher_bip_cmac_128 = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 6), + rsna_cipher_no_group_traffic = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 7), + rsna_cipher_gcmp_128 = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 8), + rsna_cipher_gcmp_256 = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 9), + rsna_cipher_ccmp_256 = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 10), + rsna_cipher_bip_gmac_128 = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 11), + rsna_cipher_bip_gmac_256 = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 12), + rsna_cipher_bip_cmac_256 = CIPHER_FROM_TYPE(RSNA_OUI_PREFIX, 13), + + rsna_cipher_max = rsna_cipher_bip_cmac_256, +} RSNA_CIPHER_SUITE; + +typedef enum +{ + wpa_cipher_none = CIPHER_FROM_TYPE(WPA_OUI_PREFIX, 0), + wpa_cipher_wep40 = CIPHER_FROM_TYPE(WPA_OUI_PREFIX, 1), + wpa_cipher_tkip = CIPHER_FROM_TYPE(WPA_OUI_PREFIX, 2), + wpa_cipher_ccmp_128 = CIPHER_FROM_TYPE(WPA_OUI_PREFIX, 4), + wpa_cipher_wep104 = CIPHER_FROM_TYPE(WPA_OUI_PREFIX, 5), + wpa_cipher_bip_cmac_128 = CIPHER_FROM_TYPE(WPA_OUI_PREFIX, 6), + + wpa_cipher_max = wpa_cipher_bip_cmac_128, +} WPA_CIPHER_SUITE; + +typedef struct +{ + RSNA_AKM_SUITE akm; + RSNA_CIPHER_SUITE cipher; +} RSNA_AKM_CIPHER_PAIR; + +#define DOT11_RATE_SET_MAX_LENGTH 126 // 126 bytes +typedef struct _DOT11_RATE_SET { + _Field_range_(<=, DOT11_RATE_SET_MAX_LENGTH) ULONG uRateSetLength; + _Field_size_part_(DOT11_RATE_SET_MAX_LENGTH, uRateSetLength) UCHAR ucRateSet[DOT11_RATE_SET_MAX_LENGTH]; +} DOT11_RATE_SET, * PDOT11_RATE_SET; + +typedef struct +{ + RSNA_AKM_SUITE akm; + RSNA_CIPHER_SUITE cipher; +} DOT11_AKM_CIPHER_PAIR; + +typedef UCHAR DOT11_COUNTRY_OR_REGION_STRING[3]; +typedef DOT11_COUNTRY_OR_REGION_STRING * PDOT11_COUNTRY_OR_REGION_STRING; + +typedef UCHAR DOT11_DIALOG_TOKEN; +typedef UCHAR DOT11_WFD_STATUS_CODE; +typedef UCHAR DOT11_WFD_MINOR_REASON_CODE; + +typedef UCHAR DOT11_WFD_SERVICE_HASH[6]; + +#define DOT11_WFD_SERVICE_NAME_MAX_LENGTH 255 +#define DOT11_WFD_APS2_SERVICE_TYPE_MAX_LENGTH 21 +#define DOT11_WFD_ASP2_INSTANCE_NAME_MAX_LENGTH 63 +#define DOT11_WFD_SERVICE_INFORMATION_MAX_LENGTH 65535 +#define DOT11_MAX_REQUESTED_SERVICE_INFORMATION_LENGTH 255 +#define DOT11_WFD_SESSION_INFO_MAX_LENGTH 144 +typedef struct _DOT11_WFD_SESSION_INFO { + _Field_range_(<= , DOT11_WFD_SESSION_INFO_MAX_LENGTH) USHORT uSessionInfoLength; + _Field_size_part_(DOT11_WFD_SESSION_INFO_MAX_LENGTH, uSessionInfoLength) UCHAR ucSessionInfo[DOT11_WFD_SESSION_INFO_MAX_LENGTH]; +} DOT11_WFD_SESSION_INFO, *PDOT11_WFD_SESSION_INFO; + +#if (NTDDI_VERSION >= NTDDI_WIN8 || NDIS_SUPPORT_NDIS630) +#define NWF_WFD_SUPPORTED +#define NWF_POWER_SAVE_SUPPORTED +#endif // (NTDDI_VERSION >= NTDDI_WIN8 || NDIS_SUPPORT_NDIS630) + + +#if (NTDDI_VERSION >= NTDDI_WIN7 || NDIS_SUPPORT_NDIS620) +#define NWF_EXTAP_SUPPORTED +#define NWF_VWIFI_SUPPORTED +#endif // (NTDDI_VERSION >= NTDDI_WIN7 || NDIS_SUPPORT_NDIS620) + + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +// ntddndis.h: new Flags for OID_GEN_CURRENT_PACKET_FILTER +#define NDIS_PACKET_TYPE_MEDIA_SPECIFIC_MASK (0x0fff0000U) + // Mask for media specific packet filters + +#define NDIS_PACKET_TYPE_802_11_DIRECTED_DATA NDIS_PACKET_TYPE_DIRECTED + +#define NDIS_PACKET_TYPE_802_11_BROADCAST_DATA NDIS_PACKET_TYPE_BROADCAST + +#define NDIS_PACKET_TYPE_802_11_MULTICAST_DATA NDIS_PACKET_TYPE_MULTICAST + +#define NDIS_PACKET_TYPE_802_11_ALL_MULTICAST_DATA NDIS_PACKET_TYPE_ALL_MULTICAST + +#define NDIS_PACKET_TYPE_802_11_PROMISCUOUS_DATA NDIS_PACKET_TYPE_PROMISCUOUS + +#define NDIS_PACKET_TYPE_802_11_RAW_DATA (0x00010000U) + // Raw 802.11 data packets (MPDU) + +#define NDIS_PACKET_TYPE_802_11_DIRECTED_MGMT (0x00020000U) + // Directed management packet + +#define NDIS_PACKET_TYPE_802_11_BROADCAST_MGMT (0x00040000U) + // Broadcast management packet + +#define NDIS_PACKET_TYPE_802_11_MULTICAST_MGMT (0x00080000U) + // Multicast management packet + +#define NDIS_PACKET_TYPE_802_11_ALL_MULTICAST_MGMT (0x00100000U) + // All-multicast management packet + +#define NDIS_PACKET_TYPE_802_11_PROMISCUOUS_MGMT (0x00200000U) + // Promiscuous management packet + +#define NDIS_PACKET_TYPE_802_11_RAW_MGMT (0x00400000U) + // Raw management packet + +#define NDIS_PACKET_TYPE_802_11_DIRECTED_CTRL (0x00800000U) + // Directed CTRL packet + +#define NDIS_PACKET_TYPE_802_11_BROADCAST_CTRL (0x01000000U) + // Broadcast CTRL packet + +#define NDIS_PACKET_TYPE_802_11_PROMISCUOUS_CTRL (0x02000000U) + // Promiscuous CTRL packet + +#define NDIS_PACKET_TYPE_ALL_802_11_FILTERS \ + (NDIS_PACKET_TYPE_DIRECTED | \ + NDIS_PACKET_TYPE_MULTICAST | \ + NDIS_PACKET_TYPE_ALL_MULTICAST | \ + NDIS_PACKET_TYPE_BROADCAST | \ + NDIS_PACKET_TYPE_PROMISCUOUS | \ + NDIS_PACKET_TYPE_802_11_RAW_DATA | \ + NDIS_PACKET_TYPE_802_11_DIRECTED_MGMT | \ + NDIS_PACKET_TYPE_802_11_BROADCAST_MGMT | \ + NDIS_PACKET_TYPE_802_11_MULTICAST_MGMT | \ + NDIS_PACKET_TYPE_802_11_ALL_MULTICAST_MGMT | \ + NDIS_PACKET_TYPE_802_11_PROMISCUOUS_MGMT | \ + NDIS_PACKET_TYPE_802_11_RAW_MGMT | \ + NDIS_PACKET_TYPE_802_11_DIRECTED_CTRL | \ + NDIS_PACKET_TYPE_802_11_BROADCAST_CTRL | \ + NDIS_PACKET_TYPE_802_11_PROMISCUOUS_CTRL) + + +// +// Max size of an 802.11 PDU, including the MAC header, frame body and FCS. +// +#define DOT11_MAX_PDU_SIZE 2346 + +// +// Min size of an 802.11 PDU, including the MAC header, frame body and FCS. +// +#define DOT11_MIN_PDU_SIZE (256) + +#define DOT11_MAX_NUM_DEFAULT_KEY 4 + +#if (NTDDI_VERSION >= NTDDI_WIN8 || NDIS_SUPPORT_NDIS630) +#define DOT11_MAX_NUM_DEFAULT_KEY_MFP DOT11_MAX_NUM_DEFAULT_KEY + 2 +#endif // (NTDDI_VERSION >= NTDDI_WIN8 || NDIS_SUPPORT_NDIS630) + + +// Macros for defining native 802.11 OIDs +#define OID_DOT11_NDIS_START 0x0D010300 + +#define NWF_MANDATORY_OID (0x01U) +#define NWF_OPTIONAL_OID (0x02U) + +#define NWF_OPERATIONAL_OID (0x01U) +#define NWF_STATISTICS_OID (0x02U) + +#define NWF_DEFINE_OID(Seq,o,m) ((0x0E000000U) | ((o) << 16) | ((m) << 8) | (Seq)) + +// +// Offload Capability OIDs +// + +#define OID_DOT11_OFFLOAD_CAPABILITY (OID_DOT11_NDIS_START + 0) + // Capability flags + #define DOT11_HW_WEP_SUPPORTED_TX 0x00000001 + #define DOT11_HW_WEP_SUPPORTED_RX 0x00000002 + #define DOT11_HW_FRAGMENTATION_SUPPORTED 0x00000004 + #define DOT11_HW_DEFRAGMENTATION_SUPPORTED 0x00000008 + #define DOT11_HW_MSDU_AUTH_SUPPORTED_TX 0x00000010 + #define DOT11_HW_MSDU_AUTH_SUPPORTED_RX 0x00000020 + // WEP Algorithm flags + #define DOT11_CONF_ALGO_WEP_RC4 0x00000001 // WEP RC4 + #define DOT11_CONF_ALGO_TKIP 0x00000002 + // Integrity Algorithm flags + #define DOT11_AUTH_ALGO_MICHAEL 0x00000001 // Michael + typedef struct _DOT11_OFFLOAD_CAPABILITY { + ULONG uReserved; + ULONG uFlags; + ULONG uSupportedWEPAlgorithms; + ULONG uNumOfReplayWindows; + ULONG uMaxWEPKeyMappingLength; + ULONG uSupportedAuthAlgorithms; + ULONG uMaxAuthKeyMappingLength; + } DOT11_OFFLOAD_CAPABILITY, * PDOT11_OFFLOAD_CAPABILITY; + +#define OID_DOT11_CURRENT_OFFLOAD_CAPABILITY (OID_DOT11_NDIS_START + 1) + typedef struct _DOT11_CURRENT_OFFLOAD_CAPABILITY { + ULONG uReserved; + ULONG uFlags; + } DOT11_CURRENT_OFFLOAD_CAPABILITY, * PDOT11_CURRENT_OFFLOAD_CAPABILITY; + + +// +// WEP Offload +// + +#define OID_DOT11_WEP_OFFLOAD (OID_DOT11_NDIS_START + 2) + typedef enum _DOT11_OFFLOAD_TYPE { + dot11_offload_type_wep = 1, + dot11_offload_type_auth = 2 + } DOT11_OFFLOAD_TYPE, * PDOT11_OFFLOAD_TYPE; + typedef struct _DOT11_IV48_COUNTER { + ULONG uIV32Counter; + USHORT usIV16Counter; + } DOT11_IV48_COUNTER, * PDOT11_IV48_COUNTER; + typedef struct _DOT11_WEP_OFFLOAD { + ULONG uReserved; + HANDLE hOffloadContext; + HANDLE hOffload; + DOT11_OFFLOAD_TYPE dot11OffloadType; + ULONG dwAlgorithm; + BOOLEAN bRowIsOutbound; + BOOLEAN bUseDefault; + ULONG uFlags; + UCHAR ucMacAddress[6]; + ULONG uNumOfRWsOnPeer; + ULONG uNumOfRWsOnMe; + DOT11_IV48_COUNTER dot11IV48Counters[16]; + USHORT usDot11RWBitMaps[16]; + USHORT usKeyLength; + UCHAR ucKey[1]; // Must be the last field. + } DOT11_WEP_OFFLOAD, * PDOT11_WEP_OFFLOAD; + +#define OID_DOT11_WEP_UPLOAD (OID_DOT11_NDIS_START + 3) + typedef struct _DOT11_WEP_UPLOAD { + ULONG uReserved; + DOT11_OFFLOAD_TYPE dot11OffloadType; + HANDLE hOffload; + ULONG uNumOfRWsUsed; + DOT11_IV48_COUNTER dot11IV48Counters[16]; + USHORT usDot11RWBitMaps[16]; + } DOT11_WEP_UPLOAD, * PDOT11_WEP_UPLOAD; + +#define OID_DOT11_DEFAULT_WEP_OFFLOAD (OID_DOT11_NDIS_START + 4) + typedef enum _DOT11_KEY_DIRECTION { + dot11_key_direction_both = 1, + dot11_key_direction_inbound = 2, + dot11_key_direction_outbound = 3 + } DOT11_KEY_DIRECTION, * PDOT11_KEY_DIRECTION; + typedef struct _DOT11_DEFAULT_WEP_OFFLOAD { + ULONG uReserved; + HANDLE hOffloadContext; + HANDLE hOffload; + ULONG dwIndex; + DOT11_OFFLOAD_TYPE dot11OffloadType; + ULONG dwAlgorithm; + ULONG uFlags; + DOT11_KEY_DIRECTION dot11KeyDirection; + UCHAR ucMacAddress[6]; + ULONG uNumOfRWsOnMe; + DOT11_IV48_COUNTER dot11IV48Counters[16]; + USHORT usDot11RWBitMaps[16]; + USHORT usKeyLength; + UCHAR ucKey[1]; // Must be the last field. + } DOT11_DEFAULT_WEP_OFFLOAD, * PDOT11_DEFAULT_WEP_OFFLOAD; + +#define OID_DOT11_DEFAULT_WEP_UPLOAD (OID_DOT11_NDIS_START + 5) + typedef struct _DOT11_DEFAULT_WEP_UPLOAD { + ULONG uReserved; + DOT11_OFFLOAD_TYPE dot11OffloadType; + HANDLE hOffload; + ULONG uNumOfRWsUsed; + DOT11_IV48_COUNTER dot11IV48Counters[16]; + USHORT usDot11RWBitMaps[16]; + } DOT11_DEFAULT_WEP_UPLOAD, * PDOT11_DEFAULT_WEP_UPLOAD; + +// +// Fragmentation/Defragmentation Offload +// + +#define OID_DOT11_MPDU_MAX_LENGTH (OID_DOT11_NDIS_START + 6) + // ULONG (in bytes) + +// +// 802.11 Configuration OIDs +// + +// +// OIDs for Mandatory Functions +// + +#define OID_DOT11_OPERATION_MODE_CAPABILITY (OID_DOT11_NDIS_START + 7) + #define DOT11_OPERATION_MODE_UNKNOWN 0x00000000 + #define DOT11_OPERATION_MODE_STATION 0x00000001 + #define DOT11_OPERATION_MODE_AP 0x00000002 + #define DOT11_OPERATION_MODE_EXTENSIBLE_STATION 0x00000004 + #define DOT11_OPERATION_MODE_EXTENSIBLE_AP 0x00000008 + #define DOT11_OPERATION_MODE_WFD_DEVICE 0x00000010 + #define DOT11_OPERATION_MODE_WFD_GROUP_OWNER 0x00000020 + #define DOT11_OPERATION_MODE_WFD_CLIENT 0x00000040 + #define DOT11_OPERATION_MODE_MANUFACTURING 0x40000000 + #define DOT11_OPERATION_MODE_NETWORK_MONITOR 0x80000000 + typedef struct _DOT11_OPERATION_MODE_CAPABILITY { + ULONG uReserved; + ULONG uMajorVersion; + ULONG uMinorVersion; + ULONG uNumOfTXBuffers; + ULONG uNumOfRXBuffers; + ULONG uOpModeCapability; + } DOT11_OPERATION_MODE_CAPABILITY, * PDOT11_OPERATION_MODE_CAPABILITY; + +#define OID_DOT11_CURRENT_OPERATION_MODE (OID_DOT11_NDIS_START + 8) + typedef struct _DOT11_CURRENT_OPERATION_MODE { + ULONG uReserved; + ULONG uCurrentOpMode; + } DOT11_CURRENT_OPERATION_MODE, * PDOT11_CURRENT_OPERATION_MODE; + +#define OID_DOT11_CURRENT_PACKET_FILTER (OID_DOT11_NDIS_START + 9) + #define DOT11_PACKET_TYPE_DIRECTED_CTRL 0x00000001 + // Indicate all 802.11 unicast control packets. + #define DOT11_PACKET_TYPE_DIRECTED_MGMT 0x00000002 + // Indicate all 802.11 unicast management packets. + #define DOT11_PACKET_TYPE_DIRECTED_DATA 0x00000004 + // Indicate all 802.11 unicast data packets. + #define DOT11_PACKET_TYPE_MULTICAST_CTRL 0x00000008 + // Indicate all 802.11 multicast control packets. + #define DOT11_PACKET_TYPE_MULTICAST_MGMT 0x00000010 + // Indicate all 802.11 multicast management packets. + #define DOT11_PACKET_TYPE_MULTICAST_DATA 0x00000020 + // Indicate all 802.11 multicast data packets. + #define DOT11_PACKET_TYPE_BROADCAST_CTRL 0x00000040 + // Indicate all 802.11 broadcast control packets. + #define DOT11_PACKET_TYPE_BROADCAST_MGMT 0x00000080 + // Indicate all 802.11 broadcast management packets. + #define DOT11_PACKET_TYPE_BROADCAST_DATA 0x00000100 + // Indicate all 802.11 broadcast data packets. + #define DOT11_PACKET_TYPE_PROMISCUOUS_CTRL 0x00000200 + // Move into promiscuous mode and indicate all 802.11 control packets. + #define DOT11_PACKET_TYPE_PROMISCUOUS_MGMT 0x00000400 + // Move into promiscuous mode and indicate all 802.11 control packets. + #define DOT11_PACKET_TYPE_PROMISCUOUS_DATA 0x00000800 + // Move into promiscuous mode and indicate all 802.11 control packets. + #define DOT11_PACKET_TYPE_ALL_MULTICAST_CTRL 0x00001000 + // Indicate all 802.11 multicast control packets. + #define DOT11_PACKET_TYPE_ALL_MULTICAST_MGMT 0x00002000 + // Indicate all 802.11 multicast management packets. + #define DOT11_PACKET_TYPE_ALL_MULTICAST_DATA 0x00004000 + // Indicate all 802.11 multicast data packets. + #define DOT11_PACKET_TYPE_RESERVED (~( \ + DOT11_PACKET_TYPE_DIRECTED_CTRL | \ + DOT11_PACKET_TYPE_DIRECTED_MGMT | \ + DOT11_PACKET_TYPE_DIRECTED_DATA | \ + DOT11_PACKET_TYPE_MULTICAST_CTRL | \ + DOT11_PACKET_TYPE_MULTICAST_MGMT | \ + DOT11_PACKET_TYPE_MULTICAST_DATA | \ + DOT11_PACKET_TYPE_BROADCAST_CTRL | \ + DOT11_PACKET_TYPE_BROADCAST_MGMT | \ + DOT11_PACKET_TYPE_BROADCAST_DATA | \ + DOT11_PACKET_TYPE_PROMISCUOUS_CTRL | \ + DOT11_PACKET_TYPE_PROMISCUOUS_MGMT | \ + DOT11_PACKET_TYPE_PROMISCUOUS_DATA | \ + DOT11_PACKET_TYPE_ALL_MULTICAST_CTRL | \ + DOT11_PACKET_TYPE_ALL_MULTICAST_MGMT | \ + DOT11_PACKET_TYPE_ALL_MULTICAST_DATA | \ + 0 \ + )) + // All the reserved bits + +#define OID_DOT11_ATIM_WINDOW (OID_DOT11_NDIS_START + 10) + // ULONG (in TUs) + +#define OID_DOT11_SCAN_REQUEST (OID_DOT11_NDIS_START + 11) + + typedef enum _DOT11_SCAN_TYPE { + dot11_scan_type_active = 1, + dot11_scan_type_passive = 2, + dot11_scan_type_auto = 3, + dot11_scan_type_forced = 0x80000000 + } DOT11_SCAN_TYPE, * PDOT11_SCAN_TYPE; + typedef struct _DOT11_SCAN_REQUEST { + DOT11_BSS_TYPE dot11BSSType; + DOT11_MAC_ADDRESS dot11BSSID; + DOT11_SSID dot11SSID; + DOT11_SCAN_TYPE dot11ScanType; + BOOLEAN bRestrictedScan; + BOOLEAN bUseRequestIE; + ULONG uRequestIDsOffset; + ULONG uNumOfRequestIDs; + ULONG uPhyTypesOffset; + ULONG uNumOfPhyTypes; + ULONG uIEsOffset; + ULONG uIEsLength; + UCHAR ucBuffer[1]; + } DOT11_SCAN_REQUEST, * PDOT11_SCAN_REQUEST; + + // V2 SCAN REQUEST + typedef enum _CH_DESCRIPTION_TYPE { + ch_description_type_logical = 1, + ch_description_type_center_frequency = 2, + ch_description_type_phy_specific + } CH_DESCRIPTION_TYPE, * PCH_DESCRIPTION_TYPE; + typedef struct _DOT11_PHY_TYPE_INFO { + DOT11_PHY_TYPE dot11PhyType; + BOOLEAN bUseParameters; + ULONG uProbeDelay; + ULONG uMinChannelTime; + ULONG uMaxChannelTime; + CH_DESCRIPTION_TYPE ChDescriptionType; + ULONG uChannelListSize; + UCHAR ucChannelListBuffer[1]; + } DOT11_PHY_TYPE_INFO, * PDOT11_PHY_TYPE_INFO; + + typedef struct _DOT11_SCAN_REQUEST_V2 { + DOT11_BSS_TYPE dot11BSSType; + DOT11_MAC_ADDRESS dot11BSSID; + DOT11_SCAN_TYPE dot11ScanType; + BOOLEAN bRestrictedScan; + ULONG udot11SSIDsOffset; + ULONG uNumOfdot11SSIDs; + BOOLEAN bUseRequestIE; + ULONG uRequestIDsOffset; + ULONG uNumOfRequestIDs; + ULONG uPhyTypeInfosOffset; + ULONG uNumOfPhyTypeInfos; + ULONG uIEsOffset; + ULONG uIEsLength; + UCHAR ucBuffer[1]; + } DOT11_SCAN_REQUEST_V2, * PDOT11_SCAN_REQUEST_V2; + +#define OID_DOT11_CURRENT_PHY_TYPE (OID_DOT11_NDIS_START + 12) + typedef struct DOT11_PHY_TYPE_LIST { + #define DOT11_PHY_TYPE_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_PHY_TYPE dot11PhyType[1]; + } DOT11_PHY_TYPE_LIST, * PDOT11_PHY_TYPE_LIST; + +#define OID_DOT11_JOIN_REQUEST (OID_DOT11_NDIS_START + 13) + + // Capability Information Flags - Exactly maps to the bit positions + // in the Capability Information field of the beacon and probe response frames. + #define DOT11_CAPABILITY_INFO_ESS 0x0001 + #define DOT11_CAPABILITY_INFO_IBSS 0x0002 + #define DOT11_CAPABILITY_INFO_CF_POLLABLE 0x0004 + #define DOT11_CAPABILITY_INFO_CF_POLL_REQ 0x0008 + #define DOT11_CAPABILITY_INFO_PRIVACY 0x0010 + #define DOT11_CAPABILITY_SHORT_PREAMBLE 0x0020 + #define DOT11_CAPABILITY_PBCC 0x0040 + #define DOT11_CAPABILITY_CHANNEL_AGILITY 0x0080 + #define DOT11_CAPABILITY_SHORT_SLOT_TIME 0x0400 + #define DOT11_CAPABILITY_DSSSOFDM 0x2000 + + typedef struct _DOT11_BSS_DESCRIPTION { + ULONG uReserved; // Passed-in as 0 and must be ignored for now. + DOT11_MAC_ADDRESS dot11BSSID; + DOT11_BSS_TYPE dot11BSSType; + USHORT usBeaconPeriod; + ULONGLONG ullTimestamp; + USHORT usCapabilityInformation; + ULONG uBufferLength; +#ifdef __midl + [unique, size_is(uBufferLength)] UCHAR ucBuffer[*]; +#else + UCHAR ucBuffer[1]; // Must be the last field. +#endif + } DOT11_BSS_DESCRIPTION, * PDOT11_BSS_DESCRIPTION; + typedef struct _DOT11_JOIN_REQUEST { + ULONG uJoinFailureTimeout; + DOT11_RATE_SET OperationalRateSet; + ULONG uChCenterFrequency; + DOT11_BSS_DESCRIPTION dot11BSSDescription; // Must be the last field. + } DOT11_JOIN_REQUEST, * PDOT11_JOIN_REQUEST; + +#define OID_DOT11_START_REQUEST (OID_DOT11_NDIS_START + 14) + typedef struct _DOT11_START_REQUEST { + ULONG uStartFailureTimeout; + DOT11_RATE_SET OperationalRateSet; + ULONG uChCenterFrequency; + DOT11_BSS_DESCRIPTION dot11BSSDescription; // Must be the last field. + } DOT11_START_REQUEST, * PDOT11_START_REQUEST; + +#define OID_DOT11_UPDATE_IE (OID_DOT11_NDIS_START + 15) +typedef enum _DOT11_UPDATE_IE_OP { + dot11_update_ie_op_create_replace = 1, + dot11_update_ie_op_delete = 2, +} DOT11_UPDATE_IE_OP, * PDOT11_UPDATE_IE_OP; + +typedef struct _DOT11_UPDATE_IE { + DOT11_UPDATE_IE_OP dot11UpdateIEOp; + ULONG uBufferLength; + UCHAR ucBuffer[1]; // Must be the last field. +} DOT11_UPDATE_IE, * PDOT11_UPDATE_IE; + +#define OID_DOT11_RESET_REQUEST (OID_DOT11_NDIS_START + 16) + typedef enum _DOT11_RESET_TYPE { + dot11_reset_type_phy = 1, + dot11_reset_type_mac = 2, + dot11_reset_type_phy_and_mac = 3 + } DOT11_RESET_TYPE, * PDOT11_RESET_TYPE; + typedef struct _DOT11_RESET_REQUEST { + DOT11_RESET_TYPE dot11ResetType; + DOT11_MAC_ADDRESS dot11MacAddress; + BOOLEAN bSetDefaultMIB; + } DOT11_RESET_REQUEST, * PDOT11_RESET_REQUEST; + +#define OID_DOT11_NIC_POWER_STATE (OID_DOT11_NDIS_START + 17) + // BOOL + +// +// OIDs for Optional Functions +// + +#define OID_DOT11_OPTIONAL_CAPABILITY (OID_DOT11_NDIS_START + 18) + typedef struct _DOT11_OPTIONAL_CAPABILITY { + ULONG uReserved; + BOOLEAN bDot11PCF; + BOOLEAN bDot11PCFMPDUTransferToPC; + BOOLEAN bStrictlyOrderedServiceClass; + } DOT11_OPTIONAL_CAPABILITY, * PDOT11_OPTIONAL_CAPABILITY; + +#define OID_DOT11_CURRENT_OPTIONAL_CAPABILITY (OID_DOT11_NDIS_START + 19) + typedef struct _DOT11_CURRENT_OPTIONAL_CAPABILITY { + ULONG uReserved; + BOOLEAN bDot11CFPollable; + BOOLEAN bDot11PCF; + BOOLEAN bDot11PCFMPDUTransferToPC; + BOOLEAN bStrictlyOrderedServiceClass; + } DOT11_CURRENT_OPTIONAL_CAPABILITY, * PDOT11_CURRENT_OPTIONAL_CAPABILITY; + +// +// 802.11 MIB OIDs +// + +// +// OIDs for dot11StationConfigEntry +// + +#define OID_DOT11_STATION_ID (OID_DOT11_NDIS_START + 20) + // DOT11_MAC_ADDRESS + +#define OID_DOT11_MEDIUM_OCCUPANCY_LIMIT (OID_DOT11_NDIS_START + 21) + // ULONG (in TUs) + +#define OID_DOT11_CF_POLLABLE (OID_DOT11_NDIS_START + 22) + // BOOL + +#define OID_DOT11_CFP_PERIOD (OID_DOT11_NDIS_START + 23) + // ULONG (in DTIM intervals) + +#define OID_DOT11_CFP_MAX_DURATION (OID_DOT11_NDIS_START + 24) + // ULONG (in TUs) + +#define OID_DOT11_POWER_MGMT_MODE (OID_DOT11_NDIS_START + 25) + typedef enum _DOT11_POWER_MODE { + dot11_power_mode_unknown = 0, + dot11_power_mode_active = 1, + dot11_power_mode_powersave = 2 + } DOT11_POWER_MODE, * PDOT11_POWER_MODE; + #define DOT11_POWER_SAVE_LEVEL_MAX_PSP 1 + // Maximum power save polling. + #define DOT11_POWER_SAVE_LEVEL_FAST_PSP 2 + // Fast power save polling. + typedef struct _DOT11_POWER_MGMT_MODE { + DOT11_POWER_MODE dot11PowerMode; + ULONG uPowerSaveLevel; + USHORT usListenInterval; + USHORT usAID; + BOOLEAN bReceiveDTIMs; + } DOT11_POWER_MGMT_MODE, * PDOT11_POWER_MGMT_MODE; + +#define OID_DOT11_OPERATIONAL_RATE_SET (OID_DOT11_NDIS_START + 26) + // DOT11_RATE_SET + +#define OID_DOT11_BEACON_PERIOD (OID_DOT11_NDIS_START + 27) + // ULONG (in TUs) + +#define OID_DOT11_DTIM_PERIOD (OID_DOT11_NDIS_START + 28) + // ULONG (in beacon intervals) + +// +// OIDs for Dot11PrivacyEntry +// + +#define OID_DOT11_WEP_ICV_ERROR_COUNT (OID_DOT11_NDIS_START + 29) + // ULONG + +// +// OIDs for dot11OperationEntry +// + +#define OID_DOT11_MAC_ADDRESS (OID_DOT11_NDIS_START + 30) + // DOT11_MAC_ADDRESS + +#define OID_DOT11_RTS_THRESHOLD (OID_DOT11_NDIS_START + 31) + // ULONG (in number of octets) + +#define OID_DOT11_SHORT_RETRY_LIMIT (OID_DOT11_NDIS_START + 32) + // ULONG + +#define OID_DOT11_LONG_RETRY_LIMIT (OID_DOT11_NDIS_START + 33) + // ULONG + +#define OID_DOT11_FRAGMENTATION_THRESHOLD (OID_DOT11_NDIS_START + 34) + // ULONG (in number of octets) + +#define OID_DOT11_MAX_TRANSMIT_MSDU_LIFETIME (OID_DOT11_NDIS_START + 35) + // ULONG (in TUs) + +#define OID_DOT11_MAX_RECEIVE_LIFETIME (OID_DOT11_NDIS_START + 36) + // ULONG (in TUs) + +// +// OIDs for dot11CountersEntry +// + +#define OID_DOT11_COUNTERS_ENTRY (OID_DOT11_NDIS_START + 37) + typedef struct _DOT11_COUNTERS_ENTRY { + ULONG uTransmittedFragmentCount; + ULONG uMulticastTransmittedFrameCount; + ULONG uFailedCount; + ULONG uRetryCount; + ULONG uMultipleRetryCount; + ULONG uFrameDuplicateCount; + ULONG uRTSSuccessCount; + ULONG uRTSFailureCount; + ULONG uACKFailureCount; + ULONG uReceivedFragmentCount; + ULONG uMulticastReceivedFrameCount; + ULONG uFCSErrorCount; + ULONG uTransmittedFrameCount; + } DOT11_COUNTERS_ENTRY, * PDOT11_COUNTERS_ENTRY; + +// +// OIDs for dot11PhyOperationEntry +// + +#define OID_DOT11_SUPPORTED_PHY_TYPES (OID_DOT11_NDIS_START + 38) + typedef struct _DOT11_SUPPORTED_PHY_TYPES { + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_PHY_TYPE dot11PHYType[1]; + } DOT11_SUPPORTED_PHY_TYPES, * PDOT11_SUPPORTED_PHY_TYPES; + +#define OID_DOT11_CURRENT_REG_DOMAIN (OID_DOT11_NDIS_START + 39) + #define DOT11_REG_DOMAIN_OTHER 0x00000000 + #define DOT11_REG_DOMAIN_FCC 0x00000010 + #define DOT11_REG_DOMAIN_DOC 0x00000020 + #define DOT11_REG_DOMAIN_ETSI 0x00000030 + #define DOT11_REG_DOMAIN_SPAIN 0x00000031 + #define DOT11_REG_DOMAIN_FRANCE 0x00000032 + #define DOT11_REG_DOMAIN_MKK 0x00000040 + // ULONG + +#define OID_DOT11_TEMP_TYPE (OID_DOT11_NDIS_START + 40) + typedef enum _DOT11_TEMP_TYPE { + dot11_temp_type_unknown = 0, + dot11_temp_type_1 = 1, + dot11_temp_type_2 = 2 + } DOT11_TEMP_TYPE, * PDOT11_TEMP_TYPE; + +// +// OIDs for dot11PhyAntennaEntry +// + +#define OID_DOT11_CURRENT_TX_ANTENNA (OID_DOT11_NDIS_START + 41) + // ULONG + +#define OID_DOT11_DIVERSITY_SUPPORT (OID_DOT11_NDIS_START + 42) + typedef enum _DOT11_DIVERSITY_SUPPORT { + dot11_diversity_support_unknown = 0, + dot11_diversity_support_fixedlist = 1, + dot11_diversity_support_notsupported = 2, + dot11_diversity_support_dynamic = 3 + } DOT11_DIVERSITY_SUPPORT, * PDOT11_DIVERSITY_SUPPORT; + +#define OID_DOT11_CURRENT_RX_ANTENNA (OID_DOT11_NDIS_START + 43) + // ULONG + +// +// OIDs for dot11PhyTxPowerEntry +// + +#define OID_DOT11_SUPPORTED_POWER_LEVELS (OID_DOT11_NDIS_START + 44) + typedef struct _DOT11_SUPPORTED_POWER_LEVELS { + ULONG uNumOfSupportedPowerLevels; + _Field_size_part_(8, uNumOfSupportedPowerLevels) ULONG uTxPowerLevelValues[8]; + } DOT11_SUPPORTED_POWER_LEVELS, * PDOT11_SUPPORTED_POWER_LEVELS; + +#define OID_DOT11_CURRENT_TX_POWER_LEVEL (OID_DOT11_NDIS_START + 45) + // ULONG + +// +// OIDs for dot11PhyFHSSEntry +// + +#define OID_DOT11_HOP_TIME (OID_DOT11_NDIS_START + 46) + // ULONG (in microseconds) + +#define OID_DOT11_CURRENT_CHANNEL_NUMBER (OID_DOT11_NDIS_START + 47) + // ULONG + +#define OID_DOT11_MAX_DWELL_TIME (OID_DOT11_NDIS_START + 48) + // ULONG (in TUs) + +#define OID_DOT11_CURRENT_DWELL_TIME (OID_DOT11_NDIS_START + 49) + // ULONG (in TUs) + +#define OID_DOT11_CURRENT_SET (OID_DOT11_NDIS_START + 50) + // ULONG + +#define OID_DOT11_CURRENT_PATTERN (OID_DOT11_NDIS_START + 51) + // ULONG + +#define OID_DOT11_CURRENT_INDEX (OID_DOT11_NDIS_START + 52) + // ULONG + +// +// OIDs for dot11PhyDSSSEntry +// + +#define OID_DOT11_CURRENT_CHANNEL (OID_DOT11_NDIS_START + 53) + // ULONG + +#define OID_DOT11_CCA_MODE_SUPPORTED (OID_DOT11_NDIS_START + 54) + #define DOT11_CCA_MODE_ED_ONLY 0x00000001 + #define DOT11_CCA_MODE_CS_ONLY 0x00000002 + #define DOT11_CCA_MODE_ED_and_CS 0x00000004 + #define DOT11_CCA_MODE_CS_WITH_TIMER 0x00000008 + #define DOT11_CCA_MODE_HRCS_AND_ED 0x00000010 + + // ULONG + +#define OID_DOT11_CURRENT_CCA_MODE (OID_DOT11_NDIS_START + 55) + // ULONG + +#define OID_DOT11_ED_THRESHOLD (OID_DOT11_NDIS_START + 56) + // LONG (in "dBm"s) + +// +// OIDs for dot11PhyIREntry +// + +#define OID_DOT11_CCA_WATCHDOG_TIMER_MAX (OID_DOT11_NDIS_START + 57) + // ULONG (in nanoseconds) + +#define OID_DOT11_CCA_WATCHDOG_COUNT_MAX (OID_DOT11_NDIS_START + 58) + // ULONG + +#define OID_DOT11_CCA_WATCHDOG_TIMER_MIN (OID_DOT11_NDIS_START + 59) + // ULONG (in nanoseconds) + +#define OID_DOT11_CCA_WATCHDOG_COUNT_MIN (OID_DOT11_NDIS_START + 60) + // ULONG + +// +// OIDs for dot11RegDomainsSupportEntry +// + +#define OID_DOT11_REG_DOMAINS_SUPPORT_VALUE (OID_DOT11_NDIS_START + 61) + typedef struct _DOT11_REG_DOMAIN_VALUE { + ULONG uRegDomainsSupportIndex; + ULONG uRegDomainsSupportValue; + } DOT11_REG_DOMAIN_VALUE, * PDOT11_REG_DOMAIN_VALUE; + typedef struct _DOT11_REG_DOMAINS_SUPPORT_VALUE { + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_REG_DOMAIN_VALUE dot11RegDomainValue[1]; + } DOT11_REG_DOMAINS_SUPPORT_VALUE, * PDOT11_REG_DOMAINS_SUPPORT_VALUE; + +// +// OIDs for dot11AntennaListEntry +// + +#define OID_DOT11_SUPPORTED_TX_ANTENNA (OID_DOT11_NDIS_START + 62) + typedef struct _DOT11_SUPPORTED_ANTENNA { + ULONG uAntennaListIndex; // Between 1 and 255. + BOOLEAN bSupportedAntenna; + } DOT11_SUPPORTED_ANTENNA, * PDOT11_SUPPORTED_ANTENNA; + typedef struct _DOT11_SUPPORTED_ANTENNA_LIST { + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_SUPPORTED_ANTENNA dot11SupportedAntenna[1]; + } DOT11_SUPPORTED_ANTENNA_LIST, * PDOT11_SUPPORTED_ANTENNA_LIST; + +#define OID_DOT11_SUPPORTED_RX_ANTENNA (OID_DOT11_NDIS_START + 63) + // DOT11_SUPPORTED_ANTENNA_LIST + +#define OID_DOT11_DIVERSITY_SELECTION_RX (OID_DOT11_NDIS_START + 64) + typedef struct _DOT11_DIVERSITY_SELECTION_RX { + ULONG uAntennaListIndex; // Between 1 and 255. + BOOLEAN bDiversitySelectionRX; + } DOT11_DIVERSITY_SELECTION_RX, * PDOT11_DIVERSITY_SELECTION_RX; + typedef struct _DOT11_DIVERSITY_SELECTION_RX_LIST { + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_DIVERSITY_SELECTION_RX dot11DiversitySelectionRx[1]; + } DOT11_DIVERSITY_SELECTION_RX_LIST, * PDOT11_DIVERSITY_SELECTION_RX_LIST; + +// +// OIDs for dot11SupportedDataRatesTxEntry and dot11SupportedDataRatesRxEntry +// + +#define OID_DOT11_SUPPORTED_DATA_RATES_VALUE (OID_DOT11_NDIS_START + 65) + #define MAX_NUM_SUPPORTED_RATES 8 // 8 data rates + #define MAX_NUM_SUPPORTED_RATES_V2 255 // 255 data rates + typedef struct _DOT11_SUPPORTED_DATA_RATES_VALUE { + UCHAR ucSupportedTxDataRatesValue[MAX_NUM_SUPPORTED_RATES]; + UCHAR ucSupportedRxDataRatesValue[MAX_NUM_SUPPORTED_RATES]; + } DOT11_SUPPORTED_DATA_RATES_VALUE, * PDOT11_SUPPORTED_DATA_RATES_VALUE; + + typedef struct _DOT11_SUPPORTED_DATA_RATES_VALUE_V2 { + UCHAR ucSupportedTxDataRatesValue[MAX_NUM_SUPPORTED_RATES_V2]; + UCHAR ucSupportedRxDataRatesValue[MAX_NUM_SUPPORTED_RATES_V2]; + } DOT11_SUPPORTED_DATA_RATES_VALUE_V2, * PDOT11_SUPPORTED_DATA_RATES_VALUE_V2; + + // keep the incorrect struct name to avoid build break + typedef DOT11_SUPPORTED_DATA_RATES_VALUE_V2 + DOT11_SUPPORTED_DATA_RATES_VALUE_V1, * PDOT11_SUPPORTED_DATA_RATES_VALUE_V1; + +// +// OIDs for dot11PhyOFDMEntry +// + +#define OID_DOT11_CURRENT_FREQUENCY (OID_DOT11_NDIS_START + 66) + // ULONG + +#define OID_DOT11_TI_THRESHOLD (OID_DOT11_NDIS_START + 67) + // LONG + +#define OID_DOT11_FREQUENCY_BANDS_SUPPORTED (OID_DOT11_NDIS_START + 68) + #define DOT11_FREQUENCY_BANDS_LOWER 0x00000001 + #define DOT11_FREQUENCY_BANDS_MIDDLE 0x00000002 + #define DOT11_FREQUENCY_BANDS_UPPER 0x00000004 + // ULONG + +// +// OIDs for dot11PhyHRDSSSEntry +// + +#define OID_DOT11_SHORT_PREAMBLE_OPTION_IMPLEMENTED (OID_DOT11_NDIS_START + 69) + // BOOL + +#define OID_DOT11_PBCC_OPTION_IMPLEMENTED (OID_DOT11_NDIS_START + 70) + // BOOL + +#define OID_DOT11_CHANNEL_AGILITY_PRESENT (OID_DOT11_NDIS_START + 71) + // BOOL + +#define OID_DOT11_CHANNEL_AGILITY_ENABLED (OID_DOT11_NDIS_START + 72) + // BOOL + +#define OID_DOT11_HR_CCA_MODE_SUPPORTED (OID_DOT11_NDIS_START + 73) + // HR-CCA mode bits + #define DOT11_HR_CCA_MODE_ED_ONLY 0x00000001 + #define DOT11_HR_CCA_MODE_CS_ONLY 0x00000002 + #define DOT11_HR_CCA_MODE_CS_AND_ED 0x00000004 + #define DOT11_HR_CCA_MODE_CS_WITH_TIMER 0x00000008 + #define DOT11_HR_CCA_MODE_HRCS_AND_ED 0x00000010 + // ULONG + + +// +// OIDs for dot11StationConfigEntry (Cont) +// + +#define OID_DOT11_MULTI_DOMAIN_CAPABILITY_IMPLEMENTED (OID_DOT11_NDIS_START + 74) + // BOOL + +#define OID_DOT11_MULTI_DOMAIN_CAPABILITY_ENABLED (OID_DOT11_NDIS_START + 75) + // BOOL + +#define OID_DOT11_COUNTRY_STRING (OID_DOT11_NDIS_START + 76) + // UCHAR[3] + +// +// OIDs for dot11MultiDomainCapabilityEntry +// + +typedef struct _DOT11_MULTI_DOMAIN_CAPABILITY_ENTRY { + ULONG uMultiDomainCapabilityIndex; + ULONG uFirstChannelNumber; + ULONG uNumberOfChannels; + LONG lMaximumTransmitPowerLevel; +} DOT11_MULTI_DOMAIN_CAPABILITY_ENTRY, *PDOT11_MULTI_DOMAIN_CAPABILITY_ENTRY; +typedef struct _DOT11_MD_CAPABILITY_ENTRY_LIST { + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_MULTI_DOMAIN_CAPABILITY_ENTRY dot11MDCapabilityEntry[1]; +} DOT11_MD_CAPABILITY_ENTRY_LIST, *PDOT11_MD_CAPABILITY_ENTRY_LIST; + + +#define OID_DOT11_MULTI_DOMAIN_CAPABILITY (OID_DOT11_NDIS_START + 77) + // DOT11_MD_CAPABILITY_ENTRY_LIST + +// +// OIDs for dot11PhyFHSSEntry +// + +#define OID_DOT11_EHCC_PRIME_RADIX (OID_DOT11_NDIS_START + 78) + // ULONG + +#define OID_DOT11_EHCC_NUMBER_OF_CHANNELS_FAMILY_INDEX (OID_DOT11_NDIS_START + 79) + // ULONG + +#define OID_DOT11_EHCC_CAPABILITY_IMPLEMENTED (OID_DOT11_NDIS_START + 80) + // BOOL + +#define OID_DOT11_EHCC_CAPABILITY_ENABLED (OID_DOT11_NDIS_START + 81) + // BOOL + +#define OID_DOT11_HOP_ALGORITHM_ADOPTED (OID_DOT11_NDIS_START + 82) + typedef enum _DOT11_HOP_ALGO_ADOPTED { + dot11_hop_algo_current = 0, + dot11_hop_algo_hop_index = 1, + dot11_hop_algo_hcc = 2 + } DOT11_HOP_ALGO_ADOPTED, * PDOT11_HOP_ALGO_ADOPTED; + +#define OID_DOT11_RANDOM_TABLE_FLAG (OID_DOT11_NDIS_START + 83) + // BOOL + +#define OID_DOT11_NUMBER_OF_HOPPING_SETS (OID_DOT11_NDIS_START + 84) + // ULONG + +#define OID_DOT11_HOP_MODULUS (OID_DOT11_NDIS_START + 85) + // ULONG + +#define OID_DOT11_HOP_OFFSET (OID_DOT11_NDIS_START + 86) + // ULONG + + +// +// OIDs for dot11HoppingPatternEntry +// +#define OID_DOT11_HOPPING_PATTERN (OID_DOT11_NDIS_START + 87) +typedef struct _DOT11_HOPPING_PATTERN_ENTRY { + ULONG uHoppingPatternIndex; + ULONG uRandomTableFieldNumber; +} DOT11_HOPPING_PATTERN_ENTRY, *PDOT11_HOPPING_PATTERN_ENTRY; +typedef struct _DOT11_HOPPING_PATTERN_ENTRY_LIST { + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_HOPPING_PATTERN_ENTRY dot11HoppingPatternEntry[1]; +} DOT11_HOPPING_PATTERN_ENTRY_LIST, *PDOT11_HOPPING_PATTERN_ENTRY_LIST; + + +#define OID_DOT11_RANDOM_TABLE_FIELD_NUMBER (OID_DOT11_NDIS_START + 88) + // ULONG + +// +// WPA Extensions +// + +#define OID_DOT11_WPA_TSC (OID_DOT11_NDIS_START + 89) +typedef struct _DOT11_WPA_TSC { + ULONG uReserved; + DOT11_OFFLOAD_TYPE dot11OffloadType; + HANDLE hOffload; + DOT11_IV48_COUNTER dot11IV48Counter; +} DOT11_WPA_TSC, * PDOT11_WPA_TSC; + +// +// dot11. +// + +#define OID_DOT11_RSSI_RANGE (OID_DOT11_NDIS_START + 90) +typedef struct _DOT11_RSSI_RANGE { + DOT11_PHY_TYPE dot11PhyType; + ULONG uRSSIMin; // Minimum caliberation value of RSSI in the NIC. + ULONG uRSSIMax; // Maximum caliberation value of RSSI in the NIC. +} DOT11_RSSI_RANGE, * PDOT11_RSSI_RANGE; + +#define OID_DOT11_RF_USAGE (OID_DOT11_NDIS_START + 91) +//ULONG + +#define OID_DOT11_NIC_SPECIFIC_EXTENSION (OID_DOT11_NDIS_START + 92) +typedef struct _DOT11_NIC_SPECIFIC_EXTENSION { + ULONG uBufferLength; + ULONG uTotalBufferLength; + UCHAR ucBuffer[1]; +} DOT11_NIC_SPECIFIC_EXTENSION, * PDOT11_NIC_SPECIFIC_EXTENSION; + +// +// AP join request +// + +#define OID_DOT11_AP_JOIN_REQUEST (OID_DOT11_NDIS_START + 93) + typedef struct _DOT11_AP_JOIN_REQUEST { + ULONG uJoinFailureTimeout; + DOT11_RATE_SET OperationalRateSet; + ULONG uChCenterFrequency; + DOT11_BSS_DESCRIPTION dot11BSSDescription; // Must be the last field. + } DOT11_AP_JOIN_REQUEST, * PDOT11_AP_JOIN_REQUEST; + +// +// dot11PhyERPEntry +// +#define OID_DOT11_ERP_PBCC_OPTION_IMPLEMENTED (OID_DOT11_NDIS_START + 94) + // BOOL + +#define OID_DOT11_ERP_PBCC_OPTION_ENABLED (OID_DOT11_NDIS_START + 95) + // BOOL + +#define OID_DOT11_DSSS_OFDM_OPTION_IMPLEMENTED (OID_DOT11_NDIS_START + 96) + // BOOL + +#define OID_DOT11_DSSS_OFDM_OPTION_ENABLED (OID_DOT11_NDIS_START + 97) + // BOOL + +#define OID_DOT11_SHORT_SLOT_TIME_OPTION_IMPLEMENTED (OID_DOT11_NDIS_START + 98) + // BOOL + +#define OID_DOT11_SHORT_SLOT_TIME_OPTION_ENABLED (OID_DOT11_NDIS_START + 99) + // BOOL + +#define OID_DOT11_MAX_MAC_ADDRESS_STATES (OID_DOT11_NDIS_START + 100) + // ULONG + +#define OID_DOT11_RECV_SENSITIVITY_LIST (OID_DOT11_NDIS_START + 101) + // DOT11_RECV_SENSITIVITY_LIST + + typedef struct _DOT11_RECV_SENSITIVITY { + UCHAR ucDataRate; + LONG lRSSIMin; + LONG lRSSIMax; + } DOT11_RECV_SENSITIVITY, * PDOT11_RECV_SENSITIVITY; + + typedef struct _DOT11_RECV_SENSITIVITY_LIST { + union { + DOT11_PHY_TYPE dot11PhyType; + ULONG uPhyId; + }; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_RECV_SENSITIVITY dot11RecvSensitivity[1]; + } DOT11_RECV_SENSITIVITY_LIST, * PDOT11_RECV_SENSITIVITY_LIST; + + +// +// WME +// + +#define OID_DOT11_WME_IMPLEMENTED (OID_DOT11_NDIS_START + 102) + // BOOL + +#define OID_DOT11_WME_ENABLED (OID_DOT11_NDIS_START + 103) + // BOOL + +#define OID_DOT11_WME_AC_PARAMETERS (OID_DOT11_NDIS_START + 104) + typedef enum _DOT11_AC_PARAM { + dot11_AC_param_BE = 0, // Best Effort + dot11_AC_param_BK = 1, // Background + dot11_AC_param_VI = 2, // Video + dot11_AC_param_VO = 3, // Voice + dot11_AC_param_max + } DOT11_AC_PARAM, * PDOT11_AC_PARAM; + typedef struct _DOT11_WME_AC_PARAMETERS { + UCHAR ucAccessCategoryIndex; + UCHAR ucAIFSN; + UCHAR ucECWmin; + UCHAR ucECWmax; + USHORT usTXOPLimit; + } DOT11_WME_AC_PARAMETERS, * PDOT11_WME_AC_PARAMETERS; + typedef struct _DOT11_WME_AC_PARAMTERS_LIST { + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_WME_AC_PARAMETERS dot11WMEACParameters[1]; + } DOT11_WME_AC_PARAMETERS_LIST, * PDOT11_WME_AC_PARAMETERS_LIST; + +#define OID_DOT11_WME_UPDATE_IE (OID_DOT11_NDIS_START + 105) + typedef struct _DOT11_WME_UPDATE_IE { + ULONG uParamElemMinBeaconIntervals; + ULONG uWMEInfoElemOffset; + ULONG uWMEInfoElemLength; + ULONG uWMEParamElemOffset; + ULONG uWMEParamElemLength; + UCHAR ucBuffer[1]; // Must be the last field. + } DOT11_WME_UPDATE_IE, * PDOT11_WME_UPDATE_IE; + +// +// QoS +// +#define OID_DOT11_QOS_TX_QUEUES_SUPPORTED (OID_DOT11_NDIS_START + 106) + // ULONG + +#define OID_DOT11_QOS_TX_DURATION (OID_DOT11_NDIS_START + 107) + typedef struct _DOT11_QOS_TX_DURATION { + ULONG uNominalMSDUSize; + ULONG uMinPHYRate; + ULONG uDuration; + } DOT11_QOS_TX_DURATION, * PDOT11_QOS_TX_DURATION; + +#define OID_DOT11_QOS_TX_MEDIUM_TIME (OID_DOT11_NDIS_START + 108) + typedef struct _DOT11_QOS_TX_MEDIUM_TIME { + DOT11_MAC_ADDRESS dot11PeerAddress; + UCHAR ucQoSPriority; + ULONG uMediumTimeAdmited; + } DOT11_QOS_TX_MEDIUM_TIME, * PDOT11_QOS_TX_MEDIUM_TIME; + +// +// NIC supported channel/center frequency list +// +#define OID_DOT11_SUPPORTED_OFDM_FREQUENCY_LIST (OID_DOT11_NDIS_START + 109) + typedef struct _DOT11_SUPPORTED_OFDM_FREQUENCY { + ULONG uCenterFrequency; + } DOT11_SUPPORTED_OFDM_FREQUENCY, * PDOT11_SUPPORTED_OFDM_FREQUENCY; + typedef struct _DOT11_SUPPORTED_OFDM_FREQUENCY_LIST { + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_SUPPORTED_OFDM_FREQUENCY dot11SupportedOFDMFrequency[1]; + } DOT11_SUPPORTED_OFDM_FREQUENCY_LIST, * PDOT11_SUPPORTED_OFDM_FREQUENCY_LIST; + +#define OID_DOT11_SUPPORTED_DSSS_CHANNEL_LIST (OID_DOT11_NDIS_START + 110) + typedef struct _DOT11_SUPPORTED_DSSS_CHANNEL { + ULONG uChannel; + } DOT11_SUPPORTED_DSSS_CHANNEL, * PDOT11_SUPPORTED_DSSS_CHANNEL; + typedef struct _DOT11_SUPPORTED_DSSS_CHANNEL_LIST { + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_SUPPORTED_DSSS_CHANNEL dot11SupportedDSSSChannel[1]; + } DOT11_SUPPORTED_DSSS_CHANNEL_LIST, * PDOT11_SUPPORTED_DSSS_CHANNEL_LIST; + + +// +// Extensible STA +// + +typedef struct DOT11_BYTE_ARRAY { + NDIS_OBJECT_HEADER Header; + ULONG uNumOfBytes; + ULONG uTotalNumOfBytes; + UCHAR ucBuffer[1]; +} DOT11_BYTE_ARRAY, * PDOT11_BYTE_ARRAY; + +#define OID_DOT11_AUTO_CONFIG_ENABLED NWF_DEFINE_OID(0x78, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // ULONG + #define DOT11_PHY_AUTO_CONFIG_ENABLED_FLAG 0x00000001U + #define DOT11_MAC_AUTO_CONFIG_ENABLED_FLAG 0x00000002U + +#define OID_DOT11_ENUM_BSS_LIST NWF_DEFINE_OID(0x79, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_BYTE_ARRAY with DOT11_BSS_ENTRY + #define DOT11_BSS_ENTRY_BYTE_ARRAY_REVISION_1 1 + + // This structure is not supposed to be midl compliant because of + // DOT11_BSS_ENTRY_PHY_SPECIFIC_INFO. The selection of union is + // *indirectly* determined from uPhyId. MIDL will not work here. +#ifndef __midl + typedef union DOT11_BSS_ENTRY_PHY_SPECIFIC_INFO { + ULONG uChCenterFrequency; + struct { + ULONG uHopPattern; + ULONG uHopSet; + ULONG uDwellTime; + } FHSS; + } DOT11_BSS_ENTRY_PHY_SPECIFIC_INFO, * PDOT11_BSS_ENTRY_PHY_SPECIFIC_INFO; + + typedef struct DOT11_BSS_ENTRY { + ULONG uPhyId; + DOT11_BSS_ENTRY_PHY_SPECIFIC_INFO PhySpecificInfo; + DOT11_MAC_ADDRESS dot11BSSID; + DOT11_BSS_TYPE dot11BSSType; + LONG lRSSI; + ULONG uLinkQuality; + BOOLEAN bInRegDomain; + USHORT usBeaconPeriod; + ULONGLONG ullTimestamp; + ULONGLONG ullHostTimestamp; + USHORT usCapabilityInformation; + ULONG uBufferLength; + UCHAR ucBuffer[1]; // Must be the last field. + } DOT11_BSS_ENTRY, * PDOT11_BSS_ENTRY; +#endif + +#define OID_DOT11_FLUSH_BSS_LIST NWF_DEFINE_OID(0x7A, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // VOID + +#define OID_DOT11_POWER_MGMT_REQUEST NWF_DEFINE_OID(0x7B, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // ULONG + #define DOT11_POWER_SAVING_NO_POWER_SAVING 0 + #define DOT11_POWER_SAVING_FAST_PSP 8 + #define DOT11_POWER_SAVING_MAX_PSP 16 + #define DOT11_POWER_SAVING_MAXIMUM_LEVEL 24 + +#define OID_DOT11_DESIRED_SSID_LIST NWF_DEFINE_OID(0x7C, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // A list of DOT11_SSID + typedef struct DOT11_SSID_LIST { + #define DOT11_SSID_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; +#ifdef __midl + [unique, size_is(uTotalNumOfEntries)] DOT11_SSID SSIDs[*]; +#else + DOT11_SSID SSIDs[1]; +#endif + } DOT11_SSID_LIST, * PDOT11_SSID_LIST; + +#define OID_DOT11_EXCLUDED_MAC_ADDRESS_LIST NWF_DEFINE_OID(0x7D, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // A list of DOT11_MAC_ADDRESS + typedef struct DOT11_MAC_ADDRESS_LIST { + #define DOT11_MAC_ADDRESS_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_MAC_ADDRESS MacAddrs[1]; + } DOT11_MAC_ADDRESS_LIST, * PDOT11_MAC_ADDRESS_LIST; + +#define OID_DOT11_DESIRED_BSSID_LIST NWF_DEFINE_OID(0x7E, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + +#define OID_DOT11_DESIRED_BSS_TYPE NWF_DEFINE_OID(0x7F, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_BSS_TYPE + +#define OID_DOT11_PMKID_LIST NWF_DEFINE_OID(0x80, NWF_OPERATIONAL_OID, NWF_OPTIONAL_OID) + // A list of DOT11_PMKID_ENTRY + typedef UCHAR DOT11_PMKID_VALUE[16]; + typedef struct DOT11_PMKID_ENTRY { + DOT11_MAC_ADDRESS BSSID; + DOT11_PMKID_VALUE PMKID; + ULONG uFlags; + } DOT11_PMKID_ENTRY, *PDOT11_PMKID_ENTRY; + typedef struct DOT11_PMKID_LIST { + #define DOT11_PMKID_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_PMKID_ENTRY PMKIDs[1]; + } DOT11_PMKID_LIST, * PDOT11_PMKID_LIST; + +#define OID_DOT11_CONNECT_REQUEST NWF_DEFINE_OID(0x81, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // no data type + +#define OID_DOT11_EXCLUDE_UNENCRYPTED NWF_DEFINE_OID(0x82, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // BOOLEAN + +#define OID_DOT11_STATISTICS NWF_DEFINE_OID(0x83, NWF_STATISTICS_OID, NWF_MANDATORY_OID) + // DOT11_STATISTICS structure + #define DOT11_STATISTICS_UNKNOWN (ULONGLONG)(-1LL) + typedef struct DOT11_PHY_FRAME_STATISTICS { + // TX counters (MSDU/MMPDU) + ULONGLONG ullTransmittedFrameCount; + ULONGLONG ullMulticastTransmittedFrameCount; + ULONGLONG ullFailedCount; + ULONGLONG ullRetryCount; + ULONGLONG ullMultipleRetryCount; + ULONGLONG ullMaxTXLifetimeExceededCount; + + // TX counters (MPDU) + ULONGLONG ullTransmittedFragmentCount; + ULONGLONG ullRTSSuccessCount; + ULONGLONG ullRTSFailureCount; + ULONGLONG ullACKFailureCount; + + // RX counters (MSDU/MMPDU) + ULONGLONG ullReceivedFrameCount; + ULONGLONG ullMulticastReceivedFrameCount; + ULONGLONG ullPromiscuousReceivedFrameCount; + ULONGLONG ullMaxRXLifetimeExceededCount; + + // RX counters (MPDU) + ULONGLONG ullFrameDuplicateCount; + ULONGLONG ullReceivedFragmentCount; + ULONGLONG ullPromiscuousReceivedFragmentCount; + ULONGLONG ullFCSErrorCount; + } DOT11_PHY_FRAME_STATISTICS, * PDOT11_PHY_FRAME_STATISTICS; + typedef struct DOT11_MAC_FRAME_STATISTICS { + ULONGLONG ullTransmittedFrameCount; + ULONGLONG ullReceivedFrameCount; + ULONGLONG ullTransmittedFailureFrameCount; + ULONGLONG ullReceivedFailureFrameCount; + + ULONGLONG ullWEPExcludedCount; + ULONGLONG ullTKIPLocalMICFailures; + ULONGLONG ullTKIPReplays; + ULONGLONG ullTKIPICVErrorCount; + ULONGLONG ullCCMPReplays; + ULONGLONG ullCCMPDecryptErrors; + ULONGLONG ullWEPUndecryptableCount; + ULONGLONG ullWEPICVErrorCount; + ULONGLONG ullDecryptSuccessCount; + ULONGLONG ullDecryptFailureCount; + } DOT11_MAC_FRAME_STATISTICS, * PDOT11_MAC_FRAME_STATISTICS; + typedef struct DOT11_STATISTICS { + #define DOT11_STATISTICS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONGLONG ullFourWayHandshakeFailures; + ULONGLONG ullTKIPCounterMeasuresInvoked; + ULONGLONG ullReserved; + + DOT11_MAC_FRAME_STATISTICS MacUcastCounters; + DOT11_MAC_FRAME_STATISTICS MacMcastCounters; + DOT11_PHY_FRAME_STATISTICS PhyCounters[1]; + } DOT11_STATISTICS, * PDOT11_STATISTICS; + +#define OID_DOT11_PRIVACY_EXEMPTION_LIST NWF_DEFINE_OID(0x84, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // A list of DOT11_PRIVACY_EXEMPTION + typedef struct DOT11_PRIVACY_EXEMPTION { + USHORT usEtherType; + + #define DOT11_EXEMPT_NO_EXEMPTION 0 // used only in DOT11_EXTSTA_SEND_CONTEXT + #define DOT11_EXEMPT_ALWAYS 1 + #define DOT11_EXEMPT_ON_KEY_MAPPING_KEY_UNAVAILABLE 2 + + USHORT usExemptionActionType; + + #define DOT11_EXEMPT_UNICAST 1 + #define DOT11_EXEMPT_MULTICAST 2 + #define DOT11_EXEMPT_BOTH 3 + USHORT usExemptionPacketType; + } DOT11_PRIVACY_EXEMPTION, *PDOT11_PRIVACY_EXEMPTION; + typedef struct DOT11_PRIVACY_EXEMPTION_LIST { + #define DOT11_PRIVACY_EXEMPTION_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; +#ifdef __midl + [unique, size_is(uTotalNumOfEntries)] DOT11_PRIVACY_EXEMPTION PrivacyExemptionEntries[*]; +#else + DOT11_PRIVACY_EXEMPTION PrivacyExemptionEntries[1]; +#endif + } DOT11_PRIVACY_EXEMPTION_LIST, * PDOT11_PRIVACY_EXEMPTION_LIST; + +#define OID_DOT11_ENABLED_AUTHENTICATION_ALGORITHM NWF_DEFINE_OID(0x85, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + typedef struct DOT11_AUTH_ALGORITHM_LIST { + #define DOT11_AUTH_ALGORITHM_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_AUTH_ALGORITHM AlgorithmIds[1]; + } DOT11_AUTH_ALGORITHM_LIST, * PDOT11_AUTH_ALGORITHM_LIST; + +#define OID_DOT11_SUPPORTED_UNICAST_ALGORITHM_PAIR NWF_DEFINE_OID(0x86, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + typedef struct DOT11_AUTH_CIPHER_PAIR_LIST { + #define DOT11_AUTH_CIPHER_PAIR_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + _Field_size_(uNumOfEntries) DOT11_AUTH_CIPHER_PAIR AuthCipherPairs[1]; + } DOT11_AUTH_CIPHER_PAIR_LIST, * PDOT11_AUTH_CIPHER_PAIR_LIST; + +#define OID_DOT11_ENABLED_UNICAST_CIPHER_ALGORITHM NWF_DEFINE_OID(0x87, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_CIPHER_ALGO_LIST + typedef struct DOT11_CIPHER_ALGORITHM_LIST { + #define DOT11_CIPHER_ALGORITHM_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_CIPHER_ALGORITHM AlgorithmIds[1]; + } DOT11_CIPHER_ALGORITHM_LIST, * PDOT11_CIPHER_ALGORITHM_LIST; + +#define OID_DOT11_SUPPORTED_MULTICAST_ALGORITHM_PAIR NWF_DEFINE_OID(0x88, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + +#define OID_DOT11_ENABLED_MULTICAST_CIPHER_ALGORITHM NWF_DEFINE_OID(0x89, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_CIPHER_ALGORITHM_LIST + +#define OID_DOT11_CIPHER_DEFAULT_KEY_ID NWF_DEFINE_OID(0x8A, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // ULONG + +#define OID_DOT11_CIPHER_DEFAULT_KEY NWF_DEFINE_OID(0x8B, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + typedef struct DOT11_CIPHER_DEFAULT_KEY_VALUE { + #define DOT11_CIPHER_DEFAULT_KEY_VALUE_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uKeyIndex; + DOT11_CIPHER_ALGORITHM AlgorithmId; + DOT11_MAC_ADDRESS MacAddr; + BOOLEAN bDelete; + BOOLEAN bStatic; + USHORT usKeyLength; +#ifdef __midl + [unique, size_is(usKeyLength)] UCHAR ucKey[*]; +#else + UCHAR ucKey[1]; // Must be the last field +#endif + } DOT11_CIPHER_DEFAULT_KEY_VALUE, * PDOT11_CIPHER_DEFAULT_KEY_VALUE; + typedef struct DOT11_KEY_ALGO_TKIP_MIC { + UCHAR ucIV48Counter[6]; + ULONG ulTKIPKeyLength; + ULONG ulMICKeyLength; + UCHAR ucTKIPMICKeys[1]; // Must be the last field. + } DOT11_KEY_ALGO_TKIP_MIC, * PDOT11_KEY_ALGO_TKIP_MIC; + typedef struct DOT11_KEY_ALGO_CCMP { + UCHAR ucIV48Counter[6]; + ULONG ulCCMPKeyLength; + UCHAR ucCCMPKey[1]; + } DOT11_KEY_ALGO_CCMP, * PDOT11_KEY_ALGO_CCMP; + typedef struct DOT11_KEY_ALGO_GCMP { + UCHAR ucIV48Counter[6]; + ULONG ulGCMPKeyLength; + UCHAR ucGCMPKey[1]; + } DOT11_KEY_ALGO_GCMP, * PDOT11_KEY_ALGO_GCMP; + typedef struct DOT11_KEY_ALGO_GCMP_256 { + UCHAR ucIV48Counter[6]; + ULONG ulGCMP256KeyLength; + UCHAR ucGCMP256Key[1]; + } DOT11_KEY_ALGO_GCMP_256, * PDOT11_KEY_ALGO_GCMP_256; + typedef struct DOT11_KEY_ALGO_BIP { + UCHAR ucIPN[6]; + ULONG ulBIPKeyLength; + UCHAR ucBIPKey[1]; + } DOT11_KEY_ALGO_BIP, * PDOT11_KEY_ALGO_BIP; + typedef struct DOT11_KEY_ALGO_BIP_GMAC_256 { + UCHAR ucIPN[6]; + ULONG ulBIPGmac256KeyLength; + UCHAR ucBIPGmac256Key[1]; + } DOT11_KEY_ALGO_BIP_GMAC_256, * PDOT11_KEY_ALGO_BIP_GMAC_256; + + +#define OID_DOT11_CIPHER_KEY_MAPPING_KEY NWF_DEFINE_OID(0x8C, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_BYTE_ARRAY + typedef enum DOT11_DIRECTION { + DOT11_DIR_INBOUND = 1, + DOT11_DIR_OUTBOUND, + DOT11_DIR_BOTH + } DOT11_DIRECTION, * PDOT11_DIRECTION; + #define DOT11_CIPHER_KEY_MAPPING_KEY_VALUE_BYTE_ARRAY_REVISION_1 1 + typedef struct DOT11_CIPHER_KEY_MAPPING_KEY_VALUE { + DOT11_MAC_ADDRESS PeerMacAddr; + DOT11_CIPHER_ALGORITHM AlgorithmId; + DOT11_DIRECTION Direction; + BOOLEAN bDelete; + BOOLEAN bStatic; + USHORT usKeyLength; +#ifdef __midl + [unique, size_is(usKeyLength)] UCHAR ucKey[*]; +#else + UCHAR ucKey[1]; // Must be the last field +#endif + } DOT11_CIPHER_KEY_MAPPING_KEY_VALUE, * PDOT11_CIPHER_KEY_MAPPING_KEY_VALUE; +#define OID_DOT11_ENUM_ASSOCIATION_INFO NWF_DEFINE_OID(0x8D, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // a list of DOT11_ASSOCIATION_INFO + typedef enum _DOT11_ASSOCIATION_STATE { + dot11_assoc_state_zero = 0, + dot11_assoc_state_unauth_unassoc = 1, + dot11_assoc_state_auth_unassoc = 2, + dot11_assoc_state_auth_assoc = 3 + } DOT11_ASSOCIATION_STATE, * PDOT11_ASSOCIATION_STATE; + typedef struct _DOT11_ASSOCIATION_INFO_EX { + DOT11_MAC_ADDRESS PeerMacAddress; + DOT11_MAC_ADDRESS BSSID; + USHORT usCapabilityInformation; + USHORT usListenInterval; + UCHAR ucPeerSupportedRates[MAX_NUM_SUPPORTED_RATES_V2]; + USHORT usAssociationID; + DOT11_ASSOCIATION_STATE dot11AssociationState; + DOT11_POWER_MODE dot11PowerMode; + LARGE_INTEGER liAssociationUpTime; + ULONGLONG ullNumOfTxPacketSuccesses; + ULONGLONG ullNumOfTxPacketFailures; + ULONGLONG ullNumOfRxPacketSuccesses; + ULONGLONG ullNumOfRxPacketFailures; + } DOT11_ASSOCIATION_INFO_EX, * PDOT11_ASSOCIATION_INFO_EX; + typedef struct DOT11_ASSOCIATION_INFO_LIST { + #define DOT11_ASSOCIATION_INFO_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_ASSOCIATION_INFO_EX dot11AssocInfo[1]; + } DOT11_ASSOCIATION_INFO_LIST, * PDOT11_ASSOCIATION_INFO_LIST; + + +#define OID_DOT11_DISCONNECT_REQUEST NWF_DEFINE_OID(0x8E, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + +#define OID_DOT11_UNICAST_USE_GROUP_ENABLED NWF_DEFINE_OID(0x8F, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // BOOLEAN + +#define OID_DOT11_HARDWARE_PHY_STATE NWF_DEFINE_OID(0x90, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // BOOLEAN + +#define OID_DOT11_DESIRED_PHY_LIST NWF_DEFINE_OID(0x91, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_PHY_ID_LIST + typedef struct DOT11_PHY_ID_LIST { + #define DOT11_PHY_ID_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + ULONG dot11PhyId[1]; + } DOT11_PHY_ID_LIST, * PDOT11_PHY_ID_LIST; + #define DOT11_PHY_ID_ANY (0xffffffffU) + +#define OID_DOT11_CURRENT_PHY_ID NWF_DEFINE_OID(0x92, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // ULONG + +#define OID_DOT11_MEDIA_STREAMING_ENABLED NWF_DEFINE_OID(0x93, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // BOOLEAN + +#define OID_DOT11_UNREACHABLE_DETECTION_THRESHOLD NWF_DEFINE_OID(0x94, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // ULONG + +#define OID_DOT11_ACTIVE_PHY_LIST NWF_DEFINE_OID(0x95, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_PHY_ID_LIST + +#define OID_DOT11_EXTSTA_CAPABILITY NWF_DEFINE_OID(0x96, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_EXTSTA_CAPABILITY + typedef struct DOT11_EXTSTA_CAPABILITY { + #define DOT11_EXTSTA_CAPABILITY_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uScanSSIDListSize; + ULONG uDesiredBSSIDListSize; + ULONG uDesiredSSIDListSize; + ULONG uExcludedMacAddressListSize; + ULONG uPrivacyExemptionListSize; + ULONG uKeyMappingTableSize; + ULONG uDefaultKeyTableSize; + ULONG uWEPKeyValueMaxLength; + ULONG uPMKIDCacheSize; + ULONG uMaxNumPerSTADefaultKeyTables; + } DOT11_EXTSTA_CAPABILITY, * PDOT11_EXTSTA_CAPABILITY; + +#define OID_DOT11_DATA_RATE_MAPPING_TABLE NWF_DEFINE_OID(0x97, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_DATA_RATE_MAPPING_ENTRY + typedef struct DOT11_DATA_RATE_MAPPING_ENTRY { + UCHAR ucDataRateIndex; + UCHAR ucDataRateFlag; + USHORT usDataRateValue; + } DOT11_DATA_RATE_MAPPING_ENTRY, * PDOT11_DATA_RATE_MAPPING_ENTRY; + typedef struct _DOT11_DATA_RATE_MAPPING_TABLE { + #define DOT11_DATA_RATE_MAPPING_TABLE_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uDataRateMappingLength; + _Field_size_part_(DOT11_RATE_SET_MAX_LENGTH, uDataRateMappingLength) + DOT11_DATA_RATE_MAPPING_ENTRY DataRateMappingEntries[DOT11_RATE_SET_MAX_LENGTH]; + } DOT11_DATA_RATE_MAPPING_TABLE, * PDOT11_DATA_RATE_MAPPING_TABLE; + #define DOT11_DATA_RATE_NON_STANDARD 0x01U + #define DOT11_DATA_RATE_INDEX_MASK 0x7fU + +#define OID_DOT11_SUPPORTED_COUNTRY_OR_REGION_STRING NWF_DEFINE_OID(0x98, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + typedef struct DOT11_COUNTRY_OR_REGION_STRING_LIST { + #define DOT11_COUNTRY_OR_REGION_STRING_LIST_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_COUNTRY_OR_REGION_STRING CountryOrRegionStrings[1]; + } DOT11_COUNTRY_OR_REGION_STRING_LIST, * PDOT11_COUNTRY_OR_REGION_STRING_LIST; + +#define OID_DOT11_DESIRED_COUNTRY_OR_REGION_STRING NWF_DEFINE_OID(0x99, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_COUNTRY_OR_REGION_STRING + +#define OID_DOT11_PORT_STATE_NOTIFICATION NWF_DEFINE_OID(0x9A, NWF_OPERATIONAL_OID, NWF_OPTIONAL_OID) + // DOT11_PORT_STATE_NOTIFICATION + typedef struct DOT11_PORT_STATE_NOTIFICATION { + #define DOT11_PORT_STATE_NOTIFICATION_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerMac; + BOOLEAN bOpen; + } DOT11_PORT_STATE_NOTIFICATION, * PDOT11_PORT_STATE_NOTIFICATION; + +#define OID_DOT11_IBSS_PARAMS NWF_DEFINE_OID(0x9B, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_IBSS_PARAMS + typedef struct DOT11_IBSS_PARAMS { + #define DOT11_IBSS_PARAMS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + BOOLEAN bJoinOnly; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_IBSS_PARAMS, * PDOT11_IBSS_PARAMS; + +#define OID_DOT11_QOS_PARAMS NWF_DEFINE_OID(0x9C, NWF_OPERATIONAL_OID, NWF_OPTIONAL_OID) + typedef struct DOT11_QOS_PARAMS { + #define DOT11_QOS_PARAMS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + + #define DOT11_QOS_PROTOCOL_FLAG_WMM (0x01U) // WMM QoS protocol + #define DOT11_QOS_PROTOCOL_FLAG_11E (0x02U) // 802.11e QoS protocol + + // Flags of the enabled QoS protocols. + // It is either 0 or combination of DOT11_QOS_PROTOCOL_FLAG_WMM + // and/or DOT11_QOS_PROTOCOL_FLAG_11E + UCHAR ucEnabledQoSProtocolFlags; + } DOT11_QOS_PARAMS, * PDOT11_QOS_PARAMS; + +#define OID_DOT11_SAFE_MODE_ENABLED NWF_DEFINE_OID(0x9D, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // BOOLEAN + +#define OID_DOT11_HIDDEN_NETWORK_ENABLED NWF_DEFINE_OID(0x9E, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // BOOLEAN + +#define OID_DOT11_ASSOCIATION_PARAMS NWF_DEFINE_OID(0x9F, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // DOT11_ASSOCIATION_PARAMS + typedef struct DOT11_ASSOCIATION_PARAMS { + #define DOT11_ASSOCIATION_PARAMS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS BSSID; + ULONG uAssocRequestIEsOffset; + ULONG uAssocRequestIEsLength; + } DOT11_ASSOCIATION_PARAMS, *PDOT11_ASSOCIATION_PARAMS; + +#define OID_DOT11_SAFE_MODE_HT_ENABLED NWF_DEFINE_OID(0xA0, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + // BOOLEAN + +// +// 802.11 Extensions to Standard NDIS Functions +// + +// +// Miniport Send Path Extension +// + +// Only 4 bits are present in the 802.11 header to track fragments. +#define DOT11_MAX_NUM_OF_FRAGMENTS 16 +// Priority Classes. +#define DOT11_PRIORITY_CONTENTION 0 +#define DOT11_PRIORITY_CONTENTION_FREE 1 + +// Service Classes. +#define DOT11_SERVICE_CLASS_REORDERABLE_MULTICAST 0 +#define DOT11_SERVICE_CLASS_STRICTLY_ORDERED 1 +// Flags. +#define DOT11_FLAGS_80211B_SHORT_PREAMBLE 0x00000001 +#define DOT11_FLAGS_80211B_PBCC 0x00000002 +#define DOT11_FLAGS_80211B_CHANNEL_AGILITY 0x00000004 +#define DOT11_FLAGS_PS_ON 0x00000008 +#define DOT11_FLAGS_80211G_DSSS_OFDM 0x00000010 +#define DOT11_FLAGS_80211G_USE_PROTECTION 0x00000020 +#define DOT11_FLAGS_80211G_NON_ERP_PRESENT 0x00000040 +#define DOT11_FLAGS_80211G_BARKER_PREAMBLE_MODE 0x00000080 +#define DOT11_WME_PACKET 0x00000100 + +typedef struct _DOT11_FRAGMENT_DESCRIPTOR { + ULONG uOffset; + ULONG uLength; +} DOT11_FRAGMENT_DESCRIPTOR, * PDOT11_FRAGMENT_DESCRIPTOR; + +typedef struct _DOT11_PER_MSDU_COUNTERS { + ULONG uTransmittedFragmentCount; + ULONG uRetryCount; + ULONG uRTSSuccessCount; + ULONG uRTSFailureCount; + ULONG uACKFailureCount; +} DOT11_PER_MSDU_COUNTERS, * PDOT11_PER_MSDU_COUNTERS; + + typedef struct DOT11_PHY_ATTRIBUTES DOT11_PHY_ATTRIBUTES, * PDOT11_PHY_ATTRIBUTES; + + typedef struct DOT11_HRDSSS_PHY_ATTRIBUTES { + BOOLEAN bShortPreambleOptionImplemented; + BOOLEAN bPBCCOptionImplemented; + BOOLEAN bChannelAgilityPresent; + ULONG uHRCCAModeSupported; + } DOT11_HRDSSS_PHY_ATTRIBUTES, * PDOT11_HRDSSS_PHY_ATTRIBUTES; + + typedef struct DOT11_OFDM_PHY_ATTRIBUTES { + ULONG uFrequencyBandsSupported; + } DOT11_OFDM_PHY_ATTRIBUTES, * PDOT11_OFDM_PHY_ATTRIBUTES; + + typedef struct DOT11_ERP_PHY_ATTRIBUTES { + #ifdef __cplusplus + DOT11_HRDSSS_PHY_ATTRIBUTES HRDSSSAttributes; + #else + DOT11_HRDSSS_PHY_ATTRIBUTES; + #endif + BOOLEAN bERPPBCCOptionImplemented; + BOOLEAN bDSSSOFDMOptionImplemented; + BOOLEAN bShortSlotTimeOptionImplemented; + } DOT11_ERP_PHY_ATTRIBUTES, * PDOT11_ERP_PHY_ATTRIBUTES; + + struct DOT11_PHY_ATTRIBUTES { + #define DOT11_PHY_ATTRIBUTES_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + + DOT11_PHY_TYPE PhyType; + BOOLEAN bHardwarePhyState; + BOOLEAN bSoftwarePhyState; + + BOOLEAN bCFPollable; + ULONG uMPDUMaxLength; + DOT11_TEMP_TYPE TempType; + DOT11_DIVERSITY_SUPPORT DiversitySupport; + #ifdef __midl + [switch_is(PhyType)] + #endif + union { + #ifdef __midl + [case(dot11_phy_type_hrdsss)] + #endif + DOT11_HRDSSS_PHY_ATTRIBUTES HRDSSSAttributes; + + #ifdef __midl + [case(dot11_phy_type_ofdm)] + #endif + DOT11_OFDM_PHY_ATTRIBUTES OFDMAttributes; + + #ifdef __midl + [case(dot11_phy_type_erp)] + #endif + DOT11_ERP_PHY_ATTRIBUTES ERPAttributes; + + #ifdef __midl + [case(dot11_phy_type_ht)] + ; + #endif + + #ifdef __midl + [default] + ; + #endif + #ifdef __cplusplus + } PhySpecificAttributes; + #else + }; + #endif + ULONG uNumberSupportedPowerLevels; + ULONG TxPowerLevels[8]; + + ULONG uNumDataRateMappingEntries; + DOT11_DATA_RATE_MAPPING_ENTRY DataRateMappingEntries[DOT11_RATE_SET_MAX_LENGTH]; + + DOT11_SUPPORTED_DATA_RATES_VALUE_V2 SupportedDataRatesValue; + }; + +#define DOT11_EXTSTA_ATTRIBUTES_SAFEMODE_OID_SUPPORTED 0x1 +#define DOT11_EXTSTA_ATTRIBUTES_SAFEMODE_CERTIFIED 0x2 +#define DOT11_EXTSTA_ATTRIBUTES_SAFEMODE_RESERVED 0xC + +typedef struct DOT11_EXTSTA_ATTRIBUTES DOT11_EXTSTA_ATTRIBUTES, * PDOT11_EXTSTA_ATTRIBUTES; +struct DOT11_EXTSTA_ATTRIBUTES { + #define DOT11_EXTSTA_ATTRIBUTES_REVISION_1 1 + #define DOT11_EXTSTA_ATTRIBUTES_REVISION_2 2 + #define DOT11_EXTSTA_ATTRIBUTES_REVISION_3 3 + #define DOT11_EXTSTA_ATTRIBUTES_REVISION_4 4 + + NDIS_OBJECT_HEADER Header; + + ULONG uScanSSIDListSize; + ULONG uDesiredBSSIDListSize; + ULONG uDesiredSSIDListSize; + ULONG uExcludedMacAddressListSize; + ULONG uPrivacyExemptionListSize; + ULONG uKeyMappingTableSize; + ULONG uDefaultKeyTableSize; + ULONG uWEPKeyValueMaxLength; + ULONG uPMKIDCacheSize; + ULONG uMaxNumPerSTADefaultKeyTables; + + BOOLEAN bStrictlyOrderedServiceClassImplemented; + + // Flags of the supported QoS protocols. + // It is either 0 or combination of DOT11_QOS_PROTOCOL_FLAG_WMM + // and/or DOT11_QOS_PROTOCOL_FLAG_11E + UCHAR ucSupportedQoSProtocolFlags; + + BOOLEAN bSafeModeImplemented; + + // Supported Country Strings + ULONG uNumSupportedCountryOrRegionStrings; + #ifdef __midl + [size_is(uNumSupportedCountryOrRegionStrings)] + #endif + PDOT11_COUNTRY_OR_REGION_STRING pSupportedCountryOrRegionStrings; + + // Infra Capabilities + ULONG uInfraNumSupportedUcastAlgoPairs; + #ifdef __midl + [size_is(uInfraNumSupportedUcastAlgoPairs)] + #endif + PDOT11_AUTH_CIPHER_PAIR pInfraSupportedUcastAlgoPairs; + + ULONG uInfraNumSupportedMcastAlgoPairs; + #ifdef __midl + [size_is(uInfraNumSupportedMcastAlgoPairs)] + #endif + PDOT11_AUTH_CIPHER_PAIR pInfraSupportedMcastAlgoPairs; + + // Ad hoc Capabilities + ULONG uAdhocNumSupportedUcastAlgoPairs; + #ifdef __midl + [size_is(uAdhocNumSupportedUcastAlgoPairs)] + #endif + PDOT11_AUTH_CIPHER_PAIR pAdhocSupportedUcastAlgoPairs; + + ULONG uAdhocNumSupportedMcastAlgoPairs; + #ifdef __midl + [size_is(uAdhocNumSupportedMcastAlgoPairs)] + #endif + PDOT11_AUTH_CIPHER_PAIR pAdhocSupportedMcastAlgoPairs; + BOOLEAN bAutoPowerSaveMode; // revision 3 and above + ULONG uMaxNetworkOffloadListSize; // revision 3 and above + + //802.11w Capabilities + BOOLEAN bMFPCapable; + ULONG uInfraNumSupportedMcastMgmtAlgoPairs; + #ifdef __midl + [size_is(uInfraNumSupportedMcastMgmtAlgoPairs)] + #endif + PDOT11_AUTH_CIPHER_PAIR pInfraSupportedMcastMgmtAlgoPairs; + + //802.11k Capabilities + BOOLEAN bNeighborReportSupported; + BOOLEAN bAPChannelReportSupported; + + //802.11u Capabilities + BOOLEAN bActionFramesSupported; + BOOLEAN bANQPQueryOffloadSupported; + BOOLEAN bHESSIDConnectionSupported; +}; + +#if (defined(_NDIS_) || defined(NDIS_WRAPPER)) // To avoid build break since NDIS_PACKET isn't defined for user mode app. + // Send path extension for NativeWiFi NDIS 6.0 miniport driver + typedef struct _DOT11_SEND_CONTEXT { + #define DOT11_SEND_CONTEXT_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + PVOID pvReserved; + ULONG uFlags; + ULONG uPSLifetime; + ULONG uDelayedSleepValue; + UCHAR ucTXDataRates[8]; + BOOLEAN bIndicateAssociatedACKs; + BOOLEAN bIndicateTXStatus; + UCHAR ucPriority; + BOOLEAN bDontFragment; + ULONG dwExtendedStatus; + HANDLE hIntegrityOffload; + HANDLE hWEPOffload; + UCHAR ucWPAMSDUPriority; + UCHAR ucNumOfRWsOnPeer; + USHORT usAID; + PDOT11_PER_MSDU_COUNTERS pDot11PerMSDUCounters; + } DOT11_SEND_CONTEXT, * PDOT11_SEND_CONTEXT; + + + #define DOT11_SEND_CONTEXT_SIZE \ + ((sizeof(DOT11_SEND_CONTEXT) + \ + MEMORY_ALLOCATION_ALIGNMENT - 1) & \ + ~(MEMORY_ALLOCATION_ALIGNMENT-1)) + + + + // Send path extension for NativeWiFi NDIS 5.1 miniport driver + typedef struct _DOT11_SEND_EXTENSION_INFO { + ULONG uVersion; + NDIS_OBJECT_HEADER Header; + PVOID pvReserved; + ULONG uFlags; + ULONG uPSLifetime; + ULONG uDelayedSleepValue; + UCHAR ucTXDataRates[8]; + BOOLEAN bIndicateAssociatedACKs; + BOOLEAN bIndicateTXStatus; + UCHAR ucPriority; + BOOLEAN bDontFragment; + ULONG dwExtendedStatus; + HANDLE hIntegrityOffload; + HANDLE hWEPOffload; + UCHAR ucWPAMSDUPriority; + UCHAR ucNumOfRWsOnPeer; + USHORT usAID; + PDOT11_PER_MSDU_COUNTERS pDot11PerMSDUCounters; + USHORT usNumberOfFragments; + DOT11_FRAGMENT_DESCRIPTOR Dot11FragmentDescriptors[1]; + } DOT11_SEND_EXTENSION_INFO, * PDOT11_SEND_EXTENSION_INFO; + + typedef enum _DOT11_ACK_POLICY { + dot11_ack_policy_none = 0, + dot11_ack_policy_acknowledge = 1, + dot11_ack_policy_do_not_acknowledge = 2, + } DOT11_ACK_POLICY, * PDOT11_ACK_POLICY; + + // Send path extension for NativeWiFi NDIS 5.1 miniport driver + typedef struct _DOT11_SEND_EXTENSION_INFO_V2 { + UCHAR ucQoSPriority:4; + UCHAR ucAckPolicy:4; + USHORT usExtendedTXDataRatesOffset; + UCHAR ucNumOfExtendedTXDataRates; + UCHAR ucBuffer[1]; + } DOT11_SEND_EXTENSION_INFO_V2, * PDOT11_SEND_EXTENSION_INFO_V2; + + // + // Miniport Receive Path Extension + // + + // Recv path extension for NativeWiFi NDIS 6.0 miniport driver + typedef struct _DOT11_RECV_CONTEXT { + #define DOT11_RECV_CONTEXT_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + PVOID pvReserved; + DOT11_PHY_TYPE dot11PhyType; + ULONG uChCenterFrequency; + LONG lRSSI; + ULONG uRSSI; + UCHAR ucPriority; + UCHAR ucDataRate; + UCHAR ucPeerMacAddress[6]; + ULONG dwExtendedStatus; + HANDLE hWEPOffloadContext; + HANDLE hAuthOffloadContext; + USHORT usWEPAppliedMask; + USHORT usWPAMSDUPriority; + DOT11_IV48_COUNTER dot11LowestIV48Counter; + USHORT usDot11LeftRWBitMap; + DOT11_IV48_COUNTER dot11HighestIV48Counter; + USHORT usDot11RightRWBitMap; + USHORT usNumberOfMPDUsReceived; + } DOT11_RECV_CONTEXT, * PDOT11_RECV_CONTEXT; + #define DOT11_RECV_CONTEXT_SIZE \ + ((sizeof(DOT11_RECV_CONTEXT) + \ + MEMORY_ALLOCATION_ALIGNMENT - 1) & \ + ~(MEMORY_ALLOCATION_ALIGNMENT-1)) + #else + // Recv path extension for NativeWiFi NDIS 5.1 miniport driver + typedef struct _DOT11_RECV_EXTENSION_INFO { + ULONG uVersion; + PVOID pvReserved; + DOT11_PHY_TYPE dot11PhyType; + ULONG uChCenterFrequency; + LONG lRSSI; + LONG lRSSIMin; + LONG lRSSIMax; + ULONG uRSSI; + UCHAR ucPriority; + UCHAR ucDataRate; + UCHAR ucPeerMacAddress[6]; + ULONG dwExtendedStatus; + HANDLE hWEPOffloadContext; + HANDLE hAuthOffloadContext; + USHORT usWEPAppliedMask; + USHORT usWPAMSDUPriority; + DOT11_IV48_COUNTER dot11LowestIV48Counter; + USHORT usDot11LeftRWBitMap; + DOT11_IV48_COUNTER dot11HighestIV48Counter; + USHORT usDot11RightRWBitMap; + USHORT usNumberOfMPDUsReceived; + USHORT usNumberOfFragments; + // PNDIS_PACKET pNdisPackets[1]; // Must be the last field. + PVOID pNdisPackets[1]; // Must be the last field. + } DOT11_RECV_EXTENSION_INFO, * PDOT11_RECV_EXTENSION_INFO; + + typedef struct _DOT11_RECV_EXTENSION_INFO_V2 { + ULONG uVersion; + PVOID pvReserved; + DOT11_PHY_TYPE dot11PhyType; + ULONG uChCenterFrequency; + LONG lRSSI; + ULONG uRSSI; + UCHAR ucPriority; + UCHAR ucDataRate; + UCHAR ucPeerMacAddress[6]; + ULONG dwExtendedStatus; + HANDLE hWEPOffloadContext; + HANDLE hAuthOffloadContext; + USHORT usWEPAppliedMask; + USHORT usWPAMSDUPriority; + DOT11_IV48_COUNTER dot11LowestIV48Counter; + USHORT usDot11LeftRWBitMap; + DOT11_IV48_COUNTER dot11HighestIV48Counter; + USHORT usDot11RightRWBitMap; + USHORT usNumberOfMPDUsReceived; + USHORT usNumberOfFragments; + // PNDIS_PACKET pNdisPackets[1]; // Must be the last field. + PVOID pNdisPackets[1]; // Must be the last field. + } DOT11_RECV_EXTENSION_INFO_V2, * PDOT11_RECV_EXTENSION_INFO_V2; +#endif // NDIS_MINIPORT_DRIVER + +// +// 802.11 Status Codes +// + +#define DOT11_STATUS_SUCCESS 0x00000001 + +#define DOT11_STATUS_RETRY_LIMIT_EXCEEDED 0x00000002 + +#define DOT11_STATUS_UNSUPPORTED_PRIORITY 0x00000004 + +#define DOT11_STATUS_UNSUPPORTED_SERVICE_CLASS 0x00000008 + +#define DOT11_STATUS_UNAVAILABLE_PRIORITY 0x00000010 + +#define DOT11_STATUS_UNAVAILABLE_SERVICE_CLASS 0x00000020 + +#define DOT11_STATUS_XMIT_MSDU_TIMER_EXPIRED 0x00000040 + +#define DOT11_STATUS_UNAVAILABLE_BSS 0x00000080 + +#define DOT11_STATUS_EXCESSIVE_DATA_LENGTH 0x00000100 + +#define DOT11_STATUS_ENCRYPTION_FAILED 0x00000200 + +#define DOT11_STATUS_WEP_KEY_UNAVAILABLE 0x00000400 + +#define DOT11_STATUS_ICV_VERIFIED 0x00000800 + +#define DOT11_STATUS_PACKET_REASSEMBLED 0x00001000 + +#define DOT11_STATUS_PACKET_NOT_REASSEMBLED 0x00002000 + +#define DOT11_STATUS_GENERATE_AUTH_FAILED 0x00004000 + +#define DOT11_STATUS_AUTH_NOT_VERIFIED 0x00008000 + +#define DOT11_STATUS_AUTH_VERIFIED 0x00010000 + +#define DOT11_STATUS_AUTH_FAILED 0x00020000 + +#define DOT11_STATUS_PS_LIFETIME_EXPIRED 0x00040000 + +// +// Flags for NDIS_STATUS_MEDIA_SPECIFIC_INDICATION +// +typedef struct _DOT11_STATUS_INDICATION { + ULONG uStatusType; + NDIS_STATUS ndisStatus; +} DOT11_STATUS_INDICATION, * PDOT11_STATUS_INDICATION; + +#define DOT11_STATUS_RESET_CONFIRM 4 + +#define DOT11_STATUS_SCAN_CONFIRM 1 +#define DOT11_STATUS_JOIN_CONFIRM 2 +#define DOT11_STATUS_START_CONFIRM 3 +#define DOT11_STATUS_AP_JOIN_CONFIRM 5 +#define DOT11_STATUS_MPDU_MAX_LENGTH_CHANGED 6 + +typedef struct DOT11_MPDU_MAX_LENGTH_INDICATION { + #define DOT11_MPDU_MAX_LENGTH_INDICATION_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uPhyId; + ULONG uMPDUMaxLength; +} DOT11_MPDU_MAX_LENGTH_INDICATION, * PDOT11_MPDU_MAX_LENGTH_INDICATION; + +typedef struct DOT11_ASSOCIATION_START_PARAMETERS { + #define DOT11_ASSOCIATION_START_PARAMETERS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS MacAddr; + DOT11_SSID SSID; + ULONG uIHVDataOffset, uIHVDataSize; +} DOT11_ASSOCIATION_START_PARAMETERS, * PDOT11_ASSOCIATION_START_PARAMETERS; + +#define DOT11_ENCAP_RFC_1042 1 +#define DOT11_ENCAP_802_1H 2 +typedef struct DOT11_ENCAP_ENTRY { + USHORT usEtherType; + USHORT usEncapType; // either DOT11_ENCAP_RFC_1042 or DOT11_ENCAP_802_1H +} DOT11_ENCAP_ENTRY, * PDOT11_ENCAP_ENTRY; + +typedef enum DOT11_DS_INFO { + DOT11_DS_CHANGED, + DOT11_DS_UNCHANGED, + DOT11_DS_UNKNOWN +} DOT11_DS_INFO, * PDOT11_DS_INFO; + +///////////////////////////////////////////// +// Definitions of association status codes +// +typedef ULONG DOT11_ASSOC_STATUS; + +// The association is successful +#define DOT11_ASSOC_STATUS_SUCCESS 0 + +// Generic association failure +#define DOT11_ASSOC_STATUS_FAILURE 0x00000001U + +// The association fails because the peer is not responding. +// Scenarios: +// 1. the peer doesn't respond to 802.11 authentication frames or +// 802.11 association request frames or probe request frames. +// 2. the NIC hasn't received beacon from the peer for substantial +// amount of time. The timeout value here is NIC specific. +// 3. any other cases in which NIC determines that the peer is not +// responsive. +#define DOT11_ASSOC_STATUS_UNREACHABLE 0x00000002U + +// The association fails because the radio is turned off +#define DOT11_ASSOC_STATUS_RADIO_OFF 0x00000003U + +// The association fails because the PHY is disabled. Here the PHY +// entity becomes unavailable to the OS. But the radio itself is not +// necessarily turned off. +#define DOT11_ASSOC_STATUS_PHY_DISABLED 0x00000004U + +// The association is cancelled (for example, the NIC is reset) +#define DOT11_ASSOC_STATUS_CANCELLED 0x00000005U + +// The connection fails because all the candidate AP has been tried +// and none of the attempts succeeds. +#define DOT11_ASSOC_STATUS_CANDIDATE_LIST_EXHAUSTED 0x00000006U + +// The current association is disassociated as requested by the OS +// (through either a OID_DOT11_RESET_REQUEST or OID_DOT11_DISCONNECT request) +#define DOT11_ASSOC_STATUS_DISASSOCIATED_BY_OS 0x00000007U + +// The current association is disassociated because the NIC roams +// to new AP. +// This error code is used for indicating the implicit dissassociation +// done by the nwifi.sys. Miniport driver usually doesn't generate +// this error code (since the disassociation is automatically done +// by the nwifi.sys). +#define DOT11_ASSOC_STATUS_DISASSOCIATED_BY_ROAMING 0x00000008U + +// The current association is disassocated because the NIC is reset +#define DOT11_ASSOC_STATUS_DISASSOCIATED_BY_RESET 0x00000009U + +// The current association is disassocated because the NIC is reset +#define DOT11_ASSOC_STATUS_SYSTEM_ERROR 0x0000000aU + +// Roaming reason: find a better AP +#define DOT11_ASSOC_STATUS_ROAMING_BETTER_AP_FOUND 0x0000000bU + +// Roaming reason: the association to the current BSS is lost +#define DOT11_ASSOC_STATUS_ROAMING_ASSOCIATION_LOST 0x0000000cU + +// Roaming reason: adhoc roaming (network Coalescing) +#define DOT11_ASSOC_STATUS_ROAMING_ADHOC 0x0000000dU + +// The new association fails or the current association is disassocated +// because the NIC receives an 802.11 de-authentication frame from the +// peer. The lowest 16-bits are the reason code (2-byte) copied from +// the 802.11 DeAuthentication frame. +#define DOT11_ASSOC_STATUS_PEER_DEAUTHENTICATED 0x00010000U +#define DOT11_ASSOC_STATUS_PEER_DEAUTHENTICATED_START DOT11_ASSOC_STATUS_PEER_DEAUTHENTICATED +#define DOT11_ASSOC_STATUS_PEER_DEAUTHENTICATED_END 0x0001ffffU + +// The new association fails or the current association is disassocated +// because the NIC receives an 802.11 disassociation frame from the +// peer. The lowest 16-bits are the reason code (2-byte) copied from +// the 802.11 DisAssociation frame. +#define DOT11_ASSOC_STATUS_PEER_DISASSOCIATED 0x00020000U +#define DOT11_ASSOC_STATUS_PEER_DISASSOCIATED_START DOT11_ASSOC_STATUS_PEER_DISASSOCIATED +#define DOT11_ASSOC_STATUS_PEER_DISASSOCIATED_END 0x0002ffffU + +#define DOT11_ASSOC_STATUS_ASSOCIATION_RESPONSE 0x00030000U +#define DOT11_ASSOC_STATUS_ASSOCIATION_RESPONSE_START DOT11_ASSOC_STATUS_ASSOCIATION_RESPONSE +#define DOT11_ASSOC_STATUS_ASSOCIATION_RESPONSE_END 0x0003ffffU + +// The mask for extracting 802.11 deauthentication and disassociation +// reason code. +#define DOT11_ASSOC_STATUS_REASON_CODE_MASK 0xffffU + +// Define the range of IHV specific association status codes +#define DOT11_ASSOC_STATUS_IHV_START 0x80000000U +#define DOT11_ASSOC_STATUS_IHV_END 0xffffffffU + +typedef struct DOT11_ASSOCIATION_COMPLETION_PARAMETERS { + #define DOT11_ASSOCIATION_COMPLETION_PARAMETERS_REVISION_1 1 + #define DOT11_ASSOCIATION_COMPLETION_PARAMETERS_REVISION_2 2 + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS MacAddr; + + DOT11_ASSOC_STATUS uStatus; + + BOOLEAN bReAssocReq; + BOOLEAN bReAssocResp; + ULONG uAssocReqOffset, uAssocReqSize; + ULONG uAssocRespOffset, uAssocRespSize; + ULONG uBeaconOffset, uBeaconSize; + ULONG uIHVDataOffset, uIHVDataSize; + + // The following fields are applicable for successful association. + // For association failure, they must be zero-ed out. + DOT11_AUTH_ALGORITHM AuthAlgo; + DOT11_CIPHER_ALGORITHM UnicastCipher; + DOT11_CIPHER_ALGORITHM MulticastCipher; + ULONG uActivePhyListOffset, uActivePhyListSize; + BOOLEAN bFourAddressSupported; + BOOLEAN bPortAuthorized; + + // The QoS protocol which is used in this association. + // It is zero or combination of DOT11_QOS_PROTOCOL_FLAG_WMM and/or DOT11_QOS_PROTOCOL_FLAG_11E + UCHAR ucActiveQoSProtocol; + + DOT11_DS_INFO DSInfo; + ULONG uEncapTableOffset, uEncapTableSize; + +#if (NTDDI_VERSION >= NTDDI_WIN8) + //802.11w parameters + DOT11_CIPHER_ALGORITHM MulticastMgmtCipher; + ULONG uAssocComebackTime; +#endif +} DOT11_ASSOCIATION_COMPLETION_PARAMETERS, * PDOT11_ASSOCIATION_COMPLETION_PARAMETERS; + +typedef struct DOT11_CONNECTION_START_PARAMETERS { + #define DOT11_CONNECTION_START_PARAMETERS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + DOT11_BSS_TYPE BSSType; + + DOT11_MAC_ADDRESS AdhocBSSID; // applicable to adhoc mode only + DOT11_SSID AdhocSSID; // applicable to adhoc mode only +} DOT11_CONNECTION_START_PARAMETERS, * PDOT11_CONNECTION_START_PARAMETERS; + +// For uStatus in DOT11_CONNECTION_COMPLETION_PARAMETERS and DOT11_ROAMING_COMPLETION_PARAMETERS +#define DOT11_CONNECTION_STATUS_SUCCESS DOT11_ASSOC_STATUS_SUCCESS +#define DOT11_CONNECTION_STATUS_FAILURE DOT11_ASSOC_STATUS_FAILURE +#define DOT11_CONNECTION_STATUS_CANDIDATE_LIST_EXHAUSTED DOT11_ASSOC_STATUS_CANDIDATE_LIST_EXHAUSTED +#define DOT11_CONNECTION_STATUS_PHY_POWER_DOWN DOT11_ASSOC_STATUS_RADIO_OFF +#define DOT11_CONNECTION_STATUS_CANCELLED DOT11_ASSOC_STATUS_CANCELLED +#define DOT11_CONNECTION_STATUS_IHV_START DOT11_ASSOC_STATUS_IHV_START +#define DOT11_CONNECTION_STATUS_IHV_END DOT11_ASSOC_STATUS_IHV_END +typedef struct DOT11_CONNECTION_COMPLETION_PARAMETERS { + #define DOT11_CONNECTION_COMPLETION_PARAMETERS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + DOT11_ASSOC_STATUS uStatus; // DOT11_CONNECTION_STATUS_XXXX +} DOT11_CONNECTION_COMPLETION_PARAMETERS, * PDOT11_CONNECTION_COMPLETION_PARAMETERS; + +#define DOT11_ROAMING_REASON_BETTER_AP_FOUND DOT11_ASSOC_STATUS_ROAMING_BETTER_AP_FOUND +#define DOT11_ROAMING_REASON_ASSOCIATION_LOST DOT11_ASSOC_STATUS_ROAMING_ASSOCIATION_LOST +#define DOT11_ROAMING_REASON_ADHOC DOT11_ASSOC_STATUS_ROAMING_ADHOC +#define DOT11_ROAMING_REASON_IHV_START DOT11_ASSOC_STATUS_IHV_START +#define DOT11_ROAMING_REASON_IHV_END DOT11_ASSOC_STATUS_IHV_END +typedef struct DOT11_ROAMING_START_PARAMETERS { + #define DOT11_ROAMING_START_PARAMETERS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS AdhocBSSID; // applicable to adhoc mode only + DOT11_SSID AdhocSSID; // applicable to adhoc mode only + DOT11_ASSOC_STATUS uRoamingReason; +} DOT11_ROAMING_START_PARAMETERS, * PDOT11_ROAMING_START_PARAMETERS; + +typedef struct DOT11_ROAMING_COMPLETION_PARAMETERS { + #define DOT11_ROAMING_COMPLETION_PARAMETERS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + DOT11_ASSOC_STATUS uStatus; // DOT11_CONNECTION_STATUS_XXXX +} DOT11_ROAMING_COMPLETION_PARAMETERS, * PDOT11_ROAMING_COMPLETION_PARAMETERS; + +// Disassociation Reason Code +#define DOT11_DISASSOC_REASON_OS DOT11_ASSOC_STATUS_DISASSOCIATED_BY_OS +#define DOT11_DISASSOC_REASON_PEER_UNREACHABLE DOT11_ASSOC_STATUS_UNREACHABLE + +// Current association is disassocated because the NIC receives an +// 802.11 de-authentication frame from the peer. The lowest 16-bits +// are the reason code (2-byte) copied from the 802.11 DeAuthentication frame. +#define DOT11_DISASSOC_REASON_PEER_DEAUTHENTICATED DOT11_ASSOC_STATUS_PEER_DEAUTHENTICATED + +// Current association is disassocated because the NIC receives an +// 802.11 disassociation frame from the peer. The lowest 16-bits +// are the reason code (2-byte) copied from the 802.11 disassociation frame. +#define DOT11_DISASSOC_REASON_PEER_DISASSOCIATED DOT11_ASSOC_STATUS_PEER_DISASSOCIATED + +#define DOT11_DISASSOC_REASON_RADIO_OFF DOT11_ASSOC_STATUS_RADIO_OFF +#define DOT11_DISASSOC_REASON_PHY_DISABLED DOT11_ASSOC_STATUS_PHY_DISABLED +#define DOT11_DISASSOC_REASON_IHV_START DOT11_ASSOC_STATUS_IHV_START +#define DOT11_DISASSOC_REASON_IHV_END DOT11_ASSOC_STATUS_IHV_END +typedef struct DOT11_DISASSOCIATION_PARAMETERS { + #define DOT11_DISASSOCIATION_PARAMETERS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS MacAddr; + DOT11_ASSOC_STATUS uReason; + ULONG uIHVDataOffset, uIHVDataSize; +} DOT11_DISASSOCIATION_PARAMETERS, * PDOT11_DISASSOCIATION_PARAMETERS; + +typedef struct DOT11_TKIPMIC_FAILURE_PARAMETERS { + #define DOT11_TKIPMIC_FAILURE_PARAMETERS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + BOOLEAN bDefaultKeyFailure; + ULONG uKeyIndex; + DOT11_MAC_ADDRESS PeerMac; +} DOT11_TKIPMIC_FAILURE_PARAMETERS, * PDOT11_TKIPMIC_FAILURE_PARAMETERS; + +typedef struct DOT11_PMKID_CANDIDATE_LIST_PARAMETERS { + #define DOT11_PMKID_CANDIDATE_LIST_PARAMETERS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uCandidateListSize; + ULONG uCandidateListOffset; +} DOT11_PMKID_CANDIDATE_LIST_PARAMETERS, * PDOT11_PMKID_CANDIDATE_LIST_PARAMETERS; + +typedef struct DOT11_BSSID_CANDIDATE { + DOT11_MAC_ADDRESS BSSID; + + #define DOT11_PMKID_CANDIDATE_PREAUTH_ENABLED 0x00000001U + ULONG uFlags; +} DOT11_BSSID_CANDIDATE, *PDOT11_BSSID_CANDIDATE; + +typedef struct DOT11_PHY_STATE_PARAMETERS { + #define DOT11_PHY_STATE_PARAMETERS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uPhyId; + BOOLEAN bHardwarePhyState; + BOOLEAN bSoftwarePhyState; +} DOT11_PHY_STATE_PARAMETERS, * PDOT11_PHY_STATE_PARAMETERS; + +typedef struct DOT11_LINK_QUALITY_ENTRY { + DOT11_MAC_ADDRESS PeerMacAddr; + UCHAR ucLinkQuality; +} DOT11_LINK_QUALITY_ENTRY, *PDOT11_LINK_QUALITY_ENTRY; + +typedef struct DOT11_LINK_QUALITY_PARAMETERS { + #define DOT11_LINK_QUALITY_PARAMETERS_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uLinkQualityListSize; + ULONG uLinkQualityListOffset; +} DOT11_LINK_QUALITY_PARAMETERS, * PDOT11_LINK_QUALITY_PARAMETERS; + + +// Send OOB data for ExtSTA mode +typedef struct DOT11_EXTSTA_SEND_CONTEXT { + #define DOT11_EXTSTA_SEND_CONTEXT_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + USHORT usExemptionActionType; + ULONG uPhyId; + ULONG uDelayedSleepValue; + +#ifdef __midl + // For nwifi test, which pass this structure using midl + ULONG_PTR pvMediaSpecificInfo; +#else + PVOID pvMediaSpecificInfo; +#endif + + ULONG uSendFlags; // reserved field for safe mode wireless +} DOT11_EXTSTA_SEND_CONTEXT, * PDOT11_EXTSTA_SEND_CONTEXT; + +// Recv OOB data for ExtSTA mode +#define DOT11_RECV_FLAG_RAW_PACKET 0x00000001U +#define DOT11_RECV_FLAG_RAW_PACKET_FCS_FAILURE 0x00000002U +#define DOT11_RECV_FLAG_RAW_PACKET_TIMESTAMP 0x00000004U +typedef struct DOT11_EXTSTA_RECV_CONTEXT { + #define DOT11_EXTSTA_RECV_CONTEXT_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + ULONG uReceiveFlags; + ULONG uPhyId; + ULONG uChCenterFrequency; + USHORT usNumberOfMPDUsReceived; + LONG lRSSI; + UCHAR ucDataRate; + + ULONG uSizeMediaSpecificInfo; + +#ifdef __midl + // For nwifi test, which pass this structure using midl + ULONG_PTR pvMediaSpecificInfo; +#else + PVOID pvMediaSpecificInfo; +#endif + + ULONGLONG ullTimestamp; + +} DOT11_EXTSTA_RECV_CONTEXT, * PDOT11_EXTSTA_RECV_CONTEXT; + +// +// Private 802.11 OIDs: this should be the last section +// +// We reserve 1024 entries for real DOT11 OIDs +// + +#define OID_DOT11_PRIVATE_OIDS_START (OID_DOT11_NDIS_START + 1024) + +#define OID_DOT11_CURRENT_ADDRESS (OID_DOT11_PRIVATE_OIDS_START + 2) + // DOT11_MAC_ADDRESS + +#define OID_DOT11_PERMANENT_ADDRESS (OID_DOT11_PRIVATE_OIDS_START + 3) + // DOT11_MAC_ADDRESS + +#define OID_DOT11_MULTICAST_LIST (OID_DOT11_PRIVATE_OIDS_START + 4) + // OID_802_3_MULTICAST_LIST + +#define OID_DOT11_MAXIMUM_LIST_SIZE (OID_DOT11_PRIVATE_OIDS_START + 5) + + +// GUIDs for WMI + +#define DEFINE_NWF_GUID(name,ord) \ + DEFINE_GUID(name, 0x6cb9a43e + (ord), 0xc45f, 0x4039, 0x9f, 0xe6, 0xd0, 0x8c, 0xb0, 0x57, 0x18, 0x4c) + + +DEFINE_NWF_GUID(GUID_NWF_OFFLOAD_CAPABILITY,0); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_OFFLOAD_CAPABILITY,1); +DEFINE_NWF_GUID(GUID_NWF_WEP_OFFLOAD,2); +DEFINE_NWF_GUID(GUID_NWF_WEP_UPLOAD,3); +DEFINE_NWF_GUID(GUID_NWF_DEFAULT_WEP_OFFLOAD,4); +DEFINE_NWF_GUID(GUID_NWF_DEFAULT_WEP_UPLOAD,5); +DEFINE_NWF_GUID(GUID_NWF_MPDU_MAX_LENGTH,6); +DEFINE_NWF_GUID(GUID_NWF_OPERATION_MODE_CAPABILITY,7); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_OPERATION_MODE,8); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_PACKET_FILTER,9); +DEFINE_NWF_GUID(GUID_NWF_ATIM_WINDOW,10); +DEFINE_NWF_GUID(GUID_NWF_SCAN_REQUEST,11); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_PHY_TYPE,12); +DEFINE_NWF_GUID(GUID_NWF_JOIN_REQUEST,13); +DEFINE_NWF_GUID(GUID_NWF_START_REQUEST,14); +DEFINE_NWF_GUID(GUID_NWF_UPDATE_IE,15); +DEFINE_NWF_GUID(GUID_NWF_RESET_REQUEST,16); +DEFINE_NWF_GUID(GUID_NWF_NIC_POWER_STATE,17); +DEFINE_NWF_GUID(GUID_NWF_OPTIONAL_CAPABILITY,18); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_OPTIONAL_CAPABILITY,19); +DEFINE_NWF_GUID(GUID_NWF_STATION_ID,20); +DEFINE_NWF_GUID(GUID_NWF_MEDIUM_OCCUPANCY_LIMIT,21); +DEFINE_NWF_GUID(GUID_NWF_CF_POLLABLE,22); +DEFINE_NWF_GUID(GUID_NWF_CFP_PERIOD,23); +DEFINE_NWF_GUID(GUID_NWF_CFP_MAX_DURATION,24); +DEFINE_NWF_GUID(GUID_NWF_POWER_MGMT_MODE,25); +DEFINE_NWF_GUID(GUID_NWF_OPERATIONAL_RATE_SET,26); +DEFINE_NWF_GUID(GUID_NWF_BEACON_PERIOD,27); +DEFINE_NWF_GUID(GUID_NWF_DTIM_PERIOD,28); +DEFINE_NWF_GUID(GUID_NWF_WEP_ICV_ERROR_COUNT,29); +DEFINE_NWF_GUID(GUID_NWF_MAC_ADDRESS,30); +DEFINE_NWF_GUID(GUID_NWF_RTS_THRESHOLD,31); +DEFINE_NWF_GUID(GUID_NWF_SHORT_RETRY_LIMIT,32); +DEFINE_NWF_GUID(GUID_NWF_LONG_RETRY_LIMIT,33); +DEFINE_NWF_GUID(GUID_NWF_FRAGMENTATION_THRESHOLD,34); +DEFINE_NWF_GUID(GUID_NWF_MAX_TRANSMIT_MSDU_LIFETIME,35); +DEFINE_NWF_GUID(GUID_NWF_MAX_RECEIVE_LIFETIME,36); +DEFINE_NWF_GUID(GUID_NWF_COUNTERS_ENTRY,37); +DEFINE_NWF_GUID(GUID_NWF_SUPPORTED_PHY_TYPES,38); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_REG_DOMAIN,39); +DEFINE_NWF_GUID(GUID_NWF_TEMP_TYPE,40); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_TX_ANTENNA,41); +DEFINE_NWF_GUID(GUID_NWF_DIVERSITY_SUPPORT,42); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_RX_ANTENNA,43); +DEFINE_NWF_GUID(GUID_NWF_SUPPORTED_POWER_LEVELS,44); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_TX_POWER_LEVEL,45); +DEFINE_NWF_GUID(GUID_NWF_HOP_TIME,46); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_CHANNEL_NUMBER,47); +DEFINE_NWF_GUID(GUID_NWF_MAX_DWELL_TIME,48); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_DWELL_TIME,49); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_SET,50); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_PATTERN,51); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_INDEX,52); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_CHANNEL,53); +DEFINE_NWF_GUID(GUID_NWF_CCA_MODE_SUPPORTED,54); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_CCA_MODE,55); +DEFINE_NWF_GUID(GUID_NWF_ED_THRESHOLD,56); +DEFINE_NWF_GUID(GUID_NWF_CCA_WATCHDOG_TIMER_MAX,57); +DEFINE_NWF_GUID(GUID_NWF_CCA_WATCHDOG_COUNT_MAX,58); +DEFINE_NWF_GUID(GUID_NWF_CCA_WATCHDOG_TIMER_MIN,59); +DEFINE_NWF_GUID(GUID_NWF_CCA_WATCHDOG_COUNT_MIN,60); +DEFINE_NWF_GUID(GUID_NWF_REG_DOMAINS_SUPPORT_VALUE,61); +DEFINE_NWF_GUID(GUID_NWF_SUPPORTED_TX_ANTENNA,62); +DEFINE_NWF_GUID(GUID_NWF_SUPPORTED_RX_ANTENNA,63); +DEFINE_NWF_GUID(GUID_NWF_DIVERSITY_SELECTION_RX,64); +DEFINE_NWF_GUID(GUID_NWF_SUPPORTED_DATA_RATES_VALUE,65); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_FREQUENCY,66); +DEFINE_NWF_GUID(GUID_NWF_TI_THRESHOLD,67); +DEFINE_NWF_GUID(GUID_NWF_FREQUENCY_BANDS_SUPPORTED,68); +DEFINE_NWF_GUID(GUID_NWF_SHORT_PREAMBLE_OPTION_IMPLEMENTED,69); +DEFINE_NWF_GUID(GUID_NWF_PBCC_OPTION_IMPLEMENTED,70); +DEFINE_NWF_GUID(GUID_NWF_CHANNEL_AGILITY_PRESENT,71); +DEFINE_NWF_GUID(GUID_NWF_CHANNEL_AGILITY_ENABLED,72); +DEFINE_NWF_GUID(GUID_NWF_HR_CCA_MODE_SUPPORTED,73); +DEFINE_NWF_GUID(GUID_NWF_MULTI_DOMAIN_CAPABILITY_IMPLEMENTED,74); +DEFINE_NWF_GUID(GUID_NWF_MULTI_DOMAIN_CAPABILITY_ENABLED,75); +DEFINE_NWF_GUID(GUID_NWF_COUNTRY_STRING,76); +DEFINE_NWF_GUID(GUID_NWF_MULTI_DOMAIN_CAPABILITY,77); +DEFINE_NWF_GUID(GUID_NWF_EHCC_PRIME_RADIX,78); +DEFINE_NWF_GUID(GUID_NWF_EHCC_NUMBER_OF_CHANNELS_FAMILY_INDEX,79); +DEFINE_NWF_GUID(GUID_NWF_EHCC_CAPABILITY_IMPLEMENTED,80); +DEFINE_NWF_GUID(GUID_NWF_EHCC_CAPABILITY_ENABLED,81); +DEFINE_NWF_GUID(GUID_NWF_HOP_ALGORITHM_ADOPTED,82); +DEFINE_NWF_GUID(GUID_NWF_RANDOM_TABLE_FLAG,83); +DEFINE_NWF_GUID(GUID_NWF_NUMBER_OF_HOPPING_SETS,84); +DEFINE_NWF_GUID(GUID_NWF_HOP_MODULUS,85); +DEFINE_NWF_GUID(GUID_NWF_HOP_OFFSET,86); +DEFINE_NWF_GUID(GUID_NWF_HOPPING_PATTERN,87); +DEFINE_NWF_GUID(GUID_NWF_RANDOM_TABLE_FIELD_NUMBER,88); +DEFINE_NWF_GUID(GUID_NWF_WPA_TSC,89); +DEFINE_NWF_GUID(GUID_NWF_RSSI_RANGE,90); +DEFINE_NWF_GUID(GUID_NWF_RF_USAGE,91); +DEFINE_NWF_GUID(GUID_NWF_NIC_SPECIFIC_EXTENSION,92); +DEFINE_NWF_GUID(GUID_NWF_AP_JOIN_REQUEST,93); +DEFINE_NWF_GUID(GUID_NWF_ERP_PBCC_OPTION_IMPLEMENTED,94); +DEFINE_NWF_GUID(GUID_NWF_ERP_PBCC_OPTION_ENABLED,95); +DEFINE_NWF_GUID(GUID_NWF_DSSS_OFDM_OPTION_IMPLEMENTED,96); +DEFINE_NWF_GUID(GUID_NWF_DSSS_OFDM_OPTION_ENABLED,97); +DEFINE_NWF_GUID(GUID_NWF_SHORT_SLOT_TIME_OPTION_IMPLEMENTED,98); +DEFINE_NWF_GUID(GUID_NWF_SHORT_SLOT_TIME_OPTION_ENABLED,99); +DEFINE_NWF_GUID(GUID_NWF_MAX_MAC_ADDRESS_STATES,100); +DEFINE_NWF_GUID(GUID_NWF_RECV_SENSITIVITY_LIST,101); +DEFINE_NWF_GUID(GUID_NWF_WME_IMPLEMENTED,102); +DEFINE_NWF_GUID(GUID_NWF_WME_ENABLED,103); +DEFINE_NWF_GUID(GUID_NWF_WME_AC_PARAMETERS,104); +DEFINE_NWF_GUID(GUID_NWF_WME_UPDATE_IE,105); +DEFINE_NWF_GUID(GUID_NWF_QOS_TX_QUEUES_SUPPORTED,106); +DEFINE_NWF_GUID(GUID_NWF_QOS_TX_DURATION,107); +DEFINE_NWF_GUID(GUID_NWF_QOS_TX_MEDIUM_TIME,108); +DEFINE_NWF_GUID(GUID_NWF_SUPPORTED_OFDM_FREQUENCY_LIST,109); +DEFINE_NWF_GUID(GUID_NWF_SUPPORTED_DSSS_CHANNEL_LIST,110); +DEFINE_NWF_GUID(GUID_NWF_AUTO_CONFIG_ENABLED,120); +DEFINE_NWF_GUID(GUID_NWF_ENUM_BSS_LIST,121); +DEFINE_NWF_GUID(GUID_NWF_FLUSH_BSS_LIST,122); +DEFINE_NWF_GUID(GUID_NWF_POWER_MGMT_REQUEST,123); +DEFINE_NWF_GUID(GUID_NWF_DESIRED_SSID_LIST,124); +DEFINE_NWF_GUID(GUID_NWF_EXCLUDED_MAC_ADDRESS_LIST,125); +DEFINE_NWF_GUID(GUID_NWF_DESIRED_BSSID_LIST,126); +DEFINE_NWF_GUID(GUID_NWF_DESIRED_BSS_TYPE,127); +DEFINE_NWF_GUID(GUID_NWF_PMKID_LIST,128); +DEFINE_NWF_GUID(GUID_NWF_CONNECT_REQUEST,129); +DEFINE_NWF_GUID(GUID_NWF_EXCLUDE_UNENCRYPTED,130); +DEFINE_NWF_GUID(GUID_NWF_STATISTICS,131); +DEFINE_NWF_GUID(GUID_NWF_PRIVACY_EXEMPTION_LIST,132); +DEFINE_NWF_GUID(GUID_NWF_ENABLED_AUTHENTICATION_ALGORITHM,133); +DEFINE_NWF_GUID(GUID_NWF_SUPPORTED_UNICAST_ALGORITHM_PAIR,134); +DEFINE_NWF_GUID(GUID_NWF_ENABLED_UNICAST_CIPHER_ALGORITHM,135); +DEFINE_NWF_GUID(GUID_NWF_SUPPORTED_MULTICAST_ALGORITHM_PAIR,136); +DEFINE_NWF_GUID(GUID_NWF_ENABLED_MULTICAST_CIPHER_ALGORITHM,137); +DEFINE_NWF_GUID(GUID_NWF_CIPHER_DEFAULT_KEY_ID,138); +DEFINE_NWF_GUID(GUID_NWF_CIPHER_DEFAULT_KEY,139); +DEFINE_NWF_GUID(GUID_NWF_CIPHER_KEY_MAPPING_KEY,140); +DEFINE_NWF_GUID(GUID_NWF_ENUM_ASSOCIATION_INFO,141); +DEFINE_NWF_GUID(GUID_NWF_DISCONNECT_REQUEST,142); +DEFINE_NWF_GUID(GUID_NWF_UNICAST_USE_GROUP_ENABLED,143); +DEFINE_NWF_GUID(GUID_NWF_PHY_STATE,144); +DEFINE_NWF_GUID(GUID_NWF_DESIRED_PHY_LIST,145); +DEFINE_NWF_GUID(GUID_NWF_CURRENT_PHY_ID,146); +DEFINE_NWF_GUID(GUID_NWF_MEDIA_STREAMING_ENABLED,147); +DEFINE_NWF_GUID(GUID_NWF_UNREACHABLE_DETECTION_THRESHOLD,148); +DEFINE_NWF_GUID(GUID_NWF_ACTIVE_PHY_LIST,149); +DEFINE_NWF_GUID(GUID_NWF_EXTSTA_CAPABILITY,150); +DEFINE_NWF_GUID(GUID_NWF_DATA_RATE_MAPPING_TABLE,151); +DEFINE_NWF_GUID(GUID_NWF_SUPPORTED_COUNTRY_OR_REGION_STRING,152); +DEFINE_NWF_GUID(GUID_NWF_DESIRED_COUNTRY_OR_REGION_STRING,153); +DEFINE_NWF_GUID(GUID_NWF_PORT_STATE_NOTIFICATION,154); +DEFINE_NWF_GUID(GUID_NWF_IBSS_PARAMS,155); +DEFINE_NWF_GUID(GUID_NWF_QOS_PARAMS,156); +DEFINE_NWF_GUID(GUID_NWF_SAFE_MODE_ENABLED,157); +DEFINE_NWF_GUID(GUID_NWF_HIDDEN_NETWORK_ENABLED,158); +DEFINE_NWF_GUID(GUID_NWF_ASSOCIATION_PARAMS,159); + +DEFINE_NWF_GUID(GUID_NWF_CURRENT_ADDRESS,1024+2); +DEFINE_NWF_GUID(GUID_NWF_PERMANENT_ADDRESS,1024+3); +DEFINE_NWF_GUID(GUID_NWF_MULTICAST_LIST,1024+4); +DEFINE_NWF_GUID(GUID_NWF_MAXIMUM_LIST_SIZE,1024+5); + +#endif // (NTDDI_VERSION > NTDDI_VISTA) + + + + + +#ifdef NWF_EXTAP_SUPPORTED + + + +#define DOT11_EXTAP_ATTRIBUTES_REVISION_1 1 +typedef +struct _DOT11_EXTAP_ATTRIBUTES +{ + NDIS_OBJECT_HEADER Header; + + ULONG uScanSSIDListSize; + ULONG uDesiredSSIDListSize; + ULONG uPrivacyExemptionListSize; + ULONG uAssociationTableSize; + ULONG uDefaultKeyTableSize; + ULONG uWEPKeyValueMaxLength; + BOOLEAN bStrictlyOrderedServiceClassImplemented; + + // Supported Country Strings + ULONG uNumSupportedCountryOrRegionStrings; + #ifdef __midl + [size_is(uNumSupportedCountryOrRegionStrings)] + #endif + PDOT11_COUNTRY_OR_REGION_STRING pSupportedCountryOrRegionStrings; + + + + // Unicast algorithm capabilities + ULONG uInfraNumSupportedUcastAlgoPairs; + #ifdef __midl + [size_is(uInfraNumSupportedUcastAlgoPairs)] + #endif + PDOT11_AUTH_CIPHER_PAIR pInfraSupportedUcastAlgoPairs; + + + // Multicast algorithm capabilities + ULONG uInfraNumSupportedMcastAlgoPairs; + #ifdef __midl + [size_is(uInfraNumSupportedMcastAlgoPairs)] + #endif + PDOT11_AUTH_CIPHER_PAIR pInfraSupportedMcastAlgoPairs; + +} +DOT11_EXTAP_ATTRIBUTES, *PDOT11_EXTAP_ATTRIBUTES; + +#define NDIS_SIZEOF_DOT11_EXTAP_ATTRIBUTES_REVISION_1 sizeof(DOT11_EXTAP_ATTRIBUTES) + + + + +// NDIS indications for Ext AP mode. + + + + +// Data type for NDIS_STATUS_DOT11_INCOMING_ASSOC_STARTED + +#define DOT11_INCOMING_ASSOC_STARTED_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_INCOMING_ASSOC_STARTED_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerMacAddr; + } + DOT11_INCOMING_ASSOC_STARTED_PARAMETERS, *PDOT11_INCOMING_ASSOC_STARTED_PARAMETERS; + + + + +// Data type for NDIS_STATUS_DOT11_INCOMING_ASSOC_REQUEST_RECEIVED + +#define DOT11_INCOMING_ASSOC_REQUEST_RECEIVED_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_INCOMING_ASSOC_REQUEST_RECEIVED_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerMacAddr; + BOOLEAN bReAssocReq; + ULONG uAssocReqOffset; + ULONG uAssocReqSize; + } + DOT11_INCOMING_ASSOC_REQUEST_RECEIVED_PARAMETERS, *PDOT11_INCOMING_ASSOC_REQUEST_RECEIVED_PARAMETERS; + + + + + + +// Data type for NDIS_STATUS_DOT11_INCOMING_ASSOC_COMPLETION + +#define DOT11_ASSOC_ERROR_SOURCE_OS 0x0 +#define DOT11_ASSOC_ERROR_SOURCE_REMOTE 0x01 +#define DOT11_ASSOC_ERROR_SOURCE_OTHER 0xFF + + +#define DOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerMacAddr; + + ULONG uStatus; + UCHAR ucErrorSource; + + BOOLEAN bReAssocReq; + BOOLEAN bReAssocResp; + + ULONG uAssocReqOffset; + ULONG uAssocReqSize; + + ULONG uAssocRespOffset; + ULONG uAssocRespSize; + + // The following fields are applicable for successful association. + // For association failure, they must be zero-ed out. + + DOT11_AUTH_ALGORITHM AuthAlgo; + DOT11_CIPHER_ALGORITHM UnicastCipher; + DOT11_CIPHER_ALGORITHM MulticastCipher; + ULONG uActivePhyListOffset; + ULONG uActivePhyListSize; + + ULONG uBeaconOffset; + ULONG uBeaconSize; + } + DOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS, *PDOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS; + + +// Data type for NDIS_STATUS_DOT11_STOP_AP + +#define DOT11_STOP_AP_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_STOP_AP_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + ULONG ulReason; + } + DOT11_STOP_AP_PARAMETERS, *PDOT11_STOP_AP_PARAMETERS; + + +#define DOT11_STOP_AP_REASON_FREQUENCY_NOT_AVAILABLE 0x1 +#define DOT11_STOP_AP_REASON_CHANNEL_NOT_AVAILABLE 0x2 +#define DOT11_STOP_AP_REASON_AP_ACTIVE 0x3 + + +#define DOT11_STOP_AP_REASON_IHV_START 0xFF000000 +#define DOT11_STOP_AP_REASON_IHV_END 0xFFFFFFFF + + + + + + + + +// Data type for NDIS_STATUS_DOT11_PHY_FREQUENCY_ADOPTED + + +#define DOT11_PHY_FREQUENCY_ADOPTED_PARAMETERS_REVISION_1 1 +typedef +struct _DOT11_PHY_FREQUENCY_ADOPTED_PARAMETERS +{ + NDIS_OBJECT_HEADER Header; + ULONG ulPhyId; + union + { + ULONG ulChannel; + ULONG ulFrequency; + }; +} +DOT11_PHY_FREQUENCY_ADOPTED_PARAMETERS, *PDOT11_PHY_FREQUENCY_ADOPTED_PARAMETERS; + + + +// Data type for NDIS_STATUS_DOT11_CAN_SUSTAIN_AP + +#define DOT11_CAN_SUSTAIN_AP_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_CAN_SUSTAIN_AP_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + ULONG ulReason; + } + DOT11_CAN_SUSTAIN_AP_PARAMETERS, *PDOT11_CAN_SUSTAIN_AP_PARAMETERS; + + +#define DOT11_CAN_SUSTAIN_AP_REASON_IHV_START 0xFF000000 +#define DOT11_CAN_SUSTAIN_AP_REASON_IHV_END 0xFFFFFFFF + + + +// TAG for Ext AP specific OIDs. +#define NWF_EXTAP_OID (0x03U) + + + + +#define OID_DOT11_WPS_ENABLED NWF_DEFINE_OID(0x01, NWF_EXTAP_OID, NWF_MANDATORY_OID) + // BOOLEAN + + + +#define OID_DOT11_START_AP_REQUEST NWF_DEFINE_OID(0x02, NWF_EXTAP_OID, NWF_MANDATORY_OID) + // VOID + + + +#define OID_DOT11_AVAILABLE_CHANNEL_LIST NWF_DEFINE_OID(0x03, NWF_EXTAP_OID, NWF_MANDATORY_OID) + // DOT11_AVAILABLE_CHANNEL_LIST + +#define DOT11_AVAILABLE_CHANNEL_LIST_REVISION_1 1 + + typedef + struct _DOT11_AVAILABLE_CHANNEL_LIST + { + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + ULONG uChannelNumber[1]; + } + DOT11_AVAILABLE_CHANNEL_LIST, *PDOT11_AVAILABLE_CHANNEL_LIST; + + + + +#define OID_DOT11_AVAILABLE_FREQUENCY_LIST NWF_DEFINE_OID(0x04, NWF_EXTAP_OID, NWF_MANDATORY_OID) + // DOT11_AVAILABLE_FREQUENCY_LIST + + +#define DOT11_AVAILABLE_FREQUENCY_LIST_REVISION_1 1 + + typedef + struct _DOT11_AVAILABLE_FREQUENCY_LIST + { + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + ULONG uFrequencyValue[1]; + } + DOT11_AVAILABLE_FREQUENCY_LIST, *PDOT11_AVAILABLE_FREQUENCY_LIST; + + + + +#define OID_DOT11_DISASSOCIATE_PEER_REQUEST NWF_DEFINE_OID(0x05, NWF_EXTAP_OID, NWF_MANDATORY_OID) + // DOT11_DISASSOCIATE_PEER_REQUEST + +#define DOT11_DISASSOCIATE_PEER_REQUEST_REVISION_1 1 + + typedef + struct _DOT11_DISASSOCIATE_PEER_REQUEST + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerMacAddr; + USHORT usReason; + + } + DOT11_DISASSOCIATE_PEER_REQUEST, *PDOT11_DISASSOCIATE_PEER_REQUEST; + + + + + + + + +#define OID_DOT11_INCOMING_ASSOCIATION_DECISION NWF_DEFINE_OID(0x06, NWF_EXTAP_OID, NWF_MANDATORY_OID) + // DOT11_INCOMING_ASSOC_DECISION + +#define DOT11_INCOMING_ASSOC_DECISION_REVISION_1 1 + + typedef + struct _DOT11_INCOMING_ASSOC_DECISION + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerMacAddr; + BOOLEAN bAccept; + USHORT usReasonCode; + ULONG uAssocResponseIEsOffset; + ULONG uAssocResponseIEsLength; + } + DOT11_INCOMING_ASSOC_DECISION, *PDOT11_INCOMING_ASSOC_DECISION; + +#define DOT11_SIZEOF_INCOMING_ASSOC_DECISION_REVISION_1 sizeof(DOT11_INCOMING_ASSOC_DECISION) + + +#ifdef NWF_WFD_SUPPORTED + +#define DOT11_INCOMING_ASSOC_DECISION_REVISION_2 2 + + typedef + struct _DOT11_INCOMING_ASSOC_DECISION_V2 + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerMacAddr; + BOOLEAN bAccept; + USHORT usReasonCode; + ULONG uAssocResponseIEsOffset; + ULONG uAssocResponseIEsLength; + DOT11_WFD_STATUS_CODE WFDStatus; + } + DOT11_INCOMING_ASSOC_DECISION_V2, *PDOT11_INCOMING_ASSOC_DECISION_V2; + +#define DOT11_SIZEOF_INCOMING_ASSOC_DECISION_REVISION_2 sizeof(DOT11_INCOMING_ASSOC_DECISION_V2) + +#endif + + + + +#define OID_DOT11_ADDITIONAL_IE NWF_DEFINE_OID(0x07, NWF_EXTAP_OID, NWF_MANDATORY_OID) + // DOT11_ADDITIONAL_IE + +#define DOT11_ADDITIONAL_IE_REVISION_1 1 + + typedef + struct _DOT11_ADDITIONAL_IE + { + NDIS_OBJECT_HEADER Header; + ULONG uBeaconIEsOffset; + ULONG uBeaconIEsLength; + ULONG uResponseIEsOffset; + ULONG uResponseIEsLength; + } + DOT11_ADDITIONAL_IE, *PDOT11_ADDITIONAL_IE; + + + +// +// Ext AP Send context +// +#define DOT11_EXTAP_SEND_CONTEXT_REVISION_1 1 + + +typedef +struct DOT11_EXTSTA_SEND_CONTEXT +DOT11_EXTAP_SEND_CONTEXT, *PDOT11_EXTAP_SEND_CONTEXT; + + + +// +// Ext AP Receive context +// +#define DOT11_EXTAP_RECV_CONTEXT_REVISION_1 1 + + +typedef +struct DOT11_EXTSTA_RECV_CONTEXT +DOT11_EXTAP_RECV_CONTEXT, *PDOT11_EXTAP_RECV_CONTEXT; + + + + +#define OID_DOT11_ENUM_PEER_INFO NWF_DEFINE_OID(0x08, NWF_EXTAP_OID, NWF_MANDATORY_OID) + // DOT11_PEER_INFO_LIST + + typedef + struct _DOT11_PEER_STATISTICS + { + ULONGLONG ullDecryptSuccessCount; + ULONGLONG ullDecryptFailureCount; + ULONGLONG ullTxPacketSuccessCount; + ULONGLONG ullTxPacketFailureCount; + ULONGLONG ullRxPacketSuccessCount; + ULONGLONG ullRxPacketFailureCount; + } + DOT11_PEER_STATISTICS, *PDOT11_PEER_STATISTICS; + + typedef + struct _DOT11_PEER_INFO + { + DOT11_MAC_ADDRESS MacAddress; + USHORT usCapabilityInformation; + DOT11_AUTH_ALGORITHM AuthAlgo; + DOT11_CIPHER_ALGORITHM UnicastCipherAlgo; + DOT11_CIPHER_ALGORITHM MulticastCipherAlgo; + BOOLEAN bWpsEnabled; + USHORT usListenInterval; + UCHAR ucSupportedRates[MAX_NUM_SUPPORTED_RATES_V2]; + USHORT usAssociationID; + DOT11_ASSOCIATION_STATE AssociationState; + DOT11_POWER_MODE PowerMode; + LARGE_INTEGER liAssociationUpTime; + DOT11_PEER_STATISTICS Statistics; + } + DOT11_PEER_INFO, *PDOT11_PEER_INFO; + + +#define DOT11_PEER_INFO_LIST_REVISION_1 1 + typedef + struct _DOT11_PEER_INFO_LIST + { + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_PEER_INFO PeerInfo[1]; + } + DOT11_PEER_INFO_LIST, *PDOT11_PEER_INFO_LIST; + + + + + +#endif // NWF_EXTAP_SUPPORTED + +#ifdef NWF_VWIFI_SUPPORTED + +#define DOT11_VWIFI_COMBINATION_REVISION_1 1 + typedef + struct _DOT11_VWIFI_COMBINATION + { + NDIS_OBJECT_HEADER Header; + ULONG uNumInfrastructure; + ULONG uNumAdhoc; + ULONG uNumSoftAP; + } + DOT11_VWIFI_COMBINATION, * PDOT11_VWIFI_COMBINATION; + +#define DOT11_SIZEOF_VWIFI_COMBINATION_REVISION_1 sizeof(DOT11_VWIFI_COMBINATION) + +#define DOT11_VWIFI_COMBINATION_REVISION_2 2 + typedef + struct _DOT11_VWIFI_COMBINATION_V2 + { + NDIS_OBJECT_HEADER Header; + ULONG uNumInfrastructure; + ULONG uNumAdhoc; + ULONG uNumSoftAP; + ULONG uNumVirtualStation; + } + DOT11_VWIFI_COMBINATION_V2, * PDOT11_VWIFI_COMBINATION_V2; + +#define DOT11_SIZEOF_VWIFI_COMBINATION_REVISION_2 sizeof(DOT11_VWIFI_COMBINATION_V2) + +#ifdef NWF_WFD_SUPPORTED + +#define DOT11_VWIFI_COMBINATION_REVISION_3 3 + typedef + struct _DOT11_VWIFI_COMBINATION_V3 + { + NDIS_OBJECT_HEADER Header; + ULONG uNumInfrastructure; + ULONG uNumAdhoc; + ULONG uNumSoftAP; + ULONG uNumVirtualStation; + ULONG uNumWFDGroup; + } + DOT11_VWIFI_COMBINATION_V3, * PDOT11_VWIFI_COMBINATION_V3; + +#define DOT11_SIZEOF_VWIFI_COMBINATION_REVISION_3 sizeof(DOT11_VWIFI_COMBINATION_V3) + +#endif // NWF_WFD_SUPPORTED + +#define DOT11_VWIFI_ATTRIBUTES_REVISION_1 1 + typedef + struct DOT11_VWIFI_ATTRIBUTES + { + NDIS_OBJECT_HEADER Header; + ULONG uTotalNumOfEntries; + #ifdef __midl + [unique, size_is(uTotalNumOfEntries)] DOT11_VWIFI_COMBINATION Combinations[*]; + #else + DOT11_VWIFI_COMBINATION Combinations[1]; + #endif + } + DOT11_VWIFI_ATTRIBUTES, * PDOT11_VWIFI_ATTRIBUTES; + +// TAG for Virtual WiFi specific OIDs. +#define NWF_VWIFI_OID (0x04U) + + +#define OID_DOT11_CREATE_MAC NWF_DEFINE_OID(0x01, NWF_VWIFI_OID, NWF_MANDATORY_OID) + +#define DOT11_MAC_PARAMETERS_REVISION_1 1 + + typedef struct _DOT11_MAC_PARAMETERS{ + NDIS_OBJECT_HEADER Header; + ULONG uOpmodeMask; + } DOT11_MAC_PARAMETERS, *PDOT11_MAC_PARAMETERS; + +#define DOT11_SIZEOF_MAC_PARAMETERS_REVISION_1 sizeof(DOT11_MAC_PARAMETERS) + + typedef struct DOT11_MAC_INFO + { + ULONG uReserved; + ULONG uNdisPortNumber; + DOT11_MAC_ADDRESS MacAddr; + } DOT11_MAC_INFO, * PDOT11_MAC_INFO; + +#define OID_DOT11_DELETE_MAC NWF_DEFINE_OID(0x02, NWF_VWIFI_OID, NWF_MANDATORY_OID) + +#define OID_DOT11_PREFERRED_MAC NWF_DEFINE_OID(0x03, NWF_VWIFI_OID, NWF_MANDATORY_OID) + +#define OID_DOT11_VIRTUAL_STATION_CAPABILITY NWF_DEFINE_OID(0x04, NWF_VWIFI_OID, NWF_OPTIONAL_OID) + +#endif // NWF_VWIFI_SUPPORTED + + +#ifdef NWF_WFD_SUPPORTED + +#define DOT11_WFD_ATTRIBUTES_REVISION_1 1 + + typedef + struct _DOT11_WFD_ATTRIBUTES + { + NDIS_OBJECT_HEADER Header; + ULONG uNumConcurrentGORole; + ULONG uNumConcurrentClientRole; + ULONG WPSVersionsSupported; + + // Device Capabilities + BOOLEAN bServiceDiscoverySupported; + BOOLEAN bClientDiscoverabilitySupported; + BOOLEAN bInfrastructureManagementSupported; + + ULONG uMaxSecondaryDeviceTypeListSize; + + DOT11_MAC_ADDRESS DeviceAddress; + ULONG uInterfaceAddressListCount; + PDOT11_MAC_ADDRESS pInterfaceAddressList; + + ULONG uNumSupportedCountryOrRegionStrings; + #ifdef __midl + [size_is(uNumSupportedCountryOrRegionStrings)] + #endif + PDOT11_COUNTRY_OR_REGION_STRING pSupportedCountryOrRegionStrings; + + // Device Functionality + ULONG uDiscoveryFilterListSize; + + // GO Capabilities + ULONG uGORoleClientTableSize; + + // Client Capabilities + }DOT11_WFD_ATTRIBUTES, *PDOT11_WFD_ATTRIBUTES; + +#define DOT11_SIZEOF_WFD_ATTRIBUTES_REVISION_1 sizeof(DOT11_WFD_ATTRIBUTES) + + +// Common WFD data types +typedef UCHAR DOT11_WFD_GROUP_CAPABILITY; + +// WFD Status Code +#define DOT11_WFD_STATUS_SUCCESS 0 +#define DOT11_WFD_STATUS_FAILED_INFORMATION_IS_UNAVAILABLE 1 +#define DOT11_WFD_STATUS_FAILED_INCOMPATIBLE_PARAMETERS 2 +#define DOT11_WFD_STATUS_FAILED_LIMIT_REACHED 3 +#define DOT11_WFD_STATUS_FAILED_INVALID_PARAMETERS 4 +#define DOT11_WFD_STATUS_FAILED_UNABLE_TO_ACCOMODATE_REQUEST 5 +#define DOT11_WFD_STATUS_FAILED_PREVIOUS_PROTOCOL_ERROR 6 +#define DOT11_WFD_STATUS_FAILED_NO_COMMON_CHANNELS 7 +#define DOT11_WFD_STATUS_FAILED_UNKNOWN_WFD_GROUP 8 +#define DOT11_WFD_STATUS_FAILED_MATCHING_MAX_INTENT 9 +#define DOT11_WFD_STATUS_FAILED_INCOMPATIBLE_PROVISIONING_METHOD 10 +#define DOT11_WFD_STATUS_FAILED_REJECTED_BY_USER 11 +#define DOT11_WFD_STATUS_SUCCESS_ACCEPTED_BY_USER 12 + +#define WFD_STATUS_SUCCEEDED(status) (((DOT11_WFD_STATUS_CODE)(status)) == DOT11_WFD_STATUS_SUCCESS || \ + ((DOT11_WFD_STATUS_CODE)(status)) == DOT11_WFD_STATUS_SUCCESS_ACCEPTED_BY_USER) +#define WFD_STATUS_FAILED(status) (((DOT11_WFD_STATUS_CODE)(status)) != DOT11_WFD_STATUS_SUCCESS && \ + ((DOT11_WFD_STATUS_CODE)(status)) != DOT11_WFD_STATUS_SUCCESS_ACCEPTED_BY_USER) + +// WFD Minor Reason Code +#define DOT11_WFD_MINOR_REASON_SUCCESS 0 +#define DOT11_WFD_MINOR_REASON_DISASSOCIATED_FROM_WLAN_CROSS_CONNECTION_POLICY 1 +#define DOT11_WFD_MINOR_REASON_DISASSOCIATED_NOT_MANAGED_INFRASTRUCTURE_CAPABLE 2 +#define DOT11_WFD_MINOR_REASON_DISASSOCIATED_WFD_COEXISTENCE_POLICY 3 +#define DOT11_WFD_MINOR_REASON_DISASSOCIATED_INFRASTRUCTURE_MANAGED_POLICY 4 + +// WPS Version Information +#define DOT11_WPS_VERSION_1_0 0x01 +#define DOT11_WPS_VERSION_2_0 0x02 + +// WFD Device Capability Bits +#define DOT11_WFD_DEVICE_CAPABILITY_SERVICE_DISCOVERY 0x01 +#define DOT11_WFD_DEVICE_CAPABILITY_P2P_CLIENT_DISCOVERABILITY 0x02 +#define DOT11_WFD_DEVICE_CAPABILITY_CONCURRENT_OPERATION 0x04 +#define DOT11_WFD_DEVICE_CAPABILITY_P2P_INFRASTRUCTURE_MANAGED 0x08 +#define DOT11_WFD_DEVICE_CAPABILITY_P2P_DEVICE_LIMIT 0x10 +#define DOT11_WFD_DEVICE_CAPABILITY_P2P_INVITATION_PROCEDURE 0x20 +#define DOT11_WFD_DEVICE_CAPABILITY_RESERVED_6 0x40 +#define DOT11_WFD_DEVICE_CAPABILITY_RESERVED_7 0x80 + +// WFD Group Capability Bits +#define DOT11_WFD_GROUP_CAPABILITY_NONE 0x00 +#define DOT11_WFD_GROUP_CAPABILITY_GROUP_OWNER 0x01 +#define DOT11_WFD_GROUP_CAPABILITY_PERSISTENT_GROUP 0x02 +#define DOT11_WFD_GROUP_CAPABILITY_GROUP_LIMIT_REACHED 0x04 +#define DOT11_WFD_GROUP_CAPABILITY_INTRABSS_DISTRIBUTION_SUPPORTED 0x08 +#define DOT11_WFD_GROUP_CAPABILITY_CROSS_CONNECTION_SUPPORTED 0x10 +#define DOT11_WFD_GROUP_CAPABILITY_PERSISTENT_RECONNECT_SUPPORTED 0x20 +#define DOT11_WFD_GROUP_CAPABILITY_IN_GROUP_FORMATION 0x40 +#define DOT11_WFD_GROUP_CAPABILITY_RESERVED_7 0x80 +#define DOT11_WFD_GROUP_CAPABILITY_EAPOL_KEY_IP_ADDRESS_ALLOCATION_SUPPORTED 0x80 + +#define DOT11_WPS_DEVICE_NAME_MAX_LENGTH 32 // 32 bytes +#define DOT11_WPS_MAX_PASSKEY_LENGTH 8 // 8 bytes +#define DOT11_WPS_MAX_MODEL_NAME_LENGTH 32 // 32 bytes +#define DOT11_WPS_MAX_MODEL_NUMBER_LENGTH 32 // 32 bytes + +// Device Type +typedef struct _DOT11_WFD_DEVICE_TYPE +{ + USHORT CategoryID; + USHORT SubCategoryID; + UCHAR OUI[4]; +} DOT11_WFD_DEVICE_TYPE, * PDOT11_WFD_DEVICE_TYPE; + + +// WPS Device Name +typedef struct _DOT11_WPS_DEVICE_NAME { +#ifndef __midl + _Field_range_(0,32) +#endif + ULONG uDeviceNameLength; + UCHAR ucDeviceName[DOT11_WPS_DEVICE_NAME_MAX_LENGTH]; +} DOT11_WPS_DEVICE_NAME, * PDOT11_WPS_DEVICE_NAME; + + +// WFD Configuration Timeout +typedef +struct _DOT11_WFD_CONFIGURATION_TIMEOUT +{ + UCHAR GOTimeout; + UCHAR ClientTimeout; +} DOT11_WFD_CONFIGURATION_TIMEOUT, * PDOT11_WFD_CONFIGURATION_TIMEOUT; + + +// WFD Group ID +typedef +struct _DOT11_WFD_GROUP_ID +{ + DOT11_MAC_ADDRESS DeviceAddress; + DOT11_SSID SSID; +} DOT11_WFD_GROUP_ID, * PDOT11_WFD_GROUP_ID; + + +// WFD Group Owner Intent +typedef +struct _DOT11_WFD_GO_INTENT +{ + UCHAR TieBreaker:1; + UCHAR Intent:7; +} DOT11_WFD_GO_INTENT, * PDOT11_WFD_GO_INTENT; + + +// WFD Channel +typedef +struct _DOT11_WFD_CHANNEL +{ + DOT11_COUNTRY_OR_REGION_STRING CountryRegionString; + UCHAR OperatingClass; + UCHAR ChannelNumber; +} DOT11_WFD_CHANNEL, * PDOT11_WFD_CHANNEL; + + +// WPS Config Method +typedef enum _DOT11_WPS_CONFIG_METHOD +{ + DOT11_WPS_CONFIG_METHOD_NULL = 0, + DOT11_WPS_CONFIG_METHOD_DISPLAY = 0x0008, + DOT11_WPS_CONFIG_METHOD_NFC_TAG = 0x0020, + DOT11_WPS_CONFIG_METHOD_NFC_INTERFACE = 0x0040, + DOT11_WPS_CONFIG_METHOD_PUSHBUTTON = 0x0080, + DOT11_WPS_CONFIG_METHOD_KEYPAD = 0x0100, + DOT11_WPS_CONFIG_METHOD_WFDS_DEFAULT = 0x1000 +} DOT11_WPS_CONFIG_METHOD, *PDOT11_WPS_CONFIG_METHOD; + +// WPS Device Password ID +typedef enum _DOT11_WPS_DEVICE_PASSWORD_ID +{ + DOT11_WPS_PASSWORD_ID_DEFAULT = 0x0000, + DOT11_WPS_PASSWORD_ID_USER_SPECIFIED = 0x0001, + DOT11_WPS_PASSWORD_ID_MACHINE_SPECIFIED = 0x0002, + DOT11_WPS_PASSWORD_ID_REKEY = 0x0003, + DOT11_WPS_PASSWORD_ID_PUSHBUTTON = 0x0004, + DOT11_WPS_PASSWORD_ID_REGISTRAR_SPECIFIED = 0x0005, + // 0x0006 Reserved(for IBSS with Wi-Fi Protected Setup Specification) + DOT11_WPS_PASSWORD_ID_NFC_CONNECTION_HANDOVER = 0x0007, + DOT11_WPS_PASSWORD_ID_WFD_SERVICES = 0x0008, + // 0x0009 - 0x000F = Reserved + DOT11_WPS_PASSWORD_ID_OOB_RANGE_MIN = 0x0010, + DOT11_WPS_PASSWORD_ID_OOB_RANGE_MAX = 0xFFFF, + +} DOT11_WPS_DEVICE_PASSWORD_ID, *PDOT11_WPS_DEVICE_PASSWORD_ID; + +// WFD Services + +typedef struct _WFDSVC_CONNECTION_CAPABILITY +{ + BOOLEAN bNew; + BOOLEAN bClient; + BOOLEAN bGO; +} WFDSVC_CONNECTION_CAPABILITY, *PWFDSVC_CONNECTION_CAPABILITY; + +#define WFDSVC_CONNECTION_CAPABILITY_NEW 0x01 +#define WFDSVC_CONNECTION_CAPABILITY_CLIENT 0x02 +#define WFDSVC_CONNECTION_CAPABILITY_GO 0x04 + +// WFD Service Hash List +typedef struct _DOT11_WFD_SERVICE_HASH_LIST +{ + USHORT ServiceHashCount; +#ifdef __midl + [size_is(ServiceHashCount)] DOT11_WFD_SERVICE_HASH ServiceHash[*]; +#else + DOT11_WFD_SERVICE_HASH ServiceHash[1]; +#endif +} DOT11_WFD_SERVICE_HASH_LIST, *PDOT11_WFD_SERVICE_HASH_LIST; + +// WFD Service Advertisement ID +typedef struct _DOT11_WFD_ADVERTISEMENT_ID { + ULONG AdvertisementID; + DOT11_MAC_ADDRESS ServiceAddress; +} DOT11_WFD_ADVERTISEMENT_ID, *PDOT11_WFD_ADVERTISEMENT_ID; + +// WFD Service Session ID +typedef struct _DOT11_WFD_SESSION_ID { + ULONG SessionID; + DOT11_MAC_ADDRESS SessionAddress; +} DOT11_WFD_SESSION_ID, *PDOT11_WFD_SESSION_ID; + +// WFD Services Advertised Service Info +typedef struct _DOT11_WFD_ADVERTISED_SERVICE_DESCRIPTOR { + ULONG AdvertisementID; + USHORT ConfigMethods; +#ifndef __midl + _Field_range_(0, DOT11_WFD_SERVICE_NAME_MAX_LENGTH) +#endif + UCHAR ServiceNameLength; + UCHAR ServiceName[DOT11_WFD_SERVICE_NAME_MAX_LENGTH]; +} DOT11_WFD_ADVERTISED_SERVICE_DESCRIPTOR, *PDOT11_WFD_ADVERTISED_SERVICE_DESCRIPTOR; + +typedef struct _DOT11_WFD_ADVERTISED_SERVICE_LIST +{ + USHORT ServiceCount; +#ifdef __midl + [size_is(ServiceCount)] DOT11_WFD_ADVERTISED_SERVICE_DESCRIPTOR AdvertisedService[*]; +#else + DOT11_WFD_ADVERTISED_SERVICE_DESCRIPTOR AdvertisedService[1]; +#endif +} DOT11_WFD_ADVERTISED_SERVICE_LIST, *PDOT11_WFD_ADVERTISED_SERVICE_LIST; + +// NDIS indications for WFD mode. + +// Data Type for NDIS_STATUS_DOT11_WFD_DISCOVER_COMPLETE +#define DOT11_WFD_DISCOVER_COMPLETE_PARAMETERS_REVISION_1 1 + +#define DOT11_WFD_DISCOVER_COMPLETE_MAX_LIST_SIZE 128 + + typedef + struct _DOT11_WFD_DISCOVER_COMPLETE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + NDIS_STATUS Status; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + ULONG uListOffset; + ULONG uListLength; + } DOT11_WFD_DISCOVER_COMPLETE_PARAMETERS, * PDOT11_WFD_DISCOVER_COMPLETE_PARAMETERS; + +#define DOT11_SIZEOF_WFD_DISCOVER_COMPLETE_PARAMETERS_REVISION_1 sizeof(DOT11_WFD_DISCOVER_COMPLETE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_GO_NEGOTIATION_REQUEST_SEND_COMPLETE +#define DOT11_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + NDIS_STATUS Status; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS, * PDOT11_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS; + +#define DOT11_SIZEOF_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof(DOT11_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_RECEIVED_GO_NEGOTIATION_REQUEST +#define DOT11_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + PVOID RequestContext; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS, * PDOT11_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS; + +#define DOT11_SIZEOF_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS_REVISION_1 sizeof(DOT11_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE +#define DOT11_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + NDIS_STATUS Status; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS, * PDOT11_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS; + +#define DOT11_SIZEOF_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof(DOT11_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_RECEIVED_GO_NEGOTIATION_RESPONSE +#define DOT11_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + PVOID ResponseContext; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS, * PDOT11_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS; + +#define DOT11_SIZEOF_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS_REVISION_1 sizeof(DOT11_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE +#define DOT11_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + NDIS_STATUS Status; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS, * PDOT11_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS; + +#define DOT11_SIZEOF_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof(DOT11_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_RECEIVED_GO_NEGOTIATION_CONFIRMATION +#define DOT11_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS, * PDOT11_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS; + +#define DOT11_SIZEOF_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS_REVISION_1 sizeof(DOT11_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_INVITATION_REQUEST_SEND_COMPLETE +#define DOT11_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_MAC_ADDRESS ReceiverAddress; + DOT11_DIALOG_TOKEN DialogToken; + NDIS_STATUS Status; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS, * PDOT11_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS; + +#define DOT11_SIZEOF_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof(DOT11_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_RECEIVED_INVITATION_REQUEST +#define DOT11_RECEIVED_INVITATION_REQUEST_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_RECEIVED_INVITATION_REQUEST_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS TransmitterDeviceAddress; + DOT11_MAC_ADDRESS BSSID; + DOT11_DIALOG_TOKEN DialogToken; + PVOID RequestContext; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_RECEIVED_INVITATION_REQUEST_PARAMETERS, * PDOT11_RECEIVED_INVITATION_REQUEST_PARAMETERS; + +#define DOT11_SIZEOF_RECEIVED_INVITATION_REQUEST_PARAMETERS_REVISION_1 sizeof(DOT11_RECEIVED_INVITATION_REQUEST_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_INVITATION_RESPONSE_SEND_COMPLETE +#define DOT11_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS ReceiverDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + NDIS_STATUS Status; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS, * PDOT11_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS; + +#define DOT11_SIZEOF_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof(DOT11_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_RECEIVED_INVITATION_RESPONSE +#define DOT11_RECEIVED_INVITATION_RESPONSE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_RECEIVED_INVITATION_RESPONSE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS TransmitterDeviceAddress; + DOT11_MAC_ADDRESS BSSID; + DOT11_DIALOG_TOKEN DialogToken; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_RECEIVED_INVITATION_RESPONSE_PARAMETERS, * PDOT11_RECEIVED_INVITATION_RESPONSE_PARAMETERS; + +#define DOT11_SIZEOF_RECEIVED_INVITATION_RESPONSE_PARAMETERS_REVISION_1 sizeof(DOT11_RECEIVED_INVITATION_RESPONSE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE +#define DOT11_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_MAC_ADDRESS ReceiverAddress; + DOT11_DIALOG_TOKEN DialogToken; + NDIS_STATUS Status; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS, * PDOT11_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS; + +#define DOT11_SIZEOF_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof(DOT11_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_RECEIVED_PROVISION_DISCOVERY_REQUEST +#define DOT11_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS TransmitterDeviceAddress; + DOT11_MAC_ADDRESS BSSID; + DOT11_DIALOG_TOKEN DialogToken; + PVOID RequestContext; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS, * PDOT11_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS; + +#define DOT11_SIZEOF_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS_REVISION_1 sizeof(DOT11_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE +#define DOT11_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS ReceiverDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + NDIS_STATUS Status; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS, * PDOT11_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS; + +#define DOT11_SIZEOF_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof(DOT11_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_WFD_RECEIVED_PROVISION_DISCOVERY_RESPONSE +#define DOT11_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS TransmitterDeviceAddress; + DOT11_MAC_ADDRESS BSSID; + DOT11_DIALOG_TOKEN DialogToken; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS, * PDOT11_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS; + +#define DOT11_SIZEOF_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS_REVISION_1 sizeof(DOT11_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS) + + +// Data Type for NDIS_STATUS_DOT11_ANQP_QUERY_COMPLETE +#define DOT11_ANQP_QUERY_COMPLETE_PARAMETERS_REVISION_1 1 +#define DOT11_SIZEOF_ANQP_QUERY_COMPLETE_PARAMETERS_REVISION_1 sizeof(DOT11_ANQP_QUERY_COMPLETE_PARAMETERS) + + // + // Following must match WIFI_ANQP_QUERY_STATUS + // + typedef enum _DOT11_ANQP_QUERY_RESULT + { + dot11_ANQP_query_result_success = 0, + dot11_ANQP_query_result_failure = 1, + dot11_ANQP_query_result_timed_out = 2, + dot11_ANQP_query_result_resources = 3, + dot11_ANQP_query_result_advertisement_protocol_not_supported_on_remote = 4, + dot11_ANQP_query_result_gas_protocol_failure = 5, + dot11_ANQP_query_result_advertisement_server_not_responding = 6, + dot11_ANQP_query_result_access_issues = 7 + } DOT11_ANQP_QUERY_RESULT, *PDOT11_ANQP_QUERY_RESULT; + + typedef + struct _DOT11_ANQP_QUERY_COMPLETE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_ANQP_QUERY_RESULT Status; + HANDLE hContext; + ULONG uResponseLength; + } DOT11_ANQP_QUERY_COMPLETE_PARAMETERS, * PDOT11_ANQP_QUERY_COMPLETE_PARAMETERS; + + + +// TAG for WFD device specific OIDs. +#define NWF_WFD_DEVICE_OID (0x05U) + +// TAG for WFD role (GO/Client) specific OIDs. +#define NWF_WFD_ROLE_OID (0x06U) + + +// OID_DOT11_WFD_DEVICE_CAPABILITY +#define OID_DOT11_WFD_DEVICE_CAPABILITY NWF_DEFINE_OID(0x01, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_WFD_DEVICE_CAPABILITY_CONFIG_REVISION_1 1 + typedef + struct _DOT11_WFD_DEVICE_CAPABILITY_CONFIG + { + NDIS_OBJECT_HEADER Header; + BOOLEAN bServiceDiscoveryEnabled; + BOOLEAN bClientDiscoverabilityEnabled; + BOOLEAN bConcurrentOperationSupported; + BOOLEAN bInfrastructureManagementEnabled; + BOOLEAN bDeviceLimitReached; + BOOLEAN bInvitationProcedureEnabled; + ULONG WPSVersionsEnabled; + } DOT11_WFD_DEVICE_CAPABILITY_CONFIG, * PDOT11_WFD_DEVICE_CAPABILITY_CONFIG; + +#define DOT11_SIZEOF_WFD_DEVICE_CAPABILITY_CONFIG_1 sizeof(DOT11_WFD_DEVICE_CAPABILITY_CONFIG) + + +// OID_DOT11_WFD_GROUP_OWNER_CAPABILITY +#define OID_DOT11_WFD_GROUP_OWNER_CAPABILITY NWF_DEFINE_OID(0x02, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_REVISION_1 1 + typedef + struct _DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG + { + NDIS_OBJECT_HEADER Header; + BOOLEAN bPersistentGroupEnabled; + BOOLEAN bIntraBSSDistributionSupported; + BOOLEAN bCrossConnectionSupported; + BOOLEAN bPersistentReconnectSupported; + BOOLEAN bGroupFormationEnabled; + ULONG uMaximumGroupLimit; + } DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG, *PDOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG; + +#define DOT11_SIZEOF_WFD_GROUP_CAPABILITY_CONFIG_1 sizeof(DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG) + +#define DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_REVISION_2 2 + + typedef + struct _DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_V2 + { + NDIS_OBJECT_HEADER Header; + BOOLEAN bPersistentGroupEnabled; + BOOLEAN bIntraBSSDistributionSupported; + BOOLEAN bCrossConnectionSupported; + BOOLEAN bPersistentReconnectSupported; + BOOLEAN bGroupFormationEnabled; + ULONG uMaximumGroupLimit; + BOOLEAN bEapolKeyIpAddressAllocationSupported; + } DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_V2, *PDOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_V2; + +#define DOT11_SIZEOF_WFD_GROUP_CAPABILITY_CONFIG_2 sizeof(DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_V2) + +// OID_DOT11_WFD_DEVICE_INFO +#define OID_DOT11_WFD_DEVICE_INFO NWF_DEFINE_OID(0x03, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_WFD_DEVICE_INFO_REVISION_1 1 + typedef + struct _DOT11_WFD_DEVICE_INFO + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS DeviceAddress; + USHORT ConfigMethods; + DOT11_WFD_DEVICE_TYPE PrimaryDeviceType; + DOT11_WPS_DEVICE_NAME DeviceName; + } DOT11_WFD_DEVICE_INFO, *PDOT11_WFD_DEVICE_INFO; + +#define DOT11_SIZEOF_WFD_DEVICE_INFO_REVISION_1 sizeof(DOT11_WFD_DEVICE_INFO) + + +// OID_DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST +#define OID_DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST NWF_DEFINE_OID(0x04, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST_REVISION_1 1 + typedef + struct _DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST { + NDIS_OBJECT_HEADER Header; + ULONG uNumOfEntries; + ULONG uTotalNumOfEntries; + DOT11_WFD_DEVICE_TYPE SecondaryDeviceTypes[1]; + } DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST, * PDOT11_WFD_SECONDARY_DEVICE_TYPE_LIST; + +#define DOT11_SIZEOF_WFD_SECONDARY_DEVICE_TYPE_LIST_REVISION_1 FIELD_OFFSET(DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST, SecondaryDeviceTypes) + + +// OID_DOT11_WFD_DISCOVER_REQUEST +#define OID_DOT11_WFD_DISCOVER_REQUEST NWF_DEFINE_OID(0x05, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + + typedef enum _DOT11_WFD_DISCOVER_TYPE + { + dot11_wfd_discover_type_scan_only = 1, + dot11_wfd_discover_type_find_only = 2, + dot11_wfd_discover_type_auto = 3, + dot11_wfd_discover_type_scan_social_channels = 4, + dot11_wfd_discover_type_forced = 0x80000000 + + } DOT11_WFD_DISCOVER_TYPE, *PDOT11_WFD_DISCOVER_TYPE; + + typedef enum _DOT11_WFD_SCAN_TYPE + { + dot11_wfd_scan_type_active = 1, + dot11_wfd_scan_type_passive = 2, + dot11_wfd_scan_type_auto = 3 + + } DOT11_WFD_SCAN_TYPE, *PDOT11_WFD_SCAN_TYPE; + +#define DOT11_WFD_DISCOVER_DEVICE_FILTER_REVISION_1 +#define DOT11_SIZEOF_WFD_DISCOVER_DEVICE_FILTER_REVISION_1 + +#define DISCOVERY_FILTER_BITMASK_DEVICE 0x1 +#define DISCOVERY_FILTER_BITMASK_GO 0x2 +#define DISCOVERY_FILTER_BITMASK_ANY 0xF + + typedef + struct _DOT11_WFD_DISCOVER_DEVICE_FILTER + { + DOT11_MAC_ADDRESS DeviceID; + UCHAR ucBitmask; + DOT11_SSID GroupSSID; + } DOT11_WFD_DISCOVER_DEVICE_FILTER, *PDOT11_WFD_DISCOVER_DEVICE_FILTER; + +#define DOT11_WFD_DISCOVER_REQUEST_REVISION_1 1 + + typedef + struct _DOT11_WFD_DISCOVER_REQUEST + { + NDIS_OBJECT_HEADER Header; + DOT11_WFD_DISCOVER_TYPE DiscoverType; + DOT11_WFD_SCAN_TYPE ScanType; + ULONG uDiscoverTimeout; + ULONG uDeviceFilterListOffset; + ULONG uNumDeviceFilters; + ULONG uIEsOffset; + ULONG uIEsLength; + BOOLEAN bForceScanLegacyNetworks; + } DOT11_WFD_DISCOVER_REQUEST, *PDOT11_WFD_DISCOVER_REQUEST; + +#define DOT11_SIZEOF_WFD_DISCOVER_REQUEST_REVISION_1 sizeof(DOT11_WFD_DISCOVER_REQUEST) + +// OID_DOT11_WFD_ENUM_DEVICE_LIST +#define OID_DOT11_WFD_ENUM_DEVICE_LIST NWF_DEFINE_OID(0x06, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + + +//See comment about DOT11_BSS_ENTRY_PHY_SPECIFIC_INFO above +#ifndef __midl + +#define DOT11_DEVICE_ENTRY_BYTE_ARRAY_REVISION_1 1 + typedef + struct _DOT11_WFD_DEVICE_ENTRY + { + ULONG uPhyId; + DOT11_BSS_ENTRY_PHY_SPECIFIC_INFO PhySpecificInfo; + DOT11_MAC_ADDRESS dot11BSSID; + DOT11_BSS_TYPE dot11BSSType; + DOT11_MAC_ADDRESS TransmitterAddress; + LONG lRSSI; + ULONG uLinkQuality; + USHORT usBeaconPeriod; + ULONGLONG ullTimestamp; + ULONGLONG ullBeaconHostTimestamp; + ULONGLONG ullProbeResponseHostTimestamp; + USHORT usCapabilityInformation; + ULONG uBeaconIEsOffset; + ULONG uBeaconIEsLength; // Can be 0 + ULONG uProbeResponseIEsOffset; + ULONG uProbeResponseIEsLength; // Can be 0 + } DOT11_WFD_DEVICE_ENTRY, *PDOT11_WFD_DEVICE_ENTRY; + +#endif + +#define DOT11_WFD_DEVICE_ENTRY_GET_DEVICE_SIZE(_device_) \ + (sizeof(DOT11_WFD_DEVICE_ENTRY) + (_device_)->uBeaconIEsLength + (_device_)-> uProbeResponseIEsLength) + +// OID_DOT11_WFD_LISTEN_STATE_DISCOVERABILITY +#define OID_DOT11_WFD_LISTEN_STATE_DISCOVERABILITY NWF_DEFINE_OID(0x07, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + // ULONG + #define DOT11_WFD_DEVICE_NOT_DISCOVERABLE 0 + #define DOT11_WFD_DEVICE_AUTO_AVAILABILITY 16 + #define DOT11_WFD_DEVICE_HIGH_AVAILABILITY 24 + + +// OID_DOT11_WFD_ADDITIONAL_IE +#define OID_DOT11_WFD_ADDITIONAL_IE NWF_DEFINE_OID(0x08, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_WFD_ADDITIONAL_IE_REVISION_1 1 + typedef + struct _DOT11_WFD_ADDITIONAL_IE + { + NDIS_OBJECT_HEADER Header; + ULONG uBeaconIEsOffset; + ULONG uBeaconIEsLength; + ULONG uProbeResponseIEsOffset; + ULONG uProbeResponseIEsLength; + ULONG uDefaultRequestIEsOffset; + ULONG uDefaultRequestIEsLength; + + } DOT11_WFD_ADDITIONAL_IE, + *PDOT11_WFD_ADDITIONAL_IE; + +#define DOT11_SIZEOF_WFD_ADDITIONAL_IE_REVISION_1 sizeof(DOT11_WFD_ADDITIONAL_IE) + +#define DOT11_WFD_ADDITIONAL_IE_GET_HEADER_SIZE(_addie_) \ + (sizeof(DOT11_WFD_ADDITIONAL_IE)) + +#define DOT11_WFD_ADDITIONAL_IE_GET_HEADER_END(_addie_) \ + (((PCHAR)(_addie_))+sizeof(DOT11_WFD_ADDITIONAL_IE)) + +#define DOT11_WFD_ADDITIONAL_IE_GET_BEACON_IE(_addie_) \ + (((PCHAR)(_addie_))+(_addie_)->uBeaconIEsOffset) + +#define DOT11_WFD_ADDITIONAL_IE_SET_BEACON_IE(_addie_, _beacon_) \ + (_addie_)->uBeaconIEsOffset = (DWORD)(((SIZE_T)(_beacon_))-((SIZE_T)(_addie_))) + +#define DOT11_WFD_ADDITIONAL_IE_GET_BEACON_IE_SIZE(_addie_) \ + ((_addie_)->uBeaconIEsLength) + +#define DOT11_WFD_ADDITIONAL_IE_SET_BEACON_IE_SIZE(_addie_, _size_) \ + (_addie_)->uBeaconIEsLength = (DWORD)(_size_) + +#define DOT11_WFD_ADDITIONAL_IE_GET_BEACON_IE_END(_addie_) \ + (((PCHAR)(_addie_))+(_addie_)->uBeaconIEsOffset+DOT11_WFD_ADDITIONAL_IE_GET_BEACON_IE_SIZE(_addie_)) + +#define DOT11_WFD_ADDITIONAL_IE_GET_PROBE_RESPONSE_IE(_addie_) \ + (((PCHAR)(_addie_))+(_addie_)->uProbeResponseIEsOffset) + +#define DOT11_WFD_ADDITIONAL_IE_SET_PROBE_RESPONSE_IE(_addie_, _response_) \ + (_addie_)->uProbeResponseIEsOffset = (DWORD)(((SIZE_T)(_response_))-((SIZE_T)(_addie_))) + +#define DOT11_WFD_ADDITIONAL_IE_GET_PROBE_RESPONSE_IE_SIZE(_addie_) \ + ((_addie_)->uProbeResponseIEsLength) + +#define DOT11_WFD_ADDITIONAL_IE_SET_PROBE_RESPONSE_IE_SIZE(_addie_, _size_) \ + (_addie_)->uProbeResponseIEsLength = (DWORD)(_size_) + +#define DOT11_WFD_ADDITIONAL_IE_GET_PROBE_RESPONSE_IE_END(_addie_) \ + (((PCHAR)(_addie_))+(_addie_)->uProbeResponseIEsOffset+DOT11_WFD_ADDITIONAL_IE_GET_PROBE_RESPONSE_IE_SIZE(_addie_)) + +#define DOT11_WFD_ADDITIONAL_IE_GET_PROBE_REQUEST_IE(_addie_) \ + (((PCHAR)(_addie_))+(_addie_)->uDefaultRequestIEsOffset) + +#define DOT11_WFD_ADDITIONAL_IE_SET_PROBE_REQUEST_IE(_addie_, _request_) \ + (_addie_)->uDefaultRequestIEsOffset = (DWORD)(((SIZE_T)(_request_))-((SIZE_T)(_addie_))) + +#define DOT11_WFD_ADDITIONAL_IE_GET_PROBE_REQUEST_IE_SIZE(_addie_) \ + ((_addie_)->uDefaultRequestIEsLength) + +#define DOT11_WFD_ADDITIONAL_IE_SET_PROBE_REQUEST_IE_SIZE(_addie_, _size_) \ + (_addie_)->uDefaultRequestIEsLength = (DWORD)(_size_) + +#define DOT11_WFD_ADDITIONAL_IE_GET_ALL_IE_SIZE(_addie_) \ + ((_addie_)->uBeaconIEsLength + \ + (_addie_)->uProbeResponseIEsLength + \ + (_addie_)->uDefaultRequestIEsLength) + +#define DOT11_WFD_ADDITIONAL_IE_GET_TOTAL_SIZE(_addie_) \ + (DOT11_WFD_ADDITIONAL_IE_GET_HEADER_SIZE(_addie_) + \ + DOT11_WFD_ADDITIONAL_IE_GET_ALL_IE_SIZE(_addie_)) + +// OID_DOT11_WFD_FLUSH_DEVICE_LIST +#define OID_DOT11_WFD_FLUSH_DEVICE_LIST NWF_DEFINE_OID(0x09, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) +// No data + + +// OID_DOT11_WFD_SEND_GO_NEGOTIATION_REQUEST +#define OID_DOT11_WFD_SEND_GO_NEGOTIATION_REQUEST NWF_DEFINE_OID(0x0A, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + ULONG uSendTimeout; + DOT11_WFD_GO_INTENT GroupOwnerIntent; + DOT11_WFD_CONFIGURATION_TIMEOUT MinimumConfigTimeout; + DOT11_MAC_ADDRESS IntendedInterfaceAddress; + DOT11_WFD_GROUP_CAPABILITY GroupCapability; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS, * PDOT11_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS; + +#define DOT11_SIZEOF_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS_REVISION_1 sizeof(DOT11_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS) + + +// OID_DOT11_WFD_SEND_GO_NEGOTIATION_RESPONSE +#define OID_DOT11_WFD_SEND_GO_NEGOTIATION_RESPONSE NWF_DEFINE_OID(0x0B, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + PVOID RequestContext; + ULONG uSendTimeout; + DOT11_WFD_STATUS_CODE Status; + DOT11_WFD_GO_INTENT GroupOwnerIntent; + DOT11_WFD_CONFIGURATION_TIMEOUT MinimumConfigTimeout; + DOT11_MAC_ADDRESS IntendedInterfaceAddress; + DOT11_WFD_GROUP_CAPABILITY GroupCapability; + DOT11_WFD_GROUP_ID GroupID; + BOOLEAN bUseGroupID; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS, * PDOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS; + +#define DOT11_SIZEOF_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS_REVISION_1 sizeof(DOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS) + + +// OID_DOT11_WFD_SEND_GO_NEGOTIATION_CONFIRMATION +#define OID_DOT11_WFD_SEND_GO_NEGOTIATION_CONFIRMATION NWF_DEFINE_OID(0x0C, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS_REVISION_1 1 + typedef struct _DOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS PeerDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + PVOID ResponseContext; + ULONG uSendTimeout; + DOT11_WFD_STATUS_CODE Status; + DOT11_WFD_GROUP_CAPABILITY GroupCapability; + DOT11_WFD_GROUP_ID GroupID; + BOOLEAN bUseGroupID; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS, * PDOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS; +#define DOT11_SIZEOF_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS_REVISION_1 sizeof(DOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS) + + +// OID_DOT11_WFD_SEND_INVITATION_REQUEST +#define OID_DOT11_WFD_SEND_INVITATION_REQUEST NWF_DEFINE_OID(0x0D, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + + typedef + struct _DOT11_WFD_INVITATION_FLAGS + { + UCHAR InvitationType:1; // 0 = Join active group, 1 = Reinvoke + UCHAR Reserved:7; + } DOT11_WFD_INVITATION_FLAGS, * PDOT11_WFD_INVITATION_FLAGS; + +#define DOT11_SEND_INVITATION_REQUEST_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_SEND_INVITATION_REQUEST_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_DIALOG_TOKEN DialogToken; + DOT11_MAC_ADDRESS PeerDeviceAddress; + ULONG uSendTimeout; + DOT11_WFD_CONFIGURATION_TIMEOUT MinimumConfigTimeout; + DOT11_WFD_INVITATION_FLAGS InvitationFlags; + DOT11_MAC_ADDRESS GroupBSSID; // Optional + BOOLEAN bUseGroupBSSID; + DOT11_WFD_CHANNEL OperatingChannel; + BOOLEAN bUseSpecifiedOperatingChannel; + DOT11_WFD_GROUP_ID GroupID; + BOOLEAN bLocalGO; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_SEND_INVITATION_REQUEST_PARAMETERS, * PDOT11_SEND_INVITATION_REQUEST_PARAMETERS; + +#define DOT11_SIZEOF_SEND_INVITATION_REQUEST_PARAMETERS_REVISION_1 sizeof(DOT11_SEND_INVITATION_REQUEST_PARAMETERS) + + +// OID_DOT11_WFD_SEND_INVITATION_RESPONSE +#define OID_DOT11_WFD_SEND_INVITATION_RESPONSE NWF_DEFINE_OID(0x0E, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_SEND_INVITATION_RESPONSE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_SEND_INVITATION_RESPONSE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS ReceiverDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + PVOID RequestContext; + ULONG uSendTimeout; + DOT11_WFD_STATUS_CODE Status; + DOT11_WFD_CONFIGURATION_TIMEOUT MinimumConfigTimeout; + DOT11_MAC_ADDRESS GroupBSSID; // Optional + BOOLEAN bUseGroupBSSID; + DOT11_WFD_CHANNEL OperatingChannel; + BOOLEAN bUseSpecifiedOperatingChannel; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_SEND_INVITATION_RESPONSE_PARAMETERS, * PDOT11_SEND_INVITATION_RESPONSE_PARAMETERS; + +#define DOT11_SIZEOF_SEND_INVITATION_RESPONSE_PARAMETERS_REVISION_1 sizeof(DOT11_SEND_INVITATION_RESPONSE_PARAMETERS) + + +// OID_DOT11_WFD_SEND_PROVISION_DISCOVERY_REQUEST +#define OID_DOT11_WFD_SEND_PROVISION_DISCOVERY_REQUEST NWF_DEFINE_OID(0x0F, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_DIALOG_TOKEN DialogToken; + DOT11_MAC_ADDRESS PeerDeviceAddress; + ULONG uSendTimeout; + DOT11_WFD_GROUP_CAPABILITY GroupCapability; + DOT11_WFD_GROUP_ID GroupID; + BOOLEAN bUseGroupID; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS, * PDOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS; + +#define DOT11_SIZEOF_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS_REVISION_1 sizeof(DOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS) + + +// OID_DOT11_WFD_SEND_PROVISION_DISCOVERY_RESPONSE +#define OID_DOT11_WFD_SEND_PROVISION_DISCOVERY_RESPONSE NWF_DEFINE_OID(0x10, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +#define DOT11_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + DOT11_MAC_ADDRESS ReceiverDeviceAddress; + DOT11_DIALOG_TOKEN DialogToken; + PVOID RequestContext; + ULONG uSendTimeout; + ULONG uIEsOffset; + ULONG uIEsLength; + } DOT11_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS, * PDOT11_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS; + +#define DOT11_SIZEOF_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS_REVISION_1 sizeof(DOT11_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS) + +// OID_DOT11_WFD_GET_DIALOG_TOKEN +#define OID_DOT11_WFD_GET_DIALOG_TOKEN NWF_DEFINE_OID(0x11, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) +// DOT11_DIALOG_TOKEN + +// OID_DOT11_WFD_STOP_DISCOVERY +#define OID_DOT11_WFD_STOP_DISCOVERY NWF_DEFINE_OID(0x12, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) + +// OID_DOT11_WFD_ENABLE_HRDSSS_DEVICES +#define OID_DOT11_WFD_ENABLE_HRDSSS_DEVICES NWF_DEFINE_OID(0x13, NWF_WFD_DEVICE_OID, NWF_OPTIONAL_OID) + +// OID_DOT11_WFD_DEVICE_LISTEN_CHANNEL +#define OID_DOT11_WFD_DEVICE_LISTEN_CHANNEL NWF_DEFINE_OID(0x14, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID) +#define DOT11_WFD_DEVICE_LISTEN_CHANNEL_REVISION_1 1 +#define DOT11_SIZEOF_WFD_DEVICE_LISTEN_CHANNEL_REVISION_1 sizeof(DOT11_WFD_DEVICE_LISTEN_CHANNEL) + typedef + struct _DOT11_WFD_DEVICE_LISTEN_CHANNEL + { + NDIS_OBJECT_HEADER Header; + UCHAR ChannelNumber; + } DOT11_WFD_DEVICE_LISTEN_CHANNEL, *PDOT11_WFD_DEVICE_LISTEN_CHANNEL; + + +// OID_DOT11_WFD_DESIRED_GROUP_ID +#define OID_DOT11_WFD_DESIRED_GROUP_ID NWF_DEFINE_OID(0x01, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID) +// DOT11_WFD_GROUP_ID + + +// OID_DOT11_WFD_START_GO_REQUEST +#define OID_DOT11_WFD_START_GO_REQUEST NWF_DEFINE_OID(0x02, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID) +// No data + + +// OID_DOT11_WFD_GROUP_START_PARAMETERS +#define OID_DOT11_WFD_GROUP_START_PARAMETERS NWF_DEFINE_OID(0x03, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID) + +#define DOT11_WFD_GROUP_START_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_WFD_GROUP_START_PARAMETERS { + NDIS_OBJECT_HEADER Header; + DOT11_WFD_CHANNEL AdvertisedOperatingChannel; + } DOT11_WFD_GROUP_START_PARAMETERS, * PDOT11_WFD_GROUP_START_PARAMETERS; + +#define DOT11_SIZEOF_WFD_GROUP_START_PARAMETERS_REVISION_1 sizeof(DOT11_WFD_GROUP_START_PARAMETERS) + + +// OID_DOT11_WFD_CONNECT_TO_GROUP_REQUEST +#define OID_DOT11_WFD_CONNECT_TO_GROUP_REQUEST NWF_DEFINE_OID(0x04, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID) +// No data + + +// OID_DOT11_WFD_DISCONNECT_FROM_GROUP_REQUEST +#define OID_DOT11_WFD_DISCONNECT_FROM_GROUP_REQUEST NWF_DEFINE_OID(0x05, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID) +// No data + + +// OID_DOT11_WFD_GROUP_JOIN_PARAMETERS +#define OID_DOT11_WFD_GROUP_JOIN_PARAMETERS NWF_DEFINE_OID(0x06, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID) + +#define DOT11_WFD_GROUP_JOIN_PARAMETERS_REVISION_1 1 + typedef + struct _DOT11_WFD_GROUP_JOIN_PARAMETERS { + NDIS_OBJECT_HEADER Header; + DOT11_WFD_CHANNEL GOOperatingChannel; + ULONG GOConfigTime; + BOOLEAN bInGroupFormation; + BOOLEAN bWaitForWPSReady; + } DOT11_WFD_GROUP_JOIN_PARAMETERS, * PDOT11_WFD_GROUP_JOIN_PARAMETERS; + +#define DOT11_SIZEOF_WFD_GROUP_JOIN_PARAMETERS_REVISION_1 sizeof(DOT11_WFD_GROUP_JOIN_PARAMETERS) + + + +#endif // NWF_WFD_SUPPORTED + +#ifdef NWF_POWER_SAVE_SUPPORTED +#define NWF_POWER_SAVE_OID (0x07U) + +// OID_DOT11_POWER_MGMT_MODE_AUTO_ENABLED +#define OID_DOT11_POWER_MGMT_MODE_AUTO_ENABLED NWF_DEFINE_OID(0x01, NWF_POWER_SAVE_OID, NWF_MANDATORY_OID) + +#define DOT11_POWER_MGMT_AUTO_MODE_ENABLED_REVISION_1 1 +#define DOT11_SIZEOF_POWER_MGMT_AUTO_MODE_ENABLE_INFO_REVISION_1 sizeof(DOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO) + typedef struct _DOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO { + NDIS_OBJECT_HEADER Header; + BOOLEAN bEnabled; + } DOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO, * PDOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO; + +// OID_DOT11_POWER_MGMT_MODE_STATUS +#define OID_DOT11_POWER_MGMT_MODE_STATUS NWF_DEFINE_OID(0x02, NWF_POWER_SAVE_OID, NWF_MANDATORY_OID) + typedef enum _DOT11_POWER_MODE_REASON { + dot11_power_mode_reason_no_change =0, // initially in this state, has not changed since + dot11_power_mode_reason_noncompliant_AP =1, // AP is not compliant. As to be in CAM + dot11_power_mode_reason_legacy_WFD_device =2, // WFD device is legacy + dot11_power_mode_reason_compliant_AP =3, // AP connected does PSM correctly, PSM can works + dot11_power_mode_reason_compliant_WFD_device=4, // All connected WFD device can do PSM + dot11_power_mode_reason_others =5 + } DOT11_POWER_MODE_REASON; + +#define DOT11_POWER_MGMT_MODE_STATUS_INFO_REVISION_1 1 +#define DOT11_SIZEOF_POWER_MGMT_MODE_STATUS_INFO_REVISION_1 sizeof(DOT11_POWER_MGMT_MODE_STATUS_INFO) + typedef struct _DOT11_POWER_MGMT_MODE_STATUS_INFO { + NDIS_OBJECT_HEADER Header; + DOT11_POWER_MODE PowerSaveMode; + ULONG uPowerSaveLevel; + DOT11_POWER_MODE_REASON Reason; + } DOT11_POWER_MGMT_MODE_STATUS_INFO, * PDOT11_POWER_MGMT_MODE_STATUSINFO; + +//OID_DOT11_OFFLOAD_NETWORK_LIST +#define OID_DOT11_OFFLOAD_NETWORK_LIST NWF_DEFINE_OID(0x03, NWF_POWER_SAVE_OID, NWF_MANDATORY_OID) + + #define DOT11_MAX_CHANNEL_HINTS 4 + #define DOT11_INVALID_CHANNEL_NUMBER 0 + typedef struct DOT11_CHANNEL_HINT { + DOT11_PHY_TYPE Dot11PhyType; + ULONG uChannelNumber; + } DOT11_CHANNEL_HINT, * PDOT11_CHANNEL_HINT; + + typedef struct DOT11_OFFLOAD_NETWORK { + DOT11_SSID Ssid; + DOT11_CIPHER_ALGORITHM UnicastCipher; + DOT11_AUTH_ALGORITHM AuthAlgo; + DOT11_CHANNEL_HINT Dot11ChannelHints[DOT11_MAX_CHANNEL_HINTS]; + } DOT11_OFFLOAD_NETWORK, * PDOT11_OFFLOAD_NETWORK; + +#define DOT11_NLO_FLAG_STOP_NLO_INDICATION 0x00000001 // stop NLO scan and NLO discovery indications +#define DOT11_NLO_FLAG_SCAN_ON_AOAC_PLATFORM 0x00000002 // typically used on AOAC platform in connected standby +#define DOT11_NLO_FLAG_SCAN_AT_SYSTEM_RESUME 0x00000004 // used at system resume once for instant connect + +#define DOT11_OFFLOAD_NETWORK_LIST_REVISION_1 1 +#define DOT11_SIZEOF_OFFLOAD_NETWORK_LIST_INFO_REVISION_1(_uNumOfEntry) \ + (FIELD_OFFSET(DOT11_OFFLOAD_NETWORK_LIST_INFO, offloadNetworkList)+ \ + sizeof(DOT11_OFFLOAD_NETWORK)*(_uNumOfEntry)) + +// +// when NLO has 0 entry, the minimum size is this. Drivers can safely access fields except entries. +// +#define DOT11_MIN_SIZEOF_OFFLOAD_NETWORK_LIST_INFO_REVISION_1 \ + (FIELD_OFFSET(DOT11_OFFLOAD_NETWORK_LIST_INFO, offloadNetworkList)) + + typedef struct _DOT11_OFFLOAD_NETWORK_LIST_INFO { + NDIS_OBJECT_HEADER Header; + ULONG ulFlags; // DOT11_NLO_FLAG_* + ULONG FastScanPeriod; + ULONG FastScanIterations; + ULONG SlowScanPeriod; + ULONG uNumOfEntries; + DOT11_OFFLOAD_NETWORK offloadNetworkList[1]; + } DOT11_OFFLOAD_NETWORK_LIST_INFO, * PDOT11_OFFLOAD_NETWORK_LIST_INFO; + +#endif // NWF_POWER_SAVE_SUPPORTED + +// NDIS_STATUS_DOT11_OFFLOAD_NETWORK_STATUS_CHANGED +#define DOT11_OFFLOAD_NETWORK_STATUS_PARAMETERS_REVISION_1 1 + + typedef + struct _DOT11_OFFLOAD_NETWORK_STATUS_PARAMETERS + { + NDIS_OBJECT_HEADER Header; + NDIS_STATUS Status; + } DOT11_OFFLOAD_NETWORK_STATUS_PARAMETERS, * PDOT11_OFFLOAD_NETWORK_STATUS_PARAMETERS; + +#define DOT11_SIZEOF_OFFLOAD_NETWORK_STATUS_PARAMETERS_REVISION_1 sizeof(DOT11_OFFLOAD_NETWORK_STATUS_PARAMETERS) + + +#define NWF_MANUFACTURING_OID (0x08U) + +#define OID_DOT11_MANUFACTURING_TEST NWF_DEFINE_OID(0x01, NWF_MANUFACTURING_OID, NWF_OPTIONAL_OID) +#define DOT11_MANUFACTURING_TEST_REVISION_1 1 + + typedef enum _DOT11_MANUFACTURING_TEST_TYPE { + dot11_manufacturing_test_unknown = 0, + dot11_manufacturing_test_self_start = 1, + dot11_manufacturing_test_self_query_result = 2, + dot11_manufacturing_test_rx = 3, + dot11_manufacturing_test_tx = 4, + dot11_manufacturing_test_query_adc = 5, + dot11_manufacturing_test_set_data = 6, + dot11_manufacturing_test_query_data = 7, + dot11_manufacturing_test_sleep = 8, + dot11_manufacturing_test_awake = 9, + dot11_manufacturing_test_IHV_start = 0x80000000, + dot11_manufacturing_test_IHV_end = 0xffffffff + } DOT11_MANUFACTURING_TEST_TYPE, * PDOT11_MANUFACTURING_TEST_TYPE; + + typedef struct _DOT11_MANUFACTURING_TEST { + DOT11_MANUFACTURING_TEST_TYPE dot11ManufacturingTestType; + ULONG uBufferLength; + UCHAR ucBuffer[1]; + } DOT11_MANUFACTURING_TEST, * PDOT11_MANUFACTURING_TEST; + + + // dot11_manufacturing_test_self + typedef enum DOT11_MANUFACTURING_SELF_TEST_TYPE { + DOT11_MANUFACTURING_SELF_TEST_TYPE_INTERFACE = 1, + DOT11_MANUFACTURING_SELF_TEST_TYPE_RF_INTERFACE, + DOT11_MANUFACTURING_SELF_TEST_TYPE_BT_COEXISTENCE + } DOT11_MANUFACTURING_SELF_TEST_TYPE, * PDOT11_MANUFACTURING_SELF_TEST_TYPE; + + typedef struct _DOT11_MANUFACTURING_SELF_TEST_SET_PARAMS { + DOT11_MANUFACTURING_SELF_TEST_TYPE SelfTestType; + ULONG uTestID; + ULONG uPinBitMask; + PVOID pvContext; + ULONG uBufferLength; + UCHAR ucBufferIn[1]; // Additional input for self-test (optional) + } DOT11_MANUFACTURING_SELF_TEST_SET_PARAMS, *PDOT11_MANUFACTURING_SELF_TEST_SET_PARAMS; + + typedef struct _DOT11_MANUFACTURING_SELF_TEST_QUERY_RESULTS { + DOT11_MANUFACTURING_SELF_TEST_TYPE SelfTestType; + ULONG uTestID; + BOOLEAN bResult; // PASS/FAIL + ULONG uPinFailedBitMask; // Detected PIN faults + PVOID pvContext; + ULONG uBytesWrittenOut; + UCHAR ucBufferOut[1]; // Additional output from self-test (optional) + } DOT11_MANUFACTURING_SELF_TEST_QUERY_RESULTS, *PDOT11_MANUFACTURING_SELF_TEST_QUERY_RESULTS; + + // Band + typedef enum DOT11_BAND { + dot11_band_2p4g = 1, + dot11_band_4p9g, + dot11_band_5g + } DOT11_BAND, * PDOT11_BAND; + + // dot11_manufacturing_test_rx + typedef struct _DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX { + BOOLEAN bEnabled; + DOT11_BAND Dot11Band; + ULONG uChannel; + LONG PowerLevel; + } DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX, * PDOT11_MANUFACTURING_FUNCTIONAL_TEST_RX; + + // dot11_manufacturing_test_tx + typedef struct _DOT11_MANUFACTURING_FUNCTIONAL_TEST_TX { + BOOLEAN bEnable; + BOOLEAN bOpenLoop; + DOT11_BAND Dot11Band; + ULONG uChannel; + ULONG uSetPowerLevel; + LONG ADCPowerLevel; + } DOT11_MANUFACTURING_FUNCTIONAL_TEST_TX, * PDOT11_MANUFACTURING_FUNCTIONAL_TEST_TX; + + // dot11_manufacturing_test_query_adc + typedef struct _DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC { + DOT11_BAND Dot11Band; + ULONG uChannel; + LONG ADCPowerLevel; + } DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC, * PDOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC; + + + // dot11_manufacturing_test_set_data + typedef struct _DOT11_MANUFACTURING_TEST_SET_DATA { + ULONG uKey; + ULONG uOffset; + ULONG uBufferLength; + UCHAR ucBufferIn[1]; + } DOT11_MANUFACTURING_TEST_SET_DATA, * PDOT11_MANUFACTURING_TEST_SET_DATA; + + + // dot11_manufacturing_test_query_data + typedef struct _DOT11_MANUFACTURING_TEST_QUERY_DATA { + ULONG uKey; + ULONG uOffset; + ULONG uBufferLength; + ULONG uBytesRead; + UCHAR ucBufferOut[1]; + } DOT11_MANUFACTURING_TEST_QUERY_DATA, * PDOT11_MANUFACTURING_TEST_QUERY_DATA; + + + // dot11_manufacturing_test_sleep + typedef struct _DOT11_MANUFACTURING_TEST_SLEEP { + ULONG uSleepTime; + PVOID pvContext; + } DOT11_MANUFACTURING_TEST_SLEEP, * PDOT11_MANUFACTURING_TEST_SLEEP; + + + // dot11_manufacturing_test_awake + // There is no data associated with this call. + + // Manufacturing notifications + typedef enum _DOT11_MANUFACTURING_CALLBACK_TYPE { + dot11_manufacturing_callback_unknown = 0, + dot11_manufacturing_callback_self_test_complete = 1, + dot11_manufacturing_callback_sleep_complete = 2, + dot11_manufacturing_callback_IHV_start = 0x80000000, + dot11_manufacturing_callback_IHV_end = 0xffffffff + } DOT11_MANUFACTURING_CALLBACK_TYPE, * PDOT11_MANUFACTURING_CALLBACK_TYPE; + + typedef struct DOT11_MANUFACTURING_CALLBACK_PARAMETERS + { + #define DOT11_MANUFACTURING_CALLBACK_REVISION_1 1 + NDIS_OBJECT_HEADER Header; + DOT11_MANUFACTURING_CALLBACK_TYPE dot11ManufacturingCallbackType; + ULONG uStatus; + PVOID pvContext; + } DOT11_MANUFACTURING_CALLBACK_PARAMETERS, * PDOT11_MANUFACTURING_CALLBACK_PARAMETERS; + +// +// OID_DOT11_SET_FT_REASSOCIATION_PARAMETERS is a new Oid for WDI. It is defined here +// because it is a Direct Oid that needs to be visible to Ndis +// +#define OID_DOT11_SET_FT_REASSOCIATION_PARAMETERS NWF_DEFINE_OID(0x68, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + +// +// OID_DOT11_SET_SAE_AUTH_PARAMS is a new Oid for WDI. It is defined here +// because it is a Direct Oid that needs to be visible to Ndis +// +#define OID_DOT11_SET_SAE_AUTH_PARAMS NWF_DEFINE_OID(0x72, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + +// +// OID_DOT11_SET_NWF_PMKID_LIST is used for returning PmkIds computed by nwifi. +// It is defined here because it is a Direct Oid that needs to be visible to Ndis +// +#define OID_DOT11_SET_NWF_PMKID_LIST NWF_DEFINE_OID(0x75, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID) + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __WINDOT11_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windowsx.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windowsx.h new file mode 100644 index 0000000000000000000000000000000000000000..dc0c297f5f3929e4e2dbef616e7faba1d803f3d6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/windowsx.h @@ -0,0 +1,1380 @@ +/*****************************************************************************\ +* * +* windowsx.h - Macro APIs, window message crackers, and control APIs * +* * +* Version Win32 / Windows NT * +* * +* Copyright (c) 1992-1999, Microsoft Corp. All rights reserved.* +* * +\*****************************************************************************/ + +#ifndef _INC_WINDOWSX +#define _INC_WINDOWSX + +#if (_MSC_VER >= 1020) +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++ */ +#endif /* __cplusplus */ + +#ifndef SNDMSG +#ifdef __cplusplus +#ifndef _MAC +#define SNDMSG ::SendMessage +#else +#define SNDMSG ::AfxSendMessage +#endif +#else /* __cplusplus */ +#ifndef _MAC +#define SNDMSG SendMessage +#else +#define SNDMSG AfxSendMessage +#endif +#endif /* __cplusplus */ +#endif /* SNDMSG */ + +/****** KERNEL Macro APIs ****************************************************/ + +#define GetInstanceModule(hInstance) (HMODULE)(hInstance) + +#define GlobalPtrHandle(lp) \ + ((HGLOBAL)GlobalHandle(lp)) + +#define GlobalLockPtr(lp) \ + ((BOOL)GlobalLock(GlobalPtrHandle(lp))) +#define GlobalUnlockPtr(lp) \ + GlobalUnlock(GlobalPtrHandle(lp)) + +#ifndef _MAC +#define GlobalAllocPtr(flags, cb) \ + (GlobalLock(GlobalAlloc((flags), (cb)))) +#else +#define GlobalAllocPtr(flags, cb) \ + (GlobalLock(GlobalAlloc((flags) | GMEM_PMODELOCKSTRATEGY, (cb)))) +#endif +#define GlobalReAllocPtr(lp, cbNew, flags) \ + (GlobalUnlockPtr(lp), GlobalLock(GlobalReAlloc(GlobalPtrHandle(lp) , (cbNew), (flags)))) +#define GlobalFreePtr(lp) \ + (GlobalUnlockPtr(lp), (BOOL)(ULONG_PTR)GlobalFree(GlobalPtrHandle(lp))) + +/****** GDI Macro APIs *******************************************************/ + +#define DeletePen(hpen) DeleteObject((HGDIOBJ)(HPEN)(hpen)) +#define SelectPen(hdc, hpen) ((HPEN)SelectObject((hdc), (HGDIOBJ)(HPEN)(hpen))) +#define GetStockPen(i) ((HPEN)GetStockObject(i)) + +#define DeleteBrush(hbr) DeleteObject((HGDIOBJ)(HBRUSH)(hbr)) +#define SelectBrush(hdc, hbr) ((HBRUSH)SelectObject((hdc), (HGDIOBJ)(HBRUSH)(hbr))) +#define GetStockBrush(i) ((HBRUSH)GetStockObject(i)) + +#define DeleteRgn(hrgn) DeleteObject((HGDIOBJ)(HRGN)(hrgn)) + +#ifndef _MAC +#define CopyRgn(hrgnDst, hrgnSrc) CombineRgn(hrgnDst, hrgnSrc, 0, RGN_COPY) +#else +#define AfxCopyRgn(hrgnDst, hrgnSrc) CombineRgn(hrgnDst, hrgnSrc, 0, RGN_COPY) +#endif +#define IntersectRgn(hrgnResult, hrgnA, hrgnB) CombineRgn(hrgnResult, hrgnA, hrgnB, RGN_AND) +#define SubtractRgn(hrgnResult, hrgnA, hrgnB) CombineRgn(hrgnResult, hrgnA, hrgnB, RGN_DIFF) +#ifndef _MAC +#define UnionRgn(hrgnResult, hrgnA, hrgnB) CombineRgn(hrgnResult, hrgnA, hrgnB, RGN_OR) +#define XorRgn(hrgnResult, hrgnA, hrgnB) CombineRgn(hrgnResult, hrgnA, hrgnB, RGN_XOR) +#else +#define AfxUnionRgn(hrgnResult, hrgnA, hrgnB) CombineRgn(hrgnResult, hrgnA, hrgnB, RGN_OR) +#define AfxXorRgn(hrgnResult, hrgnA, hrgnB) CombineRgn(hrgnResult, hrgnA, hrgnB, RGN_XOR) +#endif + +#define DeletePalette(hpal) DeleteObject((HGDIOBJ)(HPALETTE)(hpal)) + +#define DeleteFont(hfont) DeleteObject((HGDIOBJ)(HFONT)(hfont)) +#define SelectFont(hdc, hfont) ((HFONT)SelectObject((hdc), (HGDIOBJ)(HFONT)(hfont))) +#define GetStockFont(i) ((HFONT)GetStockObject(i)) + +#define DeleteBitmap(hbm) DeleteObject((HGDIOBJ)(HBITMAP)(hbm)) +#define SelectBitmap(hdc, hbm) ((HBITMAP)SelectObject((hdc), (HGDIOBJ)(HBITMAP)(hbm))) + +#ifndef _MAC +#define InsetRect(lprc, dx, dy) InflateRect((lprc), -(dx), -(dy)) +#else +#define AfxInsetRect(lprc, dx, dy) InflateRect((lprc), -(dx), -(dy)) +#endif + +/****** USER Macro APIs ******************************************************/ + +#define GetWindowInstance(hwnd) ((HMODULE)GetWindowLongPtr(hwnd, GWLP_HINSTANCE)) + +#define GetWindowStyle(hwnd) ((DWORD)GetWindowLong(hwnd, GWL_STYLE)) +#define GetWindowExStyle(hwnd) ((DWORD)GetWindowLong(hwnd, GWL_EXSTYLE)) + +#define GetWindowOwner(hwnd) GetWindow(hwnd, GW_OWNER) + +#define GetFirstChild(hwnd) GetTopWindow(hwnd) +#define GetFirstSibling(hwnd) GetWindow(hwnd, GW_HWNDFIRST) +#define GetLastSibling(hwnd) GetWindow(hwnd, GW_HWNDLAST) +#define GetNextSibling(hwnd) GetWindow(hwnd, GW_HWNDNEXT) +#define GetPrevSibling(hwnd) GetWindow(hwnd, GW_HWNDPREV) + +#define GetWindowID(hwnd) GetDlgCtrlID(hwnd) + +#define SetWindowRedraw(hwnd, fRedraw) \ + ((void)SNDMSG(hwnd, WM_SETREDRAW, (WPARAM)(BOOL)(fRedraw), 0L)) + +#define SubclassWindow(hwnd, lpfn) \ + ((WNDPROC)SetWindowLongPtr((hwnd), GWLP_WNDPROC, (LPARAM)(WNDPROC)(lpfn))) + +#define IsMinimized(hwnd) IsIconic(hwnd) +#define IsMaximized(hwnd) IsZoomed(hwnd) +#define IsRestored(hwnd) ((GetWindowStyle(hwnd) & (WS_MINIMIZE | WS_MAXIMIZE)) == 0L) + +#define SetWindowFont(hwnd, hfont, fRedraw) FORWARD_WM_SETFONT((hwnd), (hfont), (fRedraw), SNDMSG) + +#define GetWindowFont(hwnd) FORWARD_WM_GETFONT((hwnd), SNDMSG) +#if (WINVER >= 0x030a) + +#ifdef UNIX +#define MapWindowRect MwMapWindowRect +LONG MwMapWindowRect(HWND, HWND, RECT *); +#else + +#define MapWindowRect(hwndFrom, hwndTo, lprc) \ + MapWindowPoints((hwndFrom), (hwndTo), (POINT *)(lprc), 2) +#endif /* !UNIX */ +#endif +#define IsLButtonDown() (GetKeyState(VK_LBUTTON) < 0) +#define IsRButtonDown() (GetKeyState(VK_RBUTTON) < 0) +#define IsMButtonDown() (GetKeyState(VK_MBUTTON) < 0) + +#define SubclassDialog(hwndDlg, lpfn) \ + (SetWindowLongPtr(hwndDlg, DWLP_DLGPROC, (LPARAM)(lpfn))) + +#define SetDlgMsgResult(hwnd, msg, result) (( \ + (msg) == WM_CTLCOLORMSGBOX || \ + (msg) == WM_CTLCOLOREDIT || \ + (msg) == WM_CTLCOLORLISTBOX || \ + (msg) == WM_CTLCOLORBTN || \ + (msg) == WM_CTLCOLORDLG || \ + (msg) == WM_CTLCOLORSCROLLBAR || \ + (msg) == WM_CTLCOLORSTATIC || \ + (msg) == WM_COMPAREITEM || \ + (msg) == WM_VKEYTOITEM || \ + (msg) == WM_CHARTOITEM || \ + (msg) == WM_QUERYDRAGICON || \ + (msg) == WM_INITDIALOG \ + ) ? (BOOL)(result) : (SetWindowLongPtr((hwnd), DWLP_MSGRESULT, (LPARAM)(LRESULT)(result)), TRUE)) + +#define DefDlgProcEx(hwnd, msg, wParam, lParam, pfRecursion) \ + (*(pfRecursion) = TRUE, DefDlgProc(hwnd, msg, wParam, lParam)) + +#define CheckDefDlgRecursion(pfRecursion) \ + if (*(pfRecursion)) { *(pfRecursion) = FALSE; return FALSE; } + +/****** Message crackers ****************************************************/ + +#define HANDLE_MSG(hwnd, message, fn) \ + case (message): return HANDLE_##message((hwnd), (wParam), (lParam), (fn)) + +/* void Cls_OnCompacting(HWND hwnd, UINT compactRatio) */ +#define HANDLE_WM_COMPACTING(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam)), 0L) +#define FORWARD_WM_COMPACTING(hwnd, compactRatio, fn) \ + (void)(fn)((hwnd), WM_COMPACTING, (WPARAM)(UINT)(compactRatio), 0L) + +/* void Cls_OnWinIniChange(HWND hwnd, LPCTSTR lpszSectionName) */ +#define HANDLE_WM_WININICHANGE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (LPCTSTR)(lParam)), 0L) +#define FORWARD_WM_WININICHANGE(hwnd, lpszSectionName, fn) \ + (void)(fn)((hwnd), WM_WININICHANGE, 0L, (LPARAM)(LPCTSTR)(lpszSectionName)) + +/* void Cls_OnSysColorChange(HWND hwnd) */ +#define HANDLE_WM_SYSCOLORCHANGE(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_SYSCOLORCHANGE(hwnd, fn) \ + (void)(fn)((hwnd), WM_SYSCOLORCHANGE, 0L, 0L) + +/* BOOL Cls_OnQueryNewPalette(HWND hwnd) */ +#define HANDLE_WM_QUERYNEWPALETTE(hwnd, wParam, lParam, fn) \ + MAKELRESULT((BOOL)(fn)(hwnd), 0L) +#define FORWARD_WM_QUERYNEWPALETTE(hwnd, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_QUERYNEWPALETTE, 0L, 0L) + +/* void Cls_OnPaletteIsChanging(HWND hwnd, HWND hwndPaletteChange) */ +#define HANDLE_WM_PALETTEISCHANGING(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam)), 0L) +#define FORWARD_WM_PALETTEISCHANGING(hwnd, hwndPaletteChange, fn) \ + (void)(fn)((hwnd), WM_PALETTEISCHANGING, (WPARAM)(HWND)(hwndPaletteChange), 0L) + +/* void Cls_OnPaletteChanged(HWND hwnd, HWND hwndPaletteChange) */ +#define HANDLE_WM_PALETTECHANGED(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam)), 0L) +#define FORWARD_WM_PALETTECHANGED(hwnd, hwndPaletteChange, fn) \ + (void)(fn)((hwnd), WM_PALETTECHANGED, (WPARAM)(HWND)(hwndPaletteChange), 0L) + +/* void Cls_OnFontChange(HWND hwnd) */ +#define HANDLE_WM_FONTCHANGE(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_FONTCHANGE(hwnd, fn) \ + (void)(fn)((hwnd), WM_FONTCHANGE, 0L, 0L) + +/* void Cls_OnSpoolerStatus(HWND hwnd, UINT status, int cJobInQueue) */ +#define HANDLE_WM_SPOOLERSTATUS(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam), (int)(short)LOWORD(lParam)), 0L) +#define FORWARD_WM_SPOOLERSTATUS(hwnd, status, cJobInQueue, fn) \ + (void)(fn)((hwnd), WM_SPOOLERSTATUS, (WPARAM)(status), MAKELPARAM((cJobInQueue), 0)) + +/* void Cls_OnDevModeChange(HWND hwnd, LPCTSTR lpszDeviceName) */ +#define HANDLE_WM_DEVMODECHANGE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (LPCTSTR)(lParam)), 0L) +#define FORWARD_WM_DEVMODECHANGE(hwnd, lpszDeviceName, fn) \ + (void)(fn)((hwnd), WM_DEVMODECHANGE, 0L, (LPARAM)(LPCTSTR)(lpszDeviceName)) + +/* void Cls_OnTimeChange(HWND hwnd) */ +#define HANDLE_WM_TIMECHANGE(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_TIMECHANGE(hwnd, fn) \ + (void)(fn)((hwnd), WM_TIMECHANGE, 0L, 0L) + +/* void Cls_OnPower(HWND hwnd, int code) */ +#define HANDLE_WM_POWER(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(wParam)), 0L) +#define FORWARD_WM_POWER(hwnd, code, fn) \ + (void)(fn)((hwnd), WM_POWER, (WPARAM)(int)(code), 0L) + +/* BOOL Cls_OnQueryEndSession(HWND hwnd) */ +#define HANDLE_WM_QUERYENDSESSION(hwnd, wParam, lParam, fn) \ + MAKELRESULT((BOOL)(fn)(hwnd), 0L) +#define FORWARD_WM_QUERYENDSESSION(hwnd, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_QUERYENDSESSION, 0L, 0L) + +/* void Cls_OnEndSession(HWND hwnd, BOOL fEnding) */ +#define HANDLE_WM_ENDSESSION(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (BOOL)(wParam)), 0L) +#define FORWARD_WM_ENDSESSION(hwnd, fEnding, fn) \ + (void)(fn)((hwnd), WM_ENDSESSION, (WPARAM)(BOOL)(fEnding), 0L) + +/* void Cls_OnQuit(HWND hwnd, int exitCode) */ +#define HANDLE_WM_QUIT(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(wParam)), 0L) +#define FORWARD_WM_QUIT(hwnd, exitCode, fn) \ + (void)(fn)((hwnd), WM_QUIT, (WPARAM)(exitCode), 0L) + +/* This message is in Windows 3.1 only */ +/* void Cls_OnSystemError(HWND hwnd, int errCode) */ +#define HANDLE_WM_SYSTEMERROR(hwnd, wParam, lParam, fn) 0L +#define FORWARD_WM_SYSTEMERROR(hwnd, errCode, fn) 0L + +/* BOOL Cls_OnCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct) */ +#define HANDLE_WM_CREATE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (LPCREATESTRUCT)(lParam)) ? 0L : (LRESULT)-1L) +#define FORWARD_WM_CREATE(hwnd, lpCreateStruct, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_CREATE, 0L, (LPARAM)(LPCREATESTRUCT)(lpCreateStruct)) + +/* BOOL Cls_OnNCCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct) */ +#define HANDLE_WM_NCCREATE(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(BOOL)(fn)((hwnd), (LPCREATESTRUCT)(lParam)) +#define FORWARD_WM_NCCREATE(hwnd, lpCreateStruct, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_NCCREATE, 0L, (LPARAM)(LPCREATESTRUCT)(lpCreateStruct)) + +/* void Cls_OnDestroy(HWND hwnd) */ +#define HANDLE_WM_DESTROY(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_DESTROY(hwnd, fn) \ + (void)(fn)((hwnd), WM_DESTROY, 0L, 0L) + +/* void Cls_OnNCDestroy(HWND hwnd) */ +#define HANDLE_WM_NCDESTROY(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_NCDESTROY(hwnd, fn) \ + (void)(fn)((hwnd), WM_NCDESTROY, 0L, 0L) + +/* void Cls_OnShowWindow(HWND hwnd, BOOL fShow, UINT status) */ +#define HANDLE_WM_SHOWWINDOW(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (BOOL)(wParam), (UINT)(lParam)), 0L) +#define FORWARD_WM_SHOWWINDOW(hwnd, fShow, status, fn) \ + (void)(fn)((hwnd), WM_SHOWWINDOW, (WPARAM)(BOOL)(fShow), (LPARAM)(UINT)(status)) + +/* void Cls_OnSetRedraw(HWND hwnd, BOOL fRedraw) */ +#define HANDLE_WM_SETREDRAW(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (BOOL)(wParam)), 0L) +#define FORWARD_WM_SETREDRAW(hwnd, fRedraw, fn) \ + (void)(fn)((hwnd), WM_SETREDRAW, (WPARAM)(BOOL)(fRedraw), 0L) + +/* void Cls_OnEnable(HWND hwnd, BOOL fEnable) */ +#define HANDLE_WM_ENABLE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (BOOL)(wParam)), 0L) +#define FORWARD_WM_ENABLE(hwnd, fEnable, fn) \ + (void)(fn)((hwnd), WM_ENABLE, (WPARAM)(BOOL)(fEnable), 0L) + +/* void Cls_OnSetText(HWND hwnd, LPCTSTR lpszText) */ +#define HANDLE_WM_SETTEXT(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (LPCTSTR)(lParam)), 0L) +#define FORWARD_WM_SETTEXT(hwnd, lpszText, fn) \ + (void)(fn)((hwnd), WM_SETTEXT, 0L, (LPARAM)(LPCTSTR)(lpszText)) + +/* INT Cls_OnGetText(HWND hwnd, int cchTextMax, LPTSTR lpszText) */ +#define HANDLE_WM_GETTEXT(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(int)(fn)((hwnd), (int)(wParam), (LPTSTR)(lParam)) +#define FORWARD_WM_GETTEXT(hwnd, cchTextMax, lpszText, fn) \ + (int)(DWORD)(fn)((hwnd), WM_GETTEXT, (WPARAM)(int)(cchTextMax), (LPARAM)(LPTSTR)(lpszText)) + +/* INT Cls_OnGetTextLength(HWND hwnd) */ +#define HANDLE_WM_GETTEXTLENGTH(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(int)(fn)(hwnd) +#define FORWARD_WM_GETTEXTLENGTH(hwnd, fn) \ + (int)(DWORD)(fn)((hwnd), WM_GETTEXTLENGTH, 0L, 0L) + +/* BOOL Cls_OnWindowPosChanging(HWND hwnd, LPWINDOWPOS lpwpos) */ +#define HANDLE_WM_WINDOWPOSCHANGING(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(BOOL)(fn)((hwnd), (LPWINDOWPOS)(lParam)) +#define FORWARD_WM_WINDOWPOSCHANGING(hwnd, lpwpos, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_WINDOWPOSCHANGING, 0L, (LPARAM)(LPWINDOWPOS)(lpwpos)) + +/* void Cls_OnWindowPosChanged(HWND hwnd, const LPWINDOWPOS lpwpos) */ +#define HANDLE_WM_WINDOWPOSCHANGED(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (const LPWINDOWPOS)(lParam)), 0L) +#define FORWARD_WM_WINDOWPOSCHANGED(hwnd, lpwpos, fn) \ + (void)(fn)((hwnd), WM_WINDOWPOSCHANGED, 0L, (LPARAM)(const LPWINDOWPOS)(lpwpos)) + +/* void Cls_OnMove(HWND hwnd, int x, int y) */ +#define HANDLE_WM_MOVE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam)), 0L) +#define FORWARD_WM_MOVE(hwnd, x, y, fn) \ + (void)(fn)((hwnd), WM_MOVE, 0L, MAKELPARAM((x), (y))) + +/* void Cls_OnSize(HWND hwnd, UINT state, int cx, int cy) */ +#define HANDLE_WM_SIZE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam)), 0L) +#define FORWARD_WM_SIZE(hwnd, state, cx, cy, fn) \ + (void)(fn)((hwnd), WM_SIZE, (WPARAM)(UINT)(state), MAKELPARAM((cx), (cy))) + +/* void Cls_OnClose(HWND hwnd) */ +#define HANDLE_WM_CLOSE(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_CLOSE(hwnd, fn) \ + (void)(fn)((hwnd), WM_CLOSE, 0L, 0L) + +/* BOOL Cls_OnQueryOpen(HWND hwnd) */ +#define HANDLE_WM_QUERYOPEN(hwnd, wParam, lParam, fn) \ + MAKELRESULT((BOOL)(fn)(hwnd), 0L) +#define FORWARD_WM_QUERYOPEN(hwnd, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_QUERYOPEN, 0L, 0L) + +/* void Cls_OnGetMinMaxInfo(HWND hwnd, LPMINMAXINFO lpMinMaxInfo) */ +#define HANDLE_WM_GETMINMAXINFO(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (LPMINMAXINFO)(lParam)), 0L) +#define FORWARD_WM_GETMINMAXINFO(hwnd, lpMinMaxInfo, fn) \ + (void)(fn)((hwnd), WM_GETMINMAXINFO, 0L, (LPARAM)(LPMINMAXINFO)(lpMinMaxInfo)) + +/* void Cls_OnPaint(HWND hwnd) */ +#define HANDLE_WM_PAINT(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_PAINT(hwnd, fn) \ + (void)(fn)((hwnd), WM_PAINT, 0L, 0L) + +/* BOOL Cls_OnEraseBkgnd(HWND hwnd, HDC hdc) */ +#define HANDLE_WM_ERASEBKGND(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(BOOL)(fn)((hwnd), (HDC)(wParam)) +#define FORWARD_WM_ERASEBKGND(hwnd, hdc, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_ERASEBKGND, (WPARAM)(HDC)(hdc), 0L) + +/* BOOL Cls_OnIconEraseBkgnd(HWND hwnd, HDC hdc) */ +#define HANDLE_WM_ICONERASEBKGND(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(BOOL)(fn)((hwnd), (HDC)(wParam)) +#define FORWARD_WM_ICONERASEBKGND(hwnd, hdc, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_ICONERASEBKGND, (WPARAM)(HDC)(hdc), 0L) + +/* void Cls_OnNCPaint(HWND hwnd, HRGN hrgn) */ +#define HANDLE_WM_NCPAINT(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HRGN)(wParam)), 0L) +#define FORWARD_WM_NCPAINT(hwnd, hrgn, fn) \ + (void)(fn)((hwnd), WM_NCPAINT, (WPARAM)(HRGN)(hrgn), 0L) + +/* UINT Cls_OnNCCalcSize(HWND hwnd, BOOL fCalcValidRects, NCCALCSIZE_PARAMS * lpcsp) */ +#define HANDLE_WM_NCCALCSIZE(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(UINT)(fn)((hwnd), (BOOL)(wParam), (NCCALCSIZE_PARAMS *)(lParam)) +#define FORWARD_WM_NCCALCSIZE(hwnd, fCalcValidRects, lpcsp, fn) \ + (UINT)(DWORD)(fn)((hwnd), WM_NCCALCSIZE, (WPARAM)(fCalcValidRects), (LPARAM)(NCCALCSIZE_PARAMS *)(lpcsp)) + +/* UINT Cls_OnNCHitTest(HWND hwnd, int x, int y) */ +#define HANDLE_WM_NCHITTEST(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(UINT)(fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam)) +#define FORWARD_WM_NCHITTEST(hwnd, x, y, fn) \ + (UINT)(DWORD)(fn)((hwnd), WM_NCHITTEST, 0L, MAKELPARAM((x), (y))) + +/* HICON Cls_OnQueryDragIcon(HWND hwnd) */ +#define HANDLE_WM_QUERYDRAGICON(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(UINT)(fn)(hwnd) +#define FORWARD_WM_QUERYDRAGICON(hwnd, fn) \ + (HICON)(UINT)(DWORD)(fn)((hwnd), WM_QUERYDRAGICON, 0L, 0L) + +#ifdef _INC_SHELLAPI +/* void Cls_OnDropFiles(HWND hwnd, HDROP hdrop) */ +#define HANDLE_WM_DROPFILES(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HDROP)(wParam)), 0L) +#define FORWARD_WM_DROPFILES(hwnd, hdrop, fn) \ + (void)(fn)((hwnd), WM_DROPFILES, (WPARAM)(HDROP)(hdrop), 0L) +#endif /* _INC_SHELLAPI */ + +/* void Cls_OnActivate(HWND hwnd, UINT state, HWND hwndActDeact, BOOL fMinimized) */ +#define HANDLE_WM_ACTIVATE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)LOWORD(wParam), (HWND)(lParam), (BOOL)HIWORD(wParam)), 0L) +#define FORWARD_WM_ACTIVATE(hwnd, state, hwndActDeact, fMinimized, fn) \ + (void)(fn)((hwnd), WM_ACTIVATE, MAKEWPARAM((state), (fMinimized)), (LPARAM)(HWND)(hwndActDeact)) + +/* void Cls_OnActivateApp(HWND hwnd, BOOL fActivate, DWORD dwThreadId) */ +#define HANDLE_WM_ACTIVATEAPP(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (BOOL)(wParam), (DWORD)(lParam)), 0L) +#define FORWARD_WM_ACTIVATEAPP(hwnd, fActivate, dwThreadId, fn) \ + (void)(fn)((hwnd), WM_ACTIVATEAPP, (WPARAM)(BOOL)(fActivate), (LPARAM)(dwThreadId)) + +/* BOOL Cls_OnNCActivate(HWND hwnd, BOOL fActive, HWND hwndActDeact, BOOL fMinimized) */ +#define HANDLE_WM_NCACTIVATE(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(BOOL)(fn)((hwnd), (BOOL)(wParam), 0L, 0L) +#define FORWARD_WM_NCACTIVATE(hwnd, fActive, hwndActDeact, fMinimized, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_NCACTIVATE, (WPARAM)(BOOL)(fActive), 0L) + +/* void Cls_OnSetFocus(HWND hwnd, HWND hwndOldFocus) */ +#define HANDLE_WM_SETFOCUS(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam)), 0L) +#define FORWARD_WM_SETFOCUS(hwnd, hwndOldFocus, fn) \ + (void)(fn)((hwnd), WM_SETFOCUS, (WPARAM)(HWND)(hwndOldFocus), 0L) + +/* void Cls_OnKillFocus(HWND hwnd, HWND hwndNewFocus) */ +#define HANDLE_WM_KILLFOCUS(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam)), 0L) +#define FORWARD_WM_KILLFOCUS(hwnd, hwndNewFocus, fn) \ + (void)(fn)((hwnd), WM_KILLFOCUS, (WPARAM)(HWND)(hwndNewFocus), 0L) + +/* void Cls_OnKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags) */ +#define HANDLE_WM_KEYDOWN(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam), TRUE, (int)(short)LOWORD(lParam), (UINT)HIWORD(lParam)), 0L) +#define FORWARD_WM_KEYDOWN(hwnd, vk, cRepeat, flags, fn) \ + (void)(fn)((hwnd), WM_KEYDOWN, (WPARAM)(UINT)(vk), MAKELPARAM((cRepeat), (flags))) + +/* void Cls_OnKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags) */ +#define HANDLE_WM_KEYUP(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam), FALSE, (int)(short)LOWORD(lParam), (UINT)HIWORD(lParam)), 0L) +#define FORWARD_WM_KEYUP(hwnd, vk, cRepeat, flags, fn) \ + (void)(fn)((hwnd), WM_KEYUP, (WPARAM)(UINT)(vk), MAKELPARAM((cRepeat), (flags))) + +/* void Cls_OnChar(HWND hwnd, TCHAR ch, int cRepeat) */ +#define HANDLE_WM_CHAR(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (TCHAR)(wParam), (int)(short)LOWORD(lParam)), 0L) +#define FORWARD_WM_CHAR(hwnd, ch, cRepeat, fn) \ + (void)(fn)((hwnd), WM_CHAR, (WPARAM)(TCHAR)(ch), MAKELPARAM((cRepeat),0)) + +/* void Cls_OnDeadChar(HWND hwnd, TCHAR ch, int cRepeat) */ +#define HANDLE_WM_DEADCHAR(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (TCHAR)(wParam), (int)(short)LOWORD(lParam)), 0L) +#define FORWARD_WM_DEADCHAR(hwnd, ch, cRepeat, fn) \ + (void)(fn)((hwnd), WM_DEADCHAR, (WPARAM)(TCHAR)(ch), MAKELPARAM((cRepeat),0)) + +/* void Cls_OnSysKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags) */ +#define HANDLE_WM_SYSKEYDOWN(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam), TRUE, (int)(short)LOWORD(lParam), (UINT)HIWORD(lParam)), 0L) +#define FORWARD_WM_SYSKEYDOWN(hwnd, vk, cRepeat, flags, fn) \ + (void)(fn)((hwnd), WM_SYSKEYDOWN, (WPARAM)(UINT)(vk), MAKELPARAM((cRepeat), (flags))) + +/* void Cls_OnSysKey(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags) */ +#define HANDLE_WM_SYSKEYUP(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam), FALSE, (int)(short)LOWORD(lParam), (UINT)HIWORD(lParam)), 0L) +#define FORWARD_WM_SYSKEYUP(hwnd, vk, cRepeat, flags, fn) \ + (void)(fn)((hwnd), WM_SYSKEYUP, (WPARAM)(UINT)(vk), MAKELPARAM((cRepeat), (flags))) + +/* void Cls_OnSysChar(HWND hwnd, TCHAR ch, int cRepeat) */ +#define HANDLE_WM_SYSCHAR(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (TCHAR)(wParam), (int)(short)LOWORD(lParam)), 0L) +#define FORWARD_WM_SYSCHAR(hwnd, ch, cRepeat, fn) \ + (void)(fn)((hwnd), WM_SYSCHAR, (WPARAM)(TCHAR)(ch), MAKELPARAM((cRepeat), 0)) + +/* void Cls_OnSysDeadChar(HWND hwnd, TCHAR ch, int cRepeat) */ +#define HANDLE_WM_SYSDEADCHAR(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (TCHAR)(wParam), (int)(short)LOWORD(lParam)), 0L) +#define FORWARD_WM_SYSDEADCHAR(hwnd, ch, cRepeat, fn) \ + (void)(fn)((hwnd), WM_SYSDEADCHAR, (WPARAM)(TCHAR)(ch), MAKELPARAM((cRepeat), 0)) + +/* void Cls_OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags) */ +#define HANDLE_WM_MOUSEMOVE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_MOUSEMOVE(hwnd, x, y, keyFlags, fn) \ + (void)(fn)((hwnd), WM_MOUSEMOVE, (WPARAM)(UINT)(keyFlags), MAKELPARAM((x), (y))) + +/* void Cls_OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ +#define HANDLE_WM_LBUTTONDOWN(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_LBUTTONDOWN(hwnd, fDoubleClick, x, y, keyFlags, fn) \ + (void)(fn)((hwnd), (fDoubleClick) ? WM_LBUTTONDBLCLK : WM_LBUTTONDOWN, (WPARAM)(UINT)(keyFlags), MAKELPARAM((x), (y))) + +/* void Cls_OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ +#define HANDLE_WM_LBUTTONDBLCLK(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) + +/* void Cls_OnLButtonUp(HWND hwnd, int x, int y, UINT keyFlags) */ +#define HANDLE_WM_LBUTTONUP(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_LBUTTONUP(hwnd, x, y, keyFlags, fn) \ + (void)(fn)((hwnd), WM_LBUTTONUP, (WPARAM)(UINT)(keyFlags), MAKELPARAM((x), (y))) + +/* void Cls_OnRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ +#define HANDLE_WM_RBUTTONDOWN(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_RBUTTONDOWN(hwnd, fDoubleClick, x, y, keyFlags, fn) \ + (void)(fn)((hwnd), (fDoubleClick) ? WM_RBUTTONDBLCLK : WM_RBUTTONDOWN, (WPARAM)(UINT)(keyFlags), MAKELPARAM((x), (y))) + +/* void Cls_OnRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ +#define HANDLE_WM_RBUTTONDBLCLK(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) + +/* void Cls_OnRButtonUp(HWND hwnd, int x, int y, UINT flags) */ +#define HANDLE_WM_RBUTTONUP(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_RBUTTONUP(hwnd, x, y, keyFlags, fn) \ + (void)(fn)((hwnd), WM_RBUTTONUP, (WPARAM)(UINT)(keyFlags), MAKELPARAM((x), (y))) + +/* void Cls_OnMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ +#define HANDLE_WM_MBUTTONDOWN(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_MBUTTONDOWN(hwnd, fDoubleClick, x, y, keyFlags, fn) \ + (void)(fn)((hwnd), (fDoubleClick) ? WM_MBUTTONDBLCLK : WM_MBUTTONDOWN, (WPARAM)(UINT)(keyFlags), MAKELPARAM((x), (y))) + +/* void Cls_OnMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) */ +#define HANDLE_WM_MBUTTONDBLCLK(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) + +/* void Cls_OnMButtonUp(HWND hwnd, int x, int y, UINT flags) */ +#define HANDLE_WM_MBUTTONUP(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_MBUTTONUP(hwnd, x, y, keyFlags, fn) \ + (void)(fn)((hwnd), WM_MBUTTONUP, (WPARAM)(UINT)(keyFlags), MAKELPARAM((x), (y))) + +/* void Cls_OnMouseWheel(HWND hwnd, int xPos, int yPos, int zDelta, UINT fwKeys) */ +#define HANDLE_WM_MOUSEWHEEL(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (int)(short)HIWORD(wParam), (UINT)(short)LOWORD(wParam)), 0L) +#define FORWARD_WM_MOUSEWHEEL(hwnd, xPos, yPos, zDelta, fwKeys, fn) \ + (void)(fn)((hwnd), WM_MOUSEWHEEL, MAKEWPARAM((fwKeys),(zDelta)), MAKELPARAM((xPos),(yPos))) + +/* void Cls_OnNCMouseMove(HWND hwnd, int x, int y, UINT codeHitTest) */ +#define HANDLE_WM_NCMOUSEMOVE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_NCMOUSEMOVE(hwnd, x, y, codeHitTest, fn) \ + (void)(fn)((hwnd), WM_NCMOUSEMOVE, (WPARAM)(UINT)(codeHitTest), MAKELPARAM((x), (y))) + +/* void Cls_OnNCLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ +#define HANDLE_WM_NCLBUTTONDOWN(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_NCLBUTTONDOWN(hwnd, fDoubleClick, x, y, codeHitTest, fn) \ + (void)(fn)((hwnd), (fDoubleClick) ? WM_NCLBUTTONDBLCLK : WM_NCLBUTTONDOWN, (WPARAM)(UINT)(codeHitTest), MAKELPARAM((x), (y))) + +/* void Cls_OnNCLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ +#define HANDLE_WM_NCLBUTTONDBLCLK(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) + +/* void Cls_OnNCLButtonUp(HWND hwnd, int x, int y, UINT codeHitTest) */ +#define HANDLE_WM_NCLBUTTONUP(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_NCLBUTTONUP(hwnd, x, y, codeHitTest, fn) \ + (void)(fn)((hwnd), WM_NCLBUTTONUP, (WPARAM)(UINT)(codeHitTest), MAKELPARAM((x), (y))) + +/* void Cls_OnNCRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ +#define HANDLE_WM_NCRBUTTONDOWN(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_NCRBUTTONDOWN(hwnd, fDoubleClick, x, y, codeHitTest, fn) \ + (void)(fn)((hwnd), (fDoubleClick) ? WM_NCRBUTTONDBLCLK : WM_NCRBUTTONDOWN, (WPARAM)(UINT)(codeHitTest), MAKELPARAM((x), (y)) ) + +/* void Cls_OnNCRButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ +#define HANDLE_WM_NCRBUTTONDBLCLK(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) + +/* void Cls_OnNCRButtonUp(HWND hwnd, int x, int y, UINT codeHitTest) */ +#define HANDLE_WM_NCRBUTTONUP(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_NCRBUTTONUP(hwnd, x, y, codeHitTest, fn) \ + (void)(fn)((hwnd), WM_NCRBUTTONUP, (WPARAM)(UINT)(codeHitTest), MAKELPARAM((x), (y)) ) + +/* void Cls_OnNCMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ +#define HANDLE_WM_NCMBUTTONDOWN(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), FALSE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_NCMBUTTONDOWN(hwnd, fDoubleClick, x, y, codeHitTest, fn) \ + (void)(fn)((hwnd), (fDoubleClick) ? WM_NCMBUTTONDBLCLK : WM_NCMBUTTONDOWN, (WPARAM)(UINT)(codeHitTest), MAKELPARAM((x), (y)) ) + +/* void Cls_OnNCMButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT codeHitTest) */ +#define HANDLE_WM_NCMBUTTONDBLCLK(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), TRUE, (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) + +/* void Cls_OnNCMButtonUp(HWND hwnd, int x, int y, UINT codeHitTest) */ +#define HANDLE_WM_NCMBUTTONUP(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam), (UINT)(wParam)), 0L) +#define FORWARD_WM_NCMBUTTONUP(hwnd, x, y, codeHitTest, fn) \ + (void)(fn)((hwnd), WM_NCMBUTTONUP, (WPARAM)(UINT)(codeHitTest), MAKELPARAM((x), (y)) ) + +/* int Cls_OnMouseActivate(HWND hwnd, HWND hwndTopLevel, UINT codeHitTest, UINT msg) */ +#define HANDLE_WM_MOUSEACTIVATE(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(int)(fn)((hwnd), (HWND)(wParam), (UINT)LOWORD(lParam), (UINT)HIWORD(lParam)) +#define FORWARD_WM_MOUSEACTIVATE(hwnd, hwndTopLevel, codeHitTest, msg, fn) \ + (int)(DWORD)(fn)((hwnd), WM_MOUSEACTIVATE, (WPARAM)(HWND)(hwndTopLevel), MAKELPARAM((codeHitTest), (msg))) + +/* void Cls_OnCancelMode(HWND hwnd) */ +#define HANDLE_WM_CANCELMODE(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_CANCELMODE(hwnd, fn) \ + (void)(fn)((hwnd), WM_CANCELMODE, 0L, 0L) + +/* void Cls_OnTimer(HWND hwnd, UINT id) */ +#define HANDLE_WM_TIMER(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam)), 0L) +#define FORWARD_WM_TIMER(hwnd, id, fn) \ + (void)(fn)((hwnd), WM_TIMER, (WPARAM)(UINT)(id), 0L) + +/* void Cls_OnInitMenu(HWND hwnd, HMENU hMenu) */ +#define HANDLE_WM_INITMENU(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HMENU)(wParam)), 0L) +#define FORWARD_WM_INITMENU(hwnd, hMenu, fn) \ + (void)(fn)((hwnd), WM_INITMENU, (WPARAM)(HMENU)(hMenu), 0L) + +/* void Cls_OnInitMenuPopup(HWND hwnd, HMENU hMenu, UINT item, BOOL fSystemMenu) */ +#define HANDLE_WM_INITMENUPOPUP(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HMENU)(wParam), (UINT)LOWORD(lParam), (BOOL)HIWORD(lParam)), 0L) +#define FORWARD_WM_INITMENUPOPUP(hwnd, hMenu, item, fSystemMenu, fn) \ + (void)(fn)((hwnd), WM_INITMENUPOPUP, (WPARAM)(HMENU)(hMenu), MAKELPARAM((item),(fSystemMenu))) + +/* void Cls_OnMenuSelect(HWND hwnd, HMENU hmenu, int item, HMENU hmenuPopup, UINT flags) */ +#define HANDLE_WM_MENUSELECT(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HMENU)(lParam), \ + (HIWORD(wParam) & MF_POPUP) ? 0L : (int)(LOWORD(wParam)), \ + (HIWORD(wParam) & MF_POPUP) ? GetSubMenu((HMENU)lParam, LOWORD(wParam)) : 0L, \ + (UINT)(((short)HIWORD(wParam) == -1) ? 0xFFFFFFFF : HIWORD(wParam))), 0L) +#define FORWARD_WM_MENUSELECT(hwnd, hmenu, item, hmenuPopup, flags, fn) \ + (void)(fn)((hwnd), WM_MENUSELECT, MAKEWPARAM((item), (flags)), (LPARAM)(HMENU)((hmenu) ? (hmenu) : (hmenuPopup))) + +/* DWORD Cls_OnMenuChar(HWND hwnd, UINT ch, UINT flags, HMENU hmenu) */ +#define HANDLE_WM_MENUCHAR(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(fn)((hwnd), (UINT)(LOWORD(wParam)), (UINT)HIWORD(wParam), (HMENU)(lParam)) +#define FORWARD_WM_MENUCHAR(hwnd, ch, flags, hmenu, fn) \ + (DWORD)(fn)((hwnd), WM_MENUCHAR, MAKEWPARAM(flags, (WORD)(ch)), (LPARAM)(HMENU)(hmenu)) + +/* void Cls_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify) */ +#define HANDLE_WM_COMMAND(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(LOWORD(wParam)), (HWND)(lParam), (UINT)HIWORD(wParam)), 0L) +#define FORWARD_WM_COMMAND(hwnd, id, hwndCtl, codeNotify, fn) \ + (void)(fn)((hwnd), WM_COMMAND, MAKEWPARAM((UINT)(id),(UINT)(codeNotify)), (LPARAM)(HWND)(hwndCtl)) + +/* void Cls_OnHScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos) */ +#define HANDLE_WM_HSCROLL(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(lParam), (UINT)(LOWORD(wParam)), (int)(short)HIWORD(wParam)), 0L) +#define FORWARD_WM_HSCROLL(hwnd, hwndCtl, code, pos, fn) \ + (void)(fn)((hwnd), WM_HSCROLL, MAKEWPARAM((UINT)(int)(code),(UINT)(int)(pos)), (LPARAM)(HWND)(hwndCtl)) + +/* void Cls_OnVScroll(HWND hwnd, HWND hwndCtl, UINT code, int pos) */ +#define HANDLE_WM_VSCROLL(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(lParam), (UINT)(LOWORD(wParam)), (int)(short)HIWORD(wParam)), 0L) +#define FORWARD_WM_VSCROLL(hwnd, hwndCtl, code, pos, fn) \ + (void)(fn)((hwnd), WM_VSCROLL, MAKEWPARAM((UINT)(int)(code), (UINT)(int)(pos)), (LPARAM)(HWND)(hwndCtl)) + +/* void Cls_OnCut(HWND hwnd) */ +#define HANDLE_WM_CUT(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_CUT(hwnd, fn) \ + (void)(fn)((hwnd), WM_CUT, 0L, 0L) + +/* void Cls_OnCopy(HWND hwnd) */ +#define HANDLE_WM_COPY(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_COPY(hwnd, fn) \ + (void)(fn)((hwnd), WM_COPY, 0L, 0L) + +/* void Cls_OnPaste(HWND hwnd) */ +#define HANDLE_WM_PASTE(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_PASTE(hwnd, fn) \ + (void)(fn)((hwnd), WM_PASTE, 0L, 0L) + +/* void Cls_OnClear(HWND hwnd) */ +#define HANDLE_WM_CLEAR(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_CLEAR(hwnd, fn) \ + (void)(fn)((hwnd), WM_CLEAR, 0L, 0L) + +/* void Cls_OnUndo(HWND hwnd) */ +#define HANDLE_WM_UNDO(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_UNDO(hwnd, fn) \ + (void)(fn)((hwnd), WM_UNDO, 0L, 0L) + +/* HANDLE Cls_OnRenderFormat(HWND hwnd, UINT fmt) */ +#define HANDLE_WM_RENDERFORMAT(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(HANDLE)(fn)((hwnd), (UINT)(wParam)) +#define FORWARD_WM_RENDERFORMAT(hwnd, fmt, fn) \ + (HANDLE)(UINT_PTR)(fn)((hwnd), WM_RENDERFORMAT, (WPARAM)(UINT)(fmt), 0L) + +/* void Cls_OnRenderAllFormats(HWND hwnd) */ +#define HANDLE_WM_RENDERALLFORMATS(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_RENDERALLFORMATS(hwnd, fn) \ + (void)(fn)((hwnd), WM_RENDERALLFORMATS, 0L, 0L) + +/* void Cls_OnDestroyClipboard(HWND hwnd) */ +#define HANDLE_WM_DESTROYCLIPBOARD(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_DESTROYCLIPBOARD(hwnd, fn) \ + (void)(fn)((hwnd), WM_DESTROYCLIPBOARD, 0L, 0L) + +/* void Cls_OnDrawClipboard(HWND hwnd) */ +#define HANDLE_WM_DRAWCLIPBOARD(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_DRAWCLIPBOARD(hwnd, fn) \ + (void)(fn)((hwnd), WM_DRAWCLIPBOARD, 0L, 0L) + +/* void Cls_OnPaintClipboard(HWND hwnd, HWND hwndCBViewer, const LPPAINTSTRUCT lpPaintStruct) */ +#define HANDLE_WM_PAINTCLIPBOARD(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam), (const LPPAINTSTRUCT)GlobalLock((HGLOBAL)(lParam))), GlobalUnlock((HGLOBAL)(lParam)), 0L) +#define FORWARD_WM_PAINTCLIPBOARD(hwnd, hwndCBViewer, lpPaintStruct, fn) \ + (void)(fn)((hwnd), WM_PAINTCLIPBOARD, (WPARAM)(HWND)(hwndCBViewer), (LPARAM)(LPPAINTSTRUCT)(lpPaintStruct)) + +/* void Cls_OnSizeClipboard(HWND hwnd, HWND hwndCBViewer, const LPRECT lprc) */ +#define HANDLE_WM_SIZECLIPBOARD(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam), (const LPRECT)GlobalLock((HGLOBAL)(lParam))), GlobalUnlock((HGLOBAL)(lParam)), 0L) +#define FORWARD_WM_SIZECLIPBOARD(hwnd, hwndCBViewer, lprc, fn) \ + (void)(fn)((hwnd), WM_SIZECLIPBOARD, (WPARAM)(HWND)(hwndCBViewer), (LPARAM)(LPRECT)(lprc)) + +/* void Cls_OnVScrollClipboard(HWND hwnd, HWND hwndCBViewer, UINT code, int pos) */ +#define HANDLE_WM_VSCROLLCLIPBOARD(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam), (UINT)LOWORD(lParam), (int)(short)HIWORD(lParam)), 0L) +#define FORWARD_WM_VSCROLLCLIPBOARD(hwnd, hwndCBViewer, code, pos, fn) \ + (void)(fn)((hwnd), WM_VSCROLLCLIPBOARD, (WPARAM)(HWND)(hwndCBViewer), MAKELPARAM((code), (pos))) + +/* void Cls_OnHScrollClipboard(HWND hwnd, HWND hwndCBViewer, UINT code, int pos) */ +#define HANDLE_WM_HSCROLLCLIPBOARD(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam), (UINT)LOWORD(lParam), (int)(short)HIWORD(lParam)), 0L) +#define FORWARD_WM_HSCROLLCLIPBOARD(hwnd, hwndCBViewer, code, pos, fn) \ + (void)(fn)((hwnd), WM_HSCROLLCLIPBOARD, (WPARAM)(HWND)(hwndCBViewer), MAKELPARAM((code), (pos))) + +/* void Cls_OnAskCBFormatName(HWND hwnd, int cchMax, LPTSTR rgchName) */ +#define HANDLE_WM_ASKCBFORMATNAME(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(wParam), (LPTSTR)(lParam)), 0L) +#define FORWARD_WM_ASKCBFORMATNAME(hwnd, cchMax, rgchName, fn) \ + (void)(fn)((hwnd), WM_ASKCBFORMATNAME, (WPARAM)(int)(cchMax), (LPARAM)(rgchName)) + +/* void Cls_OnChangeCBChain(HWND hwnd, HWND hwndRemove, HWND hwndNext) */ +#define HANDLE_WM_CHANGECBCHAIN(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam), (HWND)(lParam)), 0L) +#define FORWARD_WM_CHANGECBCHAIN(hwnd, hwndRemove, hwndNext, fn) \ + (void)(fn)((hwnd), WM_CHANGECBCHAIN, (WPARAM)(HWND)(hwndRemove), (LPARAM)(HWND)(hwndNext)) + +/* BOOL Cls_OnSetCursor(HWND hwnd, HWND hwndCursor, UINT codeHitTest, UINT msg) */ +#define HANDLE_WM_SETCURSOR(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(BOOL)(fn)((hwnd), (HWND)(wParam), (UINT)LOWORD(lParam), (UINT)HIWORD(lParam)) +#define FORWARD_WM_SETCURSOR(hwnd, hwndCursor, codeHitTest, msg, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_SETCURSOR, (WPARAM)(HWND)(hwndCursor), MAKELPARAM((codeHitTest), (msg))) + +/* void Cls_OnSysCommand(HWND hwnd, UINT cmd, int x, int y) */ +#define HANDLE_WM_SYSCOMMAND(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam)), 0L) +#define FORWARD_WM_SYSCOMMAND(hwnd, cmd, x, y, fn) \ + (void)(fn)((hwnd), WM_SYSCOMMAND, (WPARAM)(UINT)(cmd), MAKELPARAM((x), (y))) + +/* HWND Cls_MDICreate(HWND hwnd, const LPMDICREATESTRUCT lpmcs) */ +#define HANDLE_WM_MDICREATE(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(UINT)(fn)((hwnd), (LPMDICREATESTRUCT)(lParam)) +#define FORWARD_WM_MDICREATE(hwnd, lpmcs, fn) \ + (HWND)(UINT)(DWORD)(fn)((hwnd), WM_MDICREATE, 0L, (LPARAM)(LPMDICREATESTRUCT)(lpmcs)) + +/* void Cls_MDIDestroy(HWND hwnd, HWND hwndDestroy) */ +#define HANDLE_WM_MDIDESTROY(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam)), 0L) +#define FORWARD_WM_MDIDESTROY(hwnd, hwndDestroy, fn) \ + (void)(fn)((hwnd), WM_MDIDESTROY, (WPARAM)(hwndDestroy), 0L) + +/* NOTE: Usable only by MDI client windows */ +/* void Cls_MDIActivate(HWND hwnd, BOOL fActive, HWND hwndActivate, HWND hwndDeactivate) */ +#define HANDLE_WM_MDIACTIVATE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (BOOL)(lParam == (LPARAM)hwnd), (HWND)(lParam), (HWND)(wParam)), 0L) +#define FORWARD_WM_MDIACTIVATE(hwnd, fActive, hwndActivate, hwndDeactivate, fn) \ + (void)(fn)(hwnd, WM_MDIACTIVATE, (WPARAM)(hwndDeactivate), (LPARAM)(hwndActivate)) + +/* void Cls_MDIRestore(HWND hwnd, HWND hwndRestore) */ +#define HANDLE_WM_MDIRESTORE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam)), 0L) +#define FORWARD_WM_MDIRESTORE(hwnd, hwndRestore, fn) \ + (void)(fn)((hwnd), WM_MDIRESTORE, (WPARAM)(hwndRestore), 0L) + +/* HWND Cls_MDINext(HWND hwnd, HWND hwndCur, BOOL fPrev) */ +#define HANDLE_WM_MDINEXT(hwnd, wParam, lParam, fn) \ + (LRESULT)(HWND)(fn)((hwnd), (HWND)(wParam), (BOOL)lParam) +#define FORWARD_WM_MDINEXT(hwnd, hwndCur, fPrev, fn) \ + (HWND)(UINT_PTR)(fn)((hwnd), WM_MDINEXT, (WPARAM)(hwndCur), (LPARAM)(fPrev)) + +/* void Cls_MDIMaximize(HWND hwnd, HWND hwndMaximize) */ +#define HANDLE_WM_MDIMAXIMIZE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam)), 0L) +#define FORWARD_WM_MDIMAXIMIZE(hwnd, hwndMaximize, fn) \ + (void)(fn)((hwnd), WM_MDIMAXIMIZE, (WPARAM)(hwndMaximize), 0L) + +/* BOOL Cls_MDITile(HWND hwnd, UINT cmd) */ +#define HANDLE_WM_MDITILE(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(fn)((hwnd), (UINT)(wParam)) +#define FORWARD_WM_MDITILE(hwnd, cmd, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_MDITILE, (WPARAM)(cmd), 0L) + +/* BOOL Cls_MDICascade(HWND hwnd, UINT cmd) */ +#define HANDLE_WM_MDICASCADE(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(fn)((hwnd), (UINT)(wParam)) +#define FORWARD_WM_MDICASCADE(hwnd, cmd, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_MDICASCADE, (WPARAM)(cmd), 0L) + +/* void Cls_MDIIconArrange(HWND hwnd) */ +#define HANDLE_WM_MDIICONARRANGE(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_MDIICONARRANGE(hwnd, fn) \ + (void)(fn)((hwnd), WM_MDIICONARRANGE, 0L, 0L) + +/* HWND Cls_MDIGetActive(HWND hwnd) */ +#define HANDLE_WM_MDIGETACTIVE(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(fn)(hwnd) +#define FORWARD_WM_MDIGETACTIVE(hwnd, fn) \ + (HWND)(UINT_PTR)(fn)((hwnd), WM_MDIGETACTIVE, 0L, 0L) + +/* HMENU Cls_MDISetMenu(HWND hwnd, BOOL fRefresh, HMENU hmenuFrame, HMENU hmenuWindow) */ +#define HANDLE_WM_MDISETMENU(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(fn)((hwnd), (BOOL)(wParam), (HMENU)(wParam), (HMENU)(lParam)) +#define FORWARD_WM_MDISETMENU(hwnd, fRefresh, hmenuFrame, hmenuWindow, fn) \ + (HMENU)(UINT_PTR)(fn)((hwnd), WM_MDISETMENU, (WPARAM)((fRefresh) ? (hmenuFrame) : 0), (LPARAM)(hmenuWindow)) + +/* void Cls_OnChildActivate(HWND hwnd) */ +#define HANDLE_WM_CHILDACTIVATE(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_CHILDACTIVATE(hwnd, fn) \ + (void)(fn)((hwnd), WM_CHILDACTIVATE, 0L, 0L) + +/* BOOL Cls_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam) */ +#define HANDLE_WM_INITDIALOG(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(UINT)(BOOL)(fn)((hwnd), (HWND)(wParam), lParam) +#define FORWARD_WM_INITDIALOG(hwnd, hwndFocus, lParam, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_INITDIALOG, (WPARAM)(HWND)(hwndFocus), (lParam)) + +/* HWND Cls_OnNextDlgCtl(HWND hwnd, HWND hwndSetFocus, BOOL fNext) */ +#define HANDLE_WM_NEXTDLGCTL(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(HWND)(fn)((hwnd), (HWND)(wParam), (BOOL)(lParam)) +#define FORWARD_WM_NEXTDLGCTL(hwnd, hwndSetFocus, fNext, fn) \ + (HWND)(UINT_PTR)(fn)((hwnd), WM_NEXTDLGCTL, (WPARAM)(HWND)(hwndSetFocus), (LPARAM)(fNext)) + +/* void Cls_OnParentNotify(HWND hwnd, UINT msg, HWND hwndChild, int idChild) */ +#define HANDLE_WM_PARENTNOTIFY(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)LOWORD(wParam), (HWND)(lParam), (UINT)HIWORD(wParam)), 0L) +#define FORWARD_WM_PARENTNOTIFY(hwnd, msg, hwndChild, idChild, fn) \ + (void)(fn)((hwnd), WM_PARENTNOTIFY, MAKEWPARAM(msg, idChild), (LPARAM)(hwndChild)) + +/* void Cls_OnEnterIdle(HWND hwnd, UINT source, HWND hwndSource) */ +#define HANDLE_WM_ENTERIDLE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam), (HWND)(lParam)), 0L) +#define FORWARD_WM_ENTERIDLE(hwnd, source, hwndSource, fn) \ + (void)(fn)((hwnd), WM_ENTERIDLE, (WPARAM)(UINT)(source), (LPARAM)(HWND)(hwndSource)) + +/* UINT Cls_OnGetDlgCode(HWND hwnd, LPMSG lpmsg) */ +#define HANDLE_WM_GETDLGCODE(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(UINT)(fn)(hwnd, (LPMSG)(lParam)) +#define FORWARD_WM_GETDLGCODE(hwnd, lpmsg, fn) \ + (UINT)(DWORD)(fn)((hwnd), WM_GETDLGCODE, (lpmsg ? lpmsg->wParam : 0), (LPARAM)(LPMSG)(lpmsg)) + +/* HBRUSH Cls_OnCtlColor(HWND hwnd, HDC hdc, HWND hwndChild, int type) */ +#define HANDLE_WM_CTLCOLORMSGBOX(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_MSGBOX) +#define FORWARD_WM_CTLCOLORMSGBOX(hwnd, hdc, hwndChild, fn) \ + (HBRUSH)(UINT_PTR)(fn)((hwnd), WM_CTLCOLORMSGBOX, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)) + +#define HANDLE_WM_CTLCOLOREDIT(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_EDIT) +#define FORWARD_WM_CTLCOLOREDIT(hwnd, hdc, hwndChild, fn) \ + (HBRUSH)(UINT_PTR)(fn)((hwnd), WM_CTLCOLOREDIT, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)) + +#define HANDLE_WM_CTLCOLORLISTBOX(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_LISTBOX) +#define FORWARD_WM_CTLCOLORLISTBOX(hwnd, hdc, hwndChild, fn) \ + (HBRUSH)(UINT_PTR)(fn)((hwnd), WM_CTLCOLORLISTBOX, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)) + +#define HANDLE_WM_CTLCOLORBTN(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_BTN) +#define FORWARD_WM_CTLCOLORBTN(hwnd, hdc, hwndChild, fn) \ + (HBRUSH)(UINT_PTR)(fn)((hwnd), WM_CTLCOLORBTN, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)) + +#define HANDLE_WM_CTLCOLORDLG(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_DLG) +#define FORWARD_WM_CTLCOLORDLG(hwnd, hdc, hwndChild, fn) \ + (HBRUSH)(UINT_PTR)(fn)((hwnd), WM_CTLCOLORDLG, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)) + +#define HANDLE_WM_CTLCOLORSCROLLBAR(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_SCROLLBAR) +#define FORWARD_WM_CTLCOLORSCROLLBAR(hwnd, hdc, hwndChild, fn) \ + (HBRUSH)(UINT_PTR)(fn)((hwnd), WM_CTLCOLORSCROLLBAR, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)) + +#define HANDLE_WM_CTLCOLORSTATIC(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd), (HDC)(wParam), (HWND)(lParam), CTLCOLOR_STATIC) +#define FORWARD_WM_CTLCOLORSTATIC(hwnd, hdc, hwndChild, fn) \ + (HBRUSH)(UINT_PTR)(fn)((hwnd), WM_CTLCOLORSTATIC, (WPARAM)(HDC)(hdc), (LPARAM)(HWND)(hwndChild)) + +/* void Cls_OnSetFont(HWND hwndCtl, HFONT hfont, BOOL fRedraw) */ +#define HANDLE_WM_SETFONT(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HFONT)(wParam), (BOOL)(lParam)), 0L) +#define FORWARD_WM_SETFONT(hwnd, hfont, fRedraw, fn) \ + (void)(fn)((hwnd), WM_SETFONT, (WPARAM)(HFONT)(hfont), (LPARAM)(BOOL)(fRedraw)) + +/* HFONT Cls_OnGetFont(HWND hwnd) */ +#define HANDLE_WM_GETFONT(hwnd, wParam, lParam, fn) \ + (LRESULT)(UINT_PTR)(HFONT)(fn)(hwnd) +#define FORWARD_WM_GETFONT(hwnd, fn) \ + (HFONT)(UINT_PTR)(fn)((hwnd), WM_GETFONT, 0L, 0L) + +/* void Cls_OnDrawItem(HWND hwnd, const DRAWITEMSTRUCT * lpDrawItem) */ +#define HANDLE_WM_DRAWITEM(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (const DRAWITEMSTRUCT *)(lParam)), 0L) +#define FORWARD_WM_DRAWITEM(hwnd, lpDrawItem, fn) \ + (void)(fn)((hwnd), WM_DRAWITEM, (WPARAM)(((const DRAWITEMSTRUCT *)lpDrawItem)->CtlID), (LPARAM)(const DRAWITEMSTRUCT *)(lpDrawItem)) + +/* void Cls_OnMeasureItem(HWND hwnd, MEASUREITEMSTRUCT * lpMeasureItem) */ +#define HANDLE_WM_MEASUREITEM(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (MEASUREITEMSTRUCT *)(lParam)), 0L) +#define FORWARD_WM_MEASUREITEM(hwnd, lpMeasureItem, fn) \ + (void)(fn)((hwnd), WM_MEASUREITEM, (WPARAM)(((MEASUREITEMSTRUCT *)lpMeasureItem)->CtlID), (LPARAM)(MEASUREITEMSTRUCT *)(lpMeasureItem)) + +/* void Cls_OnDeleteItem(HWND hwnd, const DELETEITEMSTRUCT * lpDeleteItem) */ +#define HANDLE_WM_DELETEITEM(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (const DELETEITEMSTRUCT *)(lParam)), 0L) +#define FORWARD_WM_DELETEITEM(hwnd, lpDeleteItem, fn) \ + (void)(fn)((hwnd), WM_DELETEITEM, (WPARAM)(((const DELETEITEMSTRUCT *)(lpDeleteItem))->CtlID), (LPARAM)(const DELETEITEMSTRUCT *)(lpDeleteItem)) + +/* int Cls_OnCompareItem(HWND hwnd, const COMPAREITEMSTRUCT * lpCompareItem) */ +#define HANDLE_WM_COMPAREITEM(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(int)(fn)((hwnd), (const COMPAREITEMSTRUCT *)(lParam)) +#define FORWARD_WM_COMPAREITEM(hwnd, lpCompareItem, fn) \ + (int)(DWORD)(fn)((hwnd), WM_COMPAREITEM, (WPARAM)(((const COMPAREITEMSTRUCT *)(lpCompareItem))->CtlID), (LPARAM)(const COMPAREITEMSTRUCT *)(lpCompareItem)) + +/* int Cls_OnVkeyToItem(HWND hwnd, UINT vk, HWND hwndListbox, int iCaret) */ +#define HANDLE_WM_VKEYTOITEM(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(int)(fn)((hwnd), (UINT)LOWORD(wParam), (HWND)(lParam), (int)(short)HIWORD(wParam)) +#define FORWARD_WM_VKEYTOITEM(hwnd, vk, hwndListBox, iCaret, fn) \ + (int)(DWORD)(fn)((hwnd), WM_VKEYTOITEM, MAKEWPARAM((vk), (iCaret)), (LPARAM)(hwndListBox)) + +/* int Cls_OnCharToItem(HWND hwnd, UINT ch, HWND hwndListbox, int iCaret) */ +#define HANDLE_WM_CHARTOITEM(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(int)(fn)((hwnd), (UINT)LOWORD(wParam), (HWND)(lParam), (int)(short)HIWORD(wParam)) +#define FORWARD_WM_CHARTOITEM(hwnd, ch, hwndListBox, iCaret, fn) \ + (int)(DWORD)(fn)((hwnd), WM_CHARTOITEM, MAKEWPARAM((UINT)(ch), (UINT)(iCaret)), (LPARAM)(hwndListBox)) + +/* void Cls_OnQueueSync(HWND hwnd) */ +#define HANDLE_WM_QUEUESYNC(hwnd, wParam, lParam, fn) \ + ((fn)(hwnd), 0L) +#define FORWARD_WM_QUEUESYNC(hwnd, fn) \ + (void)(fn)((hwnd), WM_QUEUESYNC, 0L, 0L) +#if (WINVER >= 0x030a) +/* void Cls_OnCommNotify(HWND hwnd, int cid, UINT flags) */ +#define HANDLE_WM_COMMNOTIFY(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(wParam), (UINT)LOWORD(lParam)), 0L) +#define FORWARD_WM_COMMNOTIFY(hwnd, cid, flags, fn) \ + (void)(fn)((hwnd), WM_COMMNOTIFY, (WPARAM)(cid), MAKELPARAM((flags), 0)) +#endif + +/* void Cls_OnDisplayChange(HWND hwnd, UINT bitsPerPixel, UINT cxScreen, UINT cyScreen) */ +#define HANDLE_WM_DISPLAYCHANGE(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (UINT)(wParam), (UINT)LOWORD(lParam), (UINT)HIWORD(lParam)), 0L) +#define FORWARD_WM_DISPLAYCHANGE(hwnd, bitsPerPixel, cxScreen, cyScreen, fn) \ + (void)(fn)((hwnd), WM_DISPLAYCHANGE, (WPARAM)(UINT)(bitsPerPixel), (LPARAM)MAKELPARAM((UINT)(cxScreen), (UINT)(cyScreen))) + +/* BOOL Cls_OnDeviceChange(HWND hwnd, UINT uEvent, DWORD dwEventData) */ +#define HANDLE_WM_DEVICECHANGE(hwnd, wParam, lParam, fn) \ + (LRESULT)(DWORD)(BOOL)(fn)((hwnd), (UINT)(wParam), (DWORD)(lParam)) +#define FORWARD_WM_DEVICECHANGE(hwnd, uEvent, dwEventData, fn) \ + (BOOL)(DWORD)(fn)((hwnd), WM_DEVICECHANGE, (WPARAM)(UINT)(uEvent), (LPARAM)(DWORD)(dwEventData)) + +/* void Cls_OnContextMenu(HWND hwnd, HWND hwndContext, UINT xPos, UINT yPos) */ +#define HANDLE_WM_CONTEXTMENU(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam), (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam)), 0L) +#define FORWARD_WM_CONTEXTMENU(hwnd, hwndContext, xPos, yPos, fn) \ + (void)(fn)((hwnd), WM_CONTEXTMENU, (WPARAM)(HWND)(hwndContext), MAKELPARAM((UINT)(xPos), (UINT)(yPos))) + +#define HANDLE_WM_COPYDATA(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (HWND)(wParam), (PCOPYDATASTRUCT)lParam), 0L) +#define FORWARD_WM_COPYDATA(hwnd, hwndFrom, pcds, fn) \ + (BOOL)(UINT)(DWORD)(fn)((hwnd), WM_COPYDATA, (WPARAM)(hwndFrom), (LPARAM)(pcds)) + +/* void Cls_OnHotKey(HWND hwnd, int idHotKey, UINT fuModifiers, UINT vk) */ +#define HANDLE_WM_HOTKEY(hwnd, wParam, lParam, fn) \ + ((fn)((hwnd), (int)(wParam), (UINT)LOWORD(lParam), (UINT)HIWORD(lParam)), 0L) +#define FORWARD_WM_HOTKEY(hwnd, idHotKey, fuModifiers, vk, fn) \ + (void)(fn)((hwnd), WM_HOTKEY, (WPARAM)(idHotKey), MAKELPARAM((fuModifiers), (vk))) + +/****** Static control message APIs ******************************************/ + +#define Static_Enable(hwndCtl, fEnable) EnableWindow((hwndCtl), (fEnable)) + +#define Static_GetText(hwndCtl, lpch, cchMax) GetWindowText((hwndCtl), (lpch), (cchMax)) +#define Static_GetTextLength(hwndCtl) GetWindowTextLength(hwndCtl) +#define Static_SetText(hwndCtl, lpsz) SetWindowText((hwndCtl), (lpsz)) + +#define Static_SetIcon(hwndCtl, hIcon) ((HICON)(UINT_PTR)SNDMSG((hwndCtl), STM_SETICON, (WPARAM)(HICON)(hIcon), 0L)) +#define Static_GetIcon(hwndCtl, hIcon) ((HICON)(UINT_PTR)SNDMSG((hwndCtl), STM_GETICON, 0L, 0L)) + +/****** Button control message APIs ******************************************/ + +#define Button_Enable(hwndCtl, fEnable) EnableWindow((hwndCtl), (fEnable)) + +#define Button_GetText(hwndCtl, lpch, cchMax) GetWindowText((hwndCtl), (lpch), (cchMax)) +#define Button_GetTextLength(hwndCtl) GetWindowTextLength(hwndCtl) +#define Button_SetText(hwndCtl, lpsz) SetWindowText((hwndCtl), (lpsz)) + +#define Button_GetCheck(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), BM_GETCHECK, 0L, 0L)) +#define Button_SetCheck(hwndCtl, check) ((void)SNDMSG((hwndCtl), BM_SETCHECK, (WPARAM)(int)(check), 0L)) + +#define Button_GetState(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), BM_GETSTATE, 0L, 0L)) +#define Button_SetState(hwndCtl, state) ((UINT)(DWORD)SNDMSG((hwndCtl), BM_SETSTATE, (WPARAM)(int)(state), 0L)) + +#define Button_SetStyle(hwndCtl, style, fRedraw) ((void)SNDMSG((hwndCtl), BM_SETSTYLE, (WPARAM)LOWORD(style), MAKELPARAM(((fRedraw) ? TRUE : FALSE), 0))) + +/****** Edit control message APIs ********************************************/ + +#define Edit_Enable(hwndCtl, fEnable) EnableWindow((hwndCtl), (fEnable)) + +#define Edit_GetText(hwndCtl, lpch, cchMax) GetWindowText((hwndCtl), (lpch), (cchMax)) +#define Edit_GetTextLength(hwndCtl) GetWindowTextLength(hwndCtl) +#define Edit_SetText(hwndCtl, lpsz) SetWindowText((hwndCtl), (lpsz)) + +#define Edit_LimitText(hwndCtl, cchMax) ((void)SNDMSG((hwndCtl), EM_LIMITTEXT, (WPARAM)(cchMax), 0L)) + +#define Edit_GetLineCount(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), EM_GETLINECOUNT, 0L, 0L)) +#ifndef _MAC +#define Edit_GetLine(hwndCtl, line, lpch, cchMax) ((*((int *)(lpch)) = (cchMax)), ((int)(DWORD)SNDMSG((hwndCtl), EM_GETLINE, (WPARAM)(int)(line), (LPARAM)(LPTSTR)(lpch)))) +#else +#define Edit_GetLine(hwndCtl, line, lpch, cchMax) ((*((WORD *)(lpch)) = (cchMax)), ((int)(DWORD)SNDMSG((hwndCtl), EM_GETLINE, (WPARAM)(int)(line), (LPARAM)(LPTSTR)(lpch)))) +#endif + +#define Edit_GetRect(hwndCtl, lprc) ((void)SNDMSG((hwndCtl), EM_GETRECT, 0L, (LPARAM)(RECT *)(lprc))) +#define Edit_SetRect(hwndCtl, lprc) ((void)SNDMSG((hwndCtl), EM_SETRECT, 0L, (LPARAM)(const RECT *)(lprc))) +#define Edit_SetRectNoPaint(hwndCtl, lprc) ((void)SNDMSG((hwndCtl), EM_SETRECTNP, 0L, (LPARAM)(const RECT *)(lprc))) + +#define Edit_GetSel(hwndCtl) ((DWORD)SNDMSG((hwndCtl), EM_GETSEL, 0L, 0L)) +#define Edit_SetSel(hwndCtl, ichStart, ichEnd) ((void)SNDMSG((hwndCtl), EM_SETSEL, (ichStart), (ichEnd))) +#define Edit_ReplaceSel(hwndCtl, lpszReplace) ((void)SNDMSG((hwndCtl), EM_REPLACESEL, 0L, (LPARAM)(LPCTSTR)(lpszReplace))) + +#define Edit_GetModify(hwndCtl) ((BOOL)(DWORD)SNDMSG((hwndCtl), EM_GETMODIFY, 0L, 0L)) +#define Edit_SetModify(hwndCtl, fModified) ((void)SNDMSG((hwndCtl), EM_SETMODIFY, (WPARAM)(UINT)(fModified), 0L)) + +#define Edit_ScrollCaret(hwndCtl) ((BOOL)(DWORD)SNDMSG((hwndCtl), EM_SCROLLCARET, 0, 0L)) + +#define Edit_LineFromChar(hwndCtl, ich) ((int)(DWORD)SNDMSG((hwndCtl), EM_LINEFROMCHAR, (WPARAM)(int)(ich), 0L)) +#define Edit_LineIndex(hwndCtl, line) ((int)(DWORD)SNDMSG((hwndCtl), EM_LINEINDEX, (WPARAM)(int)(line), 0L)) +#define Edit_LineLength(hwndCtl, line) ((int)(DWORD)SNDMSG((hwndCtl), EM_LINELENGTH, (WPARAM)(int)(line), 0L)) + +#define Edit_Scroll(hwndCtl, dv, dh) ((void)SNDMSG((hwndCtl), EM_LINESCROLL, (WPARAM)(dh), (LPARAM)(dv))) + +#define Edit_CanUndo(hwndCtl) ((BOOL)(DWORD)SNDMSG((hwndCtl), EM_CANUNDO, 0L, 0L)) +#define Edit_Undo(hwndCtl) ((BOOL)(DWORD)SNDMSG((hwndCtl), EM_UNDO, 0L, 0L)) +#define Edit_EmptyUndoBuffer(hwndCtl) ((void)SNDMSG((hwndCtl), EM_EMPTYUNDOBUFFER, 0L, 0L)) + +#define Edit_SetPasswordChar(hwndCtl, ch) ((void)SNDMSG((hwndCtl), EM_SETPASSWORDCHAR, (WPARAM)(UINT)(ch), 0L)) + +#define Edit_SetTabStops(hwndCtl, cTabs, lpTabs) ((void)SNDMSG((hwndCtl), EM_SETTABSTOPS, (WPARAM)(int)(cTabs), (LPARAM)(const int *)(lpTabs))) + +#define Edit_FmtLines(hwndCtl, fAddEOL) ((BOOL)(DWORD)SNDMSG((hwndCtl), EM_FMTLINES, (WPARAM)(BOOL)(fAddEOL), 0L)) + +#define Edit_GetHandle(hwndCtl) ((HLOCAL)(UINT_PTR)SNDMSG((hwndCtl), EM_GETHANDLE, 0L, 0L)) +#define Edit_SetHandle(hwndCtl, h) ((void)SNDMSG((hwndCtl), EM_SETHANDLE, (WPARAM)(UINT_PTR)(HLOCAL)(h), 0L)) + +#if (WINVER >= 0x030a) +#define Edit_GetFirstVisibleLine(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), EM_GETFIRSTVISIBLELINE, 0L, 0L)) + +#define Edit_SetReadOnly(hwndCtl, fReadOnly) ((BOOL)(DWORD)SNDMSG((hwndCtl), EM_SETREADONLY, (WPARAM)(BOOL)(fReadOnly), 0L)) + +#define Edit_GetPasswordChar(hwndCtl) ((TCHAR)(DWORD)SNDMSG((hwndCtl), EM_GETPASSWORDCHAR, 0L, 0L)) + +#define Edit_SetWordBreakProc(hwndCtl, lpfnWordBreak) ((void)SNDMSG((hwndCtl), EM_SETWORDBREAKPROC, 0L, (LPARAM)(EDITWORDBREAKPROC)(lpfnWordBreak))) +#define Edit_GetWordBreakProc(hwndCtl) ((EDITWORDBREAKPROC)SNDMSG((hwndCtl), EM_GETWORDBREAKPROC, 0L, 0L)) +#endif /* WINVER >= 0x030a */ + +/****** ScrollBar control message APIs ***************************************/ + +/* NOTE: flags parameter is a collection of ESB_* values, NOT a boolean! */ +#define ScrollBar_Enable(hwndCtl, flags) EnableScrollBar((hwndCtl), SB_CTL, (flags)) + +#define ScrollBar_Show(hwndCtl, fShow) ShowWindow((hwndCtl), (fShow) ? SW_SHOWNORMAL : SW_HIDE) + +#define ScrollBar_SetPos(hwndCtl, pos, fRedraw) SetScrollPos((hwndCtl), SB_CTL, (pos), (fRedraw)) +#define ScrollBar_GetPos(hwndCtl) GetScrollPos((hwndCtl), SB_CTL) + +#define ScrollBar_SetRange(hwndCtl, posMin, posMax, fRedraw) SetScrollRange((hwndCtl), SB_CTL, (posMin), (posMax), (fRedraw)) +#define ScrollBar_GetRange(hwndCtl, lpposMin, lpposMax) GetScrollRange((hwndCtl), SB_CTL, (lpposMin), (lpposMax)) + +/****** ListBox control message APIs *****************************************/ + +#define ListBox_Enable(hwndCtl, fEnable) EnableWindow((hwndCtl), (fEnable)) + +#define ListBox_GetCount(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETCOUNT, 0L, 0L)) +#define ListBox_ResetContent(hwndCtl) ((BOOL)(DWORD)SNDMSG((hwndCtl), LB_RESETCONTENT, 0L, 0L)) + +#define ListBox_AddString(hwndCtl, lpsz) ((int)(DWORD)SNDMSG((hwndCtl), LB_ADDSTRING, 0L, (LPARAM)(LPCTSTR)(lpsz))) +#define ListBox_InsertString(hwndCtl, index, lpsz) ((int)(DWORD)SNDMSG((hwndCtl), LB_INSERTSTRING, (WPARAM)(int)(index), (LPARAM)(LPCTSTR)(lpsz))) + +#define ListBox_AddItemData(hwndCtl, data) ((int)(DWORD)SNDMSG((hwndCtl), LB_ADDSTRING, 0L, (LPARAM)(data))) +#define ListBox_InsertItemData(hwndCtl, index, data) ((int)(DWORD)SNDMSG((hwndCtl), LB_INSERTSTRING, (WPARAM)(int)(index), (LPARAM)(data))) + +#define ListBox_DeleteString(hwndCtl, index) ((int)(DWORD)SNDMSG((hwndCtl), LB_DELETESTRING, (WPARAM)(int)(index), 0L)) + +#define ListBox_GetTextLen(hwndCtl, index) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETTEXTLEN, (WPARAM)(int)(index), 0L)) +#define ListBox_GetText(hwndCtl, index, lpszBuffer) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETTEXT, (WPARAM)(int)(index), (LPARAM)(LPCTSTR)(lpszBuffer))) + +#define ListBox_GetItemData(hwndCtl, index) ((LRESULT)(ULONG_PTR)SNDMSG((hwndCtl), LB_GETITEMDATA, (WPARAM)(int)(index), 0L)) +#define ListBox_SetItemData(hwndCtl, index, data) ((int)(DWORD)SNDMSG((hwndCtl), LB_SETITEMDATA, (WPARAM)(int)(index), (LPARAM)(data))) + +#if (WINVER >= 0x030a) +#define ListBox_FindString(hwndCtl, indexStart, lpszFind) ((int)(DWORD)SNDMSG((hwndCtl), LB_FINDSTRING, (WPARAM)(int)(indexStart), (LPARAM)(LPCTSTR)(lpszFind))) +#define ListBox_FindItemData(hwndCtl, indexStart, data) ((int)(DWORD)SNDMSG((hwndCtl), LB_FINDSTRING, (WPARAM)(int)(indexStart), (LPARAM)(data))) + +#define ListBox_SetSel(hwndCtl, fSelect, index) ((int)(DWORD)SNDMSG((hwndCtl), LB_SETSEL, (WPARAM)(BOOL)(fSelect), (LPARAM)(index))) +#define ListBox_SelItemRange(hwndCtl, fSelect, first, last) ((int)(DWORD)SNDMSG((hwndCtl), LB_SELITEMRANGE, (WPARAM)(BOOL)(fSelect), MAKELPARAM((first), (last)))) + +#define ListBox_GetCurSel(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETCURSEL, 0L, 0L)) +#define ListBox_SetCurSel(hwndCtl, index) ((int)(DWORD)SNDMSG((hwndCtl), LB_SETCURSEL, (WPARAM)(int)(index), 0L)) + +#define ListBox_SelectString(hwndCtl, indexStart, lpszFind) ((int)(DWORD)SNDMSG((hwndCtl), LB_SELECTSTRING, (WPARAM)(int)(indexStart), (LPARAM)(LPCTSTR)(lpszFind))) +#define ListBox_SelectItemData(hwndCtl, indexStart, data) ((int)(DWORD)SNDMSG((hwndCtl), LB_SELECTSTRING, (WPARAM)(int)(indexStart), (LPARAM)(data))) + +#define ListBox_GetSel(hwndCtl, index) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETSEL, (WPARAM)(int)(index), 0L)) +#define ListBox_GetSelCount(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETSELCOUNT, 0L, 0L)) +#define ListBox_GetTopIndex(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETTOPINDEX, 0L, 0L)) +#define ListBox_GetSelItems(hwndCtl, cItems, lpItems) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETSELITEMS, (WPARAM)(int)(cItems), (LPARAM)(int *)(lpItems))) + +#define ListBox_SetTopIndex(hwndCtl, indexTop) ((int)(DWORD)SNDMSG((hwndCtl), LB_SETTOPINDEX, (WPARAM)(int)(indexTop), 0L)) + +#define ListBox_SetColumnWidth(hwndCtl, cxColumn) ((void)SNDMSG((hwndCtl), LB_SETCOLUMNWIDTH, (WPARAM)(int)(cxColumn), 0L)) +#define ListBox_GetHorizontalExtent(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETHORIZONTALEXTENT, 0L, 0L)) +#define ListBox_SetHorizontalExtent(hwndCtl, cxExtent) ((void)SNDMSG((hwndCtl), LB_SETHORIZONTALEXTENT, (WPARAM)(int)(cxExtent), 0L)) + +#define ListBox_SetTabStops(hwndCtl, cTabs, lpTabs) ((BOOL)(DWORD)SNDMSG((hwndCtl), LB_SETTABSTOPS, (WPARAM)(int)(cTabs), (LPARAM)(int *)(lpTabs))) + +#define ListBox_GetItemRect(hwndCtl, index, lprc) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETITEMRECT, (WPARAM)(int)(index), (LPARAM)(RECT *)(lprc))) + +#define ListBox_SetCaretIndex(hwndCtl, index) ((int)(DWORD)SNDMSG((hwndCtl), LB_SETCARETINDEX, (WPARAM)(int)(index), 0L)) +#define ListBox_GetCaretIndex(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETCARETINDEX, 0L, 0L)) + +#define ListBox_FindStringExact(hwndCtl, indexStart, lpszFind) ((int)(DWORD)SNDMSG((hwndCtl), LB_FINDSTRINGEXACT, (WPARAM)(int)(indexStart), (LPARAM)(LPCTSTR)(lpszFind))) + +#define ListBox_SetItemHeight(hwndCtl, index, cy) ((int)(DWORD)SNDMSG((hwndCtl), LB_SETITEMHEIGHT, (WPARAM)(int)(index), MAKELPARAM((cy), 0))) +#define ListBox_GetItemHeight(hwndCtl, index) ((int)(DWORD)SNDMSG((hwndCtl), LB_GETITEMHEIGHT, (WPARAM)(int)(index), 0L)) +#endif /* WINVER >= 0x030a */ + +#define ListBox_Dir(hwndCtl, attrs, lpszFileSpec) ((int)(DWORD)SNDMSG((hwndCtl), LB_DIR, (WPARAM)(UINT)(attrs), (LPARAM)(LPCTSTR)(lpszFileSpec))) + +/****** ComboBox control message APIs ****************************************/ + +#define ComboBox_Enable(hwndCtl, fEnable) EnableWindow((hwndCtl), (fEnable)) + +#define ComboBox_GetText(hwndCtl, lpch, cchMax) GetWindowText((hwndCtl), (lpch), (cchMax)) +#define ComboBox_GetTextLength(hwndCtl) GetWindowTextLength(hwndCtl) +#define ComboBox_SetText(hwndCtl, lpsz) SetWindowText((hwndCtl), (lpsz)) + +#define ComboBox_LimitText(hwndCtl, cchLimit) ((int)(DWORD)SNDMSG((hwndCtl), CB_LIMITTEXT, (WPARAM)(int)(cchLimit), 0L)) + +#define ComboBox_GetEditSel(hwndCtl) ((DWORD)SNDMSG((hwndCtl), CB_GETEDITSEL, 0L, 0L)) +#define ComboBox_SetEditSel(hwndCtl, ichStart, ichEnd) ((int)(DWORD)SNDMSG((hwndCtl), CB_SETEDITSEL, 0L, MAKELPARAM((ichStart), (ichEnd)))) + +#define ComboBox_GetCount(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), CB_GETCOUNT, 0L, 0L)) +#define ComboBox_ResetContent(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), CB_RESETCONTENT, 0L, 0L)) + +#define ComboBox_AddString(hwndCtl, lpsz) ((int)(DWORD)SNDMSG((hwndCtl), CB_ADDSTRING, 0L, (LPARAM)(LPCTSTR)(lpsz))) +#define ComboBox_InsertString(hwndCtl, index, lpsz) ((int)(DWORD)SNDMSG((hwndCtl), CB_INSERTSTRING, (WPARAM)(int)(index), (LPARAM)(LPCTSTR)(lpsz))) + +#define ComboBox_AddItemData(hwndCtl, data) ((int)(DWORD)SNDMSG((hwndCtl), CB_ADDSTRING, 0L, (LPARAM)(data))) +#define ComboBox_InsertItemData(hwndCtl, index, data) ((int)(DWORD)SNDMSG((hwndCtl), CB_INSERTSTRING, (WPARAM)(int)(index), (LPARAM)(data))) + +#define ComboBox_DeleteString(hwndCtl, index) ((int)(DWORD)SNDMSG((hwndCtl), CB_DELETESTRING, (WPARAM)(int)(index), 0L)) + +#define ComboBox_GetLBTextLen(hwndCtl, index) ((int)(DWORD)SNDMSG((hwndCtl), CB_GETLBTEXTLEN, (WPARAM)(int)(index), 0L)) +#define ComboBox_GetLBText(hwndCtl, index, lpszBuffer) ((int)(DWORD)SNDMSG((hwndCtl), CB_GETLBTEXT, (WPARAM)(int)(index), (LPARAM)(LPCTSTR)(lpszBuffer))) + +#define ComboBox_GetItemData(hwndCtl, index) ((LRESULT)(ULONG_PTR)SNDMSG((hwndCtl), CB_GETITEMDATA, (WPARAM)(int)(index), 0L)) +#define ComboBox_SetItemData(hwndCtl, index, data) ((int)(DWORD)SNDMSG((hwndCtl), CB_SETITEMDATA, (WPARAM)(int)(index), (LPARAM)(data))) + +#define ComboBox_FindString(hwndCtl, indexStart, lpszFind) ((int)(DWORD)SNDMSG((hwndCtl), CB_FINDSTRING, (WPARAM)(int)(indexStart), (LPARAM)(LPCTSTR)(lpszFind))) +#define ComboBox_FindItemData(hwndCtl, indexStart, data) ((int)(DWORD)SNDMSG((hwndCtl), CB_FINDSTRING, (WPARAM)(int)(indexStart), (LPARAM)(data))) + +#define ComboBox_GetCurSel(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), CB_GETCURSEL, 0L, 0L)) +#define ComboBox_SetCurSel(hwndCtl, index) ((int)(DWORD)SNDMSG((hwndCtl), CB_SETCURSEL, (WPARAM)(int)(index), 0L)) + +#define ComboBox_SelectString(hwndCtl, indexStart, lpszSelect) ((int)(DWORD)SNDMSG((hwndCtl), CB_SELECTSTRING, (WPARAM)(int)(indexStart), (LPARAM)(LPCTSTR)(lpszSelect))) +#define ComboBox_SelectItemData(hwndCtl, indexStart, data) ((int)(DWORD)SNDMSG((hwndCtl), CB_SELECTSTRING, (WPARAM)(int)(indexStart), (LPARAM)(data))) + +#define ComboBox_Dir(hwndCtl, attrs, lpszFileSpec) ((int)(DWORD)SNDMSG((hwndCtl), CB_DIR, (WPARAM)(UINT)(attrs), (LPARAM)(LPCTSTR)(lpszFileSpec))) + +#define ComboBox_ShowDropdown(hwndCtl, fShow) ((BOOL)(DWORD)SNDMSG((hwndCtl), CB_SHOWDROPDOWN, (WPARAM)(BOOL)(fShow), 0L)) + +#if (WINVER >= 0x030a) +#define ComboBox_FindStringExact(hwndCtl, indexStart, lpszFind) ((int)(DWORD)SNDMSG((hwndCtl), CB_FINDSTRINGEXACT, (WPARAM)(int)(indexStart), (LPARAM)(LPCTSTR)(lpszFind))) + +#define ComboBox_GetDroppedState(hwndCtl) ((BOOL)(DWORD)SNDMSG((hwndCtl), CB_GETDROPPEDSTATE, 0L, 0L)) +#define ComboBox_GetDroppedControlRect(hwndCtl, lprc) ((void)SNDMSG((hwndCtl), CB_GETDROPPEDCONTROLRECT, 0L, (LPARAM)(RECT *)(lprc))) + +#define ComboBox_GetItemHeight(hwndCtl) ((int)(DWORD)SNDMSG((hwndCtl), CB_GETITEMHEIGHT, 0L, 0L)) +#define ComboBox_SetItemHeight(hwndCtl, index, cyItem) ((int)(DWORD)SNDMSG((hwndCtl), CB_SETITEMHEIGHT, (WPARAM)(int)(index), (LPARAM)(int)cyItem)) + +#define ComboBox_GetExtendedUI(hwndCtl) ((UINT)(DWORD)SNDMSG((hwndCtl), CB_GETEXTENDEDUI, 0L, 0L)) +#define ComboBox_SetExtendedUI(hwndCtl, flags) ((int)(DWORD)SNDMSG((hwndCtl), CB_SETEXTENDEDUI, (WPARAM)(UINT)(flags), 0L)) +#endif /* WINVER >= 0x030a */ + +/****** Alternate porting layer macros ****************************************/ + +/* USER MESSAGES: */ + +#define GET_WPARAM(wp, lp) (wp) +#define GET_LPARAM(wp, lp) (lp) + +#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) +#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) + +#define GET_WM_ACTIVATE_STATE(wp, lp) LOWORD(wp) +#define GET_WM_ACTIVATE_FMINIMIZED(wp, lp) (BOOL)HIWORD(wp) +#define GET_WM_ACTIVATE_HWND(wp, lp) (HWND)(lp) +#define GET_WM_ACTIVATE_MPS(s, fmin, hwnd) \ + (WPARAM)MAKELONG((s), (fmin)), (LPARAM)(hwnd) + +#define GET_WM_CHARTOITEM_CHAR(wp, lp) (TCHAR)LOWORD(wp) +#define GET_WM_CHARTOITEM_POS(wp, lp) HIWORD(wp) +#define GET_WM_CHARTOITEM_HWND(wp, lp) (HWND)(lp) +#define GET_WM_CHARTOITEM_MPS(ch, pos, hwnd) \ + (WPARAM)MAKELONG((pos), (ch)), (LPARAM)(hwnd) + +#define GET_WM_COMMAND_ID(wp, lp) LOWORD(wp) +#define GET_WM_COMMAND_HWND(wp, lp) (HWND)(lp) +#define GET_WM_COMMAND_CMD(wp, lp) HIWORD(wp) +#define GET_WM_COMMAND_MPS(id, hwnd, cmd) \ + (WPARAM)MAKELONG(id, cmd), (LPARAM)(hwnd) + +#define WM_CTLCOLOR 0x0019 + +#define GET_WM_CTLCOLOR_HDC(wp, lp, msg) (HDC)(wp) +#define GET_WM_CTLCOLOR_HWND(wp, lp, msg) (HWND)(lp) +#define GET_WM_CTLCOLOR_TYPE(wp, lp, msg) (WORD)(msg - WM_CTLCOLORMSGBOX) +#define GET_WM_CTLCOLOR_MSG(type) (WORD)(WM_CTLCOLORMSGBOX+(type)) +#define GET_WM_CTLCOLOR_MPS(hdc, hwnd, type) \ + (WPARAM)(hdc), (LPARAM)(hwnd) + + +#define GET_WM_MENUSELECT_CMD(wp, lp) LOWORD(wp) +#define GET_WM_MENUSELECT_FLAGS(wp, lp) (UINT)(int)(short)HIWORD(wp) +#define GET_WM_MENUSELECT_HMENU(wp, lp) (HMENU)(lp) +#define GET_WM_MENUSELECT_MPS(cmd, f, hmenu) \ + (WPARAM)MAKELONG(cmd, f), (LPARAM)(hmenu) + +/* Note: the following are for interpreting MDIclient to MDI child messages. */ +#define GET_WM_MDIACTIVATE_FACTIVATE(hwnd, wp, lp) (lp == (LPARAM)hwnd) +#define GET_WM_MDIACTIVATE_HWNDDEACT(wp, lp) (HWND)(wp) +#define GET_WM_MDIACTIVATE_HWNDACTIVATE(wp, lp) (HWND)(lp) +/* Note: the following is for sending to the MDI client window. */ +#define GET_WM_MDIACTIVATE_MPS(f, hwndD, hwndA)\ + (WPARAM)(hwndA), 0 + +#define GET_WM_MDISETMENU_MPS(hmenuF, hmenuW) (WPARAM)hmenuF, (LPARAM)hmenuW + +#define GET_WM_MENUCHAR_CHAR(wp, lp) (TCHAR)LOWORD(wp) +#define GET_WM_MENUCHAR_HMENU(wp, lp) (HMENU)(lp) +#define GET_WM_MENUCHAR_FMENU(wp, lp) (BOOL)HIWORD(wp) +#define GET_WM_MENUCHAR_MPS(ch, hmenu, f) \ + (WPARAM)MAKELONG(ch, f), (LPARAM)(hmenu) + +#define GET_WM_PARENTNOTIFY_MSG(wp, lp) LOWORD(wp) +#define GET_WM_PARENTNOTIFY_ID(wp, lp) HIWORD(wp) +#define GET_WM_PARENTNOTIFY_HWNDCHILD(wp, lp) (HWND)(lp) +#define GET_WM_PARENTNOTIFY_X(wp, lp) (int)(short)LOWORD(lp) +#define GET_WM_PARENTNOTIFY_Y(wp, lp) (int)(short)HIWORD(lp) +#define GET_WM_PARENTNOTIFY_MPS(msg, id, hwnd) \ + (WPARAM)MAKELONG(id, msg), (LPARAM)(hwnd) +#define GET_WM_PARENTNOTIFY2_MPS(msg, x, y) \ + (WPARAM)MAKELONG(0, msg), MAKELONG(x, y) + +#define GET_WM_VKEYTOITEM_CODE(wp, lp) (int)(short)LOWORD(wp) +#define GET_WM_VKEYTOITEM_ITEM(wp, lp) HIWORD(wp) +#define GET_WM_VKEYTOITEM_HWND(wp, lp) (HWND)(lp) +#define GET_WM_VKEYTOITEM_MPS(code, item, hwnd) \ + (WPARAM)MAKELONG(item, code), (LPARAM)(hwnd) + +#define GET_EM_SETSEL_START(wp, lp) (INT)(wp) +#define GET_EM_SETSEL_END(wp, lp) (lp) +#define GET_EM_SETSEL_MPS(iStart, iEnd) \ + (WPARAM)(iStart), (LPARAM)(iEnd) + +#define GET_EM_LINESCROLL_MPS(vert, horz) \ + (WPARAM)horz, (LPARAM)vert + +#define GET_WM_CHANGECBCHAIN_HWNDNEXT(wp, lp) (HWND)(lp) + +#define GET_WM_HSCROLL_CODE(wp, lp) LOWORD(wp) +#define GET_WM_HSCROLL_POS(wp, lp) HIWORD(wp) +#define GET_WM_HSCROLL_HWND(wp, lp) (HWND)(lp) +#define GET_WM_HSCROLL_MPS(code, pos, hwnd) \ + (WPARAM)MAKELONG(code, pos), (LPARAM)(hwnd) + +#define GET_WM_VSCROLL_CODE(wp, lp) LOWORD(wp) +#define GET_WM_VSCROLL_POS(wp, lp) HIWORD(wp) +#define GET_WM_VSCROLL_HWND(wp, lp) (HWND)(lp) +#define GET_WM_VSCROLL_MPS(code, pos, hwnd) \ + (WPARAM)MAKELONG(code, pos), (LPARAM)(hwnd) + +/****** C runtime porting macros ****************************************/ + +#define _ncalloc calloc +#define _nexpand _expand +#define _ffree free +#define _fmalloc malloc +#define _fmemccpy _memccpy +#define _fmemchr memchr +#define _fmemcmp memcmp +#define _fmemcpy memcpy +#define _fmemicmp _memicmp +#define _fmemmove memmove +#define _fmemset memset +#define _fmsize _msize +#define _frealloc realloc +#define _fstrcat strcat +#define _fstrchr strchr +#define _fstrcmp strcmp +#define _fstrcpy strcpy +#define _fstrcspn strcspn +#define _fstrdup _strdup +#define _fstricmp _stricmp +#define _fstrlen strlen +#define _fstrlwr _strlwr +#define _fstrncat strncat +#define _fstrncmp strncmp +#define _fstrncpy strncpy +#define _fstrnicmp _strnicmp +#define _fstrnset _strnset +#define _fstrpbrk strpbrk +#define _fstrrchr strrchr +#define _fstrrev _strrev +#define _fstrset _strset +#define _fstrspn strspn +#define _fstrstr strstr +#define _fstrtok strtok +#define _fstrupr _strupr +#define _nfree free +#define _nmalloc malloc +#define _nmsize _msize +#define _nrealloc realloc +#define _nstrdup _strdup +#define hmemcpy MoveMemory + +#ifndef DECLARE_HANDLE32 +#define DECLARE_HANDLE32 DECLARE_HANDLE +#endif + +#ifdef __cplusplus +} /* End of extern "C" { */ +#endif /* __cplusplus */ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* !_INC_WINDOWSX */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winerror.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winerror.h new file mode 100644 index 0000000000000000000000000000000000000000..9356de0cbed1e09c5ddc7bb1b06cb2c1ef0647b3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winerror.h @@ -0,0 +1,66993 @@ +/************************************************************************ +* * +* winerror.h -- error code definitions for the Win32 API functions * +* * +* Copyright (c) Microsoft Corp. All rights reserved. * +* * +************************************************************************/ + +#ifndef _WINERROR_ +#define _WINERROR_ + +#if defined (_MSC_VER) && (_MSC_VER >= 1020) && !defined(__midl) +#pragma once +#endif + +#ifndef FORCEINLINE +#if (_MSC_VER >= 1200) +#define FORCEINLINE __forceinline +#else +#define FORCEINLINE __inline +#endif +#endif + +#include + +// +// Note: There is a slightly modified layout for HRESULT values below, +// after the heading "COM Error Codes". +// +// Search for "**** Available SYSTEM error codes ****" to find where to +// insert new error codes +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---+-+-+-----------------------+-------------------------------+ +// |Sev|C|R| Facility | Code | +// +---+-+-+-----------------------+-------------------------------+ +// +// where +// +// Sev - is the severity code +// +// 00 - Success +// 01 - Informational +// 10 - Warning +// 11 - Error +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_NULL 0 +#define FACILITY_RPC 1 +#define FACILITY_DISPATCH 2 +#define FACILITY_STORAGE 3 +#define FACILITY_ITF 4 +#define FACILITY_WIN32 7 +#define FACILITY_WINDOWS 8 +#define FACILITY_SSPI 9 +#define FACILITY_SECURITY 9 +#define FACILITY_CONTROL 10 +#define FACILITY_CERT 11 +#define FACILITY_INTERNET 12 +#define FACILITY_MEDIASERVER 13 +#define FACILITY_MSMQ 14 +#define FACILITY_SETUPAPI 15 +#define FACILITY_SCARD 16 +#define FACILITY_COMPLUS 17 +#define FACILITY_AAF 18 +#define FACILITY_URT 19 +#define FACILITY_ACS 20 +#define FACILITY_DPLAY 21 +#define FACILITY_UMI 22 +#define FACILITY_SXS 23 +#define FACILITY_WINDOWS_CE 24 +#define FACILITY_HTTP 25 +#define FACILITY_USERMODE_COMMONLOG 26 +#define FACILITY_WER 27 +#define FACILITY_USERMODE_FILTER_MANAGER 31 +#define FACILITY_BACKGROUNDCOPY 32 +#define FACILITY_CONFIGURATION 33 +#define FACILITY_WIA 33 +#define FACILITY_STATE_MANAGEMENT 34 +#define FACILITY_METADIRECTORY 35 +#define FACILITY_WINDOWSUPDATE 36 +#define FACILITY_DIRECTORYSERVICE 37 +#define FACILITY_GRAPHICS 38 +#define FACILITY_SHELL 39 +#define FACILITY_NAP 39 +#define FACILITY_TPM_SERVICES 40 +#define FACILITY_TPM_SOFTWARE 41 +#define FACILITY_UI 42 +#define FACILITY_XAML 43 +#define FACILITY_ACTION_QUEUE 44 +#define FACILITY_PLA 48 +#define FACILITY_WINDOWS_SETUP 48 +#define FACILITY_FVE 49 +#define FACILITY_FWP 50 +#define FACILITY_WINRM 51 +#define FACILITY_NDIS 52 +#define FACILITY_USERMODE_HYPERVISOR 53 +#define FACILITY_CMI 54 +#define FACILITY_USERMODE_VIRTUALIZATION 55 +#define FACILITY_USERMODE_VOLMGR 56 +#define FACILITY_BCD 57 +#define FACILITY_USERMODE_VHD 58 +#define FACILITY_USERMODE_HNS 59 +#define FACILITY_SDIAG 60 +#define FACILITY_WEBSERVICES 61 +#define FACILITY_WINPE 61 +#define FACILITY_WPN 62 +#define FACILITY_WINDOWS_STORE 63 +#define FACILITY_INPUT 64 +#define FACILITY_QUIC 65 +#define FACILITY_EAP 66 +#define FACILITY_IORING 70 +#define FACILITY_WINDOWS_DEFENDER 80 +#define FACILITY_OPC 81 +#define FACILITY_XPS 82 +#define FACILITY_MBN 84 +#define FACILITY_POWERSHELL 84 +#define FACILITY_RAS 83 +#define FACILITY_P2P_INT 98 +#define FACILITY_P2P 99 +#define FACILITY_DAF 100 +#define FACILITY_BLUETOOTH_ATT 101 +#define FACILITY_AUDIO 102 +#define FACILITY_STATEREPOSITORY 103 +#define FACILITY_VISUALCPP 109 +#define FACILITY_SCRIPT 112 +#define FACILITY_PARSE 113 +#define FACILITY_BLB 120 +#define FACILITY_BLB_CLI 121 +#define FACILITY_WSBAPP 122 +#define FACILITY_BLBUI 128 +#define FACILITY_USN 129 +#define FACILITY_USERMODE_VOLSNAP 130 +#define FACILITY_TIERING 131 +#define FACILITY_WSB_ONLINE 133 +#define FACILITY_ONLINE_ID 134 +#define FACILITY_DEVICE_UPDATE_AGENT 135 +#define FACILITY_DRVSERVICING 136 +#define FACILITY_DLS 153 +#define FACILITY_DELIVERY_OPTIMIZATION 208 +#define FACILITY_USERMODE_SPACES 231 +#define FACILITY_USER_MODE_SECURITY_CORE 232 +#define FACILITY_USERMODE_LICENSING 234 +#define FACILITY_SOS 160 +#define FACILITY_OCP_UPDATE_AGENT 173 +#define FACILITY_DEBUGGERS 176 +#define FACILITY_SPP 256 +#define FACILITY_RESTORE 256 +#define FACILITY_DMSERVER 256 +#define FACILITY_DEPLOYMENT_SERVICES_SERVER 257 +#define FACILITY_DEPLOYMENT_SERVICES_IMAGING 258 +#define FACILITY_DEPLOYMENT_SERVICES_MANAGEMENT 259 +#define FACILITY_DEPLOYMENT_SERVICES_UTIL 260 +#define FACILITY_DEPLOYMENT_SERVICES_BINLSVC 261 +#define FACILITY_DEPLOYMENT_SERVICES_PXE 263 +#define FACILITY_DEPLOYMENT_SERVICES_TFTP 264 +#define FACILITY_DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT 272 +#define FACILITY_DEPLOYMENT_SERVICES_DRIVER_PROVISIONING 278 +#define FACILITY_DEPLOYMENT_SERVICES_MULTICAST_SERVER 289 +#define FACILITY_DEPLOYMENT_SERVICES_MULTICAST_CLIENT 290 +#define FACILITY_DEPLOYMENT_SERVICES_CONTENT_PROVIDER 293 +#define FACILITY_HSP_SERVICES 296 +#define FACILITY_HSP_SOFTWARE 297 +#define FACILITY_LINGUISTIC_SERVICES 305 +#define FACILITY_AUDIOSTREAMING 1094 +#define FACILITY_TTD 1490 +#define FACILITY_ACCELERATOR 1536 +#define FACILITY_WMAAECMA 1996 +#define FACILITY_DIRECTMUSIC 2168 +#define FACILITY_DIRECT3D10 2169 +#define FACILITY_DXGI 2170 +#define FACILITY_DXGI_DDI 2171 +#define FACILITY_DIRECT3D11 2172 +#define FACILITY_DIRECT3D11_DEBUG 2173 +#define FACILITY_DIRECT3D12 2174 +#define FACILITY_DIRECT3D12_DEBUG 2175 +#define FACILITY_DXCORE 2176 +#define FACILITY_PRESENTATION 2177 +#define FACILITY_LEAP 2184 +#define FACILITY_AUDCLNT 2185 +#define FACILITY_WINCODEC_DWRITE_DWM 2200 +#define FACILITY_WINML 2192 +#define FACILITY_DIRECT2D 2201 +#define FACILITY_DEFRAG 2304 +#define FACILITY_USERMODE_SDBUS 2305 +#define FACILITY_JSCRIPT 2306 +#define FACILITY_PIDGENX 2561 +#define FACILITY_EAS 85 +#define FACILITY_WEB 885 +#define FACILITY_WEB_SOCKET 886 +#define FACILITY_MOBILE 1793 +#define FACILITY_SQLITE 1967 +#define FACILITY_SERVICE_FABRIC 1968 +#define FACILITY_UTC 1989 +#define FACILITY_WEP 2049 +#define FACILITY_SYNCENGINE 2050 +#define FACILITY_XBOX 2339 +#define FACILITY_GAME 2340 +#define FACILITY_USERMODE_UNIONFS 2341 +#define FACILITY_USERMODE_PRM 2342 +#define FACILITY_USERMODE_WIN_ACCEL 2343 +#define FACILITY_PPF 2344 +#define FACILITY_PIX 2748 + + +// +// Define the severity codes +// + + +// +// MessageId: ERROR_SUCCESS +// +// MessageText: +// +// The operation completed successfully. +// +#define ERROR_SUCCESS 0L + +#define NO_ERROR 0L // dderror +#define SEC_E_OK ((HRESULT)0x00000000L) + +// +// MessageId: ERROR_INVALID_FUNCTION +// +// MessageText: +// +// Incorrect function. +// +#define ERROR_INVALID_FUNCTION 1L // dderror + +// +// MessageId: ERROR_FILE_NOT_FOUND +// +// MessageText: +// +// The system cannot find the file specified. +// +#define ERROR_FILE_NOT_FOUND 2L + +// +// MessageId: ERROR_PATH_NOT_FOUND +// +// MessageText: +// +// The system cannot find the path specified. +// +#define ERROR_PATH_NOT_FOUND 3L + +// +// MessageId: ERROR_TOO_MANY_OPEN_FILES +// +// MessageText: +// +// The system cannot open the file. +// +#define ERROR_TOO_MANY_OPEN_FILES 4L + +// +// MessageId: ERROR_ACCESS_DENIED +// +// MessageText: +// +// Access is denied. +// +#define ERROR_ACCESS_DENIED 5L + +// +// MessageId: ERROR_INVALID_HANDLE +// +// MessageText: +// +// The handle is invalid. +// +#define ERROR_INVALID_HANDLE 6L + +// +// MessageId: ERROR_ARENA_TRASHED +// +// MessageText: +// +// The storage control blocks were destroyed. +// +#define ERROR_ARENA_TRASHED 7L + +// +// MessageId: ERROR_NOT_ENOUGH_MEMORY +// +// MessageText: +// +// Not enough memory resources are available to process this command. +// +#define ERROR_NOT_ENOUGH_MEMORY 8L // dderror + +// +// MessageId: ERROR_INVALID_BLOCK +// +// MessageText: +// +// The storage control block address is invalid. +// +#define ERROR_INVALID_BLOCK 9L + +// +// MessageId: ERROR_BAD_ENVIRONMENT +// +// MessageText: +// +// The environment is incorrect. +// +#define ERROR_BAD_ENVIRONMENT 10L + +// +// MessageId: ERROR_BAD_FORMAT +// +// MessageText: +// +// An attempt was made to load a program with an incorrect format. +// +#define ERROR_BAD_FORMAT 11L + +// +// MessageId: ERROR_INVALID_ACCESS +// +// MessageText: +// +// The access code is invalid. +// +#define ERROR_INVALID_ACCESS 12L + +// +// MessageId: ERROR_INVALID_DATA +// +// MessageText: +// +// The data is invalid. +// +#define ERROR_INVALID_DATA 13L + +// +// MessageId: ERROR_OUTOFMEMORY +// +// MessageText: +// +// Not enough memory resources are available to complete this operation. +// +#define ERROR_OUTOFMEMORY 14L + +// +// MessageId: ERROR_INVALID_DRIVE +// +// MessageText: +// +// The system cannot find the drive specified. +// +#define ERROR_INVALID_DRIVE 15L + +// +// MessageId: ERROR_CURRENT_DIRECTORY +// +// MessageText: +// +// The directory cannot be removed. +// +#define ERROR_CURRENT_DIRECTORY 16L + +// +// MessageId: ERROR_NOT_SAME_DEVICE +// +// MessageText: +// +// The system cannot move the file to a different disk drive. +// +#define ERROR_NOT_SAME_DEVICE 17L + +// +// MessageId: ERROR_NO_MORE_FILES +// +// MessageText: +// +// There are no more files. +// +#define ERROR_NO_MORE_FILES 18L + +// +// MessageId: ERROR_WRITE_PROTECT +// +// MessageText: +// +// The media is write protected. +// +#define ERROR_WRITE_PROTECT 19L + +// +// MessageId: ERROR_BAD_UNIT +// +// MessageText: +// +// The system cannot find the device specified. +// +#define ERROR_BAD_UNIT 20L + +// +// MessageId: ERROR_NOT_READY +// +// MessageText: +// +// The device is not ready. +// +#define ERROR_NOT_READY 21L + +// +// MessageId: ERROR_BAD_COMMAND +// +// MessageText: +// +// The device does not recognize the command. +// +#define ERROR_BAD_COMMAND 22L + +// +// MessageId: ERROR_CRC +// +// MessageText: +// +// Data error (cyclic redundancy check). +// +#define ERROR_CRC 23L + +// +// MessageId: ERROR_BAD_LENGTH +// +// MessageText: +// +// The program issued a command but the command length is incorrect. +// +#define ERROR_BAD_LENGTH 24L + +// +// MessageId: ERROR_SEEK +// +// MessageText: +// +// The drive cannot locate a specific area or track on the disk. +// +#define ERROR_SEEK 25L + +// +// MessageId: ERROR_NOT_DOS_DISK +// +// MessageText: +// +// The specified disk or diskette cannot be accessed. +// +#define ERROR_NOT_DOS_DISK 26L + +// +// MessageId: ERROR_SECTOR_NOT_FOUND +// +// MessageText: +// +// The drive cannot find the sector requested. +// +#define ERROR_SECTOR_NOT_FOUND 27L + +// +// MessageId: ERROR_OUT_OF_PAPER +// +// MessageText: +// +// The printer is out of paper. +// +#define ERROR_OUT_OF_PAPER 28L + +// +// MessageId: ERROR_WRITE_FAULT +// +// MessageText: +// +// The system cannot write to the specified device. +// +#define ERROR_WRITE_FAULT 29L + +// +// MessageId: ERROR_READ_FAULT +// +// MessageText: +// +// The system cannot read from the specified device. +// +#define ERROR_READ_FAULT 30L + +// +// MessageId: ERROR_GEN_FAILURE +// +// MessageText: +// +// A device attached to the system is not functioning. +// +#define ERROR_GEN_FAILURE 31L + +// +// MessageId: ERROR_SHARING_VIOLATION +// +// MessageText: +// +// The process cannot access the file because it is being used by another process. +// +#define ERROR_SHARING_VIOLATION 32L + +// +// MessageId: ERROR_LOCK_VIOLATION +// +// MessageText: +// +// The process cannot access the file because another process has locked a portion of the file. +// +#define ERROR_LOCK_VIOLATION 33L + +// +// MessageId: ERROR_WRONG_DISK +// +// MessageText: +// +// The wrong diskette is in the drive. +// Insert %2 (Volume Serial Number: %3) into drive %1. +// +#define ERROR_WRONG_DISK 34L + +// +// MessageId: ERROR_SHARING_BUFFER_EXCEEDED +// +// MessageText: +// +// Too many files opened for sharing. +// +#define ERROR_SHARING_BUFFER_EXCEEDED 36L + +// +// MessageId: ERROR_HANDLE_EOF +// +// MessageText: +// +// Reached the end of the file. +// +#define ERROR_HANDLE_EOF 38L + +// +// MessageId: ERROR_HANDLE_DISK_FULL +// +// MessageText: +// +// The disk is full. +// +#define ERROR_HANDLE_DISK_FULL 39L + +// +// MessageId: ERROR_NOT_SUPPORTED +// +// MessageText: +// +// The request is not supported. +// +#define ERROR_NOT_SUPPORTED 50L + +// +// MessageId: ERROR_REM_NOT_LIST +// +// MessageText: +// +// Windows cannot find the network path. Verify that the network path is correct and the destination computer is not busy or turned off. If Windows still cannot find the network path, contact your network administrator. +// +#define ERROR_REM_NOT_LIST 51L + +// +// MessageId: ERROR_DUP_NAME +// +// MessageText: +// +// You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name. +// +#define ERROR_DUP_NAME 52L + +// +// MessageId: ERROR_BAD_NETPATH +// +// MessageText: +// +// The network path was not found. +// +#define ERROR_BAD_NETPATH 53L + +// +// MessageId: ERROR_NETWORK_BUSY +// +// MessageText: +// +// The network is busy. +// +#define ERROR_NETWORK_BUSY 54L + +// +// MessageId: ERROR_DEV_NOT_EXIST +// +// MessageText: +// +// The specified network resource or device is no longer available. +// +#define ERROR_DEV_NOT_EXIST 55L // dderror + +// +// MessageId: ERROR_TOO_MANY_CMDS +// +// MessageText: +// +// The network BIOS command limit has been reached. +// +#define ERROR_TOO_MANY_CMDS 56L + +// +// MessageId: ERROR_ADAP_HDW_ERR +// +// MessageText: +// +// A network adapter hardware error occurred. +// +#define ERROR_ADAP_HDW_ERR 57L + +// +// MessageId: ERROR_BAD_NET_RESP +// +// MessageText: +// +// The specified server cannot perform the requested operation. +// +#define ERROR_BAD_NET_RESP 58L + +// +// MessageId: ERROR_UNEXP_NET_ERR +// +// MessageText: +// +// An unexpected network error occurred. +// +#define ERROR_UNEXP_NET_ERR 59L + +// +// MessageId: ERROR_BAD_REM_ADAP +// +// MessageText: +// +// The remote adapter is not compatible. +// +#define ERROR_BAD_REM_ADAP 60L + +// +// MessageId: ERROR_PRINTQ_FULL +// +// MessageText: +// +// The printer queue is full. +// +#define ERROR_PRINTQ_FULL 61L + +// +// MessageId: ERROR_NO_SPOOL_SPACE +// +// MessageText: +// +// Space to store the file waiting to be printed is not available on the server. +// +#define ERROR_NO_SPOOL_SPACE 62L + +// +// MessageId: ERROR_PRINT_CANCELLED +// +// MessageText: +// +// Your file waiting to be printed was deleted. +// +#define ERROR_PRINT_CANCELLED 63L + +// +// MessageId: ERROR_NETNAME_DELETED +// +// MessageText: +// +// The specified network name is no longer available. +// +#define ERROR_NETNAME_DELETED 64L + +// +// MessageId: ERROR_NETWORK_ACCESS_DENIED +// +// MessageText: +// +// Network access is denied. +// +#define ERROR_NETWORK_ACCESS_DENIED 65L + +// +// MessageId: ERROR_BAD_DEV_TYPE +// +// MessageText: +// +// The network resource type is not correct. +// +#define ERROR_BAD_DEV_TYPE 66L + +// +// MessageId: ERROR_BAD_NET_NAME +// +// MessageText: +// +// The network name cannot be found. +// +#define ERROR_BAD_NET_NAME 67L + +// +// MessageId: ERROR_TOO_MANY_NAMES +// +// MessageText: +// +// The name limit for the local computer network adapter card was exceeded. +// +#define ERROR_TOO_MANY_NAMES 68L + +// +// MessageId: ERROR_TOO_MANY_SESS +// +// MessageText: +// +// The network BIOS session limit was exceeded. +// +#define ERROR_TOO_MANY_SESS 69L + +// +// MessageId: ERROR_SHARING_PAUSED +// +// MessageText: +// +// The remote server has been paused or is in the process of being started. +// +#define ERROR_SHARING_PAUSED 70L + +// +// MessageId: ERROR_REQ_NOT_ACCEP +// +// MessageText: +// +// No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept. +// +#define ERROR_REQ_NOT_ACCEP 71L + +// +// MessageId: ERROR_REDIR_PAUSED +// +// MessageText: +// +// The specified printer or disk device has been paused. +// +#define ERROR_REDIR_PAUSED 72L + +// +// MessageId: ERROR_FILE_EXISTS +// +// MessageText: +// +// The file exists. +// +#define ERROR_FILE_EXISTS 80L + +// +// MessageId: ERROR_CANNOT_MAKE +// +// MessageText: +// +// The directory or file cannot be created. +// +#define ERROR_CANNOT_MAKE 82L + +// +// MessageId: ERROR_FAIL_I24 +// +// MessageText: +// +// Fail on INT 24. +// +#define ERROR_FAIL_I24 83L + +// +// MessageId: ERROR_OUT_OF_STRUCTURES +// +// MessageText: +// +// Storage to process this request is not available. +// +#define ERROR_OUT_OF_STRUCTURES 84L + +// +// MessageId: ERROR_ALREADY_ASSIGNED +// +// MessageText: +// +// The local device name is already in use. +// +#define ERROR_ALREADY_ASSIGNED 85L + +// +// MessageId: ERROR_INVALID_PASSWORD +// +// MessageText: +// +// The specified network password is not correct. +// +#define ERROR_INVALID_PASSWORD 86L + +// +// MessageId: ERROR_INVALID_PARAMETER +// +// MessageText: +// +// The parameter is incorrect. +// +#define ERROR_INVALID_PARAMETER 87L // dderror + +// +// MessageId: ERROR_NET_WRITE_FAULT +// +// MessageText: +// +// A write fault occurred on the network. +// +#define ERROR_NET_WRITE_FAULT 88L + +// +// MessageId: ERROR_NO_PROC_SLOTS +// +// MessageText: +// +// The system cannot start another process at this time. +// +#define ERROR_NO_PROC_SLOTS 89L + +// +// MessageId: ERROR_TOO_MANY_SEMAPHORES +// +// MessageText: +// +// Cannot create another system semaphore. +// +#define ERROR_TOO_MANY_SEMAPHORES 100L + +// +// MessageId: ERROR_EXCL_SEM_ALREADY_OWNED +// +// MessageText: +// +// The exclusive semaphore is owned by another process. +// +#define ERROR_EXCL_SEM_ALREADY_OWNED 101L + +// +// MessageId: ERROR_SEM_IS_SET +// +// MessageText: +// +// The semaphore is set and cannot be closed. +// +#define ERROR_SEM_IS_SET 102L + +// +// MessageId: ERROR_TOO_MANY_SEM_REQUESTS +// +// MessageText: +// +// The semaphore cannot be set again. +// +#define ERROR_TOO_MANY_SEM_REQUESTS 103L + +// +// MessageId: ERROR_INVALID_AT_INTERRUPT_TIME +// +// MessageText: +// +// Cannot request exclusive semaphores at interrupt time. +// +#define ERROR_INVALID_AT_INTERRUPT_TIME 104L + +// +// MessageId: ERROR_SEM_OWNER_DIED +// +// MessageText: +// +// The previous ownership of this semaphore has ended. +// +#define ERROR_SEM_OWNER_DIED 105L + +// +// MessageId: ERROR_SEM_USER_LIMIT +// +// MessageText: +// +// Insert the diskette for drive %1. +// +#define ERROR_SEM_USER_LIMIT 106L + +// +// MessageId: ERROR_DISK_CHANGE +// +// MessageText: +// +// The program stopped because an alternate diskette was not inserted. +// +#define ERROR_DISK_CHANGE 107L + +// +// MessageId: ERROR_DRIVE_LOCKED +// +// MessageText: +// +// The disk is in use or locked by another process. +// +#define ERROR_DRIVE_LOCKED 108L + +// +// MessageId: ERROR_BROKEN_PIPE +// +// MessageText: +// +// The pipe has been ended. +// +#define ERROR_BROKEN_PIPE 109L + +// +// MessageId: ERROR_OPEN_FAILED +// +// MessageText: +// +// The system cannot open the device or file specified. +// +#define ERROR_OPEN_FAILED 110L + +// +// MessageId: ERROR_BUFFER_OVERFLOW +// +// MessageText: +// +// The file name is too long. +// +#define ERROR_BUFFER_OVERFLOW 111L + +// +// MessageId: ERROR_DISK_FULL +// +// MessageText: +// +// There is not enough space on the disk. +// +#define ERROR_DISK_FULL 112L + +// +// MessageId: ERROR_NO_MORE_SEARCH_HANDLES +// +// MessageText: +// +// No more internal file identifiers available. +// +#define ERROR_NO_MORE_SEARCH_HANDLES 113L + +// +// MessageId: ERROR_INVALID_TARGET_HANDLE +// +// MessageText: +// +// The target internal file identifier is incorrect. +// +#define ERROR_INVALID_TARGET_HANDLE 114L + +// +// MessageId: ERROR_INVALID_CATEGORY +// +// MessageText: +// +// The IOCTL call made by the application program is not correct. +// +#define ERROR_INVALID_CATEGORY 117L + +// +// MessageId: ERROR_INVALID_VERIFY_SWITCH +// +// MessageText: +// +// The verify-on-write switch parameter value is not correct. +// +#define ERROR_INVALID_VERIFY_SWITCH 118L + +// +// MessageId: ERROR_BAD_DRIVER_LEVEL +// +// MessageText: +// +// The system does not support the command requested. +// +#define ERROR_BAD_DRIVER_LEVEL 119L + +// +// MessageId: ERROR_CALL_NOT_IMPLEMENTED +// +// MessageText: +// +// This function is not supported on this system. +// +#define ERROR_CALL_NOT_IMPLEMENTED 120L + +// +// MessageId: ERROR_SEM_TIMEOUT +// +// MessageText: +// +// The semaphore timeout period has expired. +// +#define ERROR_SEM_TIMEOUT 121L + +// +// MessageId: ERROR_INSUFFICIENT_BUFFER +// +// MessageText: +// +// The data area passed to a system call is too small. +// +#define ERROR_INSUFFICIENT_BUFFER 122L // dderror + +// +// MessageId: ERROR_INVALID_NAME +// +// MessageText: +// +// The filename, directory name, or volume label syntax is incorrect. +// +#define ERROR_INVALID_NAME 123L // dderror + +// +// MessageId: ERROR_INVALID_LEVEL +// +// MessageText: +// +// The system call level is not correct. +// +#define ERROR_INVALID_LEVEL 124L + +// +// MessageId: ERROR_NO_VOLUME_LABEL +// +// MessageText: +// +// The disk has no volume label. +// +#define ERROR_NO_VOLUME_LABEL 125L + +// +// MessageId: ERROR_MOD_NOT_FOUND +// +// MessageText: +// +// The specified module could not be found. +// +#define ERROR_MOD_NOT_FOUND 126L + +// +// MessageId: ERROR_PROC_NOT_FOUND +// +// MessageText: +// +// The specified procedure could not be found. +// +#define ERROR_PROC_NOT_FOUND 127L + +// +// MessageId: ERROR_WAIT_NO_CHILDREN +// +// MessageText: +// +// There are no child processes to wait for. +// +#define ERROR_WAIT_NO_CHILDREN 128L + +// +// MessageId: ERROR_CHILD_NOT_COMPLETE +// +// MessageText: +// +// The %1 application cannot be run in Win32 mode. +// +#define ERROR_CHILD_NOT_COMPLETE 129L + +// +// MessageId: ERROR_DIRECT_ACCESS_HANDLE +// +// MessageText: +// +// Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O. +// +#define ERROR_DIRECT_ACCESS_HANDLE 130L + +// +// MessageId: ERROR_NEGATIVE_SEEK +// +// MessageText: +// +// An attempt was made to move the file pointer before the beginning of the file. +// +#define ERROR_NEGATIVE_SEEK 131L + +// +// MessageId: ERROR_SEEK_ON_DEVICE +// +// MessageText: +// +// The file pointer cannot be set on the specified device or file. +// +#define ERROR_SEEK_ON_DEVICE 132L + +// +// MessageId: ERROR_IS_JOIN_TARGET +// +// MessageText: +// +// A JOIN or SUBST command cannot be used for a drive that contains previously joined drives. +// +#define ERROR_IS_JOIN_TARGET 133L + +// +// MessageId: ERROR_IS_JOINED +// +// MessageText: +// +// An attempt was made to use a JOIN or SUBST command on a drive that has already been joined. +// +#define ERROR_IS_JOINED 134L + +// +// MessageId: ERROR_IS_SUBSTED +// +// MessageText: +// +// An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted. +// +#define ERROR_IS_SUBSTED 135L + +// +// MessageId: ERROR_NOT_JOINED +// +// MessageText: +// +// The system tried to delete the JOIN of a drive that is not joined. +// +#define ERROR_NOT_JOINED 136L + +// +// MessageId: ERROR_NOT_SUBSTED +// +// MessageText: +// +// The system tried to delete the substitution of a drive that is not substituted. +// +#define ERROR_NOT_SUBSTED 137L + +// +// MessageId: ERROR_JOIN_TO_JOIN +// +// MessageText: +// +// The system tried to join a drive to a directory on a joined drive. +// +#define ERROR_JOIN_TO_JOIN 138L + +// +// MessageId: ERROR_SUBST_TO_SUBST +// +// MessageText: +// +// The system tried to substitute a drive to a directory on a substituted drive. +// +#define ERROR_SUBST_TO_SUBST 139L + +// +// MessageId: ERROR_JOIN_TO_SUBST +// +// MessageText: +// +// The system tried to join a drive to a directory on a substituted drive. +// +#define ERROR_JOIN_TO_SUBST 140L + +// +// MessageId: ERROR_SUBST_TO_JOIN +// +// MessageText: +// +// The system tried to SUBST a drive to a directory on a joined drive. +// +#define ERROR_SUBST_TO_JOIN 141L + +// +// MessageId: ERROR_BUSY_DRIVE +// +// MessageText: +// +// The system cannot perform a JOIN or SUBST at this time. +// +#define ERROR_BUSY_DRIVE 142L + +// +// MessageId: ERROR_SAME_DRIVE +// +// MessageText: +// +// The system cannot join or substitute a drive to or for a directory on the same drive. +// +#define ERROR_SAME_DRIVE 143L + +// +// MessageId: ERROR_DIR_NOT_ROOT +// +// MessageText: +// +// The directory is not a subdirectory of the root directory. +// +#define ERROR_DIR_NOT_ROOT 144L + +// +// MessageId: ERROR_DIR_NOT_EMPTY +// +// MessageText: +// +// The directory is not empty. +// +#define ERROR_DIR_NOT_EMPTY 145L + +// +// MessageId: ERROR_IS_SUBST_PATH +// +// MessageText: +// +// The path specified is being used in a substitute. +// +#define ERROR_IS_SUBST_PATH 146L + +// +// MessageId: ERROR_IS_JOIN_PATH +// +// MessageText: +// +// Not enough resources are available to process this command. +// +#define ERROR_IS_JOIN_PATH 147L + +// +// MessageId: ERROR_PATH_BUSY +// +// MessageText: +// +// The path specified cannot be used at this time. +// +#define ERROR_PATH_BUSY 148L + +// +// MessageId: ERROR_IS_SUBST_TARGET +// +// MessageText: +// +// An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute. +// +#define ERROR_IS_SUBST_TARGET 149L + +// +// MessageId: ERROR_SYSTEM_TRACE +// +// MessageText: +// +// System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed. +// +#define ERROR_SYSTEM_TRACE 150L + +// +// MessageId: ERROR_INVALID_EVENT_COUNT +// +// MessageText: +// +// The number of specified semaphore events for DosMuxSemWait is not correct. +// +#define ERROR_INVALID_EVENT_COUNT 151L + +// +// MessageId: ERROR_TOO_MANY_MUXWAITERS +// +// MessageText: +// +// DosMuxSemWait did not execute; too many semaphores are already set. +// +#define ERROR_TOO_MANY_MUXWAITERS 152L + +// +// MessageId: ERROR_INVALID_LIST_FORMAT +// +// MessageText: +// +// The DosMuxSemWait list is not correct. +// +#define ERROR_INVALID_LIST_FORMAT 153L + +// +// MessageId: ERROR_LABEL_TOO_LONG +// +// MessageText: +// +// The volume label you entered exceeds the label character limit of the target file system. +// +#define ERROR_LABEL_TOO_LONG 154L + +// +// MessageId: ERROR_TOO_MANY_TCBS +// +// MessageText: +// +// Cannot create another thread. +// +#define ERROR_TOO_MANY_TCBS 155L + +// +// MessageId: ERROR_SIGNAL_REFUSED +// +// MessageText: +// +// The recipient process has refused the signal. +// +#define ERROR_SIGNAL_REFUSED 156L + +// +// MessageId: ERROR_DISCARDED +// +// MessageText: +// +// The segment is already discarded and cannot be locked. +// +#define ERROR_DISCARDED 157L + +// +// MessageId: ERROR_NOT_LOCKED +// +// MessageText: +// +// The segment is already unlocked. +// +#define ERROR_NOT_LOCKED 158L + +// +// MessageId: ERROR_BAD_THREADID_ADDR +// +// MessageText: +// +// The address for the thread ID is not correct. +// +#define ERROR_BAD_THREADID_ADDR 159L + +// +// MessageId: ERROR_BAD_ARGUMENTS +// +// MessageText: +// +// One or more arguments are not correct. +// +#define ERROR_BAD_ARGUMENTS 160L + +// +// MessageId: ERROR_BAD_PATHNAME +// +// MessageText: +// +// The specified path is invalid. +// +#define ERROR_BAD_PATHNAME 161L + +// +// MessageId: ERROR_SIGNAL_PENDING +// +// MessageText: +// +// A signal is already pending. +// +#define ERROR_SIGNAL_PENDING 162L + +// +// MessageId: ERROR_MAX_THRDS_REACHED +// +// MessageText: +// +// No more threads can be created in the system. +// +#define ERROR_MAX_THRDS_REACHED 164L + +// +// MessageId: ERROR_LOCK_FAILED +// +// MessageText: +// +// Unable to lock a region of a file. +// +#define ERROR_LOCK_FAILED 167L + +// +// MessageId: ERROR_BUSY +// +// MessageText: +// +// The requested resource is in use. +// +#define ERROR_BUSY 170L // dderror + +// +// MessageId: ERROR_DEVICE_SUPPORT_IN_PROGRESS +// +// MessageText: +// +// Device's command support detection is in progress. +// +#define ERROR_DEVICE_SUPPORT_IN_PROGRESS 171L + +// +// MessageId: ERROR_CANCEL_VIOLATION +// +// MessageText: +// +// A lock request was not outstanding for the supplied cancel region. +// +#define ERROR_CANCEL_VIOLATION 173L + +// +// MessageId: ERROR_ATOMIC_LOCKS_NOT_SUPPORTED +// +// MessageText: +// +// The file system does not support atomic changes to the lock type. +// +#define ERROR_ATOMIC_LOCKS_NOT_SUPPORTED 174L + +// +// MessageId: ERROR_INVALID_SEGMENT_NUMBER +// +// MessageText: +// +// The system detected a segment number that was not correct. +// +#define ERROR_INVALID_SEGMENT_NUMBER 180L + +// +// MessageId: ERROR_INVALID_ORDINAL +// +// MessageText: +// +// The operating system cannot run %1. +// +#define ERROR_INVALID_ORDINAL 182L + +// +// MessageId: ERROR_ALREADY_EXISTS +// +// MessageText: +// +// Cannot create a file when that file already exists. +// +#define ERROR_ALREADY_EXISTS 183L + +// +// MessageId: ERROR_INVALID_FLAG_NUMBER +// +// MessageText: +// +// The flag passed is not correct. +// +#define ERROR_INVALID_FLAG_NUMBER 186L + +// +// MessageId: ERROR_SEM_NOT_FOUND +// +// MessageText: +// +// The specified system semaphore name was not found. +// +#define ERROR_SEM_NOT_FOUND 187L + +// +// MessageId: ERROR_INVALID_STARTING_CODESEG +// +// MessageText: +// +// The operating system cannot run %1. +// +#define ERROR_INVALID_STARTING_CODESEG 188L + +// +// MessageId: ERROR_INVALID_STACKSEG +// +// MessageText: +// +// The operating system cannot run %1. +// +#define ERROR_INVALID_STACKSEG 189L + +// +// MessageId: ERROR_INVALID_MODULETYPE +// +// MessageText: +// +// The operating system cannot run %1. +// +#define ERROR_INVALID_MODULETYPE 190L + +// +// MessageId: ERROR_INVALID_EXE_SIGNATURE +// +// MessageText: +// +// Cannot run %1 in Win32 mode. +// +#define ERROR_INVALID_EXE_SIGNATURE 191L + +// +// MessageId: ERROR_EXE_MARKED_INVALID +// +// MessageText: +// +// The operating system cannot run %1. +// +#define ERROR_EXE_MARKED_INVALID 192L + +// +// MessageId: ERROR_BAD_EXE_FORMAT +// +// MessageText: +// +// %1 is not a valid Win32 application. +// +#define ERROR_BAD_EXE_FORMAT 193L + +// +// MessageId: ERROR_ITERATED_DATA_EXCEEDS_64k +// +// MessageText: +// +// The operating system cannot run %1. +// +#define ERROR_ITERATED_DATA_EXCEEDS_64k 194L + +// +// MessageId: ERROR_INVALID_MINALLOCSIZE +// +// MessageText: +// +// The operating system cannot run %1. +// +#define ERROR_INVALID_MINALLOCSIZE 195L + +// +// MessageId: ERROR_DYNLINK_FROM_INVALID_RING +// +// MessageText: +// +// The operating system cannot run this application program. +// +#define ERROR_DYNLINK_FROM_INVALID_RING 196L + +// +// MessageId: ERROR_IOPL_NOT_ENABLED +// +// MessageText: +// +// The operating system is not presently configured to run this application. +// +#define ERROR_IOPL_NOT_ENABLED 197L + +// +// MessageId: ERROR_INVALID_SEGDPL +// +// MessageText: +// +// The operating system cannot run %1. +// +#define ERROR_INVALID_SEGDPL 198L + +// +// MessageId: ERROR_AUTODATASEG_EXCEEDS_64k +// +// MessageText: +// +// The operating system cannot run this application program. +// +#define ERROR_AUTODATASEG_EXCEEDS_64k 199L + +// +// MessageId: ERROR_RING2SEG_MUST_BE_MOVABLE +// +// MessageText: +// +// The code segment cannot be greater than or equal to 64K. +// +#define ERROR_RING2SEG_MUST_BE_MOVABLE 200L + +// +// MessageId: ERROR_RELOC_CHAIN_XEEDS_SEGLIM +// +// MessageText: +// +// The operating system cannot run %1. +// +#define ERROR_RELOC_CHAIN_XEEDS_SEGLIM 201L + +// +// MessageId: ERROR_INFLOOP_IN_RELOC_CHAIN +// +// MessageText: +// +// The operating system cannot run %1. +// +#define ERROR_INFLOOP_IN_RELOC_CHAIN 202L + +// +// MessageId: ERROR_ENVVAR_NOT_FOUND +// +// MessageText: +// +// The system could not find the environment option that was entered. +// +#define ERROR_ENVVAR_NOT_FOUND 203L + +// +// MessageId: ERROR_NO_SIGNAL_SENT +// +// MessageText: +// +// No process in the command subtree has a signal handler. +// +#define ERROR_NO_SIGNAL_SENT 205L + +// +// MessageId: ERROR_FILENAME_EXCED_RANGE +// +// MessageText: +// +// The filename or extension is too long. +// +#define ERROR_FILENAME_EXCED_RANGE 206L + +// +// MessageId: ERROR_RING2_STACK_IN_USE +// +// MessageText: +// +// The ring 2 stack is in use. +// +#define ERROR_RING2_STACK_IN_USE 207L + +// +// MessageId: ERROR_META_EXPANSION_TOO_LONG +// +// MessageText: +// +// The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified. +// +#define ERROR_META_EXPANSION_TOO_LONG 208L + +// +// MessageId: ERROR_INVALID_SIGNAL_NUMBER +// +// MessageText: +// +// The signal being posted is not correct. +// +#define ERROR_INVALID_SIGNAL_NUMBER 209L + +// +// MessageId: ERROR_THREAD_1_INACTIVE +// +// MessageText: +// +// The signal handler cannot be set. +// +#define ERROR_THREAD_1_INACTIVE 210L + +// +// MessageId: ERROR_LOCKED +// +// MessageText: +// +// The segment is locked and cannot be reallocated. +// +#define ERROR_LOCKED 212L + +// +// MessageId: ERROR_TOO_MANY_MODULES +// +// MessageText: +// +// Too many dynamic-link modules are attached to this program or dynamic-link module. +// +#define ERROR_TOO_MANY_MODULES 214L + +// +// MessageId: ERROR_NESTING_NOT_ALLOWED +// +// MessageText: +// +// Cannot nest calls to LoadModule. +// +#define ERROR_NESTING_NOT_ALLOWED 215L + +// +// MessageId: ERROR_EXE_MACHINE_TYPE_MISMATCH +// +// MessageText: +// +// This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher. +// +#define ERROR_EXE_MACHINE_TYPE_MISMATCH 216L + +// +// MessageId: ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY +// +// MessageText: +// +// The image file %1 is signed, unable to modify. +// +#define ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY 217L + +// +// MessageId: ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY +// +// MessageText: +// +// The image file %1 is strong signed, unable to modify. +// +#define ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY 218L + +// +// MessageId: ERROR_FILE_CHECKED_OUT +// +// MessageText: +// +// This file is checked out or locked for editing by another user. +// +#define ERROR_FILE_CHECKED_OUT 220L + +// +// MessageId: ERROR_CHECKOUT_REQUIRED +// +// MessageText: +// +// The file must be checked out before saving changes. +// +#define ERROR_CHECKOUT_REQUIRED 221L + +// +// MessageId: ERROR_BAD_FILE_TYPE +// +// MessageText: +// +// The file type being saved or retrieved has been blocked. +// +#define ERROR_BAD_FILE_TYPE 222L + +// +// MessageId: ERROR_FILE_TOO_LARGE +// +// MessageText: +// +// The file size exceeds the limit allowed and cannot be saved. +// +#define ERROR_FILE_TOO_LARGE 223L + +// +// MessageId: ERROR_FORMS_AUTH_REQUIRED +// +// MessageText: +// +// Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically. +// +#define ERROR_FORMS_AUTH_REQUIRED 224L + +// +// MessageId: ERROR_VIRUS_INFECTED +// +// MessageText: +// +// Operation did not complete successfully because the file contains a virus or potentially unwanted software. +// +#define ERROR_VIRUS_INFECTED 225L + +// +// MessageId: ERROR_VIRUS_DELETED +// +// MessageText: +// +// This file contains a virus or potentially unwanted software and cannot be opened. Due to the nature of this virus or potentially unwanted software, the file has been removed from this location. +// +#define ERROR_VIRUS_DELETED 226L + +// +// MessageId: ERROR_PIPE_LOCAL +// +// MessageText: +// +// The pipe is local. +// +#define ERROR_PIPE_LOCAL 229L + +// +// MessageId: ERROR_BAD_PIPE +// +// MessageText: +// +// The pipe state is invalid. +// +#define ERROR_BAD_PIPE 230L + +// +// MessageId: ERROR_PIPE_BUSY +// +// MessageText: +// +// All pipe instances are busy. +// +#define ERROR_PIPE_BUSY 231L + +// +// MessageId: ERROR_NO_DATA +// +// MessageText: +// +// The pipe is being closed. +// +#define ERROR_NO_DATA 232L + +// +// MessageId: ERROR_PIPE_NOT_CONNECTED +// +// MessageText: +// +// No process is on the other end of the pipe. +// +#define ERROR_PIPE_NOT_CONNECTED 233L + +// +// MessageId: ERROR_MORE_DATA +// +// MessageText: +// +// More data is available. +// +#define ERROR_MORE_DATA 234L // dderror + +// +// MessageId: ERROR_NO_WORK_DONE +// +// MessageText: +// +// The action requested resulted in no work being done. Error-style clean-up has been performed. +// +#define ERROR_NO_WORK_DONE 235L + +// +// MessageId: ERROR_VC_DISCONNECTED +// +// MessageText: +// +// The session was canceled. +// +#define ERROR_VC_DISCONNECTED 240L + +// +// MessageId: ERROR_INVALID_EA_NAME +// +// MessageText: +// +// The specified extended attribute name was invalid. +// +#define ERROR_INVALID_EA_NAME 254L + +// +// MessageId: ERROR_EA_LIST_INCONSISTENT +// +// MessageText: +// +// The extended attributes are inconsistent. +// +#define ERROR_EA_LIST_INCONSISTENT 255L + +// +// MessageId: WAIT_TIMEOUT +// +// MessageText: +// +// The wait operation timed out. +// +#define WAIT_TIMEOUT 258L // dderror + +// +// MessageId: ERROR_NO_MORE_ITEMS +// +// MessageText: +// +// No more data is available. +// +#define ERROR_NO_MORE_ITEMS 259L + +// +// MessageId: ERROR_CANNOT_COPY +// +// MessageText: +// +// The copy functions cannot be used. +// +#define ERROR_CANNOT_COPY 266L + +// +// MessageId: ERROR_DIRECTORY +// +// MessageText: +// +// The directory name is invalid. +// +#define ERROR_DIRECTORY 267L + +// +// MessageId: ERROR_EAS_DIDNT_FIT +// +// MessageText: +// +// The extended attributes did not fit in the buffer. +// +#define ERROR_EAS_DIDNT_FIT 275L + +// +// MessageId: ERROR_EA_FILE_CORRUPT +// +// MessageText: +// +// The extended attribute file on the mounted file system is corrupt. +// +#define ERROR_EA_FILE_CORRUPT 276L + +// +// MessageId: ERROR_EA_TABLE_FULL +// +// MessageText: +// +// The extended attribute table file is full. +// +#define ERROR_EA_TABLE_FULL 277L + +// +// MessageId: ERROR_INVALID_EA_HANDLE +// +// MessageText: +// +// The specified extended attribute handle is invalid. +// +#define ERROR_INVALID_EA_HANDLE 278L + +// +// MessageId: ERROR_EAS_NOT_SUPPORTED +// +// MessageText: +// +// The mounted file system does not support extended attributes. +// +#define ERROR_EAS_NOT_SUPPORTED 282L + +// +// MessageId: ERROR_NOT_OWNER +// +// MessageText: +// +// Attempt to release mutex not owned by caller. +// +#define ERROR_NOT_OWNER 288L + +// +// MessageId: ERROR_TOO_MANY_POSTS +// +// MessageText: +// +// Too many posts were made to a semaphore. +// +#define ERROR_TOO_MANY_POSTS 298L + +// +// MessageId: ERROR_PARTIAL_COPY +// +// MessageText: +// +// Only part of a ReadProcessMemory or WriteProcessMemory request was completed. +// +#define ERROR_PARTIAL_COPY 299L + +// +// MessageId: ERROR_OPLOCK_NOT_GRANTED +// +// MessageText: +// +// The oplock request is denied. +// +#define ERROR_OPLOCK_NOT_GRANTED 300L + +// +// MessageId: ERROR_INVALID_OPLOCK_PROTOCOL +// +// MessageText: +// +// An invalid oplock acknowledgment was received by the system. +// +#define ERROR_INVALID_OPLOCK_PROTOCOL 301L + +// +// MessageId: ERROR_DISK_TOO_FRAGMENTED +// +// MessageText: +// +// The volume is too fragmented to complete this operation. +// +#define ERROR_DISK_TOO_FRAGMENTED 302L + +// +// MessageId: ERROR_DELETE_PENDING +// +// MessageText: +// +// The file cannot be opened because it is in the process of being deleted. +// +#define ERROR_DELETE_PENDING 303L + +// +// MessageId: ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING +// +// MessageText: +// +// Short name settings may not be changed on this volume due to the global registry setting. +// +#define ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING 304L + +// +// MessageId: ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME +// +// MessageText: +// +// Short names are not enabled on this volume. +// +#define ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME 305L + +// +// MessageId: ERROR_SECURITY_STREAM_IS_INCONSISTENT +// +// MessageText: +// +// The security stream for the given volume is in an inconsistent state. +// Please run CHKDSK on the volume. +// +#define ERROR_SECURITY_STREAM_IS_INCONSISTENT 306L + +// +// MessageId: ERROR_INVALID_LOCK_RANGE +// +// MessageText: +// +// A requested file lock operation cannot be processed due to an invalid byte range. +// +#define ERROR_INVALID_LOCK_RANGE 307L + +// +// MessageId: ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT +// +// MessageText: +// +// The subsystem needed to support the image type is not present. +// +#define ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT 308L + +// +// MessageId: ERROR_NOTIFICATION_GUID_ALREADY_DEFINED +// +// MessageText: +// +// The specified file already has a notification GUID associated with it. +// +#define ERROR_NOTIFICATION_GUID_ALREADY_DEFINED 309L + +// +// MessageId: ERROR_INVALID_EXCEPTION_HANDLER +// +// MessageText: +// +// An invalid exception handler routine has been detected. +// +#define ERROR_INVALID_EXCEPTION_HANDLER 310L + +// +// MessageId: ERROR_DUPLICATE_PRIVILEGES +// +// MessageText: +// +// Duplicate privileges were specified for the token. +// +#define ERROR_DUPLICATE_PRIVILEGES 311L + +// +// MessageId: ERROR_NO_RANGES_PROCESSED +// +// MessageText: +// +// No ranges for the specified operation were able to be processed. +// +#define ERROR_NO_RANGES_PROCESSED 312L + +// +// MessageId: ERROR_NOT_ALLOWED_ON_SYSTEM_FILE +// +// MessageText: +// +// Operation is not allowed on a file system internal file. +// +#define ERROR_NOT_ALLOWED_ON_SYSTEM_FILE 313L + +// +// MessageId: ERROR_DISK_RESOURCES_EXHAUSTED +// +// MessageText: +// +// The physical resources of this disk have been exhausted. +// +#define ERROR_DISK_RESOURCES_EXHAUSTED 314L + +// +// MessageId: ERROR_INVALID_TOKEN +// +// MessageText: +// +// The token representing the data is invalid. +// +#define ERROR_INVALID_TOKEN 315L + +// +// MessageId: ERROR_DEVICE_FEATURE_NOT_SUPPORTED +// +// MessageText: +// +// The device does not support the command feature. +// +#define ERROR_DEVICE_FEATURE_NOT_SUPPORTED 316L + +// +// MessageId: ERROR_MR_MID_NOT_FOUND +// +// MessageText: +// +// The system cannot find message text for message number 0x%1 in the message file for %2. +// +#define ERROR_MR_MID_NOT_FOUND 317L + +// +// MessageId: ERROR_SCOPE_NOT_FOUND +// +// MessageText: +// +// The scope specified was not found. +// +#define ERROR_SCOPE_NOT_FOUND 318L + +// +// MessageId: ERROR_UNDEFINED_SCOPE +// +// MessageText: +// +// The Central Access Policy specified is not defined on the target machine. +// +#define ERROR_UNDEFINED_SCOPE 319L + +// +// MessageId: ERROR_INVALID_CAP +// +// MessageText: +// +// The Central Access Policy obtained from Active Directory is invalid. +// +#define ERROR_INVALID_CAP 320L + +// +// MessageId: ERROR_DEVICE_UNREACHABLE +// +// MessageText: +// +// The device is unreachable. +// +#define ERROR_DEVICE_UNREACHABLE 321L + +// +// MessageId: ERROR_DEVICE_NO_RESOURCES +// +// MessageText: +// +// The target device has insufficient resources to complete the operation. +// +#define ERROR_DEVICE_NO_RESOURCES 322L + +// +// MessageId: ERROR_DATA_CHECKSUM_ERROR +// +// MessageText: +// +// A data integrity checksum error occurred. Data in the file stream is corrupt. +// +#define ERROR_DATA_CHECKSUM_ERROR 323L + +// +// MessageId: ERROR_INTERMIXED_KERNEL_EA_OPERATION +// +// MessageText: +// +// An attempt was made to modify both a KERNEL and normal Extended Attribute (EA) in the same operation. +// +#define ERROR_INTERMIXED_KERNEL_EA_OPERATION 324L + +// +// MessageId: ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED +// +// MessageText: +// +// Device does not support file-level TRIM. +// +#define ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED 326L + +// +// MessageId: ERROR_OFFSET_ALIGNMENT_VIOLATION +// +// MessageText: +// +// The command specified a data offset that does not align to the device's granularity/alignment. +// +#define ERROR_OFFSET_ALIGNMENT_VIOLATION 327L + +// +// MessageId: ERROR_INVALID_FIELD_IN_PARAMETER_LIST +// +// MessageText: +// +// The command specified an invalid field in its parameter list. +// +#define ERROR_INVALID_FIELD_IN_PARAMETER_LIST 328L + +// +// MessageId: ERROR_OPERATION_IN_PROGRESS +// +// MessageText: +// +// An operation is currently in progress with the device. +// +#define ERROR_OPERATION_IN_PROGRESS 329L + +// +// MessageId: ERROR_BAD_DEVICE_PATH +// +// MessageText: +// +// An attempt was made to send down the command via an invalid path to the target device. +// +#define ERROR_BAD_DEVICE_PATH 330L + +// +// MessageId: ERROR_TOO_MANY_DESCRIPTORS +// +// MessageText: +// +// The command specified a number of descriptors that exceeded the maximum supported by the device. +// +#define ERROR_TOO_MANY_DESCRIPTORS 331L + +// +// MessageId: ERROR_SCRUB_DATA_DISABLED +// +// MessageText: +// +// Scrub is disabled on the specified file. +// +#define ERROR_SCRUB_DATA_DISABLED 332L + +// +// MessageId: ERROR_NOT_REDUNDANT_STORAGE +// +// MessageText: +// +// The storage device does not provide redundancy. +// +#define ERROR_NOT_REDUNDANT_STORAGE 333L + +// +// MessageId: ERROR_RESIDENT_FILE_NOT_SUPPORTED +// +// MessageText: +// +// The specified operation is not supported on a resident file. +// +#define ERROR_RESIDENT_FILE_NOT_SUPPORTED 334L + +// +// MessageId: ERROR_COMPRESSED_FILE_NOT_SUPPORTED +// +// MessageText: +// +// The specified operation is not supported on a compressed file. +// +#define ERROR_COMPRESSED_FILE_NOT_SUPPORTED 335L + +// +// MessageId: ERROR_DIRECTORY_NOT_SUPPORTED +// +// MessageText: +// +// The specified operation is not supported on a directory. +// +#define ERROR_DIRECTORY_NOT_SUPPORTED 336L + +// +// MessageId: ERROR_NOT_READ_FROM_COPY +// +// MessageText: +// +// The specified copy of the requested data could not be read. +// +#define ERROR_NOT_READ_FROM_COPY 337L + +// +// MessageId: ERROR_FT_WRITE_FAILURE +// +// MessageText: +// +// The specified data could not be written to any of the copies. +// +#define ERROR_FT_WRITE_FAILURE 338L + +// +// MessageId: ERROR_FT_DI_SCAN_REQUIRED +// +// MessageText: +// +// One or more copies of data on this device may be out of sync. No writes may be performed until a data integrity scan is completed. +// +#define ERROR_FT_DI_SCAN_REQUIRED 339L + +// +// MessageId: ERROR_INVALID_KERNEL_INFO_VERSION +// +// MessageText: +// +// The supplied kernel information version is invalid. +// +#define ERROR_INVALID_KERNEL_INFO_VERSION 340L + +// +// MessageId: ERROR_INVALID_PEP_INFO_VERSION +// +// MessageText: +// +// The supplied PEP information version is invalid. +// +#define ERROR_INVALID_PEP_INFO_VERSION 341L + +// +// MessageId: ERROR_OBJECT_NOT_EXTERNALLY_BACKED +// +// MessageText: +// +// This object is not externally backed by any provider. +// +#define ERROR_OBJECT_NOT_EXTERNALLY_BACKED 342L + +// +// MessageId: ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN +// +// MessageText: +// +// The external backing provider is not recognized. +// +#define ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN 343L + +// +// MessageId: ERROR_COMPRESSION_NOT_BENEFICIAL +// +// MessageText: +// +// Compressing this object would not save space. +// +#define ERROR_COMPRESSION_NOT_BENEFICIAL 344L + +// +// MessageId: ERROR_STORAGE_TOPOLOGY_ID_MISMATCH +// +// MessageText: +// +// The request failed due to a storage topology ID mismatch. +// +#define ERROR_STORAGE_TOPOLOGY_ID_MISMATCH 345L + +// +// MessageId: ERROR_BLOCKED_BY_PARENTAL_CONTROLS +// +// MessageText: +// +// The operation was blocked by parental controls. +// +#define ERROR_BLOCKED_BY_PARENTAL_CONTROLS 346L + +// +// MessageId: ERROR_BLOCK_TOO_MANY_REFERENCES +// +// MessageText: +// +// A file system block being referenced has already reached the maximum reference count and can't be referenced any further. +// +#define ERROR_BLOCK_TOO_MANY_REFERENCES 347L + +// +// MessageId: ERROR_MARKED_TO_DISALLOW_WRITES +// +// MessageText: +// +// The requested operation failed because the file stream is marked to disallow writes. +// +#define ERROR_MARKED_TO_DISALLOW_WRITES 348L + +// +// MessageId: ERROR_ENCLAVE_FAILURE +// +// MessageText: +// +// The requested operation failed with an architecture-specific failure code. +// +#define ERROR_ENCLAVE_FAILURE 349L + +// +// MessageId: ERROR_FAIL_NOACTION_REBOOT +// +// MessageText: +// +// No action was taken as a system reboot is required. +// +#define ERROR_FAIL_NOACTION_REBOOT 350L + +// +// MessageId: ERROR_FAIL_SHUTDOWN +// +// MessageText: +// +// The shutdown operation failed. +// +#define ERROR_FAIL_SHUTDOWN 351L + +// +// MessageId: ERROR_FAIL_RESTART +// +// MessageText: +// +// The restart operation failed. +// +#define ERROR_FAIL_RESTART 352L + +// +// MessageId: ERROR_MAX_SESSIONS_REACHED +// +// MessageText: +// +// The maximum number of sessions has been reached. +// +#define ERROR_MAX_SESSIONS_REACHED 353L + +// +// MessageId: ERROR_NETWORK_ACCESS_DENIED_EDP +// +// MessageText: +// +// Windows Information Protection policy does not allow access to this network resource. +// +#define ERROR_NETWORK_ACCESS_DENIED_EDP 354L + +// +// MessageId: ERROR_DEVICE_HINT_NAME_BUFFER_TOO_SMALL +// +// MessageText: +// +// The device hint name buffer is too small to receive the remaining name. +// +#define ERROR_DEVICE_HINT_NAME_BUFFER_TOO_SMALL 355L + +// +// MessageId: ERROR_EDP_POLICY_DENIES_OPERATION +// +// MessageText: +// +// The requested operation was blocked by Windows Information Protection policy. For more information, contact your system administrator. +// +#define ERROR_EDP_POLICY_DENIES_OPERATION 356L + +// +// MessageId: ERROR_EDP_DPL_POLICY_CANT_BE_SATISFIED +// +// MessageText: +// +// The requested operation cannot be performed because hardware or software configuration of the device does not comply with Windows Information Protection under Lock policy. Please, verify that user PIN has been created. For more information, contact your system administrator. +// +#define ERROR_EDP_DPL_POLICY_CANT_BE_SATISFIED 357L + +// +// MessageId: ERROR_CLOUD_FILE_SYNC_ROOT_METADATA_CORRUPT +// +// MessageText: +// +// The cloud sync root metadata is corrupted. +// +#define ERROR_CLOUD_FILE_SYNC_ROOT_METADATA_CORRUPT 358L + +// +// MessageId: ERROR_DEVICE_IN_MAINTENANCE +// +// MessageText: +// +// The device is in maintenance mode. +// +#define ERROR_DEVICE_IN_MAINTENANCE 359L + +// +// MessageId: ERROR_NOT_SUPPORTED_ON_DAX +// +// MessageText: +// +// The specified operation is not supported on a DAX volume. +// +#define ERROR_NOT_SUPPORTED_ON_DAX 360L + +// +// MessageId: ERROR_DAX_MAPPING_EXISTS +// +// MessageText: +// +// The volume has active DAX mappings. +// +#define ERROR_DAX_MAPPING_EXISTS 361L + +// +// MessageId: ERROR_CLOUD_FILE_PROVIDER_NOT_RUNNING +// +// MessageText: +// +// The cloud file provider is not running. +// +#define ERROR_CLOUD_FILE_PROVIDER_NOT_RUNNING 362L + +// +// MessageId: ERROR_CLOUD_FILE_METADATA_CORRUPT +// +// MessageText: +// +// The cloud file metadata is corrupt and unreadable. +// +#define ERROR_CLOUD_FILE_METADATA_CORRUPT 363L + +// +// MessageId: ERROR_CLOUD_FILE_METADATA_TOO_LARGE +// +// MessageText: +// +// The cloud file metadata is too large. +// +#define ERROR_CLOUD_FILE_METADATA_TOO_LARGE 364L + +// +// MessageId: ERROR_CLOUD_FILE_PROPERTY_BLOB_TOO_LARGE +// +// MessageText: +// +// The cloud file property is too large. +// +#define ERROR_CLOUD_FILE_PROPERTY_BLOB_TOO_LARGE 365L + +// +// MessageId: ERROR_CLOUD_FILE_PROPERTY_BLOB_CHECKSUM_MISMATCH +// +// MessageText: +// +// The cloud file property is possibly corrupt. The on-disk checksum does not match the computed checksum. +// +#define ERROR_CLOUD_FILE_PROPERTY_BLOB_CHECKSUM_MISMATCH 366L + +// +// MessageId: ERROR_CHILD_PROCESS_BLOCKED +// +// MessageText: +// +// The process creation has been blocked. +// +#define ERROR_CHILD_PROCESS_BLOCKED 367L + +// +// MessageId: ERROR_STORAGE_LOST_DATA_PERSISTENCE +// +// MessageText: +// +// The storage device has lost data or persistence. +// +#define ERROR_STORAGE_LOST_DATA_PERSISTENCE 368L + +// +// MessageId: ERROR_FILE_SYSTEM_VIRTUALIZATION_UNAVAILABLE +// +// MessageText: +// +// The provider that supports file system virtualization is temporarily unavailable. +// +#define ERROR_FILE_SYSTEM_VIRTUALIZATION_UNAVAILABLE 369L + +// +// MessageId: ERROR_FILE_SYSTEM_VIRTUALIZATION_METADATA_CORRUPT +// +// MessageText: +// +// The metadata for file system virtualization is corrupt and unreadable. +// +#define ERROR_FILE_SYSTEM_VIRTUALIZATION_METADATA_CORRUPT 370L + +// +// MessageId: ERROR_FILE_SYSTEM_VIRTUALIZATION_BUSY +// +// MessageText: +// +// The provider that supports file system virtualization is too busy to complete this operation. +// +#define ERROR_FILE_SYSTEM_VIRTUALIZATION_BUSY 371L + +// +// MessageId: ERROR_FILE_SYSTEM_VIRTUALIZATION_PROVIDER_UNKNOWN +// +// MessageText: +// +// The provider that supports file system virtualization is unknown. +// +#define ERROR_FILE_SYSTEM_VIRTUALIZATION_PROVIDER_UNKNOWN 372L + +// +// MessageId: ERROR_GDI_HANDLE_LEAK +// +// MessageText: +// +// GDI handles were potentially leaked by the application. +// +#define ERROR_GDI_HANDLE_LEAK 373L + +// +// MessageId: ERROR_CLOUD_FILE_TOO_MANY_PROPERTY_BLOBS +// +// MessageText: +// +// The maximum number of cloud file properties has been reached. +// +#define ERROR_CLOUD_FILE_TOO_MANY_PROPERTY_BLOBS 374L + +// +// MessageId: ERROR_CLOUD_FILE_PROPERTY_VERSION_NOT_SUPPORTED +// +// MessageText: +// +// The version of the cloud file property store is not supported. +// +#define ERROR_CLOUD_FILE_PROPERTY_VERSION_NOT_SUPPORTED 375L + +// +// MessageId: ERROR_NOT_A_CLOUD_FILE +// +// MessageText: +// +// The file is not a cloud file. +// +#define ERROR_NOT_A_CLOUD_FILE 376L + +// +// MessageId: ERROR_CLOUD_FILE_NOT_IN_SYNC +// +// MessageText: +// +// The file is not in sync with the cloud. +// +#define ERROR_CLOUD_FILE_NOT_IN_SYNC 377L + +// +// MessageId: ERROR_CLOUD_FILE_ALREADY_CONNECTED +// +// MessageText: +// +// The cloud sync root is already connected with another cloud sync provider. +// +#define ERROR_CLOUD_FILE_ALREADY_CONNECTED 378L + +// +// MessageId: ERROR_CLOUD_FILE_NOT_SUPPORTED +// +// MessageText: +// +// The operation is not supported by the cloud sync provider. +// +#define ERROR_CLOUD_FILE_NOT_SUPPORTED 379L + +// +// MessageId: ERROR_CLOUD_FILE_INVALID_REQUEST +// +// MessageText: +// +// The cloud operation is invalid. +// +#define ERROR_CLOUD_FILE_INVALID_REQUEST 380L + +// +// MessageId: ERROR_CLOUD_FILE_READ_ONLY_VOLUME +// +// MessageText: +// +// The cloud operation is not supported on a read-only volume. +// +#define ERROR_CLOUD_FILE_READ_ONLY_VOLUME 381L + +// +// MessageId: ERROR_CLOUD_FILE_CONNECTED_PROVIDER_ONLY +// +// MessageText: +// +// The operation is reserved for a connected cloud sync provider. +// +#define ERROR_CLOUD_FILE_CONNECTED_PROVIDER_ONLY 382L + +// +// MessageId: ERROR_CLOUD_FILE_VALIDATION_FAILED +// +// MessageText: +// +// The cloud sync provider failed to validate the downloaded data. +// +#define ERROR_CLOUD_FILE_VALIDATION_FAILED 383L + +// +// MessageId: ERROR_SMB1_NOT_AVAILABLE +// +// MessageText: +// +// You can't connect to the file share because it's not secure. This share requires the obsolete SMB1 protocol, which is unsafe and could expose your system to attack. +// Your system requires SMB2 or higher. For more info on resolving this issue, see: https://go.microsoft.com/fwlink/?linkid=852747 +// +#define ERROR_SMB1_NOT_AVAILABLE 384L + +// +// MessageId: ERROR_FILE_SYSTEM_VIRTUALIZATION_INVALID_OPERATION +// +// MessageText: +// +// The virtualization operation is not allowed on the file in its current state. +// +#define ERROR_FILE_SYSTEM_VIRTUALIZATION_INVALID_OPERATION 385L + +// +// MessageId: ERROR_CLOUD_FILE_AUTHENTICATION_FAILED +// +// MessageText: +// +// The cloud sync provider failed user authentication. +// +#define ERROR_CLOUD_FILE_AUTHENTICATION_FAILED 386L + +// +// MessageId: ERROR_CLOUD_FILE_INSUFFICIENT_RESOURCES +// +// MessageText: +// +// The cloud sync provider failed to perform the operation due to low system resources. +// +#define ERROR_CLOUD_FILE_INSUFFICIENT_RESOURCES 387L + +// +// MessageId: ERROR_CLOUD_FILE_NETWORK_UNAVAILABLE +// +// MessageText: +// +// The cloud sync provider failed to perform the operation due to network being unavailable. +// +#define ERROR_CLOUD_FILE_NETWORK_UNAVAILABLE 388L + +// +// MessageId: ERROR_CLOUD_FILE_UNSUCCESSFUL +// +// MessageText: +// +// The cloud operation was unsuccessful. +// +#define ERROR_CLOUD_FILE_UNSUCCESSFUL 389L + +// +// MessageId: ERROR_CLOUD_FILE_NOT_UNDER_SYNC_ROOT +// +// MessageText: +// +// The operation is only supported on files under a cloud sync root. +// +#define ERROR_CLOUD_FILE_NOT_UNDER_SYNC_ROOT 390L + +// +// MessageId: ERROR_CLOUD_FILE_IN_USE +// +// MessageText: +// +// The operation cannot be performed on cloud files in use. +// +#define ERROR_CLOUD_FILE_IN_USE 391L + +// +// MessageId: ERROR_CLOUD_FILE_PINNED +// +// MessageText: +// +// The operation cannot be performed on pinned cloud files. +// +#define ERROR_CLOUD_FILE_PINNED 392L + +// +// MessageId: ERROR_CLOUD_FILE_REQUEST_ABORTED +// +// MessageText: +// +// The cloud operation was aborted. +// +#define ERROR_CLOUD_FILE_REQUEST_ABORTED 393L + +// +// MessageId: ERROR_CLOUD_FILE_PROPERTY_CORRUPT +// +// MessageText: +// +// The cloud file's property store is corrupt. +// +#define ERROR_CLOUD_FILE_PROPERTY_CORRUPT 394L + +// +// MessageId: ERROR_CLOUD_FILE_ACCESS_DENIED +// +// MessageText: +// +// Access to the cloud file is denied. +// +#define ERROR_CLOUD_FILE_ACCESS_DENIED 395L + +// +// MessageId: ERROR_CLOUD_FILE_INCOMPATIBLE_HARDLINKS +// +// MessageText: +// +// The cloud operation cannot be performed on a file with incompatible hardlinks. +// +#define ERROR_CLOUD_FILE_INCOMPATIBLE_HARDLINKS 396L + +// +// MessageId: ERROR_CLOUD_FILE_PROPERTY_LOCK_CONFLICT +// +// MessageText: +// +// The operation failed due to a conflicting cloud file property lock. +// +#define ERROR_CLOUD_FILE_PROPERTY_LOCK_CONFLICT 397L + +// +// MessageId: ERROR_CLOUD_FILE_REQUEST_CANCELED +// +// MessageText: +// +// The cloud operation was canceled by user. +// +#define ERROR_CLOUD_FILE_REQUEST_CANCELED 398L + +// +// MessageId: ERROR_EXTERNAL_SYSKEY_NOT_SUPPORTED +// +// MessageText: +// +// An externally encrypted syskey has been configured, but the system no longer supports this feature. Please see https://go.microsoft.com/fwlink/?linkid=851152 for more information. +// +#define ERROR_EXTERNAL_SYSKEY_NOT_SUPPORTED 399L + +// +// MessageId: ERROR_THREAD_MODE_ALREADY_BACKGROUND +// +// MessageText: +// +// The thread is already in background processing mode. +// +#define ERROR_THREAD_MODE_ALREADY_BACKGROUND 400L + +// +// MessageId: ERROR_THREAD_MODE_NOT_BACKGROUND +// +// MessageText: +// +// The thread is not in background processing mode. +// +#define ERROR_THREAD_MODE_NOT_BACKGROUND 401L + +// +// MessageId: ERROR_PROCESS_MODE_ALREADY_BACKGROUND +// +// MessageText: +// +// The process is already in background processing mode. +// +#define ERROR_PROCESS_MODE_ALREADY_BACKGROUND 402L + +// +// MessageId: ERROR_PROCESS_MODE_NOT_BACKGROUND +// +// MessageText: +// +// The process is not in background processing mode. +// +#define ERROR_PROCESS_MODE_NOT_BACKGROUND 403L + +// +// MessageId: ERROR_CLOUD_FILE_PROVIDER_TERMINATED +// +// MessageText: +// +// The cloud file provider exited unexpectedly. +// +#define ERROR_CLOUD_FILE_PROVIDER_TERMINATED 404L + +// +// MessageId: ERROR_NOT_A_CLOUD_SYNC_ROOT +// +// MessageText: +// +// The file is not a cloud sync root. +// +#define ERROR_NOT_A_CLOUD_SYNC_ROOT 405L + +// +// MessageId: ERROR_FILE_PROTECTED_UNDER_DPL +// +// MessageText: +// +// The read or write operation to an encrypted file could not be completed because the file can only be accessed when the device is unlocked. +// +#define ERROR_FILE_PROTECTED_UNDER_DPL 406L + +// +// MessageId: ERROR_VOLUME_NOT_CLUSTER_ALIGNED +// +// MessageText: +// +// The volume is not cluster aligned on the disk. +// +#define ERROR_VOLUME_NOT_CLUSTER_ALIGNED 407L + +// +// MessageId: ERROR_NO_PHYSICALLY_ALIGNED_FREE_SPACE_FOUND +// +// MessageText: +// +// No physically aligned free space was found on the volume. +// +#define ERROR_NO_PHYSICALLY_ALIGNED_FREE_SPACE_FOUND 408L + +// +// MessageId: ERROR_APPX_FILE_NOT_ENCRYPTED +// +// MessageText: +// +// The APPX file can not be accessed because it is not encrypted as expected. +// +#define ERROR_APPX_FILE_NOT_ENCRYPTED 409L + +// +// MessageId: ERROR_RWRAW_ENCRYPTED_FILE_NOT_ENCRYPTED +// +// MessageText: +// +// A read or write of raw encrypted data cannot be performed because the file is not encrypted. +// +#define ERROR_RWRAW_ENCRYPTED_FILE_NOT_ENCRYPTED 410L + +// +// MessageId: ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILEOFFSET +// +// MessageText: +// +// An invalid file offset in the encrypted data info block was passed for read or write operation of file's raw encrypted data. +// +#define ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILEOFFSET 411L + +// +// MessageId: ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILERANGE +// +// MessageText: +// +// An invalid offset and length combination in the encrypted data info block was passed for read or write operation of file's raw encrypted data. +// +#define ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILERANGE 412L + +// +// MessageId: ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_PARAMETER +// +// MessageText: +// +// An invalid parameter in the encrypted data info block was passed for read or write operation of file's raw encrypted data. +// +#define ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_PARAMETER 413L + +// +// MessageId: ERROR_LINUX_SUBSYSTEM_NOT_PRESENT +// +// MessageText: +// +// The Windows Subsystem for Linux is not installed. You can install by running 'wsl.exe --install'. +// For more information please visit https://aka.ms/wslinstall +// +#define ERROR_LINUX_SUBSYSTEM_NOT_PRESENT 414L + +// +// MessageId: ERROR_FT_READ_FAILURE +// +// MessageText: +// +// The specified data could not be read from any of the copies. +// +#define ERROR_FT_READ_FAILURE 415L + +// +// MessageId: ERROR_STORAGE_RESERVE_ID_INVALID +// +// MessageText: +// +// The specified storage reserve ID is invalid. +// +#define ERROR_STORAGE_RESERVE_ID_INVALID 416L + +// +// MessageId: ERROR_STORAGE_RESERVE_DOES_NOT_EXIST +// +// MessageText: +// +// The specified storage reserve does not exist. +// +#define ERROR_STORAGE_RESERVE_DOES_NOT_EXIST 417L + +// +// MessageId: ERROR_STORAGE_RESERVE_ALREADY_EXISTS +// +// MessageText: +// +// The specified storage reserve already exists. +// +#define ERROR_STORAGE_RESERVE_ALREADY_EXISTS 418L + +// +// MessageId: ERROR_STORAGE_RESERVE_NOT_EMPTY +// +// MessageText: +// +// The specified storage reserve is not empty. +// +#define ERROR_STORAGE_RESERVE_NOT_EMPTY 419L + +// +// MessageId: ERROR_NOT_A_DAX_VOLUME +// +// MessageText: +// +// This operation requires a DAX volume. +// +#define ERROR_NOT_A_DAX_VOLUME 420L + +// +// MessageId: ERROR_NOT_DAX_MAPPABLE +// +// MessageText: +// +// This stream is not DAX mappable. +// +#define ERROR_NOT_DAX_MAPPABLE 421L + +// +// MessageId: ERROR_TIME_SENSITIVE_THREAD +// +// MessageText: +// +// Operation cannot be performed on a time critical thread. +// +#define ERROR_TIME_SENSITIVE_THREAD 422L + +// +// MessageId: ERROR_DPL_NOT_SUPPORTED_FOR_USER +// +// MessageText: +// +// User data protection is not supported for the current or provided user. +// +#define ERROR_DPL_NOT_SUPPORTED_FOR_USER 423L + +// +// MessageId: ERROR_CASE_DIFFERING_NAMES_IN_DIR +// +// MessageText: +// +// This directory contains entries whose names differ only in case. +// +#define ERROR_CASE_DIFFERING_NAMES_IN_DIR 424L + +// +// MessageId: ERROR_FILE_NOT_SUPPORTED +// +// MessageText: +// +// The file cannot be safely opened because it is not supported by this version of Windows. +// +#define ERROR_FILE_NOT_SUPPORTED 425L + +// +// MessageId: ERROR_CLOUD_FILE_REQUEST_TIMEOUT +// +// MessageText: +// +// The cloud operation was not completed before the time-out period expired. +// +#define ERROR_CLOUD_FILE_REQUEST_TIMEOUT 426L + +// +// MessageId: ERROR_NO_TASK_QUEUE +// +// MessageText: +// +// A task queue is required for this operation but none is available. +// +#define ERROR_NO_TASK_QUEUE 427L + +// +// MessageId: ERROR_SRC_SRV_DLL_LOAD_FAILED +// +// MessageText: +// +// Failed loading a valid version of srcsrv.dll. +// +#define ERROR_SRC_SRV_DLL_LOAD_FAILED 428L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_BTT +// +// MessageText: +// +// This operation is not supported with BTT enabled. +// +#define ERROR_NOT_SUPPORTED_WITH_BTT 429L + +// +// MessageId: ERROR_ENCRYPTION_DISABLED +// +// MessageText: +// +// This operation cannot be performed because encryption is currently disabled. +// +#define ERROR_ENCRYPTION_DISABLED 430L + +// +// MessageId: ERROR_ENCRYPTING_METADATA_DISALLOWED +// +// MessageText: +// +// This encryption operation cannot be performed on filesystem metadata. +// +#define ERROR_ENCRYPTING_METADATA_DISALLOWED 431L + +// +// MessageId: ERROR_CANT_CLEAR_ENCRYPTION_FLAG +// +// MessageText: +// +// Encryption cannot be cleared on this file/directory because it still has an encrypted attribute. +// +#define ERROR_CANT_CLEAR_ENCRYPTION_FLAG 432L + +// +// MessageId: ERROR_NO_SUCH_DEVICE +// +// MessageText: +// +// A device which does not exist was specified. +// +#define ERROR_NO_SUCH_DEVICE 433L + +// +// MessageId: ERROR_CLOUD_FILE_DEHYDRATION_DISALLOWED +// +// MessageText: +// +// Dehydration of the cloud file is disallowed by the cloud sync provider. +// +#define ERROR_CLOUD_FILE_DEHYDRATION_DISALLOWED 434L + +// +// MessageId: ERROR_FILE_SNAP_IN_PROGRESS +// +// MessageText: +// +// A file snapshot operation was attempted when one is already in progress. +// +#define ERROR_FILE_SNAP_IN_PROGRESS 435L + +// +// MessageId: ERROR_FILE_SNAP_USER_SECTION_NOT_SUPPORTED +// +// MessageText: +// +// A snapshot of the file cannot be taken because a user-mapped section is present. +// +#define ERROR_FILE_SNAP_USER_SECTION_NOT_SUPPORTED 436L + +// +// MessageId: ERROR_FILE_SNAP_MODIFY_NOT_SUPPORTED +// +// MessageText: +// +// The file snapshot operation was terminated because one of the files was modified in a way incompatible with a snapshot operation. Please try again. +// +#define ERROR_FILE_SNAP_MODIFY_NOT_SUPPORTED 437L + +// +// MessageId: ERROR_FILE_SNAP_IO_NOT_COORDINATED +// +// MessageText: +// +// An I/O request could not be coordinated with a file snapshot operation. +// +#define ERROR_FILE_SNAP_IO_NOT_COORDINATED 438L + +// +// MessageId: ERROR_FILE_SNAP_UNEXPECTED_ERROR +// +// MessageText: +// +// An unexpected error occurred while processing a file snapshot operation. +// +#define ERROR_FILE_SNAP_UNEXPECTED_ERROR 439L + +// +// MessageId: ERROR_FILE_SNAP_INVALID_PARAMETER +// +// MessageText: +// +// A file snapshot operation received an invalid parameter. +// +#define ERROR_FILE_SNAP_INVALID_PARAMETER 440L + +// +// MessageId: ERROR_UNSATISFIED_DEPENDENCIES +// +// MessageText: +// +// The operation could not be completed due to one or more unsatisfied dependencies. +// +#define ERROR_UNSATISFIED_DEPENDENCIES 441L + +// +// MessageId: ERROR_CASE_SENSITIVE_PATH +// +// MessageText: +// +// The file cannot be opened because the path has a case-sensitive directory. +// +#define ERROR_CASE_SENSITIVE_PATH 442L + +// +// MessageId: ERROR_UNEXPECTED_NTCACHEMANAGER_ERROR +// +// MessageText: +// +// The filesystem couldn't handle one of the CacheManager's callback error codes. +// +#define ERROR_UNEXPECTED_NTCACHEMANAGER_ERROR 443L + +// +// MessageId: ERROR_LINUX_SUBSYSTEM_UPDATE_REQUIRED +// +// MessageText: +// +// Windows Subsystem for Linux must be updated to the latest version to proceed. You can update by running 'wsl.exe --update'. +// For more information please visit https://aka.ms/wslinstall +// +#define ERROR_LINUX_SUBSYSTEM_UPDATE_REQUIRED 444L + +// +// MessageId: ERROR_DLP_POLICY_WARNS_AGAINST_OPERATION +// +// MessageText: +// +// This action is blocked, but you can choose to allow it. Please refer to the data loss prevention notification for further information. +// +#define ERROR_DLP_POLICY_WARNS_AGAINST_OPERATION 445L + +// +// MessageId: ERROR_DLP_POLICY_DENIES_OPERATION +// +// MessageText: +// +// This action is blocked. Please refer to the data loss prevention notification for further information. +// +#define ERROR_DLP_POLICY_DENIES_OPERATION 446L + +// +// MessageId: ERROR_SECURITY_DENIES_OPERATION +// +// MessageText: +// +// Access is denied because the file contains potentially unwanted software or content the security administrator decided to block. +// +#define ERROR_SECURITY_DENIES_OPERATION 447L + +// +// MessageId: ERROR_UNTRUSTED_MOUNT_POINT +// +// MessageText: +// +// The path cannot be traversed because it contains an untrusted mount point. +// +#define ERROR_UNTRUSTED_MOUNT_POINT 448L + +// Data Loss Prevention error code to suppress showing UX/error message. Still adding error text for consistency. +// +// MessageId: ERROR_DLP_POLICY_SILENTLY_FAIL +// +// MessageText: +// +// This action is blocked. Please refer to the data loss prevention notification for further information. +// +#define ERROR_DLP_POLICY_SILENTLY_FAIL 449L + + +/////////////////////////////////////////////////// +// // +// Capability Authorization Error codes // +// // +// 0450 to 0460 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_CAPAUTHZ_NOT_DEVUNLOCKED +// +// MessageText: +// +// Neither developer unlocked mode nor side loading mode is enabled on the device. +// +#define ERROR_CAPAUTHZ_NOT_DEVUNLOCKED 450L + +// +// MessageId: ERROR_CAPAUTHZ_CHANGE_TYPE +// +// MessageText: +// +// Can not change application type during upgrade or re-provision. +// +#define ERROR_CAPAUTHZ_CHANGE_TYPE 451L + +// +// MessageId: ERROR_CAPAUTHZ_NOT_PROVISIONED +// +// MessageText: +// +// The application has not been provisioned. +// +#define ERROR_CAPAUTHZ_NOT_PROVISIONED 452L + +// +// MessageId: ERROR_CAPAUTHZ_NOT_AUTHORIZED +// +// MessageText: +// +// The requested capability can not be authorized for this application. +// +#define ERROR_CAPAUTHZ_NOT_AUTHORIZED 453L + +// +// MessageId: ERROR_CAPAUTHZ_NO_POLICY +// +// MessageText: +// +// There is no capability authorization policy on the device. +// +#define ERROR_CAPAUTHZ_NO_POLICY 454L + +// +// MessageId: ERROR_CAPAUTHZ_DB_CORRUPTED +// +// MessageText: +// +// The capability authorization database has been corrupted. +// +#define ERROR_CAPAUTHZ_DB_CORRUPTED 455L + +// +// MessageId: ERROR_CAPAUTHZ_SCCD_INVALID_CATALOG +// +// MessageText: +// +// The custom capability's SCCD has an invalid catalog. +// +#define ERROR_CAPAUTHZ_SCCD_INVALID_CATALOG 456L + +// +// MessageId: ERROR_CAPAUTHZ_SCCD_NO_AUTH_ENTITY +// +// MessageText: +// +// None of the authorized entity elements in the SCCD matched the app being installed; either the PFNs don't match, or the element's signature hash doesn't validate. +// +#define ERROR_CAPAUTHZ_SCCD_NO_AUTH_ENTITY 457L + +// +// MessageId: ERROR_CAPAUTHZ_SCCD_PARSE_ERROR +// +// MessageText: +// +// The custom capability's SCCD failed to parse. +// +#define ERROR_CAPAUTHZ_SCCD_PARSE_ERROR 458L + +// +// MessageId: ERROR_CAPAUTHZ_SCCD_DEV_MODE_REQUIRED +// +// MessageText: +// +// The custom capability's SCCD requires developer mode. +// +#define ERROR_CAPAUTHZ_SCCD_DEV_MODE_REQUIRED 459L + +// +// MessageId: ERROR_CAPAUTHZ_SCCD_NO_CAPABILITY_MATCH +// +// MessageText: +// +// There not all declared custom capabilities are found in the SCCD. +// +#define ERROR_CAPAUTHZ_SCCD_NO_CAPABILITY_MATCH 460L + +// +// MessageId: ERROR_CIMFS_IMAGE_CORRUPT +// +// MessageText: +// +// The CimFS image is corrupt. +// +#define ERROR_CIMFS_IMAGE_CORRUPT 470L + +// +// MessageId: ERROR_CIMFS_IMAGE_VERSION_NOT_SUPPORTED +// +// MessageText: +// +// The system does not support this version of the CimFS image. +// +#define ERROR_CIMFS_IMAGE_VERSION_NOT_SUPPORTED 471L + +// +// MessageId: ERROR_STORAGE_STACK_ACCESS_DENIED +// +// MessageText: +// +// The storage stack returned STATUS_ACCESS_DENEID for the current operation. +// +#define ERROR_STORAGE_STACK_ACCESS_DENIED 472L + +// +// MessageId: ERROR_INSUFFICIENT_VIRTUAL_ADDR_RESOURCES +// +// MessageText: +// +// Insufficient Virtual Address resources to complete the operation. +// +#define ERROR_INSUFFICIENT_VIRTUAL_ADDR_RESOURCES 473L + +// +// MessageId: ERROR_INDEX_OUT_OF_BOUNDS +// +// MessageText: +// +// The specified index is beyond the bounds of valid range. +// +#define ERROR_INDEX_OUT_OF_BOUNDS 474L + +// +// MessageId: ERROR_CLOUD_FILE_US_MESSAGE_TIMEOUT +// +// MessageText: +// +// The cloud provider failed to acknowledge a message before the time-out expired. +// +#define ERROR_CLOUD_FILE_US_MESSAGE_TIMEOUT 475L + +// +// MessageId: ERROR_NOT_A_DEV_VOLUME +// +// MessageText: +// +// This operation requires a developer volume. +// +#define ERROR_NOT_A_DEV_VOLUME 476L + +// +// MessageId: ERROR_FS_GUID_MISMATCH +// +// MessageText: +// +// The file system GUID in the per machine state did not match the one on disk. +// +#define ERROR_FS_GUID_MISMATCH 477L + +// +// MessageId: ERROR_CANT_ATTACH_TO_DEV_VOLUME +// +// MessageText: +// +// The file system minifilter cannot attach to the developer volume. +// +#define ERROR_CANT_ATTACH_TO_DEV_VOLUME 478L + +// +// MessageId: ERROR_MEMORY_DECOMPRESSION_FAILURE +// +// MessageText: +// +// The data stored in compressed memory falied to be decompressed. +// +#define ERROR_MEMORY_DECOMPRESSION_FAILURE 479L + +// +// **** Available SYSTEM error codes **** +// +// +// MessageId: ERROR_PNP_QUERY_REMOVE_DEVICE_TIMEOUT +// +// MessageText: +// +// The operation timed out waiting for this device to complete a PnP query-remove request due to a potential hang in its device stack. The system may need to be rebooted to complete the request. +// +#define ERROR_PNP_QUERY_REMOVE_DEVICE_TIMEOUT 480L + +// +// MessageId: ERROR_PNP_QUERY_REMOVE_RELATED_DEVICE_TIMEOUT +// +// MessageText: +// +// The operation timed out waiting for this device to complete a PnP query-remove request due to a potential hang in the device stack of a related device. The system may need to be rebooted to complete the operation. +// +#define ERROR_PNP_QUERY_REMOVE_RELATED_DEVICE_TIMEOUT 481L + +// +// MessageId: ERROR_PNP_QUERY_REMOVE_UNRELATED_DEVICE_TIMEOUT +// +// MessageText: +// +// The operation timed out waiting for this device to complete a PnP query-remove request due to a potential hang in the device stack of an unrelated device. The system may need to be rebooted to complete the operation. +// +#define ERROR_PNP_QUERY_REMOVE_UNRELATED_DEVICE_TIMEOUT 482L + +// +// MessageId: ERROR_DEVICE_HARDWARE_ERROR +// +// MessageText: +// +// The request failed due to a fatal device hardware error. +// +#define ERROR_DEVICE_HARDWARE_ERROR 483L + +// +// MessageId: ERROR_INVALID_ADDRESS +// +// MessageText: +// +// Attempt to access invalid address. +// +#define ERROR_INVALID_ADDRESS 487L + +// +// MessageId: ERROR_HAS_SYSTEM_CRITICAL_FILES +// +// MessageText: +// +// The volume contains paging, crash dump or other system critical files. +// +#define ERROR_HAS_SYSTEM_CRITICAL_FILES 488L + +// +// MessageId: ERROR_ENCRYPTED_FILE_NOT_SUPPORTED +// +// MessageText: +// +// The specified operation is not supported on an encrypted file. +// +#define ERROR_ENCRYPTED_FILE_NOT_SUPPORTED 489L + +// +// MessageId: ERROR_SPARSE_FILE_NOT_SUPPORTED +// +// MessageText: +// +// The specified operation is not supported on a sparse file. +// +#define ERROR_SPARSE_FILE_NOT_SUPPORTED 490L + +// +// MessageId: ERROR_PAGEFILE_NOT_SUPPORTED +// +// MessageText: +// +// The specified operation is not supported on a pagefile. +// +#define ERROR_PAGEFILE_NOT_SUPPORTED 491L + +// +// MessageId: ERROR_VOLUME_NOT_SUPPORTED +// +// MessageText: +// +// The specified operation is not supported on a volume. +// +#define ERROR_VOLUME_NOT_SUPPORTED 492L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_BYPASSIO +// +// MessageText: +// +// The specified operation is not supported on a BypassIO enabled file. +// +#define ERROR_NOT_SUPPORTED_WITH_BYPASSIO 493L + +// +// MessageId: ERROR_NO_BYPASSIO_DRIVER_SUPPORT +// +// MessageText: +// +// The specified driver does not support BypassIO operations. +// +#define ERROR_NO_BYPASSIO_DRIVER_SUPPORT 494L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_ENCRYPTION +// +// MessageText: +// +// The specified operation is not supported while encryption is enabled on the target object. +// +#define ERROR_NOT_SUPPORTED_WITH_ENCRYPTION 495L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_COMPRESSION +// +// MessageText: +// +// The specified operation is not supported while compression is enabled on the target object. +// +#define ERROR_NOT_SUPPORTED_WITH_COMPRESSION 496L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_REPLICATION +// +// MessageText: +// +// The specified operation is not supported while replication is enabled on the target object. +// +#define ERROR_NOT_SUPPORTED_WITH_REPLICATION 497L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_DEDUPLICATION +// +// MessageText: +// +// The specified operation is not supported while deduplication is enabled on the target object. +// +#define ERROR_NOT_SUPPORTED_WITH_DEDUPLICATION 498L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_AUDITING +// +// MessageText: +// +// The specified operation is not supported while auditing is enabled on the target object. +// +#define ERROR_NOT_SUPPORTED_WITH_AUDITING 499L + +// +// MessageId: ERROR_USER_PROFILE_LOAD +// +// MessageText: +// +// User profile cannot be loaded. +// +#define ERROR_USER_PROFILE_LOAD 500L + +// +// MessageId: ERROR_SESSION_KEY_TOO_SHORT +// +// MessageText: +// +// The negotiated session key does not meet the minimum length requirement. +// +#define ERROR_SESSION_KEY_TOO_SHORT 501L + +// +// MessageId: ERROR_ACCESS_DENIED_APPDATA +// +// MessageText: +// +// Access denied when accessing the user profile. +// +#define ERROR_ACCESS_DENIED_APPDATA 502L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_MONITORING +// +// MessageText: +// +// The specified operation is not supported while monitoring is enabled on the target object. +// +#define ERROR_NOT_SUPPORTED_WITH_MONITORING 503L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_SNAPSHOT +// +// MessageText: +// +// The specified operation is not supported while snapshot is enabled on the target object. +// +#define ERROR_NOT_SUPPORTED_WITH_SNAPSHOT 504L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_VIRTUALIZATION +// +// MessageText: +// +// The specified operation is not supported while virtualization is enabled on the target object. +// +#define ERROR_NOT_SUPPORTED_WITH_VIRTUALIZATION 505L + +// +// MessageId: ERROR_BYPASSIO_FLT_NOT_SUPPORTED +// +// MessageText: +// +// At least one minifilter does not support bypass IO. +// +#define ERROR_BYPASSIO_FLT_NOT_SUPPORTED 506L + +// +// MessageId: ERROR_DEVICE_RESET_REQUIRED +// +// MessageText: +// +// The device needs to be reset. +// +#define ERROR_DEVICE_RESET_REQUIRED 507L + +// +// MessageId: ERROR_VOLUME_WRITE_ACCESS_DENIED +// +// MessageText: +// +// The volume is opened for exclusive write access, preventing files from being opened for write access. +// +#define ERROR_VOLUME_WRITE_ACCESS_DENIED 508L + +// +// MessageId: ERROR_NOT_SUPPORTED_WITH_CACHED_HANDLE +// +// MessageText: +// +// The specified operation is not supported on a file opened for cached IO. +// +#define ERROR_NOT_SUPPORTED_WITH_CACHED_HANDLE 509L + +// +// MessageId: ERROR_FS_METADATA_INCONSISTENT +// +// MessageText: +// +// The file system encountered a metadata file with inconsistent data. +// +#define ERROR_FS_METADATA_INCONSISTENT 510L + +// +// MessageId: ERROR_BLOCK_WEAK_REFERENCE_INVALID +// +// MessageText: +// +// A file system block being referenced has been modified after containing a weak reference. +// +#define ERROR_BLOCK_WEAK_REFERENCE_INVALID 511L + +// +// MessageId: ERROR_BLOCK_SOURCE_WEAK_REFERENCE_INVALID +// +// MessageText: +// +// The source file system block being referenced has been modified after containing a weak reference. +// +#define ERROR_BLOCK_SOURCE_WEAK_REFERENCE_INVALID 512L + +// +// MessageId: ERROR_BLOCK_TARGET_WEAK_REFERENCE_INVALID +// +// MessageText: +// +// The target file system block being referenced has been modified after containing a weak reference. +// +#define ERROR_BLOCK_TARGET_WEAK_REFERENCE_INVALID 513L + +// +// MessageId: ERROR_BLOCK_SHARED +// +// MessageText: +// +// The target file system block is shared between multiple extents. +// +#define ERROR_BLOCK_SHARED 514L + +// +// MessageId: ERROR_VOLUME_UPGRADE_NOT_NEEDED +// +// MessageText: +// +// Volume format is up to date already. +// +#define ERROR_VOLUME_UPGRADE_NOT_NEEDED 515L + +// +// MessageId: ERROR_VOLUME_UPGRADE_PENDING +// +// MessageText: +// +// Volume upgrade is pending. A reboot or re-mount of the volume is required. +// +#define ERROR_VOLUME_UPGRADE_PENDING 516L + +// +// MessageId: ERROR_VOLUME_UPGRADE_DISABLED +// +// MessageText: +// +// Volume upgrade is disabled. +// +#define ERROR_VOLUME_UPGRADE_DISABLED 517L + +// +// MessageId: ERROR_VOLUME_UPGRADE_DISABLED_TILL_OS_DOWNGRADE_EXPIRED +// +// MessageText: +// +// Volume upgrade is disabled until Windows OS downgrade period has expired. +// +#define ERROR_VOLUME_UPGRADE_DISABLED_TILL_OS_DOWNGRADE_EXPIRED 518L + +// +// MessageId: ERROR_INVALID_CONFIG_VALUE +// +// MessageText: +// +// The configured value is not valid. +// +#define ERROR_INVALID_CONFIG_VALUE 519L + +// +// MessageId: ERROR_MEMORY_DECOMPRESSION_HW_ERROR +// +// MessageText: +// +// The data stored in compressed memory falied to be decompressed due to encountering an uncorrectable hardware memory error. +// +#define ERROR_MEMORY_DECOMPRESSION_HW_ERROR 520L + +// +// MessageId: ERROR_VOLUME_ROLLBACK_DETECTED +// +// MessageText: +// +// The operation was aborted because the observed volume identity or current state was not expected. +// +#define ERROR_VOLUME_ROLLBACK_DETECTED 521L + +// +// MessageId: ERROR_CLOUD_FILE_HYDRATION_NOT_AVAILABLE +// +// MessageText: +// +// Cloud file cannot be retrieved from your cloud provider. Try again after responding to your cloud provider's request for action. +// +#define ERROR_CLOUD_FILE_HYDRATION_NOT_AVAILABLE 523L + +// +// MessageId: ERROR_SYSTEM_FILE_NOT_SUPPORTED +// +// MessageText: +// +// The specified operation is not supported on a system file. +// +#define ERROR_SYSTEM_FILE_NOT_SUPPORTED 525L + +// +// **** Available SYSTEM error codes **** +// +// +// MessageId: ERROR_ARITHMETIC_OVERFLOW +// +// MessageText: +// +// Arithmetic result exceeded 32 bits. +// +#define ERROR_ARITHMETIC_OVERFLOW 534L + +// +// MessageId: ERROR_PIPE_CONNECTED +// +// MessageText: +// +// There is a process on other end of the pipe. +// +#define ERROR_PIPE_CONNECTED 535L + +// +// MessageId: ERROR_PIPE_LISTENING +// +// MessageText: +// +// Waiting for a process to open the other end of the pipe. +// +#define ERROR_PIPE_LISTENING 536L + +// +// MessageId: ERROR_VERIFIER_STOP +// +// MessageText: +// +// Application verifier has found an error in the current process. +// +#define ERROR_VERIFIER_STOP 537L + +// +// MessageId: ERROR_ABIOS_ERROR +// +// MessageText: +// +// An error occurred in the ABIOS subsystem. +// +#define ERROR_ABIOS_ERROR 538L + +// +// MessageId: ERROR_WX86_WARNING +// +// MessageText: +// +// A warning occurred in the WX86 subsystem. +// +#define ERROR_WX86_WARNING 539L + +// +// MessageId: ERROR_WX86_ERROR +// +// MessageText: +// +// An error occurred in the WX86 subsystem. +// +#define ERROR_WX86_ERROR 540L + +// +// MessageId: ERROR_TIMER_NOT_CANCELED +// +// MessageText: +// +// An attempt was made to cancel or set a timer that has an associated APC and the subject thread is not the thread that originally set the timer with an associated APC routine. +// +#define ERROR_TIMER_NOT_CANCELED 541L + +// +// MessageId: ERROR_UNWIND +// +// MessageText: +// +// Unwind exception code. +// +#define ERROR_UNWIND 542L + +// +// MessageId: ERROR_BAD_STACK +// +// MessageText: +// +// An invalid or unaligned stack was encountered during an unwind operation. +// +#define ERROR_BAD_STACK 543L + +// +// MessageId: ERROR_INVALID_UNWIND_TARGET +// +// MessageText: +// +// An invalid unwind target was encountered during an unwind operation. +// +#define ERROR_INVALID_UNWIND_TARGET 544L + +// +// MessageId: ERROR_INVALID_PORT_ATTRIBUTES +// +// MessageText: +// +// Invalid Object Attributes specified to NtCreatePort or invalid Port Attributes specified to NtConnectPort +// +#define ERROR_INVALID_PORT_ATTRIBUTES 545L + +// +// MessageId: ERROR_PORT_MESSAGE_TOO_LONG +// +// MessageText: +// +// Length of message passed to NtRequestPort or NtRequestWaitReplyPort was longer than the maximum message allowed by the port. +// +#define ERROR_PORT_MESSAGE_TOO_LONG 546L + +// +// MessageId: ERROR_INVALID_QUOTA_LOWER +// +// MessageText: +// +// An attempt was made to lower a quota limit below the current usage. +// +#define ERROR_INVALID_QUOTA_LOWER 547L + +// +// MessageId: ERROR_DEVICE_ALREADY_ATTACHED +// +// MessageText: +// +// An attempt was made to attach to a device that was already attached to another device. +// +#define ERROR_DEVICE_ALREADY_ATTACHED 548L + +// +// MessageId: ERROR_INSTRUCTION_MISALIGNMENT +// +// MessageText: +// +// An attempt was made to execute an instruction at an unaligned address and the host system does not support unaligned instruction references. +// +#define ERROR_INSTRUCTION_MISALIGNMENT 549L + +// +// MessageId: ERROR_PROFILING_NOT_STARTED +// +// MessageText: +// +// Profiling not started. +// +#define ERROR_PROFILING_NOT_STARTED 550L + +// +// MessageId: ERROR_PROFILING_NOT_STOPPED +// +// MessageText: +// +// Profiling not stopped. +// +#define ERROR_PROFILING_NOT_STOPPED 551L + +// +// MessageId: ERROR_COULD_NOT_INTERPRET +// +// MessageText: +// +// The passed ACL did not contain the minimum required information. +// +#define ERROR_COULD_NOT_INTERPRET 552L + +// +// MessageId: ERROR_PROFILING_AT_LIMIT +// +// MessageText: +// +// The number of active profiling objects is at the maximum and no more may be started. +// +#define ERROR_PROFILING_AT_LIMIT 553L + +// +// MessageId: ERROR_CANT_WAIT +// +// MessageText: +// +// Used to indicate that an operation cannot continue without blocking for I/O. +// +#define ERROR_CANT_WAIT 554L + +// +// MessageId: ERROR_CANT_TERMINATE_SELF +// +// MessageText: +// +// Indicates that a thread attempted to terminate itself by default (called NtTerminateThread with NULL) and it was the last thread in the current process. +// +#define ERROR_CANT_TERMINATE_SELF 555L + +// +// MessageId: ERROR_UNEXPECTED_MM_CREATE_ERR +// +// MessageText: +// +// If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter. +// In this case information is lost, however, the filter correctly handles the exception. +// +#define ERROR_UNEXPECTED_MM_CREATE_ERR 556L + +// +// MessageId: ERROR_UNEXPECTED_MM_MAP_ERROR +// +// MessageText: +// +// If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter. +// In this case information is lost, however, the filter correctly handles the exception. +// +#define ERROR_UNEXPECTED_MM_MAP_ERROR 557L + +// +// MessageId: ERROR_UNEXPECTED_MM_EXTEND_ERR +// +// MessageText: +// +// If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter. +// In this case information is lost, however, the filter correctly handles the exception. +// +#define ERROR_UNEXPECTED_MM_EXTEND_ERR 558L + +// +// MessageId: ERROR_BAD_FUNCTION_TABLE +// +// MessageText: +// +// A malformed function table was encountered during an unwind operation. +// +#define ERROR_BAD_FUNCTION_TABLE 559L + +// +// MessageId: ERROR_NO_GUID_TRANSLATION +// +// MessageText: +// +// Indicates that an attempt was made to assign protection to a file system file or directory and one of the SIDs in the security descriptor could not be translated into a GUID that could be stored by the file system. +// This causes the protection attempt to fail, which may cause a file creation attempt to fail. +// +#define ERROR_NO_GUID_TRANSLATION 560L + +// +// MessageId: ERROR_INVALID_LDT_SIZE +// +// MessageText: +// +// Indicates that an attempt was made to grow an LDT by setting its size, or that the size was not an even number of selectors. +// +#define ERROR_INVALID_LDT_SIZE 561L + +// +// MessageId: ERROR_INVALID_LDT_OFFSET +// +// MessageText: +// +// Indicates that the starting value for the LDT information was not an integral multiple of the selector size. +// +#define ERROR_INVALID_LDT_OFFSET 563L + +// +// MessageId: ERROR_INVALID_LDT_DESCRIPTOR +// +// MessageText: +// +// Indicates that the user supplied an invalid descriptor when trying to set up Ldt descriptors. +// +#define ERROR_INVALID_LDT_DESCRIPTOR 564L + +// +// MessageId: ERROR_TOO_MANY_THREADS +// +// MessageText: +// +// Indicates a process has too many threads to perform the requested action. For example, assignment of a primary token may only be performed when a process has zero or one threads. +// +#define ERROR_TOO_MANY_THREADS 565L + +// +// MessageId: ERROR_THREAD_NOT_IN_PROCESS +// +// MessageText: +// +// An attempt was made to operate on a thread within a specific process, but the thread specified is not in the process specified. +// +#define ERROR_THREAD_NOT_IN_PROCESS 566L + +// +// MessageId: ERROR_PAGEFILE_QUOTA_EXCEEDED +// +// MessageText: +// +// Pagefile quota was exceeded. +// +#define ERROR_PAGEFILE_QUOTA_EXCEEDED 567L + +// +// MessageId: ERROR_LOGON_SERVER_CONFLICT +// +// MessageText: +// +// The Netlogon service cannot start because another Netlogon service running in the domain conflicts with the specified role. +// +#define ERROR_LOGON_SERVER_CONFLICT 568L + +// +// MessageId: ERROR_SYNCHRONIZATION_REQUIRED +// +// MessageText: +// +// The SAM database on a Windows Server is significantly out of synchronization with the copy on the Domain Controller. A complete synchronization is required. +// +#define ERROR_SYNCHRONIZATION_REQUIRED 569L + +// +// MessageId: ERROR_NET_OPEN_FAILED +// +// MessageText: +// +// The NtCreateFile API failed. This error should never be returned to an application, it is a place holder for the Windows Lan Manager Redirector to use in its internal error mapping routines. +// +#define ERROR_NET_OPEN_FAILED 570L + +// +// MessageId: ERROR_IO_PRIVILEGE_FAILED +// +// MessageText: +// +// {Privilege Failed} +// The I/O permissions for the process could not be changed. +// +#define ERROR_IO_PRIVILEGE_FAILED 571L + +// +// MessageId: ERROR_CONTROL_C_EXIT +// +// MessageText: +// +// {Application Exit by CTRL+C} +// The application terminated as a result of a CTRL+C. +// +#define ERROR_CONTROL_C_EXIT 572L // winnt + +// +// MessageId: ERROR_MISSING_SYSTEMFILE +// +// MessageText: +// +// {Missing System File} +// The required system file %hs is bad or missing. +// +#define ERROR_MISSING_SYSTEMFILE 573L + +// +// MessageId: ERROR_UNHANDLED_EXCEPTION +// +// MessageText: +// +// {Application Error} +// The exception %s (0x%08lx) occurred in the application at location 0x%08lx. +// +#define ERROR_UNHANDLED_EXCEPTION 574L + +// +// MessageId: ERROR_APP_INIT_FAILURE +// +// MessageText: +// +// {Application Error} +// The application was unable to start correctly (0x%lx). Click OK to close the application. +// +#define ERROR_APP_INIT_FAILURE 575L + +// +// MessageId: ERROR_PAGEFILE_CREATE_FAILED +// +// MessageText: +// +// {Unable to Create Paging File} +// The creation of the paging file %hs failed (%lx). The requested size was %ld. +// +#define ERROR_PAGEFILE_CREATE_FAILED 576L + +// +// MessageId: ERROR_INVALID_IMAGE_HASH +// +// MessageText: +// +// Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. +// +#define ERROR_INVALID_IMAGE_HASH 577L + +// +// MessageId: ERROR_NO_PAGEFILE +// +// MessageText: +// +// {No Paging File Specified} +// No paging file was specified in the system configuration. +// +#define ERROR_NO_PAGEFILE 578L + +// +// MessageId: ERROR_ILLEGAL_FLOAT_CONTEXT +// +// MessageText: +// +// {EXCEPTION} +// A real-mode application issued a floating-point instruction and floating-point hardware is not present. +// +#define ERROR_ILLEGAL_FLOAT_CONTEXT 579L + +// +// MessageId: ERROR_NO_EVENT_PAIR +// +// MessageText: +// +// An event pair synchronization operation was performed using the thread specific client/server event pair object, but no event pair object was associated with the thread. +// +#define ERROR_NO_EVENT_PAIR 580L + +// +// MessageId: ERROR_DOMAIN_CTRLR_CONFIG_ERROR +// +// MessageText: +// +// A Windows Server has an incorrect configuration. +// +#define ERROR_DOMAIN_CTRLR_CONFIG_ERROR 581L + +// +// MessageId: ERROR_ILLEGAL_CHARACTER +// +// MessageText: +// +// An illegal character was encountered. For a multi-byte character set this includes a lead byte without a succeeding trail byte. For the Unicode character set this includes the characters 0xFFFF and 0xFFFE. +// +#define ERROR_ILLEGAL_CHARACTER 582L + +// +// MessageId: ERROR_UNDEFINED_CHARACTER +// +// MessageText: +// +// The Unicode character is not defined in the Unicode character set installed on the system. +// +#define ERROR_UNDEFINED_CHARACTER 583L + +// +// MessageId: ERROR_FLOPPY_VOLUME +// +// MessageText: +// +// The paging file cannot be created on a floppy diskette. +// +#define ERROR_FLOPPY_VOLUME 584L + +// +// MessageId: ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT +// +// MessageText: +// +// The system BIOS failed to connect a system interrupt to the device or bus for which the device is connected. +// +#define ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT 585L + +// +// MessageId: ERROR_BACKUP_CONTROLLER +// +// MessageText: +// +// This operation is only allowed for the Primary Domain Controller of the domain. +// +#define ERROR_BACKUP_CONTROLLER 586L + +// +// MessageId: ERROR_MUTANT_LIMIT_EXCEEDED +// +// MessageText: +// +// An attempt was made to acquire a mutant such that its maximum count would have been exceeded. +// +#define ERROR_MUTANT_LIMIT_EXCEEDED 587L + +// +// MessageId: ERROR_FS_DRIVER_REQUIRED +// +// MessageText: +// +// A volume has been accessed for which a file system driver is required that has not yet been loaded. +// +#define ERROR_FS_DRIVER_REQUIRED 588L + +// +// MessageId: ERROR_CANNOT_LOAD_REGISTRY_FILE +// +// MessageText: +// +// {Registry File Failure} +// The registry cannot load the hive (file): +// %hs +// or its log or alternate. +// It is corrupt, absent, or not writable. +// +#define ERROR_CANNOT_LOAD_REGISTRY_FILE 589L + +// +// MessageId: ERROR_DEBUG_ATTACH_FAILED +// +// MessageText: +// +// {Unexpected Failure in DebugActiveProcess} +// An unexpected failure occurred while processing a DebugActiveProcess API request. You may choose OK to terminate the process, or Cancel to ignore the error. +// +#define ERROR_DEBUG_ATTACH_FAILED 590L + +// +// MessageId: ERROR_SYSTEM_PROCESS_TERMINATED +// +// MessageText: +// +// {Fatal System Error} +// The %hs system process terminated unexpectedly with a status of 0x%08x (0x%08x 0x%08x). +// The system has been shut down. +// +#define ERROR_SYSTEM_PROCESS_TERMINATED 591L + +// +// MessageId: ERROR_DATA_NOT_ACCEPTED +// +// MessageText: +// +// {Data Not Accepted} +// The TDI client could not handle the data received during an indication. +// +#define ERROR_DATA_NOT_ACCEPTED 592L + +// +// MessageId: ERROR_VDM_HARD_ERROR +// +// MessageText: +// +// NTVDM encountered a hard error. +// +#define ERROR_VDM_HARD_ERROR 593L + +// +// MessageId: ERROR_DRIVER_CANCEL_TIMEOUT +// +// MessageText: +// +// {Cancel Timeout} +// The driver %hs failed to complete a cancelled I/O request in the allotted time. +// +#define ERROR_DRIVER_CANCEL_TIMEOUT 594L + +// +// MessageId: ERROR_REPLY_MESSAGE_MISMATCH +// +// MessageText: +// +// {Reply Message Mismatch} +// An attempt was made to reply to an LPC message, but the thread specified by the client ID in the message was not waiting on that message. +// +#define ERROR_REPLY_MESSAGE_MISMATCH 595L + +// +// MessageId: ERROR_LOST_WRITEBEHIND_DATA +// +// MessageText: +// +// {Delayed Write Failed} +// Windows was unable to save all the data for the file %hs. The data has been lost. +// This error may be caused by a failure of your computer hardware or network connection. Please try to save this file elsewhere. +// +#define ERROR_LOST_WRITEBEHIND_DATA 596L + +// +// MessageId: ERROR_CLIENT_SERVER_PARAMETERS_INVALID +// +// MessageText: +// +// The parameter(s) passed to the server in the client/server shared memory window were invalid. Too much data may have been put in the shared memory window. +// +#define ERROR_CLIENT_SERVER_PARAMETERS_INVALID 597L + +// +// MessageId: ERROR_NOT_TINY_STREAM +// +// MessageText: +// +// The stream is not a tiny stream. +// +#define ERROR_NOT_TINY_STREAM 598L + +// +// MessageId: ERROR_STACK_OVERFLOW_READ +// +// MessageText: +// +// The request must be handled by the stack overflow code. +// +#define ERROR_STACK_OVERFLOW_READ 599L + +// +// MessageId: ERROR_CONVERT_TO_LARGE +// +// MessageText: +// +// Internal OFS status codes indicating how an allocation operation is handled. Either it is retried after the containing onode is moved or the extent stream is converted to a large stream. +// +#define ERROR_CONVERT_TO_LARGE 600L + +// +// MessageId: ERROR_FOUND_OUT_OF_SCOPE +// +// MessageText: +// +// The attempt to find the object found an object matching by ID on the volume but it is out of the scope of the handle used for the operation. +// +#define ERROR_FOUND_OUT_OF_SCOPE 601L + +// +// MessageId: ERROR_ALLOCATE_BUCKET +// +// MessageText: +// +// The bucket array must be grown. Retry transaction after doing so. +// +#define ERROR_ALLOCATE_BUCKET 602L + +// +// MessageId: ERROR_MARSHALL_OVERFLOW +// +// MessageText: +// +// The user/kernel marshalling buffer has overflowed. +// +#define ERROR_MARSHALL_OVERFLOW 603L + +// +// MessageId: ERROR_INVALID_VARIANT +// +// MessageText: +// +// The supplied variant structure contains invalid data. +// +#define ERROR_INVALID_VARIANT 604L + +// +// MessageId: ERROR_BAD_COMPRESSION_BUFFER +// +// MessageText: +// +// The specified buffer contains ill-formed data. +// +#define ERROR_BAD_COMPRESSION_BUFFER 605L + +// +// MessageId: ERROR_AUDIT_FAILED +// +// MessageText: +// +// {Audit Failed} +// An attempt to generate a security audit failed. +// +#define ERROR_AUDIT_FAILED 606L + +// +// MessageId: ERROR_TIMER_RESOLUTION_NOT_SET +// +// MessageText: +// +// The timer resolution was not previously set by the current process. +// +#define ERROR_TIMER_RESOLUTION_NOT_SET 607L + +// +// MessageId: ERROR_INSUFFICIENT_LOGON_INFO +// +// MessageText: +// +// There is insufficient account information to log you on. +// +#define ERROR_INSUFFICIENT_LOGON_INFO 608L + +// +// MessageId: ERROR_BAD_DLL_ENTRYPOINT +// +// MessageText: +// +// {Invalid DLL Entrypoint} +// The dynamic link library %hs is not written correctly. The stack pointer has been left in an inconsistent state. +// The entrypoint should be declared as WINAPI or STDCALL. Select YES to fail the DLL load. Select NO to continue execution. Selecting NO may cause the application to operate incorrectly. +// +#define ERROR_BAD_DLL_ENTRYPOINT 609L + +// +// MessageId: ERROR_BAD_SERVICE_ENTRYPOINT +// +// MessageText: +// +// {Invalid Service Callback Entrypoint} +// The %hs service is not written correctly. The stack pointer has been left in an inconsistent state. +// The callback entrypoint should be declared as WINAPI or STDCALL. Selecting OK will cause the service to continue operation. However, the service process may operate incorrectly. +// +#define ERROR_BAD_SERVICE_ENTRYPOINT 610L + +// +// MessageId: ERROR_IP_ADDRESS_CONFLICT1 +// +// MessageText: +// +// There is an IP address conflict with another system on the network +// +#define ERROR_IP_ADDRESS_CONFLICT1 611L + +// +// MessageId: ERROR_IP_ADDRESS_CONFLICT2 +// +// MessageText: +// +// There is an IP address conflict with another system on the network +// +#define ERROR_IP_ADDRESS_CONFLICT2 612L + +// +// MessageId: ERROR_REGISTRY_QUOTA_LIMIT +// +// MessageText: +// +// {Low On Registry Space} +// The system has reached the maximum size allowed for the system part of the registry. Additional storage requests will be ignored. +// +#define ERROR_REGISTRY_QUOTA_LIMIT 613L + +// +// MessageId: ERROR_NO_CALLBACK_ACTIVE +// +// MessageText: +// +// A callback return system service cannot be executed when no callback is active. +// +#define ERROR_NO_CALLBACK_ACTIVE 614L + +// +// MessageId: ERROR_PWD_TOO_SHORT +// +// MessageText: +// +// The password provided is too short to meet the policy of your user account. +// Please choose a longer password. +// +#define ERROR_PWD_TOO_SHORT 615L + +// +// MessageId: ERROR_PWD_TOO_RECENT +// +// MessageText: +// +// The policy of your user account does not allow you to change passwords too frequently. +// This is done to prevent users from changing back to a familiar, but potentially discovered, password. +// If you feel your password has been compromised then please contact your administrator immediately to have a new one assigned. +// +#define ERROR_PWD_TOO_RECENT 616L + +// +// MessageId: ERROR_PWD_HISTORY_CONFLICT +// +// MessageText: +// +// You have attempted to change your password to one that you have used in the past. +// The policy of your user account does not allow this. Please select a password that you have not previously used. +// +#define ERROR_PWD_HISTORY_CONFLICT 617L + +// +// MessageId: ERROR_UNSUPPORTED_COMPRESSION +// +// MessageText: +// +// The specified compression format is unsupported. +// +#define ERROR_UNSUPPORTED_COMPRESSION 618L + +// +// MessageId: ERROR_INVALID_HW_PROFILE +// +// MessageText: +// +// The specified hardware profile configuration is invalid. +// +#define ERROR_INVALID_HW_PROFILE 619L + +// +// MessageId: ERROR_INVALID_PLUGPLAY_DEVICE_PATH +// +// MessageText: +// +// The specified Plug and Play registry device path is invalid. +// +#define ERROR_INVALID_PLUGPLAY_DEVICE_PATH 620L + +// +// MessageId: ERROR_QUOTA_LIST_INCONSISTENT +// +// MessageText: +// +// The specified quota list is internally inconsistent with its descriptor. +// +#define ERROR_QUOTA_LIST_INCONSISTENT 621L + +// +// MessageId: ERROR_EVALUATION_EXPIRATION +// +// MessageText: +// +// {Windows Evaluation Notification} +// The evaluation period for this installation of Windows has expired. This system will shutdown in 1 hour. To restore access to this installation of Windows, please upgrade this installation using a licensed distribution of this product. +// +#define ERROR_EVALUATION_EXPIRATION 622L + +// +// MessageId: ERROR_ILLEGAL_DLL_RELOCATION +// +// MessageText: +// +// {Illegal System DLL Relocation} +// The system DLL %hs was relocated in memory. The application will not run properly. +// The relocation occurred because the DLL %hs occupied an address range reserved for Windows system DLLs. The vendor supplying the DLL should be contacted for a new DLL. +// +#define ERROR_ILLEGAL_DLL_RELOCATION 623L + +// +// MessageId: ERROR_DLL_INIT_FAILED_LOGOFF +// +// MessageText: +// +// {DLL Initialization Failed} +// The application failed to initialize because the window station is shutting down. +// +#define ERROR_DLL_INIT_FAILED_LOGOFF 624L + +// +// MessageId: ERROR_VALIDATE_CONTINUE +// +// MessageText: +// +// The validation process needs to continue on to the next step. +// +#define ERROR_VALIDATE_CONTINUE 625L + +// +// MessageId: ERROR_NO_MORE_MATCHES +// +// MessageText: +// +// There are no more matches for the current index enumeration. +// +#define ERROR_NO_MORE_MATCHES 626L + +// +// MessageId: ERROR_RANGE_LIST_CONFLICT +// +// MessageText: +// +// The range could not be added to the range list because of a conflict. +// +#define ERROR_RANGE_LIST_CONFLICT 627L + +// +// MessageId: ERROR_SERVER_SID_MISMATCH +// +// MessageText: +// +// The server process is running under a SID different than that required by client. +// +#define ERROR_SERVER_SID_MISMATCH 628L + +// +// MessageId: ERROR_CANT_ENABLE_DENY_ONLY +// +// MessageText: +// +// A group marked use for deny only cannot be enabled. +// +#define ERROR_CANT_ENABLE_DENY_ONLY 629L + +// +// MessageId: ERROR_FLOAT_MULTIPLE_FAULTS +// +// MessageText: +// +// {EXCEPTION} +// Multiple floating point faults. +// +#define ERROR_FLOAT_MULTIPLE_FAULTS 630L // winnt + +// +// MessageId: ERROR_FLOAT_MULTIPLE_TRAPS +// +// MessageText: +// +// {EXCEPTION} +// Multiple floating point traps. +// +#define ERROR_FLOAT_MULTIPLE_TRAPS 631L // winnt + +// +// MessageId: ERROR_NOINTERFACE +// +// MessageText: +// +// The requested interface is not supported. +// +#define ERROR_NOINTERFACE 632L + +// +// MessageId: ERROR_DRIVER_FAILED_SLEEP +// +// MessageText: +// +// {System Standby Failed} +// The driver %hs does not support standby mode. Updating this driver may allow the system to go to standby mode. +// +#define ERROR_DRIVER_FAILED_SLEEP 633L + +// +// MessageId: ERROR_CORRUPT_SYSTEM_FILE +// +// MessageText: +// +// The system file %1 has become corrupt and has been replaced. +// +#define ERROR_CORRUPT_SYSTEM_FILE 634L + +// +// MessageId: ERROR_COMMITMENT_MINIMUM +// +// MessageText: +// +// {Virtual Memory Minimum Too Low} +// Your system is low on virtual memory. Windows is increasing the size of your virtual memory paging file. +// During this process, memory requests for some applications may be denied. For more information, see Help. +// +#define ERROR_COMMITMENT_MINIMUM 635L + +// +// MessageId: ERROR_PNP_RESTART_ENUMERATION +// +// MessageText: +// +// A device was removed so enumeration must be restarted. +// +#define ERROR_PNP_RESTART_ENUMERATION 636L + +// +// MessageId: ERROR_SYSTEM_IMAGE_BAD_SIGNATURE +// +// MessageText: +// +// {Fatal System Error} +// The system image %s is not properly signed. +// The file has been replaced with the signed file. +// The system has been shut down. +// +#define ERROR_SYSTEM_IMAGE_BAD_SIGNATURE 637L + +// +// MessageId: ERROR_PNP_REBOOT_REQUIRED +// +// MessageText: +// +// Device will not start without a reboot. +// +#define ERROR_PNP_REBOOT_REQUIRED 638L + +// +// MessageId: ERROR_INSUFFICIENT_POWER +// +// MessageText: +// +// There is not enough power to complete the requested operation. +// +#define ERROR_INSUFFICIENT_POWER 639L + +// +// MessageId: ERROR_MULTIPLE_FAULT_VIOLATION +// +// MessageText: +// +// ERROR_MULTIPLE_FAULT_VIOLATION +// +#define ERROR_MULTIPLE_FAULT_VIOLATION 640L + +// +// MessageId: ERROR_SYSTEM_SHUTDOWN +// +// MessageText: +// +// The system is in the process of shutting down. +// +#define ERROR_SYSTEM_SHUTDOWN 641L + +// +// MessageId: ERROR_PORT_NOT_SET +// +// MessageText: +// +// An attempt to remove a processes DebugPort was made, but a port was not already associated with the process. +// +#define ERROR_PORT_NOT_SET 642L + +// +// MessageId: ERROR_DS_VERSION_CHECK_FAILURE +// +// MessageText: +// +// This version of Windows is not compatible with the behavior version of directory forest, domain or domain controller. +// +#define ERROR_DS_VERSION_CHECK_FAILURE 643L + +// +// MessageId: ERROR_RANGE_NOT_FOUND +// +// MessageText: +// +// The specified range could not be found in the range list. +// +#define ERROR_RANGE_NOT_FOUND 644L + +// +// MessageId: ERROR_NOT_SAFE_MODE_DRIVER +// +// MessageText: +// +// The driver was not loaded because the system is booting into safe mode. +// +#define ERROR_NOT_SAFE_MODE_DRIVER 646L + +// +// MessageId: ERROR_FAILED_DRIVER_ENTRY +// +// MessageText: +// +// The driver was not loaded because it failed its initialization call. +// +#define ERROR_FAILED_DRIVER_ENTRY 647L + +// +// MessageId: ERROR_DEVICE_ENUMERATION_ERROR +// +// MessageText: +// +// The "%hs" encountered an error while applying power or reading the device configuration. +// This may be caused by a failure of your hardware or by a poor connection. +// +#define ERROR_DEVICE_ENUMERATION_ERROR 648L + +// +// MessageId: ERROR_MOUNT_POINT_NOT_RESOLVED +// +// MessageText: +// +// The create operation failed because the name contained at least one mount point which resolves to a volume to which the specified device object is not attached. +// +#define ERROR_MOUNT_POINT_NOT_RESOLVED 649L + +// +// MessageId: ERROR_INVALID_DEVICE_OBJECT_PARAMETER +// +// MessageText: +// +// The device object parameter is either not a valid device object or is not attached to the volume specified by the file name. +// +#define ERROR_INVALID_DEVICE_OBJECT_PARAMETER 650L + +// +// MessageId: ERROR_MCA_OCCURED +// +// MessageText: +// +// A Machine Check Error has occurred. Please check the system eventlog for additional information. +// +#define ERROR_MCA_OCCURED 651L + +// +// MessageId: ERROR_DRIVER_DATABASE_ERROR +// +// MessageText: +// +// There was error [%2] processing the driver database. +// +#define ERROR_DRIVER_DATABASE_ERROR 652L + +// +// MessageId: ERROR_SYSTEM_HIVE_TOO_LARGE +// +// MessageText: +// +// System hive size has exceeded its limit. +// +#define ERROR_SYSTEM_HIVE_TOO_LARGE 653L + +// +// MessageId: ERROR_DRIVER_FAILED_PRIOR_UNLOAD +// +// MessageText: +// +// The driver could not be loaded because a previous version of the driver is still in memory. +// +#define ERROR_DRIVER_FAILED_PRIOR_UNLOAD 654L + +// +// MessageId: ERROR_VOLSNAP_PREPARE_HIBERNATE +// +// MessageText: +// +// {Volume Shadow Copy Service} +// Please wait while the Volume Shadow Copy Service prepares volume %hs for hibernation. +// +#define ERROR_VOLSNAP_PREPARE_HIBERNATE 655L + +// +// MessageId: ERROR_HIBERNATION_FAILURE +// +// MessageText: +// +// The system has failed to hibernate (The error code is %hs). Hibernation will be disabled until the system is restarted. +// +#define ERROR_HIBERNATION_FAILURE 656L + +// +// MessageId: ERROR_PWD_TOO_LONG +// +// MessageText: +// +// The password provided is too long to meet the policy of your user account. +// Please choose a shorter password. +// +#define ERROR_PWD_TOO_LONG 657L + +// +// MessageId: ERROR_FILE_SYSTEM_LIMITATION +// +// MessageText: +// +// The requested operation could not be completed due to a file system limitation +// +#define ERROR_FILE_SYSTEM_LIMITATION 665L + +// +// MessageId: ERROR_ASSERTION_FAILURE +// +// MessageText: +// +// An assertion failure has occurred. +// +#define ERROR_ASSERTION_FAILURE 668L + +// +// MessageId: ERROR_ACPI_ERROR +// +// MessageText: +// +// An error occurred in the ACPI subsystem. +// +#define ERROR_ACPI_ERROR 669L + +// +// MessageId: ERROR_WOW_ASSERTION +// +// MessageText: +// +// WOW Assertion Error. +// +#define ERROR_WOW_ASSERTION 670L + +// +// MessageId: ERROR_PNP_BAD_MPS_TABLE +// +// MessageText: +// +// A device is missing in the system BIOS MPS table. This device will not be used. +// Please contact your system vendor for system BIOS update. +// +#define ERROR_PNP_BAD_MPS_TABLE 671L + +// +// MessageId: ERROR_PNP_TRANSLATION_FAILED +// +// MessageText: +// +// A translator failed to translate resources. +// +#define ERROR_PNP_TRANSLATION_FAILED 672L + +// +// MessageId: ERROR_PNP_IRQ_TRANSLATION_FAILED +// +// MessageText: +// +// A IRQ translator failed to translate resources. +// +#define ERROR_PNP_IRQ_TRANSLATION_FAILED 673L + +// +// MessageId: ERROR_PNP_INVALID_ID +// +// MessageText: +// +// Driver %2 returned invalid ID for a child device (%3). +// +#define ERROR_PNP_INVALID_ID 674L + +// +// MessageId: ERROR_WAKE_SYSTEM_DEBUGGER +// +// MessageText: +// +// {Kernel Debugger Awakened} +// the system debugger was awakened by an interrupt. +// +#define ERROR_WAKE_SYSTEM_DEBUGGER 675L + +// +// MessageId: ERROR_HANDLES_CLOSED +// +// MessageText: +// +// {Handles Closed} +// Handles to objects have been automatically closed as a result of the requested operation. +// +#define ERROR_HANDLES_CLOSED 676L + +// +// MessageId: ERROR_EXTRANEOUS_INFORMATION +// +// MessageText: +// +// {Too Much Information} +// The specified access control list (ACL) contained more information than was expected. +// +#define ERROR_EXTRANEOUS_INFORMATION 677L + +// +// MessageId: ERROR_RXACT_COMMIT_NECESSARY +// +// MessageText: +// +// This warning level status indicates that the transaction state already exists for the registry sub-tree, but that a transaction commit was previously aborted. +// The commit has NOT been completed, but has not been rolled back either (so it may still be committed if desired). +// +#define ERROR_RXACT_COMMIT_NECESSARY 678L + +// +// MessageId: ERROR_MEDIA_CHECK +// +// MessageText: +// +// {Media Changed} +// The media may have changed. +// +#define ERROR_MEDIA_CHECK 679L + +// +// MessageId: ERROR_GUID_SUBSTITUTION_MADE +// +// MessageText: +// +// {GUID Substitution} +// During the translation of a global identifier (GUID) to a Windows security ID (SID), no administratively-defined GUID prefix was found. +// A substitute prefix was used, which will not compromise system security. However, this may provide a more restrictive access than intended. +// +#define ERROR_GUID_SUBSTITUTION_MADE 680L + +// +// MessageId: ERROR_STOPPED_ON_SYMLINK +// +// MessageText: +// +// The create operation stopped after reaching a symbolic link +// +#define ERROR_STOPPED_ON_SYMLINK 681L + +// +// MessageId: ERROR_LONGJUMP +// +// MessageText: +// +// A long jump has been executed. +// +#define ERROR_LONGJUMP 682L + +// +// MessageId: ERROR_PLUGPLAY_QUERY_VETOED +// +// MessageText: +// +// The Plug and Play query operation was not successful. +// +#define ERROR_PLUGPLAY_QUERY_VETOED 683L + +// +// MessageId: ERROR_UNWIND_CONSOLIDATE +// +// MessageText: +// +// A frame consolidation has been executed. +// +#define ERROR_UNWIND_CONSOLIDATE 684L + +// +// MessageId: ERROR_REGISTRY_HIVE_RECOVERED +// +// MessageText: +// +// {Registry Hive Recovered} +// Registry hive (file): +// %hs +// was corrupted and it has been recovered. Some data might have been lost. +// +#define ERROR_REGISTRY_HIVE_RECOVERED 685L + +// +// MessageId: ERROR_DLL_MIGHT_BE_INSECURE +// +// MessageText: +// +// The application is attempting to run executable code from the module %hs. This may be insecure. An alternative, %hs, is available. Should the application use the secure module %hs? +// +#define ERROR_DLL_MIGHT_BE_INSECURE 686L + +// +// MessageId: ERROR_DLL_MIGHT_BE_INCOMPATIBLE +// +// MessageText: +// +// The application is loading executable code from the module %hs. This is secure, but may be incompatible with previous releases of the operating system. An alternative, %hs, is available. Should the application use the secure module %hs? +// +#define ERROR_DLL_MIGHT_BE_INCOMPATIBLE 687L + +// +// MessageId: ERROR_DBG_EXCEPTION_NOT_HANDLED +// +// MessageText: +// +// Debugger did not handle the exception. +// +#define ERROR_DBG_EXCEPTION_NOT_HANDLED 688L // winnt + +// +// MessageId: ERROR_DBG_REPLY_LATER +// +// MessageText: +// +// Debugger will reply later. +// +#define ERROR_DBG_REPLY_LATER 689L + +// +// MessageId: ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE +// +// MessageText: +// +// Debugger cannot provide handle. +// +#define ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE 690L + +// +// MessageId: ERROR_DBG_TERMINATE_THREAD +// +// MessageText: +// +// Debugger terminated thread. +// +#define ERROR_DBG_TERMINATE_THREAD 691L // winnt + +// +// MessageId: ERROR_DBG_TERMINATE_PROCESS +// +// MessageText: +// +// Debugger terminated process. +// +#define ERROR_DBG_TERMINATE_PROCESS 692L // winnt + +// +// MessageId: ERROR_DBG_CONTROL_C +// +// MessageText: +// +// Debugger got control C. +// +#define ERROR_DBG_CONTROL_C 693L // winnt + +// +// MessageId: ERROR_DBG_PRINTEXCEPTION_C +// +// MessageText: +// +// Debugger printed exception on control C. +// +#define ERROR_DBG_PRINTEXCEPTION_C 694L + +// +// MessageId: ERROR_DBG_RIPEXCEPTION +// +// MessageText: +// +// Debugger received RIP exception. +// +#define ERROR_DBG_RIPEXCEPTION 695L + +// +// MessageId: ERROR_DBG_CONTROL_BREAK +// +// MessageText: +// +// Debugger received control break. +// +#define ERROR_DBG_CONTROL_BREAK 696L // winnt + +// +// MessageId: ERROR_DBG_COMMAND_EXCEPTION +// +// MessageText: +// +// Debugger command communication exception. +// +#define ERROR_DBG_COMMAND_EXCEPTION 697L // winnt + +// +// MessageId: ERROR_OBJECT_NAME_EXISTS +// +// MessageText: +// +// {Object Exists} +// An attempt was made to create an object and the object name already existed. +// +#define ERROR_OBJECT_NAME_EXISTS 698L + +// +// MessageId: ERROR_THREAD_WAS_SUSPENDED +// +// MessageText: +// +// {Thread Suspended} +// A thread termination occurred while the thread was suspended. The thread was resumed, and termination proceeded. +// +#define ERROR_THREAD_WAS_SUSPENDED 699L + +// +// MessageId: ERROR_IMAGE_NOT_AT_BASE +// +// MessageText: +// +// {Image Relocated} +// An image file could not be mapped at the address specified in the image file. Local fixups must be performed on this image. +// +#define ERROR_IMAGE_NOT_AT_BASE 700L + +// +// MessageId: ERROR_RXACT_STATE_CREATED +// +// MessageText: +// +// This informational level status indicates that a specified registry sub-tree transaction state did not yet exist and had to be created. +// +#define ERROR_RXACT_STATE_CREATED 701L + +// +// MessageId: ERROR_SEGMENT_NOTIFICATION +// +// MessageText: +// +// {Segment Load} +// A virtual DOS machine (VDM) is loading, unloading, or moving an MS-DOS or Win16 program segment image. +// An exception is raised so a debugger can load, unload or track symbols and breakpoints within these 16-bit segments. +// +#define ERROR_SEGMENT_NOTIFICATION 702L // winnt + +// +// MessageId: ERROR_BAD_CURRENT_DIRECTORY +// +// MessageText: +// +// {Invalid Current Directory} +// The process cannot switch to the startup current directory %hs. +// Select OK to set current directory to %hs, or select CANCEL to exit. +// +#define ERROR_BAD_CURRENT_DIRECTORY 703L + +// +// MessageId: ERROR_FT_READ_RECOVERY_FROM_BACKUP +// +// MessageText: +// +// {Redundant Read} +// To satisfy a read request, the NT fault-tolerant file system successfully read the requested data from a redundant copy. +// This was done because the file system encountered a failure on a member of the fault-tolerant volume, but was unable to reassign the failing area of the device. +// +#define ERROR_FT_READ_RECOVERY_FROM_BACKUP 704L + +// +// MessageId: ERROR_FT_WRITE_RECOVERY +// +// MessageText: +// +// {Redundant Write} +// To satisfy a write request, the NT fault-tolerant file system successfully wrote a redundant copy of the information. +// This was done because the file system encountered a failure on a member of the fault-tolerant volume, but was not able to reassign the failing area of the device. +// +#define ERROR_FT_WRITE_RECOVERY 705L + +// +// MessageId: ERROR_IMAGE_MACHINE_TYPE_MISMATCH +// +// MessageText: +// +// {Machine Type Mismatch} +// The image file %hs is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load. +// +#define ERROR_IMAGE_MACHINE_TYPE_MISMATCH 706L + +// +// MessageId: ERROR_RECEIVE_PARTIAL +// +// MessageText: +// +// {Partial Data Received} +// The network transport returned partial data to its client. The remaining data will be sent later. +// +#define ERROR_RECEIVE_PARTIAL 707L + +// +// MessageId: ERROR_RECEIVE_EXPEDITED +// +// MessageText: +// +// {Expedited Data Received} +// The network transport returned data to its client that was marked as expedited by the remote system. +// +#define ERROR_RECEIVE_EXPEDITED 708L + +// +// MessageId: ERROR_RECEIVE_PARTIAL_EXPEDITED +// +// MessageText: +// +// {Partial Expedited Data Received} +// The network transport returned partial data to its client and this data was marked as expedited by the remote system. The remaining data will be sent later. +// +#define ERROR_RECEIVE_PARTIAL_EXPEDITED 709L + +// +// MessageId: ERROR_EVENT_DONE +// +// MessageText: +// +// {TDI Event Done} +// The TDI indication has completed successfully. +// +#define ERROR_EVENT_DONE 710L + +// +// MessageId: ERROR_EVENT_PENDING +// +// MessageText: +// +// {TDI Event Pending} +// The TDI indication has entered the pending state. +// +#define ERROR_EVENT_PENDING 711L + +// +// MessageId: ERROR_CHECKING_FILE_SYSTEM +// +// MessageText: +// +// Checking file system on %wZ +// +#define ERROR_CHECKING_FILE_SYSTEM 712L + +// +// MessageId: ERROR_FATAL_APP_EXIT +// +// MessageText: +// +// {Fatal Application Exit} +// %hs +// +#define ERROR_FATAL_APP_EXIT 713L + +// +// MessageId: ERROR_PREDEFINED_HANDLE +// +// MessageText: +// +// The specified registry key is referenced by a predefined handle. +// +#define ERROR_PREDEFINED_HANDLE 714L + +// +// MessageId: ERROR_WAS_UNLOCKED +// +// MessageText: +// +// {Page Unlocked} +// The page protection of a locked page was changed to 'No Access' and the page was unlocked from memory and from the process. +// +#define ERROR_WAS_UNLOCKED 715L + +// +// MessageId: ERROR_SERVICE_NOTIFICATION +// +// MessageText: +// +// %hs +// +#define ERROR_SERVICE_NOTIFICATION 716L + +// +// MessageId: ERROR_WAS_LOCKED +// +// MessageText: +// +// {Page Locked} +// One of the pages to lock was already locked. +// +#define ERROR_WAS_LOCKED 717L + +// +// MessageId: ERROR_LOG_HARD_ERROR +// +// MessageText: +// +// Application popup: %1 : %2 +// +#define ERROR_LOG_HARD_ERROR 718L + +// +// MessageId: ERROR_ALREADY_WIN32 +// +// MessageText: +// +// ERROR_ALREADY_WIN32 +// +#define ERROR_ALREADY_WIN32 719L + +// +// MessageId: ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE +// +// MessageText: +// +// {Machine Type Mismatch} +// The image file %hs is valid, but is for a machine type other than the current machine. +// +#define ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE 720L + +// +// MessageId: ERROR_NO_YIELD_PERFORMED +// +// MessageText: +// +// A yield execution was performed and no thread was available to run. +// +#define ERROR_NO_YIELD_PERFORMED 721L + +// +// MessageId: ERROR_TIMER_RESUME_IGNORED +// +// MessageText: +// +// The resumable flag to a timer API was ignored. +// +#define ERROR_TIMER_RESUME_IGNORED 722L + +// +// MessageId: ERROR_ARBITRATION_UNHANDLED +// +// MessageText: +// +// The arbiter has deferred arbitration of these resources to its parent +// +#define ERROR_ARBITRATION_UNHANDLED 723L + +// +// MessageId: ERROR_CARDBUS_NOT_SUPPORTED +// +// MessageText: +// +// The inserted CardBus device cannot be started because of a configuration error on "%hs". +// +#define ERROR_CARDBUS_NOT_SUPPORTED 724L + +// +// MessageId: ERROR_MP_PROCESSOR_MISMATCH +// +// MessageText: +// +// The CPUs in this multiprocessor system are not all the same revision level. To use all processors the operating system restricts itself to the features of the least capable processor in the system. Should problems occur with this system, contact the CPU manufacturer to see if this mix of processors is supported. +// +#define ERROR_MP_PROCESSOR_MISMATCH 725L + +// +// MessageId: ERROR_HIBERNATED +// +// MessageText: +// +// The system was put into hibernation. +// +#define ERROR_HIBERNATED 726L + +// +// MessageId: ERROR_RESUME_HIBERNATION +// +// MessageText: +// +// The system was resumed from hibernation. +// +#define ERROR_RESUME_HIBERNATION 727L + +// +// MessageId: ERROR_FIRMWARE_UPDATED +// +// MessageText: +// +// Windows has detected that the system firmware (BIOS) was updated [previous firmware date = %2, current firmware date %3]. +// +#define ERROR_FIRMWARE_UPDATED 728L + +// +// MessageId: ERROR_DRIVERS_LEAKING_LOCKED_PAGES +// +// MessageText: +// +// A device driver is leaking locked I/O pages causing system degradation. The system has automatically enabled tracking code in order to try and catch the culprit. +// +#define ERROR_DRIVERS_LEAKING_LOCKED_PAGES 729L + +// +// MessageId: ERROR_WAKE_SYSTEM +// +// MessageText: +// +// The system has awoken +// +#define ERROR_WAKE_SYSTEM 730L + +// +// MessageId: ERROR_WAIT_1 +// +// MessageText: +// +// ERROR_WAIT_1 +// +#define ERROR_WAIT_1 731L + +// +// MessageId: ERROR_WAIT_2 +// +// MessageText: +// +// ERROR_WAIT_2 +// +#define ERROR_WAIT_2 732L + +// +// MessageId: ERROR_WAIT_3 +// +// MessageText: +// +// ERROR_WAIT_3 +// +#define ERROR_WAIT_3 733L + +// +// MessageId: ERROR_WAIT_63 +// +// MessageText: +// +// ERROR_WAIT_63 +// +#define ERROR_WAIT_63 734L + +// +// MessageId: ERROR_ABANDONED_WAIT_0 +// +// MessageText: +// +// ERROR_ABANDONED_WAIT_0 +// +#define ERROR_ABANDONED_WAIT_0 735L // winnt + +// +// MessageId: ERROR_ABANDONED_WAIT_63 +// +// MessageText: +// +// ERROR_ABANDONED_WAIT_63 +// +#define ERROR_ABANDONED_WAIT_63 736L + +// +// MessageId: ERROR_USER_APC +// +// MessageText: +// +// ERROR_USER_APC +// +#define ERROR_USER_APC 737L // winnt + +// +// MessageId: ERROR_KERNEL_APC +// +// MessageText: +// +// ERROR_KERNEL_APC +// +#define ERROR_KERNEL_APC 738L + +// +// MessageId: ERROR_ALERTED +// +// MessageText: +// +// ERROR_ALERTED +// +#define ERROR_ALERTED 739L + +// +// MessageId: ERROR_ELEVATION_REQUIRED +// +// MessageText: +// +// The requested operation requires elevation. +// +#define ERROR_ELEVATION_REQUIRED 740L + +// +// MessageId: ERROR_REPARSE +// +// MessageText: +// +// A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link. +// +#define ERROR_REPARSE 741L + +// +// MessageId: ERROR_OPLOCK_BREAK_IN_PROGRESS +// +// MessageText: +// +// An open/create operation completed while an oplock break is underway. +// +#define ERROR_OPLOCK_BREAK_IN_PROGRESS 742L + +// +// MessageId: ERROR_VOLUME_MOUNTED +// +// MessageText: +// +// A new volume has been mounted by a file system. +// +#define ERROR_VOLUME_MOUNTED 743L + +// +// MessageId: ERROR_RXACT_COMMITTED +// +// MessageText: +// +// This success level status indicates that the transaction state already exists for the registry sub-tree, but that a transaction commit was previously aborted. +// The commit has now been completed. +// +#define ERROR_RXACT_COMMITTED 744L + +// +// MessageId: ERROR_NOTIFY_CLEANUP +// +// MessageText: +// +// This indicates that a notify change request has been completed due to closing the handle which made the notify change request. +// +#define ERROR_NOTIFY_CLEANUP 745L + +// +// MessageId: ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED +// +// MessageText: +// +// {Connect Failure on Primary Transport} +// An attempt was made to connect to the remote server %hs on the primary transport, but the connection failed. +// The computer WAS able to connect on a secondary transport. +// +#define ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED 746L + +// +// MessageId: ERROR_PAGE_FAULT_TRANSITION +// +// MessageText: +// +// Page fault was a transition fault. +// +#define ERROR_PAGE_FAULT_TRANSITION 747L + +// +// MessageId: ERROR_PAGE_FAULT_DEMAND_ZERO +// +// MessageText: +// +// Page fault was a demand zero fault. +// +#define ERROR_PAGE_FAULT_DEMAND_ZERO 748L + +// +// MessageId: ERROR_PAGE_FAULT_COPY_ON_WRITE +// +// MessageText: +// +// Page fault was a demand zero fault. +// +#define ERROR_PAGE_FAULT_COPY_ON_WRITE 749L + +// +// MessageId: ERROR_PAGE_FAULT_GUARD_PAGE +// +// MessageText: +// +// Page fault was a demand zero fault. +// +#define ERROR_PAGE_FAULT_GUARD_PAGE 750L + +// +// MessageId: ERROR_PAGE_FAULT_PAGING_FILE +// +// MessageText: +// +// Page fault was satisfied by reading from a secondary storage device. +// +#define ERROR_PAGE_FAULT_PAGING_FILE 751L + +// +// MessageId: ERROR_CACHE_PAGE_LOCKED +// +// MessageText: +// +// Cached page was locked during operation. +// +#define ERROR_CACHE_PAGE_LOCKED 752L + +// +// MessageId: ERROR_CRASH_DUMP +// +// MessageText: +// +// Crash dump exists in paging file. +// +#define ERROR_CRASH_DUMP 753L + +// +// MessageId: ERROR_BUFFER_ALL_ZEROS +// +// MessageText: +// +// Specified buffer contains all zeros. +// +#define ERROR_BUFFER_ALL_ZEROS 754L + +// +// MessageId: ERROR_REPARSE_OBJECT +// +// MessageText: +// +// A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link. +// +#define ERROR_REPARSE_OBJECT 755L + +// +// MessageId: ERROR_RESOURCE_REQUIREMENTS_CHANGED +// +// MessageText: +// +// The device has succeeded a query-stop and its resource requirements have changed. +// +#define ERROR_RESOURCE_REQUIREMENTS_CHANGED 756L + +// +// MessageId: ERROR_TRANSLATION_COMPLETE +// +// MessageText: +// +// The translator has translated these resources into the global space and no further translations should be performed. +// +#define ERROR_TRANSLATION_COMPLETE 757L + +// +// MessageId: ERROR_NOTHING_TO_TERMINATE +// +// MessageText: +// +// A process being terminated has no threads to terminate. +// +#define ERROR_NOTHING_TO_TERMINATE 758L + +// +// MessageId: ERROR_PROCESS_NOT_IN_JOB +// +// MessageText: +// +// The specified process is not part of a job. +// +#define ERROR_PROCESS_NOT_IN_JOB 759L + +// +// MessageId: ERROR_PROCESS_IN_JOB +// +// MessageText: +// +// The specified process is part of a job. +// +#define ERROR_PROCESS_IN_JOB 760L + +// +// MessageId: ERROR_VOLSNAP_HIBERNATE_READY +// +// MessageText: +// +// {Volume Shadow Copy Service} +// The system is now ready for hibernation. +// +#define ERROR_VOLSNAP_HIBERNATE_READY 761L + +// +// MessageId: ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY +// +// MessageText: +// +// A file system or file system filter driver has successfully completed an FsFilter operation. +// +#define ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY 762L + +// +// MessageId: ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED +// +// MessageText: +// +// The specified interrupt vector was already connected. +// +#define ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED 763L + +// +// MessageId: ERROR_INTERRUPT_STILL_CONNECTED +// +// MessageText: +// +// The specified interrupt vector is still connected. +// +#define ERROR_INTERRUPT_STILL_CONNECTED 764L + +// +// MessageId: ERROR_WAIT_FOR_OPLOCK +// +// MessageText: +// +// An operation is blocked waiting for an oplock. +// +#define ERROR_WAIT_FOR_OPLOCK 765L + +// +// MessageId: ERROR_DBG_EXCEPTION_HANDLED +// +// MessageText: +// +// Debugger handled exception +// +#define ERROR_DBG_EXCEPTION_HANDLED 766L // winnt + +// +// MessageId: ERROR_DBG_CONTINUE +// +// MessageText: +// +// Debugger continued +// +#define ERROR_DBG_CONTINUE 767L // winnt + +// +// MessageId: ERROR_CALLBACK_POP_STACK +// +// MessageText: +// +// An exception occurred in a user mode callback and the kernel callback frame should be removed. +// +#define ERROR_CALLBACK_POP_STACK 768L + +// +// MessageId: ERROR_COMPRESSION_DISABLED +// +// MessageText: +// +// Compression is disabled for this volume. +// +#define ERROR_COMPRESSION_DISABLED 769L + +// +// MessageId: ERROR_CANTFETCHBACKWARDS +// +// MessageText: +// +// The data provider cannot fetch backwards through a result set. +// +#define ERROR_CANTFETCHBACKWARDS 770L + +// +// MessageId: ERROR_CANTSCROLLBACKWARDS +// +// MessageText: +// +// The data provider cannot scroll backwards through a result set. +// +#define ERROR_CANTSCROLLBACKWARDS 771L + +// +// MessageId: ERROR_ROWSNOTRELEASED +// +// MessageText: +// +// The data provider requires that previously fetched data is released before asking for more data. +// +#define ERROR_ROWSNOTRELEASED 772L + +// +// MessageId: ERROR_BAD_ACCESSOR_FLAGS +// +// MessageText: +// +// The data provider was not able to interpret the flags set for a column binding in an accessor. +// +#define ERROR_BAD_ACCESSOR_FLAGS 773L + +// +// MessageId: ERROR_ERRORS_ENCOUNTERED +// +// MessageText: +// +// One or more errors occurred while processing the request. +// +#define ERROR_ERRORS_ENCOUNTERED 774L + +// +// MessageId: ERROR_NOT_CAPABLE +// +// MessageText: +// +// The implementation is not capable of performing the request. +// +#define ERROR_NOT_CAPABLE 775L + +// +// MessageId: ERROR_REQUEST_OUT_OF_SEQUENCE +// +// MessageText: +// +// The client of a component requested an operation which is not valid given the state of the component instance. +// +#define ERROR_REQUEST_OUT_OF_SEQUENCE 776L + +// +// MessageId: ERROR_VERSION_PARSE_ERROR +// +// MessageText: +// +// A version number could not be parsed. +// +#define ERROR_VERSION_PARSE_ERROR 777L + +// +// MessageId: ERROR_BADSTARTPOSITION +// +// MessageText: +// +// The iterator's start position is invalid. +// +#define ERROR_BADSTARTPOSITION 778L + +// +// MessageId: ERROR_MEMORY_HARDWARE +// +// MessageText: +// +// The hardware has reported an uncorrectable memory error. +// +#define ERROR_MEMORY_HARDWARE 779L + +// +// MessageId: ERROR_DISK_REPAIR_DISABLED +// +// MessageText: +// +// The attempted operation required self healing to be enabled. +// +#define ERROR_DISK_REPAIR_DISABLED 780L + +// +// MessageId: ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE +// +// MessageText: +// +// The Desktop heap encountered an error while allocating session memory. There is more information in the system event log. +// +#define ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE 781L + +// +// MessageId: ERROR_SYSTEM_POWERSTATE_TRANSITION +// +// MessageText: +// +// The system power state is transitioning from %2 to %3. +// +#define ERROR_SYSTEM_POWERSTATE_TRANSITION 782L + +// +// MessageId: ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION +// +// MessageText: +// +// The system power state is transitioning from %2 to %3 but could enter %4. +// +#define ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION 783L + +// +// MessageId: ERROR_MCA_EXCEPTION +// +// MessageText: +// +// A thread is getting dispatched with MCA EXCEPTION because of MCA. +// +#define ERROR_MCA_EXCEPTION 784L + +// +// MessageId: ERROR_ACCESS_AUDIT_BY_POLICY +// +// MessageText: +// +// Access to %1 is monitored by policy rule %2. +// +#define ERROR_ACCESS_AUDIT_BY_POLICY 785L + +// +// MessageId: ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY +// +// MessageText: +// +// Access to %1 has been restricted by your Administrator by policy rule %2. +// +#define ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY 786L + +// +// MessageId: ERROR_ABANDON_HIBERFILE +// +// MessageText: +// +// A valid hibernation file has been invalidated and should be abandoned. +// +#define ERROR_ABANDON_HIBERFILE 787L + +// +// MessageId: ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED +// +// MessageText: +// +// {Delayed Write Failed} +// Windows was unable to save all the data for the file %hs; the data has been lost. +// This error may be caused by network connectivity issues. Please try to save this file elsewhere. +// +#define ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED 788L + +// +// MessageId: ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR +// +// MessageText: +// +// {Delayed Write Failed} +// Windows was unable to save all the data for the file %hs; the data has been lost. +// This error was returned by the server on which the file exists. Please try to save this file elsewhere. +// +#define ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR 789L + +// +// MessageId: ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR +// +// MessageText: +// +// {Delayed Write Failed} +// Windows was unable to save all the data for the file %hs; the data has been lost. +// This error may be caused if the device has been removed or the media is write-protected. +// +#define ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR 790L + +// +// MessageId: ERROR_BAD_MCFG_TABLE +// +// MessageText: +// +// The resources required for this device conflict with the MCFG table. +// +#define ERROR_BAD_MCFG_TABLE 791L + +// +// MessageId: ERROR_DISK_REPAIR_REDIRECTED +// +// MessageText: +// +// The volume repair could not be performed while it is online. +// Please schedule to take the volume offline so that it can be repaired. +// +#define ERROR_DISK_REPAIR_REDIRECTED 792L + +// +// MessageId: ERROR_DISK_REPAIR_UNSUCCESSFUL +// +// MessageText: +// +// The volume repair was not successful. +// +#define ERROR_DISK_REPAIR_UNSUCCESSFUL 793L + +// +// MessageId: ERROR_CORRUPT_LOG_OVERFULL +// +// MessageText: +// +// One of the volume corruption logs is full. Further corruptions that may be detected won't be logged. +// +#define ERROR_CORRUPT_LOG_OVERFULL 794L + +// +// MessageId: ERROR_CORRUPT_LOG_CORRUPTED +// +// MessageText: +// +// One of the volume corruption logs is internally corrupted and needs to be recreated. The volume may contain undetected corruptions and must be scanned. +// +#define ERROR_CORRUPT_LOG_CORRUPTED 795L + +// +// MessageId: ERROR_CORRUPT_LOG_UNAVAILABLE +// +// MessageText: +// +// One of the volume corruption logs is unavailable for being operated on. +// +#define ERROR_CORRUPT_LOG_UNAVAILABLE 796L + +// +// MessageId: ERROR_CORRUPT_LOG_DELETED_FULL +// +// MessageText: +// +// One of the volume corruption logs was deleted while still having corruption records in them. The volume contains detected corruptions and must be scanned. +// +#define ERROR_CORRUPT_LOG_DELETED_FULL 797L + +// +// MessageId: ERROR_CORRUPT_LOG_CLEARED +// +// MessageText: +// +// One of the volume corruption logs was cleared by chkdsk and no longer contains real corruptions. +// +#define ERROR_CORRUPT_LOG_CLEARED 798L + +// +// MessageId: ERROR_ORPHAN_NAME_EXHAUSTED +// +// MessageText: +// +// Orphaned files exist on the volume but could not be recovered because no more new names could be created in the recovery directory. Files must be moved from the recovery directory. +// +#define ERROR_ORPHAN_NAME_EXHAUSTED 799L + +// +// MessageId: ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE +// +// MessageText: +// +// The oplock that was associated with this handle is now associated with a different handle. +// +#define ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE 800L + +// +// MessageId: ERROR_CANNOT_GRANT_REQUESTED_OPLOCK +// +// MessageText: +// +// An oplock of the requested level cannot be granted. An oplock of a lower level may be available. +// +#define ERROR_CANNOT_GRANT_REQUESTED_OPLOCK 801L + +// +// MessageId: ERROR_CANNOT_BREAK_OPLOCK +// +// MessageText: +// +// The operation did not complete successfully because it would cause an oplock to be broken. The caller has requested that existing oplocks not be broken. +// +#define ERROR_CANNOT_BREAK_OPLOCK 802L + +// +// MessageId: ERROR_OPLOCK_HANDLE_CLOSED +// +// MessageText: +// +// The handle with which this oplock was associated has been closed. The oplock is now broken. +// +#define ERROR_OPLOCK_HANDLE_CLOSED 803L + +// +// MessageId: ERROR_NO_ACE_CONDITION +// +// MessageText: +// +// The specified access control entry (ACE) does not contain a condition. +// +#define ERROR_NO_ACE_CONDITION 804L + +// +// MessageId: ERROR_INVALID_ACE_CONDITION +// +// MessageText: +// +// The specified access control entry (ACE) contains an invalid condition. +// +#define ERROR_INVALID_ACE_CONDITION 805L + +// +// MessageId: ERROR_FILE_HANDLE_REVOKED +// +// MessageText: +// +// Access to the specified file handle has been revoked. +// +#define ERROR_FILE_HANDLE_REVOKED 806L + +// +// MessageId: ERROR_IMAGE_AT_DIFFERENT_BASE +// +// MessageText: +// +// {Image Relocated} +// An image file was mapped at a different address from the one specified in the image file but fixups will still be automatically performed on the image. +// +#define ERROR_IMAGE_AT_DIFFERENT_BASE 807L + +// +// MessageId: ERROR_ENCRYPTED_IO_NOT_POSSIBLE +// +// MessageText: +// +// The read or write operation to an encrypted file could not be completed because the file has not been opened for data access. +// +#define ERROR_ENCRYPTED_IO_NOT_POSSIBLE 808L + +// +// MessageId: ERROR_FILE_METADATA_OPTIMIZATION_IN_PROGRESS +// +// MessageText: +// +// File metadata optimization is already in progress. +// +#define ERROR_FILE_METADATA_OPTIMIZATION_IN_PROGRESS 809L + +// +// MessageId: ERROR_QUOTA_ACTIVITY +// +// MessageText: +// +// The requested operation failed due to quota operation is still in progress. +// +#define ERROR_QUOTA_ACTIVITY 810L + +// +// MessageId: ERROR_HANDLE_REVOKED +// +// MessageText: +// +// Access to the specified handle has been revoked. +// +#define ERROR_HANDLE_REVOKED 811L + +// +// MessageId: ERROR_CALLBACK_INVOKE_INLINE +// +// MessageText: +// +// The callback function must be invoked inline. +// +#define ERROR_CALLBACK_INVOKE_INLINE 812L + +// +// MessageId: ERROR_CPU_SET_INVALID +// +// MessageText: +// +// The specified CPU Set IDs are invalid. +// +#define ERROR_CPU_SET_INVALID 813L + +// +// MessageId: ERROR_ENCLAVE_NOT_TERMINATED +// +// MessageText: +// +// The specified enclave has not yet been terminated. +// +#define ERROR_ENCLAVE_NOT_TERMINATED 814L + +// +// MessageId: ERROR_ENCLAVE_VIOLATION +// +// MessageText: +// +// An attempt was made to access protected memory in violation of its secure access policy. +// +#define ERROR_ENCLAVE_VIOLATION 815L + +// +// MessageId: ERROR_SERVER_TRANSPORT_CONFLICT +// +// MessageText: +// +// Multiple mappings to shared resource(s) on a server, using more than one transport, are not allowed. Use a single transport for all mappings to a server and try again. +// +#define ERROR_SERVER_TRANSPORT_CONFLICT 816L + +// +// MessageId: ERROR_CERTIFICATE_VALIDATION_PREFERENCE_CONFLICT +// +// MessageText: +// +// Multiple mappings to shared resource(s) on a server, using different certificate validation preferences, are not allowed. Use the same preference for all mappings to a server and try again. +// +#define ERROR_CERTIFICATE_VALIDATION_PREFERENCE_CONFLICT 817L + +// +// MessageId: ERROR_FT_READ_FROM_COPY_FAILURE +// +// MessageText: +// +// The specified copy of the requested data could not be read. +// +#define ERROR_FT_READ_FROM_COPY_FAILURE 818L + +// +// MessageId: ERROR_SECTION_DIRECT_MAP_ONLY +// +// MessageText: +// +// The section creation request was failed because it would have been satisfied with a direct map and the caller explicitly signified this was not wanted. +// +#define ERROR_SECTION_DIRECT_MAP_ONLY 819L + +// +// **** Available SYSTEM error codes **** +// +// +// MessageId: ERROR_EA_ACCESS_DENIED +// +// MessageText: +// +// Access to the extended attribute was denied. +// +#define ERROR_EA_ACCESS_DENIED 994L + +// +// MessageId: ERROR_OPERATION_ABORTED +// +// MessageText: +// +// The I/O operation has been aborted because of either a thread exit or an application request. +// +#define ERROR_OPERATION_ABORTED 995L + +// +// MessageId: ERROR_IO_INCOMPLETE +// +// MessageText: +// +// Overlapped I/O event is not in a signaled state. +// +#define ERROR_IO_INCOMPLETE 996L + +// +// MessageId: ERROR_IO_PENDING +// +// MessageText: +// +// Overlapped I/O operation is in progress. +// +#define ERROR_IO_PENDING 997L // dderror + +// +// MessageId: ERROR_NOACCESS +// +// MessageText: +// +// Invalid access to memory location. +// +#define ERROR_NOACCESS 998L + +// +// MessageId: ERROR_SWAPERROR +// +// MessageText: +// +// Error performing inpage operation. +// +#define ERROR_SWAPERROR 999L + +// +// MessageId: ERROR_STACK_OVERFLOW +// +// MessageText: +// +// Recursion too deep; the stack overflowed. +// +#define ERROR_STACK_OVERFLOW 1001L + +// +// MessageId: ERROR_INVALID_MESSAGE +// +// MessageText: +// +// The window cannot act on the sent message. +// +#define ERROR_INVALID_MESSAGE 1002L + +// +// MessageId: ERROR_CAN_NOT_COMPLETE +// +// MessageText: +// +// Cannot complete this function. +// +#define ERROR_CAN_NOT_COMPLETE 1003L + +// +// MessageId: ERROR_INVALID_FLAGS +// +// MessageText: +// +// Invalid flags. +// +#define ERROR_INVALID_FLAGS 1004L + +// +// MessageId: ERROR_UNRECOGNIZED_VOLUME +// +// MessageText: +// +// The volume does not contain a recognized file system. +// Please make sure that all required file system drivers are loaded and that the volume is not corrupted. +// +#define ERROR_UNRECOGNIZED_VOLUME 1005L + +// +// MessageId: ERROR_FILE_INVALID +// +// MessageText: +// +// The volume for a file has been externally altered so that the opened file is no longer valid. +// +#define ERROR_FILE_INVALID 1006L + +// +// MessageId: ERROR_FULLSCREEN_MODE +// +// MessageText: +// +// The requested operation cannot be performed in full-screen mode. +// +#define ERROR_FULLSCREEN_MODE 1007L + +// +// MessageId: ERROR_NO_TOKEN +// +// MessageText: +// +// An attempt was made to reference a token that does not exist. +// +#define ERROR_NO_TOKEN 1008L + +// +// MessageId: ERROR_BADDB +// +// MessageText: +// +// The configuration registry database is corrupt. +// +#define ERROR_BADDB 1009L + +// +// MessageId: ERROR_BADKEY +// +// MessageText: +// +// The configuration registry key is invalid. +// +#define ERROR_BADKEY 1010L + +// +// MessageId: ERROR_CANTOPEN +// +// MessageText: +// +// The configuration registry key could not be opened. +// +#define ERROR_CANTOPEN 1011L + +// +// MessageId: ERROR_CANTREAD +// +// MessageText: +// +// The configuration registry key could not be read. +// +#define ERROR_CANTREAD 1012L + +// +// MessageId: ERROR_CANTWRITE +// +// MessageText: +// +// The configuration registry key could not be written. +// +#define ERROR_CANTWRITE 1013L + +// +// MessageId: ERROR_REGISTRY_RECOVERED +// +// MessageText: +// +// One of the files in the registry database had to be recovered by use of a log or alternate copy. The recovery was successful. +// +#define ERROR_REGISTRY_RECOVERED 1014L + +// +// MessageId: ERROR_REGISTRY_CORRUPT +// +// MessageText: +// +// The registry is corrupted. The structure of one of the files containing registry data is corrupted, or the system's memory image of the file is corrupted, or the file could not be recovered because the alternate copy or log was absent or corrupted. +// +#define ERROR_REGISTRY_CORRUPT 1015L + +// +// MessageId: ERROR_REGISTRY_IO_FAILED +// +// MessageText: +// +// An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system's image of the registry. +// +#define ERROR_REGISTRY_IO_FAILED 1016L + +// +// MessageId: ERROR_NOT_REGISTRY_FILE +// +// MessageText: +// +// The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format. +// +#define ERROR_NOT_REGISTRY_FILE 1017L + +// +// MessageId: ERROR_KEY_DELETED +// +// MessageText: +// +// Illegal operation attempted on a registry key that has been marked for deletion. +// +#define ERROR_KEY_DELETED 1018L + +// +// MessageId: ERROR_NO_LOG_SPACE +// +// MessageText: +// +// System could not allocate the required space in a registry log. +// +#define ERROR_NO_LOG_SPACE 1019L + +// +// MessageId: ERROR_KEY_HAS_CHILDREN +// +// MessageText: +// +// Cannot create a symbolic link in a registry key that already has subkeys or values. +// +#define ERROR_KEY_HAS_CHILDREN 1020L + +// +// MessageId: ERROR_CHILD_MUST_BE_VOLATILE +// +// MessageText: +// +// Cannot create a stable subkey under a volatile parent key. +// +#define ERROR_CHILD_MUST_BE_VOLATILE 1021L + +// +// MessageId: ERROR_NOTIFY_ENUM_DIR +// +// MessageText: +// +// A notify change request is being completed and the information is not being returned in the caller's buffer. The caller now needs to enumerate the files to find the changes. +// +#define ERROR_NOTIFY_ENUM_DIR 1022L + +// +// MessageId: ERROR_DEPENDENT_SERVICES_RUNNING +// +// MessageText: +// +// A stop control has been sent to a service that other running services are dependent on. +// +#define ERROR_DEPENDENT_SERVICES_RUNNING 1051L + +// +// MessageId: ERROR_INVALID_SERVICE_CONTROL +// +// MessageText: +// +// The requested control is not valid for this service. +// +#define ERROR_INVALID_SERVICE_CONTROL 1052L + +// +// MessageId: ERROR_SERVICE_REQUEST_TIMEOUT +// +// MessageText: +// +// The service did not respond to the start or control request in a timely fashion. +// +#define ERROR_SERVICE_REQUEST_TIMEOUT 1053L + +// +// MessageId: ERROR_SERVICE_NO_THREAD +// +// MessageText: +// +// A thread could not be created for the service. +// +#define ERROR_SERVICE_NO_THREAD 1054L + +// +// MessageId: ERROR_SERVICE_DATABASE_LOCKED +// +// MessageText: +// +// The service database is locked. +// +#define ERROR_SERVICE_DATABASE_LOCKED 1055L + +// +// MessageId: ERROR_SERVICE_ALREADY_RUNNING +// +// MessageText: +// +// An instance of the service is already running. +// +#define ERROR_SERVICE_ALREADY_RUNNING 1056L + +// +// MessageId: ERROR_INVALID_SERVICE_ACCOUNT +// +// MessageText: +// +// The account name is invalid or does not exist, or the password is invalid for the account name specified. +// +#define ERROR_INVALID_SERVICE_ACCOUNT 1057L + +// +// MessageId: ERROR_SERVICE_DISABLED +// +// MessageText: +// +// The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. +// +#define ERROR_SERVICE_DISABLED 1058L + +// +// MessageId: ERROR_CIRCULAR_DEPENDENCY +// +// MessageText: +// +// Circular service dependency was specified. +// +#define ERROR_CIRCULAR_DEPENDENCY 1059L + +// +// MessageId: ERROR_SERVICE_DOES_NOT_EXIST +// +// MessageText: +// +// The specified service does not exist as an installed service. +// +#define ERROR_SERVICE_DOES_NOT_EXIST 1060L + +// +// MessageId: ERROR_SERVICE_CANNOT_ACCEPT_CTRL +// +// MessageText: +// +// The service cannot accept control messages at this time. +// +#define ERROR_SERVICE_CANNOT_ACCEPT_CTRL 1061L + +// +// MessageId: ERROR_SERVICE_NOT_ACTIVE +// +// MessageText: +// +// The service has not been started. +// +#define ERROR_SERVICE_NOT_ACTIVE 1062L + +// +// MessageId: ERROR_FAILED_SERVICE_CONTROLLER_CONNECT +// +// MessageText: +// +// The service process could not connect to the service controller. +// +#define ERROR_FAILED_SERVICE_CONTROLLER_CONNECT 1063L + +// +// MessageId: ERROR_EXCEPTION_IN_SERVICE +// +// MessageText: +// +// An exception occurred in the service when handling the control request. +// +#define ERROR_EXCEPTION_IN_SERVICE 1064L + +// +// MessageId: ERROR_DATABASE_DOES_NOT_EXIST +// +// MessageText: +// +// The database specified does not exist. +// +#define ERROR_DATABASE_DOES_NOT_EXIST 1065L + +// +// MessageId: ERROR_SERVICE_SPECIFIC_ERROR +// +// MessageText: +// +// The service has returned a service-specific error code. +// +#define ERROR_SERVICE_SPECIFIC_ERROR 1066L + +// +// MessageId: ERROR_PROCESS_ABORTED +// +// MessageText: +// +// The process terminated unexpectedly. +// +#define ERROR_PROCESS_ABORTED 1067L + +// +// MessageId: ERROR_SERVICE_DEPENDENCY_FAIL +// +// MessageText: +// +// The dependency service or group failed to start. +// +#define ERROR_SERVICE_DEPENDENCY_FAIL 1068L + +// +// MessageId: ERROR_SERVICE_LOGON_FAILED +// +// MessageText: +// +// The service did not start due to a logon failure. +// +#define ERROR_SERVICE_LOGON_FAILED 1069L + +// +// MessageId: ERROR_SERVICE_START_HANG +// +// MessageText: +// +// After starting, the service hung in a start-pending state. +// +#define ERROR_SERVICE_START_HANG 1070L + +// +// MessageId: ERROR_INVALID_SERVICE_LOCK +// +// MessageText: +// +// The specified service database lock is invalid. +// +#define ERROR_INVALID_SERVICE_LOCK 1071L + +// +// MessageId: ERROR_SERVICE_MARKED_FOR_DELETE +// +// MessageText: +// +// The specified service has been marked for deletion. +// +#define ERROR_SERVICE_MARKED_FOR_DELETE 1072L + +// +// MessageId: ERROR_SERVICE_EXISTS +// +// MessageText: +// +// The specified service already exists. +// +#define ERROR_SERVICE_EXISTS 1073L + +// +// MessageId: ERROR_ALREADY_RUNNING_LKG +// +// MessageText: +// +// The system is currently running with the last-known-good configuration. +// +#define ERROR_ALREADY_RUNNING_LKG 1074L + +// +// MessageId: ERROR_SERVICE_DEPENDENCY_DELETED +// +// MessageText: +// +// The dependency service does not exist or has been marked for deletion. +// +#define ERROR_SERVICE_DEPENDENCY_DELETED 1075L + +// +// MessageId: ERROR_BOOT_ALREADY_ACCEPTED +// +// MessageText: +// +// The current boot has already been accepted for use as the last-known-good control set. +// +#define ERROR_BOOT_ALREADY_ACCEPTED 1076L + +// +// MessageId: ERROR_SERVICE_NEVER_STARTED +// +// MessageText: +// +// No attempts to start the service have been made since the last boot. +// +#define ERROR_SERVICE_NEVER_STARTED 1077L + +// +// MessageId: ERROR_DUPLICATE_SERVICE_NAME +// +// MessageText: +// +// The name is already in use as either a service name or a service display name. +// +#define ERROR_DUPLICATE_SERVICE_NAME 1078L + +// +// MessageId: ERROR_DIFFERENT_SERVICE_ACCOUNT +// +// MessageText: +// +// The account specified for this service is different from the account specified for other services running in the same process. +// +#define ERROR_DIFFERENT_SERVICE_ACCOUNT 1079L + +// +// MessageId: ERROR_CANNOT_DETECT_DRIVER_FAILURE +// +// MessageText: +// +// Failure actions can only be set for Win32 services, not for drivers. +// +#define ERROR_CANNOT_DETECT_DRIVER_FAILURE 1080L + +// +// MessageId: ERROR_CANNOT_DETECT_PROCESS_ABORT +// +// MessageText: +// +// This service runs in the same process as the service control manager. +// Therefore, the service control manager cannot take action if this service's process terminates unexpectedly. +// +#define ERROR_CANNOT_DETECT_PROCESS_ABORT 1081L + +// +// MessageId: ERROR_NO_RECOVERY_PROGRAM +// +// MessageText: +// +// No recovery program has been configured for this service. +// +#define ERROR_NO_RECOVERY_PROGRAM 1082L + +// +// MessageId: ERROR_SERVICE_NOT_IN_EXE +// +// MessageText: +// +// The executable program that this service is configured to run in does not implement the service. +// +#define ERROR_SERVICE_NOT_IN_EXE 1083L + +// +// MessageId: ERROR_NOT_SAFEBOOT_SERVICE +// +// MessageText: +// +// This service cannot be started in Safe Mode +// +#define ERROR_NOT_SAFEBOOT_SERVICE 1084L + +// +// MessageId: ERROR_END_OF_MEDIA +// +// MessageText: +// +// The physical end of the tape has been reached. +// +#define ERROR_END_OF_MEDIA 1100L + +// +// MessageId: ERROR_FILEMARK_DETECTED +// +// MessageText: +// +// A tape access reached a filemark. +// +#define ERROR_FILEMARK_DETECTED 1101L + +// +// MessageId: ERROR_BEGINNING_OF_MEDIA +// +// MessageText: +// +// The beginning of the tape or a partition was encountered. +// +#define ERROR_BEGINNING_OF_MEDIA 1102L + +// +// MessageId: ERROR_SETMARK_DETECTED +// +// MessageText: +// +// A tape access reached the end of a set of files. +// +#define ERROR_SETMARK_DETECTED 1103L + +// +// MessageId: ERROR_NO_DATA_DETECTED +// +// MessageText: +// +// No more data is on the tape. +// +#define ERROR_NO_DATA_DETECTED 1104L + +// +// MessageId: ERROR_PARTITION_FAILURE +// +// MessageText: +// +// Tape could not be partitioned. +// +#define ERROR_PARTITION_FAILURE 1105L + +// +// MessageId: ERROR_INVALID_BLOCK_LENGTH +// +// MessageText: +// +// When accessing a new tape of a multivolume partition, the current block size is incorrect. +// +#define ERROR_INVALID_BLOCK_LENGTH 1106L + +// +// MessageId: ERROR_DEVICE_NOT_PARTITIONED +// +// MessageText: +// +// Tape partition information could not be found when loading a tape. +// +#define ERROR_DEVICE_NOT_PARTITIONED 1107L + +// +// MessageId: ERROR_UNABLE_TO_LOCK_MEDIA +// +// MessageText: +// +// Unable to lock the media eject mechanism. +// +#define ERROR_UNABLE_TO_LOCK_MEDIA 1108L + +// +// MessageId: ERROR_UNABLE_TO_UNLOAD_MEDIA +// +// MessageText: +// +// Unable to unload the media. +// +#define ERROR_UNABLE_TO_UNLOAD_MEDIA 1109L + +// +// MessageId: ERROR_MEDIA_CHANGED +// +// MessageText: +// +// The media in the drive may have changed. +// +#define ERROR_MEDIA_CHANGED 1110L + +// +// MessageId: ERROR_BUS_RESET +// +// MessageText: +// +// The I/O bus was reset. +// +#define ERROR_BUS_RESET 1111L + +// +// MessageId: ERROR_NO_MEDIA_IN_DRIVE +// +// MessageText: +// +// No media in drive. +// +#define ERROR_NO_MEDIA_IN_DRIVE 1112L + +// +// MessageId: ERROR_NO_UNICODE_TRANSLATION +// +// MessageText: +// +// No mapping for the Unicode character exists in the target multi-byte code page. +// +#define ERROR_NO_UNICODE_TRANSLATION 1113L + +// +// MessageId: ERROR_DLL_INIT_FAILED +// +// MessageText: +// +// A dynamic link library (DLL) initialization routine failed. +// +#define ERROR_DLL_INIT_FAILED 1114L + +// +// MessageId: ERROR_SHUTDOWN_IN_PROGRESS +// +// MessageText: +// +// A system shutdown is in progress. +// +#define ERROR_SHUTDOWN_IN_PROGRESS 1115L + +// +// MessageId: ERROR_NO_SHUTDOWN_IN_PROGRESS +// +// MessageText: +// +// Unable to abort the system shutdown because no shutdown was in progress. +// +#define ERROR_NO_SHUTDOWN_IN_PROGRESS 1116L + +// +// MessageId: ERROR_IO_DEVICE +// +// MessageText: +// +// The request could not be performed because of an I/O device error. +// +#define ERROR_IO_DEVICE 1117L + +// +// MessageId: ERROR_SERIAL_NO_DEVICE +// +// MessageText: +// +// No serial device was successfully initialized. The serial driver will unload. +// +#define ERROR_SERIAL_NO_DEVICE 1118L + +// +// MessageId: ERROR_IRQ_BUSY +// +// MessageText: +// +// Unable to open a device that was sharing an interrupt request (IRQ) with other devices. At least one other device that uses that IRQ was already opened. +// +#define ERROR_IRQ_BUSY 1119L + +// +// MessageId: ERROR_MORE_WRITES +// +// MessageText: +// +// A serial I/O operation was completed by another write to the serial port. +// (The IOCTL_SERIAL_XOFF_COUNTER reached zero.) +// +#define ERROR_MORE_WRITES 1120L + +// +// MessageId: ERROR_COUNTER_TIMEOUT +// +// MessageText: +// +// A serial I/O operation completed because the timeout period expired. +// (The IOCTL_SERIAL_XOFF_COUNTER did not reach zero.) +// +#define ERROR_COUNTER_TIMEOUT 1121L + +// +// MessageId: ERROR_FLOPPY_ID_MARK_NOT_FOUND +// +// MessageText: +// +// No ID address mark was found on the floppy disk. +// +#define ERROR_FLOPPY_ID_MARK_NOT_FOUND 1122L + +// +// MessageId: ERROR_FLOPPY_WRONG_CYLINDER +// +// MessageText: +// +// Mismatch between the floppy disk sector ID field and the floppy disk controller track address. +// +#define ERROR_FLOPPY_WRONG_CYLINDER 1123L + +// +// MessageId: ERROR_FLOPPY_UNKNOWN_ERROR +// +// MessageText: +// +// The floppy disk controller reported an error that is not recognized by the floppy disk driver. +// +#define ERROR_FLOPPY_UNKNOWN_ERROR 1124L + +// +// MessageId: ERROR_FLOPPY_BAD_REGISTERS +// +// MessageText: +// +// The floppy disk controller returned inconsistent results in its registers. +// +#define ERROR_FLOPPY_BAD_REGISTERS 1125L + +// +// MessageId: ERROR_DISK_RECALIBRATE_FAILED +// +// MessageText: +// +// While accessing the hard disk, a recalibrate operation failed, even after retries. +// +#define ERROR_DISK_RECALIBRATE_FAILED 1126L + +// +// MessageId: ERROR_DISK_OPERATION_FAILED +// +// MessageText: +// +// While accessing the hard disk, a disk operation failed even after retries. +// +#define ERROR_DISK_OPERATION_FAILED 1127L + +// +// MessageId: ERROR_DISK_RESET_FAILED +// +// MessageText: +// +// While accessing the hard disk, a disk controller reset was needed, but even that failed. +// +#define ERROR_DISK_RESET_FAILED 1128L + +// +// MessageId: ERROR_EOM_OVERFLOW +// +// MessageText: +// +// Physical end of tape encountered. +// +#define ERROR_EOM_OVERFLOW 1129L + +// +// MessageId: ERROR_NOT_ENOUGH_SERVER_MEMORY +// +// MessageText: +// +// Not enough server memory resources are available to process this command. +// +#define ERROR_NOT_ENOUGH_SERVER_MEMORY 1130L + +// +// MessageId: ERROR_POSSIBLE_DEADLOCK +// +// MessageText: +// +// A potential deadlock condition has been detected. +// +#define ERROR_POSSIBLE_DEADLOCK 1131L + +// +// MessageId: ERROR_MAPPED_ALIGNMENT +// +// MessageText: +// +// The base address or the file offset specified does not have the proper alignment. +// +#define ERROR_MAPPED_ALIGNMENT 1132L + +// +// MessageId: ERROR_SET_POWER_STATE_VETOED +// +// MessageText: +// +// An attempt to change the system power state was vetoed by another application or driver. +// +#define ERROR_SET_POWER_STATE_VETOED 1140L + +// +// MessageId: ERROR_SET_POWER_STATE_FAILED +// +// MessageText: +// +// The system BIOS failed an attempt to change the system power state. +// +#define ERROR_SET_POWER_STATE_FAILED 1141L + +// +// MessageId: ERROR_TOO_MANY_LINKS +// +// MessageText: +// +// An attempt was made to create more links on a file than the file system supports. +// +#define ERROR_TOO_MANY_LINKS 1142L + +// +// MessageId: ERROR_OLD_WIN_VERSION +// +// MessageText: +// +// The specified program requires a newer version of Windows. +// +#define ERROR_OLD_WIN_VERSION 1150L + +// +// MessageId: ERROR_APP_WRONG_OS +// +// MessageText: +// +// The specified program is not a Windows or MS-DOS program. +// +#define ERROR_APP_WRONG_OS 1151L + +// +// MessageId: ERROR_SINGLE_INSTANCE_APP +// +// MessageText: +// +// Cannot start more than one instance of the specified program. +// +#define ERROR_SINGLE_INSTANCE_APP 1152L + +// +// MessageId: ERROR_RMODE_APP +// +// MessageText: +// +// The specified program was written for an earlier version of Windows. +// +#define ERROR_RMODE_APP 1153L + +// +// MessageId: ERROR_INVALID_DLL +// +// MessageText: +// +// One of the library files needed to run this application is damaged. +// +#define ERROR_INVALID_DLL 1154L + +// +// MessageId: ERROR_NO_ASSOCIATION +// +// MessageText: +// +// No application is associated with the specified file for this operation. +// +#define ERROR_NO_ASSOCIATION 1155L + +// +// MessageId: ERROR_DDE_FAIL +// +// MessageText: +// +// An error occurred in sending the command to the application. +// +#define ERROR_DDE_FAIL 1156L + +// +// MessageId: ERROR_DLL_NOT_FOUND +// +// MessageText: +// +// One of the library files needed to run this application cannot be found. +// +#define ERROR_DLL_NOT_FOUND 1157L + +// +// MessageId: ERROR_NO_MORE_USER_HANDLES +// +// MessageText: +// +// The current process has used all of its system allowance of handles for Window Manager objects. +// +#define ERROR_NO_MORE_USER_HANDLES 1158L + +// +// MessageId: ERROR_MESSAGE_SYNC_ONLY +// +// MessageText: +// +// The message can be used only with synchronous operations. +// +#define ERROR_MESSAGE_SYNC_ONLY 1159L + +// +// MessageId: ERROR_SOURCE_ELEMENT_EMPTY +// +// MessageText: +// +// The indicated source element has no media. +// +#define ERROR_SOURCE_ELEMENT_EMPTY 1160L + +// +// MessageId: ERROR_DESTINATION_ELEMENT_FULL +// +// MessageText: +// +// The indicated destination element already contains media. +// +#define ERROR_DESTINATION_ELEMENT_FULL 1161L + +// +// MessageId: ERROR_ILLEGAL_ELEMENT_ADDRESS +// +// MessageText: +// +// The indicated element does not exist. +// +#define ERROR_ILLEGAL_ELEMENT_ADDRESS 1162L + +// +// MessageId: ERROR_MAGAZINE_NOT_PRESENT +// +// MessageText: +// +// The indicated element is part of a magazine that is not present. +// +#define ERROR_MAGAZINE_NOT_PRESENT 1163L + +// +// MessageId: ERROR_DEVICE_REINITIALIZATION_NEEDED +// +// MessageText: +// +// The indicated device requires reinitialization due to hardware errors. +// +#define ERROR_DEVICE_REINITIALIZATION_NEEDED 1164L // dderror + +// +// MessageId: ERROR_DEVICE_REQUIRES_CLEANING +// +// MessageText: +// +// The device has indicated that cleaning is required before further operations are attempted. +// +#define ERROR_DEVICE_REQUIRES_CLEANING 1165L + +// +// MessageId: ERROR_DEVICE_DOOR_OPEN +// +// MessageText: +// +// The device has indicated that its door is open. +// +#define ERROR_DEVICE_DOOR_OPEN 1166L + +// +// MessageId: ERROR_DEVICE_NOT_CONNECTED +// +// MessageText: +// +// The device is not connected. +// +#define ERROR_DEVICE_NOT_CONNECTED 1167L + +// +// MessageId: ERROR_NOT_FOUND +// +// MessageText: +// +// Element not found. +// +#define ERROR_NOT_FOUND 1168L + +// +// MessageId: ERROR_NO_MATCH +// +// MessageText: +// +// There was no match for the specified key in the index. +// +#define ERROR_NO_MATCH 1169L + +// +// MessageId: ERROR_SET_NOT_FOUND +// +// MessageText: +// +// The property set specified does not exist on the object. +// +#define ERROR_SET_NOT_FOUND 1170L + +// +// MessageId: ERROR_POINT_NOT_FOUND +// +// MessageText: +// +// The point passed to GetMouseMovePoints is not in the buffer. +// +#define ERROR_POINT_NOT_FOUND 1171L + +// +// MessageId: ERROR_NO_TRACKING_SERVICE +// +// MessageText: +// +// The tracking (workstation) service is not running. +// +#define ERROR_NO_TRACKING_SERVICE 1172L + +// +// MessageId: ERROR_NO_VOLUME_ID +// +// MessageText: +// +// The Volume ID could not be found. +// +#define ERROR_NO_VOLUME_ID 1173L + +// +// MessageId: ERROR_UNABLE_TO_REMOVE_REPLACED +// +// MessageText: +// +// Unable to remove the file to be replaced. +// +#define ERROR_UNABLE_TO_REMOVE_REPLACED 1175L + +// +// MessageId: ERROR_UNABLE_TO_MOVE_REPLACEMENT +// +// MessageText: +// +// Unable to move the replacement file to the file to be replaced. The file to be replaced has retained its original name. +// +#define ERROR_UNABLE_TO_MOVE_REPLACEMENT 1176L + +// +// MessageId: ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 +// +// MessageText: +// +// Unable to move the replacement file to the file to be replaced. The file to be replaced has been renamed using the backup name. +// +#define ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 1177L + +// +// MessageId: ERROR_JOURNAL_DELETE_IN_PROGRESS +// +// MessageText: +// +// The volume change journal is being deleted. +// +#define ERROR_JOURNAL_DELETE_IN_PROGRESS 1178L + +// +// MessageId: ERROR_JOURNAL_NOT_ACTIVE +// +// MessageText: +// +// The volume change journal is not active. +// +#define ERROR_JOURNAL_NOT_ACTIVE 1179L + +// +// MessageId: ERROR_POTENTIAL_FILE_FOUND +// +// MessageText: +// +// A file was found, but it may not be the correct file. +// +#define ERROR_POTENTIAL_FILE_FOUND 1180L + +// +// MessageId: ERROR_JOURNAL_ENTRY_DELETED +// +// MessageText: +// +// The journal entry has been deleted from the journal. +// +#define ERROR_JOURNAL_ENTRY_DELETED 1181L + +// +// MessageId: ERROR_PARTITION_TERMINATING +// +// MessageText: +// +// An attempt was made to access a partition that has begun termination. +// +#define ERROR_PARTITION_TERMINATING 1184L + +// +// MessageId: ERROR_SHUTDOWN_IS_SCHEDULED +// +// MessageText: +// +// A system shutdown has already been scheduled. +// +#define ERROR_SHUTDOWN_IS_SCHEDULED 1190L + +// +// MessageId: ERROR_SHUTDOWN_USERS_LOGGED_ON +// +// MessageText: +// +// The system shutdown cannot be initiated because there are other users logged on to the computer. +// +#define ERROR_SHUTDOWN_USERS_LOGGED_ON 1191L + +// +// MessageId: ERROR_SHUTDOWN_DISKS_NOT_IN_MAINTENANCE_MODE +// +// MessageText: +// +// The system shutdown cannot safely proceed without enabling node maintenance mode for cluster node and waiting for the drain to complete. +// +#define ERROR_SHUTDOWN_DISKS_NOT_IN_MAINTENANCE_MODE 1192L + +// +// MessageId: ERROR_BAD_DEVICE +// +// MessageText: +// +// The specified device name is invalid. +// +#define ERROR_BAD_DEVICE 1200L + +// +// MessageId: ERROR_CONNECTION_UNAVAIL +// +// MessageText: +// +// The device is not currently connected but it is a remembered connection. +// +#define ERROR_CONNECTION_UNAVAIL 1201L + +// +// MessageId: ERROR_DEVICE_ALREADY_REMEMBERED +// +// MessageText: +// +// The local device name has a remembered connection to another network resource. +// +#define ERROR_DEVICE_ALREADY_REMEMBERED 1202L + +// +// MessageId: ERROR_NO_NET_OR_BAD_PATH +// +// MessageText: +// +// The network path was either typed incorrectly, does not exist, or the network provider is not currently available. Please try retyping the path or contact your network administrator. +// +#define ERROR_NO_NET_OR_BAD_PATH 1203L + +// +// MessageId: ERROR_BAD_PROVIDER +// +// MessageText: +// +// The specified network provider name is invalid. +// +#define ERROR_BAD_PROVIDER 1204L + +// +// MessageId: ERROR_CANNOT_OPEN_PROFILE +// +// MessageText: +// +// Unable to open the network connection profile. +// +#define ERROR_CANNOT_OPEN_PROFILE 1205L + +// +// MessageId: ERROR_BAD_PROFILE +// +// MessageText: +// +// The network connection profile is corrupted. +// +#define ERROR_BAD_PROFILE 1206L + +// +// MessageId: ERROR_NOT_CONTAINER +// +// MessageText: +// +// Cannot enumerate a noncontainer. +// +#define ERROR_NOT_CONTAINER 1207L + +// +// MessageId: ERROR_EXTENDED_ERROR +// +// MessageText: +// +// An extended error has occurred. +// +#define ERROR_EXTENDED_ERROR 1208L + +// +// MessageId: ERROR_INVALID_GROUPNAME +// +// MessageText: +// +// The format of the specified group name is invalid. +// +#define ERROR_INVALID_GROUPNAME 1209L + +// +// MessageId: ERROR_INVALID_COMPUTERNAME +// +// MessageText: +// +// The format of the specified computer name is invalid. +// +#define ERROR_INVALID_COMPUTERNAME 1210L + +// +// MessageId: ERROR_INVALID_EVENTNAME +// +// MessageText: +// +// The format of the specified event name is invalid. +// +#define ERROR_INVALID_EVENTNAME 1211L + +// +// MessageId: ERROR_INVALID_DOMAINNAME +// +// MessageText: +// +// The format of the specified domain name is invalid. +// +#define ERROR_INVALID_DOMAINNAME 1212L + +// +// MessageId: ERROR_INVALID_SERVICENAME +// +// MessageText: +// +// The format of the specified service name is invalid. +// +#define ERROR_INVALID_SERVICENAME 1213L + +// +// MessageId: ERROR_INVALID_NETNAME +// +// MessageText: +// +// The format of the specified network name is invalid. +// +#define ERROR_INVALID_NETNAME 1214L + +// +// MessageId: ERROR_INVALID_SHARENAME +// +// MessageText: +// +// The format of the specified share name is invalid. +// +#define ERROR_INVALID_SHARENAME 1215L + +// +// MessageId: ERROR_INVALID_PASSWORDNAME +// +// MessageText: +// +// The format of the specified password is invalid. +// +#define ERROR_INVALID_PASSWORDNAME 1216L + +// +// MessageId: ERROR_INVALID_MESSAGENAME +// +// MessageText: +// +// The format of the specified message name is invalid. +// +#define ERROR_INVALID_MESSAGENAME 1217L + +// +// MessageId: ERROR_INVALID_MESSAGEDEST +// +// MessageText: +// +// The format of the specified message destination is invalid. +// +#define ERROR_INVALID_MESSAGEDEST 1218L + +// +// MessageId: ERROR_SESSION_CREDENTIAL_CONFLICT +// +// MessageText: +// +// Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again. +// +#define ERROR_SESSION_CREDENTIAL_CONFLICT 1219L + +// +// MessageId: ERROR_REMOTE_SESSION_LIMIT_EXCEEDED +// +// MessageText: +// +// An attempt was made to establish a session to a network server, but there are already too many sessions established to that server. +// +#define ERROR_REMOTE_SESSION_LIMIT_EXCEEDED 1220L + +// +// MessageId: ERROR_DUP_DOMAINNAME +// +// MessageText: +// +// The workgroup or domain name is already in use by another computer on the network. +// +#define ERROR_DUP_DOMAINNAME 1221L + +// +// MessageId: ERROR_NO_NETWORK +// +// MessageText: +// +// The network is not present or not started. +// +#define ERROR_NO_NETWORK 1222L + +// +// MessageId: ERROR_CANCELLED +// +// MessageText: +// +// The operation was canceled by the user. +// +#define ERROR_CANCELLED 1223L + +// +// MessageId: ERROR_USER_MAPPED_FILE +// +// MessageText: +// +// The requested operation cannot be performed on a file with a user-mapped section open. +// +#define ERROR_USER_MAPPED_FILE 1224L + +// +// MessageId: ERROR_CONNECTION_REFUSED +// +// MessageText: +// +// The remote computer refused the network connection. +// +#define ERROR_CONNECTION_REFUSED 1225L + +// +// MessageId: ERROR_GRACEFUL_DISCONNECT +// +// MessageText: +// +// The network connection was gracefully closed. +// +#define ERROR_GRACEFUL_DISCONNECT 1226L + +// +// MessageId: ERROR_ADDRESS_ALREADY_ASSOCIATED +// +// MessageText: +// +// The network transport endpoint already has an address associated with it. +// +#define ERROR_ADDRESS_ALREADY_ASSOCIATED 1227L + +// +// MessageId: ERROR_ADDRESS_NOT_ASSOCIATED +// +// MessageText: +// +// An address has not yet been associated with the network endpoint. +// +#define ERROR_ADDRESS_NOT_ASSOCIATED 1228L + +// +// MessageId: ERROR_CONNECTION_INVALID +// +// MessageText: +// +// An operation was attempted on a nonexistent network connection. +// +#define ERROR_CONNECTION_INVALID 1229L + +// +// MessageId: ERROR_CONNECTION_ACTIVE +// +// MessageText: +// +// An invalid operation was attempted on an active network connection. +// +#define ERROR_CONNECTION_ACTIVE 1230L + +// +// MessageId: ERROR_NETWORK_UNREACHABLE +// +// MessageText: +// +// The network location cannot be reached. For information about network troubleshooting, see Windows Help. +// +#define ERROR_NETWORK_UNREACHABLE 1231L + +// +// MessageId: ERROR_HOST_UNREACHABLE +// +// MessageText: +// +// The network location cannot be reached. For information about network troubleshooting, see Windows Help. +// +#define ERROR_HOST_UNREACHABLE 1232L + +// +// MessageId: ERROR_PROTOCOL_UNREACHABLE +// +// MessageText: +// +// The network location cannot be reached. For information about network troubleshooting, see Windows Help. +// +#define ERROR_PROTOCOL_UNREACHABLE 1233L + +// +// MessageId: ERROR_PORT_UNREACHABLE +// +// MessageText: +// +// No service is operating at the destination network endpoint on the remote system. +// +#define ERROR_PORT_UNREACHABLE 1234L + +// +// MessageId: ERROR_REQUEST_ABORTED +// +// MessageText: +// +// The request was aborted. +// +#define ERROR_REQUEST_ABORTED 1235L + +// +// MessageId: ERROR_CONNECTION_ABORTED +// +// MessageText: +// +// The network connection was aborted by the local system. +// +#define ERROR_CONNECTION_ABORTED 1236L + +// +// MessageId: ERROR_RETRY +// +// MessageText: +// +// The operation could not be completed. A retry should be performed. +// +#define ERROR_RETRY 1237L + +// +// MessageId: ERROR_CONNECTION_COUNT_LIMIT +// +// MessageText: +// +// A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached. +// +#define ERROR_CONNECTION_COUNT_LIMIT 1238L + +// +// MessageId: ERROR_LOGIN_TIME_RESTRICTION +// +// MessageText: +// +// Attempting to log in during an unauthorized time of day for this account. +// +#define ERROR_LOGIN_TIME_RESTRICTION 1239L + +// +// MessageId: ERROR_LOGIN_WKSTA_RESTRICTION +// +// MessageText: +// +// The account is not authorized to log in from this station. +// +#define ERROR_LOGIN_WKSTA_RESTRICTION 1240L + +// +// MessageId: ERROR_INCORRECT_ADDRESS +// +// MessageText: +// +// The network address could not be used for the operation requested. +// +#define ERROR_INCORRECT_ADDRESS 1241L + +// +// MessageId: ERROR_ALREADY_REGISTERED +// +// MessageText: +// +// The service is already registered. +// +#define ERROR_ALREADY_REGISTERED 1242L + +// +// MessageId: ERROR_SERVICE_NOT_FOUND +// +// MessageText: +// +// The specified service does not exist. +// +#define ERROR_SERVICE_NOT_FOUND 1243L + +// +// MessageId: ERROR_NOT_AUTHENTICATED +// +// MessageText: +// +// The operation being requested was not performed because the user has not been authenticated. +// +#define ERROR_NOT_AUTHENTICATED 1244L + +// +// MessageId: ERROR_NOT_LOGGED_ON +// +// MessageText: +// +// The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist. +// +#define ERROR_NOT_LOGGED_ON 1245L + +// +// MessageId: ERROR_CONTINUE +// +// MessageText: +// +// Continue with work in progress. +// +#define ERROR_CONTINUE 1246L // dderror + +// +// MessageId: ERROR_ALREADY_INITIALIZED +// +// MessageText: +// +// An attempt was made to perform an initialization operation when initialization has already been completed. +// +#define ERROR_ALREADY_INITIALIZED 1247L + +// +// MessageId: ERROR_NO_MORE_DEVICES +// +// MessageText: +// +// No more local devices. +// +#define ERROR_NO_MORE_DEVICES 1248L // dderror + +// +// MessageId: ERROR_NO_SUCH_SITE +// +// MessageText: +// +// The specified site does not exist. +// +#define ERROR_NO_SUCH_SITE 1249L + +// +// MessageId: ERROR_DOMAIN_CONTROLLER_EXISTS +// +// MessageText: +// +// A domain controller with the specified name already exists. +// +#define ERROR_DOMAIN_CONTROLLER_EXISTS 1250L + +// +// MessageId: ERROR_ONLY_IF_CONNECTED +// +// MessageText: +// +// This operation is supported only when you are connected to the server. +// +#define ERROR_ONLY_IF_CONNECTED 1251L + +// +// MessageId: ERROR_OVERRIDE_NOCHANGES +// +// MessageText: +// +// The group policy framework should call the extension even if there are no changes. +// +#define ERROR_OVERRIDE_NOCHANGES 1252L + +// +// MessageId: ERROR_BAD_USER_PROFILE +// +// MessageText: +// +// The specified user does not have a valid profile. +// +#define ERROR_BAD_USER_PROFILE 1253L + +// +// MessageId: ERROR_NOT_SUPPORTED_ON_SBS +// +// MessageText: +// +// This operation is not supported on a computer running Windows Server 2003 for Small Business Server +// +#define ERROR_NOT_SUPPORTED_ON_SBS 1254L + +// +// MessageId: ERROR_SERVER_SHUTDOWN_IN_PROGRESS +// +// MessageText: +// +// The server machine is shutting down. +// +#define ERROR_SERVER_SHUTDOWN_IN_PROGRESS 1255L + +// +// MessageId: ERROR_HOST_DOWN +// +// MessageText: +// +// The remote system is not available. For information about network troubleshooting, see Windows Help. +// +#define ERROR_HOST_DOWN 1256L + +// +// MessageId: ERROR_NON_ACCOUNT_SID +// +// MessageText: +// +// The security identifier provided is not from an account domain. +// +#define ERROR_NON_ACCOUNT_SID 1257L + +// +// MessageId: ERROR_NON_DOMAIN_SID +// +// MessageText: +// +// The security identifier provided does not have a domain component. +// +#define ERROR_NON_DOMAIN_SID 1258L + +// +// MessageId: ERROR_APPHELP_BLOCK +// +// MessageText: +// +// AppHelp dialog canceled thus preventing the application from starting. +// +#define ERROR_APPHELP_BLOCK 1259L + +// +// MessageId: ERROR_ACCESS_DISABLED_BY_POLICY +// +// MessageText: +// +// This program is blocked by group policy. For more information, contact your system administrator. +// +#define ERROR_ACCESS_DISABLED_BY_POLICY 1260L + +// +// MessageId: ERROR_REG_NAT_CONSUMPTION +// +// MessageText: +// +// A program attempt to use an invalid register value. Normally caused by an uninitialized register. This error is Itanium specific. +// +#define ERROR_REG_NAT_CONSUMPTION 1261L + +// +// MessageId: ERROR_CSCSHARE_OFFLINE +// +// MessageText: +// +// The share is currently offline or does not exist. +// +#define ERROR_CSCSHARE_OFFLINE 1262L + +// +// MessageId: ERROR_PKINIT_FAILURE +// +// MessageText: +// +// The Kerberos protocol encountered an error while validating the KDC certificate during smartcard logon. There is more information in the system event log. +// +#define ERROR_PKINIT_FAILURE 1263L + +// +// MessageId: ERROR_SMARTCARD_SUBSYSTEM_FAILURE +// +// MessageText: +// +// The Kerberos protocol encountered an error while attempting to utilize the smartcard subsystem. +// +#define ERROR_SMARTCARD_SUBSYSTEM_FAILURE 1264L + +// +// MessageId: ERROR_DOWNGRADE_DETECTED +// +// MessageText: +// +// The system cannot contact a domain controller to service the authentication request. Please try again later. +// +#define ERROR_DOWNGRADE_DETECTED 1265L + +// +// Do not use ID's 1266 - 1270 as the symbolicNames have been moved to SEC_E_* +// +// +// MessageId: ERROR_MACHINE_LOCKED +// +// MessageText: +// +// The machine is locked and cannot be shut down without the force option. +// +#define ERROR_MACHINE_LOCKED 1271L + +// +// MessageId: ERROR_SMB_GUEST_LOGON_BLOCKED +// +// MessageText: +// +// You can't access this shared folder because your organization's security policies block unauthenticated guest access. These policies help protect your PC from unsafe or malicious devices on the network. +// +#define ERROR_SMB_GUEST_LOGON_BLOCKED 1272L + +// +// MessageId: ERROR_CALLBACK_SUPPLIED_INVALID_DATA +// +// MessageText: +// +// An application-defined callback gave invalid data when called. +// +#define ERROR_CALLBACK_SUPPLIED_INVALID_DATA 1273L + +// +// MessageId: ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED +// +// MessageText: +// +// The group policy framework should call the extension in the synchronous foreground policy refresh. +// +#define ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED 1274L + +// +// MessageId: ERROR_DRIVER_BLOCKED +// +// MessageText: +// +// This driver has been blocked from loading +// +#define ERROR_DRIVER_BLOCKED 1275L + +// +// MessageId: ERROR_INVALID_IMPORT_OF_NON_DLL +// +// MessageText: +// +// A dynamic link library (DLL) referenced a module that was neither a DLL nor the process's executable image. +// +#define ERROR_INVALID_IMPORT_OF_NON_DLL 1276L + +// +// MessageId: ERROR_ACCESS_DISABLED_WEBBLADE +// +// MessageText: +// +// Windows cannot open this program since it has been disabled. +// +#define ERROR_ACCESS_DISABLED_WEBBLADE 1277L + +// +// MessageId: ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER +// +// MessageText: +// +// Windows cannot open this program because the license enforcement system has been tampered with or become corrupted. +// +#define ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER 1278L + +// +// MessageId: ERROR_RECOVERY_FAILURE +// +// MessageText: +// +// A transaction recover failed. +// +#define ERROR_RECOVERY_FAILURE 1279L + +// +// MessageId: ERROR_ALREADY_FIBER +// +// MessageText: +// +// The current thread has already been converted to a fiber. +// +#define ERROR_ALREADY_FIBER 1280L + +// +// MessageId: ERROR_ALREADY_THREAD +// +// MessageText: +// +// The current thread has already been converted from a fiber. +// +#define ERROR_ALREADY_THREAD 1281L + +// +// MessageId: ERROR_STACK_BUFFER_OVERRUN +// +// MessageText: +// +// The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application. +// +#define ERROR_STACK_BUFFER_OVERRUN 1282L + +// +// MessageId: ERROR_PARAMETER_QUOTA_EXCEEDED +// +// MessageText: +// +// Data present in one of the parameters is more than the function can operate on. +// +#define ERROR_PARAMETER_QUOTA_EXCEEDED 1283L + +// +// MessageId: ERROR_DEBUGGER_INACTIVE +// +// MessageText: +// +// An attempt to do an operation on a debug object failed because the object is in the process of being deleted. +// +#define ERROR_DEBUGGER_INACTIVE 1284L + +// +// MessageId: ERROR_DELAY_LOAD_FAILED +// +// MessageText: +// +// An attempt to delay-load a .dll or get a function address in a delay-loaded .dll failed. +// +#define ERROR_DELAY_LOAD_FAILED 1285L + +// +// MessageId: ERROR_VDM_DISALLOWED +// +// MessageText: +// +// %1 is a 16-bit application. You do not have permissions to execute 16-bit applications. Check your permissions with your system administrator. +// +#define ERROR_VDM_DISALLOWED 1286L + +// +// MessageId: ERROR_UNIDENTIFIED_ERROR +// +// MessageText: +// +// Insufficient information exists to identify the cause of failure. +// +#define ERROR_UNIDENTIFIED_ERROR 1287L + +// +// MessageId: ERROR_INVALID_CRUNTIME_PARAMETER +// +// MessageText: +// +// The parameter passed to a C runtime function is incorrect. +// +#define ERROR_INVALID_CRUNTIME_PARAMETER 1288L + +// +// MessageId: ERROR_BEYOND_VDL +// +// MessageText: +// +// The operation occurred beyond the valid data length of the file. +// +#define ERROR_BEYOND_VDL 1289L + +// +// MessageId: ERROR_INCOMPATIBLE_SERVICE_SID_TYPE +// +// MessageText: +// +// The service start failed since one or more services in the same process have an incompatible service SID type setting. A service with restricted service SID type can only coexist in the same process with other services with a restricted SID type. If the service SID type for this service was just configured, the hosting process must be restarted in order to start this service. +// +#define ERROR_INCOMPATIBLE_SERVICE_SID_TYPE 1290L + +// +// MessageId: ERROR_DRIVER_PROCESS_TERMINATED +// +// MessageText: +// +// The process hosting the driver for this device has been terminated. +// +#define ERROR_DRIVER_PROCESS_TERMINATED 1291L + +// +// MessageId: ERROR_IMPLEMENTATION_LIMIT +// +// MessageText: +// +// An operation attempted to exceed an implementation-defined limit. +// +#define ERROR_IMPLEMENTATION_LIMIT 1292L + +// +// MessageId: ERROR_PROCESS_IS_PROTECTED +// +// MessageText: +// +// Either the target process, or the target thread's containing process, is a protected process. +// +#define ERROR_PROCESS_IS_PROTECTED 1293L + +// +// MessageId: ERROR_SERVICE_NOTIFY_CLIENT_LAGGING +// +// MessageText: +// +// The service notification client is lagging too far behind the current state of services in the machine. +// +#define ERROR_SERVICE_NOTIFY_CLIENT_LAGGING 1294L + +// +// MessageId: ERROR_DISK_QUOTA_EXCEEDED +// +// MessageText: +// +// The requested file operation failed because the storage quota was exceeded. +// To free up disk space, move files to a different location or delete unnecessary files. For more information, contact your system administrator. +// +#define ERROR_DISK_QUOTA_EXCEEDED 1295L + +// +// MessageId: ERROR_CONTENT_BLOCKED +// +// MessageText: +// +// The requested file operation failed because the storage policy blocks that type of file. For more information, contact your system administrator. +// +#define ERROR_CONTENT_BLOCKED 1296L + +// +// MessageId: ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE +// +// MessageText: +// +// A privilege that the service requires to function properly does not exist in the service account configuration. +// You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration. +// +#define ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE 1297L + +// +// MessageId: ERROR_APP_HANG +// +// MessageText: +// +// A thread involved in this operation appears to be unresponsive. +// +#define ERROR_APP_HANG 1298L + + +/////////////////////////////////////////////////// +// // +// SECURITY Error codes // +// // +// 1299 to 1399 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_INVALID_LABEL +// +// MessageText: +// +// Indicates a particular Security ID may not be assigned as the label of an object. +// +#define ERROR_INVALID_LABEL 1299L + +// +// MessageId: ERROR_NOT_ALL_ASSIGNED +// +// MessageText: +// +// Not all privileges or groups referenced are assigned to the caller. +// +#define ERROR_NOT_ALL_ASSIGNED 1300L + +// +// MessageId: ERROR_SOME_NOT_MAPPED +// +// MessageText: +// +// Some mapping between account names and security IDs was not done. +// +#define ERROR_SOME_NOT_MAPPED 1301L + +// +// MessageId: ERROR_NO_QUOTAS_FOR_ACCOUNT +// +// MessageText: +// +// No system quota limits are specifically set for this account. +// +#define ERROR_NO_QUOTAS_FOR_ACCOUNT 1302L + +// +// MessageId: ERROR_LOCAL_USER_SESSION_KEY +// +// MessageText: +// +// No encryption key is available. A well-known encryption key was returned. +// +#define ERROR_LOCAL_USER_SESSION_KEY 1303L + +// +// MessageId: ERROR_NULL_LM_PASSWORD +// +// MessageText: +// +// The password is too complex to be converted to a LAN Manager password. The LAN Manager password returned is a NULL string. +// +#define ERROR_NULL_LM_PASSWORD 1304L + +// +// MessageId: ERROR_UNKNOWN_REVISION +// +// MessageText: +// +// The revision level is unknown. +// +#define ERROR_UNKNOWN_REVISION 1305L + +// +// MessageId: ERROR_REVISION_MISMATCH +// +// MessageText: +// +// Indicates two revision levels are incompatible. +// +#define ERROR_REVISION_MISMATCH 1306L + +// +// MessageId: ERROR_INVALID_OWNER +// +// MessageText: +// +// This security ID may not be assigned as the owner of this object. +// +#define ERROR_INVALID_OWNER 1307L + +// +// MessageId: ERROR_INVALID_PRIMARY_GROUP +// +// MessageText: +// +// This security ID may not be assigned as the primary group of an object. +// +#define ERROR_INVALID_PRIMARY_GROUP 1308L + +// +// MessageId: ERROR_NO_IMPERSONATION_TOKEN +// +// MessageText: +// +// An attempt has been made to operate on an impersonation token by a thread that is not currently impersonating a client. +// +#define ERROR_NO_IMPERSONATION_TOKEN 1309L + +// +// MessageId: ERROR_CANT_DISABLE_MANDATORY +// +// MessageText: +// +// The group may not be disabled. +// +#define ERROR_CANT_DISABLE_MANDATORY 1310L + +// +// MessageId: ERROR_NO_LOGON_SERVERS +// +// MessageText: +// +// We can't sign you in with this credential because your domain isn't available. Make sure your device is connected to your organization's network and try again. If you previously signed in on this device with another credential, you can sign in with that credential. +// +#define ERROR_NO_LOGON_SERVERS 1311L + +// +// MessageId: ERROR_NO_SUCH_LOGON_SESSION +// +// MessageText: +// +// A specified logon session does not exist. It may already have been terminated. +// +#define ERROR_NO_SUCH_LOGON_SESSION 1312L + +// +// MessageId: ERROR_NO_SUCH_PRIVILEGE +// +// MessageText: +// +// A specified privilege does not exist. +// +#define ERROR_NO_SUCH_PRIVILEGE 1313L + +// +// MessageId: ERROR_PRIVILEGE_NOT_HELD +// +// MessageText: +// +// A required privilege is not held by the client. +// +#define ERROR_PRIVILEGE_NOT_HELD 1314L + +// +// MessageId: ERROR_INVALID_ACCOUNT_NAME +// +// MessageText: +// +// The name provided is not a properly formed account name. +// +#define ERROR_INVALID_ACCOUNT_NAME 1315L + +// +// MessageId: ERROR_USER_EXISTS +// +// MessageText: +// +// The specified account already exists. +// +#define ERROR_USER_EXISTS 1316L + +// +// MessageId: ERROR_NO_SUCH_USER +// +// MessageText: +// +// The specified account does not exist. +// +#define ERROR_NO_SUCH_USER 1317L + +// +// MessageId: ERROR_GROUP_EXISTS +// +// MessageText: +// +// The specified group already exists. +// +#define ERROR_GROUP_EXISTS 1318L + +// +// MessageId: ERROR_NO_SUCH_GROUP +// +// MessageText: +// +// The specified group does not exist. +// +#define ERROR_NO_SUCH_GROUP 1319L + +// +// MessageId: ERROR_MEMBER_IN_GROUP +// +// MessageText: +// +// Either the specified user account is already a member of the specified group, or the specified group cannot be deleted because it contains a member. +// +#define ERROR_MEMBER_IN_GROUP 1320L + +// +// MessageId: ERROR_MEMBER_NOT_IN_GROUP +// +// MessageText: +// +// The specified user account is not a member of the specified group account. +// +#define ERROR_MEMBER_NOT_IN_GROUP 1321L + +// +// MessageId: ERROR_LAST_ADMIN +// +// MessageText: +// +// This operation is disallowed as it could result in an administration account being disabled, deleted or unable to logon. +// +#define ERROR_LAST_ADMIN 1322L + +// +// MessageId: ERROR_WRONG_PASSWORD +// +// MessageText: +// +// Unable to update the password. The value provided as the current password is incorrect. +// +#define ERROR_WRONG_PASSWORD 1323L + +// +// MessageId: ERROR_ILL_FORMED_PASSWORD +// +// MessageText: +// +// Unable to update the password. The value provided for the new password contains values that are not allowed in passwords. +// +#define ERROR_ILL_FORMED_PASSWORD 1324L + +// +// MessageId: ERROR_PASSWORD_RESTRICTION +// +// MessageText: +// +// Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the machine or domain. Try increasing the length of your password, along with including upper and lowercase characters, numbers, and symbols. +// +#define ERROR_PASSWORD_RESTRICTION 1325L + +// +// MessageId: ERROR_LOGON_FAILURE +// +// MessageText: +// +// The user name or password is incorrect. +// +#define ERROR_LOGON_FAILURE 1326L + +// +// MessageId: ERROR_ACCOUNT_RESTRICTION +// +// MessageText: +// +// Account restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced. +// +#define ERROR_ACCOUNT_RESTRICTION 1327L + +// +// MessageId: ERROR_INVALID_LOGON_HOURS +// +// MessageText: +// +// Your account has time restrictions that keep you from signing in right now. +// +#define ERROR_INVALID_LOGON_HOURS 1328L + +// +// MessageId: ERROR_INVALID_WORKSTATION +// +// MessageText: +// +// This user isn't allowed to sign in to this computer. +// +#define ERROR_INVALID_WORKSTATION 1329L + +// +// MessageId: ERROR_PASSWORD_EXPIRED +// +// MessageText: +// +// The password for this account has expired. +// +#define ERROR_PASSWORD_EXPIRED 1330L + +// +// MessageId: ERROR_ACCOUNT_DISABLED +// +// MessageText: +// +// This user can't sign in because this account is currently disabled. +// +#define ERROR_ACCOUNT_DISABLED 1331L + +// +// MessageId: ERROR_NONE_MAPPED +// +// MessageText: +// +// No mapping between account names and security IDs was done. +// +#define ERROR_NONE_MAPPED 1332L + +// +// MessageId: ERROR_TOO_MANY_LUIDS_REQUESTED +// +// MessageText: +// +// Too many local user identifiers (LUIDs) were requested at one time. +// +#define ERROR_TOO_MANY_LUIDS_REQUESTED 1333L + +// +// MessageId: ERROR_LUIDS_EXHAUSTED +// +// MessageText: +// +// No more local user identifiers (LUIDs) are available. +// +#define ERROR_LUIDS_EXHAUSTED 1334L + +// +// MessageId: ERROR_INVALID_SUB_AUTHORITY +// +// MessageText: +// +// The subauthority part of a security ID is invalid for this particular use. +// +#define ERROR_INVALID_SUB_AUTHORITY 1335L + +// +// MessageId: ERROR_INVALID_ACL +// +// MessageText: +// +// The access control list (ACL) structure is invalid. +// +#define ERROR_INVALID_ACL 1336L + +// +// MessageId: ERROR_INVALID_SID +// +// MessageText: +// +// The security ID structure is invalid. +// +#define ERROR_INVALID_SID 1337L + +// +// MessageId: ERROR_INVALID_SECURITY_DESCR +// +// MessageText: +// +// The security descriptor structure is invalid. +// +#define ERROR_INVALID_SECURITY_DESCR 1338L + +// +// MessageId: ERROR_BAD_INHERITANCE_ACL +// +// MessageText: +// +// The inherited access control list (ACL) or access control entry (ACE) could not be built. +// +#define ERROR_BAD_INHERITANCE_ACL 1340L + +// +// MessageId: ERROR_SERVER_DISABLED +// +// MessageText: +// +// The server is currently disabled. +// +#define ERROR_SERVER_DISABLED 1341L + +// +// MessageId: ERROR_SERVER_NOT_DISABLED +// +// MessageText: +// +// The server is currently enabled. +// +#define ERROR_SERVER_NOT_DISABLED 1342L + +// +// MessageId: ERROR_INVALID_ID_AUTHORITY +// +// MessageText: +// +// The value provided was an invalid value for an identifier authority. +// +#define ERROR_INVALID_ID_AUTHORITY 1343L + +// +// MessageId: ERROR_ALLOTTED_SPACE_EXCEEDED +// +// MessageText: +// +// No more memory is available for security information updates. +// +#define ERROR_ALLOTTED_SPACE_EXCEEDED 1344L + +// +// MessageId: ERROR_INVALID_GROUP_ATTRIBUTES +// +// MessageText: +// +// The specified attributes are invalid, or incompatible with the attributes for the group as a whole. +// +#define ERROR_INVALID_GROUP_ATTRIBUTES 1345L + +// +// MessageId: ERROR_BAD_IMPERSONATION_LEVEL +// +// MessageText: +// +// Either a required impersonation level was not provided, or the provided impersonation level is invalid. +// +#define ERROR_BAD_IMPERSONATION_LEVEL 1346L + +// +// MessageId: ERROR_CANT_OPEN_ANONYMOUS +// +// MessageText: +// +// Cannot open an anonymous level security token. +// +#define ERROR_CANT_OPEN_ANONYMOUS 1347L + +// +// MessageId: ERROR_BAD_VALIDATION_CLASS +// +// MessageText: +// +// The validation information class requested was invalid. +// +#define ERROR_BAD_VALIDATION_CLASS 1348L + +// +// MessageId: ERROR_BAD_TOKEN_TYPE +// +// MessageText: +// +// The type of the token is inappropriate for its attempted use. +// +#define ERROR_BAD_TOKEN_TYPE 1349L + +// +// MessageId: ERROR_NO_SECURITY_ON_OBJECT +// +// MessageText: +// +// Unable to perform a security operation on an object that has no associated security. +// +#define ERROR_NO_SECURITY_ON_OBJECT 1350L + +// +// MessageId: ERROR_CANT_ACCESS_DOMAIN_INFO +// +// MessageText: +// +// Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied. +// +#define ERROR_CANT_ACCESS_DOMAIN_INFO 1351L + +// +// MessageId: ERROR_INVALID_SERVER_STATE +// +// MessageText: +// +// The security account manager (SAM) or local security authority (LSA) server was in the wrong state to perform the security operation. +// +#define ERROR_INVALID_SERVER_STATE 1352L + +// +// MessageId: ERROR_INVALID_DOMAIN_STATE +// +// MessageText: +// +// The domain was in the wrong state to perform the security operation. +// +#define ERROR_INVALID_DOMAIN_STATE 1353L + +// +// MessageId: ERROR_INVALID_DOMAIN_ROLE +// +// MessageText: +// +// This operation is only allowed for the Primary Domain Controller of the domain. +// +#define ERROR_INVALID_DOMAIN_ROLE 1354L + +// +// MessageId: ERROR_NO_SUCH_DOMAIN +// +// MessageText: +// +// The specified domain either does not exist or could not be contacted. +// +#define ERROR_NO_SUCH_DOMAIN 1355L + +// +// MessageId: ERROR_DOMAIN_EXISTS +// +// MessageText: +// +// The specified domain already exists. +// +#define ERROR_DOMAIN_EXISTS 1356L + +// +// MessageId: ERROR_DOMAIN_LIMIT_EXCEEDED +// +// MessageText: +// +// An attempt was made to exceed the limit on the number of domains per server. +// +#define ERROR_DOMAIN_LIMIT_EXCEEDED 1357L + +// +// MessageId: ERROR_INTERNAL_DB_CORRUPTION +// +// MessageText: +// +// Unable to complete the requested operation because of either a catastrophic media failure or a data structure corruption on the disk. +// +#define ERROR_INTERNAL_DB_CORRUPTION 1358L + +// +// MessageId: ERROR_INTERNAL_ERROR +// +// MessageText: +// +// An internal error occurred. +// +#define ERROR_INTERNAL_ERROR 1359L + +// +// MessageId: ERROR_GENERIC_NOT_MAPPED +// +// MessageText: +// +// Generic access types were contained in an access mask which should already be mapped to nongeneric types. +// +#define ERROR_GENERIC_NOT_MAPPED 1360L + +// +// MessageId: ERROR_BAD_DESCRIPTOR_FORMAT +// +// MessageText: +// +// A security descriptor is not in the right format (absolute or self-relative). +// +#define ERROR_BAD_DESCRIPTOR_FORMAT 1361L + +// +// MessageId: ERROR_NOT_LOGON_PROCESS +// +// MessageText: +// +// The requested action is restricted for use by logon processes only. The calling process has not registered as a logon process. +// +#define ERROR_NOT_LOGON_PROCESS 1362L + +// +// MessageId: ERROR_LOGON_SESSION_EXISTS +// +// MessageText: +// +// Cannot start a new logon session with an ID that is already in use. +// +#define ERROR_LOGON_SESSION_EXISTS 1363L + +// +// MessageId: ERROR_NO_SUCH_PACKAGE +// +// MessageText: +// +// A specified authentication package is unknown. +// +#define ERROR_NO_SUCH_PACKAGE 1364L + +// +// MessageId: ERROR_BAD_LOGON_SESSION_STATE +// +// MessageText: +// +// The logon session is not in a state that is consistent with the requested operation. +// +#define ERROR_BAD_LOGON_SESSION_STATE 1365L + +// +// MessageId: ERROR_LOGON_SESSION_COLLISION +// +// MessageText: +// +// The logon session ID is already in use. +// +#define ERROR_LOGON_SESSION_COLLISION 1366L + +// +// MessageId: ERROR_INVALID_LOGON_TYPE +// +// MessageText: +// +// A logon request contained an invalid logon type value. +// +#define ERROR_INVALID_LOGON_TYPE 1367L + +// +// MessageId: ERROR_CANNOT_IMPERSONATE +// +// MessageText: +// +// Unable to impersonate using a named pipe until data has been read from that pipe. +// +#define ERROR_CANNOT_IMPERSONATE 1368L + +// +// MessageId: ERROR_RXACT_INVALID_STATE +// +// MessageText: +// +// The transaction state of a registry subtree is incompatible with the requested operation. +// +#define ERROR_RXACT_INVALID_STATE 1369L + +// +// MessageId: ERROR_RXACT_COMMIT_FAILURE +// +// MessageText: +// +// An internal security database corruption has been encountered. +// +#define ERROR_RXACT_COMMIT_FAILURE 1370L + +// +// MessageId: ERROR_SPECIAL_ACCOUNT +// +// MessageText: +// +// Cannot perform this operation on built-in accounts. +// +#define ERROR_SPECIAL_ACCOUNT 1371L + +// +// MessageId: ERROR_SPECIAL_GROUP +// +// MessageText: +// +// Cannot perform this operation on this built-in special group. +// +#define ERROR_SPECIAL_GROUP 1372L + +// +// MessageId: ERROR_SPECIAL_USER +// +// MessageText: +// +// Cannot perform this operation on this built-in special user. +// +#define ERROR_SPECIAL_USER 1373L + +// +// MessageId: ERROR_MEMBERS_PRIMARY_GROUP +// +// MessageText: +// +// The user cannot be removed from a group because the group is currently the user's primary group. +// +#define ERROR_MEMBERS_PRIMARY_GROUP 1374L + +// +// MessageId: ERROR_TOKEN_ALREADY_IN_USE +// +// MessageText: +// +// The token is already in use as a primary token. +// +#define ERROR_TOKEN_ALREADY_IN_USE 1375L + +// +// MessageId: ERROR_NO_SUCH_ALIAS +// +// MessageText: +// +// The specified local group does not exist. +// +#define ERROR_NO_SUCH_ALIAS 1376L + +// +// MessageId: ERROR_MEMBER_NOT_IN_ALIAS +// +// MessageText: +// +// The specified account name is not a member of the group. +// +#define ERROR_MEMBER_NOT_IN_ALIAS 1377L + +// +// MessageId: ERROR_MEMBER_IN_ALIAS +// +// MessageText: +// +// The specified account name is already a member of the group. +// +#define ERROR_MEMBER_IN_ALIAS 1378L + +// +// MessageId: ERROR_ALIAS_EXISTS +// +// MessageText: +// +// The specified local group already exists. +// +#define ERROR_ALIAS_EXISTS 1379L + +// +// MessageId: ERROR_LOGON_NOT_GRANTED +// +// MessageText: +// +// Logon failure: the user has not been granted the requested logon type at this computer. +// +#define ERROR_LOGON_NOT_GRANTED 1380L + +// +// MessageId: ERROR_TOO_MANY_SECRETS +// +// MessageText: +// +// The maximum number of secrets that may be stored in a single system has been exceeded. +// +#define ERROR_TOO_MANY_SECRETS 1381L + +// +// MessageId: ERROR_SECRET_TOO_LONG +// +// MessageText: +// +// The length of a secret exceeds the maximum length allowed. +// +#define ERROR_SECRET_TOO_LONG 1382L + +// +// MessageId: ERROR_INTERNAL_DB_ERROR +// +// MessageText: +// +// The local security authority database contains an internal inconsistency. +// +#define ERROR_INTERNAL_DB_ERROR 1383L + +// +// MessageId: ERROR_TOO_MANY_CONTEXT_IDS +// +// MessageText: +// +// During a logon attempt, the user's security context accumulated too many security IDs. +// +#define ERROR_TOO_MANY_CONTEXT_IDS 1384L + +// +// MessageId: ERROR_LOGON_TYPE_NOT_GRANTED +// +// MessageText: +// +// Logon failure: the user has not been granted the requested logon type at this computer. +// +#define ERROR_LOGON_TYPE_NOT_GRANTED 1385L + +// +// MessageId: ERROR_NT_CROSS_ENCRYPTION_REQUIRED +// +// MessageText: +// +// A cross-encrypted password is necessary to change a user password. +// +#define ERROR_NT_CROSS_ENCRYPTION_REQUIRED 1386L + +// +// MessageId: ERROR_NO_SUCH_MEMBER +// +// MessageText: +// +// A member could not be added to or removed from the local group because the member does not exist. +// +#define ERROR_NO_SUCH_MEMBER 1387L + +// +// MessageId: ERROR_INVALID_MEMBER +// +// MessageText: +// +// A new member could not be added to a local group because the member has the wrong account type. +// +#define ERROR_INVALID_MEMBER 1388L + +// +// MessageId: ERROR_TOO_MANY_SIDS +// +// MessageText: +// +// Too many security IDs have been specified. +// +#define ERROR_TOO_MANY_SIDS 1389L + +// +// MessageId: ERROR_LM_CROSS_ENCRYPTION_REQUIRED +// +// MessageText: +// +// A cross-encrypted password is necessary to change this user password. +// +#define ERROR_LM_CROSS_ENCRYPTION_REQUIRED 1390L + +// +// MessageId: ERROR_NO_INHERITANCE +// +// MessageText: +// +// Indicates an ACL contains no inheritable components. +// +#define ERROR_NO_INHERITANCE 1391L + +// +// MessageId: ERROR_FILE_CORRUPT +// +// MessageText: +// +// The file or directory is corrupted and unreadable. +// +#define ERROR_FILE_CORRUPT 1392L + +// +// MessageId: ERROR_DISK_CORRUPT +// +// MessageText: +// +// The disk structure is corrupted and unreadable. +// +#define ERROR_DISK_CORRUPT 1393L + +// +// MessageId: ERROR_NO_USER_SESSION_KEY +// +// MessageText: +// +// There is no user session key for the specified logon session. +// +#define ERROR_NO_USER_SESSION_KEY 1394L + +// +// MessageId: ERROR_LICENSE_QUOTA_EXCEEDED +// +// MessageText: +// +// The service being accessed is licensed for a particular number of connections. No more connections can be made to the service at this time because there are already as many connections as the service can accept. +// +#define ERROR_LICENSE_QUOTA_EXCEEDED 1395L + +// +// MessageId: ERROR_WRONG_TARGET_NAME +// +// MessageText: +// +// The target account name is incorrect. +// +#define ERROR_WRONG_TARGET_NAME 1396L + +// +// MessageId: ERROR_MUTUAL_AUTH_FAILED +// +// MessageText: +// +// Mutual Authentication failed. The server's password is out of date at the domain controller. +// +#define ERROR_MUTUAL_AUTH_FAILED 1397L + +// +// MessageId: ERROR_TIME_SKEW +// +// MessageText: +// +// There is a time and/or date difference between the client and server. +// +#define ERROR_TIME_SKEW 1398L + +// +// MessageId: ERROR_CURRENT_DOMAIN_NOT_ALLOWED +// +// MessageText: +// +// This operation cannot be performed on the current domain. +// +#define ERROR_CURRENT_DOMAIN_NOT_ALLOWED 1399L + + +/////////////////////////////////////////////////// +// // +// WinUser Error codes // +// // +// 1400 to 1499 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_INVALID_WINDOW_HANDLE +// +// MessageText: +// +// Invalid window handle. +// +#define ERROR_INVALID_WINDOW_HANDLE 1400L + +// +// MessageId: ERROR_INVALID_MENU_HANDLE +// +// MessageText: +// +// Invalid menu handle. +// +#define ERROR_INVALID_MENU_HANDLE 1401L + +// +// MessageId: ERROR_INVALID_CURSOR_HANDLE +// +// MessageText: +// +// Invalid cursor handle. +// +#define ERROR_INVALID_CURSOR_HANDLE 1402L + +// +// MessageId: ERROR_INVALID_ACCEL_HANDLE +// +// MessageText: +// +// Invalid accelerator table handle. +// +#define ERROR_INVALID_ACCEL_HANDLE 1403L + +// +// MessageId: ERROR_INVALID_HOOK_HANDLE +// +// MessageText: +// +// Invalid hook handle. +// +#define ERROR_INVALID_HOOK_HANDLE 1404L + +// +// MessageId: ERROR_INVALID_DWP_HANDLE +// +// MessageText: +// +// Invalid handle to a multiple-window position structure. +// +#define ERROR_INVALID_DWP_HANDLE 1405L + +// +// MessageId: ERROR_TLW_WITH_WSCHILD +// +// MessageText: +// +// Cannot create a top-level child window. +// +#define ERROR_TLW_WITH_WSCHILD 1406L + +// +// MessageId: ERROR_CANNOT_FIND_WND_CLASS +// +// MessageText: +// +// Cannot find window class. +// +#define ERROR_CANNOT_FIND_WND_CLASS 1407L + +// +// MessageId: ERROR_WINDOW_OF_OTHER_THREAD +// +// MessageText: +// +// Invalid window; it belongs to other thread. +// +#define ERROR_WINDOW_OF_OTHER_THREAD 1408L + +// +// MessageId: ERROR_HOTKEY_ALREADY_REGISTERED +// +// MessageText: +// +// Hot key is already registered. +// +#define ERROR_HOTKEY_ALREADY_REGISTERED 1409L + +// +// MessageId: ERROR_CLASS_ALREADY_EXISTS +// +// MessageText: +// +// Class already exists. +// +#define ERROR_CLASS_ALREADY_EXISTS 1410L + +// +// MessageId: ERROR_CLASS_DOES_NOT_EXIST +// +// MessageText: +// +// Class does not exist. +// +#define ERROR_CLASS_DOES_NOT_EXIST 1411L + +// +// MessageId: ERROR_CLASS_HAS_WINDOWS +// +// MessageText: +// +// Class still has open windows. +// +#define ERROR_CLASS_HAS_WINDOWS 1412L + +// +// MessageId: ERROR_INVALID_INDEX +// +// MessageText: +// +// Invalid index. +// +#define ERROR_INVALID_INDEX 1413L + +// +// MessageId: ERROR_INVALID_ICON_HANDLE +// +// MessageText: +// +// Invalid icon handle. +// +#define ERROR_INVALID_ICON_HANDLE 1414L + +// +// MessageId: ERROR_PRIVATE_DIALOG_INDEX +// +// MessageText: +// +// Using private DIALOG window words. +// +#define ERROR_PRIVATE_DIALOG_INDEX 1415L + +// +// MessageId: ERROR_LISTBOX_ID_NOT_FOUND +// +// MessageText: +// +// The list box identifier was not found. +// +#define ERROR_LISTBOX_ID_NOT_FOUND 1416L + +// +// MessageId: ERROR_NO_WILDCARD_CHARACTERS +// +// MessageText: +// +// No wildcards were found. +// +#define ERROR_NO_WILDCARD_CHARACTERS 1417L + +// +// MessageId: ERROR_CLIPBOARD_NOT_OPEN +// +// MessageText: +// +// Thread does not have a clipboard open. +// +#define ERROR_CLIPBOARD_NOT_OPEN 1418L + +// +// MessageId: ERROR_HOTKEY_NOT_REGISTERED +// +// MessageText: +// +// Hot key is not registered. +// +#define ERROR_HOTKEY_NOT_REGISTERED 1419L + +// +// MessageId: ERROR_WINDOW_NOT_DIALOG +// +// MessageText: +// +// The window is not a valid dialog window. +// +#define ERROR_WINDOW_NOT_DIALOG 1420L + +// +// MessageId: ERROR_CONTROL_ID_NOT_FOUND +// +// MessageText: +// +// Control ID not found. +// +#define ERROR_CONTROL_ID_NOT_FOUND 1421L + +// +// MessageId: ERROR_INVALID_COMBOBOX_MESSAGE +// +// MessageText: +// +// Invalid message for a combo box because it does not have an edit control. +// +#define ERROR_INVALID_COMBOBOX_MESSAGE 1422L + +// +// MessageId: ERROR_WINDOW_NOT_COMBOBOX +// +// MessageText: +// +// The window is not a combo box. +// +#define ERROR_WINDOW_NOT_COMBOBOX 1423L + +// +// MessageId: ERROR_INVALID_EDIT_HEIGHT +// +// MessageText: +// +// Height must be less than 256. +// +#define ERROR_INVALID_EDIT_HEIGHT 1424L + +// +// MessageId: ERROR_DC_NOT_FOUND +// +// MessageText: +// +// Invalid device context (DC) handle. +// +#define ERROR_DC_NOT_FOUND 1425L + +// +// MessageId: ERROR_INVALID_HOOK_FILTER +// +// MessageText: +// +// Invalid hook procedure type. +// +#define ERROR_INVALID_HOOK_FILTER 1426L + +// +// MessageId: ERROR_INVALID_FILTER_PROC +// +// MessageText: +// +// Invalid hook procedure. +// +#define ERROR_INVALID_FILTER_PROC 1427L + +// +// MessageId: ERROR_HOOK_NEEDS_HMOD +// +// MessageText: +// +// Cannot set nonlocal hook without a module handle. +// +#define ERROR_HOOK_NEEDS_HMOD 1428L + +// +// MessageId: ERROR_GLOBAL_ONLY_HOOK +// +// MessageText: +// +// This hook procedure can only be set globally. +// +#define ERROR_GLOBAL_ONLY_HOOK 1429L + +// +// MessageId: ERROR_JOURNAL_HOOK_SET +// +// MessageText: +// +// The journal hook procedure is already installed. +// +#define ERROR_JOURNAL_HOOK_SET 1430L + +// +// MessageId: ERROR_HOOK_NOT_INSTALLED +// +// MessageText: +// +// The hook procedure is not installed. +// +#define ERROR_HOOK_NOT_INSTALLED 1431L + +// +// MessageId: ERROR_INVALID_LB_MESSAGE +// +// MessageText: +// +// Invalid message for single-selection list box. +// +#define ERROR_INVALID_LB_MESSAGE 1432L + +// +// MessageId: ERROR_SETCOUNT_ON_BAD_LB +// +// MessageText: +// +// LB_SETCOUNT sent to non-lazy list box. +// +#define ERROR_SETCOUNT_ON_BAD_LB 1433L + +// +// MessageId: ERROR_LB_WITHOUT_TABSTOPS +// +// MessageText: +// +// This list box does not support tab stops. +// +#define ERROR_LB_WITHOUT_TABSTOPS 1434L + +// +// MessageId: ERROR_DESTROY_OBJECT_OF_OTHER_THREAD +// +// MessageText: +// +// Cannot destroy object created by another thread. +// +#define ERROR_DESTROY_OBJECT_OF_OTHER_THREAD 1435L + +// +// MessageId: ERROR_CHILD_WINDOW_MENU +// +// MessageText: +// +// Child windows cannot have menus. +// +#define ERROR_CHILD_WINDOW_MENU 1436L + +// +// MessageId: ERROR_NO_SYSTEM_MENU +// +// MessageText: +// +// The window does not have a system menu. +// +#define ERROR_NO_SYSTEM_MENU 1437L + +// +// MessageId: ERROR_INVALID_MSGBOX_STYLE +// +// MessageText: +// +// Invalid message box style. +// +#define ERROR_INVALID_MSGBOX_STYLE 1438L + +// +// MessageId: ERROR_INVALID_SPI_VALUE +// +// MessageText: +// +// Invalid system-wide (SPI_*) parameter. +// +#define ERROR_INVALID_SPI_VALUE 1439L + +// +// MessageId: ERROR_SCREEN_ALREADY_LOCKED +// +// MessageText: +// +// Screen already locked. +// +#define ERROR_SCREEN_ALREADY_LOCKED 1440L + +// +// MessageId: ERROR_HWNDS_HAVE_DIFF_PARENT +// +// MessageText: +// +// All handles to windows in a multiple-window position structure must have the same parent. +// +#define ERROR_HWNDS_HAVE_DIFF_PARENT 1441L + +// +// MessageId: ERROR_NOT_CHILD_WINDOW +// +// MessageText: +// +// The window is not a child window. +// +#define ERROR_NOT_CHILD_WINDOW 1442L + +// +// MessageId: ERROR_INVALID_GW_COMMAND +// +// MessageText: +// +// Invalid GW_* command. +// +#define ERROR_INVALID_GW_COMMAND 1443L + +// +// MessageId: ERROR_INVALID_THREAD_ID +// +// MessageText: +// +// Invalid thread identifier. +// +#define ERROR_INVALID_THREAD_ID 1444L + +// +// MessageId: ERROR_NON_MDICHILD_WINDOW +// +// MessageText: +// +// Cannot process a message from a window that is not a multiple document interface (MDI) window. +// +#define ERROR_NON_MDICHILD_WINDOW 1445L + +// +// MessageId: ERROR_POPUP_ALREADY_ACTIVE +// +// MessageText: +// +// Popup menu already active. +// +#define ERROR_POPUP_ALREADY_ACTIVE 1446L + +// +// MessageId: ERROR_NO_SCROLLBARS +// +// MessageText: +// +// The window does not have scroll bars. +// +#define ERROR_NO_SCROLLBARS 1447L + +// +// MessageId: ERROR_INVALID_SCROLLBAR_RANGE +// +// MessageText: +// +// Scroll bar range cannot be greater than MAXLONG. +// +#define ERROR_INVALID_SCROLLBAR_RANGE 1448L + +// +// MessageId: ERROR_INVALID_SHOWWIN_COMMAND +// +// MessageText: +// +// Cannot show or remove the window in the way specified. +// +#define ERROR_INVALID_SHOWWIN_COMMAND 1449L + +// +// MessageId: ERROR_NO_SYSTEM_RESOURCES +// +// MessageText: +// +// Insufficient system resources exist to complete the requested service. +// +#define ERROR_NO_SYSTEM_RESOURCES 1450L + +// +// MessageId: ERROR_NONPAGED_SYSTEM_RESOURCES +// +// MessageText: +// +// Insufficient system resources exist to complete the requested service. +// +#define ERROR_NONPAGED_SYSTEM_RESOURCES 1451L + +// +// MessageId: ERROR_PAGED_SYSTEM_RESOURCES +// +// MessageText: +// +// Insufficient system resources exist to complete the requested service. +// +#define ERROR_PAGED_SYSTEM_RESOURCES 1452L + +// +// MessageId: ERROR_WORKING_SET_QUOTA +// +// MessageText: +// +// Insufficient quota to complete the requested service. +// +#define ERROR_WORKING_SET_QUOTA 1453L + +// +// MessageId: ERROR_PAGEFILE_QUOTA +// +// MessageText: +// +// Insufficient quota to complete the requested service. +// +#define ERROR_PAGEFILE_QUOTA 1454L + +// +// MessageId: ERROR_COMMITMENT_LIMIT +// +// MessageText: +// +// The paging file is too small for this operation to complete. +// +#define ERROR_COMMITMENT_LIMIT 1455L + +// +// MessageId: ERROR_MENU_ITEM_NOT_FOUND +// +// MessageText: +// +// A menu item was not found. +// +#define ERROR_MENU_ITEM_NOT_FOUND 1456L + +// +// MessageId: ERROR_INVALID_KEYBOARD_HANDLE +// +// MessageText: +// +// Invalid keyboard layout handle. +// +#define ERROR_INVALID_KEYBOARD_HANDLE 1457L + +// +// MessageId: ERROR_HOOK_TYPE_NOT_ALLOWED +// +// MessageText: +// +// Hook type not allowed. +// +#define ERROR_HOOK_TYPE_NOT_ALLOWED 1458L + +// +// MessageId: ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION +// +// MessageText: +// +// This operation requires an interactive window station. +// +#define ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION 1459L + +// +// MessageId: ERROR_TIMEOUT +// +// MessageText: +// +// This operation returned because the timeout period expired. +// +#define ERROR_TIMEOUT 1460L + +// +// MessageId: ERROR_INVALID_MONITOR_HANDLE +// +// MessageText: +// +// Invalid monitor handle. +// +#define ERROR_INVALID_MONITOR_HANDLE 1461L + +// +// MessageId: ERROR_INCORRECT_SIZE +// +// MessageText: +// +// Incorrect size argument. +// +#define ERROR_INCORRECT_SIZE 1462L + +// +// MessageId: ERROR_SYMLINK_CLASS_DISABLED +// +// MessageText: +// +// The symbolic link cannot be followed because its type is disabled. +// +#define ERROR_SYMLINK_CLASS_DISABLED 1463L + +// +// MessageId: ERROR_SYMLINK_NOT_SUPPORTED +// +// MessageText: +// +// This application does not support the current operation on symbolic links. +// +#define ERROR_SYMLINK_NOT_SUPPORTED 1464L + +// +// MessageId: ERROR_XML_PARSE_ERROR +// +// MessageText: +// +// Windows was unable to parse the requested XML data. +// +#define ERROR_XML_PARSE_ERROR 1465L + +// +// MessageId: ERROR_XMLDSIG_ERROR +// +// MessageText: +// +// An error was encountered while processing an XML digital signature. +// +#define ERROR_XMLDSIG_ERROR 1466L + +// +// MessageId: ERROR_RESTART_APPLICATION +// +// MessageText: +// +// This application must be restarted. +// +#define ERROR_RESTART_APPLICATION 1467L + +// +// MessageId: ERROR_WRONG_COMPARTMENT +// +// MessageText: +// +// The caller made the connection request in the wrong routing compartment. +// +#define ERROR_WRONG_COMPARTMENT 1468L + +// +// MessageId: ERROR_AUTHIP_FAILURE +// +// MessageText: +// +// There was an AuthIP failure when attempting to connect to the remote host. +// +#define ERROR_AUTHIP_FAILURE 1469L + +// +// MessageId: ERROR_NO_NVRAM_RESOURCES +// +// MessageText: +// +// Insufficient NVRAM resources exist to complete the requested service. A reboot might be required. +// +#define ERROR_NO_NVRAM_RESOURCES 1470L + +// +// MessageId: ERROR_NOT_GUI_PROCESS +// +// MessageText: +// +// Unable to finish the requested operation because the specified process is not a GUI process. +// +#define ERROR_NOT_GUI_PROCESS 1471L + + +/////////////////////////////////////////////////// +// // +// EventLog Error codes // +// // +// 1500 to 1549 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_EVENTLOG_FILE_CORRUPT +// +// MessageText: +// +// The event log file is corrupted. +// +#define ERROR_EVENTLOG_FILE_CORRUPT 1500L + +// +// MessageId: ERROR_EVENTLOG_CANT_START +// +// MessageText: +// +// No event log file could be opened, so the event logging service did not start. +// +#define ERROR_EVENTLOG_CANT_START 1501L + +// +// MessageId: ERROR_LOG_FILE_FULL +// +// MessageText: +// +// The event log file is full. +// +#define ERROR_LOG_FILE_FULL 1502L + +// +// MessageId: ERROR_EVENTLOG_FILE_CHANGED +// +// MessageText: +// +// The event log file has changed between read operations. +// +#define ERROR_EVENTLOG_FILE_CHANGED 1503L + +// +// MessageId: ERROR_CONTAINER_ASSIGNED +// +// MessageText: +// +// The specified Job already has a container assigned to it. +// +#define ERROR_CONTAINER_ASSIGNED 1504L + +// +// MessageId: ERROR_JOB_NO_CONTAINER +// +// MessageText: +// +// The specified Job does not have a container assigned to it. +// +#define ERROR_JOB_NO_CONTAINER 1505L + + +/////////////////////////////////////////////////// +// // +// Class Scheduler Error codes // +// // +// 1550 to 1599 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_INVALID_TASK_NAME +// +// MessageText: +// +// The specified task name is invalid. +// +#define ERROR_INVALID_TASK_NAME 1550L + +// +// MessageId: ERROR_INVALID_TASK_INDEX +// +// MessageText: +// +// The specified task index is invalid. +// +#define ERROR_INVALID_TASK_INDEX 1551L + +// +// MessageId: ERROR_THREAD_ALREADY_IN_TASK +// +// MessageText: +// +// The specified thread is already joining a task. +// +#define ERROR_THREAD_ALREADY_IN_TASK 1552L + + +/////////////////////////////////////////////////// +// // +// MSI Error codes // +// // +// 1600 to 1699 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_INSTALL_SERVICE_FAILURE +// +// MessageText: +// +// The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance. +// +#define ERROR_INSTALL_SERVICE_FAILURE 1601L + +// +// MessageId: ERROR_INSTALL_USEREXIT +// +// MessageText: +// +// User cancelled installation. +// +#define ERROR_INSTALL_USEREXIT 1602L + +// +// MessageId: ERROR_INSTALL_FAILURE +// +// MessageText: +// +// Fatal error during installation. +// +#define ERROR_INSTALL_FAILURE 1603L + +// +// MessageId: ERROR_INSTALL_SUSPEND +// +// MessageText: +// +// Installation suspended, incomplete. +// +#define ERROR_INSTALL_SUSPEND 1604L + +// +// MessageId: ERROR_UNKNOWN_PRODUCT +// +// MessageText: +// +// This action is only valid for products that are currently installed. +// +#define ERROR_UNKNOWN_PRODUCT 1605L + +// +// MessageId: ERROR_UNKNOWN_FEATURE +// +// MessageText: +// +// Feature ID not registered. +// +#define ERROR_UNKNOWN_FEATURE 1606L + +// +// MessageId: ERROR_UNKNOWN_COMPONENT +// +// MessageText: +// +// Component ID not registered. +// +#define ERROR_UNKNOWN_COMPONENT 1607L + +// +// MessageId: ERROR_UNKNOWN_PROPERTY +// +// MessageText: +// +// Unknown property. +// +#define ERROR_UNKNOWN_PROPERTY 1608L + +// +// MessageId: ERROR_INVALID_HANDLE_STATE +// +// MessageText: +// +// Handle is in an invalid state. +// +#define ERROR_INVALID_HANDLE_STATE 1609L + +// +// MessageId: ERROR_BAD_CONFIGURATION +// +// MessageText: +// +// The configuration data for this product is corrupt. Contact your support personnel. +// +#define ERROR_BAD_CONFIGURATION 1610L + +// +// MessageId: ERROR_INDEX_ABSENT +// +// MessageText: +// +// Component qualifier not present. +// +#define ERROR_INDEX_ABSENT 1611L + +// +// MessageId: ERROR_INSTALL_SOURCE_ABSENT +// +// MessageText: +// +// The installation source for this product is not available. Verify that the source exists and that you can access it. +// +#define ERROR_INSTALL_SOURCE_ABSENT 1612L + +// +// MessageId: ERROR_INSTALL_PACKAGE_VERSION +// +// MessageText: +// +// This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service. +// +#define ERROR_INSTALL_PACKAGE_VERSION 1613L + +// +// MessageId: ERROR_PRODUCT_UNINSTALLED +// +// MessageText: +// +// Product is uninstalled. +// +#define ERROR_PRODUCT_UNINSTALLED 1614L + +// +// MessageId: ERROR_BAD_QUERY_SYNTAX +// +// MessageText: +// +// SQL query syntax invalid or unsupported. +// +#define ERROR_BAD_QUERY_SYNTAX 1615L + +// +// MessageId: ERROR_INVALID_FIELD +// +// MessageText: +// +// Record field does not exist. +// +#define ERROR_INVALID_FIELD 1616L + +// +// MessageId: ERROR_DEVICE_REMOVED +// +// MessageText: +// +// The device has been removed. +// +#define ERROR_DEVICE_REMOVED 1617L + +// +// MessageId: ERROR_INSTALL_ALREADY_RUNNING +// +// MessageText: +// +// Another installation is already in progress. Complete that installation before proceeding with this install. +// +#define ERROR_INSTALL_ALREADY_RUNNING 1618L + +// +// MessageId: ERROR_INSTALL_PACKAGE_OPEN_FAILED +// +// MessageText: +// +// This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package. +// +#define ERROR_INSTALL_PACKAGE_OPEN_FAILED 1619L + +// +// MessageId: ERROR_INSTALL_PACKAGE_INVALID +// +// MessageText: +// +// This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package. +// +#define ERROR_INSTALL_PACKAGE_INVALID 1620L + +// +// MessageId: ERROR_INSTALL_UI_FAILURE +// +// MessageText: +// +// There was an error starting the Windows Installer service user interface. Contact your support personnel. +// +#define ERROR_INSTALL_UI_FAILURE 1621L + +// +// MessageId: ERROR_INSTALL_LOG_FAILURE +// +// MessageText: +// +// Error opening installation log file. Verify that the specified log file location exists and that you can write to it. +// +#define ERROR_INSTALL_LOG_FAILURE 1622L + +// +// MessageId: ERROR_INSTALL_LANGUAGE_UNSUPPORTED +// +// MessageText: +// +// The language of this installation package is not supported by your system. +// +#define ERROR_INSTALL_LANGUAGE_UNSUPPORTED 1623L + +// +// MessageId: ERROR_INSTALL_TRANSFORM_FAILURE +// +// MessageText: +// +// Error applying transforms. Verify that the specified transform paths are valid. +// +#define ERROR_INSTALL_TRANSFORM_FAILURE 1624L + +// +// MessageId: ERROR_INSTALL_PACKAGE_REJECTED +// +// MessageText: +// +// This installation is forbidden by system policy. Contact your system administrator. +// +#define ERROR_INSTALL_PACKAGE_REJECTED 1625L + +// +// MessageId: ERROR_FUNCTION_NOT_CALLED +// +// MessageText: +// +// Function could not be executed. +// +#define ERROR_FUNCTION_NOT_CALLED 1626L + +// +// MessageId: ERROR_FUNCTION_FAILED +// +// MessageText: +// +// Function failed during execution. +// +#define ERROR_FUNCTION_FAILED 1627L + +// +// MessageId: ERROR_INVALID_TABLE +// +// MessageText: +// +// Invalid or unknown table specified. +// +#define ERROR_INVALID_TABLE 1628L + +// +// MessageId: ERROR_DATATYPE_MISMATCH +// +// MessageText: +// +// Data supplied is of wrong type. +// +#define ERROR_DATATYPE_MISMATCH 1629L + +// +// MessageId: ERROR_UNSUPPORTED_TYPE +// +// MessageText: +// +// Data of this type is not supported. +// +#define ERROR_UNSUPPORTED_TYPE 1630L + +// +// MessageId: ERROR_CREATE_FAILED +// +// MessageText: +// +// The Windows Installer service failed to start. Contact your support personnel. +// +#define ERROR_CREATE_FAILED 1631L + +// +// MessageId: ERROR_INSTALL_TEMP_UNWRITABLE +// +// MessageText: +// +// The Temp folder is on a drive that is full or is inaccessible. Free up space on the drive or verify that you have write permission on the Temp folder. +// +#define ERROR_INSTALL_TEMP_UNWRITABLE 1632L + +// +// MessageId: ERROR_INSTALL_PLATFORM_UNSUPPORTED +// +// MessageText: +// +// This installation package is not supported by this processor type. Contact your product vendor. +// +#define ERROR_INSTALL_PLATFORM_UNSUPPORTED 1633L + +// +// MessageId: ERROR_INSTALL_NOTUSED +// +// MessageText: +// +// Component not used on this computer. +// +#define ERROR_INSTALL_NOTUSED 1634L + +// +// MessageId: ERROR_PATCH_PACKAGE_OPEN_FAILED +// +// MessageText: +// +// This update package could not be opened. Verify that the update package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer update package. +// +#define ERROR_PATCH_PACKAGE_OPEN_FAILED 1635L + +// +// MessageId: ERROR_PATCH_PACKAGE_INVALID +// +// MessageText: +// +// This update package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer update package. +// +#define ERROR_PATCH_PACKAGE_INVALID 1636L + +// +// MessageId: ERROR_PATCH_PACKAGE_UNSUPPORTED +// +// MessageText: +// +// This update package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service. +// +#define ERROR_PATCH_PACKAGE_UNSUPPORTED 1637L + +// +// MessageId: ERROR_PRODUCT_VERSION +// +// MessageText: +// +// Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel. +// +#define ERROR_PRODUCT_VERSION 1638L + +// +// MessageId: ERROR_INVALID_COMMAND_LINE +// +// MessageText: +// +// Invalid command line argument. Consult the Windows Installer SDK for detailed command line help. +// +#define ERROR_INVALID_COMMAND_LINE 1639L + +// +// MessageId: ERROR_INSTALL_REMOTE_DISALLOWED +// +// MessageText: +// +// Only administrators have permission to add, remove, or configure server software during a Terminal services remote session. If you want to install or configure software on the server, contact your network administrator. +// +#define ERROR_INSTALL_REMOTE_DISALLOWED 1640L + +// +// MessageId: ERROR_SUCCESS_REBOOT_INITIATED +// +// MessageText: +// +// The requested operation completed successfully. The system will be restarted so the changes can take effect. +// +#define ERROR_SUCCESS_REBOOT_INITIATED 1641L + +// +// MessageId: ERROR_PATCH_TARGET_NOT_FOUND +// +// MessageText: +// +// The upgrade cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade. +// +#define ERROR_PATCH_TARGET_NOT_FOUND 1642L + +// +// MessageId: ERROR_PATCH_PACKAGE_REJECTED +// +// MessageText: +// +// The update package is not permitted by software restriction policy. +// +#define ERROR_PATCH_PACKAGE_REJECTED 1643L + +// +// MessageId: ERROR_INSTALL_TRANSFORM_REJECTED +// +// MessageText: +// +// One or more customizations are not permitted by software restriction policy. +// +#define ERROR_INSTALL_TRANSFORM_REJECTED 1644L + +// +// MessageId: ERROR_INSTALL_REMOTE_PROHIBITED +// +// MessageText: +// +// The Windows Installer does not permit installation from a Remote Desktop Connection. +// +#define ERROR_INSTALL_REMOTE_PROHIBITED 1645L + +// +// MessageId: ERROR_PATCH_REMOVAL_UNSUPPORTED +// +// MessageText: +// +// Uninstallation of the update package is not supported. +// +#define ERROR_PATCH_REMOVAL_UNSUPPORTED 1646L + +// +// MessageId: ERROR_UNKNOWN_PATCH +// +// MessageText: +// +// The update is not applied to this product. +// +#define ERROR_UNKNOWN_PATCH 1647L + +// +// MessageId: ERROR_PATCH_NO_SEQUENCE +// +// MessageText: +// +// No valid sequence could be found for the set of updates. +// +#define ERROR_PATCH_NO_SEQUENCE 1648L + +// +// MessageId: ERROR_PATCH_REMOVAL_DISALLOWED +// +// MessageText: +// +// Update removal was disallowed by policy. +// +#define ERROR_PATCH_REMOVAL_DISALLOWED 1649L + +// +// MessageId: ERROR_INVALID_PATCH_XML +// +// MessageText: +// +// The XML update data is invalid. +// +#define ERROR_INVALID_PATCH_XML 1650L + +// +// MessageId: ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT +// +// MessageText: +// +// Windows Installer does not permit updating of managed advertised products. At least one feature of the product must be installed before applying the update. +// +#define ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT 1651L + +// +// MessageId: ERROR_INSTALL_SERVICE_SAFEBOOT +// +// MessageText: +// +// The Windows Installer service is not accessible in Safe Mode. Please try again when your computer is not in Safe Mode or you can use System Restore to return your machine to a previous good state. +// +#define ERROR_INSTALL_SERVICE_SAFEBOOT 1652L + +// +// MessageId: ERROR_FAIL_FAST_EXCEPTION +// +// MessageText: +// +// A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately. +// +#define ERROR_FAIL_FAST_EXCEPTION 1653L + +// +// MessageId: ERROR_INSTALL_REJECTED +// +// MessageText: +// +// The app that you are trying to run is not supported on this version of Windows. +// +#define ERROR_INSTALL_REJECTED 1654L + +// +// MessageId: ERROR_DYNAMIC_CODE_BLOCKED +// +// MessageText: +// +// The operation was blocked as the process prohibits dynamic code generation. +// +#define ERROR_DYNAMIC_CODE_BLOCKED 1655L + +// +// MessageId: ERROR_NOT_SAME_OBJECT +// +// MessageText: +// +// The objects are not identical. +// +#define ERROR_NOT_SAME_OBJECT 1656L + +// +// MessageId: ERROR_STRICT_CFG_VIOLATION +// +// MessageText: +// +// The specified image file was blocked from loading because it does not enable a feature required by the process: Control Flow Guard. +// +#define ERROR_STRICT_CFG_VIOLATION 1657L + +// +// MessageId: ERROR_SET_CONTEXT_DENIED +// +// MessageText: +// +// The thread context could not be updated because this has been restricted for the process. +// +#define ERROR_SET_CONTEXT_DENIED 1660L + +// +// MessageId: ERROR_CROSS_PARTITION_VIOLATION +// +// MessageText: +// +// An invalid cross-partition private file/section access was attempted. +// +#define ERROR_CROSS_PARTITION_VIOLATION 1661L + +// +// MessageId: ERROR_RETURN_ADDRESS_HIJACK_ATTEMPT +// +// MessageText: +// +// A return address hijack is being attempted. This is supported by the operating system when user-mode shadow stacks are enabled. +// +#define ERROR_RETURN_ADDRESS_HIJACK_ATTEMPT 1662L + + +/////////////////////////////////////////////////// +// // +// RPC Error codes // +// // +// 1700 to 1999 // +/////////////////////////////////////////////////// + +// +// MessageId: RPC_S_INVALID_STRING_BINDING +// +// MessageText: +// +// The string binding is invalid. +// +#define RPC_S_INVALID_STRING_BINDING 1700L + +// +// MessageId: RPC_S_WRONG_KIND_OF_BINDING +// +// MessageText: +// +// The binding handle is not the correct type. +// +#define RPC_S_WRONG_KIND_OF_BINDING 1701L + +// +// MessageId: RPC_S_INVALID_BINDING +// +// MessageText: +// +// The binding handle is invalid. +// +#define RPC_S_INVALID_BINDING 1702L + +// +// MessageId: RPC_S_PROTSEQ_NOT_SUPPORTED +// +// MessageText: +// +// The RPC protocol sequence is not supported. +// +#define RPC_S_PROTSEQ_NOT_SUPPORTED 1703L + +// +// MessageId: RPC_S_INVALID_RPC_PROTSEQ +// +// MessageText: +// +// The RPC protocol sequence is invalid. +// +#define RPC_S_INVALID_RPC_PROTSEQ 1704L + +// +// MessageId: RPC_S_INVALID_STRING_UUID +// +// MessageText: +// +// The string universal unique identifier (UUID) is invalid. +// +#define RPC_S_INVALID_STRING_UUID 1705L + +// +// MessageId: RPC_S_INVALID_ENDPOINT_FORMAT +// +// MessageText: +// +// The endpoint format is invalid. +// +#define RPC_S_INVALID_ENDPOINT_FORMAT 1706L + +// +// MessageId: RPC_S_INVALID_NET_ADDR +// +// MessageText: +// +// The network address is invalid. +// +#define RPC_S_INVALID_NET_ADDR 1707L + +// +// MessageId: RPC_S_NO_ENDPOINT_FOUND +// +// MessageText: +// +// No endpoint was found. +// +#define RPC_S_NO_ENDPOINT_FOUND 1708L + +// +// MessageId: RPC_S_INVALID_TIMEOUT +// +// MessageText: +// +// The timeout value is invalid. +// +#define RPC_S_INVALID_TIMEOUT 1709L + +// +// MessageId: RPC_S_OBJECT_NOT_FOUND +// +// MessageText: +// +// The object universal unique identifier (UUID) was not found. +// +#define RPC_S_OBJECT_NOT_FOUND 1710L + +// +// MessageId: RPC_S_ALREADY_REGISTERED +// +// MessageText: +// +// The object universal unique identifier (UUID) has already been registered. +// +#define RPC_S_ALREADY_REGISTERED 1711L + +// +// MessageId: RPC_S_TYPE_ALREADY_REGISTERED +// +// MessageText: +// +// The type universal unique identifier (UUID) has already been registered. +// +#define RPC_S_TYPE_ALREADY_REGISTERED 1712L + +// +// MessageId: RPC_S_ALREADY_LISTENING +// +// MessageText: +// +// The RPC server is already listening. +// +#define RPC_S_ALREADY_LISTENING 1713L + +// +// MessageId: RPC_S_NO_PROTSEQS_REGISTERED +// +// MessageText: +// +// No protocol sequences have been registered. +// +#define RPC_S_NO_PROTSEQS_REGISTERED 1714L + +// +// MessageId: RPC_S_NOT_LISTENING +// +// MessageText: +// +// The RPC server is not listening. +// +#define RPC_S_NOT_LISTENING 1715L + +// +// MessageId: RPC_S_UNKNOWN_MGR_TYPE +// +// MessageText: +// +// The manager type is unknown. +// +#define RPC_S_UNKNOWN_MGR_TYPE 1716L + +// +// MessageId: RPC_S_UNKNOWN_IF +// +// MessageText: +// +// The interface is unknown. +// +#define RPC_S_UNKNOWN_IF 1717L + +// +// MessageId: RPC_S_NO_BINDINGS +// +// MessageText: +// +// There are no bindings. +// +#define RPC_S_NO_BINDINGS 1718L + +// +// MessageId: RPC_S_NO_PROTSEQS +// +// MessageText: +// +// There are no protocol sequences. +// +#define RPC_S_NO_PROTSEQS 1719L + +// +// MessageId: RPC_S_CANT_CREATE_ENDPOINT +// +// MessageText: +// +// The endpoint cannot be created. +// +#define RPC_S_CANT_CREATE_ENDPOINT 1720L + +// +// MessageId: RPC_S_OUT_OF_RESOURCES +// +// MessageText: +// +// Not enough resources are available to complete this operation. +// +#define RPC_S_OUT_OF_RESOURCES 1721L + +// +// MessageId: RPC_S_SERVER_UNAVAILABLE +// +// MessageText: +// +// The RPC server is unavailable. +// +#define RPC_S_SERVER_UNAVAILABLE 1722L + +// +// MessageId: RPC_S_SERVER_TOO_BUSY +// +// MessageText: +// +// The RPC server is too busy to complete this operation. +// +#define RPC_S_SERVER_TOO_BUSY 1723L + +// +// MessageId: RPC_S_INVALID_NETWORK_OPTIONS +// +// MessageText: +// +// The network options are invalid. +// +#define RPC_S_INVALID_NETWORK_OPTIONS 1724L + +// +// MessageId: RPC_S_NO_CALL_ACTIVE +// +// MessageText: +// +// There are no remote procedure calls active on this thread. +// +#define RPC_S_NO_CALL_ACTIVE 1725L + +// +// MessageId: RPC_S_CALL_FAILED +// +// MessageText: +// +// The remote procedure call failed. +// +#define RPC_S_CALL_FAILED 1726L + +// +// MessageId: RPC_S_CALL_FAILED_DNE +// +// MessageText: +// +// The remote procedure call failed and did not execute. +// +#define RPC_S_CALL_FAILED_DNE 1727L + +// +// MessageId: RPC_S_PROTOCOL_ERROR +// +// MessageText: +// +// A remote procedure call (RPC) protocol error occurred. +// +#define RPC_S_PROTOCOL_ERROR 1728L + +// +// MessageId: RPC_S_PROXY_ACCESS_DENIED +// +// MessageText: +// +// Access to the HTTP proxy is denied. +// +#define RPC_S_PROXY_ACCESS_DENIED 1729L + +// +// MessageId: RPC_S_UNSUPPORTED_TRANS_SYN +// +// MessageText: +// +// The transfer syntax is not supported by the RPC server. +// +#define RPC_S_UNSUPPORTED_TRANS_SYN 1730L + +// +// MessageId: RPC_S_UNSUPPORTED_TYPE +// +// MessageText: +// +// The universal unique identifier (UUID) type is not supported. +// +#define RPC_S_UNSUPPORTED_TYPE 1732L + +// +// MessageId: RPC_S_INVALID_TAG +// +// MessageText: +// +// The tag is invalid. +// +#define RPC_S_INVALID_TAG 1733L + +// +// MessageId: RPC_S_INVALID_BOUND +// +// MessageText: +// +// The array bounds are invalid. +// +#define RPC_S_INVALID_BOUND 1734L + +// +// MessageId: RPC_S_NO_ENTRY_NAME +// +// MessageText: +// +// The binding does not contain an entry name. +// +#define RPC_S_NO_ENTRY_NAME 1735L + +// +// MessageId: RPC_S_INVALID_NAME_SYNTAX +// +// MessageText: +// +// The name syntax is invalid. +// +#define RPC_S_INVALID_NAME_SYNTAX 1736L + +// +// MessageId: RPC_S_UNSUPPORTED_NAME_SYNTAX +// +// MessageText: +// +// The name syntax is not supported. +// +#define RPC_S_UNSUPPORTED_NAME_SYNTAX 1737L + +// +// MessageId: RPC_S_UUID_NO_ADDRESS +// +// MessageText: +// +// No network address is available to use to construct a universal unique identifier (UUID). +// +#define RPC_S_UUID_NO_ADDRESS 1739L + +// +// MessageId: RPC_S_DUPLICATE_ENDPOINT +// +// MessageText: +// +// The endpoint is a duplicate. +// +#define RPC_S_DUPLICATE_ENDPOINT 1740L + +// +// MessageId: RPC_S_UNKNOWN_AUTHN_TYPE +// +// MessageText: +// +// The authentication type is unknown. +// +#define RPC_S_UNKNOWN_AUTHN_TYPE 1741L + +// +// MessageId: RPC_S_MAX_CALLS_TOO_SMALL +// +// MessageText: +// +// The maximum number of calls is too small. +// +#define RPC_S_MAX_CALLS_TOO_SMALL 1742L + +// +// MessageId: RPC_S_STRING_TOO_LONG +// +// MessageText: +// +// The string is too long. +// +#define RPC_S_STRING_TOO_LONG 1743L + +// +// MessageId: RPC_S_PROTSEQ_NOT_FOUND +// +// MessageText: +// +// The RPC protocol sequence was not found. +// +#define RPC_S_PROTSEQ_NOT_FOUND 1744L + +// +// MessageId: RPC_S_PROCNUM_OUT_OF_RANGE +// +// MessageText: +// +// The procedure number is out of range. +// +#define RPC_S_PROCNUM_OUT_OF_RANGE 1745L + +// +// MessageId: RPC_S_BINDING_HAS_NO_AUTH +// +// MessageText: +// +// The binding does not contain any authentication information. +// +#define RPC_S_BINDING_HAS_NO_AUTH 1746L + +// +// MessageId: RPC_S_UNKNOWN_AUTHN_SERVICE +// +// MessageText: +// +// The authentication service is unknown. +// +#define RPC_S_UNKNOWN_AUTHN_SERVICE 1747L + +// +// MessageId: RPC_S_UNKNOWN_AUTHN_LEVEL +// +// MessageText: +// +// The authentication level is unknown. +// +#define RPC_S_UNKNOWN_AUTHN_LEVEL 1748L + +// +// MessageId: RPC_S_INVALID_AUTH_IDENTITY +// +// MessageText: +// +// The security context is invalid. +// +#define RPC_S_INVALID_AUTH_IDENTITY 1749L + +// +// MessageId: RPC_S_UNKNOWN_AUTHZ_SERVICE +// +// MessageText: +// +// The authorization service is unknown. +// +#define RPC_S_UNKNOWN_AUTHZ_SERVICE 1750L + +// +// MessageId: EPT_S_INVALID_ENTRY +// +// MessageText: +// +// The entry is invalid. +// +#define EPT_S_INVALID_ENTRY 1751L + +// +// MessageId: EPT_S_CANT_PERFORM_OP +// +// MessageText: +// +// The server endpoint cannot perform the operation. +// +#define EPT_S_CANT_PERFORM_OP 1752L + +// +// MessageId: EPT_S_NOT_REGISTERED +// +// MessageText: +// +// There are no more endpoints available from the endpoint mapper. +// +#define EPT_S_NOT_REGISTERED 1753L + +// +// MessageId: RPC_S_NOTHING_TO_EXPORT +// +// MessageText: +// +// No interfaces have been exported. +// +#define RPC_S_NOTHING_TO_EXPORT 1754L + +// +// MessageId: RPC_S_INCOMPLETE_NAME +// +// MessageText: +// +// The entry name is incomplete. +// +#define RPC_S_INCOMPLETE_NAME 1755L + +// +// MessageId: RPC_S_INVALID_VERS_OPTION +// +// MessageText: +// +// The version option is invalid. +// +#define RPC_S_INVALID_VERS_OPTION 1756L + +// +// MessageId: RPC_S_NO_MORE_MEMBERS +// +// MessageText: +// +// There are no more members. +// +#define RPC_S_NO_MORE_MEMBERS 1757L + +// +// MessageId: RPC_S_NOT_ALL_OBJS_UNEXPORTED +// +// MessageText: +// +// There is nothing to unexport. +// +#define RPC_S_NOT_ALL_OBJS_UNEXPORTED 1758L + +// +// MessageId: RPC_S_INTERFACE_NOT_FOUND +// +// MessageText: +// +// The interface was not found. +// +#define RPC_S_INTERFACE_NOT_FOUND 1759L + +// +// MessageId: RPC_S_ENTRY_ALREADY_EXISTS +// +// MessageText: +// +// The entry already exists. +// +#define RPC_S_ENTRY_ALREADY_EXISTS 1760L + +// +// MessageId: RPC_S_ENTRY_NOT_FOUND +// +// MessageText: +// +// The entry is not found. +// +#define RPC_S_ENTRY_NOT_FOUND 1761L + +// +// MessageId: RPC_S_NAME_SERVICE_UNAVAILABLE +// +// MessageText: +// +// The name service is unavailable. +// +#define RPC_S_NAME_SERVICE_UNAVAILABLE 1762L + +// +// MessageId: RPC_S_INVALID_NAF_ID +// +// MessageText: +// +// The network address family is invalid. +// +#define RPC_S_INVALID_NAF_ID 1763L + +// +// MessageId: RPC_S_CANNOT_SUPPORT +// +// MessageText: +// +// The requested operation is not supported. +// +#define RPC_S_CANNOT_SUPPORT 1764L + +// +// MessageId: RPC_S_NO_CONTEXT_AVAILABLE +// +// MessageText: +// +// No security context is available to allow impersonation. +// +#define RPC_S_NO_CONTEXT_AVAILABLE 1765L + +// +// MessageId: RPC_S_INTERNAL_ERROR +// +// MessageText: +// +// An internal error occurred in a remote procedure call (RPC). +// +#define RPC_S_INTERNAL_ERROR 1766L + +// +// MessageId: RPC_S_ZERO_DIVIDE +// +// MessageText: +// +// The RPC server attempted an integer division by zero. +// +#define RPC_S_ZERO_DIVIDE 1767L + +// +// MessageId: RPC_S_ADDRESS_ERROR +// +// MessageText: +// +// An addressing error occurred in the RPC server. +// +#define RPC_S_ADDRESS_ERROR 1768L + +// +// MessageId: RPC_S_FP_DIV_ZERO +// +// MessageText: +// +// A floating-point operation at the RPC server caused a division by zero. +// +#define RPC_S_FP_DIV_ZERO 1769L + +// +// MessageId: RPC_S_FP_UNDERFLOW +// +// MessageText: +// +// A floating-point underflow occurred at the RPC server. +// +#define RPC_S_FP_UNDERFLOW 1770L + +// +// MessageId: RPC_S_FP_OVERFLOW +// +// MessageText: +// +// A floating-point overflow occurred at the RPC server. +// +#define RPC_S_FP_OVERFLOW 1771L + +// +// MessageId: RPC_X_NO_MORE_ENTRIES +// +// MessageText: +// +// The list of RPC servers available for the binding of auto handles has been exhausted. +// +#define RPC_X_NO_MORE_ENTRIES 1772L + +// +// MessageId: RPC_X_SS_CHAR_TRANS_OPEN_FAIL +// +// MessageText: +// +// Unable to open the character translation table file. +// +#define RPC_X_SS_CHAR_TRANS_OPEN_FAIL 1773L + +// +// MessageId: RPC_X_SS_CHAR_TRANS_SHORT_FILE +// +// MessageText: +// +// The file containing the character translation table has fewer than 512 bytes. +// +#define RPC_X_SS_CHAR_TRANS_SHORT_FILE 1774L + +// +// MessageId: RPC_X_SS_IN_NULL_CONTEXT +// +// MessageText: +// +// A null context handle was passed from the client to the host during a remote procedure call. +// +#define RPC_X_SS_IN_NULL_CONTEXT 1775L + +// +// MessageId: RPC_X_SS_CONTEXT_DAMAGED +// +// MessageText: +// +// The context handle changed during a remote procedure call. +// +#define RPC_X_SS_CONTEXT_DAMAGED 1777L + +// +// MessageId: RPC_X_SS_HANDLES_MISMATCH +// +// MessageText: +// +// The binding handles passed to a remote procedure call do not match. +// +#define RPC_X_SS_HANDLES_MISMATCH 1778L + +// +// MessageId: RPC_X_SS_CANNOT_GET_CALL_HANDLE +// +// MessageText: +// +// The stub is unable to get the remote procedure call handle. +// +#define RPC_X_SS_CANNOT_GET_CALL_HANDLE 1779L + +// +// MessageId: RPC_X_NULL_REF_POINTER +// +// MessageText: +// +// A null reference pointer was passed to the stub. +// +#define RPC_X_NULL_REF_POINTER 1780L + +// +// MessageId: RPC_X_ENUM_VALUE_OUT_OF_RANGE +// +// MessageText: +// +// The enumeration value is out of range. +// +#define RPC_X_ENUM_VALUE_OUT_OF_RANGE 1781L + +// +// MessageId: RPC_X_BYTE_COUNT_TOO_SMALL +// +// MessageText: +// +// The byte count is too small. +// +#define RPC_X_BYTE_COUNT_TOO_SMALL 1782L + +// +// MessageId: RPC_X_BAD_STUB_DATA +// +// MessageText: +// +// The stub received bad data. +// +#define RPC_X_BAD_STUB_DATA 1783L + +// +// MessageId: ERROR_INVALID_USER_BUFFER +// +// MessageText: +// +// The supplied user buffer is not valid for the requested operation. +// +#define ERROR_INVALID_USER_BUFFER 1784L + +// +// MessageId: ERROR_UNRECOGNIZED_MEDIA +// +// MessageText: +// +// The disk media is not recognized. It may not be formatted. +// +#define ERROR_UNRECOGNIZED_MEDIA 1785L + +// +// MessageId: ERROR_NO_TRUST_LSA_SECRET +// +// MessageText: +// +// The workstation does not have a trust secret. +// +#define ERROR_NO_TRUST_LSA_SECRET 1786L + +// +// MessageId: ERROR_NO_TRUST_SAM_ACCOUNT +// +// MessageText: +// +// The security database on the server does not have a computer account for this workstation trust relationship. +// +#define ERROR_NO_TRUST_SAM_ACCOUNT 1787L + +// +// MessageId: ERROR_TRUSTED_DOMAIN_FAILURE +// +// MessageText: +// +// The trust relationship between the primary domain and the trusted domain failed. +// +#define ERROR_TRUSTED_DOMAIN_FAILURE 1788L + +// +// MessageId: ERROR_TRUSTED_RELATIONSHIP_FAILURE +// +// MessageText: +// +// The trust relationship between this workstation and the primary domain failed. +// +#define ERROR_TRUSTED_RELATIONSHIP_FAILURE 1789L + +// +// MessageId: ERROR_TRUST_FAILURE +// +// MessageText: +// +// The network logon failed. +// +#define ERROR_TRUST_FAILURE 1790L + +// +// MessageId: RPC_S_CALL_IN_PROGRESS +// +// MessageText: +// +// A remote procedure call is already in progress for this thread. +// +#define RPC_S_CALL_IN_PROGRESS 1791L + +// +// MessageId: ERROR_NETLOGON_NOT_STARTED +// +// MessageText: +// +// An attempt was made to logon, but the network logon service was not started. +// +#define ERROR_NETLOGON_NOT_STARTED 1792L + +// +// MessageId: ERROR_ACCOUNT_EXPIRED +// +// MessageText: +// +// The user's account has expired. +// +#define ERROR_ACCOUNT_EXPIRED 1793L + +// +// MessageId: ERROR_REDIRECTOR_HAS_OPEN_HANDLES +// +// MessageText: +// +// The redirector is in use and cannot be unloaded. +// +#define ERROR_REDIRECTOR_HAS_OPEN_HANDLES 1794L + +// +// MessageId: ERROR_PRINTER_DRIVER_ALREADY_INSTALLED +// +// MessageText: +// +// The specified printer driver is already installed. +// +#define ERROR_PRINTER_DRIVER_ALREADY_INSTALLED 1795L + +// +// MessageId: ERROR_UNKNOWN_PORT +// +// MessageText: +// +// The specified port is unknown. +// +#define ERROR_UNKNOWN_PORT 1796L + +// +// MessageId: ERROR_UNKNOWN_PRINTER_DRIVER +// +// MessageText: +// +// The printer driver is unknown. +// +#define ERROR_UNKNOWN_PRINTER_DRIVER 1797L + +// +// MessageId: ERROR_UNKNOWN_PRINTPROCESSOR +// +// MessageText: +// +// The print processor is unknown. +// +#define ERROR_UNKNOWN_PRINTPROCESSOR 1798L + +// +// MessageId: ERROR_INVALID_SEPARATOR_FILE +// +// MessageText: +// +// The specified separator file is invalid. +// +#define ERROR_INVALID_SEPARATOR_FILE 1799L + +// +// MessageId: ERROR_INVALID_PRIORITY +// +// MessageText: +// +// The specified priority is invalid. +// +#define ERROR_INVALID_PRIORITY 1800L + +// +// MessageId: ERROR_INVALID_PRINTER_NAME +// +// MessageText: +// +// The printer name is invalid. +// +#define ERROR_INVALID_PRINTER_NAME 1801L + +// +// MessageId: ERROR_PRINTER_ALREADY_EXISTS +// +// MessageText: +// +// The printer already exists. +// +#define ERROR_PRINTER_ALREADY_EXISTS 1802L + +// +// MessageId: ERROR_INVALID_PRINTER_COMMAND +// +// MessageText: +// +// The printer command is invalid. +// +#define ERROR_INVALID_PRINTER_COMMAND 1803L + +// +// MessageId: ERROR_INVALID_DATATYPE +// +// MessageText: +// +// The specified datatype is invalid. +// +#define ERROR_INVALID_DATATYPE 1804L + +// +// MessageId: ERROR_INVALID_ENVIRONMENT +// +// MessageText: +// +// The environment specified is invalid. +// +#define ERROR_INVALID_ENVIRONMENT 1805L + +// +// MessageId: RPC_S_NO_MORE_BINDINGS +// +// MessageText: +// +// There are no more bindings. +// +#define RPC_S_NO_MORE_BINDINGS 1806L + +// +// MessageId: ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT +// +// MessageText: +// +// The account used is an interdomain trust account. Use your global user account or local user account to access this server. +// +#define ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT 1807L + +// +// MessageId: ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT +// +// MessageText: +// +// The account used is a computer account. Use your global user account or local user account to access this server. +// +#define ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT 1808L + +// +// MessageId: ERROR_NOLOGON_SERVER_TRUST_ACCOUNT +// +// MessageText: +// +// The account used is a server trust account. Use your global user account or local user account to access this server. +// +#define ERROR_NOLOGON_SERVER_TRUST_ACCOUNT 1809L + +// +// MessageId: ERROR_DOMAIN_TRUST_INCONSISTENT +// +// MessageText: +// +// The name or security ID (SID) of the domain specified is inconsistent with the trust information for that domain. +// +#define ERROR_DOMAIN_TRUST_INCONSISTENT 1810L + +// +// MessageId: ERROR_SERVER_HAS_OPEN_HANDLES +// +// MessageText: +// +// The server is in use and cannot be unloaded. +// +#define ERROR_SERVER_HAS_OPEN_HANDLES 1811L + +// +// MessageId: ERROR_RESOURCE_DATA_NOT_FOUND +// +// MessageText: +// +// The specified image file did not contain a resource section. +// +#define ERROR_RESOURCE_DATA_NOT_FOUND 1812L + +// +// MessageId: ERROR_RESOURCE_TYPE_NOT_FOUND +// +// MessageText: +// +// The specified resource type cannot be found in the image file. +// +#define ERROR_RESOURCE_TYPE_NOT_FOUND 1813L + +// +// MessageId: ERROR_RESOURCE_NAME_NOT_FOUND +// +// MessageText: +// +// The specified resource name cannot be found in the image file. +// +#define ERROR_RESOURCE_NAME_NOT_FOUND 1814L + +// +// MessageId: ERROR_RESOURCE_LANG_NOT_FOUND +// +// MessageText: +// +// The specified resource language ID cannot be found in the image file. +// +#define ERROR_RESOURCE_LANG_NOT_FOUND 1815L + +// +// MessageId: ERROR_NOT_ENOUGH_QUOTA +// +// MessageText: +// +// Not enough quota is available to process this command. +// +#define ERROR_NOT_ENOUGH_QUOTA 1816L + +// +// MessageId: RPC_S_NO_INTERFACES +// +// MessageText: +// +// No interfaces have been registered. +// +#define RPC_S_NO_INTERFACES 1817L + +// +// MessageId: RPC_S_CALL_CANCELLED +// +// MessageText: +// +// The remote procedure call was cancelled. +// +#define RPC_S_CALL_CANCELLED 1818L + +// +// MessageId: RPC_S_BINDING_INCOMPLETE +// +// MessageText: +// +// The binding handle does not contain all required information. +// +#define RPC_S_BINDING_INCOMPLETE 1819L + +// +// MessageId: RPC_S_COMM_FAILURE +// +// MessageText: +// +// A communications failure occurred during a remote procedure call. +// +#define RPC_S_COMM_FAILURE 1820L + +// +// MessageId: RPC_S_UNSUPPORTED_AUTHN_LEVEL +// +// MessageText: +// +// The requested authentication level is not supported. +// +#define RPC_S_UNSUPPORTED_AUTHN_LEVEL 1821L + +// +// MessageId: RPC_S_NO_PRINC_NAME +// +// MessageText: +// +// No principal name registered. +// +#define RPC_S_NO_PRINC_NAME 1822L + +// +// MessageId: RPC_S_NOT_RPC_ERROR +// +// MessageText: +// +// The error specified is not a valid Windows RPC error code. +// +#define RPC_S_NOT_RPC_ERROR 1823L + +// +// MessageId: RPC_S_UUID_LOCAL_ONLY +// +// MessageText: +// +// A UUID that is valid only on this computer has been allocated. +// +#define RPC_S_UUID_LOCAL_ONLY 1824L + +// +// MessageId: RPC_S_SEC_PKG_ERROR +// +// MessageText: +// +// A security package specific error occurred. +// +#define RPC_S_SEC_PKG_ERROR 1825L + +// +// MessageId: RPC_S_NOT_CANCELLED +// +// MessageText: +// +// Thread is not canceled. +// +#define RPC_S_NOT_CANCELLED 1826L + +// +// MessageId: RPC_X_INVALID_ES_ACTION +// +// MessageText: +// +// Invalid operation on the encoding/decoding handle. +// +#define RPC_X_INVALID_ES_ACTION 1827L + +// +// MessageId: RPC_X_WRONG_ES_VERSION +// +// MessageText: +// +// Incompatible version of the serializing package. +// +#define RPC_X_WRONG_ES_VERSION 1828L + +// +// MessageId: RPC_X_WRONG_STUB_VERSION +// +// MessageText: +// +// Incompatible version of the RPC stub. +// +#define RPC_X_WRONG_STUB_VERSION 1829L + +// +// MessageId: RPC_X_INVALID_PIPE_OBJECT +// +// MessageText: +// +// The RPC pipe object is invalid or corrupted. +// +#define RPC_X_INVALID_PIPE_OBJECT 1830L + +// +// MessageId: RPC_X_WRONG_PIPE_ORDER +// +// MessageText: +// +// An invalid operation was attempted on an RPC pipe object. +// +#define RPC_X_WRONG_PIPE_ORDER 1831L + +// +// MessageId: RPC_X_WRONG_PIPE_VERSION +// +// MessageText: +// +// Unsupported RPC pipe version. +// +#define RPC_X_WRONG_PIPE_VERSION 1832L + +// +// MessageId: RPC_S_COOKIE_AUTH_FAILED +// +// MessageText: +// +// HTTP proxy server rejected the connection because the cookie authentication failed. +// +#define RPC_S_COOKIE_AUTH_FAILED 1833L + +// +// MessageId: RPC_S_DO_NOT_DISTURB +// +// MessageText: +// +// The RPC server is suspended, and could not be resumed for this request. The call did not execute. +// +#define RPC_S_DO_NOT_DISTURB 1834L + +// +// MessageId: RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED +// +// MessageText: +// +// The RPC call contains too many handles to be transmitted in a single request. +// +#define RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED 1835L + +// +// MessageId: RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH +// +// MessageText: +// +// The RPC call contains a handle that differs from the declared handle type. +// +#define RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH 1836L + +// +// MessageId: RPC_S_GROUP_MEMBER_NOT_FOUND +// +// MessageText: +// +// The group member was not found. +// +#define RPC_S_GROUP_MEMBER_NOT_FOUND 1898L + +// +// MessageId: EPT_S_CANT_CREATE +// +// MessageText: +// +// The endpoint mapper database entry could not be created. +// +#define EPT_S_CANT_CREATE 1899L + +// +// MessageId: RPC_S_INVALID_OBJECT +// +// MessageText: +// +// The object universal unique identifier (UUID) is the nil UUID. +// +#define RPC_S_INVALID_OBJECT 1900L + +// +// MessageId: ERROR_INVALID_TIME +// +// MessageText: +// +// The specified time is invalid. +// +#define ERROR_INVALID_TIME 1901L + +// +// MessageId: ERROR_INVALID_FORM_NAME +// +// MessageText: +// +// The specified form name is invalid. +// +#define ERROR_INVALID_FORM_NAME 1902L + +// +// MessageId: ERROR_INVALID_FORM_SIZE +// +// MessageText: +// +// The specified form size is invalid. +// +#define ERROR_INVALID_FORM_SIZE 1903L + +// +// MessageId: ERROR_ALREADY_WAITING +// +// MessageText: +// +// The specified printer handle is already being waited on +// +#define ERROR_ALREADY_WAITING 1904L + +// +// MessageId: ERROR_PRINTER_DELETED +// +// MessageText: +// +// The specified printer has been deleted. +// +#define ERROR_PRINTER_DELETED 1905L + +// +// MessageId: ERROR_INVALID_PRINTER_STATE +// +// MessageText: +// +// The state of the printer is invalid. +// +#define ERROR_INVALID_PRINTER_STATE 1906L + +// +// MessageId: ERROR_PASSWORD_MUST_CHANGE +// +// MessageText: +// +// The user's password must be changed before signing in. +// +#define ERROR_PASSWORD_MUST_CHANGE 1907L + +// +// MessageId: ERROR_DOMAIN_CONTROLLER_NOT_FOUND +// +// MessageText: +// +// Could not find the domain controller for this domain. +// +#define ERROR_DOMAIN_CONTROLLER_NOT_FOUND 1908L + +// +// MessageId: ERROR_ACCOUNT_LOCKED_OUT +// +// MessageText: +// +// The referenced account is currently locked out and may not be logged on to. +// +#define ERROR_ACCOUNT_LOCKED_OUT 1909L + +// +// MessageId: OR_INVALID_OXID +// +// MessageText: +// +// The object exporter specified was not found. +// +#define OR_INVALID_OXID 1910L + +// +// MessageId: OR_INVALID_OID +// +// MessageText: +// +// The object specified was not found. +// +#define OR_INVALID_OID 1911L + +// +// MessageId: OR_INVALID_SET +// +// MessageText: +// +// The object resolver set specified was not found. +// +#define OR_INVALID_SET 1912L + +// +// MessageId: RPC_S_SEND_INCOMPLETE +// +// MessageText: +// +// Some data remains to be sent in the request buffer. +// +#define RPC_S_SEND_INCOMPLETE 1913L + +// +// MessageId: RPC_S_INVALID_ASYNC_HANDLE +// +// MessageText: +// +// Invalid asynchronous remote procedure call handle. +// +#define RPC_S_INVALID_ASYNC_HANDLE 1914L + +// +// MessageId: RPC_S_INVALID_ASYNC_CALL +// +// MessageText: +// +// Invalid asynchronous RPC call handle for this operation. +// +#define RPC_S_INVALID_ASYNC_CALL 1915L + +// +// MessageId: RPC_X_PIPE_CLOSED +// +// MessageText: +// +// The RPC pipe object has already been closed. +// +#define RPC_X_PIPE_CLOSED 1916L + +// +// MessageId: RPC_X_PIPE_DISCIPLINE_ERROR +// +// MessageText: +// +// The RPC call completed before all pipes were processed. +// +#define RPC_X_PIPE_DISCIPLINE_ERROR 1917L + +// +// MessageId: RPC_X_PIPE_EMPTY +// +// MessageText: +// +// No more data is available from the RPC pipe. +// +#define RPC_X_PIPE_EMPTY 1918L + +// +// MessageId: ERROR_NO_SITENAME +// +// MessageText: +// +// No site name is available for this machine. +// +#define ERROR_NO_SITENAME 1919L + +// +// MessageId: ERROR_CANT_ACCESS_FILE +// +// MessageText: +// +// The file cannot be accessed by the system. +// +#define ERROR_CANT_ACCESS_FILE 1920L + +// +// MessageId: ERROR_CANT_RESOLVE_FILENAME +// +// MessageText: +// +// The name of the file cannot be resolved by the system. +// +#define ERROR_CANT_RESOLVE_FILENAME 1921L + +// +// MessageId: RPC_S_ENTRY_TYPE_MISMATCH +// +// MessageText: +// +// The entry is not of the expected type. +// +#define RPC_S_ENTRY_TYPE_MISMATCH 1922L + +// +// MessageId: RPC_S_NOT_ALL_OBJS_EXPORTED +// +// MessageText: +// +// Not all object UUIDs could be exported to the specified entry. +// +#define RPC_S_NOT_ALL_OBJS_EXPORTED 1923L + +// +// MessageId: RPC_S_INTERFACE_NOT_EXPORTED +// +// MessageText: +// +// Interface could not be exported to the specified entry. +// +#define RPC_S_INTERFACE_NOT_EXPORTED 1924L + +// +// MessageId: RPC_S_PROFILE_NOT_ADDED +// +// MessageText: +// +// The specified profile entry could not be added. +// +#define RPC_S_PROFILE_NOT_ADDED 1925L + +// +// MessageId: RPC_S_PRF_ELT_NOT_ADDED +// +// MessageText: +// +// The specified profile element could not be added. +// +#define RPC_S_PRF_ELT_NOT_ADDED 1926L + +// +// MessageId: RPC_S_PRF_ELT_NOT_REMOVED +// +// MessageText: +// +// The specified profile element could not be removed. +// +#define RPC_S_PRF_ELT_NOT_REMOVED 1927L + +// +// MessageId: RPC_S_GRP_ELT_NOT_ADDED +// +// MessageText: +// +// The group element could not be added. +// +#define RPC_S_GRP_ELT_NOT_ADDED 1928L + +// +// MessageId: RPC_S_GRP_ELT_NOT_REMOVED +// +// MessageText: +// +// The group element could not be removed. +// +#define RPC_S_GRP_ELT_NOT_REMOVED 1929L + +// +// MessageId: ERROR_KM_DRIVER_BLOCKED +// +// MessageText: +// +// The printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers. +// +#define ERROR_KM_DRIVER_BLOCKED 1930L + +// +// MessageId: ERROR_CONTEXT_EXPIRED +// +// MessageText: +// +// The context has expired and can no longer be used. +// +#define ERROR_CONTEXT_EXPIRED 1931L + +// +// MessageId: ERROR_PER_USER_TRUST_QUOTA_EXCEEDED +// +// MessageText: +// +// The current user's delegated trust creation quota has been exceeded. +// +#define ERROR_PER_USER_TRUST_QUOTA_EXCEEDED 1932L + +// +// MessageId: ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED +// +// MessageText: +// +// The total delegated trust creation quota has been exceeded. +// +#define ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED 1933L + +// +// MessageId: ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED +// +// MessageText: +// +// The current user's delegated trust deletion quota has been exceeded. +// +#define ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED 1934L + +// +// MessageId: ERROR_AUTHENTICATION_FIREWALL_FAILED +// +// MessageText: +// +// The computer you are signing into is protected by an authentication firewall. The specified account is not allowed to authenticate to the computer. +// +#define ERROR_AUTHENTICATION_FIREWALL_FAILED 1935L + +// +// MessageId: ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED +// +// MessageText: +// +// Remote connections to the Print Spooler are blocked by a policy set on your machine. +// +#define ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED 1936L + +// +// MessageId: ERROR_NTLM_BLOCKED +// +// MessageText: +// +// Authentication failed because NTLM authentication has been disabled. +// +#define ERROR_NTLM_BLOCKED 1937L + +// +// MessageId: ERROR_PASSWORD_CHANGE_REQUIRED +// +// MessageText: +// +// Logon Failure: EAS policy requires that the user change their password before this operation can be performed. +// +#define ERROR_PASSWORD_CHANGE_REQUIRED 1938L + +// +// MessageId: ERROR_LOST_MODE_LOGON_RESTRICTION +// +// MessageText: +// +// An administrator has restricted sign in. To sign in, make sure your device is connected to the Internet, and have your administrator sign in first. +// +#define ERROR_LOST_MODE_LOGON_RESTRICTION 1939L + + +/////////////////////////////////////////////////// +// // +// OpenGL Error codes // +// // +// 2000 to 2009 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_INVALID_PIXEL_FORMAT +// +// MessageText: +// +// The pixel format is invalid. +// +#define ERROR_INVALID_PIXEL_FORMAT 2000L + +// +// MessageId: ERROR_BAD_DRIVER +// +// MessageText: +// +// The specified driver is invalid. +// +#define ERROR_BAD_DRIVER 2001L + +// +// MessageId: ERROR_INVALID_WINDOW_STYLE +// +// MessageText: +// +// The window style or class attribute is invalid for this operation. +// +#define ERROR_INVALID_WINDOW_STYLE 2002L + +// +// MessageId: ERROR_METAFILE_NOT_SUPPORTED +// +// MessageText: +// +// The requested metafile operation is not supported. +// +#define ERROR_METAFILE_NOT_SUPPORTED 2003L + +// +// MessageId: ERROR_TRANSFORM_NOT_SUPPORTED +// +// MessageText: +// +// The requested transformation operation is not supported. +// +#define ERROR_TRANSFORM_NOT_SUPPORTED 2004L + +// +// MessageId: ERROR_CLIPPING_NOT_SUPPORTED +// +// MessageText: +// +// The requested clipping operation is not supported. +// +#define ERROR_CLIPPING_NOT_SUPPORTED 2005L + + +/////////////////////////////////////////////////// +// // +// Image Color Management Error codes // +// // +// 2010 to 2049 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_INVALID_CMM +// +// MessageText: +// +// The specified color management module is invalid. +// +#define ERROR_INVALID_CMM 2010L + +// +// MessageId: ERROR_INVALID_PROFILE +// +// MessageText: +// +// The specified color profile is invalid. +// +#define ERROR_INVALID_PROFILE 2011L + +// +// MessageId: ERROR_TAG_NOT_FOUND +// +// MessageText: +// +// The specified tag was not found. +// +#define ERROR_TAG_NOT_FOUND 2012L + +// +// MessageId: ERROR_TAG_NOT_PRESENT +// +// MessageText: +// +// A required tag is not present. +// +#define ERROR_TAG_NOT_PRESENT 2013L + +// +// MessageId: ERROR_DUPLICATE_TAG +// +// MessageText: +// +// The specified tag is already present. +// +#define ERROR_DUPLICATE_TAG 2014L + +// +// MessageId: ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE +// +// MessageText: +// +// The specified color profile is not associated with the specified device. +// +#define ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE 2015L + +// +// MessageId: ERROR_PROFILE_NOT_FOUND +// +// MessageText: +// +// The specified color profile was not found. +// +#define ERROR_PROFILE_NOT_FOUND 2016L + +// +// MessageId: ERROR_INVALID_COLORSPACE +// +// MessageText: +// +// The specified color space is invalid. +// +#define ERROR_INVALID_COLORSPACE 2017L + +// +// MessageId: ERROR_ICM_NOT_ENABLED +// +// MessageText: +// +// Image Color Management is not enabled. +// +#define ERROR_ICM_NOT_ENABLED 2018L + +// +// MessageId: ERROR_DELETING_ICM_XFORM +// +// MessageText: +// +// There was an error while deleting the color transform. +// +#define ERROR_DELETING_ICM_XFORM 2019L + +// +// MessageId: ERROR_INVALID_TRANSFORM +// +// MessageText: +// +// The specified color transform is invalid. +// +#define ERROR_INVALID_TRANSFORM 2020L + +// +// MessageId: ERROR_COLORSPACE_MISMATCH +// +// MessageText: +// +// The specified transform does not match the bitmap's color space. +// +#define ERROR_COLORSPACE_MISMATCH 2021L + +// +// MessageId: ERROR_INVALID_COLORINDEX +// +// MessageText: +// +// The specified named color index is not present in the profile. +// +#define ERROR_INVALID_COLORINDEX 2022L + +// +// MessageId: ERROR_PROFILE_DOES_NOT_MATCH_DEVICE +// +// MessageText: +// +// The specified profile is intended for a device of a different type than the specified device. +// +#define ERROR_PROFILE_DOES_NOT_MATCH_DEVICE 2023L + + +/////////////////////////////////////////////////// +// // +// Winnet32 Error codes // +// // +// 2100 to 2999 // +// // +// The range 2100 through 2999 is reserved for // +// network status codes. See lmerr.h for a // +// complete listing // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_CONNECTED_OTHER_PASSWORD +// +// MessageText: +// +// The network connection was made successfully, but the user had to be prompted for a password other than the one originally specified. +// +#define ERROR_CONNECTED_OTHER_PASSWORD 2108L + +// +// MessageId: ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT +// +// MessageText: +// +// The network connection was made successfully using default credentials. +// +#define ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT 2109L + +// +// MessageId: ERROR_BAD_USERNAME +// +// MessageText: +// +// The specified username is invalid. +// +#define ERROR_BAD_USERNAME 2202L + +// +// MessageId: ERROR_NOT_CONNECTED +// +// MessageText: +// +// This network connection does not exist. +// +#define ERROR_NOT_CONNECTED 2250L + +// +// MessageId: ERROR_OPEN_FILES +// +// MessageText: +// +// This network connection has files open or requests pending. +// +#define ERROR_OPEN_FILES 2401L + +// +// MessageId: ERROR_ACTIVE_CONNECTIONS +// +// MessageText: +// +// Active connections still exist. +// +#define ERROR_ACTIVE_CONNECTIONS 2402L + +// +// MessageId: ERROR_DEVICE_IN_USE +// +// MessageText: +// +// The device is in use by an active process and cannot be disconnected. +// +#define ERROR_DEVICE_IN_USE 2404L + + +/////////////////////////////////////////////////// +// // +// Win32 Spooler Error codes // +// // +// 3000 to 3049 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_UNKNOWN_PRINT_MONITOR +// +// MessageText: +// +// The specified print monitor is unknown. +// +#define ERROR_UNKNOWN_PRINT_MONITOR 3000L + +// +// MessageId: ERROR_PRINTER_DRIVER_IN_USE +// +// MessageText: +// +// The specified printer driver is currently in use. +// +#define ERROR_PRINTER_DRIVER_IN_USE 3001L + +// +// MessageId: ERROR_SPOOL_FILE_NOT_FOUND +// +// MessageText: +// +// The spool file was not found. +// +#define ERROR_SPOOL_FILE_NOT_FOUND 3002L + +// +// MessageId: ERROR_SPL_NO_STARTDOC +// +// MessageText: +// +// A StartDocPrinter call was not issued. +// +#define ERROR_SPL_NO_STARTDOC 3003L + +// +// MessageId: ERROR_SPL_NO_ADDJOB +// +// MessageText: +// +// An AddJob call was not issued. +// +#define ERROR_SPL_NO_ADDJOB 3004L + +// +// MessageId: ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED +// +// MessageText: +// +// The specified print processor has already been installed. +// +#define ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED 3005L + +// +// MessageId: ERROR_PRINT_MONITOR_ALREADY_INSTALLED +// +// MessageText: +// +// The specified print monitor has already been installed. +// +#define ERROR_PRINT_MONITOR_ALREADY_INSTALLED 3006L + +// +// MessageId: ERROR_INVALID_PRINT_MONITOR +// +// MessageText: +// +// The specified print monitor does not have the required functions. +// +#define ERROR_INVALID_PRINT_MONITOR 3007L + +// +// MessageId: ERROR_PRINT_MONITOR_IN_USE +// +// MessageText: +// +// The specified print monitor is currently in use. +// +#define ERROR_PRINT_MONITOR_IN_USE 3008L + +// +// MessageId: ERROR_PRINTER_HAS_JOBS_QUEUED +// +// MessageText: +// +// The requested operation is not allowed when there are jobs queued to the printer. +// +#define ERROR_PRINTER_HAS_JOBS_QUEUED 3009L + +// +// MessageId: ERROR_SUCCESS_REBOOT_REQUIRED +// +// MessageText: +// +// The requested operation is successful. Changes will not be effective until the system is rebooted. +// +#define ERROR_SUCCESS_REBOOT_REQUIRED 3010L + +// +// MessageId: ERROR_SUCCESS_RESTART_REQUIRED +// +// MessageText: +// +// The requested operation is successful. Changes will not be effective until the service is restarted. +// +#define ERROR_SUCCESS_RESTART_REQUIRED 3011L + +// +// MessageId: ERROR_PRINTER_NOT_FOUND +// +// MessageText: +// +// No printers were found. +// +#define ERROR_PRINTER_NOT_FOUND 3012L + +// +// MessageId: ERROR_PRINTER_DRIVER_WARNED +// +// MessageText: +// +// The printer driver is known to be unreliable. +// +#define ERROR_PRINTER_DRIVER_WARNED 3013L + +// +// MessageId: ERROR_PRINTER_DRIVER_BLOCKED +// +// MessageText: +// +// The printer driver is known to harm the system. +// +#define ERROR_PRINTER_DRIVER_BLOCKED 3014L + +// +// MessageId: ERROR_PRINTER_DRIVER_PACKAGE_IN_USE +// +// MessageText: +// +// The specified printer driver package is currently in use. +// +#define ERROR_PRINTER_DRIVER_PACKAGE_IN_USE 3015L + +// +// MessageId: ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND +// +// MessageText: +// +// Unable to find a core driver package that is required by the printer driver package. +// +#define ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND 3016L + +// +// MessageId: ERROR_FAIL_REBOOT_REQUIRED +// +// MessageText: +// +// The requested operation failed. A system reboot is required to roll back changes made. +// +#define ERROR_FAIL_REBOOT_REQUIRED 3017L + +// +// MessageId: ERROR_FAIL_REBOOT_INITIATED +// +// MessageText: +// +// The requested operation failed. A system reboot has been initiated to roll back changes made. +// +#define ERROR_FAIL_REBOOT_INITIATED 3018L + +// +// MessageId: ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED +// +// MessageText: +// +// The specified printer driver was not found on the system and needs to be downloaded. +// +#define ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED 3019L + +// +// MessageId: ERROR_PRINT_JOB_RESTART_REQUIRED +// +// MessageText: +// +// The requested print job has failed to print. A print system update requires the job to be resubmitted. +// +#define ERROR_PRINT_JOB_RESTART_REQUIRED 3020L + +// +// MessageId: ERROR_INVALID_PRINTER_DRIVER_MANIFEST +// +// MessageText: +// +// The printer driver does not contain a valid manifest, or contains too many manifests. +// +#define ERROR_INVALID_PRINTER_DRIVER_MANIFEST 3021L + +// +// MessageId: ERROR_PRINTER_NOT_SHAREABLE +// +// MessageText: +// +// The specified printer cannot be shared. +// +#define ERROR_PRINTER_NOT_SHAREABLE 3022L + +// +// MessageId: ERROR_SERVER_SERVICE_CALL_REQUIRES_SMB1 +// +// MessageText: +// +// The requested function requires SMB1 to be present and enabled. +// +#define ERROR_SERVER_SERVICE_CALL_REQUIRES_SMB1 3023L + +// +// MessageId: ERROR_NETWORK_AUTHENTICATION_PROMPT_CANCELED +// +// MessageText: +// +// The user canceled the authentication prompt to a remote server. +// +#define ERROR_NETWORK_AUTHENTICATION_PROMPT_CANCELED 3024L + +// +// MessageId: ERROR_REMOTE_MAILSLOTS_DEPRECATED +// +// MessageText: +// +// The requested operation failed. Remote mailslots have been deprecated. +// +#define ERROR_REMOTE_MAILSLOTS_DEPRECATED 3025L + + +/////////////////////////////////////////////////// +// // +// CopyFile ext. Error codes // +// // +// 3050 to 3059 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_REQUEST_PAUSED +// +// MessageText: +// +// The operation was paused. +// +#define ERROR_REQUEST_PAUSED 3050L + + +/////////////////////////////////////////////////// +// // +// AppExec Error codes // +// // +// 3060 to 3079 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_APPEXEC_CONDITION_NOT_SATISFIED +// +// MessageText: +// +// The condition supplied for the app execution request was not satisfied, so the request was not performed. +// +#define ERROR_APPEXEC_CONDITION_NOT_SATISFIED 3060L + +// +// MessageId: ERROR_APPEXEC_HANDLE_INVALIDATED +// +// MessageText: +// +// The supplied handle has been invalidated and may not be used for the requested operation. +// +#define ERROR_APPEXEC_HANDLE_INVALIDATED 3061L + +// +// MessageId: ERROR_APPEXEC_INVALID_HOST_GENERATION +// +// MessageText: +// +// The supplied host generation has been invalidated and may not be used for the requested operation. +// +#define ERROR_APPEXEC_INVALID_HOST_GENERATION 3062L + +// +// MessageId: ERROR_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION +// +// MessageText: +// +// An attempt to register a process failed because the target host was not in a valid state to receive process registrations. +// +#define ERROR_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION 3063L + +// +// MessageId: ERROR_APPEXEC_INVALID_HOST_STATE +// +// MessageText: +// +// The host is not in a valid state to support the execution request. +// +#define ERROR_APPEXEC_INVALID_HOST_STATE 3064L + +// +// MessageId: ERROR_APPEXEC_NO_DONOR +// +// MessageText: +// +// The operation was not completed because a required resource donor was not found for the host. +// +#define ERROR_APPEXEC_NO_DONOR 3065L + +// +// MessageId: ERROR_APPEXEC_HOST_ID_MISMATCH +// +// MessageText: +// +// The operation was not completed because an unexpected host ID was encountered. +// +#define ERROR_APPEXEC_HOST_ID_MISMATCH 3066L + +// +// MessageId: ERROR_APPEXEC_UNKNOWN_USER +// +// MessageText: +// +// The operation was not completed because the specified user was not known to the service. +// +#define ERROR_APPEXEC_UNKNOWN_USER 3067L + +// +// MessageId: ERROR_APPEXEC_APP_COMPAT_BLOCK +// +// MessageText: +// +// The application is blocked by app compat policy. +// +#define ERROR_APPEXEC_APP_COMPAT_BLOCK 3068L + +// +// MessageId: ERROR_APPEXEC_CALLER_WAIT_TIMEOUT +// +// MessageText: +// +// The caller specified wait timed out before the operation completed. +// +#define ERROR_APPEXEC_CALLER_WAIT_TIMEOUT 3069L + +// +// MessageId: ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_TERMINATION +// +// MessageText: +// +// The caller specified wait timed out before the operation completed because a host termination is in queued. +// +#define ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_TERMINATION 3070L + +// +// MessageId: ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_LICENSING +// +// MessageText: +// +// The caller specified wait timed out before the operation completed because a licensing operation is being performed. +// +#define ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_LICENSING 3071L + +// +// MessageId: ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_RESOURCES +// +// MessageText: +// +// The caller specified wait timed out before the operation completed because resources are being acquired. +// +#define ERROR_APPEXEC_CALLER_WAIT_TIMEOUT_RESOURCES 3072L + + +/////////////////////////////////////////////////// +// // +// Verifier Error Codes // +// // +// 3080 (0xc08) to 3199 (0xc7f) // +/////////////////////////////////////////////////// +// +// MessageId: ERROR_VRF_VOLATILE_CFG_AND_IO_ENABLED +// +// MessageText: +// +// Enabling driver verification from volatile command is currently not supported when both CFG and IO are enabled. +// +#define ERROR_VRF_VOLATILE_CFG_AND_IO_ENABLED 3080L + +// +// MessageId: ERROR_VRF_VOLATILE_NOT_STOPPABLE +// +// MessageText: +// +// Removal of current driver verification is not supported from volatile command. +// +#define ERROR_VRF_VOLATILE_NOT_STOPPABLE 3081L + +// +// MessageId: ERROR_VRF_VOLATILE_SAFE_MODE +// +// MessageText: +// +// Enabling driver verification is not supported in safe mode. +// +#define ERROR_VRF_VOLATILE_SAFE_MODE 3082L + +// +// MessageId: ERROR_VRF_VOLATILE_NOT_RUNNABLE_SYSTEM +// +// MessageText: +// +// Enabling driver verification is not supported from volatile mode in current system. +// +#define ERROR_VRF_VOLATILE_NOT_RUNNABLE_SYSTEM 3083L + +// +// MessageId: ERROR_VRF_VOLATILE_NOT_SUPPORTED_RULECLASS +// +// MessageText: +// +// The specified rule class (a.k.a. flag) is not supported from volatile mode. +// +#define ERROR_VRF_VOLATILE_NOT_SUPPORTED_RULECLASS 3084L + +// +// MessageId: ERROR_VRF_VOLATILE_PROTECTED_DRIVER +// +// MessageText: +// +// The specified driver is protected and volatile verification is currently not supported. +// +#define ERROR_VRF_VOLATILE_PROTECTED_DRIVER 3085L + +// +// MessageId: ERROR_VRF_VOLATILE_NMI_REGISTERED +// +// MessageText: +// +// Enabling driver verification is not supported for a driver with NMI callback(s) registered. +// +#define ERROR_VRF_VOLATILE_NMI_REGISTERED 3086L + +// +// MessageId: ERROR_VRF_VOLATILE_SETTINGS_CONFLICT +// +// MessageText: +// +// Volatile verification settings cannot be changed when verification is enabled from boot or DIF volatile verification is enabled. +// +#define ERROR_VRF_VOLATILE_SETTINGS_CONFLICT 3087L + +// +// MessageId: ERROR_CAR_LKD_IN_PROGRESS +// +// MessageText: +// +// Live memory dump generation is in progress. +// +#define ERROR_CAR_LKD_IN_PROGRESS 3088L + +// +// MessageId: ERROR_DIF_ZERO_SIZE_INFORMATION +// +// MessageText: +// +// There is no captured information. +// +#define ERROR_DIF_ZERO_SIZE_INFORMATION 3187L + +// +// MessageId: ERROR_DIF_DRIVER_PLUGIN_MISMATCH +// +// MessageText: +// +// The given rule class ID is not registered by the caller. +// +#define ERROR_DIF_DRIVER_PLUGIN_MISMATCH 3188L + +// +// MessageId: ERROR_DIF_DRIVER_THUNKS_NOT_ALLOWED +// +// MessageText: +// +// Driver thunks are not added when kernel verification is in effect. +// +#define ERROR_DIF_DRIVER_THUNKS_NOT_ALLOWED 3189L + +// +// MessageId: ERROR_DIF_IOCALLBACK_NOT_REPLACED +// +// MessageText: +// +// The specified driver is not associated with driver object or driver extension. +// +#define ERROR_DIF_IOCALLBACK_NOT_REPLACED 3190L + +// +// MessageId: ERROR_DIF_LIVEDUMP_LIMIT_EXCEEDED +// +// MessageText: +// +// Verifier's internal data size exceeds the limit of live dump secondary data. +// +#define ERROR_DIF_LIVEDUMP_LIMIT_EXCEEDED 3191L + +// +// MessageId: ERROR_DIF_VOLATILE_SECTION_NOT_LOCKED +// +// MessageText: +// +// Verification cannot start because an attempt to lock code or data section failed. +// +#define ERROR_DIF_VOLATILE_SECTION_NOT_LOCKED 3192L + +// +// MessageId: ERROR_DIF_VOLATILE_DRIVER_HOTPATCHED +// +// MessageText: +// +// DIF volatile verification is not supported for hotpatched driver. +// +#define ERROR_DIF_VOLATILE_DRIVER_HOTPATCHED 3193L + +// +// MessageId: ERROR_DIF_VOLATILE_INVALID_INFO +// +// MessageText: +// +// The passed system DIF information is invalid. +// +#define ERROR_DIF_VOLATILE_INVALID_INFO 3194L + +// +// MessageId: ERROR_DIF_VOLATILE_DRIVER_IS_NOT_RUNNING +// +// MessageText: +// +// DIF volatile verification only supports on loaded drivers. +// +#define ERROR_DIF_VOLATILE_DRIVER_IS_NOT_RUNNING 3195L + +// +// MessageId: ERROR_DIF_VOLATILE_PLUGIN_IS_NOT_RUNNING +// +// MessageText: +// +// Currently no plugin is running. +// +#define ERROR_DIF_VOLATILE_PLUGIN_IS_NOT_RUNNING 3196L + +// +// MessageId: ERROR_DIF_VOLATILE_PLUGIN_CHANGE_NOT_ALLOWED +// +// MessageText: +// +// Currently running plugin must be removed before applying a new plugin. +// +#define ERROR_DIF_VOLATILE_PLUGIN_CHANGE_NOT_ALLOWED 3197L + +// +// MessageId: ERROR_DIF_VOLATILE_NOT_ALLOWED +// +// MessageText: +// +// The plugin is not allowed to run in volatile mode. +// +#define ERROR_DIF_VOLATILE_NOT_ALLOWED 3198L + +// +// MessageId: ERROR_DIF_BINDING_API_NOT_FOUND +// +// MessageText: +// +// One or more DDI is not yet supported by DIF. +// +#define ERROR_DIF_BINDING_API_NOT_FOUND 3199L + + +// +// the message range +// 3200 to 3299 +// is reserved and used in isolation lib +// + +/////////////////////////////////////////////////// +// // +// Available // +// // +// 3300 to 3899 // +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// // +// IO Error Codes // +// // +// 3900 to 3999 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_IO_REISSUE_AS_CACHED +// +// MessageText: +// +// Reissue the given operation as a cached IO operation +// +#define ERROR_IO_REISSUE_AS_CACHED 3950L + + + +/////////////////////////////////////////////////// +// // +// Wins Error codes // +// // +// 4000 to 4049 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_WINS_INTERNAL +// +// MessageText: +// +// WINS encountered an error while processing the command. +// +#define ERROR_WINS_INTERNAL 4000L + +// +// MessageId: ERROR_CAN_NOT_DEL_LOCAL_WINS +// +// MessageText: +// +// The local WINS cannot be deleted. +// +#define ERROR_CAN_NOT_DEL_LOCAL_WINS 4001L + +// +// MessageId: ERROR_STATIC_INIT +// +// MessageText: +// +// The importation from the file failed. +// +#define ERROR_STATIC_INIT 4002L + +// +// MessageId: ERROR_INC_BACKUP +// +// MessageText: +// +// The backup failed. Was a full backup done before? +// +#define ERROR_INC_BACKUP 4003L + +// +// MessageId: ERROR_FULL_BACKUP +// +// MessageText: +// +// The backup failed. Check the directory to which you are backing the database. +// +#define ERROR_FULL_BACKUP 4004L + +// +// MessageId: ERROR_REC_NON_EXISTENT +// +// MessageText: +// +// The name does not exist in the WINS database. +// +#define ERROR_REC_NON_EXISTENT 4005L + +// +// MessageId: ERROR_RPL_NOT_ALLOWED +// +// MessageText: +// +// Replication with a nonconfigured partner is not allowed. +// +#define ERROR_RPL_NOT_ALLOWED 4006L + + +/////////////////////////////////////////////////// +// // +// PeerDist Error codes // +// // +// 4050 to 4099 // +/////////////////////////////////////////////////// + +// +// MessageId: PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED +// +// MessageText: +// +// The version of the supplied content information is not supported. +// +#define PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED 4050L + +// +// MessageId: PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO +// +// MessageText: +// +// The supplied content information is malformed. +// +#define PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO 4051L + +// +// MessageId: PEERDIST_ERROR_MISSING_DATA +// +// MessageText: +// +// The requested data cannot be found in local or peer caches. +// +#define PEERDIST_ERROR_MISSING_DATA 4052L + +// +// MessageId: PEERDIST_ERROR_NO_MORE +// +// MessageText: +// +// No more data is available or required. +// +#define PEERDIST_ERROR_NO_MORE 4053L + +// +// MessageId: PEERDIST_ERROR_NOT_INITIALIZED +// +// MessageText: +// +// The supplied object has not been initialized. +// +#define PEERDIST_ERROR_NOT_INITIALIZED 4054L + +// +// MessageId: PEERDIST_ERROR_ALREADY_INITIALIZED +// +// MessageText: +// +// The supplied object has already been initialized. +// +#define PEERDIST_ERROR_ALREADY_INITIALIZED 4055L + +// +// MessageId: PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS +// +// MessageText: +// +// A shutdown operation is already in progress. +// +#define PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS 4056L + +// +// MessageId: PEERDIST_ERROR_INVALIDATED +// +// MessageText: +// +// The supplied object has already been invalidated. +// +#define PEERDIST_ERROR_INVALIDATED 4057L + +// +// MessageId: PEERDIST_ERROR_ALREADY_EXISTS +// +// MessageText: +// +// An element already exists and was not replaced. +// +#define PEERDIST_ERROR_ALREADY_EXISTS 4058L + +// +// MessageId: PEERDIST_ERROR_OPERATION_NOTFOUND +// +// MessageText: +// +// Can not cancel the requested operation as it has already been completed. +// +#define PEERDIST_ERROR_OPERATION_NOTFOUND 4059L + +// +// MessageId: PEERDIST_ERROR_ALREADY_COMPLETED +// +// MessageText: +// +// Can not perform the requested operation because it has already been carried out. +// +#define PEERDIST_ERROR_ALREADY_COMPLETED 4060L + +// +// MessageId: PEERDIST_ERROR_OUT_OF_BOUNDS +// +// MessageText: +// +// An operation accessed data beyond the bounds of valid data. +// +#define PEERDIST_ERROR_OUT_OF_BOUNDS 4061L + +// +// MessageId: PEERDIST_ERROR_VERSION_UNSUPPORTED +// +// MessageText: +// +// The requested version is not supported. +// +#define PEERDIST_ERROR_VERSION_UNSUPPORTED 4062L + +// +// MessageId: PEERDIST_ERROR_INVALID_CONFIGURATION +// +// MessageText: +// +// A configuration value is invalid. +// +#define PEERDIST_ERROR_INVALID_CONFIGURATION 4063L + +// +// MessageId: PEERDIST_ERROR_NOT_LICENSED +// +// MessageText: +// +// The SKU is not licensed. +// +#define PEERDIST_ERROR_NOT_LICENSED 4064L + +// +// MessageId: PEERDIST_ERROR_SERVICE_UNAVAILABLE +// +// MessageText: +// +// PeerDist Service is still initializing and will be available shortly. +// +#define PEERDIST_ERROR_SERVICE_UNAVAILABLE 4065L + +// +// MessageId: PEERDIST_ERROR_TRUST_FAILURE +// +// MessageText: +// +// Communication with one or more computers will be temporarily blocked due to recent errors. +// +#define PEERDIST_ERROR_TRUST_FAILURE 4066L + + +/////////////////////////////////////////////////// +// // +// DHCP Error codes // +// // +// 4100 to 4149 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_DHCP_ADDRESS_CONFLICT +// +// MessageText: +// +// The DHCP client has obtained an IP address that is already in use on the network. The local interface will be disabled until the DHCP client can obtain a new address. +// +#define ERROR_DHCP_ADDRESS_CONFLICT 4100L + + +/////////////////////////////////////////////////// +// // +// SMB error codes, in the Win32 code space // +// // +// Not to be confused with Facility=SMB codes in // +// the HRESULT code space. // +// // +// 4150 to 4199 // +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// // +// WMI Error codes // +// // +// 4200 to 4249 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_WMI_GUID_NOT_FOUND +// +// MessageText: +// +// The GUID passed was not recognized as valid by a WMI data provider. +// +#define ERROR_WMI_GUID_NOT_FOUND 4200L + +// +// MessageId: ERROR_WMI_INSTANCE_NOT_FOUND +// +// MessageText: +// +// The instance name passed was not recognized as valid by a WMI data provider. +// +#define ERROR_WMI_INSTANCE_NOT_FOUND 4201L + +// +// MessageId: ERROR_WMI_ITEMID_NOT_FOUND +// +// MessageText: +// +// The data item ID passed was not recognized as valid by a WMI data provider. +// +#define ERROR_WMI_ITEMID_NOT_FOUND 4202L + +// +// MessageId: ERROR_WMI_TRY_AGAIN +// +// MessageText: +// +// The WMI request could not be completed and should be retried. +// +#define ERROR_WMI_TRY_AGAIN 4203L + +// +// MessageId: ERROR_WMI_DP_NOT_FOUND +// +// MessageText: +// +// The WMI data provider could not be located. +// +#define ERROR_WMI_DP_NOT_FOUND 4204L + +// +// MessageId: ERROR_WMI_UNRESOLVED_INSTANCE_REF +// +// MessageText: +// +// The WMI data provider references an instance set that has not been registered. +// +#define ERROR_WMI_UNRESOLVED_INSTANCE_REF 4205L + +// +// MessageId: ERROR_WMI_ALREADY_ENABLED +// +// MessageText: +// +// The WMI data block or event notification has already been enabled. +// +#define ERROR_WMI_ALREADY_ENABLED 4206L + +// +// MessageId: ERROR_WMI_GUID_DISCONNECTED +// +// MessageText: +// +// The WMI data block is no longer available. +// +#define ERROR_WMI_GUID_DISCONNECTED 4207L + +// +// MessageId: ERROR_WMI_SERVER_UNAVAILABLE +// +// MessageText: +// +// The WMI data service is not available. +// +#define ERROR_WMI_SERVER_UNAVAILABLE 4208L + +// +// MessageId: ERROR_WMI_DP_FAILED +// +// MessageText: +// +// The WMI data provider failed to carry out the request. +// +#define ERROR_WMI_DP_FAILED 4209L + +// +// MessageId: ERROR_WMI_INVALID_MOF +// +// MessageText: +// +// The WMI MOF information is not valid. +// +#define ERROR_WMI_INVALID_MOF 4210L + +// +// MessageId: ERROR_WMI_INVALID_REGINFO +// +// MessageText: +// +// The WMI registration information is not valid. +// +#define ERROR_WMI_INVALID_REGINFO 4211L + +// +// MessageId: ERROR_WMI_ALREADY_DISABLED +// +// MessageText: +// +// The WMI data block or event notification has already been disabled. +// +#define ERROR_WMI_ALREADY_DISABLED 4212L + +// +// MessageId: ERROR_WMI_READ_ONLY +// +// MessageText: +// +// The WMI data item or data block is read only. +// +#define ERROR_WMI_READ_ONLY 4213L + +// +// MessageId: ERROR_WMI_SET_FAILURE +// +// MessageText: +// +// The WMI data item or data block could not be changed. +// +#define ERROR_WMI_SET_FAILURE 4214L + + +/////////////////////////////////////////////////// +// // +// app container Specific Error Codes // +// // +// 4250 to 4299 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_NOT_APPCONTAINER +// +// MessageText: +// +// This operation is only valid in the context of an app container. +// +#define ERROR_NOT_APPCONTAINER 4250L + +// +// MessageId: ERROR_APPCONTAINER_REQUIRED +// +// MessageText: +// +// This application can only run in the context of an app container. +// +#define ERROR_APPCONTAINER_REQUIRED 4251L + +// +// MessageId: ERROR_NOT_SUPPORTED_IN_APPCONTAINER +// +// MessageText: +// +// This functionality is not supported in the context of an app container. +// +#define ERROR_NOT_SUPPORTED_IN_APPCONTAINER 4252L + +// +// MessageId: ERROR_INVALID_PACKAGE_SID_LENGTH +// +// MessageText: +// +// The length of the SID supplied is not a valid length for app container SIDs. +// +#define ERROR_INVALID_PACKAGE_SID_LENGTH 4253L + +/////////////////////////////////////////////////// +// // +// RSM (Media Services) Error codes // +// // +// 4300 to 4349 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_INVALID_MEDIA +// +// MessageText: +// +// The media identifier does not represent a valid medium. +// +#define ERROR_INVALID_MEDIA 4300L + +// +// MessageId: ERROR_INVALID_LIBRARY +// +// MessageText: +// +// The library identifier does not represent a valid library. +// +#define ERROR_INVALID_LIBRARY 4301L + +// +// MessageId: ERROR_INVALID_MEDIA_POOL +// +// MessageText: +// +// The media pool identifier does not represent a valid media pool. +// +#define ERROR_INVALID_MEDIA_POOL 4302L + +// +// MessageId: ERROR_DRIVE_MEDIA_MISMATCH +// +// MessageText: +// +// The drive and medium are not compatible or exist in different libraries. +// +#define ERROR_DRIVE_MEDIA_MISMATCH 4303L + +// +// MessageId: ERROR_MEDIA_OFFLINE +// +// MessageText: +// +// The medium currently exists in an offline library and must be online to perform this operation. +// +#define ERROR_MEDIA_OFFLINE 4304L + +// +// MessageId: ERROR_LIBRARY_OFFLINE +// +// MessageText: +// +// The operation cannot be performed on an offline library. +// +#define ERROR_LIBRARY_OFFLINE 4305L + +// +// MessageId: ERROR_EMPTY +// +// MessageText: +// +// The library, drive, or media pool is empty. +// +#define ERROR_EMPTY 4306L + +// +// MessageId: ERROR_NOT_EMPTY +// +// MessageText: +// +// The library, drive, or media pool must be empty to perform this operation. +// +#define ERROR_NOT_EMPTY 4307L + +// +// MessageId: ERROR_MEDIA_UNAVAILABLE +// +// MessageText: +// +// No media is currently available in this media pool or library. +// +#define ERROR_MEDIA_UNAVAILABLE 4308L + +// +// MessageId: ERROR_RESOURCE_DISABLED +// +// MessageText: +// +// A resource required for this operation is disabled. +// +#define ERROR_RESOURCE_DISABLED 4309L + +// +// MessageId: ERROR_INVALID_CLEANER +// +// MessageText: +// +// The media identifier does not represent a valid cleaner. +// +#define ERROR_INVALID_CLEANER 4310L + +// +// MessageId: ERROR_UNABLE_TO_CLEAN +// +// MessageText: +// +// The drive cannot be cleaned or does not support cleaning. +// +#define ERROR_UNABLE_TO_CLEAN 4311L + +// +// MessageId: ERROR_OBJECT_NOT_FOUND +// +// MessageText: +// +// The object identifier does not represent a valid object. +// +#define ERROR_OBJECT_NOT_FOUND 4312L + +// +// MessageId: ERROR_DATABASE_FAILURE +// +// MessageText: +// +// Unable to read from or write to the database. +// +#define ERROR_DATABASE_FAILURE 4313L + +// +// MessageId: ERROR_DATABASE_FULL +// +// MessageText: +// +// The database is full. +// +#define ERROR_DATABASE_FULL 4314L + +// +// MessageId: ERROR_MEDIA_INCOMPATIBLE +// +// MessageText: +// +// The medium is not compatible with the device or media pool. +// +#define ERROR_MEDIA_INCOMPATIBLE 4315L + +// +// MessageId: ERROR_RESOURCE_NOT_PRESENT +// +// MessageText: +// +// The resource required for this operation does not exist. +// +#define ERROR_RESOURCE_NOT_PRESENT 4316L + +// +// MessageId: ERROR_INVALID_OPERATION +// +// MessageText: +// +// The operation identifier is not valid. +// +#define ERROR_INVALID_OPERATION 4317L + +// +// MessageId: ERROR_MEDIA_NOT_AVAILABLE +// +// MessageText: +// +// The media is not mounted or ready for use. +// +#define ERROR_MEDIA_NOT_AVAILABLE 4318L + +// +// MessageId: ERROR_DEVICE_NOT_AVAILABLE +// +// MessageText: +// +// The device is not ready for use. +// +#define ERROR_DEVICE_NOT_AVAILABLE 4319L + +// +// MessageId: ERROR_REQUEST_REFUSED +// +// MessageText: +// +// The operator or administrator has refused the request. +// +#define ERROR_REQUEST_REFUSED 4320L + +// +// MessageId: ERROR_INVALID_DRIVE_OBJECT +// +// MessageText: +// +// The drive identifier does not represent a valid drive. +// +#define ERROR_INVALID_DRIVE_OBJECT 4321L + +// +// MessageId: ERROR_LIBRARY_FULL +// +// MessageText: +// +// Library is full. No slot is available for use. +// +#define ERROR_LIBRARY_FULL 4322L + +// +// MessageId: ERROR_MEDIUM_NOT_ACCESSIBLE +// +// MessageText: +// +// The transport cannot access the medium. +// +#define ERROR_MEDIUM_NOT_ACCESSIBLE 4323L + +// +// MessageId: ERROR_UNABLE_TO_LOAD_MEDIUM +// +// MessageText: +// +// Unable to load the medium into the drive. +// +#define ERROR_UNABLE_TO_LOAD_MEDIUM 4324L + +// +// MessageId: ERROR_UNABLE_TO_INVENTORY_DRIVE +// +// MessageText: +// +// Unable to retrieve the drive status. +// +#define ERROR_UNABLE_TO_INVENTORY_DRIVE 4325L + +// +// MessageId: ERROR_UNABLE_TO_INVENTORY_SLOT +// +// MessageText: +// +// Unable to retrieve the slot status. +// +#define ERROR_UNABLE_TO_INVENTORY_SLOT 4326L + +// +// MessageId: ERROR_UNABLE_TO_INVENTORY_TRANSPORT +// +// MessageText: +// +// Unable to retrieve status about the transport. +// +#define ERROR_UNABLE_TO_INVENTORY_TRANSPORT 4327L + +// +// MessageId: ERROR_TRANSPORT_FULL +// +// MessageText: +// +// Cannot use the transport because it is already in use. +// +#define ERROR_TRANSPORT_FULL 4328L + +// +// MessageId: ERROR_CONTROLLING_IEPORT +// +// MessageText: +// +// Unable to open or close the inject/eject port. +// +#define ERROR_CONTROLLING_IEPORT 4329L + +// +// MessageId: ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA +// +// MessageText: +// +// Unable to eject the medium because it is in a drive. +// +#define ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA 4330L + +// +// MessageId: ERROR_CLEANER_SLOT_SET +// +// MessageText: +// +// A cleaner slot is already reserved. +// +#define ERROR_CLEANER_SLOT_SET 4331L + +// +// MessageId: ERROR_CLEANER_SLOT_NOT_SET +// +// MessageText: +// +// A cleaner slot is not reserved. +// +#define ERROR_CLEANER_SLOT_NOT_SET 4332L + +// +// MessageId: ERROR_CLEANER_CARTRIDGE_SPENT +// +// MessageText: +// +// The cleaner cartridge has performed the maximum number of drive cleanings. +// +#define ERROR_CLEANER_CARTRIDGE_SPENT 4333L + +// +// MessageId: ERROR_UNEXPECTED_OMID +// +// MessageText: +// +// Unexpected on-medium identifier. +// +#define ERROR_UNEXPECTED_OMID 4334L + +// +// MessageId: ERROR_CANT_DELETE_LAST_ITEM +// +// MessageText: +// +// The last remaining item in this group or resource cannot be deleted. +// +#define ERROR_CANT_DELETE_LAST_ITEM 4335L + +// +// MessageId: ERROR_MESSAGE_EXCEEDS_MAX_SIZE +// +// MessageText: +// +// The message provided exceeds the maximum size allowed for this parameter. +// +#define ERROR_MESSAGE_EXCEEDS_MAX_SIZE 4336L + +// +// MessageId: ERROR_VOLUME_CONTAINS_SYS_FILES +// +// MessageText: +// +// The volume contains system or paging files. +// +#define ERROR_VOLUME_CONTAINS_SYS_FILES 4337L + +// +// MessageId: ERROR_INDIGENOUS_TYPE +// +// MessageText: +// +// The media type cannot be removed from this library since at least one drive in the library reports it can support this media type. +// +#define ERROR_INDIGENOUS_TYPE 4338L + +// +// MessageId: ERROR_NO_SUPPORTING_DRIVES +// +// MessageText: +// +// This offline media cannot be mounted on this system since no enabled drives are present which can be used. +// +#define ERROR_NO_SUPPORTING_DRIVES 4339L + +// +// MessageId: ERROR_CLEANER_CARTRIDGE_INSTALLED +// +// MessageText: +// +// A cleaner cartridge is present in the tape library. +// +#define ERROR_CLEANER_CARTRIDGE_INSTALLED 4340L + +// +// MessageId: ERROR_IEPORT_FULL +// +// MessageText: +// +// Cannot use the inject/eject port because it is not empty. +// +#define ERROR_IEPORT_FULL 4341L + + +/////////////////////////////////////////////////// +// // +// Remote Storage Service Error codes // +// // +// 4350 to 4389 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_FILE_OFFLINE +// +// MessageText: +// +// This file is currently not available for use on this computer. +// +#define ERROR_FILE_OFFLINE 4350L + +// +// MessageId: ERROR_REMOTE_STORAGE_NOT_ACTIVE +// +// MessageText: +// +// The remote storage service is not operational at this time. +// +#define ERROR_REMOTE_STORAGE_NOT_ACTIVE 4351L + +// +// MessageId: ERROR_REMOTE_STORAGE_MEDIA_ERROR +// +// MessageText: +// +// The remote storage service encountered a media error. +// +#define ERROR_REMOTE_STORAGE_MEDIA_ERROR 4352L + + +/////////////////////////////////////////////////// +// // +// Reparse Point Error codes // +// // +// 4390 to 4399 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_NOT_A_REPARSE_POINT +// +// MessageText: +// +// The file or directory is not a reparse point. +// +#define ERROR_NOT_A_REPARSE_POINT 4390L + +// +// MessageId: ERROR_REPARSE_ATTRIBUTE_CONFLICT +// +// MessageText: +// +// The reparse point attribute cannot be set because it conflicts with an existing attribute. +// +#define ERROR_REPARSE_ATTRIBUTE_CONFLICT 4391L + +// +// MessageId: ERROR_INVALID_REPARSE_DATA +// +// MessageText: +// +// The data present in the reparse point buffer is invalid. +// +#define ERROR_INVALID_REPARSE_DATA 4392L + +// +// MessageId: ERROR_REPARSE_TAG_INVALID +// +// MessageText: +// +// The tag present in the reparse point buffer is invalid. +// +#define ERROR_REPARSE_TAG_INVALID 4393L + +// +// MessageId: ERROR_REPARSE_TAG_MISMATCH +// +// MessageText: +// +// There is a mismatch between the tag specified in the request and the tag present in the reparse point. +// +#define ERROR_REPARSE_TAG_MISMATCH 4394L + +// +// MessageId: ERROR_REPARSE_POINT_ENCOUNTERED +// +// MessageText: +// +// The object manager encountered a reparse point while retrieving an object. +// +#define ERROR_REPARSE_POINT_ENCOUNTERED 4395L + + +/////////////////////////////////////////////////// +// // +// Fast Cache Specific Error Codes // +// // +// 4400 to 4419 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_APP_DATA_NOT_FOUND +// +// MessageText: +// +// Fast Cache data not found. +// +#define ERROR_APP_DATA_NOT_FOUND 4400L + +// +// MessageId: ERROR_APP_DATA_EXPIRED +// +// MessageText: +// +// Fast Cache data expired. +// +#define ERROR_APP_DATA_EXPIRED 4401L + +// +// MessageId: ERROR_APP_DATA_CORRUPT +// +// MessageText: +// +// Fast Cache data corrupt. +// +#define ERROR_APP_DATA_CORRUPT 4402L + +// +// MessageId: ERROR_APP_DATA_LIMIT_EXCEEDED +// +// MessageText: +// +// Fast Cache data has exceeded its max size and cannot be updated. +// +#define ERROR_APP_DATA_LIMIT_EXCEEDED 4403L + +// +// MessageId: ERROR_APP_DATA_REBOOT_REQUIRED +// +// MessageText: +// +// Fast Cache has been ReArmed and requires a reboot until it can be updated. +// +#define ERROR_APP_DATA_REBOOT_REQUIRED 4404L + + +/////////////////////////////////////////////////// +// // +// SecureBoot Error codes // +// // +// 4420 to 4439 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_SECUREBOOT_ROLLBACK_DETECTED +// +// MessageText: +// +// Secure Boot detected that rollback of protected data has been attempted. +// +#define ERROR_SECUREBOOT_ROLLBACK_DETECTED 4420L + +// +// MessageId: ERROR_SECUREBOOT_POLICY_VIOLATION +// +// MessageText: +// +// The value is protected by Secure Boot policy and cannot be modified or deleted. +// +#define ERROR_SECUREBOOT_POLICY_VIOLATION 4421L + +// +// MessageId: ERROR_SECUREBOOT_INVALID_POLICY +// +// MessageText: +// +// The Secure Boot policy is invalid. +// +#define ERROR_SECUREBOOT_INVALID_POLICY 4422L + +// +// MessageId: ERROR_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND +// +// MessageText: +// +// A new Secure Boot policy did not contain the current publisher on its update list. +// +#define ERROR_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND 4423L + +// +// MessageId: ERROR_SECUREBOOT_POLICY_NOT_SIGNED +// +// MessageText: +// +// The Secure Boot policy is either not signed or is signed by a non-trusted signer. +// +#define ERROR_SECUREBOOT_POLICY_NOT_SIGNED 4424L + +// +// MessageId: ERROR_SECUREBOOT_NOT_ENABLED +// +// MessageText: +// +// Secure Boot is not enabled on this machine. +// +#define ERROR_SECUREBOOT_NOT_ENABLED 4425L + +// +// MessageId: ERROR_SECUREBOOT_FILE_REPLACED +// +// MessageText: +// +// Secure Boot requires that certain files and drivers are not replaced by other files or drivers. +// +#define ERROR_SECUREBOOT_FILE_REPLACED 4426L + +// +// MessageId: ERROR_SECUREBOOT_POLICY_NOT_AUTHORIZED +// +// MessageText: +// +// The Secure Boot Supplemental Policy file was not authorized on this machine. +// +#define ERROR_SECUREBOOT_POLICY_NOT_AUTHORIZED 4427L + +// +// MessageId: ERROR_SECUREBOOT_POLICY_UNKNOWN +// +// MessageText: +// +// The Supplemental Policy is not recognized on this device. +// +#define ERROR_SECUREBOOT_POLICY_UNKNOWN 4428L + +// +// MessageId: ERROR_SECUREBOOT_POLICY_MISSING_ANTIROLLBACKVERSION +// +// MessageText: +// +// The Antirollback version was not found in the Secure Boot Policy. +// +#define ERROR_SECUREBOOT_POLICY_MISSING_ANTIROLLBACKVERSION 4429L + +// +// MessageId: ERROR_SECUREBOOT_PLATFORM_ID_MISMATCH +// +// MessageText: +// +// The Platform ID specified in the Secure Boot policy does not match the Platform ID on this device. +// +#define ERROR_SECUREBOOT_PLATFORM_ID_MISMATCH 4430L + +// +// MessageId: ERROR_SECUREBOOT_POLICY_ROLLBACK_DETECTED +// +// MessageText: +// +// The Secure Boot policy file has an older Antirollback Version than this device. +// +#define ERROR_SECUREBOOT_POLICY_ROLLBACK_DETECTED 4431L + +// +// MessageId: ERROR_SECUREBOOT_POLICY_UPGRADE_MISMATCH +// +// MessageText: +// +// The Secure Boot policy file does not match the upgraded legacy policy. +// +#define ERROR_SECUREBOOT_POLICY_UPGRADE_MISMATCH 4432L + +// +// MessageId: ERROR_SECUREBOOT_REQUIRED_POLICY_FILE_MISSING +// +// MessageText: +// +// The Secure Boot policy file is required but could not be found. +// +#define ERROR_SECUREBOOT_REQUIRED_POLICY_FILE_MISSING 4433L + +// +// MessageId: ERROR_SECUREBOOT_NOT_BASE_POLICY +// +// MessageText: +// +// Supplemental Secure Boot policy file can not be loaded as a base Secure Boot policy. +// +#define ERROR_SECUREBOOT_NOT_BASE_POLICY 4434L + +// +// MessageId: ERROR_SECUREBOOT_NOT_SUPPLEMENTAL_POLICY +// +// MessageText: +// +// Base Secure Boot policy file can not be loaded as a Supplemental Secure Boot policy. +// +#define ERROR_SECUREBOOT_NOT_SUPPLEMENTAL_POLICY 4435L + + +/////////////////////////////////////////////////// +// // +// File System Specific Error Codes // +// // +// 4440 to 4499 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_OFFLOAD_READ_FLT_NOT_SUPPORTED +// +// MessageText: +// +// The copy offload read operation is not supported by a filter. +// +#define ERROR_OFFLOAD_READ_FLT_NOT_SUPPORTED 4440L + +// +// MessageId: ERROR_OFFLOAD_WRITE_FLT_NOT_SUPPORTED +// +// MessageText: +// +// The copy offload write operation is not supported by a filter. +// +#define ERROR_OFFLOAD_WRITE_FLT_NOT_SUPPORTED 4441L + +// +// MessageId: ERROR_OFFLOAD_READ_FILE_NOT_SUPPORTED +// +// MessageText: +// +// The copy offload read operation is not supported for the file. +// +#define ERROR_OFFLOAD_READ_FILE_NOT_SUPPORTED 4442L + +// +// MessageId: ERROR_OFFLOAD_WRITE_FILE_NOT_SUPPORTED +// +// MessageText: +// +// The copy offload write operation is not supported for the file. +// +#define ERROR_OFFLOAD_WRITE_FILE_NOT_SUPPORTED 4443L + +// +// MessageId: ERROR_ALREADY_HAS_STREAM_ID +// +// MessageText: +// +// This file is currently associated with a different stream id. +// +#define ERROR_ALREADY_HAS_STREAM_ID 4444L + +// +// MessageId: ERROR_SMR_GARBAGE_COLLECTION_REQUIRED +// +// MessageText: +// +// The volume must undergo garbage collection. +// +#define ERROR_SMR_GARBAGE_COLLECTION_REQUIRED 4445L + +// +// MessageId: ERROR_WOF_WIM_HEADER_CORRUPT +// +// MessageText: +// +// The WOF driver encountered a corruption in WIM image's Header. +// +#define ERROR_WOF_WIM_HEADER_CORRUPT 4446L + +// +// MessageId: ERROR_WOF_WIM_RESOURCE_TABLE_CORRUPT +// +// MessageText: +// +// The WOF driver encountered a corruption in WIM image's Resource Table. +// +#define ERROR_WOF_WIM_RESOURCE_TABLE_CORRUPT 4447L + +// +// MessageId: ERROR_WOF_FILE_RESOURCE_TABLE_CORRUPT +// +// MessageText: +// +// The WOF driver encountered a corruption in the compressed file's Resource Table. +// +#define ERROR_WOF_FILE_RESOURCE_TABLE_CORRUPT 4448L + +// +// MessageId: ERROR_OBJECT_IS_IMMUTABLE +// +// MessageText: +// +// The request cannot be completed as it requires modifying an immutable object. +// +#define ERROR_OBJECT_IS_IMMUTABLE 4449L + + +/////////////////////////////////////////////////// +// // +// Single Instance Store (SIS) Error codes // +// // +// 4500 to 4549 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_VOLUME_NOT_SIS_ENABLED +// +// MessageText: +// +// Single Instance Storage is not available on this volume. +// +#define ERROR_VOLUME_NOT_SIS_ENABLED 4500L + + +/////////////////////////////////////////////////// +// // +// System Integrity Error codes // +// // +// 4550 to 4559 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_ROLLBACK_DETECTED +// +// MessageText: +// +// Application Control detected that policy rollback has been attempted. +// +#define ERROR_SYSTEM_INTEGRITY_ROLLBACK_DETECTED 4550L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_POLICY_VIOLATION +// +// MessageText: +// +// An Application Control policy has blocked this file. +// +#define ERROR_SYSTEM_INTEGRITY_POLICY_VIOLATION 4551L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_INVALID_POLICY +// +// MessageText: +// +// The Application Control policy is invalid. +// +#define ERROR_SYSTEM_INTEGRITY_INVALID_POLICY 4552L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_POLICY_NOT_SIGNED +// +// MessageText: +// +// The Application Control policy is either not signed or is signed by a non-trusted signer. +// +#define ERROR_SYSTEM_INTEGRITY_POLICY_NOT_SIGNED 4553L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_TOO_MANY_POLICIES +// +// MessageText: +// +// The number of Application Control policies is out of limit. +// +#define ERROR_SYSTEM_INTEGRITY_TOO_MANY_POLICIES 4554L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_SUPPLEMENTAL_POLICY_NOT_AUTHORIZED +// +// MessageText: +// +// The Application Control supplemental policy is not authorized by an Application Control base policy. +// +#define ERROR_SYSTEM_INTEGRITY_SUPPLEMENTAL_POLICY_NOT_AUTHORIZED 4555L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_REPUTATION_MALICIOUS +// +// MessageText: +// +// An Application Control policy has blocked this file. Malicious binary reputation. +// +#define ERROR_SYSTEM_INTEGRITY_REPUTATION_MALICIOUS 4556L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_REPUTATION_PUA +// +// MessageText: +// +// An Application Control policy has blocked this file. Potentially unwanted application. +// +#define ERROR_SYSTEM_INTEGRITY_REPUTATION_PUA 4557L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_REPUTATION_DANGEROUS_EXT +// +// MessageText: +// +// An Application Control policy has blocked this file. Dangerous file extension from the web. +// +#define ERROR_SYSTEM_INTEGRITY_REPUTATION_DANGEROUS_EXT 4558L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_REPUTATION_OFFLINE +// +// MessageText: +// +// An Application Control policy has blocked this file. Unable to contact reputation service for unknown file. +// +#define ERROR_SYSTEM_INTEGRITY_REPUTATION_OFFLINE 4559L + + +/////////////////////////////////////////////////// +// // +// VSM Error codes // +// // +// 4560 to 4569 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_VSM_NOT_INITIALIZED +// +// MessageText: +// +// Virtual Secure Mode (VSM) is not initialized. The hypervisor or VSM may not be present or enabled. +// +#define ERROR_VSM_NOT_INITIALIZED 4560L + +// +// MessageId: ERROR_VSM_DMA_PROTECTION_NOT_IN_USE +// +// MessageText: +// +// The hypervisor is not protecting DMA because an IOMMU is not present or not enabled in the BIOS. +// +#define ERROR_VSM_DMA_PROTECTION_NOT_IN_USE 4561L + +// +// MessageId: ERROR_VSM_KEY_CI_POLICY_ROLLBACK_DETECTED +// +// MessageText: +// +// The Virtual Secure Mode (VSM) master encryption key was not provisioned due to an inadequate CI policy. +// +#define ERROR_VSM_KEY_CI_POLICY_ROLLBACK_DETECTED 4562L + +// +// MessageId: ERROR_VSMIDK_KEYGEN_FAILURE +// +// MessageText: +// +// RSA identity key generation failed. +// +#define ERROR_VSMIDK_KEYGEN_FAILURE 4563L + +// +// MessageId: ERROR_VSMIDK_EXPORT_FAILURE +// +// MessageText: +// +// Exporting RSA key components failed. +// +#define ERROR_VSMIDK_EXPORT_FAILURE 4564L + +// +// MessageId: ERROR_VSMIDK_MODULUS_MISMATCH +// +// MessageText: +// +// Exported modulus size did not match expected key size. +// +#define ERROR_VSMIDK_MODULUS_MISMATCH 4565L + +/////////////////////////////////////////////////// +// // +// Platform Manifest Error Codes // +// // +// 4570 to 4579 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_PLATFORM_MANIFEST_NOT_AUTHORIZED +// +// MessageText: +// +// The Platform Manifest file was not authorized on this machine. +// +#define ERROR_PLATFORM_MANIFEST_NOT_AUTHORIZED 4570L + +// +// MessageId: ERROR_PLATFORM_MANIFEST_INVALID +// +// MessageText: +// +// The Platform Manifest file was not valid. +// +#define ERROR_PLATFORM_MANIFEST_INVALID 4571L + +// +// MessageId: ERROR_PLATFORM_MANIFEST_FILE_NOT_AUTHORIZED +// +// MessageText: +// +// The file is not authorized on this platform because an entry was not found in the Platform Manifest. +// +#define ERROR_PLATFORM_MANIFEST_FILE_NOT_AUTHORIZED 4572L + +// +// MessageId: ERROR_PLATFORM_MANIFEST_CATALOG_NOT_AUTHORIZED +// +// MessageText: +// +// The catalog is not authorized on this platform because an entry was not found in the Platform Manifest. +// +#define ERROR_PLATFORM_MANIFEST_CATALOG_NOT_AUTHORIZED 4573L + +// +// MessageId: ERROR_PLATFORM_MANIFEST_BINARY_ID_NOT_FOUND +// +// MessageText: +// +// The file is not authorized on this platform because a Binary ID was not found in the embedded signature. +// +#define ERROR_PLATFORM_MANIFEST_BINARY_ID_NOT_FOUND 4574L + +// +// MessageId: ERROR_PLATFORM_MANIFEST_NOT_ACTIVE +// +// MessageText: +// +// No active Platform Manifest exists on this system. +// +#define ERROR_PLATFORM_MANIFEST_NOT_ACTIVE 4575L + +// +// MessageId: ERROR_PLATFORM_MANIFEST_NOT_SIGNED +// +// MessageText: +// +// The Platform Manifest file was not properly signed. +// +#define ERROR_PLATFORM_MANIFEST_NOT_SIGNED 4576L + +/////////////////////////////////////////////////// +// // +// System Integrity Error codes (continued) // +// // +// 4580 to 4589 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_REPUTATION_UNFRIENDLY_FILE +// +// MessageText: +// +// An Application Control policy has blocked this file. Unfriendly file. +// +#define ERROR_SYSTEM_INTEGRITY_REPUTATION_UNFRIENDLY_FILE 4580L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_REPUTATION_UNATTAINABLE +// +// MessageText: +// +// An Application Control policy has blocked this file. Failed to obtain file reputation because an infrastructure issue occurred. Try again later. +// +#define ERROR_SYSTEM_INTEGRITY_REPUTATION_UNATTAINABLE 4581L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_REPUTATION_EXPLICIT_DENY_FILE +// +// MessageText: +// +// An Application Control policy has blocked this file. Explicit denied file. +// +#define ERROR_SYSTEM_INTEGRITY_REPUTATION_EXPLICIT_DENY_FILE 4582L + +// +// MessageId: ERROR_SYSTEM_INTEGRITY_WHQL_NOT_SATISFIED +// +// MessageText: +// +// An Application Control policy has blocked this file. File did not pass WHQL-only requirements. +// +#define ERROR_SYSTEM_INTEGRITY_WHQL_NOT_SATISFIED 4583L + +/////////////////////////////////////////////////// +// // +// Available // +// // +// 4590 to 4599 // +/////////////////////////////////////////////////// + +/////////////////////////////////////////////////// +// // +// Cluster Error codes // +// // +// 5000 to 5999 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_DEPENDENT_RESOURCE_EXISTS +// +// MessageText: +// +// The operation cannot be completed because other resources are dependent on this resource. +// +#define ERROR_DEPENDENT_RESOURCE_EXISTS 5001L + +// +// MessageId: ERROR_DEPENDENCY_NOT_FOUND +// +// MessageText: +// +// The cluster resource dependency cannot be found. +// +#define ERROR_DEPENDENCY_NOT_FOUND 5002L + +// +// MessageId: ERROR_DEPENDENCY_ALREADY_EXISTS +// +// MessageText: +// +// The cluster resource cannot be made dependent on the specified resource because it is already dependent. +// +#define ERROR_DEPENDENCY_ALREADY_EXISTS 5003L + +// +// MessageId: ERROR_RESOURCE_NOT_ONLINE +// +// MessageText: +// +// The cluster resource is not online. +// +#define ERROR_RESOURCE_NOT_ONLINE 5004L + +// +// MessageId: ERROR_HOST_NODE_NOT_AVAILABLE +// +// MessageText: +// +// A cluster node is not available for this operation. +// +#define ERROR_HOST_NODE_NOT_AVAILABLE 5005L + +// +// MessageId: ERROR_RESOURCE_NOT_AVAILABLE +// +// MessageText: +// +// The cluster resource is not available. +// +#define ERROR_RESOURCE_NOT_AVAILABLE 5006L + +// +// MessageId: ERROR_RESOURCE_NOT_FOUND +// +// MessageText: +// +// The cluster resource could not be found. +// +#define ERROR_RESOURCE_NOT_FOUND 5007L + +// +// MessageId: ERROR_SHUTDOWN_CLUSTER +// +// MessageText: +// +// The cluster is being shut down. +// +#define ERROR_SHUTDOWN_CLUSTER 5008L + +// +// MessageId: ERROR_CANT_EVICT_ACTIVE_NODE +// +// MessageText: +// +// A cluster node cannot be evicted from the cluster unless the node is down or it is the last node. +// +#define ERROR_CANT_EVICT_ACTIVE_NODE 5009L + +// +// MessageId: ERROR_OBJECT_ALREADY_EXISTS +// +// MessageText: +// +// The object already exists. +// +#define ERROR_OBJECT_ALREADY_EXISTS 5010L + +// +// MessageId: ERROR_OBJECT_IN_LIST +// +// MessageText: +// +// The object is already in the list. +// +#define ERROR_OBJECT_IN_LIST 5011L + +// +// MessageId: ERROR_GROUP_NOT_AVAILABLE +// +// MessageText: +// +// The cluster group is not available for any new requests. +// +#define ERROR_GROUP_NOT_AVAILABLE 5012L + +// +// MessageId: ERROR_GROUP_NOT_FOUND +// +// MessageText: +// +// The cluster group could not be found. +// +#define ERROR_GROUP_NOT_FOUND 5013L + +// +// MessageId: ERROR_GROUP_NOT_ONLINE +// +// MessageText: +// +// The operation could not be completed because the cluster group is not online. +// +#define ERROR_GROUP_NOT_ONLINE 5014L + +// +// MessageId: ERROR_HOST_NODE_NOT_RESOURCE_OWNER +// +// MessageText: +// +// The operation failed because either the specified cluster node is not the owner of the resource, or the node is not a possible owner of the resource. +// +#define ERROR_HOST_NODE_NOT_RESOURCE_OWNER 5015L + +// +// MessageId: ERROR_HOST_NODE_NOT_GROUP_OWNER +// +// MessageText: +// +// The operation failed because either the specified cluster node is not the owner of the group, or the node is not a possible owner of the group. +// +#define ERROR_HOST_NODE_NOT_GROUP_OWNER 5016L + +// +// MessageId: ERROR_RESMON_CREATE_FAILED +// +// MessageText: +// +// The cluster resource could not be created in the specified resource monitor. +// +#define ERROR_RESMON_CREATE_FAILED 5017L + +// +// MessageId: ERROR_RESMON_ONLINE_FAILED +// +// MessageText: +// +// The cluster resource could not be brought online by the resource monitor. +// +#define ERROR_RESMON_ONLINE_FAILED 5018L + +// +// MessageId: ERROR_RESOURCE_ONLINE +// +// MessageText: +// +// The operation could not be completed because the cluster resource is online. +// +#define ERROR_RESOURCE_ONLINE 5019L + +// +// MessageId: ERROR_QUORUM_RESOURCE +// +// MessageText: +// +// The cluster resource could not be deleted or brought offline because it is the quorum resource. +// +#define ERROR_QUORUM_RESOURCE 5020L + +// +// MessageId: ERROR_NOT_QUORUM_CAPABLE +// +// MessageText: +// +// The cluster could not make the specified resource a quorum resource because it is not capable of being a quorum resource. +// +#define ERROR_NOT_QUORUM_CAPABLE 5021L + +// +// MessageId: ERROR_CLUSTER_SHUTTING_DOWN +// +// MessageText: +// +// The cluster software is shutting down. +// +#define ERROR_CLUSTER_SHUTTING_DOWN 5022L + +// +// MessageId: ERROR_INVALID_STATE +// +// MessageText: +// +// The group or resource is not in the correct state to perform the requested operation. +// +#define ERROR_INVALID_STATE 5023L + +// +// MessageId: ERROR_RESOURCE_PROPERTIES_STORED +// +// MessageText: +// +// The properties were stored but not all changes will take effect until the next time the resource is brought online. +// +#define ERROR_RESOURCE_PROPERTIES_STORED 5024L + +// +// MessageId: ERROR_NOT_QUORUM_CLASS +// +// MessageText: +// +// The cluster could not make the specified resource a quorum resource because it does not belong to a shared storage class. +// +#define ERROR_NOT_QUORUM_CLASS 5025L + +// +// MessageId: ERROR_CORE_RESOURCE +// +// MessageText: +// +// The cluster resource could not be deleted since it is a core resource. +// +#define ERROR_CORE_RESOURCE 5026L + +// +// MessageId: ERROR_QUORUM_RESOURCE_ONLINE_FAILED +// +// MessageText: +// +// The quorum resource failed to come online. +// +#define ERROR_QUORUM_RESOURCE_ONLINE_FAILED 5027L + +// +// MessageId: ERROR_QUORUMLOG_OPEN_FAILED +// +// MessageText: +// +// The quorum log could not be created or mounted successfully. +// +#define ERROR_QUORUMLOG_OPEN_FAILED 5028L + +// +// MessageId: ERROR_CLUSTERLOG_CORRUPT +// +// MessageText: +// +// The cluster log is corrupt. +// +#define ERROR_CLUSTERLOG_CORRUPT 5029L + +// +// MessageId: ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE +// +// MessageText: +// +// The record could not be written to the cluster log since it exceeds the maximum size. +// +#define ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE 5030L + +// +// MessageId: ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE +// +// MessageText: +// +// The cluster log exceeds its maximum size. +// +#define ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE 5031L + +// +// MessageId: ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND +// +// MessageText: +// +// No checkpoint record was found in the cluster log. +// +#define ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND 5032L + +// +// MessageId: ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE +// +// MessageText: +// +// The minimum required disk space needed for logging is not available. +// +#define ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE 5033L + +// +// MessageId: ERROR_QUORUM_OWNER_ALIVE +// +// MessageText: +// +// The cluster node failed to take control of the quorum resource because the resource is owned by another active node. +// +#define ERROR_QUORUM_OWNER_ALIVE 5034L + +// +// MessageId: ERROR_NETWORK_NOT_AVAILABLE +// +// MessageText: +// +// A cluster network is not available for this operation. +// +#define ERROR_NETWORK_NOT_AVAILABLE 5035L + +// +// MessageId: ERROR_NODE_NOT_AVAILABLE +// +// MessageText: +// +// A cluster node is not available for this operation. +// +#define ERROR_NODE_NOT_AVAILABLE 5036L + +// +// MessageId: ERROR_ALL_NODES_NOT_AVAILABLE +// +// MessageText: +// +// All cluster nodes must be running to perform this operation. +// +#define ERROR_ALL_NODES_NOT_AVAILABLE 5037L + +// +// MessageId: ERROR_RESOURCE_FAILED +// +// MessageText: +// +// A cluster resource failed. +// +#define ERROR_RESOURCE_FAILED 5038L + +// +// MessageId: ERROR_CLUSTER_INVALID_NODE +// +// MessageText: +// +// The cluster node is not valid. +// +#define ERROR_CLUSTER_INVALID_NODE 5039L + +// +// MessageId: ERROR_CLUSTER_NODE_EXISTS +// +// MessageText: +// +// The cluster node already exists. +// +#define ERROR_CLUSTER_NODE_EXISTS 5040L + +// +// MessageId: ERROR_CLUSTER_JOIN_IN_PROGRESS +// +// MessageText: +// +// A node is in the process of joining the cluster. +// +#define ERROR_CLUSTER_JOIN_IN_PROGRESS 5041L + +// +// MessageId: ERROR_CLUSTER_NODE_NOT_FOUND +// +// MessageText: +// +// The cluster node was not found. +// +#define ERROR_CLUSTER_NODE_NOT_FOUND 5042L + +// +// MessageId: ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND +// +// MessageText: +// +// The cluster local node information was not found. +// +#define ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND 5043L + +// +// MessageId: ERROR_CLUSTER_NETWORK_EXISTS +// +// MessageText: +// +// The cluster network already exists. +// +#define ERROR_CLUSTER_NETWORK_EXISTS 5044L + +// +// MessageId: ERROR_CLUSTER_NETWORK_NOT_FOUND +// +// MessageText: +// +// The cluster network was not found. +// +#define ERROR_CLUSTER_NETWORK_NOT_FOUND 5045L + +// +// MessageId: ERROR_CLUSTER_NETINTERFACE_EXISTS +// +// MessageText: +// +// The cluster network interface already exists. +// +#define ERROR_CLUSTER_NETINTERFACE_EXISTS 5046L + +// +// MessageId: ERROR_CLUSTER_NETINTERFACE_NOT_FOUND +// +// MessageText: +// +// The cluster network interface was not found. +// +#define ERROR_CLUSTER_NETINTERFACE_NOT_FOUND 5047L + +// +// MessageId: ERROR_CLUSTER_INVALID_REQUEST +// +// MessageText: +// +// The cluster request is not valid for this object. +// +#define ERROR_CLUSTER_INVALID_REQUEST 5048L + +// +// MessageId: ERROR_CLUSTER_INVALID_NETWORK_PROVIDER +// +// MessageText: +// +// The cluster network provider is not valid. +// +#define ERROR_CLUSTER_INVALID_NETWORK_PROVIDER 5049L + +// +// MessageId: ERROR_CLUSTER_NODE_DOWN +// +// MessageText: +// +// The cluster node is down. +// +#define ERROR_CLUSTER_NODE_DOWN 5050L + +// +// MessageId: ERROR_CLUSTER_NODE_UNREACHABLE +// +// MessageText: +// +// The cluster node is not reachable. +// +#define ERROR_CLUSTER_NODE_UNREACHABLE 5051L + +// +// MessageId: ERROR_CLUSTER_NODE_NOT_MEMBER +// +// MessageText: +// +// The cluster node is not a member of the cluster. +// +#define ERROR_CLUSTER_NODE_NOT_MEMBER 5052L + +// +// MessageId: ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS +// +// MessageText: +// +// A cluster join operation is not in progress. +// +#define ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS 5053L + +// +// MessageId: ERROR_CLUSTER_INVALID_NETWORK +// +// MessageText: +// +// The cluster network is not valid. +// +#define ERROR_CLUSTER_INVALID_NETWORK 5054L + +// +// MessageId: ERROR_CLUSTER_NODE_UP +// +// MessageText: +// +// The cluster node is up. +// +#define ERROR_CLUSTER_NODE_UP 5056L + +// +// MessageId: ERROR_CLUSTER_IPADDR_IN_USE +// +// MessageText: +// +// The cluster IP address is already in use. +// +#define ERROR_CLUSTER_IPADDR_IN_USE 5057L + +// +// MessageId: ERROR_CLUSTER_NODE_NOT_PAUSED +// +// MessageText: +// +// The cluster node is not paused. +// +#define ERROR_CLUSTER_NODE_NOT_PAUSED 5058L + +// +// MessageId: ERROR_CLUSTER_NO_SECURITY_CONTEXT +// +// MessageText: +// +// No cluster security context is available. +// +#define ERROR_CLUSTER_NO_SECURITY_CONTEXT 5059L + +// +// MessageId: ERROR_CLUSTER_NETWORK_NOT_INTERNAL +// +// MessageText: +// +// The cluster network is not configured for internal cluster communication. +// +#define ERROR_CLUSTER_NETWORK_NOT_INTERNAL 5060L + +// +// MessageId: ERROR_CLUSTER_NODE_ALREADY_UP +// +// MessageText: +// +// The cluster node is already up. +// +#define ERROR_CLUSTER_NODE_ALREADY_UP 5061L + +// +// MessageId: ERROR_CLUSTER_NODE_ALREADY_DOWN +// +// MessageText: +// +// The cluster node is already down. +// +#define ERROR_CLUSTER_NODE_ALREADY_DOWN 5062L + +// +// MessageId: ERROR_CLUSTER_NETWORK_ALREADY_ONLINE +// +// MessageText: +// +// The cluster network is already online. +// +#define ERROR_CLUSTER_NETWORK_ALREADY_ONLINE 5063L + +// +// MessageId: ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE +// +// MessageText: +// +// The cluster network is already offline. +// +#define ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE 5064L + +// +// MessageId: ERROR_CLUSTER_NODE_ALREADY_MEMBER +// +// MessageText: +// +// The cluster node is already a member of the cluster. +// +#define ERROR_CLUSTER_NODE_ALREADY_MEMBER 5065L + +// +// MessageId: ERROR_CLUSTER_LAST_INTERNAL_NETWORK +// +// MessageText: +// +// The cluster network is the only one configured for internal cluster communication between two or more active cluster nodes. The internal communication capability cannot be removed from the network. +// +#define ERROR_CLUSTER_LAST_INTERNAL_NETWORK 5066L + +// +// MessageId: ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS +// +// MessageText: +// +// One or more cluster resources depend on the network to provide service to clients. The client access capability cannot be removed from the network. +// +#define ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS 5067L + +// +// MessageId: ERROR_INVALID_OPERATION_ON_QUORUM +// +// MessageText: +// +// This operation cannot currently be performed on the cluster group containing the quorum resource. +// +#define ERROR_INVALID_OPERATION_ON_QUORUM 5068L + +// +// MessageId: ERROR_DEPENDENCY_NOT_ALLOWED +// +// MessageText: +// +// The cluster quorum resource is not allowed to have any dependencies. +// +#define ERROR_DEPENDENCY_NOT_ALLOWED 5069L + +// +// MessageId: ERROR_CLUSTER_NODE_PAUSED +// +// MessageText: +// +// The cluster node is paused. +// +#define ERROR_CLUSTER_NODE_PAUSED 5070L + +// +// MessageId: ERROR_NODE_CANT_HOST_RESOURCE +// +// MessageText: +// +// The cluster resource cannot be brought online. The owner node cannot run this resource. +// +#define ERROR_NODE_CANT_HOST_RESOURCE 5071L + +// +// MessageId: ERROR_CLUSTER_NODE_NOT_READY +// +// MessageText: +// +// The cluster node is not ready to perform the requested operation. +// +#define ERROR_CLUSTER_NODE_NOT_READY 5072L + +// +// MessageId: ERROR_CLUSTER_NODE_SHUTTING_DOWN +// +// MessageText: +// +// The cluster node is shutting down. +// +#define ERROR_CLUSTER_NODE_SHUTTING_DOWN 5073L + +// +// MessageId: ERROR_CLUSTER_JOIN_ABORTED +// +// MessageText: +// +// The cluster join operation was aborted. +// +#define ERROR_CLUSTER_JOIN_ABORTED 5074L + +// +// MessageId: ERROR_CLUSTER_INCOMPATIBLE_VERSIONS +// +// MessageText: +// +// The node failed to join the cluster because the joining node and other nodes in the cluster have incompatible operating system versions. To get more information about operating system versions of the cluster, run the Validate a Configuration Wizard or the Test-Cluster Windows PowerShell cmdlet. +// +#define ERROR_CLUSTER_INCOMPATIBLE_VERSIONS 5075L + +// +// MessageId: ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED +// +// MessageText: +// +// This resource cannot be created because the cluster has reached the limit on the number of resources it can monitor. +// +#define ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED 5076L + +// +// MessageId: ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED +// +// MessageText: +// +// The system configuration changed during the cluster join or form operation. The join or form operation was aborted. +// +#define ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED 5077L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND +// +// MessageText: +// +// The specified resource type was not found. +// +#define ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND 5078L + +// +// MessageId: ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED +// +// MessageText: +// +// The specified node does not support a resource of this type. This may be due to version inconsistencies or due to the absence of the resource DLL on this node. +// +#define ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED 5079L + +// +// MessageId: ERROR_CLUSTER_RESNAME_NOT_FOUND +// +// MessageText: +// +// The specified resource name is not supported by this resource DLL. This may be due to a bad (or changed) name supplied to the resource DLL. +// +#define ERROR_CLUSTER_RESNAME_NOT_FOUND 5080L + +// +// MessageId: ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED +// +// MessageText: +// +// No authentication package could be registered with the RPC server. +// +#define ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED 5081L + +// +// MessageId: ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST +// +// MessageText: +// +// You cannot bring the group online because the owner of the group is not in the preferred list for the group. To change the owner node for the group, move the group. +// +#define ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST 5082L + +// +// MessageId: ERROR_CLUSTER_DATABASE_SEQMISMATCH +// +// MessageText: +// +// The join operation failed because the cluster database sequence number has changed or is incompatible with the locker node. This may happen during a join operation if the cluster database was changing during the join. +// +#define ERROR_CLUSTER_DATABASE_SEQMISMATCH 5083L + +// +// MessageId: ERROR_RESMON_INVALID_STATE +// +// MessageText: +// +// The resource monitor will not allow the fail operation to be performed while the resource is in its current state. This may happen if the resource is in a pending state. +// +#define ERROR_RESMON_INVALID_STATE 5084L + +// +// MessageId: ERROR_CLUSTER_GUM_NOT_LOCKER +// +// MessageText: +// +// A non locker code got a request to reserve the lock for making global updates. +// +#define ERROR_CLUSTER_GUM_NOT_LOCKER 5085L + +// +// MessageId: ERROR_QUORUM_DISK_NOT_FOUND +// +// MessageText: +// +// The quorum disk could not be located by the cluster service. +// +#define ERROR_QUORUM_DISK_NOT_FOUND 5086L + +// +// MessageId: ERROR_DATABASE_BACKUP_CORRUPT +// +// MessageText: +// +// The backed up cluster database is possibly corrupt. +// +#define ERROR_DATABASE_BACKUP_CORRUPT 5087L + +// +// MessageId: ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT +// +// MessageText: +// +// A DFS root already exists in this cluster node. +// +#define ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT 5088L + +// +// MessageId: ERROR_RESOURCE_PROPERTY_UNCHANGEABLE +// +// MessageText: +// +// An attempt to modify a resource property failed because it conflicts with another existing property. +// +#define ERROR_RESOURCE_PROPERTY_UNCHANGEABLE 5089L + +// +// MessageId: ERROR_NO_ADMIN_ACCESS_POINT +// +// MessageText: +// +// This operation is not supported on a cluster without an Administrator Access Point. +// +#define ERROR_NO_ADMIN_ACCESS_POINT 5090L + +/* + Should we remove this comment? apperr2.w definitions are used by netapi/netcmd, and is unrelated to winerror. + Original comment: Codes from 4300 through 5889 overlap with codes in ds\published\inc\apperr2.w. + Do not add any more error codes in that range. +*/ +// +// MessageId: ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE +// +// MessageText: +// +// An operation was attempted that is incompatible with the current membership state of the node. +// +#define ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE 5890L + +// +// MessageId: ERROR_CLUSTER_QUORUMLOG_NOT_FOUND +// +// MessageText: +// +// The quorum resource does not contain the quorum log. +// +#define ERROR_CLUSTER_QUORUMLOG_NOT_FOUND 5891L + +// +// MessageId: ERROR_CLUSTER_MEMBERSHIP_HALT +// +// MessageText: +// +// The membership engine requested shutdown of the cluster service on this node. +// +#define ERROR_CLUSTER_MEMBERSHIP_HALT 5892L + +// +// MessageId: ERROR_CLUSTER_INSTANCE_ID_MISMATCH +// +// MessageText: +// +// The join operation failed because the cluster instance ID of the joining node does not match the cluster instance ID of the sponsor node. +// +#define ERROR_CLUSTER_INSTANCE_ID_MISMATCH 5893L + +// +// MessageId: ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP +// +// MessageText: +// +// A matching cluster network for the specified IP address could not be found. +// +#define ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP 5894L + +// +// MessageId: ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH +// +// MessageText: +// +// The actual data type of the property did not match the expected data type of the property. +// +#define ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH 5895L + +// +// MessageId: ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP +// +// MessageText: +// +// The cluster node was evicted from the cluster successfully, but the node was not cleaned up. To determine what cleanup steps failed and how to recover, see the Failover Clustering application event log using Event Viewer. +// +#define ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP 5896L + +// +// MessageId: ERROR_CLUSTER_PARAMETER_MISMATCH +// +// MessageText: +// +// Two or more parameter values specified for a resource's properties are in conflict. +// +#define ERROR_CLUSTER_PARAMETER_MISMATCH 5897L + +// +// MessageId: ERROR_NODE_CANNOT_BE_CLUSTERED +// +// MessageText: +// +// This computer cannot be made a member of a cluster. +// +#define ERROR_NODE_CANNOT_BE_CLUSTERED 5898L + +// +// MessageId: ERROR_CLUSTER_WRONG_OS_VERSION +// +// MessageText: +// +// This computer cannot be made a member of a cluster because it does not have the correct version of Windows installed. +// +#define ERROR_CLUSTER_WRONG_OS_VERSION 5899L + +// +// MessageId: ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME +// +// MessageText: +// +// A cluster cannot be created with the specified cluster name because that cluster name is already in use. Specify a different name for the cluster. +// +#define ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME 5900L + +// +// MessageId: ERROR_CLUSCFG_ALREADY_COMMITTED +// +// MessageText: +// +// The cluster configuration action has already been committed. +// +#define ERROR_CLUSCFG_ALREADY_COMMITTED 5901L + +// +// MessageId: ERROR_CLUSCFG_ROLLBACK_FAILED +// +// MessageText: +// +// The cluster configuration action could not be rolled back. +// +#define ERROR_CLUSCFG_ROLLBACK_FAILED 5902L + +// +// MessageId: ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT +// +// MessageText: +// +// The drive letter assigned to a system disk on one node conflicted with the drive letter assigned to a disk on another node. +// +#define ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT 5903L + +// +// MessageId: ERROR_CLUSTER_OLD_VERSION +// +// MessageText: +// +// One or more nodes in the cluster are running a version of Windows that does not support this operation. +// +#define ERROR_CLUSTER_OLD_VERSION 5904L + +// +// MessageId: ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME +// +// MessageText: +// +// The name of the corresponding computer account doesn't match the Network Name for this resource. +// +#define ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME 5905L + +// +// MessageId: ERROR_CLUSTER_NO_NET_ADAPTERS +// +// MessageText: +// +// No network adapters are available. +// +#define ERROR_CLUSTER_NO_NET_ADAPTERS 5906L + +// +// MessageId: ERROR_CLUSTER_POISONED +// +// MessageText: +// +// The cluster node has been poisoned. +// +#define ERROR_CLUSTER_POISONED 5907L + +// +// MessageId: ERROR_CLUSTER_GROUP_MOVING +// +// MessageText: +// +// The group is unable to accept the request since it is moving to another node. +// +#define ERROR_CLUSTER_GROUP_MOVING 5908L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_TYPE_BUSY +// +// MessageText: +// +// The resource type cannot accept the request since is too busy performing another operation. +// +#define ERROR_CLUSTER_RESOURCE_TYPE_BUSY 5909L + +// +// MessageId: ERROR_RESOURCE_CALL_TIMED_OUT +// +// MessageText: +// +// The call to the cluster resource DLL timed out. +// +#define ERROR_RESOURCE_CALL_TIMED_OUT 5910L + +// +// MessageId: ERROR_INVALID_CLUSTER_IPV6_ADDRESS +// +// MessageText: +// +// The address is not valid for an IPv6 Address resource. A global IPv6 address is required, and it must match a cluster network. Compatibility addresses are not permitted. +// +#define ERROR_INVALID_CLUSTER_IPV6_ADDRESS 5911L + +// +// MessageId: ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION +// +// MessageText: +// +// An internal cluster error occurred. A call to an invalid function was attempted. +// +#define ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION 5912L + +// +// MessageId: ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS +// +// MessageText: +// +// A parameter value is out of acceptable range. +// +#define ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS 5913L + +// +// MessageId: ERROR_CLUSTER_PARTIAL_SEND +// +// MessageText: +// +// A network error occurred while sending data to another node in the cluster. The number of bytes transmitted was less than required. +// +#define ERROR_CLUSTER_PARTIAL_SEND 5914L + +// +// MessageId: ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION +// +// MessageText: +// +// An invalid cluster registry operation was attempted. +// +#define ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION 5915L + +// +// MessageId: ERROR_CLUSTER_INVALID_STRING_TERMINATION +// +// MessageText: +// +// An input string of characters is not properly terminated. +// +#define ERROR_CLUSTER_INVALID_STRING_TERMINATION 5916L + +// +// MessageId: ERROR_CLUSTER_INVALID_STRING_FORMAT +// +// MessageText: +// +// An input string of characters is not in a valid format for the data it represents. +// +#define ERROR_CLUSTER_INVALID_STRING_FORMAT 5917L + +// +// MessageId: ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS +// +// MessageText: +// +// An internal cluster error occurred. A cluster database transaction was attempted while a transaction was already in progress. +// +#define ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS 5918L + +// +// MessageId: ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS +// +// MessageText: +// +// An internal cluster error occurred. There was an attempt to commit a cluster database transaction while no transaction was in progress. +// +#define ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS 5919L + +// +// MessageId: ERROR_CLUSTER_NULL_DATA +// +// MessageText: +// +// An internal cluster error occurred. Data was not properly initialized. +// +#define ERROR_CLUSTER_NULL_DATA 5920L + +// +// MessageId: ERROR_CLUSTER_PARTIAL_READ +// +// MessageText: +// +// An error occurred while reading from a stream of data. An unexpected number of bytes was returned. +// +#define ERROR_CLUSTER_PARTIAL_READ 5921L + +// +// MessageId: ERROR_CLUSTER_PARTIAL_WRITE +// +// MessageText: +// +// An error occurred while writing to a stream of data. The required number of bytes could not be written. +// +#define ERROR_CLUSTER_PARTIAL_WRITE 5922L + +// +// MessageId: ERROR_CLUSTER_CANT_DESERIALIZE_DATA +// +// MessageText: +// +// An error occurred while deserializing a stream of cluster data. +// +#define ERROR_CLUSTER_CANT_DESERIALIZE_DATA 5923L + +// +// MessageId: ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT +// +// MessageText: +// +// One or more property values for this resource are in conflict with one or more property values associated with its dependent resource(s). +// +#define ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT 5924L + +// +// MessageId: ERROR_CLUSTER_NO_QUORUM +// +// MessageText: +// +// A quorum of cluster nodes was not present to form a cluster. +// +#define ERROR_CLUSTER_NO_QUORUM 5925L + +// +// MessageId: ERROR_CLUSTER_INVALID_IPV6_NETWORK +// +// MessageText: +// +// The cluster network is not valid for an IPv6 Address resource, or it does not match the configured address. +// +#define ERROR_CLUSTER_INVALID_IPV6_NETWORK 5926L + +// +// MessageId: ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK +// +// MessageText: +// +// The cluster network is not valid for an IPv6 Tunnel resource. Check the configuration of the IP Address resource on which the IPv6 Tunnel resource depends. +// +#define ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK 5927L + +// +// MessageId: ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP +// +// MessageText: +// +// Quorum resource cannot reside in the Available Storage group. +// +#define ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP 5928L + +// +// MessageId: ERROR_DEPENDENCY_TREE_TOO_COMPLEX +// +// MessageText: +// +// The dependencies for this resource are nested too deeply. +// +#define ERROR_DEPENDENCY_TREE_TOO_COMPLEX 5929L + +// +// MessageId: ERROR_EXCEPTION_IN_RESOURCE_CALL +// +// MessageText: +// +// The call into the resource DLL raised an unhandled exception. +// +#define ERROR_EXCEPTION_IN_RESOURCE_CALL 5930L + +// +// MessageId: ERROR_CLUSTER_RHS_FAILED_INITIALIZATION +// +// MessageText: +// +// The RHS process failed to initialize. +// +#define ERROR_CLUSTER_RHS_FAILED_INITIALIZATION 5931L + +// +// MessageId: ERROR_CLUSTER_NOT_INSTALLED +// +// MessageText: +// +// The Failover Clustering feature is not installed on this node. +// +#define ERROR_CLUSTER_NOT_INSTALLED 5932L + +// +// MessageId: ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE +// +// MessageText: +// +// The resources must be online on the same node for this operation +// +#define ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE 5933L + +// +// MessageId: ERROR_CLUSTER_MAX_NODES_IN_CLUSTER +// +// MessageText: +// +// A new node can not be added since this cluster is already at its maximum number of nodes. +// +#define ERROR_CLUSTER_MAX_NODES_IN_CLUSTER 5934L + +// +// MessageId: ERROR_CLUSTER_TOO_MANY_NODES +// +// MessageText: +// +// This cluster can not be created since the specified number of nodes exceeds the maximum allowed limit. +// +#define ERROR_CLUSTER_TOO_MANY_NODES 5935L + +// +// MessageId: ERROR_CLUSTER_OBJECT_ALREADY_USED +// +// MessageText: +// +// An attempt to use the specified cluster name failed because an enabled computer object with the given name already exists in the domain. +// +#define ERROR_CLUSTER_OBJECT_ALREADY_USED 5936L + +// +// MessageId: ERROR_NONCORE_GROUPS_FOUND +// +// MessageText: +// +// This cluster cannot be destroyed. It has non-core application groups which must be deleted before the cluster can be destroyed. +// +#define ERROR_NONCORE_GROUPS_FOUND 5937L + +// +// MessageId: ERROR_FILE_SHARE_RESOURCE_CONFLICT +// +// MessageText: +// +// File share associated with file share witness resource cannot be hosted by this cluster or any of its nodes. +// +#define ERROR_FILE_SHARE_RESOURCE_CONFLICT 5938L + +// +// MessageId: ERROR_CLUSTER_EVICT_INVALID_REQUEST +// +// MessageText: +// +// Eviction of this node is invalid at this time. Due to quorum requirements node eviction will result in cluster shutdown. +// If it is the last node in the cluster, destroy cluster command should be used. +// +#define ERROR_CLUSTER_EVICT_INVALID_REQUEST 5939L + +// +// MessageId: ERROR_CLUSTER_SINGLETON_RESOURCE +// +// MessageText: +// +// Only one instance of this resource type is allowed in the cluster. +// +#define ERROR_CLUSTER_SINGLETON_RESOURCE 5940L + +// +// MessageId: ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE +// +// MessageText: +// +// Only one instance of this resource type is allowed per resource group. +// +#define ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE 5941L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED +// +// MessageText: +// +// The resource failed to come online due to the failure of one or more provider resources. +// +#define ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED 5942L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR +// +// MessageText: +// +// The resource has indicated that it cannot come online on any node. +// +#define ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR 5943L + +// +// MessageId: ERROR_CLUSTER_GROUP_BUSY +// +// MessageText: +// +// The current operation cannot be performed on this group at this time. +// +#define ERROR_CLUSTER_GROUP_BUSY 5944L + +// +// MessageId: ERROR_CLUSTER_NOT_SHARED_VOLUME +// +// MessageText: +// +// The directory or file is not located on a cluster shared volume. +// +#define ERROR_CLUSTER_NOT_SHARED_VOLUME 5945L + +// +// MessageId: ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR +// +// MessageText: +// +// The Security Descriptor does not meet the requirements for a cluster. +// +#define ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR 5946L + +// +// MessageId: ERROR_CLUSTER_SHARED_VOLUMES_IN_USE +// +// MessageText: +// +// There is one or more shared volumes resources configured in the cluster. +// Those resources must be moved to available storage in order for operation to succeed. +// +#define ERROR_CLUSTER_SHARED_VOLUMES_IN_USE 5947L + +// +// MessageId: ERROR_CLUSTER_USE_SHARED_VOLUMES_API +// +// MessageText: +// +// This group or resource cannot be directly manipulated. +// Use shared volume APIs to perform desired operation. +// +#define ERROR_CLUSTER_USE_SHARED_VOLUMES_API 5948L + +// +// MessageId: ERROR_CLUSTER_BACKUP_IN_PROGRESS +// +// MessageText: +// +// Back up is in progress. Please wait for backup completion before trying this operation again. +// +#define ERROR_CLUSTER_BACKUP_IN_PROGRESS 5949L + +// +// MessageId: ERROR_NON_CSV_PATH +// +// MessageText: +// +// The path does not belong to a cluster shared volume. +// +#define ERROR_NON_CSV_PATH 5950L + +// +// MessageId: ERROR_CSV_VOLUME_NOT_LOCAL +// +// MessageText: +// +// The cluster shared volume is not locally mounted on this node. +// +#define ERROR_CSV_VOLUME_NOT_LOCAL 5951L + +// +// MessageId: ERROR_CLUSTER_WATCHDOG_TERMINATING +// +// MessageText: +// +// The cluster watchdog is terminating. +// +#define ERROR_CLUSTER_WATCHDOG_TERMINATING 5952L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_VETOED_MOVE_INCOMPATIBLE_NODES +// +// MessageText: +// +// A resource vetoed a move between two nodes because they are incompatible. +// +#define ERROR_CLUSTER_RESOURCE_VETOED_MOVE_INCOMPATIBLE_NODES 5953L + +// +// MessageId: ERROR_CLUSTER_INVALID_NODE_WEIGHT +// +// MessageText: +// +// The request is invalid either because node weight cannot be changed while the cluster is in disk-only quorum mode, or because changing the node weight would violate the minimum cluster quorum requirements. +// +#define ERROR_CLUSTER_INVALID_NODE_WEIGHT 5954L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_VETOED_CALL +// +// MessageText: +// +// The resource vetoed the call. +// +#define ERROR_CLUSTER_RESOURCE_VETOED_CALL 5955L + +// +// MessageId: ERROR_RESMON_SYSTEM_RESOURCES_LACKING +// +// MessageText: +// +// Resource could not start or run because it could not reserve sufficient system resources. +// +#define ERROR_RESMON_SYSTEM_RESOURCES_LACKING 5956L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_DESTINATION +// +// MessageText: +// +// A resource vetoed a move between two nodes because the destination currently does not have enough resources to complete the operation. +// +#define ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_DESTINATION 5957L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_SOURCE +// +// MessageText: +// +// +// A resource vetoed a move between two nodes because the source currently does not have enough resources to complete the operation. +// +#define ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_SOURCE 5958L + +// +// MessageId: ERROR_CLUSTER_GROUP_QUEUED +// +// MessageText: +// +// +// The requested operation can not be completed because the group is queued for an operation. +// +#define ERROR_CLUSTER_GROUP_QUEUED 5959L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_LOCKED_STATUS +// +// MessageText: +// +// +// The requested operation can not be completed because a resource has locked status. +// +#define ERROR_CLUSTER_RESOURCE_LOCKED_STATUS 5960L + +// +// MessageId: ERROR_CLUSTER_SHARED_VOLUME_FAILOVER_NOT_ALLOWED +// +// MessageText: +// +// +// The resource cannot move to another node because a cluster shared volume vetoed the operation. +// +#define ERROR_CLUSTER_SHARED_VOLUME_FAILOVER_NOT_ALLOWED 5961L + +// +// MessageId: ERROR_CLUSTER_NODE_DRAIN_IN_PROGRESS +// +// MessageText: +// +// +// A node drain is already in progress. +// +#define ERROR_CLUSTER_NODE_DRAIN_IN_PROGRESS 5962L + +// +// MessageId: ERROR_CLUSTER_DISK_NOT_CONNECTED +// +// MessageText: +// +// +// Clustered storage is not connected to the node. +// +#define ERROR_CLUSTER_DISK_NOT_CONNECTED 5963L + +// +// MessageId: ERROR_DISK_NOT_CSV_CAPABLE +// +// MessageText: +// +// +// The disk is not configured in a way to be used with CSV. CSV disks must have at least one partition that is formatted with NTFS or REFS. +// +#define ERROR_DISK_NOT_CSV_CAPABLE 5964L + +// +// MessageId: ERROR_RESOURCE_NOT_IN_AVAILABLE_STORAGE +// +// MessageText: +// +// +// The resource must be part of the Available Storage group to complete this action. +// +#define ERROR_RESOURCE_NOT_IN_AVAILABLE_STORAGE 5965L + +// +// MessageId: ERROR_CLUSTER_SHARED_VOLUME_REDIRECTED +// +// MessageText: +// +// +// CSVFS failed operation as volume is in redirected mode. +// +#define ERROR_CLUSTER_SHARED_VOLUME_REDIRECTED 5966L + +// +// MessageId: ERROR_CLUSTER_SHARED_VOLUME_NOT_REDIRECTED +// +// MessageText: +// +// +// CSVFS failed operation as volume is not in redirected mode. +// +#define ERROR_CLUSTER_SHARED_VOLUME_NOT_REDIRECTED 5967L + +// +// MessageId: ERROR_CLUSTER_CANNOT_RETURN_PROPERTIES +// +// MessageText: +// +// +// Cluster properties cannot be returned at this time. +// +#define ERROR_CLUSTER_CANNOT_RETURN_PROPERTIES 5968L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_CONTAINS_UNSUPPORTED_DIFF_AREA_FOR_SHARED_VOLUMES +// +// MessageText: +// +// +// The clustered disk resource contains software snapshot diff area that are not supported for Cluster Shared Volumes. +// +#define ERROR_CLUSTER_RESOURCE_CONTAINS_UNSUPPORTED_DIFF_AREA_FOR_SHARED_VOLUMES 5969L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_IS_IN_MAINTENANCE_MODE +// +// MessageText: +// +// +// The operation cannot be completed because the resource is in maintenance mode. +// +#define ERROR_CLUSTER_RESOURCE_IS_IN_MAINTENANCE_MODE 5970L + +// +// MessageId: ERROR_CLUSTER_AFFINITY_CONFLICT +// +// MessageText: +// +// +// The operation cannot be completed because of cluster affinity conflicts +// +#define ERROR_CLUSTER_AFFINITY_CONFLICT 5971L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_IS_REPLICA_VIRTUAL_MACHINE +// +// MessageText: +// +// +// The operation cannot be completed because the resource is a replica virtual machine. +// +#define ERROR_CLUSTER_RESOURCE_IS_REPLICA_VIRTUAL_MACHINE 5972L + +// +// MessageId: ERROR_CLUSTER_UPGRADE_INCOMPATIBLE_VERSIONS +// +// MessageText: +// +// +// The Cluster Functional Level could not be increased because not all nodes in the cluster support the updated version. +// +#define ERROR_CLUSTER_UPGRADE_INCOMPATIBLE_VERSIONS 5973L + +// +// MessageId: ERROR_CLUSTER_UPGRADE_FIX_QUORUM_NOT_SUPPORTED +// +// MessageText: +// +// +// Updating the cluster functional level failed because the cluster is running in fix quorum mode. +// Start additional nodes which are members of the cluster until the cluster reaches quorum and the cluster will automatically +// switch out of fix quorum mode, or stop and restart the cluster without the FixQuorum switch. Once the cluster is out +// of fix quorum mode retry the Update-ClusterFunctionalLevel PowerShell cmdlet to update the cluster functional level. +// +#define ERROR_CLUSTER_UPGRADE_FIX_QUORUM_NOT_SUPPORTED 5974L + +// +// MessageId: ERROR_CLUSTER_UPGRADE_RESTART_REQUIRED +// +// MessageText: +// +// +// The cluster functional level has been successfully updated but not all features are available yet. Restart the cluster by +// using the Stop-Cluster PowerShell cmdlet followed by the Start-Cluster PowerShell cmdlet and all cluster features will +// be available. +// +#define ERROR_CLUSTER_UPGRADE_RESTART_REQUIRED 5975L + +// +// MessageId: ERROR_CLUSTER_UPGRADE_IN_PROGRESS +// +// MessageText: +// +// +// The cluster is currently performing a version upgrade. +// +#define ERROR_CLUSTER_UPGRADE_IN_PROGRESS 5976L + +// +// MessageId: ERROR_CLUSTER_UPGRADE_INCOMPLETE +// +// MessageText: +// +// +// The cluster did not successfully complete the version upgrade. +// +#define ERROR_CLUSTER_UPGRADE_INCOMPLETE 5977L + +// +// MessageId: ERROR_CLUSTER_NODE_IN_GRACE_PERIOD +// +// MessageText: +// +// +// The cluster node is in grace period. +// +#define ERROR_CLUSTER_NODE_IN_GRACE_PERIOD 5978L + +// +// MessageId: ERROR_CLUSTER_CSV_IO_PAUSE_TIMEOUT +// +// MessageText: +// +// +// The operation has failed because CSV volume was not able to recover in time specified on this file object. +// +#define ERROR_CLUSTER_CSV_IO_PAUSE_TIMEOUT 5979L + +// +// MessageId: ERROR_NODE_NOT_ACTIVE_CLUSTER_MEMBER +// +// MessageText: +// +// +// The operation failed because the requested node is not currently part of active cluster membership. +// +#define ERROR_NODE_NOT_ACTIVE_CLUSTER_MEMBER 5980L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_NOT_MONITORED +// +// MessageText: +// +// +// The operation failed because the requested cluster resource is currently unmonitored. +// +#define ERROR_CLUSTER_RESOURCE_NOT_MONITORED 5981L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_DOES_NOT_SUPPORT_UNMONITORED +// +// MessageText: +// +// +// The operation failed because a resource does not support running in an unmonitored state. +// +#define ERROR_CLUSTER_RESOURCE_DOES_NOT_SUPPORT_UNMONITORED 5982L + +// +// MessageId: ERROR_CLUSTER_RESOURCE_IS_REPLICATED +// +// MessageText: +// +// +// The operation cannot be completed because a resource participates in replication. +// +#define ERROR_CLUSTER_RESOURCE_IS_REPLICATED 5983L + +// +// MessageId: ERROR_CLUSTER_NODE_ISOLATED +// +// MessageText: +// +// +// The operation failed because the requested cluster node has been isolated +// +#define ERROR_CLUSTER_NODE_ISOLATED 5984L + +// +// MessageId: ERROR_CLUSTER_NODE_QUARANTINED +// +// MessageText: +// +// +// The operation failed because the requested cluster node has been quarantined +// +#define ERROR_CLUSTER_NODE_QUARANTINED 5985L + +// +// MessageId: ERROR_CLUSTER_DATABASE_UPDATE_CONDITION_FAILED +// +// MessageText: +// +// +// The operation failed because the specified database update condition was not met +// +#define ERROR_CLUSTER_DATABASE_UPDATE_CONDITION_FAILED 5986L + +// +// MessageId: ERROR_CLUSTER_SPACE_DEGRADED +// +// MessageText: +// +// +// A clustered space is in a degraded condition and the requested action cannot be completed at this time. +// +#define ERROR_CLUSTER_SPACE_DEGRADED 5987L + +// +// MessageId: ERROR_CLUSTER_TOKEN_DELEGATION_NOT_SUPPORTED +// +// MessageText: +// +// +// The operation failed because token delegation for this control is not supported. +// +#define ERROR_CLUSTER_TOKEN_DELEGATION_NOT_SUPPORTED 5988L + +// +// MessageId: ERROR_CLUSTER_CSV_INVALID_HANDLE +// +// MessageText: +// +// +// The operation has failed because CSV has invalidated this file object. +// +#define ERROR_CLUSTER_CSV_INVALID_HANDLE 5989L + +// +// MessageId: ERROR_CLUSTER_CSV_SUPPORTED_ONLY_ON_COORDINATOR +// +// MessageText: +// +// +// This operation is supported only on the CSV coordinator node. +// +#define ERROR_CLUSTER_CSV_SUPPORTED_ONLY_ON_COORDINATOR 5990L + +// +// MessageId: ERROR_GROUPSET_NOT_AVAILABLE +// +// MessageText: +// +// +// The cluster group set is not available for any further requests. +// +#define ERROR_GROUPSET_NOT_AVAILABLE 5991L + +// +// MessageId: ERROR_GROUPSET_NOT_FOUND +// +// MessageText: +// +// +// The cluster group set could not be found. +// +#define ERROR_GROUPSET_NOT_FOUND 5992L + +// +// MessageId: ERROR_GROUPSET_CANT_PROVIDE +// +// MessageText: +// +// +// The action cannot be completed at this time because the cluster group set would fall below quorum and not be able to act as a provider. +// +#define ERROR_GROUPSET_CANT_PROVIDE 5993L + +// +// MessageId: ERROR_CLUSTER_FAULT_DOMAIN_PARENT_NOT_FOUND +// +// MessageText: +// +// +// The specified parent fault domain is not found. +// +#define ERROR_CLUSTER_FAULT_DOMAIN_PARENT_NOT_FOUND 5994L + +// +// MessageId: ERROR_CLUSTER_FAULT_DOMAIN_INVALID_HIERARCHY +// +// MessageText: +// +// +// The fault domain cannot be a child of the parent specified. +// +#define ERROR_CLUSTER_FAULT_DOMAIN_INVALID_HIERARCHY 5995L + +// +// MessageId: ERROR_CLUSTER_FAULT_DOMAIN_FAILED_S2D_VALIDATION +// +// MessageText: +// +// +// Storage Spaces Direct has rejected the proposed fault domain changes because it impacts the fault tolerance of the storage. +// +#define ERROR_CLUSTER_FAULT_DOMAIN_FAILED_S2D_VALIDATION 5996L + +// +// MessageId: ERROR_CLUSTER_FAULT_DOMAIN_S2D_CONNECTIVITY_LOSS +// +// MessageText: +// +// +// Storage Spaces Direct has rejected the proposed fault domain changes because it reduces the storage connected to the system. +// +#define ERROR_CLUSTER_FAULT_DOMAIN_S2D_CONNECTIVITY_LOSS 5997L + +// +// MessageId: ERROR_CLUSTER_INVALID_INFRASTRUCTURE_FILESERVER_NAME +// +// MessageText: +// +// +// Cluster infrastructure file server creation failed because a valid non-empty file server name was not provided. +// +#define ERROR_CLUSTER_INVALID_INFRASTRUCTURE_FILESERVER_NAME 5998L + +// +// MessageId: ERROR_CLUSTERSET_MANAGEMENT_CLUSTER_UNREACHABLE +// +// MessageText: +// +// +// The action cannot be completed because the cluster set management cluster is unreachable. +// +#define ERROR_CLUSTERSET_MANAGEMENT_CLUSTER_UNREACHABLE 5999L + +// Cluster error codes continue at 6250 + +/////////////////////////////////////////////////// +// // +// EFS Error codes // +// // +// 6000 to 6099 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_ENCRYPTION_FAILED +// +// MessageText: +// +// The specified file could not be encrypted. +// +#define ERROR_ENCRYPTION_FAILED 6000L + +// +// MessageId: ERROR_DECRYPTION_FAILED +// +// MessageText: +// +// The specified file could not be decrypted. +// +#define ERROR_DECRYPTION_FAILED 6001L + +// +// MessageId: ERROR_FILE_ENCRYPTED +// +// MessageText: +// +// The specified file is encrypted and the user does not have the ability to decrypt it. +// +#define ERROR_FILE_ENCRYPTED 6002L + +// +// MessageId: ERROR_NO_RECOVERY_POLICY +// +// MessageText: +// +// There is no valid encryption recovery policy configured for this system. +// +#define ERROR_NO_RECOVERY_POLICY 6003L + +// +// MessageId: ERROR_NO_EFS +// +// MessageText: +// +// The required encryption driver is not loaded for this system. +// +#define ERROR_NO_EFS 6004L + +// +// MessageId: ERROR_WRONG_EFS +// +// MessageText: +// +// The file was encrypted with a different encryption driver than is currently loaded. +// +#define ERROR_WRONG_EFS 6005L + +// +// MessageId: ERROR_NO_USER_KEYS +// +// MessageText: +// +// There are no EFS keys defined for the user. +// +#define ERROR_NO_USER_KEYS 6006L + +// +// MessageId: ERROR_FILE_NOT_ENCRYPTED +// +// MessageText: +// +// The specified file is not encrypted. +// +#define ERROR_FILE_NOT_ENCRYPTED 6007L + +// +// MessageId: ERROR_NOT_EXPORT_FORMAT +// +// MessageText: +// +// The specified file is not in the defined EFS export format. +// +#define ERROR_NOT_EXPORT_FORMAT 6008L + +// +// MessageId: ERROR_FILE_READ_ONLY +// +// MessageText: +// +// The specified file is read only. +// +#define ERROR_FILE_READ_ONLY 6009L + +// +// MessageId: ERROR_DIR_EFS_DISALLOWED +// +// MessageText: +// +// The directory has been disabled for encryption. +// +#define ERROR_DIR_EFS_DISALLOWED 6010L + +// +// MessageId: ERROR_EFS_SERVER_NOT_TRUSTED +// +// MessageText: +// +// The server is not trusted for remote encryption operation. +// +#define ERROR_EFS_SERVER_NOT_TRUSTED 6011L + +// +// MessageId: ERROR_BAD_RECOVERY_POLICY +// +// MessageText: +// +// Recovery policy configured for this system contains invalid recovery certificate. +// +#define ERROR_BAD_RECOVERY_POLICY 6012L + +// +// MessageId: ERROR_EFS_ALG_BLOB_TOO_BIG +// +// MessageText: +// +// The encryption algorithm used on the source file needs a bigger key buffer than the one on the destination file. +// +#define ERROR_EFS_ALG_BLOB_TOO_BIG 6013L + +// +// MessageId: ERROR_VOLUME_NOT_SUPPORT_EFS +// +// MessageText: +// +// The disk partition does not support file encryption. +// +#define ERROR_VOLUME_NOT_SUPPORT_EFS 6014L + +// +// MessageId: ERROR_EFS_DISABLED +// +// MessageText: +// +// This machine is disabled for file encryption. +// +#define ERROR_EFS_DISABLED 6015L + +// +// MessageId: ERROR_EFS_VERSION_NOT_SUPPORT +// +// MessageText: +// +// A newer system is required to decrypt this encrypted file. +// +#define ERROR_EFS_VERSION_NOT_SUPPORT 6016L + +// +// MessageId: ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE +// +// MessageText: +// +// The remote server sent an invalid response for a file being opened with Client Side Encryption. +// +#define ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE 6017L + +// +// MessageId: ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER +// +// MessageText: +// +// Client Side Encryption is not supported by the remote server even though it claims to support it. +// +#define ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER 6018L + +// +// MessageId: ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE +// +// MessageText: +// +// File is encrypted and should be opened in Client Side Encryption mode. +// +#define ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE 6019L + +// +// MessageId: ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE +// +// MessageText: +// +// A new encrypted file is being created and a $EFS needs to be provided. +// +#define ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE 6020L + +// +// MessageId: ERROR_CS_ENCRYPTION_FILE_NOT_CSE +// +// MessageText: +// +// The SMB client requested a CSE FSCTL on a non-CSE file. +// +#define ERROR_CS_ENCRYPTION_FILE_NOT_CSE 6021L + +// +// MessageId: ERROR_ENCRYPTION_POLICY_DENIES_OPERATION +// +// MessageText: +// +// The requested operation was blocked by policy. For more information, contact your system administrator. +// +#define ERROR_ENCRYPTION_POLICY_DENIES_OPERATION 6022L + +// +// MessageId: ERROR_WIP_ENCRYPTION_FAILED +// +// MessageText: +// +// The specified file could not be encrypted with Windows Information Protection. +// +#define ERROR_WIP_ENCRYPTION_FAILED 6023L + +// +// MessageId: ERROR_PDE_ENCRYPTION_UNAVAILABLE_FAILURE +// +// MessageText: +// +// Personal Data Encryption keys to encrypt data are currently unavailable due to a failure. +// +#define ERROR_PDE_ENCRYPTION_UNAVAILABLE_FAILURE 6024L + +// +// MessageId: ERROR_PDE_DECRYPTION_UNAVAILABLE_FAILURE +// +// MessageText: +// +// Personal Data Encryption keys to decrypt data are currently unavailable due to a failure. +// +#define ERROR_PDE_DECRYPTION_UNAVAILABLE_FAILURE 6025L + +// +// MessageId: ERROR_PDE_DECRYPTION_UNAVAILABLE +// +// MessageText: +// +// Personal Data Encryption keys to decrypt data are currently unavailable as the user's session is locked. +// +#define ERROR_PDE_DECRYPTION_UNAVAILABLE 6026L + + +/////////////////////////////////////////////////// +// // +// BROWSER Error codes // +// // +// 6100 to 6199 // +/////////////////////////////////////////////////// + +// This message number is for historical purposes and cannot be changed or re-used. +// +// MessageId: ERROR_NO_BROWSER_SERVERS_FOUND +// +// MessageText: +// +// The list of servers for this workgroup is not currently available +// +#define ERROR_NO_BROWSER_SERVERS_FOUND 6118L + + +/////////////////////////////////////////////////// +// // +// Task Scheduler Error codes // +// NET START must understand // +// // +// 6200 to 6249 // +/////////////////////////////////////////////////// + +// +// MessageId: SCHED_E_SERVICE_NOT_LOCALSYSTEM +// +// MessageText: +// +// The Task Scheduler service must be configured to run in the System account to function properly. Individual tasks may be configured to run in other accounts. +// +#define SCHED_E_SERVICE_NOT_LOCALSYSTEM 6200L + + +/////////////////////////////////////////////////// +// // +// Cluster Error codes // +// // +// 6250 to 6349 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_CLUSTER_OBJECT_IS_CLUSTER_SET_VM +// +// MessageText: +// +// +// The object cannot be deleted from the local cluster because it is registered with the cluster set. +// +#define ERROR_CLUSTER_OBJECT_IS_CLUSTER_SET_VM 6250L + +// Cluster native update specific error codes +// +// MessageId: ERROR_CNU_TEMPLATE_ALREADY_EXISTS +// +// MessageText: +// +// A cluster native update template with that name already exists. +// +#define ERROR_CNU_TEMPLATE_ALREADY_EXISTS 6251L + +// +// MessageId: ERROR_CNU_TEMPLATE_NAME_NOT_FOUND +// +// MessageText: +// +// A cluster native update template with that name was not found. +// +#define ERROR_CNU_TEMPLATE_NAME_NOT_FOUND 6252L + +// +// MessageId: ERROR_CNU_RUN_NAME_NOT_FOUND +// +// MessageText: +// +// A cluster native update run with the specified name was not found. +// +#define ERROR_CNU_RUN_NAME_NOT_FOUND 6253L + +// +// MessageId: ERROR_CNU_RUN_ALREADY_IN_PROGRESS +// +// MessageText: +// +// A cluster native update run is already in progress on the cluster. +// +#define ERROR_CNU_RUN_ALREADY_IN_PROGRESS 6254L + +// +// MessageId: ERROR_CNU_RUN_NOT_IN_PROGRESS +// +// MessageText: +// +// There is currently no ongoing cluster native update run on the cluster. +// +#define ERROR_CNU_RUN_NOT_IN_PROGRESS 6255L + +// +// MessageId: ERROR_CNU_NOT_READY +// +// MessageText: +// +// Cluster native update not ready - run Enable-ClusterNativeUpdate to load. +// +#define ERROR_CNU_NOT_READY 6256L + + +/////////////////////////////////////////////////// +// // +// Camera Error codes // +// // +// 6350 to 6399 // +/////////////////////////////////////////////////// + +#define E_CAMERA_ERROR_MIN HRESULT_FROM_WIN32(6350) +#define E_CAMERA_ERROR_MAX HRESULT_FROM_WIN32(6399) +#define IS_CAMERA_ERROR_CODE(xhr) ((xhr) >= E_CAMERA_ERROR_MIN && (xhr) <= E_CAMERA_ERROR_MAX) +// +// MessageId: ERROR_CAMERA_INVALID_CONFIGURATION +// +// MessageText: +// +// A camera's configuration contains some invalid settings. +// +#define ERROR_CAMERA_INVALID_CONFIGURATION 6350L + +// +// MessageId: ERROR_CAMERA_INSUFFICIENT_BANDWIDTH +// +// MessageText: +// +// A camera interface doesn't have the desired bandwidth for data transfer. +// +#define ERROR_CAMERA_INSUFFICIENT_BANDWIDTH 6351L + + +/////////////////////////////////////////////////// +// // +// Available // +// // +// 6400 to 6599 // +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// // +// Common Log (CLFS) Error codes // +// // +// 6600 to 6699 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_LOG_SECTOR_INVALID +// +// MessageText: +// +// Log service encountered an invalid log sector. +// +#define ERROR_LOG_SECTOR_INVALID 6600L + +// +// MessageId: ERROR_LOG_SECTOR_PARITY_INVALID +// +// MessageText: +// +// Log service encountered a log sector with invalid block parity. +// +#define ERROR_LOG_SECTOR_PARITY_INVALID 6601L + +// +// MessageId: ERROR_LOG_SECTOR_REMAPPED +// +// MessageText: +// +// Log service encountered a remapped log sector. +// +#define ERROR_LOG_SECTOR_REMAPPED 6602L + +// +// MessageId: ERROR_LOG_BLOCK_INCOMPLETE +// +// MessageText: +// +// Log service encountered a partial or incomplete log block. +// +#define ERROR_LOG_BLOCK_INCOMPLETE 6603L + +// +// MessageId: ERROR_LOG_INVALID_RANGE +// +// MessageText: +// +// Log service encountered an attempt access data outside the active log range. +// +#define ERROR_LOG_INVALID_RANGE 6604L + +// +// MessageId: ERROR_LOG_BLOCKS_EXHAUSTED +// +// MessageText: +// +// Log service user marshalling buffers are exhausted. +// +#define ERROR_LOG_BLOCKS_EXHAUSTED 6605L + +// +// MessageId: ERROR_LOG_READ_CONTEXT_INVALID +// +// MessageText: +// +// Log service encountered an attempt read from a marshalling area with an invalid read context. +// +#define ERROR_LOG_READ_CONTEXT_INVALID 6606L + +// +// MessageId: ERROR_LOG_RESTART_INVALID +// +// MessageText: +// +// Log service encountered an invalid log restart area. +// +#define ERROR_LOG_RESTART_INVALID 6607L + +// +// MessageId: ERROR_LOG_BLOCK_VERSION +// +// MessageText: +// +// Log service encountered an invalid log block version. +// +#define ERROR_LOG_BLOCK_VERSION 6608L + +// +// MessageId: ERROR_LOG_BLOCK_INVALID +// +// MessageText: +// +// Log service encountered an invalid log block. +// +#define ERROR_LOG_BLOCK_INVALID 6609L + +// +// MessageId: ERROR_LOG_READ_MODE_INVALID +// +// MessageText: +// +// Log service encountered an attempt to read the log with an invalid read mode. +// +#define ERROR_LOG_READ_MODE_INVALID 6610L + +// +// MessageId: ERROR_LOG_NO_RESTART +// +// MessageText: +// +// Log service encountered a log stream with no restart area. +// +#define ERROR_LOG_NO_RESTART 6611L + +// +// MessageId: ERROR_LOG_METADATA_CORRUPT +// +// MessageText: +// +// Log service encountered a corrupted metadata file. +// +#define ERROR_LOG_METADATA_CORRUPT 6612L + +// +// MessageId: ERROR_LOG_METADATA_INVALID +// +// MessageText: +// +// Log service encountered a metadata file that could not be created by the log file system. +// +#define ERROR_LOG_METADATA_INVALID 6613L + +// +// MessageId: ERROR_LOG_METADATA_INCONSISTENT +// +// MessageText: +// +// Log service encountered a metadata file with inconsistent data. +// +#define ERROR_LOG_METADATA_INCONSISTENT 6614L + +// +// MessageId: ERROR_LOG_RESERVATION_INVALID +// +// MessageText: +// +// Log service encountered an attempt to erroneous allocate or dispose reservation space. +// +#define ERROR_LOG_RESERVATION_INVALID 6615L + +// +// MessageId: ERROR_LOG_CANT_DELETE +// +// MessageText: +// +// Log service cannot delete log file or file system container. +// +#define ERROR_LOG_CANT_DELETE 6616L + +// +// MessageId: ERROR_LOG_CONTAINER_LIMIT_EXCEEDED +// +// MessageText: +// +// Log service has reached the maximum allowable containers allocated to a log file. +// +#define ERROR_LOG_CONTAINER_LIMIT_EXCEEDED 6617L + +// +// MessageId: ERROR_LOG_START_OF_LOG +// +// MessageText: +// +// Log service has attempted to read or write backward past the start of the log. +// +#define ERROR_LOG_START_OF_LOG 6618L + +// +// MessageId: ERROR_LOG_POLICY_ALREADY_INSTALLED +// +// MessageText: +// +// Log policy could not be installed because a policy of the same type is already present. +// +#define ERROR_LOG_POLICY_ALREADY_INSTALLED 6619L + +// +// MessageId: ERROR_LOG_POLICY_NOT_INSTALLED +// +// MessageText: +// +// Log policy in question was not installed at the time of the request. +// +#define ERROR_LOG_POLICY_NOT_INSTALLED 6620L + +// +// MessageId: ERROR_LOG_POLICY_INVALID +// +// MessageText: +// +// The installed set of policies on the log is invalid. +// +#define ERROR_LOG_POLICY_INVALID 6621L + +// +// MessageId: ERROR_LOG_POLICY_CONFLICT +// +// MessageText: +// +// A policy on the log in question prevented the operation from completing. +// +#define ERROR_LOG_POLICY_CONFLICT 6622L + +// +// MessageId: ERROR_LOG_PINNED_ARCHIVE_TAIL +// +// MessageText: +// +// Log space cannot be reclaimed because the log is pinned by the archive tail. +// +#define ERROR_LOG_PINNED_ARCHIVE_TAIL 6623L + +// +// MessageId: ERROR_LOG_RECORD_NONEXISTENT +// +// MessageText: +// +// Log record is not a record in the log file. +// +#define ERROR_LOG_RECORD_NONEXISTENT 6624L + +// +// MessageId: ERROR_LOG_RECORDS_RESERVED_INVALID +// +// MessageText: +// +// Number of reserved log records or the adjustment of the number of reserved log records is invalid. +// +#define ERROR_LOG_RECORDS_RESERVED_INVALID 6625L + +// +// MessageId: ERROR_LOG_SPACE_RESERVED_INVALID +// +// MessageText: +// +// Reserved log space or the adjustment of the log space is invalid. +// +#define ERROR_LOG_SPACE_RESERVED_INVALID 6626L + +// +// MessageId: ERROR_LOG_TAIL_INVALID +// +// MessageText: +// +// An new or existing archive tail or base of the active log is invalid. +// +#define ERROR_LOG_TAIL_INVALID 6627L + +// +// MessageId: ERROR_LOG_FULL +// +// MessageText: +// +// Log space is exhausted. +// +#define ERROR_LOG_FULL 6628L + +// +// MessageId: ERROR_COULD_NOT_RESIZE_LOG +// +// MessageText: +// +// The log could not be set to the requested size. +// +#define ERROR_COULD_NOT_RESIZE_LOG 6629L + +// +// MessageId: ERROR_LOG_MULTIPLEXED +// +// MessageText: +// +// Log is multiplexed, no direct writes to the physical log is allowed. +// +#define ERROR_LOG_MULTIPLEXED 6630L + +// +// MessageId: ERROR_LOG_DEDICATED +// +// MessageText: +// +// The operation failed because the log is a dedicated log. +// +#define ERROR_LOG_DEDICATED 6631L + +// +// MessageId: ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS +// +// MessageText: +// +// The operation requires an archive context. +// +#define ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS 6632L + +// +// MessageId: ERROR_LOG_ARCHIVE_IN_PROGRESS +// +// MessageText: +// +// Log archival is in progress. +// +#define ERROR_LOG_ARCHIVE_IN_PROGRESS 6633L + +// +// MessageId: ERROR_LOG_EPHEMERAL +// +// MessageText: +// +// The operation requires a non-ephemeral log, but the log is ephemeral. +// +#define ERROR_LOG_EPHEMERAL 6634L + +// +// MessageId: ERROR_LOG_NOT_ENOUGH_CONTAINERS +// +// MessageText: +// +// The log must have at least two containers before it can be read from or written to. +// +#define ERROR_LOG_NOT_ENOUGH_CONTAINERS 6635L + +// +// MessageId: ERROR_LOG_CLIENT_ALREADY_REGISTERED +// +// MessageText: +// +// A log client has already registered on the stream. +// +#define ERROR_LOG_CLIENT_ALREADY_REGISTERED 6636L + +// +// MessageId: ERROR_LOG_CLIENT_NOT_REGISTERED +// +// MessageText: +// +// A log client has not been registered on the stream. +// +#define ERROR_LOG_CLIENT_NOT_REGISTERED 6637L + +// +// MessageId: ERROR_LOG_FULL_HANDLER_IN_PROGRESS +// +// MessageText: +// +// A request has already been made to handle the log full condition. +// +#define ERROR_LOG_FULL_HANDLER_IN_PROGRESS 6638L + +// +// MessageId: ERROR_LOG_CONTAINER_READ_FAILED +// +// MessageText: +// +// Log service encountered an error when attempting to read from a log container. +// +#define ERROR_LOG_CONTAINER_READ_FAILED 6639L + +// +// MessageId: ERROR_LOG_CONTAINER_WRITE_FAILED +// +// MessageText: +// +// Log service encountered an error when attempting to write to a log container. +// +#define ERROR_LOG_CONTAINER_WRITE_FAILED 6640L + +// +// MessageId: ERROR_LOG_CONTAINER_OPEN_FAILED +// +// MessageText: +// +// Log service encountered an error when attempting open a log container. +// +#define ERROR_LOG_CONTAINER_OPEN_FAILED 6641L + +// +// MessageId: ERROR_LOG_CONTAINER_STATE_INVALID +// +// MessageText: +// +// Log service encountered an invalid container state when attempting a requested action. +// +#define ERROR_LOG_CONTAINER_STATE_INVALID 6642L + +// +// MessageId: ERROR_LOG_STATE_INVALID +// +// MessageText: +// +// Log service is not in the correct state to perform a requested action. +// +#define ERROR_LOG_STATE_INVALID 6643L + +// +// MessageId: ERROR_LOG_PINNED +// +// MessageText: +// +// Log space cannot be reclaimed because the log is pinned. +// +#define ERROR_LOG_PINNED 6644L + +// +// MessageId: ERROR_LOG_METADATA_FLUSH_FAILED +// +// MessageText: +// +// Log metadata flush failed. +// +#define ERROR_LOG_METADATA_FLUSH_FAILED 6645L + +// +// MessageId: ERROR_LOG_INCONSISTENT_SECURITY +// +// MessageText: +// +// Security on the log and its containers is inconsistent. +// +#define ERROR_LOG_INCONSISTENT_SECURITY 6646L + +// +// MessageId: ERROR_LOG_APPENDED_FLUSH_FAILED +// +// MessageText: +// +// Records were appended to the log or reservation changes were made, but the log could not be flushed. +// +#define ERROR_LOG_APPENDED_FLUSH_FAILED 6647L + +// +// MessageId: ERROR_LOG_PINNED_RESERVATION +// +// MessageText: +// +// The log is pinned due to reservation consuming most of the log space. Free some reserved records to make space available. +// +#define ERROR_LOG_PINNED_RESERVATION 6648L + + +/////////////////////////////////////////////////// +// // +// Transaction (KTM) Error codes // +// // +// 6700 to 6799 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_INVALID_TRANSACTION +// +// MessageText: +// +// The transaction handle associated with this operation is not valid. +// +#define ERROR_INVALID_TRANSACTION 6700L + +// +// MessageId: ERROR_TRANSACTION_NOT_ACTIVE +// +// MessageText: +// +// The requested operation was made in the context of a transaction that is no longer active. +// +#define ERROR_TRANSACTION_NOT_ACTIVE 6701L + +// +// MessageId: ERROR_TRANSACTION_REQUEST_NOT_VALID +// +// MessageText: +// +// The requested operation is not valid on the Transaction object in its current state. +// +#define ERROR_TRANSACTION_REQUEST_NOT_VALID 6702L + +// +// MessageId: ERROR_TRANSACTION_NOT_REQUESTED +// +// MessageText: +// +// The caller has called a response API, but the response is not expected because the TM did not issue the corresponding request to the caller. +// +#define ERROR_TRANSACTION_NOT_REQUESTED 6703L + +// +// MessageId: ERROR_TRANSACTION_ALREADY_ABORTED +// +// MessageText: +// +// It is too late to perform the requested operation, since the Transaction has already been aborted. +// +#define ERROR_TRANSACTION_ALREADY_ABORTED 6704L + +// +// MessageId: ERROR_TRANSACTION_ALREADY_COMMITTED +// +// MessageText: +// +// It is too late to perform the requested operation, since the Transaction has already been committed. +// +#define ERROR_TRANSACTION_ALREADY_COMMITTED 6705L + +// +// MessageId: ERROR_TM_INITIALIZATION_FAILED +// +// MessageText: +// +// The Transaction Manager was unable to be successfully initialized. Transacted operations are not supported. +// +#define ERROR_TM_INITIALIZATION_FAILED 6706L + +// +// MessageId: ERROR_RESOURCEMANAGER_READ_ONLY +// +// MessageText: +// +// The specified ResourceManager made no changes or updates to the resource under this transaction. +// +#define ERROR_RESOURCEMANAGER_READ_ONLY 6707L + +// +// MessageId: ERROR_TRANSACTION_NOT_JOINED +// +// MessageText: +// +// The resource manager has attempted to prepare a transaction that it has not successfully joined. +// +#define ERROR_TRANSACTION_NOT_JOINED 6708L + +// +// MessageId: ERROR_TRANSACTION_SUPERIOR_EXISTS +// +// MessageText: +// +// The Transaction object already has a superior enlistment, and the caller attempted an operation that would have created a new superior. Only a single superior enlistment is allow. +// +#define ERROR_TRANSACTION_SUPERIOR_EXISTS 6709L + +// +// MessageId: ERROR_CRM_PROTOCOL_ALREADY_EXISTS +// +// MessageText: +// +// The RM tried to register a protocol that already exists. +// +#define ERROR_CRM_PROTOCOL_ALREADY_EXISTS 6710L + +// +// MessageId: ERROR_TRANSACTION_PROPAGATION_FAILED +// +// MessageText: +// +// The attempt to propagate the Transaction failed. +// +#define ERROR_TRANSACTION_PROPAGATION_FAILED 6711L + +// +// MessageId: ERROR_CRM_PROTOCOL_NOT_FOUND +// +// MessageText: +// +// The requested propagation protocol was not registered as a CRM. +// +#define ERROR_CRM_PROTOCOL_NOT_FOUND 6712L + +// +// MessageId: ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER +// +// MessageText: +// +// The buffer passed in to PushTransaction or PullTransaction is not in a valid format. +// +#define ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER 6713L + +// +// MessageId: ERROR_CURRENT_TRANSACTION_NOT_VALID +// +// MessageText: +// +// The current transaction context associated with the thread is not a valid handle to a transaction object. +// +#define ERROR_CURRENT_TRANSACTION_NOT_VALID 6714L + +// +// MessageId: ERROR_TRANSACTION_NOT_FOUND +// +// MessageText: +// +// The specified Transaction object could not be opened, because it was not found. +// +#define ERROR_TRANSACTION_NOT_FOUND 6715L + +// +// MessageId: ERROR_RESOURCEMANAGER_NOT_FOUND +// +// MessageText: +// +// The specified ResourceManager object could not be opened, because it was not found. +// +#define ERROR_RESOURCEMANAGER_NOT_FOUND 6716L + +// +// MessageId: ERROR_ENLISTMENT_NOT_FOUND +// +// MessageText: +// +// The specified Enlistment object could not be opened, because it was not found. +// +#define ERROR_ENLISTMENT_NOT_FOUND 6717L + +// +// MessageId: ERROR_TRANSACTIONMANAGER_NOT_FOUND +// +// MessageText: +// +// The specified TransactionManager object could not be opened, because it was not found. +// +#define ERROR_TRANSACTIONMANAGER_NOT_FOUND 6718L + +// +// MessageId: ERROR_TRANSACTIONMANAGER_NOT_ONLINE +// +// MessageText: +// +// The object specified could not be created or opened, because its associated TransactionManager is not online. The TransactionManager must be brought fully Online by calling RecoverTransactionManager to recover to the end of its LogFile before objects in its Transaction or ResourceManager namespaces can be opened. In addition, errors in writing records to its LogFile can cause a TransactionManager to go offline. +// +#define ERROR_TRANSACTIONMANAGER_NOT_ONLINE 6719L + +// +// MessageId: ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION +// +// MessageText: +// +// The specified TransactionManager was unable to create the objects contained in its logfile in the Ob namespace. Therefore, the TransactionManager was unable to recover. +// +#define ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION 6720L + +// +// MessageId: ERROR_TRANSACTION_NOT_ROOT +// +// MessageText: +// +// The call to create a superior Enlistment on this Transaction object could not be completed, because the Transaction object specified for the enlistment is a subordinate branch of the Transaction. Only the root of the Transaction can be enlisted on as a superior. +// +#define ERROR_TRANSACTION_NOT_ROOT 6721L + +// +// MessageId: ERROR_TRANSACTION_OBJECT_EXPIRED +// +// MessageText: +// +// Because the associated transaction manager or resource manager has been closed, the handle is no longer valid. +// +#define ERROR_TRANSACTION_OBJECT_EXPIRED 6722L + +// +// MessageId: ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED +// +// MessageText: +// +// The specified operation could not be performed on this Superior enlistment, because the enlistment was not created with the corresponding completion response in the NotificationMask. +// +#define ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED 6723L + +// +// MessageId: ERROR_TRANSACTION_RECORD_TOO_LONG +// +// MessageText: +// +// The specified operation could not be performed, because the record that would be logged was too long. This can occur because of two conditions: either there are too many Enlistments on this Transaction, or the combined RecoveryInformation being logged on behalf of those Enlistments is too long. +// +#define ERROR_TRANSACTION_RECORD_TOO_LONG 6724L + +// +// MessageId: ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED +// +// MessageText: +// +// Implicit transaction are not supported. +// +#define ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED 6725L + +// +// MessageId: ERROR_TRANSACTION_INTEGRITY_VIOLATED +// +// MessageText: +// +// The kernel transaction manager had to abort or forget the transaction because it blocked forward progress. +// +#define ERROR_TRANSACTION_INTEGRITY_VIOLATED 6726L + +// +// MessageId: ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH +// +// MessageText: +// +// The TransactionManager identity that was supplied did not match the one recorded in the TransactionManager's log file. +// +#define ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH 6727L + +// +// MessageId: ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT +// +// MessageText: +// +// This snapshot operation cannot continue because a transactional resource manager cannot be frozen in its current state. Please try again. +// +#define ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT 6728L + +// +// MessageId: ERROR_TRANSACTION_MUST_WRITETHROUGH +// +// MessageText: +// +// The transaction cannot be enlisted on with the specified EnlistmentMask, because the transaction has already completed the PrePrepare phase. In order to ensure correctness, the ResourceManager must switch to a write-through mode and cease caching data within this transaction. Enlisting for only subsequent transaction phases may still succeed. +// +#define ERROR_TRANSACTION_MUST_WRITETHROUGH 6729L + +// +// MessageId: ERROR_TRANSACTION_NO_SUPERIOR +// +// MessageText: +// +// The transaction does not have a superior enlistment. +// +#define ERROR_TRANSACTION_NO_SUPERIOR 6730L + +// +// MessageId: ERROR_HEURISTIC_DAMAGE_POSSIBLE +// +// MessageText: +// +// The attempt to commit the Transaction completed, but it is possible that some portion of the transaction tree did not commit successfully due to heuristics. Therefore it is possible that some data modified in the transaction may not have committed, resulting in transactional inconsistency. If possible, check the consistency of the associated data. +// +#define ERROR_HEURISTIC_DAMAGE_POSSIBLE 6731L + + +/////////////////////////////////////////////////// +// // +// Transactional File Services (TxF) // +// Error codes // +// // +// 6800 to 6899 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_TRANSACTIONAL_CONFLICT +// +// MessageText: +// +// The function attempted to use a name that is reserved for use by another transaction. +// +#define ERROR_TRANSACTIONAL_CONFLICT 6800L + +// +// MessageId: ERROR_RM_NOT_ACTIVE +// +// MessageText: +// +// Transaction support within the specified resource manager is not started or was shut down due to an error. +// +#define ERROR_RM_NOT_ACTIVE 6801L + +// +// MessageId: ERROR_RM_METADATA_CORRUPT +// +// MessageText: +// +// The metadata of the RM has been corrupted. The RM will not function. +// +#define ERROR_RM_METADATA_CORRUPT 6802L + +// +// MessageId: ERROR_DIRECTORY_NOT_RM +// +// MessageText: +// +// The specified directory does not contain a resource manager. +// +#define ERROR_DIRECTORY_NOT_RM 6803L + +// +// MessageId: ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE +// +// MessageText: +// +// The remote server or share does not support transacted file operations. +// +#define ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE 6805L + +// +// MessageId: ERROR_LOG_RESIZE_INVALID_SIZE +// +// MessageText: +// +// The requested log size is invalid. +// +#define ERROR_LOG_RESIZE_INVALID_SIZE 6806L + +// +// MessageId: ERROR_OBJECT_NO_LONGER_EXISTS +// +// MessageText: +// +// The object (file, stream, link) corresponding to the handle has been deleted by a Transaction Savepoint Rollback. +// +#define ERROR_OBJECT_NO_LONGER_EXISTS 6807L + +// +// MessageId: ERROR_STREAM_MINIVERSION_NOT_FOUND +// +// MessageText: +// +// The specified file miniversion was not found for this transacted file open. +// +#define ERROR_STREAM_MINIVERSION_NOT_FOUND 6808L + +// +// MessageId: ERROR_STREAM_MINIVERSION_NOT_VALID +// +// MessageText: +// +// The specified file miniversion was found but has been invalidated. Most likely cause is a transaction savepoint rollback. +// +#define ERROR_STREAM_MINIVERSION_NOT_VALID 6809L + +// +// MessageId: ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION +// +// MessageText: +// +// A miniversion may only be opened in the context of the transaction that created it. +// +#define ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION 6810L + +// +// MessageId: ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT +// +// MessageText: +// +// It is not possible to open a miniversion with modify access. +// +#define ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT 6811L + +// +// MessageId: ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS +// +// MessageText: +// +// It is not possible to create any more miniversions for this stream. +// +#define ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS 6812L + +// +// MessageId: ERROR_REMOTE_FILE_VERSION_MISMATCH +// +// MessageText: +// +// The remote server sent mismatching version number or Fid for a file opened with transactions. +// +#define ERROR_REMOTE_FILE_VERSION_MISMATCH 6814L + +// +// MessageId: ERROR_HANDLE_NO_LONGER_VALID +// +// MessageText: +// +// The handle has been invalidated by a transaction. The most likely cause is the presence of memory mapping on a file or an open handle when the transaction ended or rolled back to savepoint. +// +#define ERROR_HANDLE_NO_LONGER_VALID 6815L + +// +// MessageId: ERROR_NO_TXF_METADATA +// +// MessageText: +// +// There is no transaction metadata on the file. +// +#define ERROR_NO_TXF_METADATA 6816L + +// +// MessageId: ERROR_LOG_CORRUPTION_DETECTED +// +// MessageText: +// +// The log data is corrupt. +// +#define ERROR_LOG_CORRUPTION_DETECTED 6817L + +// +// MessageId: ERROR_CANT_RECOVER_WITH_HANDLE_OPEN +// +// MessageText: +// +// The file can't be recovered because there is a handle still open on it. +// +#define ERROR_CANT_RECOVER_WITH_HANDLE_OPEN 6818L + +// +// MessageId: ERROR_RM_DISCONNECTED +// +// MessageText: +// +// The transaction outcome is unavailable because the resource manager responsible for it has disconnected. +// +#define ERROR_RM_DISCONNECTED 6819L + +// +// MessageId: ERROR_ENLISTMENT_NOT_SUPERIOR +// +// MessageText: +// +// The request was rejected because the enlistment in question is not a superior enlistment. +// +#define ERROR_ENLISTMENT_NOT_SUPERIOR 6820L + +// +// MessageId: ERROR_RECOVERY_NOT_NEEDED +// +// MessageText: +// +// The transactional resource manager is already consistent. Recovery is not needed. +// +#define ERROR_RECOVERY_NOT_NEEDED 6821L + +// +// MessageId: ERROR_RM_ALREADY_STARTED +// +// MessageText: +// +// The transactional resource manager has already been started. +// +#define ERROR_RM_ALREADY_STARTED 6822L + +// +// MessageId: ERROR_FILE_IDENTITY_NOT_PERSISTENT +// +// MessageText: +// +// The file cannot be opened transactionally, because its identity depends on the outcome of an unresolved transaction. +// +#define ERROR_FILE_IDENTITY_NOT_PERSISTENT 6823L + +// +// MessageId: ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY +// +// MessageText: +// +// The operation cannot be performed because another transaction is depending on the fact that this property will not change. +// +#define ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY 6824L + +// +// MessageId: ERROR_CANT_CROSS_RM_BOUNDARY +// +// MessageText: +// +// The operation would involve a single file with two transactional resource managers and is therefore not allowed. +// +#define ERROR_CANT_CROSS_RM_BOUNDARY 6825L + +// +// MessageId: ERROR_TXF_DIR_NOT_EMPTY +// +// MessageText: +// +// The $Txf directory must be empty for this operation to succeed. +// +#define ERROR_TXF_DIR_NOT_EMPTY 6826L + +// +// MessageId: ERROR_INDOUBT_TRANSACTIONS_EXIST +// +// MessageText: +// +// The operation would leave a transactional resource manager in an inconsistent state and is therefore not allowed. +// +#define ERROR_INDOUBT_TRANSACTIONS_EXIST 6827L + +// +// MessageId: ERROR_TM_VOLATILE +// +// MessageText: +// +// The operation could not be completed because the transaction manager does not have a log. +// +#define ERROR_TM_VOLATILE 6828L + +// +// MessageId: ERROR_ROLLBACK_TIMER_EXPIRED +// +// MessageText: +// +// A rollback could not be scheduled because a previously scheduled rollback has already executed or been queued for execution. +// +#define ERROR_ROLLBACK_TIMER_EXPIRED 6829L + +// +// MessageId: ERROR_TXF_ATTRIBUTE_CORRUPT +// +// MessageText: +// +// The transactional metadata attribute on the file or directory is corrupt and unreadable. +// +#define ERROR_TXF_ATTRIBUTE_CORRUPT 6830L + +// +// MessageId: ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION +// +// MessageText: +// +// The encryption operation could not be completed because a transaction is active. +// +#define ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION 6831L + +// +// MessageId: ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED +// +// MessageText: +// +// This object is not allowed to be opened in a transaction. +// +#define ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED 6832L + +// +// MessageId: ERROR_LOG_GROWTH_FAILED +// +// MessageText: +// +// An attempt to create space in the transactional resource manager's log failed. The failure status has been recorded in the event log. +// +#define ERROR_LOG_GROWTH_FAILED 6833L + +// +// MessageId: ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE +// +// MessageText: +// +// Memory mapping (creating a mapped section) a remote file under a transaction is not supported. +// +#define ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE 6834L + +// +// MessageId: ERROR_TXF_METADATA_ALREADY_PRESENT +// +// MessageText: +// +// Transaction metadata is already present on this file and cannot be superseded. +// +#define ERROR_TXF_METADATA_ALREADY_PRESENT 6835L + +// +// MessageId: ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET +// +// MessageText: +// +// A transaction scope could not be entered because the scope handler has not been initialized. +// +#define ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET 6836L + +// +// MessageId: ERROR_TRANSACTION_REQUIRED_PROMOTION +// +// MessageText: +// +// Promotion was required in order to allow the resource manager to enlist, but the transaction was set to disallow it. +// +#define ERROR_TRANSACTION_REQUIRED_PROMOTION 6837L + +// +// MessageId: ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION +// +// MessageText: +// +// This file is open for modification in an unresolved transaction and may be opened for execute only by a transacted reader. +// +#define ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION 6838L + +// +// MessageId: ERROR_TRANSACTIONS_NOT_FROZEN +// +// MessageText: +// +// The request to thaw frozen transactions was ignored because transactions had not previously been frozen. +// +#define ERROR_TRANSACTIONS_NOT_FROZEN 6839L + +// +// MessageId: ERROR_TRANSACTION_FREEZE_IN_PROGRESS +// +// MessageText: +// +// Transactions cannot be frozen because a freeze is already in progress. +// +#define ERROR_TRANSACTION_FREEZE_IN_PROGRESS 6840L + +// +// MessageId: ERROR_NOT_SNAPSHOT_VOLUME +// +// MessageText: +// +// The target volume is not a snapshot volume. This operation is only valid on a volume mounted as a snapshot. +// +#define ERROR_NOT_SNAPSHOT_VOLUME 6841L + +// +// MessageId: ERROR_NO_SAVEPOINT_WITH_OPEN_FILES +// +// MessageText: +// +// The savepoint operation failed because files are open on the transaction. This is not permitted. +// +#define ERROR_NO_SAVEPOINT_WITH_OPEN_FILES 6842L + +// +// MessageId: ERROR_DATA_LOST_REPAIR +// +// MessageText: +// +// Windows has discovered corruption in a file, and that file has since been repaired. Data loss may have occurred. +// +#define ERROR_DATA_LOST_REPAIR 6843L + +// +// MessageId: ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION +// +// MessageText: +// +// The sparse operation could not be completed because a transaction is active on the file. +// +#define ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION 6844L + +// +// MessageId: ERROR_TM_IDENTITY_MISMATCH +// +// MessageText: +// +// The call to create a TransactionManager object failed because the Tm Identity stored in the logfile does not match the Tm Identity that was passed in as an argument. +// +#define ERROR_TM_IDENTITY_MISMATCH 6845L + +// +// MessageId: ERROR_FLOATED_SECTION +// +// MessageText: +// +// I/O was attempted on a section object that has been floated as a result of a transaction ending. There is no valid data. +// +#define ERROR_FLOATED_SECTION 6846L + +// +// MessageId: ERROR_CANNOT_ACCEPT_TRANSACTED_WORK +// +// MessageText: +// +// The transactional resource manager cannot currently accept transacted work due to a transient condition such as low resources. +// +#define ERROR_CANNOT_ACCEPT_TRANSACTED_WORK 6847L + +// +// MessageId: ERROR_CANNOT_ABORT_TRANSACTIONS +// +// MessageText: +// +// The transactional resource manager had too many transactions outstanding that could not be aborted. The transactional resource manger has been shut down. +// +#define ERROR_CANNOT_ABORT_TRANSACTIONS 6848L + +// +// MessageId: ERROR_BAD_CLUSTERS +// +// MessageText: +// +// The operation could not be completed due to bad clusters on disk. +// +#define ERROR_BAD_CLUSTERS 6849L + +// +// MessageId: ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION +// +// MessageText: +// +// The compression operation could not be completed because a transaction is active on the file. +// +#define ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION 6850L + +// +// MessageId: ERROR_VOLUME_DIRTY +// +// MessageText: +// +// The operation could not be completed because the volume is dirty. Please run chkdsk and try again. +// +#define ERROR_VOLUME_DIRTY 6851L + +// +// MessageId: ERROR_NO_LINK_TRACKING_IN_TRANSACTION +// +// MessageText: +// +// The link tracking operation could not be completed because a transaction is active. +// +#define ERROR_NO_LINK_TRACKING_IN_TRANSACTION 6852L + +// +// MessageId: ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION +// +// MessageText: +// +// This operation cannot be performed in a transaction. +// +#define ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION 6853L + +// +// MessageId: ERROR_EXPIRED_HANDLE +// +// MessageText: +// +// The handle is no longer properly associated with its transaction. It may have been opened in a transactional resource manager that was subsequently forced to restart. Please close the handle and open a new one. +// +#define ERROR_EXPIRED_HANDLE 6854L + +// +// MessageId: ERROR_TRANSACTION_NOT_ENLISTED +// +// MessageText: +// +// The specified operation could not be performed because the resource manager is not enlisted in the transaction. +// +#define ERROR_TRANSACTION_NOT_ENLISTED 6855L + +// +// MessageId: ERROR_ENLISTMENT_NOT_INITIALIZED +// +// MessageText: +// +// The transaction is linked to an enlistment that is not fully initialized yet. +// +#define ERROR_ENLISTMENT_NOT_INITIALIZED 6856L + + +/////////////////////////////////////////////////// +// // +// Available // +// // +// 6900 to 6999 // +/////////////////////////////////////////////////// + +/////////////////////////////////////////////////// +// // +// Terminal Server Error codes // +// // +// 7000 to 7099 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_CTX_WINSTATION_NAME_INVALID +// +// MessageText: +// +// The specified session name is invalid. +// +#define ERROR_CTX_WINSTATION_NAME_INVALID 7001L + +// +// MessageId: ERROR_CTX_INVALID_PD +// +// MessageText: +// +// The specified protocol driver is invalid. +// +#define ERROR_CTX_INVALID_PD 7002L + +// +// MessageId: ERROR_CTX_PD_NOT_FOUND +// +// MessageText: +// +// The specified protocol driver was not found in the system path. +// +#define ERROR_CTX_PD_NOT_FOUND 7003L + +// +// MessageId: ERROR_CTX_WD_NOT_FOUND +// +// MessageText: +// +// The specified terminal connection driver was not found in the system path. +// +#define ERROR_CTX_WD_NOT_FOUND 7004L + +// +// MessageId: ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY +// +// MessageText: +// +// A registry key for event logging could not be created for this session. +// +#define ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY 7005L + +// +// MessageId: ERROR_CTX_SERVICE_NAME_COLLISION +// +// MessageText: +// +// A service with the same name already exists on the system. +// +#define ERROR_CTX_SERVICE_NAME_COLLISION 7006L + +// +// MessageId: ERROR_CTX_CLOSE_PENDING +// +// MessageText: +// +// A close operation is pending on the session. +// +#define ERROR_CTX_CLOSE_PENDING 7007L + +// +// MessageId: ERROR_CTX_NO_OUTBUF +// +// MessageText: +// +// There are no free output buffers available. +// +#define ERROR_CTX_NO_OUTBUF 7008L + +// +// MessageId: ERROR_CTX_MODEM_INF_NOT_FOUND +// +// MessageText: +// +// The MODEM.INF file was not found. +// +#define ERROR_CTX_MODEM_INF_NOT_FOUND 7009L + +// +// MessageId: ERROR_CTX_INVALID_MODEMNAME +// +// MessageText: +// +// The modem name was not found in MODEM.INF. +// +#define ERROR_CTX_INVALID_MODEMNAME 7010L + +// +// MessageId: ERROR_CTX_MODEM_RESPONSE_ERROR +// +// MessageText: +// +// The modem did not accept the command sent to it. Verify that the configured modem name matches the attached modem. +// +#define ERROR_CTX_MODEM_RESPONSE_ERROR 7011L + +// +// MessageId: ERROR_CTX_MODEM_RESPONSE_TIMEOUT +// +// MessageText: +// +// The modem did not respond to the command sent to it. Verify that the modem is properly cabled and powered on. +// +#define ERROR_CTX_MODEM_RESPONSE_TIMEOUT 7012L + +// +// MessageId: ERROR_CTX_MODEM_RESPONSE_NO_CARRIER +// +// MessageText: +// +// Carrier detect has failed or carrier has been dropped due to disconnect. +// +#define ERROR_CTX_MODEM_RESPONSE_NO_CARRIER 7013L + +// +// MessageId: ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE +// +// MessageText: +// +// Dial tone not detected within the required time. Verify that the phone cable is properly attached and functional. +// +#define ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE 7014L + +// +// MessageId: ERROR_CTX_MODEM_RESPONSE_BUSY +// +// MessageText: +// +// Busy signal detected at remote site on callback. +// +#define ERROR_CTX_MODEM_RESPONSE_BUSY 7015L + +// +// MessageId: ERROR_CTX_MODEM_RESPONSE_VOICE +// +// MessageText: +// +// Voice detected at remote site on callback. +// +#define ERROR_CTX_MODEM_RESPONSE_VOICE 7016L + +// +// MessageId: ERROR_CTX_TD_ERROR +// +// MessageText: +// +// Transport driver error +// +#define ERROR_CTX_TD_ERROR 7017L + +// +// MessageId: ERROR_CTX_WINSTATION_NOT_FOUND +// +// MessageText: +// +// The specified session cannot be found. +// +#define ERROR_CTX_WINSTATION_NOT_FOUND 7022L + +// +// MessageId: ERROR_CTX_WINSTATION_ALREADY_EXISTS +// +// MessageText: +// +// The specified session name is already in use. +// +#define ERROR_CTX_WINSTATION_ALREADY_EXISTS 7023L + +// +// MessageId: ERROR_CTX_WINSTATION_BUSY +// +// MessageText: +// +// The task you are trying to do can't be completed because Remote Desktop Services is currently busy. Please try again in a few minutes. Other users should still be able to log on. +// +#define ERROR_CTX_WINSTATION_BUSY 7024L + +// +// MessageId: ERROR_CTX_BAD_VIDEO_MODE +// +// MessageText: +// +// An attempt has been made to connect to a session whose video mode is not supported by the current client. +// +#define ERROR_CTX_BAD_VIDEO_MODE 7025L + +// +// MessageId: ERROR_CTX_GRAPHICS_INVALID +// +// MessageText: +// +// The application attempted to enable DOS graphics mode. DOS graphics mode is not supported. +// +#define ERROR_CTX_GRAPHICS_INVALID 7035L + +// +// MessageId: ERROR_CTX_LOGON_DISABLED +// +// MessageText: +// +// Your interactive logon privilege has been disabled. Please contact your administrator. +// +#define ERROR_CTX_LOGON_DISABLED 7037L + +// +// MessageId: ERROR_CTX_NOT_CONSOLE +// +// MessageText: +// +// The requested operation can be performed only on the system console. This is most often the result of a driver or system DLL requiring direct console access. +// +#define ERROR_CTX_NOT_CONSOLE 7038L + +// +// MessageId: ERROR_CTX_CLIENT_QUERY_TIMEOUT +// +// MessageText: +// +// The client failed to respond to the server connect message. +// +#define ERROR_CTX_CLIENT_QUERY_TIMEOUT 7040L + +// +// MessageId: ERROR_CTX_CONSOLE_DISCONNECT +// +// MessageText: +// +// Disconnecting the console session is not supported. +// +#define ERROR_CTX_CONSOLE_DISCONNECT 7041L + +// +// MessageId: ERROR_CTX_CONSOLE_CONNECT +// +// MessageText: +// +// Reconnecting a disconnected session to the console is not supported. +// +#define ERROR_CTX_CONSOLE_CONNECT 7042L + +// +// MessageId: ERROR_CTX_SHADOW_DENIED +// +// MessageText: +// +// The request to control another session remotely was denied. +// +#define ERROR_CTX_SHADOW_DENIED 7044L + +// +// MessageId: ERROR_CTX_WINSTATION_ACCESS_DENIED +// +// MessageText: +// +// The requested session access is denied. +// +#define ERROR_CTX_WINSTATION_ACCESS_DENIED 7045L + +// +// MessageId: ERROR_CTX_INVALID_WD +// +// MessageText: +// +// The specified terminal connection driver is invalid. +// +#define ERROR_CTX_INVALID_WD 7049L + +// +// MessageId: ERROR_CTX_SHADOW_INVALID +// +// MessageText: +// +// The requested session cannot be controlled remotely. +// This may be because the session is disconnected or does not currently have a user logged on. +// +#define ERROR_CTX_SHADOW_INVALID 7050L + +// +// MessageId: ERROR_CTX_SHADOW_DISABLED +// +// MessageText: +// +// The requested session is not configured to allow remote control. +// +#define ERROR_CTX_SHADOW_DISABLED 7051L + +// +// MessageId: ERROR_CTX_CLIENT_LICENSE_IN_USE +// +// MessageText: +// +// Your request to connect to this Terminal Server has been rejected. Your Terminal Server client license number is currently being used by another user. Please call your system administrator to obtain a unique license number. +// +#define ERROR_CTX_CLIENT_LICENSE_IN_USE 7052L + +// +// MessageId: ERROR_CTX_CLIENT_LICENSE_NOT_SET +// +// MessageText: +// +// Your request to connect to this Terminal Server has been rejected. Your Terminal Server client license number has not been entered for this copy of the Terminal Server client. Please contact your system administrator. +// +#define ERROR_CTX_CLIENT_LICENSE_NOT_SET 7053L + +// +// MessageId: ERROR_CTX_LICENSE_NOT_AVAILABLE +// +// MessageText: +// +// The number of connections to this computer is limited and all connections are in use right now. Try connecting later or contact your system administrator. +// +#define ERROR_CTX_LICENSE_NOT_AVAILABLE 7054L + +// +// MessageId: ERROR_CTX_LICENSE_CLIENT_INVALID +// +// MessageText: +// +// The client you are using is not licensed to use this system. Your logon request is denied. +// +#define ERROR_CTX_LICENSE_CLIENT_INVALID 7055L + +// +// MessageId: ERROR_CTX_LICENSE_EXPIRED +// +// MessageText: +// +// The system license has expired. Your logon request is denied. +// +#define ERROR_CTX_LICENSE_EXPIRED 7056L + +// +// MessageId: ERROR_CTX_SHADOW_NOT_RUNNING +// +// MessageText: +// +// Remote control could not be terminated because the specified session is not currently being remotely controlled. +// +#define ERROR_CTX_SHADOW_NOT_RUNNING 7057L + +// +// MessageId: ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE +// +// MessageText: +// +// The remote control of the console was terminated because the display mode was changed. Changing the display mode in a remote control session is not supported. +// +#define ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE 7058L + +// +// MessageId: ERROR_ACTIVATION_COUNT_EXCEEDED +// +// MessageText: +// +// Activation has already been reset the maximum number of times for this installation. Your activation timer will not be cleared. +// +#define ERROR_ACTIVATION_COUNT_EXCEEDED 7059L + +// +// MessageId: ERROR_CTX_WINSTATIONS_DISABLED +// +// MessageText: +// +// Remote logins are currently disabled. +// +#define ERROR_CTX_WINSTATIONS_DISABLED 7060L + +// +// MessageId: ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED +// +// MessageText: +// +// You do not have the proper encryption level to access this Session. +// +#define ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED 7061L + +// +// MessageId: ERROR_CTX_SESSION_IN_USE +// +// MessageText: +// +// The user %s\\%s is currently logged on to this computer. Only the current user or an administrator can log on to this computer. +// +#define ERROR_CTX_SESSION_IN_USE 7062L + +// +// MessageId: ERROR_CTX_NO_FORCE_LOGOFF +// +// MessageText: +// +// The user %s\\%s is already logged on to the console of this computer. You do not have permission to log in at this time. To resolve this issue, contact %s\\%s and have them log off. +// +#define ERROR_CTX_NO_FORCE_LOGOFF 7063L + +// +// MessageId: ERROR_CTX_ACCOUNT_RESTRICTION +// +// MessageText: +// +// Unable to log you on because of an account restriction. +// +#define ERROR_CTX_ACCOUNT_RESTRICTION 7064L + +// +// MessageId: ERROR_RDP_PROTOCOL_ERROR +// +// MessageText: +// +// The RDP protocol component %2 detected an error in the protocol stream and has disconnected the client. +// +#define ERROR_RDP_PROTOCOL_ERROR 7065L + +// +// MessageId: ERROR_CTX_CDM_CONNECT +// +// MessageText: +// +// The Client Drive Mapping Service Has Connected on Terminal Connection. +// +#define ERROR_CTX_CDM_CONNECT 7066L + +// +// MessageId: ERROR_CTX_CDM_DISCONNECT +// +// MessageText: +// +// The Client Drive Mapping Service Has Disconnected on Terminal Connection. +// +#define ERROR_CTX_CDM_DISCONNECT 7067L + +// +// MessageId: ERROR_CTX_SECURITY_LAYER_ERROR +// +// MessageText: +// +// The Terminal Server security layer detected an error in the protocol stream and has disconnected the client. +// +#define ERROR_CTX_SECURITY_LAYER_ERROR 7068L + +// +// MessageId: ERROR_TS_INCOMPATIBLE_SESSIONS +// +// MessageText: +// +// The target session is incompatible with the current session. +// +#define ERROR_TS_INCOMPATIBLE_SESSIONS 7069L + +// +// MessageId: ERROR_TS_VIDEO_SUBSYSTEM_ERROR +// +// MessageText: +// +// Windows can't connect to your session because a problem occurred in the Windows video subsystem. Try connecting again later, or contact the server administrator for assistance. +// +#define ERROR_TS_VIDEO_SUBSYSTEM_ERROR 7070L + +/////////////////////////////////////////////////// +// // +// Windows Fabric Error Codes // +// // +// 7100 to 7499 // +// // +// defined in FabricCommon.idl // +// // +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// / +// Traffic Control Error Codes / +// / +// 7500 to 7999 / +// / +// defined in: tcerror.h / +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// // +// Active Directory Error codes // +// // +// 8000 to 8999 // +/////////////////////////////////////////////////// + +// ***************** +// FACILITY_FILE_REPLICATION_SERVICE +// ***************** +// +// MessageId: FRS_ERR_INVALID_API_SEQUENCE +// +// MessageText: +// +// The file replication service API was called incorrectly. +// +#define FRS_ERR_INVALID_API_SEQUENCE 8001L + +// +// MessageId: FRS_ERR_STARTING_SERVICE +// +// MessageText: +// +// The file replication service cannot be started. +// +#define FRS_ERR_STARTING_SERVICE 8002L + +// +// MessageId: FRS_ERR_STOPPING_SERVICE +// +// MessageText: +// +// The file replication service cannot be stopped. +// +#define FRS_ERR_STOPPING_SERVICE 8003L + +// +// MessageId: FRS_ERR_INTERNAL_API +// +// MessageText: +// +// The file replication service API terminated the request. The event log may have more information. +// +#define FRS_ERR_INTERNAL_API 8004L + +// +// MessageId: FRS_ERR_INTERNAL +// +// MessageText: +// +// The file replication service terminated the request. The event log may have more information. +// +#define FRS_ERR_INTERNAL 8005L + +// +// MessageId: FRS_ERR_SERVICE_COMM +// +// MessageText: +// +// The file replication service cannot be contacted. The event log may have more information. +// +#define FRS_ERR_SERVICE_COMM 8006L + +// +// MessageId: FRS_ERR_INSUFFICIENT_PRIV +// +// MessageText: +// +// The file replication service cannot satisfy the request because the user has insufficient privileges. The event log may have more information. +// +#define FRS_ERR_INSUFFICIENT_PRIV 8007L + +// +// MessageId: FRS_ERR_AUTHENTICATION +// +// MessageText: +// +// The file replication service cannot satisfy the request because authenticated RPC is not available. The event log may have more information. +// +#define FRS_ERR_AUTHENTICATION 8008L + +// +// MessageId: FRS_ERR_PARENT_INSUFFICIENT_PRIV +// +// MessageText: +// +// The file replication service cannot satisfy the request because the user has insufficient privileges on the domain controller. The event log may have more information. +// +#define FRS_ERR_PARENT_INSUFFICIENT_PRIV 8009L + +// +// MessageId: FRS_ERR_PARENT_AUTHENTICATION +// +// MessageText: +// +// The file replication service cannot satisfy the request because authenticated RPC is not available on the domain controller. The event log may have more information. +// +#define FRS_ERR_PARENT_AUTHENTICATION 8010L + +// +// MessageId: FRS_ERR_CHILD_TO_PARENT_COMM +// +// MessageText: +// +// The file replication service cannot communicate with the file replication service on the domain controller. The event log may have more information. +// +#define FRS_ERR_CHILD_TO_PARENT_COMM 8011L + +// +// MessageId: FRS_ERR_PARENT_TO_CHILD_COMM +// +// MessageText: +// +// The file replication service on the domain controller cannot communicate with the file replication service on this computer. The event log may have more information. +// +#define FRS_ERR_PARENT_TO_CHILD_COMM 8012L + +// +// MessageId: FRS_ERR_SYSVOL_POPULATE +// +// MessageText: +// +// The file replication service cannot populate the system volume because of an internal error. The event log may have more information. +// +#define FRS_ERR_SYSVOL_POPULATE 8013L + +// +// MessageId: FRS_ERR_SYSVOL_POPULATE_TIMEOUT +// +// MessageText: +// +// The file replication service cannot populate the system volume because of an internal timeout. The event log may have more information. +// +#define FRS_ERR_SYSVOL_POPULATE_TIMEOUT 8014L + +// +// MessageId: FRS_ERR_SYSVOL_IS_BUSY +// +// MessageText: +// +// The file replication service cannot process the request. The system volume is busy with a previous request. +// +#define FRS_ERR_SYSVOL_IS_BUSY 8015L + +// +// MessageId: FRS_ERR_SYSVOL_DEMOTE +// +// MessageText: +// +// The file replication service cannot stop replicating the system volume because of an internal error. The event log may have more information. +// +#define FRS_ERR_SYSVOL_DEMOTE 8016L + +// +// MessageId: FRS_ERR_INVALID_SERVICE_PARAMETER +// +// MessageText: +// +// The file replication service detected an invalid parameter. +// +#define FRS_ERR_INVALID_SERVICE_PARAMETER 8017L + +// ***************** +// FACILITY DIRECTORY SERVICE +// ***************** +#define DS_S_SUCCESS NO_ERROR +// +// MessageId: ERROR_DS_NOT_INSTALLED +// +// MessageText: +// +// An error occurred while installing the directory service. For more information, see the event log. +// +#define ERROR_DS_NOT_INSTALLED 8200L + +// +// MessageId: ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY +// +// MessageText: +// +// The directory service evaluated group memberships locally. +// +#define ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY 8201L + +// +// MessageId: ERROR_DS_NO_ATTRIBUTE_OR_VALUE +// +// MessageText: +// +// The specified directory service attribute or value does not exist. +// +#define ERROR_DS_NO_ATTRIBUTE_OR_VALUE 8202L + +// +// MessageId: ERROR_DS_INVALID_ATTRIBUTE_SYNTAX +// +// MessageText: +// +// The attribute syntax specified to the directory service is invalid. +// +#define ERROR_DS_INVALID_ATTRIBUTE_SYNTAX 8203L + +// +// MessageId: ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED +// +// MessageText: +// +// The attribute type specified to the directory service is not defined. +// +#define ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED 8204L + +// +// MessageId: ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS +// +// MessageText: +// +// The specified directory service attribute or value already exists. +// +#define ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS 8205L + +// +// MessageId: ERROR_DS_BUSY +// +// MessageText: +// +// The directory service is busy. +// +#define ERROR_DS_BUSY 8206L + +// +// MessageId: ERROR_DS_UNAVAILABLE +// +// MessageText: +// +// The directory service is unavailable. +// +#define ERROR_DS_UNAVAILABLE 8207L + +// +// MessageId: ERROR_DS_NO_RIDS_ALLOCATED +// +// MessageText: +// +// The directory service was unable to allocate a relative identifier. +// +#define ERROR_DS_NO_RIDS_ALLOCATED 8208L + +// +// MessageId: ERROR_DS_NO_MORE_RIDS +// +// MessageText: +// +// The directory service has exhausted the pool of relative identifiers. +// +#define ERROR_DS_NO_MORE_RIDS 8209L + +// +// MessageId: ERROR_DS_INCORRECT_ROLE_OWNER +// +// MessageText: +// +// The requested operation could not be performed because the directory service is not the master for that type of operation. +// +#define ERROR_DS_INCORRECT_ROLE_OWNER 8210L + +// +// MessageId: ERROR_DS_RIDMGR_INIT_ERROR +// +// MessageText: +// +// The directory service was unable to initialize the subsystem that allocates relative identifiers. +// +#define ERROR_DS_RIDMGR_INIT_ERROR 8211L + +// +// MessageId: ERROR_DS_OBJ_CLASS_VIOLATION +// +// MessageText: +// +// The requested operation did not satisfy one or more constraints associated with the class of the object. +// +#define ERROR_DS_OBJ_CLASS_VIOLATION 8212L + +// +// MessageId: ERROR_DS_CANT_ON_NON_LEAF +// +// MessageText: +// +// The directory service can perform the requested operation only on a leaf object. +// +#define ERROR_DS_CANT_ON_NON_LEAF 8213L + +// +// MessageId: ERROR_DS_CANT_ON_RDN +// +// MessageText: +// +// The directory service cannot perform the requested operation on the RDN attribute of an object. +// +#define ERROR_DS_CANT_ON_RDN 8214L + +// +// MessageId: ERROR_DS_CANT_MOD_OBJ_CLASS +// +// MessageText: +// +// The directory service detected an attempt to modify the object class of an object. +// +#define ERROR_DS_CANT_MOD_OBJ_CLASS 8215L + +// +// MessageId: ERROR_DS_CROSS_DOM_MOVE_ERROR +// +// MessageText: +// +// The requested cross-domain move operation could not be performed. +// +#define ERROR_DS_CROSS_DOM_MOVE_ERROR 8216L + +// +// MessageId: ERROR_DS_GC_NOT_AVAILABLE +// +// MessageText: +// +// Unable to contact the global catalog server. +// +#define ERROR_DS_GC_NOT_AVAILABLE 8217L + +// +// MessageId: ERROR_SHARED_POLICY +// +// MessageText: +// +// The policy object is shared and can only be modified at the root. +// +#define ERROR_SHARED_POLICY 8218L + +// +// MessageId: ERROR_POLICY_OBJECT_NOT_FOUND +// +// MessageText: +// +// The policy object does not exist. +// +#define ERROR_POLICY_OBJECT_NOT_FOUND 8219L + +// +// MessageId: ERROR_POLICY_ONLY_IN_DS +// +// MessageText: +// +// The requested policy information is only in the directory service. +// +#define ERROR_POLICY_ONLY_IN_DS 8220L + +// +// MessageId: ERROR_PROMOTION_ACTIVE +// +// MessageText: +// +// A domain controller promotion is currently active. +// +#define ERROR_PROMOTION_ACTIVE 8221L + +// +// MessageId: ERROR_NO_PROMOTION_ACTIVE +// +// MessageText: +// +// A domain controller promotion is not currently active +// +#define ERROR_NO_PROMOTION_ACTIVE 8222L + +// 8223 unused +// +// MessageId: ERROR_DS_OPERATIONS_ERROR +// +// MessageText: +// +// An operations error occurred. +// +#define ERROR_DS_OPERATIONS_ERROR 8224L + +// +// MessageId: ERROR_DS_PROTOCOL_ERROR +// +// MessageText: +// +// A protocol error occurred. +// +#define ERROR_DS_PROTOCOL_ERROR 8225L + +// +// MessageId: ERROR_DS_TIMELIMIT_EXCEEDED +// +// MessageText: +// +// The time limit for this request was exceeded. +// +#define ERROR_DS_TIMELIMIT_EXCEEDED 8226L + +// +// MessageId: ERROR_DS_SIZELIMIT_EXCEEDED +// +// MessageText: +// +// The size limit for this request was exceeded. +// +#define ERROR_DS_SIZELIMIT_EXCEEDED 8227L + +// +// MessageId: ERROR_DS_ADMIN_LIMIT_EXCEEDED +// +// MessageText: +// +// The administrative limit for this request was exceeded. +// +#define ERROR_DS_ADMIN_LIMIT_EXCEEDED 8228L + +// +// MessageId: ERROR_DS_COMPARE_FALSE +// +// MessageText: +// +// The compare response was false. +// +#define ERROR_DS_COMPARE_FALSE 8229L + +// +// MessageId: ERROR_DS_COMPARE_TRUE +// +// MessageText: +// +// The compare response was true. +// +#define ERROR_DS_COMPARE_TRUE 8230L + +// +// MessageId: ERROR_DS_AUTH_METHOD_NOT_SUPPORTED +// +// MessageText: +// +// The requested authentication method is not supported by the server. +// +#define ERROR_DS_AUTH_METHOD_NOT_SUPPORTED 8231L + +// +// MessageId: ERROR_DS_STRONG_AUTH_REQUIRED +// +// MessageText: +// +// A more secure authentication method is required for this server. +// +#define ERROR_DS_STRONG_AUTH_REQUIRED 8232L + +// +// MessageId: ERROR_DS_INAPPROPRIATE_AUTH +// +// MessageText: +// +// Inappropriate authentication. +// +#define ERROR_DS_INAPPROPRIATE_AUTH 8233L + +// +// MessageId: ERROR_DS_AUTH_UNKNOWN +// +// MessageText: +// +// The authentication mechanism is unknown. +// +#define ERROR_DS_AUTH_UNKNOWN 8234L + +// +// MessageId: ERROR_DS_REFERRAL +// +// MessageText: +// +// A referral was returned from the server. +// +#define ERROR_DS_REFERRAL 8235L + +// +// MessageId: ERROR_DS_UNAVAILABLE_CRIT_EXTENSION +// +// MessageText: +// +// The server does not support the requested critical extension. +// +#define ERROR_DS_UNAVAILABLE_CRIT_EXTENSION 8236L + +// +// MessageId: ERROR_DS_CONFIDENTIALITY_REQUIRED +// +// MessageText: +// +// This request requires a secure connection. +// +#define ERROR_DS_CONFIDENTIALITY_REQUIRED 8237L + +// +// MessageId: ERROR_DS_INAPPROPRIATE_MATCHING +// +// MessageText: +// +// Inappropriate matching. +// +#define ERROR_DS_INAPPROPRIATE_MATCHING 8238L + +// +// MessageId: ERROR_DS_CONSTRAINT_VIOLATION +// +// MessageText: +// +// A constraint violation occurred. +// +#define ERROR_DS_CONSTRAINT_VIOLATION 8239L + +// +// MessageId: ERROR_DS_NO_SUCH_OBJECT +// +// MessageText: +// +// There is no such object on the server. +// +#define ERROR_DS_NO_SUCH_OBJECT 8240L + +// +// MessageId: ERROR_DS_ALIAS_PROBLEM +// +// MessageText: +// +// There is an alias problem. +// +#define ERROR_DS_ALIAS_PROBLEM 8241L + +// +// MessageId: ERROR_DS_INVALID_DN_SYNTAX +// +// MessageText: +// +// An invalid dn syntax has been specified. +// +#define ERROR_DS_INVALID_DN_SYNTAX 8242L + +// +// MessageId: ERROR_DS_IS_LEAF +// +// MessageText: +// +// The object is a leaf object. +// +#define ERROR_DS_IS_LEAF 8243L + +// +// MessageId: ERROR_DS_ALIAS_DEREF_PROBLEM +// +// MessageText: +// +// There is an alias dereferencing problem. +// +#define ERROR_DS_ALIAS_DEREF_PROBLEM 8244L + +// +// MessageId: ERROR_DS_UNWILLING_TO_PERFORM +// +// MessageText: +// +// The server is unwilling to process the request. +// +#define ERROR_DS_UNWILLING_TO_PERFORM 8245L + +// +// MessageId: ERROR_DS_LOOP_DETECT +// +// MessageText: +// +// A loop has been detected. +// +#define ERROR_DS_LOOP_DETECT 8246L + +// +// MessageId: ERROR_DS_NAMING_VIOLATION +// +// MessageText: +// +// There is a naming violation. +// +#define ERROR_DS_NAMING_VIOLATION 8247L + +// +// MessageId: ERROR_DS_OBJECT_RESULTS_TOO_LARGE +// +// MessageText: +// +// The result set is too large. +// +#define ERROR_DS_OBJECT_RESULTS_TOO_LARGE 8248L + +// +// MessageId: ERROR_DS_AFFECTS_MULTIPLE_DSAS +// +// MessageText: +// +// The operation affects multiple DSAs +// +#define ERROR_DS_AFFECTS_MULTIPLE_DSAS 8249L + +// +// MessageId: ERROR_DS_SERVER_DOWN +// +// MessageText: +// +// The server is not operational. +// +#define ERROR_DS_SERVER_DOWN 8250L + +// +// MessageId: ERROR_DS_LOCAL_ERROR +// +// MessageText: +// +// A local error has occurred. +// +#define ERROR_DS_LOCAL_ERROR 8251L + +// +// MessageId: ERROR_DS_ENCODING_ERROR +// +// MessageText: +// +// An encoding error has occurred. +// +#define ERROR_DS_ENCODING_ERROR 8252L + +// +// MessageId: ERROR_DS_DECODING_ERROR +// +// MessageText: +// +// A decoding error has occurred. +// +#define ERROR_DS_DECODING_ERROR 8253L + +// +// MessageId: ERROR_DS_FILTER_UNKNOWN +// +// MessageText: +// +// The search filter cannot be recognized. +// +#define ERROR_DS_FILTER_UNKNOWN 8254L + +// +// MessageId: ERROR_DS_PARAM_ERROR +// +// MessageText: +// +// One or more parameters are illegal. +// +#define ERROR_DS_PARAM_ERROR 8255L + +// +// MessageId: ERROR_DS_NOT_SUPPORTED +// +// MessageText: +// +// The specified method is not supported. +// +#define ERROR_DS_NOT_SUPPORTED 8256L + +// +// MessageId: ERROR_DS_NO_RESULTS_RETURNED +// +// MessageText: +// +// No results were returned. +// +#define ERROR_DS_NO_RESULTS_RETURNED 8257L + +// +// MessageId: ERROR_DS_CONTROL_NOT_FOUND +// +// MessageText: +// +// The specified control is not supported by the server. +// +#define ERROR_DS_CONTROL_NOT_FOUND 8258L + +// +// MessageId: ERROR_DS_CLIENT_LOOP +// +// MessageText: +// +// A referral loop was detected by the client. +// +#define ERROR_DS_CLIENT_LOOP 8259L + +// +// MessageId: ERROR_DS_REFERRAL_LIMIT_EXCEEDED +// +// MessageText: +// +// The preset referral limit was exceeded. +// +#define ERROR_DS_REFERRAL_LIMIT_EXCEEDED 8260L + +// +// MessageId: ERROR_DS_SORT_CONTROL_MISSING +// +// MessageText: +// +// The search requires a SORT control. +// +#define ERROR_DS_SORT_CONTROL_MISSING 8261L + +// +// MessageId: ERROR_DS_OFFSET_RANGE_ERROR +// +// MessageText: +// +// The search results exceed the offset range specified. +// +#define ERROR_DS_OFFSET_RANGE_ERROR 8262L + +// +// MessageId: ERROR_DS_RIDMGR_DISABLED +// +// MessageText: +// +// The directory service detected the subsystem that allocates relative identifiers is disabled. This can occur as a protective mechanism when the system determines a significant portion of relative identifiers (RIDs) have been exhausted. Please see http://go.microsoft.com/fwlink/?LinkId=228610 for recommended diagnostic steps and the procedure to re-enable account creation. +// +#define ERROR_DS_RIDMGR_DISABLED 8263L + +// +// MessageId: ERROR_DS_ROOT_MUST_BE_NC +// +// MessageText: +// +// The root object must be the head of a naming context. The root object cannot have an instantiated parent. +// +#define ERROR_DS_ROOT_MUST_BE_NC 8301L + +// +// MessageId: ERROR_DS_ADD_REPLICA_INHIBITED +// +// MessageText: +// +// The add replica operation cannot be performed. The naming context must be writeable in order to create the replica. +// +#define ERROR_DS_ADD_REPLICA_INHIBITED 8302L + +// +// MessageId: ERROR_DS_ATT_NOT_DEF_IN_SCHEMA +// +// MessageText: +// +// A reference to an attribute that is not defined in the schema occurred. +// +#define ERROR_DS_ATT_NOT_DEF_IN_SCHEMA 8303L + +// +// MessageId: ERROR_DS_MAX_OBJ_SIZE_EXCEEDED +// +// MessageText: +// +// The maximum size of an object has been exceeded. +// +#define ERROR_DS_MAX_OBJ_SIZE_EXCEEDED 8304L + +// +// MessageId: ERROR_DS_OBJ_STRING_NAME_EXISTS +// +// MessageText: +// +// An attempt was made to add an object to the directory with a name that is already in use. +// +#define ERROR_DS_OBJ_STRING_NAME_EXISTS 8305L + +// +// MessageId: ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA +// +// MessageText: +// +// An attempt was made to add an object of a class that does not have an RDN defined in the schema. +// +#define ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA 8306L + +// +// MessageId: ERROR_DS_RDN_DOESNT_MATCH_SCHEMA +// +// MessageText: +// +// An attempt was made to add an object using an RDN that is not the RDN defined in the schema. +// +#define ERROR_DS_RDN_DOESNT_MATCH_SCHEMA 8307L + +// +// MessageId: ERROR_DS_NO_REQUESTED_ATTS_FOUND +// +// MessageText: +// +// None of the requested attributes were found on the objects. +// +#define ERROR_DS_NO_REQUESTED_ATTS_FOUND 8308L + +// +// MessageId: ERROR_DS_USER_BUFFER_TO_SMALL +// +// MessageText: +// +// The user buffer is too small. +// +#define ERROR_DS_USER_BUFFER_TO_SMALL 8309L + +// +// MessageId: ERROR_DS_ATT_IS_NOT_ON_OBJ +// +// MessageText: +// +// The attribute specified in the operation is not present on the object. +// +#define ERROR_DS_ATT_IS_NOT_ON_OBJ 8310L + +// +// MessageId: ERROR_DS_ILLEGAL_MOD_OPERATION +// +// MessageText: +// +// Illegal modify operation. Some aspect of the modification is not permitted. +// +#define ERROR_DS_ILLEGAL_MOD_OPERATION 8311L + +// +// MessageId: ERROR_DS_OBJ_TOO_LARGE +// +// MessageText: +// +// The specified object is too large. +// +#define ERROR_DS_OBJ_TOO_LARGE 8312L + +// +// MessageId: ERROR_DS_BAD_INSTANCE_TYPE +// +// MessageText: +// +// The specified instance type is not valid. +// +#define ERROR_DS_BAD_INSTANCE_TYPE 8313L + +// +// MessageId: ERROR_DS_MASTERDSA_REQUIRED +// +// MessageText: +// +// The operation must be performed at a master DSA. +// +#define ERROR_DS_MASTERDSA_REQUIRED 8314L + +// +// MessageId: ERROR_DS_OBJECT_CLASS_REQUIRED +// +// MessageText: +// +// The object class attribute must be specified. +// +#define ERROR_DS_OBJECT_CLASS_REQUIRED 8315L + +// +// MessageId: ERROR_DS_MISSING_REQUIRED_ATT +// +// MessageText: +// +// A required attribute is missing. +// +#define ERROR_DS_MISSING_REQUIRED_ATT 8316L + +// +// MessageId: ERROR_DS_ATT_NOT_DEF_FOR_CLASS +// +// MessageText: +// +// An attempt was made to modify an object to include an attribute that is not legal for its class. +// +#define ERROR_DS_ATT_NOT_DEF_FOR_CLASS 8317L + +// +// MessageId: ERROR_DS_ATT_ALREADY_EXISTS +// +// MessageText: +// +// The specified attribute is already present on the object. +// +#define ERROR_DS_ATT_ALREADY_EXISTS 8318L + +// 8319 unused +// +// MessageId: ERROR_DS_CANT_ADD_ATT_VALUES +// +// MessageText: +// +// The specified attribute is not present, or has no values. +// +#define ERROR_DS_CANT_ADD_ATT_VALUES 8320L + +// +// MessageId: ERROR_DS_SINGLE_VALUE_CONSTRAINT +// +// MessageText: +// +// Multiple values were specified for an attribute that can have only one value. +// +#define ERROR_DS_SINGLE_VALUE_CONSTRAINT 8321L + +// +// MessageId: ERROR_DS_RANGE_CONSTRAINT +// +// MessageText: +// +// A value for the attribute was not in the acceptable range of values. +// +#define ERROR_DS_RANGE_CONSTRAINT 8322L + +// +// MessageId: ERROR_DS_ATT_VAL_ALREADY_EXISTS +// +// MessageText: +// +// The specified value already exists. +// +#define ERROR_DS_ATT_VAL_ALREADY_EXISTS 8323L + +// +// MessageId: ERROR_DS_CANT_REM_MISSING_ATT +// +// MessageText: +// +// The attribute cannot be removed because it is not present on the object. +// +#define ERROR_DS_CANT_REM_MISSING_ATT 8324L + +// +// MessageId: ERROR_DS_CANT_REM_MISSING_ATT_VAL +// +// MessageText: +// +// The attribute value cannot be removed because it is not present on the object. +// +#define ERROR_DS_CANT_REM_MISSING_ATT_VAL 8325L + +// +// MessageId: ERROR_DS_ROOT_CANT_BE_SUBREF +// +// MessageText: +// +// The specified root object cannot be a subref. +// +#define ERROR_DS_ROOT_CANT_BE_SUBREF 8326L + +// +// MessageId: ERROR_DS_NO_CHAINING +// +// MessageText: +// +// Chaining is not permitted. +// +#define ERROR_DS_NO_CHAINING 8327L + +// +// MessageId: ERROR_DS_NO_CHAINED_EVAL +// +// MessageText: +// +// Chained evaluation is not permitted. +// +#define ERROR_DS_NO_CHAINED_EVAL 8328L + +// +// MessageId: ERROR_DS_NO_PARENT_OBJECT +// +// MessageText: +// +// The operation could not be performed because the object's parent is either uninstantiated or deleted. +// +#define ERROR_DS_NO_PARENT_OBJECT 8329L + +// +// MessageId: ERROR_DS_PARENT_IS_AN_ALIAS +// +// MessageText: +// +// Having a parent that is an alias is not permitted. Aliases are leaf objects. +// +#define ERROR_DS_PARENT_IS_AN_ALIAS 8330L + +// +// MessageId: ERROR_DS_CANT_MIX_MASTER_AND_REPS +// +// MessageText: +// +// The object and parent must be of the same type, either both masters or both replicas. +// +#define ERROR_DS_CANT_MIX_MASTER_AND_REPS 8331L + +// +// MessageId: ERROR_DS_CHILDREN_EXIST +// +// MessageText: +// +// The operation cannot be performed because child objects exist. This operation can only be performed on a leaf object. +// +#define ERROR_DS_CHILDREN_EXIST 8332L + +// +// MessageId: ERROR_DS_OBJ_NOT_FOUND +// +// MessageText: +// +// Directory object not found. +// +#define ERROR_DS_OBJ_NOT_FOUND 8333L + +// +// MessageId: ERROR_DS_ALIASED_OBJ_MISSING +// +// MessageText: +// +// The aliased object is missing. +// +#define ERROR_DS_ALIASED_OBJ_MISSING 8334L + +// +// MessageId: ERROR_DS_BAD_NAME_SYNTAX +// +// MessageText: +// +// The object name has bad syntax. +// +#define ERROR_DS_BAD_NAME_SYNTAX 8335L + +// +// MessageId: ERROR_DS_ALIAS_POINTS_TO_ALIAS +// +// MessageText: +// +// It is not permitted for an alias to refer to another alias. +// +#define ERROR_DS_ALIAS_POINTS_TO_ALIAS 8336L + +// +// MessageId: ERROR_DS_CANT_DEREF_ALIAS +// +// MessageText: +// +// The alias cannot be dereferenced. +// +#define ERROR_DS_CANT_DEREF_ALIAS 8337L + +// +// MessageId: ERROR_DS_OUT_OF_SCOPE +// +// MessageText: +// +// The operation is out of scope. +// +#define ERROR_DS_OUT_OF_SCOPE 8338L + +// +// MessageId: ERROR_DS_OBJECT_BEING_REMOVED +// +// MessageText: +// +// The operation cannot continue because the object is in the process of being removed. +// +#define ERROR_DS_OBJECT_BEING_REMOVED 8339L + +// +// MessageId: ERROR_DS_CANT_DELETE_DSA_OBJ +// +// MessageText: +// +// The DSA object cannot be deleted. +// +#define ERROR_DS_CANT_DELETE_DSA_OBJ 8340L + +// +// MessageId: ERROR_DS_GENERIC_ERROR +// +// MessageText: +// +// A directory service error has occurred. +// +#define ERROR_DS_GENERIC_ERROR 8341L + +// +// MessageId: ERROR_DS_DSA_MUST_BE_INT_MASTER +// +// MessageText: +// +// The operation can only be performed on an internal master DSA object. +// +#define ERROR_DS_DSA_MUST_BE_INT_MASTER 8342L + +// +// MessageId: ERROR_DS_CLASS_NOT_DSA +// +// MessageText: +// +// The object must be of class DSA. +// +#define ERROR_DS_CLASS_NOT_DSA 8343L + +// +// MessageId: ERROR_DS_INSUFF_ACCESS_RIGHTS +// +// MessageText: +// +// Insufficient access rights to perform the operation. +// +#define ERROR_DS_INSUFF_ACCESS_RIGHTS 8344L + +// +// MessageId: ERROR_DS_ILLEGAL_SUPERIOR +// +// MessageText: +// +// The object cannot be added because the parent is not on the list of possible superiors. +// +#define ERROR_DS_ILLEGAL_SUPERIOR 8345L + +// +// MessageId: ERROR_DS_ATTRIBUTE_OWNED_BY_SAM +// +// MessageText: +// +// Access to the attribute is not permitted because the attribute is owned by the Security Accounts Manager (SAM). +// +#define ERROR_DS_ATTRIBUTE_OWNED_BY_SAM 8346L + +// +// MessageId: ERROR_DS_NAME_TOO_MANY_PARTS +// +// MessageText: +// +// The name has too many parts. +// +#define ERROR_DS_NAME_TOO_MANY_PARTS 8347L + +// +// MessageId: ERROR_DS_NAME_TOO_LONG +// +// MessageText: +// +// The name is too long. +// +#define ERROR_DS_NAME_TOO_LONG 8348L + +// +// MessageId: ERROR_DS_NAME_VALUE_TOO_LONG +// +// MessageText: +// +// The name value is too long. +// +#define ERROR_DS_NAME_VALUE_TOO_LONG 8349L + +// +// MessageId: ERROR_DS_NAME_UNPARSEABLE +// +// MessageText: +// +// The directory service encountered an error parsing a name. +// +#define ERROR_DS_NAME_UNPARSEABLE 8350L + +// +// MessageId: ERROR_DS_NAME_TYPE_UNKNOWN +// +// MessageText: +// +// The directory service cannot get the attribute type for a name. +// +#define ERROR_DS_NAME_TYPE_UNKNOWN 8351L + +// +// MessageId: ERROR_DS_NOT_AN_OBJECT +// +// MessageText: +// +// The name does not identify an object; the name identifies a phantom. +// +#define ERROR_DS_NOT_AN_OBJECT 8352L + +// +// MessageId: ERROR_DS_SEC_DESC_TOO_SHORT +// +// MessageText: +// +// The security descriptor is too short. +// +#define ERROR_DS_SEC_DESC_TOO_SHORT 8353L + +// +// MessageId: ERROR_DS_SEC_DESC_INVALID +// +// MessageText: +// +// The security descriptor is invalid. +// +#define ERROR_DS_SEC_DESC_INVALID 8354L + +// +// MessageId: ERROR_DS_NO_DELETED_NAME +// +// MessageText: +// +// Failed to create name for deleted object. +// +#define ERROR_DS_NO_DELETED_NAME 8355L + +// +// MessageId: ERROR_DS_SUBREF_MUST_HAVE_PARENT +// +// MessageText: +// +// The parent of a new subref must exist. +// +#define ERROR_DS_SUBREF_MUST_HAVE_PARENT 8356L + +// +// MessageId: ERROR_DS_NCNAME_MUST_BE_NC +// +// MessageText: +// +// The object must be a naming context. +// +#define ERROR_DS_NCNAME_MUST_BE_NC 8357L + +// +// MessageId: ERROR_DS_CANT_ADD_SYSTEM_ONLY +// +// MessageText: +// +// It is not permitted to add an attribute which is owned by the system. +// +#define ERROR_DS_CANT_ADD_SYSTEM_ONLY 8358L + +// +// MessageId: ERROR_DS_CLASS_MUST_BE_CONCRETE +// +// MessageText: +// +// The class of the object must be structural; you cannot instantiate an abstract class. +// +#define ERROR_DS_CLASS_MUST_BE_CONCRETE 8359L + +// +// MessageId: ERROR_DS_INVALID_DMD +// +// MessageText: +// +// The schema object could not be found. +// +#define ERROR_DS_INVALID_DMD 8360L + +// +// MessageId: ERROR_DS_OBJ_GUID_EXISTS +// +// MessageText: +// +// A local object with this GUID (dead or alive) already exists. +// +#define ERROR_DS_OBJ_GUID_EXISTS 8361L + +// +// MessageId: ERROR_DS_NOT_ON_BACKLINK +// +// MessageText: +// +// The operation cannot be performed on a back link. +// +#define ERROR_DS_NOT_ON_BACKLINK 8362L + +// +// MessageId: ERROR_DS_NO_CROSSREF_FOR_NC +// +// MessageText: +// +// The cross reference for the specified naming context could not be found. +// +#define ERROR_DS_NO_CROSSREF_FOR_NC 8363L + +// +// MessageId: ERROR_DS_SHUTTING_DOWN +// +// MessageText: +// +// The operation could not be performed because the directory service is shutting down. +// +#define ERROR_DS_SHUTTING_DOWN 8364L + +// +// MessageId: ERROR_DS_UNKNOWN_OPERATION +// +// MessageText: +// +// The directory service request is invalid. +// +#define ERROR_DS_UNKNOWN_OPERATION 8365L + +// +// MessageId: ERROR_DS_INVALID_ROLE_OWNER +// +// MessageText: +// +// The role owner attribute could not be read. +// +#define ERROR_DS_INVALID_ROLE_OWNER 8366L + +// +// MessageId: ERROR_DS_COULDNT_CONTACT_FSMO +// +// MessageText: +// +// The requested FSMO operation failed. The current FSMO holder could not be contacted. +// +#define ERROR_DS_COULDNT_CONTACT_FSMO 8367L + +// +// MessageId: ERROR_DS_CROSS_NC_DN_RENAME +// +// MessageText: +// +// Modification of a DN across a naming context is not permitted. +// +#define ERROR_DS_CROSS_NC_DN_RENAME 8368L + +// +// MessageId: ERROR_DS_CANT_MOD_SYSTEM_ONLY +// +// MessageText: +// +// The attribute cannot be modified because it is owned by the system. +// +#define ERROR_DS_CANT_MOD_SYSTEM_ONLY 8369L + +// +// MessageId: ERROR_DS_REPLICATOR_ONLY +// +// MessageText: +// +// Only the replicator can perform this function. +// +#define ERROR_DS_REPLICATOR_ONLY 8370L + +// +// MessageId: ERROR_DS_OBJ_CLASS_NOT_DEFINED +// +// MessageText: +// +// The specified class is not defined. +// +#define ERROR_DS_OBJ_CLASS_NOT_DEFINED 8371L + +// +// MessageId: ERROR_DS_OBJ_CLASS_NOT_SUBCLASS +// +// MessageText: +// +// The specified class is not a subclass. +// +#define ERROR_DS_OBJ_CLASS_NOT_SUBCLASS 8372L + +// +// MessageId: ERROR_DS_NAME_REFERENCE_INVALID +// +// MessageText: +// +// The name reference is invalid. +// +#define ERROR_DS_NAME_REFERENCE_INVALID 8373L + +// +// MessageId: ERROR_DS_CROSS_REF_EXISTS +// +// MessageText: +// +// A cross reference already exists. +// +#define ERROR_DS_CROSS_REF_EXISTS 8374L + +// +// MessageId: ERROR_DS_CANT_DEL_MASTER_CROSSREF +// +// MessageText: +// +// It is not permitted to delete a master cross reference. +// +#define ERROR_DS_CANT_DEL_MASTER_CROSSREF 8375L + +// +// MessageId: ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD +// +// MessageText: +// +// Subtree notifications are only supported on NC heads. +// +#define ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD 8376L + +// +// MessageId: ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX +// +// MessageText: +// +// Notification filter is too complex. +// +#define ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX 8377L + +// +// MessageId: ERROR_DS_DUP_RDN +// +// MessageText: +// +// Schema update failed: duplicate RDN. +// +#define ERROR_DS_DUP_RDN 8378L + +// +// MessageId: ERROR_DS_DUP_OID +// +// MessageText: +// +// Schema update failed: duplicate OID. +// +#define ERROR_DS_DUP_OID 8379L + +// +// MessageId: ERROR_DS_DUP_MAPI_ID +// +// MessageText: +// +// Schema update failed: duplicate MAPI identifier. +// +#define ERROR_DS_DUP_MAPI_ID 8380L + +// +// MessageId: ERROR_DS_DUP_SCHEMA_ID_GUID +// +// MessageText: +// +// Schema update failed: duplicate schema-id GUID. +// +#define ERROR_DS_DUP_SCHEMA_ID_GUID 8381L + +// +// MessageId: ERROR_DS_DUP_LDAP_DISPLAY_NAME +// +// MessageText: +// +// Schema update failed: duplicate LDAP display name. +// +#define ERROR_DS_DUP_LDAP_DISPLAY_NAME 8382L + +// +// MessageId: ERROR_DS_SEMANTIC_ATT_TEST +// +// MessageText: +// +// Schema update failed: range-lower less than range upper. +// +#define ERROR_DS_SEMANTIC_ATT_TEST 8383L + +// +// MessageId: ERROR_DS_SYNTAX_MISMATCH +// +// MessageText: +// +// Schema update failed: syntax mismatch. +// +#define ERROR_DS_SYNTAX_MISMATCH 8384L + +// +// MessageId: ERROR_DS_EXISTS_IN_MUST_HAVE +// +// MessageText: +// +// Schema deletion failed: attribute is used in must-contain. +// +#define ERROR_DS_EXISTS_IN_MUST_HAVE 8385L + +// +// MessageId: ERROR_DS_EXISTS_IN_MAY_HAVE +// +// MessageText: +// +// Schema deletion failed: attribute is used in may-contain. +// +#define ERROR_DS_EXISTS_IN_MAY_HAVE 8386L + +// +// MessageId: ERROR_DS_NONEXISTENT_MAY_HAVE +// +// MessageText: +// +// Schema update failed: attribute in may-contain does not exist. +// +#define ERROR_DS_NONEXISTENT_MAY_HAVE 8387L + +// +// MessageId: ERROR_DS_NONEXISTENT_MUST_HAVE +// +// MessageText: +// +// Schema update failed: attribute in must-contain does not exist. +// +#define ERROR_DS_NONEXISTENT_MUST_HAVE 8388L + +// +// MessageId: ERROR_DS_AUX_CLS_TEST_FAIL +// +// MessageText: +// +// Schema update failed: class in aux-class list does not exist or is not an auxiliary class. +// +#define ERROR_DS_AUX_CLS_TEST_FAIL 8389L + +// +// MessageId: ERROR_DS_NONEXISTENT_POSS_SUP +// +// MessageText: +// +// Schema update failed: class in poss-superiors does not exist. +// +#define ERROR_DS_NONEXISTENT_POSS_SUP 8390L + +// +// MessageId: ERROR_DS_SUB_CLS_TEST_FAIL +// +// MessageText: +// +// Schema update failed: class in subclassof list does not exist or does not satisfy hierarchy rules. +// +#define ERROR_DS_SUB_CLS_TEST_FAIL 8391L + +// +// MessageId: ERROR_DS_BAD_RDN_ATT_ID_SYNTAX +// +// MessageText: +// +// Schema update failed: Rdn-Att-Id has wrong syntax. +// +#define ERROR_DS_BAD_RDN_ATT_ID_SYNTAX 8392L + +// +// MessageId: ERROR_DS_EXISTS_IN_AUX_CLS +// +// MessageText: +// +// Schema deletion failed: class is used as auxiliary class. +// +#define ERROR_DS_EXISTS_IN_AUX_CLS 8393L + +// +// MessageId: ERROR_DS_EXISTS_IN_SUB_CLS +// +// MessageText: +// +// Schema deletion failed: class is used as sub class. +// +#define ERROR_DS_EXISTS_IN_SUB_CLS 8394L + +// +// MessageId: ERROR_DS_EXISTS_IN_POSS_SUP +// +// MessageText: +// +// Schema deletion failed: class is used as poss superior. +// +#define ERROR_DS_EXISTS_IN_POSS_SUP 8395L + +// +// MessageId: ERROR_DS_RECALCSCHEMA_FAILED +// +// MessageText: +// +// Schema update failed in recalculating validation cache. +// +#define ERROR_DS_RECALCSCHEMA_FAILED 8396L + +// +// MessageId: ERROR_DS_TREE_DELETE_NOT_FINISHED +// +// MessageText: +// +// The tree deletion is not finished. The request must be made again to continue deleting the tree. +// +#define ERROR_DS_TREE_DELETE_NOT_FINISHED 8397L + +// +// MessageId: ERROR_DS_CANT_DELETE +// +// MessageText: +// +// The requested delete operation could not be performed. +// +#define ERROR_DS_CANT_DELETE 8398L + +// +// MessageId: ERROR_DS_ATT_SCHEMA_REQ_ID +// +// MessageText: +// +// Cannot read the governs class identifier for the schema record. +// +#define ERROR_DS_ATT_SCHEMA_REQ_ID 8399L + +// +// MessageId: ERROR_DS_BAD_ATT_SCHEMA_SYNTAX +// +// MessageText: +// +// The attribute schema has bad syntax. +// +#define ERROR_DS_BAD_ATT_SCHEMA_SYNTAX 8400L + +// +// MessageId: ERROR_DS_CANT_CACHE_ATT +// +// MessageText: +// +// The attribute could not be cached. +// +#define ERROR_DS_CANT_CACHE_ATT 8401L + +// +// MessageId: ERROR_DS_CANT_CACHE_CLASS +// +// MessageText: +// +// The class could not be cached. +// +#define ERROR_DS_CANT_CACHE_CLASS 8402L + +// +// MessageId: ERROR_DS_CANT_REMOVE_ATT_CACHE +// +// MessageText: +// +// The attribute could not be removed from the cache. +// +#define ERROR_DS_CANT_REMOVE_ATT_CACHE 8403L + +// +// MessageId: ERROR_DS_CANT_REMOVE_CLASS_CACHE +// +// MessageText: +// +// The class could not be removed from the cache. +// +#define ERROR_DS_CANT_REMOVE_CLASS_CACHE 8404L + +// +// MessageId: ERROR_DS_CANT_RETRIEVE_DN +// +// MessageText: +// +// The distinguished name attribute could not be read. +// +#define ERROR_DS_CANT_RETRIEVE_DN 8405L + +// +// MessageId: ERROR_DS_MISSING_SUPREF +// +// MessageText: +// +// No superior reference has been configured for the directory service. The directory service is therefore unable to issue referrals to objects outside this forest. +// +#define ERROR_DS_MISSING_SUPREF 8406L + +// +// MessageId: ERROR_DS_CANT_RETRIEVE_INSTANCE +// +// MessageText: +// +// The instance type attribute could not be retrieved. +// +#define ERROR_DS_CANT_RETRIEVE_INSTANCE 8407L + +// +// MessageId: ERROR_DS_CODE_INCONSISTENCY +// +// MessageText: +// +// An internal error has occurred. +// +#define ERROR_DS_CODE_INCONSISTENCY 8408L + +// +// MessageId: ERROR_DS_DATABASE_ERROR +// +// MessageText: +// +// A database error has occurred. +// +#define ERROR_DS_DATABASE_ERROR 8409L + +// +// MessageId: ERROR_DS_GOVERNSID_MISSING +// +// MessageText: +// +// The attribute GOVERNSID is missing. +// +#define ERROR_DS_GOVERNSID_MISSING 8410L + +// +// MessageId: ERROR_DS_MISSING_EXPECTED_ATT +// +// MessageText: +// +// An expected attribute is missing. +// +#define ERROR_DS_MISSING_EXPECTED_ATT 8411L + +// +// MessageId: ERROR_DS_NCNAME_MISSING_CR_REF +// +// MessageText: +// +// The specified naming context is missing a cross reference. +// +#define ERROR_DS_NCNAME_MISSING_CR_REF 8412L + +// +// MessageId: ERROR_DS_SECURITY_CHECKING_ERROR +// +// MessageText: +// +// A security checking error has occurred. +// +#define ERROR_DS_SECURITY_CHECKING_ERROR 8413L + +// +// MessageId: ERROR_DS_SCHEMA_NOT_LOADED +// +// MessageText: +// +// The schema is not loaded. +// +#define ERROR_DS_SCHEMA_NOT_LOADED 8414L + +// +// MessageId: ERROR_DS_SCHEMA_ALLOC_FAILED +// +// MessageText: +// +// Schema allocation failed. Please check if the machine is running low on memory. +// +#define ERROR_DS_SCHEMA_ALLOC_FAILED 8415L + +// +// MessageId: ERROR_DS_ATT_SCHEMA_REQ_SYNTAX +// +// MessageText: +// +// Failed to obtain the required syntax for the attribute schema. +// +#define ERROR_DS_ATT_SCHEMA_REQ_SYNTAX 8416L + +// +// MessageId: ERROR_DS_GCVERIFY_ERROR +// +// MessageText: +// +// The global catalog verification failed. The global catalog is not available or does not support the operation. Some part of the directory is currently not available. +// +#define ERROR_DS_GCVERIFY_ERROR 8417L + +// +// MessageId: ERROR_DS_DRA_SCHEMA_MISMATCH +// +// MessageText: +// +// The replication operation failed because of a schema mismatch between the servers involved. +// +#define ERROR_DS_DRA_SCHEMA_MISMATCH 8418L + +// +// MessageId: ERROR_DS_CANT_FIND_DSA_OBJ +// +// MessageText: +// +// The DSA object could not be found. +// +#define ERROR_DS_CANT_FIND_DSA_OBJ 8419L + +// +// MessageId: ERROR_DS_CANT_FIND_EXPECTED_NC +// +// MessageText: +// +// The naming context could not be found. +// +#define ERROR_DS_CANT_FIND_EXPECTED_NC 8420L + +// +// MessageId: ERROR_DS_CANT_FIND_NC_IN_CACHE +// +// MessageText: +// +// The naming context could not be found in the cache. +// +#define ERROR_DS_CANT_FIND_NC_IN_CACHE 8421L + +// +// MessageId: ERROR_DS_CANT_RETRIEVE_CHILD +// +// MessageText: +// +// The child object could not be retrieved. +// +#define ERROR_DS_CANT_RETRIEVE_CHILD 8422L + +// +// MessageId: ERROR_DS_SECURITY_ILLEGAL_MODIFY +// +// MessageText: +// +// The modification was not permitted for security reasons. +// +#define ERROR_DS_SECURITY_ILLEGAL_MODIFY 8423L + +// +// MessageId: ERROR_DS_CANT_REPLACE_HIDDEN_REC +// +// MessageText: +// +// The operation cannot replace the hidden record. +// +#define ERROR_DS_CANT_REPLACE_HIDDEN_REC 8424L + +// +// MessageId: ERROR_DS_BAD_HIERARCHY_FILE +// +// MessageText: +// +// The hierarchy file is invalid. +// +#define ERROR_DS_BAD_HIERARCHY_FILE 8425L + +// +// MessageId: ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED +// +// MessageText: +// +// The attempt to build the hierarchy table failed. +// +#define ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED 8426L + +// +// MessageId: ERROR_DS_CONFIG_PARAM_MISSING +// +// MessageText: +// +// The directory configuration parameter is missing from the registry. +// +#define ERROR_DS_CONFIG_PARAM_MISSING 8427L + +// +// MessageId: ERROR_DS_COUNTING_AB_INDICES_FAILED +// +// MessageText: +// +// The attempt to count the address book indices failed. +// +#define ERROR_DS_COUNTING_AB_INDICES_FAILED 8428L + +// +// MessageId: ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED +// +// MessageText: +// +// The allocation of the hierarchy table failed. +// +#define ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED 8429L + +// +// MessageId: ERROR_DS_INTERNAL_FAILURE +// +// MessageText: +// +// The directory service encountered an internal failure. +// +#define ERROR_DS_INTERNAL_FAILURE 8430L + +// +// MessageId: ERROR_DS_UNKNOWN_ERROR +// +// MessageText: +// +// The directory service encountered an unknown failure. +// +#define ERROR_DS_UNKNOWN_ERROR 8431L + +// +// MessageId: ERROR_DS_ROOT_REQUIRES_CLASS_TOP +// +// MessageText: +// +// A root object requires a class of 'top'. +// +#define ERROR_DS_ROOT_REQUIRES_CLASS_TOP 8432L + +// +// MessageId: ERROR_DS_REFUSING_FSMO_ROLES +// +// MessageText: +// +// This directory server is shutting down, and cannot take ownership of new floating single-master operation roles. +// +#define ERROR_DS_REFUSING_FSMO_ROLES 8433L + +// +// MessageId: ERROR_DS_MISSING_FSMO_SETTINGS +// +// MessageText: +// +// The directory service is missing mandatory configuration information, and is unable to determine the ownership of floating single-master operation roles. +// +#define ERROR_DS_MISSING_FSMO_SETTINGS 8434L + +// +// MessageId: ERROR_DS_UNABLE_TO_SURRENDER_ROLES +// +// MessageText: +// +// The directory service was unable to transfer ownership of one or more floating single-master operation roles to other servers. +// +#define ERROR_DS_UNABLE_TO_SURRENDER_ROLES 8435L + +// +// MessageId: ERROR_DS_DRA_GENERIC +// +// MessageText: +// +// The replication operation failed. +// +#define ERROR_DS_DRA_GENERIC 8436L + +// +// MessageId: ERROR_DS_DRA_INVALID_PARAMETER +// +// MessageText: +// +// An invalid parameter was specified for this replication operation. +// +#define ERROR_DS_DRA_INVALID_PARAMETER 8437L + +// +// MessageId: ERROR_DS_DRA_BUSY +// +// MessageText: +// +// The directory service is too busy to complete the replication operation at this time. +// +#define ERROR_DS_DRA_BUSY 8438L + +// +// MessageId: ERROR_DS_DRA_BAD_DN +// +// MessageText: +// +// The distinguished name specified for this replication operation is invalid. +// +#define ERROR_DS_DRA_BAD_DN 8439L + +// +// MessageId: ERROR_DS_DRA_BAD_NC +// +// MessageText: +// +// The naming context specified for this replication operation is invalid. +// +#define ERROR_DS_DRA_BAD_NC 8440L + +// +// MessageId: ERROR_DS_DRA_DN_EXISTS +// +// MessageText: +// +// The distinguished name specified for this replication operation already exists. +// +#define ERROR_DS_DRA_DN_EXISTS 8441L + +// +// MessageId: ERROR_DS_DRA_INTERNAL_ERROR +// +// MessageText: +// +// The replication system encountered an internal error. +// +#define ERROR_DS_DRA_INTERNAL_ERROR 8442L + +// +// MessageId: ERROR_DS_DRA_INCONSISTENT_DIT +// +// MessageText: +// +// The replication operation encountered a database inconsistency. +// +#define ERROR_DS_DRA_INCONSISTENT_DIT 8443L + +// +// MessageId: ERROR_DS_DRA_CONNECTION_FAILED +// +// MessageText: +// +// The server specified for this replication operation could not be contacted. +// +#define ERROR_DS_DRA_CONNECTION_FAILED 8444L + +// +// MessageId: ERROR_DS_DRA_BAD_INSTANCE_TYPE +// +// MessageText: +// +// The replication operation encountered an object with an invalid instance type. +// +#define ERROR_DS_DRA_BAD_INSTANCE_TYPE 8445L + +// +// MessageId: ERROR_DS_DRA_OUT_OF_MEM +// +// MessageText: +// +// The replication operation failed to allocate memory. +// +#define ERROR_DS_DRA_OUT_OF_MEM 8446L + +// +// MessageId: ERROR_DS_DRA_MAIL_PROBLEM +// +// MessageText: +// +// The replication operation encountered an error with the mail system. +// +#define ERROR_DS_DRA_MAIL_PROBLEM 8447L + +// +// MessageId: ERROR_DS_DRA_REF_ALREADY_EXISTS +// +// MessageText: +// +// The replication reference information for the target server already exists. +// +#define ERROR_DS_DRA_REF_ALREADY_EXISTS 8448L + +// +// MessageId: ERROR_DS_DRA_REF_NOT_FOUND +// +// MessageText: +// +// The replication reference information for the target server does not exist. +// +#define ERROR_DS_DRA_REF_NOT_FOUND 8449L + +// +// MessageId: ERROR_DS_DRA_OBJ_IS_REP_SOURCE +// +// MessageText: +// +// The naming context cannot be removed because it is replicated to another server. +// +#define ERROR_DS_DRA_OBJ_IS_REP_SOURCE 8450L + +// +// MessageId: ERROR_DS_DRA_DB_ERROR +// +// MessageText: +// +// The replication operation encountered a database error. +// +#define ERROR_DS_DRA_DB_ERROR 8451L + +// +// MessageId: ERROR_DS_DRA_NO_REPLICA +// +// MessageText: +// +// The naming context is in the process of being removed or is not replicated from the specified server. +// +#define ERROR_DS_DRA_NO_REPLICA 8452L + +// +// MessageId: ERROR_DS_DRA_ACCESS_DENIED +// +// MessageText: +// +// Replication access was denied. +// +#define ERROR_DS_DRA_ACCESS_DENIED 8453L + +// +// MessageId: ERROR_DS_DRA_NOT_SUPPORTED +// +// MessageText: +// +// The requested operation is not supported by this version of the directory service. +// +#define ERROR_DS_DRA_NOT_SUPPORTED 8454L + +// +// MessageId: ERROR_DS_DRA_RPC_CANCELLED +// +// MessageText: +// +// The replication remote procedure call was cancelled. +// +#define ERROR_DS_DRA_RPC_CANCELLED 8455L + +// +// MessageId: ERROR_DS_DRA_SOURCE_DISABLED +// +// MessageText: +// +// The source server is currently rejecting replication requests. +// +#define ERROR_DS_DRA_SOURCE_DISABLED 8456L + +// +// MessageId: ERROR_DS_DRA_SINK_DISABLED +// +// MessageText: +// +// The destination server is currently rejecting replication requests. +// +#define ERROR_DS_DRA_SINK_DISABLED 8457L + +// +// MessageId: ERROR_DS_DRA_NAME_COLLISION +// +// MessageText: +// +// The replication operation failed due to a collision of object names. +// +#define ERROR_DS_DRA_NAME_COLLISION 8458L + +// +// MessageId: ERROR_DS_DRA_SOURCE_REINSTALLED +// +// MessageText: +// +// The replication source has been reinstalled. +// +#define ERROR_DS_DRA_SOURCE_REINSTALLED 8459L + +// +// MessageId: ERROR_DS_DRA_MISSING_PARENT +// +// MessageText: +// +// The replication operation failed because a required parent object is missing. +// +#define ERROR_DS_DRA_MISSING_PARENT 8460L + +// +// MessageId: ERROR_DS_DRA_PREEMPTED +// +// MessageText: +// +// The replication operation was preempted. +// +#define ERROR_DS_DRA_PREEMPTED 8461L + +// +// MessageId: ERROR_DS_DRA_ABANDON_SYNC +// +// MessageText: +// +// The replication synchronization attempt was abandoned because of a lack of updates. +// +#define ERROR_DS_DRA_ABANDON_SYNC 8462L + +// +// MessageId: ERROR_DS_DRA_SHUTDOWN +// +// MessageText: +// +// The replication operation was terminated because the system is shutting down. +// +#define ERROR_DS_DRA_SHUTDOWN 8463L + +// +// MessageId: ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET +// +// MessageText: +// +// Synchronization attempt failed because the destination DC is currently waiting to synchronize new partial attributes from source. This condition is normal if a recent schema change modified the partial attribute set. The destination partial attribute set is not a subset of source partial attribute set. +// +#define ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET 8464L + +// +// MessageId: ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA +// +// MessageText: +// +// The replication synchronization attempt failed because a master replica attempted to sync from a partial replica. +// +#define ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA 8465L + +// +// MessageId: ERROR_DS_DRA_EXTN_CONNECTION_FAILED +// +// MessageText: +// +// The server specified for this replication operation was contacted, but that server was unable to contact an additional server needed to complete the operation. +// +#define ERROR_DS_DRA_EXTN_CONNECTION_FAILED 8466L + +// +// MessageId: ERROR_DS_INSTALL_SCHEMA_MISMATCH +// +// MessageText: +// +// The version of the directory service schema of the source forest is not compatible with the version of directory service on this computer. +// +#define ERROR_DS_INSTALL_SCHEMA_MISMATCH 8467L + +// +// MessageId: ERROR_DS_DUP_LINK_ID +// +// MessageText: +// +// Schema update failed: An attribute with the same link identifier already exists. +// +#define ERROR_DS_DUP_LINK_ID 8468L + +// +// MessageId: ERROR_DS_NAME_ERROR_RESOLVING +// +// MessageText: +// +// Name translation: Generic processing error. +// +#define ERROR_DS_NAME_ERROR_RESOLVING 8469L + +// +// MessageId: ERROR_DS_NAME_ERROR_NOT_FOUND +// +// MessageText: +// +// Name translation: Could not find the name or insufficient right to see name. +// +#define ERROR_DS_NAME_ERROR_NOT_FOUND 8470L + +// +// MessageId: ERROR_DS_NAME_ERROR_NOT_UNIQUE +// +// MessageText: +// +// Name translation: Input name mapped to more than one output name. +// +#define ERROR_DS_NAME_ERROR_NOT_UNIQUE 8471L + +// +// MessageId: ERROR_DS_NAME_ERROR_NO_MAPPING +// +// MessageText: +// +// Name translation: Input name found, but not the associated output format. +// +#define ERROR_DS_NAME_ERROR_NO_MAPPING 8472L + +// +// MessageId: ERROR_DS_NAME_ERROR_DOMAIN_ONLY +// +// MessageText: +// +// Name translation: Unable to resolve completely, only the domain was found. +// +#define ERROR_DS_NAME_ERROR_DOMAIN_ONLY 8473L + +// +// MessageId: ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING +// +// MessageText: +// +// Name translation: Unable to perform purely syntactical mapping at the client without going out to the wire. +// +#define ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING 8474L + +// +// MessageId: ERROR_DS_CONSTRUCTED_ATT_MOD +// +// MessageText: +// +// Modification of a constructed attribute is not allowed. +// +#define ERROR_DS_CONSTRUCTED_ATT_MOD 8475L + +// +// MessageId: ERROR_DS_WRONG_OM_OBJ_CLASS +// +// MessageText: +// +// The OM-Object-Class specified is incorrect for an attribute with the specified syntax. +// +#define ERROR_DS_WRONG_OM_OBJ_CLASS 8476L + +// +// MessageId: ERROR_DS_DRA_REPL_PENDING +// +// MessageText: +// +// The replication request has been posted; waiting for reply. +// +#define ERROR_DS_DRA_REPL_PENDING 8477L + +// +// MessageId: ERROR_DS_DS_REQUIRED +// +// MessageText: +// +// The requested operation requires a directory service, and none was available. +// +#define ERROR_DS_DS_REQUIRED 8478L + +// +// MessageId: ERROR_DS_INVALID_LDAP_DISPLAY_NAME +// +// MessageText: +// +// The LDAP display name of the class or attribute contains non-ASCII characters. +// +#define ERROR_DS_INVALID_LDAP_DISPLAY_NAME 8479L + +// +// MessageId: ERROR_DS_NON_BASE_SEARCH +// +// MessageText: +// +// The requested search operation is only supported for base searches. +// +#define ERROR_DS_NON_BASE_SEARCH 8480L + +// +// MessageId: ERROR_DS_CANT_RETRIEVE_ATTS +// +// MessageText: +// +// The search failed to retrieve attributes from the database. +// +#define ERROR_DS_CANT_RETRIEVE_ATTS 8481L + +// +// MessageId: ERROR_DS_BACKLINK_WITHOUT_LINK +// +// MessageText: +// +// The schema update operation tried to add a backward link attribute that has no corresponding forward link. +// +#define ERROR_DS_BACKLINK_WITHOUT_LINK 8482L + +// +// MessageId: ERROR_DS_EPOCH_MISMATCH +// +// MessageText: +// +// Source and destination of a cross-domain move do not agree on the object's epoch number. Either source or destination does not have the latest version of the object. +// +#define ERROR_DS_EPOCH_MISMATCH 8483L + +// +// MessageId: ERROR_DS_SRC_NAME_MISMATCH +// +// MessageText: +// +// Source and destination of a cross-domain move do not agree on the object's current name. Either source or destination does not have the latest version of the object. +// +#define ERROR_DS_SRC_NAME_MISMATCH 8484L + +// +// MessageId: ERROR_DS_SRC_AND_DST_NC_IDENTICAL +// +// MessageText: +// +// Source and destination for the cross-domain move operation are identical. Caller should use local move operation instead of cross-domain move operation. +// +#define ERROR_DS_SRC_AND_DST_NC_IDENTICAL 8485L + +// +// MessageId: ERROR_DS_DST_NC_MISMATCH +// +// MessageText: +// +// Source and destination for a cross-domain move are not in agreement on the naming contexts in the forest. Either source or destination does not have the latest version of the Partitions container. +// +#define ERROR_DS_DST_NC_MISMATCH 8486L + +// +// MessageId: ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC +// +// MessageText: +// +// Destination of a cross-domain move is not authoritative for the destination naming context. +// +#define ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC 8487L + +// +// MessageId: ERROR_DS_SRC_GUID_MISMATCH +// +// MessageText: +// +// Source and destination of a cross-domain move do not agree on the identity of the source object. Either source or destination does not have the latest version of the source object. +// +#define ERROR_DS_SRC_GUID_MISMATCH 8488L + +// +// MessageId: ERROR_DS_CANT_MOVE_DELETED_OBJECT +// +// MessageText: +// +// Object being moved across-domains is already known to be deleted by the destination server. The source server does not have the latest version of the source object. +// +#define ERROR_DS_CANT_MOVE_DELETED_OBJECT 8489L + +// +// MessageId: ERROR_DS_PDC_OPERATION_IN_PROGRESS +// +// MessageText: +// +// Another operation which requires exclusive access to the PDC FSMO is already in progress. +// +#define ERROR_DS_PDC_OPERATION_IN_PROGRESS 8490L + +// +// MessageId: ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD +// +// MessageText: +// +// A cross-domain move operation failed such that two versions of the moved object exist - one each in the source and destination domains. The destination object needs to be removed to restore the system to a consistent state. +// +#define ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD 8491L + +// +// MessageId: ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION +// +// MessageText: +// +// This object may not be moved across domain boundaries either because cross-domain moves for this class are disallowed, or the object has some special characteristics, e.g.: trust account or restricted RID, which prevent its move. +// +#define ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION 8492L + +// +// MessageId: ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS +// +// MessageText: +// +// Can't move objects with memberships across domain boundaries as once moved, this would violate the membership conditions of the account group. Remove the object from any account group memberships and retry. +// +#define ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS 8493L + +// +// MessageId: ERROR_DS_NC_MUST_HAVE_NC_PARENT +// +// MessageText: +// +// A naming context head must be the immediate child of another naming context head, not of an interior node. +// +#define ERROR_DS_NC_MUST_HAVE_NC_PARENT 8494L + +// +// MessageId: ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE +// +// MessageText: +// +// The directory cannot validate the proposed naming context name because it does not hold a replica of the naming context above the proposed naming context. Please ensure that the domain naming master role is held by a server that is configured as a global catalog server, and that the server is up to date with its replication partners. (Applies only to Windows 2000 Domain Naming masters) +// +#define ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE 8495L + +// +// MessageId: ERROR_DS_DST_DOMAIN_NOT_NATIVE +// +// MessageText: +// +// Destination domain must be in native mode. +// +#define ERROR_DS_DST_DOMAIN_NOT_NATIVE 8496L + +// +// MessageId: ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER +// +// MessageText: +// +// The operation cannot be performed because the server does not have an infrastructure container in the domain of interest. +// +#define ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER 8497L + +// +// MessageId: ERROR_DS_CANT_MOVE_ACCOUNT_GROUP +// +// MessageText: +// +// Cross-domain move of non-empty account groups is not allowed. +// +#define ERROR_DS_CANT_MOVE_ACCOUNT_GROUP 8498L + +// +// MessageId: ERROR_DS_CANT_MOVE_RESOURCE_GROUP +// +// MessageText: +// +// Cross-domain move of non-empty resource groups is not allowed. +// +#define ERROR_DS_CANT_MOVE_RESOURCE_GROUP 8499L + +// +// MessageId: ERROR_DS_INVALID_SEARCH_FLAG +// +// MessageText: +// +// The search flags for the attribute are invalid. The ANR bit is valid only on attributes of Unicode or Teletex strings. +// +#define ERROR_DS_INVALID_SEARCH_FLAG 8500L + +// +// MessageId: ERROR_DS_NO_TREE_DELETE_ABOVE_NC +// +// MessageText: +// +// Tree deletions starting at an object which has an NC head as a descendant are not allowed. +// +#define ERROR_DS_NO_TREE_DELETE_ABOVE_NC 8501L + +// +// MessageId: ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE +// +// MessageText: +// +// The directory service failed to lock a tree in preparation for a tree deletion because the tree was in use. +// +#define ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE 8502L + +// +// MessageId: ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE +// +// MessageText: +// +// The directory service failed to identify the list of objects to delete while attempting a tree deletion. +// +#define ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE 8503L + +// +// MessageId: ERROR_DS_SAM_INIT_FAILURE +// +// MessageText: +// +// Security Accounts Manager initialization failed because of the following error: %1. +// Error Status: 0x%2. Please shutdown this system and reboot into Directory Services Restore Mode, check the event log for more detailed information. +// +#define ERROR_DS_SAM_INIT_FAILURE 8504L + +// +// MessageId: ERROR_DS_SENSITIVE_GROUP_VIOLATION +// +// MessageText: +// +// Only an administrator can modify the membership list of an administrative group. +// +#define ERROR_DS_SENSITIVE_GROUP_VIOLATION 8505L + +// +// MessageId: ERROR_DS_CANT_MOD_PRIMARYGROUPID +// +// MessageText: +// +// Cannot change the primary group ID of a domain controller account. +// +#define ERROR_DS_CANT_MOD_PRIMARYGROUPID 8506L + +// +// MessageId: ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD +// +// MessageText: +// +// An attempt is made to modify the base schema. +// +#define ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD 8507L + +// +// MessageId: ERROR_DS_NONSAFE_SCHEMA_CHANGE +// +// MessageText: +// +// Adding a new mandatory attribute to an existing class, deleting a mandatory attribute from an existing class, or adding an optional attribute to the special class Top that is not a backlink attribute (directly or through inheritance, for example, by adding or deleting an auxiliary class) is not allowed. +// +#define ERROR_DS_NONSAFE_SCHEMA_CHANGE 8508L + +// +// MessageId: ERROR_DS_SCHEMA_UPDATE_DISALLOWED +// +// MessageText: +// +// Schema update is not allowed on this DC because the DC is not the schema FSMO Role Owner. +// +#define ERROR_DS_SCHEMA_UPDATE_DISALLOWED 8509L + +// +// MessageId: ERROR_DS_CANT_CREATE_UNDER_SCHEMA +// +// MessageText: +// +// An object of this class cannot be created under the schema container. You can only create attribute-schema and class-schema objects under the schema container. +// +#define ERROR_DS_CANT_CREATE_UNDER_SCHEMA 8510L + +// +// MessageId: ERROR_DS_INSTALL_NO_SRC_SCH_VERSION +// +// MessageText: +// +// The replica/child install failed to get the objectVersion attribute on the schema container on the source DC. Either the attribute is missing on the schema container or the credentials supplied do not have permission to read it. +// +#define ERROR_DS_INSTALL_NO_SRC_SCH_VERSION 8511L + +// +// MessageId: ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE +// +// MessageText: +// +// The replica/child install failed to read the objectVersion attribute in the SCHEMA section of the file schema.ini in the system32 directory. +// +#define ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE 8512L + +// +// MessageId: ERROR_DS_INVALID_GROUP_TYPE +// +// MessageText: +// +// The specified group type is invalid. +// +#define ERROR_DS_INVALID_GROUP_TYPE 8513L + +// +// MessageId: ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN +// +// MessageText: +// +// You cannot nest global groups in a mixed domain if the group is security-enabled. +// +#define ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN 8514L + +// +// MessageId: ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN +// +// MessageText: +// +// You cannot nest local groups in a mixed domain if the group is security-enabled. +// +#define ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN 8515L + +// +// MessageId: ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER +// +// MessageText: +// +// A global group cannot have a local group as a member. +// +#define ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER 8516L + +// +// MessageId: ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER +// +// MessageText: +// +// A global group cannot have a universal group as a member. +// +#define ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER 8517L + +// +// MessageId: ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER +// +// MessageText: +// +// A universal group cannot have a local group as a member. +// +#define ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER 8518L + +// +// MessageId: ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER +// +// MessageText: +// +// A global group cannot have a cross-domain member. +// +#define ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER 8519L + +// +// MessageId: ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER +// +// MessageText: +// +// A local group cannot have another cross domain local group as a member. +// +#define ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER 8520L + +// +// MessageId: ERROR_DS_HAVE_PRIMARY_MEMBERS +// +// MessageText: +// +// A group with primary members cannot change to a security-disabled group. +// +#define ERROR_DS_HAVE_PRIMARY_MEMBERS 8521L + +// +// MessageId: ERROR_DS_STRING_SD_CONVERSION_FAILED +// +// MessageText: +// +// The schema cache load failed to convert the string default SD on a class-schema object. +// +#define ERROR_DS_STRING_SD_CONVERSION_FAILED 8522L + +// +// MessageId: ERROR_DS_NAMING_MASTER_GC +// +// MessageText: +// +// Only DSAs configured to be Global Catalog servers should be allowed to hold the Domain Naming Master FSMO role. (Applies only to Windows 2000 servers) +// +#define ERROR_DS_NAMING_MASTER_GC 8523L + +// +// MessageId: ERROR_DS_DNS_LOOKUP_FAILURE +// +// MessageText: +// +// The DSA operation is unable to proceed because of a DNS lookup failure. +// +#define ERROR_DS_DNS_LOOKUP_FAILURE 8524L + +// +// MessageId: ERROR_DS_COULDNT_UPDATE_SPNS +// +// MessageText: +// +// While processing a change to the DNS Host Name for an object, the Service Principal Name values could not be kept in sync. +// +#define ERROR_DS_COULDNT_UPDATE_SPNS 8525L + +// +// MessageId: ERROR_DS_CANT_RETRIEVE_SD +// +// MessageText: +// +// The Security Descriptor attribute could not be read. +// +#define ERROR_DS_CANT_RETRIEVE_SD 8526L + +// +// MessageId: ERROR_DS_KEY_NOT_UNIQUE +// +// MessageText: +// +// The object requested was not found, but an object with that key was found. +// +#define ERROR_DS_KEY_NOT_UNIQUE 8527L + +// +// MessageId: ERROR_DS_WRONG_LINKED_ATT_SYNTAX +// +// MessageText: +// +// The syntax of the linked attribute being added is incorrect. Forward links can only have syntax 2.5.5.1, 2.5.5.7, and 2.5.5.14, and backlinks can only have syntax 2.5.5.1 +// +#define ERROR_DS_WRONG_LINKED_ATT_SYNTAX 8528L + +// +// MessageId: ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD +// +// MessageText: +// +// Security Account Manager needs to get the boot password. +// +#define ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD 8529L + +// +// MessageId: ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY +// +// MessageText: +// +// Security Account Manager needs to get the boot key from floppy disk. +// +#define ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY 8530L + +// +// MessageId: ERROR_DS_CANT_START +// +// MessageText: +// +// Directory Service cannot start. +// +#define ERROR_DS_CANT_START 8531L + +// +// MessageId: ERROR_DS_INIT_FAILURE +// +// MessageText: +// +// Directory Services could not start. +// +#define ERROR_DS_INIT_FAILURE 8532L + +// +// MessageId: ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION +// +// MessageText: +// +// The connection between client and server requires packet privacy or better. +// +#define ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION 8533L + +// +// MessageId: ERROR_DS_SOURCE_DOMAIN_IN_FOREST +// +// MessageText: +// +// The source domain may not be in the same forest as destination. +// +#define ERROR_DS_SOURCE_DOMAIN_IN_FOREST 8534L + +// +// MessageId: ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST +// +// MessageText: +// +// The destination domain must be in the forest. +// +#define ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST 8535L + +// +// MessageId: ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED +// +// MessageText: +// +// The operation requires that destination domain auditing be enabled. +// +#define ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED 8536L + +// +// MessageId: ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN +// +// MessageText: +// +// The operation couldn't locate a DC for the source domain. +// +#define ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN 8537L + +// +// MessageId: ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER +// +// MessageText: +// +// The source object must be a group or user. +// +#define ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER 8538L + +// +// MessageId: ERROR_DS_SRC_SID_EXISTS_IN_FOREST +// +// MessageText: +// +// The source object's SID already exists in destination forest. +// +#define ERROR_DS_SRC_SID_EXISTS_IN_FOREST 8539L + +// +// MessageId: ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH +// +// MessageText: +// +// The source and destination object must be of the same type. +// +#define ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH 8540L + +// +// MessageId: ERROR_SAM_INIT_FAILURE +// +// MessageText: +// +// Security Accounts Manager initialization failed because of the following error: %1. +// Error Status: 0x%2. Click OK to shut down the system and reboot into Safe Mode. Check the event log for detailed information. +// +#define ERROR_SAM_INIT_FAILURE 8541L + +// +// MessageId: ERROR_DS_DRA_SCHEMA_INFO_SHIP +// +// MessageText: +// +// Schema information could not be included in the replication request. +// +#define ERROR_DS_DRA_SCHEMA_INFO_SHIP 8542L + +// +// MessageId: ERROR_DS_DRA_SCHEMA_CONFLICT +// +// MessageText: +// +// The replication operation could not be completed due to a schema incompatibility. +// +#define ERROR_DS_DRA_SCHEMA_CONFLICT 8543L + +// +// MessageId: ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT +// +// MessageText: +// +// The replication operation could not be completed due to a previous schema incompatibility. +// +#define ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT 8544L + +// +// MessageId: ERROR_DS_DRA_OBJ_NC_MISMATCH +// +// MessageText: +// +// The replication update could not be applied because either the source or the destination has not yet received information regarding a recent cross-domain move operation. +// +#define ERROR_DS_DRA_OBJ_NC_MISMATCH 8545L + +// +// MessageId: ERROR_DS_NC_STILL_HAS_DSAS +// +// MessageText: +// +// The requested domain could not be deleted because there exist domain controllers that still host this domain. +// +#define ERROR_DS_NC_STILL_HAS_DSAS 8546L + +// +// MessageId: ERROR_DS_GC_REQUIRED +// +// MessageText: +// +// The requested operation can be performed only on a global catalog server. +// +#define ERROR_DS_GC_REQUIRED 8547L + +// +// MessageId: ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY +// +// MessageText: +// +// A local group can only be a member of other local groups in the same domain. +// +#define ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY 8548L + +// +// MessageId: ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS +// +// MessageText: +// +// Foreign security principals cannot be members of universal groups. +// +#define ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS 8549L + +// +// MessageId: ERROR_DS_CANT_ADD_TO_GC +// +// MessageText: +// +// The attribute is not allowed to be replicated to the GC because of security reasons. +// +#define ERROR_DS_CANT_ADD_TO_GC 8550L + +// +// MessageId: ERROR_DS_NO_CHECKPOINT_WITH_PDC +// +// MessageText: +// +// The checkpoint with the PDC could not be taken because there too many modifications being processed currently. +// +#define ERROR_DS_NO_CHECKPOINT_WITH_PDC 8551L + +// +// MessageId: ERROR_DS_SOURCE_AUDITING_NOT_ENABLED +// +// MessageText: +// +// The operation requires that source domain auditing be enabled. +// +#define ERROR_DS_SOURCE_AUDITING_NOT_ENABLED 8552L + +// +// MessageId: ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC +// +// MessageText: +// +// Security principal objects can only be created inside domain naming contexts. +// +#define ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC 8553L + +// +// MessageId: ERROR_DS_INVALID_NAME_FOR_SPN +// +// MessageText: +// +// A Service Principal Name (SPN) could not be constructed because the provided hostname is not in the necessary format. +// +#define ERROR_DS_INVALID_NAME_FOR_SPN 8554L + +// +// MessageId: ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS +// +// MessageText: +// +// A Filter was passed that uses constructed attributes. +// +#define ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS 8555L + +// +// MessageId: ERROR_DS_UNICODEPWD_NOT_IN_QUOTES +// +// MessageText: +// +// The unicodePwd attribute value must be enclosed in double quotes. +// +#define ERROR_DS_UNICODEPWD_NOT_IN_QUOTES 8556L + +// +// MessageId: ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED +// +// MessageText: +// +// Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased. +// +#define ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED 8557L + +// +// MessageId: ERROR_DS_MUST_BE_RUN_ON_DST_DC +// +// MessageText: +// +// For security reasons, the operation must be run on the destination DC. +// +#define ERROR_DS_MUST_BE_RUN_ON_DST_DC 8558L + +// +// MessageId: ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER +// +// MessageText: +// +// For security reasons, the source DC must be NT4SP4 or greater. +// +#define ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER 8559L + +// +// MessageId: ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ +// +// MessageText: +// +// Critical Directory Service System objects cannot be deleted during tree delete operations. The tree delete may have been partially performed. +// +#define ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ 8560L + +// +// MessageId: ERROR_DS_INIT_FAILURE_CONSOLE +// +// MessageText: +// +// Directory Services could not start because of the following error: %1. +// Error Status: 0x%2. Please click OK to shutdown the system. You can use the recovery console to diagnose the system further. +// +#define ERROR_DS_INIT_FAILURE_CONSOLE 8561L + +// +// MessageId: ERROR_DS_SAM_INIT_FAILURE_CONSOLE +// +// MessageText: +// +// Security Accounts Manager initialization failed because of the following error: %1. +// Error Status: 0x%2. Please click OK to shutdown the system. You can use the recovery console to diagnose the system further. +// +#define ERROR_DS_SAM_INIT_FAILURE_CONSOLE 8562L + +// +// MessageId: ERROR_DS_FOREST_VERSION_TOO_HIGH +// +// MessageText: +// +// The version of the operating system is incompatible with the current AD DS forest functional level or AD LDS Configuration Set functional level. You must upgrade to a new version of the operating system before this server can become an AD DS Domain Controller or add an AD LDS Instance in this AD DS Forest or AD LDS Configuration Set. +// +#define ERROR_DS_FOREST_VERSION_TOO_HIGH 8563L + +// +// MessageId: ERROR_DS_DOMAIN_VERSION_TOO_HIGH +// +// MessageText: +// +// The version of the operating system installed is incompatible with the current domain functional level. You must upgrade to a new version of the operating system before this server can become a domain controller in this domain. +// +#define ERROR_DS_DOMAIN_VERSION_TOO_HIGH 8564L + +// +// MessageId: ERROR_DS_FOREST_VERSION_TOO_LOW +// +// MessageText: +// +// The version of the operating system installed on this server no longer supports the current AD DS Forest functional level or AD LDS Configuration Set functional level. You must raise the AD DS Forest functional level or AD LDS Configuration Set functional level before this server can become an AD DS Domain Controller or an AD LDS Instance in this Forest or Configuration Set. +// +#define ERROR_DS_FOREST_VERSION_TOO_LOW 8565L + +// +// MessageId: ERROR_DS_DOMAIN_VERSION_TOO_LOW +// +// MessageText: +// +// The version of the operating system installed on this server no longer supports the current domain functional level. You must raise the domain functional level before this server can become a domain controller in this domain. +// +#define ERROR_DS_DOMAIN_VERSION_TOO_LOW 8566L + +// +// MessageId: ERROR_DS_INCOMPATIBLE_VERSION +// +// MessageText: +// +// The version of the operating system installed on this server is incompatible with the functional level of the domain or forest. +// +#define ERROR_DS_INCOMPATIBLE_VERSION 8567L + +// +// MessageId: ERROR_DS_LOW_DSA_VERSION +// +// MessageText: +// +// The functional level of the domain (or forest) cannot be raised to the requested value, because there exist one or more domain controllers in the domain (or forest) that are at a lower incompatible functional level. +// +#define ERROR_DS_LOW_DSA_VERSION 8568L + +// +// MessageId: ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN +// +// MessageText: +// +// The forest functional level cannot be raised to the requested value since one or more domains are still in mixed domain mode. All domains in the forest must be in native mode, for you to raise the forest functional level. +// +#define ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN 8569L + +// +// MessageId: ERROR_DS_NOT_SUPPORTED_SORT_ORDER +// +// MessageText: +// +// The sort order requested is not supported. +// +#define ERROR_DS_NOT_SUPPORTED_SORT_ORDER 8570L + +// +// MessageId: ERROR_DS_NAME_NOT_UNIQUE +// +// MessageText: +// +// The requested name already exists as a unique identifier. +// +#define ERROR_DS_NAME_NOT_UNIQUE 8571L + +// +// MessageId: ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4 +// +// MessageText: +// +// The machine account was created pre-NT4. The account needs to be recreated. +// +#define ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4 8572L + +// +// MessageId: ERROR_DS_OUT_OF_VERSION_STORE +// +// MessageText: +// +// The database is out of version store. +// +#define ERROR_DS_OUT_OF_VERSION_STORE 8573L + +// +// MessageId: ERROR_DS_INCOMPATIBLE_CONTROLS_USED +// +// MessageText: +// +// Unable to continue operation because multiple conflicting controls were used. +// +#define ERROR_DS_INCOMPATIBLE_CONTROLS_USED 8574L + +// +// MessageId: ERROR_DS_NO_REF_DOMAIN +// +// MessageText: +// +// Unable to find a valid security descriptor reference domain for this partition. +// +#define ERROR_DS_NO_REF_DOMAIN 8575L + +// +// MessageId: ERROR_DS_RESERVED_LINK_ID +// +// MessageText: +// +// Schema update failed: The link identifier is reserved. +// +#define ERROR_DS_RESERVED_LINK_ID 8576L + +// +// MessageId: ERROR_DS_LINK_ID_NOT_AVAILABLE +// +// MessageText: +// +// Schema update failed: There are no link identifiers available. +// +#define ERROR_DS_LINK_ID_NOT_AVAILABLE 8577L + +// +// MessageId: ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER +// +// MessageText: +// +// An account group cannot have a universal group as a member. +// +#define ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER 8578L + +// +// MessageId: ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE +// +// MessageText: +// +// Rename or move operations on naming context heads or read-only objects are not allowed. +// +#define ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE 8579L + +// +// MessageId: ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC +// +// MessageText: +// +// Move operations on objects in the schema naming context are not allowed. +// +#define ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC 8580L + +// +// MessageId: ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG +// +// MessageText: +// +// A system flag has been set on the object and does not allow the object to be moved or renamed. +// +#define ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG 8581L + +// +// MessageId: ERROR_DS_MODIFYDN_WRONG_GRANDPARENT +// +// MessageText: +// +// This object is not allowed to change its grandparent container. Moves are not forbidden on this object, but are restricted to sibling containers. +// +#define ERROR_DS_MODIFYDN_WRONG_GRANDPARENT 8582L + +// +// MessageId: ERROR_DS_NAME_ERROR_TRUST_REFERRAL +// +// MessageText: +// +// Unable to resolve completely, a referral to another forest is generated. +// +#define ERROR_DS_NAME_ERROR_TRUST_REFERRAL 8583L + +// +// MessageId: ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER +// +// MessageText: +// +// The requested action is not supported on standard server. +// +#define ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER 8584L + +// +// MessageId: ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD +// +// MessageText: +// +// Could not access a partition of the directory service located on a remote server. Make sure at least one server is running for the partition in question. +// +#define ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD 8585L + +// +// MessageId: ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2 +// +// MessageText: +// +// The directory cannot validate the proposed naming context (or partition) name because it does not hold a replica nor can it contact a replica of the naming context above the proposed naming context. Please ensure that the parent naming context is properly registered in DNS, and at least one replica of this naming context is reachable by the Domain Naming master. +// +#define ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2 8586L + +// +// MessageId: ERROR_DS_THREAD_LIMIT_EXCEEDED +// +// MessageText: +// +// The thread limit for this request was exceeded. +// +#define ERROR_DS_THREAD_LIMIT_EXCEEDED 8587L + +// +// MessageId: ERROR_DS_NOT_CLOSEST +// +// MessageText: +// +// The Global catalog server is not in the closest site. +// +#define ERROR_DS_NOT_CLOSEST 8588L + +// +// MessageId: ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF +// +// MessageText: +// +// The DS cannot derive a service principal name (SPN) with which to mutually authenticate the target server because the corresponding server object in the local DS database has no serverReference attribute. +// +#define ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF 8589L + +// +// MessageId: ERROR_DS_SINGLE_USER_MODE_FAILED +// +// MessageText: +// +// The Directory Service failed to enter single user mode. +// +#define ERROR_DS_SINGLE_USER_MODE_FAILED 8590L + +// +// MessageId: ERROR_DS_NTDSCRIPT_SYNTAX_ERROR +// +// MessageText: +// +// The Directory Service cannot parse the script because of a syntax error. +// +#define ERROR_DS_NTDSCRIPT_SYNTAX_ERROR 8591L + +// +// MessageId: ERROR_DS_NTDSCRIPT_PROCESS_ERROR +// +// MessageText: +// +// The Directory Service cannot process the script because of an error. +// +#define ERROR_DS_NTDSCRIPT_PROCESS_ERROR 8592L + +// +// MessageId: ERROR_DS_DIFFERENT_REPL_EPOCHS +// +// MessageText: +// +// The directory service cannot perform the requested operation because the servers involved are of different replication epochs (which is usually related to a domain rename that is in progress). +// +#define ERROR_DS_DIFFERENT_REPL_EPOCHS 8593L + +// +// MessageId: ERROR_DS_DRS_EXTENSIONS_CHANGED +// +// MessageText: +// +// The directory service binding must be renegotiated due to a change in the server extensions information. +// +#define ERROR_DS_DRS_EXTENSIONS_CHANGED 8594L + +// +// MessageId: ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR +// +// MessageText: +// +// Operation not allowed on a disabled cross ref. +// +#define ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR 8595L + +// +// MessageId: ERROR_DS_NO_MSDS_INTID +// +// MessageText: +// +// Schema update failed: No values for msDS-IntId are available. +// +#define ERROR_DS_NO_MSDS_INTID 8596L + +// +// MessageId: ERROR_DS_DUP_MSDS_INTID +// +// MessageText: +// +// Schema update failed: Duplicate msDS-INtId. Retry the operation. +// +#define ERROR_DS_DUP_MSDS_INTID 8597L + +// +// MessageId: ERROR_DS_EXISTS_IN_RDNATTID +// +// MessageText: +// +// Schema deletion failed: attribute is used in rDNAttID. +// +#define ERROR_DS_EXISTS_IN_RDNATTID 8598L + +// +// MessageId: ERROR_DS_AUTHORIZATION_FAILED +// +// MessageText: +// +// The directory service failed to authorize the request. +// +#define ERROR_DS_AUTHORIZATION_FAILED 8599L + +// +// MessageId: ERROR_DS_INVALID_SCRIPT +// +// MessageText: +// +// The Directory Service cannot process the script because it is invalid. +// +#define ERROR_DS_INVALID_SCRIPT 8600L + +// +// MessageId: ERROR_DS_REMOTE_CROSSREF_OP_FAILED +// +// MessageText: +// +// The remote create cross reference operation failed on the Domain Naming Master FSMO. The operation's error is in the extended data. +// +#define ERROR_DS_REMOTE_CROSSREF_OP_FAILED 8601L + +// +// MessageId: ERROR_DS_CROSS_REF_BUSY +// +// MessageText: +// +// A cross reference is in use locally with the same name. +// +#define ERROR_DS_CROSS_REF_BUSY 8602L + +// +// MessageId: ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN +// +// MessageText: +// +// The DS cannot derive a service principal name (SPN) with which to mutually authenticate the target server because the server's domain has been deleted from the forest. +// +#define ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN 8603L + +// +// MessageId: ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC +// +// MessageText: +// +// Writeable NCs prevent this DC from demoting. +// +#define ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC 8604L + +// +// MessageId: ERROR_DS_DUPLICATE_ID_FOUND +// +// MessageText: +// +// The requested object has a non-unique identifier and cannot be retrieved. +// +#define ERROR_DS_DUPLICATE_ID_FOUND 8605L + +// +// MessageId: ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT +// +// MessageText: +// +// Insufficient attributes were given to create an object. This object may not exist because it may have been deleted and already garbage collected. +// +#define ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT 8606L + +// +// MessageId: ERROR_DS_GROUP_CONVERSION_ERROR +// +// MessageText: +// +// The group cannot be converted due to attribute restrictions on the requested group type. +// +#define ERROR_DS_GROUP_CONVERSION_ERROR 8607L + +// +// MessageId: ERROR_DS_CANT_MOVE_APP_BASIC_GROUP +// +// MessageText: +// +// Cross-domain move of non-empty basic application groups is not allowed. +// +#define ERROR_DS_CANT_MOVE_APP_BASIC_GROUP 8608L + +// +// MessageId: ERROR_DS_CANT_MOVE_APP_QUERY_GROUP +// +// MessageText: +// +// Cross-domain move of non-empty query based application groups is not allowed. +// +#define ERROR_DS_CANT_MOVE_APP_QUERY_GROUP 8609L + +// +// MessageId: ERROR_DS_ROLE_NOT_VERIFIED +// +// MessageText: +// +// The FSMO role ownership could not be verified because its directory partition has not replicated successfully with at least one replication partner. +// +#define ERROR_DS_ROLE_NOT_VERIFIED 8610L + +// +// MessageId: ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL +// +// MessageText: +// +// The target container for a redirection of a well known object container cannot already be a special container. +// +#define ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL 8611L + +// +// MessageId: ERROR_DS_DOMAIN_RENAME_IN_PROGRESS +// +// MessageText: +// +// The Directory Service cannot perform the requested operation because a domain rename operation is in progress. +// +#define ERROR_DS_DOMAIN_RENAME_IN_PROGRESS 8612L + +// +// MessageId: ERROR_DS_EXISTING_AD_CHILD_NC +// +// MessageText: +// +// The directory service detected a child partition below the requested partition name. The partition hierarchy must be created in a top down method. +// +#define ERROR_DS_EXISTING_AD_CHILD_NC 8613L + +// +// MessageId: ERROR_DS_REPL_LIFETIME_EXCEEDED +// +// MessageText: +// +// The directory service cannot replicate with this server because the time since the last replication with this server has exceeded the tombstone lifetime. +// +#define ERROR_DS_REPL_LIFETIME_EXCEEDED 8614L + +// +// MessageId: ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER +// +// MessageText: +// +// The requested operation is not allowed on an object under the system container. +// +#define ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER 8615L + +// +// MessageId: ERROR_DS_LDAP_SEND_QUEUE_FULL +// +// MessageText: +// +// The LDAP servers network send queue has filled up because the client is not processing the results of its requests fast enough. No more requests will be processed until the client catches up. If the client does not catch up then it will be disconnected. +// +#define ERROR_DS_LDAP_SEND_QUEUE_FULL 8616L + +// +// MessageId: ERROR_DS_DRA_OUT_SCHEDULE_WINDOW +// +// MessageText: +// +// The scheduled replication did not take place because the system was too busy to execute the request within the schedule window. The replication queue is overloaded. Consider reducing the number of partners or decreasing the scheduled replication frequency. +// +#define ERROR_DS_DRA_OUT_SCHEDULE_WINDOW 8617L + +// +// MessageId: ERROR_DS_POLICY_NOT_KNOWN +// +// MessageText: +// +// At this time, it cannot be determined if the branch replication policy is available on the hub domain controller. Please retry at a later time to account for replication latencies. +// +#define ERROR_DS_POLICY_NOT_KNOWN 8618L + +// +// MessageId: ERROR_NO_SITE_SETTINGS_OBJECT +// +// MessageText: +// +// The site settings object for the specified site does not exist. +// +#define ERROR_NO_SITE_SETTINGS_OBJECT 8619L + +// +// MessageId: ERROR_NO_SECRETS +// +// MessageText: +// +// The local account store does not contain secret material for the specified account. +// +#define ERROR_NO_SECRETS 8620L + +// +// MessageId: ERROR_NO_WRITABLE_DC_FOUND +// +// MessageText: +// +// Could not find a writable domain controller in the domain. +// +#define ERROR_NO_WRITABLE_DC_FOUND 8621L + +// +// MessageId: ERROR_DS_NO_SERVER_OBJECT +// +// MessageText: +// +// The server object for the domain controller does not exist. +// +#define ERROR_DS_NO_SERVER_OBJECT 8622L + +// +// MessageId: ERROR_DS_NO_NTDSA_OBJECT +// +// MessageText: +// +// The NTDS Settings object for the domain controller does not exist. +// +#define ERROR_DS_NO_NTDSA_OBJECT 8623L + +// +// MessageId: ERROR_DS_NON_ASQ_SEARCH +// +// MessageText: +// +// The requested search operation is not supported for ASQ searches. +// +#define ERROR_DS_NON_ASQ_SEARCH 8624L + +// +// MessageId: ERROR_DS_AUDIT_FAILURE +// +// MessageText: +// +// A required audit event could not be generated for the operation. +// +#define ERROR_DS_AUDIT_FAILURE 8625L + +// +// MessageId: ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE +// +// MessageText: +// +// The search flags for the attribute are invalid. The subtree index bit is valid only on single valued attributes. +// +#define ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE 8626L + +// +// MessageId: ERROR_DS_INVALID_SEARCH_FLAG_TUPLE +// +// MessageText: +// +// The search flags for the attribute are invalid. The tuple index bit is valid only on attributes of Unicode strings. +// +#define ERROR_DS_INVALID_SEARCH_FLAG_TUPLE 8627L + +// +// MessageId: ERROR_DS_HIERARCHY_TABLE_TOO_DEEP +// +// MessageText: +// +// The address books are nested too deeply. Failed to build the hierarchy table. +// +#define ERROR_DS_HIERARCHY_TABLE_TOO_DEEP 8628L + +// +// MessageId: ERROR_DS_DRA_CORRUPT_UTD_VECTOR +// +// MessageText: +// +// The specified up-to-date-ness vector is corrupt. +// +#define ERROR_DS_DRA_CORRUPT_UTD_VECTOR 8629L + +// +// MessageId: ERROR_DS_DRA_SECRETS_DENIED +// +// MessageText: +// +// The request to replicate secrets is denied. +// +#define ERROR_DS_DRA_SECRETS_DENIED 8630L + +// +// MessageId: ERROR_DS_RESERVED_MAPI_ID +// +// MessageText: +// +// Schema update failed: The MAPI identifier is reserved. +// +#define ERROR_DS_RESERVED_MAPI_ID 8631L + +// +// MessageId: ERROR_DS_MAPI_ID_NOT_AVAILABLE +// +// MessageText: +// +// Schema update failed: There are no MAPI identifiers available. +// +#define ERROR_DS_MAPI_ID_NOT_AVAILABLE 8632L + +// +// MessageId: ERROR_DS_DRA_MISSING_KRBTGT_SECRET +// +// MessageText: +// +// The replication operation failed because the required attributes of the local krbtgt object are missing. +// +#define ERROR_DS_DRA_MISSING_KRBTGT_SECRET 8633L + +// +// MessageId: ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST +// +// MessageText: +// +// The domain name of the trusted domain already exists in the forest. +// +#define ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST 8634L + +// +// MessageId: ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST +// +// MessageText: +// +// The flat name of the trusted domain already exists in the forest. +// +#define ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST 8635L + +// +// MessageId: ERROR_INVALID_USER_PRINCIPAL_NAME +// +// MessageText: +// +// The User Principal Name (UPN) is invalid. +// +#define ERROR_INVALID_USER_PRINCIPAL_NAME 8636L + +// +// MessageId: ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS +// +// MessageText: +// +// OID mapped groups cannot have members. +// +#define ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS 8637L + +// +// MessageId: ERROR_DS_OID_NOT_FOUND +// +// MessageText: +// +// The specified OID cannot be found. +// +#define ERROR_DS_OID_NOT_FOUND 8638L + +// +// MessageId: ERROR_DS_DRA_RECYCLED_TARGET +// +// MessageText: +// +// The replication operation failed because the target object referred by a link value is recycled. +// +#define ERROR_DS_DRA_RECYCLED_TARGET 8639L + +// +// MessageId: ERROR_DS_DISALLOWED_NC_REDIRECT +// +// MessageText: +// +// The redirect operation failed because the target object is in a NC different from the domain NC of the current domain controller. +// +#define ERROR_DS_DISALLOWED_NC_REDIRECT 8640L + +// +// MessageId: ERROR_DS_HIGH_ADLDS_FFL +// +// MessageText: +// +// The functional level of the AD LDS configuration set cannot be lowered to the requested value. +// +#define ERROR_DS_HIGH_ADLDS_FFL 8641L + +// +// MessageId: ERROR_DS_HIGH_DSA_VERSION +// +// MessageText: +// +// The functional level of the domain (or forest) cannot be set to the requested value. +// +#define ERROR_DS_HIGH_DSA_VERSION 8642L + +// +// MessageId: ERROR_DS_LOW_ADLDS_FFL +// +// MessageText: +// +// The functional level of the AD LDS configuration set cannot be raised to the requested value, because there exist one or more ADLDS instances that are at a lower incompatible functional level. +// +#define ERROR_DS_LOW_ADLDS_FFL 8643L + +// +// MessageId: ERROR_DOMAIN_SID_SAME_AS_LOCAL_WORKSTATION +// +// MessageText: +// +// The domain join cannot be completed because the SID of the domain you attempted to join was identical to the SID of this machine. This is a symptom of an improperly cloned operating system install. You should run sysprep on this machine in order to generate a new machine SID. Please see http://go.microsoft.com/fwlink/?LinkId=168895 for more information. +// +#define ERROR_DOMAIN_SID_SAME_AS_LOCAL_WORKSTATION 8644L + +// +// MessageId: ERROR_DS_UNDELETE_SAM_VALIDATION_FAILED +// +// MessageText: +// +// The undelete operation failed because the Sam Account Name or Additional Sam Account Name of the object being undeleted conflicts with an existing live object. +// +#define ERROR_DS_UNDELETE_SAM_VALIDATION_FAILED 8645L + +// +// MessageId: ERROR_INCORRECT_ACCOUNT_TYPE +// +// MessageText: +// +// The system is not authoritative for the specified account and therefore cannot complete the operation. Please retry the operation using the provider associated with this account. If this is an online provider please use the provider's online site. +// +#define ERROR_INCORRECT_ACCOUNT_TYPE 8646L + +// +// MessageId: ERROR_DS_SPN_VALUE_NOT_UNIQUE_IN_FOREST +// +// MessageText: +// +// The operation failed because SPN value provided for addition/modification is not unique forest-wide. +// +#define ERROR_DS_SPN_VALUE_NOT_UNIQUE_IN_FOREST 8647L + +// +// MessageId: ERROR_DS_UPN_VALUE_NOT_UNIQUE_IN_FOREST +// +// MessageText: +// +// The operation failed because UPN value provided for addition/modification is not unique forest-wide. +// +#define ERROR_DS_UPN_VALUE_NOT_UNIQUE_IN_FOREST 8648L + +// +// MessageId: ERROR_DS_MISSING_FOREST_TRUST +// +// MessageText: +// +// The operation failed because the addition/modification referenced an inbound forest-wide trust that is not present. +// +#define ERROR_DS_MISSING_FOREST_TRUST 8649L + +// +// MessageId: ERROR_DS_VALUE_KEY_NOT_UNIQUE +// +// MessageText: +// +// The link value specified was not found, but a link value with that key was found. +// +#define ERROR_DS_VALUE_KEY_NOT_UNIQUE 8650L + +// +// MessageId: ERROR_WEAK_WHFBKEY_BLOCKED +// +// MessageText: +// +// The Security Account Manager blocked the use of a weak Windows Hello for Business key. +// +#define ERROR_WEAK_WHFBKEY_BLOCKED 8651L + +// +// MessageId: ERROR_DS_PER_ATTRIBUTE_AUTHZ_FAILED_DURING_ADD +// +// MessageText: +// +// The add object operation failed because the caller was not authorized to add one or more attributes included in the request. +// +#define ERROR_DS_PER_ATTRIBUTE_AUTHZ_FAILED_DURING_ADD 8652L + +// +// MessageId: ERROR_LOCAL_POLICY_MODIFICATION_NOT_SUPPORTED +// +// MessageText: +// +// The local account policy modification request was rejected because the policy is controlled by a regional authority. +// +#define ERROR_LOCAL_POLICY_MODIFICATION_NOT_SUPPORTED 8653L + +// +// MessageId: ERROR_POLICY_CONTROLLED_ACCOUNT +// +// MessageText: +// +// The account is controlled by external policy and cannot be modified. +// +#define ERROR_POLICY_CONTROLLED_ACCOUNT 8654L + +// +// MessageId: ERROR_LAPS_LEGACY_SCHEMA_MISSING +// +// MessageText: +// +// The Local Administrator Password Solution password update operation failed because the legacy LAPS schema needs to be added to Active Directory. +// +#define ERROR_LAPS_LEGACY_SCHEMA_MISSING 8655L + +// +// MessageId: ERROR_LAPS_SCHEMA_MISSING +// +// MessageText: +// +// The Local Administrator Password Solution password update operation failed because the Windows LAPS schema needs to be added to Active Directory. +// +#define ERROR_LAPS_SCHEMA_MISSING 8656L + +// +// MessageId: ERROR_LAPS_ENCRYPTION_REQUIRES_2016_DFL +// +// MessageText: +// +// The Local Administrator Password Solution encrypted password update operation failed because Active Directory is not yet running at the minimum required domain functional level (2016). +// +#define ERROR_LAPS_ENCRYPTION_REQUIRES_2016_DFL 8657L + +// +// MessageId: ERROR_LAPS_PROCESS_TERMINATED +// +// MessageText: +// +// The process was terminated by Windows Local Administrator Password Solution per the configured post-authentication-action policy. +// +#define ERROR_LAPS_PROCESS_TERMINATED 8658L + +// +// MessageId: ERROR_DS_JET_RECORD_TOO_BIG +// +// MessageText: +// +// The Active Directory JET database page size limit for this request was exceeded. +// +#define ERROR_DS_JET_RECORD_TOO_BIG 8659L + +// +// MessageId: ERROR_DS_REPLICA_PAGE_SIZE_MISMATCH +// +// MessageText: +// +// The Active Directory JET database page size does not match on all Domain Controllers in this forest. +// +#define ERROR_DS_REPLICA_PAGE_SIZE_MISMATCH 8660L + + +/////////////////////////////////////////////////// +// / +// End of Active Directory Error Codes / +// / +// 8000 to 8999 / +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// // +// DNS Error codes // +// // +// 9000 to 9999 // +/////////////////////////////////////////////////// + +// ============================= +// Facility DNS Error Messages +// ============================= + +// +// DNS response codes. +// + +#define DNS_ERROR_RESPONSE_CODES_BASE 9000 + +#define DNS_ERROR_RCODE_NO_ERROR NO_ERROR + +#define DNS_ERROR_MASK 0x00002328 // 9000 or DNS_ERROR_RESPONSE_CODES_BASE + +// DNS_ERROR_RCODE_FORMAT_ERROR 0x00002329 +// +// MessageId: DNS_ERROR_RCODE_FORMAT_ERROR +// +// MessageText: +// +// DNS server unable to interpret format. +// +#define DNS_ERROR_RCODE_FORMAT_ERROR 9001L + +// DNS_ERROR_RCODE_SERVER_FAILURE 0x0000232a +// +// MessageId: DNS_ERROR_RCODE_SERVER_FAILURE +// +// MessageText: +// +// DNS server failure. +// +#define DNS_ERROR_RCODE_SERVER_FAILURE 9002L + +// DNS_ERROR_RCODE_NAME_ERROR 0x0000232b +// +// MessageId: DNS_ERROR_RCODE_NAME_ERROR +// +// MessageText: +// +// DNS name does not exist. +// +#define DNS_ERROR_RCODE_NAME_ERROR 9003L + +// DNS_ERROR_RCODE_NOT_IMPLEMENTED 0x0000232c +// +// MessageId: DNS_ERROR_RCODE_NOT_IMPLEMENTED +// +// MessageText: +// +// DNS request not supported by name server. +// +#define DNS_ERROR_RCODE_NOT_IMPLEMENTED 9004L + +// DNS_ERROR_RCODE_REFUSED 0x0000232d +// +// MessageId: DNS_ERROR_RCODE_REFUSED +// +// MessageText: +// +// DNS operation refused. +// +#define DNS_ERROR_RCODE_REFUSED 9005L + +// DNS_ERROR_RCODE_YXDOMAIN 0x0000232e +// +// MessageId: DNS_ERROR_RCODE_YXDOMAIN +// +// MessageText: +// +// DNS name that ought not exist, does exist. +// +#define DNS_ERROR_RCODE_YXDOMAIN 9006L + +// DNS_ERROR_RCODE_YXRRSET 0x0000232f +// +// MessageId: DNS_ERROR_RCODE_YXRRSET +// +// MessageText: +// +// DNS RR set that ought not exist, does exist. +// +#define DNS_ERROR_RCODE_YXRRSET 9007L + +// DNS_ERROR_RCODE_NXRRSET 0x00002330 +// +// MessageId: DNS_ERROR_RCODE_NXRRSET +// +// MessageText: +// +// DNS RR set that ought to exist, does not exist. +// +#define DNS_ERROR_RCODE_NXRRSET 9008L + +// DNS_ERROR_RCODE_NOTAUTH 0x00002331 +// +// MessageId: DNS_ERROR_RCODE_NOTAUTH +// +// MessageText: +// +// DNS server not authoritative for zone. +// +#define DNS_ERROR_RCODE_NOTAUTH 9009L + +// DNS_ERROR_RCODE_NOTZONE 0x00002332 +// +// MessageId: DNS_ERROR_RCODE_NOTZONE +// +// MessageText: +// +// DNS name in update or prereq is not in zone. +// +#define DNS_ERROR_RCODE_NOTZONE 9010L + +// DNS_ERROR_RCODE_BADSIG 0x00002338 +// +// MessageId: DNS_ERROR_RCODE_BADSIG +// +// MessageText: +// +// DNS signature failed to verify. +// +#define DNS_ERROR_RCODE_BADSIG 9016L + +// DNS_ERROR_RCODE_BADKEY 0x00002339 +// +// MessageId: DNS_ERROR_RCODE_BADKEY +// +// MessageText: +// +// DNS bad key. +// +#define DNS_ERROR_RCODE_BADKEY 9017L + +// DNS_ERROR_RCODE_BADTIME 0x0000233a +// +// MessageId: DNS_ERROR_RCODE_BADTIME +// +// MessageText: +// +// DNS signature validity expired. +// +#define DNS_ERROR_RCODE_BADTIME 9018L + +#define DNS_ERROR_RCODE_LAST DNS_ERROR_RCODE_BADTIME + + +// +// DNSSEC errors +// + +#define DNS_ERROR_DNSSEC_BASE 9100 + +// +// MessageId: DNS_ERROR_KEYMASTER_REQUIRED +// +// MessageText: +// +// Only the DNS server acting as the key master for the zone may perform this operation. +// +#define DNS_ERROR_KEYMASTER_REQUIRED 9101L + +// +// MessageId: DNS_ERROR_NOT_ALLOWED_ON_SIGNED_ZONE +// +// MessageText: +// +// This operation is not allowed on a zone that is signed or has signing keys. +// +#define DNS_ERROR_NOT_ALLOWED_ON_SIGNED_ZONE 9102L + +// +// MessageId: DNS_ERROR_NSEC3_INCOMPATIBLE_WITH_RSA_SHA1 +// +// MessageText: +// +// NSEC3 is not compatible with the RSA-SHA-1 algorithm. Choose a different algorithm or use NSEC. +// +#define DNS_ERROR_NSEC3_INCOMPATIBLE_WITH_RSA_SHA1 9103L + +// +// MessageId: DNS_ERROR_NOT_ENOUGH_SIGNING_KEY_DESCRIPTORS +// +// MessageText: +// +// The zone does not have enough signing keys. There must be at least one key signing key (KSK) and at least one zone signing key (ZSK). +// +#define DNS_ERROR_NOT_ENOUGH_SIGNING_KEY_DESCRIPTORS 9104L + +// +// MessageId: DNS_ERROR_UNSUPPORTED_ALGORITHM +// +// MessageText: +// +// The specified algorithm is not supported. +// +#define DNS_ERROR_UNSUPPORTED_ALGORITHM 9105L + +// +// MessageId: DNS_ERROR_INVALID_KEY_SIZE +// +// MessageText: +// +// The specified key size is not supported. +// +#define DNS_ERROR_INVALID_KEY_SIZE 9106L + +// +// MessageId: DNS_ERROR_SIGNING_KEY_NOT_ACCESSIBLE +// +// MessageText: +// +// One or more of the signing keys for a zone are not accessible to the DNS server. Zone signing will not be operational until this error is resolved. +// +#define DNS_ERROR_SIGNING_KEY_NOT_ACCESSIBLE 9107L + +// +// MessageId: DNS_ERROR_KSP_DOES_NOT_SUPPORT_PROTECTION +// +// MessageText: +// +// The specified key storage provider does not support DPAPI++ data protection. Zone signing will not be operational until this error is resolved. +// +#define DNS_ERROR_KSP_DOES_NOT_SUPPORT_PROTECTION 9108L + +// +// MessageId: DNS_ERROR_UNEXPECTED_DATA_PROTECTION_ERROR +// +// MessageText: +// +// An unexpected DPAPI++ error was encountered. Zone signing will not be operational until this error is resolved. +// +#define DNS_ERROR_UNEXPECTED_DATA_PROTECTION_ERROR 9109L + +// +// MessageId: DNS_ERROR_UNEXPECTED_CNG_ERROR +// +// MessageText: +// +// An unexpected crypto error was encountered. Zone signing may not be operational until this error is resolved. +// +#define DNS_ERROR_UNEXPECTED_CNG_ERROR 9110L + +// +// MessageId: DNS_ERROR_UNKNOWN_SIGNING_PARAMETER_VERSION +// +// MessageText: +// +// The DNS server encountered a signing key with an unknown version. Zone signing will not be operational until this error is resolved. +// +#define DNS_ERROR_UNKNOWN_SIGNING_PARAMETER_VERSION 9111L + +// +// MessageId: DNS_ERROR_KSP_NOT_ACCESSIBLE +// +// MessageText: +// +// The specified key service provider cannot be opened by the DNS server. +// +#define DNS_ERROR_KSP_NOT_ACCESSIBLE 9112L + +// +// MessageId: DNS_ERROR_TOO_MANY_SKDS +// +// MessageText: +// +// The DNS server cannot accept any more signing keys with the specified algorithm and KSK flag value for this zone. +// +#define DNS_ERROR_TOO_MANY_SKDS 9113L + +// +// MessageId: DNS_ERROR_INVALID_ROLLOVER_PERIOD +// +// MessageText: +// +// The specified rollover period is invalid. +// +#define DNS_ERROR_INVALID_ROLLOVER_PERIOD 9114L + +// +// MessageId: DNS_ERROR_INVALID_INITIAL_ROLLOVER_OFFSET +// +// MessageText: +// +// The specified initial rollover offset is invalid. +// +#define DNS_ERROR_INVALID_INITIAL_ROLLOVER_OFFSET 9115L + +// +// MessageId: DNS_ERROR_ROLLOVER_IN_PROGRESS +// +// MessageText: +// +// The specified signing key is already in process of rolling over keys. +// +#define DNS_ERROR_ROLLOVER_IN_PROGRESS 9116L + +// +// MessageId: DNS_ERROR_STANDBY_KEY_NOT_PRESENT +// +// MessageText: +// +// The specified signing key does not have a standby key to revoke. +// +#define DNS_ERROR_STANDBY_KEY_NOT_PRESENT 9117L + +// +// MessageId: DNS_ERROR_NOT_ALLOWED_ON_ZSK +// +// MessageText: +// +// This operation is not allowed on a zone signing key (ZSK). +// +#define DNS_ERROR_NOT_ALLOWED_ON_ZSK 9118L + +// +// MessageId: DNS_ERROR_NOT_ALLOWED_ON_ACTIVE_SKD +// +// MessageText: +// +// This operation is not allowed on an active signing key. +// +#define DNS_ERROR_NOT_ALLOWED_ON_ACTIVE_SKD 9119L + +// +// MessageId: DNS_ERROR_ROLLOVER_ALREADY_QUEUED +// +// MessageText: +// +// The specified signing key is already queued for rollover. +// +#define DNS_ERROR_ROLLOVER_ALREADY_QUEUED 9120L + +// +// MessageId: DNS_ERROR_NOT_ALLOWED_ON_UNSIGNED_ZONE +// +// MessageText: +// +// This operation is not allowed on an unsigned zone. +// +#define DNS_ERROR_NOT_ALLOWED_ON_UNSIGNED_ZONE 9121L + +// +// MessageId: DNS_ERROR_BAD_KEYMASTER +// +// MessageText: +// +// This operation could not be completed because the DNS server listed as the current key master for this zone is down or misconfigured. Resolve the problem on the current key master for this zone or use another DNS server to seize the key master role. +// +#define DNS_ERROR_BAD_KEYMASTER 9122L + +// +// MessageId: DNS_ERROR_INVALID_SIGNATURE_VALIDITY_PERIOD +// +// MessageText: +// +// The specified signature validity period is invalid. +// +#define DNS_ERROR_INVALID_SIGNATURE_VALIDITY_PERIOD 9123L + +// +// MessageId: DNS_ERROR_INVALID_NSEC3_ITERATION_COUNT +// +// MessageText: +// +// The specified NSEC3 iteration count is higher than allowed by the minimum key length used in the zone. +// +#define DNS_ERROR_INVALID_NSEC3_ITERATION_COUNT 9124L + +// +// MessageId: DNS_ERROR_DNSSEC_IS_DISABLED +// +// MessageText: +// +// This operation could not be completed because the DNS server has been configured with DNSSEC features disabled. Enable DNSSEC on the DNS server. +// +#define DNS_ERROR_DNSSEC_IS_DISABLED 9125L + +// +// MessageId: DNS_ERROR_INVALID_XML +// +// MessageText: +// +// This operation could not be completed because the XML stream received is empty or syntactically invalid. +// +#define DNS_ERROR_INVALID_XML 9126L + +// +// MessageId: DNS_ERROR_NO_VALID_TRUST_ANCHORS +// +// MessageText: +// +// This operation completed, but no trust anchors were added because all of the trust anchors received were either invalid, unsupported, expired, or would not become valid in less than 30 days. +// +#define DNS_ERROR_NO_VALID_TRUST_ANCHORS 9127L + +// +// MessageId: DNS_ERROR_ROLLOVER_NOT_POKEABLE +// +// MessageText: +// +// The specified signing key is not waiting for parental DS update. +// +#define DNS_ERROR_ROLLOVER_NOT_POKEABLE 9128L + +// +// MessageId: DNS_ERROR_NSEC3_NAME_COLLISION +// +// MessageText: +// +// Hash collision detected during NSEC3 signing. Specify a different user-provided salt, or use a randomly generated salt, and attempt to sign the zone again. +// +#define DNS_ERROR_NSEC3_NAME_COLLISION 9129L + +// +// MessageId: DNS_ERROR_NSEC_INCOMPATIBLE_WITH_NSEC3_RSA_SHA1 +// +// MessageText: +// +// NSEC is not compatible with the NSEC3-RSA-SHA-1 algorithm. Choose a different algorithm or use NSEC3. +// +#define DNS_ERROR_NSEC_INCOMPATIBLE_WITH_NSEC3_RSA_SHA1 9130L + + +// +// Packet format +// + +#define DNS_ERROR_PACKET_FMT_BASE 9500 + +// DNS_INFO_NO_RECORDS 0x0000251d +// +// MessageId: DNS_INFO_NO_RECORDS +// +// MessageText: +// +// No records found for given DNS query. +// +#define DNS_INFO_NO_RECORDS 9501L + +// DNS_ERROR_BAD_PACKET 0x0000251e +// +// MessageId: DNS_ERROR_BAD_PACKET +// +// MessageText: +// +// Bad DNS packet. +// +#define DNS_ERROR_BAD_PACKET 9502L + +// DNS_ERROR_NO_PACKET 0x0000251f +// +// MessageId: DNS_ERROR_NO_PACKET +// +// MessageText: +// +// No DNS packet. +// +#define DNS_ERROR_NO_PACKET 9503L + +// DNS_ERROR_RCODE 0x00002520 +// +// MessageId: DNS_ERROR_RCODE +// +// MessageText: +// +// DNS error, check rcode. +// +#define DNS_ERROR_RCODE 9504L + +// DNS_ERROR_UNSECURE_PACKET 0x00002521 +// +// MessageId: DNS_ERROR_UNSECURE_PACKET +// +// MessageText: +// +// Unsecured DNS packet. +// +#define DNS_ERROR_UNSECURE_PACKET 9505L + +#define DNS_STATUS_PACKET_UNSECURE DNS_ERROR_UNSECURE_PACKET + +// DNS_REQUEST_PENDING 0x00002522 +// +// MessageId: DNS_REQUEST_PENDING +// +// MessageText: +// +// DNS query request is pending. +// +#define DNS_REQUEST_PENDING 9506L + + +// +// General API errors +// + +#define DNS_ERROR_NO_MEMORY ERROR_OUTOFMEMORY +#define DNS_ERROR_INVALID_NAME ERROR_INVALID_NAME +#define DNS_ERROR_INVALID_DATA ERROR_INVALID_DATA + +#define DNS_ERROR_GENERAL_API_BASE 9550 + +// DNS_ERROR_INVALID_TYPE 0x0000254f +// +// MessageId: DNS_ERROR_INVALID_TYPE +// +// MessageText: +// +// Invalid DNS type. +// +#define DNS_ERROR_INVALID_TYPE 9551L + +// DNS_ERROR_INVALID_IP_ADDRESS 0x00002550 +// +// MessageId: DNS_ERROR_INVALID_IP_ADDRESS +// +// MessageText: +// +// Invalid IP address. +// +#define DNS_ERROR_INVALID_IP_ADDRESS 9552L + +// DNS_ERROR_INVALID_PROPERTY 0x00002551 +// +// MessageId: DNS_ERROR_INVALID_PROPERTY +// +// MessageText: +// +// Invalid property. +// +#define DNS_ERROR_INVALID_PROPERTY 9553L + +// DNS_ERROR_TRY_AGAIN_LATER 0x00002552 +// +// MessageId: DNS_ERROR_TRY_AGAIN_LATER +// +// MessageText: +// +// Try DNS operation again later. +// +#define DNS_ERROR_TRY_AGAIN_LATER 9554L + +// DNS_ERROR_NOT_UNIQUE 0x00002553 +// +// MessageId: DNS_ERROR_NOT_UNIQUE +// +// MessageText: +// +// Record for given name and type is not unique. +// +#define DNS_ERROR_NOT_UNIQUE 9555L + +// DNS_ERROR_NON_RFC_NAME 0x00002554 +// +// MessageId: DNS_ERROR_NON_RFC_NAME +// +// MessageText: +// +// DNS name does not comply with RFC specifications. +// +#define DNS_ERROR_NON_RFC_NAME 9556L + +// DNS_STATUS_FQDN 0x00002555 +// +// MessageId: DNS_STATUS_FQDN +// +// MessageText: +// +// DNS name is a fully-qualified DNS name. +// +#define DNS_STATUS_FQDN 9557L + +// DNS_STATUS_DOTTED_NAME 0x00002556 +// +// MessageId: DNS_STATUS_DOTTED_NAME +// +// MessageText: +// +// DNS name is dotted (multi-label). +// +#define DNS_STATUS_DOTTED_NAME 9558L + +// DNS_STATUS_SINGLE_PART_NAME 0x00002557 +// +// MessageId: DNS_STATUS_SINGLE_PART_NAME +// +// MessageText: +// +// DNS name is a single-part name. +// +#define DNS_STATUS_SINGLE_PART_NAME 9559L + +// DNS_ERROR_INVALID_NAME_CHAR 0x00002558 +// +// MessageId: DNS_ERROR_INVALID_NAME_CHAR +// +// MessageText: +// +// DNS name contains an invalid character. +// +#define DNS_ERROR_INVALID_NAME_CHAR 9560L + +// DNS_ERROR_NUMERIC_NAME 0x00002559 +// +// MessageId: DNS_ERROR_NUMERIC_NAME +// +// MessageText: +// +// DNS name is entirely numeric. +// +#define DNS_ERROR_NUMERIC_NAME 9561L + +// DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER 0x0000255A +// +// MessageId: DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER +// +// MessageText: +// +// The operation requested is not permitted on a DNS root server. +// +#define DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER 9562L + +// DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION 0x0000255B +// +// MessageId: DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION +// +// MessageText: +// +// The record could not be created because this part of the DNS namespace has been delegated to another server. +// +#define DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION 9563L + +// DNS_ERROR_CANNOT_FIND_ROOT_HINTS 0x0000255C +// +// MessageId: DNS_ERROR_CANNOT_FIND_ROOT_HINTS +// +// MessageText: +// +// The DNS server could not find a set of root hints. +// +#define DNS_ERROR_CANNOT_FIND_ROOT_HINTS 9564L + +// DNS_ERROR_INCONSISTENT_ROOT_HINTS 0x0000255D +// +// MessageId: DNS_ERROR_INCONSISTENT_ROOT_HINTS +// +// MessageText: +// +// The DNS server found root hints but they were not consistent across all adapters. +// +#define DNS_ERROR_INCONSISTENT_ROOT_HINTS 9565L + +// DNS_ERROR_DWORD_VALUE_TOO_SMALL 0x0000255E +// +// MessageId: DNS_ERROR_DWORD_VALUE_TOO_SMALL +// +// MessageText: +// +// The specified value is too small for this parameter. +// +#define DNS_ERROR_DWORD_VALUE_TOO_SMALL 9566L + +// DNS_ERROR_DWORD_VALUE_TOO_LARGE 0x0000255F +// +// MessageId: DNS_ERROR_DWORD_VALUE_TOO_LARGE +// +// MessageText: +// +// The specified value is too large for this parameter. +// +#define DNS_ERROR_DWORD_VALUE_TOO_LARGE 9567L + +// DNS_ERROR_BACKGROUND_LOADING 0x00002560 +// +// MessageId: DNS_ERROR_BACKGROUND_LOADING +// +// MessageText: +// +// This operation is not allowed while the DNS server is loading zones in the background. Please try again later. +// +#define DNS_ERROR_BACKGROUND_LOADING 9568L + +// DNS_ERROR_NOT_ALLOWED_ON_RODC 0x00002561 +// +// MessageId: DNS_ERROR_NOT_ALLOWED_ON_RODC +// +// MessageText: +// +// The operation requested is not permitted on against a DNS server running on a read-only DC. +// +#define DNS_ERROR_NOT_ALLOWED_ON_RODC 9569L + +// DNS_ERROR_NOT_ALLOWED_UNDER_DNAME 0x00002562 +// +// MessageId: DNS_ERROR_NOT_ALLOWED_UNDER_DNAME +// +// MessageText: +// +// No data is allowed to exist underneath a DNAME record. +// +#define DNS_ERROR_NOT_ALLOWED_UNDER_DNAME 9570L + +// DNS_ERROR_DELEGATION_REQUIRED 0x00002563 +// +// MessageId: DNS_ERROR_DELEGATION_REQUIRED +// +// MessageText: +// +// This operation requires credentials delegation. +// +#define DNS_ERROR_DELEGATION_REQUIRED 9571L + +// DNS_ERROR_INVALID_POLICY_TABLE 0x00002564 +// +// MessageId: DNS_ERROR_INVALID_POLICY_TABLE +// +// MessageText: +// +// Name resolution policy table has been corrupted. DNS resolution will fail until it is fixed. Contact your network administrator. +// +#define DNS_ERROR_INVALID_POLICY_TABLE 9572L + +// DNS_ERROR_ADDRESS_REQUIRED 0x00002565 +// +// MessageId: DNS_ERROR_ADDRESS_REQUIRED +// +// MessageText: +// +// Not allowed to remove all addresses. +// +#define DNS_ERROR_ADDRESS_REQUIRED 9573L + + +// +// Zone errors +// + +#define DNS_ERROR_ZONE_BASE 9600 + +// DNS_ERROR_ZONE_DOES_NOT_EXIST 0x00002581 +// +// MessageId: DNS_ERROR_ZONE_DOES_NOT_EXIST +// +// MessageText: +// +// DNS zone does not exist. +// +#define DNS_ERROR_ZONE_DOES_NOT_EXIST 9601L + +// DNS_ERROR_NO_ZONE_INFO 0x00002582 +// +// MessageId: DNS_ERROR_NO_ZONE_INFO +// +// MessageText: +// +// DNS zone information not available. +// +#define DNS_ERROR_NO_ZONE_INFO 9602L + +// DNS_ERROR_INVALID_ZONE_OPERATION 0x00002583 +// +// MessageId: DNS_ERROR_INVALID_ZONE_OPERATION +// +// MessageText: +// +// Invalid operation for DNS zone. +// +#define DNS_ERROR_INVALID_ZONE_OPERATION 9603L + +// DNS_ERROR_ZONE_CONFIGURATION_ERROR 0x00002584 +// +// MessageId: DNS_ERROR_ZONE_CONFIGURATION_ERROR +// +// MessageText: +// +// Invalid DNS zone configuration. +// +#define DNS_ERROR_ZONE_CONFIGURATION_ERROR 9604L + +// DNS_ERROR_ZONE_HAS_NO_SOA_RECORD 0x00002585 +// +// MessageId: DNS_ERROR_ZONE_HAS_NO_SOA_RECORD +// +// MessageText: +// +// DNS zone has no start of authority (SOA) record. +// +#define DNS_ERROR_ZONE_HAS_NO_SOA_RECORD 9605L + +// DNS_ERROR_ZONE_HAS_NO_NS_RECORDS 0x00002586 +// +// MessageId: DNS_ERROR_ZONE_HAS_NO_NS_RECORDS +// +// MessageText: +// +// DNS zone has no Name Server (NS) record. +// +#define DNS_ERROR_ZONE_HAS_NO_NS_RECORDS 9606L + +// DNS_ERROR_ZONE_LOCKED 0x00002587 +// +// MessageId: DNS_ERROR_ZONE_LOCKED +// +// MessageText: +// +// DNS zone is locked. +// +#define DNS_ERROR_ZONE_LOCKED 9607L + +// DNS_ERROR_ZONE_CREATION_FAILED 0x00002588 +// +// MessageId: DNS_ERROR_ZONE_CREATION_FAILED +// +// MessageText: +// +// DNS zone creation failed. +// +#define DNS_ERROR_ZONE_CREATION_FAILED 9608L + +// DNS_ERROR_ZONE_ALREADY_EXISTS 0x00002589 +// +// MessageId: DNS_ERROR_ZONE_ALREADY_EXISTS +// +// MessageText: +// +// DNS zone already exists. +// +#define DNS_ERROR_ZONE_ALREADY_EXISTS 9609L + +// DNS_ERROR_AUTOZONE_ALREADY_EXISTS 0x0000258a +// +// MessageId: DNS_ERROR_AUTOZONE_ALREADY_EXISTS +// +// MessageText: +// +// DNS automatic zone already exists. +// +#define DNS_ERROR_AUTOZONE_ALREADY_EXISTS 9610L + +// DNS_ERROR_INVALID_ZONE_TYPE 0x0000258b +// +// MessageId: DNS_ERROR_INVALID_ZONE_TYPE +// +// MessageText: +// +// Invalid DNS zone type. +// +#define DNS_ERROR_INVALID_ZONE_TYPE 9611L + +// DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP 0x0000258c +// +// MessageId: DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP +// +// MessageText: +// +// Secondary DNS zone requires master IP address. +// +#define DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP 9612L + +// DNS_ERROR_ZONE_NOT_SECONDARY 0x0000258d +// +// MessageId: DNS_ERROR_ZONE_NOT_SECONDARY +// +// MessageText: +// +// DNS zone not secondary. +// +#define DNS_ERROR_ZONE_NOT_SECONDARY 9613L + +// DNS_ERROR_NEED_SECONDARY_ADDRESSES 0x0000258e +// +// MessageId: DNS_ERROR_NEED_SECONDARY_ADDRESSES +// +// MessageText: +// +// Need secondary IP address. +// +#define DNS_ERROR_NEED_SECONDARY_ADDRESSES 9614L + +// DNS_ERROR_WINS_INIT_FAILED 0x0000258f +// +// MessageId: DNS_ERROR_WINS_INIT_FAILED +// +// MessageText: +// +// WINS initialization failed. +// +#define DNS_ERROR_WINS_INIT_FAILED 9615L + +// DNS_ERROR_NEED_WINS_SERVERS 0x00002590 +// +// MessageId: DNS_ERROR_NEED_WINS_SERVERS +// +// MessageText: +// +// Need WINS servers. +// +#define DNS_ERROR_NEED_WINS_SERVERS 9616L + +// DNS_ERROR_NBSTAT_INIT_FAILED 0x00002591 +// +// MessageId: DNS_ERROR_NBSTAT_INIT_FAILED +// +// MessageText: +// +// NBTSTAT initialization call failed. +// +#define DNS_ERROR_NBSTAT_INIT_FAILED 9617L + +// DNS_ERROR_SOA_DELETE_INVALID 0x00002592 +// +// MessageId: DNS_ERROR_SOA_DELETE_INVALID +// +// MessageText: +// +// Invalid delete of start of authority (SOA) +// +#define DNS_ERROR_SOA_DELETE_INVALID 9618L + +// DNS_ERROR_FORWARDER_ALREADY_EXISTS 0x00002593 +// +// MessageId: DNS_ERROR_FORWARDER_ALREADY_EXISTS +// +// MessageText: +// +// A conditional forwarding zone already exists for that name. +// +#define DNS_ERROR_FORWARDER_ALREADY_EXISTS 9619L + +// DNS_ERROR_ZONE_REQUIRES_MASTER_IP 0x00002594 +// +// MessageId: DNS_ERROR_ZONE_REQUIRES_MASTER_IP +// +// MessageText: +// +// This zone must be configured with one or more master DNS server IP addresses. +// +#define DNS_ERROR_ZONE_REQUIRES_MASTER_IP 9620L + +// DNS_ERROR_ZONE_IS_SHUTDOWN 0x00002595 +// +// MessageId: DNS_ERROR_ZONE_IS_SHUTDOWN +// +// MessageText: +// +// The operation cannot be performed because this zone is shut down. +// +#define DNS_ERROR_ZONE_IS_SHUTDOWN 9621L + +// DNS_ERROR_ZONE_LOCKED_FOR_SIGNING 0x00002596 +// +// MessageId: DNS_ERROR_ZONE_LOCKED_FOR_SIGNING +// +// MessageText: +// +// This operation cannot be performed because the zone is currently being signed. Please try again later. +// +#define DNS_ERROR_ZONE_LOCKED_FOR_SIGNING 9622L + + +// +// Datafile errors +// + +#define DNS_ERROR_DATAFILE_BASE 9650 + +// DNS 0x000025b3 +// +// MessageId: DNS_ERROR_PRIMARY_REQUIRES_DATAFILE +// +// MessageText: +// +// Primary DNS zone requires datafile. +// +#define DNS_ERROR_PRIMARY_REQUIRES_DATAFILE 9651L + +// DNS 0x000025b4 +// +// MessageId: DNS_ERROR_INVALID_DATAFILE_NAME +// +// MessageText: +// +// Invalid datafile name for DNS zone. +// +#define DNS_ERROR_INVALID_DATAFILE_NAME 9652L + +// DNS 0x000025b5 +// +// MessageId: DNS_ERROR_DATAFILE_OPEN_FAILURE +// +// MessageText: +// +// Failed to open datafile for DNS zone. +// +#define DNS_ERROR_DATAFILE_OPEN_FAILURE 9653L + +// DNS 0x000025b6 +// +// MessageId: DNS_ERROR_FILE_WRITEBACK_FAILED +// +// MessageText: +// +// Failed to write datafile for DNS zone. +// +#define DNS_ERROR_FILE_WRITEBACK_FAILED 9654L + +// DNS 0x000025b7 +// +// MessageId: DNS_ERROR_DATAFILE_PARSING +// +// MessageText: +// +// Failure while reading datafile for DNS zone. +// +#define DNS_ERROR_DATAFILE_PARSING 9655L + + +// +// Database errors +// + +#define DNS_ERROR_DATABASE_BASE 9700 + +// DNS_ERROR_RECORD_DOES_NOT_EXIST 0x000025e5 +// +// MessageId: DNS_ERROR_RECORD_DOES_NOT_EXIST +// +// MessageText: +// +// DNS record does not exist. +// +#define DNS_ERROR_RECORD_DOES_NOT_EXIST 9701L + +// DNS_ERROR_RECORD_FORMAT 0x000025e6 +// +// MessageId: DNS_ERROR_RECORD_FORMAT +// +// MessageText: +// +// DNS record format error. +// +#define DNS_ERROR_RECORD_FORMAT 9702L + +// DNS_ERROR_NODE_CREATION_FAILED 0x000025e7 +// +// MessageId: DNS_ERROR_NODE_CREATION_FAILED +// +// MessageText: +// +// Node creation failure in DNS. +// +#define DNS_ERROR_NODE_CREATION_FAILED 9703L + +// DNS_ERROR_UNKNOWN_RECORD_TYPE 0x000025e8 +// +// MessageId: DNS_ERROR_UNKNOWN_RECORD_TYPE +// +// MessageText: +// +// Unknown DNS record type. +// +#define DNS_ERROR_UNKNOWN_RECORD_TYPE 9704L + +// DNS_ERROR_RECORD_TIMED_OUT 0x000025e9 +// +// MessageId: DNS_ERROR_RECORD_TIMED_OUT +// +// MessageText: +// +// DNS record timed out. +// +#define DNS_ERROR_RECORD_TIMED_OUT 9705L + +// DNS_ERROR_NAME_NOT_IN_ZONE 0x000025ea +// +// MessageId: DNS_ERROR_NAME_NOT_IN_ZONE +// +// MessageText: +// +// Name not in DNS zone. +// +#define DNS_ERROR_NAME_NOT_IN_ZONE 9706L + +// DNS_ERROR_CNAME_LOOP 0x000025eb +// +// MessageId: DNS_ERROR_CNAME_LOOP +// +// MessageText: +// +// CNAME loop detected. +// +#define DNS_ERROR_CNAME_LOOP 9707L + +// DNS_ERROR_NODE_IS_CNAME 0x000025ec +// +// MessageId: DNS_ERROR_NODE_IS_CNAME +// +// MessageText: +// +// Node is a CNAME DNS record. +// +#define DNS_ERROR_NODE_IS_CNAME 9708L + +// DNS_ERROR_CNAME_COLLISION 0x000025ed +// +// MessageId: DNS_ERROR_CNAME_COLLISION +// +// MessageText: +// +// A CNAME record already exists for given name. +// +#define DNS_ERROR_CNAME_COLLISION 9709L + +// DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT 0x000025ee +// +// MessageId: DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT +// +// MessageText: +// +// Record only at DNS zone root. +// +#define DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT 9710L + +// DNS_ERROR_RECORD_ALREADY_EXISTS 0x000025ef +// +// MessageId: DNS_ERROR_RECORD_ALREADY_EXISTS +// +// MessageText: +// +// DNS record already exists. +// +#define DNS_ERROR_RECORD_ALREADY_EXISTS 9711L + +// DNS_ERROR_SECONDARY_DATA 0x000025f0 +// +// MessageId: DNS_ERROR_SECONDARY_DATA +// +// MessageText: +// +// Secondary DNS zone data error. +// +#define DNS_ERROR_SECONDARY_DATA 9712L + +// DNS_ERROR_NO_CREATE_CACHE_DATA 0x000025f1 +// +// MessageId: DNS_ERROR_NO_CREATE_CACHE_DATA +// +// MessageText: +// +// Could not create DNS cache data. +// +#define DNS_ERROR_NO_CREATE_CACHE_DATA 9713L + +// DNS_ERROR_NAME_DOES_NOT_EXIST 0x000025f2 +// +// MessageId: DNS_ERROR_NAME_DOES_NOT_EXIST +// +// MessageText: +// +// DNS name does not exist. +// +#define DNS_ERROR_NAME_DOES_NOT_EXIST 9714L + +// DNS_WARNING_PTR_CREATE_FAILED 0x000025f3 +// +// MessageId: DNS_WARNING_PTR_CREATE_FAILED +// +// MessageText: +// +// Could not create pointer (PTR) record. +// +#define DNS_WARNING_PTR_CREATE_FAILED 9715L + +// DNS_WARNING_DOMAIN_UNDELETED 0x000025f4 +// +// MessageId: DNS_WARNING_DOMAIN_UNDELETED +// +// MessageText: +// +// DNS domain was undeleted. +// +#define DNS_WARNING_DOMAIN_UNDELETED 9716L + +// DNS_ERROR_DS_UNAVAILABLE 0x000025f5 +// +// MessageId: DNS_ERROR_DS_UNAVAILABLE +// +// MessageText: +// +// The directory service is unavailable. +// +#define DNS_ERROR_DS_UNAVAILABLE 9717L + +// DNS_ERROR_DS_ZONE_ALREADY_EXISTS 0x000025f6 +// +// MessageId: DNS_ERROR_DS_ZONE_ALREADY_EXISTS +// +// MessageText: +// +// DNS zone already exists in the directory service. +// +#define DNS_ERROR_DS_ZONE_ALREADY_EXISTS 9718L + +// DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE 0x000025f7 +// +// MessageId: DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE +// +// MessageText: +// +// DNS server not creating or reading the boot file for the directory service integrated DNS zone. +// +#define DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE 9719L + +// DNS_ERROR_NODE_IS_DNAME 0x000025f8 +// +// MessageId: DNS_ERROR_NODE_IS_DNAME +// +// MessageText: +// +// Node is a DNAME DNS record. +// +#define DNS_ERROR_NODE_IS_DNAME 9720L + +// DNS_ERROR_DNAME_COLLISION 0x000025f9 +// +// MessageId: DNS_ERROR_DNAME_COLLISION +// +// MessageText: +// +// A DNAME record already exists for given name. +// +#define DNS_ERROR_DNAME_COLLISION 9721L + +// DNS_ERROR_ALIAS_LOOP 0x000025fa +// +// MessageId: DNS_ERROR_ALIAS_LOOP +// +// MessageText: +// +// An alias loop has been detected with either CNAME or DNAME records. +// +#define DNS_ERROR_ALIAS_LOOP 9722L + + +// +// Operation errors +// + +#define DNS_ERROR_OPERATION_BASE 9750 + +// DNS_INFO_AXFR_COMPLETE 0x00002617 +// +// MessageId: DNS_INFO_AXFR_COMPLETE +// +// MessageText: +// +// DNS AXFR (zone transfer) complete. +// +#define DNS_INFO_AXFR_COMPLETE 9751L + +// DNS_ERROR_AXFR 0x00002618 +// +// MessageId: DNS_ERROR_AXFR +// +// MessageText: +// +// DNS zone transfer failed. +// +#define DNS_ERROR_AXFR 9752L + +// DNS_INFO_ADDED_LOCAL_WINS 0x00002619 +// +// MessageId: DNS_INFO_ADDED_LOCAL_WINS +// +// MessageText: +// +// Added local WINS server. +// +#define DNS_INFO_ADDED_LOCAL_WINS 9753L + + +// +// Secure update +// + +#define DNS_ERROR_SECURE_BASE 9800 + +// DNS_STATUS_CONTINUE_NEEDED 0x00002649 +// +// MessageId: DNS_STATUS_CONTINUE_NEEDED +// +// MessageText: +// +// Secure update call needs to continue update request. +// +#define DNS_STATUS_CONTINUE_NEEDED 9801L + + +// +// Setup errors +// + +#define DNS_ERROR_SETUP_BASE 9850 + +// DNS_ERROR_NO_TCPIP 0x0000267b +// +// MessageId: DNS_ERROR_NO_TCPIP +// +// MessageText: +// +// TCP/IP network protocol not installed. +// +#define DNS_ERROR_NO_TCPIP 9851L + +// DNS_ERROR_NO_DNS_SERVERS 0x0000267c +// +// MessageId: DNS_ERROR_NO_DNS_SERVERS +// +// MessageText: +// +// No DNS servers configured for local system. +// +#define DNS_ERROR_NO_DNS_SERVERS 9852L + + +// +// Directory partition (DP) errors +// + +#define DNS_ERROR_DP_BASE 9900 + +// DNS_ERROR_DP_DOES_NOT_EXIST 0x000026ad +// +// MessageId: DNS_ERROR_DP_DOES_NOT_EXIST +// +// MessageText: +// +// The specified directory partition does not exist. +// +#define DNS_ERROR_DP_DOES_NOT_EXIST 9901L + +// DNS_ERROR_DP_ALREADY_EXISTS 0x000026ae +// +// MessageId: DNS_ERROR_DP_ALREADY_EXISTS +// +// MessageText: +// +// The specified directory partition already exists. +// +#define DNS_ERROR_DP_ALREADY_EXISTS 9902L + +// DNS_ERROR_DP_NOT_ENLISTED 0x000026af +// +// MessageId: DNS_ERROR_DP_NOT_ENLISTED +// +// MessageText: +// +// This DNS server is not enlisted in the specified directory partition. +// +#define DNS_ERROR_DP_NOT_ENLISTED 9903L + +// DNS_ERROR_DP_ALREADY_ENLISTED 0x000026b0 +// +// MessageId: DNS_ERROR_DP_ALREADY_ENLISTED +// +// MessageText: +// +// This DNS server is already enlisted in the specified directory partition. +// +#define DNS_ERROR_DP_ALREADY_ENLISTED 9904L + +// DNS_ERROR_DP_NOT_AVAILABLE 0x000026b1 +// +// MessageId: DNS_ERROR_DP_NOT_AVAILABLE +// +// MessageText: +// +// The directory partition is not available at this time. Please wait a few minutes and try again. +// +#define DNS_ERROR_DP_NOT_AVAILABLE 9905L + +// DNS_ERROR_DP_FSMO_ERROR 0x000026b2 +// +// MessageId: DNS_ERROR_DP_FSMO_ERROR +// +// MessageText: +// +// The operation failed because the domain naming master FSMO role could not be reached. The domain controller holding the domain naming master FSMO role is down or unable to service the request or is not running Windows Server 2003 or later. +// +#define DNS_ERROR_DP_FSMO_ERROR 9906L + +// +// DNS RRL errors from 9911 to 9920 +// +// DNS_ERROR_RRL_NOT_ENABLED 0x000026B7 +// +// MessageId: DNS_ERROR_RRL_NOT_ENABLED +// +// MessageText: +// +// The RRL is not enabled. +// +#define DNS_ERROR_RRL_NOT_ENABLED 9911L + +// DNS_ERROR_RRL_INVALID_WINDOW_SIZE 0x000026B8 +// +// MessageId: DNS_ERROR_RRL_INVALID_WINDOW_SIZE +// +// MessageText: +// +// The window size parameter is invalid. It should be greater than or equal to 1. +// +#define DNS_ERROR_RRL_INVALID_WINDOW_SIZE 9912L + +// DNS_ERROR_RRL_INVALID_IPV4_PREFIX 0x000026B9 +// +// MessageId: DNS_ERROR_RRL_INVALID_IPV4_PREFIX +// +// MessageText: +// +// The IPv4 prefix length parameter is invalid. It should be less than or equal to 32. +// +#define DNS_ERROR_RRL_INVALID_IPV4_PREFIX 9913L + +// DNS_ERROR_RRL_INVALID_IPV6_PREFIX 0x000026BA +// +// MessageId: DNS_ERROR_RRL_INVALID_IPV6_PREFIX +// +// MessageText: +// +// The IPv6 prefix length parameter is invalid. It should be less than or equal to 128. +// +#define DNS_ERROR_RRL_INVALID_IPV6_PREFIX 9914L + +// DNS_ERROR_RRL_INVALID_TC_RATE 0x000026BB +// +// MessageId: DNS_ERROR_RRL_INVALID_TC_RATE +// +// MessageText: +// +// The TC Rate parameter is invalid. It should be less than 10. +// +#define DNS_ERROR_RRL_INVALID_TC_RATE 9915L + +// DNS_ERROR_RRL_INVALID_LEAK_RATE 0x000026BC +// +// MessageId: DNS_ERROR_RRL_INVALID_LEAK_RATE +// +// MessageText: +// +// The Leak Rate parameter is invalid. It should be either 0, or between 2 and 10. +// +#define DNS_ERROR_RRL_INVALID_LEAK_RATE 9916L + +// DNS_ERROR_RRL_LEAK_RATE_LESSTHAN_TC_RATE 0x000026BD +// +// MessageId: DNS_ERROR_RRL_LEAK_RATE_LESSTHAN_TC_RATE +// +// MessageText: +// +// The Leak Rate or TC Rate parameter is invalid. Leak Rate should be greater than TC Rate. +// +#define DNS_ERROR_RRL_LEAK_RATE_LESSTHAN_TC_RATE 9917L + + +// +// DNS Virtualization errors from 9921 to 9950 +// +// DNS_ERROR_VIRTUALIZATION_INSTANCE_ALREADY_EXISTS 0x000026c1 +// +// MessageId: DNS_ERROR_VIRTUALIZATION_INSTANCE_ALREADY_EXISTS +// +// MessageText: +// +// The virtualization instance already exists. +// +#define DNS_ERROR_VIRTUALIZATION_INSTANCE_ALREADY_EXISTS 9921L + +// DNS_ERROR_VIRTUALIZATION_INSTANCE_DOES_NOT_EXIST 0x000026c2 +// +// MessageId: DNS_ERROR_VIRTUALIZATION_INSTANCE_DOES_NOT_EXIST +// +// MessageText: +// +// The virtualization instance does not exist. +// +#define DNS_ERROR_VIRTUALIZATION_INSTANCE_DOES_NOT_EXIST 9922L + +// DNS_ERROR_VIRTUALIZATION_TREE_LOCKED 0x000026c3 +// +// MessageId: DNS_ERROR_VIRTUALIZATION_TREE_LOCKED +// +// MessageText: +// +// The virtualization tree is locked. +// +#define DNS_ERROR_VIRTUALIZATION_TREE_LOCKED 9923L + +// DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME 0x000026c4 +// +// MessageId: DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME +// +// MessageText: +// +// Invalid virtualization instance name. +// +#define DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME 9924L + +// DNS_ERROR_DEFAULT_VIRTUALIZATION_INSTANCE 0x000026c5 +// +// MessageId: DNS_ERROR_DEFAULT_VIRTUALIZATION_INSTANCE +// +// MessageText: +// +// The default virtualization instance cannot be added, removed or modified. +// +#define DNS_ERROR_DEFAULT_VIRTUALIZATION_INSTANCE 9925L + + +// +// DNS ZoneScope errors from 9951 to 9970 +// +// DNS_ERROR_ZONESCOPE_ALREADY_EXISTS 0x000026df +// +// MessageId: DNS_ERROR_ZONESCOPE_ALREADY_EXISTS +// +// MessageText: +// +// The scope already exists for the zone. +// +#define DNS_ERROR_ZONESCOPE_ALREADY_EXISTS 9951L + +// DNS_ERROR_ZONESCOPE_DOES_NOT_EXIST 0x000026e0 +// +// MessageId: DNS_ERROR_ZONESCOPE_DOES_NOT_EXIST +// +// MessageText: +// +// The scope does not exist for the zone. +// +#define DNS_ERROR_ZONESCOPE_DOES_NOT_EXIST 9952L + +// DNS_ERROR_DEFAULT_ZONESCOPE 0x000026e1 +// +// MessageId: DNS_ERROR_DEFAULT_ZONESCOPE +// +// MessageText: +// +// The scope is the same as the default zone scope. +// +#define DNS_ERROR_DEFAULT_ZONESCOPE 9953L + +// DNS_ERROR_INVALID_ZONESCOPE_NAME 0x000026e2 +// +// MessageId: DNS_ERROR_INVALID_ZONESCOPE_NAME +// +// MessageText: +// +// The scope name contains invalid characters. +// +#define DNS_ERROR_INVALID_ZONESCOPE_NAME 9954L + +// DNS_ERROR_NOT_ALLOWED_WITH_ZONESCOPES 0x000026e3 +// +// MessageId: DNS_ERROR_NOT_ALLOWED_WITH_ZONESCOPES +// +// MessageText: +// +// Operation not allowed when the zone has scopes. +// +#define DNS_ERROR_NOT_ALLOWED_WITH_ZONESCOPES 9955L + +// DNS_ERROR_LOAD_ZONESCOPE_FAILED 0x000026e4 +// +// MessageId: DNS_ERROR_LOAD_ZONESCOPE_FAILED +// +// MessageText: +// +// Failed to load zone scope. +// +#define DNS_ERROR_LOAD_ZONESCOPE_FAILED 9956L + +// DNS_ERROR_ZONESCOPE_FILE_WRITEBACK_FAILED 0x000026e5 +// +// MessageId: DNS_ERROR_ZONESCOPE_FILE_WRITEBACK_FAILED +// +// MessageText: +// +// Failed to write data file for DNS zone scope. Please verify the file exists and is writable. +// +#define DNS_ERROR_ZONESCOPE_FILE_WRITEBACK_FAILED 9957L + +// DNS_ERROR_INVALID_SCOPE_NAME 0x000026e6 +// +// MessageId: DNS_ERROR_INVALID_SCOPE_NAME +// +// MessageText: +// +// The scope name contains invalid characters. +// +#define DNS_ERROR_INVALID_SCOPE_NAME 9958L + +// DNS_ERROR_SCOPE_DOES_NOT_EXIST 0x000026e7 +// +// MessageId: DNS_ERROR_SCOPE_DOES_NOT_EXIST +// +// MessageText: +// +// The scope does not exist. +// +#define DNS_ERROR_SCOPE_DOES_NOT_EXIST 9959L + +// DNS_ERROR_DEFAULT_SCOPE 0x000026e8 +// +// MessageId: DNS_ERROR_DEFAULT_SCOPE +// +// MessageText: +// +// The scope is the same as the default scope. +// +#define DNS_ERROR_DEFAULT_SCOPE 9960L + +// DNS_ERROR_INVALID_SCOPE_OPERATION 0x000026e9 +// +// MessageId: DNS_ERROR_INVALID_SCOPE_OPERATION +// +// MessageText: +// +// The operation is invalid on the scope. +// +#define DNS_ERROR_INVALID_SCOPE_OPERATION 9961L + +// DNS_ERROR_SCOPE_LOCKED 0x000026ea +// +// MessageId: DNS_ERROR_SCOPE_LOCKED +// +// MessageText: +// +// The scope is locked. +// +#define DNS_ERROR_SCOPE_LOCKED 9962L + +// DNS_ERROR_SCOPE_ALREADY_EXISTS 0x000026eb +// +// MessageId: DNS_ERROR_SCOPE_ALREADY_EXISTS +// +// MessageText: +// +// The scope already exists. +// +#define DNS_ERROR_SCOPE_ALREADY_EXISTS 9963L + + +// +// DNS Policy errors from 9971 to 9999 +// +// DNS_ERROR_POLICY_ALREADY_EXISTS 0x000026f3 +// +// MessageId: DNS_ERROR_POLICY_ALREADY_EXISTS +// +// MessageText: +// +// A policy with the same name already exists on this level (server level or zone level) on the DNS server. +// +#define DNS_ERROR_POLICY_ALREADY_EXISTS 9971L + +// DNS_ERROR_POLICY_DOES_NOT_EXIST 0x000026f4 +// +// MessageId: DNS_ERROR_POLICY_DOES_NOT_EXIST +// +// MessageText: +// +// No policy with this name exists on this level (server level or zone level) on the DNS server. +// +#define DNS_ERROR_POLICY_DOES_NOT_EXIST 9972L + +// DNS_ERROR_POLICY_INVALID_CRITERIA 0x000026f5 +// +// MessageId: DNS_ERROR_POLICY_INVALID_CRITERIA +// +// MessageText: +// +// The criteria provided in the policy are invalid. +// +#define DNS_ERROR_POLICY_INVALID_CRITERIA 9973L + +// DNS_ERROR_POLICY_INVALID_SETTINGS 0x000026f6 +// +// MessageId: DNS_ERROR_POLICY_INVALID_SETTINGS +// +// MessageText: +// +// At least one of the settings of this policy is invalid. +// +#define DNS_ERROR_POLICY_INVALID_SETTINGS 9974L + +// DNS_ERROR_CLIENT_SUBNET_IS_ACCESSED 0x000026f7 +// +// MessageId: DNS_ERROR_CLIENT_SUBNET_IS_ACCESSED +// +// MessageText: +// +// The client subnet cannot be deleted while it is being accessed by a policy. +// +#define DNS_ERROR_CLIENT_SUBNET_IS_ACCESSED 9975L + +// DNS_ERROR_CLIENT_SUBNET_DOES_NOT_EXIST 0x000026f8 +// +// MessageId: DNS_ERROR_CLIENT_SUBNET_DOES_NOT_EXIST +// +// MessageText: +// +// The client subnet does not exist on the DNS server. +// +#define DNS_ERROR_CLIENT_SUBNET_DOES_NOT_EXIST 9976L + +// DNS_ERROR_CLIENT_SUBNET_ALREADY_EXISTS 0x000026f9 +// +// MessageId: DNS_ERROR_CLIENT_SUBNET_ALREADY_EXISTS +// +// MessageText: +// +// A client subnet with this name already exists on the DNS server. +// +#define DNS_ERROR_CLIENT_SUBNET_ALREADY_EXISTS 9977L + +// DNS_ERROR_SUBNET_DOES_NOT_EXIST 0x000026fa +// +// MessageId: DNS_ERROR_SUBNET_DOES_NOT_EXIST +// +// MessageText: +// +// The IP subnet specified does not exist in the client subnet. +// +#define DNS_ERROR_SUBNET_DOES_NOT_EXIST 9978L + +// DNS_ERROR_SUBNET_ALREADY_EXISTS 0x000026fb +// +// MessageId: DNS_ERROR_SUBNET_ALREADY_EXISTS +// +// MessageText: +// +// The IP subnet that is being added, already exists in the client subnet. +// +#define DNS_ERROR_SUBNET_ALREADY_EXISTS 9979L + +// DNS_ERROR_POLICY_LOCKED 0x000026fc +// +// MessageId: DNS_ERROR_POLICY_LOCKED +// +// MessageText: +// +// The policy is locked. +// +#define DNS_ERROR_POLICY_LOCKED 9980L + +// DNS_ERROR_POLICY_INVALID_WEIGHT 0x000026fd +// +// MessageId: DNS_ERROR_POLICY_INVALID_WEIGHT +// +// MessageText: +// +// The weight of the scope in the policy is invalid. +// +#define DNS_ERROR_POLICY_INVALID_WEIGHT 9981L + +// DNS_ERROR_POLICY_INVALID_NAME 0x000026fe +// +// MessageId: DNS_ERROR_POLICY_INVALID_NAME +// +// MessageText: +// +// The DNS policy name is invalid. +// +#define DNS_ERROR_POLICY_INVALID_NAME 9982L + +// DNS_ERROR_POLICY_MISSING_CRITERIA 0x000026ff +// +// MessageId: DNS_ERROR_POLICY_MISSING_CRITERIA +// +// MessageText: +// +// The policy is missing criteria. +// +#define DNS_ERROR_POLICY_MISSING_CRITERIA 9983L + +// DNS_ERROR_INVALID_CLIENT_SUBNET_NAME 0x00002700 +// +// MessageId: DNS_ERROR_INVALID_CLIENT_SUBNET_NAME +// +// MessageText: +// +// The name of the the client subnet record is invalid. +// +#define DNS_ERROR_INVALID_CLIENT_SUBNET_NAME 9984L + +// DNS_ERROR_POLICY_PROCESSING_ORDER_INVALID 0x00002701 +// +// MessageId: DNS_ERROR_POLICY_PROCESSING_ORDER_INVALID +// +// MessageText: +// +// Invalid policy processing order. +// +#define DNS_ERROR_POLICY_PROCESSING_ORDER_INVALID 9985L + +// DNS_ERROR_POLICY_SCOPE_MISSING 0x00002702 +// +// MessageId: DNS_ERROR_POLICY_SCOPE_MISSING +// +// MessageText: +// +// The scope information has not been provided for a policy that requires it. +// +#define DNS_ERROR_POLICY_SCOPE_MISSING 9986L + +// DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED 0x00002703 +// +// MessageId: DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED +// +// MessageText: +// +// The scope information has been provided for a policy that does not require it. +// +#define DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED 9987L + +// DNS_ERROR_SERVERSCOPE_IS_REFERENCED 0x00002704 +// +// MessageId: DNS_ERROR_SERVERSCOPE_IS_REFERENCED +// +// MessageText: +// +// The server scope cannot be deleted because it is referenced by a DNS Policy. +// +#define DNS_ERROR_SERVERSCOPE_IS_REFERENCED 9988L + +// DNS_ERROR_ZONESCOPE_IS_REFERENCED 0x00002705 +// +// MessageId: DNS_ERROR_ZONESCOPE_IS_REFERENCED +// +// MessageText: +// +// The zone scope cannot be deleted because it is referenced by a DNS Policy. +// +#define DNS_ERROR_ZONESCOPE_IS_REFERENCED 9989L + +// DNS_ERROR_POLICY_INVALID_CRITERIA_CLIENT_SUBNET 0x00002706 +// +// MessageId: DNS_ERROR_POLICY_INVALID_CRITERIA_CLIENT_SUBNET +// +// MessageText: +// +// The criterion client subnet provided in the policy is invalid. +// +#define DNS_ERROR_POLICY_INVALID_CRITERIA_CLIENT_SUBNET 9990L + +// DNS_ERROR_POLICY_INVALID_CRITERIA_TRANSPORT_PROTOCOL 0x00002707 +// +// MessageId: DNS_ERROR_POLICY_INVALID_CRITERIA_TRANSPORT_PROTOCOL +// +// MessageText: +// +// The criterion transport protocol provided in the policy is invalid. +// +#define DNS_ERROR_POLICY_INVALID_CRITERIA_TRANSPORT_PROTOCOL 9991L + +// DNS_ERROR_POLICY_INVALID_CRITERIA_NETWORK_PROTOCOL 0x00002708 +// +// MessageId: DNS_ERROR_POLICY_INVALID_CRITERIA_NETWORK_PROTOCOL +// +// MessageText: +// +// The criterion network protocol provided in the policy is invalid. +// +#define DNS_ERROR_POLICY_INVALID_CRITERIA_NETWORK_PROTOCOL 9992L + +// DNS_ERROR_POLICY_INVALID_CRITERIA_INTERFACE 0x00002709 +// +// MessageId: DNS_ERROR_POLICY_INVALID_CRITERIA_INTERFACE +// +// MessageText: +// +// The criterion interface provided in the policy is invalid. +// +#define DNS_ERROR_POLICY_INVALID_CRITERIA_INTERFACE 9993L + +// DNS_ERROR_POLICY_INVALID_CRITERIA_FQDN 0x0000270A +// +// MessageId: DNS_ERROR_POLICY_INVALID_CRITERIA_FQDN +// +// MessageText: +// +// The criterion FQDN provided in the policy is invalid. +// +#define DNS_ERROR_POLICY_INVALID_CRITERIA_FQDN 9994L + +// DNS_ERROR_POLICY_INVALID_CRITERIA_QUERY_TYPE 0x0000270B +// +// MessageId: DNS_ERROR_POLICY_INVALID_CRITERIA_QUERY_TYPE +// +// MessageText: +// +// The criterion query type provided in the policy is invalid. +// +#define DNS_ERROR_POLICY_INVALID_CRITERIA_QUERY_TYPE 9995L + +// DNS_ERROR_POLICY_INVALID_CRITERIA_TIME_OF_DAY 0x0000270C +// +// MessageId: DNS_ERROR_POLICY_INVALID_CRITERIA_TIME_OF_DAY +// +// MessageText: +// +// The criterion time of day provided in the policy is invalid. +// +#define DNS_ERROR_POLICY_INVALID_CRITERIA_TIME_OF_DAY 9996L + + + + +/////////////////////////////////////////////////// +// // +// End of DNS Error Codes // +// // +// 9000 to 9999 // +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// // +// WinSock Error Codes // +// // +// 10000 to 11999 // +/////////////////////////////////////////////////// + +// +// WinSock error codes are also defined in WinSock.h +// and WinSock2.h, hence the IFDEF +// +#ifndef WSABASEERR +#define WSABASEERR 10000 +// +// MessageId: WSAEINTR +// +// MessageText: +// +// A blocking operation was interrupted by a call to WSACancelBlockingCall. +// +#define WSAEINTR 10004L + +// +// MessageId: WSAEBADF +// +// MessageText: +// +// The file handle supplied is not valid. +// +#define WSAEBADF 10009L + +// +// MessageId: WSAEACCES +// +// MessageText: +// +// An attempt was made to access a socket in a way forbidden by its access permissions. +// +#define WSAEACCES 10013L + +// +// MessageId: WSAEFAULT +// +// MessageText: +// +// The system detected an invalid pointer address in attempting to use a pointer argument in a call. +// +#define WSAEFAULT 10014L + +// +// MessageId: WSAEINVAL +// +// MessageText: +// +// An invalid argument was supplied. +// +#define WSAEINVAL 10022L + +// +// MessageId: WSAEMFILE +// +// MessageText: +// +// Too many open sockets. +// +#define WSAEMFILE 10024L + +// +// MessageId: WSAEWOULDBLOCK +// +// MessageText: +// +// A non-blocking socket operation could not be completed immediately. +// +#define WSAEWOULDBLOCK 10035L + +// +// MessageId: WSAEINPROGRESS +// +// MessageText: +// +// A blocking operation is currently executing. +// +#define WSAEINPROGRESS 10036L + +// +// MessageId: WSAEALREADY +// +// MessageText: +// +// An operation was attempted on a non-blocking socket that already had an operation in progress. +// +#define WSAEALREADY 10037L + +// +// MessageId: WSAENOTSOCK +// +// MessageText: +// +// An operation was attempted on something that is not a socket. +// +#define WSAENOTSOCK 10038L + +// +// MessageId: WSAEDESTADDRREQ +// +// MessageText: +// +// A required address was omitted from an operation on a socket. +// +#define WSAEDESTADDRREQ 10039L + +// +// MessageId: WSAEMSGSIZE +// +// MessageText: +// +// A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself. +// +#define WSAEMSGSIZE 10040L + +// +// MessageId: WSAEPROTOTYPE +// +// MessageText: +// +// A protocol was specified in the socket function call that does not support the semantics of the socket type requested. +// +#define WSAEPROTOTYPE 10041L + +// +// MessageId: WSAENOPROTOOPT +// +// MessageText: +// +// An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call. +// +#define WSAENOPROTOOPT 10042L + +// +// MessageId: WSAEPROTONOSUPPORT +// +// MessageText: +// +// The requested protocol has not been configured into the system, or no implementation for it exists. +// +#define WSAEPROTONOSUPPORT 10043L + +// +// MessageId: WSAESOCKTNOSUPPORT +// +// MessageText: +// +// The support for the specified socket type does not exist in this address family. +// +#define WSAESOCKTNOSUPPORT 10044L + +// +// MessageId: WSAEOPNOTSUPP +// +// MessageText: +// +// The attempted operation is not supported for the type of object referenced. +// +#define WSAEOPNOTSUPP 10045L + +// +// MessageId: WSAEPFNOSUPPORT +// +// MessageText: +// +// The protocol family has not been configured into the system or no implementation for it exists. +// +#define WSAEPFNOSUPPORT 10046L + +// +// MessageId: WSAEAFNOSUPPORT +// +// MessageText: +// +// An address incompatible with the requested protocol was used. +// +#define WSAEAFNOSUPPORT 10047L + +// +// MessageId: WSAEADDRINUSE +// +// MessageText: +// +// Only one usage of each socket address (protocol/network address/port) is normally permitted. +// +#define WSAEADDRINUSE 10048L + +// +// MessageId: WSAEADDRNOTAVAIL +// +// MessageText: +// +// The requested address is not valid in its context. +// +#define WSAEADDRNOTAVAIL 10049L + +// +// MessageId: WSAENETDOWN +// +// MessageText: +// +// A socket operation encountered a dead network. +// +#define WSAENETDOWN 10050L + +// +// MessageId: WSAENETUNREACH +// +// MessageText: +// +// A socket operation was attempted to an unreachable network. +// +#define WSAENETUNREACH 10051L + +// +// MessageId: WSAENETRESET +// +// MessageText: +// +// The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress. +// +#define WSAENETRESET 10052L + +// +// MessageId: WSAECONNABORTED +// +// MessageText: +// +// An established connection was aborted by the software in your host machine. +// +#define WSAECONNABORTED 10053L + +// +// MessageId: WSAECONNRESET +// +// MessageText: +// +// An existing connection was forcibly closed by the remote host. +// +#define WSAECONNRESET 10054L + +// +// MessageId: WSAENOBUFS +// +// MessageText: +// +// An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. +// +#define WSAENOBUFS 10055L + +// +// MessageId: WSAEISCONN +// +// MessageText: +// +// A connect request was made on an already connected socket. +// +#define WSAEISCONN 10056L + +// +// MessageId: WSAENOTCONN +// +// MessageText: +// +// A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied. +// +#define WSAENOTCONN 10057L + +// +// MessageId: WSAESHUTDOWN +// +// MessageText: +// +// A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call. +// +#define WSAESHUTDOWN 10058L + +// +// MessageId: WSAETOOMANYREFS +// +// MessageText: +// +// Too many references to some kernel object. +// +#define WSAETOOMANYREFS 10059L + +// +// MessageId: WSAETIMEDOUT +// +// MessageText: +// +// A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. +// +#define WSAETIMEDOUT 10060L + +// +// MessageId: WSAECONNREFUSED +// +// MessageText: +// +// No connection could be made because the target machine actively refused it. +// +#define WSAECONNREFUSED 10061L + +// +// MessageId: WSAELOOP +// +// MessageText: +// +// Cannot translate name. +// +#define WSAELOOP 10062L + +// +// MessageId: WSAENAMETOOLONG +// +// MessageText: +// +// Name component or name was too long. +// +#define WSAENAMETOOLONG 10063L + +// +// MessageId: WSAEHOSTDOWN +// +// MessageText: +// +// A socket operation failed because the destination host was down. +// +#define WSAEHOSTDOWN 10064L + +// +// MessageId: WSAEHOSTUNREACH +// +// MessageText: +// +// A socket operation was attempted to an unreachable host. +// +#define WSAEHOSTUNREACH 10065L + +// +// MessageId: WSAENOTEMPTY +// +// MessageText: +// +// Cannot remove a directory that is not empty. +// +#define WSAENOTEMPTY 10066L + +// +// MessageId: WSAEPROCLIM +// +// MessageText: +// +// A Windows Sockets implementation may have a limit on the number of applications that may use it simultaneously. +// +#define WSAEPROCLIM 10067L + +// +// MessageId: WSAEUSERS +// +// MessageText: +// +// Ran out of quota. +// +#define WSAEUSERS 10068L + +// +// MessageId: WSAEDQUOT +// +// MessageText: +// +// Ran out of disk quota. +// +#define WSAEDQUOT 10069L + +// +// MessageId: WSAESTALE +// +// MessageText: +// +// File handle reference is no longer available. +// +#define WSAESTALE 10070L + +// +// MessageId: WSAEREMOTE +// +// MessageText: +// +// Item is not available locally. +// +#define WSAEREMOTE 10071L + +// +// MessageId: WSASYSNOTREADY +// +// MessageText: +// +// WSAStartup cannot function at this time because the underlying system it uses to provide network services is currently unavailable. +// +#define WSASYSNOTREADY 10091L + +// +// MessageId: WSAVERNOTSUPPORTED +// +// MessageText: +// +// The Windows Sockets version requested is not supported. +// +#define WSAVERNOTSUPPORTED 10092L + +// +// MessageId: WSANOTINITIALISED +// +// MessageText: +// +// Either the application has not called WSAStartup, or WSAStartup failed. +// +#define WSANOTINITIALISED 10093L + +// +// MessageId: WSAEDISCON +// +// MessageText: +// +// Returned by WSARecv or WSARecvFrom to indicate the remote party has initiated a graceful shutdown sequence. +// +#define WSAEDISCON 10101L + +// +// MessageId: WSAENOMORE +// +// MessageText: +// +// No more results can be returned by WSALookupServiceNext. +// +#define WSAENOMORE 10102L + +// +// MessageId: WSAECANCELLED +// +// MessageText: +// +// A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled. +// +#define WSAECANCELLED 10103L + +// +// MessageId: WSAEINVALIDPROCTABLE +// +// MessageText: +// +// The procedure call table is invalid. +// +#define WSAEINVALIDPROCTABLE 10104L + +// +// MessageId: WSAEINVALIDPROVIDER +// +// MessageText: +// +// The requested service provider is invalid. +// +#define WSAEINVALIDPROVIDER 10105L + +// +// MessageId: WSAEPROVIDERFAILEDINIT +// +// MessageText: +// +// The requested service provider could not be loaded or initialized. +// +#define WSAEPROVIDERFAILEDINIT 10106L + +// +// MessageId: WSASYSCALLFAILURE +// +// MessageText: +// +// A system call has failed. +// +#define WSASYSCALLFAILURE 10107L + +// +// MessageId: WSASERVICE_NOT_FOUND +// +// MessageText: +// +// No such service is known. The service cannot be found in the specified name space. +// +#define WSASERVICE_NOT_FOUND 10108L + +// +// MessageId: WSATYPE_NOT_FOUND +// +// MessageText: +// +// The specified class was not found. +// +#define WSATYPE_NOT_FOUND 10109L + +// +// MessageId: WSA_E_NO_MORE +// +// MessageText: +// +// No more results can be returned by WSALookupServiceNext. +// +#define WSA_E_NO_MORE 10110L + +// +// MessageId: WSA_E_CANCELLED +// +// MessageText: +// +// A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled. +// +#define WSA_E_CANCELLED 10111L + +// +// MessageId: WSAEREFUSED +// +// MessageText: +// +// A database query failed because it was actively refused. +// +#define WSAEREFUSED 10112L + +// +// MessageId: WSAHOST_NOT_FOUND +// +// MessageText: +// +// No such host is known. +// +#define WSAHOST_NOT_FOUND 11001L + +// +// MessageId: WSATRY_AGAIN +// +// MessageText: +// +// This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. +// +#define WSATRY_AGAIN 11002L + +// +// MessageId: WSANO_RECOVERY +// +// MessageText: +// +// A non-recoverable error occurred during a database lookup. +// +#define WSANO_RECOVERY 11003L + +// +// MessageId: WSANO_DATA +// +// MessageText: +// +// The requested name is valid, but no data of the requested type was found. +// +#define WSANO_DATA 11004L + +// +// MessageId: WSA_QOS_RECEIVERS +// +// MessageText: +// +// At least one reserve has arrived. +// +#define WSA_QOS_RECEIVERS 11005L + +// +// MessageId: WSA_QOS_SENDERS +// +// MessageText: +// +// At least one path has arrived. +// +#define WSA_QOS_SENDERS 11006L + +// +// MessageId: WSA_QOS_NO_SENDERS +// +// MessageText: +// +// There are no senders. +// +#define WSA_QOS_NO_SENDERS 11007L + +// +// MessageId: WSA_QOS_NO_RECEIVERS +// +// MessageText: +// +// There are no receivers. +// +#define WSA_QOS_NO_RECEIVERS 11008L + +// +// MessageId: WSA_QOS_REQUEST_CONFIRMED +// +// MessageText: +// +// Reserve has been confirmed. +// +#define WSA_QOS_REQUEST_CONFIRMED 11009L + +// +// MessageId: WSA_QOS_ADMISSION_FAILURE +// +// MessageText: +// +// Error due to lack of resources. +// +#define WSA_QOS_ADMISSION_FAILURE 11010L + +// +// MessageId: WSA_QOS_POLICY_FAILURE +// +// MessageText: +// +// Rejected for administrative reasons - bad credentials. +// +#define WSA_QOS_POLICY_FAILURE 11011L + +// +// MessageId: WSA_QOS_BAD_STYLE +// +// MessageText: +// +// Unknown or conflicting style. +// +#define WSA_QOS_BAD_STYLE 11012L + +// +// MessageId: WSA_QOS_BAD_OBJECT +// +// MessageText: +// +// Problem with some part of the filterspec or providerspecific buffer in general. +// +#define WSA_QOS_BAD_OBJECT 11013L + +// +// MessageId: WSA_QOS_TRAFFIC_CTRL_ERROR +// +// MessageText: +// +// Problem with some part of the flowspec. +// +#define WSA_QOS_TRAFFIC_CTRL_ERROR 11014L + +// +// MessageId: WSA_QOS_GENERIC_ERROR +// +// MessageText: +// +// General QOS error. +// +#define WSA_QOS_GENERIC_ERROR 11015L + +// +// MessageId: WSA_QOS_ESERVICETYPE +// +// MessageText: +// +// An invalid or unrecognized service type was found in the flowspec. +// +#define WSA_QOS_ESERVICETYPE 11016L + +// +// MessageId: WSA_QOS_EFLOWSPEC +// +// MessageText: +// +// An invalid or inconsistent flowspec was found in the QOS structure. +// +#define WSA_QOS_EFLOWSPEC 11017L + +// +// MessageId: WSA_QOS_EPROVSPECBUF +// +// MessageText: +// +// Invalid QOS provider-specific buffer. +// +#define WSA_QOS_EPROVSPECBUF 11018L + +// +// MessageId: WSA_QOS_EFILTERSTYLE +// +// MessageText: +// +// An invalid QOS filter style was used. +// +#define WSA_QOS_EFILTERSTYLE 11019L + +// +// MessageId: WSA_QOS_EFILTERTYPE +// +// MessageText: +// +// An invalid QOS filter type was used. +// +#define WSA_QOS_EFILTERTYPE 11020L + +// +// MessageId: WSA_QOS_EFILTERCOUNT +// +// MessageText: +// +// An incorrect number of QOS FILTERSPECs were specified in the FLOWDESCRIPTOR. +// +#define WSA_QOS_EFILTERCOUNT 11021L + +// +// MessageId: WSA_QOS_EOBJLENGTH +// +// MessageText: +// +// An object with an invalid ObjectLength field was specified in the QOS provider-specific buffer. +// +#define WSA_QOS_EOBJLENGTH 11022L + +// +// MessageId: WSA_QOS_EFLOWCOUNT +// +// MessageText: +// +// An incorrect number of flow descriptors was specified in the QOS structure. +// +#define WSA_QOS_EFLOWCOUNT 11023L + +// +// MessageId: WSA_QOS_EUNKOWNPSOBJ +// +// MessageText: +// +// An unrecognized object was found in the QOS provider-specific buffer. +// +#define WSA_QOS_EUNKOWNPSOBJ 11024L + +// +// MessageId: WSA_QOS_EPOLICYOBJ +// +// MessageText: +// +// An invalid policy object was found in the QOS provider-specific buffer. +// +#define WSA_QOS_EPOLICYOBJ 11025L + +// +// MessageId: WSA_QOS_EFLOWDESC +// +// MessageText: +// +// An invalid QOS flow descriptor was found in the flow descriptor list. +// +#define WSA_QOS_EFLOWDESC 11026L + +// +// MessageId: WSA_QOS_EPSFLOWSPEC +// +// MessageText: +// +// An invalid or inconsistent flowspec was found in the QOS provider specific buffer. +// +#define WSA_QOS_EPSFLOWSPEC 11027L + +// +// MessageId: WSA_QOS_EPSFILTERSPEC +// +// MessageText: +// +// An invalid FILTERSPEC was found in the QOS provider-specific buffer. +// +#define WSA_QOS_EPSFILTERSPEC 11028L + +// +// MessageId: WSA_QOS_ESDMODEOBJ +// +// MessageText: +// +// An invalid shape discard mode object was found in the QOS provider specific buffer. +// +#define WSA_QOS_ESDMODEOBJ 11029L + +// +// MessageId: WSA_QOS_ESHAPERATEOBJ +// +// MessageText: +// +// An invalid shaping rate object was found in the QOS provider-specific buffer. +// +#define WSA_QOS_ESHAPERATEOBJ 11030L + +// +// MessageId: WSA_QOS_RESERVED_PETYPE +// +// MessageText: +// +// A reserved policy element was found in the QOS provider-specific buffer. +// +#define WSA_QOS_RESERVED_PETYPE 11031L + +// +// MessageId: WSA_SECURE_HOST_NOT_FOUND +// +// MessageText: +// +// No such host is known securely. +// +#define WSA_SECURE_HOST_NOT_FOUND 11032L + +// +// MessageId: WSA_IPSEC_NAME_POLICY_ERROR +// +// MessageText: +// +// Name based IPSEC policy could not be added. +// +#define WSA_IPSEC_NAME_POLICY_ERROR 11033L + +#endif // defined(WSABASEERR) + +/////////////////////////////////////////////////// +// // +// End of WinSock Error Codes // +// // +// 10000 to 11999 // +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// // +// Available // +// // +// 12000 to 12999 // +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// // +// Start of IPSec Error codes // +// // +// 13000 to 13999 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_IPSEC_QM_POLICY_EXISTS +// +// MessageText: +// +// The specified quick mode policy already exists. +// +#define ERROR_IPSEC_QM_POLICY_EXISTS 13000L + +// +// MessageId: ERROR_IPSEC_QM_POLICY_NOT_FOUND +// +// MessageText: +// +// The specified quick mode policy was not found. +// +#define ERROR_IPSEC_QM_POLICY_NOT_FOUND 13001L + +// +// MessageId: ERROR_IPSEC_QM_POLICY_IN_USE +// +// MessageText: +// +// The specified quick mode policy is being used. +// +#define ERROR_IPSEC_QM_POLICY_IN_USE 13002L + +// +// MessageId: ERROR_IPSEC_MM_POLICY_EXISTS +// +// MessageText: +// +// The specified main mode policy already exists. +// +#define ERROR_IPSEC_MM_POLICY_EXISTS 13003L + +// +// MessageId: ERROR_IPSEC_MM_POLICY_NOT_FOUND +// +// MessageText: +// +// The specified main mode policy was not found +// +#define ERROR_IPSEC_MM_POLICY_NOT_FOUND 13004L + +// +// MessageId: ERROR_IPSEC_MM_POLICY_IN_USE +// +// MessageText: +// +// The specified main mode policy is being used. +// +#define ERROR_IPSEC_MM_POLICY_IN_USE 13005L + +// +// MessageId: ERROR_IPSEC_MM_FILTER_EXISTS +// +// MessageText: +// +// The specified main mode filter already exists. +// +#define ERROR_IPSEC_MM_FILTER_EXISTS 13006L + +// +// MessageId: ERROR_IPSEC_MM_FILTER_NOT_FOUND +// +// MessageText: +// +// The specified main mode filter was not found. +// +#define ERROR_IPSEC_MM_FILTER_NOT_FOUND 13007L + +// +// MessageId: ERROR_IPSEC_TRANSPORT_FILTER_EXISTS +// +// MessageText: +// +// The specified transport mode filter already exists. +// +#define ERROR_IPSEC_TRANSPORT_FILTER_EXISTS 13008L + +// +// MessageId: ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND +// +// MessageText: +// +// The specified transport mode filter does not exist. +// +#define ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND 13009L + +// +// MessageId: ERROR_IPSEC_MM_AUTH_EXISTS +// +// MessageText: +// +// The specified main mode authentication list exists. +// +#define ERROR_IPSEC_MM_AUTH_EXISTS 13010L + +// +// MessageId: ERROR_IPSEC_MM_AUTH_NOT_FOUND +// +// MessageText: +// +// The specified main mode authentication list was not found. +// +#define ERROR_IPSEC_MM_AUTH_NOT_FOUND 13011L + +// +// MessageId: ERROR_IPSEC_MM_AUTH_IN_USE +// +// MessageText: +// +// The specified main mode authentication list is being used. +// +#define ERROR_IPSEC_MM_AUTH_IN_USE 13012L + +// +// MessageId: ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND +// +// MessageText: +// +// The specified default main mode policy was not found. +// +#define ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND 13013L + +// +// MessageId: ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND +// +// MessageText: +// +// The specified default main mode authentication list was not found. +// +#define ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND 13014L + +// +// MessageId: ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND +// +// MessageText: +// +// The specified default quick mode policy was not found. +// +#define ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND 13015L + +// +// MessageId: ERROR_IPSEC_TUNNEL_FILTER_EXISTS +// +// MessageText: +// +// The specified tunnel mode filter exists. +// +#define ERROR_IPSEC_TUNNEL_FILTER_EXISTS 13016L + +// +// MessageId: ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND +// +// MessageText: +// +// The specified tunnel mode filter was not found. +// +#define ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND 13017L + +// +// MessageId: ERROR_IPSEC_MM_FILTER_PENDING_DELETION +// +// MessageText: +// +// The Main Mode filter is pending deletion. +// +#define ERROR_IPSEC_MM_FILTER_PENDING_DELETION 13018L + +// +// MessageId: ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION +// +// MessageText: +// +// The transport filter is pending deletion. +// +#define ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION 13019L + +// +// MessageId: ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION +// +// MessageText: +// +// The tunnel filter is pending deletion. +// +#define ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION 13020L + +// +// MessageId: ERROR_IPSEC_MM_POLICY_PENDING_DELETION +// +// MessageText: +// +// The Main Mode policy is pending deletion. +// +#define ERROR_IPSEC_MM_POLICY_PENDING_DELETION 13021L + +// +// MessageId: ERROR_IPSEC_MM_AUTH_PENDING_DELETION +// +// MessageText: +// +// The Main Mode authentication bundle is pending deletion. +// +#define ERROR_IPSEC_MM_AUTH_PENDING_DELETION 13022L + +// +// MessageId: ERROR_IPSEC_QM_POLICY_PENDING_DELETION +// +// MessageText: +// +// The Quick Mode policy is pending deletion. +// +#define ERROR_IPSEC_QM_POLICY_PENDING_DELETION 13023L + +// +// MessageId: WARNING_IPSEC_MM_POLICY_PRUNED +// +// MessageText: +// +// The Main Mode policy was successfully added, but some of the requested offers are not supported. +// +#define WARNING_IPSEC_MM_POLICY_PRUNED 13024L + +// +// MessageId: WARNING_IPSEC_QM_POLICY_PRUNED +// +// MessageText: +// +// The Quick Mode policy was successfully added, but some of the requested offers are not supported. +// +#define WARNING_IPSEC_QM_POLICY_PRUNED 13025L + +// +// MessageId: ERROR_IPSEC_IKE_NEG_STATUS_BEGIN +// +// MessageText: +// +// ERROR_IPSEC_IKE_NEG_STATUS_BEGIN +// +#define ERROR_IPSEC_IKE_NEG_STATUS_BEGIN 13800L + +// +// MessageId: ERROR_IPSEC_IKE_AUTH_FAIL +// +// MessageText: +// +// IKE authentication credentials are unacceptable +// +#define ERROR_IPSEC_IKE_AUTH_FAIL 13801L + +// +// MessageId: ERROR_IPSEC_IKE_ATTRIB_FAIL +// +// MessageText: +// +// IKE security attributes are unacceptable +// +#define ERROR_IPSEC_IKE_ATTRIB_FAIL 13802L + +// +// MessageId: ERROR_IPSEC_IKE_NEGOTIATION_PENDING +// +// MessageText: +// +// IKE Negotiation in progress +// +#define ERROR_IPSEC_IKE_NEGOTIATION_PENDING 13803L + +// +// MessageId: ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR +// +// MessageText: +// +// General processing error +// +#define ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR 13804L + +// +// MessageId: ERROR_IPSEC_IKE_TIMED_OUT +// +// MessageText: +// +// Negotiation timed out +// +#define ERROR_IPSEC_IKE_TIMED_OUT 13805L + +// +// MessageId: ERROR_IPSEC_IKE_NO_CERT +// +// MessageText: +// +// IKE failed to find valid machine certificate. Contact your Network Security Administrator about installing a valid certificate in the appropriate Certificate Store. +// +#define ERROR_IPSEC_IKE_NO_CERT 13806L + +// +// MessageId: ERROR_IPSEC_IKE_SA_DELETED +// +// MessageText: +// +// IKE SA deleted by peer before establishment completed +// +#define ERROR_IPSEC_IKE_SA_DELETED 13807L + +// +// MessageId: ERROR_IPSEC_IKE_SA_REAPED +// +// MessageText: +// +// IKE SA deleted before establishment completed +// +#define ERROR_IPSEC_IKE_SA_REAPED 13808L + +// +// MessageId: ERROR_IPSEC_IKE_MM_ACQUIRE_DROP +// +// MessageText: +// +// Negotiation request sat in Queue too long +// +#define ERROR_IPSEC_IKE_MM_ACQUIRE_DROP 13809L + +// +// MessageId: ERROR_IPSEC_IKE_QM_ACQUIRE_DROP +// +// MessageText: +// +// Negotiation request sat in Queue too long +// +#define ERROR_IPSEC_IKE_QM_ACQUIRE_DROP 13810L + +// +// MessageId: ERROR_IPSEC_IKE_QUEUE_DROP_MM +// +// MessageText: +// +// Negotiation request sat in Queue too long +// +#define ERROR_IPSEC_IKE_QUEUE_DROP_MM 13811L + +// +// MessageId: ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM +// +// MessageText: +// +// Negotiation request sat in Queue too long +// +#define ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM 13812L + +// +// MessageId: ERROR_IPSEC_IKE_DROP_NO_RESPONSE +// +// MessageText: +// +// No response from peer +// +#define ERROR_IPSEC_IKE_DROP_NO_RESPONSE 13813L + +// +// MessageId: ERROR_IPSEC_IKE_MM_DELAY_DROP +// +// MessageText: +// +// Negotiation took too long +// +#define ERROR_IPSEC_IKE_MM_DELAY_DROP 13814L + +// +// MessageId: ERROR_IPSEC_IKE_QM_DELAY_DROP +// +// MessageText: +// +// Negotiation took too long +// +#define ERROR_IPSEC_IKE_QM_DELAY_DROP 13815L + +// +// MessageId: ERROR_IPSEC_IKE_ERROR +// +// MessageText: +// +// Unknown error occurred +// +#define ERROR_IPSEC_IKE_ERROR 13816L + +// +// MessageId: ERROR_IPSEC_IKE_CRL_FAILED +// +// MessageText: +// +// Certificate Revocation Check failed +// +#define ERROR_IPSEC_IKE_CRL_FAILED 13817L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_KEY_USAGE +// +// MessageText: +// +// Invalid certificate key usage +// +#define ERROR_IPSEC_IKE_INVALID_KEY_USAGE 13818L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_CERT_TYPE +// +// MessageText: +// +// Invalid certificate type +// +#define ERROR_IPSEC_IKE_INVALID_CERT_TYPE 13819L + +// +// MessageId: ERROR_IPSEC_IKE_NO_PRIVATE_KEY +// +// MessageText: +// +// IKE negotiation failed because the machine certificate used does not have a private key. IPsec certificates require a private key. Contact your Network Security administrator about replacing with a certificate that has a private key. +// +#define ERROR_IPSEC_IKE_NO_PRIVATE_KEY 13820L + +// +// MessageId: ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY +// +// MessageText: +// +// Simultaneous rekeys were detected. +// +#define ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY 13821L + +// +// MessageId: ERROR_IPSEC_IKE_DH_FAIL +// +// MessageText: +// +// Failure in Diffie-Hellman computation +// +#define ERROR_IPSEC_IKE_DH_FAIL 13822L + +// +// MessageId: ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED +// +// MessageText: +// +// Don't know how to process critical payload +// +#define ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED 13823L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_HEADER +// +// MessageText: +// +// Invalid header +// +#define ERROR_IPSEC_IKE_INVALID_HEADER 13824L + +// +// MessageId: ERROR_IPSEC_IKE_NO_POLICY +// +// MessageText: +// +// No policy configured +// +#define ERROR_IPSEC_IKE_NO_POLICY 13825L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_SIGNATURE +// +// MessageText: +// +// Failed to verify signature +// +#define ERROR_IPSEC_IKE_INVALID_SIGNATURE 13826L + +// +// MessageId: ERROR_IPSEC_IKE_KERBEROS_ERROR +// +// MessageText: +// +// Failed to authenticate using Kerberos +// +#define ERROR_IPSEC_IKE_KERBEROS_ERROR 13827L + +// +// MessageId: ERROR_IPSEC_IKE_NO_PUBLIC_KEY +// +// MessageText: +// +// Peer's certificate did not have a public key +// +#define ERROR_IPSEC_IKE_NO_PUBLIC_KEY 13828L + +// These must stay as a unit. +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR +// +// MessageText: +// +// Error processing error payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR 13829L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_SA +// +// MessageText: +// +// Error processing SA payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_SA 13830L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_PROP +// +// MessageText: +// +// Error processing Proposal payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_PROP 13831L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_TRANS +// +// MessageText: +// +// Error processing Transform payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_TRANS 13832L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_KE +// +// MessageText: +// +// Error processing KE payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_KE 13833L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_ID +// +// MessageText: +// +// Error processing ID payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_ID 13834L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_CERT +// +// MessageText: +// +// Error processing Cert payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_CERT 13835L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ +// +// MessageText: +// +// Error processing Certificate Request payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ 13836L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_HASH +// +// MessageText: +// +// Error processing Hash payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_HASH 13837L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_SIG +// +// MessageText: +// +// Error processing Signature payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_SIG 13838L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_NONCE +// +// MessageText: +// +// Error processing Nonce payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_NONCE 13839L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY +// +// MessageText: +// +// Error processing Notify payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY 13840L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_DELETE +// +// MessageText: +// +// Error processing Delete Payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_DELETE 13841L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR +// +// MessageText: +// +// Error processing VendorId payload +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR 13842L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_PAYLOAD +// +// MessageText: +// +// Invalid payload received +// +#define ERROR_IPSEC_IKE_INVALID_PAYLOAD 13843L + +// +// MessageId: ERROR_IPSEC_IKE_LOAD_SOFT_SA +// +// MessageText: +// +// Soft SA loaded +// +#define ERROR_IPSEC_IKE_LOAD_SOFT_SA 13844L + +// +// MessageId: ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN +// +// MessageText: +// +// Soft SA torn down +// +#define ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN 13845L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_COOKIE +// +// MessageText: +// +// Invalid cookie received. +// +#define ERROR_IPSEC_IKE_INVALID_COOKIE 13846L + +// +// MessageId: ERROR_IPSEC_IKE_NO_PEER_CERT +// +// MessageText: +// +// Peer failed to send valid machine certificate +// +#define ERROR_IPSEC_IKE_NO_PEER_CERT 13847L + +// +// MessageId: ERROR_IPSEC_IKE_PEER_CRL_FAILED +// +// MessageText: +// +// Certification Revocation check of peer's certificate failed +// +#define ERROR_IPSEC_IKE_PEER_CRL_FAILED 13848L + +// +// MessageId: ERROR_IPSEC_IKE_POLICY_CHANGE +// +// MessageText: +// +// New policy invalidated SAs formed with old policy +// +#define ERROR_IPSEC_IKE_POLICY_CHANGE 13849L + +// +// MessageId: ERROR_IPSEC_IKE_NO_MM_POLICY +// +// MessageText: +// +// There is no available Main Mode IKE policy. +// +#define ERROR_IPSEC_IKE_NO_MM_POLICY 13850L + +// +// MessageId: ERROR_IPSEC_IKE_NOTCBPRIV +// +// MessageText: +// +// Failed to enabled TCB privilege. +// +#define ERROR_IPSEC_IKE_NOTCBPRIV 13851L + +// +// MessageId: ERROR_IPSEC_IKE_SECLOADFAIL +// +// MessageText: +// +// Failed to load SECURITY.DLL. +// +#define ERROR_IPSEC_IKE_SECLOADFAIL 13852L + +// +// MessageId: ERROR_IPSEC_IKE_FAILSSPINIT +// +// MessageText: +// +// Failed to obtain security function table dispatch address from SSPI. +// +#define ERROR_IPSEC_IKE_FAILSSPINIT 13853L + +// +// MessageId: ERROR_IPSEC_IKE_FAILQUERYSSP +// +// MessageText: +// +// Failed to query Kerberos package to obtain max token size. +// +#define ERROR_IPSEC_IKE_FAILQUERYSSP 13854L + +// +// MessageId: ERROR_IPSEC_IKE_SRVACQFAIL +// +// MessageText: +// +// Failed to obtain Kerberos server credentials for ISAKMP/ERROR_IPSEC_IKE service. Kerberos authentication will not function. The most likely reason for this is lack of domain membership. This is normal if your computer is a member of a workgroup. +// +#define ERROR_IPSEC_IKE_SRVACQFAIL 13855L + +// +// MessageId: ERROR_IPSEC_IKE_SRVQUERYCRED +// +// MessageText: +// +// Failed to determine SSPI principal name for ISAKMP/ERROR_IPSEC_IKE service (QueryCredentialsAttributes). +// +#define ERROR_IPSEC_IKE_SRVQUERYCRED 13856L + +// +// MessageId: ERROR_IPSEC_IKE_GETSPIFAIL +// +// MessageText: +// +// Failed to obtain new SPI for the inbound SA from IPsec driver. The most common cause for this is that the driver does not have the correct filter. Check your policy to verify the filters. +// +#define ERROR_IPSEC_IKE_GETSPIFAIL 13857L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_FILTER +// +// MessageText: +// +// Given filter is invalid +// +#define ERROR_IPSEC_IKE_INVALID_FILTER 13858L + +// +// MessageId: ERROR_IPSEC_IKE_OUT_OF_MEMORY +// +// MessageText: +// +// Memory allocation failed. +// +#define ERROR_IPSEC_IKE_OUT_OF_MEMORY 13859L + +// +// MessageId: ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED +// +// MessageText: +// +// Failed to add Security Association to IPsec Driver. The most common cause for this is if the IKE negotiation took too long to complete. If the problem persists, reduce the load on the faulting machine. +// +#define ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED 13860L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_POLICY +// +// MessageText: +// +// Invalid policy +// +#define ERROR_IPSEC_IKE_INVALID_POLICY 13861L + +// +// MessageId: ERROR_IPSEC_IKE_UNKNOWN_DOI +// +// MessageText: +// +// Invalid DOI +// +#define ERROR_IPSEC_IKE_UNKNOWN_DOI 13862L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_SITUATION +// +// MessageText: +// +// Invalid situation +// +#define ERROR_IPSEC_IKE_INVALID_SITUATION 13863L + +// +// MessageId: ERROR_IPSEC_IKE_DH_FAILURE +// +// MessageText: +// +// Diffie-Hellman failure +// +#define ERROR_IPSEC_IKE_DH_FAILURE 13864L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_GROUP +// +// MessageText: +// +// Invalid Diffie-Hellman group +// +#define ERROR_IPSEC_IKE_INVALID_GROUP 13865L + +// +// MessageId: ERROR_IPSEC_IKE_ENCRYPT +// +// MessageText: +// +// Error encrypting payload +// +#define ERROR_IPSEC_IKE_ENCRYPT 13866L + +// +// MessageId: ERROR_IPSEC_IKE_DECRYPT +// +// MessageText: +// +// Error decrypting payload +// +#define ERROR_IPSEC_IKE_DECRYPT 13867L + +// +// MessageId: ERROR_IPSEC_IKE_POLICY_MATCH +// +// MessageText: +// +// Policy match error +// +#define ERROR_IPSEC_IKE_POLICY_MATCH 13868L + +// +// MessageId: ERROR_IPSEC_IKE_UNSUPPORTED_ID +// +// MessageText: +// +// Unsupported ID +// +#define ERROR_IPSEC_IKE_UNSUPPORTED_ID 13869L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_HASH +// +// MessageText: +// +// Hash verification failed +// +#define ERROR_IPSEC_IKE_INVALID_HASH 13870L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_HASH_ALG +// +// MessageText: +// +// Invalid hash algorithm +// +#define ERROR_IPSEC_IKE_INVALID_HASH_ALG 13871L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_HASH_SIZE +// +// MessageText: +// +// Invalid hash size +// +#define ERROR_IPSEC_IKE_INVALID_HASH_SIZE 13872L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG +// +// MessageText: +// +// Invalid encryption algorithm +// +#define ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG 13873L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_AUTH_ALG +// +// MessageText: +// +// Invalid authentication algorithm +// +#define ERROR_IPSEC_IKE_INVALID_AUTH_ALG 13874L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_SIG +// +// MessageText: +// +// Invalid certificate signature +// +#define ERROR_IPSEC_IKE_INVALID_SIG 13875L + +// +// MessageId: ERROR_IPSEC_IKE_LOAD_FAILED +// +// MessageText: +// +// Load failed +// +#define ERROR_IPSEC_IKE_LOAD_FAILED 13876L + +// +// MessageId: ERROR_IPSEC_IKE_RPC_DELETE +// +// MessageText: +// +// Deleted via RPC call +// +#define ERROR_IPSEC_IKE_RPC_DELETE 13877L + +// +// MessageId: ERROR_IPSEC_IKE_BENIGN_REINIT +// +// MessageText: +// +// Temporary state created to perform reinitialization. This is not a real failure. +// +#define ERROR_IPSEC_IKE_BENIGN_REINIT 13878L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY +// +// MessageText: +// +// The lifetime value received in the Responder Lifetime Notify is below the Windows 2000 configured minimum value. Please fix the policy on the peer machine. +// +#define ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY 13879L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION +// +// MessageText: +// +// The recipient cannot handle version of IKE specified in the header. +// +#define ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION 13880L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN +// +// MessageText: +// +// Key length in certificate is too small for configured security requirements. +// +#define ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN 13881L + +// +// MessageId: ERROR_IPSEC_IKE_MM_LIMIT +// +// MessageText: +// +// Max number of established MM SAs to peer exceeded. +// +#define ERROR_IPSEC_IKE_MM_LIMIT 13882L + +// +// MessageId: ERROR_IPSEC_IKE_NEGOTIATION_DISABLED +// +// MessageText: +// +// IKE received a policy that disables negotiation. +// +#define ERROR_IPSEC_IKE_NEGOTIATION_DISABLED 13883L + +// +// MessageId: ERROR_IPSEC_IKE_QM_LIMIT +// +// MessageText: +// +// Reached maximum quick mode limit for the main mode. New main mode will be started. +// +#define ERROR_IPSEC_IKE_QM_LIMIT 13884L + +// +// MessageId: ERROR_IPSEC_IKE_MM_EXPIRED +// +// MessageText: +// +// Main mode SA lifetime expired or peer sent a main mode delete. +// +#define ERROR_IPSEC_IKE_MM_EXPIRED 13885L + +// +// MessageId: ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID +// +// MessageText: +// +// Main mode SA assumed to be invalid because peer stopped responding. +// +#define ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID 13886L + +// +// MessageId: ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH +// +// MessageText: +// +// Certificate doesn't chain to a trusted root in IPsec policy. +// +#define ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH 13887L + +// +// MessageId: ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID +// +// MessageText: +// +// Received unexpected message ID. +// +#define ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID 13888L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD +// +// MessageText: +// +// Received invalid authentication offers. +// +#define ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD 13889L + +// +// MessageId: ERROR_IPSEC_IKE_DOS_COOKIE_SENT +// +// MessageText: +// +// Sent DoS cookie notify to initiator. +// +#define ERROR_IPSEC_IKE_DOS_COOKIE_SENT 13890L + +// +// MessageId: ERROR_IPSEC_IKE_SHUTTING_DOWN +// +// MessageText: +// +// IKE service is shutting down. +// +#define ERROR_IPSEC_IKE_SHUTTING_DOWN 13891L + +// +// MessageId: ERROR_IPSEC_IKE_CGA_AUTH_FAILED +// +// MessageText: +// +// Could not verify binding between CGA address and certificate. +// +#define ERROR_IPSEC_IKE_CGA_AUTH_FAILED 13892L + +// +// MessageId: ERROR_IPSEC_IKE_PROCESS_ERR_NATOA +// +// MessageText: +// +// Error processing NatOA payload. +// +#define ERROR_IPSEC_IKE_PROCESS_ERR_NATOA 13893L + +// +// MessageId: ERROR_IPSEC_IKE_INVALID_MM_FOR_QM +// +// MessageText: +// +// Parameters of the main mode are invalid for this quick mode. +// +#define ERROR_IPSEC_IKE_INVALID_MM_FOR_QM 13894L + +// +// MessageId: ERROR_IPSEC_IKE_QM_EXPIRED +// +// MessageText: +// +// Quick mode SA was expired by IPsec driver. +// +#define ERROR_IPSEC_IKE_QM_EXPIRED 13895L + +// +// MessageId: ERROR_IPSEC_IKE_TOO_MANY_FILTERS +// +// MessageText: +// +// Too many dynamically added IKEEXT filters were detected. +// +#define ERROR_IPSEC_IKE_TOO_MANY_FILTERS 13896L + +// Do NOT change this final value. It is used in a public API structure +// +// MessageId: ERROR_IPSEC_IKE_NEG_STATUS_END +// +// MessageText: +// +// ERROR_IPSEC_IKE_NEG_STATUS_END +// +#define ERROR_IPSEC_IKE_NEG_STATUS_END 13897L + +// +// MessageId: ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL +// +// MessageText: +// +// NAP reauth succeeded and must delete the dummy NAP IKEv2 tunnel. +// +#define ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL 13898L + +// +// MessageId: ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE +// +// MessageText: +// +// Error in assigning inner IP address to initiator in tunnel mode. +// +#define ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE 13899L + +// +// MessageId: ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING +// +// MessageText: +// +// Require configuration payload missing. +// +#define ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING 13900L + +// +// MessageId: ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING +// +// MessageText: +// +// A negotiation running as the security principle who issued the connection is in progress +// +#define ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING 13901L + +// +// MessageId: ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS +// +// MessageText: +// +// SA was deleted due to IKEv1/AuthIP co-existence suppress check. +// +#define ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS 13902L + +// +// MessageId: ERROR_IPSEC_IKE_RATELIMIT_DROP +// +// MessageText: +// +// Incoming SA request was dropped due to peer IP address rate limiting. +// +#define ERROR_IPSEC_IKE_RATELIMIT_DROP 13903L + +// +// MessageId: ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE +// +// MessageText: +// +// Peer does not support MOBIKE. +// +#define ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE 13904L + +// +// MessageId: ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE +// +// MessageText: +// +// SA establishment is not authorized. +// +#define ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE 13905L + +// +// MessageId: ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE +// +// MessageText: +// +// SA establishment is not authorized because there is not a sufficiently strong PKINIT-based credential. +// +#define ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE 13906L + +// +// MessageId: ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY +// +// MessageText: +// +// SA establishment is not authorized. You may need to enter updated or different credentials such as a smartcard. +// +#define ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY 13907L + +// +// MessageId: ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE +// +// MessageText: +// +// SA establishment is not authorized because there is not a sufficiently strong PKINIT-based credential. This might be related to certificate-to-account mapping failure for the SA. +// +#define ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE 13908L + +// Extended upper bound for IKE errors to accommodate new errors +// +// MessageId: ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END +// +// MessageText: +// +// ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END +// +#define ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END 13909L + +// +// Following error codes are returned by IPsec kernel. +// +// +// MessageId: ERROR_IPSEC_BAD_SPI +// +// MessageText: +// +// The SPI in the packet does not match a valid IPsec SA. +// +#define ERROR_IPSEC_BAD_SPI 13910L + +// +// MessageId: ERROR_IPSEC_SA_LIFETIME_EXPIRED +// +// MessageText: +// +// Packet was received on an IPsec SA whose lifetime has expired. +// +#define ERROR_IPSEC_SA_LIFETIME_EXPIRED 13911L + +// +// MessageId: ERROR_IPSEC_WRONG_SA +// +// MessageText: +// +// Packet was received on an IPsec SA that does not match the packet characteristics. +// +#define ERROR_IPSEC_WRONG_SA 13912L + +// +// MessageId: ERROR_IPSEC_REPLAY_CHECK_FAILED +// +// MessageText: +// +// Packet sequence number replay check failed. +// +#define ERROR_IPSEC_REPLAY_CHECK_FAILED 13913L + +// +// MessageId: ERROR_IPSEC_INVALID_PACKET +// +// MessageText: +// +// IPsec header and/or trailer in the packet is invalid. +// +#define ERROR_IPSEC_INVALID_PACKET 13914L + +// +// MessageId: ERROR_IPSEC_INTEGRITY_CHECK_FAILED +// +// MessageText: +// +// IPsec integrity check failed. +// +#define ERROR_IPSEC_INTEGRITY_CHECK_FAILED 13915L + +// +// MessageId: ERROR_IPSEC_CLEAR_TEXT_DROP +// +// MessageText: +// +// IPsec dropped a clear text packet. +// +#define ERROR_IPSEC_CLEAR_TEXT_DROP 13916L + +// +// MessageId: ERROR_IPSEC_AUTH_FIREWALL_DROP +// +// MessageText: +// +// IPsec dropped an incoming ESP packet in authenticated firewall mode. This drop is benign. +// +#define ERROR_IPSEC_AUTH_FIREWALL_DROP 13917L + +// +// MessageId: ERROR_IPSEC_THROTTLE_DROP +// +// MessageText: +// +// IPsec dropped a packet due to DoS throttling. +// +#define ERROR_IPSEC_THROTTLE_DROP 13918L + +// +// MessageId: ERROR_IPSEC_DOSP_BLOCK +// +// MessageText: +// +// IPsec DoS Protection matched an explicit block rule. +// +#define ERROR_IPSEC_DOSP_BLOCK 13925L + +// +// MessageId: ERROR_IPSEC_DOSP_RECEIVED_MULTICAST +// +// MessageText: +// +// IPsec DoS Protection received an IPsec specific multicast packet which is not allowed. +// +#define ERROR_IPSEC_DOSP_RECEIVED_MULTICAST 13926L + +// +// MessageId: ERROR_IPSEC_DOSP_INVALID_PACKET +// +// MessageText: +// +// IPsec DoS Protection received an incorrectly formatted packet. +// +#define ERROR_IPSEC_DOSP_INVALID_PACKET 13927L + +// +// MessageId: ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED +// +// MessageText: +// +// IPsec DoS Protection failed to look up state. +// +#define ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED 13928L + +// +// MessageId: ERROR_IPSEC_DOSP_MAX_ENTRIES +// +// MessageText: +// +// IPsec DoS Protection failed to create state because the maximum number of entries allowed by policy has been reached. +// +#define ERROR_IPSEC_DOSP_MAX_ENTRIES 13929L + +// +// MessageId: ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED +// +// MessageText: +// +// IPsec DoS Protection received an IPsec negotiation packet for a keying module which is not allowed by policy. +// +#define ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED 13930L + +// +// MessageId: ERROR_IPSEC_DOSP_NOT_INSTALLED +// +// MessageText: +// +// IPsec DoS Protection has not been enabled. +// +#define ERROR_IPSEC_DOSP_NOT_INSTALLED 13931L + +// +// MessageId: ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES +// +// MessageText: +// +// IPsec DoS Protection failed to create a per internal IP rate limit queue because the maximum number of queues allowed by policy has been reached. +// +#define ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES 13932L + + +/////////////////////////////////////////////////// +// // +// End of IPSec Error codes // +// // +// 13000 to 13999 // +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// // +// Start of Side By Side Error Codes // +// // +// 14000 to 14999 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_SXS_SECTION_NOT_FOUND +// +// MessageText: +// +// The requested section was not present in the activation context. +// +#define ERROR_SXS_SECTION_NOT_FOUND 14000L + +// +// MessageId: ERROR_SXS_CANT_GEN_ACTCTX +// +// MessageText: +// +// The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. +// +#define ERROR_SXS_CANT_GEN_ACTCTX 14001L + +// +// MessageId: ERROR_SXS_INVALID_ACTCTXDATA_FORMAT +// +// MessageText: +// +// The application binding data format is invalid. +// +#define ERROR_SXS_INVALID_ACTCTXDATA_FORMAT 14002L + +// +// MessageId: ERROR_SXS_ASSEMBLY_NOT_FOUND +// +// MessageText: +// +// The referenced assembly is not installed on your system. +// +#define ERROR_SXS_ASSEMBLY_NOT_FOUND 14003L + +// +// MessageId: ERROR_SXS_MANIFEST_FORMAT_ERROR +// +// MessageText: +// +// The manifest file does not begin with the required tag and format information. +// +#define ERROR_SXS_MANIFEST_FORMAT_ERROR 14004L + +// +// MessageId: ERROR_SXS_MANIFEST_PARSE_ERROR +// +// MessageText: +// +// The manifest file contains one or more syntax errors. +// +#define ERROR_SXS_MANIFEST_PARSE_ERROR 14005L + +// +// MessageId: ERROR_SXS_ACTIVATION_CONTEXT_DISABLED +// +// MessageText: +// +// The application attempted to activate a disabled activation context. +// +#define ERROR_SXS_ACTIVATION_CONTEXT_DISABLED 14006L + +// +// MessageId: ERROR_SXS_KEY_NOT_FOUND +// +// MessageText: +// +// The requested lookup key was not found in any active activation context. +// +#define ERROR_SXS_KEY_NOT_FOUND 14007L + +// +// MessageId: ERROR_SXS_VERSION_CONFLICT +// +// MessageText: +// +// A component version required by the application conflicts with another component version already active. +// +#define ERROR_SXS_VERSION_CONFLICT 14008L + +// +// MessageId: ERROR_SXS_WRONG_SECTION_TYPE +// +// MessageText: +// +// The type requested activation context section does not match the query API used. +// +#define ERROR_SXS_WRONG_SECTION_TYPE 14009L + +// +// MessageId: ERROR_SXS_THREAD_QUERIES_DISABLED +// +// MessageText: +// +// Lack of system resources has required isolated activation to be disabled for the current thread of execution. +// +#define ERROR_SXS_THREAD_QUERIES_DISABLED 14010L + +// +// MessageId: ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET +// +// MessageText: +// +// An attempt to set the process default activation context failed because the process default activation context was already set. +// +#define ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET 14011L + +// +// MessageId: ERROR_SXS_UNKNOWN_ENCODING_GROUP +// +// MessageText: +// +// The encoding group identifier specified is not recognized. +// +#define ERROR_SXS_UNKNOWN_ENCODING_GROUP 14012L + +// +// MessageId: ERROR_SXS_UNKNOWN_ENCODING +// +// MessageText: +// +// The encoding requested is not recognized. +// +#define ERROR_SXS_UNKNOWN_ENCODING 14013L + +// +// MessageId: ERROR_SXS_INVALID_XML_NAMESPACE_URI +// +// MessageText: +// +// The manifest contains a reference to an invalid URI. +// +#define ERROR_SXS_INVALID_XML_NAMESPACE_URI 14014L + +// +// MessageId: ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED +// +// MessageText: +// +// The application manifest contains a reference to a dependent assembly which is not installed +// +#define ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED 14015L + +// +// MessageId: ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED +// +// MessageText: +// +// The manifest for an assembly used by the application has a reference to a dependent assembly which is not installed +// +#define ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED 14016L + +// +// MessageId: ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE +// +// MessageText: +// +// The manifest contains an attribute for the assembly identity which is not valid. +// +#define ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE 14017L + +// +// MessageId: ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE +// +// MessageText: +// +// The manifest is missing the required default namespace specification on the assembly element. +// +#define ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE 14018L + +// +// MessageId: ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE +// +// MessageText: +// +// The manifest has a default namespace specified on the assembly element but its value is not "urn:schemas-microsoft-com:asm.v1". +// +#define ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE 14019L + +// +// MessageId: ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT +// +// MessageText: +// +// The private manifest probed has crossed a path with an unsupported reparse point. +// +#define ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT 14020L + +// +// MessageId: ERROR_SXS_DUPLICATE_DLL_NAME +// +// MessageText: +// +// Two or more components referenced directly or indirectly by the application manifest have files by the same name. +// +#define ERROR_SXS_DUPLICATE_DLL_NAME 14021L + +// +// MessageId: ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME +// +// MessageText: +// +// Two or more components referenced directly or indirectly by the application manifest have window classes with the same name. +// +#define ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME 14022L + +// +// MessageId: ERROR_SXS_DUPLICATE_CLSID +// +// MessageText: +// +// Two or more components referenced directly or indirectly by the application manifest have the same COM server CLSIDs. +// +#define ERROR_SXS_DUPLICATE_CLSID 14023L + +// +// MessageId: ERROR_SXS_DUPLICATE_IID +// +// MessageText: +// +// Two or more components referenced directly or indirectly by the application manifest have proxies for the same COM interface IIDs. +// +#define ERROR_SXS_DUPLICATE_IID 14024L + +// +// MessageId: ERROR_SXS_DUPLICATE_TLBID +// +// MessageText: +// +// Two or more components referenced directly or indirectly by the application manifest have the same COM type library TLBIDs. +// +#define ERROR_SXS_DUPLICATE_TLBID 14025L + +// +// MessageId: ERROR_SXS_DUPLICATE_PROGID +// +// MessageText: +// +// Two or more components referenced directly or indirectly by the application manifest have the same COM ProgIDs. +// +#define ERROR_SXS_DUPLICATE_PROGID 14026L + +// +// MessageId: ERROR_SXS_DUPLICATE_ASSEMBLY_NAME +// +// MessageText: +// +// Two or more components referenced directly or indirectly by the application manifest are different versions of the same component which is not permitted. +// +#define ERROR_SXS_DUPLICATE_ASSEMBLY_NAME 14027L + +// +// MessageId: ERROR_SXS_FILE_HASH_MISMATCH +// +// MessageText: +// +// A component's file does not match the verification information present in the component manifest. +// +#define ERROR_SXS_FILE_HASH_MISMATCH 14028L + +// +// MessageId: ERROR_SXS_POLICY_PARSE_ERROR +// +// MessageText: +// +// The policy manifest contains one or more syntax errors. +// +#define ERROR_SXS_POLICY_PARSE_ERROR 14029L + +// +// MessageId: ERROR_SXS_XML_E_MISSINGQUOTE +// +// MessageText: +// +// Manifest Parse Error : A string literal was expected, but no opening quote character was found. +// +#define ERROR_SXS_XML_E_MISSINGQUOTE 14030L + +// +// MessageId: ERROR_SXS_XML_E_COMMENTSYNTAX +// +// MessageText: +// +// Manifest Parse Error : Incorrect syntax was used in a comment. +// +#define ERROR_SXS_XML_E_COMMENTSYNTAX 14031L + +// +// MessageId: ERROR_SXS_XML_E_BADSTARTNAMECHAR +// +// MessageText: +// +// Manifest Parse Error : A name was started with an invalid character. +// +#define ERROR_SXS_XML_E_BADSTARTNAMECHAR 14032L + +// +// MessageId: ERROR_SXS_XML_E_BADNAMECHAR +// +// MessageText: +// +// Manifest Parse Error : A name contained an invalid character. +// +#define ERROR_SXS_XML_E_BADNAMECHAR 14033L + +// +// MessageId: ERROR_SXS_XML_E_BADCHARINSTRING +// +// MessageText: +// +// Manifest Parse Error : A string literal contained an invalid character. +// +#define ERROR_SXS_XML_E_BADCHARINSTRING 14034L + +// +// MessageId: ERROR_SXS_XML_E_XMLDECLSYNTAX +// +// MessageText: +// +// Manifest Parse Error : Invalid syntax for an xml declaration. +// +#define ERROR_SXS_XML_E_XMLDECLSYNTAX 14035L + +// +// MessageId: ERROR_SXS_XML_E_BADCHARDATA +// +// MessageText: +// +// Manifest Parse Error : An Invalid character was found in text content. +// +#define ERROR_SXS_XML_E_BADCHARDATA 14036L + +// +// MessageId: ERROR_SXS_XML_E_MISSINGWHITESPACE +// +// MessageText: +// +// Manifest Parse Error : Required white space was missing. +// +#define ERROR_SXS_XML_E_MISSINGWHITESPACE 14037L + +// +// MessageId: ERROR_SXS_XML_E_EXPECTINGTAGEND +// +// MessageText: +// +// Manifest Parse Error : The character '>' was expected. +// +#define ERROR_SXS_XML_E_EXPECTINGTAGEND 14038L + +// +// MessageId: ERROR_SXS_XML_E_MISSINGSEMICOLON +// +// MessageText: +// +// Manifest Parse Error : A semi colon character was expected. +// +#define ERROR_SXS_XML_E_MISSINGSEMICOLON 14039L + +// +// MessageId: ERROR_SXS_XML_E_UNBALANCEDPAREN +// +// MessageText: +// +// Manifest Parse Error : Unbalanced parentheses. +// +#define ERROR_SXS_XML_E_UNBALANCEDPAREN 14040L + +// +// MessageId: ERROR_SXS_XML_E_INTERNALERROR +// +// MessageText: +// +// Manifest Parse Error : Internal error. +// +#define ERROR_SXS_XML_E_INTERNALERROR 14041L + +// +// MessageId: ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE +// +// MessageText: +// +// Manifest Parse Error : Whitespace is not allowed at this location. +// +#define ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE 14042L + +// +// MessageId: ERROR_SXS_XML_E_INCOMPLETE_ENCODING +// +// MessageText: +// +// Manifest Parse Error : End of file reached in invalid state for current encoding. +// +#define ERROR_SXS_XML_E_INCOMPLETE_ENCODING 14043L + +// +// MessageId: ERROR_SXS_XML_E_MISSING_PAREN +// +// MessageText: +// +// Manifest Parse Error : Missing parenthesis. +// +#define ERROR_SXS_XML_E_MISSING_PAREN 14044L + +// +// MessageId: ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE +// +// MessageText: +// +// Manifest Parse Error : A single or double closing quote character (\' or \") is missing. +// +#define ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE 14045L + +// +// MessageId: ERROR_SXS_XML_E_MULTIPLE_COLONS +// +// MessageText: +// +// Manifest Parse Error : Multiple colons are not allowed in a name. +// +#define ERROR_SXS_XML_E_MULTIPLE_COLONS 14046L + +// +// MessageId: ERROR_SXS_XML_E_INVALID_DECIMAL +// +// MessageText: +// +// Manifest Parse Error : Invalid character for decimal digit. +// +#define ERROR_SXS_XML_E_INVALID_DECIMAL 14047L + +// +// MessageId: ERROR_SXS_XML_E_INVALID_HEXIDECIMAL +// +// MessageText: +// +// Manifest Parse Error : Invalid character for hexadecimal digit. +// +#define ERROR_SXS_XML_E_INVALID_HEXIDECIMAL 14048L + +// +// MessageId: ERROR_SXS_XML_E_INVALID_UNICODE +// +// MessageText: +// +// Manifest Parse Error : Invalid unicode character value for this platform. +// +#define ERROR_SXS_XML_E_INVALID_UNICODE 14049L + +// +// MessageId: ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK +// +// MessageText: +// +// Manifest Parse Error : Expecting whitespace or '?'. +// +#define ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK 14050L + +// +// MessageId: ERROR_SXS_XML_E_UNEXPECTEDENDTAG +// +// MessageText: +// +// Manifest Parse Error : End tag was not expected at this location. +// +#define ERROR_SXS_XML_E_UNEXPECTEDENDTAG 14051L + +// +// MessageId: ERROR_SXS_XML_E_UNCLOSEDTAG +// +// MessageText: +// +// Manifest Parse Error : The following tags were not closed: %1. +// +#define ERROR_SXS_XML_E_UNCLOSEDTAG 14052L + +// +// MessageId: ERROR_SXS_XML_E_DUPLICATEATTRIBUTE +// +// MessageText: +// +// Manifest Parse Error : Duplicate attribute. +// +#define ERROR_SXS_XML_E_DUPLICATEATTRIBUTE 14053L + +// +// MessageId: ERROR_SXS_XML_E_MULTIPLEROOTS +// +// MessageText: +// +// Manifest Parse Error : Only one top level element is allowed in an XML document. +// +#define ERROR_SXS_XML_E_MULTIPLEROOTS 14054L + +// +// MessageId: ERROR_SXS_XML_E_INVALIDATROOTLEVEL +// +// MessageText: +// +// Manifest Parse Error : Invalid at the top level of the document. +// +#define ERROR_SXS_XML_E_INVALIDATROOTLEVEL 14055L + +// +// MessageId: ERROR_SXS_XML_E_BADXMLDECL +// +// MessageText: +// +// Manifest Parse Error : Invalid xml declaration. +// +#define ERROR_SXS_XML_E_BADXMLDECL 14056L + +// +// MessageId: ERROR_SXS_XML_E_MISSINGROOT +// +// MessageText: +// +// Manifest Parse Error : XML document must have a top level element. +// +#define ERROR_SXS_XML_E_MISSINGROOT 14057L + +// +// MessageId: ERROR_SXS_XML_E_UNEXPECTEDEOF +// +// MessageText: +// +// Manifest Parse Error : Unexpected end of file. +// +#define ERROR_SXS_XML_E_UNEXPECTEDEOF 14058L + +// +// MessageId: ERROR_SXS_XML_E_BADPEREFINSUBSET +// +// MessageText: +// +// Manifest Parse Error : Parameter entities cannot be used inside markup declarations in an internal subset. +// +#define ERROR_SXS_XML_E_BADPEREFINSUBSET 14059L + +// +// MessageId: ERROR_SXS_XML_E_UNCLOSEDSTARTTAG +// +// MessageText: +// +// Manifest Parse Error : Element was not closed. +// +#define ERROR_SXS_XML_E_UNCLOSEDSTARTTAG 14060L + +// +// MessageId: ERROR_SXS_XML_E_UNCLOSEDENDTAG +// +// MessageText: +// +// Manifest Parse Error : End element was missing the character '>'. +// +#define ERROR_SXS_XML_E_UNCLOSEDENDTAG 14061L + +// +// MessageId: ERROR_SXS_XML_E_UNCLOSEDSTRING +// +// MessageText: +// +// Manifest Parse Error : A string literal was not closed. +// +#define ERROR_SXS_XML_E_UNCLOSEDSTRING 14062L + +// +// MessageId: ERROR_SXS_XML_E_UNCLOSEDCOMMENT +// +// MessageText: +// +// Manifest Parse Error : A comment was not closed. +// +#define ERROR_SXS_XML_E_UNCLOSEDCOMMENT 14063L + +// +// MessageId: ERROR_SXS_XML_E_UNCLOSEDDECL +// +// MessageText: +// +// Manifest Parse Error : A declaration was not closed. +// +#define ERROR_SXS_XML_E_UNCLOSEDDECL 14064L + +// +// MessageId: ERROR_SXS_XML_E_UNCLOSEDCDATA +// +// MessageText: +// +// Manifest Parse Error : A CDATA section was not closed. +// +#define ERROR_SXS_XML_E_UNCLOSEDCDATA 14065L + +// +// MessageId: ERROR_SXS_XML_E_RESERVEDNAMESPACE +// +// MessageText: +// +// Manifest Parse Error : The namespace prefix is not allowed to start with the reserved string "xml". +// +#define ERROR_SXS_XML_E_RESERVEDNAMESPACE 14066L + +// +// MessageId: ERROR_SXS_XML_E_INVALIDENCODING +// +// MessageText: +// +// Manifest Parse Error : System does not support the specified encoding. +// +#define ERROR_SXS_XML_E_INVALIDENCODING 14067L + +// +// MessageId: ERROR_SXS_XML_E_INVALIDSWITCH +// +// MessageText: +// +// Manifest Parse Error : Switch from current encoding to specified encoding not supported. +// +#define ERROR_SXS_XML_E_INVALIDSWITCH 14068L + +// +// MessageId: ERROR_SXS_XML_E_BADXMLCASE +// +// MessageText: +// +// Manifest Parse Error : The name 'xml' is reserved and must be lower case. +// +#define ERROR_SXS_XML_E_BADXMLCASE 14069L + +// +// MessageId: ERROR_SXS_XML_E_INVALID_STANDALONE +// +// MessageText: +// +// Manifest Parse Error : The standalone attribute must have the value 'yes' or 'no'. +// +#define ERROR_SXS_XML_E_INVALID_STANDALONE 14070L + +// +// MessageId: ERROR_SXS_XML_E_UNEXPECTED_STANDALONE +// +// MessageText: +// +// Manifest Parse Error : The standalone attribute cannot be used in external entities. +// +#define ERROR_SXS_XML_E_UNEXPECTED_STANDALONE 14071L + +// +// MessageId: ERROR_SXS_XML_E_INVALID_VERSION +// +// MessageText: +// +// Manifest Parse Error : Invalid version number. +// +#define ERROR_SXS_XML_E_INVALID_VERSION 14072L + +// +// MessageId: ERROR_SXS_XML_E_MISSINGEQUALS +// +// MessageText: +// +// Manifest Parse Error : Missing equals sign between attribute and attribute value. +// +#define ERROR_SXS_XML_E_MISSINGEQUALS 14073L + +// +// MessageId: ERROR_SXS_PROTECTION_RECOVERY_FAILED +// +// MessageText: +// +// Assembly Protection Error : Unable to recover the specified assembly. +// +#define ERROR_SXS_PROTECTION_RECOVERY_FAILED 14074L + +// +// MessageId: ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT +// +// MessageText: +// +// Assembly Protection Error : The public key for an assembly was too short to be allowed. +// +#define ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT 14075L + +// +// MessageId: ERROR_SXS_PROTECTION_CATALOG_NOT_VALID +// +// MessageText: +// +// Assembly Protection Error : The catalog for an assembly is not valid, or does not match the assembly's manifest. +// +#define ERROR_SXS_PROTECTION_CATALOG_NOT_VALID 14076L + +// +// MessageId: ERROR_SXS_UNTRANSLATABLE_HRESULT +// +// MessageText: +// +// An HRESULT could not be translated to a corresponding Win32 error code. +// +#define ERROR_SXS_UNTRANSLATABLE_HRESULT 14077L + +// +// MessageId: ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING +// +// MessageText: +// +// Assembly Protection Error : The catalog for an assembly is missing. +// +#define ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING 14078L + +// +// MessageId: ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE +// +// MessageText: +// +// The supplied assembly identity is missing one or more attributes which must be present in this context. +// +#define ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE 14079L + +// +// MessageId: ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME +// +// MessageText: +// +// The supplied assembly identity has one or more attribute names that contain characters not permitted in XML names. +// +#define ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME 14080L + +// +// MessageId: ERROR_SXS_ASSEMBLY_MISSING +// +// MessageText: +// +// The referenced assembly could not be found. +// +#define ERROR_SXS_ASSEMBLY_MISSING 14081L + +// +// MessageId: ERROR_SXS_CORRUPT_ACTIVATION_STACK +// +// MessageText: +// +// The activation context activation stack for the running thread of execution is corrupt. +// +#define ERROR_SXS_CORRUPT_ACTIVATION_STACK 14082L + +// +// MessageId: ERROR_SXS_CORRUPTION +// +// MessageText: +// +// The application isolation metadata for this process or thread has become corrupt. +// +#define ERROR_SXS_CORRUPTION 14083L + +// +// MessageId: ERROR_SXS_EARLY_DEACTIVATION +// +// MessageText: +// +// The activation context being deactivated is not the most recently activated one. +// +#define ERROR_SXS_EARLY_DEACTIVATION 14084L + +// +// MessageId: ERROR_SXS_INVALID_DEACTIVATION +// +// MessageText: +// +// The activation context being deactivated is not active for the current thread of execution. +// +#define ERROR_SXS_INVALID_DEACTIVATION 14085L + +// +// MessageId: ERROR_SXS_MULTIPLE_DEACTIVATION +// +// MessageText: +// +// The activation context being deactivated has already been deactivated. +// +#define ERROR_SXS_MULTIPLE_DEACTIVATION 14086L + +// +// MessageId: ERROR_SXS_PROCESS_TERMINATION_REQUESTED +// +// MessageText: +// +// A component used by the isolation facility has requested to terminate the process. +// +#define ERROR_SXS_PROCESS_TERMINATION_REQUESTED 14087L + +// +// MessageId: ERROR_SXS_RELEASE_ACTIVATION_CONTEXT +// +// MessageText: +// +// A kernel mode component is releasing a reference on an activation context. +// +#define ERROR_SXS_RELEASE_ACTIVATION_CONTEXT 14088L + +// +// MessageId: ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY +// +// MessageText: +// +// The activation context of system default assembly could not be generated. +// +#define ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY 14089L + +// +// MessageId: ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE +// +// MessageText: +// +// The value of an attribute in an identity is not within the legal range. +// +#define ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE 14090L + +// +// MessageId: ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME +// +// MessageText: +// +// The name of an attribute in an identity is not within the legal range. +// +#define ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME 14091L + +// +// MessageId: ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE +// +// MessageText: +// +// An identity contains two definitions for the same attribute. +// +#define ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE 14092L + +// +// MessageId: ERROR_SXS_IDENTITY_PARSE_ERROR +// +// MessageText: +// +// The identity string is malformed. This may be due to a trailing comma, more than two unnamed attributes, missing attribute name or missing attribute value. +// +#define ERROR_SXS_IDENTITY_PARSE_ERROR 14093L + +// +// MessageId: ERROR_MALFORMED_SUBSTITUTION_STRING +// +// MessageText: +// +// A string containing localized substitutable content was malformed. Either a dollar sign ($) was followed by something other than a left parenthesis or another dollar sign or an substitution's right parenthesis was not found. +// +#define ERROR_MALFORMED_SUBSTITUTION_STRING 14094L + +// +// MessageId: ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN +// +// MessageText: +// +// The public key token does not correspond to the public key specified. +// +#define ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN 14095L + +// +// MessageId: ERROR_UNMAPPED_SUBSTITUTION_STRING +// +// MessageText: +// +// A substitution string had no mapping. +// +#define ERROR_UNMAPPED_SUBSTITUTION_STRING 14096L + +// +// MessageId: ERROR_SXS_ASSEMBLY_NOT_LOCKED +// +// MessageText: +// +// The component must be locked before making the request. +// +#define ERROR_SXS_ASSEMBLY_NOT_LOCKED 14097L + +// +// MessageId: ERROR_SXS_COMPONENT_STORE_CORRUPT +// +// MessageText: +// +// The component store has been corrupted. +// +#define ERROR_SXS_COMPONENT_STORE_CORRUPT 14098L + +// +// MessageId: ERROR_ADVANCED_INSTALLER_FAILED +// +// MessageText: +// +// An advanced installer failed during setup or servicing. +// +#define ERROR_ADVANCED_INSTALLER_FAILED 14099L + +// +// MessageId: ERROR_XML_ENCODING_MISMATCH +// +// MessageText: +// +// The character encoding in the XML declaration did not match the encoding used in the document. +// +#define ERROR_XML_ENCODING_MISMATCH 14100L + +// +// MessageId: ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT +// +// MessageText: +// +// The identities of the manifests are identical but their contents are different. +// +#define ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT 14101L + +// +// MessageId: ERROR_SXS_IDENTITIES_DIFFERENT +// +// MessageText: +// +// The component identities are different. +// +#define ERROR_SXS_IDENTITIES_DIFFERENT 14102L + +// +// MessageId: ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT +// +// MessageText: +// +// The assembly is not a deployment. +// +#define ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT 14103L + +// +// MessageId: ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY +// +// MessageText: +// +// The file is not a part of the assembly. +// +#define ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY 14104L + +// +// MessageId: ERROR_SXS_MANIFEST_TOO_BIG +// +// MessageText: +// +// The size of the manifest exceeds the maximum allowed. +// +#define ERROR_SXS_MANIFEST_TOO_BIG 14105L + +// +// MessageId: ERROR_SXS_SETTING_NOT_REGISTERED +// +// MessageText: +// +// The setting is not registered. +// +#define ERROR_SXS_SETTING_NOT_REGISTERED 14106L + +// +// MessageId: ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE +// +// MessageText: +// +// One or more required members of the transaction are not present. +// +#define ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE 14107L + +// +// MessageId: ERROR_SMI_PRIMITIVE_INSTALLER_FAILED +// +// MessageText: +// +// The SMI primitive installer failed during setup or servicing. +// +#define ERROR_SMI_PRIMITIVE_INSTALLER_FAILED 14108L + +// +// MessageId: ERROR_GENERIC_COMMAND_FAILED +// +// MessageText: +// +// A generic command executable returned a result that indicates failure. +// +#define ERROR_GENERIC_COMMAND_FAILED 14109L + +// +// MessageId: ERROR_SXS_FILE_HASH_MISSING +// +// MessageText: +// +// A component is missing file verification information in its manifest. +// +#define ERROR_SXS_FILE_HASH_MISSING 14110L + +// +// MessageId: ERROR_SXS_DUPLICATE_ACTIVATABLE_CLASS +// +// MessageText: +// +// Two or more components referenced directly or indirectly by the application manifest have the same WinRT ActivatableClass IDs. +// +#define ERROR_SXS_DUPLICATE_ACTIVATABLE_CLASS 14111L + + +/////////////////////////////////////////////////// +// // +// End of Side By Side Error Codes // +// // +// 14000 to 14999 // +/////////////////////////////////////////////////// + + +/////////////////////////////////////////////////// +// // +// Start of WinEvt Error codes // +// // +// 15000 to 15079 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_EVT_INVALID_CHANNEL_PATH +// +// MessageText: +// +// The specified channel path is invalid. +// +#define ERROR_EVT_INVALID_CHANNEL_PATH 15000L + +// +// MessageId: ERROR_EVT_INVALID_QUERY +// +// MessageText: +// +// The specified query is invalid. +// +#define ERROR_EVT_INVALID_QUERY 15001L + +// +// MessageId: ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND +// +// MessageText: +// +// The publisher metadata cannot be found in the resource. +// +#define ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND 15002L + +// +// MessageId: ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND +// +// MessageText: +// +// The template for an event definition cannot be found in the resource (error = %1). +// +#define ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND 15003L + +// +// MessageId: ERROR_EVT_INVALID_PUBLISHER_NAME +// +// MessageText: +// +// The specified publisher name is invalid. +// +#define ERROR_EVT_INVALID_PUBLISHER_NAME 15004L + +// +// MessageId: ERROR_EVT_INVALID_EVENT_DATA +// +// MessageText: +// +// The event data raised by the publisher is not compatible with the event template definition in the publisher's manifest. +// +#define ERROR_EVT_INVALID_EVENT_DATA 15005L + +// +// MessageId: ERROR_EVT_CHANNEL_NOT_FOUND +// +// MessageText: +// +// The specified channel could not be found. +// +#define ERROR_EVT_CHANNEL_NOT_FOUND 15007L + +// +// MessageId: ERROR_EVT_MALFORMED_XML_TEXT +// +// MessageText: +// +// The specified XML text was not well-formed. See Extended Error for more details. +// +#define ERROR_EVT_MALFORMED_XML_TEXT 15008L + +// +// MessageId: ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL +// +// MessageText: +// +// The events for a direct channel go directly to a log file and cannot be subscribed to. +// +#define ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL 15009L + +// +// MessageId: ERROR_EVT_CONFIGURATION_ERROR +// +// MessageText: +// +// Configuration error. +// +#define ERROR_EVT_CONFIGURATION_ERROR 15010L + +// +// MessageId: ERROR_EVT_QUERY_RESULT_STALE +// +// MessageText: +// +// The query result is stale or invalid and must be recreated. This may be due to the log being cleared or rolling over after the query result was created. +// +#define ERROR_EVT_QUERY_RESULT_STALE 15011L + +// +// MessageId: ERROR_EVT_QUERY_RESULT_INVALID_POSITION +// +// MessageText: +// +// The query result is currently at an invalid position. +// +#define ERROR_EVT_QUERY_RESULT_INVALID_POSITION 15012L + +// +// MessageId: ERROR_EVT_NON_VALIDATING_MSXML +// +// MessageText: +// +// Registered MSXML doesn't support validation. +// +#define ERROR_EVT_NON_VALIDATING_MSXML 15013L + +// +// MessageId: ERROR_EVT_FILTER_ALREADYSCOPED +// +// MessageText: +// +// An expression can only be followed by a change-of-scope operation if the expression evaluates to a node set and is not already part of another change-of-scope operation. +// +#define ERROR_EVT_FILTER_ALREADYSCOPED 15014L + +// +// MessageId: ERROR_EVT_FILTER_NOTELTSET +// +// MessageText: +// +// Cannot perform a step operation from a term that does not represent an element set. +// +#define ERROR_EVT_FILTER_NOTELTSET 15015L + +// +// MessageId: ERROR_EVT_FILTER_INVARG +// +// MessageText: +// +// Left-hand side arguments to binary operators must be either attributes, nodes or variables. Right-hand side arguments must be constants. +// +#define ERROR_EVT_FILTER_INVARG 15016L + +// +// MessageId: ERROR_EVT_FILTER_INVTEST +// +// MessageText: +// +// A step operation must involve a node test or, in the case of a predicate, an algebraic expression against which to test each node in the preceeding node set. +// +#define ERROR_EVT_FILTER_INVTEST 15017L + +// +// MessageId: ERROR_EVT_FILTER_INVTYPE +// +// MessageText: +// +// This data type is currently unsupported. +// +#define ERROR_EVT_FILTER_INVTYPE 15018L + +// +// MessageId: ERROR_EVT_FILTER_PARSEERR +// +// MessageText: +// +// A syntax error occurred at position %1!d! +// +#define ERROR_EVT_FILTER_PARSEERR 15019L + +// +// MessageId: ERROR_EVT_FILTER_UNSUPPORTEDOP +// +// MessageText: +// +// This operator is unsupported by this implementation of the filter. +// +#define ERROR_EVT_FILTER_UNSUPPORTEDOP 15020L + +// +// MessageId: ERROR_EVT_FILTER_UNEXPECTEDTOKEN +// +// MessageText: +// +// An unexpected token was encountered. +// +#define ERROR_EVT_FILTER_UNEXPECTEDTOKEN 15021L + +// +// MessageId: ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL +// +// MessageText: +// +// The requested operation cannot be performed over an enabled direct channel. The channel must first be disabled. +// +#define ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL 15022L + +// +// MessageId: ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE +// +// MessageText: +// +// Channel property %1!s! contains an invalid value. The value has an invalid type, is outside of its valid range, cannot be changed, or is not supported by this type of channel. +// +#define ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE 15023L + +// +// MessageId: ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE +// +// MessageText: +// +// Publisher property %1!s! contains an invalid value. The value has an invalid type, is outside of its valid range, cannot be changed, or is not supported by this type of publisher. +// +#define ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE 15024L + +// +// MessageId: ERROR_EVT_CHANNEL_CANNOT_ACTIVATE +// +// MessageText: +// +// The channel failed to activate. +// +#define ERROR_EVT_CHANNEL_CANNOT_ACTIVATE 15025L + +// +// MessageId: ERROR_EVT_FILTER_TOO_COMPLEX +// +// MessageText: +// +// The XPath expression exceeded the supported complexity. Simplify the expression or split it into multiple expressions. +// +#define ERROR_EVT_FILTER_TOO_COMPLEX 15026L + +// +// MessageId: ERROR_EVT_MESSAGE_NOT_FOUND +// +// MessageText: +// +// The message resource is present but the message was not found in the message table. +// +#define ERROR_EVT_MESSAGE_NOT_FOUND 15027L + +// +// MessageId: ERROR_EVT_MESSAGE_ID_NOT_FOUND +// +// MessageText: +// +// The message ID for the desired message could not be found. +// +#define ERROR_EVT_MESSAGE_ID_NOT_FOUND 15028L + +// +// MessageId: ERROR_EVT_UNRESOLVED_VALUE_INSERT +// +// MessageText: +// +// The substitution string for insert index (%1) could not be found. +// +#define ERROR_EVT_UNRESOLVED_VALUE_INSERT 15029L + +// +// MessageId: ERROR_EVT_UNRESOLVED_PARAMETER_INSERT +// +// MessageText: +// +// The description string for parameter reference (%1) could not be found. +// +#define ERROR_EVT_UNRESOLVED_PARAMETER_INSERT 15030L + +// +// MessageId: ERROR_EVT_MAX_INSERTS_REACHED +// +// MessageText: +// +// The maximum number of replacements has been reached. +// +#define ERROR_EVT_MAX_INSERTS_REACHED 15031L + +// +// MessageId: ERROR_EVT_EVENT_DEFINITION_NOT_FOUND +// +// MessageText: +// +// The event definition could not be found for event ID (%1). +// +#define ERROR_EVT_EVENT_DEFINITION_NOT_FOUND 15032L + +// +// MessageId: ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND +// +// MessageText: +// +// The locale specific resource for the desired message is not present. +// +#define ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND 15033L + +// +// MessageId: ERROR_EVT_VERSION_TOO_OLD +// +// MessageText: +// +// The resource is too old and is not supported. +// +#define ERROR_EVT_VERSION_TOO_OLD 15034L + +// +// MessageId: ERROR_EVT_VERSION_TOO_NEW +// +// MessageText: +// +// The resource is too new and is not supported. +// +#define ERROR_EVT_VERSION_TOO_NEW 15035L + +// +// MessageId: ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY +// +// MessageText: +// +// The channel at index %1!d! of the query can't be opened. +// +#define ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY 15036L + +// +// MessageId: ERROR_EVT_PUBLISHER_DISABLED +// +// MessageText: +// +// The publisher has been disabled and its resource is not available. This usually occurs when the publisher is in the process of being uninstalled or upgraded. +// +#define ERROR_EVT_PUBLISHER_DISABLED 15037L + +// +// MessageId: ERROR_EVT_FILTER_OUT_OF_RANGE +// +// MessageText: +// +// Attempted to create a numeric type that is outside of its valid range. +// +#define ERROR_EVT_FILTER_OUT_OF_RANGE 15038L + + +/////////////////////////////////////////////////// +// // +// Start of Wecsvc Error codes // +// // +// 15080 to 15099 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE +// +// MessageText: +// +// The subscription fails to activate. +// +#define ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE 15080L + +// +// MessageId: ERROR_EC_LOG_DISABLED +// +// MessageText: +// +// The log of the subscription is in disabled state, and can not be used to forward events to. The log must first be enabled before the subscription can be activated. +// +#define ERROR_EC_LOG_DISABLED 15081L + +// +// MessageId: ERROR_EC_CIRCULAR_FORWARDING +// +// MessageText: +// +// When forwarding events from local machine to itself, the query of the subscription can't contain target log of the subscription. +// +#define ERROR_EC_CIRCULAR_FORWARDING 15082L + +// +// MessageId: ERROR_EC_CREDSTORE_FULL +// +// MessageText: +// +// The credential store that is used to save credentials is full. +// +#define ERROR_EC_CREDSTORE_FULL 15083L + +// +// MessageId: ERROR_EC_CRED_NOT_FOUND +// +// MessageText: +// +// The credential used by this subscription can't be found in credential store. +// +#define ERROR_EC_CRED_NOT_FOUND 15084L + +// +// MessageId: ERROR_EC_NO_ACTIVE_CHANNEL +// +// MessageText: +// +// No active channel is found for the query. +// +#define ERROR_EC_NO_ACTIVE_CHANNEL 15085L + + +/////////////////////////////////////////////////// +// // +// Start of MUI Error codes // +// // +// 15100 to 15199 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_MUI_FILE_NOT_FOUND +// +// MessageText: +// +// The resource loader failed to find MUI file. +// +#define ERROR_MUI_FILE_NOT_FOUND 15100L + +// +// MessageId: ERROR_MUI_INVALID_FILE +// +// MessageText: +// +// The resource loader failed to load MUI file because the file fail to pass validation. +// +#define ERROR_MUI_INVALID_FILE 15101L + +// +// MessageId: ERROR_MUI_INVALID_RC_CONFIG +// +// MessageText: +// +// The RC Manifest is corrupted with garbage data or unsupported version or missing required item. +// +#define ERROR_MUI_INVALID_RC_CONFIG 15102L + +// +// MessageId: ERROR_MUI_INVALID_LOCALE_NAME +// +// MessageText: +// +// The RC Manifest has invalid culture name. +// +#define ERROR_MUI_INVALID_LOCALE_NAME 15103L + +// +// MessageId: ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME +// +// MessageText: +// +// The RC Manifest has invalid ultimatefallback name. +// +#define ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME 15104L + +// +// MessageId: ERROR_MUI_FILE_NOT_LOADED +// +// MessageText: +// +// The resource loader cache doesn't have loaded MUI entry. +// +#define ERROR_MUI_FILE_NOT_LOADED 15105L + +// +// MessageId: ERROR_RESOURCE_ENUM_USER_STOP +// +// MessageText: +// +// User stopped resource enumeration. +// +#define ERROR_RESOURCE_ENUM_USER_STOP 15106L + +// +// MessageId: ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED +// +// MessageText: +// +// UI language installation failed. +// +#define ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED 15107L + +// +// MessageId: ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME +// +// MessageText: +// +// Locale installation failed. +// +#define ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME 15108L + +// +// MessageId: ERROR_MRM_RUNTIME_NO_DEFAULT_OR_NEUTRAL_RESOURCE +// +// MessageText: +// +// A resource does not have default or neutral value. +// +#define ERROR_MRM_RUNTIME_NO_DEFAULT_OR_NEUTRAL_RESOURCE 15110L + +// +// MessageId: ERROR_MRM_INVALID_PRICONFIG +// +// MessageText: +// +// Invalid PRI config file. +// +#define ERROR_MRM_INVALID_PRICONFIG 15111L + +// +// MessageId: ERROR_MRM_INVALID_FILE_TYPE +// +// MessageText: +// +// Invalid file type. +// +#define ERROR_MRM_INVALID_FILE_TYPE 15112L + +// +// MessageId: ERROR_MRM_UNKNOWN_QUALIFIER +// +// MessageText: +// +// Unknown qualifier. +// +#define ERROR_MRM_UNKNOWN_QUALIFIER 15113L + +// +// MessageId: ERROR_MRM_INVALID_QUALIFIER_VALUE +// +// MessageText: +// +// Invalid qualifier value. +// +#define ERROR_MRM_INVALID_QUALIFIER_VALUE 15114L + +// +// MessageId: ERROR_MRM_NO_CANDIDATE +// +// MessageText: +// +// No Candidate found. +// +#define ERROR_MRM_NO_CANDIDATE 15115L + +// +// MessageId: ERROR_MRM_NO_MATCH_OR_DEFAULT_CANDIDATE +// +// MessageText: +// +// The ResourceMap or NamedResource has an item that does not have default or neutral resource.. +// +#define ERROR_MRM_NO_MATCH_OR_DEFAULT_CANDIDATE 15116L + +// +// MessageId: ERROR_MRM_RESOURCE_TYPE_MISMATCH +// +// MessageText: +// +// Invalid ResourceCandidate type. +// +#define ERROR_MRM_RESOURCE_TYPE_MISMATCH 15117L + +// +// MessageId: ERROR_MRM_DUPLICATE_MAP_NAME +// +// MessageText: +// +// Duplicate Resource Map. +// +#define ERROR_MRM_DUPLICATE_MAP_NAME 15118L + +// +// MessageId: ERROR_MRM_DUPLICATE_ENTRY +// +// MessageText: +// +// Duplicate Entry. +// +#define ERROR_MRM_DUPLICATE_ENTRY 15119L + +// +// MessageId: ERROR_MRM_INVALID_RESOURCE_IDENTIFIER +// +// MessageText: +// +// Invalid Resource Identifier. +// +#define ERROR_MRM_INVALID_RESOURCE_IDENTIFIER 15120L + +// +// MessageId: ERROR_MRM_FILEPATH_TOO_LONG +// +// MessageText: +// +// Filepath too long. +// +#define ERROR_MRM_FILEPATH_TOO_LONG 15121L + +// +// MessageId: ERROR_MRM_UNSUPPORTED_DIRECTORY_TYPE +// +// MessageText: +// +// Unsupported directory type. +// +#define ERROR_MRM_UNSUPPORTED_DIRECTORY_TYPE 15122L + +// +// MessageId: ERROR_MRM_INVALID_PRI_FILE +// +// MessageText: +// +// Invalid PRI File. +// +#define ERROR_MRM_INVALID_PRI_FILE 15126L + +// +// MessageId: ERROR_MRM_NAMED_RESOURCE_NOT_FOUND +// +// MessageText: +// +// NamedResource Not Found. +// +#define ERROR_MRM_NAMED_RESOURCE_NOT_FOUND 15127L + +// +// MessageId: ERROR_MRM_MAP_NOT_FOUND +// +// MessageText: +// +// ResourceMap Not Found. +// +#define ERROR_MRM_MAP_NOT_FOUND 15135L + +// +// MessageId: ERROR_MRM_UNSUPPORTED_PROFILE_TYPE +// +// MessageText: +// +// Unsupported MRT profile type. +// +#define ERROR_MRM_UNSUPPORTED_PROFILE_TYPE 15136L + +// +// MessageId: ERROR_MRM_INVALID_QUALIFIER_OPERATOR +// +// MessageText: +// +// Invalid qualifier operator. +// +#define ERROR_MRM_INVALID_QUALIFIER_OPERATOR 15137L + +// +// MessageId: ERROR_MRM_INDETERMINATE_QUALIFIER_VALUE +// +// MessageText: +// +// Unable to determine qualifier value or qualifier value has not been set. +// +#define ERROR_MRM_INDETERMINATE_QUALIFIER_VALUE 15138L + +// +// MessageId: ERROR_MRM_AUTOMERGE_ENABLED +// +// MessageText: +// +// Automerge is enabled in the PRI file. +// +#define ERROR_MRM_AUTOMERGE_ENABLED 15139L + +// +// MessageId: ERROR_MRM_TOO_MANY_RESOURCES +// +// MessageText: +// +// Too many resources defined for package. +// +#define ERROR_MRM_TOO_MANY_RESOURCES 15140L + +// +// MessageId: ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_MERGE +// +// MessageText: +// +// Resource File can not be used for merge operation. +// +#define ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_MERGE 15141L + +// +// MessageId: ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_LOAD_UNLOAD_PRI_FILE +// +// MessageText: +// +// Load/UnloadPriFiles cannot be used with resource packages. +// +#define ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_LOAD_UNLOAD_PRI_FILE 15142L + +// +// MessageId: ERROR_MRM_NO_CURRENT_VIEW_ON_THREAD +// +// MessageText: +// +// Resource Contexts may not be created on threads that do not have a CoreWindow. +// +#define ERROR_MRM_NO_CURRENT_VIEW_ON_THREAD 15143L + +// +// MessageId: ERROR_DIFFERENT_PROFILE_RESOURCE_MANAGER_EXIST +// +// MessageText: +// +// The singleton Resource Manager with different profile is already created. +// +#define ERROR_DIFFERENT_PROFILE_RESOURCE_MANAGER_EXIST 15144L + +// +// MessageId: ERROR_OPERATION_NOT_ALLOWED_FROM_SYSTEM_COMPONENT +// +// MessageText: +// +// The system component cannot operate given API operation +// +#define ERROR_OPERATION_NOT_ALLOWED_FROM_SYSTEM_COMPONENT 15145L + +// +// MessageId: ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE +// +// MessageText: +// +// The resource is a direct reference to a non-default resource candidate. +// +#define ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE 15146L + +// +// MessageId: ERROR_MRM_GENERATION_COUNT_MISMATCH +// +// MessageText: +// +// Resource Map has been re-generated and the query string is not valid anymore. +// +#define ERROR_MRM_GENERATION_COUNT_MISMATCH 15147L + +// +// MessageId: ERROR_PRI_MERGE_VERSION_MISMATCH +// +// MessageText: +// +// The PRI files to be merged have incompatible versions. +// +#define ERROR_PRI_MERGE_VERSION_MISMATCH 15148L + +// +// MessageId: ERROR_PRI_MERGE_MISSING_SCHEMA +// +// MessageText: +// +// The primary PRI files to be merged does not contain a schema. +// +#define ERROR_PRI_MERGE_MISSING_SCHEMA 15149L + +// +// MessageId: ERROR_PRI_MERGE_LOAD_FILE_FAILED +// +// MessageText: +// +// Unable to load one of the PRI files to be merged. +// +#define ERROR_PRI_MERGE_LOAD_FILE_FAILED 15150L + +// +// MessageId: ERROR_PRI_MERGE_ADD_FILE_FAILED +// +// MessageText: +// +// Unable to add one of the PRI files to the merged file. +// +#define ERROR_PRI_MERGE_ADD_FILE_FAILED 15151L + +// +// MessageId: ERROR_PRI_MERGE_WRITE_FILE_FAILED +// +// MessageText: +// +// Unable to create the merged PRI file. +// +#define ERROR_PRI_MERGE_WRITE_FILE_FAILED 15152L + +// +// MessageId: ERROR_PRI_MERGE_MULTIPLE_PACKAGE_FAMILIES_NOT_ALLOWED +// +// MessageText: +// +// Packages for a PRI file merge must all be from the same package family. +// +#define ERROR_PRI_MERGE_MULTIPLE_PACKAGE_FAMILIES_NOT_ALLOWED 15153L + +// +// MessageId: ERROR_PRI_MERGE_MULTIPLE_MAIN_PACKAGES_NOT_ALLOWED +// +// MessageText: +// +// Packages for a PRI file merge must not include multiple main packages. +// +#define ERROR_PRI_MERGE_MULTIPLE_MAIN_PACKAGES_NOT_ALLOWED 15154L + +// +// MessageId: ERROR_PRI_MERGE_BUNDLE_PACKAGES_NOT_ALLOWED +// +// MessageText: +// +// Packages for a PRI file merge must not include bundle packages. +// +#define ERROR_PRI_MERGE_BUNDLE_PACKAGES_NOT_ALLOWED 15155L + +// +// MessageId: ERROR_PRI_MERGE_MAIN_PACKAGE_REQUIRED +// +// MessageText: +// +// Packages for a PRI file merge must include one main package. +// +#define ERROR_PRI_MERGE_MAIN_PACKAGE_REQUIRED 15156L + +// +// MessageId: ERROR_PRI_MERGE_RESOURCE_PACKAGE_REQUIRED +// +// MessageText: +// +// Packages for a PRI file merge must include at least one resource package. +// +#define ERROR_PRI_MERGE_RESOURCE_PACKAGE_REQUIRED 15157L + +// +// MessageId: ERROR_PRI_MERGE_INVALID_FILE_NAME +// +// MessageText: +// +// Invalid name supplied for a canonical merged PRI file. +// +#define ERROR_PRI_MERGE_INVALID_FILE_NAME 15158L + +// +// MessageId: ERROR_MRM_PACKAGE_NOT_FOUND +// +// MessageText: +// +// Unable to find the specified package. +// +#define ERROR_MRM_PACKAGE_NOT_FOUND 15159L + +// +// MessageId: ERROR_MRM_MISSING_DEFAULT_LANGUAGE +// +// MessageText: +// +// No default value for language was specified. +// +#define ERROR_MRM_MISSING_DEFAULT_LANGUAGE 15160L + +// +// MessageId: ERROR_MRM_SCOPE_ITEM_CONFLICT +// +// MessageText: +// +// An entity was defined as both resource and scope, which is not allowed. +// +#define ERROR_MRM_SCOPE_ITEM_CONFLICT 15161L + + +/////////////////////////////////////////////////// +// // +// Start of Monitor Configuration API error codes// +// // +// 15200 to 15249 // +/////////////////////////////////////////////////// + +// +// MessageId: ERROR_MCA_INVALID_CAPABILITIES_STRING +// +// MessageText: +// +// The monitor returned a DDC/CI capabilities string that did not comply with the ACCESS.bus 3.0, DDC/CI 1.1 or MCCS 2 Revision 1 specification. +// +#define ERROR_MCA_INVALID_CAPABILITIES_STRING 15200L + +// +// MessageId: ERROR_MCA_INVALID_VCP_VERSION +// +// MessageText: +// +// The monitor's VCP Version (0xDF) VCP code returned an invalid version value. +// +#define ERROR_MCA_INVALID_VCP_VERSION 15201L + +// +// MessageId: ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION +// +// MessageText: +// +// The monitor does not comply with the MCCS specification it claims to support. +// +#define ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION 15202L + +// +// MessageId: ERROR_MCA_MCCS_VERSION_MISMATCH +// +// MessageText: +// +// The MCCS version in a monitor's mccs_ver capability does not match the MCCS version the monitor reports when the VCP Version (0xDF) VCP code is used. +// +#define ERROR_MCA_MCCS_VERSION_MISMATCH 15203L + +// +// MessageId: ERROR_MCA_UNSUPPORTED_MCCS_VERSION +// +// MessageText: +// +// The Monitor Configuration API only works with monitors that support the MCCS 1.0 specification, MCCS 2.0 specification or the MCCS 2.0 Revision 1 specification. +// +#define ERROR_MCA_UNSUPPORTED_MCCS_VERSION 15204L + +// +// MessageId: ERROR_MCA_INTERNAL_ERROR +// +// MessageText: +// +// An internal Monitor Configuration API error occurred. +// +#define ERROR_MCA_INTERNAL_ERROR 15205L + +// +// MessageId: ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED +// +// MessageText: +// +// The monitor returned an invalid monitor technology type. CRT, Plasma and LCD (TFT) are examples of monitor technology types. This error implies that the monitor violated the MCCS 2.0 or MCCS 2.0 Revision 1 specification. +// +#define ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED 15206L + +// +// MessageId: ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE +// +// MessageText: +// +// The caller of SetMonitorColorTemperature specified a color temperature that the current monitor did not support. This error implies that the monitor violated the MCCS 2.0 or MCCS 2.0 Revision 1 specification. +// +#define ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE 15207L + + +////////////////////////////////////////////////// +// // +// End of Monitor Configuration API error codes // +// // +// 15200 to 15249 // +// // +////////////////////////////////////////////////// +////////////////////////////////////////////////// +// // +// Start of Syspart error codes // +// 15250 - 15299 // +// // +////////////////////////////////////////////////// + +// +// MessageId: ERROR_AMBIGUOUS_SYSTEM_DEVICE +// +// MessageText: +// +// The requested system device cannot be identified due to multiple indistinguishable devices potentially matching the identification criteria. +// +#define ERROR_AMBIGUOUS_SYSTEM_DEVICE 15250L + +// +// MessageId: ERROR_SYSTEM_DEVICE_NOT_FOUND +// +// MessageText: +// +// The requested system device cannot be found. +// +#define ERROR_SYSTEM_DEVICE_NOT_FOUND 15299L + +////////////////////////////////////////////////// +// // +// Start of Vortex error codes // +// 15300 - 15320 // +// // +////////////////////////////////////////////////// + +// +// MessageId: ERROR_HASH_NOT_SUPPORTED +// +// MessageText: +// +// Hash generation for the specified hash version and hash type is not enabled on the server. +// +#define ERROR_HASH_NOT_SUPPORTED 15300L + +// +// MessageId: ERROR_HASH_NOT_PRESENT +// +// MessageText: +// +// The hash requested from the server is not available or no longer valid. +// +#define ERROR_HASH_NOT_PRESENT 15301L + +////////////////////////////////////////////////// +// // +// Start of GPIO error codes // +// 15321 - 15340 // +// // +////////////////////////////////////////////////// + +// +// MessageId: ERROR_SECONDARY_IC_PROVIDER_NOT_REGISTERED +// +// MessageText: +// +// The secondary interrupt controller instance that manages the specified interrupt is not registered. +// +#define ERROR_SECONDARY_IC_PROVIDER_NOT_REGISTERED 15321L + +// +// MessageId: ERROR_GPIO_CLIENT_INFORMATION_INVALID +// +// MessageText: +// +// The information supplied by the GPIO client driver is invalid. +// +#define ERROR_GPIO_CLIENT_INFORMATION_INVALID 15322L + +// +// MessageId: ERROR_GPIO_VERSION_NOT_SUPPORTED +// +// MessageText: +// +// The version specified by the GPIO client driver is not supported. +// +#define ERROR_GPIO_VERSION_NOT_SUPPORTED 15323L + +// +// MessageId: ERROR_GPIO_INVALID_REGISTRATION_PACKET +// +// MessageText: +// +// The registration packet supplied by the GPIO client driver is not valid. +// +#define ERROR_GPIO_INVALID_REGISTRATION_PACKET 15324L + +// +// MessageId: ERROR_GPIO_OPERATION_DENIED +// +// MessageText: +// +// The requested operation is not supported for the specified handle. +// +#define ERROR_GPIO_OPERATION_DENIED 15325L + +// +// MessageId: ERROR_GPIO_INCOMPATIBLE_CONNECT_MODE +// +// MessageText: +// +// The requested connect mode conflicts with an existing mode on one or more of the specified pins. +// +#define ERROR_GPIO_INCOMPATIBLE_CONNECT_MODE 15326L + +// +// MessageId: ERROR_GPIO_INTERRUPT_ALREADY_UNMASKED +// +// MessageText: +// +// The interrupt requested to be unmasked is not masked. +// +#define ERROR_GPIO_INTERRUPT_ALREADY_UNMASKED 15327L + +////////////////////////////////////////////////// +// // +// Start of API Set error codes // +// 15380 - 15399 // +// // +////////////////////////////////////////////////// + +// +// MessageId: ERROR_CANNOT_COMPOSE_APISET_EXTENSION +// +// MessageText: +// +// An API Set schema extension failed to compose. +// +#define ERROR_CANNOT_COMPOSE_APISET_EXTENSION 15380L + +// +// MessageId: ERROR_APISET_SCHEMA_VERSION_NOT_SUPPORTED +// +// MessageText: +// +// The API Set schema version is not supported. +// +#define ERROR_APISET_SCHEMA_VERSION_NOT_SUPPORTED 15381L + +////////////////////////////////////////////////// +// // +// Start of Run Level error codes // +// 15400 - 15500 // +// // +////////////////////////////////////////////////// + +// +// MessageId: ERROR_CANNOT_SWITCH_RUNLEVEL +// +// MessageText: +// +// The requested run level switch cannot be completed successfully. +// +#define ERROR_CANNOT_SWITCH_RUNLEVEL 15400L + +// +// MessageId: ERROR_INVALID_RUNLEVEL_SETTING +// +// MessageText: +// +// The service has an invalid run level setting. The run level for a service +// must not be higher than the run level of its dependent services. +// +#define ERROR_INVALID_RUNLEVEL_SETTING 15401L + +// +// MessageId: ERROR_RUNLEVEL_SWITCH_TIMEOUT +// +// MessageText: +// +// The requested run level switch cannot be completed successfully since +// one or more services will not stop or restart within the specified timeout. +// +#define ERROR_RUNLEVEL_SWITCH_TIMEOUT 15402L + +// +// MessageId: ERROR_RUNLEVEL_SWITCH_AGENT_TIMEOUT +// +// MessageText: +// +// A run level switch agent did not respond within the specified timeout. +// +#define ERROR_RUNLEVEL_SWITCH_AGENT_TIMEOUT 15403L + +// +// MessageId: ERROR_RUNLEVEL_SWITCH_IN_PROGRESS +// +// MessageText: +// +// A run level switch is currently in progress. +// +#define ERROR_RUNLEVEL_SWITCH_IN_PROGRESS 15404L + +// +// MessageId: ERROR_SERVICES_FAILED_AUTOSTART +// +// MessageText: +// +// One or more services failed to start during the service startup phase of a run level switch. +// +#define ERROR_SERVICES_FAILED_AUTOSTART 15405L + +////////////////////////////////////////////////// +// // +// Start of Com Task error codes // +// 15501 - 15510 // +// // +////////////////////////////////////////////////// + +// +// MessageId: ERROR_COM_TASK_STOP_PENDING +// +// MessageText: +// +// The task stop request cannot be completed immediately since +// task needs more time to shutdown. +// +#define ERROR_COM_TASK_STOP_PENDING 15501L + +//////////////////////////////////////// +// // +// APPX Caller Visible Error Codes // +// 15600-15699 // +//////////////////////////////////////// +// +// MessageId: ERROR_INSTALL_OPEN_PACKAGE_FAILED +// +// MessageText: +// +// Package could not be opened. +// +#define ERROR_INSTALL_OPEN_PACKAGE_FAILED 15600L + +// +// MessageId: ERROR_INSTALL_PACKAGE_NOT_FOUND +// +// MessageText: +// +// Package was not found. +// +#define ERROR_INSTALL_PACKAGE_NOT_FOUND 15601L + +// +// MessageId: ERROR_INSTALL_INVALID_PACKAGE +// +// MessageText: +// +// Package data is invalid. +// +#define ERROR_INSTALL_INVALID_PACKAGE 15602L + +// +// MessageId: ERROR_INSTALL_RESOLVE_DEPENDENCY_FAILED +// +// MessageText: +// +// Package failed updates, dependency or conflict validation. +// +#define ERROR_INSTALL_RESOLVE_DEPENDENCY_FAILED 15603L + +// +// MessageId: ERROR_INSTALL_OUT_OF_DISK_SPACE +// +// MessageText: +// +// There is not enough disk space on your computer. Please free up some space and try again. +// +#define ERROR_INSTALL_OUT_OF_DISK_SPACE 15604L + +// +// MessageId: ERROR_INSTALL_NETWORK_FAILURE +// +// MessageText: +// +// There was a problem downloading your product. +// +#define ERROR_INSTALL_NETWORK_FAILURE 15605L + +// +// MessageId: ERROR_INSTALL_REGISTRATION_FAILURE +// +// MessageText: +// +// Package could not be registered. +// +#define ERROR_INSTALL_REGISTRATION_FAILURE 15606L + +// +// MessageId: ERROR_INSTALL_DEREGISTRATION_FAILURE +// +// MessageText: +// +// Package could not be unregistered. +// +#define ERROR_INSTALL_DEREGISTRATION_FAILURE 15607L + +// +// MessageId: ERROR_INSTALL_CANCEL +// +// MessageText: +// +// User cancelled the install request. +// +#define ERROR_INSTALL_CANCEL 15608L + +// +// MessageId: ERROR_INSTALL_FAILED +// +// MessageText: +// +// Install failed. Please contact your software vendor. +// +#define ERROR_INSTALL_FAILED 15609L + +// +// MessageId: ERROR_REMOVE_FAILED +// +// MessageText: +// +// Removal failed. Please contact your software vendor. +// +#define ERROR_REMOVE_FAILED 15610L + +// +// MessageId: ERROR_PACKAGE_ALREADY_EXISTS +// +// MessageText: +// +// The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details. +// +#define ERROR_PACKAGE_ALREADY_EXISTS 15611L + +// +// MessageId: ERROR_NEEDS_REMEDIATION +// +// MessageText: +// +// The application cannot be started. Try reinstalling the application to fix the problem. +// +#define ERROR_NEEDS_REMEDIATION 15612L + +// +// MessageId: ERROR_INSTALL_PREREQUISITE_FAILED +// +// MessageText: +// +// A Prerequisite for an install could not be satisfied. +// +#define ERROR_INSTALL_PREREQUISITE_FAILED 15613L + +// +// MessageId: ERROR_PACKAGE_REPOSITORY_CORRUPTED +// +// MessageText: +// +// The package repository is corrupted. +// +#define ERROR_PACKAGE_REPOSITORY_CORRUPTED 15614L + +// +// MessageId: ERROR_INSTALL_POLICY_FAILURE +// +// MessageText: +// +// To install this application you need either a Windows developer license or a sideloading-enabled system. +// +#define ERROR_INSTALL_POLICY_FAILURE 15615L + +// +// MessageId: ERROR_PACKAGE_UPDATING +// +// MessageText: +// +// The application cannot be started because it is currently updating. +// +#define ERROR_PACKAGE_UPDATING 15616L + +// +// MessageId: ERROR_DEPLOYMENT_BLOCKED_BY_POLICY +// +// MessageText: +// +// The package deployment operation is blocked by policy. Please contact your system administrator. +// +#define ERROR_DEPLOYMENT_BLOCKED_BY_POLICY 15617L + +// +// MessageId: ERROR_PACKAGES_IN_USE +// +// MessageText: +// +// The package could not be installed because resources it modifies are currently in use. +// +#define ERROR_PACKAGES_IN_USE 15618L + +// +// MessageId: ERROR_RECOVERY_FILE_CORRUPT +// +// MessageText: +// +// The package could not be recovered because necessary data for recovery have been corrupted. +// +#define ERROR_RECOVERY_FILE_CORRUPT 15619L + +// +// MessageId: ERROR_INVALID_STAGED_SIGNATURE +// +// MessageText: +// +// The signature is invalid. To register in developer mode, AppxSignature.p7x and AppxBlockMap.xml must be valid or should not be present. +// +#define ERROR_INVALID_STAGED_SIGNATURE 15620L + +// +// MessageId: ERROR_DELETING_EXISTING_APPLICATIONDATA_STORE_FAILED +// +// MessageText: +// +// An error occurred while deleting the package's previously existing application data. +// +#define ERROR_DELETING_EXISTING_APPLICATIONDATA_STORE_FAILED 15621L + +// +// MessageId: ERROR_INSTALL_PACKAGE_DOWNGRADE +// +// MessageText: +// +// The package could not be installed because a higher version of this package is already installed. +// +#define ERROR_INSTALL_PACKAGE_DOWNGRADE 15622L + +// +// MessageId: ERROR_SYSTEM_NEEDS_REMEDIATION +// +// MessageText: +// +// An error in a system binary was detected. Try refreshing the PC to fix the problem. +// +#define ERROR_SYSTEM_NEEDS_REMEDIATION 15623L + +// +// MessageId: ERROR_APPX_INTEGRITY_FAILURE_CLR_NGEN +// +// MessageText: +// +// A corrupted CLR NGEN binary was detected on the system. +// +#define ERROR_APPX_INTEGRITY_FAILURE_CLR_NGEN 15624L + +// +// MessageId: ERROR_RESILIENCY_FILE_CORRUPT +// +// MessageText: +// +// The operation could not be resumed because necessary data for recovery have been corrupted. +// +#define ERROR_RESILIENCY_FILE_CORRUPT 15625L + +// +// MessageId: ERROR_INSTALL_FIREWALL_SERVICE_NOT_RUNNING +// +// MessageText: +// +// The package could not be installed because the Windows Firewall service is not running. Enable the Windows Firewall service and try again. +// +#define ERROR_INSTALL_FIREWALL_SERVICE_NOT_RUNNING 15626L + +// +// MessageId: ERROR_PACKAGE_MOVE_FAILED +// +// MessageText: +// +// Package move failed. +// +#define ERROR_PACKAGE_MOVE_FAILED 15627L + +// +// MessageId: ERROR_INSTALL_VOLUME_NOT_EMPTY +// +// MessageText: +// +// The deployment operation failed because the volume is not empty. +// +#define ERROR_INSTALL_VOLUME_NOT_EMPTY 15628L + +// +// MessageId: ERROR_INSTALL_VOLUME_OFFLINE +// +// MessageText: +// +// The deployment operation failed because the volume is offline. For a package update, the volume refers to the installed volume of all package versions. +// +#define ERROR_INSTALL_VOLUME_OFFLINE 15629L + +// +// MessageId: ERROR_INSTALL_VOLUME_CORRUPT +// +// MessageText: +// +// The deployment operation failed because the specified volume is corrupt. +// +#define ERROR_INSTALL_VOLUME_CORRUPT 15630L + +// +// MessageId: ERROR_NEEDS_REGISTRATION +// +// MessageText: +// +// The deployment operation failed because the specified application needs to be registered first. +// +#define ERROR_NEEDS_REGISTRATION 15631L + +// +// MessageId: ERROR_INSTALL_WRONG_PROCESSOR_ARCHITECTURE +// +// MessageText: +// +// The deployment operation failed because the package targets the wrong processor architecture. +// +#define ERROR_INSTALL_WRONG_PROCESSOR_ARCHITECTURE 15632L + +// +// MessageId: ERROR_DEV_SIDELOAD_LIMIT_EXCEEDED +// +// MessageText: +// +// You have reached the maximum number of developer sideloaded packages allowed on this device. Please uninstall a sideloaded package and try again. +// +#define ERROR_DEV_SIDELOAD_LIMIT_EXCEEDED 15633L + +// +// MessageId: ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE +// +// MessageText: +// +// A main app package is required to install this optional package. Install the main package first and try again. +// +#define ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE 15634L + +// +// MessageId: ERROR_PACKAGE_NOT_SUPPORTED_ON_FILESYSTEM +// +// MessageText: +// +// This app package type is not supported on this filesystem +// +#define ERROR_PACKAGE_NOT_SUPPORTED_ON_FILESYSTEM 15635L + +// +// MessageId: ERROR_PACKAGE_MOVE_BLOCKED_BY_STREAMING +// +// MessageText: +// +// Package move operation is blocked until the application has finished streaming +// +#define ERROR_PACKAGE_MOVE_BLOCKED_BY_STREAMING 15636L + +// +// MessageId: ERROR_INSTALL_OPTIONAL_PACKAGE_APPLICATIONID_NOT_UNIQUE +// +// MessageText: +// +// A main or another optional app package has the same application ID as this optional package. Change the application ID for the optional package to avoid conflicts. +// +#define ERROR_INSTALL_OPTIONAL_PACKAGE_APPLICATIONID_NOT_UNIQUE 15637L + +// +// MessageId: ERROR_PACKAGE_STAGING_ONHOLD +// +// MessageText: +// +// This staging session has been held to allow another staging operation to be prioritized. +// +#define ERROR_PACKAGE_STAGING_ONHOLD 15638L + +// +// MessageId: ERROR_INSTALL_INVALID_RELATED_SET_UPDATE +// +// MessageText: +// +// A related set cannot be updated because the updated set is invalid. All packages in the related set must be updated at the same time. +// +#define ERROR_INSTALL_INVALID_RELATED_SET_UPDATE 15639L + +// +// MessageId: ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY +// +// MessageText: +// +// An optional package with a FullTrust entry point requires the main package to have the runFullTrust capability. +// +#define ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY 15640L + +// +// MessageId: ERROR_DEPLOYMENT_BLOCKED_BY_USER_LOG_OFF +// +// MessageText: +// +// An error occurred because a user was logged off. +// +#define ERROR_DEPLOYMENT_BLOCKED_BY_USER_LOG_OFF 15641L + +// +// MessageId: ERROR_PROVISION_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_PROVISIONED +// +// MessageText: +// +// An optional package provision requires the dependency main package to also be provisioned. +// +#define ERROR_PROVISION_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_PROVISIONED 15642L + +// +// MessageId: ERROR_PACKAGES_REPUTATION_CHECK_FAILED +// +// MessageText: +// +// The packages failed the SmartScreen reputation check. +// +#define ERROR_PACKAGES_REPUTATION_CHECK_FAILED 15643L + +// +// MessageId: ERROR_PACKAGES_REPUTATION_CHECK_TIMEDOUT +// +// MessageText: +// +// The SmartScreen reputation check operation timed out. +// +#define ERROR_PACKAGES_REPUTATION_CHECK_TIMEDOUT 15644L + +// +// MessageId: ERROR_DEPLOYMENT_OPTION_NOT_SUPPORTED +// +// MessageText: +// +// The current deployment option is not supported. +// +#define ERROR_DEPLOYMENT_OPTION_NOT_SUPPORTED 15645L + +// +// MessageId: ERROR_APPINSTALLER_ACTIVATION_BLOCKED +// +// MessageText: +// +// Activation is blocked due to the .appinstaller update settings for this app. +// +#define ERROR_APPINSTALLER_ACTIVATION_BLOCKED 15646L + +// +// MessageId: ERROR_REGISTRATION_FROM_REMOTE_DRIVE_NOT_SUPPORTED +// +// MessageText: +// +// Remote drives are not supported; use \\server\share to register a remote package. +// +#define ERROR_REGISTRATION_FROM_REMOTE_DRIVE_NOT_SUPPORTED 15647L + +// +// MessageId: ERROR_APPX_RAW_DATA_WRITE_FAILED +// +// MessageText: +// +// Failed to process and write downloaded APPX package data to disk. +// +#define ERROR_APPX_RAW_DATA_WRITE_FAILED 15648L + +// +// MessageId: ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_PACKAGE +// +// MessageText: +// +// The deployment operation was blocked due to a per-package-family policy restricting deployments on a non-system volume. Per policy, this app must be installed to the system drive, but that's not set as the default. In Storage Settings, make the system drive the default location to save new content, then retry the install. +// +#define ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_PACKAGE 15649L + +// +// MessageId: ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_MACHINE +// +// MessageText: +// +// The deployment operation was blocked due to a machine-wide policy restricting deployments on a non-system volume. Per policy, this app must be installed to the system drive, but that's not set as the default. In Storage Settings, make the system drive the default location to save new content, then retry the install. +// +#define ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_MACHINE 15650L + +// +// MessageId: ERROR_DEPLOYMENT_BLOCKED_BY_PROFILE_POLICY +// +// MessageText: +// +// The deployment operation was blocked because Special profile deployment is not allowed. Please try logging into an account that is not a Special profile. You can try logging out and logging back into the current account, or try logging into a different account. +// +#define ERROR_DEPLOYMENT_BLOCKED_BY_PROFILE_POLICY 15651L + +// +// MessageId: ERROR_DEPLOYMENT_FAILED_CONFLICTING_MUTABLE_PACKAGE_DIRECTORY +// +// MessageText: +// +// The deployment operation failed due to a conflicting package's mutable package directory. To install this package remove the existing package with the conflicting mutable package directory. +// +#define ERROR_DEPLOYMENT_FAILED_CONFLICTING_MUTABLE_PACKAGE_DIRECTORY 15652L + +// +// MessageId: ERROR_SINGLETON_RESOURCE_INSTALLED_IN_ACTIVE_USER +// +// MessageText: +// +// The package installation failed because a singleton resource was specified and another user with that package installed is logged in. Please make sure that all active users with the package installed are logged out and retry installation. +// +#define ERROR_SINGLETON_RESOURCE_INSTALLED_IN_ACTIVE_USER 15653L + +// +// MessageId: ERROR_DIFFERENT_VERSION_OF_PACKAGED_SERVICE_INSTALLED +// +// MessageText: +// +// The package installation failed because a different version of the service is installed. Try installing a newer version of the package. +// +#define ERROR_DIFFERENT_VERSION_OF_PACKAGED_SERVICE_INSTALLED 15654L + +// +// MessageId: ERROR_SERVICE_EXISTS_AS_NON_PACKAGED_SERVICE +// +// MessageText: +// +// The package installation failed because a version of the service exists outside of APPX packaging. Please contact your software vendor. +// +#define ERROR_SERVICE_EXISTS_AS_NON_PACKAGED_SERVICE 15655L + +// +// MessageId: ERROR_PACKAGED_SERVICE_REQUIRES_ADMIN_PRIVILEGES +// +// MessageText: +// +// The package installation failed because administrator privileges are required. Please contact an administrator to install this package. +// +#define ERROR_PACKAGED_SERVICE_REQUIRES_ADMIN_PRIVILEGES 15656L + +// +// MessageId: ERROR_REDIRECTION_TO_DEFAULT_ACCOUNT_NOT_ALLOWED +// +// MessageText: +// +// The package deployment failed because the operation would have redirected to default account, when the caller said not to do so. +// +#define ERROR_REDIRECTION_TO_DEFAULT_ACCOUNT_NOT_ALLOWED 15657L + +// +// MessageId: ERROR_PACKAGE_LACKS_CAPABILITY_TO_DEPLOY_ON_HOST +// +// MessageText: +// +// The package deployment failed because the package requires a capability to natively target this host. +// +#define ERROR_PACKAGE_LACKS_CAPABILITY_TO_DEPLOY_ON_HOST 15658L + +// +// MessageId: ERROR_UNSIGNED_PACKAGE_INVALID_CONTENT +// +// MessageText: +// +// The package deployment failed because its content is not valid for an unsigned package. +// +#define ERROR_UNSIGNED_PACKAGE_INVALID_CONTENT 15659L + +// +// MessageId: ERROR_UNSIGNED_PACKAGE_INVALID_PUBLISHER_NAMESPACE +// +// MessageText: +// +// The package deployment failed because its publisher is not in the unsigned namespace. +// +#define ERROR_UNSIGNED_PACKAGE_INVALID_PUBLISHER_NAMESPACE 15660L + +// +// MessageId: ERROR_SIGNED_PACKAGE_INVALID_PUBLISHER_NAMESPACE +// +// MessageText: +// +// The package deployment failed because its publisher is not in the signed namespace. +// +#define ERROR_SIGNED_PACKAGE_INVALID_PUBLISHER_NAMESPACE 15661L + +// +// MessageId: ERROR_PACKAGE_EXTERNAL_LOCATION_NOT_ALLOWED +// +// MessageText: +// +// The package deployment failed because it must allow external content to be deployed with an external location. +// +#define ERROR_PACKAGE_EXTERNAL_LOCATION_NOT_ALLOWED 15662L + +// +// MessageId: ERROR_INSTALL_FULLTRUST_HOSTRUNTIME_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY +// +// MessageText: +// +// A host runtime dependency resolving to a package with full trust content requires the main package to have the runFullTrust capability. +// +#define ERROR_INSTALL_FULLTRUST_HOSTRUNTIME_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY 15663L + +// +// MessageId: ERROR_PACKAGE_LACKS_CAPABILITY_FOR_MANDATORY_STARTUPTASKS +// +// MessageText: +// +// The package deployment failed because the package requires a capability for mandatory startup tasks. +// +#define ERROR_PACKAGE_LACKS_CAPABILITY_FOR_MANDATORY_STARTUPTASKS 15664L + +// +// MessageId: ERROR_INSTALL_RESOLVE_HOSTRUNTIME_DEPENDENCY_FAILED +// +// MessageText: +// +// Package failed host runtime dependency or conflict validation. +// +#define ERROR_INSTALL_RESOLVE_HOSTRUNTIME_DEPENDENCY_FAILED 15665L + +// +// MessageId: ERROR_MACHINE_SCOPE_NOT_ALLOWED +// +// MessageText: +// +// The package deployment failed because it uses a machine scope but doesn't have the required capability. +// +#define ERROR_MACHINE_SCOPE_NOT_ALLOWED 15666L + +// +// MessageId: ERROR_CLASSIC_COMPAT_MODE_NOT_ALLOWED +// +// MessageText: +// +// The package deployment failed because it uses classic compatmode but doesn't have the required capability. +// +#define ERROR_CLASSIC_COMPAT_MODE_NOT_ALLOWED 15667L + +// +// MessageId: ERROR_STAGEFROMUPDATEAGENT_PACKAGE_NOT_APPLICABLE +// +// MessageText: +// +// AppxUpdateAgent attempted to stage a package that is not applicable. +// +#define ERROR_STAGEFROMUPDATEAGENT_PACKAGE_NOT_APPLICABLE 15668L + +// +// MessageId: ERROR_PACKAGE_NOT_REGISTERED_FOR_USER +// +// MessageText: +// +// The application cannot be started for the target user. Please have the user explicitly install this package. +// +#define ERROR_PACKAGE_NOT_REGISTERED_FOR_USER 15669L + +// +// MessageId: ERROR_PACKAGE_NAME_MISMATCH +// +// MessageText: +// +// The provided package name does not match the expected package name. Check the AppXDeployment-Server event log for details. +// +#define ERROR_PACKAGE_NAME_MISMATCH 15670L + +// +// MessageId: ERROR_APPINSTALLER_URI_IN_USE +// +// MessageText: +// +// The provided .appinstaller URI is already being used by another package family. Check the AppXDeployment-Server event log for details. +// +#define ERROR_APPINSTALLER_URI_IN_USE 15671L + +// +// MessageId: ERROR_APPINSTALLER_IS_MANAGED_BY_SYSTEM +// +// MessageText: +// +// The package family's auto update settings are being managed at system priority and cannot be changed at default priority. Please contact your system administrator for help with the error. +// +#define ERROR_APPINSTALLER_IS_MANAGED_BY_SYSTEM 15672L + +// +// MessageId: ERROR_SERVICE_BLOCKED_BY_SYSPREP_IN_PROGRESS +// +// MessageText: +// +// Service is not available while sysprep is running. +// +#define ERROR_SERVICE_BLOCKED_BY_SYSPREP_IN_PROGRESS 15673L + +// +// MessageId: ERROR_UNSUPPORTED_ARM32_PACKAGE_REQUIRES_REMEDIAITON +// +// MessageText: +// +// The activation failed because the package targets the arm32 architecture, which is no longer supported. Try repairing or reinstalling the application to fix the problem. +// +#define ERROR_UNSUPPORTED_ARM32_PACKAGE_REQUIRES_REMEDIAITON 15674L + +// +// MessageId: ERROR_UUP_PRODUCT_NOT_APPLICABLE +// +// MessageText: +// +// The product is not applicable or cannot be found. +// +#define ERROR_UUP_PRODUCT_NOT_APPLICABLE 15675L + +// +// MessageId: ERROR_BLOCKED_BY_PENDING_PACKAGE_REMOVAL +// +// MessageText: +// +// The deployment operation on this package is blocked because it or a package in the same family is pending removal. Please log off and log on again to finish the deferred package removal and try again. +// +#define ERROR_BLOCKED_BY_PENDING_PACKAGE_REMOVAL 15676L + +// +// MessageId: ERROR_PACKAGE_REPOSITORY_ROOT_CORRUPTED +// +// MessageText: +// +// The package repository root is corrupted. +// +#define ERROR_PACKAGE_REPOSITORY_ROOT_CORRUPTED 15677L + +// +// MessageId: ERROR_PACKAGE_MANIFEST_NOT_FOUND +// +// MessageText: +// +// The package manifest is not found. +// +#define ERROR_PACKAGE_MANIFEST_NOT_FOUND 15678L + +// +// MessageId: ERROR_DEPLOYMENT_BLOCKED_BY_REMOVEDEFAULTPACKAGES_POLICY +// +// MessageText: +// +// The deployment operation on this package is blocked because the package family name is in RemoveDefaultMicrosoftStorePackages policy override. +// +#define ERROR_DEPLOYMENT_BLOCKED_BY_REMOVEDEFAULTPACKAGES_POLICY 15679L + +// +// MessageId: ERROR_URI_BLOCKED_BY_POLICY_MSIXALLOWEDZONES +// +// MessageText: +// +// The source uri is blocked by MsixAllowedZones policy. Please contact your system administrator. +// +#define ERROR_URI_BLOCKED_BY_POLICY_MSIXALLOWEDZONES 15680L + +// +// MessageId: ERROR_URI_RECOMMENDED_BLOCK_BY_SMARTSCREEN +// +// MessageText: +// +// The source uri is recommended to be blocked by SmartScreen. Please contact your system administrator. +// +#define ERROR_URI_RECOMMENDED_BLOCK_BY_SMARTSCREEN 15681L + +////////////////////////// +// // +// AppModel Error Codes // +// 15700-15720 // +// // +////////////////////////// +// +// MessageId: APPMODEL_ERROR_NO_PACKAGE +// +// MessageText: +// +// The process has no package identity. +// +#define APPMODEL_ERROR_NO_PACKAGE 15700L + +// +// MessageId: APPMODEL_ERROR_PACKAGE_RUNTIME_CORRUPT +// +// MessageText: +// +// The package runtime information is corrupted. +// +#define APPMODEL_ERROR_PACKAGE_RUNTIME_CORRUPT 15701L + +// +// MessageId: APPMODEL_ERROR_PACKAGE_IDENTITY_CORRUPT +// +// MessageText: +// +// The package identity is corrupted. +// +#define APPMODEL_ERROR_PACKAGE_IDENTITY_CORRUPT 15702L + +// +// MessageId: APPMODEL_ERROR_NO_APPLICATION +// +// MessageText: +// +// The process has no application identity. +// +#define APPMODEL_ERROR_NO_APPLICATION 15703L + +// +// MessageId: APPMODEL_ERROR_DYNAMIC_PROPERTY_READ_FAILED +// +// MessageText: +// +// One or more AppModel Runtime group policy values could not be read. Please contact your system administrator with the contents of your AppModel Runtime event log. +// +#define APPMODEL_ERROR_DYNAMIC_PROPERTY_READ_FAILED 15704L + +// +// MessageId: APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID +// +// MessageText: +// +// One or more AppModel Runtime group policy values are invalid. Please contact your system administrator with the contents of your AppModel Runtime event log. +// +#define APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID 15705L + +// +// MessageId: APPMODEL_ERROR_PACKAGE_NOT_AVAILABLE +// +// MessageText: +// +// The package is currently not available. +// +#define APPMODEL_ERROR_PACKAGE_NOT_AVAILABLE 15706L + +// +// MessageId: APPMODEL_ERROR_NO_MUTABLE_DIRECTORY +// +// MessageText: +// +// The package does not have a mutable directory. +// +#define APPMODEL_ERROR_NO_MUTABLE_DIRECTORY 15707L + +///////////////////////////// +// // +// Appx StateManager Codes // +// 15800-15840 // +// // +///////////////////////////// +// +// MessageId: ERROR_STATE_LOAD_STORE_FAILED +// +// MessageText: +// +// Loading the state store failed. +// +#define ERROR_STATE_LOAD_STORE_FAILED 15800L + +// +// MessageId: ERROR_STATE_GET_VERSION_FAILED +// +// MessageText: +// +// Retrieving the state version for the application failed. +// +#define ERROR_STATE_GET_VERSION_FAILED 15801L + +// +// MessageId: ERROR_STATE_SET_VERSION_FAILED +// +// MessageText: +// +// Setting the state version for the application failed. +// +#define ERROR_STATE_SET_VERSION_FAILED 15802L + +// +// MessageId: ERROR_STATE_STRUCTURED_RESET_FAILED +// +// MessageText: +// +// Resetting the structured state of the application failed. +// +#define ERROR_STATE_STRUCTURED_RESET_FAILED 15803L + +// +// MessageId: ERROR_STATE_OPEN_CONTAINER_FAILED +// +// MessageText: +// +// State Manager failed to open the container. +// +#define ERROR_STATE_OPEN_CONTAINER_FAILED 15804L + +// +// MessageId: ERROR_STATE_CREATE_CONTAINER_FAILED +// +// MessageText: +// +// State Manager failed to create the container. +// +#define ERROR_STATE_CREATE_CONTAINER_FAILED 15805L + +// +// MessageId: ERROR_STATE_DELETE_CONTAINER_FAILED +// +// MessageText: +// +// State Manager failed to delete the container. +// +#define ERROR_STATE_DELETE_CONTAINER_FAILED 15806L + +// +// MessageId: ERROR_STATE_READ_SETTING_FAILED +// +// MessageText: +// +// State Manager failed to read the setting. +// +#define ERROR_STATE_READ_SETTING_FAILED 15807L + +// +// MessageId: ERROR_STATE_WRITE_SETTING_FAILED +// +// MessageText: +// +// State Manager failed to write the setting. +// +#define ERROR_STATE_WRITE_SETTING_FAILED 15808L + +// +// MessageId: ERROR_STATE_DELETE_SETTING_FAILED +// +// MessageText: +// +// State Manager failed to delete the setting. +// +#define ERROR_STATE_DELETE_SETTING_FAILED 15809L + +// +// MessageId: ERROR_STATE_QUERY_SETTING_FAILED +// +// MessageText: +// +// State Manager failed to query the setting. +// +#define ERROR_STATE_QUERY_SETTING_FAILED 15810L + +// +// MessageId: ERROR_STATE_READ_COMPOSITE_SETTING_FAILED +// +// MessageText: +// +// State Manager failed to read the composite setting. +// +#define ERROR_STATE_READ_COMPOSITE_SETTING_FAILED 15811L + +// +// MessageId: ERROR_STATE_WRITE_COMPOSITE_SETTING_FAILED +// +// MessageText: +// +// State Manager failed to write the composite setting. +// +#define ERROR_STATE_WRITE_COMPOSITE_SETTING_FAILED 15812L + +// +// MessageId: ERROR_STATE_ENUMERATE_CONTAINER_FAILED +// +// MessageText: +// +// State Manager failed to enumerate the containers. +// +#define ERROR_STATE_ENUMERATE_CONTAINER_FAILED 15813L + +// +// MessageId: ERROR_STATE_ENUMERATE_SETTINGS_FAILED +// +// MessageText: +// +// State Manager failed to enumerate the settings. +// +#define ERROR_STATE_ENUMERATE_SETTINGS_FAILED 15814L + +// +// MessageId: ERROR_STATE_COMPOSITE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED +// +// MessageText: +// +// The size of the state manager composite setting value has exceeded the limit. +// +#define ERROR_STATE_COMPOSITE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED 15815L + +// +// MessageId: ERROR_STATE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED +// +// MessageText: +// +// The size of the state manager setting value has exceeded the limit. +// +#define ERROR_STATE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED 15816L + +// +// MessageId: ERROR_STATE_SETTING_NAME_SIZE_LIMIT_EXCEEDED +// +// MessageText: +// +// The length of the state manager setting name has exceeded the limit. +// +#define ERROR_STATE_SETTING_NAME_SIZE_LIMIT_EXCEEDED 15817L + +// +// MessageId: ERROR_STATE_CONTAINER_NAME_SIZE_LIMIT_EXCEEDED +// +// MessageText: +// +// The length of the state manager container name has exceeded the limit. +// +#define ERROR_STATE_CONTAINER_NAME_SIZE_LIMIT_EXCEEDED 15818L + +///////////////////////////////// +// // +// Application Partition Codes // +// 15841-15860 // +// // +///////////////////////////////// +// +// MessageId: ERROR_API_UNAVAILABLE +// +// MessageText: +// +// This API cannot be used in the context of the caller's application type. +// +#define ERROR_API_UNAVAILABLE 15841L + +///////////////////////////////// +// // +// Windows Store Codes // +// 15861-15880 // +// // +///////////////////////////////// +// +// MessageId: STORE_ERROR_UNLICENSED +// +// MessageText: +// +// This PC does not have a valid license for the application or product. +// +#define STORE_ERROR_UNLICENSED 15861L + +// +// MessageId: STORE_ERROR_UNLICENSED_USER +// +// MessageText: +// +// The authenticated user does not have a valid license for the application or product. +// +#define STORE_ERROR_UNLICENSED_USER 15862L + +// +// MessageId: STORE_ERROR_PENDING_COM_TRANSACTION +// +// MessageText: +// +// The commerce transaction associated with this license is still pending verification. +// +#define STORE_ERROR_PENDING_COM_TRANSACTION 15863L + +// +// MessageId: STORE_ERROR_LICENSE_REVOKED +// +// MessageText: +// +// The license has been revoked for this user. +// +#define STORE_ERROR_LICENSE_REVOKED 15864L + +//////////////////////////////////// +// // +// COM Error Codes // +// // +//////////////////////////////////// + + +// +// The return value of COM functions and methods is an HRESULT. +// This is not a handle to anything, but is merely a 32-bit value +// with several fields encoded in the value. The parts of an +// HRESULT are shown below. +// +// Many of the macros and functions below were originally defined to +// operate on SCODEs. SCODEs are no longer used. The macros are +// still present for compatibility and easy porting of Win16 code. +// Newly written code should use the HRESULT macros and functions. +// + +// +// HRESULTs are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +-+-+-+-+-+---------------------+-------------------------------+ +// |S|R|C|N|r| Facility | Code | +// +-+-+-+-+-+---------------------+-------------------------------+ +// +// where +// +// S - Severity - indicates success/fail +// +// 0 - Success +// 1 - Fail (COERROR) +// +// R - reserved portion of the facility code, corresponds to NT's +// second severity bit. +// +// C - reserved portion of the facility code, corresponds to NT's +// C field. +// +// N - reserved portion of the facility code. Used to indicate a +// mapped NT status value. +// +// r - reserved portion of the facility code. Reserved for internal +// use. Used to indicate HRESULT values that are not status +// values, but are instead message ids for display strings. +// +// Facility - is the facility code +// +// Code - is the facility's status code +// + +// +// Severity values +// + +#define SEVERITY_SUCCESS 0 +#define SEVERITY_ERROR 1 + + +// +// Generic test for success on any status value (non-negative numbers +// indicate success). +// + +#define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0) + +// +// and the inverse +// + +#define FAILED(hr) (((HRESULT)(hr)) < 0) + + +// +// Generic test for error on any status value. +// + +#define IS_ERROR(Status) (((unsigned long)(Status)) >> 31 == SEVERITY_ERROR) + +// +// Return the code +// + +#define HRESULT_CODE(hr) ((hr) & 0xFFFF) +#define SCODE_CODE(sc) ((sc) & 0xFFFF) + +// +// Return the facility +// + +#define HRESULT_FACILITY(hr) (((hr) >> 16) & 0x1fff) +#define SCODE_FACILITY(sc) (((sc) >> 16) & 0x1fff) + +// +// Return the severity +// + +#define HRESULT_SEVERITY(hr) (((hr) >> 31) & 0x1) +#define SCODE_SEVERITY(sc) (((sc) >> 31) & 0x1) + +// +// Create an HRESULT value from component pieces +// + +#define MAKE_HRESULT(sev,fac,code) \ + ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) ) +#define MAKE_SCODE(sev,fac,code) \ + ((SCODE) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) ) + + +// +// Map a WIN32 error value into a HRESULT +// Note: This assumes that WIN32 errors fall in the range -32k to 32k. +// +// Define bits here so macros are guaranteed to work + +#define FACILITY_NT_BIT 0x10000000 + +// +// HRESULT_FROM_WIN32(x) used to be a macro, however we now run it as an inline function +// to prevent double evaluation of 'x'. If you still need the macro, you can use __HRESULT_FROM_WIN32(x) +// +#define __HRESULT_FROM_WIN32(x) ((HRESULT)(x) <= 0 ? ((HRESULT)(x)) : ((HRESULT) (((x) & 0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000))) + +#if !defined(_HRESULT_DEFINED) && !defined(__midl) +#define _HRESULT_DEFINED +typedef _Return_type_success_(return >= 0) long HRESULT; +#endif + +#ifndef __midl +#if defined(__cplusplus) && _MSC_VER >= 1900 && !defined(SORTPP_PASS) +constexpr +#endif +FORCEINLINE _Translates_Win32_to_HRESULT_(x) HRESULT HRESULT_FROM_WIN32(unsigned long x) { return (HRESULT)(x) <= 0 ? (HRESULT)(x) : (HRESULT) (((x) & 0x0000FFFF) | (FACILITY_WIN32 << 16) | 0x80000000);} +#else +#define HRESULT_FROM_WIN32(x) __HRESULT_FROM_WIN32(x) +#endif + +// +// Map an NT status value into a HRESULT +// + +#define HRESULT_FROM_NT(x) ((HRESULT) ((x) | FACILITY_NT_BIT)) + + +// ****** OBSOLETE functions + +// HRESULT functions +// As noted above, these functions are obsolete and should not be used. + + +// Extract the SCODE from a HRESULT + +#define GetScode(hr) ((SCODE) (hr)) + +// Convert an SCODE into an HRESULT. + +#define ResultFromScode(sc) ((HRESULT) (sc)) + + +// PropagateResult is a noop +#define PropagateResult(hrPrevious, scBase) ((HRESULT) scBase) + + +// ****** End of OBSOLETE functions. + +#define E_NOT_SET HRESULT_FROM_WIN32(ERROR_NOT_FOUND) +#define E_NOT_VALID_STATE HRESULT_FROM_WIN32(ERROR_INVALID_STATE) +#define E_NOT_SUFFICIENT_BUFFER HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) +#define E_TIME_SENSITIVE_THREAD HRESULT_FROM_WIN32(ERROR_TIME_SENSITIVE_THREAD) +#define E_NO_TASK_QUEUE HRESULT_FROM_WIN32(ERROR_NO_TASK_QUEUE) + +// ---------------------- HRESULT value definitions ----------------- +// +// HRESULT definitions +// + +#ifdef RC_INVOKED +#define _HRESULT_TYPEDEF_(_sc) _sc +#else // RC_INVOKED +#define _HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc) +#endif // RC_INVOKED + +#define NOERROR 0 + +// +// Error definitions follow +// + +// +// Codes 0x4000-0x40ff are reserved for OLE +// +// +// Error codes +// +// +// MessageId: E_UNEXPECTED +// +// MessageText: +// +// Catastrophic failure +// +#define E_UNEXPECTED _HRESULT_TYPEDEF_(0x8000FFFFL) + +#if defined(_WIN32) && !defined(_MAC) +// +// MessageId: E_NOTIMPL +// +// MessageText: +// +// Not implemented +// +#define E_NOTIMPL _HRESULT_TYPEDEF_(0x80004001L) + +// +// MessageId: E_OUTOFMEMORY +// +// MessageText: +// +// Ran out of memory +// +#define E_OUTOFMEMORY _HRESULT_TYPEDEF_(0x8007000EL) + +// +// MessageId: E_INVALIDARG +// +// MessageText: +// +// One or more arguments are invalid +// +#define E_INVALIDARG _HRESULT_TYPEDEF_(0x80070057L) + +// +// MessageId: E_NOINTERFACE +// +// MessageText: +// +// No such interface supported +// +#define E_NOINTERFACE _HRESULT_TYPEDEF_(0x80004002L) + +// +// MessageId: E_POINTER +// +// MessageText: +// +// Invalid pointer +// +#define E_POINTER _HRESULT_TYPEDEF_(0x80004003L) + +// +// MessageId: E_HANDLE +// +// MessageText: +// +// Invalid handle +// +#define E_HANDLE _HRESULT_TYPEDEF_(0x80070006L) + +// +// MessageId: E_ABORT +// +// MessageText: +// +// Operation aborted +// +#define E_ABORT _HRESULT_TYPEDEF_(0x80004004L) + +// +// MessageId: E_FAIL +// +// MessageText: +// +// Unspecified error +// +#define E_FAIL _HRESULT_TYPEDEF_(0x80004005L) + +// +// MessageId: E_ACCESSDENIED +// +// MessageText: +// +// General access denied error +// +#define E_ACCESSDENIED _HRESULT_TYPEDEF_(0x80070005L) + +#else +// +// MessageId: E_NOTIMPL +// +// MessageText: +// +// Not implemented +// +#define E_NOTIMPL _HRESULT_TYPEDEF_(0x80000001L) + +// +// MessageId: E_OUTOFMEMORY +// +// MessageText: +// +// Ran out of memory +// +#define E_OUTOFMEMORY _HRESULT_TYPEDEF_(0x80000002L) + +// +// MessageId: E_INVALIDARG +// +// MessageText: +// +// One or more arguments are invalid +// +#define E_INVALIDARG _HRESULT_TYPEDEF_(0x80000003L) + +// +// MessageId: E_NOINTERFACE +// +// MessageText: +// +// No such interface supported +// +#define E_NOINTERFACE _HRESULT_TYPEDEF_(0x80000004L) + +// +// MessageId: E_POINTER +// +// MessageText: +// +// Invalid pointer +// +#define E_POINTER _HRESULT_TYPEDEF_(0x80000005L) + +// +// MessageId: E_HANDLE +// +// MessageText: +// +// Invalid handle +// +#define E_HANDLE _HRESULT_TYPEDEF_(0x80000006L) + +// +// MessageId: E_ABORT +// +// MessageText: +// +// Operation aborted +// +#define E_ABORT _HRESULT_TYPEDEF_(0x80000007L) + +// +// MessageId: E_FAIL +// +// MessageText: +// +// Unspecified error +// +#define E_FAIL _HRESULT_TYPEDEF_(0x80000008L) + +// +// MessageId: E_ACCESSDENIED +// +// MessageText: +// +// General access denied error +// +#define E_ACCESSDENIED _HRESULT_TYPEDEF_(0x80000009L) + +#endif //WIN32 +// +// MessageId: E_PENDING +// +// MessageText: +// +// The data necessary to complete this operation is not yet available. +// +#define E_PENDING _HRESULT_TYPEDEF_(0x8000000AL) + +// +// MessageId: E_BOUNDS +// +// MessageText: +// +// The operation attempted to access data outside the valid range +// +#define E_BOUNDS _HRESULT_TYPEDEF_(0x8000000BL) + +// +// MessageId: E_CHANGED_STATE +// +// MessageText: +// +// A concurrent or interleaved operation changed the state of the object, invalidating this operation. +// +#define E_CHANGED_STATE _HRESULT_TYPEDEF_(0x8000000CL) + +// +// MessageId: E_ILLEGAL_STATE_CHANGE +// +// MessageText: +// +// An illegal state change was requested. +// +#define E_ILLEGAL_STATE_CHANGE _HRESULT_TYPEDEF_(0x8000000DL) + +// +// MessageId: E_ILLEGAL_METHOD_CALL +// +// MessageText: +// +// A method was called at an unexpected time. +// +#define E_ILLEGAL_METHOD_CALL _HRESULT_TYPEDEF_(0x8000000EL) + +// +// MessageId: RO_E_METADATA_NAME_NOT_FOUND +// +// MessageText: +// +// Typename or Namespace was not found in metadata file. +// +#define RO_E_METADATA_NAME_NOT_FOUND _HRESULT_TYPEDEF_(0x8000000FL) + +// +// MessageId: RO_E_METADATA_NAME_IS_NAMESPACE +// +// MessageText: +// +// Name is an existing namespace rather than a typename. +// +#define RO_E_METADATA_NAME_IS_NAMESPACE _HRESULT_TYPEDEF_(0x80000010L) + +// +// MessageId: RO_E_METADATA_INVALID_TYPE_FORMAT +// +// MessageText: +// +// Typename has an invalid format. +// +#define RO_E_METADATA_INVALID_TYPE_FORMAT _HRESULT_TYPEDEF_(0x80000011L) + +// +// MessageId: RO_E_INVALID_METADATA_FILE +// +// MessageText: +// +// Metadata file is invalid or corrupted. +// +#define RO_E_INVALID_METADATA_FILE _HRESULT_TYPEDEF_(0x80000012L) + +// +// MessageId: RO_E_CLOSED +// +// MessageText: +// +// The object has been closed. +// +#define RO_E_CLOSED _HRESULT_TYPEDEF_(0x80000013L) + +// +// MessageId: RO_E_EXCLUSIVE_WRITE +// +// MessageText: +// +// Only one thread may access the object during a write operation. +// +#define RO_E_EXCLUSIVE_WRITE _HRESULT_TYPEDEF_(0x80000014L) + +// +// MessageId: RO_E_CHANGE_NOTIFICATION_IN_PROGRESS +// +// MessageText: +// +// Operation is prohibited during change notification. +// +#define RO_E_CHANGE_NOTIFICATION_IN_PROGRESS _HRESULT_TYPEDEF_(0x80000015L) + +// +// MessageId: RO_E_ERROR_STRING_NOT_FOUND +// +// MessageText: +// +// The text associated with this error code could not be found. +// +#define RO_E_ERROR_STRING_NOT_FOUND _HRESULT_TYPEDEF_(0x80000016L) + +// +// MessageId: E_STRING_NOT_NULL_TERMINATED +// +// MessageText: +// +// String not null terminated. +// +#define E_STRING_NOT_NULL_TERMINATED _HRESULT_TYPEDEF_(0x80000017L) + +// +// MessageId: E_ILLEGAL_DELEGATE_ASSIGNMENT +// +// MessageText: +// +// A delegate was assigned when not allowed. +// +#define E_ILLEGAL_DELEGATE_ASSIGNMENT _HRESULT_TYPEDEF_(0x80000018L) + +// +// MessageId: E_ASYNC_OPERATION_NOT_STARTED +// +// MessageText: +// +// An async operation was not properly started. +// +#define E_ASYNC_OPERATION_NOT_STARTED _HRESULT_TYPEDEF_(0x80000019L) + +// +// MessageId: E_APPLICATION_EXITING +// +// MessageText: +// +// The application is exiting and cannot service this request +// +#define E_APPLICATION_EXITING _HRESULT_TYPEDEF_(0x8000001AL) + +// +// MessageId: E_APPLICATION_VIEW_EXITING +// +// MessageText: +// +// The application view is exiting and cannot service this request +// +#define E_APPLICATION_VIEW_EXITING _HRESULT_TYPEDEF_(0x8000001BL) + +// +// MessageId: RO_E_MUST_BE_AGILE +// +// MessageText: +// +// The object must support the IAgileObject interface +// +#define RO_E_MUST_BE_AGILE _HRESULT_TYPEDEF_(0x8000001CL) + +// +// MessageId: RO_E_UNSUPPORTED_FROM_MTA +// +// MessageText: +// +// Activating a single-threaded class from MTA is not supported +// +#define RO_E_UNSUPPORTED_FROM_MTA _HRESULT_TYPEDEF_(0x8000001DL) + +// +// MessageId: RO_E_COMMITTED +// +// MessageText: +// +// The object has been committed. +// +#define RO_E_COMMITTED _HRESULT_TYPEDEF_(0x8000001EL) + +// +// MessageId: RO_E_BLOCKED_CROSS_ASTA_CALL +// +// MessageText: +// +// A COM call to an ASTA was blocked because the call chain originated in or passed through another ASTA. This call pattern is deadlock-prone and disallowed by apartment call control. +// +#define RO_E_BLOCKED_CROSS_ASTA_CALL _HRESULT_TYPEDEF_(0x8000001FL) + +// +// MessageId: RO_E_CANNOT_ACTIVATE_FULL_TRUST_SERVER +// +// MessageText: +// +// A universal application process cannot activate a packaged WinRT server that is declared to run full trust. +// +#define RO_E_CANNOT_ACTIVATE_FULL_TRUST_SERVER _HRESULT_TYPEDEF_(0x80000020L) + +// +// MessageId: RO_E_CANNOT_ACTIVATE_UNIVERSAL_APPLICATION_SERVER +// +// MessageText: +// +// A full trust packaged application process cannot activate a packaged WinRT server unless it is also declared to run full trust. +// +#define RO_E_CANNOT_ACTIVATE_UNIVERSAL_APPLICATION_SERVER _HRESULT_TYPEDEF_(0x80000021L) + +// +// MessageId: CO_E_INIT_TLS +// +// MessageText: +// +// Thread local storage failure +// +#define CO_E_INIT_TLS _HRESULT_TYPEDEF_(0x80004006L) + +// +// MessageId: CO_E_INIT_SHARED_ALLOCATOR +// +// MessageText: +// +// Get shared memory allocator failure +// +#define CO_E_INIT_SHARED_ALLOCATOR _HRESULT_TYPEDEF_(0x80004007L) + +// +// MessageId: CO_E_INIT_MEMORY_ALLOCATOR +// +// MessageText: +// +// Get memory allocator failure +// +#define CO_E_INIT_MEMORY_ALLOCATOR _HRESULT_TYPEDEF_(0x80004008L) + +// +// MessageId: CO_E_INIT_CLASS_CACHE +// +// MessageText: +// +// Unable to initialize class cache +// +#define CO_E_INIT_CLASS_CACHE _HRESULT_TYPEDEF_(0x80004009L) + +// +// MessageId: CO_E_INIT_RPC_CHANNEL +// +// MessageText: +// +// Unable to initialize RPC services +// +#define CO_E_INIT_RPC_CHANNEL _HRESULT_TYPEDEF_(0x8000400AL) + +// +// MessageId: CO_E_INIT_TLS_SET_CHANNEL_CONTROL +// +// MessageText: +// +// Cannot set thread local storage channel control +// +#define CO_E_INIT_TLS_SET_CHANNEL_CONTROL _HRESULT_TYPEDEF_(0x8000400BL) + +// +// MessageId: CO_E_INIT_TLS_CHANNEL_CONTROL +// +// MessageText: +// +// Could not allocate thread local storage channel control +// +#define CO_E_INIT_TLS_CHANNEL_CONTROL _HRESULT_TYPEDEF_(0x8000400CL) + +// +// MessageId: CO_E_INIT_UNACCEPTED_USER_ALLOCATOR +// +// MessageText: +// +// The user supplied memory allocator is unacceptable +// +#define CO_E_INIT_UNACCEPTED_USER_ALLOCATOR _HRESULT_TYPEDEF_(0x8000400DL) + +// +// MessageId: CO_E_INIT_SCM_MUTEX_EXISTS +// +// MessageText: +// +// The OLE service mutex already exists +// +#define CO_E_INIT_SCM_MUTEX_EXISTS _HRESULT_TYPEDEF_(0x8000400EL) + +// +// MessageId: CO_E_INIT_SCM_FILE_MAPPING_EXISTS +// +// MessageText: +// +// The OLE service file mapping already exists +// +#define CO_E_INIT_SCM_FILE_MAPPING_EXISTS _HRESULT_TYPEDEF_(0x8000400FL) + +// +// MessageId: CO_E_INIT_SCM_MAP_VIEW_OF_FILE +// +// MessageText: +// +// Unable to map view of file for OLE service +// +#define CO_E_INIT_SCM_MAP_VIEW_OF_FILE _HRESULT_TYPEDEF_(0x80004010L) + +// +// MessageId: CO_E_INIT_SCM_EXEC_FAILURE +// +// MessageText: +// +// Failure attempting to launch OLE service +// +#define CO_E_INIT_SCM_EXEC_FAILURE _HRESULT_TYPEDEF_(0x80004011L) + +// +// MessageId: CO_E_INIT_ONLY_SINGLE_THREADED +// +// MessageText: +// +// There was an attempt to call CoInitialize a second time while single threaded +// +#define CO_E_INIT_ONLY_SINGLE_THREADED _HRESULT_TYPEDEF_(0x80004012L) + +// +// MessageId: CO_E_CANT_REMOTE +// +// MessageText: +// +// A Remote activation was necessary but was not allowed +// +#define CO_E_CANT_REMOTE _HRESULT_TYPEDEF_(0x80004013L) + +// +// MessageId: CO_E_BAD_SERVER_NAME +// +// MessageText: +// +// A Remote activation was necessary but the server name provided was invalid +// +#define CO_E_BAD_SERVER_NAME _HRESULT_TYPEDEF_(0x80004014L) + +// +// MessageId: CO_E_WRONG_SERVER_IDENTITY +// +// MessageText: +// +// The class is configured to run as a security id different from the caller +// +#define CO_E_WRONG_SERVER_IDENTITY _HRESULT_TYPEDEF_(0x80004015L) + +// +// MessageId: CO_E_OLE1DDE_DISABLED +// +// MessageText: +// +// Use of Ole1 services requiring DDE windows is disabled +// +#define CO_E_OLE1DDE_DISABLED _HRESULT_TYPEDEF_(0x80004016L) + +// +// MessageId: CO_E_RUNAS_SYNTAX +// +// MessageText: +// +// A RunAs specification must be \ or simply +// +#define CO_E_RUNAS_SYNTAX _HRESULT_TYPEDEF_(0x80004017L) + +// +// MessageId: CO_E_CREATEPROCESS_FAILURE +// +// MessageText: +// +// The server process could not be started. The pathname may be incorrect. +// +#define CO_E_CREATEPROCESS_FAILURE _HRESULT_TYPEDEF_(0x80004018L) + +// +// MessageId: CO_E_RUNAS_CREATEPROCESS_FAILURE +// +// MessageText: +// +// The server process could not be started as the configured identity. The pathname may be incorrect or unavailable. +// +#define CO_E_RUNAS_CREATEPROCESS_FAILURE _HRESULT_TYPEDEF_(0x80004019L) + +// +// MessageId: CO_E_RUNAS_LOGON_FAILURE +// +// MessageText: +// +// The server process could not be started because the configured identity is incorrect. Check the username and password. +// +#define CO_E_RUNAS_LOGON_FAILURE _HRESULT_TYPEDEF_(0x8000401AL) + +// +// MessageId: CO_E_LAUNCH_PERMSSION_DENIED +// +// MessageText: +// +// The client is not allowed to launch this server. +// +#define CO_E_LAUNCH_PERMSSION_DENIED _HRESULT_TYPEDEF_(0x8000401BL) + +// +// MessageId: CO_E_START_SERVICE_FAILURE +// +// MessageText: +// +// The service providing this server could not be started. +// +#define CO_E_START_SERVICE_FAILURE _HRESULT_TYPEDEF_(0x8000401CL) + +// +// MessageId: CO_E_REMOTE_COMMUNICATION_FAILURE +// +// MessageText: +// +// This computer was unable to communicate with the computer providing the server. +// +#define CO_E_REMOTE_COMMUNICATION_FAILURE _HRESULT_TYPEDEF_(0x8000401DL) + +// +// MessageId: CO_E_SERVER_START_TIMEOUT +// +// MessageText: +// +// The server did not respond after being launched. +// +#define CO_E_SERVER_START_TIMEOUT _HRESULT_TYPEDEF_(0x8000401EL) + +// +// MessageId: CO_E_CLSREG_INCONSISTENT +// +// MessageText: +// +// The registration information for this server is inconsistent or incomplete. +// +#define CO_E_CLSREG_INCONSISTENT _HRESULT_TYPEDEF_(0x8000401FL) + +// +// MessageId: CO_E_IIDREG_INCONSISTENT +// +// MessageText: +// +// The registration information for this interface is inconsistent or incomplete. +// +#define CO_E_IIDREG_INCONSISTENT _HRESULT_TYPEDEF_(0x80004020L) + +// +// MessageId: CO_E_NOT_SUPPORTED +// +// MessageText: +// +// The operation attempted is not supported. +// +#define CO_E_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80004021L) + +// +// MessageId: CO_E_RELOAD_DLL +// +// MessageText: +// +// A dll must be loaded. +// +#define CO_E_RELOAD_DLL _HRESULT_TYPEDEF_(0x80004022L) + +// +// MessageId: CO_E_MSI_ERROR +// +// MessageText: +// +// A Microsoft Software Installer error was encountered. +// +#define CO_E_MSI_ERROR _HRESULT_TYPEDEF_(0x80004023L) + +// +// MessageId: CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT +// +// MessageText: +// +// The specified activation could not occur in the client context as specified. +// +#define CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT _HRESULT_TYPEDEF_(0x80004024L) + +// +// MessageId: CO_E_SERVER_PAUSED +// +// MessageText: +// +// Activations on the server are paused. +// +#define CO_E_SERVER_PAUSED _HRESULT_TYPEDEF_(0x80004025L) + +// +// MessageId: CO_E_SERVER_NOT_PAUSED +// +// MessageText: +// +// Activations on the server are not paused. +// +#define CO_E_SERVER_NOT_PAUSED _HRESULT_TYPEDEF_(0x80004026L) + +// +// MessageId: CO_E_CLASS_DISABLED +// +// MessageText: +// +// The component or application containing the component has been disabled. +// +#define CO_E_CLASS_DISABLED _HRESULT_TYPEDEF_(0x80004027L) + +// +// MessageId: CO_E_CLRNOTAVAILABLE +// +// MessageText: +// +// The common language runtime is not available +// +#define CO_E_CLRNOTAVAILABLE _HRESULT_TYPEDEF_(0x80004028L) + +// +// MessageId: CO_E_ASYNC_WORK_REJECTED +// +// MessageText: +// +// The thread-pool rejected the submitted asynchronous work. +// +#define CO_E_ASYNC_WORK_REJECTED _HRESULT_TYPEDEF_(0x80004029L) + +// +// MessageId: CO_E_SERVER_INIT_TIMEOUT +// +// MessageText: +// +// The server started, but did not finish initializing in a timely fashion. +// +#define CO_E_SERVER_INIT_TIMEOUT _HRESULT_TYPEDEF_(0x8000402AL) + +// +// MessageId: CO_E_NO_SECCTX_IN_ACTIVATE +// +// MessageText: +// +// Unable to complete the call since there is no COM+ security context inside IObjectControl.Activate. +// +#define CO_E_NO_SECCTX_IN_ACTIVATE _HRESULT_TYPEDEF_(0x8000402BL) + +// +// MessageId: CO_E_TRACKER_CONFIG +// +// MessageText: +// +// The provided tracker configuration is invalid +// +#define CO_E_TRACKER_CONFIG _HRESULT_TYPEDEF_(0x80004030L) + +// +// MessageId: CO_E_THREADPOOL_CONFIG +// +// MessageText: +// +// The provided thread pool configuration is invalid +// +#define CO_E_THREADPOOL_CONFIG _HRESULT_TYPEDEF_(0x80004031L) + +// +// MessageId: CO_E_SXS_CONFIG +// +// MessageText: +// +// The provided side-by-side configuration is invalid +// +#define CO_E_SXS_CONFIG _HRESULT_TYPEDEF_(0x80004032L) + +// +// MessageId: CO_E_MALFORMED_SPN +// +// MessageText: +// +// The server principal name (SPN) obtained during security negotiation is malformed. +// +#define CO_E_MALFORMED_SPN _HRESULT_TYPEDEF_(0x80004033L) + +// +// MessageId: CO_E_UNREVOKED_REGISTRATION_ON_APARTMENT_SHUTDOWN +// +// MessageText: +// +// The caller failed to revoke a per-apartment registration before apartment shutdown. +// +#define CO_E_UNREVOKED_REGISTRATION_ON_APARTMENT_SHUTDOWN _HRESULT_TYPEDEF_(0x80004034L) + +// +// MessageId: CO_E_PREMATURE_STUB_RUNDOWN +// +// MessageText: +// +// The object has been rundown by the stub manager while there are external clients. +// +#define CO_E_PREMATURE_STUB_RUNDOWN _HRESULT_TYPEDEF_(0x80004035L) + + +// +// Success codes +// +#define S_OK ((HRESULT)0L) +#define S_FALSE ((HRESULT)1L) + +// ****************** +// FACILITY_ITF +// ****************** + +// +// Codes 0x0-0x01ff are reserved for the OLE group of +// interfaces. +// + + +// +// Generic OLE errors that may be returned by many interfaces +// + +#define OLE_E_FIRST ((HRESULT)0x80040000L) +#define OLE_E_LAST ((HRESULT)0x800400FFL) +#define OLE_S_FIRST ((HRESULT)0x00040000L) +#define OLE_S_LAST ((HRESULT)0x000400FFL) + +// +// Old OLE errors +// +// +// MessageId: OLE_E_OLEVERB +// +// MessageText: +// +// Invalid OLEVERB structure +// +#define OLE_E_OLEVERB _HRESULT_TYPEDEF_(0x80040000L) + +// +// MessageId: OLE_E_ADVF +// +// MessageText: +// +// Invalid advise flags +// +#define OLE_E_ADVF _HRESULT_TYPEDEF_(0x80040001L) + +// +// MessageId: OLE_E_ENUM_NOMORE +// +// MessageText: +// +// Can't enumerate any more, because the associated data is missing +// +#define OLE_E_ENUM_NOMORE _HRESULT_TYPEDEF_(0x80040002L) + +// +// MessageId: OLE_E_ADVISENOTSUPPORTED +// +// MessageText: +// +// This implementation doesn't take advises +// +#define OLE_E_ADVISENOTSUPPORTED _HRESULT_TYPEDEF_(0x80040003L) + +// +// MessageId: OLE_E_NOCONNECTION +// +// MessageText: +// +// There is no connection for this connection ID +// +#define OLE_E_NOCONNECTION _HRESULT_TYPEDEF_(0x80040004L) + +// +// MessageId: OLE_E_NOTRUNNING +// +// MessageText: +// +// Need to run the object to perform this operation +// +#define OLE_E_NOTRUNNING _HRESULT_TYPEDEF_(0x80040005L) + +// +// MessageId: OLE_E_NOCACHE +// +// MessageText: +// +// There is no cache to operate on +// +#define OLE_E_NOCACHE _HRESULT_TYPEDEF_(0x80040006L) + +// +// MessageId: OLE_E_BLANK +// +// MessageText: +// +// Uninitialized object +// +#define OLE_E_BLANK _HRESULT_TYPEDEF_(0x80040007L) + +// +// MessageId: OLE_E_CLASSDIFF +// +// MessageText: +// +// Linked object's source class has changed +// +#define OLE_E_CLASSDIFF _HRESULT_TYPEDEF_(0x80040008L) + +// +// MessageId: OLE_E_CANT_GETMONIKER +// +// MessageText: +// +// Not able to get the moniker of the object +// +#define OLE_E_CANT_GETMONIKER _HRESULT_TYPEDEF_(0x80040009L) + +// +// MessageId: OLE_E_CANT_BINDTOSOURCE +// +// MessageText: +// +// Not able to bind to the source +// +#define OLE_E_CANT_BINDTOSOURCE _HRESULT_TYPEDEF_(0x8004000AL) + +// +// MessageId: OLE_E_STATIC +// +// MessageText: +// +// Object is static; operation not allowed +// +#define OLE_E_STATIC _HRESULT_TYPEDEF_(0x8004000BL) + +// +// MessageId: OLE_E_PROMPTSAVECANCELLED +// +// MessageText: +// +// User canceled out of save dialog +// +#define OLE_E_PROMPTSAVECANCELLED _HRESULT_TYPEDEF_(0x8004000CL) + +// +// MessageId: OLE_E_INVALIDRECT +// +// MessageText: +// +// Invalid rectangle +// +#define OLE_E_INVALIDRECT _HRESULT_TYPEDEF_(0x8004000DL) + +// +// MessageId: OLE_E_WRONGCOMPOBJ +// +// MessageText: +// +// compobj.dll is too old for the ole2.dll initialized +// +#define OLE_E_WRONGCOMPOBJ _HRESULT_TYPEDEF_(0x8004000EL) + +// +// MessageId: OLE_E_INVALIDHWND +// +// MessageText: +// +// Invalid window handle +// +#define OLE_E_INVALIDHWND _HRESULT_TYPEDEF_(0x8004000FL) + +// +// MessageId: OLE_E_NOT_INPLACEACTIVE +// +// MessageText: +// +// Object is not in any of the inplace active states +// +#define OLE_E_NOT_INPLACEACTIVE _HRESULT_TYPEDEF_(0x80040010L) + +// +// MessageId: OLE_E_CANTCONVERT +// +// MessageText: +// +// Not able to convert object +// +#define OLE_E_CANTCONVERT _HRESULT_TYPEDEF_(0x80040011L) + +// +// MessageId: OLE_E_NOSTORAGE +// +// MessageText: +// +// Not able to perform the operation because object is not given storage yet +// +#define OLE_E_NOSTORAGE _HRESULT_TYPEDEF_(0x80040012L) + +// +// MessageId: DV_E_FORMATETC +// +// MessageText: +// +// Invalid FORMATETC structure +// +#define DV_E_FORMATETC _HRESULT_TYPEDEF_(0x80040064L) + +// +// MessageId: DV_E_DVTARGETDEVICE +// +// MessageText: +// +// Invalid DVTARGETDEVICE structure +// +#define DV_E_DVTARGETDEVICE _HRESULT_TYPEDEF_(0x80040065L) + +// +// MessageId: DV_E_STGMEDIUM +// +// MessageText: +// +// Invalid STDGMEDIUM structure +// +#define DV_E_STGMEDIUM _HRESULT_TYPEDEF_(0x80040066L) + +// +// MessageId: DV_E_STATDATA +// +// MessageText: +// +// Invalid STATDATA structure +// +#define DV_E_STATDATA _HRESULT_TYPEDEF_(0x80040067L) + +// +// MessageId: DV_E_LINDEX +// +// MessageText: +// +// Invalid lindex +// +#define DV_E_LINDEX _HRESULT_TYPEDEF_(0x80040068L) + +// +// MessageId: DV_E_TYMED +// +// MessageText: +// +// Invalid tymed +// +#define DV_E_TYMED _HRESULT_TYPEDEF_(0x80040069L) + +// +// MessageId: DV_E_CLIPFORMAT +// +// MessageText: +// +// Invalid clipboard format +// +#define DV_E_CLIPFORMAT _HRESULT_TYPEDEF_(0x8004006AL) + +// +// MessageId: DV_E_DVASPECT +// +// MessageText: +// +// Invalid aspect(s) +// +#define DV_E_DVASPECT _HRESULT_TYPEDEF_(0x8004006BL) + +// +// MessageId: DV_E_DVTARGETDEVICE_SIZE +// +// MessageText: +// +// tdSize parameter of the DVTARGETDEVICE structure is invalid +// +#define DV_E_DVTARGETDEVICE_SIZE _HRESULT_TYPEDEF_(0x8004006CL) + +// +// MessageId: DV_E_NOIVIEWOBJECT +// +// MessageText: +// +// Object doesn't support IViewObject interface +// +#define DV_E_NOIVIEWOBJECT _HRESULT_TYPEDEF_(0x8004006DL) + +#define DRAGDROP_E_FIRST 0x80040100L +#define DRAGDROP_E_LAST 0x8004010FL +#define DRAGDROP_S_FIRST 0x00040100L +#define DRAGDROP_S_LAST 0x0004010FL +// +// MessageId: DRAGDROP_E_NOTREGISTERED +// +// MessageText: +// +// Trying to revoke a drop target that has not been registered +// +#define DRAGDROP_E_NOTREGISTERED _HRESULT_TYPEDEF_(0x80040100L) + +// +// MessageId: DRAGDROP_E_ALREADYREGISTERED +// +// MessageText: +// +// This window has already been registered as a drop target +// +#define DRAGDROP_E_ALREADYREGISTERED _HRESULT_TYPEDEF_(0x80040101L) + +// +// MessageId: DRAGDROP_E_INVALIDHWND +// +// MessageText: +// +// Invalid window handle +// +#define DRAGDROP_E_INVALIDHWND _HRESULT_TYPEDEF_(0x80040102L) + +// +// MessageId: DRAGDROP_E_CONCURRENT_DRAG_ATTEMPTED +// +// MessageText: +// +// A drag operation is already in progress +// +#define DRAGDROP_E_CONCURRENT_DRAG_ATTEMPTED _HRESULT_TYPEDEF_(0x80040103L) + +#define CLASSFACTORY_E_FIRST 0x80040110L +#define CLASSFACTORY_E_LAST 0x8004011FL +#define CLASSFACTORY_S_FIRST 0x00040110L +#define CLASSFACTORY_S_LAST 0x0004011FL +// +// MessageId: CLASS_E_NOAGGREGATION +// +// MessageText: +// +// Class does not support aggregation (or class object is remote) +// +#define CLASS_E_NOAGGREGATION _HRESULT_TYPEDEF_(0x80040110L) + +// +// MessageId: CLASS_E_CLASSNOTAVAILABLE +// +// MessageText: +// +// ClassFactory cannot supply requested class +// +#define CLASS_E_CLASSNOTAVAILABLE _HRESULT_TYPEDEF_(0x80040111L) + +// +// MessageId: CLASS_E_NOTLICENSED +// +// MessageText: +// +// Class is not licensed for use +// +#define CLASS_E_NOTLICENSED _HRESULT_TYPEDEF_(0x80040112L) + +#define MARSHAL_E_FIRST 0x80040120L +#define MARSHAL_E_LAST 0x8004012FL +#define MARSHAL_S_FIRST 0x00040120L +#define MARSHAL_S_LAST 0x0004012FL +#define DATA_E_FIRST 0x80040130L +#define DATA_E_LAST 0x8004013FL +#define DATA_S_FIRST 0x00040130L +#define DATA_S_LAST 0x0004013FL +#define VIEW_E_FIRST 0x80040140L +#define VIEW_E_LAST 0x8004014FL +#define VIEW_S_FIRST 0x00040140L +#define VIEW_S_LAST 0x0004014FL +// +// MessageId: VIEW_E_DRAW +// +// MessageText: +// +// Error drawing view +// +#define VIEW_E_DRAW _HRESULT_TYPEDEF_(0x80040140L) + +#define REGDB_E_FIRST 0x80040150L +#define REGDB_E_LAST 0x8004015FL +#define REGDB_S_FIRST 0x00040150L +#define REGDB_S_LAST 0x0004015FL +// +// MessageId: REGDB_E_READREGDB +// +// MessageText: +// +// Could not read key from registry +// +#define REGDB_E_READREGDB _HRESULT_TYPEDEF_(0x80040150L) + +// +// MessageId: REGDB_E_WRITEREGDB +// +// MessageText: +// +// Could not write key to registry +// +#define REGDB_E_WRITEREGDB _HRESULT_TYPEDEF_(0x80040151L) + +// +// MessageId: REGDB_E_KEYMISSING +// +// MessageText: +// +// Could not find the key in the registry +// +#define REGDB_E_KEYMISSING _HRESULT_TYPEDEF_(0x80040152L) + +// +// MessageId: REGDB_E_INVALIDVALUE +// +// MessageText: +// +// Invalid value for registry +// +#define REGDB_E_INVALIDVALUE _HRESULT_TYPEDEF_(0x80040153L) + +// +// MessageId: REGDB_E_CLASSNOTREG +// +// MessageText: +// +// Class not registered +// +#define REGDB_E_CLASSNOTREG _HRESULT_TYPEDEF_(0x80040154L) + +// +// MessageId: REGDB_E_IIDNOTREG +// +// MessageText: +// +// Interface not registered +// +#define REGDB_E_IIDNOTREG _HRESULT_TYPEDEF_(0x80040155L) + +// +// MessageId: REGDB_E_BADTHREADINGMODEL +// +// MessageText: +// +// Threading model entry is not valid +// +#define REGDB_E_BADTHREADINGMODEL _HRESULT_TYPEDEF_(0x80040156L) + +// +// MessageId: REGDB_E_PACKAGEPOLICYVIOLATION +// +// MessageText: +// +// A registration in a package violates package-specific policies +// +#define REGDB_E_PACKAGEPOLICYVIOLATION _HRESULT_TYPEDEF_(0x80040157L) + +#define CAT_E_FIRST 0x80040160L +#define CAT_E_LAST 0x80040161L +// +// MessageId: CAT_E_CATIDNOEXIST +// +// MessageText: +// +// CATID does not exist +// +#define CAT_E_CATIDNOEXIST _HRESULT_TYPEDEF_(0x80040160L) + +// +// MessageId: CAT_E_NODESCRIPTION +// +// MessageText: +// +// Description not found +// +#define CAT_E_NODESCRIPTION _HRESULT_TYPEDEF_(0x80040161L) + +//////////////////////////////////// +// // +// Class Store Error Codes // +// // +//////////////////////////////////// +#define CS_E_FIRST 0x80040164L +#define CS_E_LAST 0x8004016FL +// +// MessageId: CS_E_PACKAGE_NOTFOUND +// +// MessageText: +// +// No package in the software installation data in the Active Directory meets this criteria. +// +#define CS_E_PACKAGE_NOTFOUND _HRESULT_TYPEDEF_(0x80040164L) + +// +// MessageId: CS_E_NOT_DELETABLE +// +// MessageText: +// +// Deleting this will break the referential integrity of the software installation data in the Active Directory. +// +#define CS_E_NOT_DELETABLE _HRESULT_TYPEDEF_(0x80040165L) + +// +// MessageId: CS_E_CLASS_NOTFOUND +// +// MessageText: +// +// The CLSID was not found in the software installation data in the Active Directory. +// +#define CS_E_CLASS_NOTFOUND _HRESULT_TYPEDEF_(0x80040166L) + +// +// MessageId: CS_E_INVALID_VERSION +// +// MessageText: +// +// The software installation data in the Active Directory is corrupt. +// +#define CS_E_INVALID_VERSION _HRESULT_TYPEDEF_(0x80040167L) + +// +// MessageId: CS_E_NO_CLASSSTORE +// +// MessageText: +// +// There is no software installation data in the Active Directory. +// +#define CS_E_NO_CLASSSTORE _HRESULT_TYPEDEF_(0x80040168L) + +// +// MessageId: CS_E_OBJECT_NOTFOUND +// +// MessageText: +// +// There is no software installation data object in the Active Directory. +// +#define CS_E_OBJECT_NOTFOUND _HRESULT_TYPEDEF_(0x80040169L) + +// +// MessageId: CS_E_OBJECT_ALREADY_EXISTS +// +// MessageText: +// +// The software installation data object in the Active Directory already exists. +// +#define CS_E_OBJECT_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x8004016AL) + +// +// MessageId: CS_E_INVALID_PATH +// +// MessageText: +// +// The path to the software installation data in the Active Directory is not correct. +// +#define CS_E_INVALID_PATH _HRESULT_TYPEDEF_(0x8004016BL) + +// +// MessageId: CS_E_NETWORK_ERROR +// +// MessageText: +// +// A network error interrupted the operation. +// +#define CS_E_NETWORK_ERROR _HRESULT_TYPEDEF_(0x8004016CL) + +// +// MessageId: CS_E_ADMIN_LIMIT_EXCEEDED +// +// MessageText: +// +// The size of this object exceeds the maximum size set by the Administrator. +// +#define CS_E_ADMIN_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0x8004016DL) + +// +// MessageId: CS_E_SCHEMA_MISMATCH +// +// MessageText: +// +// The schema for the software installation data in the Active Directory does not match the required schema. +// +#define CS_E_SCHEMA_MISMATCH _HRESULT_TYPEDEF_(0x8004016EL) + +// +// MessageId: CS_E_INTERNAL_ERROR +// +// MessageText: +// +// An error occurred in the software installation data in the Active Directory. +// +#define CS_E_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x8004016FL) + +#define CACHE_E_FIRST 0x80040170L +#define CACHE_E_LAST 0x8004017FL +#define CACHE_S_FIRST 0x00040170L +#define CACHE_S_LAST 0x0004017FL +// +// MessageId: CACHE_E_NOCACHE_UPDATED +// +// MessageText: +// +// Cache not updated +// +#define CACHE_E_NOCACHE_UPDATED _HRESULT_TYPEDEF_(0x80040170L) + +#define OLEOBJ_E_FIRST 0x80040180L +#define OLEOBJ_E_LAST 0x8004018FL +#define OLEOBJ_S_FIRST 0x00040180L +#define OLEOBJ_S_LAST 0x0004018FL +// +// MessageId: OLEOBJ_E_NOVERBS +// +// MessageText: +// +// No verbs for OLE object +// +#define OLEOBJ_E_NOVERBS _HRESULT_TYPEDEF_(0x80040180L) + +// +// MessageId: OLEOBJ_E_INVALIDVERB +// +// MessageText: +// +// Invalid verb for OLE object +// +#define OLEOBJ_E_INVALIDVERB _HRESULT_TYPEDEF_(0x80040181L) + +#define CLIENTSITE_E_FIRST 0x80040190L +#define CLIENTSITE_E_LAST 0x8004019FL +#define CLIENTSITE_S_FIRST 0x00040190L +#define CLIENTSITE_S_LAST 0x0004019FL +// +// MessageId: INPLACE_E_NOTUNDOABLE +// +// MessageText: +// +// Undo is not available +// +#define INPLACE_E_NOTUNDOABLE _HRESULT_TYPEDEF_(0x800401A0L) + +// +// MessageId: INPLACE_E_NOTOOLSPACE +// +// MessageText: +// +// Space for tools is not available +// +#define INPLACE_E_NOTOOLSPACE _HRESULT_TYPEDEF_(0x800401A1L) + +#define INPLACE_E_FIRST 0x800401A0L +#define INPLACE_E_LAST 0x800401AFL +#define INPLACE_S_FIRST 0x000401A0L +#define INPLACE_S_LAST 0x000401AFL +#define ENUM_E_FIRST 0x800401B0L +#define ENUM_E_LAST 0x800401BFL +#define ENUM_S_FIRST 0x000401B0L +#define ENUM_S_LAST 0x000401BFL +#define CONVERT10_E_FIRST 0x800401C0L +#define CONVERT10_E_LAST 0x800401CFL +#define CONVERT10_S_FIRST 0x000401C0L +#define CONVERT10_S_LAST 0x000401CFL +// +// MessageId: CONVERT10_E_OLESTREAM_GET +// +// MessageText: +// +// OLESTREAM Get method failed +// +#define CONVERT10_E_OLESTREAM_GET _HRESULT_TYPEDEF_(0x800401C0L) + +// +// MessageId: CONVERT10_E_OLESTREAM_PUT +// +// MessageText: +// +// OLESTREAM Put method failed +// +#define CONVERT10_E_OLESTREAM_PUT _HRESULT_TYPEDEF_(0x800401C1L) + +// +// MessageId: CONVERT10_E_OLESTREAM_FMT +// +// MessageText: +// +// Contents of the OLESTREAM not in correct format +// +#define CONVERT10_E_OLESTREAM_FMT _HRESULT_TYPEDEF_(0x800401C2L) + +// +// MessageId: CONVERT10_E_OLESTREAM_BITMAP_TO_DIB +// +// MessageText: +// +// There was an error in a Windows GDI call while converting the bitmap to a DIB +// +#define CONVERT10_E_OLESTREAM_BITMAP_TO_DIB _HRESULT_TYPEDEF_(0x800401C3L) + +// +// MessageId: CONVERT10_E_STG_FMT +// +// MessageText: +// +// Contents of the IStorage not in correct format +// +#define CONVERT10_E_STG_FMT _HRESULT_TYPEDEF_(0x800401C4L) + +// +// MessageId: CONVERT10_E_STG_NO_STD_STREAM +// +// MessageText: +// +// Contents of IStorage is missing one of the standard streams +// +#define CONVERT10_E_STG_NO_STD_STREAM _HRESULT_TYPEDEF_(0x800401C5L) + +// +// MessageId: CONVERT10_E_STG_DIB_TO_BITMAP +// +// MessageText: +// +// There was an error in a Windows GDI call while converting the DIB to a bitmap. +// +#define CONVERT10_E_STG_DIB_TO_BITMAP _HRESULT_TYPEDEF_(0x800401C6L) + +// +// MessageId: CONVERT10_E_OLELINK_DISABLED +// +// MessageText: +// +// OLE Links in OLESTREAM are disabled while converting the OLESTREAM to IStorage +// +#define CONVERT10_E_OLELINK_DISABLED _HRESULT_TYPEDEF_(0x800401C7L) + +#define CLIPBRD_E_FIRST 0x800401D0L +#define CLIPBRD_E_LAST 0x800401DFL +#define CLIPBRD_S_FIRST 0x000401D0L +#define CLIPBRD_S_LAST 0x000401DFL +// +// MessageId: CLIPBRD_E_CANT_OPEN +// +// MessageText: +// +// OpenClipboard Failed +// +#define CLIPBRD_E_CANT_OPEN _HRESULT_TYPEDEF_(0x800401D0L) + +// +// MessageId: CLIPBRD_E_CANT_EMPTY +// +// MessageText: +// +// EmptyClipboard Failed +// +#define CLIPBRD_E_CANT_EMPTY _HRESULT_TYPEDEF_(0x800401D1L) + +// +// MessageId: CLIPBRD_E_CANT_SET +// +// MessageText: +// +// SetClipboard Failed +// +#define CLIPBRD_E_CANT_SET _HRESULT_TYPEDEF_(0x800401D2L) + +// +// MessageId: CLIPBRD_E_BAD_DATA +// +// MessageText: +// +// Data on clipboard is invalid +// +#define CLIPBRD_E_BAD_DATA _HRESULT_TYPEDEF_(0x800401D3L) + +// +// MessageId: CLIPBRD_E_CANT_CLOSE +// +// MessageText: +// +// CloseClipboard Failed +// +#define CLIPBRD_E_CANT_CLOSE _HRESULT_TYPEDEF_(0x800401D4L) + +#define MK_E_FIRST 0x800401E0L +#define MK_E_LAST 0x800401EFL +#define MK_S_FIRST 0x000401E0L +#define MK_S_LAST 0x000401EFL +// +// MessageId: MK_E_CONNECTMANUALLY +// +// MessageText: +// +// Moniker needs to be connected manually +// +#define MK_E_CONNECTMANUALLY _HRESULT_TYPEDEF_(0x800401E0L) + +// +// MessageId: MK_E_EXCEEDEDDEADLINE +// +// MessageText: +// +// Operation exceeded deadline +// +#define MK_E_EXCEEDEDDEADLINE _HRESULT_TYPEDEF_(0x800401E1L) + +// +// MessageId: MK_E_NEEDGENERIC +// +// MessageText: +// +// Moniker needs to be generic +// +#define MK_E_NEEDGENERIC _HRESULT_TYPEDEF_(0x800401E2L) + +// +// MessageId: MK_E_UNAVAILABLE +// +// MessageText: +// +// Operation unavailable +// +#define MK_E_UNAVAILABLE _HRESULT_TYPEDEF_(0x800401E3L) + +// +// MessageId: MK_E_SYNTAX +// +// MessageText: +// +// Invalid syntax +// +#define MK_E_SYNTAX _HRESULT_TYPEDEF_(0x800401E4L) + +// +// MessageId: MK_E_NOOBJECT +// +// MessageText: +// +// No object for moniker +// +#define MK_E_NOOBJECT _HRESULT_TYPEDEF_(0x800401E5L) + +// +// MessageId: MK_E_INVALIDEXTENSION +// +// MessageText: +// +// Bad extension for file +// +#define MK_E_INVALIDEXTENSION _HRESULT_TYPEDEF_(0x800401E6L) + +// +// MessageId: MK_E_INTERMEDIATEINTERFACENOTSUPPORTED +// +// MessageText: +// +// Intermediate operation failed +// +#define MK_E_INTERMEDIATEINTERFACENOTSUPPORTED _HRESULT_TYPEDEF_(0x800401E7L) + +// +// MessageId: MK_E_NOTBINDABLE +// +// MessageText: +// +// Moniker is not bindable +// +#define MK_E_NOTBINDABLE _HRESULT_TYPEDEF_(0x800401E8L) + +// +// MessageId: MK_E_NOTBOUND +// +// MessageText: +// +// Moniker is not bound +// +#define MK_E_NOTBOUND _HRESULT_TYPEDEF_(0x800401E9L) + +// +// MessageId: MK_E_CANTOPENFILE +// +// MessageText: +// +// Moniker cannot open file +// +#define MK_E_CANTOPENFILE _HRESULT_TYPEDEF_(0x800401EAL) + +// +// MessageId: MK_E_MUSTBOTHERUSER +// +// MessageText: +// +// User input required for operation to succeed +// +#define MK_E_MUSTBOTHERUSER _HRESULT_TYPEDEF_(0x800401EBL) + +// +// MessageId: MK_E_NOINVERSE +// +// MessageText: +// +// Moniker class has no inverse +// +#define MK_E_NOINVERSE _HRESULT_TYPEDEF_(0x800401ECL) + +// +// MessageId: MK_E_NOSTORAGE +// +// MessageText: +// +// Moniker does not refer to storage +// +#define MK_E_NOSTORAGE _HRESULT_TYPEDEF_(0x800401EDL) + +// +// MessageId: MK_E_NOPREFIX +// +// MessageText: +// +// No common prefix +// +#define MK_E_NOPREFIX _HRESULT_TYPEDEF_(0x800401EEL) + +// +// MessageId: MK_E_ENUMERATION_FAILED +// +// MessageText: +// +// Moniker could not be enumerated +// +#define MK_E_ENUMERATION_FAILED _HRESULT_TYPEDEF_(0x800401EFL) + +#define CO_E_FIRST 0x800401F0L +#define CO_E_LAST 0x800401FFL +#define CO_S_FIRST 0x000401F0L +#define CO_S_LAST 0x000401FFL +// +// MessageId: CO_E_NOTINITIALIZED +// +// MessageText: +// +// CoInitialize has not been called. +// +#define CO_E_NOTINITIALIZED _HRESULT_TYPEDEF_(0x800401F0L) + +// +// MessageId: CO_E_ALREADYINITIALIZED +// +// MessageText: +// +// CoInitialize has already been called. +// +#define CO_E_ALREADYINITIALIZED _HRESULT_TYPEDEF_(0x800401F1L) + +// +// MessageId: CO_E_CANTDETERMINECLASS +// +// MessageText: +// +// Class of object cannot be determined +// +#define CO_E_CANTDETERMINECLASS _HRESULT_TYPEDEF_(0x800401F2L) + +// +// MessageId: CO_E_CLASSSTRING +// +// MessageText: +// +// Invalid class string +// +#define CO_E_CLASSSTRING _HRESULT_TYPEDEF_(0x800401F3L) + +// +// MessageId: CO_E_IIDSTRING +// +// MessageText: +// +// Invalid interface string +// +#define CO_E_IIDSTRING _HRESULT_TYPEDEF_(0x800401F4L) + +// +// MessageId: CO_E_APPNOTFOUND +// +// MessageText: +// +// Application not found +// +#define CO_E_APPNOTFOUND _HRESULT_TYPEDEF_(0x800401F5L) + +// +// MessageId: CO_E_APPSINGLEUSE +// +// MessageText: +// +// Application cannot be run more than once +// +#define CO_E_APPSINGLEUSE _HRESULT_TYPEDEF_(0x800401F6L) + +// +// MessageId: CO_E_ERRORINAPP +// +// MessageText: +// +// Some error in application program +// +#define CO_E_ERRORINAPP _HRESULT_TYPEDEF_(0x800401F7L) + +// +// MessageId: CO_E_DLLNOTFOUND +// +// MessageText: +// +// DLL for class not found +// +#define CO_E_DLLNOTFOUND _HRESULT_TYPEDEF_(0x800401F8L) + +// +// MessageId: CO_E_ERRORINDLL +// +// MessageText: +// +// Error in the DLL +// +#define CO_E_ERRORINDLL _HRESULT_TYPEDEF_(0x800401F9L) + +// +// MessageId: CO_E_WRONGOSFORAPP +// +// MessageText: +// +// Wrong OS or OS version for application +// +#define CO_E_WRONGOSFORAPP _HRESULT_TYPEDEF_(0x800401FAL) + +// +// MessageId: CO_E_OBJNOTREG +// +// MessageText: +// +// Object is not registered +// +#define CO_E_OBJNOTREG _HRESULT_TYPEDEF_(0x800401FBL) + +// +// MessageId: CO_E_OBJISREG +// +// MessageText: +// +// Object is already registered +// +#define CO_E_OBJISREG _HRESULT_TYPEDEF_(0x800401FCL) + +// +// MessageId: CO_E_OBJNOTCONNECTED +// +// MessageText: +// +// Object is not connected to server +// +#define CO_E_OBJNOTCONNECTED _HRESULT_TYPEDEF_(0x800401FDL) + +// +// MessageId: CO_E_APPDIDNTREG +// +// MessageText: +// +// Application was launched but it didn't register a class factory +// +#define CO_E_APPDIDNTREG _HRESULT_TYPEDEF_(0x800401FEL) + +// +// MessageId: CO_E_RELEASED +// +// MessageText: +// +// Object has been released +// +#define CO_E_RELEASED _HRESULT_TYPEDEF_(0x800401FFL) + +#define EVENT_E_FIRST 0x80040200L +#define EVENT_E_LAST 0x8004021FL +#define EVENT_S_FIRST 0x00040200L +#define EVENT_S_LAST 0x0004021FL +// +// MessageId: EVENT_S_SOME_SUBSCRIBERS_FAILED +// +// MessageText: +// +// An event was able to invoke some but not all of the subscribers +// +#define EVENT_S_SOME_SUBSCRIBERS_FAILED _HRESULT_TYPEDEF_(0x00040200L) + +// +// MessageId: EVENT_E_ALL_SUBSCRIBERS_FAILED +// +// MessageText: +// +// An event was unable to invoke any of the subscribers +// +#define EVENT_E_ALL_SUBSCRIBERS_FAILED _HRESULT_TYPEDEF_(0x80040201L) + +// +// MessageId: EVENT_S_NOSUBSCRIBERS +// +// MessageText: +// +// An event was delivered but there were no subscribers +// +#define EVENT_S_NOSUBSCRIBERS _HRESULT_TYPEDEF_(0x00040202L) + +// +// MessageId: EVENT_E_QUERYSYNTAX +// +// MessageText: +// +// A syntax error occurred trying to evaluate a query string +// +#define EVENT_E_QUERYSYNTAX _HRESULT_TYPEDEF_(0x80040203L) + +// +// MessageId: EVENT_E_QUERYFIELD +// +// MessageText: +// +// An invalid field name was used in a query string +// +#define EVENT_E_QUERYFIELD _HRESULT_TYPEDEF_(0x80040204L) + +// +// MessageId: EVENT_E_INTERNALEXCEPTION +// +// MessageText: +// +// An unexpected exception was raised +// +#define EVENT_E_INTERNALEXCEPTION _HRESULT_TYPEDEF_(0x80040205L) + +// +// MessageId: EVENT_E_INTERNALERROR +// +// MessageText: +// +// An unexpected internal error was detected +// +#define EVENT_E_INTERNALERROR _HRESULT_TYPEDEF_(0x80040206L) + +// +// MessageId: EVENT_E_INVALID_PER_USER_SID +// +// MessageText: +// +// The owner SID on a per-user subscription doesn't exist +// +#define EVENT_E_INVALID_PER_USER_SID _HRESULT_TYPEDEF_(0x80040207L) + +// +// MessageId: EVENT_E_USER_EXCEPTION +// +// MessageText: +// +// A user-supplied component or subscriber raised an exception +// +#define EVENT_E_USER_EXCEPTION _HRESULT_TYPEDEF_(0x80040208L) + +// +// MessageId: EVENT_E_TOO_MANY_METHODS +// +// MessageText: +// +// An interface has too many methods to fire events from +// +#define EVENT_E_TOO_MANY_METHODS _HRESULT_TYPEDEF_(0x80040209L) + +// +// MessageId: EVENT_E_MISSING_EVENTCLASS +// +// MessageText: +// +// A subscription cannot be stored unless its event class already exists +// +#define EVENT_E_MISSING_EVENTCLASS _HRESULT_TYPEDEF_(0x8004020AL) + +// +// MessageId: EVENT_E_NOT_ALL_REMOVED +// +// MessageText: +// +// Not all the objects requested could be removed +// +#define EVENT_E_NOT_ALL_REMOVED _HRESULT_TYPEDEF_(0x8004020BL) + +// +// MessageId: EVENT_E_COMPLUS_NOT_INSTALLED +// +// MessageText: +// +// COM+ is required for this operation, but is not installed +// +#define EVENT_E_COMPLUS_NOT_INSTALLED _HRESULT_TYPEDEF_(0x8004020CL) + +// +// MessageId: EVENT_E_CANT_MODIFY_OR_DELETE_UNCONFIGURED_OBJECT +// +// MessageText: +// +// Cannot modify or delete an object that was not added using the COM+ Admin SDK +// +#define EVENT_E_CANT_MODIFY_OR_DELETE_UNCONFIGURED_OBJECT _HRESULT_TYPEDEF_(0x8004020DL) + +// +// MessageId: EVENT_E_CANT_MODIFY_OR_DELETE_CONFIGURED_OBJECT +// +// MessageText: +// +// Cannot modify or delete an object that was added using the COM+ Admin SDK +// +#define EVENT_E_CANT_MODIFY_OR_DELETE_CONFIGURED_OBJECT _HRESULT_TYPEDEF_(0x8004020EL) + +// +// MessageId: EVENT_E_INVALID_EVENT_CLASS_PARTITION +// +// MessageText: +// +// The event class for this subscription is in an invalid partition +// +#define EVENT_E_INVALID_EVENT_CLASS_PARTITION _HRESULT_TYPEDEF_(0x8004020FL) + +// +// MessageId: EVENT_E_PER_USER_SID_NOT_LOGGED_ON +// +// MessageText: +// +// The owner of the PerUser subscription is not logged on to the system specified +// +#define EVENT_E_PER_USER_SID_NOT_LOGGED_ON _HRESULT_TYPEDEF_(0x80040210L) + +// +// MessageId: TPC_E_INVALID_PROPERTY +// +// MessageText: +// +// TabletPC inking error code. The property was not found, or supported by the recognizer +// +#define TPC_E_INVALID_PROPERTY _HRESULT_TYPEDEF_(0x80040241L) + +// +// MessageId: TPC_E_NO_DEFAULT_TABLET +// +// MessageText: +// +// TabletPC inking error code. No default tablet +// +#define TPC_E_NO_DEFAULT_TABLET _HRESULT_TYPEDEF_(0x80040212L) + +// +// MessageId: TPC_E_UNKNOWN_PROPERTY +// +// MessageText: +// +// TabletPC inking error code. Unknown property specified +// +#define TPC_E_UNKNOWN_PROPERTY _HRESULT_TYPEDEF_(0x8004021BL) + +// +// MessageId: TPC_E_INVALID_INPUT_RECT +// +// MessageText: +// +// TabletPC inking error code. An invalid input rectangle was specified +// +#define TPC_E_INVALID_INPUT_RECT _HRESULT_TYPEDEF_(0x80040219L) + +// +// MessageId: TPC_E_INVALID_STROKE +// +// MessageText: +// +// TabletPC inking error code. The stroke object was deleted +// +#define TPC_E_INVALID_STROKE _HRESULT_TYPEDEF_(0x80040222L) + +// +// MessageId: TPC_E_INITIALIZE_FAIL +// +// MessageText: +// +// TabletPC inking error code. Initialization failure +// +#define TPC_E_INITIALIZE_FAIL _HRESULT_TYPEDEF_(0x80040223L) + +// +// MessageId: TPC_E_NOT_RELEVANT +// +// MessageText: +// +// TabletPC inking error code. The data required for the operation was not supplied +// +#define TPC_E_NOT_RELEVANT _HRESULT_TYPEDEF_(0x80040232L) + +// +// MessageId: TPC_E_INVALID_PACKET_DESCRIPTION +// +// MessageText: +// +// TabletPC inking error code. Invalid packet description +// +#define TPC_E_INVALID_PACKET_DESCRIPTION _HRESULT_TYPEDEF_(0x80040233L) + +// +// MessageId: TPC_E_RECOGNIZER_NOT_REGISTERED +// +// MessageText: +// +// TabletPC inking error code. There are no handwriting recognizers registered +// +#define TPC_E_RECOGNIZER_NOT_REGISTERED _HRESULT_TYPEDEF_(0x80040235L) + +// +// MessageId: TPC_E_INVALID_RIGHTS +// +// MessageText: +// +// TabletPC inking error code. User does not have the necessary rights to read recognizer information +// +#define TPC_E_INVALID_RIGHTS _HRESULT_TYPEDEF_(0x80040236L) + +// +// MessageId: TPC_E_OUT_OF_ORDER_CALL +// +// MessageText: +// +// TabletPC inking error code. API calls were made in an incorrect order +// +#define TPC_E_OUT_OF_ORDER_CALL _HRESULT_TYPEDEF_(0x80040237L) + +// +// MessageId: TPC_E_QUEUE_FULL +// +// MessageText: +// +// TabletPC inking error code. Queue is full +// +#define TPC_E_QUEUE_FULL _HRESULT_TYPEDEF_(0x80040238L) + +// +// MessageId: TPC_E_INVALID_CONFIGURATION +// +// MessageText: +// +// TabletPC inking error code. RtpEnabled called multiple times +// +#define TPC_E_INVALID_CONFIGURATION _HRESULT_TYPEDEF_(0x80040239L) + +// +// MessageId: TPC_E_INVALID_DATA_FROM_RECOGNIZER +// +// MessageText: +// +// TabletPC inking error code. A recognizer returned invalid data +// +#define TPC_E_INVALID_DATA_FROM_RECOGNIZER _HRESULT_TYPEDEF_(0x8004023AL) + +// +// MessageId: TPC_S_TRUNCATED +// +// MessageText: +// +// TabletPC inking error code. String was truncated +// +#define TPC_S_TRUNCATED _HRESULT_TYPEDEF_(0x00040252L) + +// +// MessageId: TPC_S_INTERRUPTED +// +// MessageText: +// +// TabletPC inking error code. Recognition or training was interrupted +// +#define TPC_S_INTERRUPTED _HRESULT_TYPEDEF_(0x00040253L) + +// +// MessageId: TPC_S_NO_DATA_TO_PROCESS +// +// MessageText: +// +// TabletPC inking error code. No personalization update to the recognizer because no training data found +// +#define TPC_S_NO_DATA_TO_PROCESS _HRESULT_TYPEDEF_(0x00040254L) + +#define XACT_E_FIRST 0x8004D000 +#define XACT_E_LAST 0x8004D02B +#define XACT_S_FIRST 0x0004D000 +#define XACT_S_LAST 0x0004D010 +// +// MessageId: XACT_E_ALREADYOTHERSINGLEPHASE +// +// MessageText: +// +// Another single phase resource manager has already been enlisted in this transaction. +// +#define XACT_E_ALREADYOTHERSINGLEPHASE _HRESULT_TYPEDEF_(0x8004D000L) + +// +// MessageId: XACT_E_CANTRETAIN +// +// MessageText: +// +// A retaining commit or abort is not supported +// +#define XACT_E_CANTRETAIN _HRESULT_TYPEDEF_(0x8004D001L) + +// +// MessageId: XACT_E_COMMITFAILED +// +// MessageText: +// +// The transaction failed to commit for an unknown reason. The transaction was aborted. +// +#define XACT_E_COMMITFAILED _HRESULT_TYPEDEF_(0x8004D002L) + +// +// MessageId: XACT_E_COMMITPREVENTED +// +// MessageText: +// +// Cannot call commit on this transaction object because the calling application did not initiate the transaction. +// +#define XACT_E_COMMITPREVENTED _HRESULT_TYPEDEF_(0x8004D003L) + +// +// MessageId: XACT_E_HEURISTICABORT +// +// MessageText: +// +// Instead of committing, the resource heuristically aborted. +// +#define XACT_E_HEURISTICABORT _HRESULT_TYPEDEF_(0x8004D004L) + +// +// MessageId: XACT_E_HEURISTICCOMMIT +// +// MessageText: +// +// Instead of aborting, the resource heuristically committed. +// +#define XACT_E_HEURISTICCOMMIT _HRESULT_TYPEDEF_(0x8004D005L) + +// +// MessageId: XACT_E_HEURISTICDAMAGE +// +// MessageText: +// +// Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions. +// +#define XACT_E_HEURISTICDAMAGE _HRESULT_TYPEDEF_(0x8004D006L) + +// +// MessageId: XACT_E_HEURISTICDANGER +// +// MessageText: +// +// Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions. +// +#define XACT_E_HEURISTICDANGER _HRESULT_TYPEDEF_(0x8004D007L) + +// +// MessageId: XACT_E_ISOLATIONLEVEL +// +// MessageText: +// +// The requested isolation level is not valid or supported. +// +#define XACT_E_ISOLATIONLEVEL _HRESULT_TYPEDEF_(0x8004D008L) + +// +// MessageId: XACT_E_NOASYNC +// +// MessageText: +// +// The transaction manager doesn't support an asynchronous operation for this method. +// +#define XACT_E_NOASYNC _HRESULT_TYPEDEF_(0x8004D009L) + +// +// MessageId: XACT_E_NOENLIST +// +// MessageText: +// +// Unable to enlist in the transaction. +// +#define XACT_E_NOENLIST _HRESULT_TYPEDEF_(0x8004D00AL) + +// +// MessageId: XACT_E_NOISORETAIN +// +// MessageText: +// +// The requested semantics of retention of isolation across retaining commit and abort boundaries cannot be supported by this transaction implementation, or isoFlags was not equal to zero. +// +#define XACT_E_NOISORETAIN _HRESULT_TYPEDEF_(0x8004D00BL) + +// +// MessageId: XACT_E_NORESOURCE +// +// MessageText: +// +// There is no resource presently associated with this enlistment +// +#define XACT_E_NORESOURCE _HRESULT_TYPEDEF_(0x8004D00CL) + +// +// MessageId: XACT_E_NOTCURRENT +// +// MessageText: +// +// The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers. +// +#define XACT_E_NOTCURRENT _HRESULT_TYPEDEF_(0x8004D00DL) + +// +// MessageId: XACT_E_NOTRANSACTION +// +// MessageText: +// +// The transaction has already been implicitly or explicitly committed or aborted +// +#define XACT_E_NOTRANSACTION _HRESULT_TYPEDEF_(0x8004D00EL) + +// +// MessageId: XACT_E_NOTSUPPORTED +// +// MessageText: +// +// An invalid combination of flags was specified +// +#define XACT_E_NOTSUPPORTED _HRESULT_TYPEDEF_(0x8004D00FL) + +// +// MessageId: XACT_E_UNKNOWNRMGRID +// +// MessageText: +// +// The resource manager id is not associated with this transaction or the transaction manager. +// +#define XACT_E_UNKNOWNRMGRID _HRESULT_TYPEDEF_(0x8004D010L) + +// +// MessageId: XACT_E_WRONGSTATE +// +// MessageText: +// +// This method was called in the wrong state +// +#define XACT_E_WRONGSTATE _HRESULT_TYPEDEF_(0x8004D011L) + +// +// MessageId: XACT_E_WRONGUOW +// +// MessageText: +// +// The indicated unit of work does not match the unit of work expected by the resource manager. +// +#define XACT_E_WRONGUOW _HRESULT_TYPEDEF_(0x8004D012L) + +// +// MessageId: XACT_E_XTIONEXISTS +// +// MessageText: +// +// An enlistment in a transaction already exists. +// +#define XACT_E_XTIONEXISTS _HRESULT_TYPEDEF_(0x8004D013L) + +// +// MessageId: XACT_E_NOIMPORTOBJECT +// +// MessageText: +// +// An import object for the transaction could not be found. +// +#define XACT_E_NOIMPORTOBJECT _HRESULT_TYPEDEF_(0x8004D014L) + +// +// MessageId: XACT_E_INVALIDCOOKIE +// +// MessageText: +// +// The transaction cookie is invalid. +// +#define XACT_E_INVALIDCOOKIE _HRESULT_TYPEDEF_(0x8004D015L) + +// +// MessageId: XACT_E_INDOUBT +// +// MessageText: +// +// The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed +// +#define XACT_E_INDOUBT _HRESULT_TYPEDEF_(0x8004D016L) + +// +// MessageId: XACT_E_NOTIMEOUT +// +// MessageText: +// +// A time-out was specified, but time-outs are not supported. +// +#define XACT_E_NOTIMEOUT _HRESULT_TYPEDEF_(0x8004D017L) + +// +// MessageId: XACT_E_ALREADYINPROGRESS +// +// MessageText: +// +// The requested operation is already in progress for the transaction. +// +#define XACT_E_ALREADYINPROGRESS _HRESULT_TYPEDEF_(0x8004D018L) + +// +// MessageId: XACT_E_ABORTED +// +// MessageText: +// +// The transaction has already been aborted. +// +#define XACT_E_ABORTED _HRESULT_TYPEDEF_(0x8004D019L) + +// +// MessageId: XACT_E_LOGFULL +// +// MessageText: +// +// The Transaction Manager returned a log full error. +// +#define XACT_E_LOGFULL _HRESULT_TYPEDEF_(0x8004D01AL) + +// +// MessageId: XACT_E_TMNOTAVAILABLE +// +// MessageText: +// +// The Transaction Manager is not available. +// +#define XACT_E_TMNOTAVAILABLE _HRESULT_TYPEDEF_(0x8004D01BL) + +// +// MessageId: XACT_E_CONNECTION_DOWN +// +// MessageText: +// +// A connection with the transaction manager was lost. +// +#define XACT_E_CONNECTION_DOWN _HRESULT_TYPEDEF_(0x8004D01CL) + +// +// MessageId: XACT_E_CONNECTION_DENIED +// +// MessageText: +// +// A request to establish a connection with the transaction manager was denied. +// +#define XACT_E_CONNECTION_DENIED _HRESULT_TYPEDEF_(0x8004D01DL) + +// +// MessageId: XACT_E_REENLISTTIMEOUT +// +// MessageText: +// +// Resource manager reenlistment to determine transaction status timed out. +// +#define XACT_E_REENLISTTIMEOUT _HRESULT_TYPEDEF_(0x8004D01EL) + +// +// MessageId: XACT_E_TIP_CONNECT_FAILED +// +// MessageText: +// +// This transaction manager failed to establish a connection with another TIP transaction manager. +// +#define XACT_E_TIP_CONNECT_FAILED _HRESULT_TYPEDEF_(0x8004D01FL) + +// +// MessageId: XACT_E_TIP_PROTOCOL_ERROR +// +// MessageText: +// +// This transaction manager encountered a protocol error with another TIP transaction manager. +// +#define XACT_E_TIP_PROTOCOL_ERROR _HRESULT_TYPEDEF_(0x8004D020L) + +// +// MessageId: XACT_E_TIP_PULL_FAILED +// +// MessageText: +// +// This transaction manager could not propagate a transaction from another TIP transaction manager. +// +#define XACT_E_TIP_PULL_FAILED _HRESULT_TYPEDEF_(0x8004D021L) + +// +// MessageId: XACT_E_DEST_TMNOTAVAILABLE +// +// MessageText: +// +// The Transaction Manager on the destination machine is not available. +// +#define XACT_E_DEST_TMNOTAVAILABLE _HRESULT_TYPEDEF_(0x8004D022L) + +// +// MessageId: XACT_E_TIP_DISABLED +// +// MessageText: +// +// The Transaction Manager has disabled its support for TIP. +// +#define XACT_E_TIP_DISABLED _HRESULT_TYPEDEF_(0x8004D023L) + +// +// MessageId: XACT_E_NETWORK_TX_DISABLED +// +// MessageText: +// +// The transaction manager has disabled its support for remote/network transactions. +// +#define XACT_E_NETWORK_TX_DISABLED _HRESULT_TYPEDEF_(0x8004D024L) + +// +// MessageId: XACT_E_PARTNER_NETWORK_TX_DISABLED +// +// MessageText: +// +// The partner transaction manager has disabled its support for remote/network transactions. +// +#define XACT_E_PARTNER_NETWORK_TX_DISABLED _HRESULT_TYPEDEF_(0x8004D025L) + +// +// MessageId: XACT_E_XA_TX_DISABLED +// +// MessageText: +// +// The transaction manager has disabled its support for XA transactions. +// +#define XACT_E_XA_TX_DISABLED _HRESULT_TYPEDEF_(0x8004D026L) + +// +// MessageId: XACT_E_UNABLE_TO_READ_DTC_CONFIG +// +// MessageText: +// +// MSDTC was unable to read its configuration information. +// +#define XACT_E_UNABLE_TO_READ_DTC_CONFIG _HRESULT_TYPEDEF_(0x8004D027L) + +// +// MessageId: XACT_E_UNABLE_TO_LOAD_DTC_PROXY +// +// MessageText: +// +// MSDTC was unable to load the dtc proxy dll. +// +#define XACT_E_UNABLE_TO_LOAD_DTC_PROXY _HRESULT_TYPEDEF_(0x8004D028L) + +// +// MessageId: XACT_E_ABORTING +// +// MessageText: +// +// The local transaction has aborted. +// +#define XACT_E_ABORTING _HRESULT_TYPEDEF_(0x8004D029L) + +// +// MessageId: XACT_E_PUSH_COMM_FAILURE +// +// MessageText: +// +// The MSDTC transaction manager was unable to push the transaction to the destination transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers. +// +#define XACT_E_PUSH_COMM_FAILURE _HRESULT_TYPEDEF_(0x8004D02AL) + +// +// MessageId: XACT_E_PULL_COMM_FAILURE +// +// MessageText: +// +// The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doesn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transaction managers. +// +#define XACT_E_PULL_COMM_FAILURE _HRESULT_TYPEDEF_(0x8004D02BL) + +// +// MessageId: XACT_E_LU_TX_DISABLED +// +// MessageText: +// +// The MSDTC transaction manager has disabled its support for SNA LU 6.2 transactions. +// +#define XACT_E_LU_TX_DISABLED _HRESULT_TYPEDEF_(0x8004D02CL) + +// +// TXF & CRM errors start 4d080. +// +// MessageId: XACT_E_CLERKNOTFOUND +// +// MessageText: +// +// XACT_E_CLERKNOTFOUND +// +#define XACT_E_CLERKNOTFOUND _HRESULT_TYPEDEF_(0x8004D080L) + +// +// MessageId: XACT_E_CLERKEXISTS +// +// MessageText: +// +// XACT_E_CLERKEXISTS +// +#define XACT_E_CLERKEXISTS _HRESULT_TYPEDEF_(0x8004D081L) + +// +// MessageId: XACT_E_RECOVERYINPROGRESS +// +// MessageText: +// +// XACT_E_RECOVERYINPROGRESS +// +#define XACT_E_RECOVERYINPROGRESS _HRESULT_TYPEDEF_(0x8004D082L) + +// +// MessageId: XACT_E_TRANSACTIONCLOSED +// +// MessageText: +// +// XACT_E_TRANSACTIONCLOSED +// +#define XACT_E_TRANSACTIONCLOSED _HRESULT_TYPEDEF_(0x8004D083L) + +// +// MessageId: XACT_E_INVALIDLSN +// +// MessageText: +// +// XACT_E_INVALIDLSN +// +#define XACT_E_INVALIDLSN _HRESULT_TYPEDEF_(0x8004D084L) + +// +// MessageId: XACT_E_REPLAYREQUEST +// +// MessageText: +// +// XACT_E_REPLAYREQUEST +// +#define XACT_E_REPLAYREQUEST _HRESULT_TYPEDEF_(0x8004D085L) + +// Begin XACT_DTC_CONSTANTS enumerated values defined in txdtc.h + +// SymbolicName=XACT_E_CONNECTION_REQUEST_DENIED +// +// MessageId: 0x8004D100L (No symbolic name defined) +// +// MessageText: +// +// The request to connect to the specified transaction coordinator was denied. +// + + +// SymbolicName=XACT_E_TOOMANY_ENLISTMENTS +// +// MessageId: 0x8004D101L (No symbolic name defined) +// +// MessageText: +// +// The maximum number of enlistments for the specified transaction has been reached. +// + + +// SymbolicName=XACT_E_DUPLICATE_GUID +// +// MessageId: 0x8004D102L (No symbolic name defined) +// +// MessageText: +// +// A resource manager with the same identifier is already registered with the specified transaction coordinator. +// + + +// SymbolicName=XACT_E_NOTSINGLEPHASE +// +// MessageId: 0x8004D103L (No symbolic name defined) +// +// MessageText: +// +// The prepare request given was not eligible for single phase optimizations. +// + + +// SymbolicName=XACT_E_RECOVERYALREADYDONE +// +// MessageId: 0x8004D104L (No symbolic name defined) +// +// MessageText: +// +// RecoveryComplete has already been called for the given resource manager. +// + + +// SymbolicName=XACT_E_PROTOCOL +// +// MessageId: 0x8004D105L (No symbolic name defined) +// +// MessageText: +// +// The interface call made was incorrect for the current state of the protocol. +// + + +// SymbolicName=XACT_E_RM_FAILURE +// +// MessageId: 0x8004D106L (No symbolic name defined) +// +// MessageText: +// +// xa_open call failed for the XA resource. +// + + +// SymbolicName=XACT_E_RECOVERY_FAILED +// +// MessageId: 0x8004D107L (No symbolic name defined) +// +// MessageText: +// +// xa_recover call failed for the XA resource. +// + + +// SymbolicName=XACT_E_LU_NOT_FOUND +// +// MessageId: 0x8004D108L (No symbolic name defined) +// +// MessageText: +// +// The Logical Unit of Work specified cannot be found. +// + + +// SymbolicName=XACT_E_DUPLICATE_LU +// +// MessageId: 0x8004D109L (No symbolic name defined) +// +// MessageText: +// +// The specified Logical Unit of Work already exists. +// + + +// SymbolicName=XACT_E_LU_NOT_CONNECTED +// +// MessageId: 0x8004D10AL (No symbolic name defined) +// +// MessageText: +// +// Subordinate creation failed. The specified Logical Unit of Work was not connected. +// + + +// SymbolicName=XACT_E_DUPLICATE_TRANSID +// +// MessageId: 0x8004D10BL (No symbolic name defined) +// +// MessageText: +// +// A transaction with the given identifier already exists. +// + + +// SymbolicName=XACT_E_LU_BUSY +// +// MessageId: 0x8004D10CL (No symbolic name defined) +// +// MessageText: +// +// The resource is in use. +// + + +// SymbolicName=XACT_E_LU_NO_RECOVERY_PROCESS +// +// MessageId: 0x8004D10DL (No symbolic name defined) +// +// MessageText: +// +// The LU Recovery process is down. +// + + +// SymbolicName=XACT_E_LU_DOWN +// +// MessageId: 0x8004D10EL (No symbolic name defined) +// +// MessageText: +// +// The remote session was lost. +// + + +// SymbolicName=XACT_E_LU_RECOVERING +// +// MessageId: 0x8004D10FL (No symbolic name defined) +// +// MessageText: +// +// The resource is currently recovering. +// + + +// SymbolicName=XACT_E_LU_RECOVERY_MISMATCH +// +// MessageId: 0x8004D110L (No symbolic name defined) +// +// MessageText: +// +// There was a mismatch in driving recovery. +// + + +// SymbolicName=XACT_E_RM_UNAVAILABLE +// +// MessageId: 0x8004D111L (No symbolic name defined) +// +// MessageText: +// +// An error occurred with the XA resource. +// + + +// End XACT_DTC_CONSTANTS enumerated values defined in txdtc.h + +// +// OleTx Success codes. +// +// +// MessageId: XACT_S_ASYNC +// +// MessageText: +// +// An asynchronous operation was specified. The operation has begun, but its outcome is not known yet. +// +#define XACT_S_ASYNC _HRESULT_TYPEDEF_(0x0004D000L) + +// +// MessageId: XACT_S_DEFECT +// +// MessageText: +// +// XACT_S_DEFECT +// +#define XACT_S_DEFECT _HRESULT_TYPEDEF_(0x0004D001L) + +// +// MessageId: XACT_S_READONLY +// +// MessageText: +// +// The method call succeeded because the transaction was read-only. +// +#define XACT_S_READONLY _HRESULT_TYPEDEF_(0x0004D002L) + +// +// MessageId: XACT_S_SOMENORETAIN +// +// MessageText: +// +// The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics +// +#define XACT_S_SOMENORETAIN _HRESULT_TYPEDEF_(0x0004D003L) + +// +// MessageId: XACT_S_OKINFORM +// +// MessageText: +// +// No changes were made during this call, but the sink wants another chance to look if any other sinks make further changes. +// +#define XACT_S_OKINFORM _HRESULT_TYPEDEF_(0x0004D004L) + +// +// MessageId: XACT_S_MADECHANGESCONTENT +// +// MessageText: +// +// The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call. +// +#define XACT_S_MADECHANGESCONTENT _HRESULT_TYPEDEF_(0x0004D005L) + +// +// MessageId: XACT_S_MADECHANGESINFORM +// +// MessageText: +// +// The sink is for the moment and wishes the transaction to proceed, but if other changes are made following this return by other event sinks then this sink wants another chance to look +// +#define XACT_S_MADECHANGESINFORM _HRESULT_TYPEDEF_(0x0004D006L) + +// +// MessageId: XACT_S_ALLNORETAIN +// +// MessageText: +// +// The transaction was successfully aborted. However, the abort was non-retaining. +// +#define XACT_S_ALLNORETAIN _HRESULT_TYPEDEF_(0x0004D007L) + +// +// MessageId: XACT_S_ABORTING +// +// MessageText: +// +// An abort operation was already in progress. +// +#define XACT_S_ABORTING _HRESULT_TYPEDEF_(0x0004D008L) + +// +// MessageId: XACT_S_SINGLEPHASE +// +// MessageText: +// +// The resource manager has performed a single-phase commit of the transaction. +// +#define XACT_S_SINGLEPHASE _HRESULT_TYPEDEF_(0x0004D009L) + +// +// MessageId: XACT_S_LOCALLY_OK +// +// MessageText: +// +// The local transaction has not aborted. +// +#define XACT_S_LOCALLY_OK _HRESULT_TYPEDEF_(0x0004D00AL) + +// +// MessageId: XACT_S_LASTRESOURCEMANAGER +// +// MessageText: +// +// The resource manager has requested to be the coordinator (last resource manager) for the transaction. +// +#define XACT_S_LASTRESOURCEMANAGER _HRESULT_TYPEDEF_(0x0004D010L) + +#define CONTEXT_E_FIRST 0x8004E000L +#define CONTEXT_E_LAST 0x8004E02FL +#define CONTEXT_S_FIRST 0x0004E000L +#define CONTEXT_S_LAST 0x0004E02FL +// +// MessageId: CONTEXT_E_ABORTED +// +// MessageText: +// +// The root transaction wanted to commit, but transaction aborted +// +#define CONTEXT_E_ABORTED _HRESULT_TYPEDEF_(0x8004E002L) + +// +// MessageId: CONTEXT_E_ABORTING +// +// MessageText: +// +// You made a method call on a COM+ component that has a transaction that has already aborted or in the process of aborting. +// +#define CONTEXT_E_ABORTING _HRESULT_TYPEDEF_(0x8004E003L) + +// +// MessageId: CONTEXT_E_NOCONTEXT +// +// MessageText: +// +// There is no MTS object context +// +#define CONTEXT_E_NOCONTEXT _HRESULT_TYPEDEF_(0x8004E004L) + +// +// MessageId: CONTEXT_E_WOULD_DEADLOCK +// +// MessageText: +// +// The component is configured to use synchronization and this method call would cause a deadlock to occur. +// +#define CONTEXT_E_WOULD_DEADLOCK _HRESULT_TYPEDEF_(0x8004E005L) + +// +// MessageId: CONTEXT_E_SYNCH_TIMEOUT +// +// MessageText: +// +// The component is configured to use synchronization and a thread has timed out waiting to enter the context. +// +#define CONTEXT_E_SYNCH_TIMEOUT _HRESULT_TYPEDEF_(0x8004E006L) + +// +// MessageId: CONTEXT_E_OLDREF +// +// MessageText: +// +// You made a method call on a COM+ component that has a transaction that has already committed or aborted. +// +#define CONTEXT_E_OLDREF _HRESULT_TYPEDEF_(0x8004E007L) + +// +// MessageId: CONTEXT_E_ROLENOTFOUND +// +// MessageText: +// +// The specified role was not configured for the application +// +#define CONTEXT_E_ROLENOTFOUND _HRESULT_TYPEDEF_(0x8004E00CL) + +// +// MessageId: CONTEXT_E_TMNOTAVAILABLE +// +// MessageText: +// +// COM+ was unable to talk to the Microsoft Distributed Transaction Coordinator +// +#define CONTEXT_E_TMNOTAVAILABLE _HRESULT_TYPEDEF_(0x8004E00FL) + +// +// MessageId: CO_E_ACTIVATIONFAILED +// +// MessageText: +// +// An unexpected error occurred during COM+ Activation. +// +#define CO_E_ACTIVATIONFAILED _HRESULT_TYPEDEF_(0x8004E021L) + +// +// MessageId: CO_E_ACTIVATIONFAILED_EVENTLOGGED +// +// MessageText: +// +// COM+ Activation failed. Check the event log for more information +// +#define CO_E_ACTIVATIONFAILED_EVENTLOGGED _HRESULT_TYPEDEF_(0x8004E022L) + +// +// MessageId: CO_E_ACTIVATIONFAILED_CATALOGERROR +// +// MessageText: +// +// COM+ Activation failed due to a catalog or configuration error. +// +#define CO_E_ACTIVATIONFAILED_CATALOGERROR _HRESULT_TYPEDEF_(0x8004E023L) + +// +// MessageId: CO_E_ACTIVATIONFAILED_TIMEOUT +// +// MessageText: +// +// COM+ activation failed because the activation could not be completed in the specified amount of time. +// +#define CO_E_ACTIVATIONFAILED_TIMEOUT _HRESULT_TYPEDEF_(0x8004E024L) + +// +// MessageId: CO_E_INITIALIZATIONFAILED +// +// MessageText: +// +// COM+ Activation failed because an initialization function failed. Check the event log for more information. +// +#define CO_E_INITIALIZATIONFAILED _HRESULT_TYPEDEF_(0x8004E025L) + +// +// MessageId: CONTEXT_E_NOJIT +// +// MessageText: +// +// The requested operation requires that JIT be in the current context and it is not +// +#define CONTEXT_E_NOJIT _HRESULT_TYPEDEF_(0x8004E026L) + +// +// MessageId: CONTEXT_E_NOTRANSACTION +// +// MessageText: +// +// The requested operation requires that the current context have a Transaction, and it does not +// +#define CONTEXT_E_NOTRANSACTION _HRESULT_TYPEDEF_(0x8004E027L) + +// +// MessageId: CO_E_THREADINGMODEL_CHANGED +// +// MessageText: +// +// The components threading model has changed after install into a COM+ Application. Please re-install component. +// +#define CO_E_THREADINGMODEL_CHANGED _HRESULT_TYPEDEF_(0x8004E028L) + +// +// MessageId: CO_E_NOIISINTRINSICS +// +// MessageText: +// +// IIS intrinsics not available. Start your work with IIS. +// +#define CO_E_NOIISINTRINSICS _HRESULT_TYPEDEF_(0x8004E029L) + +// +// MessageId: CO_E_NOCOOKIES +// +// MessageText: +// +// An attempt to write a cookie failed. +// +#define CO_E_NOCOOKIES _HRESULT_TYPEDEF_(0x8004E02AL) + +// +// MessageId: CO_E_DBERROR +// +// MessageText: +// +// An attempt to use a database generated a database specific error. +// +#define CO_E_DBERROR _HRESULT_TYPEDEF_(0x8004E02BL) + +// +// MessageId: CO_E_NOTPOOLED +// +// MessageText: +// +// The COM+ component you created must use object pooling to work. +// +#define CO_E_NOTPOOLED _HRESULT_TYPEDEF_(0x8004E02CL) + +// +// MessageId: CO_E_NOTCONSTRUCTED +// +// MessageText: +// +// The COM+ component you created must use object construction to work correctly. +// +#define CO_E_NOTCONSTRUCTED _HRESULT_TYPEDEF_(0x8004E02DL) + +// +// MessageId: CO_E_NOSYNCHRONIZATION +// +// MessageText: +// +// The COM+ component requires synchronization, and it is not configured for it. +// +#define CO_E_NOSYNCHRONIZATION _HRESULT_TYPEDEF_(0x8004E02EL) + +// +// MessageId: CO_E_ISOLEVELMISMATCH +// +// MessageText: +// +// The TxIsolation Level property for the COM+ component being created is stronger than the TxIsolationLevel for the "root" component for the transaction. The creation failed. +// +#define CO_E_ISOLEVELMISMATCH _HRESULT_TYPEDEF_(0x8004E02FL) + +// +// MessageId: CO_E_CALL_OUT_OF_TX_SCOPE_NOT_ALLOWED +// +// MessageText: +// +// The component attempted to make a cross-context call between invocations of EnterTransactionScopeand ExitTransactionScope. This is not allowed. Cross-context calls cannot be made while inside of a transaction scope. +// +#define CO_E_CALL_OUT_OF_TX_SCOPE_NOT_ALLOWED _HRESULT_TYPEDEF_(0x8004E030L) + +// +// MessageId: CO_E_EXIT_TRANSACTION_SCOPE_NOT_CALLED +// +// MessageText: +// +// The component made a call to EnterTransactionScope, but did not make a corresponding call to ExitTransactionScope before returning. +// +#define CO_E_EXIT_TRANSACTION_SCOPE_NOT_CALLED _HRESULT_TYPEDEF_(0x8004E031L) + +// +// Old OLE Success Codes +// +// +// MessageId: OLE_S_USEREG +// +// MessageText: +// +// Use the registry database to provide the requested information +// +#define OLE_S_USEREG _HRESULT_TYPEDEF_(0x00040000L) + +// +// MessageId: OLE_S_STATIC +// +// MessageText: +// +// Success, but static +// +#define OLE_S_STATIC _HRESULT_TYPEDEF_(0x00040001L) + +// +// MessageId: OLE_S_MAC_CLIPFORMAT +// +// MessageText: +// +// Macintosh clipboard format +// +#define OLE_S_MAC_CLIPFORMAT _HRESULT_TYPEDEF_(0x00040002L) + +// +// MessageId: DRAGDROP_S_DROP +// +// MessageText: +// +// Successful drop took place +// +#define DRAGDROP_S_DROP _HRESULT_TYPEDEF_(0x00040100L) + +// +// MessageId: DRAGDROP_S_CANCEL +// +// MessageText: +// +// Drag-drop operation canceled +// +#define DRAGDROP_S_CANCEL _HRESULT_TYPEDEF_(0x00040101L) + +// +// MessageId: DRAGDROP_S_USEDEFAULTCURSORS +// +// MessageText: +// +// Use the default cursor +// +#define DRAGDROP_S_USEDEFAULTCURSORS _HRESULT_TYPEDEF_(0x00040102L) + +// +// MessageId: DATA_S_SAMEFORMATETC +// +// MessageText: +// +// Data has same FORMATETC +// +#define DATA_S_SAMEFORMATETC _HRESULT_TYPEDEF_(0x00040130L) + +// +// MessageId: VIEW_S_ALREADY_FROZEN +// +// MessageText: +// +// View is already frozen +// +#define VIEW_S_ALREADY_FROZEN _HRESULT_TYPEDEF_(0x00040140L) + +// +// MessageId: CACHE_S_FORMATETC_NOTSUPPORTED +// +// MessageText: +// +// FORMATETC not supported +// +#define CACHE_S_FORMATETC_NOTSUPPORTED _HRESULT_TYPEDEF_(0x00040170L) + +// +// MessageId: CACHE_S_SAMECACHE +// +// MessageText: +// +// Same cache +// +#define CACHE_S_SAMECACHE _HRESULT_TYPEDEF_(0x00040171L) + +// +// MessageId: CACHE_S_SOMECACHES_NOTUPDATED +// +// MessageText: +// +// Some cache(s) not updated +// +#define CACHE_S_SOMECACHES_NOTUPDATED _HRESULT_TYPEDEF_(0x00040172L) + +// +// MessageId: OLEOBJ_S_INVALIDVERB +// +// MessageText: +// +// Invalid verb for OLE object +// +#define OLEOBJ_S_INVALIDVERB _HRESULT_TYPEDEF_(0x00040180L) + +// +// MessageId: OLEOBJ_S_CANNOT_DOVERB_NOW +// +// MessageText: +// +// Verb number is valid but verb cannot be done now +// +#define OLEOBJ_S_CANNOT_DOVERB_NOW _HRESULT_TYPEDEF_(0x00040181L) + +// +// MessageId: OLEOBJ_S_INVALIDHWND +// +// MessageText: +// +// Invalid window handle passed +// +#define OLEOBJ_S_INVALIDHWND _HRESULT_TYPEDEF_(0x00040182L) + +// +// MessageId: INPLACE_S_TRUNCATED +// +// MessageText: +// +// Message is too long; some of it had to be truncated before displaying +// +#define INPLACE_S_TRUNCATED _HRESULT_TYPEDEF_(0x000401A0L) + +// +// MessageId: CONVERT10_S_NO_PRESENTATION +// +// MessageText: +// +// Unable to convert OLESTREAM to IStorage +// +#define CONVERT10_S_NO_PRESENTATION _HRESULT_TYPEDEF_(0x000401C0L) + +// +// MessageId: MK_S_REDUCED_TO_SELF +// +// MessageText: +// +// Moniker reduced to itself +// +#define MK_S_REDUCED_TO_SELF _HRESULT_TYPEDEF_(0x000401E2L) + +// +// MessageId: MK_S_ME +// +// MessageText: +// +// Common prefix is this moniker +// +#define MK_S_ME _HRESULT_TYPEDEF_(0x000401E4L) + +// +// MessageId: MK_S_HIM +// +// MessageText: +// +// Common prefix is input moniker +// +#define MK_S_HIM _HRESULT_TYPEDEF_(0x000401E5L) + +// +// MessageId: MK_S_US +// +// MessageText: +// +// Common prefix is both monikers +// +#define MK_S_US _HRESULT_TYPEDEF_(0x000401E6L) + +// +// MessageId: MK_S_MONIKERALREADYREGISTERED +// +// MessageText: +// +// Moniker is already registered in running object table +// +#define MK_S_MONIKERALREADYREGISTERED _HRESULT_TYPEDEF_(0x000401E7L) + +// +// Task Scheduler errors +// +// +// MessageId: SCHED_S_TASK_READY +// +// MessageText: +// +// The task is ready to run at its next scheduled time. +// +#define SCHED_S_TASK_READY _HRESULT_TYPEDEF_(0x00041300L) + +// +// MessageId: SCHED_S_TASK_RUNNING +// +// MessageText: +// +// The task is currently running. +// +#define SCHED_S_TASK_RUNNING _HRESULT_TYPEDEF_(0x00041301L) + +// +// MessageId: SCHED_S_TASK_DISABLED +// +// MessageText: +// +// The task will not run at the scheduled times because it has been disabled. +// +#define SCHED_S_TASK_DISABLED _HRESULT_TYPEDEF_(0x00041302L) + +// +// MessageId: SCHED_S_TASK_HAS_NOT_RUN +// +// MessageText: +// +// The task has not yet run. +// +#define SCHED_S_TASK_HAS_NOT_RUN _HRESULT_TYPEDEF_(0x00041303L) + +// +// MessageId: SCHED_S_TASK_NO_MORE_RUNS +// +// MessageText: +// +// There are no more runs scheduled for this task. +// +#define SCHED_S_TASK_NO_MORE_RUNS _HRESULT_TYPEDEF_(0x00041304L) + +// +// MessageId: SCHED_S_TASK_NOT_SCHEDULED +// +// MessageText: +// +// One or more of the properties that are needed to run this task on a schedule have not been set. +// +#define SCHED_S_TASK_NOT_SCHEDULED _HRESULT_TYPEDEF_(0x00041305L) + +// +// MessageId: SCHED_S_TASK_TERMINATED +// +// MessageText: +// +// The last run of the task was terminated by the user. +// +#define SCHED_S_TASK_TERMINATED _HRESULT_TYPEDEF_(0x00041306L) + +// +// MessageId: SCHED_S_TASK_NO_VALID_TRIGGERS +// +// MessageText: +// +// Either the task has no triggers or the existing triggers are disabled or not set. +// +#define SCHED_S_TASK_NO_VALID_TRIGGERS _HRESULT_TYPEDEF_(0x00041307L) + +// +// MessageId: SCHED_S_EVENT_TRIGGER +// +// MessageText: +// +// Event triggers don't have set run times. +// +#define SCHED_S_EVENT_TRIGGER _HRESULT_TYPEDEF_(0x00041308L) + +// +// MessageId: SCHED_E_TRIGGER_NOT_FOUND +// +// MessageText: +// +// Trigger not found. +// +#define SCHED_E_TRIGGER_NOT_FOUND _HRESULT_TYPEDEF_(0x80041309L) + +// +// MessageId: SCHED_E_TASK_NOT_READY +// +// MessageText: +// +// One or more of the properties that are needed to run this task have not been set. +// +#define SCHED_E_TASK_NOT_READY _HRESULT_TYPEDEF_(0x8004130AL) + +// +// MessageId: SCHED_E_TASK_NOT_RUNNING +// +// MessageText: +// +// There is no running instance of the task. +// +#define SCHED_E_TASK_NOT_RUNNING _HRESULT_TYPEDEF_(0x8004130BL) + +// +// MessageId: SCHED_E_SERVICE_NOT_INSTALLED +// +// MessageText: +// +// The Task Scheduler Service is not installed on this computer. +// +#define SCHED_E_SERVICE_NOT_INSTALLED _HRESULT_TYPEDEF_(0x8004130CL) + +// +// MessageId: SCHED_E_CANNOT_OPEN_TASK +// +// MessageText: +// +// The task object could not be opened. +// +#define SCHED_E_CANNOT_OPEN_TASK _HRESULT_TYPEDEF_(0x8004130DL) + +// +// MessageId: SCHED_E_INVALID_TASK +// +// MessageText: +// +// The object is either an invalid task object or is not a task object. +// +#define SCHED_E_INVALID_TASK _HRESULT_TYPEDEF_(0x8004130EL) + +// +// MessageId: SCHED_E_ACCOUNT_INFORMATION_NOT_SET +// +// MessageText: +// +// No account information could be found in the Task Scheduler security database for the task indicated. +// +#define SCHED_E_ACCOUNT_INFORMATION_NOT_SET _HRESULT_TYPEDEF_(0x8004130FL) + +// +// MessageId: SCHED_E_ACCOUNT_NAME_NOT_FOUND +// +// MessageText: +// +// Unable to establish existence of the account specified. +// +#define SCHED_E_ACCOUNT_NAME_NOT_FOUND _HRESULT_TYPEDEF_(0x80041310L) + +// +// MessageId: SCHED_E_ACCOUNT_DBASE_CORRUPT +// +// MessageText: +// +// Corruption was detected in the Task Scheduler security database; the database has been reset. +// +#define SCHED_E_ACCOUNT_DBASE_CORRUPT _HRESULT_TYPEDEF_(0x80041311L) + +// +// MessageId: SCHED_E_NO_SECURITY_SERVICES +// +// MessageText: +// +// Task Scheduler security services are available only on Windows NT. +// +#define SCHED_E_NO_SECURITY_SERVICES _HRESULT_TYPEDEF_(0x80041312L) + +// +// MessageId: SCHED_E_UNKNOWN_OBJECT_VERSION +// +// MessageText: +// +// The task object version is either unsupported or invalid. +// +#define SCHED_E_UNKNOWN_OBJECT_VERSION _HRESULT_TYPEDEF_(0x80041313L) + +// +// MessageId: SCHED_E_UNSUPPORTED_ACCOUNT_OPTION +// +// MessageText: +// +// The task has been configured with an unsupported combination of account settings and run time options. +// +#define SCHED_E_UNSUPPORTED_ACCOUNT_OPTION _HRESULT_TYPEDEF_(0x80041314L) + +// +// MessageId: SCHED_E_SERVICE_NOT_RUNNING +// +// MessageText: +// +// The Task Scheduler Service is not running. +// +#define SCHED_E_SERVICE_NOT_RUNNING _HRESULT_TYPEDEF_(0x80041315L) + +// +// MessageId: SCHED_E_UNEXPECTEDNODE +// +// MessageText: +// +// The task XML contains an unexpected node. +// +#define SCHED_E_UNEXPECTEDNODE _HRESULT_TYPEDEF_(0x80041316L) + +// +// MessageId: SCHED_E_NAMESPACE +// +// MessageText: +// +// The task XML contains an element or attribute from an unexpected namespace. +// +#define SCHED_E_NAMESPACE _HRESULT_TYPEDEF_(0x80041317L) + +// +// MessageId: SCHED_E_INVALIDVALUE +// +// MessageText: +// +// The task XML contains a value which is incorrectly formatted or out of range. +// +#define SCHED_E_INVALIDVALUE _HRESULT_TYPEDEF_(0x80041318L) + +// +// MessageId: SCHED_E_MISSINGNODE +// +// MessageText: +// +// The task XML is missing a required element or attribute. +// +#define SCHED_E_MISSINGNODE _HRESULT_TYPEDEF_(0x80041319L) + +// +// MessageId: SCHED_E_MALFORMEDXML +// +// MessageText: +// +// The task XML is malformed. +// +#define SCHED_E_MALFORMEDXML _HRESULT_TYPEDEF_(0x8004131AL) + +// +// MessageId: SCHED_S_SOME_TRIGGERS_FAILED +// +// MessageText: +// +// The task is registered, but not all specified triggers will start the task, check task scheduler event log for detailed information. +// +#define SCHED_S_SOME_TRIGGERS_FAILED _HRESULT_TYPEDEF_(0x0004131BL) + +// +// MessageId: SCHED_S_BATCH_LOGON_PROBLEM +// +// MessageText: +// +// The task is registered, but may fail to start. Batch logon privilege needs to be enabled for the task principal. +// +#define SCHED_S_BATCH_LOGON_PROBLEM _HRESULT_TYPEDEF_(0x0004131CL) + +// +// MessageId: SCHED_E_TOO_MANY_NODES +// +// MessageText: +// +// The task XML contains too many nodes of the same type. +// +#define SCHED_E_TOO_MANY_NODES _HRESULT_TYPEDEF_(0x8004131DL) + +// +// MessageId: SCHED_E_PAST_END_BOUNDARY +// +// MessageText: +// +// The task cannot be started after the trigger's end boundary. +// +#define SCHED_E_PAST_END_BOUNDARY _HRESULT_TYPEDEF_(0x8004131EL) + +// +// MessageId: SCHED_E_ALREADY_RUNNING +// +// MessageText: +// +// An instance of this task is already running. +// +#define SCHED_E_ALREADY_RUNNING _HRESULT_TYPEDEF_(0x8004131FL) + +// +// MessageId: SCHED_E_USER_NOT_LOGGED_ON +// +// MessageText: +// +// The task will not run because the user is not logged on. +// +#define SCHED_E_USER_NOT_LOGGED_ON _HRESULT_TYPEDEF_(0x80041320L) + +// +// MessageId: SCHED_E_INVALID_TASK_HASH +// +// MessageText: +// +// The task image is corrupt or has been tampered with. +// +#define SCHED_E_INVALID_TASK_HASH _HRESULT_TYPEDEF_(0x80041321L) + +// +// MessageId: SCHED_E_SERVICE_NOT_AVAILABLE +// +// MessageText: +// +// The Task Scheduler service is not available. +// +#define SCHED_E_SERVICE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80041322L) + +// +// MessageId: SCHED_E_SERVICE_TOO_BUSY +// +// MessageText: +// +// The Task Scheduler service is too busy to handle your request. Please try again later. +// +#define SCHED_E_SERVICE_TOO_BUSY _HRESULT_TYPEDEF_(0x80041323L) + +// +// MessageId: SCHED_E_TASK_ATTEMPTED +// +// MessageText: +// +// The Task Scheduler service attempted to run the task, but the task did not run due to one of the constraints in the task definition. +// +#define SCHED_E_TASK_ATTEMPTED _HRESULT_TYPEDEF_(0x80041324L) + +// +// MessageId: SCHED_S_TASK_QUEUED +// +// MessageText: +// +// The Task Scheduler service has asked the task to run. +// +#define SCHED_S_TASK_QUEUED _HRESULT_TYPEDEF_(0x00041325L) + +// +// MessageId: SCHED_E_TASK_DISABLED +// +// MessageText: +// +// The task is disabled. +// +#define SCHED_E_TASK_DISABLED _HRESULT_TYPEDEF_(0x80041326L) + +// +// MessageId: SCHED_E_TASK_NOT_V1_COMPAT +// +// MessageText: +// +// The task has properties that are not compatible with previous versions of Windows. +// +#define SCHED_E_TASK_NOT_V1_COMPAT _HRESULT_TYPEDEF_(0x80041327L) + +// +// MessageId: SCHED_E_START_ON_DEMAND +// +// MessageText: +// +// The task settings do not allow the task to start on demand. +// +#define SCHED_E_START_ON_DEMAND _HRESULT_TYPEDEF_(0x80041328L) + +// +// MessageId: SCHED_E_TASK_NOT_UBPM_COMPAT +// +// MessageText: +// +// The combination of properties that task is using is not compatible with the scheduling engine. +// +#define SCHED_E_TASK_NOT_UBPM_COMPAT _HRESULT_TYPEDEF_(0x80041329L) + +// +// MessageId: SCHED_E_DEPRECATED_FEATURE_USED +// +// MessageText: +// +// The task definition uses a deprecated feature. +// +#define SCHED_E_DEPRECATED_FEATURE_USED _HRESULT_TYPEDEF_(0x80041330L) + +// ****************** +// FACILITY_WINDOWS +// ****************** +// +// Codes 0x0-0x01ff are reserved for the OLE group of +// interfaces. +// +// +// MessageId: CO_E_CLASS_CREATE_FAILED +// +// MessageText: +// +// Attempt to create a class object failed +// +#define CO_E_CLASS_CREATE_FAILED _HRESULT_TYPEDEF_(0x80080001L) + +// +// MessageId: CO_E_SCM_ERROR +// +// MessageText: +// +// OLE service could not bind object +// +#define CO_E_SCM_ERROR _HRESULT_TYPEDEF_(0x80080002L) + +// +// MessageId: CO_E_SCM_RPC_FAILURE +// +// MessageText: +// +// RPC communication failed with OLE service +// +#define CO_E_SCM_RPC_FAILURE _HRESULT_TYPEDEF_(0x80080003L) + +// +// MessageId: CO_E_BAD_PATH +// +// MessageText: +// +// Bad path to object +// +#define CO_E_BAD_PATH _HRESULT_TYPEDEF_(0x80080004L) + +// +// MessageId: CO_E_SERVER_EXEC_FAILURE +// +// MessageText: +// +// Server execution failed +// +#define CO_E_SERVER_EXEC_FAILURE _HRESULT_TYPEDEF_(0x80080005L) + +// +// MessageId: CO_E_OBJSRV_RPC_FAILURE +// +// MessageText: +// +// OLE service could not communicate with the object server +// +#define CO_E_OBJSRV_RPC_FAILURE _HRESULT_TYPEDEF_(0x80080006L) + +// +// MessageId: MK_E_NO_NORMALIZED +// +// MessageText: +// +// Moniker path could not be normalized +// +#define MK_E_NO_NORMALIZED _HRESULT_TYPEDEF_(0x80080007L) + +// +// MessageId: CO_E_SERVER_STOPPING +// +// MessageText: +// +// Object server is stopping when OLE service contacts it +// +#define CO_E_SERVER_STOPPING _HRESULT_TYPEDEF_(0x80080008L) + +// +// MessageId: MEM_E_INVALID_ROOT +// +// MessageText: +// +// An invalid root block pointer was specified +// +#define MEM_E_INVALID_ROOT _HRESULT_TYPEDEF_(0x80080009L) + +// +// MessageId: MEM_E_INVALID_LINK +// +// MessageText: +// +// An allocation chain contained an invalid link pointer +// +#define MEM_E_INVALID_LINK _HRESULT_TYPEDEF_(0x80080010L) + +// +// MessageId: MEM_E_INVALID_SIZE +// +// MessageText: +// +// The requested allocation size was too large +// +#define MEM_E_INVALID_SIZE _HRESULT_TYPEDEF_(0x80080011L) + +// +// MessageId: CO_S_NOTALLINTERFACES +// +// MessageText: +// +// Not all the requested interfaces were available +// +#define CO_S_NOTALLINTERFACES _HRESULT_TYPEDEF_(0x00080012L) + +// +// MessageId: CO_S_MACHINENAMENOTFOUND +// +// MessageText: +// +// The specified machine name was not found in the cache. +// +#define CO_S_MACHINENAMENOTFOUND _HRESULT_TYPEDEF_(0x00080013L) + +// +// MessageId: CO_E_MISSING_DISPLAYNAME +// +// MessageText: +// +// The activation requires a display name to be present under the CLSID key. +// +#define CO_E_MISSING_DISPLAYNAME _HRESULT_TYPEDEF_(0x80080015L) + +// +// MessageId: CO_E_RUNAS_VALUE_MUST_BE_AAA +// +// MessageText: +// +// The activation requires that the RunAs value for the application is Activate As Activator. +// +#define CO_E_RUNAS_VALUE_MUST_BE_AAA _HRESULT_TYPEDEF_(0x80080016L) + +// +// MessageId: CO_E_ELEVATION_DISABLED +// +// MessageText: +// +// The class is not configured to support Elevated activation. +// +#define CO_E_ELEVATION_DISABLED _HRESULT_TYPEDEF_(0x80080017L) + +// +// Codes 0x0200-0x02ff are reserved for the APPX errors +// +// +// MessageId: APPX_E_PACKAGING_INTERNAL +// +// MessageText: +// +// Appx packaging API has encountered an internal error. +// +#define APPX_E_PACKAGING_INTERNAL _HRESULT_TYPEDEF_(0x80080200L) + +// +// MessageId: APPX_E_INTERLEAVING_NOT_ALLOWED +// +// MessageText: +// +// The file is not a valid Appx package because its contents are interleaved. +// +#define APPX_E_INTERLEAVING_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080201L) + +// +// MessageId: APPX_E_RELATIONSHIPS_NOT_ALLOWED +// +// MessageText: +// +// The file is not a valid Appx package because it contains OPC relationships. +// +#define APPX_E_RELATIONSHIPS_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080202L) + +// +// MessageId: APPX_E_MISSING_REQUIRED_FILE +// +// MessageText: +// +// The file is not a valid Appx package because it is missing a manifest or block map, or missing a signature file when the code integrity file is present. +// +#define APPX_E_MISSING_REQUIRED_FILE _HRESULT_TYPEDEF_(0x80080203L) + +// +// MessageId: APPX_E_INVALID_MANIFEST +// +// MessageText: +// +// The Appx package's manifest is invalid. +// +#define APPX_E_INVALID_MANIFEST _HRESULT_TYPEDEF_(0x80080204L) + +// +// MessageId: APPX_E_INVALID_BLOCKMAP +// +// MessageText: +// +// The Appx package's block map is invalid. +// +#define APPX_E_INVALID_BLOCKMAP _HRESULT_TYPEDEF_(0x80080205L) + +// +// MessageId: APPX_E_CORRUPT_CONTENT +// +// MessageText: +// +// The Appx package's content cannot be read because it is corrupt. +// +#define APPX_E_CORRUPT_CONTENT _HRESULT_TYPEDEF_(0x80080206L) + +// +// MessageId: APPX_E_BLOCK_HASH_INVALID +// +// MessageText: +// +// The computed hash value of the block does not match the one stored in the block map. +// +#define APPX_E_BLOCK_HASH_INVALID _HRESULT_TYPEDEF_(0x80080207L) + +// +// MessageId: APPX_E_REQUESTED_RANGE_TOO_LARGE +// +// MessageText: +// +// The requested byte range is over 4GB when translated to byte range of blocks. +// +#define APPX_E_REQUESTED_RANGE_TOO_LARGE _HRESULT_TYPEDEF_(0x80080208L) + +// +// MessageId: APPX_E_INVALID_SIP_CLIENT_DATA +// +// MessageText: +// +// The SIP_SUBJECTINFO structure used to sign the package didn't contain the required data. +// +#define APPX_E_INVALID_SIP_CLIENT_DATA _HRESULT_TYPEDEF_(0x80080209L) + +// +// MessageId: APPX_E_INVALID_KEY_INFO +// +// MessageText: +// +// The APPX_KEY_INFO structure used to encrypt or decrypt the package contains invalid data. +// +#define APPX_E_INVALID_KEY_INFO _HRESULT_TYPEDEF_(0x8008020AL) + +// +// MessageId: APPX_E_INVALID_CONTENTGROUPMAP +// +// MessageText: +// +// The Appx package's content group map is invalid. +// +#define APPX_E_INVALID_CONTENTGROUPMAP _HRESULT_TYPEDEF_(0x8008020BL) + +// +// MessageId: APPX_E_INVALID_APPINSTALLER +// +// MessageText: +// +// The .appinstaller file is invalid. +// +#define APPX_E_INVALID_APPINSTALLER _HRESULT_TYPEDEF_(0x8008020CL) + +// +// MessageId: APPX_E_DELTA_BASELINE_VERSION_MISMATCH +// +// MessageText: +// +// The baseline package version in delta package does not match the version in the baseline package to be updated. +// +#define APPX_E_DELTA_BASELINE_VERSION_MISMATCH _HRESULT_TYPEDEF_(0x8008020DL) + +// +// MessageId: APPX_E_DELTA_PACKAGE_MISSING_FILE +// +// MessageText: +// +// The delta package is missing a file from the updated package. +// +#define APPX_E_DELTA_PACKAGE_MISSING_FILE _HRESULT_TYPEDEF_(0x8008020EL) + +// +// MessageId: APPX_E_INVALID_DELTA_PACKAGE +// +// MessageText: +// +// The delta package is invalid. +// +#define APPX_E_INVALID_DELTA_PACKAGE _HRESULT_TYPEDEF_(0x8008020FL) + +// +// MessageId: APPX_E_DELTA_APPENDED_PACKAGE_NOT_ALLOWED +// +// MessageText: +// +// The delta appended package is not allowed for the current operation. +// +#define APPX_E_DELTA_APPENDED_PACKAGE_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080210L) + +// +// MessageId: APPX_E_INVALID_PACKAGING_LAYOUT +// +// MessageText: +// +// The packaging layout file is invalid. +// +#define APPX_E_INVALID_PACKAGING_LAYOUT _HRESULT_TYPEDEF_(0x80080211L) + +// +// MessageId: APPX_E_INVALID_PACKAGESIGNCONFIG +// +// MessageText: +// +// The packageSignConfig file is invalid. +// +#define APPX_E_INVALID_PACKAGESIGNCONFIG _HRESULT_TYPEDEF_(0x80080212L) + +// +// MessageId: APPX_E_RESOURCESPRI_NOT_ALLOWED +// +// MessageText: +// +// The resources.pri file is not allowed when there are no resource elements in the package manifest. +// +#define APPX_E_RESOURCESPRI_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080213L) + +// +// MessageId: APPX_E_FILE_COMPRESSION_MISMATCH +// +// MessageText: +// +// The compression state of file in baseline and updated package does not match. +// +#define APPX_E_FILE_COMPRESSION_MISMATCH _HRESULT_TYPEDEF_(0x80080214L) + +// +// MessageId: APPX_E_INVALID_PAYLOAD_PACKAGE_EXTENSION +// +// MessageText: +// +// Non appx extensions are not allowed for payload packages targeting older platforms. +// +#define APPX_E_INVALID_PAYLOAD_PACKAGE_EXTENSION _HRESULT_TYPEDEF_(0x80080215L) + +// +// MessageId: APPX_E_INVALID_ENCRYPTION_EXCLUSION_FILE_LIST +// +// MessageText: +// +// The encryptionExclusionFileList file is invalid. +// +#define APPX_E_INVALID_ENCRYPTION_EXCLUSION_FILE_LIST _HRESULT_TYPEDEF_(0x80080216L) + +// +// MessageId: APPX_E_INVALID_PACKAGE_FOLDER_ACLS +// +// MessageText: +// +// The package folder ACLs are invalid. +// +#define APPX_E_INVALID_PACKAGE_FOLDER_ACLS _HRESULT_TYPEDEF_(0x80080217L) + +// +// MessageId: APPX_E_INVALID_PUBLISHER_BRIDGING +// +// MessageText: +// +// The publisher bridging artifact is invalid. +// +#define APPX_E_INVALID_PUBLISHER_BRIDGING _HRESULT_TYPEDEF_(0x80080218L) + +// +// MessageId: APPX_E_DIGEST_MISMATCH +// +// MessageText: +// +// The expected digest value did not match the actual digest value of the content. +// +#define APPX_E_DIGEST_MISMATCH _HRESULT_TYPEDEF_(0x80080219L) + +// +// Codes 0x0300-0x030f are reserved for background task error codes. +// +// +// MessageId: BT_E_SPURIOUS_ACTIVATION +// +// MessageText: +// +// The background task activation is spurious. +// +#define BT_E_SPURIOUS_ACTIVATION _HRESULT_TYPEDEF_(0x80080300L) + +// ****************** +// FACILITY_DISPATCH +// ****************** +// +// MessageId: DISP_E_UNKNOWNINTERFACE +// +// MessageText: +// +// Unknown interface. +// +#define DISP_E_UNKNOWNINTERFACE _HRESULT_TYPEDEF_(0x80020001L) + +// +// MessageId: DISP_E_MEMBERNOTFOUND +// +// MessageText: +// +// Member not found. +// +#define DISP_E_MEMBERNOTFOUND _HRESULT_TYPEDEF_(0x80020003L) + +// +// MessageId: DISP_E_PARAMNOTFOUND +// +// MessageText: +// +// Parameter not found. +// +#define DISP_E_PARAMNOTFOUND _HRESULT_TYPEDEF_(0x80020004L) + +// +// MessageId: DISP_E_TYPEMISMATCH +// +// MessageText: +// +// Type mismatch. +// +#define DISP_E_TYPEMISMATCH _HRESULT_TYPEDEF_(0x80020005L) + +// +// MessageId: DISP_E_UNKNOWNNAME +// +// MessageText: +// +// Unknown name. +// +#define DISP_E_UNKNOWNNAME _HRESULT_TYPEDEF_(0x80020006L) + +// +// MessageId: DISP_E_NONAMEDARGS +// +// MessageText: +// +// No named arguments. +// +#define DISP_E_NONAMEDARGS _HRESULT_TYPEDEF_(0x80020007L) + +// +// MessageId: DISP_E_BADVARTYPE +// +// MessageText: +// +// Bad variable type. +// +#define DISP_E_BADVARTYPE _HRESULT_TYPEDEF_(0x80020008L) + +// +// MessageId: DISP_E_EXCEPTION +// +// MessageText: +// +// Exception occurred. +// +#define DISP_E_EXCEPTION _HRESULT_TYPEDEF_(0x80020009L) + +// +// MessageId: DISP_E_OVERFLOW +// +// MessageText: +// +// Out of present range. +// +#define DISP_E_OVERFLOW _HRESULT_TYPEDEF_(0x8002000AL) + +// +// MessageId: DISP_E_BADINDEX +// +// MessageText: +// +// Invalid index. +// +#define DISP_E_BADINDEX _HRESULT_TYPEDEF_(0x8002000BL) + +// +// MessageId: DISP_E_UNKNOWNLCID +// +// MessageText: +// +// Unknown language. +// +#define DISP_E_UNKNOWNLCID _HRESULT_TYPEDEF_(0x8002000CL) + +// +// MessageId: DISP_E_ARRAYISLOCKED +// +// MessageText: +// +// Memory is locked. +// +#define DISP_E_ARRAYISLOCKED _HRESULT_TYPEDEF_(0x8002000DL) + +// +// MessageId: DISP_E_BADPARAMCOUNT +// +// MessageText: +// +// Invalid number of parameters. +// +#define DISP_E_BADPARAMCOUNT _HRESULT_TYPEDEF_(0x8002000EL) + +// +// MessageId: DISP_E_PARAMNOTOPTIONAL +// +// MessageText: +// +// Parameter not optional. +// +#define DISP_E_PARAMNOTOPTIONAL _HRESULT_TYPEDEF_(0x8002000FL) + +// +// MessageId: DISP_E_BADCALLEE +// +// MessageText: +// +// Invalid callee. +// +#define DISP_E_BADCALLEE _HRESULT_TYPEDEF_(0x80020010L) + +// +// MessageId: DISP_E_NOTACOLLECTION +// +// MessageText: +// +// Does not support a collection. +// +#define DISP_E_NOTACOLLECTION _HRESULT_TYPEDEF_(0x80020011L) + +// +// MessageId: DISP_E_DIVBYZERO +// +// MessageText: +// +// Division by zero. +// +#define DISP_E_DIVBYZERO _HRESULT_TYPEDEF_(0x80020012L) + +// +// MessageId: DISP_E_BUFFERTOOSMALL +// +// MessageText: +// +// Buffer too small +// +#define DISP_E_BUFFERTOOSMALL _HRESULT_TYPEDEF_(0x80020013L) + +// +// MessageId: TYPE_E_BUFFERTOOSMALL +// +// MessageText: +// +// Buffer too small. +// +#define TYPE_E_BUFFERTOOSMALL _HRESULT_TYPEDEF_(0x80028016L) + +// +// MessageId: TYPE_E_FIELDNOTFOUND +// +// MessageText: +// +// Field name not defined in the record. +// +#define TYPE_E_FIELDNOTFOUND _HRESULT_TYPEDEF_(0x80028017L) + +// +// MessageId: TYPE_E_INVDATAREAD +// +// MessageText: +// +// Old format or invalid type library. +// +#define TYPE_E_INVDATAREAD _HRESULT_TYPEDEF_(0x80028018L) + +// +// MessageId: TYPE_E_UNSUPFORMAT +// +// MessageText: +// +// Old format or invalid type library. +// +#define TYPE_E_UNSUPFORMAT _HRESULT_TYPEDEF_(0x80028019L) + +// +// MessageId: TYPE_E_REGISTRYACCESS +// +// MessageText: +// +// Error accessing the OLE registry. +// +#define TYPE_E_REGISTRYACCESS _HRESULT_TYPEDEF_(0x8002801CL) + +// +// MessageId: TYPE_E_LIBNOTREGISTERED +// +// MessageText: +// +// Library not registered. +// +#define TYPE_E_LIBNOTREGISTERED _HRESULT_TYPEDEF_(0x8002801DL) + +// +// MessageId: TYPE_E_UNDEFINEDTYPE +// +// MessageText: +// +// Bound to unknown type. +// +#define TYPE_E_UNDEFINEDTYPE _HRESULT_TYPEDEF_(0x80028027L) + +// +// MessageId: TYPE_E_QUALIFIEDNAMEDISALLOWED +// +// MessageText: +// +// Qualified name disallowed. +// +#define TYPE_E_QUALIFIEDNAMEDISALLOWED _HRESULT_TYPEDEF_(0x80028028L) + +// +// MessageId: TYPE_E_INVALIDSTATE +// +// MessageText: +// +// Invalid forward reference, or reference to uncompiled type. +// +#define TYPE_E_INVALIDSTATE _HRESULT_TYPEDEF_(0x80028029L) + +// +// MessageId: TYPE_E_WRONGTYPEKIND +// +// MessageText: +// +// Type mismatch. +// +#define TYPE_E_WRONGTYPEKIND _HRESULT_TYPEDEF_(0x8002802AL) + +// +// MessageId: TYPE_E_ELEMENTNOTFOUND +// +// MessageText: +// +// Element not found. +// +#define TYPE_E_ELEMENTNOTFOUND _HRESULT_TYPEDEF_(0x8002802BL) + +// +// MessageId: TYPE_E_AMBIGUOUSNAME +// +// MessageText: +// +// Ambiguous name. +// +#define TYPE_E_AMBIGUOUSNAME _HRESULT_TYPEDEF_(0x8002802CL) + +// +// MessageId: TYPE_E_NAMECONFLICT +// +// MessageText: +// +// Name already exists in the library. +// +#define TYPE_E_NAMECONFLICT _HRESULT_TYPEDEF_(0x8002802DL) + +// +// MessageId: TYPE_E_UNKNOWNLCID +// +// MessageText: +// +// Unknown LCID. +// +#define TYPE_E_UNKNOWNLCID _HRESULT_TYPEDEF_(0x8002802EL) + +// +// MessageId: TYPE_E_DLLFUNCTIONNOTFOUND +// +// MessageText: +// +// Function not defined in specified DLL. +// +#define TYPE_E_DLLFUNCTIONNOTFOUND _HRESULT_TYPEDEF_(0x8002802FL) + +// +// MessageId: TYPE_E_BADMODULEKIND +// +// MessageText: +// +// Wrong module kind for the operation. +// +#define TYPE_E_BADMODULEKIND _HRESULT_TYPEDEF_(0x800288BDL) + +// +// MessageId: TYPE_E_SIZETOOBIG +// +// MessageText: +// +// Size may not exceed 64K. +// +#define TYPE_E_SIZETOOBIG _HRESULT_TYPEDEF_(0x800288C5L) + +// +// MessageId: TYPE_E_DUPLICATEID +// +// MessageText: +// +// Duplicate ID in inheritance hierarchy. +// +#define TYPE_E_DUPLICATEID _HRESULT_TYPEDEF_(0x800288C6L) + +// +// MessageId: TYPE_E_INVALIDID +// +// MessageText: +// +// Incorrect inheritance depth in standard OLE hmember. +// +#define TYPE_E_INVALIDID _HRESULT_TYPEDEF_(0x800288CFL) + +// +// MessageId: TYPE_E_TYPEMISMATCH +// +// MessageText: +// +// Type mismatch. +// +#define TYPE_E_TYPEMISMATCH _HRESULT_TYPEDEF_(0x80028CA0L) + +// +// MessageId: TYPE_E_OUTOFBOUNDS +// +// MessageText: +// +// Invalid number of arguments. +// +#define TYPE_E_OUTOFBOUNDS _HRESULT_TYPEDEF_(0x80028CA1L) + +// +// MessageId: TYPE_E_IOERROR +// +// MessageText: +// +// I/O Error. +// +#define TYPE_E_IOERROR _HRESULT_TYPEDEF_(0x80028CA2L) + +// +// MessageId: TYPE_E_CANTCREATETMPFILE +// +// MessageText: +// +// Error creating unique tmp file. +// +#define TYPE_E_CANTCREATETMPFILE _HRESULT_TYPEDEF_(0x80028CA3L) + +// +// MessageId: TYPE_E_CANTLOADLIBRARY +// +// MessageText: +// +// Error loading type library/DLL. +// +#define TYPE_E_CANTLOADLIBRARY _HRESULT_TYPEDEF_(0x80029C4AL) + +// +// MessageId: TYPE_E_INCONSISTENTPROPFUNCS +// +// MessageText: +// +// Inconsistent property functions. +// +#define TYPE_E_INCONSISTENTPROPFUNCS _HRESULT_TYPEDEF_(0x80029C83L) + +// +// MessageId: TYPE_E_CIRCULARTYPE +// +// MessageText: +// +// Circular dependency between types/modules. +// +#define TYPE_E_CIRCULARTYPE _HRESULT_TYPEDEF_(0x80029C84L) + +// ****************** +// FACILITY_STORAGE +// ****************** +// +// MessageId: STG_E_INVALIDFUNCTION +// +// MessageText: +// +// Unable to perform requested operation. +// +#define STG_E_INVALIDFUNCTION _HRESULT_TYPEDEF_(0x80030001L) + +// +// MessageId: STG_E_FILENOTFOUND +// +// MessageText: +// +// %1 could not be found. +// +#define STG_E_FILENOTFOUND _HRESULT_TYPEDEF_(0x80030002L) + +// +// MessageId: STG_E_PATHNOTFOUND +// +// MessageText: +// +// The path %1 could not be found. +// +#define STG_E_PATHNOTFOUND _HRESULT_TYPEDEF_(0x80030003L) + +// +// MessageId: STG_E_TOOMANYOPENFILES +// +// MessageText: +// +// There are insufficient resources to open another file. +// +#define STG_E_TOOMANYOPENFILES _HRESULT_TYPEDEF_(0x80030004L) + +// +// MessageId: STG_E_ACCESSDENIED +// +// MessageText: +// +// Access Denied. +// +#define STG_E_ACCESSDENIED _HRESULT_TYPEDEF_(0x80030005L) + +// +// MessageId: STG_E_INVALIDHANDLE +// +// MessageText: +// +// Attempted an operation on an invalid object. +// +#define STG_E_INVALIDHANDLE _HRESULT_TYPEDEF_(0x80030006L) + +// +// MessageId: STG_E_INSUFFICIENTMEMORY +// +// MessageText: +// +// There is insufficient memory available to complete operation. +// +#define STG_E_INSUFFICIENTMEMORY _HRESULT_TYPEDEF_(0x80030008L) + +// +// MessageId: STG_E_INVALIDPOINTER +// +// MessageText: +// +// Invalid pointer error. +// +#define STG_E_INVALIDPOINTER _HRESULT_TYPEDEF_(0x80030009L) + +// +// MessageId: STG_E_NOMOREFILES +// +// MessageText: +// +// There are no more entries to return. +// +#define STG_E_NOMOREFILES _HRESULT_TYPEDEF_(0x80030012L) + +// +// MessageId: STG_E_DISKISWRITEPROTECTED +// +// MessageText: +// +// Disk is write-protected. +// +#define STG_E_DISKISWRITEPROTECTED _HRESULT_TYPEDEF_(0x80030013L) + +// +// MessageId: STG_E_SEEKERROR +// +// MessageText: +// +// An error occurred during a seek operation. +// +#define STG_E_SEEKERROR _HRESULT_TYPEDEF_(0x80030019L) + +// +// MessageId: STG_E_WRITEFAULT +// +// MessageText: +// +// A disk error occurred during a write operation. +// +#define STG_E_WRITEFAULT _HRESULT_TYPEDEF_(0x8003001DL) + +// +// MessageId: STG_E_READFAULT +// +// MessageText: +// +// A disk error occurred during a read operation. +// +#define STG_E_READFAULT _HRESULT_TYPEDEF_(0x8003001EL) + +// +// MessageId: STG_E_SHAREVIOLATION +// +// MessageText: +// +// A share violation has occurred. +// +#define STG_E_SHAREVIOLATION _HRESULT_TYPEDEF_(0x80030020L) + +// +// MessageId: STG_E_LOCKVIOLATION +// +// MessageText: +// +// A lock violation has occurred. +// +#define STG_E_LOCKVIOLATION _HRESULT_TYPEDEF_(0x80030021L) + +// +// MessageId: STG_E_FILEALREADYEXISTS +// +// MessageText: +// +// %1 already exists. +// +#define STG_E_FILEALREADYEXISTS _HRESULT_TYPEDEF_(0x80030050L) + +// +// MessageId: STG_E_INVALIDPARAMETER +// +// MessageText: +// +// Invalid parameter error. +// +#define STG_E_INVALIDPARAMETER _HRESULT_TYPEDEF_(0x80030057L) + +// +// MessageId: STG_E_MEDIUMFULL +// +// MessageText: +// +// There is insufficient disk space to complete operation. +// +#define STG_E_MEDIUMFULL _HRESULT_TYPEDEF_(0x80030070L) + +// +// MessageId: STG_E_PROPSETMISMATCHED +// +// MessageText: +// +// Illegal write of non-simple property to simple property set. +// +#define STG_E_PROPSETMISMATCHED _HRESULT_TYPEDEF_(0x800300F0L) + +// +// MessageId: STG_E_ABNORMALAPIEXIT +// +// MessageText: +// +// An API call exited abnormally. +// +#define STG_E_ABNORMALAPIEXIT _HRESULT_TYPEDEF_(0x800300FAL) + +// +// MessageId: STG_E_INVALIDHEADER +// +// MessageText: +// +// The file %1 is not a valid compound file. +// +#define STG_E_INVALIDHEADER _HRESULT_TYPEDEF_(0x800300FBL) + +// +// MessageId: STG_E_INVALIDNAME +// +// MessageText: +// +// The name %1 is not valid. +// +#define STG_E_INVALIDNAME _HRESULT_TYPEDEF_(0x800300FCL) + +// +// MessageId: STG_E_UNKNOWN +// +// MessageText: +// +// An unexpected error occurred. +// +#define STG_E_UNKNOWN _HRESULT_TYPEDEF_(0x800300FDL) + +// +// MessageId: STG_E_UNIMPLEMENTEDFUNCTION +// +// MessageText: +// +// That function is not implemented. +// +#define STG_E_UNIMPLEMENTEDFUNCTION _HRESULT_TYPEDEF_(0x800300FEL) + +// +// MessageId: STG_E_INVALIDFLAG +// +// MessageText: +// +// Invalid flag error. +// +#define STG_E_INVALIDFLAG _HRESULT_TYPEDEF_(0x800300FFL) + +// +// MessageId: STG_E_INUSE +// +// MessageText: +// +// Attempted to use an object that is busy. +// +#define STG_E_INUSE _HRESULT_TYPEDEF_(0x80030100L) + +// +// MessageId: STG_E_NOTCURRENT +// +// MessageText: +// +// The storage has been changed since the last commit. +// +#define STG_E_NOTCURRENT _HRESULT_TYPEDEF_(0x80030101L) + +// +// MessageId: STG_E_REVERTED +// +// MessageText: +// +// Attempted to use an object that has ceased to exist. +// +#define STG_E_REVERTED _HRESULT_TYPEDEF_(0x80030102L) + +// +// MessageId: STG_E_CANTSAVE +// +// MessageText: +// +// Can't save. +// +#define STG_E_CANTSAVE _HRESULT_TYPEDEF_(0x80030103L) + +// +// MessageId: STG_E_OLDFORMAT +// +// MessageText: +// +// The compound file %1 was produced with an incompatible version of storage. +// +#define STG_E_OLDFORMAT _HRESULT_TYPEDEF_(0x80030104L) + +// +// MessageId: STG_E_OLDDLL +// +// MessageText: +// +// The compound file %1 was produced with a newer version of storage. +// +#define STG_E_OLDDLL _HRESULT_TYPEDEF_(0x80030105L) + +// +// MessageId: STG_E_SHAREREQUIRED +// +// MessageText: +// +// Share.exe or equivalent is required for operation. +// +#define STG_E_SHAREREQUIRED _HRESULT_TYPEDEF_(0x80030106L) + +// +// MessageId: STG_E_NOTFILEBASEDSTORAGE +// +// MessageText: +// +// Illegal operation called on non-file based storage. +// +#define STG_E_NOTFILEBASEDSTORAGE _HRESULT_TYPEDEF_(0x80030107L) + +// +// MessageId: STG_E_EXTANTMARSHALLINGS +// +// MessageText: +// +// Illegal operation called on object with extant marshallings. +// +#define STG_E_EXTANTMARSHALLINGS _HRESULT_TYPEDEF_(0x80030108L) + +// +// MessageId: STG_E_DOCFILECORRUPT +// +// MessageText: +// +// The docfile has been corrupted. +// +#define STG_E_DOCFILECORRUPT _HRESULT_TYPEDEF_(0x80030109L) + +// +// MessageId: STG_E_BADBASEADDRESS +// +// MessageText: +// +// OLE32.DLL has been loaded at the wrong address. +// +#define STG_E_BADBASEADDRESS _HRESULT_TYPEDEF_(0x80030110L) + +// +// MessageId: STG_E_DOCFILETOOLARGE +// +// MessageText: +// +// The compound file is too large for the current implementation +// +#define STG_E_DOCFILETOOLARGE _HRESULT_TYPEDEF_(0x80030111L) + +// +// MessageId: STG_E_NOTSIMPLEFORMAT +// +// MessageText: +// +// The compound file was not created with the STGM_SIMPLE flag +// +#define STG_E_NOTSIMPLEFORMAT _HRESULT_TYPEDEF_(0x80030112L) + +// +// MessageId: STG_E_INCOMPLETE +// +// MessageText: +// +// The file download was aborted abnormally. The file is incomplete. +// +#define STG_E_INCOMPLETE _HRESULT_TYPEDEF_(0x80030201L) + +// +// MessageId: STG_E_TERMINATED +// +// MessageText: +// +// The file download has been terminated. +// +#define STG_E_TERMINATED _HRESULT_TYPEDEF_(0x80030202L) + +// +// MessageId: STG_S_CONVERTED +// +// MessageText: +// +// The underlying file was converted to compound file format. +// +#define STG_S_CONVERTED _HRESULT_TYPEDEF_(0x00030200L) + +// +// MessageId: STG_S_BLOCK +// +// MessageText: +// +// The storage operation should block until more data is available. +// +#define STG_S_BLOCK _HRESULT_TYPEDEF_(0x00030201L) + +// +// MessageId: STG_S_RETRYNOW +// +// MessageText: +// +// The storage operation should retry immediately. +// +#define STG_S_RETRYNOW _HRESULT_TYPEDEF_(0x00030202L) + +// +// MessageId: STG_S_MONITORING +// +// MessageText: +// +// The notified event sink will not influence the storage operation. +// +#define STG_S_MONITORING _HRESULT_TYPEDEF_(0x00030203L) + +// +// MessageId: STG_S_MULTIPLEOPENS +// +// MessageText: +// +// Multiple opens prevent consolidated. (commit succeeded). +// +#define STG_S_MULTIPLEOPENS _HRESULT_TYPEDEF_(0x00030204L) + +// +// MessageId: STG_S_CONSOLIDATIONFAILED +// +// MessageText: +// +// Consolidation of the storage file failed. (commit succeeded). +// +#define STG_S_CONSOLIDATIONFAILED _HRESULT_TYPEDEF_(0x00030205L) + +// +// MessageId: STG_S_CANNOTCONSOLIDATE +// +// MessageText: +// +// Consolidation of the storage file is inappropriate. (commit succeeded). +// +#define STG_S_CANNOTCONSOLIDATE _HRESULT_TYPEDEF_(0x00030206L) + +// +// MessageId: STG_S_POWER_CYCLE_REQUIRED +// +// MessageText: +// +// The device needs to be power cycled. (commit succeeded). +// +#define STG_S_POWER_CYCLE_REQUIRED _HRESULT_TYPEDEF_(0x00030207L) + +// +// MessageId: STG_E_FIRMWARE_SLOT_INVALID +// +// MessageText: +// +// The specified firmware slot is invalid. +// +#define STG_E_FIRMWARE_SLOT_INVALID _HRESULT_TYPEDEF_(0x80030208L) + +// +// MessageId: STG_E_FIRMWARE_IMAGE_INVALID +// +// MessageText: +// +// The specified firmware image is invalid. +// +#define STG_E_FIRMWARE_IMAGE_INVALID _HRESULT_TYPEDEF_(0x80030209L) + +// +// MessageId: STG_E_DEVICE_UNRESPONSIVE +// +// MessageText: +// +// The storage device is unresponsive. +// +#define STG_E_DEVICE_UNRESPONSIVE _HRESULT_TYPEDEF_(0x8003020AL) + +/*++ + + MessageId's 0x0305 - 0x031f (inclusive) are reserved for **STORAGE** + copy protection errors. + +--*/ +// +// MessageId: STG_E_STATUS_COPY_PROTECTION_FAILURE +// +// MessageText: +// +// Generic Copy Protection Error. +// +#define STG_E_STATUS_COPY_PROTECTION_FAILURE _HRESULT_TYPEDEF_(0x80030305L) + +// +// MessageId: STG_E_CSS_AUTHENTICATION_FAILURE +// +// MessageText: +// +// Copy Protection Error - DVD CSS Authentication failed. +// +#define STG_E_CSS_AUTHENTICATION_FAILURE _HRESULT_TYPEDEF_(0x80030306L) + +// +// MessageId: STG_E_CSS_KEY_NOT_PRESENT +// +// MessageText: +// +// Copy Protection Error - The given sector does not have a valid CSS key. +// +#define STG_E_CSS_KEY_NOT_PRESENT _HRESULT_TYPEDEF_(0x80030307L) + +// +// MessageId: STG_E_CSS_KEY_NOT_ESTABLISHED +// +// MessageText: +// +// Copy Protection Error - DVD session key not established. +// +#define STG_E_CSS_KEY_NOT_ESTABLISHED _HRESULT_TYPEDEF_(0x80030308L) + +// +// MessageId: STG_E_CSS_SCRAMBLED_SECTOR +// +// MessageText: +// +// Copy Protection Error - The read failed because the sector is encrypted. +// +#define STG_E_CSS_SCRAMBLED_SECTOR _HRESULT_TYPEDEF_(0x80030309L) + +// +// MessageId: STG_E_CSS_REGION_MISMATCH +// +// MessageText: +// +// Copy Protection Error - The current DVD's region does not correspond to the region setting of the drive. +// +#define STG_E_CSS_REGION_MISMATCH _HRESULT_TYPEDEF_(0x8003030AL) + +// +// MessageId: STG_E_RESETS_EXHAUSTED +// +// MessageText: +// +// Copy Protection Error - The drive's region setting may be permanent or the number of user resets has been exhausted. +// +#define STG_E_RESETS_EXHAUSTED _HRESULT_TYPEDEF_(0x8003030BL) + +/*++ + + MessageId's 0x0305 - 0x031f (inclusive) are reserved for **STORAGE** + copy protection errors. + +--*/ +// ****************** +// FACILITY_RPC +// ****************** +// +// Codes 0x0-0x11 are propagated from 16 bit OLE. +// +// +// MessageId: RPC_E_CALL_REJECTED +// +// MessageText: +// +// Call was rejected by callee. +// +#define RPC_E_CALL_REJECTED _HRESULT_TYPEDEF_(0x80010001L) + +// +// MessageId: RPC_E_CALL_CANCELED +// +// MessageText: +// +// Call was canceled by the message filter. +// +#define RPC_E_CALL_CANCELED _HRESULT_TYPEDEF_(0x80010002L) + +// +// MessageId: RPC_E_CANTPOST_INSENDCALL +// +// MessageText: +// +// The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage. +// +#define RPC_E_CANTPOST_INSENDCALL _HRESULT_TYPEDEF_(0x80010003L) + +// +// MessageId: RPC_E_CANTCALLOUT_INASYNCCALL +// +// MessageText: +// +// The caller is dispatching an asynchronous call and cannot make an outgoing call on behalf of this call. +// +#define RPC_E_CANTCALLOUT_INASYNCCALL _HRESULT_TYPEDEF_(0x80010004L) + +// +// MessageId: RPC_E_CANTCALLOUT_INEXTERNALCALL +// +// MessageText: +// +// It is illegal to call out while inside message filter. +// +#define RPC_E_CANTCALLOUT_INEXTERNALCALL _HRESULT_TYPEDEF_(0x80010005L) + +// +// MessageId: RPC_E_CONNECTION_TERMINATED +// +// MessageText: +// +// The connection terminated or is in a bogus state and cannot be used any more. Other connections are still valid. +// +#define RPC_E_CONNECTION_TERMINATED _HRESULT_TYPEDEF_(0x80010006L) + +// +// MessageId: RPC_E_SERVER_DIED +// +// MessageText: +// +// The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call may have executed. +// +#define RPC_E_SERVER_DIED _HRESULT_TYPEDEF_(0x80010007L) + +// +// MessageId: RPC_E_CLIENT_DIED +// +// MessageText: +// +// The caller (client) disappeared while the callee (server) was processing a call. +// +#define RPC_E_CLIENT_DIED _HRESULT_TYPEDEF_(0x80010008L) + +// +// MessageId: RPC_E_INVALID_DATAPACKET +// +// MessageText: +// +// The data packet with the marshalled parameter data is incorrect. +// +#define RPC_E_INVALID_DATAPACKET _HRESULT_TYPEDEF_(0x80010009L) + +// +// MessageId: RPC_E_CANTTRANSMIT_CALL +// +// MessageText: +// +// The call was not transmitted properly; the message queue was full and was not emptied after yielding. +// +#define RPC_E_CANTTRANSMIT_CALL _HRESULT_TYPEDEF_(0x8001000AL) + +// +// MessageId: RPC_E_CLIENT_CANTMARSHAL_DATA +// +// MessageText: +// +// The client (caller) cannot marshall the parameter data - low memory, etc. +// +#define RPC_E_CLIENT_CANTMARSHAL_DATA _HRESULT_TYPEDEF_(0x8001000BL) + +// +// MessageId: RPC_E_CLIENT_CANTUNMARSHAL_DATA +// +// MessageText: +// +// The client (caller) cannot unmarshall the return data - low memory, etc. +// +#define RPC_E_CLIENT_CANTUNMARSHAL_DATA _HRESULT_TYPEDEF_(0x8001000CL) + +// +// MessageId: RPC_E_SERVER_CANTMARSHAL_DATA +// +// MessageText: +// +// The server (callee) cannot marshall the return data - low memory, etc. +// +#define RPC_E_SERVER_CANTMARSHAL_DATA _HRESULT_TYPEDEF_(0x8001000DL) + +// +// MessageId: RPC_E_SERVER_CANTUNMARSHAL_DATA +// +// MessageText: +// +// The server (callee) cannot unmarshall the parameter data - low memory, etc. +// +#define RPC_E_SERVER_CANTUNMARSHAL_DATA _HRESULT_TYPEDEF_(0x8001000EL) + +// +// MessageId: RPC_E_INVALID_DATA +// +// MessageText: +// +// Received data is invalid; could be server or client data. +// +#define RPC_E_INVALID_DATA _HRESULT_TYPEDEF_(0x8001000FL) + +// +// MessageId: RPC_E_INVALID_PARAMETER +// +// MessageText: +// +// A particular parameter is invalid and cannot be (un)marshalled. +// +#define RPC_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80010010L) + +// +// MessageId: RPC_E_CANTCALLOUT_AGAIN +// +// MessageText: +// +// There is no second outgoing call on same channel in DDE conversation. +// +#define RPC_E_CANTCALLOUT_AGAIN _HRESULT_TYPEDEF_(0x80010011L) + +// +// MessageId: RPC_E_SERVER_DIED_DNE +// +// MessageText: +// +// The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute. +// +#define RPC_E_SERVER_DIED_DNE _HRESULT_TYPEDEF_(0x80010012L) + +// +// MessageId: RPC_E_SYS_CALL_FAILED +// +// MessageText: +// +// System call failed. +// +#define RPC_E_SYS_CALL_FAILED _HRESULT_TYPEDEF_(0x80010100L) + +// +// MessageId: RPC_E_OUT_OF_RESOURCES +// +// MessageText: +// +// Could not allocate some required resource (memory, events, ...) +// +#define RPC_E_OUT_OF_RESOURCES _HRESULT_TYPEDEF_(0x80010101L) + +// +// MessageId: RPC_E_ATTEMPTED_MULTITHREAD +// +// MessageText: +// +// Attempted to make calls on more than one thread in single threaded mode. +// +#define RPC_E_ATTEMPTED_MULTITHREAD _HRESULT_TYPEDEF_(0x80010102L) + +// +// MessageId: RPC_E_NOT_REGISTERED +// +// MessageText: +// +// The requested interface is not registered on the server object. +// +#define RPC_E_NOT_REGISTERED _HRESULT_TYPEDEF_(0x80010103L) + +// +// MessageId: RPC_E_FAULT +// +// MessageText: +// +// RPC could not call the server or could not return the results of calling the server. +// +#define RPC_E_FAULT _HRESULT_TYPEDEF_(0x80010104L) + +// +// MessageId: RPC_E_SERVERFAULT +// +// MessageText: +// +// The server threw an exception. +// +#define RPC_E_SERVERFAULT _HRESULT_TYPEDEF_(0x80010105L) + +// +// MessageId: RPC_E_CHANGED_MODE +// +// MessageText: +// +// Cannot change thread mode after it is set. +// +#define RPC_E_CHANGED_MODE _HRESULT_TYPEDEF_(0x80010106L) + +// +// MessageId: RPC_E_INVALIDMETHOD +// +// MessageText: +// +// The method called does not exist on the server. +// +#define RPC_E_INVALIDMETHOD _HRESULT_TYPEDEF_(0x80010107L) + +// +// MessageId: RPC_E_DISCONNECTED +// +// MessageText: +// +// The object invoked has disconnected from its clients. +// +#define RPC_E_DISCONNECTED _HRESULT_TYPEDEF_(0x80010108L) + +// +// MessageId: RPC_E_RETRY +// +// MessageText: +// +// The object invoked chose not to process the call now. Try again later. +// +#define RPC_E_RETRY _HRESULT_TYPEDEF_(0x80010109L) + +// +// MessageId: RPC_E_SERVERCALL_RETRYLATER +// +// MessageText: +// +// The message filter indicated that the application is busy. +// +#define RPC_E_SERVERCALL_RETRYLATER _HRESULT_TYPEDEF_(0x8001010AL) + +// +// MessageId: RPC_E_SERVERCALL_REJECTED +// +// MessageText: +// +// The message filter rejected the call. +// +#define RPC_E_SERVERCALL_REJECTED _HRESULT_TYPEDEF_(0x8001010BL) + +// +// MessageId: RPC_E_INVALID_CALLDATA +// +// MessageText: +// +// A call control interfaces was called with invalid data. +// +#define RPC_E_INVALID_CALLDATA _HRESULT_TYPEDEF_(0x8001010CL) + +// +// MessageId: RPC_E_CANTCALLOUT_ININPUTSYNCCALL +// +// MessageText: +// +// An outgoing call cannot be made since the application is dispatching an input-synchronous call. +// +#define RPC_E_CANTCALLOUT_ININPUTSYNCCALL _HRESULT_TYPEDEF_(0x8001010DL) + +// +// MessageId: RPC_E_WRONG_THREAD +// +// MessageText: +// +// The application called an interface that was marshalled for a different thread. +// +#define RPC_E_WRONG_THREAD _HRESULT_TYPEDEF_(0x8001010EL) + +// +// MessageId: RPC_E_THREAD_NOT_INIT +// +// MessageText: +// +// CoInitialize has not been called on the current thread. +// +#define RPC_E_THREAD_NOT_INIT _HRESULT_TYPEDEF_(0x8001010FL) + +// +// MessageId: RPC_E_VERSION_MISMATCH +// +// MessageText: +// +// The version of OLE on the client and server machines does not match. +// +#define RPC_E_VERSION_MISMATCH _HRESULT_TYPEDEF_(0x80010110L) + +// +// MessageId: RPC_E_INVALID_HEADER +// +// MessageText: +// +// OLE received a packet with an invalid header. +// +#define RPC_E_INVALID_HEADER _HRESULT_TYPEDEF_(0x80010111L) + +// +// MessageId: RPC_E_INVALID_EXTENSION +// +// MessageText: +// +// OLE received a packet with an invalid extension. +// +#define RPC_E_INVALID_EXTENSION _HRESULT_TYPEDEF_(0x80010112L) + +// +// MessageId: RPC_E_INVALID_IPID +// +// MessageText: +// +// The requested object or interface does not exist. +// +#define RPC_E_INVALID_IPID _HRESULT_TYPEDEF_(0x80010113L) + +// +// MessageId: RPC_E_INVALID_OBJECT +// +// MessageText: +// +// The requested object does not exist. +// +#define RPC_E_INVALID_OBJECT _HRESULT_TYPEDEF_(0x80010114L) + +// +// MessageId: RPC_S_CALLPENDING +// +// MessageText: +// +// OLE has sent a request and is waiting for a reply. +// +#define RPC_S_CALLPENDING _HRESULT_TYPEDEF_(0x80010115L) + +// +// MessageId: RPC_S_WAITONTIMER +// +// MessageText: +// +// OLE is waiting before retrying a request. +// +#define RPC_S_WAITONTIMER _HRESULT_TYPEDEF_(0x80010116L) + +// +// MessageId: RPC_E_CALL_COMPLETE +// +// MessageText: +// +// Call context cannot be accessed after call completed. +// +#define RPC_E_CALL_COMPLETE _HRESULT_TYPEDEF_(0x80010117L) + +// +// MessageId: RPC_E_UNSECURE_CALL +// +// MessageText: +// +// Impersonate on unsecure calls is not supported. +// +#define RPC_E_UNSECURE_CALL _HRESULT_TYPEDEF_(0x80010118L) + +// +// MessageId: RPC_E_TOO_LATE +// +// MessageText: +// +// Security must be initialized before any interfaces are marshalled or unmarshalled. It cannot be changed once initialized. +// +#define RPC_E_TOO_LATE _HRESULT_TYPEDEF_(0x80010119L) + +// +// MessageId: RPC_E_NO_GOOD_SECURITY_PACKAGES +// +// MessageText: +// +// No security packages are installed on this machine or the user is not logged on or there are no compatible security packages between the client and server. +// +#define RPC_E_NO_GOOD_SECURITY_PACKAGES _HRESULT_TYPEDEF_(0x8001011AL) + +// +// MessageId: RPC_E_ACCESS_DENIED +// +// MessageText: +// +// Access is denied. +// +#define RPC_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x8001011BL) + +// +// MessageId: RPC_E_REMOTE_DISABLED +// +// MessageText: +// +// Remote calls are not allowed for this process. +// +#define RPC_E_REMOTE_DISABLED _HRESULT_TYPEDEF_(0x8001011CL) + +// +// MessageId: RPC_E_INVALID_OBJREF +// +// MessageText: +// +// The marshaled interface data packet (OBJREF) has an invalid or unknown format. +// +#define RPC_E_INVALID_OBJREF _HRESULT_TYPEDEF_(0x8001011DL) + +// +// MessageId: RPC_E_NO_CONTEXT +// +// MessageText: +// +// No context is associated with this call. This happens for some custom marshalled calls and on the client side of the call. +// +#define RPC_E_NO_CONTEXT _HRESULT_TYPEDEF_(0x8001011EL) + +// +// MessageId: RPC_E_TIMEOUT +// +// MessageText: +// +// This operation returned because the timeout period expired. +// +#define RPC_E_TIMEOUT _HRESULT_TYPEDEF_(0x8001011FL) + +// +// MessageId: RPC_E_NO_SYNC +// +// MessageText: +// +// There are no synchronize objects to wait on. +// +#define RPC_E_NO_SYNC _HRESULT_TYPEDEF_(0x80010120L) + +// +// MessageId: RPC_E_FULLSIC_REQUIRED +// +// MessageText: +// +// Full subject issuer chain SSL principal name expected from the server. +// +#define RPC_E_FULLSIC_REQUIRED _HRESULT_TYPEDEF_(0x80010121L) + +// +// MessageId: RPC_E_INVALID_STD_NAME +// +// MessageText: +// +// Principal name is not a valid MSSTD name. +// +#define RPC_E_INVALID_STD_NAME _HRESULT_TYPEDEF_(0x80010122L) + +// +// MessageId: CO_E_FAILEDTOIMPERSONATE +// +// MessageText: +// +// Unable to impersonate DCOM client +// +#define CO_E_FAILEDTOIMPERSONATE _HRESULT_TYPEDEF_(0x80010123L) + +// +// MessageId: CO_E_FAILEDTOGETSECCTX +// +// MessageText: +// +// Unable to obtain server's security context +// +#define CO_E_FAILEDTOGETSECCTX _HRESULT_TYPEDEF_(0x80010124L) + +// +// MessageId: CO_E_FAILEDTOOPENTHREADTOKEN +// +// MessageText: +// +// Unable to open the access token of the current thread +// +#define CO_E_FAILEDTOOPENTHREADTOKEN _HRESULT_TYPEDEF_(0x80010125L) + +// +// MessageId: CO_E_FAILEDTOGETTOKENINFO +// +// MessageText: +// +// Unable to obtain user info from an access token +// +#define CO_E_FAILEDTOGETTOKENINFO _HRESULT_TYPEDEF_(0x80010126L) + +// +// MessageId: CO_E_TRUSTEEDOESNTMATCHCLIENT +// +// MessageText: +// +// The client who called IAccessControl::IsAccessPermitted was not the trustee provided to the method +// +#define CO_E_TRUSTEEDOESNTMATCHCLIENT _HRESULT_TYPEDEF_(0x80010127L) + +// +// MessageId: CO_E_FAILEDTOQUERYCLIENTBLANKET +// +// MessageText: +// +// Unable to obtain the client's security blanket +// +#define CO_E_FAILEDTOQUERYCLIENTBLANKET _HRESULT_TYPEDEF_(0x80010128L) + +// +// MessageId: CO_E_FAILEDTOSETDACL +// +// MessageText: +// +// Unable to set a discretionary ACL into a security descriptor +// +#define CO_E_FAILEDTOSETDACL _HRESULT_TYPEDEF_(0x80010129L) + +// +// MessageId: CO_E_ACCESSCHECKFAILED +// +// MessageText: +// +// The system function, AccessCheck, returned false +// +#define CO_E_ACCESSCHECKFAILED _HRESULT_TYPEDEF_(0x8001012AL) + +// +// MessageId: CO_E_NETACCESSAPIFAILED +// +// MessageText: +// +// Either NetAccessDel or NetAccessAdd returned an error code. +// +#define CO_E_NETACCESSAPIFAILED _HRESULT_TYPEDEF_(0x8001012BL) + +// +// MessageId: CO_E_WRONGTRUSTEENAMESYNTAX +// +// MessageText: +// +// One of the trustee strings provided by the user did not conform to the \ syntax and it was not the "*" string +// +#define CO_E_WRONGTRUSTEENAMESYNTAX _HRESULT_TYPEDEF_(0x8001012CL) + +// +// MessageId: CO_E_INVALIDSID +// +// MessageText: +// +// One of the security identifiers provided by the user was invalid +// +#define CO_E_INVALIDSID _HRESULT_TYPEDEF_(0x8001012DL) + +// +// MessageId: CO_E_CONVERSIONFAILED +// +// MessageText: +// +// Unable to convert a wide character trustee string to a multibyte trustee string +// +#define CO_E_CONVERSIONFAILED _HRESULT_TYPEDEF_(0x8001012EL) + +// +// MessageId: CO_E_NOMATCHINGSIDFOUND +// +// MessageText: +// +// Unable to find a security identifier that corresponds to a trustee string provided by the user +// +#define CO_E_NOMATCHINGSIDFOUND _HRESULT_TYPEDEF_(0x8001012FL) + +// +// MessageId: CO_E_LOOKUPACCSIDFAILED +// +// MessageText: +// +// The system function, LookupAccountSID, failed +// +#define CO_E_LOOKUPACCSIDFAILED _HRESULT_TYPEDEF_(0x80010130L) + +// +// MessageId: CO_E_NOMATCHINGNAMEFOUND +// +// MessageText: +// +// Unable to find a trustee name that corresponds to a security identifier provided by the user +// +#define CO_E_NOMATCHINGNAMEFOUND _HRESULT_TYPEDEF_(0x80010131L) + +// +// MessageId: CO_E_LOOKUPACCNAMEFAILED +// +// MessageText: +// +// The system function, LookupAccountName, failed +// +#define CO_E_LOOKUPACCNAMEFAILED _HRESULT_TYPEDEF_(0x80010132L) + +// +// MessageId: CO_E_SETSERLHNDLFAILED +// +// MessageText: +// +// Unable to set or reset a serialization handle +// +#define CO_E_SETSERLHNDLFAILED _HRESULT_TYPEDEF_(0x80010133L) + +// +// MessageId: CO_E_FAILEDTOGETWINDIR +// +// MessageText: +// +// Unable to obtain the Windows directory +// +#define CO_E_FAILEDTOGETWINDIR _HRESULT_TYPEDEF_(0x80010134L) + +// +// MessageId: CO_E_PATHTOOLONG +// +// MessageText: +// +// Path too long +// +#define CO_E_PATHTOOLONG _HRESULT_TYPEDEF_(0x80010135L) + +// +// MessageId: CO_E_FAILEDTOGENUUID +// +// MessageText: +// +// Unable to generate a uuid. +// +#define CO_E_FAILEDTOGENUUID _HRESULT_TYPEDEF_(0x80010136L) + +// +// MessageId: CO_E_FAILEDTOCREATEFILE +// +// MessageText: +// +// Unable to create file +// +#define CO_E_FAILEDTOCREATEFILE _HRESULT_TYPEDEF_(0x80010137L) + +// +// MessageId: CO_E_FAILEDTOCLOSEHANDLE +// +// MessageText: +// +// Unable to close a serialization handle or a file handle. +// +#define CO_E_FAILEDTOCLOSEHANDLE _HRESULT_TYPEDEF_(0x80010138L) + +// +// MessageId: CO_E_EXCEEDSYSACLLIMIT +// +// MessageText: +// +// The number of ACEs in an ACL exceeds the system limit. +// +#define CO_E_EXCEEDSYSACLLIMIT _HRESULT_TYPEDEF_(0x80010139L) + +// +// MessageId: CO_E_ACESINWRONGORDER +// +// MessageText: +// +// Not all the DENY_ACCESS ACEs are arranged in front of the GRANT_ACCESS ACEs in the stream. +// +#define CO_E_ACESINWRONGORDER _HRESULT_TYPEDEF_(0x8001013AL) + +// +// MessageId: CO_E_INCOMPATIBLESTREAMVERSION +// +// MessageText: +// +// The version of ACL format in the stream is not supported by this implementation of IAccessControl +// +#define CO_E_INCOMPATIBLESTREAMVERSION _HRESULT_TYPEDEF_(0x8001013BL) + +// +// MessageId: CO_E_FAILEDTOOPENPROCESSTOKEN +// +// MessageText: +// +// Unable to open the access token of the server process +// +#define CO_E_FAILEDTOOPENPROCESSTOKEN _HRESULT_TYPEDEF_(0x8001013CL) + +// +// MessageId: CO_E_DECODEFAILED +// +// MessageText: +// +// Unable to decode the ACL in the stream provided by the user +// +#define CO_E_DECODEFAILED _HRESULT_TYPEDEF_(0x8001013DL) + +// +// MessageId: CO_E_ACNOTINITIALIZED +// +// MessageText: +// +// The COM IAccessControl object is not initialized +// +#define CO_E_ACNOTINITIALIZED _HRESULT_TYPEDEF_(0x8001013FL) + +// +// MessageId: CO_E_CANCEL_DISABLED +// +// MessageText: +// +// Call Cancellation is disabled +// +#define CO_E_CANCEL_DISABLED _HRESULT_TYPEDEF_(0x80010140L) + +// +// MessageId: CO_E_SERVER_CANNOT_BE_EQUAL_OR_GREATER_PRIVILEGE +// +// MessageText: +// +// The server was not activated because it cannot support running with privilege equal to the client or greater +// +#define CO_E_SERVER_CANNOT_BE_EQUAL_OR_GREATER_PRIVILEGE _HRESULT_TYPEDEF_(0x80010141L) + +// +// MessageId: CO_E_CANNOT_ACTIVATE_CROSS_PACKAGE_IN_SESSION_0 +// +// MessageText: +// +// An Activate As Activator Packaged server class cannot be activated from outside its package in session 0 +// +#define CO_E_CANNOT_ACTIVATE_CROSS_PACKAGE_IN_SESSION_0 _HRESULT_TYPEDEF_(0x80010142L) + +// +// MessageId: RPC_E_UNEXPECTED +// +// MessageText: +// +// An internal error occurred. +// +#define RPC_E_UNEXPECTED _HRESULT_TYPEDEF_(0x8001FFFFL) + + + +////////////////////////////////////// +// // +// Additional Security Status Codes // +// // +// Facility=Security // +// // +////////////////////////////////////// + + +// +// MessageId: ERROR_AUDITING_DISABLED +// +// MessageText: +// +// The specified event is currently not being audited. +// +#define ERROR_AUDITING_DISABLED _HRESULT_TYPEDEF_(0xC0090001L) + +// +// MessageId: ERROR_ALL_SIDS_FILTERED +// +// MessageText: +// +// The SID filtering operation removed all SIDs. +// +#define ERROR_ALL_SIDS_FILTERED _HRESULT_TYPEDEF_(0xC0090002L) + +// +// MessageId: ERROR_BIZRULES_NOT_ENABLED +// +// MessageText: +// +// Business rule scripts are disabled for the calling application. +// +#define ERROR_BIZRULES_NOT_ENABLED _HRESULT_TYPEDEF_(0xC0090003L) + + + +///////////////////////////////////////////// +// // +// end of Additional Security Status Codes // +// // +///////////////////////////////////////////// + + + + ///////////////// + // + // FACILITY_SSPI + // + ///////////////// + +// +// MessageId: NTE_BAD_UID +// +// MessageText: +// +// Bad UID. +// +#define NTE_BAD_UID _HRESULT_TYPEDEF_(0x80090001L) + +// +// MessageId: NTE_BAD_HASH +// +// MessageText: +// +// Bad Hash. +// +#define NTE_BAD_HASH _HRESULT_TYPEDEF_(0x80090002L) + +// +// MessageId: NTE_BAD_KEY +// +// MessageText: +// +// Bad Key. +// +#define NTE_BAD_KEY _HRESULT_TYPEDEF_(0x80090003L) + +// +// MessageId: NTE_BAD_LEN +// +// MessageText: +// +// Bad Length. +// +#define NTE_BAD_LEN _HRESULT_TYPEDEF_(0x80090004L) + +// +// MessageId: NTE_BAD_DATA +// +// MessageText: +// +// Bad Data. +// +#define NTE_BAD_DATA _HRESULT_TYPEDEF_(0x80090005L) + +// +// MessageId: NTE_BAD_SIGNATURE +// +// MessageText: +// +// Invalid Signature. +// +#define NTE_BAD_SIGNATURE _HRESULT_TYPEDEF_(0x80090006L) + +// +// MessageId: NTE_BAD_VER +// +// MessageText: +// +// Bad Version of provider. +// +#define NTE_BAD_VER _HRESULT_TYPEDEF_(0x80090007L) + +// +// MessageId: NTE_BAD_ALGID +// +// MessageText: +// +// Invalid algorithm specified. +// +#define NTE_BAD_ALGID _HRESULT_TYPEDEF_(0x80090008L) + +// +// MessageId: NTE_BAD_FLAGS +// +// MessageText: +// +// Invalid flags specified. +// +#define NTE_BAD_FLAGS _HRESULT_TYPEDEF_(0x80090009L) + +// +// MessageId: NTE_BAD_TYPE +// +// MessageText: +// +// Invalid type specified. +// +#define NTE_BAD_TYPE _HRESULT_TYPEDEF_(0x8009000AL) + +// +// MessageId: NTE_BAD_KEY_STATE +// +// MessageText: +// +// Key not valid for use in specified state. +// +#define NTE_BAD_KEY_STATE _HRESULT_TYPEDEF_(0x8009000BL) + +// +// MessageId: NTE_BAD_HASH_STATE +// +// MessageText: +// +// Hash not valid for use in specified state. +// +#define NTE_BAD_HASH_STATE _HRESULT_TYPEDEF_(0x8009000CL) + +// +// MessageId: NTE_NO_KEY +// +// MessageText: +// +// Key does not exist. +// +#define NTE_NO_KEY _HRESULT_TYPEDEF_(0x8009000DL) + +// +// MessageId: NTE_NO_MEMORY +// +// MessageText: +// +// Insufficient memory available for the operation. +// +#define NTE_NO_MEMORY _HRESULT_TYPEDEF_(0x8009000EL) + +// +// MessageId: NTE_EXISTS +// +// MessageText: +// +// Object already exists. +// +#define NTE_EXISTS _HRESULT_TYPEDEF_(0x8009000FL) + +// +// MessageId: NTE_PERM +// +// MessageText: +// +// Access denied. +// +#define NTE_PERM _HRESULT_TYPEDEF_(0x80090010L) + +// +// MessageId: NTE_NOT_FOUND +// +// MessageText: +// +// Object was not found. +// +#define NTE_NOT_FOUND _HRESULT_TYPEDEF_(0x80090011L) + +// +// MessageId: NTE_DOUBLE_ENCRYPT +// +// MessageText: +// +// Data already encrypted. +// +#define NTE_DOUBLE_ENCRYPT _HRESULT_TYPEDEF_(0x80090012L) + +// +// MessageId: NTE_BAD_PROVIDER +// +// MessageText: +// +// Invalid provider specified. +// +#define NTE_BAD_PROVIDER _HRESULT_TYPEDEF_(0x80090013L) + +// +// MessageId: NTE_BAD_PROV_TYPE +// +// MessageText: +// +// Invalid provider type specified. +// +#define NTE_BAD_PROV_TYPE _HRESULT_TYPEDEF_(0x80090014L) + +// +// MessageId: NTE_BAD_PUBLIC_KEY +// +// MessageText: +// +// Provider's public key is invalid. +// +#define NTE_BAD_PUBLIC_KEY _HRESULT_TYPEDEF_(0x80090015L) + +// +// MessageId: NTE_BAD_KEYSET +// +// MessageText: +// +// Keyset does not exist +// +#define NTE_BAD_KEYSET _HRESULT_TYPEDEF_(0x80090016L) + +// +// MessageId: NTE_PROV_TYPE_NOT_DEF +// +// MessageText: +// +// Provider type not defined. +// +#define NTE_PROV_TYPE_NOT_DEF _HRESULT_TYPEDEF_(0x80090017L) + +// +// MessageId: NTE_PROV_TYPE_ENTRY_BAD +// +// MessageText: +// +// Provider type as registered is invalid. +// +#define NTE_PROV_TYPE_ENTRY_BAD _HRESULT_TYPEDEF_(0x80090018L) + +// +// MessageId: NTE_KEYSET_NOT_DEF +// +// MessageText: +// +// The keyset is not defined. +// +#define NTE_KEYSET_NOT_DEF _HRESULT_TYPEDEF_(0x80090019L) + +// +// MessageId: NTE_KEYSET_ENTRY_BAD +// +// MessageText: +// +// Keyset as registered is invalid. +// +#define NTE_KEYSET_ENTRY_BAD _HRESULT_TYPEDEF_(0x8009001AL) + +// +// MessageId: NTE_PROV_TYPE_NO_MATCH +// +// MessageText: +// +// Provider type does not match registered value. +// +#define NTE_PROV_TYPE_NO_MATCH _HRESULT_TYPEDEF_(0x8009001BL) + +// +// MessageId: NTE_SIGNATURE_FILE_BAD +// +// MessageText: +// +// The digital signature file is corrupt. +// +#define NTE_SIGNATURE_FILE_BAD _HRESULT_TYPEDEF_(0x8009001CL) + +// +// MessageId: NTE_PROVIDER_DLL_FAIL +// +// MessageText: +// +// Provider DLL failed to initialize correctly. +// +#define NTE_PROVIDER_DLL_FAIL _HRESULT_TYPEDEF_(0x8009001DL) + +// +// MessageId: NTE_PROV_DLL_NOT_FOUND +// +// MessageText: +// +// Provider DLL could not be found. +// +#define NTE_PROV_DLL_NOT_FOUND _HRESULT_TYPEDEF_(0x8009001EL) + +// +// MessageId: NTE_BAD_KEYSET_PARAM +// +// MessageText: +// +// The Keyset parameter is invalid. +// +#define NTE_BAD_KEYSET_PARAM _HRESULT_TYPEDEF_(0x8009001FL) + +// +// MessageId: NTE_FAIL +// +// MessageText: +// +// An internal error occurred. +// +#define NTE_FAIL _HRESULT_TYPEDEF_(0x80090020L) + +// +// MessageId: NTE_SYS_ERR +// +// MessageText: +// +// A base error occurred. +// +#define NTE_SYS_ERR _HRESULT_TYPEDEF_(0x80090021L) + +// +// MessageId: NTE_SILENT_CONTEXT +// +// MessageText: +// +// Provider could not perform the action since the context was acquired as silent. +// +#define NTE_SILENT_CONTEXT _HRESULT_TYPEDEF_(0x80090022L) + +// +// MessageId: NTE_TOKEN_KEYSET_STORAGE_FULL +// +// MessageText: +// +// The security token does not have storage space available for an additional container. +// +#define NTE_TOKEN_KEYSET_STORAGE_FULL _HRESULT_TYPEDEF_(0x80090023L) + +// +// MessageId: NTE_TEMPORARY_PROFILE +// +// MessageText: +// +// The profile for the user is a temporary profile. +// +#define NTE_TEMPORARY_PROFILE _HRESULT_TYPEDEF_(0x80090024L) + +// +// MessageId: NTE_FIXEDPARAMETER +// +// MessageText: +// +// The key parameters could not be set because the CSP uses fixed parameters. +// +#define NTE_FIXEDPARAMETER _HRESULT_TYPEDEF_(0x80090025L) + +// +// MessageId: NTE_INVALID_HANDLE +// +// MessageText: +// +// The supplied handle is invalid. +// +#define NTE_INVALID_HANDLE _HRESULT_TYPEDEF_(0x80090026L) + +// +// MessageId: NTE_INVALID_PARAMETER +// +// MessageText: +// +// The parameter is incorrect. +// +#define NTE_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80090027L) + +// +// MessageId: NTE_BUFFER_TOO_SMALL +// +// MessageText: +// +// The buffer supplied to a function was too small. +// +#define NTE_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x80090028L) + +// +// MessageId: NTE_NOT_SUPPORTED +// +// MessageText: +// +// The requested operation is not supported. +// +#define NTE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80090029L) + +// +// MessageId: NTE_NO_MORE_ITEMS +// +// MessageText: +// +// No more data is available. +// +#define NTE_NO_MORE_ITEMS _HRESULT_TYPEDEF_(0x8009002AL) + +// +// MessageId: NTE_BUFFERS_OVERLAP +// +// MessageText: +// +// The supplied buffers overlap incorrectly. +// +#define NTE_BUFFERS_OVERLAP _HRESULT_TYPEDEF_(0x8009002BL) + +// +// MessageId: NTE_DECRYPTION_FAILURE +// +// MessageText: +// +// The specified data could not be decrypted. +// +#define NTE_DECRYPTION_FAILURE _HRESULT_TYPEDEF_(0x8009002CL) + +// +// MessageId: NTE_INTERNAL_ERROR +// +// MessageText: +// +// An internal consistency check failed. +// +#define NTE_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x8009002DL) + +// +// MessageId: NTE_UI_REQUIRED +// +// MessageText: +// +// This operation requires input from the user. +// +#define NTE_UI_REQUIRED _HRESULT_TYPEDEF_(0x8009002EL) + +// +// MessageId: NTE_HMAC_NOT_SUPPORTED +// +// MessageText: +// +// The cryptographic provider does not support HMAC. +// +#define NTE_HMAC_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8009002FL) + +// +// MessageId: NTE_DEVICE_NOT_READY +// +// MessageText: +// +// The device that is required by this cryptographic provider is not ready for use. +// +#define NTE_DEVICE_NOT_READY _HRESULT_TYPEDEF_(0x80090030L) + +// +// MessageId: NTE_AUTHENTICATION_IGNORED +// +// MessageText: +// +// The dictionary attack mitigation is triggered and the provided authorization was ignored by the provider. +// +#define NTE_AUTHENTICATION_IGNORED _HRESULT_TYPEDEF_(0x80090031L) + +// +// MessageId: NTE_VALIDATION_FAILED +// +// MessageText: +// +// The validation of the provided data failed the integrity or signature validation. +// +#define NTE_VALIDATION_FAILED _HRESULT_TYPEDEF_(0x80090032L) + +// +// MessageId: NTE_INCORRECT_PASSWORD +// +// MessageText: +// +// Incorrect password. +// +#define NTE_INCORRECT_PASSWORD _HRESULT_TYPEDEF_(0x80090033L) + +// +// MessageId: NTE_ENCRYPTION_FAILURE +// +// MessageText: +// +// Encryption failed. +// +#define NTE_ENCRYPTION_FAILURE _HRESULT_TYPEDEF_(0x80090034L) + +// +// MessageId: NTE_DEVICE_NOT_FOUND +// +// MessageText: +// +// The device that is required by this cryptographic provider is not found on this platform. +// +#define NTE_DEVICE_NOT_FOUND _HRESULT_TYPEDEF_(0x80090035L) + +// +// MessageId: NTE_USER_CANCELLED +// +// MessageText: +// +// The action was cancelled by the user. +// +#define NTE_USER_CANCELLED _HRESULT_TYPEDEF_(0x80090036L) + +// +// MessageId: NTE_PASSWORD_CHANGE_REQUIRED +// +// MessageText: +// +// The password is no longer valid and must be changed. +// +#define NTE_PASSWORD_CHANGE_REQUIRED _HRESULT_TYPEDEF_(0x80090037L) + +// +// MessageId: NTE_NOT_ACTIVE_CONSOLE +// +// MessageText: +// +// The operation cannot be completed from Terminal Server client sessions. +// +#define NTE_NOT_ACTIVE_CONSOLE _HRESULT_TYPEDEF_(0x80090038L) + +// +// MessageId: NTE_VBS_UNAVAILABLE +// +// MessageText: +// +// VBS key isolation is not available. +// +#define NTE_VBS_UNAVAILABLE _HRESULT_TYPEDEF_(0x80090039L) + +// +// MessageId: NTE_VBS_CANNOT_DECRYPT_KEY +// +// MessageText: +// +// Cannot decrypt a VBS-isolated key. +// +#define NTE_VBS_CANNOT_DECRYPT_KEY _HRESULT_TYPEDEF_(0x8009003AL) + +// +// MessageId: SEC_E_INSUFFICIENT_MEMORY +// +// MessageText: +// +// Not enough memory is available to complete this request +// +#define SEC_E_INSUFFICIENT_MEMORY _HRESULT_TYPEDEF_(0x80090300L) + +// +// MessageId: SEC_E_INVALID_HANDLE +// +// MessageText: +// +// The handle specified is invalid +// +#define SEC_E_INVALID_HANDLE _HRESULT_TYPEDEF_(0x80090301L) + +// +// MessageId: SEC_E_UNSUPPORTED_FUNCTION +// +// MessageText: +// +// The function requested is not supported +// +#define SEC_E_UNSUPPORTED_FUNCTION _HRESULT_TYPEDEF_(0x80090302L) + +// +// MessageId: SEC_E_TARGET_UNKNOWN +// +// MessageText: +// +// The specified target is unknown or unreachable +// +#define SEC_E_TARGET_UNKNOWN _HRESULT_TYPEDEF_(0x80090303L) + +// +// MessageId: SEC_E_INTERNAL_ERROR +// +// MessageText: +// +// The Local Security Authority cannot be contacted +// +#define SEC_E_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80090304L) + +// +// MessageId: SEC_E_SECPKG_NOT_FOUND +// +// MessageText: +// +// The requested security package does not exist +// +#define SEC_E_SECPKG_NOT_FOUND _HRESULT_TYPEDEF_(0x80090305L) + +// +// MessageId: SEC_E_NOT_OWNER +// +// MessageText: +// +// The caller is not the owner of the desired credentials +// +#define SEC_E_NOT_OWNER _HRESULT_TYPEDEF_(0x80090306L) + +// +// MessageId: SEC_E_CANNOT_INSTALL +// +// MessageText: +// +// The security package failed to initialize, and cannot be installed +// +#define SEC_E_CANNOT_INSTALL _HRESULT_TYPEDEF_(0x80090307L) + +// +// MessageId: SEC_E_INVALID_TOKEN +// +// MessageText: +// +// The token supplied to the function is invalid +// +#define SEC_E_INVALID_TOKEN _HRESULT_TYPEDEF_(0x80090308L) + +// +// MessageId: SEC_E_CANNOT_PACK +// +// MessageText: +// +// The security package is not able to marshall the logon buffer, so the logon attempt has failed +// +#define SEC_E_CANNOT_PACK _HRESULT_TYPEDEF_(0x80090309L) + +// +// MessageId: SEC_E_QOP_NOT_SUPPORTED +// +// MessageText: +// +// The per-message Quality of Protection is not supported by the security package +// +#define SEC_E_QOP_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8009030AL) + +// +// MessageId: SEC_E_NO_IMPERSONATION +// +// MessageText: +// +// The security context does not allow impersonation of the client +// +#define SEC_E_NO_IMPERSONATION _HRESULT_TYPEDEF_(0x8009030BL) + +// +// MessageId: SEC_E_LOGON_DENIED +// +// MessageText: +// +// The logon attempt failed +// +#define SEC_E_LOGON_DENIED _HRESULT_TYPEDEF_(0x8009030CL) + +// +// MessageId: SEC_E_UNKNOWN_CREDENTIALS +// +// MessageText: +// +// The credentials supplied to the package were not recognized +// +#define SEC_E_UNKNOWN_CREDENTIALS _HRESULT_TYPEDEF_(0x8009030DL) + +// +// MessageId: SEC_E_NO_CREDENTIALS +// +// MessageText: +// +// No credentials are available in the security package +// +#define SEC_E_NO_CREDENTIALS _HRESULT_TYPEDEF_(0x8009030EL) + +// +// MessageId: SEC_E_MESSAGE_ALTERED +// +// MessageText: +// +// The message or signature supplied for verification has been altered +// +#define SEC_E_MESSAGE_ALTERED _HRESULT_TYPEDEF_(0x8009030FL) + +// +// MessageId: SEC_E_OUT_OF_SEQUENCE +// +// MessageText: +// +// The message supplied for verification is out of sequence +// +#define SEC_E_OUT_OF_SEQUENCE _HRESULT_TYPEDEF_(0x80090310L) + +// +// MessageId: SEC_E_NO_AUTHENTICATING_AUTHORITY +// +// MessageText: +// +// No authority could be contacted for authentication. +// +#define SEC_E_NO_AUTHENTICATING_AUTHORITY _HRESULT_TYPEDEF_(0x80090311L) + +// +// MessageId: SEC_I_CONTINUE_NEEDED +// +// MessageText: +// +// The function completed successfully, but must be called again to complete the context +// +#define SEC_I_CONTINUE_NEEDED _HRESULT_TYPEDEF_(0x00090312L) + +// +// MessageId: SEC_I_COMPLETE_NEEDED +// +// MessageText: +// +// The function completed successfully, but CompleteToken must be called +// +#define SEC_I_COMPLETE_NEEDED _HRESULT_TYPEDEF_(0x00090313L) + +// +// MessageId: SEC_I_COMPLETE_AND_CONTINUE +// +// MessageText: +// +// The function completed successfully, but both CompleteToken and this function must be called to complete the context +// +#define SEC_I_COMPLETE_AND_CONTINUE _HRESULT_TYPEDEF_(0x00090314L) + +// +// MessageId: SEC_I_LOCAL_LOGON +// +// MessageText: +// +// The logon was completed, but no network authority was available. The logon was made using locally known information +// +#define SEC_I_LOCAL_LOGON _HRESULT_TYPEDEF_(0x00090315L) + +// +// MessageId: SEC_I_GENERIC_EXTENSION_RECEIVED +// +// MessageText: +// +// Schannel has received a TLS extension the SSPI caller subscribed to. +// +#define SEC_I_GENERIC_EXTENSION_RECEIVED _HRESULT_TYPEDEF_(0x00090316L) + +// +// MessageId: SEC_E_BAD_PKGID +// +// MessageText: +// +// The requested security package does not exist +// +#define SEC_E_BAD_PKGID _HRESULT_TYPEDEF_(0x80090316L) + +// +// MessageId: SEC_E_CONTEXT_EXPIRED +// +// MessageText: +// +// The context has expired and can no longer be used. +// +#define SEC_E_CONTEXT_EXPIRED _HRESULT_TYPEDEF_(0x80090317L) + +// +// MessageId: SEC_I_CONTEXT_EXPIRED +// +// MessageText: +// +// The context has expired and can no longer be used. +// +#define SEC_I_CONTEXT_EXPIRED _HRESULT_TYPEDEF_(0x00090317L) + +// +// MessageId: SEC_E_INCOMPLETE_MESSAGE +// +// MessageText: +// +// The supplied message is incomplete. The signature was not verified. +// +#define SEC_E_INCOMPLETE_MESSAGE _HRESULT_TYPEDEF_(0x80090318L) + +// +// MessageId: SEC_E_INCOMPLETE_CREDENTIALS +// +// MessageText: +// +// The credentials supplied were not complete, and could not be verified. The context could not be initialized. +// +#define SEC_E_INCOMPLETE_CREDENTIALS _HRESULT_TYPEDEF_(0x80090320L) + +// +// MessageId: SEC_E_BUFFER_TOO_SMALL +// +// MessageText: +// +// The buffers supplied to a function was too small. +// +#define SEC_E_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x80090321L) + +// +// MessageId: SEC_I_INCOMPLETE_CREDENTIALS +// +// MessageText: +// +// The credentials supplied were not complete, and could not be verified. Additional information can be returned from the context. +// +#define SEC_I_INCOMPLETE_CREDENTIALS _HRESULT_TYPEDEF_(0x00090320L) + +// +// MessageId: SEC_I_RENEGOTIATE +// +// MessageText: +// +// The context data must be renegotiated with the peer. +// +#define SEC_I_RENEGOTIATE _HRESULT_TYPEDEF_(0x00090321L) + +// +// MessageId: SEC_E_WRONG_PRINCIPAL +// +// MessageText: +// +// The target principal name is incorrect. +// +#define SEC_E_WRONG_PRINCIPAL _HRESULT_TYPEDEF_(0x80090322L) + +// +// MessageId: SEC_I_NO_LSA_CONTEXT +// +// MessageText: +// +// There is no LSA mode context associated with this context. +// +#define SEC_I_NO_LSA_CONTEXT _HRESULT_TYPEDEF_(0x00090323L) + +// +// MessageId: SEC_E_TIME_SKEW +// +// MessageText: +// +// The clocks on the client and server machines are skewed. +// +#define SEC_E_TIME_SKEW _HRESULT_TYPEDEF_(0x80090324L) + +// +// MessageId: SEC_E_UNTRUSTED_ROOT +// +// MessageText: +// +// The certificate chain was issued by an authority that is not trusted. +// +#define SEC_E_UNTRUSTED_ROOT _HRESULT_TYPEDEF_(0x80090325L) + +// +// MessageId: SEC_E_ILLEGAL_MESSAGE +// +// MessageText: +// +// The message received was unexpected or badly formatted. +// +#define SEC_E_ILLEGAL_MESSAGE _HRESULT_TYPEDEF_(0x80090326L) + +// +// MessageId: SEC_E_CERT_UNKNOWN +// +// MessageText: +// +// An unknown error occurred while processing the certificate. +// +#define SEC_E_CERT_UNKNOWN _HRESULT_TYPEDEF_(0x80090327L) + +// +// MessageId: SEC_E_CERT_EXPIRED +// +// MessageText: +// +// The received certificate has expired. +// +#define SEC_E_CERT_EXPIRED _HRESULT_TYPEDEF_(0x80090328L) + +// +// MessageId: SEC_E_ENCRYPT_FAILURE +// +// MessageText: +// +// The specified data could not be encrypted. +// +#define SEC_E_ENCRYPT_FAILURE _HRESULT_TYPEDEF_(0x80090329L) + +// +// MessageId: SEC_E_DECRYPT_FAILURE +// +// MessageText: +// +// The specified data could not be decrypted. +// +// +#define SEC_E_DECRYPT_FAILURE _HRESULT_TYPEDEF_(0x80090330L) + +// +// MessageId: SEC_E_ALGORITHM_MISMATCH +// +// MessageText: +// +// The client and server cannot communicate, because they do not possess a common algorithm. +// +#define SEC_E_ALGORITHM_MISMATCH _HRESULT_TYPEDEF_(0x80090331L) + +// +// MessageId: SEC_E_SECURITY_QOS_FAILED +// +// MessageText: +// +// The security context could not be established due to a failure in the requested quality of service (e.g. mutual authentication or delegation). +// +#define SEC_E_SECURITY_QOS_FAILED _HRESULT_TYPEDEF_(0x80090332L) + +// +// MessageId: SEC_E_UNFINISHED_CONTEXT_DELETED +// +// MessageText: +// +// A security context was deleted before the context was completed. This is considered a logon failure. +// +#define SEC_E_UNFINISHED_CONTEXT_DELETED _HRESULT_TYPEDEF_(0x80090333L) + +// +// MessageId: SEC_E_NO_TGT_REPLY +// +// MessageText: +// +// The client is trying to negotiate a context and the server requires user-to-user but didn't send a TGT reply. +// +#define SEC_E_NO_TGT_REPLY _HRESULT_TYPEDEF_(0x80090334L) + +// +// MessageId: SEC_E_NO_IP_ADDRESSES +// +// MessageText: +// +// Unable to accomplish the requested task because the local machine does not have any IP addresses. +// +#define SEC_E_NO_IP_ADDRESSES _HRESULT_TYPEDEF_(0x80090335L) + +// +// MessageId: SEC_E_WRONG_CREDENTIAL_HANDLE +// +// MessageText: +// +// The supplied credential handle does not match the credential associated with the security context. +// +#define SEC_E_WRONG_CREDENTIAL_HANDLE _HRESULT_TYPEDEF_(0x80090336L) + +// +// MessageId: SEC_E_CRYPTO_SYSTEM_INVALID +// +// MessageText: +// +// The crypto system or checksum function is invalid because a required function is unavailable. +// +#define SEC_E_CRYPTO_SYSTEM_INVALID _HRESULT_TYPEDEF_(0x80090337L) + +// +// MessageId: SEC_E_MAX_REFERRALS_EXCEEDED +// +// MessageText: +// +// The number of maximum ticket referrals has been exceeded. +// +#define SEC_E_MAX_REFERRALS_EXCEEDED _HRESULT_TYPEDEF_(0x80090338L) + +// +// MessageId: SEC_E_MUST_BE_KDC +// +// MessageText: +// +// The local machine must be a Kerberos KDC (domain controller) and it is not. +// +#define SEC_E_MUST_BE_KDC _HRESULT_TYPEDEF_(0x80090339L) + +// +// MessageId: SEC_E_STRONG_CRYPTO_NOT_SUPPORTED +// +// MessageText: +// +// The other end of the security negotiation is requires strong crypto but it is not supported on the local machine. +// +#define SEC_E_STRONG_CRYPTO_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8009033AL) + +// +// MessageId: SEC_E_TOO_MANY_PRINCIPALS +// +// MessageText: +// +// The KDC reply contained more than one principal name. +// +#define SEC_E_TOO_MANY_PRINCIPALS _HRESULT_TYPEDEF_(0x8009033BL) + +// +// MessageId: SEC_E_NO_PA_DATA +// +// MessageText: +// +// Expected to find PA data for a hint of what etype to use, but it was not found. +// +#define SEC_E_NO_PA_DATA _HRESULT_TYPEDEF_(0x8009033CL) + +// +// MessageId: SEC_E_PKINIT_NAME_MISMATCH +// +// MessageText: +// +// The client certificate does not contain a valid UPN, or does not match the client name in the logon request. Please contact your administrator. +// +#define SEC_E_PKINIT_NAME_MISMATCH _HRESULT_TYPEDEF_(0x8009033DL) + +// +// MessageId: SEC_E_SMARTCARD_LOGON_REQUIRED +// +// MessageText: +// +// Smartcard logon is required and was not used. +// +#define SEC_E_SMARTCARD_LOGON_REQUIRED _HRESULT_TYPEDEF_(0x8009033EL) + +// +// MessageId: SEC_E_SHUTDOWN_IN_PROGRESS +// +// MessageText: +// +// A system shutdown is in progress. +// +#define SEC_E_SHUTDOWN_IN_PROGRESS _HRESULT_TYPEDEF_(0x8009033FL) + +// +// MessageId: SEC_E_KDC_INVALID_REQUEST +// +// MessageText: +// +// An invalid request was sent to the KDC. +// +#define SEC_E_KDC_INVALID_REQUEST _HRESULT_TYPEDEF_(0x80090340L) + +// +// MessageId: SEC_E_KDC_UNABLE_TO_REFER +// +// MessageText: +// +// The KDC was unable to generate a referral for the service requested. +// +#define SEC_E_KDC_UNABLE_TO_REFER _HRESULT_TYPEDEF_(0x80090341L) + +// +// MessageId: SEC_E_KDC_UNKNOWN_ETYPE +// +// MessageText: +// +// The encryption type requested is not supported by the KDC. +// +#define SEC_E_KDC_UNKNOWN_ETYPE _HRESULT_TYPEDEF_(0x80090342L) + +// +// MessageId: SEC_E_UNSUPPORTED_PREAUTH +// +// MessageText: +// +// An unsupported preauthentication mechanism was presented to the Kerberos package. +// +#define SEC_E_UNSUPPORTED_PREAUTH _HRESULT_TYPEDEF_(0x80090343L) + +// +// MessageId: SEC_E_DELEGATION_REQUIRED +// +// MessageText: +// +// The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation. +// +#define SEC_E_DELEGATION_REQUIRED _HRESULT_TYPEDEF_(0x80090345L) + +// +// MessageId: SEC_E_BAD_BINDINGS +// +// MessageText: +// +// Client's supplied SSPI channel bindings were incorrect. +// +#define SEC_E_BAD_BINDINGS _HRESULT_TYPEDEF_(0x80090346L) + +// +// MessageId: SEC_E_MULTIPLE_ACCOUNTS +// +// MessageText: +// +// The received certificate was mapped to multiple accounts. +// +#define SEC_E_MULTIPLE_ACCOUNTS _HRESULT_TYPEDEF_(0x80090347L) + +// +// MessageId: SEC_E_NO_KERB_KEY +// +// MessageText: +// +// SEC_E_NO_KERB_KEY +// +#define SEC_E_NO_KERB_KEY _HRESULT_TYPEDEF_(0x80090348L) + +// +// MessageId: SEC_E_CERT_WRONG_USAGE +// +// MessageText: +// +// The certificate is not valid for the requested usage. +// +#define SEC_E_CERT_WRONG_USAGE _HRESULT_TYPEDEF_(0x80090349L) + +// +// MessageId: SEC_E_DOWNGRADE_DETECTED +// +// MessageText: +// +// The system cannot contact a domain controller to service the authentication request. Please try again later. +// +#define SEC_E_DOWNGRADE_DETECTED _HRESULT_TYPEDEF_(0x80090350L) + +// +// MessageId: SEC_E_SMARTCARD_CERT_REVOKED +// +// MessageText: +// +// The smartcard certificate used for authentication has been revoked. Please contact your system administrator. There may be additional information in the event log. +// +#define SEC_E_SMARTCARD_CERT_REVOKED _HRESULT_TYPEDEF_(0x80090351L) + +// +// MessageId: SEC_E_ISSUING_CA_UNTRUSTED +// +// MessageText: +// +// An untrusted certificate authority was detected while processing the smartcard certificate used for authentication. Please contact your system administrator. +// +#define SEC_E_ISSUING_CA_UNTRUSTED _HRESULT_TYPEDEF_(0x80090352L) + +// +// MessageId: SEC_E_REVOCATION_OFFLINE_C +// +// MessageText: +// +// The revocation status of the smartcard certificate used for authentication could not be determined. Please contact your system administrator. +// +#define SEC_E_REVOCATION_OFFLINE_C _HRESULT_TYPEDEF_(0x80090353L) + +// +// MessageId: SEC_E_PKINIT_CLIENT_FAILURE +// +// MessageText: +// +// The smartcard certificate used for authentication was not trusted. Please contact your system administrator. +// +#define SEC_E_PKINIT_CLIENT_FAILURE _HRESULT_TYPEDEF_(0x80090354L) + +// +// MessageId: SEC_E_SMARTCARD_CERT_EXPIRED +// +// MessageText: +// +// The smartcard certificate used for authentication has expired. Please contact your system administrator. +// +#define SEC_E_SMARTCARD_CERT_EXPIRED _HRESULT_TYPEDEF_(0x80090355L) + +// +// MessageId: SEC_E_NO_S4U_PROT_SUPPORT +// +// MessageText: +// +// The Kerberos subsystem encountered an error. A service for user protocol request was made against a domain controller which does not support service for user. +// +#define SEC_E_NO_S4U_PROT_SUPPORT _HRESULT_TYPEDEF_(0x80090356L) + +// +// MessageId: SEC_E_CROSSREALM_DELEGATION_FAILURE +// +// MessageText: +// +// An attempt was made by this server to make a Kerberos constrained delegation request for a target outside of the server's realm. This is not supported, and indicates a misconfiguration on this server's allowed to delegate to list. Please contact your administrator. +// +#define SEC_E_CROSSREALM_DELEGATION_FAILURE _HRESULT_TYPEDEF_(0x80090357L) + +// +// MessageId: SEC_E_REVOCATION_OFFLINE_KDC +// +// MessageText: +// +// The revocation status of the domain controller certificate used for smartcard authentication could not be determined. There is additional information in the system event log. Please contact your system administrator. +// +#define SEC_E_REVOCATION_OFFLINE_KDC _HRESULT_TYPEDEF_(0x80090358L) + +// +// MessageId: SEC_E_ISSUING_CA_UNTRUSTED_KDC +// +// MessageText: +// +// An untrusted certificate authority was detected while processing the domain controller certificate used for authentication. There is additional information in the system event log. Please contact your system administrator. +// +#define SEC_E_ISSUING_CA_UNTRUSTED_KDC _HRESULT_TYPEDEF_(0x80090359L) + +// +// MessageId: SEC_E_KDC_CERT_EXPIRED +// +// MessageText: +// +// The domain controller certificate used for smartcard logon has expired. Please contact your system administrator with the contents of your system event log. +// +#define SEC_E_KDC_CERT_EXPIRED _HRESULT_TYPEDEF_(0x8009035AL) + +// +// MessageId: SEC_E_KDC_CERT_REVOKED +// +// MessageText: +// +// The domain controller certificate used for smartcard logon has been revoked. Please contact your system administrator with the contents of your system event log. +// +#define SEC_E_KDC_CERT_REVOKED _HRESULT_TYPEDEF_(0x8009035BL) + +// +// MessageId: SEC_I_SIGNATURE_NEEDED +// +// MessageText: +// +// A signature operation must be performed before the user can authenticate. +// +#define SEC_I_SIGNATURE_NEEDED _HRESULT_TYPEDEF_(0x0009035CL) + +// +// MessageId: SEC_E_INVALID_PARAMETER +// +// MessageText: +// +// One or more of the parameters passed to the function was invalid. +// +#define SEC_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x8009035DL) + +// +// MessageId: SEC_E_DELEGATION_POLICY +// +// MessageText: +// +// Client policy does not allow credential delegation to target server. +// +#define SEC_E_DELEGATION_POLICY _HRESULT_TYPEDEF_(0x8009035EL) + +// +// MessageId: SEC_E_POLICY_NLTM_ONLY +// +// MessageText: +// +// Client policy does not allow credential delegation to target server with NLTM only authentication. +// +#define SEC_E_POLICY_NLTM_ONLY _HRESULT_TYPEDEF_(0x8009035FL) + +// +// MessageId: SEC_I_NO_RENEGOTIATION +// +// MessageText: +// +// The recipient rejected the renegotiation request. +// +#define SEC_I_NO_RENEGOTIATION _HRESULT_TYPEDEF_(0x00090360L) + +// +// MessageId: SEC_E_NO_CONTEXT +// +// MessageText: +// +// The required security context does not exist. +// +#define SEC_E_NO_CONTEXT _HRESULT_TYPEDEF_(0x80090361L) + +// +// MessageId: SEC_E_PKU2U_CERT_FAILURE +// +// MessageText: +// +// The PKU2U protocol encountered an error while attempting to utilize the associated certificates. +// +#define SEC_E_PKU2U_CERT_FAILURE _HRESULT_TYPEDEF_(0x80090362L) + +// +// MessageId: SEC_E_MUTUAL_AUTH_FAILED +// +// MessageText: +// +// The identity of the server computer could not be verified. +// +#define SEC_E_MUTUAL_AUTH_FAILED _HRESULT_TYPEDEF_(0x80090363L) + +// +// MessageId: SEC_I_MESSAGE_FRAGMENT +// +// MessageText: +// +// The returned buffer is only a fragment of the message. More fragments need to be returned. +// +#define SEC_I_MESSAGE_FRAGMENT _HRESULT_TYPEDEF_(0x00090364L) + +// +// MessageId: SEC_E_ONLY_HTTPS_ALLOWED +// +// MessageText: +// +// Only https scheme is allowed. +// +#define SEC_E_ONLY_HTTPS_ALLOWED _HRESULT_TYPEDEF_(0x80090365L) + +// +// MessageId: SEC_I_CONTINUE_NEEDED_MESSAGE_OK +// +// MessageText: +// +// The function completed successfully, but must be called again to complete the context. Early start can be used. +// +#define SEC_I_CONTINUE_NEEDED_MESSAGE_OK _HRESULT_TYPEDEF_(0x00090366L) + +// +// MessageId: SEC_E_APPLICATION_PROTOCOL_MISMATCH +// +// MessageText: +// +// No common application protocol exists between the client and the server. Application protocol negotiation failed. +// +#define SEC_E_APPLICATION_PROTOCOL_MISMATCH _HRESULT_TYPEDEF_(0x80090367L) + +// +// MessageId: SEC_I_ASYNC_CALL_PENDING +// +// MessageText: +// +// An asynchronous SSPI routine has been called and the work is pending completion. +// +#define SEC_I_ASYNC_CALL_PENDING _HRESULT_TYPEDEF_(0x00090368L) + +// +// MessageId: SEC_E_INVALID_UPN_NAME +// +// MessageText: +// +// You can't sign in with a user ID in this format. Try using your email address instead. +// +#define SEC_E_INVALID_UPN_NAME _HRESULT_TYPEDEF_(0x80090369L) + +// +// MessageId: SEC_E_EXT_BUFFER_TOO_SMALL +// +// MessageText: +// +// The buffer supplied by the SSPI caller to receive generic extensions is too small. +// +#define SEC_E_EXT_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x8009036AL) + +// +// MessageId: SEC_E_INSUFFICIENT_BUFFERS +// +// MessageText: +// +// Not enough secbuffers were supplied to generate a token. +// +#define SEC_E_INSUFFICIENT_BUFFERS _HRESULT_TYPEDEF_(0x8009036BL) + +// +// MessageId: SEC_I_INVALID_SESSION_STATE +// +// MessageText: +// +// The TLS session cannot be resumed. +// +#define SEC_I_INVALID_SESSION_STATE _HRESULT_TYPEDEF_(0x8009036CL) + +// +// Provided for backwards compatibility +// + +#define SEC_E_NO_SPM SEC_E_INTERNAL_ERROR +#define SEC_E_NOT_SUPPORTED SEC_E_UNSUPPORTED_FUNCTION + +// +// MessageId: CRYPT_E_MSG_ERROR +// +// MessageText: +// +// An error occurred while performing an operation on a cryptographic message. +// +#define CRYPT_E_MSG_ERROR _HRESULT_TYPEDEF_(0x80091001L) + +// +// MessageId: CRYPT_E_UNKNOWN_ALGO +// +// MessageText: +// +// Unknown cryptographic algorithm. +// +#define CRYPT_E_UNKNOWN_ALGO _HRESULT_TYPEDEF_(0x80091002L) + +// +// MessageId: CRYPT_E_OID_FORMAT +// +// MessageText: +// +// The object identifier is poorly formatted. +// +#define CRYPT_E_OID_FORMAT _HRESULT_TYPEDEF_(0x80091003L) + +// +// MessageId: CRYPT_E_INVALID_MSG_TYPE +// +// MessageText: +// +// Invalid cryptographic message type. +// +#define CRYPT_E_INVALID_MSG_TYPE _HRESULT_TYPEDEF_(0x80091004L) + +// +// MessageId: CRYPT_E_UNEXPECTED_ENCODING +// +// MessageText: +// +// Unexpected cryptographic message encoding. +// +#define CRYPT_E_UNEXPECTED_ENCODING _HRESULT_TYPEDEF_(0x80091005L) + +// +// MessageId: CRYPT_E_AUTH_ATTR_MISSING +// +// MessageText: +// +// The cryptographic message does not contain an expected authenticated attribute. +// +#define CRYPT_E_AUTH_ATTR_MISSING _HRESULT_TYPEDEF_(0x80091006L) + +// +// MessageId: CRYPT_E_HASH_VALUE +// +// MessageText: +// +// The hash value is not correct. +// +#define CRYPT_E_HASH_VALUE _HRESULT_TYPEDEF_(0x80091007L) + +// +// MessageId: CRYPT_E_INVALID_INDEX +// +// MessageText: +// +// The index value is not valid. +// +#define CRYPT_E_INVALID_INDEX _HRESULT_TYPEDEF_(0x80091008L) + +// +// MessageId: CRYPT_E_ALREADY_DECRYPTED +// +// MessageText: +// +// The content of the cryptographic message has already been decrypted. +// +#define CRYPT_E_ALREADY_DECRYPTED _HRESULT_TYPEDEF_(0x80091009L) + +// +// MessageId: CRYPT_E_NOT_DECRYPTED +// +// MessageText: +// +// The content of the cryptographic message has not been decrypted yet. +// +#define CRYPT_E_NOT_DECRYPTED _HRESULT_TYPEDEF_(0x8009100AL) + +// +// MessageId: CRYPT_E_RECIPIENT_NOT_FOUND +// +// MessageText: +// +// The enveloped-data message does not contain the specified recipient. +// +#define CRYPT_E_RECIPIENT_NOT_FOUND _HRESULT_TYPEDEF_(0x8009100BL) + +// +// MessageId: CRYPT_E_CONTROL_TYPE +// +// MessageText: +// +// Invalid control type. +// +#define CRYPT_E_CONTROL_TYPE _HRESULT_TYPEDEF_(0x8009100CL) + +// +// MessageId: CRYPT_E_ISSUER_SERIALNUMBER +// +// MessageText: +// +// Invalid issuer and/or serial number. +// +#define CRYPT_E_ISSUER_SERIALNUMBER _HRESULT_TYPEDEF_(0x8009100DL) + +// +// MessageId: CRYPT_E_SIGNER_NOT_FOUND +// +// MessageText: +// +// Cannot find the original signer. +// +#define CRYPT_E_SIGNER_NOT_FOUND _HRESULT_TYPEDEF_(0x8009100EL) + +// +// MessageId: CRYPT_E_ATTRIBUTES_MISSING +// +// MessageText: +// +// The cryptographic message does not contain all of the requested attributes. +// +#define CRYPT_E_ATTRIBUTES_MISSING _HRESULT_TYPEDEF_(0x8009100FL) + +// +// MessageId: CRYPT_E_STREAM_MSG_NOT_READY +// +// MessageText: +// +// The streamed cryptographic message is not ready to return data. +// +#define CRYPT_E_STREAM_MSG_NOT_READY _HRESULT_TYPEDEF_(0x80091010L) + +// +// MessageId: CRYPT_E_STREAM_INSUFFICIENT_DATA +// +// MessageText: +// +// The streamed cryptographic message requires more data to complete the decode operation. +// +#define CRYPT_E_STREAM_INSUFFICIENT_DATA _HRESULT_TYPEDEF_(0x80091011L) + +// +// MessageId: CRYPT_I_NEW_PROTECTION_REQUIRED +// +// MessageText: +// +// The protected data needs to be re-protected. +// +#define CRYPT_I_NEW_PROTECTION_REQUIRED _HRESULT_TYPEDEF_(0x00091012L) + +// +// MessageId: CRYPT_E_BAD_LEN +// +// MessageText: +// +// The length specified for the output data was insufficient. +// +#define CRYPT_E_BAD_LEN _HRESULT_TYPEDEF_(0x80092001L) + +// +// MessageId: CRYPT_E_BAD_ENCODE +// +// MessageText: +// +// An error occurred during encode or decode operation. +// +#define CRYPT_E_BAD_ENCODE _HRESULT_TYPEDEF_(0x80092002L) + +// +// MessageId: CRYPT_E_FILE_ERROR +// +// MessageText: +// +// An error occurred while reading or writing to a file. +// +#define CRYPT_E_FILE_ERROR _HRESULT_TYPEDEF_(0x80092003L) + +// +// MessageId: CRYPT_E_NOT_FOUND +// +// MessageText: +// +// Cannot find object or property. +// +#define CRYPT_E_NOT_FOUND _HRESULT_TYPEDEF_(0x80092004L) + +// +// MessageId: CRYPT_E_EXISTS +// +// MessageText: +// +// The object or property already exists. +// +#define CRYPT_E_EXISTS _HRESULT_TYPEDEF_(0x80092005L) + +// +// MessageId: CRYPT_E_NO_PROVIDER +// +// MessageText: +// +// No provider was specified for the store or object. +// +#define CRYPT_E_NO_PROVIDER _HRESULT_TYPEDEF_(0x80092006L) + +// +// MessageId: CRYPT_E_SELF_SIGNED +// +// MessageText: +// +// The specified certificate is self signed. +// +#define CRYPT_E_SELF_SIGNED _HRESULT_TYPEDEF_(0x80092007L) + +// +// MessageId: CRYPT_E_DELETED_PREV +// +// MessageText: +// +// The previous certificate or CRL context was deleted. +// +#define CRYPT_E_DELETED_PREV _HRESULT_TYPEDEF_(0x80092008L) + +// +// MessageId: CRYPT_E_NO_MATCH +// +// MessageText: +// +// Cannot find the requested object. +// +#define CRYPT_E_NO_MATCH _HRESULT_TYPEDEF_(0x80092009L) + +// +// MessageId: CRYPT_E_UNEXPECTED_MSG_TYPE +// +// MessageText: +// +// The certificate does not have a property that references a private key. +// +#define CRYPT_E_UNEXPECTED_MSG_TYPE _HRESULT_TYPEDEF_(0x8009200AL) + +// +// MessageId: CRYPT_E_NO_KEY_PROPERTY +// +// MessageText: +// +// Cannot find the certificate and private key for decryption. +// +#define CRYPT_E_NO_KEY_PROPERTY _HRESULT_TYPEDEF_(0x8009200BL) + +// +// MessageId: CRYPT_E_NO_DECRYPT_CERT +// +// MessageText: +// +// Cannot find the certificate and private key to use for decryption. +// +#define CRYPT_E_NO_DECRYPT_CERT _HRESULT_TYPEDEF_(0x8009200CL) + +// +// MessageId: CRYPT_E_BAD_MSG +// +// MessageText: +// +// Not a cryptographic message or the cryptographic message is not formatted correctly. +// +#define CRYPT_E_BAD_MSG _HRESULT_TYPEDEF_(0x8009200DL) + +// +// MessageId: CRYPT_E_NO_SIGNER +// +// MessageText: +// +// The signed cryptographic message does not have a signer for the specified signer index. +// +#define CRYPT_E_NO_SIGNER _HRESULT_TYPEDEF_(0x8009200EL) + +// +// MessageId: CRYPT_E_PENDING_CLOSE +// +// MessageText: +// +// Final closure is pending until additional frees or closes. +// +#define CRYPT_E_PENDING_CLOSE _HRESULT_TYPEDEF_(0x8009200FL) + +// +// MessageId: CRYPT_E_REVOKED +// +// MessageText: +// +// The certificate is revoked. +// +#define CRYPT_E_REVOKED _HRESULT_TYPEDEF_(0x80092010L) + +// +// MessageId: CRYPT_E_NO_REVOCATION_DLL +// +// MessageText: +// +// No Dll or exported function was found to verify revocation. +// +#define CRYPT_E_NO_REVOCATION_DLL _HRESULT_TYPEDEF_(0x80092011L) + +// +// MessageId: CRYPT_E_NO_REVOCATION_CHECK +// +// MessageText: +// +// The revocation function was unable to check revocation for the certificate. +// +#define CRYPT_E_NO_REVOCATION_CHECK _HRESULT_TYPEDEF_(0x80092012L) + +// +// MessageId: CRYPT_E_REVOCATION_OFFLINE +// +// MessageText: +// +// The revocation function was unable to check revocation because the revocation server was offline. +// +#define CRYPT_E_REVOCATION_OFFLINE _HRESULT_TYPEDEF_(0x80092013L) + +// +// MessageId: CRYPT_E_NOT_IN_REVOCATION_DATABASE +// +// MessageText: +// +// The certificate is not in the revocation server's database. +// +#define CRYPT_E_NOT_IN_REVOCATION_DATABASE _HRESULT_TYPEDEF_(0x80092014L) + +// +// MessageId: CRYPT_E_INVALID_NUMERIC_STRING +// +// MessageText: +// +// The string contains a non-numeric character. +// +#define CRYPT_E_INVALID_NUMERIC_STRING _HRESULT_TYPEDEF_(0x80092020L) + +// +// MessageId: CRYPT_E_INVALID_PRINTABLE_STRING +// +// MessageText: +// +// The string contains a non-printable character. +// +#define CRYPT_E_INVALID_PRINTABLE_STRING _HRESULT_TYPEDEF_(0x80092021L) + +// +// MessageId: CRYPT_E_INVALID_IA5_STRING +// +// MessageText: +// +// The string contains a character not in the 7 bit ASCII character set. +// +#define CRYPT_E_INVALID_IA5_STRING _HRESULT_TYPEDEF_(0x80092022L) + +// +// MessageId: CRYPT_E_INVALID_X500_STRING +// +// MessageText: +// +// The string contains an invalid X500 name attribute key, oid, value or delimiter. +// +#define CRYPT_E_INVALID_X500_STRING _HRESULT_TYPEDEF_(0x80092023L) + +// +// MessageId: CRYPT_E_NOT_CHAR_STRING +// +// MessageText: +// +// The dwValueType for the CERT_NAME_VALUE is not one of the character strings. Most likely it is either a CERT_RDN_ENCODED_BLOB or CERT_RDN_OCTET_STRING. +// +#define CRYPT_E_NOT_CHAR_STRING _HRESULT_TYPEDEF_(0x80092024L) + +// +// MessageId: CRYPT_E_FILERESIZED +// +// MessageText: +// +// The Put operation cannot continue. The file needs to be resized. However, there is already a signature present. A complete signing operation must be done. +// +#define CRYPT_E_FILERESIZED _HRESULT_TYPEDEF_(0x80092025L) + +// +// MessageId: CRYPT_E_SECURITY_SETTINGS +// +// MessageText: +// +// The cryptographic operation failed due to a local security option setting. +// +#define CRYPT_E_SECURITY_SETTINGS _HRESULT_TYPEDEF_(0x80092026L) + +// +// MessageId: CRYPT_E_NO_VERIFY_USAGE_DLL +// +// MessageText: +// +// No DLL or exported function was found to verify subject usage. +// +#define CRYPT_E_NO_VERIFY_USAGE_DLL _HRESULT_TYPEDEF_(0x80092027L) + +// +// MessageId: CRYPT_E_NO_VERIFY_USAGE_CHECK +// +// MessageText: +// +// The called function was unable to do a usage check on the subject. +// +#define CRYPT_E_NO_VERIFY_USAGE_CHECK _HRESULT_TYPEDEF_(0x80092028L) + +// +// MessageId: CRYPT_E_VERIFY_USAGE_OFFLINE +// +// MessageText: +// +// Since the server was offline, the called function was unable to complete the usage check. +// +#define CRYPT_E_VERIFY_USAGE_OFFLINE _HRESULT_TYPEDEF_(0x80092029L) + +// +// MessageId: CRYPT_E_NOT_IN_CTL +// +// MessageText: +// +// The subject was not found in a Certificate Trust List (CTL). +// +#define CRYPT_E_NOT_IN_CTL _HRESULT_TYPEDEF_(0x8009202AL) + +// +// MessageId: CRYPT_E_NO_TRUSTED_SIGNER +// +// MessageText: +// +// None of the signers of the cryptographic message or certificate trust list is trusted. +// +#define CRYPT_E_NO_TRUSTED_SIGNER _HRESULT_TYPEDEF_(0x8009202BL) + +// +// MessageId: CRYPT_E_MISSING_PUBKEY_PARA +// +// MessageText: +// +// The public key's algorithm parameters are missing. +// +#define CRYPT_E_MISSING_PUBKEY_PARA _HRESULT_TYPEDEF_(0x8009202CL) + +// +// MessageId: CRYPT_E_OBJECT_LOCATOR_OBJECT_NOT_FOUND +// +// MessageText: +// +// An object could not be located using the object locator infrastructure with the given name. +// +#define CRYPT_E_OBJECT_LOCATOR_OBJECT_NOT_FOUND _HRESULT_TYPEDEF_(0x8009202DL) + +// +// MessageId: CRYPT_E_OSS_ERROR +// +// MessageText: +// +// OSS Certificate encode/decode error code base +// +// See asn1code.h for a definition of the OSS runtime errors. The OSS error values are offset by CRYPT_E_OSS_ERROR. +// +#define CRYPT_E_OSS_ERROR _HRESULT_TYPEDEF_(0x80093000L) + +// +// MessageId: OSS_MORE_BUF +// +// MessageText: +// +// OSS ASN.1 Error: Output Buffer is too small. +// +#define OSS_MORE_BUF _HRESULT_TYPEDEF_(0x80093001L) + +// +// MessageId: OSS_NEGATIVE_UINTEGER +// +// MessageText: +// +// OSS ASN.1 Error: Signed integer is encoded as a unsigned integer. +// +#define OSS_NEGATIVE_UINTEGER _HRESULT_TYPEDEF_(0x80093002L) + +// +// MessageId: OSS_PDU_RANGE +// +// MessageText: +// +// OSS ASN.1 Error: Unknown ASN.1 data type. +// +#define OSS_PDU_RANGE _HRESULT_TYPEDEF_(0x80093003L) + +// +// MessageId: OSS_MORE_INPUT +// +// MessageText: +// +// OSS ASN.1 Error: Output buffer is too small, the decoded data has been truncated. +// +#define OSS_MORE_INPUT _HRESULT_TYPEDEF_(0x80093004L) + +// +// MessageId: OSS_DATA_ERROR +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_DATA_ERROR _HRESULT_TYPEDEF_(0x80093005L) + +// +// MessageId: OSS_BAD_ARG +// +// MessageText: +// +// OSS ASN.1 Error: Invalid argument. +// +#define OSS_BAD_ARG _HRESULT_TYPEDEF_(0x80093006L) + +// +// MessageId: OSS_BAD_VERSION +// +// MessageText: +// +// OSS ASN.1 Error: Encode/Decode version mismatch. +// +#define OSS_BAD_VERSION _HRESULT_TYPEDEF_(0x80093007L) + +// +// MessageId: OSS_OUT_MEMORY +// +// MessageText: +// +// OSS ASN.1 Error: Out of memory. +// +#define OSS_OUT_MEMORY _HRESULT_TYPEDEF_(0x80093008L) + +// +// MessageId: OSS_PDU_MISMATCH +// +// MessageText: +// +// OSS ASN.1 Error: Encode/Decode Error. +// +#define OSS_PDU_MISMATCH _HRESULT_TYPEDEF_(0x80093009L) + +// +// MessageId: OSS_LIMITED +// +// MessageText: +// +// OSS ASN.1 Error: Internal Error. +// +#define OSS_LIMITED _HRESULT_TYPEDEF_(0x8009300AL) + +// +// MessageId: OSS_BAD_PTR +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_BAD_PTR _HRESULT_TYPEDEF_(0x8009300BL) + +// +// MessageId: OSS_BAD_TIME +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_BAD_TIME _HRESULT_TYPEDEF_(0x8009300CL) + +// +// MessageId: OSS_INDEFINITE_NOT_SUPPORTED +// +// MessageText: +// +// OSS ASN.1 Error: Unsupported BER indefinite-length encoding. +// +#define OSS_INDEFINITE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8009300DL) + +// +// MessageId: OSS_MEM_ERROR +// +// MessageText: +// +// OSS ASN.1 Error: Access violation. +// +#define OSS_MEM_ERROR _HRESULT_TYPEDEF_(0x8009300EL) + +// +// MessageId: OSS_BAD_TABLE +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_BAD_TABLE _HRESULT_TYPEDEF_(0x8009300FL) + +// +// MessageId: OSS_TOO_LONG +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_TOO_LONG _HRESULT_TYPEDEF_(0x80093010L) + +// +// MessageId: OSS_CONSTRAINT_VIOLATED +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_CONSTRAINT_VIOLATED _HRESULT_TYPEDEF_(0x80093011L) + +// +// MessageId: OSS_FATAL_ERROR +// +// MessageText: +// +// OSS ASN.1 Error: Internal Error. +// +#define OSS_FATAL_ERROR _HRESULT_TYPEDEF_(0x80093012L) + +// +// MessageId: OSS_ACCESS_SERIALIZATION_ERROR +// +// MessageText: +// +// OSS ASN.1 Error: Multi-threading conflict. +// +#define OSS_ACCESS_SERIALIZATION_ERROR _HRESULT_TYPEDEF_(0x80093013L) + +// +// MessageId: OSS_NULL_TBL +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_NULL_TBL _HRESULT_TYPEDEF_(0x80093014L) + +// +// MessageId: OSS_NULL_FCN +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_NULL_FCN _HRESULT_TYPEDEF_(0x80093015L) + +// +// MessageId: OSS_BAD_ENCRULES +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_BAD_ENCRULES _HRESULT_TYPEDEF_(0x80093016L) + +// +// MessageId: OSS_UNAVAIL_ENCRULES +// +// MessageText: +// +// OSS ASN.1 Error: Encode/Decode function not implemented. +// +#define OSS_UNAVAIL_ENCRULES _HRESULT_TYPEDEF_(0x80093017L) + +// +// MessageId: OSS_CANT_OPEN_TRACE_WINDOW +// +// MessageText: +// +// OSS ASN.1 Error: Trace file error. +// +#define OSS_CANT_OPEN_TRACE_WINDOW _HRESULT_TYPEDEF_(0x80093018L) + +// +// MessageId: OSS_UNIMPLEMENTED +// +// MessageText: +// +// OSS ASN.1 Error: Function not implemented. +// +#define OSS_UNIMPLEMENTED _HRESULT_TYPEDEF_(0x80093019L) + +// +// MessageId: OSS_OID_DLL_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_OID_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009301AL) + +// +// MessageId: OSS_CANT_OPEN_TRACE_FILE +// +// MessageText: +// +// OSS ASN.1 Error: Trace file error. +// +#define OSS_CANT_OPEN_TRACE_FILE _HRESULT_TYPEDEF_(0x8009301BL) + +// +// MessageId: OSS_TRACE_FILE_ALREADY_OPEN +// +// MessageText: +// +// OSS ASN.1 Error: Trace file error. +// +#define OSS_TRACE_FILE_ALREADY_OPEN _HRESULT_TYPEDEF_(0x8009301CL) + +// +// MessageId: OSS_TABLE_MISMATCH +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_TABLE_MISMATCH _HRESULT_TYPEDEF_(0x8009301DL) + +// +// MessageId: OSS_TYPE_NOT_SUPPORTED +// +// MessageText: +// +// OSS ASN.1 Error: Invalid data. +// +#define OSS_TYPE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8009301EL) + +// +// MessageId: OSS_REAL_DLL_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_REAL_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009301FL) + +// +// MessageId: OSS_REAL_CODE_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_REAL_CODE_NOT_LINKED _HRESULT_TYPEDEF_(0x80093020L) + +// +// MessageId: OSS_OUT_OF_RANGE +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_OUT_OF_RANGE _HRESULT_TYPEDEF_(0x80093021L) + +// +// MessageId: OSS_COPIER_DLL_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_COPIER_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093022L) + +// +// MessageId: OSS_CONSTRAINT_DLL_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_CONSTRAINT_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093023L) + +// +// MessageId: OSS_COMPARATOR_DLL_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_COMPARATOR_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093024L) + +// +// MessageId: OSS_COMPARATOR_CODE_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_COMPARATOR_CODE_NOT_LINKED _HRESULT_TYPEDEF_(0x80093025L) + +// +// MessageId: OSS_MEM_MGR_DLL_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_MEM_MGR_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093026L) + +// +// MessageId: OSS_PDV_DLL_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_PDV_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093027L) + +// +// MessageId: OSS_PDV_CODE_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_PDV_CODE_NOT_LINKED _HRESULT_TYPEDEF_(0x80093028L) + +// +// MessageId: OSS_API_DLL_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_API_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093029L) + +// +// MessageId: OSS_BERDER_DLL_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_BERDER_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009302AL) + +// +// MessageId: OSS_PER_DLL_NOT_LINKED +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_PER_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009302BL) + +// +// MessageId: OSS_OPEN_TYPE_ERROR +// +// MessageText: +// +// OSS ASN.1 Error: Program link error. +// +#define OSS_OPEN_TYPE_ERROR _HRESULT_TYPEDEF_(0x8009302CL) + +// +// MessageId: OSS_MUTEX_NOT_CREATED +// +// MessageText: +// +// OSS ASN.1 Error: System resource error. +// +#define OSS_MUTEX_NOT_CREATED _HRESULT_TYPEDEF_(0x8009302DL) + +// +// MessageId: OSS_CANT_CLOSE_TRACE_FILE +// +// MessageText: +// +// OSS ASN.1 Error: Trace file error. +// +#define OSS_CANT_CLOSE_TRACE_FILE _HRESULT_TYPEDEF_(0x8009302EL) + +// +// MessageId: CRYPT_E_ASN1_ERROR +// +// MessageText: +// +// ASN1 Certificate encode/decode error code base. The ASN1 error values are offset by CRYPT_E_ASN1_ERROR. +// +#define CRYPT_E_ASN1_ERROR _HRESULT_TYPEDEF_(0x80093100L) + +// +// MessageId: CRYPT_E_ASN1_INTERNAL +// +// MessageText: +// +// ASN1 internal encode or decode error. +// +#define CRYPT_E_ASN1_INTERNAL _HRESULT_TYPEDEF_(0x80093101L) + +// +// MessageId: CRYPT_E_ASN1_EOD +// +// MessageText: +// +// ASN1 unexpected end of data. +// +#define CRYPT_E_ASN1_EOD _HRESULT_TYPEDEF_(0x80093102L) + +// +// MessageId: CRYPT_E_ASN1_CORRUPT +// +// MessageText: +// +// ASN1 corrupted data. +// +#define CRYPT_E_ASN1_CORRUPT _HRESULT_TYPEDEF_(0x80093103L) + +// +// MessageId: CRYPT_E_ASN1_LARGE +// +// MessageText: +// +// ASN1 value too large. +// +#define CRYPT_E_ASN1_LARGE _HRESULT_TYPEDEF_(0x80093104L) + +// +// MessageId: CRYPT_E_ASN1_CONSTRAINT +// +// MessageText: +// +// ASN1 constraint violated. +// +#define CRYPT_E_ASN1_CONSTRAINT _HRESULT_TYPEDEF_(0x80093105L) + +// +// MessageId: CRYPT_E_ASN1_MEMORY +// +// MessageText: +// +// ASN1 out of memory. +// +#define CRYPT_E_ASN1_MEMORY _HRESULT_TYPEDEF_(0x80093106L) + +// +// MessageId: CRYPT_E_ASN1_OVERFLOW +// +// MessageText: +// +// ASN1 buffer overflow. +// +#define CRYPT_E_ASN1_OVERFLOW _HRESULT_TYPEDEF_(0x80093107L) + +// +// MessageId: CRYPT_E_ASN1_BADPDU +// +// MessageText: +// +// ASN1 function not supported for this PDU. +// +#define CRYPT_E_ASN1_BADPDU _HRESULT_TYPEDEF_(0x80093108L) + +// +// MessageId: CRYPT_E_ASN1_BADARGS +// +// MessageText: +// +// ASN1 bad arguments to function call. +// +#define CRYPT_E_ASN1_BADARGS _HRESULT_TYPEDEF_(0x80093109L) + +// +// MessageId: CRYPT_E_ASN1_BADREAL +// +// MessageText: +// +// ASN1 bad real value. +// +#define CRYPT_E_ASN1_BADREAL _HRESULT_TYPEDEF_(0x8009310AL) + +// +// MessageId: CRYPT_E_ASN1_BADTAG +// +// MessageText: +// +// ASN1 bad tag value met. +// +#define CRYPT_E_ASN1_BADTAG _HRESULT_TYPEDEF_(0x8009310BL) + +// +// MessageId: CRYPT_E_ASN1_CHOICE +// +// MessageText: +// +// ASN1 bad choice value. +// +#define CRYPT_E_ASN1_CHOICE _HRESULT_TYPEDEF_(0x8009310CL) + +// +// MessageId: CRYPT_E_ASN1_RULE +// +// MessageText: +// +// ASN1 bad encoding rule. +// +#define CRYPT_E_ASN1_RULE _HRESULT_TYPEDEF_(0x8009310DL) + +// +// MessageId: CRYPT_E_ASN1_UTF8 +// +// MessageText: +// +// ASN1 bad unicode (UTF8). +// +#define CRYPT_E_ASN1_UTF8 _HRESULT_TYPEDEF_(0x8009310EL) + +// +// MessageId: CRYPT_E_ASN1_PDU_TYPE +// +// MessageText: +// +// ASN1 bad PDU type. +// +#define CRYPT_E_ASN1_PDU_TYPE _HRESULT_TYPEDEF_(0x80093133L) + +// +// MessageId: CRYPT_E_ASN1_NYI +// +// MessageText: +// +// ASN1 not yet implemented. +// +#define CRYPT_E_ASN1_NYI _HRESULT_TYPEDEF_(0x80093134L) + +// +// MessageId: CRYPT_E_ASN1_EXTENDED +// +// MessageText: +// +// ASN1 skipped unknown extension(s). +// +#define CRYPT_E_ASN1_EXTENDED _HRESULT_TYPEDEF_(0x80093201L) + +// +// MessageId: CRYPT_E_ASN1_NOEOD +// +// MessageText: +// +// ASN1 end of data expected +// +#define CRYPT_E_ASN1_NOEOD _HRESULT_TYPEDEF_(0x80093202L) + +// +// MessageId: CERTSRV_E_BAD_REQUESTSUBJECT +// +// MessageText: +// +// The request subject name is invalid or too long. +// +#define CERTSRV_E_BAD_REQUESTSUBJECT _HRESULT_TYPEDEF_(0x80094001L) + +// +// MessageId: CERTSRV_E_NO_REQUEST +// +// MessageText: +// +// The request does not exist. +// +#define CERTSRV_E_NO_REQUEST _HRESULT_TYPEDEF_(0x80094002L) + +// +// MessageId: CERTSRV_E_BAD_REQUESTSTATUS +// +// MessageText: +// +// The request's current status does not allow this operation. +// +#define CERTSRV_E_BAD_REQUESTSTATUS _HRESULT_TYPEDEF_(0x80094003L) + +// +// MessageId: CERTSRV_E_PROPERTY_EMPTY +// +// MessageText: +// +// The requested property value is empty. +// +#define CERTSRV_E_PROPERTY_EMPTY _HRESULT_TYPEDEF_(0x80094004L) + +// +// MessageId: CERTSRV_E_INVALID_CA_CERTIFICATE +// +// MessageText: +// +// The certification authority's certificate contains invalid data. +// +#define CERTSRV_E_INVALID_CA_CERTIFICATE _HRESULT_TYPEDEF_(0x80094005L) + +// +// MessageId: CERTSRV_E_SERVER_SUSPENDED +// +// MessageText: +// +// Certificate service has been suspended for a database restore operation. +// +#define CERTSRV_E_SERVER_SUSPENDED _HRESULT_TYPEDEF_(0x80094006L) + +// +// MessageId: CERTSRV_E_ENCODING_LENGTH +// +// MessageText: +// +// The certificate contains an encoded length that is potentially incompatible with older enrollment software. +// +#define CERTSRV_E_ENCODING_LENGTH _HRESULT_TYPEDEF_(0x80094007L) + +// +// MessageId: CERTSRV_E_ROLECONFLICT +// +// MessageText: +// +// The operation is denied. The user has multiple roles assigned and the certification authority is configured to enforce role separation. +// +#define CERTSRV_E_ROLECONFLICT _HRESULT_TYPEDEF_(0x80094008L) + +// +// MessageId: CERTSRV_E_RESTRICTEDOFFICER +// +// MessageText: +// +// The operation is denied. It can only be performed by a certificate manager that is allowed to manage certificates for the current requester. +// +#define CERTSRV_E_RESTRICTEDOFFICER _HRESULT_TYPEDEF_(0x80094009L) + +// +// MessageId: CERTSRV_E_KEY_ARCHIVAL_NOT_CONFIGURED +// +// MessageText: +// +// Cannot archive private key. The certification authority is not configured for key archival. +// +#define CERTSRV_E_KEY_ARCHIVAL_NOT_CONFIGURED _HRESULT_TYPEDEF_(0x8009400AL) + +// +// MessageId: CERTSRV_E_NO_VALID_KRA +// +// MessageText: +// +// Cannot archive private key. The certification authority could not verify one or more key recovery certificates. +// +#define CERTSRV_E_NO_VALID_KRA _HRESULT_TYPEDEF_(0x8009400BL) + +// +// MessageId: CERTSRV_E_BAD_REQUEST_KEY_ARCHIVAL +// +// MessageText: +// +// The request is incorrectly formatted. The encrypted private key must be in an unauthenticated attribute in an outermost signature. +// +#define CERTSRV_E_BAD_REQUEST_KEY_ARCHIVAL _HRESULT_TYPEDEF_(0x8009400CL) + +// +// MessageId: CERTSRV_E_NO_CAADMIN_DEFINED +// +// MessageText: +// +// At least one security principal must have the permission to manage this CA. +// +#define CERTSRV_E_NO_CAADMIN_DEFINED _HRESULT_TYPEDEF_(0x8009400DL) + +// +// MessageId: CERTSRV_E_BAD_RENEWAL_CERT_ATTRIBUTE +// +// MessageText: +// +// The request contains an invalid renewal certificate attribute. +// +#define CERTSRV_E_BAD_RENEWAL_CERT_ATTRIBUTE _HRESULT_TYPEDEF_(0x8009400EL) + +// +// MessageId: CERTSRV_E_NO_DB_SESSIONS +// +// MessageText: +// +// An attempt was made to open a Certification Authority database session, but there are already too many active sessions. The server may need to be configured to allow additional sessions. +// +#define CERTSRV_E_NO_DB_SESSIONS _HRESULT_TYPEDEF_(0x8009400FL) + +// +// MessageId: CERTSRV_E_ALIGNMENT_FAULT +// +// MessageText: +// +// A memory reference caused a data alignment fault. +// +#define CERTSRV_E_ALIGNMENT_FAULT _HRESULT_TYPEDEF_(0x80094010L) + +// +// MessageId: CERTSRV_E_ENROLL_DENIED +// +// MessageText: +// +// The permissions on this certification authority do not allow the current user to enroll for certificates. +// +#define CERTSRV_E_ENROLL_DENIED _HRESULT_TYPEDEF_(0x80094011L) + +// +// MessageId: CERTSRV_E_TEMPLATE_DENIED +// +// MessageText: +// +// The permissions on the certificate template do not allow the current user to enroll for this type of certificate. +// +#define CERTSRV_E_TEMPLATE_DENIED _HRESULT_TYPEDEF_(0x80094012L) + +// +// MessageId: CERTSRV_E_DOWNLEVEL_DC_SSL_OR_UPGRADE +// +// MessageText: +// +// The contacted domain controller cannot support signed LDAP traffic. Update the domain controller or configure Certificate Services to use SSL for Active Directory access. +// +#define CERTSRV_E_DOWNLEVEL_DC_SSL_OR_UPGRADE _HRESULT_TYPEDEF_(0x80094013L) + +// +// MessageId: CERTSRV_E_ADMIN_DENIED_REQUEST +// +// MessageText: +// +// The request was denied by a certificate manager or CA administrator. +// +#define CERTSRV_E_ADMIN_DENIED_REQUEST _HRESULT_TYPEDEF_(0x80094014L) + +// +// MessageId: CERTSRV_E_NO_POLICY_SERVER +// +// MessageText: +// +// An enrollment policy server cannot be located. +// +#define CERTSRV_E_NO_POLICY_SERVER _HRESULT_TYPEDEF_(0x80094015L) + +// +// MessageId: CERTSRV_E_WEAK_SIGNATURE_OR_KEY +// +// MessageText: +// +// A signature algorithm or public key length does not meet the system's minimum required strength. +// +#define CERTSRV_E_WEAK_SIGNATURE_OR_KEY _HRESULT_TYPEDEF_(0x80094016L) + +// +// MessageId: CERTSRV_E_KEY_ATTESTATION_NOT_SUPPORTED +// +// MessageText: +// +// Failed to create an attested key. This computer or the cryptographic provider may not meet the hardware requirements to support key attestation. +// +#define CERTSRV_E_KEY_ATTESTATION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80094017L) + +// +// MessageId: CERTSRV_E_ENCRYPTION_CERT_REQUIRED +// +// MessageText: +// +// No encryption certificate was specified. +// +#define CERTSRV_E_ENCRYPTION_CERT_REQUIRED _HRESULT_TYPEDEF_(0x80094018L) + +// +// MessageId: CERTSRV_E_UNSUPPORTED_CERT_TYPE +// +// MessageText: +// +// The requested certificate template is not supported by this CA. +// +#define CERTSRV_E_UNSUPPORTED_CERT_TYPE _HRESULT_TYPEDEF_(0x80094800L) + +// +// MessageId: CERTSRV_E_NO_CERT_TYPE +// +// MessageText: +// +// The request contains no certificate template information. +// +#define CERTSRV_E_NO_CERT_TYPE _HRESULT_TYPEDEF_(0x80094801L) + +// +// MessageId: CERTSRV_E_TEMPLATE_CONFLICT +// +// MessageText: +// +// The request contains conflicting template information. +// +#define CERTSRV_E_TEMPLATE_CONFLICT _HRESULT_TYPEDEF_(0x80094802L) + +// +// MessageId: CERTSRV_E_SUBJECT_ALT_NAME_REQUIRED +// +// MessageText: +// +// The request is missing a required Subject Alternate name extension. +// +#define CERTSRV_E_SUBJECT_ALT_NAME_REQUIRED _HRESULT_TYPEDEF_(0x80094803L) + +// +// MessageId: CERTSRV_E_ARCHIVED_KEY_REQUIRED +// +// MessageText: +// +// The request is missing a required private key for archival by the server. +// +#define CERTSRV_E_ARCHIVED_KEY_REQUIRED _HRESULT_TYPEDEF_(0x80094804L) + +// +// MessageId: CERTSRV_E_SMIME_REQUIRED +// +// MessageText: +// +// The request is missing a required SMIME capabilities extension. +// +#define CERTSRV_E_SMIME_REQUIRED _HRESULT_TYPEDEF_(0x80094805L) + +// +// MessageId: CERTSRV_E_BAD_RENEWAL_SUBJECT +// +// MessageText: +// +// The request was made on behalf of a subject other than the caller. The certificate template must be configured to require at least one signature to authorize the request. +// +#define CERTSRV_E_BAD_RENEWAL_SUBJECT _HRESULT_TYPEDEF_(0x80094806L) + +// +// MessageId: CERTSRV_E_BAD_TEMPLATE_VERSION +// +// MessageText: +// +// The request template version is newer than the supported template version. +// +#define CERTSRV_E_BAD_TEMPLATE_VERSION _HRESULT_TYPEDEF_(0x80094807L) + +// +// MessageId: CERTSRV_E_TEMPLATE_POLICY_REQUIRED +// +// MessageText: +// +// The template is missing a required signature policy attribute. +// +#define CERTSRV_E_TEMPLATE_POLICY_REQUIRED _HRESULT_TYPEDEF_(0x80094808L) + +// +// MessageId: CERTSRV_E_SIGNATURE_POLICY_REQUIRED +// +// MessageText: +// +// The request is missing required signature policy information. +// +#define CERTSRV_E_SIGNATURE_POLICY_REQUIRED _HRESULT_TYPEDEF_(0x80094809L) + +// +// MessageId: CERTSRV_E_SIGNATURE_COUNT +// +// MessageText: +// +// The request is missing one or more required signatures. +// +#define CERTSRV_E_SIGNATURE_COUNT _HRESULT_TYPEDEF_(0x8009480AL) + +// +// MessageId: CERTSRV_E_SIGNATURE_REJECTED +// +// MessageText: +// +// One or more signatures did not include the required application or issuance policies. The request is missing one or more required valid signatures. +// +#define CERTSRV_E_SIGNATURE_REJECTED _HRESULT_TYPEDEF_(0x8009480BL) + +// +// MessageId: CERTSRV_E_ISSUANCE_POLICY_REQUIRED +// +// MessageText: +// +// The request is missing one or more required signature issuance policies. +// +#define CERTSRV_E_ISSUANCE_POLICY_REQUIRED _HRESULT_TYPEDEF_(0x8009480CL) + +// +// MessageId: CERTSRV_E_SUBJECT_UPN_REQUIRED +// +// MessageText: +// +// The UPN is unavailable and cannot be added to the Subject Alternate name. +// +#define CERTSRV_E_SUBJECT_UPN_REQUIRED _HRESULT_TYPEDEF_(0x8009480DL) + +// +// MessageId: CERTSRV_E_SUBJECT_DIRECTORY_GUID_REQUIRED +// +// MessageText: +// +// The Active Directory GUID is unavailable and cannot be added to the Subject Alternate name. +// +#define CERTSRV_E_SUBJECT_DIRECTORY_GUID_REQUIRED _HRESULT_TYPEDEF_(0x8009480EL) + +// +// MessageId: CERTSRV_E_SUBJECT_DNS_REQUIRED +// +// MessageText: +// +// The DNS name is unavailable and cannot be added to the Subject Alternate name. +// +#define CERTSRV_E_SUBJECT_DNS_REQUIRED _HRESULT_TYPEDEF_(0x8009480FL) + +// +// MessageId: CERTSRV_E_ARCHIVED_KEY_UNEXPECTED +// +// MessageText: +// +// The request includes a private key for archival by the server, but key archival is not enabled for the specified certificate template. +// +#define CERTSRV_E_ARCHIVED_KEY_UNEXPECTED _HRESULT_TYPEDEF_(0x80094810L) + +// +// MessageId: CERTSRV_E_KEY_LENGTH +// +// MessageText: +// +// The public key does not meet the minimum size required by the specified certificate template. +// +#define CERTSRV_E_KEY_LENGTH _HRESULT_TYPEDEF_(0x80094811L) + +// +// MessageId: CERTSRV_E_SUBJECT_EMAIL_REQUIRED +// +// MessageText: +// +// The EMail name is unavailable and cannot be added to the Subject or Subject Alternate name. +// +#define CERTSRV_E_SUBJECT_EMAIL_REQUIRED _HRESULT_TYPEDEF_(0x80094812L) + +// +// MessageId: CERTSRV_E_UNKNOWN_CERT_TYPE +// +// MessageText: +// +// One or more certificate templates to be enabled on this certification authority could not be found. +// +#define CERTSRV_E_UNKNOWN_CERT_TYPE _HRESULT_TYPEDEF_(0x80094813L) + +// +// MessageId: CERTSRV_E_CERT_TYPE_OVERLAP +// +// MessageText: +// +// The certificate template renewal period is longer than the certificate validity period. The template should be reconfigured or the CA certificate renewed. +// +#define CERTSRV_E_CERT_TYPE_OVERLAP _HRESULT_TYPEDEF_(0x80094814L) + +// +// MessageId: CERTSRV_E_TOO_MANY_SIGNATURES +// +// MessageText: +// +// The certificate template requires too many RA signatures. Only one RA signature is allowed. +// +#define CERTSRV_E_TOO_MANY_SIGNATURES _HRESULT_TYPEDEF_(0x80094815L) + +// +// MessageId: CERTSRV_E_RENEWAL_BAD_PUBLIC_KEY +// +// MessageText: +// +// The certificate template requires renewal with the same public key, but the request uses a different public key. +// +#define CERTSRV_E_RENEWAL_BAD_PUBLIC_KEY _HRESULT_TYPEDEF_(0x80094816L) + +// +// MessageId: CERTSRV_E_INVALID_EK +// +// MessageText: +// +// The certification authority cannot interpret or verify the endorsement key information supplied in the request, or the information is inconsistent. +// +#define CERTSRV_E_INVALID_EK _HRESULT_TYPEDEF_(0x80094817L) + +// +// MessageId: CERTSRV_E_INVALID_IDBINDING +// +// MessageText: +// +// The certification authority cannot validate the Attestation Identity Key Id Binding. +// +#define CERTSRV_E_INVALID_IDBINDING _HRESULT_TYPEDEF_(0x80094818L) + +// +// MessageId: CERTSRV_E_INVALID_ATTESTATION +// +// MessageText: +// +// The certification authority cannot validate the private key attestation data. +// +#define CERTSRV_E_INVALID_ATTESTATION _HRESULT_TYPEDEF_(0x80094819L) + +// +// MessageId: CERTSRV_E_KEY_ATTESTATION +// +// MessageText: +// +// The request does not support private key attestation as defined in the certificate template. +// +#define CERTSRV_E_KEY_ATTESTATION _HRESULT_TYPEDEF_(0x8009481AL) + +// +// MessageId: CERTSRV_E_CORRUPT_KEY_ATTESTATION +// +// MessageText: +// +// The request public key is not consistent with the private key attestation data. +// +#define CERTSRV_E_CORRUPT_KEY_ATTESTATION _HRESULT_TYPEDEF_(0x8009481BL) + +// +// MessageId: CERTSRV_E_EXPIRED_CHALLENGE +// +// MessageText: +// +// The private key attestation challenge cannot be validated because the encryption certificate has expired, or the certificate or key is unavailable. +// +#define CERTSRV_E_EXPIRED_CHALLENGE _HRESULT_TYPEDEF_(0x8009481CL) + +// +// MessageId: CERTSRV_E_INVALID_RESPONSE +// +// MessageText: +// +// The client's response could not be validated. It is either unexpected or incorrect. +// +#define CERTSRV_E_INVALID_RESPONSE _HRESULT_TYPEDEF_(0x8009481DL) + +// +// MessageId: CERTSRV_E_INVALID_REQUESTID +// +// MessageText: +// +// A valid Request ID was not detected in the request attributes, or an invalid one was submitted. +// +#define CERTSRV_E_INVALID_REQUESTID _HRESULT_TYPEDEF_(0x8009481EL) + +// +// MessageId: CERTSRV_E_REQUEST_PRECERTIFICATE_MISMATCH +// +// MessageText: +// +// The request is not consistent with the previously generated precertificate. +// +#define CERTSRV_E_REQUEST_PRECERTIFICATE_MISMATCH _HRESULT_TYPEDEF_(0x8009481FL) + +// +// MessageId: CERTSRV_E_PENDING_CLIENT_RESPONSE +// +// MessageText: +// +// The request is locked against edits until a response is received from the client. +// +#define CERTSRV_E_PENDING_CLIENT_RESPONSE _HRESULT_TYPEDEF_(0x80094820L) + +// +// MessageId: CERTSRV_E_SEC_EXT_DIRECTORY_SID_REQUIRED +// +// MessageText: +// +// The Active Directory SID is unavailable and cannot be added to the custom security extension. +// +#define CERTSRV_E_SEC_EXT_DIRECTORY_SID_REQUIRED _HRESULT_TYPEDEF_(0x80094821L) + +// +// The range 0x5000-0x51ff is reserved for XENROLL errors. +// +// +// MessageId: XENROLL_E_KEY_NOT_EXPORTABLE +// +// MessageText: +// +// The key is not exportable. +// +#define XENROLL_E_KEY_NOT_EXPORTABLE _HRESULT_TYPEDEF_(0x80095000L) + +// +// MessageId: XENROLL_E_CANNOT_ADD_ROOT_CERT +// +// MessageText: +// +// You cannot add the root CA certificate into your local store. +// +#define XENROLL_E_CANNOT_ADD_ROOT_CERT _HRESULT_TYPEDEF_(0x80095001L) + +// +// MessageId: XENROLL_E_RESPONSE_KA_HASH_NOT_FOUND +// +// MessageText: +// +// The key archival hash attribute was not found in the response. +// +#define XENROLL_E_RESPONSE_KA_HASH_NOT_FOUND _HRESULT_TYPEDEF_(0x80095002L) + +// +// MessageId: XENROLL_E_RESPONSE_UNEXPECTED_KA_HASH +// +// MessageText: +// +// An unexpected key archival hash attribute was found in the response. +// +#define XENROLL_E_RESPONSE_UNEXPECTED_KA_HASH _HRESULT_TYPEDEF_(0x80095003L) + +// +// MessageId: XENROLL_E_RESPONSE_KA_HASH_MISMATCH +// +// MessageText: +// +// There is a key archival hash mismatch between the request and the response. +// +#define XENROLL_E_RESPONSE_KA_HASH_MISMATCH _HRESULT_TYPEDEF_(0x80095004L) + +// +// MessageId: XENROLL_E_KEYSPEC_SMIME_MISMATCH +// +// MessageText: +// +// Signing certificate cannot include SMIME extension. +// +#define XENROLL_E_KEYSPEC_SMIME_MISMATCH _HRESULT_TYPEDEF_(0x80095005L) + +// +// MessageId: TRUST_E_SYSTEM_ERROR +// +// MessageText: +// +// A system-level error occurred while verifying trust. +// +#define TRUST_E_SYSTEM_ERROR _HRESULT_TYPEDEF_(0x80096001L) + +// +// MessageId: TRUST_E_NO_SIGNER_CERT +// +// MessageText: +// +// The certificate for the signer of the message is invalid or not found. +// +#define TRUST_E_NO_SIGNER_CERT _HRESULT_TYPEDEF_(0x80096002L) + +// +// MessageId: TRUST_E_COUNTER_SIGNER +// +// MessageText: +// +// One of the counter signatures was invalid. +// +#define TRUST_E_COUNTER_SIGNER _HRESULT_TYPEDEF_(0x80096003L) + +// +// MessageId: TRUST_E_CERT_SIGNATURE +// +// MessageText: +// +// The signature of the certificate cannot be verified. +// +#define TRUST_E_CERT_SIGNATURE _HRESULT_TYPEDEF_(0x80096004L) + +// +// MessageId: TRUST_E_TIME_STAMP +// +// MessageText: +// +// The timestamp signature and/or certificate could not be verified or is malformed. +// +#define TRUST_E_TIME_STAMP _HRESULT_TYPEDEF_(0x80096005L) + +// +// MessageId: TRUST_E_BAD_DIGEST +// +// MessageText: +// +// The digital signature of the object did not verify. +// +#define TRUST_E_BAD_DIGEST _HRESULT_TYPEDEF_(0x80096010L) + +// +// MessageId: TRUST_E_MALFORMED_SIGNATURE +// +// MessageText: +// +// The digital signature of the object is malformed. For technical detail, see security bulletin MS13-098. +// +#define TRUST_E_MALFORMED_SIGNATURE _HRESULT_TYPEDEF_(0x80096011L) + +// +// MessageId: TRUST_E_BASIC_CONSTRAINTS +// +// MessageText: +// +// A certificate's basic constraint extension has not been observed. +// +#define TRUST_E_BASIC_CONSTRAINTS _HRESULT_TYPEDEF_(0x80096019L) + +// +// MessageId: TRUST_E_FINANCIAL_CRITERIA +// +// MessageText: +// +// The certificate does not meet or contain the Authenticode(tm) financial extensions. +// +#define TRUST_E_FINANCIAL_CRITERIA _HRESULT_TYPEDEF_(0x8009601EL) + +// +// Error codes for mssipotf.dll +// Most of the error codes can only occur when an error occurs +// during font file signing +// +// +// +// MessageId: MSSIPOTF_E_OUTOFMEMRANGE +// +// MessageText: +// +// Tried to reference a part of the file outside the proper range. +// +#define MSSIPOTF_E_OUTOFMEMRANGE _HRESULT_TYPEDEF_(0x80097001L) + +// +// MessageId: MSSIPOTF_E_CANTGETOBJECT +// +// MessageText: +// +// Could not retrieve an object from the file. +// +#define MSSIPOTF_E_CANTGETOBJECT _HRESULT_TYPEDEF_(0x80097002L) + +// +// MessageId: MSSIPOTF_E_NOHEADTABLE +// +// MessageText: +// +// Could not find the head table in the file. +// +#define MSSIPOTF_E_NOHEADTABLE _HRESULT_TYPEDEF_(0x80097003L) + +// +// MessageId: MSSIPOTF_E_BAD_MAGICNUMBER +// +// MessageText: +// +// The magic number in the head table is incorrect. +// +#define MSSIPOTF_E_BAD_MAGICNUMBER _HRESULT_TYPEDEF_(0x80097004L) + +// +// MessageId: MSSIPOTF_E_BAD_OFFSET_TABLE +// +// MessageText: +// +// The offset table has incorrect values. +// +#define MSSIPOTF_E_BAD_OFFSET_TABLE _HRESULT_TYPEDEF_(0x80097005L) + +// +// MessageId: MSSIPOTF_E_TABLE_TAGORDER +// +// MessageText: +// +// Duplicate table tags or tags out of alphabetical order. +// +#define MSSIPOTF_E_TABLE_TAGORDER _HRESULT_TYPEDEF_(0x80097006L) + +// +// MessageId: MSSIPOTF_E_TABLE_LONGWORD +// +// MessageText: +// +// A table does not start on a long word boundary. +// +#define MSSIPOTF_E_TABLE_LONGWORD _HRESULT_TYPEDEF_(0x80097007L) + +// +// MessageId: MSSIPOTF_E_BAD_FIRST_TABLE_PLACEMENT +// +// MessageText: +// +// First table does not appear after header information. +// +#define MSSIPOTF_E_BAD_FIRST_TABLE_PLACEMENT _HRESULT_TYPEDEF_(0x80097008L) + +// +// MessageId: MSSIPOTF_E_TABLES_OVERLAP +// +// MessageText: +// +// Two or more tables overlap. +// +#define MSSIPOTF_E_TABLES_OVERLAP _HRESULT_TYPEDEF_(0x80097009L) + +// +// MessageId: MSSIPOTF_E_TABLE_PADBYTES +// +// MessageText: +// +// Too many pad bytes between tables or pad bytes are not 0. +// +#define MSSIPOTF_E_TABLE_PADBYTES _HRESULT_TYPEDEF_(0x8009700AL) + +// +// MessageId: MSSIPOTF_E_FILETOOSMALL +// +// MessageText: +// +// File is too small to contain the last table. +// +#define MSSIPOTF_E_FILETOOSMALL _HRESULT_TYPEDEF_(0x8009700BL) + +// +// MessageId: MSSIPOTF_E_TABLE_CHECKSUM +// +// MessageText: +// +// A table checksum is incorrect. +// +#define MSSIPOTF_E_TABLE_CHECKSUM _HRESULT_TYPEDEF_(0x8009700CL) + +// +// MessageId: MSSIPOTF_E_FILE_CHECKSUM +// +// MessageText: +// +// The file checksum is incorrect. +// +#define MSSIPOTF_E_FILE_CHECKSUM _HRESULT_TYPEDEF_(0x8009700DL) + +// +// MessageId: MSSIPOTF_E_FAILED_POLICY +// +// MessageText: +// +// The signature does not have the correct attributes for the policy. +// +#define MSSIPOTF_E_FAILED_POLICY _HRESULT_TYPEDEF_(0x80097010L) + +// +// MessageId: MSSIPOTF_E_FAILED_HINTS_CHECK +// +// MessageText: +// +// The file did not pass the hints check. +// +#define MSSIPOTF_E_FAILED_HINTS_CHECK _HRESULT_TYPEDEF_(0x80097011L) + +// +// MessageId: MSSIPOTF_E_NOT_OPENTYPE +// +// MessageText: +// +// The file is not an OpenType file. +// +#define MSSIPOTF_E_NOT_OPENTYPE _HRESULT_TYPEDEF_(0x80097012L) + +// +// MessageId: MSSIPOTF_E_FILE +// +// MessageText: +// +// Failed on a file operation (open, map, read, write). +// +#define MSSIPOTF_E_FILE _HRESULT_TYPEDEF_(0x80097013L) + +// +// MessageId: MSSIPOTF_E_CRYPT +// +// MessageText: +// +// A call to a CryptoAPI function failed. +// +#define MSSIPOTF_E_CRYPT _HRESULT_TYPEDEF_(0x80097014L) + +// +// MessageId: MSSIPOTF_E_BADVERSION +// +// MessageText: +// +// There is a bad version number in the file. +// +#define MSSIPOTF_E_BADVERSION _HRESULT_TYPEDEF_(0x80097015L) + +// +// MessageId: MSSIPOTF_E_DSIG_STRUCTURE +// +// MessageText: +// +// The structure of the DSIG table is incorrect. +// +#define MSSIPOTF_E_DSIG_STRUCTURE _HRESULT_TYPEDEF_(0x80097016L) + +// +// MessageId: MSSIPOTF_E_PCONST_CHECK +// +// MessageText: +// +// A check failed in a partially constant table. +// +#define MSSIPOTF_E_PCONST_CHECK _HRESULT_TYPEDEF_(0x80097017L) + +// +// MessageId: MSSIPOTF_E_STRUCTURE +// +// MessageText: +// +// Some kind of structural error. +// +#define MSSIPOTF_E_STRUCTURE _HRESULT_TYPEDEF_(0x80097018L) + +// +// MessageId: ERROR_CRED_REQUIRES_CONFIRMATION +// +// MessageText: +// +// The requested credential requires confirmation. +// +#define ERROR_CRED_REQUIRES_CONFIRMATION _HRESULT_TYPEDEF_(0x80097019L) + +#define NTE_OP_OK 0 + +// +// Note that additional FACILITY_SSPI errors are in issperr.h +// +// ****************** +// FACILITY_CERT +// ****************** +// +// MessageId: TRUST_E_PROVIDER_UNKNOWN +// +// MessageText: +// +// Unknown trust provider. +// +#define TRUST_E_PROVIDER_UNKNOWN _HRESULT_TYPEDEF_(0x800B0001L) + +// +// MessageId: TRUST_E_ACTION_UNKNOWN +// +// MessageText: +// +// The trust verification action specified is not supported by the specified trust provider. +// +#define TRUST_E_ACTION_UNKNOWN _HRESULT_TYPEDEF_(0x800B0002L) + +// +// MessageId: TRUST_E_SUBJECT_FORM_UNKNOWN +// +// MessageText: +// +// The form specified for the subject is not one supported or known by the specified trust provider. +// +#define TRUST_E_SUBJECT_FORM_UNKNOWN _HRESULT_TYPEDEF_(0x800B0003L) + +// +// MessageId: TRUST_E_SUBJECT_NOT_TRUSTED +// +// MessageText: +// +// The subject is not trusted for the specified action. +// +#define TRUST_E_SUBJECT_NOT_TRUSTED _HRESULT_TYPEDEF_(0x800B0004L) + +// +// MessageId: DIGSIG_E_ENCODE +// +// MessageText: +// +// Error due to problem in ASN.1 encoding process. +// +#define DIGSIG_E_ENCODE _HRESULT_TYPEDEF_(0x800B0005L) + +// +// MessageId: DIGSIG_E_DECODE +// +// MessageText: +// +// Error due to problem in ASN.1 decoding process. +// +#define DIGSIG_E_DECODE _HRESULT_TYPEDEF_(0x800B0006L) + +// +// MessageId: DIGSIG_E_EXTENSIBILITY +// +// MessageText: +// +// Reading / writing Extensions where Attributes are appropriate, and vice versa. +// +#define DIGSIG_E_EXTENSIBILITY _HRESULT_TYPEDEF_(0x800B0007L) + +// +// MessageId: DIGSIG_E_CRYPTO +// +// MessageText: +// +// Unspecified cryptographic failure. +// +#define DIGSIG_E_CRYPTO _HRESULT_TYPEDEF_(0x800B0008L) + +// +// MessageId: PERSIST_E_SIZEDEFINITE +// +// MessageText: +// +// The size of the data could not be determined. +// +#define PERSIST_E_SIZEDEFINITE _HRESULT_TYPEDEF_(0x800B0009L) + +// +// MessageId: PERSIST_E_SIZEINDEFINITE +// +// MessageText: +// +// The size of the indefinite-sized data could not be determined. +// +#define PERSIST_E_SIZEINDEFINITE _HRESULT_TYPEDEF_(0x800B000AL) + +// +// MessageId: PERSIST_E_NOTSELFSIZING +// +// MessageText: +// +// This object does not read and write self-sizing data. +// +#define PERSIST_E_NOTSELFSIZING _HRESULT_TYPEDEF_(0x800B000BL) + +// +// MessageId: TRUST_E_NOSIGNATURE +// +// MessageText: +// +// No signature was present in the subject. +// +#define TRUST_E_NOSIGNATURE _HRESULT_TYPEDEF_(0x800B0100L) + +// +// MessageId: CERT_E_EXPIRED +// +// MessageText: +// +// A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file. +// +#define CERT_E_EXPIRED _HRESULT_TYPEDEF_(0x800B0101L) + +// +// MessageId: CERT_E_VALIDITYPERIODNESTING +// +// MessageText: +// +// The validity periods of the certification chain do not nest correctly. +// +#define CERT_E_VALIDITYPERIODNESTING _HRESULT_TYPEDEF_(0x800B0102L) + +// +// MessageId: CERT_E_ROLE +// +// MessageText: +// +// A certificate that can only be used as an end-entity is being used as a CA or vice versa. +// +#define CERT_E_ROLE _HRESULT_TYPEDEF_(0x800B0103L) + +// +// MessageId: CERT_E_PATHLENCONST +// +// MessageText: +// +// A path length constraint in the certification chain has been violated. +// +#define CERT_E_PATHLENCONST _HRESULT_TYPEDEF_(0x800B0104L) + +// +// MessageId: CERT_E_CRITICAL +// +// MessageText: +// +// A certificate contains an unknown extension that is marked 'critical'. +// +#define CERT_E_CRITICAL _HRESULT_TYPEDEF_(0x800B0105L) + +// +// MessageId: CERT_E_PURPOSE +// +// MessageText: +// +// A certificate being used for a purpose other than the ones specified by its CA. +// +#define CERT_E_PURPOSE _HRESULT_TYPEDEF_(0x800B0106L) + +// +// MessageId: CERT_E_ISSUERCHAINING +// +// MessageText: +// +// A parent of a given certificate in fact did not issue that child certificate. +// +#define CERT_E_ISSUERCHAINING _HRESULT_TYPEDEF_(0x800B0107L) + +// +// MessageId: CERT_E_MALFORMED +// +// MessageText: +// +// A certificate is missing or has an empty value for an important field, such as a subject or issuer name. +// +#define CERT_E_MALFORMED _HRESULT_TYPEDEF_(0x800B0108L) + +// +// MessageId: CERT_E_UNTRUSTEDROOT +// +// MessageText: +// +// A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. +// +#define CERT_E_UNTRUSTEDROOT _HRESULT_TYPEDEF_(0x800B0109L) + +// +// MessageId: CERT_E_CHAINING +// +// MessageText: +// +// A certificate chain could not be built to a trusted root authority. +// +#define CERT_E_CHAINING _HRESULT_TYPEDEF_(0x800B010AL) + +// +// MessageId: TRUST_E_FAIL +// +// MessageText: +// +// Generic trust failure. +// +#define TRUST_E_FAIL _HRESULT_TYPEDEF_(0x800B010BL) + +// +// MessageId: CERT_E_REVOKED +// +// MessageText: +// +// A certificate was explicitly revoked by its issuer. +// +#define CERT_E_REVOKED _HRESULT_TYPEDEF_(0x800B010CL) + +// +// MessageId: CERT_E_UNTRUSTEDTESTROOT +// +// MessageText: +// +// The certification path terminates with the test root which is not trusted with the current policy settings. +// +#define CERT_E_UNTRUSTEDTESTROOT _HRESULT_TYPEDEF_(0x800B010DL) + +// +// MessageId: CERT_E_REVOCATION_FAILURE +// +// MessageText: +// +// The revocation process could not continue - the certificate(s) could not be checked. +// +#define CERT_E_REVOCATION_FAILURE _HRESULT_TYPEDEF_(0x800B010EL) + +// +// MessageId: CERT_E_CN_NO_MATCH +// +// MessageText: +// +// The certificate's CN name does not match the passed value. +// +#define CERT_E_CN_NO_MATCH _HRESULT_TYPEDEF_(0x800B010FL) + +// +// MessageId: CERT_E_WRONG_USAGE +// +// MessageText: +// +// The certificate is not valid for the requested usage. +// +#define CERT_E_WRONG_USAGE _HRESULT_TYPEDEF_(0x800B0110L) + +// +// MessageId: TRUST_E_EXPLICIT_DISTRUST +// +// MessageText: +// +// The certificate was explicitly marked as untrusted by the user. +// +#define TRUST_E_EXPLICIT_DISTRUST _HRESULT_TYPEDEF_(0x800B0111L) + +// +// MessageId: CERT_E_UNTRUSTEDCA +// +// MessageText: +// +// A certification chain processed correctly, but one of the CA certificates is not trusted by the policy provider. +// +#define CERT_E_UNTRUSTEDCA _HRESULT_TYPEDEF_(0x800B0112L) + +// +// MessageId: CERT_E_INVALID_POLICY +// +// MessageText: +// +// The certificate has invalid policy. +// +#define CERT_E_INVALID_POLICY _HRESULT_TYPEDEF_(0x800B0113L) + +// +// MessageId: CERT_E_INVALID_NAME +// +// MessageText: +// +// The certificate has an invalid name. The name is not included in the permitted list or is explicitly excluded. +// +#define CERT_E_INVALID_NAME _HRESULT_TYPEDEF_(0x800B0114L) + +// ***************** +// FACILITY_MEDIASERVER +// ***************** +// +// Also known as FACILITY_MF and FACILITY_NS +// +// The error codes are defined in mferror.mc, dlnaerror.mc, nserror.mc, and neterror.mc +// +// ***************** +// FACILITY_SETUPAPI +// ***************** +// +// Since these error codes aren't in the standard Win32 range (i.e., 0-64K), define a +// macro to map either Win32 or SetupAPI error codes into an HRESULT. +// +// HRESULT_FROM_SETUPAPI(x) used to be a macro, however we now run it as an inline function +// to prevent double evaluation of 'x'. If you still need the macro, you can use __HRESULT_FROM_SETUPAPI(x) +// +#define __HRESULT_FROM_SETUPAPI(x) ((((x) & (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR)) == (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR)) \ + ? ((HRESULT) (((x) & 0x0000FFFF) | (FACILITY_SETUPAPI << 16) | 0x80000000)) \ + : HRESULT_FROM_WIN32(x)) + +#if !defined(_HRESULT_DEFINED) && !defined(__midl) +#define _HRESULT_DEFINED +typedef _Return_type_success_(return >= 0) long HRESULT; +#endif + +#ifndef __midl +#if defined(__cplusplus) && _MSC_VER >= 1900 && !defined(SORTPP_PASS) +constexpr +#endif +FORCEINLINE HRESULT HRESULT_FROM_SETUPAPI(unsigned long x) { return (((x) & (0x20000000|0xC0000000)) == (0x20000000|0xC0000000)) \ + ? ((HRESULT) (((x) & 0x0000FFFF) | (FACILITY_SETUPAPI << 16) | 0x80000000)) \ + : HRESULT_FROM_WIN32(x);} +#else +#define HRESULT_FROM_SETUPAPI(x) __HRESULT_FROM_SETUPAPI(x) +#endif +// +// MessageId: SPAPI_E_EXPECTED_SECTION_NAME +// +// MessageText: +// +// A non-empty line was encountered in the INF before the start of a section. +// +#define SPAPI_E_EXPECTED_SECTION_NAME _HRESULT_TYPEDEF_(0x800F0000L) + +// +// MessageId: SPAPI_E_BAD_SECTION_NAME_LINE +// +// MessageText: +// +// A section name marker in the INF is not complete, or does not exist on a line by itself. +// +#define SPAPI_E_BAD_SECTION_NAME_LINE _HRESULT_TYPEDEF_(0x800F0001L) + +// +// MessageId: SPAPI_E_SECTION_NAME_TOO_LONG +// +// MessageText: +// +// An INF section was encountered whose name exceeds the maximum section name length. +// +#define SPAPI_E_SECTION_NAME_TOO_LONG _HRESULT_TYPEDEF_(0x800F0002L) + +// +// MessageId: SPAPI_E_GENERAL_SYNTAX +// +// MessageText: +// +// The syntax of the INF is invalid. +// +#define SPAPI_E_GENERAL_SYNTAX _HRESULT_TYPEDEF_(0x800F0003L) + +// +// MessageId: SPAPI_E_WRONG_INF_STYLE +// +// MessageText: +// +// The style of the INF is different than what was requested. +// +#define SPAPI_E_WRONG_INF_STYLE _HRESULT_TYPEDEF_(0x800F0100L) + +// +// MessageId: SPAPI_E_SECTION_NOT_FOUND +// +// MessageText: +// +// The required section was not found in the INF. +// +#define SPAPI_E_SECTION_NOT_FOUND _HRESULT_TYPEDEF_(0x800F0101L) + +// +// MessageId: SPAPI_E_LINE_NOT_FOUND +// +// MessageText: +// +// The required line was not found in the INF. +// +#define SPAPI_E_LINE_NOT_FOUND _HRESULT_TYPEDEF_(0x800F0102L) + +// +// MessageId: SPAPI_E_NO_BACKUP +// +// MessageText: +// +// The files affected by the installation of this file queue have not been backed up for uninstall. +// +#define SPAPI_E_NO_BACKUP _HRESULT_TYPEDEF_(0x800F0103L) + +// +// MessageId: SPAPI_E_NO_ASSOCIATED_CLASS +// +// MessageText: +// +// The INF or the device information set or element does not have an associated install class. +// +#define SPAPI_E_NO_ASSOCIATED_CLASS _HRESULT_TYPEDEF_(0x800F0200L) + +// +// MessageId: SPAPI_E_CLASS_MISMATCH +// +// MessageText: +// +// The INF or the device information set or element does not match the specified install class. +// +#define SPAPI_E_CLASS_MISMATCH _HRESULT_TYPEDEF_(0x800F0201L) + +// +// MessageId: SPAPI_E_DUPLICATE_FOUND +// +// MessageText: +// +// An existing device was found that is a duplicate of the device being manually installed. +// +#define SPAPI_E_DUPLICATE_FOUND _HRESULT_TYPEDEF_(0x800F0202L) + +// +// MessageId: SPAPI_E_NO_DRIVER_SELECTED +// +// MessageText: +// +// There is no driver selected for the device information set or element. +// +#define SPAPI_E_NO_DRIVER_SELECTED _HRESULT_TYPEDEF_(0x800F0203L) + +// +// MessageId: SPAPI_E_KEY_DOES_NOT_EXIST +// +// MessageText: +// +// The requested device registry key does not exist. +// +#define SPAPI_E_KEY_DOES_NOT_EXIST _HRESULT_TYPEDEF_(0x800F0204L) + +// +// MessageId: SPAPI_E_INVALID_DEVINST_NAME +// +// MessageText: +// +// The device instance name is invalid. +// +#define SPAPI_E_INVALID_DEVINST_NAME _HRESULT_TYPEDEF_(0x800F0205L) + +// +// MessageId: SPAPI_E_INVALID_CLASS +// +// MessageText: +// +// The install class is not present or is invalid. +// +#define SPAPI_E_INVALID_CLASS _HRESULT_TYPEDEF_(0x800F0206L) + +// +// MessageId: SPAPI_E_DEVINST_ALREADY_EXISTS +// +// MessageText: +// +// The device instance cannot be created because it already exists. +// +#define SPAPI_E_DEVINST_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x800F0207L) + +// +// MessageId: SPAPI_E_DEVINFO_NOT_REGISTERED +// +// MessageText: +// +// The operation cannot be performed on a device information element that has not been registered. +// +#define SPAPI_E_DEVINFO_NOT_REGISTERED _HRESULT_TYPEDEF_(0x800F0208L) + +// +// MessageId: SPAPI_E_INVALID_REG_PROPERTY +// +// MessageText: +// +// The device property code is invalid. +// +#define SPAPI_E_INVALID_REG_PROPERTY _HRESULT_TYPEDEF_(0x800F0209L) + +// +// MessageId: SPAPI_E_NO_INF +// +// MessageText: +// +// The INF from which a driver list is to be built does not exist. +// +#define SPAPI_E_NO_INF _HRESULT_TYPEDEF_(0x800F020AL) + +// +// MessageId: SPAPI_E_NO_SUCH_DEVINST +// +// MessageText: +// +// The device instance does not exist in the hardware tree. +// +#define SPAPI_E_NO_SUCH_DEVINST _HRESULT_TYPEDEF_(0x800F020BL) + +// +// MessageId: SPAPI_E_CANT_LOAD_CLASS_ICON +// +// MessageText: +// +// The icon representing this install class cannot be loaded. +// +#define SPAPI_E_CANT_LOAD_CLASS_ICON _HRESULT_TYPEDEF_(0x800F020CL) + +// +// MessageId: SPAPI_E_INVALID_CLASS_INSTALLER +// +// MessageText: +// +// The class installer registry entry is invalid. +// +#define SPAPI_E_INVALID_CLASS_INSTALLER _HRESULT_TYPEDEF_(0x800F020DL) + +// +// MessageId: SPAPI_E_DI_DO_DEFAULT +// +// MessageText: +// +// The class installer has indicated that the default action should be performed for this installation request. +// +#define SPAPI_E_DI_DO_DEFAULT _HRESULT_TYPEDEF_(0x800F020EL) + +// +// MessageId: SPAPI_E_DI_NOFILECOPY +// +// MessageText: +// +// The operation does not require any files to be copied. +// +#define SPAPI_E_DI_NOFILECOPY _HRESULT_TYPEDEF_(0x800F020FL) + +// +// MessageId: SPAPI_E_INVALID_HWPROFILE +// +// MessageText: +// +// The specified hardware profile does not exist. +// +#define SPAPI_E_INVALID_HWPROFILE _HRESULT_TYPEDEF_(0x800F0210L) + +// +// MessageId: SPAPI_E_NO_DEVICE_SELECTED +// +// MessageText: +// +// There is no device information element currently selected for this device information set. +// +#define SPAPI_E_NO_DEVICE_SELECTED _HRESULT_TYPEDEF_(0x800F0211L) + +// +// MessageId: SPAPI_E_DEVINFO_LIST_LOCKED +// +// MessageText: +// +// The operation cannot be performed because the device information set is locked. +// +#define SPAPI_E_DEVINFO_LIST_LOCKED _HRESULT_TYPEDEF_(0x800F0212L) + +// +// MessageId: SPAPI_E_DEVINFO_DATA_LOCKED +// +// MessageText: +// +// The operation cannot be performed because the device information element is locked. +// +#define SPAPI_E_DEVINFO_DATA_LOCKED _HRESULT_TYPEDEF_(0x800F0213L) + +// +// MessageId: SPAPI_E_DI_BAD_PATH +// +// MessageText: +// +// The specified path does not contain any applicable device INFs. +// +#define SPAPI_E_DI_BAD_PATH _HRESULT_TYPEDEF_(0x800F0214L) + +// +// MessageId: SPAPI_E_NO_CLASSINSTALL_PARAMS +// +// MessageText: +// +// No class installer parameters have been set for the device information set or element. +// +#define SPAPI_E_NO_CLASSINSTALL_PARAMS _HRESULT_TYPEDEF_(0x800F0215L) + +// +// MessageId: SPAPI_E_FILEQUEUE_LOCKED +// +// MessageText: +// +// The operation cannot be performed because the file queue is locked. +// +#define SPAPI_E_FILEQUEUE_LOCKED _HRESULT_TYPEDEF_(0x800F0216L) + +// +// MessageId: SPAPI_E_BAD_SERVICE_INSTALLSECT +// +// MessageText: +// +// A service installation section in this INF is invalid. +// +#define SPAPI_E_BAD_SERVICE_INSTALLSECT _HRESULT_TYPEDEF_(0x800F0217L) + +// +// MessageId: SPAPI_E_NO_CLASS_DRIVER_LIST +// +// MessageText: +// +// There is no class driver list for the device information element. +// +#define SPAPI_E_NO_CLASS_DRIVER_LIST _HRESULT_TYPEDEF_(0x800F0218L) + +// +// MessageId: SPAPI_E_NO_ASSOCIATED_SERVICE +// +// MessageText: +// +// The installation failed because a function driver was not specified for this device instance. +// +#define SPAPI_E_NO_ASSOCIATED_SERVICE _HRESULT_TYPEDEF_(0x800F0219L) + +// +// MessageId: SPAPI_E_NO_DEFAULT_DEVICE_INTERFACE +// +// MessageText: +// +// There is presently no default device interface designated for this interface class. +// +#define SPAPI_E_NO_DEFAULT_DEVICE_INTERFACE _HRESULT_TYPEDEF_(0x800F021AL) + +// +// MessageId: SPAPI_E_DEVICE_INTERFACE_ACTIVE +// +// MessageText: +// +// The operation cannot be performed because the device interface is currently active. +// +#define SPAPI_E_DEVICE_INTERFACE_ACTIVE _HRESULT_TYPEDEF_(0x800F021BL) + +// +// MessageId: SPAPI_E_DEVICE_INTERFACE_REMOVED +// +// MessageText: +// +// The operation cannot be performed because the device interface has been removed from the system. +// +#define SPAPI_E_DEVICE_INTERFACE_REMOVED _HRESULT_TYPEDEF_(0x800F021CL) + +// +// MessageId: SPAPI_E_BAD_INTERFACE_INSTALLSECT +// +// MessageText: +// +// An interface installation section in this INF is invalid. +// +#define SPAPI_E_BAD_INTERFACE_INSTALLSECT _HRESULT_TYPEDEF_(0x800F021DL) + +// +// MessageId: SPAPI_E_NO_SUCH_INTERFACE_CLASS +// +// MessageText: +// +// This interface class does not exist in the system. +// +#define SPAPI_E_NO_SUCH_INTERFACE_CLASS _HRESULT_TYPEDEF_(0x800F021EL) + +// +// MessageId: SPAPI_E_INVALID_REFERENCE_STRING +// +// MessageText: +// +// The reference string supplied for this interface device is invalid. +// +#define SPAPI_E_INVALID_REFERENCE_STRING _HRESULT_TYPEDEF_(0x800F021FL) + +// +// MessageId: SPAPI_E_INVALID_MACHINENAME +// +// MessageText: +// +// The specified machine name does not conform to UNC naming conventions. +// +#define SPAPI_E_INVALID_MACHINENAME _HRESULT_TYPEDEF_(0x800F0220L) + +// +// MessageId: SPAPI_E_REMOTE_COMM_FAILURE +// +// MessageText: +// +// A general remote communication error occurred. +// +#define SPAPI_E_REMOTE_COMM_FAILURE _HRESULT_TYPEDEF_(0x800F0221L) + +// +// MessageId: SPAPI_E_MACHINE_UNAVAILABLE +// +// MessageText: +// +// The machine selected for remote communication is not available at this time. +// +#define SPAPI_E_MACHINE_UNAVAILABLE _HRESULT_TYPEDEF_(0x800F0222L) + +// +// MessageId: SPAPI_E_NO_CONFIGMGR_SERVICES +// +// MessageText: +// +// The Plug and Play service is not available on the remote machine. +// +#define SPAPI_E_NO_CONFIGMGR_SERVICES _HRESULT_TYPEDEF_(0x800F0223L) + +// +// MessageId: SPAPI_E_INVALID_PROPPAGE_PROVIDER +// +// MessageText: +// +// The property page provider registry entry is invalid. +// +#define SPAPI_E_INVALID_PROPPAGE_PROVIDER _HRESULT_TYPEDEF_(0x800F0224L) + +// +// MessageId: SPAPI_E_NO_SUCH_DEVICE_INTERFACE +// +// MessageText: +// +// The requested device interface is not present in the system. +// +#define SPAPI_E_NO_SUCH_DEVICE_INTERFACE _HRESULT_TYPEDEF_(0x800F0225L) + +// +// MessageId: SPAPI_E_DI_POSTPROCESSING_REQUIRED +// +// MessageText: +// +// The device's co-installer has additional work to perform after installation is complete. +// +#define SPAPI_E_DI_POSTPROCESSING_REQUIRED _HRESULT_TYPEDEF_(0x800F0226L) + +// +// MessageId: SPAPI_E_INVALID_COINSTALLER +// +// MessageText: +// +// The device's co-installer is invalid. +// +#define SPAPI_E_INVALID_COINSTALLER _HRESULT_TYPEDEF_(0x800F0227L) + +// +// MessageId: SPAPI_E_NO_COMPAT_DRIVERS +// +// MessageText: +// +// There are no compatible drivers for this device. +// +#define SPAPI_E_NO_COMPAT_DRIVERS _HRESULT_TYPEDEF_(0x800F0228L) + +// +// MessageId: SPAPI_E_NO_DEVICE_ICON +// +// MessageText: +// +// There is no icon that represents this device or device type. +// +#define SPAPI_E_NO_DEVICE_ICON _HRESULT_TYPEDEF_(0x800F0229L) + +// +// MessageId: SPAPI_E_INVALID_INF_LOGCONFIG +// +// MessageText: +// +// A logical configuration specified in this INF is invalid. +// +#define SPAPI_E_INVALID_INF_LOGCONFIG _HRESULT_TYPEDEF_(0x800F022AL) + +// +// MessageId: SPAPI_E_DI_DONT_INSTALL +// +// MessageText: +// +// The class installer has denied the request to install or upgrade this device. +// +#define SPAPI_E_DI_DONT_INSTALL _HRESULT_TYPEDEF_(0x800F022BL) + +// +// MessageId: SPAPI_E_INVALID_FILTER_DRIVER +// +// MessageText: +// +// One of the filter drivers installed for this device is invalid. +// +#define SPAPI_E_INVALID_FILTER_DRIVER _HRESULT_TYPEDEF_(0x800F022CL) + +// +// MessageId: SPAPI_E_NON_WINDOWS_NT_DRIVER +// +// MessageText: +// +// The driver selected for this device does not support this version of Windows. +// +#define SPAPI_E_NON_WINDOWS_NT_DRIVER _HRESULT_TYPEDEF_(0x800F022DL) + +// +// MessageId: SPAPI_E_NON_WINDOWS_DRIVER +// +// MessageText: +// +// The driver selected for this device does not support Windows. +// +#define SPAPI_E_NON_WINDOWS_DRIVER _HRESULT_TYPEDEF_(0x800F022EL) + +// +// MessageId: SPAPI_E_NO_CATALOG_FOR_OEM_INF +// +// MessageText: +// +// The third-party INF does not contain digital signature information. +// +#define SPAPI_E_NO_CATALOG_FOR_OEM_INF _HRESULT_TYPEDEF_(0x800F022FL) + +// +// MessageId: SPAPI_E_DEVINSTALL_QUEUE_NONNATIVE +// +// MessageText: +// +// An invalid attempt was made to use a device installation file queue for verification of digital signatures relative to other platforms. +// +#define SPAPI_E_DEVINSTALL_QUEUE_NONNATIVE _HRESULT_TYPEDEF_(0x800F0230L) + +// +// MessageId: SPAPI_E_NOT_DISABLEABLE +// +// MessageText: +// +// The device cannot be disabled. +// +#define SPAPI_E_NOT_DISABLEABLE _HRESULT_TYPEDEF_(0x800F0231L) + +// +// MessageId: SPAPI_E_CANT_REMOVE_DEVINST +// +// MessageText: +// +// The device could not be dynamically removed. +// +#define SPAPI_E_CANT_REMOVE_DEVINST _HRESULT_TYPEDEF_(0x800F0232L) + +// +// MessageId: SPAPI_E_INVALID_TARGET +// +// MessageText: +// +// Cannot copy to specified target. +// +#define SPAPI_E_INVALID_TARGET _HRESULT_TYPEDEF_(0x800F0233L) + +// +// MessageId: SPAPI_E_DRIVER_NONNATIVE +// +// MessageText: +// +// Driver is not intended for this platform. +// +#define SPAPI_E_DRIVER_NONNATIVE _HRESULT_TYPEDEF_(0x800F0234L) + +// +// MessageId: SPAPI_E_IN_WOW64 +// +// MessageText: +// +// Operation not allowed in WOW64. +// +#define SPAPI_E_IN_WOW64 _HRESULT_TYPEDEF_(0x800F0235L) + +// +// MessageId: SPAPI_E_SET_SYSTEM_RESTORE_POINT +// +// MessageText: +// +// The operation involving unsigned file copying was rolled back, so that a system restore point could be set. +// +#define SPAPI_E_SET_SYSTEM_RESTORE_POINT _HRESULT_TYPEDEF_(0x800F0236L) + +// +// MessageId: SPAPI_E_INCORRECTLY_COPIED_INF +// +// MessageText: +// +// An INF was copied into the Windows INF directory in an improper manner. +// +#define SPAPI_E_INCORRECTLY_COPIED_INF _HRESULT_TYPEDEF_(0x800F0237L) + +// +// MessageId: SPAPI_E_SCE_DISABLED +// +// MessageText: +// +// The Security Configuration Editor (SCE) APIs have been disabled on this Embedded product. +// +#define SPAPI_E_SCE_DISABLED _HRESULT_TYPEDEF_(0x800F0238L) + +// +// MessageId: SPAPI_E_UNKNOWN_EXCEPTION +// +// MessageText: +// +// An unknown exception was encountered. +// +#define SPAPI_E_UNKNOWN_EXCEPTION _HRESULT_TYPEDEF_(0x800F0239L) + +// +// MessageId: SPAPI_E_PNP_REGISTRY_ERROR +// +// MessageText: +// +// A problem was encountered when accessing the Plug and Play registry database. +// +#define SPAPI_E_PNP_REGISTRY_ERROR _HRESULT_TYPEDEF_(0x800F023AL) + +// +// MessageId: SPAPI_E_REMOTE_REQUEST_UNSUPPORTED +// +// MessageText: +// +// The requested operation is not supported for a remote machine. +// +#define SPAPI_E_REMOTE_REQUEST_UNSUPPORTED _HRESULT_TYPEDEF_(0x800F023BL) + +// +// MessageId: SPAPI_E_NOT_AN_INSTALLED_OEM_INF +// +// MessageText: +// +// The specified file is not an installed OEM INF. +// +#define SPAPI_E_NOT_AN_INSTALLED_OEM_INF _HRESULT_TYPEDEF_(0x800F023CL) + +// +// MessageId: SPAPI_E_INF_IN_USE_BY_DEVICES +// +// MessageText: +// +// One or more devices are presently installed using the specified INF. +// +#define SPAPI_E_INF_IN_USE_BY_DEVICES _HRESULT_TYPEDEF_(0x800F023DL) + +// +// MessageId: SPAPI_E_DI_FUNCTION_OBSOLETE +// +// MessageText: +// +// The requested device install operation is obsolete. +// +#define SPAPI_E_DI_FUNCTION_OBSOLETE _HRESULT_TYPEDEF_(0x800F023EL) + +// +// MessageId: SPAPI_E_NO_AUTHENTICODE_CATALOG +// +// MessageText: +// +// A file could not be verified because it does not have an associated catalog signed via Authenticode(tm). +// +#define SPAPI_E_NO_AUTHENTICODE_CATALOG _HRESULT_TYPEDEF_(0x800F023FL) + +// +// MessageId: SPAPI_E_AUTHENTICODE_DISALLOWED +// +// MessageText: +// +// Authenticode(tm) signature verification is not supported for the specified INF. +// +#define SPAPI_E_AUTHENTICODE_DISALLOWED _HRESULT_TYPEDEF_(0x800F0240L) + +// +// MessageId: SPAPI_E_AUTHENTICODE_TRUSTED_PUBLISHER +// +// MessageText: +// +// The INF was signed with an Authenticode(tm) catalog from a trusted publisher. +// +#define SPAPI_E_AUTHENTICODE_TRUSTED_PUBLISHER _HRESULT_TYPEDEF_(0x800F0241L) + +// +// MessageId: SPAPI_E_AUTHENTICODE_TRUST_NOT_ESTABLISHED +// +// MessageText: +// +// The publisher of an Authenticode(tm) signed catalog has not yet been established as trusted. +// +#define SPAPI_E_AUTHENTICODE_TRUST_NOT_ESTABLISHED _HRESULT_TYPEDEF_(0x800F0242L) + +// +// MessageId: SPAPI_E_AUTHENTICODE_PUBLISHER_NOT_TRUSTED +// +// MessageText: +// +// The publisher of an Authenticode(tm) signed catalog was not established as trusted. +// +#define SPAPI_E_AUTHENTICODE_PUBLISHER_NOT_TRUSTED _HRESULT_TYPEDEF_(0x800F0243L) + +// +// MessageId: SPAPI_E_SIGNATURE_OSATTRIBUTE_MISMATCH +// +// MessageText: +// +// The software was tested for compliance with Windows Logo requirements on a different version of Windows, and may not be compatible with this version. +// +#define SPAPI_E_SIGNATURE_OSATTRIBUTE_MISMATCH _HRESULT_TYPEDEF_(0x800F0244L) + +// +// MessageId: SPAPI_E_ONLY_VALIDATE_VIA_AUTHENTICODE +// +// MessageText: +// +// The file may only be validated by a catalog signed via Authenticode(tm). +// +#define SPAPI_E_ONLY_VALIDATE_VIA_AUTHENTICODE _HRESULT_TYPEDEF_(0x800F0245L) + +// +// MessageId: SPAPI_E_DEVICE_INSTALLER_NOT_READY +// +// MessageText: +// +// One of the installers for this device cannot perform the installation at this time. +// +#define SPAPI_E_DEVICE_INSTALLER_NOT_READY _HRESULT_TYPEDEF_(0x800F0246L) + +// +// MessageId: SPAPI_E_DRIVER_STORE_ADD_FAILED +// +// MessageText: +// +// A problem was encountered while attempting to add the driver to the store. +// +#define SPAPI_E_DRIVER_STORE_ADD_FAILED _HRESULT_TYPEDEF_(0x800F0247L) + +// +// MessageId: SPAPI_E_DEVICE_INSTALL_BLOCKED +// +// MessageText: +// +// The installation of this device is forbidden by system policy. Contact your system administrator. +// +#define SPAPI_E_DEVICE_INSTALL_BLOCKED _HRESULT_TYPEDEF_(0x800F0248L) + +// +// MessageId: SPAPI_E_DRIVER_INSTALL_BLOCKED +// +// MessageText: +// +// The installation of this driver is forbidden by system policy. Contact your system administrator. +// +#define SPAPI_E_DRIVER_INSTALL_BLOCKED _HRESULT_TYPEDEF_(0x800F0249L) + +// +// MessageId: SPAPI_E_WRONG_INF_TYPE +// +// MessageText: +// +// The specified INF is the wrong type for this operation. +// +#define SPAPI_E_WRONG_INF_TYPE _HRESULT_TYPEDEF_(0x800F024AL) + +// +// MessageId: SPAPI_E_FILE_HASH_NOT_IN_CATALOG +// +// MessageText: +// +// The hash for the file is not present in the specified catalog file. The file is likely corrupt or the victim of tampering. +// +#define SPAPI_E_FILE_HASH_NOT_IN_CATALOG _HRESULT_TYPEDEF_(0x800F024BL) + +// +// MessageId: SPAPI_E_DRIVER_STORE_DELETE_FAILED +// +// MessageText: +// +// A problem was encountered while attempting to delete the driver from the store. +// +#define SPAPI_E_DRIVER_STORE_DELETE_FAILED _HRESULT_TYPEDEF_(0x800F024CL) + +// +// MessageId: SPAPI_E_UNRECOVERABLE_STACK_OVERFLOW +// +// MessageText: +// +// An unrecoverable stack overflow was encountered. +// +#define SPAPI_E_UNRECOVERABLE_STACK_OVERFLOW _HRESULT_TYPEDEF_(0x800F0300L) + +// +// MessageId: SPAPI_E_ERROR_NOT_INSTALLED +// +// MessageText: +// +// No installed components were detected. +// +#define SPAPI_E_ERROR_NOT_INSTALLED _HRESULT_TYPEDEF_(0x800F1000L) + +// ***************** +// FACILITY_SCARD +// ***************** +// +// ============================= +// Facility SCARD Error Messages +// ============================= +// +#define SCARD_S_SUCCESS NO_ERROR +// +// MessageId: SCARD_F_INTERNAL_ERROR +// +// MessageText: +// +// An internal consistency check failed. +// +#define SCARD_F_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80100001L) + +// +// MessageId: SCARD_E_CANCELLED +// +// MessageText: +// +// The action was cancelled by an SCardCancel request. +// +#define SCARD_E_CANCELLED _HRESULT_TYPEDEF_(0x80100002L) + +// +// MessageId: SCARD_E_INVALID_HANDLE +// +// MessageText: +// +// The supplied handle was invalid. +// +#define SCARD_E_INVALID_HANDLE _HRESULT_TYPEDEF_(0x80100003L) + +// +// MessageId: SCARD_E_INVALID_PARAMETER +// +// MessageText: +// +// One or more of the supplied parameters could not be properly interpreted. +// +#define SCARD_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80100004L) + +// +// MessageId: SCARD_E_INVALID_TARGET +// +// MessageText: +// +// Registry startup information is missing or invalid. +// +#define SCARD_E_INVALID_TARGET _HRESULT_TYPEDEF_(0x80100005L) + +// +// MessageId: SCARD_E_NO_MEMORY +// +// MessageText: +// +// Not enough memory available to complete this command. +// +#define SCARD_E_NO_MEMORY _HRESULT_TYPEDEF_(0x80100006L) + +// +// MessageId: SCARD_F_WAITED_TOO_LONG +// +// MessageText: +// +// An internal consistency timer has expired. +// +#define SCARD_F_WAITED_TOO_LONG _HRESULT_TYPEDEF_(0x80100007L) + +// +// MessageId: SCARD_E_INSUFFICIENT_BUFFER +// +// MessageText: +// +// The data buffer to receive returned data is too small for the returned data. +// +#define SCARD_E_INSUFFICIENT_BUFFER _HRESULT_TYPEDEF_(0x80100008L) + +// +// MessageId: SCARD_E_UNKNOWN_READER +// +// MessageText: +// +// The specified reader name is not recognized. +// +#define SCARD_E_UNKNOWN_READER _HRESULT_TYPEDEF_(0x80100009L) + +// +// MessageId: SCARD_E_TIMEOUT +// +// MessageText: +// +// The user-specified timeout value has expired. +// +#define SCARD_E_TIMEOUT _HRESULT_TYPEDEF_(0x8010000AL) + +// +// MessageId: SCARD_E_SHARING_VIOLATION +// +// MessageText: +// +// The smart card cannot be accessed because of other connections outstanding. +// +#define SCARD_E_SHARING_VIOLATION _HRESULT_TYPEDEF_(0x8010000BL) + +// +// MessageId: SCARD_E_NO_SMARTCARD +// +// MessageText: +// +// The operation requires a smart card, but no smart card is currently in the device. +// +#define SCARD_E_NO_SMARTCARD _HRESULT_TYPEDEF_(0x8010000CL) + +// +// MessageId: SCARD_E_UNKNOWN_CARD +// +// MessageText: +// +// The specified smart card name is not recognized. +// +#define SCARD_E_UNKNOWN_CARD _HRESULT_TYPEDEF_(0x8010000DL) + +// +// MessageId: SCARD_E_CANT_DISPOSE +// +// MessageText: +// +// The system could not dispose of the media in the requested manner. +// +#define SCARD_E_CANT_DISPOSE _HRESULT_TYPEDEF_(0x8010000EL) + +// +// MessageId: SCARD_E_PROTO_MISMATCH +// +// MessageText: +// +// The requested protocols are incompatible with the protocol currently in use with the smart card. +// +#define SCARD_E_PROTO_MISMATCH _HRESULT_TYPEDEF_(0x8010000FL) + +// +// MessageId: SCARD_E_NOT_READY +// +// MessageText: +// +// The reader or smart card is not ready to accept commands. +// +#define SCARD_E_NOT_READY _HRESULT_TYPEDEF_(0x80100010L) + +// +// MessageId: SCARD_E_INVALID_VALUE +// +// MessageText: +// +// One or more of the supplied parameters values could not be properly interpreted. +// +#define SCARD_E_INVALID_VALUE _HRESULT_TYPEDEF_(0x80100011L) + +// +// MessageId: SCARD_E_SYSTEM_CANCELLED +// +// MessageText: +// +// The action was cancelled by the system, presumably to log off or shut down. +// +#define SCARD_E_SYSTEM_CANCELLED _HRESULT_TYPEDEF_(0x80100012L) + +// +// MessageId: SCARD_F_COMM_ERROR +// +// MessageText: +// +// An internal communications error has been detected. +// +#define SCARD_F_COMM_ERROR _HRESULT_TYPEDEF_(0x80100013L) + +// +// MessageId: SCARD_F_UNKNOWN_ERROR +// +// MessageText: +// +// An internal error has been detected, but the source is unknown. +// +#define SCARD_F_UNKNOWN_ERROR _HRESULT_TYPEDEF_(0x80100014L) + +// +// MessageId: SCARD_E_INVALID_ATR +// +// MessageText: +// +// An ATR obtained from the registry is not a valid ATR string. +// +#define SCARD_E_INVALID_ATR _HRESULT_TYPEDEF_(0x80100015L) + +// +// MessageId: SCARD_E_NOT_TRANSACTED +// +// MessageText: +// +// An attempt was made to end a non-existent transaction. +// +#define SCARD_E_NOT_TRANSACTED _HRESULT_TYPEDEF_(0x80100016L) + +// +// MessageId: SCARD_E_READER_UNAVAILABLE +// +// MessageText: +// +// The specified reader is not currently available for use. +// +#define SCARD_E_READER_UNAVAILABLE _HRESULT_TYPEDEF_(0x80100017L) + +// +// MessageId: SCARD_P_SHUTDOWN +// +// MessageText: +// +// The operation has been aborted to allow the server application to exit. +// +#define SCARD_P_SHUTDOWN _HRESULT_TYPEDEF_(0x80100018L) + +// +// MessageId: SCARD_E_PCI_TOO_SMALL +// +// MessageText: +// +// The PCI Receive buffer was too small. +// +#define SCARD_E_PCI_TOO_SMALL _HRESULT_TYPEDEF_(0x80100019L) + +// +// MessageId: SCARD_E_READER_UNSUPPORTED +// +// MessageText: +// +// The reader driver does not meet minimal requirements for support. +// +#define SCARD_E_READER_UNSUPPORTED _HRESULT_TYPEDEF_(0x8010001AL) + +// +// MessageId: SCARD_E_DUPLICATE_READER +// +// MessageText: +// +// The reader driver did not produce a unique reader name. +// +#define SCARD_E_DUPLICATE_READER _HRESULT_TYPEDEF_(0x8010001BL) + +// +// MessageId: SCARD_E_CARD_UNSUPPORTED +// +// MessageText: +// +// The smart card does not meet minimal requirements for support. +// +#define SCARD_E_CARD_UNSUPPORTED _HRESULT_TYPEDEF_(0x8010001CL) + +// +// MessageId: SCARD_E_NO_SERVICE +// +// MessageText: +// +// The Smart Card Resource Manager is not running. +// +#define SCARD_E_NO_SERVICE _HRESULT_TYPEDEF_(0x8010001DL) + +// +// MessageId: SCARD_E_SERVICE_STOPPED +// +// MessageText: +// +// The Smart Card Resource Manager has shut down. +// +#define SCARD_E_SERVICE_STOPPED _HRESULT_TYPEDEF_(0x8010001EL) + +// +// MessageId: SCARD_E_UNEXPECTED +// +// MessageText: +// +// An unexpected card error has occurred. +// +#define SCARD_E_UNEXPECTED _HRESULT_TYPEDEF_(0x8010001FL) + +// +// MessageId: SCARD_E_ICC_INSTALLATION +// +// MessageText: +// +// No Primary Provider can be found for the smart card. +// +#define SCARD_E_ICC_INSTALLATION _HRESULT_TYPEDEF_(0x80100020L) + +// +// MessageId: SCARD_E_ICC_CREATEORDER +// +// MessageText: +// +// The requested order of object creation is not supported. +// +#define SCARD_E_ICC_CREATEORDER _HRESULT_TYPEDEF_(0x80100021L) + +// +// MessageId: SCARD_E_UNSUPPORTED_FEATURE +// +// MessageText: +// +// This smart card does not support the requested feature. +// +#define SCARD_E_UNSUPPORTED_FEATURE _HRESULT_TYPEDEF_(0x80100022L) + +// +// MessageId: SCARD_E_DIR_NOT_FOUND +// +// MessageText: +// +// The identified directory does not exist in the smart card. +// +#define SCARD_E_DIR_NOT_FOUND _HRESULT_TYPEDEF_(0x80100023L) + +// +// MessageId: SCARD_E_FILE_NOT_FOUND +// +// MessageText: +// +// The identified file does not exist in the smart card. +// +#define SCARD_E_FILE_NOT_FOUND _HRESULT_TYPEDEF_(0x80100024L) + +// +// MessageId: SCARD_E_NO_DIR +// +// MessageText: +// +// The supplied path does not represent a smart card directory. +// +#define SCARD_E_NO_DIR _HRESULT_TYPEDEF_(0x80100025L) + +// +// MessageId: SCARD_E_NO_FILE +// +// MessageText: +// +// The supplied path does not represent a smart card file. +// +#define SCARD_E_NO_FILE _HRESULT_TYPEDEF_(0x80100026L) + +// +// MessageId: SCARD_E_NO_ACCESS +// +// MessageText: +// +// Access is denied to this file. +// +#define SCARD_E_NO_ACCESS _HRESULT_TYPEDEF_(0x80100027L) + +// +// MessageId: SCARD_E_WRITE_TOO_MANY +// +// MessageText: +// +// The smart card does not have enough memory to store the information. +// +#define SCARD_E_WRITE_TOO_MANY _HRESULT_TYPEDEF_(0x80100028L) + +// +// MessageId: SCARD_E_BAD_SEEK +// +// MessageText: +// +// There was an error trying to set the smart card file object pointer. +// +#define SCARD_E_BAD_SEEK _HRESULT_TYPEDEF_(0x80100029L) + +// +// MessageId: SCARD_E_INVALID_CHV +// +// MessageText: +// +// The supplied PIN is incorrect. +// +#define SCARD_E_INVALID_CHV _HRESULT_TYPEDEF_(0x8010002AL) + +// +// MessageId: SCARD_E_UNKNOWN_RES_MNG +// +// MessageText: +// +// An unrecognized error code was returned from a layered component. +// +#define SCARD_E_UNKNOWN_RES_MNG _HRESULT_TYPEDEF_(0x8010002BL) + +// +// MessageId: SCARD_E_NO_SUCH_CERTIFICATE +// +// MessageText: +// +// The requested certificate does not exist. +// +#define SCARD_E_NO_SUCH_CERTIFICATE _HRESULT_TYPEDEF_(0x8010002CL) + +// +// MessageId: SCARD_E_CERTIFICATE_UNAVAILABLE +// +// MessageText: +// +// The requested certificate could not be obtained. +// +#define SCARD_E_CERTIFICATE_UNAVAILABLE _HRESULT_TYPEDEF_(0x8010002DL) + +// +// MessageId: SCARD_E_NO_READERS_AVAILABLE +// +// MessageText: +// +// Cannot find a smart card reader. +// +#define SCARD_E_NO_READERS_AVAILABLE _HRESULT_TYPEDEF_(0x8010002EL) + +// +// MessageId: SCARD_E_COMM_DATA_LOST +// +// MessageText: +// +// A communications error with the smart card has been detected. Retry the operation. +// +#define SCARD_E_COMM_DATA_LOST _HRESULT_TYPEDEF_(0x8010002FL) + +// +// MessageId: SCARD_E_NO_KEY_CONTAINER +// +// MessageText: +// +// The requested key container does not exist on the smart card. +// +#define SCARD_E_NO_KEY_CONTAINER _HRESULT_TYPEDEF_(0x80100030L) + +// +// MessageId: SCARD_E_SERVER_TOO_BUSY +// +// MessageText: +// +// The Smart Card Resource Manager is too busy to complete this operation. +// +#define SCARD_E_SERVER_TOO_BUSY _HRESULT_TYPEDEF_(0x80100031L) + +// +// MessageId: SCARD_E_PIN_CACHE_EXPIRED +// +// MessageText: +// +// The smart card PIN cache has expired. +// +#define SCARD_E_PIN_CACHE_EXPIRED _HRESULT_TYPEDEF_(0x80100032L) + +// +// MessageId: SCARD_E_NO_PIN_CACHE +// +// MessageText: +// +// The smart card PIN cannot be cached. +// +#define SCARD_E_NO_PIN_CACHE _HRESULT_TYPEDEF_(0x80100033L) + +// +// MessageId: SCARD_E_READ_ONLY_CARD +// +// MessageText: +// +// The smart card is read only and cannot be written to. +// +#define SCARD_E_READ_ONLY_CARD _HRESULT_TYPEDEF_(0x80100034L) + +// +// These are warning codes. +// +// +// MessageId: SCARD_W_UNSUPPORTED_CARD +// +// MessageText: +// +// The reader cannot communicate with the smart card, due to ATR configuration conflicts. +// +#define SCARD_W_UNSUPPORTED_CARD _HRESULT_TYPEDEF_(0x80100065L) + +// +// MessageId: SCARD_W_UNRESPONSIVE_CARD +// +// MessageText: +// +// The smart card is not responding to a reset. +// +#define SCARD_W_UNRESPONSIVE_CARD _HRESULT_TYPEDEF_(0x80100066L) + +// +// MessageId: SCARD_W_UNPOWERED_CARD +// +// MessageText: +// +// Power has been removed from the smart card, so that further communication is not possible. +// +#define SCARD_W_UNPOWERED_CARD _HRESULT_TYPEDEF_(0x80100067L) + +// +// MessageId: SCARD_W_RESET_CARD +// +// MessageText: +// +// The smart card has been reset, so any shared state information is invalid. +// +#define SCARD_W_RESET_CARD _HRESULT_TYPEDEF_(0x80100068L) + +// +// MessageId: SCARD_W_REMOVED_CARD +// +// MessageText: +// +// The smart card has been removed, so that further communication is not possible. +// +#define SCARD_W_REMOVED_CARD _HRESULT_TYPEDEF_(0x80100069L) + +// +// MessageId: SCARD_W_SECURITY_VIOLATION +// +// MessageText: +// +// Access was denied because of a security violation. +// +#define SCARD_W_SECURITY_VIOLATION _HRESULT_TYPEDEF_(0x8010006AL) + +// +// MessageId: SCARD_W_WRONG_CHV +// +// MessageText: +// +// The card cannot be accessed because the wrong PIN was presented. +// +#define SCARD_W_WRONG_CHV _HRESULT_TYPEDEF_(0x8010006BL) + +// +// MessageId: SCARD_W_CHV_BLOCKED +// +// MessageText: +// +// The card cannot be accessed because the maximum number of PIN entry attempts has been reached. +// +#define SCARD_W_CHV_BLOCKED _HRESULT_TYPEDEF_(0x8010006CL) + +// +// MessageId: SCARD_W_EOF +// +// MessageText: +// +// The end of the smart card file has been reached. +// +#define SCARD_W_EOF _HRESULT_TYPEDEF_(0x8010006DL) + +// +// MessageId: SCARD_W_CANCELLED_BY_USER +// +// MessageText: +// +// The action was cancelled by the user. +// +#define SCARD_W_CANCELLED_BY_USER _HRESULT_TYPEDEF_(0x8010006EL) + +// +// MessageId: SCARD_W_CARD_NOT_AUTHENTICATED +// +// MessageText: +// +// No PIN was presented to the smart card. +// +#define SCARD_W_CARD_NOT_AUTHENTICATED _HRESULT_TYPEDEF_(0x8010006FL) + +// +// MessageId: SCARD_W_CACHE_ITEM_NOT_FOUND +// +// MessageText: +// +// The requested item could not be found in the cache. +// +#define SCARD_W_CACHE_ITEM_NOT_FOUND _HRESULT_TYPEDEF_(0x80100070L) + +// +// MessageId: SCARD_W_CACHE_ITEM_STALE +// +// MessageText: +// +// The requested cache item is too old and was deleted from the cache. +// +#define SCARD_W_CACHE_ITEM_STALE _HRESULT_TYPEDEF_(0x80100071L) + +// +// MessageId: SCARD_W_CACHE_ITEM_TOO_BIG +// +// MessageText: +// +// The new cache item exceeds the maximum per-item size defined for the cache. +// +#define SCARD_W_CACHE_ITEM_TOO_BIG _HRESULT_TYPEDEF_(0x80100072L) + +// ***************** +// FACILITY_COMPLUS +// ***************** +// +// =============================== +// Facility COMPLUS Error Messages +// =============================== +// +// +// The following are the subranges within the COMPLUS facility +// 0x400 - 0x4ff COMADMIN_E_CAT +// 0x600 - 0x6ff COMQC errors +// 0x700 - 0x7ff MSDTC errors +// 0x800 - 0x8ff Other COMADMIN errors +// +// COMPLUS Admin errors +// +// +// MessageId: COMADMIN_E_OBJECTERRORS +// +// MessageText: +// +// Errors occurred accessing one or more objects - the ErrorInfo collection may have more detail +// +#define COMADMIN_E_OBJECTERRORS _HRESULT_TYPEDEF_(0x80110401L) + +// +// MessageId: COMADMIN_E_OBJECTINVALID +// +// MessageText: +// +// One or more of the object's properties are missing or invalid +// +#define COMADMIN_E_OBJECTINVALID _HRESULT_TYPEDEF_(0x80110402L) + +// +// MessageId: COMADMIN_E_KEYMISSING +// +// MessageText: +// +// The object was not found in the catalog +// +#define COMADMIN_E_KEYMISSING _HRESULT_TYPEDEF_(0x80110403L) + +// +// MessageId: COMADMIN_E_ALREADYINSTALLED +// +// MessageText: +// +// The object is already registered +// +#define COMADMIN_E_ALREADYINSTALLED _HRESULT_TYPEDEF_(0x80110404L) + +// +// MessageId: COMADMIN_E_APP_FILE_WRITEFAIL +// +// MessageText: +// +// Error occurred writing to the application file +// +#define COMADMIN_E_APP_FILE_WRITEFAIL _HRESULT_TYPEDEF_(0x80110407L) + +// +// MessageId: COMADMIN_E_APP_FILE_READFAIL +// +// MessageText: +// +// Error occurred reading the application file +// +#define COMADMIN_E_APP_FILE_READFAIL _HRESULT_TYPEDEF_(0x80110408L) + +// +// MessageId: COMADMIN_E_APP_FILE_VERSION +// +// MessageText: +// +// Invalid version number in application file +// +#define COMADMIN_E_APP_FILE_VERSION _HRESULT_TYPEDEF_(0x80110409L) + +// +// MessageId: COMADMIN_E_BADPATH +// +// MessageText: +// +// The file path is invalid +// +#define COMADMIN_E_BADPATH _HRESULT_TYPEDEF_(0x8011040AL) + +// +// MessageId: COMADMIN_E_APPLICATIONEXISTS +// +// MessageText: +// +// The application is already installed +// +#define COMADMIN_E_APPLICATIONEXISTS _HRESULT_TYPEDEF_(0x8011040BL) + +// +// MessageId: COMADMIN_E_ROLEEXISTS +// +// MessageText: +// +// The role already exists +// +#define COMADMIN_E_ROLEEXISTS _HRESULT_TYPEDEF_(0x8011040CL) + +// +// MessageId: COMADMIN_E_CANTCOPYFILE +// +// MessageText: +// +// An error occurred copying the file +// +#define COMADMIN_E_CANTCOPYFILE _HRESULT_TYPEDEF_(0x8011040DL) + +// +// MessageId: COMADMIN_E_NOUSER +// +// MessageText: +// +// One or more users are not valid +// +#define COMADMIN_E_NOUSER _HRESULT_TYPEDEF_(0x8011040FL) + +// +// MessageId: COMADMIN_E_INVALIDUSERIDS +// +// MessageText: +// +// One or more users in the application file are not valid +// +#define COMADMIN_E_INVALIDUSERIDS _HRESULT_TYPEDEF_(0x80110410L) + +// +// MessageId: COMADMIN_E_NOREGISTRYCLSID +// +// MessageText: +// +// The component's CLSID is missing or corrupt +// +#define COMADMIN_E_NOREGISTRYCLSID _HRESULT_TYPEDEF_(0x80110411L) + +// +// MessageId: COMADMIN_E_BADREGISTRYPROGID +// +// MessageText: +// +// The component's progID is missing or corrupt +// +#define COMADMIN_E_BADREGISTRYPROGID _HRESULT_TYPEDEF_(0x80110412L) + +// +// MessageId: COMADMIN_E_AUTHENTICATIONLEVEL +// +// MessageText: +// +// Unable to set required authentication level for update request +// +#define COMADMIN_E_AUTHENTICATIONLEVEL _HRESULT_TYPEDEF_(0x80110413L) + +// +// MessageId: COMADMIN_E_USERPASSWDNOTVALID +// +// MessageText: +// +// The identity or password set on the application is not valid +// +#define COMADMIN_E_USERPASSWDNOTVALID _HRESULT_TYPEDEF_(0x80110414L) + +// +// MessageId: COMADMIN_E_CLSIDORIIDMISMATCH +// +// MessageText: +// +// Application file CLSIDs or IIDs do not match corresponding DLLs +// +#define COMADMIN_E_CLSIDORIIDMISMATCH _HRESULT_TYPEDEF_(0x80110418L) + +// +// MessageId: COMADMIN_E_REMOTEINTERFACE +// +// MessageText: +// +// Interface information is either missing or changed +// +#define COMADMIN_E_REMOTEINTERFACE _HRESULT_TYPEDEF_(0x80110419L) + +// +// MessageId: COMADMIN_E_DLLREGISTERSERVER +// +// MessageText: +// +// DllRegisterServer failed on component install +// +#define COMADMIN_E_DLLREGISTERSERVER _HRESULT_TYPEDEF_(0x8011041AL) + +// +// MessageId: COMADMIN_E_NOSERVERSHARE +// +// MessageText: +// +// No server file share available +// +#define COMADMIN_E_NOSERVERSHARE _HRESULT_TYPEDEF_(0x8011041BL) + +// +// MessageId: COMADMIN_E_DLLLOADFAILED +// +// MessageText: +// +// DLL could not be loaded +// +#define COMADMIN_E_DLLLOADFAILED _HRESULT_TYPEDEF_(0x8011041DL) + +// +// MessageId: COMADMIN_E_BADREGISTRYLIBID +// +// MessageText: +// +// The registered TypeLib ID is not valid +// +#define COMADMIN_E_BADREGISTRYLIBID _HRESULT_TYPEDEF_(0x8011041EL) + +// +// MessageId: COMADMIN_E_APPDIRNOTFOUND +// +// MessageText: +// +// Application install directory not found +// +#define COMADMIN_E_APPDIRNOTFOUND _HRESULT_TYPEDEF_(0x8011041FL) + +// +// MessageId: COMADMIN_E_REGISTRARFAILED +// +// MessageText: +// +// Errors occurred while in the component registrar +// +#define COMADMIN_E_REGISTRARFAILED _HRESULT_TYPEDEF_(0x80110423L) + +// +// MessageId: COMADMIN_E_COMPFILE_DOESNOTEXIST +// +// MessageText: +// +// The file does not exist +// +#define COMADMIN_E_COMPFILE_DOESNOTEXIST _HRESULT_TYPEDEF_(0x80110424L) + +// +// MessageId: COMADMIN_E_COMPFILE_LOADDLLFAIL +// +// MessageText: +// +// The DLL could not be loaded +// +#define COMADMIN_E_COMPFILE_LOADDLLFAIL _HRESULT_TYPEDEF_(0x80110425L) + +// +// MessageId: COMADMIN_E_COMPFILE_GETCLASSOBJ +// +// MessageText: +// +// GetClassObject failed in the DLL +// +#define COMADMIN_E_COMPFILE_GETCLASSOBJ _HRESULT_TYPEDEF_(0x80110426L) + +// +// MessageId: COMADMIN_E_COMPFILE_CLASSNOTAVAIL +// +// MessageText: +// +// The DLL does not support the components listed in the TypeLib +// +#define COMADMIN_E_COMPFILE_CLASSNOTAVAIL _HRESULT_TYPEDEF_(0x80110427L) + +// +// MessageId: COMADMIN_E_COMPFILE_BADTLB +// +// MessageText: +// +// The TypeLib could not be loaded +// +#define COMADMIN_E_COMPFILE_BADTLB _HRESULT_TYPEDEF_(0x80110428L) + +// +// MessageId: COMADMIN_E_COMPFILE_NOTINSTALLABLE +// +// MessageText: +// +// The file does not contain components or component information +// +#define COMADMIN_E_COMPFILE_NOTINSTALLABLE _HRESULT_TYPEDEF_(0x80110429L) + +// +// MessageId: COMADMIN_E_NOTCHANGEABLE +// +// MessageText: +// +// Changes to this object and its sub-objects have been disabled +// +#define COMADMIN_E_NOTCHANGEABLE _HRESULT_TYPEDEF_(0x8011042AL) + +// +// MessageId: COMADMIN_E_NOTDELETEABLE +// +// MessageText: +// +// The delete function has been disabled for this object +// +#define COMADMIN_E_NOTDELETEABLE _HRESULT_TYPEDEF_(0x8011042BL) + +// +// MessageId: COMADMIN_E_SESSION +// +// MessageText: +// +// The server catalog version is not supported +// +#define COMADMIN_E_SESSION _HRESULT_TYPEDEF_(0x8011042CL) + +// +// MessageId: COMADMIN_E_COMP_MOVE_LOCKED +// +// MessageText: +// +// The component move was disallowed, because the source or destination application is either a system application or currently locked against changes +// +#define COMADMIN_E_COMP_MOVE_LOCKED _HRESULT_TYPEDEF_(0x8011042DL) + +// +// MessageId: COMADMIN_E_COMP_MOVE_BAD_DEST +// +// MessageText: +// +// The component move failed because the destination application no longer exists +// +#define COMADMIN_E_COMP_MOVE_BAD_DEST _HRESULT_TYPEDEF_(0x8011042EL) + +// +// MessageId: COMADMIN_E_REGISTERTLB +// +// MessageText: +// +// The system was unable to register the TypeLib +// +#define COMADMIN_E_REGISTERTLB _HRESULT_TYPEDEF_(0x80110430L) + +// +// MessageId: COMADMIN_E_SYSTEMAPP +// +// MessageText: +// +// This operation cannot be performed on the system application +// +#define COMADMIN_E_SYSTEMAPP _HRESULT_TYPEDEF_(0x80110433L) + +// +// MessageId: COMADMIN_E_COMPFILE_NOREGISTRAR +// +// MessageText: +// +// The component registrar referenced in this file is not available +// +#define COMADMIN_E_COMPFILE_NOREGISTRAR _HRESULT_TYPEDEF_(0x80110434L) + +// +// MessageId: COMADMIN_E_COREQCOMPINSTALLED +// +// MessageText: +// +// A component in the same DLL is already installed +// +#define COMADMIN_E_COREQCOMPINSTALLED _HRESULT_TYPEDEF_(0x80110435L) + +// +// MessageId: COMADMIN_E_SERVICENOTINSTALLED +// +// MessageText: +// +// The service is not installed +// +#define COMADMIN_E_SERVICENOTINSTALLED _HRESULT_TYPEDEF_(0x80110436L) + +// +// MessageId: COMADMIN_E_PROPERTYSAVEFAILED +// +// MessageText: +// +// One or more property settings are either invalid or in conflict with each other +// +#define COMADMIN_E_PROPERTYSAVEFAILED _HRESULT_TYPEDEF_(0x80110437L) + +// +// MessageId: COMADMIN_E_OBJECTEXISTS +// +// MessageText: +// +// The object you are attempting to add or rename already exists +// +#define COMADMIN_E_OBJECTEXISTS _HRESULT_TYPEDEF_(0x80110438L) + +// +// MessageId: COMADMIN_E_COMPONENTEXISTS +// +// MessageText: +// +// The component already exists +// +#define COMADMIN_E_COMPONENTEXISTS _HRESULT_TYPEDEF_(0x80110439L) + +// +// MessageId: COMADMIN_E_REGFILE_CORRUPT +// +// MessageText: +// +// The registration file is corrupt +// +#define COMADMIN_E_REGFILE_CORRUPT _HRESULT_TYPEDEF_(0x8011043BL) + +// +// MessageId: COMADMIN_E_PROPERTY_OVERFLOW +// +// MessageText: +// +// The property value is too large +// +#define COMADMIN_E_PROPERTY_OVERFLOW _HRESULT_TYPEDEF_(0x8011043CL) + +// +// MessageId: COMADMIN_E_NOTINREGISTRY +// +// MessageText: +// +// Object was not found in registry +// +#define COMADMIN_E_NOTINREGISTRY _HRESULT_TYPEDEF_(0x8011043EL) + +// +// MessageId: COMADMIN_E_OBJECTNOTPOOLABLE +// +// MessageText: +// +// This object is not poolable +// +#define COMADMIN_E_OBJECTNOTPOOLABLE _HRESULT_TYPEDEF_(0x8011043FL) + +// +// MessageId: COMADMIN_E_APPLID_MATCHES_CLSID +// +// MessageText: +// +// A CLSID with the same GUID as the new application ID is already installed on this machine +// +#define COMADMIN_E_APPLID_MATCHES_CLSID _HRESULT_TYPEDEF_(0x80110446L) + +// +// MessageId: COMADMIN_E_ROLE_DOES_NOT_EXIST +// +// MessageText: +// +// A role assigned to a component, interface, or method did not exist in the application +// +#define COMADMIN_E_ROLE_DOES_NOT_EXIST _HRESULT_TYPEDEF_(0x80110447L) + +// +// MessageId: COMADMIN_E_START_APP_NEEDS_COMPONENTS +// +// MessageText: +// +// You must have components in an application in order to start the application +// +#define COMADMIN_E_START_APP_NEEDS_COMPONENTS _HRESULT_TYPEDEF_(0x80110448L) + +// +// MessageId: COMADMIN_E_REQUIRES_DIFFERENT_PLATFORM +// +// MessageText: +// +// This operation is not enabled on this platform +// +#define COMADMIN_E_REQUIRES_DIFFERENT_PLATFORM _HRESULT_TYPEDEF_(0x80110449L) + +// +// MessageId: COMADMIN_E_CAN_NOT_EXPORT_APP_PROXY +// +// MessageText: +// +// Application Proxy is not exportable +// +#define COMADMIN_E_CAN_NOT_EXPORT_APP_PROXY _HRESULT_TYPEDEF_(0x8011044AL) + +// +// MessageId: COMADMIN_E_CAN_NOT_START_APP +// +// MessageText: +// +// Failed to start application because it is either a library application or an application proxy +// +#define COMADMIN_E_CAN_NOT_START_APP _HRESULT_TYPEDEF_(0x8011044BL) + +// +// MessageId: COMADMIN_E_CAN_NOT_EXPORT_SYS_APP +// +// MessageText: +// +// System application is not exportable +// +#define COMADMIN_E_CAN_NOT_EXPORT_SYS_APP _HRESULT_TYPEDEF_(0x8011044CL) + +// +// MessageId: COMADMIN_E_CANT_SUBSCRIBE_TO_COMPONENT +// +// MessageText: +// +// Cannot subscribe to this component (the component may have been imported) +// +#define COMADMIN_E_CANT_SUBSCRIBE_TO_COMPONENT _HRESULT_TYPEDEF_(0x8011044DL) + +// +// MessageId: COMADMIN_E_EVENTCLASS_CANT_BE_SUBSCRIBER +// +// MessageText: +// +// An event class cannot also be a subscriber component +// +#define COMADMIN_E_EVENTCLASS_CANT_BE_SUBSCRIBER _HRESULT_TYPEDEF_(0x8011044EL) + +// +// MessageId: COMADMIN_E_LIB_APP_PROXY_INCOMPATIBLE +// +// MessageText: +// +// Library applications and application proxies are incompatible +// +#define COMADMIN_E_LIB_APP_PROXY_INCOMPATIBLE _HRESULT_TYPEDEF_(0x8011044FL) + +// +// MessageId: COMADMIN_E_BASE_PARTITION_ONLY +// +// MessageText: +// +// This function is valid for the base partition only +// +#define COMADMIN_E_BASE_PARTITION_ONLY _HRESULT_TYPEDEF_(0x80110450L) + +// +// MessageId: COMADMIN_E_START_APP_DISABLED +// +// MessageText: +// +// You cannot start an application that has been disabled +// +#define COMADMIN_E_START_APP_DISABLED _HRESULT_TYPEDEF_(0x80110451L) + +// +// MessageId: COMADMIN_E_CAT_DUPLICATE_PARTITION_NAME +// +// MessageText: +// +// The specified partition name is already in use on this computer +// +#define COMADMIN_E_CAT_DUPLICATE_PARTITION_NAME _HRESULT_TYPEDEF_(0x80110457L) + +// +// MessageId: COMADMIN_E_CAT_INVALID_PARTITION_NAME +// +// MessageText: +// +// The specified partition name is invalid. Check that the name contains at least one visible character +// +#define COMADMIN_E_CAT_INVALID_PARTITION_NAME _HRESULT_TYPEDEF_(0x80110458L) + +// +// MessageId: COMADMIN_E_CAT_PARTITION_IN_USE +// +// MessageText: +// +// The partition cannot be deleted because it is the default partition for one or more users +// +#define COMADMIN_E_CAT_PARTITION_IN_USE _HRESULT_TYPEDEF_(0x80110459L) + +// +// MessageId: COMADMIN_E_FILE_PARTITION_DUPLICATE_FILES +// +// MessageText: +// +// The partition cannot be exported, because one or more components in the partition have the same file name +// +#define COMADMIN_E_FILE_PARTITION_DUPLICATE_FILES _HRESULT_TYPEDEF_(0x8011045AL) + +// +// MessageId: COMADMIN_E_CAT_IMPORTED_COMPONENTS_NOT_ALLOWED +// +// MessageText: +// +// Applications that contain one or more imported components cannot be installed into a non-base partition +// +#define COMADMIN_E_CAT_IMPORTED_COMPONENTS_NOT_ALLOWED _HRESULT_TYPEDEF_(0x8011045BL) + +// +// MessageId: COMADMIN_E_AMBIGUOUS_APPLICATION_NAME +// +// MessageText: +// +// The application name is not unique and cannot be resolved to an application id +// +#define COMADMIN_E_AMBIGUOUS_APPLICATION_NAME _HRESULT_TYPEDEF_(0x8011045CL) + +// +// MessageId: COMADMIN_E_AMBIGUOUS_PARTITION_NAME +// +// MessageText: +// +// The partition name is not unique and cannot be resolved to a partition id +// +#define COMADMIN_E_AMBIGUOUS_PARTITION_NAME _HRESULT_TYPEDEF_(0x8011045DL) + +// +// MessageId: COMADMIN_E_REGDB_NOTINITIALIZED +// +// MessageText: +// +// The COM+ registry database has not been initialized +// +#define COMADMIN_E_REGDB_NOTINITIALIZED _HRESULT_TYPEDEF_(0x80110472L) + +// +// MessageId: COMADMIN_E_REGDB_NOTOPEN +// +// MessageText: +// +// The COM+ registry database is not open +// +#define COMADMIN_E_REGDB_NOTOPEN _HRESULT_TYPEDEF_(0x80110473L) + +// +// MessageId: COMADMIN_E_REGDB_SYSTEMERR +// +// MessageText: +// +// The COM+ registry database detected a system error +// +#define COMADMIN_E_REGDB_SYSTEMERR _HRESULT_TYPEDEF_(0x80110474L) + +// +// MessageId: COMADMIN_E_REGDB_ALREADYRUNNING +// +// MessageText: +// +// The COM+ registry database is already running +// +#define COMADMIN_E_REGDB_ALREADYRUNNING _HRESULT_TYPEDEF_(0x80110475L) + +// +// MessageId: COMADMIN_E_MIG_VERSIONNOTSUPPORTED +// +// MessageText: +// +// This version of the COM+ registry database cannot be migrated +// +#define COMADMIN_E_MIG_VERSIONNOTSUPPORTED _HRESULT_TYPEDEF_(0x80110480L) + +// +// MessageId: COMADMIN_E_MIG_SCHEMANOTFOUND +// +// MessageText: +// +// The schema version to be migrated could not be found in the COM+ registry database +// +#define COMADMIN_E_MIG_SCHEMANOTFOUND _HRESULT_TYPEDEF_(0x80110481L) + +// +// MessageId: COMADMIN_E_CAT_BITNESSMISMATCH +// +// MessageText: +// +// There was a type mismatch between binaries +// +#define COMADMIN_E_CAT_BITNESSMISMATCH _HRESULT_TYPEDEF_(0x80110482L) + +// +// MessageId: COMADMIN_E_CAT_UNACCEPTABLEBITNESS +// +// MessageText: +// +// A binary of unknown or invalid type was provided +// +#define COMADMIN_E_CAT_UNACCEPTABLEBITNESS _HRESULT_TYPEDEF_(0x80110483L) + +// +// MessageId: COMADMIN_E_CAT_WRONGAPPBITNESS +// +// MessageText: +// +// There was a type mismatch between a binary and an application +// +#define COMADMIN_E_CAT_WRONGAPPBITNESS _HRESULT_TYPEDEF_(0x80110484L) + +// +// MessageId: COMADMIN_E_CAT_PAUSE_RESUME_NOT_SUPPORTED +// +// MessageText: +// +// The application cannot be paused or resumed +// +#define COMADMIN_E_CAT_PAUSE_RESUME_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80110485L) + +// +// MessageId: COMADMIN_E_CAT_SERVERFAULT +// +// MessageText: +// +// The COM+ Catalog Server threw an exception during execution +// +#define COMADMIN_E_CAT_SERVERFAULT _HRESULT_TYPEDEF_(0x80110486L) + +// +// COMPLUS Queued component errors +// +// +// MessageId: COMQC_E_APPLICATION_NOT_QUEUED +// +// MessageText: +// +// Only COM+ Applications marked "queued" can be invoked using the "queue" moniker +// +#define COMQC_E_APPLICATION_NOT_QUEUED _HRESULT_TYPEDEF_(0x80110600L) + +// +// MessageId: COMQC_E_NO_QUEUEABLE_INTERFACES +// +// MessageText: +// +// At least one interface must be marked "queued" in order to create a queued component instance with the "queue" moniker +// +#define COMQC_E_NO_QUEUEABLE_INTERFACES _HRESULT_TYPEDEF_(0x80110601L) + +// +// MessageId: COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE +// +// MessageText: +// +// MSMQ is required for the requested operation and is not installed +// +#define COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80110602L) + +// +// MessageId: COMQC_E_NO_IPERSISTSTREAM +// +// MessageText: +// +// Unable to marshal an interface that does not support IPersistStream +// +#define COMQC_E_NO_IPERSISTSTREAM _HRESULT_TYPEDEF_(0x80110603L) + +// +// MessageId: COMQC_E_BAD_MESSAGE +// +// MessageText: +// +// The message is improperly formatted or was damaged in transit +// +#define COMQC_E_BAD_MESSAGE _HRESULT_TYPEDEF_(0x80110604L) + +// +// MessageId: COMQC_E_UNAUTHENTICATED +// +// MessageText: +// +// An unauthenticated message was received by an application that accepts only authenticated messages +// +#define COMQC_E_UNAUTHENTICATED _HRESULT_TYPEDEF_(0x80110605L) + +// +// MessageId: COMQC_E_UNTRUSTED_ENQUEUER +// +// MessageText: +// +// The message was requeued or moved by a user not in the "QC Trusted User" role +// +#define COMQC_E_UNTRUSTED_ENQUEUER _HRESULT_TYPEDEF_(0x80110606L) + +// +// The range 0x700-0x7ff is reserved for MSDTC errors. +// +// +// MessageId: MSDTC_E_DUPLICATE_RESOURCE +// +// MessageText: +// +// Cannot create a duplicate resource of type Distributed Transaction Coordinator +// +#define MSDTC_E_DUPLICATE_RESOURCE _HRESULT_TYPEDEF_(0x80110701L) + +// +// More COMADMIN errors from 0x8** +// +// +// MessageId: COMADMIN_E_OBJECT_PARENT_MISSING +// +// MessageText: +// +// One of the objects being inserted or updated does not belong to a valid parent collection +// +#define COMADMIN_E_OBJECT_PARENT_MISSING _HRESULT_TYPEDEF_(0x80110808L) + +// +// MessageId: COMADMIN_E_OBJECT_DOES_NOT_EXIST +// +// MessageText: +// +// One of the specified objects cannot be found +// +#define COMADMIN_E_OBJECT_DOES_NOT_EXIST _HRESULT_TYPEDEF_(0x80110809L) + +// +// MessageId: COMADMIN_E_APP_NOT_RUNNING +// +// MessageText: +// +// The specified application is not currently running +// +#define COMADMIN_E_APP_NOT_RUNNING _HRESULT_TYPEDEF_(0x8011080AL) + +// +// MessageId: COMADMIN_E_INVALID_PARTITION +// +// MessageText: +// +// The partition(s) specified are not valid. +// +#define COMADMIN_E_INVALID_PARTITION _HRESULT_TYPEDEF_(0x8011080BL) + +// +// MessageId: COMADMIN_E_SVCAPP_NOT_POOLABLE_OR_RECYCLABLE +// +// MessageText: +// +// COM+ applications that run as NT service may not be pooled or recycled +// +#define COMADMIN_E_SVCAPP_NOT_POOLABLE_OR_RECYCLABLE _HRESULT_TYPEDEF_(0x8011080DL) + +// +// MessageId: COMADMIN_E_USER_IN_SET +// +// MessageText: +// +// One or more users are already assigned to a local partition set. +// +#define COMADMIN_E_USER_IN_SET _HRESULT_TYPEDEF_(0x8011080EL) + +// +// MessageId: COMADMIN_E_CANTRECYCLELIBRARYAPPS +// +// MessageText: +// +// Library applications may not be recycled. +// +#define COMADMIN_E_CANTRECYCLELIBRARYAPPS _HRESULT_TYPEDEF_(0x8011080FL) + +// +// MessageId: COMADMIN_E_CANTRECYCLESERVICEAPPS +// +// MessageText: +// +// Applications running as NT services may not be recycled. +// +#define COMADMIN_E_CANTRECYCLESERVICEAPPS _HRESULT_TYPEDEF_(0x80110811L) + +// +// MessageId: COMADMIN_E_PROCESSALREADYRECYCLED +// +// MessageText: +// +// The process has already been recycled. +// +#define COMADMIN_E_PROCESSALREADYRECYCLED _HRESULT_TYPEDEF_(0x80110812L) + +// +// MessageId: COMADMIN_E_PAUSEDPROCESSMAYNOTBERECYCLED +// +// MessageText: +// +// A paused process may not be recycled. +// +#define COMADMIN_E_PAUSEDPROCESSMAYNOTBERECYCLED _HRESULT_TYPEDEF_(0x80110813L) + +// +// MessageId: COMADMIN_E_CANTMAKEINPROCSERVICE +// +// MessageText: +// +// Library applications may not be NT services. +// +#define COMADMIN_E_CANTMAKEINPROCSERVICE _HRESULT_TYPEDEF_(0x80110814L) + +// +// MessageId: COMADMIN_E_PROGIDINUSEBYCLSID +// +// MessageText: +// +// The ProgID provided to the copy operation is invalid. The ProgID is in use by another registered CLSID. +// +#define COMADMIN_E_PROGIDINUSEBYCLSID _HRESULT_TYPEDEF_(0x80110815L) + +// +// MessageId: COMADMIN_E_DEFAULT_PARTITION_NOT_IN_SET +// +// MessageText: +// +// The partition specified as default is not a member of the partition set. +// +#define COMADMIN_E_DEFAULT_PARTITION_NOT_IN_SET _HRESULT_TYPEDEF_(0x80110816L) + +// +// MessageId: COMADMIN_E_RECYCLEDPROCESSMAYNOTBEPAUSED +// +// MessageText: +// +// A recycled process may not be paused. +// +#define COMADMIN_E_RECYCLEDPROCESSMAYNOTBEPAUSED _HRESULT_TYPEDEF_(0x80110817L) + +// +// MessageId: COMADMIN_E_PARTITION_ACCESSDENIED +// +// MessageText: +// +// Access to the specified partition is denied. +// +#define COMADMIN_E_PARTITION_ACCESSDENIED _HRESULT_TYPEDEF_(0x80110818L) + +// +// MessageId: COMADMIN_E_PARTITION_MSI_ONLY +// +// MessageText: +// +// Only Application Files (*.MSI files) can be installed into partitions. +// +#define COMADMIN_E_PARTITION_MSI_ONLY _HRESULT_TYPEDEF_(0x80110819L) + +// +// MessageId: COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_1_0_FORMAT +// +// MessageText: +// +// Applications containing one or more legacy components may not be exported to 1.0 format. +// +#define COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_1_0_FORMAT _HRESULT_TYPEDEF_(0x8011081AL) + +// +// MessageId: COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_NONBASE_PARTITIONS +// +// MessageText: +// +// Legacy components may not exist in non-base partitions. +// +#define COMADMIN_E_LEGACYCOMPS_NOT_ALLOWED_IN_NONBASE_PARTITIONS _HRESULT_TYPEDEF_(0x8011081BL) + +// +// MessageId: COMADMIN_E_COMP_MOVE_SOURCE +// +// MessageText: +// +// A component cannot be moved (or copied) from the System Application, an application proxy or a non-changeable application +// +#define COMADMIN_E_COMP_MOVE_SOURCE _HRESULT_TYPEDEF_(0x8011081CL) + +// +// MessageId: COMADMIN_E_COMP_MOVE_DEST +// +// MessageText: +// +// A component cannot be moved (or copied) to the System Application, an application proxy or a non-changeable application +// +#define COMADMIN_E_COMP_MOVE_DEST _HRESULT_TYPEDEF_(0x8011081DL) + +// +// MessageId: COMADMIN_E_COMP_MOVE_PRIVATE +// +// MessageText: +// +// A private component cannot be moved (or copied) to a library application or to the base partition +// +#define COMADMIN_E_COMP_MOVE_PRIVATE _HRESULT_TYPEDEF_(0x8011081EL) + +// +// MessageId: COMADMIN_E_BASEPARTITION_REQUIRED_IN_SET +// +// MessageText: +// +// The Base Application Partition exists in all partition sets and cannot be removed. +// +#define COMADMIN_E_BASEPARTITION_REQUIRED_IN_SET _HRESULT_TYPEDEF_(0x8011081FL) + +// +// MessageId: COMADMIN_E_CANNOT_ALIAS_EVENTCLASS +// +// MessageText: +// +// Alas, Event Class components cannot be aliased. +// +#define COMADMIN_E_CANNOT_ALIAS_EVENTCLASS _HRESULT_TYPEDEF_(0x80110820L) + +// +// MessageId: COMADMIN_E_PRIVATE_ACCESSDENIED +// +// MessageText: +// +// Access is denied because the component is private. +// +#define COMADMIN_E_PRIVATE_ACCESSDENIED _HRESULT_TYPEDEF_(0x80110821L) + +// +// MessageId: COMADMIN_E_SAFERINVALID +// +// MessageText: +// +// The specified SAFER level is invalid. +// +#define COMADMIN_E_SAFERINVALID _HRESULT_TYPEDEF_(0x80110822L) + +// +// MessageId: COMADMIN_E_REGISTRY_ACCESSDENIED +// +// MessageText: +// +// The specified user cannot write to the system registry +// +#define COMADMIN_E_REGISTRY_ACCESSDENIED _HRESULT_TYPEDEF_(0x80110823L) + +// +// MessageId: COMADMIN_E_PARTITIONS_DISABLED +// +// MessageText: +// +// COM+ partitions are currently disabled. +// +#define COMADMIN_E_PARTITIONS_DISABLED _HRESULT_TYPEDEF_(0x80110824L) + +// +// FACILITY_WINDOWS_CE +// The following are MDM Registration and Enrollment errors +// +// +// MessageId: MENROLL_E_DEVICE_MESSAGE_FORMAT_ERROR +// +// MessageText: +// +// Invalid message from the Mobile Device Management (MDM) server. +// +#define MENROLL_E_DEVICE_MESSAGE_FORMAT_ERROR _HRESULT_TYPEDEF_(0x80180001L) + +// +// MessageId: MENROLL_E_DEVICE_AUTHENTICATION_ERROR +// +// MessageText: +// +// The Mobile Device Management (MDM) server failed to authenticate the user. Try again or contact your system administrator. +// +#define MENROLL_E_DEVICE_AUTHENTICATION_ERROR _HRESULT_TYPEDEF_(0x80180002L) + +// +// MessageId: MENROLL_E_DEVICE_AUTHORIZATION_ERROR +// +// MessageText: +// +// The user is not authorized to enroll to Mobile Device Management (MDM). Try again or contact your system administrator. +// +#define MENROLL_E_DEVICE_AUTHORIZATION_ERROR _HRESULT_TYPEDEF_(0x80180003L) + +// +// MessageId: MENROLL_E_DEVICE_CERTIFICATEREQUEST_ERROR +// +// MessageText: +// +// The user has no permission for the certificate template or the certificate authority is unreachable. Try again or contact your system administrator. +// +#define MENROLL_E_DEVICE_CERTIFICATEREQUEST_ERROR _HRESULT_TYPEDEF_(0x80180004L) + +// +// MessageId: MENROLL_E_DEVICE_CONFIGMGRSERVER_ERROR +// +// MessageText: +// +// The Mobile Device Management (MDM) server encountered an error. Try again or contact your system administrator. +// +#define MENROLL_E_DEVICE_CONFIGMGRSERVER_ERROR _HRESULT_TYPEDEF_(0x80180005L) + +// +// MessageId: MENROLL_E_DEVICE_INTERNALSERVICE_ERROR +// +// MessageText: +// +// There was an unhandled exception on the Mobile Device Management (MDM) server. Try again or contact your system administrator. +// +#define MENROLL_E_DEVICE_INTERNALSERVICE_ERROR _HRESULT_TYPEDEF_(0x80180006L) + +// +// MessageId: MENROLL_E_DEVICE_INVALIDSECURITY_ERROR +// +// MessageText: +// +// The Mobile Device Management (MDM) server was not able to validate your account. Try again or contact your system administrator. +// +#define MENROLL_E_DEVICE_INVALIDSECURITY_ERROR _HRESULT_TYPEDEF_(0x80180007L) + +// +// MessageId: MENROLL_E_DEVICE_UNKNOWN_ERROR +// +// MessageText: +// +// Unknown Mobile Device Management (MDM) server error. Try again or contact your system administrator. +// +#define MENROLL_E_DEVICE_UNKNOWN_ERROR _HRESULT_TYPEDEF_(0x80180008L) + +// +// MessageId: MENROLL_E_ENROLLMENT_IN_PROGRESS +// +// MessageText: +// +// Another enrollment operation is currently in progress. +// +#define MENROLL_E_ENROLLMENT_IN_PROGRESS _HRESULT_TYPEDEF_(0x80180009L) + +// +// MessageId: MENROLL_E_DEVICE_ALREADY_ENROLLED +// +// MessageText: +// +// The device is already enrolled. +// +#define MENROLL_E_DEVICE_ALREADY_ENROLLED _HRESULT_TYPEDEF_(0x8018000AL) + +// +// MessageId: MENROLL_E_DISCOVERY_SEC_CERT_DATE_INVALID +// +// MessageText: +// +// There was a Mobile Device Management (MDM) certificate error. The security certificate date is invalid. Try again or contact your system administrator. +// +#define MENROLL_E_DISCOVERY_SEC_CERT_DATE_INVALID _HRESULT_TYPEDEF_(0x8018000DL) + +// +// MessageId: MENROLL_E_PASSWORD_NEEDED +// +// MessageText: +// +// A password is required to authenticate your account or device, but was not supplied. Please try again. +// +#define MENROLL_E_PASSWORD_NEEDED _HRESULT_TYPEDEF_(0x8018000EL) + +// +// MessageId: MENROLL_E_WAB_ERROR +// +// MessageText: +// +// There was a problem authenticating your account or device. Try again or contact your system administrator. +// +#define MENROLL_E_WAB_ERROR _HRESULT_TYPEDEF_(0x8018000FL) + +// +// MessageId: MENROLL_E_CONNECTIVITY +// +// MessageText: +// +// There was a network error communicating with the Mobile Device Management (MDM) server. Please try again. +// +#define MENROLL_E_CONNECTIVITY _HRESULT_TYPEDEF_(0x80180010L) + +// +// MessageId: MENROLL_S_ENROLLMENT_SUSPENDED +// +// MessageText: +// +// Enrollment was suspended. +// +#define MENROLL_S_ENROLLMENT_SUSPENDED _HRESULT_TYPEDEF_(0x00180011L) + +// +// MessageId: MENROLL_E_INVALIDSSLCERT +// +// MessageText: +// +// There was a Mobile Device Management (MDM) certificate error. Try again or contact your system administrator. +// +#define MENROLL_E_INVALIDSSLCERT _HRESULT_TYPEDEF_(0x80180012L) + +// +// MessageId: MENROLL_E_DEVICECAPREACHED +// +// MessageText: +// +// The account has too many devices enrolled to Mobile Device Management (MDM). Delete or unenroll old devices to fix this error. +// +#define MENROLL_E_DEVICECAPREACHED _HRESULT_TYPEDEF_(0x80180013L) + +// +// MessageId: MENROLL_E_DEVICENOTSUPPORTED +// +// MessageText: +// +// The Mobile Device Management (MDM) server doesn't support this platform or version, consider upgrading your device. +// +#define MENROLL_E_DEVICENOTSUPPORTED _HRESULT_TYPEDEF_(0x80180014L) + +// +// MessageId: MENROLL_E_NOT_SUPPORTED +// +// MessageText: +// +// Mobile Device Management (MDM) is generally not supported for this device. +// +#define MENROLL_E_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80180015L) + +// +// MessageId: MENROLL_E_NOTELIGIBLETORENEW +// +// MessageText: +// +// The device is attempting to renew the Mobile Device Management (MDM) certificate, but the server rejected the request. Check renew schedule on the device. +// +#define MENROLL_E_NOTELIGIBLETORENEW _HRESULT_TYPEDEF_(0x80180016L) + +// +// MessageId: MENROLL_E_INMAINTENANCE +// +// MessageText: +// +// The Mobile Device Management (MDM) server states your account is in maintenance, try again later. +// +#define MENROLL_E_INMAINTENANCE _HRESULT_TYPEDEF_(0x80180017L) + +// +// MessageId: MENROLL_E_USER_LICENSE +// +// MessageText: +// +// There was an error with your Mobile Device Management (MDM) user license. Contact your system administrator. +// +#define MENROLL_E_USER_LICENSE _HRESULT_TYPEDEF_(0x80180018L) + +// +// MessageId: MENROLL_E_ENROLLMENTDATAINVALID +// +// MessageText: +// +// The Mobile Device Management (MDM) server rejected the enrollment data. The server may not be configured correctly. +// +#define MENROLL_E_ENROLLMENTDATAINVALID _HRESULT_TYPEDEF_(0x80180019L) + +// +// MessageId: MENROLL_E_INSECUREREDIRECT +// +// MessageText: +// +// The server requested HTTP rather than HTTPS but it was not accepted. +// +#define MENROLL_E_INSECUREREDIRECT _HRESULT_TYPEDEF_(0x8018001AL) + +// +// MessageId: MENROLL_E_PLATFORM_WRONG_STATE +// +// MessageText: +// +// An invalid operation was attempted, such as trying to enroll the same device twice or unenroll an unknown device. +// +#define MENROLL_E_PLATFORM_WRONG_STATE _HRESULT_TYPEDEF_(0x8018001BL) + +// +// MessageId: MENROLL_E_PLATFORM_LICENSE_ERROR +// +// MessageText: +// +// The version of Windows installed on the client does not support this enrollment type. +// +#define MENROLL_E_PLATFORM_LICENSE_ERROR _HRESULT_TYPEDEF_(0x8018001CL) + +// +// MessageId: MENROLL_E_PLATFORM_UNKNOWN_ERROR +// +// MessageText: +// +// An error occurred on the client. +// +#define MENROLL_E_PLATFORM_UNKNOWN_ERROR _HRESULT_TYPEDEF_(0x8018001DL) + +// +// MessageId: MENROLL_E_PROV_CSP_CERTSTORE +// +// MessageText: +// +// Provisioning failed in the certificate store CSP. +// +#define MENROLL_E_PROV_CSP_CERTSTORE _HRESULT_TYPEDEF_(0x8018001EL) + +// +// MessageId: MENROLL_E_PROV_CSP_W7 +// +// MessageText: +// +// Provisioning failed in a W7/DMAcc CSP. +// +#define MENROLL_E_PROV_CSP_W7 _HRESULT_TYPEDEF_(0x8018001FL) + +// +// MessageId: MENROLL_E_PROV_CSP_DMCLIENT +// +// MessageText: +// +// Provisioning failed in the DM client CSP. +// +#define MENROLL_E_PROV_CSP_DMCLIENT _HRESULT_TYPEDEF_(0x80180020L) + +// +// MessageId: MENROLL_E_PROV_CSP_PFW +// +// MessageText: +// +// Provisioning failed in the Passport for Work CSP. +// +#define MENROLL_E_PROV_CSP_PFW _HRESULT_TYPEDEF_(0x80180021L) + +// +// MessageId: MENROLL_E_PROV_CSP_MISC +// +// MessageText: +// +// Provisioning failed in an unspecified CSP. +// +#define MENROLL_E_PROV_CSP_MISC _HRESULT_TYPEDEF_(0x80180022L) + +// +// MessageId: MENROLL_E_PROV_UNKNOWN +// +// MessageText: +// +// Provisioning failed, but a specific CSP is not indicated. +// +#define MENROLL_E_PROV_UNKNOWN _HRESULT_TYPEDEF_(0x80180023L) + +// +// MessageId: MENROLL_E_PROV_SSLCERTNOTFOUND +// +// MessageText: +// +// When attempting to bind the public cert/private key, the public cert was not found either: when attempting to bind the public cert/private key, or when looking into provisioning payload. +// +#define MENROLL_E_PROV_SSLCERTNOTFOUND _HRESULT_TYPEDEF_(0x80180024L) + +// +// MessageId: MENROLL_E_PROV_CSP_APPMGMT +// +// MessageText: +// +// Provisioning failed in the EnterpriseAppManagement CSP. +// +#define MENROLL_E_PROV_CSP_APPMGMT _HRESULT_TYPEDEF_(0x80180025L) + +// +// MessageId: MENROLL_E_DEVICE_MANAGEMENT_BLOCKED +// +// MessageText: +// +// Mobile Device Management (MDM) was blocked, possibly by Group Policy or the local management agent. +// +#define MENROLL_E_DEVICE_MANAGEMENT_BLOCKED _HRESULT_TYPEDEF_(0x80180026L) + +// +// MessageId: MENROLL_E_CERTPOLICY_PRIVATEKEYCREATION_FAILED +// +// MessageText: +// +// Failed to create the private key. +// +#define MENROLL_E_CERTPOLICY_PRIVATEKEYCREATION_FAILED _HRESULT_TYPEDEF_(0x80180027L) + +// +// MessageId: MENROLL_E_CERTAUTH_FAILED_TO_FIND_CERT +// +// MessageText: +// +// Certificate Authentication was requested, but failed to find a certificate to use. +// +#define MENROLL_E_CERTAUTH_FAILED_TO_FIND_CERT _HRESULT_TYPEDEF_(0x80180028L) + +// +// MessageId: MENROLL_E_EMPTY_MESSAGE +// +// MessageText: +// +// The server responded with HTTP 200, but the message was empty. +// +#define MENROLL_E_EMPTY_MESSAGE _HRESULT_TYPEDEF_(0x80180029L) + +// +// MessageId: MENROLL_E_USER_CANCELLED +// +// MessageText: +// +// The user canceled the operation. +// +#define MENROLL_E_USER_CANCELLED _HRESULT_TYPEDEF_(0x80180030L) + +// +// MessageId: MENROLL_E_MDM_NOT_CONFIGURED +// +// MessageText: +// +// Mobile Device Management (MDM) is not configured. +// +#define MENROLL_E_MDM_NOT_CONFIGURED _HRESULT_TYPEDEF_(0x80180031L) + +// +// MessageId: MENROLL_E_CUSTOMSERVERERROR +// +// MessageText: +// +// The server responded with a custom error string, see DeviceManagement-Enterprise-Diagnostics for details. +// +#define MENROLL_E_CUSTOMSERVERERROR _HRESULT_TYPEDEF_(0x80180032L) + +// +// MessageId: MENROLL_E_SERVER429 +// +// MessageText: +// +// The server requested that the device try again later. +// +#define MENROLL_E_SERVER429 _HRESULT_TYPEDEF_(0x80180033L) + +// +// FACILITY_WER +// +// +// MessageId: WER_S_REPORT_DEBUG +// +// MessageText: +// +// Debugger was attached. +// +#define WER_S_REPORT_DEBUG _HRESULT_TYPEDEF_(0x001B0000L) + +// +// MessageId: WER_S_REPORT_UPLOADED +// +// MessageText: +// +// Report was uploaded. +// +#define WER_S_REPORT_UPLOADED _HRESULT_TYPEDEF_(0x001B0001L) + +// +// MessageId: WER_S_REPORT_QUEUED +// +// MessageText: +// +// Report was queued. +// +#define WER_S_REPORT_QUEUED _HRESULT_TYPEDEF_(0x001B0002L) + +// +// MessageId: WER_S_DISABLED +// +// MessageText: +// +// Reporting was disabled. +// +#define WER_S_DISABLED _HRESULT_TYPEDEF_(0x001B0003L) + +// +// MessageId: WER_S_SUSPENDED_UPLOAD +// +// MessageText: +// +// Reporting was temporarily suspended. +// +#define WER_S_SUSPENDED_UPLOAD _HRESULT_TYPEDEF_(0x001B0004L) + +// +// MessageId: WER_S_DISABLED_QUEUE +// +// MessageText: +// +// Report was not queued to queuing being disabled. +// +#define WER_S_DISABLED_QUEUE _HRESULT_TYPEDEF_(0x001B0005L) + +// +// MessageId: WER_S_DISABLED_ARCHIVE +// +// MessageText: +// +// Report was uploaded, but not archived due to archiving being disabled. +// +#define WER_S_DISABLED_ARCHIVE _HRESULT_TYPEDEF_(0x001B0006L) + +// +// MessageId: WER_S_REPORT_ASYNC +// +// MessageText: +// +// Reporting was successfully spun off as an asynchronous operation. +// +#define WER_S_REPORT_ASYNC _HRESULT_TYPEDEF_(0x001B0007L) + +// +// MessageId: WER_S_IGNORE_ASSERT_INSTANCE +// +// MessageText: +// +// The assertion was handled. +// +#define WER_S_IGNORE_ASSERT_INSTANCE _HRESULT_TYPEDEF_(0x001B0008L) + +// +// MessageId: WER_S_IGNORE_ALL_ASSERTS +// +// MessageText: +// +// The assertion was handled and added to a permanent ignore list. +// +#define WER_S_IGNORE_ALL_ASSERTS _HRESULT_TYPEDEF_(0x001B0009L) + +// +// MessageId: WER_S_ASSERT_CONTINUE +// +// MessageText: +// +// The assertion was resumed as unhandled. +// +#define WER_S_ASSERT_CONTINUE _HRESULT_TYPEDEF_(0x001B000AL) + +// +// MessageId: WER_S_THROTTLED +// +// MessageText: +// +// Report was throttled. +// +#define WER_S_THROTTLED _HRESULT_TYPEDEF_(0x001B000BL) + +// +// MessageId: WER_S_REPORT_UPLOADED_CAB +// +// MessageText: +// +// Report was uploaded with cab. +// +#define WER_S_REPORT_UPLOADED_CAB _HRESULT_TYPEDEF_(0x001B000CL) + +// +// MessageId: WER_E_CRASH_FAILURE +// +// MessageText: +// +// Crash reporting failed. +// +#define WER_E_CRASH_FAILURE _HRESULT_TYPEDEF_(0x801B8000L) + +// +// MessageId: WER_E_CANCELED +// +// MessageText: +// +// Report aborted due to user cancellation. +// +#define WER_E_CANCELED _HRESULT_TYPEDEF_(0x801B8001L) + +// +// MessageId: WER_E_NETWORK_FAILURE +// +// MessageText: +// +// Report aborted due to network failure. +// +#define WER_E_NETWORK_FAILURE _HRESULT_TYPEDEF_(0x801B8002L) + +// +// MessageId: WER_E_NOT_INITIALIZED +// +// MessageText: +// +// Report not initialized. +// +#define WER_E_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x801B8003L) + +// +// MessageId: WER_E_ALREADY_REPORTING +// +// MessageText: +// +// Reporting is already in progress for the specified process. +// +#define WER_E_ALREADY_REPORTING _HRESULT_TYPEDEF_(0x801B8004L) + +// +// MessageId: WER_E_DUMP_THROTTLED +// +// MessageText: +// +// Dump not generated due to a throttle. +// +#define WER_E_DUMP_THROTTLED _HRESULT_TYPEDEF_(0x801B8005L) + +// +// MessageId: WER_E_INSUFFICIENT_CONSENT +// +// MessageText: +// +// Operation failed due to insufficient user consent. +// +#define WER_E_INSUFFICIENT_CONSENT _HRESULT_TYPEDEF_(0x801B8006L) + +// +// MessageId: WER_E_TOO_HEAVY +// +// MessageText: +// +// Report aborted due to performance criteria. +// +#define WER_E_TOO_HEAVY _HRESULT_TYPEDEF_(0x801B8007L) + +// *********************** +// FACILITY_USERMODE_FILTER_MANAGER +// *********************** +// +// Translation macro for converting FilterManager error codes only from: +// NTSTATUS --> HRESULT +// +#define FILTER_HRESULT_FROM_FLT_NTSTATUS(x) (ASSERT((x & 0xfff0000) == 0x001c0000),(HRESULT) (((x) & 0x8000FFFF) | (FACILITY_USERMODE_FILTER_MANAGER << 16))) +// +// MessageId: ERROR_FLT_IO_COMPLETE +// +// MessageText: +// +// The IO was completed by a filter. +// +#define ERROR_FLT_IO_COMPLETE _HRESULT_TYPEDEF_(0x001F0001L) + +// +// MessageId: ERROR_FLT_NO_HANDLER_DEFINED +// +// MessageText: +// +// A handler was not defined by the filter for this operation. +// +#define ERROR_FLT_NO_HANDLER_DEFINED _HRESULT_TYPEDEF_(0x801F0001L) + +// +// MessageId: ERROR_FLT_CONTEXT_ALREADY_DEFINED +// +// MessageText: +// +// A context is already defined for this object. +// +#define ERROR_FLT_CONTEXT_ALREADY_DEFINED _HRESULT_TYPEDEF_(0x801F0002L) + +// +// MessageId: ERROR_FLT_INVALID_ASYNCHRONOUS_REQUEST +// +// MessageText: +// +// Asynchronous requests are not valid for this operation. +// +#define ERROR_FLT_INVALID_ASYNCHRONOUS_REQUEST _HRESULT_TYPEDEF_(0x801F0003L) + +// +// MessageId: ERROR_FLT_DISALLOW_FAST_IO +// +// MessageText: +// +// Disallow the Fast IO path for this operation. +// +#define ERROR_FLT_DISALLOW_FAST_IO _HRESULT_TYPEDEF_(0x801F0004L) + +// +// MessageId: ERROR_FLT_INVALID_NAME_REQUEST +// +// MessageText: +// +// An invalid name request was made. The name requested cannot be retrieved at this time. +// +#define ERROR_FLT_INVALID_NAME_REQUEST _HRESULT_TYPEDEF_(0x801F0005L) + +// +// MessageId: ERROR_FLT_NOT_SAFE_TO_POST_OPERATION +// +// MessageText: +// +// Posting this operation to a worker thread for further processing is not safe at this time because it could lead to a system deadlock. +// +#define ERROR_FLT_NOT_SAFE_TO_POST_OPERATION _HRESULT_TYPEDEF_(0x801F0006L) + +// +// MessageId: ERROR_FLT_NOT_INITIALIZED +// +// MessageText: +// +// The Filter Manager was not initialized when a filter tried to register. Make sure that the Filter Manager is getting loaded as a driver. +// +#define ERROR_FLT_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x801F0007L) + +// +// MessageId: ERROR_FLT_FILTER_NOT_READY +// +// MessageText: +// +// The filter is not ready for attachment to volumes because it has not finished initializing (FltStartFiltering has not been called). +// +#define ERROR_FLT_FILTER_NOT_READY _HRESULT_TYPEDEF_(0x801F0008L) + +// +// MessageId: ERROR_FLT_POST_OPERATION_CLEANUP +// +// MessageText: +// +// The filter must cleanup any operation specific context at this time because it is being removed from the system before the operation is completed by the lower drivers. +// +#define ERROR_FLT_POST_OPERATION_CLEANUP _HRESULT_TYPEDEF_(0x801F0009L) + +// +// MessageId: ERROR_FLT_INTERNAL_ERROR +// +// MessageText: +// +// The Filter Manager had an internal error from which it cannot recover, therefore the operation has been failed. This is usually the result of a filter returning an invalid value from a pre-operation callback. +// +#define ERROR_FLT_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x801F000AL) + +// +// MessageId: ERROR_FLT_DELETING_OBJECT +// +// MessageText: +// +// The object specified for this action is in the process of being deleted, therefore the action requested cannot be completed at this time. +// +#define ERROR_FLT_DELETING_OBJECT _HRESULT_TYPEDEF_(0x801F000BL) + +// +// MessageId: ERROR_FLT_MUST_BE_NONPAGED_POOL +// +// MessageText: +// +// Non-paged pool must be used for this type of context. +// +#define ERROR_FLT_MUST_BE_NONPAGED_POOL _HRESULT_TYPEDEF_(0x801F000CL) + +// +// MessageId: ERROR_FLT_DUPLICATE_ENTRY +// +// MessageText: +// +// A duplicate handler definition has been provided for an operation. +// +#define ERROR_FLT_DUPLICATE_ENTRY _HRESULT_TYPEDEF_(0x801F000DL) + +// +// MessageId: ERROR_FLT_CBDQ_DISABLED +// +// MessageText: +// +// The callback data queue has been disabled. +// +#define ERROR_FLT_CBDQ_DISABLED _HRESULT_TYPEDEF_(0x801F000EL) + +// +// MessageId: ERROR_FLT_DO_NOT_ATTACH +// +// MessageText: +// +// Do not attach the filter to the volume at this time. +// +#define ERROR_FLT_DO_NOT_ATTACH _HRESULT_TYPEDEF_(0x801F000FL) + +// +// MessageId: ERROR_FLT_DO_NOT_DETACH +// +// MessageText: +// +// Do not detach the filter from the volume at this time. +// +#define ERROR_FLT_DO_NOT_DETACH _HRESULT_TYPEDEF_(0x801F0010L) + +// +// MessageId: ERROR_FLT_INSTANCE_ALTITUDE_COLLISION +// +// MessageText: +// +// An instance already exists at this altitude on the volume specified. +// +#define ERROR_FLT_INSTANCE_ALTITUDE_COLLISION _HRESULT_TYPEDEF_(0x801F0011L) + +// +// MessageId: ERROR_FLT_INSTANCE_NAME_COLLISION +// +// MessageText: +// +// An instance already exists with this name on the volume specified. +// +#define ERROR_FLT_INSTANCE_NAME_COLLISION _HRESULT_TYPEDEF_(0x801F0012L) + +// +// MessageId: ERROR_FLT_FILTER_NOT_FOUND +// +// MessageText: +// +// The system could not find the filter specified. +// +#define ERROR_FLT_FILTER_NOT_FOUND _HRESULT_TYPEDEF_(0x801F0013L) + +// +// MessageId: ERROR_FLT_VOLUME_NOT_FOUND +// +// MessageText: +// +// The system could not find the volume specified. +// +#define ERROR_FLT_VOLUME_NOT_FOUND _HRESULT_TYPEDEF_(0x801F0014L) + +// +// MessageId: ERROR_FLT_INSTANCE_NOT_FOUND +// +// MessageText: +// +// The system could not find the instance specified. +// +#define ERROR_FLT_INSTANCE_NOT_FOUND _HRESULT_TYPEDEF_(0x801F0015L) + +// +// MessageId: ERROR_FLT_CONTEXT_ALLOCATION_NOT_FOUND +// +// MessageText: +// +// No registered context allocation definition was found for the given request. +// +#define ERROR_FLT_CONTEXT_ALLOCATION_NOT_FOUND _HRESULT_TYPEDEF_(0x801F0016L) + +// +// MessageId: ERROR_FLT_INVALID_CONTEXT_REGISTRATION +// +// MessageText: +// +// An invalid parameter was specified during context registration. +// +#define ERROR_FLT_INVALID_CONTEXT_REGISTRATION _HRESULT_TYPEDEF_(0x801F0017L) + +// +// MessageId: ERROR_FLT_NAME_CACHE_MISS +// +// MessageText: +// +// The name requested was not found in Filter Manager's name cache and could not be retrieved from the file system. +// +#define ERROR_FLT_NAME_CACHE_MISS _HRESULT_TYPEDEF_(0x801F0018L) + +// +// MessageId: ERROR_FLT_NO_DEVICE_OBJECT +// +// MessageText: +// +// The requested device object does not exist for the given volume. +// +#define ERROR_FLT_NO_DEVICE_OBJECT _HRESULT_TYPEDEF_(0x801F0019L) + +// +// MessageId: ERROR_FLT_VOLUME_ALREADY_MOUNTED +// +// MessageText: +// +// The specified volume is already mounted. +// +#define ERROR_FLT_VOLUME_ALREADY_MOUNTED _HRESULT_TYPEDEF_(0x801F001AL) + +// +// MessageId: ERROR_FLT_ALREADY_ENLISTED +// +// MessageText: +// +// The specified Transaction Context is already enlisted in a transaction +// +#define ERROR_FLT_ALREADY_ENLISTED _HRESULT_TYPEDEF_(0x801F001BL) + +// +// MessageId: ERROR_FLT_CONTEXT_ALREADY_LINKED +// +// MessageText: +// +// The specified context is already attached to another object +// +#define ERROR_FLT_CONTEXT_ALREADY_LINKED _HRESULT_TYPEDEF_(0x801F001CL) + +// +// MessageId: ERROR_FLT_NO_WAITER_FOR_REPLY +// +// MessageText: +// +// No waiter is present for the filter's reply to this message. +// +#define ERROR_FLT_NO_WAITER_FOR_REPLY _HRESULT_TYPEDEF_(0x801F0020L) + +// +// MessageId: ERROR_FLT_REGISTRATION_BUSY +// +// MessageText: +// +// The filesystem database resource is in use. Registration cannot complete at this time. +// +#define ERROR_FLT_REGISTRATION_BUSY _HRESULT_TYPEDEF_(0x801F0023L) + +// +// MessageId: ERROR_FLT_WCOS_NOT_SUPPORTED +// +// MessageText: +// +// The filter is not allowed to attach because it has not declared compability with WCOS. +// +#define ERROR_FLT_WCOS_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x801F0024L) + +// +// =============================== +// Facility Graphics Error Messages +// =============================== +// +// +// The following are the subranges within the Graphics facility +// +// 0x0000 - 0x0fff Display Driver Loader driver & Video Port errors (displdr.sys, videoprt.sys) +// 0x1000 - 0x1fff Monitor Class Function driver errors (monitor.sys) +// 0x2000 - 0x2fff Windows Graphics Kernel Subsystem errors (dxgkrnl.sys) +// 0x3000 - 0x3fff Desktop Window Manager errors +// 0x2000 - 0x20ff Common errors +// 0x2100 - 0x21ff Video Memory Manager (VidMM) subsystem errors +// 0x2200 - 0x22ff Video GPU Scheduler (VidSch) subsystem errors +// 0x2300 - 0x23ff Video Display Mode Management (VidDMM) subsystem errors +// +// Display Driver Loader driver & Video Port errors {0x0000..0x0fff} +// +// +// MessageId: ERROR_HUNG_DISPLAY_DRIVER_THREAD +// +// MessageText: +// +// {Display Driver Stopped Responding} +// The %hs display driver has stopped working normally. Save your work and reboot the system to restore full display functionality. +// The next time you reboot the machine a dialog will be displayed giving you a chance to report this failure to Microsoft. +// +#define ERROR_HUNG_DISPLAY_DRIVER_THREAD _HRESULT_TYPEDEF_(0x80260001L) + +// +// Desktop Window Manager errors {0x3000..0x3fff} +// +// +// MessageId: DWM_E_COMPOSITIONDISABLED +// +// MessageText: +// +// {Desktop composition is disabled} +// The operation could not be completed because desktop composition is disabled. +// +#define DWM_E_COMPOSITIONDISABLED _HRESULT_TYPEDEF_(0x80263001L) + +// +// MessageId: DWM_E_REMOTING_NOT_SUPPORTED +// +// MessageText: +// +// {Some desktop composition APIs are not supported while remoting} +// The operation is not supported while running in a remote session. +// +#define DWM_E_REMOTING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80263002L) + +// +// MessageId: DWM_E_NO_REDIRECTION_SURFACE_AVAILABLE +// +// MessageText: +// +// {No DWM redirection surface is available} +// The DWM was unable to provide a redirection surface to complete the DirectX present. +// +#define DWM_E_NO_REDIRECTION_SURFACE_AVAILABLE _HRESULT_TYPEDEF_(0x80263003L) + +// +// MessageId: DWM_E_NOT_QUEUING_PRESENTS +// +// MessageText: +// +// {DWM is not queuing presents for the specified window} +// The window specified is not currently using queued presents. +// +#define DWM_E_NOT_QUEUING_PRESENTS _HRESULT_TYPEDEF_(0x80263004L) + +// +// MessageId: DWM_E_ADAPTER_NOT_FOUND +// +// MessageText: +// +// {The adapter specified by the LUID is not found} +// DWM can not find the adapter specified by the LUID. +// +#define DWM_E_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x80263005L) + +// +// MessageId: DWM_S_GDI_REDIRECTION_SURFACE +// +// MessageText: +// +// {GDI redirection surface was returned} +// GDI redirection surface of the top level window was returned. +// +#define DWM_S_GDI_REDIRECTION_SURFACE _HRESULT_TYPEDEF_(0x00263005L) + +// +// MessageId: DWM_E_TEXTURE_TOO_LARGE +// +// MessageText: +// +// {Redirection surface can not be created. The size of the surface is larger than what is supported on this machine} +// Redirection surface can not be created. The size of the surface is larger than what is supported on this machine. +// +#define DWM_E_TEXTURE_TOO_LARGE _HRESULT_TYPEDEF_(0x80263007L) + +// +// MessageId: DWM_S_GDI_REDIRECTION_SURFACE_BLT_VIA_GDI +// +// MessageText: +// +// {GDI redirection surface is either on a different adapter or in system memory. Perform blt via GDI} +// GDI redirection surface is either on a different adapter or in system memory. Perform blt via GDI. +// +#define DWM_S_GDI_REDIRECTION_SURFACE_BLT_VIA_GDI _HRESULT_TYPEDEF_(0x00263008L) + +// +// Monitor class function driver errors {0x1000..0x1fff} +// +// +// MessageId: ERROR_MONITOR_NO_DESCRIPTOR +// +// MessageText: +// +// Monitor descriptor could not be obtained. +// +#define ERROR_MONITOR_NO_DESCRIPTOR _HRESULT_TYPEDEF_(0x00261001L) + +// +// MessageId: ERROR_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT +// +// MessageText: +// +// Format of the obtained monitor descriptor is not supported by this release. +// +#define ERROR_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT _HRESULT_TYPEDEF_(0x00261002L) + +// +// MessageId: ERROR_MONITOR_INVALID_DESCRIPTOR_CHECKSUM +// +// MessageText: +// +// Checksum of the obtained monitor descriptor is invalid. +// +#define ERROR_MONITOR_INVALID_DESCRIPTOR_CHECKSUM _HRESULT_TYPEDEF_(0xC0261003L) + +// +// MessageId: ERROR_MONITOR_INVALID_STANDARD_TIMING_BLOCK +// +// MessageText: +// +// Monitor descriptor contains an invalid standard timing block. +// +#define ERROR_MONITOR_INVALID_STANDARD_TIMING_BLOCK _HRESULT_TYPEDEF_(0xC0261004L) + +// +// MessageId: ERROR_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED +// +// MessageText: +// +// WMI data block registration failed for one of the MSMonitorClass WMI subclasses. +// +#define ERROR_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED _HRESULT_TYPEDEF_(0xC0261005L) + +// +// MessageId: ERROR_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK +// +// MessageText: +// +// Provided monitor descriptor block is either corrupted or does not contain monitor's detailed serial number. +// +#define ERROR_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK _HRESULT_TYPEDEF_(0xC0261006L) + +// +// MessageId: ERROR_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK +// +// MessageText: +// +// Provided monitor descriptor block is either corrupted or does not contain monitor's user friendly name. +// +#define ERROR_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK _HRESULT_TYPEDEF_(0xC0261007L) + +// +// MessageId: ERROR_MONITOR_NO_MORE_DESCRIPTOR_DATA +// +// MessageText: +// +// There is no monitor descriptor data at the specified (offset, size) region. +// +#define ERROR_MONITOR_NO_MORE_DESCRIPTOR_DATA _HRESULT_TYPEDEF_(0xC0261008L) + +// +// MessageId: ERROR_MONITOR_INVALID_DETAILED_TIMING_BLOCK +// +// MessageText: +// +// Monitor descriptor contains an invalid detailed timing block. +// +#define ERROR_MONITOR_INVALID_DETAILED_TIMING_BLOCK _HRESULT_TYPEDEF_(0xC0261009L) + +// +// MessageId: ERROR_MONITOR_INVALID_MANUFACTURE_DATE +// +// MessageText: +// +// Monitor descriptor contains invalid manufacture date. +// +#define ERROR_MONITOR_INVALID_MANUFACTURE_DATE _HRESULT_TYPEDEF_(0xC026100AL) + +// +// Windows Graphics Kernel Subsystem errors {0x2000..0x2fff} +// +// TODO: Add DXG Win32 errors here +// +// Common errors {0x2000..0x20ff} +// +// +// MessageId: ERROR_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER +// +// MessageText: +// +// Exclusive mode ownership is needed to create unmanaged primary allocation. +// +#define ERROR_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER _HRESULT_TYPEDEF_(0xC0262000L) + +// +// MessageId: ERROR_GRAPHICS_INSUFFICIENT_DMA_BUFFER +// +// MessageText: +// +// The driver needs more DMA buffer space in order to complete the requested operation. +// +#define ERROR_GRAPHICS_INSUFFICIENT_DMA_BUFFER _HRESULT_TYPEDEF_(0xC0262001L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_DISPLAY_ADAPTER +// +// MessageText: +// +// Specified display adapter handle is invalid. +// +#define ERROR_GRAPHICS_INVALID_DISPLAY_ADAPTER _HRESULT_TYPEDEF_(0xC0262002L) + +// +// MessageId: ERROR_GRAPHICS_ADAPTER_WAS_RESET +// +// MessageText: +// +// Specified display adapter and all of its state has been reset. +// +#define ERROR_GRAPHICS_ADAPTER_WAS_RESET _HRESULT_TYPEDEF_(0xC0262003L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_DRIVER_MODEL +// +// MessageText: +// +// The driver stack doesn't match the expected driver model. +// +#define ERROR_GRAPHICS_INVALID_DRIVER_MODEL _HRESULT_TYPEDEF_(0xC0262004L) + +// +// MessageId: ERROR_GRAPHICS_PRESENT_MODE_CHANGED +// +// MessageText: +// +// Present happened but ended up into the changed desktop mode +// +#define ERROR_GRAPHICS_PRESENT_MODE_CHANGED _HRESULT_TYPEDEF_(0xC0262005L) + +// +// MessageId: ERROR_GRAPHICS_PRESENT_OCCLUDED +// +// MessageText: +// +// Nothing to present due to desktop occlusion +// +#define ERROR_GRAPHICS_PRESENT_OCCLUDED _HRESULT_TYPEDEF_(0xC0262006L) + +// +// MessageId: ERROR_GRAPHICS_PRESENT_DENIED +// +// MessageText: +// +// Not able to present due to denial of desktop access +// +#define ERROR_GRAPHICS_PRESENT_DENIED _HRESULT_TYPEDEF_(0xC0262007L) + +// +// MessageId: ERROR_GRAPHICS_CANNOTCOLORCONVERT +// +// MessageText: +// +// Not able to present with color conversion +// +#define ERROR_GRAPHICS_CANNOTCOLORCONVERT _HRESULT_TYPEDEF_(0xC0262008L) + +// +// MessageId: ERROR_GRAPHICS_DRIVER_MISMATCH +// +// MessageText: +// +// The kernel driver detected a version mismatch between it and the user mode driver. +// +#define ERROR_GRAPHICS_DRIVER_MISMATCH _HRESULT_TYPEDEF_(0xC0262009L) + +// +// MessageId: ERROR_GRAPHICS_PARTIAL_DATA_POPULATED +// +// MessageText: +// +// Specified buffer is not big enough to contain entire requested dataset. Partial data populated up to the size of the buffer. Caller needs to provide buffer of size as specified in the partially populated buffer's content (interface specific). +// +#define ERROR_GRAPHICS_PARTIAL_DATA_POPULATED _HRESULT_TYPEDEF_(0x4026200AL) + +// +// MessageId: ERROR_GRAPHICS_PRESENT_REDIRECTION_DISABLED +// +// MessageText: +// +// Present redirection is disabled (desktop windowing management subsystem is off). +// +#define ERROR_GRAPHICS_PRESENT_REDIRECTION_DISABLED _HRESULT_TYPEDEF_(0xC026200BL) + +// +// MessageId: ERROR_GRAPHICS_PRESENT_UNOCCLUDED +// +// MessageText: +// +// Previous exclusive VidPn source owner has released its ownership +// +#define ERROR_GRAPHICS_PRESENT_UNOCCLUDED _HRESULT_TYPEDEF_(0xC026200CL) + +// +// MessageId: ERROR_GRAPHICS_WINDOWDC_NOT_AVAILABLE +// +// MessageText: +// +// Window DC is not available for presentation +// +#define ERROR_GRAPHICS_WINDOWDC_NOT_AVAILABLE _HRESULT_TYPEDEF_(0xC026200DL) + +// +// MessageId: ERROR_GRAPHICS_WINDOWLESS_PRESENT_DISABLED +// +// MessageText: +// +// Windowless present is disabled (desktop windowing management subsystem is off). +// +#define ERROR_GRAPHICS_WINDOWLESS_PRESENT_DISABLED _HRESULT_TYPEDEF_(0xC026200EL) + +// +// MessageId: ERROR_GRAPHICS_PRESENT_INVALID_WINDOW +// +// MessageText: +// +// Window handle is invalid +// +#define ERROR_GRAPHICS_PRESENT_INVALID_WINDOW _HRESULT_TYPEDEF_(0xC026200FL) + +// +// MessageId: ERROR_GRAPHICS_PRESENT_BUFFER_NOT_BOUND +// +// MessageText: +// +// No buffer is bound to composition surface +// +#define ERROR_GRAPHICS_PRESENT_BUFFER_NOT_BOUND _HRESULT_TYPEDEF_(0xC0262010L) + +// +// MessageId: ERROR_GRAPHICS_VAIL_STATE_CHANGED +// +// MessageText: +// +// Vail state has been changed +// +#define ERROR_GRAPHICS_VAIL_STATE_CHANGED _HRESULT_TYPEDEF_(0xC0262011L) + +// +// MessageId: ERROR_GRAPHICS_INDIRECT_DISPLAY_ABANDON_SWAPCHAIN +// +// MessageText: +// +// Notifying indirect display UMDF class driver to abandon current swapchain. +// +#define ERROR_GRAPHICS_INDIRECT_DISPLAY_ABANDON_SWAPCHAIN _HRESULT_TYPEDEF_(0xC0262012L) + +// +// MessageId: ERROR_GRAPHICS_INDIRECT_DISPLAY_DEVICE_STOPPED +// +// MessageText: +// +// Notifying indirect display UMDF class driver that indirect display device has been stopped. +// +#define ERROR_GRAPHICS_INDIRECT_DISPLAY_DEVICE_STOPPED _HRESULT_TYPEDEF_(0xC0262013L) + +// +// MessageId: ERROR_GRAPHICS_VAIL_FAILED_TO_SEND_CREATE_SUPERWETINK_MESSAGE +// +// MessageText: +// +// Failed to send Create Vail Super Wet Ink message. +// +#define ERROR_GRAPHICS_VAIL_FAILED_TO_SEND_CREATE_SUPERWETINK_MESSAGE _HRESULT_TYPEDEF_(0xC0262014L) + +// +// MessageId: ERROR_GRAPHICS_VAIL_FAILED_TO_SEND_DESTROY_SUPERWETINK_MESSAGE +// +// MessageText: +// +// Failed to send Destroy Vail Super Wet Ink message. +// +#define ERROR_GRAPHICS_VAIL_FAILED_TO_SEND_DESTROY_SUPERWETINK_MESSAGE _HRESULT_TYPEDEF_(0xC0262015L) + +// +// MessageId: ERROR_GRAPHICS_VAIL_FAILED_TO_SEND_COMPOSITION_WINDOW_DPI_MESSAGE +// +// MessageText: +// +// Failed to send Window Dpi message. +// +#define ERROR_GRAPHICS_VAIL_FAILED_TO_SEND_COMPOSITION_WINDOW_DPI_MESSAGE _HRESULT_TYPEDEF_(0xC0262016L) + +// +// MessageId: ERROR_GRAPHICS_LINK_CONFIGURATION_IN_PROGRESS +// +// MessageText: +// +// Link configuration for the display timing is still in progress. +// +#define ERROR_GRAPHICS_LINK_CONFIGURATION_IN_PROGRESS _HRESULT_TYPEDEF_(0xC0262017L) + +// +// MessageId: ERROR_GRAPHICS_MPO_ALLOCATION_UNPINNED +// +// MessageText: +// +// The allocation for the MPO has been unpinned. +// +#define ERROR_GRAPHICS_MPO_ALLOCATION_UNPINNED _HRESULT_TYPEDEF_(0xC0262018L) + +// +// MessageId: ERROR_GRAPHICS_SETDISPLAYMODE_REQUIRED +// +// MessageText: +// +// SetDisplayMode is required before present can succeed. +// +#define ERROR_GRAPHICS_SETDISPLAYMODE_REQUIRED _HRESULT_TYPEDEF_(0xC0262019L) + +// +// Video Memory Manager (VidMM) subsystem errors {0x2100..0x21ff} +// +// +// MessageId: ERROR_GRAPHICS_NO_VIDEO_MEMORY +// +// MessageText: +// +// Not enough video memory available to complete the operation. +// +#define ERROR_GRAPHICS_NO_VIDEO_MEMORY _HRESULT_TYPEDEF_(0xC0262100L) + +// +// MessageId: ERROR_GRAPHICS_CANT_LOCK_MEMORY +// +// MessageText: +// +// Couldn't probe and lock the underlying memory of an allocation. +// +#define ERROR_GRAPHICS_CANT_LOCK_MEMORY _HRESULT_TYPEDEF_(0xC0262101L) + +// +// MessageId: ERROR_GRAPHICS_ALLOCATION_BUSY +// +// MessageText: +// +// The allocation is currently busy. +// +#define ERROR_GRAPHICS_ALLOCATION_BUSY _HRESULT_TYPEDEF_(0xC0262102L) + +// +// MessageId: ERROR_GRAPHICS_TOO_MANY_REFERENCES +// +// MessageText: +// +// An object being referenced has reach the maximum reference count already and can't be reference further. +// +#define ERROR_GRAPHICS_TOO_MANY_REFERENCES _HRESULT_TYPEDEF_(0xC0262103L) + +// +// MessageId: ERROR_GRAPHICS_TRY_AGAIN_LATER +// +// MessageText: +// +// A problem couldn't be solved due to some currently existing condition. The problem should be tried again later. +// +#define ERROR_GRAPHICS_TRY_AGAIN_LATER _HRESULT_TYPEDEF_(0xC0262104L) + +// +// MessageId: ERROR_GRAPHICS_TRY_AGAIN_NOW +// +// MessageText: +// +// A problem couldn't be solved due to some currently existing condition. The problem should be tried again immediately. +// +#define ERROR_GRAPHICS_TRY_AGAIN_NOW _HRESULT_TYPEDEF_(0xC0262105L) + +// +// MessageId: ERROR_GRAPHICS_ALLOCATION_INVALID +// +// MessageText: +// +// The allocation is invalid. +// +#define ERROR_GRAPHICS_ALLOCATION_INVALID _HRESULT_TYPEDEF_(0xC0262106L) + +// +// MessageId: ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE +// +// MessageText: +// +// No more unswizzling aperture are currently available. +// +#define ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE _HRESULT_TYPEDEF_(0xC0262107L) + +// +// MessageId: ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED +// +// MessageText: +// +// The current allocation can't be unswizzled by an aperture. +// +#define ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED _HRESULT_TYPEDEF_(0xC0262108L) + +// +// MessageId: ERROR_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION +// +// MessageText: +// +// The request failed because a pinned allocation can't be evicted. +// +#define ERROR_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION _HRESULT_TYPEDEF_(0xC0262109L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_ALLOCATION_USAGE +// +// MessageText: +// +// The allocation can't be used from its current segment location for the specified operation. +// +#define ERROR_GRAPHICS_INVALID_ALLOCATION_USAGE _HRESULT_TYPEDEF_(0xC0262110L) + +// +// MessageId: ERROR_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION +// +// MessageText: +// +// A locked allocation can't be used in the current command buffer. +// +#define ERROR_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION _HRESULT_TYPEDEF_(0xC0262111L) + +// +// MessageId: ERROR_GRAPHICS_ALLOCATION_CLOSED +// +// MessageText: +// +// The allocation being referenced has been closed permanently. +// +#define ERROR_GRAPHICS_ALLOCATION_CLOSED _HRESULT_TYPEDEF_(0xC0262112L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_ALLOCATION_INSTANCE +// +// MessageText: +// +// An invalid allocation instance is being referenced. +// +#define ERROR_GRAPHICS_INVALID_ALLOCATION_INSTANCE _HRESULT_TYPEDEF_(0xC0262113L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_ALLOCATION_HANDLE +// +// MessageText: +// +// An invalid allocation handle is being referenced. +// +#define ERROR_GRAPHICS_INVALID_ALLOCATION_HANDLE _HRESULT_TYPEDEF_(0xC0262114L) + +// +// MessageId: ERROR_GRAPHICS_WRONG_ALLOCATION_DEVICE +// +// MessageText: +// +// The allocation being referenced doesn't belong to the current device. +// +#define ERROR_GRAPHICS_WRONG_ALLOCATION_DEVICE _HRESULT_TYPEDEF_(0xC0262115L) + +// +// MessageId: ERROR_GRAPHICS_ALLOCATION_CONTENT_LOST +// +// MessageText: +// +// The specified allocation lost its content. +// +#define ERROR_GRAPHICS_ALLOCATION_CONTENT_LOST _HRESULT_TYPEDEF_(0xC0262116L) + +// +// Video GPU Scheduler (VidSch) subsystem errors {0x2200..0x22ff} +// +// +// MessageId: ERROR_GRAPHICS_GPU_EXCEPTION_ON_DEVICE +// +// MessageText: +// +// GPU exception is detected on the given device. The device is not able to be scheduled. +// +#define ERROR_GRAPHICS_GPU_EXCEPTION_ON_DEVICE _HRESULT_TYPEDEF_(0xC0262200L) + +// +// MessageId: ERROR_GRAPHICS_SKIP_ALLOCATION_PREPARATION +// +// MessageText: +// +// Skip preparation of allocations referenced by the DMA buffer. +// +#define ERROR_GRAPHICS_SKIP_ALLOCATION_PREPARATION _HRESULT_TYPEDEF_(0x40262201L) + +// +// Video Present Network Management (VidPNMgr) subsystem errors {0x2300..0x23ff} +// +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY +// +// MessageText: +// +// Specified VidPN topology is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY _HRESULT_TYPEDEF_(0xC0262300L) + +// +// MessageId: ERROR_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED +// +// MessageText: +// +// Specified VidPN topology is valid but is not supported by this model of the display adapter. +// +#define ERROR_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262301L) + +// +// MessageId: ERROR_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED +// +// MessageText: +// +// Specified VidPN topology is valid but is not supported by the display adapter at this time, due to current allocation of its resources. +// +#define ERROR_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262302L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDPN +// +// MessageText: +// +// Specified VidPN handle is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDPN _HRESULT_TYPEDEF_(0xC0262303L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE +// +// MessageText: +// +// Specified video present source is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE _HRESULT_TYPEDEF_(0xC0262304L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET +// +// MessageText: +// +// Specified video present target is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET _HRESULT_TYPEDEF_(0xC0262305L) + +// +// MessageId: ERROR_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED +// +// MessageText: +// +// Specified VidPN modality is not supported (e.g. at least two of the pinned modes are not cofunctional). +// +#define ERROR_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262306L) + +// +// MessageId: ERROR_GRAPHICS_MODE_NOT_PINNED +// +// MessageText: +// +// No mode is pinned on the specified VidPN source/target. +// +#define ERROR_GRAPHICS_MODE_NOT_PINNED _HRESULT_TYPEDEF_(0x00262307L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDPN_SOURCEMODESET +// +// MessageText: +// +// Specified VidPN source mode set is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDPN_SOURCEMODESET _HRESULT_TYPEDEF_(0xC0262308L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDPN_TARGETMODESET +// +// MessageText: +// +// Specified VidPN target mode set is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDPN_TARGETMODESET _HRESULT_TYPEDEF_(0xC0262309L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_FREQUENCY +// +// MessageText: +// +// Specified video signal frequency is invalid. +// +#define ERROR_GRAPHICS_INVALID_FREQUENCY _HRESULT_TYPEDEF_(0xC026230AL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_ACTIVE_REGION +// +// MessageText: +// +// Specified video signal active region is invalid. +// +#define ERROR_GRAPHICS_INVALID_ACTIVE_REGION _HRESULT_TYPEDEF_(0xC026230BL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_TOTAL_REGION +// +// MessageText: +// +// Specified video signal total region is invalid. +// +#define ERROR_GRAPHICS_INVALID_TOTAL_REGION _HRESULT_TYPEDEF_(0xC026230CL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE +// +// MessageText: +// +// Specified video present source mode is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE _HRESULT_TYPEDEF_(0xC0262310L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE +// +// MessageText: +// +// Specified video present target mode is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE _HRESULT_TYPEDEF_(0xC0262311L) + +// +// MessageId: ERROR_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET +// +// MessageText: +// +// Pinned mode must remain in the set on VidPN's cofunctional modality enumeration. +// +#define ERROR_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET _HRESULT_TYPEDEF_(0xC0262312L) + +// +// MessageId: ERROR_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY +// +// MessageText: +// +// Specified video present path is already in VidPN's topology. +// +#define ERROR_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY _HRESULT_TYPEDEF_(0xC0262313L) + +// +// MessageId: ERROR_GRAPHICS_MODE_ALREADY_IN_MODESET +// +// MessageText: +// +// Specified mode is already in the mode set. +// +#define ERROR_GRAPHICS_MODE_ALREADY_IN_MODESET _HRESULT_TYPEDEF_(0xC0262314L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET +// +// MessageText: +// +// Specified video present source set is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET _HRESULT_TYPEDEF_(0xC0262315L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET +// +// MessageText: +// +// Specified video present target set is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET _HRESULT_TYPEDEF_(0xC0262316L) + +// +// MessageId: ERROR_GRAPHICS_SOURCE_ALREADY_IN_SET +// +// MessageText: +// +// Specified video present source is already in the video present source set. +// +#define ERROR_GRAPHICS_SOURCE_ALREADY_IN_SET _HRESULT_TYPEDEF_(0xC0262317L) + +// +// MessageId: ERROR_GRAPHICS_TARGET_ALREADY_IN_SET +// +// MessageText: +// +// Specified video present target is already in the video present target set. +// +#define ERROR_GRAPHICS_TARGET_ALREADY_IN_SET _HRESULT_TYPEDEF_(0xC0262318L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDPN_PRESENT_PATH +// +// MessageText: +// +// Specified VidPN present path is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDPN_PRESENT_PATH _HRESULT_TYPEDEF_(0xC0262319L) + +// +// MessageId: ERROR_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY +// +// MessageText: +// +// Miniport has no recommendation for augmentation of the specified VidPN's topology. +// +#define ERROR_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY _HRESULT_TYPEDEF_(0xC026231AL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET +// +// MessageText: +// +// Specified monitor frequency range set is invalid. +// +#define ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET _HRESULT_TYPEDEF_(0xC026231BL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE +// +// MessageText: +// +// Specified monitor frequency range is invalid. +// +#define ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE _HRESULT_TYPEDEF_(0xC026231CL) + +// +// MessageId: ERROR_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET +// +// MessageText: +// +// Specified frequency range is not in the specified monitor frequency range set. +// +#define ERROR_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET _HRESULT_TYPEDEF_(0xC026231DL) + +// +// MessageId: ERROR_GRAPHICS_NO_PREFERRED_MODE +// +// MessageText: +// +// Specified mode set does not specify preference for one of its modes. +// +#define ERROR_GRAPHICS_NO_PREFERRED_MODE _HRESULT_TYPEDEF_(0x0026231EL) + +// +// MessageId: ERROR_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET +// +// MessageText: +// +// Specified frequency range is already in the specified monitor frequency range set. +// +#define ERROR_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET _HRESULT_TYPEDEF_(0xC026231FL) + +// +// MessageId: ERROR_GRAPHICS_STALE_MODESET +// +// MessageText: +// +// Specified mode set is stale. Please reacquire the new mode set. +// +#define ERROR_GRAPHICS_STALE_MODESET _HRESULT_TYPEDEF_(0xC0262320L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_MONITOR_SOURCEMODESET +// +// MessageText: +// +// Specified monitor source mode set is invalid. +// +#define ERROR_GRAPHICS_INVALID_MONITOR_SOURCEMODESET _HRESULT_TYPEDEF_(0xC0262321L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_MONITOR_SOURCE_MODE +// +// MessageText: +// +// Specified monitor source mode is invalid. +// +#define ERROR_GRAPHICS_INVALID_MONITOR_SOURCE_MODE _HRESULT_TYPEDEF_(0xC0262322L) + +// +// MessageId: ERROR_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN +// +// MessageText: +// +// Miniport does not have any recommendation regarding the request to provide a functional VidPN given the current display adapter configuration. +// +#define ERROR_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN _HRESULT_TYPEDEF_(0xC0262323L) + +// +// MessageId: ERROR_GRAPHICS_MODE_ID_MUST_BE_UNIQUE +// +// MessageText: +// +// ID of the specified mode is already used by another mode in the set. +// +#define ERROR_GRAPHICS_MODE_ID_MUST_BE_UNIQUE _HRESULT_TYPEDEF_(0xC0262324L) + +// +// MessageId: ERROR_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION +// +// MessageText: +// +// System failed to determine a mode that is supported by both the display adapter and the monitor connected to it. +// +#define ERROR_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION _HRESULT_TYPEDEF_(0xC0262325L) + +// +// MessageId: ERROR_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES +// +// MessageText: +// +// Number of video present targets must be greater than or equal to the number of video present sources. +// +#define ERROR_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES _HRESULT_TYPEDEF_(0xC0262326L) + +// +// MessageId: ERROR_GRAPHICS_PATH_NOT_IN_TOPOLOGY +// +// MessageText: +// +// Specified present path is not in VidPN's topology. +// +#define ERROR_GRAPHICS_PATH_NOT_IN_TOPOLOGY _HRESULT_TYPEDEF_(0xC0262327L) + +// +// MessageId: ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE +// +// MessageText: +// +// Display adapter must have at least one video present source. +// +#define ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE _HRESULT_TYPEDEF_(0xC0262328L) + +// +// MessageId: ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET +// +// MessageText: +// +// Display adapter must have at least one video present target. +// +#define ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET _HRESULT_TYPEDEF_(0xC0262329L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_MONITORDESCRIPTORSET +// +// MessageText: +// +// Specified monitor descriptor set is invalid. +// +#define ERROR_GRAPHICS_INVALID_MONITORDESCRIPTORSET _HRESULT_TYPEDEF_(0xC026232AL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_MONITORDESCRIPTOR +// +// MessageText: +// +// Specified monitor descriptor is invalid. +// +#define ERROR_GRAPHICS_INVALID_MONITORDESCRIPTOR _HRESULT_TYPEDEF_(0xC026232BL) + +// +// MessageId: ERROR_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET +// +// MessageText: +// +// Specified descriptor is not in the specified monitor descriptor set. +// +#define ERROR_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET _HRESULT_TYPEDEF_(0xC026232CL) + +// +// MessageId: ERROR_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET +// +// MessageText: +// +// Specified descriptor is already in the specified monitor descriptor set. +// +#define ERROR_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET _HRESULT_TYPEDEF_(0xC026232DL) + +// +// MessageId: ERROR_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE +// +// MessageText: +// +// ID of the specified monitor descriptor is already used by another descriptor in the set. +// +#define ERROR_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE _HRESULT_TYPEDEF_(0xC026232EL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE +// +// MessageText: +// +// Specified video present target subset type is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE _HRESULT_TYPEDEF_(0xC026232FL) + +// +// MessageId: ERROR_GRAPHICS_RESOURCES_NOT_RELATED +// +// MessageText: +// +// Two or more of the specified resources are not related to each other, as defined by the interface semantics. +// +#define ERROR_GRAPHICS_RESOURCES_NOT_RELATED _HRESULT_TYPEDEF_(0xC0262330L) + +// +// MessageId: ERROR_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE +// +// MessageText: +// +// ID of the specified video present source is already used by another source in the set. +// +#define ERROR_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE _HRESULT_TYPEDEF_(0xC0262331L) + +// +// MessageId: ERROR_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE +// +// MessageText: +// +// ID of the specified video present target is already used by another target in the set. +// +#define ERROR_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE _HRESULT_TYPEDEF_(0xC0262332L) + +// +// MessageId: ERROR_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET +// +// MessageText: +// +// Specified VidPN source cannot be used because there is no available VidPN target to connect it to. +// +#define ERROR_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET _HRESULT_TYPEDEF_(0xC0262333L) + +// +// MessageId: ERROR_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER +// +// MessageText: +// +// Newly arrived monitor could not be associated with a display adapter. +// +#define ERROR_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER _HRESULT_TYPEDEF_(0xC0262334L) + +// +// MessageId: ERROR_GRAPHICS_NO_VIDPNMGR +// +// MessageText: +// +// Display adapter in question does not have an associated VidPN manager. +// +#define ERROR_GRAPHICS_NO_VIDPNMGR _HRESULT_TYPEDEF_(0xC0262335L) + +// +// MessageId: ERROR_GRAPHICS_NO_ACTIVE_VIDPN +// +// MessageText: +// +// VidPN manager of the display adapter in question does not have an active VidPN. +// +#define ERROR_GRAPHICS_NO_ACTIVE_VIDPN _HRESULT_TYPEDEF_(0xC0262336L) + +// +// MessageId: ERROR_GRAPHICS_STALE_VIDPN_TOPOLOGY +// +// MessageText: +// +// Specified VidPN topology is stale. Please reacquire the new topology. +// +#define ERROR_GRAPHICS_STALE_VIDPN_TOPOLOGY _HRESULT_TYPEDEF_(0xC0262337L) + +// +// MessageId: ERROR_GRAPHICS_MONITOR_NOT_CONNECTED +// +// MessageText: +// +// There is no monitor connected on the specified video present target. +// +#define ERROR_GRAPHICS_MONITOR_NOT_CONNECTED _HRESULT_TYPEDEF_(0xC0262338L) + +// +// MessageId: ERROR_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY +// +// MessageText: +// +// Specified source is not part of the specified VidPN's topology. +// +#define ERROR_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY _HRESULT_TYPEDEF_(0xC0262339L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE +// +// MessageText: +// +// Specified primary surface size is invalid. +// +#define ERROR_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE _HRESULT_TYPEDEF_(0xC026233AL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VISIBLEREGION_SIZE +// +// MessageText: +// +// Specified visible region size is invalid. +// +#define ERROR_GRAPHICS_INVALID_VISIBLEREGION_SIZE _HRESULT_TYPEDEF_(0xC026233BL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_STRIDE +// +// MessageText: +// +// Specified stride is invalid. +// +#define ERROR_GRAPHICS_INVALID_STRIDE _HRESULT_TYPEDEF_(0xC026233CL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_PIXELFORMAT +// +// MessageText: +// +// Specified pixel format is invalid. +// +#define ERROR_GRAPHICS_INVALID_PIXELFORMAT _HRESULT_TYPEDEF_(0xC026233DL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_COLORBASIS +// +// MessageText: +// +// Specified color basis is invalid. +// +#define ERROR_GRAPHICS_INVALID_COLORBASIS _HRESULT_TYPEDEF_(0xC026233EL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_PIXELVALUEACCESSMODE +// +// MessageText: +// +// Specified pixel value access mode is invalid. +// +#define ERROR_GRAPHICS_INVALID_PIXELVALUEACCESSMODE _HRESULT_TYPEDEF_(0xC026233FL) + +// +// MessageId: ERROR_GRAPHICS_TARGET_NOT_IN_TOPOLOGY +// +// MessageText: +// +// Specified target is not part of the specified VidPN's topology. +// +#define ERROR_GRAPHICS_TARGET_NOT_IN_TOPOLOGY _HRESULT_TYPEDEF_(0xC0262340L) + +// +// MessageId: ERROR_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT +// +// MessageText: +// +// Failed to acquire display mode management interface. +// +#define ERROR_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT _HRESULT_TYPEDEF_(0xC0262341L) + +// +// MessageId: ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE +// +// MessageText: +// +// Specified VidPN source is already owned by a DMM client and cannot be used until that client releases it. +// +#define ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0xC0262342L) + +// +// MessageId: ERROR_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN +// +// MessageText: +// +// Specified VidPN is active and cannot be accessed. +// +#define ERROR_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN _HRESULT_TYPEDEF_(0xC0262343L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL +// +// MessageText: +// +// Specified VidPN present path importance ordinal is invalid. +// +#define ERROR_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL _HRESULT_TYPEDEF_(0xC0262344L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION +// +// MessageText: +// +// Specified VidPN present path content geometry transformation is invalid. +// +#define ERROR_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION _HRESULT_TYPEDEF_(0xC0262345L) + +// +// MessageId: ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED +// +// MessageText: +// +// Specified content geometry transformation is not supported on the respective VidPN present path. +// +#define ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262346L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_GAMMA_RAMP +// +// MessageText: +// +// Specified gamma ramp is invalid. +// +#define ERROR_GRAPHICS_INVALID_GAMMA_RAMP _HRESULT_TYPEDEF_(0xC0262347L) + +// +// MessageId: ERROR_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED +// +// MessageText: +// +// Specified gamma ramp is not supported on the respective VidPN present path. +// +#define ERROR_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262348L) + +// +// MessageId: ERROR_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED +// +// MessageText: +// +// Multi-sampling is not supported on the respective VidPN present path. +// +#define ERROR_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262349L) + +// +// MessageId: ERROR_GRAPHICS_MODE_NOT_IN_MODESET +// +// MessageText: +// +// Specified mode is not in the specified mode set. +// +#define ERROR_GRAPHICS_MODE_NOT_IN_MODESET _HRESULT_TYPEDEF_(0xC026234AL) + +// +// MessageId: ERROR_GRAPHICS_DATASET_IS_EMPTY +// +// MessageText: +// +// Specified data set (e.g. mode set, frequency range set, descriptor set, topology, etc.) is empty. +// +#define ERROR_GRAPHICS_DATASET_IS_EMPTY _HRESULT_TYPEDEF_(0x0026234BL) + +// +// MessageId: ERROR_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET +// +// MessageText: +// +// Specified data set (e.g. mode set, frequency range set, descriptor set, topology, etc.) does not contain any more elements. +// +#define ERROR_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET _HRESULT_TYPEDEF_(0x0026234CL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON +// +// MessageText: +// +// Specified VidPN topology recommendation reason is invalid. +// +#define ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON _HRESULT_TYPEDEF_(0xC026234DL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_PATH_CONTENT_TYPE +// +// MessageText: +// +// Specified VidPN present path content type is invalid. +// +#define ERROR_GRAPHICS_INVALID_PATH_CONTENT_TYPE _HRESULT_TYPEDEF_(0xC026234EL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_COPYPROTECTION_TYPE +// +// MessageText: +// +// Specified VidPN present path copy protection type is invalid. +// +#define ERROR_GRAPHICS_INVALID_COPYPROTECTION_TYPE _HRESULT_TYPEDEF_(0xC026234FL) + +// +// MessageId: ERROR_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS +// +// MessageText: +// +// No more than one unassigned mode set can exist at any given time for a given VidPN source/target. +// +#define ERROR_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS _HRESULT_TYPEDEF_(0xC0262350L) + +// +// MessageId: ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED +// +// MessageText: +// +// Specified content transformation is not pinned on the specified VidPN present path. +// +#define ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED _HRESULT_TYPEDEF_(0x00262351L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_SCANLINE_ORDERING +// +// MessageText: +// +// Specified scanline ordering type is invalid. +// +#define ERROR_GRAPHICS_INVALID_SCANLINE_ORDERING _HRESULT_TYPEDEF_(0xC0262352L) + +// +// MessageId: ERROR_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED +// +// MessageText: +// +// Topology changes are not allowed for the specified VidPN. +// +#define ERROR_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED _HRESULT_TYPEDEF_(0xC0262353L) + +// +// MessageId: ERROR_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS +// +// MessageText: +// +// All available importance ordinals are already used in specified topology. +// +#define ERROR_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS _HRESULT_TYPEDEF_(0xC0262354L) + +// +// MessageId: ERROR_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT +// +// MessageText: +// +// Specified primary surface has a different private format attribute than the current primary surface +// +#define ERROR_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT _HRESULT_TYPEDEF_(0xC0262355L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM +// +// MessageText: +// +// Specified mode pruning algorithm is invalid +// +#define ERROR_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM _HRESULT_TYPEDEF_(0xC0262356L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN +// +// MessageText: +// +// Specified monitor capability origin is invalid. +// +#define ERROR_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN _HRESULT_TYPEDEF_(0xC0262357L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT +// +// MessageText: +// +// Specified monitor frequency range constraint is invalid. +// +#define ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT _HRESULT_TYPEDEF_(0xC0262358L) + +// +// MessageId: ERROR_GRAPHICS_MAX_NUM_PATHS_REACHED +// +// MessageText: +// +// Maximum supported number of present paths has been reached. +// +#define ERROR_GRAPHICS_MAX_NUM_PATHS_REACHED _HRESULT_TYPEDEF_(0xC0262359L) + +// +// MessageId: ERROR_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION +// +// MessageText: +// +// Miniport requested that augmentation be cancelled for the specified source of the specified VidPN's topology. +// +#define ERROR_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION _HRESULT_TYPEDEF_(0xC026235AL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_CLIENT_TYPE +// +// MessageText: +// +// Specified client type was not recognized. +// +#define ERROR_GRAPHICS_INVALID_CLIENT_TYPE _HRESULT_TYPEDEF_(0xC026235BL) + +// +// MessageId: ERROR_GRAPHICS_CLIENTVIDPN_NOT_SET +// +// MessageText: +// +// Client VidPN is not set on this adapter (e.g. no user mode initiated mode changes took place on this adapter yet). +// +#define ERROR_GRAPHICS_CLIENTVIDPN_NOT_SET _HRESULT_TYPEDEF_(0xC026235CL) + +// +// Port specific status codes {0x2400..0x24ff} +// +// +// MessageId: ERROR_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED +// +// MessageText: +// +// Specified display adapter child device already has an external device connected to it. +// +#define ERROR_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED _HRESULT_TYPEDEF_(0xC0262400L) + +// +// MessageId: ERROR_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED +// +// MessageText: +// +// Specified display adapter child device does not support descriptor exposure. +// +#define ERROR_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262401L) + +// +// MessageId: ERROR_GRAPHICS_UNKNOWN_CHILD_STATUS +// +// MessageText: +// +// Child device presence was not reliably detected. +// +#define ERROR_GRAPHICS_UNKNOWN_CHILD_STATUS _HRESULT_TYPEDEF_(0x4026242FL) + +// +// MessageId: ERROR_GRAPHICS_NOT_A_LINKED_ADAPTER +// +// MessageText: +// +// The display adapter is not linked to any other adapters. +// +#define ERROR_GRAPHICS_NOT_A_LINKED_ADAPTER _HRESULT_TYPEDEF_(0xC0262430L) + +// +// MessageId: ERROR_GRAPHICS_LEADLINK_NOT_ENUMERATED +// +// MessageText: +// +// Lead adapter in a linked configuration was not enumerated yet. +// +#define ERROR_GRAPHICS_LEADLINK_NOT_ENUMERATED _HRESULT_TYPEDEF_(0xC0262431L) + +// +// MessageId: ERROR_GRAPHICS_CHAINLINKS_NOT_ENUMERATED +// +// MessageText: +// +// Some chain adapters in a linked configuration were not enumerated yet. +// +#define ERROR_GRAPHICS_CHAINLINKS_NOT_ENUMERATED _HRESULT_TYPEDEF_(0xC0262432L) + +// +// MessageId: ERROR_GRAPHICS_ADAPTER_CHAIN_NOT_READY +// +// MessageText: +// +// The chain of linked adapters is not ready to start because of an unknown failure. +// +#define ERROR_GRAPHICS_ADAPTER_CHAIN_NOT_READY _HRESULT_TYPEDEF_(0xC0262433L) + +// +// MessageId: ERROR_GRAPHICS_CHAINLINKS_NOT_STARTED +// +// MessageText: +// +// An attempt was made to start a lead link display adapter when the chain links were not started yet. +// +#define ERROR_GRAPHICS_CHAINLINKS_NOT_STARTED _HRESULT_TYPEDEF_(0xC0262434L) + +// +// MessageId: ERROR_GRAPHICS_CHAINLINKS_NOT_POWERED_ON +// +// MessageText: +// +// An attempt was made to power up a lead link display adapter when the chain links were powered down. +// +#define ERROR_GRAPHICS_CHAINLINKS_NOT_POWERED_ON _HRESULT_TYPEDEF_(0xC0262435L) + +// +// MessageId: ERROR_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE +// +// MessageText: +// +// The adapter link was found to be in an inconsistent state. Not all adapters are in an expected PNP/Power state. +// +#define ERROR_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE _HRESULT_TYPEDEF_(0xC0262436L) + +// +// MessageId: ERROR_GRAPHICS_LEADLINK_START_DEFERRED +// +// MessageText: +// +// Starting the leadlink adapter has been deferred temporarily. +// +#define ERROR_GRAPHICS_LEADLINK_START_DEFERRED _HRESULT_TYPEDEF_(0x40262437L) + +// +// MessageId: ERROR_GRAPHICS_NOT_POST_DEVICE_DRIVER +// +// MessageText: +// +// The driver trying to start is not the same as the driver for the POSTed display adapter. +// +#define ERROR_GRAPHICS_NOT_POST_DEVICE_DRIVER _HRESULT_TYPEDEF_(0xC0262438L) + +// +// MessageId: ERROR_GRAPHICS_POLLING_TOO_FREQUENTLY +// +// MessageText: +// +// The display adapter is being polled for children too frequently at the same polling level. +// +#define ERROR_GRAPHICS_POLLING_TOO_FREQUENTLY _HRESULT_TYPEDEF_(0x40262439L) + +// +// MessageId: ERROR_GRAPHICS_START_DEFERRED +// +// MessageText: +// +// Starting the adapter has been deferred temporarily. +// +#define ERROR_GRAPHICS_START_DEFERRED _HRESULT_TYPEDEF_(0x4026243AL) + +// +// MessageId: ERROR_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED +// +// MessageText: +// +// An operation is being attempted that requires the display adapter to be in a quiescent state. +// +#define ERROR_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED _HRESULT_TYPEDEF_(0xC026243BL) + +// +// MessageId: ERROR_GRAPHICS_DEPENDABLE_CHILD_STATUS +// +// MessageText: +// +// We can depend on the child device presence returned by the driver. +// +#define ERROR_GRAPHICS_DEPENDABLE_CHILD_STATUS _HRESULT_TYPEDEF_(0x4026243CL) + +// +// OPM, UAB and PVP specific error codes {0x2500..0x257f} +// +// +// MessageId: ERROR_GRAPHICS_OPM_NOT_SUPPORTED +// +// MessageText: +// +// The driver does not support OPM. +// +#define ERROR_GRAPHICS_OPM_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262500L) + +// +// MessageId: ERROR_GRAPHICS_COPP_NOT_SUPPORTED +// +// MessageText: +// +// The driver does not support COPP. +// +#define ERROR_GRAPHICS_COPP_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262501L) + +// +// MessageId: ERROR_GRAPHICS_UAB_NOT_SUPPORTED +// +// MessageText: +// +// The driver does not support UAB. +// +#define ERROR_GRAPHICS_UAB_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262502L) + +// +// MessageId: ERROR_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS +// +// MessageText: +// +// The specified encrypted parameters are invalid. +// +#define ERROR_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS _HRESULT_TYPEDEF_(0xC0262503L) + +// +// MessageId: ERROR_GRAPHICS_OPM_NO_VIDEO_OUTPUTS_EXIST +// +// MessageText: +// +// The GDI display device passed to this function does not have any active video outputs. +// +#define ERROR_GRAPHICS_OPM_NO_VIDEO_OUTPUTS_EXIST _HRESULT_TYPEDEF_(0xC0262505L) + +// +// MessageId: ERROR_GRAPHICS_OPM_INTERNAL_ERROR +// +// MessageText: +// +// An internal error caused this operation to fail. +// +#define ERROR_GRAPHICS_OPM_INTERNAL_ERROR _HRESULT_TYPEDEF_(0xC026250BL) + +// +// MessageId: ERROR_GRAPHICS_OPM_INVALID_HANDLE +// +// MessageText: +// +// The function failed because the caller passed in an invalid OPM user mode handle. +// +#define ERROR_GRAPHICS_OPM_INVALID_HANDLE _HRESULT_TYPEDEF_(0xC026250CL) + +// +// MessageId: ERROR_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH +// +// MessageText: +// +// A certificate could not be returned because the certificate buffer passed to the function was too small. +// +#define ERROR_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH _HRESULT_TYPEDEF_(0xC026250EL) + +// +// MessageId: ERROR_GRAPHICS_OPM_SPANNING_MODE_ENABLED +// +// MessageText: +// +// A video output could not be created because the frame buffer is in spanning mode. +// +#define ERROR_GRAPHICS_OPM_SPANNING_MODE_ENABLED _HRESULT_TYPEDEF_(0xC026250FL) + +// +// MessageId: ERROR_GRAPHICS_OPM_THEATER_MODE_ENABLED +// +// MessageText: +// +// A video output could not be created because the frame buffer is in theater mode. +// +#define ERROR_GRAPHICS_OPM_THEATER_MODE_ENABLED _HRESULT_TYPEDEF_(0xC0262510L) + +// +// MessageId: ERROR_GRAPHICS_PVP_HFS_FAILED +// +// MessageText: +// +// The function failed because the display adapter's Hardware Functionality Scan failed to validate the graphics hardware. +// +#define ERROR_GRAPHICS_PVP_HFS_FAILED _HRESULT_TYPEDEF_(0xC0262511L) + +// +// MessageId: ERROR_GRAPHICS_OPM_INVALID_SRM +// +// MessageText: +// +// The HDCP System Renewability Message passed to this function did not comply with section 5 of the HDCP 1.1 specification. +// +#define ERROR_GRAPHICS_OPM_INVALID_SRM _HRESULT_TYPEDEF_(0xC0262512L) + +// +// MessageId: ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP +// +// MessageText: +// +// The video output cannot enable the High-bandwidth Digital Content Protection (HDCP) System because it does not support HDCP. +// +#define ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP _HRESULT_TYPEDEF_(0xC0262513L) + +// +// MessageId: ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP +// +// MessageText: +// +// The video output cannot enable Analogue Copy Protection (ACP) because it does not support ACP. +// +#define ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP _HRESULT_TYPEDEF_(0xC0262514L) + +// +// MessageId: ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA +// +// MessageText: +// +// The video output cannot enable the Content Generation Management System Analogue (CGMS-A) protection technology because it does not support CGMS-A. +// +#define ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA _HRESULT_TYPEDEF_(0xC0262515L) + +// +// MessageId: ERROR_GRAPHICS_OPM_HDCP_SRM_NEVER_SET +// +// MessageText: +// +// The IOPMVideoOutput::GetInformation method cannot return the version of the SRM being used because the application never successfully passed an SRM to the video output. +// +#define ERROR_GRAPHICS_OPM_HDCP_SRM_NEVER_SET _HRESULT_TYPEDEF_(0xC0262516L) + +// +// MessageId: ERROR_GRAPHICS_OPM_RESOLUTION_TOO_HIGH +// +// MessageText: +// +// The IOPMVideoOutput::Configure method cannot enable the specified output protection technology because the output's screen resolution is too high. +// +#define ERROR_GRAPHICS_OPM_RESOLUTION_TOO_HIGH _HRESULT_TYPEDEF_(0xC0262517L) + +// +// MessageId: ERROR_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE +// +// MessageText: +// +// The IOPMVideoOutput::Configure method cannot enable HDCP because the display adapter's HDCP hardware is already being used by other physical outputs. +// +#define ERROR_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE _HRESULT_TYPEDEF_(0xC0262518L) + +// +// MessageId: ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_NO_LONGER_EXISTS +// +// MessageText: +// +// The operating system asynchronously destroyed this OPM video output because the operating system's state changed. This error typically occurs because the monitor PDO associated with this video output was removed, the monitor PDO associated with this video output was stopped, the video output's session became a non-console session or the video output's desktop became an inactive desktop. +// +#define ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_NO_LONGER_EXISTS _HRESULT_TYPEDEF_(0xC026251AL) + +// +// MessageId: ERROR_GRAPHICS_OPM_SESSION_TYPE_CHANGE_IN_PROGRESS +// +// MessageText: +// +// The method failed because the session is changing its type. No IOPMVideoOutput methods can be called when a session is changing its type. There are currently three types of sessions: console, disconnected and remote. +// +#define ERROR_GRAPHICS_OPM_SESSION_TYPE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0xC026251BL) + +// +// MessageId: ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS +// +// MessageText: +// +// Either the IOPMVideoOutput::COPPCompatibleGetInformation, IOPMVideoOutput::GetInformation, or IOPMVideoOutput::Configure method failed. This error is returned when the caller tries to use a COPP specific command while the video output has OPM semantics only. +// +#define ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS _HRESULT_TYPEDEF_(0xC026251CL) + +// +// MessageId: ERROR_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST +// +// MessageText: +// +// The IOPMVideoOutput::GetInformation and IOPMVideoOutput::COPPCompatibleGetInformation methods return this error if the passed in sequence number is not the expected sequence number or the passed in OMAC value is invalid. +// +#define ERROR_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST _HRESULT_TYPEDEF_(0xC026251DL) + +// +// MessageId: ERROR_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR +// +// MessageText: +// +// The method failed because an unexpected error occurred inside of a display driver. +// +#define ERROR_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR _HRESULT_TYPEDEF_(0xC026251EL) + +// +// MessageId: ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS +// +// MessageText: +// +// Either the IOPMVideoOutput::COPPCompatibleGetInformation, IOPMVideoOutput::GetInformation, or IOPMVideoOutput::Configure method failed. This error is returned when the caller tries to use an OPM specific command while the video output has COPP semantics only. +// +#define ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS _HRESULT_TYPEDEF_(0xC026251FL) + +// +// MessageId: ERROR_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED +// +// MessageText: +// +// The IOPMVideoOutput::COPPCompatibleGetInformation or IOPMVideoOutput::Configure method failed because the display driver does not support the OPM_GET_ACP_AND_CGMSA_SIGNALING and OPM_SET_ACP_AND_CGMSA_SIGNALING GUIDs. +// +#define ERROR_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262520L) + +// +// MessageId: ERROR_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST +// +// MessageText: +// +// The IOPMVideoOutput::Configure function returns this error code if the passed in sequence number is not the expected sequence number or the passed in OMAC value is invalid. +// +#define ERROR_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST _HRESULT_TYPEDEF_(0xC0262521L) + +// +// Monitor Configuration API error codes {0x2580..0x25DF} +// +// +// MessageId: ERROR_GRAPHICS_I2C_NOT_SUPPORTED +// +// MessageText: +// +// The monitor connected to the specified video output does not have an I2C bus. +// +#define ERROR_GRAPHICS_I2C_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262580L) + +// +// MessageId: ERROR_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST +// +// MessageText: +// +// No device on the I2C bus has the specified address. +// +#define ERROR_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST _HRESULT_TYPEDEF_(0xC0262581L) + +// +// MessageId: ERROR_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA +// +// MessageText: +// +// An error occurred while transmitting data to the device on the I2C bus. +// +#define ERROR_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA _HRESULT_TYPEDEF_(0xC0262582L) + +// +// MessageId: ERROR_GRAPHICS_I2C_ERROR_RECEIVING_DATA +// +// MessageText: +// +// An error occurred while receiving data from the device on the I2C bus. +// +#define ERROR_GRAPHICS_I2C_ERROR_RECEIVING_DATA _HRESULT_TYPEDEF_(0xC0262583L) + +// +// MessageId: ERROR_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED +// +// MessageText: +// +// The monitor does not support the specified VCP code. +// +#define ERROR_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0262584L) + +// +// MessageId: ERROR_GRAPHICS_DDCCI_INVALID_DATA +// +// MessageText: +// +// The data received from the monitor is invalid. +// +#define ERROR_GRAPHICS_DDCCI_INVALID_DATA _HRESULT_TYPEDEF_(0xC0262585L) + +// +// MessageId: ERROR_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE +// +// MessageText: +// +// The function failed because a monitor returned an invalid Timing Status byte when the operating system used the DDC/CI Get Timing Report & Timing Message command to get a timing report from a monitor. +// +#define ERROR_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE _HRESULT_TYPEDEF_(0xC0262586L) + +// +// MessageId: ERROR_GRAPHICS_MCA_INVALID_CAPABILITIES_STRING +// +// MessageText: +// +// The monitor returned a DDC/CI capabilities string which did not comply with the ACCESS.bus 3.0, DDC/CI 1.1, or MCCS 2 Revision 1 specification. +// +#define ERROR_GRAPHICS_MCA_INVALID_CAPABILITIES_STRING _HRESULT_TYPEDEF_(0xC0262587L) + +// +// MessageId: ERROR_GRAPHICS_MCA_INTERNAL_ERROR +// +// MessageText: +// +// An internal Monitor Configuration API error occurred. +// +#define ERROR_GRAPHICS_MCA_INTERNAL_ERROR _HRESULT_TYPEDEF_(0xC0262588L) + +// +// MessageId: ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND +// +// MessageText: +// +// An operation failed because a DDC/CI message had an invalid value in its command field. +// +#define ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND _HRESULT_TYPEDEF_(0xC0262589L) + +// +// MessageId: ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH +// +// MessageText: +// +// An error occurred because the field length of a DDC/CI message contained an invalid value. +// +#define ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH _HRESULT_TYPEDEF_(0xC026258AL) + +// +// MessageId: ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM +// +// MessageText: +// +// An error occurred because the checksum field in a DDC/CI message did not match the message's computed checksum value. This error implies that the data was corrupted while it was being transmitted from a monitor to a computer. +// +#define ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM _HRESULT_TYPEDEF_(0xC026258BL) + +// +// MessageId: ERROR_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE +// +// MessageText: +// +// This function failed because an invalid monitor handle was passed to it. +// +#define ERROR_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE _HRESULT_TYPEDEF_(0xC026258CL) + +// +// MessageId: ERROR_GRAPHICS_MONITOR_NO_LONGER_EXISTS +// +// MessageText: +// +// The operating system asynchronously destroyed the monitor which corresponds to this handle because the operating system's state changed. This error typically occurs because the monitor PDO associated with this handle was removed, the monitor PDO associated with this handle was stopped, or a display mode change occurred. A display mode change occurs when windows sends a WM_DISPLAYCHANGE windows message to applications. +// +#define ERROR_GRAPHICS_MONITOR_NO_LONGER_EXISTS _HRESULT_TYPEDEF_(0xC026258DL) + +// +// MessageId: ERROR_GRAPHICS_DDCCI_CURRENT_CURRENT_VALUE_GREATER_THAN_MAXIMUM_VALUE +// +// MessageText: +// +// A continuous VCP code's current value is greater than its maximum value. This error code indicates that a monitor returned an invalid value. +// +#define ERROR_GRAPHICS_DDCCI_CURRENT_CURRENT_VALUE_GREATER_THAN_MAXIMUM_VALUE _HRESULT_TYPEDEF_(0xC02625D8L) + +// +// MessageId: ERROR_GRAPHICS_MCA_INVALID_VCP_VERSION +// +// MessageText: +// +// The monitor's VCP Version (0xDF) VCP code returned an invalid version value. +// +#define ERROR_GRAPHICS_MCA_INVALID_VCP_VERSION _HRESULT_TYPEDEF_(0xC02625D9L) + +// +// MessageId: ERROR_GRAPHICS_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION +// +// MessageText: +// +// The monitor does not comply with the MCCS specification it claims to support. +// +#define ERROR_GRAPHICS_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION _HRESULT_TYPEDEF_(0xC02625DAL) + +// +// MessageId: ERROR_GRAPHICS_MCA_MCCS_VERSION_MISMATCH +// +// MessageText: +// +// The MCCS version in a monitor's mccs_ver capability does not match the MCCS version the monitor reports when the VCP Version (0xDF) VCP code is used. +// +#define ERROR_GRAPHICS_MCA_MCCS_VERSION_MISMATCH _HRESULT_TYPEDEF_(0xC02625DBL) + +// +// MessageId: ERROR_GRAPHICS_MCA_UNSUPPORTED_MCCS_VERSION +// +// MessageText: +// +// The Monitor Configuration API only works with monitors which support the MCCS 1.0 specification, MCCS 2.0 specification or the MCCS 2.0 Revision 1 specification. +// +#define ERROR_GRAPHICS_MCA_UNSUPPORTED_MCCS_VERSION _HRESULT_TYPEDEF_(0xC02625DCL) + +// +// MessageId: ERROR_GRAPHICS_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED +// +// MessageText: +// +// The monitor returned an invalid monitor technology type. CRT, Plasma and LCD (TFT) are examples of monitor technology types. This error implies that the monitor violated the MCCS 2.0 or MCCS 2.0 Revision 1 specification. +// +#define ERROR_GRAPHICS_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED _HRESULT_TYPEDEF_(0xC02625DEL) + +// +// MessageId: ERROR_GRAPHICS_MCA_UNSUPPORTED_COLOR_TEMPERATURE +// +// MessageText: +// +// SetMonitorColorTemperature()'s caller passed a color temperature to it which the current monitor did not support. This error implies that the monitor violated the MCCS 2.0 or MCCS 2.0 Revision 1 specification. +// +#define ERROR_GRAPHICS_MCA_UNSUPPORTED_COLOR_TEMPERATURE _HRESULT_TYPEDEF_(0xC02625DFL) + +// +// OPM, UAB, PVP and DDC/CI shared error codes {0x25E0..0x25ff} +// +// +// MessageId: ERROR_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED +// +// MessageText: +// +// This function can only be used if a program is running in the local console session. It cannot be used if the program is running on a remote desktop session or on a terminal server session. +// +#define ERROR_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED _HRESULT_TYPEDEF_(0xC02625E0L) + +// +// MessageId: ERROR_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME +// +// MessageText: +// +// This function cannot find an actual GDI display device which corresponds to the specified GDI display device name. +// +#define ERROR_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME _HRESULT_TYPEDEF_(0xC02625E1L) + +// +// MessageId: ERROR_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP +// +// MessageText: +// +// The function failed because the specified GDI display device was not attached to the Windows desktop. +// +#define ERROR_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP _HRESULT_TYPEDEF_(0xC02625E2L) + +// +// MessageId: ERROR_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED +// +// MessageText: +// +// This function does not support GDI mirroring display devices because GDI mirroring display devices do not have any physical monitors associated with them. +// +#define ERROR_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC02625E3L) + +// +// MessageId: ERROR_GRAPHICS_INVALID_POINTER +// +// MessageText: +// +// The function failed because an invalid pointer parameter was passed to it. A pointer parameter is invalid if it is NULL, points to an invalid address, points to a kernel mode address, or is not correctly aligned. +// +#define ERROR_GRAPHICS_INVALID_POINTER _HRESULT_TYPEDEF_(0xC02625E4L) + +// +// MessageId: ERROR_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE +// +// MessageText: +// +// The function failed because the specified GDI device did not have any monitors associated with it. +// +#define ERROR_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE _HRESULT_TYPEDEF_(0xC02625E5L) + +// +// MessageId: ERROR_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL +// +// MessageText: +// +// An array passed to the function cannot hold all of the data that the function must copy into the array. +// +#define ERROR_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL _HRESULT_TYPEDEF_(0xC02625E6L) + +// +// MessageId: ERROR_GRAPHICS_INTERNAL_ERROR +// +// MessageText: +// +// An internal error caused an operation to fail. +// +#define ERROR_GRAPHICS_INTERNAL_ERROR _HRESULT_TYPEDEF_(0xC02625E7L) + +// +// MessageId: ERROR_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS +// +// MessageText: +// +// The function failed because the current session is changing its type. This function cannot be called when the current session is changing its type. There are currently three types of sessions: console, disconnected and remote. +// +#define ERROR_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0xC02605E8L) + +// +// Basic Display Driver shared error codes {0x2600..0x26DF} +// +// +// MessageId: ERROR_GRAPHICS_UNKNOWN_BIOS_FRAME_BUFFER_NOT_FOUND +// +// MessageText: +// +// The Basic Display Driver cannot start because there is no frame buffer found, and the system cannot determine if the system is BIOS-compatible. +// +#define ERROR_GRAPHICS_UNKNOWN_BIOS_FRAME_BUFFER_NOT_FOUND _HRESULT_TYPEDEF_(0xC0262600L) + +// +// MessageId: ERROR_GRAPHICS_UEFI_FRAME_BUFFER_NOT_FOUND +// +// MessageText: +// +// The Basic Display Driver cannot start because there is no frame buffer found from UEFI or from a previously running graphics driver. +// +#define ERROR_GRAPHICS_UEFI_FRAME_BUFFER_NOT_FOUND _HRESULT_TYPEDEF_(0xC0262601L) + + +// FACILITY_NAP + +// +// MessageId: NAP_E_INVALID_PACKET +// +// MessageText: +// +// The NAP SoH packet is invalid. +// +#define NAP_E_INVALID_PACKET _HRESULT_TYPEDEF_(0x80270001L) + +// +// MessageId: NAP_E_MISSING_SOH +// +// MessageText: +// +// An SoH was missing from the NAP packet. +// +#define NAP_E_MISSING_SOH _HRESULT_TYPEDEF_(0x80270002L) + +// +// MessageId: NAP_E_CONFLICTING_ID +// +// MessageText: +// +// The entity ID conflicts with an already registered id. +// +#define NAP_E_CONFLICTING_ID _HRESULT_TYPEDEF_(0x80270003L) + +// +// MessageId: NAP_E_NO_CACHED_SOH +// +// MessageText: +// +// No cached SoH is present. +// +#define NAP_E_NO_CACHED_SOH _HRESULT_TYPEDEF_(0x80270004L) + +// +// MessageId: NAP_E_STILL_BOUND +// +// MessageText: +// +// The entity is still bound to the NAP system. +// +#define NAP_E_STILL_BOUND _HRESULT_TYPEDEF_(0x80270005L) + +// +// MessageId: NAP_E_NOT_REGISTERED +// +// MessageText: +// +// The entity is not registered with the NAP system. +// +#define NAP_E_NOT_REGISTERED _HRESULT_TYPEDEF_(0x80270006L) + +// +// MessageId: NAP_E_NOT_INITIALIZED +// +// MessageText: +// +// The entity is not initialized with the NAP system. +// +#define NAP_E_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x80270007L) + +// +// MessageId: NAP_E_MISMATCHED_ID +// +// MessageText: +// +// The correlation id in the SoH-Request and SoH-Response do not match up. +// +#define NAP_E_MISMATCHED_ID _HRESULT_TYPEDEF_(0x80270008L) + +// +// MessageId: NAP_E_NOT_PENDING +// +// MessageText: +// +// Completion was indicated on a request that is not currently pending. +// +#define NAP_E_NOT_PENDING _HRESULT_TYPEDEF_(0x80270009L) + +// +// MessageId: NAP_E_ID_NOT_FOUND +// +// MessageText: +// +// The NAP component's id was not found. +// +#define NAP_E_ID_NOT_FOUND _HRESULT_TYPEDEF_(0x8027000AL) + +// +// MessageId: NAP_E_MAXSIZE_TOO_SMALL +// +// MessageText: +// +// The maximum size of the connection is too small for an SoH packet. +// +#define NAP_E_MAXSIZE_TOO_SMALL _HRESULT_TYPEDEF_(0x8027000BL) + +// +// MessageId: NAP_E_SERVICE_NOT_RUNNING +// +// MessageText: +// +// The NapAgent service is not running. +// +#define NAP_E_SERVICE_NOT_RUNNING _HRESULT_TYPEDEF_(0x8027000CL) + +// +// MessageId: NAP_S_CERT_ALREADY_PRESENT +// +// MessageText: +// +// A certificate is already present in the cert store. +// +#define NAP_S_CERT_ALREADY_PRESENT _HRESULT_TYPEDEF_(0x0027000DL) + +// +// MessageId: NAP_E_ENTITY_DISABLED +// +// MessageText: +// +// The entity is disabled with the NapAgent service. +// +#define NAP_E_ENTITY_DISABLED _HRESULT_TYPEDEF_(0x8027000EL) + +// +// MessageId: NAP_E_NETSH_GROUPPOLICY_ERROR +// +// MessageText: +// +// Group Policy is not configured. +// +#define NAP_E_NETSH_GROUPPOLICY_ERROR _HRESULT_TYPEDEF_(0x8027000FL) + +// +// MessageId: NAP_E_TOO_MANY_CALLS +// +// MessageText: +// +// Too many simultaneous calls. +// +#define NAP_E_TOO_MANY_CALLS _HRESULT_TYPEDEF_(0x80270010L) + +// +// MessageId: NAP_E_SHV_CONFIG_EXISTED +// +// MessageText: +// +// SHV configuration already existed. +// +#define NAP_E_SHV_CONFIG_EXISTED _HRESULT_TYPEDEF_(0x80270011L) + +// +// MessageId: NAP_E_SHV_CONFIG_NOT_FOUND +// +// MessageText: +// +// SHV configuration is not found. +// +#define NAP_E_SHV_CONFIG_NOT_FOUND _HRESULT_TYPEDEF_(0x80270012L) + +// +// MessageId: NAP_E_SHV_TIMEOUT +// +// MessageText: +// +// SHV timed out on the request. +// +#define NAP_E_SHV_TIMEOUT _HRESULT_TYPEDEF_(0x80270013L) + +// +// =============================== +// TPM Services and TPM Software Error Messages +// =============================== +// +// The TPM services and TPM software facilities are used by the various +// TPM software components. There are two facilities because the services +// errors are within the TCG-defined error space and the software errors +// are not. +// +// The following are the subranges within the TPM Services facility. +// The TPM hardware errors are defined in the document +// TPM Main Specification 1.2 Part 2 TPM Structures. +// The TBS errors are slotted into the TCG error namespace at the TBS layer. +// +// 0x0000 - 0x08ff TPM hardware errors +// 0x4000 - 0x40ff TPM Base Services errors (tbssvc.dll) +// +// The following are the subranges within the TPM Software facility. The TBS +// has two classes of errors - those that can be returned (the public errors, +// defined in the TBS spec), which are in the TPM services facility, and +// those that are internal or implementation specific, which are here in the +// TPM software facility. +// +// 0x0000 - 0x00ff TPM device driver errors (tpm.sys) +// 0x0100 - 0x01ff TPM API errors (tpmapi.lib) +// 0x0200 - 0x02ff TBS internal errors (tbssvc.dll) +// 0x0300 - 0x03ff TPM Physical Presence errors +// 0x0400 - 0x04ff TPM vendor specific hardware errors +// 0x0500 - 0x05ff Misc TPM error codes +// 0x0600 - 0x06ff TPM task and core provisioning errors +// +// +// TPM hardware error codes {0x0000..0x08ff} +// This space is further subdivided into hardware errors, vendor-specific +// errors, and non-fatal errors. +// +// +// TPM hardware errors {0x0000..0x003ff} +// +// +// MessageId: TPM_E_ERROR_MASK +// +// MessageText: +// +// This is an error mask to convert TPM hardware errors to win errors. +// +#define TPM_E_ERROR_MASK _HRESULT_TYPEDEF_(0x80280000L) + +// +// MessageId: TPM_E_AUTHFAIL +// +// MessageText: +// +// TPM 1.2: Authentication failed. +// +#define TPM_E_AUTHFAIL _HRESULT_TYPEDEF_(0x80280001L) + +// +// MessageId: TPM_E_BADINDEX +// +// MessageText: +// +// TPM 1.2: The index to a PCR, DIR or other register is incorrect. +// +#define TPM_E_BADINDEX _HRESULT_TYPEDEF_(0x80280002L) + +// +// MessageId: TPM_E_BAD_PARAMETER +// +// MessageText: +// +// TPM 1.2: One or more parameter is bad. +// +#define TPM_E_BAD_PARAMETER _HRESULT_TYPEDEF_(0x80280003L) + +// +// MessageId: TPM_E_AUDITFAILURE +// +// MessageText: +// +// TPM 1.2: An operation completed successfully but the auditing of that operation failed. +// +#define TPM_E_AUDITFAILURE _HRESULT_TYPEDEF_(0x80280004L) + +// +// MessageId: TPM_E_CLEAR_DISABLED +// +// MessageText: +// +// TPM 1.2: The clear disable flag is set and all clear operations now require physical access. +// +#define TPM_E_CLEAR_DISABLED _HRESULT_TYPEDEF_(0x80280005L) + +// +// MessageId: TPM_E_DEACTIVATED +// +// MessageText: +// +// TPM 1.2: Activate the Trusted Platform Module (TPM). +// +#define TPM_E_DEACTIVATED _HRESULT_TYPEDEF_(0x80280006L) + +// +// MessageId: TPM_E_DISABLED +// +// MessageText: +// +// TPM 1.2: Enable the Trusted Platform Module (TPM). +// +#define TPM_E_DISABLED _HRESULT_TYPEDEF_(0x80280007L) + +// +// MessageId: TPM_E_DISABLED_CMD +// +// MessageText: +// +// TPM 1.2: The target command has been disabled. +// +#define TPM_E_DISABLED_CMD _HRESULT_TYPEDEF_(0x80280008L) + +// +// MessageId: TPM_E_FAIL +// +// MessageText: +// +// TPM 1.2: The operation failed. +// +#define TPM_E_FAIL _HRESULT_TYPEDEF_(0x80280009L) + +// +// MessageId: TPM_E_BAD_ORDINAL +// +// MessageText: +// +// TPM 1.2: The ordinal was unknown or inconsistent. +// +#define TPM_E_BAD_ORDINAL _HRESULT_TYPEDEF_(0x8028000AL) + +// +// MessageId: TPM_E_INSTALL_DISABLED +// +// MessageText: +// +// TPM 1.2: The ability to install an owner is disabled. +// +#define TPM_E_INSTALL_DISABLED _HRESULT_TYPEDEF_(0x8028000BL) + +// +// MessageId: TPM_E_INVALID_KEYHANDLE +// +// MessageText: +// +// TPM 1.2: The key handle cannot be interpreted. +// +#define TPM_E_INVALID_KEYHANDLE _HRESULT_TYPEDEF_(0x8028000CL) + +// +// MessageId: TPM_E_KEYNOTFOUND +// +// MessageText: +// +// TPM 1.2: The key handle points to an invalid key. +// +#define TPM_E_KEYNOTFOUND _HRESULT_TYPEDEF_(0x8028000DL) + +// +// MessageId: TPM_E_INAPPROPRIATE_ENC +// +// MessageText: +// +// TPM 1.2: Unacceptable encryption scheme. +// +#define TPM_E_INAPPROPRIATE_ENC _HRESULT_TYPEDEF_(0x8028000EL) + +// +// MessageId: TPM_E_MIGRATEFAIL +// +// MessageText: +// +// TPM 1.2: Migration authorization failed. +// +#define TPM_E_MIGRATEFAIL _HRESULT_TYPEDEF_(0x8028000FL) + +// +// MessageId: TPM_E_INVALID_PCR_INFO +// +// MessageText: +// +// TPM 1.2: PCR information could not be interpreted. +// +#define TPM_E_INVALID_PCR_INFO _HRESULT_TYPEDEF_(0x80280010L) + +// +// MessageId: TPM_E_NOSPACE +// +// MessageText: +// +// TPM 1.2: No room to load key. +// +#define TPM_E_NOSPACE _HRESULT_TYPEDEF_(0x80280011L) + +// +// MessageId: TPM_E_NOSRK +// +// MessageText: +// +// TPM 1.2: There is no Storage Root Key (SRK) set. +// +#define TPM_E_NOSRK _HRESULT_TYPEDEF_(0x80280012L) + +// +// MessageId: TPM_E_NOTSEALED_BLOB +// +// MessageText: +// +// TPM 1.2: An encrypted blob is invalid or was not created by this TPM. +// +#define TPM_E_NOTSEALED_BLOB _HRESULT_TYPEDEF_(0x80280013L) + +// +// MessageId: TPM_E_OWNER_SET +// +// MessageText: +// +// TPM 1.2: The Trusted Platform Module (TPM) already has an owner. +// +#define TPM_E_OWNER_SET _HRESULT_TYPEDEF_(0x80280014L) + +// +// MessageId: TPM_E_RESOURCES +// +// MessageText: +// +// TPM 1.2: The TPM has insufficient internal resources to perform the requested action. +// +#define TPM_E_RESOURCES _HRESULT_TYPEDEF_(0x80280015L) + +// +// MessageId: TPM_E_SHORTRANDOM +// +// MessageText: +// +// TPM 1.2: A random string was too short. +// +#define TPM_E_SHORTRANDOM _HRESULT_TYPEDEF_(0x80280016L) + +// +// MessageId: TPM_E_SIZE +// +// MessageText: +// +// TPM 1.2: The TPM does not have the space to perform the operation. +// +#define TPM_E_SIZE _HRESULT_TYPEDEF_(0x80280017L) + +// +// MessageId: TPM_E_WRONGPCRVAL +// +// MessageText: +// +// TPM 1.2: The named PCR value does not match the current PCR value. +// +#define TPM_E_WRONGPCRVAL _HRESULT_TYPEDEF_(0x80280018L) + +// +// MessageId: TPM_E_BAD_PARAM_SIZE +// +// MessageText: +// +// TPM 1.2: The paramSize argument to the command has the incorrect value . +// +#define TPM_E_BAD_PARAM_SIZE _HRESULT_TYPEDEF_(0x80280019L) + +// +// MessageId: TPM_E_SHA_THREAD +// +// MessageText: +// +// TPM 1.2: There is no existing SHA-1 thread. +// +#define TPM_E_SHA_THREAD _HRESULT_TYPEDEF_(0x8028001AL) + +// +// MessageId: TPM_E_SHA_ERROR +// +// MessageText: +// +// TPM 1.2: The calculation is unable to proceed because the existing SHA-1 thread has already encountered an error. +// +#define TPM_E_SHA_ERROR _HRESULT_TYPEDEF_(0x8028001BL) + +// +// MessageId: TPM_E_FAILEDSELFTEST +// +// MessageText: +// +// TPM 1.2: The TPM hardware device reported a failure during its internal self test. Try restarting the computer to resolve the problem. If the problem continues, check for the latest BIOS or firmware update for your TPM hardware. Consult the computer manufacturer's documentation for instructions. +// +#define TPM_E_FAILEDSELFTEST _HRESULT_TYPEDEF_(0x8028001CL) + +// +// MessageId: TPM_E_AUTH2FAIL +// +// MessageText: +// +// TPM 1.2: The authorization for the second key in a 2 key function failed authorization. +// +#define TPM_E_AUTH2FAIL _HRESULT_TYPEDEF_(0x8028001DL) + +// +// MessageId: TPM_E_BADTAG +// +// MessageText: +// +// TPM 1.2: The tag value sent to for a command is invalid. +// +#define TPM_E_BADTAG _HRESULT_TYPEDEF_(0x8028001EL) + +// +// MessageId: TPM_E_IOERROR +// +// MessageText: +// +// TPM 1.2: An IO error occurred transmitting information to the TPM. +// +#define TPM_E_IOERROR _HRESULT_TYPEDEF_(0x8028001FL) + +// +// MessageId: TPM_E_ENCRYPT_ERROR +// +// MessageText: +// +// TPM 1.2: The encryption process had a problem. +// +#define TPM_E_ENCRYPT_ERROR _HRESULT_TYPEDEF_(0x80280020L) + +// +// MessageId: TPM_E_DECRYPT_ERROR +// +// MessageText: +// +// TPM 1.2: The decryption process did not complete. +// +#define TPM_E_DECRYPT_ERROR _HRESULT_TYPEDEF_(0x80280021L) + +// +// MessageId: TPM_E_INVALID_AUTHHANDLE +// +// MessageText: +// +// TPM 1.2: An invalid handle was used. +// +#define TPM_E_INVALID_AUTHHANDLE _HRESULT_TYPEDEF_(0x80280022L) + +// +// MessageId: TPM_E_NO_ENDORSEMENT +// +// MessageText: +// +// TPM 1.2: The TPM does not have an Endorsement Key (EK) installed. +// +#define TPM_E_NO_ENDORSEMENT _HRESULT_TYPEDEF_(0x80280023L) + +// +// MessageId: TPM_E_INVALID_KEYUSAGE +// +// MessageText: +// +// TPM 1.2: The usage of a key is not allowed. +// +#define TPM_E_INVALID_KEYUSAGE _HRESULT_TYPEDEF_(0x80280024L) + +// +// MessageId: TPM_E_WRONG_ENTITYTYPE +// +// MessageText: +// +// TPM 1.2: The submitted entity type is not allowed. +// +#define TPM_E_WRONG_ENTITYTYPE _HRESULT_TYPEDEF_(0x80280025L) + +// +// MessageId: TPM_E_INVALID_POSTINIT +// +// MessageText: +// +// TPM 1.2: The command was received in the wrong sequence relative to TPM_Init and a subsequent TPM_Startup. +// +#define TPM_E_INVALID_POSTINIT _HRESULT_TYPEDEF_(0x80280026L) + +// +// MessageId: TPM_E_INAPPROPRIATE_SIG +// +// MessageText: +// +// TPM 1.2: Signed data cannot include additional DER information. +// +#define TPM_E_INAPPROPRIATE_SIG _HRESULT_TYPEDEF_(0x80280027L) + +// +// MessageId: TPM_E_BAD_KEY_PROPERTY +// +// MessageText: +// +// TPM 1.2: The key properties in TPM_KEY_PARMs are not supported by this TPM. +// +#define TPM_E_BAD_KEY_PROPERTY _HRESULT_TYPEDEF_(0x80280028L) + +// +// MessageId: TPM_E_BAD_MIGRATION +// +// MessageText: +// +// TPM 1.2: The migration properties of this key are incorrect. +// +#define TPM_E_BAD_MIGRATION _HRESULT_TYPEDEF_(0x80280029L) + +// +// MessageId: TPM_E_BAD_SCHEME +// +// MessageText: +// +// TPM 1.2: The signature or encryption scheme for this key is incorrect or not permitted in this situation. +// +#define TPM_E_BAD_SCHEME _HRESULT_TYPEDEF_(0x8028002AL) + +// +// MessageId: TPM_E_BAD_DATASIZE +// +// MessageText: +// +// TPM 1.2: The size of the data (or blob) parameter is bad or inconsistent with the referenced key. +// +#define TPM_E_BAD_DATASIZE _HRESULT_TYPEDEF_(0x8028002BL) + +// +// MessageId: TPM_E_BAD_MODE +// +// MessageText: +// +// TPM 1.2: A mode parameter is bad, such as capArea or subCapArea for TPM_GetCapability, phsicalPresence parameter for TPM_PhysicalPresence, or migrationType for TPM_CreateMigrationBlob. +// +#define TPM_E_BAD_MODE _HRESULT_TYPEDEF_(0x8028002CL) + +// +// MessageId: TPM_E_BAD_PRESENCE +// +// MessageText: +// +// TPM 1.2: Either the physicalPresence or physicalPresenceLock bits have the wrong value. +// +#define TPM_E_BAD_PRESENCE _HRESULT_TYPEDEF_(0x8028002DL) + +// +// MessageId: TPM_E_BAD_VERSION +// +// MessageText: +// +// TPM 1.2: The TPM cannot perform this version of the capability. +// +#define TPM_E_BAD_VERSION _HRESULT_TYPEDEF_(0x8028002EL) + +// +// MessageId: TPM_E_NO_WRAP_TRANSPORT +// +// MessageText: +// +// TPM 1.2: The TPM does not allow for wrapped transport sessions. +// +#define TPM_E_NO_WRAP_TRANSPORT _HRESULT_TYPEDEF_(0x8028002FL) + +// +// MessageId: TPM_E_AUDITFAIL_UNSUCCESSFUL +// +// MessageText: +// +// TPM 1.2: TPM audit construction failed and the underlying command was returning a failure code also. +// +#define TPM_E_AUDITFAIL_UNSUCCESSFUL _HRESULT_TYPEDEF_(0x80280030L) + +// +// MessageId: TPM_E_AUDITFAIL_SUCCESSFUL +// +// MessageText: +// +// TPM 1.2: TPM audit construction failed and the underlying command was returning success. +// +#define TPM_E_AUDITFAIL_SUCCESSFUL _HRESULT_TYPEDEF_(0x80280031L) + +// +// MessageId: TPM_E_NOTRESETABLE +// +// MessageText: +// +// TPM 1.2: Attempt to reset a PCR register that does not have the resettable attribute. +// +#define TPM_E_NOTRESETABLE _HRESULT_TYPEDEF_(0x80280032L) + +// +// MessageId: TPM_E_NOTLOCAL +// +// MessageText: +// +// TPM 1.2: Attempt to reset a PCR register that requires locality and locality modifier not part of command transport. +// +#define TPM_E_NOTLOCAL _HRESULT_TYPEDEF_(0x80280033L) + +// +// MessageId: TPM_E_BAD_TYPE +// +// MessageText: +// +// TPM 1.2: Make identity blob not properly typed. +// +#define TPM_E_BAD_TYPE _HRESULT_TYPEDEF_(0x80280034L) + +// +// MessageId: TPM_E_INVALID_RESOURCE +// +// MessageText: +// +// TPM 1.2: When saving context identified resource type does not match actual resource. +// +#define TPM_E_INVALID_RESOURCE _HRESULT_TYPEDEF_(0x80280035L) + +// +// MessageId: TPM_E_NOTFIPS +// +// MessageText: +// +// TPM 1.2: The TPM is attempting to execute a command that is not allowed when in FIPS mode. +// +#define TPM_E_NOTFIPS _HRESULT_TYPEDEF_(0x80280036L) + +// +// MessageId: TPM_E_INVALID_FAMILY +// +// MessageText: +// +// TPM 1.2: The command is attempting to use an invalid family ID. +// +#define TPM_E_INVALID_FAMILY _HRESULT_TYPEDEF_(0x80280037L) + +// +// MessageId: TPM_E_NO_NV_PERMISSION +// +// MessageText: +// +// TPM 1.2: The permission to manipulate the NV storage is not available. +// +#define TPM_E_NO_NV_PERMISSION _HRESULT_TYPEDEF_(0x80280038L) + +// +// MessageId: TPM_E_REQUIRES_SIGN +// +// MessageText: +// +// TPM 1.2: The operation requires a signed command. +// +#define TPM_E_REQUIRES_SIGN _HRESULT_TYPEDEF_(0x80280039L) + +// +// MessageId: TPM_E_KEY_NOTSUPPORTED +// +// MessageText: +// +// TPM 1.2: Wrong operation to load an NV key. +// +#define TPM_E_KEY_NOTSUPPORTED _HRESULT_TYPEDEF_(0x8028003AL) + +// +// MessageId: TPM_E_AUTH_CONFLICT +// +// MessageText: +// +// TPM 1.2: NV_LoadKey blob requires both owner and blob authorization. +// +#define TPM_E_AUTH_CONFLICT _HRESULT_TYPEDEF_(0x8028003BL) + +// +// MessageId: TPM_E_AREA_LOCKED +// +// MessageText: +// +// TPM 1.2: The NV area is locked and not writable. +// +#define TPM_E_AREA_LOCKED _HRESULT_TYPEDEF_(0x8028003CL) + +// +// MessageId: TPM_E_BAD_LOCALITY +// +// MessageText: +// +// TPM 1.2: The locality is incorrect for the attempted operation. +// +#define TPM_E_BAD_LOCALITY _HRESULT_TYPEDEF_(0x8028003DL) + +// +// MessageId: TPM_E_READ_ONLY +// +// MessageText: +// +// TPM 1.2: The NV area is read only and can't be written to. +// +#define TPM_E_READ_ONLY _HRESULT_TYPEDEF_(0x8028003EL) + +// +// MessageId: TPM_E_PER_NOWRITE +// +// MessageText: +// +// TPM 1.2: There is no protection on the write to the NV area. +// +#define TPM_E_PER_NOWRITE _HRESULT_TYPEDEF_(0x8028003FL) + +// +// MessageId: TPM_E_FAMILYCOUNT +// +// MessageText: +// +// TPM 1.2: The family count value does not match. +// +#define TPM_E_FAMILYCOUNT _HRESULT_TYPEDEF_(0x80280040L) + +// +// MessageId: TPM_E_WRITE_LOCKED +// +// MessageText: +// +// TPM 1.2: The NV area has already been written to. +// +#define TPM_E_WRITE_LOCKED _HRESULT_TYPEDEF_(0x80280041L) + +// +// MessageId: TPM_E_BAD_ATTRIBUTES +// +// MessageText: +// +// TPM 1.2: The NV area attributes conflict. +// +#define TPM_E_BAD_ATTRIBUTES _HRESULT_TYPEDEF_(0x80280042L) + +// +// MessageId: TPM_E_INVALID_STRUCTURE +// +// MessageText: +// +// TPM 1.2: The structure tag and version are invalid or inconsistent. +// +#define TPM_E_INVALID_STRUCTURE _HRESULT_TYPEDEF_(0x80280043L) + +// +// MessageId: TPM_E_KEY_OWNER_CONTROL +// +// MessageText: +// +// TPM 1.2: The key is under control of the TPM Owner and can only be evicted by the TPM Owner. +// +#define TPM_E_KEY_OWNER_CONTROL _HRESULT_TYPEDEF_(0x80280044L) + +// +// MessageId: TPM_E_BAD_COUNTER +// +// MessageText: +// +// TPM 1.2: The counter handle is incorrect. +// +#define TPM_E_BAD_COUNTER _HRESULT_TYPEDEF_(0x80280045L) + +// +// MessageId: TPM_E_NOT_FULLWRITE +// +// MessageText: +// +// TPM 1.2: The write is not a complete write of the area. +// +#define TPM_E_NOT_FULLWRITE _HRESULT_TYPEDEF_(0x80280046L) + +// +// MessageId: TPM_E_CONTEXT_GAP +// +// MessageText: +// +// TPM 1.2: The gap between saved context counts is too large. +// +#define TPM_E_CONTEXT_GAP _HRESULT_TYPEDEF_(0x80280047L) + +// +// MessageId: TPM_E_MAXNVWRITES +// +// MessageText: +// +// TPM 1.2: The maximum number of NV writes without an owner has been exceeded. +// +#define TPM_E_MAXNVWRITES _HRESULT_TYPEDEF_(0x80280048L) + +// +// MessageId: TPM_E_NOOPERATOR +// +// MessageText: +// +// TPM 1.2: No operator AuthData value is set. +// +#define TPM_E_NOOPERATOR _HRESULT_TYPEDEF_(0x80280049L) + +// +// MessageId: TPM_E_RESOURCEMISSING +// +// MessageText: +// +// TPM 1.2: The resource pointed to by context is not loaded. +// +#define TPM_E_RESOURCEMISSING _HRESULT_TYPEDEF_(0x8028004AL) + +// +// MessageId: TPM_E_DELEGATE_LOCK +// +// MessageText: +// +// TPM 1.2: The delegate administration is locked. +// +#define TPM_E_DELEGATE_LOCK _HRESULT_TYPEDEF_(0x8028004BL) + +// +// MessageId: TPM_E_DELEGATE_FAMILY +// +// MessageText: +// +// TPM 1.2: Attempt to manage a family other then the delegated family. +// +#define TPM_E_DELEGATE_FAMILY _HRESULT_TYPEDEF_(0x8028004CL) + +// +// MessageId: TPM_E_DELEGATE_ADMIN +// +// MessageText: +// +// TPM 1.2: Delegation table management not enabled. +// +#define TPM_E_DELEGATE_ADMIN _HRESULT_TYPEDEF_(0x8028004DL) + +// +// MessageId: TPM_E_TRANSPORT_NOTEXCLUSIVE +// +// MessageText: +// +// TPM 1.2: There was a command executed outside of an exclusive transport session. +// +#define TPM_E_TRANSPORT_NOTEXCLUSIVE _HRESULT_TYPEDEF_(0x8028004EL) + +// +// MessageId: TPM_E_OWNER_CONTROL +// +// MessageText: +// +// TPM 1.2: Attempt to context save a owner evict controlled key. +// +#define TPM_E_OWNER_CONTROL _HRESULT_TYPEDEF_(0x8028004FL) + +// +// MessageId: TPM_E_DAA_RESOURCES +// +// MessageText: +// +// TPM 1.2: The DAA command has no resources available to execute the command. +// +#define TPM_E_DAA_RESOURCES _HRESULT_TYPEDEF_(0x80280050L) + +// +// MessageId: TPM_E_DAA_INPUT_DATA0 +// +// MessageText: +// +// TPM 1.2: The consistency check on DAA parameter inputData0 has failed. +// +#define TPM_E_DAA_INPUT_DATA0 _HRESULT_TYPEDEF_(0x80280051L) + +// +// MessageId: TPM_E_DAA_INPUT_DATA1 +// +// MessageText: +// +// TPM 1.2: The consistency check on DAA parameter inputData1 has failed. +// +#define TPM_E_DAA_INPUT_DATA1 _HRESULT_TYPEDEF_(0x80280052L) + +// +// MessageId: TPM_E_DAA_ISSUER_SETTINGS +// +// MessageText: +// +// TPM 1.2: The consistency check on DAA_issuerSettings has failed. +// +#define TPM_E_DAA_ISSUER_SETTINGS _HRESULT_TYPEDEF_(0x80280053L) + +// +// MessageId: TPM_E_DAA_TPM_SETTINGS +// +// MessageText: +// +// TPM 1.2: The consistency check on DAA_tpmSpecific has failed. +// +#define TPM_E_DAA_TPM_SETTINGS _HRESULT_TYPEDEF_(0x80280054L) + +// +// MessageId: TPM_E_DAA_STAGE +// +// MessageText: +// +// TPM 1.2: The atomic process indicated by the submitted DAA command is not the expected process. +// +#define TPM_E_DAA_STAGE _HRESULT_TYPEDEF_(0x80280055L) + +// +// MessageId: TPM_E_DAA_ISSUER_VALIDITY +// +// MessageText: +// +// TPM 1.2: The issuer's validity check has detected an inconsistency. +// +#define TPM_E_DAA_ISSUER_VALIDITY _HRESULT_TYPEDEF_(0x80280056L) + +// +// MessageId: TPM_E_DAA_WRONG_W +// +// MessageText: +// +// TPM 1.2: The consistency check on w has failed. +// +#define TPM_E_DAA_WRONG_W _HRESULT_TYPEDEF_(0x80280057L) + +// +// MessageId: TPM_E_BAD_HANDLE +// +// MessageText: +// +// TPM 1.2: The handle is incorrect. +// +#define TPM_E_BAD_HANDLE _HRESULT_TYPEDEF_(0x80280058L) + +// +// MessageId: TPM_E_BAD_DELEGATE +// +// MessageText: +// +// TPM 1.2: Delegation is not correct. +// +#define TPM_E_BAD_DELEGATE _HRESULT_TYPEDEF_(0x80280059L) + +// +// MessageId: TPM_E_BADCONTEXT +// +// MessageText: +// +// TPM 1.2: The context blob is invalid. +// +#define TPM_E_BADCONTEXT _HRESULT_TYPEDEF_(0x8028005AL) + +// +// MessageId: TPM_E_TOOMANYCONTEXTS +// +// MessageText: +// +// TPM 1.2: Too many contexts held by the TPM. +// +#define TPM_E_TOOMANYCONTEXTS _HRESULT_TYPEDEF_(0x8028005BL) + +// +// MessageId: TPM_E_MA_TICKET_SIGNATURE +// +// MessageText: +// +// TPM 1.2: Migration authority signature validation failure. +// +#define TPM_E_MA_TICKET_SIGNATURE _HRESULT_TYPEDEF_(0x8028005CL) + +// +// MessageId: TPM_E_MA_DESTINATION +// +// MessageText: +// +// TPM 1.2: Migration destination not authenticated. +// +#define TPM_E_MA_DESTINATION _HRESULT_TYPEDEF_(0x8028005DL) + +// +// MessageId: TPM_E_MA_SOURCE +// +// MessageText: +// +// TPM 1.2: Migration source incorrect. +// +#define TPM_E_MA_SOURCE _HRESULT_TYPEDEF_(0x8028005EL) + +// +// MessageId: TPM_E_MA_AUTHORITY +// +// MessageText: +// +// TPM 1.2: Incorrect migration authority. +// +#define TPM_E_MA_AUTHORITY _HRESULT_TYPEDEF_(0x8028005FL) + +// +// MessageId: TPM_E_PERMANENTEK +// +// MessageText: +// +// TPM 1.2: Attempt to revoke the EK and the EK is not revocable. +// +#define TPM_E_PERMANENTEK _HRESULT_TYPEDEF_(0x80280061L) + +// +// MessageId: TPM_E_BAD_SIGNATURE +// +// MessageText: +// +// TPM 1.2: Bad signature of CMK ticket. +// +#define TPM_E_BAD_SIGNATURE _HRESULT_TYPEDEF_(0x80280062L) + +// +// MessageId: TPM_E_NOCONTEXTSPACE +// +// MessageText: +// +// TPM 1.2: There is no room in the context list for additional contexts. +// +#define TPM_E_NOCONTEXTSPACE _HRESULT_TYPEDEF_(0x80280063L) + +// +// MessageId: TPM_20_E_ASYMMETRIC +// +// MessageText: +// +// TPM 2.0: Asymmetric algorithm not supported or not correct. +// +#define TPM_20_E_ASYMMETRIC _HRESULT_TYPEDEF_(0x80280081L) + +// +// MessageId: TPM_20_E_ATTRIBUTES +// +// MessageText: +// +// TPM 2.0: Inconsistent attributes. +// +#define TPM_20_E_ATTRIBUTES _HRESULT_TYPEDEF_(0x80280082L) + +// +// MessageId: TPM_20_E_HASH +// +// MessageText: +// +// TPM 2.0: Hash algorithm not supported or not appropriate. +// +#define TPM_20_E_HASH _HRESULT_TYPEDEF_(0x80280083L) + +// +// MessageId: TPM_20_E_VALUE +// +// MessageText: +// +// TPM 2.0: Value is out of range or is not correct for the context. +// +#define TPM_20_E_VALUE _HRESULT_TYPEDEF_(0x80280084L) + +// +// MessageId: TPM_20_E_HIERARCHY +// +// MessageText: +// +// TPM 2.0: Hierarchy is not enabled or is not correct for the use. +// +#define TPM_20_E_HIERARCHY _HRESULT_TYPEDEF_(0x80280085L) + +// +// MessageId: TPM_20_E_KEY_SIZE +// +// MessageText: +// +// TPM 2.0: Key size is not supported. +// +#define TPM_20_E_KEY_SIZE _HRESULT_TYPEDEF_(0x80280087L) + +// +// MessageId: TPM_20_E_MGF +// +// MessageText: +// +// TPM 2.0: Mask generation function not supported. +// +#define TPM_20_E_MGF _HRESULT_TYPEDEF_(0x80280088L) + +// +// MessageId: TPM_20_E_MODE +// +// MessageText: +// +// TPM 2.0: Mode of operation not supported. +// +#define TPM_20_E_MODE _HRESULT_TYPEDEF_(0x80280089L) + +// +// MessageId: TPM_20_E_TYPE +// +// MessageText: +// +// TPM 2.0: The type of the value is not appropriate for the use. +// +#define TPM_20_E_TYPE _HRESULT_TYPEDEF_(0x8028008AL) + +// +// MessageId: TPM_20_E_HANDLE +// +// MessageText: +// +// TPM 2.0: The Handle is not correct for the use. +// +#define TPM_20_E_HANDLE _HRESULT_TYPEDEF_(0x8028008BL) + +// +// MessageId: TPM_20_E_KDF +// +// MessageText: +// +// TPM 2.0: Unsupported key derivation function or function not appropriate for use. +// +#define TPM_20_E_KDF _HRESULT_TYPEDEF_(0x8028008CL) + +// +// MessageId: TPM_20_E_RANGE +// +// MessageText: +// +// TPM 2.0: Value was out of allowed range. +// +#define TPM_20_E_RANGE _HRESULT_TYPEDEF_(0x8028008DL) + +// +// MessageId: TPM_20_E_AUTH_FAIL +// +// MessageText: +// +// TPM 2.0: The authorization HMAC check failed and DA counter incremented. +// +#define TPM_20_E_AUTH_FAIL _HRESULT_TYPEDEF_(0x8028008EL) + +// +// MessageId: TPM_20_E_NONCE +// +// MessageText: +// +// TPM 2.0: Invalid nonce size. +// +#define TPM_20_E_NONCE _HRESULT_TYPEDEF_(0x8028008FL) + +// +// MessageId: TPM_20_E_PP +// +// MessageText: +// +// TPM 2.0: Authorization requires assertion of PP. +// +#define TPM_20_E_PP _HRESULT_TYPEDEF_(0x80280090L) + +// +// MessageId: TPM_20_E_SCHEME +// +// MessageText: +// +// TPM 2.0: Unsupported or incompatible scheme. +// +#define TPM_20_E_SCHEME _HRESULT_TYPEDEF_(0x80280092L) + +// +// MessageId: TPM_20_E_SIZE +// +// MessageText: +// +// TPM 2.0: Structure is wrong size. +// +#define TPM_20_E_SIZE _HRESULT_TYPEDEF_(0x80280095L) + +// +// MessageId: TPM_20_E_SYMMETRIC +// +// MessageText: +// +// TPM 2.0: Unsupported symmetric algorithm or key size, or not appropriate for instance. +// +#define TPM_20_E_SYMMETRIC _HRESULT_TYPEDEF_(0x80280096L) + +// +// MessageId: TPM_20_E_TAG +// +// MessageText: +// +// TPM 2.0: Incorrect structure tag. +// +#define TPM_20_E_TAG _HRESULT_TYPEDEF_(0x80280097L) + +// +// MessageId: TPM_20_E_SELECTOR +// +// MessageText: +// +// TPM 2.0: Union selector is incorrect. +// +#define TPM_20_E_SELECTOR _HRESULT_TYPEDEF_(0x80280098L) + +// +// MessageId: TPM_20_E_INSUFFICIENT +// +// MessageText: +// +// TPM 2.0: The TPM was unable to unmarshal a value because there were not enough octets in the input buffer. +// +#define TPM_20_E_INSUFFICIENT _HRESULT_TYPEDEF_(0x8028009AL) + +// +// MessageId: TPM_20_E_SIGNATURE +// +// MessageText: +// +// TPM 2.0: The signature is not valid. +// +#define TPM_20_E_SIGNATURE _HRESULT_TYPEDEF_(0x8028009BL) + +// +// MessageId: TPM_20_E_KEY +// +// MessageText: +// +// TPM 2.0: Key fields are not compatible with the selected use. +// +#define TPM_20_E_KEY _HRESULT_TYPEDEF_(0x8028009CL) + +// +// MessageId: TPM_20_E_POLICY_FAIL +// +// MessageText: +// +// TPM 2.0: A policy check failed. +// +#define TPM_20_E_POLICY_FAIL _HRESULT_TYPEDEF_(0x8028009DL) + +// +// MessageId: TPM_20_E_INTEGRITY +// +// MessageText: +// +// TPM 2.0: Integrity check failed. +// +#define TPM_20_E_INTEGRITY _HRESULT_TYPEDEF_(0x8028009FL) + +// +// MessageId: TPM_20_E_TICKET +// +// MessageText: +// +// TPM 2.0: Invalid ticket. +// +#define TPM_20_E_TICKET _HRESULT_TYPEDEF_(0x802800A0L) + +// +// MessageId: TPM_20_E_RESERVED_BITS +// +// MessageText: +// +// TPM 2.0: Reserved bits not set to zero as required. +// +#define TPM_20_E_RESERVED_BITS _HRESULT_TYPEDEF_(0x802800A1L) + +// +// MessageId: TPM_20_E_BAD_AUTH +// +// MessageText: +// +// TPM 2.0: Authorization failure without DA implications. +// +#define TPM_20_E_BAD_AUTH _HRESULT_TYPEDEF_(0x802800A2L) + +// +// MessageId: TPM_20_E_EXPIRED +// +// MessageText: +// +// TPM 2.0: The policy has expired. +// +#define TPM_20_E_EXPIRED _HRESULT_TYPEDEF_(0x802800A3L) + +// +// MessageId: TPM_20_E_POLICY_CC +// +// MessageText: +// +// TPM 2.0: The command code in the policy is not the command code of the command or the command code in a policy command references a command that is not implemented. +// +#define TPM_20_E_POLICY_CC _HRESULT_TYPEDEF_(0x802800A4L) + +// +// MessageId: TPM_20_E_BINDING +// +// MessageText: +// +// TPM 2.0: Public and sensitive portions of an object are not cryptographically bound. +// +#define TPM_20_E_BINDING _HRESULT_TYPEDEF_(0x802800A5L) + +// +// MessageId: TPM_20_E_CURVE +// +// MessageText: +// +// TPM 2.0: Curve not supported. +// +#define TPM_20_E_CURVE _HRESULT_TYPEDEF_(0x802800A6L) + +// +// MessageId: TPM_20_E_ECC_POINT +// +// MessageText: +// +// TPM 2.0: Point is not on the required curve. +// +#define TPM_20_E_ECC_POINT _HRESULT_TYPEDEF_(0x802800A7L) + +// +// MessageId: TPM_20_E_INITIALIZE +// +// MessageText: +// +// TPM 2.0: TPM not initialized. +// +#define TPM_20_E_INITIALIZE _HRESULT_TYPEDEF_(0x80280100L) + +// +// MessageId: TPM_20_E_FAILURE +// +// MessageText: +// +// TPM 2.0: Commands not being accepted because of a TPM failure. +// +#define TPM_20_E_FAILURE _HRESULT_TYPEDEF_(0x80280101L) + +// +// MessageId: TPM_20_E_SEQUENCE +// +// MessageText: +// +// TPM 2.0: Improper use of a sequence handle. +// +#define TPM_20_E_SEQUENCE _HRESULT_TYPEDEF_(0x80280103L) + +// +// MessageId: TPM_20_E_PRIVATE +// +// MessageText: +// +// TPM 2.0: TPM_RC_PRIVATE error. +// +#define TPM_20_E_PRIVATE _HRESULT_TYPEDEF_(0x8028010BL) + +// +// MessageId: TPM_20_E_HMAC +// +// MessageText: +// +// TPM 2.0: TPM_RC_HMAC. +// +#define TPM_20_E_HMAC _HRESULT_TYPEDEF_(0x80280119L) + +// +// MessageId: TPM_20_E_DISABLED +// +// MessageText: +// +// TPM 2.0: TPM_RC_DISABLED. +// +#define TPM_20_E_DISABLED _HRESULT_TYPEDEF_(0x80280120L) + +// +// MessageId: TPM_20_E_EXCLUSIVE +// +// MessageText: +// +// TPM 2.0: Command failed because audit sequence required exclusivity. +// +#define TPM_20_E_EXCLUSIVE _HRESULT_TYPEDEF_(0x80280121L) + +// +// MessageId: TPM_20_E_ECC_CURVE +// +// MessageText: +// +// TPM 2.0: Unsupported ECC curve. +// +#define TPM_20_E_ECC_CURVE _HRESULT_TYPEDEF_(0x80280123L) + +// +// MessageId: TPM_20_E_AUTH_TYPE +// +// MessageText: +// +// TPM 2.0: Authorization handle is not correct for command. +// +#define TPM_20_E_AUTH_TYPE _HRESULT_TYPEDEF_(0x80280124L) + +// +// MessageId: TPM_20_E_AUTH_MISSING +// +// MessageText: +// +// TPM 2.0: Command requires an authorization session for handle and is not present. +// +#define TPM_20_E_AUTH_MISSING _HRESULT_TYPEDEF_(0x80280125L) + +// +// MessageId: TPM_20_E_POLICY +// +// MessageText: +// +// TPM 2.0: Policy failure in Math Operation or an invalid authPolicy value. +// +#define TPM_20_E_POLICY _HRESULT_TYPEDEF_(0x80280126L) + +// +// MessageId: TPM_20_E_PCR +// +// MessageText: +// +// TPM 2.0: PCR check fail. +// +#define TPM_20_E_PCR _HRESULT_TYPEDEF_(0x80280127L) + +// +// MessageId: TPM_20_E_PCR_CHANGED +// +// MessageText: +// +// TPM 2.0: PCR have changed since checked. +// +#define TPM_20_E_PCR_CHANGED _HRESULT_TYPEDEF_(0x80280128L) + +// +// MessageId: TPM_20_E_UPGRADE +// +// MessageText: +// +// TPM 2.0: The TPM is not in the right mode for upgrade. +// +#define TPM_20_E_UPGRADE _HRESULT_TYPEDEF_(0x8028012DL) + +// +// MessageId: TPM_20_E_TOO_MANY_CONTEXTS +// +// MessageText: +// +// TPM 2.0: Context ID counter is at maximum. +// +#define TPM_20_E_TOO_MANY_CONTEXTS _HRESULT_TYPEDEF_(0x8028012EL) + +// +// MessageId: TPM_20_E_AUTH_UNAVAILABLE +// +// MessageText: +// +// TPM 2.0: authValue or authPolicy is not available for selected entity. +// +#define TPM_20_E_AUTH_UNAVAILABLE _HRESULT_TYPEDEF_(0x8028012FL) + +// +// MessageId: TPM_20_E_REBOOT +// +// MessageText: +// +// TPM 2.0: A _TPM_Init and Startup(CLEAR) is required before the TPM can resume operation. +// +#define TPM_20_E_REBOOT _HRESULT_TYPEDEF_(0x80280130L) + +// +// MessageId: TPM_20_E_UNBALANCED +// +// MessageText: +// +// TPM 2.0: The protection algorithms (hash and symmetric) are not reasonably balanced. The digest size of the hash must be larger than the key size of the symmetric algorithm. +// +#define TPM_20_E_UNBALANCED _HRESULT_TYPEDEF_(0x80280131L) + +// +// MessageId: TPM_20_E_COMMAND_SIZE +// +// MessageText: +// +// TPM 2.0: The TPM command's commandSize value is inconsistent with contents of the command buffer; either the size is not the same as the bytes loaded by the hardware interface layer or the value is not large enough to hold a command header. +// +#define TPM_20_E_COMMAND_SIZE _HRESULT_TYPEDEF_(0x80280142L) + +// +// MessageId: TPM_20_E_COMMAND_CODE +// +// MessageText: +// +// TPM 2.0: Command code not supported. +// +#define TPM_20_E_COMMAND_CODE _HRESULT_TYPEDEF_(0x80280143L) + +// +// MessageId: TPM_20_E_AUTHSIZE +// +// MessageText: +// +// TPM 2.0: The value of authorizationSize is out of range or the number of octets in the authorization Area is greater than required. +// +#define TPM_20_E_AUTHSIZE _HRESULT_TYPEDEF_(0x80280144L) + +// +// MessageId: TPM_20_E_AUTH_CONTEXT +// +// MessageText: +// +// TPM 2.0: Use of an authorization session with a context command or another command that cannot have an authorization session. +// +#define TPM_20_E_AUTH_CONTEXT _HRESULT_TYPEDEF_(0x80280145L) + +// +// MessageId: TPM_20_E_NV_RANGE +// +// MessageText: +// +// TPM 2.0: NV offset+size is out of range. +// +#define TPM_20_E_NV_RANGE _HRESULT_TYPEDEF_(0x80280146L) + +// +// MessageId: TPM_20_E_NV_SIZE +// +// MessageText: +// +// TPM 2.0: Requested allocation size is larger than allowed. +// +#define TPM_20_E_NV_SIZE _HRESULT_TYPEDEF_(0x80280147L) + +// +// MessageId: TPM_20_E_NV_LOCKED +// +// MessageText: +// +// TPM 2.0: NV access locked. +// +#define TPM_20_E_NV_LOCKED _HRESULT_TYPEDEF_(0x80280148L) + +// +// MessageId: TPM_20_E_NV_AUTHORIZATION +// +// MessageText: +// +// TPM 2.0: NV access authorization fails in command actions +// +#define TPM_20_E_NV_AUTHORIZATION _HRESULT_TYPEDEF_(0x80280149L) + +// +// MessageId: TPM_20_E_NV_UNINITIALIZED +// +// MessageText: +// +// TPM 2.0: An NV index is used before being initialized or the state saved by TPM2_Shutdown(STATE) could not be restored. +// +#define TPM_20_E_NV_UNINITIALIZED _HRESULT_TYPEDEF_(0x8028014AL) + +// +// MessageId: TPM_20_E_NV_SPACE +// +// MessageText: +// +// TPM 2.0: Insufficient space for NV allocation. +// +#define TPM_20_E_NV_SPACE _HRESULT_TYPEDEF_(0x8028014BL) + +// +// MessageId: TPM_20_E_NV_DEFINED +// +// MessageText: +// +// TPM 2.0: NV index or persistent object already defined. +// +#define TPM_20_E_NV_DEFINED _HRESULT_TYPEDEF_(0x8028014CL) + +// +// MessageId: TPM_20_E_BAD_CONTEXT +// +// MessageText: +// +// TPM 2.0: Context in TPM2_ContextLoad() is not valid. +// +#define TPM_20_E_BAD_CONTEXT _HRESULT_TYPEDEF_(0x80280150L) + +// +// MessageId: TPM_20_E_CPHASH +// +// MessageText: +// +// TPM 2.0: chHash value already set or not correct for use. +// +#define TPM_20_E_CPHASH _HRESULT_TYPEDEF_(0x80280151L) + +// +// MessageId: TPM_20_E_PARENT +// +// MessageText: +// +// TPM 2.0: Handle for parent is not a valid parent. +// +#define TPM_20_E_PARENT _HRESULT_TYPEDEF_(0x80280152L) + +// +// MessageId: TPM_20_E_NEEDS_TEST +// +// MessageText: +// +// TPM 2.0: Some function needs testing. +// +#define TPM_20_E_NEEDS_TEST _HRESULT_TYPEDEF_(0x80280153L) + +// +// MessageId: TPM_20_E_NO_RESULT +// +// MessageText: +// +// TPM 2.0: returned when an internal function cannot process a request due to an unspecified problem. This code is usually related to invalid parameters that are not properly filtered by the input unmarshaling code. +// +#define TPM_20_E_NO_RESULT _HRESULT_TYPEDEF_(0x80280154L) + +// +// MessageId: TPM_20_E_SENSITIVE +// +// MessageText: +// +// TPM 2.0: The sensitive area did not unmarshal correctly after decryption - this code is used in lieu of the other unmarshaling errors so that an attacker cannot determine where the unmarshaling error occurred. +// +#define TPM_20_E_SENSITIVE _HRESULT_TYPEDEF_(0x80280155L) + +// +// TPM vendor specific hardware errors {0x0400..0x04ff} +// +// +// MessageId: TPM_E_COMMAND_BLOCKED +// +// MessageText: +// +// The command was blocked. +// +#define TPM_E_COMMAND_BLOCKED _HRESULT_TYPEDEF_(0x80280400L) + +// +// MessageId: TPM_E_INVALID_HANDLE +// +// MessageText: +// +// The specified handle was not found. +// +#define TPM_E_INVALID_HANDLE _HRESULT_TYPEDEF_(0x80280401L) + +// +// MessageId: TPM_E_DUPLICATE_VHANDLE +// +// MessageText: +// +// The TPM returned a duplicate handle and the command needs to be resubmitted. +// +#define TPM_E_DUPLICATE_VHANDLE _HRESULT_TYPEDEF_(0x80280402L) + +// +// MessageId: TPM_E_EMBEDDED_COMMAND_BLOCKED +// +// MessageText: +// +// The command within the transport was blocked. +// +#define TPM_E_EMBEDDED_COMMAND_BLOCKED _HRESULT_TYPEDEF_(0x80280403L) + +// +// MessageId: TPM_E_EMBEDDED_COMMAND_UNSUPPORTED +// +// MessageText: +// +// The command within the transport is not supported. +// +#define TPM_E_EMBEDDED_COMMAND_UNSUPPORTED _HRESULT_TYPEDEF_(0x80280404L) + +// +// TPM non-fatal hardware errors {0x0800..0x08ff} +// +// +// MessageId: TPM_E_RETRY +// +// MessageText: +// +// The TPM is too busy to respond to the command immediately, but the command could be resubmitted at a later time. +// +#define TPM_E_RETRY _HRESULT_TYPEDEF_(0x80280800L) + +// +// MessageId: TPM_E_NEEDS_SELFTEST +// +// MessageText: +// +// SelfTestFull has not been run. +// +#define TPM_E_NEEDS_SELFTEST _HRESULT_TYPEDEF_(0x80280801L) + +// +// MessageId: TPM_E_DOING_SELFTEST +// +// MessageText: +// +// The TPM is currently executing a full selftest. +// +#define TPM_E_DOING_SELFTEST _HRESULT_TYPEDEF_(0x80280802L) + +// +// MessageId: TPM_E_DEFEND_LOCK_RUNNING +// +// MessageText: +// +// The TPM is defending against dictionary attacks and is in a time-out period. +// +#define TPM_E_DEFEND_LOCK_RUNNING _HRESULT_TYPEDEF_(0x80280803L) + +// +// MessageId: TPM_20_E_CONTEXT_GAP +// +// MessageText: +// +// TPM 2.0: Gap for context ID is too large. +// +#define TPM_20_E_CONTEXT_GAP _HRESULT_TYPEDEF_(0x80280901L) + +// +// MessageId: TPM_20_E_OBJECT_MEMORY +// +// MessageText: +// +// TPM 2.0: Out of memory for object contexts. +// +#define TPM_20_E_OBJECT_MEMORY _HRESULT_TYPEDEF_(0x80280902L) + +// +// MessageId: TPM_20_E_SESSION_MEMORY +// +// MessageText: +// +// TPM 2.0: Out of memory for session contexts. +// +#define TPM_20_E_SESSION_MEMORY _HRESULT_TYPEDEF_(0x80280903L) + +// +// MessageId: TPM_20_E_MEMORY +// +// MessageText: +// +// TPM 2.0: Out of shared object/session memory or need space for internal operations. +// +#define TPM_20_E_MEMORY _HRESULT_TYPEDEF_(0x80280904L) + +// +// MessageId: TPM_20_E_SESSION_HANDLES +// +// MessageText: +// +// TPM 2.0: Out of session handles - a session must be flushed before a nes session may be created. +// +#define TPM_20_E_SESSION_HANDLES _HRESULT_TYPEDEF_(0x80280905L) + +// +// MessageId: TPM_20_E_OBJECT_HANDLES +// +// MessageText: +// +// TPM 2.0: Out of object handles - the handle space for objects is depleted and a reboot is required. +// +#define TPM_20_E_OBJECT_HANDLES _HRESULT_TYPEDEF_(0x80280906L) + +// +// MessageId: TPM_20_E_LOCALITY +// +// MessageText: +// +// TPM 2.0: Bad locality. +// +#define TPM_20_E_LOCALITY _HRESULT_TYPEDEF_(0x80280907L) + +// +// MessageId: TPM_20_E_YIELDED +// +// MessageText: +// +// TPM 2.0: The TPM has suspended operation on the command; forward progress was made and the command may be retried. +// +#define TPM_20_E_YIELDED _HRESULT_TYPEDEF_(0x80280908L) + +// +// MessageId: TPM_20_E_CANCELED +// +// MessageText: +// +// TPM 2.0: The command was canceled. +// +#define TPM_20_E_CANCELED _HRESULT_TYPEDEF_(0x80280909L) + +// +// MessageId: TPM_20_E_TESTING +// +// MessageText: +// +// TPM 2.0: TPM is performing self-tests. +// +#define TPM_20_E_TESTING _HRESULT_TYPEDEF_(0x8028090AL) + +// +// MessageId: TPM_20_E_NV_RATE +// +// MessageText: +// +// TPM 2.0: The TPM is rate-limiting accesses to prevent wearout of NV +// +#define TPM_20_E_NV_RATE _HRESULT_TYPEDEF_(0x80280920L) + +// +// MessageId: TPM_20_E_LOCKOUT +// +// MessageText: +// +// TPM 2.0: Authorization for objects subject to DA protection are not allowed at this time because the TPM is in DA lockout mode. +// +#define TPM_20_E_LOCKOUT _HRESULT_TYPEDEF_(0x80280921L) + +// +// MessageId: TPM_20_E_RETRY +// +// MessageText: +// +// TPM 2.0: The TPM was not able to start the command. +// +#define TPM_20_E_RETRY _HRESULT_TYPEDEF_(0x80280922L) + +// +// MessageId: TPM_20_E_NV_UNAVAILABLE +// +// MessageText: +// +// TPM 2.0: the command may require writing of NV and NV is not current accessible. +// +#define TPM_20_E_NV_UNAVAILABLE _HRESULT_TYPEDEF_(0x80280923L) + +// +// TPM Base Services error codes {0x4000..0x40ff} +// +// +// MessageId: TBS_E_INTERNAL_ERROR +// +// MessageText: +// +// An internal error has occurred within the Trusted Platform Module support program. +// +#define TBS_E_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80284001L) + +// +// MessageId: TBS_E_BAD_PARAMETER +// +// MessageText: +// +// One or more input parameters is bad. +// +#define TBS_E_BAD_PARAMETER _HRESULT_TYPEDEF_(0x80284002L) + +// +// MessageId: TBS_E_INVALID_OUTPUT_POINTER +// +// MessageText: +// +// A specified output pointer is bad. +// +#define TBS_E_INVALID_OUTPUT_POINTER _HRESULT_TYPEDEF_(0x80284003L) + +// +// MessageId: TBS_E_INVALID_CONTEXT +// +// MessageText: +// +// The specified context handle does not refer to a valid context. +// +#define TBS_E_INVALID_CONTEXT _HRESULT_TYPEDEF_(0x80284004L) + +// +// MessageId: TBS_E_INSUFFICIENT_BUFFER +// +// MessageText: +// +// A specified output buffer is too small. +// +#define TBS_E_INSUFFICIENT_BUFFER _HRESULT_TYPEDEF_(0x80284005L) + +// +// MessageId: TBS_E_IOERROR +// +// MessageText: +// +// An error occurred while communicating with the TPM. +// +#define TBS_E_IOERROR _HRESULT_TYPEDEF_(0x80284006L) + +// +// MessageId: TBS_E_INVALID_CONTEXT_PARAM +// +// MessageText: +// +// One or more context parameters is invalid. +// +#define TBS_E_INVALID_CONTEXT_PARAM _HRESULT_TYPEDEF_(0x80284007L) + +// +// MessageId: TBS_E_SERVICE_NOT_RUNNING +// +// MessageText: +// +// The TBS service is not running and could not be started. +// +#define TBS_E_SERVICE_NOT_RUNNING _HRESULT_TYPEDEF_(0x80284008L) + +// +// MessageId: TBS_E_TOO_MANY_TBS_CONTEXTS +// +// MessageText: +// +// A new context could not be created because there are too many open contexts. +// +#define TBS_E_TOO_MANY_TBS_CONTEXTS _HRESULT_TYPEDEF_(0x80284009L) + +// +// MessageId: TBS_E_TOO_MANY_RESOURCES +// +// MessageText: +// +// A new virtual resource could not be created because there are too many open virtual resources. +// +#define TBS_E_TOO_MANY_RESOURCES _HRESULT_TYPEDEF_(0x8028400AL) + +// +// MessageId: TBS_E_SERVICE_START_PENDING +// +// MessageText: +// +// The TBS service has been started but is not yet running. +// +#define TBS_E_SERVICE_START_PENDING _HRESULT_TYPEDEF_(0x8028400BL) + +// +// MessageId: TBS_E_PPI_NOT_SUPPORTED +// +// MessageText: +// +// The physical presence interface is not supported. +// +#define TBS_E_PPI_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8028400CL) + +// +// MessageId: TBS_E_COMMAND_CANCELED +// +// MessageText: +// +// The command was canceled. +// +#define TBS_E_COMMAND_CANCELED _HRESULT_TYPEDEF_(0x8028400DL) + +// +// MessageId: TBS_E_BUFFER_TOO_LARGE +// +// MessageText: +// +// The input or output buffer is too large. +// +#define TBS_E_BUFFER_TOO_LARGE _HRESULT_TYPEDEF_(0x8028400EL) + +// +// MessageId: TBS_E_TPM_NOT_FOUND +// +// MessageText: +// +// A compatible Trusted Platform Module (TPM) Security Device cannot be found on this computer. +// +#define TBS_E_TPM_NOT_FOUND _HRESULT_TYPEDEF_(0x8028400FL) + +// +// MessageId: TBS_E_SERVICE_DISABLED +// +// MessageText: +// +// The TBS service has been disabled. +// +#define TBS_E_SERVICE_DISABLED _HRESULT_TYPEDEF_(0x80284010L) + +// +// MessageId: TBS_E_NO_EVENT_LOG +// +// MessageText: +// +// No TCG event log is available. +// +#define TBS_E_NO_EVENT_LOG _HRESULT_TYPEDEF_(0x80284011L) + +// +// MessageId: TBS_E_ACCESS_DENIED +// +// MessageText: +// +// The caller does not have the appropriate rights to perform the requested operation. +// +#define TBS_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x80284012L) + +// +// MessageId: TBS_E_PROVISIONING_NOT_ALLOWED +// +// MessageText: +// +// The TPM provisioning action is not allowed by the specified flags. For provisioning to be successful, one of several actions may be required. The TPM management console (tpm.msc) action to make the TPM Ready may help. For further information, see the documentation for the Win32_Tpm WMI method 'Provision'. (The actions that may be required include importing the TPM Owner Authorization value into the system, calling the Win32_Tpm WMI method for provisioning the TPM and specifying TRUE for either 'ForceClear_Allowed' or 'PhysicalPresencePrompts_Allowed' (as indicated by the value returned in the Additional Information), or enabling the TPM in the system BIOS.) +// +#define TBS_E_PROVISIONING_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80284013L) + +// +// MessageId: TBS_E_PPI_FUNCTION_UNSUPPORTED +// +// MessageText: +// +// The Physical Presence Interface of this firmware does not support the requested method. +// +#define TBS_E_PPI_FUNCTION_UNSUPPORTED _HRESULT_TYPEDEF_(0x80284014L) + +// +// MessageId: TBS_E_OWNERAUTH_NOT_FOUND +// +// MessageText: +// +// The requested TPM OwnerAuth value was not found. +// +#define TBS_E_OWNERAUTH_NOT_FOUND _HRESULT_TYPEDEF_(0x80284015L) + +// +// MessageId: TBS_E_PROVISIONING_INCOMPLETE +// +// MessageText: +// +// The TPM provisioning did not complete. For more information on completing the provisioning, call the Win32_Tpm WMI method for provisioning the TPM ('Provision') and check the returned Information. +// +#define TBS_E_PROVISIONING_INCOMPLETE _HRESULT_TYPEDEF_(0x80284016L) + +// +// MessageId: TBS_E_TPM_IN_EXCLUSIVE_MODE +// +// MessageText: +// +// The caller is trying to request an operation while the TPM driver has an exclusive context open. +// +#define TBS_E_TPM_IN_EXCLUSIVE_MODE _HRESULT_TYPEDEF_(0x80284017L) + +// +// MessageId: TBS_E_TPM_REBOOT_REQUIRED +// +// MessageText: +// +// The TPM driver was previously in exclusive mode and now requires a reboot to resume normal functionality. +// +#define TBS_E_TPM_REBOOT_REQUIRED _HRESULT_TYPEDEF_(0x80284018L) + +// +// TPM API error codes {0x0100..0x01ff} +// +// +// MessageId: TPMAPI_E_INVALID_STATE +// +// MessageText: +// +// The command buffer is not in the correct state. +// +#define TPMAPI_E_INVALID_STATE _HRESULT_TYPEDEF_(0x80290100L) + +// +// MessageId: TPMAPI_E_NOT_ENOUGH_DATA +// +// MessageText: +// +// The command buffer does not contain enough data to satisfy the request. +// +#define TPMAPI_E_NOT_ENOUGH_DATA _HRESULT_TYPEDEF_(0x80290101L) + +// +// MessageId: TPMAPI_E_TOO_MUCH_DATA +// +// MessageText: +// +// The command buffer cannot contain any more data. +// +#define TPMAPI_E_TOO_MUCH_DATA _HRESULT_TYPEDEF_(0x80290102L) + +// +// MessageId: TPMAPI_E_INVALID_OUTPUT_POINTER +// +// MessageText: +// +// One or more output parameters was NULL or invalid. +// +#define TPMAPI_E_INVALID_OUTPUT_POINTER _HRESULT_TYPEDEF_(0x80290103L) + +// +// MessageId: TPMAPI_E_INVALID_PARAMETER +// +// MessageText: +// +// One or more input parameters is invalid. +// +#define TPMAPI_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80290104L) + +// +// MessageId: TPMAPI_E_OUT_OF_MEMORY +// +// MessageText: +// +// Not enough memory was available to satisfy the request. +// +#define TPMAPI_E_OUT_OF_MEMORY _HRESULT_TYPEDEF_(0x80290105L) + +// +// MessageId: TPMAPI_E_BUFFER_TOO_SMALL +// +// MessageText: +// +// The specified buffer was too small. +// +#define TPMAPI_E_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x80290106L) + +// +// MessageId: TPMAPI_E_INTERNAL_ERROR +// +// MessageText: +// +// An internal error was detected. +// +#define TPMAPI_E_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80290107L) + +// +// MessageId: TPMAPI_E_ACCESS_DENIED +// +// MessageText: +// +// The caller does not have the appropriate rights to perform the requested operation. +// +#define TPMAPI_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x80290108L) + +// +// MessageId: TPMAPI_E_AUTHORIZATION_FAILED +// +// MessageText: +// +// The specified authorization information was invalid. +// +#define TPMAPI_E_AUTHORIZATION_FAILED _HRESULT_TYPEDEF_(0x80290109L) + +// +// MessageId: TPMAPI_E_INVALID_CONTEXT_HANDLE +// +// MessageText: +// +// The specified context handle was not valid. +// +#define TPMAPI_E_INVALID_CONTEXT_HANDLE _HRESULT_TYPEDEF_(0x8029010AL) + +// +// MessageId: TPMAPI_E_TBS_COMMUNICATION_ERROR +// +// MessageText: +// +// An error occurred while communicating with the TBS. +// +#define TPMAPI_E_TBS_COMMUNICATION_ERROR _HRESULT_TYPEDEF_(0x8029010BL) + +// +// MessageId: TPMAPI_E_TPM_COMMAND_ERROR +// +// MessageText: +// +// The TPM returned an unexpected result. +// +#define TPMAPI_E_TPM_COMMAND_ERROR _HRESULT_TYPEDEF_(0x8029010CL) + +// +// MessageId: TPMAPI_E_MESSAGE_TOO_LARGE +// +// MessageText: +// +// The message was too large for the encoding scheme. +// +#define TPMAPI_E_MESSAGE_TOO_LARGE _HRESULT_TYPEDEF_(0x8029010DL) + +// +// MessageId: TPMAPI_E_INVALID_ENCODING +// +// MessageText: +// +// The encoding in the blob was not recognized. +// +#define TPMAPI_E_INVALID_ENCODING _HRESULT_TYPEDEF_(0x8029010EL) + +// +// MessageId: TPMAPI_E_INVALID_KEY_SIZE +// +// MessageText: +// +// The key size is not valid. +// +#define TPMAPI_E_INVALID_KEY_SIZE _HRESULT_TYPEDEF_(0x8029010FL) + +// +// MessageId: TPMAPI_E_ENCRYPTION_FAILED +// +// MessageText: +// +// The encryption operation failed. +// +#define TPMAPI_E_ENCRYPTION_FAILED _HRESULT_TYPEDEF_(0x80290110L) + +// +// MessageId: TPMAPI_E_INVALID_KEY_PARAMS +// +// MessageText: +// +// The key parameters structure was not valid +// +#define TPMAPI_E_INVALID_KEY_PARAMS _HRESULT_TYPEDEF_(0x80290111L) + +// +// MessageId: TPMAPI_E_INVALID_MIGRATION_AUTHORIZATION_BLOB +// +// MessageText: +// +// The requested supplied data does not appear to be a valid migration authorization blob. +// +#define TPMAPI_E_INVALID_MIGRATION_AUTHORIZATION_BLOB _HRESULT_TYPEDEF_(0x80290112L) + +// +// MessageId: TPMAPI_E_INVALID_PCR_INDEX +// +// MessageText: +// +// The specified PCR index was invalid +// +#define TPMAPI_E_INVALID_PCR_INDEX _HRESULT_TYPEDEF_(0x80290113L) + +// +// MessageId: TPMAPI_E_INVALID_DELEGATE_BLOB +// +// MessageText: +// +// The data given does not appear to be a valid delegate blob. +// +#define TPMAPI_E_INVALID_DELEGATE_BLOB _HRESULT_TYPEDEF_(0x80290114L) + +// +// MessageId: TPMAPI_E_INVALID_CONTEXT_PARAMS +// +// MessageText: +// +// One or more of the specified context parameters was not valid. +// +#define TPMAPI_E_INVALID_CONTEXT_PARAMS _HRESULT_TYPEDEF_(0x80290115L) + +// +// MessageId: TPMAPI_E_INVALID_KEY_BLOB +// +// MessageText: +// +// The data given does not appear to be a valid key blob +// +#define TPMAPI_E_INVALID_KEY_BLOB _HRESULT_TYPEDEF_(0x80290116L) + +// +// MessageId: TPMAPI_E_INVALID_PCR_DATA +// +// MessageText: +// +// The specified PCR data was invalid. +// +#define TPMAPI_E_INVALID_PCR_DATA _HRESULT_TYPEDEF_(0x80290117L) + +// +// MessageId: TPMAPI_E_INVALID_OWNER_AUTH +// +// MessageText: +// +// The format of the owner auth data was invalid. +// +#define TPMAPI_E_INVALID_OWNER_AUTH _HRESULT_TYPEDEF_(0x80290118L) + +// +// MessageId: TPMAPI_E_FIPS_RNG_CHECK_FAILED +// +// MessageText: +// +// The random number generated did not pass FIPS RNG check. +// +#define TPMAPI_E_FIPS_RNG_CHECK_FAILED _HRESULT_TYPEDEF_(0x80290119L) + +// +// MessageId: TPMAPI_E_EMPTY_TCG_LOG +// +// MessageText: +// +// The TCG Event Log does not contain any data. +// +#define TPMAPI_E_EMPTY_TCG_LOG _HRESULT_TYPEDEF_(0x8029011AL) + +// +// MessageId: TPMAPI_E_INVALID_TCG_LOG_ENTRY +// +// MessageText: +// +// An entry in the TCG Event Log was invalid. +// +#define TPMAPI_E_INVALID_TCG_LOG_ENTRY _HRESULT_TYPEDEF_(0x8029011BL) + +// +// MessageId: TPMAPI_E_TCG_SEPARATOR_ABSENT +// +// MessageText: +// +// A TCG Separator was not found. +// +#define TPMAPI_E_TCG_SEPARATOR_ABSENT _HRESULT_TYPEDEF_(0x8029011CL) + +// +// MessageId: TPMAPI_E_TCG_INVALID_DIGEST_ENTRY +// +// MessageText: +// +// A digest value in a TCG Log entry did not match hashed data. +// +#define TPMAPI_E_TCG_INVALID_DIGEST_ENTRY _HRESULT_TYPEDEF_(0x8029011DL) + +// +// MessageId: TPMAPI_E_POLICY_DENIES_OPERATION +// +// MessageText: +// +// The requested operation was blocked by current TPM policy. Please contact your system administrator for assistance. +// +#define TPMAPI_E_POLICY_DENIES_OPERATION _HRESULT_TYPEDEF_(0x8029011EL) + +// +// MessageId: TPMAPI_E_NV_BITS_NOT_DEFINED +// +// MessageText: +// +// The Windows TPM NV Bits index is not defined. +// +#define TPMAPI_E_NV_BITS_NOT_DEFINED _HRESULT_TYPEDEF_(0x8029011FL) + +// +// MessageId: TPMAPI_E_NV_BITS_NOT_READY +// +// MessageText: +// +// The Windows TPM NV Bits index is not ready for use. +// +#define TPMAPI_E_NV_BITS_NOT_READY _HRESULT_TYPEDEF_(0x80290120L) + +// +// MessageId: TPMAPI_E_SEALING_KEY_NOT_AVAILABLE +// +// MessageText: +// +// The TPM key that was used to seal the data is no longer available. +// +#define TPMAPI_E_SEALING_KEY_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80290121L) + +// +// MessageId: TPMAPI_E_NO_AUTHORIZATION_CHAIN_FOUND +// +// MessageText: +// +// An authorization chain could not be found that authorizes the PolicyAuthorize unseal. +// +#define TPMAPI_E_NO_AUTHORIZATION_CHAIN_FOUND _HRESULT_TYPEDEF_(0x80290122L) + +// +// MessageId: TPMAPI_E_SVN_COUNTER_NOT_AVAILABLE +// +// MessageText: +// +// The SVN counter to which the authorization was bound is not available. +// +#define TPMAPI_E_SVN_COUNTER_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80290123L) + +// +// MessageId: TPMAPI_E_OWNER_AUTH_NOT_NULL +// +// MessageText: +// +// The TPM Storage hierarchy (Owner) auth value is required to be NULL for this operation. +// +#define TPMAPI_E_OWNER_AUTH_NOT_NULL _HRESULT_TYPEDEF_(0x80290124L) + +// +// MessageId: TPMAPI_E_ENDORSEMENT_AUTH_NOT_NULL +// +// MessageText: +// +// The TPM Endorsement hierarchy auth value is required to be NULL for this operation. +// +#define TPMAPI_E_ENDORSEMENT_AUTH_NOT_NULL _HRESULT_TYPEDEF_(0x80290125L) + +// +// MessageId: TPMAPI_E_AUTHORIZATION_REVOKED +// +// MessageText: +// +// The authorization to perform this operation has been revoked. +// +#define TPMAPI_E_AUTHORIZATION_REVOKED _HRESULT_TYPEDEF_(0x80290126L) + +// +// MessageId: TPMAPI_E_MALFORMED_AUTHORIZATION_KEY +// +// MessageText: +// +// The authorization public key is malformed. +// +#define TPMAPI_E_MALFORMED_AUTHORIZATION_KEY _HRESULT_TYPEDEF_(0x80290127L) + +// +// MessageId: TPMAPI_E_AUTHORIZING_KEY_NOT_SUPPORTED +// +// MessageText: +// +// The authorization public key is not supported. +// +#define TPMAPI_E_AUTHORIZING_KEY_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290128L) + +// +// MessageId: TPMAPI_E_INVALID_AUTHORIZATION_SIGNATURE +// +// MessageText: +// +// The authorization signature is invalid. +// +#define TPMAPI_E_INVALID_AUTHORIZATION_SIGNATURE _HRESULT_TYPEDEF_(0x80290129L) + +// +// MessageId: TPMAPI_E_MALFORMED_AUTHORIZATION_POLICY +// +// MessageText: +// +// The authorization policy is malformed. +// +#define TPMAPI_E_MALFORMED_AUTHORIZATION_POLICY _HRESULT_TYPEDEF_(0x8029012AL) + +// +// MessageId: TPMAPI_E_MALFORMED_AUTHORIZATION_OTHER +// +// MessageText: +// +// The authorization data is malformed. +// +#define TPMAPI_E_MALFORMED_AUTHORIZATION_OTHER _HRESULT_TYPEDEF_(0x8029012BL) + +// +// MessageId: TPMAPI_E_SEALING_KEY_CHANGED +// +// MessageText: +// +// The key used to unseal this data has changed since sealing the data. This may be the result of a TPM clear. +// +#define TPMAPI_E_SEALING_KEY_CHANGED _HRESULT_TYPEDEF_(0x8029012CL) + +// +// MessageId: TPMAPI_E_INVALID_TPM_VERSION +// +// MessageText: +// +// The TPM version is invalid. +// +#define TPMAPI_E_INVALID_TPM_VERSION _HRESULT_TYPEDEF_(0x8029012DL) + +// +// MessageId: TPMAPI_E_INVALID_POLICYAUTH_BLOB_TYPE +// +// MessageText: +// +// The policy authorization blob type is invalid. +// +#define TPMAPI_E_INVALID_POLICYAUTH_BLOB_TYPE _HRESULT_TYPEDEF_(0x8029012EL) + +// +// MessageId: TPMAPI_E_INVALID_TAG +// +// MessageText: +// +// The structure tag is invalid. +// +#define TPMAPI_E_INVALID_TAG _HRESULT_TYPEDEF_(0x80290130L) + +// +// MessageId: TPMAPI_E_INVALID_STRUCT_SIZE +// +// MessageText: +// +// The structure size parameter is invalid. +// +#define TPMAPI_E_INVALID_STRUCT_SIZE _HRESULT_TYPEDEF_(0x80290131L) + +// +// MessageId: TPMAPI_E_AUTH_CHAIN_ERROR +// +// MessageText: +// +// The authorization chain is malformed. +// +#define TPMAPI_E_AUTH_CHAIN_ERROR _HRESULT_TYPEDEF_(0x80290132L) + +// +// MessageId: TPMAPI_E_COUNTER_CORRUPTED +// +// MessageText: +// +// The counter is corrupted. The TPM may have gone into Failure Mode. +// +#define TPMAPI_E_COUNTER_CORRUPTED _HRESULT_TYPEDEF_(0x80290133L) + +// +// MessageId: TPMAPI_E_INVALID_ALGORITHM +// +// MessageText: +// +// The specified algorithm is not supported. +// +#define TPMAPI_E_INVALID_ALGORITHM _HRESULT_TYPEDEF_(0x80290134L) + +// +// TBS implementation error codes {0x0200..0x02ff} +// +// +// MessageId: TBSIMP_E_BUFFER_TOO_SMALL +// +// MessageText: +// +// The specified buffer was too small. +// +#define TBSIMP_E_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x80290200L) + +// +// MessageId: TBSIMP_E_CLEANUP_FAILED +// +// MessageText: +// +// The context could not be cleaned up. +// +#define TBSIMP_E_CLEANUP_FAILED _HRESULT_TYPEDEF_(0x80290201L) + +// +// MessageId: TBSIMP_E_INVALID_CONTEXT_HANDLE +// +// MessageText: +// +// The specified context handle is invalid. +// +#define TBSIMP_E_INVALID_CONTEXT_HANDLE _HRESULT_TYPEDEF_(0x80290202L) + +// +// MessageId: TBSIMP_E_INVALID_CONTEXT_PARAM +// +// MessageText: +// +// An invalid context parameter was specified. +// +#define TBSIMP_E_INVALID_CONTEXT_PARAM _HRESULT_TYPEDEF_(0x80290203L) + +// +// MessageId: TBSIMP_E_TPM_ERROR +// +// MessageText: +// +// An error occurred while communicating with the TPM +// +#define TBSIMP_E_TPM_ERROR _HRESULT_TYPEDEF_(0x80290204L) + +// +// MessageId: TBSIMP_E_HASH_BAD_KEY +// +// MessageText: +// +// No entry with the specified key was found. +// +#define TBSIMP_E_HASH_BAD_KEY _HRESULT_TYPEDEF_(0x80290205L) + +// +// MessageId: TBSIMP_E_DUPLICATE_VHANDLE +// +// MessageText: +// +// The specified virtual handle matches a virtual handle already in use. +// +#define TBSIMP_E_DUPLICATE_VHANDLE _HRESULT_TYPEDEF_(0x80290206L) + +// +// MessageId: TBSIMP_E_INVALID_OUTPUT_POINTER +// +// MessageText: +// +// The pointer to the returned handle location was NULL or invalid +// +#define TBSIMP_E_INVALID_OUTPUT_POINTER _HRESULT_TYPEDEF_(0x80290207L) + +// +// MessageId: TBSIMP_E_INVALID_PARAMETER +// +// MessageText: +// +// One or more parameters is invalid +// +#define TBSIMP_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80290208L) + +// +// MessageId: TBSIMP_E_RPC_INIT_FAILED +// +// MessageText: +// +// The RPC subsystem could not be initialized. +// +#define TBSIMP_E_RPC_INIT_FAILED _HRESULT_TYPEDEF_(0x80290209L) + +// +// MessageId: TBSIMP_E_SCHEDULER_NOT_RUNNING +// +// MessageText: +// +// The TBS scheduler is not running. +// +#define TBSIMP_E_SCHEDULER_NOT_RUNNING _HRESULT_TYPEDEF_(0x8029020AL) + +// +// MessageId: TBSIMP_E_COMMAND_CANCELED +// +// MessageText: +// +// The command was canceled. +// +#define TBSIMP_E_COMMAND_CANCELED _HRESULT_TYPEDEF_(0x8029020BL) + +// +// MessageId: TBSIMP_E_OUT_OF_MEMORY +// +// MessageText: +// +// There was not enough memory to fulfill the request +// +#define TBSIMP_E_OUT_OF_MEMORY _HRESULT_TYPEDEF_(0x8029020CL) + +// +// MessageId: TBSIMP_E_LIST_NO_MORE_ITEMS +// +// MessageText: +// +// The specified list is empty, or the iteration has reached the end of the list. +// +#define TBSIMP_E_LIST_NO_MORE_ITEMS _HRESULT_TYPEDEF_(0x8029020DL) + +// +// MessageId: TBSIMP_E_LIST_NOT_FOUND +// +// MessageText: +// +// The specified item was not found in the list. +// +#define TBSIMP_E_LIST_NOT_FOUND _HRESULT_TYPEDEF_(0x8029020EL) + +// +// MessageId: TBSIMP_E_NOT_ENOUGH_SPACE +// +// MessageText: +// +// The TPM does not have enough space to load the requested resource. +// +#define TBSIMP_E_NOT_ENOUGH_SPACE _HRESULT_TYPEDEF_(0x8029020FL) + +// +// MessageId: TBSIMP_E_NOT_ENOUGH_TPM_CONTEXTS +// +// MessageText: +// +// There are too many TPM contexts in use. +// +#define TBSIMP_E_NOT_ENOUGH_TPM_CONTEXTS _HRESULT_TYPEDEF_(0x80290210L) + +// +// MessageId: TBSIMP_E_COMMAND_FAILED +// +// MessageText: +// +// The TPM command failed. +// +#define TBSIMP_E_COMMAND_FAILED _HRESULT_TYPEDEF_(0x80290211L) + +// +// MessageId: TBSIMP_E_UNKNOWN_ORDINAL +// +// MessageText: +// +// The TBS does not recognize the specified ordinal. +// +#define TBSIMP_E_UNKNOWN_ORDINAL _HRESULT_TYPEDEF_(0x80290212L) + +// +// MessageId: TBSIMP_E_RESOURCE_EXPIRED +// +// MessageText: +// +// The requested resource is no longer available. +// +#define TBSIMP_E_RESOURCE_EXPIRED _HRESULT_TYPEDEF_(0x80290213L) + +// +// MessageId: TBSIMP_E_INVALID_RESOURCE +// +// MessageText: +// +// The resource type did not match. +// +#define TBSIMP_E_INVALID_RESOURCE _HRESULT_TYPEDEF_(0x80290214L) + +// +// MessageId: TBSIMP_E_NOTHING_TO_UNLOAD +// +// MessageText: +// +// No resources can be unloaded. +// +#define TBSIMP_E_NOTHING_TO_UNLOAD _HRESULT_TYPEDEF_(0x80290215L) + +// +// MessageId: TBSIMP_E_HASH_TABLE_FULL +// +// MessageText: +// +// No new entries can be added to the hash table. +// +#define TBSIMP_E_HASH_TABLE_FULL _HRESULT_TYPEDEF_(0x80290216L) + +// +// MessageId: TBSIMP_E_TOO_MANY_TBS_CONTEXTS +// +// MessageText: +// +// A new TBS context could not be created because there are too many open contexts. +// +#define TBSIMP_E_TOO_MANY_TBS_CONTEXTS _HRESULT_TYPEDEF_(0x80290217L) + +// +// MessageId: TBSIMP_E_TOO_MANY_RESOURCES +// +// MessageText: +// +// A new virtual resource could not be created because there are too many open virtual resources. +// +#define TBSIMP_E_TOO_MANY_RESOURCES _HRESULT_TYPEDEF_(0x80290218L) + +// +// MessageId: TBSIMP_E_PPI_NOT_SUPPORTED +// +// MessageText: +// +// The physical presence interface is not supported. +// +#define TBSIMP_E_PPI_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290219L) + +// +// MessageId: TBSIMP_E_TPM_INCOMPATIBLE +// +// MessageText: +// +// TBS is not compatible with the version of TPM found on the system. +// +#define TBSIMP_E_TPM_INCOMPATIBLE _HRESULT_TYPEDEF_(0x8029021AL) + +// +// MessageId: TBSIMP_E_NO_EVENT_LOG +// +// MessageText: +// +// No TCG event log is available. +// +#define TBSIMP_E_NO_EVENT_LOG _HRESULT_TYPEDEF_(0x8029021BL) + +// +// TPM Physical Presence implementation error codes {0x0300..0x03ff} +// +// +// MessageId: TPM_E_PPI_ACPI_FAILURE +// +// MessageText: +// +// A general error was detected when attempting to acquire the BIOS's response to a Physical Presence command. +// +#define TPM_E_PPI_ACPI_FAILURE _HRESULT_TYPEDEF_(0x80290300L) + +// +// MessageId: TPM_E_PPI_USER_ABORT +// +// MessageText: +// +// The user failed to confirm the TPM operation request. +// +#define TPM_E_PPI_USER_ABORT _HRESULT_TYPEDEF_(0x80290301L) + +// +// MessageId: TPM_E_PPI_BIOS_FAILURE +// +// MessageText: +// +// The BIOS failure prevented the successful execution of the requested TPM operation (e.g. invalid TPM operation request, BIOS communication error with the TPM). +// +#define TPM_E_PPI_BIOS_FAILURE _HRESULT_TYPEDEF_(0x80290302L) + +// +// MessageId: TPM_E_PPI_NOT_SUPPORTED +// +// MessageText: +// +// The BIOS does not support the physical presence interface. +// +#define TPM_E_PPI_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290303L) + +// +// MessageId: TPM_E_PPI_BLOCKED_IN_BIOS +// +// MessageText: +// +// The Physical Presence command was blocked by current BIOS settings. The system owner may be able to reconfigure the BIOS settings to allow the command. +// +#define TPM_E_PPI_BLOCKED_IN_BIOS _HRESULT_TYPEDEF_(0x80290304L) + +// +// Platform Crypto Provider (PCPTPM12.dll and future platform crypto providers) error codes {0x0400..0x04ff} +// +// +// MessageId: TPM_E_PCP_ERROR_MASK +// +// MessageText: +// +// This is an error mask to convert Platform Crypto Provider errors to win errors. +// +#define TPM_E_PCP_ERROR_MASK _HRESULT_TYPEDEF_(0x80290400L) + +// +// MessageId: TPM_E_PCP_DEVICE_NOT_READY +// +// MessageText: +// +// The Platform Crypto Device is currently not ready. It needs to be fully provisioned to be operational. +// +#define TPM_E_PCP_DEVICE_NOT_READY _HRESULT_TYPEDEF_(0x80290401L) + +// +// MessageId: TPM_E_PCP_INVALID_HANDLE +// +// MessageText: +// +// The handle provided to the Platform Crypto Provider is invalid. +// +#define TPM_E_PCP_INVALID_HANDLE _HRESULT_TYPEDEF_(0x80290402L) + +// +// MessageId: TPM_E_PCP_INVALID_PARAMETER +// +// MessageText: +// +// A parameter provided to the Platform Crypto Provider is invalid. +// +#define TPM_E_PCP_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80290403L) + +// +// MessageId: TPM_E_PCP_FLAG_NOT_SUPPORTED +// +// MessageText: +// +// A provided flag to the Platform Crypto Provider is not supported. +// +#define TPM_E_PCP_FLAG_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290404L) + +// +// MessageId: TPM_E_PCP_NOT_SUPPORTED +// +// MessageText: +// +// The requested operation is not supported by this Platform Crypto Provider. +// +#define TPM_E_PCP_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290405L) + +// +// MessageId: TPM_E_PCP_BUFFER_TOO_SMALL +// +// MessageText: +// +// The buffer is too small to contain all data. No information has been written to the buffer. +// +#define TPM_E_PCP_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x80290406L) + +// +// MessageId: TPM_E_PCP_INTERNAL_ERROR +// +// MessageText: +// +// An unexpected internal error has occurred in the Platform Crypto Provider. +// +#define TPM_E_PCP_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80290407L) + +// +// MessageId: TPM_E_PCP_AUTHENTICATION_FAILED +// +// MessageText: +// +// The authorization to use a provider object has failed. +// +#define TPM_E_PCP_AUTHENTICATION_FAILED _HRESULT_TYPEDEF_(0x80290408L) + +// +// MessageId: TPM_E_PCP_AUTHENTICATION_IGNORED +// +// MessageText: +// +// The Platform Crypto Device has ignored the authorization for the provider object, to mitigate against a dictionary attack. +// +#define TPM_E_PCP_AUTHENTICATION_IGNORED _HRESULT_TYPEDEF_(0x80290409L) + +// +// MessageId: TPM_E_PCP_POLICY_NOT_FOUND +// +// MessageText: +// +// The referenced policy was not found. +// +#define TPM_E_PCP_POLICY_NOT_FOUND _HRESULT_TYPEDEF_(0x8029040AL) + +// +// MessageId: TPM_E_PCP_PROFILE_NOT_FOUND +// +// MessageText: +// +// The referenced profile was not found. +// +#define TPM_E_PCP_PROFILE_NOT_FOUND _HRESULT_TYPEDEF_(0x8029040BL) + +// +// MessageId: TPM_E_PCP_VALIDATION_FAILED +// +// MessageText: +// +// The validation was not succesful. +// +#define TPM_E_PCP_VALIDATION_FAILED _HRESULT_TYPEDEF_(0x8029040CL) + +// +// MessageId: TPM_E_PCP_WRONG_PARENT +// +// MessageText: +// +// An attempt was made to import or load a key under an incorrect storage parent. +// +#define TPM_E_PCP_WRONG_PARENT _HRESULT_TYPEDEF_(0x8029040EL) + +// +// MessageId: TPM_E_KEY_NOT_LOADED +// +// MessageText: +// +// The TPM key is not loaded. +// +#define TPM_E_KEY_NOT_LOADED _HRESULT_TYPEDEF_(0x8029040FL) + +// +// MessageId: TPM_E_NO_KEY_CERTIFICATION +// +// MessageText: +// +// The TPM key certification has not been generated. +// +#define TPM_E_NO_KEY_CERTIFICATION _HRESULT_TYPEDEF_(0x80290410L) + +// +// MessageId: TPM_E_KEY_NOT_FINALIZED +// +// MessageText: +// +// The TPM key is not yet finalized. +// +#define TPM_E_KEY_NOT_FINALIZED _HRESULT_TYPEDEF_(0x80290411L) + +// +// MessageId: TPM_E_ATTESTATION_CHALLENGE_NOT_SET +// +// MessageText: +// +// The TPM attestation challenge is not set. +// +#define TPM_E_ATTESTATION_CHALLENGE_NOT_SET _HRESULT_TYPEDEF_(0x80290412L) + +// +// MessageId: TPM_E_NOT_PCR_BOUND +// +// MessageText: +// +// The TPM PCR info is not available. +// +#define TPM_E_NOT_PCR_BOUND _HRESULT_TYPEDEF_(0x80290413L) + +// +// MessageId: TPM_E_KEY_ALREADY_FINALIZED +// +// MessageText: +// +// The TPM key is already finalized. +// +#define TPM_E_KEY_ALREADY_FINALIZED _HRESULT_TYPEDEF_(0x80290414L) + +// +// MessageId: TPM_E_KEY_USAGE_POLICY_NOT_SUPPORTED +// +// MessageText: +// +// The TPM key usage policy is not supported. +// +#define TPM_E_KEY_USAGE_POLICY_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290415L) + +// +// MessageId: TPM_E_KEY_USAGE_POLICY_INVALID +// +// MessageText: +// +// The TPM key usage policy is invalid. +// +#define TPM_E_KEY_USAGE_POLICY_INVALID _HRESULT_TYPEDEF_(0x80290416L) + +// +// MessageId: TPM_E_SOFT_KEY_ERROR +// +// MessageText: +// +// There was a problem with the software key being imported into the TPM. +// +#define TPM_E_SOFT_KEY_ERROR _HRESULT_TYPEDEF_(0x80290417L) + +// +// MessageId: TPM_E_KEY_NOT_AUTHENTICATED +// +// MessageText: +// +// The TPM key is not authenticated. +// +#define TPM_E_KEY_NOT_AUTHENTICATED _HRESULT_TYPEDEF_(0x80290418L) + +// +// MessageId: TPM_E_PCP_KEY_NOT_AIK +// +// MessageText: +// +// The TPM key is not an AIK. +// +#define TPM_E_PCP_KEY_NOT_AIK _HRESULT_TYPEDEF_(0x80290419L) + +// +// MessageId: TPM_E_KEY_NOT_SIGNING_KEY +// +// MessageText: +// +// The TPM key is not a signing key. +// +#define TPM_E_KEY_NOT_SIGNING_KEY _HRESULT_TYPEDEF_(0x8029041AL) + +// +// MessageId: TPM_E_LOCKED_OUT +// +// MessageText: +// +// The TPM is locked out. +// +#define TPM_E_LOCKED_OUT _HRESULT_TYPEDEF_(0x8029041BL) + +// +// MessageId: TPM_E_CLAIM_TYPE_NOT_SUPPORTED +// +// MessageText: +// +// The claim type requested is not supported. +// +#define TPM_E_CLAIM_TYPE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8029041CL) + +// +// MessageId: TPM_E_VERSION_NOT_SUPPORTED +// +// MessageText: +// +// TPM version is not supported. +// +#define TPM_E_VERSION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8029041DL) + +// +// MessageId: TPM_E_BUFFER_LENGTH_MISMATCH +// +// MessageText: +// +// The buffer lengths do not match. +// +#define TPM_E_BUFFER_LENGTH_MISMATCH _HRESULT_TYPEDEF_(0x8029041EL) + +// +// MessageId: TPM_E_PCP_IFX_RSA_KEY_CREATION_BLOCKED +// +// MessageText: +// +// The RSA key creation is blocked on this TPM due to known security vulnerabilities. +// +#define TPM_E_PCP_IFX_RSA_KEY_CREATION_BLOCKED _HRESULT_TYPEDEF_(0x8029041FL) + +// +// MessageId: TPM_E_PCP_TICKET_MISSING +// +// MessageText: +// +// A ticket required to use a key was not provided. +// +#define TPM_E_PCP_TICKET_MISSING _HRESULT_TYPEDEF_(0x80290420L) + +// +// MessageId: TPM_E_PCP_RAW_POLICY_NOT_SUPPORTED +// +// MessageText: +// +// This key has a raw policy so the KSP can't authenticate against it. +// +#define TPM_E_PCP_RAW_POLICY_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290421L) + +// +// MessageId: TPM_E_PCP_KEY_HANDLE_INVALIDATED +// +// MessageText: +// +// The TPM key's handle was unexpectedly invalidated due to a hardware or firmware issue. +// +#define TPM_E_PCP_KEY_HANDLE_INVALIDATED _HRESULT_TYPEDEF_(0x80290422L) + +// +// MessageId: TPM_E_PCP_UNSUPPORTED_PSS_SALT +// +// MessageText: +// +// The requested salt size for signing with RSAPSS does not match what the TPM uses. +// +#define TPM_E_PCP_UNSUPPORTED_PSS_SALT _HRESULT_TYPEDEF_(0x40290423L) + +// +// MessageId: TPM_E_PCP_PLATFORM_CLAIM_MAY_BE_OUTDATED +// +// MessageText: +// +// Validation of the platform claim failed. +// +#define TPM_E_PCP_PLATFORM_CLAIM_MAY_BE_OUTDATED _HRESULT_TYPEDEF_(0x40290424L) + +// +// MessageId: TPM_E_PCP_PLATFORM_CLAIM_OUTDATED +// +// MessageText: +// +// The requested platform claim is for a previous boot. +// +#define TPM_E_PCP_PLATFORM_CLAIM_OUTDATED _HRESULT_TYPEDEF_(0x40290425L) + +// +// MessageId: TPM_E_PCP_PLATFORM_CLAIM_REBOOT +// +// MessageText: +// +// The platform claim is for a previous boot, and cannot be created without reboot. +// +#define TPM_E_PCP_PLATFORM_CLAIM_REBOOT _HRESULT_TYPEDEF_(0x40290426L) + +// +// Misc error codes in TPM code {0x0500..0x05ff} +// +// +// MessageId: TPM_E_ZERO_EXHAUST_ENABLED +// +// MessageText: +// +// TPM related network operations are blocked as Zero Exhaust mode is enabled on client. +// +#define TPM_E_ZERO_EXHAUST_ENABLED _HRESULT_TYPEDEF_(0x80290500L) + +// +// MessageId: DRTM_E_ENVIRONMENT_UNSAFE +// +// MessageText: +// +// The current environment is unsafe for DRTM to run in. +// +#define DRTM_E_ENVIRONMENT_UNSAFE _HRESULT_TYPEDEF_(0x80290501L) + +// +// MessageId: DRTM_E_NO_DIRECT_AUTH_FOR_CURRENT_MLE +// +// MessageText: +// +// There are no authorizations for the current running MLE. The current state is not authorized. +// +#define DRTM_E_NO_DIRECT_AUTH_FOR_CURRENT_MLE _HRESULT_TYPEDEF_(0x80290502L) + +// +// Error codes in TPM task and core provisioning code {0x0600..0x06ff} +// +// +// MessageId: TPM_E_PROVISIONING_INCOMPLETE +// +// MessageText: +// +// TPM provisioning did not run to completion. +// +#define TPM_E_PROVISIONING_INCOMPLETE _HRESULT_TYPEDEF_(0x80290600L) + +// +// MessageId: TPM_E_INVALID_OWNER_AUTH +// +// MessageText: +// +// An invalid owner authorization value was specified. +// +#define TPM_E_INVALID_OWNER_AUTH _HRESULT_TYPEDEF_(0x80290601L) + +// +// MessageId: TPM_E_TOO_MUCH_DATA +// +// MessageText: +// +// TPM command returned too much data. +// +#define TPM_E_TOO_MUCH_DATA _HRESULT_TYPEDEF_(0x80290602L) + +// +// MessageId: TPM_E_TPM_GENERATED_EPS +// +// MessageText: +// +// Unable to fetch EK Certificate if TPM-generated EPS (after a TPM2_ChangeEPS). +// +#define TPM_E_TPM_GENERATED_EPS _HRESULT_TYPEDEF_(0x80290603L) + +// +// If the application is designed to use TCG defined TPM return codes +// then undefine the Windows defined codes for the same symbols. The application +// declares usage of TCG return codes by defining WIN_OMIT_TSS_TPM_RETURN_CODES +// before including windows.h +// +#ifdef WIN_OMIT_TSS_TPM_RETURN_CODES +#undef TPM_E_AREA_LOCKED +#undef TPM_E_AUDITFAILURE +#undef TPM_E_AUDITFAIL_SUCCESSFUL +#undef TPM_E_AUDITFAIL_UNSUCCESSFUL +#undef TPM_E_AUTH2FAIL +#undef TPM_E_AUTHFAIL +#undef TPM_E_AUTH_CONFLICT +#undef TPM_E_BADCONTEXT +#undef TPM_E_BADINDEX +#undef TPM_E_BADTAG +#undef TPM_E_BAD_ATTRIBUTES +#undef TPM_E_BAD_COUNTER +#undef TPM_E_BAD_DATASIZE +#undef TPM_E_BAD_DELEGATE +#undef TPM_E_BAD_HANDLE +#undef TPM_E_BAD_KEY_PROPERTY +#undef TPM_E_BAD_LOCALITY +#undef TPM_E_BAD_MIGRATION +#undef TPM_E_BAD_MODE +#undef TPM_E_BAD_ORDINAL +#undef TPM_E_BAD_PARAMETER +#undef TPM_E_BAD_PARAM_SIZE +#undef TPM_E_BAD_PRESENCE +#undef TPM_E_BAD_SCHEME +#undef TPM_E_BAD_SIGNATURE +#undef TPM_E_BAD_TYPE +#undef TPM_E_BAD_VERSION +#undef TPM_E_CLEAR_DISABLED +#undef TPM_E_CONTEXT_GAP +#undef TPM_E_DAA_INPUT_DATA0 +#undef TPM_E_DAA_INPUT_DATA1 +#undef TPM_E_DAA_ISSUER_SETTINGS +#undef TPM_E_DAA_ISSUER_VALIDITY +#undef TPM_E_DAA_RESOURCES +#undef TPM_E_DAA_STAGE +#undef TPM_E_DAA_TPM_SETTINGS +#undef TPM_E_DAA_WRONG_W +#undef TPM_E_DEACTIVATED +#undef TPM_E_DECRYPT_ERROR +#undef TPM_E_DEFEND_LOCK_RUNNING +#undef TPM_E_DELEGATE_ADMIN +#undef TPM_E_DELEGATE_FAMILY +#undef TPM_E_DELEGATE_LOCK +#undef TPM_E_DISABLED +#undef TPM_E_DISABLED_CMD +#undef TPM_E_DOING_SELFTEST +#undef TPM_E_ENCRYPT_ERROR +#undef TPM_E_FAIL +#undef TPM_E_FAILEDSELFTEST +#undef TPM_E_FAMILYCOUNT +#undef TPM_E_INAPPROPRIATE_ENC +#undef TPM_E_INAPPROPRIATE_SIG +#undef TPM_E_INSTALL_DISABLED +#undef TPM_E_INVALID_AUTHHANDLE +#undef TPM_E_INVALID_FAMILY +#undef TPM_E_INVALID_KEYHANDLE +#undef TPM_E_INVALID_KEYUSAGE +#undef TPM_E_INVALID_PCR_INFO +#undef TPM_E_INVALID_POSTINIT +#undef TPM_E_INVALID_RESOURCE +#undef TPM_E_INVALID_STRUCTURE +#undef TPM_E_IOERROR +#undef TPM_E_KEYNOTFOUND +#undef TPM_E_KEY_NOTSUPPORTED +#undef TPM_E_KEY_OWNER_CONTROL +#undef TPM_E_MAXNVWRITES +#undef TPM_E_MA_AUTHORITY +#undef TPM_E_MA_DESTINATION +#undef TPM_E_MA_SOURCE +#undef TPM_E_MA_TICKET_SIGNATURE +#undef TPM_E_MIGRATEFAIL +#undef TPM_E_NEEDS_SELFTEST +#undef TPM_E_NOCONTEXTSPACE +#undef TPM_E_NOOPERATOR +#undef TPM_E_NOSPACE +#undef TPM_E_NOSRK +#undef TPM_E_NOTFIPS +#undef TPM_E_NOTLOCAL +#undef TPM_E_NOTRESETABLE +#undef TPM_E_NOTSEALED_BLOB +#undef TPM_E_NOT_FULLWRITE +#undef TPM_E_NO_ENDORSEMENT +#undef TPM_E_NO_NV_PERMISSION +#undef TPM_E_NO_WRAP_TRANSPORT +#undef TPM_E_OWNER_CONTROL +#undef TPM_E_OWNER_SET +#undef TPM_E_PERMANENTEK +#undef TPM_E_PER_NOWRITE +#undef TPM_E_READ_ONLY +#undef TPM_E_REQUIRES_SIGN +#undef TPM_E_RESOURCEMISSING +#undef TPM_E_RESOURCES +#undef TPM_E_RETRY +#undef TPM_E_SHA_ERROR +#undef TPM_E_SHA_THREAD +#undef TPM_E_SHORTRANDOM +#undef TPM_E_SIZE +#undef TPM_E_TOOMANYCONTEXTS +#undef TPM_E_TRANSPORT_NOTEXCLUSIVE +#undef TPM_E_WRITE_LOCKED +#undef TPM_E_WRONGPCRVAL +#undef TPM_E_WRONG_ENTITYTYPE +#undef TPM_SUCCESS +#endif +// +// ======================================================= +// Facility Performance Logs & Alerts (PLA) Error Messages +// ======================================================= +// +// +// MessageId: PLA_E_DCS_NOT_FOUND +// +// MessageText: +// +// Data Collector Set was not found. +// +#define PLA_E_DCS_NOT_FOUND _HRESULT_TYPEDEF_(0x80300002L) + +// +// MessageId: PLA_E_DCS_IN_USE +// +// MessageText: +// +// The Data Collector Set or one of its dependencies is already in use. +// +#define PLA_E_DCS_IN_USE _HRESULT_TYPEDEF_(0x803000AAL) + +// +// MessageId: PLA_E_TOO_MANY_FOLDERS +// +// MessageText: +// +// Unable to start Data Collector Set because there are too many folders. +// +#define PLA_E_TOO_MANY_FOLDERS _HRESULT_TYPEDEF_(0x80300045L) + +// +// MessageId: PLA_E_NO_MIN_DISK +// +// MessageText: +// +// Not enough free disk space to start Data Collector Set. +// +#define PLA_E_NO_MIN_DISK _HRESULT_TYPEDEF_(0x80300070L) + +// +// MessageId: PLA_E_DCS_ALREADY_EXISTS +// +// MessageText: +// +// Data Collector Set already exists. +// +#define PLA_E_DCS_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803000B7L) + +// +// MessageId: PLA_S_PROPERTY_IGNORED +// +// MessageText: +// +// Property value will be ignored. +// +#define PLA_S_PROPERTY_IGNORED _HRESULT_TYPEDEF_(0x00300100L) + +// +// MessageId: PLA_E_PROPERTY_CONFLICT +// +// MessageText: +// +// Property value conflict. +// +#define PLA_E_PROPERTY_CONFLICT _HRESULT_TYPEDEF_(0x80300101L) + +// +// MessageId: PLA_E_DCS_SINGLETON_REQUIRED +// +// MessageText: +// +// The current configuration for this Data Collector Set requires that it contain exactly one Data Collector. +// +#define PLA_E_DCS_SINGLETON_REQUIRED _HRESULT_TYPEDEF_(0x80300102L) + +// +// MessageId: PLA_E_CREDENTIALS_REQUIRED +// +// MessageText: +// +// A user account is required in order to commit the current Data Collector Set properties. +// +#define PLA_E_CREDENTIALS_REQUIRED _HRESULT_TYPEDEF_(0x80300103L) + +// +// MessageId: PLA_E_DCS_NOT_RUNNING +// +// MessageText: +// +// Data Collector Set is not running. +// +#define PLA_E_DCS_NOT_RUNNING _HRESULT_TYPEDEF_(0x80300104L) + +// +// MessageId: PLA_E_CONFLICT_INCL_EXCL_API +// +// MessageText: +// +// A conflict was detected in the list of include/exclude APIs. Do not specify the same API in both the include list and the exclude list. +// +#define PLA_E_CONFLICT_INCL_EXCL_API _HRESULT_TYPEDEF_(0x80300105L) + +// +// MessageId: PLA_E_NETWORK_EXE_NOT_VALID +// +// MessageText: +// +// The executable path you have specified refers to a network share or UNC path. +// +#define PLA_E_NETWORK_EXE_NOT_VALID _HRESULT_TYPEDEF_(0x80300106L) + +// +// MessageId: PLA_E_EXE_ALREADY_CONFIGURED +// +// MessageText: +// +// The executable path you have specified is already configured for API tracing. +// +#define PLA_E_EXE_ALREADY_CONFIGURED _HRESULT_TYPEDEF_(0x80300107L) + +// +// MessageId: PLA_E_EXE_PATH_NOT_VALID +// +// MessageText: +// +// The executable path you have specified does not exist. Verify that the specified path is correct. +// +#define PLA_E_EXE_PATH_NOT_VALID _HRESULT_TYPEDEF_(0x80300108L) + +// +// MessageId: PLA_E_DC_ALREADY_EXISTS +// +// MessageText: +// +// Data Collector already exists. +// +#define PLA_E_DC_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x80300109L) + +// +// MessageId: PLA_E_DCS_START_WAIT_TIMEOUT +// +// MessageText: +// +// The wait for the Data Collector Set start notification has timed out. +// +#define PLA_E_DCS_START_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x8030010AL) + +// +// MessageId: PLA_E_DC_START_WAIT_TIMEOUT +// +// MessageText: +// +// The wait for the Data Collector to start has timed out. +// +#define PLA_E_DC_START_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x8030010BL) + +// +// MessageId: PLA_E_REPORT_WAIT_TIMEOUT +// +// MessageText: +// +// The wait for the report generation tool to finish has timed out. +// +#define PLA_E_REPORT_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x8030010CL) + +// +// MessageId: PLA_E_NO_DUPLICATES +// +// MessageText: +// +// Duplicate items are not allowed. +// +#define PLA_E_NO_DUPLICATES _HRESULT_TYPEDEF_(0x8030010DL) + +// +// MessageId: PLA_E_EXE_FULL_PATH_REQUIRED +// +// MessageText: +// +// When specifying the executable that you want to trace, you must specify a full path to the executable and not just a filename. +// +#define PLA_E_EXE_FULL_PATH_REQUIRED _HRESULT_TYPEDEF_(0x8030010EL) + +// +// MessageId: PLA_E_INVALID_SESSION_NAME +// +// MessageText: +// +// The session name provided is invalid. +// +#define PLA_E_INVALID_SESSION_NAME _HRESULT_TYPEDEF_(0x8030010FL) + +// +// MessageId: PLA_E_PLA_CHANNEL_NOT_ENABLED +// +// MessageText: +// +// The Event Log channel Microsoft-Windows-Diagnosis-PLA/Operational must be enabled to perform this operation. +// +#define PLA_E_PLA_CHANNEL_NOT_ENABLED _HRESULT_TYPEDEF_(0x80300110L) + +// +// MessageId: PLA_E_TASKSCHED_CHANNEL_NOT_ENABLED +// +// MessageText: +// +// The Event Log channel Microsoft-Windows-TaskScheduler must be enabled to perform this operation. +// +#define PLA_E_TASKSCHED_CHANNEL_NOT_ENABLED _HRESULT_TYPEDEF_(0x80300111L) + +// +// MessageId: PLA_E_RULES_MANAGER_FAILED +// +// MessageText: +// +// The execution of the Rules Manager failed. +// +#define PLA_E_RULES_MANAGER_FAILED _HRESULT_TYPEDEF_(0x80300112L) + +// +// MessageId: PLA_E_CABAPI_FAILURE +// +// MessageText: +// +// An error occurred while attempting to compress or extract the data. +// +#define PLA_E_CABAPI_FAILURE _HRESULT_TYPEDEF_(0x80300113L) + +// +// ======================================================= +// Full Volume Encryption Error Messages +// ======================================================= +// +// +// MessageId: FVE_E_LOCKED_VOLUME +// +// MessageText: +// +// This drive is locked by BitLocker Drive Encryption. You must unlock this drive from Control Panel. +// +#define FVE_E_LOCKED_VOLUME _HRESULT_TYPEDEF_(0x80310000L) + +// +// MessageId: FVE_E_NOT_ENCRYPTED +// +// MessageText: +// +// This drive is not encrypted. +// +#define FVE_E_NOT_ENCRYPTED _HRESULT_TYPEDEF_(0x80310001L) + +// +// MessageId: FVE_E_NO_TPM_BIOS +// +// MessageText: +// +// The BIOS did not correctly communicate with the Trusted Platform Module (TPM). Contact the computer manufacturer for BIOS upgrade instructions. +// +#define FVE_E_NO_TPM_BIOS _HRESULT_TYPEDEF_(0x80310002L) + +// +// MessageId: FVE_E_NO_MBR_METRIC +// +// MessageText: +// +// The BIOS did not correctly communicate with the master boot record (MBR). Contact the computer manufacturer for BIOS upgrade instructions. +// +#define FVE_E_NO_MBR_METRIC _HRESULT_TYPEDEF_(0x80310003L) + +// +// MessageId: FVE_E_NO_BOOTSECTOR_METRIC +// +// MessageText: +// +// A required TPM measurement is missing. If there is a bootable CD or DVD in your computer, remove it, restart the computer, and turn on BitLocker again. If the problem persists, ensure the master boot record is up to date. +// +#define FVE_E_NO_BOOTSECTOR_METRIC _HRESULT_TYPEDEF_(0x80310004L) + +// +// MessageId: FVE_E_NO_BOOTMGR_METRIC +// +// MessageText: +// +// The boot sector of this drive is not compatible with BitLocker Drive Encryption. Use the Bootrec.exe tool in the Windows Recovery Environment to update or repair the boot manager (BOOTMGR). +// +#define FVE_E_NO_BOOTMGR_METRIC _HRESULT_TYPEDEF_(0x80310005L) + +// +// MessageId: FVE_E_WRONG_BOOTMGR +// +// MessageText: +// +// The boot manager of this operating system is not compatible with BitLocker Drive Encryption. Use the Bootrec.exe tool in the Windows Recovery Environment to update or repair the boot manager (BOOTMGR). +// +#define FVE_E_WRONG_BOOTMGR _HRESULT_TYPEDEF_(0x80310006L) + +// +// MessageId: FVE_E_SECURE_KEY_REQUIRED +// +// MessageText: +// +// At least one secure key protector is required for this operation to be performed. +// +#define FVE_E_SECURE_KEY_REQUIRED _HRESULT_TYPEDEF_(0x80310007L) + +// +// MessageId: FVE_E_NOT_ACTIVATED +// +// MessageText: +// +// BitLocker Drive Encryption is not enabled on this drive. Turn on BitLocker. +// +#define FVE_E_NOT_ACTIVATED _HRESULT_TYPEDEF_(0x80310008L) + +// +// MessageId: FVE_E_ACTION_NOT_ALLOWED +// +// MessageText: +// +// BitLocker Drive Encryption cannot perform the requested action. This condition may occur when two requests are issued at the same time. Wait a few moments and then try the action again. +// +#define FVE_E_ACTION_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310009L) + +// +// MessageId: FVE_E_AD_SCHEMA_NOT_INSTALLED +// +// MessageText: +// +// The Active Directory Domain Services forest does not contain the required attributes and classes to host BitLocker Drive Encryption or Trusted Platform Module information. Contact your domain administrator to verify that any required BitLocker Active Directory schema extensions have been installed. +// +#define FVE_E_AD_SCHEMA_NOT_INSTALLED _HRESULT_TYPEDEF_(0x8031000AL) + +// +// MessageId: FVE_E_AD_INVALID_DATATYPE +// +// MessageText: +// +// The type of the data obtained from Active Directory was not expected. The BitLocker recovery information may be missing or corrupted. +// +#define FVE_E_AD_INVALID_DATATYPE _HRESULT_TYPEDEF_(0x8031000BL) + +// +// MessageId: FVE_E_AD_INVALID_DATASIZE +// +// MessageText: +// +// The size of the data obtained from Active Directory was not expected. The BitLocker recovery information may be missing or corrupted. +// +#define FVE_E_AD_INVALID_DATASIZE _HRESULT_TYPEDEF_(0x8031000CL) + +// +// MessageId: FVE_E_AD_NO_VALUES +// +// MessageText: +// +// The attribute read from Active Directory does not contain any values. The BitLocker recovery information may be missing or corrupted. +// +#define FVE_E_AD_NO_VALUES _HRESULT_TYPEDEF_(0x8031000DL) + +// +// MessageId: FVE_E_AD_ATTR_NOT_SET +// +// MessageText: +// +// The attribute was not set. Verify that you are logged on with a domain account that has the ability to write information to Active Directory objects. +// +#define FVE_E_AD_ATTR_NOT_SET _HRESULT_TYPEDEF_(0x8031000EL) + +// +// MessageId: FVE_E_AD_GUID_NOT_FOUND +// +// MessageText: +// +// The specified attribute cannot be found in Active Directory Domain Services. Contact your domain administrator to verify that any required BitLocker Active Directory schema extensions have been installed. +// +#define FVE_E_AD_GUID_NOT_FOUND _HRESULT_TYPEDEF_(0x8031000FL) + +// +// MessageId: FVE_E_BAD_INFORMATION +// +// MessageText: +// +// The BitLocker metadata for the encrypted drive is not valid. You can attempt to repair the drive to restore access. +// +#define FVE_E_BAD_INFORMATION _HRESULT_TYPEDEF_(0x80310010L) + +// +// MessageId: FVE_E_TOO_SMALL +// +// MessageText: +// +// The drive cannot be encrypted because it does not have enough free space. Delete any unnecessary data on the drive to create additional free space and then try again. +// +#define FVE_E_TOO_SMALL _HRESULT_TYPEDEF_(0x80310011L) + +// +// MessageId: FVE_E_SYSTEM_VOLUME +// +// MessageText: +// +// The drive cannot be encrypted because it contains system boot information. Create a separate partition for use as the system drive that contains the boot information and a second partition for use as the operating system drive and then encrypt the operating system drive. +// +#define FVE_E_SYSTEM_VOLUME _HRESULT_TYPEDEF_(0x80310012L) + +// +// MessageId: FVE_E_FAILED_WRONG_FS +// +// MessageText: +// +// The drive cannot be encrypted because the file system is not supported. +// +#define FVE_E_FAILED_WRONG_FS _HRESULT_TYPEDEF_(0x80310013L) + +// +// MessageId: FVE_E_BAD_PARTITION_SIZE +// +// MessageText: +// +// The file system size is larger than the partition size in the partition table. This drive may be corrupt or may have been tampered with. To use it with BitLocker, you must reformat the partition. +// +#define FVE_E_BAD_PARTITION_SIZE _HRESULT_TYPEDEF_(0x80310014L) + +// +// MessageId: FVE_E_NOT_SUPPORTED +// +// MessageText: +// +// This drive cannot be encrypted. +// +#define FVE_E_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80310015L) + +// +// MessageId: FVE_E_BAD_DATA +// +// MessageText: +// +// The data is not valid. +// +#define FVE_E_BAD_DATA _HRESULT_TYPEDEF_(0x80310016L) + +// +// MessageId: FVE_E_VOLUME_NOT_BOUND +// +// MessageText: +// +// The data drive specified is not set to automatically unlock on the current computer and cannot be unlocked automatically. +// +#define FVE_E_VOLUME_NOT_BOUND _HRESULT_TYPEDEF_(0x80310017L) + +// +// MessageId: FVE_E_TPM_NOT_OWNED +// +// MessageText: +// +// You must initialize the Trusted Platform Module (TPM) before you can use BitLocker Drive Encryption. +// +#define FVE_E_TPM_NOT_OWNED _HRESULT_TYPEDEF_(0x80310018L) + +// +// MessageId: FVE_E_NOT_DATA_VOLUME +// +// MessageText: +// +// The operation attempted cannot be performed on an operating system drive. +// +#define FVE_E_NOT_DATA_VOLUME _HRESULT_TYPEDEF_(0x80310019L) + +// +// MessageId: FVE_E_AD_INSUFFICIENT_BUFFER +// +// MessageText: +// +// The buffer supplied to a function was insufficient to contain the returned data. Increase the buffer size before running the function again. +// +#define FVE_E_AD_INSUFFICIENT_BUFFER _HRESULT_TYPEDEF_(0x8031001AL) + +// +// MessageId: FVE_E_CONV_READ +// +// MessageText: +// +// A read operation failed while converting the drive. The drive was not converted. Please re-enable BitLocker. +// +#define FVE_E_CONV_READ _HRESULT_TYPEDEF_(0x8031001BL) + +// +// MessageId: FVE_E_CONV_WRITE +// +// MessageText: +// +// A write operation failed while converting the drive. The drive was not converted. Please re-enable BitLocker. +// +#define FVE_E_CONV_WRITE _HRESULT_TYPEDEF_(0x8031001CL) + +// +// MessageId: FVE_E_KEY_REQUIRED +// +// MessageText: +// +// One or more BitLocker key protectors are required. You cannot delete the last key on this drive. +// +#define FVE_E_KEY_REQUIRED _HRESULT_TYPEDEF_(0x8031001DL) + +// +// MessageId: FVE_E_CLUSTERING_NOT_SUPPORTED +// +// MessageText: +// +// Cluster configurations are not supported by BitLocker Drive Encryption. +// +#define FVE_E_CLUSTERING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8031001EL) + +// +// MessageId: FVE_E_VOLUME_BOUND_ALREADY +// +// MessageText: +// +// The drive specified is already configured to be automatically unlocked on the current computer. +// +#define FVE_E_VOLUME_BOUND_ALREADY _HRESULT_TYPEDEF_(0x8031001FL) + +// +// MessageId: FVE_E_OS_NOT_PROTECTED +// +// MessageText: +// +// The operating system drive is not protected by BitLocker Drive Encryption. +// +#define FVE_E_OS_NOT_PROTECTED _HRESULT_TYPEDEF_(0x80310020L) + +// +// MessageId: FVE_E_PROTECTION_DISABLED +// +// MessageText: +// +// BitLocker Drive Encryption has been suspended on this drive. All BitLocker key protectors configured for this drive are effectively disabled, and the drive will be automatically unlocked using an unencrypted (clear) key. +// +#define FVE_E_PROTECTION_DISABLED _HRESULT_TYPEDEF_(0x80310021L) + +// +// MessageId: FVE_E_RECOVERY_KEY_REQUIRED +// +// MessageText: +// +// The drive you are attempting to lock does not have any key protectors available for encryption because BitLocker protection is currently suspended. Re-enable BitLocker to lock this drive. +// +#define FVE_E_RECOVERY_KEY_REQUIRED _HRESULT_TYPEDEF_(0x80310022L) + +// +// MessageId: FVE_E_FOREIGN_VOLUME +// +// MessageText: +// +// BitLocker cannot use the Trusted Platform Module (TPM) to protect a data drive. TPM protection can only be used with the operating system drive. +// +#define FVE_E_FOREIGN_VOLUME _HRESULT_TYPEDEF_(0x80310023L) + +// +// MessageId: FVE_E_OVERLAPPED_UPDATE +// +// MessageText: +// +// The BitLocker metadata for the encrypted drive cannot be updated because it was locked for updating by another process. Please try this process again. +// +#define FVE_E_OVERLAPPED_UPDATE _HRESULT_TYPEDEF_(0x80310024L) + +// +// MessageId: FVE_E_TPM_SRK_AUTH_NOT_ZERO +// +// MessageText: +// +// The authorization data for the storage root key (SRK) of the Trusted Platform Module (TPM) is not zero and is therefore incompatible with BitLocker. Please initialize the TPM before attempting to use it with BitLocker. +// +#define FVE_E_TPM_SRK_AUTH_NOT_ZERO _HRESULT_TYPEDEF_(0x80310025L) + +// +// MessageId: FVE_E_FAILED_SECTOR_SIZE +// +// MessageText: +// +// The drive encryption algorithm cannot be used on this sector size. +// +#define FVE_E_FAILED_SECTOR_SIZE _HRESULT_TYPEDEF_(0x80310026L) + +// +// MessageId: FVE_E_FAILED_AUTHENTICATION +// +// MessageText: +// +// The drive cannot be unlocked with the key provided. Confirm that you have provided the correct key and try again. +// +#define FVE_E_FAILED_AUTHENTICATION _HRESULT_TYPEDEF_(0x80310027L) + +// +// MessageId: FVE_E_NOT_OS_VOLUME +// +// MessageText: +// +// The drive specified is not the operating system drive. +// +#define FVE_E_NOT_OS_VOLUME _HRESULT_TYPEDEF_(0x80310028L) + +// +// MessageId: FVE_E_AUTOUNLOCK_ENABLED +// +// MessageText: +// +// BitLocker Drive Encryption cannot be turned off on the operating system drive until the auto unlock feature has been disabled for the fixed data drives and removable data drives associated with this computer. +// +#define FVE_E_AUTOUNLOCK_ENABLED _HRESULT_TYPEDEF_(0x80310029L) + +// +// MessageId: FVE_E_WRONG_BOOTSECTOR +// +// MessageText: +// +// The system partition boot sector does not perform Trusted Platform Module (TPM) measurements. Use the Bootrec.exe tool in the Windows Recovery Environment to update or repair the boot sector. +// +#define FVE_E_WRONG_BOOTSECTOR _HRESULT_TYPEDEF_(0x8031002AL) + +// +// MessageId: FVE_E_WRONG_SYSTEM_FS +// +// MessageText: +// +// BitLocker Drive Encryption operating system drives must be formatted with the NTFS file system in order to be encrypted. Convert the drive to NTFS, and then turn on BitLocker. +// +#define FVE_E_WRONG_SYSTEM_FS _HRESULT_TYPEDEF_(0x8031002BL) + +// +// MessageId: FVE_E_POLICY_PASSWORD_REQUIRED +// +// MessageText: +// +// Group Policy settings require that a recovery password be specified before encrypting the drive. +// +#define FVE_E_POLICY_PASSWORD_REQUIRED _HRESULT_TYPEDEF_(0x8031002CL) + +// +// MessageId: FVE_E_CANNOT_SET_FVEK_ENCRYPTED +// +// MessageText: +// +// The drive encryption algorithm and key cannot be set on a previously encrypted drive. To encrypt this drive with BitLocker Drive Encryption, remove the previous encryption and then turn on BitLocker. +// +#define FVE_E_CANNOT_SET_FVEK_ENCRYPTED _HRESULT_TYPEDEF_(0x8031002DL) + +// +// MessageId: FVE_E_CANNOT_ENCRYPT_NO_KEY +// +// MessageText: +// +// BitLocker Drive Encryption cannot encrypt the specified drive because an encryption key is not available. Add a key protector to encrypt this drive. +// +#define FVE_E_CANNOT_ENCRYPT_NO_KEY _HRESULT_TYPEDEF_(0x8031002EL) + +// +// MessageId: FVE_E_BOOTABLE_CDDVD +// +// MessageText: +// +// BitLocker Drive Encryption detected bootable media (CD or DVD) in the computer. Remove the media and restart the computer before configuring BitLocker. +// +#define FVE_E_BOOTABLE_CDDVD _HRESULT_TYPEDEF_(0x80310030L) + +// +// MessageId: FVE_E_PROTECTOR_EXISTS +// +// MessageText: +// +// This key protector cannot be added. Only one key protector of this type is allowed for this drive. +// +#define FVE_E_PROTECTOR_EXISTS _HRESULT_TYPEDEF_(0x80310031L) + +// +// MessageId: FVE_E_RELATIVE_PATH +// +// MessageText: +// +// The recovery password file was not found because a relative path was specified. Recovery passwords must be saved to a fully qualified path. Environment variables configured on the computer can be used in the path. +// +#define FVE_E_RELATIVE_PATH _HRESULT_TYPEDEF_(0x80310032L) + +// +// MessageId: FVE_E_PROTECTOR_NOT_FOUND +// +// MessageText: +// +// The specified key protector was not found on the drive. Try another key protector. +// +#define FVE_E_PROTECTOR_NOT_FOUND _HRESULT_TYPEDEF_(0x80310033L) + +// +// MessageId: FVE_E_INVALID_KEY_FORMAT +// +// MessageText: +// +// The recovery key provided is corrupt and cannot be used to access the drive. An alternative recovery method, such as recovery password, a data recovery agent, or a backup version of the recovery key must be used to recover access to the drive. +// +#define FVE_E_INVALID_KEY_FORMAT _HRESULT_TYPEDEF_(0x80310034L) + +// +// MessageId: FVE_E_INVALID_PASSWORD_FORMAT +// +// MessageText: +// +// The format of the recovery password provided is invalid. BitLocker recovery passwords are 48 digits. Verify that the recovery password is in the correct format and then try again. +// +#define FVE_E_INVALID_PASSWORD_FORMAT _HRESULT_TYPEDEF_(0x80310035L) + +// +// MessageId: FVE_E_FIPS_RNG_CHECK_FAILED +// +// MessageText: +// +// The random number generator check test failed. +// +#define FVE_E_FIPS_RNG_CHECK_FAILED _HRESULT_TYPEDEF_(0x80310036L) + +// +// MessageId: FVE_E_FIPS_PREVENTS_RECOVERY_PASSWORD +// +// MessageText: +// +// The Group Policy setting requiring FIPS compliance prevents a local recovery password from being generated or used by BitLocker Drive Encryption. When operating in FIPS-compliant mode, BitLocker recovery options can be either a recovery key stored on a USB drive or recovery through a data recovery agent. +// +#define FVE_E_FIPS_PREVENTS_RECOVERY_PASSWORD _HRESULT_TYPEDEF_(0x80310037L) + +// +// MessageId: FVE_E_FIPS_PREVENTS_EXTERNAL_KEY_EXPORT +// +// MessageText: +// +// The Group Policy setting requiring FIPS compliance prevents the recovery password from being saved to Active Directory. When operating in FIPS-compliant mode, BitLocker recovery options can be either a recovery key stored on a USB drive or recovery through a data recovery agent. Check your Group Policy settings configuration. +// +#define FVE_E_FIPS_PREVENTS_EXTERNAL_KEY_EXPORT _HRESULT_TYPEDEF_(0x80310038L) + +// +// MessageId: FVE_E_NOT_DECRYPTED +// +// MessageText: +// +// The drive must be fully decrypted to complete this operation. +// +#define FVE_E_NOT_DECRYPTED _HRESULT_TYPEDEF_(0x80310039L) + +// +// MessageId: FVE_E_INVALID_PROTECTOR_TYPE +// +// MessageText: +// +// The key protector specified cannot be used for this operation. +// +#define FVE_E_INVALID_PROTECTOR_TYPE _HRESULT_TYPEDEF_(0x8031003AL) + +// +// MessageId: FVE_E_NO_PROTECTORS_TO_TEST +// +// MessageText: +// +// No key protectors exist on the drive to perform the hardware test. +// +#define FVE_E_NO_PROTECTORS_TO_TEST _HRESULT_TYPEDEF_(0x8031003BL) + +// +// MessageId: FVE_E_KEYFILE_NOT_FOUND +// +// MessageText: +// +// The BitLocker startup key or recovery password cannot be found on the USB device. Verify that you have the correct USB device, that the USB device is plugged into the computer on an active USB port, restart the computer, and then try again. If the problem persists, contact the computer manufacturer for BIOS upgrade instructions. +// +#define FVE_E_KEYFILE_NOT_FOUND _HRESULT_TYPEDEF_(0x8031003CL) + +// +// MessageId: FVE_E_KEYFILE_INVALID +// +// MessageText: +// +// The BitLocker startup key or recovery password file provided is corrupt or invalid. Verify that you have the correct startup key or recovery password file and try again. +// +#define FVE_E_KEYFILE_INVALID _HRESULT_TYPEDEF_(0x8031003DL) + +// +// MessageId: FVE_E_KEYFILE_NO_VMK +// +// MessageText: +// +// The BitLocker encryption key cannot be obtained from the startup key or recovery password. Verify that you have the correct startup key or recovery password and try again. +// +#define FVE_E_KEYFILE_NO_VMK _HRESULT_TYPEDEF_(0x8031003EL) + +// +// MessageId: FVE_E_TPM_DISABLED +// +// MessageText: +// +// The Trusted Platform Module (TPM) is disabled. The TPM must be enabled, initialized, and have valid ownership before it can be used with BitLocker Drive Encryption. +// +#define FVE_E_TPM_DISABLED _HRESULT_TYPEDEF_(0x8031003FL) + +// +// MessageId: FVE_E_NOT_ALLOWED_IN_SAFE_MODE +// +// MessageText: +// +// The BitLocker configuration of the specified drive cannot be managed because this computer is currently operating in Safe Mode. While in Safe Mode, BitLocker Drive Encryption can only be used for recovery purposes. +// +#define FVE_E_NOT_ALLOWED_IN_SAFE_MODE _HRESULT_TYPEDEF_(0x80310040L) + +// +// MessageId: FVE_E_TPM_INVALID_PCR +// +// MessageText: +// +// The Trusted Platform Module (TPM) was unable to unlock the drive. Either the system boot information changed after choosing BitLocker settings or the PIN did not match. If the problem persists after several tries, there may be a hardware or firmware problem. +// +#define FVE_E_TPM_INVALID_PCR _HRESULT_TYPEDEF_(0x80310041L) + +// +// MessageId: FVE_E_TPM_NO_VMK +// +// MessageText: +// +// The BitLocker encryption key cannot be obtained from the Trusted Platform Module (TPM). +// +#define FVE_E_TPM_NO_VMK _HRESULT_TYPEDEF_(0x80310042L) + +// +// MessageId: FVE_E_PIN_INVALID +// +// MessageText: +// +// The BitLocker encryption key cannot be obtained from the Trusted Platform Module (TPM) and PIN. +// +#define FVE_E_PIN_INVALID _HRESULT_TYPEDEF_(0x80310043L) + +// +// MessageId: FVE_E_AUTH_INVALID_APPLICATION +// +// MessageText: +// +// A boot application has changed since BitLocker Drive Encryption was enabled. +// +#define FVE_E_AUTH_INVALID_APPLICATION _HRESULT_TYPEDEF_(0x80310044L) + +// +// MessageId: FVE_E_AUTH_INVALID_CONFIG +// +// MessageText: +// +// The Boot Configuration Data (BCD) settings have changed since BitLocker Drive Encryption was enabled. +// +#define FVE_E_AUTH_INVALID_CONFIG _HRESULT_TYPEDEF_(0x80310045L) + +// +// MessageId: FVE_E_FIPS_DISABLE_PROTECTION_NOT_ALLOWED +// +// MessageText: +// +// The Group Policy setting requiring FIPS compliance prohibits the use of unencrypted keys, which prevents BitLocker from being suspended on this drive. Please contact your domain administrator for more information. +// +#define FVE_E_FIPS_DISABLE_PROTECTION_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310046L) + +// +// MessageId: FVE_E_FS_NOT_EXTENDED +// +// MessageText: +// +// This drive cannot be encrypted by BitLocker Drive Encryption because the file system does not extend to the end of the drive. Repartition this drive and then try again. +// +#define FVE_E_FS_NOT_EXTENDED _HRESULT_TYPEDEF_(0x80310047L) + +// +// MessageId: FVE_E_FIRMWARE_TYPE_NOT_SUPPORTED +// +// MessageText: +// +// BitLocker Drive Encryption cannot be enabled on the operating system drive. Contact the computer manufacturer for BIOS upgrade instructions. +// +#define FVE_E_FIRMWARE_TYPE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80310048L) + +// +// MessageId: FVE_E_NO_LICENSE +// +// MessageText: +// +// This version of Windows does not include BitLocker Drive Encryption. To use BitLocker Drive Encryption, please upgrade the operating system. +// +#define FVE_E_NO_LICENSE _HRESULT_TYPEDEF_(0x80310049L) + +// +// MessageId: FVE_E_NOT_ON_STACK +// +// MessageText: +// +// BitLocker Drive Encryption cannot be used because critical BitLocker system files are missing or corrupted. Use Windows Startup Repair to restore these files to your computer. +// +#define FVE_E_NOT_ON_STACK _HRESULT_TYPEDEF_(0x8031004AL) + +// +// MessageId: FVE_E_FS_MOUNTED +// +// MessageText: +// +// The drive cannot be locked when the drive is in use. +// +#define FVE_E_FS_MOUNTED _HRESULT_TYPEDEF_(0x8031004BL) + +// +// MessageId: FVE_E_TOKEN_NOT_IMPERSONATED +// +// MessageText: +// +// The access token associated with the current thread is not an impersonated token. +// +#define FVE_E_TOKEN_NOT_IMPERSONATED _HRESULT_TYPEDEF_(0x8031004CL) + +// +// MessageId: FVE_E_DRY_RUN_FAILED +// +// MessageText: +// +// The BitLocker encryption key cannot be obtained. Verify that the Trusted Platform Module (TPM) is enabled and ownership has been taken. If this computer does not have a TPM, verify that the USB drive is inserted and available. +// +#define FVE_E_DRY_RUN_FAILED _HRESULT_TYPEDEF_(0x8031004DL) + +// +// MessageId: FVE_E_REBOOT_REQUIRED +// +// MessageText: +// +// You must restart your computer before continuing with BitLocker Drive Encryption. +// +#define FVE_E_REBOOT_REQUIRED _HRESULT_TYPEDEF_(0x8031004EL) + +// +// MessageId: FVE_E_DEBUGGER_ENABLED +// +// MessageText: +// +// Drive encryption cannot occur while boot debugging is enabled. Use the bcdedit command-line tool to turn off boot debugging. +// +#define FVE_E_DEBUGGER_ENABLED _HRESULT_TYPEDEF_(0x8031004FL) + +// +// MessageId: FVE_E_RAW_ACCESS +// +// MessageText: +// +// No action was taken as BitLocker Drive Encryption is in raw access mode. +// +#define FVE_E_RAW_ACCESS _HRESULT_TYPEDEF_(0x80310050L) + +// +// MessageId: FVE_E_RAW_BLOCKED +// +// MessageText: +// +// BitLocker Drive Encryption cannot enter raw access mode for this drive because the drive is currently in use. +// +#define FVE_E_RAW_BLOCKED _HRESULT_TYPEDEF_(0x80310051L) + +// +// MessageId: FVE_E_BCD_APPLICATIONS_PATH_INCORRECT +// +// MessageText: +// +// The path specified in the Boot Configuration Data (BCD) for a BitLocker Drive Encryption integrity-protected application is incorrect. Please verify and correct your BCD settings and try again. +// +#define FVE_E_BCD_APPLICATIONS_PATH_INCORRECT _HRESULT_TYPEDEF_(0x80310052L) + +// +// MessageId: FVE_E_NOT_ALLOWED_IN_VERSION +// +// MessageText: +// +// BitLocker Drive Encryption can only be used for limited provisioning or recovery purposes when the computer is running in pre-installation or recovery environments. +// +#define FVE_E_NOT_ALLOWED_IN_VERSION _HRESULT_TYPEDEF_(0x80310053L) + +// +// MessageId: FVE_E_NO_AUTOUNLOCK_MASTER_KEY +// +// MessageText: +// +// The auto-unlock master key was not available from the operating system drive. +// +#define FVE_E_NO_AUTOUNLOCK_MASTER_KEY _HRESULT_TYPEDEF_(0x80310054L) + +// +// MessageId: FVE_E_MOR_FAILED +// +// MessageText: +// +// The system firmware failed to enable clearing of system memory when the computer was restarted. +// +#define FVE_E_MOR_FAILED _HRESULT_TYPEDEF_(0x80310055L) + +// +// MessageId: FVE_E_HIDDEN_VOLUME +// +// MessageText: +// +// The hidden drive cannot be encrypted. +// +#define FVE_E_HIDDEN_VOLUME _HRESULT_TYPEDEF_(0x80310056L) + +// +// MessageId: FVE_E_TRANSIENT_STATE +// +// MessageText: +// +// BitLocker encryption keys were ignored because the drive was in a transient state. +// +#define FVE_E_TRANSIENT_STATE _HRESULT_TYPEDEF_(0x80310057L) + +// +// MessageId: FVE_E_PUBKEY_NOT_ALLOWED +// +// MessageText: +// +// Public key based protectors are not allowed on this drive. +// +#define FVE_E_PUBKEY_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310058L) + +// +// MessageId: FVE_E_VOLUME_HANDLE_OPEN +// +// MessageText: +// +// BitLocker Drive Encryption is already performing an operation on this drive. Please complete all operations before continuing. +// +#define FVE_E_VOLUME_HANDLE_OPEN _HRESULT_TYPEDEF_(0x80310059L) + +// +// MessageId: FVE_E_NO_FEATURE_LICENSE +// +// MessageText: +// +// This version of Windows does not support this feature of BitLocker Drive Encryption. To use this feature, upgrade the operating system. +// +#define FVE_E_NO_FEATURE_LICENSE _HRESULT_TYPEDEF_(0x8031005AL) + +// +// MessageId: FVE_E_INVALID_STARTUP_OPTIONS +// +// MessageText: +// +// The Group Policy settings for BitLocker startup options are in conflict and cannot be applied. Contact your system administrator for more information. +// +#define FVE_E_INVALID_STARTUP_OPTIONS _HRESULT_TYPEDEF_(0x8031005BL) + +// +// MessageId: FVE_E_POLICY_RECOVERY_PASSWORD_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit the creation of a recovery password. +// +#define FVE_E_POLICY_RECOVERY_PASSWORD_NOT_ALLOWED _HRESULT_TYPEDEF_(0x8031005CL) + +// +// MessageId: FVE_E_POLICY_RECOVERY_PASSWORD_REQUIRED +// +// MessageText: +// +// Group Policy settings require the creation of a recovery password. +// +#define FVE_E_POLICY_RECOVERY_PASSWORD_REQUIRED _HRESULT_TYPEDEF_(0x8031005DL) + +// +// MessageId: FVE_E_POLICY_RECOVERY_KEY_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit the creation of a recovery key. +// +#define FVE_E_POLICY_RECOVERY_KEY_NOT_ALLOWED _HRESULT_TYPEDEF_(0x8031005EL) + +// +// MessageId: FVE_E_POLICY_RECOVERY_KEY_REQUIRED +// +// MessageText: +// +// Group Policy settings require the creation of a recovery key. +// +#define FVE_E_POLICY_RECOVERY_KEY_REQUIRED _HRESULT_TYPEDEF_(0x8031005FL) + +// +// MessageId: FVE_E_POLICY_STARTUP_PIN_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit the use of a PIN at startup. Please choose a different BitLocker startup option. +// +#define FVE_E_POLICY_STARTUP_PIN_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310060L) + +// +// MessageId: FVE_E_POLICY_STARTUP_PIN_REQUIRED +// +// MessageText: +// +// Group Policy settings require the use of a PIN at startup. Please choose this BitLocker startup option. +// +#define FVE_E_POLICY_STARTUP_PIN_REQUIRED _HRESULT_TYPEDEF_(0x80310061L) + +// +// MessageId: FVE_E_POLICY_STARTUP_KEY_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit the use of a startup key. Please choose a different BitLocker startup option. +// +#define FVE_E_POLICY_STARTUP_KEY_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310062L) + +// +// MessageId: FVE_E_POLICY_STARTUP_KEY_REQUIRED +// +// MessageText: +// +// Group Policy settings require the use of a startup key. Please choose this BitLocker startup option. +// +#define FVE_E_POLICY_STARTUP_KEY_REQUIRED _HRESULT_TYPEDEF_(0x80310063L) + +// +// MessageId: FVE_E_POLICY_STARTUP_PIN_KEY_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit the use of a startup key and PIN. Please choose a different BitLocker startup option. +// +#define FVE_E_POLICY_STARTUP_PIN_KEY_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310064L) + +// +// MessageId: FVE_E_POLICY_STARTUP_PIN_KEY_REQUIRED +// +// MessageText: +// +// Group Policy settings require the use of a startup key and PIN. Please choose this BitLocker startup option. +// +#define FVE_E_POLICY_STARTUP_PIN_KEY_REQUIRED _HRESULT_TYPEDEF_(0x80310065L) + +// +// MessageId: FVE_E_POLICY_STARTUP_TPM_NOT_ALLOWED +// +// MessageText: +// +// Group policy does not permit the use of TPM-only at startup. Please choose a different BitLocker startup option. +// +#define FVE_E_POLICY_STARTUP_TPM_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310066L) + +// +// MessageId: FVE_E_POLICY_STARTUP_TPM_REQUIRED +// +// MessageText: +// +// Group Policy settings require the use of TPM-only at startup. Please choose this BitLocker startup option. +// +#define FVE_E_POLICY_STARTUP_TPM_REQUIRED _HRESULT_TYPEDEF_(0x80310067L) + +// +// MessageId: FVE_E_POLICY_INVALID_PIN_LENGTH +// +// MessageText: +// +// The PIN provided does not meet minimum or maximum length requirements. +// +#define FVE_E_POLICY_INVALID_PIN_LENGTH _HRESULT_TYPEDEF_(0x80310068L) + +// +// MessageId: FVE_E_KEY_PROTECTOR_NOT_SUPPORTED +// +// MessageText: +// +// The key protector is not supported by the version of BitLocker Drive Encryption currently on the drive. Upgrade the drive to add the key protector. +// +#define FVE_E_KEY_PROTECTOR_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80310069L) + +// +// MessageId: FVE_E_POLICY_PASSPHRASE_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit the creation of a password. +// +#define FVE_E_POLICY_PASSPHRASE_NOT_ALLOWED _HRESULT_TYPEDEF_(0x8031006AL) + +// +// MessageId: FVE_E_POLICY_PASSPHRASE_REQUIRED +// +// MessageText: +// +// Group Policy settings require the creation of a password. +// +#define FVE_E_POLICY_PASSPHRASE_REQUIRED _HRESULT_TYPEDEF_(0x8031006BL) + +// +// MessageId: FVE_E_FIPS_PREVENTS_PASSPHRASE +// +// MessageText: +// +// The Group Policy setting requiring FIPS compliance prevents passwords from being generated or used. Please contact your system administrator for more information. +// +#define FVE_E_FIPS_PREVENTS_PASSPHRASE _HRESULT_TYPEDEF_(0x8031006CL) + +// +// MessageId: FVE_E_OS_VOLUME_PASSPHRASE_NOT_ALLOWED +// +// MessageText: +// +// A password cannot be added to the operating system drive. +// +#define FVE_E_OS_VOLUME_PASSPHRASE_NOT_ALLOWED _HRESULT_TYPEDEF_(0x8031006DL) + +// +// MessageId: FVE_E_INVALID_BITLOCKER_OID +// +// MessageText: +// +// The BitLocker object identifier (OID) on the drive appears to be invalid or corrupt. Use manage-BDE to reset the OID on this drive. +// +#define FVE_E_INVALID_BITLOCKER_OID _HRESULT_TYPEDEF_(0x8031006EL) + +// +// MessageId: FVE_E_VOLUME_TOO_SMALL +// +// MessageText: +// +// The drive is too small to be protected using BitLocker Drive Encryption. +// +#define FVE_E_VOLUME_TOO_SMALL _HRESULT_TYPEDEF_(0x8031006FL) + +// +// MessageId: FVE_E_DV_NOT_SUPPORTED_ON_FS +// +// MessageText: +// +// The selected discovery drive type is incompatible with the file system on the drive. BitLocker To Go discovery drives must be created on FAT formatted drives. +// +#define FVE_E_DV_NOT_SUPPORTED_ON_FS _HRESULT_TYPEDEF_(0x80310070L) + +// +// MessageId: FVE_E_DV_NOT_ALLOWED_BY_GP +// +// MessageText: +// +// The selected discovery drive type is not allowed by the computer's Group Policy settings. Verify that Group Policy settings allow the creation of discovery drives for use with BitLocker To Go. +// +#define FVE_E_DV_NOT_ALLOWED_BY_GP _HRESULT_TYPEDEF_(0x80310071L) + +// +// MessageId: FVE_E_POLICY_USER_CERTIFICATE_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit user certificates such as smart cards to be used with BitLocker Drive Encryption. +// +#define FVE_E_POLICY_USER_CERTIFICATE_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310072L) + +// +// MessageId: FVE_E_POLICY_USER_CERTIFICATE_REQUIRED +// +// MessageText: +// +// Group Policy settings require that you have a valid user certificate, such as a smart card, to be used with BitLocker Drive Encryption. +// +#define FVE_E_POLICY_USER_CERTIFICATE_REQUIRED _HRESULT_TYPEDEF_(0x80310073L) + +// +// MessageId: FVE_E_POLICY_USER_CERT_MUST_BE_HW +// +// MessageText: +// +// Group Policy settings requires that you use a smart card-based key protector with BitLocker Drive Encryption. +// +#define FVE_E_POLICY_USER_CERT_MUST_BE_HW _HRESULT_TYPEDEF_(0x80310074L) + +// +// MessageId: FVE_E_POLICY_USER_CONFIGURE_FDV_AUTOUNLOCK_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit BitLocker-protected fixed data drives to be automatically unlocked. +// +#define FVE_E_POLICY_USER_CONFIGURE_FDV_AUTOUNLOCK_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310075L) + +// +// MessageId: FVE_E_POLICY_USER_CONFIGURE_RDV_AUTOUNLOCK_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit BitLocker-protected removable data drives to be automatically unlocked. +// +#define FVE_E_POLICY_USER_CONFIGURE_RDV_AUTOUNLOCK_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310076L) + +// +// MessageId: FVE_E_POLICY_USER_CONFIGURE_RDV_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit you to configure BitLocker Drive Encryption on removable data drives. +// +#define FVE_E_POLICY_USER_CONFIGURE_RDV_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310077L) + +// +// MessageId: FVE_E_POLICY_USER_ENABLE_RDV_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit you to turn on BitLocker Drive Encryption on removable data drives. Please contact your system administrator if you need to turn on BitLocker. +// +#define FVE_E_POLICY_USER_ENABLE_RDV_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310078L) + +// +// MessageId: FVE_E_POLICY_USER_DISABLE_RDV_NOT_ALLOWED +// +// MessageText: +// +// Group Policy settings do not permit turning off BitLocker Drive Encryption on removable data drives. Please contact your system administrator if you need to turn off BitLocker. +// +#define FVE_E_POLICY_USER_DISABLE_RDV_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310079L) + +// +// MessageId: FVE_E_POLICY_INVALID_PASSPHRASE_LENGTH +// +// MessageText: +// +// Your password does not meet minimum password length requirements. By default, passwords must be at least 8 characters in length. Check with your system administrator for the password length requirement in your organization. +// +#define FVE_E_POLICY_INVALID_PASSPHRASE_LENGTH _HRESULT_TYPEDEF_(0x80310080L) + +// +// MessageId: FVE_E_POLICY_PASSPHRASE_TOO_SIMPLE +// +// MessageText: +// +// Your password does not meet the complexity requirements set by your system administrator. Try adding upper and lowercase characters, numbers, and symbols. +// +#define FVE_E_POLICY_PASSPHRASE_TOO_SIMPLE _HRESULT_TYPEDEF_(0x80310081L) + +// +// MessageId: FVE_E_RECOVERY_PARTITION +// +// MessageText: +// +// This drive cannot be encrypted because it is reserved for Windows System Recovery Options. +// +#define FVE_E_RECOVERY_PARTITION _HRESULT_TYPEDEF_(0x80310082L) + +// +// MessageId: FVE_E_POLICY_CONFLICT_FDV_RK_OFF_AUK_ON +// +// MessageText: +// +// BitLocker Drive Encryption cannot be applied to this drive because of conflicting Group Policy settings. BitLocker cannot be configured to automatically unlock fixed data drives when user recovery options are disabled. If you want BitLocker-protected fixed data drives to be automatically unlocked after key validation has occurred, please ask your system administrator to resolve the settings conflict before enabling BitLocker. +// +#define FVE_E_POLICY_CONFLICT_FDV_RK_OFF_AUK_ON _HRESULT_TYPEDEF_(0x80310083L) + +// +// MessageId: FVE_E_POLICY_CONFLICT_RDV_RK_OFF_AUK_ON +// +// MessageText: +// +// BitLocker Drive Encryption cannot be applied to this drive because of conflicting Group Policy settings. BitLocker cannot be configured to automatically unlock removable data drives when user recovery option are disabled. If you want BitLocker-protected removable data drives to be automatically unlocked after key validation has occurred, please ask your system administrator to resolve the settings conflict before enabling BitLocker. +// +#define FVE_E_POLICY_CONFLICT_RDV_RK_OFF_AUK_ON _HRESULT_TYPEDEF_(0x80310084L) + +// +// MessageId: FVE_E_NON_BITLOCKER_OID +// +// MessageText: +// +// The Enhanced Key Usage (EKU) attribute of the specified certificate does not permit it to be used for BitLocker Drive Encryption. BitLocker does not require that a certificate have an EKU attribute, but if one is configured it must be set to an object identifier (OID) that matches the OID configured for BitLocker. +// +#define FVE_E_NON_BITLOCKER_OID _HRESULT_TYPEDEF_(0x80310085L) + +// +// MessageId: FVE_E_POLICY_PROHIBITS_SELFSIGNED +// +// MessageText: +// +// BitLocker Drive Encryption cannot be applied to this drive as currently configured because of Group Policy settings. The certificate you provided for drive encryption is self-signed. Current Group Policy settings do not permit the use of self-signed certificates. Obtain a new certificate from your certification authority before attempting to enable BitLocker. +// +#define FVE_E_POLICY_PROHIBITS_SELFSIGNED _HRESULT_TYPEDEF_(0x80310086L) + +// +// MessageId: FVE_E_POLICY_CONFLICT_RO_AND_STARTUP_KEY_REQUIRED +// +// MessageText: +// +// BitLocker Encryption cannot be applied to this drive because of conflicting Group Policy settings. When write access to drives not protected by BitLocker is denied, the use of a USB startup key cannot be required. Please have your system administrator resolve these policy conflicts before attempting to enable BitLocker. +// +#define FVE_E_POLICY_CONFLICT_RO_AND_STARTUP_KEY_REQUIRED _HRESULT_TYPEDEF_(0x80310087L) + +// +// MessageId: FVE_E_CONV_RECOVERY_FAILED +// +// MessageText: +// +// BitLocker Drive Encryption failed to recover from an abruptly terminated conversion. This could be due to either all conversion logs being corrupted or the media being write-protected. +// +#define FVE_E_CONV_RECOVERY_FAILED _HRESULT_TYPEDEF_(0x80310088L) + +// +// MessageId: FVE_E_VIRTUALIZED_SPACE_TOO_BIG +// +// MessageText: +// +// The requested virtualization size is too big. +// +#define FVE_E_VIRTUALIZED_SPACE_TOO_BIG _HRESULT_TYPEDEF_(0x80310089L) + +// +// MessageId: FVE_E_POLICY_CONFLICT_OSV_RP_OFF_ADB_ON +// +// MessageText: +// +// BitLocker Drive Encryption cannot be applied to this drive because there are conflicting Group Policy settings for recovery options on operating system drives. Storing recovery information to Active Directory Domain Services cannot be required when the generation of recovery passwords is not permitted. Please have your system administrator resolve these policy conflicts before attempting to enable BitLocker. +// +#define FVE_E_POLICY_CONFLICT_OSV_RP_OFF_ADB_ON _HRESULT_TYPEDEF_(0x80310090L) + +// +// MessageId: FVE_E_POLICY_CONFLICT_FDV_RP_OFF_ADB_ON +// +// MessageText: +// +// BitLocker Drive Encryption cannot be applied to this drive because there are conflicting Group Policy settings for recovery options on fixed data drives. Storing recovery information to Active Directory Domain Services cannot be required when the generation of recovery passwords is not permitted. Please have your system administrator resolve these policy conflicts before attempting to enable BitLocker. +// +#define FVE_E_POLICY_CONFLICT_FDV_RP_OFF_ADB_ON _HRESULT_TYPEDEF_(0x80310091L) + +// +// MessageId: FVE_E_POLICY_CONFLICT_RDV_RP_OFF_ADB_ON +// +// MessageText: +// +// BitLocker Drive Encryption cannot be applied to this drive because there are conflicting Group Policy settings for recovery options on removable data drives. Storing recovery information to Active Directory Domain Services cannot be required when the generation of recovery passwords is not permitted. Please have your system administrator resolve these policy conflicts before attempting to enable BitLocker. +// +#define FVE_E_POLICY_CONFLICT_RDV_RP_OFF_ADB_ON _HRESULT_TYPEDEF_(0x80310092L) + +// +// MessageId: FVE_E_NON_BITLOCKER_KU +// +// MessageText: +// +// The Key Usage (KU) attribute of the specified certificate does not permit it to be used for BitLocker Drive Encryption. BitLocker does not require that a certificate have a KU attribute, but if one is configured it must be set to either Key Encipherment or Key Agreement. +// +#define FVE_E_NON_BITLOCKER_KU _HRESULT_TYPEDEF_(0x80310093L) + +// +// MessageId: FVE_E_PRIVATEKEY_AUTH_FAILED +// +// MessageText: +// +// The private key associated with the specified certificate cannot be authorized. The private key authorization was either not provided or the provided authorization was invalid. +// +#define FVE_E_PRIVATEKEY_AUTH_FAILED _HRESULT_TYPEDEF_(0x80310094L) + +// +// MessageId: FVE_E_REMOVAL_OF_DRA_FAILED +// +// MessageText: +// +// Removal of the data recovery agent certificate must be done using the Certificates snap-in. +// +#define FVE_E_REMOVAL_OF_DRA_FAILED _HRESULT_TYPEDEF_(0x80310095L) + +// +// MessageId: FVE_E_OPERATION_NOT_SUPPORTED_ON_VISTA_VOLUME +// +// MessageText: +// +// This drive was encrypted using the version of BitLocker Drive Encryption included with Windows Vista and Windows Server 2008 which does not support organizational identifiers. To specify organizational identifiers for this drive upgrade the drive encryption to the latest version using the "manage-bde -upgrade" command. +// +#define FVE_E_OPERATION_NOT_SUPPORTED_ON_VISTA_VOLUME _HRESULT_TYPEDEF_(0x80310096L) + +// +// MessageId: FVE_E_CANT_LOCK_AUTOUNLOCK_ENABLED_VOLUME +// +// MessageText: +// +// The drive cannot be locked because it is automatically unlocked on this computer. Remove the automatic unlock protector to lock this drive. +// +#define FVE_E_CANT_LOCK_AUTOUNLOCK_ENABLED_VOLUME _HRESULT_TYPEDEF_(0x80310097L) + +// +// MessageId: FVE_E_FIPS_HASH_KDF_NOT_ALLOWED +// +// MessageText: +// +// The default BitLocker Key Derivation Function SP800-56A for ECC smart cards is not supported by your smart card. The Group Policy setting requiring FIPS-compliance prevents BitLocker from using any other key derivation function for encryption. You have to use a FIPS compliant smart card in FIPS restricted environments. +// +#define FVE_E_FIPS_HASH_KDF_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80310098L) + +// +// MessageId: FVE_E_ENH_PIN_INVALID +// +// MessageText: +// +// The BitLocker encryption key could not be obtained from the Trusted Platform Module (TPM) and enhanced PIN. Try using a PIN containing only numerals. +// +#define FVE_E_ENH_PIN_INVALID _HRESULT_TYPEDEF_(0x80310099L) + +// +// MessageId: FVE_E_INVALID_PIN_CHARS +// +// MessageText: +// +// The requested TPM PIN contains invalid characters. +// +#define FVE_E_INVALID_PIN_CHARS _HRESULT_TYPEDEF_(0x8031009AL) + +// +// MessageId: FVE_E_INVALID_DATUM_TYPE +// +// MessageText: +// +// The management information stored on the drive contained an unknown type. If you are using an old version of Windows, try accessing the drive from the latest version. +// +#define FVE_E_INVALID_DATUM_TYPE _HRESULT_TYPEDEF_(0x8031009BL) + +// +// MessageId: FVE_E_EFI_ONLY +// +// MessageText: +// +// The feature is only supported on EFI systems. +// +#define FVE_E_EFI_ONLY _HRESULT_TYPEDEF_(0x8031009CL) + +// +// MessageId: FVE_E_MULTIPLE_NKP_CERTS +// +// MessageText: +// +// More than one Network Key Protector certificate has been found on the system. +// +#define FVE_E_MULTIPLE_NKP_CERTS _HRESULT_TYPEDEF_(0x8031009DL) + +// +// MessageId: FVE_E_REMOVAL_OF_NKP_FAILED +// +// MessageText: +// +// Removal of the Network Key Protector certificate must be done using the Certificates snap-in. +// +#define FVE_E_REMOVAL_OF_NKP_FAILED _HRESULT_TYPEDEF_(0x8031009EL) + +// +// MessageId: FVE_E_INVALID_NKP_CERT +// +// MessageText: +// +// An invalid certificate has been found in the Network Key Protector certificate store. +// +#define FVE_E_INVALID_NKP_CERT _HRESULT_TYPEDEF_(0x8031009FL) + +// +// MessageId: FVE_E_NO_EXISTING_PIN +// +// MessageText: +// +// This drive isn't protected with a PIN. +// +#define FVE_E_NO_EXISTING_PIN _HRESULT_TYPEDEF_(0x803100A0L) + +// +// MessageId: FVE_E_PROTECTOR_CHANGE_PIN_MISMATCH +// +// MessageText: +// +// Please enter the correct current PIN. +// +#define FVE_E_PROTECTOR_CHANGE_PIN_MISMATCH _HRESULT_TYPEDEF_(0x803100A1L) + +// +// MessageId: FVE_E_PIN_PROTECTOR_CHANGE_BY_STD_USER_DISALLOWED +// +// MessageText: +// +// You must be logged on with an administrator account to change the PIN. Click the link to reset the PIN as an administrator. +// +#define FVE_E_PIN_PROTECTOR_CHANGE_BY_STD_USER_DISALLOWED _HRESULT_TYPEDEF_(0x803100A2L) + +// +// MessageId: FVE_E_PROTECTOR_CHANGE_MAX_PIN_CHANGE_ATTEMPTS_REACHED +// +// MessageText: +// +// BitLocker has disabled PIN changes after too many failed requests. Click the link to reset the PIN as an administrator. +// +#define FVE_E_PROTECTOR_CHANGE_MAX_PIN_CHANGE_ATTEMPTS_REACHED _HRESULT_TYPEDEF_(0x803100A3L) + +// +// MessageId: FVE_E_POLICY_PASSPHRASE_REQUIRES_ASCII +// +// MessageText: +// +// Your system administrator requires that passwords contain only printable ASCII characters. This includes unaccented letters (A-Z, a-z), numbers (0-9), space, arithmetic signs, common punctuation, separators, and the following symbols: # $ & @ ^ _ ~ . +// +#define FVE_E_POLICY_PASSPHRASE_REQUIRES_ASCII _HRESULT_TYPEDEF_(0x803100A4L) + +// +// MessageId: FVE_E_FULL_ENCRYPTION_NOT_ALLOWED_ON_TP_STORAGE +// +// MessageText: +// +// BitLocker Drive Encryption only supports Used Space Only encryption on thin provisioned storage. +// +#define FVE_E_FULL_ENCRYPTION_NOT_ALLOWED_ON_TP_STORAGE _HRESULT_TYPEDEF_(0x803100A5L) + +// +// MessageId: FVE_E_WIPE_NOT_ALLOWED_ON_TP_STORAGE +// +// MessageText: +// +// BitLocker Drive Encryption does not support wiping free space on thin provisioned storage. +// +#define FVE_E_WIPE_NOT_ALLOWED_ON_TP_STORAGE _HRESULT_TYPEDEF_(0x803100A6L) + +// +// MessageId: FVE_E_KEY_LENGTH_NOT_SUPPORTED_BY_EDRIVE +// +// MessageText: +// +// The required authentication key length is not supported by the drive. +// +#define FVE_E_KEY_LENGTH_NOT_SUPPORTED_BY_EDRIVE _HRESULT_TYPEDEF_(0x803100A7L) + +// +// MessageId: FVE_E_NO_EXISTING_PASSPHRASE +// +// MessageText: +// +// This drive isn't protected with a password. +// +#define FVE_E_NO_EXISTING_PASSPHRASE _HRESULT_TYPEDEF_(0x803100A8L) + +// +// MessageId: FVE_E_PROTECTOR_CHANGE_PASSPHRASE_MISMATCH +// +// MessageText: +// +// Please enter the correct current password. +// +#define FVE_E_PROTECTOR_CHANGE_PASSPHRASE_MISMATCH _HRESULT_TYPEDEF_(0x803100A9L) + +// +// MessageId: FVE_E_PASSPHRASE_TOO_LONG +// +// MessageText: +// +// The password cannot exceed 256 characters. +// +#define FVE_E_PASSPHRASE_TOO_LONG _HRESULT_TYPEDEF_(0x803100AAL) + +// +// MessageId: FVE_E_NO_PASSPHRASE_WITH_TPM +// +// MessageText: +// +// A password key protector cannot be added because a TPM protector exists on the drive. +// +#define FVE_E_NO_PASSPHRASE_WITH_TPM _HRESULT_TYPEDEF_(0x803100ABL) + +// +// MessageId: FVE_E_NO_TPM_WITH_PASSPHRASE +// +// MessageText: +// +// A TPM key protector cannot be added because a password protector exists on the drive. +// +#define FVE_E_NO_TPM_WITH_PASSPHRASE _HRESULT_TYPEDEF_(0x803100ACL) + +// +// MessageId: FVE_E_NOT_ALLOWED_ON_CSV_STACK +// +// MessageText: +// +// This command can only be performed from the coordinator node for the specified CSV volume. +// +#define FVE_E_NOT_ALLOWED_ON_CSV_STACK _HRESULT_TYPEDEF_(0x803100ADL) + +// +// MessageId: FVE_E_NOT_ALLOWED_ON_CLUSTER +// +// MessageText: +// +// This command cannot be performed on a volume when it is part of a cluster. +// +#define FVE_E_NOT_ALLOWED_ON_CLUSTER _HRESULT_TYPEDEF_(0x803100AEL) + +// +// MessageId: FVE_E_EDRIVE_NO_FAILOVER_TO_SW +// +// MessageText: +// +// BitLocker did not revert to using BitLocker software encryption due to group policy configuration. +// +#define FVE_E_EDRIVE_NO_FAILOVER_TO_SW _HRESULT_TYPEDEF_(0x803100AFL) + +// +// MessageId: FVE_E_EDRIVE_BAND_IN_USE +// +// MessageText: +// +// The drive cannot be managed by BitLocker because the drive's hardware encryption feature is already in use. +// +#define FVE_E_EDRIVE_BAND_IN_USE _HRESULT_TYPEDEF_(0x803100B0L) + +// +// MessageId: FVE_E_EDRIVE_DISALLOWED_BY_GP +// +// MessageText: +// +// Group Policy settings do not allow the use of hardware-based encryption. +// +#define FVE_E_EDRIVE_DISALLOWED_BY_GP _HRESULT_TYPEDEF_(0x803100B1L) + +// +// MessageId: FVE_E_EDRIVE_INCOMPATIBLE_VOLUME +// +// MessageText: +// +// The drive specified does not support hardware-based encryption. +// +#define FVE_E_EDRIVE_INCOMPATIBLE_VOLUME _HRESULT_TYPEDEF_(0x803100B2L) + +// +// MessageId: FVE_E_NOT_ALLOWED_TO_UPGRADE_WHILE_CONVERTING +// +// MessageText: +// +// BitLocker cannot be upgraded during disk encryption or decryption. +// +#define FVE_E_NOT_ALLOWED_TO_UPGRADE_WHILE_CONVERTING _HRESULT_TYPEDEF_(0x803100B3L) + +// +// MessageId: FVE_E_EDRIVE_DV_NOT_SUPPORTED +// +// MessageText: +// +// Discovery Volumes are not supported for volumes using hardware encryption. +// +#define FVE_E_EDRIVE_DV_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803100B4L) + +// +// MessageId: FVE_E_NO_PREBOOT_KEYBOARD_DETECTED +// +// MessageText: +// +// No pre-boot keyboard detected. The user may not be able to provide required input to unlock the volume. +// +#define FVE_E_NO_PREBOOT_KEYBOARD_DETECTED _HRESULT_TYPEDEF_(0x803100B5L) + +// +// MessageId: FVE_E_NO_PREBOOT_KEYBOARD_OR_WINRE_DETECTED +// +// MessageText: +// +// No pre-boot keyboard or Windows Recovery Environment detected. The user may not be able to provide required input to unlock the volume. +// +#define FVE_E_NO_PREBOOT_KEYBOARD_OR_WINRE_DETECTED _HRESULT_TYPEDEF_(0x803100B6L) + +// +// MessageId: FVE_E_POLICY_REQUIRES_STARTUP_PIN_ON_TOUCH_DEVICE +// +// MessageText: +// +// Group Policy settings require the creation of a startup PIN, but a pre-boot keyboard is not available on this device. The user may not be able to provide required input to unlock the volume. +// +#define FVE_E_POLICY_REQUIRES_STARTUP_PIN_ON_TOUCH_DEVICE _HRESULT_TYPEDEF_(0x803100B7L) + +// +// MessageId: FVE_E_POLICY_REQUIRES_RECOVERY_PASSWORD_ON_TOUCH_DEVICE +// +// MessageText: +// +// Group Policy settings require the creation of a recovery password, but neither a pre-boot keyboard nor Windows Recovery Environment is available on this device. The user may not be able to provide required input to unlock the volume. +// +#define FVE_E_POLICY_REQUIRES_RECOVERY_PASSWORD_ON_TOUCH_DEVICE _HRESULT_TYPEDEF_(0x803100B8L) + +// +// MessageId: FVE_E_WIPE_CANCEL_NOT_APPLICABLE +// +// MessageText: +// +// Wipe of free space is not currently taking place. +// +#define FVE_E_WIPE_CANCEL_NOT_APPLICABLE _HRESULT_TYPEDEF_(0x803100B9L) + +// +// MessageId: FVE_E_SECUREBOOT_DISABLED +// +// MessageText: +// +// BitLocker cannot use Secure Boot for platform integrity because Secure Boot has been disabled. +// +#define FVE_E_SECUREBOOT_DISABLED _HRESULT_TYPEDEF_(0x803100BAL) + +// +// MessageId: FVE_E_SECUREBOOT_CONFIGURATION_INVALID +// +// MessageText: +// +// BitLocker cannot use Secure Boot for platform integrity because the Secure Boot configuration does not meet the requirements for BitLocker. +// +#define FVE_E_SECUREBOOT_CONFIGURATION_INVALID _HRESULT_TYPEDEF_(0x803100BBL) + +// +// MessageId: FVE_E_EDRIVE_DRY_RUN_FAILED +// +// MessageText: +// +// Your computer doesn't support BitLocker hardware-based encryption. Check with your computer manufacturer for firmware updates. +// +#define FVE_E_EDRIVE_DRY_RUN_FAILED _HRESULT_TYPEDEF_(0x803100BCL) + +// +// MessageId: FVE_E_SHADOW_COPY_PRESENT +// +// MessageText: +// +// BitLocker cannot be enabled on the volume because it contains a Volume Shadow Copy. Remove all Volume Shadow Copies before encrypting the volume. +// +#define FVE_E_SHADOW_COPY_PRESENT _HRESULT_TYPEDEF_(0x803100BDL) + +// +// MessageId: FVE_E_POLICY_INVALID_ENHANCED_BCD_SETTINGS +// +// MessageText: +// +// BitLocker Drive Encryption cannot be applied to this drive because the Group Policy setting for Enhanced Boot Configuration Data contains invalid data. Please have your system administrator resolve this invalid configuration before attempting to enable BitLocker. +// +#define FVE_E_POLICY_INVALID_ENHANCED_BCD_SETTINGS _HRESULT_TYPEDEF_(0x803100BEL) + +// +// MessageId: FVE_E_EDRIVE_INCOMPATIBLE_FIRMWARE +// +// MessageText: +// +// This PC's firmware is not capable of supporting hardware encryption. +// +#define FVE_E_EDRIVE_INCOMPATIBLE_FIRMWARE _HRESULT_TYPEDEF_(0x803100BFL) + +// +// MessageId: FVE_E_PROTECTOR_CHANGE_MAX_PASSPHRASE_CHANGE_ATTEMPTS_REACHED +// +// MessageText: +// +// BitLocker has disabled password changes after too many failed requests. Click the link to reset the password as an administrator. +// +#define FVE_E_PROTECTOR_CHANGE_MAX_PASSPHRASE_CHANGE_ATTEMPTS_REACHED _HRESULT_TYPEDEF_(0x803100C0L) + +// +// MessageId: FVE_E_PASSPHRASE_PROTECTOR_CHANGE_BY_STD_USER_DISALLOWED +// +// MessageText: +// +// You must be logged on with an administrator account to change the password. Click the link to reset the password as an administrator. +// +#define FVE_E_PASSPHRASE_PROTECTOR_CHANGE_BY_STD_USER_DISALLOWED _HRESULT_TYPEDEF_(0x803100C1L) + +// +// MessageId: FVE_E_LIVEID_ACCOUNT_SUSPENDED +// +// MessageText: +// +// BitLocker cannot save the recovery password because the specified Microsoft account is Suspended. +// +#define FVE_E_LIVEID_ACCOUNT_SUSPENDED _HRESULT_TYPEDEF_(0x803100C2L) + +// +// MessageId: FVE_E_LIVEID_ACCOUNT_BLOCKED +// +// MessageText: +// +// BitLocker cannot save the recovery password because the specified Microsoft account is Blocked. +// +#define FVE_E_LIVEID_ACCOUNT_BLOCKED _HRESULT_TYPEDEF_(0x803100C3L) + +// +// MessageId: FVE_E_NOT_PROVISIONED_ON_ALL_VOLUMES +// +// MessageText: +// +// This PC is not provisioned to support device encryption. Please enable BitLocker on all volumes to comply with device encryption policy. +// +#define FVE_E_NOT_PROVISIONED_ON_ALL_VOLUMES _HRESULT_TYPEDEF_(0x803100C4L) + +// +// MessageId: FVE_E_DE_FIXED_DATA_NOT_SUPPORTED +// +// MessageText: +// +// This PC cannot support device encryption because unencrypted fixed data volumes are present. +// +#define FVE_E_DE_FIXED_DATA_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803100C5L) + +// +// MessageId: FVE_E_DE_HARDWARE_NOT_COMPLIANT +// +// MessageText: +// +// This PC does not meet the hardware requirements to support device encryption. +// +#define FVE_E_DE_HARDWARE_NOT_COMPLIANT _HRESULT_TYPEDEF_(0x803100C6L) + +// +// MessageId: FVE_E_DE_WINRE_NOT_CONFIGURED +// +// MessageText: +// +// This PC cannot support device encryption because WinRE is not properly configured. +// +#define FVE_E_DE_WINRE_NOT_CONFIGURED _HRESULT_TYPEDEF_(0x803100C7L) + +// +// MessageId: FVE_E_DE_PROTECTION_SUSPENDED +// +// MessageText: +// +// Protection is enabled on the volume but has been suspended. This is likely to have happened due to an update being applied to your system. Please try again after a reboot. +// +#define FVE_E_DE_PROTECTION_SUSPENDED _HRESULT_TYPEDEF_(0x803100C8L) + +// +// MessageId: FVE_E_DE_OS_VOLUME_NOT_PROTECTED +// +// MessageText: +// +// This PC is not provisioned to support device encryption. +// +#define FVE_E_DE_OS_VOLUME_NOT_PROTECTED _HRESULT_TYPEDEF_(0x803100C9L) + +// +// MessageId: FVE_E_DE_DEVICE_LOCKEDOUT +// +// MessageText: +// +// Device Lock has been triggered due to too many incorrect password attempts. +// +#define FVE_E_DE_DEVICE_LOCKEDOUT _HRESULT_TYPEDEF_(0x803100CAL) + +// +// MessageId: FVE_E_DE_PROTECTION_NOT_YET_ENABLED +// +// MessageText: +// +// Protection has not been enabled on the volume. Enabling protection requires a connected account. If you already have a connected account and are seeing this error, please refer to the event log for more information. +// +#define FVE_E_DE_PROTECTION_NOT_YET_ENABLED _HRESULT_TYPEDEF_(0x803100CBL) + +// +// MessageId: FVE_E_INVALID_PIN_CHARS_DETAILED +// +// MessageText: +// +// Your PIN can only contain numbers from 0 to 9. +// +#define FVE_E_INVALID_PIN_CHARS_DETAILED _HRESULT_TYPEDEF_(0x803100CCL) + +// +// MessageId: FVE_E_DEVICE_LOCKOUT_COUNTER_UNAVAILABLE +// +// MessageText: +// +// BitLocker cannot use hardware replay protection because no counter is available on your PC. +// +#define FVE_E_DEVICE_LOCKOUT_COUNTER_UNAVAILABLE _HRESULT_TYPEDEF_(0x803100CDL) + +// +// MessageId: FVE_E_DEVICELOCKOUT_COUNTER_MISMATCH +// +// MessageText: +// +// Device Lockout state validation failed due to counter mismatch. +// +#define FVE_E_DEVICELOCKOUT_COUNTER_MISMATCH _HRESULT_TYPEDEF_(0x803100CEL) + +// +// MessageId: FVE_E_BUFFER_TOO_LARGE +// +// MessageText: +// +// The input buffer is too large. +// +#define FVE_E_BUFFER_TOO_LARGE _HRESULT_TYPEDEF_(0x803100CFL) + +// +// MessageId: FVE_E_NO_SUCH_CAPABILITY_ON_TARGET +// +// MessageText: +// +// The target of an invocation does not support requested capability. +// +#define FVE_E_NO_SUCH_CAPABILITY_ON_TARGET _HRESULT_TYPEDEF_(0x803100D0L) + +// +// MessageId: FVE_E_DE_PREVENTED_FOR_OS +// +// MessageText: +// +// Device encryption is currently blocked by this PC's configuration. +// +#define FVE_E_DE_PREVENTED_FOR_OS _HRESULT_TYPEDEF_(0x803100D1L) + +// +// MessageId: FVE_E_DE_VOLUME_OPTED_OUT +// +// MessageText: +// +// This drive has been opted out of device encryption. +// +#define FVE_E_DE_VOLUME_OPTED_OUT _HRESULT_TYPEDEF_(0x803100D2L) + +// +// MessageId: FVE_E_DE_VOLUME_NOT_SUPPORTED +// +// MessageText: +// +// Device encryption isn't available for this drive. +// +#define FVE_E_DE_VOLUME_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803100D3L) + +// +// MessageId: FVE_E_EOW_NOT_SUPPORTED_IN_VERSION +// +// MessageText: +// +// The encrypt on write mode for BitLocker is not supported in this version of Windows. You can turn on BitLocker without using the encrypt on write mode. +// +#define FVE_E_EOW_NOT_SUPPORTED_IN_VERSION _HRESULT_TYPEDEF_(0x803100D4L) + +// +// MessageId: FVE_E_ADBACKUP_NOT_ENABLED +// +// MessageText: +// +// Group policy prevents you from backing up your recovery password to Active Directory for this drive type. For more info, contact your system administrator. +// +#define FVE_E_ADBACKUP_NOT_ENABLED _HRESULT_TYPEDEF_(0x803100D5L) + +// +// MessageId: FVE_E_VOLUME_EXTEND_PREVENTS_EOW_DECRYPT +// +// MessageText: +// +// Device encryption can't be turned off while this drive is being encrypted. Please try again later. +// +#define FVE_E_VOLUME_EXTEND_PREVENTS_EOW_DECRYPT _HRESULT_TYPEDEF_(0x803100D6L) + +// +// MessageId: FVE_E_NOT_DE_VOLUME +// +// MessageText: +// +// This action isn't supported because this drive isn't automatically managed with device encryption. +// +#define FVE_E_NOT_DE_VOLUME _HRESULT_TYPEDEF_(0x803100D7L) + +// +// MessageId: FVE_E_PROTECTION_CANNOT_BE_DISABLED +// +// MessageText: +// +// BitLocker can't be suspended on this drive until the next restart. +// +#define FVE_E_PROTECTION_CANNOT_BE_DISABLED _HRESULT_TYPEDEF_(0x803100D8L) + +// +// MessageId: FVE_E_OSV_KSR_NOT_ALLOWED +// +// MessageText: +// +// BitLocker Drive Encryption policy does not allow KSR operation with protected OS volume. +// +#define FVE_E_OSV_KSR_NOT_ALLOWED _HRESULT_TYPEDEF_(0x803100D9L) + +// +// MessageId: FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_OS_DRIVE +// +// MessageText: +// +// BitLocker recovery password rotation cannot be performed because backup policy for BitLocker recovery information is not set to required for the OS drive. +// +#define FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_OS_DRIVE _HRESULT_TYPEDEF_(0x803100DAL) + +// +// MessageId: FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_FIXED_DRIVE +// +// MessageText: +// +// BitLocker recovery password rotation cannot be performed because backup policy for BitLocker recovery information is not set to required for fixed data drives. +// +#define FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_FIXED_DRIVE _HRESULT_TYPEDEF_(0x803100DBL) + +// +// MessageId: FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_REMOVABLE_DRIVE +// +// MessageText: +// +// BitLocker recovery password rotation cannot be performed because backup policy for BitLocker recovery information is not set to required for removable data drives +// +#define FVE_E_AD_BACKUP_REQUIRED_POLICY_NOT_SET_REMOVABLE_DRIVE _HRESULT_TYPEDEF_(0x803100DCL) + +// +// MessageId: FVE_E_KEY_ROTATION_NOT_SUPPORTED +// +// MessageText: +// +// BitLocker recovery password rotation not supported. +// +#define FVE_E_KEY_ROTATION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803100DDL) + +// +// MessageId: FVE_E_EXECUTE_REQUEST_SENT_TOO_SOON +// +// MessageText: +// +// A server issued BitLocker recovery password rotation was denied because requests must be 15 minutes apart. +// +#define FVE_E_EXECUTE_REQUEST_SENT_TOO_SOON _HRESULT_TYPEDEF_(0x803100DEL) + +// +// MessageId: FVE_E_KEY_ROTATION_NOT_ENABLED +// +// MessageText: +// +// BitLocker recovery password key rotation policy is not enabled. +// +#define FVE_E_KEY_ROTATION_NOT_ENABLED _HRESULT_TYPEDEF_(0x803100DFL) + +// +// MessageId: FVE_E_DEVICE_NOT_JOINED_AAD +// +// MessageText: +// +// BitLocker recovery password key rotation could not be performed because the device is neither Azure AD joined nor Hybrid Azure AD joined. +// +#define FVE_E_DEVICE_NOT_JOINED_AAD _HRESULT_TYPEDEF_(0x803100E0L) + +// +// MessageId: FVE_E_AAD_ENDPOINT_BUSY +// +// MessageText: +// +// BitLocker recovery key backup endpoint is busy and cannot perform requested operation. Please retry after sometime. +// +#define FVE_E_AAD_ENDPOINT_BUSY _HRESULT_TYPEDEF_(0x803100E1L) + +// +// MessageId: FVE_E_INVALID_NBP_CERT +// +// MessageText: +// +// An invalid certificate has been found in the Network Boot Protector certificate store. +// +#define FVE_E_INVALID_NBP_CERT _HRESULT_TYPEDEF_(0x803100E2L) + +// +// MessageId: FVE_E_EDRIVE_BAND_ENUMERATION_FAILED +// +// MessageText: +// +// BitLocker can't enable encryption on this hardware encrypting drive volume because the drive bands couldn't be enumerated. +// +#define FVE_E_EDRIVE_BAND_ENUMERATION_FAILED _HRESULT_TYPEDEF_(0x803100E3L) + +// +// MessageId: FVE_E_POLICY_ON_RDV_EXCLUSION_LIST +// +// MessageText: +// +// This removable data drive has been excluded from device encryption by BitLocker Drive Encryption policy. +// +#define FVE_E_POLICY_ON_RDV_EXCLUSION_LIST _HRESULT_TYPEDEF_(0x803100E4L) + +// +// MessageId: FVE_E_PREDICTED_TPM_PROTECTOR_NOT_SUPPORTED +// +// MessageText: +// +// Adding BitLocker predicted TPM based protector is not supported. +// +#define FVE_E_PREDICTED_TPM_PROTECTOR_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803100E5L) + +// +// MessageId: FVE_E_SETUP_TPM_CALLBACK_NOT_SUPPORTED +// +// MessageText: +// +// Registeration for TPM callback is not supported. +// +#define FVE_E_SETUP_TPM_CALLBACK_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803100E6L) + +// +// MessageId: FVE_E_TPM_CONTEXT_SETUP_NOT_SUPPORTED +// +// MessageText: +// +// Creating new TPM context is not supported. +// +#define FVE_E_TPM_CONTEXT_SETUP_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803100E7L) + +// +// MessageId: FVE_E_UPDATE_INVALID_CONFIG +// +// MessageText: +// +// The Secure Boot update was not applied due to a known incompatibility with the current BitLocker configuration. +// +#define FVE_E_UPDATE_INVALID_CONFIG _HRESULT_TYPEDEF_(0x803100E8L) + +// +// MessageId: FVE_E_AAD_SERVER_FAIL_RETRY_AFTER_AAD +// +// MessageText: +// +// The AAD request has failed and it has been advised to backoff to prevent throttling. Device will retry soon. +// +#define FVE_E_AAD_SERVER_FAIL_RETRY_AFTER_AAD _HRESULT_TYPEDEF_(0x803100E9L) + +// +// MessageId: FVE_E_AAD_SERVER_FAIL_BACKOFF_AAD +// +// MessageText: +// +// The AAD request has failed due to server issues and it has been advised to backoff to prevent throttling. Device will retry soon. +// +#define FVE_E_AAD_SERVER_FAIL_BACKOFF_AAD _HRESULT_TYPEDEF_(0x803100EAL) + +// +// MessageId: FVE_E_DATASET_FULL +// +// MessageText: +// +// This operation cannot be completed because dataset is full. +// +#define FVE_E_DATASET_FULL _HRESULT_TYPEDEF_(0x803100EBL) + +// +// MessageId: FVE_E_METADATA_FULL +// +// MessageText: +// +// This operation cannot be completed because BitLocker Drive Encryption metadata area is full. Consider removing unnecessary key protectors for this drive. +// +#define FVE_E_METADATA_FULL _HRESULT_TYPEDEF_(0x803100ECL) + +// +// MessageId: FVE_E_DISCOVERY_VOLUME_NOT_SUPPORTED +// +// MessageText: +// +// BitLocker Drive Encryption no longer supports discovery volumes. +// +#define FVE_E_DISCOVERY_VOLUME_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803100EDL) + +// +// MessageId: FVE_E_EXCEED_LIMIT_RP +// +// MessageText: +// +// BitLocker Drive Encryption cannot add another recovery password because the maximum number of recovery passwords for this volume has been reached. Consider removing unnecessary recovery passwords for this volume. +// +#define FVE_E_EXCEED_LIMIT_RP _HRESULT_TYPEDEF_(0x803100EEL) + +// +// MessageId: FVE_E_NO_BACKUP_ACCOUNT +// +// MessageText: +// +// There is no backup account information available for the specified recovery password. +// +#define FVE_E_NO_BACKUP_ACCOUNT _HRESULT_TYPEDEF_(0x803100EFL) + +// +// MessageId: FVE_E_SUSPEND_PROTECTION_NOT_ALLOWED +// +// MessageText: +// +// The operation failed because BitLocker Drive Encryption cannot suspend protection due to policy. +// +#define FVE_E_SUSPEND_PROTECTION_NOT_ALLOWED _HRESULT_TYPEDEF_(0x803100F0L) + +// +// MessageId: FVE_E_CANNOT_PREDICT_PCR7 +// +// MessageText: +// +// BitLocker Drive Encryption cannot predictively seal TPM protector to PCR7. +// +#define FVE_E_CANNOT_PREDICT_PCR7 _HRESULT_TYPEDEF_(0x803100F1L) + +// +// MessageId: FVE_E_ENTRY_ALREADY_EXISTS +// +// MessageText: +// +// The operation failed because an entry with the given ID already exists. +// +#define FVE_E_ENTRY_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803100F2L) + +// +// MessageId: FVE_E_ENTRY_NOT_FOUND +// +// MessageText: +// +// The operation failed because an entry with the given ID was not found. +// +#define FVE_E_ENTRY_NOT_FOUND _HRESULT_TYPEDEF_(0x803100F3L) + +// +// MessageId: FVE_E_DATUM_PARTIALLY_INVALID +// +// MessageText: +// +// The datum is invalid in its current state, but may be fixed so that it is valid. +// +#define FVE_E_DATUM_PARTIALLY_INVALID _HRESULT_TYPEDEF_(0x803100F4L) + +// +// MessageId: FVE_E_DATASET_TPM_DATUMS_INCONSISTENT +// +// MessageText: +// +// The dataset contains TPM datums that are inconsistent. +// +#define FVE_E_DATASET_TPM_DATUMS_INCONSISTENT _HRESULT_TYPEDEF_(0x803100F5L) + +// +// MessageId: FVE_E_SECURE_BOOT_BINDINGS_OUT_OF_SYNC +// +// MessageText: +// +// The TPM protector contains conflicting information about whether the binding is a Secure Boot binding. +// +#define FVE_E_SECURE_BOOT_BINDINGS_OUT_OF_SYNC _HRESULT_TYPEDEF_(0x803100F6L) + +// +// MessageId: FVE_E_SECURE_BOOT_BINDING_DATA_OUT_OF_SYNC +// +// MessageText: +// +// The dataset contains conflicting information about whether the TPM protector binding is a Secure Boot binding. +// +#define FVE_E_SECURE_BOOT_BINDING_DATA_OUT_OF_SYNC _HRESULT_TYPEDEF_(0x803100F7L) + +// +// MessageId: FVE_E_ORPHANED_TPM_BINDING_DATUM +// +// MessageText: +// +// The dataset contains a TPM binding without associated binding information. Try removing and re-adding the TPM protector. +// +#define FVE_E_ORPHANED_TPM_BINDING_DATUM _HRESULT_TYPEDEF_(0x803100F8L) + +// +// MessageId: FVE_E_BAD_TPM_DATUM_ASSOCIATION +// +// MessageText: +// +// The dataset contains TPM binding information incorrectly associated to multiple TPM bindings. Try re-enabling BitLocker. +// +#define FVE_E_BAD_TPM_DATUM_ASSOCIATION _HRESULT_TYPEDEF_(0x803100F9L) + +// +// MessageId: FVE_E_FINAL_TPM_PCR_VALUES_MATCH +// +// MessageText: +// +// The compared final TPM PCR values match. +// +#define FVE_E_FINAL_TPM_PCR_VALUES_MATCH _HRESULT_TYPEDEF_(0x803100FAL) + +// +// MessageId: FVE_E_MATCHING_PCRS_TPM_FAILURE +// +// MessageText: +// +// BitLocker failed to obtain the key from the TPM due to an unforseen TPM failure. +// +#define FVE_E_MATCHING_PCRS_TPM_FAILURE _HRESULT_TYPEDEF_(0x803100FBL) + +// +// MessageId: FVE_E_BACKUP_CACHE_NOT_ALLOCATED +// +// MessageText: +// +// No backup cache was allocated for Device Encryption. At least one backup cache needs to be allocated. +// +#define FVE_E_BACKUP_CACHE_NOT_ALLOCATED _HRESULT_TYPEDEF_(0x803100FCL) + +// +// MessageId: FVE_E_MSA_BACKUP_CACHE_NOT_ALLOCATED +// +// MessageText: +// +// MSA backup cache is not allocated for Device Encryption. +// +#define FVE_E_MSA_BACKUP_CACHE_NOT_ALLOCATED _HRESULT_TYPEDEF_(0x803100FDL) + +// +// MessageId: FVE_E_AD_BACKUP_CACHE_NOT_ALLOCATED +// +// MessageText: +// +// AD backup cache is not allocated for Device Encryption. +// +#define FVE_E_AD_BACKUP_CACHE_NOT_ALLOCATED _HRESULT_TYPEDEF_(0x803100FEL) + +// +// MessageId: FVE_E_GENERAL_TPM_FAILURE +// +// MessageText: +// +// BitLocker encountered a problem communicating with the TPM at boot. +// +#define FVE_E_GENERAL_TPM_FAILURE _HRESULT_TYPEDEF_(0x803100FFL) + +// +// MessageId: FVE_E_TPM_NONEXISTENT +// +// MessageText: +// +// A TPM was not available for BitLocker at boot. +// +#define FVE_E_TPM_NONEXISTENT _HRESULT_TYPEDEF_(0x80310100L) + +// +// MessageId: FVE_E_NO_PCR_BOOT_LOCK_BOUNDARY +// +// MessageText: +// +// BitLocker could not enforce the PCR 11 cap event boundary. +// +#define FVE_E_NO_PCR_BOOT_LOCK_BOUNDARY _HRESULT_TYPEDEF_(0xC0310101L) + +// +// MessageId: FVE_E_PCR_BOOT_LOCK_BOUNDARY +// +// MessageText: +// +// BitLocker prevented an attempt to create a TPM binding for a PCR that contains events extended into the TPM after the BitLocker boot lock event. +// +#define FVE_E_PCR_BOOT_LOCK_BOUNDARY _HRESULT_TYPEDEF_(0xC0310102L) + +// +// MessageId: FVE_E_FW_UPDATE_TPM_BINDINGS_NOT_REFRESHED +// +// MessageText: +// +// The firmware update was not applied because BitLocker TPM bindings do not include the latest measurements. Restart your computer to retry. +// +#define FVE_E_FW_UPDATE_TPM_BINDINGS_NOT_REFRESHED _HRESULT_TYPEDEF_(0xC0310103L) + +// +// MessageId: FVE_E_EXCEED_MAX_LIMIT_RP_IN_MEID +// +// MessageText: +// +// We couldn't save your BitLocker recovery information to your Microsoft Entra ID because the maximum number of recovery passwords have already been saved for this device. Please try again later. +// +#define FVE_E_EXCEED_MAX_LIMIT_RP_IN_MEID _HRESULT_TYPEDEF_(0xC0310104L) + +// +// MessageId: FVE_E_INVALID_TPM_BINDING_CONFIGURATION +// +// MessageText: +// +// The BitLocker TPM binding configuration is invalid. +// +#define FVE_E_INVALID_TPM_BINDING_CONFIGURATION _HRESULT_TYPEDEF_(0xC0310105L) + +// +// MessageId: FVE_E_TOO_MANY_TPM_BINDINGS +// +// MessageText: +// +// The BitLocker TPM protector cannot fit all the necessary TPM bindings. +// +#define FVE_E_TOO_MANY_TPM_BINDINGS _HRESULT_TYPEDEF_(0xC0310106L) + +// +// MessageId: FVE_E_TPM_BINDING_ASSOCIATION_FAILURE +// +// MessageText: +// +// A BitLocker TPM protector binding is badly formatted. +// +#define FVE_E_TPM_BINDING_ASSOCIATION_FAILURE _HRESULT_TYPEDEF_(0xC0310107L) + +// +// MessageId: FVE_E_ORPHANED_PCR_DIGEST_DATUM +// +// MessageText: +// +// The dataset contains binding information without an associated TPM binding. Try re-enabling BitLocker. +// +#define FVE_E_ORPHANED_PCR_DIGEST_DATUM _HRESULT_TYPEDEF_(0xC0310108L) + +// +// MessageId: FVE_E_HW_ACCELERATED_ENCRYPTION_NOT_ALLOWED +// +// MessageText: +// +// BitLocker is prevented from using hardware accelerated encryption. +// +#define FVE_E_HW_ACCELERATED_ENCRYPTION_NOT_ALLOWED _HRESULT_TYPEDEF_(0xC0310109L) + +// +// MessageId: FVE_E_NO_MATCHING_TPM_BINDINGS +// +// MessageText: +// +// BitLocker failed to find a TPM binding that can be used to unlock the drive. +// +#define FVE_E_NO_MATCHING_TPM_BINDINGS _HRESULT_TYPEDEF_(0xC031010AL) + +// +// MessageId: FVE_E_TPMPV2_USED_FAILURE +// +// MessageText: +// +// BitLocker failed to unlock the drive using a V2 TPM protector. +// +#define FVE_E_TPMPV2_USED_FAILURE _HRESULT_TYPEDEF_(0xC031010BL) + +// +// MessageId: FVE_E_NO_TPM_BINDINGS +// +// MessageText: +// +// BitLocker failed to find any TPM bindings that can be used to unlock the drive. +// +#define FVE_E_NO_TPM_BINDINGS _HRESULT_TYPEDEF_(0xC031010CL) + +// +// MessageId: FVE_E_FW_UPDATE_PCRS_BLOCK +// +// MessageText: +// +// The firmware update was not applied. To finish installation of the firmware, please suspend BitLocker and restart your device. +// +#define FVE_E_FW_UPDATE_PCRS_BLOCK _HRESULT_TYPEDEF_(0xC031010EL) + +// +// MessageId: FVE_E_FW_UPDATE_PCRS_NOT_EXCLUDED +// +// MessageText: +// +// The firmware update was not applied because TPM PCRs affected by the firmware installation were not excluded by BitLocker's TPM protector. Restart your computer to retry. +// +#define FVE_E_FW_UPDATE_PCRS_NOT_EXCLUDED _HRESULT_TYPEDEF_(0xC031010FL) + +// +// MessageId: FVE_E_DEVICE_NOT_JOINED +// +// MessageText: +// +// BitLocker recovery password key rotation could not be performed because the device is neither Entra ID joined nor Hybrid Entra ID joined. +// +#define FVE_E_DEVICE_NOT_JOINED _HRESULT_TYPEDEF_(0x80310110L) + +// +// MessageId: FVE_E_AAD_SERVER_FAIL_RETRY_AFTER +// +// MessageText: +// +// The Entra ID request has failed and it has been advised to backoff to prevent throttling. Device will retry soon. +// +#define FVE_E_AAD_SERVER_FAIL_RETRY_AFTER _HRESULT_TYPEDEF_(0x80310111L) + +// +// MessageId: FVE_E_AAD_SERVER_FAIL_BACKOFF +// +// MessageText: +// +// The Entra ID request has failed due to server issues and it has been advised to backoff to prevent throttling. Device will retry soon. +// +#define FVE_E_AAD_SERVER_FAIL_BACKOFF _HRESULT_TYPEDEF_(0x80310112L) + +// +// MessageId: FVE_E_FAILED_TO_UNWRAP_HW_WRAPPED_KEY +// +// MessageText: +// +// The hardware crypto key manager failed to unwrap a hardware wrapped key. +// +#define FVE_E_FAILED_TO_UNWRAP_HW_WRAPPED_KEY _HRESULT_TYPEDEF_(0xC0310113L) + +// +// MessageId: FVE_E_HARDWARE_CRYPTO_ACCELERATOR_NOT_FIPS_COMPLIANT +// +// MessageText: +// +// FIPS compliance is required, but the hardware crypto accelerator does not report compliance with this standard. +// +#define FVE_E_HARDWARE_CRYPTO_ACCELERATOR_NOT_FIPS_COMPLIANT _HRESULT_TYPEDEF_(0xC0310114L) + +// +// MessageId: FVE_E_HARDWARE_CRYPTO_KEY_MANAGER_NOT_FIPS_COMPLIANT +// +// MessageText: +// +// FIPS compliance is required, but the hardware crypto key manager does not report compliance with this standard. +// +#define FVE_E_HARDWARE_CRYPTO_KEY_MANAGER_NOT_FIPS_COMPLIANT _HRESULT_TYPEDEF_(0xC0310115L) + +// +// MessageId: FVE_E_TPM_PCRS_DO_NOT_MATCH_LOG +// +// MessageText: +// +// The TPM PCR values did not match what was calculated from the TCG log. +// +#define FVE_E_TPM_PCRS_DO_NOT_MATCH_LOG _HRESULT_TYPEDEF_(0xC0310116L) + +// +// ======================================================= +// Windows Filtering Platform Error Messages +// ======================================================= +// +// +// MessageId: FWP_E_CALLOUT_NOT_FOUND +// +// MessageText: +// +// The callout does not exist. +// +#define FWP_E_CALLOUT_NOT_FOUND _HRESULT_TYPEDEF_(0x80320001L) + +// +// MessageId: FWP_E_CONDITION_NOT_FOUND +// +// MessageText: +// +// The filter condition does not exist. +// +#define FWP_E_CONDITION_NOT_FOUND _HRESULT_TYPEDEF_(0x80320002L) + +// +// MessageId: FWP_E_FILTER_NOT_FOUND +// +// MessageText: +// +// The filter does not exist. +// +#define FWP_E_FILTER_NOT_FOUND _HRESULT_TYPEDEF_(0x80320003L) + +// +// MessageId: FWP_E_LAYER_NOT_FOUND +// +// MessageText: +// +// The layer does not exist. +// +#define FWP_E_LAYER_NOT_FOUND _HRESULT_TYPEDEF_(0x80320004L) + +// +// MessageId: FWP_E_PROVIDER_NOT_FOUND +// +// MessageText: +// +// The provider does not exist. +// +#define FWP_E_PROVIDER_NOT_FOUND _HRESULT_TYPEDEF_(0x80320005L) + +// +// MessageId: FWP_E_PROVIDER_CONTEXT_NOT_FOUND +// +// MessageText: +// +// The provider context does not exist. +// +#define FWP_E_PROVIDER_CONTEXT_NOT_FOUND _HRESULT_TYPEDEF_(0x80320006L) + +// +// MessageId: FWP_E_SUBLAYER_NOT_FOUND +// +// MessageText: +// +// The sublayer does not exist. +// +#define FWP_E_SUBLAYER_NOT_FOUND _HRESULT_TYPEDEF_(0x80320007L) + +// +// MessageId: FWP_E_NOT_FOUND +// +// MessageText: +// +// The object does not exist. +// +#define FWP_E_NOT_FOUND _HRESULT_TYPEDEF_(0x80320008L) + +// +// MessageId: FWP_E_ALREADY_EXISTS +// +// MessageText: +// +// An object with that GUID or LUID already exists. +// +#define FWP_E_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x80320009L) + +// +// MessageId: FWP_E_IN_USE +// +// MessageText: +// +// The object is referenced by other objects so cannot be deleted. +// +#define FWP_E_IN_USE _HRESULT_TYPEDEF_(0x8032000AL) + +// +// MessageId: FWP_E_DYNAMIC_SESSION_IN_PROGRESS +// +// MessageText: +// +// The call is not allowed from within a dynamic session. +// +#define FWP_E_DYNAMIC_SESSION_IN_PROGRESS _HRESULT_TYPEDEF_(0x8032000BL) + +// +// MessageId: FWP_E_WRONG_SESSION +// +// MessageText: +// +// The call was made from the wrong session so cannot be completed. +// +#define FWP_E_WRONG_SESSION _HRESULT_TYPEDEF_(0x8032000CL) + +// +// MessageId: FWP_E_NO_TXN_IN_PROGRESS +// +// MessageText: +// +// The call must be made from within an explicit transaction. +// +#define FWP_E_NO_TXN_IN_PROGRESS _HRESULT_TYPEDEF_(0x8032000DL) + +// +// MessageId: FWP_E_TXN_IN_PROGRESS +// +// MessageText: +// +// The call is not allowed from within an explicit transaction. +// +#define FWP_E_TXN_IN_PROGRESS _HRESULT_TYPEDEF_(0x8032000EL) + +// +// MessageId: FWP_E_TXN_ABORTED +// +// MessageText: +// +// The explicit transaction has been forcibly cancelled. +// +#define FWP_E_TXN_ABORTED _HRESULT_TYPEDEF_(0x8032000FL) + +// +// MessageId: FWP_E_SESSION_ABORTED +// +// MessageText: +// +// The session has been cancelled. +// +#define FWP_E_SESSION_ABORTED _HRESULT_TYPEDEF_(0x80320010L) + +// +// MessageId: FWP_E_INCOMPATIBLE_TXN +// +// MessageText: +// +// The call is not allowed from within a read-only transaction. +// +#define FWP_E_INCOMPATIBLE_TXN _HRESULT_TYPEDEF_(0x80320011L) + +// +// MessageId: FWP_E_TIMEOUT +// +// MessageText: +// +// The call timed out while waiting to acquire the transaction lock. +// +#define FWP_E_TIMEOUT _HRESULT_TYPEDEF_(0x80320012L) + +// +// MessageId: FWP_E_NET_EVENTS_DISABLED +// +// MessageText: +// +// Collection of network diagnostic events is disabled. +// +#define FWP_E_NET_EVENTS_DISABLED _HRESULT_TYPEDEF_(0x80320013L) + +// +// MessageId: FWP_E_INCOMPATIBLE_LAYER +// +// MessageText: +// +// The operation is not supported by the specified layer. +// +#define FWP_E_INCOMPATIBLE_LAYER _HRESULT_TYPEDEF_(0x80320014L) + +// +// MessageId: FWP_E_KM_CLIENTS_ONLY +// +// MessageText: +// +// The call is allowed for kernel-mode callers only. +// +#define FWP_E_KM_CLIENTS_ONLY _HRESULT_TYPEDEF_(0x80320015L) + +// +// MessageId: FWP_E_LIFETIME_MISMATCH +// +// MessageText: +// +// The call tried to associate two objects with incompatible lifetimes. +// +#define FWP_E_LIFETIME_MISMATCH _HRESULT_TYPEDEF_(0x80320016L) + +// +// MessageId: FWP_E_BUILTIN_OBJECT +// +// MessageText: +// +// The object is built in so cannot be deleted. +// +#define FWP_E_BUILTIN_OBJECT _HRESULT_TYPEDEF_(0x80320017L) + +// +// MessageId: FWP_E_TOO_MANY_CALLOUTS +// +// MessageText: +// +// The maximum number of callouts has been reached. +// +#define FWP_E_TOO_MANY_CALLOUTS _HRESULT_TYPEDEF_(0x80320018L) + +// +// MessageId: FWP_E_NOTIFICATION_DROPPED +// +// MessageText: +// +// A notification could not be delivered because a message queue is at its maximum capacity. +// +#define FWP_E_NOTIFICATION_DROPPED _HRESULT_TYPEDEF_(0x80320019L) + +// +// MessageId: FWP_E_TRAFFIC_MISMATCH +// +// MessageText: +// +// The traffic parameters do not match those for the security association context. +// +#define FWP_E_TRAFFIC_MISMATCH _HRESULT_TYPEDEF_(0x8032001AL) + +// +// MessageId: FWP_E_INCOMPATIBLE_SA_STATE +// +// MessageText: +// +// The call is not allowed for the current security association state. +// +#define FWP_E_INCOMPATIBLE_SA_STATE _HRESULT_TYPEDEF_(0x8032001BL) + +// +// MessageId: FWP_E_NULL_POINTER +// +// MessageText: +// +// A required pointer is null. +// +#define FWP_E_NULL_POINTER _HRESULT_TYPEDEF_(0x8032001CL) + +// +// MessageId: FWP_E_INVALID_ENUMERATOR +// +// MessageText: +// +// An enumerator is not valid. +// +#define FWP_E_INVALID_ENUMERATOR _HRESULT_TYPEDEF_(0x8032001DL) + +// +// MessageId: FWP_E_INVALID_FLAGS +// +// MessageText: +// +// The flags field contains an invalid value. +// +#define FWP_E_INVALID_FLAGS _HRESULT_TYPEDEF_(0x8032001EL) + +// +// MessageId: FWP_E_INVALID_NET_MASK +// +// MessageText: +// +// A network mask is not valid. +// +#define FWP_E_INVALID_NET_MASK _HRESULT_TYPEDEF_(0x8032001FL) + +// +// MessageId: FWP_E_INVALID_RANGE +// +// MessageText: +// +// An FWP_RANGE is not valid. +// +#define FWP_E_INVALID_RANGE _HRESULT_TYPEDEF_(0x80320020L) + +// +// MessageId: FWP_E_INVALID_INTERVAL +// +// MessageText: +// +// The time interval is not valid. +// +#define FWP_E_INVALID_INTERVAL _HRESULT_TYPEDEF_(0x80320021L) + +// +// MessageId: FWP_E_ZERO_LENGTH_ARRAY +// +// MessageText: +// +// An array that must contain at least one element is zero length. +// +#define FWP_E_ZERO_LENGTH_ARRAY _HRESULT_TYPEDEF_(0x80320022L) + +// +// MessageId: FWP_E_NULL_DISPLAY_NAME +// +// MessageText: +// +// The displayData.name field cannot be null. +// +#define FWP_E_NULL_DISPLAY_NAME _HRESULT_TYPEDEF_(0x80320023L) + +// +// MessageId: FWP_E_INVALID_ACTION_TYPE +// +// MessageText: +// +// The action type is not one of the allowed action types for a filter. +// +#define FWP_E_INVALID_ACTION_TYPE _HRESULT_TYPEDEF_(0x80320024L) + +// +// MessageId: FWP_E_INVALID_WEIGHT +// +// MessageText: +// +// The filter weight is not valid. +// +#define FWP_E_INVALID_WEIGHT _HRESULT_TYPEDEF_(0x80320025L) + +// +// MessageId: FWP_E_MATCH_TYPE_MISMATCH +// +// MessageText: +// +// A filter condition contains a match type that is not compatible with the operands. +// +#define FWP_E_MATCH_TYPE_MISMATCH _HRESULT_TYPEDEF_(0x80320026L) + +// +// MessageId: FWP_E_TYPE_MISMATCH +// +// MessageText: +// +// An FWP_VALUE or FWPM_CONDITION_VALUE is of the wrong type. +// +#define FWP_E_TYPE_MISMATCH _HRESULT_TYPEDEF_(0x80320027L) + +// +// MessageId: FWP_E_OUT_OF_BOUNDS +// +// MessageText: +// +// An integer value is outside the allowed range. +// +#define FWP_E_OUT_OF_BOUNDS _HRESULT_TYPEDEF_(0x80320028L) + +// +// MessageId: FWP_E_RESERVED +// +// MessageText: +// +// A reserved field is non-zero. +// +#define FWP_E_RESERVED _HRESULT_TYPEDEF_(0x80320029L) + +// +// MessageId: FWP_E_DUPLICATE_CONDITION +// +// MessageText: +// +// A filter cannot contain multiple conditions operating on a single field. +// +#define FWP_E_DUPLICATE_CONDITION _HRESULT_TYPEDEF_(0x8032002AL) + +// +// MessageId: FWP_E_DUPLICATE_KEYMOD +// +// MessageText: +// +// A policy cannot contain the same keying module more than once. +// +#define FWP_E_DUPLICATE_KEYMOD _HRESULT_TYPEDEF_(0x8032002BL) + +// +// MessageId: FWP_E_ACTION_INCOMPATIBLE_WITH_LAYER +// +// MessageText: +// +// The action type is not compatible with the layer. +// +#define FWP_E_ACTION_INCOMPATIBLE_WITH_LAYER _HRESULT_TYPEDEF_(0x8032002CL) + +// +// MessageId: FWP_E_ACTION_INCOMPATIBLE_WITH_SUBLAYER +// +// MessageText: +// +// The action type is not compatible with the sublayer. +// +#define FWP_E_ACTION_INCOMPATIBLE_WITH_SUBLAYER _HRESULT_TYPEDEF_(0x8032002DL) + +// +// MessageId: FWP_E_CONTEXT_INCOMPATIBLE_WITH_LAYER +// +// MessageText: +// +// The raw context or the provider context is not compatible with the layer. +// +#define FWP_E_CONTEXT_INCOMPATIBLE_WITH_LAYER _HRESULT_TYPEDEF_(0x8032002EL) + +// +// MessageId: FWP_E_CONTEXT_INCOMPATIBLE_WITH_CALLOUT +// +// MessageText: +// +// The raw context or the provider context is not compatible with the callout. +// +#define FWP_E_CONTEXT_INCOMPATIBLE_WITH_CALLOUT _HRESULT_TYPEDEF_(0x8032002FL) + +// +// MessageId: FWP_E_INCOMPATIBLE_AUTH_METHOD +// +// MessageText: +// +// The authentication method is not compatible with the policy type. +// +#define FWP_E_INCOMPATIBLE_AUTH_METHOD _HRESULT_TYPEDEF_(0x80320030L) + +// +// MessageId: FWP_E_INCOMPATIBLE_DH_GROUP +// +// MessageText: +// +// The Diffie-Hellman group is not compatible with the policy type. +// +#define FWP_E_INCOMPATIBLE_DH_GROUP _HRESULT_TYPEDEF_(0x80320031L) + +// +// MessageId: FWP_E_EM_NOT_SUPPORTED +// +// MessageText: +// +// An IKE policy cannot contain an Extended Mode policy. +// +#define FWP_E_EM_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80320032L) + +// +// MessageId: FWP_E_NEVER_MATCH +// +// MessageText: +// +// The enumeration template or subscription will never match any objects. +// +#define FWP_E_NEVER_MATCH _HRESULT_TYPEDEF_(0x80320033L) + +// +// MessageId: FWP_E_PROVIDER_CONTEXT_MISMATCH +// +// MessageText: +// +// The provider context is of the wrong type. +// +#define FWP_E_PROVIDER_CONTEXT_MISMATCH _HRESULT_TYPEDEF_(0x80320034L) + +// +// MessageId: FWP_E_INVALID_PARAMETER +// +// MessageText: +// +// The parameter is incorrect. +// +#define FWP_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80320035L) + +// +// MessageId: FWP_E_TOO_MANY_SUBLAYERS +// +// MessageText: +// +// The maximum number of sublayers has been reached. +// +#define FWP_E_TOO_MANY_SUBLAYERS _HRESULT_TYPEDEF_(0x80320036L) + +// +// MessageId: FWP_E_CALLOUT_NOTIFICATION_FAILED +// +// MessageText: +// +// The notification function for a callout returned an error. +// +#define FWP_E_CALLOUT_NOTIFICATION_FAILED _HRESULT_TYPEDEF_(0x80320037L) + +// +// MessageId: FWP_E_INVALID_AUTH_TRANSFORM +// +// MessageText: +// +// The IPsec authentication transform is not valid. +// +#define FWP_E_INVALID_AUTH_TRANSFORM _HRESULT_TYPEDEF_(0x80320038L) + +// +// MessageId: FWP_E_INVALID_CIPHER_TRANSFORM +// +// MessageText: +// +// The IPsec cipher transform is not valid. +// +#define FWP_E_INVALID_CIPHER_TRANSFORM _HRESULT_TYPEDEF_(0x80320039L) + +// +// MessageId: FWP_E_INCOMPATIBLE_CIPHER_TRANSFORM +// +// MessageText: +// +// The IPsec cipher transform is not compatible with the policy. +// +#define FWP_E_INCOMPATIBLE_CIPHER_TRANSFORM _HRESULT_TYPEDEF_(0x8032003AL) + +// +// MessageId: FWP_E_INVALID_TRANSFORM_COMBINATION +// +// MessageText: +// +// The combination of IPsec transform types is not valid. +// +#define FWP_E_INVALID_TRANSFORM_COMBINATION _HRESULT_TYPEDEF_(0x8032003BL) + +// +// MessageId: FWP_E_DUPLICATE_AUTH_METHOD +// +// MessageText: +// +// A policy cannot contain the same auth method more than once. +// +#define FWP_E_DUPLICATE_AUTH_METHOD _HRESULT_TYPEDEF_(0x8032003CL) + +// +// MessageId: FWP_E_INVALID_TUNNEL_ENDPOINT +// +// MessageText: +// +// A tunnel endpoint configuration is invalid. +// +#define FWP_E_INVALID_TUNNEL_ENDPOINT _HRESULT_TYPEDEF_(0x8032003DL) + +// +// MessageId: FWP_E_L2_DRIVER_NOT_READY +// +// MessageText: +// +// The WFP MAC Layers are not ready. +// +#define FWP_E_L2_DRIVER_NOT_READY _HRESULT_TYPEDEF_(0x8032003EL) + +// +// MessageId: FWP_E_KEY_DICTATOR_ALREADY_REGISTERED +// +// MessageText: +// +// A key manager capable of key dictation is already registered +// +#define FWP_E_KEY_DICTATOR_ALREADY_REGISTERED _HRESULT_TYPEDEF_(0x8032003FL) + +// +// MessageId: FWP_E_KEY_DICTATION_INVALID_KEYING_MATERIAL +// +// MessageText: +// +// A key manager dictated invalid keys +// +#define FWP_E_KEY_DICTATION_INVALID_KEYING_MATERIAL _HRESULT_TYPEDEF_(0x80320040L) + +// +// MessageId: FWP_E_CONNECTIONS_DISABLED +// +// MessageText: +// +// The BFE IPsec Connection Tracking is disabled. +// +#define FWP_E_CONNECTIONS_DISABLED _HRESULT_TYPEDEF_(0x80320041L) + +// +// MessageId: FWP_E_INVALID_DNS_NAME +// +// MessageText: +// +// The DNS name is invalid. +// +#define FWP_E_INVALID_DNS_NAME _HRESULT_TYPEDEF_(0x80320042L) + +// +// MessageId: FWP_E_STILL_ON +// +// MessageText: +// +// The engine option is still enabled due to other configuration settings. +// +#define FWP_E_STILL_ON _HRESULT_TYPEDEF_(0x80320043L) + +// +// MessageId: FWP_E_IKEEXT_NOT_RUNNING +// +// MessageText: +// +// The IKEEXT service is not running. This service only runs when there is IPsec policy applied to the machine. +// +#define FWP_E_IKEEXT_NOT_RUNNING _HRESULT_TYPEDEF_(0x80320044L) + +// +// MessageId: FWP_E_DROP_NOICMP +// +// MessageText: +// +// The packet should be dropped, no ICMP should be sent. +// +#define FWP_E_DROP_NOICMP _HRESULT_TYPEDEF_(0x80320104L) + + +/////////////////////////////////////////////////// +// // +// Web Services Platform Error Codes // +// // +/////////////////////////////////////////////////// + +// +// MessageId: WS_S_ASYNC +// +// MessageText: +// +// The function call is completing asynchronously. +// +#define WS_S_ASYNC _HRESULT_TYPEDEF_(0x003D0000L) + +// +// MessageId: WS_S_END +// +// MessageText: +// +// There are no more messages available on the channel. +// +#define WS_S_END _HRESULT_TYPEDEF_(0x003D0001L) + +// +// MessageId: WS_E_INVALID_FORMAT +// +// MessageText: +// +// The input data was not in the expected format or did not have the expected value. +// +#define WS_E_INVALID_FORMAT _HRESULT_TYPEDEF_(0x803D0000L) + +// +// MessageId: WS_E_OBJECT_FAULTED +// +// MessageText: +// +// The operation could not be completed because the object is in a faulted state due to a previous error. +// +#define WS_E_OBJECT_FAULTED _HRESULT_TYPEDEF_(0x803D0001L) + +// +// MessageId: WS_E_NUMERIC_OVERFLOW +// +// MessageText: +// +// The operation could not be completed because it would lead to numeric overflow. +// +#define WS_E_NUMERIC_OVERFLOW _HRESULT_TYPEDEF_(0x803D0002L) + +// +// MessageId: WS_E_INVALID_OPERATION +// +// MessageText: +// +// The operation is not allowed due to the current state of the object. +// +#define WS_E_INVALID_OPERATION _HRESULT_TYPEDEF_(0x803D0003L) + +// +// MessageId: WS_E_OPERATION_ABORTED +// +// MessageText: +// +// The operation was aborted. +// +#define WS_E_OPERATION_ABORTED _HRESULT_TYPEDEF_(0x803D0004L) + +// +// MessageId: WS_E_ENDPOINT_ACCESS_DENIED +// +// MessageText: +// +// Access was denied by the remote endpoint. +// +#define WS_E_ENDPOINT_ACCESS_DENIED _HRESULT_TYPEDEF_(0x803D0005L) + +// +// MessageId: WS_E_OPERATION_TIMED_OUT +// +// MessageText: +// +// The operation did not complete within the time allotted. +// +#define WS_E_OPERATION_TIMED_OUT _HRESULT_TYPEDEF_(0x803D0006L) + +// +// MessageId: WS_E_OPERATION_ABANDONED +// +// MessageText: +// +// The operation was abandoned. +// +#define WS_E_OPERATION_ABANDONED _HRESULT_TYPEDEF_(0x803D0007L) + +// +// MessageId: WS_E_QUOTA_EXCEEDED +// +// MessageText: +// +// A quota was exceeded. +// +#define WS_E_QUOTA_EXCEEDED _HRESULT_TYPEDEF_(0x803D0008L) + +// +// MessageId: WS_E_NO_TRANSLATION_AVAILABLE +// +// MessageText: +// +// The information was not available in the specified language. +// +#define WS_E_NO_TRANSLATION_AVAILABLE _HRESULT_TYPEDEF_(0x803D0009L) + +// +// MessageId: WS_E_SECURITY_VERIFICATION_FAILURE +// +// MessageText: +// +// Security verification was not successful for the received data. +// +#define WS_E_SECURITY_VERIFICATION_FAILURE _HRESULT_TYPEDEF_(0x803D000AL) + +// +// MessageId: WS_E_ADDRESS_IN_USE +// +// MessageText: +// +// The address is already being used. +// +#define WS_E_ADDRESS_IN_USE _HRESULT_TYPEDEF_(0x803D000BL) + +// +// MessageId: WS_E_ADDRESS_NOT_AVAILABLE +// +// MessageText: +// +// The address is not valid for this context. +// +#define WS_E_ADDRESS_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x803D000CL) + +// +// MessageId: WS_E_ENDPOINT_NOT_FOUND +// +// MessageText: +// +// The remote endpoint does not exist or could not be located. +// +#define WS_E_ENDPOINT_NOT_FOUND _HRESULT_TYPEDEF_(0x803D000DL) + +// +// MessageId: WS_E_ENDPOINT_NOT_AVAILABLE +// +// MessageText: +// +// The remote endpoint is not currently in service at this location. +// +#define WS_E_ENDPOINT_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x803D000EL) + +// +// MessageId: WS_E_ENDPOINT_FAILURE +// +// MessageText: +// +// The remote endpoint could not process the request. +// +#define WS_E_ENDPOINT_FAILURE _HRESULT_TYPEDEF_(0x803D000FL) + +// +// MessageId: WS_E_ENDPOINT_UNREACHABLE +// +// MessageText: +// +// The remote endpoint was not reachable. +// +#define WS_E_ENDPOINT_UNREACHABLE _HRESULT_TYPEDEF_(0x803D0010L) + +// +// MessageId: WS_E_ENDPOINT_ACTION_NOT_SUPPORTED +// +// MessageText: +// +// The operation was not supported by the remote endpoint. +// +#define WS_E_ENDPOINT_ACTION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803D0011L) + +// +// MessageId: WS_E_ENDPOINT_TOO_BUSY +// +// MessageText: +// +// The remote endpoint is unable to process the request due to being overloaded. +// +#define WS_E_ENDPOINT_TOO_BUSY _HRESULT_TYPEDEF_(0x803D0012L) + +// +// MessageId: WS_E_ENDPOINT_FAULT_RECEIVED +// +// MessageText: +// +// A message containing a fault was received from the remote endpoint. +// +#define WS_E_ENDPOINT_FAULT_RECEIVED _HRESULT_TYPEDEF_(0x803D0013L) + +// +// MessageId: WS_E_ENDPOINT_DISCONNECTED +// +// MessageText: +// +// The connection with the remote endpoint was terminated. +// +#define WS_E_ENDPOINT_DISCONNECTED _HRESULT_TYPEDEF_(0x803D0014L) + +// +// MessageId: WS_E_PROXY_FAILURE +// +// MessageText: +// +// The HTTP proxy server could not process the request. +// +#define WS_E_PROXY_FAILURE _HRESULT_TYPEDEF_(0x803D0015L) + +// +// MessageId: WS_E_PROXY_ACCESS_DENIED +// +// MessageText: +// +// Access was denied by the HTTP proxy server. +// +#define WS_E_PROXY_ACCESS_DENIED _HRESULT_TYPEDEF_(0x803D0016L) + +// +// MessageId: WS_E_NOT_SUPPORTED +// +// MessageText: +// +// The requested feature is not available on this platform. +// +#define WS_E_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803D0017L) + +// +// MessageId: WS_E_PROXY_REQUIRES_BASIC_AUTH +// +// MessageText: +// +// The HTTP proxy server requires HTTP authentication scheme 'basic'. +// +#define WS_E_PROXY_REQUIRES_BASIC_AUTH _HRESULT_TYPEDEF_(0x803D0018L) + +// +// MessageId: WS_E_PROXY_REQUIRES_DIGEST_AUTH +// +// MessageText: +// +// The HTTP proxy server requires HTTP authentication scheme 'digest'. +// +#define WS_E_PROXY_REQUIRES_DIGEST_AUTH _HRESULT_TYPEDEF_(0x803D0019L) + +// +// MessageId: WS_E_PROXY_REQUIRES_NTLM_AUTH +// +// MessageText: +// +// The HTTP proxy server requires HTTP authentication scheme 'NTLM'. +// +#define WS_E_PROXY_REQUIRES_NTLM_AUTH _HRESULT_TYPEDEF_(0x803D001AL) + +// +// MessageId: WS_E_PROXY_REQUIRES_NEGOTIATE_AUTH +// +// MessageText: +// +// The HTTP proxy server requires HTTP authentication scheme 'negotiate'. +// +#define WS_E_PROXY_REQUIRES_NEGOTIATE_AUTH _HRESULT_TYPEDEF_(0x803D001BL) + +// +// MessageId: WS_E_SERVER_REQUIRES_BASIC_AUTH +// +// MessageText: +// +// The remote endpoint requires HTTP authentication scheme 'basic'. +// +#define WS_E_SERVER_REQUIRES_BASIC_AUTH _HRESULT_TYPEDEF_(0x803D001CL) + +// +// MessageId: WS_E_SERVER_REQUIRES_DIGEST_AUTH +// +// MessageText: +// +// The remote endpoint requires HTTP authentication scheme 'digest'. +// +#define WS_E_SERVER_REQUIRES_DIGEST_AUTH _HRESULT_TYPEDEF_(0x803D001DL) + +// +// MessageId: WS_E_SERVER_REQUIRES_NTLM_AUTH +// +// MessageText: +// +// The remote endpoint requires HTTP authentication scheme 'NTLM'. +// +#define WS_E_SERVER_REQUIRES_NTLM_AUTH _HRESULT_TYPEDEF_(0x803D001EL) + +// +// MessageId: WS_E_SERVER_REQUIRES_NEGOTIATE_AUTH +// +// MessageText: +// +// The remote endpoint requires HTTP authentication scheme 'negotiate'. +// +#define WS_E_SERVER_REQUIRES_NEGOTIATE_AUTH _HRESULT_TYPEDEF_(0x803D001FL) + +// +// MessageId: WS_E_INVALID_ENDPOINT_URL +// +// MessageText: +// +// The endpoint address URL is invalid. +// +#define WS_E_INVALID_ENDPOINT_URL _HRESULT_TYPEDEF_(0x803D0020L) + +// +// MessageId: WS_E_OTHER +// +// MessageText: +// +// Unrecognized error occurred in the Windows Web Services framework. +// +#define WS_E_OTHER _HRESULT_TYPEDEF_(0x803D0021L) + +// +// MessageId: WS_E_SECURITY_TOKEN_EXPIRED +// +// MessageText: +// +// A security token was rejected by the server because it has expired. +// +#define WS_E_SECURITY_TOKEN_EXPIRED _HRESULT_TYPEDEF_(0x803D0022L) + +// +// MessageId: WS_E_SECURITY_SYSTEM_FAILURE +// +// MessageText: +// +// A security operation failed in the Windows Web Services framework. +// +#define WS_E_SECURITY_SYSTEM_FAILURE _HRESULT_TYPEDEF_(0x803D0023L) + + +// +// NDIS error codes (ndis.sys) +// + + +#ifdef RC_INVOKED +#define _NDIS_ERROR_TYPEDEF_(_sc) _sc +#else // RC_INVOKED +#define _NDIS_ERROR_TYPEDEF_(_sc) (DWORD)(_sc) +#endif // RC_INVOKED + +// +// MessageId: ERROR_NDIS_INTERFACE_CLOSING +// +// MessageText: +// +// The binding to the network interface is being closed. +// +#define ERROR_NDIS_INTERFACE_CLOSING _NDIS_ERROR_TYPEDEF_(0x80340002L) + +// +// MessageId: ERROR_NDIS_BAD_VERSION +// +// MessageText: +// +// An invalid version was specified. +// +#define ERROR_NDIS_BAD_VERSION _NDIS_ERROR_TYPEDEF_(0x80340004L) + +// +// MessageId: ERROR_NDIS_BAD_CHARACTERISTICS +// +// MessageText: +// +// An invalid characteristics table was used. +// +#define ERROR_NDIS_BAD_CHARACTERISTICS _NDIS_ERROR_TYPEDEF_(0x80340005L) + +// +// MessageId: ERROR_NDIS_ADAPTER_NOT_FOUND +// +// MessageText: +// +// Failed to find the network interface or network interface is not ready. +// +#define ERROR_NDIS_ADAPTER_NOT_FOUND _NDIS_ERROR_TYPEDEF_(0x80340006L) + +// +// MessageId: ERROR_NDIS_OPEN_FAILED +// +// MessageText: +// +// Failed to open the network interface. +// +#define ERROR_NDIS_OPEN_FAILED _NDIS_ERROR_TYPEDEF_(0x80340007L) + +// +// MessageId: ERROR_NDIS_DEVICE_FAILED +// +// MessageText: +// +// Network interface has encountered an internal unrecoverable failure. +// +#define ERROR_NDIS_DEVICE_FAILED _NDIS_ERROR_TYPEDEF_(0x80340008L) + +// +// MessageId: ERROR_NDIS_MULTICAST_FULL +// +// MessageText: +// +// The multicast list on the network interface is full. +// +#define ERROR_NDIS_MULTICAST_FULL _NDIS_ERROR_TYPEDEF_(0x80340009L) + +// +// MessageId: ERROR_NDIS_MULTICAST_EXISTS +// +// MessageText: +// +// An attempt was made to add a duplicate multicast address to the list. +// +#define ERROR_NDIS_MULTICAST_EXISTS _NDIS_ERROR_TYPEDEF_(0x8034000AL) + +// +// MessageId: ERROR_NDIS_MULTICAST_NOT_FOUND +// +// MessageText: +// +// At attempt was made to remove a multicast address that was never added. +// +#define ERROR_NDIS_MULTICAST_NOT_FOUND _NDIS_ERROR_TYPEDEF_(0x8034000BL) + +// +// MessageId: ERROR_NDIS_REQUEST_ABORTED +// +// MessageText: +// +// Netowork interface aborted the request. +// +#define ERROR_NDIS_REQUEST_ABORTED _NDIS_ERROR_TYPEDEF_(0x8034000CL) + +// +// MessageId: ERROR_NDIS_RESET_IN_PROGRESS +// +// MessageText: +// +// Network interface can not process the request because it is being reset. +// +#define ERROR_NDIS_RESET_IN_PROGRESS _NDIS_ERROR_TYPEDEF_(0x8034000DL) + +// +// MessageId: ERROR_NDIS_NOT_SUPPORTED +// +// MessageText: +// +// Netword interface does not support this request. +// +#define ERROR_NDIS_NOT_SUPPORTED _NDIS_ERROR_TYPEDEF_(0x803400BBL) + +// +// MessageId: ERROR_NDIS_INVALID_PACKET +// +// MessageText: +// +// An attempt was made to send an invalid packet on a network interface. +// +#define ERROR_NDIS_INVALID_PACKET _NDIS_ERROR_TYPEDEF_(0x8034000FL) + +// +// MessageId: ERROR_NDIS_ADAPTER_NOT_READY +// +// MessageText: +// +// Network interface is not ready to complete this operation. +// +#define ERROR_NDIS_ADAPTER_NOT_READY _NDIS_ERROR_TYPEDEF_(0x80340011L) + +// +// MessageId: ERROR_NDIS_INVALID_LENGTH +// +// MessageText: +// +// The length of the buffer submitted for this operation is not valid. +// +#define ERROR_NDIS_INVALID_LENGTH _NDIS_ERROR_TYPEDEF_(0x80340014L) + +// +// MessageId: ERROR_NDIS_INVALID_DATA +// +// MessageText: +// +// The data used for this operation is not valid. +// +#define ERROR_NDIS_INVALID_DATA _NDIS_ERROR_TYPEDEF_(0x80340015L) + +// +// MessageId: ERROR_NDIS_BUFFER_TOO_SHORT +// +// MessageText: +// +// The length of buffer submitted for this operation is too small. +// +#define ERROR_NDIS_BUFFER_TOO_SHORT _NDIS_ERROR_TYPEDEF_(0x80340016L) + +// +// MessageId: ERROR_NDIS_INVALID_OID +// +// MessageText: +// +// Network interface does not support this OID (Object Identifier) +// +#define ERROR_NDIS_INVALID_OID _NDIS_ERROR_TYPEDEF_(0x80340017L) + +// +// MessageId: ERROR_NDIS_ADAPTER_REMOVED +// +// MessageText: +// +// The network interface has been removed. +// +#define ERROR_NDIS_ADAPTER_REMOVED _NDIS_ERROR_TYPEDEF_(0x80340018L) + +// +// MessageId: ERROR_NDIS_UNSUPPORTED_MEDIA +// +// MessageText: +// +// Network interface does not support this media type. +// +#define ERROR_NDIS_UNSUPPORTED_MEDIA _NDIS_ERROR_TYPEDEF_(0x80340019L) + +// +// MessageId: ERROR_NDIS_GROUP_ADDRESS_IN_USE +// +// MessageText: +// +// An attempt was made to remove a token ring group address that is in use by other components. +// +#define ERROR_NDIS_GROUP_ADDRESS_IN_USE _NDIS_ERROR_TYPEDEF_(0x8034001AL) + +// +// MessageId: ERROR_NDIS_FILE_NOT_FOUND +// +// MessageText: +// +// An attempt was made to map a file that can not be found. +// +#define ERROR_NDIS_FILE_NOT_FOUND _NDIS_ERROR_TYPEDEF_(0x8034001BL) + +// +// MessageId: ERROR_NDIS_ERROR_READING_FILE +// +// MessageText: +// +// An error occurred while NDIS tried to map the file. +// +#define ERROR_NDIS_ERROR_READING_FILE _NDIS_ERROR_TYPEDEF_(0x8034001CL) + +// +// MessageId: ERROR_NDIS_ALREADY_MAPPED +// +// MessageText: +// +// An attempt was made to map a file that is alreay mapped. +// +#define ERROR_NDIS_ALREADY_MAPPED _NDIS_ERROR_TYPEDEF_(0x8034001DL) + +// +// MessageId: ERROR_NDIS_RESOURCE_CONFLICT +// +// MessageText: +// +// An attempt to allocate a hardware resource failed because the resource is used by another component. +// +#define ERROR_NDIS_RESOURCE_CONFLICT _NDIS_ERROR_TYPEDEF_(0x8034001EL) + +// +// MessageId: ERROR_NDIS_MEDIA_DISCONNECTED +// +// MessageText: +// +// The I/O operation failed because network media is disconnected or wireless access point is out of range. +// +#define ERROR_NDIS_MEDIA_DISCONNECTED _NDIS_ERROR_TYPEDEF_(0x8034001FL) + +// +// MessageId: ERROR_NDIS_INVALID_ADDRESS +// +// MessageText: +// +// The network address used in the request is invalid. +// +#define ERROR_NDIS_INVALID_ADDRESS _NDIS_ERROR_TYPEDEF_(0x80340022L) + +// +// MessageId: ERROR_NDIS_INVALID_DEVICE_REQUEST +// +// MessageText: +// +// The specified request is not a valid operation for the target device. +// +#define ERROR_NDIS_INVALID_DEVICE_REQUEST _NDIS_ERROR_TYPEDEF_(0x80340010L) + +// +// MessageId: ERROR_NDIS_PAUSED +// +// MessageText: +// +// The offload operation on the network interface has been paused. +// +#define ERROR_NDIS_PAUSED _NDIS_ERROR_TYPEDEF_(0x8034002AL) + +// +// MessageId: ERROR_NDIS_INTERFACE_NOT_FOUND +// +// MessageText: +// +// Network interface was not found. +// +#define ERROR_NDIS_INTERFACE_NOT_FOUND _NDIS_ERROR_TYPEDEF_(0x8034002BL) + +// +// MessageId: ERROR_NDIS_UNSUPPORTED_REVISION +// +// MessageText: +// +// The revision number specified in the structure is not supported. +// +#define ERROR_NDIS_UNSUPPORTED_REVISION _NDIS_ERROR_TYPEDEF_(0x8034002CL) + +// +// MessageId: ERROR_NDIS_INVALID_PORT +// +// MessageText: +// +// The specified port does not exist on this network interface. +// +#define ERROR_NDIS_INVALID_PORT _NDIS_ERROR_TYPEDEF_(0x8034002DL) + +// +// MessageId: ERROR_NDIS_INVALID_PORT_STATE +// +// MessageText: +// +// The current state of the specified port on this network interface does not support the requested operation. +// +#define ERROR_NDIS_INVALID_PORT_STATE _NDIS_ERROR_TYPEDEF_(0x8034002EL) + +// +// MessageId: ERROR_NDIS_LOW_POWER_STATE +// +// MessageText: +// +// The miniport adapter is in low power state. +// +#define ERROR_NDIS_LOW_POWER_STATE _NDIS_ERROR_TYPEDEF_(0x8034002FL) + +// +// MessageId: ERROR_NDIS_REINIT_REQUIRED +// +// MessageText: +// +// This operation requires the miniport adapter to be reinitialized. +// +#define ERROR_NDIS_REINIT_REQUIRED _NDIS_ERROR_TYPEDEF_(0x80340030L) + +// +// MessageId: ERROR_NDIS_NO_QUEUES +// +// MessageText: +// +// There are not enough queues to complete the operation. +// +#define ERROR_NDIS_NO_QUEUES _NDIS_ERROR_TYPEDEF_(0x80340031L) + + +// +// NDIS error codes (802.11 wireless LAN) +// + +// +// MessageId: ERROR_NDIS_DOT11_AUTO_CONFIG_ENABLED +// +// MessageText: +// +// The wireless local area network interface is in auto configuration mode and doesn't support the requested parameter change operation. +// +#define ERROR_NDIS_DOT11_AUTO_CONFIG_ENABLED _NDIS_ERROR_TYPEDEF_(0x80342000L) + +// +// MessageId: ERROR_NDIS_DOT11_MEDIA_IN_USE +// +// MessageText: +// +// The wireless local area network interface is busy and can not perform the requested operation. +// +#define ERROR_NDIS_DOT11_MEDIA_IN_USE _NDIS_ERROR_TYPEDEF_(0x80342001L) + +// +// MessageId: ERROR_NDIS_DOT11_POWER_STATE_INVALID +// +// MessageText: +// +// The wireless local area network interface is powered down and doesn't support the requested operation. +// +#define ERROR_NDIS_DOT11_POWER_STATE_INVALID _NDIS_ERROR_TYPEDEF_(0x80342002L) + +// +// MessageId: ERROR_NDIS_PM_WOL_PATTERN_LIST_FULL +// +// MessageText: +// +// The list of wake on LAN patterns is full. +// +#define ERROR_NDIS_PM_WOL_PATTERN_LIST_FULL _NDIS_ERROR_TYPEDEF_(0x80342003L) + +// +// MessageId: ERROR_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL +// +// MessageText: +// +// The list of low power protocol offloads is full. +// +#define ERROR_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL _NDIS_ERROR_TYPEDEF_(0x80342004L) + +// +// MessageId: ERROR_NDIS_DOT11_AP_CHANNEL_CURRENTLY_NOT_AVAILABLE +// +// MessageText: +// +// The wireless local area network interface cannot start an AP on the specified channel right now. +// +#define ERROR_NDIS_DOT11_AP_CHANNEL_CURRENTLY_NOT_AVAILABLE _NDIS_ERROR_TYPEDEF_(0x80342005L) + +// +// MessageId: ERROR_NDIS_DOT11_AP_BAND_CURRENTLY_NOT_AVAILABLE +// +// MessageText: +// +// The wireless local area network interface cannot start an AP on the specified band right now. +// +#define ERROR_NDIS_DOT11_AP_BAND_CURRENTLY_NOT_AVAILABLE _NDIS_ERROR_TYPEDEF_(0x80342006L) + +// +// MessageId: ERROR_NDIS_DOT11_AP_CHANNEL_NOT_ALLOWED +// +// MessageText: +// +// The wireless local area network interface cannot start an AP on this channel due to regulatory reasons. +// +#define ERROR_NDIS_DOT11_AP_CHANNEL_NOT_ALLOWED _NDIS_ERROR_TYPEDEF_(0x80342007L) + +// +// MessageId: ERROR_NDIS_DOT11_AP_BAND_NOT_ALLOWED +// +// MessageText: +// +// The wireless local area network interface cannot start an AP on this band due to regulatory reasons. +// +#define ERROR_NDIS_DOT11_AP_BAND_NOT_ALLOWED _NDIS_ERROR_TYPEDEF_(0x80342008L) + +// +// MessageId: ERROR_NDIS_DOT11_AP_RADIO_RESTRICTION +// +// MessageText: +// +// The wireless local area network interface cannot start an AP because the minimum radio hardware required for this operation is not present. +// +#define ERROR_NDIS_DOT11_AP_RADIO_RESTRICTION _NDIS_ERROR_TYPEDEF_(0x80342009L) + +// +// NDIS informational code (ndis.sys) +// + +// +// MessageId: ERROR_NDIS_INDICATION_REQUIRED +// +// MessageText: +// +// The request will be completed later by NDIS status indication. +// +#define ERROR_NDIS_INDICATION_REQUIRED _NDIS_ERROR_TYPEDEF_(0x00340001L) + +// +// NDIS Chimney Offload codes (ndis.sys) +// + +// +// MessageId: ERROR_NDIS_OFFLOAD_POLICY +// +// MessageText: +// +// The TCP connection is not offloadable because of a local policy setting. +// +#define ERROR_NDIS_OFFLOAD_POLICY _NDIS_ERROR_TYPEDEF_(0xC034100FL) + +// +// MessageId: ERROR_NDIS_OFFLOAD_CONNECTION_REJECTED +// +// MessageText: +// +// The TCP connection is not offloadable by the Chimney Offload target. +// +#define ERROR_NDIS_OFFLOAD_CONNECTION_REJECTED _NDIS_ERROR_TYPEDEF_(0xC0341012L) + +// +// MessageId: ERROR_NDIS_OFFLOAD_PATH_REJECTED +// +// MessageText: +// +// The IP Path object is not in an offloadable state. +// +#define ERROR_NDIS_OFFLOAD_PATH_REJECTED _NDIS_ERROR_TYPEDEF_(0xC0341013L) + +// +// Hypervisor error codes +// + +// +// MessageId: ERROR_HV_INVALID_HYPERCALL_CODE +// +// MessageText: +// +// The hypervisor does not support the operation because the specified hypercall code is not supported. +// +#define ERROR_HV_INVALID_HYPERCALL_CODE _NDIS_ERROR_TYPEDEF_(0xC0350002L) + +// +// MessageId: ERROR_HV_INVALID_HYPERCALL_INPUT +// +// MessageText: +// +// The hypervisor does not support the operation because the encoding for the hypercall input register is not supported. +// +#define ERROR_HV_INVALID_HYPERCALL_INPUT _NDIS_ERROR_TYPEDEF_(0xC0350003L) + +// +// MessageId: ERROR_HV_INVALID_ALIGNMENT +// +// MessageText: +// +// The hypervisor could not perform the operation because a parameter has an invalid alignment. +// +#define ERROR_HV_INVALID_ALIGNMENT _NDIS_ERROR_TYPEDEF_(0xC0350004L) + +// +// MessageId: ERROR_HV_INVALID_PARAMETER +// +// MessageText: +// +// The hypervisor could not perform the operation because an invalid parameter was specified. +// +#define ERROR_HV_INVALID_PARAMETER _NDIS_ERROR_TYPEDEF_(0xC0350005L) + +// +// MessageId: ERROR_HV_ACCESS_DENIED +// +// MessageText: +// +// Access to the specified object was denied. +// +#define ERROR_HV_ACCESS_DENIED _NDIS_ERROR_TYPEDEF_(0xC0350006L) + +// +// MessageId: ERROR_HV_INVALID_PARTITION_STATE +// +// MessageText: +// +// The hypervisor could not perform the operation because the partition is entering or in an invalid state. +// +#define ERROR_HV_INVALID_PARTITION_STATE _NDIS_ERROR_TYPEDEF_(0xC0350007L) + +// +// MessageId: ERROR_HV_OPERATION_DENIED +// +// MessageText: +// +// The operation is not allowed in the current state. +// +#define ERROR_HV_OPERATION_DENIED _NDIS_ERROR_TYPEDEF_(0xC0350008L) + +// +// MessageId: ERROR_HV_UNKNOWN_PROPERTY +// +// MessageText: +// +// The hypervisor does not recognize the specified partition property. +// +#define ERROR_HV_UNKNOWN_PROPERTY _NDIS_ERROR_TYPEDEF_(0xC0350009L) + +// +// MessageId: ERROR_HV_PROPERTY_VALUE_OUT_OF_RANGE +// +// MessageText: +// +// The specified value of a partition property is out of range or violates an invariant. +// +#define ERROR_HV_PROPERTY_VALUE_OUT_OF_RANGE _NDIS_ERROR_TYPEDEF_(0xC035000AL) + +// +// MessageId: ERROR_HV_INSUFFICIENT_MEMORY +// +// MessageText: +// +// There is not enough memory in the hypervisor pool to complete the operation. +// +#define ERROR_HV_INSUFFICIENT_MEMORY _NDIS_ERROR_TYPEDEF_(0xC035000BL) + +// +// MessageId: ERROR_HV_PARTITION_TOO_DEEP +// +// MessageText: +// +// The maximum partition depth has been exceeded for the partition hierarchy. +// +#define ERROR_HV_PARTITION_TOO_DEEP _NDIS_ERROR_TYPEDEF_(0xC035000CL) + +// +// MessageId: ERROR_HV_INVALID_PARTITION_ID +// +// MessageText: +// +// A partition with the specified partition Id does not exist. +// +#define ERROR_HV_INVALID_PARTITION_ID _NDIS_ERROR_TYPEDEF_(0xC035000DL) + +// +// MessageId: ERROR_HV_INVALID_VP_INDEX +// +// MessageText: +// +// The hypervisor could not perform the operation because the specified VP index is invalid. +// +#define ERROR_HV_INVALID_VP_INDEX _NDIS_ERROR_TYPEDEF_(0xC035000EL) + +// +// MessageId: ERROR_HV_INVALID_PORT_ID +// +// MessageText: +// +// The hypervisor could not perform the operation because the specified port identifier is invalid. +// +#define ERROR_HV_INVALID_PORT_ID _NDIS_ERROR_TYPEDEF_(0xC0350011L) + +// +// MessageId: ERROR_HV_INVALID_CONNECTION_ID +// +// MessageText: +// +// The hypervisor could not perform the operation because the specified connection identifier is invalid. +// +#define ERROR_HV_INVALID_CONNECTION_ID _NDIS_ERROR_TYPEDEF_(0xC0350012L) + +// +// MessageId: ERROR_HV_INSUFFICIENT_BUFFERS +// +// MessageText: +// +// Not enough buffers were supplied to send a message. +// +#define ERROR_HV_INSUFFICIENT_BUFFERS _NDIS_ERROR_TYPEDEF_(0xC0350013L) + +// +// MessageId: ERROR_HV_NOT_ACKNOWLEDGED +// +// MessageText: +// +// The previous virtual interrupt has not been acknowledged. +// +#define ERROR_HV_NOT_ACKNOWLEDGED _NDIS_ERROR_TYPEDEF_(0xC0350014L) + +// +// MessageId: ERROR_HV_INVALID_VP_STATE +// +// MessageText: +// +// A virtual processor is not in the correct state for the indicated operation. +// +#define ERROR_HV_INVALID_VP_STATE _NDIS_ERROR_TYPEDEF_(0xC0350015L) + +// +// MessageId: ERROR_HV_ACKNOWLEDGED +// +// MessageText: +// +// The previous virtual interrupt has already been acknowledged. +// +#define ERROR_HV_ACKNOWLEDGED _NDIS_ERROR_TYPEDEF_(0xC0350016L) + +// +// MessageId: ERROR_HV_INVALID_SAVE_RESTORE_STATE +// +// MessageText: +// +// The indicated partition is not in a valid state for saving or restoring. +// +#define ERROR_HV_INVALID_SAVE_RESTORE_STATE _NDIS_ERROR_TYPEDEF_(0xC0350017L) + +// +// MessageId: ERROR_HV_INVALID_SYNIC_STATE +// +// MessageText: +// +// The hypervisor could not complete the operation because a required feature of the synthetic interrupt controller (SynIC) was disabled. +// +#define ERROR_HV_INVALID_SYNIC_STATE _NDIS_ERROR_TYPEDEF_(0xC0350018L) + +// +// MessageId: ERROR_HV_OBJECT_IN_USE +// +// MessageText: +// +// The hypervisor could not perform the operation because the object or value was either already in use or being used for a purpose that would not permit completing the operation. +// +#define ERROR_HV_OBJECT_IN_USE _NDIS_ERROR_TYPEDEF_(0xC0350019L) + +// +// MessageId: ERROR_HV_INVALID_PROXIMITY_DOMAIN_INFO +// +// MessageText: +// +// The proximity domain information is invalid. +// +#define ERROR_HV_INVALID_PROXIMITY_DOMAIN_INFO _NDIS_ERROR_TYPEDEF_(0xC035001AL) + +// +// MessageId: ERROR_HV_NO_DATA +// +// MessageText: +// +// An attempt to retrieve debugging data failed because none was available. +// +#define ERROR_HV_NO_DATA _NDIS_ERROR_TYPEDEF_(0xC035001BL) + +// +// MessageId: ERROR_HV_INACTIVE +// +// MessageText: +// +// The physical connection being used for debugging has not recorded any receive activity since the last operation. +// +#define ERROR_HV_INACTIVE _NDIS_ERROR_TYPEDEF_(0xC035001CL) + +// +// MessageId: ERROR_HV_NO_RESOURCES +// +// MessageText: +// +// There are not enough resources to complete the operation. +// +#define ERROR_HV_NO_RESOURCES _NDIS_ERROR_TYPEDEF_(0xC035001DL) + +// +// MessageId: ERROR_HV_FEATURE_UNAVAILABLE +// +// MessageText: +// +// A hypervisor feature is not available to the user. +// +#define ERROR_HV_FEATURE_UNAVAILABLE _NDIS_ERROR_TYPEDEF_(0xC035001EL) + +// +// MessageId: ERROR_HV_INSUFFICIENT_BUFFER +// +// MessageText: +// +// The specified buffer was too small to contain all of the requested data. +// +#define ERROR_HV_INSUFFICIENT_BUFFER _NDIS_ERROR_TYPEDEF_(0xC0350033L) + +// +// MessageId: ERROR_HV_INSUFFICIENT_DEVICE_DOMAINS +// +// MessageText: +// +// The maximum number of domains supported by the platform I/O remapping hardware is currently in use. No domains are available to assign this device to this partition. +// +#define ERROR_HV_INSUFFICIENT_DEVICE_DOMAINS _NDIS_ERROR_TYPEDEF_(0xC0350038L) + +// +// MessageId: ERROR_HV_CPUID_FEATURE_VALIDATION +// +// MessageText: +// +// Validation of CPUID data of the processor failed. +// +#define ERROR_HV_CPUID_FEATURE_VALIDATION _NDIS_ERROR_TYPEDEF_(0xC035003CL) + +// +// MessageId: ERROR_HV_CPUID_XSAVE_FEATURE_VALIDATION +// +// MessageText: +// +// Validation of XSAVE CPUID data of the processor failed. +// +#define ERROR_HV_CPUID_XSAVE_FEATURE_VALIDATION _NDIS_ERROR_TYPEDEF_(0xC035003DL) + +// +// MessageId: ERROR_HV_PROCESSOR_STARTUP_TIMEOUT +// +// MessageText: +// +// Processor did not respond within the timeout period. +// +#define ERROR_HV_PROCESSOR_STARTUP_TIMEOUT _NDIS_ERROR_TYPEDEF_(0xC035003EL) + +// +// MessageId: ERROR_HV_SMX_ENABLED +// +// MessageText: +// +// SMX has been enabled in the BIOS. +// +#define ERROR_HV_SMX_ENABLED _NDIS_ERROR_TYPEDEF_(0xC035003FL) + +// +// MessageId: ERROR_HV_INVALID_LP_INDEX +// +// MessageText: +// +// The hypervisor could not perform the operation because the specified LP index is invalid. +// +#define ERROR_HV_INVALID_LP_INDEX _NDIS_ERROR_TYPEDEF_(0xC0350041L) + +// +// MessageId: ERROR_HV_INVALID_REGISTER_VALUE +// +// MessageText: +// +// The supplied register value is invalid. +// +#define ERROR_HV_INVALID_REGISTER_VALUE _NDIS_ERROR_TYPEDEF_(0xC0350050L) + +// +// MessageId: ERROR_HV_INVALID_VTL_STATE +// +// MessageText: +// +// The supplied virtual trust level is not in the correct state to perform the requested operation. +// +#define ERROR_HV_INVALID_VTL_STATE _NDIS_ERROR_TYPEDEF_(0xC0350051L) + +// +// MessageId: ERROR_HV_NX_NOT_DETECTED +// +// MessageText: +// +// No execute feature (NX) is not present or not enabled in the BIOS. +// +#define ERROR_HV_NX_NOT_DETECTED _NDIS_ERROR_TYPEDEF_(0xC0350055L) + +// +// MessageId: ERROR_HV_INVALID_DEVICE_ID +// +// MessageText: +// +// The supplied device ID is invalid. +// +#define ERROR_HV_INVALID_DEVICE_ID _NDIS_ERROR_TYPEDEF_(0xC0350057L) + +// +// MessageId: ERROR_HV_INVALID_DEVICE_STATE +// +// MessageText: +// +// The operation is not allowed in the current device state. +// +#define ERROR_HV_INVALID_DEVICE_STATE _NDIS_ERROR_TYPEDEF_(0xC0350058L) + +// +// MessageId: ERROR_HV_PENDING_PAGE_REQUESTS +// +// MessageText: +// +// The device had pending page requests which were discarded. +// +#define ERROR_HV_PENDING_PAGE_REQUESTS _NDIS_ERROR_TYPEDEF_(0x00350059L) + +// +// MessageId: ERROR_HV_PAGE_REQUEST_INVALID +// +// MessageText: +// +// The supplied page request specifies a memory access that the guest does not have permissions to perform. +// +#define ERROR_HV_PAGE_REQUEST_INVALID _NDIS_ERROR_TYPEDEF_(0xC0350060L) + +// +// MessageId: ERROR_HV_INVALID_CPU_GROUP_ID +// +// MessageText: +// +// A CPU group with the specified CPU group Id does not exist. +// +#define ERROR_HV_INVALID_CPU_GROUP_ID _NDIS_ERROR_TYPEDEF_(0xC035006FL) + +// +// MessageId: ERROR_HV_INVALID_CPU_GROUP_STATE +// +// MessageText: +// +// The hypervisor could not perform the operation because the CPU group is entering or in an invalid state. +// +#define ERROR_HV_INVALID_CPU_GROUP_STATE _NDIS_ERROR_TYPEDEF_(0xC0350070L) + +// +// MessageId: ERROR_HV_OPERATION_FAILED +// +// MessageText: +// +// The requested operation failed. +// +#define ERROR_HV_OPERATION_FAILED _NDIS_ERROR_TYPEDEF_(0xC0350071L) + +// +// MessageId: ERROR_HV_NOT_ALLOWED_WITH_NESTED_VIRT_ACTIVE +// +// MessageText: +// +// The hypervisor could not perform the operation because it is not allowed with nested virtualization active. +// +#define ERROR_HV_NOT_ALLOWED_WITH_NESTED_VIRT_ACTIVE _NDIS_ERROR_TYPEDEF_(0xC0350072L) + +// +// MessageId: ERROR_HV_INSUFFICIENT_ROOT_MEMORY +// +// MessageText: +// +// There is not enough memory in the root partition's pool to complete the operation. +// +#define ERROR_HV_INSUFFICIENT_ROOT_MEMORY _NDIS_ERROR_TYPEDEF_(0xC0350073L) + +// +// MessageId: ERROR_HV_EVENT_BUFFER_ALREADY_FREED +// +// MessageText: +// +// The provided event log buffer was already marked as freed. +// +#define ERROR_HV_EVENT_BUFFER_ALREADY_FREED _NDIS_ERROR_TYPEDEF_(0xC0350074L) + +// +// MessageId: ERROR_HV_INSUFFICIENT_CONTIGUOUS_MEMORY +// +// MessageText: +// +// There is not enough contiguous memory in the partition's pool to complete the operation. +// +#define ERROR_HV_INSUFFICIENT_CONTIGUOUS_MEMORY _NDIS_ERROR_TYPEDEF_(0xC0350075L) + +// +// MessageId: ERROR_HV_DEVICE_NOT_IN_DOMAIN +// +// MessageText: +// +// The device is not in a device domain. +// +#define ERROR_HV_DEVICE_NOT_IN_DOMAIN _NDIS_ERROR_TYPEDEF_(0xC0350076L) + +// +// MessageId: ERROR_HV_NESTED_VM_EXIT +// +// MessageText: +// +// The requested operation would result in a nested vm-exit. +// +#define ERROR_HV_NESTED_VM_EXIT _NDIS_ERROR_TYPEDEF_(0xC0350077L) + +// +// MessageId: ERROR_HV_MSR_ACCESS_FAILED +// +// MessageText: +// +// The requested access to the model specific register failed. +// +#define ERROR_HV_MSR_ACCESS_FAILED _NDIS_ERROR_TYPEDEF_(0xC0350080L) + +// +// MessageId: ERROR_HV_INSUFFICIENT_MEMORY_MIRRORING +// +// MessageText: +// +// There is not enough memory in the hypervisor pool to complete the mirroring operation. +// +#define ERROR_HV_INSUFFICIENT_MEMORY_MIRRORING _NDIS_ERROR_TYPEDEF_(0xC0350081L) + +// +// MessageId: ERROR_HV_INSUFFICIENT_CONTIGUOUS_MEMORY_MIRRORING +// +// MessageText: +// +// There is not enough contiguous memory in the hypervisor pool to complete the mirroring operation. +// +#define ERROR_HV_INSUFFICIENT_CONTIGUOUS_MEMORY_MIRRORING _NDIS_ERROR_TYPEDEF_(0xC0350082L) + +// +// MessageId: ERROR_HV_INSUFFICIENT_CONTIGUOUS_ROOT_MEMORY +// +// MessageText: +// +// There is not enough contiguous memory in the root partition's pool to complete the operation. +// +#define ERROR_HV_INSUFFICIENT_CONTIGUOUS_ROOT_MEMORY _NDIS_ERROR_TYPEDEF_(0xC0350083L) + +// +// MessageId: ERROR_HV_INSUFFICIENT_ROOT_MEMORY_MIRRORING +// +// MessageText: +// +// There is not enough memory in the root partition's pool to complete the mirroring operation. +// +#define ERROR_HV_INSUFFICIENT_ROOT_MEMORY_MIRRORING _NDIS_ERROR_TYPEDEF_(0xC0350084L) + +// +// MessageId: ERROR_HV_INSUFFICIENT_CONTIGUOUS_ROOT_MEMORY_MIRRORING +// +// MessageText: +// +// There is not enough contiguous memory in the root partition's pool to complete the mirroring operation. +// +#define ERROR_HV_INSUFFICIENT_CONTIGUOUS_ROOT_MEMORY_MIRRORING _NDIS_ERROR_TYPEDEF_(0xC0350085L) + +// +// MessageId: ERROR_HV_VTL_ALREADY_ENABLED +// +// MessageText: +// +// The VTL specified for the operation is already in an enabled state. +// +#define ERROR_HV_VTL_ALREADY_ENABLED _NDIS_ERROR_TYPEDEF_(0xC0350086L) + +// +// MessageId: ERROR_HV_SPDM_REQUEST +// +// MessageText: +// +// The device security operation was interrupted due to a required SPDM request. +// +#define ERROR_HV_SPDM_REQUEST _NDIS_ERROR_TYPEDEF_(0xC0350088L) + +// +// MessageId: ERROR_HV_NOT_PRESENT +// +// MessageText: +// +// No hypervisor is present on this system. +// +#define ERROR_HV_NOT_PRESENT _NDIS_ERROR_TYPEDEF_(0xC0351000L) + +// +// Virtualization error codes - these codes are used by the Virtualization Infrastructure Driver (VID) and other components +// of the virtualization stack. +// +// VID errors (0x0001 - 0x00ff) +// + +// +// MessageId: ERROR_VID_DUPLICATE_HANDLER +// +// MessageText: +// +// The handler for the virtualization infrastructure driver is already registered. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_DUPLICATE_HANDLER _NDIS_ERROR_TYPEDEF_(0xC0370001L) + +// +// MessageId: ERROR_VID_TOO_MANY_HANDLERS +// +// MessageText: +// +// The number of registered handlers for the virtualization infrastructure driver exceeded the maximum. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_TOO_MANY_HANDLERS _NDIS_ERROR_TYPEDEF_(0xC0370002L) + +// +// MessageId: ERROR_VID_QUEUE_FULL +// +// MessageText: +// +// The message queue for the virtualization infrastructure driver is full and cannot accept new messages. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_QUEUE_FULL _NDIS_ERROR_TYPEDEF_(0xC0370003L) + +// +// MessageId: ERROR_VID_HANDLER_NOT_PRESENT +// +// MessageText: +// +// No handler exists to handle the message for the virtualization infrastructure driver. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_HANDLER_NOT_PRESENT _NDIS_ERROR_TYPEDEF_(0xC0370004L) + +// +// MessageId: ERROR_VID_INVALID_OBJECT_NAME +// +// MessageText: +// +// The name of the partition or message queue for the virtualization infrastructure driver is invalid. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_INVALID_OBJECT_NAME _NDIS_ERROR_TYPEDEF_(0xC0370005L) + +// +// MessageId: ERROR_VID_PARTITION_NAME_TOO_LONG +// +// MessageText: +// +// The partition name of the virtualization infrastructure driver exceeds the maximum. +// +#define ERROR_VID_PARTITION_NAME_TOO_LONG _NDIS_ERROR_TYPEDEF_(0xC0370006L) + +// +// MessageId: ERROR_VID_MESSAGE_QUEUE_NAME_TOO_LONG +// +// MessageText: +// +// The message queue name of the virtualization infrastructure driver exceeds the maximum. +// +#define ERROR_VID_MESSAGE_QUEUE_NAME_TOO_LONG _NDIS_ERROR_TYPEDEF_(0xC0370007L) + +// +// MessageId: ERROR_VID_PARTITION_ALREADY_EXISTS +// +// MessageText: +// +// Cannot create the partition for the virtualization infrastructure driver because another partition with the same name already exists. +// +#define ERROR_VID_PARTITION_ALREADY_EXISTS _NDIS_ERROR_TYPEDEF_(0xC0370008L) + +// +// MessageId: ERROR_VID_PARTITION_DOES_NOT_EXIST +// +// MessageText: +// +// The virtualization infrastructure driver has encountered an error. The requested partition does not exist. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_PARTITION_DOES_NOT_EXIST _NDIS_ERROR_TYPEDEF_(0xC0370009L) + +// +// MessageId: ERROR_VID_PARTITION_NAME_NOT_FOUND +// +// MessageText: +// +// The virtualization infrastructure driver has encountered an error. Could not find the requested partition. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_PARTITION_NAME_NOT_FOUND _NDIS_ERROR_TYPEDEF_(0xC037000AL) + +// +// MessageId: ERROR_VID_MESSAGE_QUEUE_ALREADY_EXISTS +// +// MessageText: +// +// A message queue with the same name already exists for the virtualization infrastructure driver. +// +#define ERROR_VID_MESSAGE_QUEUE_ALREADY_EXISTS _NDIS_ERROR_TYPEDEF_(0xC037000BL) + +// +// MessageId: ERROR_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT +// +// MessageText: +// +// The memory block page for the virtualization infrastructure driver cannot be mapped because the page map limit has been reached. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT _NDIS_ERROR_TYPEDEF_(0xC037000CL) + +// +// MessageId: ERROR_VID_MB_STILL_REFERENCED +// +// MessageText: +// +// The memory block for the virtualization infrastructure driver is still being used and cannot be destroyed. +// +#define ERROR_VID_MB_STILL_REFERENCED _NDIS_ERROR_TYPEDEF_(0xC037000DL) + +// +// MessageId: ERROR_VID_CHILD_GPA_PAGE_SET_CORRUPTED +// +// MessageText: +// +// Cannot unlock the page array for the guest operating system memory address because it does not match a previous lock request. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_CHILD_GPA_PAGE_SET_CORRUPTED _NDIS_ERROR_TYPEDEF_(0xC037000EL) + +// +// MessageId: ERROR_VID_INVALID_NUMA_SETTINGS +// +// MessageText: +// +// The non-uniform memory access (NUMA) node settings do not match the system NUMA topology. In order to start the virtual machine, you will need to modify the NUMA configuration. +// +#define ERROR_VID_INVALID_NUMA_SETTINGS _NDIS_ERROR_TYPEDEF_(0xC037000FL) + +// +// MessageId: ERROR_VID_INVALID_NUMA_NODE_INDEX +// +// MessageText: +// +// The non-uniform memory access (NUMA) node index does not match a valid index in the system NUMA topology. +// +#define ERROR_VID_INVALID_NUMA_NODE_INDEX _NDIS_ERROR_TYPEDEF_(0xC0370010L) + +// +// MessageId: ERROR_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED +// +// MessageText: +// +// The memory block for the virtualization infrastructure driver is already associated with a message queue. +// +#define ERROR_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED _NDIS_ERROR_TYPEDEF_(0xC0370011L) + +// +// MessageId: ERROR_VID_INVALID_MEMORY_BLOCK_HANDLE +// +// MessageText: +// +// The handle is not a valid memory block handle for the virtualization infrastructure driver. +// +#define ERROR_VID_INVALID_MEMORY_BLOCK_HANDLE _NDIS_ERROR_TYPEDEF_(0xC0370012L) + +// +// MessageId: ERROR_VID_PAGE_RANGE_OVERFLOW +// +// MessageText: +// +// The request exceeded the memory block page limit for the virtualization infrastructure driver. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_PAGE_RANGE_OVERFLOW _NDIS_ERROR_TYPEDEF_(0xC0370013L) + +// +// MessageId: ERROR_VID_INVALID_MESSAGE_QUEUE_HANDLE +// +// MessageText: +// +// The handle is not a valid message queue handle for the virtualization infrastructure driver. +// +#define ERROR_VID_INVALID_MESSAGE_QUEUE_HANDLE _NDIS_ERROR_TYPEDEF_(0xC0370014L) + +// +// MessageId: ERROR_VID_INVALID_GPA_RANGE_HANDLE +// +// MessageText: +// +// The handle is not a valid page range handle for the virtualization infrastructure driver. +// +#define ERROR_VID_INVALID_GPA_RANGE_HANDLE _NDIS_ERROR_TYPEDEF_(0xC0370015L) + +// +// MessageId: ERROR_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE +// +// MessageText: +// +// Cannot install client notifications because no message queue for the virtualization infrastructure driver is associated with the memory block. +// +#define ERROR_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE _NDIS_ERROR_TYPEDEF_(0xC0370016L) + +// +// MessageId: ERROR_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED +// +// MessageText: +// +// The request to lock or map a memory block page failed because the virtualization infrastructure driver memory block limit has been reached. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED _NDIS_ERROR_TYPEDEF_(0xC0370017L) + +// +// MessageId: ERROR_VID_INVALID_PPM_HANDLE +// +// MessageText: +// +// The handle is not a valid parent partition mapping handle for the virtualization infrastructure driver. +// +#define ERROR_VID_INVALID_PPM_HANDLE _NDIS_ERROR_TYPEDEF_(0xC0370018L) + +// +// MessageId: ERROR_VID_MBPS_ARE_LOCKED +// +// MessageText: +// +// Notifications cannot be created on the memory block because it is use. +// +#define ERROR_VID_MBPS_ARE_LOCKED _NDIS_ERROR_TYPEDEF_(0xC0370019L) + +// +// MessageId: ERROR_VID_MESSAGE_QUEUE_CLOSED +// +// MessageText: +// +// The message queue for the virtualization infrastructure driver has been closed. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_MESSAGE_QUEUE_CLOSED _NDIS_ERROR_TYPEDEF_(0xC037001AL) + +// +// MessageId: ERROR_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED +// +// MessageText: +// +// Cannot add a virtual processor to the partition because the maximum has been reached. +// +#define ERROR_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED _NDIS_ERROR_TYPEDEF_(0xC037001BL) + +// +// MessageId: ERROR_VID_STOP_PENDING +// +// MessageText: +// +// Cannot stop the virtual processor immediately because of a pending intercept. +// +#define ERROR_VID_STOP_PENDING _NDIS_ERROR_TYPEDEF_(0xC037001CL) + +// +// MessageId: ERROR_VID_INVALID_PROCESSOR_STATE +// +// MessageText: +// +// Invalid state for the virtual processor. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_INVALID_PROCESSOR_STATE _NDIS_ERROR_TYPEDEF_(0xC037001DL) + +// +// MessageId: ERROR_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT +// +// MessageText: +// +// The maximum number of kernel mode clients for the virtualization infrastructure driver has been reached. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT _NDIS_ERROR_TYPEDEF_(0xC037001EL) + +// +// MessageId: ERROR_VID_KM_INTERFACE_ALREADY_INITIALIZED +// +// MessageText: +// +// This kernel mode interface for the virtualization infrastructure driver has already been initialized. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_KM_INTERFACE_ALREADY_INITIALIZED _NDIS_ERROR_TYPEDEF_(0xC037001FL) + +// +// MessageId: ERROR_VID_MB_PROPERTY_ALREADY_SET_RESET +// +// MessageText: +// +// Cannot set or reset the memory block property more than once for the virtualization infrastructure driver. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_MB_PROPERTY_ALREADY_SET_RESET _NDIS_ERROR_TYPEDEF_(0xC0370020L) + +// +// MessageId: ERROR_VID_MMIO_RANGE_DESTROYED +// +// MessageText: +// +// The memory mapped I/O for this page range no longer exists. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_MMIO_RANGE_DESTROYED _NDIS_ERROR_TYPEDEF_(0xC0370021L) + +// +// MessageId: ERROR_VID_INVALID_CHILD_GPA_PAGE_SET +// +// MessageText: +// +// The lock or unlock request uses an invalid guest operating system memory address. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_INVALID_CHILD_GPA_PAGE_SET _NDIS_ERROR_TYPEDEF_(0xC0370022L) + +// +// MessageId: ERROR_VID_RESERVE_PAGE_SET_IS_BEING_USED +// +// MessageText: +// +// Cannot destroy or reuse the reserve page set for the virtualization infrastructure driver because it is in use. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_RESERVE_PAGE_SET_IS_BEING_USED _NDIS_ERROR_TYPEDEF_(0xC0370023L) + +// +// MessageId: ERROR_VID_RESERVE_PAGE_SET_TOO_SMALL +// +// MessageText: +// +// The reserve page set for the virtualization infrastructure driver is too small to use in the lock request. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_RESERVE_PAGE_SET_TOO_SMALL _NDIS_ERROR_TYPEDEF_(0xC0370024L) + +// +// MessageId: ERROR_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE +// +// MessageText: +// +// Cannot lock or map the memory block page for the virtualization infrastructure driver because it has already been locked using a reserve page set page. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE _NDIS_ERROR_TYPEDEF_(0xC0370025L) + +// +// MessageId: ERROR_VID_MBP_COUNT_EXCEEDED_LIMIT +// +// MessageText: +// +// Cannot create the memory block for the virtualization infrastructure driver because the requested number of pages exceeded the limit. Restarting the virtual machine may fix the problem. If the problem persists, try restarting the physical computer. +// +#define ERROR_VID_MBP_COUNT_EXCEEDED_LIMIT _NDIS_ERROR_TYPEDEF_(0xC0370026L) + +// +// MessageId: ERROR_VID_SAVED_STATE_CORRUPT +// +// MessageText: +// +// Cannot restore this virtual machine because the saved state data cannot be read. Delete the saved state data and then try to start the virtual machine. +// +#define ERROR_VID_SAVED_STATE_CORRUPT _NDIS_ERROR_TYPEDEF_(0xC0370027L) + +// +// MessageId: ERROR_VID_SAVED_STATE_UNRECOGNIZED_ITEM +// +// MessageText: +// +// Cannot restore this virtual machine because an item read from the saved state data is not recognized. Delete the saved state data and then try to start the virtual machine. +// +#define ERROR_VID_SAVED_STATE_UNRECOGNIZED_ITEM _NDIS_ERROR_TYPEDEF_(0xC0370028L) + +// +// MessageId: ERROR_VID_SAVED_STATE_INCOMPATIBLE +// +// MessageText: +// +// Cannot restore this virtual machine to the saved state because of hypervisor incompatibility. Delete the saved state data and then try to start the virtual machine. +// +#define ERROR_VID_SAVED_STATE_INCOMPATIBLE _NDIS_ERROR_TYPEDEF_(0xC0370029L) + +// +// MessageId: ERROR_VID_VTL_ACCESS_DENIED +// +// MessageText: +// +// The specified VTL does not have the permission to access the resource. +// +#define ERROR_VID_VTL_ACCESS_DENIED _NDIS_ERROR_TYPEDEF_(0xC037002AL) + +// +// MessageId: ERROR_VID_INSUFFICIENT_RESOURCES_RESERVE +// +// MessageText: +// +// Failed to allocate backing memory due to insufficient memory resources. +// +#define ERROR_VID_INSUFFICIENT_RESOURCES_RESERVE _NDIS_ERROR_TYPEDEF_(0xC037002BL) + +// +// MessageId: ERROR_VID_INSUFFICIENT_RESOURCES_PHYSICAL_BUFFER +// +// MessageText: +// +// Failed to allocate memory for the physical buffer used to back certain internal structures. +// +#define ERROR_VID_INSUFFICIENT_RESOURCES_PHYSICAL_BUFFER _NDIS_ERROR_TYPEDEF_(0xC037002CL) + +// +// MessageId: ERROR_VID_INSUFFICIENT_RESOURCES_HV_DEPOSIT +// +// MessageText: +// +// Failed to allocate memory to be deposited in the hypervisor. +// +#define ERROR_VID_INSUFFICIENT_RESOURCES_HV_DEPOSIT _NDIS_ERROR_TYPEDEF_(0xC037002DL) + +// +// MessageId: ERROR_VID_MEMORY_TYPE_NOT_SUPPORTED +// +// MessageText: +// +// Memory type not supported for requested operation. +// +#define ERROR_VID_MEMORY_TYPE_NOT_SUPPORTED _NDIS_ERROR_TYPEDEF_(0xC037002EL) + +// +// MessageId: ERROR_VID_INSUFFICIENT_RESOURCES_WITHDRAW +// +// MessageText: +// +// Failed to withdraw memory. +// +#define ERROR_VID_INSUFFICIENT_RESOURCES_WITHDRAW _NDIS_ERROR_TYPEDEF_(0xC037002FL) + +// +// MessageId: ERROR_VID_PROCESS_ALREADY_SET +// +// MessageText: +// +// The process has already been set. +// +#define ERROR_VID_PROCESS_ALREADY_SET _NDIS_ERROR_TYPEDEF_(0xC0370030L) + +// +// Host compute service errors (0x0100-0x01ff) +// +// +// MessageId: ERROR_VMCOMPUTE_TERMINATED_DURING_START +// +// MessageText: +// +// The virtual machine or container exited unexpectedly while starting. +// +#define ERROR_VMCOMPUTE_TERMINATED_DURING_START _NDIS_ERROR_TYPEDEF_(0xC0370100L) + +// +// MessageId: ERROR_VMCOMPUTE_IMAGE_MISMATCH +// +// MessageText: +// +// The container operating system does not match the host operating system. +// +#define ERROR_VMCOMPUTE_IMAGE_MISMATCH _NDIS_ERROR_TYPEDEF_(0xC0370101L) + +// +// MessageId: ERROR_VMCOMPUTE_HYPERV_NOT_INSTALLED +// +// MessageText: +// +// The virtual machine could not be started because a required feature is not installed. +// +#define ERROR_VMCOMPUTE_HYPERV_NOT_INSTALLED _NDIS_ERROR_TYPEDEF_(0xC0370102L) + +// +// MessageId: ERROR_VMCOMPUTE_OPERATION_PENDING +// +// MessageText: +// +// The call to start an asynchronous operation succeeded and the operation is performed in the background. +// +#define ERROR_VMCOMPUTE_OPERATION_PENDING _NDIS_ERROR_TYPEDEF_(0xC0370103L) + +// +// MessageId: ERROR_VMCOMPUTE_TOO_MANY_NOTIFICATIONS +// +// MessageText: +// +// The supported number of notification callbacks has been exceeded. +// +#define ERROR_VMCOMPUTE_TOO_MANY_NOTIFICATIONS _NDIS_ERROR_TYPEDEF_(0xC0370104L) + +// +// MessageId: ERROR_VMCOMPUTE_INVALID_STATE +// +// MessageText: +// +// The requested virtual machine or container operation is not valid in the current state. +// +#define ERROR_VMCOMPUTE_INVALID_STATE _NDIS_ERROR_TYPEDEF_(0xC0370105L) + +// +// MessageId: ERROR_VMCOMPUTE_UNEXPECTED_EXIT +// +// MessageText: +// +// The virtual machine or container exited unexpectedly. +// +#define ERROR_VMCOMPUTE_UNEXPECTED_EXIT _NDIS_ERROR_TYPEDEF_(0xC0370106L) + +// +// MessageId: ERROR_VMCOMPUTE_TERMINATED +// +// MessageText: +// +// The virtual machine or container was forcefully exited. +// +#define ERROR_VMCOMPUTE_TERMINATED _NDIS_ERROR_TYPEDEF_(0xC0370107L) + +// +// MessageId: ERROR_VMCOMPUTE_CONNECT_FAILED +// +// MessageText: +// +// A connection could not be established with the container or virtual machine. +// +#define ERROR_VMCOMPUTE_CONNECT_FAILED _NDIS_ERROR_TYPEDEF_(0xC0370108L) + +// +// MessageId: ERROR_VMCOMPUTE_TIMEOUT +// +// MessageText: +// +// The operation timed out because a response was not received from the virtual machine or container. +// +#define ERROR_VMCOMPUTE_TIMEOUT _NDIS_ERROR_TYPEDEF_(0xC0370109L) + +// +// MessageId: ERROR_VMCOMPUTE_CONNECTION_CLOSED +// +// MessageText: +// +// The connection with the virtual machine or container was closed. +// +#define ERROR_VMCOMPUTE_CONNECTION_CLOSED _NDIS_ERROR_TYPEDEF_(0xC037010AL) + +// +// MessageId: ERROR_VMCOMPUTE_UNKNOWN_MESSAGE +// +// MessageText: +// +// An unknown internal message was received by the virtual machine or container. +// +#define ERROR_VMCOMPUTE_UNKNOWN_MESSAGE _NDIS_ERROR_TYPEDEF_(0xC037010BL) + +// +// MessageId: ERROR_VMCOMPUTE_UNSUPPORTED_PROTOCOL_VERSION +// +// MessageText: +// +// The virtual machine or container does not support an available version of the communication protocol with the host. +// +#define ERROR_VMCOMPUTE_UNSUPPORTED_PROTOCOL_VERSION _NDIS_ERROR_TYPEDEF_(0xC037010CL) + +// +// MessageId: ERROR_VMCOMPUTE_INVALID_JSON +// +// MessageText: +// +// The virtual machine or container JSON document is invalid. +// +#define ERROR_VMCOMPUTE_INVALID_JSON _NDIS_ERROR_TYPEDEF_(0xC037010DL) + +// +// MessageId: ERROR_VMCOMPUTE_SYSTEM_NOT_FOUND +// +// MessageText: +// +// A virtual machine or container with the specified identifier does not exist. +// +#define ERROR_VMCOMPUTE_SYSTEM_NOT_FOUND _NDIS_ERROR_TYPEDEF_(0xC037010EL) + +// +// MessageId: ERROR_VMCOMPUTE_SYSTEM_ALREADY_EXISTS +// +// MessageText: +// +// A virtual machine or container with the specified identifier already exists. +// +#define ERROR_VMCOMPUTE_SYSTEM_ALREADY_EXISTS _NDIS_ERROR_TYPEDEF_(0xC037010FL) + +// +// MessageId: ERROR_VMCOMPUTE_SYSTEM_ALREADY_STOPPED +// +// MessageText: +// +// The virtual machine or container with the specified identifier is not running. +// +#define ERROR_VMCOMPUTE_SYSTEM_ALREADY_STOPPED _NDIS_ERROR_TYPEDEF_(0xC0370110L) + +// +// MessageId: ERROR_VMCOMPUTE_PROTOCOL_ERROR +// +// MessageText: +// +// A communication protocol error has occurred between the virtual machine or container and the host. +// +#define ERROR_VMCOMPUTE_PROTOCOL_ERROR _NDIS_ERROR_TYPEDEF_(0xC0370111L) + +// +// MessageId: ERROR_VMCOMPUTE_INVALID_LAYER +// +// MessageText: +// +// The container image contains a layer with an unrecognized format. +// +#define ERROR_VMCOMPUTE_INVALID_LAYER _NDIS_ERROR_TYPEDEF_(0xC0370112L) + +// +// MessageId: ERROR_VMCOMPUTE_WINDOWS_INSIDER_REQUIRED +// +// MessageText: +// +// To use this container image, you must join the Windows Insider Program. Please see https://go.microsoft.com/fwlink/?linkid=850659 for more information. +// +#define ERROR_VMCOMPUTE_WINDOWS_INSIDER_REQUIRED _NDIS_ERROR_TYPEDEF_(0xC0370113L) + +// +// Host Compute System error codes (0x0100-0x01ff HRESULT codes) +// +// +// MessageId: HCS_E_TERMINATED_DURING_START +// +// MessageText: +// +// The virtual machine or container exited unexpectedly while starting. +// +#define HCS_E_TERMINATED_DURING_START _HRESULT_TYPEDEF_(0x80370100L) + +// +// MessageId: HCS_E_IMAGE_MISMATCH +// +// MessageText: +// +// The container operating system does not match the host operating system. +// +#define HCS_E_IMAGE_MISMATCH _HRESULT_TYPEDEF_(0x80370101L) + +// +// MessageId: HCS_E_HYPERV_NOT_INSTALLED +// +// MessageText: +// +// The virtual machine could not be started because a required feature is not installed. +// +#define HCS_E_HYPERV_NOT_INSTALLED _HRESULT_TYPEDEF_(0x80370102L) + +// +// MessageId: HCS_E_INVALID_STATE +// +// MessageText: +// +// The requested virtual machine or container operation is not valid in the current state. +// +#define HCS_E_INVALID_STATE _HRESULT_TYPEDEF_(0x80370105L) + +// +// MessageId: HCS_E_UNEXPECTED_EXIT +// +// MessageText: +// +// The virtual machine or container exited unexpectedly. +// +#define HCS_E_UNEXPECTED_EXIT _HRESULT_TYPEDEF_(0x80370106L) + +// +// MessageId: HCS_E_TERMINATED +// +// MessageText: +// +// The virtual machine or container was forcefully exited. +// +#define HCS_E_TERMINATED _HRESULT_TYPEDEF_(0x80370107L) + +// +// MessageId: HCS_E_CONNECT_FAILED +// +// MessageText: +// +// A connection could not be established with the container or virtual machine. +// +#define HCS_E_CONNECT_FAILED _HRESULT_TYPEDEF_(0x80370108L) + +// +// MessageId: HCS_E_CONNECTION_TIMEOUT +// +// MessageText: +// +// The operation timed out because a response was not received from the virtual machine or container. +// +#define HCS_E_CONNECTION_TIMEOUT _HRESULT_TYPEDEF_(0x80370109L) + +// +// MessageId: HCS_E_CONNECTION_CLOSED +// +// MessageText: +// +// The connection with the virtual machine or container was closed. +// +#define HCS_E_CONNECTION_CLOSED _HRESULT_TYPEDEF_(0x8037010AL) + +// +// MessageId: HCS_E_UNKNOWN_MESSAGE +// +// MessageText: +// +// An unknown internal message was received by the virtual machine or container. +// +#define HCS_E_UNKNOWN_MESSAGE _HRESULT_TYPEDEF_(0x8037010BL) + +// +// MessageId: HCS_E_UNSUPPORTED_PROTOCOL_VERSION +// +// MessageText: +// +// The virtual machine or container does not support an available version of the communication protocol with the host. +// +#define HCS_E_UNSUPPORTED_PROTOCOL_VERSION _HRESULT_TYPEDEF_(0x8037010CL) + +// +// MessageId: HCS_E_INVALID_JSON +// +// MessageText: +// +// The virtual machine or container JSON document is invalid. +// +#define HCS_E_INVALID_JSON _HRESULT_TYPEDEF_(0x8037010DL) + +// +// MessageId: HCS_E_SYSTEM_NOT_FOUND +// +// MessageText: +// +// A virtual machine or container with the specified identifier does not exist. +// +#define HCS_E_SYSTEM_NOT_FOUND _HRESULT_TYPEDEF_(0x8037010EL) + +// +// MessageId: HCS_E_SYSTEM_ALREADY_EXISTS +// +// MessageText: +// +// A virtual machine or container with the specified identifier already exists. +// +#define HCS_E_SYSTEM_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x8037010FL) + +// +// MessageId: HCS_E_SYSTEM_ALREADY_STOPPED +// +// MessageText: +// +// The virtual machine or container with the specified identifier is not running. +// +#define HCS_E_SYSTEM_ALREADY_STOPPED _HRESULT_TYPEDEF_(0x80370110L) + +// +// MessageId: HCS_E_PROTOCOL_ERROR +// +// MessageText: +// +// A communication protocol error has occurred between the virtual machine or container and the host. +// +#define HCS_E_PROTOCOL_ERROR _HRESULT_TYPEDEF_(0x80370111L) + +// +// MessageId: HCS_E_INVALID_LAYER +// +// MessageText: +// +// The container image contains a layer with an unrecognized format. +// +#define HCS_E_INVALID_LAYER _HRESULT_TYPEDEF_(0x80370112L) + +// +// MessageId: HCS_E_WINDOWS_INSIDER_REQUIRED +// +// MessageText: +// +// To use this container image, you must join the Windows Insider Program. Please see https://go.microsoft.com/fwlink/?linkid=850659 for more information. +// +#define HCS_E_WINDOWS_INSIDER_REQUIRED _HRESULT_TYPEDEF_(0x80370113L) + +// +// MessageId: HCS_E_SERVICE_NOT_AVAILABLE +// +// MessageText: +// +// The operation could not be started because a required feature is not installed. +// +#define HCS_E_SERVICE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80370114L) + +// +// MessageId: HCS_E_OPERATION_NOT_STARTED +// +// MessageText: +// +// The operation has not started. +// +#define HCS_E_OPERATION_NOT_STARTED _HRESULT_TYPEDEF_(0x80370115L) + +// +// MessageId: HCS_E_OPERATION_ALREADY_STARTED +// +// MessageText: +// +// The operation is already running. +// +#define HCS_E_OPERATION_ALREADY_STARTED _HRESULT_TYPEDEF_(0x80370116L) + +// +// MessageId: HCS_E_OPERATION_PENDING +// +// MessageText: +// +// The operation is still running. +// +#define HCS_E_OPERATION_PENDING _HRESULT_TYPEDEF_(0x80370117L) + +// +// MessageId: HCS_E_OPERATION_TIMEOUT +// +// MessageText: +// +// The operation did not complete in time. +// +#define HCS_E_OPERATION_TIMEOUT _HRESULT_TYPEDEF_(0x80370118L) + +// +// MessageId: HCS_E_OPERATION_SYSTEM_CALLBACK_ALREADY_SET +// +// MessageText: +// +// An event callback has already been registered on this handle. +// +#define HCS_E_OPERATION_SYSTEM_CALLBACK_ALREADY_SET _HRESULT_TYPEDEF_(0x80370119L) + +// +// MessageId: HCS_E_OPERATION_RESULT_ALLOCATION_FAILED +// +// MessageText: +// +// Not enough memory available to return the result of the operation. +// +#define HCS_E_OPERATION_RESULT_ALLOCATION_FAILED _HRESULT_TYPEDEF_(0x8037011AL) + +// +// MessageId: HCS_E_ACCESS_DENIED +// +// MessageText: +// +// Insufficient privileges. Only administrators or users that are members of the Hyper-V Administrators user group are permitted to access virtual machines or containers. To add yourself to the Hyper-V Administrators user group, please see https://aka.ms/hcsadmin for more information. +// +#define HCS_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x8037011BL) + +// +// MessageId: HCS_E_GUEST_CRITICAL_ERROR +// +// MessageText: +// +// The virtual machine or container reported a critical error and was stopped or restarted. +// +#define HCS_E_GUEST_CRITICAL_ERROR _HRESULT_TYPEDEF_(0x8037011CL) + +// +// MessageId: HCS_E_PROCESS_INFO_NOT_AVAILABLE +// +// MessageText: +// +// The process information is not available. +// +#define HCS_E_PROCESS_INFO_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x8037011DL) + +// +// MessageId: HCS_E_SERVICE_DISCONNECT +// +// MessageText: +// +// The host compute system service has disconnected unexpectedly. +// +#define HCS_E_SERVICE_DISCONNECT _HRESULT_TYPEDEF_(0x8037011EL) + +// +// MessageId: HCS_E_PROCESS_ALREADY_STOPPED +// +// MessageText: +// +// The process has already exited. +// +#define HCS_E_PROCESS_ALREADY_STOPPED _HRESULT_TYPEDEF_(0x8037011FL) + +// +// MessageId: HCS_E_SYSTEM_NOT_CONFIGURED_FOR_OPERATION +// +// MessageText: +// +// The virtual machine or container is not configured to perform the operation. +// +#define HCS_E_SYSTEM_NOT_CONFIGURED_FOR_OPERATION _HRESULT_TYPEDEF_(0x80370120L) + +// +// MessageId: HCS_E_OPERATION_ALREADY_CANCELLED +// +// MessageText: +// +// The operation has already been cancelled. +// +#define HCS_E_OPERATION_ALREADY_CANCELLED _HRESULT_TYPEDEF_(0x80370121L) + +// +// Virtual networking errors (0x0200-0x02ff) +// +// +// MessageId: ERROR_VNET_VIRTUAL_SWITCH_NAME_NOT_FOUND +// +// MessageText: +// +// A virtual switch with the given name was not found. +// +#define ERROR_VNET_VIRTUAL_SWITCH_NAME_NOT_FOUND _NDIS_ERROR_TYPEDEF_(0xC0370200L) + +// +// VID warnings (0x0000 - 0x00ff): +// +// +// MessageId: ERROR_VID_REMOTE_NODE_PARENT_GPA_PAGES_USED +// +// MessageText: +// +// A virtual machine is running with its memory allocated across multiple NUMA nodes. This does not indicate a problem unless the performance of your virtual machine is unusually slow. If you are experiencing performance problems, you may need to modify the NUMA configuration. +// +#define ERROR_VID_REMOTE_NODE_PARENT_GPA_PAGES_USED _NDIS_ERROR_TYPEDEF_(0x80370001L) + +// +// User-mode Hypervisor API error codes (0x0300-0x03ff) +// +// +// MessageId: WHV_E_UNKNOWN_CAPABILITY +// +// MessageText: +// +// The specified capability does not exist. +// +#define WHV_E_UNKNOWN_CAPABILITY _HRESULT_TYPEDEF_(0x80370300L) + +// +// MessageId: WHV_E_INSUFFICIENT_BUFFER +// +// MessageText: +// +// The specified buffer is too small for the requested data. +// +#define WHV_E_INSUFFICIENT_BUFFER _HRESULT_TYPEDEF_(0x80370301L) + +// +// MessageId: WHV_E_UNKNOWN_PROPERTY +// +// MessageText: +// +// The specified property does not exist. +// +#define WHV_E_UNKNOWN_PROPERTY _HRESULT_TYPEDEF_(0x80370302L) + +// +// MessageId: WHV_E_UNSUPPORTED_HYPERVISOR_CONFIG +// +// MessageText: +// +// The configuration of the hypervisor on this system is not supported. +// +#define WHV_E_UNSUPPORTED_HYPERVISOR_CONFIG _HRESULT_TYPEDEF_(0x80370303L) + +// +// MessageId: WHV_E_INVALID_PARTITION_CONFIG +// +// MessageText: +// +// The configuration of the partition is not valid. +// +#define WHV_E_INVALID_PARTITION_CONFIG _HRESULT_TYPEDEF_(0x80370304L) + +// +// MessageId: WHV_E_GPA_RANGE_NOT_FOUND +// +// MessageText: +// +// The specified GPA range was not found. +// +#define WHV_E_GPA_RANGE_NOT_FOUND _HRESULT_TYPEDEF_(0x80370305L) + +// +// MessageId: WHV_E_VP_ALREADY_EXISTS +// +// MessageText: +// +// A virtual processor with the specified index already exists. +// +#define WHV_E_VP_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x80370306L) + +// +// MessageId: WHV_E_VP_DOES_NOT_EXIST +// +// MessageText: +// +// A virtual processor with the specified index does not exist. +// +#define WHV_E_VP_DOES_NOT_EXIST _HRESULT_TYPEDEF_(0x80370307L) + +// +// MessageId: WHV_E_INVALID_VP_STATE +// +// MessageText: +// +// The virtual processor is not in the correct state to perform the requested operation. +// +#define WHV_E_INVALID_VP_STATE _HRESULT_TYPEDEF_(0x80370308L) + +// +// MessageId: WHV_E_INVALID_VP_REGISTER_NAME +// +// MessageText: +// +// A virtual processor register with the specified name does not exist. +// +#define WHV_E_INVALID_VP_REGISTER_NAME _HRESULT_TYPEDEF_(0x80370309L) + +// +// MessageId: WHV_E_UNSUPPORTED_PROCESSOR_CONFIG +// +// MessageText: +// +// The Windows Hypervisor Platform is not supported due to a processor limitation. +// +#define WHV_E_UNSUPPORTED_PROCESSOR_CONFIG _HRESULT_TYPEDEF_(0x80370310L) + +// +// Virtual storage error codes (0x0400-0x04ff) +// +// +// MessageId: ERROR_VSMB_SAVED_STATE_FILE_NOT_FOUND +// +// MessageText: +// +// Cannot restore this virtual machine because a file read from the vSMB saved state data could not be found. Delete the saved state data and then try to start the virtual machine. +// +#define ERROR_VSMB_SAVED_STATE_FILE_NOT_FOUND _NDIS_ERROR_TYPEDEF_(0xC0370400L) + +// +// MessageId: ERROR_VSMB_SAVED_STATE_CORRUPT +// +// MessageText: +// +// Cannot restore this virtual machine because the vSMB saved state data cannot be read. Delete the saved state data and then try to start the virtual machine. +// +#define ERROR_VSMB_SAVED_STATE_CORRUPT _NDIS_ERROR_TYPEDEF_(0xC0370401L) + + +// +// VmSavedStateDumpProvider error codes (0x0500-0x05ff) +// + +// +// MessageId: VM_SAVED_STATE_DUMP_E_PARTITION_STATE_NOT_FOUND +// +// MessageText: +// +// Partition state blob not found. Make sure the virtual machine is saved for this content to be included in the saved state file(s). +// +#define VM_SAVED_STATE_DUMP_E_PARTITION_STATE_NOT_FOUND _HRESULT_TYPEDEF_(0xC0370500L) + +// +// MessageId: VM_SAVED_STATE_DUMP_E_GUEST_MEMORY_NOT_FOUND +// +// MessageText: +// +// Guest memory not found. Make sure the virtual machine is saved for this content to be included in the saved state file(s). +// +#define VM_SAVED_STATE_DUMP_E_GUEST_MEMORY_NOT_FOUND _HRESULT_TYPEDEF_(0xC0370501L) + +// +// MessageId: VM_SAVED_STATE_DUMP_E_NO_VP_FOUND_IN_PARTITION_STATE +// +// MessageText: +// +// No virtual processor information found in the saved partition blob. Make sure the virtual machine is saved successfully for this content to be included in the partition state. +// +#define VM_SAVED_STATE_DUMP_E_NO_VP_FOUND_IN_PARTITION_STATE _HRESULT_TYPEDEF_(0xC0370502L) + +// +// MessageId: VM_SAVED_STATE_DUMP_E_NESTED_VIRTUALIZATION_NOT_SUPPORTED +// +// MessageText: +// +// A virtual processor has been detected to have nested virtualization enabled. Nested Virtualization is not supported yet by VmSavedStateDumpProvider. +// +#define VM_SAVED_STATE_DUMP_E_NESTED_VIRTUALIZATION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0370503L) + +// +// MessageId: VM_SAVED_STATE_DUMP_E_WINDOWS_KERNEL_IMAGE_NOT_FOUND +// +// MessageText: +// +// The Windows kernel image address could not be found in the virtual machine saved state. +// +#define VM_SAVED_STATE_DUMP_E_WINDOWS_KERNEL_IMAGE_NOT_FOUND _HRESULT_TYPEDEF_(0xC0370504L) + +// +// MessageId: VM_SAVED_STATE_DUMP_E_VA_NOT_MAPPED +// +// MessageText: +// +// The given virtual address is not mapped to a physical address. +// +#define VM_SAVED_STATE_DUMP_E_VA_NOT_MAPPED _HRESULT_TYPEDEF_(0xC0370505L) + +// +// MessageId: VM_SAVED_STATE_DUMP_E_INVALID_VP_STATE +// +// MessageText: +// +// The virtual processor is not in the correct state for the operation. +// +#define VM_SAVED_STATE_DUMP_E_INVALID_VP_STATE _HRESULT_TYPEDEF_(0xC0370506L) + +// +// MessageId: VM_SAVED_STATE_DUMP_E_VP_VTL_NOT_ENABLED +// +// MessageText: +// +// The active virtual trust level is not enabled on the specified virtual processor. +// +#define VM_SAVED_STATE_DUMP_E_VP_VTL_NOT_ENABLED _HRESULT_TYPEDEF_(0xC0370509L) + + +// +// DM / Resize related error codes (0x0600-0x06ff) +// + +// +// MessageId: ERROR_DM_OPERATION_LIMIT_EXCEEDED +// +// MessageText: +// +// The attempted DM / resize operation exceeds the supported size. +// +#define ERROR_DM_OPERATION_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0xC0370600L) + + +// +// VMMS related error code (0x0700-0x07ff) +// + +// +// MessageId: VM_E_CLIENT_NAME_REQUIRED +// +// MessageText: +// +// Required WMI metadata 'ClientName' was not provided. +// +#define VM_E_CLIENT_NAME_REQUIRED _HRESULT_TYPEDEF_(0xC0370700L) + +// +// MessageId: VM_E_MODIFY_VTL2_SETTINGS_CONFLICT +// +// MessageText: +// +// VTL2 settings were not modified because another client modified them. Requery the settings and try again. +// +#define VM_E_MODIFY_VTL2_SETTINGS_CONFLICT _HRESULT_TYPEDEF_(0xC0370701L) + +// +// MessageId: VM_E_VTL2_NOT_AVAILABLE +// +// MessageText: +// +// Management VTL settings are not available because the virtual machine does not have the correct GuestStateIsolationType. +// +#define VM_E_VTL2_NOT_AVAILABLE _HRESULT_TYPEDEF_(0xC0370702L) + + + // + // Management VTL related error codes (0x0800 - 0x08ff) + // + +// +// MessageId: VM_E_MANAGEMENT_VTL_RELOAD_IN_PROGRESS +// +// MessageText: +// +// Reload of the management VTL was already in progress. +// +#define VM_E_MANAGEMENT_VTL_RELOAD_IN_PROGRESS _HRESULT_TYPEDEF_(0xC0370800L) + +// +// MessageId: VM_E_MANAGEMENT_VTL_RELOAD_INVALID_PROTOCOL_RESPONSE +// +// MessageText: +// +// Received an invalid protocol response. +// +#define VM_E_MANAGEMENT_VTL_RELOAD_INVALID_PROTOCOL_RESPONSE _HRESULT_TYPEDEF_(0xC0370801L) + +// +// MessageId: VM_E_MANAGEMENT_VTL_RELOAD_SAVE_FAILURE +// +// MessageText: +// +// Management VTL failed to save itself. +// +#define VM_E_MANAGEMENT_VTL_RELOAD_SAVE_FAILURE _HRESULT_TYPEDEF_(0xC0370802L) + +// +// MessageId: VM_E_MANAGEMENT_VTL_RELOAD_RESTORE_FAILURE +// +// MessageText: +// +// Management VTL failed to restore itself. +// +#define VM_E_MANAGEMENT_VTL_RELOAD_RESTORE_FAILURE _HRESULT_TYPEDEF_(0xC0370803L) + +// +// MessageId: VM_E_MANAGEMENT_VTL_RELOAD_NO_SAVED_STATE +// +// MessageText: +// +// There is no saved state for the management VTL. +// +#define VM_E_MANAGEMENT_VTL_RELOAD_NO_SAVED_STATE _HRESULT_TYPEDEF_(0xC0370804L) + +// +// MessageId: VM_E_MANAGEMENT_VTL_RELOAD_INVALID_SAVE_NOTIFICATION_RECEIVED +// +// MessageText: +// +// Received an invalid or unexpected management VTL save notification. +// +// +#define VM_E_MANAGEMENT_VTL_RELOAD_INVALID_SAVE_NOTIFICATION_RECEIVED _HRESULT_TYPEDEF_(0xC0370805L) + +// +// MessageId: VM_E_MANAGEMENT_VTL_RELOAD_INVALID_RESTORE_REQUEST_RECEIVED +// +// MessageText: +// +// Received an invalid or unexpected request to restore management VTL. +// +#define VM_E_MANAGEMENT_VTL_RELOAD_INVALID_RESTORE_REQUEST_RECEIVED _HRESULT_TYPEDEF_(0xC0370806L) + +// +// MessageId: VM_E_MANAGEMENT_VTL_RELOAD_INVALID_RESTORE_NOTIFICATION_RECEIVED +// +// MessageText: +// +// Received an invalid or unexpected notification to restore management VTL. +// +#define VM_E_MANAGEMENT_VTL_RELOAD_INVALID_RESTORE_NOTIFICATION_RECEIVED _HRESULT_TYPEDEF_(0xC0370807L) + +// +// MessageId: VM_E_MANAGEMENT_VTL_RELOAD_NO_IGVM_FILE +// +// MessageText: +// +// The virtual machine was not booted from an IGVM file. There is no management VTL. +// +#define VM_E_MANAGEMENT_VTL_RELOAD_NO_IGVM_FILE _HRESULT_TYPEDEF_(0xC0370808L) + +// +// MessageId: VM_E_MANAGEMENT_VTL_RELOAD_UNSUPPORTED +// +// MessageText: +// +// Reloading the management VTL environment is not supported for this VM. +// +#define VM_E_MANAGEMENT_VTL_RELOAD_UNSUPPORTED _HRESULT_TYPEDEF_(0xC0370809L) + +// +// MessageId: VM_E_MANAGEMENT_VTL_PROTOCOL_ESTABLISHMENT_TIMEOUT +// +// MessageText: +// +// The management VTL environment failed to negotiate protocol with the host within the allowed time limit. +// +#define VM_E_MANAGEMENT_VTL_PROTOCOL_ESTABLISHMENT_TIMEOUT _HRESULT_TYPEDEF_(0xC037080AL) + + +// +// Volume manager error codes mapped from status codes +// + +// +// WARNINGS +// +// +// MessageId: ERROR_VOLMGR_INCOMPLETE_REGENERATION +// +// MessageText: +// +// The regeneration operation was not able to copy all data from the active plexes due to bad sectors. +// +#define ERROR_VOLMGR_INCOMPLETE_REGENERATION _NDIS_ERROR_TYPEDEF_(0x80380001L) + +// +// MessageId: ERROR_VOLMGR_INCOMPLETE_DISK_MIGRATION +// +// MessageText: +// +// One or more disks were not fully migrated to the target pack. They may or may not require reimport after fixing the hardware problems. +// +#define ERROR_VOLMGR_INCOMPLETE_DISK_MIGRATION _NDIS_ERROR_TYPEDEF_(0x80380002L) + +// +// ERRORS +// +// +// MessageId: ERROR_VOLMGR_DATABASE_FULL +// +// MessageText: +// +// The configuration database is full. +// +#define ERROR_VOLMGR_DATABASE_FULL _NDIS_ERROR_TYPEDEF_(0xC0380001L) + +// +// MessageId: ERROR_VOLMGR_DISK_CONFIGURATION_CORRUPTED +// +// MessageText: +// +// The configuration data on the disk is corrupted. +// +#define ERROR_VOLMGR_DISK_CONFIGURATION_CORRUPTED _NDIS_ERROR_TYPEDEF_(0xC0380002L) + +// +// MessageId: ERROR_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC +// +// MessageText: +// +// The configuration on the disk is not insync with the in-memory configuration. +// +#define ERROR_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC _NDIS_ERROR_TYPEDEF_(0xC0380003L) + +// +// MessageId: ERROR_VOLMGR_PACK_CONFIG_UPDATE_FAILED +// +// MessageText: +// +// A majority of disks failed to be updated with the new configuration. +// +#define ERROR_VOLMGR_PACK_CONFIG_UPDATE_FAILED _NDIS_ERROR_TYPEDEF_(0xC0380004L) + +// +// MessageId: ERROR_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME +// +// MessageText: +// +// The disk contains non-simple volumes. +// +#define ERROR_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME _NDIS_ERROR_TYPEDEF_(0xC0380005L) + +// +// MessageId: ERROR_VOLMGR_DISK_DUPLICATE +// +// MessageText: +// +// The same disk was specified more than once in the migration list. +// +#define ERROR_VOLMGR_DISK_DUPLICATE _NDIS_ERROR_TYPEDEF_(0xC0380006L) + +// +// MessageId: ERROR_VOLMGR_DISK_DYNAMIC +// +// MessageText: +// +// The disk is already dynamic. +// +#define ERROR_VOLMGR_DISK_DYNAMIC _NDIS_ERROR_TYPEDEF_(0xC0380007L) + +// +// MessageId: ERROR_VOLMGR_DISK_ID_INVALID +// +// MessageText: +// +// The specified disk id is invalid. There are no disks with the specified disk id. +// +#define ERROR_VOLMGR_DISK_ID_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380008L) + +// +// MessageId: ERROR_VOLMGR_DISK_INVALID +// +// MessageText: +// +// The specified disk is an invalid disk. Operation cannot complete on an invalid disk. +// +#define ERROR_VOLMGR_DISK_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380009L) + +// +// MessageId: ERROR_VOLMGR_DISK_LAST_VOTER +// +// MessageText: +// +// The specified disk(s) cannot be removed since it is the last remaining voter. +// +#define ERROR_VOLMGR_DISK_LAST_VOTER _NDIS_ERROR_TYPEDEF_(0xC038000AL) + +// +// MessageId: ERROR_VOLMGR_DISK_LAYOUT_INVALID +// +// MessageText: +// +// The specified disk has an invalid disk layout. +// +#define ERROR_VOLMGR_DISK_LAYOUT_INVALID _NDIS_ERROR_TYPEDEF_(0xC038000BL) + +// +// MessageId: ERROR_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS +// +// MessageText: +// +// The disk layout contains non-basic partitions which appear after basic partitions. This is an invalid disk layout. +// +#define ERROR_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS _NDIS_ERROR_TYPEDEF_(0xC038000CL) + +// +// MessageId: ERROR_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED +// +// MessageText: +// +// The disk layout contains partitions which are not cylinder aligned. +// +#define ERROR_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED _NDIS_ERROR_TYPEDEF_(0xC038000DL) + +// +// MessageId: ERROR_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL +// +// MessageText: +// +// The disk layout contains partitions which are smaller than the minimum size. +// +#define ERROR_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL _NDIS_ERROR_TYPEDEF_(0xC038000EL) + +// +// MessageId: ERROR_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS +// +// MessageText: +// +// The disk layout contains primary partitions in between logical drives. This is an invalid disk layout. +// +#define ERROR_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS _NDIS_ERROR_TYPEDEF_(0xC038000FL) + +// +// MessageId: ERROR_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS +// +// MessageText: +// +// The disk layout contains more than the maximum number of supported partitions. +// +#define ERROR_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS _NDIS_ERROR_TYPEDEF_(0xC0380010L) + +// +// MessageId: ERROR_VOLMGR_DISK_MISSING +// +// MessageText: +// +// The specified disk is missing. The operation cannot complete on a missing disk. +// +#define ERROR_VOLMGR_DISK_MISSING _NDIS_ERROR_TYPEDEF_(0xC0380011L) + +// +// MessageId: ERROR_VOLMGR_DISK_NOT_EMPTY +// +// MessageText: +// +// The specified disk is not empty. +// +#define ERROR_VOLMGR_DISK_NOT_EMPTY _NDIS_ERROR_TYPEDEF_(0xC0380012L) + +// +// MessageId: ERROR_VOLMGR_DISK_NOT_ENOUGH_SPACE +// +// MessageText: +// +// There is not enough usable space for this operation. +// +#define ERROR_VOLMGR_DISK_NOT_ENOUGH_SPACE _NDIS_ERROR_TYPEDEF_(0xC0380013L) + +// +// MessageId: ERROR_VOLMGR_DISK_REVECTORING_FAILED +// +// MessageText: +// +// The force revectoring of bad sectors failed. +// +#define ERROR_VOLMGR_DISK_REVECTORING_FAILED _NDIS_ERROR_TYPEDEF_(0xC0380014L) + +// +// MessageId: ERROR_VOLMGR_DISK_SECTOR_SIZE_INVALID +// +// MessageText: +// +// The specified disk has an invalid sector size. +// +#define ERROR_VOLMGR_DISK_SECTOR_SIZE_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380015L) + +// +// MessageId: ERROR_VOLMGR_DISK_SET_NOT_CONTAINED +// +// MessageText: +// +// The specified disk set contains volumes which exist on disks outside of the set. +// +#define ERROR_VOLMGR_DISK_SET_NOT_CONTAINED _NDIS_ERROR_TYPEDEF_(0xC0380016L) + +// +// MessageId: ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS +// +// MessageText: +// +// A disk in the volume layout provides extents to more than one member of a plex. +// +#define ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS _NDIS_ERROR_TYPEDEF_(0xC0380017L) + +// +// MessageId: ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES +// +// MessageText: +// +// A disk in the volume layout provides extents to more than one plex. +// +#define ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES _NDIS_ERROR_TYPEDEF_(0xC0380018L) + +// +// MessageId: ERROR_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED +// +// MessageText: +// +// Dynamic disks are not supported on this system. +// +#define ERROR_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED _NDIS_ERROR_TYPEDEF_(0xC0380019L) + +// +// MessageId: ERROR_VOLMGR_EXTENT_ALREADY_USED +// +// MessageText: +// +// The specified extent is already used by other volumes. +// +#define ERROR_VOLMGR_EXTENT_ALREADY_USED _NDIS_ERROR_TYPEDEF_(0xC038001AL) + +// +// MessageId: ERROR_VOLMGR_EXTENT_NOT_CONTIGUOUS +// +// MessageText: +// +// The specified volume is retained and can only be extended into a contiguous extent. The specified extent to grow the volume is not contiguous with the specified volume. +// +#define ERROR_VOLMGR_EXTENT_NOT_CONTIGUOUS _NDIS_ERROR_TYPEDEF_(0xC038001BL) + +// +// MessageId: ERROR_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION +// +// MessageText: +// +// The specified volume extent is not within the public region of the disk. +// +#define ERROR_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION _NDIS_ERROR_TYPEDEF_(0xC038001CL) + +// +// MessageId: ERROR_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED +// +// MessageText: +// +// The specified volume extent is not sector aligned. +// +#define ERROR_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED _NDIS_ERROR_TYPEDEF_(0xC038001DL) + +// +// MessageId: ERROR_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION +// +// MessageText: +// +// The specified partition overlaps an EBR (the first track of an extended partition on an MBR disk). +// +#define ERROR_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION _NDIS_ERROR_TYPEDEF_(0xC038001EL) + +// +// MessageId: ERROR_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH +// +// MessageText: +// +// The specified extent lengths cannot be used to construct a volume with specified length. +// +#define ERROR_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH _NDIS_ERROR_TYPEDEF_(0xC038001FL) + +// +// MessageId: ERROR_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED +// +// MessageText: +// +// The system does not support fault tolerant volumes. +// +#define ERROR_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED _NDIS_ERROR_TYPEDEF_(0xC0380020L) + +// +// MessageId: ERROR_VOLMGR_INTERLEAVE_LENGTH_INVALID +// +// MessageText: +// +// The specified interleave length is invalid. +// +#define ERROR_VOLMGR_INTERLEAVE_LENGTH_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380021L) + +// +// MessageId: ERROR_VOLMGR_MAXIMUM_REGISTERED_USERS +// +// MessageText: +// +// There is already a maximum number of registered users. +// +#define ERROR_VOLMGR_MAXIMUM_REGISTERED_USERS _NDIS_ERROR_TYPEDEF_(0xC0380022L) + +// +// MessageId: ERROR_VOLMGR_MEMBER_IN_SYNC +// +// MessageText: +// +// The specified member is already in-sync with the other active members. It does not need to be regenerated. +// +#define ERROR_VOLMGR_MEMBER_IN_SYNC _NDIS_ERROR_TYPEDEF_(0xC0380023L) + +// +// MessageId: ERROR_VOLMGR_MEMBER_INDEX_DUPLICATE +// +// MessageText: +// +// The same member index was specified more than once. +// +#define ERROR_VOLMGR_MEMBER_INDEX_DUPLICATE _NDIS_ERROR_TYPEDEF_(0xC0380024L) + +// +// MessageId: ERROR_VOLMGR_MEMBER_INDEX_INVALID +// +// MessageText: +// +// The specified member index is greater or equal than the number of members in the volume plex. +// +#define ERROR_VOLMGR_MEMBER_INDEX_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380025L) + +// +// MessageId: ERROR_VOLMGR_MEMBER_MISSING +// +// MessageText: +// +// The specified member is missing. It cannot be regenerated. +// +#define ERROR_VOLMGR_MEMBER_MISSING _NDIS_ERROR_TYPEDEF_(0xC0380026L) + +// +// MessageId: ERROR_VOLMGR_MEMBER_NOT_DETACHED +// +// MessageText: +// +// The specified member is not detached. Cannot replace a member which is not detached. +// +#define ERROR_VOLMGR_MEMBER_NOT_DETACHED _NDIS_ERROR_TYPEDEF_(0xC0380027L) + +// +// MessageId: ERROR_VOLMGR_MEMBER_REGENERATING +// +// MessageText: +// +// The specified member is already regenerating. +// +#define ERROR_VOLMGR_MEMBER_REGENERATING _NDIS_ERROR_TYPEDEF_(0xC0380028L) + +// +// MessageId: ERROR_VOLMGR_ALL_DISKS_FAILED +// +// MessageText: +// +// All disks belonging to the pack failed. +// +#define ERROR_VOLMGR_ALL_DISKS_FAILED _NDIS_ERROR_TYPEDEF_(0xC0380029L) + +// +// MessageId: ERROR_VOLMGR_NO_REGISTERED_USERS +// +// MessageText: +// +// There are currently no registered users for notifications. The task number is irrelevant unless there are registered users. +// +#define ERROR_VOLMGR_NO_REGISTERED_USERS _NDIS_ERROR_TYPEDEF_(0xC038002AL) + +// +// MessageId: ERROR_VOLMGR_NO_SUCH_USER +// +// MessageText: +// +// The specified notification user does not exist. Failed to unregister user for notifications. +// +#define ERROR_VOLMGR_NO_SUCH_USER _NDIS_ERROR_TYPEDEF_(0xC038002BL) + +// +// MessageId: ERROR_VOLMGR_NOTIFICATION_RESET +// +// MessageText: +// +// The notifications have been reset. Notifications for the current user are invalid. Unregister and re-register for notifications. +// +#define ERROR_VOLMGR_NOTIFICATION_RESET _NDIS_ERROR_TYPEDEF_(0xC038002CL) + +// +// MessageId: ERROR_VOLMGR_NUMBER_OF_MEMBERS_INVALID +// +// MessageText: +// +// The specified number of members is invalid. +// +#define ERROR_VOLMGR_NUMBER_OF_MEMBERS_INVALID _NDIS_ERROR_TYPEDEF_(0xC038002DL) + +// +// MessageId: ERROR_VOLMGR_NUMBER_OF_PLEXES_INVALID +// +// MessageText: +// +// The specified number of plexes is invalid. +// +#define ERROR_VOLMGR_NUMBER_OF_PLEXES_INVALID _NDIS_ERROR_TYPEDEF_(0xC038002EL) + +// +// MessageId: ERROR_VOLMGR_PACK_DUPLICATE +// +// MessageText: +// +// The specified source and target packs are identical. +// +#define ERROR_VOLMGR_PACK_DUPLICATE _NDIS_ERROR_TYPEDEF_(0xC038002FL) + +// +// MessageId: ERROR_VOLMGR_PACK_ID_INVALID +// +// MessageText: +// +// The specified pack id is invalid. There are no packs with the specified pack id. +// +#define ERROR_VOLMGR_PACK_ID_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380030L) + +// +// MessageId: ERROR_VOLMGR_PACK_INVALID +// +// MessageText: +// +// The specified pack is the invalid pack. The operation cannot complete with the invalid pack. +// +#define ERROR_VOLMGR_PACK_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380031L) + +// +// MessageId: ERROR_VOLMGR_PACK_NAME_INVALID +// +// MessageText: +// +// The specified pack name is invalid. +// +#define ERROR_VOLMGR_PACK_NAME_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380032L) + +// +// MessageId: ERROR_VOLMGR_PACK_OFFLINE +// +// MessageText: +// +// The specified pack is offline. +// +#define ERROR_VOLMGR_PACK_OFFLINE _NDIS_ERROR_TYPEDEF_(0xC0380033L) + +// +// MessageId: ERROR_VOLMGR_PACK_HAS_QUORUM +// +// MessageText: +// +// The specified pack already has a quorum of healthy disks. +// +#define ERROR_VOLMGR_PACK_HAS_QUORUM _NDIS_ERROR_TYPEDEF_(0xC0380034L) + +// +// MessageId: ERROR_VOLMGR_PACK_WITHOUT_QUORUM +// +// MessageText: +// +// The pack does not have a quorum of healthy disks. +// +#define ERROR_VOLMGR_PACK_WITHOUT_QUORUM _NDIS_ERROR_TYPEDEF_(0xC0380035L) + +// +// MessageId: ERROR_VOLMGR_PARTITION_STYLE_INVALID +// +// MessageText: +// +// The specified disk has an unsupported partition style. Only MBR and GPT partition styles are supported. +// +#define ERROR_VOLMGR_PARTITION_STYLE_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380036L) + +// +// MessageId: ERROR_VOLMGR_PARTITION_UPDATE_FAILED +// +// MessageText: +// +// Failed to update the disk's partition layout. +// +#define ERROR_VOLMGR_PARTITION_UPDATE_FAILED _NDIS_ERROR_TYPEDEF_(0xC0380037L) + +// +// MessageId: ERROR_VOLMGR_PLEX_IN_SYNC +// +// MessageText: +// +// The specified plex is already in-sync with the other active plexes. It does not need to be regenerated. +// +#define ERROR_VOLMGR_PLEX_IN_SYNC _NDIS_ERROR_TYPEDEF_(0xC0380038L) + +// +// MessageId: ERROR_VOLMGR_PLEX_INDEX_DUPLICATE +// +// MessageText: +// +// The same plex index was specified more than once. +// +#define ERROR_VOLMGR_PLEX_INDEX_DUPLICATE _NDIS_ERROR_TYPEDEF_(0xC0380039L) + +// +// MessageId: ERROR_VOLMGR_PLEX_INDEX_INVALID +// +// MessageText: +// +// The specified plex index is greater or equal than the number of plexes in the volume. +// +#define ERROR_VOLMGR_PLEX_INDEX_INVALID _NDIS_ERROR_TYPEDEF_(0xC038003AL) + +// +// MessageId: ERROR_VOLMGR_PLEX_LAST_ACTIVE +// +// MessageText: +// +// The specified plex is the last active plex in the volume. The plex cannot be removed or else the volume will go offline. +// +#define ERROR_VOLMGR_PLEX_LAST_ACTIVE _NDIS_ERROR_TYPEDEF_(0xC038003BL) + +// +// MessageId: ERROR_VOLMGR_PLEX_MISSING +// +// MessageText: +// +// The specified plex is missing. +// +#define ERROR_VOLMGR_PLEX_MISSING _NDIS_ERROR_TYPEDEF_(0xC038003CL) + +// +// MessageId: ERROR_VOLMGR_PLEX_REGENERATING +// +// MessageText: +// +// The specified plex is currently regenerating. +// +#define ERROR_VOLMGR_PLEX_REGENERATING _NDIS_ERROR_TYPEDEF_(0xC038003DL) + +// +// MessageId: ERROR_VOLMGR_PLEX_TYPE_INVALID +// +// MessageText: +// +// The specified plex type is invalid. +// +#define ERROR_VOLMGR_PLEX_TYPE_INVALID _NDIS_ERROR_TYPEDEF_(0xC038003EL) + +// +// MessageId: ERROR_VOLMGR_PLEX_NOT_RAID5 +// +// MessageText: +// +// The operation is only supported on RAID-5 plexes. +// +#define ERROR_VOLMGR_PLEX_NOT_RAID5 _NDIS_ERROR_TYPEDEF_(0xC038003FL) + +// +// MessageId: ERROR_VOLMGR_PLEX_NOT_SIMPLE +// +// MessageText: +// +// The operation is only supported on simple plexes. +// +#define ERROR_VOLMGR_PLEX_NOT_SIMPLE _NDIS_ERROR_TYPEDEF_(0xC0380040L) + +// +// MessageId: ERROR_VOLMGR_STRUCTURE_SIZE_INVALID +// +// MessageText: +// +// The Size fields in the VM_VOLUME_LAYOUT input structure are incorrectly set. +// +#define ERROR_VOLMGR_STRUCTURE_SIZE_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380041L) + +// +// MessageId: ERROR_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS +// +// MessageText: +// +// There is already a pending request for notifications. Wait for the existing request to return before requesting for more notifications. +// +#define ERROR_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS _NDIS_ERROR_TYPEDEF_(0xC0380042L) + +// +// MessageId: ERROR_VOLMGR_TRANSACTION_IN_PROGRESS +// +// MessageText: +// +// There is currently a transaction in process. +// +#define ERROR_VOLMGR_TRANSACTION_IN_PROGRESS _NDIS_ERROR_TYPEDEF_(0xC0380043L) + +// +// MessageId: ERROR_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE +// +// MessageText: +// +// An unexpected layout change occurred outside of the volume manager. +// +#define ERROR_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE _NDIS_ERROR_TYPEDEF_(0xC0380044L) + +// +// MessageId: ERROR_VOLMGR_VOLUME_CONTAINS_MISSING_DISK +// +// MessageText: +// +// The specified volume contains a missing disk. +// +#define ERROR_VOLMGR_VOLUME_CONTAINS_MISSING_DISK _NDIS_ERROR_TYPEDEF_(0xC0380045L) + +// +// MessageId: ERROR_VOLMGR_VOLUME_ID_INVALID +// +// MessageText: +// +// The specified volume id is invalid. There are no volumes with the specified volume id. +// +#define ERROR_VOLMGR_VOLUME_ID_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380046L) + +// +// MessageId: ERROR_VOLMGR_VOLUME_LENGTH_INVALID +// +// MessageText: +// +// The specified volume length is invalid. +// +#define ERROR_VOLMGR_VOLUME_LENGTH_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380047L) + +// +// MessageId: ERROR_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE +// +// MessageText: +// +// The specified size for the volume is not a multiple of the sector size. +// +#define ERROR_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE _NDIS_ERROR_TYPEDEF_(0xC0380048L) + +// +// MessageId: ERROR_VOLMGR_VOLUME_NOT_MIRRORED +// +// MessageText: +// +// The operation is only supported on mirrored volumes. +// +#define ERROR_VOLMGR_VOLUME_NOT_MIRRORED _NDIS_ERROR_TYPEDEF_(0xC0380049L) + +// +// MessageId: ERROR_VOLMGR_VOLUME_NOT_RETAINED +// +// MessageText: +// +// The specified volume does not have a retain partition. +// +#define ERROR_VOLMGR_VOLUME_NOT_RETAINED _NDIS_ERROR_TYPEDEF_(0xC038004AL) + +// +// MessageId: ERROR_VOLMGR_VOLUME_OFFLINE +// +// MessageText: +// +// The specified volume is offline. +// +#define ERROR_VOLMGR_VOLUME_OFFLINE _NDIS_ERROR_TYPEDEF_(0xC038004BL) + +// +// MessageId: ERROR_VOLMGR_VOLUME_RETAINED +// +// MessageText: +// +// The specified volume already has a retain partition. +// +#define ERROR_VOLMGR_VOLUME_RETAINED _NDIS_ERROR_TYPEDEF_(0xC038004CL) + +// +// MessageId: ERROR_VOLMGR_NUMBER_OF_EXTENTS_INVALID +// +// MessageText: +// +// The specified number of extents is invalid. +// +#define ERROR_VOLMGR_NUMBER_OF_EXTENTS_INVALID _NDIS_ERROR_TYPEDEF_(0xC038004DL) + +// +// MessageId: ERROR_VOLMGR_DIFFERENT_SECTOR_SIZE +// +// MessageText: +// +// All disks participating to the volume must have the same sector size. +// +#define ERROR_VOLMGR_DIFFERENT_SECTOR_SIZE _NDIS_ERROR_TYPEDEF_(0xC038004EL) + +// +// MessageId: ERROR_VOLMGR_BAD_BOOT_DISK +// +// MessageText: +// +// The boot disk experienced failures. +// +#define ERROR_VOLMGR_BAD_BOOT_DISK _NDIS_ERROR_TYPEDEF_(0xC038004FL) + +// +// MessageId: ERROR_VOLMGR_PACK_CONFIG_OFFLINE +// +// MessageText: +// +// The configuration of the pack is offline. +// +#define ERROR_VOLMGR_PACK_CONFIG_OFFLINE _NDIS_ERROR_TYPEDEF_(0xC0380050L) + +// +// MessageId: ERROR_VOLMGR_PACK_CONFIG_ONLINE +// +// MessageText: +// +// The configuration of the pack is online. +// +#define ERROR_VOLMGR_PACK_CONFIG_ONLINE _NDIS_ERROR_TYPEDEF_(0xC0380051L) + +// +// MessageId: ERROR_VOLMGR_NOT_PRIMARY_PACK +// +// MessageText: +// +// The specified pack is not the primary pack. +// +#define ERROR_VOLMGR_NOT_PRIMARY_PACK _NDIS_ERROR_TYPEDEF_(0xC0380052L) + +// +// MessageId: ERROR_VOLMGR_PACK_LOG_UPDATE_FAILED +// +// MessageText: +// +// All disks failed to be updated with the new content of the log. +// +#define ERROR_VOLMGR_PACK_LOG_UPDATE_FAILED _NDIS_ERROR_TYPEDEF_(0xC0380053L) + +// +// MessageId: ERROR_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID +// +// MessageText: +// +// The specified number of disks in a plex is invalid. +// +#define ERROR_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380054L) + +// +// MessageId: ERROR_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID +// +// MessageText: +// +// The specified number of disks in a plex member is invalid. +// +#define ERROR_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID _NDIS_ERROR_TYPEDEF_(0xC0380055L) + +// +// MessageId: ERROR_VOLMGR_VOLUME_MIRRORED +// +// MessageText: +// +// The operation is not supported on mirrored volumes. +// +#define ERROR_VOLMGR_VOLUME_MIRRORED _NDIS_ERROR_TYPEDEF_(0xC0380056L) + +// +// MessageId: ERROR_VOLMGR_PLEX_NOT_SIMPLE_SPANNED +// +// MessageText: +// +// The operation is only supported on simple and spanned plexes. +// +#define ERROR_VOLMGR_PLEX_NOT_SIMPLE_SPANNED _NDIS_ERROR_TYPEDEF_(0xC0380057L) + +// +// MessageId: ERROR_VOLMGR_NO_VALID_LOG_COPIES +// +// MessageText: +// +// The pack has no valid log copies. +// +#define ERROR_VOLMGR_NO_VALID_LOG_COPIES _NDIS_ERROR_TYPEDEF_(0xC0380058L) + +// +// MessageId: ERROR_VOLMGR_PRIMARY_PACK_PRESENT +// +// MessageText: +// +// A primary pack is already present. +// +#define ERROR_VOLMGR_PRIMARY_PACK_PRESENT _NDIS_ERROR_TYPEDEF_(0xC0380059L) + +// +// MessageId: ERROR_VOLMGR_NUMBER_OF_DISKS_INVALID +// +// MessageText: +// +// The specified number of disks is invalid. +// +#define ERROR_VOLMGR_NUMBER_OF_DISKS_INVALID _NDIS_ERROR_TYPEDEF_(0xC038005AL) + +// +// MessageId: ERROR_VOLMGR_MIRROR_NOT_SUPPORTED +// +// MessageText: +// +// The system does not support mirrored volumes. +// +#define ERROR_VOLMGR_MIRROR_NOT_SUPPORTED _NDIS_ERROR_TYPEDEF_(0xC038005BL) + +// +// MessageId: ERROR_VOLMGR_RAID5_NOT_SUPPORTED +// +// MessageText: +// +// The system does not support RAID-5 volumes. +// +#define ERROR_VOLMGR_RAID5_NOT_SUPPORTED _NDIS_ERROR_TYPEDEF_(0xC038005CL) + + +// +// Boot Code Data (BCD) error codes +// + +// +// MessageId: ERROR_BCD_NOT_ALL_ENTRIES_IMPORTED +// +// MessageText: +// +// Some BCD entries were not imported correctly from the BCD store. +// +#define ERROR_BCD_NOT_ALL_ENTRIES_IMPORTED _NDIS_ERROR_TYPEDEF_(0x80390001L) + +// +// MessageId: ERROR_BCD_TOO_MANY_ELEMENTS +// +// MessageText: +// +// Entries enumerated have exceeded the allowed threshold. +// +#define ERROR_BCD_TOO_MANY_ELEMENTS _NDIS_ERROR_TYPEDEF_(0xC0390002L) + +// +// MessageId: ERROR_BCD_NOT_ALL_ENTRIES_SYNCHRONIZED +// +// MessageText: +// +// Some BCD entries were not synchronized correctly with the firmware. +// +#define ERROR_BCD_NOT_ALL_ENTRIES_SYNCHRONIZED _NDIS_ERROR_TYPEDEF_(0x80390003L) + +// +// Vhd error codes - These codes are used by the virtual hard diskparser component. +// +// +// Errors: +// + +// +// MessageId: ERROR_VHD_DRIVE_FOOTER_MISSING +// +// MessageText: +// +// The virtual hard disk is corrupted. The virtual hard disk drive footer is missing. +// +#define ERROR_VHD_DRIVE_FOOTER_MISSING _NDIS_ERROR_TYPEDEF_(0xC03A0001L) + +// +// MessageId: ERROR_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH +// +// MessageText: +// +// The virtual hard disk is corrupted. The virtual hard disk drive footer checksum does not match the on-disk checksum. +// +#define ERROR_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH _NDIS_ERROR_TYPEDEF_(0xC03A0002L) + +// +// MessageId: ERROR_VHD_DRIVE_FOOTER_CORRUPT +// +// MessageText: +// +// The virtual hard disk is corrupted. The virtual hard disk drive footer in the virtual hard disk is corrupted. +// +#define ERROR_VHD_DRIVE_FOOTER_CORRUPT _NDIS_ERROR_TYPEDEF_(0xC03A0003L) + +// +// MessageId: ERROR_VHD_FORMAT_UNKNOWN +// +// MessageText: +// +// The system does not recognize the file format of this virtual hard disk. +// +#define ERROR_VHD_FORMAT_UNKNOWN _NDIS_ERROR_TYPEDEF_(0xC03A0004L) + +// +// MessageId: ERROR_VHD_FORMAT_UNSUPPORTED_VERSION +// +// MessageText: +// +// The version does not support this version of the file format. +// +#define ERROR_VHD_FORMAT_UNSUPPORTED_VERSION _NDIS_ERROR_TYPEDEF_(0xC03A0005L) + +// +// MessageId: ERROR_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH +// +// MessageText: +// +// The virtual hard disk is corrupted. The sparse header checksum does not match the on-disk checksum. +// +#define ERROR_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH _NDIS_ERROR_TYPEDEF_(0xC03A0006L) + +// +// MessageId: ERROR_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION +// +// MessageText: +// +// The system does not support this version of the virtual hard disk.This version of the sparse header is not supported. +// +#define ERROR_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION _NDIS_ERROR_TYPEDEF_(0xC03A0007L) + +// +// MessageId: ERROR_VHD_SPARSE_HEADER_CORRUPT +// +// MessageText: +// +// The virtual hard disk is corrupted. The sparse header in the virtual hard disk is corrupt. +// +#define ERROR_VHD_SPARSE_HEADER_CORRUPT _NDIS_ERROR_TYPEDEF_(0xC03A0008L) + +// +// MessageId: ERROR_VHD_BLOCK_ALLOCATION_FAILURE +// +// MessageText: +// +// Failed to write to the virtual hard disk failed because the system failed to allocate a new block in the virtual hard disk. +// +#define ERROR_VHD_BLOCK_ALLOCATION_FAILURE _NDIS_ERROR_TYPEDEF_(0xC03A0009L) + +// +// MessageId: ERROR_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT +// +// MessageText: +// +// The virtual hard disk is corrupted. The block allocation table in the virtual hard disk is corrupt. +// +#define ERROR_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT _NDIS_ERROR_TYPEDEF_(0xC03A000AL) + +// +// MessageId: ERROR_VHD_INVALID_BLOCK_SIZE +// +// MessageText: +// +// The system does not support this version of the virtual hard disk. The block size is invalid. +// +#define ERROR_VHD_INVALID_BLOCK_SIZE _NDIS_ERROR_TYPEDEF_(0xC03A000BL) + +// +// MessageId: ERROR_VHD_BITMAP_MISMATCH +// +// MessageText: +// +// The virtual hard disk is corrupted. The block bitmap does not match with the block data present in the virtual hard disk. +// +#define ERROR_VHD_BITMAP_MISMATCH _NDIS_ERROR_TYPEDEF_(0xC03A000CL) + +// +// MessageId: ERROR_VHD_PARENT_VHD_NOT_FOUND +// +// MessageText: +// +// The chain of virtual hard disks is broken. The system cannot locate the parent virtual hard disk for the differencing disk. +// +#define ERROR_VHD_PARENT_VHD_NOT_FOUND _NDIS_ERROR_TYPEDEF_(0xC03A000DL) + +// +// MessageId: ERROR_VHD_CHILD_PARENT_ID_MISMATCH +// +// MessageText: +// +// The chain of virtual hard disks is corrupted. There is a mismatch in the identifiers of the parent virtual hard disk and differencing disk. +// +#define ERROR_VHD_CHILD_PARENT_ID_MISMATCH _NDIS_ERROR_TYPEDEF_(0xC03A000EL) + +// +// MessageId: ERROR_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH +// +// MessageText: +// +// The chain of virtual hard disks is corrupted. The time stamp of the parent virtual hard disk does not match the time stamp of the differencing disk. +// +#define ERROR_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH _NDIS_ERROR_TYPEDEF_(0xC03A000FL) + +// +// MessageId: ERROR_VHD_METADATA_READ_FAILURE +// +// MessageText: +// +// Failed to read the metadata of the virtual hard disk. +// +#define ERROR_VHD_METADATA_READ_FAILURE _NDIS_ERROR_TYPEDEF_(0xC03A0010L) + +// +// MessageId: ERROR_VHD_METADATA_WRITE_FAILURE +// +// MessageText: +// +// Failed to write to the metadata of the virtual hard disk. +// +#define ERROR_VHD_METADATA_WRITE_FAILURE _NDIS_ERROR_TYPEDEF_(0xC03A0011L) + +// +// MessageId: ERROR_VHD_INVALID_SIZE +// +// MessageText: +// +// The size of the virtual hard disk is not valid. +// +#define ERROR_VHD_INVALID_SIZE _NDIS_ERROR_TYPEDEF_(0xC03A0012L) + +// +// MessageId: ERROR_VHD_INVALID_FILE_SIZE +// +// MessageText: +// +// The file size of this virtual hard disk is not valid. +// +#define ERROR_VHD_INVALID_FILE_SIZE _NDIS_ERROR_TYPEDEF_(0xC03A0013L) + +// +// MessageId: ERROR_VIRTDISK_PROVIDER_NOT_FOUND +// +// MessageText: +// +// A virtual disk support provider for the specified file was not found. +// +#define ERROR_VIRTDISK_PROVIDER_NOT_FOUND _NDIS_ERROR_TYPEDEF_(0xC03A0014L) + +// +// MessageId: ERROR_VIRTDISK_NOT_VIRTUAL_DISK +// +// MessageText: +// +// The specified disk is not a virtual disk. +// +#define ERROR_VIRTDISK_NOT_VIRTUAL_DISK _NDIS_ERROR_TYPEDEF_(0xC03A0015L) + +// +// MessageId: ERROR_VHD_PARENT_VHD_ACCESS_DENIED +// +// MessageText: +// +// The chain of virtual hard disks is inaccessible. The process has not been granted access rights to the parent virtual hard disk for the differencing disk. +// +#define ERROR_VHD_PARENT_VHD_ACCESS_DENIED _NDIS_ERROR_TYPEDEF_(0xC03A0016L) + +// +// MessageId: ERROR_VHD_CHILD_PARENT_SIZE_MISMATCH +// +// MessageText: +// +// The chain of virtual hard disks is corrupted. There is a mismatch in the virtual sizes of the parent virtual hard disk and differencing disk. +// +#define ERROR_VHD_CHILD_PARENT_SIZE_MISMATCH _NDIS_ERROR_TYPEDEF_(0xC03A0017L) + +// +// MessageId: ERROR_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED +// +// MessageText: +// +// The chain of virtual hard disks is corrupted. A differencing disk is indicated in its own parent chain. +// +#define ERROR_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED _NDIS_ERROR_TYPEDEF_(0xC03A0018L) + +// +// MessageId: ERROR_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT +// +// MessageText: +// +// The chain of virtual hard disks is inaccessible. There was an error opening a virtual hard disk further up the chain. +// +#define ERROR_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT _NDIS_ERROR_TYPEDEF_(0xC03A0019L) + +// +// MessageId: ERROR_VIRTUAL_DISK_LIMITATION +// +// MessageText: +// +// The requested operation could not be completed due to a virtual disk system limitation. Virtual hard disk files must be uncompressed and unencrypted and must not be sparse. +// +#define ERROR_VIRTUAL_DISK_LIMITATION _NDIS_ERROR_TYPEDEF_(0xC03A001AL) + +// +// MessageId: ERROR_VHD_INVALID_TYPE +// +// MessageText: +// +// The requested operation cannot be performed on a virtual disk of this type. +// +#define ERROR_VHD_INVALID_TYPE _NDIS_ERROR_TYPEDEF_(0xC03A001BL) + +// +// MessageId: ERROR_VHD_INVALID_STATE +// +// MessageText: +// +// The requested operation cannot be performed on the virtual disk in its current state. +// +#define ERROR_VHD_INVALID_STATE _NDIS_ERROR_TYPEDEF_(0xC03A001CL) + +// +// MessageId: ERROR_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE +// +// MessageText: +// +// The sector size of the physical disk on which the virtual disk resides is not supported. +// +#define ERROR_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE _NDIS_ERROR_TYPEDEF_(0xC03A001DL) + +// +// MessageId: ERROR_VIRTDISK_DISK_ALREADY_OWNED +// +// MessageText: +// +// The disk is already owned by a different owner. +// +#define ERROR_VIRTDISK_DISK_ALREADY_OWNED _NDIS_ERROR_TYPEDEF_(0xC03A001EL) + +// +// MessageId: ERROR_VIRTDISK_DISK_ONLINE_AND_WRITABLE +// +// MessageText: +// +// The disk must be offline or read-only. +// +#define ERROR_VIRTDISK_DISK_ONLINE_AND_WRITABLE _NDIS_ERROR_TYPEDEF_(0xC03A001FL) + +// +// MessageId: ERROR_CTLOG_TRACKING_NOT_INITIALIZED +// +// MessageText: +// +// Change Tracking is not initialized for this virtual disk. +// +#define ERROR_CTLOG_TRACKING_NOT_INITIALIZED _NDIS_ERROR_TYPEDEF_(0xC03A0020L) + +// +// MessageId: ERROR_CTLOG_LOGFILE_SIZE_EXCEEDED_MAXSIZE +// +// MessageText: +// +// Size of change tracking file exceeded the maximum size limit. +// +#define ERROR_CTLOG_LOGFILE_SIZE_EXCEEDED_MAXSIZE _NDIS_ERROR_TYPEDEF_(0xC03A0021L) + +// +// MessageId: ERROR_CTLOG_VHD_CHANGED_OFFLINE +// +// MessageText: +// +// VHD file is changed due to compaction, expansion, or offline updates. +// +#define ERROR_CTLOG_VHD_CHANGED_OFFLINE _NDIS_ERROR_TYPEDEF_(0xC03A0022L) + +// +// MessageId: ERROR_CTLOG_INVALID_TRACKING_STATE +// +// MessageText: +// +// Change Tracking for the virtual disk is not in a valid state to perform this request. Change tracking could be discontinued or already in the requested state. +// +#define ERROR_CTLOG_INVALID_TRACKING_STATE _NDIS_ERROR_TYPEDEF_(0xC03A0023L) + +// +// MessageId: ERROR_CTLOG_INCONSISTENT_TRACKING_FILE +// +// MessageText: +// +// Change Tracking file for the virtual disk is not in a valid state. +// +#define ERROR_CTLOG_INCONSISTENT_TRACKING_FILE _NDIS_ERROR_TYPEDEF_(0xC03A0024L) + +// +// MessageId: ERROR_VHD_RESIZE_WOULD_TRUNCATE_DATA +// +// MessageText: +// +// The requested resize operation could not be completed because it might truncate user data residing on the virtual disk. +// +#define ERROR_VHD_RESIZE_WOULD_TRUNCATE_DATA _NDIS_ERROR_TYPEDEF_(0xC03A0025L) + +// +// MessageId: ERROR_VHD_COULD_NOT_COMPUTE_MINIMUM_VIRTUAL_SIZE +// +// MessageText: +// +// The requested operation could not be completed because the virtual disk's minimum safe size could not be determined. +// This may be due to a missing or corrupt partition table. +// +#define ERROR_VHD_COULD_NOT_COMPUTE_MINIMUM_VIRTUAL_SIZE _NDIS_ERROR_TYPEDEF_(0xC03A0026L) + +// +// MessageId: ERROR_VHD_ALREADY_AT_OR_BELOW_MINIMUM_VIRTUAL_SIZE +// +// MessageText: +// +// The requested operation could not be completed because the virtual disk's size cannot be safely reduced further. +// +#define ERROR_VHD_ALREADY_AT_OR_BELOW_MINIMUM_VIRTUAL_SIZE _NDIS_ERROR_TYPEDEF_(0xC03A0027L) + +// +// MessageId: ERROR_VHD_METADATA_FULL +// +// MessageText: +// +// There is not enough space in the virtual disk file for the provided metadata item. +// +#define ERROR_VHD_METADATA_FULL _NDIS_ERROR_TYPEDEF_(0xC03A0028L) + +// +// MessageId: ERROR_VHD_INVALID_CHANGE_TRACKING_ID +// +// MessageText: +// +// The specified change tracking identifier is not valid. +// +#define ERROR_VHD_INVALID_CHANGE_TRACKING_ID _NDIS_ERROR_TYPEDEF_(0xC03A0029L) + +// +// MessageId: ERROR_VHD_CHANGE_TRACKING_DISABLED +// +// MessageText: +// +// Change tracking is disabled for the specified virtual hard disk, so no change tracking information is available. +// +#define ERROR_VHD_CHANGE_TRACKING_DISABLED _NDIS_ERROR_TYPEDEF_(0xC03A002AL) + +// +// MessageId: ERROR_VHD_MISSING_CHANGE_TRACKING_INFORMATION +// +// MessageText: +// +// There is no change tracking data available associated with the specified change tracking identifier. +// +#define ERROR_VHD_MISSING_CHANGE_TRACKING_INFORMATION _NDIS_ERROR_TYPEDEF_(0xC03A0030L) + +// +// MessageId: ERROR_VHD_UNEXPECTED_ID +// +// MessageText: +// +// The specified VHD has an unexpected virtual disk identifier. +// +#define ERROR_VHD_UNEXPECTED_ID _NDIS_ERROR_TYPEDEF_(0xC03A0034L) + +// +// Warnings: +// +// +// MessageId: ERROR_QUERY_STORAGE_ERROR +// +// MessageText: +// +// The virtualization storage subsystem has generated an error. +// +#define ERROR_QUERY_STORAGE_ERROR _NDIS_ERROR_TYPEDEF_(0x803A0001L) + +// +// ======================================================= +// Host Network Service (HNS/GNS) Error Messages +// ======================================================= +// +// +// MessageId: HCN_E_NETWORK_NOT_FOUND +// +// MessageText: +// +// The network was not found. +// +#define HCN_E_NETWORK_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0001L) + +// +// MessageId: HCN_E_ENDPOINT_NOT_FOUND +// +// MessageText: +// +// The endpoint was not found. +// +#define HCN_E_ENDPOINT_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0002L) + +// +// MessageId: HCN_E_LAYER_NOT_FOUND +// +// MessageText: +// +// The network's underlying layer was not found. +// +#define HCN_E_LAYER_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0003L) + +// +// MessageId: HCN_E_SWITCH_NOT_FOUND +// +// MessageText: +// +// The virtual switch was not found. +// +#define HCN_E_SWITCH_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0004L) + +// +// MessageId: HCN_E_SUBNET_NOT_FOUND +// +// MessageText: +// +// The network does not have a subnet for this endpoint. +// +#define HCN_E_SUBNET_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0005L) + +// +// MessageId: HCN_E_ADAPTER_NOT_FOUND +// +// MessageText: +// +// An adapter was not found. +// +#define HCN_E_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0006L) + +// +// MessageId: HCN_E_PORT_NOT_FOUND +// +// MessageText: +// +// The switch-port was not found. +// +#define HCN_E_PORT_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0007L) + +// +// MessageId: HCN_E_POLICY_NOT_FOUND +// +// MessageText: +// +// An expected policy was not found. +// +#define HCN_E_POLICY_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0008L) + +// +// MessageId: HCN_E_VFP_PORTSETTING_NOT_FOUND +// +// MessageText: +// +// A required VFP port setting was not found. +// +#define HCN_E_VFP_PORTSETTING_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0009L) + +// +// MessageId: HCN_E_INVALID_NETWORK +// +// MessageText: +// +// The provided network configuration is invalid or missing parameters. +// +#define HCN_E_INVALID_NETWORK _HRESULT_TYPEDEF_(0x803B000AL) + +// +// MessageId: HCN_E_INVALID_NETWORK_TYPE +// +// MessageText: +// +// Invalid network type. +// +#define HCN_E_INVALID_NETWORK_TYPE _HRESULT_TYPEDEF_(0x803B000BL) + +// +// MessageId: HCN_E_INVALID_ENDPOINT +// +// MessageText: +// +// The provided endpoint configuration is invalid or missing parameters. +// +#define HCN_E_INVALID_ENDPOINT _HRESULT_TYPEDEF_(0x803B000CL) + +// +// MessageId: HCN_E_INVALID_POLICY +// +// MessageText: +// +// The provided policy configuration is invalid or missing parameters. +// +#define HCN_E_INVALID_POLICY _HRESULT_TYPEDEF_(0x803B000DL) + +// +// MessageId: HCN_E_INVALID_POLICY_TYPE +// +// MessageText: +// +// Invalid policy type. +// +#define HCN_E_INVALID_POLICY_TYPE _HRESULT_TYPEDEF_(0x803B000EL) + +// +// MessageId: HCN_E_INVALID_REMOTE_ENDPOINT_OPERATION +// +// MessageText: +// +// This requested operation is invalid for a remote endpoint. +// +#define HCN_E_INVALID_REMOTE_ENDPOINT_OPERATION _HRESULT_TYPEDEF_(0x803B000FL) + +// +// MessageId: HCN_E_NETWORK_ALREADY_EXISTS +// +// MessageText: +// +// A network with this name already exists. +// +#define HCN_E_NETWORK_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0010L) + +// +// MessageId: HCN_E_LAYER_ALREADY_EXISTS +// +// MessageText: +// +// A network with this name already exists. +// +#define HCN_E_LAYER_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0011L) + +// +// MessageId: HCN_E_POLICY_ALREADY_EXISTS +// +// MessageText: +// +// Policy information already exists on this object. +// +#define HCN_E_POLICY_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0012L) + +// +// MessageId: HCN_E_PORT_ALREADY_EXISTS +// +// MessageText: +// +// The specified port already exists. +// +#define HCN_E_PORT_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0013L) + +// +// MessageId: HCN_E_ENDPOINT_ALREADY_ATTACHED +// +// MessageText: +// +// This endpoint is already attached to the switch. +// +#define HCN_E_ENDPOINT_ALREADY_ATTACHED _HRESULT_TYPEDEF_(0x803B0014L) + +// +// MessageId: HCN_E_REQUEST_UNSUPPORTED +// +// MessageText: +// +// The specified request is unsupported. +// +#define HCN_E_REQUEST_UNSUPPORTED _HRESULT_TYPEDEF_(0x803B0015L) + +// +// MessageId: HCN_E_MAPPING_NOT_SUPPORTED +// +// MessageText: +// +// Port mapping is not supported on the given network. +// +#define HCN_E_MAPPING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803B0016L) + +// +// MessageId: HCN_E_DEGRADED_OPERATION +// +// MessageText: +// +// There was an operation attempted on a degraded object. +// +#define HCN_E_DEGRADED_OPERATION _HRESULT_TYPEDEF_(0x803B0017L) + +// +// MessageId: HCN_E_SHARED_SWITCH_MODIFICATION +// +// MessageText: +// +// Cannot modify a switch shared by multiple networks. +// +#define HCN_E_SHARED_SWITCH_MODIFICATION _HRESULT_TYPEDEF_(0x803B0018L) + +// +// MessageId: HCN_E_GUID_CONVERSION_FAILURE +// +// MessageText: +// +// Failed to interpret a parameter as a GUID. +// +#define HCN_E_GUID_CONVERSION_FAILURE _HRESULT_TYPEDEF_(0x803B0019L) + +// +// MessageId: HCN_E_REGKEY_FAILURE +// +// MessageText: +// +// Failed to process registry key. +// +#define HCN_E_REGKEY_FAILURE _HRESULT_TYPEDEF_(0x803B001AL) + +// +// MessageId: HCN_E_INVALID_JSON +// +// MessageText: +// +// Invalid JSON document string. +// +#define HCN_E_INVALID_JSON _HRESULT_TYPEDEF_(0x803B001BL) + +// +// MessageId: HCN_E_INVALID_JSON_REFERENCE +// +// MessageText: +// +// The reference is invalid in the JSON document. +// +#define HCN_E_INVALID_JSON_REFERENCE _HRESULT_TYPEDEF_(0x803B001CL) + +// +// MessageId: HCN_E_ENDPOINT_SHARING_DISABLED +// +// MessageText: +// +// Endpoint sharing is disabled. +// +#define HCN_E_ENDPOINT_SHARING_DISABLED _HRESULT_TYPEDEF_(0x803B001DL) + +// +// MessageId: HCN_E_INVALID_IP +// +// MessageText: +// +// IP address is either invalid or not part of any configured subnet(s). +// +#define HCN_E_INVALID_IP _HRESULT_TYPEDEF_(0x803B001EL) + +// +// MessageId: HCN_E_SWITCH_EXTENSION_NOT_FOUND +// +// MessageText: +// +// The specified switch extension does not exist on this switch. +// +#define HCN_E_SWITCH_EXTENSION_NOT_FOUND _HRESULT_TYPEDEF_(0x803B001FL) + +// +// MessageId: HCN_E_MANAGER_STOPPED +// +// MessageText: +// +// Operation cannot be performed while service is stopping. +// +#define HCN_E_MANAGER_STOPPED _HRESULT_TYPEDEF_(0x803B0020L) + +// +// MessageId: GCN_E_MODULE_NOT_FOUND +// +// MessageText: +// +// Operation cannot be performed while service module not found. +// +#define GCN_E_MODULE_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0021L) + +// +// MessageId: GCN_E_NO_REQUEST_HANDLERS +// +// MessageText: +// +// Request Handlers not present to handle the JSON request. +// +#define GCN_E_NO_REQUEST_HANDLERS _HRESULT_TYPEDEF_(0x803B0022L) + +// +// MessageId: GCN_E_REQUEST_UNSUPPORTED +// +// MessageText: +// +// The specified request is unsupported. +// +#define GCN_E_REQUEST_UNSUPPORTED _HRESULT_TYPEDEF_(0x803B0023L) + +// +// MessageId: GCN_E_RUNTIMEKEYS_FAILED +// +// MessageText: +// +// Add runtime keys to container failed. +// +#define GCN_E_RUNTIMEKEYS_FAILED _HRESULT_TYPEDEF_(0x803B0024L) + +// +// MessageId: GCN_E_NETADAPTER_TIMEOUT +// +// MessageText: +// +// Timeout while waiting for network adapter with the given instance id +// +#define GCN_E_NETADAPTER_TIMEOUT _HRESULT_TYPEDEF_(0x803B0025L) + +// +// MessageId: GCN_E_NETADAPTER_NOT_FOUND +// +// MessageText: +// +// Network adapter not found for the given instance id +// +#define GCN_E_NETADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0026L) + +// +// MessageId: GCN_E_NETCOMPARTMENT_NOT_FOUND +// +// MessageText: +// +// Network compartment not found for the given id +// +#define GCN_E_NETCOMPARTMENT_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0027L) + +// +// MessageId: GCN_E_NETINTERFACE_NOT_FOUND +// +// MessageText: +// +// Network interface not found for the given id +// +#define GCN_E_NETINTERFACE_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0028L) + +// +// MessageId: GCN_E_DEFAULTNAMESPACE_EXISTS +// +// MessageText: +// +// Default Namespace already exists +// +#define GCN_E_DEFAULTNAMESPACE_EXISTS _HRESULT_TYPEDEF_(0x803B0029L) + +// +// MessageId: HCN_E_ICS_DISABLED +// +// MessageText: +// +// Internet Connection Sharing service (SharedAccess) is disabled and cannot be started +// +#define HCN_E_ICS_DISABLED _HRESULT_TYPEDEF_(0x803B002AL) + +// +// MessageId: HCN_E_ENDPOINT_NAMESPACE_ALREADY_EXISTS +// +// MessageText: +// +// This requested operation is invalid as endpoint is already part of a network namespace. +// +#define HCN_E_ENDPOINT_NAMESPACE_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B002BL) + +// +// MessageId: HCN_E_ENTITY_HAS_REFERENCES +// +// MessageText: +// +// The specified entity cannot be removed while it still has references. +// +#define HCN_E_ENTITY_HAS_REFERENCES _HRESULT_TYPEDEF_(0x803B002CL) + +// +// MessageId: HCN_E_INVALID_INTERNAL_PORT +// +// MessageText: +// +// The internal port must exist and cannot be zero. +// +#define HCN_E_INVALID_INTERNAL_PORT _HRESULT_TYPEDEF_(0x803B002DL) + +// +// MessageId: HCN_E_NAMESPACE_ATTACH_FAILED +// +// MessageText: +// +// The requested operation for attach namespace failed. +// +#define HCN_E_NAMESPACE_ATTACH_FAILED _HRESULT_TYPEDEF_(0x803B002EL) + +// +// MessageId: HCN_E_ADDR_INVALID_OR_RESERVED +// +// MessageText: +// +// An address provided is invalid or reserved. +// +#define HCN_E_ADDR_INVALID_OR_RESERVED _HRESULT_TYPEDEF_(0x803B002FL) + +// +// MessageId: HCN_E_INVALID_PREFIX +// +// MessageText: +// +// The prefix provided is invalid. +// +#define HCN_E_INVALID_PREFIX _HRESULT_TYPEDEF_(0x803B0030L) + +// +// MessageId: HCN_E_OBJECT_USED_AFTER_UNLOAD +// +// MessageText: +// +// A call was performed against an object that was torn down. +// +#define HCN_E_OBJECT_USED_AFTER_UNLOAD _HRESULT_TYPEDEF_(0x803B0031L) + +// +// MessageId: HCN_E_INVALID_SUBNET +// +// MessageText: +// +// The provided subnet configuration is invalid or missing parameters. +// +#define HCN_E_INVALID_SUBNET _HRESULT_TYPEDEF_(0x803B0032L) + +// +// MessageId: HCN_E_INVALID_IP_SUBNET +// +// MessageText: +// +// The provided IP subnet configuration is invalid or missing parameters. +// +#define HCN_E_INVALID_IP_SUBNET _HRESULT_TYPEDEF_(0x803B0033L) + +// +// MessageId: HCN_E_ENDPOINT_NOT_ATTACHED +// +// MessageText: +// +// The endpoint must be attached to complete the operation. +// +#define HCN_E_ENDPOINT_NOT_ATTACHED _HRESULT_TYPEDEF_(0x803B0034L) + +// +// MessageId: HCN_E_ENDPOINT_NOT_LOCAL +// +// MessageText: +// +// The endpoint must be local to complete the operation. +// +#define HCN_E_ENDPOINT_NOT_LOCAL _HRESULT_TYPEDEF_(0x803B0035L) + +// +// MessageId: HCN_INTERFACEPARAMETERS_ALREADY_APPLIED +// +// MessageText: +// +// Cannot apply more than one InterfaceParameters policy. +// +#define HCN_INTERFACEPARAMETERS_ALREADY_APPLIED _HRESULT_TYPEDEF_(0x803B0036L) + +// +// MessageId: HCN_E_VFP_NOT_ALLOWED +// +// MessageText: +// +// A network of this type can not be created because VFP is not available. +// +#define HCN_E_VFP_NOT_ALLOWED _HRESULT_TYPEDEF_(0x803B0037L) + +// +// ======================================================= +// Facility Scripted Diagnostics (SDIAG) Error Messages +// ======================================================= +// +// +// MessageId: SDIAG_E_CANCELLED +// +// MessageText: +// +// The operation was cancelled. +// +#define SDIAG_E_CANCELLED _NDIS_ERROR_TYPEDEF_(0x803C0100L) + +// +// MessageId: SDIAG_E_SCRIPT +// +// MessageText: +// +// An error occurred when running a PowerShell script. +// +#define SDIAG_E_SCRIPT _NDIS_ERROR_TYPEDEF_(0x803C0101L) + +// +// MessageId: SDIAG_E_POWERSHELL +// +// MessageText: +// +// An error occurred when interacting with PowerShell runtime. +// +#define SDIAG_E_POWERSHELL _NDIS_ERROR_TYPEDEF_(0x803C0102L) + +// +// MessageId: SDIAG_E_MANAGEDHOST +// +// MessageText: +// +// An error occurred in the Scripted Diagnostic Managed Host. +// +#define SDIAG_E_MANAGEDHOST _NDIS_ERROR_TYPEDEF_(0x803C0103L) + +// +// MessageId: SDIAG_E_NOVERIFIER +// +// MessageText: +// +// The troubleshooting pack does not contain a required verifier to complete the verification. +// +#define SDIAG_E_NOVERIFIER _NDIS_ERROR_TYPEDEF_(0x803C0104L) + +// +// MessageId: SDIAG_S_CANNOTRUN +// +// MessageText: +// +// The troubleshooting pack cannot be executed on this system. +// +#define SDIAG_S_CANNOTRUN _NDIS_ERROR_TYPEDEF_(0x003C0105L) + +// +// MessageId: SDIAG_E_DISABLED +// +// MessageText: +// +// Scripted diagnostics is disabled by group policy. +// +#define SDIAG_E_DISABLED _NDIS_ERROR_TYPEDEF_(0x803C0106L) + +// +// MessageId: SDIAG_E_TRUST +// +// MessageText: +// +// Trust validation of the troubleshooting pack failed. +// +#define SDIAG_E_TRUST _NDIS_ERROR_TYPEDEF_(0x803C0107L) + +// +// MessageId: SDIAG_E_CANNOTRUN +// +// MessageText: +// +// The troubleshooting pack cannot be executed on this system. +// +#define SDIAG_E_CANNOTRUN _NDIS_ERROR_TYPEDEF_(0x803C0108L) + +// +// MessageId: SDIAG_E_VERSION +// +// MessageText: +// +// This version of the troubleshooting pack is not supported. +// +#define SDIAG_E_VERSION _NDIS_ERROR_TYPEDEF_(0x803C0109L) + +// +// MessageId: SDIAG_E_RESOURCE +// +// MessageText: +// +// A required resource cannot be loaded. +// +#define SDIAG_E_RESOURCE _NDIS_ERROR_TYPEDEF_(0x803C010AL) + +// +// MessageId: SDIAG_E_ROOTCAUSE +// +// MessageText: +// +// The troubleshooting pack reported information for a root cause without adding the root cause. +// +#define SDIAG_E_ROOTCAUSE _NDIS_ERROR_TYPEDEF_(0x803C010BL) + +// +// ======================================================= +// Facility Windows Push Notifications (WPN) Error Messages +// ======================================================= +// +// +// MessageId: WPN_E_CHANNEL_CLOSED +// +// MessageText: +// +// The notification channel has already been closed. +// +#define WPN_E_CHANNEL_CLOSED _HRESULT_TYPEDEF_(0x803E0100L) + +// +// MessageId: WPN_E_CHANNEL_REQUEST_NOT_COMPLETE +// +// MessageText: +// +// The notification channel request did not complete successfully. +// +#define WPN_E_CHANNEL_REQUEST_NOT_COMPLETE _HRESULT_TYPEDEF_(0x803E0101L) + +// +// MessageId: WPN_E_INVALID_APP +// +// MessageText: +// +// The application identifier provided is invalid. +// +#define WPN_E_INVALID_APP _HRESULT_TYPEDEF_(0x803E0102L) + +// +// MessageId: WPN_E_OUTSTANDING_CHANNEL_REQUEST +// +// MessageText: +// +// A notification channel request for the provided application identifier is in progress. +// +#define WPN_E_OUTSTANDING_CHANNEL_REQUEST _HRESULT_TYPEDEF_(0x803E0103L) + +// +// MessageId: WPN_E_DUPLICATE_CHANNEL +// +// MessageText: +// +// The channel identifier is already tied to another application endpoint. +// +#define WPN_E_DUPLICATE_CHANNEL _HRESULT_TYPEDEF_(0x803E0104L) + +// +// MessageId: WPN_E_PLATFORM_UNAVAILABLE +// +// MessageText: +// +// The notification platform is unavailable. +// +#define WPN_E_PLATFORM_UNAVAILABLE _HRESULT_TYPEDEF_(0x803E0105L) + +// +// MessageId: WPN_E_NOTIFICATION_POSTED +// +// MessageText: +// +// The notification has already been posted. +// +#define WPN_E_NOTIFICATION_POSTED _HRESULT_TYPEDEF_(0x803E0106L) + +// +// MessageId: WPN_E_NOTIFICATION_HIDDEN +// +// MessageText: +// +// The notification has already been hidden. +// +#define WPN_E_NOTIFICATION_HIDDEN _HRESULT_TYPEDEF_(0x803E0107L) + +// +// MessageId: WPN_E_NOTIFICATION_NOT_POSTED +// +// MessageText: +// +// The notification cannot be hidden until it has been shown. +// +#define WPN_E_NOTIFICATION_NOT_POSTED _HRESULT_TYPEDEF_(0x803E0108L) + +// +// MessageId: WPN_E_CLOUD_DISABLED +// +// MessageText: +// +// Cloud notifications have been turned off. +// +#define WPN_E_CLOUD_DISABLED _HRESULT_TYPEDEF_(0x803E0109L) + +// +// MessageId: WPN_E_CLOUD_INCAPABLE +// +// MessageText: +// +// The application does not have the cloud notification capability. +// +#define WPN_E_CLOUD_INCAPABLE _HRESULT_TYPEDEF_(0x803E0110L) + +// +// MessageId: WPN_E_CLOUD_AUTH_UNAVAILABLE +// +// MessageText: +// +// The notification platform is unable to retrieve the authentication credentials required to connect to the cloud notification service. +// +#define WPN_E_CLOUD_AUTH_UNAVAILABLE _HRESULT_TYPEDEF_(0x803E011AL) + +// +// MessageId: WPN_E_CLOUD_SERVICE_UNAVAILABLE +// +// MessageText: +// +// The notification platform is unable to connect to the cloud notification service. +// +#define WPN_E_CLOUD_SERVICE_UNAVAILABLE _HRESULT_TYPEDEF_(0x803E011BL) + +// +// MessageId: WPN_E_FAILED_LOCK_SCREEN_UPDATE_INTIALIZATION +// +// MessageText: +// +// The notification platform is unable to initialize a callback for lock screen updates. +// +#define WPN_E_FAILED_LOCK_SCREEN_UPDATE_INTIALIZATION _HRESULT_TYPEDEF_(0x803E011CL) + +// +// MessageId: WPN_E_NOTIFICATION_DISABLED +// +// MessageText: +// +// Settings prevent the notification from being delivered. +// +#define WPN_E_NOTIFICATION_DISABLED _HRESULT_TYPEDEF_(0x803E0111L) + +// +// MessageId: WPN_E_NOTIFICATION_INCAPABLE +// +// MessageText: +// +// Application capabilities prevent the notification from being delivered. +// +#define WPN_E_NOTIFICATION_INCAPABLE _HRESULT_TYPEDEF_(0x803E0112L) + +// +// MessageId: WPN_E_INTERNET_INCAPABLE +// +// MessageText: +// +// The application does not have the internet access capability. +// +#define WPN_E_INTERNET_INCAPABLE _HRESULT_TYPEDEF_(0x803E0113L) + +// +// MessageId: WPN_E_NOTIFICATION_TYPE_DISABLED +// +// MessageText: +// +// Settings prevent the notification type from being delivered. +// +#define WPN_E_NOTIFICATION_TYPE_DISABLED _HRESULT_TYPEDEF_(0x803E0114L) + +// +// MessageId: WPN_E_NOTIFICATION_SIZE +// +// MessageText: +// +// The size of the notification content is too large. +// +#define WPN_E_NOTIFICATION_SIZE _HRESULT_TYPEDEF_(0x803E0115L) + +// +// MessageId: WPN_E_TAG_SIZE +// +// MessageText: +// +// The size of the notification tag is too large. +// +#define WPN_E_TAG_SIZE _HRESULT_TYPEDEF_(0x803E0116L) + +// +// MessageId: WPN_E_ACCESS_DENIED +// +// MessageText: +// +// The notification platform doesn't have appropriate privilege on resources. +// +#define WPN_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x803E0117L) + +// +// MessageId: WPN_E_DUPLICATE_REGISTRATION +// +// MessageText: +// +// The notification platform found application is already registered. +// +#define WPN_E_DUPLICATE_REGISTRATION _HRESULT_TYPEDEF_(0x803E0118L) + +// +// MessageId: WPN_E_PUSH_NOTIFICATION_INCAPABLE +// +// MessageText: +// +// The application background task does not have the push notification capability. +// +#define WPN_E_PUSH_NOTIFICATION_INCAPABLE _HRESULT_TYPEDEF_(0x803E0119L) + +// +// MessageId: WPN_E_DEV_ID_SIZE +// +// MessageText: +// +// The size of the developer id for scheduled notification is too large. +// +#define WPN_E_DEV_ID_SIZE _HRESULT_TYPEDEF_(0x803E0120L) + +// +// MessageId: WPN_E_TAG_ALPHANUMERIC +// +// MessageText: +// +// The notification tag is not alphanumeric. +// +#define WPN_E_TAG_ALPHANUMERIC _HRESULT_TYPEDEF_(0x803E012AL) + +// +// MessageId: WPN_E_INVALID_HTTP_STATUS_CODE +// +// MessageText: +// +// The notification platform has received invalid HTTP status code other than 2xx for polling. +// +#define WPN_E_INVALID_HTTP_STATUS_CODE _HRESULT_TYPEDEF_(0x803E012BL) + +// +// MessageId: WPN_E_OUT_OF_SESSION +// +// MessageText: +// +// The notification platform has run out of presentation layer sessions. +// +#define WPN_E_OUT_OF_SESSION _HRESULT_TYPEDEF_(0x803E0200L) + +// +// MessageId: WPN_E_POWER_SAVE +// +// MessageText: +// +// The notification platform rejects image download request due to system in power save mode. +// +#define WPN_E_POWER_SAVE _HRESULT_TYPEDEF_(0x803E0201L) + +// +// MessageId: WPN_E_IMAGE_NOT_FOUND_IN_CACHE +// +// MessageText: +// +// The notification platform doesn't have the requested image in its cache. +// +#define WPN_E_IMAGE_NOT_FOUND_IN_CACHE _HRESULT_TYPEDEF_(0x803E0202L) + +// +// MessageId: WPN_E_ALL_URL_NOT_COMPLETED +// +// MessageText: +// +// The notification platform cannot complete all of requested image. +// +#define WPN_E_ALL_URL_NOT_COMPLETED _HRESULT_TYPEDEF_(0x803E0203L) + +// +// MessageId: WPN_E_INVALID_CLOUD_IMAGE +// +// MessageText: +// +// A cloud image downloaded from the notification platform is invalid. +// +#define WPN_E_INVALID_CLOUD_IMAGE _HRESULT_TYPEDEF_(0x803E0204L) + +// +// MessageId: WPN_E_NOTIFICATION_ID_MATCHED +// +// MessageText: +// +// Notification Id provided as filter is matched with what the notification platform maintains. +// +#define WPN_E_NOTIFICATION_ID_MATCHED _HRESULT_TYPEDEF_(0x803E0205L) + +// +// MessageId: WPN_E_CALLBACK_ALREADY_REGISTERED +// +// MessageText: +// +// Notification callback interface is already registered. +// +#define WPN_E_CALLBACK_ALREADY_REGISTERED _HRESULT_TYPEDEF_(0x803E0206L) + +// +// MessageId: WPN_E_TOAST_NOTIFICATION_DROPPED +// +// MessageText: +// +// Toast Notification was dropped without being displayed to the user. +// +#define WPN_E_TOAST_NOTIFICATION_DROPPED _HRESULT_TYPEDEF_(0x803E0207L) + +// +// MessageId: WPN_E_STORAGE_LOCKED +// +// MessageText: +// +// The notification platform does not have the proper privileges to complete the request. +// +#define WPN_E_STORAGE_LOCKED _HRESULT_TYPEDEF_(0x803E0208L) + +// +// MessageId: WPN_E_GROUP_SIZE +// +// MessageText: +// +// The size of the notification group is too large. +// +#define WPN_E_GROUP_SIZE _HRESULT_TYPEDEF_(0x803E0209L) + +// +// MessageId: WPN_E_GROUP_ALPHANUMERIC +// +// MessageText: +// +// The notification group is not alphanumeric. +// +#define WPN_E_GROUP_ALPHANUMERIC _HRESULT_TYPEDEF_(0x803E020AL) + +// +// MessageId: WPN_E_CLOUD_DISABLED_FOR_APP +// +// MessageText: +// +// Cloud notifications have been disabled for the application due to a policy setting. +// +#define WPN_E_CLOUD_DISABLED_FOR_APP _HRESULT_TYPEDEF_(0x803E020BL) + + +// +// MBN error codes +// + +// +// MessageId: E_MBN_CONTEXT_NOT_ACTIVATED +// +// MessageText: +// +// Context is not activated. +// +#define E_MBN_CONTEXT_NOT_ACTIVATED _HRESULT_TYPEDEF_(0x80548201L) + +// +// MessageId: E_MBN_BAD_SIM +// +// MessageText: +// +// Bad SIM is inserted. +// +#define E_MBN_BAD_SIM _HRESULT_TYPEDEF_(0x80548202L) + +// +// MessageId: E_MBN_DATA_CLASS_NOT_AVAILABLE +// +// MessageText: +// +// Requested data class is not available. +// +#define E_MBN_DATA_CLASS_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80548203L) + +// +// MessageId: E_MBN_INVALID_ACCESS_STRING +// +// MessageText: +// +// Access point name (APN) or Access string is incorrect. +// +#define E_MBN_INVALID_ACCESS_STRING _HRESULT_TYPEDEF_(0x80548204L) + +// +// MessageId: E_MBN_MAX_ACTIVATED_CONTEXTS +// +// MessageText: +// +// Max activated contexts have reached. +// +#define E_MBN_MAX_ACTIVATED_CONTEXTS _HRESULT_TYPEDEF_(0x80548205L) + +// +// MessageId: E_MBN_PACKET_SVC_DETACHED +// +// MessageText: +// +// Device is in packet detach state. +// +#define E_MBN_PACKET_SVC_DETACHED _HRESULT_TYPEDEF_(0x80548206L) + +// +// MessageId: E_MBN_PROVIDER_NOT_VISIBLE +// +// MessageText: +// +// Provider is not visible. +// +#define E_MBN_PROVIDER_NOT_VISIBLE _HRESULT_TYPEDEF_(0x80548207L) + +// +// MessageId: E_MBN_RADIO_POWER_OFF +// +// MessageText: +// +// Radio is powered off. +// +#define E_MBN_RADIO_POWER_OFF _HRESULT_TYPEDEF_(0x80548208L) + +// +// MessageId: E_MBN_SERVICE_NOT_ACTIVATED +// +// MessageText: +// +// MBN subscription is not activated. +// +#define E_MBN_SERVICE_NOT_ACTIVATED _HRESULT_TYPEDEF_(0x80548209L) + +// +// MessageId: E_MBN_SIM_NOT_INSERTED +// +// MessageText: +// +// SIM is not inserted. +// +#define E_MBN_SIM_NOT_INSERTED _HRESULT_TYPEDEF_(0x8054820AL) + +// +// MessageId: E_MBN_VOICE_CALL_IN_PROGRESS +// +// MessageText: +// +// Voice call in progress. +// +#define E_MBN_VOICE_CALL_IN_PROGRESS _HRESULT_TYPEDEF_(0x8054820BL) + +// +// MessageId: E_MBN_INVALID_CACHE +// +// MessageText: +// +// Visible provider cache is invalid. +// +#define E_MBN_INVALID_CACHE _HRESULT_TYPEDEF_(0x8054820CL) + +// +// MessageId: E_MBN_NOT_REGISTERED +// +// MessageText: +// +// Device is not registered. +// +#define E_MBN_NOT_REGISTERED _HRESULT_TYPEDEF_(0x8054820DL) + +// +// MessageId: E_MBN_PROVIDERS_NOT_FOUND +// +// MessageText: +// +// Providers not found. +// +#define E_MBN_PROVIDERS_NOT_FOUND _HRESULT_TYPEDEF_(0x8054820EL) + +// +// MessageId: E_MBN_PIN_NOT_SUPPORTED +// +// MessageText: +// +// Pin is not supported. +// +#define E_MBN_PIN_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8054820FL) + +// +// MessageId: E_MBN_PIN_REQUIRED +// +// MessageText: +// +// Pin is required. +// +#define E_MBN_PIN_REQUIRED _HRESULT_TYPEDEF_(0x80548210L) + +// +// MessageId: E_MBN_PIN_DISABLED +// +// MessageText: +// +// PIN is disabled. +// +#define E_MBN_PIN_DISABLED _HRESULT_TYPEDEF_(0x80548211L) + +// +// MessageId: E_MBN_FAILURE +// +// MessageText: +// +// Generic Failure. +// +#define E_MBN_FAILURE _HRESULT_TYPEDEF_(0x80548212L) + +// Profile related error messages +// +// MessageId: E_MBN_INVALID_PROFILE +// +// MessageText: +// +// Profile is invalid. +// +#define E_MBN_INVALID_PROFILE _HRESULT_TYPEDEF_(0x80548218L) + +// +// MessageId: E_MBN_DEFAULT_PROFILE_EXIST +// +// MessageText: +// +// Default profile exist. +// +#define E_MBN_DEFAULT_PROFILE_EXIST _HRESULT_TYPEDEF_(0x80548219L) + +// SMS related error messages +// +// MessageId: E_MBN_SMS_ENCODING_NOT_SUPPORTED +// +// MessageText: +// +// SMS encoding is not supported. +// +#define E_MBN_SMS_ENCODING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80548220L) + +// +// MessageId: E_MBN_SMS_FILTER_NOT_SUPPORTED +// +// MessageText: +// +// SMS filter is not supported. +// +#define E_MBN_SMS_FILTER_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80548221L) + +// +// MessageId: E_MBN_SMS_INVALID_MEMORY_INDEX +// +// MessageText: +// +// Invalid SMS memory index is used. +// +#define E_MBN_SMS_INVALID_MEMORY_INDEX _HRESULT_TYPEDEF_(0x80548222L) + +// +// MessageId: E_MBN_SMS_LANG_NOT_SUPPORTED +// +// MessageText: +// +// SMS language is not supported. +// +#define E_MBN_SMS_LANG_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80548223L) + +// +// MessageId: E_MBN_SMS_MEMORY_FAILURE +// +// MessageText: +// +// SMS memory failure occurred. +// +#define E_MBN_SMS_MEMORY_FAILURE _HRESULT_TYPEDEF_(0x80548224L) + +// +// MessageId: E_MBN_SMS_NETWORK_TIMEOUT +// +// MessageText: +// +// SMS network timeout happened. +// +#define E_MBN_SMS_NETWORK_TIMEOUT _HRESULT_TYPEDEF_(0x80548225L) + +// +// MessageId: E_MBN_SMS_UNKNOWN_SMSC_ADDRESS +// +// MessageText: +// +// Unknown SMSC address is used. +// +#define E_MBN_SMS_UNKNOWN_SMSC_ADDRESS _HRESULT_TYPEDEF_(0x80548226L) + +// +// MessageId: E_MBN_SMS_FORMAT_NOT_SUPPORTED +// +// MessageText: +// +// SMS format is not supported. +// +#define E_MBN_SMS_FORMAT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80548227L) + +// +// MessageId: E_MBN_SMS_OPERATION_NOT_ALLOWED +// +// MessageText: +// +// SMS operation is not allowed. +// +#define E_MBN_SMS_OPERATION_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80548228L) + +// +// MessageId: E_MBN_SMS_MEMORY_FULL +// +// MessageText: +// +// Device SMS memory is full. +// +#define E_MBN_SMS_MEMORY_FULL _HRESULT_TYPEDEF_(0x80548229L) + + +// +// P2P error codes +// + +// +// MessageId: PEER_E_IPV6_NOT_INSTALLED +// +// MessageText: +// +// The IPv6 protocol is not installed. +// +#define PEER_E_IPV6_NOT_INSTALLED _HRESULT_TYPEDEF_(0x80630001L) + +// +// MessageId: PEER_E_NOT_INITIALIZED +// +// MessageText: +// +// The component has not been initialized. +// +#define PEER_E_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x80630002L) + +// +// MessageId: PEER_E_CANNOT_START_SERVICE +// +// MessageText: +// +// The required service cannot be started. +// +#define PEER_E_CANNOT_START_SERVICE _HRESULT_TYPEDEF_(0x80630003L) + +// +// MessageId: PEER_E_NOT_LICENSED +// +// MessageText: +// +// The P2P protocol is not licensed to run on this OS. +// +#define PEER_E_NOT_LICENSED _HRESULT_TYPEDEF_(0x80630004L) + +// +// MessageId: PEER_E_INVALID_GRAPH +// +// MessageText: +// +// The graph handle is invalid. +// +#define PEER_E_INVALID_GRAPH _HRESULT_TYPEDEF_(0x80630010L) + +// +// MessageId: PEER_E_DBNAME_CHANGED +// +// MessageText: +// +// The graph database name has changed. +// +#define PEER_E_DBNAME_CHANGED _HRESULT_TYPEDEF_(0x80630011L) + +// +// MessageId: PEER_E_DUPLICATE_GRAPH +// +// MessageText: +// +// A graph with the same ID already exists. +// +#define PEER_E_DUPLICATE_GRAPH _HRESULT_TYPEDEF_(0x80630012L) + +// +// MessageId: PEER_E_GRAPH_NOT_READY +// +// MessageText: +// +// The graph is not ready. +// +#define PEER_E_GRAPH_NOT_READY _HRESULT_TYPEDEF_(0x80630013L) + +// +// MessageId: PEER_E_GRAPH_SHUTTING_DOWN +// +// MessageText: +// +// The graph is shutting down. +// +#define PEER_E_GRAPH_SHUTTING_DOWN _HRESULT_TYPEDEF_(0x80630014L) + +// +// MessageId: PEER_E_GRAPH_IN_USE +// +// MessageText: +// +// The graph is still in use. +// +#define PEER_E_GRAPH_IN_USE _HRESULT_TYPEDEF_(0x80630015L) + +// +// MessageId: PEER_E_INVALID_DATABASE +// +// MessageText: +// +// The graph database is corrupt. +// +#define PEER_E_INVALID_DATABASE _HRESULT_TYPEDEF_(0x80630016L) + +// +// MessageId: PEER_E_TOO_MANY_ATTRIBUTES +// +// MessageText: +// +// Too many attributes have been used. +// +#define PEER_E_TOO_MANY_ATTRIBUTES _HRESULT_TYPEDEF_(0x80630017L) + +// +// MessageId: PEER_E_CONNECTION_NOT_FOUND +// +// MessageText: +// +// The connection can not be found. +// +#define PEER_E_CONNECTION_NOT_FOUND _HRESULT_TYPEDEF_(0x80630103L) + +// +// MessageId: PEER_E_CONNECT_SELF +// +// MessageText: +// +// The peer attempted to connect to itself. +// +#define PEER_E_CONNECT_SELF _HRESULT_TYPEDEF_(0x80630106L) + +// +// MessageId: PEER_E_ALREADY_LISTENING +// +// MessageText: +// +// The peer is already listening for connections. +// +#define PEER_E_ALREADY_LISTENING _HRESULT_TYPEDEF_(0x80630107L) + +// +// MessageId: PEER_E_NODE_NOT_FOUND +// +// MessageText: +// +// The node was not found. +// +#define PEER_E_NODE_NOT_FOUND _HRESULT_TYPEDEF_(0x80630108L) + +// +// MessageId: PEER_E_CONNECTION_FAILED +// +// MessageText: +// +// The Connection attempt failed. +// +#define PEER_E_CONNECTION_FAILED _HRESULT_TYPEDEF_(0x80630109L) + +// +// MessageId: PEER_E_CONNECTION_NOT_AUTHENTICATED +// +// MessageText: +// +// The peer connection could not be authenticated. +// +#define PEER_E_CONNECTION_NOT_AUTHENTICATED _HRESULT_TYPEDEF_(0x8063010AL) + +// +// MessageId: PEER_E_CONNECTION_REFUSED +// +// MessageText: +// +// The connection was refused. +// +#define PEER_E_CONNECTION_REFUSED _HRESULT_TYPEDEF_(0x8063010BL) + +// +// MessageId: PEER_E_CLASSIFIER_TOO_LONG +// +// MessageText: +// +// The peer name classifier is too long. +// +#define PEER_E_CLASSIFIER_TOO_LONG _HRESULT_TYPEDEF_(0x80630201L) + +// +// MessageId: PEER_E_TOO_MANY_IDENTITIES +// +// MessageText: +// +// The maximum number of identities have been created. +// +#define PEER_E_TOO_MANY_IDENTITIES _HRESULT_TYPEDEF_(0x80630202L) + +// +// MessageId: PEER_E_NO_KEY_ACCESS +// +// MessageText: +// +// Unable to access a key. +// +#define PEER_E_NO_KEY_ACCESS _HRESULT_TYPEDEF_(0x80630203L) + +// +// MessageId: PEER_E_GROUPS_EXIST +// +// MessageText: +// +// The group already exists. +// +#define PEER_E_GROUPS_EXIST _HRESULT_TYPEDEF_(0x80630204L) + +// record error codes +// +// MessageId: PEER_E_RECORD_NOT_FOUND +// +// MessageText: +// +// The requested record could not be found. +// +#define PEER_E_RECORD_NOT_FOUND _HRESULT_TYPEDEF_(0x80630301L) + +// +// MessageId: PEER_E_DATABASE_ACCESSDENIED +// +// MessageText: +// +// Access to the database was denied. +// +#define PEER_E_DATABASE_ACCESSDENIED _HRESULT_TYPEDEF_(0x80630302L) + +// +// MessageId: PEER_E_DBINITIALIZATION_FAILED +// +// MessageText: +// +// The Database could not be initialized. +// +#define PEER_E_DBINITIALIZATION_FAILED _HRESULT_TYPEDEF_(0x80630303L) + +// +// MessageId: PEER_E_MAX_RECORD_SIZE_EXCEEDED +// +// MessageText: +// +// The record is too big. +// +#define PEER_E_MAX_RECORD_SIZE_EXCEEDED _HRESULT_TYPEDEF_(0x80630304L) + +// +// MessageId: PEER_E_DATABASE_ALREADY_PRESENT +// +// MessageText: +// +// The database already exists. +// +#define PEER_E_DATABASE_ALREADY_PRESENT _HRESULT_TYPEDEF_(0x80630305L) + +// +// MessageId: PEER_E_DATABASE_NOT_PRESENT +// +// MessageText: +// +// The database could not be found. +// +#define PEER_E_DATABASE_NOT_PRESENT _HRESULT_TYPEDEF_(0x80630306L) + +// +// MessageId: PEER_E_IDENTITY_NOT_FOUND +// +// MessageText: +// +// The identity could not be found. +// +#define PEER_E_IDENTITY_NOT_FOUND _HRESULT_TYPEDEF_(0x80630401L) + +// eventing error +// +// MessageId: PEER_E_EVENT_HANDLE_NOT_FOUND +// +// MessageText: +// +// The event handle could not be found. +// +#define PEER_E_EVENT_HANDLE_NOT_FOUND _HRESULT_TYPEDEF_(0x80630501L) + +// searching error +// +// MessageId: PEER_E_INVALID_SEARCH +// +// MessageText: +// +// Invalid search. +// +#define PEER_E_INVALID_SEARCH _HRESULT_TYPEDEF_(0x80630601L) + +// +// MessageId: PEER_E_INVALID_ATTRIBUTES +// +// MessageText: +// +// The search attributes are invalid. +// +#define PEER_E_INVALID_ATTRIBUTES _HRESULT_TYPEDEF_(0x80630602L) + + +// certificate verification error codes +// +// MessageId: PEER_E_INVITATION_NOT_TRUSTED +// +// MessageText: +// +// The invitation is not trusted. +// +#define PEER_E_INVITATION_NOT_TRUSTED _HRESULT_TYPEDEF_(0x80630701L) + +// +// MessageId: PEER_E_CHAIN_TOO_LONG +// +// MessageText: +// +// The certchain is too long. +// +#define PEER_E_CHAIN_TOO_LONG _HRESULT_TYPEDEF_(0x80630703L) + +// +// MessageId: PEER_E_INVALID_TIME_PERIOD +// +// MessageText: +// +// The time period is invalid. +// +#define PEER_E_INVALID_TIME_PERIOD _HRESULT_TYPEDEF_(0x80630705L) + +// +// MessageId: PEER_E_CIRCULAR_CHAIN_DETECTED +// +// MessageText: +// +// A circular cert chain was detected. +// +#define PEER_E_CIRCULAR_CHAIN_DETECTED _HRESULT_TYPEDEF_(0x80630706L) + +// +// MessageId: PEER_E_CERT_STORE_CORRUPTED +// +// MessageText: +// +// The certstore is corrupted. +// +#define PEER_E_CERT_STORE_CORRUPTED _HRESULT_TYPEDEF_(0x80630801L) + +// +// MessageId: PEER_E_NO_CLOUD +// +// MessageText: +// +// The specified PNRP cloud does not exist. +// +#define PEER_E_NO_CLOUD _HRESULT_TYPEDEF_(0x80631001L) + +// +// MessageId: PEER_E_CLOUD_NAME_AMBIGUOUS +// +// MessageText: +// +// The cloud name is ambiguous. +// +#define PEER_E_CLOUD_NAME_AMBIGUOUS _HRESULT_TYPEDEF_(0x80631005L) + +// +// MessageId: PEER_E_INVALID_RECORD +// +// MessageText: +// +// The record is invalid. +// +#define PEER_E_INVALID_RECORD _HRESULT_TYPEDEF_(0x80632010L) + +// +// MessageId: PEER_E_NOT_AUTHORIZED +// +// MessageText: +// +// Not authorized. +// +#define PEER_E_NOT_AUTHORIZED _HRESULT_TYPEDEF_(0x80632020L) + +// +// MessageId: PEER_E_PASSWORD_DOES_NOT_MEET_POLICY +// +// MessageText: +// +// The password does not meet policy requirements. +// +#define PEER_E_PASSWORD_DOES_NOT_MEET_POLICY _HRESULT_TYPEDEF_(0x80632021L) + +// +// MessageId: PEER_E_DEFERRED_VALIDATION +// +// MessageText: +// +// The record validation has been deferred. +// +#define PEER_E_DEFERRED_VALIDATION _HRESULT_TYPEDEF_(0x80632030L) + +// +// MessageId: PEER_E_INVALID_GROUP_PROPERTIES +// +// MessageText: +// +// The group properties are invalid. +// +#define PEER_E_INVALID_GROUP_PROPERTIES _HRESULT_TYPEDEF_(0x80632040L) + +// +// MessageId: PEER_E_INVALID_PEER_NAME +// +// MessageText: +// +// The peername is invalid. +// +#define PEER_E_INVALID_PEER_NAME _HRESULT_TYPEDEF_(0x80632050L) + +// +// MessageId: PEER_E_INVALID_CLASSIFIER +// +// MessageText: +// +// The classifier is invalid. +// +#define PEER_E_INVALID_CLASSIFIER _HRESULT_TYPEDEF_(0x80632060L) + +// +// MessageId: PEER_E_INVALID_FRIENDLY_NAME +// +// MessageText: +// +// The friendly name is invalid. +// +#define PEER_E_INVALID_FRIENDLY_NAME _HRESULT_TYPEDEF_(0x80632070L) + +// +// MessageId: PEER_E_INVALID_ROLE_PROPERTY +// +// MessageText: +// +// Invalid role property. +// +#define PEER_E_INVALID_ROLE_PROPERTY _HRESULT_TYPEDEF_(0x80632071L) + +// +// MessageId: PEER_E_INVALID_CLASSIFIER_PROPERTY +// +// MessageText: +// +// Invalid classifier property. +// +#define PEER_E_INVALID_CLASSIFIER_PROPERTY _HRESULT_TYPEDEF_(0x80632072L) + +// +// MessageId: PEER_E_INVALID_RECORD_EXPIRATION +// +// MessageText: +// +// Invalid record expiration. +// +#define PEER_E_INVALID_RECORD_EXPIRATION _HRESULT_TYPEDEF_(0x80632080L) + +// +// MessageId: PEER_E_INVALID_CREDENTIAL_INFO +// +// MessageText: +// +// Invalid credential info. +// +#define PEER_E_INVALID_CREDENTIAL_INFO _HRESULT_TYPEDEF_(0x80632081L) + +// +// MessageId: PEER_E_INVALID_CREDENTIAL +// +// MessageText: +// +// Invalid credential. +// +#define PEER_E_INVALID_CREDENTIAL _HRESULT_TYPEDEF_(0x80632082L) + +// +// MessageId: PEER_E_INVALID_RECORD_SIZE +// +// MessageText: +// +// Invalid record size. +// +#define PEER_E_INVALID_RECORD_SIZE _HRESULT_TYPEDEF_(0x80632083L) + +// +// MessageId: PEER_E_UNSUPPORTED_VERSION +// +// MessageText: +// +// Unsupported version. +// +#define PEER_E_UNSUPPORTED_VERSION _HRESULT_TYPEDEF_(0x80632090L) + +// +// MessageId: PEER_E_GROUP_NOT_READY +// +// MessageText: +// +// The group is not ready. +// +#define PEER_E_GROUP_NOT_READY _HRESULT_TYPEDEF_(0x80632091L) + +// +// MessageId: PEER_E_GROUP_IN_USE +// +// MessageText: +// +// The group is still in use. +// +#define PEER_E_GROUP_IN_USE _HRESULT_TYPEDEF_(0x80632092L) + +// +// MessageId: PEER_E_INVALID_GROUP +// +// MessageText: +// +// The group is invalid. +// +#define PEER_E_INVALID_GROUP _HRESULT_TYPEDEF_(0x80632093L) + +// +// MessageId: PEER_E_NO_MEMBERS_FOUND +// +// MessageText: +// +// No members were found. +// +#define PEER_E_NO_MEMBERS_FOUND _HRESULT_TYPEDEF_(0x80632094L) + +// +// MessageId: PEER_E_NO_MEMBER_CONNECTIONS +// +// MessageText: +// +// There are no member connections. +// +#define PEER_E_NO_MEMBER_CONNECTIONS _HRESULT_TYPEDEF_(0x80632095L) + +// +// MessageId: PEER_E_UNABLE_TO_LISTEN +// +// MessageText: +// +// Unable to listen. +// +#define PEER_E_UNABLE_TO_LISTEN _HRESULT_TYPEDEF_(0x80632096L) + +// +// MessageId: PEER_E_IDENTITY_DELETED +// +// MessageText: +// +// The identity does not exist. +// +#define PEER_E_IDENTITY_DELETED _HRESULT_TYPEDEF_(0x806320A0L) + +// +// MessageId: PEER_E_SERVICE_NOT_AVAILABLE +// +// MessageText: +// +// The service is not available. +// +#define PEER_E_SERVICE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x806320A1L) + +// Contacts APIs error code +// +// MessageId: PEER_E_CONTACT_NOT_FOUND +// +// MessageText: +// +// THe contact could not be found. +// +#define PEER_E_CONTACT_NOT_FOUND _HRESULT_TYPEDEF_(0x80636001L) + +// Special success codes +// +// MessageId: PEER_S_GRAPH_DATA_CREATED +// +// MessageText: +// +// The graph data was created. +// +#define PEER_S_GRAPH_DATA_CREATED _HRESULT_TYPEDEF_(0x00630001L) + +// +// MessageId: PEER_S_NO_EVENT_DATA +// +// MessageText: +// +// There is not more event data. +// +#define PEER_S_NO_EVENT_DATA _HRESULT_TYPEDEF_(0x00630002L) + +// +// MessageId: PEER_S_ALREADY_CONNECTED +// +// MessageText: +// +// The graph is already connect. +// +#define PEER_S_ALREADY_CONNECTED _HRESULT_TYPEDEF_(0x00632000L) + +// +// MessageId: PEER_S_SUBSCRIPTION_EXISTS +// +// MessageText: +// +// The subscription already exists. +// +#define PEER_S_SUBSCRIPTION_EXISTS _HRESULT_TYPEDEF_(0x00636000L) + +// +// MessageId: PEER_S_NO_CONNECTIVITY +// +// MessageText: +// +// No connectivity. +// +#define PEER_S_NO_CONNECTIVITY _HRESULT_TYPEDEF_(0x00630005L) + +// +// MessageId: PEER_S_ALREADY_A_MEMBER +// +// MessageText: +// +// Already a member. +// +#define PEER_S_ALREADY_A_MEMBER _HRESULT_TYPEDEF_(0x00630006L) + +// Pnrp helpers errors +// +// MessageId: PEER_E_CANNOT_CONVERT_PEER_NAME +// +// MessageText: +// +// The peername could not be converted to a DNS pnrp name. +// +#define PEER_E_CANNOT_CONVERT_PEER_NAME _HRESULT_TYPEDEF_(0x80634001L) + +// +// MessageId: PEER_E_INVALID_PEER_HOST_NAME +// +// MessageText: +// +// Invalid peer host name. +// +#define PEER_E_INVALID_PEER_HOST_NAME _HRESULT_TYPEDEF_(0x80634002L) + +// +// MessageId: PEER_E_NO_MORE +// +// MessageText: +// +// No more data could be found. +// +#define PEER_E_NO_MORE _HRESULT_TYPEDEF_(0x80634003L) + +// +// MessageId: PEER_E_PNRP_DUPLICATE_PEER_NAME +// +// MessageText: +// +// The existing peer name is already registered. +// +#define PEER_E_PNRP_DUPLICATE_PEER_NAME _HRESULT_TYPEDEF_(0x80634005L) + +// AppInvite APIs error code +// +// MessageId: PEER_E_INVITE_CANCELLED +// +// MessageText: +// +// The app invite request was cancelled by the user. +// +#define PEER_E_INVITE_CANCELLED _HRESULT_TYPEDEF_(0x80637000L) + +// +// MessageId: PEER_E_INVITE_RESPONSE_NOT_AVAILABLE +// +// MessageText: +// +// No response of the invite was received. +// +#define PEER_E_INVITE_RESPONSE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80637001L) + +// Serverless presence error codes +// +// MessageId: PEER_E_NOT_SIGNED_IN +// +// MessageText: +// +// User is not signed into serverless presence. +// +#define PEER_E_NOT_SIGNED_IN _HRESULT_TYPEDEF_(0x80637003L) + +// +// MessageId: PEER_E_PRIVACY_DECLINED +// +// MessageText: +// +// The user declined the privacy policy prompt. +// +#define PEER_E_PRIVACY_DECLINED _HRESULT_TYPEDEF_(0x80637004L) + +// +// MessageId: PEER_E_TIMEOUT +// +// MessageText: +// +// A timeout occurred. +// +#define PEER_E_TIMEOUT _HRESULT_TYPEDEF_(0x80637005L) + +// +// MessageId: PEER_E_INVALID_ADDRESS +// +// MessageText: +// +// The address is invalid. +// +#define PEER_E_INVALID_ADDRESS _HRESULT_TYPEDEF_(0x80637007L) + +// +// MessageId: PEER_E_FW_EXCEPTION_DISABLED +// +// MessageText: +// +// A required firewall exception is disabled. +// +#define PEER_E_FW_EXCEPTION_DISABLED _HRESULT_TYPEDEF_(0x80637008L) + +// +// MessageId: PEER_E_FW_BLOCKED_BY_POLICY +// +// MessageText: +// +// The service is blocked by a firewall policy. +// +#define PEER_E_FW_BLOCKED_BY_POLICY _HRESULT_TYPEDEF_(0x80637009L) + +// +// MessageId: PEER_E_FW_BLOCKED_BY_SHIELDS_UP +// +// MessageText: +// +// Firewall exceptions are disabled. +// +#define PEER_E_FW_BLOCKED_BY_SHIELDS_UP _HRESULT_TYPEDEF_(0x8063700AL) + +// +// MessageId: PEER_E_FW_DECLINED +// +// MessageText: +// +// The user declined to enable the firewall exceptions. +// +#define PEER_E_FW_DECLINED _HRESULT_TYPEDEF_(0x8063700BL) + + +// +// UI error codes +// + +// +// MessageId: UI_E_CREATE_FAILED +// +// MessageText: +// +// The object could not be created. +// +#define UI_E_CREATE_FAILED _HRESULT_TYPEDEF_(0x802A0001L) + +// +// MessageId: UI_E_SHUTDOWN_CALLED +// +// MessageText: +// +// Shutdown was already called on this object or the object that owns it. +// +#define UI_E_SHUTDOWN_CALLED _HRESULT_TYPEDEF_(0x802A0002L) + +// +// MessageId: UI_E_ILLEGAL_REENTRANCY +// +// MessageText: +// +// This method cannot be called during this type of callback. +// +#define UI_E_ILLEGAL_REENTRANCY _HRESULT_TYPEDEF_(0x802A0003L) + +// +// MessageId: UI_E_OBJECT_SEALED +// +// MessageText: +// +// This object has been sealed, so this change is no longer allowed. +// +#define UI_E_OBJECT_SEALED _HRESULT_TYPEDEF_(0x802A0004L) + +// +// MessageId: UI_E_VALUE_NOT_SET +// +// MessageText: +// +// The requested value was never set. +// +#define UI_E_VALUE_NOT_SET _HRESULT_TYPEDEF_(0x802A0005L) + +// +// MessageId: UI_E_VALUE_NOT_DETERMINED +// +// MessageText: +// +// The requested value cannot be determined. +// +#define UI_E_VALUE_NOT_DETERMINED _HRESULT_TYPEDEF_(0x802A0006L) + +// +// MessageId: UI_E_INVALID_OUTPUT +// +// MessageText: +// +// A callback returned an invalid output parameter. +// +#define UI_E_INVALID_OUTPUT _HRESULT_TYPEDEF_(0x802A0007L) + +// +// MessageId: UI_E_BOOLEAN_EXPECTED +// +// MessageText: +// +// A callback returned a success code other than S_OK or S_FALSE. +// +#define UI_E_BOOLEAN_EXPECTED _HRESULT_TYPEDEF_(0x802A0008L) + +// +// MessageId: UI_E_DIFFERENT_OWNER +// +// MessageText: +// +// A parameter that should be owned by this object is owned by a different object. +// +#define UI_E_DIFFERENT_OWNER _HRESULT_TYPEDEF_(0x802A0009L) + +// +// MessageId: UI_E_AMBIGUOUS_MATCH +// +// MessageText: +// +// More than one item matched the search criteria. +// +#define UI_E_AMBIGUOUS_MATCH _HRESULT_TYPEDEF_(0x802A000AL) + +// +// MessageId: UI_E_FP_OVERFLOW +// +// MessageText: +// +// A floating-point overflow occurred. +// +#define UI_E_FP_OVERFLOW _HRESULT_TYPEDEF_(0x802A000BL) + +// +// MessageId: UI_E_WRONG_THREAD +// +// MessageText: +// +// This method can only be called from the thread that created the object. +// +#define UI_E_WRONG_THREAD _HRESULT_TYPEDEF_(0x802A000CL) + +// +// MessageId: UI_E_STORYBOARD_ACTIVE +// +// MessageText: +// +// The storyboard is currently in the schedule. +// +#define UI_E_STORYBOARD_ACTIVE _HRESULT_TYPEDEF_(0x802A0101L) + +// +// MessageId: UI_E_STORYBOARD_NOT_PLAYING +// +// MessageText: +// +// The storyboard is not playing. +// +#define UI_E_STORYBOARD_NOT_PLAYING _HRESULT_TYPEDEF_(0x802A0102L) + +// +// MessageId: UI_E_START_KEYFRAME_AFTER_END +// +// MessageText: +// +// The start keyframe might occur after the end keyframe. +// +#define UI_E_START_KEYFRAME_AFTER_END _HRESULT_TYPEDEF_(0x802A0103L) + +// +// MessageId: UI_E_END_KEYFRAME_NOT_DETERMINED +// +// MessageText: +// +// It might not be possible to determine the end keyframe time when the start keyframe is reached. +// +#define UI_E_END_KEYFRAME_NOT_DETERMINED _HRESULT_TYPEDEF_(0x802A0104L) + +// +// MessageId: UI_E_LOOPS_OVERLAP +// +// MessageText: +// +// Two repeated portions of a storyboard might overlap. +// +#define UI_E_LOOPS_OVERLAP _HRESULT_TYPEDEF_(0x802A0105L) + +// +// MessageId: UI_E_TRANSITION_ALREADY_USED +// +// MessageText: +// +// The transition has already been added to a storyboard. +// +#define UI_E_TRANSITION_ALREADY_USED _HRESULT_TYPEDEF_(0x802A0106L) + +// +// MessageId: UI_E_TRANSITION_NOT_IN_STORYBOARD +// +// MessageText: +// +// The transition has not been added to a storyboard. +// +#define UI_E_TRANSITION_NOT_IN_STORYBOARD _HRESULT_TYPEDEF_(0x802A0107L) + +// +// MessageId: UI_E_TRANSITION_ECLIPSED +// +// MessageText: +// +// The transition might eclipse the beginning of another transition in the storyboard. +// +#define UI_E_TRANSITION_ECLIPSED _HRESULT_TYPEDEF_(0x802A0108L) + +// +// MessageId: UI_E_TIME_BEFORE_LAST_UPDATE +// +// MessageText: +// +// The given time is earlier than the time passed to the last update. +// +#define UI_E_TIME_BEFORE_LAST_UPDATE _HRESULT_TYPEDEF_(0x802A0109L) + +// +// MessageId: UI_E_TIMER_CLIENT_ALREADY_CONNECTED +// +// MessageText: +// +// This client is already connected to a timer. +// +#define UI_E_TIMER_CLIENT_ALREADY_CONNECTED _HRESULT_TYPEDEF_(0x802A010AL) + +// +// MessageId: UI_E_INVALID_DIMENSION +// +// MessageText: +// +// The passed dimension is invalid or does not match the object's dimension. +// +#define UI_E_INVALID_DIMENSION _HRESULT_TYPEDEF_(0x802A010BL) + +// +// MessageId: UI_E_PRIMITIVE_OUT_OF_BOUNDS +// +// MessageText: +// +// The added primitive begins at or beyond the duration of the interpolator. +// +#define UI_E_PRIMITIVE_OUT_OF_BOUNDS _HRESULT_TYPEDEF_(0x802A010CL) + +// +// MessageId: UI_E_WINDOW_CLOSED +// +// MessageText: +// +// The operation cannot be completed because the window is being closed. +// +#define UI_E_WINDOW_CLOSED _HRESULT_TYPEDEF_(0x802A0201L) + + +// +// Bluetooth Attribute Protocol Warnings +// + +// +// MessageId: E_BLUETOOTH_ATT_INVALID_HANDLE +// +// MessageText: +// +// The attribute handle given was not valid on this server. +// +#define E_BLUETOOTH_ATT_INVALID_HANDLE _HRESULT_TYPEDEF_(0x80650001L) + +// +// MessageId: E_BLUETOOTH_ATT_READ_NOT_PERMITTED +// +// MessageText: +// +// The attribute cannot be read. +// +#define E_BLUETOOTH_ATT_READ_NOT_PERMITTED _HRESULT_TYPEDEF_(0x80650002L) + +// +// MessageId: E_BLUETOOTH_ATT_WRITE_NOT_PERMITTED +// +// MessageText: +// +// The attribute cannot be written. +// +#define E_BLUETOOTH_ATT_WRITE_NOT_PERMITTED _HRESULT_TYPEDEF_(0x80650003L) + +// +// MessageId: E_BLUETOOTH_ATT_INVALID_PDU +// +// MessageText: +// +// The attribute PDU was invalid. +// +#define E_BLUETOOTH_ATT_INVALID_PDU _HRESULT_TYPEDEF_(0x80650004L) + +// +// MessageId: E_BLUETOOTH_ATT_INSUFFICIENT_AUTHENTICATION +// +// MessageText: +// +// The attribute requires authentication before it can be read or written. +// +#define E_BLUETOOTH_ATT_INSUFFICIENT_AUTHENTICATION _HRESULT_TYPEDEF_(0x80650005L) + +// +// MessageId: E_BLUETOOTH_ATT_REQUEST_NOT_SUPPORTED +// +// MessageText: +// +// Attribute server does not support the request received from the client. +// +#define E_BLUETOOTH_ATT_REQUEST_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80650006L) + +// +// MessageId: E_BLUETOOTH_ATT_INVALID_OFFSET +// +// MessageText: +// +// Offset specified was past the end of the attribute. +// +#define E_BLUETOOTH_ATT_INVALID_OFFSET _HRESULT_TYPEDEF_(0x80650007L) + +// +// MessageId: E_BLUETOOTH_ATT_INSUFFICIENT_AUTHORIZATION +// +// MessageText: +// +// The attribute requires authorization before it can be read or written. +// +#define E_BLUETOOTH_ATT_INSUFFICIENT_AUTHORIZATION _HRESULT_TYPEDEF_(0x80650008L) + +// +// MessageId: E_BLUETOOTH_ATT_PREPARE_QUEUE_FULL +// +// MessageText: +// +// Too many prepare writes have been queued. +// +#define E_BLUETOOTH_ATT_PREPARE_QUEUE_FULL _HRESULT_TYPEDEF_(0x80650009L) + +// +// MessageId: E_BLUETOOTH_ATT_ATTRIBUTE_NOT_FOUND +// +// MessageText: +// +// No attribute found within the given attribute handle range. +// +#define E_BLUETOOTH_ATT_ATTRIBUTE_NOT_FOUND _HRESULT_TYPEDEF_(0x8065000AL) + +// +// MessageId: E_BLUETOOTH_ATT_ATTRIBUTE_NOT_LONG +// +// MessageText: +// +// The attribute cannot be read or written using the Read Blob Request. +// +#define E_BLUETOOTH_ATT_ATTRIBUTE_NOT_LONG _HRESULT_TYPEDEF_(0x8065000BL) + +// +// MessageId: E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE +// +// MessageText: +// +// The Encryption Key Size used for encrypting this link is insufficient. +// +#define E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE _HRESULT_TYPEDEF_(0x8065000CL) + +// +// MessageId: E_BLUETOOTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH +// +// MessageText: +// +// The attribute value length is invalid for the operation. +// +#define E_BLUETOOTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH _HRESULT_TYPEDEF_(0x8065000DL) + +// +// MessageId: E_BLUETOOTH_ATT_UNLIKELY +// +// MessageText: +// +// The attribute request that was requested has encountered an error that was unlikely, and therefore could not be completed as requested. +// +#define E_BLUETOOTH_ATT_UNLIKELY _HRESULT_TYPEDEF_(0x8065000EL) + +// +// MessageId: E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION +// +// MessageText: +// +// The attribute requires encryption before it can be read or written. +// +#define E_BLUETOOTH_ATT_INSUFFICIENT_ENCRYPTION _HRESULT_TYPEDEF_(0x8065000FL) + +// +// MessageId: E_BLUETOOTH_ATT_UNSUPPORTED_GROUP_TYPE +// +// MessageText: +// +// The attribute type is not a supported grouping attribute as defined by a higher layer specification. +// +#define E_BLUETOOTH_ATT_UNSUPPORTED_GROUP_TYPE _HRESULT_TYPEDEF_(0x80650010L) + +// +// MessageId: E_BLUETOOTH_ATT_INSUFFICIENT_RESOURCES +// +// MessageText: +// +// Insufficient Resources to complete the request. +// +#define E_BLUETOOTH_ATT_INSUFFICIENT_RESOURCES _HRESULT_TYPEDEF_(0x80650011L) + +// +// MessageId: E_BLUETOOTH_ATT_UNKNOWN_ERROR +// +// MessageText: +// +// An error that lies in the reserved range has been received. +// +#define E_BLUETOOTH_ATT_UNKNOWN_ERROR _HRESULT_TYPEDEF_(0x80651000L) + + +// +// Audio errors +// + +// +// MessageId: E_AUDIO_ENGINE_NODE_NOT_FOUND +// +// MessageText: +// +// PortCls could not find an audio engine node exposed by a miniport driver claiming support for IMiniportAudioEngineNode. +// +#define E_AUDIO_ENGINE_NODE_NOT_FOUND _HRESULT_TYPEDEF_(0x80660001L) + +// +// MessageId: E_HDAUDIO_EMPTY_CONNECTION_LIST +// +// MessageText: +// +// HD Audio widget encountered an unexpected empty connection list. +// +#define E_HDAUDIO_EMPTY_CONNECTION_LIST _HRESULT_TYPEDEF_(0x80660002L) + +// +// MessageId: E_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED +// +// MessageText: +// +// HD Audio widget does not support the connection list parameter. +// +#define E_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80660003L) + +// +// MessageId: E_HDAUDIO_NO_LOGICAL_DEVICES_CREATED +// +// MessageText: +// +// No HD Audio subdevices were successfully created. +// +#define E_HDAUDIO_NO_LOGICAL_DEVICES_CREATED _HRESULT_TYPEDEF_(0x80660004L) + +// +// MessageId: E_HDAUDIO_NULL_LINKED_LIST_ENTRY +// +// MessageText: +// +// An unexpected NULL pointer was encountered in a linked list. +// +#define E_HDAUDIO_NULL_LINKED_LIST_ENTRY _HRESULT_TYPEDEF_(0x80660005L) + +// +// MessageId: E_SOUNDWIRE_COMMAND_ABORTED +// +// MessageText: +// +// SoundWire command aborted. +// +#define E_SOUNDWIRE_COMMAND_ABORTED _HRESULT_TYPEDEF_(0x80660006L) + +// +// MessageId: E_SOUNDWIRE_COMMAND_IGNORED +// +// MessageText: +// +// SoundWire command ignored. +// +#define E_SOUNDWIRE_COMMAND_IGNORED _HRESULT_TYPEDEF_(0x80660007L) + +// +// MessageId: E_SOUNDWIRE_COMMAND_FAILED +// +// MessageText: +// +// SoundWire command failed. +// +#define E_SOUNDWIRE_COMMAND_FAILED _HRESULT_TYPEDEF_(0x80660008L) + +// +// StateRepository errors +// +// +// MessageId: STATEREPOSITORY_E_CONCURRENCY_LOCKING_FAILURE +// +// MessageText: +// +// Optimistic locking failure. Data cannot be updated if it has changed since it was read. +// +#define STATEREPOSITORY_E_CONCURRENCY_LOCKING_FAILURE _HRESULT_TYPEDEF_(0x80670001L) + +// +// MessageId: STATEREPOSITORY_E_STATEMENT_INPROGRESS +// +// MessageText: +// +// A prepared statement has been stepped at least once but not run to completion or reset. This may result in busy waits. +// +#define STATEREPOSITORY_E_STATEMENT_INPROGRESS _HRESULT_TYPEDEF_(0x80670002L) + +// +// MessageId: STATEREPOSITORY_E_CONFIGURATION_INVALID +// +// MessageText: +// +// The StateRepository configuration is not valid. +// +#define STATEREPOSITORY_E_CONFIGURATION_INVALID _HRESULT_TYPEDEF_(0x80670003L) + +// +// MessageId: STATEREPOSITORY_E_UNKNOWN_SCHEMA_VERSION +// +// MessageText: +// +// The StateRepository schema version is not known. +// +#define STATEREPOSITORY_E_UNKNOWN_SCHEMA_VERSION _HRESULT_TYPEDEF_(0x80670004L) + +// +// MessageId: STATEREPOSITORY_ERROR_DICTIONARY_CORRUPTED +// +// MessageText: +// +// A StateRepository dictionary is not valid. +// +#define STATEREPOSITORY_ERROR_DICTIONARY_CORRUPTED _HRESULT_TYPEDEF_(0x80670005L) + +// +// MessageId: STATEREPOSITORY_E_BLOCKED +// +// MessageText: +// +// The request failed because the StateRepository is actively blocking requests. +// +#define STATEREPOSITORY_E_BLOCKED _HRESULT_TYPEDEF_(0x80670006L) + +// +// MessageId: STATEREPOSITORY_E_BUSY_RETRY +// +// MessageText: +// +// The database file is locked. The request will be retried. +// +#define STATEREPOSITORY_E_BUSY_RETRY _HRESULT_TYPEDEF_(0x80670007L) + +// +// MessageId: STATEREPOSITORY_E_BUSY_RECOVERY_RETRY +// +// MessageText: +// +// The database file is locked because another process is busy recovering the database. The request will be retried. +// +#define STATEREPOSITORY_E_BUSY_RECOVERY_RETRY _HRESULT_TYPEDEF_(0x80670008L) + +// +// MessageId: STATEREPOSITORY_E_LOCKED_RETRY +// +// MessageText: +// +// A table in the database is locked. The request will be retried. +// +#define STATEREPOSITORY_E_LOCKED_RETRY _HRESULT_TYPEDEF_(0x80670009L) + +// +// MessageId: STATEREPOSITORY_E_LOCKED_SHAREDCACHE_RETRY +// +// MessageText: +// +// The shared cache for the database is locked by another connection. The request will be retried. +// +#define STATEREPOSITORY_E_LOCKED_SHAREDCACHE_RETRY _HRESULT_TYPEDEF_(0x8067000AL) + +// +// MessageId: STATEREPOSITORY_E_TRANSACTION_REQUIRED +// +// MessageText: +// +// A transaction is required to perform the request operation. +// +#define STATEREPOSITORY_E_TRANSACTION_REQUIRED _HRESULT_TYPEDEF_(0x8067000BL) + +// +// MessageId: STATEREPOSITORY_E_BUSY_TIMEOUT_EXCEEDED +// +// MessageText: +// +// The database file is locked. The request has exceeded the allowed threshold. +// +#define STATEREPOSITORY_E_BUSY_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000CL) + +// +// MessageId: STATEREPOSITORY_E_BUSY_RECOVERY_TIMEOUT_EXCEEDED +// +// MessageText: +// +// The database file is locked because another process is busy recovering the database. The request has exceeded the allowed threshold. +// +#define STATEREPOSITORY_E_BUSY_RECOVERY_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000DL) + +// +// MessageId: STATEREPOSITORY_E_LOCKED_TIMEOUT_EXCEEDED +// +// MessageText: +// +// A table in the database is locked. The request has exceeded the allowed threshold. +// +#define STATEREPOSITORY_E_LOCKED_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000EL) + +// +// MessageId: STATEREPOSITORY_E_LOCKED_SHAREDCACHE_TIMEOUT_EXCEEDED +// +// MessageText: +// +// The shared cache for the database is locked by another connection. The request has exceeded the allowed threshold. +// +#define STATEREPOSITORY_E_LOCKED_SHAREDCACHE_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000FL) + +// +// MessageId: STATEREPOSITORY_E_SERVICE_STOP_IN_PROGRESS +// +// MessageText: +// +// The StateRepository service Stop event is in progress. +// +#define STATEREPOSITORY_E_SERVICE_STOP_IN_PROGRESS _HRESULT_TYPEDEF_(0x80670010L) + +// +// MessageId: STATEREPOSTORY_E_NESTED_TRANSACTION_NOT_SUPPORTED +// +// MessageText: +// +// Nested transactions are not supported. +// +#define STATEREPOSTORY_E_NESTED_TRANSACTION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80670011L) + +// +// MessageId: STATEREPOSITORY_ERROR_CACHE_CORRUPTED +// +// MessageText: +// +// The StateRepository cache is not valid. +// +#define STATEREPOSITORY_ERROR_CACHE_CORRUPTED _HRESULT_TYPEDEF_(0x80670012L) + +// +// MessageId: STATEREPOSITORY_TRANSACTION_CALLER_ID_CHANGED +// +// MessageText: +// +// The transaction caller id has changed. +// +#define STATEREPOSITORY_TRANSACTION_CALLER_ID_CHANGED _HRESULT_TYPEDEF_(0x00670013L) + +// +// MessageId: STATEREPOSITORY_TRANSACTION_IN_PROGRESS +// +// MessageText: +// +// A transaction is in progress for the database connection. +// +#define STATEREPOSITORY_TRANSACTION_IN_PROGRESS _HRESULT_TYPEDEF_(0x80670014L) + +// +// MessageId: STATEREPOSITORY_E_CACHE_NOT_INIITALIZED +// +// MessageText: +// +// The StateRepository cache is not initialized. +// +#define STATEREPOSITORY_E_CACHE_NOT_INIITALIZED _HRESULT_TYPEDEF_(0x80670015L) + +// +// MessageId: STATEREPOSITORY_E_DEPENDENCY_NOT_RESOLVED +// +// MessageText: +// +// Package dependency criteria could not be resolved. +// +#define STATEREPOSITORY_E_DEPENDENCY_NOT_RESOLVED _HRESULT_TYPEDEF_(0x80670016L) + +// +// Spaceport errors +// +// Success +// +// MessageId: ERROR_SPACES_POOL_WAS_DELETED +// +// MessageText: +// +// The storage pool was deleted by the driver. The object cache should be updated. +// +#define ERROR_SPACES_POOL_WAS_DELETED _HRESULT_TYPEDEF_(0x00E70001L) + +// Errors +// +// MessageId: ERROR_SPACES_FAULT_DOMAIN_TYPE_INVALID +// +// MessageText: +// +// The specified fault domain type or combination of minimum / maximum fault domain type is not valid. +// +#define ERROR_SPACES_FAULT_DOMAIN_TYPE_INVALID _HRESULT_TYPEDEF_(0x80E70001L) + +// +// MessageId: ERROR_SPACES_INTERNAL_ERROR +// +// MessageText: +// +// A Storage Spaces internal error occurred. +// +#define ERROR_SPACES_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80E70002L) + +// +// MessageId: ERROR_SPACES_RESILIENCY_TYPE_INVALID +// +// MessageText: +// +// The specified resiliency type is not valid. +// +#define ERROR_SPACES_RESILIENCY_TYPE_INVALID _HRESULT_TYPEDEF_(0x80E70003L) + +// +// MessageId: ERROR_SPACES_DRIVE_SECTOR_SIZE_INVALID +// +// MessageText: +// +// The physical disk's sector size is not supported by the storage pool. +// +#define ERROR_SPACES_DRIVE_SECTOR_SIZE_INVALID _HRESULT_TYPEDEF_(0x80E70004L) + +// +// MessageId: ERROR_SPACES_DRIVE_REDUNDANCY_INVALID +// +// MessageText: +// +// The requested redundancy is outside of the supported range of values. +// +#define ERROR_SPACES_DRIVE_REDUNDANCY_INVALID _HRESULT_TYPEDEF_(0x80E70006L) + +// +// MessageId: ERROR_SPACES_NUMBER_OF_DATA_COPIES_INVALID +// +// MessageText: +// +// The number of data copies requested is outside of the supported range of values. +// +#define ERROR_SPACES_NUMBER_OF_DATA_COPIES_INVALID _HRESULT_TYPEDEF_(0x80E70007L) + +// +// MessageId: ERROR_SPACES_PARITY_LAYOUT_INVALID +// +// MessageText: +// +// The value for ParityLayout is outside of the supported range of values. +// +#define ERROR_SPACES_PARITY_LAYOUT_INVALID _HRESULT_TYPEDEF_(0x80E70008L) + +// +// MessageId: ERROR_SPACES_INTERLEAVE_LENGTH_INVALID +// +// MessageText: +// +// The value for interleave length is outside of the supported range of values or is not a power of 2. +// +#define ERROR_SPACES_INTERLEAVE_LENGTH_INVALID _HRESULT_TYPEDEF_(0x80E70009L) + +// +// MessageId: ERROR_SPACES_NUMBER_OF_COLUMNS_INVALID +// +// MessageText: +// +// The number of columns specified is outside of the supported range of values. +// +#define ERROR_SPACES_NUMBER_OF_COLUMNS_INVALID _HRESULT_TYPEDEF_(0x80E7000AL) + +// +// MessageId: ERROR_SPACES_NOT_ENOUGH_DRIVES +// +// MessageText: +// +// There were not enough physical disks to complete the requested operation. +// +#define ERROR_SPACES_NOT_ENOUGH_DRIVES _HRESULT_TYPEDEF_(0x80E7000BL) + +// +// MessageId: ERROR_SPACES_EXTENDED_ERROR +// +// MessageText: +// +// Extended error information is available. +// +#define ERROR_SPACES_EXTENDED_ERROR _HRESULT_TYPEDEF_(0x80E7000CL) + +// +// MessageId: ERROR_SPACES_PROVISIONING_TYPE_INVALID +// +// MessageText: +// +// The specified provisioning type is not valid. +// +#define ERROR_SPACES_PROVISIONING_TYPE_INVALID _HRESULT_TYPEDEF_(0x80E7000DL) + +// +// MessageId: ERROR_SPACES_ALLOCATION_SIZE_INVALID +// +// MessageText: +// +// The allocation size is outside of the supported range of values. +// +#define ERROR_SPACES_ALLOCATION_SIZE_INVALID _HRESULT_TYPEDEF_(0x80E7000EL) + +// +// MessageId: ERROR_SPACES_ENCLOSURE_AWARE_INVALID +// +// MessageText: +// +// Enclosure awareness is not supported for this virtual disk. +// +#define ERROR_SPACES_ENCLOSURE_AWARE_INVALID _HRESULT_TYPEDEF_(0x80E7000FL) + +// +// MessageId: ERROR_SPACES_WRITE_CACHE_SIZE_INVALID +// +// MessageText: +// +// The write cache size is outside of the supported range of values. +// +#define ERROR_SPACES_WRITE_CACHE_SIZE_INVALID _HRESULT_TYPEDEF_(0x80E70010L) + +// +// MessageId: ERROR_SPACES_NUMBER_OF_GROUPS_INVALID +// +// MessageText: +// +// The value for number of groups is outside of the supported range of values. +// +#define ERROR_SPACES_NUMBER_OF_GROUPS_INVALID _HRESULT_TYPEDEF_(0x80E70011L) + +// +// MessageId: ERROR_SPACES_DRIVE_OPERATIONAL_STATE_INVALID +// +// MessageText: +// +// The OperationalState of the physical disk is invalid for this operation. +// +#define ERROR_SPACES_DRIVE_OPERATIONAL_STATE_INVALID _HRESULT_TYPEDEF_(0x80E70012L) + +// +// MessageId: ERROR_SPACES_ENTRY_INCOMPLETE +// +// MessageText: +// +// The specified log entry is not complete. +// +#define ERROR_SPACES_ENTRY_INCOMPLETE _HRESULT_TYPEDEF_(0x80E70013L) + +// +// MessageId: ERROR_SPACES_ENTRY_INVALID +// +// MessageText: +// +// The specified log entry is not valid. +// +#define ERROR_SPACES_ENTRY_INVALID _HRESULT_TYPEDEF_(0x80E70014L) + +// +// MessageId: ERROR_SPACES_UPDATE_COLUMN_STATE +// +// MessageText: +// +// A column's state needs to be updated. +// +#define ERROR_SPACES_UPDATE_COLUMN_STATE _HRESULT_TYPEDEF_(0x80E70015L) + +// +// MessageId: ERROR_SPACES_MAP_REQUIRED +// +// MessageText: +// +// An extent needs to be allocated. +// +#define ERROR_SPACES_MAP_REQUIRED _HRESULT_TYPEDEF_(0x80E70016L) + +// +// MessageId: ERROR_SPACES_UNSUPPORTED_VERSION +// +// MessageText: +// +// The metadata version is unsupported. +// +#define ERROR_SPACES_UNSUPPORTED_VERSION _HRESULT_TYPEDEF_(0x80E70017L) + +// +// MessageId: ERROR_SPACES_CORRUPT_METADATA +// +// MessageText: +// +// The metadata read was corrupt. +// +#define ERROR_SPACES_CORRUPT_METADATA _HRESULT_TYPEDEF_(0x80E70018L) + +// +// MessageId: ERROR_SPACES_DRT_FULL +// +// MessageText: +// +// The DRT is full. +// +#define ERROR_SPACES_DRT_FULL _HRESULT_TYPEDEF_(0x80E70019L) + +// +// MessageId: ERROR_SPACES_INCONSISTENCY +// +// MessageText: +// +// An inconsistency was found. +// +#define ERROR_SPACES_INCONSISTENCY _HRESULT_TYPEDEF_(0x80E7001AL) + +// +// MessageId: ERROR_SPACES_LOG_NOT_READY +// +// MessageText: +// +// The log is not ready. +// +#define ERROR_SPACES_LOG_NOT_READY _HRESULT_TYPEDEF_(0x80E7001BL) + +// +// MessageId: ERROR_SPACES_NO_REDUNDANCY +// +// MessageText: +// +// No good copy of data was available. +// +#define ERROR_SPACES_NO_REDUNDANCY _HRESULT_TYPEDEF_(0x80E7001CL) + +// +// MessageId: ERROR_SPACES_DRIVE_NOT_READY +// +// MessageText: +// +// The drive is not ready. +// +#define ERROR_SPACES_DRIVE_NOT_READY _HRESULT_TYPEDEF_(0x80E7001DL) + +// +// MessageId: ERROR_SPACES_DRIVE_SPLIT +// +// MessageText: +// +// The data on this drive is stale. +// +#define ERROR_SPACES_DRIVE_SPLIT _HRESULT_TYPEDEF_(0x80E7001EL) + +// +// MessageId: ERROR_SPACES_DRIVE_LOST_DATA +// +// MessageText: +// +// The data on this drive has been lost. +// +#define ERROR_SPACES_DRIVE_LOST_DATA _HRESULT_TYPEDEF_(0x80E7001FL) + +// +// MessageId: ERROR_SPACES_MARK_DIRTY +// +// MessageText: +// +// A slab needs to be marked dirty. +// +#define ERROR_SPACES_MARK_DIRTY _HRESULT_TYPEDEF_(0x80E70020L) + +// +// MessageId: ERROR_SPACES_FLUSH_METADATA +// +// MessageText: +// +// The cache metadata needs to be written and flushed. +// +#define ERROR_SPACES_FLUSH_METADATA _HRESULT_TYPEDEF_(0x80E70025L) + +// +// MessageId: ERROR_SPACES_CACHE_FULL +// +// MessageText: +// +// The cache is full. +// +#define ERROR_SPACES_CACHE_FULL _HRESULT_TYPEDEF_(0x80E70026L) + +// +// MessageId: ERROR_SPACES_REPAIR_IN_PROGRESS +// +// MessageText: +// +// Repair is in progress. +// +#define ERROR_SPACES_REPAIR_IN_PROGRESS _HRESULT_TYPEDEF_(0x80E70027L) + +// +// Volsnap errors +// +// Success +// +// MessageId: ERROR_VOLSNAP_BOOTFILE_NOT_VALID +// +// MessageText: +// +// The bootfile is too small to support persistent snapshots. +// +#define ERROR_VOLSNAP_BOOTFILE_NOT_VALID _HRESULT_TYPEDEF_(0x80820001L) + +// +// MessageId: ERROR_VOLSNAP_ACTIVATION_TIMEOUT +// +// MessageText: +// +// Activation of persistent snapshots on this volume took longer than was allowed. +// +#define ERROR_VOLSNAP_ACTIVATION_TIMEOUT _HRESULT_TYPEDEF_(0x80820002L) + +// +// MessageId: ERROR_VOLSNAP_NO_BYPASSIO_WITH_SNAPSHOT +// +// MessageText: +// +// BypassIO cannot be enabled while a volume snapshot exists. +// +#define ERROR_VOLSNAP_NO_BYPASSIO_WITH_SNAPSHOT _HRESULT_TYPEDEF_(0x80820003L) + +// +// Tiering errors +// +// Errors +// +// MessageId: ERROR_TIERING_NOT_SUPPORTED_ON_VOLUME +// +// MessageText: +// +// The specified volume does not support storage tiers. +// +#define ERROR_TIERING_NOT_SUPPORTED_ON_VOLUME _HRESULT_TYPEDEF_(0x80830001L) + +// +// MessageId: ERROR_TIERING_VOLUME_DISMOUNT_IN_PROGRESS +// +// MessageText: +// +// The Storage Tiers Management service detected that the specified volume is in the process of being dismounted. +// +#define ERROR_TIERING_VOLUME_DISMOUNT_IN_PROGRESS _HRESULT_TYPEDEF_(0x80830002L) + +// +// MessageId: ERROR_TIERING_STORAGE_TIER_NOT_FOUND +// +// MessageText: +// +// The specified storage tier could not be found on the volume. Confirm that the storage tier name is valid. +// +#define ERROR_TIERING_STORAGE_TIER_NOT_FOUND _HRESULT_TYPEDEF_(0x80830003L) + +// +// MessageId: ERROR_TIERING_INVALID_FILE_ID +// +// MessageText: +// +// The file identifier specified is not valid on the volume. +// +#define ERROR_TIERING_INVALID_FILE_ID _HRESULT_TYPEDEF_(0x80830004L) + +// +// MessageId: ERROR_TIERING_WRONG_CLUSTER_NODE +// +// MessageText: +// +// Storage tier operations must be called on the clustering node that owns the metadata volume. +// +#define ERROR_TIERING_WRONG_CLUSTER_NODE _HRESULT_TYPEDEF_(0x80830005L) + +// +// MessageId: ERROR_TIERING_ALREADY_PROCESSING +// +// MessageText: +// +// The Storage Tiers Management service is already optimizing the storage tiers on the specified volume. +// +#define ERROR_TIERING_ALREADY_PROCESSING _HRESULT_TYPEDEF_(0x80830006L) + +// +// MessageId: ERROR_TIERING_CANNOT_PIN_OBJECT +// +// MessageText: +// +// The requested object type cannot be assigned to a storage tier. +// +#define ERROR_TIERING_CANNOT_PIN_OBJECT _HRESULT_TYPEDEF_(0x80830007L) + +// +// MessageId: ERROR_TIERING_FILE_IS_NOT_PINNED +// +// MessageText: +// +// The requested file is not pinned to a tier. +// +#define ERROR_TIERING_FILE_IS_NOT_PINNED _HRESULT_TYPEDEF_(0x80830008L) + +// +// MessageId: ERROR_NOT_A_TIERED_VOLUME +// +// MessageText: +// +// The volume is not a tiered volume. +// +#define ERROR_NOT_A_TIERED_VOLUME _HRESULT_TYPEDEF_(0x80830009L) + +// +// MessageId: ERROR_ATTRIBUTE_NOT_PRESENT +// +// MessageText: +// +// The requested attribute is not present on the specified file or directory. +// +#define ERROR_ATTRIBUTE_NOT_PRESENT _HRESULT_TYPEDEF_(0x8083000AL) + +// +// Embedded Security Core +// +// Reserved id values 0x0001 - 0x00FF +// 0x8xxx +// 0x4xxx +// +// MessageId: ERROR_SECCORE_INVALID_COMMAND +// +// MessageText: +// +// The command was not recognized by the security core +// +#define ERROR_SECCORE_INVALID_COMMAND _HRESULT_TYPEDEF_(0xC0E80000L) + +// +// Clip modern app and windows licensing error messages. +// +// +// MessageId: ERROR_NO_APPLICABLE_APP_LICENSES_FOUND +// +// MessageText: +// +// No applicable app licenses found. +// +#define ERROR_NO_APPLICABLE_APP_LICENSES_FOUND _HRESULT_TYPEDEF_(0xC0EA0001L) + +// +// MessageId: ERROR_CLIP_LICENSE_NOT_FOUND +// +// MessageText: +// +// CLiP license not found. +// +#define ERROR_CLIP_LICENSE_NOT_FOUND _HRESULT_TYPEDEF_(0xC0EA0002L) + +// +// MessageId: ERROR_CLIP_DEVICE_LICENSE_MISSING +// +// MessageText: +// +// CLiP device license not found. +// +#define ERROR_CLIP_DEVICE_LICENSE_MISSING _HRESULT_TYPEDEF_(0xC0EA0003L) + +// +// MessageId: ERROR_CLIP_LICENSE_INVALID_SIGNATURE +// +// MessageText: +// +// CLiP license has an invalid signature. +// +#define ERROR_CLIP_LICENSE_INVALID_SIGNATURE _HRESULT_TYPEDEF_(0xC0EA0004L) + +// +// MessageId: ERROR_CLIP_KEYHOLDER_LICENSE_MISSING_OR_INVALID +// +// MessageText: +// +// CLiP keyholder license is invalid or missing. +// +#define ERROR_CLIP_KEYHOLDER_LICENSE_MISSING_OR_INVALID _HRESULT_TYPEDEF_(0xC0EA0005L) + +// +// MessageId: ERROR_CLIP_LICENSE_EXPIRED +// +// MessageText: +// +// CLiP license has expired. +// +#define ERROR_CLIP_LICENSE_EXPIRED _HRESULT_TYPEDEF_(0xC0EA0006L) + +// +// MessageId: ERROR_CLIP_LICENSE_SIGNED_BY_UNKNOWN_SOURCE +// +// MessageText: +// +// CLiP license is signed by an unknown source. +// +#define ERROR_CLIP_LICENSE_SIGNED_BY_UNKNOWN_SOURCE _HRESULT_TYPEDEF_(0xC0EA0007L) + +// +// MessageId: ERROR_CLIP_LICENSE_NOT_SIGNED +// +// MessageText: +// +// CLiP license is not signed. +// +#define ERROR_CLIP_LICENSE_NOT_SIGNED _HRESULT_TYPEDEF_(0xC0EA0008L) + +// +// MessageId: ERROR_CLIP_LICENSE_HARDWARE_ID_OUT_OF_TOLERANCE +// +// MessageText: +// +// CLiP license hardware ID is out of tolerance. +// +#define ERROR_CLIP_LICENSE_HARDWARE_ID_OUT_OF_TOLERANCE _HRESULT_TYPEDEF_(0xC0EA0009L) + +// +// MessageId: ERROR_CLIP_LICENSE_DEVICE_ID_MISMATCH +// +// MessageText: +// +// CLiP license device ID does not match the device ID in the bound device license. +// +#define ERROR_CLIP_LICENSE_DEVICE_ID_MISMATCH _HRESULT_TYPEDEF_(0xC0EA000AL) + +// +// =============================== +// Facility Direct* Error Messages +// =============================== +// +// + +// +// DXGI status (success) codes +// + +// +// MessageId: DXGI_STATUS_OCCLUDED +// +// MessageText: +// +// The Present operation was invisible to the user. +// +#define DXGI_STATUS_OCCLUDED _HRESULT_TYPEDEF_(0x087A0001L) + +// +// MessageId: DXGI_STATUS_CLIPPED +// +// MessageText: +// +// The Present operation was partially invisible to the user. +// +#define DXGI_STATUS_CLIPPED _HRESULT_TYPEDEF_(0x087A0002L) + +// +// MessageId: DXGI_STATUS_NO_REDIRECTION +// +// MessageText: +// +// The driver is requesting that the DXGI runtime not use shared resources to communicate with the Desktop Window Manager. +// +#define DXGI_STATUS_NO_REDIRECTION _HRESULT_TYPEDEF_(0x087A0004L) + +// +// MessageId: DXGI_STATUS_NO_DESKTOP_ACCESS +// +// MessageText: +// +// The Present operation was not visible because the Windows session has switched to another desktop (for example, ctrl-alt-del). +// +#define DXGI_STATUS_NO_DESKTOP_ACCESS _HRESULT_TYPEDEF_(0x087A0005L) + +// +// MessageId: DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE +// +// MessageText: +// +// The Present operation was not visible because the target monitor was being used for some other purpose. +// +#define DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0x087A0006L) + +// +// MessageId: DXGI_STATUS_MODE_CHANGED +// +// MessageText: +// +// The Present operation was not visible because the display mode changed. DXGI will have re-attempted the presentation. +// +#define DXGI_STATUS_MODE_CHANGED _HRESULT_TYPEDEF_(0x087A0007L) + +// +// MessageId: DXGI_STATUS_MODE_CHANGE_IN_PROGRESS +// +// MessageText: +// +// The Present operation was not visible because another Direct3D device was attempting to take fullscreen mode at the time. +// +#define DXGI_STATUS_MODE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0x087A0008L) + + +// +// DXGI error codes +// + +// +// MessageId: DXGI_ERROR_INVALID_CALL +// +// MessageText: +// +// The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect. +// Enable the D3D debug layer in order to see details via debug messages. +// +#define DXGI_ERROR_INVALID_CALL _HRESULT_TYPEDEF_(0x887A0001L) + +// +// MessageId: DXGI_ERROR_NOT_FOUND +// +// MessageText: +// +// The object was not found. If calling IDXGIFactory::EnumAdaptes, there is no adapter with the specified ordinal. +// +#define DXGI_ERROR_NOT_FOUND _HRESULT_TYPEDEF_(0x887A0002L) + +// +// MessageId: DXGI_ERROR_MORE_DATA +// +// MessageText: +// +// The caller did not supply a sufficiently large buffer. +// +#define DXGI_ERROR_MORE_DATA _HRESULT_TYPEDEF_(0x887A0003L) + +// +// MessageId: DXGI_ERROR_UNSUPPORTED +// +// MessageText: +// +// The specified device interface or feature level is not supported on this system. +// +#define DXGI_ERROR_UNSUPPORTED _HRESULT_TYPEDEF_(0x887A0004L) + +// +// MessageId: DXGI_ERROR_DEVICE_REMOVED +// +// MessageText: +// +// The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. +// +#define DXGI_ERROR_DEVICE_REMOVED _HRESULT_TYPEDEF_(0x887A0005L) + +// +// MessageId: DXGI_ERROR_DEVICE_HUNG +// +// MessageText: +// +// The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. +// +#define DXGI_ERROR_DEVICE_HUNG _HRESULT_TYPEDEF_(0x887A0006L) + +// +// MessageId: DXGI_ERROR_DEVICE_RESET +// +// MessageText: +// +// The GPU will not respond to more commands, most likely because some other application submitted invalid commands. +// The calling application should re-create the device and continue. +// +#define DXGI_ERROR_DEVICE_RESET _HRESULT_TYPEDEF_(0x887A0007L) + +// +// MessageId: DXGI_ERROR_WAS_STILL_DRAWING +// +// MessageText: +// +// The GPU was busy at the moment when the call was made, and the call was neither executed nor scheduled. +// +#define DXGI_ERROR_WAS_STILL_DRAWING _HRESULT_TYPEDEF_(0x887A000AL) + +// +// MessageId: DXGI_ERROR_FRAME_STATISTICS_DISJOINT +// +// MessageText: +// +// An event (such as power cycle) interrupted the gathering of presentation statistics. Any previous statistics should be +// considered invalid. +// +#define DXGI_ERROR_FRAME_STATISTICS_DISJOINT _HRESULT_TYPEDEF_(0x887A000BL) + +// +// MessageId: DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE +// +// MessageText: +// +// Fullscreen mode could not be achieved because the specified output was already in use. +// +#define DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0x887A000CL) + +// +// MessageId: DXGI_ERROR_DRIVER_INTERNAL_ERROR +// +// MessageText: +// +// An internal issue prevented the driver from carrying out the specified operation. The driver's state is probably suspect, +// and the application should not continue. +// +#define DXGI_ERROR_DRIVER_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x887A0020L) + +// +// MessageId: DXGI_ERROR_NONEXCLUSIVE +// +// MessageText: +// +// A global counter resource was in use, and the specified counter cannot be used by this Direct3D device at this time. +// +#define DXGI_ERROR_NONEXCLUSIVE _HRESULT_TYPEDEF_(0x887A0021L) + +// +// MessageId: DXGI_ERROR_NOT_CURRENTLY_AVAILABLE +// +// MessageText: +// +// A resource is not available at the time of the call, but may become available later. +// +#define DXGI_ERROR_NOT_CURRENTLY_AVAILABLE _HRESULT_TYPEDEF_(0x887A0022L) + +// +// MessageId: DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED +// +// MessageText: +// +// The application's remote device has been removed due to session disconnect or network disconnect. +// The application should call IDXGIFactory1::IsCurrent to find out when the remote device becomes available again. +// +#define DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED _HRESULT_TYPEDEF_(0x887A0023L) + +// +// MessageId: DXGI_ERROR_REMOTE_OUTOFMEMORY +// +// MessageText: +// +// The device has been removed during a remote session because the remote computer ran out of memory. +// +#define DXGI_ERROR_REMOTE_OUTOFMEMORY _HRESULT_TYPEDEF_(0x887A0024L) + +// +// MessageId: DXGI_ERROR_ACCESS_LOST +// +// MessageText: +// +// The keyed mutex was abandoned. +// +#define DXGI_ERROR_ACCESS_LOST _HRESULT_TYPEDEF_(0x887A0026L) + +// +// MessageId: DXGI_ERROR_WAIT_TIMEOUT +// +// MessageText: +// +// The timeout value has elapsed and the resource is not yet available. +// +#define DXGI_ERROR_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x887A0027L) + +// +// MessageId: DXGI_ERROR_SESSION_DISCONNECTED +// +// MessageText: +// +// The output duplication has been turned off because the Windows session ended or was disconnected. +// This happens when a remote user disconnects, or when "switch user" is used locally. +// +#define DXGI_ERROR_SESSION_DISCONNECTED _HRESULT_TYPEDEF_(0x887A0028L) + +// +// MessageId: DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE +// +// MessageText: +// +// The DXGI output (monitor) to which the swapchain content was restricted, has been disconnected or changed. +// +#define DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE _HRESULT_TYPEDEF_(0x887A0029L) + +// +// MessageId: DXGI_ERROR_CANNOT_PROTECT_CONTENT +// +// MessageText: +// +// DXGI is unable to provide content protection on the swapchain. This is typically caused by an older driver, +// or by the application using a swapchain that is incompatible with content protection. +// +#define DXGI_ERROR_CANNOT_PROTECT_CONTENT _HRESULT_TYPEDEF_(0x887A002AL) + +// +// MessageId: DXGI_ERROR_ACCESS_DENIED +// +// MessageText: +// +// The application is trying to use a resource to which it does not have the required access privileges. +// This is most commonly caused by writing to a shared resource with read-only access. +// +#define DXGI_ERROR_ACCESS_DENIED _HRESULT_TYPEDEF_(0x887A002BL) + +// +// MessageId: DXGI_ERROR_NAME_ALREADY_EXISTS +// +// MessageText: +// +// The application is trying to create a shared handle using a name that is already associated with some other resource. +// +#define DXGI_ERROR_NAME_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x887A002CL) + +// +// MessageId: DXGI_ERROR_SDK_COMPONENT_MISSING +// +// MessageText: +// +// The application requested an operation that depends on an SDK component that is missing or mismatched. +// +#define DXGI_ERROR_SDK_COMPONENT_MISSING _HRESULT_TYPEDEF_(0x887A002DL) + +// +// MessageId: DXGI_ERROR_NOT_CURRENT +// +// MessageText: +// +// The DXGI objects that the application has created are no longer current & need to be recreated for this operation to be performed. +// +#define DXGI_ERROR_NOT_CURRENT _HRESULT_TYPEDEF_(0x887A002EL) + +// +// MessageId: DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY +// +// MessageText: +// +// Insufficient HW protected memory exits for proper function. +// +#define DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY _HRESULT_TYPEDEF_(0x887A0030L) + +// +// MessageId: DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION +// +// MessageText: +// +// Creating this device would violate the process's dynamic code policy. +// +#define DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION _HRESULT_TYPEDEF_(0x887A0031L) + +// +// MessageId: DXGI_ERROR_NON_COMPOSITED_UI +// +// MessageText: +// +// The operation failed because the compositor is not in control of the output. +// +#define DXGI_ERROR_NON_COMPOSITED_UI _HRESULT_TYPEDEF_(0x887A0032L) + + +// +// DXCore error codes +// + +// +// MessageId: DXCORE_ERROR_EVENT_NOT_UNREGISTERED +// +// MessageText: +// +// The application failed to unregister from an event it registered for. +// +#define DXCORE_ERROR_EVENT_NOT_UNREGISTERED _HRESULT_TYPEDEF_(0x88800001L) + + +// +// Presentation error codes +// + +// +// MessageId: PRESENTATION_ERROR_LOST +// +// MessageText: +// +// The presentation manager has been lost and can no longer be used. The application should destroy this presentation manager and create a new presentation manager to use. +// +#define PRESENTATION_ERROR_LOST _HRESULT_TYPEDEF_(0x88810001L) + + +// +// DXGI errors that are internal to the Desktop Window Manager +// + +// +// MessageId: DXGI_STATUS_UNOCCLUDED +// +// MessageText: +// +// The swapchain has become unoccluded. +// +#define DXGI_STATUS_UNOCCLUDED _HRESULT_TYPEDEF_(0x087A0009L) + +// +// MessageId: DXGI_STATUS_DDA_WAS_STILL_DRAWING +// +// MessageText: +// +// The adapter did not have access to the required resources to complete the Desktop Duplication Present() call, the Present() call needs to be made again +// +#define DXGI_STATUS_DDA_WAS_STILL_DRAWING _HRESULT_TYPEDEF_(0x087A000AL) + +// +// MessageId: DXGI_ERROR_MODE_CHANGE_IN_PROGRESS +// +// MessageText: +// +// An on-going mode change prevented completion of the call. The call may succeed if attempted later. +// +#define DXGI_ERROR_MODE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0x887A0025L) + +// +// MessageId: DXGI_STATUS_PRESENT_REQUIRED +// +// MessageText: +// +// The present succeeded but the caller should present again on the next V-sync, even if there are no changes to the content. +// +#define DXGI_STATUS_PRESENT_REQUIRED _HRESULT_TYPEDEF_(0x087A002FL) + + +// +// DXGI errors that are produced by the D3D Shader Cache component +// + +// +// MessageId: DXGI_ERROR_CACHE_CORRUPT +// +// MessageText: +// +// The cache is corrupt and either could not be opened or could not be reset. +// +#define DXGI_ERROR_CACHE_CORRUPT _HRESULT_TYPEDEF_(0x887A0033L) + +// +// MessageId: DXGI_ERROR_CACHE_FULL +// +// MessageText: +// +// This entry would cause the cache to exceed its quota. On a load operation, this may indicate exceeding the maximum in-memory size. +// +#define DXGI_ERROR_CACHE_FULL _HRESULT_TYPEDEF_(0x887A0034L) + +// +// MessageId: DXGI_ERROR_CACHE_HASH_COLLISION +// +// MessageText: +// +// A cache entry was found, but the key provided does not match the key stored in the entry. +// +#define DXGI_ERROR_CACHE_HASH_COLLISION _HRESULT_TYPEDEF_(0x887A0035L) + +// +// MessageId: DXGI_ERROR_ALREADY_EXISTS +// +// MessageText: +// +// The desired element already exists. +// +#define DXGI_ERROR_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x887A0036L) + + +// +// DXGI errors that are produced by the DDisplay +// + +// +// MessageId: DXGI_ERROR_MPO_UNPINNED +// +// MessageText: +// +// The allocation of the MPO plane has been unpinned +// +#define DXGI_ERROR_MPO_UNPINNED _HRESULT_TYPEDEF_(0x887A0064L) + +// +// MessageId: DXGI_ERROR_SETDISPLAYMODE_REQUIRED +// +// MessageText: +// +// SetDisplayMode is required before present can succeed. +// +#define DXGI_ERROR_SETDISPLAYMODE_REQUIRED _HRESULT_TYPEDEF_(0x887A0065L) + + +// +// DXGI DDI +// + +// +// MessageId: DXGI_DDI_ERR_WASSTILLDRAWING +// +// MessageText: +// +// The GPU was busy when the operation was requested. +// +#define DXGI_DDI_ERR_WASSTILLDRAWING _HRESULT_TYPEDEF_(0x887B0001L) + +// +// MessageId: DXGI_DDI_ERR_UNSUPPORTED +// +// MessageText: +// +// The driver has rejected the creation of this resource. +// +#define DXGI_DDI_ERR_UNSUPPORTED _HRESULT_TYPEDEF_(0x887B0002L) + +// +// MessageId: DXGI_DDI_ERR_NONEXCLUSIVE +// +// MessageText: +// +// The GPU counter was in use by another process or d3d device when application requested access to it. +// +#define DXGI_DDI_ERR_NONEXCLUSIVE _HRESULT_TYPEDEF_(0x887B0003L) + + +// +// Direct3D10 +// + +// +// MessageId: D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS +// +// MessageText: +// +// The application has exceeded the maximum number of unique state objects per Direct3D device. +// The limit is 4096 for feature levels up to 11.1. +// +#define D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS _HRESULT_TYPEDEF_(0x88790001L) + +// +// MessageId: D3D10_ERROR_FILE_NOT_FOUND +// +// MessageText: +// +// The specified file was not found. +// +#define D3D10_ERROR_FILE_NOT_FOUND _HRESULT_TYPEDEF_(0x88790002L) + + +// +// Direct3D11 +// + +// +// MessageId: D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS +// +// MessageText: +// +// The application has exceeded the maximum number of unique state objects per Direct3D device. +// The limit is 4096 for feature levels up to 11.1. +// +#define D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS _HRESULT_TYPEDEF_(0x887C0001L) + +// +// MessageId: D3D11_ERROR_FILE_NOT_FOUND +// +// MessageText: +// +// The specified file was not found. +// +#define D3D11_ERROR_FILE_NOT_FOUND _HRESULT_TYPEDEF_(0x887C0002L) + +// +// MessageId: D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS +// +// MessageText: +// +// The application has exceeded the maximum number of unique view objects per Direct3D device. +// The limit is 2^20 for feature levels up to 11.1. +// +#define D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS _HRESULT_TYPEDEF_(0x887C0003L) + +// +// MessageId: D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD +// +// MessageText: +// +// The application's first call per command list to Map on a deferred context did not use D3D11_MAP_WRITE_DISCARD. +// +#define D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD _HRESULT_TYPEDEF_(0x887C0004L) + + +// +// Direct3D12 +// + +// +// MessageId: D3D12_ERROR_ADAPTER_NOT_FOUND +// +// MessageText: +// +// The blob provided does not match the adapter that the device was created on. +// +#define D3D12_ERROR_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x887E0001L) + +// +// MessageId: D3D12_ERROR_DRIVER_VERSION_MISMATCH +// +// MessageText: +// +// The blob provided was created for a different version of the driver, and must be re-created. +// +#define D3D12_ERROR_DRIVER_VERSION_MISMATCH _HRESULT_TYPEDEF_(0x887E0002L) + +// +// MessageId: D3D12_ERROR_INVALID_REDIST +// +// MessageText: +// +// The D3D12 SDK version configuration of the host exe is invalid. +// +#define D3D12_ERROR_INVALID_REDIST _HRESULT_TYPEDEF_(0x887E0003L) + + +// +// Direct2D +// + +// +// MessageId: D2DERR_WRONG_STATE +// +// MessageText: +// +// The object was not in the correct state to process the method. +// +#define D2DERR_WRONG_STATE _HRESULT_TYPEDEF_(0x88990001L) + +// +// MessageId: D2DERR_NOT_INITIALIZED +// +// MessageText: +// +// The object has not yet been initialized. +// +#define D2DERR_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x88990002L) + +// +// MessageId: D2DERR_UNSUPPORTED_OPERATION +// +// MessageText: +// +// The requested operation is not supported. +// +#define D2DERR_UNSUPPORTED_OPERATION _HRESULT_TYPEDEF_(0x88990003L) + +// +// MessageId: D2DERR_SCANNER_FAILED +// +// MessageText: +// +// The geometry scanner failed to process the data. +// +#define D2DERR_SCANNER_FAILED _HRESULT_TYPEDEF_(0x88990004L) + +// +// MessageId: D2DERR_SCREEN_ACCESS_DENIED +// +// MessageText: +// +// Direct2D could not access the screen. +// +#define D2DERR_SCREEN_ACCESS_DENIED _HRESULT_TYPEDEF_(0x88990005L) + +// +// MessageId: D2DERR_DISPLAY_STATE_INVALID +// +// MessageText: +// +// A valid display state could not be determined. +// +#define D2DERR_DISPLAY_STATE_INVALID _HRESULT_TYPEDEF_(0x88990006L) + +// +// MessageId: D2DERR_ZERO_VECTOR +// +// MessageText: +// +// The supplied vector is zero. +// +#define D2DERR_ZERO_VECTOR _HRESULT_TYPEDEF_(0x88990007L) + +// +// MessageId: D2DERR_INTERNAL_ERROR +// +// MessageText: +// +// An internal error (Direct2D bug) occurred. On checked builds, we would assert. The application should close this instance of Direct2D and should consider restarting its process. +// +#define D2DERR_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x88990008L) + +// +// MessageId: D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED +// +// MessageText: +// +// The display format Direct2D needs to render is not supported by the hardware device. +// +#define D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x88990009L) + +// +// MessageId: D2DERR_INVALID_CALL +// +// MessageText: +// +// A call to this method is invalid. +// +#define D2DERR_INVALID_CALL _HRESULT_TYPEDEF_(0x8899000AL) + +// +// MessageId: D2DERR_NO_HARDWARE_DEVICE +// +// MessageText: +// +// No hardware rendering device is available for this operation. +// +#define D2DERR_NO_HARDWARE_DEVICE _HRESULT_TYPEDEF_(0x8899000BL) + +// +// MessageId: D2DERR_RECREATE_TARGET +// +// MessageText: +// +// There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present. +// +#define D2DERR_RECREATE_TARGET _HRESULT_TYPEDEF_(0x8899000CL) + +// +// MessageId: D2DERR_TOO_MANY_SHADER_ELEMENTS +// +// MessageText: +// +// Shader construction failed because it was too complex. +// +#define D2DERR_TOO_MANY_SHADER_ELEMENTS _HRESULT_TYPEDEF_(0x8899000DL) + +// +// MessageId: D2DERR_SHADER_COMPILE_FAILED +// +// MessageText: +// +// Shader compilation failed. +// +#define D2DERR_SHADER_COMPILE_FAILED _HRESULT_TYPEDEF_(0x8899000EL) + +// +// MessageId: D2DERR_MAX_TEXTURE_SIZE_EXCEEDED +// +// MessageText: +// +// Requested DirectX surface size exceeded maximum texture size. +// +#define D2DERR_MAX_TEXTURE_SIZE_EXCEEDED _HRESULT_TYPEDEF_(0x8899000FL) + +// +// MessageId: D2DERR_UNSUPPORTED_VERSION +// +// MessageText: +// +// The requested Direct2D version is not supported. +// +#define D2DERR_UNSUPPORTED_VERSION _HRESULT_TYPEDEF_(0x88990010L) + +// +// MessageId: D2DERR_BAD_NUMBER +// +// MessageText: +// +// Invalid number. +// +#define D2DERR_BAD_NUMBER _HRESULT_TYPEDEF_(0x88990011L) + +// +// MessageId: D2DERR_WRONG_FACTORY +// +// MessageText: +// +// Objects used together must be created from the same factory instance. +// +#define D2DERR_WRONG_FACTORY _HRESULT_TYPEDEF_(0x88990012L) + +// +// MessageId: D2DERR_LAYER_ALREADY_IN_USE +// +// MessageText: +// +// A layer resource can only be in use once at any point in time. +// +#define D2DERR_LAYER_ALREADY_IN_USE _HRESULT_TYPEDEF_(0x88990013L) + +// +// MessageId: D2DERR_POP_CALL_DID_NOT_MATCH_PUSH +// +// MessageText: +// +// The pop call did not match the corresponding push call. +// +#define D2DERR_POP_CALL_DID_NOT_MATCH_PUSH _HRESULT_TYPEDEF_(0x88990014L) + +// +// MessageId: D2DERR_WRONG_RESOURCE_DOMAIN +// +// MessageText: +// +// The resource was realized on the wrong render target. +// +#define D2DERR_WRONG_RESOURCE_DOMAIN _HRESULT_TYPEDEF_(0x88990015L) + +// +// MessageId: D2DERR_PUSH_POP_UNBALANCED +// +// MessageText: +// +// The push and pop calls were unbalanced. +// +#define D2DERR_PUSH_POP_UNBALANCED _HRESULT_TYPEDEF_(0x88990016L) + +// +// MessageId: D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT +// +// MessageText: +// +// Attempt to copy from a render target while a layer or clip rect is applied. +// +#define D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT _HRESULT_TYPEDEF_(0x88990017L) + +// +// MessageId: D2DERR_INCOMPATIBLE_BRUSH_TYPES +// +// MessageText: +// +// The brush types are incompatible for the call. +// +#define D2DERR_INCOMPATIBLE_BRUSH_TYPES _HRESULT_TYPEDEF_(0x88990018L) + +// +// MessageId: D2DERR_WIN32_ERROR +// +// MessageText: +// +// An unknown win32 failure occurred. +// +#define D2DERR_WIN32_ERROR _HRESULT_TYPEDEF_(0x88990019L) + +// +// MessageId: D2DERR_TARGET_NOT_GDI_COMPATIBLE +// +// MessageText: +// +// The render target is not compatible with GDI. +// +#define D2DERR_TARGET_NOT_GDI_COMPATIBLE _HRESULT_TYPEDEF_(0x8899001AL) + +// +// MessageId: D2DERR_TEXT_EFFECT_IS_WRONG_TYPE +// +// MessageText: +// +// A text client drawing effect object is of the wrong type. +// +#define D2DERR_TEXT_EFFECT_IS_WRONG_TYPE _HRESULT_TYPEDEF_(0x8899001BL) + +// +// MessageId: D2DERR_TEXT_RENDERER_NOT_RELEASED +// +// MessageText: +// +// The application is holding a reference to the IDWriteTextRenderer interface after the corresponding DrawText or DrawTextLayout call has returned. The IDWriteTextRenderer instance will be invalid. +// +#define D2DERR_TEXT_RENDERER_NOT_RELEASED _HRESULT_TYPEDEF_(0x8899001CL) + +// +// MessageId: D2DERR_EXCEEDS_MAX_BITMAP_SIZE +// +// MessageText: +// +// The requested size is larger than the guaranteed supported texture size at the Direct3D device's current feature level. +// +#define D2DERR_EXCEEDS_MAX_BITMAP_SIZE _HRESULT_TYPEDEF_(0x8899001DL) + +// +// MessageId: D2DERR_INVALID_GRAPH_CONFIGURATION +// +// MessageText: +// +// There was a configuration error in the graph. +// +#define D2DERR_INVALID_GRAPH_CONFIGURATION _HRESULT_TYPEDEF_(0x8899001EL) + +// +// MessageId: D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION +// +// MessageText: +// +// There was a internal configuration error in the graph. +// +#define D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION _HRESULT_TYPEDEF_(0x8899001FL) + +// +// MessageId: D2DERR_CYCLIC_GRAPH +// +// MessageText: +// +// There was a cycle in the graph. +// +#define D2DERR_CYCLIC_GRAPH _HRESULT_TYPEDEF_(0x88990020L) + +// +// MessageId: D2DERR_BITMAP_CANNOT_DRAW +// +// MessageText: +// +// Cannot draw with a bitmap that has the D2D1_BITMAP_OPTIONS_CANNOT_DRAW option. +// +#define D2DERR_BITMAP_CANNOT_DRAW _HRESULT_TYPEDEF_(0x88990021L) + +// +// MessageId: D2DERR_OUTSTANDING_BITMAP_REFERENCES +// +// MessageText: +// +// The operation cannot complete while there are outstanding references to the target bitmap. +// +#define D2DERR_OUTSTANDING_BITMAP_REFERENCES _HRESULT_TYPEDEF_(0x88990022L) + +// +// MessageId: D2DERR_ORIGINAL_TARGET_NOT_BOUND +// +// MessageText: +// +// The operation failed because the original target is not currently bound as a target. +// +#define D2DERR_ORIGINAL_TARGET_NOT_BOUND _HRESULT_TYPEDEF_(0x88990023L) + +// +// MessageId: D2DERR_INVALID_TARGET +// +// MessageText: +// +// Cannot set the image as a target because it is either an effect or is a bitmap that does not have the D2D1_BITMAP_OPTIONS_TARGET flag set. +// +#define D2DERR_INVALID_TARGET _HRESULT_TYPEDEF_(0x88990024L) + +// +// MessageId: D2DERR_BITMAP_BOUND_AS_TARGET +// +// MessageText: +// +// Cannot draw with a bitmap that is currently bound as the target bitmap. +// +#define D2DERR_BITMAP_BOUND_AS_TARGET _HRESULT_TYPEDEF_(0x88990025L) + +// +// MessageId: D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES +// +// MessageText: +// +// D3D Device does not have sufficient capabilities to perform the requested action. +// +#define D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES _HRESULT_TYPEDEF_(0x88990026L) + +// +// MessageId: D2DERR_INTERMEDIATE_TOO_LARGE +// +// MessageText: +// +// The graph could not be rendered with the context's current tiling settings. +// +#define D2DERR_INTERMEDIATE_TOO_LARGE _HRESULT_TYPEDEF_(0x88990027L) + +// +// MessageId: D2DERR_EFFECT_IS_NOT_REGISTERED +// +// MessageText: +// +// The CLSID provided to Unregister did not correspond to a registered effect. +// +#define D2DERR_EFFECT_IS_NOT_REGISTERED _HRESULT_TYPEDEF_(0x88990028L) + +// +// MessageId: D2DERR_INVALID_PROPERTY +// +// MessageText: +// +// The specified property does not exist. +// +#define D2DERR_INVALID_PROPERTY _HRESULT_TYPEDEF_(0x88990029L) + +// +// MessageId: D2DERR_NO_SUBPROPERTIES +// +// MessageText: +// +// The specified sub-property does not exist. +// +#define D2DERR_NO_SUBPROPERTIES _HRESULT_TYPEDEF_(0x8899002AL) + +// +// MessageId: D2DERR_PRINT_JOB_CLOSED +// +// MessageText: +// +// AddPage or Close called after print job is already closed. +// +#define D2DERR_PRINT_JOB_CLOSED _HRESULT_TYPEDEF_(0x8899002BL) + +// +// MessageId: D2DERR_PRINT_FORMAT_NOT_SUPPORTED +// +// MessageText: +// +// Error during print control creation. Indicates that none of the package target types (representing printer formats) are supported by Direct2D print control. +// +#define D2DERR_PRINT_FORMAT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8899002CL) + +// +// MessageId: D2DERR_TOO_MANY_TRANSFORM_INPUTS +// +// MessageText: +// +// An effect attempted to use a transform with too many inputs. +// +#define D2DERR_TOO_MANY_TRANSFORM_INPUTS _HRESULT_TYPEDEF_(0x8899002DL) + +// +// MessageId: D2DERR_INVALID_GLYPH_IMAGE +// +// MessageText: +// +// An error was encountered while decoding or parsing the requested glyph image. +// +#define D2DERR_INVALID_GLYPH_IMAGE _HRESULT_TYPEDEF_(0x8899002EL) + + +// +// DirectWrite +// + +// +// MessageId: DWRITE_E_FILEFORMAT +// +// MessageText: +// +// Indicates an error in an input file such as a font file. +// +#define DWRITE_E_FILEFORMAT _HRESULT_TYPEDEF_(0x88985000L) + +// +// MessageId: DWRITE_E_UNEXPECTED +// +// MessageText: +// +// Indicates an error originating in DirectWrite code, which is not expected to occur but is safe to recover from. +// +#define DWRITE_E_UNEXPECTED _HRESULT_TYPEDEF_(0x88985001L) + +// +// MessageId: DWRITE_E_NOFONT +// +// MessageText: +// +// Indicates the specified font does not exist. +// +#define DWRITE_E_NOFONT _HRESULT_TYPEDEF_(0x88985002L) + +// +// MessageId: DWRITE_E_FILENOTFOUND +// +// MessageText: +// +// A font file could not be opened because the file, directory, network location, drive, or other storage location does not exist or is unavailable. +// +#define DWRITE_E_FILENOTFOUND _HRESULT_TYPEDEF_(0x88985003L) + +// +// MessageId: DWRITE_E_FILEACCESS +// +// MessageText: +// +// A font file exists but could not be opened due to access denied, sharing violation, or similar error. +// +#define DWRITE_E_FILEACCESS _HRESULT_TYPEDEF_(0x88985004L) + +// +// MessageId: DWRITE_E_FONTCOLLECTIONOBSOLETE +// +// MessageText: +// +// A font collection is obsolete due to changes in the system. +// +#define DWRITE_E_FONTCOLLECTIONOBSOLETE _HRESULT_TYPEDEF_(0x88985005L) + +// +// MessageId: DWRITE_E_ALREADYREGISTERED +// +// MessageText: +// +// The given interface is already registered. +// +#define DWRITE_E_ALREADYREGISTERED _HRESULT_TYPEDEF_(0x88985006L) + +// +// MessageId: DWRITE_E_CACHEFORMAT +// +// MessageText: +// +// The font cache contains invalid data. +// +#define DWRITE_E_CACHEFORMAT _HRESULT_TYPEDEF_(0x88985007L) + +// +// MessageId: DWRITE_E_CACHEVERSION +// +// MessageText: +// +// A font cache file corresponds to a different version of DirectWrite. +// +#define DWRITE_E_CACHEVERSION _HRESULT_TYPEDEF_(0x88985008L) + +// +// MessageId: DWRITE_E_UNSUPPORTEDOPERATION +// +// MessageText: +// +// The operation is not supported for this type of font. +// +#define DWRITE_E_UNSUPPORTEDOPERATION _HRESULT_TYPEDEF_(0x88985009L) + +// +// MessageId: DWRITE_E_TEXTRENDERERINCOMPATIBLE +// +// MessageText: +// +// The version of the text renderer interface is not compatible. +// +#define DWRITE_E_TEXTRENDERERINCOMPATIBLE _HRESULT_TYPEDEF_(0x8898500AL) + +// +// MessageId: DWRITE_E_FLOWDIRECTIONCONFLICTS +// +// MessageText: +// +// The flow direction conflicts with the reading direction. They must be perpendicular to each other. +// +#define DWRITE_E_FLOWDIRECTIONCONFLICTS _HRESULT_TYPEDEF_(0x8898500BL) + +// +// MessageId: DWRITE_E_NOCOLOR +// +// MessageText: +// +// The font or glyph run does not contain any colored glyphs. +// +#define DWRITE_E_NOCOLOR _HRESULT_TYPEDEF_(0x8898500CL) + +// +// MessageId: DWRITE_E_REMOTEFONT +// +// MessageText: +// +// A font resource could not be accessed because it is remote. +// +#define DWRITE_E_REMOTEFONT _HRESULT_TYPEDEF_(0x8898500DL) + +// +// MessageId: DWRITE_E_DOWNLOADCANCELLED +// +// MessageText: +// +// A font download was canceled. +// +#define DWRITE_E_DOWNLOADCANCELLED _HRESULT_TYPEDEF_(0x8898500EL) + +// +// MessageId: DWRITE_E_DOWNLOADFAILED +// +// MessageText: +// +// A font download failed. +// +#define DWRITE_E_DOWNLOADFAILED _HRESULT_TYPEDEF_(0x8898500FL) + +// +// MessageId: DWRITE_E_TOOMANYDOWNLOADS +// +// MessageText: +// +// A font download request was not added or a download failed because there are too many active downloads. +// +#define DWRITE_E_TOOMANYDOWNLOADS _HRESULT_TYPEDEF_(0x88985010L) + + +// +// Windows Codecs +// + +// +// MessageId: WINCODEC_ERR_WRONGSTATE +// +// MessageText: +// +// The codec is in the wrong state. +// +#define WINCODEC_ERR_WRONGSTATE _HRESULT_TYPEDEF_(0x88982F04L) + +// +// MessageId: WINCODEC_ERR_VALUEOUTOFRANGE +// +// MessageText: +// +// The value is out of range. +// +#define WINCODEC_ERR_VALUEOUTOFRANGE _HRESULT_TYPEDEF_(0x88982F05L) + +// +// MessageId: WINCODEC_ERR_UNKNOWNIMAGEFORMAT +// +// MessageText: +// +// The image format is unknown. +// +#define WINCODEC_ERR_UNKNOWNIMAGEFORMAT _HRESULT_TYPEDEF_(0x88982F07L) + +// +// MessageId: WINCODEC_ERR_UNSUPPORTEDVERSION +// +// MessageText: +// +// The SDK version is unsupported. +// +#define WINCODEC_ERR_UNSUPPORTEDVERSION _HRESULT_TYPEDEF_(0x88982F0BL) + +// +// MessageId: WINCODEC_ERR_NOTINITIALIZED +// +// MessageText: +// +// The component is not initialized. +// +#define WINCODEC_ERR_NOTINITIALIZED _HRESULT_TYPEDEF_(0x88982F0CL) + +// +// MessageId: WINCODEC_ERR_ALREADYLOCKED +// +// MessageText: +// +// There is already an outstanding read or write lock. +// +#define WINCODEC_ERR_ALREADYLOCKED _HRESULT_TYPEDEF_(0x88982F0DL) + +// +// MessageId: WINCODEC_ERR_PROPERTYNOTFOUND +// +// MessageText: +// +// The specified bitmap property cannot be found. +// +#define WINCODEC_ERR_PROPERTYNOTFOUND _HRESULT_TYPEDEF_(0x88982F40L) + +// +// MessageId: WINCODEC_ERR_PROPERTYNOTSUPPORTED +// +// MessageText: +// +// The bitmap codec does not support the bitmap property. +// +#define WINCODEC_ERR_PROPERTYNOTSUPPORTED _HRESULT_TYPEDEF_(0x88982F41L) + +// +// MessageId: WINCODEC_ERR_PROPERTYSIZE +// +// MessageText: +// +// The bitmap property size is invalid. +// +#define WINCODEC_ERR_PROPERTYSIZE _HRESULT_TYPEDEF_(0x88982F42L) + +// +// MessageId: WINCODEC_ERR_CODECPRESENT +// +// MessageText: +// +// An unknown error has occurred. +// +#define WINCODEC_ERR_CODECPRESENT _HRESULT_TYPEDEF_(0x88982F43L) + +// +// MessageId: WINCODEC_ERR_CODECNOTHUMBNAIL +// +// MessageText: +// +// The bitmap codec does not support a thumbnail. +// +#define WINCODEC_ERR_CODECNOTHUMBNAIL _HRESULT_TYPEDEF_(0x88982F44L) + +// +// MessageId: WINCODEC_ERR_PALETTEUNAVAILABLE +// +// MessageText: +// +// The bitmap palette is unavailable. +// +#define WINCODEC_ERR_PALETTEUNAVAILABLE _HRESULT_TYPEDEF_(0x88982F45L) + +// +// MessageId: WINCODEC_ERR_CODECTOOMANYSCANLINES +// +// MessageText: +// +// Too many scanlines were requested. +// +#define WINCODEC_ERR_CODECTOOMANYSCANLINES _HRESULT_TYPEDEF_(0x88982F46L) + +// +// MessageId: WINCODEC_ERR_INTERNALERROR +// +// MessageText: +// +// An internal error occurred. +// +#define WINCODEC_ERR_INTERNALERROR _HRESULT_TYPEDEF_(0x88982F48L) + +// +// MessageId: WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS +// +// MessageText: +// +// The bitmap bounds do not match the bitmap dimensions. +// +#define WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS _HRESULT_TYPEDEF_(0x88982F49L) + +// +// MessageId: WINCODEC_ERR_COMPONENTNOTFOUND +// +// MessageText: +// +// The component cannot be found. +// +#define WINCODEC_ERR_COMPONENTNOTFOUND _HRESULT_TYPEDEF_(0x88982F50L) + +// +// MessageId: WINCODEC_ERR_IMAGESIZEOUTOFRANGE +// +// MessageText: +// +// The bitmap size is outside the valid range. +// +#define WINCODEC_ERR_IMAGESIZEOUTOFRANGE _HRESULT_TYPEDEF_(0x88982F51L) + +// +// MessageId: WINCODEC_ERR_TOOMUCHMETADATA +// +// MessageText: +// +// There is too much metadata to be written to the bitmap. +// +#define WINCODEC_ERR_TOOMUCHMETADATA _HRESULT_TYPEDEF_(0x88982F52L) + +// +// MessageId: WINCODEC_ERR_BADIMAGE +// +// MessageText: +// +// The image is unrecognized. +// +#define WINCODEC_ERR_BADIMAGE _HRESULT_TYPEDEF_(0x88982F60L) + +// +// MessageId: WINCODEC_ERR_BADHEADER +// +// MessageText: +// +// The image header is unrecognized. +// +#define WINCODEC_ERR_BADHEADER _HRESULT_TYPEDEF_(0x88982F61L) + +// +// MessageId: WINCODEC_ERR_FRAMEMISSING +// +// MessageText: +// +// The bitmap frame is missing. +// +#define WINCODEC_ERR_FRAMEMISSING _HRESULT_TYPEDEF_(0x88982F62L) + +// +// MessageId: WINCODEC_ERR_BADMETADATAHEADER +// +// MessageText: +// +// The image metadata header is unrecognized. +// +#define WINCODEC_ERR_BADMETADATAHEADER _HRESULT_TYPEDEF_(0x88982F63L) + +// +// MessageId: WINCODEC_ERR_BADSTREAMDATA +// +// MessageText: +// +// The stream data is unrecognized. +// +#define WINCODEC_ERR_BADSTREAMDATA _HRESULT_TYPEDEF_(0x88982F70L) + +// +// MessageId: WINCODEC_ERR_STREAMWRITE +// +// MessageText: +// +// Failed to write to the stream. +// +#define WINCODEC_ERR_STREAMWRITE _HRESULT_TYPEDEF_(0x88982F71L) + +// +// MessageId: WINCODEC_ERR_STREAMREAD +// +// MessageText: +// +// Failed to read from the stream. +// +#define WINCODEC_ERR_STREAMREAD _HRESULT_TYPEDEF_(0x88982F72L) + +// +// MessageId: WINCODEC_ERR_STREAMNOTAVAILABLE +// +// MessageText: +// +// The stream is not available. +// +#define WINCODEC_ERR_STREAMNOTAVAILABLE _HRESULT_TYPEDEF_(0x88982F73L) + +// +// MessageId: WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT +// +// MessageText: +// +// The bitmap pixel format is unsupported. +// +#define WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT _HRESULT_TYPEDEF_(0x88982F80L) + +// +// MessageId: WINCODEC_ERR_UNSUPPORTEDOPERATION +// +// MessageText: +// +// The operation is unsupported. +// +#define WINCODEC_ERR_UNSUPPORTEDOPERATION _HRESULT_TYPEDEF_(0x88982F81L) + +// +// MessageId: WINCODEC_ERR_INVALIDREGISTRATION +// +// MessageText: +// +// The component registration is invalid. +// +#define WINCODEC_ERR_INVALIDREGISTRATION _HRESULT_TYPEDEF_(0x88982F8AL) + +// +// MessageId: WINCODEC_ERR_COMPONENTINITIALIZEFAILURE +// +// MessageText: +// +// The component initialization has failed. +// +#define WINCODEC_ERR_COMPONENTINITIALIZEFAILURE _HRESULT_TYPEDEF_(0x88982F8BL) + +// +// MessageId: WINCODEC_ERR_INSUFFICIENTBUFFER +// +// MessageText: +// +// The buffer allocated is insufficient. +// +#define WINCODEC_ERR_INSUFFICIENTBUFFER _HRESULT_TYPEDEF_(0x88982F8CL) + +// +// MessageId: WINCODEC_ERR_DUPLICATEMETADATAPRESENT +// +// MessageText: +// +// Duplicate metadata is present. +// +#define WINCODEC_ERR_DUPLICATEMETADATAPRESENT _HRESULT_TYPEDEF_(0x88982F8DL) + +// +// MessageId: WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE +// +// MessageText: +// +// The bitmap property type is unexpected. +// +#define WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE _HRESULT_TYPEDEF_(0x88982F8EL) + +// +// MessageId: WINCODEC_ERR_UNEXPECTEDSIZE +// +// MessageText: +// +// The size is unexpected. +// +#define WINCODEC_ERR_UNEXPECTEDSIZE _HRESULT_TYPEDEF_(0x88982F8FL) + +// +// MessageId: WINCODEC_ERR_INVALIDQUERYREQUEST +// +// MessageText: +// +// The property query is invalid. +// +#define WINCODEC_ERR_INVALIDQUERYREQUEST _HRESULT_TYPEDEF_(0x88982F90L) + +// +// MessageId: WINCODEC_ERR_UNEXPECTEDMETADATATYPE +// +// MessageText: +// +// The metadata type is unexpected. +// +#define WINCODEC_ERR_UNEXPECTEDMETADATATYPE _HRESULT_TYPEDEF_(0x88982F91L) + +// +// MessageId: WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT +// +// MessageText: +// +// The specified bitmap property is only valid at root level. +// +#define WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT _HRESULT_TYPEDEF_(0x88982F92L) + +// +// MessageId: WINCODEC_ERR_INVALIDQUERYCHARACTER +// +// MessageText: +// +// The query string contains an invalid character. +// +#define WINCODEC_ERR_INVALIDQUERYCHARACTER _HRESULT_TYPEDEF_(0x88982F93L) + +// +// MessageId: WINCODEC_ERR_WIN32ERROR +// +// MessageText: +// +// Windows Codecs received an error from the Win32 system. +// +#define WINCODEC_ERR_WIN32ERROR _HRESULT_TYPEDEF_(0x88982F94L) + +// +// MessageId: WINCODEC_ERR_INVALIDPROGRESSIVELEVEL +// +// MessageText: +// +// The requested level of detail is not present. +// +#define WINCODEC_ERR_INVALIDPROGRESSIVELEVEL _HRESULT_TYPEDEF_(0x88982F95L) + +// +// MessageId: WINCODEC_ERR_INVALIDJPEGSCANINDEX +// +// MessageText: +// +// The scan index is invalid. +// +#define WINCODEC_ERR_INVALIDJPEGSCANINDEX _HRESULT_TYPEDEF_(0x88982F96L) + +// +// MessageId: WINCODEC_ERR_UNSUPPORTEDTONEMAPPING +// +// MessageText: +// +// The tone mapping mode is not supported. +// +#define WINCODEC_ERR_UNSUPPORTEDTONEMAPPING _HRESULT_TYPEDEF_(0x88982F97L) + + +// +// MIL/DWM +// + +// +// MessageId: MILERR_OBJECTBUSY +// +// MessageText: +// +// MILERR_OBJECTBUSY +// +#define MILERR_OBJECTBUSY _HRESULT_TYPEDEF_(0x88980001L) + +// +// MessageId: MILERR_INSUFFICIENTBUFFER +// +// MessageText: +// +// MILERR_INSUFFICIENTBUFFER +// +#define MILERR_INSUFFICIENTBUFFER _HRESULT_TYPEDEF_(0x88980002L) + +// +// MessageId: MILERR_WIN32ERROR +// +// MessageText: +// +// MILERR_WIN32ERROR +// +#define MILERR_WIN32ERROR _HRESULT_TYPEDEF_(0x88980003L) + +// +// MessageId: MILERR_SCANNER_FAILED +// +// MessageText: +// +// MILERR_SCANNER_FAILED +// +#define MILERR_SCANNER_FAILED _HRESULT_TYPEDEF_(0x88980004L) + +// +// MessageId: MILERR_SCREENACCESSDENIED +// +// MessageText: +// +// MILERR_SCREENACCESSDENIED +// +#define MILERR_SCREENACCESSDENIED _HRESULT_TYPEDEF_(0x88980005L) + +// +// MessageId: MILERR_DISPLAYSTATEINVALID +// +// MessageText: +// +// MILERR_DISPLAYSTATEINVALID +// +#define MILERR_DISPLAYSTATEINVALID _HRESULT_TYPEDEF_(0x88980006L) + +// +// MessageId: MILERR_NONINVERTIBLEMATRIX +// +// MessageText: +// +// MILERR_NONINVERTIBLEMATRIX +// +#define MILERR_NONINVERTIBLEMATRIX _HRESULT_TYPEDEF_(0x88980007L) + +// +// MessageId: MILERR_ZEROVECTOR +// +// MessageText: +// +// MILERR_ZEROVECTOR +// +#define MILERR_ZEROVECTOR _HRESULT_TYPEDEF_(0x88980008L) + +// +// MessageId: MILERR_TERMINATED +// +// MessageText: +// +// MILERR_TERMINATED +// +#define MILERR_TERMINATED _HRESULT_TYPEDEF_(0x88980009L) + +// +// MessageId: MILERR_BADNUMBER +// +// MessageText: +// +// MILERR_BADNUMBER +// +#define MILERR_BADNUMBER _HRESULT_TYPEDEF_(0x8898000AL) + +// +// MessageId: MILERR_INTERNALERROR +// +// MessageText: +// +// An internal error (MIL bug) occurred. On checked builds, an assert would be raised. +// +#define MILERR_INTERNALERROR _HRESULT_TYPEDEF_(0x88980080L) + +// +// MessageId: MILERR_DISPLAYFORMATNOTSUPPORTED +// +// MessageText: +// +// The display format we need to render is not supported by the hardware device. +// +#define MILERR_DISPLAYFORMATNOTSUPPORTED _HRESULT_TYPEDEF_(0x88980084L) + +// +// MessageId: MILERR_INVALIDCALL +// +// MessageText: +// +// A call to this method is invalid. +// +#define MILERR_INVALIDCALL _HRESULT_TYPEDEF_(0x88980085L) + +// +// MessageId: MILERR_ALREADYLOCKED +// +// MessageText: +// +// Lock attempted on an already locked object. +// +#define MILERR_ALREADYLOCKED _HRESULT_TYPEDEF_(0x88980086L) + +// +// MessageId: MILERR_NOTLOCKED +// +// MessageText: +// +// Unlock attempted on an unlocked object. +// +#define MILERR_NOTLOCKED _HRESULT_TYPEDEF_(0x88980087L) + +// +// MessageId: MILERR_DEVICECANNOTRENDERTEXT +// +// MessageText: +// +// No algorithm available to render text with this device +// +#define MILERR_DEVICECANNOTRENDERTEXT _HRESULT_TYPEDEF_(0x88980088L) + +// +// MessageId: MILERR_GLYPHBITMAPMISSED +// +// MessageText: +// +// Some glyph bitmaps, required for glyph run rendering, are not contained in glyph cache. +// +#define MILERR_GLYPHBITMAPMISSED _HRESULT_TYPEDEF_(0x88980089L) + +// +// MessageId: MILERR_MALFORMEDGLYPHCACHE +// +// MessageText: +// +// Some glyph bitmaps in glyph cache are unexpectedly big. +// +#define MILERR_MALFORMEDGLYPHCACHE _HRESULT_TYPEDEF_(0x8898008AL) + +// +// MessageId: MILERR_GENERIC_IGNORE +// +// MessageText: +// +// Marker error for known Win32 errors that are currently being ignored by the compositor. This is to avoid returning S_OK when an error has occurred, but still unwind the stack in the correct location. +// +#define MILERR_GENERIC_IGNORE _HRESULT_TYPEDEF_(0x8898008BL) + +// +// MessageId: MILERR_MALFORMED_GUIDELINE_DATA +// +// MessageText: +// +// Guideline coordinates are not sorted properly or contain NaNs. +// +#define MILERR_MALFORMED_GUIDELINE_DATA _HRESULT_TYPEDEF_(0x8898008CL) + +// +// MessageId: MILERR_NO_HARDWARE_DEVICE +// +// MessageText: +// +// No HW rendering device is available for this operation. +// +#define MILERR_NO_HARDWARE_DEVICE _HRESULT_TYPEDEF_(0x8898008DL) + +// +// MessageId: MILERR_NEED_RECREATE_AND_PRESENT +// +// MessageText: +// +// There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present. +// There are two known case for this: 1) D3D Driver Internal error 2) D3D E_FAIL 2a) Unknown root cause b) When resizing too quickly for DWM and D3D stay in sync +// +#define MILERR_NEED_RECREATE_AND_PRESENT _HRESULT_TYPEDEF_(0x8898008EL) + +// +// MessageId: MILERR_ALREADY_INITIALIZED +// +// MessageText: +// +// The object has already been initialized. +// +#define MILERR_ALREADY_INITIALIZED _HRESULT_TYPEDEF_(0x8898008FL) + +// +// MessageId: MILERR_MISMATCHED_SIZE +// +// MessageText: +// +// The size of the object does not match the expected size. +// +#define MILERR_MISMATCHED_SIZE _HRESULT_TYPEDEF_(0x88980090L) + +// +// MessageId: MILERR_NO_REDIRECTION_SURFACE_AVAILABLE +// +// MessageText: +// +// No Redirection surface available. +// +#define MILERR_NO_REDIRECTION_SURFACE_AVAILABLE _HRESULT_TYPEDEF_(0x88980091L) + +// +// MessageId: MILERR_REMOTING_NOT_SUPPORTED +// +// MessageText: +// +// Remoting of this content is not supported. +// +#define MILERR_REMOTING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x88980092L) + +// +// MessageId: MILERR_QUEUED_PRESENT_NOT_SUPPORTED +// +// MessageText: +// +// Queued Presents are not supported. +// +#define MILERR_QUEUED_PRESENT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x88980093L) + +// +// MessageId: MILERR_NOT_QUEUING_PRESENTS +// +// MessageText: +// +// Queued Presents are not being used. +// +#define MILERR_NOT_QUEUING_PRESENTS _HRESULT_TYPEDEF_(0x88980094L) + +// +// MessageId: MILERR_NO_REDIRECTION_SURFACE_RETRY_LATER +// +// MessageText: +// +// No redirection surface was available. Caller should retry the call. +// +#define MILERR_NO_REDIRECTION_SURFACE_RETRY_LATER _HRESULT_TYPEDEF_(0x88980095L) + +// +// MessageId: MILERR_TOOMANYSHADERELEMNTS +// +// MessageText: +// +// Shader construction failed because it was too complex. +// +#define MILERR_TOOMANYSHADERELEMNTS _HRESULT_TYPEDEF_(0x88980096L) + +// +// MessageId: MILERR_MROW_READLOCK_FAILED +// +// MessageText: +// +// MROW attempt to get a read lock failed. +// +#define MILERR_MROW_READLOCK_FAILED _HRESULT_TYPEDEF_(0x88980097L) + +// +// MessageId: MILERR_MROW_UPDATE_FAILED +// +// MessageText: +// +// MROW attempt to update the data failed because another update was outstanding. +// +#define MILERR_MROW_UPDATE_FAILED _HRESULT_TYPEDEF_(0x88980098L) + +// +// MessageId: MILERR_SHADER_COMPILE_FAILED +// +// MessageText: +// +// Shader compilation failed. +// +#define MILERR_SHADER_COMPILE_FAILED _HRESULT_TYPEDEF_(0x88980099L) + +// +// MessageId: MILERR_MAX_TEXTURE_SIZE_EXCEEDED +// +// MessageText: +// +// Requested DX redirection surface size exceeded maximum texture size. +// +#define MILERR_MAX_TEXTURE_SIZE_EXCEEDED _HRESULT_TYPEDEF_(0x8898009AL) + +// +// MessageId: MILERR_QPC_TIME_WENT_BACKWARD +// +// MessageText: +// +// QueryPerformanceCounter returned a time in the past. +// +#define MILERR_QPC_TIME_WENT_BACKWARD _HRESULT_TYPEDEF_(0x8898009BL) + +// +// MessageId: MILERR_DXGI_ENUMERATION_OUT_OF_SYNC +// +// MessageText: +// +// Primary Display device returned an invalid refresh rate. +// +#define MILERR_DXGI_ENUMERATION_OUT_OF_SYNC _HRESULT_TYPEDEF_(0x8898009DL) + +// +// MessageId: MILERR_ADAPTER_NOT_FOUND +// +// MessageText: +// +// DWM can not find the adapter specified by the LUID. +// +#define MILERR_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x8898009EL) + +// +// MessageId: MILERR_COLORSPACE_NOT_SUPPORTED +// +// MessageText: +// +// The requested bitmap color space is not supported. +// +#define MILERR_COLORSPACE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8898009FL) + +// +// MessageId: MILERR_PREFILTER_NOT_SUPPORTED +// +// MessageText: +// +// The requested bitmap pre-filtering state is not supported. +// +#define MILERR_PREFILTER_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x889800A0L) + +// +// MessageId: MILERR_DISPLAYID_ACCESS_DENIED +// +// MessageText: +// +// Access is denied to the requested bitmap for the specified display id. +// +#define MILERR_DISPLAYID_ACCESS_DENIED _HRESULT_TYPEDEF_(0x889800A1L) + +// +// MessageId: MILERR_DEVICE_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create a graphics device. +// +#define MILERR_DEVICE_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800B0L) + +// +// MessageId: MILERR_INTEL_DEVICE_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create an Intel graphics device. +// +#define MILERR_INTEL_DEVICE_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800B1L) + +// +// MessageId: MILERR_AMD_DEVICE_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create an AMD graphics device. +// +#define MILERR_AMD_DEVICE_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800B2L) + +// +// MessageId: MILERR_NVIDIA_DEVICE_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create an nVidia graphics device. +// +#define MILERR_NVIDIA_DEVICE_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800B3L) + +// +// MessageId: MILERR_QC_DEVICE_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create an Qualcomm graphics device. +// +#define MILERR_QC_DEVICE_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800B4L) + +// +// MessageId: MILERR_SWAPCHAIN_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create a display swap chain. +// +#define MILERR_SWAPCHAIN_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800C0L) + +// +// MessageId: MILERR_INTEL_SWAPCHAIN_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create an Intel display swap chain. +// +#define MILERR_INTEL_SWAPCHAIN_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800C1L) + +// +// MessageId: MILERR_AMD_SWAPCHAIN_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create an AMD display swap chain. +// +#define MILERR_AMD_SWAPCHAIN_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800C2L) + +// +// MessageId: MILERR_NVIDIA_SWAPCHAIN_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create an nVidia display swap chain. +// +#define MILERR_NVIDIA_SWAPCHAIN_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800C3L) + +// +// MessageId: MILERR_QC_SWAPCHAIN_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create a Qualcomm display swap chain. +// +#define MILERR_QC_SWAPCHAIN_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800C4L) + +// +// MessageId: MILERR_IDD_SWAPCHAIN_CREATION_FAILURE +// +// MessageText: +// +// DWM failed to create an indirect display swap chain. +// +#define MILERR_IDD_SWAPCHAIN_CREATION_FAILURE _HRESULT_TYPEDEF_(0x889800C5L) + +// +// MessageId: MILERR_PRESENT_FAILURE +// +// MessageText: +// +// DWM failed during present. +// +#define MILERR_PRESENT_FAILURE _HRESULT_TYPEDEF_(0x889800D0L) + +// +// MessageId: MILERR_INTEL_PRESENT_FAILURE +// +// MessageText: +// +// DWM failed an Intel present. +// +#define MILERR_INTEL_PRESENT_FAILURE _HRESULT_TYPEDEF_(0x889800D1L) + +// +// MessageId: MILERR_AMD_PRESENT_FAILURE +// +// MessageText: +// +// DWM failed an AMD present. +// +#define MILERR_AMD_PRESENT_FAILURE _HRESULT_TYPEDEF_(0x889800D2L) + +// +// MessageId: MILERR_NVIDIA_PRESENT_FAILURE +// +// MessageText: +// +// DWM failed an nVidia present. +// +#define MILERR_NVIDIA_PRESENT_FAILURE _HRESULT_TYPEDEF_(0x889800D3L) + +// +// MessageId: MILERR_QC_PRESENT_FAILURE +// +// MessageText: +// +// DWM failed a Qualcomm present. +// +#define MILERR_QC_PRESENT_FAILURE _HRESULT_TYPEDEF_(0x889800D4L) + +// +// MessageId: MILERR_IDD_PRESENT_FAILURE +// +// MessageText: +// +// DWM failed an indirect display present. +// +#define MILERR_IDD_PRESENT_FAILURE _HRESULT_TYPEDEF_(0x889800D5L) + +// Composition engine errors +// +// MessageId: UCEERR_INVALIDPACKETHEADER +// +// MessageText: +// +// UCEERR_INVALIDPACKETHEADER +// +#define UCEERR_INVALIDPACKETHEADER _HRESULT_TYPEDEF_(0x88980400L) + +// +// MessageId: UCEERR_UNKNOWNPACKET +// +// MessageText: +// +// UCEERR_UNKNOWNPACKET +// +#define UCEERR_UNKNOWNPACKET _HRESULT_TYPEDEF_(0x88980401L) + +// +// MessageId: UCEERR_ILLEGALPACKET +// +// MessageText: +// +// UCEERR_ILLEGALPACKET +// +#define UCEERR_ILLEGALPACKET _HRESULT_TYPEDEF_(0x88980402L) + +// +// MessageId: UCEERR_MALFORMEDPACKET +// +// MessageText: +// +// UCEERR_MALFORMEDPACKET +// +#define UCEERR_MALFORMEDPACKET _HRESULT_TYPEDEF_(0x88980403L) + +// +// MessageId: UCEERR_ILLEGALHANDLE +// +// MessageText: +// +// UCEERR_ILLEGALHANDLE +// +#define UCEERR_ILLEGALHANDLE _HRESULT_TYPEDEF_(0x88980404L) + +// +// MessageId: UCEERR_HANDLELOOKUPFAILED +// +// MessageText: +// +// UCEERR_HANDLELOOKUPFAILED +// +#define UCEERR_HANDLELOOKUPFAILED _HRESULT_TYPEDEF_(0x88980405L) + +// +// MessageId: UCEERR_RENDERTHREADFAILURE +// +// MessageText: +// +// UCEERR_RENDERTHREADFAILURE +// +#define UCEERR_RENDERTHREADFAILURE _HRESULT_TYPEDEF_(0x88980406L) + +// +// MessageId: UCEERR_CTXSTACKFRSTTARGETNULL +// +// MessageText: +// +// UCEERR_CTXSTACKFRSTTARGETNULL +// +#define UCEERR_CTXSTACKFRSTTARGETNULL _HRESULT_TYPEDEF_(0x88980407L) + +// +// MessageId: UCEERR_CONNECTIONIDLOOKUPFAILED +// +// MessageText: +// +// UCEERR_CONNECTIONIDLOOKUPFAILED +// +#define UCEERR_CONNECTIONIDLOOKUPFAILED _HRESULT_TYPEDEF_(0x88980408L) + +// +// MessageId: UCEERR_BLOCKSFULL +// +// MessageText: +// +// UCEERR_BLOCKSFULL +// +#define UCEERR_BLOCKSFULL _HRESULT_TYPEDEF_(0x88980409L) + +// +// MessageId: UCEERR_MEMORYFAILURE +// +// MessageText: +// +// UCEERR_MEMORYFAILURE +// +#define UCEERR_MEMORYFAILURE _HRESULT_TYPEDEF_(0x8898040AL) + +// +// MessageId: UCEERR_PACKETRECORDOUTOFRANGE +// +// MessageText: +// +// UCEERR_PACKETRECORDOUTOFRANGE +// +#define UCEERR_PACKETRECORDOUTOFRANGE _HRESULT_TYPEDEF_(0x8898040BL) + +// +// MessageId: UCEERR_ILLEGALRECORDTYPE +// +// MessageText: +// +// UCEERR_ILLEGALRECORDTYPE +// +#define UCEERR_ILLEGALRECORDTYPE _HRESULT_TYPEDEF_(0x8898040CL) + +// +// MessageId: UCEERR_OUTOFHANDLES +// +// MessageText: +// +// UCEERR_OUTOFHANDLES +// +#define UCEERR_OUTOFHANDLES _HRESULT_TYPEDEF_(0x8898040DL) + +// +// MessageId: UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED +// +// MessageText: +// +// UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED +// +#define UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED _HRESULT_TYPEDEF_(0x8898040EL) + +// +// MessageId: UCEERR_NO_MULTIPLE_WORKER_THREADS +// +// MessageText: +// +// UCEERR_NO_MULTIPLE_WORKER_THREADS +// +#define UCEERR_NO_MULTIPLE_WORKER_THREADS _HRESULT_TYPEDEF_(0x8898040FL) + +// +// MessageId: UCEERR_REMOTINGNOTSUPPORTED +// +// MessageText: +// +// UCEERR_REMOTINGNOTSUPPORTED +// +#define UCEERR_REMOTINGNOTSUPPORTED _HRESULT_TYPEDEF_(0x88980410L) + +// +// MessageId: UCEERR_MISSINGENDCOMMAND +// +// MessageText: +// +// UCEERR_MISSINGENDCOMMAND +// +#define UCEERR_MISSINGENDCOMMAND _HRESULT_TYPEDEF_(0x88980411L) + +// +// MessageId: UCEERR_MISSINGBEGINCOMMAND +// +// MessageText: +// +// UCEERR_MISSINGBEGINCOMMAND +// +#define UCEERR_MISSINGBEGINCOMMAND _HRESULT_TYPEDEF_(0x88980412L) + +// +// MessageId: UCEERR_CHANNELSYNCTIMEDOUT +// +// MessageText: +// +// UCEERR_CHANNELSYNCTIMEDOUT +// +#define UCEERR_CHANNELSYNCTIMEDOUT _HRESULT_TYPEDEF_(0x88980413L) + +// +// MessageId: UCEERR_CHANNELSYNCABANDONED +// +// MessageText: +// +// UCEERR_CHANNELSYNCABANDONED +// +#define UCEERR_CHANNELSYNCABANDONED _HRESULT_TYPEDEF_(0x88980414L) + +// +// MessageId: UCEERR_UNSUPPORTEDTRANSPORTVERSION +// +// MessageText: +// +// UCEERR_UNSUPPORTEDTRANSPORTVERSION +// +#define UCEERR_UNSUPPORTEDTRANSPORTVERSION _HRESULT_TYPEDEF_(0x88980415L) + +// +// MessageId: UCEERR_TRANSPORTUNAVAILABLE +// +// MessageText: +// +// UCEERR_TRANSPORTUNAVAILABLE +// +#define UCEERR_TRANSPORTUNAVAILABLE _HRESULT_TYPEDEF_(0x88980416L) + +// +// MessageId: UCEERR_FEEDBACK_UNSUPPORTED +// +// MessageText: +// +// UCEERR_FEEDBACK_UNSUPPORTED +// +#define UCEERR_FEEDBACK_UNSUPPORTED _HRESULT_TYPEDEF_(0x88980417L) + +// +// MessageId: UCEERR_COMMANDTRANSPORTDENIED +// +// MessageText: +// +// UCEERR_COMMANDTRANSPORTDENIED +// +#define UCEERR_COMMANDTRANSPORTDENIED _HRESULT_TYPEDEF_(0x88980418L) + +// +// MessageId: UCEERR_GRAPHICSSTREAMUNAVAILABLE +// +// MessageText: +// +// UCEERR_GRAPHICSSTREAMUNAVAILABLE +// +#define UCEERR_GRAPHICSSTREAMUNAVAILABLE _HRESULT_TYPEDEF_(0x88980419L) + +// +// MessageId: UCEERR_GRAPHICSSTREAMALREADYOPEN +// +// MessageText: +// +// UCEERR_GRAPHICSSTREAMALREADYOPEN +// +#define UCEERR_GRAPHICSSTREAMALREADYOPEN _HRESULT_TYPEDEF_(0x88980420L) + +// +// MessageId: UCEERR_TRANSPORTDISCONNECTED +// +// MessageText: +// +// UCEERR_TRANSPORTDISCONNECTED +// +#define UCEERR_TRANSPORTDISCONNECTED _HRESULT_TYPEDEF_(0x88980421L) + +// +// MessageId: UCEERR_TRANSPORTOVERLOADED +// +// MessageText: +// +// UCEERR_TRANSPORTOVERLOADED +// +#define UCEERR_TRANSPORTOVERLOADED _HRESULT_TYPEDEF_(0x88980422L) + +// +// MessageId: UCEERR_PARTITION_ZOMBIED +// +// MessageText: +// +// UCEERR_PARTITION_ZOMBIED +// +#define UCEERR_PARTITION_ZOMBIED _HRESULT_TYPEDEF_(0x88980423L) + +// MIL AV Specific errors +// +// MessageId: MILAVERR_NOCLOCK +// +// MessageText: +// +// MILAVERR_NOCLOCK +// +#define MILAVERR_NOCLOCK _HRESULT_TYPEDEF_(0x88980500L) + +// +// MessageId: MILAVERR_NOMEDIATYPE +// +// MessageText: +// +// MILAVERR_NOMEDIATYPE +// +#define MILAVERR_NOMEDIATYPE _HRESULT_TYPEDEF_(0x88980501L) + +// +// MessageId: MILAVERR_NOVIDEOMIXER +// +// MessageText: +// +// MILAVERR_NOVIDEOMIXER +// +#define MILAVERR_NOVIDEOMIXER _HRESULT_TYPEDEF_(0x88980502L) + +// +// MessageId: MILAVERR_NOVIDEOPRESENTER +// +// MessageText: +// +// MILAVERR_NOVIDEOPRESENTER +// +#define MILAVERR_NOVIDEOPRESENTER _HRESULT_TYPEDEF_(0x88980503L) + +// +// MessageId: MILAVERR_NOREADYFRAMES +// +// MessageText: +// +// MILAVERR_NOREADYFRAMES +// +#define MILAVERR_NOREADYFRAMES _HRESULT_TYPEDEF_(0x88980504L) + +// +// MessageId: MILAVERR_MODULENOTLOADED +// +// MessageText: +// +// MILAVERR_MODULENOTLOADED +// +#define MILAVERR_MODULENOTLOADED _HRESULT_TYPEDEF_(0x88980505L) + +// +// MessageId: MILAVERR_WMPFACTORYNOTREGISTERED +// +// MessageText: +// +// MILAVERR_WMPFACTORYNOTREGISTERED +// +#define MILAVERR_WMPFACTORYNOTREGISTERED _HRESULT_TYPEDEF_(0x88980506L) + +// +// MessageId: MILAVERR_INVALIDWMPVERSION +// +// MessageText: +// +// MILAVERR_INVALIDWMPVERSION +// +#define MILAVERR_INVALIDWMPVERSION _HRESULT_TYPEDEF_(0x88980507L) + +// +// MessageId: MILAVERR_INSUFFICIENTVIDEORESOURCES +// +// MessageText: +// +// MILAVERR_INSUFFICIENTVIDEORESOURCES +// +#define MILAVERR_INSUFFICIENTVIDEORESOURCES _HRESULT_TYPEDEF_(0x88980508L) + +// +// MessageId: MILAVERR_VIDEOACCELERATIONNOTAVAILABLE +// +// MessageText: +// +// MILAVERR_VIDEOACCELERATIONNOTAVAILABLE +// +#define MILAVERR_VIDEOACCELERATIONNOTAVAILABLE _HRESULT_TYPEDEF_(0x88980509L) + +// +// MessageId: MILAVERR_REQUESTEDTEXTURETOOBIG +// +// MessageText: +// +// MILAVERR_REQUESTEDTEXTURETOOBIG +// +#define MILAVERR_REQUESTEDTEXTURETOOBIG _HRESULT_TYPEDEF_(0x8898050AL) + +// +// MessageId: MILAVERR_SEEKFAILED +// +// MessageText: +// +// MILAVERR_SEEKFAILED +// +#define MILAVERR_SEEKFAILED _HRESULT_TYPEDEF_(0x8898050BL) + +// +// MessageId: MILAVERR_UNEXPECTEDWMPFAILURE +// +// MessageText: +// +// MILAVERR_UNEXPECTEDWMPFAILURE +// +#define MILAVERR_UNEXPECTEDWMPFAILURE _HRESULT_TYPEDEF_(0x8898050CL) + +// +// MessageId: MILAVERR_MEDIAPLAYERCLOSED +// +// MessageText: +// +// MILAVERR_MEDIAPLAYERCLOSED +// +#define MILAVERR_MEDIAPLAYERCLOSED _HRESULT_TYPEDEF_(0x8898050DL) + +// +// MessageId: MILAVERR_UNKNOWNHARDWAREERROR +// +// MessageText: +// +// MILAVERR_UNKNOWNHARDWAREERROR +// +#define MILAVERR_UNKNOWNHARDWAREERROR _HRESULT_TYPEDEF_(0x8898050EL) + +// MIL Bitmap Effect errors +// +// MessageId: MILEFFECTSERR_UNKNOWNPROPERTY +// +// MessageText: +// +// MILEFFECTSERR_UNKNOWNPROPERTY +// +#define MILEFFECTSERR_UNKNOWNPROPERTY _HRESULT_TYPEDEF_(0x8898060EL) + +// +// MessageId: MILEFFECTSERR_EFFECTNOTPARTOFGROUP +// +// MessageText: +// +// MILEFFECTSERR_EFFECTNOTPARTOFGROUP +// +#define MILEFFECTSERR_EFFECTNOTPARTOFGROUP _HRESULT_TYPEDEF_(0x8898060FL) + +// +// MessageId: MILEFFECTSERR_NOINPUTSOURCEATTACHED +// +// MessageText: +// +// MILEFFECTSERR_NOINPUTSOURCEATTACHED +// +#define MILEFFECTSERR_NOINPUTSOURCEATTACHED _HRESULT_TYPEDEF_(0x88980610L) + +// +// MessageId: MILEFFECTSERR_CONNECTORNOTCONNECTED +// +// MessageText: +// +// MILEFFECTSERR_CONNECTORNOTCONNECTED +// +#define MILEFFECTSERR_CONNECTORNOTCONNECTED _HRESULT_TYPEDEF_(0x88980611L) + +// +// MessageId: MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT +// +// MessageText: +// +// MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT +// +#define MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT _HRESULT_TYPEDEF_(0x88980612L) + +// +// MessageId: MILEFFECTSERR_RESERVED +// +// MessageText: +// +// MILEFFECTSERR_RESERVED +// +#define MILEFFECTSERR_RESERVED _HRESULT_TYPEDEF_(0x88980613L) + +// +// MessageId: MILEFFECTSERR_CYCLEDETECTED +// +// MessageText: +// +// MILEFFECTSERR_CYCLEDETECTED +// +#define MILEFFECTSERR_CYCLEDETECTED _HRESULT_TYPEDEF_(0x88980614L) + +// +// MessageId: MILEFFECTSERR_EFFECTINMORETHANONEGRAPH +// +// MessageText: +// +// MILEFFECTSERR_EFFECTINMORETHANONEGRAPH +// +#define MILEFFECTSERR_EFFECTINMORETHANONEGRAPH _HRESULT_TYPEDEF_(0x88980615L) + +// +// MessageId: MILEFFECTSERR_EFFECTALREADYINAGRAPH +// +// MessageText: +// +// MILEFFECTSERR_EFFECTALREADYINAGRAPH +// +#define MILEFFECTSERR_EFFECTALREADYINAGRAPH _HRESULT_TYPEDEF_(0x88980616L) + +// +// MessageId: MILEFFECTSERR_EFFECTHASNOCHILDREN +// +// MessageText: +// +// MILEFFECTSERR_EFFECTHASNOCHILDREN +// +#define MILEFFECTSERR_EFFECTHASNOCHILDREN _HRESULT_TYPEDEF_(0x88980617L) + +// +// MessageId: MILEFFECTSERR_ALREADYATTACHEDTOLISTENER +// +// MessageText: +// +// MILEFFECTSERR_ALREADYATTACHEDTOLISTENER +// +#define MILEFFECTSERR_ALREADYATTACHEDTOLISTENER _HRESULT_TYPEDEF_(0x88980618L) + +// +// MessageId: MILEFFECTSERR_NOTAFFINETRANSFORM +// +// MessageText: +// +// MILEFFECTSERR_NOTAFFINETRANSFORM +// +#define MILEFFECTSERR_NOTAFFINETRANSFORM _HRESULT_TYPEDEF_(0x88980619L) + +// +// MessageId: MILEFFECTSERR_EMPTYBOUNDS +// +// MessageText: +// +// MILEFFECTSERR_EMPTYBOUNDS +// +#define MILEFFECTSERR_EMPTYBOUNDS _HRESULT_TYPEDEF_(0x8898061AL) + +// +// MessageId: MILEFFECTSERR_OUTPUTSIZETOOLARGE +// +// MessageText: +// +// MILEFFECTSERR_OUTPUTSIZETOOLARGE +// +#define MILEFFECTSERR_OUTPUTSIZETOOLARGE _HRESULT_TYPEDEF_(0x8898061BL) + +// DWM specific errors +// +// MessageId: DWMERR_STATE_TRANSITION_FAILED +// +// MessageText: +// +// DWMERR_STATE_TRANSITION_FAILED +// +#define DWMERR_STATE_TRANSITION_FAILED _HRESULT_TYPEDEF_(0x88980700L) + +// +// MessageId: DWMERR_THEME_FAILED +// +// MessageText: +// +// DWMERR_THEME_FAILED +// +#define DWMERR_THEME_FAILED _HRESULT_TYPEDEF_(0x88980701L) + +// +// MessageId: DWMERR_CATASTROPHIC_FAILURE +// +// MessageText: +// +// DWMERR_CATASTROPHIC_FAILURE +// +#define DWMERR_CATASTROPHIC_FAILURE _HRESULT_TYPEDEF_(0x88980702L) + + +// +// DirectComposition +// + +// +// MessageId: DCOMPOSITION_ERROR_WINDOW_ALREADY_COMPOSED +// +// MessageText: +// +// DCOMPOSITION_ERROR_WINDOW_ALREADY_COMPOSED +// +#define DCOMPOSITION_ERROR_WINDOW_ALREADY_COMPOSED _HRESULT_TYPEDEF_(0x88980800L) + +// +// MessageId: DCOMPOSITION_ERROR_SURFACE_BEING_RENDERED +// +// MessageText: +// +// DCOMPOSITION_ERROR_SURFACE_BEING_RENDERED +// +#define DCOMPOSITION_ERROR_SURFACE_BEING_RENDERED _HRESULT_TYPEDEF_(0x88980801L) + +// +// MessageId: DCOMPOSITION_ERROR_SURFACE_NOT_BEING_RENDERED +// +// MessageText: +// +// DCOMPOSITION_ERROR_SURFACE_NOT_BEING_RENDERED +// +#define DCOMPOSITION_ERROR_SURFACE_NOT_BEING_RENDERED _HRESULT_TYPEDEF_(0x88980802L) + + +// +// OnlineId +// + +// +// MessageId: ONL_E_INVALID_AUTHENTICATION_TARGET +// +// MessageText: +// +// Authentication target is invalid or not configured correctly. +// +#define ONL_E_INVALID_AUTHENTICATION_TARGET _HRESULT_TYPEDEF_(0x80860001L) + +// +// MessageId: ONL_E_ACCESS_DENIED_BY_TOU +// +// MessageText: +// +// Your application cannot get the Online Id properties due to the Terms of Use accepted by the user. +// +#define ONL_E_ACCESS_DENIED_BY_TOU _HRESULT_TYPEDEF_(0x80860002L) + +// +// MessageId: ONL_E_INVALID_APPLICATION +// +// MessageText: +// +// The application requesting authentication tokens is either disabled or incorrectly configured. +// +#define ONL_E_INVALID_APPLICATION _HRESULT_TYPEDEF_(0x80860003L) + +// +// MessageId: ONL_E_PASSWORD_UPDATE_REQUIRED +// +// MessageText: +// +// Online Id password must be updated before signin. +// +#define ONL_E_PASSWORD_UPDATE_REQUIRED _HRESULT_TYPEDEF_(0x80860004L) + +// +// MessageId: ONL_E_ACCOUNT_UPDATE_REQUIRED +// +// MessageText: +// +// Online Id account properties must be updated before signin. +// +#define ONL_E_ACCOUNT_UPDATE_REQUIRED _HRESULT_TYPEDEF_(0x80860005L) + +// +// MessageId: ONL_E_FORCESIGNIN +// +// MessageText: +// +// To help protect your Online Id account you must signin again. +// +#define ONL_E_FORCESIGNIN _HRESULT_TYPEDEF_(0x80860006L) + +// +// MessageId: ONL_E_ACCOUNT_LOCKED +// +// MessageText: +// +// Online Id account was locked because there have been too many attempts to sign in. +// +#define ONL_E_ACCOUNT_LOCKED _HRESULT_TYPEDEF_(0x80860007L) + +// +// MessageId: ONL_E_PARENTAL_CONSENT_REQUIRED +// +// MessageText: +// +// Online Id account requires parental consent before proceeding. +// +#define ONL_E_PARENTAL_CONSENT_REQUIRED _HRESULT_TYPEDEF_(0x80860008L) + +// +// MessageId: ONL_E_EMAIL_VERIFICATION_REQUIRED +// +// MessageText: +// +// Online Id signin name is not yet verified. Email verification is required before signin. +// +#define ONL_E_EMAIL_VERIFICATION_REQUIRED _HRESULT_TYPEDEF_(0x80860009L) + +// +// MessageId: ONL_E_ACCOUNT_SUSPENDED_COMPROIMISE +// +// MessageText: +// +// We have noticed some unusual activity in your Online Id account. Your action is needed to make sure no one else is using your account. +// +#define ONL_E_ACCOUNT_SUSPENDED_COMPROIMISE _HRESULT_TYPEDEF_(0x8086000AL) + +// +// MessageId: ONL_E_ACCOUNT_SUSPENDED_ABUSE +// +// MessageText: +// +// We detected some suspicious activity with your Online Id account. To help protect you, we've temporarily blocked your account. +// +#define ONL_E_ACCOUNT_SUSPENDED_ABUSE _HRESULT_TYPEDEF_(0x8086000BL) + +// +// MessageId: ONL_E_ACTION_REQUIRED +// +// MessageText: +// +// User interaction is required for authentication. +// +#define ONL_E_ACTION_REQUIRED _HRESULT_TYPEDEF_(0x8086000CL) + +// +// MessageId: ONL_CONNECTION_COUNT_LIMIT +// +// MessageText: +// +// User has reached the maximum device associations per user limit. +// +#define ONL_CONNECTION_COUNT_LIMIT _HRESULT_TYPEDEF_(0x8086000DL) + +// +// MessageId: ONL_E_CONNECTED_ACCOUNT_CAN_NOT_SIGNOUT +// +// MessageText: +// +// Cannot sign out from the application since the user account is connected. +// +#define ONL_E_CONNECTED_ACCOUNT_CAN_NOT_SIGNOUT _HRESULT_TYPEDEF_(0x8086000EL) + +// +// MessageId: ONL_E_USER_AUTHENTICATION_REQUIRED +// +// MessageText: +// +// User authentication is required for this operation. +// +#define ONL_E_USER_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(0x8086000FL) + +// +// MessageId: ONL_E_REQUEST_THROTTLED +// +// MessageText: +// +// We want to make sure this is you. User interaction is required for authentication. +// +#define ONL_E_REQUEST_THROTTLED _HRESULT_TYPEDEF_(0x80860010L) + + +// +// Facility Shell Error codes +// + +// +// MessageId: FA_E_MAX_PERSISTED_ITEMS_REACHED +// +// MessageText: +// +// The maximum number of items for the access list has been reached. An item must be removed before another item is added. +// +#define FA_E_MAX_PERSISTED_ITEMS_REACHED _HRESULT_TYPEDEF_(0x80270220L) + +// +// MessageId: FA_E_HOMEGROUP_NOT_AVAILABLE +// +// MessageText: +// +// Cannot access Homegroup. Homegroup may not be set up or may have encountered an error. +// +#define FA_E_HOMEGROUP_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80270222L) + +// +// MessageId: E_MONITOR_RESOLUTION_TOO_LOW +// +// MessageText: +// +// This app can't start because the screen resolution is below 1024x768. Choose a higher screen resolution and then try again. +// +#define E_MONITOR_RESOLUTION_TOO_LOW _HRESULT_TYPEDEF_(0x80270250L) + +// +// MessageId: E_ELEVATED_ACTIVATION_NOT_SUPPORTED +// +// MessageText: +// +// This app can't be activated from an elevated context. +// +#define E_ELEVATED_ACTIVATION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80270251L) + +// +// MessageId: E_UAC_DISABLED +// +// MessageText: +// +// This app can't be activated when UAC is disabled. +// +#define E_UAC_DISABLED _HRESULT_TYPEDEF_(0x80270252L) + +// +// MessageId: E_FULL_ADMIN_NOT_SUPPORTED +// +// MessageText: +// +// This app can't be activated by the Built-in Administrator. +// +#define E_FULL_ADMIN_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80270253L) + +// +// MessageId: E_APPLICATION_NOT_REGISTERED +// +// MessageText: +// +// This app does not support the contract specified or is not installed. +// +#define E_APPLICATION_NOT_REGISTERED _HRESULT_TYPEDEF_(0x80270254L) + +// +// MessageId: E_MULTIPLE_EXTENSIONS_FOR_APPLICATION +// +// MessageText: +// +// This app has multiple extensions registered to support the specified contract. Activation by AppUserModelId is ambiguous. +// +#define E_MULTIPLE_EXTENSIONS_FOR_APPLICATION _HRESULT_TYPEDEF_(0x80270255L) + +// +// MessageId: E_MULTIPLE_PACKAGES_FOR_FAMILY +// +// MessageText: +// +// This app's package family has more than one package installed. This is not supported. +// +#define E_MULTIPLE_PACKAGES_FOR_FAMILY _HRESULT_TYPEDEF_(0x80270256L) + +// +// MessageId: E_APPLICATION_MANAGER_NOT_RUNNING +// +// MessageText: +// +// The app manager is required to activate applications, but is not running. +// +#define E_APPLICATION_MANAGER_NOT_RUNNING _HRESULT_TYPEDEF_(0x80270257L) + +// +// MessageId: S_STORE_LAUNCHED_FOR_REMEDIATION +// +// MessageText: +// +// The Store was launched instead of the specified app because the app's package was in an invalid state. +// +#define S_STORE_LAUNCHED_FOR_REMEDIATION _HRESULT_TYPEDEF_(0x00270258L) + +// +// MessageId: S_APPLICATION_ACTIVATION_ERROR_HANDLED_BY_DIALOG +// +// MessageText: +// +// This app failed to launch, but the error was handled with a dialog. +// +#define S_APPLICATION_ACTIVATION_ERROR_HANDLED_BY_DIALOG _HRESULT_TYPEDEF_(0x00270259L) + +// +// MessageId: E_APPLICATION_ACTIVATION_TIMED_OUT +// +// MessageText: +// +// The app didn't start in the required time. +// +#define E_APPLICATION_ACTIVATION_TIMED_OUT _HRESULT_TYPEDEF_(0x8027025AL) + +// +// MessageId: E_APPLICATION_ACTIVATION_EXEC_FAILURE +// +// MessageText: +// +// The app didn't start. +// +#define E_APPLICATION_ACTIVATION_EXEC_FAILURE _HRESULT_TYPEDEF_(0x8027025BL) + +// +// MessageId: E_APPLICATION_TEMPORARY_LICENSE_ERROR +// +// MessageText: +// +// This app failed to launch because of an issue with its license. Please try again in a moment. +// +#define E_APPLICATION_TEMPORARY_LICENSE_ERROR _HRESULT_TYPEDEF_(0x8027025CL) + +// +// MessageId: E_APPLICATION_TRIAL_LICENSE_EXPIRED +// +// MessageText: +// +// This app failed to launch because its trial license has expired. +// +#define E_APPLICATION_TRIAL_LICENSE_EXPIRED _HRESULT_TYPEDEF_(0x8027025DL) + +// +// MessageId: E_SKYDRIVE_ROOT_TARGET_FILE_SYSTEM_NOT_SUPPORTED +// +// MessageText: +// +// Please choose a folder on a drive that's formatted with the NTFS file system. +// +#define E_SKYDRIVE_ROOT_TARGET_FILE_SYSTEM_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80270260L) + +// +// MessageId: E_SKYDRIVE_ROOT_TARGET_OVERLAP +// +// MessageText: +// +// This location is already being used. Please choose a different location. +// +#define E_SKYDRIVE_ROOT_TARGET_OVERLAP _HRESULT_TYPEDEF_(0x80270261L) + +// +// MessageId: E_SKYDRIVE_ROOT_TARGET_CANNOT_INDEX +// +// MessageText: +// +// This location cannot be indexed. Please choose a different location. +// +#define E_SKYDRIVE_ROOT_TARGET_CANNOT_INDEX _HRESULT_TYPEDEF_(0x80270262L) + +// +// MessageId: E_SKYDRIVE_FILE_NOT_UPLOADED +// +// MessageText: +// +// Sorry, the action couldn't be completed because the file hasn't finished uploading. Try again later. +// +#define E_SKYDRIVE_FILE_NOT_UPLOADED _HRESULT_TYPEDEF_(0x80270263L) + +// +// MessageId: E_SKYDRIVE_UPDATE_AVAILABILITY_FAIL +// +// MessageText: +// +// Sorry, the action couldn't be completed. +// +#define E_SKYDRIVE_UPDATE_AVAILABILITY_FAIL _HRESULT_TYPEDEF_(0x80270264L) + +// +// MessageId: E_SKYDRIVE_ROOT_TARGET_VOLUME_ROOT_NOT_SUPPORTED +// +// MessageText: +// +// This content can only be moved to a folder. To move the content to this drive, please choose or create a folder. +// +#define E_SKYDRIVE_ROOT_TARGET_VOLUME_ROOT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80270265L) + + +// Sync Engine File Error Codes + +// +// MessageId: E_SYNCENGINE_FILE_SIZE_OVER_LIMIT +// +// MessageText: +// +// The file size is larger than supported by the sync engine. +// +#define E_SYNCENGINE_FILE_SIZE_OVER_LIMIT _HRESULT_TYPEDEF_(0x8802B001L) + +// +// MessageId: E_SYNCENGINE_FILE_SIZE_EXCEEDS_REMAINING_QUOTA +// +// MessageText: +// +// The file cannot be uploaded because it doesn't fit in the user's available service provided storage space. +// +#define E_SYNCENGINE_FILE_SIZE_EXCEEDS_REMAINING_QUOTA _HRESULT_TYPEDEF_(0x8802B002L) + +// +// MessageId: E_SYNCENGINE_UNSUPPORTED_FILE_NAME +// +// MessageText: +// +// The file name contains invalid characters. +// +#define E_SYNCENGINE_UNSUPPORTED_FILE_NAME _HRESULT_TYPEDEF_(0x8802B003L) + +// +// MessageId: E_SYNCENGINE_FOLDER_ITEM_COUNT_LIMIT_EXCEEDED +// +// MessageText: +// +// The maximum file count has been reached for this folder in the sync engine. +// +#define E_SYNCENGINE_FOLDER_ITEM_COUNT_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0x8802B004L) + +// +// MessageId: E_SYNCENGINE_FILE_SYNC_PARTNER_ERROR +// +// MessageText: +// +// The file sync has been delegated to another program and has run into an issue. +// +#define E_SYNCENGINE_FILE_SYNC_PARTNER_ERROR _HRESULT_TYPEDEF_(0x8802B005L) + +// +// MessageId: E_SYNCENGINE_SYNC_PAUSED_BY_SERVICE +// +// MessageText: +// +// Sync has been delayed due to a throttling request from the service. +// +#define E_SYNCENGINE_SYNC_PAUSED_BY_SERVICE _HRESULT_TYPEDEF_(0x8802B006L) + + +// Sync Engine Stream Resolver Errors + +// +// MessageId: E_SYNCENGINE_FILE_IDENTIFIER_UNKNOWN +// +// MessageText: +// +// We can't seem to find that file. Please try again later. +// +#define E_SYNCENGINE_FILE_IDENTIFIER_UNKNOWN _HRESULT_TYPEDEF_(0x8802C002L) + +// +// MessageId: E_SYNCENGINE_SERVICE_AUTHENTICATION_FAILED +// +// MessageText: +// +// The account you're signed in with doesn't have permission to open this file. +// +#define E_SYNCENGINE_SERVICE_AUTHENTICATION_FAILED _HRESULT_TYPEDEF_(0x8802C003L) + +// +// MessageId: E_SYNCENGINE_UNKNOWN_SERVICE_ERROR +// +// MessageText: +// +// There was a problem connecting to the service. Please try again later. +// +#define E_SYNCENGINE_UNKNOWN_SERVICE_ERROR _HRESULT_TYPEDEF_(0x8802C004L) + +// +// MessageId: E_SYNCENGINE_SERVICE_RETURNED_UNEXPECTED_SIZE +// +// MessageText: +// +// Sorry, there was a problem downloading the file. +// +#define E_SYNCENGINE_SERVICE_RETURNED_UNEXPECTED_SIZE _HRESULT_TYPEDEF_(0x8802C005L) + +// +// MessageId: E_SYNCENGINE_REQUEST_BLOCKED_BY_SERVICE +// +// MessageText: +// +// We're having trouble downloading the file right now. Please try again later. +// +#define E_SYNCENGINE_REQUEST_BLOCKED_BY_SERVICE _HRESULT_TYPEDEF_(0x8802C006L) + +// +// MessageId: E_SYNCENGINE_REQUEST_BLOCKED_DUE_TO_CLIENT_ERROR +// +// MessageText: +// +// We're having trouble downloading the file right now. Please try again later. +// +#define E_SYNCENGINE_REQUEST_BLOCKED_DUE_TO_CLIENT_ERROR _HRESULT_TYPEDEF_(0x8802C007L) + + +// Sync Engine Global Errors + +// +// MessageId: E_SYNCENGINE_FOLDER_INACCESSIBLE +// +// MessageText: +// +// The sync engine does not have permissions to access a local folder under the sync root. +// +#define E_SYNCENGINE_FOLDER_INACCESSIBLE _HRESULT_TYPEDEF_(0x8802D001L) + +// +// MessageId: E_SYNCENGINE_UNSUPPORTED_FOLDER_NAME +// +// MessageText: +// +// The folder name contains invalid characters. +// +#define E_SYNCENGINE_UNSUPPORTED_FOLDER_NAME _HRESULT_TYPEDEF_(0x8802D002L) + +// +// MessageId: E_SYNCENGINE_UNSUPPORTED_MARKET +// +// MessageText: +// +// The sync engine is not allowed to run in your current market. +// +#define E_SYNCENGINE_UNSUPPORTED_MARKET _HRESULT_TYPEDEF_(0x8802D003L) + +// +// MessageId: E_SYNCENGINE_PATH_LENGTH_LIMIT_EXCEEDED +// +// MessageText: +// +// All files and folders can't be uploaded because a path of a file or folder is too long. +// +#define E_SYNCENGINE_PATH_LENGTH_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0x8802D004L) + +// +// MessageId: E_SYNCENGINE_REMOTE_PATH_LENGTH_LIMIT_EXCEEDED +// +// MessageText: +// +// All file and folders cannot be synchronized because a path of a file or folder would exceed the local path limit. +// +#define E_SYNCENGINE_REMOTE_PATH_LENGTH_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0x8802D005L) + +// +// MessageId: E_SYNCENGINE_CLIENT_UPDATE_NEEDED +// +// MessageText: +// +// Updates are needed in order to use the sync engine. +// +#define E_SYNCENGINE_CLIENT_UPDATE_NEEDED _HRESULT_TYPEDEF_(0x8802D006L) + +// +// MessageId: E_SYNCENGINE_PROXY_AUTHENTICATION_REQUIRED +// +// MessageText: +// +// The sync engine needs to authenticate with a proxy server. +// +#define E_SYNCENGINE_PROXY_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(0x8802D007L) + +// +// MessageId: E_SYNCENGINE_STORAGE_SERVICE_PROVISIONING_FAILED +// +// MessageText: +// +// There was a problem setting up the storage services for the account. +// +#define E_SYNCENGINE_STORAGE_SERVICE_PROVISIONING_FAILED _HRESULT_TYPEDEF_(0x8802D008L) + +// +// MessageId: E_SYNCENGINE_UNSUPPORTED_REPARSE_POINT +// +// MessageText: +// +// Files can't be uploaded because there's an unsupported reparse point. +// +#define E_SYNCENGINE_UNSUPPORTED_REPARSE_POINT _HRESULT_TYPEDEF_(0x8802D009L) + +// +// MessageId: E_SYNCENGINE_STORAGE_SERVICE_BLOCKED +// +// MessageText: +// +// The service has blocked your account from accessing the storage service. +// +#define E_SYNCENGINE_STORAGE_SERVICE_BLOCKED _HRESULT_TYPEDEF_(0x8802D00AL) + +// +// MessageId: E_SYNCENGINE_FOLDER_IN_REDIRECTION +// +// MessageText: +// +// The action can't be performed right now because this folder is being moved. Please try again later. +// +#define E_SYNCENGINE_FOLDER_IN_REDIRECTION _HRESULT_TYPEDEF_(0x8802D00BL) + + +// +// EAS +// + +// +// MessageId: EAS_E_POLICY_NOT_MANAGED_BY_OS +// +// MessageText: +// +// Windows cannot evaluate this EAS policy since this is not managed by the operating system. +// +#define EAS_E_POLICY_NOT_MANAGED_BY_OS _HRESULT_TYPEDEF_(0x80550001L) + +// +// MessageId: EAS_E_POLICY_COMPLIANT_WITH_ACTIONS +// +// MessageText: +// +// The system can be made compliant to this EAS policy if certain actions are performed by the user. +// +#define EAS_E_POLICY_COMPLIANT_WITH_ACTIONS _HRESULT_TYPEDEF_(0x80550002L) + +// +// MessageId: EAS_E_REQUESTED_POLICY_NOT_ENFORCEABLE +// +// MessageText: +// +// The EAS policy being evaluated cannot be enforced by the system. +// +#define EAS_E_REQUESTED_POLICY_NOT_ENFORCEABLE _HRESULT_TYPEDEF_(0x80550003L) + +// +// MessageId: EAS_E_CURRENT_USER_HAS_BLANK_PASSWORD +// +// MessageText: +// +// EAS password policies for the user cannot be evaluated as the user has a blank password. +// +#define EAS_E_CURRENT_USER_HAS_BLANK_PASSWORD _HRESULT_TYPEDEF_(0x80550004L) + +// +// MessageId: EAS_E_REQUESTED_POLICY_PASSWORD_EXPIRATION_INCOMPATIBLE +// +// MessageText: +// +// EAS password expiration policy cannot be satisfied as the password expiration interval is less than the minimum password interval of the system. +// +#define EAS_E_REQUESTED_POLICY_PASSWORD_EXPIRATION_INCOMPATIBLE _HRESULT_TYPEDEF_(0x80550005L) + +// +// MessageId: EAS_E_USER_CANNOT_CHANGE_PASSWORD +// +// MessageText: +// +// The user is not allowed to change her password. +// +#define EAS_E_USER_CANNOT_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x80550006L) + +// +// MessageId: EAS_E_ADMINS_HAVE_BLANK_PASSWORD +// +// MessageText: +// +// EAS password policies cannot be evaluated as one or more admins have blank passwords. +// +#define EAS_E_ADMINS_HAVE_BLANK_PASSWORD _HRESULT_TYPEDEF_(0x80550007L) + +// +// MessageId: EAS_E_ADMINS_CANNOT_CHANGE_PASSWORD +// +// MessageText: +// +// One or more admins are not allowed to change their password. +// +#define EAS_E_ADMINS_CANNOT_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x80550008L) + +// +// MessageId: EAS_E_LOCAL_CONTROLLED_USERS_CANNOT_CHANGE_PASSWORD +// +// MessageText: +// +// There are other standard users present who are not allowed to change their password. +// +#define EAS_E_LOCAL_CONTROLLED_USERS_CANNOT_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x80550009L) + +// +// MessageId: EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CONNECTED_ADMINS +// +// MessageText: +// +// The EAS password policy cannot be enforced by the connected account provider of at least one administrator. +// +#define EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CONNECTED_ADMINS _HRESULT_TYPEDEF_(0x8055000AL) + +// +// MessageId: EAS_E_CONNECTED_ADMINS_NEED_TO_CHANGE_PASSWORD +// +// MessageText: +// +// There is at least one administrator whose connected account password needs to be changed for EAS password policy compliance. +// +#define EAS_E_CONNECTED_ADMINS_NEED_TO_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x8055000BL) + +// +// MessageId: EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CURRENT_CONNECTED_USER +// +// MessageText: +// +// The EAS password policy cannot be enforced by the connected account provider of the current user. +// +#define EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CURRENT_CONNECTED_USER _HRESULT_TYPEDEF_(0x8055000CL) + +// +// MessageId: EAS_E_CURRENT_CONNECTED_USER_NEED_TO_CHANGE_PASSWORD +// +// MessageText: +// +// The connected account password of the current user needs to be changed for EAS password policy compliance. +// +#define EAS_E_CURRENT_CONNECTED_USER_NEED_TO_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x8055000DL) + +// +// MessageId: WEB_E_UNSUPPORTED_FORMAT +// +// MessageText: +// +// Unsupported format. +// +#define WEB_E_UNSUPPORTED_FORMAT _HRESULT_TYPEDEF_(0x83750001L) + +// +// MessageId: WEB_E_INVALID_XML +// +// MessageText: +// +// Invalid XML. +// +#define WEB_E_INVALID_XML _HRESULT_TYPEDEF_(0x83750002L) + +// +// MessageId: WEB_E_MISSING_REQUIRED_ELEMENT +// +// MessageText: +// +// Missing required element. +// +#define WEB_E_MISSING_REQUIRED_ELEMENT _HRESULT_TYPEDEF_(0x83750003L) + +// +// MessageId: WEB_E_MISSING_REQUIRED_ATTRIBUTE +// +// MessageText: +// +// Missing required attribute. +// +#define WEB_E_MISSING_REQUIRED_ATTRIBUTE _HRESULT_TYPEDEF_(0x83750004L) + +// +// MessageId: WEB_E_UNEXPECTED_CONTENT +// +// MessageText: +// +// Unexpected content. +// +#define WEB_E_UNEXPECTED_CONTENT _HRESULT_TYPEDEF_(0x83750005L) + +// +// MessageId: WEB_E_RESOURCE_TOO_LARGE +// +// MessageText: +// +// Resource too large. +// +#define WEB_E_RESOURCE_TOO_LARGE _HRESULT_TYPEDEF_(0x83750006L) + +// +// MessageId: WEB_E_INVALID_JSON_STRING +// +// MessageText: +// +// Invalid JSON string. +// +#define WEB_E_INVALID_JSON_STRING _HRESULT_TYPEDEF_(0x83750007L) + +// +// MessageId: WEB_E_INVALID_JSON_NUMBER +// +// MessageText: +// +// Invalid JSON number. +// +#define WEB_E_INVALID_JSON_NUMBER _HRESULT_TYPEDEF_(0x83750008L) + +// +// MessageId: WEB_E_JSON_VALUE_NOT_FOUND +// +// MessageText: +// +// JSON value not found. +// +#define WEB_E_JSON_VALUE_NOT_FOUND _HRESULT_TYPEDEF_(0x83750009L) + +// +// MessageId: HTTP_E_STATUS_UNEXPECTED +// +// MessageText: +// +// Unexpected HTTP status code. +// +#define HTTP_E_STATUS_UNEXPECTED _HRESULT_TYPEDEF_(0x80190001L) + +// +// MessageId: HTTP_E_STATUS_UNEXPECTED_REDIRECTION +// +// MessageText: +// +// Unexpected redirection status code (3xx). +// +#define HTTP_E_STATUS_UNEXPECTED_REDIRECTION _HRESULT_TYPEDEF_(0x80190003L) + +// +// MessageId: HTTP_E_STATUS_UNEXPECTED_CLIENT_ERROR +// +// MessageText: +// +// Unexpected client error status code (4xx). +// +#define HTTP_E_STATUS_UNEXPECTED_CLIENT_ERROR _HRESULT_TYPEDEF_(0x80190004L) + +// +// MessageId: HTTP_E_STATUS_UNEXPECTED_SERVER_ERROR +// +// MessageText: +// +// Unexpected server error status code (5xx). +// +#define HTTP_E_STATUS_UNEXPECTED_SERVER_ERROR _HRESULT_TYPEDEF_(0x80190005L) + +// +// MessageId: HTTP_E_STATUS_AMBIGUOUS +// +// MessageText: +// +// Multiple choices (300). +// +#define HTTP_E_STATUS_AMBIGUOUS _HRESULT_TYPEDEF_(0x8019012CL) + +// +// MessageId: HTTP_E_STATUS_MOVED +// +// MessageText: +// +// Moved permanently (301). +// +#define HTTP_E_STATUS_MOVED _HRESULT_TYPEDEF_(0x8019012DL) + +// +// MessageId: HTTP_E_STATUS_REDIRECT +// +// MessageText: +// +// Found (302). +// +#define HTTP_E_STATUS_REDIRECT _HRESULT_TYPEDEF_(0x8019012EL) + +// +// MessageId: HTTP_E_STATUS_REDIRECT_METHOD +// +// MessageText: +// +// See Other (303). +// +#define HTTP_E_STATUS_REDIRECT_METHOD _HRESULT_TYPEDEF_(0x8019012FL) + +// +// MessageId: HTTP_E_STATUS_NOT_MODIFIED +// +// MessageText: +// +// Not modified (304). +// +#define HTTP_E_STATUS_NOT_MODIFIED _HRESULT_TYPEDEF_(0x80190130L) + +// +// MessageId: HTTP_E_STATUS_USE_PROXY +// +// MessageText: +// +// Use proxy (305). +// +#define HTTP_E_STATUS_USE_PROXY _HRESULT_TYPEDEF_(0x80190131L) + +// +// MessageId: HTTP_E_STATUS_REDIRECT_KEEP_VERB +// +// MessageText: +// +// Temporary redirect (307). +// +#define HTTP_E_STATUS_REDIRECT_KEEP_VERB _HRESULT_TYPEDEF_(0x80190133L) + +// +// MessageId: HTTP_E_STATUS_BAD_REQUEST +// +// MessageText: +// +// Bad request (400). +// +#define HTTP_E_STATUS_BAD_REQUEST _HRESULT_TYPEDEF_(0x80190190L) + +// +// MessageId: HTTP_E_STATUS_DENIED +// +// MessageText: +// +// Unauthorized (401). +// +#define HTTP_E_STATUS_DENIED _HRESULT_TYPEDEF_(0x80190191L) + +// +// MessageId: HTTP_E_STATUS_PAYMENT_REQ +// +// MessageText: +// +// Payment required (402). +// +#define HTTP_E_STATUS_PAYMENT_REQ _HRESULT_TYPEDEF_(0x80190192L) + +// +// MessageId: HTTP_E_STATUS_FORBIDDEN +// +// MessageText: +// +// Forbidden (403). +// +#define HTTP_E_STATUS_FORBIDDEN _HRESULT_TYPEDEF_(0x80190193L) + +// +// MessageId: HTTP_E_STATUS_NOT_FOUND +// +// MessageText: +// +// Not found (404). +// +#define HTTP_E_STATUS_NOT_FOUND _HRESULT_TYPEDEF_(0x80190194L) + +// +// MessageId: HTTP_E_STATUS_BAD_METHOD +// +// MessageText: +// +// Method not allowed (405). +// +#define HTTP_E_STATUS_BAD_METHOD _HRESULT_TYPEDEF_(0x80190195L) + +// +// MessageId: HTTP_E_STATUS_NONE_ACCEPTABLE +// +// MessageText: +// +// Not acceptable (406). +// +#define HTTP_E_STATUS_NONE_ACCEPTABLE _HRESULT_TYPEDEF_(0x80190196L) + +// +// MessageId: HTTP_E_STATUS_PROXY_AUTH_REQ +// +// MessageText: +// +// Proxy authentication required (407). +// +#define HTTP_E_STATUS_PROXY_AUTH_REQ _HRESULT_TYPEDEF_(0x80190197L) + +// +// MessageId: HTTP_E_STATUS_REQUEST_TIMEOUT +// +// MessageText: +// +// Request timeout (408). +// +#define HTTP_E_STATUS_REQUEST_TIMEOUT _HRESULT_TYPEDEF_(0x80190198L) + +// +// MessageId: HTTP_E_STATUS_CONFLICT +// +// MessageText: +// +// Conflict (409). +// +#define HTTP_E_STATUS_CONFLICT _HRESULT_TYPEDEF_(0x80190199L) + +// +// MessageId: HTTP_E_STATUS_GONE +// +// MessageText: +// +// Gone (410). +// +#define HTTP_E_STATUS_GONE _HRESULT_TYPEDEF_(0x8019019AL) + +// +// MessageId: HTTP_E_STATUS_LENGTH_REQUIRED +// +// MessageText: +// +// Length required (411). +// +#define HTTP_E_STATUS_LENGTH_REQUIRED _HRESULT_TYPEDEF_(0x8019019BL) + +// +// MessageId: HTTP_E_STATUS_PRECOND_FAILED +// +// MessageText: +// +// Precondition failed (412). +// +#define HTTP_E_STATUS_PRECOND_FAILED _HRESULT_TYPEDEF_(0x8019019CL) + +// +// MessageId: HTTP_E_STATUS_REQUEST_TOO_LARGE +// +// MessageText: +// +// Request entity too large (413). +// +#define HTTP_E_STATUS_REQUEST_TOO_LARGE _HRESULT_TYPEDEF_(0x8019019DL) + +// +// MessageId: HTTP_E_STATUS_URI_TOO_LONG +// +// MessageText: +// +// Request-URI too long (414). +// +#define HTTP_E_STATUS_URI_TOO_LONG _HRESULT_TYPEDEF_(0x8019019EL) + +// +// MessageId: HTTP_E_STATUS_UNSUPPORTED_MEDIA +// +// MessageText: +// +// Unsupported media type (415). +// +#define HTTP_E_STATUS_UNSUPPORTED_MEDIA _HRESULT_TYPEDEF_(0x8019019FL) + +// +// MessageId: HTTP_E_STATUS_RANGE_NOT_SATISFIABLE +// +// MessageText: +// +// Requested range not satisfiable (416). +// +#define HTTP_E_STATUS_RANGE_NOT_SATISFIABLE _HRESULT_TYPEDEF_(0x801901A0L) + +// +// MessageId: HTTP_E_STATUS_EXPECTATION_FAILED +// +// MessageText: +// +// Expectation failed (417). +// +#define HTTP_E_STATUS_EXPECTATION_FAILED _HRESULT_TYPEDEF_(0x801901A1L) + +// +// MessageId: HTTP_E_STATUS_SERVER_ERROR +// +// MessageText: +// +// Internal server error (500). +// +#define HTTP_E_STATUS_SERVER_ERROR _HRESULT_TYPEDEF_(0x801901F4L) + +// +// MessageId: HTTP_E_STATUS_NOT_SUPPORTED +// +// MessageText: +// +// Not implemented (501). +// +#define HTTP_E_STATUS_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x801901F5L) + +// +// MessageId: HTTP_E_STATUS_BAD_GATEWAY +// +// MessageText: +// +// Bad gateway (502). +// +#define HTTP_E_STATUS_BAD_GATEWAY _HRESULT_TYPEDEF_(0x801901F6L) + +// +// MessageId: HTTP_E_STATUS_SERVICE_UNAVAIL +// +// MessageText: +// +// Service unavailable (503). +// +#define HTTP_E_STATUS_SERVICE_UNAVAIL _HRESULT_TYPEDEF_(0x801901F7L) + +// +// MessageId: HTTP_E_STATUS_GATEWAY_TIMEOUT +// +// MessageText: +// +// Gateway timeout (504). +// +#define HTTP_E_STATUS_GATEWAY_TIMEOUT _HRESULT_TYPEDEF_(0x801901F8L) + +// +// MessageId: HTTP_E_STATUS_VERSION_NOT_SUP +// +// MessageText: +// +// Version not supported (505). +// +#define HTTP_E_STATUS_VERSION_NOT_SUP _HRESULT_TYPEDEF_(0x801901F9L) + + +// +// WebSocket +// + +// +// MessageId: E_INVALID_PROTOCOL_OPERATION +// +// MessageText: +// +// Invalid operation performed by the protocol. +// +#define E_INVALID_PROTOCOL_OPERATION _HRESULT_TYPEDEF_(0x83760001L) + +// +// MessageId: E_INVALID_PROTOCOL_FORMAT +// +// MessageText: +// +// Invalid data format for the specific protocol operation. +// +#define E_INVALID_PROTOCOL_FORMAT _HRESULT_TYPEDEF_(0x83760002L) + +// +// MessageId: E_PROTOCOL_EXTENSIONS_NOT_SUPPORTED +// +// MessageText: +// +// Protocol extensions are not supported. +// +#define E_PROTOCOL_EXTENSIONS_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x83760003L) + +// +// MessageId: E_SUBPROTOCOL_NOT_SUPPORTED +// +// MessageText: +// +// Subprotocol is not supported. +// +#define E_SUBPROTOCOL_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x83760004L) + +// +// MessageId: E_PROTOCOL_VERSION_NOT_SUPPORTED +// +// MessageText: +// +// Incorrect protocol version. +// +#define E_PROTOCOL_VERSION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x83760005L) + + +// +// Touch and Pen Input Platform Error Codes +// + +// +// MessageId: INPUT_E_OUT_OF_ORDER +// +// MessageText: +// +// Input data cannot be processed in the non-chronological order. +// +#define INPUT_E_OUT_OF_ORDER _HRESULT_TYPEDEF_(0x80400000L) + +// +// MessageId: INPUT_E_REENTRANCY +// +// MessageText: +// +// Requested operation cannot be performed inside the callback or event handler. +// +#define INPUT_E_REENTRANCY _HRESULT_TYPEDEF_(0x80400001L) + +// +// MessageId: INPUT_E_MULTIMODAL +// +// MessageText: +// +// Input cannot be processed because there is ongoing interaction with another pointer type. +// +#define INPUT_E_MULTIMODAL _HRESULT_TYPEDEF_(0x80400002L) + +// +// MessageId: INPUT_E_PACKET +// +// MessageText: +// +// One or more fields in the input packet are invalid. +// +#define INPUT_E_PACKET _HRESULT_TYPEDEF_(0x80400003L) + +// +// MessageId: INPUT_E_FRAME +// +// MessageText: +// +// Packets in the frame are inconsistent. Either pointer ids are not unique or there is a discrepancy in timestamps, frame ids, pointer types or source devices. +// +#define INPUT_E_FRAME _HRESULT_TYPEDEF_(0x80400004L) + +// +// MessageId: INPUT_E_HISTORY +// +// MessageText: +// +// The history of frames is inconsistent. Pointer ids, types, source devices don't match, or frame ids are not unique, or timestamps are out of order. +// +#define INPUT_E_HISTORY _HRESULT_TYPEDEF_(0x80400005L) + +// +// MessageId: INPUT_E_DEVICE_INFO +// +// MessageText: +// +// Failed to retrieve information about the input device. +// +#define INPUT_E_DEVICE_INFO _HRESULT_TYPEDEF_(0x80400006L) + +// +// MessageId: INPUT_E_TRANSFORM +// +// MessageText: +// +// Coordinate system transformation failed to transform the data. +// +#define INPUT_E_TRANSFORM _HRESULT_TYPEDEF_(0x80400007L) + +// +// MessageId: INPUT_E_DEVICE_PROPERTY +// +// MessageText: +// +// The property is not supported or not reported correctly by the input device. +// +#define INPUT_E_DEVICE_PROPERTY _HRESULT_TYPEDEF_(0x80400008L) + +// +// Internet +// +// +// MessageId: INET_E_INVALID_URL +// +// MessageText: +// +// The URL is invalid. +// +#define INET_E_INVALID_URL _HRESULT_TYPEDEF_(0x800C0002L) + +// +// MessageId: INET_E_NO_SESSION +// +// MessageText: +// +// No Internet session has been established. +// +#define INET_E_NO_SESSION _HRESULT_TYPEDEF_(0x800C0003L) + +// +// MessageId: INET_E_CANNOT_CONNECT +// +// MessageText: +// +// Unable to connect to the target server. +// +#define INET_E_CANNOT_CONNECT _HRESULT_TYPEDEF_(0x800C0004L) + +// +// MessageId: INET_E_RESOURCE_NOT_FOUND +// +// MessageText: +// +// The system cannot locate the resource specified. +// +#define INET_E_RESOURCE_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0005L) + +// +// MessageId: INET_E_OBJECT_NOT_FOUND +// +// MessageText: +// +// The system cannot locate the object specified. +// +#define INET_E_OBJECT_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0006L) + +// +// MessageId: INET_E_DATA_NOT_AVAILABLE +// +// MessageText: +// +// No data is available for the requested resource. +// +#define INET_E_DATA_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x800C0007L) + +// +// MessageId: INET_E_DOWNLOAD_FAILURE +// +// MessageText: +// +// The download of the specified resource has failed. +// +#define INET_E_DOWNLOAD_FAILURE _HRESULT_TYPEDEF_(0x800C0008L) + +// +// MessageId: INET_E_AUTHENTICATION_REQUIRED +// +// MessageText: +// +// Authentication is required to access this resource. +// +#define INET_E_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(0x800C0009L) + +// +// MessageId: INET_E_NO_VALID_MEDIA +// +// MessageText: +// +// The server could not recognize the provided mime type. +// +#define INET_E_NO_VALID_MEDIA _HRESULT_TYPEDEF_(0x800C000AL) + +// +// MessageId: INET_E_CONNECTION_TIMEOUT +// +// MessageText: +// +// The operation was timed out. +// +#define INET_E_CONNECTION_TIMEOUT _HRESULT_TYPEDEF_(0x800C000BL) + +// +// MessageId: INET_E_INVALID_REQUEST +// +// MessageText: +// +// The server did not understand the request, or the request was invalid. +// +#define INET_E_INVALID_REQUEST _HRESULT_TYPEDEF_(0x800C000CL) + +// +// MessageId: INET_E_UNKNOWN_PROTOCOL +// +// MessageText: +// +// The specified protocol is unknown. +// +#define INET_E_UNKNOWN_PROTOCOL _HRESULT_TYPEDEF_(0x800C000DL) + +// +// MessageId: INET_E_SECURITY_PROBLEM +// +// MessageText: +// +// A security problem occurred. +// +#define INET_E_SECURITY_PROBLEM _HRESULT_TYPEDEF_(0x800C000EL) + +// +// MessageId: INET_E_CANNOT_LOAD_DATA +// +// MessageText: +// +// The system could not load the persisted data. +// +#define INET_E_CANNOT_LOAD_DATA _HRESULT_TYPEDEF_(0x800C000FL) + +// +// MessageId: INET_E_CANNOT_INSTANTIATE_OBJECT +// +// MessageText: +// +// Unable to instantiate the object. +// +#define INET_E_CANNOT_INSTANTIATE_OBJECT _HRESULT_TYPEDEF_(0x800C0010L) + +// +// MessageId: INET_E_INVALID_CERTIFICATE +// +// MessageText: +// +// Security certificate required to access this resource is invalid. +// +#define INET_E_INVALID_CERTIFICATE _HRESULT_TYPEDEF_(0x800C0019L) + +// +// MessageId: INET_E_REDIRECT_FAILED +// +// MessageText: +// +// A redirection problem occurred. +// +#define INET_E_REDIRECT_FAILED _HRESULT_TYPEDEF_(0x800C0014L) + +// +// MessageId: INET_E_REDIRECT_TO_DIR +// +// MessageText: +// +// The requested resource is a directory, not a file. +// +#define INET_E_REDIRECT_TO_DIR _HRESULT_TYPEDEF_(0x800C0015L) + +// +// Debuggers +// +// +// MessageId: ERROR_DBG_CREATE_PROCESS_FAILURE_LOCKDOWN +// +// MessageText: +// +// Could not create new process from ARM architecture device. +// +#define ERROR_DBG_CREATE_PROCESS_FAILURE_LOCKDOWN _HRESULT_TYPEDEF_(0x80B00001L) + +// +// MessageId: ERROR_DBG_ATTACH_PROCESS_FAILURE_LOCKDOWN +// +// MessageText: +// +// Could not attach to the application process from ARM architecture device. +// +#define ERROR_DBG_ATTACH_PROCESS_FAILURE_LOCKDOWN _HRESULT_TYPEDEF_(0x80B00002L) + +// +// MessageId: ERROR_DBG_CONNECT_SERVER_FAILURE_LOCKDOWN +// +// MessageText: +// +// Could not connect to dbgsrv server from ARM architecture device. +// +#define ERROR_DBG_CONNECT_SERVER_FAILURE_LOCKDOWN _HRESULT_TYPEDEF_(0x80B00003L) + +// +// MessageId: ERROR_DBG_START_SERVER_FAILURE_LOCKDOWN +// +// MessageText: +// +// Could not start dbgsrv server from ARM architecture device. +// +#define ERROR_DBG_START_SERVER_FAILURE_LOCKDOWN _HRESULT_TYPEDEF_(0x80B00004L) + +// +// HSP Services Error Messages +// +// The following are subranges within the HSP Services facility. +// +// 0x0000 - 0x0fff HSP Hardware errors +// 0x1000 - 0x10ff HSP Base Services errors +// +// HSP Hardware errors {0x0000..0x0fff} +// +// +// MessageId: HSP_E_ERROR_MASK +// +// MessageText: +// +// This is an error mask to convert HSP hardware errors to Win errors. +// +#define HSP_E_ERROR_MASK _HRESULT_TYPEDEF_(0x81280000L) + +// +// MessageId: HSP_E_INTERNAL_ERROR +// +// MessageText: +// +// Catastrophic internal failure in the HSP hardware. +// +#define HSP_E_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x81280FFFL) + +// +// HSP Base Services errors {0x1000..0x10ff} +// +// +// MessageId: HSP_BS_ERROR_MASK +// +// MessageText: +// +// This is an error mask to convert HSP base services errors to Win errors. +// +#define HSP_BS_ERROR_MASK _HRESULT_TYPEDEF_(0x81281000L) + +// +// MessageId: HSP_BS_INTERNAL_ERROR +// +// MessageText: +// +// Catastrophic internal failure in the HSP base services. +// +#define HSP_BS_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x812810FFL) + +// +// HSP Software Error Messages +// +// The following are subranges within the HSP Software facility. +// +// 0x0000 - 0x00ff HSP driver errors (hsp.sys) +// 0x0100 - 0x01ff HSP base class errors (hspbase.dll) +// 0x0200 - 0x02ff HSP Key Storage Provider errors (hspksp.dll) +// +// HSP driver errors {0x0000..0x000ff} +// +// +// MessageId: HSP_DRV_ERROR_MASK +// +// MessageText: +// +// This is an error mask to convert HSP driver errors to Win errors. +// +#define HSP_DRV_ERROR_MASK _HRESULT_TYPEDEF_(0x81290000L) + +// +// MessageId: HSP_DRV_INTERNAL_ERROR +// +// MessageText: +// +// Catastrophic internal failure in the HSP driver. +// +#define HSP_DRV_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x812900FFL) + +// +// HSP base class errors {0x0100..0x001ff} +// +// +// MessageId: HSP_BASE_ERROR_MASK +// +// MessageText: +// +// This is an error mask to convert HSP base class errors to Win errors. +// +#define HSP_BASE_ERROR_MASK _HRESULT_TYPEDEF_(0x81290100L) + +// +// MessageId: HSP_BASE_INTERNAL_ERROR +// +// MessageText: +// +// Catastrophic internal failure in the HSP base class. +// +#define HSP_BASE_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x812901FFL) + +// +// HSP Key Storage Provider errors {0x0200..0x002ff} +// +// +// MessageId: HSP_KSP_ERROR_MASK +// +// MessageText: +// +// This is an error mask to convert HSP KSP errors to Win errors. +// +#define HSP_KSP_ERROR_MASK _HRESULT_TYPEDEF_(0x81290200L) + +// +// MessageId: HSP_KSP_DEVICE_NOT_READY +// +// MessageText: +// +// The Pluton processor is currently not ready for use. +// +#define HSP_KSP_DEVICE_NOT_READY _HRESULT_TYPEDEF_(0x81290201L) + +// +// MessageId: HSP_KSP_INVALID_PROVIDER_HANDLE +// +// MessageText: +// +// The handle to the HSP KSP is invalid. +// +#define HSP_KSP_INVALID_PROVIDER_HANDLE _HRESULT_TYPEDEF_(0x81290202L) + +// +// MessageId: HSP_KSP_INVALID_KEY_HANDLE +// +// MessageText: +// +// The handle to a key stored by the HSP KSP is invalid. +// +#define HSP_KSP_INVALID_KEY_HANDLE _HRESULT_TYPEDEF_(0x81290203L) + +// +// MessageId: HSP_KSP_INVALID_PARAMETER +// +// MessageText: +// +// A parameter to the HSP KSP was invalid. +// +#define HSP_KSP_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x81290204L) + +// +// MessageId: HSP_KSP_BUFFER_TOO_SMALL +// +// MessageText: +// +// The supplied buffer is too small. +// +#define HSP_KSP_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x81290205L) + +// +// MessageId: HSP_KSP_NOT_SUPPORTED +// +// MessageText: +// +// The requested operation is not supported. +// +#define HSP_KSP_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x81290206L) + +// +// MessageId: HSP_KSP_INVALID_DATA +// +// MessageText: +// +// The provided data is invalid. +// +#define HSP_KSP_INVALID_DATA _HRESULT_TYPEDEF_(0x81290207L) + +// +// MessageId: HSP_KSP_INVALID_FLAGS +// +// MessageText: +// +// The provided flags are invalid. +// +#define HSP_KSP_INVALID_FLAGS _HRESULT_TYPEDEF_(0x81290208L) + +// +// MessageId: HSP_KSP_ALGORITHM_NOT_SUPPORTED +// +// MessageText: +// +// The algorithm identifier is not supported. +// +#define HSP_KSP_ALGORITHM_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x81290209L) + +// +// MessageId: HSP_KSP_KEY_ALREADY_FINALIZED +// +// MessageText: +// +// The key has already been finalized. +// +#define HSP_KSP_KEY_ALREADY_FINALIZED _HRESULT_TYPEDEF_(0x8129020AL) + +// +// MessageId: HSP_KSP_KEY_NOT_FINALIZED +// +// MessageText: +// +// The key has not been finalized. +// +#define HSP_KSP_KEY_NOT_FINALIZED _HRESULT_TYPEDEF_(0x8129020BL) + +// +// MessageId: HSP_KSP_INVALID_KEY_TYPE +// +// MessageText: +// +// The key does not support the requested operation. +// +#define HSP_KSP_INVALID_KEY_TYPE _HRESULT_TYPEDEF_(0x8129020CL) + +// +// MessageId: HSP_KSP_NO_MEMORY +// +// MessageText: +// +// There is not enough memory for the operation. +// +#define HSP_KSP_NO_MEMORY _HRESULT_TYPEDEF_(0x81290210L) + +// +// MessageId: HSP_KSP_PARAMETER_NOT_SET +// +// MessageText: +// +// The parameter has not been set and has no default value. +// +#define HSP_KSP_PARAMETER_NOT_SET _HRESULT_TYPEDEF_(0x81290211L) + +// +// MessageId: HSP_KSP_KEY_EXISTS +// +// MessageText: +// +// Key object already exists. +// +#define HSP_KSP_KEY_EXISTS _HRESULT_TYPEDEF_(0x81290215L) + +// +// MessageId: HSP_KSP_KEY_MISSING +// +// MessageText: +// +// The requsted key object does not exist. +// +#define HSP_KSP_KEY_MISSING _HRESULT_TYPEDEF_(0x81290216L) + +// +// MessageId: HSP_KSP_KEY_LOAD_FAIL +// +// MessageText: +// +// Failed to load the requested key. +// +#define HSP_KSP_KEY_LOAD_FAIL _HRESULT_TYPEDEF_(0x81290217L) + +// +// MessageId: HSP_KSP_NO_MORE_ITEMS +// +// MessageText: +// +// No more data is available. +// +#define HSP_KSP_NO_MORE_ITEMS _HRESULT_TYPEDEF_(0x81290218L) + +// +// MessageId: HSP_KSP_INTERNAL_ERROR +// +// MessageText: +// +// Catastrophic internal failure in the HSP KSP. +// +#define HSP_KSP_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x812902FFL) + +// +//Sdbus +// +// +// MessageId: ERROR_IO_PREEMPTED +// +// MessageText: +// +// The operation was preempted by a higher priority operation. It must be resumed later. +// +#define ERROR_IO_PREEMPTED _HRESULT_TYPEDEF_(0x89010001L) + +// +//JScript +// +// +// MessageId: JSCRIPT_E_CANTEXECUTE +// +// MessageText: +// +// Function could not execute because it was deleted or garbage collected. +// +#define JSCRIPT_E_CANTEXECUTE _HRESULT_TYPEDEF_(0x89020001L) + +// +//WEP - Windows Encryption Providers +// +// +// MessageId: WEP_E_NOT_PROVISIONED_ON_ALL_VOLUMES +// +// MessageText: +// +// One or more fixed volumes are not provisioned with the 3rd party encryption providers to support device encryption. Enable encryption with the 3rd party provider to comply with policy. +// +#define WEP_E_NOT_PROVISIONED_ON_ALL_VOLUMES _HRESULT_TYPEDEF_(0x88010001L) + +// +// MessageId: WEP_E_FIXED_DATA_NOT_SUPPORTED +// +// MessageText: +// +// This computer is not fully encrypted. There are fixed volumes present which are not supported for encryption. +// +#define WEP_E_FIXED_DATA_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x88010002L) + +// +// MessageId: WEP_E_HARDWARE_NOT_COMPLIANT +// +// MessageText: +// +// This computer does not meet the hardware requirements to support device encryption with the installed 3rd party provider. +// +#define WEP_E_HARDWARE_NOT_COMPLIANT _HRESULT_TYPEDEF_(0x88010003L) + +// +//device lock feature - requires encryption software to use something like a TPM or a secure location to store failed counts of the password in an interactive logon to lock out the device +// +// +// MessageId: WEP_E_LOCK_NOT_CONFIGURED +// +// MessageText: +// +// This computer cannot support device encryption because the requisites for the device lock feature are not configured. +// +#define WEP_E_LOCK_NOT_CONFIGURED _HRESULT_TYPEDEF_(0x88010004L) + +// +// MessageId: WEP_E_PROTECTION_SUSPENDED +// +// MessageText: +// +// Protection is enabled on this volume but is not in the active state. +// +#define WEP_E_PROTECTION_SUSPENDED _HRESULT_TYPEDEF_(0x88010005L) + +// +// MessageId: WEP_E_NO_LICENSE +// +// MessageText: +// +// The 3rd party provider has been installed, but cannot activate encryption because a license has not been activated. +// +#define WEP_E_NO_LICENSE _HRESULT_TYPEDEF_(0x88010006L) + +// +// MessageId: WEP_E_OS_NOT_PROTECTED +// +// MessageText: +// +// The operating system drive is not protected by 3rd party drive encryption. +// +#define WEP_E_OS_NOT_PROTECTED _HRESULT_TYPEDEF_(0x88010007L) + +// +// MessageId: WEP_E_UNEXPECTED_FAIL +// +// MessageText: +// +// Unexpected failure was encountered while calling into the 3rd Party drive encryption plugin. +// +#define WEP_E_UNEXPECTED_FAIL _HRESULT_TYPEDEF_(0x88010008L) + +// +// MessageId: WEP_E_BUFFER_TOO_LARGE +// +// MessageText: +// +// The input buffer size for the lockout metadata used by the 3rd party drive encryption is too large. +// +#define WEP_E_BUFFER_TOO_LARGE _HRESULT_TYPEDEF_(0x88010009L) + +// +// Shared VHDX status codes (svhdxflt.sys) +// +// +// MessageId: ERROR_SVHDX_ERROR_STORED +// +// MessageText: +// +// The proper error code with sense data was stored on server side. +// +#define ERROR_SVHDX_ERROR_STORED _HRESULT_TYPEDEF_(0xC05C0000L) + +// +// MessageId: ERROR_SVHDX_ERROR_NOT_AVAILABLE +// +// MessageText: +// +// The requested error data is not available on the server. +// +#define ERROR_SVHDX_ERROR_NOT_AVAILABLE _HRESULT_TYPEDEF_(0xC05CFF00L) + +// +// MessageId: ERROR_SVHDX_UNIT_ATTENTION_AVAILABLE +// +// MessageText: +// +// Unit Attention data is available for the initiator to query. +// +#define ERROR_SVHDX_UNIT_ATTENTION_AVAILABLE _HRESULT_TYPEDEF_(0xC05CFF01L) + +// +// MessageId: ERROR_SVHDX_UNIT_ATTENTION_CAPACITY_DATA_CHANGED +// +// MessageText: +// +// The data capacity of the device has changed, resulting in a Unit Attention condition. +// +#define ERROR_SVHDX_UNIT_ATTENTION_CAPACITY_DATA_CHANGED _HRESULT_TYPEDEF_(0xC05CFF02L) + +// +// MessageId: ERROR_SVHDX_UNIT_ATTENTION_RESERVATIONS_PREEMPTED +// +// MessageText: +// +// A previous operation resulted in this initiator's reservations being preempted, resulting in a Unit Attention condition. +// +#define ERROR_SVHDX_UNIT_ATTENTION_RESERVATIONS_PREEMPTED _HRESULT_TYPEDEF_(0xC05CFF03L) + +// +// MessageId: ERROR_SVHDX_UNIT_ATTENTION_RESERVATIONS_RELEASED +// +// MessageText: +// +// A previous operation resulted in this initiator's reservations being released, resulting in a Unit Attention condition. +// +#define ERROR_SVHDX_UNIT_ATTENTION_RESERVATIONS_RELEASED _HRESULT_TYPEDEF_(0xC05CFF04L) + +// +// MessageId: ERROR_SVHDX_UNIT_ATTENTION_REGISTRATIONS_PREEMPTED +// +// MessageText: +// +// A previous operation resulted in this initiator's registrations being preempted, resulting in a Unit Attention condition. +// +#define ERROR_SVHDX_UNIT_ATTENTION_REGISTRATIONS_PREEMPTED _HRESULT_TYPEDEF_(0xC05CFF05L) + +// +// MessageId: ERROR_SVHDX_UNIT_ATTENTION_OPERATING_DEFINITION_CHANGED +// +// MessageText: +// +// The data storage format of the device has changed, resulting in a Unit Attention condition. +// +#define ERROR_SVHDX_UNIT_ATTENTION_OPERATING_DEFINITION_CHANGED _HRESULT_TYPEDEF_(0xC05CFF06L) + +// +// MessageId: ERROR_SVHDX_RESERVATION_CONFLICT +// +// MessageText: +// +// The current initiator is not allowed to perform the SCSI command because of a reservation conflict. +// +#define ERROR_SVHDX_RESERVATION_CONFLICT _HRESULT_TYPEDEF_(0xC05CFF07L) + +// +// MessageId: ERROR_SVHDX_WRONG_FILE_TYPE +// +// MessageText: +// +// Multiple virtual machines sharing a virtual hard disk is supported only on Fixed or Dynamic VHDX format virtual hard disks. +// +#define ERROR_SVHDX_WRONG_FILE_TYPE _HRESULT_TYPEDEF_(0xC05CFF08L) + +// +// MessageId: ERROR_SVHDX_VERSION_MISMATCH +// +// MessageText: +// +// The server version does not match the requested version. +// +#define ERROR_SVHDX_VERSION_MISMATCH _HRESULT_TYPEDEF_(0xC05CFF09L) + +// +// MessageId: ERROR_VHD_SHARED +// +// MessageText: +// +// The requested operation cannot be performed on the virtual disk as it is currently used in shared mode. +// +#define ERROR_VHD_SHARED _HRESULT_TYPEDEF_(0xC05CFF0AL) + +// +// MessageId: ERROR_SVHDX_NO_INITIATOR +// +// MessageText: +// +// Invalid Shared VHDX open due to lack of initiator ID. Check for related Continuous Availability failures. +// +#define ERROR_SVHDX_NO_INITIATOR _HRESULT_TYPEDEF_(0xC05CFF0BL) + +// +// MessageId: ERROR_VHDSET_BACKING_STORAGE_NOT_FOUND +// +// MessageText: +// +// The requested operation failed due to a missing backing storage file. +// +#define ERROR_VHDSET_BACKING_STORAGE_NOT_FOUND _HRESULT_TYPEDEF_(0xC05CFF0CL) + +// +// SMB status codes +// +// +// MessageId: ERROR_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP +// +// MessageText: +// +// Failed to negotiate a preauthentication integrity hash function. +// +#define ERROR_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP _HRESULT_TYPEDEF_(0xC05D0000L) + +// +// MessageId: ERROR_SMB_BAD_CLUSTER_DIALECT +// +// MessageText: +// +// The current cluster functional level does not support this SMB dialect. +// +#define ERROR_SMB_BAD_CLUSTER_DIALECT _HRESULT_TYPEDEF_(0xC05D0001L) + +// +// MessageId: ERROR_SMB_NO_SIGNING_ALGORITHM_OVERLAP +// +// MessageText: +// +// Failed to negotiate a signing hash function. +// +#define ERROR_SMB_NO_SIGNING_ALGORITHM_OVERLAP _HRESULT_TYPEDEF_(0xC05D0002L) + +// +// MessageId: ERROR_SMB_GUEST_LOGON_BLOCKED_SIGNING_REQUIRED +// +// MessageText: +// +// You can't access this shared folder because your computer is configured to require SMB signing. These policies help protect your PC from unsafe or malicious devices on the network. +// +#define ERROR_SMB_GUEST_LOGON_BLOCKED_SIGNING_REQUIRED _HRESULT_TYPEDEF_(0xC05D0003L) + +// +// MessageId: ERROR_SMB_GUEST_ENCRYPTION_NOT_SUPPORTED +// +// MessageText: +// +// The requested operation failed. Encryption is not supported for guest access. +// +#define ERROR_SMB_GUEST_ENCRYPTION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC05D0004L) + +// +// MessageId: ERROR_SMB_ENCRYPTION_NOT_SUPPORTED_BY_PEER +// +// MessageText: +// +// The requested operation failed. Encryption is not supported on SMB server. +// +#define ERROR_SMB_ENCRYPTION_NOT_SUPPORTED_BY_PEER _HRESULT_TYPEDEF_(0xC05D0005L) + +// +// MessageId: ERROR_SMB_CERT_NO_PRIVATE_KEY +// +// MessageText: +// +// The certificate does not have a private key. +// +#define ERROR_SMB_CERT_NO_PRIVATE_KEY _HRESULT_TYPEDEF_(0xC05D0006L) + +// +// MessageId: ERROR_SMB_TLS_ACCESS_DENIED +// +// MessageText: +// +// The SMB client was denied access to the SMB server during mutual authentication. +// +#define ERROR_SMB_TLS_ACCESS_DENIED _HRESULT_TYPEDEF_(0xC05D0007L) + +// +// WININET.DLL errors - propagated as HRESULT's using FACILITY=WIN32 +// +// +// MessageId: WININET_E_OUT_OF_HANDLES +// +// MessageText: +// +// No more Internet handles can be allocated +// +#define WININET_E_OUT_OF_HANDLES _HRESULT_TYPEDEF_(0x80072EE1L) + +// +// MessageId: WININET_E_TIMEOUT +// +// MessageText: +// +// The operation timed out +// +#define WININET_E_TIMEOUT _HRESULT_TYPEDEF_(0x80072EE2L) + +// +// MessageId: WININET_E_EXTENDED_ERROR +// +// MessageText: +// +// The server returned extended information +// +#define WININET_E_EXTENDED_ERROR _HRESULT_TYPEDEF_(0x80072EE3L) + +// +// MessageId: WININET_E_INTERNAL_ERROR +// +// MessageText: +// +// An internal error occurred in the Microsoft Internet extensions +// +#define WININET_E_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80072EE4L) + +// +// MessageId: WININET_E_INVALID_URL +// +// MessageText: +// +// The URL is invalid +// +#define WININET_E_INVALID_URL _HRESULT_TYPEDEF_(0x80072EE5L) + +// +// MessageId: WININET_E_UNRECOGNIZED_SCHEME +// +// MessageText: +// +// The URL does not use a recognized protocol +// +#define WININET_E_UNRECOGNIZED_SCHEME _HRESULT_TYPEDEF_(0x80072EE6L) + +// +// MessageId: WININET_E_NAME_NOT_RESOLVED +// +// MessageText: +// +// The server name or address could not be resolved +// +#define WININET_E_NAME_NOT_RESOLVED _HRESULT_TYPEDEF_(0x80072EE7L) + +// +// MessageId: WININET_E_PROTOCOL_NOT_FOUND +// +// MessageText: +// +// A protocol with the required capabilities was not found +// +#define WININET_E_PROTOCOL_NOT_FOUND _HRESULT_TYPEDEF_(0x80072EE8L) + +// +// MessageId: WININET_E_INVALID_OPTION +// +// MessageText: +// +// The option is invalid +// +#define WININET_E_INVALID_OPTION _HRESULT_TYPEDEF_(0x80072EE9L) + +// +// MessageId: WININET_E_BAD_OPTION_LENGTH +// +// MessageText: +// +// The length is incorrect for the option type +// +#define WININET_E_BAD_OPTION_LENGTH _HRESULT_TYPEDEF_(0x80072EEAL) + +// +// MessageId: WININET_E_OPTION_NOT_SETTABLE +// +// MessageText: +// +// The option value cannot be set +// +#define WININET_E_OPTION_NOT_SETTABLE _HRESULT_TYPEDEF_(0x80072EEBL) + +// +// MessageId: WININET_E_SHUTDOWN +// +// MessageText: +// +// Microsoft Internet Extension support has been shut down +// +#define WININET_E_SHUTDOWN _HRESULT_TYPEDEF_(0x80072EECL) + +// +// MessageId: WININET_E_INCORRECT_USER_NAME +// +// MessageText: +// +// The user name was not allowed +// +#define WININET_E_INCORRECT_USER_NAME _HRESULT_TYPEDEF_(0x80072EEDL) + +// +// MessageId: WININET_E_INCORRECT_PASSWORD +// +// MessageText: +// +// The password was not allowed +// +#define WININET_E_INCORRECT_PASSWORD _HRESULT_TYPEDEF_(0x80072EEEL) + +// +// MessageId: WININET_E_LOGIN_FAILURE +// +// MessageText: +// +// The login request was denied +// +#define WININET_E_LOGIN_FAILURE _HRESULT_TYPEDEF_(0x80072EEFL) + +// +// MessageId: WININET_E_INVALID_OPERATION +// +// MessageText: +// +// The requested operation is invalid +// +#define WININET_E_INVALID_OPERATION _HRESULT_TYPEDEF_(0x80072EF0L) + +// +// MessageId: WININET_E_OPERATION_CANCELLED +// +// MessageText: +// +// The operation has been canceled +// +#define WININET_E_OPERATION_CANCELLED _HRESULT_TYPEDEF_(0x80072EF1L) + +// +// MessageId: WININET_E_INCORRECT_HANDLE_TYPE +// +// MessageText: +// +// The supplied handle is the wrong type for the requested operation +// +#define WININET_E_INCORRECT_HANDLE_TYPE _HRESULT_TYPEDEF_(0x80072EF2L) + +// +// MessageId: WININET_E_INCORRECT_HANDLE_STATE +// +// MessageText: +// +// The handle is in the wrong state for the requested operation +// +#define WININET_E_INCORRECT_HANDLE_STATE _HRESULT_TYPEDEF_(0x80072EF3L) + +// +// MessageId: WININET_E_NOT_PROXY_REQUEST +// +// MessageText: +// +// The request cannot be made on a Proxy session +// +#define WININET_E_NOT_PROXY_REQUEST _HRESULT_TYPEDEF_(0x80072EF4L) + +// +// MessageId: WININET_E_REGISTRY_VALUE_NOT_FOUND +// +// MessageText: +// +// The registry value could not be found +// +#define WININET_E_REGISTRY_VALUE_NOT_FOUND _HRESULT_TYPEDEF_(0x80072EF5L) + +// +// MessageId: WININET_E_BAD_REGISTRY_PARAMETER +// +// MessageText: +// +// The registry parameter is incorrect +// +#define WININET_E_BAD_REGISTRY_PARAMETER _HRESULT_TYPEDEF_(0x80072EF6L) + +// +// MessageId: WININET_E_NO_DIRECT_ACCESS +// +// MessageText: +// +// Direct Internet access is not available +// +#define WININET_E_NO_DIRECT_ACCESS _HRESULT_TYPEDEF_(0x80072EF7L) + +// +// MessageId: WININET_E_NO_CONTEXT +// +// MessageText: +// +// No context value was supplied +// +#define WININET_E_NO_CONTEXT _HRESULT_TYPEDEF_(0x80072EF8L) + +// +// MessageId: WININET_E_NO_CALLBACK +// +// MessageText: +// +// No status callback was supplied +// +#define WININET_E_NO_CALLBACK _HRESULT_TYPEDEF_(0x80072EF9L) + +// +// MessageId: WININET_E_REQUEST_PENDING +// +// MessageText: +// +// There are outstanding requests +// +#define WININET_E_REQUEST_PENDING _HRESULT_TYPEDEF_(0x80072EFAL) + +// +// MessageId: WININET_E_INCORRECT_FORMAT +// +// MessageText: +// +// The information format is incorrect +// +#define WININET_E_INCORRECT_FORMAT _HRESULT_TYPEDEF_(0x80072EFBL) + +// +// MessageId: WININET_E_ITEM_NOT_FOUND +// +// MessageText: +// +// The requested item could not be found +// +#define WININET_E_ITEM_NOT_FOUND _HRESULT_TYPEDEF_(0x80072EFCL) + +// +// MessageId: WININET_E_CANNOT_CONNECT +// +// MessageText: +// +// A connection with the server could not be established +// +#define WININET_E_CANNOT_CONNECT _HRESULT_TYPEDEF_(0x80072EFDL) + +// +// MessageId: WININET_E_CONNECTION_ABORTED +// +// MessageText: +// +// The connection with the server was terminated abnormally +// +#define WININET_E_CONNECTION_ABORTED _HRESULT_TYPEDEF_(0x80072EFEL) + +// +// MessageId: WININET_E_CONNECTION_RESET +// +// MessageText: +// +// The connection with the server was reset +// +#define WININET_E_CONNECTION_RESET _HRESULT_TYPEDEF_(0x80072EFFL) + +// +// MessageId: WININET_E_FORCE_RETRY +// +// MessageText: +// +// The action must be retried +// +#define WININET_E_FORCE_RETRY _HRESULT_TYPEDEF_(0x80072F00L) + +// +// MessageId: WININET_E_INVALID_PROXY_REQUEST +// +// MessageText: +// +// The proxy request is invalid +// +#define WININET_E_INVALID_PROXY_REQUEST _HRESULT_TYPEDEF_(0x80072F01L) + +// +// MessageId: WININET_E_NEED_UI +// +// MessageText: +// +// User interaction is required to complete the operation +// +#define WININET_E_NEED_UI _HRESULT_TYPEDEF_(0x80072F02L) + +// +// MessageId: WININET_E_HANDLE_EXISTS +// +// MessageText: +// +// The handle already exists +// +#define WININET_E_HANDLE_EXISTS _HRESULT_TYPEDEF_(0x80072F04L) + +// +// MessageId: WININET_E_SEC_CERT_DATE_INVALID +// +// MessageText: +// +// The date in the certificate is invalid or has expired +// +#define WININET_E_SEC_CERT_DATE_INVALID _HRESULT_TYPEDEF_(0x80072F05L) + +// +// MessageId: WININET_E_SEC_CERT_CN_INVALID +// +// MessageText: +// +// The host name in the certificate is invalid or does not match +// +#define WININET_E_SEC_CERT_CN_INVALID _HRESULT_TYPEDEF_(0x80072F06L) + +// +// MessageId: WININET_E_HTTP_TO_HTTPS_ON_REDIR +// +// MessageText: +// +// A redirect request will change a non-secure to a secure connection +// +#define WININET_E_HTTP_TO_HTTPS_ON_REDIR _HRESULT_TYPEDEF_(0x80072F07L) + +// +// MessageId: WININET_E_HTTPS_TO_HTTP_ON_REDIR +// +// MessageText: +// +// A redirect request will change a secure to a non-secure connection +// +#define WININET_E_HTTPS_TO_HTTP_ON_REDIR _HRESULT_TYPEDEF_(0x80072F08L) + +// +// MessageId: WININET_E_MIXED_SECURITY +// +// MessageText: +// +// Mixed secure and non-secure connections +// +#define WININET_E_MIXED_SECURITY _HRESULT_TYPEDEF_(0x80072F09L) + +// +// MessageId: WININET_E_CHG_POST_IS_NON_SECURE +// +// MessageText: +// +// Changing to non-secure post +// +#define WININET_E_CHG_POST_IS_NON_SECURE _HRESULT_TYPEDEF_(0x80072F0AL) + +// +// MessageId: WININET_E_POST_IS_NON_SECURE +// +// MessageText: +// +// Data is being posted on a non-secure connection +// +#define WININET_E_POST_IS_NON_SECURE _HRESULT_TYPEDEF_(0x80072F0BL) + +// +// MessageId: WININET_E_CLIENT_AUTH_CERT_NEEDED +// +// MessageText: +// +// A certificate is required to complete client authentication +// +#define WININET_E_CLIENT_AUTH_CERT_NEEDED _HRESULT_TYPEDEF_(0x80072F0CL) + +// +// MessageId: WININET_E_INVALID_CA +// +// MessageText: +// +// The certificate authority is invalid or incorrect +// +#define WININET_E_INVALID_CA _HRESULT_TYPEDEF_(0x80072F0DL) + +// +// MessageId: WININET_E_CLIENT_AUTH_NOT_SETUP +// +// MessageText: +// +// Client authentication has not been correctly installed +// +#define WININET_E_CLIENT_AUTH_NOT_SETUP _HRESULT_TYPEDEF_(0x80072F0EL) + +// +// MessageId: WININET_E_ASYNC_THREAD_FAILED +// +// MessageText: +// +// An error has occurred in a Wininet asynchronous thread. You may need to restart +// +#define WININET_E_ASYNC_THREAD_FAILED _HRESULT_TYPEDEF_(0x80072F0FL) + +// +// MessageId: WININET_E_REDIRECT_SCHEME_CHANGE +// +// MessageText: +// +// The protocol scheme has changed during a redirect operation +// +#define WININET_E_REDIRECT_SCHEME_CHANGE _HRESULT_TYPEDEF_(0x80072F10L) + +// +// MessageId: WININET_E_DIALOG_PENDING +// +// MessageText: +// +// There are operations awaiting retry +// +#define WININET_E_DIALOG_PENDING _HRESULT_TYPEDEF_(0x80072F11L) + +// +// MessageId: WININET_E_RETRY_DIALOG +// +// MessageText: +// +// The operation must be retried +// +#define WININET_E_RETRY_DIALOG _HRESULT_TYPEDEF_(0x80072F12L) + +// +// MessageId: WININET_E_NO_NEW_CONTAINERS +// +// MessageText: +// +// There are no new cache containers +// +#define WININET_E_NO_NEW_CONTAINERS _HRESULT_TYPEDEF_(0x80072F13L) + +// +// MessageId: WININET_E_HTTPS_HTTP_SUBMIT_REDIR +// +// MessageText: +// +// A security zone check indicates the operation must be retried +// +#define WININET_E_HTTPS_HTTP_SUBMIT_REDIR _HRESULT_TYPEDEF_(0x80072F14L) + +// +// MessageId: WININET_E_SEC_CERT_ERRORS +// +// MessageText: +// +// The SSL certificate contains errors. +// +#define WININET_E_SEC_CERT_ERRORS _HRESULT_TYPEDEF_(0x80072F17L) + +// +// MessageId: WININET_E_SEC_CERT_REV_FAILED +// +// MessageText: +// +// It was not possible to connect to the revocation server or a definitive response could not be obtained. +// +#define WININET_E_SEC_CERT_REV_FAILED _HRESULT_TYPEDEF_(0x80072F19L) + +// +// MessageId: WININET_E_HEADER_NOT_FOUND +// +// MessageText: +// +// The requested header was not found +// +#define WININET_E_HEADER_NOT_FOUND _HRESULT_TYPEDEF_(0x80072F76L) + +// +// MessageId: WININET_E_DOWNLEVEL_SERVER +// +// MessageText: +// +// The server does not support the requested protocol level +// +#define WININET_E_DOWNLEVEL_SERVER _HRESULT_TYPEDEF_(0x80072F77L) + +// +// MessageId: WININET_E_INVALID_SERVER_RESPONSE +// +// MessageText: +// +// The server returned an invalid or unrecognized response +// +#define WININET_E_INVALID_SERVER_RESPONSE _HRESULT_TYPEDEF_(0x80072F78L) + +// +// MessageId: WININET_E_INVALID_HEADER +// +// MessageText: +// +// The supplied HTTP header is invalid +// +#define WININET_E_INVALID_HEADER _HRESULT_TYPEDEF_(0x80072F79L) + +// +// MessageId: WININET_E_INVALID_QUERY_REQUEST +// +// MessageText: +// +// The request for a HTTP header is invalid +// +#define WININET_E_INVALID_QUERY_REQUEST _HRESULT_TYPEDEF_(0x80072F7AL) + +// +// MessageId: WININET_E_HEADER_ALREADY_EXISTS +// +// MessageText: +// +// The HTTP header already exists +// +#define WININET_E_HEADER_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x80072F7BL) + +// +// MessageId: WININET_E_REDIRECT_FAILED +// +// MessageText: +// +// The HTTP redirect request failed +// +#define WININET_E_REDIRECT_FAILED _HRESULT_TYPEDEF_(0x80072F7CL) + +// +// MessageId: WININET_E_SECURITY_CHANNEL_ERROR +// +// MessageText: +// +// An error occurred in the secure channel support +// +#define WININET_E_SECURITY_CHANNEL_ERROR _HRESULT_TYPEDEF_(0x80072F7DL) + +// +// MessageId: WININET_E_UNABLE_TO_CACHE_FILE +// +// MessageText: +// +// The file could not be written to the cache +// +#define WININET_E_UNABLE_TO_CACHE_FILE _HRESULT_TYPEDEF_(0x80072F7EL) + +// +// MessageId: WININET_E_TCPIP_NOT_INSTALLED +// +// MessageText: +// +// The TCP/IP protocol is not installed properly +// +#define WININET_E_TCPIP_NOT_INSTALLED _HRESULT_TYPEDEF_(0x80072F7FL) + +// +// MessageId: WININET_E_DISCONNECTED +// +// MessageText: +// +// The computer is disconnected from the network +// +#define WININET_E_DISCONNECTED _HRESULT_TYPEDEF_(0x80072F83L) + +// +// MessageId: WININET_E_SERVER_UNREACHABLE +// +// MessageText: +// +// The server is unreachable +// +#define WININET_E_SERVER_UNREACHABLE _HRESULT_TYPEDEF_(0x80072F84L) + +// +// MessageId: WININET_E_PROXY_SERVER_UNREACHABLE +// +// MessageText: +// +// The proxy server is unreachable +// +#define WININET_E_PROXY_SERVER_UNREACHABLE _HRESULT_TYPEDEF_(0x80072F85L) + +// +// MessageId: WININET_E_BAD_AUTO_PROXY_SCRIPT +// +// MessageText: +// +// The proxy auto-configuration script is in error +// +#define WININET_E_BAD_AUTO_PROXY_SCRIPT _HRESULT_TYPEDEF_(0x80072F86L) + +// +// MessageId: WININET_E_UNABLE_TO_DOWNLOAD_SCRIPT +// +// MessageText: +// +// Could not download the proxy auto-configuration script file +// +#define WININET_E_UNABLE_TO_DOWNLOAD_SCRIPT _HRESULT_TYPEDEF_(0x80072F87L) + +// +// MessageId: WININET_E_SEC_INVALID_CERT +// +// MessageText: +// +// The supplied certificate is invalid +// +#define WININET_E_SEC_INVALID_CERT _HRESULT_TYPEDEF_(0x80072F89L) + +// +// MessageId: WININET_E_SEC_CERT_REVOKED +// +// MessageText: +// +// The supplied certificate has been revoked +// +#define WININET_E_SEC_CERT_REVOKED _HRESULT_TYPEDEF_(0x80072F8AL) + +// +// MessageId: WININET_E_FAILED_DUETOSECURITYCHECK +// +// MessageText: +// +// The Dialup failed because file sharing was turned on and a failure was requested if security check was needed +// +#define WININET_E_FAILED_DUETOSECURITYCHECK _HRESULT_TYPEDEF_(0x80072F8BL) + +// +// MessageId: WININET_E_NOT_INITIALIZED +// +// MessageText: +// +// Initialization of the WinINet API has not occurred +// +#define WININET_E_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x80072F8CL) + +// +// MessageId: WININET_E_LOGIN_FAILURE_DISPLAY_ENTITY_BODY +// +// MessageText: +// +// Login failed and the client should display the entity body to the user +// +#define WININET_E_LOGIN_FAILURE_DISPLAY_ENTITY_BODY _HRESULT_TYPEDEF_(0x80072F8EL) + +// +// MessageId: WININET_E_DECODING_FAILED +// +// MessageText: +// +// Content decoding has failed +// +#define WININET_E_DECODING_FAILED _HRESULT_TYPEDEF_(0x80072F8FL) + +// +// MessageId: WININET_E_NOT_REDIRECTED +// +// MessageText: +// +// The HTTP request was not redirected +// +#define WININET_E_NOT_REDIRECTED _HRESULT_TYPEDEF_(0x80072F80L) + +// +// MessageId: WININET_E_COOKIE_NEEDS_CONFIRMATION +// +// MessageText: +// +// A cookie from the server must be confirmed by the user +// +#define WININET_E_COOKIE_NEEDS_CONFIRMATION _HRESULT_TYPEDEF_(0x80072F81L) + +// +// MessageId: WININET_E_COOKIE_DECLINED +// +// MessageText: +// +// A cookie from the server has been declined acceptance +// +#define WININET_E_COOKIE_DECLINED _HRESULT_TYPEDEF_(0x80072F82L) + +// +// MessageId: WININET_E_REDIRECT_NEEDS_CONFIRMATION +// +// MessageText: +// +// The HTTP redirect request must be confirmed by the user +// +#define WININET_E_REDIRECT_NEEDS_CONFIRMATION _HRESULT_TYPEDEF_(0x80072F88L) + + +// +// SQLite +// + +// +// MessageId: SQLITE_E_ERROR +// +// MessageText: +// +// SQL error or missing database +// +#define SQLITE_E_ERROR _HRESULT_TYPEDEF_(0x87AF0001L) + +// +// MessageId: SQLITE_E_INTERNAL +// +// MessageText: +// +// Internal logic error in SQLite +// +#define SQLITE_E_INTERNAL _HRESULT_TYPEDEF_(0x87AF0002L) + +// +// MessageId: SQLITE_E_PERM +// +// MessageText: +// +// Access permission denied +// +#define SQLITE_E_PERM _HRESULT_TYPEDEF_(0x87AF0003L) + +// +// MessageId: SQLITE_E_ABORT +// +// MessageText: +// +// Callback routine requested an abort +// +#define SQLITE_E_ABORT _HRESULT_TYPEDEF_(0x87AF0004L) + +// +// MessageId: SQLITE_E_BUSY +// +// MessageText: +// +// The database file is locked +// +#define SQLITE_E_BUSY _HRESULT_TYPEDEF_(0x87AF0005L) + +// +// MessageId: SQLITE_E_LOCKED +// +// MessageText: +// +// A table in the database is locked +// +#define SQLITE_E_LOCKED _HRESULT_TYPEDEF_(0x87AF0006L) + +// +// MessageId: SQLITE_E_NOMEM +// +// MessageText: +// +// A malloc() failed +// +#define SQLITE_E_NOMEM _HRESULT_TYPEDEF_(0x87AF0007L) + +// +// MessageId: SQLITE_E_READONLY +// +// MessageText: +// +// Attempt to write a readonly database +// +#define SQLITE_E_READONLY _HRESULT_TYPEDEF_(0x87AF0008L) + +// +// MessageId: SQLITE_E_INTERRUPT +// +// MessageText: +// +// Operation terminated by sqlite3_interrupt() +// +#define SQLITE_E_INTERRUPT _HRESULT_TYPEDEF_(0x87AF0009L) + +// +// MessageId: SQLITE_E_IOERR +// +// MessageText: +// +// Some kind of disk I/O error occurred +// +#define SQLITE_E_IOERR _HRESULT_TYPEDEF_(0x87AF000AL) + +// +// MessageId: SQLITE_E_CORRUPT +// +// MessageText: +// +// The database disk image is malformed +// +#define SQLITE_E_CORRUPT _HRESULT_TYPEDEF_(0x87AF000BL) + +// +// MessageId: SQLITE_E_NOTFOUND +// +// MessageText: +// +// Unknown opcode in sqlite3_file_control() +// +#define SQLITE_E_NOTFOUND _HRESULT_TYPEDEF_(0x87AF000CL) + +// +// MessageId: SQLITE_E_FULL +// +// MessageText: +// +// Insertion failed because database is full +// +#define SQLITE_E_FULL _HRESULT_TYPEDEF_(0x87AF000DL) + +// +// MessageId: SQLITE_E_CANTOPEN +// +// MessageText: +// +// Unable to open the database file +// +#define SQLITE_E_CANTOPEN _HRESULT_TYPEDEF_(0x87AF000EL) + +// +// MessageId: SQLITE_E_PROTOCOL +// +// MessageText: +// +// Database lock protocol error +// +#define SQLITE_E_PROTOCOL _HRESULT_TYPEDEF_(0x87AF000FL) + +// +// MessageId: SQLITE_E_EMPTY +// +// MessageText: +// +// Database is empty +// +#define SQLITE_E_EMPTY _HRESULT_TYPEDEF_(0x87AF0010L) + +// +// MessageId: SQLITE_E_SCHEMA +// +// MessageText: +// +// The database schema changed +// +#define SQLITE_E_SCHEMA _HRESULT_TYPEDEF_(0x87AF0011L) + +// +// MessageId: SQLITE_E_TOOBIG +// +// MessageText: +// +// String or BLOB exceeds size limit +// +#define SQLITE_E_TOOBIG _HRESULT_TYPEDEF_(0x87AF0012L) + +// +// MessageId: SQLITE_E_CONSTRAINT +// +// MessageText: +// +// Abort due to constraint violation +// +#define SQLITE_E_CONSTRAINT _HRESULT_TYPEDEF_(0x87AF0013L) + +// +// MessageId: SQLITE_E_MISMATCH +// +// MessageText: +// +// Data type mismatch +// +#define SQLITE_E_MISMATCH _HRESULT_TYPEDEF_(0x87AF0014L) + +// +// MessageId: SQLITE_E_MISUSE +// +// MessageText: +// +// Library used incorrectly +// +#define SQLITE_E_MISUSE _HRESULT_TYPEDEF_(0x87AF0015L) + +// +// MessageId: SQLITE_E_NOLFS +// +// MessageText: +// +// Uses OS features not supported on host +// +#define SQLITE_E_NOLFS _HRESULT_TYPEDEF_(0x87AF0016L) + +// +// MessageId: SQLITE_E_AUTH +// +// MessageText: +// +// Authorization denied +// +#define SQLITE_E_AUTH _HRESULT_TYPEDEF_(0x87AF0017L) + +// +// MessageId: SQLITE_E_FORMAT +// +// MessageText: +// +// Auxiliary database format error +// +#define SQLITE_E_FORMAT _HRESULT_TYPEDEF_(0x87AF0018L) + +// +// MessageId: SQLITE_E_RANGE +// +// MessageText: +// +// 2nd parameter to sqlite3_bind out of range +// +#define SQLITE_E_RANGE _HRESULT_TYPEDEF_(0x87AF0019L) + +// +// MessageId: SQLITE_E_NOTADB +// +// MessageText: +// +// File opened that is not a database file +// +#define SQLITE_E_NOTADB _HRESULT_TYPEDEF_(0x87AF001AL) + +// +// MessageId: SQLITE_E_NOTICE +// +// MessageText: +// +// Notifications from sqlite3_log() +// +#define SQLITE_E_NOTICE _HRESULT_TYPEDEF_(0x87AF001BL) + +// +// MessageId: SQLITE_E_WARNING +// +// MessageText: +// +// Warnings from sqlite3_log() +// +#define SQLITE_E_WARNING _HRESULT_TYPEDEF_(0x87AF001CL) + +// +// MessageId: SQLITE_E_ROW +// +// MessageText: +// +// sqlite3_step() has another row ready +// +#define SQLITE_E_ROW _HRESULT_TYPEDEF_(0x87AF0064L) + +// +// MessageId: SQLITE_E_DONE +// +// MessageText: +// +// sqlite3_step() has finished executing +// +#define SQLITE_E_DONE _HRESULT_TYPEDEF_(0x87AF0065L) + +// +// MessageId: SQLITE_E_IOERR_READ +// +// MessageText: +// +// SQLITE_IOERR_READ +// +#define SQLITE_E_IOERR_READ _HRESULT_TYPEDEF_(0x87AF010AL) + +// +// MessageId: SQLITE_E_IOERR_SHORT_READ +// +// MessageText: +// +// SQLITE_IOERR_SHORT_READ +// +#define SQLITE_E_IOERR_SHORT_READ _HRESULT_TYPEDEF_(0x87AF020AL) + +// +// MessageId: SQLITE_E_IOERR_WRITE +// +// MessageText: +// +// SQLITE_IOERR_WRITE +// +#define SQLITE_E_IOERR_WRITE _HRESULT_TYPEDEF_(0x87AF030AL) + +// +// MessageId: SQLITE_E_IOERR_FSYNC +// +// MessageText: +// +// SQLITE_IOERR_FSYNC +// +#define SQLITE_E_IOERR_FSYNC _HRESULT_TYPEDEF_(0x87AF040AL) + +// +// MessageId: SQLITE_E_IOERR_DIR_FSYNC +// +// MessageText: +// +// SQLITE_IOERR_DIR_FSYNC +// +#define SQLITE_E_IOERR_DIR_FSYNC _HRESULT_TYPEDEF_(0x87AF050AL) + +// +// MessageId: SQLITE_E_IOERR_TRUNCATE +// +// MessageText: +// +// SQLITE_IOERR_TRUNCATE +// +#define SQLITE_E_IOERR_TRUNCATE _HRESULT_TYPEDEF_(0x87AF060AL) + +// +// MessageId: SQLITE_E_IOERR_FSTAT +// +// MessageText: +// +// SQLITE_IOERR_FSTAT +// +#define SQLITE_E_IOERR_FSTAT _HRESULT_TYPEDEF_(0x87AF070AL) + +// +// MessageId: SQLITE_E_IOERR_UNLOCK +// +// MessageText: +// +// SQLITE_IOERR_UNLOCK +// +#define SQLITE_E_IOERR_UNLOCK _HRESULT_TYPEDEF_(0x87AF080AL) + +// +// MessageId: SQLITE_E_IOERR_RDLOCK +// +// MessageText: +// +// SQLITE_IOERR_RDLOCK +// +#define SQLITE_E_IOERR_RDLOCK _HRESULT_TYPEDEF_(0x87AF090AL) + +// +// MessageId: SQLITE_E_IOERR_DELETE +// +// MessageText: +// +// SQLITE_IOERR_DELETE +// +#define SQLITE_E_IOERR_DELETE _HRESULT_TYPEDEF_(0x87AF0A0AL) + +// +// MessageId: SQLITE_E_IOERR_BLOCKED +// +// MessageText: +// +// SQLITE_IOERR_BLOCKED +// +#define SQLITE_E_IOERR_BLOCKED _HRESULT_TYPEDEF_(0x87AF0B0AL) + +// +// MessageId: SQLITE_E_IOERR_NOMEM +// +// MessageText: +// +// SQLITE_IOERR_NOMEM +// +#define SQLITE_E_IOERR_NOMEM _HRESULT_TYPEDEF_(0x87AF0C0AL) + +// +// MessageId: SQLITE_E_IOERR_ACCESS +// +// MessageText: +// +// SQLITE_IOERR_ACCESS +// +#define SQLITE_E_IOERR_ACCESS _HRESULT_TYPEDEF_(0x87AF0D0AL) + +// +// MessageId: SQLITE_E_IOERR_CHECKRESERVEDLOCK +// +// MessageText: +// +// SQLITE_IOERR_CHECKRESERVEDLOCK +// +#define SQLITE_E_IOERR_CHECKRESERVEDLOCK _HRESULT_TYPEDEF_(0x87AF0E0AL) + +// +// MessageId: SQLITE_E_IOERR_LOCK +// +// MessageText: +// +// SQLITE_IOERR_LOCK +// +#define SQLITE_E_IOERR_LOCK _HRESULT_TYPEDEF_(0x87AF0F0AL) + +// +// MessageId: SQLITE_E_IOERR_CLOSE +// +// MessageText: +// +// SQLITE_IOERR_CLOSE +// +#define SQLITE_E_IOERR_CLOSE _HRESULT_TYPEDEF_(0x87AF100AL) + +// +// MessageId: SQLITE_E_IOERR_DIR_CLOSE +// +// MessageText: +// +// SQLITE_IOERR_DIR_CLOSE +// +#define SQLITE_E_IOERR_DIR_CLOSE _HRESULT_TYPEDEF_(0x87AF110AL) + +// +// MessageId: SQLITE_E_IOERR_SHMOPEN +// +// MessageText: +// +// SQLITE_IOERR_SHMOPEN +// +#define SQLITE_E_IOERR_SHMOPEN _HRESULT_TYPEDEF_(0x87AF120AL) + +// +// MessageId: SQLITE_E_IOERR_SHMSIZE +// +// MessageText: +// +// SQLITE_IOERR_SHMSIZE +// +#define SQLITE_E_IOERR_SHMSIZE _HRESULT_TYPEDEF_(0x87AF130AL) + +// +// MessageId: SQLITE_E_IOERR_SHMLOCK +// +// MessageText: +// +// SQLITE_IOERR_SHMLOCK +// +#define SQLITE_E_IOERR_SHMLOCK _HRESULT_TYPEDEF_(0x87AF140AL) + +// +// MessageId: SQLITE_E_IOERR_SHMMAP +// +// MessageText: +// +// SQLITE_IOERR_SHMMAP +// +#define SQLITE_E_IOERR_SHMMAP _HRESULT_TYPEDEF_(0x87AF150AL) + +// +// MessageId: SQLITE_E_IOERR_SEEK +// +// MessageText: +// +// SQLITE_IOERR_SEEK +// +#define SQLITE_E_IOERR_SEEK _HRESULT_TYPEDEF_(0x87AF160AL) + +// +// MessageId: SQLITE_E_IOERR_DELETE_NOENT +// +// MessageText: +// +// SQLITE_IOERR_DELETE_NOENT +// +#define SQLITE_E_IOERR_DELETE_NOENT _HRESULT_TYPEDEF_(0x87AF170AL) + +// +// MessageId: SQLITE_E_IOERR_MMAP +// +// MessageText: +// +// SQLITE_IOERR_MMAP +// +#define SQLITE_E_IOERR_MMAP _HRESULT_TYPEDEF_(0x87AF180AL) + +// +// MessageId: SQLITE_E_IOERR_GETTEMPPATH +// +// MessageText: +// +// SQLITE_IOERR_GETTEMPPATH +// +#define SQLITE_E_IOERR_GETTEMPPATH _HRESULT_TYPEDEF_(0x87AF190AL) + +// +// MessageId: SQLITE_E_IOERR_CONVPATH +// +// MessageText: +// +// SQLITE_IOERR_CONVPATH +// +#define SQLITE_E_IOERR_CONVPATH _HRESULT_TYPEDEF_(0x87AF1A0AL) + +// +// MessageId: SQLITE_E_IOERR_VNODE +// +// MessageText: +// +// SQLITE_IOERR_VNODE +// +#define SQLITE_E_IOERR_VNODE _HRESULT_TYPEDEF_(0x87AF1B0AL) + +// +// MessageId: SQLITE_E_IOERR_AUTH +// +// MessageText: +// +// SQLITE_IOERR_AUTH +// +#define SQLITE_E_IOERR_AUTH _HRESULT_TYPEDEF_(0x87AF1C0AL) + +// +// MessageId: SQLITE_E_IOERR_BEGIN_ATOMIC +// +// MessageText: +// +// SQLITE_IOERR_BEGIN_ATOMIC +// +#define SQLITE_E_IOERR_BEGIN_ATOMIC _HRESULT_TYPEDEF_(0x87AF1D0AL) + +// +// MessageId: SQLITE_E_IOERR_COMMIT_ATOMIC +// +// MessageText: +// +// SQLITE_IOERR_COMMIT_ATOMIC +// +#define SQLITE_E_IOERR_COMMIT_ATOMIC _HRESULT_TYPEDEF_(0x87AF1E0AL) + +// +// MessageId: SQLITE_E_IOERR_ROLLBACK_ATOMIC +// +// MessageText: +// +// SQLITE_IOERR_ROLLBACK_ATOMIC +// +#define SQLITE_E_IOERR_ROLLBACK_ATOMIC _HRESULT_TYPEDEF_(0x87AF1F0AL) + +// +// MessageId: SQLITE_E_IOERR_DATA +// +// MessageText: +// +// SQLITE_IOERR_DATA +// +#define SQLITE_E_IOERR_DATA _HRESULT_TYPEDEF_(0x87AF200AL) + +// +// MessageId: SQLITE_E_IOERR_CORRUPTFS +// +// MessageText: +// +// SQLITE_IOERR_CORRUPTFS +// +#define SQLITE_E_IOERR_CORRUPTFS _HRESULT_TYPEDEF_(0x87AF210AL) + +// +// MessageId: SQLITE_E_IOERR_IN_PAGE +// +// MessageText: +// +// SQLITE_IOERR_IN_PAGE +// +#define SQLITE_E_IOERR_IN_PAGE _HRESULT_TYPEDEF_(0x87AF220AL) + +// +// MessageId: SQLITE_E_LOCKED_SHAREDCACHE +// +// MessageText: +// +// SQLITE_LOCKED_SHAREDCACHE +// +#define SQLITE_E_LOCKED_SHAREDCACHE _HRESULT_TYPEDEF_(0x87AF0106L) + +// +// MessageId: SQLITE_E_LOCKED_VTAB +// +// MessageText: +// +// SQLITE_LOCKED_VTAB +// +#define SQLITE_E_LOCKED_VTAB _HRESULT_TYPEDEF_(0x87AF0206L) + +// +// MessageId: SQLITE_E_BUSY_RECOVERY +// +// MessageText: +// +// SQLITE_BUSY_RECOVERY +// +#define SQLITE_E_BUSY_RECOVERY _HRESULT_TYPEDEF_(0x87AF0105L) + +// +// MessageId: SQLITE_E_BUSY_SNAPSHOT +// +// MessageText: +// +// SQLITE_BUSY_SNAPSHOT +// +#define SQLITE_E_BUSY_SNAPSHOT _HRESULT_TYPEDEF_(0x87AF0205L) + +// +// MessageId: SQLITE_E_BUSY_TIMEOUT +// +// MessageText: +// +// SQLITE_BUSY_TIMEOUT +// +#define SQLITE_E_BUSY_TIMEOUT _HRESULT_TYPEDEF_(0x87AF0305L) + +// +// MessageId: SQLITE_E_CANTOPEN_NOTEMPDIR +// +// MessageText: +// +// SQLITE_CANTOPEN_NOTEMPDIR +// +#define SQLITE_E_CANTOPEN_NOTEMPDIR _HRESULT_TYPEDEF_(0x87AF010EL) + +// +// MessageId: SQLITE_E_CANTOPEN_ISDIR +// +// MessageText: +// +// SQLITE_CANTOPEN_ISDIR +// +#define SQLITE_E_CANTOPEN_ISDIR _HRESULT_TYPEDEF_(0x87AF020EL) + +// +// MessageId: SQLITE_E_CANTOPEN_FULLPATH +// +// MessageText: +// +// SQLITE_CANTOPEN_FULLPATH +// +#define SQLITE_E_CANTOPEN_FULLPATH _HRESULT_TYPEDEF_(0x87AF030EL) + +// +// MessageId: SQLITE_E_CANTOPEN_CONVPATH +// +// MessageText: +// +// SQLITE_CANTOPEN_CONVPATH +// +#define SQLITE_E_CANTOPEN_CONVPATH _HRESULT_TYPEDEF_(0x87AF040EL) + +// +// MessageId: SQLITE_E_CANTOPEN_DIRTYWAL +// +// MessageText: +// +// SQLITE_E_CANTOPEN_DIRTYWAL +// +#define SQLITE_E_CANTOPEN_DIRTYWAL _HRESULT_TYPEDEF_(0x87AF050EL) + +// +// MessageId: SQLITE_E_CANTOPEN_SYMLINK +// +// MessageText: +// +// SQLITE_E_CANTOPEN_SYMLINK +// +#define SQLITE_E_CANTOPEN_SYMLINK _HRESULT_TYPEDEF_(0x87AF060EL) + +// +// MessageId: SQLITE_E_CORRUPT_VTAB +// +// MessageText: +// +// SQLITE_CORRUPT_VTAB +// +#define SQLITE_E_CORRUPT_VTAB _HRESULT_TYPEDEF_(0x87AF010BL) + +// +// MessageId: SQLITE_E_CORRUPT_SEQUENCE +// +// MessageText: +// +// SQLITE_E_CORRUPT_SEQUENCE +// +#define SQLITE_E_CORRUPT_SEQUENCE _HRESULT_TYPEDEF_(0x87AF020BL) + +// +// MessageId: SQLITE_E_CORRUPT_INDEX +// +// MessageText: +// +// SQLITE_E_CORRUPT_INDEX +// +#define SQLITE_E_CORRUPT_INDEX _HRESULT_TYPEDEF_(0x87AF030BL) + +// +// MessageId: SQLITE_E_READONLY_RECOVERY +// +// MessageText: +// +// SQLITE_READONLY_RECOVERY +// +#define SQLITE_E_READONLY_RECOVERY _HRESULT_TYPEDEF_(0x87AF0108L) + +// +// MessageId: SQLITE_E_READONLY_CANTLOCK +// +// MessageText: +// +// SQLITE_READONLY_CANTLOCK +// +#define SQLITE_E_READONLY_CANTLOCK _HRESULT_TYPEDEF_(0x87AF0208L) + +// +// MessageId: SQLITE_E_READONLY_ROLLBACK +// +// MessageText: +// +// SQLITE_READONLY_ROLLBACK +// +#define SQLITE_E_READONLY_ROLLBACK _HRESULT_TYPEDEF_(0x87AF0308L) + +// +// MessageId: SQLITE_E_READONLY_DBMOVED +// +// MessageText: +// +// SQLITE_READONLY_DBMOVED +// +#define SQLITE_E_READONLY_DBMOVED _HRESULT_TYPEDEF_(0x87AF0408L) + +// +// MessageId: SQLITE_E_READONLY_CANTINIT +// +// MessageText: +// +// SQLITE_E_READONLY_CANTINIT +// +#define SQLITE_E_READONLY_CANTINIT _HRESULT_TYPEDEF_(0x87AF0508L) + +// +// MessageId: SQLITE_E_READONLY_DIRECTORY +// +// MessageText: +// +// SQLITE_E_READONLY_DIRECTORY +// +#define SQLITE_E_READONLY_DIRECTORY _HRESULT_TYPEDEF_(0x87AF0608L) + +// +// MessageId: SQLITE_E_ABORT_ROLLBACK +// +// MessageText: +// +// SQLITE_ABORT_ROLLBACK +// +#define SQLITE_E_ABORT_ROLLBACK _HRESULT_TYPEDEF_(0x87AF0204L) + +// +// MessageId: SQLITE_E_CONSTRAINT_CHECK +// +// MessageText: +// +// SQLITE_CONSTRAINT_CHECK +// +#define SQLITE_E_CONSTRAINT_CHECK _HRESULT_TYPEDEF_(0x87AF0113L) + +// +// MessageId: SQLITE_E_CONSTRAINT_COMMITHOOK +// +// MessageText: +// +// SQLITE_CONSTRAINT_COMMITHOOK +// +#define SQLITE_E_CONSTRAINT_COMMITHOOK _HRESULT_TYPEDEF_(0x87AF0213L) + +// +// MessageId: SQLITE_E_CONSTRAINT_FOREIGNKEY +// +// MessageText: +// +// SQLITE_CONSTRAINT_FOREIGNKEY +// +#define SQLITE_E_CONSTRAINT_FOREIGNKEY _HRESULT_TYPEDEF_(0x87AF0313L) + +// +// MessageId: SQLITE_E_CONSTRAINT_FUNCTION +// +// MessageText: +// +// SQLITE_CONSTRAINT_FUNCTION +// +#define SQLITE_E_CONSTRAINT_FUNCTION _HRESULT_TYPEDEF_(0x87AF0413L) + +// +// MessageId: SQLITE_E_CONSTRAINT_NOTNULL +// +// MessageText: +// +// SQLITE_CONSTRAINT_NOTNULL +// +#define SQLITE_E_CONSTRAINT_NOTNULL _HRESULT_TYPEDEF_(0x87AF0513L) + +// +// MessageId: SQLITE_E_CONSTRAINT_PRIMARYKEY +// +// MessageText: +// +// SQLITE_CONSTRAINT_PRIMARYKEY +// +#define SQLITE_E_CONSTRAINT_PRIMARYKEY _HRESULT_TYPEDEF_(0x87AF0613L) + +// +// MessageId: SQLITE_E_CONSTRAINT_TRIGGER +// +// MessageText: +// +// SQLITE_CONSTRAINT_TRIGGER +// +#define SQLITE_E_CONSTRAINT_TRIGGER _HRESULT_TYPEDEF_(0x87AF0713L) + +// +// MessageId: SQLITE_E_CONSTRAINT_UNIQUE +// +// MessageText: +// +// SQLITE_CONSTRAINT_UNIQUE +// +#define SQLITE_E_CONSTRAINT_UNIQUE _HRESULT_TYPEDEF_(0x87AF0813L) + +// +// MessageId: SQLITE_E_CONSTRAINT_VTAB +// +// MessageText: +// +// SQLITE_CONSTRAINT_VTAB +// +#define SQLITE_E_CONSTRAINT_VTAB _HRESULT_TYPEDEF_(0x87AF0913L) + +// +// MessageId: SQLITE_E_CONSTRAINT_ROWID +// +// MessageText: +// +// SQLITE_CONSTRAINT_ROWID +// +#define SQLITE_E_CONSTRAINT_ROWID _HRESULT_TYPEDEF_(0x87AF0A13L) + +// +// MessageId: SQLITE_E_CONSTRAINT_PINNED +// +// MessageText: +// +// SQLITE_CONSTRAINT_PINNED +// +#define SQLITE_E_CONSTRAINT_PINNED _HRESULT_TYPEDEF_(0x87AF0B13L) + +// +// MessageId: SQLITE_E_CONSTRAINT_DATATYPE +// +// MessageText: +// +// SQLITE_CONSTRAINT_DATATYPE +// +#define SQLITE_E_CONSTRAINT_DATATYPE _HRESULT_TYPEDEF_(0x87AF0C13L) + +// +// MessageId: SQLITE_E_NOTICE_RECOVER_WAL +// +// MessageText: +// +// SQLITE_NOTICE_RECOVER_WAL +// +#define SQLITE_E_NOTICE_RECOVER_WAL _HRESULT_TYPEDEF_(0x87AF011BL) + +// +// MessageId: SQLITE_E_NOTICE_RECOVER_ROLLBACK +// +// MessageText: +// +// SQLITE_NOTICE_RECOVER_ROLLBACK +// +#define SQLITE_E_NOTICE_RECOVER_ROLLBACK _HRESULT_TYPEDEF_(0x87AF021BL) + +// +// MessageId: SQLITE_E_NOTICE_RECOVER_RBU +// +// MessageText: +// +// SQLITE_NOTICE_RECOVER_RBU +// +#define SQLITE_E_NOTICE_RECOVER_RBU _HRESULT_TYPEDEF_(0x87AF031BL) + +// +// MessageId: SQLITE_E_WARNING_AUTOINDEX +// +// MessageText: +// +// SQLITE_WARNING_AUTOINDEX +// +#define SQLITE_E_WARNING_AUTOINDEX _HRESULT_TYPEDEF_(0x87AF011CL) + +// +// MessageId: SQLITE_E_AUTH_USER +// +// MessageText: +// +// SQLITE_AUTH_USER +// +#define SQLITE_E_AUTH_USER _HRESULT_TYPEDEF_(0x87AF0117L) + +// +// FACILITY_UTC +// +// +// MessageId: UTC_E_TOGGLE_TRACE_STARTED +// +// MessageText: +// +// Toggle (alternative) trace started +// +#define UTC_E_TOGGLE_TRACE_STARTED _HRESULT_TYPEDEF_(0x87C51001L) + +// +// MessageId: UTC_E_ALTERNATIVE_TRACE_CANNOT_PREEMPT +// +// MessageText: +// +// Cannot pre-empt running trace: The current trace has a higher priority +// +#define UTC_E_ALTERNATIVE_TRACE_CANNOT_PREEMPT _HRESULT_TYPEDEF_(0x87C51002L) + +// +// MessageId: UTC_E_AOT_NOT_RUNNING +// +// MessageText: +// +// The always-on-trace is not running +// +#define UTC_E_AOT_NOT_RUNNING _HRESULT_TYPEDEF_(0x87C51003L) + +// +// MessageId: UTC_E_SCRIPT_TYPE_INVALID +// +// MessageText: +// +// RunScriptAction contains an invalid script type +// +#define UTC_E_SCRIPT_TYPE_INVALID _HRESULT_TYPEDEF_(0x87C51004L) + +// +// MessageId: UTC_E_SCENARIODEF_NOT_FOUND +// +// MessageText: +// +// Requested scenario definition cannot be found +// +#define UTC_E_SCENARIODEF_NOT_FOUND _HRESULT_TYPEDEF_(0x87C51005L) + +// +// MessageId: UTC_E_TRACEPROFILE_NOT_FOUND +// +// MessageText: +// +// Requested trace profile cannot be found +// +#define UTC_E_TRACEPROFILE_NOT_FOUND _HRESULT_TYPEDEF_(0x87C51006L) + +// +// MessageId: UTC_E_FORWARDER_ALREADY_ENABLED +// +// MessageText: +// +// Trigger forwarder is already enabled +// +#define UTC_E_FORWARDER_ALREADY_ENABLED _HRESULT_TYPEDEF_(0x87C51007L) + +// +// MessageId: UTC_E_FORWARDER_ALREADY_DISABLED +// +// MessageText: +// +// Trigger forwarder is already disabled +// +#define UTC_E_FORWARDER_ALREADY_DISABLED _HRESULT_TYPEDEF_(0x87C51008L) + +// +// MessageId: UTC_E_EVENTLOG_ENTRY_MALFORMED +// +// MessageText: +// +// Cannot parse EventLog XML: The entry is malformed +// +#define UTC_E_EVENTLOG_ENTRY_MALFORMED _HRESULT_TYPEDEF_(0x87C51009L) + +// +// MessageId: UTC_E_DIAGRULES_SCHEMAVERSION_MISMATCH +// +// MessageText: +// +// node contains a schemaversion which is not compatible with this client +// +#define UTC_E_DIAGRULES_SCHEMAVERSION_MISMATCH _HRESULT_TYPEDEF_(0x87C5100AL) + +// +// MessageId: UTC_E_SCRIPT_TERMINATED +// +// MessageText: +// +// RunScriptAction was forced to terminate a script +// +#define UTC_E_SCRIPT_TERMINATED _HRESULT_TYPEDEF_(0x87C5100BL) + +// +// MessageId: UTC_E_INVALID_CUSTOM_FILTER +// +// MessageText: +// +// ToggleTraceWithCustomFilterAction contains an invalid custom filter +// +#define UTC_E_INVALID_CUSTOM_FILTER _HRESULT_TYPEDEF_(0x87C5100CL) + +// +// MessageId: UTC_E_TRACE_NOT_RUNNING +// +// MessageText: +// +// The trace is not running +// +#define UTC_E_TRACE_NOT_RUNNING _HRESULT_TYPEDEF_(0x87C5100DL) + +// +// MessageId: UTC_E_REESCALATED_TOO_QUICKLY +// +// MessageText: +// +// A scenario failed to escalate: This scenario has escalated too recently +// +#define UTC_E_REESCALATED_TOO_QUICKLY _HRESULT_TYPEDEF_(0x87C5100EL) + +// +// MessageId: UTC_E_ESCALATION_ALREADY_RUNNING +// +// MessageText: +// +// A scenario failed to escalate: This scenario is already running an escalation +// +#define UTC_E_ESCALATION_ALREADY_RUNNING _HRESULT_TYPEDEF_(0x87C5100FL) + +// +// MessageId: UTC_E_PERFTRACK_ALREADY_TRACING +// +// MessageText: +// +// Cannot start tracing: PerfTrack component is already tracing +// +#define UTC_E_PERFTRACK_ALREADY_TRACING _HRESULT_TYPEDEF_(0x87C51010L) + +// +// MessageId: UTC_E_REACHED_MAX_ESCALATIONS +// +// MessageText: +// +// A scenario failed to escalate: This scenario has reached max escalations for this escalation type +// +#define UTC_E_REACHED_MAX_ESCALATIONS _HRESULT_TYPEDEF_(0x87C51011L) + +// +// MessageId: UTC_E_FORWARDER_PRODUCER_MISMATCH +// +// MessageText: +// +// Cannot update forwarder: The forwarder passed to the function is of a different type +// +#define UTC_E_FORWARDER_PRODUCER_MISMATCH _HRESULT_TYPEDEF_(0x87C51012L) + +// +// MessageId: UTC_E_INTENTIONAL_SCRIPT_FAILURE +// +// MessageText: +// +// RunScriptAction failed intentionally to force this escalation to terminate +// +#define UTC_E_INTENTIONAL_SCRIPT_FAILURE _HRESULT_TYPEDEF_(0x87C51013L) + +// +// MessageId: UTC_E_SQM_INIT_FAILED +// +// MessageText: +// +// Failed to initialize SQM logger +// +#define UTC_E_SQM_INIT_FAILED _HRESULT_TYPEDEF_(0x87C51014L) + +// +// MessageId: UTC_E_NO_WER_LOGGER_SUPPORTED +// +// MessageText: +// +// Failed to initialize WER logger: This system does not support WER for UTC +// +#define UTC_E_NO_WER_LOGGER_SUPPORTED _HRESULT_TYPEDEF_(0x87C51015L) + +// +// MessageId: UTC_E_TRACERS_DONT_EXIST +// +// MessageText: +// +// The TraceManager has attempted to take a tracing action without initializing tracers +// +#define UTC_E_TRACERS_DONT_EXIST _HRESULT_TYPEDEF_(0x87C51016L) + +// +// MessageId: UTC_E_WINRT_INIT_FAILED +// +// MessageText: +// +// WinRT initialization failed +// +#define UTC_E_WINRT_INIT_FAILED _HRESULT_TYPEDEF_(0x87C51017L) + +// +// MessageId: UTC_E_SCENARIODEF_SCHEMAVERSION_MISMATCH +// +// MessageText: +// +// node contains a schemaversion that is not compatible with this client +// +#define UTC_E_SCENARIODEF_SCHEMAVERSION_MISMATCH _HRESULT_TYPEDEF_(0x87C51018L) + +// +// MessageId: UTC_E_INVALID_FILTER +// +// MessageText: +// +// Scenario contains an invalid filter that can never be satisfied +// +#define UTC_E_INVALID_FILTER _HRESULT_TYPEDEF_(0x87C51019L) + +// +// MessageId: UTC_E_EXE_TERMINATED +// +// MessageText: +// +// RunExeWithArgsAction was forced to terminate a running executable +// +#define UTC_E_EXE_TERMINATED _HRESULT_TYPEDEF_(0x87C5101AL) + +// +// MessageId: UTC_E_ESCALATION_NOT_AUTHORIZED +// +// MessageText: +// +// Escalation for scenario failed due to insufficient permissions +// +#define UTC_E_ESCALATION_NOT_AUTHORIZED _HRESULT_TYPEDEF_(0x87C5101BL) + +// +// MessageId: UTC_E_SETUP_NOT_AUTHORIZED +// +// MessageText: +// +// Setup for scenario failed due to insufficient permissions +// +#define UTC_E_SETUP_NOT_AUTHORIZED _HRESULT_TYPEDEF_(0x87C5101CL) + +// +// MessageId: UTC_E_CHILD_PROCESS_FAILED +// +// MessageText: +// +// A process launched by UTC failed with a non-zero exit code. +// +#define UTC_E_CHILD_PROCESS_FAILED _HRESULT_TYPEDEF_(0x87C5101DL) + +// +// MessageId: UTC_E_COMMAND_LINE_NOT_AUTHORIZED +// +// MessageText: +// +// A RunExeWithArgs action contains an unauthorized command line. +// +#define UTC_E_COMMAND_LINE_NOT_AUTHORIZED _HRESULT_TYPEDEF_(0x87C5101EL) + +// +// MessageId: UTC_E_CANNOT_LOAD_SCENARIO_EDITOR_XML +// +// MessageText: +// +// UTC cannot load Scenario Editor XML. Convert the scenario file to a DiagTrack XML using the editor. +// +#define UTC_E_CANNOT_LOAD_SCENARIO_EDITOR_XML _HRESULT_TYPEDEF_(0x87C5101FL) + +// +// MessageId: UTC_E_ESCALATION_TIMED_OUT +// +// MessageText: +// +// Escalation for scenario has timed out +// +#define UTC_E_ESCALATION_TIMED_OUT _HRESULT_TYPEDEF_(0x87C51020L) + +// +// MessageId: UTC_E_SETUP_TIMED_OUT +// +// MessageText: +// +// Setup for scenario has timed out +// +#define UTC_E_SETUP_TIMED_OUT _HRESULT_TYPEDEF_(0x87C51021L) + +// +// MessageId: UTC_E_TRIGGER_MISMATCH +// +// MessageText: +// +// The given trigger does not match the expected trigger type +// +#define UTC_E_TRIGGER_MISMATCH _HRESULT_TYPEDEF_(0x87C51022L) + +// +// MessageId: UTC_E_TRIGGER_NOT_FOUND +// +// MessageText: +// +// Requested trigger cannot be found +// +#define UTC_E_TRIGGER_NOT_FOUND _HRESULT_TYPEDEF_(0x87C51023L) + +// +// MessageId: UTC_E_SIF_NOT_SUPPORTED +// +// MessageText: +// +// SIF is not supported on the machine +// +#define UTC_E_SIF_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x87C51024L) + +// +// MessageId: UTC_E_DELAY_TERMINATED +// +// MessageText: +// +// The delay action was terminated +// +#define UTC_E_DELAY_TERMINATED _HRESULT_TYPEDEF_(0x87C51025L) + +// +// MessageId: UTC_E_DEVICE_TICKET_ERROR +// +// MessageText: +// +// The device ticket was not obtained +// +#define UTC_E_DEVICE_TICKET_ERROR _HRESULT_TYPEDEF_(0x87C51026L) + +// +// MessageId: UTC_E_TRACE_BUFFER_LIMIT_EXCEEDED +// +// MessageText: +// +// The trace profile needs more memory than is available for tracing +// +#define UTC_E_TRACE_BUFFER_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0x87C51027L) + +// +// MessageId: UTC_E_API_RESULT_UNAVAILABLE +// +// MessageText: +// +// The API was not completed successfully so the result is unavailable +// +#define UTC_E_API_RESULT_UNAVAILABLE _HRESULT_TYPEDEF_(0x87C51028L) + +// +// MessageId: UTC_E_RPC_TIMEOUT +// +// MessageText: +// +// The requested API encountered a timeout in the API manager +// +#define UTC_E_RPC_TIMEOUT _HRESULT_TYPEDEF_(0x87C51029L) + +// +// MessageId: UTC_E_RPC_WAIT_FAILED +// +// MessageText: +// +// The synchronous API encountered a wait failure +// +#define UTC_E_RPC_WAIT_FAILED _HRESULT_TYPEDEF_(0x87C5102AL) + +// +// MessageId: UTC_E_API_BUSY +// +// MessageText: +// +// The UTC API is busy with another request +// +#define UTC_E_API_BUSY _HRESULT_TYPEDEF_(0x87C5102BL) + +// +// MessageId: UTC_E_TRACE_MIN_DURATION_REQUIREMENT_NOT_MET +// +// MessageText: +// +// The running trace profile does not have a sufficient runtime to fulfill the escalation request +// +#define UTC_E_TRACE_MIN_DURATION_REQUIREMENT_NOT_MET _HRESULT_TYPEDEF_(0x87C5102CL) + +// +// MessageId: UTC_E_EXCLUSIVITY_NOT_AVAILABLE +// +// MessageText: +// +// The trace profile could not be started because it requires exclusivity and another higher priority trace is already running +// +#define UTC_E_EXCLUSIVITY_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x87C5102DL) + +// +// MessageId: UTC_E_GETFILE_FILE_PATH_NOT_APPROVED +// +// MessageText: +// +// The file path is not approved for the GetFile escalation action +// +#define UTC_E_GETFILE_FILE_PATH_NOT_APPROVED _HRESULT_TYPEDEF_(0x87C5102EL) + +// +// MessageId: UTC_E_ESCALATION_DIRECTORY_ALREADY_EXISTS +// +// MessageText: +// +// The escalation working directory for the requested escalation could not be created because it already exists +// +#define UTC_E_ESCALATION_DIRECTORY_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x87C5102FL) + +// +// MessageId: UTC_E_TIME_TRIGGER_ON_START_INVALID +// +// MessageText: +// +// Time triggers cannot be used on a transition originating from the "_start" state +// +#define UTC_E_TIME_TRIGGER_ON_START_INVALID _HRESULT_TYPEDEF_(0x87C51030L) + +// +// MessageId: UTC_E_TIME_TRIGGER_ONLY_VALID_ON_SINGLE_TRANSITION +// +// MessageText: +// +// Time triggers can only be attached to a single transition +// +#define UTC_E_TIME_TRIGGER_ONLY_VALID_ON_SINGLE_TRANSITION _HRESULT_TYPEDEF_(0x87C51031L) + +// +// MessageId: UTC_E_TIME_TRIGGER_INVALID_TIME_RANGE +// +// MessageText: +// +// Time trigger duration must fall within an inclusive range of one second and 15 minutes +// +#define UTC_E_TIME_TRIGGER_INVALID_TIME_RANGE _HRESULT_TYPEDEF_(0x87C51032L) + +// +// MessageId: UTC_E_MULTIPLE_TIME_TRIGGER_ON_SINGLE_STATE +// +// MessageText: +// +// Only one Time Trigger is allowed per state +// +#define UTC_E_MULTIPLE_TIME_TRIGGER_ON_SINGLE_STATE _HRESULT_TYPEDEF_(0x87C51033L) + +// +// MessageId: UTC_E_BINARY_MISSING +// +// MessageText: +// +// A RunExeWithArgs action contains a binary which is not present on the targeted device. +// +#define UTC_E_BINARY_MISSING _HRESULT_TYPEDEF_(0x87C51034L) + +// +// MessageId: UTC_E_FAILED_TO_RESOLVE_CONTAINER_ID +// +// MessageText: +// +// UTC failed to identify the container id to use for a scenario escalation action. +// +#define UTC_E_FAILED_TO_RESOLVE_CONTAINER_ID _HRESULT_TYPEDEF_(0x87C51036L) + +// +// MessageId: UTC_E_UNABLE_TO_RESOLVE_SESSION +// +// MessageText: +// +// Failed to resolve session ID during API invocation. +// +#define UTC_E_UNABLE_TO_RESOLVE_SESSION _HRESULT_TYPEDEF_(0x87C51037L) + +// +// MessageId: UTC_E_THROTTLED +// +// MessageText: +// +// UTC has throttled the event for firing too often. +// +#define UTC_E_THROTTLED _HRESULT_TYPEDEF_(0x87C51038L) + +// +// MessageId: UTC_E_UNAPPROVED_SCRIPT +// +// MessageText: +// +// The script is not approved to run as part of DiagTrack scenario. +// +#define UTC_E_UNAPPROVED_SCRIPT _HRESULT_TYPEDEF_(0x87C51039L) + +// +// MessageId: UTC_E_SCRIPT_MISSING +// +// MessageText: +// +// The script referenced in DiagTrack scenario is not present on the system. +// +#define UTC_E_SCRIPT_MISSING _HRESULT_TYPEDEF_(0x87C5103AL) + +// +// MessageId: UTC_E_SCENARIO_THROTTLED +// +// MessageText: +// +// A trigger in this scenario is throttled, blocking the scenario from being loaded. +// +#define UTC_E_SCENARIO_THROTTLED _HRESULT_TYPEDEF_(0x87C5103BL) + +// +// MessageId: UTC_E_API_NOT_SUPPORTED +// +// MessageText: +// +// The requested UTC API call is not supported on this device. +// +#define UTC_E_API_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x87C5103CL) + +// +// MessageId: UTC_E_GETFILE_EXTERNAL_PATH_NOT_APPROVED +// +// MessageText: +// +// The file path is not approved for collection on external rings for the GetFile escalation action. +// +#define UTC_E_GETFILE_EXTERNAL_PATH_NOT_APPROVED _HRESULT_TYPEDEF_(0x87C5103DL) + +// +// MessageId: UTC_E_TRY_GET_SCENARIO_TIMEOUT_EXCEEDED +// +// MessageText: +// +// Querying a scenario definition exceeded the specified maximum timeout. +// +#define UTC_E_TRY_GET_SCENARIO_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x87C5103EL) + +// +// MessageId: UTC_E_CERT_REV_FAILED +// +// MessageText: +// +// Certification revocation checking has been enabled, but the revocation check failed to verify whether a certificate has been revoked. The server used to check for revocation might be unreachable. +// +#define UTC_E_CERT_REV_FAILED _HRESULT_TYPEDEF_(0x87C5103FL) + +// +// MessageId: UTC_E_FAILED_TO_START_NDISCAP +// +// MessageText: +// +// Failed to start NDISCAP service for network packet capture trace. +// +#define UTC_E_FAILED_TO_START_NDISCAP _HRESULT_TYPEDEF_(0x87C51040L) + +// +// MessageId: UTC_E_KERNELDUMP_LIMIT_REACHED +// +// MessageText: +// +// UTC can perform no more than one KernelDump action on a device every 24 hours. +// +#define UTC_E_KERNELDUMP_LIMIT_REACHED _HRESULT_TYPEDEF_(0x87C51041L) + +// +// MessageId: UTC_E_MISSING_AGGREGATE_EVENT_TAG +// +// MessageText: +// +// The event contained an aggregation or differential privacy structure, but did not specify MICROSOFT_EVENTTAG_AGGREGATE. +// +#define UTC_E_MISSING_AGGREGATE_EVENT_TAG _HRESULT_TYPEDEF_(0x87C51042L) + +// +// MessageId: UTC_E_INVALID_AGGREGATION_STRUCT +// +// MessageText: +// +// The event contained an invalid aggregation or differential privacy structure. +// +#define UTC_E_INVALID_AGGREGATION_STRUCT _HRESULT_TYPEDEF_(0x87C51043L) + +// +// MessageId: UTC_E_ACTION_NOT_SUPPORTED_IN_DESTINATION +// +// MessageText: +// +// The action cannot be completed in the specified destination. +// +#define UTC_E_ACTION_NOT_SUPPORTED_IN_DESTINATION _HRESULT_TYPEDEF_(0x87C51044L) + +// +// MessageId: UTC_E_FILTER_MISSING_ATTRIBUTE +// +// MessageText: +// +// Filter command is missing a required attribute. +// +#define UTC_E_FILTER_MISSING_ATTRIBUTE _HRESULT_TYPEDEF_(0x87C51045L) + +// +// MessageId: UTC_E_FILTER_INVALID_TYPE +// +// MessageText: +// +// Filter command contains an unsupported type. +// +#define UTC_E_FILTER_INVALID_TYPE _HRESULT_TYPEDEF_(0x87C51046L) + +// +// MessageId: UTC_E_FILTER_VARIABLE_NOT_FOUND +// +// MessageText: +// +// Filter variable does not exist at point of evaluation. +// +#define UTC_E_FILTER_VARIABLE_NOT_FOUND _HRESULT_TYPEDEF_(0x87C51047L) + +// +// MessageId: UTC_E_FILTER_FUNCTION_RESTRICTED +// +// MessageText: +// +// Filter command is not allowed in the current context. +// +#define UTC_E_FILTER_FUNCTION_RESTRICTED _HRESULT_TYPEDEF_(0x87C51048L) + +// +// MessageId: UTC_E_FILTER_VERSION_MISMATCH +// +// MessageText: +// +// Requested filter version is incompatible with available version. +// +#define UTC_E_FILTER_VERSION_MISMATCH _HRESULT_TYPEDEF_(0x87C51049L) + +// +// MessageId: UTC_E_FILTER_INVALID_FUNCTION +// +// MessageText: +// +// Filter does not support this function. +// +#define UTC_E_FILTER_INVALID_FUNCTION _HRESULT_TYPEDEF_(0x87C51050L) + +// +// MessageId: UTC_E_FILTER_INVALID_FUNCTION_PARAMS +// +// MessageText: +// +// Filter function does not accept the provided parameter types and/or count. +// +#define UTC_E_FILTER_INVALID_FUNCTION_PARAMS _HRESULT_TYPEDEF_(0x87C51051L) + +// +// MessageId: UTC_E_FILTER_INVALID_COMMAND +// +// MessageText: +// +// Filter command does not exist or is incorrectly formatted. +// +#define UTC_E_FILTER_INVALID_COMMAND _HRESULT_TYPEDEF_(0x87C51052L) + +// +// MessageId: UTC_E_FILTER_ILLEGAL_EVAL +// +// MessageText: +// +// Filter types can not be compared to each other. +// +#define UTC_E_FILTER_ILLEGAL_EVAL _HRESULT_TYPEDEF_(0x87C51053L) + +// +// MessageId: UTC_E_TTTRACER_RETURNED_ERROR +// +// MessageText: +// +// TTTracer executable returned a code other than ERROR_SUCCESS. +// +#define UTC_E_TTTRACER_RETURNED_ERROR _HRESULT_TYPEDEF_(0x87C51054L) + +// +// MessageId: UTC_E_AGENT_DIAGNOSTICS_TOO_LARGE +// +// MessageText: +// +// The total size of the compressed escalation data payload exceeded the allowable limit. +// +#define UTC_E_AGENT_DIAGNOSTICS_TOO_LARGE _HRESULT_TYPEDEF_(0x87C51055L) + +// +// MessageId: UTC_E_FAILED_TO_RECEIVE_AGENT_DIAGNOSTICS +// +// MessageText: +// +// Escalation data was not completely transferred from agent to host. +// +#define UTC_E_FAILED_TO_RECEIVE_AGENT_DIAGNOSTICS _HRESULT_TYPEDEF_(0x87C51056L) + +// +// MessageId: UTC_E_SCENARIO_HAS_NO_ACTIONS +// +// MessageText: +// +// An escalation was requested for a scenario which has no actions for the passed type. +// +#define UTC_E_SCENARIO_HAS_NO_ACTIONS _HRESULT_TYPEDEF_(0x87C51057L) + +// +// MessageId: UTC_E_TTTRACER_STORAGE_FULL +// +// MessageText: +// +// UTC allocated space for TTTracer escalations is full. +// +#define UTC_E_TTTRACER_STORAGE_FULL _HRESULT_TYPEDEF_(0x87C51058L) + +// +// MessageId: UTC_E_INSUFFICIENT_SPACE_TO_START_TRACE +// +// MessageText: +// +// Disk needs minimum of 15GB to start TTD recording session. +// +#define UTC_E_INSUFFICIENT_SPACE_TO_START_TRACE _HRESULT_TYPEDEF_(0x87C51059L) + +// +// MessageId: UTC_E_ESCALATION_CANCELLED_AT_SHUTDOWN +// +// MessageText: +// +// Escalation was cancelled due to component shutdown. +// +#define UTC_E_ESCALATION_CANCELLED_AT_SHUTDOWN _HRESULT_TYPEDEF_(0x87C5105AL) + +// +// MessageId: UTC_E_GETFILEINFOACTION_FILE_NOT_APPROVED +// +// MessageText: +// +// The file for the GetFileInfo action must be under the \Windows, \Program Files, or \Program Files (x86) directories. +// +#define UTC_E_GETFILEINFOACTION_FILE_NOT_APPROVED _HRESULT_TYPEDEF_(0x87C5105BL) + +// +// MessageId: UTC_E_SETREGKEYACTION_TYPE_NOT_APPROVED +// +// MessageText: +// +// The registry value type for SetRegKey action must be REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ, REG_BINARY, REG_DWORD, or REG_QWORD. +// +#define UTC_E_SETREGKEYACTION_TYPE_NOT_APPROVED _HRESULT_TYPEDEF_(0x87C5105CL) + +// +// MessageId: UTC_E_TRACE_THROTTLED +// +// MessageText: +// +// An operation which requires a running un-throttled trace failed due to the trace being throttled. +// +#define UTC_E_TRACE_THROTTLED _HRESULT_TYPEDEF_(0x87C5105DL) + + +// +// WinML +// + +// +// MessageId: WINML_ERR_INVALID_DEVICE +// +// MessageText: +// +// The device is invalid or does not support machine learning. +// +#define WINML_ERR_INVALID_DEVICE _HRESULT_TYPEDEF_(0x88900001L) + +// +// MessageId: WINML_ERR_INVALID_BINDING +// +// MessageText: +// +// The binding is incomplete or does not match the input/output description. +// +#define WINML_ERR_INVALID_BINDING _HRESULT_TYPEDEF_(0x88900002L) + +// +// MessageId: WINML_ERR_VALUE_NOTFOUND +// +// MessageText: +// +// An attempt was made to bind an unknown input or output. +// +#define WINML_ERR_VALUE_NOTFOUND _HRESULT_TYPEDEF_(0x88900003L) + +// +// MessageId: WINML_ERR_SIZE_MISMATCH +// +// MessageText: +// +// The size of the buffer provided for a bound variable is invalid. +// +#define WINML_ERR_SIZE_MISMATCH _HRESULT_TYPEDEF_(0x88900004L) + +// +// QUIC +// +// +// MessageId: ERROR_QUIC_HANDSHAKE_FAILURE +// +// MessageText: +// +// The QUIC connection handshake failed. +// +#define ERROR_QUIC_HANDSHAKE_FAILURE _HRESULT_TYPEDEF_(0x80410000L) + +// +// MessageId: ERROR_QUIC_VER_NEG_FAILURE +// +// MessageText: +// +// The QUIC connection failed to negotiate a compatible protocol version. +// +#define ERROR_QUIC_VER_NEG_FAILURE _HRESULT_TYPEDEF_(0x80410001L) + +// +// MessageId: ERROR_QUIC_USER_CANCELED +// +// MessageText: +// +// The QUIC connection was canceled by the user. +// +#define ERROR_QUIC_USER_CANCELED _HRESULT_TYPEDEF_(0x80410002L) + +// +// MessageId: ERROR_QUIC_INTERNAL_ERROR +// +// MessageText: +// +// The QUIC connection encountered an internal error. +// +#define ERROR_QUIC_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80410003L) + +// +// MessageId: ERROR_QUIC_PROTOCOL_VIOLATION +// +// MessageText: +// +// The QUIC connection encountered a protocol violation. +// +#define ERROR_QUIC_PROTOCOL_VIOLATION _HRESULT_TYPEDEF_(0x80410004L) + +// +// MessageId: ERROR_QUIC_CONNECTION_IDLE +// +// MessageText: +// +// The QUIC connection was idle. +// +#define ERROR_QUIC_CONNECTION_IDLE _HRESULT_TYPEDEF_(0x80410005L) + +// +// MessageId: ERROR_QUIC_CONNECTION_TIMEOUT +// +// MessageText: +// +// The QUIC connection timed out while trying to contact the peer. +// +#define ERROR_QUIC_CONNECTION_TIMEOUT _HRESULT_TYPEDEF_(0x80410006L) + +// +// MessageId: ERROR_QUIC_ALPN_NEG_FAILURE +// +// MessageText: +// +// The QUIC connection failed to negotiate a compatible ALPN. +// +#define ERROR_QUIC_ALPN_NEG_FAILURE _HRESULT_TYPEDEF_(0x80410007L) + +// +// MessageId: ERROR_QUIC_STREAM_LIMIT_REACHED +// +// MessageText: +// +// The QUIC connection failed because there are not enough streams available. +// +#define ERROR_QUIC_STREAM_LIMIT_REACHED _HRESULT_TYPEDEF_(0x80410008L) + +// +// MessageId: ERROR_QUIC_ALPN_IN_USE +// +// MessageText: +// +// The QUIC connection failed because the ALPN is in use. +// +#define ERROR_QUIC_ALPN_IN_USE _HRESULT_TYPEDEF_(0x80410009L) + + +// +// QUIC TLS +// + +// +// MessageId: ERROR_QUIC_TLS_UNEXPECTED_MESSAGE +// +// MessageText: +// +// The QUIC connection encountered an unexpected message during TLS. +// +#define ERROR_QUIC_TLS_UNEXPECTED_MESSAGE _HRESULT_TYPEDEF_(0x8041010AL) + +// +// MessageId: ERROR_QUIC_TLS_BAD_CERTIFICATE +// +// MessageText: +// +// The QUIC connection encountered a bad certificate during TLS. +// +#define ERROR_QUIC_TLS_BAD_CERTIFICATE _HRESULT_TYPEDEF_(0x8041012AL) + +// +// MessageId: ERROR_QUIC_TLS_UNSUPPORTED_CERTIFICATE +// +// MessageText: +// +// The QUIC connection encountered an unsupported certificate during TLS. +// +#define ERROR_QUIC_TLS_UNSUPPORTED_CERTIFICATE _HRESULT_TYPEDEF_(0x8041012BL) + +// +// MessageId: ERROR_QUIC_TLS_CERTIFICATE_REVOKED +// +// MessageText: +// +// The QUIC connection encountered a revoked certificate during TLS. +// +#define ERROR_QUIC_TLS_CERTIFICATE_REVOKED _HRESULT_TYPEDEF_(0x8041012CL) + +// +// MessageId: ERROR_QUIC_TLS_CERTIFICATE_EXPIRED +// +// MessageText: +// +// The QUIC connection encountered an expired certificate during TLS. +// +#define ERROR_QUIC_TLS_CERTIFICATE_EXPIRED _HRESULT_TYPEDEF_(0x8041012DL) + +// +// MessageId: ERROR_QUIC_TLS_CERTIFICATE_UNKNOWN +// +// MessageText: +// +// The QUIC connection encountered an unknown certificate during TLS. +// +#define ERROR_QUIC_TLS_CERTIFICATE_UNKNOWN _HRESULT_TYPEDEF_(0x8041012EL) + +// +// MessageId: ERROR_QUIC_TLS_ILLEGAL_PARAMETER +// +// MessageText: +// +// The QUIC connection encountered an illegal parameter during TLS. +// +#define ERROR_QUIC_TLS_ILLEGAL_PARAMETER _HRESULT_TYPEDEF_(0x8041012FL) + +// +// MessageId: ERROR_QUIC_TLS_UNKNOWN_CA +// +// MessageText: +// +// The QUIC connection encountered a certificate with an unkown certificate authority during TLS. +// +#define ERROR_QUIC_TLS_UNKNOWN_CA _HRESULT_TYPEDEF_(0x80410130L) + +// +// MessageId: ERROR_QUIC_TLS_ACCESS_DENIED +// +// MessageText: +// +// The QUIC connection attempt was denied by the peer during TLS. +// +#define ERROR_QUIC_TLS_ACCESS_DENIED _HRESULT_TYPEDEF_(0x80410131L) + +// +// MessageId: ERROR_QUIC_TLS_INSUFFICIENT_SECURITY +// +// MessageText: +// +// The QUIC connection security was insufficient during TLS. +// +#define ERROR_QUIC_TLS_INSUFFICIENT_SECURITY _HRESULT_TYPEDEF_(0x80410147L) + +// +// MessageId: ERROR_QUIC_TLS_INTERNAL_ERROR +// +// MessageText: +// +// The QUIC connection encountered an internal error during TLS. +// +#define ERROR_QUIC_TLS_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80410150L) + +// +// MessageId: ERROR_QUIC_TLS_USER_CANCELED +// +// MessageText: +// +// The QUIC connection was canceled by the user during TLS. +// +#define ERROR_QUIC_TLS_USER_CANCELED _HRESULT_TYPEDEF_(0x8041015AL) + +// +// MessageId: ERROR_QUIC_TLS_CERTIFICATE_REQUIRED +// +// MessageText: +// +// The QUIC connection required a certificate during TLS. +// +#define ERROR_QUIC_TLS_CERTIFICATE_REQUIRED _HRESULT_TYPEDEF_(0x80410174L) + + +// +// IORING Error codes +// + +// +// MessageId: IORING_E_REQUIRED_FLAG_NOT_SUPPORTED +// +// MessageText: +// +// One or more of the required flags provided is unknown by the implementation. +// +#define IORING_E_REQUIRED_FLAG_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80460001L) + +// +// MessageId: IORING_E_SUBMISSION_QUEUE_FULL +// +// MessageText: +// +// The submission queue is full. +// +#define IORING_E_SUBMISSION_QUEUE_FULL _HRESULT_TYPEDEF_(0x80460002L) + +// +// MessageId: IORING_E_VERSION_NOT_SUPPORTED +// +// MessageText: +// +// The version specified is not known or supported. +// +#define IORING_E_VERSION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80460003L) + +// +// MessageId: IORING_E_SUBMISSION_QUEUE_TOO_BIG +// +// MessageText: +// +// The submission queue size specified for the IoRing is too big. +// +#define IORING_E_SUBMISSION_QUEUE_TOO_BIG _HRESULT_TYPEDEF_(0x80460004L) + +// +// MessageId: IORING_E_COMPLETION_QUEUE_TOO_BIG +// +// MessageText: +// +// The completion queue size specified for the IoRing is too big. +// +#define IORING_E_COMPLETION_QUEUE_TOO_BIG _HRESULT_TYPEDEF_(0x80460005L) + +// +// MessageId: IORING_E_SUBMIT_IN_PROGRESS +// +// MessageText: +// +// A submit operation is already in progress for this IoRing on another thread. +// +#define IORING_E_SUBMIT_IN_PROGRESS _HRESULT_TYPEDEF_(0x80460006L) + +// +// MessageId: IORING_E_CORRUPT +// +// MessageText: +// +// The shared ring buffers of the IoRing are corrupt. +// +#define IORING_E_CORRUPT _HRESULT_TYPEDEF_(0x80460007L) + +// +// MessageId: IORING_E_COMPLETION_QUEUE_TOO_FULL +// +// MessageText: +// +// The completion queue does not have enough free space, to post completions, for all entries being submitted. +// +#define IORING_E_COMPLETION_QUEUE_TOO_FULL _HRESULT_TYPEDEF_(0x80460008L) + + +// +// UnionFS Error codes +// + +// +// MessageId: UNIONFS_E_CANNOT_CROSS_UNION +// +// MessageText: +// +// This operation is not allowed across unions. +// +#define UNIONFS_E_CANNOT_CROSS_UNION _HRESULT_TYPEDEF_(0x89250001L) + +// +// MessageId: UNIONFS_E_CANNOT_EXIT_UNION +// +// MessageText: +// +// This operation is not allowed to have a destination outside of a union. +// +#define UNIONFS_E_CANNOT_EXIT_UNION _HRESULT_TYPEDEF_(0x89250002L) + +// +// MessageId: UNIONFS_E_CANNOT_PRESERVE_LINK +// +// MessageText: +// +// This file has one or more hard links in the scratch layer. +// +#define UNIONFS_E_CANNOT_PRESERVE_LINK _HRESULT_TYPEDEF_(0x89250003L) + +// +// MessageId: UNIONFS_E_INVALID_TOMBSTONE_STATE +// +// MessageText: +// +// The tombstone cannot be created in or transitioned to the given state. +// +#define UNIONFS_E_INVALID_TOMBSTONE_STATE _HRESULT_TYPEDEF_(0x89250004L) + +// +// MessageId: UNIONFS_E_LAYERS_PRESENT +// +// MessageText: +// +// This union has attached layers preventing this operation. +// +#define UNIONFS_E_LAYERS_PRESENT _HRESULT_TYPEDEF_(0x89250005L) + +// +// MessageId: UNIONFS_E_NESTED_LAYER +// +// MessageText: +// +// A union layer root cannot be a descendant of another layer root. +// +#define UNIONFS_E_NESTED_LAYER _HRESULT_TYPEDEF_(0x89250006L) + +// +// MessageId: UNIONFS_E_UNION_DUPLICATE_ID +// +// MessageText: +// +// A union with this union ID already exists. +// +#define UNIONFS_E_UNION_DUPLICATE_ID _HRESULT_TYPEDEF_(0x89250007L) + +// +// MessageId: UNIONFS_E_INACTIVE_UNION +// +// MessageText: +// +// The union this operation is being performed on is inactive. +// +#define UNIONFS_E_INACTIVE_UNION _HRESULT_TYPEDEF_(0x89250008L) + +// +// MessageId: UNIONFS_E_TOO_MANY_LAYERS +// +// MessageText: +// +// There are too many layers to construct this union. +// +#define UNIONFS_E_TOO_MANY_LAYERS _HRESULT_TYPEDEF_(0x89250009L) + +// +// MessageId: UNIONFS_E_TOO_LATE +// +// MessageText: +// +// The UnionFS service is not available. +// +#define UNIONFS_E_TOO_LATE _HRESULT_TYPEDEF_(0x8925000AL) + +// +// MessageId: UNIONFS_E_NESTED_UNION +// +// MessageText: +// +// The operation cannot be supported because of a nested union. +// +#define UNIONFS_E_NESTED_UNION _HRESULT_TYPEDEF_(0x8925000BL) + +// +// MessageId: UNIONFS_E_NESTED_UNION_NOT_ALLOWED +// +// MessageText: +// +// An attempt was made to create a new union root as an ancestor or descendant of an existing union root, but the new union is not configured to allow nesting. +// +#define UNIONFS_E_NESTED_UNION_NOT_ALLOWED _HRESULT_TYPEDEF_(0x8925000CL) + + +// +// PRM Error codes +// + +// +// MessageId: ERROR_PRM_HANDLER_NOT_FOUND +// +// MessageText: +// +// The specified PRM handler was not found. +// +#define ERROR_PRM_HANDLER_NOT_FOUND _HRESULT_TYPEDEF_(0xC9260200L) + +// +// MessageId: ERROR_PRM_CONCURRENT_OPERATION +// +// MessageText: +// +// The PRM call cannot be serviced due to a concurrent PRM operation. +// +#define ERROR_PRM_CONCURRENT_OPERATION _HRESULT_TYPEDEF_(0xC9260202L) + +// +// MessageId: ERROR_PRM_MODULE_UPDATE_PENDING +// +// MessageText: +// +// The PRM call failed due to a pending module update. +// +#define ERROR_PRM_MODULE_UPDATE_PENDING _HRESULT_TYPEDEF_(0xC9260203L) + +// +// MessageId: ERROR_PRM_MODULE_LOCKED +// +// MessageText: +// +// The PRM lock operation failed because the module is already locked. +// +#define ERROR_PRM_MODULE_LOCKED _HRESULT_TYPEDEF_(0xC9260204L) + +// +// MessageId: ERROR_PRM_UPDATE_INCOMPATIBLE_VERSION +// +// MessageText: +// +// The PRM update module version number is too small to be applied. +// +#define ERROR_PRM_UPDATE_INCOMPATIBLE_VERSION _HRESULT_TYPEDEF_(0xC9260205L) + +// +// MessageId: ERROR_PRM_UPDATE_MODULE_MISMATCH +// +// MessageText: +// +// The PRM update module does not match the current version. +// +#define ERROR_PRM_UPDATE_MODULE_MISMATCH _HRESULT_TYPEDEF_(0xC9260206L) + +// +// MessageId: ERROR_PRM_UPDATE_MODULE_NOT_FOUND +// +// MessageText: +// +// The PRM update is not applicable to the base PRM implementation. +// +#define ERROR_PRM_UPDATE_MODULE_NOT_FOUND _HRESULT_TYPEDEF_(0xC9260207L) + +// +// MessageId: ERROR_PRM_UPDATE_MISSING_EXPORT +// +// MessageText: +// +// A handler export from the PRM update module cannot be found. +// +#define ERROR_PRM_UPDATE_MISSING_EXPORT _HRESULT_TYPEDEF_(0xC9260208L) + +// +// MessageId: ERROR_PRM_UPDATE_MODULE_LOCKED +// +// MessageText: +// +// The PRM update cannot be applied due to an outstanding PRM transaction. +// +#define ERROR_PRM_UPDATE_MODULE_LOCKED _HRESULT_TYPEDEF_(0xC9260209L) + +// +// MessageId: ERROR_PRM_UPDATE_BAD_SIGNATURE +// +// MessageText: +// +// The PRM update cannot be applied due to a bad PRM module signature. +// +#define ERROR_PRM_UPDATE_BAD_SIGNATURE _HRESULT_TYPEDEF_(0xC926020AL) + +// +// MessageId: ERROR_PRM_UPDATE_VERSION_MISMATCH +// +// MessageText: +// +// The PRM update service provided module version does not match that present in the actual update module header. +// +#define ERROR_PRM_UPDATE_VERSION_MISMATCH _HRESULT_TYPEDEF_(0xC926020BL) + +// +// MessageId: ERROR_PRM_MODULE_UNLOCKED +// +// MessageText: +// +// The PRM unlock operation failed because the module is already unlocked. +// +#define ERROR_PRM_MODULE_UNLOCKED _HRESULT_TYPEDEF_(0xC926020CL) + +// +// MessageId: ERROR_PRM_INTERFACE_INACCESSIBLE +// +// MessageText: +// +// The PRM driver interface is currently not accessible. +// +#define ERROR_PRM_INTERFACE_INACCESSIBLE _HRESULT_TYPEDEF_(0xC926020DL) + + +// +// WinAccel Error codes +// + +// +// MessageId: ERROR_ACCELERATOR_SUBMISSION_QUEUE_FULL +// +// MessageText: +// +// The accelerator submission queue is full. +// +#define ERROR_ACCELERATOR_SUBMISSION_QUEUE_FULL _HRESULT_TYPEDEF_(0xC9270000L) + + +/////////////////////////////////////////////////// +// // +// PCR Prediction Framework (PPF) Error codes // +// // +/////////////////////////////////////////////////// + +// +// MessageId: PPF_E_TRANSFORM_DIGEST_ALGO_NOT_SUPPORTED +// +// MessageText: +// +// The transform does not support the digest algorithm selected in the system. +// +#define PPF_E_TRANSFORM_DIGEST_ALGO_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC9280000L) + +// +// MessageId: PPF_E_TRANSFORM_CONFLICT +// +// MessageText: +// +// The transform being added conflicts with an existing transform in the system. +// +#define PPF_E_TRANSFORM_CONFLICT _HRESULT_TYPEDEF_(0xC9280001L) + +// +// MessageId: PPF_E_TRANSFORM_CLEANED_UP_NA +// +// MessageText: +// +// The transform was cleaned up because it is no longer applicable. +// +#define PPF_E_TRANSFORM_CLEANED_UP_NA _HRESULT_TYPEDEF_(0xC9280002L) + +// +// MessageId: PPF_E_TRANSFORM_CLEANED_UP_STATE_CHANGE +// +// MessageText: +// +// The transform was cleaned up because the system state changed unexpectedly. +// +#define PPF_E_TRANSFORM_CLEANED_UP_STATE_CHANGE _HRESULT_TYPEDEF_(0xC9280003L) + +// +// MessageId: PPF_E_TRANSFORM_DIGEST_ALGO_NOT_PRESENT +// +// MessageText: +// +// An event in the transform does not have a digest for the algorithm selected in the system. +// +#define PPF_E_TRANSFORM_DIGEST_ALGO_NOT_PRESENT _HRESULT_TYPEDEF_(0xC9280004L) + +#endif//_WINERROR_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winpackagefamily.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winpackagefamily.h new file mode 100644 index 0000000000000000000000000000000000000000..ffa22fb622494e6209e11cd6991f488148ea6a4c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winpackagefamily.h @@ -0,0 +1,91 @@ +/* + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + winpackagefamily.h + +Abstract: + + API family partitioning based on packages. + +*/ + +#ifndef _INC_WINPACKAGEFAMILY +#define _INC_WINPACKAGEFAMILY + +#if defined(_MSC_VER) && !defined(MOFCOMP_PASS) +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4001) /* nonstandard extension 'single line comment' was used */ +#endif +#pragma once +#endif // defined(_MSC_VER) && !defined(MOFCOMP_PASS) + +#ifndef WINAPI_PARTITION_SERVER +#define WINAPI_PARTITION_SERVER (WINAPI_FAMILY == WINAPI_FAMILY_SERVER) +#endif + +/* + * PARTITIONS based on packages are each #undef'ed below, and then will be #define-ed + * to be either 1 or 0 or depending on the active WINAPI_FAMILY. + */ +#undef WINAPI_PARTITION_PKG_WINTRUST +#undef WINAPI_PARTITION_PKG_WEBSERVICES +#undef WINAPI_PARTITION_PKG_EVENTLOGSERVICE +#undef WINAPI_PARTITION_PKG_VHD +#undef WINAPI_PARTITION_PKG_PERFCOUNTER +#undef WINAPI_PARTITION_PKG_SECURESTARTUP +#undef WINAPI_PARTITION_PKG_REMOTEFS +#undef WINAPI_PARTITION_PKG_BOOTABLESKU +#undef WINAPI_PARTITION_PKG_CMDTOOLS +#undef WINAPI_PARTITION_PKG_DISM +#undef WINAPI_PARTITION_PKG_CORESETUP +#undef WINAPI_PARTITION_PKG_APPRUNTIME +#undef WINAPI_PARTITION_PKG_ESENT +#undef WINAPI_PARTITION_PKG_WINMGMT +#undef WINAPI_PARTITION_PKG_WNV +#undef WINAPI_PARTITION_PKG_CLUSTER +#undef WINAPI_PARTITION_PKG_VSS +#undef WINAPI_PARTITION_PKG_TRAFFIC +#undef WINAPI_PARTITION_PKG_ISCSI +#undef WINAPI_PARTITION_PKG_STORAGE +#undef WINAPI_PARTITION_PKG_MPSSVC +#undef WINAPI_PARTITION_PKG_APPXDEPLOYMENT +#undef WINAPI_PARTITION_PKG_WER + +/* + * PARTITIONS for feature packages. Each package might be active for one or more editions + */ +#define WINAPI_PARTITION_PKG_WINTRUST (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_WEBSERVICES (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_EVENTLOGSERVICE (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_VHD (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_PERFCOUNTER (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_SECURESTARTUP (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_REMOTEFS (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_BOOTABLESKU (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_CMDTOOLS (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_DISM (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_CORESETUP (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_APPRUNTIME (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_ESENT (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_WINMGMT (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_WNV (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_CLUSTER (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_VSS (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_TRAFFIC (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_ISCSI (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_STORAGE (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_MPSSVC (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_APPXDEPLOYMENT (WINAPI_PARTITION_SERVER == 1) +#define WINAPI_PARTITION_PKG_WER (WINAPI_PARTITION_SERVER == 1) + +#if defined(_MSC_VER) && !defined(MOFCOMP_PASS) +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif +#endif + +#endif /* !_INC_WINPACKAGEFAMILY */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winsmcrd.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winsmcrd.h new file mode 100644 index 0000000000000000000000000000000000000000..391400f7734f2517bd71a896c13bcd0c27d23478 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winsmcrd.h @@ -0,0 +1,359 @@ +/*++ + +Copyright (c) 1996 Microsoft Corporation + +Module Name: + + winsmcrd.h + +Abstract: + Smart Card class/port IOCTL codes. This file is required for all code + user mode and kernel mode, using Smart Card IOCTL's, defines, + data structures + +Revision History: + +--*/ + + +#ifndef _NTDDSCRD_H2_ +#define _NTDDSCRD_H2_ + +#if defined (_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) // padding added after data member +#endif + +#ifdef _WINSCARD_H_ +typedef DWORD ULONG; +typedef WORD UWORD; +typedef BYTE UCHAR; +#else +typedef ULONG DWORD; +// typedef UWORD WORD; +typedef UCHAR BYTE; +#endif + +#ifndef DEVICE_TYPE_SMARTCARD +#define FILE_DEVICE_SMARTCARD 0x00000031 +#else +#if 0x00000031 != FILE_DEVICE_SMARTCARD +#error "Incorrect Smart Card Device Definition" +#endif +#endif + + +// +// Smart card reader interface GUID +// +// {50DD5230-BA8A-11D1-BF5D-0000F805F530} +// +DEFINE_GUID(GUID_DEVINTERFACE_SMARTCARD_READER, + 0x50DD5230, 0xBA8A, 0x11D1, 0xBF, 0x5D, 0x00, 0x00, 0xF8, 0x05, 0xF5, 0x30); + +// +// Various constants +// + +#define SCARD_ATR_LENGTH 33 // ISO 7816-3 spec. + +// +/////////////////////////////////////////////////////////////////////////////// +// +// Protocol Flag definitions +// + +#define SCARD_PROTOCOL_UNDEFINED 0x00000000 // There is no active protocol. +#define SCARD_PROTOCOL_T0 0x00000001 // T=0 is the active protocol. +#define SCARD_PROTOCOL_T1 0x00000002 // T=1 is the active protocol. +#define SCARD_PROTOCOL_RAW 0x00010000 // Raw is the active protocol. +// +// This is the mask of ISO defined transmission protocols +// +#define SCARD_PROTOCOL_Tx (SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1) +// +// Use the default transmission parameters / card clock freq. +// +#define SCARD_PROTOCOL_DEFAULT 0x80000000 +// +// Use optimal transmission parameters / card clock freq. +// Since using the optimal parameters is the default case no bit is defined to be 1 +// +#define SCARD_PROTOCOL_OPTIMAL 0x00000000 + + +// +// Ioctl parameters 1 for IOCTL_SMARTCARD_POWER +// +#define SCARD_POWER_DOWN 0 // Power down the card. +#define SCARD_COLD_RESET 1 // Cycle power and reset the card. +#define SCARD_WARM_RESET 2 // Force a reset on the card. + +// +/////////////////////////////////////////////////////////////////////////////// +// +// Reader Action IOCTLs +// + +#define SCARD_CTL_CODE(code) CTL_CODE(FILE_DEVICE_SMARTCARD, \ + (code), \ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define IOCTL_SMARTCARD_POWER SCARD_CTL_CODE( 1) +#define IOCTL_SMARTCARD_GET_ATTRIBUTE SCARD_CTL_CODE( 2) +#define IOCTL_SMARTCARD_SET_ATTRIBUTE SCARD_CTL_CODE( 3) +#define IOCTL_SMARTCARD_CONFISCATE SCARD_CTL_CODE( 4) +#define IOCTL_SMARTCARD_TRANSMIT SCARD_CTL_CODE( 5) +#define IOCTL_SMARTCARD_EJECT SCARD_CTL_CODE( 6) +#define IOCTL_SMARTCARD_SWALLOW SCARD_CTL_CODE( 7) +// #define IOCTL_SMARTCARD_READ SCARD_CTL_CODE( 8) obsolete +// #define IOCTL_SMARTCARD_WRITE SCARD_CTL_CODE( 9) obsolete +#define IOCTL_SMARTCARD_IS_PRESENT SCARD_CTL_CODE(10) +#define IOCTL_SMARTCARD_IS_ABSENT SCARD_CTL_CODE(11) +#define IOCTL_SMARTCARD_SET_PROTOCOL SCARD_CTL_CODE(12) +#define IOCTL_SMARTCARD_GET_STATE SCARD_CTL_CODE(14) +#define IOCTL_SMARTCARD_GET_LAST_ERROR SCARD_CTL_CODE(15) +#define IOCTL_SMARTCARD_GET_PERF_CNTR SCARD_CTL_CODE(16) +#define IOCTL_SMARTCARD_GET_FEATURE_REQUEST SCARD_CTL_CODE(3400) + + +// +/////////////////////////////////////////////////////////////////////////////// +// +// Tags for requesting card and reader attributes +// + +#define MAXIMUM_ATTR_STRING_LENGTH 32 // Nothing bigger than this from getAttr +#define MAXIMUM_SMARTCARD_READERS 10 // Limit the readers on the system + +#define SCARD_ATTR_VALUE(Class, Tag) ((((ULONG)(Class)) << 16) | ((ULONG)(Tag))) + +#define SCARD_CLASS_VENDOR_INFO 1 // Vendor information definitions +#define SCARD_CLASS_COMMUNICATIONS 2 // Communication definitions +#define SCARD_CLASS_PROTOCOL 3 // Protocol definitions +#define SCARD_CLASS_POWER_MGMT 4 // Power Management definitions +#define SCARD_CLASS_SECURITY 5 // Security Assurance definitions +#define SCARD_CLASS_MECHANICAL 6 // Mechanical characteristic definitions +#define SCARD_CLASS_VENDOR_DEFINED 7 // Vendor specific definitions +#define SCARD_CLASS_IFD_PROTOCOL 8 // Interface Device Protocol options +#define SCARD_CLASS_ICC_STATE 9 // ICC State specific definitions +#define SCARD_CLASS_PERF 0x7ffe // performace counters +#define SCARD_CLASS_SYSTEM 0x7fff // System-specific definitions + +#define SCARD_ATTR_VENDOR_NAME SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0100) +#define SCARD_ATTR_VENDOR_IFD_TYPE SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0101) +#define SCARD_ATTR_VENDOR_IFD_VERSION SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0102) +#define SCARD_ATTR_VENDOR_IFD_SERIAL_NO SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_INFO, 0x0103) +#define SCARD_ATTR_CHANNEL_ID SCARD_ATTR_VALUE(SCARD_CLASS_COMMUNICATIONS, 0x0110) +#define SCARD_ATTR_PROTOCOL_TYPES SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0120) +// #define SCARD_ATTR_ASYNC_PROTOCOL_TYPES SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0120) +#define SCARD_ATTR_DEFAULT_CLK SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0121) +#define SCARD_ATTR_MAX_CLK SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0122) +#define SCARD_ATTR_DEFAULT_DATA_RATE SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0123) +#define SCARD_ATTR_MAX_DATA_RATE SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0124) +#define SCARD_ATTR_MAX_IFSD SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0125) +// #define SCARD_ATTR_SYNC_PROTOCOL_TYPES SCARD_ATTR_VALUE(SCARD_CLASS_PROTOCOL, 0x0126) +#define SCARD_ATTR_POWER_MGMT_SUPPORT SCARD_ATTR_VALUE(SCARD_CLASS_POWER_MGMT, 0x0131) +#define SCARD_ATTR_USER_TO_CARD_AUTH_DEVICE SCARD_ATTR_VALUE(SCARD_CLASS_SECURITY, 0x0140) +#define SCARD_ATTR_USER_AUTH_INPUT_DEVICE SCARD_ATTR_VALUE(SCARD_CLASS_SECURITY, 0x0142) +#define SCARD_ATTR_CHARACTERISTICS SCARD_ATTR_VALUE(SCARD_CLASS_MECHANICAL, 0x0150) + +#define SCARD_ATTR_CURRENT_PROTOCOL_TYPE SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0201) +#define SCARD_ATTR_CURRENT_CLK SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0202) +#define SCARD_ATTR_CURRENT_F SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0203) +#define SCARD_ATTR_CURRENT_D SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0204) +#define SCARD_ATTR_CURRENT_N SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0205) +#define SCARD_ATTR_CURRENT_W SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0206) +#define SCARD_ATTR_CURRENT_IFSC SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0207) +#define SCARD_ATTR_CURRENT_IFSD SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0208) +#define SCARD_ATTR_CURRENT_BWT SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x0209) +#define SCARD_ATTR_CURRENT_CWT SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020a) +#define SCARD_ATTR_CURRENT_EBC_ENCODING SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020b) +#define SCARD_ATTR_EXTENDED_BWT SCARD_ATTR_VALUE(SCARD_CLASS_IFD_PROTOCOL, 0x020c) + +#define SCARD_ATTR_ICC_PRESENCE SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0300) +#define SCARD_ATTR_ICC_INTERFACE_STATUS SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0301) +#define SCARD_ATTR_CURRENT_IO_STATE SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0302) +#define SCARD_ATTR_ATR_STRING SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0303) +#define SCARD_ATTR_ICC_TYPE_PER_ATR SCARD_ATTR_VALUE(SCARD_CLASS_ICC_STATE, 0x0304) + +#define SCARD_ATTR_ESC_RESET SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA000) +#define SCARD_ATTR_ESC_CANCEL SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA003) +#define SCARD_ATTR_ESC_AUTHREQUEST SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA005) +#define SCARD_ATTR_MAXINPUT SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA007) +#define SCARD_ATTR_VENDOR_SPECIFIC_INFO SCARD_ATTR_VALUE(SCARD_CLASS_VENDOR_DEFINED, 0xA008) + +#define SCARD_ATTR_DEVICE_UNIT SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0001) +#define SCARD_ATTR_DEVICE_IN_USE SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0002) +#define SCARD_ATTR_DEVICE_FRIENDLY_NAME_A SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0003) +#define SCARD_ATTR_DEVICE_SYSTEM_NAME_A SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0004) +#define SCARD_ATTR_DEVICE_FRIENDLY_NAME_W SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0005) +#define SCARD_ATTR_DEVICE_SYSTEM_NAME_W SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0006) +#define SCARD_ATTR_SUPRESS_T1_IFS_REQUEST SCARD_ATTR_VALUE(SCARD_CLASS_SYSTEM, 0x0007) + +#define SCARD_PERF_NUM_TRANSMISSIONS SCARD_ATTR_VALUE(SCARD_CLASS_PERF, 0x0001) +#define SCARD_PERF_BYTES_TRANSMITTED SCARD_ATTR_VALUE(SCARD_CLASS_PERF, 0x0002) +#define SCARD_PERF_TRANSMISSION_TIME SCARD_ATTR_VALUE(SCARD_CLASS_PERF, 0x0003) + +#ifdef UNICODE +#define SCARD_ATTR_DEVICE_FRIENDLY_NAME SCARD_ATTR_DEVICE_FRIENDLY_NAME_W +#define SCARD_ATTR_DEVICE_SYSTEM_NAME SCARD_ATTR_DEVICE_SYSTEM_NAME_W +#else +#define SCARD_ATTR_DEVICE_FRIENDLY_NAME SCARD_ATTR_DEVICE_FRIENDLY_NAME_A +#define SCARD_ATTR_DEVICE_SYSTEM_NAME SCARD_ATTR_DEVICE_SYSTEM_NAME_A +#endif + + +// +// T=0 Protocol Defines +// + +#define SCARD_T0_HEADER_LENGTH 7 +#define SCARD_T0_CMD_LENGTH 5 + + +// +// T=1 Protocol Defines +// + +#define SCARD_T1_PROLOGUE_LENGTH 3 +#define SCARD_T1_EPILOGUE_LENGTH 2 // CRC +#define SCARD_T1_EPILOGUE_LENGTH_LRC 1 +#define SCARD_T1_MAX_IFS 254 + + +// +/////////////////////////////////////////////////////////////////////////////// +// +// Reader states +// + +#define SCARD_UNKNOWN 0 // This value implies the driver is unaware + // of the current state of the reader. +#define SCARD_ABSENT 1 // This value implies there is no card in + // the reader. +#define SCARD_PRESENT 2 // This value implies there is a card is + // present in the reader, but that it has + // not been moved into position for use. +#define SCARD_SWALLOWED 3 // This value implies there is a card in the + // reader in position for use. The card is + // not powered. +#define SCARD_POWERED 4 // This value implies there is power is + // being provided to the card, but the + // Reader Driver is unaware of the mode of + // the card. +#define SCARD_NEGOTIABLE 5 // This value implies the card has been + // reset and is awaiting PTS negotiation. +#define SCARD_SPECIFIC 6 // This value implies the card has been + // reset and specific communication + // protocols have been established. + +//////////////////////////////////////////////////////////////////////////////// +// +// I/O Services +// +// The following services provide access to the I/O capabilities of the +// reader drivers. Services of the Smart Card are requested by placing the +// following structure into the protocol buffer: +// + + +typedef struct _SCARD_IO_REQUEST{ + DWORD dwProtocol; // Protocol identifier + DWORD cbPciLength; // Protocol Control Information Length +} SCARD_IO_REQUEST, *PSCARD_IO_REQUEST, *LPSCARD_IO_REQUEST; +typedef const SCARD_IO_REQUEST *LPCSCARD_IO_REQUEST; + + +// +// T=0 protocol services. +// + +typedef struct _SCARD_T0_COMMAND { + BYTE + bCla, // The instruction class + bIns, // The instruction code within the instruction class + bP1, + bP2, // Parameters to the instruction + bP3; // Size of I/O Transfer +} SCARD_T0_COMMAND, *LPSCARD_T0_COMMAND; + +typedef struct _SCARD_T0_REQUEST { + SCARD_IO_REQUEST ioRequest; + BYTE + bSw1, + bSw2; // Return codes from the instruction +#pragma warning(push) +#pragma warning(disable:4201) + union + { + SCARD_T0_COMMAND CmdBytes; + BYTE rgbHeader[5]; + } DUMMYUNIONNAME; +#pragma warning(pop) +} SCARD_T0_REQUEST; + +typedef SCARD_T0_REQUEST *PSCARD_T0_REQUEST, *LPSCARD_T0_REQUEST; + + +// +// T=1 Protocol Services +// + +typedef struct _SCARD_T1_REQUEST { + SCARD_IO_REQUEST ioRequest; +} SCARD_T1_REQUEST; +typedef SCARD_T1_REQUEST *PSCARD_T1_REQUEST, *LPSCARD_T1_REQUEST; + + +// +//////////////////////////////////////////////////////////////////////////////// +// +// Driver attribute flags +// + +#define SCARD_READER_SWALLOWS 0x00000001 // Reader has a card swallowing + // mechanism. +#define SCARD_READER_EJECTS 0x00000002 // Reader has a card ejection + // mechanism. +#define SCARD_READER_CONFISCATES 0x00000004 // Reader has a card capture + // mechanism. +#define SCARD_READER_CONTACTLESS 0x00000008 // Reader supports contactless + +// +/////////////////////////////////////////////////////////////////////////////// +// +// Type of reader +// +#define SCARD_READER_TYPE_SERIAL 0x01 +#define SCARD_READER_TYPE_PARALELL 0x02 +#define SCARD_READER_TYPE_KEYBOARD 0x04 +#define SCARD_READER_TYPE_SCSI 0x08 +#define SCARD_READER_TYPE_IDE 0x10 +#define SCARD_READER_TYPE_USB 0x20 +#define SCARD_READER_TYPE_PCMCIA 0x40 +#define SCARD_READER_TYPE_TPM 0x80 +#define SCARD_READER_TYPE_NFC 0x100 +#define SCARD_READER_TYPE_UICC 0x200 +#define SCARD_READER_TYPE_NGC 0x400 +#define SCARD_READER_TYPE_EMBEDDEDSE 0x800 +#define SCARD_READER_TYPE_VENDOR 0xF0 + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#ifdef __cplusplus +} +#endif +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winusbio.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winusbio.h new file mode 100644 index 0000000000000000000000000000000000000000..344a28e9d7b673c79f24598793c2045e9c277936 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/winusbio.h @@ -0,0 +1,102 @@ +/*************************************************************************** + +Copyright (c) 2002 Microsoft Corporation + +Module Name: + + wusbio.h + +Abstract: + + Public header for WINUSB + +Environment: + + User and Kernel Mode + +Notes: + + THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY + KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR + PURPOSE. + + Copyright (c) 2001 Microsoft Corporation. All Rights Reserved. + + +Revision History: + + 11/12/2002 : created + + +****************************************************************************/ + +#ifndef __WUSBIO_H__ +#define __WUSBIO_H__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if(NTDDI_VERSION >= NTDDI_WINXP) + +#include + +// Pipe policy types +#define SHORT_PACKET_TERMINATE 0x01 +#define AUTO_CLEAR_STALL 0x02 +#define PIPE_TRANSFER_TIMEOUT 0x03 +#define IGNORE_SHORT_PACKETS 0x04 +#define ALLOW_PARTIAL_READS 0x05 +#define AUTO_FLUSH 0x06 +#define RAW_IO 0x07 +#define MAXIMUM_TRANSFER_SIZE 0x08 +#define RESET_PIPE_ON_RESUME 0x09 + +// Power policy types +// +// Add 0x80 for Power policy types in order to prevent overlap with +// Pipe policy types to prevent "accidentally" setting the wrong value for the +// wrong type. +// +#define AUTO_SUSPEND 0x81 +#define SUSPEND_DELAY 0x83 + +// Device Information types +#define DEVICE_SPEED 0x01 + +// Device Speeds +#define LowSpeed 0x01 +#define FullSpeed 0x02 +#define HighSpeed 0x03 + +// {DA812BFF-12C3-46a2-8E2B-DBD3B7834C43} +#include +DEFINE_GUID(WinUSB_TestGuid, 0xda812bff, 0x12c3, 0x46a2, 0x8e, 0x2b, 0xdb, 0xd3, 0xb7, 0x83, 0x4c, 0x43); + + +typedef struct _WINUSB_PIPE_INFORMATION { + USBD_PIPE_TYPE PipeType; + UCHAR PipeId; + USHORT MaximumPacketSize; + UCHAR Interval; +} WINUSB_PIPE_INFORMATION, *PWINUSB_PIPE_INFORMATION; + + +typedef struct _WINUSB_PIPE_INFORMATION_EX { + USBD_PIPE_TYPE PipeType; + UCHAR PipeId; + USHORT MaximumPacketSize; + UCHAR Interval; + ULONG MaximumBytesPerInterval; +} WINUSB_PIPE_INFORMATION_EX, *PWINUSB_PIPE_INFORMATION_EX; + +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __WUSBIO_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wlantypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wlantypes.h new file mode 100644 index 0000000000000000000000000000000000000000..680ffd26920013930457cb627aa7f3809d02af3f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wlantypes.h @@ -0,0 +1,145 @@ +/*++ + + Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + wlantypes.h + +Abstract: + + Structures used to hold wlan information. + +--*/ + +#ifndef __WLANTYPES_H__ +#define __WLANTYPES_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +typedef enum _DOT11_BSS_TYPE { + dot11_BSS_type_infrastructure = 1, + dot11_BSS_type_independent = 2, + dot11_BSS_type_any = 3 +} DOT11_BSS_TYPE, * PDOT11_BSS_TYPE; + +#define DOT11_SSID_MAX_LENGTH 32 // 32 bytes +typedef struct _DOT11_SSID { +#ifndef __midl + _Field_range_(0,32) +#endif + ULONG uSSIDLength; + UCHAR ucSSID[DOT11_SSID_MAX_LENGTH]; +} DOT11_SSID, * PDOT11_SSID; + + +// DOT11_AUTH_ALGO_LIST +#ifdef __midl +// use the 4-byte enum +typedef [v1_enum] enum _DOT11_AUTH_ALGORITHM { +#else +typedef enum _DOT11_AUTH_ALGORITHM { +#endif + DOT11_AUTH_ALGO_80211_OPEN = 1, + DOT11_AUTH_ALGO_80211_SHARED_KEY = 2, + DOT11_AUTH_ALGO_WPA = 3, + DOT11_AUTH_ALGO_WPA_PSK = 4, + DOT11_AUTH_ALGO_WPA_NONE = 5, // used in NatSTA only + DOT11_AUTH_ALGO_RSNA = 6, + DOT11_AUTH_ALGO_RSNA_PSK = 7, + DOT11_AUTH_ALGO_WPA3 = 8, // means WPA3 Enterprise 192 bits +#if (NTDDI_VERSION >= NTDDI_WIN10_FE) + DOT11_AUTH_ALGO_WPA3_ENT_192 = DOT11_AUTH_ALGO_WPA3, +#endif + DOT11_AUTH_ALGO_WPA3_SAE = 9, +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) + DOT11_AUTH_ALGO_OWE = 10, +#endif +#if (NTDDI_VERSION >= NTDDI_WIN10_FE) + DOT11_AUTH_ALGO_WPA3_ENT = 11, +#endif + DOT11_AUTH_ALGO_IHV_START = 0x80000000, + DOT11_AUTH_ALGO_IHV_END = 0xffffffff +} DOT11_AUTH_ALGORITHM, * PDOT11_AUTH_ALGORITHM; + +#define DOT11_AUTH_ALGORITHM_OPEN_SYSTEM DOT11_AUTH_ALGO_80211_OPEN +#define DOT11_AUTH_ALGORITHM_SHARED_KEY DOT11_AUTH_ALGO_80211_SHARED_KEY +#define DOT11_AUTH_ALGORITHM_WPA DOT11_AUTH_ALGO_WPA +#define DOT11_AUTH_ALGORITHM_WPA_PSK DOT11_AUTH_ALGO_WPA_PSK +#define DOT11_AUTH_ALGORITHM_WPA_NONE DOT11_AUTH_ALGO_WPA_NONE +#define DOT11_AUTH_ALGORITHM_RSNA DOT11_AUTH_ALGO_RSNA +#define DOT11_AUTH_ALGORITHM_RSNA_PSK DOT11_AUTH_ALGO_RSNA_PSK +#define DOT11_AUTH_ALGORITHM_WPA3 DOT11_AUTH_ALGO_WPA3 +#if (NTDDI_VERSION >= NTDDI_WIN10_FE) +#define DOT11_AUTH_ALGORITHM_WPA3_ENT_192 DOT11_AUTH_ALGO_WPA3_ENT_192 +#endif +#define DOT11_AUTH_ALGORITHM_WPA3_SAE DOT11_AUTH_ALGO_WPA3_SAE +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +#define DOT11_AUTH_ALGORITHM_OWE DOT11_AUTH_ALGO_OWE +#endif +#if (NTDDI_VERSION >= NTDDI_WIN10_FE) +#define DOT11_AUTH_ALGORITHM_WPA3_ENT DOT11_AUTH_ALGO_WPA3_ENT +#endif +// Cipher algorithm Ids (for little endian platform) +#ifdef __midl +// use the 4-byte enum +typedef [v1_enum] enum _DOT11_CIPHER_ALGORITHM { +#else +typedef enum _DOT11_CIPHER_ALGORITHM { +#endif + DOT11_CIPHER_ALGO_NONE = 0x00, + DOT11_CIPHER_ALGO_WEP40 = 0x01, + DOT11_CIPHER_ALGO_TKIP = 0x02, + DOT11_CIPHER_ALGO_CCMP = 0x04, + DOT11_CIPHER_ALGO_WEP104 = 0x05, + DOT11_CIPHER_ALGO_BIP = 0x06, // BIP-CMAC-128 + DOT11_CIPHER_ALGO_GCMP = 0x08, // GCMP-128 + DOT11_CIPHER_ALGO_GCMP_256 = 0x09, // GCMP-256 + DOT11_CIPHER_ALGO_CCMP_256 = 0x0a, // CCMP-256 + DOT11_CIPHER_ALGO_BIP_GMAC_128 = 0x0b, // BIP-GMAC-128 + DOT11_CIPHER_ALGO_BIP_GMAC_256 = 0x0c, // BIP-GMAC-256 + DOT11_CIPHER_ALGO_BIP_CMAC_256 = 0x0d, // BIP-CMAC-256 + DOT11_CIPHER_ALGO_WPA_USE_GROUP = 0x100, + DOT11_CIPHER_ALGO_RSN_USE_GROUP = 0x100, + DOT11_CIPHER_ALGO_WEP = 0x101, + DOT11_CIPHER_ALGO_IHV_START = 0x80000000, + DOT11_CIPHER_ALGO_IHV_END = 0xffffffff +} DOT11_CIPHER_ALGORITHM, * PDOT11_CIPHER_ALGORITHM; + +typedef struct DOT11_AUTH_CIPHER_PAIR { + DOT11_AUTH_ALGORITHM AuthAlgoId; + DOT11_CIPHER_ALGORITHM CipherAlgoId; +} DOT11_AUTH_CIPHER_PAIR, * PDOT11_AUTH_CIPHER_PAIR; + + +#define DOT11_OI_MAX_LENGTH 5 // See 802.11-2012 Section 8.4.1.31 +#define DOT11_OI_MIN_LENGTH 3 // See 802.11-2012 Section 8.4.1.31 +typedef struct _DOT11_OI { + USHORT OILength; // Must be between DOT11_OI_MIN_LENGTH and DOT11_OI_MAX_LENGTH + UCHAR OI[DOT11_OI_MAX_LENGTH]; +} DOT11_OI, *PDOT11_OI; + +// +// Similar to DOT11_INTERWORKING_ACCESSNETWORKOPTIONS, but it doesn't have bit fields, which are not allowed for RPC interfaces +// +typedef struct DOT11_ACCESSNETWORKOPTIONS { // 802.11-2012 Figure 8-352 + UINT8 AccessNetworkType; // 802.11-2012 Table 8-174 + UINT8 Internet; // 1 = Internet connectivity + UINT8 ASRA; // Additional Step Required for Access + UINT8 ESR; // Emergency Services Reachable + UINT8 UESA; // Unauthenticated Emergency Services Available +} DOT11_ACCESSNETWORKOPTIONS, *PDOT11_ACCESSNETWORKOPTIONS; + +typedef struct DOT11_VENUEINFO { // 802.11-2012 Figure 8-72 + UINT8 VenueGroup; // 802.11-2012 Table 8-52 + UINT8 VenueType; // 802.11-2012 Table 8-53 +} DOT11_VENUEINFO, *PDOT11_VENUEINFO; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __WLANTYPES_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wmistr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wmistr.h new file mode 100644 index 0000000000000000000000000000000000000000..830f97c004218d31cd314041e9e2716e993063a5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wmistr.h @@ -0,0 +1,527 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + Wmistr.h + +Abstract: + + WMI structure definitions + +--*/ + +#ifndef _WMISTR_ +#define _WMISTR_ + +#pragma once + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable: 4668) // #if not_defined treated as #if 0 +#pragma warning(disable: 4820) // padding added +#endif +#pragma warning(disable: 4200) // nonstandard extension used : zero-sized array in struct/union +#pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union + +// +// WNODE definition +typedef struct _WNODE_HEADER +{ + ULONG BufferSize; // Size of entire buffer inclusive of this ULONG + ULONG ProviderId; // Provider Id of driver returning this buffer + union + { + ULONG64 HistoricalContext; // Logger use + struct + { + ULONG Version; // Reserved + ULONG Linkage; // Linkage field reserved for WMI + } DUMMYSTRUCTNAME; + } DUMMYUNIONNAME; + + union + { + ULONG CountLost; // Reserved + HANDLE KernelHandle; // Kernel handle for data block + LARGE_INTEGER TimeStamp; // Timestamp as returned in units of 100ns + // since 1/1/1601 + } DUMMYUNIONNAME2; + GUID Guid; // Guid for data block returned with results + ULONG ClientContext; + ULONG Flags; // Flags, see below +} WNODE_HEADER, *PWNODE_HEADER; + +// +// WNODE_HEADER flags are defined as follows +#define WNODE_FLAG_ALL_DATA 0x00000001 // set for WNODE_ALL_DATA +#define WNODE_FLAG_SINGLE_INSTANCE 0x00000002 // set for WNODE_SINGLE_INSTANCE +#define WNODE_FLAG_SINGLE_ITEM 0x00000004 // set for WNODE_SINGLE_ITEM +#define WNODE_FLAG_EVENT_ITEM 0x00000008 // set for WNODE_EVENT_ITEM + + // Set if data block size is + // identical for all instances + // (used with WNODE_ALL_DATA + // only) +#define WNODE_FLAG_FIXED_INSTANCE_SIZE 0x00000010 + +#define WNODE_FLAG_TOO_SMALL 0x00000020 // set for WNODE_TOO_SMALL + + // Set when a data provider returns a + // WNODE_ALL_DATA in which the number of + // instances and their names returned + // are identical to those returned from the + // previous WNODE_ALL_DATA query. Only data + // blocks registered with dynamic instance + // names should use this flag. +#define WNODE_FLAG_INSTANCES_SAME 0x00000040 + + // Instance names are not specified in + // WNODE_ALL_DATA; values specified at + // registration are used instead. Always + // set for guids registered with static + // instance names +#define WNODE_FLAG_STATIC_INSTANCE_NAMES 0x00000080 + +#define WNODE_FLAG_INTERNAL 0x00000100 // Used internally by WMI + + // timestamp should not be modified by + // a historical logger +#define WNODE_FLAG_USE_TIMESTAMP 0x00000200 + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define WNODE_FLAG_PERSIST_EVENT 0x00000400 +#endif + +#define WNODE_FLAG_EVENT_REFERENCE 0x00002000 + +// Set if Instance names are ansi. Only set when returning from +// WMIQuerySingleInstanceA and WMIQueryAllDataA +#define WNODE_FLAG_ANSI_INSTANCENAMES 0x00004000 + +// Set if WNODE is a method call +#define WNODE_FLAG_METHOD_ITEM 0x00008000 + +// Set if instance names originated from a PDO +#define WNODE_FLAG_PDO_INSTANCE_NAMES 0x00010000 + +// The second byte, except the first bit is used exclusively for tracing +#define WNODE_FLAG_TRACED_GUID 0x00020000 // denotes a trace + +#define WNODE_FLAG_LOG_WNODE 0x00040000 // request to log Wnode + +#define WNODE_FLAG_USE_GUID_PTR 0x00080000 // Guid is actually a pointer + +#define WNODE_FLAG_USE_MOF_PTR 0x00100000 // MOF data are dereferenced + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define WNODE_FLAG_NO_HEADER 0x00200000 // Trace without header +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define WNODE_FLAG_SEND_DATA_BLOCK 0x00400000 // Data Block delivery +#endif + +// Indicates that the EVENT_TRACE_PROPERTIES struct that this is a part +// of is at least EVENT_TRACE_PROPERTIES_V2 and contains a version field. +#define WNODE_FLAG_VERSIONED_PROPERTIES 0x00800000 + +// Set for events that are WNODE_EVENT_REFERENCE +// Mask for event severity level. Level 0xff is the most severe type of event +#define WNODE_FLAG_SEVERITY_MASK 0xff000000 + + +// +// This structure is used within the WNODE_ALL_DATA when the data blocks +// for the different instances are different lengths. If the data blocks +// for the different instances are identical lengths then +// WNODE_FLAG_FIXED_INSTANCE_SIZE should be set and FixedInstanceSize +// set to the common data block size. +typedef struct +{ + ULONG OffsetInstanceData; // Offset from beginning of WNODE_ALL_DATA + // to Data block for instance + ULONG LengthInstanceData; // Length of data block for instance +} OFFSETINSTANCEDATAANDLENGTH, *POFFSETINSTANCEDATAANDLENGTH; + +#if defined(_MSC_EXTENSIONS) +typedef struct tagWNODE_ALL_DATA +{ + struct _WNODE_HEADER WnodeHeader; + + ULONG DataBlockOffset;// Offset from begin of WNODE to first data block + + ULONG InstanceCount; // Count of instances whose data follows. + + // Offset to an array of offsets to the instance names + ULONG OffsetInstanceNameOffsets; + + // If WNODE_FLAG_FIXED_INSTANCE_SIZE is set in Flags then + // FixedInstanceSize specifies the size of each data block. In this case + // there is one ULONG followed by the data blocks. + // If WNODE_FLAG_FIXED_INSTANCE_SIZE is not set + // then OffsetInstanceDataAndLength + // is an array of OFFSETINSTANCEDATAANDLENGTH that specifies the + // offsets and lengths of the data blocks for each instance. + union + { + ULONG FixedInstanceSize; + OFFSETINSTANCEDATAANDLENGTH OffsetInstanceDataAndLength[]; + /* [InstanceCount] */ + } DUMMYUNIONNAME; + + // padding so that first data block begins on a 8 byte boundary + + // data blocks and instance names for all instances + +} WNODE_ALL_DATA, *PWNODE_ALL_DATA; +#endif + + +#if defined(_MSC_EXTENSIONS) +typedef struct tagWNODE_SINGLE_INSTANCE +{ + struct _WNODE_HEADER WnodeHeader; + + // Offset from beginning of WNODE_SINGLE_INSTANCE + // to instance name. Use when + // WNODE_FLAG_STATIC_INSTANCE_NAMES is reset + // (Dynamic instance names) + ULONG OffsetInstanceName; + + // Instance index when + // WNODE_FLAG_STATIC_INSTANCE_NAME is set + ULONG InstanceIndex; // (Static Instance Names) + + ULONG DataBlockOffset; // offset from beginning of WNODE to data block + ULONG SizeDataBlock; // Size of data block for instance + + UCHAR VariableData[]; + // instance names and padding so data block begins on 8 byte boundary + + // data block +} WNODE_SINGLE_INSTANCE, *PWNODE_SINGLE_INSTANCE; +#endif + + +#if defined(_MSC_EXTENSIONS) +typedef struct tagWNODE_SINGLE_ITEM +{ + struct _WNODE_HEADER WnodeHeader; + + // Offset from beginning of WNODE_SINGLE_INSTANCE + // to instance name. Examine when + // WNODE_FLAG_STATIC_INSTANCE_NAME is reset + // (Dynamic instance names) + ULONG OffsetInstanceName; + + // Instance index when + // WNODE_FLAG_STATIC_INSTANCE_NAME + ULONG InstanceIndex; // set (Static Instance Names) + + ULONG ItemId; // Item Id for data item being set + + ULONG DataBlockOffset; // offset from WNODE begin to data item value + ULONG SizeDataItem; // Size of data item + + UCHAR VariableData[]; + // instance names and padding so data value begins on 8 byte boundary + + // data item value +} WNODE_SINGLE_ITEM, *PWNODE_SINGLE_ITEM; +#endif + +#if defined(_MSC_EXTENSIONS) +typedef struct tagWNODE_METHOD_ITEM +{ + struct _WNODE_HEADER WnodeHeader; + + // Offset from beginning of WNODE_METHOD_ITEM + // to instance name. Examine when + // WNODE_FLAG_STATIC_INSTANCE_NAME is reset + // (Dynamic instance names) + ULONG OffsetInstanceName; + + // Instance index when + // WNODE_FLAG_STATIC_INSTANCE_NAME + ULONG InstanceIndex; // set (Static Instance Names) + + ULONG MethodId; // Method id of method being called + + ULONG DataBlockOffset; // On Entry: offset from WNODE to input data + // On Return: offset from WNODE to input and + // output data blocks + ULONG SizeDataBlock; // On Entry: Size of input data, 0 if no input + // data + // On Return: Size of output data, 0 if no output + // data + + UCHAR VariableData[]; + // instance names and padding so data value begins on 8 byte boundary + + // data item value +} WNODE_METHOD_ITEM, *PWNODE_METHOD_ITEM; +#endif + +typedef struct tagWNODE_EVENT_ITEM +{ + struct _WNODE_HEADER WnodeHeader; + + // Different data could be here depending upon the flags set in the + // WNODE_HEADER above. If the WNODE_FLAG_ALL_DATA flag is set then the + // contents of a WNODE_ALL_DATA (excluding WNODE_HEADER) is here. If the + // WNODE_FLAG_SINGLE_INSTANCE flag is set then a WNODE_SINGLE_INSTANCE + // (excluding WNODE_HEADER) is here. Lastly if the WNODE_FLAG_SINGLE_ITEM + // flag is set then a WNODE_SINGLE_ITEM (excluding WNODE_HEADER) is here. +} WNODE_EVENT_ITEM, *PWNODE_EVENT_ITEM; + + +// +// If a KM data provider needs to fire an event that is larger than the +// maximum size that WMI allows then it should fire a WNODE_EVENT_REFERENCE +// that specifies which guid and instance name to query for the actual data +// that should be part of the event. +#if defined(_MSC_EXTENSIONS) +typedef struct tagWNODE_EVENT_REFERENCE +{ + struct _WNODE_HEADER WnodeHeader; + GUID TargetGuid; + ULONG TargetDataBlockSize; + union + { + ULONG TargetInstanceIndex; + WCHAR TargetInstanceName[]; + } DUMMYUNIONNAME; +} WNODE_EVENT_REFERENCE, *PWNODE_EVENT_REFERENCE; +#endif + + +typedef struct tagWNODE_TOO_SMALL +{ + struct _WNODE_HEADER WnodeHeader; + ULONG SizeNeeded; // Size needed to build WNODE result +} WNODE_TOO_SMALL, *PWNODE_TOO_SMALL; + + +typedef struct +{ + GUID Guid; // Guid of data block being registered or updated + ULONG Flags; // Flags + + ULONG InstanceCount; // Count of static instances names for the guid + + union + { + // If WMIREG_FLAG_INSTANCE_LIST then this has the offset + // to a list of InstanceCount counted UNICODE + // strings placed end to end. + ULONG InstanceNameList; + + // If WMIREG_FLAG_INSTANCE_BASENAME then this has the + // offset to a single counted UNICODE string that + // has the basename for the instance names. + + ULONG BaseNameOffset; + + // If WMIREG_FLAG_INSTANCE_PDO is set then InstanceInfo + // has the PDO whose device instance path will + // become the instance name + ULONG_PTR Pdo; + + // If WMIREG_FLAG_INSTANCE_REFERENCE then this points to + // a WMIREGINSTANCEREF structure. + + ULONG_PTR InstanceInfo;// Offset from beginning of the WMIREGINFO structure to + } DUMMYUNIONNAME; + +} WMIREGGUIDW, *PWMIREGGUIDW; + +typedef WMIREGGUIDW WMIREGGUID; +typedef PWMIREGGUIDW PWMIREGGUID; + +// Set if collection must be enabled for the guid before the data provider +// can be queried for data. +#define WMIREG_FLAG_EXPENSIVE 0x00000001 + +// Set if instance names for this guid are specified in a static list within +// the WMIREGINFO +#define WMIREG_FLAG_INSTANCE_LIST 0x00000004 + +// Set if instance names are to be static and generated by WMI using a +// base name in the WMIREGINFO and an index +#define WMIREG_FLAG_INSTANCE_BASENAME 0x00000008 + +// Set if WMI should do automatic mapping of a PDO to device instance name +// as the instance name for the guid. This flag should only be used by +// kernel mode data providers. +#define WMIREG_FLAG_INSTANCE_PDO 0x00000020 + +// Note the flags WMIREG_FLAG_INSTANCE_LIST, WMIREG_FLAG_INSTANCE_BASENAME, +// WMIREG_FLAG_INSTANCE_REFERENCE and WMIREG_FLAG_INSTANCE_PDO are mutually +// exclusive. + +// +// These flags are only valid in a response to WMI_GUID_REGUPDATE +#define WMIREG_FLAG_REMOVE_GUID 0x00010000 // Remove support for guid +#define WMIREG_FLAG_RESERVED1 0x00020000 // Reserved by WMI +#define WMIREG_FLAG_RESERVED2 0x00040000 // Reserved by WMI + +// Set if guid is one that is written to trace log. +// This guid cannot be queried directly via WMI, but must be read using +// logger apis. +#define WMIREG_FLAG_TRACED_GUID 0x00080000 + +// +// Only those Trace Guids that have this bit set can receive +// Enable/Disable Notifications. +// +#define WMIREG_FLAG_TRACE_CONTROL_GUID 0x00001000 + +// +// Set if the guid is only used for firing events. Guids that can be queried +// and that fire events should not have this bit set. +#define WMIREG_FLAG_EVENT_ONLY_GUID 0x00000040 + +#if defined(_MSC_EXTENSIONS) +typedef struct +{ +// Size of entire WMIREGINFO structure including this ULONG +// and any static instance names that follow + ULONG BufferSize; + + ULONG NextWmiRegInfo; // Offset to next WMIREGINFO structure + + ULONG RegistryPath; // Offset from beginning of WMIREGINFO structure to a + // counted Unicode string containing + // the driver registry path (under HKLM\CCS\Services) + // This must be filled only by kernel mode data + // providers + +// Offset from beginning of WMIREGINFO structure to a +// counted Unicode string containing +// the name of resource in driver file containing MOF info + ULONG MofResourceName; + +// Count of WMIREGGUID structures immediately following + ULONG GuidCount; + WMIREGGUIDW WmiRegGuid[]; // array of GuidCount WMIREGGUID structures + // Variable length data including : + // Instance Names +} WMIREGINFOW, *PWMIREGINFOW; + +typedef WMIREGINFOW WMIREGINFO; +typedef PWMIREGINFOW PWMIREGINFO; +#endif + +// +// WMI request codes +typedef enum +{ +#ifndef _WMIKM_ + WMI_GET_ALL_DATA = 0, + WMI_GET_SINGLE_INSTANCE = 1, + WMI_SET_SINGLE_INSTANCE = 2, + WMI_SET_SINGLE_ITEM = 3, + WMI_ENABLE_EVENTS = 4, + WMI_DISABLE_EVENTS = 5, + WMI_ENABLE_COLLECTION = 6, + WMI_DISABLE_COLLECTION = 7, + WMI_REGINFO = 8, + WMI_EXECUTE_METHOD = 9, + WMI_CAPTURE_STATE = 10 +#endif +} WMIDPREQUESTCODE; + +#if defined(_WINNT_) || defined(WINNT) +// +// WMI guid objects have the following rights +// WMIGUID_QUERY +// WMIGUID_SET +// WMIGUID_NOTIFICATION +// WMIGUID_READ_DESCRIPTION +// WMIGUID_EXECUTE +// TRACELOG_CREATE_REALTIME +// TRACELOG_CREATE_ONDISK +// TRACELOG_GUID_ENABLE +// TRACELOG_ACCESS_KERNEL_LOGGER +// TRACELOG_LOG_EVENT or TRACELOG_CREATE_INPROC +// TRACELOG_ACCESS_REALTIME +// TRACELOG_REGISTER_GUIDS +// TRACELOG_JOIN_GROUP + +// +// GuidTypes +// +//#ifndef _WMIKM_ +#define WMI_GUIDTYPE_TRACECONTROL 0 +#define WMI_GUIDTYPE_TRACE 1 +#define WMI_GUIDTYPE_DATA 2 +#define WMI_GUIDTYPE_EVENT 3 +//#endif + +// +// Specific rights for WMI guid objects. These are available from 0x0001 to +// 0xffff (ie up to 16 rights) +// +#define WMIGUID_QUERY 0x0001 +#define WMIGUID_SET 0x0002 +#define WMIGUID_NOTIFICATION 0x0004 +#define WMIGUID_READ_DESCRIPTION 0x0008 +#define WMIGUID_EXECUTE 0x0010 +#define TRACELOG_CREATE_REALTIME 0x0020 +#define TRACELOG_CREATE_ONDISK 0x0040 +#define TRACELOG_GUID_ENABLE 0x0080 +#define TRACELOG_ACCESS_KERNEL_LOGGER 0x0100 +#define TRACELOG_LOG_EVENT 0x0200 // used on Vista and greater +#define TRACELOG_CREATE_INPROC 0x0200 // used pre-Vista +#define TRACELOG_ACCESS_REALTIME 0x0400 +#define TRACELOG_REGISTER_GUIDS 0x0800 +#define TRACELOG_JOIN_GROUP 0x1000 + +#define WMIGUID_ALL_ACCESS_WIN2K (STANDARD_RIGHTS_READ | \ + WMIGUID_QUERY | \ + WMIGUID_SET | \ + WMIGUID_NOTIFICATION | \ + WMIGUID_READ_DESCRIPTION | \ + WMIGUID_EXECUTE | \ + TRACELOG_CREATE_REALTIME | \ + TRACELOG_CREATE_ONDISK | \ + TRACELOG_GUID_ENABLE | \ + TRACELOG_ACCESS_KERNEL_LOGGER | \ + TRACELOG_CREATE_INPROC | \ + TRACELOG_ACCESS_REALTIME) + +#define WMIGUID_ALL_ACCESS_WINXP (WMIGUID_ALL_ACCESS_WIN2K | \ + SYNCHRONIZE | \ + TRACELOG_REGISTER_GUIDS) + +#define WMIGUID_ALL_ACCESS_RS1 (WMIGUID_ALL_ACCESS_WINXP | \ + TRACELOG_JOIN_GROUP) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS1) + +#define WMIGUID_ALL_ACCESS WMIGUID_ALL_ACCESS_RS1 + +#elif (NTDDI_VERSION >= NTDDI_WINXP) + +#define WMIGUID_ALL_ACCESS WMIGUID_ALL_ACCESS_WINXP + +#else + +#define WMIGUID_ALL_ACCESS WMIGUID_ALL_ACCESS_WIN2K + +#endif + +#define WMI_GLOBAL_LOGGER_ID 0x0001 +#endif + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#else +#pragma warning(default: 4200) // nonstandard extension used : zero-sized array in struct/union +#pragma warning(default: 4201) // nonstandard extension used : nameless struct/union +#endif + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wnnc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wnnc.h new file mode 100644 index 0000000000000000000000000000000000000000..4e0441e45929cb484774b66eafb62759e610c070 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wnnc.h @@ -0,0 +1,122 @@ +#include + +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + wnnc.h + +Abstract: + + This header provides the Windows Networking WNNC_NET definitions to winnetwk.h + and the IFS Kit. + +Environment: + + User Mode / Kernel Mode + +Notes: + +--*/ + +// begin_ntifs +#ifndef _WNNC_ +#define _WNNC_ + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +// +// Network types +// + +#define WNNC_NET_MSNET 0x00010000 +#define WNNC_NET_SMB 0x00020000 +#define WNNC_NET_NETWARE 0x00030000 +#define WNNC_NET_VINES 0x00040000 +#define WNNC_NET_10NET 0x00050000 +#define WNNC_NET_LOCUS 0x00060000 +#define WNNC_NET_SUN_PC_NFS 0x00070000 +#define WNNC_NET_LANSTEP 0x00080000 +#define WNNC_NET_9TILES 0x00090000 +#define WNNC_NET_LANTASTIC 0x000A0000 +#define WNNC_NET_AS400 0x000B0000 +#define WNNC_NET_FTP_NFS 0x000C0000 +#define WNNC_NET_PATHWORKS 0x000D0000 +#define WNNC_NET_LIFENET 0x000E0000 +#define WNNC_NET_POWERLAN 0x000F0000 +#define WNNC_NET_BWNFS 0x00100000 +#define WNNC_NET_COGENT 0x00110000 +#define WNNC_NET_FARALLON 0x00120000 +#define WNNC_NET_APPLETALK 0x00130000 +#define WNNC_NET_INTERGRAPH 0x00140000 +#define WNNC_NET_SYMFONET 0x00150000 +#define WNNC_NET_CLEARCASE 0x00160000 +#define WNNC_NET_FRONTIER 0x00170000 +#define WNNC_NET_BMC 0x00180000 +#define WNNC_NET_DCE 0x00190000 +#define WNNC_NET_AVID 0x001A0000 +#define WNNC_NET_DOCUSPACE 0x001B0000 +#define WNNC_NET_MANGOSOFT 0x001C0000 +#define WNNC_NET_SERNET 0x001D0000 +#define WNNC_NET_RIVERFRONT1 0X001E0000 +#define WNNC_NET_RIVERFRONT2 0x001F0000 +#define WNNC_NET_DECORB 0x00200000 +#define WNNC_NET_PROTSTOR 0x00210000 +#define WNNC_NET_FJ_REDIR 0x00220000 +#define WNNC_NET_DISTINCT 0x00230000 +#define WNNC_NET_TWINS 0x00240000 +#define WNNC_NET_RDR2SAMPLE 0x00250000 +#define WNNC_NET_CSC 0x00260000 +#define WNNC_NET_3IN1 0x00270000 +#define WNNC_NET_EXTENDNET 0x00290000 +#define WNNC_NET_STAC 0x002A0000 +#define WNNC_NET_FOXBAT 0x002B0000 +#define WNNC_NET_YAHOO 0x002C0000 +#define WNNC_NET_EXIFS 0x002D0000 +#define WNNC_NET_DAV 0x002E0000 +#define WNNC_NET_KNOWARE 0x002F0000 +#define WNNC_NET_OBJECT_DIRE 0x00300000 +#define WNNC_NET_MASFAX 0x00310000 +#define WNNC_NET_HOB_NFS 0x00320000 +#define WNNC_NET_SHIVA 0x00330000 +#define WNNC_NET_IBMAL 0x00340000 +#define WNNC_NET_LOCK 0x00350000 +#define WNNC_NET_TERMSRV 0x00360000 +#define WNNC_NET_SRT 0x00370000 +#define WNNC_NET_QUINCY 0x00380000 +#define WNNC_NET_OPENAFS 0x00390000 +#define WNNC_NET_AVID1 0X003A0000 +#define WNNC_NET_DFS 0x003B0000 +#define WNNC_NET_KWNP 0x003C0000 +#define WNNC_NET_ZENWORKS 0x003D0000 +#define WNNC_NET_DRIVEONWEB 0x003E0000 +#define WNNC_NET_VMWARE 0x003F0000 +#define WNNC_NET_RSFX 0x00400000 +#define WNNC_NET_MFILES 0x00410000 +#define WNNC_NET_MS_NFS 0x00420000 +#define WNNC_NET_GOOGLE 0x00430000 +#define WNNC_NET_NDFS 0x00440000 +#define WNNC_NET_DOCUSHARE 0x00450000 +#define WNNC_NET_AURISTOR_FS 0x00460000 +#define WNNC_NET_SECUREAGENT 0x00470000 +#define WNNC_NET_9P 0x00480000 + +#define WNNC_CRED_MANAGER 0xFFFF0000 + +// +// Network type aliases +// + +#define WNNC_NET_LANMAN WNNC_NET_SMB + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _WNNC_ +// end_ntifs + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/ws2def.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/ws2def.h new file mode 100644 index 0000000000000000000000000000000000000000..95fb10c5d34be89ccb97ba8691c71f41d7a95f17 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/ws2def.h @@ -0,0 +1,1245 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + ws2def.h + +Abstract: + + This file contains the core definitions for the Winsock2 + specification that can be used by both user-mode and + kernel mode modules. + + This file is included in WINSOCK2.H. User mode applications + should include WINSOCK2.H rather than including this file + directly. This file can not be included by a module that also + includes WINSOCK.H. + +Environment: + + user mode or kernel mode + +--*/ + +#ifndef _WS2DEF_ +#define _WS2DEF_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#if !defined(_WINSOCK_DEPRECATED_BY) +#if ((defined(_WINSOCK_DEPRECATED_NO_WARNINGS) || defined(BUILD_WINDOWS)) && !defined(_WINSOCK_DEPRECATE_WARNINGS)) || defined(MIDL_PASS) +#define _WINSOCK_DEPRECATED_BY(replacement) +#else +#define _WINSOCK_DEPRECATED_BY(replacement) __declspec(deprecated("Use " replacement " instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings")) +#endif +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if !defined(_WINSOCK2API_) && defined(_WINSOCKAPI_) +#error Do not include winsock.h and ws2def.h in the same module. Instead include only winsock2.h. +#endif + +#pragma warning(push) +#pragma warning(disable:4201) +#pragma warning(disable:4214) // bit field types other than int + +// +// Allow Winsock components to disable PREfast errors. +// + +#if defined(_PREFAST_) && defined(IPV6_PREFAST_SAFE) +#include +#endif // _PREFAST_ + +#if(_WIN32_WINNT >= 0x0600) + +#ifdef _MSC_VER +#define WS2DEF_INLINE __inline +#else +#define WS2DEF_INLINE extern inline /* GNU style */ +#endif + +#endif//(_WIN32_WINNT >= 0x0600) + +#include + +//#if(_WIN32_WINNT >= 0x0600) + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +// +// Address families. +// +typedef USHORT ADDRESS_FAMILY; +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +//#endif//(_WIN32_WINNT >= 0x0600) + +// +// Although AF_UNSPEC is defined for backwards compatibility, using +// AF_UNSPEC for the "af" parameter when creating a socket is STRONGLY +// DISCOURAGED. The interpretation of the "protocol" parameter +// depends on the actual address family chosen. As environments grow +// to include more and more address families that use overlapping +// protocol values there is more and more chance of choosing an +// undesired address family when AF_UNSPEC is used. +// +#define AF_UNSPEC 0 // unspecified +#define AF_UNIX 1 // local to host (pipes, portals) +#define AF_INET 2 // internetwork: UDP, TCP, etc. +#define AF_IMPLINK 3 // arpanet imp addresses +#define AF_PUP 4 // pup protocols: e.g. BSP +#define AF_CHAOS 5 // mit CHAOS protocols +#define AF_NS 6 // XEROX NS protocols +#define AF_IPX AF_NS // IPX protocols: IPX, SPX, etc. +#define AF_ISO 7 // ISO protocols +#define AF_OSI AF_ISO // OSI is ISO +#define AF_ECMA 8 // european computer manufacturers +#define AF_DATAKIT 9 // datakit protocols +#define AF_CCITT 10 // CCITT protocols, X.25 etc +#define AF_SNA 11 // IBM SNA +#define AF_DECnet 12 // DECnet +#define AF_DLI 13 // Direct data link interface +#define AF_LAT 14 // LAT +#define AF_HYLINK 15 // NSC Hyperchannel +#define AF_APPLETALK 16 // AppleTalk +#define AF_NETBIOS 17 // NetBios-style addresses +#define AF_VOICEVIEW 18 // VoiceView +#define AF_FIREFOX 19 // Protocols from Firefox +#define AF_UNKNOWN1 20 // Somebody is using this! +#define AF_BAN 21 // Banyan +#define AF_ATM 22 // Native ATM Services +#define AF_INET6 23 // Internetwork Version 6 +#define AF_CLUSTER 24 // Microsoft Wolfpack +#define AF_12844 25 // IEEE 1284.4 WG AF +#define AF_IRDA 26 // IrDA +#define AF_NETDES 28 // Network Designers OSI & gateway + +#if(_WIN32_WINNT < 0x0501) +#define AF_MAX 29 +#else //(_WIN32_WINNT < 0x0501) + +#define AF_TCNPROCESS 29 +#define AF_TCNMESSAGE 30 +#define AF_ICLFXBM 31 + +#if(_WIN32_WINNT < 0x0600) +#define AF_MAX 32 +#else //(_WIN32_WINNT < 0x0600) +#define AF_BTH 32 // Bluetooth RFCOMM/L2CAP protocols +#if(_WIN32_WINNT < 0x0601) +#define AF_MAX 33 +#else //(_WIN32_WINNT < 0x0601) +#define AF_LINK 33 +#if(_WIN32_WINNT < 0x0604) +#define AF_MAX 34 +#else //(_WIN32_WINNT < 0x0604) +#define AF_HYPERV 34 +#define AF_MAX 35 +#endif //(_WIN32_WINNT < 0x0604) +#endif //(_WIN32_WINNT < 0x0601) +#endif //(_WIN32_WINNT < 0x0600) + +#endif //(_WIN32_WINNT < 0x0501) + +// +// Socket types. +// + +#define SOCK_STREAM 1 +#define SOCK_DGRAM 2 +#define SOCK_RAW 3 +#define SOCK_RDM 4 +#define SOCK_SEQPACKET 5 + +// +// Define a level for socket I/O controls in the same numbering space as +// IPPROTO_TCP, IPPROTO_IP, etc. +// + +#define SOL_SOCKET 0xffff +#define SOL_IP (SOL_SOCKET-4) +#define SOL_IPV6 (SOL_SOCKET-5) + +// +// Define socket-level options. +// + +#define SO_DEBUG 0x0001 // turn on debugging info recording +#define SO_ACCEPTCONN 0x0002 // socket has had listen() +#define SO_REUSEADDR 0x0004 // allow local address reuse +#define SO_KEEPALIVE 0x0008 // keep connections alive +#define SO_DONTROUTE 0x0010 // just use interface addresses +#define SO_BROADCAST 0x0020 // permit sending of broadcast msgs +#define SO_USELOOPBACK 0x0040 // bypass hardware when possible +#define SO_LINGER 0x0080 // linger on close if data present +#define SO_OOBINLINE 0x0100 // leave received OOB data in line + +#define SO_DONTLINGER (int)(~SO_LINGER) +#define SO_EXCLUSIVEADDRUSE \ + ((int)(~SO_REUSEADDR)) // disallow local address reuse + +#define SO_SNDBUF 0x1001 // send buffer size +#define SO_RCVBUF 0x1002 // receive buffer size +#define SO_SNDLOWAT 0x1003 // send low-water mark +#define SO_RCVLOWAT 0x1004 // receive low-water mark +#define SO_SNDTIMEO 0x1005 // send timeout +#define SO_RCVTIMEO 0x1006 // receive timeout +#define SO_ERROR 0x1007 // get error status and clear +#define SO_TYPE 0x1008 // get socket type +#define SO_BSP_STATE 0x1009 // get socket 5-tuple state + +#define SO_GROUP_ID 0x2001 // ID of a socket group +#define SO_GROUP_PRIORITY 0x2002 // the relative priority within a group +#define SO_MAX_MSG_SIZE 0x2003 // maximum message size + +#define SO_CONDITIONAL_ACCEPT 0x3002 // enable true conditional accept: + // connection is not ack-ed to the + // other side until conditional + // function returns CF_ACCEPT +#define SO_PAUSE_ACCEPT 0x3003 // pause accepting new connections +#define SO_COMPARTMENT_ID 0x3004 // get/set the compartment for a socket +#if (_WIN32_WINNT >= 0x0600) +#define SO_RANDOMIZE_PORT 0x3005 // randomize assignment of wildcard ports +#define SO_PORT_SCALABILITY 0x3006 // enable port scalability +#define SO_REUSE_UNICASTPORT 0x3007 // defer ephemeral port allocation for + // outbound connections +#define SO_REUSE_MULTICASTPORT 0x3008 // enable port reuse and disable unicast + //reception. +#define SO_ORIGINAL_DST 0x300F // Query the original destination address + // of a redirected connection. +#define IP6T_SO_ORIGINAL_DST SO_ORIGINAL_DST +#endif //(_WIN32_WINNT >= 0x0600) + +#if (NTDDI_VERSION >= NTDDI_WIN11_GE) +#define SO_RECEIVED_HOPLIMIT 0x3010 +#define SO_RECEIVED_PROCESSOR 0x3011 // Receive the processor number packets + // have been processed by +#endif // NTDDI_VERSION >= NTDDI_WIN11_GE + +// +// Base constant used for defining WSK-specific options. +// + +#define WSK_SO_BASE 0x4000 + +// +// Options to use with [gs]etsockopt at the IPPROTO_TCP level. +// + +#define TCP_NODELAY 0x0001 + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +// +// Structure used to store most addresses. +// +typedef struct sockaddr { + +#if (_WIN32_WINNT < 0x0600) + u_short sa_family; +#else + ADDRESS_FAMILY sa_family; // Address family. +#endif //(_WIN32_WINNT < 0x0600) + + CHAR sa_data[14]; // Up to 14 bytes of direct address. +} SOCKADDR, *PSOCKADDR, FAR *LPSOCKADDR; + +#ifndef __CSADDR_DEFINED__ +#define __CSADDR_DEFINED__ + + +/* + * SockAddr Information + */ +typedef struct _SOCKET_ADDRESS { + _Field_size_bytes_(iSockaddrLength) LPSOCKADDR lpSockaddr; + +// ESP: 791. +// _When_( +// lpSockaddr->sa_family == AF_INET, +// _Field_range_(>=, sizeof(SOCKADDR_IN))) +// _When_( +// lpSockaddr->sa_family == AF_INET6, +// _Field_range_(>=, sizeof(SOCKADDR_IN6))) + INT iSockaddrLength; +} SOCKET_ADDRESS, *PSOCKET_ADDRESS, *LPSOCKET_ADDRESS; +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +/* + * Address list returned via SIO_ADDRESS_LIST_QUERY + */ +typedef struct _SOCKET_ADDRESS_LIST { + INT iAddressCount; + SOCKET_ADDRESS Address[1]; +} SOCKET_ADDRESS_LIST, *PSOCKET_ADDRESS_LIST, FAR *LPSOCKET_ADDRESS_LIST; + +#if (_WIN32_WINNT >= 0x0600) + +#define SIZEOF_SOCKET_ADDRESS_LIST(AddressCount) \ + (FIELD_OFFSET(SOCKET_ADDRESS_LIST, Address) + \ + AddressCount * sizeof(SOCKET_ADDRESS)) + +#endif //(_WIN32_WINNT >= 0x0600) + +/* + * CSAddr Information + */ +typedef struct _CSADDR_INFO { + SOCKET_ADDRESS LocalAddr ; + SOCKET_ADDRESS RemoteAddr ; + INT iSocketType ; + INT iProtocol ; +} CSADDR_INFO, *PCSADDR_INFO, FAR * LPCSADDR_INFO ; +#endif /* __CSADDR_DEFINED__ */ + +// +// Portable socket structure (RFC 2553). +// + +// +// Desired design of maximum size and alignment. +// These are implementation specific. +// +#define _SS_MAXSIZE 128 // Maximum size +#define _SS_ALIGNSIZE (sizeof(__int64)) // Desired alignment + +// +// Definitions used for sockaddr_storage structure paddings design. +// + +#if(_WIN32_WINNT >= 0x0600) +#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(USHORT)) +#define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof(USHORT) + _SS_PAD1SIZE + _SS_ALIGNSIZE)) +#else +#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof (short)) +#define _SS_PAD2SIZE (_SS_MAXSIZE - (sizeof (short) + _SS_PAD1SIZE \ + + _SS_ALIGNSIZE)) +#endif //(_WIN32_WINNT >= 0x0600) + +typedef struct sockaddr_storage { + ADDRESS_FAMILY ss_family; // address family + + CHAR __ss_pad1[_SS_PAD1SIZE]; // 6 byte pad, this is to make + // implementation specific pad up to + // alignment field that follows explicit + // in the data structure + __int64 __ss_align; // Field to force desired structure + CHAR __ss_pad2[_SS_PAD2SIZE]; // 112 byte pad to achieve desired size; + // _SS_MAXSIZE value minus size of + // ss_family, __ss_pad1, and + // __ss_align fields is 112 +} SOCKADDR_STORAGE_LH, *PSOCKADDR_STORAGE_LH, FAR *LPSOCKADDR_STORAGE_LH; + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef struct sockaddr_storage_xp { + short ss_family; // Address family. + + CHAR __ss_pad1[_SS_PAD1SIZE]; // 6 byte pad, this is to make + // implementation specific pad up to + // alignment field that follows explicit + // in the data structure + __int64 __ss_align; // Field to force desired structure + CHAR __ss_pad2[_SS_PAD2SIZE]; // 112 byte pad to achieve desired size; + // _SS_MAXSIZE value minus size of + // ss_family, __ss_pad1, and + // __ss_align fields is 112 +} SOCKADDR_STORAGE_XP, *PSOCKADDR_STORAGE_XP, FAR *LPSOCKADDR_STORAGE_XP; +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#if(_WIN32_WINNT >= 0x0600) +typedef SOCKADDR_STORAGE_LH SOCKADDR_STORAGE; +typedef SOCKADDR_STORAGE *PSOCKADDR_STORAGE, FAR *LPSOCKADDR_STORAGE; +#elif (_WIN32_WINNT >= 0x0501) +typedef SOCKADDR_STORAGE_XP SOCKADDR_STORAGE; +typedef SOCKADDR_STORAGE *PSOCKADDR_STORAGE, FAR *LPSOCKADDR_STORAGE; +#endif + +#if(_WIN32_WINNT >= 0x0602) +typedef struct _SOCKET_PROCESSOR_AFFINITY { + PROCESSOR_NUMBER Processor; + USHORT NumaNodeId; + USHORT Reserved; +} SOCKET_PROCESSOR_AFFINITY, *PSOCKET_PROCESSOR_AFFINITY; +#endif //(_WIN32_WINNT >= 0x0602) + + +/* + * WinSock 2 extension -- manifest constants for WSAIoctl() + */ +#define IOC_UNIX 0x00000000 +#define IOC_WS2 0x08000000 +#define IOC_PROTOCOL 0x10000000 +#define IOC_VENDOR 0x18000000 + +#if (_WIN32_WINNT >= 0x0600) +/* + * WSK-specific IO control codes are Winsock2 codes with the highest-order + * 3 bits of the Vendor/AddressFamily-specific field set to 1. + */ +#define IOC_WSK (IOC_WS2|0x07000000) +#endif //(_WIN32_WINNT >= 0x0600) + +#define _WSAIO(x,y) (IOC_VOID|(x)|(y)) +#define _WSAIOR(x,y) (IOC_OUT|(x)|(y)) +#define _WSAIOW(x,y) (IOC_IN|(x)|(y)) +#define _WSAIORW(x,y) (IOC_INOUT|(x)|(y)) + +#define SIO_ASSOCIATE_HANDLE _WSAIOW(IOC_WS2,1) +#define SIO_ENABLE_CIRCULAR_QUEUEING _WSAIO(IOC_WS2,2) +#define SIO_FIND_ROUTE _WSAIOR(IOC_WS2,3) +#define SIO_FLUSH _WSAIO(IOC_WS2,4) +#define SIO_GET_BROADCAST_ADDRESS _WSAIOR(IOC_WS2,5) +#define SIO_GET_EXTENSION_FUNCTION_POINTER _WSAIORW(IOC_WS2,6) +#define SIO_GET_QOS _WSAIORW(IOC_WS2,7) +#define SIO_GET_GROUP_QOS _WSAIORW(IOC_WS2,8) +#define SIO_MULTIPOINT_LOOPBACK _WSAIOW(IOC_WS2,9) +#define SIO_MULTICAST_SCOPE _WSAIOW(IOC_WS2,10) +#define SIO_SET_QOS _WSAIOW(IOC_WS2,11) +#define SIO_SET_GROUP_QOS _WSAIOW(IOC_WS2,12) +#define SIO_TRANSLATE_HANDLE _WSAIORW(IOC_WS2,13) +#define SIO_ROUTING_INTERFACE_QUERY _WSAIORW(IOC_WS2,20) +#define SIO_ROUTING_INTERFACE_CHANGE _WSAIOW(IOC_WS2,21) +#define SIO_ADDRESS_LIST_QUERY _WSAIOR(IOC_WS2,22) +#define SIO_ADDRESS_LIST_CHANGE _WSAIO(IOC_WS2,23) +#define SIO_QUERY_TARGET_PNP_HANDLE _WSAIOR(IOC_WS2,24) +#define SIO_QUERY_RSS_PROCESSOR_INFO _WSAIOR(IOC_WS2,37) + +#if(_WIN32_WINNT >= 0x0501) +#define SIO_ADDRESS_LIST_SORT _WSAIORW(IOC_WS2,25) +#endif //(_WIN32_WINNT >= 0x0501) + +#if (_WIN32_WINNT >= 0x0600) +#define SIO_RESERVED_1 _WSAIOW(IOC_WS2,26) +#define SIO_RESERVED_2 _WSAIOW(IOC_WS2,33) +#endif //(_WIN32_WINNT >= 0x0600) + +#define SIO_GET_MULTIPLE_EXTENSION_FUNCTION_POINTER _WSAIORW(IOC_WS2,36) + +// +// Constants and structures defined by the internet system (RFC 790) +// + +// +// N.B. required for backwards compatability to support 0 = IP for the +// level argument to get/setsockopt. +// +#define IPPROTO_IP 0 + +// +// Protocols. The IPv6 defines are specified in RFC 2292. +// +typedef enum { +#if(_WIN32_WINNT >= 0x0501) + IPPROTO_HOPOPTS = 0, // IPv6 Hop-by-Hop options +#endif//(_WIN32_WINNT >= 0x0501) + IPPROTO_ICMP = 1, + IPPROTO_IGMP = 2, + IPPROTO_GGP = 3, +#if(_WIN32_WINNT >= 0x0501) + IPPROTO_IPV4 = 4, +#endif//(_WIN32_WINNT >= 0x0501) +#if(_WIN32_WINNT >= 0x0600) + IPPROTO_ST = 5, +#endif//(_WIN32_WINNT >= 0x0600) + IPPROTO_TCP = 6, +#if(_WIN32_WINNT >= 0x0600) + IPPROTO_CBT = 7, + IPPROTO_EGP = 8, + IPPROTO_IGP = 9, +#endif//(_WIN32_WINNT >= 0x0600) + IPPROTO_PUP = 12, + IPPROTO_UDP = 17, + IPPROTO_IDP = 22, +#if(_WIN32_WINNT >= 0x0600) + IPPROTO_RDP = 27, +#endif//(_WIN32_WINNT >= 0x0600) + +#if(_WIN32_WINNT >= 0x0501) + IPPROTO_IPV6 = 41, // IPv6 header + IPPROTO_ROUTING = 43, // IPv6 Routing header + IPPROTO_FRAGMENT = 44, // IPv6 fragmentation header + IPPROTO_ESP = 50, // encapsulating security payload + IPPROTO_AH = 51, // authentication header + IPPROTO_ICMPV6 = 58, // ICMPv6 + IPPROTO_NONE = 59, // IPv6 no next header + IPPROTO_DSTOPTS = 60, // IPv6 Destination options +#endif//(_WIN32_WINNT >= 0x0501) + + IPPROTO_ND = 77, +#if(_WIN32_WINNT >= 0x0501) + IPPROTO_ICLFXBM = 78, +#endif//(_WIN32_WINNT >= 0x0501) +#if(_WIN32_WINNT >= 0x0600) + IPPROTO_PIM = 103, + IPPROTO_PGM = 113, + IPPROTO_L2TP = 115, + IPPROTO_SCTP = 132, +#endif//(_WIN32_WINNT >= 0x0600) + IPPROTO_RAW = 255, + + IPPROTO_MAX = 256, +// +// These are reserved for internal use by Windows. +// + IPPROTO_RESERVED_RAW = 257, + IPPROTO_RESERVED_IPSEC = 258, + IPPROTO_RESERVED_IPSECOFFLOAD = 259, + IPPROTO_RESERVED_WNV = 260, + IPPROTO_RESERVED_MAX = 261 +} IPPROTO, *PIPROTO; + +// +// Port/socket numbers: network standard functions +// +#define IPPORT_TCPMUX 1 +#define IPPORT_ECHO 7 +#define IPPORT_DISCARD 9 +#define IPPORT_SYSTAT 11 +#define IPPORT_DAYTIME 13 +#define IPPORT_NETSTAT 15 +#define IPPORT_QOTD 17 +#define IPPORT_MSP 18 +#define IPPORT_CHARGEN 19 +#define IPPORT_FTP_DATA 20 +#define IPPORT_FTP 21 +#define IPPORT_TELNET 23 +#define IPPORT_SMTP 25 +#define IPPORT_TIMESERVER 37 +#define IPPORT_NAMESERVER 42 +#define IPPORT_WHOIS 43 +#define IPPORT_MTP 57 + +/* + * Port/socket numbers: host specific functions + */ +#define IPPORT_TFTP 69 +#define IPPORT_RJE 77 +#define IPPORT_FINGER 79 +#define IPPORT_TTYLINK 87 +#define IPPORT_SUPDUP 95 + +/* + * UNIX TCP sockets + */ +#define IPPORT_POP3 110 +#define IPPORT_NTP 123 +#define IPPORT_EPMAP 135 +#define IPPORT_NETBIOS_NS 137 +#define IPPORT_NETBIOS_DGM 138 +#define IPPORT_NETBIOS_SSN 139 +#define IPPORT_IMAP 143 +#define IPPORT_SNMP 161 +#define IPPORT_SNMP_TRAP 162 +#define IPPORT_IMAP3 220 +#define IPPORT_LDAP 389 +#define IPPORT_HTTPS 443 +#define IPPORT_MICROSOFT_DS 445 +#define IPPORT_EXECSERVER 512 +#define IPPORT_LOGINSERVER 513 +#define IPPORT_CMDSERVER 514 +#define IPPORT_EFSSERVER 520 + +/* + * UNIX UDP sockets + */ +#define IPPORT_BIFFUDP 512 +#define IPPORT_WHOSERVER 513 +#define IPPORT_ROUTESERVER 520 + /* 520+1 also used */ + +/* + * Ports < IPPORT_RESERVED are reserved for + * privileged processes (e.g. root). + */ +#define IPPORT_RESERVED 1024 +#if (_WIN32_WINNT >= 0x0600) +#define IPPORT_REGISTERED_MIN IPPORT_RESERVED +#define IPPORT_REGISTERED_MAX 0xbfff +#define IPPORT_DYNAMIC_MIN 0xc000 +#define IPPORT_DYNAMIC_MAX 0xffff +#endif //(_WIN32_WINNT >= 0x0600) + +/* + * Definitions of bits in internet address integers. + * On subnets, the decomposition of addresses to host and net parts + * is done according to subnet mask, not the masks here. + * + * N.B. RFC-compliant definitions for host-order elements are named IN_xxx, + * while network-order elements are named IN4_xxx. + */ +#define IN_CLASSA(i) (((LONG)(i) & 0x80000000) == 0) +#define IN_CLASSA_NET 0xff000000 +#define IN_CLASSA_NSHIFT 24 +#define IN_CLASSA_HOST 0x00ffffff +#define IN_CLASSA_MAX 128 + +#define IN_CLASSB(i) (((LONG)(i) & 0xc0000000) == 0x80000000) +#define IN_CLASSB_NET 0xffff0000 +#define IN_CLASSB_NSHIFT 16 +#define IN_CLASSB_HOST 0x0000ffff +#define IN_CLASSB_MAX 65536 + +#define IN_CLASSC(i) (((LONG)(i) & 0xe0000000) == 0xc0000000) +#define IN_CLASSC_NET 0xffffff00 +#define IN_CLASSC_NSHIFT 8 +#define IN_CLASSC_HOST 0x000000ff + +#define IN_CLASSD(i) (((long)(i) & 0xf0000000) == 0xe0000000) +#define IN_CLASSD_NET 0xf0000000 /* These ones aren't really */ +#define IN_CLASSD_NSHIFT 28 /* net and host fields, but */ +#define IN_CLASSD_HOST 0x0fffffff /* routing needn't know. */ +#define IN_MULTICAST(i) IN_CLASSD(i) + +#define INADDR_ANY (ULONG)0x00000000 +#define INADDR_LOOPBACK 0x7f000001 +#define INADDR_BROADCAST (ULONG)0xffffffff +#define INADDR_NONE 0xffffffff + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// Scope ID definition +// +typedef enum { + ScopeLevelInterface = 1, + ScopeLevelLink = 2, + ScopeLevelSubnet = 3, + ScopeLevelAdmin = 4, + ScopeLevelSite = 5, + ScopeLevelOrganization = 8, + ScopeLevelGlobal = 14, + ScopeLevelCount = 16 +} SCOPE_LEVEL; + +typedef struct { + union { + struct { + ULONG Zone : 28; + ULONG Level : 4; + } DUMMYSTRUCTNAME; + ULONG Value; + } DUMMYUNIONNAME; +} SCOPE_ID, *PSCOPE_ID; + +#define SCOPEID_UNSPECIFIED_INIT { 0 } + +// +// IPv4 Socket address, Internet style +// + +typedef struct sockaddr_in { + +#if(_WIN32_WINNT < 0x0600) + short sin_family; +#else //(_WIN32_WINNT < 0x0600) + ADDRESS_FAMILY sin_family; +#endif //(_WIN32_WINNT < 0x0600) + + USHORT sin_port; + IN_ADDR sin_addr; + CHAR sin_zero[8]; +} SOCKADDR_IN, *PSOCKADDR_IN; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +// +// Datalink (MAC) address +// +// If you don't use the entire sdl_data field, then fill it starting with the low +// bytes... +// + +#if(_WIN32_WINNT >= 0x0601) + +typedef struct sockaddr_dl { + ADDRESS_FAMILY sdl_family; + UCHAR sdl_data[8]; + UCHAR sdl_zero[4]; +} SOCKADDR_DL, *PSOCKADDR_DL; + +#endif //(_WIN32_WINNT >= 0x0601) + +#define IOCPARM_MASK 0x7f /* parameters must be < 128 bytes */ +#define IOC_VOID 0x20000000 /* no parameters */ +#define IOC_OUT 0x40000000 /* copy out parameters */ +#define IOC_IN 0x80000000 /* copy in parameters */ +#define IOC_INOUT (IOC_IN|IOC_OUT) + /* 0x20000000 distinguishes new & + old ioctl's */ +#define _IO(x,y) (IOC_VOID|((x)<<8)|(y)) + +#define _IOR(x,y,t) (IOC_OUT|(((long)sizeof(t)&IOCPARM_MASK)<<16)|((x)<<8)|(y)) + +#define _IOW(x,y,t) (IOC_IN|(((long)sizeof(t)&IOCPARM_MASK)<<16)|((x)<<8)|(y)) + +/* + * WinSock 2 extension -- WSABUF and QOS struct, include qos.h + * to pull in FLOWSPEC and related definitions + */ + +typedef struct _WSABUF { + ULONG len; /* the length of the buffer */ + _Field_size_bytes_(len) CHAR FAR *buf; /* the pointer to the buffer */ +} WSABUF, FAR * LPWSABUF; + +/* + * WSAMSG -- for WSASendMsg + */ + +typedef struct _WSAMSG { + _Field_size_bytes_(namelen) LPSOCKADDR name; /* Remote address */ + INT namelen; /* Remote address length */ + LPWSABUF lpBuffers; /* Data buffer array */ + +#if(_WIN32_WINNT >= 0x0600) + ULONG dwBufferCount; /* Number of elements in the array */ +#else + DWORD dwBufferCount; /* Number of elements in the array */ +#endif //(_WIN32_WINNT>=0x0600) + + WSABUF Control; /* Control buffer */ + +#if(_WIN32_WINNT >= 0x0600) + ULONG dwFlags; /* Flags */ +#else + DWORD dwFlags; /* Flags */ +#endif //(_WIN32_WINNT>=0x0600) + +} WSAMSG, *PWSAMSG, * FAR LPWSAMSG; + +/* + * Layout of ancillary data objects in the control buffer (RFC 2292). + */ +#if(_WIN32_WINNT >= 0x0600) +#define _WSACMSGHDR cmsghdr +#endif //(_WIN32_WINNT>=0x0600) + +typedef struct _WSACMSGHDR { + SIZE_T cmsg_len; + INT cmsg_level; + INT cmsg_type; + /* followed by UCHAR cmsg_data[] */ +} WSACMSGHDR, *PWSACMSGHDR, FAR *LPWSACMSGHDR; + +#if(_WIN32_WINNT >= 0x0600) +typedef WSACMSGHDR CMSGHDR, *PCMSGHDR; +#endif //(_WIN32_WINNT>=0x0600) + +/* + * Alignment macros for header and data members of + * the control buffer. + */ +#define WSA_CMSGHDR_ALIGN(length) \ + ( ((length) + TYPE_ALIGNMENT(WSACMSGHDR)-1) & \ + (~(TYPE_ALIGNMENT(WSACMSGHDR)-1)) ) \ + +#define WSA_CMSGDATA_ALIGN(length) \ + ( ((length) + MAX_NATURAL_ALIGNMENT-1) & \ + (~(MAX_NATURAL_ALIGNMENT-1)) ) + +#if(_WIN32_WINNT >= 0x0600) +#define CMSGHDR_ALIGN WSA_CMSGHDR_ALIGN +#define CMSGDATA_ALIGN WSA_CMSGDATA_ALIGN +#endif //(_WIN32_WINNT>=0x0600) + +/* + * WSA_CMSG_FIRSTHDR + * + * Returns a pointer to the first ancillary data object, + * or a null pointer if there is no ancillary data in the + * control buffer of the WSAMSG structure. + * + * LPCMSGHDR + * WSA_CMSG_FIRSTHDR ( + * LPWSAMSG msg + * ); + */ +#define WSA_CMSG_FIRSTHDR(msg) \ + ( ((msg)->Control.len >= sizeof(WSACMSGHDR)) \ + ? (LPWSACMSGHDR)(msg)->Control.buf \ + : (LPWSACMSGHDR)NULL ) + +#if(_WIN32_WINNT >= 0x0600) +#define CMSG_FIRSTHDR WSA_CMSG_FIRSTHDR +#endif //(_WIN32_WINNT>=0x0600) + +/* + * WSA_CMSG_NXTHDR + * + * Returns a pointer to the next ancillary data object, + * or a null if there are no more data objects. + * + * LPCMSGHDR + * WSA_CMSG_NEXTHDR ( + * LPWSAMSG msg, + * LPWSACMSGHDR cmsg + * ); + */ +#define WSA_CMSG_NXTHDR(msg, cmsg) \ + ( ((cmsg) == NULL) \ + ? WSA_CMSG_FIRSTHDR(msg) \ + : ( ( ((PUCHAR)(cmsg) + \ + WSA_CMSGHDR_ALIGN((cmsg)->cmsg_len) + \ + sizeof(WSACMSGHDR) ) > \ + (PUCHAR)((msg)->Control.buf) + \ + (msg)->Control.len ) \ + ? (LPWSACMSGHDR)NULL \ + : (LPWSACMSGHDR)((PUCHAR)(cmsg) + \ + WSA_CMSGHDR_ALIGN((cmsg)->cmsg_len)) ) ) + +#if(_WIN32_WINNT >= 0x0600) +#define CMSG_NXTHDR WSA_CMSG_NXTHDR +#endif //(_WIN32_WINNT>=0x0600) + +/* + * WSA_CMSG_DATA + * + * Returns a pointer to the first byte of data (what is referred + * to as the cmsg_data member though it is not defined in + * the structure). + * + * Note that RFC 2292 defines this as CMSG_DATA, but that name + * is already used by wincrypt.h, and so Windows has used WSA_CMSG_DATA. + * + * PUCHAR + * WSA_CMSG_DATA ( + * LPWSACMSGHDR pcmsg + * ); + */ +#define WSA_CMSG_DATA(cmsg) \ + ( (PUCHAR)(cmsg) + WSA_CMSGDATA_ALIGN(sizeof(WSACMSGHDR)) ) + +/* + * WSA_CMSG_SPACE + * + * Returns total size of an ancillary data object given + * the amount of data. Used to allocate the correct amount + * of space. + * + * SIZE_T + * WSA_CMSG_SPACE ( + * SIZE_T length + * ); + */ +#define WSA_CMSG_SPACE(length) \ + (WSA_CMSGDATA_ALIGN(sizeof(WSACMSGHDR) + WSA_CMSGHDR_ALIGN(length))) + +#if(_WIN32_WINNT >= 0x0600) +#define CMSG_SPACE WSA_CMSG_SPACE +#endif //(_WIN32_WINNT>=0x0600) + +/* + * WSA_CMSG_LEN + * + * Returns the value to store in cmsg_len given the amount of data. + * + * SIZE_T + * WSA_CMSG_LEN ( + * SIZE_T length + * ); + */ +#define WSA_CMSG_LEN(length) \ + (WSA_CMSGDATA_ALIGN(sizeof(WSACMSGHDR)) + length) + +#if(_WIN32_WINNT >= 0x0600) +#define CMSG_LEN WSA_CMSG_LEN +#endif //(_WIN32_WINNT>=0x0600) + +/* + * Definition for flags member of the WSAMSG structure + * This is in addition to other MSG_xxx flags defined + * for recv/recvfrom/send/sendto. + */ +#define MSG_TRUNC 0x0100 +#define MSG_CTRUNC 0x0200 +#define MSG_BCAST 0x0400 +#define MSG_MCAST 0x0800 +#define MSG_ERRQUEUE 0x1000 + +// +// Flags used in "hints" argument to getaddrinfo() +// - AI_ADDRCONFIG is supported starting with Vista +// - default is AI_ADDRCONFIG ON whether the flag is set or not +// because the performance penalty in not having ADDRCONFIG in +// the multi-protocol stack environment is severe; +// this defaulting may be disabled by specifying the AI_ALL flag, +// in that case AI_ADDRCONFIG must be EXPLICITLY specified to +// enable ADDRCONFIG behavior +// + +#define AI_PASSIVE 0x00000001 // Socket address will be used in bind() call +#define AI_CANONNAME 0x00000002 // Return canonical name in first ai_canonname +#define AI_NUMERICHOST 0x00000004 // Nodename must be a numeric address string +#define AI_NUMERICSERV 0x00000008 // Servicename must be a numeric port number +#define AI_DNS_ONLY 0x00000010 // Restrict queries to unicast DNS only (no LLMNR, netbios, etc.) +#define AI_FORCE_CLEAR_TEXT 0x00000020 // Force clear text DNS query +#define AI_BYPASS_DNS_CACHE 0x00000040 // Bypass DNS cache +#define AI_RETURN_TTL 0x00000080 // Return record TTL + +#define AI_ALL 0x00000100 // Query both IP6 and IP4 with AI_V4MAPPED +#define AI_ADDRCONFIG 0x00000400 // Resolution only if global address configured +#define AI_V4MAPPED 0x00000800 // On v6 failure, query v4 and convert to V4MAPPED format + +#define AI_NON_AUTHORITATIVE 0x00004000 // LUP_NON_AUTHORITATIVE +#define AI_SECURE 0x00008000 // LUP_SECURE +#define AI_RETURN_PREFERRED_NAMES 0x00010000 // LUP_RETURN_PREFERRED_NAMES + +#define AI_FQDN 0x00020000 // Return the FQDN in ai_canonname +#define AI_FILESERVER 0x00040000 // Resolving fileserver name resolution +#define AI_DISABLE_IDN_ENCODING 0x00080000 // Disable Internationalized Domain Names handling +#define AI_SECURE_WITH_FALLBACK 0x00100000 // Forces clear text fallback if the secure DNS query fails +#define AI_EXCLUSIVE_CUSTOM_SERVERS 0x00200000 // Use exclusively the custom DNS servers +#define AI_RETURN_RESPONSE_FLAGS 0x10000000 // Requests extra information about the DNS results +#define AI_REQUIRE_SECURE 0x20000000 // Forces the DNS query to be done over seucre protocols +#define AI_RESOLUTION_HANDLE 0x40000000 // Request resolution handle +#define AI_EXTENDED 0x80000000 // Indicates this is extended ADDRINFOEX(2/..) struct + +// +// Structure used in getaddrinfo() call +// + +typedef struct addrinfo +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + char * ai_canonname; // Canonical name for nodename + _Field_size_bytes_(ai_addrlen) struct sockaddr * ai_addr; // Binary address + struct addrinfo * ai_next; // Next structure in linked list +} +ADDRINFOA, *PADDRINFOA; + +typedef struct addrinfoW +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + PWSTR ai_canonname; // Canonical name for nodename + _Field_size_bytes_(ai_addrlen) struct sockaddr * ai_addr; // Binary address + struct addrinfoW * ai_next; // Next structure in linked list +} +ADDRINFOW, *PADDRINFOW; + +#if (_WIN32_WINNT >= 0x0600) + +#pragma region App Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +typedef struct _WINSOCK_DEPRECATED_BY("ADDRINFOEXW") addrinfoexA +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + char *ai_canonname; // Canonical name for nodename + struct sockaddr *ai_addr; // Binary address + void *ai_blob; + size_t ai_bloblen; + LPGUID ai_provider; + struct addrinfoexA *ai_next; // Next structure in linked list +} ADDRINFOEXA, *PADDRINFOEXA, *LPADDRINFOEXA; +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +typedef struct addrinfoexW +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + PWSTR ai_canonname; // Canonical name for nodename + _Field_size_bytes_(ai_addrlen) struct sockaddr *ai_addr; // Binary address + _Field_size_(ai_bloblen) void *ai_blob; + size_t ai_bloblen; + LPGUID ai_provider; + struct addrinfoexW *ai_next; // Next structure in linked list +} ADDRINFOEXW, *PADDRINFOEXW, *LPADDRINFOEXW; + +#endif + +#if (_WIN32_WINNT >= 0x0602) + +#define ADDRINFOEX_VERSION_2 2 +#define ADDRINFOEX_VERSION_3 3 +#define ADDRINFOEX_VERSION_4 4 +#define ADDRINFOEX_VERSION_5 5 +#define ADDRINFOEX_VERSION_6 6 +#define ADDRINFOEX_VERSION_7 7 + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef struct _WINSOCK_DEPRECATED_BY("ADDRINFOEX2W") addrinfoex2A +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + char *ai_canonname; // Canonical name for nodename + struct sockaddr *ai_addr; // Binary address + void *ai_blob; + size_t ai_bloblen; + LPGUID ai_provider; + struct addrinfoex2A *ai_next; // Next structure in linked list + int ai_version; + char *ai_fqdn; +} ADDRINFOEX2A, *PADDRINFOEX2A, *LPADDRINFOEX2A; +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +typedef struct addrinfoex2W +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + PWSTR ai_canonname; // Canonical name for nodename + _Field_size_bytes_(ai_addrlen) struct sockaddr *ai_addr; // Binary address + _Field_size_(ai_bloblen) void *ai_blob; + size_t ai_bloblen; + LPGUID ai_provider; + struct addrinfoex2W *ai_next; // Next structure in linked list + int ai_version; + PWSTR ai_fqdn; +} ADDRINFOEX2W, *PADDRINFOEX2W, *LPADDRINFOEX2W; + +typedef struct addrinfoex3 +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + PWSTR ai_canonname; // Canonical name for nodename + _Field_size_bytes_(ai_addrlen) struct sockaddr *ai_addr; // Binary address + _Field_size_(ai_bloblen) void *ai_blob; + size_t ai_bloblen; + LPGUID ai_provider; + struct addrinfoex3 *ai_next; // Next structure in linked list + int ai_version; + PWSTR ai_fqdn; + int ai_interfaceindex; +} ADDRINFOEX3, *PADDRINFOEX3, *LPADDRINFOEX3; + +typedef struct addrinfoex4 +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + PWSTR ai_canonname; // Canonical name for nodename + _Field_size_bytes_(ai_addrlen) struct sockaddr *ai_addr; // Binary address + _Field_size_(ai_bloblen) void *ai_blob; + size_t ai_bloblen; + GUID *ai_provider; + struct addrinfoex4 *ai_next; // Next structure in linked list + int ai_version; + PWSTR ai_fqdn; + int ai_interfaceindex; + HANDLE ai_resolutionhandle; +} ADDRINFOEX4, *PADDRINFOEX4, *LPADDRINFOEX4; + +typedef struct addrinfoex5 +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + PWSTR ai_canonname; // Canonical name for nodename + _Field_size_bytes_(ai_addrlen) struct sockaddr *ai_addr; // Binary address + _Field_size_(ai_bloblen) void *ai_blob; + size_t ai_bloblen; + GUID *ai_provider; + struct addrinfoex5 *ai_next; // Next structure in linked list + int ai_version; + PWSTR ai_fqdn; + int ai_interfaceindex; + HANDLE ai_resolutionhandle; + unsigned int ai_ttl; // Number of seconds for which this DNS record is valid +} ADDRINFOEX5, *PADDRINFOEX5, *LPADDRINFOEX5; + + +// +// Types of custom DNS servers specified in the ai_servers parameter. +// These options will be set in the ai_servertype field in the ADDRINFO_DNS_SERVER struct. +// + +#define AI_DNS_SERVER_TYPE_UDP 0x1 +#define AI_DNS_SERVER_TYPE_DOH 0x2 +#define AI_DNS_SERVER_TYPE_DOT 0x3 + + +// +// Flags for custom servers. +// These options will be set in the ai_flags field in the ADDRINFO_DNS_SERVER struct. +// + +#define AI_DNS_SERVER_UDP_FALLBACK 0x1 + +typedef struct addrinfo_dns_server +{ + unsigned int ai_servertype; + unsigned __int64 ai_flags; + unsigned int ai_addrlen; + _Field_size_bytes_(ai_addrlen) struct sockaddr *ai_addr; + + union + { + PWSTR ai_template; + PWSTR ai_hostname; + }; +} ADDRINFO_DNS_SERVER; + + +// +// Flags returned through ai_returnflags, when AI_RETURN_RESPONSE_FLAGS is set +// + +#define AI_DNS_RESPONSE_SECURE 0x1 // Present if the resolution was done through secure protocols +#define AI_DNS_RESPONSE_HOSTFILE 0x2 + +typedef struct addrinfoex6 +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + PWSTR ai_canonname; // Canonical name for nodename + _Field_size_bytes_(ai_addrlen) struct sockaddr *ai_addr; // Binary address + _Field_size_(ai_bloblen) void *ai_blob; + size_t ai_bloblen; + GUID *ai_provider; + struct addrinfoex5 *ai_next; // Next structure in linked list + int ai_version; + PWSTR ai_fqdn; + int ai_interfaceindex; + HANDLE ai_resolutionhandle; + unsigned int ai_ttl; // Number of seconds for which this DNS record is valid + unsigned int ai_numservers; + ADDRINFO_DNS_SERVER *ai_servers; + ULONG64 ai_responseflags; +} ADDRINFOEX6, *PADDRINFOEX6; + +// +// Flags for ai_extraflags +// + +#define AI_EXTRA_DNSSEC_REQUIRED 0x0000000000000001 // Set DO and AD bits in request, returns IP address info IF DNSSEC authenticated, NOTE: only the IP address will be returned not the DNSSEC specific records + +typedef struct addrinfoex7 +{ + int ai_flags; // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST + int ai_family; // PF_xxx + int ai_socktype; // SOCK_xxx + int ai_protocol; // 0 or IPPROTO_xxx for IPv4 and IPv6 + size_t ai_addrlen; // Length of ai_addr + PWSTR ai_canonname; // Canonical name for nodename + _Field_size_bytes_(ai_addrlen) struct sockaddr *ai_addr; // Binary address + _Field_size_(ai_bloblen) void *ai_blob; + size_t ai_bloblen; + GUID *ai_provider; + struct addrinfoex7 *ai_next; // Next structure in linked list + int ai_version; + PWSTR ai_fqdn; + int ai_interfaceindex; + HANDLE ai_resolutionhandle; + unsigned int ai_ttl; // Number of seconds for which this DNS record is valid + unsigned int ai_numservers; + ADDRINFO_DNS_SERVER *ai_servers; + ULONG64 ai_responseflags; + ULONG64 ai_extraflags; // additional dns options +} ADDRINFOEX7, *PADDRINFOEX7; + +#endif + +// +// Flags for getaddrinfo() +// + +// Name Spaces + +#define NS_ALL (0) + +#define NS_SAP (1) +#define NS_NDS (2) +#define NS_PEER_BROWSE (3) +#define NS_SLP (5) +#define NS_DHCP (6) + +#define NS_TCPIP_LOCAL (10) +#define NS_TCPIP_HOSTS (11) +#define NS_DNS (12) +#define NS_NETBT (13) +#define NS_WINS (14) + +#if(_WIN32_WINNT >= 0x0501) +#define NS_NLA (15) /* Network Location Awareness */ +#endif //(_WIN32_WINNT >= 0x0501) + +#if(_WIN32_WINNT >= 0x0600) +#define NS_BTH (16) /* Bluetooth SDP Namespace */ +#endif //(_WIN32_WINNT >= 0x0600) + +#define NS_NBP (20) + +#define NS_MS (30) +#define NS_STDA (31) +#define NS_NTDS (32) + +#if(_WIN32_WINNT >= 0x0600) +#define NS_EMAIL (37) +#define NS_PNRPNAME (38) +#define NS_PNRPCLOUD (39) +#endif //(_WIN32_WINNT >= 0x0600) + +#define NS_X500 (40) +#define NS_NIS (41) +#define NS_NISPLUS (42) + +#define NS_WRQ (50) + +#define NS_NETDES (60) /* Network Designers Limited */ + +// +// Flags for getnameinfo() +// + +#define NI_NOFQDN 0x01 /* Only return nodename portion for local hosts */ +#define NI_NUMERICHOST 0x02 /* Return numeric form of the host's address */ +#define NI_NAMEREQD 0x04 /* Error if the host's name not in DNS */ +#define NI_NUMERICSERV 0x08 /* Return numeric form of the service (port #) */ +#define NI_DGRAM 0x10 /* Service is a datagram service */ + +#define NI_MAXHOST 1025 /* Max size of a fully-qualified domain name */ +#define NI_MAXSERV 32 /* Max size of a service name */ + +#pragma warning(pop) + +#ifdef __cplusplus +} +#endif +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/ws2ipdef.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/ws2ipdef.h new file mode 100644 index 0000000000000000000000000000000000000000..6948fe4f06aa72939551b547d5bc6641d1497847 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/ws2ipdef.h @@ -0,0 +1,1029 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + ws2ipdef.h + +Abstract: + + This file contains TCP/IP specific information for use + by WinSock2 compatible applications. + + Copyright (c) Microsoft Corporation. All rights reserved. + + To provide the backward compatibility, all the TCP/IP + specific definitions that were included in the WINSOCK.H + file are now included in WINSOCK2.H file. WS2TCPIP.H + file includes only the definitions introduced in the + "WinSock 2 Protocol-Specific Annex" document. + + Rev 0.3 Nov 13, 1995 + Rev 0.4 Dec 15, 1996 + +Environment: + + user mode or kernel mode + +--*/ + +#ifndef _WS2IPDEF_ +#define _WS2IPDEF_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#ifdef __cplusplus +extern "C" { +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma warning(push) +#pragma warning(disable:4201) +#pragma warning(disable:4127) // conditional expression is constant + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable: 24002, "This code requires explicit usage of IPv4 address types.") +#endif + +#ifndef WS2IPDEF_ASSERT +#define WS2IPDEF_ASSERT(exp) ((VOID) 0) +#endif + +#ifdef _MSC_VER +#define WS2TCPIP_INLINE __inline +#else +#define WS2TCPIP_INLINE extern inline /* GNU style */ +#endif + +#include + +// +// Old IPv6 socket address structure (retained for sockaddr_gen definition). +// + +struct sockaddr_in6_old { + SHORT sin6_family; // AF_INET6. + USHORT sin6_port; // Transport level port number. + ULONG sin6_flowinfo; // IPv6 flow information. + IN6_ADDR sin6_addr; // IPv6 address. +}; + +typedef union sockaddr_gen { + struct sockaddr Address; + struct sockaddr_in AddressIn; + struct sockaddr_in6_old AddressIn6; +} sockaddr_gen; + +// +// Structure to keep interface specific information +// + +typedef struct _INTERFACE_INFO { + ULONG iiFlags; // Interface flags. + sockaddr_gen iiAddress; // Interface address. + sockaddr_gen iiBroadcastAddress; // Broadcast address. + sockaddr_gen iiNetmask; // Network mask. +} INTERFACE_INFO, FAR *LPINTERFACE_INFO; + +// +// New structure that does not have dependency on the address size. +// + +typedef struct _INTERFACE_INFO_EX { + ULONG iiFlags; // Interface flags. + SOCKET_ADDRESS iiAddress; // Interface address. + SOCKET_ADDRESS iiBroadcastAddress; // Broadcast address. + SOCKET_ADDRESS iiNetmask; // Network mask. +} INTERFACE_INFO_EX, FAR *LPINTERFACE_INFO_EX; + +// +// Possible flags for the iiFlags - bitmask. +// + +#define IFF_UP 0x00000001 // Interface is up. +#define IFF_BROADCAST 0x00000002 // Broadcast is supported. +#define IFF_LOOPBACK 0x00000004 // This is loopback interface. +#define IFF_POINTTOPOINT 0x00000008 // This is point-to-point interface. +#define IFF_MULTICAST 0x00000010 // Multicast is supported. + +// +// Path MTU discovery states. +// + +typedef enum _PMTUD_STATE { + IP_PMTUDISC_NOT_SET, + IP_PMTUDISC_DO, + IP_PMTUDISC_DONT, + IP_PMTUDISC_PROBE, + IP_PMTUDISC_MAX +} PMTUD_STATE, *PPMTUD_STATE; + +// +// Options to use with [gs]etsockopt at the IPPROTO_IP level. +// The values should be consistent with the IPv6 equivalents. +// +#define IP_OPTIONS 1 // Set/get IP options. +#define IP_HDRINCL 2 // Header is included with data. +#define IP_TOS 3 // IP type of service. +#define IP_TTL 4 // IP TTL (hop limit). +#define IP_MULTICAST_IF 9 // IP multicast interface. +#define IP_MULTICAST_TTL 10 // IP multicast TTL (hop limit). +#define IP_MULTICAST_LOOP 11 // IP multicast loopback. +#define IP_ADD_MEMBERSHIP 12 // Add an IP group membership. +#define IP_DROP_MEMBERSHIP 13 // Drop an IP group membership. +#define IP_DONTFRAGMENT 14 // Don't fragment IP datagrams. +#define IP_ADD_SOURCE_MEMBERSHIP 15 // Join IP group/source. +#define IP_DROP_SOURCE_MEMBERSHIP 16 // Leave IP group/source. +#define IP_BLOCK_SOURCE 17 // Block IP group/source. +#define IP_UNBLOCK_SOURCE 18 // Unblock IP group/source. +#define IP_PKTINFO 19 // Receive packet information. +#define IP_HOPLIMIT 21 // Receive packet hop limit. +#define IP_RECVTTL 21 // Receive packet Time To Live (TTL). +#define IP_RECEIVE_BROADCAST 22 // Allow/block broadcast reception. +#define IP_RECVIF 24 // Receive arrival interface. +#define IP_RECVDSTADDR 25 // Receive destination address. +#define IP_IFLIST 28 // Enable/Disable an interface list. +#define IP_ADD_IFLIST 29 // Add an interface list entry. +#define IP_DEL_IFLIST 30 // Delete an interface list entry. +#define IP_UNICAST_IF 31 // IP unicast interface. +#define IP_RTHDR 32 // Set/get IPv6 routing header. +#define IP_GET_IFLIST 33 // Get an interface list. +#define IP_RECVRTHDR 38 // Receive the routing header. +#define IP_TCLASS 39 // Packet traffic class. +#define IP_RECVTCLASS 40 // Receive packet traffic class. +#define IP_RECVTOS 40 // Receive packet Type Of Service (TOS). +#define IP_ORIGINAL_ARRIVAL_IF 47 // Original Arrival Interface Index. +#define IP_ECN 50 // IP ECN codepoint. +#define IP_RECVECN 50 // Receive ECN codepoints in the IP header. +#define IP_PKTINFO_EX 51 // Receive extended packet information. +#define IP_WFP_REDIRECT_RECORDS 60 // WFP's Connection Redirect Records. +#define IP_WFP_REDIRECT_CONTEXT 70 // WFP's Connection Redirect Context. +#define IP_MTU_DISCOVER 71 // Set/get path MTU discover state. +#define IP_MTU 73 // Get path MTU. +#define IP_NRT_INTERFACE 74 // Set NRT interface constraint (outbound). +#define IP_RECVERR 75 // Receive ICMP errors. +#define IP_USER_MTU 76 // Set/get app defined upper bound IP layer MTU. + +#define IP_UNSPECIFIED_TYPE_OF_SERVICE -1 +#define IP_UNSPECIFIED_USER_MTU MAXULONG + +#define IPV6_ADDRESS_BITS RTL_BITS_OF(IN6_ADDR) + +// +// IPv6 socket address structure, RFC 3493. +// + +// +// NB: The LH version of sockaddr_in6 has the struct tag sockaddr_in6 rather +// than sockaddr_in6_lh. This is to make sure that standard sockets apps +// that conform to RFC 2553 (Basic Socket Interface Extensions for IPv6). +// +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +typedef struct sockaddr_in6 { + ADDRESS_FAMILY sin6_family; // AF_INET6. + USHORT sin6_port; // Transport level port number. + ULONG sin6_flowinfo; // IPv6 flow information. + IN6_ADDR sin6_addr; // IPv6 address. + union { + ULONG sin6_scope_id; // Set of interfaces for a scope. + SCOPE_ID sin6_scope_struct; + }; +} SOCKADDR_IN6_LH, *PSOCKADDR_IN6_LH, FAR *LPSOCKADDR_IN6_LH; + +typedef struct sockaddr_in6_w2ksp1 { + short sin6_family; /* AF_INET6 */ + USHORT sin6_port; /* Transport level port number */ + ULONG sin6_flowinfo; /* IPv6 flow information */ + struct in6_addr sin6_addr; /* IPv6 address */ + ULONG sin6_scope_id; /* set of interfaces for a scope */ +} SOCKADDR_IN6_W2KSP1, *PSOCKADDR_IN6_W2KSP1, FAR *LPSOCKADDR_IN6_W2KSP1; + +#if (NTDDI_VERSION >= NTDDI_VISTA) +typedef SOCKADDR_IN6_LH SOCKADDR_IN6; +typedef SOCKADDR_IN6_LH *PSOCKADDR_IN6; +typedef SOCKADDR_IN6_LH FAR *LPSOCKADDR_IN6; +#elif(NTDDI_VERSION >= NTDDI_WIN2KSP1) +typedef SOCKADDR_IN6_W2KSP1 SOCKADDR_IN6; +typedef SOCKADDR_IN6_W2KSP1 *PSOCKADDR_IN6; +typedef SOCKADDR_IN6_W2KSP1 FAR *LPSOCKADDR_IN6; +#else +typedef SOCKADDR_IN6_LH SOCKADDR_IN6; +typedef SOCKADDR_IN6_LH *PSOCKADDR_IN6; +typedef SOCKADDR_IN6_LH FAR *LPSOCKADDR_IN6; +#endif + +typedef union _SOCKADDR_INET { + SOCKADDR_IN Ipv4; + SOCKADDR_IN6 Ipv6; + ADDRESS_FAMILY si_family; +} SOCKADDR_INET, *PSOCKADDR_INET; + +// +// Structure to hold a pair of source, destination addresses. +// +typedef struct _sockaddr_in6_pair +{ + PSOCKADDR_IN6 SourceAddress; + PSOCKADDR_IN6 DestinationAddress; +} SOCKADDR_IN6_PAIR, *PSOCKADDR_IN6_PAIR; + +// +// Macro that works for both IPv4 and IPv6 +// +#define SS_PORT(ssp) (((PSOCKADDR_IN)(ssp))->sin_port) + +#if (NTDDI_VERSION >= NTDDI_WIN2KSP1) +// +// N.B. These addresses are in network byte order. +// + +#define IN6ADDR_ANY_INIT {{{ 0 }}} + +#define IN6ADDR_LOOPBACK_INIT { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } + +#define IN6ADDR_ALLNODESONNODE_INIT { \ + 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 \ +} + +#define IN6ADDR_ALLNODESONLINK_INIT { \ + 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 \ +} + +#define IN6ADDR_ALLROUTERSONLINK_INIT { \ + 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 \ +} + +#define IN6ADDR_ALLMLDV2ROUTERSONLINK_INIT { \ + 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16 \ +} + +#define IN6ADDR_TEREDOINITIALLINKLOCALADDRESS_INIT { \ + 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe \ +} + +// +// The old link local address for XP-SP2/Win2K3 machines. +// +#define IN6ADDR_TEREDOOLDLINKLOCALADDRESSXP_INIT { \ + 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 'T', 'E', 'R', 'E', 'D', 'O' \ +} + +// +// The old link local address for Vista Beta-2 and earlier machines. +// +#define IN6ADDR_TEREDOOLDLINKLOCALADDRESSVISTA_INIT { \ + 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff \ +} + +#define IN6ADDR_LINKLOCALPREFIX_INIT { 0xfe, 0x80, } + +#define IN6ADDR_MULTICASTPREFIX_INIT { 0xff, 0x00, } + +#define IN6ADDR_SOLICITEDNODEMULTICASTPREFIX_INIT { \ + 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0x00, 0x01, 0xff, \ +} + +#define IN6ADDR_V4MAPPEDPREFIX_INIT { \ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ + 0x00, 0x00, 0xff, 0xff, \ +} + +#define IN6ADDR_6TO4PREFIX_INIT { 0x20, 0x02, } + +#define IN6ADDR_TEREDOPREFIX_INIT { 0x20, 0x01, 0x00, 0x00, } + +#define IN6ADDR_TEREDOPREFIX_INIT_OLD { 0x3f, 0xfe, 0x83, 0x1f, } + +#define IN6ADDR_ULAPREFIX_INIT {0xfc } + +#define IN6ADDR_SITELOCALPREFIX_INIT {0xfe, 0xc0 } + +#define IN6ADDR_6BONETESTPREFIX_INIT { 0x3f, 0xfe } + +#define IN6ADDR_LINKLOCALPREFIX_LENGTH 64 + +#define IN6ADDR_MULTICASTPREFIX_LENGTH 8 + +#define IN6ADDR_SOLICITEDNODEMULTICASTPREFIX_LENGTH 104 + +#define IN6ADDR_V4MAPPEDPREFIX_LENGTH 96 + +#define IN6ADDR_6TO4PREFIX_LENGTH 16 + +#define IN6ADDR_TEREDOPREFIX_LENGTH 32 + +#ifdef __cplusplus +extern "C" { +#endif + +// +// N.B. These addresses are in network byte order. +// +extern CONST SCOPE_ID scopeid_unspecified; + +extern CONST IN_ADDR in4addr_any; +extern CONST IN_ADDR in4addr_loopback; +extern CONST IN_ADDR in4addr_broadcast; +extern CONST IN_ADDR in4addr_allnodesonlink; +extern CONST IN_ADDR in4addr_allroutersonlink; +extern CONST IN_ADDR in4addr_alligmpv3routersonlink; +extern CONST IN_ADDR in4addr_allteredohostsonlink; +extern CONST IN_ADDR in4addr_linklocalprefix; +extern CONST IN_ADDR in4addr_multicastprefix; + +extern CONST IN6_ADDR in6addr_any; +extern CONST IN6_ADDR in6addr_loopback; +extern CONST IN6_ADDR in6addr_allnodesonnode; +extern CONST IN6_ADDR in6addr_allnodesonlink; +extern CONST IN6_ADDR in6addr_allroutersonlink; +extern CONST IN6_ADDR in6addr_allmldv2routersonlink; +extern CONST IN6_ADDR in6addr_teredoinitiallinklocaladdress; +extern CONST IN6_ADDR in6addr_linklocalprefix; +extern CONST IN6_ADDR in6addr_multicastprefix; +extern CONST IN6_ADDR in6addr_solicitednodemulticastprefix; +extern CONST IN6_ADDR in6addr_v4mappedprefix; +extern CONST IN6_ADDR in6addr_6to4prefix; +extern CONST IN6_ADDR in6addr_teredoprefix; +extern CONST IN6_ADDR in6addr_teredoprefix_old; + +#ifdef __cplusplus +} +#endif + +#ifndef __midl + +WS2TCPIP_INLINE +BOOLEAN +IN6_ADDR_EQUAL(CONST IN6_ADDR *x, CONST IN6_ADDR *y) +{ + __int64 UNALIGNED *a; + __int64 UNALIGNED *b; + + a = (__int64 UNALIGNED *)x; + b = (__int64 UNALIGNED *)y; + + return (BOOLEAN)((a[1] == b[1]) && (a[0] == b[0])); +} + +// +// RFC 3542 uses IN6_ARE_ADDR_EQUAL(). +// +#define IN6_ARE_ADDR_EQUAL IN6_ADDR_EQUAL + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_UNSPECIFIED(CONST IN6_ADDR *a) +{ + // + // We can't use the in6addr_any variable, since that would + // require existing callers to link with a specific library. + // + return (BOOLEAN)((a->s6_words[0] == 0) && + (a->s6_words[1] == 0) && + (a->s6_words[2] == 0) && + (a->s6_words[3] == 0) && + (a->s6_words[4] == 0) && + (a->s6_words[5] == 0) && + (a->s6_words[6] == 0) && + (a->s6_words[7] == 0)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_LOOPBACK(CONST IN6_ADDR *a) +{ + // + // We can't use the in6addr_loopback variable, since that would + // require existing callers to link with a specific library. + // + return (BOOLEAN)((a->s6_words[0] == 0) && + (a->s6_words[1] == 0) && + (a->s6_words[2] == 0) && + (a->s6_words[3] == 0) && + (a->s6_words[4] == 0) && + (a->s6_words[5] == 0) && + (a->s6_words[6] == 0) && + (a->s6_words[7] == 0x0100)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_MULTICAST(CONST IN6_ADDR *a) +{ + return (BOOLEAN)(a->s6_bytes[0] == 0xff); +} + +// +// Does the address have a format prefix +// that indicates it uses EUI-64 interface identifiers? +// +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_EUI64(CONST IN6_ADDR *a) +{ + // + // Format prefixes 001 through 111, except for multicast. + // + return (BOOLEAN)(((a->s6_bytes[0] & 0xe0) != 0) && + !IN6_IS_ADDR_MULTICAST(a)); +} + +// +// Is this the subnet router anycast address? +// See RFC 2373. +// +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_SUBNET_ROUTER_ANYCAST(CONST IN6_ADDR *a) +{ + return (BOOLEAN)(IN6_IS_ADDR_EUI64(a) && + (a->s6_words[4] == 0) && + (a->s6_words[5] == 0) && + (a->s6_words[6] == 0) && + (a->s6_words[7] == 0)); +} + +// +// Is this a subnet reserved anycast address? +// See RFC 2526. It talks about non-EUI-64 +// addresses as well, but IMHO that part +// of the RFC doesn't make sense. For example, +// it shouldn't apply to multicast or v4-compatible +// addresses. +// +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_SUBNET_RESERVED_ANYCAST(CONST IN6_ADDR *a) +{ + return (BOOLEAN)(IN6_IS_ADDR_EUI64(a) && + (a->s6_words[4] == 0xfffd) && + (a->s6_words[5] == 0xffff) && + (a->s6_words[6] == 0xffff) && + ((a->s6_words[7] & 0x80ff) == 0x80ff)); +} + +// +// As best we can tell from simple inspection, +// is this an anycast address? +// +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_ANYCAST(CONST IN6_ADDR *a) +{ + return (IN6_IS_ADDR_SUBNET_RESERVED_ANYCAST(a) || + IN6_IS_ADDR_SUBNET_ROUTER_ANYCAST(a)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_LINKLOCAL(CONST IN6_ADDR *a) +{ + return (BOOLEAN)((a->s6_bytes[0] == 0xfe) && + ((a->s6_bytes[1] & 0xc0) == 0x80)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_SITELOCAL(CONST IN6_ADDR *a) +{ + return (BOOLEAN)((a->s6_bytes[0] == 0xfe) && + ((a->s6_bytes[1] & 0xc0) == 0xc0)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_GLOBAL(CONST IN6_ADDR *a) +{ + // + // Check the format prefix and exclude addresses + // whose high 4 bits are all zero or all one. + // This is a cheap way of excluding v4-compatible, + // v4-mapped, loopback, multicast, link-local, site-local. + // + ULONG High = (a->s6_bytes[0] & 0xf0u); + return (BOOLEAN)((High != 0) && (High != 0xf0)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_V4MAPPED(CONST IN6_ADDR *a) +{ + return (BOOLEAN)((a->s6_words[0] == 0) && + (a->s6_words[1] == 0) && + (a->s6_words[2] == 0) && + (a->s6_words[3] == 0) && + (a->s6_words[4] == 0) && + (a->s6_words[5] == 0xffff)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_V4COMPAT(CONST IN6_ADDR *a) +{ + return (BOOLEAN)((a->s6_words[0] == 0) && + (a->s6_words[1] == 0) && + (a->s6_words[2] == 0) && + (a->s6_words[3] == 0) && + (a->s6_words[4] == 0) && + (a->s6_words[5] == 0) && + !((a->s6_words[6] == 0) && + (a->s6_addr[14] == 0) && + ((a->s6_addr[15] == 0) || (a->s6_addr[15] == 1)))); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_V4TRANSLATED(CONST IN6_ADDR *a) +{ + return (BOOLEAN)((a->s6_words[0] == 0) && + (a->s6_words[1] == 0) && + (a->s6_words[2] == 0) && + (a->s6_words[3] == 0) && + (a->s6_words[4] == 0xffff) && + (a->s6_words[5] == 0)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_MC_NODELOCAL(CONST IN6_ADDR *a) +{ + return (BOOLEAN)(IN6_IS_ADDR_MULTICAST(a) && + ((a->s6_bytes[1] & 0xf) == 1)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_MC_LINKLOCAL(CONST IN6_ADDR *a) +{ + return (BOOLEAN)(IN6_IS_ADDR_MULTICAST(a) && + ((a->s6_bytes[1] & 0xf) == 2)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_MC_SITELOCAL(CONST IN6_ADDR *a) +{ + return (BOOLEAN)(IN6_IS_ADDR_MULTICAST(a) && + ((a->s6_bytes[1] & 0xf) == 5)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_MC_ORGLOCAL(CONST IN6_ADDR *a) +{ + return (BOOLEAN)(IN6_IS_ADDR_MULTICAST(a) && + ((a->s6_bytes[1] & 0xf) == 8)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6_IS_ADDR_MC_GLOBAL(CONST IN6_ADDR *a) +{ + return (BOOLEAN)(IN6_IS_ADDR_MULTICAST(a) && + ((a->s6_bytes[1] & 0xf) == 0xe)); +} + +WS2TCPIP_INLINE +VOID +IN6_SET_ADDR_UNSPECIFIED(PIN6_ADDR a) +{ + // + // We can't use the in6addr_any variable, since that would + // require existing callers to link with a specific library. + // + memset(a->s6_bytes, 0, sizeof(IN6_ADDR)); +} + +WS2TCPIP_INLINE +VOID +IN6_SET_ADDR_LOOPBACK(PIN6_ADDR a) +{ + // + // We can't use the in6addr_loopback variable, since that would + // require existing callers to link with a specific library. + // + memset(a->s6_bytes, 0, sizeof(IN6_ADDR)); + a->s6_bytes[15] = 1; +} + +WS2TCPIP_INLINE +VOID +IN6ADDR_SETANY(PSOCKADDR_IN6 a) +{ + a->sin6_family = AF_INET6; + a->sin6_port = 0; + a->sin6_flowinfo = 0; + IN6_SET_ADDR_UNSPECIFIED(&a->sin6_addr); + a->sin6_scope_id = 0; +} + +WS2TCPIP_INLINE +VOID +IN6ADDR_SETLOOPBACK(PSOCKADDR_IN6 a) +{ + a->sin6_family = AF_INET6; + a->sin6_port = 0; + a->sin6_flowinfo = 0; + IN6_SET_ADDR_LOOPBACK(&a->sin6_addr); + a->sin6_scope_id = 0; +} + +WS2TCPIP_INLINE +BOOLEAN +IN6ADDR_ISANY(CONST SOCKADDR_IN6 *a) +{ + WS2IPDEF_ASSERT(a->sin6_family == AF_INET6); + return IN6_IS_ADDR_UNSPECIFIED(&a->sin6_addr); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6ADDR_ISLOOPBACK(CONST SOCKADDR_IN6 *a) +{ + WS2IPDEF_ASSERT(a->sin6_family == AF_INET6); + return IN6_IS_ADDR_LOOPBACK(&a->sin6_addr); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6ADDR_ISEQUAL(CONST SOCKADDR_IN6 *a, CONST SOCKADDR_IN6 *b) +{ + WS2IPDEF_ASSERT(a->sin6_family == AF_INET6); + return (BOOLEAN)(a->sin6_scope_id == b->sin6_scope_id && + IN6_ADDR_EQUAL(&a->sin6_addr, &b->sin6_addr)); +} + +WS2TCPIP_INLINE +BOOLEAN +IN6ADDR_ISUNSPECIFIED(CONST SOCKADDR_IN6 *a) +{ + WS2IPDEF_ASSERT(a->sin6_family == AF_INET6); + return (BOOLEAN)(a->sin6_scope_id == 0 && + IN6_IS_ADDR_UNSPECIFIED(&a->sin6_addr)); +} + +#endif // __midl + +#endif // (NTDDI_VERSION >= NTDDI_WIN2KSP1) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +// +// TCP/IP specific Ioctl codes. +// +#define SIO_GET_INTERFACE_LIST _IOR('t', 127, ULONG) +#define SIO_GET_INTERFACE_LIST_EX _IOR('t', 126, ULONG) +#define SIO_SET_MULTICAST_FILTER _IOW('t', 125, ULONG) +#define SIO_GET_MULTICAST_FILTER _IOW('t', 124 | IOC_IN, ULONG) +#define SIOCSIPMSFILTER SIO_SET_MULTICAST_FILTER +#define SIOCGIPMSFILTER SIO_GET_MULTICAST_FILTER + +// +// Protocol independent ioctls for setting and retrieving multicast filters. +// +#define SIOCSMSFILTER _IOW('t', 126, ULONG) +#define SIOCGMSFILTER _IOW('t', 127 | IOC_IN, ULONG) + +#if (NTDDI_VERSION >= NTDDI_VISTASP1) + +#define IDEAL_SEND_BACKLOG_IOCTLS + +// +// Query and change notification ioctls for the ideal send backlog size +// for a given connection. Clients should use the wrappers defined in +// ws2tcpip.h rather than using these ioctls directly. +// + +#define SIO_IDEAL_SEND_BACKLOG_QUERY _IOR('t', 123, ULONG) +#define SIO_IDEAL_SEND_BACKLOG_CHANGE _IO('t', 122) + +#endif + +// +// Protocol independent multicast source filter options. +// +#define MCAST_JOIN_GROUP 41 // Join all sources for a group. +#define MCAST_LEAVE_GROUP 42 // Drop all sources for a group. +#define MCAST_BLOCK_SOURCE 43 // Block IP group/source. +#define MCAST_UNBLOCK_SOURCE 44 // Unblock IP group/source. +#define MCAST_JOIN_SOURCE_GROUP 45 // Join IP group/source. +#define MCAST_LEAVE_SOURCE_GROUP 46 // Leave IP group/source. + +// +// Definitions of MCAST_INCLUDE and MCAST_EXCLUDE for multicast source filter. +// +typedef enum { + MCAST_INCLUDE = 0, + MCAST_EXCLUDE +} MULTICAST_MODE_TYPE; + +// +// Structure for IP_MREQ (used by IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP). +// +typedef struct ip_mreq { + IN_ADDR imr_multiaddr; // IP multicast address of group. + IN_ADDR imr_interface; // Local IP address of interface. +} IP_MREQ, *PIP_MREQ; + +// +// Structure for IP_MREQ_SOURCE (used by IP_BLOCK_SOURCE, IP_UNBLOCK_SOURCE +// etc.). +// +typedef struct ip_mreq_source { + IN_ADDR imr_multiaddr; // IP multicast address of group. + IN_ADDR imr_sourceaddr; // IP address of source. + IN_ADDR imr_interface; // Local IP address of interface. +} IP_MREQ_SOURCE, *PIP_MREQ_SOURCE; + +// +// Structure for IP_MSFILTER (used by SIOCSIPMSFILTER and SIOCGIPMSFILTER). +// +typedef struct ip_msfilter { + IN_ADDR imsf_multiaddr; // IP multicast address of group. + IN_ADDR imsf_interface; // Local IP address of interface. + MULTICAST_MODE_TYPE imsf_fmode; // Filter mode. + ULONG imsf_numsrc; // Number of sources in src_list. + IN_ADDR imsf_slist[1]; // Start of source list. +} IP_MSFILTER, *PIP_MSFILTER; + +#define IP_MSFILTER_SIZE(NumSources) \ + (sizeof(IP_MSFILTER) - sizeof(IN_ADDR) + (NumSources) * sizeof(IN_ADDR)) + +// +// Options to use with [gs]etsockopt at the IPPROTO_IPV6 level. +// These are specified in RFCs 3493 and 3542. +// The values should be consistent with the IPv6 equivalents. +// +#define IPV6_HOPOPTS 1 // Set/get IPv6 hop-by-hop options. +#define IPV6_HDRINCL 2 // Header is included with data. +#define IPV6_UNICAST_HOPS 4 // IP unicast hop limit. +#define IPV6_MULTICAST_IF 9 // IP multicast interface. +#define IPV6_MULTICAST_HOPS 10 // IP multicast hop limit. +#define IPV6_MULTICAST_LOOP 11 // IP multicast loopback. +#define IPV6_ADD_MEMBERSHIP 12 // Add an IP group membership. +#define IPV6_JOIN_GROUP IPV6_ADD_MEMBERSHIP +#define IPV6_DROP_MEMBERSHIP 13 // Drop an IP group membership. +#define IPV6_LEAVE_GROUP IPV6_DROP_MEMBERSHIP +#define IPV6_DONTFRAG 14 // Don't fragment IP datagrams. +#define IPV6_PKTINFO 19 // Receive packet information. +#define IPV6_HOPLIMIT 21 // Receive packet hop limit. +#define IPV6_PROTECTION_LEVEL 23 // Set/get IPv6 protection level. +#define IPV6_RECVIF 24 // Receive arrival interface. +#define IPV6_RECVDSTADDR 25 // Receive destination address. +#define IPV6_CHECKSUM 26 // Offset to checksum for raw IP socket send. +#define IPV6_V6ONLY 27 // Treat wildcard bind as AF_INET6-only. +#define IPV6_IFLIST 28 // Enable/Disable an interface list. +#define IPV6_ADD_IFLIST 29 // Add an interface list entry. +#define IPV6_DEL_IFLIST 30 // Delete an interface list entry. +#define IPV6_UNICAST_IF 31 // IP unicast interface. +#define IPV6_RTHDR 32 // Set/get IPv6 routing header. +#define IPV6_GET_IFLIST 33 // Get an interface list. +#define IPV6_RECVRTHDR 38 // Receive the routing header. +#define IPV6_TCLASS 39 // Packet traffic class. +#define IPV6_RECVTCLASS 40 // Receive packet traffic class. +#define IPV6_ECN 50 // IPv6 ECN codepoint. +#define IPV6_RECVECN 50 // Receive ECN codepoints in the IPv6 header. +#define IPV6_PKTINFO_EX 51 // Receive extended packet information. +#define IPV6_WFP_REDIRECT_RECORDS 60 // WFP's Connection Redirect Records +#define IPV6_WFP_REDIRECT_CONTEXT 70 // WFP's Connection Redirect Context +#define IPV6_MTU_DISCOVER 71 // Set/get path MTU discover state. +#define IPV6_MTU 72 // Get path MTU. +#define IPV6_NRT_INTERFACE 74 // Set NRT interface constraint (outbound). +#define IPV6_RECVERR 75 // Receive ICMPv6 errors. +#define IPV6_USER_MTU 76 // Set/get app defined upper bound IP layer MTU. + +#define IP_UNSPECIFIED_HOP_LIMIT -1 + +#define IP_PROTECTION_LEVEL IPV6_PROTECTION_LEVEL +// +// Values of IPV6_PROTECTION_LEVEL. +// +#define PROTECTION_LEVEL_UNRESTRICTED 10 // For peer-to-peer apps. +#define PROTECTION_LEVEL_EDGERESTRICTED 20 // Same as unrestricted. Except for + // Teredo. +#define PROTECTION_LEVEL_RESTRICTED 30 // For Intranet apps. + +#if (NTDDI_VERSION < NTDDI_VISTA) +#define PROTECTION_LEVEL_DEFAULT PROTECTION_LEVEL_EDGERESTRICTED +#else +#define PROTECTION_LEVEL_DEFAULT ((UINT)-1) +#endif +// +// Structure for IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP (also, +// IPV6_ADD_MEMBERSHIP and IPV6_DROP_MEMBERSHIP). +// +typedef struct ipv6_mreq { + IN6_ADDR ipv6mr_multiaddr; // IPv6 multicast address. + ULONG ipv6mr_interface; // Interface index. +} IPV6_MREQ, *PIPV6_MREQ; + +#if (NTDDI_VERSION >= NTDDI_WINXP) +// +// Structure for GROUP_REQ used by protocol independent source filters +// (MCAST_JOIN_GROUP and MCAST_LEAVE_GROUP). +// +typedef struct group_req { + ULONG gr_interface; // Interface index. + SOCKADDR_STORAGE gr_group; // Multicast address. +} GROUP_REQ, *PGROUP_REQ; + +// +// Structure for GROUP_SOURCE_REQ used by protocol independent source filters +// (MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP etc.). +// +typedef struct group_source_req { + ULONG gsr_interface; // Interface index. + SOCKADDR_STORAGE gsr_group; // Group address. + SOCKADDR_STORAGE gsr_source; // Source address. +} GROUP_SOURCE_REQ, *PGROUP_SOURCE_REQ; + +// +// Structure for GROUP_FILTER used by protocol independent source filters +// (SIOCSMSFILTER and SIOCGMSFILTER). +// +typedef struct group_filter { + ULONG gf_interface; // Interface index. + SOCKADDR_STORAGE gf_group; // Multicast address. + MULTICAST_MODE_TYPE gf_fmode; // Filter mode. + ULONG gf_numsrc; // Number of sources. + SOCKADDR_STORAGE gf_slist[1]; // Source address. +} GROUP_FILTER, *PGROUP_FILTER; + +#define GROUP_FILTER_SIZE(numsrc) \ + (sizeof(GROUP_FILTER) - sizeof(SOCKADDR_STORAGE) \ + + (numsrc) * sizeof(SOCKADDR_STORAGE)) +#endif + +// +// Structure for IP_PKTINFO option. +// +typedef struct in_pktinfo { + IN_ADDR ipi_addr; // Source/destination IPv4 address. + ULONG ipi_ifindex; // Send/receive interface index. +} IN_PKTINFO, *PIN_PKTINFO; + +#ifndef MIDL_PASS +C_ASSERT(sizeof(IN_PKTINFO) == 8); +#endif + +// +// Structure for IPV6_PKTINFO option. +// +typedef struct in6_pktinfo { + IN6_ADDR ipi6_addr; // Source/destination IPv6 address. + ULONG ipi6_ifindex; // Send/receive interface index. +} IN6_PKTINFO, *PIN6_PKTINFO; + +#ifndef MIDL_PASS +C_ASSERT(sizeof(IN6_PKTINFO) == 20); +#endif + +// +// Structure for IP_PKTINFO_EX option. +// +typedef struct in_pktinfo_ex { + IN_PKTINFO pkt_info; + SCOPE_ID scope_id; +} IN_PKTINFO_EX, *PIN_PKTINFO_EX; + +#ifndef MIDL_PASS +C_ASSERT(sizeof(IN_PKTINFO_EX) == 12); +#endif + +// +// Structure for IPV6_PKTINFO_EX option. +// +typedef struct in6_pktinfo_ex { + IN6_PKTINFO pkt_info; + SCOPE_ID scope_id; +} IN6_PKTINFO_EX, *PIN6_PKTINFO_EX; + +#ifndef MIDL_PASS +C_ASSERT(sizeof(IN6_PKTINFO_EX) == 24); +#endif + +// +// Structure for IP_RECVERR option. +// +typedef struct in_recverr { + IPPROTO protocol; // IPPROTO_ICMP or IPPROTO_ICMPV6. + ULONG info; // MTU if frag needed or pkt too big message. + UINT8 type; + UINT8 code; +} IN_RECVERR, *PIN_RECVERR; + +// +// Maximum length of address literals (potentially including a port number) +// generated by any address-to-string conversion routine. This length can +// be used when declaring buffers used with getnameinfo, WSAAddressToString, +// inet_ntoa, etc. We just provide one define, rather than one per api, +// to avoid confusion. +// +// The totals are derived from the following data: +// 15: IPv4 address +// 45: IPv6 address including embedded IPv4 address +// 11: Scope Id +// 2: Brackets around IPv6 address when port is present +// 6: Port (including colon) +// 1: Terminating null byte +// +#define INET_ADDRSTRLEN 22 +#define INET6_ADDRSTRLEN 65 + + + +// +// Options to use with [gs]etsockopt at the IPPROTO_TCP level. +// TCP_NODELAY is defined in ws2def.h for historical reasons. +// + +// +// Offload preferences supported. +// +#define TCP_OFFLOAD_NO_PREFERENCE 0 +#define TCP_OFFLOAD_NOT_PREFERRED 1 +#define TCP_OFFLOAD_PREFERRED 2 + +// TCP_NODELAY 0x0001 +#define TCP_EXPEDITED_1122 0x0002 +#define TCP_KEEPALIVE 3 +#define TCP_MAXSEG 4 +#define TCP_MAXRT 5 +#define TCP_STDURG 6 +#define TCP_NOURG 7 +#define TCP_ATMARK 8 +#define TCP_NOSYNRETRIES 9 +#define TCP_TIMESTAMPS 10 +#define TCP_OFFLOAD_PREFERENCE 11 +#define TCP_CONGESTION_ALGORITHM 12 +#define TCP_DELAY_FIN_ACK 13 +#define TCP_MAXRTMS 14 +#define TCP_FASTOPEN 15 +#define TCP_KEEPCNT 16 +#define TCP_KEEPIDLE TCP_KEEPALIVE +#define TCP_KEEPINTVL 17 +#define TCP_FAIL_CONNECT_ON_ICMP_ERROR 18 +#define TCP_ICMP_ERROR_INFO 19 + +// +// Structure for TCP_ICMP_ERROR_INFO option. +// +typedef struct icmp_error_info { + SOCKADDR_INET srcaddress; + IPPROTO protocol; + UINT8 type; + UINT8 code; +} ICMP_ERROR_INFO, *PICMP_ERROR_INFO; + + +// +// Options to use with [gs]etsockopt at the IPPROTO_UDP level. +// UDP_NOCHECKSUM is defined in ws2tcpip.h for historical reasons. +// UDP_CHECKSUM_COVERAGE is defined in ws2tcpip.h for historical reasons. +// + +// UDP_NOCHECKSUM 1 +#define UDP_SEND_MSG_SIZE 2 +#define UDP_RECV_MAX_COALESCED_SIZE 3 +// UDP_CHECKSUM_COVERAGE 20 + +// +// Control message types at the IPPROTO_UDP level. +// + +#define UDP_COALESCED_INFO 3 + + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + +#pragma warning(pop) + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wtypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wtypes.h new file mode 100644 index 0000000000000000000000000000000000000000..a83b54584b19d702855030aa46e9496f8b4906bf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/shared/wtypes.h @@ -0,0 +1,969 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __wtypes_h__ +#define __wtypes_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +/* header files for imported files */ +#include "wtypesbase.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_wtypes_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#if ( _MSC_VER >= 1020 ) +#pragma once +#endif +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0000_v0_0_s_ifspec; + +#ifndef __IWinTypes_INTERFACE_DEFINED__ +#define __IWinTypes_INTERFACE_DEFINED__ + +/* interface IWinTypes */ +/* [unique][version][uuid] */ + +typedef struct tagRemHGLOBAL + { + LONG fNullHGlobal; + ULONG cbData; + /* [size_is] */ byte data[ 1 ]; + } RemHGLOBAL; + +typedef struct tagRemHMETAFILEPICT + { + LONG mm; + LONG xExt; + LONG yExt; + ULONG cbData; + /* [size_is] */ byte data[ 1 ]; + } RemHMETAFILEPICT; + +typedef struct tagRemHENHMETAFILE + { + ULONG cbData; + /* [size_is] */ byte data[ 1 ]; + } RemHENHMETAFILE; + +typedef struct tagRemHBITMAP + { + ULONG cbData; + /* [size_is] */ byte data[ 1 ]; + } RemHBITMAP; + +typedef struct tagRemHPALETTE + { + ULONG cbData; + /* [size_is] */ byte data[ 1 ]; + } RemHPALETTE; + +typedef struct tagRemBRUSH + { + ULONG cbData; + /* [size_is] */ byte data[ 1 ]; + } RemHBRUSH; + +#if !defined(_WIN32) && !defined(_MPPC_) +// The following code is for Win16 only +#ifndef WINAPI // If not included with 3.1 headers... +#define FAR _far +#define PASCAL _pascal +#define CDECL _cdecl +#define VOID void +#define WINAPI FAR PASCAL +#define CALLBACK FAR PASCAL +#ifndef FALSE +#define FALSE 0 +#define TRUE 1 +#endif // !FALSE +#ifndef _BYTE_DEFINED +#define _BYTE_DEFINED +typedef byte BYTE; +#endif // !_BYTE_DEFINED +#ifndef _WORD_DEFINED +#define _WORD_DEFINED +typedef unsigned short WORD; +#endif // !_WORD_DEFINED +typedef unsigned int UINT; +typedef int INT; +typedef long BOOL; +#ifndef _LONG_DEFINED +#define _LONG_DEFINED +typedef long LONG; +#endif // !_LONG_DEFINED +#ifndef _WPARAM_DEFINED +#define _WPARAM_DEFINED +typedef UINT_PTR WPARAM; + +#endif // _WPARAM_DEFINED +#ifndef _DWORD_DEFINED +#define _DWORD_DEFINED +typedef unsigned long DWORD; +#endif // !_DWORD_DEFINED +#ifndef _LPARAM_DEFINED +#define _LPARAM_DEFINED +typedef LONG_PTR LPARAM; + +#endif // !_LPARAM_DEFINED +#ifndef _LRESULT_DEFINED +#define _LRESULT_DEFINED +typedef LONG_PTR LRESULT; + +#endif // !_LRESULT_DEFINED +typedef void * HANDLE; +typedef void *HMODULE; + +typedef void *HINSTANCE; + +typedef void *HTASK; + +typedef void *HKEY; + +typedef void *HDESK; + +typedef void *HMF; + +typedef void *HEMF; + +typedef void *HPEN; + +typedef void *HRSRC; + +typedef void *HSTR; + +typedef void *HWINSTA; + +typedef void *HKL; + +typedef void *HGDIOBJ; + +typedef HANDLE HDWP; + +#ifndef _HFILE_DEFINED +#define _HFILE_DEFINED +typedef INT HFILE; + +#endif // !_HFILE_DEFINED +#ifndef _LPWORD_DEFINED +#define _LPWORD_DEFINED +typedef WORD *LPWORD; +#endif // !_LPWORD_DEFINED +#ifndef _LPDWORD_DEFINED +#define _LPDWORD_DEFINED +typedef DWORD *LPDWORD; +#endif // !_LPDWORD_DEFINED +typedef char CHAR; +typedef CHAR *LPSTR; +typedef const CHAR *LPCSTR; +#ifndef _WCHAR_DEFINED +#define _WCHAR_DEFINED +typedef wchar_t WCHAR; +typedef WCHAR TCHAR; +#endif // !_WCHAR_DEFINED +typedef WCHAR *LPWSTR; +typedef TCHAR *LPTSTR; +typedef const WCHAR *LPCWSTR; +typedef const TCHAR *LPCTSTR; +#ifndef _COLORREF_DEFINED +#define _COLORREF_DEFINED +typedef DWORD COLORREF; + +#endif // !_COLORREF_DEFINED +#ifndef _LPCOLORREF_DEFINED +#define _LPCOLORREF_DEFINED +typedef DWORD *LPCOLORREF; + +#endif // !_LPCOLORREF_DEFINED +typedef HANDLE *LPHANDLE; +typedef struct _RECTL + { + LONG left; + LONG top; + LONG right; + LONG bottom; + } RECTL; + +typedef struct _RECTL *PRECTL; + +typedef struct _RECTL *LPRECTL; + +typedef struct tagPOINT + { + LONG x; + LONG y; + } POINT; + +typedef struct tagPOINT *PPOINT; + +typedef struct tagPOINT *LPPOINT; + +typedef struct _POINTL + { + LONG x; + LONG y; + } POINTL; + +typedef struct _POINTL *PPOINTL; + +#ifndef WIN16 +typedef struct tagSIZE + { + LONG cx; + LONG cy; + } SIZE; + +typedef struct tagSIZE *PSIZE; + +typedef struct tagSIZE *LPSIZE; + +#else // WIN16 +typedef struct tagSIZE +{ + INT cx; + INT cy; +} SIZE, *PSIZE, *LPSIZE; +#endif // WIN16 +typedef struct tagSIZEL + { + LONG cx; + LONG cy; + } SIZEL; + +typedef struct tagSIZEL *PSIZEL; + +typedef struct tagSIZEL *LPSIZEL; + +#endif //WINAPI +#endif //!WIN32 && !MPPC +#ifndef _PALETTEENTRY_DEFINED +#define _PALETTEENTRY_DEFINED +typedef struct tagPALETTEENTRY + { + BYTE peRed; + BYTE peGreen; + BYTE peBlue; + BYTE peFlags; + } PALETTEENTRY; + +typedef struct tagPALETTEENTRY *PPALETTEENTRY; + +typedef struct tagPALETTEENTRY *LPPALETTEENTRY; + +#endif // !_PALETTEENTRY_DEFINED +#ifndef _LOGPALETTE_DEFINED +#define _LOGPALETTE_DEFINED +typedef struct tagLOGPALETTE + { + WORD palVersion; + WORD palNumEntries; + /* [size_is] */ PALETTEENTRY palPalEntry[ 1 ]; + } LOGPALETTE; + +typedef struct tagLOGPALETTE *PLOGPALETTE; + +typedef struct tagLOGPALETTE *LPLOGPALETTE; + +#endif // !_LOGPALETTE_DEFINED +#ifndef _WINDEF_ +typedef const RECTL *LPCRECTL; + +typedef struct tagRECT + { + LONG left; + LONG top; + LONG right; + LONG bottom; + } RECT; + +typedef struct tagRECT *PRECT; + +typedef struct tagRECT *LPRECT; + +typedef const RECT *LPCRECT; + +#endif //_WINDEF_ +#if 0 +typedef FMTID *REFFMTID; + +#endif // 0 +#ifndef _ROTFLAGS_DEFINED +#define _ROTFLAGS_DEFINED +#define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x1 +#define ROTFLAGS_ALLOWANYCLIENT 0x2 +#endif // !_ROTFLAGS_DEFINED +#ifndef _ROT_COMPARE_MAX_DEFINED +#define _ROT_COMPARE_MAX_DEFINED +#define ROT_COMPARE_MAX 2048 +#endif // !_ROT_COMPARE_MAX_DEFINED +typedef +enum tagDVASPECT + { + DVASPECT_CONTENT = 1, + DVASPECT_THUMBNAIL = 2, + DVASPECT_ICON = 4, + DVASPECT_DOCPRINT = 8 + } DVASPECT; + +typedef +enum tagSTGC + { + STGC_DEFAULT = 0, + STGC_OVERWRITE = 1, + STGC_ONLYIFCURRENT = 2, + STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4, + STGC_CONSOLIDATE = 8 + } STGC; + +typedef +enum tagSTGMOVE + { + STGMOVE_MOVE = 0, + STGMOVE_COPY = 1, + STGMOVE_SHALLOWCOPY = 2 + } STGMOVE; + +typedef +enum tagSTATFLAG + { + STATFLAG_DEFAULT = 0, + STATFLAG_NONAME = 1, + STATFLAG_NOOPEN = 2 + } STATFLAG; + +typedef /* [context_handle] */ void *HCONTEXT; + +#ifndef _LCID_DEFINED +#define _LCID_DEFINED +typedef DWORD LCID; + +#endif // !_LCID_DEFINED +#ifndef _LANGID_DEFINED +#define _LANGID_DEFINED +typedef USHORT LANGID; + +#endif // !_LANGID_DEFINED +#define WDT_INPROC_CALL ( 0x48746457 ) + +#define WDT_REMOTE_CALL ( 0x52746457 ) + +#define WDT_INPROC64_CALL ( 0x50746457 ) + +typedef struct _userCLIPFORMAT + { + LONG fContext; + /* [switch_is] */ /* [switch_type] */ union __MIDL_IWinTypes_0001 + { + /* [case()] */ DWORD dwValue; + /* [case()][string] */ wchar_t *pwszName; + } u; + } userCLIPFORMAT; + +typedef /* [unique] */ __RPC_unique_pointer userCLIPFORMAT *wireCLIPFORMAT; + +typedef /* [wire_marshal] */ WORD CLIPFORMAT; + +typedef struct _GDI_NONREMOTE + { + LONG fContext; + /* [switch_is] */ /* [switch_type] */ union __MIDL_IWinTypes_0002 + { + /* [case()] */ LONG hInproc; + /* [case()] */ DWORD_BLOB *hRemote; + } u; + } GDI_NONREMOTE; + +typedef struct _userHGLOBAL + { + LONG fContext; + /* [switch_is] */ /* [switch_type] */ union __MIDL_IWinTypes_0003 + { + /* [case()] */ LONG hInproc; + /* [case()] */ FLAGGED_BYTE_BLOB *hRemote; + /* [case()] */ __int64 hInproc64; + } u; + } userHGLOBAL; + +typedef /* [unique] */ __RPC_unique_pointer userHGLOBAL *wireHGLOBAL; + +typedef struct _userHMETAFILE + { + LONG fContext; + /* [switch_is] */ /* [switch_type] */ union __MIDL_IWinTypes_0004 + { + /* [case()] */ LONG hInproc; + /* [case()] */ BYTE_BLOB *hRemote; + /* [case()] */ __int64 hInproc64; + } u; + } userHMETAFILE; + +typedef struct _remoteMETAFILEPICT + { + LONG mm; + LONG xExt; + LONG yExt; + userHMETAFILE *hMF; + } remoteMETAFILEPICT; + +typedef struct _userHMETAFILEPICT + { + LONG fContext; + /* [switch_is] */ /* [switch_type] */ union __MIDL_IWinTypes_0005 + { + /* [case()] */ LONG hInproc; + /* [case()] */ remoteMETAFILEPICT *hRemote; + /* [case()] */ __int64 hInproc64; + } u; + } userHMETAFILEPICT; + +typedef struct _userHENHMETAFILE + { + LONG fContext; + /* [switch_is] */ /* [switch_type] */ union __MIDL_IWinTypes_0006 + { + /* [case()] */ LONG hInproc; + /* [case()] */ BYTE_BLOB *hRemote; + /* [case()] */ __int64 hInproc64; + } u; + } userHENHMETAFILE; + +typedef struct _userBITMAP + { + LONG bmType; + LONG bmWidth; + LONG bmHeight; + LONG bmWidthBytes; + WORD bmPlanes; + WORD bmBitsPixel; + ULONG cbSize; + /* [size_is] */ byte pBuffer[ 1 ]; + } userBITMAP; + +typedef struct _userHBITMAP + { + LONG fContext; + /* [switch_is] */ /* [switch_type] */ union __MIDL_IWinTypes_0007 + { + /* [case()] */ LONG hInproc; + /* [case()] */ userBITMAP *hRemote; + /* [case()] */ __int64 hInproc64; + } u; + } userHBITMAP; + +typedef struct _userHPALETTE + { + LONG fContext; + /* [switch_is] */ /* [switch_type] */ union __MIDL_IWinTypes_0008 + { + /* [case()] */ LONG hInproc; + /* [case()] */ LOGPALETTE *hRemote; + /* [case()] */ __int64 hInproc64; + } u; + } userHPALETTE; + +typedef struct _RemotableHandle + { + LONG fContext; + /* [switch_is] */ /* [switch_type] */ union __MIDL_IWinTypes_0009 + { + /* [case()] */ LONG hInproc; + /* [case()] */ LONG hRemote; + } u; + } RemotableHandle; + +typedef /* [unique] */ __RPC_unique_pointer RemotableHandle *wireHWND; + +typedef /* [unique] */ __RPC_unique_pointer RemotableHandle *wireHMENU; + +typedef /* [unique] */ __RPC_unique_pointer RemotableHandle *wireHACCEL; + +typedef /* [unique] */ __RPC_unique_pointer RemotableHandle *wireHBRUSH; + +typedef /* [unique] */ __RPC_unique_pointer RemotableHandle *wireHFONT; + +typedef /* [unique] */ __RPC_unique_pointer RemotableHandle *wireHDC; + +typedef /* [unique] */ __RPC_unique_pointer RemotableHandle *wireHICON; + +typedef /* [unique] */ __RPC_unique_pointer RemotableHandle *wireHRGN; + +typedef /* [unique] */ __RPC_unique_pointer RemotableHandle *wireHMONITOR; + +#if 0 +typedef /* [wire_marshal] */ void *HWND; + +typedef /* [wire_marshal] */ void *HMENU; + +typedef /* [wire_marshal] */ void *HACCEL; + +typedef /* [wire_marshal] */ void *HBRUSH; + +typedef /* [wire_marshal] */ void *HFONT; + +typedef /* [wire_marshal] */ void *HDC; + +typedef /* [wire_marshal] */ void *HICON; + +typedef /* [wire_marshal] */ void *HRGN; + +typedef /* [wire_marshal] */ void *HMONITOR; + +#ifndef _HCURSOR_DEFINED +#define _HCURSOR_DEFINED +typedef HICON HCURSOR; + +#endif // !_HCURSOR_DEFINED +#endif //0 +#ifndef _TEXTMETRIC_DEFINED +#define _TEXTMETRIC_DEFINED +typedef struct tagTEXTMETRICW + { + LONG tmHeight; + LONG tmAscent; + LONG tmDescent; + LONG tmInternalLeading; + LONG tmExternalLeading; + LONG tmAveCharWidth; + LONG tmMaxCharWidth; + LONG tmWeight; + LONG tmOverhang; + LONG tmDigitizedAspectX; + LONG tmDigitizedAspectY; + WCHAR tmFirstChar; + WCHAR tmLastChar; + WCHAR tmDefaultChar; + WCHAR tmBreakChar; + BYTE tmItalic; + BYTE tmUnderlined; + BYTE tmStruckOut; + BYTE tmPitchAndFamily; + BYTE tmCharSet; + } TEXTMETRICW; + +typedef struct tagTEXTMETRICW *PTEXTMETRICW; + +typedef struct tagTEXTMETRICW *LPTEXTMETRICW; + +#endif // !_TEXTMETRIC_DEFINED +#ifndef _WIN32 // The following code is for Win16 only +#ifndef WINAPI // If not included with 3.1 headers... +typedef struct tagMSG + { + HWND hwnd; + UINT message; + WPARAM wParam; + LPARAM lParam; + DWORD time; + POINT pt; + } MSG; + +typedef struct tagMSG *PMSG; + +typedef struct tagMSG *NPMSG; + +typedef struct tagMSG *LPMSG; + +#endif // _WIN32 +#endif // WINAPI +typedef /* [unique] */ __RPC_unique_pointer userHBITMAP *wireHBITMAP; + +typedef /* [unique] */ __RPC_unique_pointer userHPALETTE *wireHPALETTE; + +typedef /* [unique] */ __RPC_unique_pointer userHENHMETAFILE *wireHENHMETAFILE; + +typedef /* [unique] */ __RPC_unique_pointer userHMETAFILE *wireHMETAFILE; + +typedef /* [unique] */ __RPC_unique_pointer userHMETAFILEPICT *wireHMETAFILEPICT; + +#if 0 +typedef /* [wire_marshal] */ void *HGLOBAL; + +typedef HGLOBAL HLOCAL; + +typedef /* [wire_marshal] */ void *HBITMAP; + +typedef /* [wire_marshal] */ void *HPALETTE; + +typedef /* [wire_marshal] */ void *HENHMETAFILE; + +typedef /* [wire_marshal] */ void *HMETAFILE; + +#endif //0 +typedef /* [wire_marshal] */ void *HMETAFILEPICT; + + + +extern RPC_IF_HANDLE IWinTypes_v0_1_c_ifspec; +extern RPC_IF_HANDLE IWinTypes_v0_1_s_ifspec; +#endif /* __IWinTypes_INTERFACE_DEFINED__ */ + +/* interface __MIDL_itf_wtypes_0000_0001 */ +/* [local] */ + +#if ( _MSC_VER >= 800 ) +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif +#pragma warning(disable:4201) +#endif +typedef double DATE; + +#ifndef _tagCY_DEFINED +#define _tagCY_DEFINED +#define _CY_DEFINED +#if 0 +/* the following isn't the real definition of CY, but it is */ +/* what RPC knows how to remote */ +typedef struct tagCY + { + LONGLONG int64; + } CY; + +#else /* 0 */ +/* real definition that makes the C++ compiler happy */ +typedef union tagCY { + struct { + ULONG Lo; + LONG Hi; + } DUMMYSTRUCTNAME; + LONGLONG int64; +} CY; +#endif /* 0 */ +#endif /* _tagCY_DEFINED */ +typedef CY *LPCY; + +#if 0 /* _tagDEC_DEFINED */ +/* The following isn't the real definition of Decimal type, */ +/* but it is what RPC knows how to remote */ +typedef struct tagDEC + { + USHORT wReserved; + BYTE scale; + BYTE sign; + ULONG Hi32; + ULONGLONG Lo64; + } DECIMAL; + +#else /* _tagDEC_DEFINED */ +/* real definition that makes the C++ compiler happy */ +typedef struct tagDEC { + USHORT wReserved; + union { + struct { + BYTE scale; + BYTE sign; + } DUMMYSTRUCTNAME; + USHORT signscale; + } DUMMYUNIONNAME; + ULONG Hi32; + union { + struct { + ULONG Lo32; + ULONG Mid32; + } DUMMYSTRUCTNAME2; + ULONGLONG Lo64; + } DUMMYUNIONNAME2; +} DECIMAL; +#define DECIMAL_NEG ((BYTE)0x80) +#define DECIMAL_SETZERO(dec) \ + {(dec).Lo64 = 0; (dec).Hi32 = 0; (dec).signscale = 0;} +#endif /* _tagDEC_DEFINED */ +typedef DECIMAL *LPDECIMAL; + +#if ( _MSC_VER >= 800 ) +#if _MSC_VER >= 1200 +#pragma warning(pop) +#else +#pragma warning(default:4201) +#endif +#endif +typedef /* [unique] */ __RPC_unique_pointer FLAGGED_WORD_BLOB *wireBSTR; + +#ifndef _PREFAST_ +typedef /* [wire_marshal] */ OLECHAR *BSTR; + +#else // _PREFAST_ +typedef _Null_terminated_ OLECHAR *BSTR; +#endif +typedef BSTR *LPBSTR; + +/* 0 == FALSE, -1 == TRUE */ +typedef short VARIANT_BOOL; + +/* The BSTRBLOB structure is used by some implementations */ +/* of the IPropertyStorage interface when marshaling BSTRs */ +/* on systems which don't support BSTR marshaling. */ +#ifndef _tagBSTRBLOB_DEFINED +#define _tagBSTRBLOB_DEFINED +typedef struct tagBSTRBLOB + { + ULONG cbSize; + /* [size_is] */ BYTE *pData; + } BSTRBLOB; + +typedef struct tagBSTRBLOB *LPBSTRBLOB; + +#endif +#define VARIANT_TRUE ((VARIANT_BOOL)-1) +#define VARIANT_FALSE ((VARIANT_BOOL)0) +typedef struct tagCLIPDATA + { + ULONG cbSize; + LONG ulClipFmt; + /* [size_is] */ BYTE *pClipData; + } CLIPDATA; + +// Macro to calculate the size of the above pClipData +#define CBPCLIPDATA(clipdata) ( (clipdata).cbSize - sizeof((clipdata).ulClipFmt) ) +typedef unsigned short VARTYPE; + +/* + * VARENUM usage key, + * + * * [V] - may appear in a VARIANT + * * [T] - may appear in a TYPEDESC + * * [P] - may appear in an OLE property set + * * [S] - may appear in a Safe Array + * + * + * VT_EMPTY [V] [P] nothing + * VT_NULL [V] [P] SQL style Null + * VT_I2 [V][T][P][S] 2 byte signed int + * VT_I4 [V][T][P][S] 4 byte signed int + * VT_R4 [V][T][P][S] 4 byte real + * VT_R8 [V][T][P][S] 8 byte real + * VT_CY [V][T][P][S] currency + * VT_DATE [V][T][P][S] date + * VT_BSTR [V][T][P][S] OLE Automation string + * VT_DISPATCH [V][T] [S] IDispatch * + * VT_ERROR [V][T][P][S] SCODE + * VT_BOOL [V][T][P][S] True=-1, False=0 + * VT_VARIANT [V][T][P][S] VARIANT * + * VT_UNKNOWN [V][T] [S] IUnknown * + * VT_DECIMAL [V][T] [S] 16 byte fixed point + * VT_RECORD [V] [P][S] user defined type + * VT_I1 [V][T][P][s] signed char + * VT_UI1 [V][T][P][S] unsigned char + * VT_UI2 [V][T][P][S] unsigned short + * VT_UI4 [V][T][P][S] ULONG + * VT_I8 [T][P] signed 64-bit int + * VT_UI8 [T][P] unsigned 64-bit int + * VT_INT [V][T][P][S] signed machine int + * VT_UINT [V][T] [S] unsigned machine int + * VT_INT_PTR [T] signed machine register size width + * VT_UINT_PTR [T] unsigned machine register size width + * VT_VOID [T] C style void + * VT_HRESULT [T] Standard return type + * VT_PTR [T] pointer type + * VT_SAFEARRAY [T] (use VT_ARRAY in VARIANT) + * VT_CARRAY [T] C style array + * VT_USERDEFINED [T] user defined type + * VT_LPSTR [T][P] null terminated string + * VT_LPWSTR [T][P] wide null terminated string + * VT_FILETIME [P] FILETIME + * VT_BLOB [P] Length prefixed bytes + * VT_STREAM [P] Name of the stream follows + * VT_STORAGE [P] Name of the storage follows + * VT_STREAMED_OBJECT [P] Stream contains an object + * VT_STORED_OBJECT [P] Storage contains an object + * VT_VERSIONED_STREAM [P] Stream with a GUID version + * VT_BLOB_OBJECT [P] Blob contains an object + * VT_CF [P] Clipboard format + * VT_CLSID [P] A Class ID + * VT_VECTOR [P] simple counted array + * VT_ARRAY [V] SAFEARRAY* + * VT_BYREF [V] void* for local use + * VT_BSTR_BLOB Reserved for system use + */ + +enum VARENUM + { + VT_EMPTY = 0, + VT_NULL = 1, + VT_I2 = 2, + VT_I4 = 3, + VT_R4 = 4, + VT_R8 = 5, + VT_CY = 6, + VT_DATE = 7, + VT_BSTR = 8, + VT_DISPATCH = 9, + VT_ERROR = 10, + VT_BOOL = 11, + VT_VARIANT = 12, + VT_UNKNOWN = 13, + VT_DECIMAL = 14, + VT_I1 = 16, + VT_UI1 = 17, + VT_UI2 = 18, + VT_UI4 = 19, + VT_I8 = 20, + VT_UI8 = 21, + VT_INT = 22, + VT_UINT = 23, + VT_VOID = 24, + VT_HRESULT = 25, + VT_PTR = 26, + VT_SAFEARRAY = 27, + VT_CARRAY = 28, + VT_USERDEFINED = 29, + VT_LPSTR = 30, + VT_LPWSTR = 31, + VT_RECORD = 36, + VT_INT_PTR = 37, + VT_UINT_PTR = 38, + VT_FILETIME = 64, + VT_BLOB = 65, + VT_STREAM = 66, + VT_STORAGE = 67, + VT_STREAMED_OBJECT = 68, + VT_STORED_OBJECT = 69, + VT_BLOB_OBJECT = 70, + VT_CF = 71, + VT_CLSID = 72, + VT_VERSIONED_STREAM = 73, + VT_BSTR_BLOB = 0xfff, + VT_VECTOR = 0x1000, + VT_ARRAY = 0x2000, + VT_BYREF = 0x4000, + VT_RESERVED = 0x8000, + VT_ILLEGAL = 0xffff, + VT_ILLEGALMASKED = 0xfff, + VT_TYPEMASK = 0xfff + } ; +typedef ULONG PROPID; + +#ifndef PROPERTYKEY_DEFINED +#define PROPERTYKEY_DEFINED +typedef struct _tagpropertykey + { + GUID fmtid; + DWORD pid; + } PROPERTYKEY; + +#endif +typedef struct tagCSPLATFORM + { + DWORD dwPlatformId; + DWORD dwVersionHi; + DWORD dwVersionLo; + DWORD dwProcessorArch; + } CSPLATFORM; + +typedef struct tagQUERYCONTEXT + { + DWORD dwContext; + CSPLATFORM Platform; + LCID Locale; + DWORD dwVersionHi; + DWORD dwVersionLo; + } QUERYCONTEXT; + +typedef /* [v1_enum] */ +enum tagTYSPEC + { + TYSPEC_CLSID = 0, + TYSPEC_FILEEXT = ( TYSPEC_CLSID + 1 ) , + TYSPEC_MIMETYPE = ( TYSPEC_FILEEXT + 1 ) , + TYSPEC_FILENAME = ( TYSPEC_MIMETYPE + 1 ) , + TYSPEC_PROGID = ( TYSPEC_FILENAME + 1 ) , + TYSPEC_PACKAGENAME = ( TYSPEC_PROGID + 1 ) , + TYSPEC_OBJECTID = ( TYSPEC_PACKAGENAME + 1 ) + } TYSPEC; + +typedef /* [public] */ struct __MIDL___MIDL_itf_wtypes_0000_0001_0001 + { + DWORD tyspec; + /* [switch_is] */ /* [switch_type] */ union __MIDL___MIDL_itf_wtypes_0000_0001_0005 + { + /* [case()] */ CLSID clsid; + /* [case()] */ LPOLESTR pFileExt; + /* [case()] */ LPOLESTR pMimeType; + /* [case()] */ LPOLESTR pProgId; + /* [case()] */ LPOLESTR pFileName; + /* [case()] */ struct + { + LPOLESTR pPackageName; + GUID PolicyId; + } ByName; + /* [case()] */ struct + { + GUID ObjectId; + GUID PolicyId; + } ByObjectId; + } tagged_union; + } uCLSSPEC; + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_wtypes_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/assert.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/assert.h new file mode 100644 index 0000000000000000000000000000000000000000..dd93ea99f2b934c51c82a841b829bc8f975e1683 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/assert.h @@ -0,0 +1,50 @@ +// +// assert.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Defines the assert macro and related functionality. +// +#if defined _VCRT_BUILD && !defined _ASSERT_OK + #error assert.h not for CRT internal use +#endif + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS +_CRT_BEGIN_C_HEADER + +#if _CRT_HAS_C11 + +#define static_assert _Static_assert + +#endif // _CRT_HAS_C11 + +#undef assert + +#ifdef NDEBUG + + #define assert(expression) ((void)0) + +#else + + _ACRTIMP void __cdecl _wassert( + _In_z_ wchar_t const* _Message, + _In_z_ wchar_t const* _File, + _In_ unsigned _Line + ); + + #define assert(expression) ((void)( \ + (!!(expression)) || \ + (_wassert(_CRT_WIDE(#expression), _CRT_WIDE(__FILE__), (unsigned)(__LINE__)), 0)) \ + ) + +#endif + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/complex.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/complex.h new file mode 100644 index 0000000000000000000000000000000000000000..7a85c2538191f7d653164c384c76a6a2e3ab904e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/complex.h @@ -0,0 +1,580 @@ +// +// complex.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The complex math library. +// +#pragma once +#ifndef _COMPLEX +#define _COMPLEX + +#include + +#if (_CRT_HAS_CXX17 == 1) && !defined(_CRT_USE_C_COMPLEX_H) +#include +#else // ^^^^ /std:c++17 ^^^^ // vvvv _CRT_USE_C_COMPLEX_H vvvv + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Types +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifndef _C_COMPLEX_T + #define _C_COMPLEX_T + typedef struct _C_double_complex + { + double _Val[2]; + } _C_double_complex; + + typedef struct _C_float_complex + { + float _Val[2]; + } _C_float_complex; + + typedef struct _C_ldouble_complex + { + long double _Val[2]; + } _C_ldouble_complex; +#endif + +typedef _C_double_complex _Dcomplex; +typedef _C_float_complex _Fcomplex; +typedef _C_ldouble_complex _Lcomplex; + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Macros +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#define _DCOMPLEX_(re, im) _Cbuild(re, im) +#define _FCOMPLEX_(re, im) _FCbuild(re, im) +#define _LCOMPLEX_(re, im) _LCbuild(re, im) + +#define _Complex_I _FCbuild(0.0F, 1.0F) +#define I _Complex_I + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +_ACRTIMP double __cdecl cabs(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl cacos(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl cacosh(_In_ _Dcomplex _Z); +_ACRTIMP double __cdecl carg(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl casin(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl casinh(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl catan(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl catanh(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl ccos(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl ccosh(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl cexp(_In_ _Dcomplex _Z); +_ACRTIMP double __cdecl cimag(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl clog(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl clog10(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl conj(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl cpow(_In_ _Dcomplex _X, _In_ _Dcomplex _Y); +_ACRTIMP _Dcomplex __cdecl cproj(_In_ _Dcomplex _Z); +_ACRTIMP double __cdecl creal(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl csin(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl csinh(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl csqrt(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl ctan(_In_ _Dcomplex _Z); +_ACRTIMP _Dcomplex __cdecl ctanh(_In_ _Dcomplex _Z); +_ACRTIMP double __cdecl norm(_In_ _Dcomplex _Z); + +_ACRTIMP float __cdecl cabsf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl cacosf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl cacoshf(_In_ _Fcomplex _Z); +_ACRTIMP float __cdecl cargf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl casinf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl casinhf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl catanf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl catanhf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl ccosf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl ccoshf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl cexpf(_In_ _Fcomplex _Z); +_ACRTIMP float __cdecl cimagf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl clogf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl clog10f(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl conjf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl cpowf(_In_ _Fcomplex _X, _In_ _Fcomplex _Y); +_ACRTIMP _Fcomplex __cdecl cprojf(_In_ _Fcomplex _Z); +_ACRTIMP float __cdecl crealf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl csinf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl csinhf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl csqrtf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl ctanf(_In_ _Fcomplex _Z); +_ACRTIMP _Fcomplex __cdecl ctanhf(_In_ _Fcomplex _Z); +_ACRTIMP float __cdecl normf(_In_ _Fcomplex _Z); + +_ACRTIMP long double __cdecl cabsl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl cacosl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl cacoshl(_In_ _Lcomplex _Z); +_ACRTIMP long double __cdecl cargl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl casinl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl casinhl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl catanl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl catanhl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl ccosl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl ccoshl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl cexpl(_In_ _Lcomplex _Z); +_ACRTIMP long double __cdecl cimagl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl clogl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl clog10l(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl conjl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl cpowl(_In_ _Lcomplex _X, _In_ _Lcomplex _Y); +_ACRTIMP _Lcomplex __cdecl cprojl(_In_ _Lcomplex _Z); +_ACRTIMP long double __cdecl creall(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl csinl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl csinhl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl csqrtl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl ctanl(_In_ _Lcomplex _Z); +_ACRTIMP _Lcomplex __cdecl ctanhl(_In_ _Lcomplex _Z); +_ACRTIMP long double __cdecl norml(_In_ _Lcomplex _Z); + +_ACRTIMP _Dcomplex __cdecl _Cbuild(_In_ double _Re, _In_ double _Im); +_ACRTIMP _Dcomplex __cdecl _Cmulcc(_In_ _Dcomplex _X, _In_ _Dcomplex _Y); +_ACRTIMP _Dcomplex __cdecl _Cmulcr(_In_ _Dcomplex _X, _In_ double _Y); + +_ACRTIMP _Fcomplex __cdecl _FCbuild(_In_ float _Re, _In_ float _Im); +_ACRTIMP _Fcomplex __cdecl _FCmulcc(_In_ _Fcomplex _X, _In_ _Fcomplex _Y); +_ACRTIMP _Fcomplex __cdecl _FCmulcr(_In_ _Fcomplex _X, _In_ float _Y); + +_ACRTIMP _Lcomplex __cdecl _LCbuild(_In_ long double _Re, _In_ long double _Im); +_ACRTIMP _Lcomplex __cdecl _LCmulcc(_In_ _Lcomplex _X, _In_ _Lcomplex _Y); +_ACRTIMP _Lcomplex __cdecl _LCmulcr(_In_ _Lcomplex _X, _In_ long double _Y); + + + +#ifdef __cplusplus +extern "C++" +{ + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // double complex overloads + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + inline _Dcomplex __CRTDECL acos(_In_ _Dcomplex _X) throw() + { + return cacos(_X); + } + + inline _Dcomplex __CRTDECL acosh(_In_ _Dcomplex _X) throw() + { + return cacosh(_X); + } + + inline _Dcomplex __CRTDECL asin(_In_ _Dcomplex _X) throw() + { + return casin(_X); + } + + inline _Dcomplex __CRTDECL asinh(_In_ _Dcomplex _X) throw() + { + return casinh(_X); + } + + inline _Dcomplex __CRTDECL atan(_In_ _Dcomplex _X) throw() + { + return catan(_X); + } + + inline _Dcomplex __CRTDECL atanh(_In_ _Dcomplex _X) throw() + { + return catanh(_X); + } + + inline _Dcomplex __CRTDECL cos(_In_ _Dcomplex _X) throw() + { + return ccos(_X); + } + + inline _Dcomplex __CRTDECL cosh(_In_ _Dcomplex _X) throw() + { + return ccosh(_X); + } + + inline _Dcomplex __CRTDECL proj(_In_ _Dcomplex _X) throw() + { + return cproj(_X); + } + + inline _Dcomplex __CRTDECL exp(_In_ _Dcomplex _X) throw() + { + return cexp(_X); + } + + inline _Dcomplex __CRTDECL log(_In_ _Dcomplex _X) throw() + { + return clog(_X); + } + + inline _Dcomplex __CRTDECL log10(_In_ _Dcomplex _X) throw() + { + return clog10(_X); + } + + inline _Dcomplex __CRTDECL pow(_In_ _Dcomplex _X, _In_ _Dcomplex _Y) throw() + { + return cpow(_X, _Y); + } + + inline _Dcomplex __CRTDECL sin(_In_ _Dcomplex _X) throw() + { + return csin(_X); + } + + inline _Dcomplex __CRTDECL sinh(_In_ _Dcomplex _X) throw() + { + return csinh(_X); + } + + inline _Dcomplex __CRTDECL sqrt(_In_ _Dcomplex _X) throw() + { + return csqrt(_X); + } + + inline _Dcomplex __CRTDECL tan(_In_ _Dcomplex _X) throw() + { + return ctan(_X); + } + + inline _Dcomplex __CRTDECL tanh(_In_ _Dcomplex _X) throw() + { + return ctanh(_X); + } + + inline double __CRTDECL abs(_In_ _Dcomplex _X) throw() + { + return cabs(_X); + } + + inline double __CRTDECL arg(_In_ _Dcomplex _X) throw() + { + return carg(_X); + } + + inline double __CRTDECL imag(_In_ _Dcomplex _X) throw() + { + return cimag(_X); + } + + inline double __CRTDECL real(_In_ _Dcomplex _X) throw() + { + return creal(_X); + } + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // float complex overloads + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + inline _Fcomplex __CRTDECL acos(_In_ _Fcomplex _X) throw() + { + return cacosf(_X); + } + + inline _Fcomplex __CRTDECL acosh(_In_ _Fcomplex _X) throw() + { + return cacoshf(_X); + } + + inline _Fcomplex __CRTDECL asin(_In_ _Fcomplex _X) throw() + { + return casinf(_X); + } + + inline _Fcomplex __CRTDECL asinh(_In_ _Fcomplex _X) throw() + { + return casinhf(_X); + } + + inline _Fcomplex __CRTDECL atan(_In_ _Fcomplex _X) throw() + { + return catanf(_X); + } + + inline _Fcomplex __CRTDECL atanh(_In_ _Fcomplex _X) throw() + { + return catanhf(_X); + } + + inline _Fcomplex __CRTDECL conj(_In_ _Fcomplex _X) throw() + { + return conjf(_X); + } + + inline _Fcomplex __CRTDECL cos(_In_ _Fcomplex _X) throw() + { + return ccosf(_X); + } + + inline _Fcomplex __CRTDECL cosh(_In_ _Fcomplex _X) throw() + { + return ccoshf(_X); + } + + inline _Fcomplex __CRTDECL cproj(_In_ _Fcomplex _X) throw() + { + return cprojf(_X); + } + + inline _Fcomplex __CRTDECL proj(_In_ _Fcomplex _X) throw() + { + return cprojf(_X); + } + + inline _Fcomplex __CRTDECL exp(_In_ _Fcomplex _X) throw() + { + return cexpf(_X); + } + + inline _Fcomplex __CRTDECL log(_In_ _Fcomplex _X) throw() + { + return clogf(_X); + } + + inline _Fcomplex __CRTDECL log10(_In_ _Fcomplex _X) throw() + { + return clog10f(_X); + } + + inline float __CRTDECL norm(_In_ _Fcomplex _X) throw() + { + return normf(_X); + } + + inline _Fcomplex __CRTDECL pow(_In_ _Fcomplex _X, _In_ _Fcomplex _Y) throw() + { + return cpowf(_X, _Y); + } + + inline _Fcomplex __CRTDECL sin(_In_ _Fcomplex _X) throw() + { + return csinf(_X); + } + + inline _Fcomplex __CRTDECL sinh(_In_ _Fcomplex _X) throw() + { + return csinhf(_X); + } + + inline _Fcomplex __CRTDECL sqrt(_In_ _Fcomplex _X) throw() + { + return csqrtf(_X); + } + + inline _Fcomplex __CRTDECL tan(_In_ _Fcomplex _X) throw() + { + return ctanf(_X); + } + + inline _Fcomplex __CRTDECL tanh(_In_ _Fcomplex _X) throw() + { + return ctanhf(_X); + } + + inline float __CRTDECL abs(_In_ _Fcomplex _X) throw() + { + return cabsf(_X); + } + + inline float __CRTDECL arg(_In_ _Fcomplex _X) throw() + { + return cargf(_X); + } + + inline float __CRTDECL carg(_In_ _Fcomplex _X) throw() + { + return cargf(_X); + } + + inline float __CRTDECL cimag(_In_ _Fcomplex _X) throw() + { + return cimagf(_X); + } + + inline float __CRTDECL creal(_In_ _Fcomplex _X) throw() + { + return crealf(_X); + } + + inline float __CRTDECL imag(_In_ _Fcomplex _X) throw() + { + return cimagf(_X); + } + + inline float __CRTDECL real(_In_ _Fcomplex _X) throw() + { + return crealf(_X); + } + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // long double complex overloads + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + inline _Lcomplex __CRTDECL acos(_In_ _Lcomplex _X) throw() + { + return cacosl(_X); + } + + inline _Lcomplex __CRTDECL acosh(_In_ _Lcomplex _X) throw() + { + return cacoshl(_X); + } + + inline _Lcomplex __CRTDECL asin(_In_ _Lcomplex _X) throw() + { + return casinl(_X); + } + + inline _Lcomplex __CRTDECL asinh(_In_ _Lcomplex _X) throw() + { + return casinhl(_X); + } + + inline _Lcomplex __CRTDECL atan(_In_ _Lcomplex _X) throw() + { + return catanl(_X); + } + + inline _Lcomplex __CRTDECL atanh(_In_ _Lcomplex _X) throw() + { + return catanhl(_X); + } + + inline _Lcomplex __CRTDECL conj(_In_ _Lcomplex _X) throw() + { + return conjl(_X); + } + + inline _Lcomplex __CRTDECL cos(_In_ _Lcomplex _X) throw() + { + return ccosl(_X); + } + + inline _Lcomplex __CRTDECL cosh(_In_ _Lcomplex _X) throw() + { + return ccoshl(_X); + } + + inline _Lcomplex __CRTDECL cproj(_In_ _Lcomplex _X) throw() + { + return cprojl(_X); + } + + inline _Lcomplex __CRTDECL proj(_In_ _Lcomplex _X) throw() + { + return cprojl(_X); + } + + inline _Lcomplex __CRTDECL exp(_In_ _Lcomplex _X) throw() + { + return cexpl(_X); + } + + inline _Lcomplex __CRTDECL log(_In_ _Lcomplex _X) throw() + { + return clogl(_X); + } + + inline _Lcomplex __CRTDECL log10(_In_ _Lcomplex _X) throw() + { + return clog10l(_X); + } + + inline long double __CRTDECL norm(_In_ _Lcomplex _X) throw() + { + return norml(_X); + } + + inline _Lcomplex __CRTDECL pow(_In_ _Lcomplex _X, _In_ _Lcomplex _Y) throw() + { + return cpowl(_X, _Y); + } + + inline _Lcomplex __CRTDECL sin(_In_ _Lcomplex _X) throw() + { + return csinl(_X); + } + + inline _Lcomplex __CRTDECL sinh(_In_ _Lcomplex _X) throw() + { + return csinhl(_X); + } + + inline _Lcomplex __CRTDECL sqrt(_In_ _Lcomplex _X) throw() + { + return csqrtl(_X); + } + + inline _Lcomplex __CRTDECL tan(_In_ _Lcomplex _X) throw() + { + return ctanl(_X); + } + + inline _Lcomplex __CRTDECL tanh(_In_ _Lcomplex _X) throw() + { + return ctanhl(_X); + } + + inline long double __CRTDECL abs(_In_ _Lcomplex _X) throw() + { + return cabsl(_X); + } + + inline long double __CRTDECL arg(_In_ _Lcomplex _X) throw() + { + return cargl(_X); + } + + inline long double __CRTDECL carg(_In_ _Lcomplex _X) throw() + { + return cargl(_X); + } + + inline long double __CRTDECL cimag(_In_ _Lcomplex _X) throw() + { + return cimagl(_X); + } + + inline long double __CRTDECL creal(_In_ _Lcomplex _X) throw() + { + return creall(_X); + } + + inline long double __CRTDECL imag(_In_ _Lcomplex _X) throw() + { + return cimagl(_X); + } + + inline long double __CRTDECL real(_In_ _Lcomplex _X) throw() + { + return creall(_X); + } + +} // extern "C++" +#endif // __cplusplus + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // (_CRT_HAS_CXX17 == 1) && !defined(_CRT_USE_C_COMPLEX_H) +#endif // _COMPLEX diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/conio.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/conio.h new file mode 100644 index 0000000000000000000000000000000000000000..f8d241fe8ee64b758648a3cf6b75bcc36a7279e0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/conio.h @@ -0,0 +1,504 @@ +// +// conio.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the direct console I/O functions. +// +#pragma once +#ifndef _INC_CONIO // include guard for 3rd party interop +#define _INC_CONIO + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + _Check_return_wat_ + _Success_(_BufferCount > 0) + _DCRTIMP errno_t __cdecl _cgets_s( + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _Out_ size_t* _SizeRead + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + _Success_(return == 0) + errno_t, _cgets_s, + _Out_writes_z_(*_Buffer) char, _Buffer, + _Out_ size_t*, _SizeRead + ) + + _Check_return_opt_ + _DCRTIMP int __cdecl _cputs( + _In_z_ char const* _Buffer + ); + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Narrow Character Formatted Output Functions (Console) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_opt_ + _DCRTIMP int __cdecl __conio_common_vcprintf( + _In_ unsigned __int64 _Options, + _In_z_ _Printf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _DCRTIMP int __cdecl __conio_common_vcprintf_s( + _In_ unsigned __int64 _Options, + _In_z_ _Printf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _DCRTIMP int __cdecl __conio_common_vcprintf_p( + _In_ unsigned __int64 _Options, + _In_z_ _Printf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcprintf_l( + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return __conio_common_vcprintf( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Format, _Locale, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcprintf( + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return _vcprintf_l(_Format, NULL, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcprintf_s_l( + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return __conio_common_vcprintf_s( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Format, _Locale, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcprintf_s( + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return _vcprintf_s_l(_Format, NULL, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcprintf_p_l( + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return __conio_common_vcprintf_p( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Format, _Locale, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcprintf_p( + _In_z_ char const* const _Format, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return _vcprintf_p_l(_Format, NULL, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cprintf_l( + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vcprintf_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cprintf( + _In_z_ _Printf_format_string_ char const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vcprintf_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cprintf_s_l( + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vcprintf_s_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cprintf_s( + _In_z_ _Printf_format_string_ char const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vcprintf_s_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cprintf_p_l( + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vcprintf_p_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cprintf_p( + _In_z_ _Printf_format_string_ char const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vcprintf_p_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Narrow Character Formatted Input Functions (Console) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_opt_ + _DCRTIMP int __cdecl __conio_common_vcscanf( + _In_ unsigned __int64 _Options, + _In_z_ _Scanf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vcscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _vcscanf_l( + _In_z_ _Scanf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return __conio_common_vcscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS, + _Format, _Locale, _ArgList); + } +#endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vcscanf_s) + _CRT_STDIO_INLINE int __CRTDECL _vcscanf( + _In_z_ _Scanf_format_string_params_(1) char const* const _Format, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return _vcscanf_l(_Format, NULL, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcscanf_s_l( + _In_z_ _Scanf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return __conio_common_vcscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, + _Format, _Locale, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcscanf_s( + _In_z_ _Scanf_format_string_params_(1) char const* const _Format, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return _vcscanf_s_l(_Format, NULL, _ArgList); + } +#endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_cscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _cscanf_l( + _In_z_ _Scanf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + + _Result = _vcscanf_l(_Format, _Locale, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_cscanf_s) + _CRT_STDIO_INLINE int __CRTDECL _cscanf( + _In_z_ _Scanf_format_string_ char const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + + _Result = _vcscanf_l(_Format, NULL, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cscanf_s_l( + _In_z_ _Scanf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vcscanf_s_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cscanf_s( + _In_z_ _Scanf_format_string_ char const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vcscanf_s_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + + _DCRTIMP int __cdecl _kbhit(void); + + _Check_return_ _DCRTIMP int __cdecl _getch(void); + _Check_return_ _DCRTIMP int __cdecl _getche(void); + _Check_return_opt_ _DCRTIMP int __cdecl _putch (_In_ int _Ch); + _Check_return_opt_ _DCRTIMP int __cdecl _ungetch(_In_ int _Ch); + + _Check_return_ _DCRTIMP int __cdecl _getch_nolock (void); + _Check_return_ _DCRTIMP int __cdecl _getche_nolock (void); + _Check_return_opt_ _DCRTIMP int __cdecl _putch_nolock (_In_ int _Ch); + _Check_return_opt_ _DCRTIMP int __cdecl _ungetch_nolock(_In_ int _Ch); + + #if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + // Suppress double-deprecation warnings: + #pragma warning(push) + #pragma warning(disable: 4141) + + _Success_(return != 0) + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_cgets) _CRT_INSECURE_DEPRECATE(_cgets_s) + _DCRTIMP char* __cdecl cgets( + _At_(&_Buffer[0], _In_reads_(1)) + _At_(&_Buffer[1], _Out_writes_(1)) + _At_(&_Buffer[2], _Post_z_ _Out_writes_to_(_Buffer[0], _Buffer[1])) + char* _Buffer + ); + + #pragma warning(pop) + + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_cputs) + _DCRTIMP int __cdecl cputs( + _In_z_ char const* _String + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_getch) + _DCRTIMP int __cdecl getch(void); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_getche) + _DCRTIMP int __cdecl getche(void); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_kbhit) + _DCRTIMP int __cdecl kbhit(void); + + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_putch) + _DCRTIMP int __cdecl putch( + _In_ int _Ch + ); + + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_ungetch) + _DCRTIMP int __cdecl ungetch( + _In_ int _Ch + ); + + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_cprintf) + _CRT_STDIO_INLINE int __CRTDECL cprintf( + _In_z_ _Printf_format_string_ char const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vcprintf_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_cscanf) + _CRT_STDIO_INLINE int __CRTDECL cscanf( + _In_z_ _Scanf_format_string_ char const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + + _Result = _vcscanf_l(_Format, NULL, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } +#endif + + #endif // _CRT_INTERNAL_NONSTDC_NAMES + +_CRT_END_C_HEADER + +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_CONIO diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt.h new file mode 100644 index 0000000000000000000000000000000000000000..4646a85c9146fcabbe978640ebd90478f6e2fa93 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt.h @@ -0,0 +1,2114 @@ +// +// corecrt.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Declarations used throughout the CoreCRT library. +// +#pragma once + +#include + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Windows API Partitioning and ARM Desktop Support +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifndef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + #ifdef WINAPI_FAMILY + #include + #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + #define _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + #else + #ifdef WINAPI_FAMILY_PHONE_APP + #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP + #define _CRT_USE_WINAPI_FAMILY_PHONE_APP + #endif + #endif + + #ifdef WINAPI_FAMILY_GAMES + #if WINAPI_FAMILY == WINAPI_FAMILY_GAMES + #define _CRT_USE_WINAPI_FAMILY_GAMES + #endif + #endif + #endif + #else + #define _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + #endif +#endif + +#ifndef _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE + #define _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE 1 +#endif + +#ifndef _CRT_BUILD_DESKTOP_APP + #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + #define _CRT_BUILD_DESKTOP_APP 1 + #else + #define _CRT_BUILD_DESKTOP_APP 0 + #endif +#endif + +// Verify that the ARM Desktop SDK is available when building an ARM Desktop app +#ifdef _M_ARM + #if _CRT_BUILD_DESKTOP_APP && !_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE + #error Compiling Desktop applications for the ARM platform is not supported. + #endif +#endif + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Warning Suppression +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + +// C4412: function signature contains type '_locale_t'; +// C++ objects are unsafe to pass between pure code and mixed or native. (/Wall) +#ifndef _UCRT_DISABLED_WARNING_4412 + #ifdef _M_CEE_PURE + #define _UCRT_DISABLED_WARNING_4412 4412 + #else + #define _UCRT_DISABLED_WARNING_4412 + #endif +#endif + +// Use _UCRT_EXTRA_DISABLED_WARNINGS to add additional warning suppressions to UCRT headers. +#ifndef _UCRT_EXTRA_DISABLED_WARNINGS + #define _UCRT_EXTRA_DISABLED_WARNINGS +#endif + +// C4324: structure was padded due to __declspec(align()) (/W4) +// C4514: unreferenced inline function has been removed (/Wall) +// C4574: 'MACRO' is defined to be '0': did you mean to use '#if MACRO'? (/Wall) +// C4668: '__cplusplus' is not defined as a preprocessor macro (/Wall) +// C4710: function not inlined (/Wall) +// C4793: 'function' is compiled as native code (/Wall and /W1 under /clr:pure) +// C4820: padding after data member (/Wall) +// C4995: name was marked #pragma deprecated +// C4996: __declspec(deprecated) +// C28719: Banned API, use a more robust and secure replacement. +// C28726: Banned or deprecated API, use a more robust and secure replacement. +// C28727: Banned API. +#ifndef _UCRT_DISABLED_WARNINGS + #define _UCRT_DISABLED_WARNINGS 4324 _UCRT_DISABLED_WARNING_4412 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727 _UCRT_EXTRA_DISABLED_WARNINGS +#endif + +#ifndef _UCRT_DISABLE_CLANG_WARNINGS + #ifdef __clang__ + // warning: declspec(deprecated) [-Wdeprecated-declarations] + // warning: __declspec attribute 'allocator' is not supported [-Wignored-attributes] + // warning: '#pragma optimize' is not supported [-Wignored-pragma-optimize] + // warning: unknown pragma ignored [-Wunknown-pragmas] + #define _UCRT_DISABLE_CLANG_WARNINGS \ + _Pragma("clang diagnostic push") \ + _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") \ + _Pragma("clang diagnostic ignored \"-Wignored-attributes\"") \ + _Pragma("clang diagnostic ignored \"-Wignored-pragma-optimize\"") \ + _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"") + #else // __clang__ + #define _UCRT_DISABLE_CLANG_WARNINGS + #endif // __clang__ +#endif // _UCRT_DISABLE_CLANG_WARNINGS + +#ifndef _UCRT_RESTORE_CLANG_WARNINGS + #ifdef __clang__ + #define _UCRT_RESTORE_CLANG_WARNINGS _Pragma("clang diagnostic pop") + #else // __clang__ + #define _UCRT_RESTORE_CLANG_WARNINGS + #endif // __clang__ +#endif // _UCRT_RESTORE_CLANG_WARNINGS + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Annotation Macros +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifndef _ACRTIMP + #if defined _CRTIMP && !defined _VCRT_DEFINED_CRTIMP + #define _ACRTIMP _CRTIMP + #elif !defined _CORECRT_BUILD && defined _DLL + #define _ACRTIMP __declspec(dllimport) + #else + #define _ACRTIMP + #endif +#endif + +// If you need the ability to remove __declspec(import) from an API, to support static replacement, +// declare the API using _ACRTIMP_ALT instead of _ACRTIMP. +#ifndef _ACRTIMP_ALT + #define _ACRTIMP_ALT _ACRTIMP +#endif + +#ifndef _DCRTIMP + #if defined _CRTIMP && !defined _VCRT_DEFINED_CRTIMP + #define _DCRTIMP _CRTIMP + #elif !defined _CORECRT_BUILD && defined _DLL + #define _DCRTIMP __declspec(dllimport) + #else + #define _DCRTIMP + #endif +#endif + +#if defined _CRT_SUPPRESS_RESTRICT || defined _CORECRT_BUILD + #define _CRTRESTRICT +#else + #define _CRTRESTRICT __declspec(restrict) +#endif + +#if defined _MSC_VER && _MSC_VER >= 1900 && !defined _CORECRT_BUILD + #define _CRTALLOCATOR __declspec(allocator) +#else + #define _CRTALLOCATOR +#endif + +#if defined _M_CEE && defined _M_X64 + // This is only needed when managed code is calling the native APIs, + // targeting the 64-bit runtime. + #define _CRT_JIT_INTRINSIC __declspec(jitintrinsic) +#else + #define _CRT_JIT_INTRINSIC +#endif + +// __declspec(guard(overflow)) enabled by /sdl compiler switch for CRT allocators +#ifdef _GUARDOVERFLOW_CRT_ALLOCATORS + #define _CRT_GUARDOVERFLOW __declspec(guard(overflow)) +#else + #define _CRT_GUARDOVERFLOW +#endif + +#if defined _DLL && (defined _M_HYBRID || defined _M_ARM64EC) && (defined _CORECRT_BUILD || defined _VCRT_BUILD) + #define _CRT_HYBRIDPATCHABLE __declspec(hybrid_patchable) +#else + #define _CRT_HYBRIDPATCHABLE +#endif + +// The CLR requires code calling other SecurityCritical code or using SecurityCritical types +// to be marked as SecurityCritical. +// _CRT_SECURITYCRITICAL_ATTRIBUTE covers this for internal function definitions. +// _CRT_INLINE_PURE_SECURITYCRITICAL_ATTRIBUTE is for inline pure functions defined in the header. +// This is clr:pure-only because for mixed mode we compile inline functions as native. +#ifdef _M_CEE_PURE + #define _CRT_INLINE_PURE_SECURITYCRITICAL_ATTRIBUTE [System::Security::SecurityCritical] +#else + #define _CRT_INLINE_PURE_SECURITYCRITICAL_ATTRIBUTE +#endif + +#ifndef _CONST_RETURN + #ifdef __cplusplus + #define _CONST_RETURN const + #define _CRT_CONST_CORRECT_OVERLOADS + #else + #define _CONST_RETURN + #endif +#endif + +#define _WConst_return _CONST_RETURN // For backwards compatibility + +#ifndef _CRT_ALIGN + #ifdef __midl + #define _CRT_ALIGN(x) + #else + #define _CRT_ALIGN(x) __declspec(align(x)) + #endif +#endif + +#if defined _PREFAST_ && defined _CA_SHOULD_CHECK_RETURN + #define _Check_return_opt_ _Check_return_ +#else + #define _Check_return_opt_ +#endif + +#if defined _PREFAST_ && defined _CA_SHOULD_CHECK_RETURN_WER + #define _Check_return_wat_ _Check_return_ +#else + #define _Check_return_wat_ +#endif + +#if !defined __midl && !defined MIDL_PASS && defined _PREFAST_ + #define __crt_typefix(ctype) __declspec("SAL_typefix(" _CRT_STRINGIZE(ctype) ")") +#else + #define __crt_typefix(ctype) +#endif + +#ifndef _CRT_NOEXCEPT + #ifdef __cplusplus + #define _CRT_NOEXCEPT noexcept + #else + #define _CRT_NOEXCEPT + #endif +#endif + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Miscellaneous Stuff +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifdef __cplusplus +extern "C++" +{ + template + struct _CrtEnableIf; + + template + struct _CrtEnableIf + { + typedef _Ty _Type; + }; +} +#endif + +#if defined __cplusplus + typedef bool __crt_bool; +#elif defined __midl + // MIDL understands neither bool nor _Bool. Use char as a best-fit + // replacement (the differences won't matter in practice). + typedef char __crt_bool; +#else + typedef _Bool __crt_bool; +#endif + +#define _ARGMAX 100 +#define _TRUNCATE ((size_t)-1) +#define _CRT_INT_MAX 2147483647 +#define _CRT_SIZE_MAX ((size_t)-1) + +#define __FILEW__ _CRT_WIDE(__FILE__) +#define __FUNCTIONW__ _CRT_WIDE(__FUNCTION__) + +#ifdef __cplusplus + #ifndef _STATIC_ASSERT + #define _STATIC_ASSERT(expr) static_assert((expr), #expr) + #endif +#else + #ifndef _STATIC_ASSERT + #ifdef __clang__ + #define _STATIC_ASSERT(expr) _Static_assert((expr), #expr) + #else + #define _STATIC_ASSERT(expr) typedef char __static_assert_t[(expr) != 0] + #endif + #endif +#endif + +#ifndef NULL + #ifdef __cplusplus + #define NULL 0 + #else + #define NULL ((void *)0) + #endif +#endif + +// CRT headers are included into some kinds of source files where only data type +// definitions and macro definitions are required but function declarations and +// inline function definitions are not. These files include assembly files, IDL +// files, and resource files. The tools that process these files often have a +// limited ability to process C and C++ code. The _CRT_FUNCTIONS_REQUIRED macro +// is defined to 1 when we are compiling a file that actually needs functions to +// be declared (and defined, where applicable), and to 0 when we are compiling a +// file that does not. This allows us to suppress declarations and definitions +// that are not compilable with the aforementioned tools. +#if !defined _CRT_FUNCTIONS_REQUIRED + #if defined __assembler || defined __midl || defined RC_INVOKED + #define _CRT_FUNCTIONS_REQUIRED 0 + #else + #define _CRT_FUNCTIONS_REQUIRED 1 + #endif +#endif + +#if !defined _NO_INLINING && !_CRT_FUNCTIONS_REQUIRED + #define _NO_INLINING // Suppress inlines +#endif + +#ifndef _CRT_UNUSED + #define _CRT_UNUSED(x) (void)x +#endif + +#ifndef _CRT_HAS_CXX17 + #ifdef _MSVC_LANG + #if _MSVC_LANG > 201402 + #define _CRT_HAS_CXX17 1 + #else /* _MSVC_LANG > 201402 */ + #define _CRT_HAS_CXX17 0 + #endif /* _MSVC_LANG > 201402 */ + #else /* _MSVC_LANG */ + #if defined __cplusplus && __cplusplus > 201402 + #define _CRT_HAS_CXX17 1 + #else /* __cplusplus > 201402 */ + #define _CRT_HAS_CXX17 0 + #endif /* __cplusplus > 201402 */ + #endif /* _MSVC_LANG */ +#endif /* _CRT_HAS_CXX17 */ + +#ifndef _CRT_HAS_C11 + #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L + #define _CRT_HAS_C11 1 + #else /* defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L */ + #define _CRT_HAS_C11 0 + #endif /* defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L */ +#endif /* _CRT_HAS_C11 */ + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Invalid Parameter Handler +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifdef _DEBUG + _ACRTIMP void __cdecl _invalid_parameter( + _In_opt_z_ wchar_t const*, + _In_opt_z_ wchar_t const*, + _In_opt_z_ wchar_t const*, + _In_ unsigned int, + _In_ uintptr_t + ); +#endif + +_ACRTIMP_ALT void __cdecl _invalid_parameter_noinfo(void); +_ACRTIMP __declspec(noreturn) void __cdecl _invalid_parameter_noinfo_noreturn(void); + +__declspec(noreturn) +_ACRTIMP void __cdecl _invoke_watson( + _In_opt_z_ wchar_t const* _Expression, + _In_opt_z_ wchar_t const* _FunctionName, + _In_opt_z_ wchar_t const* _FileName, + _In_ unsigned int _LineNo, + _In_ uintptr_t _Reserved); + +#ifndef _CRT_SECURE_INVALID_PARAMETER + #ifdef _DEBUG + #define _CRT_SECURE_INVALID_PARAMETER(expr) \ + ::_invalid_parameter(_CRT_WIDE(#expr), __FUNCTIONW__, __FILEW__, __LINE__, 0) + #else + // By default, _CRT_SECURE_INVALID_PARAMETER in retail invokes + // _invalid_parameter_noinfo_noreturn(), which is marked + // __declspec(noreturn) and does not return control to the application. + // Even if _set_invalid_parameter_handler() is used to set a new invalid + // parameter handler which does return control to the application, + // _invalid_parameter_noinfo_noreturn() will terminate the application + // and invoke Watson. You can overwrite the definition of + // _CRT_SECURE_INVALID_PARAMETER if you need. + // + // _CRT_SECURE_INVALID_PARAMETER is used in the Standard C++ Libraries + // and the SafeInt library. + #define _CRT_SECURE_INVALID_PARAMETER(expr) \ + ::_invalid_parameter_noinfo_noreturn() + #endif +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Deprecation and Warnings +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#define _CRT_WARNING_MESSAGE(NUMBER, MESSAGE) \ + __FILE__ "(" _CRT_STRINGIZE(__LINE__) "): warning " NUMBER ": " MESSAGE + +#if ( defined _CRT_DECLARE_NONSTDC_NAMES && _CRT_DECLARE_NONSTDC_NAMES) || \ + (!defined _CRT_DECLARE_NONSTDC_NAMES && !__STDC__ ) + #define _CRT_INTERNAL_NONSTDC_NAMES 1 +#else + #define _CRT_INTERNAL_NONSTDC_NAMES 0 +#endif + +#if defined _CRT_NONSTDC_NO_DEPRECATE && !defined _CRT_NONSTDC_NO_WARNINGS + #define _CRT_NONSTDC_NO_WARNINGS +#endif + +#ifndef _CRT_NONSTDC_DEPRECATE + #ifdef _CRT_NONSTDC_NO_WARNINGS + #define _CRT_NONSTDC_DEPRECATE(_NewName) + #else + #define _CRT_NONSTDC_DEPRECATE(_NewName) _CRT_DEPRECATE_TEXT( \ + "The POSIX name for this item is deprecated. Instead, use the ISO C " \ + "and C++ conformant name: " #_NewName ". See online help for details.") + #endif +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Managed CRT Support +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifndef _PGLOBAL + #ifdef _M_CEE + #ifdef __cplusplus_cli + #define _PGLOBAL __declspec(process) + #else + #define _PGLOBAL + #endif + #else + #define _PGLOBAL + #endif +#endif + +#ifndef _AGLOBAL + #ifdef _M_CEE + #define _AGLOBAL __declspec(appdomain) + #else + #define _AGLOBAL + #endif +#endif + +#if defined _M_CEE && !defined _M_CEE_PURE + #define _M_CEE_MIXED +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// SecureCRT Configuration +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if defined _CRTBLD || defined _CORECRT_BUILD || defined _VCRT_BUILD + // Disable C++ overloads internally: + #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 0 + #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT 0 + #define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 0 +#endif + +#if !_CRT_FUNCTIONS_REQUIRED + // If we don't require function declarations at all, we need not define the + // overloads (MIDL and RC do not need the C++ overloads). + #undef _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES + #undef _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT + #undef _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES + #undef _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY + #undef _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY + + #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 0 + #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT 0 + #define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 0 + #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY 0 + #define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY 0 +#endif + +#define __STDC_SECURE_LIB__ 200411L +#define __GOT_SECURE_LIB__ __STDC_SECURE_LIB__ // For backwards compatibility + +#ifndef __STDC_WANT_SECURE_LIB__ + #define __STDC_WANT_SECURE_LIB__ 1 +#endif + +#if !__STDC_WANT_SECURE_LIB__ && !defined _CRT_SECURE_NO_WARNINGS + #define _CRT_SECURE_NO_WARNINGS +#endif + +#ifndef RC_INVOKED + #if defined _CRT_SECURE_NO_DEPRECATE_GLOBALS && !defined _CRT_SECURE_NO_WARNINGS_GLOBALS + #define _CRT_SECURE_NO_WARNINGS_GLOBALS + #endif +#endif + +#ifndef _CRT_INSECURE_DEPRECATE_GLOBALS + #ifdef RC_INVOKED + #define _CRT_INSECURE_DEPRECATE_GLOBALS(replacement) + #else + #ifdef _CRT_SECURE_NO_WARNINGS_GLOBALS + #define _CRT_INSECURE_DEPRECATE_GLOBALS(replacement) + #else + #define _CRT_INSECURE_DEPRECATE_GLOBALS(replacement) _CRT_INSECURE_DEPRECATE(replacement) + #endif + #endif +#endif + +#if defined _CRT_MANAGED_HEAP_NO_DEPRECATE && !defined _CRT_MANAGED_HEAP_NO_WARNINGS + #define _CRT_MANAGED_HEAP_NO_WARNINGS +#endif + +#define _SECURECRT_FILL_BUFFER_PATTERN 0xFE + +#if defined _CRT_OBSOLETE_NO_DEPRECATE && !defined _CRT_OBSOLETE_NO_WARNINGS + #define _CRT_OBSOLETE_NO_WARNINGS +#endif + +#ifndef _CRT_OBSOLETE + #ifdef _CRT_OBSOLETE_NO_WARNINGS + #define _CRT_OBSOLETE(_NewItem) + #else + #define _CRT_OBSOLETE(_NewItem) _CRT_DEPRECATE_TEXT( \ + "This function or variable has been superceded by newer library " \ + "or operating system functionality. Consider using " #_NewItem " " \ + "instead. See online help for details.") + #endif +#endif + +#ifndef RC_INVOKED + #ifndef _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES + #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 0 + #else + #if !__STDC_WANT_SECURE_LIB__ && _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES + #error Cannot use Secure CRT C++ overloads when __STDC_WANT_SECURE_LIB__ is 0 + #endif + #endif + + #ifndef _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT + // _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT is ignored if + // _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES is set to 0 + #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT 0 + #else + #if !__STDC_WANT_SECURE_LIB__ && _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT + #error Cannot use Secure CRT C++ overloads when __STDC_WANT_SECURE_LIB__ is 0 + #endif + #endif + + #ifndef _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES + #if __STDC_WANT_SECURE_LIB__ + #define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 1 + #else + #define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 0 + #endif + #else + #if !__STDC_WANT_SECURE_LIB__ && _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES + #error Cannot use Secure CRT C++ overloads when __STDC_WANT_SECURE_LIB__ is 0 + #endif + #endif + + #ifndef _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY + #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY 0 + #else + #if !__STDC_WANT_SECURE_LIB__ && _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY + #error Cannot use Secure CRT C++ overloads when __STDC_WANT_SECURE_LIB__ is 0 + #endif + #endif + + #ifndef _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY + #define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY 0 + #else + #if !__STDC_WANT_SECURE_LIB__ && _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY + #error Cannot use Secure CRT C++ overloads when __STDC_WANT_SECURE_LIB__ is 0 + #endif + #endif +#endif + +#ifndef _CRT_SECURE_CPP_NOTHROW + #define _CRT_SECURE_CPP_NOTHROW throw() +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Basic Types +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +typedef int errno_t; +typedef unsigned short wint_t; +typedef unsigned short wctype_t; +typedef long __time32_t; +typedef __int64 __time64_t; + +typedef struct __crt_locale_data_public +{ + unsigned short const* _locale_pctype; + _Field_range_(1, 2) int _locale_mb_cur_max; + unsigned int _locale_lc_codepage; +} __crt_locale_data_public; + +typedef struct __crt_locale_pointers +{ + struct __crt_locale_data* locinfo; + struct __crt_multibyte_data* mbcinfo; +} __crt_locale_pointers; + +typedef __crt_locale_pointers* _locale_t; + +typedef struct _Mbstatet +{ // state of a multibyte translation + unsigned long _Wchar; + unsigned short _Byte, _State; +} _Mbstatet; + +typedef _Mbstatet mbstate_t; + +#if defined _USE_32BIT_TIME_T && defined _WIN64 + #error You cannot use 32-bit time_t (_USE_32BIT_TIME_T) with _WIN64 +#endif + +// There are certain functions in the UCRT (e.g. `time`) that used to have a +// non-standard `static` declaration. This is incompatible with C++ modules as they cannot +// export functions with internal linkage. +// To bring these UCRT functions back to conformance, we drop the `static` keyword from +// MSVC toolset version 19.50 and onwards. +// +// NOTE: +// There is **nothing** in the compiler (i.e. _MSC_VER) version 19.50 that enables this change. +// The choice to guard the change behind a specific `_MSC_VER` value is simply to allow us +// to ship this change without waiting for a new major version of the Windows SDK. +// Ultimately, dropping `static` from the UCRT risks introducing novel link-time errors for projects +// that mix headers from multiple CRT versions, use forward declarations of CRT functions, etc. +// +// A user may opt back in to the old behavior by setting the macro `_STATIC_INLINE_UCRT_FUNCTIONS` to `1`. +// The macro `_STATIC_INLINE_UCRT_FUNCTIONS` is always defined to consumers, as either `0` (implies conformance) +// or `1` (implies backwards compatibility). + +// Ensure that `_STATIC_INLINE_UCRT_FUNCTIONS` is always defined. +// The STL needs this to know if it's safe to export UCRT functions through C++ modules. +#ifndef _STATIC_INLINE_UCRT_FUNCTIONS + #if defined _MSC_VER && _MSC_VER >= 1950 + #define _STATIC_INLINE_UCRT_FUNCTIONS 0 + #else + #define _STATIC_INLINE_UCRT_FUNCTIONS 1 + #endif +#endif // !defined _STATIC_INLINE_UCRT_FUNCTIONS + +// Ensure `_STATIC_INLINE_UCRT_FUNCTIONS` is a binary macro +#if _STATIC_INLINE_UCRT_FUNCTIONS != 0 && _STATIC_INLINE_UCRT_FUNCTIONS != 1 + #error _STATIC_INLINE_UCRT_FUNCTIONS was defined to be a value other than 0 (i.e. conformance mode) or 1 (i.e. backwards compatibility mode) +#endif // _STATIC_INLINE_UCRT_FUNCTIONS != 0 && _STATIC_INLINE_UCRT_FUNCTIONS != 1 + +// Define `_CRT_NONSTANDARD_STATIC` based on `_STATIC_INLINE_UCRT_FUNCTIONS` +#if _STATIC_INLINE_UCRT_FUNCTIONS == 0 + #define _CRT_NONSTANDARD_STATIC +#else // ^^^ _STATIC_INLINE_UCRT_FUNCTIONS == 0 // _STATIC_INLINE_UCRT_FUNCTIONS == 1 vvv + #define _CRT_NONSTANDARD_STATIC static +#endif // ^^^ _STATIC_INLINE_UCRT_FUNCTIONS == 1 + +#if defined _VCRT_BUILD || defined _CORECRT_BUILD + #define _CRT_NO_TIME_T +#endif + +#ifndef _CRT_NO_TIME_T + #ifdef _USE_32BIT_TIME_T + typedef __time32_t time_t; + #else + typedef __time64_t time_t; + #endif +#endif + +// Indicate that these common types are defined +#ifndef _TIME_T_DEFINED + #define _TIME_T_DEFINED +#endif + +#if __STDC_WANT_SECURE_LIB__ + typedef size_t rsize_t; +#endif + + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// C++ Secure Overload Generation Macros +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifndef RC_INVOKED + #if defined __cplusplus && _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(_ReturnType, _FuncName, _DstType, _Dst) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size]) _CRT_SECURE_CPP_NOTHROW \ + { \ + return _FuncName(_Dst, _Size); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size], _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return _FuncName(_Dst, _Size, _TArg1); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return _FuncName(_Dst, _Size, _TArg1, _TArg2); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return _FuncName(_Dst, _Size, _TArg1, _TArg2, _TArg3); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_4(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4, _TArg4) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4) _CRT_SECURE_CPP_NOTHROW \ + { \ + return _FuncName(_Dst, _Size, _TArg1, _TArg2, _TArg3, _TArg4); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(_ReturnType, _FuncName, _HType1, _HArg1, _DstType, _Dst, _TType1, _TArg1) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _DstType (&_Dst)[_Size], _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return _FuncName(_HArg1, _Dst, _Size, _TArg1); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_2(_ReturnType, _FuncName, _HType1, _HArg1, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _DstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return _FuncName(_HArg1, _Dst, _Size, _TArg1, _TArg2); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_3(_ReturnType, _FuncName, _HType1, _HArg1, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _DstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return _FuncName(_HArg1, _Dst, _Size, _TArg1, _TArg2, _TArg3); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_2_0(_ReturnType, _FuncName, _HType1, _HArg1, _HType2, _HArg2, _DstType, _Dst) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _HType2 _HArg2, _DstType (&_Dst)[_Size]) _CRT_SECURE_CPP_NOTHROW \ + { \ + return _FuncName(_HArg1, _HArg2, _Dst, _Size); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1_ARGLIST(_ReturnType, _FuncName, _VFuncName, _DstType, _Dst, _TType1, _TArg1) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size], _TType1 _TArg1, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg1); \ + return _VFuncName(_Dst, _Size, _TArg1, _ArgList); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2_ARGLIST(_ReturnType, _FuncName, _VFuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg2); \ + return _VFuncName(_Dst, _Size, _TArg1, _TArg2, _ArgList); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_SPLITPATH(_ReturnType, _FuncName, _DstType, _Src) \ + extern "C++" \ + { \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName( \ + _In_z_ _DstType const* _Src, \ + _Post_z_ _DstType (&_Drive)[_DriveSize], \ + _Post_z_ _DstType (&_Dir)[_DirSize], \ + _Post_z_ _DstType (&_Name)[_NameSize], \ + _Post_z_ _DstType (&_Ext)[_ExtSize] \ + ) _CRT_SECURE_CPP_NOTHROW \ + { \ + return _FuncName(_Src, _Drive, _DriveSize, _Dir, _DirSize, _Name, _NameSize, _Ext, _ExtSize); \ + } \ + } + + #else // ^^^ _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES ^^^ // vvv !_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES vvv // + + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(_ReturnType, _FuncName, _DstType, _Dst) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_4(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4, _TArg4) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1(_ReturnType, _FuncName, _HType1, _HArg1, _DstType, _Dst, _TType1, _TArg1) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_2(_ReturnType, _FuncName, _HType1, _HArg1, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_3(_ReturnType, _FuncName, _HType1, _HArg1, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_2_0(_ReturnType, _FuncName, _HType1, _HArg1, _HType2, _HArg2, _DstType, _Dst) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1_ARGLIST(_ReturnType, _FuncName, _VFuncName, _DstType, _Dst, _TType1, _TArg1) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2_ARGLIST(_ReturnType, _FuncName, _VFuncName, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + #define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_SPLITPATH(_ReturnType, _FuncName, _DstType, _Src) + + #endif // !_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES +#endif + + + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _SalAttributeDst, _DstType, _Dst) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_4(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4, _TArg4) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_4_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4, _TArg4) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _HType1, _HArg1, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _HType1, _HArg1, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_2_0(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _HType1, _HArg1, _HType2, _HArg2, _SalAttributeDst, _DstType, _Dst) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_2_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _HType1, _HArg1, _HType2, _HArg2, _SalAttributeDst, _DstType, _Dst) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _FuncName##_s, _VFuncName, _VFuncName##_s, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _VFuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_SIZE(_DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_SIZE(_DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_SIZE_EX(_DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + + + +#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_0(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst) \ + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _SalAttributeDst, _DstType, _Dst) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _SalAttributeDst, _DstType, _DstType, _Dst, _TType1, _TArg1) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_4(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4, _TArg4) \ + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_4_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4, _TArg4) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_1_1(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _HType1, _HArg1, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_1_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _HType1, _HArg1, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_2_0(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _HType1, _HArg1, _HType2, _HArg2, _SalAttributeDst, _DstType, _Dst) \ + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_2_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _FuncName##_s, _HType1, _HArg1, _HType2, _HArg2, _SalAttributeDst, _DstType, _Dst) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_ARGLIST(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _VFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, __cdecl, _FuncName, _FuncName##_s, _VFuncName, _VFuncName##_s, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE(_DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + +#define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE(_DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE_EX(_DeclSpec, _FuncName, _FuncName##_s, _DstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// C++ Standard Overload Generation Macros +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifndef RC_INVOKED + #if defined __cplusplus && _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES + + #define __RETURN_POLICY_SAME(_FunctionCall, _Dst) return (_FunctionCall) + #define __RETURN_POLICY_DST(_FunctionCall, _Dst) return ((_FunctionCall) == 0 ? _Dst : 0) + #define __RETURN_POLICY_VOID(_FunctionCall, _Dst) (_FunctionCall); return + #define __EMPTY_DECLSPEC + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_SalAttributeDst _DstType *_Dst) \ + { \ + _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst); \ + return _FuncName(_Dst); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst)); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst)); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size]) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, _Size), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1]) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, 1), _Dst); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0_CGETS(_ReturnType, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_SalAttributeDst _DstType *_Dst) \ + { \ + _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst); \ + return _FuncName(_Dst); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst)); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst)); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) \ + _ReturnType __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size]) _CRT_SECURE_CPP_NOTHROW \ + { \ + size_t _SizeRead = 0; \ + errno_t _Err = _FuncName##_s(_Dst + 2, (_Size - 2) < ((size_t)_Dst[0]) ? (_Size - 2) : ((size_t)_Dst[0]), &_SizeRead); \ + _Dst[1] = (_DstType)(_SizeRead); \ + return (_Err == 0 ? _Dst + 2 : 0); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1]) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName((_DstType *)_Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) \ + _ReturnType __CRTDECL _FuncName<2>(_DstType (&_Dst)[2]) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName((_DstType *)_Dst); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1) \ + { \ + _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1); \ + return _FuncName(_Dst, _TArg1); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst, _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst, _TArg1); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_SecureDstType (&_Dst)[_Size], _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, _Size, _TArg1), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, 1, _TArg1), _Dst); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2); \ + return _FuncName(_Dst, _TArg1, _TArg2); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst, _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst, _TArg1, _TArg2); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_SecureDstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, _Size, _TArg1, _TArg2), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, 1, _TArg1, _TArg2), _Dst); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) \ + { \ + _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3); \ + return _FuncName(_Dst, _TArg1, _TArg2, _TArg3); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _TArg3); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _TArg3); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst, _TArg1, _TArg2, _TArg3); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_SecureDstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, _Size, _TArg1, _TArg2, _TArg3), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, 1, _TArg1, _TArg2, _TArg3), _Dst); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_4_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4, _TArg4) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4) \ + { \ + _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4); \ + return _FuncName(_Dst, _TArg1, _TArg2, _TArg3, _TArg4); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _TArg3, _TArg4); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _TArg3, _TArg4); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst, _TArg1, _TArg2, _TArg3, _TArg4); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, _Size, _TArg1, _TArg2, _TArg3, _TArg4), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, 1, _TArg1, _TArg2, _TArg3, _TArg4), _Dst); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_HType1 _HArg1, _SalAttributeDst _DstType *_Dst, _TType1 _TArg1) \ + { \ + _ReturnType __cdecl _FuncName(_HType1 _HArg1, _SalAttributeDst _DstType *_Dst, _TType1 _TArg1); \ + return _FuncName(_HArg1, _Dst, _TArg1); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _T &_Dst, _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_HArg1, static_cast<_DstType *>(_Dst), _TArg1); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, const _T &_Dst, _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_HArg1, static_cast<_DstType *>(_Dst), _TArg1); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _SalAttributeDst _DstType * &_Dst, _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_HArg1, _Dst, _TArg1); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _DstType (&_Dst)[_Size], _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_HArg1, _Dst, _Size, _TArg1), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_HType1 _HArg1, _DstType (&_Dst)[1], _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_HArg1, _Dst, 1, _TArg1), _Dst); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_2_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _HType2, _HArg2, _SalAttributeDst, _DstType, _Dst) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_HType1 _HArg1, _HType2 _HArg2, _SalAttributeDst _DstType *_Dst) \ + { \ + _ReturnType __cdecl _FuncName(_HType1 _HArg1, _HType2 _HArg2, _SalAttributeDst _DstType *_Dst); \ + return _FuncName(_HArg1, _HArg2, _Dst); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _HType2 _HArg2, _T &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_HArg1, _HArg2, static_cast<_DstType *>(_Dst)); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _HType2 _HArg2, const _T &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_HArg1, _HArg2, static_cast<_DstType *>(_Dst)); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _HType2 _HArg2, _SalAttributeDst _DstType * &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_HArg1, _HArg2, _Dst); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_HType1 _HArg1, _HType2 _HArg2, _DstType (&_Dst)[_Size]) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_HArg1, _HArg2, _Dst, _Size), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_HType1 _HArg1, _HType2 _HArg2, _DstType (&_Dst)[1]) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_HArg1, _HArg2, _Dst, 1), _Dst); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _SecureFuncName, _VFuncName, _SecureVFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, va_list _ArgList) \ + { \ + _ReturnType _CC _VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, va_list _ArgList); \ + return _VFuncName(_Dst, _TArg1, _ArgList); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg1); \ + return __insecure_##_VFuncName(static_cast<_DstType *>(_Dst), _TArg1, _ArgList); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg1); \ + return __insecure_##_VFuncName(static_cast<_DstType *>(_Dst), _TArg1, _ArgList); \ + } \ + \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst, _TType1 _TArg1, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg1); \ + return __insecure_##_VFuncName(_Dst, _TArg1, _ArgList); \ + } \ + \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_DstType (&_Dst)[_Size], _TType1 _TArg1, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg1); \ + _ReturnPolicy(_SecureVFuncName(_Dst, _Size, _TArg1, _ArgList), _Dst); \ + } \ + \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg1); \ + _ReturnPolicy(_SecureVFuncName(_Dst, 1, _TArg1, _ArgList), _Dst); \ + } \ + \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) \ + _ReturnType __CRTDECL _VFuncName(_T &_Dst, _TType1 _TArg1, va_list _ArgList) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_VFuncName(static_cast<_DstType *>(_Dst), _TArg1, _ArgList); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) \ + _ReturnType __CRTDECL _VFuncName(const _T &_Dst, _TType1 _TArg1, va_list _ArgList) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_VFuncName(static_cast<_DstType *>(_Dst), _TArg1, _ArgList); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) \ + _ReturnType __CRTDECL _VFuncName(_SalAttributeDst _DstType *&_Dst, _TType1 _TArg1, va_list _ArgList) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_VFuncName(_Dst, _TArg1, _ArgList); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _VFuncName(_DstType (&_Dst)[_Size], _TType1 _TArg1, va_list _ArgList) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureVFuncName(_Dst, _Size, _TArg1, _ArgList), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) \ + _ReturnType __CRTDECL _VFuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, va_list _ArgList) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureVFuncName(_Dst, 1, _TArg1, _ArgList), _Dst); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SecureVFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, va_list _ArgList) \ + { \ + _ReturnType _CC _VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, va_list _ArgList); \ + return _VFuncName(_Dst, _TArg1, _TArg2, _ArgList); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1, _TType2 _TArg2, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg2); \ + return __insecure_##_VFuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _ArgList); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1, _TType2 _TArg2, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg2); \ + return __insecure_##_VFuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _ArgList); \ + } \ + \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) \ + _ReturnType __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst, _TType1 _TArg1, _TType2 _TArg2, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg2); \ + return __insecure_##_VFuncName(_Dst, _TArg1, _TArg2, _ArgList); \ + } \ + \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_SecureDstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg2); \ + _ReturnPolicy(_SecureVFuncName(_Dst, _Size, _TArg1, _TArg2, _ArgList), _Dst); \ + } \ + \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, _TType2 _TArg2, ...) _CRT_SECURE_CPP_NOTHROW \ + { \ + va_list _ArgList; \ + __crt_va_start(_ArgList, _TArg2); \ + _ReturnPolicy(_SecureVFuncName(_Dst, 1, _TArg1, _TArg2, _ArgList), _Dst); \ + } \ + \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) \ + _ReturnType __CRTDECL _VFuncName(_T &_Dst, _TType1 _TArg1, _TType2 _TArg2, va_list _ArgList) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_VFuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _ArgList); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) \ + _ReturnType __CRTDECL _VFuncName(const _T &_Dst, _TType1 _TArg1, _TType2 _TArg2, va_list _ArgList) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_VFuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _ArgList); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) \ + _ReturnType __CRTDECL _VFuncName(_SalAttributeDst _DstType *&_Dst, _TType1 _TArg1, _TType2 _TArg2, va_list _ArgList) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_VFuncName(_Dst, _TArg1, _TArg2, _ArgList); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _VFuncName(_SecureDstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2, va_list _ArgList) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureVFuncName(_Dst, _Size, _TArg1, _TArg2, _ArgList), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) \ + _ReturnType __CRTDECL _VFuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, _TType2 _TArg2, va_list _ArgList) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureVFuncName(_Dst, 1, _TArg1, _TArg2, _ArgList), _Dst); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __inline \ + size_t __CRTDECL __insecure_##_FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2) \ + { \ + _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2); \ + return _FuncName(_Dst, _TArg1, _TArg2); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + size_t __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + size_t __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + size_t __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst, _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst, _TArg1, _TArg2); \ + } \ + template \ + inline \ + size_t __CRTDECL _FuncName(_SecureDstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + size_t _Ret = 0; \ + _SecureFuncName(&_Ret, _Dst, _Size, _TArg1, _TArg2); \ + return (_Ret > 0 ? (_Ret - 1) : _Ret); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + size_t __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + size_t _Ret = 0; \ + _SecureFuncName(&_Ret, _Dst, 1, _TArg1, _TArg2); \ + return (_Ret > 0 ? (_Ret - 1) : _Ret); \ + } \ + } + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __inline \ + size_t __CRTDECL __insecure_##_FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) \ + { \ + _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3); \ + return _FuncName(_Dst, _TArg1, _TArg2, _TArg3); \ + } \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + size_t __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _TArg3); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + size_t __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _TArg3); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + size_t __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst, _TArg1, _TArg2, _TArg3); \ + } \ + template \ + inline \ + size_t __CRTDECL _FuncName(_SecureDstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + size_t _Ret = 0; \ + _SecureFuncName(&_Ret, _Dst, _Size, _TArg1, _TArg2, _TArg3); \ + return (_Ret > 0 ? (_Ret - 1) : _Ret); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + size_t __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + size_t _Ret = 0; \ + _SecureFuncName(&_Ret, _Dst, 1, _TArg1, _TArg2, _TArg3); \ + return (_Ret > 0 ? (_Ret - 1) : _Ret); \ + } \ + } + + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_DstType *_Dst) + + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst)); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst)); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_DstType * &_Dst) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_SecureDstType (&_Dst)[_Size]) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, _Size), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1]) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, 1), _Dst); \ + } \ + } + + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_DstType *_Dst, _TType1 _TArg1) + + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_DstType * &_Dst, _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst, _TArg1); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_SecureDstType (&_Dst)[_Size], _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, _Size, _TArg1), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, 1, _TArg1), _Dst); \ + } \ + } + + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2) + + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst, _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst, _TArg1, _TArg2); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_SecureDstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, _Size, _TArg1, _TArg2), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, _TType2 _TArg2) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, 1, _TArg1, _TArg2), _Dst); \ + } \ + } + + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __inline \ + _ReturnType __CRTDECL __insecure_##_FuncName(_DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) + + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + extern "C++" \ + { \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_T &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _TArg3); \ + } \ + template \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(const _T &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(static_cast<_DstType *>(_Dst), _TArg1, _TArg2, _TArg3); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName(_SalAttributeDst _DstType * &_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + return __insecure_##_FuncName(_Dst, _TArg1, _TArg2, _TArg3); \ + } \ + template \ + inline \ + _ReturnType __CRTDECL _FuncName(_SecureDstType (&_Dst)[_Size], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, _Size, _TArg1, _TArg2, _TArg3), _Dst); \ + } \ + template <> \ + inline \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + _ReturnType __CRTDECL _FuncName<1>(_DstType (&_Dst)[1], _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) _CRT_SECURE_CPP_NOTHROW \ + { \ + _ReturnPolicy(_SecureFuncName(_Dst, 1, _TArg1, _TArg2, _TArg3), _Dst); \ + } \ + } + + #if _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_0_CGETS(_ReturnType, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0_CGETS(_ReturnType, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_4_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_4_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_1_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_2_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _HType2, _HArg2, _SalAttributeDst, _DstType, _Dst) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_2_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _HType2, _HArg2, _SalAttributeDst, _DstType, _Dst) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _SecureFuncName, _VFuncName, _SecureVFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _SecureFuncName, _VFuncName, _SecureVFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _VFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST(_ReturnType, _ReturnPolicy, _DeclSpec, __cdecl, _FuncName, _VFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _VFuncName##_s, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) \ + __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType _DstType, _Dst) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) \ + __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) \ + __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType _DstType, _Dst, _TType1, _TArg1) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) \ + __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + + #else // ^^^ _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT ^^^ // vvv _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT vvv // + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_0_GETS(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) _DeclSpec _ReturnType __cdecl _FuncName(_DstType *_Dst); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_4_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4, _TArg4) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_1_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_HType1 _HArg1, _SalAttributeDst _DstType *_Dst, _TType1 _TArg1); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_2_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _HType2, _HArg2, _SalAttributeDst, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_HType1 _HArg1, _HType2 _HArg2, _SalAttributeDst _DstType *_Dst); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _SecureFuncName,_VFuncName, _SecureVFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType _CC _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, ...); \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) _DeclSpec _ReturnType _CC _VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, va_list _Args); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _VFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, ...); \ + _CRT_INSECURE_DEPRECATE(_VFuncName##_s) _DeclSpec _ReturnType __cdecl _VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, va_list _Args); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) _DeclSpec _ReturnType _CC _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, ...); \ + _CRT_INSECURE_DEPRECATE(_VFuncName##_s) _DeclSpec _ReturnType _CC _VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, va_list _Args); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3); + + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst, _TType1 _TArg1) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + + #endif // !_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT + + #else // ^^^ _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES ^^^ // vvv !_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES vvv // + + #define __RETURN_POLICY_SAME(_FunctionCall) + #define __RETURN_POLICY_DST(_FunctionCall) + #define __RETURN_POLICY_VOID(_FunctionCall) + #define __EMPTY_DECLSPEC + + #if _CRT_FUNCTIONS_REQUIRED + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0_CGETS(_ReturnType, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_4_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4, _TArg4) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_HType1 _HArg1, _SalAttributeDst _DstType *_Dst, _TType1 _TArg1); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_2_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _HType2, _HArg2, _SalAttributeDst, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_HType1 _HArg1, _HType2 _HArg2, _SalAttributeDst _DstType *_Dst); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _SecureFuncName, _VFuncName, _SecureVFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType _CC _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, ...); \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) _DeclSpec _ReturnType _CC _VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, va_list _Args); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SecureVFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) _DeclSpec _ReturnType _CC _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, ...); \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) _DeclSpec _ReturnType _CC _VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, va_list _Args); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_0_GETS(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) _DeclSpec _ReturnType __cdecl _FuncName(_DstType *_Dst); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_4_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3, _TType4, _TArg4) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3, _TType4 _TArg4); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_1_1_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_HType1 _HArg1, _SalAttributeDst _DstType *_Dst, _TType1 _TArg1); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_2_0_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SecureFuncName, _HType1, _HArg1, _HType2, _HArg2, _SalAttributeDst, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType __cdecl _FuncName(_HType1 _HArg1, _HType2 _HArg2, _SalAttributeDst _DstType *_Dst); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _SecureFuncName, _VFuncName, _SecureVFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec _ReturnType _CC _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, ...); \ + _CRT_INSECURE_DEPRECATE(_SecureVFuncName) _DeclSpec _ReturnType _CC _VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, va_list _Args); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _VFuncName, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) _DeclSpec _ReturnType __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, ...); \ + _CRT_INSECURE_DEPRECATE(_VFuncName##_s) _DeclSpec _ReturnType __cdecl _VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, va_list _Args); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX(_ReturnType, _ReturnPolicy, _DeclSpec, _CC, _FuncName, _VFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_FuncName##_s) _DeclSpec _ReturnType _CC _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, ...); \ + _CRT_INSECURE_DEPRECATE(_VFuncName##_s) _DeclSpec _ReturnType _CC _VFuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, va_list _Args); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2); + + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE_EX(_DeclSpec, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) _DeclSpec size_t __cdecl _FuncName(_SalAttributeDst _DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3); + + + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst) + + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) + + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst, _TType1 _TArg1) + + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) + + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2) + + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) + + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_0_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst) + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst, _TType1 _TArg1) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_1_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1) + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2) + + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) \ + _CRT_INSECURE_DEPRECATE(_SecureFuncName) \ + __inline \ + _ReturnType __CRTDECL _FuncName(_DstType *_Dst, _TType1 _TArg1, _TType2 _TArg2, _TType3 _TArg3) + + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(_ReturnType, _ReturnPolicy, _FuncName, _SecureFuncName, _SecureDstType, _SalAttributeDst, _DstType, _Dst, _TType1, _TArg1, _TType2, _TArg2, _TType3, _TArg3) + + #else // ^^^ _CRT_FUNCTIONS_REQUIRED ^^^ // vvv !_CRT_FUNCTIONS_REQUIRED vvv // + + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0_CGETS(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_4_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_2_0_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_SIZE_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_3_SIZE_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_0_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_0_GETS(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_4_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_1_1_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_2_0_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_1_ARGLIST_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE_EX(...) + #define __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE_EX(...) + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(...) + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(...) + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(...) + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(...) + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(...) + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(...) + #define __DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_3_EX(...) + #define __DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_3_EX(...) + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_0_EX(...) + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_0_EX(...) + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_1_EX(...) + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_1_EX(...) + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(...) + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(...) + #define __DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(...) + #define __DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(...) + + #endif // !_CRT_FUNCTIONS_REQUIRED + #endif // !_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES +#endif + +_CRT_END_C_HEADER + +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_io.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_io.h new file mode 100644 index 0000000000000000000000000000000000000000..8e84035f9b240fa6acef874702d9157657e6c4b4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_io.h @@ -0,0 +1,572 @@ +// +// corecrt_io.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the low-level I/O and file handling functionality. These +// declarations are split out to support the Windows build. +// +#pragma once + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Types +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifdef _USE_32BIT_TIME_T + #define _finddata_t _finddata32_t + #define _finddatai64_t _finddata32i64_t +#else + #define _finddata_t _finddata64i32_t + #define _finddatai64_t __finddata64_t +#endif + +struct _finddata32_t +{ + unsigned attrib; + __time32_t time_create; // -1 for FAT file systems + __time32_t time_access; // -1 for FAT file systems + __time32_t time_write; + _fsize_t size; + char name[260]; +}; + +struct _finddata32i64_t +{ + unsigned attrib; + __time32_t time_create; // -1 for FAT file systems + __time32_t time_access; // -1 for FAT file systems + __time32_t time_write; + __int64 size; + char name[260]; +}; + +struct _finddata64i32_t +{ + unsigned attrib; + __time64_t time_create; // -1 for FAT file systems + __time64_t time_access; // -1 for FAT file systems + __time64_t time_write; + _fsize_t size; + char name[260]; +}; + +struct __finddata64_t +{ + unsigned attrib; + __time64_t time_create; // -1 for FAT file systems + __time64_t time_access; // -1 for FAT file systems + __time64_t time_write; + __int64 size; + char name[260]; +}; + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Macros +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// File attribute constants for the _findfirst() family of functions +#define _A_NORMAL 0x00 // Normal file - No read/write restrictions +#define _A_RDONLY 0x01 // Read only file +#define _A_HIDDEN 0x02 // Hidden file +#define _A_SYSTEM 0x04 // System file +#define _A_SUBDIR 0x10 // Subdirectory +#define _A_ARCH 0x20 // Archive file + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifdef _USE_32BIT_TIME_T + #define _findfirst _findfirst32 + #define _findnext _findnext32 + #define _findfirsti64 _findfirst32i64 + #define _findnexti64 _findnext32i64 +#else + #define _findfirst _findfirst64i32 + #define _findnext _findnext64i32 + #define _findfirsti64 _findfirst64 + #define _findnexti64 _findnext64 +#endif + +#if _CRT_FUNCTIONS_REQUIRED + + _Check_return_ + _ACRTIMP int __cdecl _access( + _In_z_ char const* _FileName, + _In_ int _AccessMode + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _access_s( + _In_z_ char const* _FileName, + _In_ int _AccessMode + ); + + _Check_return_ + _ACRTIMP int __cdecl _chmod( + _In_z_ char const* _FileName, + _In_ int _Mode + ); + + _Check_return_ + _ACRTIMP int __cdecl _chsize( + _In_ int _FileHandle, + _In_ long _Size + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _chsize_s( + _In_ int _FileHandle, + _In_ __int64 _Size + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _close( + _In_ int _FileHandle + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _commit( + _In_ int _FileHandle + ); + + _Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s) + _ACRTIMP int __cdecl _creat( + _In_z_ char const* _FileName, + _In_ int _PermissionMode + ); + + _Check_return_ + _ACRTIMP int __cdecl _dup( + _In_ int _FileHandle + ); + + _Check_return_ + _ACRTIMP int __cdecl _dup2( + _In_ int _FileHandleSrc, + _In_ int _FileHandleDst + ); + + _Check_return_ + _ACRTIMP int __cdecl _eof( + _In_ int _FileHandle + ); + + _Check_return_ + _ACRTIMP long __cdecl _filelength( + _In_ int _FileHandle + ); + + _Success_(return != -1) + _Check_return_ + _ACRTIMP intptr_t __cdecl _findfirst32( + _In_z_ char const* _FileName, + _Out_ struct _finddata32_t* _FindData + ); + + _Success_(return != -1) + _Check_return_ + _ACRTIMP int __cdecl _findnext32( + _In_ intptr_t _FindHandle, + _Out_ struct _finddata32_t* _FindData + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _findclose( + _In_ intptr_t _FindHandle + ); + + _ACRTIMP intptr_t __cdecl _get_osfhandle( + _In_ int _FileHandle + ); + + _Check_return_ + _ACRTIMP int __cdecl _isatty( + _In_ int _FileHandle + ); + + _ACRTIMP int __cdecl _locking( + _In_ int _FileHandle, + _In_ int _LockMode, + _In_ long _NumOfBytes + ); + + _Check_return_opt_ + _ACRTIMP long __cdecl _lseek( + _In_ int _FileHandle, + _In_ long _Offset, + _In_ int _Origin + ); + + _Success_(return == 0) + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _mktemp_s( + _Inout_updates_z_(_Size) char* _TemplateName, + _In_ size_t _Size + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _mktemp_s, + _Prepost_z_ char, _TemplateName + ) + + _Success_(return != 0) + _Check_return_ __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + char *, __RETURN_POLICY_DST, _ACRTIMP, _mktemp, + _Inout_z_, char, _TemplateName + ) + + _ACRTIMP int __cdecl _open_osfhandle( + _In_ intptr_t _OSFileHandle, + _In_ int _Flags + ); + + #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + _Success_(return != -1) + _Check_return_ + _DCRTIMP int __cdecl _pipe( + _Out_writes_(2) int* _PtHandles, + _In_ unsigned int _PipeSize, + _In_ int _TextMode + ); + #endif + + _Success_(return != -1) + _Check_return_ + _ACRTIMP int __cdecl _read( + _In_ int _FileHandle, + _Out_writes_bytes_(_MaxCharCount) void* _DstBuf, + _In_ unsigned int _MaxCharCount + ); + + _ACRTIMP int __cdecl remove( + _In_z_ char const* _FileName + ); + + _Check_return_ + _ACRTIMP int __cdecl rename( + _In_z_ char const* _OldFilename, + _In_z_ char const* _NewFilename + ); + + _ACRTIMP int __cdecl _unlink( + _In_z_ char const* _FileName + ); + + _Check_return_ + _ACRTIMP int __cdecl _setmode( + _In_ int _FileHandle, + _In_ int _Mode + ); + + _Check_return_ + _ACRTIMP long __cdecl _tell( + _In_ int _FileHandle + ); + + _CRT_INSECURE_DEPRECATE(_umask_s) + _ACRTIMP int __cdecl _umask( + _In_ int _Mode + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _umask_s( + _In_ int _NewMode, + _Out_ int* _OldMode + ); + + _ACRTIMP int __cdecl _write( + _In_ int _FileHandle, + _In_reads_bytes_(_MaxCharCount) void const* _Buf, + _In_ unsigned int _MaxCharCount + ); + + _Check_return_ + _ACRTIMP __int64 __cdecl _filelengthi64( + _In_ int _FileHandle + ); + + _Success_(return != -1) + _Check_return_ + _ACRTIMP intptr_t __cdecl _findfirst32i64( + _In_z_ char const* _FileName, + _Out_ struct _finddata32i64_t* _FindData + ); + + _Success_(return != -1) + _Check_return_ + _ACRTIMP intptr_t __cdecl _findfirst64i32( + _In_z_ char const* _FileName, + _Out_ struct _finddata64i32_t* _FindData + ); + + _Success_(return != -1) + _Check_return_ + _ACRTIMP intptr_t __cdecl _findfirst64( + _In_z_ char const* _FileName, + _Out_ struct __finddata64_t* _FindData + ); + + _Success_(return != -1) + _Check_return_ + _ACRTIMP int __cdecl _findnext32i64( + _In_ intptr_t _FindHandle, + _Out_ struct _finddata32i64_t* _FindData + ); + + _Success_(return != -1) + _Check_return_ + _ACRTIMP int __cdecl _findnext64i32( + _In_ intptr_t _FindHandle, + _Out_ struct _finddata64i32_t* _FindData + ); + + _Success_(return != -1) + _Check_return_ + _ACRTIMP int __cdecl _findnext64( + _In_ intptr_t _FindHandle, + _Out_ struct __finddata64_t* _FindData + ); + + _Check_return_opt_ + _ACRTIMP __int64 __cdecl _lseeki64( + _In_ int _FileHandle, + _In_ __int64 _Offset, + _In_ int _Origin + ); + + _Check_return_ + _ACRTIMP __int64 __cdecl _telli64( + _In_ int _FileHandle + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _sopen_s( + _Out_ int* _FileHandle, + _In_z_ char const* _FileName, + _In_ int _OpenFlag, + _In_ int _ShareFlag, + _In_ int _PermissionMode + ); + + _Check_return_ + _ACRTIMP errno_t __cdecl _sopen_s_nolock( + _Out_ int* _FileHandle, + _In_z_ char const* _FileName, + _In_ int _OpenFlag, + _In_ int _ShareFlag, + _In_ int _PermissionMode + ); + + _ACRTIMP errno_t __cdecl _sopen_dispatch( + _In_z_ char const* _FileName, + _In_ int _OFlag, + _In_ int _ShFlag, + _In_ int _PMode, + _Out_ int* _PFileHandle, + _In_ int _BSecure + ); + + + + #ifdef __cplusplus + + // These function do not validate pmode; use _sopen_s instead. + extern "C++" _Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s) + inline int __CRTDECL _open( + _In_z_ char const* const _FileName, + _In_ int const _OFlag, + _In_ int const _PMode = 0 + ) + { + int _FileHandle; + // Last parameter passed as 0 because we don't want to validate pmode from _open + errno_t const _Result = _sopen_dispatch(_FileName, _OFlag, _SH_DENYNO, _PMode, &_FileHandle, 0); + return _Result ? -1 : _FileHandle; + } + + extern "C++" _Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s) + inline int __CRTDECL _sopen( + _In_z_ char const* const _FileName, + _In_ int const _OFlag, + _In_ int const _ShFlag, + _In_ int const _PMode = 0 + ) + { + int _FileHandle; + // Last parameter passed as 0 because we don't want to validate pmode from _sopen + errno_t const _Result = _sopen_dispatch(_FileName, _OFlag, _ShFlag, _PMode, &_FileHandle, 0); + return _Result ? -1 : _FileHandle; + } + + #else + + _Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s) + _ACRTIMP int __cdecl _open( + _In_z_ char const* _FileName, + _In_ int _OpenFlag, + ...); + + _Check_return_ _CRT_INSECURE_DEPRECATE(_sopen_s) + _ACRTIMP int __cdecl _sopen( + _In_z_ char const* _FileName, + _In_ int _OpenFlag, + _In_ int _ShareFlag, + ...); + + #endif + + + + #if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + // Suppress warnings about double deprecation + #pragma warning(push) + #pragma warning(disable: 4141) + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_access) + _ACRTIMP int __cdecl access( + _In_z_ char const* _FileName, + _In_ int _AccessMode + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_chmod) + _ACRTIMP int __cdecl chmod( + _In_z_ char const* _FileName, + _In_ int _AccessMode + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_chsize) + _ACRTIMP int __cdecl chsize( + _In_ int _FileHandle, + _In_ long _Size + ); + + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_close) + _ACRTIMP int __cdecl close( + _In_ int _FileHandle + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_creat) _CRT_INSECURE_DEPRECATE(_sopen_s) + _ACRTIMP int __cdecl creat( + _In_z_ char const* _FileName, + _In_ int _PermissionMode + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_dup) + _ACRTIMP int __cdecl dup( + _In_ int _FileHandle + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_dup2) + _ACRTIMP int __cdecl dup2( + _In_ int _FileHandleSrc, + _In_ int _FileHandleDst + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_eof) + _ACRTIMP int __cdecl eof( + _In_ int _FileHandle + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_filelength) + _ACRTIMP long __cdecl filelength( + _In_ int _FileHandle + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_isatty) + _ACRTIMP int __cdecl isatty( + _In_ int _FileHandle + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_locking) + _ACRTIMP int __cdecl locking( + _In_ int _FileHandle, + _In_ int _LockMode, + _In_ long _NumOfBytes + ); + + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_lseek) + _ACRTIMP long __cdecl lseek( + _In_ int _FileHandle, + _In_ long _Offset, + _In_ int _Origin + ); + + _Success_(return != 0) + _CRT_NONSTDC_DEPRECATE(_mktemp) _CRT_INSECURE_DEPRECATE(_mktemp_s) + _ACRTIMP char * __cdecl mktemp( + _Inout_z_ char* _TemplateName + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_open) _CRT_INSECURE_DEPRECATE(_sopen_s) + _ACRTIMP int __cdecl open( + _In_z_ char const* _FileName, + _In_ int _OpenFlag, + ...); + + _Success_(return != -1) + _CRT_NONSTDC_DEPRECATE(_read) + _ACRTIMP int __cdecl read( + _In_ int _FileHandle, + _Out_writes_bytes_(_MaxCharCount) void* _DstBuf, + _In_ unsigned int _MaxCharCount + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_setmode) + _ACRTIMP int __cdecl setmode( + _In_ int _FileHandle, + _In_ int _Mode + ); + + _CRT_NONSTDC_DEPRECATE(_sopen) _CRT_INSECURE_DEPRECATE(_sopen_s) + _ACRTIMP int __cdecl sopen( + _In_ char const* _FileName, + _In_ int _OpenFlag, + _In_ int _ShareFlag, + ...); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_tell) + _ACRTIMP long __cdecl tell( + _In_ int _FileHandle + ); + + _CRT_NONSTDC_DEPRECATE(_umask) _CRT_INSECURE_DEPRECATE(_umask_s) + _ACRTIMP int __cdecl umask( + _In_ int _Mode + ); + + _CRT_NONSTDC_DEPRECATE(_unlink) + _ACRTIMP int __cdecl unlink( + _In_z_ char const* _FileName + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_write) + _ACRTIMP int __cdecl write( + _In_ int _FileHandle, + _In_reads_bytes_(_MaxCharCount) void const* _Buf, + _In_ unsigned int _MaxCharCount + ); + + #pragma warning(pop) + #endif // _CRT_INTERNAL_NONSTDC_NAMES +#endif // _CRT_FUNCTIONS_REQUIRED + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_malloc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_malloc.h new file mode 100644 index 0000000000000000000000000000000000000000..907f3553bdfc6a7b67c3655f76fcd6ab1a1fa6b0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_malloc.h @@ -0,0 +1,234 @@ +// +// corecrt_malloc.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The memory allocation library. These pieces of the allocation library are +// shared by both and . +// +#pragma once + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma push_macro("_aligned_free") + #pragma push_macro("_aligned_malloc") + #pragma push_macro("_aligned_msize") + #pragma push_macro("_aligned_offset_malloc") + #pragma push_macro("_aligned_offset_realloc") + #pragma push_macro("_aligned_offset_recalloc") + #pragma push_macro("_aligned_realloc") + #pragma push_macro("_aligned_recalloc") + #pragma push_macro("_expand") + #pragma push_macro("_freea") + #pragma push_macro("_msize") + #pragma push_macro("_recalloc") + #pragma push_macro("calloc") + #pragma push_macro("free") + #pragma push_macro("malloc") + #pragma push_macro("realloc") + + #undef _aligned_free + #undef _aligned_malloc + #undef _aligned_msize + #undef _aligned_offset_malloc + #undef _aligned_offset_realloc + #undef _aligned_offset_recalloc + #undef _aligned_realloc + #undef _aligned_recalloc + #undef _expand + #undef _freea + #undef _msize + #undef _recalloc + #undef calloc + #undef free + #undef malloc + #undef realloc +#endif + +_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Count * _Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _calloc_base( + _In_ size_t _Count, + _In_ size_t _Size + ); + +_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Count * _Size) +_ACRTIMP _CRT_JIT_INTRINSIC _CRTALLOCATOR _CRTRESTRICT _CRT_HYBRIDPATCHABLE +void* __cdecl calloc( + _In_ _CRT_GUARDOVERFLOW size_t _Count, + _In_ _CRT_GUARDOVERFLOW size_t _Size + ); + +_Check_return_ +_ACRTIMP int __cdecl _callnewh( + _In_ size_t _Size + ); + +_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) +_ACRTIMP _CRTALLOCATOR _CRT_HYBRIDPATCHABLE +void* __cdecl _expand( + _Pre_notnull_ void* _Block, + _In_ _CRT_GUARDOVERFLOW size_t _Size + ); + +_ACRTIMP +void __cdecl _free_base( + _Pre_maybenull_ _Post_invalid_ void* _Block + ); + +_ACRTIMP _CRT_HYBRIDPATCHABLE +void __cdecl free( + _Pre_maybenull_ _Post_invalid_ void* _Block + ); + +_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _malloc_base( + _In_ size_t _Size + ); + +_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) +_ACRTIMP _CRTALLOCATOR _CRT_JIT_INTRINSIC _CRTRESTRICT _CRT_HYBRIDPATCHABLE +void* __cdecl malloc( + _In_ _CRT_GUARDOVERFLOW size_t _Size + ); + +_Check_return_ +_ACRTIMP +size_t __cdecl _msize_base( + _Pre_notnull_ void* _Block + ) _CRT_NOEXCEPT; + +_Check_return_ +_ACRTIMP _CRT_HYBRIDPATCHABLE +size_t __cdecl _msize( + _Pre_notnull_ void* _Block + ); + +_Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _realloc_base( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ size_t _Size + ); + +_Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT _CRT_HYBRIDPATCHABLE +void* __cdecl realloc( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ _CRT_GUARDOVERFLOW size_t _Size + ); + +_Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Count * _Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _recalloc_base( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ size_t _Count, + _In_ size_t _Size + ); + +_Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Count * _Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _recalloc( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ _CRT_GUARDOVERFLOW size_t _Count, + _In_ _CRT_GUARDOVERFLOW size_t _Size + ); + +_ACRTIMP +void __cdecl _aligned_free( + _Pre_maybenull_ _Post_invalid_ void* _Block + ); + +_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _aligned_malloc( + _In_ _CRT_GUARDOVERFLOW size_t _Size, + _In_ size_t _Alignment + ); + +_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _aligned_offset_malloc( + _In_ _CRT_GUARDOVERFLOW size_t _Size, + _In_ size_t _Alignment, + _In_ size_t _Offset + ); + +_Check_return_ +_ACRTIMP +size_t __cdecl _aligned_msize( + _Pre_notnull_ void* _Block, + _In_ size_t _Alignment, + _In_ size_t _Offset + ); + +_Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _aligned_offset_realloc( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ _CRT_GUARDOVERFLOW size_t _Size, + _In_ size_t _Alignment, + _In_ size_t _Offset + ); + +_Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Count * _Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _aligned_offset_recalloc( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ _CRT_GUARDOVERFLOW size_t _Count, + _In_ _CRT_GUARDOVERFLOW size_t _Size, + _In_ size_t _Alignment, + _In_ size_t _Offset + ); + +_Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _aligned_realloc( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ _CRT_GUARDOVERFLOW size_t _Size, + _In_ size_t _Alignment + ); + +_Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Count * _Size) +_ACRTIMP _CRTALLOCATOR _CRTRESTRICT +void* __cdecl _aligned_recalloc( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ _CRT_GUARDOVERFLOW size_t _Count, + _In_ _CRT_GUARDOVERFLOW size_t _Size, + _In_ size_t _Alignment + ); + +#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma pop_macro("realloc") + #pragma pop_macro("malloc") + #pragma pop_macro("free") + #pragma pop_macro("calloc") + #pragma pop_macro("_recalloc") + #pragma pop_macro("_msize") + #pragma pop_macro("_freea") + #pragma pop_macro("_expand") + #pragma pop_macro("_aligned_recalloc") + #pragma pop_macro("_aligned_realloc") + #pragma pop_macro("_aligned_offset_recalloc") + #pragma pop_macro("_aligned_offset_realloc") + #pragma pop_macro("_aligned_offset_malloc") + #pragma pop_macro("_aligned_msize") + #pragma pop_macro("_aligned_malloc") + #pragma pop_macro("_aligned_free") +#endif + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_math.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_math.h new file mode 100644 index 0000000000000000000000000000000000000000..3e9cee17f9fa2b4e3c6978c31eb3f8de250af3fa --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_math.h @@ -0,0 +1,1033 @@ +// +// corecrt_math.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The majority of the C Standard Library functionality. +// +#pragma once +#ifndef _INC_MATH // include guard for 3rd party interop +#define _INC_MATH + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +#ifndef __assembler + // Definition of the _exception struct, which is passed to the matherr function + // when a floating point exception is detected: + struct _exception + { + int type; // exception type - see below + char* name; // name of function where error occurred + double arg1; // first argument to function + double arg2; // second argument (if any) to function + double retval; // value to be returned by function + }; + + // Definition of the _complex struct to be used by those who use the complex + // functions and want type checking. + #ifndef _COMPLEX_DEFINED + #define _COMPLEX_DEFINED + + struct _complex + { + double x, y; // real and imaginary parts + }; + + #if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES && !defined __cplusplus + // Non-ANSI name for compatibility + #define complex _complex + #endif + #endif +#endif // __assembler + + + +// On x86, when not using /arch:SSE2 or greater, floating point operations +// are performed using the x87 instruction set and FLT_EVAL_METHOD is 2. +// (When /fp:fast is used, floating point operations may be consistent, so +// we use the default types.) +#if defined _M_IX86 && _M_IX86_FP < 2 && !defined _M_FP_FAST + typedef long double float_t; + typedef long double double_t; +#else + typedef float float_t; + typedef double double_t; +#endif + + + +// Constant definitions for the exception type passed in the _exception struct +#define _DOMAIN 1 // argument domain error +#define _SING 2 // argument singularity +#define _OVERFLOW 3 // overflow range error +#define _UNDERFLOW 4 // underflow range error +#define _TLOSS 5 // total loss of precision +#define _PLOSS 6 // partial loss of precision + +// Definitions of _HUGE and HUGE_VAL - respectively the XENIX and ANSI names +// for a value returned in case of error by a number of the floating point +// math routines. +#ifndef __assembler + #ifndef _M_CEE_PURE + extern double const _HUGE; + #else + double const _HUGE = System::Double::PositiveInfinity; + #endif +#endif + +#ifdef __has_builtin +#define _UCRT_HAS_BUILTIN(x) __has_builtin(x) +#else +#define _UCRT_HAS_BUILTIN(x) 0 +#endif + +#ifndef _HUGE_ENUF + #define _HUGE_ENUF 1e+300 // _HUGE_ENUF*_HUGE_ENUF must overflow +#endif +#ifndef _UCRT_LEGACY_INFINITY +#define INFINITY ((float)(_HUGE_ENUF)) +#else +#define INFINITY ((float)(_HUGE_ENUF * _HUGE_ENUF)) +#endif +#define HUGE_VAL ((double)INFINITY) +#define HUGE_VALF ((float)INFINITY) +#define HUGE_VALL ((long double)INFINITY) + +#if defined _UCRT_NOISY_NAN || defined __midl || !(defined __cplusplus || _UCRT_HAS_BUILTIN(__builtin_nanf)) +#define _UCRT_NAN (-(float)(((float)(_HUGE_ENUF * _HUGE_ENUF)) * 0.0F)) +#else +#define _UCRT_NAN (__builtin_nanf("0")) +#endif + +#ifdef _UCRT_NEGATIVE_NAN +#define NAN (-_UCRT_NAN) +#else +#define NAN _UCRT_NAN +#endif + +#define _DENORM (-2) +#define _FINITE (-1) +#define _INFCODE 1 +#define _NANCODE 2 + +#define FP_INFINITE _INFCODE +#define FP_NAN _NANCODE +#define FP_NORMAL _FINITE +#define FP_SUBNORMAL _DENORM +#define FP_ZERO 0 + +#define _C2 1 // 0 if not 2's complement +#define FP_ILOGB0 (-0x7fffffff - _C2) +#define FP_ILOGBNAN 0x7fffffff + +#define MATH_ERRNO 1 +#define MATH_ERREXCEPT 2 +#define math_errhandling (MATH_ERRNO | MATH_ERREXCEPT) + +// Values for use as arguments to the _fperrraise function +#define _FE_DIVBYZERO 0x04 +#define _FE_INEXACT 0x20 +#define _FE_INVALID 0x01 +#define _FE_OVERFLOW 0x08 +#define _FE_UNDERFLOW 0x10 + +#define _D0_C 3 // little-endian, small long doubles +#define _D1_C 2 +#define _D2_C 1 +#define _D3_C 0 + +#define _DBIAS 0x3fe +#define _DOFF 4 + +#define _F0_C 1 // little-endian +#define _F1_C 0 + +#define _FBIAS 0x7e +#define _FOFF 7 +#define _FRND 1 + +#define _L0_C 3 // little-endian, 64-bit long doubles +#define _L1_C 2 +#define _L2_C 1 +#define _L3_C 0 + +#define _LBIAS 0x3fe +#define _LOFF 4 + +// IEEE 754 double properties +#define _DFRAC ((unsigned short)((1 << _DOFF) - 1)) +#define _DMASK ((unsigned short)(0x7fff & ~_DFRAC)) +#define _DMAX ((unsigned short)((1 << (15 - _DOFF)) - 1)) +#define _DSIGN ((unsigned short)0x8000) + +// IEEE 754 float properties +#define _FFRAC ((unsigned short)((1 << _FOFF) - 1)) +#define _FMASK ((unsigned short)(0x7fff & ~_FFRAC)) +#define _FMAX ((unsigned short)((1 << (15 - _FOFF)) - 1)) +#define _FSIGN ((unsigned short)0x8000) + +// IEEE 754 long double properties +#define _LFRAC ((unsigned short)(-1)) +#define _LMASK ((unsigned short)0x7fff) +#define _LMAX ((unsigned short)0x7fff) +#define _LSIGN ((unsigned short)0x8000) + +#define _DHUGE_EXP (int)(_DMAX * 900L / 1000) +#define _FHUGE_EXP (int)(_FMAX * 900L / 1000) +#define _LHUGE_EXP (int)(_LMAX * 900L / 1000) + +#define _DSIGN_C(_Val) (((_double_val *)(char*)&(_Val))->_Sh[_D0_C] & _DSIGN) +#define _FSIGN_C(_Val) (((_float_val *)(char*)&(_Val))->_Sh[_F0_C] & _FSIGN) +#define _LSIGN_C(_Val) (((_ldouble_val*)(char*)&(_Val))->_Sh[_L0_C] & _LSIGN) + +void __cdecl _fperrraise(_In_ int _Except); + +_Check_return_ _ACRTIMP short __cdecl _dclass(_In_ double _X); +_Check_return_ _ACRTIMP short __cdecl _ldclass(_In_ long double _X); +_Check_return_ _ACRTIMP short __cdecl _fdclass(_In_ float _X); + +_Check_return_ _ACRTIMP int __cdecl _dsign(_In_ double _X); +_Check_return_ _ACRTIMP int __cdecl _ldsign(_In_ long double _X); +_Check_return_ _ACRTIMP int __cdecl _fdsign(_In_ float _X); + +_Check_return_ _ACRTIMP int __cdecl _dpcomp(_In_ double _X, _In_ double _Y); +_Check_return_ _ACRTIMP int __cdecl _ldpcomp(_In_ long double _X, _In_ long double _Y); +_Check_return_ _ACRTIMP int __cdecl _fdpcomp(_In_ float _X, _In_ float _Y); + +_Check_return_ _ACRTIMP short __cdecl _dtest(_In_ double* _Px); +_Check_return_ _ACRTIMP short __cdecl _ldtest(_In_ long double* _Px); +_Check_return_ _ACRTIMP short __cdecl _fdtest(_In_ float* _Px); + +_ACRTIMP short __cdecl _d_int(_Inout_ double* _Px, _In_ short _Xexp); +_ACRTIMP short __cdecl _ld_int(_Inout_ long double* _Px, _In_ short _Xexp); +_ACRTIMP short __cdecl _fd_int(_Inout_ float* _Px, _In_ short _Xexp); + +_ACRTIMP short __cdecl _dscale(_Inout_ double* _Px, _In_ long _Lexp); +_ACRTIMP short __cdecl _ldscale(_Inout_ long double* _Px, _In_ long _Lexp); +_ACRTIMP short __cdecl _fdscale(_Inout_ float* _Px, _In_ long _Lexp); + +_ACRTIMP short __cdecl _dunscale(_Out_ short* _Pex, _Inout_ double* _Px); +_ACRTIMP short __cdecl _ldunscale(_Out_ short* _Pex, _Inout_ long double* _Px); +_ACRTIMP short __cdecl _fdunscale(_Out_ short* _Pex, _Inout_ float* _Px); + +_Check_return_ _ACRTIMP short __cdecl _dexp(_Inout_ double* _Px, _In_ double _Y, _In_ long _Eoff); +_Check_return_ _ACRTIMP short __cdecl _ldexp(_Inout_ long double* _Px, _In_ long double _Y, _In_ long _Eoff); +_Check_return_ _ACRTIMP short __cdecl _fdexp(_Inout_ float* _Px, _In_ float _Y, _In_ long _Eoff); + +_Check_return_ _ACRTIMP short __cdecl _dnorm(_Inout_updates_(4) unsigned short* _Ps); +_Check_return_ _ACRTIMP short __cdecl _fdnorm(_Inout_updates_(2) unsigned short* _Ps); + +_Check_return_ _ACRTIMP double __cdecl _dpoly(_In_ double _X, _In_reads_(_N) double const* _Tab, _In_ int _N); +_Check_return_ _ACRTIMP long double __cdecl _ldpoly(_In_ long double _X, _In_reads_(_N) long double const* _Tab, _In_ int _N); +_Check_return_ _ACRTIMP float __cdecl _fdpoly(_In_ float _X, _In_reads_(_N) float const* _Tab, _In_ int _N); + +_Check_return_ _ACRTIMP double __cdecl _dlog(_In_ double _X, _In_ int _Baseflag); +_Check_return_ _ACRTIMP long double __cdecl _ldlog(_In_ long double _X, _In_ int _Baseflag); +_Check_return_ _ACRTIMP float __cdecl _fdlog(_In_ float _X, _In_ int _Baseflag); + +_Check_return_ _ACRTIMP double __cdecl _dsin(_In_ double _X, _In_ unsigned int _Qoff); +_Check_return_ _ACRTIMP long double __cdecl _ldsin(_In_ long double _X, _In_ unsigned int _Qoff); +_Check_return_ _ACRTIMP float __cdecl _fdsin(_In_ float _X, _In_ unsigned int _Qoff); + +// double declarations +typedef union +{ // pun floating type as integer array + unsigned short _Sh[4]; + double _Val; +} _double_val; + +// float declarations +typedef union +{ // pun floating type as integer array + unsigned short _Sh[2]; + float _Val; +} _float_val; + +// long double declarations +typedef union +{ // pun floating type as integer array + unsigned short _Sh[4]; + long double _Val; +} _ldouble_val; + +typedef union +{ // pun float types as integer array + unsigned short _Word[4]; + float _Float; + double _Double; + long double _Long_double; +} _float_const; + +extern const _float_const _Denorm_C, _Inf_C, _Nan_C, _Snan_C, _Hugeval_C; +extern const _float_const _FDenorm_C, _FInf_C, _FNan_C, _FSnan_C; +extern const _float_const _LDenorm_C, _LInf_C, _LNan_C, _LSnan_C; + +extern const _float_const _Eps_C, _Rteps_C; +extern const _float_const _FEps_C, _FRteps_C; +extern const _float_const _LEps_C, _LRteps_C; + +extern const double _Zero_C, _Xbig_C; +extern const float _FZero_C, _FXbig_C; +extern const long double _LZero_C, _LXbig_C; + +#define _FP_LT 1 +#define _FP_EQ 2 +#define _FP_GT 4 + +#ifndef __cplusplus + + #define _CLASS_ARG(_Val) __pragma(warning(suppress:6334))(sizeof ((_Val) + (float)0) == sizeof (float) ? 'f' : sizeof ((_Val) + (double)0) == sizeof (double) ? 'd' : 'l') + #define _CLASSIFY(_Val, _FFunc, _DFunc, _LDFunc) (_CLASS_ARG(_Val) == 'f' ? _FFunc((float)(_Val)) : _CLASS_ARG(_Val) == 'd' ? _DFunc((double)(_Val)) : _LDFunc((long double)(_Val))) + #define _CLASSIFY2(_Val1, _Val2, _FFunc, _DFunc, _LDFunc) (_CLASS_ARG((_Val1) + (_Val2)) == 'f' ? _FFunc((float)(_Val1), (float)(_Val2)) : _CLASS_ARG((_Val1) + (_Val2)) == 'd' ? _DFunc((double)(_Val1), (double)(_Val2)) : _LDFunc((long double)(_Val1), (long double)(_Val2))) + +#if defined(__clang__) + #define fpclassify(_Val) __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, _Val) +#else + #define fpclassify(_Val) (_CLASSIFY(_Val, _fdclass, _dclass, _ldclass)) +#endif + #define _FPCOMPARE(_Val1, _Val2) (_CLASSIFY2(_Val1, _Val2, _fdpcomp, _dpcomp, _ldpcomp)) + + #define isfinite(_Val) (fpclassify(_Val) <= 0) + #define isinf(_Val) (fpclassify(_Val) == FP_INFINITE) + #define isnan(_Val) (fpclassify(_Val) == FP_NAN) + #define isnormal(_Val) (fpclassify(_Val) == FP_NORMAL) + #define signbit(_Val) (_CLASSIFY(_Val, _fdsign, _dsign, _ldsign)) + + #define isgreater(x, y) ((_FPCOMPARE(x, y) & _FP_GT) != 0) + #define isgreaterequal(x, y) ((_FPCOMPARE(x, y) & (_FP_EQ | _FP_GT)) != 0) + #define isless(x, y) ((_FPCOMPARE(x, y) & _FP_LT) != 0) + #define islessequal(x, y) ((_FPCOMPARE(x, y) & (_FP_LT | _FP_EQ)) != 0) + #define islessgreater(x, y) ((_FPCOMPARE(x, y) & (_FP_LT | _FP_GT)) != 0) + #define isunordered(x, y) (_FPCOMPARE(x, y) == 0) + +#else // __cplusplus +extern "C++" +{ + _Check_return_ inline int fpclassify(_In_ float _X) throw() + { +#if defined(__clang__) + return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, _X); +#else + return _fdtest(&_X); +#endif + } + + _Check_return_ inline int fpclassify(_In_ double _X) throw() + { +#if defined(__clang__) + return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, _X); +#else + return _dtest(&_X); +#endif + } + + _Check_return_ inline int fpclassify(_In_ long double _X) throw() + { +#if defined(__clang__) + return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, FP_ZERO, _X); +#else + return _ldtest(&_X); +#endif + } + + _Check_return_ inline bool signbit(_In_ float _X) throw() + { + return _fdsign(_X) != 0; + } + + _Check_return_ inline bool signbit(_In_ double _X) throw() + { + return _dsign(_X) != 0; + } + + _Check_return_ inline bool signbit(_In_ long double _X) throw() + { + return _ldsign(_X) != 0; + } + + _Check_return_ inline int _fpcomp(_In_ float _X, _In_ float _Y) throw() + { + return _fdpcomp(_X, _Y); + } + + _Check_return_ inline int _fpcomp(_In_ double _X, _In_ double _Y) throw() + { + return _dpcomp(_X, _Y); + } + + _Check_return_ inline int _fpcomp(_In_ long double _X, _In_ long double _Y) throw() + { + return _ldpcomp(_X, _Y); + } + + template struct _Combined_type + { // determine combined type + typedef float _Type; + }; + + template <> struct _Combined_type + { // determine combined type + typedef double _Type; + }; + + template <> struct _Combined_type + { // determine combined type + typedef long double _Type; + }; + + template struct _Real_widened + { // determine widened real type + typedef long double _Type; + }; + + template <> struct _Real_widened + { // determine widened real type + typedef float _Type; + }; + + template <> struct _Real_widened + { // determine widened real type + typedef double _Type; + }; + + template <> struct _Real_widened + { // determine widened real type + typedef double _Type; + }; + + template <> struct _Real_widened + { // determine widened real type + typedef double _Type; + }; + + template struct _Real_type + { // determine equivalent real type + typedef double _Type; // default is double + }; + + template <> struct _Real_type + { // determine equivalent real type + typedef float _Type; + }; + + template <> struct _Real_type + { // determine equivalent real type + typedef long double _Type; + }; + + template + _Check_return_ inline int _fpcomp(_In_ _T1 _X, _In_ _T2 _Y) throw() + { // compare _Left and _Right + typedef typename _Combined_type::_Type, + typename _Real_type<_T2>::_Type>::_Type>::_Type _Tw; + return _fpcomp((_Tw)_X, (_Tw)_Y); + } + + template + _Check_return_ inline bool isfinite(_In_ _Ty _X) throw() + { + return fpclassify(_X) <= 0; + } + + template + _Check_return_ inline bool isinf(_In_ _Ty _X) throw() + { + return fpclassify(_X) == FP_INFINITE; + } + + template + _Check_return_ inline bool isnan(_In_ _Ty _X) throw() + { + return fpclassify(_X) == FP_NAN; + } + + template + _Check_return_ inline bool isnormal(_In_ _Ty _X) throw() + { + return fpclassify(_X) == FP_NORMAL; + } + + template + _Check_return_ inline bool isgreater(_In_ _Ty1 _X, _In_ _Ty2 _Y) throw() + { + return (_fpcomp(_X, _Y) & _FP_GT) != 0; + } + + template + _Check_return_ inline bool isgreaterequal(_In_ _Ty1 _X, _In_ _Ty2 _Y) throw() + { + return (_fpcomp(_X, _Y) & (_FP_EQ | _FP_GT)) != 0; + } + + template + _Check_return_ inline bool isless(_In_ _Ty1 _X, _In_ _Ty2 _Y) throw() + { + return (_fpcomp(_X, _Y) & _FP_LT) != 0; + } + + template + _Check_return_ inline bool islessequal(_In_ _Ty1 _X, _In_ _Ty2 _Y) throw() + { + return (_fpcomp(_X, _Y) & (_FP_LT | _FP_EQ)) != 0; + } + + template + _Check_return_ inline bool islessgreater(_In_ _Ty1 _X, _In_ _Ty2 _Y) throw() + { + return (_fpcomp(_X, _Y) & (_FP_LT | _FP_GT)) != 0; + } + + template + _Check_return_ inline bool isunordered(_In_ _Ty1 _X, _In_ _Ty2 _Y) throw() + { + return _fpcomp(_X, _Y) == 0; + } +} // extern "C++" +#endif // __cplusplus + + + +#if _CRT_FUNCTIONS_REQUIRED + + _Check_return_ int __cdecl abs(_In_ int _X); + _Check_return_ long __cdecl labs(_In_ long _X); + _Check_return_ long long __cdecl llabs(_In_ long long _X); + + _Check_return_ double __cdecl acos(_In_ double _X); + _Check_return_ double __cdecl asin(_In_ double _X); + _Check_return_ double __cdecl atan(_In_ double _X); + _Check_return_ double __cdecl atan2(_In_ double _Y, _In_ double _X); + + _Check_return_ double __cdecl cos(_In_ double _X); + _Check_return_ double __cdecl cosh(_In_ double _X); + _Check_return_ double __cdecl exp(_In_ double _X); + _Check_return_ _CRT_JIT_INTRINSIC double __cdecl fabs(_In_ double _X); + _Check_return_ double __cdecl fmod(_In_ double _X, _In_ double _Y); + _Check_return_ double __cdecl log(_In_ double _X); + _Check_return_ double __cdecl log10(_In_ double _X); + _Check_return_ double __cdecl pow(_In_ double _X, _In_ double _Y); + _Check_return_ double __cdecl sin(_In_ double _X); + _Check_return_ double __cdecl sinh(_In_ double _X); + _Check_return_ _CRT_JIT_INTRINSIC double __cdecl sqrt(_In_ double _X); + _Check_return_ double __cdecl tan(_In_ double _X); + _Check_return_ double __cdecl tanh(_In_ double _X); + + _Check_return_ _ACRTIMP double __cdecl acosh(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl asinh(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl atanh(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl atof(_In_z_ char const* _String); + _Check_return_ _ACRTIMP double __cdecl _atof_l(_In_z_ char const* _String, _In_opt_ _locale_t _Locale); + _Check_return_ _ACRTIMP double __cdecl _cabs(_In_ struct _complex _Complex_value); + _Check_return_ _ACRTIMP double __cdecl cbrt(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl ceil(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl _chgsign(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl copysign(_In_ double _Number, _In_ double _Sign); + _Check_return_ _ACRTIMP double __cdecl _copysign(_In_ double _Number, _In_ double _Sign); + _Check_return_ _ACRTIMP double __cdecl erf(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl erfc(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl exp2(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl expm1(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl fdim(_In_ double _X, _In_ double _Y); + _Check_return_ _ACRTIMP double __cdecl floor(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl fma(_In_ double _X, _In_ double _Y, _In_ double _Z); + _Check_return_ _ACRTIMP double __cdecl fmax(_In_ double _X, _In_ double _Y); + _Check_return_ _ACRTIMP double __cdecl fmin(_In_ double _X, _In_ double _Y); + _Check_return_ _ACRTIMP double __cdecl frexp(_In_ double _X, _Out_ int* _Y); + _Check_return_ _ACRTIMP double __cdecl hypot(_In_ double _X, _In_ double _Y); + _Check_return_ _ACRTIMP double __cdecl _hypot(_In_ double _X, _In_ double _Y); + _Check_return_ _ACRTIMP int __cdecl ilogb(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl ldexp(_In_ double _X, _In_ int _Y); + _Check_return_ _ACRTIMP double __cdecl lgamma(_In_ double _X); + _Check_return_ _ACRTIMP long long __cdecl llrint(_In_ double _X); + _Check_return_ _ACRTIMP long long __cdecl llround(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl log1p(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl log2(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl logb(_In_ double _X); + _Check_return_ _ACRTIMP long __cdecl lrint(_In_ double _X); + _Check_return_ _ACRTIMP long __cdecl lround(_In_ double _X); + + int __CRTDECL _matherr(_Inout_ struct _exception* _Except); + + _Check_return_ _ACRTIMP double __cdecl modf(_In_ double _X, _Out_ double* _Y); + _Check_return_ _ACRTIMP double __cdecl nan(_In_ char const* _X); + _Check_return_ _ACRTIMP double __cdecl nearbyint(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl nextafter(_In_ double _X, _In_ double _Y); + _Check_return_ _ACRTIMP double __cdecl nexttoward(_In_ double _X, _In_ long double _Y); + _Check_return_ _ACRTIMP double __cdecl remainder(_In_ double _X, _In_ double _Y); + _Check_return_ _ACRTIMP double __cdecl remquo(_In_ double _X, _In_ double _Y, _Out_ int* _Z); + _Check_return_ _ACRTIMP double __cdecl rint(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl round(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl scalbln(_In_ double _X, _In_ long _Y); + _Check_return_ _ACRTIMP double __cdecl scalbn(_In_ double _X, _In_ int _Y); + _Check_return_ _ACRTIMP double __cdecl tgamma(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl trunc(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl _j0(_In_ double _X ); + _Check_return_ _ACRTIMP double __cdecl _j1(_In_ double _X ); + _Check_return_ _ACRTIMP double __cdecl _jn(int _X, _In_ double _Y); + _Check_return_ _ACRTIMP double __cdecl _y0(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl _y1(_In_ double _X); + _Check_return_ _ACRTIMP double __cdecl _yn(_In_ int _X, _In_ double _Y); + + _Check_return_ _ACRTIMP float __cdecl acoshf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl asinhf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl atanhf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl cbrtf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl _chgsignf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl copysignf(_In_ float _Number, _In_ float _Sign); + _Check_return_ _ACRTIMP float __cdecl _copysignf(_In_ float _Number, _In_ float _Sign); + _Check_return_ _ACRTIMP float __cdecl erff(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl erfcf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl expm1f(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl exp2f(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl fdimf(_In_ float _X, _In_ float _Y); + _Check_return_ _ACRTIMP float __cdecl fmaf(_In_ float _X, _In_ float _Y, _In_ float _Z); + _Check_return_ _ACRTIMP float __cdecl fmaxf(_In_ float _X, _In_ float _Y); + _Check_return_ _ACRTIMP float __cdecl fminf(_In_ float _X, _In_ float _Y); + _Check_return_ _ACRTIMP float __cdecl _hypotf(_In_ float _X, _In_ float _Y); + _Check_return_ _ACRTIMP int __cdecl ilogbf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl lgammaf(_In_ float _X); + _Check_return_ _ACRTIMP long long __cdecl llrintf(_In_ float _X); + _Check_return_ _ACRTIMP long long __cdecl llroundf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl log1pf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl log2f(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl logbf(_In_ float _X); + _Check_return_ _ACRTIMP long __cdecl lrintf(_In_ float _X); + _Check_return_ _ACRTIMP long __cdecl lroundf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl nanf(_In_ char const* _X); + _Check_return_ _ACRTIMP float __cdecl nearbyintf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl nextafterf(_In_ float _X, _In_ float _Y); + _Check_return_ _ACRTIMP float __cdecl nexttowardf(_In_ float _X, _In_ long double _Y); + _Check_return_ _ACRTIMP float __cdecl remainderf(_In_ float _X, _In_ float _Y); + _Check_return_ _ACRTIMP float __cdecl remquof(_In_ float _X, _In_ float _Y, _Out_ int* _Z); + _Check_return_ _ACRTIMP float __cdecl rintf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl roundf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl scalblnf(_In_ float _X, _In_ long _Y); + _Check_return_ _ACRTIMP float __cdecl scalbnf(_In_ float _X, _In_ int _Y); + _Check_return_ _ACRTIMP float __cdecl tgammaf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl truncf(_In_ float _X); + + #if defined _M_IX86 + + _Check_return_ _ACRTIMP int __cdecl _set_SSE2_enable(_In_ int _Flag); + + #endif + + #if defined _M_X64 + + _Check_return_ _ACRTIMP float __cdecl _logbf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl _nextafterf(_In_ float _X, _In_ float _Y); + _Check_return_ _ACRTIMP int __cdecl _finitef(_In_ float _X); + _Check_return_ _ACRTIMP int __cdecl _isnanf(_In_ float _X); + _Check_return_ _ACRTIMP int __cdecl _fpclassf(_In_ float _X); + + _Check_return_ _ACRTIMP int __cdecl _set_FMA3_enable(_In_ int _Flag); + _Check_return_ _ACRTIMP int __cdecl _get_FMA3_enable(void); + + #elif defined _M_ARM || defined _M_ARM64 || defined _M_HYBRID_X86_ARM64 + + _Check_return_ _ACRTIMP int __cdecl _finitef(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl _logbf(_In_ float _X); + + #endif + + + + #if defined _M_X64 || defined _M_ARM || defined _M_ARM64 || defined _M_HYBRID_X86_ARM64 || defined _CORECRT_BUILD_APISET || defined _M_ARM64EC + + _Check_return_ _ACRTIMP float __cdecl acosf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl asinf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl atan2f(_In_ float _Y, _In_ float _X); + _Check_return_ _ACRTIMP float __cdecl atanf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl ceilf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl cosf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl coshf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl expf(_In_ float _X); + + #else + + _Check_return_ __inline float __CRTDECL acosf(_In_ float _X) + { + return (float)acos(_X); + } + + _Check_return_ __inline float __CRTDECL asinf(_In_ float _X) + { + return (float)asin(_X); + } + + _Check_return_ __inline float __CRTDECL atan2f(_In_ float _Y, _In_ float _X) + { + return (float)atan2(_Y, _X); + } + + _Check_return_ __inline float __CRTDECL atanf(_In_ float _X) + { + return (float)atan(_X); + } + + _Check_return_ __inline float __CRTDECL ceilf(_In_ float _X) + { + return (float)ceil(_X); + } + + _Check_return_ __inline float __CRTDECL cosf(_In_ float _X) + { + return (float)cos(_X); + } + + _Check_return_ __inline float __CRTDECL coshf(_In_ float _X) + { + return (float)cosh(_X); + } + + _Check_return_ __inline float __CRTDECL expf(_In_ float _X) + { + return (float)exp(_X); + } + + #endif + + #if defined _M_ARM || defined _M_ARM64 || defined _M_HYBRID_X86_ARM64 + + _Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP float __cdecl fabsf(_In_ float _X); + + #else + + #if defined _M_ARM64EC + _Check_return_ __inline float __CRTDECL fabsf(_In_ float _X); + #pragma function(fabsf) + #endif + + _Check_return_ __inline float __CRTDECL fabsf(_In_ float _X) + { + return (float)fabs(_X); + } + + #endif + + #if defined _M_X64 || defined _M_ARM || defined _M_ARM64 || defined _M_HYBRID_X86_ARM64 || defined _M_ARM64EC + + _Check_return_ _ACRTIMP float __cdecl floorf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl fmodf(_In_ float _X, _In_ float _Y); + + #else + + _Check_return_ __inline float __CRTDECL floorf(_In_ float _X) + { + return (float)floor(_X); + } + + _Check_return_ __inline float __CRTDECL fmodf(_In_ float _X, _In_ float _Y) + { + return (float)fmod(_X, _Y); + } + + #endif + + _Check_return_ __inline float __CRTDECL frexpf(_In_ float _X, _Out_ int *_Y) + { + return (float)frexp(_X, _Y); + } + + _Check_return_ __inline float __CRTDECL hypotf(_In_ float _X, _In_ float _Y) + { + return _hypotf(_X, _Y); + } + + _Check_return_ __inline float __CRTDECL ldexpf(_In_ float _X, _In_ int _Y) + { + return (float)ldexp(_X, _Y); + } + + #if defined _M_X64 || defined _M_ARM || defined _M_ARM64 || defined _M_HYBRID_X86_ARM64 || defined _CORECRT_BUILD_APISET || defined _M_ARM64EC + + _Check_return_ _ACRTIMP float __cdecl log10f(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl logf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl modff(_In_ float _X, _Out_ float *_Y); + _Check_return_ _ACRTIMP float __cdecl powf(_In_ float _X, _In_ float _Y); + _Check_return_ _ACRTIMP float __cdecl sinf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl sinhf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl sqrtf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl tanf(_In_ float _X); + _Check_return_ _ACRTIMP float __cdecl tanhf(_In_ float _X); + + #else + + _Check_return_ __inline float __CRTDECL log10f(_In_ float _X) + { + return (float)log10(_X); + } + + _Check_return_ __inline float __CRTDECL logf(_In_ float _X) + { + return (float)log(_X); + } + + _Check_return_ __inline float __CRTDECL modff(_In_ float _X, _Out_ float* _Y) + { + double _F, _I; + _F = modf(_X, &_I); + *_Y = (float)_I; + return (float)_F; + } + + _Check_return_ __inline float __CRTDECL powf(_In_ float _X, _In_ float _Y) + { + return (float)pow(_X, _Y); + } + + _Check_return_ __inline float __CRTDECL sinf(_In_ float _X) + { + return (float)sin(_X); + } + + _Check_return_ __inline float __CRTDECL sinhf(_In_ float _X) + { + return (float)sinh(_X); + } + + _Check_return_ __inline float __CRTDECL sqrtf(_In_ float _X) + { + return (float)sqrt(_X); + } + + _Check_return_ __inline float __CRTDECL tanf(_In_ float _X) + { + return (float)tan(_X); + } + + _Check_return_ __inline float __CRTDECL tanhf(_In_ float _X) + { + return (float)tanh(_X); + } + + #endif + + _Check_return_ _ACRTIMP long double __cdecl acoshl(_In_ long double _X); + + _Check_return_ __inline long double __CRTDECL acosl(_In_ long double _X) + { + return acos((double)_X); + } + + _Check_return_ _ACRTIMP long double __cdecl asinhl(_In_ long double _X); + + _Check_return_ __inline long double __CRTDECL asinl(_In_ long double _X) + { + return asin((double)_X); + } + + _Check_return_ __inline long double __CRTDECL atan2l(_In_ long double _Y, _In_ long double _X) + { + return atan2((double)_Y, (double)_X); + } + + _Check_return_ _ACRTIMP long double __cdecl atanhl(_In_ long double _X); + + _Check_return_ __inline long double __CRTDECL atanl(_In_ long double _X) + { + return atan((double)_X); + } + + _Check_return_ _ACRTIMP long double __cdecl cbrtl(_In_ long double _X); + + _Check_return_ __inline long double __CRTDECL ceill(_In_ long double _X) + { + return ceil((double)_X); + } + + _Check_return_ __inline long double __CRTDECL _chgsignl(_In_ long double _X) + { + return _chgsign((double)_X); + } + + _Check_return_ _ACRTIMP long double __cdecl copysignl(_In_ long double _Number, _In_ long double _Sign); + + _Check_return_ __inline long double __CRTDECL _copysignl(_In_ long double _Number, _In_ long double _Sign) + { + return _copysign((double)_Number, (double)_Sign); + } + + _Check_return_ __inline long double __CRTDECL coshl(_In_ long double _X) + { + return cosh((double)_X); + } + + _Check_return_ __inline long double __CRTDECL cosl(_In_ long double _X) + { + return cos((double)_X); + } + + _Check_return_ _ACRTIMP long double __cdecl erfl(_In_ long double _X); + _Check_return_ _ACRTIMP long double __cdecl erfcl(_In_ long double _X); + + _Check_return_ __inline long double __CRTDECL expl(_In_ long double _X) + { + return exp((double)_X); + } + + _Check_return_ _ACRTIMP long double __cdecl exp2l(_In_ long double _X); + _Check_return_ _ACRTIMP long double __cdecl expm1l(_In_ long double _X); + + _Check_return_ __inline long double __CRTDECL fabsl(_In_ long double _X) + { + return fabs((double)_X); + } + + _Check_return_ _ACRTIMP long double __cdecl fdiml(_In_ long double _X, _In_ long double _Y); + + _Check_return_ __inline long double __CRTDECL floorl(_In_ long double _X) + { + return floor((double)_X); + } + + _Check_return_ _ACRTIMP long double __cdecl fmal(_In_ long double _X, _In_ long double _Y, _In_ long double _Z); + _Check_return_ _ACRTIMP long double __cdecl fmaxl(_In_ long double _X, _In_ long double _Y); + _Check_return_ _ACRTIMP long double __cdecl fminl(_In_ long double _X, _In_ long double _Y); + + _Check_return_ __inline long double __CRTDECL fmodl(_In_ long double _X, _In_ long double _Y) + { + return fmod((double)_X, (double)_Y); + } + + _Check_return_ __inline long double __CRTDECL frexpl(_In_ long double _X, _Out_ int *_Y) + { + return frexp((double)_X, _Y); + } + + _Check_return_ _ACRTIMP int __cdecl ilogbl(_In_ long double _X); + + _Check_return_ __inline long double __CRTDECL _hypotl(_In_ long double _X, _In_ long double _Y) + { + return _hypot((double)_X, (double)_Y); + } + + _Check_return_ __inline long double __CRTDECL hypotl(_In_ long double _X, _In_ long double _Y) + { + return _hypot((double)_X, (double)_Y); + } + + _Check_return_ __inline long double __CRTDECL ldexpl(_In_ long double _X, _In_ int _Y) + { + return ldexp((double)_X, _Y); + } + + _Check_return_ _ACRTIMP long double __cdecl lgammal(_In_ long double _X); + _Check_return_ _ACRTIMP long long __cdecl llrintl(_In_ long double _X); + _Check_return_ _ACRTIMP long long __cdecl llroundl(_In_ long double _X); + + _Check_return_ __inline long double __CRTDECL logl(_In_ long double _X) + { + return log((double)_X); + } + + _Check_return_ __inline long double __CRTDECL log10l(_In_ long double _X) + { + return log10((double)_X); + } + + _Check_return_ _ACRTIMP long double __cdecl log1pl(_In_ long double _X); + _Check_return_ _ACRTIMP long double __cdecl log2l(_In_ long double _X); + _Check_return_ _ACRTIMP long double __cdecl logbl(_In_ long double _X); + _Check_return_ _ACRTIMP long __cdecl lrintl(_In_ long double _X); + _Check_return_ _ACRTIMP long __cdecl lroundl(_In_ long double _X); + + _Check_return_ __inline long double __CRTDECL modfl(_In_ long double _X, _Out_ long double* _Y) + { + double _F, _I; + _F = modf((double)_X, &_I); + *_Y = _I; + return _F; + } + + _Check_return_ _ACRTIMP long double __cdecl nanl(_In_ char const* _X); + _Check_return_ _ACRTIMP long double __cdecl nearbyintl(_In_ long double _X); + _Check_return_ _ACRTIMP long double __cdecl nextafterl(_In_ long double _X, _In_ long double _Y); + _Check_return_ _ACRTIMP long double __cdecl nexttowardl(_In_ long double _X, _In_ long double _Y); + + _Check_return_ __inline long double __CRTDECL powl(_In_ long double _X, _In_ long double _Y) + { + return pow((double)_X, (double)_Y); + } + + _Check_return_ _ACRTIMP long double __cdecl remainderl(_In_ long double _X, _In_ long double _Y); + _Check_return_ _ACRTIMP long double __cdecl remquol(_In_ long double _X, _In_ long double _Y, _Out_ int* _Z); + _Check_return_ _ACRTIMP long double __cdecl rintl(_In_ long double _X); + _Check_return_ _ACRTIMP long double __cdecl roundl(_In_ long double _X); + _Check_return_ _ACRTIMP long double __cdecl scalblnl(_In_ long double _X, _In_ long _Y); + _Check_return_ _ACRTIMP long double __cdecl scalbnl(_In_ long double _X, _In_ int _Y); + + _Check_return_ __inline long double __CRTDECL sinhl(_In_ long double _X) + { + return sinh((double)_X); + } + + _Check_return_ __inline long double __CRTDECL sinl(_In_ long double _X) + { + return sin((double)_X); + } + + _Check_return_ __inline long double __CRTDECL sqrtl(_In_ long double _X) + { + return sqrt((double)_X); + } + + _Check_return_ __inline long double __CRTDECL tanhl(_In_ long double _X) + { + return tanh((double)_X); + } + + _Check_return_ __inline long double __CRTDECL tanl(_In_ long double _X) + { + return tan((double)_X); + } + + _Check_return_ _ACRTIMP long double __cdecl tgammal(_In_ long double _X); + _Check_return_ _ACRTIMP long double __cdecl truncl(_In_ long double _X); + + #ifndef __cplusplus + #define _matherrl _matherr + #endif + +#endif // _CRT_FUNCTIONS_REQUIRED + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + #define DOMAIN _DOMAIN + #define SING _SING + #define OVERFLOW _OVERFLOW + #define UNDERFLOW _UNDERFLOW + #define TLOSS _TLOSS + #define PLOSS _PLOSS + + #define matherr _matherr + + #ifndef __assembler + #ifndef _M_CEE_PURE + extern double HUGE; + #else + double const HUGE = _HUGE; + #endif + + _CRT_NONSTDC_DEPRECATE(_j0) _Check_return_ _ACRTIMP double __cdecl j0(_In_ double _X); + _CRT_NONSTDC_DEPRECATE(_j1) _Check_return_ _ACRTIMP double __cdecl j1(_In_ double _X); + _CRT_NONSTDC_DEPRECATE(_jn) _Check_return_ _ACRTIMP double __cdecl jn(_In_ int _X, _In_ double _Y); + _CRT_NONSTDC_DEPRECATE(_y0) _Check_return_ _ACRTIMP double __cdecl y0(_In_ double _X); + _CRT_NONSTDC_DEPRECATE(_y1) _Check_return_ _ACRTIMP double __cdecl y1(_In_ double _X); + _CRT_NONSTDC_DEPRECATE(_yn) _Check_return_ _ACRTIMP double __cdecl yn(_In_ int _X, _In_ double _Y); + #endif // !__assembler + +#endif // _CRT_INTERNAL_NONSTDC_NAMES + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif /* _INC_MATH */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_math_defines.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_math_defines.h new file mode 100644 index 0000000000000000000000000000000000000000..a1849b8ea3c697ec1a38979e03a4fec1b921ba68 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_math_defines.h @@ -0,0 +1,39 @@ +// +// corecrt_math_defines.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Definitions of useful mathematical constants +// +#pragma once +#ifndef _MATH_DEFINES_DEFINED +#define _MATH_DEFINES_DEFINED + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +// Definitions of useful mathematical constants +// +// Define _USE_MATH_DEFINES before including to expose these macro +// definitions for common math constants. These are placed under an #ifdef +// since these commonly-defined names are not part of the C or C++ standards +#define M_E 2.71828182845904523536 // e +#define M_LOG2E 1.44269504088896340736 // log2(e) +#define M_LOG10E 0.434294481903251827651 // log10(e) +#define M_LN2 0.693147180559945309417 // ln(2) +#define M_LN10 2.30258509299404568402 // ln(10) +#define M_PI 3.14159265358979323846 // pi +#define M_PI_2 1.57079632679489661923 // pi/2 +#define M_PI_4 0.785398163397448309616 // pi/4 +#define M_1_PI 0.318309886183790671538 // 1/pi +#define M_2_PI 0.636619772367581343076 // 2/pi +#define M_2_SQRTPI 1.12837916709551257390 // 2/sqrt(pi) +#define M_SQRT2 1.41421356237309504880 // sqrt(2) +#define M_SQRT1_2 0.707106781186547524401 // 1/sqrt(2) + +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _MATH_DEFINES_DEFINED diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_memcpy_s.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_memcpy_s.h new file mode 100644 index 0000000000000000000000000000000000000000..5dd9a1132aec0996a7e0bb8beb7eeae2e5a70c8d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_memcpy_s.h @@ -0,0 +1,95 @@ +// +// corecrt_memcpy_s.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Inline definitions of memcpy_s and memmove_s +// +#pragma once + +#include +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +#ifndef _CRT_MEMCPY_S_INLINE + #define _CRT_MEMCPY_S_INLINE static __inline +#endif + +#define _CRT_MEMCPY_S_VALIDATE_RETURN_ERRCODE(expr, errorcode) \ + { \ + int _Expr_val=!!(expr); \ + if (!(_Expr_val)) \ + { \ + errno = errorcode; \ + _invalid_parameter_noinfo(); \ + return errorcode; \ + } \ + } + +#if !defined RC_INVOKED && !defined __midl && __STDC_WANT_SECURE_LIB__ + + // TRANSITION OS-58345186: this function should have external linkage. + _Success_(return == 0) + _Check_return_opt_ + _CRT_MEMCPY_S_INLINE errno_t __CRTDECL memcpy_s( + _Out_writes_bytes_to_opt_(_DestinationSize, _SourceSize) void* const _Destination, + _In_ rsize_t const _DestinationSize, + _In_reads_bytes_opt_(_SourceSize) void const* const _Source, + _In_ rsize_t const _SourceSize + ) + { + if (_SourceSize == 0) + { + return 0; + } + + _CRT_MEMCPY_S_VALIDATE_RETURN_ERRCODE(_Destination != NULL, EINVAL); + if (_Source == NULL || _DestinationSize < _SourceSize) + { + memset(_Destination, 0, _DestinationSize); + + _CRT_MEMCPY_S_VALIDATE_RETURN_ERRCODE(_Source != NULL, EINVAL); + _CRT_MEMCPY_S_VALIDATE_RETURN_ERRCODE(_DestinationSize >= _SourceSize, ERANGE); + + // Unreachable, but required to suppress /analyze warnings: + return EINVAL; + } + memcpy(_Destination, _Source, _SourceSize); + return 0; + } + + // TRANSITION OS-58345186: this function should have external linkage. + _Check_return_wat_ + _CRT_MEMCPY_S_INLINE errno_t __CRTDECL memmove_s( + _Out_writes_bytes_to_opt_(_DestinationSize, _SourceSize) void* const _Destination, + _In_ rsize_t const _DestinationSize, + _In_reads_bytes_opt_(_SourceSize) void const* const _Source, + _In_ rsize_t const _SourceSize + ) + { + if (_SourceSize == 0) + { + return 0; + } + + _CRT_MEMCPY_S_VALIDATE_RETURN_ERRCODE(_Destination != NULL, EINVAL); + _CRT_MEMCPY_S_VALIDATE_RETURN_ERRCODE(_Source != NULL, EINVAL); + _CRT_MEMCPY_S_VALIDATE_RETURN_ERRCODE(_DestinationSize >= _SourceSize, ERANGE); + + memmove(_Destination, _Source, _SourceSize); + return 0; + } + +#endif + +#undef _CRT_MEMCPY_S_VALIDATE_RETURN_ERRCODE + +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +_CRT_END_C_HEADER diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_memory.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_memory.h new file mode 100644 index 0000000000000000000000000000000000000000..ec8077a4b3dc32a51c4b0860fae32f4ef3503dd9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_memory.h @@ -0,0 +1,122 @@ +// +// corecrt_memory.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The buffer (memory) manipulation library. These declarations are split out +// so that they may be included by both and . +// does not include to avoid introducing conflicts with other user +// headers named . +// +#pragma once + +#include +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +#ifndef __midl + +_CRT_BEGIN_C_HEADER + + + +_Check_return_ +_ACRTIMP int __cdecl _memicmp( + _In_reads_bytes_opt_(_Size) void const* _Buf1, + _In_reads_bytes_opt_(_Size) void const* _Buf2, + _In_ size_t _Size + ); + +_Check_return_ +_ACRTIMP int __cdecl _memicmp_l( + _In_reads_bytes_opt_(_Size) void const* _Buf1, + _In_reads_bytes_opt_(_Size) void const* _Buf2, + _In_ size_t _Size, + _In_opt_ _locale_t _Locale + ); + + + +#if !defined RC_INVOKED && __STDC_WANT_SECURE_LIB__ + + #if defined __cplusplus && _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY + extern "C++" + { + template + inline typename _CrtEnableIf<(_Size > 1), void *>::_Type __cdecl memcpy( + _DstType (&_Dst)[_Size], + _In_reads_bytes_opt_(_SrcSize) void const* _Src, + _In_ size_t _SrcSize + ) _CRT_SECURE_CPP_NOTHROW + { + return memcpy_s(_Dst, _Size * sizeof(_DstType), _Src, _SrcSize) == 0 ? _Dst : 0; + } + } + #endif + + #if defined __cplusplus && _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY + extern "C++" + { + template + inline errno_t __CRTDECL memcpy_s( + _DstType (&_Dst)[_Size], + _In_reads_bytes_opt_(_SrcSize) void const* _Src, + _In_ rsize_t _SrcSize + ) _CRT_SECURE_CPP_NOTHROW + { + return memcpy_s(_Dst, _Size * sizeof(_DstType), _Src, _SrcSize); + } + } + #endif + +#endif // !defined RC_INVOKED && __STDC_WANT_SECURE_LIB__ + + + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + _CRT_NONSTDC_DEPRECATE(_memccpy) + _ACRTIMP void* __cdecl memccpy( + _Out_writes_bytes_opt_(_Size) void* _Dst, + _In_reads_bytes_opt_(_Size) void const* _Src, + _In_ int _Val, + _In_ size_t _Size + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_memicmp) + _ACRTIMP int __cdecl memicmp( + _In_reads_bytes_opt_(_Size) void const* _Buf1, + _In_reads_bytes_opt_(_Size) void const* _Buf2, + _In_ size_t _Size + ); + +#endif // _CRT_INTERNAL_NONSTDC_NAMES + + + +#if defined __cplusplus + + extern "C++" _Check_return_ + inline void* __CRTDECL memchr( + _In_reads_bytes_opt_(_N) void* _Pv, + _In_ int _C, + _In_ size_t _N + ) + { + void const* const _Pvc = _Pv; + return const_cast(memchr(_Pvc, _C, _N)); + } + +#endif + + + +_CRT_END_C_HEADER + +#endif // !__midl +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_search.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_search.h new file mode 100644 index 0000000000000000000000000000000000000000..24db8b7f8203af8e2d37bbbbdaddb3ffb4e695ce --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_search.h @@ -0,0 +1,218 @@ +// +// corecrt_search.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Declarations of functions for sorting and searching. These declarations are +// split out so that they may be included by both and . +// does not include to avoid introducing conflicts with +// other user headers named . +// +#pragma once + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + typedef int (__cdecl* _CoreCrtSecureSearchSortCompareFunction)(void*, void const*, void const*); + typedef int (__cdecl* _CoreCrtNonSecureSearchSortCompareFunction)(void const*, void const*); + + +#if __STDC_WANT_SECURE_LIB__ + + _Check_return_ + _ACRTIMP void* __cdecl bsearch_s( + _In_ void const* _Key, + _In_reads_bytes_(_NumOfElements * _SizeOfElements) void const* _Base, + _In_ rsize_t _NumOfElements, + _In_ rsize_t _SizeOfElements, + _In_ _CoreCrtSecureSearchSortCompareFunction _CompareFunction, + _In_opt_ void* _Context + ); + + _ACRTIMP void __cdecl qsort_s( + _Inout_updates_bytes_(_NumOfElements * _SizeOfElements) void* _Base, + _In_ rsize_t _NumOfElements, + _In_ rsize_t _SizeOfElements, + _In_ _CoreCrtSecureSearchSortCompareFunction _CompareFunction, + _In_opt_ void* _Context + ); + +#endif // __STDC_WANT_SECURE_LIB__ + + + +_Check_return_ +_ACRTIMP void* __cdecl bsearch( + _In_ void const* _Key, + _In_reads_bytes_(_NumOfElements * _SizeOfElements) void const* _Base, + _In_ size_t _NumOfElements, + _In_ size_t _SizeOfElements, + _In_ _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + +_ACRTIMP void __cdecl qsort( + _Inout_updates_bytes_(_NumOfElements * _SizeOfElements) void* _Base, + _In_ size_t _NumOfElements, + _In_ size_t _SizeOfElements, + _In_ _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + +_Check_return_ +_ACRTIMP void* __cdecl _lfind_s( + _In_ void const* _Key, + _In_reads_bytes_((*_NumOfElements) * _SizeOfElements) void const* _Base, + _Inout_ unsigned int* _NumOfElements, + _In_ size_t _SizeOfElements, + _In_ _CoreCrtSecureSearchSortCompareFunction _CompareFunction, + _In_ void* _Context + ); + +_Check_return_ +_ACRTIMP void* __cdecl _lfind( + _In_ void const* _Key, + _In_reads_bytes_((*_NumOfElements) * _SizeOfElements) void const* _Base, + _Inout_ unsigned int* _NumOfElements, + _In_ unsigned int _SizeOfElements, + _In_ _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + +_Check_return_ +_ACRTIMP void* __cdecl _lsearch_s( + _In_reads_bytes_(_SizeOfElements) void const* _Key, + _Inout_updates_bytes_((*_NumOfElements + 1) * _SizeOfElements) void* _Base, + _Inout_ unsigned int* _NumOfElements, + _In_ size_t _SizeOfElements, + _In_ _CoreCrtSecureSearchSortCompareFunction _CompareFunction, + _In_ void* _Context + ); + +_Check_return_ +_ACRTIMP void* __cdecl _lsearch( + _In_reads_bytes_(_SizeOfElements) void const* _Key, + _Inout_updates_bytes_((*_NumOfElements + 1) * _SizeOfElements) void* _Base, + _Inout_ unsigned int* _NumOfElements, + _In_ unsigned int _SizeOfElements, + _In_ _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + + + +// Managed search routines +#if defined __cplusplus && defined _M_CEE +extern "C++" +{ + typedef int (__clrcall* _CoreCrtMgdSecureSearchSortCompareFunction)(void*, void const*, void const*); + typedef int (__clrcall* _CoreCrtMgdNonSecureSearchSortCompareFunction)(void const*, void const*); + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_ + void* __clrcall bsearch_s( + _In_ void const* _Key, + _In_reads_bytes_(_NumOfElements * _SizeOfElements) void const* _Base, + _In_ rsize_t _NumOfElements, + _In_ rsize_t _SizeOfElements, + _In_ _CoreCrtMgdSecureSearchSortCompareFunction _CompareFunction, + _In_ void* _Context); + + void __clrcall qsort_s( + _Inout_updates_bytes_(_NumOfElements * _SizeOfElements) void* _Base, + _In_ rsize_t _NumOfElements, + _In_ rsize_t _SizeOfElements, + _In_ _CoreCrtMgdSecureSearchSortCompareFunction _CompareFunction, + _In_ void* _Context); + + #endif // __STDC_WANT_SECURE_LIB__ + + _Check_return_ + void* __clrcall bsearch( + _In_ void const* _Key, + _In_reads_bytes_(_NumOfElements * _SizeOfElements) void const* _Base, + _In_ size_t _NumOfElements, + _In_ size_t _SizeOfElements, + _In_ _CoreCrtMgdNonSecureSearchSortCompareFunction _CompareFunction + ); + + _Check_return_ + void* __clrcall _lfind_s( + _In_ void const* _Key, + _In_reads_bytes_(_NumOfElements * _SizeOfElements) void const* _Base, + _Inout_ unsigned int* _NumOfElements, + _In_ size_t _SizeOfElements, + _In_ _CoreCrtMgdSecureSearchSortCompareFunction _CompareFunction, + _In_ void* _Context + ); + + _Check_return_ + void* __clrcall _lfind( + _In_ void const* _Key, + _In_reads_bytes_((*_NumOfElements) * _SizeOfElements) void const* _Base, + _Inout_ unsigned int* _NumOfElements, + _In_ unsigned int _SizeOfElements, + _In_ _CoreCrtMgdNonSecureSearchSortCompareFunction _CompareFunction + ); + + _Check_return_ + void* __clrcall _lsearch_s( + _In_ void const* _Key, + _In_reads_bytes_((*_NumOfElements) * _SizeOfElements) void* _Base, + _In_ unsigned int* _NumOfElements, + _In_ size_t _SizeOfElements, + _In_ _CoreCrtMgdSecureSearchSortCompareFunction _CompareFunction, + _In_ void* _Context + ); + + _Check_return_ + void* __clrcall _lsearch( + _In_ void const* _Key, + _Inout_updates_bytes_((*_NumOfElements) * _SizeOfElements) void* _Base, + _Inout_ unsigned int* _NumOfElements, + _In_ unsigned int _SizeOfElements, + _In_ _CoreCrtMgdNonSecureSearchSortCompareFunction _CompareFunction + ); + + void __clrcall qsort( + _Inout_updates_bytes_(_NumOfElements * _SizeOfElements) void* _Base, + _In_ size_t _NumOfElements, + _In_ size_t _SizeOfElements, + _In_ _CoreCrtMgdNonSecureSearchSortCompareFunction _CompareFunction + ); +} +#endif // defined __cplusplus && defined _M_CEE + + + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_lfind) + _ACRTIMP void* __cdecl lfind( + _In_ void const* _Key, + _In_reads_bytes_((*_NumOfElements) * _SizeOfElements) void const* _Base, + _Inout_ unsigned int* _NumOfElements, + _In_ unsigned int _SizeOfElements, + _In_ _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_lsearch) + _ACRTIMP void* __cdecl lsearch( + _In_ void const* _Key, + _Inout_updates_bytes_((*_NumOfElements) * _SizeOfElements) void* _Base, + _Inout_ unsigned int* _NumOfElements, + _In_ unsigned int _SizeOfElements, + _In_ _CoreCrtNonSecureSearchSortCompareFunction _CompareFunction + ); + +#endif // _CRT_INTERNAL_NONSTDC_NAMES + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_share.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_share.h new file mode 100644 index 0000000000000000000000000000000000000000..daa409454c8b926acbcc139a659d8ae6d7682f03 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_share.h @@ -0,0 +1,33 @@ +// +// corecrt_share.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Defines the file sharing modes for the sopen() family of functions. These +// declarations are split out to support the Windows build. +// +#pragma once + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +#define _SH_DENYRW 0x10 // deny read/write mode +#define _SH_DENYWR 0x20 // deny write mode +#define _SH_DENYRD 0x30 // deny read mode +#define _SH_DENYNO 0x40 // deny none mode +#define _SH_SECURE 0x80 // secure mode + + + +#if (defined _CRT_DECLARE_NONSTDC_NAMES && _CRT_DECLARE_NONSTDC_NAMES) || (!defined _CRT_DECLARE_NONSTDC_NAMES && !__STDC__) + #define SH_DENYRW _SH_DENYRW + #define SH_DENYWR _SH_DENYWR + #define SH_DENYRD _SH_DENYRD + #define SH_DENYNO _SH_DENYNO +#endif + +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_startup.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_startup.h new file mode 100644 index 0000000000000000000000000000000000000000..164b1e3a36fb4edfd83ddf356aef443f0167ec22 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_startup.h @@ -0,0 +1,199 @@ +// +// corecrt_startup.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Declarations for the CoreCRT startup functionality, used while initializing +// the CRT and during app startup and termination. +// +#pragma once + +#include +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Exception Filters for main() and DllMain() +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +struct _EXCEPTION_POINTERS; + +_ACRTIMP int __cdecl _seh_filter_dll( + _In_ unsigned long _ExceptionNum, + _In_ struct _EXCEPTION_POINTERS* _ExceptionPtr + ); + +_ACRTIMP int __cdecl _seh_filter_exe( + _In_ unsigned long _ExceptionNum, + _In_ struct _EXCEPTION_POINTERS* _ExceptionPtr + ); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Miscellaneous Runtime Support +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +typedef enum _crt_app_type +{ + _crt_unknown_app, + _crt_console_app, + _crt_gui_app +} _crt_app_type; + +_ACRTIMP _crt_app_type __cdecl _query_app_type(void); + +_ACRTIMP void __cdecl _set_app_type( + _In_ _crt_app_type _Type + ); + +typedef int (__cdecl *_UserMathErrorFunctionPointer)(struct _exception *); + +_ACRTIMP void __cdecl __setusermatherr( + _UserMathErrorFunctionPointer _UserMathErrorFunction + ); + +int __cdecl _is_c_termination_complete(void); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Arguments API for main() et al. +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +_ACRTIMP errno_t __cdecl _configure_narrow_argv( + _In_ _crt_argv_mode mode + ); + +_ACRTIMP errno_t __cdecl _configure_wide_argv( + _In_ _crt_argv_mode mode + ); + +// There is a linkopt for these to disable environment initialization when using +// the static CRT, so they are not declared _ACRTIMP. +int __CRTDECL _initialize_narrow_environment(void); +int __CRTDECL _initialize_wide_environment(void); + +_ACRTIMP char** __cdecl _get_initial_narrow_environment(void); +_ACRTIMP wchar_t** __cdecl _get_initial_wide_environment(void); + +char* __CRTDECL _get_narrow_winmain_command_line(void); +wchar_t* __CRTDECL _get_wide_winmain_command_line(void); + +_ACRTIMP char** __cdecl __p__acmdln(void); +_ACRTIMP wchar_t** __cdecl __p__wcmdln(void); + +#ifdef _CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY + extern char* _acmdln; + extern wchar_t* _wcmdln; +#else + #define _acmdln (*__p__acmdln()) + #define _wcmdln (*__p__wcmdln()) +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Initializer and Terminator Support +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +typedef void (__cdecl* _PVFV)(void); +typedef int (__cdecl* _PIFV)(void); +typedef void (__cdecl* _PVFI)(int); + +#ifndef _M_CEE + _ACRTIMP void __cdecl _initterm( + _In_reads_(_Last - _First) _In_ _PVFV* _First, + _In_ _PVFV* _Last + ); + + _ACRTIMP int __cdecl _initterm_e( + _In_reads_(_Last - _First) _PIFV* _First, + _In_ _PIFV* _Last + ); +#endif + +#ifndef _CRT_ONEXIT_T_DEFINED + #define _CRT_ONEXIT_T_DEFINED + + typedef int (__CRTDECL* _onexit_t)(void); + #ifdef _M_CEE + typedef int (__clrcall* _onexit_m_t)(void); + #endif +#endif + +typedef struct _onexit_table_t +{ + _PVFV* _first; + _PVFV* _last; + _PVFV* _end; +} _onexit_table_t; + +_ACRTIMP int __cdecl _initialize_onexit_table( + _In_opt_ _onexit_table_t* _Table + ); + +_ACRTIMP int __cdecl _register_onexit_function( + _In_opt_ _onexit_table_t* _Table, + _In_opt_ _onexit_t _Function + ); + +_ACRTIMP int __cdecl _execute_onexit_table( + _In_opt_ _onexit_table_t* _Table + ); + +_ACRTIMP int __cdecl _crt_atexit( + _In_opt_ _PVFV _Function + ); + +_ACRTIMP int __cdecl _crt_at_quick_exit( + _In_opt_ _PVFV _Function + ); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Static CRT Initialization Support +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if _CRT_FUNCTIONS_REQUIRED + + _Success_(return != 0) + __crt_bool __cdecl __acrt_initialize(void); + + _Success_(return != 0) + __crt_bool __cdecl __acrt_uninitialize( + _In_ __crt_bool _Terminating + ); + + _Success_(return != 0) + __crt_bool __cdecl __acrt_uninitialize_critical( + _In_ __crt_bool _Terminating + ); + + _Success_(return != 0) + __crt_bool __cdecl __acrt_thread_attach(void); + + _Success_(return != 0) + __crt_bool __cdecl __acrt_thread_detach(void); + +#endif // _CRT_FUNCTIONS_REQUIRED + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_stdio_config.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_stdio_config.h new file mode 100644 index 0000000000000000000000000000000000000000..9332280fb897db1b52f56f79aff1e59cf25f989a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_stdio_config.h @@ -0,0 +1,131 @@ +// +// corecrt_stdio_config.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Per-module configuration. +// +#pragma once + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +#if !defined _NO_CRT_STDIO_INLINE && !_CRT_FUNCTIONS_REQUIRED + #define _NO_CRT_STDIO_INLINE +#endif + +#if defined _NO_CRT_STDIO_INLINE + #undef _CRT_STDIO_INLINE + #define _CRT_STDIO_INLINE +#elif !defined _CRT_STDIO_INLINE + #define _CRT_STDIO_INLINE __inline +#endif + +#if !defined RC_INVOKED // RC has no target architecture + #if defined _M_IX86 + #define _CRT_INTERNAL_STDIO_SYMBOL_PREFIX "_" + #elif defined _M_X64 || defined _M_ARM || defined _M_ARM64 + #define _CRT_INTERNAL_STDIO_SYMBOL_PREFIX "" + #else + #error Unsupported architecture + #endif +#endif + + + +// Predefine _CRT_STDIO_ISO_WIDE_SPECIFIERS to use ISO-conforming behavior for +// the wide string printf and scanf functions (%s, %c, and %[] specifiers). +// +// Predefine _CRT_STDIO_LEGACY_WIDE_SPECIFIERS to use VC++ 2013 and earlier behavior for +// the wide string printf and scanf functions (%s, %c, and %[] specifiers). +// +// Predefine _CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS when building code that does +// not use these format specifiers without a length modifier and thus can be +// used with either the legacy (default) or the conforming mode. (This option +// is intended for use by static libraries). +#if !defined RC_INVOKED // _CRT_STDIO_LEGACY_WIDE_SPECIFIERS et al. are too long for rc + #if defined _CRT_STDIO_ISO_WIDE_SPECIFIERS + #if defined _CRT_STDIO_LEGACY_WIDE_SPECIFIERS + #error _CRT_STDIO_ISO_WIDE_SPECIFIERS and _CRT_STDIO_LEGACY_WIDE_SPECIFIERS cannot be defined together. + #endif + + #if !defined _M_CEE_PURE + #pragma comment(lib, "iso_stdio_wide_specifiers") + #pragma comment(linker, "/include:" _CRT_INTERNAL_STDIO_SYMBOL_PREFIX "__PLEASE_LINK_WITH_iso_stdio_wide_specifiers.lib") + #endif + #elif defined _CRT_STDIO_LEGACY_WIDE_SPECIFIERS + #if !defined _M_CEE_PURE + #pragma comment(lib, "legacy_stdio_wide_specifiers") + #pragma comment(linker, "/include:" _CRT_INTERNAL_STDIO_SYMBOL_PREFIX "__PLEASE_LINK_WITH_legacy_stdio_wide_specifiers.lib") + #endif + #endif + + #if defined __cplusplus && !defined _CRT_STDIO_ARBITRARY_WIDE_SPECIFIERS + #ifdef _CRT_STDIO_ISO_WIDE_SPECIFIERS + #pragma detect_mismatch("_CRT_STDIO_ISO_WIDE_SPECIFIERS", "1") + #else + #pragma detect_mismatch("_CRT_STDIO_ISO_WIDE_SPECIFIERS", "0") + #endif + #endif +#endif + +// If we're compiling mixed managed code, make sure these inline functions are +// compiled as native to ensure that there is only one instance of each of the +// function-local static variables. +#if defined _M_CEE && !defined _M_CEE_PURE + #pragma managed(push, off) +#endif + +#if _CRT_FUNCTIONS_REQUIRED + // This function must not be inlined into callers to avoid ODR violations. The + // static local variable has different names in C and in C++ translation units. + _Check_return_ _Ret_notnull_ + _CRT_INLINE_PURE_SECURITYCRITICAL_ATTRIBUTE + __declspec(noinline) __inline unsigned __int64* __CRTDECL __local_stdio_printf_options(void) + { + static unsigned __int64 _OptionsStorage; + return &_OptionsStorage; + } + + // This function must not be inlined into callers to avoid ODR violations. The + // static local variable has different names in C and in C++ translation units. + _Check_return_ _Ret_notnull_ + _CRT_INLINE_PURE_SECURITYCRITICAL_ATTRIBUTE + __declspec(noinline) __inline unsigned __int64* __CRTDECL __local_stdio_scanf_options(void) + { + static unsigned __int64 _OptionsStorage; + return &_OptionsStorage; + } +#endif + +#if defined _M_CEE && !defined _M_CEE_PURE + #pragma managed(pop) +#endif + +#define _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS (*__local_stdio_printf_options()) +#define _CRT_INTERNAL_LOCAL_SCANF_OPTIONS (*__local_stdio_scanf_options ()) + + + +#define _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION (1ULL << 0) +#define _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR (1ULL << 1) +#define _CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS (1ULL << 2) +#define _CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY (1ULL << 3) +#define _CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS (1ULL << 4) +#define _CRT_INTERNAL_PRINTF_STANDARD_ROUNDING (1ULL << 5) + + +#define _CRT_INTERNAL_SCANF_SECURECRT (1ULL << 0) +#define _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS (1ULL << 1) +#define _CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY (1ULL << 2) + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_terminate.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_terminate.h new file mode 100644 index 0000000000000000000000000000000000000000..5a3f3a1b3e985054579aef5c5011e299d6bbb601 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_terminate.h @@ -0,0 +1,51 @@ +// +// corecrt_terminate.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The terminate handler +// +#pragma once + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +#ifndef RC_INVOKED + +_CRT_BEGIN_C_HEADER + +// terminate_handler is the standard name; terminate_function is defined for +// source compatibility. +typedef void (__CRTDECL* terminate_handler )(void); +typedef void (__CRTDECL* terminate_function)(void); + +#ifdef _M_CEE + typedef void (__clrcall* __terminate_function_m)(); + typedef void (__clrcall* __terminate_handler_m )(); +#endif + +#ifdef __cplusplus + + _ACRTIMP __declspec(noreturn) void __cdecl abort(); + _ACRTIMP __declspec(noreturn) void __cdecl terminate() throw(); + + #ifndef _M_CEE_PURE + + _ACRTIMP terminate_handler __cdecl set_terminate( + _In_opt_ terminate_handler _NewTerminateHandler + ) throw(); + + _ACRTIMP terminate_handler __cdecl _get_terminate(); + + #endif + +#endif // __cplusplus + +_CRT_END_C_HEADER + +#endif // RC_INVOKED +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wconio.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wconio.h new file mode 100644 index 0000000000000000000000000000000000000000..c3173ab0f6b00555e3628e9a0f66fcc892ef4181 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wconio.h @@ -0,0 +1,424 @@ +// +// corecrt_wconio.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the wide character (wchar_t) console I/O functionality, +// shared by both and +// +#pragma once + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +#define WEOF ((wint_t)(0xFFFF)) + + + +#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + _Check_return_wat_ + _Success_(_BufferCount > 0) + _DCRTIMP errno_t __cdecl _cgetws_s( + _Out_writes_to_(_BufferCount, *_SizeRead) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _Out_ size_t* _SizeRead + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + _Success_(return == 0) + errno_t, _cgetws_s, + _Out_writes_z_(*_Buffer) wchar_t, _Buffer, + _In_ size_t*, _SizeRead + ) + + _Check_return_opt_ + _DCRTIMP int __cdecl _cputws( + _In_z_ wchar_t const* _Buffer + ); + + _Check_return_ _DCRTIMP wint_t __cdecl _getwch (void); + _Check_return_ _DCRTIMP wint_t __cdecl _getwche (void); + _Check_return_opt_ _DCRTIMP wint_t __cdecl _putwch (_In_ wchar_t _Character); + _Check_return_opt_ _DCRTIMP wint_t __cdecl _ungetwch(_In_ wint_t _Character); + + _Check_return_ _DCRTIMP wint_t __cdecl _getwch_nolock (void); + _Check_return_ _DCRTIMP wint_t __cdecl _getwche_nolock (void); + _Check_return_opt_ _DCRTIMP wint_t __cdecl _putwch_nolock (_In_ wchar_t _Character); + _Check_return_opt_ _DCRTIMP wint_t __cdecl _ungetwch_nolock(_In_ wint_t _Character); + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Wide Character Formatted Output Functions (Console) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_opt_ + _DCRTIMP int __cdecl __conio_common_vcwprintf( + _In_ unsigned __int64 _Options, + _In_z_ _Printf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _DCRTIMP int __cdecl __conio_common_vcwprintf_s( + _In_ unsigned __int64 _Options, + _In_z_ _Printf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _DCRTIMP int __cdecl __conio_common_vcwprintf_p( + _In_ unsigned __int64 _Options, + _In_z_ _Printf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcwprintf_l( + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return __conio_common_vcwprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Format, _Locale, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcwprintf( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return _vcwprintf_l(_Format, NULL, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcwprintf_s_l( + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return __conio_common_vcwprintf_s(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Format, _Locale, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcwprintf_s( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return _vcwprintf_s_l(_Format, NULL, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcwprintf_p_l( + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return __conio_common_vcwprintf_p(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Format, _Locale, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcwprintf_p( + _In_z_ _Printf_format_string_ const wchar_t* const _Format, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return _vcwprintf_p_l(_Format, NULL, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cwprintf_l( + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vcwprintf_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cwprintf( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vcwprintf_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cwprintf_s_l( + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vcwprintf_s_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cwprintf_s( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vcwprintf_s_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cwprintf_p_l( + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vcwprintf_p_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cwprintf_p( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vcwprintf_p_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Wide Character Formatted Input Functions (Console) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_opt_ + _DCRTIMP int __cdecl __conio_common_vcwscanf( + _In_ unsigned __int64 _Options, + _In_z_ _Scanf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vcwscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _vcwscanf_l( + _In_z_ _Scanf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return __conio_common_vcwscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS, + _Format, _Locale, _ArgList); + } +#endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vcwscanf_s) + _CRT_STDIO_INLINE int __CRTDECL _vcwscanf( + _In_z_ _Scanf_format_string_params_(1) wchar_t const* const _Format, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return _vcwscanf_l(_Format, NULL, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcwscanf_s_l( + _In_z_ _Scanf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return __conio_common_vcwscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, + _Format, _Locale, _ArgList); + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vcwscanf_s( + _In_z_ _Scanf_format_string_params_(1) wchar_t const* const _Format, + va_list _ArgList + ) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + return _vcwscanf_s_l(_Format, NULL, _ArgList); + } +#endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_cwscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _cwscanf_l( + _In_z_ _Scanf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + + _Result = _vcwscanf_l(_Format, _Locale, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_cwscanf_s) + _CRT_STDIO_INLINE int __CRTDECL _cwscanf( + _In_z_ _Scanf_format_string_ wchar_t const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + + _Result = _vcwscanf_l(_Format, NULL, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cwscanf_s_l( + _In_z_ _Scanf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vcwscanf_s_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _cwscanf_s( + _In_z_ _Scanf_format_string_ wchar_t const* const _Format, + ...) +#if defined _NO_CRT_STDIO_INLINE +; +#else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vcwscanf_s_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } +#endif + +#endif // _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wctype.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wctype.h new file mode 100644 index 0000000000000000000000000000000000000000..0b4d44954814000ba315ad3e950af340501a9733 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wctype.h @@ -0,0 +1,205 @@ +// +// corecrt_wctype.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the wide character (wchar_t) classification functionality, +// shared by , , and . +// +#pragma once + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#define WEOF ((wint_t)(0xFFFF)) + + + +// This declaration allows the user access to the ctype look-up +// array _ctype defined in ctype.obj by simply including ctype.h +#ifndef _CTYPE_DISABLE_MACROS + + #if defined _CRT_DISABLE_PERFCRIT_LOCKS && !defined _DLL + #define __PCTYPE_FUNC _pctype + #else + #define __PCTYPE_FUNC __pctype_func() + #endif + + _ACRTIMP const unsigned short* __cdecl __pctype_func(void); + _ACRTIMP const wctype_t* __cdecl __pwctype_func(void); + + #ifdef _CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY + extern const unsigned short* _pctype; + extern const wctype_t* _pwctype; + #else + #define _pctype (__pctype_func()) + #define _pwctype (__pwctype_func()) + #endif +#endif + +// Bit masks for the possible character types +#define _UPPER 0x01 // uppercase letter +#define _LOWER 0x02 // lowercase letter +#define _DIGIT 0x04 // digit[0-9] +#define _SPACE 0x08 // tab, carriage return, newline, vertical tab, or form feed +#define _PUNCT 0x10 // punctuation character +#define _CONTROL 0x20 // control character +#define _BLANK 0x40 // space char (tab is handled separately) +#define _HEX 0x80 // hexadecimal digit + +#define _LEADBYTE 0x8000 // multibyte leadbyte +#define _ALPHA (0x0100 | _UPPER | _LOWER) // alphabetic character + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Wide Character Classification and Conversion Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +_Check_return_ _ACRTIMP int __cdecl iswalnum (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswalpha (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswascii (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswblank (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswcntrl (_In_ wint_t _C); + +_When_(_Param_(1) == 0, _Post_equal_to_(0)) +_Check_return_ _ACRTIMP int __cdecl iswdigit (_In_ wint_t _C); + +_Check_return_ _ACRTIMP int __cdecl iswgraph (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswlower (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswprint (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswpunct (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswspace (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswupper (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswxdigit (_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl __iswcsymf(_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl __iswcsym (_In_ wint_t _C); + +_Check_return_ _ACRTIMP int __cdecl _iswalnum_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswalpha_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswblank_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswcntrl_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswdigit_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswgraph_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswlower_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswprint_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswpunct_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswspace_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswupper_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswxdigit_l(_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswcsymf_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswcsym_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale); + + +_Check_return_ _ACRTIMP wint_t __cdecl towupper(_In_ wint_t _C); +_Check_return_ _ACRTIMP wint_t __cdecl towlower(_In_ wint_t _C); +_Check_return_ _ACRTIMP int __cdecl iswctype(_In_ wint_t _C, _In_ wctype_t _Type); + +_Check_return_ _ACRTIMP wint_t __cdecl _towupper_l(_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP wint_t __cdecl _towlower_l(_In_ wint_t _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _iswctype_l(_In_ wint_t _C, _In_ wctype_t _Type, _In_opt_ _locale_t _Locale); + + +#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + _Check_return_ _ACRTIMP int __cdecl isleadbyte(_In_ int _C); + _Check_return_ _ACRTIMP int __cdecl _isleadbyte_l(_In_ int _C, _In_opt_ _locale_t _Locale); + + _CRT_OBSOLETE(iswctype) _DCRTIMP int __cdecl is_wctype(_In_ wint_t _C, _In_ wctype_t _Type); +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Macro and Inline Definitions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if !defined __cplusplus || defined _M_CEE_PURE || defined MRTDLL || defined _CORECRT_BUILD + #ifndef _CTYPE_DISABLE_MACROS + + #define iswalpha(_c) (iswctype(_c, _ALPHA)) + #define iswupper(_c) (iswctype(_c, _UPPER)) + #define iswlower(_c) (iswctype(_c, _LOWER)) + #define iswdigit(_c) (iswctype(_c, _DIGIT)) + #define iswxdigit(_c) (iswctype(_c, _HEX)) + #define iswspace(_c) (iswctype(_c, _SPACE)) + #define iswpunct(_c) (iswctype(_c, _PUNCT)) + #define iswblank(_c) (((_c) == '\t') ? _BLANK : iswctype(_c,_BLANK) ) + #define iswalnum(_c) (iswctype(_c, _ALPHA | _DIGIT)) + #define iswprint(_c) (iswctype(_c, _BLANK | _PUNCT | _ALPHA | _DIGIT)) + #define iswgraph(_c) (iswctype(_c, _PUNCT | _ALPHA | _DIGIT)) + #define iswcntrl(_c) (iswctype(_c, _CONTROL)) + #define iswascii(_c) ((unsigned)(_c) < 0x80) + + #define _iswalpha_l(_c,_p) (iswctype(_c, _ALPHA)) + #define _iswupper_l(_c,_p) (iswctype(_c, _UPPER)) + #define _iswlower_l(_c,_p) (iswctype(_c, _LOWER)) + #define _iswdigit_l(_c,_p) (iswctype(_c, _DIGIT)) + #define _iswxdigit_l(_c,_p) (iswctype(_c, _HEX)) + #define _iswspace_l(_c,_p) (iswctype(_c, _SPACE)) + #define _iswpunct_l(_c,_p) (iswctype(_c, _PUNCT)) + #define _iswblank_l(_c,_p) (iswctype(_c, _BLANK)) + #define _iswalnum_l(_c,_p) (iswctype(_c, _ALPHA | _DIGIT)) + #define _iswprint_l(_c,_p) (iswctype(_c, _BLANK | _PUNCT | _ALPHA | _DIGIT)) + #define _iswgraph_l(_c,_p) (iswctype(_c, _PUNCT | _ALPHA | _DIGIT)) + #define _iswcntrl_l(_c,_p) (iswctype(_c, _CONTROL)) + + #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + #define isleadbyte(_c) (__PCTYPE_FUNC[(unsigned char)(_c)] & _LEADBYTE) + #endif + + #endif // _CTYPE_DISABLE_MACROS +// CRT_REFACTOR TODO I've had to remove the inline function definitions because +// they break the debugger build. These were moved here from in +// C968560. We need to figure out what is wrong. +//#else +// #ifndef _CTYPE_DISABLE_MACROS +// inline int __cdecl iswalpha (_In_ wint_t _C) { return iswctype(_C, _ALPHA); } +// inline int __cdecl iswupper (_In_ wint_t _C) { return iswctype(_C, _UPPER); } +// inline int __cdecl iswlower (_In_ wint_t _C) { return iswctype(_C, _LOWER); } +// inline int __cdecl iswdigit (_In_ wint_t _C) { return iswctype(_C, _DIGIT); } +// inline int __cdecl iswxdigit(_In_ wint_t _C) { return iswctype(_C, _HEX); } +// inline int __cdecl iswspace (_In_ wint_t _C) { return iswctype(_C, _SPACE); } +// inline int __cdecl iswpunct (_In_ wint_t _C) { return iswctype(_C, _PUNCT); } +// inline int __cdecl iswblank (_In_ wint_t _C) { return (((_C) == '\t') ? _BLANK : iswctype(_C,_BLANK)); } +// inline int __cdecl iswalnum (_In_ wint_t _C) { return iswctype(_C, _ALPHA | _DIGIT); } +// inline int __cdecl iswprint (_In_ wint_t _C) { return iswctype(_C, _BLANK | _PUNCT | _ALPHA | _DIGIT); } +// inline int __cdecl iswgraph (_In_ wint_t _C) { return iswctype(_C, _PUNCT | _ALPHA | _DIGIT); } +// inline int __cdecl iswcntrl (_In_ wint_t _C) { return iswctype(_C, _CONTROL); } +// inline int __cdecl iswascii (_In_ wint_t _C) { return (unsigned)(_C) < 0x80; } +// +// inline int __cdecl _iswalpha_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _ALPHA); } +// inline int __cdecl _iswupper_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _UPPER); } +// inline int __cdecl _iswlower_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _LOWER); } +// inline int __cdecl _iswdigit_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _DIGIT); } +// inline int __cdecl _iswxdigit_l(_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _HEX); } +// inline int __cdecl _iswspace_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _SPACE); } +// inline int __cdecl _iswpunct_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _PUNCT); } +// inline int __cdecl _iswblank_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _BLANK); } +// inline int __cdecl _iswalnum_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _ALPHA | _DIGIT); } +// inline int __cdecl _iswprint_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _BLANK | _PUNCT | _ALPHA | _DIGIT); } +// inline int __cdecl _iswgraph_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _PUNCT | _ALPHA | _DIGIT); } +// inline int __cdecl _iswcntrl_l (_In_ wint_t _C, _In_opt_ _locale_t) { return iswctype(_C, _CONTROL); } +// +// #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP +// inline int __cdecl isleadbyte(_In_ int _C) +// { +// return __pctype_func()[(unsigned char)(_C)] & _LEADBYTE; +// } +// #endif +// #endif +#endif + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wdirect.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wdirect.h new file mode 100644 index 0000000000000000000000000000000000000000..41fac27e6f532ead4c3ac65e875517d8d670c5cb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wdirect.h @@ -0,0 +1,63 @@ +// +// corecrt_wdirect.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the wide character (wchar_t) directory functionality, shared +// by and . +// +#pragma once + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +#pragma push_macro("_wgetcwd") +#pragma push_macro("_wgetdcwd") +#undef _wgetcwd +#undef _wgetdcwd + +_Success_(return != 0) +_Check_return_ _Ret_maybenull_z_ +_ACRTIMP _CRTALLOCATOR wchar_t* __cdecl _wgetcwd( + _Out_writes_opt_z_(_SizeInWords) wchar_t* _DstBuf, + _In_ int _SizeInWords + ); + +_Success_(return != 0) +_Check_return_ _Ret_maybenull_z_ +_ACRTIMP _CRTALLOCATOR wchar_t* __cdecl _wgetdcwd( + _In_ int _Drive, + _Out_writes_opt_z_(_SizeInWords) wchar_t* _DstBuf, + _In_ int _SizeInWords + ); + +#define _wgetdcwd_nolock _wgetdcwd + +#pragma pop_macro("_wgetcwd") +#pragma pop_macro("_wgetdcwd") + +_Check_return_ +_ACRTIMP int __cdecl _wchdir( + _In_z_ wchar_t const* _Path + ); + +_Check_return_ +_ACRTIMP int __cdecl _wmkdir( + _In_z_ wchar_t const* _Path + ); + +_Check_return_ +_ACRTIMP int __cdecl _wrmdir( + _In_z_ wchar_t const* _Path + ); + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wio.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wio.h new file mode 100644 index 0000000000000000000000000000000000000000..d99714d29ffc5739fe28d2e3495442a20be7d943 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wio.h @@ -0,0 +1,270 @@ +// +// corecrt_wio.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the wide character (wchar_t) I/O functionality, shared by +// and . +// +#pragma once + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Types +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifdef _USE_32BIT_TIME_T + #define _wfinddata_t _wfinddata32_t + #define _wfinddatai64_t _wfinddata32i64_t +#else + #define _wfinddata_t _wfinddata64i32_t + #define _wfinddatai64_t _wfinddata64_t +#endif + +typedef unsigned long _fsize_t; + +struct _wfinddata32_t +{ + unsigned attrib; + __time32_t time_create; // -1 for FAT file systems + __time32_t time_access; // -1 for FAT file systems + __time32_t time_write; + _fsize_t size; + wchar_t name[260]; +}; + +struct _wfinddata32i64_t +{ + unsigned attrib; + __time32_t time_create; // -1 for FAT file systems + __time32_t time_access; // -1 for FAT file systems + __time32_t time_write; + __int64 size; + wchar_t name[260]; +}; + +struct _wfinddata64i32_t +{ + unsigned attrib; + __time64_t time_create; // -1 for FAT file systems + __time64_t time_access; // -1 for FAT file systems + __time64_t time_write; + _fsize_t size; + wchar_t name[260]; +}; + +struct _wfinddata64_t +{ + unsigned attrib; + __time64_t time_create; // -1 for FAT file systems + __time64_t time_access; // -1 for FAT file systems + __time64_t time_write; + __int64 size; + wchar_t name[260]; +}; + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifdef _USE_32BIT_TIME_T + #define _wfindfirst _wfindfirst32 + #define _wfindnext _wfindnext32 + #define _wfindfirsti64 _wfindfirst32i64 + #define _wfindnexti64 _wfindnext32i64 +#else + #define _wfindfirst _wfindfirst64i32 + #define _wfindnext _wfindnext64i32 + #define _wfindfirsti64 _wfindfirst64 + #define _wfindnexti64 _wfindnext64 +#endif + +_Check_return_ +_ACRTIMP int __cdecl _waccess( + _In_z_ wchar_t const* _FileName, + _In_ int _AccessMode + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _waccess_s( + _In_z_ wchar_t const* _FileName, + _In_ int _AccessMode + ); + +_Check_return_ +_ACRTIMP int __cdecl _wchmod( + _In_z_ wchar_t const* _FileName, + _In_ int _Mode + ); + +_Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s) +_ACRTIMP int __cdecl _wcreat( + _In_z_ wchar_t const* _FileName, + _In_ int _PermissionMode + ); + +_Success_(return != -1) +_Check_return_ +_ACRTIMP intptr_t __cdecl _wfindfirst32( + _In_z_ wchar_t const* _FileName, + _Out_ struct _wfinddata32_t* _FindData + ); + +_Success_(return != -1) +_Check_return_ +_ACRTIMP int __cdecl _wfindnext32( + _In_ intptr_t _FindHandle, + _Out_ struct _wfinddata32_t* _FindData + ); + +_ACRTIMP int __cdecl _wunlink( + _In_z_ wchar_t const* _FileName + ); + +_Check_return_ +_ACRTIMP int __cdecl _wrename( + _In_z_ wchar_t const* _OldFileName, + _In_z_ wchar_t const* _NewFileName + ); + +_ACRTIMP errno_t __cdecl _wmktemp_s( + _Inout_updates_z_(_SizeInWords) wchar_t* _TemplateName, + _In_ size_t _SizeInWords + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _wmktemp_s, + wchar_t, _TemplateName + ) + +_Success_(return != 0) +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wmktemp, + _Inout_z_, wchar_t, _TemplateName + ) + +_Success_(return != -1) +_Check_return_ +_ACRTIMP intptr_t __cdecl _wfindfirst32i64( + _In_z_ wchar_t const* _FileName, + _Out_ struct _wfinddata32i64_t* _FindData + ); + +_Success_(return != -1) +_Check_return_ +_ACRTIMP intptr_t __cdecl _wfindfirst64i32( + _In_z_ wchar_t const* _FileName, + _Out_ struct _wfinddata64i32_t* _FindData + ); + +_Success_(return != -1) +_Check_return_ +_ACRTIMP intptr_t __cdecl _wfindfirst64( + _In_z_ wchar_t const* _FileName, + _Out_ struct _wfinddata64_t* _FindData + ); + +_Success_(return != -1) +_Check_return_ +_ACRTIMP int __cdecl _wfindnext32i64( + _In_ intptr_t _FindHandle, + _Out_ struct _wfinddata32i64_t* _FindData + ); + +_Success_(return != -1) +_Check_return_ +_ACRTIMP int __cdecl _wfindnext64i32( + _In_ intptr_t _FindHandle, + _Out_ struct _wfinddata64i32_t* _FindData + ); + +_Success_(return != -1) +_Check_return_ +_ACRTIMP int __cdecl _wfindnext64( + _In_ intptr_t _FindHandle, + _Out_ struct _wfinddata64_t* _FindData + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wsopen_s( + _Out_ int* _FileHandle, + _In_z_ wchar_t const* _FileName, + _In_ int _OpenFlag, + _In_ int _ShareFlag, + _In_ int _PermissionFlag + ); + +_ACRTIMP errno_t __cdecl _wsopen_dispatch( + _In_z_ wchar_t const* _FileName, + _In_ int _OFlag, + _In_ int _ShFlag, + _In_ int _PMode, + _Out_ int* _PFileHandle, + _In_ int _BSecure + ); + + + +#if defined __cplusplus + + // These functions do not validate pmode; use _wsopen_s instead. + extern "C++" _Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s) + inline int __CRTDECL _wopen( + _In_z_ wchar_t const* _FileName, + _In_ int _OFlag, + _In_ int _PMode = 0 + ) + { + int _FileHandle; + // Last parameter passed as 0 because we don't want to validate pmode from _open + errno_t const _Result = _wsopen_dispatch(_FileName, _OFlag, _SH_DENYNO, _PMode, &_FileHandle, 0); + return _Result ? -1 : _FileHandle; + } + + extern "C++" _Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s) + inline int __CRTDECL _wsopen( + _In_z_ wchar_t const* _FileName, + _In_ int _OFlag, + _In_ int _ShFlag, + _In_ int _PMode = 0 + ) + { + int _FileHandle; + // Last parameter passed as 0 because we don't want to validate pmode from _sopen + errno_t const _Result = _wsopen_dispatch(_FileName, _OFlag, _ShFlag, _PMode, &_FileHandle, 0); + return _Result ? -1 : _FileHandle; + } + + +#else + + _Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s) + _ACRTIMP int __cdecl _wopen( + _In_z_ wchar_t const* _FileName, + _In_ int _OpenFlag, + ...); + + _Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s) + _ACRTIMP int __cdecl _wsopen( + _In_z_ wchar_t const* _FileName, + _In_ int _OpenFlag, + _In_ int _ShareFlag, + ...); + +#endif + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wprocess.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wprocess.h new file mode 100644 index 0000000000000000000000000000000000000000..764d50f34b81c245bc3e04df90ec7ecff1eb96d9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wprocess.h @@ -0,0 +1,127 @@ +// +// corecrt_wprocess.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the wide character (wchar_t) process functionality, shared +// by and . +// +#pragma once + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#if _CRT_FUNCTIONS_REQUIRED + #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + _DCRTIMP intptr_t __cdecl _wexecl( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _ArgList, + ...); + + _DCRTIMP intptr_t __cdecl _wexecle( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _ArgList, + ...); + + _DCRTIMP intptr_t __cdecl _wexeclp( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _ArgList, + ...); + + _DCRTIMP intptr_t __cdecl _wexeclpe( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _ArgList, + ...); + + _DCRTIMP intptr_t __cdecl _wexecv( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* const* _ArgList + ); + + _DCRTIMP intptr_t __cdecl _wexecve( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* const* _ArgList, + _In_opt_z_ wchar_t const* const* _Env + ); + + _DCRTIMP intptr_t __cdecl _wexecvp( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* const* _ArgList + ); + + _DCRTIMP intptr_t __cdecl _wexecvpe( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* const* _ArgList, + _In_opt_z_ wchar_t const* const* _Env + ); + + _DCRTIMP intptr_t __cdecl _wspawnl( + _In_ int _Mode, + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _ArgList, + ...); + + _DCRTIMP intptr_t __cdecl _wspawnle( + _In_ int _Mode, + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _ArgList, + ...); + + _DCRTIMP intptr_t __cdecl _wspawnlp( + _In_ int _Mode, + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _ArgList, + ...); + + _DCRTIMP intptr_t __cdecl _wspawnlpe( + _In_ int _Mode, + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _ArgList, + ...); + + _DCRTIMP intptr_t __cdecl _wspawnv( + _In_ int _Mode, + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* const* _ArgList + ); + + _DCRTIMP intptr_t __cdecl _wspawnve( + _In_ int _Mode, + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* const* _ArgList, + _In_opt_z_ wchar_t const* const* _Env + ); + + _DCRTIMP intptr_t __cdecl _wspawnvp( + _In_ int _Mode, + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* const* _ArgList + ); + + _DCRTIMP intptr_t __cdecl _wspawnvpe( + _In_ int _Mode, + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* const* _ArgList, + _In_opt_z_ wchar_t const* const* _Env + ); + + _DCRTIMP int __cdecl _wsystem( + _In_opt_z_ wchar_t const* _Command + ); + + #endif // _CRT_USE_WINAPI_FAMILY_DESKTOP_APP +#endif // _CRT_FUNCTIONS_REQUIRED + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wstdio.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wstdio.h new file mode 100644 index 0000000000000000000000000000000000000000..bb9f5148c27901794beb7adab94a44b8afd2d596 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wstdio.h @@ -0,0 +1,2171 @@ +// +// corecrt_wstdio.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the wide character (wchar_t) I/O functionality, shared by +// and . It also defines several core I/O types, which are +// also shared by those two headers. +// +#pragma once + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Stream I/O Declarations Required by this Header +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifndef _FILE_DEFINED + #define _FILE_DEFINED + typedef struct _iobuf + { + void* _Placeholder; + } FILE; +#endif + +_ACRTIMP_ALT FILE* __cdecl __acrt_iob_func(unsigned _Ix); + +#define stdin (__acrt_iob_func(0)) +#define stdout (__acrt_iob_func(1)) +#define stderr (__acrt_iob_func(2)) + +#define WEOF ((wint_t)(0xFFFF)) + + + +#if _CRT_FUNCTIONS_REQUIRED + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Wide Character Stream I/O Functions + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_opt_ + _ACRTIMP wint_t __cdecl fgetwc( + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP wint_t __cdecl _fgetwchar(void); + + _Check_return_opt_ + _ACRTIMP wint_t __cdecl fputwc( + _In_ wchar_t _Character, + _Inout_ FILE* _Stream); + + _Check_return_opt_ + _ACRTIMP wint_t __cdecl _fputwchar( + _In_ wchar_t _Character + ); + + _Check_return_ + _ACRTIMP wint_t __cdecl getwc( + _Inout_ FILE* _Stream + ); + + _Check_return_ + _ACRTIMP wint_t __cdecl getwchar(void); + + + _Check_return_opt_ + _Success_(return == _Buffer) + _ACRTIMP wchar_t* __cdecl fgetws( + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ int _BufferCount, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl fputws( + _In_z_ wchar_t const* _Buffer, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _Success_(return != 0) + _ACRTIMP wchar_t* __cdecl _getws_s( + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + _Success_(return != 0) + wchar_t*, _getws_s, + _Always_(_Post_z_) wchar_t, _Buffer + ) + + _Check_return_opt_ + _ACRTIMP wint_t __cdecl putwc( + _In_ wchar_t _Character, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP wint_t __cdecl putwchar( + _In_ wchar_t _Character + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _putws( + _In_z_ wchar_t const* _Buffer + ); + + _Check_return_opt_ + _ACRTIMP wint_t __cdecl ungetwc( + _In_ wint_t _Character, + _Inout_ FILE* _Stream + ); + + _Check_return_ + _ACRTIMP FILE * __cdecl _wfdopen( + _In_ int _FileHandle, + _In_z_ wchar_t const* _Mode + ); + + _Check_return_ _CRT_INSECURE_DEPRECATE(_wfopen_s) + _ACRTIMP FILE* __cdecl _wfopen( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _Mode + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _wfopen_s( + _Outptr_result_maybenull_ FILE** _Stream, + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _Mode + ); + + _Check_return_ + _CRT_INSECURE_DEPRECATE(_wfreopen_s) + _ACRTIMP FILE* __cdecl _wfreopen( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _Mode, + _Inout_ FILE* _OldStream + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _wfreopen_s( + _Outptr_result_maybenull_ FILE** _Stream, + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _Mode, + _Inout_ FILE* _OldStream + ); + + _Check_return_ + _ACRTIMP FILE* __cdecl _wfsopen( + _In_z_ wchar_t const* _FileName, + _In_z_ wchar_t const* _Mode, + _In_ int _ShFlag + ); + + _ACRTIMP void __cdecl _wperror( + _In_opt_z_ wchar_t const* _ErrorMessage + ); + + #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + _Check_return_ + _DCRTIMP FILE* __cdecl _wpopen( + _In_z_ wchar_t const* _Command, + _In_z_ wchar_t const* _Mode + ); + + #endif + + _ACRTIMP int __cdecl _wremove( + _In_z_ wchar_t const* _FileName + ); + + #pragma push_macro("_wtempnam") + #undef _wtempnam + + _Check_return_ + _ACRTIMP _CRTALLOCATOR wchar_t* __cdecl _wtempnam( + _In_opt_z_ wchar_t const* _Directory, + _In_opt_z_ wchar_t const* _FilePrefix + ); + + #pragma pop_macro("_wtempnam") + + _Success_(return == 0) + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _wtmpnam_s( + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + _Success_(return == 0) + errno_t, _wtmpnam_s, + _Always_(_Post_z_) wchar_t, _Buffer + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + _Success_(return != 0) + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wtmpnam, + _Pre_maybenull_ _Always_(_Post_z_), wchar_t, _Buffer + ) + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // I/O Synchronization and _nolock family of I/O functions + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_opt_ + _ACRTIMP wint_t __cdecl _fgetwc_nolock( + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP wint_t __cdecl _fputwc_nolock( + _In_ wchar_t _Character, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP wint_t __cdecl _getwc_nolock( + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP wint_t __cdecl _putwc_nolock( + _In_ wchar_t _Character, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP wint_t __cdecl _ungetwc_nolock( + _In_ wint_t _Character, + _Inout_ FILE* _Stream + ); + + #if defined _CRT_DISABLE_PERFCRIT_LOCKS && !defined _DLL + #define fgetwc(stream) _getwc_nolock(stream) + #define fputwc(c, stream) _putwc_nolock(c, stream) + #define ungetwc(c, stream) _ungetwc_nolock(c, stream) + #endif + + + + // Variadic functions are not supported in managed code under /clr + #ifdef _M_CEE_MIXED + #pragma managed(push, off) + #endif + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Wide Character Formatted Output Functions (Stream) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_opt_ + _ACRTIMP int __cdecl __stdio_common_vfwprintf( + _In_ unsigned __int64 _Options, + _Inout_ FILE* _Stream, + _In_z_ _Printf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl __stdio_common_vfwprintf_s( + _In_ unsigned __int64 _Options, + _Inout_ FILE* _Stream, + _In_z_ _Printf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl __stdio_common_vfwprintf_p( + _In_ unsigned __int64 _Options, + _Inout_ FILE* _Stream, + _In_z_ _Printf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfwprintf_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vfwprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vfwprintf( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwprintf_l(_Stream, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfwprintf_s_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vfwprintf_s(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList); + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vfwprintf_s( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwprintf_s_l(_Stream, _Format, NULL, _ArgList); + } + #endif + + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfwprintf_p_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vfwprintf_p(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfwprintf_p( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwprintf_p_l(_Stream, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vwprintf_l( + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwprintf_l(stdout, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vwprintf( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwprintf_l(stdout, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vwprintf_s_l( + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwprintf_s_l(stdout, _Format, _Locale, _ArgList); + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vwprintf_s( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwprintf_s_l(stdout, _Format, NULL, _ArgList); + } + #endif + + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vwprintf_p_l( + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwprintf_p_l(stdout, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vwprintf_p( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwprintf_p_l(stdout, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _fwprintf_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfwprintf_l(_Stream, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL fwprintf( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfwprintf_l(_Stream, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _fwprintf_s_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfwprintf_s_l(_Stream, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL fwprintf_s( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfwprintf_s_l(_Stream, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _fwprintf_p_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfwprintf_p_l(_Stream, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _fwprintf_p( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfwprintf_p_l(_Stream, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _wprintf_l( + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfwprintf_l(stdout, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL wprintf( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfwprintf_l(stdout, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _wprintf_s_l( + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfwprintf_s_l(stdout, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL wprintf_s( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfwprintf_s_l(stdout, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _wprintf_p_l( + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfwprintf_p_l(stdout, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _wprintf_p( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfwprintf_p_l(stdout, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Wide Character Formatted Input Functions (Stream) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_opt_ + _ACRTIMP int __cdecl __stdio_common_vfwscanf( + _In_ unsigned __int64 _Options, + _Inout_ FILE* _Stream, + _In_z_ _Scanf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfwscanf_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vfwscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS, + _Stream, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vfwscanf( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwscanf_l(_Stream, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfwscanf_s_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vfwscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, + _Stream, _Format, _Locale, _ArgList); + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vfwscanf_s( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwscanf_s_l(_Stream, _Format, NULL, _ArgList); + } + #endif + + #endif + + _CRT_STDIO_INLINE int __CRTDECL _vwscanf_l( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwscanf_l(stdin, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vwscanf( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwscanf_l(stdin, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vwscanf_s_l( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwscanf_s_l(stdin, _Format, _Locale, _ArgList); + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vwscanf_s( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfwscanf_s_l(stdin, _Format, NULL, _ArgList); + } + #endif + + #endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_fwscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _fwscanf_l( + _Inout_ FILE* const _Stream, + _In_z_ _Scanf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfwscanf_l(_Stream, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_ _CRT_INSECURE_DEPRECATE(fwscanf_s) + _CRT_STDIO_INLINE int __CRTDECL fwscanf( + _Inout_ FILE* const _Stream, + _In_z_ _Scanf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfwscanf_l(_Stream, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _fwscanf_s_l( + _Inout_ FILE* const _Stream, + _In_z_ _Scanf_s_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfwscanf_s_l(_Stream, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL fwscanf_s( + _Inout_ FILE* const _Stream, + _In_z_ _Scanf_s_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfwscanf_s_l(_Stream, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_wscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _wscanf_l( + _In_z_ _Scanf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfwscanf_l(stdin, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_ _CRT_INSECURE_DEPRECATE(wscanf_s) + _CRT_STDIO_INLINE int __CRTDECL wscanf( + _In_z_ _Scanf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfwscanf_l(stdin, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _wscanf_s_l( + _In_z_ _Scanf_s_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfwscanf_s_l(stdin, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL wscanf_s( + _In_z_ _Scanf_s_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfwscanf_s_l(stdin, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Wide Character Formatted Output Functions (String) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + #ifndef _CRT_NON_CONFORMING_SWPRINTFS + #define _SWPRINTFS_DEPRECATED _CRT_DEPRECATE_TEXT( \ + "function has been changed to conform with the ISO C standard, " \ + "adding an extra character count parameter. To use the traditional " \ + "Microsoft version, set _CRT_NON_CONFORMING_SWPRINTFS.") + #else + #define _SWPRINTFS_DEPRECATED + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _ACRTIMP int __cdecl __stdio_common_vswprintf( + _In_ unsigned __int64 _Options, + _Out_writes_opt_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_z_ _Printf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Success_(return >= 0) + _Check_return_opt_ + _ACRTIMP int __cdecl __stdio_common_vswprintf_s( + _In_ unsigned __int64 _Options, + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_z_ _Printf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Success_(return >= 0) + _Check_return_opt_ + _ACRTIMP int __cdecl __stdio_common_vsnwprintf_s( + _In_ unsigned __int64 _Options, + _Out_writes_opt_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_ size_t _MaxCount, + _In_z_ _Printf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Success_(return >= 0) + _Check_return_opt_ + _ACRTIMP int __cdecl __stdio_common_vswprintf_p( + _In_ unsigned __int64 _Options, + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_z_ _Printf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vsnwprintf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _vsnwprintf_l( + _Out_writes_opt_(_BufferCount) _Post_maybez_ wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vswprintf( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsnwprintf_s_l( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_ size_t const _MaxCount, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vsnwprintf_s( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsnwprintf_s( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_ size_t const _MaxCount, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, NULL, _ArgList); + } + #endif + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX( + _Success_(return >= 0) + int, __RETURN_POLICY_SAME, _CRT_STDIO_INLINE, __CRTDECL, _snwprintf, _vsnwprintf, + _Pre_notnull_ _Post_maybez_ wchar_t, + _Out_writes_opt_(_BufferCount) _Post_maybez_, wchar_t, _Buffer, + _In_ size_t, _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const*, _Format + ) + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vsnwprintf_s) + _CRT_STDIO_INLINE int __CRTDECL _vsnwprintf( + _Out_writes_opt_(_BufferCount) _Post_maybez_ wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const* _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsnwprintf_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + } + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3( + _Success_(return >= 0) + int, _vsnwprintf_s, + _Always_(_Post_z_) wchar_t, _Buffer, + _In_ size_t, _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const*, _Format, + va_list, _ArgList + ) + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vswprintf_c_l( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vswprintf( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vswprintf_c( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vswprintf_c_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vswprintf_l( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vswprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL __vswprintf_l( + _Pre_notnull_ _Always_(_Post_z_) wchar_t* const _Buffer, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vswprintf_l(_Buffer, (size_t)-1, _Format, _Locale, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vswprintf( + _Pre_notnull_ _Always_(_Post_z_) wchar_t* const _Buffer, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vswprintf_l(_Buffer, (size_t)-1, _Format, NULL, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vswprintf( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(1) wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vswprintf_c_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vswprintf_s_l( + _Out_writes_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vswprintf_s( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Success_(return >= 0) + _CRT_STDIO_INLINE int __CRTDECL vswprintf_s( + _Out_writes_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vswprintf_s_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + } + #endif + + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + _Success_(return >= 0) + int, vswprintf_s, + _Always_(_Post_z_) wchar_t, _Buffer, + _In_z_ _Printf_format_string_ wchar_t const*, _Format, + va_list, _ArgList + ) + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vswprintf_p_l( + _Out_writes_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vswprintf_p( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vswprintf_p( + _Out_writes_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vswprintf_p_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _vscwprintf_l( + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vswprintf( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, + NULL, 0, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _vscwprintf( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vscwprintf_l(_Format, NULL, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _vscwprintf_p_l( + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vswprintf_p( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, + NULL, 0, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _vscwprintf_p( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vscwprintf_p_l(_Format, NULL, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL __swprintf_l( + _Pre_notnull_ _Always_(_Post_z_) wchar_t* const _Buffer, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = __vswprintf_l(_Buffer, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _swprintf_l( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vswprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _swprintf( + _Pre_notnull_ _Always_(_Post_z_) wchar_t* const _Buffer, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = __vswprintf_l(_Buffer, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL swprintf( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vswprintf_c_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_ARGLIST_EX( + _Success_(return >= 0) + int, __RETURN_POLICY_SAME, _CRT_STDIO_INLINE, __CRTDECL, __swprintf_l, __vswprintf_l, _vswprintf_s_l, + _Pre_notnull_ _Always_(_Post_z_) wchar_t, + _Pre_notnull_ _Always_(_Post_z_), wchar_t, _Buffer, + _In_z_ _Printf_format_string_params_(2) wchar_t const*, _Format, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST_EX( + _Success_(return >= 0) + int, __RETURN_POLICY_SAME, _CRT_STDIO_INLINE, __CRTDECL, _swprintf, swprintf_s, _vswprintf, vswprintf_s, + _Pre_notnull_ _Always_(_Post_z_), wchar_t, _Buffer, + _In_z_ _Printf_format_string_ wchar_t const*, _Format + ) + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _swprintf_s_l( + _Out_writes_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vswprintf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Success_(return >= 0) + _CRT_STDIO_INLINE int __CRTDECL swprintf_s( + _Out_writes_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vswprintf_s_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1_ARGLIST( + _Success_(return >= 0) + int, swprintf_s, vswprintf_s, + _Always_(_Post_z_) wchar_t, _Buffer, + _In_z_ _Printf_format_string_ wchar_t const*, _Format + ) + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _swprintf_p_l( + _Out_writes_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vswprintf_p_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _swprintf_p( + _Out_writes_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vswprintf_p_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _swprintf_c_l( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vswprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _swprintf_c( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vswprintf_c_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snwprintf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _snwprintf_l( + _Out_writes_opt_(_BufferCount) _Post_maybez_ wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + + _Result = _vsnwprintf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snwprintf( + _Out_writes_opt_(_BufferCount) _Post_maybez_ wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const* _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + + _Result = _vsnwprintf_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snwprintf_s_l( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_ size_t const _MaxCount, + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snwprintf_s( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) wchar_t* const _Buffer, + _In_ size_t const _BufferCount, + _In_ size_t const _MaxCount, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2_ARGLIST( + _Success_(return >= 0) + int, _snwprintf_s, _vsnwprintf_s, + _Always_(_Post_z_) wchar_t, _Buffer, + _In_ size_t, _BufferCount, + _In_z_ _Printf_format_string_ wchar_t const*, _Format + ) + + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _scwprintf_l( + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vscwprintf_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _scwprintf( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vscwprintf_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _scwprintf_p_l( + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vscwprintf_p_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _scwprintf_p( + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vscwprintf_p_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + + #if !defined RC_INVOKED && !defined __midl && !defined _INC_SWPRINTF_INL_ + // C4141: double deprecation + // C6054: string may not be zero-terminated + #pragma warning(push) + #pragma warning(disable: 4141 6054) + + #ifdef __cplusplus + + extern "C++" _SWPRINTFS_DEPRECATED _CRT_INSECURE_DEPRECATE(swprintf_s) + inline int swprintf( + _Pre_notnull_ _Post_z_ wchar_t* const _Buffer, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + ...) throw() + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = vswprintf(_Buffer, _CRT_INT_MAX, _Format, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + + extern "C++" _SWPRINTFS_DEPRECATED _CRT_INSECURE_DEPRECATE(vswprintf_s) + inline int __CRTDECL vswprintf( + _Pre_notnull_ _Post_z_ wchar_t* const _Buffer, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) throw() + { + return vswprintf(_Buffer, _CRT_INT_MAX, _Format, _ArgList); + } + + extern "C++" _SWPRINTFS_DEPRECATED _CRT_INSECURE_DEPRECATE(_swprintf_s_l) + inline int _swprintf_l( + _Pre_notnull_ _Post_z_ wchar_t* const _Buffer, + _In_z_ _Printf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) throw() + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vswprintf_l(_Buffer, (size_t)-1, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + + extern "C++" _SWPRINTFS_DEPRECATED _CRT_INSECURE_DEPRECATE(_vswprintf_s_l) + inline int __CRTDECL _vswprintf_l( + _Pre_notnull_ _Post_z_ wchar_t* const _Buffer, + _In_z_ _Printf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) throw() + { + return _vswprintf_l(_Buffer, (size_t)-1, _Format, _Locale, _ArgList); + } + + #endif // __cplusplus + + #pragma warning(pop) + #endif // !_INC_SWPRINTF_INL_ + + #if defined _CRT_NON_CONFORMING_SWPRINTFS && !defined __cplusplus + #define swprintf _swprintf + #define vswprintf _vswprintf + #define _swprintf_l __swprintf_l + #define _vswprintf_l __vswprintf_l + #endif + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Wide Character Formatted Input Functions (String) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Success_(return >= 0) + _ACRTIMP int __cdecl __stdio_common_vswscanf( + _In_ unsigned __int64 _Options, + _In_reads_(_BufferCount) _Pre_z_ wchar_t const* _Buffer, + _In_ size_t _BufferCount, + _In_z_ _Scanf_format_string_params_(2) wchar_t const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vswscanf_l( + _In_z_ wchar_t const* const _Buffer, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vswscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS, + _Buffer, (size_t)-1, _Format, _Locale, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vswscanf( + _In_z_ wchar_t const* _Buffer, + _In_z_ _Printf_format_string_ wchar_t const* _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vswscanf_l(_Buffer, _Format, NULL, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vswscanf_s_l( + _In_z_ wchar_t const* const _Buffer, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vswscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, + _Buffer, (size_t)-1, _Format, _Locale, _ArgList); + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vswscanf_s( + _In_z_ wchar_t const* const _Buffer, + _In_z_ _Printf_format_string_ wchar_t const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vswscanf_s_l(_Buffer, _Format, NULL, _ArgList); + } + #endif + + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + _Success_(return >= 0) + int, vswscanf_s, + _In_z_ wchar_t, _Buffer, + _In_z_ _Printf_format_string_ wchar_t const*, _Format, + va_list, _ArgList + ) + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vsnwscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _vsnwscanf_l( + _In_reads_(_BufferCount) _Pre_z_ wchar_t const* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Scanf_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vswscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsnwscanf_s_l( + _In_reads_(_BufferCount) _Pre_z_ wchar_t const* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Scanf_s_format_string_params_(2) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vswscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_swscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _swscanf_l( + _In_z_ wchar_t const* const _Buffer, + _In_z_ _Scanf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vswscanf_l(_Buffer, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_ _CRT_INSECURE_DEPRECATE(swscanf_s) + _CRT_STDIO_INLINE int __CRTDECL swscanf( + _In_z_ wchar_t const* const _Buffer, + _In_z_ _Scanf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vswscanf_l(_Buffer, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _swscanf_s_l( + _In_z_ wchar_t const* const _Buffer, + _In_z_ _Scanf_s_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vswscanf_s_l(_Buffer, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL swscanf_s( + _In_z_ wchar_t const* const _Buffer, + _In_z_ _Scanf_s_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vswscanf_s_l(_Buffer, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snwscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _snwscanf_l( + _In_reads_(_BufferCount) _Pre_z_ wchar_t const* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Scanf_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + + _Result = _vsnwscanf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snwscanf_s) + _CRT_STDIO_INLINE int __CRTDECL _snwscanf( + _In_reads_(_BufferCount) _Pre_z_ wchar_t const* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Scanf_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + + _Result = _vsnwscanf_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snwscanf_s_l( + _In_reads_(_BufferCount) _Pre_z_ wchar_t const* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Scanf_s_format_string_params_(0) wchar_t const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vsnwscanf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snwscanf_s( + _In_reads_(_BufferCount) _Pre_z_ wchar_t const* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Scanf_s_format_string_ wchar_t const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vsnwscanf_s_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #ifdef _M_CEE_MIXED + #pragma managed(pop) + #endif +#endif // _CRT_FUNCTIONS_REQUIRED + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wstdlib.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wstdlib.h new file mode 100644 index 0000000000000000000000000000000000000000..2bc7a8653e8b531beaba18dc6f2f576c9921ee95 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wstdlib.h @@ -0,0 +1,481 @@ +// +// corecrt_wstdlib.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the wide character (wchar_t) C Standard Library functions +// that are declared by both and . +// +#pragma once + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +// Maximum number of elements, including null terminator (and negative sign +// where appropriate), needed for integer-to-string conversions for several +// bases and integer types. +#define _MAX_ITOSTR_BASE16_COUNT (8 + 1) +#define _MAX_ITOSTR_BASE10_COUNT (1 + 10 + 1) +#define _MAX_ITOSTR_BASE8_COUNT (11 + 1) +#define _MAX_ITOSTR_BASE2_COUNT (32 + 1) + +#define _MAX_LTOSTR_BASE16_COUNT (8 + 1) +#define _MAX_LTOSTR_BASE10_COUNT (1 + 10 + 1) +#define _MAX_LTOSTR_BASE8_COUNT (11 + 1) +#define _MAX_LTOSTR_BASE2_COUNT (32 + 1) + +#define _MAX_ULTOSTR_BASE16_COUNT (8 + 1) +#define _MAX_ULTOSTR_BASE10_COUNT (10 + 1) +#define _MAX_ULTOSTR_BASE8_COUNT (11 + 1) +#define _MAX_ULTOSTR_BASE2_COUNT (32 + 1) + +#define _MAX_I64TOSTR_BASE16_COUNT (16 + 1) +#define _MAX_I64TOSTR_BASE10_COUNT (1 + 19 + 1) +#define _MAX_I64TOSTR_BASE8_COUNT (22 + 1) +#define _MAX_I64TOSTR_BASE2_COUNT (64 + 1) + +#define _MAX_U64TOSTR_BASE16_COUNT (16 + 1) +#define _MAX_U64TOSTR_BASE10_COUNT (20 + 1) +#define _MAX_U64TOSTR_BASE8_COUNT (22 + 1) +#define _MAX_U64TOSTR_BASE2_COUNT (64 + 1) + + +#if _CRT_FUNCTIONS_REQUIRED + + _Success_(return == 0) + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _itow_s( + _In_ int _Value, + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_ int _Radix + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1( + errno_t, _itow_s, + _In_ int, _Value, + wchar_t, _Buffer, + _In_ int, _Radix + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _itow, + _In_ int, _Value, + _Pre_notnull_ _Post_z_, wchar_t, _Buffer, + _In_ int, _Radix + ) + + _Success_(return == 0) + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _ltow_s( + _In_ long _Value, + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_ int _Radix + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1( + errno_t, _ltow_s, + _In_ long, _Value, + wchar_t, _Buffer, + _In_ int, _Radix + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _ltow, + _In_ long, _Value, + _Pre_notnull_ _Post_z_, wchar_t, _Buffer, + _In_ int, _Radix + ) + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _ultow_s( + _In_ unsigned long _Value, + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_ int _Radix + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1( + errno_t, _ultow_s, + _In_ unsigned long, _Value, + wchar_t, _Buffer, + _In_ int, _Radix + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _ultow, + _In_ unsigned long, _Value, + _Pre_notnull_ _Post_z_, wchar_t, _Buffer, + _In_ int, _Radix + ) + + _Check_return_ + _ACRTIMP double __cdecl wcstod( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr + ); + + _Check_return_ + _ACRTIMP double __cdecl _wcstod_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP long __cdecl wcstol( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix + ); + + _Check_return_ + _ACRTIMP long __cdecl _wcstol_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP long long __cdecl wcstoll( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix + ); + + _Check_return_ + _ACRTIMP long long __cdecl _wcstoll_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP unsigned long __cdecl wcstoul( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix + ); + + _Check_return_ + _ACRTIMP unsigned long __cdecl _wcstoul_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP unsigned long long __cdecl wcstoull( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix + ); + + _Check_return_ + _ACRTIMP unsigned long long __cdecl _wcstoull_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP long double __cdecl wcstold( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr + ); + + _Check_return_ + _ACRTIMP long double __cdecl _wcstold_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP float __cdecl wcstof( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr + ); + + _Check_return_ + _ACRTIMP float __cdecl _wcstof_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP double __cdecl _wtof( + _In_z_ wchar_t const* _String + ); + + _Check_return_ + _ACRTIMP double __cdecl _wtof_l( + _In_z_ wchar_t const* _String, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP int __cdecl _wtoi( + _In_z_ wchar_t const* _String + ); + + _Check_return_ + _ACRTIMP int __cdecl _wtoi_l( + _In_z_ wchar_t const* _String, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP long __cdecl _wtol( + _In_z_ wchar_t const* _String + ); + + _Check_return_ + _ACRTIMP long __cdecl _wtol_l( + _In_z_ wchar_t const* _String, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP long long __cdecl _wtoll( + _In_z_ wchar_t const* _String + ); + + _Check_return_ + _ACRTIMP long long __cdecl _wtoll_l( + _In_z_ wchar_t const* _String, + _In_opt_ _locale_t _Locale + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _i64tow_s( + _In_ __int64 _Value, + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_ int _Radix + ); + + _CRT_INSECURE_DEPRECATE(_i64tow_s) + _ACRTIMP wchar_t* __cdecl _i64tow( + _In_ __int64 _Value, + _Pre_notnull_ _Post_z_ wchar_t* _Buffer, + _In_ int _Radix + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _ui64tow_s( + _In_ unsigned __int64 _Value, + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_ int _Radix + ); + + _CRT_INSECURE_DEPRECATE(_ui64tow_s) + _ACRTIMP wchar_t* __cdecl _ui64tow( + _In_ unsigned __int64 _Value, + _Pre_notnull_ _Post_z_ wchar_t* _Buffer, + _In_ int _Radix + ); + + _Check_return_ + _ACRTIMP __int64 __cdecl _wtoi64( + _In_z_ wchar_t const* _String + ); + + _Check_return_ + _ACRTIMP __int64 __cdecl _wtoi64_l( + _In_z_ wchar_t const* _String, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP __int64 __cdecl _wcstoi64( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix + ); + + _Check_return_ + _ACRTIMP __int64 __cdecl _wcstoi64_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP unsigned __int64 __cdecl _wcstoui64( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix + ); + + _Check_return_ + _ACRTIMP unsigned __int64 __cdecl _wcstoui64_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + + #pragma push_macro("_wfullpath") + #undef _wfullpath + + _Success_(return != 0) + _Check_return_ + _ACRTIMP _CRTALLOCATOR wchar_t* __cdecl _wfullpath( + _Out_writes_opt_z_(_BufferCount) wchar_t* _Buffer, + _In_z_ wchar_t const* _Path, + _In_ size_t _BufferCount + ); + + #pragma pop_macro("_wfullpath") + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl _wmakepath_s( + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_opt_z_ wchar_t const* _Drive, + _In_opt_z_ wchar_t const* _Dir, + _In_opt_z_ wchar_t const* _Filename, + _In_opt_z_ wchar_t const* _Ext + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_4( + errno_t, _wmakepath_s, + wchar_t, _Buffer, + _In_opt_z_ wchar_t const*, _Drive, + _In_opt_z_ wchar_t const*, _Dir, + _In_opt_z_ wchar_t const*, _Filename, + _In_opt_z_ wchar_t const*, _Ext + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_4( + void, __RETURN_POLICY_VOID, _ACRTIMP, _wmakepath, + _Pre_notnull_ _Post_z_, wchar_t, _Buffer, + _In_opt_z_ wchar_t const*, _Drive, + _In_opt_z_ wchar_t const*, _Dir, + _In_opt_z_ wchar_t const*, _Filename, + _In_opt_z_ wchar_t const*, _Ext + ) + + _ACRTIMP void __cdecl _wperror( + _In_opt_z_ wchar_t const* _ErrorMessage + ); + + _CRT_INSECURE_DEPRECATE(_wsplitpath_s) + _ACRTIMP void __cdecl _wsplitpath( + _In_z_ wchar_t const* _FullPath, + _Pre_maybenull_ _Post_z_ wchar_t* _Drive, + _Pre_maybenull_ _Post_z_ wchar_t* _Dir, + _Pre_maybenull_ _Post_z_ wchar_t* _Filename, + _Pre_maybenull_ _Post_z_ wchar_t* _Ext + ); + + _ACRTIMP errno_t __cdecl _wsplitpath_s( + _In_z_ wchar_t const* _FullPath, + _Out_writes_opt_z_(_DriveCount) wchar_t* _Drive, + _In_ size_t _DriveCount, + _Out_writes_opt_z_(_DirCount) wchar_t* _Dir, + _In_ size_t _DirCount, + _Out_writes_opt_z_(_FilenameCount) wchar_t* _Filename, + _In_ size_t _FilenameCount, + _Out_writes_opt_z_(_ExtCount) wchar_t* _Ext, + _In_ size_t _ExtCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_SPLITPATH( + errno_t, _wsplitpath_s, + wchar_t, _Path + ) + + #pragma push_macro("_wdupenv_s") + #undef _wdupenv_s + + _Check_return_wat_ + _DCRTIMP errno_t __cdecl _wdupenv_s( + _Outptr_result_buffer_maybenull_(*_BufferCount) _Outptr_result_maybenull_z_ wchar_t** _Buffer, + _Out_opt_ size_t* _BufferCount, + _In_z_ wchar_t const* _VarName + ); + + #pragma pop_macro("_wdupenv_s") + + _Check_return_ _CRT_INSECURE_DEPRECATE(_wdupenv_s) + _DCRTIMP wchar_t* __cdecl _wgetenv( + _In_z_ wchar_t const* _VarName + ); + + _Success_(return == 0) + _Check_return_wat_ + _DCRTIMP errno_t __cdecl _wgetenv_s( + _Out_ size_t* _RequiredCount, + _Out_writes_opt_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount, + _In_z_ wchar_t const* _VarName + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1( + _Success_(return == 0) + errno_t, _wgetenv_s, + _Out_ size_t*, _RequiredCount, + wchar_t, _Buffer, + _In_z_ wchar_t const*, _VarName + ) + + _Check_return_ + _DCRTIMP int __cdecl _wputenv( + _In_z_ wchar_t const* _EnvString + ); + + _Check_return_wat_ + _DCRTIMP errno_t __cdecl _wputenv_s( + _In_z_ wchar_t const* _Name, + _In_z_ wchar_t const* _Value + ); + + _DCRTIMP errno_t __cdecl _wsearchenv_s( + _In_z_ wchar_t const* _Filename, + _In_z_ wchar_t const* _VarName, + _Out_writes_z_(_BufferCount) wchar_t* _Buffer, + _In_ size_t _BufferCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_2_0( + errno_t, _wsearchenv_s, + _In_z_ wchar_t const*, _Filename, + _In_z_ wchar_t const*, _VarName, + wchar_t, _ResultPath + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_2_0( + void, __RETURN_POLICY_VOID, _DCRTIMP, _wsearchenv, + _In_z_ wchar_t const*, _Filename, + _In_z_ wchar_t const*, _VarName, + _Pre_notnull_ _Post_z_, wchar_t, _ResultPath + ) + + _DCRTIMP int __cdecl _wsystem( + _In_opt_z_ wchar_t const* _Command + ); + +#endif // _CRT_FUNCTIONS_REQUIRED + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wstring.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wstring.h new file mode 100644 index 0000000000000000000000000000000000000000..c3a696ae42ed3b681c65f6349f001db0d3ac1b6d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wstring.h @@ -0,0 +1,642 @@ +// +// corecrt_wstring.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the wide character (wchar_t) string functionality, shared +// by and . +// +#pragma once + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +#ifndef __midl + +_CRT_BEGIN_C_HEADER + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Secure Alternatives +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if __STDC_WANT_SECURE_LIB__ + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl wcscat_s( + _Inout_updates_z_(_SizeInWords) wchar_t* _Destination, + _In_ rsize_t _SizeInWords, + _In_z_ wchar_t const* _Source + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl wcscpy_s( + _Out_writes_z_(_SizeInWords) wchar_t* _Destination, + _In_ rsize_t _SizeInWords, + _In_z_ wchar_t const* _Source + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl wcsncat_s( + _Inout_updates_z_(_SizeInWords) wchar_t* _Destination, + _In_ rsize_t _SizeInWords, + _In_reads_or_z_(_MaxCount) wchar_t const* _Source, + _In_ rsize_t _MaxCount + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl wcsncpy_s( + _Out_writes_z_(_SizeInWords) wchar_t* _Destination, + _In_ rsize_t _SizeInWords, + _In_reads_or_z_(_MaxCount) wchar_t const* _Source, + _In_ rsize_t _MaxCount + ); + + _Check_return_ + _ACRTIMP wchar_t* __cdecl wcstok_s( + _Inout_opt_z_ wchar_t* _String, + _In_z_ wchar_t const* _Delimiter, + _Inout_ _Deref_prepost_opt_z_ wchar_t** _Context + ); + +#endif // __STDC_WANT_SECURE_LIB__ + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Wide-Character Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma push_macro("_wcsdup") + #undef _wcsdup +#endif + +_Check_return_ +_ACRTIMP _CRTALLOCATOR wchar_t* __cdecl _wcsdup( + _In_z_ wchar_t const* _String + ); + +#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma pop_macro("_wcsdup") +#endif + + + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, wcscat_s, + wchar_t, _Destination, + _In_z_ wchar_t const*, _Source + ) + +#ifndef RC_INVOKED + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, wcscat, + _Inout_updates_z_(_String_length_(_Destination) + _String_length_(_Source) + 1), wchar_t, _Destination, + _In_z_ wchar_t const*, _Source + ) +#endif + +_Check_return_ +_ACRTIMP int __cdecl wcscmp( + _In_z_ wchar_t const* _String1, + _In_z_ wchar_t const* _String2 + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, wcscpy_s, + wchar_t, _Destination, + _In_z_ wchar_t const*, _Source + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, wcscpy, + _Out_writes_z_(_String_length_(_Source) + 1), wchar_t, _Destination, + _In_z_ wchar_t const*, _Source + ) + +_Check_return_ +_ACRTIMP size_t __cdecl wcscspn( + _In_z_ wchar_t const* _String, + _In_z_ wchar_t const* _Control + ); + +_Check_return_ +_ACRTIMP size_t __cdecl wcslen( + _In_z_ wchar_t const* _String + ); + +_Check_return_ +_When_( + _MaxCount > _String_length_(_Source), + _Post_satisfies_(return == _String_length_(_Source)) +) +_When_( + _MaxCount <= _String_length_(_Source), + _Post_satisfies_(return == _MaxCount) +) +_ACRTIMP size_t __cdecl wcsnlen( + _In_reads_or_z_(_MaxCount) wchar_t const* _Source, + _In_ size_t _MaxCount + ); + +#if __STDC_WANT_SECURE_LIB__ && !defined(__midl) + + _Check_return_ + _When_( + _MaxCount > _String_length_(_Source), + _Post_satisfies_(return == _String_length_(_Source)) + ) + _When_( + _MaxCount <= _String_length_(_Source), + _Post_satisfies_(return == _MaxCount) + ) + _CRT_NONSTANDARD_STATIC __inline size_t __CRTDECL wcsnlen_s( + _In_reads_or_z_(_MaxCount) wchar_t const* _Source, + _In_ size_t _MaxCount + ) + { + return (_Source == 0) ? 0 : wcsnlen(_Source, _MaxCount); + } + +#endif // __STDC_WANT_SECURE_LIB__ && !defined(__midl) + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, wcsncat_s, + _Prepost_z_ wchar_t, _Destination, + _In_reads_or_z_(_Count) wchar_t const*, _Source, + _In_ size_t, _Count + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, wcsncat, wcsncat_s, + _Inout_updates_z_(_Size) wchar_t, + _Inout_updates_z_(_Count), wchar_t, _Destination, + _In_reads_or_z_(_Count) wchar_t const*, _Source, + _In_ size_t, _Count + ) + +_Check_return_ +_ACRTIMP int __cdecl wcsncmp( + _In_reads_or_z_(_MaxCount) wchar_t const* _String1, + _In_reads_or_z_(_MaxCount) wchar_t const* _String2, + _In_ size_t _MaxCount + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, wcsncpy_s, + wchar_t, _Destination, + _In_reads_or_z_(_Count) wchar_t const*, _Source, + _In_ size_t, _Count + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, wcsncpy, wcsncpy_s, + _Pre_notnull_ _Post_maybez_ wchar_t, + _Out_writes_(_Count) _Post_maybez_, wchar_t, _Destination, + _In_reads_or_z_(_Count) wchar_t const*, _Source, + _In_ size_t, _Count + ) + +_Check_return_ +_ACRTIMP wchar_t _CONST_RETURN* __cdecl wcspbrk( + _In_z_ wchar_t const* _String, + _In_z_ wchar_t const* _Control + ); + +_Check_return_ +_ACRTIMP size_t __cdecl wcsspn( + _In_z_ wchar_t const* _String, + _In_z_ wchar_t const* _Control + ); + +_Check_return_ _CRT_INSECURE_DEPRECATE(wcstok_s) +_ACRTIMP wchar_t* __cdecl wcstok( + _Inout_opt_z_ wchar_t* _String, + _In_z_ wchar_t const* _Delimiter, + _Inout_opt_ _Deref_prepost_opt_z_ wchar_t** _Context + ); + +#if !defined RC_INVOKED && !defined __midl + + #if defined _CRT_NON_CONFORMING_WCSTOK + #define _WCSTOK_DEPRECATED _CRT_INSECURE_DEPRECATE(wcstok_s) + #else + #define _WCSTOK_DEPRECATED _CRT_DEPRECATE_TEXT( \ + "wcstok has been changed to conform with the ISO C standard, " \ + "adding an extra context parameter. To use the legacy Microsoft " \ + "wcstok, define _CRT_NON_CONFORMING_WCSTOK.") + #endif + + // TRANSITION OS-58345186: this function should have external linkage. + _Check_return_ _CRT_INSECURE_DEPRECATE(wcstok_s) + static __inline wchar_t* __CRTDECL _wcstok( + _Inout_opt_z_ wchar_t* const _String, + _In_z_ wchar_t const* const _Delimiter + ) + { + return wcstok(_String, _Delimiter, 0); + } + + #if defined _CRT_NON_CONFORMING_WCSTOK && !defined __cplusplus + #define wcstok _wcstok + #endif + + #if defined __cplusplus && !defined _CRT_NO_INLINE_DEPRECATED_WCSTOK + extern "C++" _Check_return_ _WCSTOK_DEPRECATED + inline wchar_t* __CRTDECL wcstok( + _Inout_opt_z_ wchar_t* _String, + _In_z_ wchar_t const* _Delimiter + ) throw() + { + return wcstok(_String, _Delimiter, 0); + } + #endif + +#endif // !defined RC_INVOKED && !defined __midl + + + +_Ret_z_ +_Check_return_ _CRT_INSECURE_DEPRECATE(_wcserror_s) +_ACRTIMP wchar_t* __cdecl _wcserror( + _In_ int _ErrorNumber + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wcserror_s( + _Out_writes_opt_z_(_SizeInWords) wchar_t* _Buffer, + _In_ size_t _SizeInWords, + _In_ int _ErrorNumber + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _wcserror_s, + wchar_t, _Buffer, + _In_ int, _Error + ) + +_Ret_z_ +_Success_(return != 0) +_Check_return_ _CRT_INSECURE_DEPRECATE(__wcserror_s) +_ACRTIMP wchar_t* __cdecl __wcserror( + _In_opt_z_ wchar_t const* _String + ); + +_Check_return_wat_ _ACRTIMP_ALT errno_t __cdecl __wcserror_s( + _Out_writes_opt_z_(_SizeInWords) wchar_t* _Buffer, + _In_ size_t _SizeInWords, + _In_z_ wchar_t const* _ErrorMessage + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, __wcserror_s, + wchar_t, _Buffer, + _In_z_ wchar_t const*, _ErrorMessage + ) + +_Check_return_ _ACRTIMP int __cdecl _wcsicmp( + _In_z_ wchar_t const* _String1, + _In_z_ wchar_t const* _String2 + ); + +_Check_return_ _ACRTIMP int __cdecl _wcsicmp_l( + _In_z_ wchar_t const* _String1, + _In_z_ wchar_t const* _String2, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ _ACRTIMP int __cdecl _wcsnicmp( + _In_reads_or_z_(_MaxCount) wchar_t const* _String1, + _In_reads_or_z_(_MaxCount) wchar_t const* _String2, + _In_ size_t _MaxCount + ); + +_Check_return_ _ACRTIMP int __cdecl _wcsnicmp_l( + _In_reads_or_z_(_MaxCount) wchar_t const* _String1, + _In_reads_or_z_(_MaxCount) wchar_t const* _String2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + +_Check_return_wat_ _ACRTIMP errno_t __cdecl _wcsnset_s( + _Inout_updates_z_(_SizeInWords) wchar_t* _Destination, + _In_ size_t _SizeInWords, + _In_ wchar_t _Value, + _In_ size_t _MaxCount + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _wcsnset_s, + _Prepost_z_ wchar_t, _Destination, + _In_ wchar_t, _Value, + _In_ size_t, _MaxCount + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wcsnset, _wcsnset_s, + _Inout_updates_z_(_Size) wchar_t, + _Inout_updates_z_(_MaxCount), wchar_t, _String, + _In_ wchar_t, _Value, + _In_ size_t, _MaxCount + ) + +_ACRTIMP wchar_t* __cdecl _wcsrev( + _Inout_z_ wchar_t* _String + ); + +_Check_return_wat_ _ACRTIMP errno_t __cdecl _wcsset_s( + _Inout_updates_z_(_SizeInWords) wchar_t* _Destination, + _In_ size_t _SizeInWords, + _In_ wchar_t _Value + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _wcsset_s, + _Prepost_z_ wchar_t, _String, + _In_ wchar_t, _Value + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wcsset, _wcsset_s, + _Inout_updates_z_(_Size) wchar_t, + _Inout_z_, wchar_t, _String, + _In_ wchar_t, _Value + ) + +_Check_return_wat_ _ACRTIMP errno_t __cdecl _wcslwr_s( + _Inout_updates_z_(_SizeInWords) wchar_t* _String, + _In_ size_t _SizeInWords + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _wcslwr_s, + _Prepost_z_ wchar_t, _String + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wcslwr, + _Inout_z_, wchar_t, _String + ) + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wcslwr_s_l( + _Inout_updates_z_(_SizeInWords) wchar_t* _String, + _In_ size_t _SizeInWords, + _In_opt_ _locale_t _Locale + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _wcslwr_s_l, + _Prepost_z_ wchar_t, _String, + _In_opt_ _locale_t, _Locale + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wcslwr_l, _wcslwr_s_l, + _Inout_updates_z_(_Size) wchar_t, + _Inout_z_, wchar_t, _String, + _In_opt_ _locale_t, _Locale + ) + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wcsupr_s( + _Inout_updates_z_(_Size) wchar_t* _String, + _In_ size_t _Size + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _wcsupr_s, + _Prepost_z_ wchar_t, _String + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wcsupr, + _Inout_z_, wchar_t, _String + ) + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wcsupr_s_l( + _Inout_updates_z_(_Size) wchar_t* _String, + _In_ size_t _Size, + _In_opt_ _locale_t _Locale + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _wcsupr_s_l, + _Prepost_z_ wchar_t, _String, + _In_opt_ _locale_t, _Locale + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX( + wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wcsupr_l, _wcsupr_s_l, + _Inout_updates_z_(_Size) wchar_t, + _Inout_z_, wchar_t, _String, + _In_opt_ _locale_t, _Locale + ) + +_Success_(return < _MaxCount) +_Check_return_opt_ +_ACRTIMP size_t __cdecl wcsxfrm( + _Out_writes_opt_(_MaxCount) _Post_maybez_ wchar_t* _Destination, + _In_z_ wchar_t const* _Source, + _In_ _In_range_(<= ,_CRT_INT_MAX) size_t _MaxCount + ); + +_Success_(return < _MaxCount) +_Check_return_opt_ +_ACRTIMP size_t __cdecl _wcsxfrm_l( + _Out_writes_opt_(_MaxCount) _Post_maybez_ wchar_t* _Destination, + _In_z_ wchar_t const* _Source, + _In_ _In_range_(<= ,_CRT_INT_MAX) size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP int __cdecl wcscoll( + _In_z_ wchar_t const* _String1, + _In_z_ wchar_t const* _String2 + ); + +_Check_return_ +_ACRTIMP int __cdecl _wcscoll_l( + _In_z_ wchar_t const* _String1, + _In_z_ wchar_t const* _String2, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP int __cdecl _wcsicoll( + _In_z_ wchar_t const* _String1, + _In_z_ wchar_t const* _String2 + ); + +_Check_return_ +_ACRTIMP int __cdecl _wcsicoll_l( + _In_z_ wchar_t const* _String1, + _In_z_ wchar_t const* _String2, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP int __cdecl _wcsncoll( + _In_reads_or_z_(_MaxCount) wchar_t const* _String1, + _In_reads_or_z_(_MaxCount) wchar_t const* _String2, + _In_ size_t _MaxCount + ); + +_Check_return_ +_ACRTIMP int __cdecl _wcsncoll_l( + _In_reads_or_z_(_MaxCount) wchar_t const* _String1, + _In_reads_or_z_(_MaxCount) wchar_t const* _String2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP int __cdecl _wcsnicoll( + _In_reads_or_z_(_MaxCount) wchar_t const* _String1, + _In_reads_or_z_(_MaxCount) wchar_t const* _String2, + _In_ size_t _MaxCount + ); + +_Check_return_ +_ACRTIMP int __cdecl _wcsnicoll_l( + _In_reads_or_z_(_MaxCount) wchar_t const* _String1, + _In_reads_or_z_(_MaxCount) wchar_t const* _String2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Inline C++ Overloads +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifdef __cplusplus +extern "C++" { + + _Check_return_ + _When_(return != NULL, _Ret_range_(_String, _String+_String_length_(_String)-1)) + inline wchar_t* __CRTDECL wcschr(_In_z_ wchar_t* _String, wchar_t _C) + { + return const_cast(wcschr(static_cast(_String), _C)); + } + + _Check_return_ + inline wchar_t* __CRTDECL wcspbrk(_In_z_ wchar_t* _String, _In_z_ wchar_t const* _Control) + { + return const_cast(wcspbrk(static_cast(_String), _Control)); + } + + _Check_return_ + inline wchar_t* __CRTDECL wcsrchr(_In_z_ wchar_t* _String, _In_ wchar_t _C) + { + return const_cast(wcsrchr(static_cast(_String), _C)); + } + + _Check_return_ _Ret_maybenull_ + _When_(return != NULL, _Ret_range_(_String, _String+_String_length_(_String)-1)) + inline wchar_t* __CRTDECL wcsstr(_In_z_ wchar_t* _String, _In_z_ wchar_t const*_SubStr) + { + return const_cast(wcsstr(static_cast(_String), _SubStr)); + } + +} +#endif // __cplusplus + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Non-Standard Names +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma push_macro("wcsdup") + #undef wcsdup + #endif + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_wcsdup) + _ACRTIMP wchar_t* __cdecl wcsdup( + _In_z_ wchar_t const* _String + ); + + #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma pop_macro("wcsdup") + #endif + + // Declarations of functions defined in oldnames.lib: + #define wcswcs wcsstr + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_wcsicmp) + _ACRTIMP int __cdecl wcsicmp( + _In_z_ wchar_t const* _String1, + _In_z_ wchar_t const* _String2 + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_wcsnicmp) + _ACRTIMP int __cdecl wcsnicmp( + _In_reads_or_z_(_MaxCount) wchar_t const* _String1, + _In_reads_or_z_(_MaxCount) wchar_t const* _String2, + _In_ size_t _MaxCount + ); + + _CRT_NONSTDC_DEPRECATE(_wcsnset) + _Ret_z_ + _ACRTIMP wchar_t* __cdecl wcsnset( + _Inout_updates_z_(_MaxCount) wchar_t* _String, + _In_ wchar_t _Value, + _In_ size_t _MaxCount + ); + + _CRT_NONSTDC_DEPRECATE(_wcsrev) + _Ret_z_ + _ACRTIMP wchar_t* __cdecl wcsrev( + _Inout_z_ wchar_t* _String + ); + + _CRT_NONSTDC_DEPRECATE(_wcsset) + _Ret_z_ + _ACRTIMP wchar_t* __cdecl wcsset( + _Inout_z_ wchar_t* _String, + _In_ wchar_t _Value + ); + + _CRT_NONSTDC_DEPRECATE(_wcslwr) + _Ret_z_ + _ACRTIMP wchar_t* __cdecl wcslwr( + _Inout_z_ wchar_t* _String + ); + + _CRT_NONSTDC_DEPRECATE(_wcsupr) + _Ret_z_ + _ACRTIMP wchar_t* __cdecl wcsupr( + _Inout_z_ wchar_t* _String + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_wcsicoll) + _ACRTIMP int __cdecl wcsicoll( + _In_z_ wchar_t const* _String1, + _In_z_ wchar_t const* _String2 + ); + +#endif // _CRT_INTERNAL_NONSTDC_NAMES + + + +_CRT_END_C_HEADER + +#endif // !__midl +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wtime.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wtime.h new file mode 100644 index 0000000000000000000000000000000000000000..30cbd147f2b6233509cfb0625142f75ee5207475 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/corecrt_wtime.h @@ -0,0 +1,207 @@ +// +// corecrt_wtime.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the wide character (wchar_t) time functionality, shared +// by and . +// +#pragma once + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Types +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +struct tm +{ + int tm_sec; // seconds after the minute - [0, 60] including leap second + int tm_min; // minutes after the hour - [0, 59] + int tm_hour; // hours since midnight - [0, 23] + int tm_mday; // day of the month - [1, 31] + int tm_mon; // months since January - [0, 11] + int tm_year; // years since 1900 + int tm_wday; // days since Sunday - [0, 6] + int tm_yday; // days since January 1 - [0, 365] + int tm_isdst; // daylight savings time flag +}; + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Wide String Time Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +_Check_return_ _CRT_INSECURE_DEPRECATE(_wasctime_s) +_Success_(return != 0) +_Ret_writes_z_(26) +_ACRTIMP wchar_t* __cdecl _wasctime( + _In_ struct tm const* _Tm + ); + +_Success_(return == 0) +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wasctime_s( + _Out_writes_z_(_SizeInWords) _Post_readable_size_(26) wchar_t* _Buffer, + _In_range_(>=,26) size_t _SizeInWords, + _In_ struct tm const* _Tm + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + _Success_(return == 0) + errno_t, _wasctime_s, + _Post_readable_size_(26) wchar_t, _Buffer, + _In_ struct tm const*, _Time + ) + +_Success_(return > 0) +_Check_return_wat_ +_ACRTIMP size_t __cdecl wcsftime( + _Out_writes_z_(_SizeInWords) wchar_t* _Buffer, + _In_ size_t _SizeInWords, + _In_z_ wchar_t const* _Format, + _In_ struct tm const* _Tm + ); + +_Success_(return > 0) +_Check_return_wat_ +_ACRTIMP size_t __cdecl _wcsftime_l( + _Out_writes_z_(_SizeInWords) wchar_t* _Buffer, + _In_ size_t _SizeInWords, + _In_z_ wchar_t const* _Format, + _In_ struct tm const* _Tm, + _In_opt_ _locale_t _Locale + ); + +_Success_(return != 0) +_Check_return_ _CRT_INSECURE_DEPRECATE(_wctime32_s) +_ACRTIMP wchar_t* __cdecl _wctime32( + _In_ __time32_t const* _Time + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wctime32_s( + _Out_writes_z_(_SizeInWords) _Post_readable_size_(26) wchar_t* _Buffer, + _In_ _In_range_(>=, 26) size_t _SizeInWords, + _In_ __time32_t const* _Time + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _wctime32_s, + _Post_readable_size_(26) wchar_t, _Buffer, + _In_ __time32_t const*, _Time + ) + +_Success_(return != 0) +_Ret_writes_z_(26) +_Check_return_ _CRT_INSECURE_DEPRECATE(_wctime64_s) +_ACRTIMP wchar_t* __cdecl _wctime64( + _In_ __time64_t const* _Time + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wctime64_s( + _Out_writes_z_(_SizeInWords) _Post_readable_size_(26) wchar_t* _Buffer, + _In_ _In_range_(>=, 26) size_t _SizeInWords, + _In_ __time64_t const* _Time); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _wctime64_s, + _Post_readable_size_(26) wchar_t, _Buffer, + _In_ __time64_t const*, _Time + ) + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wstrdate_s( + _Out_writes_z_(_SizeInWords) _When_(_SizeInWords >=9, _Post_readable_size_(9)) wchar_t* _Buffer, + _In_ size_t _SizeInWords + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _wstrdate_s, + _Post_readable_size_(9) wchar_t, _Buffer + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + _Success_(return != 0) _Ret_writes_z_(9) wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wstrdate, + _Out_writes_z_(9), wchar_t, _Buffer + ) + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wstrtime_s( + _Out_writes_z_(_SizeInWords) _When_(_SizeInWords >=9, _Post_readable_size_(9)) wchar_t* _Buffer, + _In_ size_t _SizeInWords + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _wstrtime_s, + _Post_readable_size_(9) wchar_t, _Buffer + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + _Success_(return != 0) _Ret_writes_z_(9) wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wstrtime, + _Out_writes_z_(9), wchar_t, _Buffer + ) + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Inline Definitions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if !defined RC_INVOKED && !defined __midl && !defined _INC_WTIME_INL && !defined _CRT_NO_TIME_T + #ifdef _USE_32BIT_TIME_T + + _Check_return_ + _CRT_NONSTANDARD_STATIC __inline wchar_t* __CRTDECL _wctime( + _In_ time_t const* const _Time + ) + { + return _wctime32(_Time); + } + + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline errno_t __CRTDECL _wctime_s( + _Pre_notnull_ _Post_z_ _Out_writes_z_(_SizeInWords) wchar_t* const _Buffer, + _In_ size_t const _SizeInWords, + _In_ time_t const* const _Time) + { + return _wctime32_s(_Buffer, _SizeInWords, _Time); + } + + #else // ^^^ _USE_32BIT_TIME_T ^^^ // vvv !_USE_32BIT_TIME_T vvv // + + _Check_return_ + _CRT_NONSTANDARD_STATIC __inline wchar_t * __CRTDECL _wctime( + _In_ time_t const* const _Time) + { + return _wctime64(_Time); + } + + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline errno_t __CRTDECL _wctime_s( + _Pre_notnull_ _Post_z_ _Out_writes_z_(_SizeInWords) wchar_t* const _Buffer, + _In_ size_t const _SizeInWords, + _In_ time_t const* const _Time + ) + { + return _wctime64_s(_Buffer, _SizeInWords, _Time); + } + + #endif // !_USE_32BIT_TIME_T +#endif + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/crtdbg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/crtdbg.h new file mode 100644 index 0000000000000000000000000000000000000000..988811204c27f03b982d6176890c08388b83556a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/crtdbg.h @@ -0,0 +1,816 @@ +// +// crtdbg.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Public debugging facilities for the CRT +// +#pragma once +#ifndef _INC_CRTDBG // include guard for 3rd party interop +#define _INC_CRTDBG + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +typedef void* _HFILE; // file handle pointer + +#define _CRT_WARN 0 +#define _CRT_ERROR 1 +#define _CRT_ASSERT 2 +#define _CRT_ERRCNT 3 + +#define _CRTDBG_MODE_FILE 0x1 +#define _CRTDBG_MODE_DEBUG 0x2 +#define _CRTDBG_MODE_WNDW 0x4 +#define _CRTDBG_REPORT_MODE -1 + +#define _CRTDBG_INVALID_HFILE ((_HFILE)(intptr_t)-1) +#define _CRTDBG_HFILE_ERROR ((_HFILE)(intptr_t)-2) +#define _CRTDBG_FILE_STDOUT ((_HFILE)(intptr_t)-4) +#define _CRTDBG_FILE_STDERR ((_HFILE)(intptr_t)-5) +#define _CRTDBG_REPORT_FILE ((_HFILE)(intptr_t)-6) + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Client-defined reporting and allocation hooks +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + +typedef int (__CRTDECL* _CRT_REPORT_HOOK )(int, char*, int*); +typedef int (__CRTDECL* _CRT_REPORT_HOOKW)(int, wchar_t*, int*); + +#define _CRT_RPTHOOK_INSTALL 0 +#define _CRT_RPTHOOK_REMOVE 1 + + +typedef int (__CRTDECL* _CRT_ALLOC_HOOK)(int, void*, size_t, int, long, unsigned char const*, int); + +#ifdef _M_CEE + typedef int (__clrcall* _CRT_ALLOC_HOOK_M)(int, void*, size_t, int, long, unsigned char const*, int); +#endif + +#define _HOOK_ALLOC 1 +#define _HOOK_REALLOC 2 +#define _HOOK_FREE 3 + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Memory Management and State Tracking +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + +// Bit values for _crtDbgFlag flag. These bitflags control debug heap behavior. +#define _CRTDBG_ALLOC_MEM_DF 0x01 // Turn on debug allocation +#define _CRTDBG_DELAY_FREE_MEM_DF 0x02 // Don't actually free memory +#define _CRTDBG_CHECK_ALWAYS_DF 0x04 // Check heap every alloc/dealloc +#define _CRTDBG_RESERVED_DF 0x08 // Reserved - do not use +#define _CRTDBG_CHECK_CRT_DF 0x10 // Leak check/diff CRT blocks +#define _CRTDBG_LEAK_CHECK_DF 0x20 // Leak check at program exit + +// Some bit values for _crtDbgFlag which correspond to frequencies for checking +// the heap. +#define _CRTDBG_CHECK_EVERY_16_DF 0x00100000 // Check heap every 16 heap ops +#define _CRTDBG_CHECK_EVERY_128_DF 0x00800000 // Check heap every 128 heap ops +#define _CRTDBG_CHECK_EVERY_1024_DF 0x04000000 // Check heap every 1024 heap ops + +// We do not check the heap by default at this point because the cost was too +// high for some applications. You can still turn this feature on manually. +#define _CRTDBG_CHECK_DEFAULT_DF 0 + +#define _CRTDBG_REPORT_FLAG -1 // Query bitflag status + +#define _BLOCK_TYPE(block) (block & 0xFFFF) +#define _BLOCK_SUBTYPE(block) (block >> 16 & 0xFFFF) + +// Memory block identification +#define _FREE_BLOCK 0 +#define _NORMAL_BLOCK 1 +#define _CRT_BLOCK 2 +#define _IGNORE_BLOCK 3 +#define _CLIENT_BLOCK 4 +#define _MAX_BLOCKS 5 + +// _UNKNOWN_BLOCK is a sentinel value that may be passed to some functions that +// expect a block type as an argument. If this value is passed, those functions +// will use the block type specified in the block header instead. This is used +// in cases where the heap lock cannot be acquired to compute the block type +// before calling the function (e.g. when the caller is outside of the CoreCRT). +#define _UNKNOWN_BLOCK (-1) + +typedef void (__CRTDECL* _CRT_DUMP_CLIENT)(void*, size_t); + +#ifdef _M_CEE + typedef void (__clrcall* _CRT_DUMP_CLIENT_M)(void*, size_t); +#endif + +struct _CrtMemBlockHeader; + +typedef struct _CrtMemState +{ + struct _CrtMemBlockHeader* pBlockHeader; + size_t lCounts[_MAX_BLOCKS]; + size_t lSizes[_MAX_BLOCKS]; + size_t lHighWaterCount; + size_t lTotalCount; +} _CrtMemState; + +#ifndef _DEBUG + + #define _CrtGetAllocHook() ((_CRT_ALLOC_HOOK)0) + #define _CrtSetAllocHook(f) ((_CRT_ALLOC_HOOK)0) + + #define _CrtGetDumpClient() ((_CRT_DUMP_CLIENT)0) + #define _CrtSetDumpClient(f) ((_CRT_DUMP_CLIENT)0) + + #define _CrtCheckMemory() ((int)1) + #define _CrtDoForAllClientObjects(f, c) ((void)0) + #define _CrtDumpMemoryLeaks() ((int)0) + #define _CrtIsMemoryBlock(p, t, r, f, l) ((int)1) + #define _CrtIsValidHeapPointer(p) ((int)1) + #define _CrtIsValidPointer(p, n, r) ((int)1) + #define _CrtMemCheckpoint(s) ((void)0) + #define _CrtMemDifference(s1, s2, s3) ((int)0) + #define _CrtMemDumpAllObjectsSince(s) ((void)0) + #define _CrtMemDumpStatistics(s) ((void)0) + #define _CrtReportBlockType(p) ((int)-1) + #define _CrtSetBreakAlloc(a) ((long)0) + #define _CrtSetDbgFlag(f) ((int)0) + + +#else // ^^^ !_DEBUG ^^^ // vvv _DEBUG vvv // + + #ifndef _M_CEE_PURE + + _ACRTIMP int* __cdecl __p__crtDbgFlag(void); + _ACRTIMP long* __cdecl __p__crtBreakAlloc(void); + + #define _crtDbgFlag (*__p__crtDbgFlag()) + #define _crtBreakAlloc (*__p__crtBreakAlloc()) + + _ACRTIMP _CRT_ALLOC_HOOK __cdecl _CrtGetAllocHook(void); + + _ACRTIMP _CRT_ALLOC_HOOK __cdecl _CrtSetAllocHook( + _In_opt_ _CRT_ALLOC_HOOK _PfnNewHook + ); + + _ACRTIMP _CRT_DUMP_CLIENT __cdecl _CrtGetDumpClient(void); + + _ACRTIMP _CRT_DUMP_CLIENT __cdecl _CrtSetDumpClient( + _In_opt_ _CRT_DUMP_CLIENT _PFnNewDump + ); + + #endif // _M_CEE_PURE + + _ACRTIMP int __cdecl _CrtCheckMemory(void); + + typedef void (__cdecl* _CrtDoForAllClientObjectsCallback)(void*, void*); + + _ACRTIMP void __cdecl _CrtDoForAllClientObjects( + _In_ _CrtDoForAllClientObjectsCallback _Callback, + _In_ void* _Context + ); + + _ACRTIMP int __cdecl _CrtDumpMemoryLeaks(void); + + _ACRTIMP int __cdecl _CrtIsMemoryBlock( + _In_opt_ void const* _Block, + _In_ unsigned int _Size, + _Out_opt_ long* _RequestNumber, + _Out_opt_ char** _FileName, + _Out_opt_ int* _LineNumber + ); + + _Check_return_ + _ACRTIMP int __cdecl _CrtIsValidHeapPointer( + _In_opt_ void const* _Pointer + ); + + _Check_return_ + _ACRTIMP int __cdecl _CrtIsValidPointer( + _In_opt_ void const* _Pointer, + _In_ unsigned int _Size, + _In_ int _ReadWrite + ); + + _ACRTIMP void __cdecl _CrtMemCheckpoint( + _Out_ _CrtMemState* _State + ); + + _ACRTIMP int __cdecl _CrtMemDifference( + _Out_ _CrtMemState* _State, + _In_ _CrtMemState const* _OldState, + _In_ _CrtMemState const* _NewState + ); + + _ACRTIMP void __cdecl _CrtMemDumpAllObjectsSince( + _In_opt_ _CrtMemState const* _State + ); + + _ACRTIMP void __cdecl _CrtMemDumpStatistics( + _In_ _CrtMemState const* _State + ); + + _Check_return_ + _ACRTIMP int __cdecl _CrtReportBlockType( + _In_opt_ void const* _Block + ); + + _ACRTIMP long __cdecl _CrtSetBreakAlloc( + _In_ long _NewValue + ); + + _ACRTIMP int __cdecl _CrtSetDbgFlag( + _In_ int _NewFlag + ); + +#endif // _DEBUG + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Debug Heap Routines +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifndef _DEBUG + + #define _calloc_dbg(c, s, t, f, l) calloc(c, s) + #define _expand_dbg(p, s, t, f, l) _expand(p, s) + #define _free_dbg(p, t) free(p) + #define _malloc_dbg(s, t, f, l) malloc(s) + #define _msize_dbg(p, t) _msize(p) + #define _realloc_dbg(p, s, t, f, l) realloc(p, s) + #define _recalloc_dbg(p, c, s, t, f, l) _recalloc(p, c, s) + + #define _aligned_free_dbg(p) _aligned_free(p) + #define _aligned_malloc_dbg(s, a, f, l) _aligned_malloc(s, a) + #define _aligned_msize_dbg(p, a, o) _aligned_msize(p, a, o) + #define _aligned_offset_malloc_dbg(s, a, o, f, l) _aligned_offset_malloc(s, a, o) + #define _aligned_offset_realloc_dbg(p, s, a, o, f, l) _aligned_offset_realloc(p, s, a, o) + #define _aligned_offset_recalloc_dbg(p, c, s, a, o, f, l) _aligned_offset_recalloc(p, c, s, a, o) + #define _aligned_realloc_dbg(p, s, a, f, l) _aligned_realloc(p, s, a) + #define _aligned_recalloc_dbg(p, c, s, a, f, l) _aligned_recalloc(p, c, s, a) + + #define _freea_dbg(p, t) _freea(p) + #define _malloca_dbg(s, t, f, l) _malloca(s) + + #define _dupenv_s_dbg(ps1, size, s2, t, f, l) _dupenv_s(ps1, size, s2) + #define _fullpath_dbg(s1, s2, le, t, f, l) _fullpath(s1, s2, le) + #define _getcwd_dbg(s, le, t, f, l) _getcwd(s, le) + #define _getdcwd_dbg(d, s, le, t, f, l) _getdcwd(d, s, le) + #define _getdcwd_lk_dbg(d, s, le, t, f, l) _getdcwd(d, s, le) + #define _mbsdup_dbg(s, t, f, l) _mbsdup(s) + #define _strdup_dbg(s, t, f, l) _strdup(s) + #define _tempnam_dbg(s1, s2, t, f, l) _tempnam(s1, s2) + #define _wcsdup_dbg(s, t, f, l) _wcsdup(s) + #define _wdupenv_s_dbg(ps1, size, s2, t, f, l) _wdupenv_s(ps1, size, s2) + #define _wfullpath_dbg(s1, s2, le, t, f, l) _wfullpath(s1, s2, le) + #define _wgetcwd_dbg(s, le, t, f, l) _wgetcwd(s, le) + #define _wgetdcwd_dbg(d, s, le, t, f, l) _wgetdcwd(d, s, le) + #define _wgetdcwd_lk_dbg(d, s, le, t, f, l) _wgetdcwd(d, s, le) + #define _wtempnam_dbg(s1, s2, t, f, l) _wtempnam(s1, s2) + +#else // ^^^ !_DEBUG ^^^ // vvv _DEBUG vvv // + + #ifdef _CRTDBG_MAP_ALLOC + + #define calloc(c, s) _calloc_dbg(c, s, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _expand(p, s) _expand_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__) + #define free(p) _free_dbg(p, _NORMAL_BLOCK) + #define malloc(s) _malloc_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _msize(p) _msize_dbg(p, _NORMAL_BLOCK) + #define realloc(p, s) _realloc_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _recalloc(p, c, s) _recalloc_dbg(p, c, s, _NORMAL_BLOCK, __FILE__, __LINE__) + + #define _aligned_free(p) _aligned_free_dbg(p) + #define _aligned_malloc(s, a) _aligned_malloc_dbg(s, a, __FILE__, __LINE__) + #define _aligned_msize(p, a, o) _aligned_msize_dbg(p, a, o) + #define _aligned_offset_malloc(s, a, o) _aligned_offset_malloc_dbg(s, a, o, __FILE__, __LINE__) + #define _aligned_offset_realloc(p, s, a, o) _aligned_offset_realloc_dbg(p, s, a, o, __FILE__, __LINE__) + #define _aligned_offset_recalloc(p, c, s, a, o) _aligned_offset_recalloc_dbg(p, c, s, a, o, __FILE__, __LINE__) + #define _aligned_realloc(p, s, a) _aligned_realloc_dbg(p, s, a, __FILE__, __LINE__) + #define _aligned_recalloc(p, c, s, a) _aligned_recalloc_dbg(p, c, s, a, __FILE__, __LINE__) + + #define _freea(p) _freea_dbg(p, _NORMAL_BLOCK) + #define _malloca(s) _malloca_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__) + + #define _dupenv_s(ps1, size, s2) _dupenv_s_dbg(ps1, size, s2, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _fullpath(s1, s2, le) _fullpath_dbg(s1, s2, le, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _getcwd(s, le) _getcwd_dbg(s, le, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _getdcwd(d, s, le) _getdcwd_dbg(d, s, le, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _mbsdup(s) _strdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _strdup(s) _strdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _tempnam(s1, s2) _tempnam_dbg(s1, s2, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _wcsdup(s) _wcsdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _wdupenv_s(ps1, size, s2) _wdupenv_s_dbg(ps1, size, s2, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _wfullpath(s1, s2, le) _wfullpath_dbg(s1, s2, le, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _wgetcwd(s, le) _wgetcwd_dbg(s, le, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _wgetdcwd(d, s, le) _wgetdcwd_dbg(d, s, le, _NORMAL_BLOCK, __FILE__, __LINE__) + #define _wtempnam(s1, s2) _wtempnam_dbg(s1, s2, _NORMAL_BLOCK, __FILE__, __LINE__) + + #if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + #define strdup(s) _strdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__) + #define wcsdup(s) _wcsdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__) + #define tempnam(s1, s2) _tempnam_dbg(s1, s2, _NORMAL_BLOCK, __FILE__, __LINE__) + #define getcwd(s, le) _getcwd_dbg(s, le, _NORMAL_BLOCK, __FILE__, __LINE__) + #endif + + #endif // _CRTDBG_MAP_ALLOC + + _ACRTIMP void __cdecl _aligned_free_dbg( + _Pre_maybenull_ _Post_invalid_ void* _Block + ); + + _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _aligned_malloc_dbg( + _In_ size_t _Size, + _In_ size_t _Alignment, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _ACRTIMP size_t __cdecl _aligned_msize_dbg( + _Pre_notnull_ void* _Block, + _In_ size_t _Alignment, + _In_ size_t _Offset + ); + + _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _aligned_offset_malloc_dbg( + _In_ size_t _Size, + _In_ size_t _Alignment, + _In_ size_t _Offset, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _aligned_offset_realloc_dbg( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ size_t _Size, + _In_ size_t _Alignment, + _In_ size_t _Offset, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Count * _Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _aligned_offset_recalloc_dbg( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ size_t _Count, + _In_ size_t _Size, + _In_ size_t _Alignment, + _In_ size_t _Offset, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _aligned_realloc_dbg( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ size_t _Size, + _In_ size_t _Alignment, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Count * _Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _aligned_recalloc_dbg( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ size_t _Count, + _In_ size_t _Size, + _In_ size_t _Alignment, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Count * _Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _calloc_dbg( + _In_ size_t _Count, + _In_ size_t _Size, + _In_ int _BlockUse, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _expand_dbg( + _Pre_notnull_ void* _Block, + _In_ size_t _Size, + _In_ int _BlockUse, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _ACRTIMP void __cdecl _free_dbg( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ int _BlockUse + ); + + _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _malloc_dbg( + _In_ size_t _Size, + _In_ int _BlockUse, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _ACRTIMP size_t __cdecl _msize_dbg( + _Pre_notnull_ void* _Block, + _In_ int _BlockUse + ); + + _Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _realloc_dbg( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ size_t _Size, + _In_ int _BlockUse, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) _Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Count * _Size) + _ACRTIMP _CRTALLOCATOR void* __cdecl _recalloc_dbg( + _Pre_maybenull_ _Post_invalid_ void* _Block, + _In_ size_t _Count, + _In_ size_t _Size, + _In_ int _BlockUse, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return == 0) + _Check_return_wat_ + _DCRTIMP errno_t __cdecl _dupenv_s_dbg( + _Outptr_result_buffer_maybenull_(*_PBufferSizeInBytes) char** _PBuffer, + _Out_opt_ size_t* _PBufferSizeInBytes, + _In_z_ char const* _VarName, + _In_ int _BlockType, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) + _Check_return_ _Ret_maybenull_z_ + _ACRTIMP _CRTALLOCATOR char* __cdecl _fullpath_dbg( + _Out_writes_opt_z_(_SizeInBytes) char* _FullPath, + _In_z_ char const* _Path, + _In_ size_t _SizeInBytes, + _In_ int _BlockType, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) + _Check_return_ _Ret_maybenull_z_ + _DCRTIMP _CRTALLOCATOR char* __cdecl _getcwd_dbg( + _Out_writes_opt_z_(_SizeInBytes) char* _DstBuf, + _In_ int _SizeInBytes, + _In_ int _BlockType, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + + _Success_(return != 0) + _Check_return_ _Ret_maybenull_z_ + _DCRTIMP _CRTALLOCATOR char* __cdecl _getdcwd_dbg( + _In_ int _Drive, + _Out_writes_opt_z_(_SizeInBytes) char* _DstBuf, + _In_ int _SizeInBytes, + _In_ int _BlockType, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Check_return_ _Ret_maybenull_z_ + _ACRTIMP _CRTALLOCATOR char* __cdecl _strdup_dbg( + _In_opt_z_ char const* _String, + _In_ int _BlockUse, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Check_return_ _Ret_maybenull_z_ + _ACRTIMP _CRTALLOCATOR char* __cdecl _tempnam_dbg( + _In_opt_z_ char const* _DirName, + _In_opt_z_ char const* _FilePrefix, + _In_ int _BlockType, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) + _Check_return_ _Ret_maybenull_z_ + _ACRTIMP _CRTALLOCATOR wchar_t* __cdecl _wcsdup_dbg( + _In_opt_z_ wchar_t const* _String, + _In_ int _BlockUse, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return == 0) + _Check_return_wat_ + _DCRTIMP errno_t __cdecl _wdupenv_s_dbg( + _Outptr_result_buffer_maybenull_(*_PBufferSizeInWords) wchar_t** _PBuffer, + _Out_opt_ size_t* _PBufferSizeInWords, + _In_z_ wchar_t const* _VarName, + _In_ int _BlockType, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) + _Check_return_ _Ret_maybenull_z_ + _ACRTIMP _CRTALLOCATOR wchar_t* __cdecl _wfullpath_dbg( + _Out_writes_opt_z_(_SizeInWords) wchar_t* _FullPath, + _In_z_ wchar_t const* _Path, + _In_ size_t _SizeInWords, + _In_ int _BlockType, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) + _Check_return_ _Ret_maybenull_z_ + _DCRTIMP _CRTALLOCATOR wchar_t* __cdecl _wgetcwd_dbg( + _Out_writes_opt_z_(_SizeInWords) wchar_t* _DstBuf, + _In_ int _SizeInWords, + _In_ int _BlockType, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Success_(return != 0) + _Check_return_ _Ret_maybenull_z_ + _DCRTIMP _CRTALLOCATOR wchar_t* __cdecl _wgetdcwd_dbg( + _In_ int _Drive, + _Out_writes_opt_z_(_SizeInWords) wchar_t* _DstBuf, + _In_ int _SizeInWords, + _In_ int _BlockType, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + _Check_return_ _Ret_maybenull_z_ + _ACRTIMP _CRTALLOCATOR wchar_t* __cdecl _wtempnam_dbg( + _In_opt_z_ wchar_t const* _DirName, + _In_opt_z_ wchar_t const* _FilePrefix, + _In_ int _BlockType, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber + ); + + #define _malloca_dbg(s, t, f, l) _malloc_dbg(s, t, f, l) + #define _freea_dbg(p, t) _free_dbg(p, t) + + #if defined __cplusplus && defined _CRTDBG_MAP_ALLOC + namespace std + { + using ::_calloc_dbg; + using ::_free_dbg; + using ::_malloc_dbg; + using ::_realloc_dbg; + } + #endif + +#endif // _DEBUG + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Debug Reporting +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + +#ifndef _DEBUG + + #define _CrtSetDebugFillThreshold(t) ((size_t)0) + #define _CrtSetReportFile(t, f) ((_HFILE)0) + #define _CrtSetReportMode(t, f) ((int)0) + #define _CrtGetReportHook() ((_CRT_REPORT_HOOK)0) + #define _CrtSetReportHook(f) ((_CRT_REPORT_HOOK)0) + #define _CrtSetReportHook2(t, f) ((int)0) + #define _CrtSetReportHookW2(t, f) ((int)0) + +#else // ^^^ !_DEBUG ^^^ // vvv _DEBUG vvv // + + _ACRTIMP int __cdecl _CrtDbgReport( + _In_ int _ReportType, + _In_opt_z_ char const* _FileName, + _In_ int _Linenumber, + _In_opt_z_ char const* _ModuleName, + _In_opt_z_ char const* _Format, + ...); + + _ACRTIMP int __cdecl _CrtDbgReportW( + _In_ int _ReportType, + _In_opt_z_ wchar_t const* _FileName, + _In_ int _LineNumber, + _In_opt_z_ wchar_t const* _ModuleName, + _In_opt_z_ wchar_t const* _Format, + ...); + + + _ACRTIMP int __cdecl _VCrtDbgReportA( + _In_ int _ReportType, + _In_opt_ void* _ReturnAddress, + _In_opt_z_ char const* _FileName, + _In_ int _LineNumber, + _In_opt_z_ char const* _ModuleName, + _In_opt_z_ char const* _Format, + va_list _ArgList + ); + + _ACRTIMP int __cdecl _VCrtDbgReportW( + _In_ int _ReportType, + _In_opt_ void* _ReturnAddress, + _In_opt_z_ wchar_t const* _FileName, + _In_ int _LineNumber, + _In_opt_z_ wchar_t const* _ModuleName, + _In_opt_z_ wchar_t const* _Format, + va_list _ArgList + ); + + _ACRTIMP size_t __cdecl _CrtSetDebugFillThreshold( + _In_ size_t _NewDebugFillThreshold + ); + + _ACRTIMP size_t __cdecl _CrtGetDebugFillThreshold(void); + + _ACRTIMP _HFILE __cdecl _CrtSetReportFile( + _In_ int _ReportType, + _In_opt_ _HFILE _ReportFile + ); + + _ACRTIMP int __cdecl _CrtSetReportMode( + _In_ int _ReportType, + _In_ int _ReportMode + ); + + #ifndef _M_CEE_PURE + + extern long _crtAssertBusy; + + _ACRTIMP _CRT_REPORT_HOOK __cdecl _CrtGetReportHook(void); + + // _CrtSetReportHook[[W]2]: + // For IJW, we need two versions: one for clrcall and one for cdecl. + // For pure and native, we just need clrcall and cdecl, respectively. + _ACRTIMP _CRT_REPORT_HOOK __cdecl _CrtSetReportHook( + _In_opt_ _CRT_REPORT_HOOK _PFnNewHook + ); + + _ACRTIMP int __cdecl _CrtSetReportHook2( + _In_ int _Mode, + _In_opt_ _CRT_REPORT_HOOK _PFnNewHook + ); + + _ACRTIMP int __cdecl _CrtSetReportHookW2( + _In_ int _Mode, + _In_opt_ _CRT_REPORT_HOOKW _PFnNewHook + ); + + #endif // !_M_CEE_PURE + +#endif // _DEBUG + + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Assertions and Error Reporting Macros +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifndef _DEBUG + + #define _CrtDbgBreak() ((void)0) + + #ifndef _ASSERT_EXPR + #define _ASSERT_EXPR(expr, msg) ((void)0) + #endif + + #ifndef _ASSERT + #define _ASSERT(expr) ((void)0) + #endif + + #ifndef _ASSERTE + #define _ASSERTE(expr) ((void)0) + #endif + + #define _RPT0(rptno, msg) + #define _RPTN(rptno, msg, ...) + + #define _RPTW0(rptno, msg) + #define _RPTWN(rptno, msg, ...) + + #define _RPTF0(rptno, msg) + #define _RPTFN(rptno, msg, ...) + + #define _RPTFW0(rptno, msg) + #define _RPTFWN(rptno, msg, ...) + +#else // ^^^ !_DEBUG ^^^ // vvv _DEBUG vvv // + + #define _CrtDbgBreak() __debugbreak() + + // !! is used to ensure that any overloaded operators used to evaluate expr + // do not end up at &&. + #ifndef _ASSERT_EXPR + #define _ASSERT_EXPR(expr, msg) \ + (void)( \ + (!!(expr)) || \ + (1 != _CrtDbgReportW(_CRT_ASSERT, _CRT_WIDE(__FILE__), __LINE__, NULL, L"%ls", msg)) || \ + (_CrtDbgBreak(), 0) \ + ) + #endif + + #ifndef _ASSERT + #define _ASSERT(expr) _ASSERT_EXPR((expr), NULL) + #endif + + #ifndef _ASSERTE + #define _ASSERTE(expr) _ASSERT_EXPR((expr), _CRT_WIDE(#expr)) + #endif + + #define _RPT_BASE(...) \ + (void) ((1 != _CrtDbgReport(__VA_ARGS__)) || \ + (_CrtDbgBreak(), 0)) + + #define _RPT_BASE_W(...) \ + (void) ((1 != _CrtDbgReportW(__VA_ARGS__)) || \ + (_CrtDbgBreak(), 0)) + + #define _RPT0(rptno, msg) _RPT_BASE(rptno, NULL, 0, NULL, "%s", msg) + #define _RPTN(rptno, msg, ...) _RPT_BASE(rptno, NULL, 0, NULL, msg, __VA_ARGS__) + + #define _RPTW0(rptno, msg) _RPT_BASE_W(rptno, NULL, 0, NULL, L"%ls", msg) + #define _RPTWN(rptno, msg, ...) _RPT_BASE_W(rptno, NULL, 0, NULL, msg, __VA_ARGS__) + + #define _RPTF0(rptno, msg) _RPT_BASE(rptno, __FILE__, __LINE__, NULL, "%s", msg) + #define _RPTFN(rptno, msg, ...) _RPT_BASE(rptno, __FILE__, __LINE__, NULL, msg, __VA_ARGS__) + + #define _RPTFW0(rptno, msg) _RPT_BASE_W(rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, L"%ls", msg) + #define _RPTFWN(rptno, msg, ...) _RPT_BASE_W(rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, msg, __VA_ARGS__) + +#endif // _DEBUG + +// Asserts in debug. Invokes Watson in both debug and release +#define _ASSERT_AND_INVOKE_WATSON(expr) \ + { \ + _ASSERTE((expr)); \ + if (!(expr)) \ + { \ + _invoke_watson(_CRT_WIDE(#expr), __FUNCTIONW__, __FILEW__, __LINE__, 0); \ + } \ + } + +// _ASSERT_BASE is provided only for backwards compatibility. +#ifndef _ASSERT_BASE + #define _ASSERT_BASE _ASSERT_EXPR +#endif + +#define _RPT1 _RPTN +#define _RPT2 _RPTN +#define _RPT3 _RPTN +#define _RPT4 _RPTN +#define _RPT5 _RPTN + +#define _RPTW1 _RPTWN +#define _RPTW2 _RPTWN +#define _RPTW3 _RPTWN +#define _RPTW4 _RPTWN +#define _RPTW5 _RPTWN + +#define _RPTF1 _RPTFN +#define _RPTF2 _RPTFN +#define _RPTF3 _RPTFN +#define _RPTF4 _RPTFN +#define _RPTF5 _RPTFN + +#define _RPTFW1 _RPTFWN +#define _RPTFW2 _RPTFWN +#define _RPTFW3 _RPTFWN +#define _RPTFW4 _RPTFWN +#define _RPTFW5 _RPTFWN + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_CRTDBG diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/ctype.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/ctype.h new file mode 100644 index 0000000000000000000000000000000000000000..9cf976d92da8e789b4b711cf075d781af60e7202 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/ctype.h @@ -0,0 +1,310 @@ +// +// ctype.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the narrow character (char) classification functionality. +// +#pragma once +#ifndef _INC_CTYPE // include guard for 3rd party interop +#define _INC_CTYPE + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER +#if !defined __midl && !defined RC_INVOKED + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Character Classification Function Declarations +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +_Check_return_ _ACRTIMP int __cdecl _isctype(_In_ int _C, _In_ int _Type); +_Check_return_ _ACRTIMP int __cdecl _isctype_l(_In_ int _C, _In_ int _Type, _In_opt_ _locale_t _Locale); +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl isalpha(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _isalpha_l(_In_ int _C, _In_opt_ _locale_t _Locale); +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl isupper(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _isupper_l(_In_ int _C, _In_opt_ _locale_t _Locale); +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl islower(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _islower_l(_In_ int _C, _In_opt_ _locale_t _Locale); + +_When_(_Param_(1) == 0, _Post_equal_to_(0)) +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl isdigit(_In_ int _C); + +_Check_return_ _ACRTIMP int __cdecl _isdigit_l(_In_ int _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl isxdigit(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _isxdigit_l(_In_ int _C, _In_opt_ _locale_t _Locale); + +_When_(_Param_(1) == 0, _Post_equal_to_(0)) +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl isspace(_In_ int _C); + +_Check_return_ _ACRTIMP int __cdecl _isspace_l(_In_ int _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl ispunct(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _ispunct_l(_In_ int _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl isblank(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _isblank_l(_In_ int _C, _In_opt_ _locale_t _Locale); +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl isalnum(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _isalnum_l(_In_ int _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl isprint(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _isprint_l(_In_ int _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl isgraph(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _isgraph_l(_In_ int _C, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl iscntrl(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _iscntrl_l(_In_ int _C, _In_opt_ _locale_t _Locale); + +_When_(_Param_(1) == 0, _Post_equal_to_(0)) +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl toupper(_In_ int _C); + +_When_(_Param_(1) == 0, _Post_equal_to_(0)) +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl tolower(_In_ int _C); + +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl _tolower(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _tolower_l(_In_ int _C, _In_opt_ _locale_t _Locale); +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl _toupper(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl _toupper_l(_In_ int _C, _In_opt_ _locale_t _Locale); + +_Check_return_ _ACRTIMP int __cdecl __isascii(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl __toascii(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl __iscsymf(_In_ int _C); +_Check_return_ _ACRTIMP int __cdecl __iscsym(_In_ int _C); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Character Classification Macro Definitions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +__inline int __CRTDECL __acrt_locale_get_ctype_array_value( + _In_reads_(_Char_value + 1) unsigned short const * const _Locale_pctype_array, + _In_range_(-1, 255) int const _Char_value, + _In_ int const _Mask + ) +{ + // The C Standard specifies valid input to a ctype function ranges from -1 to 255. + // To avoid undefined behavior, we should check this range for all accesses. + // Note _locale_pctype array does extend to -127 to support accessing + // _pctype directly with signed chars. + + if (_Char_value >= -1 && _Char_value <= 255) + { + return _Locale_pctype_array[_Char_value] & _Mask; + } + + return 0; +} + +#ifndef _CTYPE_DISABLE_MACROS + + // Maximum number of bytes in multi-byte character in the current locale + // (also defined in stdlib.h). + #ifndef MB_CUR_MAX + #if defined _CRT_DISABLE_PERFCRIT_LOCKS && !defined _DLL + #define MB_CUR_MAX __mb_cur_max + #else + #define MB_CUR_MAX ___mb_cur_max_func() + #endif + + #ifdef _CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY + extern int __mb_cur_max; + #else + #define __mb_cur_max (___mb_cur_max_func()) + #endif + + // MB_LEN_MAX = 5 in limits.h but we do not include that header here so use 5 + // directly. + _Post_satisfies_(return > 0 && return < 5) + _ACRTIMP int __cdecl ___mb_cur_max_func(void); + _Post_satisfies_(return > 0 && return < 5) + _ACRTIMP int __cdecl ___mb_cur_max_l_func(_locale_t _Locale); + #endif + + // In the debug CRT, we make all calls through the validation function to catch + // invalid integer inputs that yield undefined behavior. + #ifdef _DEBUG + _ACRTIMP int __cdecl _chvalidator(_In_ int _Ch, _In_ int _Mask); + #define __chvalidchk(a, b) _chvalidator(a, b) + #else + + #define __chvalidchk(a, b) (__acrt_locale_get_ctype_array_value(__PCTYPE_FUNC, (a), (b))) + #endif + + + + #define __ascii_isalpha(c) ( __chvalidchk(c, _ALPHA)) + #define __ascii_isdigit(c) ( __chvalidchk(c, _DIGIT)) + + #ifdef _CRT_DEFINE_ASCII_CTYPE_MACROS + #define __ascii_tolower(c) ( (((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c) ) + #define __ascii_toupper(c) ( (((c) >= 'a') && ((c) <= 'z')) ? ((c) - 'a' + 'A') : (c) ) + #define __ascii_iswalpha(c) ( ('A' <= (c) && (c) <= 'Z') || ( 'a' <= (c) && (c) <= 'z')) + #define __ascii_iswdigit(c) ( '0' <= (c) && (c) <= '9') + #define __ascii_towlower(c) ( (((c) >= L'A') && ((c) <= L'Z')) ? ((c) - L'A' + L'a') : (c) ) + #define __ascii_towupper(c) ( (((c) >= L'a') && ((c) <= L'z')) ? ((c) - L'a' + L'A') : (c) ) + #else + __forceinline int __CRTDECL __ascii_tolower(int const _C) + { + if (_C >= 'A' && _C <= 'Z') + { + return _C - ('A' - 'a'); + } + return _C; + } + + __forceinline int __CRTDECL __ascii_toupper(int const _C) + { + if (_C >= 'a' && _C <= 'z') + { + return _C - ('a' - 'A'); + } + return _C; + } + + __forceinline int __CRTDECL __ascii_iswalpha(int const _C) + { + return (_C >= 'A' && _C <= 'Z') || (_C >= 'a' && _C <= 'z'); + } + + __forceinline int __CRTDECL __ascii_iswdigit(int const _C) + { + return _C >= '0' && _C <= '9'; + } + + __forceinline int __CRTDECL __ascii_towlower(int const _C) + { + return __ascii_tolower(_C); + } + + __forceinline int __CRTDECL __ascii_towupper(int const _C) + { + return __ascii_toupper(_C); + } + #endif + + + + #if defined _CRT_DISABLE_PERFCRIT_LOCKS && !defined _DLL && !defined __cplusplus + #define isalpha(c) (MB_CUR_MAX > 1 ? _isctype(c, _ALPHA) : __chvalidchk(c, _ALPHA)) + #define isupper(c) (MB_CUR_MAX > 1 ? _isctype(c, _UPPER) : __chvalidchk(c, _UPPER)) + #define islower(c) (MB_CUR_MAX > 1 ? _isctype(c, _LOWER) : __chvalidchk(c, _LOWER)) + #define isdigit(c) (MB_CUR_MAX > 1 ? _isctype(c, _DIGIT) : __chvalidchk(c, _DIGIT)) + #define isxdigit(c) (MB_CUR_MAX > 1 ? _isctype(c, _HEX) : __chvalidchk(c, _HEX)) + #define isspace(c) (MB_CUR_MAX > 1 ? _isctype(c, _SPACE) : __chvalidchk(c, _SPACE)) + #define ispunct(c) (MB_CUR_MAX > 1 ? _isctype(c, _PUNCT) : __chvalidchk(c, _PUNCT)) + #define isblank(c) (MB_CUR_MAX > 1 ? (((c) == '\t') ? _BLANK : _isctype(c, _BLANK)) : (((c) == '\t') ? _BLANK : __chvalidchk(c, _BLANK))) + #define isalnum(c) (MB_CUR_MAX > 1 ? _isctype(c, _ALPHA | _DIGIT) : __chvalidchk(c, (_ALPHA | _DIGIT))) + #define isprint(c) (MB_CUR_MAX > 1 ? _isctype(c, _BLANK | _PUNCT | _ALPHA | _DIGIT) : __chvalidchk(c, (_BLANK | _PUNCT | _ALPHA | _DIGIT))) + #define isgraph(c) (MB_CUR_MAX > 1 ? _isctype(c, _PUNCT | _ALPHA | _DIGIT) : __chvalidchk(c, (_PUNCT | _ALPHA | _DIGIT))) + #define iscntrl(c) (MB_CUR_MAX > 1 ? _isctype(c, _CONTROL) : __chvalidchk(c, _CONTROL)) + #endif + + __inline __crt_locale_data_public* __CRTDECL __acrt_get_locale_data_prefix(void const volatile* const _LocalePointers) + { + _locale_t const _TypedLocalePointers = (_locale_t)_LocalePointers; + return (__crt_locale_data_public*)_TypedLocalePointers->locinfo; + } + + #ifdef _DEBUG + _ACRTIMP int __cdecl _chvalidator_l(_In_opt_ _locale_t, _In_ int _Ch, _In_ int _Mask); + #endif + + __inline int __CRTDECL _chvalidchk_l( + _In_ int const _C, + _In_ int const _Mask, + _In_opt_ _locale_t const _Locale + ) + { + #ifdef _DEBUG + return _chvalidator_l(_Locale, _C, _Mask); + #else + if (!_Locale) + { + return __chvalidchk(_C, _Mask); + } + + return __acrt_locale_get_ctype_array_value(__acrt_get_locale_data_prefix(_Locale)->_locale_pctype, _C, _Mask); + #endif + } + + #define __ascii_isalpha_l(c, locale) (_chvalidchk_l(c, _ALPHA, locale)) + #define __ascii_isdigit_l(c, locale) (_chvalidchk_l(c, _DIGIT, locale)) + + __inline int __CRTDECL _ischartype_l( + _In_ int const _C, + _In_ int const _Mask, + _In_opt_ _locale_t const _Locale + ) + { + if (!_Locale) + { + return _chvalidchk_l(_C, _Mask, 0); + } + + if (_C >= -1 && _C <= 255) + { + return __acrt_get_locale_data_prefix(_Locale)->_locale_pctype[_C] & _Mask; + } + + if (__acrt_get_locale_data_prefix(_Locale)->_locale_mb_cur_max > 1) + { + return _isctype_l(_C, _Mask, _Locale); + } + + return 0; // >0xFF and SBCS locale + } + + #define _isalpha_l(c, locale) _ischartype_l(c, _ALPHA, locale) + #define _isupper_l(c, locale) _ischartype_l(c, _UPPER, locale) + #define _islower_l(c, locale) _ischartype_l(c, _LOWER, locale) + #define _isdigit_l(c, locale) _ischartype_l(c, _DIGIT, locale) + #define _isxdigit_l(c, locale) _ischartype_l(c, _HEX, locale) + #define _isspace_l(c, locale) _ischartype_l(c, _SPACE, locale) + #define _ispunct_l(c, locale) _ischartype_l(c, _PUNCT, locale) + #define _isblank_l(c, locale) (((c) == '\t') ? _BLANK : _ischartype_l(c, _BLANK, locale)) + #define _isalnum_l(c, locale) _ischartype_l(c, _ALPHA | _DIGIT, locale) + #define _isprint_l(c, locale) _ischartype_l(c, _BLANK | _PUNCT | _ALPHA | _DIGIT, locale) + #define _isgraph_l(c, locale) _ischartype_l(c, _PUNCT | _ALPHA | _DIGIT, locale) + #define _iscntrl_l(c, locale) _ischartype_l(c, _CONTROL, locale) + + #define _tolower(c) ((c) - 'A' + 'a') + #define _toupper(c) ((c) - 'a' + 'A') + + #define __isascii(c) ((unsigned)(c) < 0x80) + #define __toascii(c) ((c) & 0x7f) + + + // Microsoft C version 2.0 extended ctype macros + #define __iscsymf(c) (isalpha(c) || ((c) == '_')) + #define __iscsym(c) (isalnum(c) || ((c) == '_')) + #define __iswcsymf(c) (iswalpha(c) || ((c) == '_')) + #define __iswcsym(c) (iswalnum(c) || ((c) == '_')) + + #define _iscsymf_l(c, p) (_isalpha_l(c, p) || ((c) == '_')) + #define _iscsym_l(c, p) (_isalnum_l(c, p) || ((c) == '_')) + #define _iswcsymf_l(c, p) (iswalpha(c) || ((c) == '_')) + #define _iswcsym_l(c, p) (iswalnum(c) || ((c) == '_')) + +#endif // _CTYPE_DISABLE_MACROS + + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + #define isascii __isascii + #define toascii __toascii + #define iscsymf __iscsymf + #define iscsym __iscsym +#endif + + + +#endif // !defined __midl && !defined RC_INVOKED +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_CTYPE diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/direct.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/direct.h new file mode 100644 index 0000000000000000000000000000000000000000..dd4abf068e71980a624d4c270446c262b471be14 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/direct.h @@ -0,0 +1,131 @@ +// +// direct.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Functions for directory handling and creation. +// +#pragma once +#ifndef _INC_DIRECT // include guard for 3rd party interop +#define _INC_DIRECT + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + #ifndef _DISKFREE_T_DEFINED + #define _DISKFREE_T_DEFINED + struct _diskfree_t + { + unsigned total_clusters; + unsigned avail_clusters; + unsigned sectors_per_cluster; + unsigned bytes_per_sector; + }; + #endif + + #if _CRT_FUNCTIONS_REQUIRED + + _Success_(return == 0) + _Check_return_ + _DCRTIMP unsigned __cdecl _getdiskfree( + _In_ unsigned _Drive, + _Out_ struct _diskfree_t* _DiskFree + ); + + _Check_return_ _DCRTIMP int __cdecl _chdrive(_In_ int _Drive); + + _Check_return_ _DCRTIMP int __cdecl _getdrive(void); + + _Check_return_ _DCRTIMP unsigned long __cdecl _getdrives(void); + + #endif // _CRT_FUNCTIONS_REQUIRED +#endif // _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + + +#pragma push_macro("_getcwd") +#pragma push_macro("_getdcwd") +#undef _getcwd +#undef _getdcwd + +_Success_(return != 0) +_Check_return_ _Ret_maybenull_z_ +_ACRTIMP _CRTALLOCATOR char* __cdecl _getcwd( + _Out_writes_opt_z_(_SizeInBytes) char* _DstBuf, + _In_ int _SizeInBytes + ); + +_Success_(return != 0) +_Check_return_ _Ret_maybenull_z_ +_ACRTIMP _CRTALLOCATOR char* __cdecl _getdcwd( + _In_ int _Drive, + _Out_writes_opt_z_(_SizeInBytes) char* _DstBuf, + _In_ int _SizeInBytes + ); + +#define _getdcwd_nolock _getdcwd + +#pragma pop_macro("_getcwd") +#pragma pop_macro("_getdcwd") + +_Check_return_ _ACRTIMP int __cdecl _chdir(_In_z_ char const* _Path); + +_Check_return_ _ACRTIMP int __cdecl _mkdir(_In_z_ char const* _Path); + +_Check_return_ _ACRTIMP int __cdecl _rmdir(_In_z_ char const* _Path); + + + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + #pragma push_macro("getcwd") + #undef getcwd + + _Success_(return != 0) + _Check_return_ _Ret_maybenull_z_ _CRT_NONSTDC_DEPRECATE(_getcwd) + _DCRTIMP char* __cdecl getcwd( + _Out_writes_opt_z_(_SizeInBytes) char* _DstBuf, + _In_ int _SizeInBytes + ); + + #pragma pop_macro("getcwd") + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_chdir) + _DCRTIMP int __cdecl chdir( + _In_z_ char const* _Path + ); + + #define diskfree_t _diskfree_t + + #endif // _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_mkdir) + _ACRTIMP int __cdecl mkdir( + _In_z_ char const* _Path + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_rmdir) + _ACRTIMP int __cdecl rmdir( + _In_z_ char const* _Path + ); + +#endif // _CRT_INTERNAL_NONSTDC_NAMES + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_DIRECT diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/dos.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/dos.h new file mode 100644 index 0000000000000000000000000000000000000000..ab6dd3979ca047239d7777947e9ae5bbf34b8bff --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/dos.h @@ -0,0 +1,61 @@ +// +// dos.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the structures, constants, and functions used for the +// legacy DOS interface. +// +#pragma once +#ifndef _INC_DOS // include guard for 3rd party interop +#define _INC_DOS + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +// File attribute constants +#define _A_NORMAL 0x00 // Normal file - No read/write restrictions +#define _A_RDONLY 0x01 // Read only file +#define _A_HIDDEN 0x02 // Hidden file +#define _A_SYSTEM 0x04 // System file +#define _A_SUBDIR 0x10 // Subdirectory +#define _A_ARCH 0x20 // Archive file + +#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + #ifndef _DISKFREE_T_DEFINED + #define _DISKFREE_T_DEFINED + + struct _diskfree_t + { + unsigned total_clusters; + unsigned avail_clusters; + unsigned sectors_per_cluster; + unsigned bytes_per_sector; + }; + #endif + + #if _CRT_FUNCTIONS_REQUIRED + _Success_(return == 0) + _Check_return_ + _DCRTIMP unsigned __cdecl _getdiskfree( + _In_ unsigned _Drive, + _Out_ struct _diskfree_t* _DiskFree + ); + #endif + + #if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + #define diskfree_t _diskfree_t + #endif + +#endif + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_DOS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/errno.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/errno.h new file mode 100644 index 0000000000000000000000000000000000000000..93c65496bf0cbf40dc092d6edca4c7e9f10a475b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/errno.h @@ -0,0 +1,137 @@ +// +// errno.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// System error numbers for use with errno and errno_t. +// +#pragma once +#ifndef _INC_ERRNO // include guard for 3rd party interop +#define _INC_ERRNO + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#if _CRT_FUNCTIONS_REQUIRED + _ACRTIMP int* __cdecl _errno(void); + #define errno (*_errno()) + + _ACRTIMP errno_t __cdecl _set_errno(_In_ int _Value); + _ACRTIMP errno_t __cdecl _get_errno(_Out_ int* _Value); + + _ACRTIMP unsigned long* __cdecl __doserrno(void); + #define _doserrno (*__doserrno()) + + _ACRTIMP errno_t __cdecl _set_doserrno(_In_ unsigned long _Value); + _ACRTIMP errno_t __cdecl _get_doserrno(_Out_ unsigned long * _Value); +#endif // _CRT_FUNCTIONS_REQUIRED + + + +// Error codes +#define EPERM 1 +#define ENOENT 2 +#define ESRCH 3 +#define EINTR 4 +#define EIO 5 +#define ENXIO 6 +#define E2BIG 7 +#define ENOEXEC 8 +#define EBADF 9 +#define ECHILD 10 +#define EAGAIN 11 +#define ENOMEM 12 +#define EACCES 13 +#define EFAULT 14 +#define EBUSY 16 +#define EEXIST 17 +#define EXDEV 18 +#define ENODEV 19 +#define ENOTDIR 20 +#define EISDIR 21 +#define ENFILE 23 +#define EMFILE 24 +#define ENOTTY 25 +#define EFBIG 27 +#define ENOSPC 28 +#define ESPIPE 29 +#define EROFS 30 +#define EMLINK 31 +#define EPIPE 32 +#define EDOM 33 +#define EDEADLK 36 +#define ENAMETOOLONG 38 +#define ENOLCK 39 +#define ENOSYS 40 +#define ENOTEMPTY 41 + +// Error codes used in the Secure CRT functions +#ifndef RC_INVOKED + #define _SECURECRT_ERRCODE_VALUES_DEFINED + #define EINVAL 22 + #define ERANGE 34 + #define EILSEQ 42 + #define STRUNCATE 80 +#endif + +// Support EDEADLOCK for compatibility with older Microsoft C versions +#define EDEADLOCK EDEADLK + +// POSIX Supplement +#ifndef _CRT_NO_POSIX_ERROR_CODES + #define EADDRINUSE 100 + #define EADDRNOTAVAIL 101 + #define EAFNOSUPPORT 102 + #define EALREADY 103 + #define EBADMSG 104 + #define ECANCELED 105 + #define ECONNABORTED 106 + #define ECONNREFUSED 107 + #define ECONNRESET 108 + #define EDESTADDRREQ 109 + #define EHOSTUNREACH 110 + #define EIDRM 111 + #define EINPROGRESS 112 + #define EISCONN 113 + #define ELOOP 114 + #define EMSGSIZE 115 + #define ENETDOWN 116 + #define ENETRESET 117 + #define ENETUNREACH 118 + #define ENOBUFS 119 + #define ENODATA 120 + #define ENOLINK 121 + #define ENOMSG 122 + #define ENOPROTOOPT 123 + #define ENOSR 124 + #define ENOSTR 125 + #define ENOTCONN 126 + #define ENOTRECOVERABLE 127 + #define ENOTSOCK 128 + #define ENOTSUP 129 + #define EOPNOTSUPP 130 + #define EOTHER 131 + #define EOVERFLOW 132 + #define EOWNERDEAD 133 + #define EPROTO 134 + #define EPROTONOSUPPORT 135 + #define EPROTOTYPE 136 + #define ETIME 137 + #define ETIMEDOUT 138 + #define ETXTBSY 139 + #define EWOULDBLOCK 140 +#endif // _CRT_NO_POSIX_ERROR_CODES + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_ERRNO diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/fcntl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/fcntl.h new file mode 100644 index 0000000000000000000000000000000000000000..7b8437af69e976cc7ff2b26a988091a033eef64e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/fcntl.h @@ -0,0 +1,68 @@ +// +// fcntl.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File control options used by _open(). +// +#pragma once +#ifndef _INC_FCNTL // include guard for 3rd party interop +#define _INC_FCNTL + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +#define _O_RDONLY 0x0000 // open for reading only +#define _O_WRONLY 0x0001 // open for writing only +#define _O_RDWR 0x0002 // open for reading and writing +#define _O_APPEND 0x0008 // writes done at eof + +#define _O_CREAT 0x0100 // create and open file +#define _O_TRUNC 0x0200 // open and truncate +#define _O_EXCL 0x0400 // open only if file doesn't already exist + +// O_TEXT files have sequences translated to on read()'s and +// sequences translated to on write()'s + +#define _O_TEXT 0x4000 // file mode is text (translated) +#define _O_BINARY 0x8000 // file mode is binary (untranslated) +#define _O_WTEXT 0x10000 // file mode is UTF16 (translated) +#define _O_U16TEXT 0x20000 // file mode is UTF16 no BOM (translated) +#define _O_U8TEXT 0x40000 // file mode is UTF8 no BOM (translated) + +// macro to translate the C 2.0 name used to force binary mode for files +#define _O_RAW _O_BINARY + +#define _O_NOINHERIT 0x0080 // child process doesn't inherit file +#define _O_TEMPORARY 0x0040 // temporary file bit (file is deleted when last handle is closed) +#define _O_SHORT_LIVED 0x1000 // temporary storage file, try not to flush +#define _O_OBTAIN_DIR 0x2000 // get information about a directory +#define _O_SEQUENTIAL 0x0020 // file access is primarily sequential +#define _O_RANDOM 0x0010 // file access is primarily random + + + +#if (defined _CRT_DECLARE_NONSTDC_NAMES && _CRT_DECLARE_NONSTDC_NAMES) || (!defined _CRT_DECLARE_NONSTDC_NAMES && !__STDC__) + #define O_RDONLY _O_RDONLY + #define O_WRONLY _O_WRONLY + #define O_RDWR _O_RDWR + #define O_APPEND _O_APPEND + #define O_CREAT _O_CREAT + #define O_TRUNC _O_TRUNC + #define O_EXCL _O_EXCL + #define O_TEXT _O_TEXT + #define O_BINARY _O_BINARY + #define O_RAW _O_BINARY + #define O_TEMPORARY _O_TEMPORARY + #define O_NOINHERIT _O_NOINHERIT + #define O_SEQUENTIAL _O_SEQUENTIAL + #define O_RANDOM _O_RANDOM +#endif + +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS + +#endif // _INC_FCNTL diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/fenv.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/fenv.h new file mode 100644 index 0000000000000000000000000000000000000000..832c15d3c899c12ed848824b5e07d13de4441889 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/fenv.h @@ -0,0 +1,160 @@ +// +// fenv.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Floating point environment library. +// +#pragma once +#ifndef _FENV // include guard for 3rd party interop +#define _FENV + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#define FE_TONEAREST _RC_NEAR +#define FE_UPWARD _RC_UP +#define FE_DOWNWARD _RC_DOWN +#define FE_TOWARDZERO _RC_CHOP + +#define FE_ROUND_MASK _MCW_RC + +_ACRTIMP int __cdecl fegetround(void); +_ACRTIMP int __cdecl fesetround(_In_ int _Round); + + + +#if !defined _M_CEE + + typedef unsigned long fexcept_t; + + typedef struct fenv_t + { + unsigned long _Fe_ctl, _Fe_stat; + } fenv_t; + + + + #define FE_INEXACT _SW_INEXACT // _EM_INEXACT 0x00000001 inexact (precision) + #define FE_UNDERFLOW _SW_UNDERFLOW // _EM_UNDERFLOW 0x00000002 underflow + #define FE_OVERFLOW _SW_OVERFLOW // _EM_OVERFLOW 0x00000004 overflow + #define FE_DIVBYZERO _SW_ZERODIVIDE // _EM_ZERODIVIDE 0x00000008 zero divide + #define FE_INVALID _SW_INVALID // _EM_INVALID 0x00000010 invalid + + #define FE_ALL_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW) + + _ACRTIMP int __cdecl fegetenv(_Out_ fenv_t* _Env); + _ACRTIMP int __cdecl fesetenv(_In_ fenv_t const* _Env); + _ACRTIMP int __cdecl feclearexcept(_In_ int _Flags); + _ACRTIMP _Success_(return == 0) int __cdecl feholdexcept(_Out_ fenv_t* _Env); + _ACRTIMP int __cdecl fetestexcept(_In_ int _Flags); + _ACRTIMP int __cdecl fegetexceptflag(_Out_ fexcept_t* _Except, _In_ int _TestFlags); + _ACRTIMP int __cdecl fesetexceptflag(_In_ fexcept_t const* _Except, _In_ int _SetFlags); + + #if !defined __midl // MIDL does not support compound initializers + // In the original implementation (_Fenv0), the global variable was zero + // initialized, indicating no exceptions are masked. In the current + // implementation (_Fenv1), the global variable is initialized with all + // exceptions masked, which is the actual initial environment. + #if defined _M_IX86 + __declspec(selectany) extern const fenv_t _Fenv1 = { 0x3f3f103f, 0 }; + #elif defined _M_X64 + __declspec(selectany) extern const fenv_t _Fenv1 = { 0x3f00003f, 0 }; + #else + __declspec(selectany) extern const fenv_t _Fenv1 = { 0x0000003f, 0 }; + #endif + #endif + + #define FE_DFL_ENV (&_Fenv1) + + + + // feraiseexcept is defined inline in this header so that it is compiled + // with the same /arch setting as is specified in the consuming application, + // rather than the /arch:IA32 setting with which the CRT sources are built. + // optimizer has to be turned off to avoid optimizing out since the function + // doesn't have side effects. + // + // feupdateenv is inline because it calls feraiseexcept. + #if _CRT_FUNCTIONS_REQUIRED + #if !defined(_BEGIN_PRAGMA_OPTIMIZE_DISABLE) + #define _BEGIN_PRAGMA_OPTIMIZE_DISABLE(flags, bug, reason) \ + __pragma(optimize(flags, off)) + #define _BEGIN_PRAGMA_OPTIMIZE_ENABLE(flags, bug, reason) \ + __pragma(optimize(flags, on)) + #define _END_PRAGMA_OPTIMIZE() \ + __pragma(optimize("", on)) + #endif + _BEGIN_PRAGMA_OPTIMIZE_DISABLE("", MSFT:4499495, "If optimizations are on, the floating-point exception might not get triggered (because the compiler optimizes it out), breaking the function.") + __inline int __CRTDECL feraiseexcept(_In_ int _Except) + { + static struct + { + int _Except_Val; + double _Num; + double _Denom; + } const _Table[] = + { // Raise exception by evaluating num / denom: + {FE_INVALID, 0.0, 0.0 }, + {FE_DIVBYZERO, 1.0, 0.0 }, + {FE_OVERFLOW, 1e+300, 1e-300 }, + {FE_UNDERFLOW, 1e-300, 1e+300 }, + {FE_INEXACT, 2.0, 3.0 } + }; + + double _Ans = 0.0; + (void) _Ans; // Suppress set-but-not-used warnings. _Ans is not "used" in the traditional static-analysis sense, but it is needed to trigger a floating point exception below. + size_t _Index; + + if ((_Except &= FE_ALL_EXCEPT) == 0) + { + return 0; + } + + // Raise the exceptions not masked: + for (_Index = 0; _Index < sizeof(_Table) / sizeof(_Table[0]); ++_Index) + { + if ((_Except & _Table[_Index]._Except_Val) != 0) + { + _Ans = _Table[_Index]._Num / _Table[_Index]._Denom; + + // x87 exceptions are raised immediately before execution of the + // next floating point instruction. If we're using /arch:IA32, + // force the exception to be raised immediately: + #if defined _M_IX86 && _M_IX86_FP == 0 && !defined _M_HYBRID_X86_ARM64 + __asm fwait; + #endif + } + } + + return 0; + } + _END_PRAGMA_OPTIMIZE() + + __inline int __CRTDECL feupdateenv(_In_ const fenv_t *_Penv) + { + int _Except = fetestexcept(FE_ALL_EXCEPT); + + if (fesetenv(_Penv) != 0 || feraiseexcept(_Except) != 0) + { + return 1; + } + + return 0; + } + #endif // _CRT_FUNCTIONS_REQUIRED + +#endif // !defined _M_CEE && !defined _CORECRT_BUILD + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _FENV diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/float.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/float.h new file mode 100644 index 0000000000000000000000000000000000000000..92dcffae2e7f3eb8f1aa4416ebb59a4899ae5869 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/float.h @@ -0,0 +1,409 @@ +// +// float.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Implementation-defined values commonly used by sophisticated numerical +// (floating point) programs. +// +#pragma once +#ifndef _INC_FLOAT // include guard for 3rd party interop +#define _INC_FLOAT + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#ifndef _CRT_MANAGED_FP_DEPRECATE + #ifdef _CRT_MANAGED_FP_NO_DEPRECATE + #define _CRT_MANAGED_FP_DEPRECATE + #else + #ifdef _M_CEE + #define _CRT_MANAGED_FP_DEPRECATE _CRT_DEPRECATE_TEXT("Direct floating point control is not supported or reliable from within managed code. ") + #else + #define _CRT_MANAGED_FP_DEPRECATE + #endif + #endif +#endif + + +// Define the floating point precision used. +// +// For x86, results are in double precision (unless /arch:sse2 is used, in which +// case results are in source precision. +// +// For x64 and ARM, results are in source precision. +// +// If the compiler is invoked with /fp:fast, the compiler is allowed to use the +// fastest precision and even mix within a single function, so precision is +// indeterminable. +// +// Note that manipulating the floating point behavior using the float_control/ +// fenv_access/fp_contract #pragmas may alter the actual floating point evaluation +// method, which may in turn invalidate the value of FLT_EVAL_METHOD. +#ifdef _M_FP_FAST + #define FLT_EVAL_METHOD -1 +#else + #ifdef _M_IX86 + #if _M_IX86_FP >= 2 + #define FLT_EVAL_METHOD 0 + #else + #define FLT_EVAL_METHOD 2 + #endif + #else + #define FLT_EVAL_METHOD 0 + #endif +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Constants +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#define DBL_DECIMAL_DIG 17 // # of decimal digits of rounding precision +#define DBL_DIG 15 // # of decimal digits of precision +#define DBL_EPSILON 2.2204460492503131e-016 // smallest such that 1.0+DBL_EPSILON != 1.0 +#define DBL_HAS_SUBNORM 1 // type does support subnormal numbers +#define DBL_MANT_DIG 53 // # of bits in mantissa +#define DBL_MAX 1.7976931348623158e+308 // max value +#define DBL_MAX_10_EXP 308 // max decimal exponent +#define DBL_MAX_EXP 1024 // max binary exponent +#define DBL_MIN 2.2250738585072014e-308 // min positive value +#define DBL_MIN_10_EXP (-307) // min decimal exponent +#define DBL_MIN_EXP (-1021) // min binary exponent +#define _DBL_RADIX 2 // exponent radix +#define DBL_TRUE_MIN 4.9406564584124654e-324 // min positive value + +#define FLT_DECIMAL_DIG 9 // # of decimal digits of rounding precision +#define FLT_DIG 6 // # of decimal digits of precision +#define FLT_EPSILON 1.192092896e-07F // smallest such that 1.0+FLT_EPSILON != 1.0 +#define FLT_HAS_SUBNORM 1 // type does support subnormal numbers +#define FLT_GUARD 0 +#define FLT_MANT_DIG 24 // # of bits in mantissa +#define FLT_MAX 3.402823466e+38F // max value +#define FLT_MAX_10_EXP 38 // max decimal exponent +#define FLT_MAX_EXP 128 // max binary exponent +#define FLT_MIN 1.175494351e-38F // min normalized positive value +#define FLT_MIN_10_EXP (-37) // min decimal exponent +#define FLT_MIN_EXP (-125) // min binary exponent +#define FLT_NORMALIZE 0 +#define FLT_RADIX 2 // exponent radix +#define FLT_TRUE_MIN 1.401298464e-45F // min positive value + +#define LDBL_DIG DBL_DIG // # of decimal digits of precision +#define LDBL_EPSILON DBL_EPSILON // smallest such that 1.0+LDBL_EPSILON != 1.0 +#define LDBL_HAS_SUBNORM DBL_HAS_SUBNORM // type does support subnormal numbers +#define LDBL_MANT_DIG DBL_MANT_DIG // # of bits in mantissa +#define LDBL_MAX DBL_MAX // max value +#define LDBL_MAX_10_EXP DBL_MAX_10_EXP // max decimal exponent +#define LDBL_MAX_EXP DBL_MAX_EXP // max binary exponent +#define LDBL_MIN DBL_MIN // min normalized positive value +#define LDBL_MIN_10_EXP DBL_MIN_10_EXP // min decimal exponent +#define LDBL_MIN_EXP DBL_MIN_EXP // min binary exponent +#define _LDBL_RADIX _DBL_RADIX // exponent radix +#define LDBL_TRUE_MIN DBL_TRUE_MIN // min positive value + +#define DECIMAL_DIG DBL_DECIMAL_DIG + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Flags +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#define _SW_INEXACT 0x00000001 // Inexact (precision) +#define _SW_UNDERFLOW 0x00000002 // Underflow +#define _SW_OVERFLOW 0x00000004 // Overflow +#define _SW_ZERODIVIDE 0x00000008 // Divide by zero +#define _SW_INVALID 0x00000010 // Invalid +#define _SW_DENORMAL 0x00080000 // Denormal status bit + +// New Control Bit that specifies the ambiguity in control word. +#define _EM_AMBIGUIOUS 0x80000000 // For backwards compatibility +#define _EM_AMBIGUOUS 0x80000000 + +// Abstract User Control Word Mask and bit definitions +#define _MCW_EM 0x0008001f // Interrupt Exception Masks +#define _EM_INEXACT 0x00000001 // inexact (precision) +#define _EM_UNDERFLOW 0x00000002 // underflow +#define _EM_OVERFLOW 0x00000004 // overflow +#define _EM_ZERODIVIDE 0x00000008 // zero divide +#define _EM_INVALID 0x00000010 // invalid +#define _EM_DENORMAL 0x00080000 // Denormal exception mask (_control87 only) + +#define _MCW_RC 0x00000300 // Rounding Control +#define _RC_NEAR 0x00000000 // near +#define _RC_DOWN 0x00000100 // down +#define _RC_UP 0x00000200 // up +#define _RC_CHOP 0x00000300 // chop + +// i386 specific definitions +#define _MCW_PC 0x00030000 // Precision Control +#define _PC_64 0x00000000 // 64 bits +#define _PC_53 0x00010000 // 53 bits +#define _PC_24 0x00020000 // 24 bits + +#define _MCW_IC 0x00040000 // Infinity Control +#define _IC_AFFINE 0x00040000 // affine +#define _IC_PROJECTIVE 0x00000000 // projective + +// RISC specific definitions +#define _MCW_DN 0x03000000 // Denormal Control +#define _DN_SAVE 0x00000000 // save denormal results and operands +#define _DN_FLUSH 0x01000000 // flush denormal results and operands to zero +#define _DN_FLUSH_OPERANDS_SAVE_RESULTS 0x02000000 // flush operands to zero and save results +#define _DN_SAVE_OPERANDS_FLUSH_RESULTS 0x03000000 // save operands and flush results to zero + + + +// Invalid subconditions (_SW_INVALID also set) +#define _SW_UNEMULATED 0x0040 // Unemulated instruction +#define _SW_SQRTNEG 0x0080 // Square root of a negative number +#define _SW_STACKOVERFLOW 0x0200 // FP stack overflow +#define _SW_STACKUNDERFLOW 0x0400 // FP stack underflow + + + +// Floating point error signals and return codes +#define _FPE_INVALID 0x81 +#define _FPE_DENORMAL 0x82 +#define _FPE_ZERODIVIDE 0x83 +#define _FPE_OVERFLOW 0x84 +#define _FPE_UNDERFLOW 0x85 +#define _FPE_INEXACT 0x86 + +#define _FPE_UNEMULATED 0x87 +#define _FPE_SQRTNEG 0x88 +#define _FPE_STACKOVERFLOW 0x8a +#define _FPE_STACKUNDERFLOW 0x8b + +#define _FPE_EXPLICITGEN 0x8c // raise(SIGFPE); + +// On x86 with arch:SSE2, the OS returns these exceptions +#define _FPE_MULTIPLE_TRAPS 0x8d +#define _FPE_MULTIPLE_FAULTS 0x8e + + + +#define _FPCLASS_SNAN 0x0001 // signaling NaN +#define _FPCLASS_QNAN 0x0002 // quiet NaN +#define _FPCLASS_NINF 0x0004 // negative infinity +#define _FPCLASS_NN 0x0008 // negative normal +#define _FPCLASS_ND 0x0010 // negative denormal +#define _FPCLASS_NZ 0x0020 // -0 +#define _FPCLASS_PZ 0x0040 // +0 +#define _FPCLASS_PD 0x0080 // positive denormal +#define _FPCLASS_PN 0x0100 // positive normal +#define _FPCLASS_PINF 0x0200 // positive infinity + + + +// Initial Control Word value +#if defined _M_IX86 + + #define _CW_DEFAULT (_RC_NEAR + _PC_53 + _EM_INVALID + _EM_ZERODIVIDE + _EM_OVERFLOW + _EM_UNDERFLOW + _EM_INEXACT + _EM_DENORMAL) + +#elif defined _M_X64 || defined _M_ARM || defined _M_ARM64 + + #define _CW_DEFAULT (_RC_NEAR + _EM_INVALID + _EM_ZERODIVIDE + _EM_OVERFLOW + _EM_UNDERFLOW + _EM_INEXACT + _EM_DENORMAL) + +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// State Manipulation +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// Note that reading or writing the floating point control or status words is +// not supported in managed code. +_CRT_MANAGED_FP_DEPRECATE +_ACRTIMP unsigned int __cdecl _clearfp(void); + +#pragma warning(push) +#pragma warning(disable: 4141) // Double deprecation + +_CRT_MANAGED_FP_DEPRECATE _CRT_INSECURE_DEPRECATE(_controlfp_s) +_ACRTIMP unsigned int __cdecl _controlfp( + _In_ unsigned int _NewValue, + _In_ unsigned int _Mask + ); + +#pragma warning(pop) + +_CRT_MANAGED_FP_DEPRECATE +_ACRTIMP void __cdecl _set_controlfp( + _In_ unsigned int _NewValue, + _In_ unsigned int _Mask + ); + +_CRT_MANAGED_FP_DEPRECATE +_ACRTIMP errno_t __cdecl _controlfp_s( + _Out_opt_ unsigned int* _CurrentState, + _In_ unsigned int _NewValue, + _In_ unsigned int _Mask + ); + +_CRT_MANAGED_FP_DEPRECATE +_ACRTIMP unsigned int __cdecl _statusfp(void); + +_CRT_MANAGED_FP_DEPRECATE +_ACRTIMP void __cdecl _fpreset(void); + +#ifdef _M_IX86 + + _CRT_MANAGED_FP_DEPRECATE + _ACRTIMP void __cdecl _statusfp2( + _Out_opt_ unsigned int* _X86Status, + _Out_opt_ unsigned int* _SSE2Status + ); + +#endif + +#define _clear87 _clearfp +#define _status87 _statusfp + +_CRT_MANAGED_FP_DEPRECATE +_ACRTIMP unsigned int __cdecl _control87( + _In_ unsigned int _NewValue, + _In_ unsigned int _Mask + ); + +#ifdef _M_IX86 + _CRT_MANAGED_FP_DEPRECATE + _ACRTIMP int __cdecl __control87_2( + _In_ unsigned int _NewValue, + _In_ unsigned int _Mask, + _Out_opt_ unsigned int* _X86ControlWord, + _Out_opt_ unsigned int* _Sse2ControlWord + ); +#endif + +// Global variable holding floating point error code +_Check_return_ +_ACRTIMP int* __cdecl __fpecode(void); + +#define _fpecode (*__fpecode()) + +_Check_return_ +_ACRTIMP int __cdecl __fpe_flt_rounds(void); + +#define FLT_ROUNDS (__fpe_flt_rounds()) +#define _DBL_ROUNDS FLT_ROUNDS +#define _LDBL_ROUNDS _DBL_ROUNDS + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// IEEE Recommended Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +_Check_return_ _ACRTIMP double __cdecl _copysign(_In_ double _Number, _In_ double _Sign); +_Check_return_ _ACRTIMP double __cdecl _chgsign(_In_ double _X); +_Check_return_ _ACRTIMP double __cdecl _scalb(_In_ double _X, _In_ long _Y); +_Check_return_ _ACRTIMP double __cdecl _logb(_In_ double _X); +_Check_return_ _ACRTIMP double __cdecl _nextafter(_In_ double _X, _In_ double _Y); +_Check_return_ _ACRTIMP int __cdecl _finite(_In_ double _X); +_Check_return_ _ACRTIMP int __cdecl _isnan(_In_ double _X); +_Check_return_ _ACRTIMP int __cdecl _fpclass(_In_ double _X); + +#ifdef _M_X64 + _Check_return_ _ACRTIMP float __cdecl _scalbf(_In_ float _X, _In_ long _Y); +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Nonstandard Names for Compatibility +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + #define clear87 _clear87 + #define status87 _status87 + #define control87 _control87 + + _CRT_MANAGED_FP_DEPRECATE + _ACRTIMP void __cdecl fpreset(void); + + #define DBL_RADIX _DBL_RADIX + #define DBL_ROUNDS _DBL_ROUNDS + + #define LDBL_RADIX _LDBL_RADIX + #define LDBL_ROUNDS _LDBL_ROUNDS + + // For backwards compatibility with the old spelling + #define EM_AMBIGUIOUS _EM_AMBIGUOUS + #define EM_AMBIGUOUS _EM_AMBIGUOUS + + #define MCW_EM _MCW_EM + #define EM_INVALID _EM_INVALID + #define EM_DENORMAL _EM_DENORMAL + #define EM_ZERODIVIDE _EM_ZERODIVIDE + #define EM_OVERFLOW _EM_OVERFLOW + #define EM_UNDERFLOW _EM_UNDERFLOW + #define EM_INEXACT _EM_INEXACT + + #define MCW_IC _MCW_IC + #define IC_AFFINE _IC_AFFINE + #define IC_PROJECTIVE _IC_PROJECTIVE + + #define MCW_RC _MCW_RC + #define RC_CHOP _RC_CHOP + #define RC_UP _RC_UP + #define RC_DOWN _RC_DOWN + #define RC_NEAR _RC_NEAR + + #define MCW_PC _MCW_PC + #define PC_24 _PC_24 + #define PC_53 _PC_53 + #define PC_64 _PC_64 + + #define CW_DEFAULT _CW_DEFAULT + + #define SW_INVALID _SW_INVALID + #define SW_DENORMAL _SW_DENORMAL + #define SW_ZERODIVIDE _SW_ZERODIVIDE + #define SW_OVERFLOW _SW_OVERFLOW + #define SW_UNDERFLOW _SW_UNDERFLOW + #define SW_INEXACT _SW_INEXACT + + #define SW_UNEMULATED _SW_UNEMULATED + #define SW_SQRTNEG _SW_SQRTNEG + #define SW_STACKOVERFLOW _SW_STACKOVERFLOW + #define SW_STACKUNDERFLOW _SW_STACKUNDERFLOW + + #define FPE_INVALID _FPE_INVALID + #define FPE_DENORMAL _FPE_DENORMAL + #define FPE_ZERODIVIDE _FPE_ZERODIVIDE + #define FPE_OVERFLOW _FPE_OVERFLOW + #define FPE_UNDERFLOW _FPE_UNDERFLOW + #define FPE_INEXACT _FPE_INEXACT + + #define FPE_UNEMULATED _FPE_UNEMULATED + #define FPE_SQRTNEG _FPE_SQRTNEG + #define FPE_STACKOVERFLOW _FPE_STACKOVERFLOW + #define FPE_STACKUNDERFLOW _FPE_STACKUNDERFLOW + + #define FPE_EXPLICITGEN _FPE_EXPLICITGEN + +#endif // _CRT_INTERNAL_NONSTDC_NAMES + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_FLOAT diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/fpieee.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/fpieee.h new file mode 100644 index 0000000000000000000000000000000000000000..c911fb256ce1757fa565cff2c35b9f30de0e852f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/fpieee.h @@ -0,0 +1,478 @@ +// +// fpieee.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file contains constant and type definitions for handling floating point +// exceptions (IEEE 754). +// +#pragma once +#ifndef _INC_FPIEEE // include guard for 3rd party interop +#define _INC_FPIEEE + +#ifndef __midl + +#ifdef _M_CEE_PURE + #error ERROR: This file is not supported in the pure mode! +#endif + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#ifndef __assembler + + // Define floating point IEEE compare result values. + typedef enum + { + _FpCompareEqual, + _FpCompareGreater, + _FpCompareLess, + _FpCompareUnordered + } _FPIEEE_COMPARE_RESULT; + + // Define floating point format and result precision values. + typedef enum + { + _FpFormatFp32, + _FpFormatFp64, + _FpFormatFp80, + _FpFormatFp128, + _FpFormatI16, + _FpFormatI32, + _FpFormatI64, + _FpFormatU16, + _FpFormatU32, + _FpFormatU64, + _FpFormatBcd80, + _FpFormatCompare, + _FpFormatString, + } _FPIEEE_FORMAT; + + // Define operation code values. + typedef enum + { + _FpCodeUnspecified, + _FpCodeAdd, + _FpCodeSubtract, + _FpCodeMultiply, + _FpCodeDivide, + _FpCodeSquareRoot, + _FpCodeRemainder, + _FpCodeCompare, + _FpCodeConvert, + _FpCodeRound, + _FpCodeTruncate, + _FpCodeFloor, + _FpCodeCeil, + _FpCodeAcos, + _FpCodeAsin, + _FpCodeAtan, + _FpCodeAtan2, + _FpCodeCabs, + _FpCodeCos, + _FpCodeCosh, + _FpCodeExp, + _FpCodeFabs, + _FpCodeFmod, + _FpCodeFrexp, + _FpCodeHypot, + _FpCodeLdexp, + _FpCodeLog, + _FpCodeLog10, + _FpCodeModf, + _FpCodePow, + _FpCodeSin, + _FpCodeSinh, + _FpCodeTan, + _FpCodeTanh, + _FpCodeY0, + _FpCodeY1, + _FpCodeYn, + _FpCodeLogb, + _FpCodeNextafter, + _FpCodeNegate, + _FpCodeFmin, // XMMI + _FpCodeFmax, // XMMI + _FpCodeConvertTrunc, // XMMI + _XMMIAddps, // XMMI + _XMMIAddss, + _XMMISubps, + _XMMISubss, + _XMMIMulps, + _XMMIMulss, + _XMMIDivps, + _XMMIDivss, + _XMMISqrtps, + _XMMISqrtss, + _XMMIMaxps, + _XMMIMaxss, + _XMMIMinps, + _XMMIMinss, + _XMMICmpps, + _XMMICmpss, + _XMMIComiss, + _XMMIUComiss, + _XMMICvtpi2ps, + _XMMICvtsi2ss, + _XMMICvtps2pi, + _XMMICvtss2si, + _XMMICvttps2pi, + _XMMICvttss2si, + _XMMIAddsubps, // XMMI for PNI + _XMMIHaddps, // XMMI for PNI + _XMMIHsubps, // XMMI for PNI + _XMMIRoundps, // 66 0F 3A 08 + _XMMIRoundss, // 66 0F 3A 0A + _XMMIDpps, // 66 0F 3A 40 + _XMMI2Addpd, // XMMI2 + _XMMI2Addsd, + _XMMI2Subpd, + _XMMI2Subsd, + _XMMI2Mulpd, + _XMMI2Mulsd, + _XMMI2Divpd, + _XMMI2Divsd, + _XMMI2Sqrtpd, + _XMMI2Sqrtsd, + _XMMI2Maxpd, + _XMMI2Maxsd, + _XMMI2Minpd, + _XMMI2Minsd, + _XMMI2Cmppd, + _XMMI2Cmpsd, + _XMMI2Comisd, + _XMMI2UComisd, + _XMMI2Cvtpd2pi, // 66 2D + _XMMI2Cvtsd2si, // F2 + _XMMI2Cvttpd2pi, // 66 2C + _XMMI2Cvttsd2si, // F2 + _XMMI2Cvtps2pd, // 0F 5A + _XMMI2Cvtss2sd, // F3 + _XMMI2Cvtpd2ps, // 66 + _XMMI2Cvtsd2ss, // F2 + _XMMI2Cvtdq2ps, // 0F 5B + _XMMI2Cvttps2dq, // F3 + _XMMI2Cvtps2dq, // 66 + _XMMI2Cvttpd2dq, // 66 0F E6 + _XMMI2Cvtpd2dq, // F2 + _XMMI2Addsubpd, // 66 0F D0 + _XMMI2Haddpd, // 66 0F 7C + _XMMI2Hsubpd, // 66 0F 7D + _XMMI2Roundpd, // 66 0F 3A 09 + _XMMI2Roundsd, // 66 0F 3A 0B + _XMMI2Dppd, // 66 0F 3A 41 + } _FP_OPERATION_CODE; + +#endif // __assembler + +#ifdef _CORECRT_BUILD + #ifndef __assembler + + #define OP_UNSPEC _FpCodeUnspecified + #define OP_ADD _FpCodeAdd + #define OP_SUB _FpCodeSubtract + #define OP_MUL _FpCodeMultiply + #define OP_DIV _FpCodeDivide + #define OP_REM _FpCodeRemainder + #define OP_COMP _FpCodeCompare + #define OP_CVT _FpCodeConvert + #define OP_RND _FpCodeRound + #define OP_TRUNC _FpCodeTruncate + + #define OP_EXP _FpCodeExp + + #define OP_POW _FpCodePow + #define OP_LOG _FpCodeLog + #define OP_LOG10 _FpCodeLog10 + #define OP_SINH _FpCodeSinh + #define OP_COSH _FpCodeCosh + #define OP_TANH _FpCodeTanh + #define OP_ASIN _FpCodeAsin + #define OP_ACOS _FpCodeAcos + #define OP_ATAN _FpCodeAtan + #define OP_ATAN2 _FpCodeAtan2 + #define OP_SQRT _FpCodeSquareRoot + #define OP_SIN _FpCodeSin + #define OP_COS _FpCodeCos + #define OP_TAN _FpCodeTan + #define OP_CEIL _FpCodeCeil + #define OP_FLOOR _FpCodeFloor + #define OP_ABS _FpCodeFabs + #define OP_MODF _FpCodeModf + #define OP_LDEXP _FpCodeLdexp + #define OP_CABS _FpCodeCabs + #define OP_HYPOT _FpCodeHypot + #define OP_FMOD _FpCodeFmod + #define OP_FREXP _FpCodeFrexp + #define OP_Y0 _FpCodeY0 + #define OP_Y1 _FpCodeY1 + #define OP_YN _FpCodeYn + + #define OP_LOGB _FpCodeLogb + #define OP_NEXTAFTER _FpCodeNextafter + + // XMMI + #define OP_ADDPS _XMMIAddps + #define OP_ADDSS _XMMIAddss + #define OP_SUBPS _XMMISubps + #define OP_SUBSS _XMMISubss + #define OP_MULPS _XMMIMulps + #define OP_MULSS _XMMIMulss + #define OP_DIVPS _XMMIDivps + #define OP_DIVSS _XMMIDivss + #define OP_SQRTPS _XMMISqrtps + #define OP_SQRTSS _XMMISqrtss + #define OP_MAXPS _XMMIMaxps + #define OP_MAXSS _XMMIMaxss + #define OP_MINPS _XMMIMinps + #define OP_MINSS _XMMIMinss + #define OP_CMPPS _XMMICmpps + #define OP_CMPSS _XMMICmpss + #define OP_COMISS _XMMIComiss + #define OP_UCOMISS _XMMIUComiss + #define OP_CVTPI2PS _XMMICvtpi2ps + #define OP_CVTSI2SS _XMMICvtsi2ss + #define OP_CVTPS2PI _XMMICvtps2pi + #define OP_CVTSS2SI _XMMICvtss2si + #define OP_CVTTPS2PI _XMMICvttps2pi + #define OP_CVTTSS2SI _XMMICvttss2si + #define OP_ADDSUBPS _XMMIAddsubps + #define OP_HADDPS _XMMIHaddps + #define OP_HSUBPS _XMMIHsubps + #define OP_ROUNDPS _XMMIRoundps + #define OP_ROUNDSS _XMMIRoundss + #define OP_DPPS _XMMIDpps + // XMMI + + // XMMI2 + #define OP_ADDPD _XMMI2Addpd // XMMI2 + #define OP_ADDSD _XMMI2Addsd + #define OP_SUBPD _XMMI2Subpd + #define OP_SUBSD _XMMI2Subsd + #define OP_MULPD _XMMI2Mulpd + #define OP_MULSD _XMMI2Mulsd + #define OP_DIVPD _XMMI2Divpd + #define OP_DIVSD _XMMI2Divsd + #define OP_SQRTPD _XMMI2Sqrtpd + #define OP_SQRTSD _XMMI2Sqrtsd + #define OP_MAXPD _XMMI2Maxpd + #define OP_MAXSD _XMMI2Maxsd + #define OP_MINPD _XMMI2Minpd + #define OP_MINSD _XMMI2Minsd + #define OP_CMPPD _XMMI2Cmppd + #define OP_CMPSD _XMMI2Cmpsd + #define OP_COMISD _XMMI2Comisd + #define OP_UCOMISD _XMMI2UComisd + #define OP_CVTPD2PI _XMMI2Cvtpd2pi // 66 2D + #define OP_CVTSD2SI _XMMI2Cvtsd2si // F2 + #define OP_CVTTPD2PI _XMMI2Cvttpd2pi // 66 2C + #define OP_CVTTSD2SI _XMMI2Cvttsd2si // F2 + #define OP_CVTPS2PD _XMMI2Cvtps2pd // 0F 5A + #define OP_CVTSS2SD _XMMI2Cvtss2sd // F3 + #define OP_CVTPD2PS _XMMI2Cvtpd2ps // 66 + #define OP_CVTSD2SS _XMMI2Cvtsd2ss // F2 + #define OP_CVTDQ2PS _XMMI2Cvtdq2ps // 0F 5B + #define OP_CVTTPS2DQ _XMMI2Cvttps2dq // F3 + #define OP_CVTPS2DQ _XMMI2Cvtps2dq // 66 + #define OP_CVTTPD2DQ _XMMI2Cvttpd2dq // 66 0F E6 + #define OP_CVTPD2DQ _XMMI2Cvtpd2dq // F2 + #define OP_ADDSUBPD _XMMI2Addsubpd // 66 0F D0 + #define OP_HADDPD _XMMI2Haddpd // 66 0F 7C + #define OP_HSUBPD _XMMI2Hsubpd // 66 0F 7D + #define OP_ROUNDPD _XMMI2Roundpd // 66 0F 3A 09 + #define OP_ROUNDSD _XMMI2Roundsd // 66 0F 3A 0B + #define OP_DPPD _XMMI2Dppd // 66 0F 3A 41 + // XMMI2 + + #else // __assembler + + // This must be the same as the enumerator _FP_OPERATION_CODE + #define OP_UNSPEC 0 + #define OP_ADD 1 + #define OP_SUB 2 + #define OP_MUL 3 + #define OP_DIV 4 + #define OP_SQRT 5 + #define OP_REM 6 + #define OP_COMP 7 + #define OP_CVT 8 + #define OP_RND 9 + #define OP_TRUNC 10 + #define OP_FLOOR 11 + #define OP_CEIL 12 + #define OP_ACOS 13 + #define OP_ASIN 14 + #define OP_ATAN 15 + #define OP_ATAN2 16 + #define OP_CABS 17 + #define OP_COS 18 + #define OP_COSH 19 + #define OP_EXP 20 + #define OP_ABS 21 // same as OP_FABS + #define OP_FABS 21 // same as OP_ABS + #define OP_FMOD 22 + #define OP_FREXP 23 + #define OP_HYPOT 24 + #define OP_LDEXP 25 + #define OP_LOG 26 + #define OP_LOG10 27 + #define OP_MODF 28 + #define OP_POW 29 + #define OP_SIN 30 + #define OP_SINH 31 + #define OP_TAN 32 + #define OP_TANH 33 + #define OP_Y0 34 + #define OP_Y1 35 + #define OP_YN 36 + #define OP_LOGB 37 + #define OP_NEXTAFTER 38 + #define OP_NEG 39 + + #endif // __assembler +#endif // _CORECRT_BUILD + +// Define rounding modes. +#ifndef __assembler + + typedef enum + { + _FpRoundNearest, + _FpRoundMinusInfinity, + _FpRoundPlusInfinity, + _FpRoundChopped + } _FPIEEE_ROUNDING_MODE; + + typedef enum + { + _FpPrecisionFull, + _FpPrecision53, + _FpPrecision24, + } _FPIEEE_PRECISION; + + + // Define floating point context record + typedef float _FP32; + typedef double _FP64; + typedef short _I16; + typedef int _I32; + typedef unsigned short _U16; + typedef unsigned int _U32; + typedef __int64 _Q64; + + #ifdef _CORECRT_BUILD + typedef struct + { + unsigned long W[4]; + } _U32ARRAY; + #endif + + typedef struct + { + unsigned short W[5]; + } _FP80; + + typedef struct _CRT_ALIGN(16) + { + unsigned long W[4]; + } _FP128; + + typedef struct _CRT_ALIGN(8) + { + unsigned long W[2]; + } _I64; + + typedef struct _CRT_ALIGN(8) + { + unsigned long W[2]; + } _U64; + + typedef struct + { + unsigned short W[5]; + } _BCD80; + + typedef struct _CRT_ALIGN(16) + { + _Q64 W[2]; + } _FPQ64; + + typedef struct + { + union + { + _FP32 Fp32Value; + _FP64 Fp64Value; + _FP80 Fp80Value; + _FP128 Fp128Value; + _I16 I16Value; + _I32 I32Value; + _I64 I64Value; + _U16 U16Value; + _U32 U32Value; + _U64 U64Value; + _BCD80 Bcd80Value; + char *StringValue; + int CompareValue; + #ifdef _CORECRT_BUILD + _U32ARRAY U32ArrayValue; + #endif + _Q64 Q64Value; + _FPQ64 Fpq64Value; + } Value; + + unsigned int OperandValid : 1; + unsigned int Format : 4; + + } _FPIEEE_VALUE; + + typedef struct + { + unsigned int Inexact : 1; + unsigned int Underflow : 1; + unsigned int Overflow : 1; + unsigned int ZeroDivide : 1; + unsigned int InvalidOperation : 1; + } _FPIEEE_EXCEPTION_FLAGS; + + + typedef struct + { + unsigned int RoundingMode : 2; + unsigned int Precision : 3; + unsigned int Operation : 12; + _FPIEEE_EXCEPTION_FLAGS Cause; + _FPIEEE_EXCEPTION_FLAGS Enable; + _FPIEEE_EXCEPTION_FLAGS Status; + _FPIEEE_VALUE Operand1; + _FPIEEE_VALUE Operand2; + _FPIEEE_VALUE Result; + } _FPIEEE_RECORD, *_PFPIEEE_RECORD; + + + struct _EXCEPTION_POINTERS; + + typedef int (__cdecl* _FpieeFltHandlerType)(_FPIEEE_RECORD*); + + // Floating point IEEE exception filter routine + _ACRTIMP int __cdecl _fpieee_flt( + _In_ unsigned long _ExceptionCode, + _In_ struct _EXCEPTION_POINTERS* _PtExceptionPtr, + _In_ _FpieeFltHandlerType _Handler + ); + +#endif // __assembler + +_CRT_END_C_HEADER + +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // __midl +#endif // _INC_FPIEEE diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/inttypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/inttypes.h new file mode 100644 index 0000000000000000000000000000000000000000..8b76fcd9aba36c287bff9b431da83ba85a39fc04 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/inttypes.h @@ -0,0 +1,341 @@ +// +// inttypes.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Various integer format specifier macros for use with the stdio library, and +// various integer conversion and manipulation functions. +// +#pragma once +#ifndef _INTTYPES // include guard for 3rd party interop +#define _INTTYPES + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Types +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +typedef struct +{ + intmax_t quot; + intmax_t rem; +} _Lldiv_t; + +typedef _Lldiv_t imaxdiv_t; + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +_Check_return_ +_ACRTIMP intmax_t __cdecl imaxabs( + _In_ intmax_t _Number + ); + +_Check_return_ +_ACRTIMP imaxdiv_t __cdecl imaxdiv( + _In_ intmax_t _Numerator, + _In_ intmax_t _Denominator + ); + +_ACRTIMP intmax_t __cdecl strtoimax( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix + ); + +_ACRTIMP intmax_t __cdecl _strtoimax_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + +_ACRTIMP uintmax_t __cdecl strtoumax( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix + ); + +_ACRTIMP uintmax_t __cdecl _strtoumax_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + +_ACRTIMP intmax_t __cdecl wcstoimax( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix + ); + +_ACRTIMP intmax_t __cdecl _wcstoimax_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + +_ACRTIMP uintmax_t __cdecl wcstoumax( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix + ); + +_ACRTIMP uintmax_t __cdecl _wcstoumax_l( + _In_z_ wchar_t const* _String, + _Out_opt_ _Deref_post_z_ wchar_t** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Output Format Specifier Macros +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#define PRId8 "hhd" +#define PRId16 "hd" +#define PRId32 "d" +#define PRId64 "lld" +#define PRIdLEAST8 PRId8 +#define PRIdLEAST16 PRId16 +#define PRIdLEAST32 PRId32 +#define PRIdLEAST64 PRId64 +#define PRIdFAST8 PRId8 +#define PRIdFAST16 PRId32 +#define PRIdFAST32 PRId32 +#define PRIdFAST64 PRId64 +#define PRIdMAX PRId64 +#ifdef _WIN64 + #define PRIdPTR PRId64 +#else + #define PRIdPTR PRId32 +#endif + +#define PRIi8 "hhi" +#define PRIi16 "hi" +#define PRIi32 "i" +#define PRIi64 "lli" +#define PRIiLEAST8 PRIi8 +#define PRIiLEAST16 PRIi16 +#define PRIiLEAST32 PRIi32 +#define PRIiLEAST64 PRIi64 +#define PRIiFAST8 PRIi8 +#define PRIiFAST16 PRIi32 +#define PRIiFAST32 PRIi32 +#define PRIiFAST64 PRIi64 +#define PRIiMAX PRIi64 +#ifdef _WIN64 + #define PRIiPTR PRIi64 +#else + #define PRIiPTR PRIi32 +#endif + +#define PRIo8 "hho" +#define PRIo16 "ho" +#define PRIo32 "o" +#define PRIo64 "llo" +#define PRIoLEAST8 PRIo8 +#define PRIoLEAST16 PRIo16 +#define PRIoLEAST32 PRIo32 +#define PRIoLEAST64 PRIo64 +#define PRIoFAST8 PRIo8 +#define PRIoFAST16 PRIo32 +#define PRIoFAST32 PRIo32 +#define PRIoFAST64 PRIo64 +#define PRIoMAX PRIo64 +#ifdef _WIN64 + #define PRIoPTR PRIo64 +#else + #define PRIoPTR PRIo32 +#endif + +#define PRIu8 "hhu" +#define PRIu16 "hu" +#define PRIu32 "u" +#define PRIu64 "llu" +#define PRIuLEAST8 PRIu8 +#define PRIuLEAST16 PRIu16 +#define PRIuLEAST32 PRIu32 +#define PRIuLEAST64 PRIu64 +#define PRIuFAST8 PRIu8 +#define PRIuFAST16 PRIu32 +#define PRIuFAST32 PRIu32 +#define PRIuFAST64 PRIu64 +#define PRIuMAX PRIu64 +#ifdef _WIN64 + #define PRIuPTR PRIu64 +#else + #define PRIuPTR PRIu32 +#endif + +#define PRIx8 "hhx" +#define PRIx16 "hx" +#define PRIx32 "x" +#define PRIx64 "llx" +#define PRIxLEAST8 PRIx8 +#define PRIxLEAST16 PRIx16 +#define PRIxLEAST32 PRIx32 +#define PRIxLEAST64 PRIx64 +#define PRIxFAST8 PRIx8 +#define PRIxFAST16 PRIx32 +#define PRIxFAST32 PRIx32 +#define PRIxFAST64 PRIx64 +#define PRIxMAX PRIx64 +#ifdef _WIN64 + #define PRIxPTR PRIx64 +#else + #define PRIxPTR PRIx32 +#endif + +#define PRIX8 "hhX" +#define PRIX16 "hX" +#define PRIX32 "X" +#define PRIX64 "llX" +#define PRIXLEAST8 PRIX8 +#define PRIXLEAST16 PRIX16 +#define PRIXLEAST32 PRIX32 +#define PRIXLEAST64 PRIX64 +#define PRIXFAST8 PRIX8 +#define PRIXFAST16 PRIX32 +#define PRIXFAST32 PRIX32 +#define PRIXFAST64 PRIX64 +#define PRIXMAX PRIX64 +#ifdef _WIN64 + #define PRIXPTR PRIX64 +#else + #define PRIXPTR PRIX32 +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Input Format Specifier Macros +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#define SCNd8 "hhd" +#define SCNd16 "hd" +#define SCNd32 "d" +#define SCNd64 "lld" +#define SCNdLEAST8 SCNd8 +#define SCNdLEAST16 SCNd16 +#define SCNdLEAST32 SCNd32 +#define SCNdLEAST64 SCNd64 +#define SCNdFAST8 SCNd8 +#define SCNdFAST16 SCNd32 +#define SCNdFAST32 SCNd32 +#define SCNdFAST64 SCNd64 +#define SCNdMAX SCNd64 +#ifdef _WIN64 + #define SCNdPTR SCNd64 +#else + #define SCNdPTR SCNd32 +#endif + +#define SCNi8 "hhi" +#define SCNi16 "hi" +#define SCNi32 "i" +#define SCNi64 "lli" +#define SCNiLEAST8 SCNi8 +#define SCNiLEAST16 SCNi16 +#define SCNiLEAST32 SCNi32 +#define SCNiLEAST64 SCNi64 +#define SCNiFAST8 SCNi8 +#define SCNiFAST16 SCNi32 +#define SCNiFAST32 SCNi32 +#define SCNiFAST64 SCNi64 +#define SCNiMAX SCNi64 +#ifdef _WIN64 + #define SCNiPTR SCNi64 +#else + #define SCNiPTR SCNi32 +#endif + +#define SCNo8 "hho" +#define SCNo16 "ho" +#define SCNo32 "o" +#define SCNo64 "llo" +#define SCNoLEAST8 SCNo8 +#define SCNoLEAST16 SCNo16 +#define SCNoLEAST32 SCNo32 +#define SCNoLEAST64 SCNo64 +#define SCNoFAST8 SCNo8 +#define SCNoFAST16 SCNo32 +#define SCNoFAST32 SCNo32 +#define SCNoFAST64 SCNo64 +#define SCNoMAX SCNo64 +#ifdef _WIN64 + #define SCNoPTR SCNo64 +#else + #define SCNoPTR SCNo32 +#endif + +#define SCNu8 "hhu" +#define SCNu16 "hu" +#define SCNu32 "u" +#define SCNu64 "llu" +#define SCNuLEAST8 SCNu8 +#define SCNuLEAST16 SCNu16 +#define SCNuLEAST32 SCNu32 +#define SCNuLEAST64 SCNu64 +#define SCNuFAST8 SCNu8 +#define SCNuFAST16 SCNu32 +#define SCNuFAST32 SCNu32 +#define SCNuFAST64 SCNu64 +#define SCNuMAX SCNu64 +#ifdef _WIN64 + #define SCNuPTR SCNu64 +#else + #define SCNuPTR SCNu32 +#endif + +#define SCNx8 "hhx" +#define SCNx16 "hx" +#define SCNx32 "x" +#define SCNx64 "llx" +#define SCNxLEAST8 SCNx8 +#define SCNxLEAST16 SCNx16 +#define SCNxLEAST32 SCNx32 +#define SCNxLEAST64 SCNx64 +#define SCNxFAST8 SCNx8 +#define SCNxFAST16 SCNx32 +#define SCNxFAST32 SCNx32 +#define SCNxFAST64 SCNx64 +#define SCNxMAX SCNx64 +#ifdef _WIN64 + #define SCNxPTR SCNx64 +#else + #define SCNxPTR SCNx32 +#endif + + + +_CRT_END_C_HEADER + +/* + * Copyright (c) 1992-2010 by P.J. Plauger. ALL RIGHTS RESERVED. + * Consult your license regarding permissions and restrictions. +V5.30:0009 */ + +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INTTYPES diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/io.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/io.h new file mode 100644 index 0000000000000000000000000000000000000000..d300a2adc60d216f11c8b4417f6f9becc75eb7ac --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/io.h @@ -0,0 +1,13 @@ +// +// io.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the low-level I/O and file handling functionality. +// +#pragma once +#ifndef _INC_IO // include guard for 3rd party interop +#define _INC_IO + +#include +#endif // _INC_IO diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/locale.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/locale.h new file mode 100644 index 0000000000000000000000000000000000000000..a3cfb90363ad390c70c7e55c117c29daab2ac960 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/locale.h @@ -0,0 +1,184 @@ +// +// locale.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C locale library. +// +#pragma once +#ifndef _INC_LOCALE // include guard for 3rd party interop +#define _INC_LOCALE + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +// Locale categories +#define LC_ALL 0 +#define LC_COLLATE 1 +#define LC_CTYPE 2 +#define LC_MONETARY 3 +#define LC_NUMERIC 4 +#define LC_TIME 5 + +#define LC_MIN LC_ALL +#define LC_MAX LC_TIME + +// Locale convention structure +struct lconv +{ + char* decimal_point; + char* thousands_sep; + char* grouping; + char* int_curr_symbol; + char* currency_symbol; + char* mon_decimal_point; + char* mon_thousands_sep; + char* mon_grouping; + char* positive_sign; + char* negative_sign; + char int_frac_digits; + char frac_digits; + char p_cs_precedes; + char p_sep_by_space; + char n_cs_precedes; + char n_sep_by_space; + char p_sign_posn; + char n_sign_posn; + wchar_t* _W_decimal_point; + wchar_t* _W_thousands_sep; + wchar_t* _W_int_curr_symbol; + wchar_t* _W_currency_symbol; + wchar_t* _W_mon_decimal_point; + wchar_t* _W_mon_thousands_sep; + wchar_t* _W_positive_sign; + wchar_t* _W_negative_sign; +}; + +struct tm; + +// ANSI: char lconv members default is CHAR_MAX which is compile time dependent. +// Defining and using __do_unsigned_char_lconv_initialization here causes CRT +// startup code to initialize lconv members properly +#ifdef _CHAR_UNSIGNED + extern int __do_unsigned_char_lconv_initialization; + extern __inline int __use_char_max(void) + { + return __do_unsigned_char_lconv_initialization; + } +#endif + + + +#define _ENABLE_PER_THREAD_LOCALE 0x0001 +#define _DISABLE_PER_THREAD_LOCALE 0x0002 +#define _ENABLE_PER_THREAD_LOCALE_GLOBAL 0x0010 +#define _DISABLE_PER_THREAD_LOCALE_GLOBAL 0x0020 +#define _ENABLE_PER_THREAD_LOCALE_NEW 0x0100 +#define _DISABLE_PER_THREAD_LOCALE_NEW 0x0200 + +#if _CRT_FUNCTIONS_REQUIRED + + _ACRTIMP void __cdecl _lock_locales(void); + _ACRTIMP void __cdecl _unlock_locales(void); + + _Check_return_opt_ + _ACRTIMP int __cdecl _configthreadlocale( + _In_ int _Flag + ); + + _Check_return_opt_ _Success_(return != 0) _Ret_z_ + _ACRTIMP char* __cdecl setlocale( + _In_ int _Category, + _In_opt_z_ char const* _Locale + ); + + _Check_return_opt_ + _ACRTIMP struct lconv* __cdecl localeconv(void); + + _Check_return_opt_ + _ACRTIMP _locale_t __cdecl _get_current_locale(void); + + _Check_return_opt_ + _ACRTIMP _locale_t __cdecl _create_locale( + _In_ int _Category, + _In_z_ char const* _Locale + ); + + _ACRTIMP void __cdecl _free_locale( + _In_opt_ _locale_t _Locale + ); + + // Also declared in + _Check_return_opt_ _Success_(return != 0) _Ret_z_ + _ACRTIMP wchar_t* __cdecl _wsetlocale( + _In_ int _Category, + _In_opt_z_ wchar_t const* _Locale + ); + + _Check_return_opt_ + _ACRTIMP _locale_t __cdecl _wcreate_locale( + _In_ int _Category, + _In_z_ wchar_t const* _Locale + ); + + + + _ACRTIMP wchar_t** __cdecl ___lc_locale_name_func(void); + _ACRTIMP unsigned int __cdecl ___lc_codepage_func (void); + _ACRTIMP unsigned int __cdecl ___lc_collate_cp_func (void); + + + + + // Time-related functions + _Success_(return != 0) + _Ret_z_ + _ACRTIMP char* __cdecl _Getdays(void); + + _Success_(return != 0) + _Ret_z_ + _ACRTIMP char* __cdecl _Getmonths(void); + + _ACRTIMP void* __cdecl _Gettnames(void); + + _Success_(return != 0) + _Ret_z_ + _ACRTIMP wchar_t* __cdecl _W_Getdays(void); + + _Success_(return != 0) + _Ret_z_ + _ACRTIMP wchar_t* __cdecl _W_Getmonths(void); + + _ACRTIMP void* __cdecl _W_Gettnames(void); + + _Success_(return > 0) + _ACRTIMP size_t __cdecl _Strftime( + _Out_writes_z_(_Max_size) char* _Buffer, + _In_ size_t _Max_size, + _In_z_ char const* _Format, + _In_ struct tm const* _Timeptr, + _In_opt_ void* _Lc_time_arg); + + _Success_(return > 0) + _ACRTIMP size_t __cdecl _Wcsftime( + _Out_writes_z_(_Max_size) wchar_t* _Buffer, + _In_ size_t _Max_size, + _In_z_ wchar_t const* _Format, + _In_ struct tm const* _Timeptr, + _In_opt_ void* _Lc_time_arg + ); + +#endif // _CRT_FUNCTIONS_REQUIRED + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_LOCALE diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/malloc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/malloc.h new file mode 100644 index 0000000000000000000000000000000000000000..c3da9fb0582f9cc54f295c79eb3eca99247e94dc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/malloc.h @@ -0,0 +1,184 @@ +// +// malloc.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The memory allocation library. +// +#pragma once +#ifndef _INC_MALLOC // include guard for 3rd party interop +#define _INC_MALLOC + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +// Maximum heap request the heap manager will attempt +#ifdef _WIN64 + #define _HEAP_MAXREQ 0xFFFFFFFFFFFFFFE0 +#else + #define _HEAP_MAXREQ 0xFFFFFFE0 +#endif + + + +// Constants for _heapchk and _heapwalk routines +#define _HEAPEMPTY (-1) +#define _HEAPOK (-2) +#define _HEAPBADBEGIN (-3) +#define _HEAPBADNODE (-4) +#define _HEAPEND (-5) +#define _HEAPBADPTR (-6) +#define _FREEENTRY 0 +#define _USEDENTRY 1 + +typedef struct _heapinfo +{ + int* _pentry; + size_t _size; + int _useflag; +} _HEAPINFO; + +#define _mm_free(a) _aligned_free(a) +#define _mm_malloc(a, b) _aligned_malloc(a, b) + + + +_Ret_notnull_ _Post_writable_byte_size_(_Size) +void* __cdecl _alloca(_In_ size_t _Size); + + + +#if !defined __midl && !defined RC_INVOKED + + _ACRTIMP intptr_t __cdecl _get_heap_handle(void); + + _Check_return_ + _DCRTIMP int __cdecl _heapmin(void); + + #if defined _DEBUG || defined _CRT_USE_WINAPI_FAMILY_DESKTOP_APP || defined _CORECRT_BUILD + _ACRTIMP int __cdecl _heapwalk(_Inout_ _HEAPINFO* _EntryInfo); + #endif + + #if defined _CRT_USE_WINAPI_FAMILY_DESKTOP_APP || defined _CRT_USE_WINAPI_FAMILY_GAMES + _Check_return_ _DCRTIMP int __cdecl _heapchk(void); + #endif + + _DCRTIMP int __cdecl _resetstkoflw(void); + + #define _ALLOCA_S_THRESHOLD 1024 + #define _ALLOCA_S_STACK_MARKER 0xCCCC + #define _ALLOCA_S_HEAP_MARKER 0xDDDD + + #ifdef _WIN64 + #define _ALLOCA_S_MARKER_SIZE 16 + #else + #define _ALLOCA_S_MARKER_SIZE 8 + #endif + + _STATIC_ASSERT(sizeof(unsigned int) <= _ALLOCA_S_MARKER_SIZE); + + + #pragma warning(push) + #pragma warning(disable: 6540) // C6540: attribute annotations on this function will invalidate all + // of its existing __declspec annotations + + __inline void* _MarkAllocaS(_Out_opt_ __crt_typefix(unsigned int*) void* _Ptr, unsigned int _Marker) + { + if (_Ptr) + { + *((unsigned int*)_Ptr) = _Marker; + _Ptr = (char*)_Ptr + _ALLOCA_S_MARKER_SIZE; + } + return _Ptr; + } + + __inline size_t _MallocaComputeSize(size_t _Size) + { + size_t _MarkedSize = _Size + _ALLOCA_S_MARKER_SIZE; + return _MarkedSize > _Size ? _MarkedSize : 0; + } + + #pragma warning(pop) + +#endif + + + +#ifdef _DEBUG +// C6255: _alloca indicates failure by raising a stack overflow exception +// C6386: buffer overrun + #ifndef _CRTDBG_MAP_ALLOC + #undef _malloca + #define _malloca(size) \ + __pragma(warning(suppress: 6255 6386)) \ + (_MallocaComputeSize(size) != 0 \ + ? _MarkAllocaS(malloc(_MallocaComputeSize(size)), _ALLOCA_S_HEAP_MARKER) \ + : NULL) + #endif + +#else + + #undef _malloca + #define _malloca(size) \ + __pragma(warning(suppress: 6255 6386)) \ + (_MallocaComputeSize(size) != 0 \ + ? (((_MallocaComputeSize(size) <= _ALLOCA_S_THRESHOLD) \ + ? _MarkAllocaS(_alloca(_MallocaComputeSize(size)), _ALLOCA_S_STACK_MARKER) \ + : _MarkAllocaS(malloc(_MallocaComputeSize(size)), _ALLOCA_S_HEAP_MARKER))) \ + : NULL) + +#endif + + + +#if defined __midl && !defined RC_INVOKED +#elif defined _DEBUG && defined _CRTDBG_MAP_ALLOC +#else + + #undef _freea + + #pragma warning(push) + #pragma warning(disable: 6014) // leaking memory + __inline void __CRTDECL _freea(_Pre_maybenull_ _Post_invalid_ void* _Memory) + { + unsigned int _Marker; + if (_Memory) + { + _Memory = (char*)_Memory - _ALLOCA_S_MARKER_SIZE; + _Marker = *(unsigned int*)_Memory; + if (_Marker == _ALLOCA_S_HEAP_MARKER) + { + free(_Memory); + } + #ifdef _ASSERTE + else if (_Marker != _ALLOCA_S_STACK_MARKER) + { + _ASSERTE(("Corrupted pointer passed to _freea" && 0)); + } + #endif + } + } + #pragma warning(pop) + +#endif + + + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + #define alloca _alloca +#endif + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_MALLOC diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/math.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/math.h new file mode 100644 index 0000000000000000000000000000000000000000..6530cbca7fbfe746aa537f53ff1f8c2c4ebb68af --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/math.h @@ -0,0 +1,15 @@ +// +// math.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C Standard Library header. This header consists of two parts: +// contains the math library; contains +// the nonstandard but useful constant definitions. The headers are divided in +// this way for modularity (to support the C++ modules feature). +// +#include + +#ifdef _USE_MATH_DEFINES + #include +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/mbctype.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/mbctype.h new file mode 100644 index 0000000000000000000000000000000000000000..8c7184e2bdb248252a103f7d31061352dffd117f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/mbctype.h @@ -0,0 +1,173 @@ +// +// mbctype.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Functions and macros for MBCS character classification and conversion. +// +#pragma once +#ifndef _INC_MBCTYPE // include guard for 3rd party interop +#define _INC_MBCTYPE + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +// This declaration allows the user access the _mbctype[] look-up array. +_Check_return_ _ACRTIMP unsigned char* __cdecl __p__mbctype(void); +_Check_return_ _ACRTIMP unsigned char* __cdecl __p__mbcasemap(void); + +#ifdef _CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY + #ifndef _CORECRT_BUILD + extern unsigned char _mbctype[]; + extern unsigned char _mbcasemap[]; + #endif +#else + #define _mbctype (__p__mbctype()) + #define _mbcasemap (__p__mbcasemap()) +#endif + + + +// Bit masks for MBCS character types: +// Different encodings may have different behaviors, applications are discouraged +// from attempting to reverse engineer the mechanics of the various encodings. +#define _MS 0x01 // MBCS single-byte symbol +#define _MP 0x02 // MBCS punctuation +#define _M1 0x04 // MBCS (not UTF-8!) 1st (lead) byte +#define _M2 0x08 // MBCS (not UTF-8!) 2nd byte + +// The CRT does not do proper linguistic casing, it is preferred that applications +// use appropriate NLS or Globalization functions. +#define _SBUP 0x10 // SBCS uppercase char +#define _SBLOW 0x20 // SBCS lowercase char + +// Byte types +// Different encodings may have different behaviors, use of these is discouraged +#define _MBC_SINGLE 0 // Valid single byte char +#define _MBC_LEAD 1 // Lead byte +#define _MBC_TRAIL 2 // Trailing byte +#define _MBC_ILLEGAL (-1) // Illegal byte + +#define _KANJI_CP 932 + +// _setmbcp parameter defines: +// Use of UTF-8 is encouraged +#define _MB_CP_SBCS 0 +#define _MB_CP_OEM -2 +#define _MB_CP_ANSI -3 +#define _MB_CP_LOCALE -4 +// CP_UTF8 - UTF-8 was not permitted in earlier CRT versions +#define _MB_CP_UTF8 65001 + +// Multibyte control routines: +_ACRTIMP int __cdecl _setmbcp(_In_ int _CodePage); +_ACRTIMP int __cdecl _getmbcp(void); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Multibyte Character Classification and Conversion Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if _CRT_FUNCTIONS_REQUIRED + _Check_return_ _DCRTIMP int __cdecl _ismbbkalnum(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbbkana (_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbbkpunct(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbbkprint(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbbalpha (_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbbpunct (_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbbblank (_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbbalnum (_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbbprint (_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbbgraph (_In_ unsigned int _C); + + _Check_return_ _DCRTIMP int __cdecl _ismbbkalnum_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbkana_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbkpunct_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbkprint_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbalpha_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbpunct_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbblank_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbalnum_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbprint_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbgraph_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + + // BEGIN _MBLEADTRAIL_DEFINED + // Lead and trail bytes do not apply correctly to all encodings, including UTF-8. Applications + // are recommended to use the system codepage conversion APIs and not attempt to reverse + // engineer the behavior of any particular encoding. Lead and trail are always FALSE for UTF-8. + _When_(_Ch == 0, _Post_equal_to_(0)) + _Check_return_ _DCRTIMP int __cdecl _ismbblead (_In_ unsigned int _Ch); + _Check_return_ _DCRTIMP int __cdecl _ismbbtrail(_In_ unsigned int _Ch); + + _When_(_Ch == 0, _Post_equal_to_(0)) + _Check_return_ _DCRTIMP int __cdecl _ismbblead_l (_In_ unsigned int _Ch, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbtrail_l(_In_ unsigned int _Ch, _In_opt_ _locale_t _Locale); + + _Check_return_ + _DCRTIMP int __cdecl _ismbslead( + _In_reads_z_(_Pos - _String + 1) unsigned char const* _String, + _In_z_ unsigned char const* _Pos + ); + + _Check_return_ + _DCRTIMP int __cdecl _ismbslead_l( + _In_reads_z_(_Pos - _String + 1) unsigned char const* _String, + _In_z_ unsigned char const* _Pos, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP int __cdecl _ismbstrail( + _In_reads_z_(_Pos - _String + 1) unsigned char const* _String, + _In_z_ unsigned char const* _Pos + ); + + _Check_return_ + _ACRTIMP int __cdecl _ismbstrail_l( + _In_reads_z_(_Pos - _String + 1) unsigned char const* _String, + _In_z_ unsigned char const* _Pos, + _In_opt_ _locale_t _Locale + ); +#endif // _CRT_FUNCTIONS_REQUIRED + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Unsynchronized Macro Forms of Some Classification Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if defined _CRT_DISABLE_PERFCRIT_LOCKS && !defined _DLL + #define _ismbbkalnum(_c) ((_mbctype+1)[(unsigned char)(_c)] & (_MS )) + #define _ismbbkprint(_c) ((_mbctype+1)[(unsigned char)(_c)] & (_MS | _MP)) + #define _ismbbkpunct(_c) ((_mbctype+1)[(unsigned char)(_c)] & (_MP )) + + #define _ismbbalnum(_c) (((_pctype)[(unsigned char)(_c)] & (_ALPHA | _DIGIT )) || _ismbbkalnum(_c)) + #define _ismbbalpha(_c) (((_pctype)[(unsigned char)(_c)] & (_ALPHA )) || _ismbbkalnum(_c)) + #define _ismbbgraph(_c) (((_pctype)[(unsigned char)(_c)] & (_PUNCT | _ALPHA | _DIGIT )) || _ismbbkprint(_c)) + #define _ismbbprint(_c) (((_pctype)[(unsigned char)(_c)] & (_BLANK | _PUNCT | _ALPHA | _DIGIT)) || _ismbbkprint(_c)) + #define _ismbbpunct(_c) (((_pctype)[(unsigned char)(_c)] & (_PUNCT )) || _ismbbkpunct(_c)) + #define _ismbbblank(_c) (((_c) == '\t') ? _BLANK : (_pctype)[(unsigned char)(_c)] & _BLANK) + + // Note that these are intended for double byte character sets (DBCS) and so UTF-8 doesn't consider either to be true for any bytes + // (for UTF-8 we never set _M1 or _M2 in this array) + #define _ismbblead(_c) ((_mbctype+1)[(unsigned char)(_c)] & _M1) + #define _ismbbtrail(_c) ((_mbctype+1)[(unsigned char)(_c)] & _M2) + + #define _ismbbkana(_c) ((_mbctype+1)[(unsigned char)(_c)] & (_MS | _MP)) +#endif + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_MBCTYPE diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/mbstring.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/mbstring.h new file mode 100644 index 0000000000000000000000000000000000000000..bf201a98322a45493e52bb0d71d7a7c477badaa1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/mbstring.h @@ -0,0 +1,1235 @@ +// +// mbstring.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Functions and macros for MBCS string manipulation +// +#pragma once +#ifndef _INC_MBSTRING // include guard for 3rd party interop +#define _INC_MBSTRING + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#ifndef _FILE_DEFINED + #define _FILE_DEFINED + typedef struct _iobuf + { + void* _Placeholder; + } FILE; +#endif + +#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + #pragma push_macro("_mbsdup") + #undef _mbsdup + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbsdup( + _In_z_ unsigned char const* _Str + ); + + #pragma pop_macro("_mbsdup") + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // The Multibyte Character String Library Functions + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_ + _DCRTIMP unsigned int __cdecl _mbbtombc( + _In_ unsigned int _C + ); + + _Check_return_ + _DCRTIMP unsigned int __cdecl _mbbtombc_l( + _In_ unsigned int _C, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbbtype( + _In_ unsigned char _C, + _In_ int _CType + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbbtype_l( + _In_ unsigned char _C, + _In_ int _CType, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP unsigned int __cdecl _mbctombb( + _In_ unsigned int _C + ); + + _Check_return_ + _DCRTIMP unsigned int __cdecl _mbctombb_l( + _In_ unsigned int _C, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP int __cdecl _mbsbtype( + _In_reads_z_(_Pos) unsigned char const* _Str, + _In_ size_t _Pos + ); + + _DCRTIMP int __cdecl _mbsbtype_l( + _In_reads_z_(_Pos) unsigned char const* _Str, + _In_ size_t _Pos, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP errno_t __cdecl _mbscat_s( + _Inout_updates_z_(_SizeInBytes) unsigned char* _Dst, + _In_ size_t _SizeInBytes, + _In_z_ unsigned char const* _Src + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _mbscat_s, + unsigned char, _Dst, + _In_z_ unsigned char const*, _DstSizeInBytes + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbscat, + _Inout_updates_z_(_String_length_(_Dest) + _String_length_(_Source) + 1), unsigned char, _Dest, + _In_z_ unsigned char const*, _Source + ) + + _DCRTIMP errno_t __cdecl _mbscat_s_l( + _Inout_updates_z_(_DstSizeInBytes) unsigned char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_z_ unsigned char const* _Src, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _mbscat_s_l, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_EX( + unsigned char* , __RETURN_POLICY_DST, _DCRTIMP, _mbscat_l, _mbscat_s_l, + _Inout_z_ unsigned char, + _Inout_z_, unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_opt_ _locale_t, _Locale + ) + + _Check_return_ + _DCRTIMP _CONST_RETURN unsigned char* __cdecl _mbschr( + _In_z_ unsigned char const* _Str, + _In_ unsigned int _C + ); + + _Check_return_ + _DCRTIMP _CONST_RETURN unsigned char* __cdecl _mbschr_l( + _In_z_ unsigned char const* _Str, + _In_ unsigned int _C, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbscmp( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2 + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbscmp_l( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbscoll( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2 + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbscoll_l( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP errno_t __cdecl _mbscpy_s( + _Out_writes_z_(_SizeInBytes) unsigned char* _Dst, + _In_ size_t _SizeInBytes, + _In_z_ unsigned char const* _Src + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _mbscpy_s, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbscpy, + _Out_writes_z_(_String_length_(_Source) + 1), unsigned char, _Dest, + _In_z_ unsigned char const*, _Source + ) + + _DCRTIMP errno_t __cdecl _mbscpy_s_l( + _Out_writes_z_(_DstSizeInBytes) unsigned char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_z_ unsigned char const* _Src, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _mbscpy_s, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbscpy_l, _mbscpy_s_l, + _Pre_notnull_ _Post_z_ unsigned char, + _Pre_notnull_ _Post_z_, unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_opt_ _locale_t, _Locale + ) + + _Check_return_ + _DCRTIMP size_t __cdecl _mbscspn( + _In_z_ unsigned char const* _String, + _In_z_ unsigned char const* _Control + ); + + _Check_return_ + _DCRTIMP size_t __cdecl _mbscspn_l( + _In_z_ unsigned char const* _String, + _In_z_ unsigned char const* _Control, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbsdec( + _In_reads_z_(_Pos - _Start + 1) unsigned char const* _Start, + _In_z_ unsigned char const* _Pos + ); + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbsdec_l( + _In_reads_z_(_Pos-_Start+1) unsigned char const* _Start, + _In_z_ unsigned char const* _Pos, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsicmp( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2 + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsicmp_l( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsicoll( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2 + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsicoll_l( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbsinc( + _In_z_ unsigned char const* _Ptr + ); + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbsinc_l( + _In_z_ unsigned char const* _Ptr, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _Post_satisfies_(return <= _String_length_(_String)) + _DCRTIMP size_t __cdecl _mbslen( + _In_z_ unsigned char const* _String + ); + + _Check_return_ + _Post_satisfies_(return <= _String_length_(_String)) + _DCRTIMP size_t __cdecl _mbslen_l( + _In_z_ unsigned char const* _String, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _Post_satisfies_(return <= _String_length_(_String) && return <= _MaxCount) + _DCRTIMP size_t __cdecl _mbsnlen( + _In_z_ unsigned char const* _String, + _In_ size_t _MaxCount + ); + + _Check_return_ + _Post_satisfies_(return <= _String_length_(_String) && return <= _MaxCount) + _DCRTIMP size_t __cdecl _mbsnlen_l( + _In_z_ unsigned char const* _String, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP errno_t __cdecl _mbslwr_s( + _Inout_updates_opt_z_(_SizeInBytes) unsigned char* _String, + _In_ size_t _SizeInBytes + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _mbslwr_s, + _Inout_updates_z_(_Size) unsigned char, _String + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbslwr, + _Inout_z_, unsigned char, _String + ) + + _DCRTIMP errno_t __cdecl _mbslwr_s_l( + _Inout_updates_opt_z_(_SizeInBytes) unsigned char* _String, + _In_ size_t _SizeInBytes, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _mbslwr_s_l, + unsigned char, _String, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbslwr_l, _mbslwr_s_l, + _Inout_updates_z_(_Size) unsigned char, + _Inout_z_, unsigned char, _String, + _In_opt_ _locale_t, _Locale + ) + + _DCRTIMP errno_t __cdecl _mbsnbcat_s( + _Inout_updates_z_(_SizeInBytes) unsigned char* _Dst, + _In_ size_t _SizeInBytes, + _In_z_ unsigned char const* _Src, + _In_ size_t _MaxCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _mbsnbcat_s, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsnbcat, + _Inout_z_, unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count + ) + + _DCRTIMP errno_t __cdecl _mbsnbcat_s_l( + _Inout_updates_z_(_DstSizeInBytes) unsigned char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_z_ unsigned char const* _Src, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3( + errno_t, _mbsnbcat_s_l, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsnbcat_l, _mbsnbcat_s_l, + _Inout_updates_z_(_Size) unsigned char, + _Inout_z_, unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count, + _In_opt_ _locale_t, _Locale + ) + + _Check_return_ + _DCRTIMP int __cdecl _mbsnbcmp( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsnbcmp_l( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsnbcoll( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsnbcoll_l( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP size_t __cdecl _mbsnbcnt( + _In_reads_or_z_(_MaxCount) unsigned char const* _String, + _In_ size_t _MaxCount + ); + + _Check_return_ + _DCRTIMP size_t __cdecl _mbsnbcnt_l( + _In_reads_or_z_(_MaxCount) unsigned char const* _String, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP errno_t __cdecl _mbsnbcpy_s( + _Out_writes_z_(_SizeInBytes) unsigned char* _Dst, + _In_ size_t _SizeInBytes, + _In_z_ unsigned char const* _Src, + _In_ size_t _MaxCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _mbsnbcpy_s, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2( + _Success_(return != 0) unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsnbcpy, + _Out_writes_(_Count) _Post_maybez_, unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count + ) + + _DCRTIMP errno_t __cdecl _mbsnbcpy_s_l( + _Out_writes_z_(_DstSizeInBytes) unsigned char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_z_ unsigned char const* _Src, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3( + errno_t, _mbsnbcpy_s_l, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX( + _Success_(return != 0) unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsnbcpy_l, _mbsnbcpy_s_l, + _Out_writes_z_(_Size) unsigned char, + _Out_writes_(_Count) _Post_maybez_, unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count, + _In_opt_ _locale_t, _Locale + ) + + _Check_return_ + _DCRTIMP int __cdecl _mbsnbicmp( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsnbicmp_l( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsnbicoll( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsnbicoll_l( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP errno_t __cdecl _mbsnbset_s( + _Inout_updates_z_(_SizeInBytes) unsigned char* _Dst, + _In_ size_t _SizeInBytes, + _In_ unsigned int _C, + _In_ size_t _MaxCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _mbsnbset_s, + _Prepost_z_ unsigned char, _Dest, + _In_ unsigned int, _Val, + _In_ size_t, _MaxCount + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsnbset, _mbsnbset_s, + _Inout_updates_z_(_Size) unsigned char, + _Inout_updates_z_(_MaxCount), unsigned char, _String, + _In_ unsigned int, _Val, + _In_ size_t, _MaxCount + ) + + _DCRTIMP errno_t __cdecl _mbsnbset_s_l( + _Inout_updates_z_(_DstSizeInBytes) unsigned char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_ unsigned int _Ch, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3( + errno_t, _mbsnbset_s_l, + _Prepost_z_ unsigned char, _Dest, + _In_ unsigned int, _Val, + _In_ size_t, _MaxCount, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsnbset_l, _mbsnbset_s_l, + _Inout_updates_z_(_Size) unsigned char, + _Inout_updates_z_(_MaxCount), unsigned char, _String, + _In_ unsigned int, _Val, + _In_ size_t, _MaxCount, + _In_opt_ _locale_t, _Locale + ) + + _DCRTIMP errno_t __cdecl _mbsncat_s( + _Inout_updates_z_(_SizeInBytes) unsigned char* _Dst, + _In_ size_t _SizeInBytes, + _In_z_ unsigned char const* _Src, + _In_ size_t _MaxCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _mbsncat_s, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsncat, + _Inout_z_, unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count + ) + + _DCRTIMP errno_t __cdecl _mbsncat_s_l( + _Inout_updates_z_(_DstSizeInBytes) unsigned char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_z_ unsigned char const* _Src, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3( + errno_t, _mbsncat_s_l, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsncat_l, _mbsncat_s_l, + _Inout_updates_z_(_Size) unsigned char, + _Inout_z_, unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count, + _In_opt_ _locale_t, _Locale + ) + + _Check_return_ + _DCRTIMP size_t __cdecl _mbsnccnt( + _In_reads_or_z_(_MaxCount) unsigned char const* _Str, + _In_ size_t _MaxCount + ); + + _Check_return_ + _DCRTIMP size_t __cdecl _mbsnccnt_l( + _In_reads_or_z_(_MaxCount) unsigned char const* _Str, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsncmp( + _In_reads_or_z_(_MaxCount) unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsncmp_l( + _In_reads_or_z_(_MaxCount) unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsncoll( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsncoll_l( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP errno_t __cdecl _mbsncpy_s( + _Out_writes_z_(_SizeInBytes) unsigned char* _Dst, + _In_ size_t _SizeInBytes, + _In_z_ unsigned char const* _Src, + _In_ size_t _MaxCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _mbsncpy_s, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsncpy, + _Pre_notnull_ _Out_writes_(2 * _Count) _Post_maybez_, unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count + ) + + _DCRTIMP errno_t __cdecl _mbsncpy_s_l( + _Out_writes_z_(_DstSizeInBytes) unsigned char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_z_ unsigned char const* _Src, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3( + errno_t, _mbsncpy_s_l, + unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsncpy_l, _mbsncpy_s_l, + _Out_writes_z_(_Size) unsigned char, + _Out_writes_(_Count) _Post_maybez_, unsigned char, _Dest, + _In_z_ unsigned char const*, _Source, + _In_ size_t, _Count, + _In_opt_ _locale_t, _Locale + ) + + _Check_return_ + _DCRTIMP unsigned int __cdecl _mbsnextc( + _In_z_ unsigned char const* _String + ); + + _Check_return_ + _DCRTIMP unsigned int __cdecl _mbsnextc_l( + _In_z_ unsigned char const* _String, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsnicmp( + _In_reads_or_z_(_MaxCount) unsigned char const* _Str1, + _In_reads_or_z_(_MaxCount) unsigned char const* _Str2, + _In_ size_t _MaxCount + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsnicmp_l( + _In_reads_or_z_(_MaxCount) unsigned char const* _Str1, + _In_reads_or_z_(_MaxCount) unsigned char const* _Str2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsnicoll( + _In_reads_or_z_(_MaxCount) unsigned char const* _Str1, + _In_reads_or_z_(_MaxCount) unsigned char const* _Str2, + _In_ size_t _MaxCount + ); + + _Check_return_ + _DCRTIMP int __cdecl _mbsnicoll_l( + _In_reads_or_z_(_MaxCount) unsigned char const* _Str1, + _In_reads_or_z_(_MaxCount) unsigned char const* _Str2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbsninc( + _In_reads_or_z_(_Count) unsigned char const* _String, + _In_ size_t _Count + ); + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbsninc_l( + _In_reads_or_z_(_Count) unsigned char const* _String, + _In_ size_t _Count, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP errno_t __cdecl _mbsnset_s( + _Inout_updates_z_(_SizeInBytes) unsigned char* _Dst, + _In_ size_t _SizeInBytes, + _In_ unsigned int _Val, + _In_ size_t _MaxCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _mbsnset_s, + _Prepost_z_ unsigned char, _Dest, + _In_ unsigned int, _Val, + _In_ size_t, _MaxCount + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsnset, _mbsnset_s, + _Inout_updates_z_(_Size) unsigned char, + _Inout_updates_z_(_MaxCount), unsigned char, _String, + _In_ unsigned int, _Val, + _In_ size_t, _MaxCount + ) + + _DCRTIMP errno_t __cdecl _mbsnset_s_l( + _Inout_updates_z_(_DstSizeInBytes) unsigned char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_ unsigned int _Val, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3( + errno_t, _mbsnset_s_l, + _Prepost_z_ unsigned char, _Dest, + _In_ unsigned int, _Val, + _In_ size_t, _MaxCount, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_EX( + unsigned char* , __RETURN_POLICY_DST, _DCRTIMP, _mbsnset_l, _mbsnset_s_l, + _Inout_updates_z_(_Size) unsigned char, + _Inout_updates_z_(_MaxCount), unsigned char, _String, + _In_ unsigned int, _Val, + _In_ size_t, _MaxCount, + _In_opt_ _locale_t, _Locale + ) + + _Check_return_ + _DCRTIMP _CONST_RETURN unsigned char* __cdecl _mbspbrk( + _In_z_ unsigned char const* _String, + _In_z_ unsigned char const* _Control + ); + + _Check_return_ + _DCRTIMP _CONST_RETURN unsigned char* __cdecl _mbspbrk_l( + _In_z_ unsigned char const* _String, + _In_z_ unsigned char const* _Control, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP _CONST_RETURN unsigned char* __cdecl _mbsrchr( + _In_z_ unsigned char const* _String, + _In_ unsigned int _C + ); + + _Check_return_ + _DCRTIMP _CONST_RETURN unsigned char* __cdecl _mbsrchr_l( + _In_z_ unsigned char const* _String, + _In_ unsigned int _C, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP unsigned char* __cdecl _mbsrev( + _Inout_z_ unsigned char* _String + ); + + _DCRTIMP unsigned char* __cdecl _mbsrev_l( + _Inout_z_ unsigned char* _String, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP errno_t __cdecl _mbsset_s( + _Inout_updates_z_(_SizeInBytes) unsigned char* _Dst, + _In_ size_t _SizeInBytes, + _In_ unsigned int _Val + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _mbsset_s, + _Prepost_z_ unsigned char, _Dest, + _In_ unsigned int, _Val + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsset, _mbsset_s, + _Inout_updates_z_(_Size) unsigned char, + _Inout_z_, unsigned char, _String, + _In_ unsigned int, _Val + ) + + _DCRTIMP errno_t __cdecl _mbsset_s_l( + _Inout_updates_z_(_DstSizeInBytes) unsigned char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_ unsigned int _Val, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _mbsset_s_l, + _Prepost_z_ unsigned char, _Dest, + _In_ unsigned int, _Val, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsset_l, _mbsset_s_l, + _Inout_updates_z_(_Size) unsigned char, + _Inout_z_, unsigned char, _String, + _In_ unsigned int, _Val, + _In_opt_ _locale_t, _Locale + ) + + _Check_return_ + _DCRTIMP size_t __cdecl _mbsspn( + _In_z_ unsigned char const* _Str, + _In_z_ unsigned char const* _Control + ); + + _Check_return_ + _DCRTIMP size_t __cdecl _mbsspn_l( + _In_z_ unsigned char const* _Str, + _In_z_ unsigned char const* _Control, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbsspnp( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2 + ); + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbsspnp_l( + _In_z_ unsigned char const* _Str1, + _In_z_ unsigned char const* _Str2, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ _Ret_maybenull_ + _DCRTIMP _CONST_RETURN unsigned char* __cdecl _mbsstr( + _In_z_ unsigned char const* _Str, + _In_z_ unsigned char const* _Substr + ); + + _Check_return_ _Ret_maybenull_ + _DCRTIMP _CONST_RETURN unsigned char* __cdecl _mbsstr_l( + _In_z_ unsigned char const* _Str, + _In_z_ unsigned char const* _Substr, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ _CRT_INSECURE_DEPRECATE(_mbstok_s) + _DCRTIMP unsigned char* __cdecl _mbstok( + _Inout_opt_z_ unsigned char* _Str, + _In_z_ unsigned char const* _Delim + ); + + _Check_return_ _CRT_INSECURE_DEPRECATE(_mbstok_s_l) + _DCRTIMP unsigned char* __cdecl _mbstok_l( + _Inout_opt_z_ unsigned char* _Str, + _In_z_ unsigned char const* _Delim, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbstok_s( + _Inout_opt_z_ unsigned char* _Str, + _In_z_ unsigned char const* _Delim, + _Inout_ _Deref_prepost_opt_z_ unsigned char** _Context + ); + + _Check_return_ + _DCRTIMP unsigned char* __cdecl _mbstok_s_l( + _Inout_opt_z_ unsigned char* _Str, + _In_z_ unsigned char const* _Delim, + _Inout_ _Deref_prepost_opt_z_ unsigned char** _Context, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP errno_t __cdecl _mbsupr_s( + _Inout_updates_z_(_SizeInBytes) unsigned char* _Str, + _In_ size_t _SizeInBytes + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _mbsupr_s, + _Inout_updates_z_(_Size) unsigned char, _String + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsupr, + _Inout_z_, unsigned char, _String + ) + + _DCRTIMP errno_t __cdecl _mbsupr_s_l( + _Inout_updates_z_(_SizeInBytes) unsigned char* _Str, + _In_ size_t _SizeInBytes, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _mbsupr_s_l, + unsigned char, _String, + _In_opt_ _locale_t, _Locale + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX( + unsigned char*, __RETURN_POLICY_DST, _DCRTIMP, _mbsupr_l, _mbsupr_s_l, + _Inout_updates_z_(_Size) unsigned char, + _Inout_z_, unsigned char, _String, + _In_opt_ _locale_t, _Locale + ) + + _Check_return_ + _DCRTIMP size_t __cdecl _mbclen( + _In_z_ unsigned char const* _String + ); + + _Check_return_ + _DCRTIMP size_t __cdecl _mbclen_l( + _In_z_ unsigned char const* _String, + _In_opt_ _locale_t _Locale + ); + + _CRT_INSECURE_DEPRECATE(_mbccpy_s) + _DCRTIMP void __cdecl _mbccpy( + _Out_writes_bytes_(2) unsigned char* _Dst, + _In_z_ unsigned char const* _Src + ); + + _CRT_INSECURE_DEPRECATE(_mbccpy_s_l) + _DCRTIMP void __cdecl _mbccpy_l( + _Out_writes_bytes_(2) unsigned char* _Dst, + _In_z_ unsigned char const* _Src, + _In_opt_ _locale_t _Locale + ); + + _DCRTIMP errno_t __cdecl _mbccpy_s( + _Out_writes_z_(_SizeInBytes) unsigned char* _Dst, + _In_ size_t _SizeInBytes, + _Out_opt_ int* _PCopied, + _In_z_ unsigned char const* _Src + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _mbccpy_s, + unsigned char, _Dest, + _Out_opt_ int*, _PCopied, + _In_z_ unsigned char const*, _Source + ) + + _DCRTIMP errno_t __cdecl _mbccpy_s_l( + _Out_writes_bytes_(_DstSizeInBytes) unsigned char* _Dst, + _In_ size_t _DstSizeInBytes, + _Out_opt_ int* _PCopied, + _In_z_ unsigned char const* _Src, + _In_opt_ _locale_t _Locale + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3( + errno_t, _mbccpy_s_l, + unsigned char, _Dest, + _Out_opt_ int*, _PCopied, + _In_z_ unsigned char const*, _Source, + _In_opt_ _locale_t, _Locale + ) + + #define _mbccmp(_cpc1, _cpc2) _mbsncmp((_cpc1), (_cpc2), 1) + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Const-Correct C++ Overloads + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + #ifndef _EXCLUDE_MBSTRING_CONST_CORRECT_OVERLOADS + #ifdef __cplusplus + extern "C++" { + + _Check_return_ + inline unsigned char* __CRTDECL _mbschr( + _In_z_ unsigned char* const _String, + _In_ unsigned int const _Char + ) + { + unsigned char const* const _ConstString = _String; + return const_cast(_mbschr(_ConstString, _Char)); + } + + _Check_return_ + inline unsigned char* __CRTDECL _mbschr_l( + _In_z_ unsigned char* const _String, + _In_ unsigned int const _Char, + _In_opt_ _locale_t const _Locale + ) + { + unsigned char const* const _ConstString = _String; + return const_cast(_mbschr_l(_ConstString, _Char, _Locale)); + } + + _Check_return_ + inline unsigned char* __CRTDECL _mbspbrk( + _In_z_ unsigned char* const _String, + _In_z_ unsigned char const* const _CharSet + ) + { + unsigned char const* const _ConstString = _String; + return const_cast(_mbspbrk(_ConstString, _CharSet)); + } + + _Check_return_ + inline unsigned char* __CRTDECL _mbspbrk_l( + _In_z_ unsigned char* const _String, + _In_z_ unsigned char const* const _CharSet, + _In_opt_ _locale_t const _Locale + ) + { + unsigned char const* const _ConstString = _String; + return const_cast(_mbspbrk_l(_ConstString, _CharSet, _Locale)); + } + + _Check_return_ + inline unsigned char* __CRTDECL _mbsrchr( + _In_z_ unsigned char* const _String, + _In_ unsigned int const _Char + ) + { + unsigned char const* const _ConstString = _String; + return const_cast(_mbsrchr(_ConstString, _Char)); + } + + _Check_return_ + inline unsigned char* __CRTDECL _mbsrchr_l( + _In_z_ unsigned char* const _String, + _In_ unsigned int const _Char, + _In_opt_ _locale_t const _Locale + ) + { + unsigned char const* const _ConstString = _String; + return const_cast(_mbsrchr_l(_ConstString, _Char, _Locale)); + } + + _Check_return_ _Ret_maybenull_ + inline unsigned char* __CRTDECL _mbsstr( + _In_z_ unsigned char* const _String, + _In_z_ unsigned char const* const _Match + ) + { + unsigned char const* const _ConstString = _String; + return const_cast(_mbsstr(_ConstString, _Match)); + } + + _Check_return_ _Ret_maybenull_ + inline unsigned char* __CRTDECL _mbsstr_l( + _In_z_ unsigned char* const _String, + _In_z_ unsigned char const* const _Match, + _In_opt_ _locale_t const _Locale + ) + { + unsigned char const* const _ConstString = _String; + return const_cast(_mbsstr_l(_ConstString, _Match, _Locale)); + } + + } // extern "C++" + #endif // __cplusplus + #endif // _EXCLUDE_MBSTRING_CONST_CORRECT_OVERLOADS + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Multibyte Character Classification and Conversion Functions + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_ _DCRTIMP int __cdecl _ismbcalnum(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcalpha(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcdigit(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcgraph(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbclegal(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbclower(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcprint(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcpunct(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcblank(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcspace(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcupper(_In_ unsigned int _C); + + _Check_return_ _DCRTIMP int __cdecl _ismbcalnum_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcalpha_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcdigit_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcgraph_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbclegal_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbclower_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcprint_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcpunct_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcblank_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcspace_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcupper_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + + _Check_return_ _DCRTIMP unsigned int __cdecl _mbctolower(_In_ unsigned int _Ch); + _Check_return_ _DCRTIMP unsigned int __cdecl _mbctoupper(_In_ unsigned int _Ch); + + _Check_return_ _DCRTIMP unsigned int __cdecl _mbctolower_l(_In_ unsigned int _Ch, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP unsigned int __cdecl _mbctoupper_l(_In_ unsigned int _Ch, _In_opt_ _locale_t _Locale); + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Multibyte Character Kanji Classification and Conversion Functions + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Check_return_ _DCRTIMP int __cdecl _ismbchira (_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbckata (_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcsymbol(_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcl0 (_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcl1 (_In_ unsigned int _C); + _Check_return_ _DCRTIMP int __cdecl _ismbcl2 (_In_ unsigned int _C); + + _Check_return_ _DCRTIMP int __cdecl _ismbchira_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbckata_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcsymbol_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcl0_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcl1_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbcl2_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + + _Check_return_ _DCRTIMP unsigned int __cdecl _mbcjistojms(_In_ unsigned int _C); + _Check_return_ _DCRTIMP unsigned int __cdecl _mbcjmstojis(_In_ unsigned int _C); + _Check_return_ _DCRTIMP unsigned int __cdecl _mbctohira (_In_ unsigned int _C); + _Check_return_ _DCRTIMP unsigned int __cdecl _mbctokata (_In_ unsigned int _C); + + _Check_return_ _DCRTIMP unsigned int __cdecl _mbcjistojms_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP unsigned int __cdecl _mbcjmstojis_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP unsigned int __cdecl _mbctohira_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP unsigned int __cdecl _mbctokata_l (_In_ unsigned int _C, _In_opt_ _locale_t _Locale); + +#endif // _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + + +#if _CRT_FUNCTIONS_REQUIRED + // Lead and trail bytes do not apply correctly to all encodings, including UTF-8. Applications + // are recommended to use the system codepage conversion APIs and not attempt to reverse + // engineer the behavior of any particular encoding. Lead and trail are always FALSE for UTF-8. + _When_(_Ch == 0, _Post_equal_to_(0)) + _Check_return_ _DCRTIMP int __cdecl _ismbblead (_In_ unsigned int _Ch); + _Check_return_ _DCRTIMP int __cdecl _ismbbtrail(_In_ unsigned int _Ch); + + _When_(_Ch == 0, _Post_equal_to_(0)) + _Check_return_ _DCRTIMP int __cdecl _ismbblead_l (_In_ unsigned int _Ch, _In_opt_ _locale_t _Locale); + _Check_return_ _DCRTIMP int __cdecl _ismbbtrail_l(_In_ unsigned int _Ch, _In_opt_ _locale_t _Locale); + + _Check_return_ + _DCRTIMP int __cdecl _ismbslead( + _In_reads_z_(_Pos - _String + 1) unsigned char const* _String, + _In_z_ unsigned char const* _Pos + ); + + _Check_return_ + _DCRTIMP int __cdecl _ismbslead_l( + _In_reads_z_(_Pos - _String + 1) unsigned char const* _String, + _In_z_ unsigned char const* _Pos, + _In_opt_ _locale_t _Locale + ); + + _Check_return_ + _ACRTIMP int __cdecl _ismbstrail( + _In_reads_z_(_Pos - _String + 1) unsigned char const* _String, + _In_z_ unsigned char const* _Pos + ); + + _Check_return_ + _ACRTIMP int __cdecl _ismbstrail_l( + _In_reads_z_(_Pos - _String + 1) unsigned char const* _String, + _In_z_ unsigned char const* _Pos, + _In_opt_ _locale_t _Locale + ); +#endif // _CRT_FUNCTIONS_REQUIRED + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_MBSTRING diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/memory.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/memory.h new file mode 100644 index 0000000000000000000000000000000000000000..315da10663c40e79060c7779a02a0ee96c71f641 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/memory.h @@ -0,0 +1,13 @@ +// +// memory.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The buffer (memory) manipulation library. +// +#pragma once +#ifndef _INC_MEMORY // include guard for 3rd party interop +#define _INC_MEMORY + +#include +#endif // _INC_MEMORY diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/minmax.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/minmax.h new file mode 100644 index 0000000000000000000000000000000000000000..8e788df49780c8cbc2ebd0a6f0c135e4d6164440 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/minmax.h @@ -0,0 +1,28 @@ +// +// minmax.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Familiar min() and max() macros +// +#pragma once +#ifndef _INC_MINMAX +#define _INC_MINMAX + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +#ifndef max + #define max(a ,b) (((a) > (b)) ? (a) : (b)) +#endif + +#ifndef min + #define min(a, b) (((a) < (b)) ? (a) : (b)) +#endif + +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_MINMAX diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/new.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/new.h new file mode 100644 index 0000000000000000000000000000000000000000..c946347ff165930f7181df979b7b2d1f921b61c3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/new.h @@ -0,0 +1,68 @@ +// +// new.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C++ memory allocation library functionality +// +#pragma once +#ifndef _INC_NEW // include guard for 3rd party interop +#define _INC_NEW + +#include +#include + +#ifdef __cplusplus + + #if !defined _MSC_EXTENSIONS && !defined _CRTBLD && !defined _CORECRT_BUILD + #include + #endif + + #if defined _MSC_EXTENSIONS && !defined _CORECRT_BUILD + #include + + namespace std + { + typedef void (__CRTDECL* new_handler)(); + + #ifdef _M_CEE + typedef void (__clrcall* _new_handler_m) (); + #endif + + _CRTIMP2 new_handler __cdecl set_new_handler(_In_opt_ new_handler _NewHandler) throw(); + } + + #ifdef _M_CEE + using ::std::_new_handler_m; + #endif + + using ::std::new_handler; + using ::std::set_new_handler; + #endif + +#endif // __cplusplus + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +typedef int (__CRTDECL* _PNH)(size_t); + +_PNH __cdecl _query_new_handler(void); +_PNH __cdecl _set_new_handler(_In_opt_ _PNH _NewHandler); + +// new mode flag -- when set, makes malloc() behave like new() +_ACRTIMP int __cdecl _query_new_mode(void); +_ACRTIMP int __cdecl _set_new_mode(_In_ int _NewMode); + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS + +#endif // _INC_NEW diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/process.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/process.h new file mode 100644 index 0000000000000000000000000000000000000000..1c8beaadef65b5857aa8107fa0b01b7b851630d5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/process.h @@ -0,0 +1,375 @@ +// +// process.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file declares the process control functionality (e.g., the exec and +// spawn families of functions). +// +#pragma once +#ifndef _INC_PROCESS // include guard for 3rd party interop +#define _INC_PROCESS + +#include +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +// Flag values for the _spawn family of functions +#define _P_WAIT 0 +#define _P_NOWAIT 1 +#define _OLD_P_OVERLAY 2 +#define _P_NOWAITO 3 +#define _P_DETACH 4 +#define _P_OVERLAY 2 + +// Action codes for _cwait(). The action code argument to _cwait() is ignored on +// Win32. The parameter only exists so that we do not break existing code. +#define _WAIT_CHILD 0 +#define _WAIT_GRANDCHILD 1 + + + +#if _CRT_FUNCTIONS_REQUIRED + + _ACRTIMP __declspec(noreturn) void __cdecl exit(_In_ int _Code); + _ACRTIMP __declspec(noreturn) void __cdecl _exit(_In_ int _Code); + _ACRTIMP __declspec(noreturn) void __cdecl _Exit(_In_ int _Code); + _ACRTIMP __declspec(noreturn) void __cdecl quick_exit(_In_ int _Code); + _ACRTIMP __declspec(noreturn) void __cdecl abort(void); + + _DCRTIMP int __cdecl system(_In_opt_z_ char const* _Command); + + _ACRTIMP void __cdecl _cexit(void); + _ACRTIMP void __cdecl _c_exit(void); + + typedef void (__stdcall *_tls_callback_type)(void *, unsigned long, void *); + _ACRTIMP void __cdecl _register_thread_local_exe_atexit_callback(_In_ _tls_callback_type _Callback); + +#endif // _CRT_FUNCTIONS_REQUIRED + +// Declare DLL notification (initialization/termination) routines. The preferred +// method is for the CRT client to define DllMain(), which will automatically be +// called by the DLL entry point defined by the CRT. If the CRT client wants to +// define the DLL entry point, the client entry point must call _CRT_INIT on all +// types of notifications, as the very first thing on attach notifications and as +// the very last thing on detach notifications. +#ifdef _DECL_DLLMAIN + + int __stdcall DllMain( + _In_ void* _DllHandle, + _In_ unsigned long _Reason, + _In_opt_ void* _Reserved + ); + + int __stdcall _CRT_INIT( + _In_ void* _DllHandle, + _In_ unsigned long _Reason, + _In_opt_ void* _Reserved + ); + + extern int (__stdcall* const _pRawDllMain)(void*, unsigned long, void*); + +#endif + + + +typedef void (__cdecl* _beginthread_proc_type )(void*); +typedef unsigned (__stdcall* _beginthreadex_proc_type)(void*); + +_ACRTIMP uintptr_t __cdecl _beginthread( + _In_ _beginthread_proc_type _StartAddress, + _In_ unsigned _StackSize, + _In_opt_ void* _ArgList + ); + +_ACRTIMP void __cdecl _endthread(void); + +_Success_(return != 0) +_ACRTIMP uintptr_t __cdecl _beginthreadex( + _In_opt_ void* _Security, + _In_ unsigned _StackSize, + _In_ _beginthreadex_proc_type _StartAddress, + _In_opt_ void* _ArgList, + _In_ unsigned _InitFlag, + _Out_opt_ unsigned* _ThrdAddr + ); + +_ACRTIMP void __cdecl _endthreadex( + _In_ unsigned _ReturnCode + ); + + + +#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + _ACRTIMP int __cdecl _getpid(void); + + _DCRTIMP intptr_t __cdecl _cwait( + _Out_opt_ int* _TermStat, + _In_ intptr_t _ProcHandle, + _In_ int _Action + ); + + _DCRTIMP intptr_t __cdecl _execl( + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _DCRTIMP intptr_t __cdecl _execle( + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _DCRTIMP intptr_t __cdecl _execlp( + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _DCRTIMP intptr_t __cdecl _execlpe( + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _DCRTIMP intptr_t __cdecl _execv( + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments + ); + + _DCRTIMP intptr_t __cdecl _execve( + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments, + _In_opt_z_ char const* const* _Environment + ); + + _DCRTIMP intptr_t __cdecl _execvp( + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments + ); + + _DCRTIMP intptr_t __cdecl _execvpe( + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments, + _In_opt_z_ char const* const* _Environment + ); + + _DCRTIMP intptr_t __cdecl _spawnl( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _DCRTIMP intptr_t __cdecl _spawnle( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _DCRTIMP intptr_t __cdecl _spawnlp( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _DCRTIMP intptr_t __cdecl _spawnlpe( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _DCRTIMP intptr_t __cdecl _spawnv( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments + ); + + _DCRTIMP intptr_t __cdecl _spawnve( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments, + _In_opt_z_ char const* const* _Environment + ); + + _DCRTIMP intptr_t __cdecl _spawnvp( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments + ); + + _DCRTIMP intptr_t __cdecl _spawnvpe( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments, + _In_opt_z_ char const* const* _Environment + ); + + _CRT_OBSOLETE(LoadLibrary) + _DCRTIMP intptr_t __cdecl _loaddll( + _In_z_ char* _FileName + ); + + _CRT_OBSOLETE(FreeLibrary) + _DCRTIMP int __cdecl _unloaddll( + _In_ intptr_t _Handle + ); + + typedef int (__cdecl* _GetDllProcAddrProcType)(void); + + _CRT_OBSOLETE(GetProcAddress) + _DCRTIMP _GetDllProcAddrProcType __cdecl _getdllprocaddr( + _In_ intptr_t _Handle, + _In_opt_z_ char* _ProcedureName, + _In_ intptr_t _Ordinal + ); + +#endif // _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + #define P_WAIT _P_WAIT + #define P_NOWAIT _P_NOWAIT + #define P_OVERLAY _P_OVERLAY + #define OLD_P_OVERLAY _OLD_P_OVERLAY + #define P_NOWAITO _P_NOWAITO + #define P_DETACH _P_DETACH + #define WAIT_CHILD _WAIT_CHILD + #define WAIT_GRANDCHILD _WAIT_GRANDCHILD + + #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + _CRT_NONSTDC_DEPRECATE(_cwait) + _DCRTIMP intptr_t __cdecl cwait( + _Out_opt_ int* _TermStat, + _In_ intptr_t _ProcHandle, + _In_ int _Action + ); + + _CRT_NONSTDC_DEPRECATE(_execl) + _DCRTIMP intptr_t __cdecl execl( + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _CRT_NONSTDC_DEPRECATE(_execle) + _DCRTIMP intptr_t __cdecl execle( + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _CRT_NONSTDC_DEPRECATE(_execlp) + _DCRTIMP intptr_t __cdecl execlp( + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _CRT_NONSTDC_DEPRECATE(_execlpe) + _DCRTIMP intptr_t __cdecl execlpe( + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _CRT_NONSTDC_DEPRECATE(_execv) + _DCRTIMP intptr_t __cdecl execv( + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments + ); + + _CRT_NONSTDC_DEPRECATE(_execve) + _DCRTIMP intptr_t __cdecl execve( + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments, + _In_opt_z_ char const* const* _Environment + ); + + _CRT_NONSTDC_DEPRECATE(_execvp) + _DCRTIMP intptr_t __cdecl execvp( + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments + ); + + _CRT_NONSTDC_DEPRECATE(_execvpe) + _DCRTIMP intptr_t __cdecl execvpe( + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments, + _In_opt_z_ char const* const* _Environment + ); + + _CRT_NONSTDC_DEPRECATE(_spawnl) + _DCRTIMP intptr_t __cdecl spawnl( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _CRT_NONSTDC_DEPRECATE(_spawnle) + _DCRTIMP intptr_t __cdecl spawnle( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _CRT_NONSTDC_DEPRECATE(_spawnlp) + _DCRTIMP intptr_t __cdecl spawnlp( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _CRT_NONSTDC_DEPRECATE(_spawnlpe) + _DCRTIMP intptr_t __cdecl spawnlpe( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* _Arguments, + ...); + + _CRT_NONSTDC_DEPRECATE(_spawnv) + _DCRTIMP intptr_t __cdecl spawnv( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments); + + _CRT_NONSTDC_DEPRECATE(_spawnve) + _DCRTIMP intptr_t __cdecl spawnve( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments, + _In_opt_z_ char const* const* _Environment + ); + + _CRT_NONSTDC_DEPRECATE(_spawnvp) + _DCRTIMP intptr_t __cdecl spawnvp( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments + ); + + _CRT_NONSTDC_DEPRECATE(_spawnvpe) + _DCRTIMP intptr_t __cdecl spawnvpe( + _In_ int _Mode, + _In_z_ char const* _FileName, + _In_z_ char const* const* _Arguments, + _In_opt_z_ char const* const* _Environment + ); + + _CRT_NONSTDC_DEPRECATE(_getpid) + _ACRTIMP int __cdecl getpid(void); + + #endif // _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + +#endif // _CRT_INTERNAL_NONSTDC_NAMES + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_PROCESS diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/safeint.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/safeint.h new file mode 100644 index 0000000000000000000000000000000000000000..5b11533c6ae91fa8dbf9b3b74a4b7df460dff5d5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/safeint.h @@ -0,0 +1,1665 @@ +/*** +*safeint.h - SafeInt class and free-standing functions used to prevent arithmetic overflows +* +* Copyright (c) Microsoft Corporation. All rights reserved. +* +*Purpose: +* +* The SafeInt class is designed to have as low an overhead as possible +* while still ensuring that all integer operations are conducted safely. +* Nearly every operator has been overloaded, with a very few exceptions. +* +* A usability-safety trade-off has been made to help ensure safety. This +* requires that every operation return either a SafeInt or a bool. If we +* allowed an operator to return a base integer type T, then the following +* can happen: +* +* char i = SafeInt(32) * 2 + SafeInt(16) * 4; +* +* The * operators take precedence, get overloaded, return a char, and then +* you have: +* +* char i = (char)64 + (char)64; //overflow! +* +* This situation would mean that safety would depend on usage, which isn't +* acceptable. +* +* One key operator that is missing is an implicit cast to type T. The reason for +* this is that if there is an implicit cast operator, then we end up with +* an ambiguous compile-time precedence. Because of this amiguity, there +* are two methods that are provided: +* +* Casting operators for every native integer type +* +* SafeInt::Ptr() - returns the address of the internal integer +* +* The SafeInt class should be used in any circumstances where ensuring +* integrity of the calculations is more important than performance. See Performance +* Notes below for additional information. +* +* Many of the conditionals will optimize out or be inlined for a release +* build (especially with /Ox), but it does have significantly more overhead, +* especially for signed numbers. If you do not _require_ negative numbers, use +* unsigned integer types - certain types of problems cannot occur, and this class +* performs most efficiently. +* +* Here's an example of when the class should ideally be used - +* +* void* AllocateMemForStructs(int StructSize, int HowMany) +* { +* SafeInt s(StructSize); +* +* s *= HowMany; +* +* return malloc(s); +* +* } +* +* Here's when it should NOT be used: +* +* void foo() +* { +* int i; +* +* for(i = 0; i < 0xffff; i++) +* .... +* } +* +* Error handling - a SafeInt class will throw exceptions if something +* objectionable happens. The exceptions are SafeIntException classes, +* which contain an enum as a code. +* +* Typical usage might be: +* +* bool foo() +* { +* SafeInt s; //note that s == 0 unless set +* +* try{ +* s *= 23; +* .... +* } +* catch(SafeIntException err) +* { +* //handle errors here +* } +* } +* +* SafeInt accepts an error policy as an optional template parameter. +* We provide two error policy along with SafeInt: SafeIntErrorPolicy_SafeIntException, which +* throws SafeIntException in case of error, and SafeIntErrorPolicy_InvalidParameter, which +* calls _invalid_parameter to terminate the program. +* +* You can replace the error policy class with any class you like. This is accomplished by: +* 1) Create a class that has the following interface: +* +* struct YourSafeIntErrorPolicy +* { +* static __declspec(noreturn) void __stdcall SafeIntOnOverflow() +* { +* throw YourException( YourSafeIntArithmeticOverflowError ); +* // or do something else which will terminate the program +* } +* +* static __declspec(noreturn) void __stdcall SafeIntOnDivZero() +* { +* throw YourException( YourSafeIntDivideByZeroError ); +* // or do something else which will terminate the program +* } +* }; +* +* Note that you don't have to throw C++ exceptions, you can throw Win32 exceptions, or do +* anything you like, just don't return from the call back into the code. +* +* 2) Either explicitly declare SafeInts like so: +* SafeInt< int, YourSafeIntErrorPolicy > si; +* or, before including SafeInt: +* #define _SAFEINT_DEFAULT_ERROR_POLICY ::YourSafeIntErrorPolicy +* +* Performance: +* +* Due to the highly nested nature of this class, you can expect relatively poor +* performance in unoptimized code. In tests of optimized code vs. correct inline checks +* in native code, this class has been found to take approximately 8% more CPU time (this varies), +* most of which is due to exception handling. +* +* Binary Operators: +* +* All of the binary operators have certain assumptions built into the class design. +* This is to ensure correctness. Notes on each class of operator follow: +* +* Arithmetic Operators (*,/,+,-,%) +* There are three possible variants: +* SafeInt< T, E > op SafeInt< T, E > +* SafeInt< T, E > op U +* U op SafeInt< T, E > +* +* The SafeInt< T, E > op SafeInt< U, E > variant is explicitly not supported, and if you try to do +* this the compiler with throw the following error: +* +* error C2593: 'operator *' is ambiguous +* +* This is because the arithmetic operators are required to return a SafeInt of some type. +* The compiler cannot know whether you'd prefer to get a type T or a type U returned. If +* you need to do this, you need to extract the value contained within one of the two using +* the casting operator. For example: +* +* SafeInt< T, E > t, result; +* SafeInt< U, E > u; +* +* result = t * (U)u; +* +* Comparison Operators: +* +* Because each of these operators return type bool, mixing SafeInts of differing types is +* allowed. +* +* Shift Operators: +* +* Shift operators always return the type on the left hand side of the operator. Mixed type +* operations are allowed because the return type is always known. +* +* Boolean Operators: +* +* Like comparison operators, these overloads always return type bool, and mixed-type SafeInts +* are allowed. Additionally, specific overloads exist for type bool on both sides of the +* operator. +* +* Binary Operators: +* +* Mixed-type operations are discouraged, however some provision has been made in order to +* enable things like: +* +* SafeInt c = 2; +* +* if(c & 0x02) +* ... +* +* The "0x02" is actually an int, and it needs to work. +* In the case of binary operations on integers smaller than 32-bit, or of mixed type, corner +* cases do exist where you could get unexpected results. In any case where SafeInt returns a different +* result than the underlying operator, it will call _ASSERTE(). You should examine your code and cast things +* properly so that you are not programming with side effects. +* +* Comparison Operators and ANSI Conversions: +* +* The comparison operator behavior in this class varies from the ANSI definition. +* As an example, consider the following: +* +* unsigned int l = 0xffffffff; +* char c = -1; +* +* if(c == l) +* printf("Why is -1 equal to 4 billion???\n"); +* +* The problem here is that c gets cast to an int, now has a value of 0xffffffff, and then gets +* cast again to an unsigned int, losing the true value. This behavior is despite the fact that +* an __int64 exists, and the following code will yield a different (and intuitively correct) +* answer: +* +* if((__int64)c == (__int64)l)) +* printf("Why is -1 equal to 4 billion???\n"); +* else +* printf("Why doesn't the compiler upcast to 64-bits when needed?\n"); +* +* Note that combinations with smaller integers won't display the problem - if you +* changed "unsigned int" above to "unsigned short", you'd get the right answer. +* +* If you prefer to retain the ANSI standard behavior insert, before including safeint.h: +* +* #define _SAFEINT_ANSI_CONVERSIONS 1 +* +* into your source. Behavior differences occur in the following cases: +* 8, 16, and 32-bit signed int, unsigned 32-bit int +* any signed int, unsigned 64-bit int +* Note - the signed int must be negative to show the problem +* +****/ + +#pragma once + +#if !defined(RC_INVOKED) + +#include +#include + +// Disable warnings hit under /Wall: +// C4514: unreferenced inline function has been removed (/Wall) +// C4710: function not inlined (/Wall) +#pragma warning(push) +#pragma warning(disable: 4514) +#pragma warning(disable: 4710) + +#if !defined (_SAFEINT_DEFAULT_ERROR_POLICY) +#define _SAFEINT_DEFAULT_ERROR_POLICY SafeIntErrorPolicy_SafeIntException +#endif /* !defined (_SAFEINT_DEFAULT_ERROR_POLICY) */ + +#if !defined (_SAFEINT_SHIFT_ASSERT) +#define _SAFEINT_SHIFT_ASSERT(x) _ASSERTE(x) +#endif /* !defined (_SAFEINT_SHIFT_ASSERT) */ + +#if !defined (_SAFEINT_BINARY_ASSERT) +#define _SAFEINT_BINARY_ASSERT(x) _ASSERTE(x) +#endif /* !defined (_SAFEINT_BINARY_ASSERT) */ + +#if !defined (_SAFEINT_EXCEPTION_ASSERT) +#define _SAFEINT_EXCEPTION_ASSERT() +#endif /* !defined (_SAFEINT_EXCEPTION_ASSERT) */ + +// by default, SafeInt will accept negation of an unsigned int; +// if you wish to disable it or assert, you can define the following +// macro to be a static assert or a runtime assert +#if !defined (_SAFEINT_UNSIGNED_NEGATION_BEHAVIOR) +#define _SAFEINT_UNSIGNED_NEGATION_BEHAVIOR() +#endif /* !defined (_SAFEINT_UNSIGNED_NEGATION_BEHAVIOR) */ + +// See above "Comparison Operators and ANSI Conversions" for an explanation +// of _SAFEINT_USE_ANSI_CONVERSIONS +#if !defined (_SAFEINT_USE_ANSI_CONVERSIONS) +#define _SAFEINT_USE_ANSI_CONVERSIONS 0 +#endif /* !defined (_SAFEINT_USE_ANSI_CONVERSIONS) */ + +#pragma pack(push, _CRT_PACKING) + +namespace msl +{ + +namespace utilities +{ + +enum SafeIntError +{ + SafeIntNoError = 0, + SafeIntArithmeticOverflow, + SafeIntDivideByZero +}; + +} // namespace utilities + +} // namespace msl + +#include "safeint_internal.h" + +namespace msl +{ + +namespace utilities +{ + +class SafeIntException +{ +public: + SafeIntException() { m_code = SafeIntNoError; } + SafeIntException( SafeIntError code ) + { + m_code = code; + } + SafeIntError m_code; +}; + +struct SafeIntErrorPolicy_SafeIntException +{ + static __declspec(noreturn) void SafeIntOnOverflow() + { + _SAFEINT_EXCEPTION_ASSERT(); + throw SafeIntException( SafeIntArithmeticOverflow ); + } + + static __declspec(noreturn) void SafeIntOnDivZero() + { + _SAFEINT_EXCEPTION_ASSERT(); + throw SafeIntException( SafeIntDivideByZero ); + } +}; + +struct SafeIntErrorPolicy_InvalidParameter +{ + static __declspec(noreturn) void SafeIntOnOverflow() + { + _SAFEINT_EXCEPTION_ASSERT(); + _CRT_SECURE_INVALID_PARAMETER("SafeInt Arithmetic Overflow"); + } + + static __declspec(noreturn) void SafeIntOnDivZero() + { + _SAFEINT_EXCEPTION_ASSERT(); + _CRT_SECURE_INVALID_PARAMETER("SafeInt Divide By Zero"); + } +}; + +// Free-standing functions that can be used where you only need to check one operation +// non-class helper function so that you can check for a cast's validity +// and handle errors how you like + +template < typename T, typename U > +inline bool SafeCast( const T From, U& To ) throw() +{ + return (details::SafeCastHelper< U, T, + details::SafeIntErrorPolicy_NoThrow >::Cast( From, To ) == SafeIntNoError); +} + +template < typename T, typename U > +inline bool SafeEquals( const T t, const U u ) throw() +{ + return details::EqualityTest< T, U >::IsEquals( t, u ); +} + +template < typename T, typename U > +inline bool SafeNotEquals( const T t, const U u ) throw() +{ + return !details::EqualityTest< T, U >::IsEquals( t, u ); +} + +template < typename T, typename U > +inline bool SafeGreaterThan( const T t, const U u ) throw() +{ + return details::GreaterThanTest< T, U >::GreaterThan( t, u ); +} + +template < typename T, typename U > +inline bool SafeGreaterThanEquals( const T t, const U u ) throw() +{ + return !details::GreaterThanTest< U, T >::GreaterThan( u, t ); +} + +template < typename T, typename U > +inline bool SafeLessThan( const T t, const U u ) throw() +{ + return details::GreaterThanTest< U, T >::GreaterThan( u, t ); +} + +template < typename T, typename U > +inline bool SafeLessThanEquals( const T t, const U u ) throw() +{ + return !details::GreaterThanTest< T, U >::GreaterThan( t, u ); +} + +template < typename T, typename U > +inline bool SafeModulus( const T& t, const U& u, T& result ) throw() +{ + return ( details::ModulusHelper< T, U, details::SafeIntErrorPolicy_NoThrow >::Modulus( t, u, result ) == SafeIntNoError ); +} + +template < typename T, typename U > +inline bool SafeMultiply( T t, U u, T& result ) throw() +{ + return ( details::MultiplicationHelper< T, U, + details::SafeIntErrorPolicy_NoThrow >::Multiply( t, u, result ) == SafeIntNoError ); +} + +template < typename T, typename U > +inline bool SafeDivide( T t, U u, T& result ) throw() +{ + return ( details::DivisionHelper< T, U, + details::SafeIntErrorPolicy_NoThrow >::Divide( t, u, result ) == SafeIntNoError ); +} + +template < typename T, typename U > +inline bool SafeAdd( T t, U u, T& result ) throw() +{ + return ( details::AdditionHelper< T, U, + details::SafeIntErrorPolicy_NoThrow >::Addition( t, u, result ) == SafeIntNoError ); +} + +template < typename T, typename U > +inline bool SafeSubtract( T t, U u, T& result ) throw() +{ + return ( details::SubtractionHelper< T, U, + details::SafeIntErrorPolicy_NoThrow >::Subtract( t, u, result ) == SafeIntNoError ); +} + +// SafeInt class +template < typename T, typename E = _SAFEINT_DEFAULT_ERROR_POLICY > +class SafeInt +{ +public: + SafeInt() throw() + { + static_assert( details::NumericType< T >::isInt , "SafeInt: T needs to be an integer type" ); + m_int = 0; + } + + // Having a constructor for every type of int + // avoids having the compiler evade our checks when doing implicit casts - + // e.g., SafeInt s = 0x7fffffff; + SafeInt( const T& i ) throw() + { + static_assert( details::NumericType< T >::isInt , "SafeInt: T needs to be an integer type" ); + //always safe + m_int = i; + } + + // provide explicit boolean converter + SafeInt( bool b ) throw() + { + static_assert( details::NumericType< T >::isInt , "SafeInt: T needs to be an integer type" ); + m_int = b ? 1 : 0; + } + + template < typename U > + SafeInt(const SafeInt< U, E >& u) + { + static_assert( details::NumericType< T >::isInt , "SafeInt: T needs to be an integer type" ); + *this = SafeInt< T, E >( (U)u ); + } + + template < typename U > + SafeInt( const U& i ) + { + static_assert( details::NumericType< T >::isInt , "SafeInt: T needs to be an integer type" ); + // SafeCast will throw exceptions if i won't fit in type T + details::SafeCastHelper< T, U, E >::Cast( i, m_int ); + } + + // now start overloading operators + // assignment operator + // constructors exist for all int types and will ensure safety + + template < typename U > + SafeInt< T, E >& operator =( const U& rhs ) + { + // use constructor to test size + // constructor is optimized to do minimal checking based + // on whether T can contain U + // note - do not change this + *this = SafeInt< T, E >( rhs ); + return *this; + } + + SafeInt< T, E >& operator =( const T& rhs ) throw() + { + m_int = rhs; + return *this; + } + + template < typename U > + SafeInt< T, E >& operator =( const SafeInt< U, E >& rhs ) + { + details::SafeCastHelper< T, U, E >::Cast( rhs.Ref(), m_int ); + return *this; + } + + SafeInt< T, E >& operator =( const SafeInt< T, E >& rhs ) throw() + { + m_int = rhs.m_int; + return *this; + } + + // Casting operators + + operator bool() const throw() + { + return !!m_int; + } + + operator char() const + { + char val; + details::SafeCastHelper< char, T, E >::Cast( m_int, val ); + return val; + } + + operator signed char() const + { + signed char val; + details::SafeCastHelper< signed char, T, E >::Cast( m_int, val ); + return val; + } + + operator unsigned char() const + { + unsigned char val; + details::SafeCastHelper< unsigned char, T, E >::Cast( m_int, val ); + return val; + } + + operator __int16() const + { + __int16 val; + details::SafeCastHelper< __int16, T, E >::Cast( m_int, val ); + return val; + } + + operator unsigned __int16() const + { + unsigned __int16 val; + details::SafeCastHelper< unsigned __int16, T, E >::Cast( m_int, val ); + return val; + } + + operator __int32() const + { + __int32 val; + details::SafeCastHelper< __int32, T, E >::Cast( m_int, val ); + return val; + } + + operator unsigned __int32() const + { + unsigned __int32 val; + details::SafeCastHelper< unsigned __int32, T, E >::Cast( m_int, val ); + return val; + } + + // The compiler knows that int == __int32 + // but not that long == __int32 + operator long() const + { + long val; + details::SafeCastHelper< long, T, E >::Cast( m_int, val ); + return val; + } + + operator unsigned long() const + { + unsigned long val; + details::SafeCastHelper< unsigned long, T, E >::Cast( m_int, val ); + return val; + } + + operator __int64() const + { + __int64 val; + details::SafeCastHelper< __int64, T, E >::Cast( m_int, val ); + return val; + } + + operator unsigned __int64() const + { + unsigned __int64 val; + details::SafeCastHelper< unsigned __int64, T, E >::Cast( m_int, val ); + return val; + } + +#ifdef _NATIVE_WCHAR_T_DEFINED + operator wchar_t() const + { + unsigned __int16 val; + details::SafeCastHelper< unsigned __int16, T, E >::Cast( m_int, val ); + return val; + } +#endif /* _NATIVE_WCHAR_T_DEFINED */ + + // If you need a pointer to the data + // this could be dangerous, but allows you to correctly pass + // instances of this class to APIs that take a pointer to an integer + // also see overloaded address-of operator below + T* Ptr() throw() { return &m_int; } + const T* Ptr() const throw() { return &m_int; } + const T& Ref() const throw() { return m_int; } + + // Unary operators + bool operator !() const throw() { return (!m_int) ? true : false; } + + // operator + (unary) + // note - normally, the '+' and '-' operators will upcast to a signed int + // for T < 32 bits. This class changes behavior to preserve type + const SafeInt< T, E >& operator +() const throw() { return *this; }; + + //unary - + SafeInt< T, E > operator -() const + { + // Note - unsigned still performs the bitwise manipulation + // will warn at level 2 or higher if the value is 32-bit or larger + T tmp; + details::NegationHelper< T, E, details::IntTraits< T >::isSigned >::Negative( m_int, tmp ); + return SafeInt< T, E >( tmp ); + } + + // prefix increment operator + SafeInt< T, E >& operator ++() + { + if( m_int != details::IntTraits< T >::maxInt ) + { + ++m_int; + return *this; + } + E::SafeIntOnOverflow(); + } + + // prefix decrement operator + SafeInt< T, E >& operator --() + { + if( m_int != details::IntTraits< T >::minInt ) + { + --m_int; + return *this; + } + E::SafeIntOnOverflow(); + } + + // note that postfix operators have inherently worse perf + // characteristics + + // postfix increment operator + SafeInt< T, E > operator ++( int ) // dummy arg to comply with spec + { + if( m_int != details::IntTraits< T >::maxInt ) + { + SafeInt< T, E > tmp( m_int ); + + m_int++; + return tmp; + } + E::SafeIntOnOverflow(); + } + + // postfix decrement operator + SafeInt< T, E > operator --( int ) // dummy arg to comply with spec + { + if( m_int != details::IntTraits< T >::minInt ) + { + SafeInt< T, E > tmp( m_int ); + m_int--; + return tmp; + } + E::SafeIntOnOverflow(); + } + + // One's complement + // Note - this operator will normally change size to an int + // cast in return improves perf and maintains type + SafeInt< T, E > operator ~() const throw() { return SafeInt< T, E >( (T)~m_int ); } + + // Binary operators + // + // arithmetic binary operators + // % modulus + // * multiplication + // / division + // + addition + // - subtraction + // + // For each of the arithmetic operators, you will need to + // use them as follows: + // + // SafeInt c = 2; + // SafeInt i = 3; + // + // SafeInt i2 = i op (char)c; + // OR + // SafeInt i2 = (int)i op c; + // + // The base problem is that if the lhs and rhs inputs are different SafeInt types + // it is not possible in this implementation to determine what type of SafeInt + // should be returned. You have to let the class know which of the two inputs + // need to be the return type by forcing the other value to the base integer type. + // + // Note - as per feedback from Scott Meyers, I'm exploring how to get around this. + // 3.0 update - I'm still thinking about this. It can be done with template metaprogramming, + // but it is tricky, and there's a perf vs. correctness tradeoff where the right answer + // is situational. + // + // The case of: + // + // SafeInt< T, E > i, j, k; + // i = j op k; + // + // works just fine and no unboxing is needed because the return type is not ambiguous. + + // Modulus + // Modulus has some convenient properties - + // first, the magnitude of the return can never be + // larger than the lhs operand, and it must be the same sign + // as well. It does, however, suffer from the same promotion + // problems as comparisons, division and other operations + template < typename U > + SafeInt< T, E > operator %( U rhs ) const + { + T result; + details::ModulusHelper< T, U, E >::Modulus( m_int, rhs, result ); + return SafeInt< T, E >( result ); + } + + SafeInt< T, E > operator %( SafeInt< T, E > rhs ) const + { + T result; + details::ModulusHelper< T, T, E >::Modulus( m_int, rhs, result ); + return SafeInt< T, E >( result ); + } + + // Modulus assignment + template < typename U > + SafeInt< T, E >& operator %=( U rhs ) + { + details::ModulusHelper< T, U, E >::Modulus( m_int, rhs, m_int ); + return *this; + } + + template < typename U > + SafeInt< T, E >& operator %=( SafeInt< U, E > rhs ) + { + details::ModulusHelper< T, U, E >::Modulus( m_int, (U)rhs, m_int ); + return *this; + } + + // Multiplication + template < typename U > + SafeInt< T, E > operator *( U rhs ) const + { + T ret( 0 ); + details::MultiplicationHelper< T, U, E >::Multiply( m_int, rhs, ret ); + return SafeInt< T, E >( ret ); + } + + SafeInt< T, E > operator *( SafeInt< T, E > rhs ) const + { + T ret( 0 ); + details::MultiplicationHelper< T, T, E >::Multiply( m_int, (T)rhs, ret ); + return SafeInt< T, E >( ret ); + } + + // Multiplication assignment + SafeInt< T, E >& operator *=( SafeInt< T, E > rhs ) + { + details::MultiplicationHelper< T, T, E >::Multiply( m_int, (T)rhs, m_int ); + return *this; + } + + template < typename U > + SafeInt< T, E >& operator *=( U rhs ) + { + details::MultiplicationHelper< T, U, E >::Multiply( m_int, rhs, m_int ); + return *this; + } + + template < typename U > + SafeInt< T, E >& operator *=( SafeInt< U, E > rhs ) + { + details::MultiplicationHelper< T, U, E >::Multiply( m_int, rhs.Ref(), m_int ); + return *this; + } + + // Division + template < typename U > + SafeInt< T, E > operator /( U rhs ) const + { + T ret( 0 ); + details::DivisionHelper< T, U, E >::Divide( m_int, rhs, ret ); + return SafeInt< T, E >( ret ); + } + + SafeInt< T, E > operator /( SafeInt< T, E > rhs ) const + { + T ret( 0 ); + details::DivisionHelper< T, T, E >::Divide( m_int, (T)rhs, ret ); + return SafeInt< T, E >( ret ); + } + + // Division assignment + SafeInt< T, E >& operator /=( SafeInt< T, E > i ) + { + details::DivisionHelper< T, T, E >::Divide( m_int, (T)i, m_int ); + return *this; + } + + template < typename U > SafeInt< T, E >& operator /=( U i ) + { + details::DivisionHelper< T, U, E >::Divide( m_int, i, m_int ); + return *this; + } + + template < typename U > SafeInt< T, E >& operator /=( SafeInt< U, E > i ) + { + details::DivisionHelper< T, U, E >::Divide( m_int, (U)i, m_int ); + return *this; + } + + // For addition and subtraction + + // Addition + SafeInt< T, E > operator +( SafeInt< T, E > rhs ) const + { + T ret( 0 ); + details::AdditionHelper< T, T, E >::Addition( m_int, (T)rhs, ret ); + return SafeInt< T, E >( ret ); + } + + template < typename U > + SafeInt< T, E > operator +( U rhs ) const + { + T ret( 0 ); + details::AdditionHelper< T, U, E >::Addition( m_int, rhs, ret ); + return SafeInt< T, E >( ret ); + } + + //addition assignment + SafeInt< T, E >& operator +=( SafeInt< T, E > rhs ) + { + details::AdditionHelper< T, T, E >::Addition( m_int, (T)rhs, m_int ); + return *this; + } + + template < typename U > + SafeInt< T, E >& operator +=( U rhs ) + { + details::AdditionHelper< T, U, E >::Addition( m_int, rhs, m_int ); + return *this; + } + + template < typename U > + SafeInt< T, E >& operator +=( SafeInt< U, E > rhs ) + { + details::AdditionHelper< T, U, E >::Addition( m_int, (U)rhs, m_int ); + return *this; + } + + // Subtraction + template < typename U > + SafeInt< T, E > operator -( U rhs ) const + { + T ret( 0 ); + details::SubtractionHelper< T, U, E >::Subtract( m_int, rhs, ret ); + return SafeInt< T, E >( ret ); + } + + SafeInt< T, E > operator -(SafeInt< T, E > rhs) const + { + T ret( 0 ); + details::SubtractionHelper< T, T, E >::Subtract( m_int, (T)rhs, ret ); + return SafeInt< T, E >( ret ); + } + + // Subtraction assignment + SafeInt< T, E >& operator -=( SafeInt< T, E > rhs ) + { + details::SubtractionHelper< T, T, E >::Subtract( m_int, (T)rhs, m_int ); + return *this; + } + + template < typename U > + SafeInt< T, E >& operator -=( U rhs ) + { + details::SubtractionHelper< T, U, E >::Subtract( m_int, rhs, m_int ); + return *this; + } + + template < typename U > + SafeInt< T, E >& operator -=( SafeInt< U, E > rhs ) + { + details::SubtractionHelper< T, U, E >::Subtract( m_int, (U)rhs, m_int ); + return *this; + } + + // Comparison operators + // Additional overloads defined outside the class + // to allow for cases where the SafeInt is the rhs value + + // Less than + template < typename U > + bool operator <( U rhs ) const throw() + { + return details::GreaterThanTest< U, T >::GreaterThan( rhs, m_int ); + } + + bool operator <( SafeInt< T, E > rhs ) const throw() + { + return m_int < (T)rhs; + } + + // Greater than or eq. + template < typename U > + bool operator >=( U rhs ) const throw() + { + return !details::GreaterThanTest< U, T >::GreaterThan( rhs, m_int ); + } + + bool operator >=( SafeInt< T, E > rhs ) const throw() + { + return m_int >= (T)rhs; + } + + // Greater than + template < typename U > + bool operator >( U rhs ) const throw() + { + return details::GreaterThanTest< T, U >::GreaterThan( m_int, rhs ); + } + + bool operator >( SafeInt< T, E > rhs ) const throw() + { + return m_int > (T)rhs; + } + + // Less than or eq. + template < typename U > + bool operator <=( U rhs ) const throw() + { + return !details::GreaterThanTest< T, U >::GreaterThan( m_int, rhs ); + } + + bool operator <=( SafeInt< T, E > rhs ) const throw() + { + return m_int <= (T)rhs; + } + + // Equality + template < typename U > + bool operator ==( U rhs ) const throw() + { + return details::EqualityTest< T, U >::IsEquals( m_int, rhs ); + } + + // Need an explicit override for type bool + bool operator ==( bool rhs ) const throw() + { + return ( m_int == 0 ? false : true ) == rhs; + } + + bool operator ==( SafeInt< T, E > rhs ) const throw() { return m_int == (T)rhs; } + + // != operators + template < typename U > + bool operator !=( U rhs ) const throw() + { + return !details::EqualityTest< T, U >::IsEquals( m_int, rhs ); + } + + bool operator !=( bool b ) const throw() + { + return ( m_int == 0 ? false : true ) != b; + } + + bool operator !=( SafeInt< T, E > rhs ) const throw() { return m_int != (T)rhs; } + + // Shift operators + // Note - shift operators ALWAYS return the same type as the lhs + // specific version for SafeInt< T, E > not needed - + // code path is exactly the same as for SafeInt< U, E > as rhs + + // Left shift + // Also, shifting > bitcount is undefined - trap in debug (check _SAFEINT_SHIFT_ASSERT) + + template < typename U > + SafeInt< T, E > operator <<( U bits ) const throw() + { + _SAFEINT_SHIFT_ASSERT( !details::IntTraits< U >::isSigned || bits >= 0 ); + _SAFEINT_SHIFT_ASSERT( bits < (int)details::IntTraits< T >::bitCount ); + + return SafeInt< T, E >( (T)( m_int << bits ) ); + } + + template < typename U > + SafeInt< T, E > operator <<( SafeInt< U, E > bits ) const throw() + { + _SAFEINT_SHIFT_ASSERT( !details::IntTraits< U >::isSigned || (U)bits >= 0 ); + _SAFEINT_SHIFT_ASSERT( (U)bits < (int)details::IntTraits< T >::bitCount ); + + return SafeInt< T, E >( (T)( m_int << (U)bits ) ); + } + + // Left shift assignment + + template < typename U > + SafeInt< T, E >& operator <<=( U bits ) throw() + { + _SAFEINT_SHIFT_ASSERT( !details::IntTraits< U >::isSigned || bits >= 0 ); + _SAFEINT_SHIFT_ASSERT( bits < (int)details::IntTraits< T >::bitCount ); + + m_int <<= bits; + return *this; + } + + template < typename U > + SafeInt< T, E >& operator <<=( SafeInt< U, E > bits ) throw() + { + _SAFEINT_SHIFT_ASSERT( !details::IntTraits< U >::isSigned || (U)bits >= 0 ); + _SAFEINT_SHIFT_ASSERT( (U)bits < (int)details::IntTraits< T >::bitCount ); + + m_int <<= (U)bits; + return *this; + } + + // Right shift + template < typename U > + SafeInt< T, E > operator >>( U bits ) const throw() + { + _SAFEINT_SHIFT_ASSERT( !details::IntTraits< U >::isSigned || bits >= 0 ); + _SAFEINT_SHIFT_ASSERT( bits < (int)details::IntTraits< T >::bitCount ); + + return SafeInt< T, E >( (T)( m_int >> bits ) ); + } + + template < typename U > + SafeInt< T, E > operator >>( SafeInt< U, E > bits ) const throw() + { + _SAFEINT_SHIFT_ASSERT( !details::IntTraits< U >::isSigned || (U)bits >= 0 ); + _SAFEINT_SHIFT_ASSERT( bits < (int)details::IntTraits< T >::bitCount ); + + return SafeInt< T, E >( (T)(m_int >> (U)bits) ); + } + + // Right shift assignment + template < typename U > + SafeInt< T, E >& operator >>=( U bits ) throw() + { + _SAFEINT_SHIFT_ASSERT( !details::IntTraits< U >::isSigned || bits >= 0 ); + _SAFEINT_SHIFT_ASSERT( bits < (int)details::IntTraits< T >::bitCount ); + + m_int >>= bits; + return *this; + } + + template < typename U > + SafeInt< T, E >& operator >>=( SafeInt< U, E > bits ) throw() + { + _SAFEINT_SHIFT_ASSERT( !details::IntTraits< U >::isSigned || (U)bits >= 0 ); + _SAFEINT_SHIFT_ASSERT( (U)bits < (int)details::IntTraits< T >::bitCount ); + + m_int >>= (U)bits; + return *this; + } + + // Bitwise operators + // This only makes sense if we're dealing with the same type and size + // demand a type T, or something that fits into a type T + + // Bitwise & + SafeInt< T, E > operator &( SafeInt< T, E > rhs ) const throw() + { + return SafeInt< T, E >( m_int & (T)rhs ); + } + + template < typename U > + SafeInt< T, E > operator &( U rhs ) const throw() + { + // we want to avoid setting bits by surprise + // consider the case of lhs = int, value = 0xffffffff + // rhs = char, value = 0xff + // + // programmer intent is to get only the lower 8 bits + // normal behavior is to upcast both sides to an int + // which then sign extends rhs, setting all the bits + + // If you land in the assert, this is because the bitwise operator + // was causing unexpected behavior. Fix is to properly cast your inputs + // so that it works like you meant, not unexpectedly + + return SafeInt< T, E >( details::BinaryAndHelper< T, U >::And( m_int, rhs ) ); + } + + // Bitwise & assignment + SafeInt< T, E >& operator &=( SafeInt< T, E > rhs ) throw() + { + m_int &= (T)rhs; + return *this; + } + + template < typename U > + SafeInt< T, E >& operator &=( U rhs ) throw() + { + m_int = details::BinaryAndHelper< T, U >::And( m_int, rhs ); + return *this; + } + + template < typename U > + SafeInt< T, E >& operator &=( SafeInt< U, E > rhs ) throw() + { + m_int = details::BinaryAndHelper< T, U >::And( m_int, (U)rhs ); + return *this; + } + + // XOR + SafeInt< T, E > operator ^( SafeInt< T, E > rhs ) const throw() + { + return SafeInt< T, E >( (T)( m_int ^ (T)rhs ) ); + } + + template < typename U > + SafeInt< T, E > operator ^( U rhs ) const throw() + { + // If you land in the assert, this is because the bitwise operator + // was causing unexpected behavior. Fix is to properly cast your inputs + // so that it works like you meant, not unexpectedly + + return SafeInt< T, E >( details::BinaryXorHelper< T, U >::Xor( m_int, rhs ) ); + } + + // XOR assignment + SafeInt< T, E >& operator ^=( SafeInt< T, E > rhs ) throw() + { + m_int ^= (T)rhs; + return *this; + } + + template < typename U > + SafeInt< T, E >& operator ^=( U rhs ) throw() + { + m_int = details::BinaryXorHelper< T, U >::Xor( m_int, rhs ); + return *this; + } + + template < typename U > + SafeInt< T, E >& operator ^=( SafeInt< U, E > rhs ) throw() + { + m_int = details::BinaryXorHelper< T, U >::Xor( m_int, (U)rhs ); + return *this; + } + + // bitwise OR + SafeInt< T, E > operator |( SafeInt< T, E > rhs ) const throw() + { + return SafeInt< T, E >( (T)( m_int | (T)rhs ) ); + } + + template < typename U > + SafeInt< T, E > operator |( U rhs ) const throw() + { + return SafeInt< T, E >( details::BinaryOrHelper< T, U >::Or( m_int, rhs ) ); + } + + // bitwise OR assignment + SafeInt< T, E >& operator |=( SafeInt< T, E > rhs ) throw() + { + m_int |= (T)rhs; + return *this; + } + + template < typename U > + SafeInt< T, E >& operator |=( U rhs ) throw() + { + m_int = details::BinaryOrHelper< T, U >::Or( m_int, rhs ); + return *this; + } + + template < typename U > + SafeInt< T, E >& operator |=( SafeInt< U, E > rhs ) throw() + { + m_int = details::BinaryOrHelper< T, U >::Or( m_int, (U)rhs ); + return *this; + } + + // Miscellaneous helper functions + SafeInt< T, E > Min( SafeInt< T, E > test, SafeInt< T, E > floor = SafeInt< T, E >( details::IntTraits< T >::minInt ) ) const throw() + { + T tmp = test < m_int ? test : m_int; + return tmp < floor ? floor : tmp; + } + + SafeInt< T, E > Max( SafeInt< T, E > test, SafeInt< T, E > upper = SafeInt< T, E >( details::IntTraits< T >::maxInt ) ) const throw() + { + T tmp = test > m_int ? test : m_int; + return tmp > upper ? upper : tmp; + } + + void Swap( SafeInt< T, E >& with ) throw() + { + T temp( m_int ); + m_int = with.m_int; + with.m_int = temp; + } + + template < int bits > + const SafeInt< T, E >& Align() + { + // Zero is always aligned + if( m_int == 0 ) + return *this; + + // We don't support aligning negative numbers at this time + // Can't align unsigned numbers on bitCount (e.g., 8 bits = 256, unsigned char max = 255) + // or signed numbers on bitCount-1 (e.g., 7 bits = 128, signed char max = 127). + // Also makes no sense to try to align on negative or no bits. + + _SAFEINT_SHIFT_ASSERT( ( ( details::IntTraits::isSigned && bits < (int)details::IntTraits< T >::bitCount - 1 ) + || ( !details::IntTraits::isSigned && bits < (int)details::IntTraits< T >::bitCount ) ) && + bits >= 0 && ( !details::IntTraits::isSigned || m_int > 0 ) ); + + const T AlignValue = ( (T)1 << bits ) - 1; + + m_int = ( m_int + AlignValue ) & ~AlignValue; + + if( m_int <= 0 ) + E::SafeIntOnOverflow(); + + return *this; + } + + // Commonly needed alignments: + const SafeInt< T, E >& Align2() { return Align< 1 >(); } + const SafeInt< T, E >& Align4() { return Align< 2 >(); } + const SafeInt< T, E >& Align8() { return Align< 3 >(); } + const SafeInt< T, E >& Align16() { return Align< 4 >(); } + const SafeInt< T, E >& Align32() { return Align< 5 >(); } + const SafeInt< T, E >& Align64() { return Align< 6 >(); } + +private: + T m_int; +}; + +// Externally defined functions for the case of U op SafeInt< T, E > +template < typename T, typename U, typename E > +bool operator <( U lhs, SafeInt< T, E > rhs ) throw() +{ + return details::GreaterThanTest< T, U >::GreaterThan( (T)rhs, lhs ); +} + +template < typename T, typename U, typename E > +bool operator <( SafeInt< U, E > lhs, SafeInt< T, E > rhs ) throw() +{ + return details::GreaterThanTest< T, U >::GreaterThan( (T)rhs, (U)lhs ); +} + +// Greater than +template < typename T, typename U, typename E > +bool operator >( U lhs, SafeInt< T, E > rhs ) throw() +{ + return details::GreaterThanTest< U, T >::GreaterThan( lhs, (T)rhs ); +} + +template < typename T, typename U, typename E > +bool operator >( SafeInt< T, E > lhs, SafeInt< U, E > rhs ) throw() +{ + return details::GreaterThanTest< T, U >::GreaterThan( (T)lhs, (U)rhs ); +} + +// Greater than or equal +template < typename T, typename U, typename E > +bool operator >=( U lhs, SafeInt< T, E > rhs ) throw() +{ + return !details::GreaterThanTest< T, U >::GreaterThan( (T)rhs, lhs ); +} + +template < typename T, typename U, typename E > +bool operator >=( SafeInt< T, E > lhs, SafeInt< U, E > rhs ) throw() +{ + return !details::GreaterThanTest< U, T >::GreaterThan( (U)rhs, (T)lhs ); +} + +// Less than or equal +template < typename T, typename U, typename E > +bool operator <=( U lhs, SafeInt< T, E > rhs ) throw() +{ + return !details::GreaterThanTest< U, T >::GreaterThan( lhs, (T)rhs ); +} + +template < typename T, typename U, typename E > +bool operator <=( SafeInt< T, E > lhs, SafeInt< U, E > rhs ) throw() +{ + return !details::GreaterThanTest< T, U >::GreaterThan( (T)lhs, (U)rhs ); +} + +// equality +// explicit overload for bool +template < typename T, typename E > +bool operator ==( bool lhs, SafeInt< T, E > rhs ) throw() +{ + return lhs == ( (T)rhs == 0 ? false : true ); +} + +template < typename T, typename U, typename E > +bool operator ==( U lhs, SafeInt< T, E > rhs ) throw() +{ + return details::EqualityTest< T, U >::IsEquals((T)rhs, lhs); +} + +template < typename T, typename U, typename E > +bool operator ==( SafeInt< T, E > lhs, SafeInt< U, E > rhs ) throw() +{ + return details::EqualityTest< T, U >::IsEquals( (T)lhs, (U)rhs ); +} + +//not equals +template < typename T, typename U, typename E > +bool operator !=( U lhs, SafeInt< T, E > rhs ) throw() +{ + return !details::EqualityTest< T, U >::IsEquals( rhs, lhs ); +} + +template < typename T, typename E > +bool operator !=( bool lhs, SafeInt< T, E > rhs ) throw() +{ + return ( (T)rhs == 0 ? false : true ) != lhs; +} + +template < typename T, typename U, typename E > +bool operator !=( SafeInt< T, E > lhs, SafeInt< U, E > rhs ) throw() +{ + return !details::EqualityTest< T, U >::IsEquals( lhs, rhs ); +} + +// Modulus +template < typename T, typename U, typename E > +SafeInt< T, E > operator %( U lhs, SafeInt< T, E > rhs ) +{ + // Value of return depends on sign of lhs + // This one may not be safe - bounds check in constructor + // if lhs is negative and rhs is unsigned, this will throw an exception. + + // Fast-track the simple case + // same size and same sign +#pragma warning(suppress:4127 6326) + if( sizeof(T) == sizeof(U) && details::IntTraits< T >::isSigned == details::IntTraits< U >::isSigned ) + { + if( rhs != 0 ) + { + if( details::IntTraits< T >::isSigned && (T)rhs == -1 ) + return 0; + + return SafeInt< T, E >( (T)( lhs % (T)rhs ) ); + } + + E::SafeIntOnDivZero(); + } + + return SafeInt< T, E >( ( SafeInt< U, E >( lhs ) % (T)rhs ) ); +} + +// Multiplication +template < typename T, typename U, typename E > +SafeInt< T, E > operator *( U lhs, SafeInt< T, E > rhs ) +{ + T ret( 0 ); + details::MultiplicationHelper< T, U, E >::Multiply( (T)rhs, lhs, ret ); + return SafeInt< T, E >(ret); +} + +// Division +template < typename T, typename U, typename E > SafeInt< T, E > operator /( U lhs, SafeInt< T, E > rhs ) +{ +#pragma warning(push) +#pragma warning(disable: 4127 4146 4307 4310 6326) + // Corner case - has to be handled separately + if( details::DivisionMethod< U, T >::method == details::DivisionState_UnsignedSigned ) + { + if( (T)rhs > 0 ) + return SafeInt< T, E >( lhs/(T)rhs ); + + // Now rhs is either negative, or zero + if( (T)rhs != 0 ) + { + if( sizeof( U ) >= 4 && sizeof( T ) <= sizeof( U ) ) + { + // Problem case - normal casting behavior changes meaning + // flip rhs to positive + // any operator casts now do the right thing + U tmp; + if( sizeof(T) == 4 ) + tmp = lhs/(U)(unsigned __int32)( -(T)rhs ); + else + tmp = lhs/(U)( -(T)rhs ); + + if( tmp <= details::IntTraits< T >::maxInt ) + return SafeInt< T, E >( -( (T)tmp ) ); + + // Corner case + // Note - this warning happens because we're not using partial + // template specialization in this case. For any real cases where + // this block isn't optimized out, the warning won't be present. + if( tmp == (U)details::IntTraits< T >::maxInt + 1 ) + return SafeInt< T, E >( details::IntTraits< T >::minInt ); + + E::SafeIntOnOverflow(); + } + + return SafeInt< T, E >(lhs/(T)rhs); + } + + E::SafeIntOnDivZero(); + } // method == DivisionState_UnsignedSigned + + if( details::SafeIntCompare< T, U >::isBothSigned ) + { + if( lhs == details::IntTraits< U >::minInt && (T)rhs == -1 ) + { + // corner case of a corner case - lhs = min int, rhs = -1, + // but rhs is the return type, so in essence, we can return -lhs + // if rhs is a larger type than lhs + if( sizeof( U ) < sizeof( T ) ) + { + return SafeInt< T, E >( (T)( -(T)details::IntTraits< U >::minInt ) ); + } + + // If rhs is smaller or the same size int, then -minInt won't work + E::SafeIntOnOverflow(); + } + } + + // Otherwise normal logic works with addition of bounds check when casting from U->T + U ret; + details::DivisionHelper< U, T, E >::Divide( lhs, (T)rhs, ret ); + return SafeInt< T, E >( ret ); +#pragma warning(pop) +} + +// Addition +template < typename T, typename U, typename E > +SafeInt< T, E > operator +( U lhs, SafeInt< T, E > rhs ) +{ + T ret( 0 ); + details::AdditionHelper< T, U, E >::Addition( (T)rhs, lhs, ret ); + return SafeInt< T, E >( ret ); +} + +// Subtraction +template < typename T, typename U, typename E > +SafeInt< T, E > operator -( U lhs, SafeInt< T, E > rhs ) +{ + T ret( 0 ); + details::SubtractionHelper< U, T, E, details::SubtractionMethod2< U, T >::method >::Subtract( lhs, rhs.Ref(), ret ); + + return SafeInt< T, E >( ret ); +} + +// Overrides designed to deal with cases where a SafeInt is assigned out +// to a normal int - this at least makes the last operation safe +// += +template < typename T, typename U, typename E > +T& operator +=( T& lhs, SafeInt< U, E > rhs ) +{ + T ret( 0 ); + details::AdditionHelper< T, U, E >::Addition( lhs, (U)rhs, ret ); + lhs = ret; + return lhs; +} + +template < typename T, typename U, typename E > +T& operator -=( T& lhs, SafeInt< U, E > rhs ) +{ + T ret( 0 ); + details::SubtractionHelper< T, U, E >::Subtract( lhs, (U)rhs, ret ); + lhs = ret; + return lhs; +} + +template < typename T, typename U, typename E > +T& operator *=( T& lhs, SafeInt< U, E > rhs ) +{ + T ret( 0 ); + details::MultiplicationHelper< T, U, E >::Multiply( lhs, (U)rhs, ret ); + lhs = ret; + return lhs; +} + +template < typename T, typename U, typename E > +T& operator /=( T& lhs, SafeInt< U, E > rhs ) +{ + T ret( 0 ); + details::DivisionHelper< T, U, E >::Divide( lhs, (U)rhs, ret ); + lhs = ret; + return lhs; +} + +template < typename T, typename U, typename E > +T& operator %=( T& lhs, SafeInt< U, E > rhs ) +{ + T ret( 0 ); + details::ModulusHelper< T, U, E >::Modulus( lhs, (U)rhs, ret ); + lhs = ret; + return lhs; +} + +template < typename T, typename U, typename E > +T& operator &=( T& lhs, SafeInt< U, E > rhs ) throw() +{ + lhs = details::BinaryAndHelper< T, U >::And( lhs, (U)rhs ); + return lhs; +} + +template < typename T, typename U, typename E > +T& operator ^=( T& lhs, SafeInt< U, E > rhs ) throw() +{ + lhs = details::BinaryXorHelper< T, U >::Xor( lhs, (U)rhs ); + return lhs; +} + +template < typename T, typename U, typename E > +T& operator |=( T& lhs, SafeInt< U, E > rhs ) throw() +{ + lhs = details::BinaryOrHelper< T, U >::Or( lhs, (U)rhs ); + return lhs; +} + +template < typename T, typename U, typename E > +T& operator <<=( T& lhs, SafeInt< U, E > rhs ) throw() +{ + lhs = (T)( SafeInt< T, E >( lhs ) << (U)rhs ); + return lhs; +} + +template < typename T, typename U, typename E > +T& operator >>=( T& lhs, SafeInt< U, E > rhs ) throw() +{ + lhs = (T)( SafeInt< T, E >( lhs ) >> (U)rhs ); + return lhs; +} + +// Specific pointer overrides +// Note - this function makes no attempt to ensure +// that the resulting pointer is still in the buffer, only +// that no int overflows happened on the way to getting the new pointer +template < typename T, typename U, typename E > +T*& operator +=( T*& lhs, SafeInt< U, E > rhs ) +{ + // Cast the pointer to a number so we can do arithmetic + SafeInt< uintptr_t, E > ptr_val = reinterpret_cast< uintptr_t >( lhs ); + // Check first that rhs is valid for the type of ptrdiff_t + // and that multiplying by sizeof( T ) doesn't overflow a ptrdiff_t + // Next, we need to add 2 SafeInts of different types, so unbox the ptr_diff + // Finally, cast the number back to a pointer of the correct type + lhs = reinterpret_cast< T* >( (uintptr_t)( ptr_val + (ptrdiff_t)( SafeInt< ptrdiff_t, E >( rhs ) * sizeof( T ) ) ) ); + return lhs; +} + +template < typename T, typename U, typename E > +T*& operator -=( T*& lhs, SafeInt< U, E > rhs ) +{ + // Cast the pointer to a number so we can do arithmetic + SafeInt< size_t, E > ptr_val = reinterpret_cast< uintptr_t >( lhs ); + // See above for comments + lhs = reinterpret_cast< T* >( (uintptr_t)( ptr_val - (ptrdiff_t)( SafeInt< ptrdiff_t, E >( rhs ) * sizeof( T ) ) ) ); + return lhs; +} + +template < typename T, typename U, typename E > +T*& operator *=( T* lhs, SafeInt< U, E >) +{ + static_assert( details::DependentFalse< T >::value, "SafeInt: This operator explicitly not supported" ); + return lhs; +} + +template < typename T, typename U, typename E > +T*& operator /=( T* lhs, SafeInt< U, E >) +{ + static_assert( details::DependentFalse< T >::value, "SafeInt: This operator explicitly not supported" ); + return lhs; +} + +template < typename T, typename U, typename E > +T*& operator %=( T* lhs, SafeInt< U, E >) +{ + static_assert( details::DependentFalse< T >::value, "SafeInt: This operator explicitly not supported" ); + return lhs; +} + +template < typename T, typename U, typename E > +T*& operator &=( T* lhs, SafeInt< U, E >) +{ + static_assert( details::DependentFalse< T >::value, "SafeInt: This operator explicitly not supported" ); + return lhs; +} + +template < typename T, typename U, typename E > +T*& operator ^=( T* lhs, SafeInt< U, E >) +{ + static_assert( details::DependentFalse< T >::value, "SafeInt: This operator explicitly not supported" ); + return lhs; +} + +template < typename T, typename U, typename E > +T*& operator |=( T* lhs, SafeInt< U, E >) +{ + static_assert( details::DependentFalse< T >::value, "SafeInt: This operator explicitly not supported" ); + return lhs; +} + +template < typename T, typename U, typename E > +T*& operator <<=( T* lhs, SafeInt< U, E >) +{ + static_assert( details::DependentFalse< T >::value, "SafeInt: This operator explicitly not supported" ); + return lhs; +} + +template < typename T, typename U, typename E > +T*& operator >>=( T* lhs, SafeInt< U, E >) +{ + static_assert( details::DependentFalse< T >::value, "SafeInt: This operator explicitly not supported" ); + return lhs; +} + +// Shift operators +// NOTE - shift operators always return the type of the lhs argument + +// Left shift +template < typename T, typename U, typename E > +SafeInt< U, E > operator <<( U lhs, SafeInt< T, E > bits ) throw() +{ + _SAFEINT_SHIFT_ASSERT( !details::IntTraits< T >::isSigned || (T)bits >= 0 ); + _SAFEINT_SHIFT_ASSERT( (T)bits < (int)details::IntTraits< U >::bitCount ); + + return SafeInt< U, E >( (U)( lhs << (T)bits ) ); +} + +// Right shift +template < typename T, typename U, typename E > +SafeInt< U, E > operator >>( U lhs, SafeInt< T, E > bits ) throw() +{ + _SAFEINT_SHIFT_ASSERT( !details::IntTraits< T >::isSigned || (T)bits >= 0 ); + _SAFEINT_SHIFT_ASSERT( (T)bits < (int)details::IntTraits< U >::bitCount ); + + return SafeInt< U, E >( (U)( lhs >> (T)bits ) ); +} + +// Bitwise operators +// This only makes sense if we're dealing with the same type and size +// demand a type T, or something that fits into a type T. + +// Bitwise & +template < typename T, typename U, typename E > +SafeInt< T, E > operator &( U lhs, SafeInt< T, E > rhs ) throw() +{ + return SafeInt< T, E >( details::BinaryAndHelper< T, U >::And( (T)rhs, lhs ) ); +} + +// Bitwise XOR +template < typename T, typename U, typename E > +SafeInt< T, E > operator ^( U lhs, SafeInt< T, E > rhs ) throw() +{ + return SafeInt< T, E >(details::BinaryXorHelper< T, U >::Xor( (T)rhs, lhs ) ); +} + +// Bitwise OR +template < typename T, typename U, typename E > +SafeInt< T, E > operator |( U lhs, SafeInt< T, E > rhs ) throw() +{ + return SafeInt< T, E >( details::BinaryOrHelper< T, U >::Or( (T)rhs, lhs ) ); +} + +} // namespace utilities + +} // namespace msl + +#pragma pack(pop) + +#pragma warning(pop) // Disable /Wall warnings +#endif // RC_INVOKED diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/safeint_internal.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/safeint_internal.h new file mode 100644 index 0000000000000000000000000000000000000000..ca1033b44dec08b28afc282e3330beafd449bc61 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/safeint_internal.h @@ -0,0 +1,2898 @@ +/*** +*safeint_internal.h - Internal details for SafeInt (see safeint.h) +* +* Copyright (c) Microsoft Corporation. All rights reserved. +* +*Purpose: +* Private internal details for SafeInt. +* The constructs and functions in Microsoft::Utilities::details are not +* meant to be used by external code and can change at any time. +* +****/ + +#pragma once + +#include + +#pragma pack(push, _CRT_PACKING) + +namespace msl +{ + +namespace utilities +{ + +namespace details +{ +#pragma warning(push) +#pragma warning(disable:4702) + +template < typename T > +class DependentFalse { public: enum{ value = false }; }; + +template < typename T > class NumericType; + +template <> class NumericType { public: enum{ isBool = true, isFloat = false, isInt = false }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +#ifdef _NATIVE_WCHAR_T_DEFINED +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +#endif /* _NATIVE_WCHAR_T_DEFINED */ +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +template <> class NumericType<__int64> { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = false, isInt = true }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = true, isInt = false }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = true, isInt = false }; }; +template <> class NumericType { public: enum{ isBool = false, isFloat = true, isInt = false }; }; +// Catch-all for anything not supported +template < typename T > class NumericType { public: enum{ isBool = false, isFloat = false, isInt = false }; }; + + +template < typename T > class IntTraits +{ +public: + static_assert( NumericType::isInt || NumericType::isBool, "non-integral type T" ); + enum + { +#pragma warning(suppress:4804) + isSigned = ( (T)(-1) < 0 ), + is64Bit = ( sizeof(T) == 8 ), + is32Bit = ( sizeof(T) == 4 ), + is16Bit = ( sizeof(T) == 2 ), + is8Bit = ( sizeof(T) == 1 ), + isLT32Bit = ( sizeof(T) < 4 ), + isLT64Bit = ( sizeof(T) < 8 ), + isInt8 = ( sizeof(T) == 1 && isSigned ), + isUint8 = ( sizeof(T) == 1 && !isSigned ), + isInt16 = ( sizeof(T) == 2 && isSigned ), + isUint16 = ( sizeof(T) == 2 && !isSigned ), + isInt32 = ( sizeof(T) == 4 && isSigned ), + isUint32 = ( sizeof(T) == 4 && !isSigned ), + isInt64 = ( sizeof(T) == 8 && isSigned ), + isUint64 = ( sizeof(T) == 8 && !isSigned ), + bitCount = ( sizeof(T)*8 ), +#pragma warning(suppress:4804) + isBool = NumericType::isBool + }; + +#pragma warning(push) +#pragma warning(disable:4310) +#pragma warning(disable:4804) // suppress warning about '<<' being an unsafe operation when T is bool + const static T maxInt = isSigned ? ((T)~((T)1 << (T)(bitCount-1))) : ((T)(~(T)0)); + const static T minInt = isSigned ? ((T)((T)1 << (T)(bitCount-1))) : ((T)0); +#pragma warning(pop) +}; + +// this is strictly internal and not to be used as a policy in SafeInt<> +struct SafeIntErrorPolicy_NoThrow +{ + static void SafeIntOnOverflow() + { + } + + static void SafeIntOnDivZero() + { + } +}; + +template < typename T, typename U > class SafeIntCompare +{ +public: + enum + { + isBothSigned = (IntTraits< T >::isSigned && IntTraits< U >::isSigned), + isBothUnsigned = (!IntTraits< T >::isSigned && !IntTraits< U >::isSigned), + isLikeSigned = (static_cast(IntTraits< T >::isSigned) == static_cast(IntTraits< U >::isSigned)), + isCastOK = ((isLikeSigned && sizeof(T) >= sizeof(U)) || + (IntTraits< T >::isSigned && sizeof(T) > sizeof(U))), + isBothLT32Bit = (IntTraits< T >::isLT32Bit && IntTraits< U >::isLT32Bit), + isBothLT64Bit = (IntTraits< T >::isLT64Bit && IntTraits< U >::isLT64Bit) + }; +}; + +template < typename U > class SafeIntCompare< float, U > +{ +public: + enum + { + isBothSigned = IntTraits< U >::isSigned, + isBothUnsigned = false, + isLikeSigned = IntTraits< U >::isSigned, + isCastOK = true + }; +}; + +template < typename U > class SafeIntCompare< double, U > +{ +public: + enum + { + isBothSigned = IntTraits< U >::isSigned, + isBothUnsigned = false, + isLikeSigned = IntTraits< U >::isSigned, + isCastOK = true + }; +}; + +template < typename U > class SafeIntCompare< long double, U > +{ +public: + enum + { + isBothSigned = IntTraits< U >::isSigned, + isBothUnsigned = false, + isLikeSigned = IntTraits< U >::isSigned, + isCastOK = true + }; +}; + +//all of the arithmetic operators can be solved by the same code within +//each of these regions without resorting to compile-time constant conditionals +//most operators collapse the problem into less than the 22 zones, but this is used +//as the first cut +//using this also helps ensure that we handle all of the possible cases correctly + +template < typename T, typename U > class IntRegion +{ +public: + enum + { + //unsigned-unsigned zone + IntZone_UintLT32_UintLT32 = SafeIntCompare< T,U >::isBothUnsigned && SafeIntCompare< T,U >::isBothLT32Bit, + IntZone_Uint32_UintLT64 = SafeIntCompare< T,U >::isBothUnsigned && IntTraits< T >::is32Bit && IntTraits< U >::isLT64Bit, + IntZone_UintLT32_Uint32 = SafeIntCompare< T,U >::isBothUnsigned && IntTraits< T >::isLT32Bit && IntTraits< U >::is32Bit, + IntZone_Uint64_Uint = SafeIntCompare< T,U >::isBothUnsigned && IntTraits< T >::is64Bit, + IntZone_UintLT64_Uint64 = SafeIntCompare< T,U >::isBothUnsigned && IntTraits< T >::isLT64Bit && IntTraits< U >::is64Bit, + //unsigned-signed + IntZone_UintLT32_IntLT32 = !IntTraits< T >::isSigned && IntTraits< U >::isSigned && SafeIntCompare< T,U >::isBothLT32Bit, + IntZone_Uint32_IntLT64 = IntTraits< T >::isUint32 && IntTraits< U >::isSigned && IntTraits< U >::isLT64Bit, + IntZone_UintLT32_Int32 = !IntTraits< T >::isSigned && IntTraits< T >::isLT32Bit && IntTraits< U >::isInt32, + IntZone_Uint64_Int = IntTraits< T >::isUint64 && IntTraits< U >::isSigned && IntTraits< U >::isLT64Bit, + IntZone_UintLT64_Int64 = !IntTraits< T >::isSigned && IntTraits< T >::isLT64Bit && IntTraits< U >::isInt64, + IntZone_Uint64_Int64 = IntTraits< T >::isUint64 && IntTraits< U >::isInt64, + //signed-signed + IntZone_IntLT32_IntLT32 = SafeIntCompare< T,U >::isBothSigned && SafeIntCompare< T, U >::isBothLT32Bit, + IntZone_Int32_IntLT64 = SafeIntCompare< T,U >::isBothSigned && IntTraits< T >::is32Bit && IntTraits< U >::isLT64Bit, + IntZone_IntLT32_Int32 = SafeIntCompare< T,U >::isBothSigned && IntTraits< T >::isLT32Bit && IntTraits< U >::is32Bit, + IntZone_Int64_Int64 = SafeIntCompare< T,U >::isBothSigned && IntTraits< T >::isInt64 && IntTraits< U >::isInt64, + IntZone_Int64_Int = SafeIntCompare< T,U >::isBothSigned && IntTraits< T >::is64Bit && IntTraits< U >::isLT64Bit, + IntZone_IntLT64_Int64 = SafeIntCompare< T,U >::isBothSigned && IntTraits< T >::isLT64Bit && IntTraits< U >::is64Bit, + //signed-unsigned + IntZone_IntLT32_UintLT32 = IntTraits< T >::isSigned && !IntTraits< U >::isSigned && SafeIntCompare< T,U >::isBothLT32Bit, + IntZone_Int32_UintLT32 = IntTraits< T >::isInt32 && !IntTraits< U >::isSigned && IntTraits< U >::isLT32Bit, + IntZone_IntLT64_Uint32 = IntTraits< T >::isSigned && IntTraits< T >::isLT64Bit && IntTraits< U >::isUint32, + IntZone_Int64_UintLT64 = IntTraits< T >::isInt64 && !IntTraits< U >::isSigned && IntTraits< U >::isLT64Bit, + IntZone_Int_Uint64 = IntTraits< T >::isSigned && IntTraits< U >::isUint64 && IntTraits< T >::isLT64Bit, + IntZone_Int64_Uint64 = IntTraits< T >::isInt64 && IntTraits< U >::isUint64 + }; +}; + +// useful function to help with getting the magnitude of a negative number +enum AbsMethod +{ + AbsMethodInt, + AbsMethodInt64, + AbsMethodNoop +}; + +template < typename T > +class GetAbsMethod +{ +public: + enum + { + method = IntTraits< T >::isLT64Bit && IntTraits< T >::isSigned ? AbsMethodInt : + IntTraits< T >::isInt64 ? AbsMethodInt64 : AbsMethodNoop + }; +}; + +template < typename T, int Method = GetAbsMethod< T >::method > class AbsValueHelper; + +template < typename T > class AbsValueHelper < T, AbsMethodInt > +{ +public: + static unsigned __int32 Abs( T t ) throw() + { + _ASSERTE( t < 0 ); + return (unsigned __int32)-t; + } +}; + +template < typename T > class AbsValueHelper < T, AbsMethodInt64 > +{ +public: + static unsigned __int64 Abs( T t ) throw() + { + _ASSERTE( t < 0 ); + return (unsigned __int64)-t; + } +}; + +template < typename T > class AbsValueHelper < T, AbsMethodNoop > +{ +public: + static T Abs( T t ) throw() + { + // Why are you calling Abs on an unsigned number ??? + _ASSERTE( ("AbsValueHelper::Abs should not be called with an unsigned integer type", 0) ); + return t; + } +}; + +template < typename T, typename E, bool fSigned > class NegationHelper; + +template < typename T, typename E > class NegationHelper < T, E, true > // Signed +{ +public: + static SafeIntError Negative( T t, T& ret ) + { + // corner case + if( t != IntTraits< T >::minInt ) + { + // cast prevents unneeded checks in the case of small ints + ret = -t; + return SafeIntNoError; + } + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + + +template < typename T, typename E > class NegationHelper < T, E, false > // unsigned +{ +public: + static SafeIntError Negative( T t, T& ret ) throw() + { + _SAFEINT_UNSIGNED_NEGATION_BEHAVIOR(); + +#pragma warning(suppress:4127) + _ASSERTE( !IntTraits::isLT32Bit ); + +#pragma warning(suppress:4146) + ret = -t; + return SafeIntNoError; + } +}; + +//core logic to determine casting behavior +enum CastMethod +{ + CastOK = 0, + CastCheckLTZero, + CastCheckGTMax, + CastCheckMinMaxUnsigned, + CastCheckMinMaxSigned, + CastFromFloat, + CastToBool, + CastFromBool +}; + +template < typename ToType, typename FromType > +class GetCastMethod +{ +public: + enum + { + method = ( IntTraits< FromType >::isBool && + !IntTraits< ToType >::isBool ) ? CastFromBool : + + ( !IntTraits< FromType >::isBool && + IntTraits< ToType >::isBool ) ? CastToBool : + ( NumericType< FromType >::isFloat && + !NumericType< ToType >::isFloat ) ? CastFromFloat : + + ( SafeIntCompare< ToType, FromType >::isCastOK || + ( NumericType< ToType >::isFloat && + !NumericType< FromType >::isFloat ) ) ? CastOK : + + ( ( IntTraits< ToType >::isSigned && + !IntTraits< FromType >::isSigned && + sizeof( FromType ) >= sizeof( ToType ) ) || + ( SafeIntCompare< ToType, FromType >::isBothUnsigned && + sizeof( FromType ) > sizeof( ToType ) ) ) ? CastCheckGTMax : + + ( !IntTraits< ToType >::isSigned && + IntTraits< FromType >::isSigned && + sizeof( ToType ) >= sizeof( FromType ) ) ? CastCheckLTZero : + + ( !IntTraits< ToType >::isSigned ) ? CastCheckMinMaxUnsigned + : CastCheckMinMaxSigned + }; +}; + +template < typename T, typename U, typename E, + int Method = GetCastMethod< T, U >::method > class SafeCastHelper; + +template < typename T, typename U, typename E > class SafeCastHelper < T, U, E, CastOK > +{ +public: + static SafeIntError Cast( U u, T& t ) throw() + { + t = (T)u; + return SafeIntNoError; + } +}; + +// special case floats and doubles +// tolerate loss of precision +template < typename T, typename U, typename E > class SafeCastHelper < T, U, E, CastFromFloat > +{ +public: + static SafeIntError Cast( U u, T& t ) + { + if( u <= (U)IntTraits< T >::maxInt && + u >= (U)IntTraits< T >::minInt ) + { + t = (T)u; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +// Match on any method where a bool is cast to type T +template < typename T, typename U, typename E > class SafeCastHelper < T, U, E, CastFromBool > +{ +public: + static SafeIntError Cast( bool b, T& t ) throw() + { + t = (T)( b ? 1 : 0 ); + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class SafeCastHelper < T, U, E, CastToBool > +{ +public: + static SafeIntError Cast( T t, bool& b ) throw() + { + b = !!t; + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class SafeCastHelper < T, U, E, CastCheckLTZero > +{ +public: + static SafeIntError Cast( U u, T& t ) + { + if( u < 0 ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + t = (T)u; + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class SafeCastHelper < T, U, E, CastCheckGTMax > +{ +public: + static SafeIntError Cast( U u, T& t ) + { + if( u > IntTraits< T >::maxInt ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + t = (T)u; + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class SafeCastHelper < T, U, E, CastCheckMinMaxUnsigned > +{ +public: + static SafeIntError Cast( U u, T& t ) + { + // U is signed - T could be either signed or unsigned + if( u > IntTraits< T >::maxInt || u < 0 ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + t = (T)u; + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class SafeCastHelper < T, U, E, CastCheckMinMaxSigned > +{ +public: + static SafeIntError Cast( U u, T& t ) + { + // T, U are signed + if( u > IntTraits< T >::maxInt || u < IntTraits< T >::minInt ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + t = (T)u; + return SafeIntNoError; + } +}; + +//core logic to determine whether a comparison is valid, or needs special treatment +enum ComparisonMethod +{ + ComparisonMethod_Ok = 0, + ComparisonMethod_CastInt, + ComparisonMethod_CastInt64, + ComparisonMethod_UnsignedT, + ComparisonMethod_UnsignedU +}; + +template < typename T, typename U > +class ValidComparison +{ +public: + enum + { +#if _SAFEINT_USE_ANSI_CONVERSIONS + method = ComparisonMethod_Ok +#else /* _SAFEINT_USE_ANSI_CONVERSIONS */ + method = ( ( SafeIntCompare< T, U >::isLikeSigned ) ? ComparisonMethod_Ok : + ( ( IntTraits< T >::isSigned && sizeof(T) < 8 && sizeof(U) < 4 ) || + ( IntTraits< U >::isSigned && sizeof(T) < 4 && sizeof(U) < 8 ) ) ? ComparisonMethod_CastInt : + ( ( IntTraits< T >::isSigned && sizeof(U) < 8 ) || + ( IntTraits< U >::isSigned && sizeof(T) < 8 ) ) ? ComparisonMethod_CastInt64 : + ( !IntTraits< T >::isSigned ) ? ComparisonMethod_UnsignedT : + ComparisonMethod_UnsignedU ) +#endif /* _SAFEINT_USE_ANSI_CONVERSIONS */ + }; +}; + +template ::method > class EqualityTest; + +template < typename T, typename U > class EqualityTest< T, U, ComparisonMethod_Ok > +{ +public: + static bool IsEquals( const T t, const U u ) throw() { return ( t == u ); } +}; + +template < typename T, typename U > class EqualityTest< T, U, ComparisonMethod_CastInt > +{ +public: + static bool IsEquals( const T t, const U u ) throw() { return ( (int)t == (int)u ); } +}; + +template < typename T, typename U > class EqualityTest< T, U, ComparisonMethod_CastInt64 > +{ +public: + static bool IsEquals( const T t, const U u ) throw() { return ( (__int64)t == (__int64)u ); } +}; + +template < typename T, typename U > class EqualityTest< T, U, ComparisonMethod_UnsignedT > +{ +public: + static bool IsEquals( const T t, const U u ) throw() + { + //one operand is 32 or 64-bit unsigned, and the other is signed and the same size or smaller + if( u < 0 ) + { + return false; + } + + //else safe to cast to type T + return ( t == (T)u ); + } +}; + +template < typename T, typename U > class EqualityTest< T, U, ComparisonMethod_UnsignedU> +{ +public: + static bool IsEquals( const T t, const U u ) throw() + { + //one operand is 32 or 64-bit unsigned, and the other is signed and the same size or smaller + if( t < 0 ) + { + return false; + } + + //else safe to cast to type U + return ( (U)t == u ); + } +}; + +template ::method > class GreaterThanTest; + +template < typename T, typename U > class GreaterThanTest< T, U, ComparisonMethod_Ok > +{ +public: + static bool GreaterThan( const T t, const U u ) throw() { return ( t > u ); } +}; + +template < typename T, typename U > class GreaterThanTest< T, U, ComparisonMethod_CastInt > +{ +public: + static bool GreaterThan( const T t, const U u ) throw() { return ( (int)t > (int)u ); } +}; + +template < typename T, typename U > class GreaterThanTest< T, U, ComparisonMethod_CastInt64 > +{ +public: + static bool GreaterThan( const T t, const U u ) throw() { return ( (__int64)t > (__int64)u ); } +}; + +template < typename T, typename U > class GreaterThanTest< T, U, ComparisonMethod_UnsignedT > +{ +public: + static bool GreaterThan( const T t, const U u ) throw() + { + // one operand is 32 or 64-bit unsigned, and the other is signed and the same size or smaller + if( u < 0 ) + { + return SafeIntNoError; + } + + // else safe to cast to type T + return ( t > (T)u ); + } +}; + +template < typename T, typename U > class GreaterThanTest< T, U, ComparisonMethod_UnsignedU > +{ +public: + static bool GreaterThan( const T t, const U u ) throw() + { + // one operand is 32 or 64-bit unsigned, and the other is signed and the same size or smaller + if( t < 0 ) + { + return false; + } + + // else safe to cast to type U + return ( (U)t > u ); + } +}; + +// Modulus is simpler than comparison, but follows much the same logic +// using this set of functions, it can't fail except in a div 0 situation +template ::method > class ModulusHelper; + +template class ModulusHelper +{ +public: + static SafeIntError Modulus( const T& t, const U& u, T& result ) + { + if(u == 0) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + + // trap corner case +#pragma warning(suppress:4127) + if( IntTraits< U >::isSigned ) + { + if(u == -1) + { + result = 0; + return SafeIntNoError; + } + } + + result = (T)(t % u); + return SafeIntNoError; + } +}; + +template class ModulusHelper +{ +public: + static SafeIntError Modulus( const T& t, const U& u, T& result ) + { + if(u == 0) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + + // trap corner case +#pragma warning(suppress:4127) + if( IntTraits< U >::isSigned ) + { + if(u == -1) + { + result = 0; + return SafeIntNoError; + } + } + + result = (T)(t % u); + return SafeIntNoError; + } +}; + +template class ModulusHelper +{ +public: + static SafeIntError Modulus( const T& t, const U& u, T& result ) + { + if(u == 0) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + +#pragma warning(suppress:4127) + if(IntTraits< U >::isSigned && u == -1) + { + result = 0; + } + else + { + result = (T)((__int64)t % (__int64)u); + } + + return SafeIntNoError; + } +}; + +// T is unsigned __int64, U is any signed int +template class ModulusHelper +{ +public: + static SafeIntError Modulus( const T& t, const U& u, T& result ) + { + if(u == 0) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + + // u could be negative - if so, need to convert to positive + // casts below are always safe due to the way modulus works + if(u < 0) + { + result = (T)(t % AbsValueHelper< U >::Abs(u)); + } + else + { + result = (T)(t % u); + } + + return SafeIntNoError; + } +}; + +// U is unsigned __int64, T any signed int +template class ModulusHelper +{ +public: + static SafeIntError Modulus( const T& t, const U& u, T& result ) + { + if(u == 0) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + + //t could be negative - if so, need to convert to positive + if(t < 0) + { + result = -(T)( AbsValueHelper< T >::Abs( t ) % u ); + } + else + { + result = (T)((T)t % u); + } + + return SafeIntNoError; + } +}; + +//core logic to determine method to check multiplication +enum MultiplicationState +{ + MultiplicationState_CastInt = 0, // One or both signed, smaller than 32-bit + MultiplicationState_CastInt64, // One or both signed, smaller than 64-bit + MultiplicationState_CastUint, // Both are unsigned, smaller than 32-bit + MultiplicationState_CastUint64, // Both are unsigned, both 32-bit or smaller + MultiplicationState_Uint64Uint, // Both are unsigned, lhs 64-bit, rhs 32-bit or smaller + MultiplicationState_Uint64Uint64, // Both are unsigned int64 + MultiplicationState_Uint64Int, // lhs is unsigned int64, rhs int32 + MultiplicationState_Uint64Int64, // lhs is unsigned int64, rhs signed int64 + MultiplicationState_UintUint64, // Both are unsigned, lhs 32-bit or smaller, rhs 64-bit + MultiplicationState_UintInt64, // lhs unsigned 32-bit or less, rhs int64 + MultiplicationState_Int64Uint, // lhs int64, rhs unsigned int32 + MultiplicationState_Int64Int64, // lhs int64, rhs int64 + MultiplicationState_Int64Int, // lhs int64, rhs int32 + MultiplicationState_IntUint64, // lhs int, rhs unsigned int64 + MultiplicationState_IntInt64, // lhs int, rhs int64 + MultiplicationState_Int64Uint64, // lhs int64, rhs uint64 + MultiplicationState_Error +}; + +template < typename T, typename U > +class MultiplicationMethod +{ +public: + enum + { + // unsigned-unsigned + method = (IntRegion< T,U >::IntZone_UintLT32_UintLT32 ? MultiplicationState_CastUint : + (IntRegion< T,U >::IntZone_Uint32_UintLT64 || + IntRegion< T,U >::IntZone_UintLT32_Uint32) ? MultiplicationState_CastUint64 : + SafeIntCompare< T,U >::isBothUnsigned && + IntTraits< T >::isUint64 && IntTraits< U >::isUint64 ? MultiplicationState_Uint64Uint64 : + (IntRegion< T,U >::IntZone_Uint64_Uint) ? MultiplicationState_Uint64Uint : + (IntRegion< T,U >::IntZone_UintLT64_Uint64) ? MultiplicationState_UintUint64 : + // unsigned-signed + (IntRegion< T,U >::IntZone_UintLT32_IntLT32) ? MultiplicationState_CastInt : + (IntRegion< T,U >::IntZone_Uint32_IntLT64 || + IntRegion< T,U >::IntZone_UintLT32_Int32) ? MultiplicationState_CastInt64 : + (IntRegion< T,U >::IntZone_Uint64_Int) ? MultiplicationState_Uint64Int : + (IntRegion< T,U >::IntZone_UintLT64_Int64) ? MultiplicationState_UintInt64 : + (IntRegion< T,U >::IntZone_Uint64_Int64) ? MultiplicationState_Uint64Int64 : + // signed-signed + (IntRegion< T,U >::IntZone_IntLT32_IntLT32) ? MultiplicationState_CastInt : + (IntRegion< T,U >::IntZone_Int32_IntLT64 || + IntRegion< T,U >::IntZone_IntLT32_Int32) ? MultiplicationState_CastInt64 : + (IntRegion< T,U >::IntZone_Int64_Int64) ? MultiplicationState_Int64Int64 : + (IntRegion< T,U >::IntZone_Int64_Int) ? MultiplicationState_Int64Int : + (IntRegion< T,U >::IntZone_IntLT64_Int64) ? MultiplicationState_IntInt64 : + // signed-unsigned + (IntRegion< T,U >::IntZone_IntLT32_UintLT32) ? MultiplicationState_CastInt : + (IntRegion< T,U >::IntZone_Int32_UintLT32 || + IntRegion< T,U >::IntZone_IntLT64_Uint32) ? MultiplicationState_CastInt64 : + (IntRegion< T,U >::IntZone_Int64_UintLT64) ? MultiplicationState_Int64Uint : + (IntRegion< T,U >::IntZone_Int_Uint64) ? MultiplicationState_IntUint64 : + (IntRegion< T,U >::IntZone_Int64_Uint64 ? MultiplicationState_Int64Uint64 : + MultiplicationState_Error ) ) + }; +}; + +template ::method > class MultiplicationHelper; + +template < typename T, typename U, typename E > class MultiplicationHelper< T, U, E, MultiplicationState_CastInt> +{ +public: + //accepts signed, both less than 32-bit + static SafeIntError Multiply( const T& t, const U& u, T& ret ) + { + int tmp = t * u; + + if( tmp > IntTraits< T >::maxInt || tmp < IntTraits< T >::minInt ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + ret = (T)tmp; + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class MultiplicationHelper< T, U, E, MultiplicationState_CastUint > +{ +public: + //accepts unsigned, both less than 32-bit + static SafeIntError Multiply( const T& t, const U& u, T& ret ) + { + unsigned int tmp = t * u; + + if( tmp > IntTraits< T >::maxInt ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + ret = (T)tmp; + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class MultiplicationHelper< T, U, E, MultiplicationState_CastInt64> +{ +public: + //mixed signed or both signed where at least one argument is 32-bit, and both a 32-bit or less + static SafeIntError Multiply( const T& t, const U& u, T& ret ) + { + __int64 tmp = (__int64)t * (__int64)u; + + if(tmp > (__int64)IntTraits< T >::maxInt || tmp < (__int64)IntTraits< T >::minInt) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + ret = (T)tmp; + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class MultiplicationHelper< T, U, E, MultiplicationState_CastUint64> +{ +public: + //both unsigned where at least one argument is 32-bit, and both are 32-bit or less + static SafeIntError Multiply( const T& t, const U& u, T& ret ) + { + unsigned __int64 tmp = (unsigned __int64)t * (unsigned __int64)u; + + if(tmp > (unsigned __int64)IntTraits< T >::maxInt) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + ret = (T)tmp; + return SafeIntNoError; + } +}; + +// T = left arg and return type +// U = right arg +template < typename T, typename U, typename E > class LargeIntRegMultiply; + +template< typename E > class LargeIntRegMultiply< unsigned __int64, unsigned __int64, E > +{ +public: + static SafeIntError RegMultiply( const unsigned __int64& a, const unsigned __int64& b, unsigned __int64& ret ) + { + unsigned __int32 aHigh, aLow, bHigh, bLow; + + // Consider that a*b can be broken up into: + // (aHigh * 2^32 + aLow) * (bHigh * 2^32 + bLow) + // => (aHigh * bHigh * 2^64) + (aLow * bHigh * 2^32) + (aHigh * bLow * 2^32) + (aLow * bLow) + // Note - same approach applies for 128 bit math on a 64-bit system + + aHigh = (unsigned __int32)(a >> 32); + aLow = (unsigned __int32)a; + bHigh = (unsigned __int32)(b >> 32); + bLow = (unsigned __int32)b; + + ret = 0; + + if(aHigh == 0) + { + if(bHigh != 0) + { + ret = (unsigned __int64)aLow * (unsigned __int64)bHigh; + } + } + else if(bHigh == 0) + { + if(aHigh != 0) + { + ret = (unsigned __int64)aHigh * (unsigned __int64)bLow; + } + } + else + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + if(ret != 0) + { + unsigned __int64 tmp; + + if((unsigned __int32)(ret >> 32) != 0) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + ret <<= 32; + tmp = (unsigned __int64)aLow * (unsigned __int64)bLow; + ret += tmp; + + if(ret < tmp) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + return SafeIntNoError; + } + + ret = (unsigned __int64)aLow * (unsigned __int64)bLow; + return SafeIntNoError; + } +}; + +template< typename E > class LargeIntRegMultiply< unsigned __int64, unsigned __int32, E > +{ +public: + static SafeIntError RegMultiply( const unsigned __int64& a, unsigned __int32 b, unsigned __int64& ret ) + { + unsigned __int32 aHigh, aLow; + + // Consider that a*b can be broken up into: + // (aHigh * 2^32 + aLow) * b + // => (aHigh * b * 2^32) + (aLow * b) + + aHigh = (unsigned __int32)(a >> 32); + aLow = (unsigned __int32)a; + + ret = 0; + + if(aHigh != 0) + { + ret = (unsigned __int64)aHigh * (unsigned __int64)b; + + unsigned __int64 tmp; + + if((unsigned __int32)(ret >> 32) != 0) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + ret <<= 32; + tmp = (unsigned __int64)aLow * (unsigned __int64)b; + ret += tmp; + + if(ret < tmp) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + return SafeIntNoError; + } + + ret = (unsigned __int64)aLow * (unsigned __int64)b; + return SafeIntNoError; + } +}; + +template< typename E > class LargeIntRegMultiply< unsigned __int64, signed __int32, E > +{ +public: + static SafeIntError RegMultiply( const unsigned __int64& a, signed __int32 b, unsigned __int64& ret ) + { + if( b < 0 && a != 0 ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + return LargeIntRegMultiply< unsigned __int64, unsigned __int32, E >::RegMultiply(a, (unsigned __int32)b, ret); + } +}; + +template< typename E > class LargeIntRegMultiply< unsigned __int64, signed __int64, E > +{ +public: + static SafeIntError RegMultiply( const unsigned __int64& a, signed __int64 b, unsigned __int64& ret ) + { + if( b < 0 && a != 0 ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + return LargeIntRegMultiply< unsigned __int64, unsigned __int64, E >::RegMultiply(a, (unsigned __int64)b, ret); + } +}; + +template< typename E > class LargeIntRegMultiply< signed __int32, unsigned __int64, E > +{ +public: + static SafeIntError RegMultiply( signed __int32 a, const unsigned __int64& b, signed __int32& ret ) + { + unsigned __int32 bHigh, bLow; + bool fIsNegative = false; + + // Consider that a*b can be broken up into: + // (aHigh * 2^32 + aLow) * (bHigh * 2^32 + bLow) + // => (aHigh * bHigh * 2^64) + (aLow * bHigh * 2^32) + (aHigh * bLow * 2^32) + (aLow * bLow) + + bHigh = (unsigned __int32)(b >> 32); + bLow = (unsigned __int32)b; + + ret = 0; + + if(bHigh != 0 && a != 0) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + if( a < 0 ) + { + a = -a; + fIsNegative = true; + } + + unsigned __int64 tmp = (unsigned __int32)a * (unsigned __int64)bLow; + + + if( !fIsNegative ) + { + if( tmp <= (unsigned __int64)IntTraits< signed __int32 >::maxInt ) + { + ret = (signed __int32)tmp; + return SafeIntNoError; + } + } + else + { + if( tmp <= (unsigned __int64)IntTraits< signed __int32 >::maxInt+1 ) + { + ret = -( (signed __int32)tmp ); + return SafeIntNoError; + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename E > class LargeIntRegMultiply< unsigned __int32, unsigned __int64, E > +{ +public: + static SafeIntError RegMultiply( unsigned __int32 a, const unsigned __int64& b, unsigned __int32& ret ) + { + // Consider that a*b can be broken up into: + // (bHigh * 2^32 + bLow) * a + // => (bHigh * a * 2^32) + (bLow * a) + // In this case, the result must fit into 32-bits + // If bHigh != 0 && a != 0, immediate error. + + if( (unsigned __int32)(b >> 32) != 0 && a != 0 ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + unsigned __int64 tmp = b * (unsigned __int64)a; + + if( (unsigned __int32)(tmp >> 32) != 0 ) // overflow + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + ret = (unsigned __int32)tmp; + return SafeIntNoError; + } +}; + +template < typename E > class LargeIntRegMultiply< unsigned __int32, signed __int64, E > +{ +public: + static SafeIntError RegMultiply( unsigned __int32 a, const signed __int64& b, unsigned __int32& ret ) + { + if( b < 0 && a != 0 ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + return LargeIntRegMultiply< unsigned __int32, unsigned __int64, E >::RegMultiply( a, (unsigned __int64)b, ret ); + } +}; + +template < typename E > class LargeIntRegMultiply< signed __int64, signed __int64, E > +{ +public: + static SafeIntError RegMultiply( const signed __int64& a, const signed __int64& b, signed __int64& ret ) + { + bool aNegative = false; + bool bNegative = false; + + unsigned __int64 tmp; + __int64 a1 = a; + __int64 b1 = b; + + if( a1 < 0 ) + { + aNegative = true; + a1 = -a1; + } + + if( b1 < 0 ) + { + bNegative = true; + b1 = -b1; + } + + if( LargeIntRegMultiply< unsigned __int64, unsigned __int64, E >:: + RegMultiply( (unsigned __int64)a1, (unsigned __int64)b1, tmp ) == SafeIntNoError ) + { + // The unsigned multiplication didn't overflow + if( aNegative ^ bNegative ) + { + // Result must be negative + if( tmp <= (unsigned __int64)IntTraits< signed __int64 >::minInt ) + { + ret = -(signed __int64)tmp; + return SafeIntNoError; + } + } + else + { + // Result must be positive + if( tmp <= (unsigned __int64)IntTraits< signed __int64 >::maxInt ) + { + ret = (signed __int64)tmp; + return SafeIntNoError; + } + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename E > class LargeIntRegMultiply< signed __int64, unsigned __int32, E > +{ +public: + static SafeIntError RegMultiply( const signed __int64& a, unsigned __int32 b, signed __int64& ret ) + { + bool aNegative = false; + unsigned __int64 tmp; + __int64 a1 = a; + + if( a1 < 0 ) + { + aNegative = true; + a1 = -a1; + } + + if( LargeIntRegMultiply< unsigned __int64, unsigned __int32, E >::RegMultiply( (unsigned __int64)a1, b, tmp ) == SafeIntNoError ) + { + // The unsigned multiplication didn't overflow + if( aNegative ) + { + // Result must be negative + if( tmp <= (unsigned __int64)IntTraits< signed __int64 >::minInt ) + { + ret = -(signed __int64)tmp; + return SafeIntNoError; + } + } + else + { + // Result must be positive + if( tmp <= (unsigned __int64)IntTraits< signed __int64 >::maxInt ) + { + ret = (signed __int64)tmp; + return SafeIntNoError; + } + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename E > class LargeIntRegMultiply< signed __int64, signed __int32, E > +{ +public: + static SafeIntError RegMultiply( const signed __int64& a, signed __int32 b, signed __int64& ret ) + { + bool aNegative = false; + bool bNegative = false; + + unsigned __int64 tmp; + __int64 a1 = a; + __int64 b1 = b; + + if( a1 < 0 ) + { + aNegative = true; + a1 = -a1; + } + + if( b1 < 0 ) + { + bNegative = true; + b1 = -b1; + } + + if( LargeIntRegMultiply< unsigned __int64, unsigned __int32, E >:: + RegMultiply( (unsigned __int64)a1, (unsigned __int32)b1, tmp ) == SafeIntNoError ) + { + // The unsigned multiplication didn't overflow + if( aNegative ^ bNegative ) + { + // Result must be negative + if( tmp <= (unsigned __int64)IntTraits< signed __int64 >::minInt ) + { + ret = -(signed __int64)tmp; + return SafeIntNoError; + } + } + else + { + // Result must be positive + if( tmp <= (unsigned __int64)IntTraits< signed __int64 >::maxInt ) + { + ret = (signed __int64)tmp; + return SafeIntNoError; + } + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename E > class LargeIntRegMultiply< signed __int32, signed __int64, E > +{ +public: + static SafeIntError RegMultiply( signed __int32 a, const signed __int64& b, signed __int32& ret ) + { + bool aNegative = false; + bool bNegative = false; + + unsigned __int32 tmp; + __int64 b1 = b; + + if( a < 0 ) + { + aNegative = true; + a = -a; + } + + if( b1 < 0 ) + { + bNegative = true; + b1 = -b1; + } + + if( LargeIntRegMultiply< unsigned __int32, unsigned __int64, E >:: + RegMultiply( (unsigned __int32)a, (unsigned __int64)b1, tmp ) == SafeIntNoError ) + { + // The unsigned multiplication didn't overflow + if( aNegative ^ bNegative ) + { + // Result must be negative + if( tmp <= (unsigned __int32)IntTraits< signed __int32 >::minInt ) + { +#pragma warning(suppress:4146) + ret = -tmp; + return SafeIntNoError; + } + } + else + { + // Result must be positive + if( tmp <= (unsigned __int32)IntTraits< signed __int32 >::maxInt ) + { + ret = (signed __int32)tmp; + return SafeIntNoError; + } + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename E > class LargeIntRegMultiply< signed __int64, unsigned __int64, E > +{ +public: + static SafeIntError RegMultiply( const signed __int64& a, const unsigned __int64& b, signed __int64& ret ) + { + bool aNegative = false; + + unsigned __int64 tmp; + __int64 a1 = a; + + if( a1 < 0 ) + { + aNegative = true; + a1 = -a1; + } + + if( LargeIntRegMultiply< unsigned __int64, unsigned __int64, E >:: + RegMultiply( (unsigned __int64)a1, (unsigned __int64)b, tmp ) == SafeIntNoError ) + { + // The unsigned multiplication didn't overflow + if( aNegative ) + { + // Result must be negative + if( tmp <= (unsigned __int64)IntTraits< signed __int64 >::minInt ) + { + ret = -((signed __int64)tmp); + return SafeIntNoError; + } + } + else + { + // Result must be positive + if( tmp <= (unsigned __int64)IntTraits< signed __int64 >::maxInt ) + { + ret = (signed __int64)tmp; + return SafeIntNoError; + } + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename E > class MultiplicationHelper< unsigned __int64, unsigned __int64, E, MultiplicationState_Uint64Uint64 > +{ +public: + static SafeIntError Multiply( const unsigned __int64& t, const unsigned __int64& u, unsigned __int64& ret ) + { + return LargeIntRegMultiply< unsigned __int64, unsigned __int64, E >::RegMultiply( t, u, ret ); + } +}; + +template < typename U, typename E > class MultiplicationHelper +{ +public: + //U is any unsigned int 32-bit or less + static SafeIntError Multiply( const unsigned __int64& t, const U& u, unsigned __int64& ret ) + { + return LargeIntRegMultiply< unsigned __int64, unsigned __int32, E >::RegMultiply( t, (unsigned __int32)u, ret ); + } +}; + +// converse of the previous function +template < typename T, typename E > class MultiplicationHelper< T, unsigned __int64, E, MultiplicationState_UintUint64 > +{ +public: + // T is any unsigned int up to 32-bit + static SafeIntError Multiply( const T& t, const unsigned __int64& u, T& ret ) + { + unsigned __int32 tmp; + + if( LargeIntRegMultiply< unsigned __int32, unsigned __int64, E >::RegMultiply( t, u, tmp ) == SafeIntNoError && + SafeCastHelper< T, unsigned __int32, E >::Cast(tmp, ret) == SafeIntNoError ) + { + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename U, typename E > class MultiplicationHelper< unsigned __int64, U, E, MultiplicationState_Uint64Int > +{ +public: + //U is any signed int, up to 64-bit + static SafeIntError Multiply(const unsigned __int64& t, const U& u, unsigned __int64& ret) + { + return LargeIntRegMultiply< unsigned __int64, signed __int32, E >::RegMultiply(t, (signed __int32)u, ret); + } +}; + +template < typename E > class MultiplicationHelper +{ +public: + static SafeIntError Multiply(const unsigned __int64& t, const __int64& u, unsigned __int64& ret) + { + return LargeIntRegMultiply< unsigned __int64, __int64, E >::RegMultiply(t, u, ret); + } +}; + +template < typename T, typename E > class MultiplicationHelper< T, __int64, E, MultiplicationState_UintInt64 > +{ +public: + //T is unsigned up to 32-bit + static SafeIntError Multiply( const T& t, const __int64& u, T& ret ) + { + unsigned __int32 tmp; + + if( LargeIntRegMultiply< unsigned __int32, __int64, E >::RegMultiply( (unsigned __int32)t, u, tmp ) == SafeIntNoError && + SafeCastHelper< T, unsigned __int32, E >::Cast( tmp, ret ) == SafeIntNoError ) + { + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename U, typename E > class MultiplicationHelper<__int64, U, E, MultiplicationState_Int64Uint > +{ +public: + //U is unsigned up to 32-bit + static SafeIntError Multiply( const __int64& t, const U& u, __int64& ret ) + { + return LargeIntRegMultiply< __int64, unsigned __int32, E >::RegMultiply( t, (unsigned __int32)u, ret ); + } +}; + +template < typename E > class MultiplicationHelper<__int64, __int64, E, MultiplicationState_Int64Int64 > +{ +public: + static SafeIntError Multiply( const __int64& t, const __int64& u, __int64& ret ) + { + return LargeIntRegMultiply< __int64, __int64, E >::RegMultiply( t, u, ret ); + } +}; + +template < typename U, typename E > class MultiplicationHelper<__int64, U, E, MultiplicationState_Int64Int> +{ +public: + //U is signed up to 32-bit + static SafeIntError Multiply( const __int64& t, U u, __int64& ret ) + { + return LargeIntRegMultiply< __int64, __int32, E >::RegMultiply( t, (__int32)u, ret ); + } +}; + +template < typename T, typename E > class MultiplicationHelper< T, unsigned __int64, E, MultiplicationState_IntUint64 > +{ +public: + //T is signed up to 32-bit + static SafeIntError Multiply(T t, const unsigned __int64& u, T& ret) + { + __int32 tmp; + + if( LargeIntRegMultiply< __int32, unsigned __int64, E >::RegMultiply( (__int32)t, u, tmp ) == SafeIntNoError && + SafeCastHelper< T, __int32, E >::Cast( tmp, ret ) == SafeIntNoError ) + { + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename E > class MultiplicationHelper<__int64, unsigned __int64, E, MultiplicationState_Int64Uint64> +{ +public: + //U is signed up to 32-bit + static SafeIntError Multiply( const __int64& t, const unsigned __int64& u, __int64& ret ) + { + return LargeIntRegMultiply< __int64, unsigned __int64, E >::RegMultiply( t, u, ret ); + } +}; + +template < typename T, typename E > class MultiplicationHelper< T, __int64, E, MultiplicationState_IntInt64> +{ +public: + //T is signed, up to 32-bit + static SafeIntError Multiply( T t, const __int64& u, T& ret ) + { + __int32 tmp; + + if( LargeIntRegMultiply< __int32, __int64, E >::RegMultiply( (__int32)t, u, tmp ) == SafeIntNoError && + SafeCastHelper< T, __int32, E >::Cast( tmp, ret ) == SafeIntNoError ) + { + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +enum DivisionState +{ + DivisionState_OK, + DivisionState_UnsignedSigned, + DivisionState_SignedUnsigned32, + DivisionState_SignedUnsigned64, + DivisionState_SignedUnsigned, + DivisionState_SignedSigned +}; + +template < typename T, typename U > class DivisionMethod +{ +public: + enum + { + method = (SafeIntCompare< T, U >::isBothUnsigned ? DivisionState_OK : + (!IntTraits< T >::isSigned && IntTraits< U >::isSigned) ? DivisionState_UnsignedSigned : + (IntTraits< T >::isSigned && + IntTraits< U >::isUint32 && + IntTraits< T >::isLT64Bit) ? DivisionState_SignedUnsigned32 : + (IntTraits< T >::isSigned && IntTraits< U >::isUint64) ? DivisionState_SignedUnsigned64 : + (IntTraits< T >::isSigned && !IntTraits< U >::isSigned) ? DivisionState_SignedUnsigned : + DivisionState_SignedSigned) + }; +}; + +template < typename T, typename U, typename E, int Method = DivisionMethod< T, U >::method > class DivisionHelper; + +template < typename T, typename U, typename E > class DivisionHelper< T, U, E, DivisionState_OK > +{ +public: + static SafeIntError Divide( const T& t, const U& u, T& result ) + { + if( u == 0 ) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + + result = (T)( t/u ); + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class DivisionHelper< T, U, E, DivisionState_UnsignedSigned> +{ +public: + static SafeIntError Divide( const T& t, const U& u, T& result ) + { + if( u > 0 ) + { + result = (T)( t/u ); + return SafeIntNoError; + } + + if( u == 0 ) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + + // it is always an error to try and divide an unsigned number by a negative signed number + // unless u is bigger than t + if( AbsValueHelper< U >::Abs( u ) > t ) + { + result = 0; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class DivisionHelper< T, U, E, DivisionState_SignedUnsigned32 > +{ +public: + static SafeIntError Divide( const T& t, const U& u, T& result ) + { + if( u == 0 ) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + + // Test for t > 0 + // If t < 0, must explicitly upcast, or implicit upcast to ulong will cause errors + // As it turns out, 32-bit division is about twice as fast, which justifies the extra conditional + if( t > 0 ) + result = (T)( t/u ); + else + result = (T)( (__int64)t/(__int64)u ); + + return SafeIntNoError; + } +}; + +template < typename T, typename E > class DivisionHelper< T, unsigned __int64, E, DivisionState_SignedUnsigned64 > +{ +public: + static SafeIntError Divide( const T& t, const unsigned __int64& u, T& result ) + { + if( u == 0 ) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + + if( u <= (unsigned __int64)IntTraits< T >::maxInt ) + { + // Else u can safely be cast to T +#pragma warning(suppress:4127) + if( sizeof( T ) < sizeof( __int64 ) ) + result = (T)( (int)t/(int)u ); + else + result = (T)((__int64)t/(__int64)u); + } + else // Corner case + if( t == IntTraits< T >::minInt && u == (unsigned __int64)IntTraits< T >::minInt ) + { + // Min int divided by its own magnitude is -1 + result = -1; + } + else + { + result = 0; + } + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class DivisionHelper< T, U, E, DivisionState_SignedUnsigned> +{ +public: + // T is any signed, U is unsigned and smaller than 32-bit + // In this case, standard operator casting is correct + static SafeIntError Divide( const T& t, const U& u, T& result ) + { + if( u == 0 ) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + + result = (T)( t/u ); + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class DivisionHelper< T, U, E, DivisionState_SignedSigned> +{ +public: + static SafeIntError Divide( const T& t, const U& u, T& result ) + { + if( u == 0 ) + { + E::SafeIntOnDivZero(); + return SafeIntDivideByZero; + } + + // Must test for corner case + if( t == IntTraits< T >::minInt && u == -1 ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + result = (T)( t/u ); + return SafeIntNoError; + } +}; + +enum AdditionState +{ + AdditionState_CastIntCheckMax, + AdditionState_CastUintCheckOverflow, + AdditionState_CastUintCheckOverflowMax, + AdditionState_CastUint64CheckOverflow, + AdditionState_CastUint64CheckOverflowMax, + AdditionState_CastIntCheckMinMax, + AdditionState_CastInt64CheckMinMax, + AdditionState_CastInt64CheckMax, + AdditionState_CastUint64CheckMinMax, + AdditionState_CastUint64CheckMinMax2, + AdditionState_CastInt64CheckOverflow, + AdditionState_CastInt64CheckOverflowMinMax, + AdditionState_CastInt64CheckOverflowMax, + AdditionState_ManualCheckInt64Uint64, + AdditionState_ManualCheck, + AdditionState_Error +}; + +template< typename T, typename U > +class AdditionMethod +{ +public: + enum + { + //unsigned-unsigned + method = (IntRegion< T,U >::IntZone_UintLT32_UintLT32 ? AdditionState_CastIntCheckMax : + (IntRegion< T,U >::IntZone_Uint32_UintLT64) ? AdditionState_CastUintCheckOverflow : + (IntRegion< T,U >::IntZone_UintLT32_Uint32) ? AdditionState_CastUintCheckOverflowMax : + (IntRegion< T,U >::IntZone_Uint64_Uint) ? AdditionState_CastUint64CheckOverflow : + (IntRegion< T,U >::IntZone_UintLT64_Uint64) ? AdditionState_CastUint64CheckOverflowMax : + //unsigned-signed + (IntRegion< T,U >::IntZone_UintLT32_IntLT32) ? AdditionState_CastIntCheckMinMax : + (IntRegion< T,U >::IntZone_Uint32_IntLT64 || + IntRegion< T,U >::IntZone_UintLT32_Int32) ? AdditionState_CastInt64CheckMinMax : + (IntRegion< T,U >::IntZone_Uint64_Int || + IntRegion< T,U >::IntZone_Uint64_Int64) ? AdditionState_CastUint64CheckMinMax : + (IntRegion< T,U >::IntZone_UintLT64_Int64) ? AdditionState_CastUint64CheckMinMax2 : + //signed-signed + (IntRegion< T,U >::IntZone_IntLT32_IntLT32) ? AdditionState_CastIntCheckMinMax : + (IntRegion< T,U >::IntZone_Int32_IntLT64 || + IntRegion< T,U >::IntZone_IntLT32_Int32) ? AdditionState_CastInt64CheckMinMax : + (IntRegion< T,U >::IntZone_Int64_Int || + IntRegion< T,U >::IntZone_Int64_Int64) ? AdditionState_CastInt64CheckOverflow : + (IntRegion< T,U >::IntZone_IntLT64_Int64) ? AdditionState_CastInt64CheckOverflowMinMax : + //signed-unsigned + (IntRegion< T,U >::IntZone_IntLT32_UintLT32) ? AdditionState_CastIntCheckMax : + (IntRegion< T,U >::IntZone_Int32_UintLT32 || + IntRegion< T,U >::IntZone_IntLT64_Uint32) ? AdditionState_CastInt64CheckMax : + (IntRegion< T,U >::IntZone_Int64_UintLT64) ? AdditionState_CastInt64CheckOverflowMax : + (IntRegion< T,U >::IntZone_Int64_Uint64) ? AdditionState_ManualCheckInt64Uint64 : + (IntRegion< T,U >::IntZone_Int_Uint64) ? AdditionState_ManualCheck : + AdditionState_Error) + }; +}; + +template < typename T, typename U, typename E, int Method = AdditionMethod< T, U >::method > class AdditionHelper; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastIntCheckMax > +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + //16-bit or less unsigned addition + __int32 tmp = lhs + rhs; + + if( tmp <= (__int32)IntTraits< T >::maxInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastUintCheckOverflow > +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + // 32-bit or less - both are unsigned + unsigned __int32 tmp = (unsigned __int32)lhs + (unsigned __int32)rhs; + + //we added didn't get smaller + if( tmp >= lhs ) + { + result = (T)tmp; + return SafeIntNoError; + } + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastUintCheckOverflowMax> +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + // 32-bit or less - both are unsigned + unsigned __int32 tmp = (unsigned __int32)lhs + (unsigned __int32)rhs; + + // We added and it didn't get smaller or exceed maxInt + if( tmp >= lhs && tmp <= IntTraits< T >::maxInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastUint64CheckOverflow> +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + // lhs unsigned __int64, rhs unsigned + unsigned __int64 tmp = (unsigned __int64)lhs + (unsigned __int64)rhs; + + // We added and it didn't get smaller + if(tmp >= lhs) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastUint64CheckOverflowMax > +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + //lhs unsigned __int64, rhs unsigned + unsigned __int64 tmp = (unsigned __int64)lhs + (unsigned __int64)rhs; + + // We added and it didn't get smaller + if( tmp >= lhs && tmp <= IntTraits< T >::maxInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastIntCheckMinMax > +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + // 16-bit or less - one or both are signed + __int32 tmp = lhs + rhs; + + if( tmp <= (__int32)IntTraits< T >::maxInt && tmp >= (__int32)IntTraits< T >::minInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +#pragma warning(push) +#pragma warning(disable:4702) +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastInt64CheckMinMax > +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + // 32-bit or less - one or both are signed + __int64 tmp = (__int64)lhs + (__int64)rhs; + + if( tmp <= (__int64)IntTraits< T >::maxInt && tmp >= (__int64)IntTraits< T >::minInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + // return E::SafeIntOnOverflow2(); + } +}; +#pragma warning(pop) + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastInt64CheckMax > +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + // 32-bit or less - lhs signed, rhs unsigned + __int64 tmp = (__int64)lhs + (__int64)rhs; + + if( tmp <= IntTraits< T >::maxInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastUint64CheckMinMax > +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + // lhs is unsigned __int64, rhs signed + unsigned __int64 tmp; + + if( rhs < 0 ) + { + // So we're effectively subtracting + tmp = AbsValueHelper< U >::Abs( rhs ); + + if( tmp <= lhs ) + { + result = lhs - tmp; + return SafeIntNoError; + } + } + else + { + // now we know that rhs can be safely cast into an unsigned __int64 + tmp = (unsigned __int64)lhs + (unsigned __int64)rhs; + + // We added and it did not become smaller + if( tmp >= lhs ) + { + result = (T)tmp; + return SafeIntNoError; + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastUint64CheckMinMax2> +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + // lhs is unsigned and < 64-bit, rhs signed __int64 + if( rhs < 0 ) + { + if( lhs >= (unsigned __int64)( -rhs ) )//negation is safe, since rhs is 64-bit + { + result = (T)( lhs + rhs ); + return SafeIntNoError; + } + } + else + { + // now we know that rhs can be safely cast into an unsigned __int64 + unsigned __int64 tmp = (unsigned __int64)lhs + (unsigned __int64)rhs; + + // special case - rhs cannot be larger than 0x7fffffffffffffff, lhs cannot be larger than 0xffffffff + // it is not possible for the operation above to overflow, so just check max + if( tmp <= IntTraits< T >::maxInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + } + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastInt64CheckOverflow> +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + // lhs is signed __int64, rhs signed + __int64 tmp = (__int64)lhs + (__int64)rhs; + + if( lhs >= 0 ) + { + // mixed sign cannot overflow + if( rhs >= 0 && tmp < lhs ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + } + else + { + // lhs negative + if( rhs < 0 && tmp > lhs ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + } + + result = (T)tmp; + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastInt64CheckOverflowMinMax> +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + //rhs is signed __int64, lhs signed + __int64 tmp; + + if( AdditionHelper< __int64, __int64, E, AdditionState_CastInt64CheckOverflow >:: + Addition( (__int64)lhs, (__int64)rhs, tmp ) == SafeIntNoError && + tmp <= IntTraits< T >::maxInt && + tmp >= IntTraits< T >::minInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_CastInt64CheckOverflowMax > +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + //lhs is signed __int64, rhs unsigned < 64-bit + __int64 tmp = lhs + (__int64)rhs; + + if( tmp >= lhs ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename E > class AdditionHelper < __int64, unsigned __int64, E, AdditionState_ManualCheckInt64Uint64 > +{ +public: + static SafeIntError Addition( const __int64& lhs, const unsigned __int64& rhs, __int64& result ) + { + // rhs is unsigned __int64, lhs __int64 + __int64 tmp = lhs + (__int64)rhs; + + if( tmp >= lhs ) + { + result = tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class AdditionHelper < T, U, E, AdditionState_ManualCheck > +{ +public: + static SafeIntError Addition( const T& lhs, const U& rhs, T& result ) + { + // rhs is unsigned __int64, lhs signed, 32-bit or less + + if( (unsigned __int32)( rhs >> 32 ) == 0 ) + { + // Now it just happens to work out that the standard behavior does what we want + // Adding explicit casts to show exactly what's happening here + __int32 tmp = (__int32)( (unsigned __int32)rhs + (unsigned __int32)lhs ); + + if( tmp >= lhs && + SafeCastHelper< T, __int32, E >::Cast( tmp, result ) == SafeIntNoError ) + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +enum SubtractionState +{ + SubtractionState_BothUnsigned, + SubtractionState_CastIntCheckMinMax, + SubtractionState_CastIntCheckMin, + SubtractionState_CastInt64CheckMinMax, + SubtractionState_CastInt64CheckMin, + SubtractionState_Uint64Int, + SubtractionState_UintInt64, + SubtractionState_Int64Int, + SubtractionState_IntInt64, + SubtractionState_Int64Uint, + SubtractionState_IntUint64, + SubtractionState_Int64Uint64, + // states for SubtractionMethod2 + SubtractionState_BothUnsigned2, + SubtractionState_CastIntCheckMinMax2, + SubtractionState_CastInt64CheckMinMax2, + SubtractionState_Uint64Int2, + SubtractionState_UintInt642, + SubtractionState_Int64Int2, + SubtractionState_IntInt642, + SubtractionState_Int64Uint2, + SubtractionState_IntUint642, + SubtractionState_Int64Uint642, + SubtractionState_Error +}; + +template < typename T, typename U > class SubtractionMethod +{ +public: + enum + { + // unsigned-unsigned + method = ((IntRegion< T,U >::IntZone_UintLT32_UintLT32 || + (IntRegion< T,U >::IntZone_Uint32_UintLT64) || + (IntRegion< T,U >::IntZone_UintLT32_Uint32) || + (IntRegion< T,U >::IntZone_Uint64_Uint) || + (IntRegion< T,U >::IntZone_UintLT64_Uint64)) ? SubtractionState_BothUnsigned : + // unsigned-signed + (IntRegion< T,U >::IntZone_UintLT32_IntLT32) ? SubtractionState_CastIntCheckMinMax : + (IntRegion< T,U >::IntZone_Uint32_IntLT64 || + IntRegion< T,U >::IntZone_UintLT32_Int32) ? SubtractionState_CastInt64CheckMinMax : + (IntRegion< T,U >::IntZone_Uint64_Int || + IntRegion< T,U >::IntZone_Uint64_Int64) ? SubtractionState_Uint64Int : + (IntRegion< T,U >::IntZone_UintLT64_Int64) ? SubtractionState_UintInt64 : + // signed-signed + (IntRegion< T,U >::IntZone_IntLT32_IntLT32) ? SubtractionState_CastIntCheckMinMax : + (IntRegion< T,U >::IntZone_Int32_IntLT64 || + IntRegion< T,U >::IntZone_IntLT32_Int32) ? SubtractionState_CastInt64CheckMinMax : + (IntRegion< T,U >::IntZone_Int64_Int || + IntRegion< T,U >::IntZone_Int64_Int64) ? SubtractionState_Int64Int : + (IntRegion< T,U >::IntZone_IntLT64_Int64) ? SubtractionState_IntInt64 : + // signed-unsigned + (IntRegion< T,U >::IntZone_IntLT32_UintLT32) ? SubtractionState_CastIntCheckMin : + (IntRegion< T,U >::IntZone_Int32_UintLT32 || + IntRegion< T,U >::IntZone_IntLT64_Uint32) ? SubtractionState_CastInt64CheckMin : + (IntRegion< T,U >::IntZone_Int64_UintLT64) ? SubtractionState_Int64Uint : + (IntRegion< T,U >::IntZone_Int_Uint64) ? SubtractionState_IntUint64 : + (IntRegion< T,U >::IntZone_Int64_Uint64) ? SubtractionState_Int64Uint64 : + SubtractionState_Error) + }; +}; + +// this is for the case of U - SafeInt< T, E > +template < typename T, typename U > class SubtractionMethod2 +{ +public: + enum + { + // unsigned-unsigned + method = ((IntRegion< T,U >::IntZone_UintLT32_UintLT32 || + (IntRegion< T,U >::IntZone_Uint32_UintLT64) || + (IntRegion< T,U >::IntZone_UintLT32_Uint32) || + (IntRegion< T,U >::IntZone_Uint64_Uint) || + (IntRegion< T,U >::IntZone_UintLT64_Uint64)) ? SubtractionState_BothUnsigned2 : + // unsigned-signed + (IntRegion< T,U >::IntZone_UintLT32_IntLT32) ? SubtractionState_CastIntCheckMinMax2 : + (IntRegion< T,U >::IntZone_Uint32_IntLT64 || + IntRegion< T,U >::IntZone_UintLT32_Int32) ? SubtractionState_CastInt64CheckMinMax2 : + (IntRegion< T,U >::IntZone_Uint64_Int || + IntRegion< T,U >::IntZone_Uint64_Int64) ? SubtractionState_Uint64Int2 : + (IntRegion< T,U >::IntZone_UintLT64_Int64) ? SubtractionState_UintInt642 : + // signed-signed + (IntRegion< T,U >::IntZone_IntLT32_IntLT32) ? SubtractionState_CastIntCheckMinMax2 : + (IntRegion< T,U >::IntZone_Int32_IntLT64 || + IntRegion< T,U >::IntZone_IntLT32_Int32) ? SubtractionState_CastInt64CheckMinMax2 : + (IntRegion< T,U >::IntZone_Int64_Int || + IntRegion< T,U >::IntZone_Int64_Int64) ? SubtractionState_Int64Int2 : + (IntRegion< T,U >::IntZone_IntLT64_Int64) ? SubtractionState_IntInt642 : + // signed-unsigned + (IntRegion< T,U >::IntZone_IntLT32_UintLT32) ? SubtractionState_CastIntCheckMinMax2 : + (IntRegion< T,U >::IntZone_Int32_UintLT32 || + IntRegion< T,U >::IntZone_IntLT64_Uint32) ? SubtractionState_CastInt64CheckMinMax2 : + (IntRegion< T,U >::IntZone_Int64_UintLT64) ? SubtractionState_Int64Uint2 : + (IntRegion< T,U >::IntZone_Int_Uint64) ? SubtractionState_IntUint642 : + (IntRegion< T,U >::IntZone_Int64_Uint64) ? SubtractionState_Int64Uint642 : + SubtractionState_Error) + }; +}; + +template < typename T, typename U, typename E, int Method = SubtractionMethod< T, U >::method > class SubtractionHelper; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_BothUnsigned > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // both are unsigned - easy case + if( rhs <= lhs ) + { + result = (T)( lhs - rhs ); + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_BothUnsigned2 > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, U& result ) + { + // both are unsigned - easy case + // Except we do have to check for overflow - lhs could be larger than result can hold + if( rhs <= lhs ) + { + T tmp = (T)(lhs - rhs); + return SafeCastHelper< U, T, E>::Cast( tmp, result); + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_CastIntCheckMinMax > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // both values are 16-bit or less + // rhs is signed, so could end up increasing or decreasing + __int32 tmp = lhs - rhs; + + if( SafeCastHelper< T, __int32, E >::Cast( tmp, result ) == SafeIntNoError ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename U, typename T, typename E > class SubtractionHelper< U, T, E, SubtractionState_CastIntCheckMinMax2 > +{ +public: + static SafeIntError Subtract( const U& lhs, const T& rhs, T& result ) + { + // both values are 16-bit or less + // rhs is signed, so could end up increasing or decreasing + __int32 tmp = lhs - rhs; + + return SafeCastHelper< T, __int32, E >::Cast( tmp, result ); + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_CastIntCheckMin > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // both values are 16-bit or less + // rhs is unsigned - check only minimum + __int32 tmp = lhs - rhs; + + if( tmp >= (__int32)IntTraits< T >::minInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_CastInt64CheckMinMax > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // both values are 32-bit or less + // rhs is signed, so could end up increasing or decreasing + __int64 tmp = (__int64)lhs - (__int64)rhs; + + return SafeCastHelper< T, __int64, E >::Cast( tmp, result ); + } +}; + +template < typename U, typename T, typename E > class SubtractionHelper< U, T, E, SubtractionState_CastInt64CheckMinMax2 > +{ +public: + static SafeIntError Subtract( const U& lhs, const T& rhs, T& result ) + { + // both values are 32-bit or less + // rhs is signed, so could end up increasing or decreasing + __int64 tmp = (__int64)lhs - (__int64)rhs; + + return SafeCastHelper< T, __int64, E >::Cast( tmp, result ); + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_CastInt64CheckMin > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // both values are 32-bit or less + // rhs is unsigned - check only minimum + __int64 tmp = (__int64)lhs - (__int64)rhs; + + if( tmp >= (__int64)IntTraits< T >::minInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_Uint64Int > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // lhs is an unsigned __int64, rhs signed + // must first see if rhs is positive or negative + if( rhs >= 0 ) + { + if( (unsigned __int64)rhs <= lhs ) + { + result = (T)( lhs - (unsigned __int64)rhs ); + return SafeIntNoError; + } + } + else + { + // we're now effectively adding + T tmp = lhs + AbsValueHelper< U >::Abs( rhs ); + + if(tmp >= lhs) + { + result = tmp; + return SafeIntNoError; + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename U, typename T, typename E > class SubtractionHelper< U, T, E, SubtractionState_Uint64Int2 > +{ +public: + static SafeIntError Subtract( const U& lhs, const T& rhs, T& result ) + { + // U is unsigned __int64, T is signed + if( rhs < 0 ) + { + // treat this as addition + unsigned __int64 tmp; + + tmp = lhs + (unsigned __int64)AbsValueHelper< T >::Abs( rhs ); + + // must check for addition overflow and max + if( tmp >= lhs && tmp <= IntTraits< T >::maxInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + } + else if( (unsigned __int64)rhs > lhs ) // now both are positive, so comparison always works + { + // result is negative + // implies that lhs must fit into T, and result cannot overflow + // Also allows us to drop to 32-bit math, which is faster on a 32-bit system + result = (T)lhs - (T)rhs; + return SafeIntNoError; + } + else + { + // result is positive + unsigned __int64 tmp = (unsigned __int64)lhs - (unsigned __int64)rhs; + + if( tmp <= IntTraits< T >::maxInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_UintInt64 > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // lhs is an unsigned int32 or smaller, rhs signed __int64 + // must first see if rhs is positive or negative + if( rhs >= 0 ) + { + if( (unsigned __int64)rhs <= lhs ) + { + result = (T)( lhs - (T)rhs ); + return SafeIntNoError; + } + } + else + { + // we're now effectively adding + // since lhs is 32-bit, and rhs cannot exceed 2^63 + // this addition cannot overflow + unsigned __int64 tmp = lhs + (unsigned __int64)( -rhs ); // negation safe + + // but we could exceed MaxInt + if(tmp <= IntTraits< T >::maxInt) + { + result = (T)tmp; + return SafeIntNoError; + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename U, typename T, typename E > class SubtractionHelper< U, T, E, SubtractionState_UintInt642 > +{ +public: + static SafeIntError Subtract( const U& lhs, const T& rhs, T& result ) + { + // U unsigned 32-bit or less, T __int64 + if( rhs >= 0 ) + { + // overflow not possible + result = (T)( (__int64)lhs - rhs ); + return SafeIntNoError; + } + else + { + // we effectively have an addition + // which cannot overflow internally + unsigned __int64 tmp = (unsigned __int64)lhs + (unsigned __int64)( -rhs ); + + if( tmp <= (unsigned __int64)IntTraits< T >::maxInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_Int64Int > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // lhs is an __int64, rhs signed (up to 64-bit) + // we have essentially 4 cases: + // + // 1) lhs positive, rhs positive - overflow not possible + // 2) lhs positive, rhs negative - equivalent to addition - result >= lhs or error + // 3) lhs negative, rhs positive - check result <= lhs + // 4) lhs negative, rhs negative - overflow not possible + + __int64 tmp = lhs - rhs; + + // Note - ideally, we can order these so that true conditionals + // lead to success, which enables better pipelining + // It isn't practical here + if( ( lhs >= 0 && rhs < 0 && tmp < lhs ) || // condition 2 + ( rhs >= 0 && tmp > lhs ) ) // condition 3 + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + + result = (T)tmp; + return SafeIntNoError; + } +}; + +template < typename U, typename T, typename E > class SubtractionHelper< U, T, E, SubtractionState_Int64Int2 > +{ +public: + static SafeIntError Subtract( const U& lhs, const T& rhs, T& result ) + { + // lhs __int64, rhs any signed int (including __int64) + __int64 tmp = lhs - rhs; + + // we have essentially 4 cases: + // + // 1) lhs positive, rhs positive - overflow not possible in tmp + // 2) lhs positive, rhs negative - equivalent to addition - result >= lhs or error + // 3) lhs negative, rhs positive - check result <= lhs + // 4) lhs negative, rhs negative - overflow not possible in tmp + + if( lhs >= 0 ) + { + // if both positive, overflow to negative not possible + // which is why we'll explicitly check maxInt, and not call SafeCast +#pragma warning(suppress:4127) + if( ( IntTraits< T >::isLT64Bit && tmp > IntTraits< T >::maxInt ) || + ( rhs < 0 && tmp < lhs ) ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + } + else + { + // lhs negative +#pragma warning(suppress:4127) + if( ( IntTraits< T >::isLT64Bit && tmp < IntTraits< T >::minInt) || + ( rhs >=0 && tmp > lhs ) ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } + } + + result = (T)tmp; + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_IntInt64 > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // lhs is a 32-bit int or less, rhs __int64 + // we have essentially 4 cases: + // + // lhs positive, rhs positive - rhs could be larger than lhs can represent + // lhs positive, rhs negative - additive case - check tmp >= lhs and tmp > max int + // lhs negative, rhs positive - check tmp <= lhs and tmp < min int + // lhs negative, rhs negative - addition cannot internally overflow, check against max + + __int64 tmp = (__int64)lhs - rhs; + + if( lhs >= 0 ) + { + // first case + if( rhs >= 0 ) + { + if( tmp >= IntTraits< T >::minInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + } + else + { + // second case + if( tmp >= lhs && tmp <= IntTraits< T >::maxInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + } + } + else + { + // lhs < 0 + // third case + if( rhs >= 0 ) + { + if( tmp <= lhs && tmp >= IntTraits< T >::minInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + } + else + { + // fourth case + if( tmp <= IntTraits< T >::maxInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename U, typename T, typename E > class SubtractionHelper< U, T, E, SubtractionState_IntInt642 > +{ +public: + static SafeIntError Subtract( const U& lhs, const T& rhs, T& result ) + { + // lhs is any signed int32 or smaller, rhs is int64 + __int64 tmp = (__int64)lhs - rhs; + + if( ( lhs >= 0 && rhs < 0 && tmp < lhs ) || + ( rhs > 0 && tmp > lhs ) ) + { + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + //else OK + } + + result = (T)tmp; + return SafeIntNoError; + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_Int64Uint > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // lhs is a 64-bit int, rhs unsigned int32 or smaller + + __int64 tmp = lhs - (__int64)rhs; + + if( tmp <= lhs ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename U, typename T, typename E > class SubtractionHelper< U, T, E, SubtractionState_Int64Uint2 > +{ +public: + // lhs is __int64, rhs is unsigned 32-bit or smaller + static SafeIntError Subtract( const U& lhs, const T& rhs, T& result ) + { + __int64 tmp = lhs - (__int64)rhs; + + if( tmp <= IntTraits< T >::maxInt && tmp >= IntTraits< T >::minInt ) + { + result = (T)tmp; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename T, typename U, typename E > class SubtractionHelper< T, U, E, SubtractionState_IntUint64 > +{ +public: + static SafeIntError Subtract( const T& lhs, const U& rhs, T& result ) + { + // lhs is any signed int, rhs unsigned int64 + // check against available range + + // We need the absolute value of IntTraits< T >::minInt + // This will give it to us without extraneous compiler warnings + const unsigned __int64 AbsMinIntT = (unsigned __int64)IntTraits< T >::maxInt + 1; + + if( lhs < 0 ) + { + if( rhs <= AbsMinIntT - AbsValueHelper< T >::Abs( lhs ) ) + { + result = (T)( lhs - rhs ); + return SafeIntNoError; + } + } + else + { + if( rhs <= AbsMinIntT + (unsigned __int64)lhs ) + { + result = (T)( lhs - rhs ); + return SafeIntNoError; + } + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename U, typename T, typename E > class SubtractionHelper< U, T, E, SubtractionState_IntUint642 > +{ +public: + static SafeIntError Subtract( const U& lhs, const T& rhs, T& result ) + { + // We run into upcasting problems on comparison - needs 2 checks + if( lhs >= 0 && (T)lhs >= rhs ) + { + result = (T)((U)lhs - (U)rhs); + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename E > class SubtractionHelper< __int64, unsigned __int64, E, SubtractionState_Int64Uint64 > +{ +public: + static SafeIntError Subtract( const __int64& lhs, const unsigned __int64& rhs, __int64& result ) + { + // if we subtract, and it gets larger, there's a problem + __int64 tmp = lhs - (__int64)rhs; + + if( tmp <= lhs ) + { + result = tmp; + return SafeIntNoError; + } + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +template < typename E > class SubtractionHelper< __int64, unsigned __int64, E, SubtractionState_Int64Uint642 > +{ +public: + // If lhs is negative, immediate problem - return must be positive, and subtracting only makes it + // get smaller. If rhs > lhs, then it would also go negative, which is the other case + static SafeIntError Subtract( const __int64& lhs, const unsigned __int64& rhs, unsigned __int64& result ) + { + if( lhs >= 0 && (unsigned __int64)lhs >= rhs ) + { + result = (unsigned __int64)lhs - rhs; + return SafeIntNoError; + } + + E::SafeIntOnOverflow(); + return SafeIntArithmeticOverflow; + } +}; + +enum BinaryState +{ + BinaryState_OK, + BinaryState_Int8, + BinaryState_Int16, + BinaryState_Int32 +}; + +template < typename T, typename U > class BinaryMethod +{ +public: + enum + { + // If both operands are unsigned OR + // return type is smaller than rhs OR + // return type is larger and rhs is unsigned + // Then binary operations won't produce unexpected results + method = ( sizeof( T ) <= sizeof( U ) || + SafeIntCompare< T, U >::isBothUnsigned || + !IntTraits< U >::isSigned ) ? BinaryState_OK : + IntTraits< U >::isInt8 ? BinaryState_Int8 : + IntTraits< U >::isInt16 ? BinaryState_Int16 + : BinaryState_Int32 + }; +}; + +template < typename T, typename U, int Method = BinaryMethod< T, U >::method > class BinaryAndHelper; + +template < typename T, typename U > class BinaryAndHelper< T, U, BinaryState_OK > +{ +public: + static T And( T lhs, U rhs ){ return (T)( lhs & rhs ); } +}; + +template < typename T, typename U > class BinaryAndHelper< T, U, BinaryState_Int8 > +{ +public: + static T And( T lhs, U rhs ) + { + // cast forces sign extension to be zeros + _SAFEINT_BINARY_ASSERT( ( lhs & rhs ) == ( lhs & (unsigned __int8)rhs ) ); + return (T)( lhs & (unsigned __int8)rhs ); + } +}; + +template < typename T, typename U > class BinaryAndHelper< T, U, BinaryState_Int16 > +{ +public: + static T And( T lhs, U rhs ) + { + //cast forces sign extension to be zeros + _SAFEINT_BINARY_ASSERT( ( lhs & rhs ) == ( lhs & (unsigned __int16)rhs ) ); + return (T)( lhs & (unsigned __int16)rhs ); + } +}; + +template < typename T, typename U > class BinaryAndHelper< T, U, BinaryState_Int32 > +{ +public: + static T And( T lhs, U rhs ) + { + //cast forces sign extension to be zeros + _SAFEINT_BINARY_ASSERT( ( lhs & rhs ) == ( lhs & (unsigned __int32)rhs ) ); + return (T)( lhs & (unsigned __int32)rhs ); + } +}; + +template < typename T, typename U, int Method = BinaryMethod< T, U >::method > class BinaryOrHelper; + +template < typename T, typename U > class BinaryOrHelper< T, U, BinaryState_OK > +{ +public: + static T Or( T lhs, U rhs ){ return (T)( lhs | rhs ); } +}; + +template < typename T, typename U > class BinaryOrHelper< T, U, BinaryState_Int8 > +{ +public: + static T Or( T lhs, U rhs ) + { + //cast forces sign extension to be zeros + _SAFEINT_BINARY_ASSERT( ( lhs | rhs ) == ( lhs | (unsigned __int8)rhs ) ); + return (T)( lhs | (unsigned __int8)rhs ); + } +}; + +template < typename T, typename U > class BinaryOrHelper< T, U, BinaryState_Int16 > +{ +public: + static T Or( T lhs, U rhs ) + { + //cast forces sign extension to be zeros + _SAFEINT_BINARY_ASSERT( ( lhs | rhs ) == ( lhs | (unsigned __int16)rhs ) ); + return (T)( lhs | (unsigned __int16)rhs ); + } +}; + +template < typename T, typename U > class BinaryOrHelper< T, U, BinaryState_Int32 > +{ +public: + static T Or( T lhs, U rhs ) + { + //cast forces sign extension to be zeros + _SAFEINT_BINARY_ASSERT( ( lhs | rhs ) == ( lhs | (unsigned __int32)rhs ) ); + return (T)( lhs | (unsigned __int32)rhs ); + } +}; + +template ::method > class BinaryXorHelper; + +template < typename T, typename U > class BinaryXorHelper< T, U, BinaryState_OK > +{ +public: + static T Xor( T lhs, U rhs ){ return (T)( lhs ^ rhs ); } +}; + +template < typename T, typename U > class BinaryXorHelper< T, U, BinaryState_Int8 > +{ +public: + static T Xor( T lhs, U rhs ) + { + // cast forces sign extension to be zeros + _SAFEINT_BINARY_ASSERT( ( lhs ^ rhs ) == ( lhs ^ (unsigned __int8)rhs ) ); + return (T)( lhs ^ (unsigned __int8)rhs ); + } +}; + +template < typename T, typename U > class BinaryXorHelper< T, U, BinaryState_Int16 > +{ +public: + static T Xor( T lhs, U rhs ) + { + // cast forces sign extension to be zeros + _SAFEINT_BINARY_ASSERT( ( lhs ^ rhs ) == ( lhs ^ (unsigned __int16)rhs ) ); + return (T)( lhs ^ (unsigned __int16)rhs ); + } +}; + +template < typename T, typename U > class BinaryXorHelper< T, U, BinaryState_Int32 > +{ +public: + static T Xor( T lhs, U rhs ) + { + // cast forces sign extension to be zeros + _SAFEINT_BINARY_ASSERT( ( lhs ^ rhs ) == ( lhs ^ (unsigned __int32)rhs ) ); + return (T)( lhs ^ (unsigned __int32)rhs ); + } +}; + +#pragma warning(pop) +} // namespace details + +} // namespace utilities + +} // namespace msl + +#pragma pack(pop) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/search.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/search.h new file mode 100644 index 0000000000000000000000000000000000000000..d19f300ed53a49a7e7654590e739a0e123439121 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/search.h @@ -0,0 +1,13 @@ +// +// search.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Declarations of functions for sorting and searching. +// +#pragma once +#ifndef _INC_SEARCH // include guard for 3rd party interop +#define _INC_SEARCH + +#include +#endif // _INC_SEARCH diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/share.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/share.h new file mode 100644 index 0000000000000000000000000000000000000000..6710fdbb8853f394d18c7165e70928d94d38a0bc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/share.h @@ -0,0 +1,13 @@ +// +// share.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Defines the file sharing modes for the sopen() family of functions. +// +#pragma once +#ifndef _INC_SHARE // include guard for 3rd party interop +#define _INC_SHARE + +#include +#endif // _INC_SHARE diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/signal.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/signal.h new file mode 100644 index 0000000000000000000000000000000000000000..02f39444e1cd56f94608f4f61d99ce2927a9730f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/signal.h @@ -0,0 +1,72 @@ +// +// stdio.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C Standard Library header. +// +#pragma once +#ifndef _INC_SIGNAL // include guard for 3rd party interop +#define _INC_SIGNAL + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +typedef int sig_atomic_t; + +typedef void (__CRTDECL* _crt_signal_t)(int); + +#define NSIG 23 // maximum signal number + 1 + +// Signal types +#define SIGINT 2 // interrupt +#define SIGILL 4 // illegal instruction - invalid function image +#define SIGFPE 8 // floating point exception +#define SIGSEGV 11 // segment violation +#define SIGTERM 15 // Software termination signal from kill +#define SIGBREAK 21 // Ctrl-Break sequence +#define SIGABRT 22 // abnormal termination triggered by abort call + +#define SIGABRT_COMPAT 6 // SIGABRT compatible with other platforms, same as SIGABRT + +// Signal action codes +#define SIG_DFL ((_crt_signal_t)0) // default signal action +#define SIG_IGN ((_crt_signal_t)1) // ignore signal +#define SIG_GET ((_crt_signal_t)2) // return current value +#define SIG_SGE ((_crt_signal_t)3) // signal gets error +#define SIG_ACK ((_crt_signal_t)4) // acknowledge + +#ifdef _CORECRT_BUILD + // Internal use only! Not valid as an argument to signal(). + #define SIG_DIE ((_crt_signal_t)5) // terminate process +#endif + +// Signal error value (returned by signal call on error) +#define SIG_ERR ((_crt_signal_t)-1) // signal error value + + + +// Pointer to exception information pointers structure +_ACRTIMP void** __cdecl __pxcptinfoptrs(void); +#define _pxcptinfoptrs (*__pxcptinfoptrs()) + +// Function prototypes +#ifndef _M_CEE_PURE + _ACRTIMP _crt_signal_t __cdecl signal(_In_ int _Signal, _In_opt_ _crt_signal_t _Function); +#endif + +_ACRTIMP int __cdecl raise(_In_ int _Signal); + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_SIGNAL diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdalign.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdalign.h new file mode 100644 index 0000000000000000000000000000000000000000..4f2033ce950fce5c99f418ca0dab547378ebcd52 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdalign.h @@ -0,0 +1,31 @@ +// +// stdalign.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C Standard Library header. +// +#pragma once +#ifndef _INC_STDALIGN // include guard for 3rd party interop +#define _INC_STDALIGN + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS +_CRT_BEGIN_C_HEADER + +#if _CRT_HAS_C11 + +#define alignas _Alignas +#define alignof _Alignof +#define __alignas_is_defined 1 +#define __alignof_is_defined 1 + +#endif // _CRT_HAS_C11 + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_STDALIGN diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stddef.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stddef.h new file mode 100644 index 0000000000000000000000000000000000000000..c115e65eb651196e65f2c54b0541bc9983b9b401 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stddef.h @@ -0,0 +1,64 @@ +// +// stddef.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C Standard Library header. +// +#pragma once +#ifndef _INC_STDDEF // include guard for 3rd party interop +#define _INC_STDDEF + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#ifdef __cplusplus + namespace std + { + typedef decltype(__nullptr) nullptr_t; + } + + using ::std::nullptr_t; +#endif + + + +#if _CRT_FUNCTIONS_REQUIRED + + _ACRTIMP int* __cdecl _errno(void); + #define errno (*_errno()) + + _ACRTIMP errno_t __cdecl _set_errno(_In_ int _Value); + _ACRTIMP errno_t __cdecl _get_errno(_Out_ int* _Value); + +#endif // _CRT_FUNCTIONS_REQUIRED + + + +#if defined _MSC_VER && !defined _CRT_USE_BUILTIN_OFFSETOF + #ifdef __cplusplus + #define offsetof(s,m) ((::size_t)&reinterpret_cast((((s*)0)->m))) + #else + #define offsetof(s,m) ((size_t)&(((s*)0)->m)) + #endif +#else + #define offsetof(s,m) __builtin_offsetof(s,m) +#endif + +_ACRTIMP extern unsigned long __cdecl __threadid(void); +#define _threadid (__threadid()) +_ACRTIMP extern uintptr_t __cdecl __threadhandle(void); + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_STDDEF diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdio.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdio.h new file mode 100644 index 0000000000000000000000000000000000000000..96b8bbc070d66f74e9c374cfa3736137b52c3163 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdio.h @@ -0,0 +1,2448 @@ +// +// stdio.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C Standard Library header. +// +#pragma once +#ifndef _INC_STDIO // include guard for 3rd party interop +#define _INC_STDIO + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +/* Buffered I/O macros */ + +#define BUFSIZ 512 + + + +/* + * Default number of supported streams. _NFILE is confusing and obsolete, but + * supported anyway for backwards compatibility. + */ +#define _NFILE _NSTREAM_ + +#define _NSTREAM_ 512 + +/* + * Number of entries in _iob[] (declared below). Note that _NSTREAM_ must be + * greater than or equal to _IOB_ENTRIES. + */ +#define _IOB_ENTRIES 3 + +#define EOF (-1) + +#define _IOFBF 0x0000 +#define _IOLBF 0x0040 +#define _IONBF 0x0004 + + + +#define L_tmpnam 260 // _MAX_PATH +#if __STDC_WANT_SECURE_LIB__ + #define L_tmpnam_s L_tmpnam +#endif + + + +/* Seek method constants */ + +#define SEEK_CUR 1 +#define SEEK_END 2 +#define SEEK_SET 0 + + +#define FILENAME_MAX 260 +#define FOPEN_MAX 20 +#define _SYS_OPEN 20 +#define TMP_MAX _CRT_INT_MAX +#if __STDC_WANT_SECURE_LIB__ + #define TMP_MAX_S TMP_MAX + #define _TMP_MAX_S TMP_MAX +#endif + + +typedef __int64 fpos_t; + + + +#if _CRT_FUNCTIONS_REQUIRED + + _Check_return_opt_ + _ACRTIMP errno_t __cdecl _get_stream_buffer_pointers( + _In_ FILE* _Stream, + _Out_opt_ char*** _Base, + _Out_opt_ char*** _Pointer, + _Out_opt_ int** _Count + ); + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Narrow Character Stream I/O Functions + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl clearerr_s( + _Inout_ FILE* _Stream + ); + + _Check_return_wat_ + _Success_(return == 0) + _ACRTIMP errno_t __cdecl fopen_s( + _Outptr_result_nullonfailure_ FILE** _Stream, + _In_z_ char const* _FileName, + _In_z_ char const* _Mode + ); + + _Check_return_opt_ + _Success_(return != 0) + _ACRTIMP size_t __cdecl fread_s( + _Out_writes_bytes_to_(_BufferSize, _ElementSize * _ElementCount) void* _Buffer, + _In_range_(>=, _ElementSize * _ElementCount) size_t _BufferSize, + _In_ size_t _ElementSize, + _In_ size_t _ElementCount, + _Inout_ FILE* _Stream + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl freopen_s( + _Outptr_result_maybenull_ FILE** _Stream, + _In_z_ char const* _FileName, + _In_z_ char const* _Mode, + _Inout_ FILE* _OldStream + ); + + _Success_(return != 0) + _ACRTIMP char* __cdecl gets_s( + _Out_writes_z_(_Size) char* _Buffer, + _In_ rsize_t _Size + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl tmpfile_s( + _Out_opt_ _Deref_post_valid_ FILE** _Stream + ); + + _Success_(return == 0) + _Check_return_wat_ + _ACRTIMP errno_t __cdecl tmpnam_s( + _Out_writes_z_(_Size) char* _Buffer, + _In_ rsize_t _Size + ); + + #endif + + _ACRTIMP void __cdecl clearerr( + _Inout_ FILE* _Stream + ); + + _Success_(return != -1) + _Check_return_opt_ + _ACRTIMP int __cdecl fclose( + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _fcloseall(void); + + _Check_return_ + _ACRTIMP FILE* __cdecl _fdopen( + _In_ int _FileHandle, + _In_z_ char const* _Mode + ); + + _Check_return_ + _ACRTIMP int __cdecl feof( + _In_ FILE* _Stream + ); + + _Check_return_ + _ACRTIMP int __cdecl ferror( + _In_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl fflush( + _Inout_opt_ FILE* _Stream + ); + + _Success_(return != EOF) + _Check_return_opt_ + _ACRTIMP int __cdecl fgetc( + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _fgetchar(void); + + _Success_(return != EOF) + _Check_return_opt_ + _ACRTIMP int __cdecl fgetpos( + _Inout_ FILE* _Stream, + _Out_ fpos_t* _Position + ); + + _Success_(return == _Buffer) + _Check_return_opt_ + _ACRTIMP char* __cdecl fgets( + _Out_writes_z_(_MaxCount) char* _Buffer, + _In_ int _MaxCount, + _Inout_ FILE* _Stream + ); + + _Check_return_ + _ACRTIMP int __cdecl _fileno( + _In_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _flushall(void); + + _Check_return_ _CRT_INSECURE_DEPRECATE(fopen_s) + _ACRTIMP FILE* __cdecl fopen( + _In_z_ char const* _FileName, + _In_z_ char const* _Mode + ); + + + _Success_(return != EOF) + _Check_return_opt_ + _ACRTIMP int __cdecl fputc( + _In_ int _Character, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _fputchar( + _In_ int _Character + ); + + _Success_(return != EOF) + _Check_return_opt_ + _ACRTIMP int __cdecl fputs( + _In_z_ char const* _Buffer, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP size_t __cdecl fread( + _Out_writes_bytes_(_ElementSize * _ElementCount) void* _Buffer, + _In_ size_t _ElementSize, + _In_ size_t _ElementCount, + _Inout_ FILE* _Stream + ); + + _Success_(return != 0) + _Check_return_ _CRT_INSECURE_DEPRECATE(freopen_s) + _ACRTIMP FILE* __cdecl freopen( + _In_z_ char const* _FileName, + _In_z_ char const* _Mode, + _Inout_ FILE* _Stream + ); + + _Check_return_ + _ACRTIMP FILE* __cdecl _fsopen( + _In_z_ char const* _FileName, + _In_z_ char const* _Mode, + _In_ int _ShFlag + ); + + _Success_(return == 0) + _Check_return_opt_ + _ACRTIMP int __cdecl fsetpos( + _Inout_ FILE* _Stream, + _In_ fpos_t const* _Position + ); + + _Success_(return == 0) + _Check_return_opt_ + _ACRTIMP int __cdecl fseek( + _Inout_ FILE* _Stream, + _In_ long _Offset, + _In_ int _Origin + ); + + _Success_(return == 0) + _Check_return_opt_ + _ACRTIMP int __cdecl _fseeki64( + _Inout_ FILE* _Stream, + _In_ __int64 _Offset, + _In_ int _Origin + ); + + _Success_(return != -1) + _Check_return_ + _ACRTIMP long __cdecl ftell( + _Inout_ FILE* _Stream + ); + + _Success_(return != -1) + _Check_return_ + _ACRTIMP __int64 __cdecl _ftelli64( + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP size_t __cdecl fwrite( + _In_reads_bytes_(_ElementSize * _ElementCount) void const* _Buffer, + _In_ size_t _ElementSize, + _In_ size_t _ElementCount, + _Inout_ FILE* _Stream + ); + + _Success_(return != EOF) + _Check_return_ + _ACRTIMP int __cdecl getc( + _Inout_ FILE* _Stream + ); + + _Check_return_ + _ACRTIMP int __cdecl getchar(void); + + _Check_return_ + _ACRTIMP int __cdecl _getmaxstdio(void); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + char*, gets_s, + char, _Buffer) + + _Check_return_ + _ACRTIMP int __cdecl _getw( + _Inout_ FILE* _Stream + ); + + _ACRTIMP void __cdecl perror( + _In_opt_z_ char const* _ErrorMessage + ); + + #if defined _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + _Success_(return != -1) + _Check_return_opt_ + _DCRTIMP int __cdecl _pclose( + _Inout_ FILE* _Stream + ); + + _Check_return_ + _DCRTIMP FILE* __cdecl _popen( + _In_z_ char const* _Command, + _In_z_ char const* _Mode + ); + + #endif + + _Success_(return != EOF) + _Check_return_opt_ + _ACRTIMP int __cdecl putc( + _In_ int _Character, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl putchar( + _In_ int _Character + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl puts( + _In_z_ char const* _Buffer + ); + + _Success_(return != -1) + _Check_return_opt_ + _ACRTIMP int __cdecl _putw( + _In_ int _Word, + _Inout_ FILE* _Stream + ); + + _ACRTIMP int __cdecl remove( + _In_z_ char const* _FileName + ); + + _Check_return_ + _ACRTIMP int __cdecl rename( + _In_z_ char const* _OldFileName, + _In_z_ char const* _NewFileName + ); + + _ACRTIMP int __cdecl _unlink( + _In_z_ char const* _FileName + ); + + #if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + _CRT_NONSTDC_DEPRECATE(_unlink) + _ACRTIMP int __cdecl unlink( + _In_z_ char const* _FileName + ); + + #endif + + _ACRTIMP void __cdecl rewind( + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _rmtmp(void); + + _CRT_INSECURE_DEPRECATE(setvbuf) + _ACRTIMP void __cdecl setbuf( + _Inout_ FILE* _Stream, + _Inout_updates_opt_(BUFSIZ) _Post_readable_size_(0) char* _Buffer + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _setmaxstdio( + _In_ int _Maximum + ); + + _Success_(return == 0) + _Check_return_opt_ + _ACRTIMP int __cdecl setvbuf( + _Inout_ FILE* _Stream, + _Inout_updates_opt_(_Size) char* _Buffer, + _In_ int _Mode, + _In_ size_t _Size + ); + + #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma push_macro("_tempnam") + #undef _tempnam + #endif + + _Check_return_ + _ACRTIMP _CRTALLOCATOR char* __cdecl _tempnam( + _In_opt_z_ char const* _DirectoryName, + _In_opt_z_ char const* _FilePrefix + ); + + #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma pop_macro("_tempnam") + #endif + + _Check_return_ _CRT_INSECURE_DEPRECATE(tmpfile_s) + _ACRTIMP FILE* __cdecl tmpfile(void); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + _Success_(return == 0) + errno_t, tmpnam_s, + _Always_(_Post_z_) char, _Buffer + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + _Success_(return != 0) + char*, __RETURN_POLICY_DST, _ACRTIMP, tmpnam, + _Pre_maybenull_ _Always_(_Post_z_), char, _Buffer + ) + + _Success_(return != EOF) + _Check_return_opt_ + _ACRTIMP int __cdecl ungetc( + _In_ int _Character, + _Inout_ FILE* _Stream + ); + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // I/O Synchronization and _nolock family of I/O functions + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _ACRTIMP void __cdecl _lock_file( + _Inout_ FILE* _Stream + ); + + _ACRTIMP void __cdecl _unlock_file( + _Inout_ FILE* _Stream + ); + + _Success_(return != EOF) + _Check_return_opt_ + _ACRTIMP int __cdecl _fclose_nolock( + _Inout_ FILE* _Stream + ); + + _Success_(return != EOF) + _Check_return_opt_ + _ACRTIMP int __cdecl _fflush_nolock( + _Inout_opt_ FILE* _Stream + ); + + _Success_(return != EOF) + _Check_return_opt_ + _ACRTIMP int __cdecl _fgetc_nolock( + _Inout_ FILE* _Stream + ); + + _Success_(return != EOF) + _Check_return_opt_ + _ACRTIMP int __cdecl _fputc_nolock( + _In_ int _Character, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP size_t __cdecl _fread_nolock( + _Out_writes_bytes_(_ElementSize * _ElementCount) void* _Buffer, + _In_ size_t _ElementSize, + _In_ size_t _ElementCount, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _Success_(return != 0) + _ACRTIMP size_t __cdecl _fread_nolock_s( + _Out_writes_bytes_to_(_BufferSize, _ElementSize * _ElementCount) void* _Buffer, + _In_range_(>=, _ElementSize * _ElementCount) size_t _BufferSize, + _In_ size_t _ElementSize, + _In_ size_t _ElementCount, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _fseek_nolock( + _Inout_ FILE* _Stream, + _In_ long _Offset, + _In_ int _Origin + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _fseeki64_nolock( + _Inout_ FILE* _Stream, + _In_ __int64 _Offset, + _In_ int _Origin + ); + + _Check_return_ + _ACRTIMP long __cdecl _ftell_nolock( + _Inout_ FILE* _Stream + ); + + _Check_return_ + _ACRTIMP __int64 __cdecl _ftelli64_nolock( + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP size_t __cdecl _fwrite_nolock( + _In_reads_bytes_(_ElementSize * _ElementCount) void const* _Buffer, + _In_ size_t _ElementSize, + _In_ size_t _ElementCount, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _getc_nolock( + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _putc_nolock( + _In_ int _Character, + _Inout_ FILE* _Stream + ); + + _Check_return_opt_ + _ACRTIMP int __cdecl _ungetc_nolock( + _In_ int _Character, + _Inout_ FILE* _Stream + ); + + #define _getchar_nolock() _getc_nolock(stdin) + #define _putchar_nolock(_Ch) _putc_nolock(_Ch, stdout) + #define _getwchar_nolock() _getwc_nolock(stdin) + #define _putwchar_nolock(_Ch) _putwc_nolock(_Ch, stdout) + + + + #if defined _CRT_DISABLE_PERFCRIT_LOCKS && !defined _DLL + #define fclose(_Stream) _fclose_nolock(_Stream) + #define fflush(_Stream) _fflush_nolock(_Stream) + #define fgetc(_Stream) _fgetc_nolock(_Stream) + #define fputc(_Ch, _Stream) _fputc_nolock(_Ch, _Stream) + #define fread(_DstBuf, _ElementSize, _Count, _Stream) _fread_nolock(_DstBuf, _ElementSize, _Count, _Stream) + #define fread_s(_DstBuf, _DstSize, _ElementSize, _Count, _Stream) _fread_nolock_s(_DstBuf, _DstSize, _ElementSize, _Count, _Stream) + #define fseek(_Stream, _Offset, _Origin) _fseek_nolock(_Stream, _Offset, _Origin) + #define _fseeki64(_Stream, _Offset, _Origin) _fseeki64_nolock(_Stream, _Offset, _Origin) + #define ftell(_Stream) _ftell_nolock(_Stream) + #define _ftelli64(_Stream) _ftelli64_nolock(_Stream) + #define fwrite(_SrcBuf, _ElementSize, _Count, _Stream) _fwrite_nolock(_SrcBuf, _ElementSize, _Count, _Stream) + #define getc(_Stream) _getc_nolock(_Stream) + #define putc(_Ch, _Stream) _putc_nolock(_Ch, _Stream) + #define ungetc(_Ch, _Stream) _ungetc_nolock(_Ch, _Stream) + #endif + + + + _ACRTIMP int* __cdecl __p__commode(void); + + #ifdef _CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY + extern int _commode; + #else + #define _commode (*__p__commode()) + #endif + + + + // Variadic functions are not supported in managed code under /clr + #if defined _M_CEE_MIXED + #pragma managed(push, off) + #endif + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Narrow Character Formatted Output Functions (Stream) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _ACRTIMP int __cdecl __stdio_common_vfprintf( + _In_ unsigned __int64 _Options, + _Inout_ FILE* _Stream, + _In_z_ _Printf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _ACRTIMP int __cdecl __stdio_common_vfprintf_s( + _In_ unsigned __int64 _Options, + _Inout_ FILE* _Stream, + _In_z_ _Printf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Success_(return >= 0) + _ACRTIMP int __cdecl __stdio_common_vfprintf_p( + _In_ unsigned __int64 _Options, + _Inout_ FILE* _Stream, + _In_z_ _Printf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfprintf_l( + _Inout_ FILE* const _Stream, + _In_z_ char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vfprintf( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfprintf_l(_Stream, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfprintf_s_l( + _Inout_ FILE* const _Stream, + _In_z_ char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vfprintf_s(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList); + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vfprintf_s( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfprintf_s_l(_Stream, _Format, NULL, _ArgList); + } + #endif + + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfprintf_p_l( + _Inout_ FILE* const _Stream, + _In_z_ char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vfprintf_p(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfprintf_p( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfprintf_p_l(_Stream, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vprintf_l( + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfprintf_l(stdout, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vprintf( + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfprintf_l(stdout, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vprintf_s_l( + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfprintf_s_l(stdout, _Format, _Locale, _ArgList); + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vprintf_s( + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfprintf_s_l(stdout, _Format, NULL, _ArgList); + } + #endif + + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vprintf_p_l( + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfprintf_p_l(stdout, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vprintf_p( + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfprintf_p_l(stdout, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _fprintf_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfprintf_l(_Stream, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL fprintf( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfprintf_l(_Stream, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _ACRTIMP int __cdecl _set_printf_count_output( + _In_ int _Value + ); + + _ACRTIMP int __cdecl _get_printf_count_output(void); + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _fprintf_s_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfprintf_s_l(_Stream, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL fprintf_s( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfprintf_s_l(_Stream, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _fprintf_p_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfprintf_p_l(_Stream, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _fprintf_p( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfprintf_p_l(_Stream, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _printf_l( + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfprintf_l(stdout, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL printf( + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfprintf_l(stdout, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _printf_s_l( + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfprintf_s_l(stdout, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL printf_s( + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfprintf_s_l(stdout, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _printf_p_l( + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfprintf_p_l(stdout, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _printf_p( + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfprintf_p_l(stdout, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Narrow Character Formatted Input Functions (Stream) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _ACRTIMP int __cdecl __stdio_common_vfscanf( + _In_ unsigned __int64 _Options, + _Inout_ FILE* _Stream, + _In_z_ _Scanf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _Arglist + ); + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfscanf_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vfscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS, + _Stream, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vfscanf( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfscanf_l(_Stream, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vfscanf_s_l( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vfscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, + _Stream, _Format, _Locale, _ArgList); + } + #endif + + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vfscanf_s( + _Inout_ FILE* const _Stream, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfscanf_s_l(_Stream, _Format, NULL, _ArgList); + } + #endif + + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vscanf_l( + _In_z_ _Printf_format_string_ char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfscanf_l(stdin, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vscanf( + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfscanf_l(stdin, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vscanf_s_l( + _In_z_ _Printf_format_string_ char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfscanf_s_l(stdin, _Format, _Locale, _ArgList); + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vscanf_s( + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vfscanf_s_l(stdin, _Format, NULL, _ArgList); + } + #endif + + #endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_fscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _fscanf_l( + _Inout_ FILE* const _Stream, + _In_z_ _Scanf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfscanf_l(_Stream, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_ _CRT_INSECURE_DEPRECATE(fscanf_s) + _CRT_STDIO_INLINE int __CRTDECL fscanf( + _Inout_ FILE* const _Stream, + _In_z_ _Scanf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfscanf_l(_Stream, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _fscanf_s_l( + _Inout_ FILE* const _Stream, + _In_z_ _Scanf_s_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfscanf_s_l(_Stream, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL fscanf_s( + _Inout_ FILE* const _Stream, + _In_z_ _Scanf_s_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfscanf_s_l(_Stream, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_scanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _scanf_l( + _In_z_ _Scanf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfscanf_l(stdin, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_ _CRT_INSECURE_DEPRECATE(scanf_s) + _CRT_STDIO_INLINE int __CRTDECL scanf( + _In_z_ _Scanf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfscanf_l(stdin, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _scanf_s_l( + _In_z_ _Scanf_s_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vfscanf_s_l(stdin, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL scanf_s( + _In_z_ _Scanf_s_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vfscanf_s_l(stdin, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Narrow Character Formatted Output Functions (String) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _Success_(return >= 0) + _ACRTIMP int __cdecl __stdio_common_vsprintf( + _In_ unsigned __int64 _Options, + _Out_writes_opt_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_z_ _Printf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Success_(return >= 0) + _ACRTIMP int __cdecl __stdio_common_vsprintf_s( + _In_ unsigned __int64 _Options, + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_z_ _Printf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Success_(return >= 0) + _ACRTIMP int __cdecl __stdio_common_vsnprintf_s( + _In_ unsigned __int64 _Options, + _Out_writes_opt_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_ size_t _MaxCount, + _In_z_ _Printf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Success_(return >= 0) + _ACRTIMP int __cdecl __stdio_common_vsprintf_p( + _In_ unsigned __int64 _Options, + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_z_ _Printf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vsnprintf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _vsnprintf_l( + _Out_writes_opt_(_BufferCount) _Post_maybez_ char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vsprintf( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsnprintf( + _Out_writes_opt_(_BufferCount) _Post_maybez_ char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsnprintf_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + } + #endif + + #if defined vsnprintf + // This definition of vsnprintf will generate "warning C4005: 'vsnprintf': macro + // redefinition" with a subsequent line indicating where the previous definition + // of vsnprintf was. This makes it easier to find where vsnprintf was defined. + #pragma warning(push, 1) + #pragma warning(1: 4005) // macro redefinition + #define vsnprintf Do not define vsnprintf as a macro + #pragma warning(pop) + #error Macro definition of vsnprintf conflicts with Standard Library function declaration + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vsnprintf( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vsprintf( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, + _Buffer, _BufferCount, _Format, NULL, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_vsprintf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _vsprintf_l( + _Pre_notnull_ _Always_(_Post_z_) char* const _Buffer, + _In_z_ char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsnprintf_l(_Buffer, (size_t)-1, _Format, _Locale, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(vsprintf_s) + _CRT_STDIO_INLINE int __CRTDECL vsprintf( + _Pre_notnull_ _Always_(_Post_z_) char* const _Buffer, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsnprintf_l(_Buffer, (size_t)-1, _Format, NULL, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsprintf_s_l( + _Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vsprintf_s( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vsprintf_s( + _Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsprintf_s_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + } + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + _Success_(return >= 0) + int, vsprintf_s, + _Always_(_Post_z_) char, _Buffer, + _In_z_ _Printf_format_string_ char const*, _Format, + va_list, _ArgList + ) + + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsprintf_p_l( + _Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vsprintf_p( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsprintf_p( + _Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsprintf_p_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsnprintf_s_l( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_ size_t const _MaxCount, + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vsnprintf_s( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsnprintf_s( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_ size_t const _MaxCount, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, NULL, _ArgList); + } + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3( + _Success_(return >= 0) + int, _vsnprintf_s, + _Always_(_Post_z_) char, _Buffer, + _In_ size_t, _BufferCount, + _In_z_ _Printf_format_string_ char const*, _Format, + va_list, _ArgList + ) + + #if __STDC_WANT_SECURE_LIB__ + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vsnprintf_s( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_ size_t const _MaxCount, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, NULL, _ArgList); + } + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3( + _Success_(return >= 0) + int, vsnprintf_s, + _Always_(_Post_z_) char, _Buffer, + _In_ size_t, _BufferCount, + _In_z_ _Printf_format_string_ char const*, _Format, + va_list, _ArgList + ) + + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vscprintf_l( + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vsprintf( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, + NULL, 0, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _vscprintf( + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vscprintf_l(_Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vscprintf_p_l( + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vsprintf_p( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, + NULL, 0, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _vscprintf_p( + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vscprintf_p_l(_Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsnprintf_c_l( + _Out_writes_opt_(_BufferCount) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(2) char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int const _Result = __stdio_common_vsprintf( + _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + + return _Result < 0 ? -1 : _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsnprintf_c( + _Out_writes_opt_(_BufferCount) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsnprintf_c_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_sprintf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _sprintf_l( + _Pre_notnull_ _Always_(_Post_z_) char* const _Buffer, + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + + _Result = _vsprintf_l(_Buffer, _Format, _Locale, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL sprintf( + _Pre_notnull_ _Always_(_Post_z_) char* const _Buffer, + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + + _Result = _vsprintf_l(_Buffer, _Format, NULL, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_ARGLIST( + _Success_(return >= 0) + int, __RETURN_POLICY_SAME, __EMPTY_DECLSPEC, __CRTDECL, sprintf, vsprintf, + _Pre_notnull_ _Always_(_Post_z_), char, _Buffer, + _In_z_ _Printf_format_string_ char const*, _Format + ) + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _sprintf_s_l( + _Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vsprintf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL sprintf_s( + _Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vsprintf_s_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1_ARGLIST( + _Success_(return >= 0) + int, sprintf_s, vsprintf_s, + _Always_(_Post_z_) char, _Buffer, + _In_z_ _Printf_format_string_ char const*, _Format + ) + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _sprintf_p_l( + _Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vsprintf_p_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _sprintf_p( + _Out_writes_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vsprintf_p_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snprintf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _snprintf_l( + _Out_writes_opt_(_BufferCount) _Post_maybez_ char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + + _Result = _vsnprintf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if defined snprintf + // This definition of snprintf will generate "warning C4005: 'snprintf': macro + // redefinition" with a subsequent line indicating where the previous definition + // of snprintf was. This makes it easier to find where snprintf was defined. + #pragma warning(push, 1) + #pragma warning(1: 4005) // macro redefinition + #define snprintf Do not define snprintf as a macro + #pragma warning(pop) + #error Macro definition of snprintf conflicts with Standard Library function declaration + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL snprintf( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = vsnprintf(_Buffer, _BufferCount, _Format, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snprintf( + _Out_writes_opt_(_BufferCount) _Post_maybez_ char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vsnprintf(_Buffer, _BufferCount, _Format, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_ARGLIST_EX( + _Success_(return >= 0) + int, __RETURN_POLICY_SAME, __EMPTY_DECLSPEC, __CRTDECL, _snprintf, _vsnprintf, + _Pre_notnull_ _Post_maybez_ char, + _Out_writes_opt_(_BufferCount) _Post_maybez_, char, _Buffer, + _In_ size_t, _BufferCount, + _In_z_ _Printf_format_string_ char const*, _Format + ) + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snprintf_c_l( + _Out_writes_opt_(_BufferCount) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vsnprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snprintf_c( + _Out_writes_opt_(_BufferCount) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vsnprintf_c_l(_Buffer, _BufferCount, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snprintf_s_l( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_ size_t const _MaxCount, + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Success_(return >= 0) + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snprintf_s( + _Out_writes_opt_(_BufferCount) _Always_(_Post_z_) char* const _Buffer, + _In_ size_t const _BufferCount, + _In_ size_t const _MaxCount, + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2_ARGLIST( + _Success_(return >= 0) + int, _snprintf_s, _vsnprintf_s, + _Always_(_Post_z_) char, _Buffer, + _In_ size_t, _BufferCount, + _In_z_ _Printf_format_string_ char const*, _Format + ) + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _scprintf_l( + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vscprintf_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _scprintf( + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vscprintf_l(_Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _scprintf_p_l( + _In_z_ _Printf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vscprintf_p_l(_Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_ + _CRT_STDIO_INLINE int __CRTDECL _scprintf_p( + _In_z_ _Printf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vscprintf_p(_Format, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Narrow Character Formatted Input Functions (String) + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + _ACRTIMP int __cdecl __stdio_common_vsscanf( + _In_ unsigned __int64 _Options, + _In_reads_(_BufferCount) _Pre_z_ char const* _Buffer, + _In_ size_t _BufferCount, + _In_z_ _Scanf_format_string_params_(2) char const* _Format, + _In_opt_ _locale_t _Locale, + va_list _ArgList + ); + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsscanf_l( + _In_z_ char const* const _Buffer, + _In_z_ _Printf_format_string_ char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vsscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS, + _Buffer, (size_t)-1, _Format, _Locale, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vsscanf( + _In_z_ char const* const _Buffer, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsscanf_l(_Buffer, _Format, NULL, _ArgList); + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _vsscanf_s_l( + _In_z_ char const* const _Buffer, + _In_z_ _Printf_format_string_ char const* const _Format, + _In_opt_ _locale_t const _Locale, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return __stdio_common_vsscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, + _Buffer, (size_t)-1, _Format, _Locale, _ArgList); + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + #pragma warning(push) + #pragma warning(disable: 6530) // Unrecognized SAL format string + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL vsscanf_s( + _In_z_ char const* const _Buffer, + _In_z_ _Printf_format_string_ char const* const _Format, + va_list _ArgList + ) + #if defined _NO_CRT_STDIO_INLINE + ; + #else + { + return _vsscanf_s_l(_Buffer, _Format, NULL, _ArgList); + } + #endif + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + int, vsscanf_s, + _In_z_ char const, _Buffer, + _In_z_ _Printf_format_string_ char const*, _Format, + va_list, _ArgList + ) + + #pragma warning(pop) + + #endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_sscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _sscanf_l( + _In_z_ char const* const _Buffer, + _In_z_ _Scanf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vsscanf_l(_Buffer, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_ _CRT_INSECURE_DEPRECATE(sscanf_s) + _CRT_STDIO_INLINE int __CRTDECL sscanf( + _In_z_ char const* const _Buffer, + _In_z_ _Scanf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + _Result = _vsscanf_l(_Buffer, _Format, NULL, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _sscanf_s_l( + _In_z_ char const* const _Buffer, + _In_z_ _Scanf_s_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + _Result = _vsscanf_s_l(_Buffer, _Format, _Locale, _ArgList); + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #if __STDC_WANT_SECURE_LIB__ + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL sscanf_s( + _In_z_ char const* const _Buffer, + _In_z_ _Scanf_s_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + + _Result = vsscanf_s(_Buffer, _Format, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #endif + + #pragma warning(push) + #pragma warning(disable: 6530) // Unrecognized SAL format string + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snscanf_s_l) + _CRT_STDIO_INLINE int __CRTDECL _snscanf_l( + _In_reads_bytes_(_BufferCount) _Pre_z_ char const* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Scanf_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + + _Result = __stdio_common_vsscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ _CRT_INSECURE_DEPRECATE(_snscanf_s) + _CRT_STDIO_INLINE int __CRTDECL _snscanf( + _In_reads_bytes_(_BufferCount) _Pre_z_ char const* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Scanf_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + + _Result = __stdio_common_vsscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS, + _Buffer, _BufferCount, _Format, NULL, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snscanf_s_l( + _In_reads_bytes_(_BufferCount) _Pre_z_ char const* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Scanf_s_format_string_params_(0) char const* const _Format, + _In_opt_ _locale_t const _Locale, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Locale); + + _Result = __stdio_common_vsscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, + _Buffer, _BufferCount, _Format, _Locale, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + _Check_return_opt_ + _CRT_STDIO_INLINE int __CRTDECL _snscanf_s( + _In_reads_bytes_(_BufferCount) _Pre_z_ char const* const _Buffer, + _In_ size_t const _BufferCount, + _In_z_ _Scanf_s_format_string_ char const* const _Format, + ...) + #if defined _NO_CRT_STDIO_INLINE // SCANF + ; + #else + { + int _Result; + va_list _ArgList; + __crt_va_start(_ArgList, _Format); + + _Result = __stdio_common_vsscanf( + _CRT_INTERNAL_LOCAL_SCANF_OPTIONS | _CRT_INTERNAL_SCANF_SECURECRT, + _Buffer, _BufferCount, _Format, NULL, _ArgList); + + __crt_va_end(_ArgList); + return _Result; + } + #endif + + #pragma warning(pop) + + #if defined _M_CEE_MIXED + #pragma managed(pop) + #endif + + + + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + // + // Non-ANSI Names for Compatibility + // + //-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + #if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + #define SYS_OPEN _SYS_OPEN + + #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma push_macro("tempnam") + #undef tempnam + #endif + + _CRT_NONSTDC_DEPRECATE(_tempnam) + _ACRTIMP char* __cdecl tempnam( + _In_opt_z_ char const* _Directory, + _In_opt_z_ char const* _FilePrefix + ); + + #if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma pop_macro("tempnam") + #endif + + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_fcloseall) _ACRTIMP int __cdecl fcloseall(void); + _Check_return_ _CRT_NONSTDC_DEPRECATE(_fdopen) _ACRTIMP FILE* __cdecl fdopen(_In_ int _FileHandle, _In_z_ char const* _Format); + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_fgetchar) _ACRTIMP int __cdecl fgetchar(void); + _Check_return_ _CRT_NONSTDC_DEPRECATE(_fileno) _ACRTIMP int __cdecl fileno(_In_ FILE* _Stream); + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_flushall) _ACRTIMP int __cdecl flushall(void); + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_fputchar) _ACRTIMP int __cdecl fputchar(_In_ int _Ch); + _Check_return_ _CRT_NONSTDC_DEPRECATE(_getw) _ACRTIMP int __cdecl getw(_Inout_ FILE* _Stream); + _Check_return_opt_ _CRT_NONSTDC_DEPRECATE(_putw) _ACRTIMP int __cdecl putw(_In_ int _Ch, _Inout_ FILE* _Stream); + _Check_return_ _CRT_NONSTDC_DEPRECATE(_rmtmp) _ACRTIMP int __cdecl rmtmp(void); + + #endif // _CRT_INTERNAL_NONSTDC_NAMES +#endif // _CRT_FUNCTIONS_REQUIRED + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_STDIO diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdlib.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdlib.h new file mode 100644 index 0000000000000000000000000000000000000000..5047fe3ff5b10616ff555a46b46085d71f10214c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdlib.h @@ -0,0 +1,1362 @@ +// +// stdlib.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C Standard Library header. +// +#pragma once +#ifndef _INC_STDLIB // include guard for 3rd party interop +#define _INC_STDLIB + +#include +#include +#include +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#ifndef _countof + #define _countof __crt_countof +#endif + + + +// Minimum and maximum macros +#define __max(a,b) (((a) > (b)) ? (a) : (b)) +#define __min(a,b) (((a) < (b)) ? (a) : (b)) + + + +_ACRTIMP void __cdecl _swab( + _Inout_updates_(_SizeInBytes) _Post_readable_size_(_SizeInBytes) char* _Buf1, + _Inout_updates_(_SizeInBytes) _Post_readable_size_(_SizeInBytes) char* _Buf2, + _In_ int _SizeInBytes + ); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Exit and Abort +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// Argument values for exit() +#define EXIT_SUCCESS 0 +#define EXIT_FAILURE 1 + +#if _CRT_FUNCTIONS_REQUIRED + _ACRTIMP __declspec(noreturn) void __cdecl exit(_In_ int _Code); + _ACRTIMP __declspec(noreturn) void __cdecl _exit(_In_ int _Code); + _ACRTIMP __declspec(noreturn) void __cdecl _Exit(_In_ int _Code); + _ACRTIMP __declspec(noreturn) void __cdecl quick_exit(_In_ int _Code); + _ACRTIMP __declspec(noreturn) void __cdecl abort(void); +#endif // _CRT_FUNCTIONS_REQUIRED + +// Argument values for _set_abort_behavior(). +#define _WRITE_ABORT_MSG 0x1 // debug only, has no effect in release +#define _CALL_REPORTFAULT 0x2 + +_ACRTIMP unsigned int __cdecl _set_abort_behavior( + _In_ unsigned int _Flags, + _In_ unsigned int _Mask + ); + + + +#ifndef _CRT_ONEXIT_T_DEFINED + #define _CRT_ONEXIT_T_DEFINED + + typedef int (__CRTDECL* _onexit_t)(void); + #ifdef _M_CEE + typedef int (__clrcall* _onexit_m_t)(void); + #endif +#endif + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + // Non-ANSI name for compatibility + #define onexit_t _onexit_t +#endif + + + +#ifdef _M_CEE + #pragma warning (push) + #pragma warning (disable: 4985) // Attributes not present on previous declaration + + _Check_return_ int __clrcall _atexit_m_appdomain(_In_opt_ void (__clrcall* _Function)(void)); + + _onexit_m_t __clrcall _onexit_m_appdomain(_onexit_m_t _Function); + + #ifdef _M_CEE_MIXED + #ifdef __cplusplus + [System::Security::SecurityCritical] + #endif + _Check_return_ int __clrcall _atexit_m(_In_opt_ void (__clrcall* _Function)(void)); + + _onexit_m_t __clrcall _onexit_m(_onexit_m_t _Function); + #else + #ifdef __cplusplus + [System::Security::SecurityCritical] + #endif + _Check_return_ inline int __clrcall _atexit_m(_In_opt_ void (__clrcall* _Function)(void)) + { + return _atexit_m_appdomain(_Function); + } + + inline _onexit_m_t __clrcall _onexit_m(_onexit_t _Function) + { + return _onexit_m_appdomain(_Function); + } + #endif + #pragma warning (pop) +#endif + + + +#ifdef _M_CEE_PURE + // In pure mode, atexit is the same as atexit_m_appdomain + extern "C++" + { + + #ifdef __cplusplus + [System::Security::SecurityCritical] + #endif + inline int __clrcall atexit(void (__clrcall* _Function)(void)) + { + return _atexit_m_appdomain(_Function); + } + + inline _onexit_t __clrcall _onexit(_onexit_t _Function) + { + return _onexit_m_appdomain(_Function); + } + + } // extern "C++" +#else + int __cdecl atexit(void (__cdecl*)(void)); + _onexit_t __cdecl _onexit(_In_opt_ _onexit_t _Func); +#endif + +int __cdecl at_quick_exit(void (__cdecl*)(void)); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Global State (errno, global handlers, etc.) +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifndef _M_CEE_PURE + // a purecall handler procedure. Never returns normally + typedef void (__cdecl* _purecall_handler)(void); + + // Invalid parameter handler function pointer type + typedef void (__cdecl* _invalid_parameter_handler)( + wchar_t const*, + wchar_t const*, + wchar_t const*, + unsigned int, + uintptr_t + ); + + // Establishes a purecall handler + _VCRTIMP _purecall_handler __cdecl _set_purecall_handler( + _In_opt_ _purecall_handler _Handler + ); + + _VCRTIMP _purecall_handler __cdecl _get_purecall_handler(void); + + // Establishes an invalid parameter handler + _ACRTIMP _invalid_parameter_handler __cdecl _set_invalid_parameter_handler( + _In_opt_ _invalid_parameter_handler _Handler + ); + + _ACRTIMP _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(void); + + _ACRTIMP _invalid_parameter_handler __cdecl _set_thread_local_invalid_parameter_handler( + _In_opt_ _invalid_parameter_handler _Handler + ); + + _ACRTIMP _invalid_parameter_handler __cdecl _get_thread_local_invalid_parameter_handler(void); +#endif + + +#if defined __cplusplus && defined _M_CEE_PURE +extern "C++" +{ + typedef void (__clrcall* _purecall_handler)(void); + typedef _purecall_handler _purecall_handler_m; + + _MRTIMP _purecall_handler __cdecl _set_purecall_handler( + _In_opt_ _purecall_handler _Handler + ); +} // extern "C++" +#endif + + + +// Argument values for _set_error_mode(). +#define _OUT_TO_DEFAULT 0 +#define _OUT_TO_STDERR 1 +#define _OUT_TO_MSGBOX 2 +#define _REPORT_ERRMODE 3 + +_Check_return_opt_ _ACRTIMP int __cdecl _set_error_mode(_In_ int _Mode); + + + +#if _CRT_FUNCTIONS_REQUIRED + _ACRTIMP int* __cdecl _errno(void); + #define errno (*_errno()) + + _ACRTIMP errno_t __cdecl _set_errno(_In_ int _Value); + _ACRTIMP errno_t __cdecl _get_errno(_Out_ int* _Value); + + _ACRTIMP unsigned long* __cdecl __doserrno(void); + #define _doserrno (*__doserrno()) + + _ACRTIMP errno_t __cdecl _set_doserrno(_In_ unsigned long _Value); + _ACRTIMP errno_t __cdecl _get_doserrno(_Out_ unsigned long * _Value); + + // This is non-const for backwards compatibility; do not modify it. + _ACRTIMP _CRT_INSECURE_DEPRECATE(strerror) char** __cdecl __sys_errlist(void); + #define _sys_errlist (__sys_errlist()) + + _ACRTIMP _CRT_INSECURE_DEPRECATE(strerror) int * __cdecl __sys_nerr(void); + #define _sys_nerr (*__sys_nerr()) + + _ACRTIMP void __cdecl perror(_In_opt_z_ char const* _ErrMsg); +#endif // _CRT_FUNCTIONS_REQUIRED + + + +// These point to the executable module name. +_CRT_INSECURE_DEPRECATE_GLOBALS(_get_pgmptr ) _ACRTIMP char** __cdecl __p__pgmptr (void); +_CRT_INSECURE_DEPRECATE_GLOBALS(_get_wpgmptr) _ACRTIMP wchar_t** __cdecl __p__wpgmptr(void); +_CRT_INSECURE_DEPRECATE_GLOBALS(_get_fmode ) _ACRTIMP int* __cdecl __p__fmode (void); + +#ifdef _CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY + _CRT_INSECURE_DEPRECATE_GLOBALS(_get_pgmptr ) extern char* _pgmptr; + _CRT_INSECURE_DEPRECATE_GLOBALS(_get_wpgmptr) extern wchar_t* _wpgmptr; + #ifndef _CORECRT_BUILD + _CRT_INSECURE_DEPRECATE_GLOBALS(_get_fmode ) extern int _fmode; + #endif +#else + #define _pgmptr (*__p__pgmptr ()) + #define _wpgmptr (*__p__wpgmptr()) + #define _fmode (*__p__fmode ()) +#endif + +_Success_(return == 0) +_ACRTIMP errno_t __cdecl _get_pgmptr (_Outptr_result_z_ char** _Value); + +_Success_(return == 0) +_ACRTIMP errno_t __cdecl _get_wpgmptr(_Outptr_result_z_ wchar_t** _Value); + +_ACRTIMP errno_t __cdecl _set_fmode (_In_ int _Mode ); + +_ACRTIMP errno_t __cdecl _get_fmode (_Out_ int* _PMode); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Math +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +typedef struct _div_t +{ + int quot; + int rem; +} div_t; + +typedef struct _ldiv_t +{ + long quot; + long rem; +} ldiv_t; + +typedef struct _lldiv_t +{ + long long quot; + long long rem; +} lldiv_t; + +_Check_return_ int __cdecl abs (_In_ int _Number); +_Check_return_ long __cdecl labs (_In_ long _Number); +_Check_return_ long long __cdecl llabs (_In_ long long _Number); +_Check_return_ __int64 __cdecl _abs64(_In_ __int64 _Number); + +_Check_return_ unsigned short __cdecl _byteswap_ushort(_In_ unsigned short _Number); +_Check_return_ unsigned long __cdecl _byteswap_ulong (_In_ unsigned long _Number); +_Check_return_ unsigned __int64 __cdecl _byteswap_uint64(_In_ unsigned __int64 _Number); + +_Check_return_ _ACRTIMP div_t __cdecl div (_In_ int _Numerator, _In_ int _Denominator); +_Check_return_ _ACRTIMP ldiv_t __cdecl ldiv (_In_ long _Numerator, _In_ long _Denominator); +_Check_return_ _ACRTIMP lldiv_t __cdecl lldiv(_In_ long long _Numerator, _In_ long long _Denominator); + +// These functions have declspecs in their declarations in the Windows headers, +// which cause PREfast to fire 6540. +#pragma warning(push) +#pragma warning(disable: 6540) + +unsigned int __cdecl _rotl( + _In_ unsigned int _Value, + _In_ int _Shift + ); + +_Check_return_ +unsigned long __cdecl _lrotl( + _In_ unsigned long _Value, + _In_ int _Shift + ); + +unsigned __int64 __cdecl _rotl64( + _In_ unsigned __int64 _Value, + _In_ int _Shift + ); + +unsigned int __cdecl _rotr( + _In_ unsigned int _Value, + _In_ int _Shift + ); + +_Check_return_ +unsigned long __cdecl _lrotr( + _In_ unsigned long _Value, + _In_ int _Shift + ); + +unsigned __int64 __cdecl _rotr64( + _In_ unsigned __int64 _Value, + _In_ int _Shift + ); + +#pragma warning(pop) + + + +// Maximum value that can be returned by the rand function: +#define RAND_MAX 0x7fff + +_ACRTIMP void __cdecl srand(_In_ unsigned int _Seed); + +_Check_return_ _ACRTIMP int __cdecl rand(void); + +#if defined _CRT_RAND_S || defined _CRTBLD + _ACRTIMP errno_t __cdecl rand_s(_Out_ unsigned int* _RandomValue); +#endif + + + +#ifdef __cplusplus +extern "C++" +{ + inline long abs(long const _X) throw() + { + return labs(_X); + } + + inline long long abs(long long const _X) throw() + { + return llabs(_X); + } + + inline ldiv_t div(long const _A1, long const _A2) throw() + { + return ldiv(_A1, _A2); + } + + inline lldiv_t div(long long const _A1, long long const _A2) throw() + { + return lldiv(_A1, _A2); + } +} +#endif // __cplusplus + + + + +// Structs used to fool the compiler into not generating floating point +// instructions when copying and pushing [long] double values +#define _CRT_DOUBLE_DEC + +#ifndef _LDSUPPORT + + #pragma pack(push, 4) + typedef struct + { + unsigned char ld[10]; + } _LDOUBLE; + #pragma pack(pop) + + #define _PTR_LD(x) ((unsigned char*)(&(x)->ld)) + +#else // _LDSUPPORT + + // push and pop long, which is #defined as __int64 by a spec2k test + #pragma push_macro("long") + #undef long + typedef long double _LDOUBLE; + #pragma pop_macro("long") + + #define _PTR_LD(x) ((unsigned char *)(x)) + +#endif // _LDSUPPORT + +typedef struct +{ + double x; +} _CRT_DOUBLE; + +typedef struct +{ + float f; +} _CRT_FLOAT; + +// push and pop long, which is #defined as __int64 by a spec2k test +#pragma push_macro("long") +#undef long + +typedef struct +{ + long double x; +} _LONGDOUBLE; + +#pragma pop_macro("long") + +#pragma pack(push, 4) +typedef struct +{ + unsigned char ld12[12]; +} _LDBL12; +#pragma pack(pop) + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Narrow String to Number Conversions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +_Check_return_ _ACRTIMP double __cdecl atof (_In_z_ char const* _String); +_Check_return_ _CRT_JIT_INTRINSIC _ACRTIMP int __cdecl atoi (_In_z_ char const* _String); +_Check_return_ _ACRTIMP long __cdecl atol (_In_z_ char const* _String); +_Check_return_ _ACRTIMP long long __cdecl atoll (_In_z_ char const* _String); +_Check_return_ _ACRTIMP __int64 __cdecl _atoi64(_In_z_ char const* _String); + +_Check_return_ _ACRTIMP double __cdecl _atof_l (_In_z_ char const* _String, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _atoi_l (_In_z_ char const* _String, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP long __cdecl _atol_l (_In_z_ char const* _String, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP long long __cdecl _atoll_l (_In_z_ char const* _String, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP __int64 __cdecl _atoi64_l(_In_z_ char const* _String, _In_opt_ _locale_t _Locale); + +_Check_return_ _ACRTIMP int __cdecl _atoflt (_Out_ _CRT_FLOAT* _Result, _In_z_ char const* _String); +_Check_return_ _ACRTIMP int __cdecl _atodbl (_Out_ _CRT_DOUBLE* _Result, _In_z_ char* _String); +_Check_return_ _ACRTIMP int __cdecl _atoldbl(_Out_ _LDOUBLE* _Result, _In_z_ char* _String); + +_Check_return_ +_ACRTIMP int __cdecl _atoflt_l( + _Out_ _CRT_FLOAT* _Result, + _In_z_ char const* _String, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP int __cdecl _atodbl_l( + _Out_ _CRT_DOUBLE* _Result, + _In_z_ char* _String, + _In_opt_ _locale_t _Locale + ); + + +_Check_return_ +_ACRTIMP int __cdecl _atoldbl_l( + _Out_ _LDOUBLE* _Result, + _In_z_ char* _String, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP float __cdecl strtof( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr + ); + +_Check_return_ +_ACRTIMP float __cdecl _strtof_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP double __cdecl strtod( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr + ); + +_Check_return_ +_ACRTIMP double __cdecl _strtod_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP long double __cdecl strtold( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr + ); + +_Check_return_ +_ACRTIMP long double __cdecl _strtold_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP long __cdecl strtol( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix + ); + +_Check_return_ +_ACRTIMP long __cdecl _strtol_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP long long __cdecl strtoll( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix + ); + +_Check_return_ +_ACRTIMP long long __cdecl _strtoll_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP unsigned long __cdecl strtoul( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix + ); + +_Check_return_ +_ACRTIMP unsigned long __cdecl _strtoul_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP unsigned long long __cdecl strtoull( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix + ); + +_Check_return_ +_ACRTIMP unsigned long long __cdecl _strtoull_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP __int64 __cdecl _strtoi64( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix + ); + +_Check_return_ +_ACRTIMP __int64 __cdecl _strtoi64_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP unsigned __int64 __cdecl _strtoui64( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix + ); + +_Check_return_ +_ACRTIMP unsigned __int64 __cdecl _strtoui64_l( + _In_z_ char const* _String, + _Out_opt_ _Deref_post_z_ char** _EndPtr, + _In_ int _Radix, + _In_opt_ _locale_t _Locale + ); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Number to Narrow String Conversions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +_Success_(return == 0) +_Check_return_opt_ +_ACRTIMP errno_t __cdecl _itoa_s( + _In_ int _Value, + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_ int _Radix + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1( + _Success_(return == 0) + errno_t, _itoa_s, + _In_ int, _Value, + char, _Buffer, + _In_ int, _Radix + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1( + char*, __RETURN_POLICY_DST, _ACRTIMP, _itoa, + _In_ int, _Value, + _Pre_notnull_ _Post_z_, char, _Buffer, + _In_ int, _Radix + ) + +_Success_(return == 0) +_Check_return_opt_ +_ACRTIMP errno_t __cdecl _ltoa_s( + _In_ long _Value, + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_ int _Radix + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1( + errno_t, _ltoa_s, + _In_ long, _Value, + char, _Buffer, + _In_ int, _Radix + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1( + char*, __RETURN_POLICY_DST, _ACRTIMP, _ltoa, + _In_ long, _Value, + _Pre_notnull_ _Post_z_, char, _Buffer, + _In_ int, _Radix + ) + +_Success_(return == 0) +_Check_return_opt_ +_ACRTIMP errno_t __cdecl _ultoa_s( + _In_ unsigned long _Value, + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_ int _Radix + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1( + errno_t, _ultoa_s, + _In_ unsigned long, _Value, + char, _Buffer, + _In_ int, _Radix + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_1_1( + char*, __RETURN_POLICY_DST, _ACRTIMP, _ultoa, + _In_ unsigned long, _Value, + _Pre_notnull_ _Post_z_, char, _Buffer, + _In_ int, _Radix + ) + +_Success_(return == 0) +_Check_return_opt_ +_ACRTIMP errno_t __cdecl _i64toa_s( + _In_ __int64 _Value, + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_ int _Radix + ); + +_Success_(return == 0) +_CRT_INSECURE_DEPRECATE(_i64toa_s) +_ACRTIMP char* __cdecl _i64toa( + _In_ __int64 _Value, + _Pre_notnull_ _Post_z_ char* _Buffer, + _In_ int _Radix + ); + +_Success_(return == 0) +_Check_return_opt_ +_ACRTIMP errno_t __cdecl _ui64toa_s( + _In_ unsigned __int64 _Value, + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_ int _Radix + ); + +_CRT_INSECURE_DEPRECATE(_ui64toa_s) +_ACRTIMP char* __cdecl _ui64toa( + _In_ unsigned __int64 _Value, + _Pre_notnull_ _Post_z_ char* _Buffer, + _In_ int _Radix + ); + + + +// _CVTBUFSIZE is the maximum size for the per-thread conversion buffer. It +// should be at least as long as the number of digits in the largest double +// precision value (?.?e308 in IEEE arithmetic). We will use the same size +// buffer as is used in the printf support routines. +// +// (This value actually allows 40 additional decimal places; even though there +// are only 16 digits of accuracy in a double precision IEEE number, the user may +// ask for more to effect zero padding.) +#define _CVTBUFSIZE (309 + 40) // # of digits in max. dp value + slop + +_Success_(return == 0) +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _ecvt_s( + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_ double _Value, + _In_ int _DigitCount, + _Out_ int* _PtDec, + _Out_ int* _PtSign + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_4( + errno_t, _ecvt_s, + char, _Buffer, + _In_ double, _Value, + _In_ int, _DigitCount, + _Out_ int*, _PtDec, + _Out_ int*, _PtSign + ) + +_Check_return_ _CRT_INSECURE_DEPRECATE(_ecvt_s) +_ACRTIMP char* __cdecl _ecvt( + _In_ double _Value, + _In_ int _DigitCount, + _Out_ int* _PtDec, + _Out_ int* _PtSign + ); + +_Success_(return == 0) +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _fcvt_s( + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_ double _Value, + _In_ int _FractionalDigitCount, + _Out_ int* _PtDec, + _Out_ int* _PtSign + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_4( + _Success_(return == 0) + errno_t, _fcvt_s, + char, _Buffer, + _In_ double, _Value, + _In_ int, _FractionalDigitCount, + _Out_ int*, _PtDec, + _Out_ int*, _PtSign + ) + +_Success_(return == 0) +_Check_return_ _CRT_INSECURE_DEPRECATE(_fcvt_s) +_ACRTIMP char* __cdecl _fcvt( + _In_ double _Value, + _In_ int _FractionalDigitCount, + _Out_ int* _PtDec, + _Out_ int* _PtSign + ); + +_Success_(return == 0) +_ACRTIMP errno_t __cdecl _gcvt_s( + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_ double _Value, + _In_ int _DigitCount + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + _Success_(return == 0) + errno_t, _gcvt_s, + char, _Buffer, + _In_ double, _Value, + _In_ int, _DigitCount + ) + +_CRT_INSECURE_DEPRECATE(_gcvt_s) +_ACRTIMP char* __cdecl _gcvt( + _In_ double _Value, + _In_ int _DigitCount, + _Pre_notnull_ _Post_z_ char* _Buffer + ); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Multibyte String Operations and Conversions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// Maximum number of bytes in multi-byte character in the current locale +// (also defined in ctype.h). +#ifndef MB_CUR_MAX + #if defined _CRT_DISABLE_PERFCRIT_LOCKS && !defined _DLL + #define MB_CUR_MAX __mb_cur_max + #else + #define MB_CUR_MAX ___mb_cur_max_func() + #endif + + #ifdef _CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY + extern int __mb_cur_max; + #else + #define __mb_cur_max (___mb_cur_max_func()) + #endif + + _Post_satisfies_(return > 0 && return < MB_LEN_MAX) + _ACRTIMP int __cdecl ___mb_cur_max_func(void); + + _Post_satisfies_(return > 0 && return < MB_LEN_MAX) + _ACRTIMP int __cdecl ___mb_cur_max_l_func(_locale_t _Locale); +#endif + + + +_Check_return_ +_ACRTIMP int __cdecl mblen( + _In_reads_bytes_opt_(_MaxCount) _Pre_opt_z_ char const* _Ch, + _In_ size_t _MaxCount + ); + +_Check_return_ +_ACRTIMP int __cdecl _mblen_l( + _In_reads_bytes_opt_(_MaxCount) _Pre_opt_z_ char const* _Ch, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_Post_satisfies_(return <= _String_length_(_String)) +_ACRTIMP size_t __cdecl _mbstrlen( + _In_z_ char const* _String + ); + +_Check_return_ +_Post_satisfies_(return <= _String_length_(_String) || return == (size_t)-1) +_ACRTIMP size_t __cdecl _mbstrlen_l( + _In_z_ char const* _String, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_Post_satisfies_((return <= _String_length_(_String) && return <= _MaxCount) || return == (size_t)-1) +_ACRTIMP size_t __cdecl _mbstrnlen( + _In_z_ char const* _String, + _In_ size_t _MaxCount + ); + +_Post_satisfies_((return <= _String_length_(_String) && return <= _MaxCount) || return == (size_t)-1) +_Check_return_ +_ACRTIMP size_t __cdecl _mbstrnlen_l( + _In_z_ char const* _String, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + +_Success_(return != -1) +_ACRTIMP int __cdecl mbtowc( + _Pre_notnull_ _Post_z_ wchar_t* _DstCh, + _In_reads_or_z_opt_(_SrcSizeInBytes) char const* _SrcCh, + _In_ size_t _SrcSizeInBytes + ); + +_Success_(return != -1) +_ACRTIMP int __cdecl _mbtowc_l( + _Pre_notnull_ _Post_z_ wchar_t* _DstCh, + _In_reads_or_z_opt_(_SrcSizeInBytes) char const* _SrcCh, + _In_ size_t _SrcSizeInBytes, + _In_opt_ _locale_t _Locale + ); + +_Check_return_opt_ +_ACRTIMP errno_t __cdecl mbstowcs_s( + _Out_opt_ size_t* _PtNumOfCharConverted, + _Out_writes_to_opt_(_SizeInWords, *_PtNumOfCharConverted) wchar_t* _DstBuf, + _In_ size_t _SizeInWords, + _In_reads_or_z_(_MaxCount) char const* _SrcBuf, + _In_ size_t _MaxCount + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_2( + errno_t, mbstowcs_s, + _Out_opt_ size_t*, _PtNumOfCharConverted, + _Post_z_ wchar_t, _Dest, + _In_z_ char const*, _Source, + _In_ size_t, _MaxCount + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE( + _ACRTIMP, mbstowcs, + _Out_writes_opt_z_(_MaxCount), wchar_t, _Dest, + _In_z_ char const*, _Source, + _In_ size_t, _MaxCount + ) + +_Check_return_opt_ +_ACRTIMP errno_t __cdecl _mbstowcs_s_l( + _Out_opt_ size_t* _PtNumOfCharConverted, + _Out_writes_to_opt_(_SizeInWords, *_PtNumOfCharConverted) wchar_t* _DstBuf, + _In_ size_t _SizeInWords, + _In_reads_or_z_(_MaxCount) char const* _SrcBuf, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_3( + errno_t, _mbstowcs_s_l, + _Out_opt_ size_t*, _PtNumOfCharConverted, + _Post_z_ wchar_t, _Dest, + _In_z_ char const*, _Source, + _In_ size_t, _MaxCount, + _In_opt_ _locale_t, _Locale + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE_EX( + _ACRTIMP, _mbstowcs_l, _mbstowcs_s_l, + _Out_writes_opt_z_(_Size) wchar_t, + _Out_writes_z_(_MaxCount), wchar_t, _Dest, + _In_z_ char const*, _Source, + _In_ size_t, _MaxCount, + _In_opt_ _locale_t, _Locale + ) + + + + +_CRT_INSECURE_DEPRECATE(wctomb_s) +_ACRTIMP int __cdecl wctomb( + _Out_writes_opt_z_(MB_LEN_MAX) char* _MbCh, + _In_ wchar_t _WCh + ); + +_CRT_INSECURE_DEPRECATE(_wctomb_s_l) +_ACRTIMP int __cdecl _wctomb_l( + _Pre_maybenull_ _Post_z_ char* _MbCh, + _In_ wchar_t _WCh, + _In_opt_ _locale_t _Locale + ); + +#if __STDC_WANT_SECURE_LIB__ + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl wctomb_s( + _Out_opt_ int* _SizeConverted, + _Out_writes_bytes_to_opt_(_SizeInBytes, *_SizeConverted) char* _MbCh, + _In_ rsize_t _SizeInBytes, + _In_ wchar_t _WCh + ); + +#endif // __STDC_WANT_SECURE_LIB__ + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wctomb_s_l( + _Out_opt_ int* _SizeConverted, + _Out_writes_opt_z_(_SizeInBytes) char* _MbCh, + _In_ size_t _SizeInBytes, + _In_ wchar_t _WCh, + _In_opt_ _locale_t _Locale); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl wcstombs_s( + _Out_opt_ size_t* _PtNumOfCharConverted, + _Out_writes_bytes_to_opt_(_DstSizeInBytes, *_PtNumOfCharConverted) char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_z_ wchar_t const* _Src, + _In_ size_t _MaxCountInBytes + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_2( + errno_t, wcstombs_s, + _Out_opt_ size_t*, _PtNumOfCharConverted, + _Out_writes_bytes_opt_(_Size) char, _Dest, + _In_z_ wchar_t const*, _Source, + _In_ size_t, _MaxCount + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_SIZE( + _ACRTIMP, wcstombs, + _Out_writes_opt_(_MaxCount), char, _Dest, + _In_z_ wchar_t const*, _Source, + _In_ size_t, _MaxCount + ) + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _wcstombs_s_l( + _Out_opt_ size_t* _PtNumOfCharConverted, + _Out_writes_bytes_to_opt_(_DstSizeInBytes, *_PtNumOfCharConverted) char* _Dst, + _In_ size_t _DstSizeInBytes, + _In_z_ wchar_t const* _Src, + _In_ size_t _MaxCountInBytes, + _In_opt_ _locale_t _Locale + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_3( + errno_t, _wcstombs_s_l, + _Out_opt_ size_t*, _PtNumOfCharConverted, + _Out_writes_opt_(_Size) char, _Dest, + _In_z_ wchar_t const*, _Source, + _In_ size_t, _MaxCount, + _In_opt_ _locale_t, _Locale + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE_EX( + _ACRTIMP, _wcstombs_l, _wcstombs_s_l, + _Out_writes_opt_z_(_Size) char, + _Out_writes_(_MaxCount), char, _Dest, + _In_z_ wchar_t const*, _Source, + _In_ size_t, _MaxCount, + _In_opt_ _locale_t, _Locale + ) + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Path Manipulation +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// Sizes for buffers used by the _makepath() and _splitpath() functions. +// note that the sizes include space for 0-terminator +#define _MAX_PATH 260 // max. length of full pathname +#define _MAX_DRIVE 3 // max. length of drive component +#define _MAX_DIR 256 // max. length of path component +#define _MAX_FNAME 256 // max. length of file name component +#define _MAX_EXT 256 // max. length of extension component + + +#pragma push_macro("_fullpath") +#undef _fullpath + +_Success_(return != 0) +_Check_return_ +_ACRTIMP _CRTALLOCATOR char* __cdecl _fullpath( + _Out_writes_opt_z_(_BufferCount) char* _Buffer, + _In_z_ char const* _Path, + _In_ size_t _BufferCount + ); + +#pragma pop_macro("_fullpath") + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _makepath_s( + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount, + _In_opt_z_ char const* _Drive, + _In_opt_z_ char const* _Dir, + _In_opt_z_ char const* _Filename, + _In_opt_z_ char const* _Ext + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_4( + errno_t, _makepath_s, + char, _Buffer, + _In_opt_z_ char const*, _Drive, + _In_opt_z_ char const*, _Dir, + _In_opt_z_ char const*, _Filename, + _In_opt_z_ char const*, _Ext + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_4( + void, __RETURN_POLICY_VOID, _ACRTIMP, _makepath, + _Pre_notnull_ _Post_z_, char, _Buffer, + _In_opt_z_ char const*, _Drive, + _In_opt_z_ char const*, _Dir, + _In_opt_z_ char const*, _Filename, + _In_opt_z_ char const*, _Ext + ) + +_CRT_INSECURE_DEPRECATE(_splitpath_s) +_ACRTIMP void __cdecl _splitpath( + _In_z_ char const* _FullPath, + _Pre_maybenull_ _Post_z_ char* _Drive, + _Pre_maybenull_ _Post_z_ char* _Dir, + _Pre_maybenull_ _Post_z_ char* _Filename, + _Pre_maybenull_ _Post_z_ char* _Ext + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _splitpath_s( + _In_z_ char const* _FullPath, + _Out_writes_opt_z_(_DriveCount) char* _Drive, + _In_ size_t _DriveCount, + _Out_writes_opt_z_(_DirCount) char* _Dir, + _In_ size_t _DirCount, + _Out_writes_opt_z_(_FilenameCount) char* _Filename, + _In_ size_t _FilenameCount, + _Out_writes_opt_z_(_ExtCount) char* _Ext, + _In_ size_t _ExtCount + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_SPLITPATH(errno_t, _splitpath_s, char, _Dest) + +#if __STDC_WANT_SECURE_LIB__ + +_Check_return_opt_ +_Success_(return == 0) +_DCRTIMP errno_t __cdecl getenv_s( + _Out_ size_t* _RequiredCount, + _Out_writes_opt_z_(_BufferCount) char* _Buffer, + _In_ rsize_t _BufferCount, + _In_z_ char const* _VarName + ); + +#endif // __STDC_WANT_SECURE_LIB__ + + + + +_ACRTIMP int* __cdecl __p___argc (void); +_ACRTIMP char*** __cdecl __p___argv (void); +_ACRTIMP wchar_t*** __cdecl __p___wargv(void); + +#ifdef _CRT_DECLARE_GLOBAL_VARIABLES_DIRECTLY + extern int __argc; + extern char** __argv; + extern wchar_t** __wargv; +#else + #define __argc (*__p___argc()) // Pointer to number of command line arguments + #define __argv (*__p___argv()) // Pointer to table of narrow command line arguments + #define __wargv (*__p___wargv()) // Pointer to table of wide command line arguments +#endif + +_DCRTIMP char*** __cdecl __p__environ (void); +_DCRTIMP wchar_t*** __cdecl __p__wenviron(void); + +#ifndef _CRT_BEST_PRACTICES_USAGE + #define _CRT_V12_LEGACY_FUNCTIONALITY +#endif + +#ifndef _CRT_V12_LEGACY_FUNCTIONALITY + // Deprecated symbol: Do not expose environment global pointers unless + // legacy access is specifically requested + #define _environ crt_usage_error__do_not_reference_global_pointer_directly__environ + #define _wenviron crt_usage_error__do_not_reference_global_pointer_directly__wenviron +#else + #define _environ (*__p__environ()) // Pointer to narrow environment table + #define _wenviron (*__p__wenviron()) // Pointer to wide environment table +#endif + + + +// Sizes for buffers used by the getenv/putenv family of functions. +#define _MAX_ENV 32767 + + +#if _CRT_FUNCTIONS_REQUIRED + + _Check_return_ _CRT_INSECURE_DEPRECATE(_dupenv_s) + _DCRTIMP char* __cdecl getenv( + _In_z_ char const* _VarName + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_1( + errno_t, getenv_s, + _Out_ size_t*, _RequiredCount, + char, _Buffer, + _In_z_ char const*, _VarName + ) + + #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) + #pragma push_macro("_dupenv_s") + #undef _dupenv_s + #endif + + _Check_return_opt_ + _DCRTIMP errno_t __cdecl _dupenv_s( + _Outptr_result_buffer_maybenull_(*_BufferCount) _Outptr_result_maybenull_z_ char** _Buffer, + _Out_opt_ size_t* _BufferCount, + _In_z_ char const* _VarName + ); + + #if defined(_DEBUG) && defined(_CRTDBG_MAP_ALLOC) + #pragma pop_macro("_dupenv_s") + #endif + + _DCRTIMP int __cdecl system( + _In_opt_z_ char const* _Command + ); + + // The functions below have declspecs in their declarations in the Windows + // headers, causing PREfast to fire 6540 here + #pragma warning(push) + #pragma warning(disable: 6540) + + _Check_return_ + _DCRTIMP int __cdecl _putenv( + _In_z_ char const* _EnvString + ); + + _Check_return_wat_ + _DCRTIMP errno_t __cdecl _putenv_s( + _In_z_ char const* _Name, + _In_z_ char const* _Value + ); + + #pragma warning(pop) + + _DCRTIMP errno_t __cdecl _searchenv_s( + _In_z_ char const* _Filename, + _In_z_ char const* _VarName, + _Out_writes_z_(_BufferCount) char* _Buffer, + _In_ size_t _BufferCount + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_2_0( + errno_t, _searchenv_s, + _In_z_ char const*, _Filename, + _In_z_ char const*, _VarName, + char, _Buffer + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_2_0( + void, __RETURN_POLICY_VOID, _DCRTIMP, _searchenv, + _In_z_ char const*, _Filename, + _In_z_ char const*, _VarName, + _Pre_notnull_ _Post_z_, char, _Buffer + ) + + // The Win32 API SetErrorMode, Beep and Sleep should be used instead. + _CRT_OBSOLETE(SetErrorMode) + _DCRTIMP void __cdecl _seterrormode( + _In_ int _Mode + ); + + _CRT_OBSOLETE(Beep) + _DCRTIMP void __cdecl _beep( + _In_ unsigned _Frequency, + _In_ unsigned _Duration + ); + + _CRT_OBSOLETE(Sleep) + _DCRTIMP void __cdecl _sleep( + _In_ unsigned long _Duration + ); + +#endif // _CRT_FUNCTIONS_REQUIRED + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Non-ANSI Names for Compatibility +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + #ifndef __cplusplus + #define max(a,b) (((a) > (b)) ? (a) : (b)) + #define min(a,b) (((a) < (b)) ? (a) : (b)) + #endif + + #define sys_errlist _sys_errlist + #define sys_nerr _sys_nerr + + #pragma warning(push) + #pragma warning(disable: 4141) // Using deprecated twice + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_ecvt) _CRT_INSECURE_DEPRECATE(_ecvt_s) + _ACRTIMP char* __cdecl ecvt( + _In_ double _Value, + _In_ int _DigitCount, + _Out_ int* _PtDec, + _Out_ int* _PtSign + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_fcvt) _CRT_INSECURE_DEPRECATE(_fcvt_s) + _ACRTIMP char* __cdecl fcvt( + _In_ double _Value, + _In_ int _FractionalDigitCount, + _Out_ int* _PtDec, + _Out_ int* _PtSign + ); + + _CRT_NONSTDC_DEPRECATE(_gcvt) _CRT_INSECURE_DEPRECATE(_fcvt_s) + _ACRTIMP char* __cdecl gcvt( + _In_ double _Value, + _In_ int _DigitCount, + _Pre_notnull_ _Post_z_ char* _DstBuf + ); + + _CRT_NONSTDC_DEPRECATE(_itoa) _CRT_INSECURE_DEPRECATE(_itoa_s) + _ACRTIMP char* __cdecl itoa( + _In_ int _Value, + _Pre_notnull_ _Post_z_ char* _Buffer, + _In_ int _Radix + ); + + _CRT_NONSTDC_DEPRECATE(_ltoa) _CRT_INSECURE_DEPRECATE(_ltoa_s) + _ACRTIMP char* __cdecl ltoa( + _In_ long _Value, + _Pre_notnull_ _Post_z_ char* _Buffer, + _In_ int _Radix + ); + + + _CRT_NONSTDC_DEPRECATE(_swab) + _ACRTIMP void __cdecl swab( + _Inout_updates_z_(_SizeInBytes) char* _Buf1, + _Inout_updates_z_(_SizeInBytes) char* _Buf2, + _In_ int _SizeInBytes + ); + + _CRT_NONSTDC_DEPRECATE(_ultoa) _CRT_INSECURE_DEPRECATE(_ultoa_s) + _ACRTIMP char* __cdecl ultoa( + _In_ unsigned long _Value, + _Pre_notnull_ _Post_z_ char* _Buffer, + _In_ int _Radix + ); + + #define environ _environ + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_putenv) + _DCRTIMP int __cdecl putenv( + _In_z_ char const* _EnvString + ); + + #pragma warning(pop) + + onexit_t __cdecl onexit(_In_opt_ onexit_t _Func); + +#endif // _CRT_INTERNAL_NONSTDC_NAMES + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_STDLIB diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdnoreturn.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdnoreturn.h new file mode 100644 index 0000000000000000000000000000000000000000..6b3b95d76d4bf62b9f033bb4f3b66a431770301c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/stdnoreturn.h @@ -0,0 +1,28 @@ +// +// stdnoreturn.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C Standard Library header. +// +#pragma once +#ifndef _INC_STDNORETURN // include guard for 3rd party interop +#define _INC_STDNORETURN + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS +_CRT_BEGIN_C_HEADER + +#if _CRT_HAS_C11 + +#define noreturn _Noreturn + +#endif // _CRT_HAS_C11 + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_STDNORETURN diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/string.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/string.h new file mode 100644 index 0000000000000000000000000000000000000000..f49824527a9ff200c1a7a84fc7b24ef13df2f431 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/string.h @@ -0,0 +1,592 @@ +// +// string.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C Standard Library header. +// +#pragma once +#ifndef _INC_STRING // include guard for 3rd party interop +#define _INC_STRING + +#include +#include +#include +#include + +#ifndef __midl + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#define _NLSCMPERROR _CRT_INT_MAX // currently == INT_MAX + +#if __STDC_WANT_SECURE_LIB__ + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl strcpy_s( + _Out_writes_z_(_SizeInBytes) char* _Destination, + _In_ rsize_t _SizeInBytes, + _In_z_ char const* _Source + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl strcat_s( + _Inout_updates_z_(_SizeInBytes) char* _Destination, + _In_ rsize_t _SizeInBytes, + _In_z_ char const* _Source + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl strerror_s( + _Out_writes_z_(_SizeInBytes) char* _Buffer, + _In_ size_t _SizeInBytes, + _In_ int _ErrorNumber); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl strncat_s( + _Inout_updates_z_(_SizeInBytes) char* _Destination, + _In_ rsize_t _SizeInBytes, + _In_reads_or_z_(_MaxCount) char const* _Source, + _In_ rsize_t _MaxCount + ); + + _Check_return_wat_ + _ACRTIMP errno_t __cdecl strncpy_s( + _Out_writes_z_(_SizeInBytes) char* _Destination, + _In_ rsize_t _SizeInBytes, + _In_reads_or_z_(_MaxCount) char const* _Source, + _In_ rsize_t _MaxCount + ); + + _Check_return_ + _ACRTIMP char* __cdecl strtok_s( + _Inout_opt_z_ char* _String, + _In_z_ char const* _Delimiter, + _Inout_ _Deref_prepost_opt_z_ char** _Context + ); + +#endif // __STDC_WANT_SECURE_LIB__ + +_ACRTIMP void* __cdecl _memccpy( + _Out_writes_bytes_opt_(_MaxCount) void* _Dst, + _In_ void const* _Src, + _In_ int _Val, + _In_ size_t _MaxCount + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, strcat_s, + char, _Destination, + _In_z_ char const*, _Source + ) + +#ifndef RC_INVOKED + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1( + char*, __RETURN_POLICY_DST, __EMPTY_DECLSPEC, strcat, + _Inout_updates_z_(_String_length_(_Destination) + _String_length_(_Source) + 1), char, _Destination, + _In_z_ char const*, _Source + ) + +#endif // RC_INVOKED + +_Check_return_ +int __cdecl strcmp( + _In_z_ char const* _Str1, + _In_z_ char const* _Str2 + ); + +_Check_return_ +_ACRTIMP int __cdecl _strcmpi( + _In_z_ char const* _String1, + _In_z_ char const* _String2 + ); + +_Check_return_ +_ACRTIMP int __cdecl strcoll( + _In_z_ char const* _String1, + _In_z_ char const* _String2 + ); + +_Check_return_ +_ACRTIMP int __cdecl _strcoll_l( + _In_z_ char const* _String1, + _In_z_ char const* _String2, + _In_opt_ _locale_t _Locale + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, strcpy_s, + _Post_z_ char, _Destination, + _In_z_ char const*, _Source + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1( + char*, __RETURN_POLICY_DST, __EMPTY_DECLSPEC, strcpy, + _Out_writes_z_(_String_length_(_Source) + 1), char, _Destination, + _In_z_ char const*, _Source + ) + +_Check_return_ +_ACRTIMP size_t __cdecl strcspn( + _In_z_ char const* _Str, + _In_z_ char const* _Control + ); + +#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma push_macro("_strdup") + #undef _strdup +#endif + +_Check_return_ +_ACRTIMP _CRTALLOCATOR char* __cdecl _strdup( + _In_opt_z_ char const* _Source + ); + +#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC + #pragma pop_macro("_strdup") +#endif + +_Ret_z_ +_Success_(return != 0) +_Check_return_ _CRT_INSECURE_DEPRECATE(_strerror_s) +_ACRTIMP char* __cdecl _strerror( + _In_opt_z_ char const* _ErrorMessage + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _strerror_s( + _Out_writes_z_(_SizeInBytes) char* _Buffer, + _In_ size_t _SizeInBytes, + _In_opt_z_ char const* _ErrorMessage + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _strerror_s, + char, _Buffer, + _In_opt_z_ char const*, _ErrorMessage + ) + +_Ret_z_ +_Check_return_ _CRT_INSECURE_DEPRECATE(strerror_s) +_ACRTIMP char* __cdecl strerror( + _In_ int _ErrorMessage + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, strerror_s, + char, _Buffer, + _In_ int, _ErrorMessage + ) + +_Check_return_ +_ACRTIMP int __cdecl _stricmp( + _In_z_ char const* _String1, + _In_z_ char const* _String2 + ); + +_Check_return_ +_ACRTIMP int __cdecl _stricoll( + _In_z_ char const* _String1, + _In_z_ char const* _String2 + ); + +_Check_return_ +_ACRTIMP int __cdecl _stricoll_l( + _In_z_ char const* _String1, + _In_z_ char const* _String2, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP int __cdecl _stricmp_l( + _In_z_ char const* _String1, + _In_z_ char const* _String2, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +size_t __cdecl strlen( + _In_z_ char const* _Str + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _strlwr_s( + _Inout_updates_z_(_Size) char* _String, + _In_ size_t _Size + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _strlwr_s, + _Prepost_z_ char, _String + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + char*, __RETURN_POLICY_DST, _ACRTIMP, _strlwr, + _Inout_z_, char, _String + ) + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _strlwr_s_l( + _Inout_updates_z_(_Size) char* _String, + _In_ size_t _Size, + _In_opt_ _locale_t _Locale + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _strlwr_s_l, + _Prepost_z_ char, _String, + _In_opt_ _locale_t, _Locale + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX( + char*, __RETURN_POLICY_DST, _ACRTIMP, _strlwr_l, _strlwr_s_l, + _Inout_updates_z_(_Size) char, + _Inout_z_, char, _String, + _In_opt_ _locale_t, _Locale + ) + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, strncat_s, + _Prepost_z_ char, _Destination, + _In_reads_or_z_(_Count) char const*, _Source, + _In_ size_t, _Count + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX( + char*, __RETURN_POLICY_DST, _ACRTIMP, strncat, strncat_s, + _Inout_updates_z_(_Size) char, + _Inout_updates_z_(_Count), char, _Destination, + _In_reads_or_z_(_Count) char const*, _Source, + _In_ size_t, _Count + ) + +_Check_return_ +_ACRTIMP int __cdecl strncmp( + _In_reads_or_z_(_MaxCount) char const* _Str1, + _In_reads_or_z_(_MaxCount) char const* _Str2, + _In_ size_t _MaxCount + ); + +_Check_return_ +_ACRTIMP int __cdecl _strnicmp( + _In_reads_or_z_(_MaxCount) char const* _String1, + _In_reads_or_z_(_MaxCount) char const* _String2, + _In_ size_t _MaxCount + ); + +_Check_return_ +_ACRTIMP int __cdecl _strnicmp_l( + _In_reads_or_z_(_MaxCount) char const* _String1, + _In_reads_or_z_(_MaxCount) char const* _String2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP int __cdecl _strnicoll( + _In_reads_or_z_(_MaxCount) char const* _String1, + _In_reads_or_z_(_MaxCount) char const* _String2, + _In_ size_t _MaxCount + ); + +_Check_return_ +_ACRTIMP int __cdecl _strnicoll_l( + _In_reads_or_z_(_MaxCount) char const* _String1, + _In_reads_or_z_(_MaxCount) char const* _String2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + +_Check_return_ +_ACRTIMP int __cdecl _strncoll( + _In_reads_or_z_(_MaxCount) char const* _String1, + _In_reads_or_z_(_MaxCount) char const* _String2, + _In_ size_t _MaxCount + ); + +_Check_return_ +_ACRTIMP int __cdecl _strncoll_l( + _In_reads_or_z_(_MaxCount) char const* _String1, + _In_reads_or_z_(_MaxCount) char const* _String2, + _In_ size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + +_ACRTIMP size_t __cdecl __strncnt( + _In_reads_or_z_(_Count) char const* _String, + _In_ size_t _Count + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, strncpy_s, + char, _Destination, + _In_reads_or_z_(_Count) char const*, _Source, + _In_ size_t, _Count + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX( + char*, __RETURN_POLICY_DST, _ACRTIMP, strncpy, strncpy_s, + _Out_writes_z_(_Size) char, + _Out_writes_(_Count) _Post_maybez_, char, _Destination, + _In_reads_or_z_(_Count) char const*, _Source, + _In_ size_t, _Count + ) + +_Check_return_ +_When_( + _MaxCount > _String_length_(_String), + _Post_satisfies_(return == _String_length_(_String)) +) +_When_( + _MaxCount <= _String_length_(_String), + _Post_satisfies_(return == _MaxCount) +) +_ACRTIMP size_t __cdecl strnlen( + _In_reads_or_z_(_MaxCount) char const* _String, + _In_ size_t _MaxCount + ); + +#if __STDC_WANT_SECURE_LIB__ && !defined __midl + + _Check_return_ + _When_( + _MaxCount > _String_length_(_String), + _Post_satisfies_(return == _String_length_(_String)) + ) + _When_( + _MaxCount <= _String_length_(_String), + _Post_satisfies_(return == _MaxCount) + ) + _CRT_NONSTANDARD_STATIC __inline size_t __CRTDECL strnlen_s( + _In_reads_or_z_(_MaxCount) char const* _String, + _In_ size_t _MaxCount + ) + { + return _String == 0 ? 0 : strnlen(_String, _MaxCount); + } + +#endif + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _strnset_s( + _Inout_updates_z_(_SizeInBytes) char* _String, + _In_ size_t _SizeInBytes, + _In_ int _Value, + _In_ size_t _MaxCount + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2( + errno_t, _strnset_s, + _Prepost_z_ char, _Destination, + _In_ int, _Value, + _In_ size_t, _Count + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_2_EX( + char*, __RETURN_POLICY_DST, _ACRTIMP, _strnset, _strnset_s, + _Inout_updates_z_(_Size) char, + _Inout_updates_z_(_Count), char, _Destination, + _In_ int, _Value, + _In_ size_t, _Count + ) + +_Check_return_ +_ACRTIMP char _CONST_RETURN* __cdecl strpbrk( + _In_z_ char const* _Str, + _In_z_ char const* _Control + ); + +_ACRTIMP char* __cdecl _strrev( + _Inout_z_ char* _Str + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _strset_s( + _Inout_updates_z_(_DestinationSize) char* _Destination, + _In_ size_t _DestinationSize, + _In_ int _Value + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _strset_s, + _Prepost_z_ char, _Destination, + _In_ int, _Value + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1( + char*, __RETURN_POLICY_DST, __EMPTY_DECLSPEC, _strset, + _Inout_z_, char, _Destination, + _In_ int, _Value + ) + +_Check_return_ +_ACRTIMP size_t __cdecl strspn( + _In_z_ char const* _Str, + _In_z_ char const* _Control + ); + +_Check_return_ _CRT_INSECURE_DEPRECATE(strtok_s) +_ACRTIMP char* __cdecl strtok( + _Inout_opt_z_ char* _String, + _In_z_ char const* _Delimiter + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _strupr_s( + _Inout_updates_z_(_Size) char* _String, + _In_ size_t _Size + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _strupr_s, + _Prepost_z_ char, _String + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + char*, __RETURN_POLICY_DST, _ACRTIMP, _strupr, + _Inout_z_, char, _String + ) + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _strupr_s_l( + _Inout_updates_z_(_Size) char* _String, + _In_ size_t _Size, + _In_opt_ _locale_t _Locale + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _strupr_s_l, + _Prepost_z_ char, _String, + _In_opt_ _locale_t, _Locale + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_1_EX( + char*, __RETURN_POLICY_DST, _ACRTIMP, _strupr_l, _strupr_s_l, + _Inout_updates_z_(_Size) char, + _Inout_z_, char, _String, + _In_opt_ _locale_t, _Locale + ) + +_Success_(return < _MaxCount) +_Check_return_opt_ +_ACRTIMP size_t __cdecl strxfrm( + _Out_writes_opt_(_MaxCount) _Post_maybez_ char* _Destination, + _In_z_ char const* _Source, + _In_ _In_range_(<=,_CRT_INT_MAX) size_t _MaxCount + ); + +_Success_(return < _MaxCount) +_Check_return_opt_ +_ACRTIMP size_t __cdecl _strxfrm_l( + _Out_writes_opt_(_MaxCount) _Post_maybez_ char* _Destination, + _In_z_ char const* _Source, + _In_ _In_range_(<=,_CRT_INT_MAX) size_t _MaxCount, + _In_opt_ _locale_t _Locale + ); + + + +#ifdef __cplusplus +extern "C++" +{ + _Check_return_ + inline char* __CRTDECL strchr(_In_z_ char* const _String, _In_ int const _Ch) + { + return const_cast(strchr(static_cast(_String), _Ch)); + } + + _Check_return_ + inline char* __CRTDECL strpbrk(_In_z_ char* const _String, _In_z_ char const* const _Control) + { + return const_cast(strpbrk(static_cast(_String), _Control)); + } + + _Check_return_ + inline char* __CRTDECL strrchr(_In_z_ char* const _String, _In_ int const _Ch) + { + return const_cast(strrchr(static_cast(_String), _Ch)); + } + + _Check_return_ _Ret_maybenull_ + inline char* __CRTDECL strstr(_In_z_ char* const _String, _In_z_ char const* const _SubString) + { + return const_cast(strstr(static_cast(_String), _SubString)); + } +} +#endif // __cplusplus + + + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + #pragma push_macro("strdup") + #undef strdup + _Check_return_ _CRT_NONSTDC_DEPRECATE(_strdup) + _ACRTIMP char* __cdecl strdup( + _In_opt_z_ char const* _String + ); + #pragma pop_macro("strdup") + + // Declarations of functions defined in oldnames.lib: + _Check_return_ _CRT_NONSTDC_DEPRECATE(_strcmpi) + _ACRTIMP int __cdecl strcmpi( + _In_z_ char const* _String1, + _In_z_ char const* _String2 + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_stricmp) + _ACRTIMP int __cdecl stricmp( + _In_z_ char const* _String1, + _In_z_ char const* _String2 + ); + + _CRT_NONSTDC_DEPRECATE(_strlwr) + _ACRTIMP char* __cdecl strlwr( + _Inout_z_ char* _String + ); + + _Check_return_ _CRT_NONSTDC_DEPRECATE(_strnicmp) + _ACRTIMP int __cdecl strnicmp( + _In_reads_or_z_(_MaxCount) char const* _String1, + _In_reads_or_z_(_MaxCount) char const* _String2, + _In_ size_t _MaxCount + ); + + _CRT_NONSTDC_DEPRECATE(_strnset) + _ACRTIMP char* __cdecl strnset( + _Inout_updates_z_(_MaxCount) char* _String, + _In_ int _Value, + _In_ size_t _MaxCount + ); + + _CRT_NONSTDC_DEPRECATE(_strrev) + _ACRTIMP char* __cdecl strrev( + _Inout_z_ char* _String + ); + + _CRT_NONSTDC_DEPRECATE(_strset) + char* __cdecl strset( + _Inout_z_ char* _String, + _In_ int _Value); + + _CRT_NONSTDC_DEPRECATE(_strupr) + _ACRTIMP char* __cdecl strupr( + _Inout_z_ char* _String + ); + +#endif // _CRT_INTERNAL_NONSTDC_NAMES + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // !__midl +#endif // _INC_STRING diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/tchar.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/tchar.h new file mode 100644 index 0000000000000000000000000000000000000000..00b579f6874cae3a312e11e6903ef01e06a5a63f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/tchar.h @@ -0,0 +1,2330 @@ +/*** +*tchar.h - definitions for generic international text functions +* +* Copyright (c) Microsoft Corporation. All rights reserved. +* +*Purpose: +* Definitions for generic international functions, mostly defines +* which map string/formatted-io/ctype functions to char, wchar_t, or +* MBCS versions. To be used for compatibility between single-byte, +* multi-byte and Unicode text models. +* +* [Public] +* +****/ + +#pragma once +#ifndef _INC_TCHAR // include guard for 3rd party interop +#define _INC_TCHAR + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +/* Notes */ + +/* There is no: + * _tcscat_l + * _tcscpy_l + * because mbscat and mbscpy just behave like strcat and strcpy, + * so no special locale-specific behavior is needed. + */ + +/* Functions like: + * _strncat_l + * _strncat_s_l + * are only available if ANSI is defined (i.e. no _UNICODE nor _MBCS), + * because these functions are only accessible through the _tcs macros. + */ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#ifndef _CRT_FAR_MAPPINGS_NO_DEPRECATE +/* +Long ago, these f prefix text functions referred to handling of text in segmented architectures. Ever since the move +to Win32 they have been obsolete names, but we kept them around as aliases. Now that we have a deprecation +mechanism we can warn about them. You should switch to the identical function without the f prefix. +*/ +#pragma deprecated("_ftcscat") +#pragma deprecated("_ftcschr") +#pragma deprecated("_ftcscpy") +#pragma deprecated("_ftcscspn") +#pragma deprecated("_ftcslen") +#pragma deprecated("_ftcsncat") +#pragma deprecated("_ftcsncpy") +#pragma deprecated("_ftcspbrk") +#pragma deprecated("_ftcsrchr") +#pragma deprecated("_ftcsspn") +#pragma deprecated("_ftcsstr") +#pragma deprecated("_ftcstok") +#pragma deprecated("_ftcsdup") +#pragma deprecated("_ftcsnset") +#pragma deprecated("_ftcsrev") +#pragma deprecated("_ftcsset") +#pragma deprecated("_ftcscmp") +#pragma deprecated("_ftcsicmp") +#pragma deprecated("_ftcsnccmp") +#pragma deprecated("_ftcsncmp") +#pragma deprecated("_ftcsncicmp") +#pragma deprecated("_ftcsnicmp") +#pragma deprecated("_ftcscoll") +#pragma deprecated("_ftcsicoll") +#pragma deprecated("_ftcsnccoll") +#pragma deprecated("_ftcsncoll") +#pragma deprecated("_ftcsncicoll") +#pragma deprecated("_ftcsnicoll") +#pragma deprecated("_ftcsclen") +#pragma deprecated("_ftcsnccat") +#pragma deprecated("_ftcsnccpy") +#pragma deprecated("_ftcsncset") +#pragma deprecated("_ftcsdec") +#pragma deprecated("_ftcsinc") +#pragma deprecated("_ftcsnbcnt") +#pragma deprecated("_ftcsnccnt") +#pragma deprecated("_ftcsnextc") +#pragma deprecated("_ftcsninc") +#pragma deprecated("_ftcsspnp") +#pragma deprecated("_ftcslwr") +#pragma deprecated("_ftcsupr") +#pragma deprecated("_ftclen") +#pragma deprecated("_ftccpy") +#pragma deprecated("_ftccmp") +#endif /* _CRT_FAR_MAPPINGS_NO_DEPRECATE */ + +#define _ftcscat _tcscat +#define _ftcschr _tcschr +#define _ftcscpy _tcscpy +#define _ftcscspn _tcscspn +#define _ftcslen _tcslen +#define _ftcsncat _tcsncat +#define _ftcsncpy _tcsncpy +#define _ftcspbrk _tcspbrk +#define _ftcsrchr _tcsrchr +#define _ftcsspn _tcsspn +#define _ftcsstr _tcsstr +#define _ftcstok _tcstok + +#define _ftcsdup _tcsdup +#define _ftcsnset _tcsnset +#define _ftcsrev _tcsrev +#define _ftcsset _tcsset + +#define _ftcscmp _tcscmp +#define _ftcsicmp _tcsicmp +#define _ftcsnccmp _tcsnccmp +#define _ftcsncmp _tcsncmp +#define _ftcsncicmp _tcsncicmp +#define _ftcsnicmp _tcsnicmp + +#define _ftcscoll _tcscoll +#define _ftcsicoll _tcsicoll +#define _ftcsnccoll _tcsnccoll +#define _ftcsncoll _tcsncoll +#define _ftcsncicoll _tcsncicoll +#define _ftcsnicoll _tcsnicoll + +/* Redundant "logical-character" mappings */ + +#define _ftcsclen _tcsclen +#define _ftcsnccat _tcsnccat +#define _ftcsnccpy _tcsnccpy +#define _ftcsncset _tcsncset + +#define _ftcsdec _tcsdec +#define _ftcsinc _tcsinc +#define _ftcsnbcnt _tcsnbcnt +#define _ftcsnccnt _tcsnccnt +#define _ftcsnextc _tcsnextc +#define _ftcsninc _tcsninc +#define _ftcsspnp _tcsspnp + +#define _ftcslwr _tcslwr +#define _ftcsupr _tcsupr + +#define _ftclen _tclen +#define _ftccpy _tccpy +#define _ftccmp _tccmp + +#ifdef _UNICODE + +#ifdef __cplusplus +} /* ... extern "C" */ +#endif /* __cplusplus */ + +/* ++++++++++++++++++++ UNICODE ++++++++++++++++++++ */ + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#ifndef __TCHAR_DEFINED +typedef wchar_t _TCHAR; +typedef wchar_t _TSCHAR; +typedef wchar_t _TUCHAR; +typedef wchar_t _TXCHAR; +typedef wint_t _TINT; +#define __TCHAR_DEFINED +#endif /* __TCHAR_DEFINED */ + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES +#ifndef _TCHAR_DEFINED +typedef wchar_t TCHAR; +typedef wchar_t * PTCHAR; +typedef wchar_t TBYTE; +typedef wchar_t * PTBYTE; +#define _TCHAR_DEFINED +#endif /* _TCHAR_DEFINED */ +#endif /* _CRT_INTERNAL_NONSTDC_NAMES */ + +#define _TEOF WEOF + +#define __T(x) L ## x + + +/* Program */ + +#define _tmain wmain +#define _tWinMain wWinMain +#define _tenviron _wenviron +#define __targv __wargv + +/* Formatted i/o */ + +#define _tprintf wprintf +#define _tprintf_l _wprintf_l +#define _tprintf_s wprintf_s +#define _tprintf_s_l _wprintf_s_l +#define _tprintf_p _wprintf_p +#define _tprintf_p_l _wprintf_p_l +#define _tcprintf _cwprintf +#define _tcprintf_l _cwprintf_l +#define _tcprintf_s _cwprintf_s +#define _tcprintf_s_l _cwprintf_s_l +#define _tcprintf_p _cwprintf_p +#define _tcprintf_p_l _cwprintf_p_l +#define _vtcprintf _vcwprintf +#define _vtcprintf_l _vcwprintf_l +#define _vtcprintf_s _vcwprintf_s +#define _vtcprintf_s_l _vcwprintf_s_l +#define _vtcprintf_p _vcwprintf_p +#define _vtcprintf_p_l _vcwprintf_p_l +#define _ftprintf fwprintf +#define _ftprintf_l _fwprintf_l +#define _ftprintf_s fwprintf_s +#define _ftprintf_s_l _fwprintf_s_l +#define _ftprintf_p _fwprintf_p +#define _ftprintf_p_l _fwprintf_p_l +#define _stprintf _swprintf +#define _stprintf_l __swprintf_l +#define _stprintf_s swprintf_s +#define _stprintf_s_l _swprintf_s_l +#define _stprintf_p _swprintf_p +#define _stprintf_p_l _swprintf_p_l +#define _sctprintf _scwprintf +#define _sctprintf_l _scwprintf_l +#define _sctprintf_p _scwprintf_p +#define _sctprintf_p_l _scwprintf_p_l +#define _sntprintf _snwprintf +#define _sntprintf_l _snwprintf_l +#define _sntprintf_s _snwprintf_s +#define _sntprintf_s_l _snwprintf_s_l +#define _vtprintf vwprintf +#define _vtprintf_l _vwprintf_l +#define _vtprintf_s vwprintf_s +#define _vtprintf_s_l _vwprintf_s_l +#define _vtprintf_p _vwprintf_p +#define _vtprintf_p_l _vwprintf_p_l +#define _vftprintf vfwprintf +#define _vftprintf_l _vfwprintf_l +#define _vftprintf_s vfwprintf_s +#define _vftprintf_s_l _vfwprintf_s_l +#define _vftprintf_p _vfwprintf_p +#define _vftprintf_p_l _vfwprintf_p_l +#define _vstprintf vswprintf +#define _vstprintf_l _vswprintf_l +#define _vstprintf_s vswprintf_s +#define _vstprintf_s_l _vswprintf_s_l +#define _vstprintf_p _vswprintf_p +#define _vstprintf_p_l _vswprintf_p_l +#define _vsctprintf _vscwprintf +#define _vsctprintf_l _vscwprintf_l +#define _vsctprintf_p _vscwprintf_p +#define _vsctprintf_p_l _vscwprintf_p_l +#define _vsntprintf _vsnwprintf +#define _vsntprintf_l _vsnwprintf_l +#define _vsntprintf_s _vsnwprintf_s +#define _vsntprintf_s_l _vsnwprintf_s_l + +#define _tscanf wscanf +#define _tscanf_l _wscanf_l +#define _tscanf_s wscanf_s +#define _tscanf_s_l _wscanf_s_l +#define _tcscanf _cwscanf +#define _tcscanf_l _cwscanf_l +#define _tcscanf_s _cwscanf_s +#define _tcscanf_s_l _cwscanf_s_l +#define _ftscanf fwscanf +#define _ftscanf_l _fwscanf_l +#define _ftscanf_s fwscanf_s +#define _ftscanf_s_l _fwscanf_s_l +#define _stscanf swscanf +#define _stscanf_l _swscanf_l +#define _stscanf_s swscanf_s +#define _stscanf_s_l _swscanf_s_l +#define _sntscanf _snwscanf +#define _sntscanf_l _snwscanf_l +#define _sntscanf_s _snwscanf_s +#define _sntscanf_s_l _snwscanf_s_l +#define _vtscanf vwscanf +#define _vtscanf_s vwscanf_s +#define _vftscanf vfwscanf +#define _vftscanf_s vfwscanf_s +#define _vstscanf vswscanf +#define _vstscanf_s vswscanf_s + + +/* Unformatted i/o */ + +#define _fgettc fgetwc +#define _fgettc_nolock _fgetwc_nolock +#define _fgettchar _fgetwchar +#define _fgetts fgetws +#define _fputtc fputwc +#define _fputtc_nolock _fputwc_nolock +#define _fputtchar _fputwchar +#define _fputts fputws +#define _cputts _cputws +#define _cgetts_s _cgetws_s +#define _gettc getwc +#define _gettc_nolock _getwc_nolock +#define _gettch _getwch +#define _gettch_nolock _getwch_nolock +#define _gettche _getwche +#define _gettche_nolock _getwche_nolock +#define _gettchar getwchar +#define _gettchar_nolock _getwchar_nolock +#define _getts_s _getws_s +#define _puttc putwc +#define _puttc_nolock _fputwc_nolock +#define _puttchar putwchar +#define _puttchar_nolock _putwchar_nolock +#define _puttch _putwch +#define _puttch_nolock _putwch_nolock +#define _putts _putws +#define _ungettc ungetwc +#define _ungettc_nolock _ungetwc_nolock +#define _ungettch _ungetwch +#define _ungettch_nolock _ungetwch_nolock + + +/* String conversion functions */ + +#define _tcstod wcstod +#define _tcstof wcstof +#define _tcstol wcstol +#define _tcstold wcstold +#define _tcstoll wcstoll +#define _tcstoul wcstoul +#define _tcstoull wcstoull +#define _tcstoimax wcstoimax +#define _tcstoumax wcstoumax +#define _tcstoi64 _wcstoi64 +#define _tcstoui64 _wcstoui64 +#define _ttof _wtof +#define _tstof _wtof +#define _tstol _wtol +#define _tstoll _wtoll +#define _tstoi _wtoi +#define _tstoi64 _wtoi64 +#define _tcstod_l _wcstod_l +#define _tcstof_l _wcstof_l +#define _tcstol_l _wcstol_l +#define _tcstold_l _wcstold_l +#define _tcstoll_l _wcstoll_l +#define _tcstoul_l _wcstoul_l +#define _tcstoull_l _wcstoull_l +#define _tcstoi64_l _wcstoi64_l +#define _tcstoui64_l _wcstoui64_l +#define _tcstoimax_l _wcstoimax_l +#define _tcstoumax_l _wcstoumax_l +#define _tstof_l _wtof_l +#define _tstol_l _wtol_l +#define _tstoll_l _wtoll_l +#define _tstoi_l _wtoi_l +#define _tstoi64_l _wtoi64_l + +#define _itot_s _itow_s +#define _ltot_s _ltow_s +#define _ultot_s _ultow_s +#define _itot _itow +#define _ltot _ltow +#define _ultot _ultow +#define _ttoi _wtoi +#define _ttol _wtol +#define _ttoll _wtoll + +#define _ttoi64 _wtoi64 +#define _i64tot_s _i64tow_s +#define _ui64tot_s _ui64tow_s +#define _i64tot _i64tow +#define _ui64tot _ui64tow + +/* String functions */ + +#define _tcscat wcscat +#define _tcscat_s wcscat_s +#define _tcschr wcschr +#define _tcscpy wcscpy +#define _tcscpy_s wcscpy_s +#define _tcscspn wcscspn +#define _tcslen wcslen +#define _tcsnlen wcsnlen +#define _tcsncat wcsncat +#define _tcsncat_s wcsncat_s +#define _tcsncat_l _wcsncat_l +#define _tcsncat_s_l _wcsncat_s_l +#define _tcsncpy wcsncpy +#define _tcsncpy_s wcsncpy_s +#define _tcsncpy_l _wcsncpy_l +#define _tcsncpy_s_l _wcsncpy_s_l +#define _tcspbrk wcspbrk +#define _tcsrchr wcsrchr +#define _tcsspn wcsspn +#define _tcsstr wcsstr +#define _tcstok _wcstok +#define _tcstok_s wcstok_s +#define _tcstok_l _wcstok_l +#define _tcstok_s_l _wcstok_s_l +#define _tcserror _wcserror +#define _tcserror_s _wcserror_s +#define __tcserror __wcserror +#define __tcserror_s __wcserror_s + +#define _tcsdup _wcsdup +#define _tcsnset _wcsnset +#define _tcsnset_s _wcsnset_s +#define _tcsnset_l _wcsnset_l +#define _tcsnset_s_l _wcsnset_s_l +#define _tcsrev _wcsrev +#define _tcsset _wcsset +#define _tcsset_s _wcsset_s +#define _tcsset_l _wcsset_l +#define _tcsset_s_l _wcsset_s_l + +#define _tcscmp wcscmp +#define _tcsicmp _wcsicmp +#define _tcsicmp_l _wcsicmp_l +#define _tcsnccmp wcsncmp +#define _tcsncmp wcsncmp +#define _tcsncicmp _wcsnicmp +#define _tcsncicmp_l _wcsnicmp_l +#define _tcsnicmp _wcsnicmp +#define _tcsnicmp_l _wcsnicmp_l + +#define _tcscoll wcscoll +#define _tcscoll_l _wcscoll_l +#define _tcsicoll _wcsicoll +#define _tcsicoll_l _wcsicoll_l +#define _tcsnccoll _wcsncoll +#define _tcsnccoll_l _wcsncoll_l +#define _tcsncoll _wcsncoll +#define _tcsncoll_l _wcsncoll_l +#define _tcsncicoll _wcsnicoll +#define _tcsncicoll_l _wcsnicoll_l +#define _tcsnicoll _wcsnicoll +#define _tcsnicoll_l _wcsnicoll_l + +#ifdef _DEBUG +#define _tcsdup_dbg _wcsdup_dbg +#endif /* _DEBUG */ + +/* Execute functions */ + +#define _texecl _wexecl +#define _texecle _wexecle +#define _texeclp _wexeclp +#define _texeclpe _wexeclpe +#define _texecv _wexecv +#define _texecve _wexecve +#define _texecvp _wexecvp +#define _texecvpe _wexecvpe + +#define _tspawnl _wspawnl +#define _tspawnle _wspawnle +#define _tspawnlp _wspawnlp +#define _tspawnlpe _wspawnlpe +#define _tspawnv _wspawnv +#define _tspawnve _wspawnve +#define _tspawnvp _wspawnvp +#define _tspawnvp _wspawnvp +#define _tspawnvpe _wspawnvpe + +#define _tsystem _wsystem + + +/* Time functions */ + +#define _tasctime _wasctime +#define _tctime _wctime +#define _tctime32 _wctime32 +#define _tctime64 _wctime64 +#define _tstrdate _wstrdate +#define _tstrtime _wstrtime +#define _tutime _wutime +#define _tutime32 _wutime32 +#define _tutime64 _wutime64 +#define _tcsftime wcsftime +#define _tcsftime_l _wcsftime_l + +#define _tasctime_s _wasctime_s +#define _tctime_s _wctime_s +#define _tctime32_s _wctime32_s +#define _tctime64_s _wctime64_s +#define _tstrdate_s _wstrdate_s +#define _tstrtime_s _wstrtime_s + +/* Directory functions */ + +#define _tchdir _wchdir +#define _tgetcwd _wgetcwd +#define _tgetdcwd _wgetdcwd +#define _tgetdcwd_nolock _wgetdcwd_nolock +#define _tmkdir _wmkdir +#define _trmdir _wrmdir + +#ifdef _DEBUG +#define _tgetcwd_dbg _wgetcwd_dbg +#define _tgetdcwd_dbg _wgetdcwd_dbg +#define _tgetdcwd_lk_dbg _wgetdcwd_lk_dbg +#endif /* _DEBUG */ + +/* Environment/Path functions */ + +#define _tfullpath _wfullpath +#define _tgetenv _wgetenv +#define _tgetenv_s _wgetenv_s +#define _tdupenv_s _wdupenv_s +#define _tmakepath _wmakepath +#define _tmakepath_s _wmakepath_s +#define _tpgmptr _wpgmptr +#define _get_tpgmptr _get_wpgmptr +#define _tputenv _wputenv +#define _tputenv_s _wputenv_s +#define _tsearchenv _wsearchenv +#define _tsearchenv_s _wsearchenv_s +#define _tsplitpath _wsplitpath +#define _tsplitpath_s _wsplitpath_s + +#ifdef _DEBUG +#define _tfullpath_dbg _wfullpath_dbg +#define _tdupenv_s_dbg _wdupenv_s_dbg +#endif /* _DEBUG */ + +/* Stdio functions */ + +#define _tfdopen _wfdopen +#define _tfsopen _wfsopen +#define _tfopen _wfopen +#define _tfopen_s _wfopen_s +#define _tfreopen _wfreopen +#define _tfreopen_s _wfreopen_s +#define _tperror _wperror +#define _tpopen _wpopen +#define _ttempnam _wtempnam +#define _ttmpnam _wtmpnam +#define _ttmpnam_s _wtmpnam_s + +#ifdef _DEBUG +#define _ttempnam_dbg _wtempnam_dbg +#endif /* _DEBUG */ + + +/* Io functions */ + +#define _taccess _waccess +#define _taccess_s _waccess_s +#define _tchmod _wchmod +#define _tcreat _wcreat +#define _tfindfirst _wfindfirst +#define _tfindfirst32 _wfindfirst32 +#define _tfindfirst64 _wfindfirst64 +#define _tfindfirsti64 _wfindfirsti64 +#define _tfindfirst32i64 _wfindfirst32i64 +#define _tfindfirst64i32 _wfindfirst64i32 +#define _tfindnext _wfindnext +#define _tfindnext32 _wfindnext32 +#define _tfindnext64 _wfindnext64 +#define _tfindnexti64 _wfindnexti64 +#define _tfindnext32i64 _wfindnext32i64 +#define _tfindnext64i32 _wfindnext64i32 +#define _tmktemp _wmktemp +#define _tmktemp_s _wmktemp_s +#define _topen _wopen +#define _tremove _wremove +#define _trename _wrename +#define _tsopen _wsopen +#define _tsopen_s _wsopen_s +#define _tunlink _wunlink + +#define _tfinddata_t _wfinddata_t +#define _tfinddata32_t _wfinddata32_t +#define _tfinddata64_t _wfinddata64_t +#define _tfinddatai64_t _wfinddatai64_t +#define _tfinddata32i64_t _wfinddata32i64_t +#define _tfinddata64i32_t _wfinddata64i32_t + + +/* Stat functions */ + +#define _tstat _wstat +#define _tstat32 _wstat32 +#define _tstat32i64 _wstat32i64 +#define _tstat64 _wstat64 +#define _tstat64i32 _wstat64i32 +#define _tstati64 _wstati64 + + +/* Setlocale functions */ + +#define _tsetlocale _wsetlocale + + +/* Redundant "logical-character" mappings */ + +#define _tcsclen wcslen +#define _tcscnlen wcsnlen +#define _tcsclen_l(_String, _Locale) wcslen(_String) +#define _tcscnlen_l(_String, _Max_count, _Locale) wcsnlen((_String), (_Max_count)) +#define _tcsnccat wcsncat +#define _tcsnccat_s wcsncat_s +#define _tcsnccat_l _wcsncat_l +#define _tcsnccat_s_l _wcsncat_s_l +#define _tcsnccpy wcsncpy +#define _tcsnccpy_s wcsncpy_s +#define _tcsnccpy_l _wcsncpy_l +#define _tcsnccpy_s_l _wcsncpy_s_l +#define _tcsncset _wcsnset +#define _tcsncset_s _wcsnset_s +#define _tcsncset_l _wcsnset_l +#define _tcsncset_s_l _wcsnset_s_l + +#define _tcsdec _wcsdec +#define _tcsinc _wcsinc +#define _tcsnbcnt _wcsncnt +#define _tcsnccnt _wcsncnt +#define _tcsnextc _wcsnextc +#define _tcsninc _wcsninc +#define _tcsspnp _wcsspnp + +#define _tcslwr _wcslwr +#define _tcslwr_l _wcslwr_l +#define _tcslwr_s _wcslwr_s +#define _tcslwr_s_l _wcslwr_s_l +#define _tcsupr _wcsupr +#define _tcsupr_l _wcsupr_l +#define _tcsupr_s _wcsupr_s +#define _tcsupr_s_l _wcsupr_s_l +#define _tcsxfrm wcsxfrm +#define _tcsxfrm_l _wcsxfrm_l + + +#if __STDC__ || defined (_NO_INLINING) +#define _tclen(_pc) (1) +#define _tccpy(_pc1,_cpc2) ((*(_pc1) = *(_cpc2))) +#define _tccpy_l(_pc1,_cpc2,_locale) _tccpy((_pc1),(_cpc2)) +#define _tccmp(_cpc1,_cpc2) ((*(_cpc1))-(*(_cpc2))) +#else /* __STDC__ || defined (_NO_INLINING) */ +_Check_return_ __inline size_t __CRTDECL _tclen(_In_z_ const wchar_t *_Cpc) +{ + /* avoid compiler warning */ + (void)_Cpc; + return 1; +} +__inline void __CRTDECL _tccpy(_Out_ wchar_t *_Pc1, _In_z_ const wchar_t *_Cpc2) { *_Pc1 = (wchar_t)*_Cpc2; } +__inline void __CRTDECL _tccpy_l(_Out_ wchar_t *_Pc1, _In_z_ const wchar_t *_Cpc2, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + _tccpy(_Pc1, _Cpc2); +} +_Check_return_ __inline int __CRTDECL _tccmp(_In_z_ const wchar_t *_Cpc1, _In_z_ const wchar_t *_Cpc2) { return (int) ((*_Cpc1)-(*_Cpc2)); } +#endif /* __STDC__ || defined (_NO_INLINING) */ + +/* ctype functions */ + +#define _istalnum iswalnum +#define _istalnum_l _iswalnum_l +#define _istalpha iswalpha +#define _istalpha_l _iswalpha_l +#define _istascii iswascii +#define _istcntrl iswcntrl +#define _istcntrl_l _iswcntrl_l +#define _istdigit iswdigit +#define _istdigit_l _iswdigit_l +#define _istgraph iswgraph +#define _istgraph_l _iswgraph_l +#define _istlower iswlower +#define _istlower_l _iswlower_l +#define _istprint iswprint +#define _istprint_l _iswprint_l +#define _istpunct iswpunct +#define _istpunct_l _iswpunct_l +#define _istblank iswblank +#define _istblank_l _iswblank_l +#define _istspace iswspace +#define _istspace_l _iswspace_l +#define _istupper iswupper +#define _istupper_l _iswupper_l +#define _istxdigit iswxdigit +#define _istxdigit_l _iswxdigit_l + +#define _totupper towupper +#define _totupper_l _towupper_l +#define _totlower towlower +#define _totlower_l _towlower_l + +#define _istlegal(_Char) (1) +#define _istlead(_Char) (0) +#define _istleadbyte(_Char) (0) +#define _istleadbyte_l(_Char, _Locale) (0) + + +#if __STDC__ || defined _NO_INLINING +#define _wcsdec(_cpc1, _cpc2) ((_cpc1)>=(_cpc2) ? NULL : (_cpc2)-1) +#define _wcsinc(_pc) ((_pc)+1) +#define _wcsnextc(_cpc) ((unsigned int) *(_cpc)) +#define _wcsninc(_pc, _sz) (((_pc)+(_sz))) +_Check_return_ _ACRTIMP size_t __cdecl __wcsncnt(_In_reads_or_z_(_MaxCount) const wchar_t * _Str, _In_ size_t _MaxCount); +#define _wcsncnt(_cpc, _sz) (__wcsncnt(_cpc,_sz)) +#define _wcsspnp(_cpc1, _cpc2) (_cpc1==NULL ? NULL : ((*((_cpc1)+wcsspn(_cpc1,_cpc2))) ? ((_cpc1)+wcsspn(_cpc1,_cpc2)) : NULL)) +#define _wcsncpy_l(_Destination, _Source, _Count, _Locale) (wcsncpy(_Destination, _Source, _Count)) +#if __STDC_WANT_SECURE_LIB__ +#define _wcsncpy_s_l(_Destination, _Destination_size_chars, _Source, _Count, _Locale) (wcsncpy_s(_Destination, _Destination_size_chars, _Source, _Count)) +#endif /* __STDC_WANT_SECURE_LIB__ */ +#define _wcsncat_l(_Destination, _Source, _Count, _Locale) (wcsncat(_Destination, _Source, _Count)) +#if __STDC_WANT_SECURE_LIB__ +#define _wcsncat_s_l(_Destination, _Destination_size_chars, _Source, _Count, _Locale) (wcsncat_s(_Destination, _Destination_size_chars, _Source, _Count)) +#endif /* __STDC_WANT_SECURE_LIB__ */ +#define _wcstok_l(_String, _Delimiters, _Locale) (_wcstok(_String, _Delimiters)) +#define _wcstok_s_l(_String, _Delimiters, _Current_position, _Locale) (wcstok_s(_String, _Delimiters, _Current_position)) +#define _wcsnset_l(_Destination, _Value, _Count, _Locale) (_wcsnset(_Destination, _Value, _Count)) +#define _wcsnset_s_l(_Destination, _Destination_size_chars, _Value, _Count, _Locale) (_wcsnset_s(_Destination, _Destination_size_chars, _Value, _Count)) +#define _wcsset_l(_Destination, _Value, _Locale) (_wcsset(_Destination, _Value)) +#define _wcsset_s_l(_Destination, _Destination_size_chars, _Value, _Locale) (_wcsset_s(_Destination, _Destination_size_chars, _Value)) +#else /* __STDC__ || defined (_NO_INLINING) */ +_Check_return_ __inline wchar_t * __CRTDECL _wcsdec(_In_z_ const wchar_t * _Cpc1, _In_z_ const wchar_t * _Cpc2) { return (wchar_t *)((_Cpc1)>=(_Cpc2) ? NULL : ((_Cpc2)-1)); } +_Check_return_ __inline wchar_t * __CRTDECL _wcsinc(_In_z_ const wchar_t * _Pc) { return (wchar_t *)(_Pc+1); } +_Check_return_ __inline unsigned int __CRTDECL _wcsnextc(_In_z_ const wchar_t * _Cpc) { return (unsigned int)*_Cpc; } +_Check_return_ __inline wchar_t * __CRTDECL _wcsninc(_In_z_ const wchar_t * _Pc, _In_ size_t _Sz) { return (wchar_t *)(_Pc+_Sz); } +_Check_return_ __inline size_t __CRTDECL _wcsncnt( _In_reads_or_z_(_Cnt) const wchar_t * _String, _In_ size_t _Cnt) +{ + size_t n = _Cnt; + wchar_t *cp = (wchar_t *)_String; + while (n-- && *cp) + cp++; + return _Cnt - n - 1; +} +_Check_return_ __inline wchar_t * __CRTDECL _wcsspnp +( + _In_z_ const wchar_t * _Cpc1, + _In_z_ const wchar_t * _Cpc2 +) +{ + return _Cpc1==NULL ? NULL : ((*(_Cpc1 += wcsspn(_Cpc1,_Cpc2))!='\0') ? (wchar_t*)_Cpc1 : NULL); +} + +#if __STDC_WANT_SECURE_LIB__ +_Check_return_wat_ __inline errno_t __CRTDECL _wcsncpy_s_l(_Out_writes_z_(_Destination_size_chars) wchar_t *_Destination, _In_ size_t _Destination_size_chars, _In_z_ const wchar_t *_Source, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return wcsncpy_s(_Destination, _Destination_size_chars, _Source, _Count); +} +#endif /* __STDC_WANT_SECURE_LIB__ */ + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _wcsncpy_s_l, wchar_t, _Dest, _In_z_ const wchar_t *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(wchar_t *, __RETURN_POLICY_DST, _wcsncpy_l, _wcsncpy_s_l, _Out_writes_z_(_Size) wchar_t, _Out_writes_(_Count) wchar_t, _Dst, _In_z_ const wchar_t *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) +{ + _CRT_UNUSED(_Locale); +#pragma warning(suppress: 6054) // String may not be zero-terminated + return wcsncpy(_Dst, _Source, _Count); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(wchar_t *, __RETURN_POLICY_DST, _wcsncpy_l, _wcsncpy_s_l, _Out_writes_z_(_Size) wchar_t, _Out_writes_(_Count), wchar_t, _Dst, _In_z_ const wchar_t *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +#if __STDC_WANT_SECURE_LIB__ +_Check_return_wat_ __inline errno_t __CRTDECL _wcsncat_s_l(_Inout_updates_z_(_Destination_size_chars) wchar_t *_Destination, _In_ size_t _Destination_size_chars, _In_z_ const wchar_t *_Source, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return wcsncat_s(_Destination, _Destination_size_chars, _Source, _Count); +} +#endif /* __STDC_WANT_SECURE_LIB__ */ + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _wcsncat_s_l, wchar_t, _Dest, _In_z_ const wchar_t *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(wchar_t *, __RETURN_POLICY_DST, _wcsncat_l, _wcsncat_s_l, _Inout_updates_z_(_Size) wchar_t, _Inout_z_ wchar_t, _Dst, _In_z_ const wchar_t *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) +{ + _CRT_UNUSED(_Locale); +// C6054: String may not be zero-terminated +// C6059: Incorrect length parameter in call +#pragma warning(suppress: 6054 6059) + return wcsncat(_Dst, _Source, _Count); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(wchar_t *, __RETURN_POLICY_DST, _wcsncat_l, _wcsncat_s_l, _Inout_updates_z_(_Size) wchar_t, _Inout_z_, wchar_t, _Dst, _In_z_ const wchar_t *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +_CRT_INSECURE_DEPRECATE(_wcstok_s_l) __inline wchar_t * _wcstok_l(_Inout_opt_z_ wchar_t * _String, _In_z_ const wchar_t * _Delimiters, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); +#ifdef _CRT_NON_CONFORMING_WCSTOK + return wcstok(_String,_Delimiters); +#else + return wcstok(_String,_Delimiters,0); +#endif +} + +#if __STDC_WANT_SECURE_LIB__ +__inline wchar_t * _wcstok_s_l(_Inout_opt_z_ wchar_t * _String, _In_z_ const wchar_t * _Delimiters, _Inout_ _Deref_prepost_opt_z_ wchar_t **_Current_position, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return wcstok_s(_String, _Delimiters, _Current_position); +} +#endif /* __STDC_WANT_SECURE_LIB__ */ + +_Check_return_wat_ __inline errno_t _wcsnset_s_l(_Inout_updates_z_(_Destination_size_chars) wchar_t * _Destination, _In_ size_t _Destination_size_chars, _In_ wchar_t _Value, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return _wcsnset_s(_Destination, _Destination_size_chars, _Value, _Count); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _wcsnset_s_l, _Prepost_z_ wchar_t, _Dest, _In_ wchar_t, _Value, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(wchar_t *, __RETURN_POLICY_DST, _wcsnset_l, _wcsnset_s_l, _Inout_updates_z_(_Size) wchar_t, _Inout_updates_z_(_MaxCount) wchar_t, _Dst, _In_ wchar_t, _Value, _In_ size_t, _MaxCount, _In_opt_ _locale_t, _Locale) +{ + _CRT_UNUSED(_Locale); + return _wcsnset(_Dst, _Value, _MaxCount); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(wchar_t *, __RETURN_POLICY_DST, _wcsnset_l, _wcsnset_s_l, _Inout_updates_z_(_Size) wchar_t, _Inout_updates_z_(_MaxCount), wchar_t, _Dst, _In_ wchar_t, _Value, _In_ size_t, _MaxCount, _In_opt_ _locale_t, _Locale) + +_Check_return_wat_ __inline errno_t _wcsset_s_l(_Inout_updates_z_(_Destination_size_chars) wchar_t * _Destination, _In_ size_t _Destination_size_chars, _In_ wchar_t _Value, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return _wcsset_s(_Destination, _Destination_size_chars, _Value); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, _wcsset_s_l, _Prepost_z_ wchar_t, _Dest, _In_ wchar_t, _Value, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(wchar_t *, __RETURN_POLICY_DST, _wcsset_l, _wcsset_s_l, _Inout_updates_z_(_Size) wchar_t, _Inout_z_ wchar_t, _Dst, _In_ wchar_t, _Value, _In_opt_ _locale_t, _Locale) +{ + _CRT_UNUSED(_Locale); + return _wcsset(_Dst, _Value); +} + +__DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(wchar_t *, __RETURN_POLICY_DST, _wcsset_l, _wcsset_s_l, _Inout_updates_z_(_Size) wchar_t, _Inout_z_, wchar_t, _Dst, _In_ wchar_t, _Value, _In_opt_ _locale_t, _Locale) + +#endif /* __STDC__ || defined (_NO_INLINING) */ + +#else /* _UNICODE */ + +/* ++++++++++++++++++++ SBCS and MBCS ++++++++++++++++++++ */ + +#ifdef __cplusplus +} /* ... extern "C" */ +#endif /* __cplusplus */ + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + + +#define _TEOF EOF + +#define __T(x) x + + +/* Program */ + +#define _tmain main +#define _tWinMain WinMain +#define _tenviron _environ +#define __targv __argv + + +/* Formatted i/o */ + +#define _tprintf printf +#define _tprintf_l _printf_l +#define _tprintf_s printf_s +#define _tprintf_s_l _printf_s_l +#define _tprintf_p _printf_p +#define _tprintf_p_l _printf_p_l +#define _tcprintf _cprintf +#define _tcprintf_l _cprintf_l +#define _tcprintf_s _cprintf_s +#define _tcprintf_s_l _cprintf_s_l +#define _tcprintf_p _cprintf_p +#define _tcprintf_p_l _cprintf_p_l +#define _vtcprintf _vcprintf +#define _vtcprintf_l _vcprintf_l +#define _vtcprintf_s _vcprintf_s +#define _vtcprintf_s_l _vcprintf_s_l +#define _vtcprintf_p _vcprintf_p +#define _vtcprintf_p_l _vcprintf_p_l +#define _ftprintf fprintf +#define _ftprintf_l _fprintf_l +#define _ftprintf_s fprintf_s +#define _ftprintf_s_l _fprintf_s_l +#define _ftprintf_p _fprintf_p +#define _ftprintf_p_l _fprintf_p_l +#define _stprintf sprintf +#define _stprintf_l _sprintf_l +#define _stprintf_s sprintf_s +#define _stprintf_s_l _sprintf_s_l +#define _stprintf_p _sprintf_p +#define _stprintf_p_l _sprintf_p_l +#define _sctprintf _scprintf +#define _sctprintf_l _scprintf_l +#define _sctprintf_p _scprintf_p +#define _sctprintf_p_l _scprintf_p_l +#define _sntprintf _snprintf +#define _sntprintf_l _snprintf_l +#define _sntprintf_s _snprintf_s +#define _sntprintf_s_l _snprintf_s_l +#define _vtprintf vprintf +#define _vtprintf_l _vprintf_l +#define _vtprintf_s vprintf_s +#define _vtprintf_s_l _vprintf_s_l +#define _vtprintf_p _vprintf_p +#define _vtprintf_p_l _vprintf_p_l +#define _vftprintf vfprintf +#define _vftprintf_l _vfprintf_l +#define _vftprintf_s vfprintf_s +#define _vftprintf_s_l _vfprintf_s_l +#define _vftprintf_p _vfprintf_p +#define _vftprintf_p_l _vfprintf_p_l +#define _vstprintf vsprintf +#define _vstprintf_l _vsprintf_l +#define _vstprintf_s vsprintf_s +#define _vstprintf_s_l _vsprintf_s_l +#define _vstprintf_p _vsprintf_p +#define _vstprintf_p_l _vsprintf_p_l +#define _vsctprintf _vscprintf +#define _vsctprintf_l _vscprintf_l +#define _vsctprintf_p _vscprintf_p +#define _vsctprintf_p_l _vscprintf_p_l +#define _vsntprintf _vsnprintf +#define _vsntprintf_l _vsnprintf_l +#define _vsntprintf_s _vsnprintf_s +#define _vsntprintf_s_l _vsnprintf_s_l + +#define _tscanf scanf +#define _tscanf_l _scanf_l +#define _tscanf_s scanf_s +#define _tscanf_s_l _scanf_s_l +#define _tcscanf _cscanf +#define _tcscanf_l _cscanf_l +#define _tcscanf_s _cscanf_s +#define _tcscanf_s_l _cscanf_s_l +#define _ftscanf fscanf +#define _ftscanf_l _fscanf_l +#define _ftscanf_s fscanf_s +#define _ftscanf_s_l _fscanf_s_l +#define _stscanf sscanf +#define _stscanf_l _sscanf_l +#define _stscanf_s sscanf_s +#define _stscanf_s_l _sscanf_s_l +#define _sntscanf _snscanf +#define _sntscanf_l _snscanf_l +#define _sntscanf_s _snscanf_s +#define _sntscanf_s_l _snscanf_s_l +#define _vtscanf vscanf +#define _vtscanf_s vscanf_s +#define _vftscanf vfscanf +#define _vftscanf_s vfscanf_s +#define _vstscanf vsscanf +#define _vstscanf_s vsscanf_s + + +/* Unformatted i/o */ + +#define _fgettc fgetc +#define _fgettc_nolock _fgetc_nolock +#define _fgettchar _fgetchar +#define _fgetts fgets +#define _fputtc fputc +#define _fputtc_nolock _fputc_nolock +#define _fputtchar _fputchar +#define _fputts fputs +#define _cputts _cputs +#define _gettc getc +#define _gettc_nolock _getc_nolock +#define _gettch _getch +#define _gettch_nolock _getch_nolock +#define _gettche _getche +#define _gettche_nolock _getche_nolock +#define _gettchar getchar +#define _gettchar_nolock _getchar_nolock +#define _getts_s gets_s +#define _cgetts_s _cgets_s +#define _puttc putc +#define _puttc_nolock _fputc_nolock +#define _puttchar putchar +#define _puttchar_nolock _putchar_nolock +#define _puttch _putch +#define _puttch_nolock _putch_nolock +#define _putts puts +#define _ungettc ungetc +#define _ungettc_nolock _ungetc_nolock +#define _ungettch _ungetch +#define _ungettch_nolock _ungetch_nolock + +/* String conversion functions */ + +#define _tcstod strtod +#define _tcstof strtof +#define _tcstol strtol +#define _tcstold strtold +#define _tcstoll strtoll +#define _tcstoul strtoul +#define _tcstoull strtoull +#define _tcstoimax strtoimax +#define _tcstoumax strtoumax +#define _ttof atof +#define _tstof atof +#define _tstol atol +#define _tstoll atoll +#define _tstoi atoi +#define _tstoi64 _atoi64 +#define _tcstod_l _strtod_l +#define _tcstof_l _strtof_l +#define _tcstol_l _strtol_l +#define _tcstold_l _strtold_l +#define _tcstoll_l _strtoll_l +#define _tcstoul_l _strtoul_l +#define _tcstoull_l _strtoull_l +#define _tcstoimax_l _strtoimax_l +#define _tcstoumax_l _strtoumax_l +#define _tstof_l _atof_l +#define _tstol_l _atol_l +#define _tstoll_l _atoll_l +#define _tstoi_l _atoi_l +#define _tstoi64_l _atoi64_l + +#define _itot_s _itoa_s +#define _ltot_s _ltoa_s +#define _ultot_s _ultoa_s +#define _itot _itoa +#define _ltot _ltoa +#define _ultot _ultoa +#define _ttoi atoi +#define _ttol atol +#define _ttoll atoll + +#define _ttoi64 _atoi64 +#define _tcstoi64 _strtoi64 +#define _tcstoi64_l _strtoi64_l +#define _tcstoui64 _strtoui64 +#define _tcstoui64_l _strtoui64_l +#define _i64tot_s _i64toa_s +#define _ui64tot_s _ui64toa_s +#define _i64tot _i64toa +#define _ui64tot _ui64toa + +/* String functions */ + +/* Note that _mbscat, _mbscpy and _mbsdup are functionally equivalent to + strcat, strcpy and strdup, respectively. */ + +#define _tcscat strcat +#define _tcscat_s strcat_s +#define _tcscpy strcpy +#define _tcscpy_s strcpy_s +#define _tcsdup _strdup +#define _tcslen strlen +#define _tcsnlen strnlen +#define _tcsxfrm strxfrm +#define _tcsxfrm_l _strxfrm_l +#define _tcserror strerror +#define _tcserror_s strerror_s +#define __tcserror _strerror +#define __tcserror_s _strerror_s + +#ifdef _DEBUG +#define _tcsdup_dbg _strdup_dbg +#endif /* _DEBUG */ + +/* Execute functions */ + +#define _texecl _execl +#define _texecle _execle +#define _texeclp _execlp +#define _texeclpe _execlpe +#define _texecv _execv +#define _texecve _execve +#define _texecvp _execvp +#define _texecvpe _execvpe + +#define _tspawnl _spawnl +#define _tspawnle _spawnle +#define _tspawnlp _spawnlp +#define _tspawnlpe _spawnlpe +#define _tspawnv _spawnv +#define _tspawnve _spawnve +#define _tspawnvp _spawnvp +#define _tspawnvpe _spawnvpe + +#define _tsystem system + + +/* Time functions */ + +#define _tasctime asctime +#define _tctime ctime +#define _tctime32 _ctime32 +#define _tctime64 _ctime64 +#define _tstrdate _strdate +#define _tstrtime _strtime +#define _tutime _utime +#define _tutime32 _utime32 +#define _tutime64 _utime64 +#define _tcsftime strftime +#define _tcsftime_l _strftime_l + +#define _tasctime_s asctime_s +#define _tctime_s ctime_s +#define _tctime32_s _ctime32_s +#define _tctime64_s _ctime64_s +#define _tstrdate_s _strdate_s +#define _tstrtime_s _strtime_s + +/* Directory functions */ + +#define _tchdir _chdir +#define _tgetcwd _getcwd +#define _tgetdcwd _getdcwd +#define _tgetdcwd_nolock _getdcwd_nolock +#define _tmkdir _mkdir +#define _trmdir _rmdir + +#ifdef _DEBUG +#define _tgetcwd_dbg _getcwd_dbg +#define _tgetdcwd_dbg _getdcwd_dbg +#define _tgetdcwd_lk_dbg _getdcwd_lk_dbg +#endif /* _DEBUG */ + +/* Environment/Path functions */ + +#define _tfullpath _fullpath +#define _tgetenv getenv +#define _tgetenv_s getenv_s +#define _tdupenv_s _dupenv_s +#define _tmakepath _makepath +#define _tmakepath_s _makepath_s +#define _tpgmptr _pgmptr +#define _get_tpgmptr _get_pgmptr +#define _tputenv _putenv +#define _tputenv_s _putenv_s +#define _tsearchenv _searchenv +#define _tsearchenv_s _searchenv_s +#define _tsplitpath _splitpath +#define _tsplitpath_s _splitpath_s + +#ifdef _DEBUG +#define _tfullpath_dbg _fullpath_dbg +#define _tdupenv_s_dbg _dupenv_s_dbg +#endif /* _DEBUG */ + +/* Stdio functions */ + +#define _tfdopen _fdopen +#define _tfsopen _fsopen +#define _tfopen fopen +#define _tfopen_s fopen_s +#define _tfreopen freopen +#define _tfreopen_s freopen_s +#define _tperror perror +#define _tpopen _popen +#define _ttempnam _tempnam +#define _ttmpnam tmpnam +#define _ttmpnam_s tmpnam_s + +#ifdef _DEBUG +#define _ttempnam_dbg _tempnam_dbg +#endif /* _DEBUG */ + + +/* Io functions */ + +#define _tchmod _chmod +#define _tcreat _creat +#define _tfindfirst _findfirst +#define _tfindfirst32 _findfirst32 +#define _tfindfirst64 _findfirst64 +#define _tfindfirsti64 _findfirsti64 +#define _tfindfirst32i64 _findfirst32i64 +#define _tfindfirst64i32 _findfirst64i32 +#define _tfindnext _findnext +#define _tfindnext32 _findnext32 +#define _tfindnext64 _findnext64 +#define _tfindnexti64 _findnexti64 +#define _tfindnext32i64 _findnext32i64 +#define _tfindnext64i32 _findnext64i32 +#define _tmktemp _mktemp +#define _tmktemp_s _mktemp_s + +#define _topen _open +#define _taccess _access +#define _taccess_s _access_s + +#define _tremove remove +#define _trename rename +#define _tsopen _sopen +#define _tsopen_s _sopen_s +#define _tunlink _unlink + +#define _tfinddata_t _finddata_t +#define _tfinddata32_t _finddata32_t +#define _tfinddata64_t __finddata64_t +#define _tfinddatai64_t _finddatai64_t +#define _tfinddata32i64_t _finddata32i64_t +#define _tfinddata64i32_t _finddata64i32_t + +/* ctype functions */ +#define _istascii __isascii +#define _istcntrl iscntrl +#define _istcntrl_l _iscntrl_l +#define _istxdigit isxdigit +#define _istxdigit_l _isxdigit_l + +/* Stat functions */ +#define _tstat _stat +#define _tstat32 _stat32 +#define _tstat32i64 _stat32i64 +#define _tstat64 _stat64 +#define _tstat64i32 _stat64i32 +#define _tstati64 _stati64 + + +/* Setlocale functions */ + +#define _tsetlocale setlocale + + +#ifdef _MBCS + +#ifndef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP +#error Multibyte Character Set (MBCS) not supported for the current WINAPI_FAMILY. +#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */ + +/* ++++++++++++++++++++ MBCS ++++++++++++++++++++ */ + +#ifdef __cplusplus +} /* ... extern "C" */ +#endif /* __cplusplus */ + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + + +#ifndef __TCHAR_DEFINED +typedef char _TCHAR; +typedef signed char _TSCHAR; +typedef unsigned char _TUCHAR; +typedef unsigned char _TXCHAR; +typedef unsigned int _TINT; +#define __TCHAR_DEFINED +#endif /* __TCHAR_DEFINED */ + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES +#ifndef _TCHAR_DEFINED +typedef char TCHAR; +typedef char * PTCHAR; +typedef unsigned char TBYTE; +typedef unsigned char * PTBYTE; +#define _TCHAR_DEFINED +#endif /* _TCHAR_DEFINED */ +#endif /* _CRT_INTERNAL_NONSTDC_NAMES */ + + +#ifdef _MB_MAP_DIRECT + +/* use mb functions directly - types must match */ + +/* String functions */ + +#define _tcschr _mbschr +#define _tcscspn _mbscspn +#define _tcsncat _mbsnbcat +#define _tcsncat_s _mbsnbcat_s +#define _tcsncat_l _mbsnbcat_l +#define _tcsncat_s_l _mbsnbcat_s_l +#define _tcsncpy _mbsnbcpy +#define _tcsncpy_s _mbsnbcpy_s +#define _tcsncpy_l _mbsnbcpy_l +#define _tcsncpy_s_l _mbsnbcpy_s_l +#define _tcspbrk _mbspbrk +#define _tcsrchr _mbsrchr +#define _tcsspn _mbsspn +#define _tcsstr _mbsstr +#define _tcstok _mbstok +#define _tcstok_s _mbstok_s +#define _tcstok_l _mbstok_l +#define _tcstok_s_l _mbstok_s_l + +#define _tcsnset _mbsnbset +#define _tcsnset_l _mbsnbset_l +#define _tcsnset_s _mbsnbset_s +#define _tcsnset_s_l _mbsnbset_s_l +#define _tcsrev _mbsrev +#define _tcsset _mbsset +#define _tcsset_s _mbsset_s +#define _tcsset_l _mbsset_l +#define _tcsset_s_l _mbsset_s_l + +#define _tcscmp _mbscmp +#define _tcsicmp _mbsicmp +#define _tcsicmp_l _mbsicmp_l +#define _tcsnccmp _mbsncmp +#define _tcsncmp _mbsnbcmp +#define _tcsncicmp _mbsnicmp +#define _tcsncicmp_l _mbsnicmp_l +#define _tcsnicmp _mbsnbicmp +#define _tcsnicmp_l _mbsnbicmp_l + +#define _tcscoll _mbscoll +#define _tcscoll_l _mbscoll_l +#define _tcsicoll _mbsicoll +#define _tcsicoll_l _mbsicoll_l +#define _tcsnccoll _mbsncoll +#define _tcsnccoll_l _mbsncoll_l +#define _tcsncoll _mbsnbcoll +#define _tcsncoll_l _mbsnbcoll_l +#define _tcsncicoll _mbsnicoll +#define _tcsncicoll_l _mbsnicoll_l +#define _tcsnicoll _mbsnbicoll +#define _tcsnicoll_l _mbsnbicoll_l + +/* "logical-character" mappings */ + +#define _tcsclen _mbslen +#define _tcscnlen _mbsnlen +#define _tcsclen_l _mbslen_l +#define _tcscnlen_l _mbsnlen_l +#define _tcsnccat _mbsncat +#define _tcsnccat_s _mbsncat_s +#define _tcsnccat_l _mbsncat_l +#define _tcsnccat_s_l _mbsncat_s_l +#define _tcsnccpy _mbsncpy +#define _tcsnccpy_s _mbsncpy_s +#define _tcsnccpy_l _mbsncpy_l +#define _tcsnccpy_s_l _mbsncpy_s_l +#define _tcsncset _mbsnset +#define _tcsncset_s _mbsnset_s +#define _tcsncset_l _mbsnset_l +#define _tcsncset_s_l _mbsnset_s_l + +/* MBCS-specific mappings */ + +#define _tcsdec _mbsdec +#define _tcsinc _mbsinc +#define _tcsnbcnt _mbsnbcnt +#define _tcsnccnt _mbsnccnt +#define _tcsnextc _mbsnextc +#define _tcsninc _mbsninc +#define _tcsspnp _mbsspnp + +#define _tcslwr _mbslwr +#define _tcslwr_l _mbslwr_l +#define _tcslwr_s _mbslwr_s +#define _tcslwr_s_l _mbslwr_s_l +#define _tcsupr _mbsupr +#define _tcsupr_l _mbsupr_l +#define _tcsupr_s _mbsupr_s +#define _tcsupr_s_l _mbsupr_s_l + +#define _tclen _mbclen +#define _tccpy _mbccpy +#define _tccpy_l _mbccpy_l +#define _tccpy_s _mbccpy_s +#define _tccpy_s_l _mbccpy_s_l + +#else /* _MB_MAP_DIRECT */ + +#if __STDC__ || defined _NO_INLINING + +/* use type-safe linked-in function thunks */ + +/* String functions */ + +_Check_return_ _ACRTIMP _CONST_RETURN char * __cdecl _tcschr(_In_z_ const char * _Str, _In_ unsigned int _Val); +_Check_return_ _ACRTIMP size_t __cdecl _tcscspn(_In_z_ const char * _Str, _In_z_ const char * _Control); +_CRT_INSECURE_DEPRECATE(_tcsncat_s) _ACRTIMP char * __cdecl _tcsncat(_Inout_updates_z_(_MaxCount) char *_Dst, _In_z_ const char *_Src, _In_ size_t _MaxCount); +_ACRTIMP char * __cdecl _tcsncat_s(_Inout_updates_z_(_DstSizeInChars) char *_Dst, _In_ size_t _DstSizeInChars, _In_z_ const char *_Src, size_t _MaxCount); +_CRT_INSECURE_DEPRECATE(_tcsncat_s_l) _ACRTIMP char * __cdecl _tcsncat_l(_Inout_updates_z_(_MaxCount) char *_Dst, _In_z_ const char *_Src, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_ACRTIMP char * __cdecl _tcsncat_s_l(_Inout_updates_z_(_DstSizeInChars) char *_Dst, _In_ size_t _DstSizeInChars, _In_z_ const char *_Src, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_CRT_INSECURE_DEPRECATE(_tcsncpy_s) _ACRTIMP char * __cdecl _tcsncpy(_Out_writes_(_MaxCount) _Post_maybez_ char *_Dst, _In_z_ const char *_Src, size_t _MaxCount); +_ACRTIMP char * __cdecl _tcsncpy_s(_Out_writes_(_DstSizeInChars) char *_Dst, _In_ size_t _DstSizeInChars, _In_z_ const char *_Src, size_t _MaxCount); +_CRT_INSECURE_DEPRECATE(_tcsncpy_s_l) _ACRTIMP char * __cdecl _tcsncpy_l(_Out_writes_(_MaxCount) _Post_maybez_ char *_Dst, _In_z_ const char *_Src, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_ACRTIMP char * __cdecl _tcsncpy_s_l(_Out_writes_(_DstSizeInChars) char *_Dst, _In_ size_t _DstSizeInChars, _In_z_ const char *_Src, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP _CONST_RETURN char * __cdecl _tcspbrk(_In_z_ const char * _Str, _In_z_ const char * _Control); +_Check_return_ _ACRTIMP _CONST_RETURN char * __cdecl _tcsrchr(_In_z_ const char * _Str, _In_ unsigned int _Ch); +_Check_return_ _ACRTIMP size_t __cdecl _tcsspn(_In_z_ const char * _Str, _In_z_ const char * _Control); +_Check_return_ _ACRTIMP _CONST_RETURN char * __cdecl _tcsstr(_In_z_ const char * _Str, _In_z_ const char * _Substr); +_Check_return_ _CRT_INSECURE_DEPRECATE(_tcstok_s) _ACRTIMP char * __cdecl _tcstok(_Inout_opt_ char *_Str, _In_z_ const char *_Delim); +_Check_return_ _ACRTIMP char * __cdecl _tcstok_s(_Inout_opt_ char *_Str, _In_z_ const char *_Delim, _Inout_ _Deref_prepost_opt_z_ char **_Context); +_Check_return_ _CRT_INSECURE_DEPRECATE(_tcstok_s_l) _ACRTIMP char * __cdecl _tcstok_l(_Inout_opt_ char *_Str, _In_z_ const char *_Delim, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP char * __cdecl _tcstok_s_l(_Inout_opt_ char *_Str, _In_z_ const char *_Delim, _Inout_ _Deref_prepost_opt_z_ char **_Context, _In_opt_ _locale_t _Locale); + +_CRT_INSECURE_DEPRECATE(_tcsnset_s) _ACRTIMP char * __cdecl _tcsnset(_Inout_z_ char * _Str, _In_ unsigned int _Val, _In_ size_t _MaxCount); +_Check_return_wat_ _ACRTIMP errno_t __cdecl _tcsnset_s(_Inout_updates_z_(_SizeInChars) char * _Str, _In_ size_t _SizeInChars, _In_ unsigned int _Val , _In_ size_t _MaxCount); +_CRT_INSECURE_DEPRECATE(_tcsnset_s_l) _ACRTIMP char * __cdecl _tcsnset_l(_Inout_z_ char * _Str, _In_ unsigned int _Val, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_Check_return_wat_ _ACRTIMP errno_t __cdecl _tcsnset_s_l(_Inout_updates_z_(_SizeInChars) char * _Str, _In_ size_t _SizeInChars, _In_ unsigned int _Val , _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_ACRTIMP char * __cdecl _tcsrev(_Inout_z_ char * _Str); +_CRT_INSECURE_DEPRECATE(_tcsset_s) _ACRTIMP char * __cdecl _tcsset(_Inout_z_ char * _Str, _In_ unsigned int _Val); +_CRT_INSECURE_DEPRECATE(_tcsset_s_l) _ACRTIMP char * __cdecl _tcsset_l(_Inout_z_ char * _Str, _In_ unsigned int _Val, _In_opt_ _locale_t _Locale); +_Check_return_wat_ _ACRTIMP errno_t __cdecl _tcsset_s(_Inout_updates_z_(_SizeInChars) char * _Str, _In_ size_t _SizeInChars, _In_ unsigned int _Val); +_Check_return_wat_ _ACRTIMP errno_t __cdecl _tcsset_s_l(_Inout_updates_z_(_SizeInChars) char * _Str, _In_ size_t _SizeInChars, _In_ unsigned int, _In_opt_ _locale_t _Locale); + +_Check_return_ _ACRTIMP int __cdecl _tcscmp(_In_z_ const char *_Str1, _In_z_ const char * _Str); +_Check_return_ _ACRTIMP int __cdecl _tcsicmp(_In_z_ const char *_Str1, _In_z_ const char *_Str2); +_Check_return_ _ACRTIMP int __cdecl _tcsicmp_l(_In_z_ const char *_Str1, _In_z_ const char *_Str2, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _tcsnccmp(_In_z_ const char * _Str1, _In_z_ const char * _Str2, _In_ size_t _MaxCount); +_Check_return_ _ACRTIMP int __cdecl _tcsncmp(_In_z_ const char * _Str1, _In_z_ const char * _Str2, _In_ size_t _MaxCount); +_Check_return_ _ACRTIMP int __cdecl _tcsncicmp(_In_z_ const char * _Str1, _In_z_ const char * _Str2, _In_ size_t _MaxCount); +_Check_return_ _ACRTIMP int __cdecl _tcsncicmp_l(_In_z_ const char *_Str1, _In_z_ const char *_Str2, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _tcsnicmp(_In_z_ const char * _Str1, _In_z_ const char * _Str2, _In_ size_t _MaxCount); +_Check_return_ _ACRTIMP int __cdecl _tcsnicmp_l(_In_z_ const char *_Str1, _In_z_ const char *_Str2, size_t _MaxCount, _In_opt_ _locale_t _Locale); + +_Check_return_ _ACRTIMP int __cdecl _tcscoll(_In_z_ const char * _Str1, _In_z_ const char * _Str2); +_Check_return_ _ACRTIMP int __cdecl _tcscoll_l(_In_z_ const char *_Str1, _In_z_ const char *_Str2, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _tcsicoll(_In_z_ const char * _Str1, _In_z_ const char * _Str2); +_Check_return_ _ACRTIMP int __cdecl _tcsicoll_l(_In_z_ const char *_Str1, _In_z_ const char *_Str2, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _tcsnccoll(_In_z_ const char * _Str1, _In_z_ const char * _Str2, _In_ size_t _MaxCount); +_Check_return_ _ACRTIMP int __cdecl _tcsnccoll_l(_In_z_ const char *_Str1, _In_z_ const char *_Str2, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _tcsncoll(_In_z_ const char *_Str1, _In_z_ const char * _Str2, _In_ size_t _MaxCount); +_Check_return_ _ACRTIMP int __cdecl _tcsncoll_l(_In_z_ const char *_Str1, _In_z_ const char *_Str2, size_t _MaxCount, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _tcsncicoll(_In_z_ const char * _Str1, _In_z_ const char * _Str2, _In_ size_t _MaxCount); +_Check_return_ _ACRTIMP int __cdecl _tcsncicoll_l(_In_z_ const char *_Str1, _In_z_ const char *_Str2, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_Check_return_ _ACRTIMP int __cdecl _tcsnicoll(_In_z_ const char * _Str1, _In_z_ const char * _Str2, _In_ size_t _MaxCount); +_Check_return_ _ACRTIMP int __cdecl _tcsnicoll_l(_In_z_ const char *_Str1, _In_z_ const char *_Str2, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); + +/* "logical-character" mappings */ + +_Post_satisfies_(return <= _String_length_(_Str)) +_Check_return_ _ACRTIMP size_t __cdecl _tcsclen(_In_z_ const char *_Str); + +_Post_satisfies_(return <= _String_length_(_Str) && return <= _MaxCount) +_Check_return_ _ACRTIMP size_t __cdecl _tcscnlen(_In_z_ const char *_Str, _In_ size_t _MaxCount); + +_Post_satisfies_(return <= _String_length_(_Str)) +_Check_return_ _ACRTIMP size_t __cdecl _tcsclen_l(_In_z_ const char *_Str, _In_opt_ _locale_t _Locale); + +_Post_satisfies_(return <= _String_length_(_Str) && return <= _MaxCount) +_Check_return_ _ACRTIMP size_t __cdecl _tcscnlen_l(_In_z_ const char *_Str, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); + +_CRT_INSECURE_DEPRECATE(_tcsnccat_s) _ACRTIMP char * __cdecl _tcsnccat(_Inout_ char *_Dst, _In_z_ const char *_Src, _In_ size_t _MaxCount); +_ACRTIMP char * __cdecl _tcsnccat_s(_Inout_updates_z_(_DstSizeInChars) char *_Dst, _In_ size_t _DstSizeInChars, _In_z_ const char *_Src, _In_ size_t _MaxCount); +_CRT_INSECURE_DEPRECATE(_tcsnccat_s_l) _ACRTIMP char * __cdecl _tcsnccat_l(_Inout_ char *_Dst, _In_z_ const char *_Src, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_ACRTIMP char * __cdecl _tcsnccat_s_l(_Inout_updates_z_(_DstSizeInChars) char *_Dst, _In_ size_t _DstSizeInChars, _In_z_ const char *_Src, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_CRT_INSECURE_DEPRECATE(_tcsnccpy_s) _ACRTIMP char * __cdecl _tcsnccpy(_Out_writes_(_MaxCount) _Post_maybez_ char *_Dst, _In_z_ const char *_Src, _In_ size_t _MaxCount); +_ACRTIMP char * __cdecl _tcsnccpy_s(_Out_writes_(_DstSizeInChars) char *_Dst, _In_ size_t _DstSizeInChars, _In_z_ const char *_Src, _In_ size_t _MaxCount); +_CRT_INSECURE_DEPRECATE(_tcsnccpy_s_l) _ACRTIMP char * __cdecl _tcsnccpy_l(_Out_writes_(_MaxCount) _Post_maybez_ char *_Dst, _In_z_ const char *_Src, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_ACRTIMP char * __cdecl _tcsnccpy_s_l(_Out_writes_(_DstSizeInChars) char *_Dst, _In_ size_t _DstSizeInChars, _In_z_ const char *_Src, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_CRT_INSECURE_DEPRECATE(_tcsncset_s) _ACRTIMP char * __cdecl _tcsncset(_Inout_updates_z_(_MaxCount) char * _Str, _In_ unsigned int _Val, _In_ size_t _MaxCount); +_ACRTIMP char * __cdecl _tcsncset_s(_Inout_updates_z_(_SizeInChars) char * _Str, _In_ size_t _SizeInChars, _In_ unsigned int _Val, _In_ size_t _MaxCount); +_CRT_INSECURE_DEPRECATE(_tcsncset_s_l) _ACRTIMP char * __cdecl _tcsncset_l(_Inout_updates_z_(_MaxCount) char * _Str, _In_ unsigned int _Val, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); +_ACRTIMP char * __cdecl _tcsncset_s_l(_Inout_updates_z_(_SizeInChars) char * _Str, _In_ size_t _SizeInChars, _In_ unsigned int _Val, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale); + +/* MBCS-specific mappings */ + +_ACRTIMP char * __cdecl _tcsdec(_In_reads_z_(_Pos-_Start+1) const char * _Start, _In_z_ const char * _Pos); +_ACRTIMP char * __cdecl _tcsinc(_In_z_ const char * _Ptr); +_ACRTIMP size_t __cdecl _tcsnbcnt(_In_reads_or_z_(_MaxCount) const char * _Str, _In_ size_t _MaxCount); +_ACRTIMP size_t __cdecl _tcsnccnt(_In_reads_or_z_(_MaxCount) const char * _Str, _In_ size_t _MaxCount); +_ACRTIMP unsigned int __cdecl _tcsnextc (_In_z_ const char * _Str); +_ACRTIMP char * __cdecl _tcsninc(_In_reads_or_z_(_Count) const char * _Ptr, _In_ size_t _Count); +_ACRTIMP char * __cdecl _tcsspnp(_In_z_ const char * _Str1, _In_z_ const char * _Str2); + +_CRT_INSECURE_DEPRECATE(_tcslwr_s) _ACRTIMP char * __cdecl _tcslwr(_Inout_ char *_Str); +_CRT_INSECURE_DEPRECATE(_tcslwr_s_l) _ACRTIMP char * __cdecl _tcslwr_l(_Inout_ char *_Str, _In_opt_ _locale_t _Locale); +_ACRTIMP char * __cdecl _tcslwr_s(_Inout_updates_z_(_SizeInChars) char *_Str, _In_ size_t _SizeInChars); +_ACRTIMP char * __cdecl _tcslwr_s_l(_Inout_updates_z_(_SizeInChars) char *_Str, _In_ size_t _SizeInChars, _In_opt_ _locale_t _Locale); +_CRT_INSECURE_DEPRECATE(_tcsupr_s) _ACRTIMP char * __cdecl _tcsupr(_Inout_ char *_Str); +_CRT_INSECURE_DEPRECATE(_tcsupr_s_l) _ACRTIMP char * __cdecl _tcsupr_l(_Inout_ char *_Str, _In_opt_ _locale_t _Locale); +_ACRTIMP char * __cdecl _tcsupr_s(_Inout_updates_z_(_SizeInChars) char *_Str, _In_ size_t _SizeInChars); +_ACRTIMP char * __cdecl _tcsupr_s_l(_Inout_updates_z_(_SizeInChars) char *_Str, _In_ size_t _SizeInChars, _In_opt_ _locale_t _Locale); + +_Check_return_ _ACRTIMP size_t __cdecl _tclen(_In_z_ const char * _Str); +_CRT_INSECURE_DEPRECATE(_tccpy_s) _ACRTIMP void __cdecl _tccpy(_Pre_notnull_ _Post_z_ char * _DstCh, _In_z_ const char * _SrcCh); +_CRT_INSECURE_DEPRECATE(_tccpy_s_l) _ACRTIMP void __cdecl _tccpy_l(_Pre_notnull_ _Post_z_ char * _DstCh, _In_z_ const char * _SrcCh, _In_opt_ _locale_t _Locale); +_Check_return_wat_ _ACRTIMP errno_t __cdecl _tccpy_s(_Out_writes_z_(_SizeInBytes) char * _DstCh, size_t _SizeInBytes, _Out_opt_ int *_PCopied, _In_z_ const char * _SrcCh); +_Check_return_wat_ _ACRTIMP errno_t __cdecl _tccpy_s_l(_Out_writes_z_(_SizeInBytes) char * _DstCh, size_t _SizeInBytes, _Out_opt_ int *_PCopied, _In_z_ const char * _SrcCh, _In_opt_ _locale_t _Locale); + +#else /* __STDC__ || defined (_NO_INLINING) */ + +/* the default: use type-safe inline function thunks */ + +#define _PUC unsigned char * +#define _CPUC const unsigned char * +#define _PC char * +#define _CRPC _CONST_RETURN char * +#define _CPC const char * +#define _UI unsigned int + + +/* String functions */ + +__inline _CRPC _tcschr(_In_z_ _CPC _s1,_In_ _UI _c) {return (_CRPC)_mbschr((_CPUC)_s1,_c);} +__inline size_t _tcscspn(_In_z_ _CPC _s1,_In_z_ _CPC _s2) {return _mbscspn((_CPUC)_s1,(_CPUC)_s2);} + +_Check_return_wat_ __inline errno_t _tcsncat_s(_Inout_updates_z_(_Destination_size_chars) char *_Destination, _In_ size_t _Destination_size_chars, _In_z_ const char *_Source, _In_ size_t _Count) +{ + return _mbsnbcat_s((unsigned char *)_Destination, _Destination_size_chars, (const unsigned char *)_Source,_Count); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, _tcsncat_s, _Prepost_z_ char, _Dest, _In_z_ const char *, _Source, _In_ size_t, _Count) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsncat, _tcsncat_s, _Inout_updates_z_(_Size) char, _Inout_z_ char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count) +{ + return (char *)_mbsnbcat((unsigned char *)_Dst,(const unsigned char *)_Source,_Count); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsncat, _tcsncat_s, _Inout_updates_z_(_Size) char, _Inout_z_, char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count) + +_Check_return_wat_ __inline errno_t _tcsncat_s_l(_Inout_updates_z_(_Destination_size_chars) char *_Destination, _In_ size_t _Destination_size_chars, _In_z_ const char *_Source, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsnbcat_s_l((unsigned char *)_Destination, _Destination_size_chars, (const unsigned char *)_Source,_Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _tcsncat_s_l, _Prepost_z_ char, _Dest, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsncat_l, _tcsncat_s_l, _Inout_updates_z_(_Size) char, _Inout_z_ char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) +{ + return (char *)_mbsnbcat_l((unsigned char *)_Dst,(const unsigned char *)_Source,_Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsncat_l, _tcsncat_s_l, _Inout_updates_z_(_Size) char, _Inout_z_, char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +_Check_return_wat_ __inline errno_t _tcsncpy_s(_Out_writes_z_(_Destination_size_chars) char * _Destination, _In_ size_t _Destination_size_chars, _In_z_ const char * _Source,_In_ size_t _Count) +{ + return _mbsnbcpy_s((unsigned char *)_Destination, _Destination_size_chars, (const unsigned char *)_Source,_Count); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, _tcsncpy_s, _Post_z_ char, _Dest, _In_z_ const char *, _Source, _In_ size_t, _Count) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(_Success_(return != 0) char *, __RETURN_POLICY_DST, _tcsncpy, _tcsncpy_s, _Out_writes_bytes_(_Count) _Post_maybez_ char, _Out_writes_bytes_(_Count) _Post_maybez_ char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count) +{ + return (char *)_mbsnbcpy((unsigned char *)_Dst,(const unsigned char *)_Source,_Count); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsncpy, _tcsncpy_s, _Out_writes_z_(_Size) char, _Inout_z_, char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count) + +_Check_return_wat_ __inline errno_t _tcsncpy_s_l(_Out_writes_z_(_Destination_size_chars) char * _Destination, _In_ size_t _Destination_size_chars, _In_z_ const char * _Source,_In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsnbcpy_s_l((unsigned char *)_Destination, _Destination_size_chars, (const unsigned char *)_Source,_Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _tcsncpy_s_l, _Post_z_ char, _Dest, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsncpy_l, _tcsncpy_s_l, _Out_writes_z_(_Size) char, _Out_writes_bytes_(_Count) _Post_maybez_ char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) +{ + return (char *)_mbsnbcpy_l((unsigned char *)_Dst,(const unsigned char *)_Source,_Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsncpy_l, _tcsncpy_s_l, _Out_writes_z_(_Size) char, _Out_writes_z_(_Count), char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +_Check_return_ __inline _CRPC _tcspbrk(_In_z_ _CPC _s1,_In_z_ _CPC _s2) {return (_CRPC)_mbspbrk((_CPUC)_s1,(_CPUC)_s2);} +_Check_return_ __inline _CRPC _tcsrchr(_In_z_ _CPC _s1,_In_ _UI _c) {return (_CRPC)_mbsrchr((_CPUC)_s1,_c);} +_Check_return_ __inline size_t _tcsspn(_In_z_ _CPC _s1,_In_z_ _CPC _s2) {return _mbsspn((_CPUC)_s1,(_CPUC)_s2);} +_Check_return_ __inline _CRPC _tcsstr(_In_z_ _CPC _s1,_In_z_ _CPC _s2) {return (_CRPC)_mbsstr((_CPUC)_s1,(_CPUC)_s2);} + +_Check_return_ _CRT_INSECURE_DEPRECATE(_tcstok_s) __inline char * _tcstok(_Inout_opt_z_ char * _String,_In_z_ const char * _Delimiters) +{ + return (char * )_mbstok((unsigned char *)_String,(const unsigned char *)_Delimiters); +} + +_Check_return_ __inline char * _tcstok_s(_Inout_opt_z_ char * _String,_In_z_ const char * _Delimiters, _Inout_ _Deref_prepost_opt_z_ char **_Current_position) +{ + return (char * )_mbstok_s((unsigned char *)_String,(const unsigned char *)_Delimiters, (unsigned char **)_Current_position); +} + +_Check_return_ _CRT_INSECURE_DEPRECATE(_tcstok_s_l) __inline char * _tcstok_l(_Inout_opt_z_ char * _String,_In_z_ const char * _Delimiters, _In_opt_ _locale_t _Locale) +{ + return (char * )_mbstok_l((unsigned char *)_String,(const unsigned char *)_Delimiters, _Locale); +} + +_Check_return_ __inline char * _tcstok_s_l(_Inout_opt_z_ char * _String,_In_z_ const char * _Delimiters, _Inout_ _Deref_prepost_opt_z_ char **_Current_position, _In_opt_ _locale_t _Locale) +{ + return (char * )_mbstok_s_l((unsigned char *)_String,(const unsigned char *)_Delimiters, (unsigned char **)_Current_position, _Locale); +} + +_Check_return_wat_ __inline errno_t _tcsnset_s(_Inout_updates_z_(_SizeInBytes) char * _Dst, _In_ size_t _SizeInBytes, _In_ unsigned int _Value , _In_ size_t _Count) +{ + return _mbsnbset_s((unsigned char *)_Dst, _SizeInBytes, _Value, _Count); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, _tcsnset_s, _Prepost_z_ char, _Dest, _In_ unsigned int, _Value , _In_ size_t, _Count) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsnset, _tcsnset_s, _Inout_updates_z_(_Size) char, _Inout_updates_z_(_Count) char, _Dst, _In_ unsigned int, _Value , _In_ size_t, _Count) +{ + return (char *)_mbsnbset((unsigned char *)_Dst, _Value, _Count); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsnset, _tcsnset_s, _Inout_updates_z_(_Size) char, _Inout_updates_z_(_Count), char, _Dst, _In_ unsigned int, _Value , _In_ size_t, _Count) + +_Check_return_wat_ __inline errno_t _tcsnset_s_l(_Inout_updates_z_(_SizeInBytes) char * _Dst, _In_ size_t _SizeInBytes, _In_ unsigned int _Value , _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsnbset_s_l((unsigned char *)_Dst, _SizeInBytes, _Value, _Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _tcsnset_s_l, _Prepost_z_ char, _Dest, _In_ unsigned int, _Value , _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsnset_l, _tcsnset_s_l, _Inout_updates_z_(_Size) char, _Inout_updates_z_(_Count) char, _Dst, _In_ unsigned int, _Value , _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) +{ + return (char *)_mbsnbset_l((unsigned char *)_Dst, _Value, _Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsnset_l, _tcsnset_s_l, _Inout_updates_z_(_Size) char, _Inout_updates_z_(_Count), char, _Dst, _In_ unsigned int, _Value , _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__inline _PC _tcsrev(_Inout_z_ _PC _s1) {return (_PC)_mbsrev((_PUC)_s1);} + +_Check_return_wat_ __inline errno_t _tcsset_s(_Inout_updates_z_(_SizeInBytes) char * _Dst, _In_ size_t _SizeInBytes, _In_ unsigned int _Value) +{ + return _mbsset_s((unsigned char *)_Dst, _SizeInBytes, _Value); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _tcsset_s, _Prepost_z_ char, _Dest, _In_ unsigned int, _Value) + +__DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(char *, __RETURN_POLICY_DST, _tcsset, _tcsset_s, _Inout_updates_z_(_Size) char, _Inout_z_ char, _Dst, _In_ unsigned int, _Value) +{ + return (char *)_mbsset((unsigned char *)_Dst, _Value); +} + +__DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(char *, __RETURN_POLICY_DST, _tcsset, _tcsset_s, _Inout_updates_z_(_Size) char, _Inout_z_ char, _Dst, _In_ unsigned int, _Value) + +_Check_return_wat_ __inline errno_t _tcsset_s_l(_Inout_updates_z_(_SizeInBytes) char * _Dst, _In_ size_t _SizeInBytes, _In_ unsigned int _Value, _In_opt_ _locale_t _Locale) +{ + return _mbsset_s_l((unsigned char *)_Dst, _SizeInBytes, _Value, _Locale); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, _tcsset_s_l, _Prepost_z_ char, _Dest, _In_ unsigned int, _Value, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsset_l, _tcsset_s_l, _Inout_updates_z_(_Size) char, _Inout_z_ char, _Dst, _In_ unsigned int, _Value, _In_opt_ _locale_t, _Locale) +{ + return (char *)_mbsset_l((unsigned char *)_Dst, _Value, _Locale); +} + +__DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsset_l, _tcsset_s_l, _Inout_updates_z_(_Size) char, _Inout_z_, char, _Dst, _In_ unsigned int, _Value, _In_opt_ _locale_t, _Locale) + +_Check_return_ __inline int _tcscmp(_In_z_ _CPC _s1,_In_z_ _CPC _s2) {return _mbscmp((_CPUC)_s1,(_CPUC)_s2);} + +_Check_return_ __inline int _tcsicmp(_In_z_ const char * _String1, _In_z_ const char * _String2) +{ + return _mbsicmp((const unsigned char *)_String1,(const unsigned char *)_String2); +} + +_Check_return_ __inline int _tcsicmp_l(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_opt_ _locale_t _Locale) +{ + return _mbsicmp_l((const unsigned char *)_String1,(const unsigned char *)_String2, _Locale); +} + +_Check_return_ __inline int _tcsnccmp(_In_reads_or_z_(_n) _CPC _s1,_In_z_ _CPC _s2,_In_ size_t _n) {return _mbsncmp((_CPUC)_s1,(_CPUC)_s2,_n);} +__inline int _tcsncmp(_In_z_ _CPC _s1,_In_z_ _CPC _s2,_In_ size_t _n) {return _mbsnbcmp((_CPUC)_s1,(_CPUC)_s2,_n);} + +_Check_return_ __inline int _tcsncicmp(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Char_count) +{ + return _mbsnicmp((const unsigned char *)_String1,(const unsigned char *)_String2,_Char_count); +} + +_Check_return_ __inline int _tcsncicmp_l(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Char_count, _In_opt_ _locale_t _Locale) +{ + return _mbsnicmp_l((const unsigned char *)_String1,(const unsigned char *)_String2,_Char_count, _Locale); +} + +_Check_return_ __inline int _tcsnicmp(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Char_count) +{ + return _mbsnbicmp((const unsigned char *)_String1,(const unsigned char *)_String2,_Char_count); +} + +_Check_return_ __inline int _tcsnicmp_l(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Char_count, _In_opt_ _locale_t _Locale) +{ + return _mbsnbicmp_l((const unsigned char *)_String1,(const unsigned char *)_String2,_Char_count, _Locale); +} + +_Check_return_ __inline int _tcscoll(_In_z_ const char * _String1, _In_z_ const char * _String2) +{ + return _mbscoll((const unsigned char *)_String1,(const unsigned char *)_String2); +} + +_Check_return_ __inline int _tcscoll_l(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_opt_ _locale_t _Locale) +{ + return _mbscoll_l((const unsigned char *)_String1,(const unsigned char *)_String2, _Locale); +} + +_Check_return_ __inline int _tcsicoll(_In_z_ const char * _String1, _In_z_ const char * _String2) +{ + return _mbsicoll((const unsigned char *)_String1,(const unsigned char *)_String2); +} + +_Check_return_ __inline int _tcsicoll_l(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_opt_ _locale_t _Locale) +{ + return _mbsicoll_l((const unsigned char *)_String1,(const unsigned char *)_String2, _Locale); +} + +_Check_return_ __inline int _tcsnccoll(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Count) +{ + return _mbsncoll((const unsigned char *)_String1,(const unsigned char *)_String2, _Count); +} + +_Check_return_ __inline int _tcsnccoll_l(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsncoll_l((const unsigned char *)_String1,(const unsigned char *)_String2, _Count, _Locale); +} + +_Check_return_ __inline int _tcsncoll(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Count) +{ + return _mbsnbcoll((const unsigned char *)_String1,(const unsigned char *)_String2, _Count); +} + +_Check_return_ __inline int _tcsncoll_l(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsnbcoll_l((const unsigned char *)_String1,(const unsigned char *)_String2, _Count, _Locale); +} + +_Check_return_ __inline int _tcsncicoll(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Count) +{ + return _mbsnicoll((const unsigned char *)_String1,(const unsigned char *)_String2, _Count); +} + +_Check_return_ __inline int _tcsncicoll_l(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsnicoll_l((const unsigned char *)_String1,(const unsigned char *)_String2, _Count, _Locale); +} + +_Check_return_ __inline int _tcsnicoll(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Count) +{ + return _mbsnbicoll((const unsigned char *)_String1,(const unsigned char *)_String2, _Count); +} + +_Check_return_ __inline int _tcsnicoll_l(_In_z_ const char * _String1, _In_z_ const char * _String2, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsnbicoll_l((const unsigned char *)_String1,(const unsigned char *)_String2, _Count, _Locale); +} + +/* "logical-character" mappings */ +_Check_return_ __inline size_t _tcsclen(_In_z_ const char * _String) +{ + return _mbslen((const unsigned char *)_String); +} + +_Check_return_ __inline size_t _tcscnlen(_In_z_ const char * _String, _In_ size_t _Maximum) +{ + return _mbsnlen((const unsigned char *)_String, _Maximum); +} + +_Check_return_ __inline size_t _tcsclen_l(_In_z_ const char * _String, _In_opt_ _locale_t _Locale) +{ + return _mbslen_l((const unsigned char *)_String, _Locale); +} + +_Check_return_ __inline size_t _tcscnlen_l(_In_z_ const char * _String, _In_ size_t _Maximum, _In_opt_ _locale_t _Locale) +{ + return _mbsnlen_l((const unsigned char *)_String, _Maximum, _Locale); +} + +_Check_return_wat_ __inline errno_t _tcsnccat_s(_Inout_updates_z_(_Destination_size_chars) char * _Destination, _In_ size_t _Destination_size_chars, _In_z_ const char * _Source, _In_ size_t _Count) +{ + return _mbsncat_s((unsigned char *)_Destination, _Destination_size_chars, (const unsigned char *)_Source, _Count); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, _tcsnccat_s, _Prepost_z_ char, _Dest, _In_z_ const char *, _Source, _In_ size_t, _Count) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsnccat, _tcsnccat_s, _Inout_updates_z_(_Size) char, _Inout_z_ char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count) +{ + return (char *)_mbsncat((unsigned char *)_Dst,(const unsigned char *)_Source, _Count); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsnccat, _tcsnccat_s, _Inout_updates_z_(_Size) char, _Inout_z_, char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count) + +_Check_return_wat_ __inline errno_t _tcsnccat_s_l(_Inout_updates_z_(_Destination_size_chars) char * _Destination, _In_ size_t _Destination_size_chars, _In_z_ const char * _Source, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsncat_s_l((unsigned char *)_Destination, _Destination_size_chars, (const unsigned char *)_Source, _Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _tcsnccat_s_l, _Prepost_z_ char, _Dest, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsnccat_l, _tcsnccat_s_l, _Inout_updates_z_(_Size) char, _Inout_z_ char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) +{ + return (char *)_mbsncat_l((unsigned char *)_Dst,(const unsigned char *)_Source, _Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsnccat_l, _tcsnccat_s_l, _Inout_updates_z_(_Size) char, _Inout_z_, char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +_Check_return_wat_ __inline errno_t _tcsnccpy_s(_Out_writes_z_(_Destination_size_chars) char * _Destination, _In_ size_t _Destination_size_chars, _In_z_ const char * _Source, _In_ size_t _Count) +{ + return _mbsncpy_s((unsigned char *)_Destination, _Destination_size_chars, (const unsigned char *)_Source, _Count); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, _tcsnccpy_s, _Post_z_ char, _Dest, _In_z_ const char *, _Source, _In_ size_t, _Count) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsnccpy, _tcsnccpy_s, _Out_writes_bytes_(_Size) _Post_maybez_ char, _Pre_notnull_ _Post_maybez_ char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count) +{ + return (char *)_mbsncpy((unsigned char *)_Dst,(const unsigned char *)_Source, _Count); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsnccpy, _tcsnccpy_s, _Out_writes_z_(_Size) char, _Pre_notnull_ _Post_z_, char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count) + +_Check_return_wat_ __inline errno_t _tcsnccpy_s_l(_Out_writes_z_(_Destination_size_chars) char * _Destination, _In_ size_t _Destination_size_chars, _In_z_ const char * _Source, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsncpy_s_l((unsigned char *)_Destination, _Destination_size_chars, (const unsigned char *)_Source, _Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _tcsnccpy_s_l, _Post_z_ char, _Dest, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsnccpy_l, _tcsnccpy_s_l, _Out_writes_z_(_Size) char, _Out_writes_bytes_(_Count) _Post_maybez_ char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) +{ + return (char *)_mbsncpy_l((unsigned char *)_Dst,(const unsigned char *)_Source, _Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsnccpy_l, _tcsnccpy_s_l, _Out_writes_z_(_Size) char, _Out_writes_bytes_(_Count) _Post_maybez_, char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +_Check_return_wat_ __inline errno_t _tcsncset_s(_Inout_updates_bytes_(_SizeInBytes) char *_Destination, _In_ size_t _SizeInBytes, _In_ unsigned int _Value, _In_ size_t _Count) +{ + return _mbsnset_s((unsigned char *)_Destination, _SizeInBytes, _Value, _Count); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, _tcsncset_s, char, _Dest, _In_ unsigned int, _Value, _In_ size_t, _Count) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsncset, _tcsncset_s, _Inout_updates_z_(_Size) char, _Inout_updates_bytes_(_Count) char, _Dst, _In_ unsigned int, _Value, _In_ size_t, _Count) +{ + return (char *)_mbsnset((unsigned char *)_Dst, _Value, _Count); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_2_EX(char *, __RETURN_POLICY_DST, _tcsncset, _tcsncset_s, _Inout_updates_z_(_Size) char, _Inout_updates_bytes_(_Count), char, _Dst, _In_ unsigned int, _Value, _In_ size_t, _Count) + +_Check_return_wat_ __inline errno_t _tcsncset_s_l(_Inout_updates_bytes_(_SizeInBytes) char *_Destination, _In_ size_t _SizeInBytes, _In_ unsigned int _Value, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsnset_s_l((unsigned char *)_Destination, _SizeInBytes, _Value, _Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _tcsncset_s_l, char, _Dest, _In_ unsigned int, _Value, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsncset_l, _tcsncset_s_l, _Inout_updates_z_(_Size) char, _Inout_updates_bytes_(_Count) char, _Dst, _In_ unsigned int, _Value, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) +{ + return (char *)_mbsnset_l((unsigned char *)_Dst, _Value, _Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _tcsncset_l, _tcsncset_s_l, _Inout_updates_z_(_Size) char, _Inout_updates_bytes_(_Count), char, _Dst, _In_ unsigned int, _Value, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +/* MBCS-specific mappings */ + +_Check_return_ __inline _PC _tcsdec(_In_reads_z_(_s2 - _s1 + 1) _CPC _s1,_In_z_ _CPC _s2) {return (_PC)_mbsdec((_CPUC)_s1,(_CPUC)_s2);} +_Check_return_ __inline _PC _tcsinc(_In_z_ _CPC _s1) {return (_PC)_mbsinc((_CPUC)_s1);} +_Check_return_ __inline size_t _tcsnbcnt(_In_reads_or_z_(_n) _CPC _s1,_In_ size_t _n) {return _mbsnbcnt((_CPUC)_s1,_n);} +_Check_return_ __inline size_t _tcsnccnt(_In_reads_or_z_(_n) _CPC _s1,_In_ size_t _n) {return _mbsnccnt((_CPUC)_s1,_n);} +_Check_return_ __inline _PC _tcsninc(_In_reads_or_z_(_n) _CPC _s1,_In_ size_t _n) {return (_PC)_mbsninc((_CPUC)_s1,_n);} +_Check_return_ __inline _PC _tcsspnp(_In_z_ _CPC _s1,_In_z_ _CPC _s2) {return (_PC)_mbsspnp((_CPUC)_s1,(_CPUC)_s2);} + +_Check_return_wat_ __inline errno_t _tcslwr_s(_Inout_updates_z_(_SizeInBytes) char * _String, size_t _SizeInBytes) +{ + return _mbslwr_s((unsigned char *)_String, _SizeInBytes); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(errno_t, _tcslwr_s, _Prepost_z_ char, _String) + +__DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(char *, __RETURN_POLICY_DST, _tcslwr, _tcslwr_s, _Inout_updates_z_(_Size) char, _Inout_z_ char, _String) +{ + return (char *)_mbslwr((unsigned char *)_String); +} + +__DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(char *, __RETURN_POLICY_DST, _tcslwr, _tcslwr_s, _Inout_updates_z_(_Size) char, _Inout_z_ char, _String) + +_Check_return_wat_ __inline errno_t _tcslwr_s_l(_Inout_updates_z_(_SizeInBytes) char * _String, _In_ size_t _SizeInBytes, _In_opt_ _locale_t _Locale) +{ + return _mbslwr_s_l((unsigned char *)_String, _SizeInBytes, _Locale); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _tcslwr_s_l, _Prepost_z_ char, _String, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(char *, __RETURN_POLICY_DST, _tcslwr_l, _tcslwr_s_l, _Inout_updates_z_(_Size) char, _Inout_z_ char, _String, _In_opt_ _locale_t, _Locale) +{ + return (char *)_mbslwr_l((unsigned char *)_String, _Locale); +} + +__DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(char *, __RETURN_POLICY_DST, _tcslwr_l, _tcslwr_s_l, _Inout_updates_z_(_Size) char, _Inout_z_ char, _String, _In_opt_ _locale_t, _Locale) + +_Check_return_wat_ __inline errno_t _tcsupr_s(_Inout_updates_z_(_Count) char * _String, _In_ size_t _Count) +{ + return _mbsupr_s((unsigned char *)_String, _Count); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(errno_t, _tcsupr_s, _Prepost_z_ char, _String) + +__DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(char *, __RETURN_POLICY_DST, _tcsupr, _tcsupr_s, _Inout_updates_z_(_Size) char, _Inout_z_ char, _String) +{ + return (char *)_mbsupr((unsigned char *)_String); +} + +__DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_0_EX(char *, __RETURN_POLICY_DST, _tcsupr, _tcsupr_s, _Inout_updates_z_(_Size) char, _Inout_z_ char, _String) + +_Check_return_wat_ __inline errno_t _tcsupr_s_l(_Inout_updates_z_(_Count) char * _String, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + return _mbsupr_s_l((unsigned char *)_String, _Count, _Locale); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _tcsupr_s_l, _Prepost_z_ char, _String, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(char *, __RETURN_POLICY_DST, _tcsupr_l, _tcsupr_s_l, _Inout_updates_z_(_Size) char, _Inout_z_ char, _String, _In_opt_ _locale_t, _Locale) +{ + return (char *)_mbsupr_l((unsigned char *)_String, _Locale); +} + +__DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_1_EX(char *, __RETURN_POLICY_DST, _tcsupr_l, _tcsupr_s_l, _Inout_updates_z_(_Size) char, _Inout_z_ char, _String, _In_opt_ _locale_t, _Locale) + +_Check_return_ __inline size_t _tclen(_In_z_ _CPC _s1) {return _mbclen((_CPUC)_s1);} + +_Check_return_wat_ __inline errno_t _tccpy_s(_Out_writes_z_(_SizeInBytes) char * _Destination, size_t _SizeInBytes, _Out_opt_ int *_PCopied, _In_z_ const char * _Source) +{ + return _mbccpy_s((unsigned char *)_Destination, _SizeInBytes, _PCopied, (const unsigned char *)_Source); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, _tccpy_s, _Post_z_ char, _Dest, _Out_opt_ int *, _PCopied, _In_z_ const char *, _Source) + +_CRT_INSECURE_DEPRECATE(_tccpy_s) __inline void _tccpy(_Out_writes_z_(2) char * _Destination, _In_z_ const char * _Source) +{ + _mbccpy((unsigned char *)_Destination, (const unsigned char *)_Source); +} + +_Check_return_wat_ __inline errno_t _tccpy_s_l(_Out_writes_z_(_SizeInBytes) char * _Destination, _In_ size_t _SizeInBytes, _Out_opt_ int *_PCopied, _In_z_ const char * _Source, _In_opt_ _locale_t _Locale) +{ + return _mbccpy_s_l((unsigned char *)_Destination, _SizeInBytes, _PCopied, (const unsigned char *)_Source, _Locale); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _tccpy_s_l, _Post_z_ char, _Dest, _Out_opt_ int *, _PCopied, _In_z_ const char *, _Source, _In_opt_ _locale_t, _Locale) + +_CRT_INSECURE_DEPRECATE(_tccpy_s_l) __inline void _tccpy_l(_Out_writes_z_(2) char * _Destination, _In_z_ const char * _Source, _In_opt_ _locale_t _Locale) +{ + _mbccpy_l((unsigned char *)_Destination,( const unsigned char *)_Source, _Locale); +} + +/* inline helper */ +_Check_return_ __inline _UI _tcsnextc(_In_z_ _CPC _s1) +{ + _UI _n=0; + if (_ismbblead((_UI)*(_PUC)_s1)) + { + /* for a dud MBCS string (leadbyte, EOS), we don't move forward 2 + We do not assert here because this routine is too low-level + */ + if(_s1[1]!='\0') + { + _n=((_UI)*(_PUC)_s1)<<8; + _s1++; + } + } + _n+=(_UI)*(_PUC)_s1; + + return(_n); +} + +#endif /* __STDC__ || defined (_NO_INLINING) */ + +#ifdef __cplusplus +#ifndef _CPP_TCHAR_INLINES_DEFINED +#define _CPP_TCHAR_INLINES_DEFINED +extern "C++" { +_Check_return_ inline char * __CRTDECL _tcschr(_In_z_ char *_S, _In_ unsigned int _C) + {return ((char *)_tcschr((const char *)_S, _C)); } +_Check_return_ inline char * __CRTDECL _tcspbrk(_In_z_ char *_S, _In_z_ const char *_P) + {return ((char *)_tcspbrk((const char *)_S, _P)); } +_Check_return_ inline char * __CRTDECL _tcsrchr(_In_z_ char *_S, _In_ unsigned int _C) + {return ((char *)_tcsrchr((const char *)_S, _C)); } +_Check_return_ inline char * __CRTDECL _tcsstr(_In_z_ char *_S, _In_z_ const char *_P) + {return ((char *)_tcsstr((const char *)_S, _P)); } +} +#endif /* _CPP_TCHAR_INLINES_DEFINED */ +#endif /* __cplusplus */ + +#endif /* _MB_MAP_DIRECT */ + + +/* MBCS-specific mappings */ + +#define _tccmp(_cp1,_cp2) _tcsnccmp(_cp1,_cp2,1) + + +/* ctype functions */ + +#define _istalnum _ismbcalnum +#define _istalnum_l _ismbcalnum_l +#define _istalpha _ismbcalpha +#define _istalpha_l _ismbcalpha_l +#define _istdigit _ismbcdigit +#define _istdigit_l _ismbcdigit_l +#define _istgraph _ismbcgraph +#define _istgraph_l _ismbcgraph_l +#define _istlegal _ismbclegal +#define _istlegal_l _ismbclegal_l +#define _istlower _ismbclower +#define _istlower_l _ismbclower_l +#define _istprint _ismbcprint +#define _istprint_l _ismbcprint_l +#define _istpunct _ismbcpunct +#define _istpunct_l _ismbcpunct_l +#define _istblank _ismbcblank +#define _istblank_l _ismbcblank_l +#define _istspace _ismbcspace +#define _istspace_l _ismbcspace_l +#define _istupper _ismbcupper +#define _istupper_l _ismbcupper_l + +#define _totupper _mbctoupper +#define _totupper_l _mbctoupper_l +#define _totlower _mbctolower +#define _totlower_l _mbctolower_l + +#define _istlead _ismbblead +#define _istleadbyte isleadbyte +#define _istleadbyte_l _isleadbyte_l + +#else /* _MBCS */ + +/* ++++++++++++++++++++ SBCS ++++++++++++++++++++ */ + + +#ifndef __TCHAR_DEFINED +typedef char _TCHAR; +typedef signed char _TSCHAR; +typedef unsigned char _TUCHAR; +typedef char _TXCHAR; +typedef int _TINT; +#define __TCHAR_DEFINED +#endif /* __TCHAR_DEFINED */ + +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES +#ifndef _TCHAR_DEFINED +typedef char TCHAR; +typedef char * PTCHAR; +typedef unsigned char TBYTE; +typedef unsigned char * PTBYTE; +#define _TCHAR_DEFINED +#endif /* _TCHAR_DEFINED */ +#endif /* _CRT_INTERNAL_NONSTDC_NAMES */ + + +/* String functions */ + +#define _tcschr strchr +#define _tcscspn strcspn +#define _tcsncat strncat +#define _tcsncat_s strncat_s +#define _tcsncat_l _strncat_l +#define _tcsncat_s_l _strncat_s_l +#define _tcsncpy strncpy +#define _tcsncpy_s strncpy_s +#define _tcsncpy_l _strncpy_l +#define _tcsncpy_s_l _strncpy_s_l +#define _tcspbrk strpbrk +#define _tcsrchr strrchr +#define _tcsspn strspn +#define _tcsstr strstr +#define _tcstok strtok +#define _tcstok_s strtok_s +#define _tcstok_l _strtok_l +#define _tcstok_s_l _strtok_s_l + +#define _tcsnset _strnset +#define _tcsnset_s _strnset_s +#define _tcsnset_l _strnset_l +#define _tcsnset_s_l _strnset_s_l +#define _tcsrev _strrev +#define _tcsset _strset +#define _tcsset_s _strset_s +#define _tcsset_l _strset_l +#define _tcsset_s_l _strset_s_l + +#define _tcscmp strcmp +#define _tcsicmp _stricmp +#define _tcsicmp_l _stricmp_l +#define _tcsnccmp strncmp +#define _tcsncmp strncmp +#define _tcsncicmp _strnicmp +#define _tcsncicmp_l _strnicmp_l +#define _tcsnicmp _strnicmp +#define _tcsnicmp_l _strnicmp_l + +#define _tcscoll strcoll +#define _tcscoll_l _strcoll_l +#define _tcsicoll _stricoll +#define _tcsicoll_l _stricoll_l +#define _tcsnccoll _strncoll +#define _tcsnccoll_l _strncoll_l +#define _tcsncoll _strncoll +#define _tcsncoll_l _strncoll_l +#define _tcsncicoll _strnicoll +#define _tcsncicoll_l _strnicoll_l +#define _tcsnicoll _strnicoll +#define _tcsnicoll_l _strnicoll_l + +/* "logical-character" mappings */ + +#define _tcsclen strlen +#define _tcscnlen strnlen +#define _tcsclen_l(_String, _Locale) strlen(_String) +#define _tcscnlen_l(_String, _Max_count, _Locale) strnlen((_String), (_Max_count)) +#define _tcsnccat strncat +#define _tcsnccat_s strncat_s +#define _tcsnccat_l _strncat_l +#define _tcsnccat_s_l _strncat_s_l +#define _tcsnccpy strncpy +#define _tcsnccpy_s strncpy_s +#define _tcsnccpy_l _strncpy_l +#define _tcsnccpy_s_l _strncpy_s_l +#define _tcsncset _strnset +#define _tcsncset_s _strnset_s +#define _tcsncset_l _strnset_l +#define _tcsncset_s_l _strnset_s_l + +/* MBCS-specific functions */ + +#define _tcsdec _strdec +#define _tcsinc _strinc +#define _tcsnbcnt _strncnt +#define _tcsnccnt _strncnt +#define _tcsnextc _strnextc +#define _tcsninc _strninc +#define _tcsspnp _strspnp + +#define _tcslwr _strlwr +#define _tcslwr_l _strlwr_l +#define _tcslwr_s _strlwr_s +#define _tcslwr_s_l _strlwr_s_l +#define _tcsupr _strupr +#define _tcsupr_l _strupr_l +#define _tcsupr_s _strupr_s +#define _tcsupr_s_l _strupr_s_l +#define _tcsxfrm strxfrm +#define _tcsxfrm_l _strxfrm_l + +#define _istlead(_Char) (0) +#define _istleadbyte(_Char) (0) +#define _istleadbyte_l(_Char, _Locale) (0) + +#if __STDC__ || defined (_NO_INLINING) +#define _tclen(_pc) (1) +#define _tccpy(_pc1,_cpc2) (*(_pc1) = *(_cpc2)) +#define _tccpy_l(_pc1,_cpc2,_locale) _tccpy((_pc1),(_cpc2)) +#define _tccmp(_cpc1,_cpc2) (((unsigned char)*(_cpc1))-((unsigned char)*(_cpc2))) +#else /* __STDC__ || defined (_NO_INLINING) */ +_Check_return_ __inline size_t __CRTDECL _tclen(_In_z_ const char *_cpc) +{ + _CRT_UNUSED(_cpc); + return 1; +} +__inline void __CRTDECL _tccpy(_Out_ char *_pc1, _In_z_ const char *_cpc2) { *_pc1 = *_cpc2; } +__inline void __CRTDECL _tccpy_l(_Out_ char *_Pc1, _In_z_ const char *_Cpc2, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + _tccpy(_Pc1, _Cpc2); +} +_Check_return_ __inline int __CRTDECL _tccmp(_In_z_ const char *_cpc1, _In_z_ const char *_cpc2) { return (int) (((unsigned char)*_cpc1)-((unsigned char)*_cpc2)); } +#endif /* __STDC__ || defined (_NO_INLINING) */ + + +/* ctype-functions */ + +#define _istalnum isalnum +#define _istalnum_l _isalnum_l +#define _istalpha isalpha +#define _istalpha_l _isalpha_l +#define _istdigit isdigit +#define _istdigit_l _isdigit_l +#define _istgraph isgraph +#define _istgraph_l _isgraph_l +#define _istlower islower +#define _istlower_l _islower_l +#define _istprint isprint +#define _istprint_l _isprint_l +#define _istpunct ispunct +#define _istpunct_l _ispunct_l +#define _istblank isblank +#define _istblank_l _isblank_l +#define _istspace isspace +#define _istspace_l _isspace_l +#define _istupper isupper +#define _istupper_l _isupper_l + +#define _totupper toupper +#define _totupper_l _toupper_l +#define _totlower tolower +#define _totlower_l _tolower_l + +#define _istlegal(_c) (1) + + +/* the following is optional if functional versions are available */ + +#if __STDC__ || defined (_NO_INLINING) +#define _strdec(_cpc1, _cpc2) ((_cpc1)>=(_cpc2) ? NULL : (_cpc2)-1) +#define _strinc(_pc) ((_pc)+1) +#define _strnextc(_cpc) ((unsigned int) *(const unsigned char *)(_cpc)) +#define _strninc(_pc, _sz) (((_pc)+(_sz))) +_ACRTIMP size_t __cdecl __strncnt(_In_reads_or_z_(_Cnt) const char * _Str, _In_ size_t _Cnt); +#define _strncnt(_cpc, _sz) (__strncnt(_cpc,_sz)) +#define _strspnp(_cpc1, _cpc2) (_cpc1==NULL ? NULL : ((*((_cpc1)+strspn(_cpc1,_cpc2))) ? ((_cpc1)+strspn(_cpc1,_cpc2)) : NULL)) + +#define _strncpy_l(_Destination, _Source, _Count, _Locale) (strncpy(_Destination, _Source, _Count)) +#if __STDC_WANT_SECURE_LIB__ +#define _strncpy_s_l(_Destination, _Destination_size_chars, _Source, _Count, _Locale) (strncpy_s(_Destination, _Destination_size_chars, _Source, _Count)) +#endif /* __STDC_WANT_SECURE_LIB__ */ +#define _strncat_l(_Destination, _Source, _Count, _Locale) (strncat(_Destination, _Source, _Count)) +#if __STDC_WANT_SECURE_LIB__ +#define _strncat_s_l(_Destination, _Destination_size_chars, _Source, _Count, _Locale) (strncat_s(_Destination, _Destination_size_chars, _Source, _Count)) +#endif /* __STDC_WANT_SECURE_LIB__ */ +#define _strtok_l(_String, _Delimiters, _Locale) (strtok(_String, _Delimiters)) +#if __STDC_WANT_SECURE_LIB__ +#define _strtok_s_l(_String, _Delimiters, _Current_position, _Locale) (strtok_s(_String, _Delimiters, _Current_position)) +#endif /* __STDC_WANT_SECURE_LIB__ */ +#define _strnset_l(_Destination, _Value, _Count, _Locale) (_strnset(_Destination, _Value, _Count)) +#define _strnset_s_l(_Destination, _Destination_size_chars, _Value, _Count, _Locale) (_strnset_s(_Destination, _Destination_size_chars, _Value, _Count)) +#define _strset_l(_Destination, _Value, _Locale) (_strset(_Destination, _Value)) +#define _strset_s_l(_Destination, _Destination_size_chars, _Value, _Locale) (_strset_s(_Destination, _Destination_size_chars, _Value)) +#else /* __STDC__ || defined (_NO_INLINING) */ +_Check_return_ __inline char * __CRTDECL _strdec(_In_reads_z_(_Cpc2 - _Cpc1) const char * _Cpc1, _In_z_ const char * _Cpc2) { return (char *)((_Cpc1)>=(_Cpc2) ? NULL : (_Cpc2-1)); } +_Check_return_ __inline char * __CRTDECL _strinc(_In_z_ const char * _Pc) { return (char *)(_Pc+1); } +_Check_return_ __inline unsigned int __CRTDECL _strnextc(_In_z_ const char * _Cpc) { return (unsigned int)*(const unsigned char *)_Cpc; } +_Check_return_ __inline char * __CRTDECL _strninc(_In_reads_or_z_(_Sz) const char * _Pc, _In_ size_t _Sz) { return (char *)(_Pc+_Sz); } +_Check_return_ __inline size_t __CRTDECL _strncnt(_In_reads_or_z_(_Cnt) const char * _String, _In_ size_t _Cnt) +{ + size_t n = _Cnt; + char *cp = (char *)_String; + while (n-- && *cp) + cp++; + return _Cnt - n - 1; +} +_Check_return_ __inline char * __CRTDECL _strspnp +( + _In_z_ const char * _Cpc1, + _In_z_ const char * _Cpc2 +) +{ + return _Cpc1==NULL ? NULL : ((*(_Cpc1 += strspn(_Cpc1,_Cpc2))!='\0') ? (char*)_Cpc1 : NULL); +} + +#if __STDC_WANT_SECURE_LIB__ +_Check_return_wat_ __inline errno_t __CRTDECL _strncpy_s_l(_Out_writes_z_(_Destination_size_chars) char *_Destination, _In_ size_t _Destination_size_chars, _In_z_ const char *_Source, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return strncpy_s(_Destination, _Destination_size_chars, _Source, _Count); +} +#endif /* __STDC_WANT_SECURE_LIB__ */ + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _strncpy_s_l, _Post_z_ char, _Dest, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _strncpy_l, _strncpy_s_l, _Out_writes_z_(_Size) char, _Out_writes_(_Count) char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) +{ + _CRT_UNUSED(_Locale); + return strncpy(_Dst, _Source, _Count); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _strncpy_l, _strncpy_s_l, _Out_writes_z_(_Size) char, _Out_writes_(_Count), char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +#if __STDC_WANT_SECURE_LIB__ +_Check_return_wat_ __inline errno_t __CRTDECL _strncat_s_l(_Inout_updates_z_(_Destination_size_chars) char *_Destination, _In_ size_t _Destination_size_chars, _In_z_ const char *_Source, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return strncat_s(_Destination, _Destination_size_chars, _Source, _Count); +} +#endif /* __STDC_WANT_SECURE_LIB__ */ + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _strncat_s_l, _Prepost_z_ char, _Dest, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _strncat_l, _strncat_s_l, _Inout_updates_z_(_Size) char, _Inout_z_ char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) +{ + _CRT_UNUSED(_Locale); +#pragma warning(suppress: 6054) // String may not be zero-terminated + return strncat(_Dst, _Source, _Count); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _strncat_l, _strncat_s_l, _Inout_updates_z_(_Size) char, _Inout_z_, char, _Dst, _In_z_ const char *, _Source, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +_Check_return_ _CRT_INSECURE_DEPRECATE(_strtok_s_l) __inline char * _strtok_l(_Inout_opt_z_ char * _String, _In_z_ const char * _Delimiters, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return strtok(_String,_Delimiters); +} + +#if __STDC_WANT_SECURE_LIB__ +_Check_return_ __inline char * _strtok_s_l(_Inout_opt_z_ char * _String, _In_z_ const char * _Delimiters, _Inout_ _Deref_prepost_opt_z_ char **_Current_position, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return strtok_s(_String, _Delimiters, _Current_position); +} +#endif /* __STDC_WANT_SECURE_LIB__ */ + +__inline errno_t __CRTDECL _strnset_s_l(_Inout_updates_z_(_Destination_size_chars) char *_Destination, _In_ size_t _Destination_size_chars, _In_ int _Value, _In_ size_t _Count, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return _strnset_s(_Destination, _Destination_size_chars, _Value, _Count); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_3(errno_t, _strnset_s_l, _Prepost_z_ char, _Dest, _In_ int, _Value, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _strnset_l, _strnset_s_l, _Inout_updates_z_(_Size) char, _Inout_updates_z_(_MaxCount) char, _Dst, _In_ int, _Value, _In_ size_t, _MaxCount, _In_opt_ _locale_t, _Locale) +{ + _CRT_UNUSED(_Locale); +#pragma warning(suppress: 6054) // String may not be zero-terminated + return _strnset(_Dst, _Value, _MaxCount); +} + +__DEFINE_CPP_OVERLOAD_INLINE_NFUNC_0_3_EX(char *, __RETURN_POLICY_DST, _strnset_l, _strnset_s_l, _Inout_updates_z_(_Size) char, _Inout_updates_z_(_MaxCount), char, _Dst, _In_ int, _Value, _In_ size_t, _Count, _In_opt_ _locale_t, _Locale) + +__inline errno_t __CRTDECL _strset_s_l(_Inout_updates_z_(_Destination_size_chars) char *_Destination, _In_ size_t _Destination_size_chars, _In_ int _Value, _In_opt_ _locale_t _Locale) +{ + _CRT_UNUSED(_Locale); + return _strset_s(_Destination, _Destination_size_chars, _Value); +} + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_2(errno_t, _strset_s_l, _Prepost_z_ char, _Dest, _In_ int, _Value, _In_opt_ _locale_t, _Locale) + +__DECLARE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(char *, __RETURN_POLICY_DST, _strset_l, _strset_s_l, _Inout_updates_z_(_Size) char, _Inout_z_ char, _Dst, _In_ int, _Value, _In_opt_ _locale_t, _Locale) +{ + _CRT_UNUSED(_Locale); + return _strset(_Dst, _Value); +} + +__DEFINE_CPP_OVERLOAD_INLINE_FUNC_0_2_EX(char *, __RETURN_POLICY_DST, _strset_l, _strset_s_l, _Inout_updates_z_(_Size) char, _Inout_z_, char, _Dst, _In_ int, _Value, _In_opt_ _locale_t, _Locale) + +#endif /* __STDC__ || defined (_NO_INLINING) */ + + +#endif /* _MBCS */ + +#endif /* _UNICODE */ + + +/* Generic text macros to be used with string literals and character constants. + Will also allow symbolic constants that resolve to same. */ + +#define _T(x) __T(x) +#define _TEXT(x) __T(x) + + +#ifdef __cplusplus +} /* ... extern "C" */ +#endif /* __cplusplus */ +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif /* _INC_TCHAR */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/tgmath.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/tgmath.h new file mode 100644 index 0000000000000000000000000000000000000000..84ede79dbe447b08c940e144c9904117192273d1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/tgmath.h @@ -0,0 +1,650 @@ +// +// tgmath.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The type-generic math library. +// +#pragma once +#ifndef _TGMATH +#define _TGMATH + +#include + +#if (_CRT_HAS_CXX17 == 1) && !defined(_CRT_USE_C_TGMATH_H) + +#include + +#else // ^^^^ /std:c++17 ^^^^ // vvvv _CRT_USE_C_TGMATH_H vvvv + +#include +#include + +#if _CRT_HAS_C11 == 0 + +#ifndef _CRT_SILENCE_NONCONFORMING_TGMATH_H + +#pragma message(_CRT_WARNING_MESSAGE("UCRT4000", \ + "This header does not conform to the C99 standard. " \ + "C99 functionality is available when compiling in C11 mode or higher (/std:c11). " \ + "Functionality equivalent to the type-generic functions provided by tgmath.h is available " \ + "in when compiling as C++. " \ + "If compiling in C++17 mode or higher (/std:c++17), this header will automatically include instead. " \ + "You can define _CRT_SILENCE_NONCONFORMING_TGMATH_H to acknowledge that you have received this warning.")) + +#endif // _CRT_SILENCE_NONCONFORMING_TGMATH_H + +#else // ^^^^ Default C Support ^^^^ // vvvv C11 Support vvvv + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS +_CRT_BEGIN_C_HEADER + +#define __tgmath_resolve_real_binary_op(X, Y) _Generic((X), \ + long double: 0.0l, \ + \ + default: _Generic((Y), \ + long double: 0.0l, \ + default: 0.0 \ + ), \ + \ + float: _Generic((Y), \ + long double: 0.0l, \ + default: 0.0, \ + float: 0.0f \ + ) \ + ) + +#define fabs(X) _Generic((X), \ + _Lcomplex: cabsl, \ + _Fcomplex: cabsf, \ + _Dcomplex: cabs, \ + long double: fabsl, \ + float: fabsf, \ + default: fabs \ +)(X) + +#define exp(X) _Generic((X), \ + _Lcomplex: cexpl, \ + _Fcomplex: cexpf, \ + _Dcomplex: cexp, \ + long double: expl, \ + float: expf, \ + default: exp \ +)(X) + +#define log(X) _Generic((X), \ + _Lcomplex: clogl, \ + _Fcomplex: clogf, \ + _Dcomplex: clog, \ + long double: logl, \ + float: logf, \ + default: log \ +)(X) + +// C99 Complex types currently not supported. Complex types do not cast/promote implicitly - need inline helper functions. + +inline _Lcomplex __cpowl_lc_dc(_Lcomplex const __lc, _Dcomplex const __dc) +{ + return cpowl(__lc, _LCbuild(__dc._Val[0], __dc._Val[1])); +} + +inline _Lcomplex __cpowl_dc_lc(_Dcomplex const __dc, _Lcomplex const __lc) +{ + return cpowl(_LCbuild(__dc._Val[0], __dc._Val[1]), __lc); +} + +inline _Lcomplex __cpowl_lc_fc(_Lcomplex const __lc, _Fcomplex const __fc) +{ + return cpowl(__lc, _LCbuild(__fc._Val[0], __fc._Val[1])); +} + +inline _Lcomplex __cpowl_fc_lc(_Fcomplex const __fc, _Lcomplex const __lc) +{ + return cpowl(_LCbuild(__fc._Val[0], __fc._Val[1]), __lc); +} + +inline _Lcomplex __cpowl_lc_l(_Lcomplex const __lc, long double const __l) +{ + return cpowl(__lc, _LCbuild(__l, 0.0)); +} + +inline _Lcomplex __cpowl_l_lc(long double const __l, _Lcomplex const __lc) +{ + return cpowl(_LCbuild(__l, 0.0), __lc); +} + +inline _Lcomplex __cpowl_lc_d(_Lcomplex const __lc, double const __d) +{ + return cpowl(__lc, _LCbuild(__d, 0.0)); +} + +inline _Lcomplex __cpowl_d_lc(double const __d, _Lcomplex const __lc) +{ + return cpowl(_LCbuild(__d, 0.0), __lc); +} + +inline _Lcomplex __cpowl_lc_f(_Lcomplex const __lc, float const __f) +{ + return cpowl(__lc, _LCbuild(__f, 0.0)); +} + +inline _Lcomplex __cpowl_f_lc(float const __f, _Lcomplex const __lc) +{ + return cpowl(_LCbuild(__f, 0.0), __lc); +} + +inline _Lcomplex __cpowl_dc_l(_Dcomplex const __dc, long double const __l) +{ + return cpowl(_LCbuild(__dc._Val[0], __dc._Val[1]), _LCbuild(__l, 0.0)); +} + +inline _Lcomplex __cpowl_l_dc(long double const __l, _Dcomplex const __dc) +{ + return cpowl(_LCbuild(__l, 0.0), _LCbuild(__dc._Val[0], __dc._Val[1])); +} + +inline _Lcomplex __cpowl_fc_l(_Fcomplex const __fc, long double const __l) +{ + return cpowl(_LCbuild(__fc._Val[0], __fc._Val[1]), _LCbuild(__l, 0.0)); +} + +inline _Lcomplex __cpowl_l_fc(long double const __l, _Fcomplex const __fc) +{ + return cpowl(_LCbuild(__l, 0.0), _LCbuild(__fc._Val[0], __fc._Val[1])); +} + +inline _Dcomplex __cpow_dc_fc(_Dcomplex const __dc, _Fcomplex const __fc) +{ + return cpow(__dc, _Cbuild(__fc._Val[0], __fc._Val[1])); +} + +inline _Dcomplex __cpow_fc_dc(_Fcomplex const __fc, _Dcomplex const __dc) +{ + return cpow(_Cbuild(__fc._Val[0], __fc._Val[1]), __dc); +} + +inline _Dcomplex __cpow_dc_d(_Dcomplex const __dc, double const __d) +{ + return cpow(__dc, _Cbuild(__d, 0.0)); +} + +inline _Dcomplex __cpow_d_dc(double const __d, _Dcomplex const __dc) +{ + return cpow(_Cbuild(__d, 0.0), __dc); +} + +inline _Dcomplex __cpow_dc_f(_Dcomplex const __dc, float const __f) +{ + return cpow(__dc, _Cbuild(__f, 0.0)); +} + +inline _Dcomplex __cpow_f_dc(float const __f, _Dcomplex const __dc) +{ + return cpow(_Cbuild(__f, 0.0), __dc); +} + +inline _Dcomplex __cpow_fc_d(_Fcomplex const __fc, double const __d) +{ + return cpow(_Cbuild(__fc._Val[0], __fc._Val[1]), _Cbuild(__d, 0.0)); +} + +inline _Dcomplex __cpow_d_fc(double const __d, _Fcomplex const __fc) +{ + return cpow(_Cbuild(__d, 0.0), _Cbuild(__fc._Val[0], __fc._Val[1])); +} + +inline _Fcomplex __cpowf_fc_f(_Fcomplex const __fc, float const __f) +{ + return cpowf(__fc, _FCbuild(__f, 0.0f)); +} + +inline _Fcomplex __cpowf_f_fc(float const __f, _Fcomplex const __fc) +{ + return cpowf(_FCbuild(__f, 0.0f), __fc); +} + +#define pow(X, Y) _Generic((X), \ + _Lcomplex: _Generic((Y), \ + _Lcomplex: cpowl, \ + _Fcomplex: __cpowl_lc_fc, \ + _Dcomplex: __cpowl_lc_dc, \ + long double: __cpowl_lc_l, \ + default: __cpowl_lc_d, \ + float: __cpowl_lc_f \ + ), \ + \ + _Fcomplex: _Generic((Y), \ + _Lcomplex: __cpowl_fc_lc, \ + _Fcomplex: cpowf, \ + _Dcomplex: __cpow_fc_dc, \ + long double: __cpowl_fc_l, \ + default: __cpow_fc_d, \ + float: __cpowf_fc_f \ + ), \ + \ + _Dcomplex: _Generic((Y), \ + _Lcomplex: __cpowl_dc_lc, \ + _Fcomplex: __cpow_dc_fc, \ + _Dcomplex: cpow, \ + long double: __cpowl_dc_l, \ + default: __cpow_dc_d, \ + float: __cpow_dc_f \ + ), \ + \ + long double: _Generic((Y), \ + _Lcomplex: __cpowl_l_lc, \ + _Fcomplex: __cpowl_l_fc, \ + _Dcomplex: __cpowl_l_dc, \ + default: powl \ + ), \ + \ + float: _Generic((Y), \ + _Lcomplex: __cpowl_f_lc, \ + _Fcomplex: __cpowf_f_fc, \ + _Dcomplex: __cpow_f_dc, \ + long double: powl, \ + default: pow, \ + float: powf \ + ), \ + \ + default: _Generic((Y), \ + _Lcomplex: __cpowl_d_lc, \ + _Fcomplex: __cpow_d_fc, \ + _Dcomplex: __cpow_d_dc, \ + long double: powl, \ + default: pow \ + ) \ +)(X, Y) + +#define sqrt(X) _Generic((X), \ + _Lcomplex: csqrtl, \ + _Fcomplex: csqrtf, \ + _Dcomplex: csqrt, \ + long double: sqrtl, \ + float: sqrtf, \ + default: sqrt \ +)(X) + +#define sin(X) _Generic((X), \ + _Lcomplex: csinl, \ + _Fcomplex: csinf, \ + _Dcomplex: csin, \ + long double: sinl, \ + float: sinf, \ + default: sin \ +)(X) + +#define cos(X) _Generic((X), \ + _Lcomplex: ccosl, \ + _Fcomplex: ccosf, \ + _Dcomplex: ccos, \ + long double: cosl, \ + float: cosf, \ + default: cos \ +)(X) + +#define tan(X) _Generic((X), \ + _Lcomplex: ctanl, \ + _Fcomplex: ctanf, \ + _Dcomplex: ctan, \ + long double: tanl, \ + float: tanf, \ + default: tan \ +)(X) + +#define asin(X) _Generic((X), \ + _Lcomplex: casinl, \ + _Fcomplex: casinf, \ + _Dcomplex: casin, \ + long double: asinl, \ + float: asinf, \ + default: asin \ +)(X) + +#define acos(X) _Generic((X), \ + _Lcomplex: cacosl, \ + _Fcomplex: cacosf, \ + _Dcomplex: cacos, \ + long double: acosl, \ + float: acosf, \ + default: acos \ +)(X) + +#define atan(X) _Generic((X), \ + _Lcomplex: catanl, \ + _Fcomplex: catanf, \ + _Dcomplex: catan, \ + long double: atanl, \ + float: atanf, \ + default: atan \ +)(X) + +#define asinh(X) _Generic((X), \ + _Lcomplex: casinhl, \ + _Fcomplex: casinhf, \ + _Dcomplex: casinh, \ + long double: asinhl, \ + float: asinhf, \ + default: asinh \ +)(X) + +#define acosh(X) _Generic((X), \ + _Lcomplex: cacoshl, \ + _Fcomplex: cacoshf, \ + _Dcomplex: cacosh, \ + long double: acoshl, \ + float: acoshf, \ + default: acosh \ +)(X) + +#define atanh(X) _Generic((X), \ + _Lcomplex: catanhl, \ + _Fcomplex: catanhf, \ + _Dcomplex: catanh, \ + long double: atanhl, \ + float: atanhf, \ + default: atanh \ +)(X) + +#define atan2(X, Y) _Generic(__tgmath_resolve_real_binary_op((X), (Y)), \ + long double: atan2l, \ + float: atan2f, \ + default: atan2 \ +)(X, Y) + +#define cbrt(X) _Generic((X), \ + long double: cbrtl, \ + float: cbrtf, \ + default: cbrt \ +)(X) + +#define ceil(X) _Generic((X), \ + long double: ceill, \ + float: ceilf, \ + default: ceil \ +)(X) + +#define copysign(X, Y) _Generic(__tgmath_resolve_real_binary_op((X), (Y)), \ + long double: copysignl, \ + float: copysignf, \ + default: copysign \ +)(X, Y) + +#define erf(X) _Generic((X), \ + long double: erfl, \ + float: erff, \ + default: erf \ +)(X) + +#define erfc(X) _Generic((X), \ + long double: erfcl, \ + float: erfcf, \ + default: erfc \ +)(X) + +#define exp2(X) _Generic((X), \ + long double: exp2l, \ + float: exp2f, \ + default: exp2 \ +)(X) + +#define expm1(X) _Generic((X), \ + long double: expm1l, \ + float: expm1f, \ + default: expm1 \ +)(X) + +#define fdim(X, Y) _Generic(__tgmath_resolve_real_binary_op((X), (Y)), \ + long double: fdiml, \ + float: fdimf, \ + default: fdim \ +)(X, Y) + +#define floor(X) _Generic((X), \ + long double: floorl, \ + float: floorf, \ + default: floor \ +)(X) + +#define fma(X, Y, Z) _Generic(__tgmath_resolve_real_binary_op((X), __tgmath_resolve_real_binary_op((Y), (Z))), \ + long double: fmal, \ + float: fmaf, \ + default: fma \ +)(X, Y, Z) + +#define fmax(X, Y) _Generic(__tgmath_resolve_real_binary_op((X), (Y)), \ + long double: fmaxl, \ + float: fmaxf, \ + default: fmax \ +)(X, Y) + +#define fmin(X, Y) _Generic(__tgmath_resolve_real_binary_op((X), (Y)), \ + long double: fminl, \ + float: fminf, \ + default: fmin \ +)(X, Y) + +#define fmod(X, Y) _Generic(__tgmath_resolve_real_binary_op((X), (Y)), \ + long double: fmodl, \ + float: fmodf, \ + default: fmod \ +)(X, Y) + +#define frexp(X, INT_PTR) _Generic((X), \ + long double: frexpl, \ + float: frexpf, \ + default: frexp \ +)(X, INT_PTR) + +#define hypot(X, Y) _Generic(__tgmath_resolve_real_binary_op((X), (Y)), \ + long double: hypotl, \ + float: hypotf, \ + default: hypot \ +)(X, Y) + +#define ilogb(X) _Generic((X), \ + long double: ilogbl, \ + float: ilogbf, \ + default: ilogb \ +)(X) + +#define ldexp(X, INT) _Generic((X), \ + long double: ldexpl, \ + float: ldexpf, \ + default: ldexp \ +)(X, INT) + +#define lgamma(X) _Generic((X), \ + long double: lgammal, \ + float: lgammaf, \ + default: lgamma \ +)(X) + +#define llrint(X) _Generic((X), \ + long double: llrintl, \ + float: llrintf, \ + default: llrint \ +)(X) + +#define llround(X) _Generic((X), \ + long double: llroundl, \ + float: llroundf, \ + default: llround \ +)(X) + +#define log10(X) _Generic((X), \ + long double: log10l, \ + float: log10f, \ + default: log10 \ +)(X) + +#define log1p(X) _Generic((X), \ + long double: log1pl, \ + float: log1pf, \ + default: log1p \ +)(X) + +#define log2(X) _Generic((X), \ + long double: log2l, \ + float: log2f, \ + default: log2 \ +)(X) + +#define logb(X) _Generic((X), \ + long double: logbl, \ + float: logbf, \ + default: logb \ +)(X) + +#define lrint(X) _Generic((X), \ + long double: lrintl, \ + float: lrintf, \ + default: lrint \ +)(X) + +#define lround(X) _Generic((X), \ + long double: lroundl, \ + float: lroundf, \ + default: lround \ +)(X) + +#define nearbyint(X) _Generic((X), \ + long double: nearbyintl, \ + float: nearbyintf, \ + default: nearbyint \ +)(X) + +#define nextafter(X, Y) _Generic(__tgmath_resolve_real_binary_op((X), (Y)), \ + long double: nextafterl, \ + float: nextafterf, \ + default: nextafter \ +)(X, Y) + +#define nexttoward(X, LONG_DOUBLE) _Generic((X), \ + long double: nexttowardl, \ + float: nexttowardf, \ + default: nexttoward \ +)(X, LONG_DOUBLE) + +#define remainder(X, Y) _Generic(__tgmath_resolve_real_binary_op((X), (Y)), \ + long double: remainderl, \ + float: remainderf, \ + default: remainder \ +)(X, Y) + +#define remquo(X, Y, INT_PTR) _Generic(__tgmath_resolve_real_binary_op((X), (Y)), \ + long double: remquol, \ + float: remquof, \ + default: remquo \ +)(X, Y, INT_PTR) + +#define rint(X) _Generic((X), \ + long double: rintl, \ + float: rintf, \ + default: rint \ +)(X) + +#define round(X) _Generic((X), \ + long double: roundl, \ + float: roundf, \ + default: round \ +)(X) + +#define scalbln(X, LONG) _Generic((X), \ + long double: scalblnl, \ + float: scalblnf, \ + default: scalbln \ +)(X, LONG) + +#define scalbn(X, INT) _Generic((X), \ + long double: scalbnl, \ + float: scalbnf, \ + default: scalbn \ +)(X, INT) + +#define tgamma(X) _Generic((X), \ + long double: tgammal, \ + float: tgammaf, \ + default: tgamma \ +)(X) + +#define trunc(X) _Generic((X), \ + long double: truncl, \ + float: truncf, \ + default: trunc \ +)(X) + +inline double __carg_d(double const __d) +{ + return carg(_Cbuild(__d, 0.0)); +} + +#define carg(X) _Generic((X), \ + _Lcomplex: cargl, \ + _Fcomplex: cargf, \ + _Dcomplex: carg, \ + default: __carg_d \ +)(X) + +inline _Dcomplex __conj_d(double const __d) +{ + return conj(_Cbuild(__d, 0.0)); +} + +#define conj(X) _Generic((X), \ + _Lcomplex: conjl, \ + _Fcomplex: conjf, \ + _Dcomplex: conj, \ + default: __conj_d \ +)(X) + +inline double __creal_d(double const __d) +{ + // The real part of a double casted to a double complex is just the double value. + return __d; +} + +#define creal(X) _Generic((X), \ + _Lcomplex: creall, \ + _Fcomplex: crealf, \ + _Dcomplex: creal, \ + default: __creal_d \ +)(X) + +inline double __cimag_d(double const __d) +{ + // The imaginary part of a double casted to a double complex is 0. + (void) __d; + return 0.0; +} + +#define cimag(X) _Generic((X), \ + _Lcomplex: cimagl, \ + _Fcomplex: cimagf, \ + _Dcomplex: cimag, \ + default: __cimag_d \ +)(X) + +inline _Dcomplex __cproj_d(double const __d) +{ + return cproj(_Cbuild(__d, 0.0)); +} + +#define cproj(X) _Generic((X), \ + _Lcomplex: cprojl, \ + _Fcomplex: cprojf, \ + _Dcomplex: cproj, \ + default: __cproj_d \ +)(X) + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS + +#endif // _CRT_HAS_C11 == 0 + +#endif // (_CRT_HAS_CXX17 == 1) && !defined(_CRT_USE_C_TGMATH_H) + +#endif // _TGMATH diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/time.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/time.h new file mode 100644 index 0000000000000000000000000000000000000000..9598f524016401d0d5441602b4b4e357b0722903 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/time.h @@ -0,0 +1,648 @@ +// +// time.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C Standard Library header. +// +#pragma once +#ifndef _INC_TIME // include guard for 3rd party interop +#define _INC_TIME + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +#ifndef _CRT_USE_CONFORMING_ANNEX_K_TIME +#define _CRT_USE_CONFORMING_ANNEX_K_TIME 0 +#endif + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Types +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +typedef long clock_t; + +struct _timespec32 +{ + __time32_t tv_sec; + long tv_nsec; +}; + +struct _timespec64 +{ + __time64_t tv_sec; + long tv_nsec; +}; + +#ifndef _CRT_NO_TIME_T + struct timespec + { + time_t tv_sec; // Seconds - >= 0 + long tv_nsec; // Nanoseconds - [0, 999999999] + }; +#endif + + + +// The number of clock ticks per second +#define CLOCKS_PER_SEC ((clock_t)1000) + +#define TIME_UTC 1 + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Time Zone and Daylight Savings Time Data and Accessors +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// Nonzero if Daylight Savings Time is used +_Check_return_ _CRT_INSECURE_DEPRECATE_GLOBALS(_get_daylight) +_ACRTIMP int* __cdecl __daylight(void); + +#define _daylight (*__daylight()) + +// Offset for Daylight Savings Time +_Check_return_ _CRT_INSECURE_DEPRECATE_GLOBALS(_get_dstbias) +_ACRTIMP long* __cdecl __dstbias(void); + +#define _dstbias (*__dstbias()) + +// Difference in seconds between GMT and local time +_Check_return_ _CRT_INSECURE_DEPRECATE_GLOBALS(_get_timezone) +_ACRTIMP long* __cdecl __timezone(void); + +#define _timezone (*__timezone()) + +// Standard and Daylight Savings Time time zone names +_Check_return_ _Deref_ret_z_ _CRT_INSECURE_DEPRECATE_GLOBALS(_get_tzname) +_ACRTIMP char** __cdecl __tzname(void); + +#define _tzname (__tzname()) + + _Success_(_Daylight != 0) +_ACRTIMP errno_t __cdecl _get_daylight( + _Out_ int* _Daylight + ); + +_Success_(_DaylightSavingsBias != 0) +_ACRTIMP errno_t __cdecl _get_dstbias( + _Out_ long* _DaylightSavingsBias + ); + + _Success_(_TimeZone != 0) +_ACRTIMP errno_t __cdecl _get_timezone( + _Out_ long* _TimeZone + ); + +_Success_(return == 0) +_ACRTIMP errno_t __cdecl _get_tzname( + _Out_ size_t* _ReturnValue, + _Out_writes_z_(_SizeInBytes) char* _Buffer, + _In_ size_t _SizeInBytes, + _In_ int _Index + ); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// AppCRT Time Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +_Success_(return != 0) +_Ret_writes_z_(26) +_Check_return_ _CRT_INSECURE_DEPRECATE(asctime_s) +_ACRTIMP char* __cdecl asctime( + _In_ struct tm const* _Tm + ); + +#if __STDC_WANT_SECURE_LIB__ + _Success_(return == 0) + _Check_return_wat_ + _ACRTIMP errno_t __cdecl asctime_s( + _Out_writes_(_SizeInBytes) _Post_readable_size_(26) char* _Buffer, + _In_range_(>=,26) size_t _SizeInBytes, + _In_ struct tm const* _Tm + ); +#endif + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, asctime_s, + _Post_readable_size_(26) char, _Buffer, + _In_ struct tm const*, _Time + ) + +_Check_return_ +_ACRTIMP clock_t __cdecl clock(void); + +_Ret_z_ +_Success_(return != 0) +_Check_return_ _CRT_INSECURE_DEPRECATE(_ctime32_s) +_ACRTIMP char* __cdecl _ctime32( + _In_ __time32_t const* _Time + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _ctime32_s( + _Out_writes_(_SizeInBytes) _Post_readable_size_(26) char* _Buffer, + _In_range_(>=,26) size_t _SizeInBytes, + _In_ __time32_t const* _Time + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _ctime32_s, + _Post_readable_size_(26) char, _Buffer, + _In_ __time32_t const*, _Time + ) + +_Ret_z_ +_Success_(return != 0) +_Check_return_ _CRT_INSECURE_DEPRECATE(_ctime64_s) +_ACRTIMP char* __cdecl _ctime64( + _In_ __time64_t const* _Time + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _ctime64_s( + _Out_writes_z_(_SizeInBytes) _Post_readable_size_(26) char* _Buffer, + _In_range_(>=,26) size_t _SizeInBytes, + _In_ __time64_t const* _Time + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1( + errno_t, _ctime64_s, + _Post_readable_size_(26) char, _Buffer, + _In_ __time64_t const*, _Time + ) + +_Check_return_ +_ACRTIMP double __cdecl _difftime32( + _In_ __time32_t _Time1, + _In_ __time32_t _Time2 + ); + +_Check_return_ +_ACRTIMP double __cdecl _difftime64( + _In_ __time64_t _Time1, + _In_ __time64_t _Time2 + ); + +_Success_(return != 0) +_Check_return_ _CRT_INSECURE_DEPRECATE(_gmtime32_s) +_ACRTIMP struct tm* __cdecl _gmtime32( + _In_ __time32_t const* _Time + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _gmtime32_s( + _Out_ struct tm* _Tm, + _In_ __time32_t const* _Time + ); + +_Success_(return != 0) +_Check_return_ _CRT_INSECURE_DEPRECATE(_gmtime64_s) +_ACRTIMP struct tm* __cdecl _gmtime64( + _In_ __time64_t const* _Time + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _gmtime64_s( + _Out_ struct tm* _Tm, + _In_ __time64_t const* _Time + ); + +_Success_(return != 0) +_Check_return_ _CRT_INSECURE_DEPRECATE(_localtime32_s) +_ACRTIMP struct tm* __cdecl _localtime32( + _In_ __time32_t const* _Time + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _localtime32_s( + _Out_ struct tm* _Tm, + _In_ __time32_t const* _Time + ); + +_Success_(return != 0) +_Check_return_ _CRT_INSECURE_DEPRECATE(_localtime64_s) +_ACRTIMP struct tm* __cdecl _localtime64( + _In_ __time64_t const* _Time + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _localtime64_s( + _Out_ struct tm* _Tm, + _In_ __time64_t const* _Time + ); + +_Check_return_ +_ACRTIMP __time32_t __cdecl _mkgmtime32( + _Inout_ struct tm* _Tm + ); + +_Check_return_ +_ACRTIMP __time64_t __cdecl _mkgmtime64( + _Inout_ struct tm* _Tm + ); + +_Check_return_opt_ +_ACRTIMP __time32_t __cdecl _mktime32( + _Inout_ struct tm* _Tm + ); + +_Check_return_opt_ +_ACRTIMP __time64_t __cdecl _mktime64( + _Inout_ struct tm* _Tm + ); + +_Success_(return > 0) +_Check_return_wat_ +_ACRTIMP size_t __cdecl strftime( + _Out_writes_z_(_SizeInBytes) char* _Buffer, + _In_ size_t _SizeInBytes, + _In_z_ _Printf_format_string_ char const* _Format, + _In_ struct tm const* _Tm + ); + +_Success_(return > 0) +_Check_return_wat_ +_ACRTIMP size_t __cdecl _strftime_l( + _Out_writes_z_(_MaxSize) char* _Buffer, + _In_ size_t _MaxSize, + _In_z_ _Printf_format_string_ char const* _Format, + _In_ struct tm const* _Tm, + _In_opt_ _locale_t _Locale + ); + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _strdate_s( + _Out_writes_(_SizeInBytes) _When_(_SizeInBytes >=9, _Post_readable_size_(9)) char* _Buffer, + _In_ size_t _SizeInBytes + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _strdate_s, + _Post_readable_size_(9) char, _Buffer + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + _Success_(return != 0) char*, __RETURN_POLICY_DST, _ACRTIMP, _strdate, + _Out_writes_z_(9), char, _Buffer + ) + +_Check_return_wat_ +_ACRTIMP errno_t __cdecl _strtime_s( + _Out_writes_(_SizeInBytes) _When_(_SizeInBytes >=9, _Post_readable_size_(9)) char* _Buffer, + _In_ size_t _SizeInBytes + ); + +__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0( + errno_t, _strtime_s, + _Post_readable_size_(9) char, _Buffer + ) + +__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0( + char*, __RETURN_POLICY_DST, _ACRTIMP, _strtime, + _Out_writes_z_(9), char, _Buffer + ) + +_ACRTIMP __time32_t __cdecl _time32( + _Out_opt_ __time32_t* _Time + ); + +_ACRTIMP __time64_t __cdecl _time64( + _Out_opt_ __time64_t* _Time + ); + +_Success_(return != 0) +_Check_return_ +_ACRTIMP int __cdecl _timespec32_get( + _Out_ struct _timespec32* _Ts, + _In_ int _Base + ); + +_Success_(return != 0) +_Check_return_ +_ACRTIMP int __cdecl _timespec64_get( + _Out_ struct _timespec64* _Ts, + _In_ int _Base + ); + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// DesktopCRT Time Functions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + + _ACRTIMP void __cdecl _tzset(void); + + // The Win32 API GetLocalTime and SetLocalTime should be used instead. + _CRT_OBSOLETE(GetLocalTime) + _DCRTIMP unsigned __cdecl _getsystime( + _Out_ struct tm* _Tm + ); + + _CRT_OBSOLETE(SetLocalTime) + _DCRTIMP unsigned __cdecl _setsystime( + _In_ struct tm* _Tm, + _In_ unsigned _Milliseconds + ); + +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Inline Function Definitions +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if !defined RC_INVOKED && !defined __midl && !defined _INC_TIME_INL && !defined _CRT_NO_TIME_T + + #ifdef _USE_32BIT_TIME_T + + _Check_return_ _CRT_INSECURE_DEPRECATE(ctime_s) + _CRT_NONSTANDARD_STATIC __inline char* __CRTDECL ctime( + _In_ time_t const* const _Time + ) + { + return _ctime32(_Time); + } + + _Check_return_ + _CRT_NONSTANDARD_STATIC __inline double __CRTDECL difftime( + _In_ time_t const _Time1, + _In_ time_t const _Time2 + ) + { + return _difftime32(_Time1, _Time2); + } + + _Check_return_ _CRT_INSECURE_DEPRECATE(gmtime_s) + _CRT_NONSTANDARD_STATIC __inline struct tm* __CRTDECL gmtime( + _In_ time_t const* const _Time + ) + { + return _gmtime32(_Time); + } + + _Check_return_ _CRT_INSECURE_DEPRECATE(localtime_s) + _CRT_NONSTANDARD_STATIC __inline struct tm* __CRTDECL localtime( + _In_ time_t const* const _Time + ) + { + return _localtime32(_Time); + } + + _Check_return_ + _CRT_NONSTANDARD_STATIC __inline time_t __CRTDECL _mkgmtime( + _Inout_ struct tm* const _Tm + ) + { + return _mkgmtime32(_Tm); + } + + _Check_return_opt_ + _CRT_NONSTANDARD_STATIC __inline time_t __CRTDECL mktime( + _Inout_ struct tm* const _Tm + ) + { + return _mktime32(_Tm); + } + + _CRT_NONSTANDARD_STATIC __inline time_t __CRTDECL time( + _Out_opt_ time_t* const _Time + ) + { + return _time32(_Time); + } + + _Check_return_ + _CRT_NONSTANDARD_STATIC __inline int __CRTDECL timespec_get( + _Out_ struct timespec* const _Ts, + _In_ int const _Base + ) + { + return _timespec32_get((struct _timespec32*)_Ts, _Base); + } + + #if __STDC_WANT_SECURE_LIB__ + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline errno_t __CRTDECL ctime_s( + _Out_writes_(_SizeInBytes) _Post_readable_size_(26) char* const _Buffer, + _In_range_(>=,26) size_t const _SizeInBytes, + _In_ time_t const* const _Time + ) + { + return _ctime32_s(_Buffer, _SizeInBytes, _Time); + } + + #if _CRT_USE_CONFORMING_ANNEX_K_TIME + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline struct tm* __CRTDECL gmtime_s( + _In_ time_t const* const _Time, + _Out_ struct tm* const _Tm + ) + { + if (_gmtime32_s(_Tm, _Time) == 0) + { + return _Tm; + } + return NULL; + } + + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline struct tm* __CRTDECL localtime_s( + _In_ time_t const* const _Time, + _Out_ struct tm* const _Tm + ) + { + if (_localtime32_s(_Tm, _Time) == 0) + { + return _Tm; + } + return NULL; + } + #else // _CRT_USE_CONFORMING_ANNEX_K_TIME + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline errno_t __CRTDECL gmtime_s( + _Out_ struct tm* const _Tm, + _In_ time_t const* const _Time + ) + { + return _gmtime32_s(_Tm, _Time); + } + + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline errno_t __CRTDECL localtime_s( + _Out_ struct tm* const _Tm, + _In_ time_t const* const _Time + ) + { + return _localtime32_s(_Tm, _Time); + } + #endif // _CRT_USE_CONFORMING_ANNEX_K_TIME + #endif + + #else // ^^^ _USE_32BIT_TIME_T ^^^ // vvv !_USE_32BIT_TIME_T vvv + + _Check_return_ _CRT_INSECURE_DEPRECATE(ctime_s) + _CRT_NONSTANDARD_STATIC __inline char* __CRTDECL ctime( + _In_ time_t const* const _Time + ) + { + return _ctime64(_Time); + } + + _Check_return_ + _CRT_NONSTANDARD_STATIC __inline double __CRTDECL difftime( + _In_ time_t const _Time1, + _In_ time_t const _Time2 + ) + { + return _difftime64(_Time1, _Time2); + } + + _Check_return_ _CRT_INSECURE_DEPRECATE(gmtime_s) + _CRT_NONSTANDARD_STATIC __inline struct tm* __CRTDECL gmtime( + _In_ time_t const* const _Time) + { + return _gmtime64(_Time); + } + + _CRT_INSECURE_DEPRECATE(localtime_s) + _CRT_NONSTANDARD_STATIC __inline struct tm* __CRTDECL localtime( + _In_ time_t const* const _Time + ) + { + return _localtime64(_Time); + } + + _Check_return_ + _CRT_NONSTANDARD_STATIC __inline time_t __CRTDECL _mkgmtime( + _Inout_ struct tm* const _Tm + ) + { + return _mkgmtime64(_Tm); + } + + _Check_return_opt_ + _CRT_NONSTANDARD_STATIC __inline time_t __CRTDECL mktime( + _Inout_ struct tm* const _Tm + ) + { + return _mktime64(_Tm); + } + + _CRT_NONSTANDARD_STATIC __inline time_t __CRTDECL time( + _Out_opt_ time_t* const _Time + ) + { + return _time64(_Time); + } + + _Check_return_ + _CRT_NONSTANDARD_STATIC __inline int __CRTDECL timespec_get( + _Out_ struct timespec* const _Ts, + _In_ int const _Base + ) + { + return _timespec64_get((struct _timespec64*)_Ts, _Base); + } + + #if __STDC_WANT_SECURE_LIB__ + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline errno_t __CRTDECL ctime_s( + _Out_writes_(_SizeInBytes) _Post_readable_size_(26) char* const _Buffer, + _In_range_(>=,26) size_t const _SizeInBytes, + _In_ time_t const* const _Time + ) + { + return _ctime64_s(_Buffer, _SizeInBytes, _Time); + } + + #if _CRT_USE_CONFORMING_ANNEX_K_TIME + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline struct tm* __CRTDECL gmtime_s( + _In_ time_t const* const _Time, + _Out_ struct tm* const _Tm + ) + { + if (_gmtime64_s(_Tm, _Time) == 0) + { + return _Tm; + } + return NULL; + } + + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline struct tm* __CRTDECL localtime_s( + _In_ time_t const* const _Time, + _Out_ struct tm* const _Tm + ) + { + if (_localtime64_s(_Tm, _Time) == 0) + { + return _Tm; + } + return NULL; + } + #else // _CRT_USE_CONFORMING_ANNEX_K_TIME + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline errno_t __CRTDECL gmtime_s( + _Out_ struct tm* const _Tm, + _In_ time_t const* const _Time + ) + { + return _gmtime64_s(_Tm, _Time); + } + + _Check_return_wat_ + _CRT_NONSTANDARD_STATIC __inline errno_t __CRTDECL localtime_s( + _Out_ struct tm* const _Tm, + _In_ time_t const* const _Time + ) + { + return _localtime64_s(_Tm, _Time); + } + #endif // _CRT_USE_CONFORMING_ANNEX_K_TIME + #endif + + #endif // !_USE_32BIT_TIME_T + +#endif + + + +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// Non-ANSI Names for Compatibility +// +//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +#if defined(_CRT_INTERNAL_NONSTDC_NAMES) && _CRT_INTERNAL_NONSTDC_NAMES + + #define CLK_TCK CLOCKS_PER_SEC + + #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP + _CRT_NONSTDC_DEPRECATE(_tzset) _ACRTIMP void __cdecl tzset(void); + #endif + +#endif // _CRT_INTERNAL_NONSTDC_NAMES + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_TIME diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/uchar.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/uchar.h new file mode 100644 index 0000000000000000000000000000000000000000..e87dc5c02dc69d2fdc94c8b8f3eedf2d91f30fed --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/uchar.h @@ -0,0 +1,50 @@ +// +// uchar.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +#pragma once +#ifndef _UCHAR // include guard for 3rd party interop +#define _UCHAR + +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + +#ifndef __STDC_UTF_16__ + #define __STDC_UTF_16__ 1 +#endif + +#ifndef __STDC_UTF_32__ + #define __STDC_UTF_32__ 1 +#endif + +typedef unsigned short _Char16_t; +typedef unsigned int _Char32_t; + +#if !defined __cplusplus || (defined _MSC_VER && _MSC_VER < 1900) + typedef unsigned short char16_t; + typedef unsigned int char32_t; +#endif + + +_Check_return_ _ACRTIMP size_t __cdecl mbrtoc16(_Out_opt_ char16_t *_Pc16, _In_reads_or_z_opt_(_N) const char *_S, _In_ size_t _N, _Inout_ mbstate_t *_Ps); +_Check_return_ _ACRTIMP size_t __cdecl c16rtomb(_Out_writes_opt_(4) char *_S, _In_ char16_t _C16, _Inout_ mbstate_t *_Ps); + +_Check_return_ _ACRTIMP size_t __cdecl mbrtoc32(_Out_opt_ char32_t *_Pc32, _In_reads_or_z_opt_(_N) const char *_S, _In_ size_t _N, _Inout_ mbstate_t *_Ps); +_Check_return_ _ACRTIMP size_t __cdecl c32rtomb(_Out_writes_opt_(4) char *_S, _In_ char32_t _C32, _Inout_ mbstate_t *_Ps); + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS + +/* + * Copyright (c) 1992-2013 by P.J. Plauger. ALL RIGHTS RESERVED. + * Consult your license regarding permissions and restrictions. + V6.40:0009 */ + #endif // _UCHAR diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/wchar.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/wchar.h new file mode 100644 index 0000000000000000000000000000000000000000..28308fa3e0e46277c0aad7a088d6a535a36757a6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/wchar.h @@ -0,0 +1,544 @@ +// +// wchar.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// All of the types, macros, and function declarations for all wide-character +// related functionality. Most of the functionality is in the #included +// headers, which are also #included by other public headers. +// +#pragma once +#ifndef _INC_WCHAR // include guard for 3rd party interop +#define _INC_WCHAR + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#if !defined(_M_CEE) +#include +#if defined(__clang__) && (defined(_M_ARM64) || defined(_M_ARM64EC)) +#include +#endif +#endif + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +#define WCHAR_MIN 0x0000 +#define WCHAR_MAX 0xffff + + + +typedef wchar_t _Wint_t; + + + +#if _CRT_FUNCTIONS_REQUIRED + + _Check_return_opt_ _Success_(return != 0) _Ret_z_ + _ACRTIMP wchar_t* __cdecl _wsetlocale( + _In_ int _Category, + _In_opt_z_ wchar_t const* _Locale + ); + + _Check_return_opt_ + _ACRTIMP _locale_t __cdecl _wcreate_locale( + _In_ int _Category, + _In_z_ wchar_t const* _Locale + ); + + + + _ACRTIMP wint_t __cdecl btowc( + _In_ int _Ch + ); + + _ACRTIMP size_t __cdecl mbrlen( + _In_reads_bytes_opt_(_SizeInBytes) _Pre_opt_z_ char const* _Ch, + _In_ size_t _SizeInBytes, + _Inout_ mbstate_t* _State + ); + + _ACRTIMP size_t __cdecl mbrtowc( + _Pre_maybenull_ _Post_z_ wchar_t* _DstCh, + _In_reads_bytes_opt_(_SizeInBytes) _Pre_opt_z_ char const* _SrcCh, + _In_ size_t _SizeInBytes, + _Inout_ mbstate_t* _State + ); + + _Success_(return == 0) + _ACRTIMP errno_t __cdecl mbsrtowcs_s( + _Out_opt_ size_t* _Retval, + _Out_writes_opt_z_(_Size) wchar_t* _Dst, + _In_ size_t _Size, + _Deref_pre_opt_z_ char const** _PSrc, + _In_ size_t _N, + _Inout_ mbstate_t* _State + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_3( + _Success_(return == 0) + errno_t, mbsrtowcs_s, + _Out_opt_ size_t*, _Retval, + _Post_z_ wchar_t, _Dest, + _Inout_ _Deref_prepost_opt_valid_ char const**, _PSource, + _In_ size_t, _Count, + _Inout_ mbstate_t*, _State + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE( + _Success_(return == 0) _ACRTIMP, mbsrtowcs, + _Out_writes_opt_z_(_Count), wchar_t, _Dest, + _Deref_pre_opt_z_ char const**, _PSrc, + _In_ size_t, _Count, + _Inout_ mbstate_t*, _State + ) + + _Success_(return == 0) + _ACRTIMP errno_t __cdecl wcrtomb_s( + _Out_opt_ size_t* _Retval, + _Out_writes_opt_z_(_SizeInBytes) char* _Dst, + _In_ size_t _SizeInBytes, + _In_ wchar_t _Ch, + _Inout_opt_ mbstate_t* _State + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_2( + _Success_(return == 0) + errno_t, wcrtomb_s, + _Out_opt_ size_t*, _Retval, + _Out_writes_opt_z_(_Size) char, _Dest, + _In_ wchar_t, _Source, + _Inout_opt_ mbstate_t*, _State + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_2_SIZE( + _ACRTIMP, wcrtomb, + _Pre_maybenull_ _Post_z_, char, _Dest, + _In_ wchar_t, _Source, + _Inout_opt_ mbstate_t*, _State + ) + + _Success_(return == 0) + _ACRTIMP errno_t __cdecl wcsrtombs_s( + _Out_opt_ size_t* _Retval, + _Out_writes_bytes_to_opt_(_SizeInBytes, *_Retval) char* _Dst, + _In_ size_t _SizeInBytes, + _Inout_ _Deref_prepost_z_ wchar_t const** _Src, + _In_ size_t _Size, + _Inout_opt_ mbstate_t* _State + ); + + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_1_3( + _Success_(return == 0) + errno_t, wcsrtombs_s, + _Out_opt_ size_t*, _Retval, + _Out_writes_opt_z_(_Size) char, _Dest, + _Inout_ _Deref_prepost_z_ wchar_t const**, _PSrc, + _In_ size_t, _Count, + _Inout_opt_ mbstate_t*, _State + ) + + __DEFINE_CPP_OVERLOAD_STANDARD_NFUNC_0_3_SIZE( + _ACRTIMP, wcsrtombs, + _Pre_maybenull_ _Post_z_, char, _Dest, + _Inout_ _Deref_prepost_z_ wchar_t const**, _PSource, + _In_ size_t, _Count, + _Inout_opt_ mbstate_t*, _State + ) + + _ACRTIMP int __cdecl wctob( + _In_ wint_t _WCh + ); + + #if __STDC_WANT_SECURE_LIB__ + + _Success_(return == 0) + errno_t __CRTDECL wmemcpy_s( + _Out_writes_to_opt_(_N1, _N) wchar_t* _S1, + _In_ rsize_t _N1, + _In_reads_opt_(_N) wchar_t const* _S2, + _In_ rsize_t _N + ); + + _Success_(return == 0) + errno_t __CRTDECL wmemmove_s( + _Out_writes_to_opt_(_N1, _N) wchar_t* _S1, + _In_ rsize_t _N1, + _In_reads_opt_(_N) wchar_t const* _S2, + _In_ rsize_t _N + ); + + #endif // __STDC_WANT_SECURE_LIB__ + + __inline int __CRTDECL fwide( + _In_opt_ FILE* _F, + _In_ int _M + ) + { + _CRT_UNUSED(_F); + return (_M); + } + + __inline int __CRTDECL mbsinit( + _In_opt_ mbstate_t const* _P + ) + { + return _P == NULL || _P->_Wchar == 0; + } + + #if !defined(_M_CEE) + #if (defined(_M_IX86) && !defined(_M_HYBRID_X86_ARM64)) || (defined(_M_X64) && !defined(_M_ARM64EC)) + extern int _Avx2WmemEnabled; + __declspec(selectany) int _Avx2WmemEnabledWeakValue = 0; + #if defined(_M_IX86) + #pragma comment(linker, "/alternatename:__Avx2WmemEnabled=__Avx2WmemEnabledWeakValue") + #else + #pragma comment(linker, "/alternatename:_Avx2WmemEnabled=_Avx2WmemEnabledWeakValue") + #endif + #endif + #endif + + __inline wchar_t _CONST_RETURN* __CRTDECL wmemchr( + _In_reads_(_N) wchar_t const* _S, + _In_ wchar_t _C, + _In_ size_t _N + ) + { + size_t __count = 0; + + #if !defined(_M_CEE) + #if defined(_M_ARM64) || defined(_M_ARM64EC) || defined(_M_HYBRID_X86_ARM64) + + unsigned long __index = 0; + wchar_t const* __s = _S; + + if (_N >= 4) + { + uint16x8_t __v2 = vdupq_n_u16(_C); + + while (__count + 8 <= _N) + { + uint16x8_t __v1 = vreinterpretq_u16_u8(vld1q_u8((unsigned char const *)__s)); + __v1 = vceqq_u16(__v1, __v2); + unsigned __int64 __mask = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(__v1, 4)), 0); + if (__mask != 0) + { + _BitScanForward64(&__index, __mask); + __index >>= 3; + return (wchar_t _CONST_RETURN*)&_S[__count + __index]; + } + + __count += 8; + __s += 8; + } + + if (__count + 4 <= _N) + { + uint16x8_t __v1 = vreinterpretq_u16_u64(vdupq_lane_u64(vreinterpret_u64_u8(vld1_u8((unsigned char const *)__s)), 0)); + __v1 = vceqq_u16(__v1, __v2); + unsigned int __mask = vget_lane_u32(vreinterpret_u32_u8(vshrn_n_u16(__v1, 4)), 0); + if (__mask != 0) + { + _BitScanForward(&__index, __mask); + __index >>= 3; + return (wchar_t _CONST_RETURN*)&_S[__count + __index]; + } + + __count += 4; + } + } + + #elif (defined(_M_IX86) && _M_IX86_FP >= 2) || defined(_M_X64) + + unsigned long __index = 0; + wchar_t const* __s = _S; + + #if !defined(__clang__) || defined(__AVX2__) + if (_Avx2WmemEnabled && _N >= 16) + { + __m256i __v2 = _mm256_broadcastw_epi16(_mm_cvtsi32_si128(_C)); + + do + { + __m256i __v1 = _mm256_loadu_si256((__m256i const*)__s); + __v1 = _mm256_cmpeq_epi16(__v1, __v2); + unsigned int __mask = (unsigned int)_mm256_movemask_epi8(__v1); + if (__mask != 0) + { + _BitScanForward(&__index, __mask); + __index >>= 1; + return (wchar_t _CONST_RETURN*)&_S[__count + __index]; + } + __count += 16; + __s += 16; + } while (__count + 16 <= _N); + } + #endif + + if (__count + 4 <= _N) + { + __m128i __v2 = _mm_set1_epi16((short)_C); + + while (__count + 8 <= _N) + { + __m128i __v1 = _mm_loadu_si128((__m128i const*)__s); + __v1 = _mm_cmpeq_epi16(__v1, __v2); + unsigned short __mask = (unsigned short)_mm_movemask_epi8(__v1); + if (__mask != 0) + { + _BitScanForward(&__index, __mask); + __index >>= 1; + return (wchar_t _CONST_RETURN*)&_S[__count + __index]; + } + __count += 8; + __s += 8; + } + + if (__count + 4 <= _N) + { + __m128i __v1 = _mm_loadu_si64(__s); + __v1 = _mm_cmpeq_epi16(__v1, __v2); + unsigned char __mask = (unsigned char)_mm_movemask_epi8(__v1); + if (__mask != 0) + { + _BitScanForward(&__index, __mask); + __index >>= 1; + return (wchar_t _CONST_RETURN*)&_S[__count + __index]; + } + + __count += 4; + } + } + + #endif // (defined(_M_IX86) && _M_IX86_FP >= 2) || defined(_M_X64) + #endif // !defined(_M_CEE) + + for (; __count < _N; ++__count) + { + if (_S[__count] == _C) + { + return (wchar_t _CONST_RETURN*)&_S[__count]; + } + } + + return NULL; + } + + __inline int __CRTDECL wmemcmp( + _In_reads_(_N) wchar_t const* _S1, + _In_reads_(_N) wchar_t const* _S2, + _In_ size_t _N + ) + { + size_t __count = 0; + + #if !defined(_M_CEE) + #if defined(_M_ARM64) || defined(_M_ARM64EC) || defined(_M_HYBRID_X86_ARM64) + + unsigned long __index = 0; + wchar_t const* __s1 = _S1; + wchar_t const* __s2 = _S2; + + while (__count + 8 <= _N) + { + uint16x8_t __v1 = vreinterpretq_u16_u8(vld1q_u8((unsigned char const *)__s1)); + uint16x8_t __v2 = vreinterpretq_u16_u8(vld1q_u8((unsigned char const *)__s2)); + __v1 = vceqq_u16(__v1, __v2); + unsigned __int64 __mask = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(__v1, 4)), 0); + __mask = ~__mask; + if (__mask != 0) + { + _BitScanForward64(&__index, __mask); + __index >>= 3; + return _S1[__count + __index] < _S2[__count + __index] ? -1 : 1; + } + + __count += 8; + __s1 += 8; + __s2 += 8; + } + + if (__count + 4 <= _N) + { + uint16x4_t __v1 = vreinterpret_u16_u8(vld1_u8((unsigned char const *)__s1)); + uint16x4_t __v2 = vreinterpret_u16_u8(vld1_u8((unsigned char const *)__s2)); + __v1 = veor_u16(__v1, __v2); + unsigned __int64 __mask = vget_lane_u64(vreinterpret_u64_u16(__v1), 0); + if (__mask != 0) + { + _BitScanForward64(&__index, __mask); + __index >>= 4; + return _S1[__count + __index] < _S2[__count + __index] ? -1 : 1; + } + + __count += 4; + } + + #elif (defined(_M_IX86) && _M_IX86_FP >= 2) || defined(_M_X64) + + unsigned long __index = 0; + wchar_t const* __s1 = _S1; + wchar_t const* __s2 = _S2; + + #if !defined(__clang__) || defined(__AVX2__) + if (_Avx2WmemEnabled) + { + while (__count + 16 <= _N) + { + __m256i __v1 = _mm256_loadu_si256((__m256i const*)__s1); + __m256i __v2 = _mm256_loadu_si256((__m256i const*)__s2); + __v1 = _mm256_cmpeq_epi16(__v1, __v2); + unsigned int __mask = (unsigned int)_mm256_movemask_epi8(__v1); + if (__mask != 0xffffffff) + { + _BitScanForward(&__index, ~__mask); + __index >>= 1; + return _S1[__count + __index] < _S2[__count + __index] ? -1 : 1; + } + __count += 16; + __s1 += 16; + __s2 += 16; + } + } + #endif + + while (__count + 8 <= _N) + { + __m128i __v1 = _mm_loadu_si128((__m128i const*)__s1); + __m128i __v2 = _mm_loadu_si128((__m128i const*)__s2); + __v1 = _mm_cmpeq_epi16(__v1, __v2); + unsigned short __mask = (unsigned short)_mm_movemask_epi8(__v1); + if (__mask != 0xffff) + { + _BitScanForward(&__index, (unsigned long)~__mask); + __index >>= 1; + return _S1[__count + __index] < _S2[__count + __index] ? -1 : 1; + } + __count += 8; + __s1 += 8; + __s2 += 8; + } + + #if defined(_M_IX86) + if (__count + 4 <= _N) + { + __m128i __v1 = _mm_loadu_si64(__s1); + __m128i __v2 = _mm_loadu_si64(__s2); + __v1 = _mm_cmpeq_epi16(__v1, __v2); + unsigned char __mask = (unsigned char)_mm_movemask_epi8(__v1); + if (__mask != 0xff) + { + _BitScanForward(&__index, (unsigned long)~__mask); + __index >>= 1; + return _S1[__count + __index] < _S2[__count + __index] ? -1 : 1; + } + + __count += 4; + } + #else + if (__count + 4 <= _N) + { + unsigned __int64 __v1 = *(unsigned __int64*)__s1; + unsigned __int64 __v2 = *(unsigned __int64*)__s2; + if (__v1 != __v2) + { + _BitScanForward64(&__index, (__v1 ^ __v2)); + __index >>= 4; + return _S1[__count + __index] < _S2[__count + __index] ? -1 : 1; + } + + __count += 4; + } + #endif // defined(_M_IX86) + #endif // (defined(_M_IX86) && _M_IX86_FP >= 2) || defined(_M_X64) + #endif // !defined(_M_CEE) + + for (; __count < _N; ++__count) + { + if (_S1[__count] != _S2[__count]) + { + return _S1[__count] < _S2[__count] ? -1 : 1; + } + } + + return 0; + } + + _Post_equal_to_(_S1) + _At_buffer_(_S1, _Iter_, _N, _Post_satisfies_(_S1[_Iter_] == _S2[_Iter_])) + __inline _CRT_INSECURE_DEPRECATE_MEMORY(wmemcpy_s) + wchar_t* __CRTDECL wmemcpy( + _Out_writes_all_(_N) wchar_t* _S1, + _In_reads_(_N) wchar_t const* _S2, + _In_ size_t _N + ) + { + #pragma warning(suppress: 6386) // Buffer overrun + return (wchar_t*)memcpy(_S1, _S2, _N*sizeof(wchar_t)); + } + + __inline _CRT_INSECURE_DEPRECATE_MEMORY(wmemmove_s) + wchar_t* __CRTDECL wmemmove( + _Out_writes_all_opt_(_N) wchar_t* _S1, + _In_reads_opt_(_N) wchar_t const* _S2, + _In_ size_t _N + ) + { + #pragma warning(suppress: 6386) // Buffer overrun + return (wchar_t*)memmove(_S1, _S2, _N*sizeof(wchar_t)); + } + + _Post_equal_to_(_S) + _At_buffer_(_S, _Iter_, _N, _Post_satisfies_(_S[_Iter_] == _C)) + __inline wchar_t* __CRTDECL wmemset( + _Out_writes_all_(_N) wchar_t* _S, + _In_ wchar_t _C, + _In_ size_t _N + ) + { + wchar_t *_Su = _S; + for (; 0 < _N; ++_Su, --_N) + { + *_Su = _C; + } + return _S; + } + + #ifdef __cplusplus + + extern "C++" inline wchar_t* __CRTDECL wmemchr( + _In_reads_(_N) wchar_t* _S, + _In_ wchar_t _C, + _In_ size_t _N + ) + { + wchar_t const* const _SC = _S; + return const_cast(wmemchr(_SC, _C, _N)); + } + + #endif // __cplusplus + +#endif // _CRT_FUNCTIONS_REQUIRED + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_WCHAR diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/wctype.h b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/wctype.h new file mode 100644 index 0000000000000000000000000000000000000000..217a1c269fc02c0e01d533b0499ca54bdf9ddcb2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/ucrt/wctype.h @@ -0,0 +1,33 @@ +// +// stdio.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// The C Standard Library header. +// +#pragma once +#ifndef _INC_WCTYPE // include guard for 3rd party interop +#define _INC_WCTYPE + +#include +#include + +#pragma warning(push) +#pragma warning(disable: _UCRT_DISABLED_WARNINGS) +_UCRT_DISABLE_CLANG_WARNINGS + +_CRT_BEGIN_C_HEADER + + + +typedef wchar_t wctrans_t; +_ACRTIMP wint_t __cdecl towctrans(wint_t c, wctrans_t value); +_ACRTIMP wctrans_t __cdecl wctrans(const char *name); +_ACRTIMP wctype_t __cdecl wctype(const char *name); + + + +_CRT_END_C_HEADER +_UCRT_RESTORE_CLANG_WARNINGS +#pragma warning(pop) // _UCRT_DISABLED_WARNINGS +#endif // _INC_WCTYPE diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ADSIid.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ADSIid.h new file mode 100644 index 0000000000000000000000000000000000000000..9e1404e03606c11186f1f04b5c643f3144b27915 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ADSIid.h @@ -0,0 +1,155 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1996-1999 +// +// File: oledsiid.h +// +// Contents: extern references for ADs guids +// +//---------------------------------------------------------------------------- + +#ifndef __ADSIID_H__ +#define __ADSIID_H__ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// uuids from oledsiid.lib + +extern const GUID LIBID_ADs; + +extern const GUID IID_IADs; + +extern const GUID IID_IADsContainer; + +extern const GUID IID_IADsNamespaces; + + + +extern const GUID IID_IADsDomain; + +extern const GUID IID_IADsUser; + +extern const GUID IID_IADsComputerOperations; + +extern const GUID IID_IADsComputer; + + +extern const GUID IID_IADsGroup; + +extern const GUID IID_IADsMembers; + + + +extern const GUID IID_IADsPrintQueue; + +extern const GUID IID_IADsPrintQueueOperations; + + +extern const GUID IID_IADsPrintJobOperations; + +extern const GUID IID_IADsPrintJob; + +extern const GUID IID_IADsCollection; + + +extern const GUID IID_IADsServiceOperations; + +extern const GUID IID_IADsService; + + +extern const GUID IID_IADsFileServiceOperations; + +extern const GUID IID_IADsFileService; + + +extern const GUID IID_IADsResource; + +extern const GUID IID_IADsSession; + +extern const GUID IID_IADsFileShare; + +extern const GUID IID_IADsSchema; + +extern const GUID IID_IADsClass; + +extern const GUID IID_IADsProperty; + +extern const GUID IID_IADsSyntax; + + +extern const GUID IID_IADsLocality; + +extern const GUID IID_IADsO; + +extern const GUID IID_IADsOU; + +extern const GUID IID_IADsOpenDSObject; + +extern const GUID IID_IADsSearch; + +extern const GUID IID_IADsPropertyList; + + +extern const GUID IID_IDSObject; +extern const GUID IID_IDSSearch; +extern const GUID IID_IDSAttrMgmt; + +extern const GUID IID_IDirectorySearch; +extern const GUID IID_IDirectoryObject; +extern const GUID IID_IDirectoryAttrMgmt; + + +// +// Connection object GUIDs. +// +extern const GUID CLSID_LDAPConnectionObject; + +// +// CLSID for owning LDAP objects interfaces +// +extern const GUID CLSID_LDAPObject; + +// +// Query object for the LDAP Provider. +// +extern const GUID CLSID_UmiLDAPQueryObject; + +extern const GUID CLSID_WinNTConnectionObject; + +// Custom interface handling +extern const GUID CLSID_WinNTObject; + +// +// OLE DB Provider Guids +// + +extern const GUID CLSID_ADsDSOObject; + +extern const GUID DBGUID_LDAPDialect; + +extern const GUID DBPROPSET_ADSISEARCH; + +extern const GUID DBPROPSET_ADSIBIND; + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AF_Irda.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AF_Irda.h new file mode 100644 index 0000000000000000000000000000000000000000..1717dfd8bde4c7428042f5957f6cca6d5c206de8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AF_Irda.h @@ -0,0 +1,228 @@ +// +// Winsock1.1, IrDA1.1, WindowsNT5.0, Windows98 and WindowsCE1.0. +// Define one of _WIN32_WINNT, _WIN32_WINDOWS, _WIN32_WCE. +// Copyright (C) Microsoft Corporation, 1994-1999. +// + +#ifndef __AFIRDA__ +#define __AFIRDA__ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#if (NTDDI_VERSION >= NTDDI_WIN2K) + +#ifndef _WINSOCKAPI_ +typedef unsigned char u_char; +typedef unsigned short u_short; +typedef unsigned int u_int; +typedef unsigned long u_long; +#endif + +#define WINDOWS_AF_IRDA 26 +#define WINDOWS_PF_IRDA WINDOWS_AF_IRDA + +#define WCE_AF_IRDA 22 +#define WCE_PF_IRDA WCE_AF_IRDA + + + +#ifndef AF_IRDA +#define AF_IRDA WINDOWS_AF_IRDA +#endif +#define IRDA_PROTO_SOCK_STREAM 1 + + +#define PF_IRDA AF_IRDA + + // WINNT, WIN98, WINCE +#define SOL_IRLMP 0x00FF + +#define IRLMP_ENUMDEVICES 0x00000010 +#define IRLMP_IAS_SET 0x00000011 +#define IRLMP_IAS_QUERY 0x00000012 + + // WINNT, WINCE +#define IRLMP_SEND_PDU_LEN 0x00000013 +#define IRLMP_EXCLUSIVE_MODE 0x00000014 +#define IRLMP_IRLPT_MODE 0x00000015 +#define IRLMP_9WIRE_MODE 0x00000016 + + // WIN98 +#define IRLMP_TINYTP_MODE 0x00000017 +#define IRLMP_PARAMETERS 0x00000018 +#define IRLMP_DISCOVERY_MODE 0x00000019 + + // WINCE +#define IRLMP_SHARP_MODE 0x00000020 + +#define SIO_LAZY_DISCOVERY _IOR('t', 127, u_long) + +#define IAS_ATTRIB_NO_CLASS 0x00000010 +#define IAS_ATTRIB_NO_ATTRIB 0x00000000 +#define IAS_ATTRIB_INT 0x00000001 +#define IAS_ATTRIB_OCTETSEQ 0x00000002 +#define IAS_ATTRIB_STR 0x00000003 + +#define IAS_MAX_USER_STRING 256 +#define IAS_MAX_OCTET_STRING 1024 +#define IAS_MAX_CLASSNAME 64 +#define IAS_MAX_ATTRIBNAME 256 + + // WINNT, WIN98 +enum +{ + LM_HB_Extension = 128, // Any hint byte + + LM_HB1_PnP = 1, // First hint byte + LM_HB1_PDA_Palmtop = 2, + LM_HB1_Computer = 4, + LM_HB1_Printer = 8, + LM_HB1_Modem = 16, + LM_HB1_Fax = 32, + LM_HB1_LANAccess = 64, + + LM_HB2_Telephony = 1, // Second hint byte + LM_HB2_FileServer = 2, +}; + +#define LmCharSetASCII 0 +#define LmCharSetISO_8859_1 1 +#define LmCharSetISO_8859_2 2 +#define LmCharSetISO_8859_3 3 +#define LmCharSetISO_8859_4 4 +#define LmCharSetISO_8859_5 5 +#define LmCharSetISO_8859_6 6 +#define LmCharSetISO_8859_7 7 +#define LmCharSetISO_8859_8 8 +#define LmCharSetISO_8859_9 9 +#define LmCharSetUNICODE 0xff + + // WIN98 +typedef u_long LM_BAUD_RATE; + +#define LM_BAUD_1200 1200 +#define LM_BAUD_2400 2400 +#define LM_BAUD_9600 9600 +#define LM_BAUD_19200 19200 +#define LM_BAUD_38400 38400 +#define LM_BAUD_57600 57600 +#define LM_BAUD_115200 115200 +#define LM_BAUD_576K 576000 +#define LM_BAUD_1152K 1152000 +#define LM_BAUD_4M 4000000 +#define LM_BAUD_16M 16000000 + +typedef struct +{ + u_long nTXDataBytes; // Max tx data bytes per packet + u_long nRXDataBytes; // Max rx data bytes per packet + LM_BAUD_RATE nBaudRate; // Negotiated baud rate + u_long thresholdTime; // Threshold (ms) + u_long discTime; // Disconnect (ms) + u_short nMSLinkTurn; // Link turn around (ms) + u_char nTXPackets; // Number packets in transmit window + u_char nRXPackets; // Number packets in receive window +} LM_IRPARMS,*PLM_IRPARMS; + +typedef struct _SOCKADDR_IRDA +{ + u_short irdaAddressFamily; + u_char irdaDeviceID[4]; + char irdaServiceName[25]; +} SOCKADDR_IRDA, *PSOCKADDR_IRDA, FAR *LPSOCKADDR_IRDA; + +typedef struct _WINDOWS_IRDA_DEVICE_INFO +{ + u_char irdaDeviceID[4]; + char irdaDeviceName[22]; + u_char irdaDeviceHints1; + u_char irdaDeviceHints2; + u_char irdaCharSet; +} WINDOWS_IRDA_DEVICE_INFO, *PWINDOWS_IRDA_DEVICE_INFO, FAR *LPWINDOWS_IRDA_DEVICE_INFO; + +typedef struct _WCE_IRDA_DEVICE_INFO +{ + u_char irdaDeviceID[4]; + char irdaDeviceName[22]; + u_char Reserved[2]; +} WCE_IRDA_DEVICE_INFO, *PWCE_IRDA_DEVICE_INFO; + +typedef WINDOWS_IRDA_DEVICE_INFO IRDA_DEVICE_INFO, *PIRDA_DEVICE_INFO, FAR *LPIRDA_DEVICE_INFO; + +typedef struct _WINDOWS_DEVICELIST +{ + ULONG numDevice; + WINDOWS_IRDA_DEVICE_INFO Device[1]; +} WINDOWS_DEVICELIST, *PWINDOWS_DEVICELIST, FAR *LPWINDOWS_DEVICELIST; + +typedef struct _WCE_DEVICELIST +{ + ULONG numDevice; + WCE_IRDA_DEVICE_INFO Device[1]; +} WCE_DEVICELIST, *PWCE_DEVICELIST; + +typedef WINDOWS_DEVICELIST DEVICELIST, *PDEVICELIST, FAR *LPDEVICELIST; + +typedef struct _WINDOWS_IAS_SET +{ + char irdaClassName[IAS_MAX_CLASSNAME]; + char irdaAttribName[IAS_MAX_ATTRIBNAME]; + u_long irdaAttribType; + union + { + LONG irdaAttribInt; + struct + { + u_short Len; + u_char OctetSeq[IAS_MAX_OCTET_STRING]; + } irdaAttribOctetSeq; + struct + { + u_char Len; + u_char CharSet; + u_char UsrStr[IAS_MAX_USER_STRING]; + } irdaAttribUsrStr; + } irdaAttribute; +} WINDOWS_IAS_SET, *PWINDOWS_IAS_SET, FAR *LPWINDOWS_IAS_SET; + +typedef struct _WINDOWS_IAS_QUERY +{ + u_char irdaDeviceID[4]; + char irdaClassName[IAS_MAX_CLASSNAME]; + char irdaAttribName[IAS_MAX_ATTRIBNAME]; + u_long irdaAttribType; + union + { + LONG irdaAttribInt; + struct + { + u_long Len; + u_char OctetSeq[IAS_MAX_OCTET_STRING]; + } irdaAttribOctetSeq; + struct + { + u_long Len; + u_long CharSet; + u_char UsrStr[IAS_MAX_USER_STRING]; + } irdaAttribUsrStr; + } irdaAttribute; +} WINDOWS_IAS_QUERY, *PWINDOWS_IAS_QUERY, FAR *LPWINDOWS_IAS_QUERY; + + +typedef WINDOWS_IAS_SET IAS_SET, *PIAS_SET, FAR *LPIASSET; +typedef WINDOWS_IAS_QUERY IAS_QUERY, *PIAS_QUERY, FAR *LPIASQUERY; + +#endif //ntddi version + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __AFIRDA__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AccCtrl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AccCtrl.h new file mode 100644 index 0000000000000000000000000000000000000000..eacc2a2ee6b3c86235438793e6adc52f19392a44 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AccCtrl.h @@ -0,0 +1,816 @@ +/*+------------------------------------------------------------------- + + Microsoft Windows + Copyright (C) Microsoft Corporation, 1993-1998. + + File: accctrl.h + + Contents: common includes for new style Win32 Access Control + APIs + + +--------------------------------------------------------------------*/ +#ifndef __ACCESS_CONTROL__ +#define __ACCESS_CONTROL__ + +#ifndef __midl +#include +#endif + +#include + +#if (_MSC_VER >= 800) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif +#pragma warning(disable:4001) /* nonstandard extension : single line comment */ +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + + +#define AccFree LocalFree + +// +// Definition: +// This enumerated type defines the objects supported by the get/set API within +// this document. See section 3.1, Object Types for a detailed definition of the +// supported object types, and their name formats. +// +typedef enum _SE_OBJECT_TYPE +{ + SE_UNKNOWN_OBJECT_TYPE = 0, + SE_FILE_OBJECT, + SE_SERVICE, + SE_PRINTER, + SE_REGISTRY_KEY, + SE_LMSHARE, + SE_KERNEL_OBJECT, + SE_WINDOW_OBJECT, + SE_DS_OBJECT, + SE_DS_OBJECT_ALL, + SE_PROVIDER_DEFINED_OBJECT, + SE_WMIGUID_OBJECT, + SE_REGISTRY_WOW64_32KEY, + SE_REGISTRY_WOW64_64KEY, +} SE_OBJECT_TYPE; + +// +// Definition: TRUSTEE_TYPE +// This enumerated type specifies the type of trustee account for the trustee +// returned by the API described in this document. +// TRUSTEE_IS_UNKNOWN - The trustee is an unknown, but not necessarily invalid +// type. This field is not validated on input to the APIs +// that take Trustees. +// TRUSTEE_IS_USER The trustee account is a user account. +// TRUSTEE_IS_GROUP The trustee account is a group account. +// + +typedef enum _TRUSTEE_TYPE +{ + TRUSTEE_IS_UNKNOWN, + TRUSTEE_IS_USER, + TRUSTEE_IS_GROUP, + TRUSTEE_IS_DOMAIN, + TRUSTEE_IS_ALIAS, + TRUSTEE_IS_WELL_KNOWN_GROUP, + TRUSTEE_IS_DELETED, + TRUSTEE_IS_INVALID, + TRUSTEE_IS_COMPUTER +} TRUSTEE_TYPE; + + +// +// Definition: TRUSTEE_FORM +// This enumerated type specifies the form the trustee identifier is in for a +// particular trustee. +// TRUSTEE_IS_SID The trustee is identified with a SID rather than with a name. +// TRUSTEE_IS_NAME The trustee is identified with a name. +// + +typedef enum _TRUSTEE_FORM +{ + TRUSTEE_IS_SID, + TRUSTEE_IS_NAME, + TRUSTEE_BAD_FORM, + TRUSTEE_IS_OBJECTS_AND_SID, + TRUSTEE_IS_OBJECTS_AND_NAME +} TRUSTEE_FORM; + + +// +// Definition: MULTIPLE_TRUSTEE_OPERATION +// If the trustee is a multiple trustee, this enumerated type specifies the type. +// TRUSTEE_IS_IMPERSONATE The trustee is an impersonate trustee and the multiple +// trustee field in the trustee points to another trustee +// that is a trustee for the server that will be doing the +// impersonation. +// + +typedef enum _MULTIPLE_TRUSTEE_OPERATION +{ + NO_MULTIPLE_TRUSTEE, + TRUSTEE_IS_IMPERSONATE, +} MULTIPLE_TRUSTEE_OPERATION; + + +typedef struct _OBJECTS_AND_SID +{ + DWORD ObjectsPresent; + GUID ObjectTypeGuid; + GUID InheritedObjectTypeGuid; + SID * pSid; +} OBJECTS_AND_SID, *POBJECTS_AND_SID; + +typedef struct _OBJECTS_AND_NAME_A +{ + DWORD ObjectsPresent; + SE_OBJECT_TYPE ObjectType; + LPSTR ObjectTypeName; + LPSTR InheritedObjectTypeName; + LPSTR ptstrName; +} OBJECTS_AND_NAME_A, *POBJECTS_AND_NAME_A; +typedef struct _OBJECTS_AND_NAME_W +{ + DWORD ObjectsPresent; + SE_OBJECT_TYPE ObjectType; + LPWSTR ObjectTypeName; + LPWSTR InheritedObjectTypeName; + LPWSTR ptstrName; +} OBJECTS_AND_NAME_W, *POBJECTS_AND_NAME_W; +#ifdef UNICODE +typedef OBJECTS_AND_NAME_W OBJECTS_AND_NAME_; +typedef POBJECTS_AND_NAME_W POBJECTS_AND_NAME_; +#else +typedef OBJECTS_AND_NAME_A OBJECTS_AND_NAME_; +typedef POBJECTS_AND_NAME_A POBJECTS_AND_NAME_; +#endif // UNICODE + +// +// Definition: TRUSTEE +// This structure is used to pass account information into and out of the system +// using the API defined in this document. +// PMultipleTrustee - if NON-NULL, points to another trustee structure, as +// defined by the multiple trustee operation field. +// MultipleTrusteeOperation - Defines the multiple trustee operation/type. +// TrusteeForm - defines if the trustee is defined by name or SID. +// TrusteeType - defines if the trustee type is unknown, a user or a group. +// PwcsName - points to the trustee name or the trustee SID. +// + +typedef struct _TRUSTEE_A +{ + struct _TRUSTEE_A *pMultipleTrustee; + MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation; + TRUSTEE_FORM TrusteeForm; + TRUSTEE_TYPE TrusteeType; +#ifdef __midl + [switch_is(TrusteeForm)] + union + { + [case(TRUSTEE_IS_NAME)] + LPSTR ptstrName; + [case(TRUSTEE_IS_SID)] + SID *pSid; + [case(TRUSTEE_IS_OBJECTS_AND_SID)] + OBJECTS_AND_SID *pObjectsAndSid; + [case(TRUSTEE_IS_OBJECTS_AND_NAME)] + OBJECTS_AND_NAME_A *pObjectsAndName; + }; +#else + // This member is not null-terminated as it may be used to hold strings, which are null-terminated or + // SIDs, which are not null-terminated. + LPCH ptstrName; +#endif +} TRUSTEE_A, *PTRUSTEE_A, TRUSTEEA, *PTRUSTEEA; +typedef struct _TRUSTEE_W +{ + struct _TRUSTEE_W *pMultipleTrustee; + MULTIPLE_TRUSTEE_OPERATION MultipleTrusteeOperation; + TRUSTEE_FORM TrusteeForm; + TRUSTEE_TYPE TrusteeType; +#ifdef __midl + [switch_is(TrusteeForm)] + union + { + [case(TRUSTEE_IS_NAME)] + LPWSTR ptstrName; + [case(TRUSTEE_IS_SID)] + SID *pSid; + [case(TRUSTEE_IS_OBJECTS_AND_SID)] + OBJECTS_AND_SID *pObjectsAndSid; + [case(TRUSTEE_IS_OBJECTS_AND_NAME)] + OBJECTS_AND_NAME_W *pObjectsAndName; + }; +#else + // This member is not null-terminated as it may be used to hold strings, which are null-terminated or + // SID, which are not null-terminated. + LPWCH ptstrName; +#endif +} TRUSTEE_W, *PTRUSTEE_W, TRUSTEEW, *PTRUSTEEW; +#ifdef UNICODE +typedef TRUSTEE_W TRUSTEE_; +typedef PTRUSTEE_W PTRUSTEE_; +typedef TRUSTEEW TRUSTEE; +typedef PTRUSTEEW PTRUSTEE; +#else +typedef TRUSTEE_A TRUSTEE_; +typedef PTRUSTEE_A PTRUSTEE_; +typedef TRUSTEEA TRUSTEE; +typedef PTRUSTEEA PTRUSTEE; +#endif // UNICODE + +// +// Definition: ACCESS_MODE +// This enumerated type specifies how permissions are (requested)/to be applied +// for the trustee by the access control entry. On input this field can by any +// of the values, although it is not meaningful to mix access control and audit +// control entries. On output this field will be either SET_ACCESS, DENY_ACCESS, +// SET_AUDIT_SUCCESS, SET_AUDIT_FAILURE. +// The following descriptions define how this type effects an explicit access +// request to apply access permissions to an object. +// GRANT_ACCESS - The trustee will have at least the requested permissions upon +// successful completion of the command. (If the trustee has +// additional permissions they will not be removed). +// SET_ACCESS - The trustee will have exactly the requested permissions upon +// successful completion of the command. +// DENY_ACCESS - The trustee will be denied the specified permissions. +// REVOKE_ACCESS - Any explicit access rights the trustee has will be revoked. +// SET_AUDIT_SUCCESS - The trustee will be audited for successful opens of the +// object using the requested permissions. +// SET_AUDIT_FAILURE - The trustee will be audited for failed opens of the object +// using the requested permissions. +// + +typedef enum _ACCESS_MODE +{ + NOT_USED_ACCESS = 0, + GRANT_ACCESS, + SET_ACCESS, + DENY_ACCESS, + REVOKE_ACCESS, + SET_AUDIT_SUCCESS, + SET_AUDIT_FAILURE +} ACCESS_MODE; + +// +// Definition: Inheritance flags +// These bit masks are provided to allow simple application of inheritance in +// explicit access requests on containers. +// NO_INHERITANCE The specific access permissions will only be applied to +// the container, and will not be inherited by objects created +// within the container. +// SUB_CONTAINERS_ONLY_INHERIT The specific access permissions will be inherited +// and applied to sub containers created within the +// container, and will be applied to the container +// itself. +// SUB_OBJECTS_ONLY_INHERIT The specific access permissions will only be inherited +// by objects created within the specific container. +// The access permissions will not be applied to the +// container itself. +// SUB_CONTAINERS_AND_OBJECTS_INHERIT The specific access permissions will be +// inherited by containers created within the +// specific container, will be applied to +// objects created within the container, but +// will not be applied to the container itself. +// +#define NO_INHERITANCE 0x0 +#define SUB_OBJECTS_ONLY_INHERIT 0x1 +#define SUB_CONTAINERS_ONLY_INHERIT 0x2 +#define SUB_CONTAINERS_AND_OBJECTS_INHERIT 0x3 +#define INHERIT_NO_PROPAGATE 0x4 +#define INHERIT_ONLY 0x8 + +// +// Informational bit that is returned +// +#define INHERITED_ACCESS_ENTRY 0x10 + +// +// Informational bit that tells where a node was inherited from. Valid only +// for NT 5 APIs +// +#define INHERITED_PARENT 0x10000000 +#define INHERITED_GRANDPARENT 0x20000000 + + +// +// Definition: EXPLICIT_ACCESS +// This structure is used to pass access control entry information into and out +// of the system using the API defined in this document. +// grfAccessPermissions - This contains the access permissions to assign for the +// trustee. It is in the form of an NT access mask. +// grfAccessMode - This field defines how the permissions are to be applied for +// the trustee. +// grfInheritance - For containers, this field defines how the access control +// entry is/(is requested) to be inherited on +// objects/sub-containers created within the container. +// Trustee - This field contains the definition of the trustee account the +// explicit access applies to. +// + +typedef struct _EXPLICIT_ACCESS_A +{ + DWORD grfAccessPermissions; + ACCESS_MODE grfAccessMode; + DWORD grfInheritance; + TRUSTEE_A Trustee; +} EXPLICIT_ACCESS_A, *PEXPLICIT_ACCESS_A, EXPLICIT_ACCESSA, *PEXPLICIT_ACCESSA; +typedef struct _EXPLICIT_ACCESS_W +{ + DWORD grfAccessPermissions; + ACCESS_MODE grfAccessMode; + DWORD grfInheritance; + TRUSTEE_W Trustee; +} EXPLICIT_ACCESS_W, *PEXPLICIT_ACCESS_W, EXPLICIT_ACCESSW, *PEXPLICIT_ACCESSW; +#ifdef UNICODE +typedef EXPLICIT_ACCESS_W EXPLICIT_ACCESS_; +typedef PEXPLICIT_ACCESS_W PEXPLICIT_ACCESS_; +typedef EXPLICIT_ACCESSW EXPLICIT_ACCESS; +typedef PEXPLICIT_ACCESSW PEXPLICIT_ACCESS; +#else +typedef EXPLICIT_ACCESS_A EXPLICIT_ACCESS_; +typedef PEXPLICIT_ACCESS_A PEXPLICIT_ACCESS_; +typedef EXPLICIT_ACCESSA EXPLICIT_ACCESS; +typedef PEXPLICIT_ACCESSA PEXPLICIT_ACCESS; +#endif // UNICODE + + + +//---------------------------------------------------------------------------- +// +// NT5 APIs +// +//---------------------------------------------------------------------------- + +// +// Default provider +// +#define ACCCTRL_DEFAULT_PROVIDERA "Windows NT Access Provider" +#define ACCCTRL_DEFAULT_PROVIDERW L"Windows NT Access Provider" + +#ifdef UNICODE +#define ACCCTRL_DEFAULT_PROVIDER ACCCTRL_DEFAULT_PROVIDERW +#else +#define ACCCTRL_DEFAULT_PROVIDER ACCCTRL_DEFAULT_PROVIDERA +#endif + + + + +// +/// Access rights +// +typedef ULONG ACCESS_RIGHTS, *PACCESS_RIGHTS; + +// +// Inheritance flags +// +typedef ULONG INHERIT_FLAGS, *PINHERIT_FLAGS; + + +// +// Access / Audit structures +// +typedef struct _ACTRL_ACCESS_ENTRYA +{ + TRUSTEE_A Trustee; + ULONG fAccessFlags; + ACCESS_RIGHTS Access; + ACCESS_RIGHTS ProvSpecificAccess; + INHERIT_FLAGS Inheritance; + LPSTR lpInheritProperty; +} ACTRL_ACCESS_ENTRYA, *PACTRL_ACCESS_ENTRYA; +// +// Access / Audit structures +// +typedef struct _ACTRL_ACCESS_ENTRYW +{ + TRUSTEE_W Trustee; + ULONG fAccessFlags; + ACCESS_RIGHTS Access; + ACCESS_RIGHTS ProvSpecificAccess; + INHERIT_FLAGS Inheritance; + LPWSTR lpInheritProperty; +} ACTRL_ACCESS_ENTRYW, *PACTRL_ACCESS_ENTRYW; +#ifdef UNICODE +typedef ACTRL_ACCESS_ENTRYW ACTRL_ACCESS_ENTRY; +typedef PACTRL_ACCESS_ENTRYW PACTRL_ACCESS_ENTRY; +#else +typedef ACTRL_ACCESS_ENTRYA ACTRL_ACCESS_ENTRY; +typedef PACTRL_ACCESS_ENTRYA PACTRL_ACCESS_ENTRY; +#endif // UNICODE + + + +typedef struct _ACTRL_ACCESS_ENTRY_LISTA +{ + ULONG cEntries; +#ifdef __midl + [size_is(cEntries)] +#endif + ACTRL_ACCESS_ENTRYA *pAccessList; +} ACTRL_ACCESS_ENTRY_LISTA, *PACTRL_ACCESS_ENTRY_LISTA; +typedef struct _ACTRL_ACCESS_ENTRY_LISTW +{ + ULONG cEntries; +#ifdef __midl + [size_is(cEntries)] +#endif + ACTRL_ACCESS_ENTRYW *pAccessList; +} ACTRL_ACCESS_ENTRY_LISTW, *PACTRL_ACCESS_ENTRY_LISTW; +#ifdef UNICODE +typedef ACTRL_ACCESS_ENTRY_LISTW ACTRL_ACCESS_ENTRY_LIST; +typedef PACTRL_ACCESS_ENTRY_LISTW PACTRL_ACCESS_ENTRY_LIST; +#else +typedef ACTRL_ACCESS_ENTRY_LISTA ACTRL_ACCESS_ENTRY_LIST; +typedef PACTRL_ACCESS_ENTRY_LISTA PACTRL_ACCESS_ENTRY_LIST; +#endif // UNICODE + + + +typedef struct _ACTRL_PROPERTY_ENTRYA +{ + LPSTR lpProperty; + PACTRL_ACCESS_ENTRY_LISTA pAccessEntryList; + ULONG fListFlags; +} ACTRL_PROPERTY_ENTRYA, *PACTRL_PROPERTY_ENTRYA; +typedef struct _ACTRL_PROPERTY_ENTRYW +{ + LPWSTR lpProperty; + PACTRL_ACCESS_ENTRY_LISTW pAccessEntryList; + ULONG fListFlags; +} ACTRL_PROPERTY_ENTRYW, *PACTRL_PROPERTY_ENTRYW; +#ifdef UNICODE +typedef ACTRL_PROPERTY_ENTRYW ACTRL_PROPERTY_ENTRY; +typedef PACTRL_PROPERTY_ENTRYW PACTRL_PROPERTY_ENTRY; +#else +typedef ACTRL_PROPERTY_ENTRYA ACTRL_PROPERTY_ENTRY; +typedef PACTRL_PROPERTY_ENTRYA PACTRL_PROPERTY_ENTRY; +#endif // UNICODE + + + +typedef struct _ACTRL_ALISTA +{ + ULONG cEntries; +#ifdef __midl + [size_is(cEntries)] +#endif + PACTRL_PROPERTY_ENTRYA pPropertyAccessList; +} ACTRL_ACCESSA, *PACTRL_ACCESSA, ACTRL_AUDITA, *PACTRL_AUDITA; +typedef struct _ACTRL_ALISTW +{ + ULONG cEntries; +#ifdef __midl + [size_is(cEntries)] +#endif + PACTRL_PROPERTY_ENTRYW pPropertyAccessList; +} ACTRL_ACCESSW, *PACTRL_ACCESSW, ACTRL_AUDITW, *PACTRL_AUDITW; +#ifdef UNICODE +typedef ACTRL_ACCESSW ACTRL_ACCESS; +typedef PACTRL_ACCESSW PACTRL_ACCESS; +typedef ACTRL_AUDITW ACTRL_AUDIT; +typedef PACTRL_AUDITW PACTRL_AUDIT; +#else +typedef ACTRL_ACCESSA ACTRL_ACCESS; +typedef PACTRL_ACCESSA PACTRL_ACCESS; +typedef ACTRL_AUDITA ACTRL_AUDIT; +typedef PACTRL_AUDITA PACTRL_AUDIT; +#endif // UNICODE + + + +// +// TRUSTEE_ACCESS flags +// +#define TRUSTEE_ACCESS_ALLOWED 0x00000001L +#define TRUSTEE_ACCESS_READ 0x00000002L +#define TRUSTEE_ACCESS_WRITE 0x00000004L + +#define TRUSTEE_ACCESS_EXPLICIT 0x00000001L +#define TRUSTEE_ACCESS_READ_WRITE (TRUSTEE_ACCESS_READ | \ + TRUSTEE_ACCESS_WRITE) + + +#define TRUSTEE_ACCESS_ALL 0xFFFFFFFFL + +typedef struct _TRUSTEE_ACCESSA +{ + LPSTR lpProperty; + ACCESS_RIGHTS Access; + ULONG fAccessFlags; + ULONG fReturnedAccess; +} TRUSTEE_ACCESSA, *PTRUSTEE_ACCESSA; +typedef struct _TRUSTEE_ACCESSW +{ + LPWSTR lpProperty; + ACCESS_RIGHTS Access; + ULONG fAccessFlags; + ULONG fReturnedAccess; +} TRUSTEE_ACCESSW, *PTRUSTEE_ACCESSW; +#ifdef UNICODE +typedef TRUSTEE_ACCESSW TRUSTEE_ACCESS; +typedef PTRUSTEE_ACCESSW PTRUSTEE_ACCESS; +#else +typedef TRUSTEE_ACCESSA TRUSTEE_ACCESS; +typedef PTRUSTEE_ACCESSA PTRUSTEE_ACCESS; +#endif // UNICODE + + + +// +// Generic permission values +// +#define ACTRL_RESERVED 0x00000000 +#define ACTRL_PERM_1 0x00000001 +#define ACTRL_PERM_2 0x00000002 +#define ACTRL_PERM_3 0x00000004 +#define ACTRL_PERM_4 0x00000008 +#define ACTRL_PERM_5 0x00000010 +#define ACTRL_PERM_6 0x00000020 +#define ACTRL_PERM_7 0x00000040 +#define ACTRL_PERM_8 0x00000080 +#define ACTRL_PERM_9 0x00000100 +#define ACTRL_PERM_10 0x00000200 +#define ACTRL_PERM_11 0x00000400 +#define ACTRL_PERM_12 0x00000800 +#define ACTRL_PERM_13 0x00001000 +#define ACTRL_PERM_14 0x00002000 +#define ACTRL_PERM_15 0x00004000 +#define ACTRL_PERM_16 0x00008000 +#define ACTRL_PERM_17 0x00010000 +#define ACTRL_PERM_18 0x00020000 +#define ACTRL_PERM_19 0x00040000 +#define ACTRL_PERM_20 0x00080000 + +// +// Access permissions +// +#define ACTRL_ACCESS_ALLOWED 0x00000001 +#define ACTRL_ACCESS_DENIED 0x00000002 +#define ACTRL_AUDIT_SUCCESS 0x00000004 +#define ACTRL_AUDIT_FAILURE 0x00000008 + +// +// Property list flags +// +#define ACTRL_ACCESS_PROTECTED 0x00000001 + +// +// Standard and object rights +// +#define ACTRL_SYSTEM_ACCESS 0x04000000 +#define ACTRL_DELETE 0x08000000 +#define ACTRL_READ_CONTROL 0x10000000 +#define ACTRL_CHANGE_ACCESS 0x20000000 +#define ACTRL_CHANGE_OWNER 0x40000000 +#define ACTRL_SYNCHRONIZE 0x80000000 +#define ACTRL_STD_RIGHTS_ALL 0xf8000000 +#define ACTRL_STD_RIGHT_REQUIRED ( ACTRL_STD_RIGHTS_ALL & ~ACTRL_SYNCHRONIZE ) + +#ifndef _DS_CONTROL_BITS_DEFINED_ +#define _DS_CONTROL_BITS_DEFINED_ +#define ACTRL_DS_OPEN ACTRL_RESERVED +#define ACTRL_DS_CREATE_CHILD ACTRL_PERM_1 +#define ACTRL_DS_DELETE_CHILD ACTRL_PERM_2 +#define ACTRL_DS_LIST ACTRL_PERM_3 +#define ACTRL_DS_SELF ACTRL_PERM_4 +#define ACTRL_DS_READ_PROP ACTRL_PERM_5 +#define ACTRL_DS_WRITE_PROP ACTRL_PERM_6 +#define ACTRL_DS_DELETE_TREE ACTRL_PERM_7 +#define ACTRL_DS_LIST_OBJECT ACTRL_PERM_8 +#define ACTRL_DS_CONTROL_ACCESS ACTRL_PERM_9 +#endif + +#define ACTRL_FILE_READ ACTRL_PERM_1 +#define ACTRL_FILE_WRITE ACTRL_PERM_2 +#define ACTRL_FILE_APPEND ACTRL_PERM_3 +#define ACTRL_FILE_READ_PROP ACTRL_PERM_4 +#define ACTRL_FILE_WRITE_PROP ACTRL_PERM_5 +#define ACTRL_FILE_EXECUTE ACTRL_PERM_6 +#define ACTRL_FILE_READ_ATTRIB ACTRL_PERM_8 +#define ACTRL_FILE_WRITE_ATTRIB ACTRL_PERM_9 +#define ACTRL_FILE_CREATE_PIPE ACTRL_PERM_10 +#define ACTRL_DIR_LIST ACTRL_PERM_1 +#define ACTRL_DIR_CREATE_OBJECT ACTRL_PERM_2 +#define ACTRL_DIR_CREATE_CHILD ACTRL_PERM_3 +#define ACTRL_DIR_DELETE_CHILD ACTRL_PERM_7 +#define ACTRL_DIR_TRAVERSE ACTRL_PERM_6 +#define ACTRL_KERNEL_TERMINATE ACTRL_PERM_1 +#define ACTRL_KERNEL_THREAD ACTRL_PERM_2 +#define ACTRL_KERNEL_VM ACTRL_PERM_3 +#define ACTRL_KERNEL_VM_READ ACTRL_PERM_4 +#define ACTRL_KERNEL_VM_WRITE ACTRL_PERM_5 +#define ACTRL_KERNEL_DUP_HANDLE ACTRL_PERM_6 +#define ACTRL_KERNEL_PROCESS ACTRL_PERM_7 +#define ACTRL_KERNEL_SET_INFO ACTRL_PERM_8 +#define ACTRL_KERNEL_GET_INFO ACTRL_PERM_9 +#define ACTRL_KERNEL_CONTROL ACTRL_PERM_10 +#define ACTRL_KERNEL_ALERT ACTRL_PERM_11 +#define ACTRL_KERNEL_GET_CONTEXT ACTRL_PERM_12 +#define ACTRL_KERNEL_SET_CONTEXT ACTRL_PERM_13 +#define ACTRL_KERNEL_TOKEN ACTRL_PERM_14 +#define ACTRL_KERNEL_IMPERSONATE ACTRL_PERM_15 +#define ACTRL_KERNEL_DIMPERSONATE ACTRL_PERM_16 +#define ACTRL_PRINT_SADMIN ACTRL_PERM_1 +#define ACTRL_PRINT_SLIST ACTRL_PERM_2 +#define ACTRL_PRINT_PADMIN ACTRL_PERM_3 +#define ACTRL_PRINT_PUSE ACTRL_PERM_4 +#define ACTRL_PRINT_JADMIN ACTRL_PERM_5 +#define ACTRL_SVC_GET_INFO ACTRL_PERM_1 +#define ACTRL_SVC_SET_INFO ACTRL_PERM_2 +#define ACTRL_SVC_STATUS ACTRL_PERM_3 +#define ACTRL_SVC_LIST ACTRL_PERM_4 +#define ACTRL_SVC_START ACTRL_PERM_5 +#define ACTRL_SVC_STOP ACTRL_PERM_6 +#define ACTRL_SVC_PAUSE ACTRL_PERM_7 +#define ACTRL_SVC_INTERROGATE ACTRL_PERM_8 +#define ACTRL_SVC_UCONTROL ACTRL_PERM_9 +#define ACTRL_REG_QUERY ACTRL_PERM_1 +#define ACTRL_REG_SET ACTRL_PERM_2 +#define ACTRL_REG_CREATE_CHILD ACTRL_PERM_3 +#define ACTRL_REG_LIST ACTRL_PERM_4 +#define ACTRL_REG_NOTIFY ACTRL_PERM_5 +#define ACTRL_REG_LINK ACTRL_PERM_6 +#define ACTRL_WIN_CLIPBRD ACTRL_PERM_1 +#define ACTRL_WIN_GLOBAL_ATOMS ACTRL_PERM_2 +#define ACTRL_WIN_CREATE ACTRL_PERM_3 +#define ACTRL_WIN_LIST_DESK ACTRL_PERM_4 +#define ACTRL_WIN_LIST ACTRL_PERM_5 +#define ACTRL_WIN_READ_ATTRIBS ACTRL_PERM_6 +#define ACTRL_WIN_WRITE_ATTRIBS ACTRL_PERM_7 +#define ACTRL_WIN_SCREEN ACTRL_PERM_8 +#define ACTRL_WIN_EXIT ACTRL_PERM_9 + + +#pragma warning (push) +#pragma warning (disable: 4201) + +typedef struct _ACTRL_OVERLAPPED +{ + union { + PVOID Provider; + ULONG Reserved1; + } DUMMYUNIONNAME; + + ULONG Reserved2; + HANDLE hEvent; + +} ACTRL_OVERLAPPED, *PACTRL_OVERLAPPED; + +#pragma warning(pop) + +typedef struct _ACTRL_ACCESS_INFOA +{ + ULONG fAccessPermission; + LPSTR lpAccessPermissionName; +} ACTRL_ACCESS_INFOA, *PACTRL_ACCESS_INFOA; +typedef struct _ACTRL_ACCESS_INFOW +{ + ULONG fAccessPermission; + LPWSTR lpAccessPermissionName; +} ACTRL_ACCESS_INFOW, *PACTRL_ACCESS_INFOW; +#ifdef UNICODE +typedef ACTRL_ACCESS_INFOW ACTRL_ACCESS_INFO; +typedef PACTRL_ACCESS_INFOW PACTRL_ACCESS_INFO; +#else +typedef ACTRL_ACCESS_INFOA ACTRL_ACCESS_INFO; +typedef PACTRL_ACCESS_INFOA PACTRL_ACCESS_INFO; +#endif // UNICODE + +typedef struct _ACTRL_CONTROL_INFOA +{ + LPSTR lpControlId; + LPSTR lpControlName; +} ACTRL_CONTROL_INFOA, *PACTRL_CONTROL_INFOA; +typedef struct _ACTRL_CONTROL_INFOW +{ + LPWSTR lpControlId; + LPWSTR lpControlName; +} ACTRL_CONTROL_INFOW, *PACTRL_CONTROL_INFOW; +#ifdef UNICODE +typedef ACTRL_CONTROL_INFOW ACTRL_CONTROL_INFO; +typedef PACTRL_CONTROL_INFOW PACTRL_CONTROL_INFO; +#else +typedef ACTRL_CONTROL_INFOA ACTRL_CONTROL_INFO; +typedef PACTRL_CONTROL_INFOA PACTRL_CONTROL_INFO; +#endif // UNICODE + + +#define ACTRL_ACCESS_NO_OPTIONS 0x00000000 +#define ACTRL_ACCESS_SUPPORTS_OBJECT_ENTRIES 0x00000001 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TREE_SEC_INFO_SET 0x00000001 +#define TREE_SEC_INFO_RESET 0x00000002 +#define TREE_SEC_INFO_RESET_KEEP_EXPLICIT 0x00000003 +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + + +typedef enum _PROGRESS_INVOKE_SETTING { + ProgressInvokeNever = 1, // Never invoke the progress function + ProgressInvokeEveryObject, // Invoke for each object + ProgressInvokeOnError, // Invoke only for each error case + ProgressCancelOperation, // Stop propagation and return + ProgressRetryOperation, // Retry operation on subtree +#if (NTDDI_VERSION >= NTDDI_VISTA) + ProgressInvokePrePostError, // Invoke Pre, Post, Error +#endif // (NTDDI_VERSION >= NTDDI_VISTA) +} PROG_INVOKE_SETTING, *PPROG_INVOKE_SETTING; + +// +// Progress Function: +// Caller of tree operation implements this Progress function, then +// passes its function pointer to tree operation. +// Tree operation invokes Progress function to provide progress and error +// information to the caller during the potentially long execution +// of the tree operation. Tree operation provides the name of the object +// last processed and the error status of the operation on that object. +// Tree operation also passes the current InvokeSetting value. +// Caller may change the InvokeSetting value, for example, from "Always" +// to "Only On Error." +// + +/* +typedef VOID (*FN_PROGRESS) ( + IN LPWSTR pObjectName, // name of object just processed + IN DWORD Status, // status of operation on object + IN OUT PPROG_INVOKE_SETTING pInvokeSetting, // Never, always, + IN PVOID Args, // Caller specific data + IN BOOL SecuritySet // Whether security was set + ); +*/ + +// +// New Object Type function pointers. TBD. +// To support additional object resource managers generically, the +// resource manager must provide it's own functions for operations +// like: +// GetAncestorAcl(IN ObjName, IN GenerationGap, IN DaclOrSacl?, ...) +// GetAncestorName(...) +// FreeNameStructure(...) +// + +typedef struct _FN_OBJECT_MGR_FUNCTIONS +{ + ULONG Placeholder; +} FN_OBJECT_MGR_FUNCTS, *PFN_OBJECT_MGR_FUNCTS; + +// +// Name of ancestor and number of generations between +// ancestor and inheriting object. +// +// GenerationGap: +// Name of ancestor from which ACE was inherited. +// NULL for explicit ACE. +// +// AncestorName: +// Number of levels (or generations) between the object and the ancestor. +// Parent, gap=1. +// Grandparent, gap=2. +// Set to 0 for explicit ACE on object. +// + +typedef struct _INHERITED_FROMA +{ + LONG GenerationGap; + LPSTR AncestorName; +} INHERITED_FROMA, *PINHERITED_FROMA; +typedef struct _INHERITED_FROMW +{ + LONG GenerationGap; + LPWSTR AncestorName; +} INHERITED_FROMW, *PINHERITED_FROMW; +#ifdef UNICODE +typedef INHERITED_FROMW INHERITED_FROM; +typedef PINHERITED_FROMW PINHERITED_FROM; +#else +typedef INHERITED_FROMA INHERITED_FROM; +typedef PINHERITED_FROMA PINHERITED_FROM; +#endif // UNICODE + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#if (_MSC_VER >= 800) +#if (_MSC_VER >= 1200) +#pragma warning(pop) +#else +#pragma warning(default:4001) +#endif +#endif + +#endif /* __ACCESS_CONTROL__ */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AclAPI.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AclAPI.h new file mode 100644 index 0000000000000000000000000000000000000000..3eaee6611807a260ed874eb63047fa8a1f99c690 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AclAPI.h @@ -0,0 +1,726 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + aclapi.h + +Abstract: + + Public + Structure/constant definitions and typedefines for the Win32 Access + Control APIs + +--*/ +#ifndef __ACCESS_CONTROL_API__ +#define __ACCESS_CONTROL_API__ + +#include + + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +// +// Progress Function: +// Caller of tree operation implements this Progress function, then +// passes its function pointer to tree operation. +// Tree operation invokes Progress function to provide progress and error +// information to the caller during the potentially long execution +// of the tree operation. Tree operation provides the name of the object +// last processed and the error status of the operation on that object. +// Tree operation also passes the current InvokeSetting value. +// Caller may change the InvokeSetting value, for example, from "Always" +// to "Only On Error." +// + +typedef VOID (CALLBACK *FN_PROGRESS) ( + _In_ LPWSTR pObjectName, // name of object just processed + _In_ DWORD Status, // status of operation on object + _Inout_ PPROG_INVOKE_SETTING pInvokeSetting, // Never, always, + _In_ PVOID Args, // Caller specific data + _In_ BOOL SecuritySet // Whether security was set + ); + +WINADVAPI +DWORD +WINAPI +SetEntriesInAclA( + _In_ ULONG cCountOfExplicitEntries, + _In_reads_opt_(cCountOfExplicitEntries) PEXPLICIT_ACCESS_A pListOfExplicitEntries, + _In_opt_ PACL OldAcl, + _Out_ PACL * NewAcl + ); +WINADVAPI +DWORD +WINAPI +SetEntriesInAclW( + _In_ ULONG cCountOfExplicitEntries, + _In_reads_opt_(cCountOfExplicitEntries) PEXPLICIT_ACCESS_W pListOfExplicitEntries, + _In_opt_ PACL OldAcl, + _Out_ PACL * NewAcl + ); +#ifdef UNICODE +#define SetEntriesInAcl SetEntriesInAclW +#else +#define SetEntriesInAcl SetEntriesInAclA +#endif // !UNICODE + + +WINADVAPI +DWORD +WINAPI +GetExplicitEntriesFromAclA( + _In_ PACL pacl, + _Out_ PULONG pcCountOfExplicitEntries, + _Outptr_result_buffer_(*pcCountOfExplicitEntries) PEXPLICIT_ACCESS_A * pListOfExplicitEntries + ); +WINADVAPI +DWORD +WINAPI +GetExplicitEntriesFromAclW( + _In_ PACL pacl, + _Out_ PULONG pcCountOfExplicitEntries, + _Outptr_result_buffer_(*pcCountOfExplicitEntries) PEXPLICIT_ACCESS_W * pListOfExplicitEntries + ); +#ifdef UNICODE +#define GetExplicitEntriesFromAcl GetExplicitEntriesFromAclW +#else +#define GetExplicitEntriesFromAcl GetExplicitEntriesFromAclA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +WINADVAPI +DWORD +WINAPI +GetEffectiveRightsFromAclA( + _In_ PACL pacl, + _In_ PTRUSTEE_A pTrustee, + _Out_ PACCESS_MASK pAccessRights + ); +WINADVAPI +DWORD +WINAPI +GetEffectiveRightsFromAclW( + _In_ PACL pacl, + _In_ PTRUSTEE_W pTrustee, + _Out_ PACCESS_MASK pAccessRights + ); +#ifdef UNICODE +#define GetEffectiveRightsFromAcl GetEffectiveRightsFromAclW +#else +#define GetEffectiveRightsFromAcl GetEffectiveRightsFromAclA +#endif // !UNICODE + + +WINADVAPI +DWORD +WINAPI +GetAuditedPermissionsFromAclA( + _In_ PACL pacl, + _In_ PTRUSTEE_A pTrustee, + _Out_ PACCESS_MASK pSuccessfulAuditedRights, + _Out_ PACCESS_MASK pFailedAuditRights + ); +WINADVAPI +DWORD +WINAPI +GetAuditedPermissionsFromAclW( + _In_ PACL pacl, + _In_ PTRUSTEE_W pTrustee, + _Out_ PACCESS_MASK pSuccessfulAuditedRights, + _Out_ PACCESS_MASK pFailedAuditRights + ); +#ifdef UNICODE +#define GetAuditedPermissionsFromAcl GetAuditedPermissionsFromAclW +#else +#define GetAuditedPermissionsFromAcl GetAuditedPermissionsFromAclA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINADVAPI +DWORD +WINAPI +GetNamedSecurityInfoA( + _In_ LPCSTR pObjectName, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _Out_opt_ PSID * ppsidOwner, + _Out_opt_ PSID * ppsidGroup, + _Out_opt_ PACL * ppDacl, + _Out_opt_ PACL * ppSacl, + _Out_ PSECURITY_DESCRIPTOR * ppSecurityDescriptor + ); +WINADVAPI +DWORD +WINAPI +GetNamedSecurityInfoW( + _In_ LPCWSTR pObjectName, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _Out_opt_ PSID * ppsidOwner, + _Out_opt_ PSID * ppsidGroup, + _Out_opt_ PACL * ppDacl, + _Out_opt_ PACL * ppSacl, + _Out_ PSECURITY_DESCRIPTOR * ppSecurityDescriptor + ); +#ifdef UNICODE +#define GetNamedSecurityInfo GetNamedSecurityInfoW +#else +#define GetNamedSecurityInfo GetNamedSecurityInfoA +#endif // !UNICODE + +WINADVAPI +DWORD +WINAPI +GetSecurityInfo( + _In_ HANDLE handle, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _Out_opt_ PSID * ppsidOwner, + _Out_opt_ PSID * ppsidGroup, + _Out_opt_ PACL * ppDacl, + _Out_opt_ PACL * ppSacl, + _Out_opt_ PSECURITY_DESCRIPTOR * ppSecurityDescriptor + ); + +WINADVAPI +DWORD +WINAPI +SetNamedSecurityInfoA( + _In_ LPSTR pObjectName, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _In_opt_ PSID psidOwner, + _In_opt_ PSID psidGroup, + _In_opt_ PACL pDacl, + _In_opt_ PACL pSacl + ); +WINADVAPI +DWORD +WINAPI +SetNamedSecurityInfoW( + _In_ LPWSTR pObjectName, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _In_opt_ PSID psidOwner, + _In_opt_ PSID psidGroup, + _In_opt_ PACL pDacl, + _In_opt_ PACL pSacl + ); +#ifdef UNICODE +#define SetNamedSecurityInfo SetNamedSecurityInfoW +#else +#define SetNamedSecurityInfo SetNamedSecurityInfoA +#endif // !UNICODE + +WINADVAPI +DWORD +WINAPI +SetSecurityInfo( + _In_ HANDLE handle, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _In_opt_ PSID psidOwner, + _In_opt_ PSID psidGroup, + _In_opt_ PACL pDacl, + _In_opt_ PACL pSacl + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +WINADVAPI +DWORD +WINAPI +GetInheritanceSourceA( + _In_ LPSTR pObjectName, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _In_ BOOL Container, + _In_reads_opt_(GuidCount) GUID ** pObjectClassGuids, + _In_ DWORD GuidCount, + _In_ PACL pAcl, + _In_opt_ PFN_OBJECT_MGR_FUNCTS pfnArray, + _In_ PGENERIC_MAPPING pGenericMapping, + _Out_ PINHERITED_FROMA pInheritArray + ); +WINADVAPI +DWORD +WINAPI +GetInheritanceSourceW( + _In_ LPWSTR pObjectName, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _In_ BOOL Container, + _In_reads_opt_(GuidCount) GUID ** pObjectClassGuids, + _In_ DWORD GuidCount, + _In_ PACL pAcl, + _In_opt_ PFN_OBJECT_MGR_FUNCTS pfnArray, + _In_ PGENERIC_MAPPING pGenericMapping, + _Out_ PINHERITED_FROMW pInheritArray + ); +#ifdef UNICODE +#define GetInheritanceSource GetInheritanceSourceW +#else +#define GetInheritanceSource GetInheritanceSourceA +#endif // !UNICODE + +WINADVAPI +DWORD +WINAPI +FreeInheritedFromArray( + _In_reads_(AceCnt) PINHERITED_FROMW pInheritArray, + _In_ USHORT AceCnt, + _In_opt_ PFN_OBJECT_MGR_FUNCTS pfnArray OPTIONAL + ); + +WINADVAPI +DWORD +WINAPI +TreeResetNamedSecurityInfoA( + _In_ LPSTR pObjectName, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _In_opt_ PSID pOwner, + _In_opt_ PSID pGroup, + _In_opt_ PACL pDacl, + _In_opt_ PACL pSacl, + _In_ BOOL KeepExplicit, + _In_opt_ FN_PROGRESS fnProgress, + _In_ PROG_INVOKE_SETTING ProgressInvokeSetting, + _In_opt_ PVOID Args + ); +WINADVAPI +DWORD +WINAPI +TreeResetNamedSecurityInfoW( + _In_ LPWSTR pObjectName, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _In_opt_ PSID pOwner, + _In_opt_ PSID pGroup, + _In_opt_ PACL pDacl, + _In_opt_ PACL pSacl, + _In_ BOOL KeepExplicit, + _In_opt_ FN_PROGRESS fnProgress, + _In_ PROG_INVOKE_SETTING ProgressInvokeSetting, + _In_opt_ PVOID Args + ); +#ifdef UNICODE +#define TreeResetNamedSecurityInfo TreeResetNamedSecurityInfoW +#else +#define TreeResetNamedSecurityInfo TreeResetNamedSecurityInfoA +#endif // !UNICODE + + +#if (NTDDI_VERSION >= NTDDI_VISTA) +WINADVAPI +DWORD +WINAPI +TreeSetNamedSecurityInfoA( + _In_ LPSTR pObjectName, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _In_opt_ PSID pOwner, + _In_opt_ PSID pGroup, + _In_opt_ PACL pDacl, + _In_opt_ PACL pSacl, + _In_ DWORD dwAction, + _In_opt_ FN_PROGRESS fnProgress, + _In_ PROG_INVOKE_SETTING ProgressInvokeSetting, + _In_opt_ PVOID Args + ); +WINADVAPI +DWORD +WINAPI +TreeSetNamedSecurityInfoW( + _In_ LPWSTR pObjectName, + _In_ SE_OBJECT_TYPE ObjectType, + _In_ SECURITY_INFORMATION SecurityInfo, + _In_opt_ PSID pOwner, + _In_opt_ PSID pGroup, + _In_opt_ PACL pDacl, + _In_opt_ PACL pSacl, + _In_ DWORD dwAction, + _In_opt_ FN_PROGRESS fnProgress, + _In_ PROG_INVOKE_SETTING ProgressInvokeSetting, + _In_opt_ PVOID Args + ); +#ifdef UNICODE +#define TreeSetNamedSecurityInfo TreeSetNamedSecurityInfoW +#else +#define TreeSetNamedSecurityInfo TreeSetNamedSecurityInfoA +#endif // !UNICODE + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +//---------------------------------------------------------------------------- +// The following API are provided for trusted servers to use to +// implement access control on their own objects. +//---------------------------------------------------------------------------- + +WINADVAPI +DWORD +WINAPI +BuildSecurityDescriptorA( + _In_opt_ PTRUSTEE_A pOwner, + _In_opt_ PTRUSTEE_A pGroup, + _In_ ULONG cCountOfAccessEntries, + _In_reads_opt_(cCountOfAccessEntries) PEXPLICIT_ACCESS_A pListOfAccessEntries, + _In_ ULONG cCountOfAuditEntries, + _In_reads_opt_(cCountOfAuditEntries) PEXPLICIT_ACCESS_A pListOfAuditEntries, + _In_opt_ PSECURITY_DESCRIPTOR pOldSD, + _Out_ PULONG pSizeNewSD, + _Outptr_result_bytebuffer_(*pSizeNewSD) PSECURITY_DESCRIPTOR * pNewSD + ); +WINADVAPI +DWORD +WINAPI +BuildSecurityDescriptorW( + _In_opt_ PTRUSTEE_W pOwner, + _In_opt_ PTRUSTEE_W pGroup, + _In_ ULONG cCountOfAccessEntries, + _In_reads_opt_(cCountOfAccessEntries) PEXPLICIT_ACCESS_W pListOfAccessEntries, + _In_ ULONG cCountOfAuditEntries, + _In_reads_opt_(cCountOfAuditEntries) PEXPLICIT_ACCESS_W pListOfAuditEntries, + _In_opt_ PSECURITY_DESCRIPTOR pOldSD, + _Out_ PULONG pSizeNewSD, + _Outptr_result_bytebuffer_(*pSizeNewSD) PSECURITY_DESCRIPTOR * pNewSD + ); +#ifdef UNICODE +#define BuildSecurityDescriptor BuildSecurityDescriptorW +#else +#define BuildSecurityDescriptor BuildSecurityDescriptorA +#endif // !UNICODE + +WINADVAPI +DWORD +WINAPI +LookupSecurityDescriptorPartsA( + _Out_opt_ PTRUSTEE_A * ppOwner, + _Out_opt_ PTRUSTEE_A * ppGroup, + _Out_opt_ PULONG pcCountOfAccessEntries, + _Outptr_result_buffer_maybenull_(*pcCountOfAccessEntries) PEXPLICIT_ACCESS_A * ppListOfAccessEntries, + _Out_opt_ PULONG pcCountOfAuditEntries, + _Outptr_result_buffer_maybenull_(*pcCountOfAuditEntries) PEXPLICIT_ACCESS_A * ppListOfAuditEntries, + _In_ PSECURITY_DESCRIPTOR pSD + ); +WINADVAPI +DWORD +WINAPI +LookupSecurityDescriptorPartsW( + _Out_opt_ PTRUSTEE_W * ppOwner, + _Out_opt_ PTRUSTEE_W * ppGroup, + _Out_opt_ PULONG pcCountOfAccessEntries, + _Outptr_result_buffer_maybenull_(*pcCountOfAccessEntries) PEXPLICIT_ACCESS_W * ppListOfAccessEntries, + _Out_opt_ PULONG pcCountOfAuditEntries, + _Outptr_result_buffer_maybenull_(*pcCountOfAuditEntries) PEXPLICIT_ACCESS_W * ppListOfAuditEntries, + _In_ PSECURITY_DESCRIPTOR pSD + ); +#ifdef UNICODE +#define LookupSecurityDescriptorParts LookupSecurityDescriptorPartsW +#else +#define LookupSecurityDescriptorParts LookupSecurityDescriptorPartsA +#endif // !UNICODE + + +//---------------------------------------------------------------------------- +// The following helper API are provided for building +// access control structures. +//---------------------------------------------------------------------------- + +WINADVAPI +VOID +WINAPI +BuildExplicitAccessWithNameA( + _Inout_ PEXPLICIT_ACCESS_A pExplicitAccess, + _In_opt_ LPSTR pTrusteeName, + _In_ DWORD AccessPermissions, + _In_ ACCESS_MODE AccessMode, + _In_ DWORD Inheritance + ); +WINADVAPI +VOID +WINAPI +BuildExplicitAccessWithNameW( + _Inout_ PEXPLICIT_ACCESS_W pExplicitAccess, + _In_opt_ LPWSTR pTrusteeName, + _In_ DWORD AccessPermissions, + _In_ ACCESS_MODE AccessMode, + _In_ DWORD Inheritance + ); +#ifdef UNICODE +#define BuildExplicitAccessWithName BuildExplicitAccessWithNameW +#else +#define BuildExplicitAccessWithName BuildExplicitAccessWithNameA +#endif // !UNICODE + +WINADVAPI +VOID +WINAPI +BuildImpersonateExplicitAccessWithNameA( + _Inout_ PEXPLICIT_ACCESS_A pExplicitAccess, + _In_opt_ LPSTR pTrusteeName, + _In_opt_ PTRUSTEE_A pTrustee, + _In_ DWORD AccessPermissions, + _In_ ACCESS_MODE AccessMode, + _In_ DWORD Inheritance + ); +WINADVAPI +VOID +WINAPI +BuildImpersonateExplicitAccessWithNameW( + _Inout_ PEXPLICIT_ACCESS_W pExplicitAccess, + _In_opt_ LPWSTR pTrusteeName, + _In_opt_ PTRUSTEE_W pTrustee, + _In_ DWORD AccessPermissions, + _In_ ACCESS_MODE AccessMode, + _In_ DWORD Inheritance + ); +#ifdef UNICODE +#define BuildImpersonateExplicitAccessWithName BuildImpersonateExplicitAccessWithNameW +#else +#define BuildImpersonateExplicitAccessWithName BuildImpersonateExplicitAccessWithNameA +#endif // !UNICODE + +WINADVAPI +VOID +WINAPI +BuildTrusteeWithNameA( + _Inout_ PTRUSTEE_A pTrustee, + _In_opt_ LPSTR pName + ); +WINADVAPI +VOID +WINAPI +BuildTrusteeWithNameW( + _Inout_ PTRUSTEE_W pTrustee, + _In_opt_ LPWSTR pName + ); +#ifdef UNICODE +#define BuildTrusteeWithName BuildTrusteeWithNameW +#else +#define BuildTrusteeWithName BuildTrusteeWithNameA +#endif // !UNICODE + +WINADVAPI +VOID +WINAPI +BuildImpersonateTrusteeA( + _Inout_ PTRUSTEE_A pTrustee, + _In_opt_ PTRUSTEE_A pImpersonateTrustee + ); +WINADVAPI +VOID +WINAPI +BuildImpersonateTrusteeW( + _Inout_ PTRUSTEE_W pTrustee, + _In_opt_ PTRUSTEE_W pImpersonateTrustee + ); +#ifdef UNICODE +#define BuildImpersonateTrustee BuildImpersonateTrusteeW +#else +#define BuildImpersonateTrustee BuildImpersonateTrusteeA +#endif // !UNICODE + +WINADVAPI +VOID +WINAPI +BuildTrusteeWithSidA( + _Inout_ PTRUSTEE_A pTrustee, + _In_opt_ PSID pSid + ); +WINADVAPI +VOID +WINAPI +BuildTrusteeWithSidW( + _Inout_ PTRUSTEE_W pTrustee, + _In_opt_ PSID pSid + ); +#ifdef UNICODE +#define BuildTrusteeWithSid BuildTrusteeWithSidW +#else +#define BuildTrusteeWithSid BuildTrusteeWithSidA +#endif // !UNICODE + +WINADVAPI +VOID +WINAPI +BuildTrusteeWithObjectsAndSidA( + _Inout_ PTRUSTEE_A pTrustee, + _In_opt_ POBJECTS_AND_SID pObjSid, + _In_opt_ GUID * pObjectGuid, + _In_opt_ GUID * pInheritedObjectGuid, + _In_opt_ PSID pSid + ); +WINADVAPI +VOID +WINAPI +BuildTrusteeWithObjectsAndSidW( + _Inout_ PTRUSTEE_W pTrustee, + _In_opt_ POBJECTS_AND_SID pObjSid, + _In_opt_ GUID * pObjectGuid, + _In_opt_ GUID * pInheritedObjectGuid, + _In_opt_ PSID pSid + ); +#ifdef UNICODE +#define BuildTrusteeWithObjectsAndSid BuildTrusteeWithObjectsAndSidW +#else +#define BuildTrusteeWithObjectsAndSid BuildTrusteeWithObjectsAndSidA +#endif // !UNICODE + +WINADVAPI +VOID +WINAPI +BuildTrusteeWithObjectsAndNameA( + _Inout_ PTRUSTEE_A pTrustee, + _In_opt_ POBJECTS_AND_NAME_A pObjName, + _In_opt_ SE_OBJECT_TYPE ObjectType, + _In_opt_ LPSTR ObjectTypeName, + _In_opt_ LPSTR InheritedObjectTypeName, + _In_opt_ LPSTR Name + ); +WINADVAPI +VOID +WINAPI +BuildTrusteeWithObjectsAndNameW( + _Inout_ PTRUSTEE_W pTrustee, + _In_opt_ POBJECTS_AND_NAME_W pObjName, + _In_opt_ SE_OBJECT_TYPE ObjectType, + _In_opt_ LPWSTR ObjectTypeName, + _In_opt_ LPWSTR InheritedObjectTypeName, + _In_opt_ LPWSTR Name + ); +#ifdef UNICODE +#define BuildTrusteeWithObjectsAndName BuildTrusteeWithObjectsAndNameW +#else +#define BuildTrusteeWithObjectsAndName BuildTrusteeWithObjectsAndNameA +#endif // !UNICODE + +WINADVAPI +LPSTR +WINAPI +GetTrusteeNameA( + _In_ PTRUSTEE_A pTrustee + ); +WINADVAPI +LPWSTR +WINAPI +GetTrusteeNameW( + _In_ PTRUSTEE_W pTrustee + ); +#ifdef UNICODE +#define GetTrusteeName GetTrusteeNameW +#else +#define GetTrusteeName GetTrusteeNameA +#endif // !UNICODE + +WINADVAPI +TRUSTEE_TYPE +WINAPI +GetTrusteeTypeA( + _In_opt_ PTRUSTEE_A pTrustee + ); +WINADVAPI +TRUSTEE_TYPE +WINAPI +GetTrusteeTypeW( + _In_opt_ PTRUSTEE_W pTrustee + ); +#ifdef UNICODE +#define GetTrusteeType GetTrusteeTypeW +#else +#define GetTrusteeType GetTrusteeTypeA +#endif // !UNICODE + +WINADVAPI +TRUSTEE_FORM +WINAPI +GetTrusteeFormA( + _In_ PTRUSTEE_A pTrustee + ); +WINADVAPI +TRUSTEE_FORM +WINAPI +GetTrusteeFormW( + _In_ PTRUSTEE_W pTrustee + ); +#ifdef UNICODE +#define GetTrusteeForm GetTrusteeFormW +#else +#define GetTrusteeForm GetTrusteeFormA +#endif // !UNICODE + +WINADVAPI +MULTIPLE_TRUSTEE_OPERATION +WINAPI +GetMultipleTrusteeOperationA( + _In_opt_ PTRUSTEE_A pTrustee + ); +WINADVAPI +MULTIPLE_TRUSTEE_OPERATION +WINAPI +GetMultipleTrusteeOperationW( + _In_opt_ PTRUSTEE_W pTrustee + ); +#ifdef UNICODE +#define GetMultipleTrusteeOperation GetMultipleTrusteeOperationW +#else +#define GetMultipleTrusteeOperation GetMultipleTrusteeOperationA +#endif // !UNICODE + +WINADVAPI +PTRUSTEE_A +WINAPI +GetMultipleTrusteeA( + _In_opt_ PTRUSTEE_A pTrustee + ); +WINADVAPI +PTRUSTEE_W +WINAPI +GetMultipleTrusteeW( + _In_opt_ PTRUSTEE_W pTrustee + ); +#ifdef UNICODE +#define GetMultipleTrustee GetMultipleTrusteeW +#else +#define GetMultipleTrustee GetMultipleTrusteeA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +// +// Temporary requirement for the technology preview, no longer required +// +#define AccProvInit(err) + +#ifdef __cplusplus +} +#endif + + +#endif // __ACCESS_CONTROL_API__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AclUI.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AclUI.h new file mode 100644 index 0000000000000000000000000000000000000000..09088fa28524e66b902a9b41ff10368d394ccf1e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AclUI.h @@ -0,0 +1,447 @@ +/*+-------------------------------------------------------------------------- + + Microsoft Windows + Copyright (c) Microsoft Corporation. All rights reserved. + + File: aclui.h + + Contents: Definitions and prototypes for the ACLUI.DLL + +---------------------------------------------------------------------------*/ + +#if (_MSC_VER >= 800) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif +#pragma warning(disable:4001) /* nonstandard extension : single line comment */ +#endif + +#ifndef _ACLUI_H_ +#define _ACLUI_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include +#include /* for HPROPSHEETPAGE */ +#include /* for SE_OBJECT_TYPE */ +#include + +#if !defined(_ACLUI_) +#define ACLUIAPI DECLSPEC_IMPORT WINAPI +#else +#define ACLUIAPI WINAPI +#endif + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +// +// ISecurityInformation interface +// +// Methods: +// +// GetObjectInformation - Allows UI to determine type of object being +// edited. Also allows determining if object is a container. +// +// GetSecurity - Allows retrieving of ACLs from the original object +// NOTE: ACLUI will LocalFree the security descriptor +// returned by GetSecurity. +// SetSecurity - Allows setting of the ACLs on the original object +// +// GetAccessRights - For retrieving the list of rights allowed +// on this object. +// +// MapGeneric - For mapping generic rights to standard & specific rights +// +// GetInheritTypes - For retrieving the list of possible sub-object types +// for a container. +// +// PropertySheetCallback - A method which is called back during the various +// security UI property pages so that specialized work can be +// done. Similar to PropSheetPageProc. If uMsg == PSPCB_CREATE, +// then any error return value other than E_NOTIMPL will abort +// the creation of that page. The type of page being created or +// destroyed is indicated by the uPage parameter. +// + +typedef struct _SI_OBJECT_INFO +{ + DWORD dwFlags; + HINSTANCE hInstance; // resources (e.g. strings) reside here + LPWSTR pszServerName; // must be present + LPWSTR pszObjectName; // must be present + LPWSTR pszPageTitle; // only valid if SI_PAGE_TITLE is set + GUID guidObjectType; // only valid if SI_OBJECT_GUID is set +} SI_OBJECT_INFO, *PSI_OBJECT_INFO; + +// SI_OBJECT_INFO flags +#define SI_EDIT_PERMS 0x00000000L // always implied +#define SI_EDIT_OWNER 0x00000001L +#define SI_EDIT_AUDITS 0x00000002L +#define SI_CONTAINER 0x00000004L +#define SI_READONLY 0x00000008L +#define SI_ADVANCED 0x00000010L +#define SI_RESET 0x00000020L //equals to SI_RESET_DACL|SI_RESET_SACL|SI_RESET_OWNER +#define SI_OWNER_READONLY 0x00000040L +#define SI_EDIT_PROPERTIES 0x00000080L +#define SI_OWNER_RECURSE 0x00000100L +#define SI_NO_ACL_PROTECT 0x00000200L +#define SI_NO_TREE_APPLY 0x00000400L +#define SI_PAGE_TITLE 0x00000800L +#define SI_SERVER_IS_DC 0x00001000L +#define SI_RESET_DACL_TREE 0x00004000L +#define SI_RESET_SACL_TREE 0x00008000L +#define SI_OBJECT_GUID 0x00010000L +#define SI_EDIT_EFFECTIVE 0x00020000L +#define SI_RESET_DACL 0x00040000L +#define SI_RESET_SACL 0x00080000L +#define SI_RESET_OWNER 0x00100000L +#define SI_NO_ADDITIONAL_PERMISSION 0x00200000L +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define SI_VIEW_ONLY 0x00400000L +#define SI_PERMS_ELEVATION_REQUIRED 0x01000000L +#define SI_AUDITS_ELEVATION_REQUIRED 0x02000000L +#define SI_OWNER_ELEVATION_REQUIRED 0x04000000L + +#if (NTDDI_VERSION >= NTDDI_WIN8) +#define SI_SCOPE_ELEVATION_REQUIRED 0x08000000L +#endif // NTDDI_VERSION >= NTDDI_WIN8 + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) +#define SI_MAY_WRITE 0x10000000L //not sure if user can write permission + +#if (NTDDI_VERSION >= NTDDI_WIN8) +#define SI_ENABLE_EDIT_ATTRIBUTE_CONDITION 0x20000000L +#define SI_ENABLE_CENTRAL_POLICY 0x40000000L +#define SI_DISABLE_DENY_ACE 0x80000000L +#endif // NTDDI_VERSION >= NTDDI_WIN8 + +#define SI_EDIT_ALL (SI_EDIT_PERMS | SI_EDIT_OWNER | SI_EDIT_AUDITS) + + +typedef struct _SI_ACCESS +{ + const GUID *pguid; + ACCESS_MASK mask; + LPCWSTR pszName; // may be resource ID + DWORD dwFlags; +} SI_ACCESS, *PSI_ACCESS; + +// SI_ACCESS flags +#define SI_ACCESS_SPECIFIC 0x00010000L +#define SI_ACCESS_GENERAL 0x00020000L +#define SI_ACCESS_CONTAINER 0x00040000L // general access, container-only +#define SI_ACCESS_PROPERTY 0x00080000L +// ACE inheritance flags (CONTAINER_INHERIT_ACE, etc.) may also be set. +// They will be used as the inheritance when an access is turned on. + +typedef struct _SI_INHERIT_TYPE +{ + const GUID *pguid; + ULONG dwFlags; + LPCWSTR pszName; // may be resource ID +} SI_INHERIT_TYPE, *PSI_INHERIT_TYPE; + +// SI_INHERIT_TYPE flags are a combination of INHERIT_ONLY_ACE, +// CONTAINER_INHERIT_ACE, and OBJECT_INHERIT_ACE. + +// For EditSecurityEx/2, the argument actually takes a UINT +// The bottom half is SI_PAGE_TYPE, so the enum value for this +// should never be greater than 0x0000ffff +typedef enum _SI_PAGE_TYPE +{ + SI_PAGE_PERM=0, + SI_PAGE_ADVPERM, + SI_PAGE_AUDIT, + SI_PAGE_OWNER, + SI_PAGE_EFFECTIVE, +#if (NTDDI_VERSION >= NTDDI_VISTA) + SI_PAGE_TAKEOWNERSHIP, +#endif // (NTDDI_VERSION >= NTDDI_VISTA) +#if (NTDDI_VERSION >= NTDDI_WIN8) + SI_PAGE_SHARE, +#endif +} SI_PAGE_TYPE; + + +// +// Page types used by the new advanced ACL UI +// +typedef enum _SI_PAGE_ACTIVATED +{ + SI_SHOW_DEFAULT=0, + SI_SHOW_PERM_ACTIVATED, + SI_SHOW_AUDIT_ACTIVATED, + SI_SHOW_OWNER_ACTIVATED, + SI_SHOW_EFFECTIVE_ACTIVATED, + SI_SHOW_SHARE_ACTIVATED, + SI_SHOW_CENTRAL_POLICY_ACTIVATED, +} SI_PAGE_ACTIVATED; + +#define GET_PAGE_TYPE(X) (UINT)((X) & 0x0000ffff) +#define GET_ACTIVATION_TYPE(Y) (UINT)(((Y) >> 16) & 0x0000ffff) +#define COMBINE_PAGE_ACTIVATION(X,Y) (UINT)(((Y) << 16) | X) + + +#define DOBJ_RES_CONT 0x00000001L +#define DOBJ_RES_ROOT 0x00000002L +#define DOBJ_VOL_NTACLS 0x00000004L // NTFS or OFS +#define DOBJ_COND_NTACLS 0x00000008L // Conditional aces supported. +#define DOBJ_RIBBON_LAUNCH 0x00000010L // Invoked from explorer ribbon. + + +// Message to PropertySheetPageCallback (in addition to +// PSPCB_CREATE and PSPCB_RELEASE) +#define PSPCB_SI_INITDIALOG (WM_USER + 1) + + +#undef INTERFACE +#define INTERFACE ISecurityInformation +DECLARE_INTERFACE_IID_(ISecurityInformation, IUnknown, "965FC360-16FF-11d0-91CB-00AA00BBB723") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface)(THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // *** ISecurityInformation methods *** + STDMETHOD(GetObjectInformation) (THIS_ PSI_OBJECT_INFO pObjectInfo ) PURE; + STDMETHOD(GetSecurity) (THIS_ SECURITY_INFORMATION RequestedInformation, + PSECURITY_DESCRIPTOR *ppSecurityDescriptor, + BOOL fDefault ) PURE; + STDMETHOD(SetSecurity) (THIS_ SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor ) PURE; + STDMETHOD(GetAccessRights) (THIS_ const GUID* pguidObjectType, + DWORD dwFlags, // SI_EDIT_AUDITS, SI_EDIT_PROPERTIES + PSI_ACCESS *ppAccess, + ULONG *pcAccesses, + ULONG *piDefaultAccess ) PURE; + STDMETHOD(MapGeneric) (THIS_ const GUID *pguidObjectType, + UCHAR *pAceFlags, + ACCESS_MASK *pMask) PURE; + STDMETHOD(GetInheritTypes) (THIS_ PSI_INHERIT_TYPE *ppInheritTypes, + ULONG *pcInheritTypes ) PURE; + STDMETHOD(PropertySheetPageCallback)(THIS_ HWND hwnd, UINT uMsg, SI_PAGE_TYPE uPage ) PURE; +}; +typedef ISecurityInformation *LPSECURITYINFO; + +#undef INTERFACE +#define INTERFACE ISecurityInformation2 +DECLARE_INTERFACE_IID_(ISecurityInformation2, IUnknown, "c3ccfdb4-6f88-11d2-a3ce-00c04fb1782a") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release) (THIS) PURE; + + // *** ISecurityInformation2 methods *** + STDMETHOD_(BOOL,IsDaclCanonical) (THIS_ IN PACL pDacl) PURE; + STDMETHOD(LookupSids) (THIS_ IN ULONG cSids, IN PSID *rgpSids, OUT LPDATAOBJECT *ppdo) PURE; +}; +typedef ISecurityInformation2 *LPSECURITYINFO2; + +// HGLOBAL containing SID_INFO_LIST returned by ISecurityInformation2::LookupSids +#define CFSTR_ACLUI_SID_INFO_LIST TEXT("CFSTR_ACLUI_SID_INFO_LIST") + +// Data structures corresponding to CFSTR_ACLUI_SID_INFO_LIST +typedef struct _SID_INFO +{ + PSID pSid; + PWSTR pwzCommonName; + PWSTR pwzClass; // Used for selecting icon, e.g. "User" or "Group" + PWSTR pwzUPN; // Optional, may be NULL +} SID_INFO, *PSID_INFO; +typedef struct _SID_INFO_LIST +{ + ULONG cItems; + SID_INFO aSidInfo[ANYSIZE_ARRAY]; +} SID_INFO_LIST, *PSID_INFO_LIST; + +#undef INTERFACE +#define INTERFACE IEffectivePermission +DECLARE_INTERFACE_IID_(IEffectivePermission, IUnknown, "3853DC76-9F35-407c-88A1-D19344365FBC") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release) (THIS) PURE; + + // *** ISecurityInformation methods *** + STDMETHOD(GetEffectivePermission) ( THIS_ const GUID* pguidObjectType, + PSID pUserSid, + LPCWSTR pszServerName, + PSECURITY_DESCRIPTOR pSD, + POBJECT_TYPE_LIST *ppObjectTypeList, + ULONG *pcObjectTypeListLength, + PACCESS_MASK *ppGrantedAccessList, + ULONG *pcGrantedAccessListLength) PURE; +}; +typedef IEffectivePermission *LPEFFECTIVEPERMISSION; + +#undef INTERFACE +#define INTERFACE ISecurityObjectTypeInfo +DECLARE_INTERFACE_IID_(ISecurityObjectTypeInfo, IUnknown, "FC3066EB-79EF-444b-9111-D18A75EBF2FA") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release) (THIS) PURE; + + // *** ISecurityInformation methods *** + STDMETHOD(GetInheritSource)(SECURITY_INFORMATION si, + PACL pACL, + PINHERITED_FROM *ppInheritArray) PURE; +}; +typedef ISecurityObjectTypeInfo *LPSecurityObjectTypeInfo; + +#if (NTDDI_VERSION >= NTDDI_VISTA) +// Support for separation or read-only ACL viewer and elevated ACL editor +#undef INTERFACE +#define INTERFACE ISecurityInformation3 +DECLARE_INTERFACE_IID_(ISecurityInformation3, IUnknown, "E2CDC9CC-31BD-4f8f-8C8B-B641AF516A1A") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release) (THIS) PURE; + + // *** ISecurityInformation3 methods *** + STDMETHOD(GetFullResourceName) (THIS_ _Outptr_ LPWSTR *ppszResourceName) PURE; + STDMETHOD(OpenElevatedEditor) (THIS_ _In_ HWND hWnd, _In_ SI_PAGE_TYPE uPage) PURE; +}; +typedef ISecurityInformation3 *LPSECURITYINFO3; +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +typedef struct _SECURITY_OBJECT +{ + PWSTR pwszName; + _Field_size_bytes_ (cbData) PVOID pData; + DWORD cbData; + _Field_size_bytes_ (cbData2) PVOID pData2; + DWORD cbData2; + DWORD Id; + BOOLEAN fWellKnown; +} SECURITY_OBJECT, *PSECURITY_OBJECT; + +#define SECURITY_OBJECT_ID_OBJECT_SD 1 +#define SECURITY_OBJECT_ID_SHARE 2 +#define SECURITY_OBJECT_ID_CENTRAL_POLICY 3 +#define SECURITY_OBJECT_ID_CENTRAL_ACCESS_RULE 4 + +typedef struct _EFFPERM_RESULT_LIST +{ + BOOLEAN fEvaluated; + ULONG cObjectTypeListLength; + _Field_size_(cObjectTypeListLength) + OBJECT_TYPE_LIST *pObjectTypeList; + _Field_size_(cObjectTypeListLength) + ACCESS_MASK *pGrantedAccessList; +} EFFPERM_RESULT_LIST, *PEFFPERM_RESULT_LIST; + +#undef INTERFACE +#define INTERFACE ISecurityInformation4 +DECLARE_INTERFACE_IID_(ISecurityInformation4, IUnknown, "EA961070-CD14-4621-ACE4-F63C03E583E4") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release) (THIS) PURE; + + // *** ISecurityInformation4 methods *** + STDMETHOD(GetSecondarySecurity) (THIS_ + _Outptr_result_buffer_(*pSecurityObjectCount) PSECURITY_OBJECT *pSecurityObjects, + _Out_ PULONG pSecurityObjectCount) PURE; +}; + +typedef ISecurityInformation4 *LPSECURITYINFO4; + +#undef INTERFACE +#define INTERFACE IEffectivePermission +DECLARE_INTERFACE_IID_(IEffectivePermission2, IUnknown, "941FABCA-DD47-4FCA-90BB-B0E10255F20D") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release) (THIS) PURE; + + // *** IEffectivePermission2 methods *** + //STDMETHOD(GetEffectiveScopePermission) (THIS); + STDMETHOD(ComputeEffectivePermissionWithSecondarySecurity) (THIS_ + _In_ PSID pSid, + _In_opt_ PSID pDeviceSid, + _In_ PCWSTR pszServerName, + _Inout_updates_(dwSecurityObjectCount) PSECURITY_OBJECT pSecurityObjects, + _In_ DWORD dwSecurityObjectCount, + _In_opt_ PTOKEN_GROUPS pUserGroups, + _When_(pUserGroups != NULL && *pAuthzUserGroupsOperations != AUTHZ_SID_OPERATION_REPLACE_ALL, _In_reads_(pUserGroups->GroupCount)) + _In_opt_ PAUTHZ_SID_OPERATION pAuthzUserGroupsOperations, + _In_opt_ PTOKEN_GROUPS pDeviceGroups, + _When_(pDeviceGroups != NULL && *pAuthzDeviceGroupsOperations != AUTHZ_SID_OPERATION_REPLACE_ALL, _In_reads_(pDeviceGroups->GroupCount)) + _In_opt_ PAUTHZ_SID_OPERATION pAuthzDeviceGroupsOperations, + _In_opt_ PAUTHZ_SECURITY_ATTRIBUTES_INFORMATION pAuthzUserClaims, + _When_(pAuthzUserClaims != NULL && *pAuthzUserClaimsOperations != AUTHZ_SECURITY_ATTRIBUTE_OPERATION_REPLACE_ALL, _In_reads_(pAuthzUserClaims->AttributeCount)) + _In_opt_ PAUTHZ_SECURITY_ATTRIBUTE_OPERATION pAuthzUserClaimsOperations, + _In_opt_ PAUTHZ_SECURITY_ATTRIBUTES_INFORMATION pAuthzDeviceClaims, + _When_(pAuthzDeviceClaims != NULL && *pAuthzDeviceClaimsOperations != AUTHZ_SECURITY_ATTRIBUTE_OPERATION_REPLACE_ALL, _In_reads_(pAuthzDeviceClaims->AttributeCount)) + _In_opt_ PAUTHZ_SECURITY_ATTRIBUTE_OPERATION pAuthzDeviceClaimsOperations, + _Inout_updates_(dwSecurityObjectCount) PEFFPERM_RESULT_LIST pEffpermResultLists); +}; +typedef IEffectivePermission2 *LPEFFECTIVEPERMISSION2; +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +// {965FC360-16FF-11d0-91CB-00AA00BBB723} +EXTERN_GUID(IID_ISecurityInformation, 0x965fc360, 0x16ff, 0x11d0, 0x91, 0xcb, 0x0, 0xaa, 0x0, 0xbb, 0xb7, 0x23); +// {c3ccfdb4-6f88-11d2-a3ce-00c04fb1782a} +EXTERN_GUID(IID_ISecurityInformation2, 0xc3ccfdb4, 0x6f88, 0x11d2, 0xa3, 0xce, 0x0, 0xc0, 0x4f, 0xb1, 0x78, 0x2a); +// {3853DC76-9F35-407c-88A1-D19344365FBC} +EXTERN_GUID(IID_IEffectivePermission, 0x3853dc76, 0x9f35, 0x407c, 0x88, 0xa1, 0xd1, 0x93, 0x44, 0x36, 0x5f, 0xbc); +// {FC3066EB-79EF-444b-9111-D18A75EBF2FA} +EXTERN_GUID(IID_ISecurityObjectTypeInfo, 0xfc3066eb, 0x79ef, 0x444b, 0x91, 0x11, 0xd1, 0x8a, 0x75, 0xeb, 0xf2, 0xfa); +#if (NTDDI_VERSION >= NTDDI_VISTA) +// {E2CDC9CC-31BD-4f8f-8C8B-B641AF516A1A} +EXTERN_GUID(IID_ISecurityInformation3, 0xe2cdc9cc, 0x31bd, 0x4f8f, 0x8c, 0x8b, 0xb6, 0x41, 0xaf, 0x51, 0x6a, 0x1a); +#endif // (NTDDI_VERSION >= NTDDI_VISTA) +#if (NTDDI_VERSION >= NTDDI_WIN8) +// {EA961070-CD14-4621-ACE4-F63C03E583E4} +EXTERN_GUID(IID_ISecurityInformation4, 0xea961070, 0xcd14, 0x4621, 0xac, 0xe4, 0xf6, 0x3c, 0x3, 0xe5, 0x83, 0xe4); +// {941FABCA-DD47-4FCA-90BB-B0E10255F20D} +EXTERN_GUID(IID_IEffectivePermission2, 0x941fabca, 0xdd47, 0x4fca, 0x90, 0xbb, 0xb0, 0xe1, 0x2, 0x55, 0xf2, 0xd); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +HPROPSHEETPAGE ACLUIAPI CreateSecurityPage(_In_ LPSECURITYINFO psi ); +BOOL ACLUIAPI EditSecurity(_In_ HWND hwndOwner, + _In_ LPSECURITYINFO psi ); + +#if (NTDDI_VERSION >= NTDDI_VISTA) +HRESULT ACLUIAPI EditSecurityAdvanced(_In_ HWND hwndOwner, + _In_ LPSECURITYINFO psi, + _In_ SI_PAGE_TYPE uSIPage ); +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _ACLUI_H_ */ + +#if (_MSC_VER >= 800) +#if (_MSC_VER >= 1200) +#pragma warning(pop) +#else +#pragma warning(default:4001) +#endif +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivScp.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivScp.Idl new file mode 100644 index 0000000000000000000000000000000000000000..832796e42bb3fff6f02a7f450d0afad8330c42f6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivScp.Idl @@ -0,0 +1,1081 @@ +//+--------------------------------------------------------------------------- +// +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// Contents: Declarations for ActiveX Scripting host applications and script engines +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// ActivScp.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("//") +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("//") +cpp_quote("// Declarations for ActiveX Scripting host applications and script engines.") +cpp_quote("//") + +cpp_quote("") +cpp_quote("#ifndef __ActivScp_h") +cpp_quote("#define __ActivScp_h") +cpp_quote("") +cpp_quote("#include ") +cpp_quote("") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#ifndef DO_NO_IMPORTS +import "ocidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; +#endif + +#ifdef USER_TYPES +#define HWND UserHWND +#define BSTR UserBSTR +#define EXCEPINFO UserEXCEPINFO +#define VARIANT UserVARIANT +#endif + +cpp_quote("/* GUIDs") +cpp_quote(" ********/") +cpp_quote("") + +cpp_quote("#ifndef _NO_SCRIPT_GUIDS") + +cpp_quote("// {F0B7A1A1-9847-11cf-8F20-00805F2CD064}") +cpp_quote("DEFINE_GUID(CATID_ActiveScript, 0xf0b7a1a1, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);") +cpp_quote("") + +cpp_quote("// {F0B7A1A2-9847-11cf-8F20-00805F2CD064}") +cpp_quote("DEFINE_GUID(CATID_ActiveScriptParse, 0xf0b7a1a2, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);") +cpp_quote("") + +cpp_quote("// {F0B7A1A3-9847-11cf-8F20-00805F2CD064}") +cpp_quote("DEFINE_GUID(CATID_ActiveScriptEncode, 0xf0b7a1a3, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);") +cpp_quote("") + +cpp_quote("// {BB1A2AE1-A4F9-11cf-8F20-00805F2CD064}") +cpp_quote("DEFINE_GUID(IID_IActiveScript, 0xbb1a2ae1, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);") +cpp_quote("") + +cpp_quote("// {BB1A2AE2-A4F9-11cf-8F20-00805F2CD064}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptParse32, 0xbb1a2ae2, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);") +cpp_quote("// {C7EF7658-E1EE-480E-97EA-D52CB4D76D17}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptParse64, 0xc7ef7658, 0xe1ee, 0x480e, 0x97, 0xea, 0xd5, 0x2c, 0xb4, 0xd7, 0x6d, 0x17);") +cpp_quote("") + +cpp_quote("// {BB1A2AE3-A4F9-11cf-8F20-00805F2CD064}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptEncode, 0xbb1a2ae3, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);") +cpp_quote("") + +cpp_quote("// {BEE9B76E-CFE3-11d1-B747-00C04FC2B085}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptHostEncode, 0xbee9b76e, 0xcfe3, 0x11d1, 0xb7, 0x47, 0x00, 0xc0, 0x4f, 0xc2, 0xb0, 0x85);") +cpp_quote("") + +cpp_quote("// {1CFF0050-6FDD-11d0-9328-00A0C90DCAA9}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedureOld32, 0x1cff0050, 0x6fdd, 0x11d0, 0x93, 0x28, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);") +cpp_quote("// {21F57128-08C9-4638-BA12-22D15D88DC5C}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedureOld64, 0x21f57128, 0x08c9, 0x4638, 0xba, 0x12, 0x22, 0xd1, 0x5d, 0x88, 0xdc, 0x5c);") +cpp_quote("") + +cpp_quote("// {AA5B6A80-B834-11d0-932F-00A0C90DCAA9}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedure32, 0xaa5b6a80, 0xb834, 0x11d0, 0x93, 0x2f, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);") +cpp_quote("// {C64713B6-E029-4CC5-9200-438B72890B6A}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedure64, 0xc64713b6, 0xe029, 0x4cc5, 0x92, 0x00, 0x43, 0x8b, 0x72, 0x89, 0x0b, 0x6a);") +cpp_quote("") + +cpp_quote("// {71EE5B20-FB04-11d1-B3A8-00A0C911E8B2}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedure2_32, 0x71ee5b20, 0xfb04, 0x11d1, 0xb3, 0xa8, 0x00, 0xa0, 0xc9, 0x11, 0xe8, 0xb2);") +cpp_quote("// {FE7C4271-210C-448D-9F54-76DAB7047B28}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptParseProcedure2_64, 0xfe7c4271, 0x210c, 0x448d, 0x9f, 0x54, 0x76, 0xda, 0xb7, 0x04, 0x7b, 0x28);") +cpp_quote("") + +cpp_quote("// {DB01A1E3-A42B-11cf-8F20-00805F2CD064}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptSite, 0xdb01a1e3, 0xa42b, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);") +cpp_quote("") + +cpp_quote("// {4B7272AE-1955-4bfe-98B0-780621888569}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptSiteTraceInfo, 0x4b7272ae, 0x1955, 0x4bfe, 0x98, 0xb0, 0x78, 0x6, 0x21, 0x88, 0x85, 0x69);") +cpp_quote("") + +cpp_quote("// {D10F6761-83E9-11cf-8F20-00805F2CD064}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptSiteWindow, 0xd10f6761, 0x83e9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);") +cpp_quote("") + +cpp_quote("// {539698A0-CDCA-11CF-A5EB-00AA0047A063}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptSiteInterruptPoll, 0x539698a0, 0xcdca, 0x11cf, 0xa5, 0xeb, 0x00, 0xaa, 0x00, 0x47, 0xa0, 0x63);") +cpp_quote("") + +cpp_quote("// {AEDAE97E-D7EE-4796-B960-7F092AE844AB}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptSiteUIControl, 0xaedae97e, 0xd7ee, 0x4796, 0xb9, 0x60, 0x7f, 0x9, 0x2a, 0xe8, 0x44, 0xab);") +cpp_quote("") + +cpp_quote("// {EAE1BA61-A4ED-11cf-8F20-00805F2CD064}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptError, 0xeae1ba61, 0xa4ed, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64);") +cpp_quote("// {B21FB2A1-5B8F-4963-8C21-21450F84ED7F}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptError64, 0xb21fb2a1, 0x5b8f, 0x4963, 0x8c, 0x21, 0x21, 0x45, 0x0f, 0x84, 0xed, 0x7f);") +cpp_quote("") + +cpp_quote("// {63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9}") +cpp_quote("DEFINE_GUID(IID_IBindEventHandler, 0x63cdbcb0, 0xc1b1, 0x11d0, 0x93, 0x36, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);") +cpp_quote("") + +cpp_quote("// {B8DA6310-E19B-11d0-933C-00A0C90DCAA9}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptStats, 0xb8da6310, 0xe19b, 0x11d0, 0x93, 0x3c, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9);") +cpp_quote("") + +cpp_quote("// {4954E0D0-FBC7-11D1-8410-006008C3FBFC}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptProperty, 0x4954E0D0, 0xFBC7, 0x11D1, 0x84, 0x10, 0x00, 0x60, 0x08, 0xC3, 0xFB, 0xFC);") +cpp_quote("") + +cpp_quote("// {1DC9CA50-06EF-11d2-8415-006008C3FBFC}") +cpp_quote("DEFINE_GUID(IID_ITridentEventSink, 0x1dc9ca50, 0x6ef, 0x11d2, 0x84, 0x15, 0x00, 0x60, 0x08, 0xc3, 0xfb, 0xfc);") +cpp_quote("") + +cpp_quote("// {6AA2C4A0-2B53-11d4-A2A0-00104BD35090}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptGarbageCollector, 0x6aa2c4a0, 0x2b53, 0x11d4, 0xa2, 0xa0, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);") +cpp_quote("") + +cpp_quote("// {764651D0-38DE-11d4-A2A3-00104BD35090}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptSIPInfo, 0x764651d0, 0x38de, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);") +cpp_quote("") + +cpp_quote("// {C35456E7-BEBF-4a1b-86A9-24D56BE8B369}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptTraceInfo, 0xC35456E7, 0xBEBF, 0x4a1b, 0x86, 0xA9, 0x24, 0xD5, 0x6B, 0xE8, 0xB3, 0x69);") +cpp_quote("") + +cpp_quote("// {1629F04E-2799-4db5-8FE5-ACE10F17EBAB}") +cpp_quote("DEFINE_GUID(OID_VBSSIP, 0x1629f04e, 0x2799, 0x4db5, 0x8f, 0xe5, 0xac, 0xe1, 0x0f, 0x17, 0xeb, 0xab);") +cpp_quote("") + +cpp_quote("// {06C9E010-38CE-11d4-A2A3-00104BD35090}") +cpp_quote("DEFINE_GUID(OID_JSSIP, 0x6c9e010, 0x38ce, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);") +cpp_quote("") + +cpp_quote("// {1A610570-38CE-11d4-A2A3-00104BD35090}") +cpp_quote("DEFINE_GUID(OID_WSFSIP, 0x1a610570, 0x38ce, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90);") +cpp_quote("") + +cpp_quote("// {58562769-ED52-42f7-8403-4963514E1F11}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptStringCompare, 0x58562769, 0xED52, 0x42f7, 0x84, 0x03, 0x49, 0x63, 0x51, 0x4E, 0x1F, 0x11);") +cpp_quote("") + +cpp_quote("#endif // _NO_SCRIPT_GUIDS") +cpp_quote("") + +cpp_quote("// Constants used by ActiveX Scripting:") +cpp_quote("//") +cpp_quote("") +cpp_quote("/* IActiveScript::AddNamedItem() input flags */") +cpp_quote("") +cpp_quote("#define SCRIPTITEM_ISVISIBLE 0x00000002") +cpp_quote("#define SCRIPTITEM_ISSOURCE 0x00000004") +cpp_quote("#define SCRIPTITEM_GLOBALMEMBERS 0x00000008") +cpp_quote("#define SCRIPTITEM_ISPERSISTENT 0x00000040") +cpp_quote("#define SCRIPTITEM_CODEONLY 0x00000200") +cpp_quote("#define SCRIPTITEM_NOCODE 0x00000400") +cpp_quote("") +cpp_quote("#define SCRIPTITEM_ALL_FLAGS (SCRIPTITEM_ISSOURCE | \\") +cpp_quote(" SCRIPTITEM_ISVISIBLE | \\") +cpp_quote(" SCRIPTITEM_ISPERSISTENT | \\") +cpp_quote(" SCRIPTITEM_GLOBALMEMBERS | \\") +cpp_quote(" SCRIPTITEM_NOCODE | \\") +cpp_quote(" SCRIPTITEM_CODEONLY)") +cpp_quote("") +cpp_quote("/* IActiveScript::AddTypeLib() input flags */") +cpp_quote("") +cpp_quote("#define SCRIPTTYPELIB_ISCONTROL 0x00000010") +cpp_quote("#define SCRIPTTYPELIB_ISPERSISTENT 0x00000040") +cpp_quote("#define SCRIPTTYPELIB_ALL_FLAGS (SCRIPTTYPELIB_ISCONTROL | SCRIPTTYPELIB_ISPERSISTENT)") +cpp_quote("") +cpp_quote("/* IActiveScriptParse::AddScriptlet() and IActiveScriptParse::ParseScriptText() input flags */") +cpp_quote("") +cpp_quote("#define SCRIPTTEXT_DELAYEXECUTION 0x00000001") +cpp_quote("#define SCRIPTTEXT_ISVISIBLE 0x00000002") +cpp_quote("#define SCRIPTTEXT_ISEXPRESSION 0x00000020") +cpp_quote("#define SCRIPTTEXT_ISPERSISTENT 0x00000040") +cpp_quote("#define SCRIPTTEXT_HOSTMANAGESSOURCE 0x00000080") +cpp_quote("#define SCRIPTTEXT_ISXDOMAIN 0x00000100") +cpp_quote("#define SCRIPTTEXT_ISNONUSERCODE 0x00000200") +cpp_quote("#define SCRIPTTEXT_ALL_FLAGS (SCRIPTTEXT_DELAYEXECUTION | \\") +cpp_quote(" SCRIPTTEXT_ISVISIBLE | \\") +cpp_quote(" SCRIPTTEXT_ISEXPRESSION | \\") +cpp_quote(" SCRIPTTEXT_ISPERSISTENT | \\") +cpp_quote(" SCRIPTTEXT_HOSTMANAGESSOURCE | \\") +cpp_quote(" SCRIPTTEXT_ISXDOMAIN | \\") +cpp_quote(" SCRIPTTEXT_ISNONUSERCODE)") +cpp_quote("") +cpp_quote("/* IActiveScriptParseProcedure::ParseProcedureText() input flags */") +cpp_quote("") +cpp_quote("#define SCRIPTPROC_ISEXPRESSION 0x00000020") +cpp_quote("#define SCRIPTPROC_HOSTMANAGESSOURCE 0x00000080") +cpp_quote("#define SCRIPTPROC_IMPLICIT_THIS 0x00000100") +cpp_quote("#define SCRIPTPROC_IMPLICIT_PARENTS 0x00000200") +cpp_quote("#define SCRIPTPROC_ISXDOMAIN 0x00000400") +cpp_quote("#define SCRIPTPROC_ALL_FLAGS (SCRIPTPROC_HOSTMANAGESSOURCE | \\") +cpp_quote(" SCRIPTPROC_ISEXPRESSION | \\") +cpp_quote(" SCRIPTPROC_IMPLICIT_THIS | \\") +cpp_quote(" SCRIPTPROC_IMPLICIT_PARENTS | \\") +cpp_quote(" SCRIPTPROC_ISXDOMAIN)") +cpp_quote("") +cpp_quote("/* IActiveScriptSite::GetItemInfo() input flags */") +cpp_quote("") +cpp_quote("#define SCRIPTINFO_IUNKNOWN 0x00000001") +cpp_quote("#define SCRIPTINFO_ITYPEINFO 0x00000002") +cpp_quote("#define SCRIPTINFO_ALL_FLAGS (SCRIPTINFO_IUNKNOWN | \\") +cpp_quote(" SCRIPTINFO_ITYPEINFO)") +cpp_quote("") +cpp_quote("/* IActiveScript::Interrupt() Flags */") +cpp_quote("") +cpp_quote("#define SCRIPTINTERRUPT_DEBUG 0x00000001") +cpp_quote("#define SCRIPTINTERRUPT_RAISEEXCEPTION 0x00000002") +cpp_quote("#define SCRIPTINTERRUPT_ALL_FLAGS (SCRIPTINTERRUPT_DEBUG | \\") +cpp_quote(" SCRIPTINTERRUPT_RAISEEXCEPTION)") +cpp_quote("") +cpp_quote("/* IActiveScriptStats::GetStat() values */") +cpp_quote("") +cpp_quote("#define SCRIPTSTAT_STATEMENT_COUNT 1") +cpp_quote("#define SCRIPTSTAT_INSTRUCTION_COUNT 2") +cpp_quote("#define SCRIPTSTAT_INTSTRUCTION_TIME 3") +cpp_quote("#define SCRIPTSTAT_TOTAL_TIME 4") +cpp_quote("") +cpp_quote("/* IActiveScriptEncode::AddSection() input flags */") +cpp_quote("") +cpp_quote("#define SCRIPT_ENCODE_SECTION 0x00000001") +cpp_quote("") +cpp_quote("#define SCRIPT_ENCODE_DEFAULT_LANGUAGE 0x00000001") +cpp_quote("#define SCRIPT_ENCODE_NO_ASP_LANGUAGE 0x00000002") +cpp_quote("") +cpp_quote("/* Properties for IActiveScriptProperty */") +cpp_quote("#define SCRIPTPROP_NAME 0x00000000") +cpp_quote("#define SCRIPTPROP_MAJORVERSION 0x00000001") +cpp_quote("#define SCRIPTPROP_MINORVERSION 0x00000002") +cpp_quote("#define SCRIPTPROP_BUILDNUMBER 0x00000003") +cpp_quote("") +cpp_quote("#define SCRIPTPROP_DELAYEDEVENTSINKING 0x00001000") +cpp_quote("#define SCRIPTPROP_CATCHEXCEPTION 0x00001001") +cpp_quote("#define SCRIPTPROP_CONVERSIONLCID 0x00001002") +cpp_quote("#define SCRIPTPROP_HOSTSTACKREQUIRED 0x00001003") +cpp_quote("#define SCRIPTPROP_SCRIPTSAREFULLYTRUSTED 0x00001004") +cpp_quote("") +cpp_quote("#define SCRIPTPROP_DEBUGGER 0x00001100") +cpp_quote("#define SCRIPTPROP_JITDEBUG 0x00001101") +cpp_quote("") +cpp_quote("#define SCRIPTPROP_GCCONTROLSOFTCLOSE 0x00002000") +cpp_quote("") +cpp_quote("#define SCRIPTPROP_INTEGERMODE 0x00003000") +cpp_quote("#define SCRIPTPROP_STRINGCOMPAREINSTANCE 0x00003001") +cpp_quote("") +cpp_quote("#define SCRIPTPROP_INVOKEVERSIONING 0x00004000") +cpp_quote("") +cpp_quote("// These properties are defined and available, but are not") +cpp_quote("// officially supported.") +cpp_quote("#define SCRIPTPROP_HACK_FIBERSUPPORT 0x70000000") +cpp_quote("#define SCRIPTPROP_HACK_TRIDENTEVENTSINK 0x70000001") +cpp_quote("#define SCRIPTPROP_ABBREVIATE_GLOBALNAME_RESOLUTION 0x70000002") +cpp_quote("#define SCRIPTPROP_HOSTKEEPALIVE 0x70000004") +cpp_quote("") + +cpp_quote("// An error has been recorded to be passed between script engine ") +cpp_quote("// and host. The host needs to pass the error code to caller. ") +cpp_quote("#define SCRIPT_E_RECORDED 0x86664004L") + +cpp_quote("// Script engine has reported an unhandled exception to the host via ") +cpp_quote("// IActiveScriptSite::OnScriptError. Host can ignore this error") +cpp_quote("#define SCRIPT_E_REPORTED 0x80020101L ") + +cpp_quote("// An script error is being propagated to the caller which might be in a different thread") +cpp_quote("// host should pass the error code to the caller.") +cpp_quote("#define SCRIPT_E_PROPAGATE 0x80020102L") + +cpp_quote("") +cpp_quote("/* script language version values for SCRIPTPROP_INVOKEVERSIONING property */") +cpp_quote("") +typedef enum tagSCRIPTLANGUAGEVERSION +{ + SCRIPTLANGUAGEVERSION_DEFAULT = 0, + SCRIPTLANGUAGEVERSION_5_7 = 1, + SCRIPTLANGUAGEVERSION_5_8 = 2, + SCRIPTLANGUAGEVERSION_MAX = 255 +} SCRIPTLANGUAGEVERSION ; + + +typedef enum tagSCRIPTSTATE { + SCRIPTSTATE_UNINITIALIZED = 0, + SCRIPTSTATE_INITIALIZED = 5, + SCRIPTSTATE_STARTED = 1, + SCRIPTSTATE_CONNECTED = 2, + SCRIPTSTATE_DISCONNECTED = 3, + SCRIPTSTATE_CLOSED = 4, + +} SCRIPTSTATE ; + +typedef enum tagSCRIPTTRACEINFO { + SCRIPTTRACEINFO_SCRIPTSTART = 0, + SCRIPTTRACEINFO_SCRIPTEND = 1, + SCRIPTTRACEINFO_COMCALLSTART = 2, + SCRIPTTRACEINFO_COMCALLEND = 3, + SCRIPTTRACEINFO_CREATEOBJSTART = 4, + SCRIPTTRACEINFO_CREATEOBJEND = 5, + SCRIPTTRACEINFO_GETOBJSTART = 6, + SCRIPTTRACEINFO_GETOBJEND = 7, + +} SCRIPTTRACEINFO ; + +cpp_quote("") +cpp_quote("/* script thread state values */") +cpp_quote("") + +typedef enum tagSCRIPTTHREADSTATE { + SCRIPTTHREADSTATE_NOTINSCRIPT = 0, + SCRIPTTHREADSTATE_RUNNING = 1, +} SCRIPTTHREADSTATE ; + +cpp_quote("") +cpp_quote("/* IActiveScriptCollectGarbage constants */") +cpp_quote("") + +typedef enum tagSCRIPTGCTYPE { + SCRIPTGCTYPE_NORMAL = 0, + SCRIPTGCTYPE_EXHAUSTIVE = 1, +} SCRIPTGCTYPE; + +cpp_quote("") +cpp_quote("/* IActiveScriptSiteUIControl constants*/") +cpp_quote("") + +typedef enum tagSCRIPTUICITEM { + SCRIPTUICITEM_INPUTBOX = 1, + SCRIPTUICITEM_MSGBOX = 2, +} SCRIPTUICITEM; + +cpp_quote("") + +typedef enum tagSCRIPTUICHANDLING { + SCRIPTUICHANDLING_ALLOW = 0, + SCRIPTUICHANDLING_NOUIERROR = 1, + SCRIPTUICHANDLING_NOUIDEFAULT = 2, +} SCRIPTUICHANDLING; + +cpp_quote("") +cpp_quote("/* Thread IDs */") +cpp_quote("") + +typedef DWORD SCRIPTTHREADID; + +cpp_quote("") +cpp_quote("#define SCRIPTTHREADID_CURRENT ((SCRIPTTHREADID)-1)") +cpp_quote("#define SCRIPTTHREADID_BASE ((SCRIPTTHREADID)-2)") +cpp_quote("#define SCRIPTTHREADID_ALL ((SCRIPTTHREADID)-3)") +cpp_quote("") +cpp_quote("/* Structures */") +cpp_quote("") + +cpp_quote("/* Interfaces") +cpp_quote(" *************/") +cpp_quote("") + +interface IActiveScriptSite; +interface IActiveScriptError; +interface IActiveScriptError64; +interface IActiveScriptSiteWindow; +interface IActiveScriptSiteUIControl; +interface IActiveScriptSiteInterruptPoll; +interface IActiveScript; +interface IActiveScriptParse32; +interface IActiveScriptParse64; +interface IActiveScriptParseProcedureOld32; +interface IActiveScriptParseProcedureOld64; +interface IActiveScriptParseProcedure32; +interface IActiveScriptParseProcedure64; +interface IActiveScriptParseProcedure2_32; +interface IActiveScriptParseProcedure2_64; +interface IActiveScriptEncode; +interface IActiveScriptHostEncode; +interface IBindEventHandler; +interface IActiveScriptStats; +interface IActiveScriptProperty; +interface ITridentEventSink; +interface IActiveScriptGarbageCollector; +interface IActiveScriptSIPInfo; +interface IActiveScriptStringCompare; + +cpp_quote("") + +[ + object, + uuid(DB01A1E3-A42B-11cf-8F20-00805F2CD064), + pointer_default(unique) +] +interface IActiveScriptSite : IUnknown +{ + HRESULT GetLCID( + [out] LCID *plcid + ); + + HRESULT GetItemInfo( + [in] LPCOLESTR pstrName, + [in] DWORD dwReturnMask, + [out] IUnknown **ppiunkItem, + [out] ITypeInfo **ppti + ); + + HRESULT GetDocVersionString( + [out] BSTR *pbstrVersion + ); + + HRESULT OnScriptTerminate( + [in] const VARIANT *pvarResult, + [in] const EXCEPINFO *pexcepinfo + ); + + HRESULT OnStateChange( + [in] SCRIPTSTATE ssScriptState + ); + + HRESULT OnScriptError( + [in] IActiveScriptError *pscripterror + ); + + HRESULT OnEnterScript(void); + + HRESULT OnLeaveScript(void); +} + +[ + object, + uuid(EAE1BA61-A4ED-11cf-8F20-00805F2CD064), + pointer_default(unique) +] +interface IActiveScriptError : IUnknown +{ + [local] + HRESULT GetExceptionInfo( + [out] EXCEPINFO *pexcepinfo + ); + + [call_as(GetExceptionInfo)] + HRESULT RemoteGetExceptionInfo( + [out] EXCEPINFO *pexcepinfo + ); + + HRESULT GetSourcePosition( + [out] DWORD *pdwSourceContext, + [out] ULONG *pulLineNumber, + [out] LONG *plCharacterPosition // -1 --> unknown + ); + + HRESULT GetSourceLineText( + [out] BSTR *pbstrSourceLine + ); +} + +[ + object, + uuid(B21FB2A1-5B8F-4963-8C21-21450F84ED7F), + pointer_default(unique) +] +interface IActiveScriptError64 : IActiveScriptError +{ + HRESULT GetSourcePosition64( + [out] DWORDLONG *pdwSourceContext, + [out] ULONG *pulLineNumber, + [out] LONG *plCharacterPosition // -1 --> unknown + ); +} + +[ + object, + uuid(D10F6761-83E9-11cf-8F20-00805F2CD064), + pointer_default(unique) +] +interface IActiveScriptSiteWindow : IUnknown +{ + HRESULT GetWindow( + [out] HWND *phwnd + ); + + HRESULT EnableModeless( + [in] BOOL fEnable + ); +} + +[ + object, + uuid(AEDAE97E-D7EE-4796-B960-7F092AE844AB), + pointer_default(unique) +] +interface IActiveScriptSiteUIControl : IUnknown +{ + HRESULT GetUIBehavior( + [in] SCRIPTUICITEM UicItem, + [out] SCRIPTUICHANDLING * pUicHandling + ); +} + + +[ + object, + uuid(539698A0-CDCA-11CF-A5EB-00AA0047A063), + pointer_default(unique) +] +interface IActiveScriptSiteInterruptPoll : IUnknown +{ + HRESULT QueryContinue(void); +} + +[ + object, + uuid(BB1A2AE1-A4F9-11cf-8F20-00805F2CD064), + pointer_default(unique) +] +interface IActiveScript : IUnknown{ + HRESULT SetScriptSite( + [in] IActiveScriptSite *pass + ); + + HRESULT GetScriptSite( + [in] REFIID riid, + [out, iid_is(riid)] void **ppvObject + ); + + HRESULT SetScriptState( + [in] SCRIPTSTATE ss + ); + + HRESULT GetScriptState( + [out] SCRIPTSTATE *pssState + ); + + HRESULT Close(void); + + HRESULT AddNamedItem( + [in] LPCOLESTR pstrName, + [in] DWORD dwFlags + ); + + HRESULT AddTypeLib( + [in] REFGUID rguidTypeLib, + [in] DWORD dwMajor, + [in] DWORD dwMinor, + [in] DWORD dwFlags + ); + + HRESULT GetScriptDispatch( + [in] LPCOLESTR pstrItemName, + [out] IDispatch **ppdisp + ); + + HRESULT GetCurrentScriptThreadID( + [out] SCRIPTTHREADID *pstidThread + ); + + HRESULT GetScriptThreadID( + [in] DWORD dwWin32ThreadId, + [out] SCRIPTTHREADID *pstidThread + ); + + HRESULT GetScriptThreadState( + [in] SCRIPTTHREADID stidThread, + [out] SCRIPTTHREADSTATE *pstsState + ); + + HRESULT InterruptScriptThread( + [in] SCRIPTTHREADID stidThread, + [in] const EXCEPINFO *pexcepinfo, + [in] DWORD dwFlags + ); + + HRESULT Clone( + [out] IActiveScript **ppscript + ); +} + +[ + object, + uuid(BB1A2AE2-A4F9-11cf-8F20-00805F2CD064), + pointer_default(unique) +] +interface IActiveScriptParse32 : IUnknown +{ + HRESULT InitNew(void); + + HRESULT AddScriptlet( + [in] LPCOLESTR pstrDefaultName, + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrItemName, + [in] LPCOLESTR pstrSubItemName, + [in] LPCOLESTR pstrEventName, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] BSTR *pbstrName, + [out] EXCEPINFO *pexcepinfo + ); + + HRESULT ParseScriptText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] VARIANT *pvarResult, + [out] EXCEPINFO *pexcepinfo + ); + +} + +[ + object, + uuid(C7EF7658-E1EE-480E-97EA-D52CB4D76D17), + pointer_default(unique) +] +interface IActiveScriptParse64 : IUnknown +{ + HRESULT InitNew(void); + + HRESULT AddScriptlet( + [in] LPCOLESTR pstrDefaultName, + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrItemName, + [in] LPCOLESTR pstrSubItemName, + [in] LPCOLESTR pstrEventName, + [in] LPCOLESTR pstrDelimiter, + [in] DWORDLONG dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] BSTR *pbstrName, + [out] EXCEPINFO *pexcepinfo + ); + + HRESULT ParseScriptText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORDLONG dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] VARIANT *pvarResult, + [out] EXCEPINFO *pexcepinfo + ); + +} + +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IActiveScriptParse IActiveScriptParse64") +cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse64") +cpp_quote("#else") +cpp_quote("#define IActiveScriptParse IActiveScriptParse32") +cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse32") +cpp_quote("#endif") +cpp_quote("typedef IActiveScriptParse *PIActiveScriptParse;") +cpp_quote("") + +[ + object, + uuid(1CFF0050-6FDD-11d0-9328-00A0C90DCAA9), + pointer_default(unique) +] +interface IActiveScriptParseProcedureOld32 : IUnknown +{ + HRESULT ParseProcedureText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrFormalParams, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] IDispatch **ppdisp + ); +} + +[ + object, + uuid(21F57128-08C9-4638-BA12-22D15D88DC5C), + pointer_default(unique) +] +interface IActiveScriptParseProcedureOld64 : IUnknown +{ + HRESULT ParseProcedureText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrFormalParams, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORDLONG dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] IDispatch **ppdisp + ); +} + +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld64") +cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld64") +cpp_quote("#else") +cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld32") +cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld32") +cpp_quote("#endif") +cpp_quote("typedef IActiveScriptParseProcedureOld *PIActiveScriptParseProcedureOld;") + +[ + object, + uuid(AA5B6A80-B834-11d0-932F-00A0C90DCAA9), + pointer_default(unique) +] +interface IActiveScriptParseProcedure32 : IUnknown +{ + HRESULT ParseProcedureText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrFormalParams, + [in] LPCOLESTR pstrProcedureName, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORD dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] IDispatch **ppdisp + ); +} + +[ + object, + uuid(C64713B6-E029-4CC5-9200-438B72890B6A), + pointer_default(unique) +] +interface IActiveScriptParseProcedure64 : IUnknown +{ + HRESULT ParseProcedureText( + [in] LPCOLESTR pstrCode, + [in] LPCOLESTR pstrFormalParams, + [in] LPCOLESTR pstrProcedureName, + [in] LPCOLESTR pstrItemName, + [in] IUnknown *punkContext, + [in] LPCOLESTR pstrDelimiter, + [in] DWORDLONG dwSourceContextCookie, + [in] ULONG ulStartingLineNumber, + [in] DWORD dwFlags, + [out] IDispatch **ppdisp + ); +} + +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure64") +cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure64") +cpp_quote("#else") +cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure32") +cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure32") +cpp_quote("#endif") +cpp_quote("typedef IActiveScriptParseProcedure *PIActiveScriptParseProcedure;") + +[ + object, + uuid(71EE5B20-FB04-11d1-B3A8-00A0C911E8B2), + pointer_default(unique) +] +interface IActiveScriptParseProcedure2_32 : IActiveScriptParseProcedure32 +{} + +[ + object, + uuid(FE7C4271-210C-448D-9F54-76DAB7047B28), + pointer_default(unique) +] +interface IActiveScriptParseProcedure2_64 : IActiveScriptParseProcedure64 +{} + +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_64") +cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_64") +cpp_quote("#else") +cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_32") +cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_32") +cpp_quote("#endif") +cpp_quote("typedef IActiveScriptParseProcedure2 *PIActiveScriptParseProcedure2;") + +[ + object, + uuid(BB1A2AE3-A4F9-11cf-8F20-00805F2CD064), + pointer_default(unique) +] +interface IActiveScriptEncode : IUnknown +{ + // NOTES: + // (*) pchIn must not be NULL, cchIn must be > 0 + // (*) pchIn does not need to be NULL terminated + // (*) cchOut must contain size (OLECHAR count) of szOut buffer + // (*) *pcchRet will contain size (OLECHAR count) of encoded section + // (*) if pchOut is NULL or cchOut is less than required buffer size, + // *pcchRet will be set to required size and ERROR_INSUFFICIENT_BUFFER + // will be returned + // (*) if buffer is less than required size, buffer contents (up to pchOut[*pcchRet-1]) + // may be modified + // (*) pchOut will not be NULL terminated + HRESULT EncodeSection( + [in] LPCOLESTR pchIn, + [in] DWORD cchIn, + [in, out] LPOLESTR pchOut, + [in] DWORD cchOut, + [in, out] DWORD *pcchRet + ); + + // NOTES: + // (*) pchIn must not be NULL, cchIn must be > 0 + // (*) pchIn does not need to be NULL terminated + // (*) cchOut must contain size (OLECHAR count) of szOut buffer + // (*) *pcchRet will contain size (OLECHAR count) of encoded section + // (*) if pchOut is NULL or cchOut is less than required buffer size, + // *pcchRet will be set to required size and ERROR_INSUFFICIENT_BUFFER + // will be returned + // (*) if buffer is less than required size, buffer contents (up to pchOut[*pcchRet-1]) + // may be modified + // (*) pchOut will not be NULL terminated + HRESULT DecodeScript( + [in] LPCOLESTR pchIn, + [in] DWORD cchIn, + [in, out] LPOLESTR pchOut, + [in] DWORD cchOut, + [in, out] DWORD *pcchRet + ); + + // NOTES: + // (*) Caller must free BSTR + HRESULT GetEncodeProgId( + [in, out] BSTR *pbstrOut + ); +} + +[ + object, + uuid(BEE9B76E-CFE3-11d1-B747-00C04FC2B085), + pointer_default(unique) +] +interface IActiveScriptHostEncode : IUnknown +{ + // NOTES: + // (*) szInFile must not be NULL + // (*) szInFile must be NULL-terminated + // (*) caller must free bstrOutFile + HRESULT EncodeScriptHostFile( + [in] BSTR bstrInFile, + [in, out] BSTR *pbstrOutFile, + [in] unsigned long cFlags, + [in] BSTR bstrDefaultLang + ); +} + +[ + object, + uuid(63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9), + pointer_default(unique) +] +interface IBindEventHandler : IUnknown +{ + HRESULT BindHandler( + [in] LPCOLESTR pstrEvent, + [in] IDispatch *pdisp + ); +} + + +[ + object, + uuid(B8DA6310-E19B-11d0-933C-00A0C90DCAA9), + pointer_default(unique) +] +interface IActiveScriptStats : IUnknown +{ + HRESULT GetStat( + [in] DWORD stid, + [out] ULONG *pluHi, + [out] ULONG *pluLo + ); + + HRESULT GetStatEx( + [in] REFGUID guid, + [out] ULONG *pluHi, + [out] ULONG *pluLo + ); + + HRESULT ResetStats(void); +} + + +[ + object, + uuid(4954E0D0-FBC7-11D1-8410-006008C3FBFC), + pointer_default(unique) +] +interface IActiveScriptProperty : IUnknown +{ + // NOTES: + // (*) This is a generic information passing interface to allow + // the host to get and set pre-defined properties of the engine + // (*) dwProperty must be a SCRIPTPROP_* value + // (*) pvarIndex (when used) further identifies the dwProperty + // (*) pvarValue is the value of the property, can be any VARIANT including + // binary data in a VT_BSTR, most common is VT_BOOL + HRESULT GetProperty( + [in] DWORD dwProperty, + [in] VARIANT *pvarIndex, + [out] VARIANT *pvarValue + ); + HRESULT SetProperty( + [in] DWORD dwProperty, + [in] VARIANT *pvarIndex, + [in] VARIANT *pvarValue + ); +} + + +[ + object, + uuid(1DC9CA50-06EF-11d2-8415-006008C3FBFC), + pointer_default(unique) +] +interface ITridentEventSink : IUnknown +{ + HRESULT FireEvent( + [in] LPCOLESTR pstrEvent, + [in] DISPPARAMS *pdp, + [out] VARIANT *pvarRes, + [out] EXCEPINFO *pei + ); +} + +[ + object, + uuid(6AA2C4A0-2B53-11d4-A2A0-00104BD35090), + pointer_default(unique) +] +interface IActiveScriptGarbageCollector : IUnknown +{ + HRESULT CollectGarbage( + SCRIPTGCTYPE scriptgctype + ); +} + +[ + object, + uuid(764651D0-38DE-11d4-A2A3-00104BD35090), + pointer_default(unique) +] +interface IActiveScriptSIPInfo : IUnknown +{ + HRESULT GetSIPOID( + [out] GUID * poid_sip + ); +} + +[ + object, + uuid(4B7272AE-1955-4bfe-98B0-780621888569), + pointer_default(unique) +] +interface IActiveScriptSiteTraceInfo : IUnknown +{ + + // SendScriptTraceInfo + // stiEventType: the SCRIPTTRACEINFO type for this script statement + // guidContextID: the host's ContextID cookie + // dwScriptContextCookie: the SCRIPT block ContextID cookie + // lScriptStatementStart: the start character count index of the executing script statement + // lScriptStatementEnd: the end character count index of the executing script statement + // dwReserved: reserved for any unforseen need + // + // Return Values: + // S_OK: Success + // E_NOTIMPL: Not implemented + // + HRESULT SendScriptTraceInfo( + [in] SCRIPTTRACEINFO stiEventType, + [in] GUID guidContextID, + [in] DWORD dwScriptContextCookie, + [in] LONG lScriptStatementStart, + [in] LONG lScriptStatementEnd, + [in] DWORD64 dwReserved + ); +} + +[ + object, + uuid(C35456E7-BEBF-4a1b-86A9-24D56BE8B369), + pointer_default(unique) +] +interface IActiveScriptTraceInfo : IUnknown +{ + // StartScriptTracing + // pSiteTraceInfo: pointer to the host's IActiveScriptSiteTraceInfo + // + // Return Values: + // S_OK: Success + // E_POINTER: pSiteTraceInfo is a NULL pointer. + // E_NOTIMPL: Not implemented + // + HRESULT StartScriptTracing( + [in] IActiveScriptSiteTraceInfo * pSiteTraceInfo, + [in] GUID guidContextID + ); + + + // StopScriptTracing + // + // + // Return Values: + // S_OK: Success + // E_NOTIMPL: Not implemented + // + HRESULT StopScriptTracing(void); +} + +[ + object, + uuid(58562769-ED52-42f7-8403-4963514E1F11), + pointer_default(unique) +] +interface IActiveScriptStringCompare : IUnknown +{ + // StrComp + // bszStr1: first string + // bszStr2: second string + // iRet: 0 if identical, -1 if bszStr1 < bszStr2, 1 if bszStr1 > bszStr2 + // + // Return Values: + // S_OK: Success + // E_NOTIMPL: Not implemented + // + HRESULT StrComp( + [in] BSTR bszStr1, + [in] BSTR bszStr2, + [out, retval] LONG* iRet + ); +} + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("") +cpp_quote("#endif // __ActivScp_h") +cpp_quote("") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivScp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivScp.h new file mode 100644 index 0000000000000000000000000000000000000000..448eeaa7e279b13411433d80b2a48f25cc0a3459 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivScp.h @@ -0,0 +1,3546 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __activscp_h__ +#define __activscp_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IActiveScriptSite_FWD_DEFINED__ +#define __IActiveScriptSite_FWD_DEFINED__ +typedef interface IActiveScriptSite IActiveScriptSite; + +#endif /* __IActiveScriptSite_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptError_FWD_DEFINED__ +#define __IActiveScriptError_FWD_DEFINED__ +typedef interface IActiveScriptError IActiveScriptError; + +#endif /* __IActiveScriptError_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptError64_FWD_DEFINED__ +#define __IActiveScriptError64_FWD_DEFINED__ +typedef interface IActiveScriptError64 IActiveScriptError64; + +#endif /* __IActiveScriptError64_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSiteWindow_FWD_DEFINED__ +#define __IActiveScriptSiteWindow_FWD_DEFINED__ +typedef interface IActiveScriptSiteWindow IActiveScriptSiteWindow; + +#endif /* __IActiveScriptSiteWindow_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSiteUIControl_FWD_DEFINED__ +#define __IActiveScriptSiteUIControl_FWD_DEFINED__ +typedef interface IActiveScriptSiteUIControl IActiveScriptSiteUIControl; + +#endif /* __IActiveScriptSiteUIControl_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSiteInterruptPoll_FWD_DEFINED__ +#define __IActiveScriptSiteInterruptPoll_FWD_DEFINED__ +typedef interface IActiveScriptSiteInterruptPoll IActiveScriptSiteInterruptPoll; + +#endif /* __IActiveScriptSiteInterruptPoll_FWD_DEFINED__ */ + + +#ifndef __IActiveScript_FWD_DEFINED__ +#define __IActiveScript_FWD_DEFINED__ +typedef interface IActiveScript IActiveScript; + +#endif /* __IActiveScript_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptParse32_FWD_DEFINED__ +#define __IActiveScriptParse32_FWD_DEFINED__ +typedef interface IActiveScriptParse32 IActiveScriptParse32; + +#endif /* __IActiveScriptParse32_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptParse64_FWD_DEFINED__ +#define __IActiveScriptParse64_FWD_DEFINED__ +typedef interface IActiveScriptParse64 IActiveScriptParse64; + +#endif /* __IActiveScriptParse64_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptParseProcedureOld32_FWD_DEFINED__ +#define __IActiveScriptParseProcedureOld32_FWD_DEFINED__ +typedef interface IActiveScriptParseProcedureOld32 IActiveScriptParseProcedureOld32; + +#endif /* __IActiveScriptParseProcedureOld32_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptParseProcedureOld64_FWD_DEFINED__ +#define __IActiveScriptParseProcedureOld64_FWD_DEFINED__ +typedef interface IActiveScriptParseProcedureOld64 IActiveScriptParseProcedureOld64; + +#endif /* __IActiveScriptParseProcedureOld64_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptParseProcedure32_FWD_DEFINED__ +#define __IActiveScriptParseProcedure32_FWD_DEFINED__ +typedef interface IActiveScriptParseProcedure32 IActiveScriptParseProcedure32; + +#endif /* __IActiveScriptParseProcedure32_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptParseProcedure64_FWD_DEFINED__ +#define __IActiveScriptParseProcedure64_FWD_DEFINED__ +typedef interface IActiveScriptParseProcedure64 IActiveScriptParseProcedure64; + +#endif /* __IActiveScriptParseProcedure64_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptParseProcedure2_32_FWD_DEFINED__ +#define __IActiveScriptParseProcedure2_32_FWD_DEFINED__ +typedef interface IActiveScriptParseProcedure2_32 IActiveScriptParseProcedure2_32; + +#endif /* __IActiveScriptParseProcedure2_32_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptParseProcedure2_64_FWD_DEFINED__ +#define __IActiveScriptParseProcedure2_64_FWD_DEFINED__ +typedef interface IActiveScriptParseProcedure2_64 IActiveScriptParseProcedure2_64; + +#endif /* __IActiveScriptParseProcedure2_64_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptEncode_FWD_DEFINED__ +#define __IActiveScriptEncode_FWD_DEFINED__ +typedef interface IActiveScriptEncode IActiveScriptEncode; + +#endif /* __IActiveScriptEncode_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptHostEncode_FWD_DEFINED__ +#define __IActiveScriptHostEncode_FWD_DEFINED__ +typedef interface IActiveScriptHostEncode IActiveScriptHostEncode; + +#endif /* __IActiveScriptHostEncode_FWD_DEFINED__ */ + + +#ifndef __IBindEventHandler_FWD_DEFINED__ +#define __IBindEventHandler_FWD_DEFINED__ +typedef interface IBindEventHandler IBindEventHandler; + +#endif /* __IBindEventHandler_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptStats_FWD_DEFINED__ +#define __IActiveScriptStats_FWD_DEFINED__ +typedef interface IActiveScriptStats IActiveScriptStats; + +#endif /* __IActiveScriptStats_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptProperty_FWD_DEFINED__ +#define __IActiveScriptProperty_FWD_DEFINED__ +typedef interface IActiveScriptProperty IActiveScriptProperty; + +#endif /* __IActiveScriptProperty_FWD_DEFINED__ */ + + +#ifndef __ITridentEventSink_FWD_DEFINED__ +#define __ITridentEventSink_FWD_DEFINED__ +typedef interface ITridentEventSink ITridentEventSink; + +#endif /* __ITridentEventSink_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptGarbageCollector_FWD_DEFINED__ +#define __IActiveScriptGarbageCollector_FWD_DEFINED__ +typedef interface IActiveScriptGarbageCollector IActiveScriptGarbageCollector; + +#endif /* __IActiveScriptGarbageCollector_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSIPInfo_FWD_DEFINED__ +#define __IActiveScriptSIPInfo_FWD_DEFINED__ +typedef interface IActiveScriptSIPInfo IActiveScriptSIPInfo; + +#endif /* __IActiveScriptSIPInfo_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSiteTraceInfo_FWD_DEFINED__ +#define __IActiveScriptSiteTraceInfo_FWD_DEFINED__ +typedef interface IActiveScriptSiteTraceInfo IActiveScriptSiteTraceInfo; + +#endif /* __IActiveScriptSiteTraceInfo_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptTraceInfo_FWD_DEFINED__ +#define __IActiveScriptTraceInfo_FWD_DEFINED__ +typedef interface IActiveScriptTraceInfo IActiveScriptTraceInfo; + +#endif /* __IActiveScriptTraceInfo_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptStringCompare_FWD_DEFINED__ +#define __IActiveScriptStringCompare_FWD_DEFINED__ +typedef interface IActiveScriptStringCompare IActiveScriptStringCompare; + +#endif /* __IActiveScriptStringCompare_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_activscp_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// ActivScp.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= +// +#pragma comment(lib,"uuid.lib") +// +// Declarations for ActiveX Scripting host applications and script engines. +// + +#ifndef __ActivScp_h +#define __ActivScp_h + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +/* GUIDs + ********/ + +#ifndef _NO_SCRIPT_GUIDS +// {F0B7A1A1-9847-11cf-8F20-00805F2CD064} +DEFINE_GUID(CATID_ActiveScript, 0xf0b7a1a1, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); + +// {F0B7A1A2-9847-11cf-8F20-00805F2CD064} +DEFINE_GUID(CATID_ActiveScriptParse, 0xf0b7a1a2, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); + +// {F0B7A1A3-9847-11cf-8F20-00805F2CD064} +DEFINE_GUID(CATID_ActiveScriptEncode, 0xf0b7a1a3, 0x9847, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); + +// {BB1A2AE1-A4F9-11cf-8F20-00805F2CD064} +DEFINE_GUID(IID_IActiveScript, 0xbb1a2ae1, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); + +// {BB1A2AE2-A4F9-11cf-8F20-00805F2CD064} +DEFINE_GUID(IID_IActiveScriptParse32, 0xbb1a2ae2, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); +// {C7EF7658-E1EE-480E-97EA-D52CB4D76D17} +DEFINE_GUID(IID_IActiveScriptParse64, 0xc7ef7658, 0xe1ee, 0x480e, 0x97, 0xea, 0xd5, 0x2c, 0xb4, 0xd7, 0x6d, 0x17); + +// {BB1A2AE3-A4F9-11cf-8F20-00805F2CD064} +DEFINE_GUID(IID_IActiveScriptEncode, 0xbb1a2ae3, 0xa4f9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); + +// {BEE9B76E-CFE3-11d1-B747-00C04FC2B085} +DEFINE_GUID(IID_IActiveScriptHostEncode, 0xbee9b76e, 0xcfe3, 0x11d1, 0xb7, 0x47, 0x00, 0xc0, 0x4f, 0xc2, 0xb0, 0x85); + +// {1CFF0050-6FDD-11d0-9328-00A0C90DCAA9} +DEFINE_GUID(IID_IActiveScriptParseProcedureOld32, 0x1cff0050, 0x6fdd, 0x11d0, 0x93, 0x28, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9); +// {21F57128-08C9-4638-BA12-22D15D88DC5C} +DEFINE_GUID(IID_IActiveScriptParseProcedureOld64, 0x21f57128, 0x08c9, 0x4638, 0xba, 0x12, 0x22, 0xd1, 0x5d, 0x88, 0xdc, 0x5c); + +// {AA5B6A80-B834-11d0-932F-00A0C90DCAA9} +DEFINE_GUID(IID_IActiveScriptParseProcedure32, 0xaa5b6a80, 0xb834, 0x11d0, 0x93, 0x2f, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9); +// {C64713B6-E029-4CC5-9200-438B72890B6A} +DEFINE_GUID(IID_IActiveScriptParseProcedure64, 0xc64713b6, 0xe029, 0x4cc5, 0x92, 0x00, 0x43, 0x8b, 0x72, 0x89, 0x0b, 0x6a); + +// {71EE5B20-FB04-11d1-B3A8-00A0C911E8B2} +DEFINE_GUID(IID_IActiveScriptParseProcedure2_32, 0x71ee5b20, 0xfb04, 0x11d1, 0xb3, 0xa8, 0x00, 0xa0, 0xc9, 0x11, 0xe8, 0xb2); +// {FE7C4271-210C-448D-9F54-76DAB7047B28} +DEFINE_GUID(IID_IActiveScriptParseProcedure2_64, 0xfe7c4271, 0x210c, 0x448d, 0x9f, 0x54, 0x76, 0xda, 0xb7, 0x04, 0x7b, 0x28); + +// {DB01A1E3-A42B-11cf-8F20-00805F2CD064} +DEFINE_GUID(IID_IActiveScriptSite, 0xdb01a1e3, 0xa42b, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); + +// {4B7272AE-1955-4bfe-98B0-780621888569} +DEFINE_GUID(IID_IActiveScriptSiteTraceInfo, 0x4b7272ae, 0x1955, 0x4bfe, 0x98, 0xb0, 0x78, 0x6, 0x21, 0x88, 0x85, 0x69); + +// {D10F6761-83E9-11cf-8F20-00805F2CD064} +DEFINE_GUID(IID_IActiveScriptSiteWindow, 0xd10f6761, 0x83e9, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); + +// {539698A0-CDCA-11CF-A5EB-00AA0047A063} +DEFINE_GUID(IID_IActiveScriptSiteInterruptPoll, 0x539698a0, 0xcdca, 0x11cf, 0xa5, 0xeb, 0x00, 0xaa, 0x00, 0x47, 0xa0, 0x63); + +// {AEDAE97E-D7EE-4796-B960-7F092AE844AB} +DEFINE_GUID(IID_IActiveScriptSiteUIControl, 0xaedae97e, 0xd7ee, 0x4796, 0xb9, 0x60, 0x7f, 0x9, 0x2a, 0xe8, 0x44, 0xab); + +// {EAE1BA61-A4ED-11cf-8F20-00805F2CD064} +DEFINE_GUID(IID_IActiveScriptError, 0xeae1ba61, 0xa4ed, 0x11cf, 0x8f, 0x20, 0x00, 0x80, 0x5f, 0x2c, 0xd0, 0x64); +// {B21FB2A1-5B8F-4963-8C21-21450F84ED7F} +DEFINE_GUID(IID_IActiveScriptError64, 0xb21fb2a1, 0x5b8f, 0x4963, 0x8c, 0x21, 0x21, 0x45, 0x0f, 0x84, 0xed, 0x7f); + +// {63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9} +DEFINE_GUID(IID_IBindEventHandler, 0x63cdbcb0, 0xc1b1, 0x11d0, 0x93, 0x36, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9); + +// {B8DA6310-E19B-11d0-933C-00A0C90DCAA9} +DEFINE_GUID(IID_IActiveScriptStats, 0xb8da6310, 0xe19b, 0x11d0, 0x93, 0x3c, 0x00, 0xa0, 0xc9, 0x0d, 0xca, 0xa9); + +// {4954E0D0-FBC7-11D1-8410-006008C3FBFC} +DEFINE_GUID(IID_IActiveScriptProperty, 0x4954E0D0, 0xFBC7, 0x11D1, 0x84, 0x10, 0x00, 0x60, 0x08, 0xC3, 0xFB, 0xFC); + +// {1DC9CA50-06EF-11d2-8415-006008C3FBFC} +DEFINE_GUID(IID_ITridentEventSink, 0x1dc9ca50, 0x6ef, 0x11d2, 0x84, 0x15, 0x00, 0x60, 0x08, 0xc3, 0xfb, 0xfc); + +// {6AA2C4A0-2B53-11d4-A2A0-00104BD35090} +DEFINE_GUID(IID_IActiveScriptGarbageCollector, 0x6aa2c4a0, 0x2b53, 0x11d4, 0xa2, 0xa0, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90); + +// {764651D0-38DE-11d4-A2A3-00104BD35090} +DEFINE_GUID(IID_IActiveScriptSIPInfo, 0x764651d0, 0x38de, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90); + +// {C35456E7-BEBF-4a1b-86A9-24D56BE8B369} +DEFINE_GUID(IID_IActiveScriptTraceInfo, 0xC35456E7, 0xBEBF, 0x4a1b, 0x86, 0xA9, 0x24, 0xD5, 0x6B, 0xE8, 0xB3, 0x69); + +// {1629F04E-2799-4db5-8FE5-ACE10F17EBAB} +DEFINE_GUID(OID_VBSSIP, 0x1629f04e, 0x2799, 0x4db5, 0x8f, 0xe5, 0xac, 0xe1, 0x0f, 0x17, 0xeb, 0xab); + +// {06C9E010-38CE-11d4-A2A3-00104BD35090} +DEFINE_GUID(OID_JSSIP, 0x6c9e010, 0x38ce, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90); + +// {1A610570-38CE-11d4-A2A3-00104BD35090} +DEFINE_GUID(OID_WSFSIP, 0x1a610570, 0x38ce, 0x11d4, 0xa2, 0xa3, 0x00, 0x10, 0x4b, 0xd3, 0x50, 0x90); + +// {58562769-ED52-42f7-8403-4963514E1F11} +DEFINE_GUID(IID_IActiveScriptStringCompare, 0x58562769, 0xED52, 0x42f7, 0x84, 0x03, 0x49, 0x63, 0x51, 0x4E, 0x1F, 0x11); + +#endif // _NO_SCRIPT_GUIDS + +// Constants used by ActiveX Scripting: +// + +/* IActiveScript::AddNamedItem() input flags */ + +#define SCRIPTITEM_ISVISIBLE 0x00000002 +#define SCRIPTITEM_ISSOURCE 0x00000004 +#define SCRIPTITEM_GLOBALMEMBERS 0x00000008 +#define SCRIPTITEM_ISPERSISTENT 0x00000040 +#define SCRIPTITEM_CODEONLY 0x00000200 +#define SCRIPTITEM_NOCODE 0x00000400 + +#define SCRIPTITEM_ALL_FLAGS (SCRIPTITEM_ISSOURCE | \ + SCRIPTITEM_ISVISIBLE | \ + SCRIPTITEM_ISPERSISTENT | \ + SCRIPTITEM_GLOBALMEMBERS | \ + SCRIPTITEM_NOCODE | \ + SCRIPTITEM_CODEONLY) + +/* IActiveScript::AddTypeLib() input flags */ + +#define SCRIPTTYPELIB_ISCONTROL 0x00000010 +#define SCRIPTTYPELIB_ISPERSISTENT 0x00000040 +#define SCRIPTTYPELIB_ALL_FLAGS (SCRIPTTYPELIB_ISCONTROL | SCRIPTTYPELIB_ISPERSISTENT) + +/* IActiveScriptParse::AddScriptlet() and IActiveScriptParse::ParseScriptText() input flags */ + +#define SCRIPTTEXT_DELAYEXECUTION 0x00000001 +#define SCRIPTTEXT_ISVISIBLE 0x00000002 +#define SCRIPTTEXT_ISEXPRESSION 0x00000020 +#define SCRIPTTEXT_ISPERSISTENT 0x00000040 +#define SCRIPTTEXT_HOSTMANAGESSOURCE 0x00000080 +#define SCRIPTTEXT_ISXDOMAIN 0x00000100 +#define SCRIPTTEXT_ISNONUSERCODE 0x00000200 +#define SCRIPTTEXT_ALL_FLAGS (SCRIPTTEXT_DELAYEXECUTION | \ + SCRIPTTEXT_ISVISIBLE | \ + SCRIPTTEXT_ISEXPRESSION | \ + SCRIPTTEXT_ISPERSISTENT | \ + SCRIPTTEXT_HOSTMANAGESSOURCE | \ + SCRIPTTEXT_ISXDOMAIN | \ + SCRIPTTEXT_ISNONUSERCODE) + +/* IActiveScriptParseProcedure::ParseProcedureText() input flags */ + +#define SCRIPTPROC_ISEXPRESSION 0x00000020 +#define SCRIPTPROC_HOSTMANAGESSOURCE 0x00000080 +#define SCRIPTPROC_IMPLICIT_THIS 0x00000100 +#define SCRIPTPROC_IMPLICIT_PARENTS 0x00000200 +#define SCRIPTPROC_ISXDOMAIN 0x00000400 +#define SCRIPTPROC_ALL_FLAGS (SCRIPTPROC_HOSTMANAGESSOURCE | \ + SCRIPTPROC_ISEXPRESSION | \ + SCRIPTPROC_IMPLICIT_THIS | \ + SCRIPTPROC_IMPLICIT_PARENTS | \ + SCRIPTPROC_ISXDOMAIN) + +/* IActiveScriptSite::GetItemInfo() input flags */ + +#define SCRIPTINFO_IUNKNOWN 0x00000001 +#define SCRIPTINFO_ITYPEINFO 0x00000002 +#define SCRIPTINFO_ALL_FLAGS (SCRIPTINFO_IUNKNOWN | \ + SCRIPTINFO_ITYPEINFO) + +/* IActiveScript::Interrupt() Flags */ + +#define SCRIPTINTERRUPT_DEBUG 0x00000001 +#define SCRIPTINTERRUPT_RAISEEXCEPTION 0x00000002 +#define SCRIPTINTERRUPT_ALL_FLAGS (SCRIPTINTERRUPT_DEBUG | \ + SCRIPTINTERRUPT_RAISEEXCEPTION) + +/* IActiveScriptStats::GetStat() values */ + +#define SCRIPTSTAT_STATEMENT_COUNT 1 +#define SCRIPTSTAT_INSTRUCTION_COUNT 2 +#define SCRIPTSTAT_INTSTRUCTION_TIME 3 +#define SCRIPTSTAT_TOTAL_TIME 4 + +/* IActiveScriptEncode::AddSection() input flags */ + +#define SCRIPT_ENCODE_SECTION 0x00000001 + +#define SCRIPT_ENCODE_DEFAULT_LANGUAGE 0x00000001 +#define SCRIPT_ENCODE_NO_ASP_LANGUAGE 0x00000002 + +/* Properties for IActiveScriptProperty */ +#define SCRIPTPROP_NAME 0x00000000 +#define SCRIPTPROP_MAJORVERSION 0x00000001 +#define SCRIPTPROP_MINORVERSION 0x00000002 +#define SCRIPTPROP_BUILDNUMBER 0x00000003 + +#define SCRIPTPROP_DELAYEDEVENTSINKING 0x00001000 +#define SCRIPTPROP_CATCHEXCEPTION 0x00001001 +#define SCRIPTPROP_CONVERSIONLCID 0x00001002 +#define SCRIPTPROP_HOSTSTACKREQUIRED 0x00001003 +#define SCRIPTPROP_SCRIPTSAREFULLYTRUSTED 0x00001004 + +#define SCRIPTPROP_DEBUGGER 0x00001100 +#define SCRIPTPROP_JITDEBUG 0x00001101 + +#define SCRIPTPROP_GCCONTROLSOFTCLOSE 0x00002000 + +#define SCRIPTPROP_INTEGERMODE 0x00003000 +#define SCRIPTPROP_STRINGCOMPAREINSTANCE 0x00003001 + +#define SCRIPTPROP_INVOKEVERSIONING 0x00004000 + +// These properties are defined and available, but are not +// officially supported. +#define SCRIPTPROP_HACK_FIBERSUPPORT 0x70000000 +#define SCRIPTPROP_HACK_TRIDENTEVENTSINK 0x70000001 +#define SCRIPTPROP_ABBREVIATE_GLOBALNAME_RESOLUTION 0x70000002 +#define SCRIPTPROP_HOSTKEEPALIVE 0x70000004 + +// An error has been recorded to be passed between script engine +// and host. The host needs to pass the error code to caller. +#define SCRIPT_E_RECORDED 0x86664004L +// Script engine has reported an unhandled exception to the host via +// IActiveScriptSite::OnScriptError. Host can ignore this error +#define SCRIPT_E_REPORTED 0x80020101L +// An script error is being propagated to the caller which might be in a different thread +// host should pass the error code to the caller. +#define SCRIPT_E_PROPAGATE 0x80020102L + +/* script language version values for SCRIPTPROP_INVOKEVERSIONING property */ + +typedef +enum tagSCRIPTLANGUAGEVERSION + { + SCRIPTLANGUAGEVERSION_DEFAULT = 0, + SCRIPTLANGUAGEVERSION_5_7 = 1, + SCRIPTLANGUAGEVERSION_5_8 = 2, + SCRIPTLANGUAGEVERSION_MAX = 255 + } SCRIPTLANGUAGEVERSION; + +typedef +enum tagSCRIPTSTATE + { + SCRIPTSTATE_UNINITIALIZED = 0, + SCRIPTSTATE_INITIALIZED = 5, + SCRIPTSTATE_STARTED = 1, + SCRIPTSTATE_CONNECTED = 2, + SCRIPTSTATE_DISCONNECTED = 3, + SCRIPTSTATE_CLOSED = 4 + } SCRIPTSTATE; + +typedef +enum tagSCRIPTTRACEINFO + { + SCRIPTTRACEINFO_SCRIPTSTART = 0, + SCRIPTTRACEINFO_SCRIPTEND = 1, + SCRIPTTRACEINFO_COMCALLSTART = 2, + SCRIPTTRACEINFO_COMCALLEND = 3, + SCRIPTTRACEINFO_CREATEOBJSTART = 4, + SCRIPTTRACEINFO_CREATEOBJEND = 5, + SCRIPTTRACEINFO_GETOBJSTART = 6, + SCRIPTTRACEINFO_GETOBJEND = 7 + } SCRIPTTRACEINFO; + + +/* script thread state values */ + +typedef +enum tagSCRIPTTHREADSTATE + { + SCRIPTTHREADSTATE_NOTINSCRIPT = 0, + SCRIPTTHREADSTATE_RUNNING = 1 + } SCRIPTTHREADSTATE; + + +/* IActiveScriptCollectGarbage constants */ + +typedef +enum tagSCRIPTGCTYPE + { + SCRIPTGCTYPE_NORMAL = 0, + SCRIPTGCTYPE_EXHAUSTIVE = 1 + } SCRIPTGCTYPE; + + +/* IActiveScriptSiteUIControl constants*/ + +typedef +enum tagSCRIPTUICITEM + { + SCRIPTUICITEM_INPUTBOX = 1, + SCRIPTUICITEM_MSGBOX = 2 + } SCRIPTUICITEM; + + +typedef +enum tagSCRIPTUICHANDLING + { + SCRIPTUICHANDLING_ALLOW = 0, + SCRIPTUICHANDLING_NOUIERROR = 1, + SCRIPTUICHANDLING_NOUIDEFAULT = 2 + } SCRIPTUICHANDLING; + + +/* Thread IDs */ + +typedef DWORD SCRIPTTHREADID; + + +#define SCRIPTTHREADID_CURRENT ((SCRIPTTHREADID)-1) +#define SCRIPTTHREADID_BASE ((SCRIPTTHREADID)-2) +#define SCRIPTTHREADID_ALL ((SCRIPTTHREADID)-3) + +/* Structures */ + +/* Interfaces + *************/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0000_v0_0_s_ifspec; + +#ifndef __IActiveScriptSite_INTERFACE_DEFINED__ +#define __IActiveScriptSite_INTERFACE_DEFINED__ + +/* interface IActiveScriptSite */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptSite; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DB01A1E3-A42B-11cf-8F20-00805F2CD064") + IActiveScriptSite : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetLCID( + /* [out] */ __RPC__out LCID *plcid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItemInfo( + /* [in] */ __RPC__in LPCOLESTR pstrName, + /* [in] */ DWORD dwReturnMask, + /* [out] */ __RPC__deref_out_opt IUnknown **ppiunkItem, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppti) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDocVersionString( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrVersion) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnScriptTerminate( + /* [in] */ __RPC__in const VARIANT *pvarResult, + /* [in] */ __RPC__in const EXCEPINFO *pexcepinfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnStateChange( + /* [in] */ SCRIPTSTATE ssScriptState) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnScriptError( + /* [in] */ __RPC__in_opt IActiveScriptError *pscripterror) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnEnterScript( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnLeaveScript( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptSiteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptSite * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptSite * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptSite * This); + + DECLSPEC_XFGVIRT(IActiveScriptSite, GetLCID) + HRESULT ( STDMETHODCALLTYPE *GetLCID )( + __RPC__in IActiveScriptSite * This, + /* [out] */ __RPC__out LCID *plcid); + + DECLSPEC_XFGVIRT(IActiveScriptSite, GetItemInfo) + HRESULT ( STDMETHODCALLTYPE *GetItemInfo )( + __RPC__in IActiveScriptSite * This, + /* [in] */ __RPC__in LPCOLESTR pstrName, + /* [in] */ DWORD dwReturnMask, + /* [out] */ __RPC__deref_out_opt IUnknown **ppiunkItem, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppti); + + DECLSPEC_XFGVIRT(IActiveScriptSite, GetDocVersionString) + HRESULT ( STDMETHODCALLTYPE *GetDocVersionString )( + __RPC__in IActiveScriptSite * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrVersion); + + DECLSPEC_XFGVIRT(IActiveScriptSite, OnScriptTerminate) + HRESULT ( STDMETHODCALLTYPE *OnScriptTerminate )( + __RPC__in IActiveScriptSite * This, + /* [in] */ __RPC__in const VARIANT *pvarResult, + /* [in] */ __RPC__in const EXCEPINFO *pexcepinfo); + + DECLSPEC_XFGVIRT(IActiveScriptSite, OnStateChange) + HRESULT ( STDMETHODCALLTYPE *OnStateChange )( + __RPC__in IActiveScriptSite * This, + /* [in] */ SCRIPTSTATE ssScriptState); + + DECLSPEC_XFGVIRT(IActiveScriptSite, OnScriptError) + HRESULT ( STDMETHODCALLTYPE *OnScriptError )( + __RPC__in IActiveScriptSite * This, + /* [in] */ __RPC__in_opt IActiveScriptError *pscripterror); + + DECLSPEC_XFGVIRT(IActiveScriptSite, OnEnterScript) + HRESULT ( STDMETHODCALLTYPE *OnEnterScript )( + __RPC__in IActiveScriptSite * This); + + DECLSPEC_XFGVIRT(IActiveScriptSite, OnLeaveScript) + HRESULT ( STDMETHODCALLTYPE *OnLeaveScript )( + __RPC__in IActiveScriptSite * This); + + END_INTERFACE + } IActiveScriptSiteVtbl; + + interface IActiveScriptSite + { + CONST_VTBL struct IActiveScriptSiteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptSite_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptSite_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptSite_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptSite_GetLCID(This,plcid) \ + ( (This)->lpVtbl -> GetLCID(This,plcid) ) + +#define IActiveScriptSite_GetItemInfo(This,pstrName,dwReturnMask,ppiunkItem,ppti) \ + ( (This)->lpVtbl -> GetItemInfo(This,pstrName,dwReturnMask,ppiunkItem,ppti) ) + +#define IActiveScriptSite_GetDocVersionString(This,pbstrVersion) \ + ( (This)->lpVtbl -> GetDocVersionString(This,pbstrVersion) ) + +#define IActiveScriptSite_OnScriptTerminate(This,pvarResult,pexcepinfo) \ + ( (This)->lpVtbl -> OnScriptTerminate(This,pvarResult,pexcepinfo) ) + +#define IActiveScriptSite_OnStateChange(This,ssScriptState) \ + ( (This)->lpVtbl -> OnStateChange(This,ssScriptState) ) + +#define IActiveScriptSite_OnScriptError(This,pscripterror) \ + ( (This)->lpVtbl -> OnScriptError(This,pscripterror) ) + +#define IActiveScriptSite_OnEnterScript(This) \ + ( (This)->lpVtbl -> OnEnterScript(This) ) + +#define IActiveScriptSite_OnLeaveScript(This) \ + ( (This)->lpVtbl -> OnLeaveScript(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptSite_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptError_INTERFACE_DEFINED__ +#define __IActiveScriptError_INTERFACE_DEFINED__ + +/* interface IActiveScriptError */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptError; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EAE1BA61-A4ED-11cf-8F20-00805F2CD064") + IActiveScriptError : public IUnknown + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetExceptionInfo( + /* [out] */ EXCEPINFO *pexcepinfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSourcePosition( + /* [out] */ __RPC__out DWORD *pdwSourceContext, + /* [out] */ __RPC__out ULONG *pulLineNumber, + /* [out] */ __RPC__out LONG *plCharacterPosition) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSourceLineText( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSourceLine) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptErrorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptError * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptError * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptError * This); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetExceptionInfo) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetExceptionInfo )( + IActiveScriptError * This, + /* [out] */ EXCEPINFO *pexcepinfo); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetSourcePosition) + HRESULT ( STDMETHODCALLTYPE *GetSourcePosition )( + __RPC__in IActiveScriptError * This, + /* [out] */ __RPC__out DWORD *pdwSourceContext, + /* [out] */ __RPC__out ULONG *pulLineNumber, + /* [out] */ __RPC__out LONG *plCharacterPosition); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetSourceLineText) + HRESULT ( STDMETHODCALLTYPE *GetSourceLineText )( + __RPC__in IActiveScriptError * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSourceLine); + + END_INTERFACE + } IActiveScriptErrorVtbl; + + interface IActiveScriptError + { + CONST_VTBL struct IActiveScriptErrorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptError_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptError_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptError_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptError_GetExceptionInfo(This,pexcepinfo) \ + ( (This)->lpVtbl -> GetExceptionInfo(This,pexcepinfo) ) + +#define IActiveScriptError_GetSourcePosition(This,pdwSourceContext,pulLineNumber,plCharacterPosition) \ + ( (This)->lpVtbl -> GetSourcePosition(This,pdwSourceContext,pulLineNumber,plCharacterPosition) ) + +#define IActiveScriptError_GetSourceLineText(This,pbstrSourceLine) \ + ( (This)->lpVtbl -> GetSourceLineText(This,pbstrSourceLine) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IActiveScriptError_RemoteGetExceptionInfo_Proxy( + __RPC__in IActiveScriptError * This, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo); + + +void __RPC_STUB IActiveScriptError_RemoteGetExceptionInfo_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IActiveScriptError_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptError64_INTERFACE_DEFINED__ +#define __IActiveScriptError64_INTERFACE_DEFINED__ + +/* interface IActiveScriptError64 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptError64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B21FB2A1-5B8F-4963-8C21-21450F84ED7F") + IActiveScriptError64 : public IActiveScriptError + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSourcePosition64( + /* [out] */ __RPC__out DWORDLONG *pdwSourceContext, + /* [out] */ __RPC__out ULONG *pulLineNumber, + /* [out] */ __RPC__out LONG *plCharacterPosition) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptError64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptError64 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptError64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptError64 * This); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetExceptionInfo) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetExceptionInfo )( + IActiveScriptError64 * This, + /* [out] */ EXCEPINFO *pexcepinfo); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetSourcePosition) + HRESULT ( STDMETHODCALLTYPE *GetSourcePosition )( + __RPC__in IActiveScriptError64 * This, + /* [out] */ __RPC__out DWORD *pdwSourceContext, + /* [out] */ __RPC__out ULONG *pulLineNumber, + /* [out] */ __RPC__out LONG *plCharacterPosition); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetSourceLineText) + HRESULT ( STDMETHODCALLTYPE *GetSourceLineText )( + __RPC__in IActiveScriptError64 * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSourceLine); + + DECLSPEC_XFGVIRT(IActiveScriptError64, GetSourcePosition64) + HRESULT ( STDMETHODCALLTYPE *GetSourcePosition64 )( + __RPC__in IActiveScriptError64 * This, + /* [out] */ __RPC__out DWORDLONG *pdwSourceContext, + /* [out] */ __RPC__out ULONG *pulLineNumber, + /* [out] */ __RPC__out LONG *plCharacterPosition); + + END_INTERFACE + } IActiveScriptError64Vtbl; + + interface IActiveScriptError64 + { + CONST_VTBL struct IActiveScriptError64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptError64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptError64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptError64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptError64_GetExceptionInfo(This,pexcepinfo) \ + ( (This)->lpVtbl -> GetExceptionInfo(This,pexcepinfo) ) + +#define IActiveScriptError64_GetSourcePosition(This,pdwSourceContext,pulLineNumber,plCharacterPosition) \ + ( (This)->lpVtbl -> GetSourcePosition(This,pdwSourceContext,pulLineNumber,plCharacterPosition) ) + +#define IActiveScriptError64_GetSourceLineText(This,pbstrSourceLine) \ + ( (This)->lpVtbl -> GetSourceLineText(This,pbstrSourceLine) ) + + +#define IActiveScriptError64_GetSourcePosition64(This,pdwSourceContext,pulLineNumber,plCharacterPosition) \ + ( (This)->lpVtbl -> GetSourcePosition64(This,pdwSourceContext,pulLineNumber,plCharacterPosition) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptError64_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptSiteWindow_INTERFACE_DEFINED__ +#define __IActiveScriptSiteWindow_INTERFACE_DEFINED__ + +/* interface IActiveScriptSiteWindow */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptSiteWindow; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D10F6761-83E9-11cf-8F20-00805F2CD064") + IActiveScriptSiteWindow : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetWindow( + /* [out] */ __RPC__deref_out_opt HWND *phwnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnableModeless( + /* [in] */ BOOL fEnable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptSiteWindowVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptSiteWindow * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptSiteWindow * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptSiteWindow * This); + + DECLSPEC_XFGVIRT(IActiveScriptSiteWindow, GetWindow) + HRESULT ( STDMETHODCALLTYPE *GetWindow )( + __RPC__in IActiveScriptSiteWindow * This, + /* [out] */ __RPC__deref_out_opt HWND *phwnd); + + DECLSPEC_XFGVIRT(IActiveScriptSiteWindow, EnableModeless) + HRESULT ( STDMETHODCALLTYPE *EnableModeless )( + __RPC__in IActiveScriptSiteWindow * This, + /* [in] */ BOOL fEnable); + + END_INTERFACE + } IActiveScriptSiteWindowVtbl; + + interface IActiveScriptSiteWindow + { + CONST_VTBL struct IActiveScriptSiteWindowVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptSiteWindow_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptSiteWindow_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptSiteWindow_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptSiteWindow_GetWindow(This,phwnd) \ + ( (This)->lpVtbl -> GetWindow(This,phwnd) ) + +#define IActiveScriptSiteWindow_EnableModeless(This,fEnable) \ + ( (This)->lpVtbl -> EnableModeless(This,fEnable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptSiteWindow_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptSiteUIControl_INTERFACE_DEFINED__ +#define __IActiveScriptSiteUIControl_INTERFACE_DEFINED__ + +/* interface IActiveScriptSiteUIControl */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptSiteUIControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AEDAE97E-D7EE-4796-B960-7F092AE844AB") + IActiveScriptSiteUIControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetUIBehavior( + /* [in] */ SCRIPTUICITEM UicItem, + /* [out] */ __RPC__out SCRIPTUICHANDLING *pUicHandling) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptSiteUIControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptSiteUIControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptSiteUIControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptSiteUIControl * This); + + DECLSPEC_XFGVIRT(IActiveScriptSiteUIControl, GetUIBehavior) + HRESULT ( STDMETHODCALLTYPE *GetUIBehavior )( + __RPC__in IActiveScriptSiteUIControl * This, + /* [in] */ SCRIPTUICITEM UicItem, + /* [out] */ __RPC__out SCRIPTUICHANDLING *pUicHandling); + + END_INTERFACE + } IActiveScriptSiteUIControlVtbl; + + interface IActiveScriptSiteUIControl + { + CONST_VTBL struct IActiveScriptSiteUIControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptSiteUIControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptSiteUIControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptSiteUIControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptSiteUIControl_GetUIBehavior(This,UicItem,pUicHandling) \ + ( (This)->lpVtbl -> GetUIBehavior(This,UicItem,pUicHandling) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptSiteUIControl_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptSiteInterruptPoll_INTERFACE_DEFINED__ +#define __IActiveScriptSiteInterruptPoll_INTERFACE_DEFINED__ + +/* interface IActiveScriptSiteInterruptPoll */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptSiteInterruptPoll; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("539698A0-CDCA-11CF-A5EB-00AA0047A063") + IActiveScriptSiteInterruptPoll : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE QueryContinue( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptSiteInterruptPollVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptSiteInterruptPoll * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptSiteInterruptPoll * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptSiteInterruptPoll * This); + + DECLSPEC_XFGVIRT(IActiveScriptSiteInterruptPoll, QueryContinue) + HRESULT ( STDMETHODCALLTYPE *QueryContinue )( + __RPC__in IActiveScriptSiteInterruptPoll * This); + + END_INTERFACE + } IActiveScriptSiteInterruptPollVtbl; + + interface IActiveScriptSiteInterruptPoll + { + CONST_VTBL struct IActiveScriptSiteInterruptPollVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptSiteInterruptPoll_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptSiteInterruptPoll_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptSiteInterruptPoll_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptSiteInterruptPoll_QueryContinue(This) \ + ( (This)->lpVtbl -> QueryContinue(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptSiteInterruptPoll_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScript_INTERFACE_DEFINED__ +#define __IActiveScript_INTERFACE_DEFINED__ + +/* interface IActiveScript */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScript; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BB1A2AE1-A4F9-11cf-8F20-00805F2CD064") + IActiveScript : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetScriptSite( + /* [in] */ __RPC__in_opt IActiveScriptSite *pass) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptSite( + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppvObject) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetScriptState( + /* [in] */ SCRIPTSTATE ss) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptState( + /* [out] */ __RPC__out SCRIPTSTATE *pssState) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddNamedItem( + /* [in] */ __RPC__in LPCOLESTR pstrName, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddTypeLib( + /* [in] */ __RPC__in REFGUID rguidTypeLib, + /* [in] */ DWORD dwMajor, + /* [in] */ DWORD dwMinor, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptDispatch( + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentScriptThreadID( + /* [out] */ __RPC__out SCRIPTTHREADID *pstidThread) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptThreadID( + /* [in] */ DWORD dwWin32ThreadId, + /* [out] */ __RPC__out SCRIPTTHREADID *pstidThread) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptThreadState( + /* [in] */ SCRIPTTHREADID stidThread, + /* [out] */ __RPC__out SCRIPTTHREADSTATE *pstsState) = 0; + + virtual HRESULT STDMETHODCALLTYPE InterruptScriptThread( + /* [in] */ SCRIPTTHREADID stidThread, + /* [in] */ __RPC__in const EXCEPINFO *pexcepinfo, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IActiveScript **ppscript) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScript * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScript * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScript * This); + + DECLSPEC_XFGVIRT(IActiveScript, SetScriptSite) + HRESULT ( STDMETHODCALLTYPE *SetScriptSite )( + __RPC__in IActiveScript * This, + /* [in] */ __RPC__in_opt IActiveScriptSite *pass); + + DECLSPEC_XFGVIRT(IActiveScript, GetScriptSite) + HRESULT ( STDMETHODCALLTYPE *GetScriptSite )( + __RPC__in IActiveScript * This, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppvObject); + + DECLSPEC_XFGVIRT(IActiveScript, SetScriptState) + HRESULT ( STDMETHODCALLTYPE *SetScriptState )( + __RPC__in IActiveScript * This, + /* [in] */ SCRIPTSTATE ss); + + DECLSPEC_XFGVIRT(IActiveScript, GetScriptState) + HRESULT ( STDMETHODCALLTYPE *GetScriptState )( + __RPC__in IActiveScript * This, + /* [out] */ __RPC__out SCRIPTSTATE *pssState); + + DECLSPEC_XFGVIRT(IActiveScript, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IActiveScript * This); + + DECLSPEC_XFGVIRT(IActiveScript, AddNamedItem) + HRESULT ( STDMETHODCALLTYPE *AddNamedItem )( + __RPC__in IActiveScript * This, + /* [in] */ __RPC__in LPCOLESTR pstrName, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IActiveScript, AddTypeLib) + HRESULT ( STDMETHODCALLTYPE *AddTypeLib )( + __RPC__in IActiveScript * This, + /* [in] */ __RPC__in REFGUID rguidTypeLib, + /* [in] */ DWORD dwMajor, + /* [in] */ DWORD dwMinor, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IActiveScript, GetScriptDispatch) + HRESULT ( STDMETHODCALLTYPE *GetScriptDispatch )( + __RPC__in IActiveScript * This, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp); + + DECLSPEC_XFGVIRT(IActiveScript, GetCurrentScriptThreadID) + HRESULT ( STDMETHODCALLTYPE *GetCurrentScriptThreadID )( + __RPC__in IActiveScript * This, + /* [out] */ __RPC__out SCRIPTTHREADID *pstidThread); + + DECLSPEC_XFGVIRT(IActiveScript, GetScriptThreadID) + HRESULT ( STDMETHODCALLTYPE *GetScriptThreadID )( + __RPC__in IActiveScript * This, + /* [in] */ DWORD dwWin32ThreadId, + /* [out] */ __RPC__out SCRIPTTHREADID *pstidThread); + + DECLSPEC_XFGVIRT(IActiveScript, GetScriptThreadState) + HRESULT ( STDMETHODCALLTYPE *GetScriptThreadState )( + __RPC__in IActiveScript * This, + /* [in] */ SCRIPTTHREADID stidThread, + /* [out] */ __RPC__out SCRIPTTHREADSTATE *pstsState); + + DECLSPEC_XFGVIRT(IActiveScript, InterruptScriptThread) + HRESULT ( STDMETHODCALLTYPE *InterruptScriptThread )( + __RPC__in IActiveScript * This, + /* [in] */ SCRIPTTHREADID stidThread, + /* [in] */ __RPC__in const EXCEPINFO *pexcepinfo, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IActiveScript, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IActiveScript * This, + /* [out] */ __RPC__deref_out_opt IActiveScript **ppscript); + + END_INTERFACE + } IActiveScriptVtbl; + + interface IActiveScript + { + CONST_VTBL struct IActiveScriptVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScript_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScript_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScript_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScript_SetScriptSite(This,pass) \ + ( (This)->lpVtbl -> SetScriptSite(This,pass) ) + +#define IActiveScript_GetScriptSite(This,riid,ppvObject) \ + ( (This)->lpVtbl -> GetScriptSite(This,riid,ppvObject) ) + +#define IActiveScript_SetScriptState(This,ss) \ + ( (This)->lpVtbl -> SetScriptState(This,ss) ) + +#define IActiveScript_GetScriptState(This,pssState) \ + ( (This)->lpVtbl -> GetScriptState(This,pssState) ) + +#define IActiveScript_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define IActiveScript_AddNamedItem(This,pstrName,dwFlags) \ + ( (This)->lpVtbl -> AddNamedItem(This,pstrName,dwFlags) ) + +#define IActiveScript_AddTypeLib(This,rguidTypeLib,dwMajor,dwMinor,dwFlags) \ + ( (This)->lpVtbl -> AddTypeLib(This,rguidTypeLib,dwMajor,dwMinor,dwFlags) ) + +#define IActiveScript_GetScriptDispatch(This,pstrItemName,ppdisp) \ + ( (This)->lpVtbl -> GetScriptDispatch(This,pstrItemName,ppdisp) ) + +#define IActiveScript_GetCurrentScriptThreadID(This,pstidThread) \ + ( (This)->lpVtbl -> GetCurrentScriptThreadID(This,pstidThread) ) + +#define IActiveScript_GetScriptThreadID(This,dwWin32ThreadId,pstidThread) \ + ( (This)->lpVtbl -> GetScriptThreadID(This,dwWin32ThreadId,pstidThread) ) + +#define IActiveScript_GetScriptThreadState(This,stidThread,pstsState) \ + ( (This)->lpVtbl -> GetScriptThreadState(This,stidThread,pstsState) ) + +#define IActiveScript_InterruptScriptThread(This,stidThread,pexcepinfo,dwFlags) \ + ( (This)->lpVtbl -> InterruptScriptThread(This,stidThread,pexcepinfo,dwFlags) ) + +#define IActiveScript_Clone(This,ppscript) \ + ( (This)->lpVtbl -> Clone(This,ppscript) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScript_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptParse32_INTERFACE_DEFINED__ +#define __IActiveScriptParse32_INTERFACE_DEFINED__ + +/* interface IActiveScriptParse32 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptParse32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BB1A2AE2-A4F9-11cf-8F20-00805F2CD064") + IActiveScriptParse32 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InitNew( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddScriptlet( + /* [in] */ __RPC__in LPCOLESTR pstrDefaultName, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in LPCOLESTR pstrSubItemName, + /* [in] */ __RPC__in LPCOLESTR pstrEventName, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE ParseScriptText( + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__out VARIANT *pvarResult, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptParse32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptParse32 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptParse32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptParse32 * This); + + DECLSPEC_XFGVIRT(IActiveScriptParse32, InitNew) + HRESULT ( STDMETHODCALLTYPE *InitNew )( + __RPC__in IActiveScriptParse32 * This); + + DECLSPEC_XFGVIRT(IActiveScriptParse32, AddScriptlet) + HRESULT ( STDMETHODCALLTYPE *AddScriptlet )( + __RPC__in IActiveScriptParse32 * This, + /* [in] */ __RPC__in LPCOLESTR pstrDefaultName, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in LPCOLESTR pstrSubItemName, + /* [in] */ __RPC__in LPCOLESTR pstrEventName, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo); + + DECLSPEC_XFGVIRT(IActiveScriptParse32, ParseScriptText) + HRESULT ( STDMETHODCALLTYPE *ParseScriptText )( + __RPC__in IActiveScriptParse32 * This, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__out VARIANT *pvarResult, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo); + + END_INTERFACE + } IActiveScriptParse32Vtbl; + + interface IActiveScriptParse32 + { + CONST_VTBL struct IActiveScriptParse32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptParse32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptParse32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptParse32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptParse32_InitNew(This) \ + ( (This)->lpVtbl -> InitNew(This) ) + +#define IActiveScriptParse32_AddScriptlet(This,pstrDefaultName,pstrCode,pstrItemName,pstrSubItemName,pstrEventName,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,pbstrName,pexcepinfo) \ + ( (This)->lpVtbl -> AddScriptlet(This,pstrDefaultName,pstrCode,pstrItemName,pstrSubItemName,pstrEventName,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,pbstrName,pexcepinfo) ) + +#define IActiveScriptParse32_ParseScriptText(This,pstrCode,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,pvarResult,pexcepinfo) \ + ( (This)->lpVtbl -> ParseScriptText(This,pstrCode,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,pvarResult,pexcepinfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptParse32_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptParse64_INTERFACE_DEFINED__ +#define __IActiveScriptParse64_INTERFACE_DEFINED__ + +/* interface IActiveScriptParse64 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptParse64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C7EF7658-E1EE-480E-97EA-D52CB4D76D17") + IActiveScriptParse64 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InitNew( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddScriptlet( + /* [in] */ __RPC__in LPCOLESTR pstrDefaultName, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in LPCOLESTR pstrSubItemName, + /* [in] */ __RPC__in LPCOLESTR pstrEventName, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORDLONG dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE ParseScriptText( + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORDLONG dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__out VARIANT *pvarResult, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptParse64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptParse64 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptParse64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptParse64 * This); + + DECLSPEC_XFGVIRT(IActiveScriptParse64, InitNew) + HRESULT ( STDMETHODCALLTYPE *InitNew )( + __RPC__in IActiveScriptParse64 * This); + + DECLSPEC_XFGVIRT(IActiveScriptParse64, AddScriptlet) + HRESULT ( STDMETHODCALLTYPE *AddScriptlet )( + __RPC__in IActiveScriptParse64 * This, + /* [in] */ __RPC__in LPCOLESTR pstrDefaultName, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in LPCOLESTR pstrSubItemName, + /* [in] */ __RPC__in LPCOLESTR pstrEventName, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORDLONG dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo); + + DECLSPEC_XFGVIRT(IActiveScriptParse64, ParseScriptText) + HRESULT ( STDMETHODCALLTYPE *ParseScriptText )( + __RPC__in IActiveScriptParse64 * This, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORDLONG dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__out VARIANT *pvarResult, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo); + + END_INTERFACE + } IActiveScriptParse64Vtbl; + + interface IActiveScriptParse64 + { + CONST_VTBL struct IActiveScriptParse64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptParse64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptParse64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptParse64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptParse64_InitNew(This) \ + ( (This)->lpVtbl -> InitNew(This) ) + +#define IActiveScriptParse64_AddScriptlet(This,pstrDefaultName,pstrCode,pstrItemName,pstrSubItemName,pstrEventName,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,pbstrName,pexcepinfo) \ + ( (This)->lpVtbl -> AddScriptlet(This,pstrDefaultName,pstrCode,pstrItemName,pstrSubItemName,pstrEventName,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,pbstrName,pexcepinfo) ) + +#define IActiveScriptParse64_ParseScriptText(This,pstrCode,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,pvarResult,pexcepinfo) \ + ( (This)->lpVtbl -> ParseScriptText(This,pstrCode,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,pvarResult,pexcepinfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptParse64_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activscp_0000_0009 */ +/* [local] */ + +#ifdef _WIN64 +#define IActiveScriptParse IActiveScriptParse64 +#define IID_IActiveScriptParse IID_IActiveScriptParse64 +#else +#define IActiveScriptParse IActiveScriptParse32 +#define IID_IActiveScriptParse IID_IActiveScriptParse32 +#endif +typedef IActiveScriptParse *PIActiveScriptParse; + + + +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0009_v0_0_s_ifspec; + +#ifndef __IActiveScriptParseProcedureOld32_INTERFACE_DEFINED__ +#define __IActiveScriptParseProcedureOld32_INTERFACE_DEFINED__ + +/* interface IActiveScriptParseProcedureOld32 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptParseProcedureOld32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1CFF0050-6FDD-11d0-9328-00A0C90DCAA9") + IActiveScriptParseProcedureOld32 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ParseProcedureText( + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrFormalParams, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptParseProcedureOld32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptParseProcedureOld32 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptParseProcedureOld32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptParseProcedureOld32 * This); + + DECLSPEC_XFGVIRT(IActiveScriptParseProcedureOld32, ParseProcedureText) + HRESULT ( STDMETHODCALLTYPE *ParseProcedureText )( + __RPC__in IActiveScriptParseProcedureOld32 * This, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrFormalParams, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp); + + END_INTERFACE + } IActiveScriptParseProcedureOld32Vtbl; + + interface IActiveScriptParseProcedureOld32 + { + CONST_VTBL struct IActiveScriptParseProcedureOld32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptParseProcedureOld32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptParseProcedureOld32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptParseProcedureOld32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptParseProcedureOld32_ParseProcedureText(This,pstrCode,pstrFormalParams,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) \ + ( (This)->lpVtbl -> ParseProcedureText(This,pstrCode,pstrFormalParams,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptParseProcedureOld32_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptParseProcedureOld64_INTERFACE_DEFINED__ +#define __IActiveScriptParseProcedureOld64_INTERFACE_DEFINED__ + +/* interface IActiveScriptParseProcedureOld64 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptParseProcedureOld64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("21F57128-08C9-4638-BA12-22D15D88DC5C") + IActiveScriptParseProcedureOld64 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ParseProcedureText( + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrFormalParams, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORDLONG dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptParseProcedureOld64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptParseProcedureOld64 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptParseProcedureOld64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptParseProcedureOld64 * This); + + DECLSPEC_XFGVIRT(IActiveScriptParseProcedureOld64, ParseProcedureText) + HRESULT ( STDMETHODCALLTYPE *ParseProcedureText )( + __RPC__in IActiveScriptParseProcedureOld64 * This, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrFormalParams, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORDLONG dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp); + + END_INTERFACE + } IActiveScriptParseProcedureOld64Vtbl; + + interface IActiveScriptParseProcedureOld64 + { + CONST_VTBL struct IActiveScriptParseProcedureOld64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptParseProcedureOld64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptParseProcedureOld64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptParseProcedureOld64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptParseProcedureOld64_ParseProcedureText(This,pstrCode,pstrFormalParams,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) \ + ( (This)->lpVtbl -> ParseProcedureText(This,pstrCode,pstrFormalParams,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptParseProcedureOld64_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activscp_0000_0011 */ +/* [local] */ + +#ifdef _WIN64 +#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld64 +#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld64 +#else +#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld32 +#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld32 +#endif +typedef IActiveScriptParseProcedureOld *PIActiveScriptParseProcedureOld; + + +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0011_v0_0_s_ifspec; + +#ifndef __IActiveScriptParseProcedure32_INTERFACE_DEFINED__ +#define __IActiveScriptParseProcedure32_INTERFACE_DEFINED__ + +/* interface IActiveScriptParseProcedure32 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptParseProcedure32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AA5B6A80-B834-11d0-932F-00A0C90DCAA9") + IActiveScriptParseProcedure32 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ParseProcedureText( + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrFormalParams, + /* [in] */ __RPC__in LPCOLESTR pstrProcedureName, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptParseProcedure32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptParseProcedure32 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptParseProcedure32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptParseProcedure32 * This); + + DECLSPEC_XFGVIRT(IActiveScriptParseProcedure32, ParseProcedureText) + HRESULT ( STDMETHODCALLTYPE *ParseProcedureText )( + __RPC__in IActiveScriptParseProcedure32 * This, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrFormalParams, + /* [in] */ __RPC__in LPCOLESTR pstrProcedureName, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp); + + END_INTERFACE + } IActiveScriptParseProcedure32Vtbl; + + interface IActiveScriptParseProcedure32 + { + CONST_VTBL struct IActiveScriptParseProcedure32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptParseProcedure32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptParseProcedure32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptParseProcedure32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptParseProcedure32_ParseProcedureText(This,pstrCode,pstrFormalParams,pstrProcedureName,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) \ + ( (This)->lpVtbl -> ParseProcedureText(This,pstrCode,pstrFormalParams,pstrProcedureName,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptParseProcedure32_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptParseProcedure64_INTERFACE_DEFINED__ +#define __IActiveScriptParseProcedure64_INTERFACE_DEFINED__ + +/* interface IActiveScriptParseProcedure64 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptParseProcedure64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C64713B6-E029-4CC5-9200-438B72890B6A") + IActiveScriptParseProcedure64 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ParseProcedureText( + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrFormalParams, + /* [in] */ __RPC__in LPCOLESTR pstrProcedureName, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORDLONG dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptParseProcedure64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptParseProcedure64 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptParseProcedure64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptParseProcedure64 * This); + + DECLSPEC_XFGVIRT(IActiveScriptParseProcedure64, ParseProcedureText) + HRESULT ( STDMETHODCALLTYPE *ParseProcedureText )( + __RPC__in IActiveScriptParseProcedure64 * This, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrFormalParams, + /* [in] */ __RPC__in LPCOLESTR pstrProcedureName, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORDLONG dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp); + + END_INTERFACE + } IActiveScriptParseProcedure64Vtbl; + + interface IActiveScriptParseProcedure64 + { + CONST_VTBL struct IActiveScriptParseProcedure64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptParseProcedure64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptParseProcedure64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptParseProcedure64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptParseProcedure64_ParseProcedureText(This,pstrCode,pstrFormalParams,pstrProcedureName,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) \ + ( (This)->lpVtbl -> ParseProcedureText(This,pstrCode,pstrFormalParams,pstrProcedureName,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptParseProcedure64_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activscp_0000_0013 */ +/* [local] */ + +#ifdef _WIN64 +#define IActiveScriptParseProcedure IActiveScriptParseProcedure64 +#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure64 +#else +#define IActiveScriptParseProcedure IActiveScriptParseProcedure32 +#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure32 +#endif +typedef IActiveScriptParseProcedure *PIActiveScriptParseProcedure; + + +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0013_v0_0_s_ifspec; + +#ifndef __IActiveScriptParseProcedure2_32_INTERFACE_DEFINED__ +#define __IActiveScriptParseProcedure2_32_INTERFACE_DEFINED__ + +/* interface IActiveScriptParseProcedure2_32 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptParseProcedure2_32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("71EE5B20-FB04-11d1-B3A8-00A0C911E8B2") + IActiveScriptParseProcedure2_32 : public IActiveScriptParseProcedure32 + { + public: + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptParseProcedure2_32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptParseProcedure2_32 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptParseProcedure2_32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptParseProcedure2_32 * This); + + DECLSPEC_XFGVIRT(IActiveScriptParseProcedure32, ParseProcedureText) + HRESULT ( STDMETHODCALLTYPE *ParseProcedureText )( + __RPC__in IActiveScriptParseProcedure2_32 * This, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrFormalParams, + /* [in] */ __RPC__in LPCOLESTR pstrProcedureName, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp); + + END_INTERFACE + } IActiveScriptParseProcedure2_32Vtbl; + + interface IActiveScriptParseProcedure2_32 + { + CONST_VTBL struct IActiveScriptParseProcedure2_32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptParseProcedure2_32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptParseProcedure2_32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptParseProcedure2_32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptParseProcedure2_32_ParseProcedureText(This,pstrCode,pstrFormalParams,pstrProcedureName,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) \ + ( (This)->lpVtbl -> ParseProcedureText(This,pstrCode,pstrFormalParams,pstrProcedureName,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptParseProcedure2_32_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptParseProcedure2_64_INTERFACE_DEFINED__ +#define __IActiveScriptParseProcedure2_64_INTERFACE_DEFINED__ + +/* interface IActiveScriptParseProcedure2_64 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptParseProcedure2_64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FE7C4271-210C-448D-9F54-76DAB7047B28") + IActiveScriptParseProcedure2_64 : public IActiveScriptParseProcedure64 + { + public: + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptParseProcedure2_64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptParseProcedure2_64 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptParseProcedure2_64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptParseProcedure2_64 * This); + + DECLSPEC_XFGVIRT(IActiveScriptParseProcedure64, ParseProcedureText) + HRESULT ( STDMETHODCALLTYPE *ParseProcedureText )( + __RPC__in IActiveScriptParseProcedure2_64 * This, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ __RPC__in LPCOLESTR pstrFormalParams, + /* [in] */ __RPC__in LPCOLESTR pstrProcedureName, + /* [in] */ __RPC__in LPCOLESTR pstrItemName, + /* [in] */ __RPC__in_opt IUnknown *punkContext, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORDLONG dwSourceContextCookie, + /* [in] */ ULONG ulStartingLineNumber, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDispatch **ppdisp); + + END_INTERFACE + } IActiveScriptParseProcedure2_64Vtbl; + + interface IActiveScriptParseProcedure2_64 + { + CONST_VTBL struct IActiveScriptParseProcedure2_64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptParseProcedure2_64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptParseProcedure2_64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptParseProcedure2_64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptParseProcedure2_64_ParseProcedureText(This,pstrCode,pstrFormalParams,pstrProcedureName,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) \ + ( (This)->lpVtbl -> ParseProcedureText(This,pstrCode,pstrFormalParams,pstrProcedureName,pstrItemName,punkContext,pstrDelimiter,dwSourceContextCookie,ulStartingLineNumber,dwFlags,ppdisp) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptParseProcedure2_64_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activscp_0000_0015 */ +/* [local] */ + +#ifdef _WIN64 +#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_64 +#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_64 +#else +#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_32 +#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_32 +#endif +typedef IActiveScriptParseProcedure2 *PIActiveScriptParseProcedure2; + + +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0015_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0015_v0_0_s_ifspec; + +#ifndef __IActiveScriptEncode_INTERFACE_DEFINED__ +#define __IActiveScriptEncode_INTERFACE_DEFINED__ + +/* interface IActiveScriptEncode */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptEncode; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BB1A2AE3-A4F9-11cf-8F20-00805F2CD064") + IActiveScriptEncode : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EncodeSection( + /* [in] */ __RPC__in LPCOLESTR pchIn, + /* [in] */ DWORD cchIn, + /* [out][in] */ __RPC__inout LPOLESTR pchOut, + /* [in] */ DWORD cchOut, + /* [out][in] */ __RPC__inout DWORD *pcchRet) = 0; + + virtual HRESULT STDMETHODCALLTYPE DecodeScript( + /* [in] */ __RPC__in LPCOLESTR pchIn, + /* [in] */ DWORD cchIn, + /* [out][in] */ __RPC__inout LPOLESTR pchOut, + /* [in] */ DWORD cchOut, + /* [out][in] */ __RPC__inout DWORD *pcchRet) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEncodeProgId( + /* [out][in] */ __RPC__deref_inout_opt BSTR *pbstrOut) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptEncodeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptEncode * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptEncode * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptEncode * This); + + DECLSPEC_XFGVIRT(IActiveScriptEncode, EncodeSection) + HRESULT ( STDMETHODCALLTYPE *EncodeSection )( + __RPC__in IActiveScriptEncode * This, + /* [in] */ __RPC__in LPCOLESTR pchIn, + /* [in] */ DWORD cchIn, + /* [out][in] */ __RPC__inout LPOLESTR pchOut, + /* [in] */ DWORD cchOut, + /* [out][in] */ __RPC__inout DWORD *pcchRet); + + DECLSPEC_XFGVIRT(IActiveScriptEncode, DecodeScript) + HRESULT ( STDMETHODCALLTYPE *DecodeScript )( + __RPC__in IActiveScriptEncode * This, + /* [in] */ __RPC__in LPCOLESTR pchIn, + /* [in] */ DWORD cchIn, + /* [out][in] */ __RPC__inout LPOLESTR pchOut, + /* [in] */ DWORD cchOut, + /* [out][in] */ __RPC__inout DWORD *pcchRet); + + DECLSPEC_XFGVIRT(IActiveScriptEncode, GetEncodeProgId) + HRESULT ( STDMETHODCALLTYPE *GetEncodeProgId )( + __RPC__in IActiveScriptEncode * This, + /* [out][in] */ __RPC__deref_inout_opt BSTR *pbstrOut); + + END_INTERFACE + } IActiveScriptEncodeVtbl; + + interface IActiveScriptEncode + { + CONST_VTBL struct IActiveScriptEncodeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptEncode_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptEncode_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptEncode_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptEncode_EncodeSection(This,pchIn,cchIn,pchOut,cchOut,pcchRet) \ + ( (This)->lpVtbl -> EncodeSection(This,pchIn,cchIn,pchOut,cchOut,pcchRet) ) + +#define IActiveScriptEncode_DecodeScript(This,pchIn,cchIn,pchOut,cchOut,pcchRet) \ + ( (This)->lpVtbl -> DecodeScript(This,pchIn,cchIn,pchOut,cchOut,pcchRet) ) + +#define IActiveScriptEncode_GetEncodeProgId(This,pbstrOut) \ + ( (This)->lpVtbl -> GetEncodeProgId(This,pbstrOut) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptEncode_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptHostEncode_INTERFACE_DEFINED__ +#define __IActiveScriptHostEncode_INTERFACE_DEFINED__ + +/* interface IActiveScriptHostEncode */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptHostEncode; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BEE9B76E-CFE3-11d1-B747-00C04FC2B085") + IActiveScriptHostEncode : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EncodeScriptHostFile( + /* [in] */ __RPC__in BSTR bstrInFile, + /* [out][in] */ __RPC__deref_inout_opt BSTR *pbstrOutFile, + /* [in] */ unsigned long cFlags, + /* [in] */ __RPC__in BSTR bstrDefaultLang) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptHostEncodeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptHostEncode * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptHostEncode * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptHostEncode * This); + + DECLSPEC_XFGVIRT(IActiveScriptHostEncode, EncodeScriptHostFile) + HRESULT ( STDMETHODCALLTYPE *EncodeScriptHostFile )( + __RPC__in IActiveScriptHostEncode * This, + /* [in] */ __RPC__in BSTR bstrInFile, + /* [out][in] */ __RPC__deref_inout_opt BSTR *pbstrOutFile, + /* [in] */ unsigned long cFlags, + /* [in] */ __RPC__in BSTR bstrDefaultLang); + + END_INTERFACE + } IActiveScriptHostEncodeVtbl; + + interface IActiveScriptHostEncode + { + CONST_VTBL struct IActiveScriptHostEncodeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptHostEncode_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptHostEncode_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptHostEncode_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptHostEncode_EncodeScriptHostFile(This,bstrInFile,pbstrOutFile,cFlags,bstrDefaultLang) \ + ( (This)->lpVtbl -> EncodeScriptHostFile(This,bstrInFile,pbstrOutFile,cFlags,bstrDefaultLang) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptHostEncode_INTERFACE_DEFINED__ */ + + +#ifndef __IBindEventHandler_INTERFACE_DEFINED__ +#define __IBindEventHandler_INTERFACE_DEFINED__ + +/* interface IBindEventHandler */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBindEventHandler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9") + IBindEventHandler : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE BindHandler( + /* [in] */ __RPC__in LPCOLESTR pstrEvent, + /* [in] */ __RPC__in_opt IDispatch *pdisp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBindEventHandlerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBindEventHandler * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBindEventHandler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBindEventHandler * This); + + DECLSPEC_XFGVIRT(IBindEventHandler, BindHandler) + HRESULT ( STDMETHODCALLTYPE *BindHandler )( + __RPC__in IBindEventHandler * This, + /* [in] */ __RPC__in LPCOLESTR pstrEvent, + /* [in] */ __RPC__in_opt IDispatch *pdisp); + + END_INTERFACE + } IBindEventHandlerVtbl; + + interface IBindEventHandler + { + CONST_VTBL struct IBindEventHandlerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBindEventHandler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBindEventHandler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBindEventHandler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBindEventHandler_BindHandler(This,pstrEvent,pdisp) \ + ( (This)->lpVtbl -> BindHandler(This,pstrEvent,pdisp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBindEventHandler_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptStats_INTERFACE_DEFINED__ +#define __IActiveScriptStats_INTERFACE_DEFINED__ + +/* interface IActiveScriptStats */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptStats; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B8DA6310-E19B-11d0-933C-00A0C90DCAA9") + IActiveScriptStats : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStat( + /* [in] */ DWORD stid, + /* [out] */ __RPC__out ULONG *pluHi, + /* [out] */ __RPC__out ULONG *pluLo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatEx( + /* [in] */ __RPC__in REFGUID guid, + /* [out] */ __RPC__out ULONG *pluHi, + /* [out] */ __RPC__out ULONG *pluLo) = 0; + + virtual HRESULT STDMETHODCALLTYPE ResetStats( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptStatsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptStats * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptStats * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptStats * This); + + DECLSPEC_XFGVIRT(IActiveScriptStats, GetStat) + HRESULT ( STDMETHODCALLTYPE *GetStat )( + __RPC__in IActiveScriptStats * This, + /* [in] */ DWORD stid, + /* [out] */ __RPC__out ULONG *pluHi, + /* [out] */ __RPC__out ULONG *pluLo); + + DECLSPEC_XFGVIRT(IActiveScriptStats, GetStatEx) + HRESULT ( STDMETHODCALLTYPE *GetStatEx )( + __RPC__in IActiveScriptStats * This, + /* [in] */ __RPC__in REFGUID guid, + /* [out] */ __RPC__out ULONG *pluHi, + /* [out] */ __RPC__out ULONG *pluLo); + + DECLSPEC_XFGVIRT(IActiveScriptStats, ResetStats) + HRESULT ( STDMETHODCALLTYPE *ResetStats )( + __RPC__in IActiveScriptStats * This); + + END_INTERFACE + } IActiveScriptStatsVtbl; + + interface IActiveScriptStats + { + CONST_VTBL struct IActiveScriptStatsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptStats_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptStats_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptStats_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptStats_GetStat(This,stid,pluHi,pluLo) \ + ( (This)->lpVtbl -> GetStat(This,stid,pluHi,pluLo) ) + +#define IActiveScriptStats_GetStatEx(This,guid,pluHi,pluLo) \ + ( (This)->lpVtbl -> GetStatEx(This,guid,pluHi,pluLo) ) + +#define IActiveScriptStats_ResetStats(This) \ + ( (This)->lpVtbl -> ResetStats(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptStats_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptProperty_INTERFACE_DEFINED__ +#define __IActiveScriptProperty_INTERFACE_DEFINED__ + +/* interface IActiveScriptProperty */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4954E0D0-FBC7-11D1-8410-006008C3FBFC") + IActiveScriptProperty : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ DWORD dwProperty, + /* [in] */ __RPC__in VARIANT *pvarIndex, + /* [out] */ __RPC__out VARIANT *pvarValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ DWORD dwProperty, + /* [in] */ __RPC__in VARIANT *pvarIndex, + /* [in] */ __RPC__in VARIANT *pvarValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptProperty * This); + + DECLSPEC_XFGVIRT(IActiveScriptProperty, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IActiveScriptProperty * This, + /* [in] */ DWORD dwProperty, + /* [in] */ __RPC__in VARIANT *pvarIndex, + /* [out] */ __RPC__out VARIANT *pvarValue); + + DECLSPEC_XFGVIRT(IActiveScriptProperty, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IActiveScriptProperty * This, + /* [in] */ DWORD dwProperty, + /* [in] */ __RPC__in VARIANT *pvarIndex, + /* [in] */ __RPC__in VARIANT *pvarValue); + + END_INTERFACE + } IActiveScriptPropertyVtbl; + + interface IActiveScriptProperty + { + CONST_VTBL struct IActiveScriptPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptProperty_GetProperty(This,dwProperty,pvarIndex,pvarValue) \ + ( (This)->lpVtbl -> GetProperty(This,dwProperty,pvarIndex,pvarValue) ) + +#define IActiveScriptProperty_SetProperty(This,dwProperty,pvarIndex,pvarValue) \ + ( (This)->lpVtbl -> SetProperty(This,dwProperty,pvarIndex,pvarValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptProperty_INTERFACE_DEFINED__ */ + + +#ifndef __ITridentEventSink_INTERFACE_DEFINED__ +#define __ITridentEventSink_INTERFACE_DEFINED__ + +/* interface ITridentEventSink */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITridentEventSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1DC9CA50-06EF-11d2-8415-006008C3FBFC") + ITridentEventSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FireEvent( + /* [in] */ __RPC__in LPCOLESTR pstrEvent, + /* [in] */ __RPC__in DISPPARAMS *pdp, + /* [out] */ __RPC__out VARIANT *pvarRes, + /* [out] */ __RPC__out EXCEPINFO *pei) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITridentEventSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITridentEventSink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITridentEventSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITridentEventSink * This); + + DECLSPEC_XFGVIRT(ITridentEventSink, FireEvent) + HRESULT ( STDMETHODCALLTYPE *FireEvent )( + __RPC__in ITridentEventSink * This, + /* [in] */ __RPC__in LPCOLESTR pstrEvent, + /* [in] */ __RPC__in DISPPARAMS *pdp, + /* [out] */ __RPC__out VARIANT *pvarRes, + /* [out] */ __RPC__out EXCEPINFO *pei); + + END_INTERFACE + } ITridentEventSinkVtbl; + + interface ITridentEventSink + { + CONST_VTBL struct ITridentEventSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITridentEventSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITridentEventSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITridentEventSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITridentEventSink_FireEvent(This,pstrEvent,pdp,pvarRes,pei) \ + ( (This)->lpVtbl -> FireEvent(This,pstrEvent,pdp,pvarRes,pei) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITridentEventSink_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptGarbageCollector_INTERFACE_DEFINED__ +#define __IActiveScriptGarbageCollector_INTERFACE_DEFINED__ + +/* interface IActiveScriptGarbageCollector */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptGarbageCollector; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6AA2C4A0-2B53-11d4-A2A0-00104BD35090") + IActiveScriptGarbageCollector : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CollectGarbage( + SCRIPTGCTYPE scriptgctype) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptGarbageCollectorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptGarbageCollector * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptGarbageCollector * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptGarbageCollector * This); + + DECLSPEC_XFGVIRT(IActiveScriptGarbageCollector, CollectGarbage) + HRESULT ( STDMETHODCALLTYPE *CollectGarbage )( + __RPC__in IActiveScriptGarbageCollector * This, + SCRIPTGCTYPE scriptgctype); + + END_INTERFACE + } IActiveScriptGarbageCollectorVtbl; + + interface IActiveScriptGarbageCollector + { + CONST_VTBL struct IActiveScriptGarbageCollectorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptGarbageCollector_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptGarbageCollector_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptGarbageCollector_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptGarbageCollector_CollectGarbage(This,scriptgctype) \ + ( (This)->lpVtbl -> CollectGarbage(This,scriptgctype) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptGarbageCollector_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptSIPInfo_INTERFACE_DEFINED__ +#define __IActiveScriptSIPInfo_INTERFACE_DEFINED__ + +/* interface IActiveScriptSIPInfo */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptSIPInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("764651D0-38DE-11d4-A2A3-00104BD35090") + IActiveScriptSIPInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSIPOID( + /* [out] */ __RPC__out GUID *poid_sip) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptSIPInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptSIPInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptSIPInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptSIPInfo * This); + + DECLSPEC_XFGVIRT(IActiveScriptSIPInfo, GetSIPOID) + HRESULT ( STDMETHODCALLTYPE *GetSIPOID )( + __RPC__in IActiveScriptSIPInfo * This, + /* [out] */ __RPC__out GUID *poid_sip); + + END_INTERFACE + } IActiveScriptSIPInfoVtbl; + + interface IActiveScriptSIPInfo + { + CONST_VTBL struct IActiveScriptSIPInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptSIPInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptSIPInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptSIPInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptSIPInfo_GetSIPOID(This,poid_sip) \ + ( (This)->lpVtbl -> GetSIPOID(This,poid_sip) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptSIPInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptSiteTraceInfo_INTERFACE_DEFINED__ +#define __IActiveScriptSiteTraceInfo_INTERFACE_DEFINED__ + +/* interface IActiveScriptSiteTraceInfo */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptSiteTraceInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4B7272AE-1955-4bfe-98B0-780621888569") + IActiveScriptSiteTraceInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SendScriptTraceInfo( + /* [in] */ SCRIPTTRACEINFO stiEventType, + /* [in] */ GUID guidContextID, + /* [in] */ DWORD dwScriptContextCookie, + /* [in] */ LONG lScriptStatementStart, + /* [in] */ LONG lScriptStatementEnd, + /* [in] */ DWORD64 dwReserved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptSiteTraceInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptSiteTraceInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptSiteTraceInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptSiteTraceInfo * This); + + DECLSPEC_XFGVIRT(IActiveScriptSiteTraceInfo, SendScriptTraceInfo) + HRESULT ( STDMETHODCALLTYPE *SendScriptTraceInfo )( + __RPC__in IActiveScriptSiteTraceInfo * This, + /* [in] */ SCRIPTTRACEINFO stiEventType, + /* [in] */ GUID guidContextID, + /* [in] */ DWORD dwScriptContextCookie, + /* [in] */ LONG lScriptStatementStart, + /* [in] */ LONG lScriptStatementEnd, + /* [in] */ DWORD64 dwReserved); + + END_INTERFACE + } IActiveScriptSiteTraceInfoVtbl; + + interface IActiveScriptSiteTraceInfo + { + CONST_VTBL struct IActiveScriptSiteTraceInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptSiteTraceInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptSiteTraceInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptSiteTraceInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptSiteTraceInfo_SendScriptTraceInfo(This,stiEventType,guidContextID,dwScriptContextCookie,lScriptStatementStart,lScriptStatementEnd,dwReserved) \ + ( (This)->lpVtbl -> SendScriptTraceInfo(This,stiEventType,guidContextID,dwScriptContextCookie,lScriptStatementStart,lScriptStatementEnd,dwReserved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptSiteTraceInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptTraceInfo_INTERFACE_DEFINED__ +#define __IActiveScriptTraceInfo_INTERFACE_DEFINED__ + +/* interface IActiveScriptTraceInfo */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptTraceInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C35456E7-BEBF-4a1b-86A9-24D56BE8B369") + IActiveScriptTraceInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE StartScriptTracing( + /* [in] */ __RPC__in_opt IActiveScriptSiteTraceInfo *pSiteTraceInfo, + /* [in] */ GUID guidContextID) = 0; + + virtual HRESULT STDMETHODCALLTYPE StopScriptTracing( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptTraceInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptTraceInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptTraceInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptTraceInfo * This); + + DECLSPEC_XFGVIRT(IActiveScriptTraceInfo, StartScriptTracing) + HRESULT ( STDMETHODCALLTYPE *StartScriptTracing )( + __RPC__in IActiveScriptTraceInfo * This, + /* [in] */ __RPC__in_opt IActiveScriptSiteTraceInfo *pSiteTraceInfo, + /* [in] */ GUID guidContextID); + + DECLSPEC_XFGVIRT(IActiveScriptTraceInfo, StopScriptTracing) + HRESULT ( STDMETHODCALLTYPE *StopScriptTracing )( + __RPC__in IActiveScriptTraceInfo * This); + + END_INTERFACE + } IActiveScriptTraceInfoVtbl; + + interface IActiveScriptTraceInfo + { + CONST_VTBL struct IActiveScriptTraceInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptTraceInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptTraceInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptTraceInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptTraceInfo_StartScriptTracing(This,pSiteTraceInfo,guidContextID) \ + ( (This)->lpVtbl -> StartScriptTracing(This,pSiteTraceInfo,guidContextID) ) + +#define IActiveScriptTraceInfo_StopScriptTracing(This) \ + ( (This)->lpVtbl -> StopScriptTracing(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptTraceInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptStringCompare_INTERFACE_DEFINED__ +#define __IActiveScriptStringCompare_INTERFACE_DEFINED__ + +/* interface IActiveScriptStringCompare */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptStringCompare; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("58562769-ED52-42f7-8403-4963514E1F11") + IActiveScriptStringCompare : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE StrComp( + /* [in] */ __RPC__in BSTR bszStr1, + /* [in] */ __RPC__in BSTR bszStr2, + /* [retval][out] */ __RPC__out LONG *iRet) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptStringCompareVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptStringCompare * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptStringCompare * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptStringCompare * This); + + DECLSPEC_XFGVIRT(IActiveScriptStringCompare, StrComp) + HRESULT ( STDMETHODCALLTYPE *StrComp )( + __RPC__in IActiveScriptStringCompare * This, + /* [in] */ __RPC__in BSTR bszStr1, + /* [in] */ __RPC__in BSTR bszStr2, + /* [retval][out] */ __RPC__out LONG *iRet); + + END_INTERFACE + } IActiveScriptStringCompareVtbl; + + interface IActiveScriptStringCompare + { + CONST_VTBL struct IActiveScriptStringCompareVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptStringCompare_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptStringCompare_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptStringCompare_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptStringCompare_StrComp(This,bszStr1,bszStr2,iRet) \ + ( (This)->lpVtbl -> StrComp(This,bszStr1,bszStr2,iRet) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptStringCompare_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activscp_0000_0026 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __ActivScp_h + + + +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0026_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activscp_0000_0026_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* [local] */ HRESULT STDMETHODCALLTYPE IActiveScriptError_GetExceptionInfo_Proxy( + IActiveScriptError * This, + /* [out] */ EXCEPINFO *pexcepinfo); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IActiveScriptError_GetExceptionInfo_Stub( + __RPC__in IActiveScriptError * This, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo); + + + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActiveDS.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActiveDS.h new file mode 100644 index 0000000000000000000000000000000000000000..cbbdc2f5b64f615809e28f60d5124d75c31ab9fe --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActiveDS.h @@ -0,0 +1,71 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1996-1999 +// +// File: ads.h +// +// Contents: Master include file for Ole Ds +// +// Notes: All Ole Ds client applications must include this file. This +// provides access to the primary Ole Ds interfaces, the error +// codes, and function prototypes for the Ole Ds helper apis. +// +//---------------------------------------------------------------------------- + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Interface definitions and well known GUIDS for Ole Ds +// + +#include "iads.h" + + +// +// Helper function prototypes for Ole Ds +// + +#include "adshlp.h" + +// +// Error codes for Ole Ds - generated from ..\..\errmsg +// + +#include "adserr.h" + +// +// Globally accessible GUIDS +// + +#include "adsiid.h" + +// +// Status codes for ads objects +// + +#include "adssts.h" + +// +// Schema class names and other schema related definitions +// + +#include "adsnms.h" + + +// +// Definitions in the OLE DB provider for ADSI +// + +#include "adsdb.h" + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivityCoordinator.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivityCoordinator.h new file mode 100644 index 0000000000000000000000000000000000000000..84ba702811a8cd9c56083fe9504f1bac37df61ad --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivityCoordinator.h @@ -0,0 +1,131 @@ +/**************************************************************************************************** +* * +* activitycoordinator.h - ApiSet Contract for ext-ms-win-resourcemanager-activitycoordinator-l1.lib * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +****************************************************************************************************/ + +#pragma once + +#include +#include +#include +#include + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#ifdef __cplusplus +extern "C" { +#endif + +STDAPI +CreateActivityCoordinatorPolicy( + _In_ ACTIVITY_COORDINATOR_POLICY_TEMPLATE policyTemplate, + _Outptr_result_nullonfailure_ ACTIVITY_COORDINATOR_POLICY* policy + ); + +STDAPI +SetActivityCoordinatorPolicyResourceCondition( + _Inout_ ACTIVITY_COORDINATOR_POLICY policy, + _In_ ACTIVITY_COORDINATOR_RESOURCE resource, + _In_ ACTIVITY_COORDINATOR_CONDITION condition + ); + +STDAPI +GetActivityCoordinatorPolicyResourceCondition( + _In_ ACTIVITY_COORDINATOR_POLICY policy, + _In_ ACTIVITY_COORDINATOR_RESOURCE resource, + _Out_ ACTIVITY_COORDINATOR_CONDITION* condition + ); + +void +WINAPI +DestroyActivityCoordinatorPolicy( + _In_ _Post_invalid_ ACTIVITY_COORDINATOR_POLICY policy + ); + +STDAPI +SubscribeActivityCoordinatorPolicy( + _In_ ACTIVITY_COORDINATOR_POLICY policy, + _In_ ACTIVITY_COORDINATOR_CALLBACK callback, + _In_opt_ void* callbackContext, + _Outptr_result_nullonfailure_ ACTIVITY_COORDINATOR_SUBSCRIPTION* subscription + ); + +STDAPI +UnsubscribeActivityCoordinatorPolicy( + _In_ _Post_invalid_ ACTIVITY_COORDINATOR_SUBSCRIPTION subscription + ); + +BOOL +WINAPI +IsActivityCoordinatorResourceSupported( + _In_ ACTIVITY_COORDINATOR_RESOURCE Resource + ); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ + +#ifndef ext_ms_win_resourcemanager_activitycoordinator_l1_1_1_query_routines +#define ext_ms_win_resourcemanager_activitycoordinator_l1_1_1_query_routines + +// +//Private Extension API Query Routines +// + +#ifdef __cplusplus +extern "C" { +#endif + +BOOLEAN +__stdcall +IsCreateActivityCoordinatorPolicyPresent( + VOID + ); + +BOOLEAN +__stdcall +IsSetActivityCoordinatorPolicyResourceConditionPresent( + VOID + ); + +BOOLEAN +__stdcall +IsGetActivityCoordinatorPolicyResourceConditionPresent( + VOID + ); + +BOOLEAN +__stdcall +IsDestroyActivityCoordinatorPolicyPresent( + VOID + ); + +BOOLEAN +__stdcall +IsSubscribeActivityCoordinatorPolicyPresent( + VOID + ); + +BOOLEAN +__stdcall +IsUnsubscribeActivityCoordinatorPolicyPresent( + VOID + ); + +BOOLEAN +__stdcall +IsIsActivityCoordinatorResourceSupportedPresent( + VOID + ); + +#ifdef __cplusplus +} +#endif + +#endif // endof guard + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivityCoordinatorTypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivityCoordinatorTypes.h new file mode 100644 index 0000000000000000000000000000000000000000..d7fda33fd6150166f2e266a227ac52971cd73e6c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ActivityCoordinatorTypes.h @@ -0,0 +1,67 @@ +/*++ + +Copyright (c) 2021 Microsoft Corporation + +Module Name: + + ActivityCoordinatorTypes.h + +Abstract: + + This header defines the types used by the ActivityCoordinator API. + +--*/ + +#pragma once + +typedef enum _ACTIVITY_COORDINATOR_RESOURCE { + ACTIVITY_COORDINATOR_RESOURCE_USER_IDLE, + ACTIVITY_COORDINATOR_RESOURCE_POWER, + ACTIVITY_COORDINATOR_RESOURCE_NETWORK, + ACTIVITY_COORDINATOR_RESOURCE_CPU, + ACTIVITY_COORDINATOR_RESOURCE_MEMORY, + ACTIVITY_COORDINATOR_RESOURCE_SYSTEM_DISK, + ACTIVITY_COORDINATOR_RESOURCE_GPU, + ACTIVITY_COORDINATOR_RESOURCE_NPU +} ACTIVITY_COORDINATOR_RESOURCE; + +typedef enum _ACTIVITY_COORDINATOR_CONDITION { + ACTIVITY_COORDINATOR_CONDITION_GOOD, + ACTIVITY_COORDINATOR_CONDITION_MEDIUM, + ACTIVITY_COORDINATOR_CONDITION_NOT_SET +} ACTIVITY_COORDINATOR_CONDITION; + +typedef enum _ACTIVITY_COORDINATOR_POLICY_TEMPLATE { + ACTIVITY_COORDINATOR_POLICY_TEMPLATE_GOOD, + ACTIVITY_COORDINATOR_POLICY_TEMPLATE_MEDIUM, + ACTIVITY_COORDINATOR_POLICY_TEMPLATE_BASE, + ACTIVITY_COORDINATOR_POLICY_TEMPLATE_EMPTY +} ACTIVITY_COORDINATOR_POLICY_TEMPLATE; + +typedef enum _ACTIVITY_COORDINATOR_NOTIFICATION { + ACTIVITY_COORDINATOR_NOTIFICATION_RUN, + ACTIVITY_COORDINATOR_NOTIFICATION_STOP +} ACTIVITY_COORDINATOR_NOTIFICATION; + +#ifndef __midl + +// +// Activity Coordinator API Subscription Handle. +// + +DECLARE_HANDLE(ACTIVITY_COORDINATOR_SUBSCRIPTION); + +// +// Activity Coordinator API Policy Handle. +// + +DECLARE_HANDLE(ACTIVITY_COORDINATOR_POLICY); + +typedef +void +(CALLBACK *ACTIVITY_COORDINATOR_CALLBACK)( + _In_ ACTIVITY_COORDINATOR_NOTIFICATION notification, + _In_ void* callbackContext + ); + +#endif // __midl diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsDb.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsDb.h new file mode 100644 index 0000000000000000000000000000000000000000..2c3e05c27f50faf8adc0e8d8331816792c01cbaf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsDb.h @@ -0,0 +1,39 @@ +//+--------------------------------------------------------------------------- +// Copyright (C) 1996-1999, Microsoft Corporation. +// +// File: adsdb.h +// +// Contents: Definitions for the OLE DB provider for ADSI +// +//---------------------------------------------------------------------------- + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// printer status values +// + +#ifdef __cplusplus +extern "C" { +#endif + +// Most of the constants have been moved into an enum in adstype.h and +// are available publicly in iads.h. This file has been left here so that +// old references to adsdb.h do not break compiles. + +#define DBPROPFLAGS_ADSISEARCH 0x0000C000 + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsErr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsErr.h new file mode 100644 index 0000000000000000000000000000000000000000..65089f7ec7750af961429945558640a563a9ffc1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsErr.h @@ -0,0 +1,275 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + oledserr.mc + +Abstract: + + Error codes for ADs + +Revision History: + +--*/ + + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// ---------------------- HRESULT value definitions ----------------- +// +// HRESULT definitions +// + +#ifdef RC_INVOKED +#define _HRESULT_TYPEDEF_(_sc) _sc +#else // RC_INVOKED +#define _HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc) +#endif // RC_INVOKED + +// +// Values are 32 bit values layed out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---+-+-+-----------------------+-------------------------------+ +// |Sev|C|R| Facility | Code | +// +---+-+-+-----------------------+-------------------------------+ +// +// where +// +// Sev - is the severity code +// +// 00 - Success +// 01 - Informational +// 10 - Warning +// 11 - Error +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_WINDOWS 8 +#define FACILITY_STORAGE 3 +#define FACILITY_RPC 1 +#define FACILITY_SSPI 9 +#define FACILITY_WIN32 7 +#define FACILITY_CONTROL 10 +#define FACILITY_NULL 0 +#define FACILITY_ITF 4 +#define FACILITY_DISPATCH 2 + + +// +// Define the severity codes +// + + +// +// MessageId: E_ADS_BAD_PATHNAME +// +// MessageText: +// +// An invalid directory pathname was passed +// +#define E_ADS_BAD_PATHNAME _HRESULT_TYPEDEF_(0x80005000L) + +// +// MessageId: E_ADS_INVALID_DOMAIN_OBJECT +// +// MessageText: +// +// An unknown directory domain object was requested +// +#define E_ADS_INVALID_DOMAIN_OBJECT _HRESULT_TYPEDEF_(0x80005001L) + +// +// MessageId: E_ADS_INVALID_USER_OBJECT +// +// MessageText: +// +// An unknown directory user object was requested +// +#define E_ADS_INVALID_USER_OBJECT _HRESULT_TYPEDEF_(0x80005002L) + +// +// MessageId: E_ADS_INVALID_COMPUTER_OBJECT +// +// MessageText: +// +// An unknown directory computer object was requested +// +#define E_ADS_INVALID_COMPUTER_OBJECT _HRESULT_TYPEDEF_(0x80005003L) + +// +// MessageId: E_ADS_UNKNOWN_OBJECT +// +// MessageText: +// +// An unknown directory object was requested +// +#define E_ADS_UNKNOWN_OBJECT _HRESULT_TYPEDEF_(0x80005004L) + +// +// MessageId: E_ADS_PROPERTY_NOT_SET +// +// MessageText: +// +// The specified directory property was not set +// +#define E_ADS_PROPERTY_NOT_SET _HRESULT_TYPEDEF_(0x80005005L) + +// +// MessageId: E_ADS_PROPERTY_NOT_SUPPORTED +// +// MessageText: +// +// The specified directory property is not supported +// +#define E_ADS_PROPERTY_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80005006L) + +// +// MessageId: E_ADS_PROPERTY_INVALID +// +// MessageText: +// +// The specified directory property is invalid +// +#define E_ADS_PROPERTY_INVALID _HRESULT_TYPEDEF_(0x80005007L) + +// +// MessageId: E_ADS_BAD_PARAMETER +// +// MessageText: +// +// One or more input parameters are invalid +// +#define E_ADS_BAD_PARAMETER _HRESULT_TYPEDEF_(0x80005008L) + +// +// MessageId: E_ADS_OBJECT_UNBOUND +// +// MessageText: +// +// The specified directory object is not bound to a remote resource +// +#define E_ADS_OBJECT_UNBOUND _HRESULT_TYPEDEF_(0x80005009L) + +// +// MessageId: E_ADS_PROPERTY_NOT_MODIFIED +// +// MessageText: +// +// The specified directory object has not been modified +// +#define E_ADS_PROPERTY_NOT_MODIFIED _HRESULT_TYPEDEF_(0x8000500AL) + +// +// MessageId: E_ADS_PROPERTY_MODIFIED +// +// MessageText: +// +// The specified directory object has been modified +// +#define E_ADS_PROPERTY_MODIFIED _HRESULT_TYPEDEF_(0x8000500BL) + +// +// MessageId: E_ADS_CANT_CONVERT_DATATYPE +// +// MessageText: +// +// The directory datatype cannot be converted to/from a native DS datatype +// +#define E_ADS_CANT_CONVERT_DATATYPE _HRESULT_TYPEDEF_(0x8000500CL) + +// +// MessageId: E_ADS_PROPERTY_NOT_FOUND +// +// MessageText: +// +// The directory property cannot be found in the cache. +// +#define E_ADS_PROPERTY_NOT_FOUND _HRESULT_TYPEDEF_(0x8000500DL) + +// +// MessageId: E_ADS_OBJECT_EXISTS +// +// MessageText: +// +// The directory object exists. +// +#define E_ADS_OBJECT_EXISTS _HRESULT_TYPEDEF_(0x8000500EL) + +// +// MessageId: E_ADS_SCHEMA_VIOLATION +// +// MessageText: +// +// The attempted action violates the DS schema rules. +// +#define E_ADS_SCHEMA_VIOLATION _HRESULT_TYPEDEF_(0x8000500FL) + +// +// MessageId: E_ADS_COLUMN_NOT_SET +// +// MessageText: +// +// The specified column in the directory was not set. +// +#define E_ADS_COLUMN_NOT_SET _HRESULT_TYPEDEF_(0x80005010L) + +// +// MessageId: S_ADS_ERRORSOCCURRED +// +// MessageText: +// +// One or more errors occurred +// +#define S_ADS_ERRORSOCCURRED _HRESULT_TYPEDEF_(0x00005011L) + +// +// MessageId: S_ADS_NOMORE_ROWS +// +// MessageText: +// +// No more rows to be obatained by the search result. +// +#define S_ADS_NOMORE_ROWS _HRESULT_TYPEDEF_(0x00005012L) + +// +// MessageId: S_ADS_NOMORE_COLUMNS +// +// MessageText: +// +// No more columns to be obatained for the current row. +// +#define S_ADS_NOMORE_COLUMNS _HRESULT_TYPEDEF_(0x00005013L) + +// +// MessageId: E_ADS_INVALID_FILTER +// +// MessageText: +// +// The search filter specified is invalid +// +#define E_ADS_INVALID_FILTER _HRESULT_TYPEDEF_(0x80005014L) + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsHlp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsHlp.h new file mode 100644 index 0000000000000000000000000000000000000000..65686c67b9e17a84fd3a05a7a6301706db159301 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsHlp.h @@ -0,0 +1,239 @@ +#include +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1996-1999 +// +// File: oleds.h +// +// Contents: Public header file for all oleds client code +// +//---------------------------------------------------------------------------- + +#ifndef _ADSHLP_ +#define _ADSHLP_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +HRESULT WINAPI +ADsGetObject( + LPCWSTR lpszPathName, + REFIID riid, + VOID * * ppObject + ); + + +HRESULT WINAPI +ADsBuildEnumerator( + IADsContainer *pADsContainer, + IEnumVARIANT **ppEnumVariant + ); + +HRESULT WINAPI +ADsFreeEnumerator( + IEnumVARIANT *pEnumVariant + ); + +HRESULT WINAPI +ADsEnumerateNext( + IEnumVARIANT *pEnumVariant, + ULONG cElements, + VARIANT FAR *pvar, + ULONG FAR *pcElementsFetched + ); + +HRESULT WINAPI +ADsBuildVarArrayStr( + _In_reads_(dwPathNames) LPWSTR * lppPathNames, + DWORD dwPathNames, + VARIANT * pVar + ); + +HRESULT WINAPI +ADsBuildVarArrayInt( + LPDWORD lpdwObjectTypes, + DWORD dwObjectTypes, + VARIANT * pVar + ); + + +HRESULT WINAPI +ADsOpenObject( + LPCWSTR lpszPathName, + LPCWSTR lpszUserName, + LPCWSTR lpszPassword, + DWORD dwReserved, + REFIID riid, + void FAR * FAR * ppObject + ); + +// +// Helper functions for extended error support +// + +HRESULT WINAPI +ADsGetLastError( + OUT LPDWORD lpError, + _Out_writes_(dwErrorBufLen) LPWSTR lpErrorBuf, + IN DWORD dwErrorBufLen, + _Out_writes_(dwNameBufLen) LPWSTR lpNameBuf, + IN DWORD dwNameBufLen + ); + +VOID WINAPI +ADsSetLastError( + IN DWORD dwErr, + IN LPCWSTR pszError, + IN LPCWSTR pszProvider + ); + + +VOID WINAPI +ADsFreeAllErrorRecords( + VOID); + +LPVOID WINAPI +AllocADsMem( + DWORD cb +); + +BOOL WINAPI +FreeADsMem( + LPVOID pMem +); + +LPVOID WINAPI +ReallocADsMem( + LPVOID pOldMem, + DWORD cbOld, + DWORD cbNew +); + +LPWSTR WINAPI +AllocADsStr( + LPCWSTR pStr +); + +BOOL WINAPI +FreeADsStr( + _In_ LPWSTR pStr +); + + +BOOL WINAPI +ReallocADsStr( + _Inout_ LPWSTR *ppStr, + _In_ LPWSTR pStr +); + + +HRESULT WINAPI +ADsEncodeBinaryData ( + PBYTE pbSrcData, + DWORD dwSrcLen, + _Outptr_ LPWSTR * ppszDestData + ); + +HRESULT WINAPI +ADsDecodeBinaryData ( + LPCWSTR szSrcData, + PBYTE *ppbDestData, + ULONG *pdwDestLen + ); + +HRESULT WINAPI +PropVariantToAdsType( + VARIANT * pVariant, + DWORD dwNumVariant, + PADSVALUE *ppAdsValues, + PDWORD pdwNumValues + ); + +HRESULT WINAPI +AdsTypeToPropVariant( + PADSVALUE pAdsValues, + DWORD dwNumValues, + VARIANT * pVariant + ); + +void WINAPI +AdsFreeAdsValues( + PADSVALUE pAdsValues, + DWORD dwNumValues + ); + +// +// Helper routines to convert IADsSecurityDescriptor to a binary +// security descriptor and also to convert a binary SD to +// IADsSecurityDescriptor. +// +HRESULT WINAPI +BinarySDToSecurityDescriptor( + PSECURITY_DESCRIPTOR pSecurityDescriptor, + VARIANT *pVarsec, + LPCWSTR pszServerName, + LPCWSTR userName, + LPCWSTR passWord, + DWORD dwFlags + ); + +HRESULT WINAPI +SecurityDescriptorToBinarySD( + VARIANT vVarSecDes, + PSECURITY_DESCRIPTOR * ppSecurityDescriptor, + PDWORD pdwSDLength, + LPCWSTR pszServerName, + LPCWSTR userName, + LPCWSTR passWord, + DWORD dwFlags + ); + +#if DBG + +extern LIST_ENTRY ADsMemList ; + +extern CRITICAL_SECTION ADsMemCritSect ; + +VOID InitADsMem( + VOID + ) ; + +VOID AssertADsMemLeaks( + VOID + ) ; + + +VOID +DumpMemoryTracker(); + + +#else + +#define InitADsMem() +#define AssertADsMemLeaks() + +#define DumpMemoryTracker() + + + +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _ADSHLP_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsProp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsProp.h new file mode 100644 index 0000000000000000000000000000000000000000..740baae061e52ae3560a80c3c3265eeb22b8e537 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdsProp.h @@ -0,0 +1,213 @@ +//+---------------------------------------------------------------------------- +// +// Windows NT Active Directory Service Property Pages +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992-1999. +// +// File: adsprop.h +// +// Contents: Functions and definitions used in the creation of AD property +// sheets. +// +// History: 28-Sept-98 Eric Brown created. +// +//----------------------------------------------------------------------------- + +#ifndef _ADSPROP_H_ +#define _ADSPROP_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +#define WM_ADSPROP_NOTIFY_PAGEINIT (WM_USER + 1101) // where LPARAM is the PADSPROPINITPARAMS pointer. +#define WM_ADSPROP_NOTIFY_PAGEHWND (WM_USER + 1102) // where WPARAM => page's HWND and LPARAM => page's Title +#define WM_ADSPROP_NOTIFY_CHANGE (WM_USER + 1103) // used to send a change notification to a parent sheet +#define WM_ADSPROP_NOTIFY_APPLY (WM_USER + 1104) // pages send this to the notification object. +#define WM_ADSPROP_NOTIFY_SETFOCUS (WM_USER + 1105) // used internally by the notification object. +#define WM_ADSPROP_NOTIFY_FOREGROUND (WM_USER + 1106) // used internally by the notification object. +#define WM_ADSPROP_NOTIFY_EXIT (WM_USER + 1107) // sent on page release +#define WM_ADSPROP_NOTIFY_ERROR (WM_USER + 1110) // used to send the notification object an error message + +//+---------------------------------------------------------------------------- +// +// Structure: ADSPROPINITPARAMS +// +// Usage: Used to pass page initialization information to new pages from +// the notify object. +// +//----------------------------------------------------------------------------- +typedef struct _ADSPROPINITPARAMS { + DWORD dwSize; // Set this to the size of the struct. + DWORD dwFlags; // Reserved for future use. + HRESULT hr; // If this is non-zero, then the others + IDirectoryObject * pDsObj; // should be ignored. + LPWSTR pwzCN; + PADS_ATTR_INFO pWritableAttrs; +} ADSPROPINITPARAMS, * PADSPROPINITPARAMS; + +//+---------------------------------------------------------------------------- +// +// Structure: ADSPROPERROR +// +// Usage: Used to pass page error information to the notify object +// +//----------------------------------------------------------------------------- +typedef struct _ADSPROPERROR { + HWND hwndPage; // The HWND of the page that had the error + PWSTR pszPageTitle; // The title of the page that had the error + PWSTR pszObjPath; // Path to the object that the error occurred on + PWSTR pszObjClass; // Class of the object that the error occurred on + HRESULT hr; // If this is non-zero, then the others + // pszError will be ignored + PWSTR pszError; // An error message. Used only if hr is zero +} ADSPROPERROR, * PADSPROPERROR; + +//+---------------------------------------------------------------------------- +// +// Function: ADsPropCreateNotifyObj +// +// Synopsis: Checks to see if the notification window/object exists for this +// sheet instance and if not creates it. +// +// Arguments: [pAppThdDataObj] - the unmarshalled data object pointer. +// [pwzADsObjName] - object path name. +// [phNotifyObj] - to return the notificion window handle. +// +// Returns: HRESULTs. +// +//----------------------------------------------------------------------------- +STDAPI +ADsPropCreateNotifyObj(LPDATAOBJECT pAppThdDataObj, _In_ PWSTR pwzADsObjName, + HWND * phNotifyObj); + +//+---------------------------------------------------------------------------- +// +// Function: ADsPropGetInitInfo +// +// Synopsis: Pages call this at their init time to retreive DS object info. +// +// Arguments: [hNotifyObj] - the notificion window handle. +// [pInitParams] - struct filled in with DS object info. This +// struct must be allocated by the caller before +// the call. +// +// Returns: FALSE if the notify window has gone away for some reason or +// if the parameters are invalid. +// +// Notes: This call results in the sending of the +// WM_ADSPROP_NOTIFY_PAGEINIT message to the notify window. +// pInitParams->pWritableAttrs can be NULL if there are no +// writable attributes. +// +//----------------------------------------------------------------------------- +STDAPI_(BOOL) +ADsPropGetInitInfo(HWND hNotifyObj, PADSPROPINITPARAMS pInitParams); + +//+---------------------------------------------------------------------------- +// +// Function: ADsPropSetHwndWithTitle +// +// Synopsis: Pages call this at their dialog init time to send their hwnd +// to the Notify object. +// +// Arguments: [hNotifyObj] - the notificion window handle. +// [hPage] - the page's window handle. +// [ptzTitle] - the page's title +// +// Returns: FALSE if the notify window has gone away for some reason. +// +// Notes: Sends the WM_ADSPROP_NOTIFY_PAGEHWND message to the notify +// window. Use this function instead of ADsPropSetHwnd for +// multi-select property pages +// +//----------------------------------------------------------------------------- +STDAPI_(BOOL) +ADsPropSetHwndWithTitle(HWND hNotifyObj, HWND hPage, _In_ PTSTR ptzTitle); + +//+---------------------------------------------------------------------------- +// +// Function: ADsPropSetHwnd +// +// Synopsis: Pages call this at their dialog init time to send their hwnd +// to the Notify object. +// +// Arguments: [hNotifyObj] - the notificion window handle. +// [hPage] - the page's window handle. +// +// Returns: FALSE if the notify window has gone away for some reason. +// +// Notes: Sends the WM_ADSPROP_NOTIFY_PAGEHWND message to the notify +// window. +// +//----------------------------------------------------------------------------- +STDAPI_(BOOL) +ADsPropSetHwnd(HWND hNotifyObj, HWND hPage); + +//+---------------------------------------------------------------------------- +// +// function: ADsPropCheckIfWritable +// +// Synopsis: See if the attribute is writable by checking if it is in +// the allowedAttributesEffective array. +// +// Arguments: [pwzAttr] - the attribute name. +// [pWritableAttrs] - the array of writable attributes. +// +// Returns: FALSE if the attribute name is not found in the writable-attrs +// array or if the array pointer is NULL. +// +//----------------------------------------------------------------------------- +STDAPI_(BOOL) +ADsPropCheckIfWritable(_In_ const PWSTR pwzAttr, const PADS_ATTR_INFO pWritableAttrs); + +//+---------------------------------------------------------------------------- +// +// function: ADsPropSendErrorMessage +// +// Synopsis: Adds an error message to a list which is presented when +// ADsPropShowErrorDialog is called +// +// Arguments: [hNotifyObj] - the notificion window handle. +// [pError] - the error structure +// +// Returns: FALSE if the notify window has gone away for some reason. +// +//----------------------------------------------------------------------------- +STDAPI_(BOOL) +ADsPropSendErrorMessage(HWND hNotifyObj, PADSPROPERROR pError); + +//+---------------------------------------------------------------------------- +// +// function: ADsPropShowErrorDialog +// +// Synopsis: Presents an error dialog with the error messages accumulated +// through calls to ADsPropSendErrorMessage +// +// Arguments: [hNotifyObj] - the notificion window handle. +// [hPage] - the property page window handle. +// +// Returns: FALSE if the notify window has gone away for some reason. +// +//----------------------------------------------------------------------------- +STDAPI_(BOOL) +ADsPropShowErrorDialog(HWND hNotifyObj, HWND hPage); + +#ifdef __cplusplus +} +#endif // __cplusplus + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _ADSPROP_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Adsnms.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Adsnms.h new file mode 100644 index 0000000000000000000000000000000000000000..d888287043e1d1cdeee51175bf2212a465d63878 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Adsnms.h @@ -0,0 +1,72 @@ +//+--------------------------------------------------------------------------- +// Copyright (C) 1996-1999, Microsoft Corporation. +// +// File: oledsnms.h +// +// Contents: Class Names and schema definitions for ADS objects +// +//---------------------------------------------------------------------------- + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#define NAMESPACE_CLASS_NAME TEXT("Namespace") +#define COUNTRY_CLASS_NAME TEXT("Country") +#define LOCALITY_CLASS_NAME TEXT("Locality") +#define ORGANIZATION_CLASS_NAME TEXT("Organization") +#define ORGANIZATIONUNIT_CLASS_NAME TEXT("Organizational Unit") +#define DOMAIN_CLASS_NAME TEXT("Domain") +#define COMPUTER_CLASS_NAME TEXT("Computer") +#define USER_CLASS_NAME TEXT("User") +#define GROUP_CLASS_NAME TEXT("Group") +#define GLOBALGROUP_CLASS_NAME TEXT("GlobalGroup") +#define LOCALGROUP_CLASS_NAME TEXT("LocalGroup") +#define SERVICE_CLASS_NAME TEXT("Service") +#define FILESERVICE_CLASS_NAME TEXT("FileService") +#define SESSION_CLASS_NAME TEXT("Session") +#define RESOURCE_CLASS_NAME TEXT("Resource") +#define FILESHARE_CLASS_NAME TEXT("FileShare") +#define PRINTER_CLASS_NAME TEXT("PrintQueue") +#define PRINTJOB_CLASS_NAME TEXT("PrintJob") +#define SCHEMA_CLASS_NAME TEXT("Schema") +#define CLASS_CLASS_NAME TEXT("Class") +#define PROPERTY_CLASS_NAME TEXT("Property") +#define SYNTAX_CLASS_NAME TEXT("Syntax") +#define ROOTDSE_CLASS_NAME TEXT("RootDSE") + +#define NO_SCHEMA TEXT("") +#define DOMAIN_SCHEMA_NAME TEXT("Domain") +#define COMPUTER_SCHEMA_NAME TEXT("Computer") +#define USER_SCHEMA_NAME TEXT("User") +#define GROUP_SCHEMA_NAME TEXT("Group") +#define GLOBALGROUP_SCHEMA_NAME TEXT("GlobalGroup") +#define LOCALGROUP_SCHEMA_NAME TEXT("LocalGroup") +#define SERVICE_SCHEMA_NAME TEXT("Service") +#define PRINTER_SCHEMA_NAME TEXT("PrintQueue") +#define PRINTJOB_SCHEMA_NAME TEXT("PrintJob") +#define FILESERVICE_SCHEMA_NAME TEXT("FileService") +#define SESSION_SCHEMA_NAME TEXT("Session") +#define RESOURCE_SCHEMA_NAME TEXT("Resource") +#define FILESHARE_SCHEMA_NAME TEXT("FileShare") +#define FPNW_FILESERVICE_SCHEMA_NAME TEXT("FPNWFileService") +#define FPNW_SESSION_SCHEMA_NAME TEXT("FPNWSession") +#define FPNW_RESOURCE_SCHEMA_NAME TEXT("FPNWResource") +#define FPNW_FILESHARE_SCHEMA_NAME TEXT("FPNWFileShare") + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Adssts.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Adssts.h new file mode 100644 index 0000000000000000000000000000000000000000..bc3ccd4200f6524e09c8af8091c3a714477fcbba --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Adssts.h @@ -0,0 +1,117 @@ +//+--------------------------------------------------------------------------- +// Copyright (C) 1996-1999, Microsoft Corporation. +// +// File: status.h +// +// Contents: Status Codes for ADS objects +// +//---------------------------------------------------------------------------- + +// +// printer status values +// + +#ifdef __cplusplus +extern "C" { +#endif + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#define ADS_PRINTER_PAUSED 0x00000001 +#define ADS_PRINTER_PENDING_DELETION 0x00000002 +#define ADS_PRINTER_ERROR 0x00000003 +#define ADS_PRINTER_PAPER_JAM 0x00000004 +#define ADS_PRINTER_PAPER_OUT 0x00000005 +#define ADS_PRINTER_MANUAL_FEED 0x00000006 +#define ADS_PRINTER_PAPER_PROBLEM 0x00000007 +#define ADS_PRINTER_OFFLINE 0x00000008 +#define ADS_PRINTER_IO_ACTIVE 0x00000100 +#define ADS_PRINTER_BUSY 0x00000200 +#define ADS_PRINTER_PRINTING 0x00000400 +#define ADS_PRINTER_OUTPUT_BIN_FULL 0x00000800 +#define ADS_PRINTER_NOT_AVAILABLE 0x00001000 +#define ADS_PRINTER_WAITING 0x00002000 +#define ADS_PRINTER_PROCESSING 0x00004000 +#define ADS_PRINTER_INITIALIZING 0x00008000 +#define ADS_PRINTER_WARMING_UP 0x00010000 +#define ADS_PRINTER_TONER_LOW 0x00020000 +#define ADS_PRINTER_NO_TONER 0x00040000 +#define ADS_PRINTER_PAGE_PUNT 0x00080000 +#define ADS_PRINTER_USER_INTERVENTION 0x00100000 +#define ADS_PRINTER_OUT_OF_MEMORY 0x00200000 +#define ADS_PRINTER_DOOR_OPEN 0x00400000 +#define ADS_PRINTER_SERVER_UNKNOWN 0x00800000 +#define ADS_PRINTER_POWER_SAVE 0x01000000 + +// +// job status values +// + +#define ADS_JOB_PAUSED 0x00000001 +#define ADS_JOB_ERROR 0x00000002 +#define ADS_JOB_DELETING 0x00000004 +#define ADS_JOB_SPOOLING 0x00000008 +#define ADS_JOB_PRINTING 0x00000010 +#define ADS_JOB_OFFLINE 0x00000020 +#define ADS_JOB_PAPEROUT 0x00000040 +#define ADS_JOB_PRINTED 0x00000080 +#define ADS_JOB_DELETED 0x00000100 + +// +// service status values +// + +#define ADS_SERVICE_STOPPED 0x00000001 +#define ADS_SERVICE_START_PENDING 0x00000002 +#define ADS_SERVICE_STOP_PENDING 0x00000003 +#define ADS_SERVICE_RUNNING 0x00000004 +#define ADS_SERVICE_CONTINUE_PENDING 0x00000005 +#define ADS_SERVICE_PAUSE_PENDING 0x00000006 +#define ADS_SERVICE_PAUSED 0x00000007 +#define ADS_SERVICE_ERROR 0x00000008 + +//--------------------------------------------------------------------- + +// +// Service Type Valid Values +// + +#define ADS_SERVICE_OWN_PROCESS 0x00000010 +#define ADS_SERVICE_SHARE_PROCESS 0x00000020 +#define ADS_SERVICE_KERNEL_DRIVER 0x00000001 +#define ADS_SERVICE_FILE_SYSTEM_DRIVER 0x00000002 + +// +// Start Type Valid Values +// + +#define ADS_SERVICE_BOOT_START SERVICE_BOOT_START +#define ADS_SERVICE_SYSTEM_START SERVICE_SYSTEM_START +#define ADS_SERVICE_AUTO_START SERVICE_AUTO_START +#define ADS_SERVICE_DEMAND_START SERVICE_DEMAND_START +#define ADS_SERVICE_DISABLED SERVICE_DISABLED + +// +// Error Control Values +// + +#define ADS_SERVICE_ERROR_IGNORE 0 +#define ADS_SERVICE_ERROR_NORMAL 1 +#define ADS_SERVICE_ERROR_SEVERE 2 +#define ADS_SERVICE_ERROR_CRITICAL 3 + + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdtGen.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdtGen.h new file mode 100644 index 0000000000000000000000000000000000000000..8a3b22766a0f51b25a2c8b872a66a72dd4561f25 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AdtGen.h @@ -0,0 +1,477 @@ +/*+----------------------------------------------------------------------- + + Microsoft Windows + + Copyright (c) Microsoft Corporation 2000 + + File: A D T G E N . H + + Contents: definitions of types/functions required for + generating generic audits. + + !!!WARNING!!! + This file is included by lsarpc.idl, therefore, if you + change it, make sure to clean build the entire DS depot. + + + History: + 07-January-2000 kumarp created + +------------------------------------------------------------------------*/ + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4001) /* nonstandard extension: single line comment */ +#pragma warning(disable:4201) /* nonstandard extension: nameless struct/union */ +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +#ifndef _ADTGEN_H +#define _ADTGEN_H +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + + +// +// type of audit +// +// AUDIT_TYPE_LEGACY +// In this case the audit event schema is stored in a .mc file. +// +// AUDIT_TYPE_WMI +// The schema is stored in WMI. (currently not supported) +// + +#define AUDIT_TYPE_LEGACY 1 +#define AUDIT_TYPE_WMI 2 + +// +// Type of parameters passed in the AUDIT_PARAMS.Parameters array +// +// Use the AdtInitParams function to initialize and prepare +// an array of audit parameters. +// + +typedef enum _AUDIT_PARAM_TYPE +{ + // + // do we need this? + // + + APT_None = 1, + + // + // NULL terminated string + // + + APT_String, + + // + // unsigned long + // + + APT_Ulong, + + // + // a pointer. use for specifying handles/pointers + // (32 bit on 32 bit systems and 64 bit on 64 bit systems) + // Note that the memory to which the pointer points to + // is not marshalled when using this type. Use this when you + // are interested in the absolute value of the pointer. + // A good example of this is when specifying HANDLE values. + // + + APT_Pointer, + + // + // SID + // + + APT_Sid, + + // + // Logon ID (LUID), this results in 3 output parameters. + // 1. Account Name 2. Authority Name 3. LogonID + // + + APT_LogonId, + + // + // Object Type List + // + + APT_ObjectTypeList, + + // + // Luid (not translated to LogonId) + // + + APT_Luid, + + // + // Guid + // + + APT_Guid, + + // + // Time (FILETIME) + // + + APT_Time, + + // + // ULONGLONG + // + + APT_Int64, + + // + // IP Addess (IPv4 and IPv6). This logs the address as the + // first parameter and the port as the second. So ensure + // that 2 entries are added in the event message file, one + // for the address and the immediate next entry as the port + // + + APT_IpAddress, + + // + // Logon ID with SID (LUID) results in 4 output parameters. + // 1. SID 2. Account Name 3. Authority Name 4. LogonID + // + + APT_LogonIdWithSid + +} AUDIT_PARAM_TYPE; + +// +// There are two types of flags that can be used with a parameter. +// +// - formatting flag +// This defines the appearance of a parameter when +// written to the eventlog. Such flags may become obsolete +// when we move to WMI auditing. +// +// - control flag +// This causes a specified action to be taken that affects +// a parameter value. +// +// For example: +// If you use the AP_PrimaryLogonId/AP_ClientLogonId flag, +// the system will capture the logon-id from the process/thread token. +// + +#define AP_ParamTypeBits 8 +#define AP_ParamTypeMask 0x000000ffL + +// +// the flags values below have overlapping values. this is ok since +// the scope of each flag is limited to the type to which it applies. +// + +// +// APT_Ulong : format flag : causes a number to appear in hex +// + +#define AP_FormatHex (0x0001L << AP_ParamTypeBits) + +// +// APT_Ulong : format flag : causes a number to be treated as access-mask. +// The meaning of each bit depends on the associated +// object type. +// + +#define AP_AccessMask (0x0002L << AP_ParamTypeBits) + + +// +// APT_String : format flag : causes a string to be treated as a file-path +// + +#define AP_Filespec (0x0001L << AP_ParamTypeBits) + +// +// APT_Sid : format flag : causes a sid to be treated as a logon-id +// + +#define AP_SidAsLogonId (0x0001L << AP_ParamTypeBits) + +// +// APT_LogonId : control flag : logon-id is captured from the process token +// + +#define AP_PrimaryLogonId (0x0001L << AP_ParamTypeBits) + +// +// APT_LogonId : control flag : logon-id is captured from the thread token +// + +#define AP_ClientLogonId (0x0002L << AP_ParamTypeBits) + + +// +// internal helper macros +// + +#define ApExtractType(TypeFlags) ((AUDIT_PARAM_TYPE)(TypeFlags & AP_ParamTypeMask)) +#define ApExtractFlags(TypeFlags) ((TypeFlags & ~AP_ParamTypeMask)) + +// +// Element of an object-type-list +// +// The AUDIT_OBJECT_TYPES structure identifies an object type element +// in a hierarchy of object types. The AccessCheckByType functions use +// an array of such structures to define a hierarchy of an object and +// its subobjects, such as property sets and properties. +// + +typedef struct _AUDIT_OBJECT_TYPE +{ + GUID ObjectType; // guid of the (sub)object + USHORT Flags; // currently not defined + USHORT Level; // level within the hierarchy. + // 0 is the root level + ACCESS_MASK AccessMask; // access-mask for this (sub)object +} AUDIT_OBJECT_TYPE, *PAUDIT_OBJECT_TYPE; + +typedef struct _AUDIT_OBJECT_TYPES +{ + USHORT Count; // number of object-types in pObjectTypes + USHORT Flags; // currently not defined +#ifdef MIDL_PASS + [size_is(Count)] +#endif + AUDIT_OBJECT_TYPE* pObjectTypes; // array of object-types +} AUDIT_OBJECT_TYPES, *PAUDIT_OBJECT_TYPES; + + +// +// Maximum size of the SOCKADDR_STORAGE structure +// + +#define _AUTHZ_SS_MAXSIZE 128 // Maximum size + + +typedef struct _AUDIT_IP_ADDRESS +{ + BYTE pIpAddress[_AUTHZ_SS_MAXSIZE]; +} AUDIT_IP_ADDRESS, *PAUDIT_IP_ADDRESS; + +// +// Structure that defines a single audit parameter. +// +// LsaGenAuditEvent accepts an array of such elements to +// represent the parameters of the audit to be generated. +// +// It is best to initialize this structure using AdtInitParams function. +// This will ensure compatibility with any future changes to this +// structure. +// + +typedef struct _AUDIT_PARAM +{ + AUDIT_PARAM_TYPE Type; // type + ULONG Length; // currently unused + DWORD Flags; // currently unused + +#ifdef MIDL_PASS + [switch_type(AUDIT_PARAM_TYPE),switch_is(Type)] +#endif + union + { +#ifdef MIDL_PASS + [default] +#endif + ULONG_PTR Data0; + +#ifdef MIDL_PASS + [case(APT_String)] + [string] +#endif + PWSTR String; + + +#ifdef MIDL_PASS + [case(APT_Ulong, + APT_Pointer)] +#endif + ULONG_PTR u; + +#ifdef MIDL_PASS + [case(APT_Sid)] +#endif + SID* psid; + +#ifdef MIDL_PASS + [case(APT_Guid)] +#endif + GUID* pguid; + +#ifdef MIDL_PASS + [case(APT_LogonId)] +#endif + ULONG LogonId_LowPart; + +#ifdef MIDL_PASS + [case(APT_ObjectTypeList)] +#endif + AUDIT_OBJECT_TYPES* pObjectTypes; + +#ifdef MIDL_PASS + [case(APT_IpAddress)] +#endif + AUDIT_IP_ADDRESS* pIpAddress; + } DUMMYUNIONNAME; + +#ifdef MIDL_PASS + [switch_type(AUDIT_PARAM_TYPE),switch_is(Type)] +#endif + union + { +#ifdef MIDL_PASS + [default] +#endif + ULONG_PTR Data1; + +#ifdef MIDL_PASS + [case(APT_LogonId)] +#endif + LONG LogonId_HighPart; + } DUMMYUNIONNAME2; + +} AUDIT_PARAM, *PAUDIT_PARAM; + +// +// Audit control flags. To be used with AUDIT_PARAMS.Flags +// + +#define APF_AuditFailure 0x00000000 // generate a failure audit +#define APF_AuditSuccess 0x00000001 // generate a success audit when set, + // a failure audit otherwise. + +// +// set of valid audit control flags +// + +#define APF_ValidFlags (APF_AuditSuccess) + +// +// Audit parameters passed to LsaGenAuditEvent +// + +typedef struct _AUDIT_PARAMS +{ + ULONG Length; // size in bytes + DWORD Flags; // currently unused + USHORT Count; // number of parameters +#ifdef MIDL_PASS + [size_is(Count)] +#endif + AUDIT_PARAM* Parameters; // array of parameters +} AUDIT_PARAMS, *PAUDIT_PARAMS; + +// +// Defines the elements of a legacy audit event. +// + +typedef struct _AUTHZ_AUDIT_EVENT_TYPE_LEGACY +{ + // + // Audit category ID + // + + USHORT CategoryId; + + // + // Audit event ID + // + + USHORT AuditId; + + // + // Parameter count + // + + USHORT ParameterCount; + +} AUTHZ_AUDIT_EVENT_TYPE_LEGACY, *PAUTHZ_AUDIT_EVENT_TYPE_LEGACY; + +typedef +#ifdef MIDL_PASS +[switch_type(BYTE)] +#endif +union _AUTHZ_AUDIT_EVENT_TYPE_UNION +{ +#ifdef MIDL_PASS + [case(AUDIT_TYPE_LEGACY)] +#endif + AUTHZ_AUDIT_EVENT_TYPE_LEGACY Legacy; +} AUTHZ_AUDIT_EVENT_TYPE_UNION, *PAUTHZ_AUDIT_EVENT_TYPE_UNION; + +// +// description of an audit event +// + +typedef +struct _AUTHZ_AUDIT_EVENT_TYPE_OLD +{ + // version number + + ULONG Version; + DWORD dwFlags; + LONG RefCount; + ULONG_PTR hAudit; + LUID LinkId; +#ifdef MIDL_PASS + [switch_is(Version)] +#endif + AUTHZ_AUDIT_EVENT_TYPE_UNION u; + +} AUTHZ_AUDIT_EVENT_TYPE_OLD; + +typedef +#ifdef MIDL_PASS +[handle] +#endif +AUTHZ_AUDIT_EVENT_TYPE_OLD* PAUTHZ_AUDIT_EVENT_TYPE_OLD; + +// +// Flags for AUTHZ_AUDIT_EVENT_TYPE_OLD +// +#define AUTHZP_WPD_EVENT 0x10 + +typedef +#ifdef MIDL_PASS +[context_handle] +#endif +PVOID AUDIT_HANDLE, *PAUDIT_HANDLE; + +// +// Begin support for extensible auditing. +// + +// +// Registration Flags. +// + +#define AUTHZ_ALLOW_MULTIPLE_SOURCE_INSTANCES 0x1 +#define AUTHZ_MIGRATED_LEGACY_PUBLISHER 0x2 + +// +// Audit Generation Flags. +// + +#define AUTHZ_AUDIT_INSTANCE_INFORMATION 0x2 + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif //_ADTGEN_H + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AppxPackaging.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AppxPackaging.h new file mode 100644 index 0000000000000000000000000000000000000000..f7131897e8156f0ceffc83ffa2864f95f0d88f14 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AppxPackaging.h @@ -0,0 +1,11080 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __appxpackaging_h__ +#define __appxpackaging_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAppxFactory_FWD_DEFINED__ +#define __IAppxFactory_FWD_DEFINED__ +typedef interface IAppxFactory IAppxFactory; + +#endif /* __IAppxFactory_FWD_DEFINED__ */ + + +#ifndef __IAppxFactory2_FWD_DEFINED__ +#define __IAppxFactory2_FWD_DEFINED__ +typedef interface IAppxFactory2 IAppxFactory2; + +#endif /* __IAppxFactory2_FWD_DEFINED__ */ + + +#ifndef __IAppxFactory3_FWD_DEFINED__ +#define __IAppxFactory3_FWD_DEFINED__ +typedef interface IAppxFactory3 IAppxFactory3; + +#endif /* __IAppxFactory3_FWD_DEFINED__ */ + + +#ifndef __IAppxFactory4_FWD_DEFINED__ +#define __IAppxFactory4_FWD_DEFINED__ +typedef interface IAppxFactory4 IAppxFactory4; + +#endif /* __IAppxFactory4_FWD_DEFINED__ */ + + +#ifndef __IAppxPackageReader_FWD_DEFINED__ +#define __IAppxPackageReader_FWD_DEFINED__ +typedef interface IAppxPackageReader IAppxPackageReader; + +#endif /* __IAppxPackageReader_FWD_DEFINED__ */ + + +#ifndef __IAppxPackageWriter_FWD_DEFINED__ +#define __IAppxPackageWriter_FWD_DEFINED__ +typedef interface IAppxPackageWriter IAppxPackageWriter; + +#endif /* __IAppxPackageWriter_FWD_DEFINED__ */ + + +#ifndef __IAppxPackageWriter2_FWD_DEFINED__ +#define __IAppxPackageWriter2_FWD_DEFINED__ +typedef interface IAppxPackageWriter2 IAppxPackageWriter2; + +#endif /* __IAppxPackageWriter2_FWD_DEFINED__ */ + + +#ifndef __IAppxPackageWriter3_FWD_DEFINED__ +#define __IAppxPackageWriter3_FWD_DEFINED__ +typedef interface IAppxPackageWriter3 IAppxPackageWriter3; + +#endif /* __IAppxPackageWriter3_FWD_DEFINED__ */ + + +#ifndef __IAppxFile_FWD_DEFINED__ +#define __IAppxFile_FWD_DEFINED__ +typedef interface IAppxFile IAppxFile; + +#endif /* __IAppxFile_FWD_DEFINED__ */ + + +#ifndef __IAppxFile2_FWD_DEFINED__ +#define __IAppxFile2_FWD_DEFINED__ +typedef interface IAppxFile2 IAppxFile2; + +#endif /* __IAppxFile2_FWD_DEFINED__ */ + + +#ifndef __IAppxFilesEnumerator_FWD_DEFINED__ +#define __IAppxFilesEnumerator_FWD_DEFINED__ +typedef interface IAppxFilesEnumerator IAppxFilesEnumerator; + +#endif /* __IAppxFilesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxBlockMapReader_FWD_DEFINED__ +#define __IAppxBlockMapReader_FWD_DEFINED__ +typedef interface IAppxBlockMapReader IAppxBlockMapReader; + +#endif /* __IAppxBlockMapReader_FWD_DEFINED__ */ + + +#ifndef __IAppxBlockMapFile_FWD_DEFINED__ +#define __IAppxBlockMapFile_FWD_DEFINED__ +typedef interface IAppxBlockMapFile IAppxBlockMapFile; + +#endif /* __IAppxBlockMapFile_FWD_DEFINED__ */ + + +#ifndef __IAppxBlockMapFile2_FWD_DEFINED__ +#define __IAppxBlockMapFile2_FWD_DEFINED__ +typedef interface IAppxBlockMapFile2 IAppxBlockMapFile2; + +#endif /* __IAppxBlockMapFile2_FWD_DEFINED__ */ + + +#ifndef __IAppxBlockMapFilesEnumerator_FWD_DEFINED__ +#define __IAppxBlockMapFilesEnumerator_FWD_DEFINED__ +typedef interface IAppxBlockMapFilesEnumerator IAppxBlockMapFilesEnumerator; + +#endif /* __IAppxBlockMapFilesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxBlockMapBlock_FWD_DEFINED__ +#define __IAppxBlockMapBlock_FWD_DEFINED__ +typedef interface IAppxBlockMapBlock IAppxBlockMapBlock; + +#endif /* __IAppxBlockMapBlock_FWD_DEFINED__ */ + + +#ifndef __IAppxBlockMapBlocksEnumerator_FWD_DEFINED__ +#define __IAppxBlockMapBlocksEnumerator_FWD_DEFINED__ +typedef interface IAppxBlockMapBlocksEnumerator IAppxBlockMapBlocksEnumerator; + +#endif /* __IAppxBlockMapBlocksEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestReader_FWD_DEFINED__ +#define __IAppxManifestReader_FWD_DEFINED__ +typedef interface IAppxManifestReader IAppxManifestReader; + +#endif /* __IAppxManifestReader_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestReader2_FWD_DEFINED__ +#define __IAppxManifestReader2_FWD_DEFINED__ +typedef interface IAppxManifestReader2 IAppxManifestReader2; + +#endif /* __IAppxManifestReader2_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestReader3_FWD_DEFINED__ +#define __IAppxManifestReader3_FWD_DEFINED__ +typedef interface IAppxManifestReader3 IAppxManifestReader3; + +#endif /* __IAppxManifestReader3_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestReader4_FWD_DEFINED__ +#define __IAppxManifestReader4_FWD_DEFINED__ +typedef interface IAppxManifestReader4 IAppxManifestReader4; + +#endif /* __IAppxManifestReader4_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestReader5_FWD_DEFINED__ +#define __IAppxManifestReader5_FWD_DEFINED__ +typedef interface IAppxManifestReader5 IAppxManifestReader5; + +#endif /* __IAppxManifestReader5_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestReader6_FWD_DEFINED__ +#define __IAppxManifestReader6_FWD_DEFINED__ +typedef interface IAppxManifestReader6 IAppxManifestReader6; + +#endif /* __IAppxManifestReader6_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestReader7_FWD_DEFINED__ +#define __IAppxManifestReader7_FWD_DEFINED__ +typedef interface IAppxManifestReader7 IAppxManifestReader7; + +#endif /* __IAppxManifestReader7_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestDriverDependenciesEnumerator_FWD_DEFINED__ +#define __IAppxManifestDriverDependenciesEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestDriverDependenciesEnumerator IAppxManifestDriverDependenciesEnumerator; + +#endif /* __IAppxManifestDriverDependenciesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestDriverDependency_FWD_DEFINED__ +#define __IAppxManifestDriverDependency_FWD_DEFINED__ +typedef interface IAppxManifestDriverDependency IAppxManifestDriverDependency; + +#endif /* __IAppxManifestDriverDependency_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestDriverConstraintsEnumerator_FWD_DEFINED__ +#define __IAppxManifestDriverConstraintsEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestDriverConstraintsEnumerator IAppxManifestDriverConstraintsEnumerator; + +#endif /* __IAppxManifestDriverConstraintsEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestDriverConstraint_FWD_DEFINED__ +#define __IAppxManifestDriverConstraint_FWD_DEFINED__ +typedef interface IAppxManifestDriverConstraint IAppxManifestDriverConstraint; + +#endif /* __IAppxManifestDriverConstraint_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestOSPackageDependenciesEnumerator_FWD_DEFINED__ +#define __IAppxManifestOSPackageDependenciesEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestOSPackageDependenciesEnumerator IAppxManifestOSPackageDependenciesEnumerator; + +#endif /* __IAppxManifestOSPackageDependenciesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestOSPackageDependency_FWD_DEFINED__ +#define __IAppxManifestOSPackageDependency_FWD_DEFINED__ +typedef interface IAppxManifestOSPackageDependency IAppxManifestOSPackageDependency; + +#endif /* __IAppxManifestOSPackageDependency_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestHostRuntimeDependenciesEnumerator_FWD_DEFINED__ +#define __IAppxManifestHostRuntimeDependenciesEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestHostRuntimeDependenciesEnumerator IAppxManifestHostRuntimeDependenciesEnumerator; + +#endif /* __IAppxManifestHostRuntimeDependenciesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestHostRuntimeDependency_FWD_DEFINED__ +#define __IAppxManifestHostRuntimeDependency_FWD_DEFINED__ +typedef interface IAppxManifestHostRuntimeDependency IAppxManifestHostRuntimeDependency; + +#endif /* __IAppxManifestHostRuntimeDependency_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestHostRuntimeDependency2_FWD_DEFINED__ +#define __IAppxManifestHostRuntimeDependency2_FWD_DEFINED__ +typedef interface IAppxManifestHostRuntimeDependency2 IAppxManifestHostRuntimeDependency2; + +#endif /* __IAppxManifestHostRuntimeDependency2_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestOptionalPackageInfo_FWD_DEFINED__ +#define __IAppxManifestOptionalPackageInfo_FWD_DEFINED__ +typedef interface IAppxManifestOptionalPackageInfo IAppxManifestOptionalPackageInfo; + +#endif /* __IAppxManifestOptionalPackageInfo_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestMainPackageDependenciesEnumerator_FWD_DEFINED__ +#define __IAppxManifestMainPackageDependenciesEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestMainPackageDependenciesEnumerator IAppxManifestMainPackageDependenciesEnumerator; + +#endif /* __IAppxManifestMainPackageDependenciesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestMainPackageDependency_FWD_DEFINED__ +#define __IAppxManifestMainPackageDependency_FWD_DEFINED__ +typedef interface IAppxManifestMainPackageDependency IAppxManifestMainPackageDependency; + +#endif /* __IAppxManifestMainPackageDependency_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestPackageId_FWD_DEFINED__ +#define __IAppxManifestPackageId_FWD_DEFINED__ +typedef interface IAppxManifestPackageId IAppxManifestPackageId; + +#endif /* __IAppxManifestPackageId_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestPackageId2_FWD_DEFINED__ +#define __IAppxManifestPackageId2_FWD_DEFINED__ +typedef interface IAppxManifestPackageId2 IAppxManifestPackageId2; + +#endif /* __IAppxManifestPackageId2_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestProperties_FWD_DEFINED__ +#define __IAppxManifestProperties_FWD_DEFINED__ +typedef interface IAppxManifestProperties IAppxManifestProperties; + +#endif /* __IAppxManifestProperties_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestTargetDeviceFamiliesEnumerator_FWD_DEFINED__ +#define __IAppxManifestTargetDeviceFamiliesEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestTargetDeviceFamiliesEnumerator IAppxManifestTargetDeviceFamiliesEnumerator; + +#endif /* __IAppxManifestTargetDeviceFamiliesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestTargetDeviceFamily_FWD_DEFINED__ +#define __IAppxManifestTargetDeviceFamily_FWD_DEFINED__ +typedef interface IAppxManifestTargetDeviceFamily IAppxManifestTargetDeviceFamily; + +#endif /* __IAppxManifestTargetDeviceFamily_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestPackageDependenciesEnumerator_FWD_DEFINED__ +#define __IAppxManifestPackageDependenciesEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestPackageDependenciesEnumerator IAppxManifestPackageDependenciesEnumerator; + +#endif /* __IAppxManifestPackageDependenciesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestPackageDependency_FWD_DEFINED__ +#define __IAppxManifestPackageDependency_FWD_DEFINED__ +typedef interface IAppxManifestPackageDependency IAppxManifestPackageDependency; + +#endif /* __IAppxManifestPackageDependency_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestPackageDependency2_FWD_DEFINED__ +#define __IAppxManifestPackageDependency2_FWD_DEFINED__ +typedef interface IAppxManifestPackageDependency2 IAppxManifestPackageDependency2; + +#endif /* __IAppxManifestPackageDependency2_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestPackageDependency3_FWD_DEFINED__ +#define __IAppxManifestPackageDependency3_FWD_DEFINED__ +typedef interface IAppxManifestPackageDependency3 IAppxManifestPackageDependency3; + +#endif /* __IAppxManifestPackageDependency3_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestResourcesEnumerator_FWD_DEFINED__ +#define __IAppxManifestResourcesEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestResourcesEnumerator IAppxManifestResourcesEnumerator; + +#endif /* __IAppxManifestResourcesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestDeviceCapabilitiesEnumerator_FWD_DEFINED__ +#define __IAppxManifestDeviceCapabilitiesEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestDeviceCapabilitiesEnumerator IAppxManifestDeviceCapabilitiesEnumerator; + +#endif /* __IAppxManifestDeviceCapabilitiesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestCapabilitiesEnumerator_FWD_DEFINED__ +#define __IAppxManifestCapabilitiesEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestCapabilitiesEnumerator IAppxManifestCapabilitiesEnumerator; + +#endif /* __IAppxManifestCapabilitiesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestApplicationsEnumerator_FWD_DEFINED__ +#define __IAppxManifestApplicationsEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestApplicationsEnumerator IAppxManifestApplicationsEnumerator; + +#endif /* __IAppxManifestApplicationsEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestApplication_FWD_DEFINED__ +#define __IAppxManifestApplication_FWD_DEFINED__ +typedef interface IAppxManifestApplication IAppxManifestApplication; + +#endif /* __IAppxManifestApplication_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestQualifiedResourcesEnumerator_FWD_DEFINED__ +#define __IAppxManifestQualifiedResourcesEnumerator_FWD_DEFINED__ +typedef interface IAppxManifestQualifiedResourcesEnumerator IAppxManifestQualifiedResourcesEnumerator; + +#endif /* __IAppxManifestQualifiedResourcesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxManifestQualifiedResource_FWD_DEFINED__ +#define __IAppxManifestQualifiedResource_FWD_DEFINED__ +typedef interface IAppxManifestQualifiedResource IAppxManifestQualifiedResource; + +#endif /* __IAppxManifestQualifiedResource_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleFactory_FWD_DEFINED__ +#define __IAppxBundleFactory_FWD_DEFINED__ +typedef interface IAppxBundleFactory IAppxBundleFactory; + +#endif /* __IAppxBundleFactory_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleFactory2_FWD_DEFINED__ +#define __IAppxBundleFactory2_FWD_DEFINED__ +typedef interface IAppxBundleFactory2 IAppxBundleFactory2; + +#endif /* __IAppxBundleFactory2_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleFactory3_FWD_DEFINED__ +#define __IAppxBundleFactory3_FWD_DEFINED__ +typedef interface IAppxBundleFactory3 IAppxBundleFactory3; + +#endif /* __IAppxBundleFactory3_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleWriter_FWD_DEFINED__ +#define __IAppxBundleWriter_FWD_DEFINED__ +typedef interface IAppxBundleWriter IAppxBundleWriter; + +#endif /* __IAppxBundleWriter_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleWriter2_FWD_DEFINED__ +#define __IAppxBundleWriter2_FWD_DEFINED__ +typedef interface IAppxBundleWriter2 IAppxBundleWriter2; + +#endif /* __IAppxBundleWriter2_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleWriter3_FWD_DEFINED__ +#define __IAppxBundleWriter3_FWD_DEFINED__ +typedef interface IAppxBundleWriter3 IAppxBundleWriter3; + +#endif /* __IAppxBundleWriter3_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleWriter4_FWD_DEFINED__ +#define __IAppxBundleWriter4_FWD_DEFINED__ +typedef interface IAppxBundleWriter4 IAppxBundleWriter4; + +#endif /* __IAppxBundleWriter4_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleReader_FWD_DEFINED__ +#define __IAppxBundleReader_FWD_DEFINED__ +typedef interface IAppxBundleReader IAppxBundleReader; + +#endif /* __IAppxBundleReader_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleReader2_FWD_DEFINED__ +#define __IAppxBundleReader2_FWD_DEFINED__ +typedef interface IAppxBundleReader2 IAppxBundleReader2; + +#endif /* __IAppxBundleReader2_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleManifestReader_FWD_DEFINED__ +#define __IAppxBundleManifestReader_FWD_DEFINED__ +typedef interface IAppxBundleManifestReader IAppxBundleManifestReader; + +#endif /* __IAppxBundleManifestReader_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleManifestReader2_FWD_DEFINED__ +#define __IAppxBundleManifestReader2_FWD_DEFINED__ +typedef interface IAppxBundleManifestReader2 IAppxBundleManifestReader2; + +#endif /* __IAppxBundleManifestReader2_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleManifestPackageInfoEnumerator_FWD_DEFINED__ +#define __IAppxBundleManifestPackageInfoEnumerator_FWD_DEFINED__ +typedef interface IAppxBundleManifestPackageInfoEnumerator IAppxBundleManifestPackageInfoEnumerator; + +#endif /* __IAppxBundleManifestPackageInfoEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleManifestPackageInfo_FWD_DEFINED__ +#define __IAppxBundleManifestPackageInfo_FWD_DEFINED__ +typedef interface IAppxBundleManifestPackageInfo IAppxBundleManifestPackageInfo; + +#endif /* __IAppxBundleManifestPackageInfo_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleManifestPackageInfo2_FWD_DEFINED__ +#define __IAppxBundleManifestPackageInfo2_FWD_DEFINED__ +typedef interface IAppxBundleManifestPackageInfo2 IAppxBundleManifestPackageInfo2; + +#endif /* __IAppxBundleManifestPackageInfo2_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleManifestPackageInfo3_FWD_DEFINED__ +#define __IAppxBundleManifestPackageInfo3_FWD_DEFINED__ +typedef interface IAppxBundleManifestPackageInfo3 IAppxBundleManifestPackageInfo3; + +#endif /* __IAppxBundleManifestPackageInfo3_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleManifestPackageInfo4_FWD_DEFINED__ +#define __IAppxBundleManifestPackageInfo4_FWD_DEFINED__ +typedef interface IAppxBundleManifestPackageInfo4 IAppxBundleManifestPackageInfo4; + +#endif /* __IAppxBundleManifestPackageInfo4_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleManifestOptionalBundleInfoEnumerator_FWD_DEFINED__ +#define __IAppxBundleManifestOptionalBundleInfoEnumerator_FWD_DEFINED__ +typedef interface IAppxBundleManifestOptionalBundleInfoEnumerator IAppxBundleManifestOptionalBundleInfoEnumerator; + +#endif /* __IAppxBundleManifestOptionalBundleInfoEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxBundleManifestOptionalBundleInfo_FWD_DEFINED__ +#define __IAppxBundleManifestOptionalBundleInfo_FWD_DEFINED__ +typedef interface IAppxBundleManifestOptionalBundleInfo IAppxBundleManifestOptionalBundleInfo; + +#endif /* __IAppxBundleManifestOptionalBundleInfo_FWD_DEFINED__ */ + + +#ifndef __IAppxContentGroupFilesEnumerator_FWD_DEFINED__ +#define __IAppxContentGroupFilesEnumerator_FWD_DEFINED__ +typedef interface IAppxContentGroupFilesEnumerator IAppxContentGroupFilesEnumerator; + +#endif /* __IAppxContentGroupFilesEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxContentGroup_FWD_DEFINED__ +#define __IAppxContentGroup_FWD_DEFINED__ +typedef interface IAppxContentGroup IAppxContentGroup; + +#endif /* __IAppxContentGroup_FWD_DEFINED__ */ + + +#ifndef __IAppxContentGroupsEnumerator_FWD_DEFINED__ +#define __IAppxContentGroupsEnumerator_FWD_DEFINED__ +typedef interface IAppxContentGroupsEnumerator IAppxContentGroupsEnumerator; + +#endif /* __IAppxContentGroupsEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAppxContentGroupMapReader_FWD_DEFINED__ +#define __IAppxContentGroupMapReader_FWD_DEFINED__ +typedef interface IAppxContentGroupMapReader IAppxContentGroupMapReader; + +#endif /* __IAppxContentGroupMapReader_FWD_DEFINED__ */ + + +#ifndef __IAppxSourceContentGroupMapReader_FWD_DEFINED__ +#define __IAppxSourceContentGroupMapReader_FWD_DEFINED__ +typedef interface IAppxSourceContentGroupMapReader IAppxSourceContentGroupMapReader; + +#endif /* __IAppxSourceContentGroupMapReader_FWD_DEFINED__ */ + + +#ifndef __IAppxContentGroupMapWriter_FWD_DEFINED__ +#define __IAppxContentGroupMapWriter_FWD_DEFINED__ +typedef interface IAppxContentGroupMapWriter IAppxContentGroupMapWriter; + +#endif /* __IAppxContentGroupMapWriter_FWD_DEFINED__ */ + + +#ifndef __IAppxPackagingDiagnosticEventSink_FWD_DEFINED__ +#define __IAppxPackagingDiagnosticEventSink_FWD_DEFINED__ +typedef interface IAppxPackagingDiagnosticEventSink IAppxPackagingDiagnosticEventSink; + +#endif /* __IAppxPackagingDiagnosticEventSink_FWD_DEFINED__ */ + + +#ifndef __IAppxPackagingDiagnosticEventSinkManager_FWD_DEFINED__ +#define __IAppxPackagingDiagnosticEventSinkManager_FWD_DEFINED__ +typedef interface IAppxPackagingDiagnosticEventSinkManager IAppxPackagingDiagnosticEventSinkManager; + +#endif /* __IAppxPackagingDiagnosticEventSinkManager_FWD_DEFINED__ */ + + +#ifndef __IAppxAppInstallerReader_FWD_DEFINED__ +#define __IAppxAppInstallerReader_FWD_DEFINED__ +typedef interface IAppxAppInstallerReader IAppxAppInstallerReader; + +#endif /* __IAppxAppInstallerReader_FWD_DEFINED__ */ + + +#ifndef __IAppxDigestProvider_FWD_DEFINED__ +#define __IAppxDigestProvider_FWD_DEFINED__ +typedef interface IAppxDigestProvider IAppxDigestProvider; + +#endif /* __IAppxDigestProvider_FWD_DEFINED__ */ + + +#ifndef __IAppxEncryptionFactory_FWD_DEFINED__ +#define __IAppxEncryptionFactory_FWD_DEFINED__ +typedef interface IAppxEncryptionFactory IAppxEncryptionFactory; + +#endif /* __IAppxEncryptionFactory_FWD_DEFINED__ */ + + +#ifndef __IAppxEncryptionFactory2_FWD_DEFINED__ +#define __IAppxEncryptionFactory2_FWD_DEFINED__ +typedef interface IAppxEncryptionFactory2 IAppxEncryptionFactory2; + +#endif /* __IAppxEncryptionFactory2_FWD_DEFINED__ */ + + +#ifndef __IAppxEncryptionFactory3_FWD_DEFINED__ +#define __IAppxEncryptionFactory3_FWD_DEFINED__ +typedef interface IAppxEncryptionFactory3 IAppxEncryptionFactory3; + +#endif /* __IAppxEncryptionFactory3_FWD_DEFINED__ */ + + +#ifndef __IAppxEncryptionFactory4_FWD_DEFINED__ +#define __IAppxEncryptionFactory4_FWD_DEFINED__ +typedef interface IAppxEncryptionFactory4 IAppxEncryptionFactory4; + +#endif /* __IAppxEncryptionFactory4_FWD_DEFINED__ */ + + +#ifndef __IAppxEncryptionFactory5_FWD_DEFINED__ +#define __IAppxEncryptionFactory5_FWD_DEFINED__ +typedef interface IAppxEncryptionFactory5 IAppxEncryptionFactory5; + +#endif /* __IAppxEncryptionFactory5_FWD_DEFINED__ */ + + +#ifndef __IAppxEncryptedPackageWriter_FWD_DEFINED__ +#define __IAppxEncryptedPackageWriter_FWD_DEFINED__ +typedef interface IAppxEncryptedPackageWriter IAppxEncryptedPackageWriter; + +#endif /* __IAppxEncryptedPackageWriter_FWD_DEFINED__ */ + + +#ifndef __IAppxEncryptedPackageWriter2_FWD_DEFINED__ +#define __IAppxEncryptedPackageWriter2_FWD_DEFINED__ +typedef interface IAppxEncryptedPackageWriter2 IAppxEncryptedPackageWriter2; + +#endif /* __IAppxEncryptedPackageWriter2_FWD_DEFINED__ */ + + +#ifndef __IAppxEncryptedBundleWriter_FWD_DEFINED__ +#define __IAppxEncryptedBundleWriter_FWD_DEFINED__ +typedef interface IAppxEncryptedBundleWriter IAppxEncryptedBundleWriter; + +#endif /* __IAppxEncryptedBundleWriter_FWD_DEFINED__ */ + + +#ifndef __IAppxEncryptedBundleWriter2_FWD_DEFINED__ +#define __IAppxEncryptedBundleWriter2_FWD_DEFINED__ +typedef interface IAppxEncryptedBundleWriter2 IAppxEncryptedBundleWriter2; + +#endif /* __IAppxEncryptedBundleWriter2_FWD_DEFINED__ */ + + +#ifndef __IAppxEncryptedBundleWriter3_FWD_DEFINED__ +#define __IAppxEncryptedBundleWriter3_FWD_DEFINED__ +typedef interface IAppxEncryptedBundleWriter3 IAppxEncryptedBundleWriter3; + +#endif /* __IAppxEncryptedBundleWriter3_FWD_DEFINED__ */ + + +#ifndef __IAppxPackageEditor_FWD_DEFINED__ +#define __IAppxPackageEditor_FWD_DEFINED__ +typedef interface IAppxPackageEditor IAppxPackageEditor; + +#endif /* __IAppxPackageEditor_FWD_DEFINED__ */ + + +#ifndef __AppxFactory_FWD_DEFINED__ +#define __AppxFactory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AppxFactory AppxFactory; +#else +typedef struct AppxFactory AppxFactory; +#endif /* __cplusplus */ + +#endif /* __AppxFactory_FWD_DEFINED__ */ + + +#ifndef __AppxBundleFactory_FWD_DEFINED__ +#define __AppxBundleFactory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AppxBundleFactory AppxBundleFactory; +#else +typedef struct AppxBundleFactory AppxBundleFactory; +#endif /* __cplusplus */ + +#endif /* __AppxBundleFactory_FWD_DEFINED__ */ + + +#ifndef __AppxPackagingDiagnosticEventSinkManager_FWD_DEFINED__ +#define __AppxPackagingDiagnosticEventSinkManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AppxPackagingDiagnosticEventSinkManager AppxPackagingDiagnosticEventSinkManager; +#else +typedef struct AppxPackagingDiagnosticEventSinkManager AppxPackagingDiagnosticEventSinkManager; +#endif /* __cplusplus */ + +#endif /* __AppxPackagingDiagnosticEventSinkManager_FWD_DEFINED__ */ + + +#ifndef __AppxPackagingServiceProvider_FWD_DEFINED__ +#define __AppxPackagingServiceProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AppxPackagingServiceProvider AppxPackagingServiceProvider; +#else +typedef struct AppxPackagingServiceProvider AppxPackagingServiceProvider; +#endif /* __cplusplus */ + +#endif /* __AppxPackagingServiceProvider_FWD_DEFINED__ */ + + +#ifndef __AppxEncryptionFactory_FWD_DEFINED__ +#define __AppxEncryptionFactory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AppxEncryptionFactory AppxEncryptionFactory; +#else +typedef struct AppxEncryptionFactory AppxEncryptionFactory; +#endif /* __cplusplus */ + +#endif /* __AppxEncryptionFactory_FWD_DEFINED__ */ + + +#ifndef __AppxPackageEditor_FWD_DEFINED__ +#define __AppxPackageEditor_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AppxPackageEditor AppxPackageEditor; +#else +typedef struct AppxPackageEditor AppxPackageEditor; +#endif /* __cplusplus */ + +#endif /* __AppxPackageEditor_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_appxpackaging_0000_0000 */ +/* [local] */ + +#include +#if (NTDDI_VERSION >= NTDDI_WIN7) +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +typedef struct APPX_PACKAGE_SETTINGS + { + BOOL forceZip32; + IUri *hashMethod; + } APPX_PACKAGE_SETTINGS; + +typedef /* [v1_enum] */ +enum APPX_COMPRESSION_OPTION + { + APPX_COMPRESSION_OPTION_NONE = 0, + APPX_COMPRESSION_OPTION_NORMAL = 1, + APPX_COMPRESSION_OPTION_MAXIMUM = 2, + APPX_COMPRESSION_OPTION_FAST = 3, + APPX_COMPRESSION_OPTION_SUPERFAST = 4 + } APPX_COMPRESSION_OPTION; + +typedef struct APPX_PACKAGE_WRITER_PAYLOAD_STREAM + { + IStream *inputStream; + LPCWSTR fileName; + LPCWSTR contentType; + APPX_COMPRESSION_OPTION compressionOption; + } APPX_PACKAGE_WRITER_PAYLOAD_STREAM; + +typedef /* [v1_enum] */ +enum APPX_FOOTPRINT_FILE_TYPE + { + APPX_FOOTPRINT_FILE_TYPE_MANIFEST = 0, + APPX_FOOTPRINT_FILE_TYPE_BLOCKMAP = 1, + APPX_FOOTPRINT_FILE_TYPE_SIGNATURE = 2, + APPX_FOOTPRINT_FILE_TYPE_CODEINTEGRITY = 3, + APPX_FOOTPRINT_FILE_TYPE_CONTENTGROUPMAP = 4 + } APPX_FOOTPRINT_FILE_TYPE; + +typedef /* [v1_enum] */ +enum APPX_BUNDLE_FOOTPRINT_FILE_TYPE + { + APPX_BUNDLE_FOOTPRINT_FILE_TYPE_FIRST = 0, + APPX_BUNDLE_FOOTPRINT_FILE_TYPE_MANIFEST = 0, + APPX_BUNDLE_FOOTPRINT_FILE_TYPE_BLOCKMAP = 1, + APPX_BUNDLE_FOOTPRINT_FILE_TYPE_SIGNATURE = 2, + APPX_BUNDLE_FOOTPRINT_FILE_TYPE_LAST = 2 + } APPX_BUNDLE_FOOTPRINT_FILE_TYPE; + +typedef /* [v1_enum] */ +enum APPX_CAPABILITIES + { + APPX_CAPABILITY_INTERNET_CLIENT = 0x1, + APPX_CAPABILITY_INTERNET_CLIENT_SERVER = 0x2, + APPX_CAPABILITY_PRIVATE_NETWORK_CLIENT_SERVER = 0x4, + APPX_CAPABILITY_DOCUMENTS_LIBRARY = 0x8, + APPX_CAPABILITY_PICTURES_LIBRARY = 0x10, + APPX_CAPABILITY_VIDEOS_LIBRARY = 0x20, + APPX_CAPABILITY_MUSIC_LIBRARY = 0x40, + APPX_CAPABILITY_ENTERPRISE_AUTHENTICATION = 0x80, + APPX_CAPABILITY_SHARED_USER_CERTIFICATES = 0x100, + APPX_CAPABILITY_REMOVABLE_STORAGE = 0x200, + APPX_CAPABILITY_APPOINTMENTS = 0x400, + APPX_CAPABILITY_CONTACTS = 0x800 + } APPX_CAPABILITIES; + +DEFINE_ENUM_FLAG_OPERATORS(APPX_CAPABILITIES); +typedef /* [v1_enum] */ +enum APPX_PACKAGE_ARCHITECTURE + { + APPX_PACKAGE_ARCHITECTURE_X86 = 0, + APPX_PACKAGE_ARCHITECTURE_ARM = 5, + APPX_PACKAGE_ARCHITECTURE_X64 = 9, + APPX_PACKAGE_ARCHITECTURE_NEUTRAL = 11, + APPX_PACKAGE_ARCHITECTURE_ARM64 = 12 + } APPX_PACKAGE_ARCHITECTURE; + +typedef /* [v1_enum] */ +enum APPX_PACKAGE_ARCHITECTURE2 + { + APPX_PACKAGE_ARCHITECTURE2_X86 = 0, + APPX_PACKAGE_ARCHITECTURE2_ARM = 5, + APPX_PACKAGE_ARCHITECTURE2_X64 = 9, + APPX_PACKAGE_ARCHITECTURE2_NEUTRAL = 11, + APPX_PACKAGE_ARCHITECTURE2_ARM64 = 12, + APPX_PACKAGE_ARCHITECTURE2_X86_ON_ARM64 = 14, + APPX_PACKAGE_ARCHITECTURE2_UNKNOWN = 0xffff + } APPX_PACKAGE_ARCHITECTURE2; + +typedef /* [v1_enum] */ +enum APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE + { + APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE_APPLICATION = 0, + APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE_RESOURCE = 1 + } APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE; + +typedef /* [v1_enum] */ +enum DX_FEATURE_LEVEL + { + DX_FEATURE_LEVEL_UNSPECIFIED = 0, + DX_FEATURE_LEVEL_9 = 1, + DX_FEATURE_LEVEL_10 = 2, + DX_FEATURE_LEVEL_11 = 3 + } DX_FEATURE_LEVEL; + +typedef /* [v1_enum] */ +enum APPX_CAPABILITY_CLASS_TYPE + { + APPX_CAPABILITY_CLASS_DEFAULT = 0, + APPX_CAPABILITY_CLASS_GENERAL = 0x1, + APPX_CAPABILITY_CLASS_RESTRICTED = 0x2, + APPX_CAPABILITY_CLASS_WINDOWS = 0x4, + APPX_CAPABILITY_CLASS_ALL = 0x7, + APPX_CAPABILITY_CLASS_CUSTOM = 0x8 + } APPX_CAPABILITY_CLASS_TYPE; + +typedef /* [v1_enum] */ +enum APPX_PACKAGING_CONTEXT_CHANGE_TYPE + { + APPX_PACKAGING_CONTEXT_CHANGE_TYPE_START = 0, + APPX_PACKAGING_CONTEXT_CHANGE_TYPE_CHANGE = 1, + APPX_PACKAGING_CONTEXT_CHANGE_TYPE_DETAILS = 2, + APPX_PACKAGING_CONTEXT_CHANGE_TYPE_END = 3 + } APPX_PACKAGING_CONTEXT_CHANGE_TYPE; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_appxpackaging_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_appxpackaging_0000_0000_v0_0_s_ifspec; + +#ifndef __IAppxFactory_INTERFACE_DEFINED__ +#define __IAppxFactory_INTERFACE_DEFINED__ + +/* interface IAppxFactory */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("beb94909-e451-438b-b5a7-d79e767b75d8") + IAppxFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreatePackageWriter( + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in APPX_PACKAGE_SETTINGS *settings, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageWriter **packageWriter) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePackageReader( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **packageReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateManifestReader( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestReader **manifestReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateBlockMapReader( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapReader **blockMapReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateValidatedBlockMapReader( + /* [in] */ __RPC__in_opt IStream *blockMapStream, + /* [in] */ __RPC__in LPCWSTR signatureFileName, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapReader **blockMapReader) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxFactory * This); + + DECLSPEC_XFGVIRT(IAppxFactory, CreatePackageWriter) + HRESULT ( STDMETHODCALLTYPE *CreatePackageWriter )( + __RPC__in IAppxFactory * This, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in APPX_PACKAGE_SETTINGS *settings, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageWriter **packageWriter); + + DECLSPEC_XFGVIRT(IAppxFactory, CreatePackageReader) + HRESULT ( STDMETHODCALLTYPE *CreatePackageReader )( + __RPC__in IAppxFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **packageReader); + + DECLSPEC_XFGVIRT(IAppxFactory, CreateManifestReader) + HRESULT ( STDMETHODCALLTYPE *CreateManifestReader )( + __RPC__in IAppxFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestReader **manifestReader); + + DECLSPEC_XFGVIRT(IAppxFactory, CreateBlockMapReader) + HRESULT ( STDMETHODCALLTYPE *CreateBlockMapReader )( + __RPC__in IAppxFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapReader **blockMapReader); + + DECLSPEC_XFGVIRT(IAppxFactory, CreateValidatedBlockMapReader) + HRESULT ( STDMETHODCALLTYPE *CreateValidatedBlockMapReader )( + __RPC__in IAppxFactory * This, + /* [in] */ __RPC__in_opt IStream *blockMapStream, + /* [in] */ __RPC__in LPCWSTR signatureFileName, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapReader **blockMapReader); + + END_INTERFACE + } IAppxFactoryVtbl; + + interface IAppxFactory + { + CONST_VTBL struct IAppxFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxFactory_CreatePackageWriter(This,outputStream,settings,packageWriter) \ + ( (This)->lpVtbl -> CreatePackageWriter(This,outputStream,settings,packageWriter) ) + +#define IAppxFactory_CreatePackageReader(This,inputStream,packageReader) \ + ( (This)->lpVtbl -> CreatePackageReader(This,inputStream,packageReader) ) + +#define IAppxFactory_CreateManifestReader(This,inputStream,manifestReader) \ + ( (This)->lpVtbl -> CreateManifestReader(This,inputStream,manifestReader) ) + +#define IAppxFactory_CreateBlockMapReader(This,inputStream,blockMapReader) \ + ( (This)->lpVtbl -> CreateBlockMapReader(This,inputStream,blockMapReader) ) + +#define IAppxFactory_CreateValidatedBlockMapReader(This,blockMapStream,signatureFileName,blockMapReader) \ + ( (This)->lpVtbl -> CreateValidatedBlockMapReader(This,blockMapStream,signatureFileName,blockMapReader) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxFactory_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxFactory2_INTERFACE_DEFINED__ +#define __IAppxFactory2_INTERFACE_DEFINED__ + +/* interface IAppxFactory2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxFactory2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f1346df2-c282-4e22-b918-743a929a8d55") + IAppxFactory2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateContentGroupMapReader( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroupMapReader **contentGroupMapReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSourceContentGroupMapReader( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxSourceContentGroupMapReader **reader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateContentGroupMapWriter( + /* [in] */ __RPC__in_opt IStream *stream, + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroupMapWriter **contentGroupMapWriter) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxFactory2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxFactory2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxFactory2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxFactory2 * This); + + DECLSPEC_XFGVIRT(IAppxFactory2, CreateContentGroupMapReader) + HRESULT ( STDMETHODCALLTYPE *CreateContentGroupMapReader )( + __RPC__in IAppxFactory2 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroupMapReader **contentGroupMapReader); + + DECLSPEC_XFGVIRT(IAppxFactory2, CreateSourceContentGroupMapReader) + HRESULT ( STDMETHODCALLTYPE *CreateSourceContentGroupMapReader )( + __RPC__in IAppxFactory2 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxSourceContentGroupMapReader **reader); + + DECLSPEC_XFGVIRT(IAppxFactory2, CreateContentGroupMapWriter) + HRESULT ( STDMETHODCALLTYPE *CreateContentGroupMapWriter )( + __RPC__in IAppxFactory2 * This, + /* [in] */ __RPC__in_opt IStream *stream, + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroupMapWriter **contentGroupMapWriter); + + END_INTERFACE + } IAppxFactory2Vtbl; + + interface IAppxFactory2 + { + CONST_VTBL struct IAppxFactory2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxFactory2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxFactory2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxFactory2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxFactory2_CreateContentGroupMapReader(This,inputStream,contentGroupMapReader) \ + ( (This)->lpVtbl -> CreateContentGroupMapReader(This,inputStream,contentGroupMapReader) ) + +#define IAppxFactory2_CreateSourceContentGroupMapReader(This,inputStream,reader) \ + ( (This)->lpVtbl -> CreateSourceContentGroupMapReader(This,inputStream,reader) ) + +#define IAppxFactory2_CreateContentGroupMapWriter(This,stream,contentGroupMapWriter) \ + ( (This)->lpVtbl -> CreateContentGroupMapWriter(This,stream,contentGroupMapWriter) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxFactory2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxFactory3_INTERFACE_DEFINED__ +#define __IAppxFactory3_INTERFACE_DEFINED__ + +/* interface IAppxFactory3 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxFactory3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("776b2c05-e21d-4e24-ba1a-cd529a8bfdbb") + IAppxFactory3 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreatePackageReader2( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **packageReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateManifestReader2( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestReader **manifestReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateAppInstallerReader( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxAppInstallerReader **appInstallerReader) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxFactory3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxFactory3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxFactory3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxFactory3 * This); + + DECLSPEC_XFGVIRT(IAppxFactory3, CreatePackageReader2) + HRESULT ( STDMETHODCALLTYPE *CreatePackageReader2 )( + __RPC__in IAppxFactory3 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **packageReader); + + DECLSPEC_XFGVIRT(IAppxFactory3, CreateManifestReader2) + HRESULT ( STDMETHODCALLTYPE *CreateManifestReader2 )( + __RPC__in IAppxFactory3 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestReader **manifestReader); + + DECLSPEC_XFGVIRT(IAppxFactory3, CreateAppInstallerReader) + HRESULT ( STDMETHODCALLTYPE *CreateAppInstallerReader )( + __RPC__in IAppxFactory3 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxAppInstallerReader **appInstallerReader); + + END_INTERFACE + } IAppxFactory3Vtbl; + + interface IAppxFactory3 + { + CONST_VTBL struct IAppxFactory3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxFactory3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxFactory3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxFactory3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxFactory3_CreatePackageReader2(This,inputStream,expectedDigest,packageReader) \ + ( (This)->lpVtbl -> CreatePackageReader2(This,inputStream,expectedDigest,packageReader) ) + +#define IAppxFactory3_CreateManifestReader2(This,inputStream,expectedDigest,manifestReader) \ + ( (This)->lpVtbl -> CreateManifestReader2(This,inputStream,expectedDigest,manifestReader) ) + +#define IAppxFactory3_CreateAppInstallerReader(This,inputStream,expectedDigest,appInstallerReader) \ + ( (This)->lpVtbl -> CreateAppInstallerReader(This,inputStream,expectedDigest,appInstallerReader) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxFactory3_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxFactory4_INTERFACE_DEFINED__ +#define __IAppxFactory4_INTERFACE_DEFINED__ + +/* interface IAppxFactory4 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxFactory4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("92E50000-6934-4C8D-B472-229D431DADDF") + IAppxFactory4 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreatePackageReaderFromSourceUri( + /* [in] */ __RPC__in LPCWSTR uri, + /* [string][unique][in] */ __RPC__in_opt_string LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **packageReader) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxFactory4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxFactory4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxFactory4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxFactory4 * This); + + DECLSPEC_XFGVIRT(IAppxFactory4, CreatePackageReaderFromSourceUri) + HRESULT ( STDMETHODCALLTYPE *CreatePackageReaderFromSourceUri )( + __RPC__in IAppxFactory4 * This, + /* [in] */ __RPC__in LPCWSTR uri, + /* [string][unique][in] */ __RPC__in_opt_string LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **packageReader); + + END_INTERFACE + } IAppxFactory4Vtbl; + + interface IAppxFactory4 + { + CONST_VTBL struct IAppxFactory4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxFactory4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxFactory4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxFactory4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxFactory4_CreatePackageReaderFromSourceUri(This,uri,expectedDigest,packageReader) \ + ( (This)->lpVtbl -> CreatePackageReaderFromSourceUri(This,uri,expectedDigest,packageReader) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxFactory4_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxPackageReader_INTERFACE_DEFINED__ +#define __IAppxPackageReader_INTERFACE_DEFINED__ + +/* interface IAppxPackageReader */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxPackageReader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b5c49650-99bc-481c-9a34-3d53a4106708") + IAppxPackageReader : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetBlockMap( + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapReader **blockMapReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFootprintFile( + /* [in] */ APPX_FOOTPRINT_FILE_TYPE type, + /* [retval][out] */ __RPC__deref_out_opt IAppxFile **file) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPayloadFile( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [retval][out] */ __RPC__deref_out_opt IAppxFile **file) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPayloadFiles( + /* [retval][out] */ __RPC__deref_out_opt IAppxFilesEnumerator **filesEnumerator) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetManifest( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestReader **manifestReader) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxPackageReaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxPackageReader * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxPackageReader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxPackageReader * This); + + DECLSPEC_XFGVIRT(IAppxPackageReader, GetBlockMap) + HRESULT ( STDMETHODCALLTYPE *GetBlockMap )( + __RPC__in IAppxPackageReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapReader **blockMapReader); + + DECLSPEC_XFGVIRT(IAppxPackageReader, GetFootprintFile) + HRESULT ( STDMETHODCALLTYPE *GetFootprintFile )( + __RPC__in IAppxPackageReader * This, + /* [in] */ APPX_FOOTPRINT_FILE_TYPE type, + /* [retval][out] */ __RPC__deref_out_opt IAppxFile **file); + + DECLSPEC_XFGVIRT(IAppxPackageReader, GetPayloadFile) + HRESULT ( STDMETHODCALLTYPE *GetPayloadFile )( + __RPC__in IAppxPackageReader * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [retval][out] */ __RPC__deref_out_opt IAppxFile **file); + + DECLSPEC_XFGVIRT(IAppxPackageReader, GetPayloadFiles) + HRESULT ( STDMETHODCALLTYPE *GetPayloadFiles )( + __RPC__in IAppxPackageReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxFilesEnumerator **filesEnumerator); + + DECLSPEC_XFGVIRT(IAppxPackageReader, GetManifest) + HRESULT ( STDMETHODCALLTYPE *GetManifest )( + __RPC__in IAppxPackageReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestReader **manifestReader); + + END_INTERFACE + } IAppxPackageReaderVtbl; + + interface IAppxPackageReader + { + CONST_VTBL struct IAppxPackageReaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxPackageReader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxPackageReader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxPackageReader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxPackageReader_GetBlockMap(This,blockMapReader) \ + ( (This)->lpVtbl -> GetBlockMap(This,blockMapReader) ) + +#define IAppxPackageReader_GetFootprintFile(This,type,file) \ + ( (This)->lpVtbl -> GetFootprintFile(This,type,file) ) + +#define IAppxPackageReader_GetPayloadFile(This,fileName,file) \ + ( (This)->lpVtbl -> GetPayloadFile(This,fileName,file) ) + +#define IAppxPackageReader_GetPayloadFiles(This,filesEnumerator) \ + ( (This)->lpVtbl -> GetPayloadFiles(This,filesEnumerator) ) + +#define IAppxPackageReader_GetManifest(This,manifestReader) \ + ( (This)->lpVtbl -> GetManifest(This,manifestReader) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxPackageReader_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxPackageWriter_INTERFACE_DEFINED__ +#define __IAppxPackageWriter_INTERFACE_DEFINED__ + +/* interface IAppxPackageWriter */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxPackageWriter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9099e33b-246f-41e4-881a-008eb613f858") + IAppxPackageWriter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPayloadFile( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [string][in] */ __RPC__in_string LPCWSTR contentType, + /* [in] */ APPX_COMPRESSION_OPTION compressionOption, + /* [in] */ __RPC__in_opt IStream *inputStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( + /* [in] */ __RPC__in_opt IStream *manifest) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxPackageWriterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxPackageWriter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxPackageWriter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxPackageWriter * This); + + DECLSPEC_XFGVIRT(IAppxPackageWriter, AddPayloadFile) + HRESULT ( STDMETHODCALLTYPE *AddPayloadFile )( + __RPC__in IAppxPackageWriter * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [string][in] */ __RPC__in_string LPCWSTR contentType, + /* [in] */ APPX_COMPRESSION_OPTION compressionOption, + /* [in] */ __RPC__in_opt IStream *inputStream); + + DECLSPEC_XFGVIRT(IAppxPackageWriter, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IAppxPackageWriter * This, + /* [in] */ __RPC__in_opt IStream *manifest); + + END_INTERFACE + } IAppxPackageWriterVtbl; + + interface IAppxPackageWriter + { + CONST_VTBL struct IAppxPackageWriterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxPackageWriter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxPackageWriter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxPackageWriter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxPackageWriter_AddPayloadFile(This,fileName,contentType,compressionOption,inputStream) \ + ( (This)->lpVtbl -> AddPayloadFile(This,fileName,contentType,compressionOption,inputStream) ) + +#define IAppxPackageWriter_Close(This,manifest) \ + ( (This)->lpVtbl -> Close(This,manifest) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxPackageWriter_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxPackageWriter2_INTERFACE_DEFINED__ +#define __IAppxPackageWriter2_INTERFACE_DEFINED__ + +/* interface IAppxPackageWriter2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxPackageWriter2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2cf5c4fd-e54c-4ea5-ba4e-f8c4b105a8c8") + IAppxPackageWriter2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Close( + /* [in] */ __RPC__in_opt IStream *manifest, + /* [in] */ __RPC__in_opt IStream *contentGroupMap) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxPackageWriter2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxPackageWriter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxPackageWriter2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxPackageWriter2 * This); + + DECLSPEC_XFGVIRT(IAppxPackageWriter2, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IAppxPackageWriter2 * This, + /* [in] */ __RPC__in_opt IStream *manifest, + /* [in] */ __RPC__in_opt IStream *contentGroupMap); + + END_INTERFACE + } IAppxPackageWriter2Vtbl; + + interface IAppxPackageWriter2 + { + CONST_VTBL struct IAppxPackageWriter2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxPackageWriter2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxPackageWriter2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxPackageWriter2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxPackageWriter2_Close(This,manifest,contentGroupMap) \ + ( (This)->lpVtbl -> Close(This,manifest,contentGroupMap) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxPackageWriter2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxPackageWriter3_INTERFACE_DEFINED__ +#define __IAppxPackageWriter3_INTERFACE_DEFINED__ + +/* interface IAppxPackageWriter3 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxPackageWriter3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a83aacd3-41c0-4501-b8a3-74164f50b2fd") + IAppxPackageWriter3 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPayloadFiles( + /* [in] */ UINT32 fileCount, + /* [size_is][in] */ __RPC__in_ecount_full(fileCount) APPX_PACKAGE_WRITER_PAYLOAD_STREAM *payloadFiles, + /* [in] */ UINT64 memoryLimit) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxPackageWriter3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxPackageWriter3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxPackageWriter3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxPackageWriter3 * This); + + DECLSPEC_XFGVIRT(IAppxPackageWriter3, AddPayloadFiles) + HRESULT ( STDMETHODCALLTYPE *AddPayloadFiles )( + __RPC__in IAppxPackageWriter3 * This, + /* [in] */ UINT32 fileCount, + /* [size_is][in] */ __RPC__in_ecount_full(fileCount) APPX_PACKAGE_WRITER_PAYLOAD_STREAM *payloadFiles, + /* [in] */ UINT64 memoryLimit); + + END_INTERFACE + } IAppxPackageWriter3Vtbl; + + interface IAppxPackageWriter3 + { + CONST_VTBL struct IAppxPackageWriter3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxPackageWriter3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxPackageWriter3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxPackageWriter3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxPackageWriter3_AddPayloadFiles(This,fileCount,payloadFiles,memoryLimit) \ + ( (This)->lpVtbl -> AddPayloadFiles(This,fileCount,payloadFiles,memoryLimit) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxPackageWriter3_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxFile_INTERFACE_DEFINED__ +#define __IAppxFile_INTERFACE_DEFINED__ + +/* interface IAppxFile */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxFile; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("91df827b-94fd-468f-827b-57f41b2f6f2e") + IAppxFile : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCompressionOption( + /* [retval][out] */ __RPC__out APPX_COMPRESSION_OPTION *compressionOption) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContentType( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *contentType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *fileName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSize( + /* [retval][out] */ __RPC__out UINT64 *size) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStream( + /* [retval][out] */ __RPC__deref_out_opt IStream **stream) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxFileVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxFile * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxFile * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxFile * This); + + DECLSPEC_XFGVIRT(IAppxFile, GetCompressionOption) + HRESULT ( STDMETHODCALLTYPE *GetCompressionOption )( + __RPC__in IAppxFile * This, + /* [retval][out] */ __RPC__out APPX_COMPRESSION_OPTION *compressionOption); + + DECLSPEC_XFGVIRT(IAppxFile, GetContentType) + HRESULT ( STDMETHODCALLTYPE *GetContentType )( + __RPC__in IAppxFile * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *contentType); + + DECLSPEC_XFGVIRT(IAppxFile, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxFile * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *fileName); + + DECLSPEC_XFGVIRT(IAppxFile, GetSize) + HRESULT ( STDMETHODCALLTYPE *GetSize )( + __RPC__in IAppxFile * This, + /* [retval][out] */ __RPC__out UINT64 *size); + + DECLSPEC_XFGVIRT(IAppxFile, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + __RPC__in IAppxFile * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **stream); + + END_INTERFACE + } IAppxFileVtbl; + + interface IAppxFile + { + CONST_VTBL struct IAppxFileVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxFile_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxFile_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxFile_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxFile_GetCompressionOption(This,compressionOption) \ + ( (This)->lpVtbl -> GetCompressionOption(This,compressionOption) ) + +#define IAppxFile_GetContentType(This,contentType) \ + ( (This)->lpVtbl -> GetContentType(This,contentType) ) + +#define IAppxFile_GetName(This,fileName) \ + ( (This)->lpVtbl -> GetName(This,fileName) ) + +#define IAppxFile_GetSize(This,size) \ + ( (This)->lpVtbl -> GetSize(This,size) ) + +#define IAppxFile_GetStream(This,stream) \ + ( (This)->lpVtbl -> GetStream(This,stream) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxFile_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxFile2_INTERFACE_DEFINED__ +#define __IAppxFile2_INTERFACE_DEFINED__ + +/* interface IAppxFile2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxFile2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0c830b3c-40e9-11ee-be56-0242ac120002") + IAppxFile2 : public IAppxFile + { + public: + virtual HRESULT STDMETHODCALLTYPE GetBlockSize( + /* [retval][out] */ __RPC__out UINT64 *blockSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxFile2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxFile2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxFile2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxFile2 * This); + + DECLSPEC_XFGVIRT(IAppxFile, GetCompressionOption) + HRESULT ( STDMETHODCALLTYPE *GetCompressionOption )( + __RPC__in IAppxFile2 * This, + /* [retval][out] */ __RPC__out APPX_COMPRESSION_OPTION *compressionOption); + + DECLSPEC_XFGVIRT(IAppxFile, GetContentType) + HRESULT ( STDMETHODCALLTYPE *GetContentType )( + __RPC__in IAppxFile2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *contentType); + + DECLSPEC_XFGVIRT(IAppxFile, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxFile2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *fileName); + + DECLSPEC_XFGVIRT(IAppxFile, GetSize) + HRESULT ( STDMETHODCALLTYPE *GetSize )( + __RPC__in IAppxFile2 * This, + /* [retval][out] */ __RPC__out UINT64 *size); + + DECLSPEC_XFGVIRT(IAppxFile, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + __RPC__in IAppxFile2 * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **stream); + + DECLSPEC_XFGVIRT(IAppxFile2, GetBlockSize) + HRESULT ( STDMETHODCALLTYPE *GetBlockSize )( + __RPC__in IAppxFile2 * This, + /* [retval][out] */ __RPC__out UINT64 *blockSize); + + END_INTERFACE + } IAppxFile2Vtbl; + + interface IAppxFile2 + { + CONST_VTBL struct IAppxFile2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxFile2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxFile2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxFile2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxFile2_GetCompressionOption(This,compressionOption) \ + ( (This)->lpVtbl -> GetCompressionOption(This,compressionOption) ) + +#define IAppxFile2_GetContentType(This,contentType) \ + ( (This)->lpVtbl -> GetContentType(This,contentType) ) + +#define IAppxFile2_GetName(This,fileName) \ + ( (This)->lpVtbl -> GetName(This,fileName) ) + +#define IAppxFile2_GetSize(This,size) \ + ( (This)->lpVtbl -> GetSize(This,size) ) + +#define IAppxFile2_GetStream(This,stream) \ + ( (This)->lpVtbl -> GetStream(This,stream) ) + + +#define IAppxFile2_GetBlockSize(This,blockSize) \ + ( (This)->lpVtbl -> GetBlockSize(This,blockSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxFile2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxFilesEnumerator_INTERFACE_DEFINED__ +#define __IAppxFilesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxFilesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxFilesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f007eeaf-9831-411c-9847-917cdc62d1fe") + IAppxFilesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxFile **file) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxFilesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxFilesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxFilesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxFilesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxFilesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxFilesEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxFile **file); + + DECLSPEC_XFGVIRT(IAppxFilesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxFilesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxFilesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxFilesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxFilesEnumeratorVtbl; + + interface IAppxFilesEnumerator + { + CONST_VTBL struct IAppxFilesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxFilesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxFilesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxFilesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxFilesEnumerator_GetCurrent(This,file) \ + ( (This)->lpVtbl -> GetCurrent(This,file) ) + +#define IAppxFilesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxFilesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxFilesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBlockMapReader_INTERFACE_DEFINED__ +#define __IAppxBlockMapReader_INTERFACE_DEFINED__ + +/* interface IAppxBlockMapReader */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBlockMapReader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5efec991-bca3-42d1-9ec2-e92d609ec22a") + IAppxBlockMapReader : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFile( + /* [string][in] */ __RPC__in_string LPCWSTR filename, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapFile **file) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFiles( + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapFilesEnumerator **enumerator) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHashMethod( + /* [retval][out] */ __RPC__deref_out_opt IUri **hashMethod) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStream( + /* [retval][out] */ __RPC__deref_out_opt IStream **blockMapStream) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBlockMapReaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBlockMapReader * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBlockMapReader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBlockMapReader * This); + + DECLSPEC_XFGVIRT(IAppxBlockMapReader, GetFile) + HRESULT ( STDMETHODCALLTYPE *GetFile )( + __RPC__in IAppxBlockMapReader * This, + /* [string][in] */ __RPC__in_string LPCWSTR filename, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapFile **file); + + DECLSPEC_XFGVIRT(IAppxBlockMapReader, GetFiles) + HRESULT ( STDMETHODCALLTYPE *GetFiles )( + __RPC__in IAppxBlockMapReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapFilesEnumerator **enumerator); + + DECLSPEC_XFGVIRT(IAppxBlockMapReader, GetHashMethod) + HRESULT ( STDMETHODCALLTYPE *GetHashMethod )( + __RPC__in IAppxBlockMapReader * This, + /* [retval][out] */ __RPC__deref_out_opt IUri **hashMethod); + + DECLSPEC_XFGVIRT(IAppxBlockMapReader, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + __RPC__in IAppxBlockMapReader * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **blockMapStream); + + END_INTERFACE + } IAppxBlockMapReaderVtbl; + + interface IAppxBlockMapReader + { + CONST_VTBL struct IAppxBlockMapReaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBlockMapReader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBlockMapReader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBlockMapReader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBlockMapReader_GetFile(This,filename,file) \ + ( (This)->lpVtbl -> GetFile(This,filename,file) ) + +#define IAppxBlockMapReader_GetFiles(This,enumerator) \ + ( (This)->lpVtbl -> GetFiles(This,enumerator) ) + +#define IAppxBlockMapReader_GetHashMethod(This,hashMethod) \ + ( (This)->lpVtbl -> GetHashMethod(This,hashMethod) ) + +#define IAppxBlockMapReader_GetStream(This,blockMapStream) \ + ( (This)->lpVtbl -> GetStream(This,blockMapStream) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBlockMapReader_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBlockMapFile_INTERFACE_DEFINED__ +#define __IAppxBlockMapFile_INTERFACE_DEFINED__ + +/* interface IAppxBlockMapFile */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBlockMapFile; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("277672ac-4f63-42c1-8abc-beae3600eb59") + IAppxBlockMapFile : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetBlocks( + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapBlocksEnumerator **blocks) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLocalFileHeaderSize( + /* [retval][out] */ __RPC__out UINT32 *lfhSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUncompressedSize( + /* [retval][out] */ __RPC__out UINT64 *size) = 0; + + virtual HRESULT STDMETHODCALLTYPE ValidateFileHash( + /* [in] */ __RPC__in_opt IStream *fileStream, + /* [retval][out] */ __RPC__out BOOL *isValid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBlockMapFileVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBlockMapFile * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBlockMapFile * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBlockMapFile * This); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile, GetBlocks) + HRESULT ( STDMETHODCALLTYPE *GetBlocks )( + __RPC__in IAppxBlockMapFile * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapBlocksEnumerator **blocks); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile, GetLocalFileHeaderSize) + HRESULT ( STDMETHODCALLTYPE *GetLocalFileHeaderSize )( + __RPC__in IAppxBlockMapFile * This, + /* [retval][out] */ __RPC__out UINT32 *lfhSize); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxBlockMapFile * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile, GetUncompressedSize) + HRESULT ( STDMETHODCALLTYPE *GetUncompressedSize )( + __RPC__in IAppxBlockMapFile * This, + /* [retval][out] */ __RPC__out UINT64 *size); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile, ValidateFileHash) + HRESULT ( STDMETHODCALLTYPE *ValidateFileHash )( + __RPC__in IAppxBlockMapFile * This, + /* [in] */ __RPC__in_opt IStream *fileStream, + /* [retval][out] */ __RPC__out BOOL *isValid); + + END_INTERFACE + } IAppxBlockMapFileVtbl; + + interface IAppxBlockMapFile + { + CONST_VTBL struct IAppxBlockMapFileVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBlockMapFile_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBlockMapFile_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBlockMapFile_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBlockMapFile_GetBlocks(This,blocks) \ + ( (This)->lpVtbl -> GetBlocks(This,blocks) ) + +#define IAppxBlockMapFile_GetLocalFileHeaderSize(This,lfhSize) \ + ( (This)->lpVtbl -> GetLocalFileHeaderSize(This,lfhSize) ) + +#define IAppxBlockMapFile_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxBlockMapFile_GetUncompressedSize(This,size) \ + ( (This)->lpVtbl -> GetUncompressedSize(This,size) ) + +#define IAppxBlockMapFile_ValidateFileHash(This,fileStream,isValid) \ + ( (This)->lpVtbl -> ValidateFileHash(This,fileStream,isValid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBlockMapFile_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBlockMapFile2_INTERFACE_DEFINED__ +#define __IAppxBlockMapFile2_INTERFACE_DEFINED__ + +/* interface IAppxBlockMapFile2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBlockMapFile2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("54785f78-40e9-11ee-be56-0242ac120002") + IAppxBlockMapFile2 : public IAppxBlockMapFile + { + public: + virtual HRESULT STDMETHODCALLTYPE GetBlockSize( + /* [retval][out] */ __RPC__out UINT64 *blockSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBlockMapFile2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBlockMapFile2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBlockMapFile2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBlockMapFile2 * This); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile, GetBlocks) + HRESULT ( STDMETHODCALLTYPE *GetBlocks )( + __RPC__in IAppxBlockMapFile2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapBlocksEnumerator **blocks); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile, GetLocalFileHeaderSize) + HRESULT ( STDMETHODCALLTYPE *GetLocalFileHeaderSize )( + __RPC__in IAppxBlockMapFile2 * This, + /* [retval][out] */ __RPC__out UINT32 *lfhSize); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxBlockMapFile2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile, GetUncompressedSize) + HRESULT ( STDMETHODCALLTYPE *GetUncompressedSize )( + __RPC__in IAppxBlockMapFile2 * This, + /* [retval][out] */ __RPC__out UINT64 *size); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile, ValidateFileHash) + HRESULT ( STDMETHODCALLTYPE *ValidateFileHash )( + __RPC__in IAppxBlockMapFile2 * This, + /* [in] */ __RPC__in_opt IStream *fileStream, + /* [retval][out] */ __RPC__out BOOL *isValid); + + DECLSPEC_XFGVIRT(IAppxBlockMapFile2, GetBlockSize) + HRESULT ( STDMETHODCALLTYPE *GetBlockSize )( + __RPC__in IAppxBlockMapFile2 * This, + /* [retval][out] */ __RPC__out UINT64 *blockSize); + + END_INTERFACE + } IAppxBlockMapFile2Vtbl; + + interface IAppxBlockMapFile2 + { + CONST_VTBL struct IAppxBlockMapFile2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBlockMapFile2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBlockMapFile2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBlockMapFile2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBlockMapFile2_GetBlocks(This,blocks) \ + ( (This)->lpVtbl -> GetBlocks(This,blocks) ) + +#define IAppxBlockMapFile2_GetLocalFileHeaderSize(This,lfhSize) \ + ( (This)->lpVtbl -> GetLocalFileHeaderSize(This,lfhSize) ) + +#define IAppxBlockMapFile2_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxBlockMapFile2_GetUncompressedSize(This,size) \ + ( (This)->lpVtbl -> GetUncompressedSize(This,size) ) + +#define IAppxBlockMapFile2_ValidateFileHash(This,fileStream,isValid) \ + ( (This)->lpVtbl -> ValidateFileHash(This,fileStream,isValid) ) + + +#define IAppxBlockMapFile2_GetBlockSize(This,blockSize) \ + ( (This)->lpVtbl -> GetBlockSize(This,blockSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBlockMapFile2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBlockMapFilesEnumerator_INTERFACE_DEFINED__ +#define __IAppxBlockMapFilesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxBlockMapFilesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBlockMapFilesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("02b856a2-4262-4070-bacb-1a8cbbc42305") + IAppxBlockMapFilesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapFile **file) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBlockMapFilesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBlockMapFilesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBlockMapFilesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBlockMapFilesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxBlockMapFilesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxBlockMapFilesEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapFile **file); + + DECLSPEC_XFGVIRT(IAppxBlockMapFilesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxBlockMapFilesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxBlockMapFilesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxBlockMapFilesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + END_INTERFACE + } IAppxBlockMapFilesEnumeratorVtbl; + + interface IAppxBlockMapFilesEnumerator + { + CONST_VTBL struct IAppxBlockMapFilesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBlockMapFilesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBlockMapFilesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBlockMapFilesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBlockMapFilesEnumerator_GetCurrent(This,file) \ + ( (This)->lpVtbl -> GetCurrent(This,file) ) + +#define IAppxBlockMapFilesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxBlockMapFilesEnumerator_MoveNext(This,hasCurrent) \ + ( (This)->lpVtbl -> MoveNext(This,hasCurrent) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBlockMapFilesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBlockMapBlock_INTERFACE_DEFINED__ +#define __IAppxBlockMapBlock_INTERFACE_DEFINED__ + +/* interface IAppxBlockMapBlock */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBlockMapBlock; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("75cf3930-3244-4fe0-a8c8-e0bcb270b889") + IAppxBlockMapBlock : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetHash( + /* [out] */ __RPC__out UINT32 *bufferSize, + /* [retval][size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*bufferSize) BYTE **buffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompressedSize( + /* [retval][out] */ __RPC__out UINT32 *size) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBlockMapBlockVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBlockMapBlock * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBlockMapBlock * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBlockMapBlock * This); + + DECLSPEC_XFGVIRT(IAppxBlockMapBlock, GetHash) + HRESULT ( STDMETHODCALLTYPE *GetHash )( + __RPC__in IAppxBlockMapBlock * This, + /* [out] */ __RPC__out UINT32 *bufferSize, + /* [retval][size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*bufferSize) BYTE **buffer); + + DECLSPEC_XFGVIRT(IAppxBlockMapBlock, GetCompressedSize) + HRESULT ( STDMETHODCALLTYPE *GetCompressedSize )( + __RPC__in IAppxBlockMapBlock * This, + /* [retval][out] */ __RPC__out UINT32 *size); + + END_INTERFACE + } IAppxBlockMapBlockVtbl; + + interface IAppxBlockMapBlock + { + CONST_VTBL struct IAppxBlockMapBlockVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBlockMapBlock_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBlockMapBlock_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBlockMapBlock_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBlockMapBlock_GetHash(This,bufferSize,buffer) \ + ( (This)->lpVtbl -> GetHash(This,bufferSize,buffer) ) + +#define IAppxBlockMapBlock_GetCompressedSize(This,size) \ + ( (This)->lpVtbl -> GetCompressedSize(This,size) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBlockMapBlock_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBlockMapBlocksEnumerator_INTERFACE_DEFINED__ +#define __IAppxBlockMapBlocksEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxBlockMapBlocksEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBlockMapBlocksEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6b429b5b-36ef-479e-b9eb-0c1482b49e16") + IAppxBlockMapBlocksEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapBlock **block) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBlockMapBlocksEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBlockMapBlocksEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBlockMapBlocksEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBlockMapBlocksEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxBlockMapBlocksEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxBlockMapBlocksEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapBlock **block); + + DECLSPEC_XFGVIRT(IAppxBlockMapBlocksEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxBlockMapBlocksEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxBlockMapBlocksEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxBlockMapBlocksEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxBlockMapBlocksEnumeratorVtbl; + + interface IAppxBlockMapBlocksEnumerator + { + CONST_VTBL struct IAppxBlockMapBlocksEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBlockMapBlocksEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBlockMapBlocksEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBlockMapBlocksEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBlockMapBlocksEnumerator_GetCurrent(This,block) \ + ( (This)->lpVtbl -> GetCurrent(This,block) ) + +#define IAppxBlockMapBlocksEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxBlockMapBlocksEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBlockMapBlocksEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestReader_INTERFACE_DEFINED__ +#define __IAppxManifestReader_INTERFACE_DEFINED__ + +/* interface IAppxManifestReader */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestReader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4e1bd148-55a0-4480-a3d1-15544710637c") + IAppxManifestReader : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPackageId( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperties( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestProperties **packageProperties) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPackageDependencies( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageDependenciesEnumerator **dependencies) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCapabilities( + /* [retval][out] */ __RPC__out APPX_CAPABILITIES *capabilities) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetResources( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestResourcesEnumerator **resources) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDeviceCapabilities( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDeviceCapabilitiesEnumerator **deviceCapabilities) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrerequisite( + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][out] */ __RPC__out UINT64 *value) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetApplications( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestApplicationsEnumerator **applications) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStream( + /* [retval][out] */ __RPC__deref_out_opt IStream **manifestStream) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestReaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestReader * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestReader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestReader * This); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPackageId) + HRESULT ( STDMETHODCALLTYPE *GetPackageId )( + __RPC__in IAppxManifestReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetProperties) + HRESULT ( STDMETHODCALLTYPE *GetProperties )( + __RPC__in IAppxManifestReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestProperties **packageProperties); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPackageDependencies) + HRESULT ( STDMETHODCALLTYPE *GetPackageDependencies )( + __RPC__in IAppxManifestReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageDependenciesEnumerator **dependencies); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetCapabilities) + HRESULT ( STDMETHODCALLTYPE *GetCapabilities )( + __RPC__in IAppxManifestReader * This, + /* [retval][out] */ __RPC__out APPX_CAPABILITIES *capabilities); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetResources) + HRESULT ( STDMETHODCALLTYPE *GetResources )( + __RPC__in IAppxManifestReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestResourcesEnumerator **resources); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetDeviceCapabilities) + HRESULT ( STDMETHODCALLTYPE *GetDeviceCapabilities )( + __RPC__in IAppxManifestReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDeviceCapabilitiesEnumerator **deviceCapabilities); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPrerequisite) + HRESULT ( STDMETHODCALLTYPE *GetPrerequisite )( + __RPC__in IAppxManifestReader * This, + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][out] */ __RPC__out UINT64 *value); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetApplications) + HRESULT ( STDMETHODCALLTYPE *GetApplications )( + __RPC__in IAppxManifestReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestApplicationsEnumerator **applications); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + __RPC__in IAppxManifestReader * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **manifestStream); + + END_INTERFACE + } IAppxManifestReaderVtbl; + + interface IAppxManifestReader + { + CONST_VTBL struct IAppxManifestReaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestReader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestReader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestReader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestReader_GetPackageId(This,packageId) \ + ( (This)->lpVtbl -> GetPackageId(This,packageId) ) + +#define IAppxManifestReader_GetProperties(This,packageProperties) \ + ( (This)->lpVtbl -> GetProperties(This,packageProperties) ) + +#define IAppxManifestReader_GetPackageDependencies(This,dependencies) \ + ( (This)->lpVtbl -> GetPackageDependencies(This,dependencies) ) + +#define IAppxManifestReader_GetCapabilities(This,capabilities) \ + ( (This)->lpVtbl -> GetCapabilities(This,capabilities) ) + +#define IAppxManifestReader_GetResources(This,resources) \ + ( (This)->lpVtbl -> GetResources(This,resources) ) + +#define IAppxManifestReader_GetDeviceCapabilities(This,deviceCapabilities) \ + ( (This)->lpVtbl -> GetDeviceCapabilities(This,deviceCapabilities) ) + +#define IAppxManifestReader_GetPrerequisite(This,name,value) \ + ( (This)->lpVtbl -> GetPrerequisite(This,name,value) ) + +#define IAppxManifestReader_GetApplications(This,applications) \ + ( (This)->lpVtbl -> GetApplications(This,applications) ) + +#define IAppxManifestReader_GetStream(This,manifestStream) \ + ( (This)->lpVtbl -> GetStream(This,manifestStream) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestReader_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestReader2_INTERFACE_DEFINED__ +#define __IAppxManifestReader2_INTERFACE_DEFINED__ + +/* interface IAppxManifestReader2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestReader2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d06f67bc-b31d-4eba-a8af-638e73e77b4d") + IAppxManifestReader2 : public IAppxManifestReader + { + public: + virtual HRESULT STDMETHODCALLTYPE GetQualifiedResources( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestQualifiedResourcesEnumerator **resources) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestReader2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestReader2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestReader2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestReader2 * This); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPackageId) + HRESULT ( STDMETHODCALLTYPE *GetPackageId )( + __RPC__in IAppxManifestReader2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetProperties) + HRESULT ( STDMETHODCALLTYPE *GetProperties )( + __RPC__in IAppxManifestReader2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestProperties **packageProperties); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPackageDependencies) + HRESULT ( STDMETHODCALLTYPE *GetPackageDependencies )( + __RPC__in IAppxManifestReader2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageDependenciesEnumerator **dependencies); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetCapabilities) + HRESULT ( STDMETHODCALLTYPE *GetCapabilities )( + __RPC__in IAppxManifestReader2 * This, + /* [retval][out] */ __RPC__out APPX_CAPABILITIES *capabilities); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetResources) + HRESULT ( STDMETHODCALLTYPE *GetResources )( + __RPC__in IAppxManifestReader2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestResourcesEnumerator **resources); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetDeviceCapabilities) + HRESULT ( STDMETHODCALLTYPE *GetDeviceCapabilities )( + __RPC__in IAppxManifestReader2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDeviceCapabilitiesEnumerator **deviceCapabilities); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPrerequisite) + HRESULT ( STDMETHODCALLTYPE *GetPrerequisite )( + __RPC__in IAppxManifestReader2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][out] */ __RPC__out UINT64 *value); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetApplications) + HRESULT ( STDMETHODCALLTYPE *GetApplications )( + __RPC__in IAppxManifestReader2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestApplicationsEnumerator **applications); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + __RPC__in IAppxManifestReader2 * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **manifestStream); + + DECLSPEC_XFGVIRT(IAppxManifestReader2, GetQualifiedResources) + HRESULT ( STDMETHODCALLTYPE *GetQualifiedResources )( + __RPC__in IAppxManifestReader2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestQualifiedResourcesEnumerator **resources); + + END_INTERFACE + } IAppxManifestReader2Vtbl; + + interface IAppxManifestReader2 + { + CONST_VTBL struct IAppxManifestReader2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestReader2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestReader2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestReader2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestReader2_GetPackageId(This,packageId) \ + ( (This)->lpVtbl -> GetPackageId(This,packageId) ) + +#define IAppxManifestReader2_GetProperties(This,packageProperties) \ + ( (This)->lpVtbl -> GetProperties(This,packageProperties) ) + +#define IAppxManifestReader2_GetPackageDependencies(This,dependencies) \ + ( (This)->lpVtbl -> GetPackageDependencies(This,dependencies) ) + +#define IAppxManifestReader2_GetCapabilities(This,capabilities) \ + ( (This)->lpVtbl -> GetCapabilities(This,capabilities) ) + +#define IAppxManifestReader2_GetResources(This,resources) \ + ( (This)->lpVtbl -> GetResources(This,resources) ) + +#define IAppxManifestReader2_GetDeviceCapabilities(This,deviceCapabilities) \ + ( (This)->lpVtbl -> GetDeviceCapabilities(This,deviceCapabilities) ) + +#define IAppxManifestReader2_GetPrerequisite(This,name,value) \ + ( (This)->lpVtbl -> GetPrerequisite(This,name,value) ) + +#define IAppxManifestReader2_GetApplications(This,applications) \ + ( (This)->lpVtbl -> GetApplications(This,applications) ) + +#define IAppxManifestReader2_GetStream(This,manifestStream) \ + ( (This)->lpVtbl -> GetStream(This,manifestStream) ) + + +#define IAppxManifestReader2_GetQualifiedResources(This,resources) \ + ( (This)->lpVtbl -> GetQualifiedResources(This,resources) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestReader2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestReader3_INTERFACE_DEFINED__ +#define __IAppxManifestReader3_INTERFACE_DEFINED__ + +/* interface IAppxManifestReader3 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestReader3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C43825AB-69B7-400A-9709-CC37F5A72D24") + IAppxManifestReader3 : public IAppxManifestReader2 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCapabilitiesByCapabilityClass( + /* [in] */ APPX_CAPABILITY_CLASS_TYPE capabilityClass, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestCapabilitiesEnumerator **capabilities) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTargetDeviceFamilies( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestTargetDeviceFamiliesEnumerator **targetDeviceFamilies) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestReader3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestReader3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestReader3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestReader3 * This); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPackageId) + HRESULT ( STDMETHODCALLTYPE *GetPackageId )( + __RPC__in IAppxManifestReader3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetProperties) + HRESULT ( STDMETHODCALLTYPE *GetProperties )( + __RPC__in IAppxManifestReader3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestProperties **packageProperties); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPackageDependencies) + HRESULT ( STDMETHODCALLTYPE *GetPackageDependencies )( + __RPC__in IAppxManifestReader3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageDependenciesEnumerator **dependencies); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetCapabilities) + HRESULT ( STDMETHODCALLTYPE *GetCapabilities )( + __RPC__in IAppxManifestReader3 * This, + /* [retval][out] */ __RPC__out APPX_CAPABILITIES *capabilities); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetResources) + HRESULT ( STDMETHODCALLTYPE *GetResources )( + __RPC__in IAppxManifestReader3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestResourcesEnumerator **resources); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetDeviceCapabilities) + HRESULT ( STDMETHODCALLTYPE *GetDeviceCapabilities )( + __RPC__in IAppxManifestReader3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDeviceCapabilitiesEnumerator **deviceCapabilities); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPrerequisite) + HRESULT ( STDMETHODCALLTYPE *GetPrerequisite )( + __RPC__in IAppxManifestReader3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][out] */ __RPC__out UINT64 *value); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetApplications) + HRESULT ( STDMETHODCALLTYPE *GetApplications )( + __RPC__in IAppxManifestReader3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestApplicationsEnumerator **applications); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + __RPC__in IAppxManifestReader3 * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **manifestStream); + + DECLSPEC_XFGVIRT(IAppxManifestReader2, GetQualifiedResources) + HRESULT ( STDMETHODCALLTYPE *GetQualifiedResources )( + __RPC__in IAppxManifestReader3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestQualifiedResourcesEnumerator **resources); + + DECLSPEC_XFGVIRT(IAppxManifestReader3, GetCapabilitiesByCapabilityClass) + HRESULT ( STDMETHODCALLTYPE *GetCapabilitiesByCapabilityClass )( + __RPC__in IAppxManifestReader3 * This, + /* [in] */ APPX_CAPABILITY_CLASS_TYPE capabilityClass, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestCapabilitiesEnumerator **capabilities); + + DECLSPEC_XFGVIRT(IAppxManifestReader3, GetTargetDeviceFamilies) + HRESULT ( STDMETHODCALLTYPE *GetTargetDeviceFamilies )( + __RPC__in IAppxManifestReader3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestTargetDeviceFamiliesEnumerator **targetDeviceFamilies); + + END_INTERFACE + } IAppxManifestReader3Vtbl; + + interface IAppxManifestReader3 + { + CONST_VTBL struct IAppxManifestReader3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestReader3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestReader3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestReader3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestReader3_GetPackageId(This,packageId) \ + ( (This)->lpVtbl -> GetPackageId(This,packageId) ) + +#define IAppxManifestReader3_GetProperties(This,packageProperties) \ + ( (This)->lpVtbl -> GetProperties(This,packageProperties) ) + +#define IAppxManifestReader3_GetPackageDependencies(This,dependencies) \ + ( (This)->lpVtbl -> GetPackageDependencies(This,dependencies) ) + +#define IAppxManifestReader3_GetCapabilities(This,capabilities) \ + ( (This)->lpVtbl -> GetCapabilities(This,capabilities) ) + +#define IAppxManifestReader3_GetResources(This,resources) \ + ( (This)->lpVtbl -> GetResources(This,resources) ) + +#define IAppxManifestReader3_GetDeviceCapabilities(This,deviceCapabilities) \ + ( (This)->lpVtbl -> GetDeviceCapabilities(This,deviceCapabilities) ) + +#define IAppxManifestReader3_GetPrerequisite(This,name,value) \ + ( (This)->lpVtbl -> GetPrerequisite(This,name,value) ) + +#define IAppxManifestReader3_GetApplications(This,applications) \ + ( (This)->lpVtbl -> GetApplications(This,applications) ) + +#define IAppxManifestReader3_GetStream(This,manifestStream) \ + ( (This)->lpVtbl -> GetStream(This,manifestStream) ) + + +#define IAppxManifestReader3_GetQualifiedResources(This,resources) \ + ( (This)->lpVtbl -> GetQualifiedResources(This,resources) ) + + +#define IAppxManifestReader3_GetCapabilitiesByCapabilityClass(This,capabilityClass,capabilities) \ + ( (This)->lpVtbl -> GetCapabilitiesByCapabilityClass(This,capabilityClass,capabilities) ) + +#define IAppxManifestReader3_GetTargetDeviceFamilies(This,targetDeviceFamilies) \ + ( (This)->lpVtbl -> GetTargetDeviceFamilies(This,targetDeviceFamilies) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestReader3_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestReader4_INTERFACE_DEFINED__ +#define __IAppxManifestReader4_INTERFACE_DEFINED__ + +/* interface IAppxManifestReader4 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestReader4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4579BB7C-741D-4161-B5A1-47BD3B78AD9B") + IAppxManifestReader4 : public IAppxManifestReader3 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetOptionalPackageInfo( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestOptionalPackageInfo **optionalPackageInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestReader4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestReader4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestReader4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestReader4 * This); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPackageId) + HRESULT ( STDMETHODCALLTYPE *GetPackageId )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetProperties) + HRESULT ( STDMETHODCALLTYPE *GetProperties )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestProperties **packageProperties); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPackageDependencies) + HRESULT ( STDMETHODCALLTYPE *GetPackageDependencies )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageDependenciesEnumerator **dependencies); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetCapabilities) + HRESULT ( STDMETHODCALLTYPE *GetCapabilities )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__out APPX_CAPABILITIES *capabilities); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetResources) + HRESULT ( STDMETHODCALLTYPE *GetResources )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestResourcesEnumerator **resources); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetDeviceCapabilities) + HRESULT ( STDMETHODCALLTYPE *GetDeviceCapabilities )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDeviceCapabilitiesEnumerator **deviceCapabilities); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetPrerequisite) + HRESULT ( STDMETHODCALLTYPE *GetPrerequisite )( + __RPC__in IAppxManifestReader4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][out] */ __RPC__out UINT64 *value); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetApplications) + HRESULT ( STDMETHODCALLTYPE *GetApplications )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestApplicationsEnumerator **applications); + + DECLSPEC_XFGVIRT(IAppxManifestReader, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **manifestStream); + + DECLSPEC_XFGVIRT(IAppxManifestReader2, GetQualifiedResources) + HRESULT ( STDMETHODCALLTYPE *GetQualifiedResources )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestQualifiedResourcesEnumerator **resources); + + DECLSPEC_XFGVIRT(IAppxManifestReader3, GetCapabilitiesByCapabilityClass) + HRESULT ( STDMETHODCALLTYPE *GetCapabilitiesByCapabilityClass )( + __RPC__in IAppxManifestReader4 * This, + /* [in] */ APPX_CAPABILITY_CLASS_TYPE capabilityClass, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestCapabilitiesEnumerator **capabilities); + + DECLSPEC_XFGVIRT(IAppxManifestReader3, GetTargetDeviceFamilies) + HRESULT ( STDMETHODCALLTYPE *GetTargetDeviceFamilies )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestTargetDeviceFamiliesEnumerator **targetDeviceFamilies); + + DECLSPEC_XFGVIRT(IAppxManifestReader4, GetOptionalPackageInfo) + HRESULT ( STDMETHODCALLTYPE *GetOptionalPackageInfo )( + __RPC__in IAppxManifestReader4 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestOptionalPackageInfo **optionalPackageInfo); + + END_INTERFACE + } IAppxManifestReader4Vtbl; + + interface IAppxManifestReader4 + { + CONST_VTBL struct IAppxManifestReader4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestReader4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestReader4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestReader4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestReader4_GetPackageId(This,packageId) \ + ( (This)->lpVtbl -> GetPackageId(This,packageId) ) + +#define IAppxManifestReader4_GetProperties(This,packageProperties) \ + ( (This)->lpVtbl -> GetProperties(This,packageProperties) ) + +#define IAppxManifestReader4_GetPackageDependencies(This,dependencies) \ + ( (This)->lpVtbl -> GetPackageDependencies(This,dependencies) ) + +#define IAppxManifestReader4_GetCapabilities(This,capabilities) \ + ( (This)->lpVtbl -> GetCapabilities(This,capabilities) ) + +#define IAppxManifestReader4_GetResources(This,resources) \ + ( (This)->lpVtbl -> GetResources(This,resources) ) + +#define IAppxManifestReader4_GetDeviceCapabilities(This,deviceCapabilities) \ + ( (This)->lpVtbl -> GetDeviceCapabilities(This,deviceCapabilities) ) + +#define IAppxManifestReader4_GetPrerequisite(This,name,value) \ + ( (This)->lpVtbl -> GetPrerequisite(This,name,value) ) + +#define IAppxManifestReader4_GetApplications(This,applications) \ + ( (This)->lpVtbl -> GetApplications(This,applications) ) + +#define IAppxManifestReader4_GetStream(This,manifestStream) \ + ( (This)->lpVtbl -> GetStream(This,manifestStream) ) + + +#define IAppxManifestReader4_GetQualifiedResources(This,resources) \ + ( (This)->lpVtbl -> GetQualifiedResources(This,resources) ) + + +#define IAppxManifestReader4_GetCapabilitiesByCapabilityClass(This,capabilityClass,capabilities) \ + ( (This)->lpVtbl -> GetCapabilitiesByCapabilityClass(This,capabilityClass,capabilities) ) + +#define IAppxManifestReader4_GetTargetDeviceFamilies(This,targetDeviceFamilies) \ + ( (This)->lpVtbl -> GetTargetDeviceFamilies(This,targetDeviceFamilies) ) + + +#define IAppxManifestReader4_GetOptionalPackageInfo(This,optionalPackageInfo) \ + ( (This)->lpVtbl -> GetOptionalPackageInfo(This,optionalPackageInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestReader4_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestReader5_INTERFACE_DEFINED__ +#define __IAppxManifestReader5_INTERFACE_DEFINED__ + +/* interface IAppxManifestReader5 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestReader5; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8D7AE132-A690-4C00-B75A-6AAE1FEAAC80") + IAppxManifestReader5 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetMainPackageDependencies( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestMainPackageDependenciesEnumerator **mainPackageDependencies) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestReader5Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestReader5 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestReader5 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestReader5 * This); + + DECLSPEC_XFGVIRT(IAppxManifestReader5, GetMainPackageDependencies) + HRESULT ( STDMETHODCALLTYPE *GetMainPackageDependencies )( + __RPC__in IAppxManifestReader5 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestMainPackageDependenciesEnumerator **mainPackageDependencies); + + END_INTERFACE + } IAppxManifestReader5Vtbl; + + interface IAppxManifestReader5 + { + CONST_VTBL struct IAppxManifestReader5Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestReader5_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestReader5_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestReader5_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestReader5_GetMainPackageDependencies(This,mainPackageDependencies) \ + ( (This)->lpVtbl -> GetMainPackageDependencies(This,mainPackageDependencies) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestReader5_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestReader6_INTERFACE_DEFINED__ +#define __IAppxManifestReader6_INTERFACE_DEFINED__ + +/* interface IAppxManifestReader6 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestReader6; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("34DEACA4-D3C0-4E3E-B312-E42625E3807E") + IAppxManifestReader6 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetIsNonQualifiedResourcePackage( + /* [retval][out] */ __RPC__out BOOL *isNonQualifiedResourcePackage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestReader6Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestReader6 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestReader6 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestReader6 * This); + + DECLSPEC_XFGVIRT(IAppxManifestReader6, GetIsNonQualifiedResourcePackage) + HRESULT ( STDMETHODCALLTYPE *GetIsNonQualifiedResourcePackage )( + __RPC__in IAppxManifestReader6 * This, + /* [retval][out] */ __RPC__out BOOL *isNonQualifiedResourcePackage); + + END_INTERFACE + } IAppxManifestReader6Vtbl; + + interface IAppxManifestReader6 + { + CONST_VTBL struct IAppxManifestReader6Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestReader6_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestReader6_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestReader6_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestReader6_GetIsNonQualifiedResourcePackage(This,isNonQualifiedResourcePackage) \ + ( (This)->lpVtbl -> GetIsNonQualifiedResourcePackage(This,isNonQualifiedResourcePackage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestReader6_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestReader7_INTERFACE_DEFINED__ +#define __IAppxManifestReader7_INTERFACE_DEFINED__ + +/* interface IAppxManifestReader7 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestReader7; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8EFE6F27-0CE0-4988-B32D-738EB63DB3B7") + IAppxManifestReader7 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDriverDependencies( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDriverDependenciesEnumerator **driverDependencies) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOSPackageDependencies( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestOSPackageDependenciesEnumerator **osPackageDependencies) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHostRuntimeDependencies( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestHostRuntimeDependenciesEnumerator **hostRuntimeDependencies) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestReader7Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestReader7 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestReader7 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestReader7 * This); + + DECLSPEC_XFGVIRT(IAppxManifestReader7, GetDriverDependencies) + HRESULT ( STDMETHODCALLTYPE *GetDriverDependencies )( + __RPC__in IAppxManifestReader7 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDriverDependenciesEnumerator **driverDependencies); + + DECLSPEC_XFGVIRT(IAppxManifestReader7, GetOSPackageDependencies) + HRESULT ( STDMETHODCALLTYPE *GetOSPackageDependencies )( + __RPC__in IAppxManifestReader7 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestOSPackageDependenciesEnumerator **osPackageDependencies); + + DECLSPEC_XFGVIRT(IAppxManifestReader7, GetHostRuntimeDependencies) + HRESULT ( STDMETHODCALLTYPE *GetHostRuntimeDependencies )( + __RPC__in IAppxManifestReader7 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestHostRuntimeDependenciesEnumerator **hostRuntimeDependencies); + + END_INTERFACE + } IAppxManifestReader7Vtbl; + + interface IAppxManifestReader7 + { + CONST_VTBL struct IAppxManifestReader7Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestReader7_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestReader7_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestReader7_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestReader7_GetDriverDependencies(This,driverDependencies) \ + ( (This)->lpVtbl -> GetDriverDependencies(This,driverDependencies) ) + +#define IAppxManifestReader7_GetOSPackageDependencies(This,osPackageDependencies) \ + ( (This)->lpVtbl -> GetOSPackageDependencies(This,osPackageDependencies) ) + +#define IAppxManifestReader7_GetHostRuntimeDependencies(This,hostRuntimeDependencies) \ + ( (This)->lpVtbl -> GetHostRuntimeDependencies(This,hostRuntimeDependencies) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestReader7_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestDriverDependenciesEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestDriverDependenciesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestDriverDependenciesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestDriverDependenciesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FE039DB2-467f-4755-8404-8F5EB6865B33") + IAppxManifestDriverDependenciesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDriverDependency **driverDependency) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestDriverDependenciesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestDriverDependenciesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestDriverDependenciesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestDriverDependenciesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestDriverDependenciesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestDriverDependenciesEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDriverDependency **driverDependency); + + DECLSPEC_XFGVIRT(IAppxManifestDriverDependenciesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestDriverDependenciesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestDriverDependenciesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestDriverDependenciesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestDriverDependenciesEnumeratorVtbl; + + interface IAppxManifestDriverDependenciesEnumerator + { + CONST_VTBL struct IAppxManifestDriverDependenciesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestDriverDependenciesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestDriverDependenciesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestDriverDependenciesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestDriverDependenciesEnumerator_GetCurrent(This,driverDependency) \ + ( (This)->lpVtbl -> GetCurrent(This,driverDependency) ) + +#define IAppxManifestDriverDependenciesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestDriverDependenciesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestDriverDependenciesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestDriverDependency_INTERFACE_DEFINED__ +#define __IAppxManifestDriverDependency_INTERFACE_DEFINED__ + +/* interface IAppxManifestDriverDependency */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestDriverDependency; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1210CB94-5A92-4602-BE24-79F318AF4AF9") + IAppxManifestDriverDependency : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDriverConstraints( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDriverConstraintsEnumerator **driverConstraints) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestDriverDependencyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestDriverDependency * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestDriverDependency * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestDriverDependency * This); + + DECLSPEC_XFGVIRT(IAppxManifestDriverDependency, GetDriverConstraints) + HRESULT ( STDMETHODCALLTYPE *GetDriverConstraints )( + __RPC__in IAppxManifestDriverDependency * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDriverConstraintsEnumerator **driverConstraints); + + END_INTERFACE + } IAppxManifestDriverDependencyVtbl; + + interface IAppxManifestDriverDependency + { + CONST_VTBL struct IAppxManifestDriverDependencyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestDriverDependency_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestDriverDependency_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestDriverDependency_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestDriverDependency_GetDriverConstraints(This,driverConstraints) \ + ( (This)->lpVtbl -> GetDriverConstraints(This,driverConstraints) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestDriverDependency_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestDriverConstraintsEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestDriverConstraintsEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestDriverConstraintsEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestDriverConstraintsEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D402B2D1-F600-49E0-95E6-975D8DA13D89") + IAppxManifestDriverConstraintsEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDriverConstraint **driverConstraint) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestDriverConstraintsEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestDriverConstraintsEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestDriverConstraintsEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestDriverConstraintsEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestDriverConstraintsEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestDriverConstraintsEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestDriverConstraint **driverConstraint); + + DECLSPEC_XFGVIRT(IAppxManifestDriverConstraintsEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestDriverConstraintsEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestDriverConstraintsEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestDriverConstraintsEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestDriverConstraintsEnumeratorVtbl; + + interface IAppxManifestDriverConstraintsEnumerator + { + CONST_VTBL struct IAppxManifestDriverConstraintsEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestDriverConstraintsEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestDriverConstraintsEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestDriverConstraintsEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestDriverConstraintsEnumerator_GetCurrent(This,driverConstraint) \ + ( (This)->lpVtbl -> GetCurrent(This,driverConstraint) ) + +#define IAppxManifestDriverConstraintsEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestDriverConstraintsEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestDriverConstraintsEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestDriverConstraint_INTERFACE_DEFINED__ +#define __IAppxManifestDriverConstraint_INTERFACE_DEFINED__ + +/* interface IAppxManifestDriverConstraint */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestDriverConstraint; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C031BEE4-BBCC-48EA-A237-C34045C80A07") + IAppxManifestDriverConstraint : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMinVersion( + /* [retval][out] */ __RPC__out UINT64 *minVersion) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMinDate( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *minDate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestDriverConstraintVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestDriverConstraint * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestDriverConstraint * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestDriverConstraint * This); + + DECLSPEC_XFGVIRT(IAppxManifestDriverConstraint, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxManifestDriverConstraint * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxManifestDriverConstraint, GetMinVersion) + HRESULT ( STDMETHODCALLTYPE *GetMinVersion )( + __RPC__in IAppxManifestDriverConstraint * This, + /* [retval][out] */ __RPC__out UINT64 *minVersion); + + DECLSPEC_XFGVIRT(IAppxManifestDriverConstraint, GetMinDate) + HRESULT ( STDMETHODCALLTYPE *GetMinDate )( + __RPC__in IAppxManifestDriverConstraint * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *minDate); + + END_INTERFACE + } IAppxManifestDriverConstraintVtbl; + + interface IAppxManifestDriverConstraint + { + CONST_VTBL struct IAppxManifestDriverConstraintVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestDriverConstraint_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestDriverConstraint_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestDriverConstraint_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestDriverConstraint_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxManifestDriverConstraint_GetMinVersion(This,minVersion) \ + ( (This)->lpVtbl -> GetMinVersion(This,minVersion) ) + +#define IAppxManifestDriverConstraint_GetMinDate(This,minDate) \ + ( (This)->lpVtbl -> GetMinDate(This,minDate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestDriverConstraint_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestOSPackageDependenciesEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestOSPackageDependenciesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestOSPackageDependenciesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestOSPackageDependenciesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B84E2FC3-F8EC-4BC1-8AE2-156346F5FFEA") + IAppxManifestOSPackageDependenciesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestOSPackageDependency **osPackageDependency) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestOSPackageDependenciesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestOSPackageDependenciesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestOSPackageDependenciesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestOSPackageDependenciesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestOSPackageDependenciesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestOSPackageDependenciesEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestOSPackageDependency **osPackageDependency); + + DECLSPEC_XFGVIRT(IAppxManifestOSPackageDependenciesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestOSPackageDependenciesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestOSPackageDependenciesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestOSPackageDependenciesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestOSPackageDependenciesEnumeratorVtbl; + + interface IAppxManifestOSPackageDependenciesEnumerator + { + CONST_VTBL struct IAppxManifestOSPackageDependenciesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestOSPackageDependenciesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestOSPackageDependenciesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestOSPackageDependenciesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestOSPackageDependenciesEnumerator_GetCurrent(This,osPackageDependency) \ + ( (This)->lpVtbl -> GetCurrent(This,osPackageDependency) ) + +#define IAppxManifestOSPackageDependenciesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestOSPackageDependenciesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestOSPackageDependenciesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestOSPackageDependency_INTERFACE_DEFINED__ +#define __IAppxManifestOSPackageDependency_INTERFACE_DEFINED__ + +/* interface IAppxManifestOSPackageDependency */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestOSPackageDependency; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("154995EE-54A6-4F14-AC97-D8CF0519644B") + IAppxManifestOSPackageDependency : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersion( + /* [retval][out] */ __RPC__out UINT64 *version) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestOSPackageDependencyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestOSPackageDependency * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestOSPackageDependency * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestOSPackageDependency * This); + + DECLSPEC_XFGVIRT(IAppxManifestOSPackageDependency, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxManifestOSPackageDependency * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxManifestOSPackageDependency, GetVersion) + HRESULT ( STDMETHODCALLTYPE *GetVersion )( + __RPC__in IAppxManifestOSPackageDependency * This, + /* [retval][out] */ __RPC__out UINT64 *version); + + END_INTERFACE + } IAppxManifestOSPackageDependencyVtbl; + + interface IAppxManifestOSPackageDependency + { + CONST_VTBL struct IAppxManifestOSPackageDependencyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestOSPackageDependency_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestOSPackageDependency_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestOSPackageDependency_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestOSPackageDependency_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxManifestOSPackageDependency_GetVersion(This,version) \ + ( (This)->lpVtbl -> GetVersion(This,version) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestOSPackageDependency_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestHostRuntimeDependenciesEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestHostRuntimeDependenciesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestHostRuntimeDependenciesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestHostRuntimeDependenciesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6427A646-7F49-433E-B1A6-0DA309F6885A") + IAppxManifestHostRuntimeDependenciesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestHostRuntimeDependency **hostRuntimeDependency) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestHostRuntimeDependenciesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestHostRuntimeDependenciesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestHostRuntimeDependenciesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestHostRuntimeDependenciesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestHostRuntimeDependenciesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestHostRuntimeDependenciesEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestHostRuntimeDependency **hostRuntimeDependency); + + DECLSPEC_XFGVIRT(IAppxManifestHostRuntimeDependenciesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestHostRuntimeDependenciesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestHostRuntimeDependenciesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestHostRuntimeDependenciesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestHostRuntimeDependenciesEnumeratorVtbl; + + interface IAppxManifestHostRuntimeDependenciesEnumerator + { + CONST_VTBL struct IAppxManifestHostRuntimeDependenciesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestHostRuntimeDependenciesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestHostRuntimeDependenciesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestHostRuntimeDependenciesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestHostRuntimeDependenciesEnumerator_GetCurrent(This,hostRuntimeDependency) \ + ( (This)->lpVtbl -> GetCurrent(This,hostRuntimeDependency) ) + +#define IAppxManifestHostRuntimeDependenciesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestHostRuntimeDependenciesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestHostRuntimeDependenciesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestHostRuntimeDependency_INTERFACE_DEFINED__ +#define __IAppxManifestHostRuntimeDependency_INTERFACE_DEFINED__ + +/* interface IAppxManifestHostRuntimeDependency */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestHostRuntimeDependency; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3455D234-8414-410D-95C7-7B35255B8391") + IAppxManifestHostRuntimeDependency : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPublisher( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *publisher) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMinVersion( + /* [retval][out] */ __RPC__out UINT64 *minVersion) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestHostRuntimeDependencyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestHostRuntimeDependency * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestHostRuntimeDependency * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestHostRuntimeDependency * This); + + DECLSPEC_XFGVIRT(IAppxManifestHostRuntimeDependency, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxManifestHostRuntimeDependency * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxManifestHostRuntimeDependency, GetPublisher) + HRESULT ( STDMETHODCALLTYPE *GetPublisher )( + __RPC__in IAppxManifestHostRuntimeDependency * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *publisher); + + DECLSPEC_XFGVIRT(IAppxManifestHostRuntimeDependency, GetMinVersion) + HRESULT ( STDMETHODCALLTYPE *GetMinVersion )( + __RPC__in IAppxManifestHostRuntimeDependency * This, + /* [retval][out] */ __RPC__out UINT64 *minVersion); + + END_INTERFACE + } IAppxManifestHostRuntimeDependencyVtbl; + + interface IAppxManifestHostRuntimeDependency + { + CONST_VTBL struct IAppxManifestHostRuntimeDependencyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestHostRuntimeDependency_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestHostRuntimeDependency_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestHostRuntimeDependency_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestHostRuntimeDependency_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxManifestHostRuntimeDependency_GetPublisher(This,publisher) \ + ( (This)->lpVtbl -> GetPublisher(This,publisher) ) + +#define IAppxManifestHostRuntimeDependency_GetMinVersion(This,minVersion) \ + ( (This)->lpVtbl -> GetMinVersion(This,minVersion) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestHostRuntimeDependency_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestHostRuntimeDependency2_INTERFACE_DEFINED__ +#define __IAppxManifestHostRuntimeDependency2_INTERFACE_DEFINED__ + +/* interface IAppxManifestHostRuntimeDependency2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestHostRuntimeDependency2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C26F23A8-EE10-4AD6-B898-2B4D7AEBFE6A") + IAppxManifestHostRuntimeDependency2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPackageFamilyName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *packageFamilyName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestHostRuntimeDependency2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestHostRuntimeDependency2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestHostRuntimeDependency2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestHostRuntimeDependency2 * This); + + DECLSPEC_XFGVIRT(IAppxManifestHostRuntimeDependency2, GetPackageFamilyName) + HRESULT ( STDMETHODCALLTYPE *GetPackageFamilyName )( + __RPC__in IAppxManifestHostRuntimeDependency2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *packageFamilyName); + + END_INTERFACE + } IAppxManifestHostRuntimeDependency2Vtbl; + + interface IAppxManifestHostRuntimeDependency2 + { + CONST_VTBL struct IAppxManifestHostRuntimeDependency2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestHostRuntimeDependency2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestHostRuntimeDependency2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestHostRuntimeDependency2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestHostRuntimeDependency2_GetPackageFamilyName(This,packageFamilyName) \ + ( (This)->lpVtbl -> GetPackageFamilyName(This,packageFamilyName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestHostRuntimeDependency2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestOptionalPackageInfo_INTERFACE_DEFINED__ +#define __IAppxManifestOptionalPackageInfo_INTERFACE_DEFINED__ + +/* interface IAppxManifestOptionalPackageInfo */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestOptionalPackageInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2634847D-5B5D-4FE5-A243-002FF95EDC7E") + IAppxManifestOptionalPackageInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetIsOptionalPackage( + /* [retval][out] */ __RPC__out BOOL *isOptionalPackage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMainPackageName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *mainPackageName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestOptionalPackageInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestOptionalPackageInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestOptionalPackageInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestOptionalPackageInfo * This); + + DECLSPEC_XFGVIRT(IAppxManifestOptionalPackageInfo, GetIsOptionalPackage) + HRESULT ( STDMETHODCALLTYPE *GetIsOptionalPackage )( + __RPC__in IAppxManifestOptionalPackageInfo * This, + /* [retval][out] */ __RPC__out BOOL *isOptionalPackage); + + DECLSPEC_XFGVIRT(IAppxManifestOptionalPackageInfo, GetMainPackageName) + HRESULT ( STDMETHODCALLTYPE *GetMainPackageName )( + __RPC__in IAppxManifestOptionalPackageInfo * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *mainPackageName); + + END_INTERFACE + } IAppxManifestOptionalPackageInfoVtbl; + + interface IAppxManifestOptionalPackageInfo + { + CONST_VTBL struct IAppxManifestOptionalPackageInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestOptionalPackageInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestOptionalPackageInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestOptionalPackageInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestOptionalPackageInfo_GetIsOptionalPackage(This,isOptionalPackage) \ + ( (This)->lpVtbl -> GetIsOptionalPackage(This,isOptionalPackage) ) + +#define IAppxManifestOptionalPackageInfo_GetMainPackageName(This,mainPackageName) \ + ( (This)->lpVtbl -> GetMainPackageName(This,mainPackageName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestOptionalPackageInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestMainPackageDependenciesEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestMainPackageDependenciesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestMainPackageDependenciesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestMainPackageDependenciesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A99C4F00-51D2-4F0F-BA46-7ED5255EBDFF") + IAppxManifestMainPackageDependenciesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestMainPackageDependency **mainPackageDependency) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestMainPackageDependenciesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestMainPackageDependenciesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestMainPackageDependenciesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestMainPackageDependenciesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestMainPackageDependenciesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestMainPackageDependenciesEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestMainPackageDependency **mainPackageDependency); + + DECLSPEC_XFGVIRT(IAppxManifestMainPackageDependenciesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestMainPackageDependenciesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestMainPackageDependenciesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestMainPackageDependenciesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestMainPackageDependenciesEnumeratorVtbl; + + interface IAppxManifestMainPackageDependenciesEnumerator + { + CONST_VTBL struct IAppxManifestMainPackageDependenciesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestMainPackageDependenciesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestMainPackageDependenciesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestMainPackageDependenciesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestMainPackageDependenciesEnumerator_GetCurrent(This,mainPackageDependency) \ + ( (This)->lpVtbl -> GetCurrent(This,mainPackageDependency) ) + +#define IAppxManifestMainPackageDependenciesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestMainPackageDependenciesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestMainPackageDependenciesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestMainPackageDependency_INTERFACE_DEFINED__ +#define __IAppxManifestMainPackageDependency_INTERFACE_DEFINED__ + +/* interface IAppxManifestMainPackageDependency */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestMainPackageDependency; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("05D0611C-BC29-46D5-97E2-84B9C79BD8AE") + IAppxManifestMainPackageDependency : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPublisher( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *publisher) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPackageFamilyName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *packageFamilyName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestMainPackageDependencyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestMainPackageDependency * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestMainPackageDependency * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestMainPackageDependency * This); + + DECLSPEC_XFGVIRT(IAppxManifestMainPackageDependency, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxManifestMainPackageDependency * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxManifestMainPackageDependency, GetPublisher) + HRESULT ( STDMETHODCALLTYPE *GetPublisher )( + __RPC__in IAppxManifestMainPackageDependency * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *publisher); + + DECLSPEC_XFGVIRT(IAppxManifestMainPackageDependency, GetPackageFamilyName) + HRESULT ( STDMETHODCALLTYPE *GetPackageFamilyName )( + __RPC__in IAppxManifestMainPackageDependency * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *packageFamilyName); + + END_INTERFACE + } IAppxManifestMainPackageDependencyVtbl; + + interface IAppxManifestMainPackageDependency + { + CONST_VTBL struct IAppxManifestMainPackageDependencyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestMainPackageDependency_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestMainPackageDependency_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestMainPackageDependency_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestMainPackageDependency_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxManifestMainPackageDependency_GetPublisher(This,publisher) \ + ( (This)->lpVtbl -> GetPublisher(This,publisher) ) + +#define IAppxManifestMainPackageDependency_GetPackageFamilyName(This,packageFamilyName) \ + ( (This)->lpVtbl -> GetPackageFamilyName(This,packageFamilyName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestMainPackageDependency_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestPackageId_INTERFACE_DEFINED__ +#define __IAppxManifestPackageId_INTERFACE_DEFINED__ + +/* interface IAppxManifestPackageId */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestPackageId; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("283ce2d7-7153-4a91-9649-7a0f7240945f") + IAppxManifestPackageId : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetArchitecture( + /* [retval][out] */ __RPC__out APPX_PACKAGE_ARCHITECTURE *architecture) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPublisher( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *publisher) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersion( + /* [retval][out] */ __RPC__out UINT64 *packageVersion) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetResourceId( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *resourceId) = 0; + + virtual HRESULT STDMETHODCALLTYPE ComparePublisher( + /* [string][in] */ __RPC__in_string LPCWSTR other, + /* [retval][out] */ __RPC__out BOOL *isSame) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPackageFullName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *packageFullName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPackageFamilyName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *packageFamilyName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestPackageIdVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestPackageId * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestPackageId * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestPackageId * This); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxManifestPackageId * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetArchitecture) + HRESULT ( STDMETHODCALLTYPE *GetArchitecture )( + __RPC__in IAppxManifestPackageId * This, + /* [retval][out] */ __RPC__out APPX_PACKAGE_ARCHITECTURE *architecture); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetPublisher) + HRESULT ( STDMETHODCALLTYPE *GetPublisher )( + __RPC__in IAppxManifestPackageId * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *publisher); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetVersion) + HRESULT ( STDMETHODCALLTYPE *GetVersion )( + __RPC__in IAppxManifestPackageId * This, + /* [retval][out] */ __RPC__out UINT64 *packageVersion); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetResourceId) + HRESULT ( STDMETHODCALLTYPE *GetResourceId )( + __RPC__in IAppxManifestPackageId * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *resourceId); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, ComparePublisher) + HRESULT ( STDMETHODCALLTYPE *ComparePublisher )( + __RPC__in IAppxManifestPackageId * This, + /* [string][in] */ __RPC__in_string LPCWSTR other, + /* [retval][out] */ __RPC__out BOOL *isSame); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetPackageFullName) + HRESULT ( STDMETHODCALLTYPE *GetPackageFullName )( + __RPC__in IAppxManifestPackageId * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *packageFullName); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetPackageFamilyName) + HRESULT ( STDMETHODCALLTYPE *GetPackageFamilyName )( + __RPC__in IAppxManifestPackageId * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *packageFamilyName); + + END_INTERFACE + } IAppxManifestPackageIdVtbl; + + interface IAppxManifestPackageId + { + CONST_VTBL struct IAppxManifestPackageIdVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestPackageId_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestPackageId_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestPackageId_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestPackageId_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxManifestPackageId_GetArchitecture(This,architecture) \ + ( (This)->lpVtbl -> GetArchitecture(This,architecture) ) + +#define IAppxManifestPackageId_GetPublisher(This,publisher) \ + ( (This)->lpVtbl -> GetPublisher(This,publisher) ) + +#define IAppxManifestPackageId_GetVersion(This,packageVersion) \ + ( (This)->lpVtbl -> GetVersion(This,packageVersion) ) + +#define IAppxManifestPackageId_GetResourceId(This,resourceId) \ + ( (This)->lpVtbl -> GetResourceId(This,resourceId) ) + +#define IAppxManifestPackageId_ComparePublisher(This,other,isSame) \ + ( (This)->lpVtbl -> ComparePublisher(This,other,isSame) ) + +#define IAppxManifestPackageId_GetPackageFullName(This,packageFullName) \ + ( (This)->lpVtbl -> GetPackageFullName(This,packageFullName) ) + +#define IAppxManifestPackageId_GetPackageFamilyName(This,packageFamilyName) \ + ( (This)->lpVtbl -> GetPackageFamilyName(This,packageFamilyName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestPackageId_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestPackageId2_INTERFACE_DEFINED__ +#define __IAppxManifestPackageId2_INTERFACE_DEFINED__ + +/* interface IAppxManifestPackageId2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestPackageId2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2256999d-d617-42f1-880e-0ba4542319d5") + IAppxManifestPackageId2 : public IAppxManifestPackageId + { + public: + virtual HRESULT STDMETHODCALLTYPE GetArchitecture2( + /* [retval][out] */ __RPC__out APPX_PACKAGE_ARCHITECTURE2 *architecture) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestPackageId2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestPackageId2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestPackageId2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestPackageId2 * This); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxManifestPackageId2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetArchitecture) + HRESULT ( STDMETHODCALLTYPE *GetArchitecture )( + __RPC__in IAppxManifestPackageId2 * This, + /* [retval][out] */ __RPC__out APPX_PACKAGE_ARCHITECTURE *architecture); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetPublisher) + HRESULT ( STDMETHODCALLTYPE *GetPublisher )( + __RPC__in IAppxManifestPackageId2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *publisher); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetVersion) + HRESULT ( STDMETHODCALLTYPE *GetVersion )( + __RPC__in IAppxManifestPackageId2 * This, + /* [retval][out] */ __RPC__out UINT64 *packageVersion); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetResourceId) + HRESULT ( STDMETHODCALLTYPE *GetResourceId )( + __RPC__in IAppxManifestPackageId2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *resourceId); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, ComparePublisher) + HRESULT ( STDMETHODCALLTYPE *ComparePublisher )( + __RPC__in IAppxManifestPackageId2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR other, + /* [retval][out] */ __RPC__out BOOL *isSame); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetPackageFullName) + HRESULT ( STDMETHODCALLTYPE *GetPackageFullName )( + __RPC__in IAppxManifestPackageId2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *packageFullName); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId, GetPackageFamilyName) + HRESULT ( STDMETHODCALLTYPE *GetPackageFamilyName )( + __RPC__in IAppxManifestPackageId2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *packageFamilyName); + + DECLSPEC_XFGVIRT(IAppxManifestPackageId2, GetArchitecture2) + HRESULT ( STDMETHODCALLTYPE *GetArchitecture2 )( + __RPC__in IAppxManifestPackageId2 * This, + /* [retval][out] */ __RPC__out APPX_PACKAGE_ARCHITECTURE2 *architecture); + + END_INTERFACE + } IAppxManifestPackageId2Vtbl; + + interface IAppxManifestPackageId2 + { + CONST_VTBL struct IAppxManifestPackageId2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestPackageId2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestPackageId2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestPackageId2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestPackageId2_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxManifestPackageId2_GetArchitecture(This,architecture) \ + ( (This)->lpVtbl -> GetArchitecture(This,architecture) ) + +#define IAppxManifestPackageId2_GetPublisher(This,publisher) \ + ( (This)->lpVtbl -> GetPublisher(This,publisher) ) + +#define IAppxManifestPackageId2_GetVersion(This,packageVersion) \ + ( (This)->lpVtbl -> GetVersion(This,packageVersion) ) + +#define IAppxManifestPackageId2_GetResourceId(This,resourceId) \ + ( (This)->lpVtbl -> GetResourceId(This,resourceId) ) + +#define IAppxManifestPackageId2_ComparePublisher(This,other,isSame) \ + ( (This)->lpVtbl -> ComparePublisher(This,other,isSame) ) + +#define IAppxManifestPackageId2_GetPackageFullName(This,packageFullName) \ + ( (This)->lpVtbl -> GetPackageFullName(This,packageFullName) ) + +#define IAppxManifestPackageId2_GetPackageFamilyName(This,packageFamilyName) \ + ( (This)->lpVtbl -> GetPackageFamilyName(This,packageFamilyName) ) + + +#define IAppxManifestPackageId2_GetArchitecture2(This,architecture) \ + ( (This)->lpVtbl -> GetArchitecture2(This,architecture) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestPackageId2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestProperties_INTERFACE_DEFINED__ +#define __IAppxManifestProperties_INTERFACE_DEFINED__ + +/* interface IAppxManifestProperties */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("03faf64d-f26f-4b2c-aaf7-8fe7789b8bca") + IAppxManifestProperties : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetBoolValue( + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][out] */ __RPC__out BOOL *value) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStringValue( + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestProperties * This); + + DECLSPEC_XFGVIRT(IAppxManifestProperties, GetBoolValue) + HRESULT ( STDMETHODCALLTYPE *GetBoolValue )( + __RPC__in IAppxManifestProperties * This, + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][out] */ __RPC__out BOOL *value); + + DECLSPEC_XFGVIRT(IAppxManifestProperties, GetStringValue) + HRESULT ( STDMETHODCALLTYPE *GetStringValue )( + __RPC__in IAppxManifestProperties * This, + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + END_INTERFACE + } IAppxManifestPropertiesVtbl; + + interface IAppxManifestProperties + { + CONST_VTBL struct IAppxManifestPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestProperties_GetBoolValue(This,name,value) \ + ( (This)->lpVtbl -> GetBoolValue(This,name,value) ) + +#define IAppxManifestProperties_GetStringValue(This,name,value) \ + ( (This)->lpVtbl -> GetStringValue(This,name,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestProperties_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestTargetDeviceFamiliesEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestTargetDeviceFamiliesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestTargetDeviceFamiliesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestTargetDeviceFamiliesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("36537F36-27A4-4788-88C0-733819575017") + IAppxManifestTargetDeviceFamiliesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestTargetDeviceFamily **targetDeviceFamily) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestTargetDeviceFamiliesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestTargetDeviceFamiliesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestTargetDeviceFamiliesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestTargetDeviceFamiliesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestTargetDeviceFamiliesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestTargetDeviceFamiliesEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestTargetDeviceFamily **targetDeviceFamily); + + DECLSPEC_XFGVIRT(IAppxManifestTargetDeviceFamiliesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestTargetDeviceFamiliesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestTargetDeviceFamiliesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestTargetDeviceFamiliesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestTargetDeviceFamiliesEnumeratorVtbl; + + interface IAppxManifestTargetDeviceFamiliesEnumerator + { + CONST_VTBL struct IAppxManifestTargetDeviceFamiliesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestTargetDeviceFamiliesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestTargetDeviceFamiliesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestTargetDeviceFamiliesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestTargetDeviceFamiliesEnumerator_GetCurrent(This,targetDeviceFamily) \ + ( (This)->lpVtbl -> GetCurrent(This,targetDeviceFamily) ) + +#define IAppxManifestTargetDeviceFamiliesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestTargetDeviceFamiliesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestTargetDeviceFamiliesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestTargetDeviceFamily_INTERFACE_DEFINED__ +#define __IAppxManifestTargetDeviceFamily_INTERFACE_DEFINED__ + +/* interface IAppxManifestTargetDeviceFamily */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestTargetDeviceFamily; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9091B09B-C8D5-4F31-8687-A338259FAEFB") + IAppxManifestTargetDeviceFamily : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMinVersion( + /* [retval][out] */ __RPC__out UINT64 *minVersion) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMaxVersionTested( + /* [retval][out] */ __RPC__out UINT64 *maxVersionTested) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestTargetDeviceFamilyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestTargetDeviceFamily * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestTargetDeviceFamily * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestTargetDeviceFamily * This); + + DECLSPEC_XFGVIRT(IAppxManifestTargetDeviceFamily, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxManifestTargetDeviceFamily * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxManifestTargetDeviceFamily, GetMinVersion) + HRESULT ( STDMETHODCALLTYPE *GetMinVersion )( + __RPC__in IAppxManifestTargetDeviceFamily * This, + /* [retval][out] */ __RPC__out UINT64 *minVersion); + + DECLSPEC_XFGVIRT(IAppxManifestTargetDeviceFamily, GetMaxVersionTested) + HRESULT ( STDMETHODCALLTYPE *GetMaxVersionTested )( + __RPC__in IAppxManifestTargetDeviceFamily * This, + /* [retval][out] */ __RPC__out UINT64 *maxVersionTested); + + END_INTERFACE + } IAppxManifestTargetDeviceFamilyVtbl; + + interface IAppxManifestTargetDeviceFamily + { + CONST_VTBL struct IAppxManifestTargetDeviceFamilyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestTargetDeviceFamily_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestTargetDeviceFamily_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestTargetDeviceFamily_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestTargetDeviceFamily_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxManifestTargetDeviceFamily_GetMinVersion(This,minVersion) \ + ( (This)->lpVtbl -> GetMinVersion(This,minVersion) ) + +#define IAppxManifestTargetDeviceFamily_GetMaxVersionTested(This,maxVersionTested) \ + ( (This)->lpVtbl -> GetMaxVersionTested(This,maxVersionTested) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestTargetDeviceFamily_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestPackageDependenciesEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestPackageDependenciesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestPackageDependenciesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestPackageDependenciesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b43bbcf9-65a6-42dd-bac0-8c6741e7f5a4") + IAppxManifestPackageDependenciesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageDependency **dependency) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestPackageDependenciesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestPackageDependenciesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestPackageDependenciesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestPackageDependenciesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependenciesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestPackageDependenciesEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageDependency **dependency); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependenciesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestPackageDependenciesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependenciesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestPackageDependenciesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestPackageDependenciesEnumeratorVtbl; + + interface IAppxManifestPackageDependenciesEnumerator + { + CONST_VTBL struct IAppxManifestPackageDependenciesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestPackageDependenciesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestPackageDependenciesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestPackageDependenciesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestPackageDependenciesEnumerator_GetCurrent(This,dependency) \ + ( (This)->lpVtbl -> GetCurrent(This,dependency) ) + +#define IAppxManifestPackageDependenciesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestPackageDependenciesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestPackageDependenciesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestPackageDependency_INTERFACE_DEFINED__ +#define __IAppxManifestPackageDependency_INTERFACE_DEFINED__ + +/* interface IAppxManifestPackageDependency */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestPackageDependency; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e4946b59-733e-43f0-a724-3bde4c1285a0") + IAppxManifestPackageDependency : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPublisher( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *publisher) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMinVersion( + /* [retval][out] */ __RPC__out UINT64 *minVersion) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestPackageDependencyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestPackageDependency * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestPackageDependency * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestPackageDependency * This); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependency, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxManifestPackageDependency * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependency, GetPublisher) + HRESULT ( STDMETHODCALLTYPE *GetPublisher )( + __RPC__in IAppxManifestPackageDependency * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *publisher); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependency, GetMinVersion) + HRESULT ( STDMETHODCALLTYPE *GetMinVersion )( + __RPC__in IAppxManifestPackageDependency * This, + /* [retval][out] */ __RPC__out UINT64 *minVersion); + + END_INTERFACE + } IAppxManifestPackageDependencyVtbl; + + interface IAppxManifestPackageDependency + { + CONST_VTBL struct IAppxManifestPackageDependencyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestPackageDependency_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestPackageDependency_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestPackageDependency_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestPackageDependency_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxManifestPackageDependency_GetPublisher(This,publisher) \ + ( (This)->lpVtbl -> GetPublisher(This,publisher) ) + +#define IAppxManifestPackageDependency_GetMinVersion(This,minVersion) \ + ( (This)->lpVtbl -> GetMinVersion(This,minVersion) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestPackageDependency_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestPackageDependency2_INTERFACE_DEFINED__ +#define __IAppxManifestPackageDependency2_INTERFACE_DEFINED__ + +/* interface IAppxManifestPackageDependency2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestPackageDependency2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DDA0B713-F3FF-49D3-898A-2786780C5D98") + IAppxManifestPackageDependency2 : public IAppxManifestPackageDependency + { + public: + virtual HRESULT STDMETHODCALLTYPE GetMaxMajorVersionTested( + /* [retval][out] */ __RPC__out UINT16 *maxMajorVersionTested) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestPackageDependency2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestPackageDependency2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestPackageDependency2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestPackageDependency2 * This); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependency, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxManifestPackageDependency2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *name); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependency, GetPublisher) + HRESULT ( STDMETHODCALLTYPE *GetPublisher )( + __RPC__in IAppxManifestPackageDependency2 * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *publisher); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependency, GetMinVersion) + HRESULT ( STDMETHODCALLTYPE *GetMinVersion )( + __RPC__in IAppxManifestPackageDependency2 * This, + /* [retval][out] */ __RPC__out UINT64 *minVersion); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependency2, GetMaxMajorVersionTested) + HRESULT ( STDMETHODCALLTYPE *GetMaxMajorVersionTested )( + __RPC__in IAppxManifestPackageDependency2 * This, + /* [retval][out] */ __RPC__out UINT16 *maxMajorVersionTested); + + END_INTERFACE + } IAppxManifestPackageDependency2Vtbl; + + interface IAppxManifestPackageDependency2 + { + CONST_VTBL struct IAppxManifestPackageDependency2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestPackageDependency2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestPackageDependency2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestPackageDependency2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestPackageDependency2_GetName(This,name) \ + ( (This)->lpVtbl -> GetName(This,name) ) + +#define IAppxManifestPackageDependency2_GetPublisher(This,publisher) \ + ( (This)->lpVtbl -> GetPublisher(This,publisher) ) + +#define IAppxManifestPackageDependency2_GetMinVersion(This,minVersion) \ + ( (This)->lpVtbl -> GetMinVersion(This,minVersion) ) + + +#define IAppxManifestPackageDependency2_GetMaxMajorVersionTested(This,maxMajorVersionTested) \ + ( (This)->lpVtbl -> GetMaxMajorVersionTested(This,maxMajorVersionTested) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestPackageDependency2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestPackageDependency3_INTERFACE_DEFINED__ +#define __IAppxManifestPackageDependency3_INTERFACE_DEFINED__ + +/* interface IAppxManifestPackageDependency3 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestPackageDependency3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1AC56374-6198-4D6B-92E4-749D5AB8A895") + IAppxManifestPackageDependency3 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetIsOptional( + /* [retval][out] */ __RPC__out BOOL *isOptional) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestPackageDependency3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestPackageDependency3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestPackageDependency3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestPackageDependency3 * This); + + DECLSPEC_XFGVIRT(IAppxManifestPackageDependency3, GetIsOptional) + HRESULT ( STDMETHODCALLTYPE *GetIsOptional )( + __RPC__in IAppxManifestPackageDependency3 * This, + /* [retval][out] */ __RPC__out BOOL *isOptional); + + END_INTERFACE + } IAppxManifestPackageDependency3Vtbl; + + interface IAppxManifestPackageDependency3 + { + CONST_VTBL struct IAppxManifestPackageDependency3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestPackageDependency3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestPackageDependency3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestPackageDependency3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestPackageDependency3_GetIsOptional(This,isOptional) \ + ( (This)->lpVtbl -> GetIsOptional(This,isOptional) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestPackageDependency3_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestResourcesEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestResourcesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestResourcesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestResourcesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("de4dfbbd-881a-48bb-858c-d6f2baeae6ed") + IAppxManifestResourcesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *resource) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestResourcesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestResourcesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestResourcesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestResourcesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestResourcesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestResourcesEnumerator * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *resource); + + DECLSPEC_XFGVIRT(IAppxManifestResourcesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestResourcesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestResourcesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestResourcesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestResourcesEnumeratorVtbl; + + interface IAppxManifestResourcesEnumerator + { + CONST_VTBL struct IAppxManifestResourcesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestResourcesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestResourcesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestResourcesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestResourcesEnumerator_GetCurrent(This,resource) \ + ( (This)->lpVtbl -> GetCurrent(This,resource) ) + +#define IAppxManifestResourcesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestResourcesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestResourcesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestDeviceCapabilitiesEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestDeviceCapabilitiesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestDeviceCapabilitiesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestDeviceCapabilitiesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30204541-427b-4a1c-bacf-655bf463a540") + IAppxManifestDeviceCapabilitiesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *deviceCapability) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestDeviceCapabilitiesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestDeviceCapabilitiesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestDeviceCapabilitiesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestDeviceCapabilitiesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestDeviceCapabilitiesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestDeviceCapabilitiesEnumerator * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *deviceCapability); + + DECLSPEC_XFGVIRT(IAppxManifestDeviceCapabilitiesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestDeviceCapabilitiesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestDeviceCapabilitiesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestDeviceCapabilitiesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestDeviceCapabilitiesEnumeratorVtbl; + + interface IAppxManifestDeviceCapabilitiesEnumerator + { + CONST_VTBL struct IAppxManifestDeviceCapabilitiesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestDeviceCapabilitiesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestDeviceCapabilitiesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestDeviceCapabilitiesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestDeviceCapabilitiesEnumerator_GetCurrent(This,deviceCapability) \ + ( (This)->lpVtbl -> GetCurrent(This,deviceCapability) ) + +#define IAppxManifestDeviceCapabilitiesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestDeviceCapabilitiesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestDeviceCapabilitiesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestCapabilitiesEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestCapabilitiesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestCapabilitiesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestCapabilitiesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("11D22258-F470-42C1-B291-8361C5437E41") + IAppxManifestCapabilitiesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *capability) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestCapabilitiesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestCapabilitiesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestCapabilitiesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestCapabilitiesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestCapabilitiesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestCapabilitiesEnumerator * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *capability); + + DECLSPEC_XFGVIRT(IAppxManifestCapabilitiesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestCapabilitiesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestCapabilitiesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestCapabilitiesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestCapabilitiesEnumeratorVtbl; + + interface IAppxManifestCapabilitiesEnumerator + { + CONST_VTBL struct IAppxManifestCapabilitiesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestCapabilitiesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestCapabilitiesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestCapabilitiesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestCapabilitiesEnumerator_GetCurrent(This,capability) \ + ( (This)->lpVtbl -> GetCurrent(This,capability) ) + +#define IAppxManifestCapabilitiesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestCapabilitiesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestCapabilitiesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestApplicationsEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestApplicationsEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestApplicationsEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestApplicationsEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9eb8a55a-f04b-4d0d-808d-686185d4847a") + IAppxManifestApplicationsEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestApplication **application) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestApplicationsEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestApplicationsEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestApplicationsEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestApplicationsEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestApplicationsEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestApplicationsEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestApplication **application); + + DECLSPEC_XFGVIRT(IAppxManifestApplicationsEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestApplicationsEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestApplicationsEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestApplicationsEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestApplicationsEnumeratorVtbl; + + interface IAppxManifestApplicationsEnumerator + { + CONST_VTBL struct IAppxManifestApplicationsEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestApplicationsEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestApplicationsEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestApplicationsEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestApplicationsEnumerator_GetCurrent(This,application) \ + ( (This)->lpVtbl -> GetCurrent(This,application) ) + +#define IAppxManifestApplicationsEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestApplicationsEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestApplicationsEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestApplication_INTERFACE_DEFINED__ +#define __IAppxManifestApplication_INTERFACE_DEFINED__ + +/* interface IAppxManifestApplication */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestApplication; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5da89bf4-3773-46be-b650-7e744863b7e8") + IAppxManifestApplication : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStringValue( + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAppUserModelId( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *appUserModelId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestApplicationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestApplication * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestApplication * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestApplication * This); + + DECLSPEC_XFGVIRT(IAppxManifestApplication, GetStringValue) + HRESULT ( STDMETHODCALLTYPE *GetStringValue )( + __RPC__in IAppxManifestApplication * This, + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(IAppxManifestApplication, GetAppUserModelId) + HRESULT ( STDMETHODCALLTYPE *GetAppUserModelId )( + __RPC__in IAppxManifestApplication * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *appUserModelId); + + END_INTERFACE + } IAppxManifestApplicationVtbl; + + interface IAppxManifestApplication + { + CONST_VTBL struct IAppxManifestApplicationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestApplication_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestApplication_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestApplication_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestApplication_GetStringValue(This,name,value) \ + ( (This)->lpVtbl -> GetStringValue(This,name,value) ) + +#define IAppxManifestApplication_GetAppUserModelId(This,appUserModelId) \ + ( (This)->lpVtbl -> GetAppUserModelId(This,appUserModelId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestApplication_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestQualifiedResourcesEnumerator_INTERFACE_DEFINED__ +#define __IAppxManifestQualifiedResourcesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxManifestQualifiedResourcesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestQualifiedResourcesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8ef6adfe-3762-4a8f-9373-2fc5d444c8d2") + IAppxManifestQualifiedResourcesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestQualifiedResource **resource) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestQualifiedResourcesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestQualifiedResourcesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestQualifiedResourcesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestQualifiedResourcesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxManifestQualifiedResourcesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxManifestQualifiedResourcesEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestQualifiedResource **resource); + + DECLSPEC_XFGVIRT(IAppxManifestQualifiedResourcesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxManifestQualifiedResourcesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxManifestQualifiedResourcesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxManifestQualifiedResourcesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxManifestQualifiedResourcesEnumeratorVtbl; + + interface IAppxManifestQualifiedResourcesEnumerator + { + CONST_VTBL struct IAppxManifestQualifiedResourcesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestQualifiedResourcesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestQualifiedResourcesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestQualifiedResourcesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestQualifiedResourcesEnumerator_GetCurrent(This,resource) \ + ( (This)->lpVtbl -> GetCurrent(This,resource) ) + +#define IAppxManifestQualifiedResourcesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxManifestQualifiedResourcesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestQualifiedResourcesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxManifestQualifiedResource_INTERFACE_DEFINED__ +#define __IAppxManifestQualifiedResource_INTERFACE_DEFINED__ + +/* interface IAppxManifestQualifiedResource */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxManifestQualifiedResource; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3b53a497-3c5c-48d1-9ea3-bb7eac8cd7d4") + IAppxManifestQualifiedResource : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetLanguage( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *language) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScale( + /* [retval][out] */ __RPC__out UINT32 *scale) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDXFeatureLevel( + /* [retval][out] */ __RPC__out DX_FEATURE_LEVEL *dxFeatureLevel) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxManifestQualifiedResourceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxManifestQualifiedResource * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxManifestQualifiedResource * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxManifestQualifiedResource * This); + + DECLSPEC_XFGVIRT(IAppxManifestQualifiedResource, GetLanguage) + HRESULT ( STDMETHODCALLTYPE *GetLanguage )( + __RPC__in IAppxManifestQualifiedResource * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *language); + + DECLSPEC_XFGVIRT(IAppxManifestQualifiedResource, GetScale) + HRESULT ( STDMETHODCALLTYPE *GetScale )( + __RPC__in IAppxManifestQualifiedResource * This, + /* [retval][out] */ __RPC__out UINT32 *scale); + + DECLSPEC_XFGVIRT(IAppxManifestQualifiedResource, GetDXFeatureLevel) + HRESULT ( STDMETHODCALLTYPE *GetDXFeatureLevel )( + __RPC__in IAppxManifestQualifiedResource * This, + /* [retval][out] */ __RPC__out DX_FEATURE_LEVEL *dxFeatureLevel); + + END_INTERFACE + } IAppxManifestQualifiedResourceVtbl; + + interface IAppxManifestQualifiedResource + { + CONST_VTBL struct IAppxManifestQualifiedResourceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxManifestQualifiedResource_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxManifestQualifiedResource_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxManifestQualifiedResource_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxManifestQualifiedResource_GetLanguage(This,language) \ + ( (This)->lpVtbl -> GetLanguage(This,language) ) + +#define IAppxManifestQualifiedResource_GetScale(This,scale) \ + ( (This)->lpVtbl -> GetScale(This,scale) ) + +#define IAppxManifestQualifiedResource_GetDXFeatureLevel(This,dxFeatureLevel) \ + ( (This)->lpVtbl -> GetDXFeatureLevel(This,dxFeatureLevel) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxManifestQualifiedResource_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleFactory_INTERFACE_DEFINED__ +#define __IAppxBundleFactory_INTERFACE_DEFINED__ + +/* interface IAppxBundleFactory */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BBA65864-965F-4A5F-855F-F074BDBF3A7B") + IAppxBundleFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateBundleWriter( + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ UINT64 bundleVersion, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleWriter **bundleWriter) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateBundleReader( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleReader **bundleReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateBundleManifestReader( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestReader **manifestReader) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleFactory * This); + + DECLSPEC_XFGVIRT(IAppxBundleFactory, CreateBundleWriter) + HRESULT ( STDMETHODCALLTYPE *CreateBundleWriter )( + __RPC__in IAppxBundleFactory * This, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ UINT64 bundleVersion, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleWriter **bundleWriter); + + DECLSPEC_XFGVIRT(IAppxBundleFactory, CreateBundleReader) + HRESULT ( STDMETHODCALLTYPE *CreateBundleReader )( + __RPC__in IAppxBundleFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleReader **bundleReader); + + DECLSPEC_XFGVIRT(IAppxBundleFactory, CreateBundleManifestReader) + HRESULT ( STDMETHODCALLTYPE *CreateBundleManifestReader )( + __RPC__in IAppxBundleFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestReader **manifestReader); + + END_INTERFACE + } IAppxBundleFactoryVtbl; + + interface IAppxBundleFactory + { + CONST_VTBL struct IAppxBundleFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleFactory_CreateBundleWriter(This,outputStream,bundleVersion,bundleWriter) \ + ( (This)->lpVtbl -> CreateBundleWriter(This,outputStream,bundleVersion,bundleWriter) ) + +#define IAppxBundleFactory_CreateBundleReader(This,inputStream,bundleReader) \ + ( (This)->lpVtbl -> CreateBundleReader(This,inputStream,bundleReader) ) + +#define IAppxBundleFactory_CreateBundleManifestReader(This,inputStream,manifestReader) \ + ( (This)->lpVtbl -> CreateBundleManifestReader(This,inputStream,manifestReader) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleFactory_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleFactory2_INTERFACE_DEFINED__ +#define __IAppxBundleFactory2_INTERFACE_DEFINED__ + +/* interface IAppxBundleFactory2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleFactory2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7325b83d-0185-42c4-82ac-be34ab1a2a8a") + IAppxBundleFactory2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateBundleReader2( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleReader **bundleReader) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleFactory2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleFactory2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleFactory2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleFactory2 * This); + + DECLSPEC_XFGVIRT(IAppxBundleFactory2, CreateBundleReader2) + HRESULT ( STDMETHODCALLTYPE *CreateBundleReader2 )( + __RPC__in IAppxBundleFactory2 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleReader **bundleReader); + + END_INTERFACE + } IAppxBundleFactory2Vtbl; + + interface IAppxBundleFactory2 + { + CONST_VTBL struct IAppxBundleFactory2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleFactory2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleFactory2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleFactory2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleFactory2_CreateBundleReader2(This,inputStream,expectedDigest,bundleReader) \ + ( (This)->lpVtbl -> CreateBundleReader2(This,inputStream,expectedDigest,bundleReader) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleFactory2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleFactory3_INTERFACE_DEFINED__ +#define __IAppxBundleFactory3_INTERFACE_DEFINED__ + +/* interface IAppxBundleFactory3 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleFactory3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D11EA6B6-3909-4376-B7C4-10D50F5CF3AE") + IAppxBundleFactory3 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateBundleReaderFromSourceUri( + /* [in] */ __RPC__in LPCWSTR uri, + /* [string][unique][in] */ __RPC__in_opt_string LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleReader **bundleReader) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleFactory3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleFactory3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleFactory3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleFactory3 * This); + + DECLSPEC_XFGVIRT(IAppxBundleFactory3, CreateBundleReaderFromSourceUri) + HRESULT ( STDMETHODCALLTYPE *CreateBundleReaderFromSourceUri )( + __RPC__in IAppxBundleFactory3 * This, + /* [in] */ __RPC__in LPCWSTR uri, + /* [string][unique][in] */ __RPC__in_opt_string LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleReader **bundleReader); + + END_INTERFACE + } IAppxBundleFactory3Vtbl; + + interface IAppxBundleFactory3 + { + CONST_VTBL struct IAppxBundleFactory3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleFactory3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleFactory3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleFactory3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleFactory3_CreateBundleReaderFromSourceUri(This,uri,expectedDigest,bundleReader) \ + ( (This)->lpVtbl -> CreateBundleReaderFromSourceUri(This,uri,expectedDigest,bundleReader) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleFactory3_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleWriter_INTERFACE_DEFINED__ +#define __IAppxBundleWriter_INTERFACE_DEFINED__ + +/* interface IAppxBundleWriter */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleWriter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EC446FE8-BFEC-4C64-AB4F-49F038F0C6D2") + IAppxBundleWriter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPayloadPackage( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *packageStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleWriterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleWriter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleWriter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleWriter * This); + + DECLSPEC_XFGVIRT(IAppxBundleWriter, AddPayloadPackage) + HRESULT ( STDMETHODCALLTYPE *AddPayloadPackage )( + __RPC__in IAppxBundleWriter * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *packageStream); + + DECLSPEC_XFGVIRT(IAppxBundleWriter, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IAppxBundleWriter * This); + + END_INTERFACE + } IAppxBundleWriterVtbl; + + interface IAppxBundleWriter + { + CONST_VTBL struct IAppxBundleWriterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleWriter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleWriter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleWriter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleWriter_AddPayloadPackage(This,fileName,packageStream) \ + ( (This)->lpVtbl -> AddPayloadPackage(This,fileName,packageStream) ) + +#define IAppxBundleWriter_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleWriter_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleWriter2_INTERFACE_DEFINED__ +#define __IAppxBundleWriter2_INTERFACE_DEFINED__ + +/* interface IAppxBundleWriter2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleWriter2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6D8FE971-01CC-49A0-B685-233851279962") + IAppxBundleWriter2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddExternalPackageReference( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleWriter2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleWriter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleWriter2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleWriter2 * This); + + DECLSPEC_XFGVIRT(IAppxBundleWriter2, AddExternalPackageReference) + HRESULT ( STDMETHODCALLTYPE *AddExternalPackageReference )( + __RPC__in IAppxBundleWriter2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream); + + END_INTERFACE + } IAppxBundleWriter2Vtbl; + + interface IAppxBundleWriter2 + { + CONST_VTBL struct IAppxBundleWriter2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleWriter2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleWriter2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleWriter2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleWriter2_AddExternalPackageReference(This,fileName,inputStream) \ + ( (This)->lpVtbl -> AddExternalPackageReference(This,fileName,inputStream) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleWriter2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleWriter3_INTERFACE_DEFINED__ +#define __IAppxBundleWriter3_INTERFACE_DEFINED__ + +/* interface IAppxBundleWriter3 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleWriter3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AD711152-F969-4193-82D5-9DDF2786D21A") + IAppxBundleWriter3 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPackageReference( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( + /* [string][in] */ __RPC__in_string LPCWSTR hashMethodString) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleWriter3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleWriter3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleWriter3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleWriter3 * This); + + DECLSPEC_XFGVIRT(IAppxBundleWriter3, AddPackageReference) + HRESULT ( STDMETHODCALLTYPE *AddPackageReference )( + __RPC__in IAppxBundleWriter3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream); + + DECLSPEC_XFGVIRT(IAppxBundleWriter3, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IAppxBundleWriter3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR hashMethodString); + + END_INTERFACE + } IAppxBundleWriter3Vtbl; + + interface IAppxBundleWriter3 + { + CONST_VTBL struct IAppxBundleWriter3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleWriter3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleWriter3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleWriter3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleWriter3_AddPackageReference(This,fileName,inputStream) \ + ( (This)->lpVtbl -> AddPackageReference(This,fileName,inputStream) ) + +#define IAppxBundleWriter3_Close(This,hashMethodString) \ + ( (This)->lpVtbl -> Close(This,hashMethodString) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleWriter3_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleWriter4_INTERFACE_DEFINED__ +#define __IAppxBundleWriter4_INTERFACE_DEFINED__ + +/* interface IAppxBundleWriter4 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleWriter4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9CD9D523-5009-4C01-9882-DC029FBD47A3") + IAppxBundleWriter4 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPayloadPackage( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *packageStream, + /* [in] */ BOOL isDefaultApplicablePackage) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPackageReference( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ BOOL isDefaultApplicablePackage) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddExternalPackageReference( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ BOOL isDefaultApplicablePackage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleWriter4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleWriter4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleWriter4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleWriter4 * This); + + DECLSPEC_XFGVIRT(IAppxBundleWriter4, AddPayloadPackage) + HRESULT ( STDMETHODCALLTYPE *AddPayloadPackage )( + __RPC__in IAppxBundleWriter4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *packageStream, + /* [in] */ BOOL isDefaultApplicablePackage); + + DECLSPEC_XFGVIRT(IAppxBundleWriter4, AddPackageReference) + HRESULT ( STDMETHODCALLTYPE *AddPackageReference )( + __RPC__in IAppxBundleWriter4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ BOOL isDefaultApplicablePackage); + + DECLSPEC_XFGVIRT(IAppxBundleWriter4, AddExternalPackageReference) + HRESULT ( STDMETHODCALLTYPE *AddExternalPackageReference )( + __RPC__in IAppxBundleWriter4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ BOOL isDefaultApplicablePackage); + + END_INTERFACE + } IAppxBundleWriter4Vtbl; + + interface IAppxBundleWriter4 + { + CONST_VTBL struct IAppxBundleWriter4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleWriter4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleWriter4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleWriter4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleWriter4_AddPayloadPackage(This,fileName,packageStream,isDefaultApplicablePackage) \ + ( (This)->lpVtbl -> AddPayloadPackage(This,fileName,packageStream,isDefaultApplicablePackage) ) + +#define IAppxBundleWriter4_AddPackageReference(This,fileName,inputStream,isDefaultApplicablePackage) \ + ( (This)->lpVtbl -> AddPackageReference(This,fileName,inputStream,isDefaultApplicablePackage) ) + +#define IAppxBundleWriter4_AddExternalPackageReference(This,fileName,inputStream,isDefaultApplicablePackage) \ + ( (This)->lpVtbl -> AddExternalPackageReference(This,fileName,inputStream,isDefaultApplicablePackage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleWriter4_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleReader_INTERFACE_DEFINED__ +#define __IAppxBundleReader_INTERFACE_DEFINED__ + +/* interface IAppxBundleReader */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleReader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DD75B8C0-BA76-43B0-AE0F-68656A1DC5C8") + IAppxBundleReader : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFootprintFile( + /* [in] */ APPX_BUNDLE_FOOTPRINT_FILE_TYPE fileType, + /* [retval][out] */ __RPC__deref_out_opt IAppxFile **footprintFile) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBlockMap( + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapReader **blockMapReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetManifest( + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestReader **manifestReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPayloadPackages( + /* [retval][out] */ __RPC__deref_out_opt IAppxFilesEnumerator **payloadPackages) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPayloadPackage( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [retval][out] */ __RPC__deref_out_opt IAppxFile **payloadPackage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleReaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleReader * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleReader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleReader * This); + + DECLSPEC_XFGVIRT(IAppxBundleReader, GetFootprintFile) + HRESULT ( STDMETHODCALLTYPE *GetFootprintFile )( + __RPC__in IAppxBundleReader * This, + /* [in] */ APPX_BUNDLE_FOOTPRINT_FILE_TYPE fileType, + /* [retval][out] */ __RPC__deref_out_opt IAppxFile **footprintFile); + + DECLSPEC_XFGVIRT(IAppxBundleReader, GetBlockMap) + HRESULT ( STDMETHODCALLTYPE *GetBlockMap )( + __RPC__in IAppxBundleReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBlockMapReader **blockMapReader); + + DECLSPEC_XFGVIRT(IAppxBundleReader, GetManifest) + HRESULT ( STDMETHODCALLTYPE *GetManifest )( + __RPC__in IAppxBundleReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestReader **manifestReader); + + DECLSPEC_XFGVIRT(IAppxBundleReader, GetPayloadPackages) + HRESULT ( STDMETHODCALLTYPE *GetPayloadPackages )( + __RPC__in IAppxBundleReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxFilesEnumerator **payloadPackages); + + DECLSPEC_XFGVIRT(IAppxBundleReader, GetPayloadPackage) + HRESULT ( STDMETHODCALLTYPE *GetPayloadPackage )( + __RPC__in IAppxBundleReader * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [retval][out] */ __RPC__deref_out_opt IAppxFile **payloadPackage); + + END_INTERFACE + } IAppxBundleReaderVtbl; + + interface IAppxBundleReader + { + CONST_VTBL struct IAppxBundleReaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleReader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleReader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleReader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleReader_GetFootprintFile(This,fileType,footprintFile) \ + ( (This)->lpVtbl -> GetFootprintFile(This,fileType,footprintFile) ) + +#define IAppxBundleReader_GetBlockMap(This,blockMapReader) \ + ( (This)->lpVtbl -> GetBlockMap(This,blockMapReader) ) + +#define IAppxBundleReader_GetManifest(This,manifestReader) \ + ( (This)->lpVtbl -> GetManifest(This,manifestReader) ) + +#define IAppxBundleReader_GetPayloadPackages(This,payloadPackages) \ + ( (This)->lpVtbl -> GetPayloadPackages(This,payloadPackages) ) + +#define IAppxBundleReader_GetPayloadPackage(This,fileName,payloadPackage) \ + ( (This)->lpVtbl -> GetPayloadPackage(This,fileName,payloadPackage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleReader_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleReader2_INTERFACE_DEFINED__ +#define __IAppxBundleReader2_INTERFACE_DEFINED__ + +/* interface IAppxBundleReader2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleReader2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("98262195-D63A-4C10-B4CF-DD72E061BA87") + IAppxBundleReader2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPayloadPackageReader( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **payloadPackageReader) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleReader2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleReader2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleReader2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleReader2 * This); + + DECLSPEC_XFGVIRT(IAppxBundleReader2, GetPayloadPackageReader) + HRESULT ( STDMETHODCALLTYPE *GetPayloadPackageReader )( + __RPC__in IAppxBundleReader2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **payloadPackageReader); + + END_INTERFACE + } IAppxBundleReader2Vtbl; + + interface IAppxBundleReader2 + { + CONST_VTBL struct IAppxBundleReader2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleReader2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleReader2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleReader2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleReader2_GetPayloadPackageReader(This,fileName,payloadPackageReader) \ + ( (This)->lpVtbl -> GetPayloadPackageReader(This,fileName,payloadPackageReader) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleReader2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleManifestReader_INTERFACE_DEFINED__ +#define __IAppxBundleManifestReader_INTERFACE_DEFINED__ + +/* interface IAppxBundleManifestReader */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleManifestReader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CF0EBBC1-CC99-4106-91EB-E67462E04FB0") + IAppxBundleManifestReader : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPackageId( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPackageInfoItems( + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestPackageInfoEnumerator **packageInfoItems) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStream( + /* [retval][out] */ __RPC__deref_out_opt IStream **manifestStream) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleManifestReaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleManifestReader * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleManifestReader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleManifestReader * This); + + DECLSPEC_XFGVIRT(IAppxBundleManifestReader, GetPackageId) + HRESULT ( STDMETHODCALLTYPE *GetPackageId )( + __RPC__in IAppxBundleManifestReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId); + + DECLSPEC_XFGVIRT(IAppxBundleManifestReader, GetPackageInfoItems) + HRESULT ( STDMETHODCALLTYPE *GetPackageInfoItems )( + __RPC__in IAppxBundleManifestReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestPackageInfoEnumerator **packageInfoItems); + + DECLSPEC_XFGVIRT(IAppxBundleManifestReader, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + __RPC__in IAppxBundleManifestReader * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **manifestStream); + + END_INTERFACE + } IAppxBundleManifestReaderVtbl; + + interface IAppxBundleManifestReader + { + CONST_VTBL struct IAppxBundleManifestReaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleManifestReader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleManifestReader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleManifestReader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleManifestReader_GetPackageId(This,packageId) \ + ( (This)->lpVtbl -> GetPackageId(This,packageId) ) + +#define IAppxBundleManifestReader_GetPackageInfoItems(This,packageInfoItems) \ + ( (This)->lpVtbl -> GetPackageInfoItems(This,packageInfoItems) ) + +#define IAppxBundleManifestReader_GetStream(This,manifestStream) \ + ( (This)->lpVtbl -> GetStream(This,manifestStream) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleManifestReader_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleManifestReader2_INTERFACE_DEFINED__ +#define __IAppxBundleManifestReader2_INTERFACE_DEFINED__ + +/* interface IAppxBundleManifestReader2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleManifestReader2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5517DF70-033F-4AF2-8213-87D766805C02") + IAppxBundleManifestReader2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetOptionalBundles( + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestOptionalBundleInfoEnumerator **optionalBundles) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleManifestReader2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleManifestReader2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleManifestReader2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleManifestReader2 * This); + + DECLSPEC_XFGVIRT(IAppxBundleManifestReader2, GetOptionalBundles) + HRESULT ( STDMETHODCALLTYPE *GetOptionalBundles )( + __RPC__in IAppxBundleManifestReader2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestOptionalBundleInfoEnumerator **optionalBundles); + + END_INTERFACE + } IAppxBundleManifestReader2Vtbl; + + interface IAppxBundleManifestReader2 + { + CONST_VTBL struct IAppxBundleManifestReader2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleManifestReader2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleManifestReader2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleManifestReader2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleManifestReader2_GetOptionalBundles(This,optionalBundles) \ + ( (This)->lpVtbl -> GetOptionalBundles(This,optionalBundles) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleManifestReader2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleManifestPackageInfoEnumerator_INTERFACE_DEFINED__ +#define __IAppxBundleManifestPackageInfoEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxBundleManifestPackageInfoEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleManifestPackageInfoEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F9B856EE-49A6-4E19-B2B0-6A2406D63A32") + IAppxBundleManifestPackageInfoEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestPackageInfo **packageInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleManifestPackageInfoEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleManifestPackageInfoEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleManifestPackageInfoEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleManifestPackageInfoEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfoEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxBundleManifestPackageInfoEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestPackageInfo **packageInfo); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfoEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxBundleManifestPackageInfoEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfoEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxBundleManifestPackageInfoEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxBundleManifestPackageInfoEnumeratorVtbl; + + interface IAppxBundleManifestPackageInfoEnumerator + { + CONST_VTBL struct IAppxBundleManifestPackageInfoEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleManifestPackageInfoEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleManifestPackageInfoEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleManifestPackageInfoEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleManifestPackageInfoEnumerator_GetCurrent(This,packageInfo) \ + ( (This)->lpVtbl -> GetCurrent(This,packageInfo) ) + +#define IAppxBundleManifestPackageInfoEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxBundleManifestPackageInfoEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleManifestPackageInfoEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleManifestPackageInfo_INTERFACE_DEFINED__ +#define __IAppxBundleManifestPackageInfo_INTERFACE_DEFINED__ + +/* interface IAppxBundleManifestPackageInfo */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleManifestPackageInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("54CD06C1-268F-40BB-8ED2-757A9EBAEC8D") + IAppxBundleManifestPackageInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPackageType( + /* [retval][out] */ __RPC__out APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE *packageType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPackageId( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *fileName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOffset( + /* [retval][out] */ __RPC__out UINT64 *offset) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSize( + /* [retval][out] */ __RPC__out UINT64 *size) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetResources( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestQualifiedResourcesEnumerator **resources) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleManifestPackageInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleManifestPackageInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleManifestPackageInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleManifestPackageInfo * This); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo, GetPackageType) + HRESULT ( STDMETHODCALLTYPE *GetPackageType )( + __RPC__in IAppxBundleManifestPackageInfo * This, + /* [retval][out] */ __RPC__out APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE *packageType); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo, GetPackageId) + HRESULT ( STDMETHODCALLTYPE *GetPackageId )( + __RPC__in IAppxBundleManifestPackageInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo, GetFileName) + HRESULT ( STDMETHODCALLTYPE *GetFileName )( + __RPC__in IAppxBundleManifestPackageInfo * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *fileName); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo, GetOffset) + HRESULT ( STDMETHODCALLTYPE *GetOffset )( + __RPC__in IAppxBundleManifestPackageInfo * This, + /* [retval][out] */ __RPC__out UINT64 *offset); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo, GetSize) + HRESULT ( STDMETHODCALLTYPE *GetSize )( + __RPC__in IAppxBundleManifestPackageInfo * This, + /* [retval][out] */ __RPC__out UINT64 *size); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo, GetResources) + HRESULT ( STDMETHODCALLTYPE *GetResources )( + __RPC__in IAppxBundleManifestPackageInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestQualifiedResourcesEnumerator **resources); + + END_INTERFACE + } IAppxBundleManifestPackageInfoVtbl; + + interface IAppxBundleManifestPackageInfo + { + CONST_VTBL struct IAppxBundleManifestPackageInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleManifestPackageInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleManifestPackageInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleManifestPackageInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleManifestPackageInfo_GetPackageType(This,packageType) \ + ( (This)->lpVtbl -> GetPackageType(This,packageType) ) + +#define IAppxBundleManifestPackageInfo_GetPackageId(This,packageId) \ + ( (This)->lpVtbl -> GetPackageId(This,packageId) ) + +#define IAppxBundleManifestPackageInfo_GetFileName(This,fileName) \ + ( (This)->lpVtbl -> GetFileName(This,fileName) ) + +#define IAppxBundleManifestPackageInfo_GetOffset(This,offset) \ + ( (This)->lpVtbl -> GetOffset(This,offset) ) + +#define IAppxBundleManifestPackageInfo_GetSize(This,size) \ + ( (This)->lpVtbl -> GetSize(This,size) ) + +#define IAppxBundleManifestPackageInfo_GetResources(This,resources) \ + ( (This)->lpVtbl -> GetResources(This,resources) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleManifestPackageInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleManifestPackageInfo2_INTERFACE_DEFINED__ +#define __IAppxBundleManifestPackageInfo2_INTERFACE_DEFINED__ + +/* interface IAppxBundleManifestPackageInfo2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleManifestPackageInfo2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("44C2ACBC-B2CF-4CCB-BBDB-9C6DA8C3BC9E") + IAppxBundleManifestPackageInfo2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetIsPackageReference( + /* [retval][out] */ __RPC__out BOOL *isPackageReference) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIsNonQualifiedResourcePackage( + /* [retval][out] */ __RPC__out BOOL *isNonQualifiedResourcePackage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIsDefaultApplicablePackage( + /* [retval][out] */ __RPC__out BOOL *isDefaultApplicablePackage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleManifestPackageInfo2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleManifestPackageInfo2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleManifestPackageInfo2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleManifestPackageInfo2 * This); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo2, GetIsPackageReference) + HRESULT ( STDMETHODCALLTYPE *GetIsPackageReference )( + __RPC__in IAppxBundleManifestPackageInfo2 * This, + /* [retval][out] */ __RPC__out BOOL *isPackageReference); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo2, GetIsNonQualifiedResourcePackage) + HRESULT ( STDMETHODCALLTYPE *GetIsNonQualifiedResourcePackage )( + __RPC__in IAppxBundleManifestPackageInfo2 * This, + /* [retval][out] */ __RPC__out BOOL *isNonQualifiedResourcePackage); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo2, GetIsDefaultApplicablePackage) + HRESULT ( STDMETHODCALLTYPE *GetIsDefaultApplicablePackage )( + __RPC__in IAppxBundleManifestPackageInfo2 * This, + /* [retval][out] */ __RPC__out BOOL *isDefaultApplicablePackage); + + END_INTERFACE + } IAppxBundleManifestPackageInfo2Vtbl; + + interface IAppxBundleManifestPackageInfo2 + { + CONST_VTBL struct IAppxBundleManifestPackageInfo2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleManifestPackageInfo2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleManifestPackageInfo2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleManifestPackageInfo2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleManifestPackageInfo2_GetIsPackageReference(This,isPackageReference) \ + ( (This)->lpVtbl -> GetIsPackageReference(This,isPackageReference) ) + +#define IAppxBundleManifestPackageInfo2_GetIsNonQualifiedResourcePackage(This,isNonQualifiedResourcePackage) \ + ( (This)->lpVtbl -> GetIsNonQualifiedResourcePackage(This,isNonQualifiedResourcePackage) ) + +#define IAppxBundleManifestPackageInfo2_GetIsDefaultApplicablePackage(This,isDefaultApplicablePackage) \ + ( (This)->lpVtbl -> GetIsDefaultApplicablePackage(This,isDefaultApplicablePackage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleManifestPackageInfo2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleManifestPackageInfo3_INTERFACE_DEFINED__ +#define __IAppxBundleManifestPackageInfo3_INTERFACE_DEFINED__ + +/* interface IAppxBundleManifestPackageInfo3 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleManifestPackageInfo3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6BA74B98-BB74-4296-80D0-5F4256A99675") + IAppxBundleManifestPackageInfo3 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTargetDeviceFamilies( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestTargetDeviceFamiliesEnumerator **targetDeviceFamilies) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleManifestPackageInfo3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleManifestPackageInfo3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleManifestPackageInfo3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleManifestPackageInfo3 * This); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo3, GetTargetDeviceFamilies) + HRESULT ( STDMETHODCALLTYPE *GetTargetDeviceFamilies )( + __RPC__in IAppxBundleManifestPackageInfo3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestTargetDeviceFamiliesEnumerator **targetDeviceFamilies); + + END_INTERFACE + } IAppxBundleManifestPackageInfo3Vtbl; + + interface IAppxBundleManifestPackageInfo3 + { + CONST_VTBL struct IAppxBundleManifestPackageInfo3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleManifestPackageInfo3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleManifestPackageInfo3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleManifestPackageInfo3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleManifestPackageInfo3_GetTargetDeviceFamilies(This,targetDeviceFamilies) \ + ( (This)->lpVtbl -> GetTargetDeviceFamilies(This,targetDeviceFamilies) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleManifestPackageInfo3_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleManifestPackageInfo4_INTERFACE_DEFINED__ +#define __IAppxBundleManifestPackageInfo4_INTERFACE_DEFINED__ + +/* interface IAppxBundleManifestPackageInfo4 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleManifestPackageInfo4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5DA6F13D-A8A7-4532-857C-1393D659371D") + IAppxBundleManifestPackageInfo4 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetIsStub( + /* [retval][out] */ __RPC__out BOOL *isStub) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleManifestPackageInfo4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleManifestPackageInfo4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleManifestPackageInfo4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleManifestPackageInfo4 * This); + + DECLSPEC_XFGVIRT(IAppxBundleManifestPackageInfo4, GetIsStub) + HRESULT ( STDMETHODCALLTYPE *GetIsStub )( + __RPC__in IAppxBundleManifestPackageInfo4 * This, + /* [retval][out] */ __RPC__out BOOL *isStub); + + END_INTERFACE + } IAppxBundleManifestPackageInfo4Vtbl; + + interface IAppxBundleManifestPackageInfo4 + { + CONST_VTBL struct IAppxBundleManifestPackageInfo4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleManifestPackageInfo4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleManifestPackageInfo4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleManifestPackageInfo4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleManifestPackageInfo4_GetIsStub(This,isStub) \ + ( (This)->lpVtbl -> GetIsStub(This,isStub) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleManifestPackageInfo4_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleManifestOptionalBundleInfoEnumerator_INTERFACE_DEFINED__ +#define __IAppxBundleManifestOptionalBundleInfoEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxBundleManifestOptionalBundleInfoEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleManifestOptionalBundleInfoEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9A178793-F97E-46AC-AACA-DD5BA4C177C8") + IAppxBundleManifestOptionalBundleInfoEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestOptionalBundleInfo **optionalBundle) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleManifestOptionalBundleInfoEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleManifestOptionalBundleInfoEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleManifestOptionalBundleInfoEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleManifestOptionalBundleInfoEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxBundleManifestOptionalBundleInfoEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxBundleManifestOptionalBundleInfoEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestOptionalBundleInfo **optionalBundle); + + DECLSPEC_XFGVIRT(IAppxBundleManifestOptionalBundleInfoEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxBundleManifestOptionalBundleInfoEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxBundleManifestOptionalBundleInfoEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxBundleManifestOptionalBundleInfoEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxBundleManifestOptionalBundleInfoEnumeratorVtbl; + + interface IAppxBundleManifestOptionalBundleInfoEnumerator + { + CONST_VTBL struct IAppxBundleManifestOptionalBundleInfoEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleManifestOptionalBundleInfoEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleManifestOptionalBundleInfoEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleManifestOptionalBundleInfoEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleManifestOptionalBundleInfoEnumerator_GetCurrent(This,optionalBundle) \ + ( (This)->lpVtbl -> GetCurrent(This,optionalBundle) ) + +#define IAppxBundleManifestOptionalBundleInfoEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxBundleManifestOptionalBundleInfoEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleManifestOptionalBundleInfoEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxBundleManifestOptionalBundleInfo_INTERFACE_DEFINED__ +#define __IAppxBundleManifestOptionalBundleInfo_INTERFACE_DEFINED__ + +/* interface IAppxBundleManifestOptionalBundleInfo */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxBundleManifestOptionalBundleInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("515BF2E8-BCB0-4D69-8C48-E383147B6E12") + IAppxBundleManifestOptionalBundleInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPackageId( + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *fileName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPackageInfoItems( + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestPackageInfoEnumerator **packageInfoItems) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxBundleManifestOptionalBundleInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxBundleManifestOptionalBundleInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxBundleManifestOptionalBundleInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxBundleManifestOptionalBundleInfo * This); + + DECLSPEC_XFGVIRT(IAppxBundleManifestOptionalBundleInfo, GetPackageId) + HRESULT ( STDMETHODCALLTYPE *GetPackageId )( + __RPC__in IAppxBundleManifestOptionalBundleInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxManifestPackageId **packageId); + + DECLSPEC_XFGVIRT(IAppxBundleManifestOptionalBundleInfo, GetFileName) + HRESULT ( STDMETHODCALLTYPE *GetFileName )( + __RPC__in IAppxBundleManifestOptionalBundleInfo * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *fileName); + + DECLSPEC_XFGVIRT(IAppxBundleManifestOptionalBundleInfo, GetPackageInfoItems) + HRESULT ( STDMETHODCALLTYPE *GetPackageInfoItems )( + __RPC__in IAppxBundleManifestOptionalBundleInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleManifestPackageInfoEnumerator **packageInfoItems); + + END_INTERFACE + } IAppxBundleManifestOptionalBundleInfoVtbl; + + interface IAppxBundleManifestOptionalBundleInfo + { + CONST_VTBL struct IAppxBundleManifestOptionalBundleInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxBundleManifestOptionalBundleInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxBundleManifestOptionalBundleInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxBundleManifestOptionalBundleInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxBundleManifestOptionalBundleInfo_GetPackageId(This,packageId) \ + ( (This)->lpVtbl -> GetPackageId(This,packageId) ) + +#define IAppxBundleManifestOptionalBundleInfo_GetFileName(This,fileName) \ + ( (This)->lpVtbl -> GetFileName(This,fileName) ) + +#define IAppxBundleManifestOptionalBundleInfo_GetPackageInfoItems(This,packageInfoItems) \ + ( (This)->lpVtbl -> GetPackageInfoItems(This,packageInfoItems) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxBundleManifestOptionalBundleInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxContentGroupFilesEnumerator_INTERFACE_DEFINED__ +#define __IAppxContentGroupFilesEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxContentGroupFilesEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxContentGroupFilesEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1a09a2fd-7440-44eb-8c84-848205a6a1cc") + IAppxContentGroupFilesEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *file) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxContentGroupFilesEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxContentGroupFilesEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxContentGroupFilesEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxContentGroupFilesEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxContentGroupFilesEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxContentGroupFilesEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *file); + + DECLSPEC_XFGVIRT(IAppxContentGroupFilesEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxContentGroupFilesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxContentGroupFilesEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxContentGroupFilesEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxContentGroupFilesEnumeratorVtbl; + + interface IAppxContentGroupFilesEnumerator + { + CONST_VTBL struct IAppxContentGroupFilesEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxContentGroupFilesEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxContentGroupFilesEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxContentGroupFilesEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxContentGroupFilesEnumerator_GetCurrent(This,file) \ + ( (This)->lpVtbl -> GetCurrent(This,file) ) + +#define IAppxContentGroupFilesEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxContentGroupFilesEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxContentGroupFilesEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxContentGroup_INTERFACE_DEFINED__ +#define __IAppxContentGroup_INTERFACE_DEFINED__ + +/* interface IAppxContentGroup */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxContentGroup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("328f6468-c04f-4e3c-b6fa-6b8d27f3003a") + IAppxContentGroup : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *groupName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFiles( + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroupFilesEnumerator **enumerator) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxContentGroupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxContentGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxContentGroup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxContentGroup * This); + + DECLSPEC_XFGVIRT(IAppxContentGroup, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IAppxContentGroup * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *groupName); + + DECLSPEC_XFGVIRT(IAppxContentGroup, GetFiles) + HRESULT ( STDMETHODCALLTYPE *GetFiles )( + __RPC__in IAppxContentGroup * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroupFilesEnumerator **enumerator); + + END_INTERFACE + } IAppxContentGroupVtbl; + + interface IAppxContentGroup + { + CONST_VTBL struct IAppxContentGroupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxContentGroup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxContentGroup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxContentGroup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxContentGroup_GetName(This,groupName) \ + ( (This)->lpVtbl -> GetName(This,groupName) ) + +#define IAppxContentGroup_GetFiles(This,enumerator) \ + ( (This)->lpVtbl -> GetFiles(This,enumerator) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxContentGroup_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxContentGroupsEnumerator_INTERFACE_DEFINED__ +#define __IAppxContentGroupsEnumerator_INTERFACE_DEFINED__ + +/* interface IAppxContentGroupsEnumerator */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxContentGroupsEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3264e477-16d1-4d63-823e-7d2984696634") + IAppxContentGroupsEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroup **stream) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHasCurrent( + /* [retval][out] */ __RPC__out BOOL *hasCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveNext( + /* [retval][out] */ __RPC__out BOOL *hasNext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxContentGroupsEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxContentGroupsEnumerator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxContentGroupsEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxContentGroupsEnumerator * This); + + DECLSPEC_XFGVIRT(IAppxContentGroupsEnumerator, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IAppxContentGroupsEnumerator * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroup **stream); + + DECLSPEC_XFGVIRT(IAppxContentGroupsEnumerator, GetHasCurrent) + HRESULT ( STDMETHODCALLTYPE *GetHasCurrent )( + __RPC__in IAppxContentGroupsEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasCurrent); + + DECLSPEC_XFGVIRT(IAppxContentGroupsEnumerator, MoveNext) + HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IAppxContentGroupsEnumerator * This, + /* [retval][out] */ __RPC__out BOOL *hasNext); + + END_INTERFACE + } IAppxContentGroupsEnumeratorVtbl; + + interface IAppxContentGroupsEnumerator + { + CONST_VTBL struct IAppxContentGroupsEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxContentGroupsEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxContentGroupsEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxContentGroupsEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxContentGroupsEnumerator_GetCurrent(This,stream) \ + ( (This)->lpVtbl -> GetCurrent(This,stream) ) + +#define IAppxContentGroupsEnumerator_GetHasCurrent(This,hasCurrent) \ + ( (This)->lpVtbl -> GetHasCurrent(This,hasCurrent) ) + +#define IAppxContentGroupsEnumerator_MoveNext(This,hasNext) \ + ( (This)->lpVtbl -> MoveNext(This,hasNext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxContentGroupsEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxContentGroupMapReader_INTERFACE_DEFINED__ +#define __IAppxContentGroupMapReader_INTERFACE_DEFINED__ + +/* interface IAppxContentGroupMapReader */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxContentGroupMapReader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("418726d8-dd99-4f5d-9886-157add20de01") + IAppxContentGroupMapReader : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRequiredGroup( + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroup **requiredGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAutomaticGroups( + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroupsEnumerator **automaticGroupsEnumerator) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxContentGroupMapReaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxContentGroupMapReader * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxContentGroupMapReader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxContentGroupMapReader * This); + + DECLSPEC_XFGVIRT(IAppxContentGroupMapReader, GetRequiredGroup) + HRESULT ( STDMETHODCALLTYPE *GetRequiredGroup )( + __RPC__in IAppxContentGroupMapReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroup **requiredGroup); + + DECLSPEC_XFGVIRT(IAppxContentGroupMapReader, GetAutomaticGroups) + HRESULT ( STDMETHODCALLTYPE *GetAutomaticGroups )( + __RPC__in IAppxContentGroupMapReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroupsEnumerator **automaticGroupsEnumerator); + + END_INTERFACE + } IAppxContentGroupMapReaderVtbl; + + interface IAppxContentGroupMapReader + { + CONST_VTBL struct IAppxContentGroupMapReaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxContentGroupMapReader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxContentGroupMapReader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxContentGroupMapReader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxContentGroupMapReader_GetRequiredGroup(This,requiredGroup) \ + ( (This)->lpVtbl -> GetRequiredGroup(This,requiredGroup) ) + +#define IAppxContentGroupMapReader_GetAutomaticGroups(This,automaticGroupsEnumerator) \ + ( (This)->lpVtbl -> GetAutomaticGroups(This,automaticGroupsEnumerator) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxContentGroupMapReader_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxSourceContentGroupMapReader_INTERFACE_DEFINED__ +#define __IAppxSourceContentGroupMapReader_INTERFACE_DEFINED__ + +/* interface IAppxSourceContentGroupMapReader */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxSourceContentGroupMapReader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f329791d-540b-4a9f-bc75-3282b7d73193") + IAppxSourceContentGroupMapReader : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRequiredGroup( + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroup **requiredGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAutomaticGroups( + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroupsEnumerator **automaticGroupsEnumerator) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxSourceContentGroupMapReaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxSourceContentGroupMapReader * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxSourceContentGroupMapReader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxSourceContentGroupMapReader * This); + + DECLSPEC_XFGVIRT(IAppxSourceContentGroupMapReader, GetRequiredGroup) + HRESULT ( STDMETHODCALLTYPE *GetRequiredGroup )( + __RPC__in IAppxSourceContentGroupMapReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroup **requiredGroup); + + DECLSPEC_XFGVIRT(IAppxSourceContentGroupMapReader, GetAutomaticGroups) + HRESULT ( STDMETHODCALLTYPE *GetAutomaticGroups )( + __RPC__in IAppxSourceContentGroupMapReader * This, + /* [retval][out] */ __RPC__deref_out_opt IAppxContentGroupsEnumerator **automaticGroupsEnumerator); + + END_INTERFACE + } IAppxSourceContentGroupMapReaderVtbl; + + interface IAppxSourceContentGroupMapReader + { + CONST_VTBL struct IAppxSourceContentGroupMapReaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxSourceContentGroupMapReader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxSourceContentGroupMapReader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxSourceContentGroupMapReader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxSourceContentGroupMapReader_GetRequiredGroup(This,requiredGroup) \ + ( (This)->lpVtbl -> GetRequiredGroup(This,requiredGroup) ) + +#define IAppxSourceContentGroupMapReader_GetAutomaticGroups(This,automaticGroupsEnumerator) \ + ( (This)->lpVtbl -> GetAutomaticGroups(This,automaticGroupsEnumerator) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxSourceContentGroupMapReader_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxContentGroupMapWriter_INTERFACE_DEFINED__ +#define __IAppxContentGroupMapWriter_INTERFACE_DEFINED__ + +/* interface IAppxContentGroupMapWriter */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxContentGroupMapWriter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d07ab776-a9de-4798-8c14-3db31e687c78") + IAppxContentGroupMapWriter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddAutomaticGroup( + /* [string][in] */ __RPC__in_string LPCWSTR groupName) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddAutomaticFile( + /* [string][in] */ __RPC__in_string LPCWSTR fileName) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxContentGroupMapWriterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxContentGroupMapWriter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxContentGroupMapWriter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxContentGroupMapWriter * This); + + DECLSPEC_XFGVIRT(IAppxContentGroupMapWriter, AddAutomaticGroup) + HRESULT ( STDMETHODCALLTYPE *AddAutomaticGroup )( + __RPC__in IAppxContentGroupMapWriter * This, + /* [string][in] */ __RPC__in_string LPCWSTR groupName); + + DECLSPEC_XFGVIRT(IAppxContentGroupMapWriter, AddAutomaticFile) + HRESULT ( STDMETHODCALLTYPE *AddAutomaticFile )( + __RPC__in IAppxContentGroupMapWriter * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName); + + DECLSPEC_XFGVIRT(IAppxContentGroupMapWriter, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IAppxContentGroupMapWriter * This); + + END_INTERFACE + } IAppxContentGroupMapWriterVtbl; + + interface IAppxContentGroupMapWriter + { + CONST_VTBL struct IAppxContentGroupMapWriterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxContentGroupMapWriter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxContentGroupMapWriter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxContentGroupMapWriter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxContentGroupMapWriter_AddAutomaticGroup(This,groupName) \ + ( (This)->lpVtbl -> AddAutomaticGroup(This,groupName) ) + +#define IAppxContentGroupMapWriter_AddAutomaticFile(This,fileName) \ + ( (This)->lpVtbl -> AddAutomaticFile(This,fileName) ) + +#define IAppxContentGroupMapWriter_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxContentGroupMapWriter_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxPackagingDiagnosticEventSink_INTERFACE_DEFINED__ +#define __IAppxPackagingDiagnosticEventSink_INTERFACE_DEFINED__ + +/* interface IAppxPackagingDiagnosticEventSink */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxPackagingDiagnosticEventSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("17239D47-6ADB-45D2-80F6-F9CBC3BF059D") + IAppxPackagingDiagnosticEventSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ReportContextChange( + /* [in] */ APPX_PACKAGING_CONTEXT_CHANGE_TYPE changeType, + /* [in] */ LONG contextId, + /* [string][in] */ __RPC__in_string LPCSTR contextName, + /* [string][in] */ __RPC__in_string LPCWSTR contextMessage, + /* [string][in] */ __RPC__in_string LPCWSTR detailsMessage) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReportError( + /* [string][in] */ __RPC__in_string LPCWSTR errorMessage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxPackagingDiagnosticEventSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxPackagingDiagnosticEventSink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxPackagingDiagnosticEventSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxPackagingDiagnosticEventSink * This); + + DECLSPEC_XFGVIRT(IAppxPackagingDiagnosticEventSink, ReportContextChange) + HRESULT ( STDMETHODCALLTYPE *ReportContextChange )( + __RPC__in IAppxPackagingDiagnosticEventSink * This, + /* [in] */ APPX_PACKAGING_CONTEXT_CHANGE_TYPE changeType, + /* [in] */ LONG contextId, + /* [string][in] */ __RPC__in_string LPCSTR contextName, + /* [string][in] */ __RPC__in_string LPCWSTR contextMessage, + /* [string][in] */ __RPC__in_string LPCWSTR detailsMessage); + + DECLSPEC_XFGVIRT(IAppxPackagingDiagnosticEventSink, ReportError) + HRESULT ( STDMETHODCALLTYPE *ReportError )( + __RPC__in IAppxPackagingDiagnosticEventSink * This, + /* [string][in] */ __RPC__in_string LPCWSTR errorMessage); + + END_INTERFACE + } IAppxPackagingDiagnosticEventSinkVtbl; + + interface IAppxPackagingDiagnosticEventSink + { + CONST_VTBL struct IAppxPackagingDiagnosticEventSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxPackagingDiagnosticEventSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxPackagingDiagnosticEventSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxPackagingDiagnosticEventSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxPackagingDiagnosticEventSink_ReportContextChange(This,changeType,contextId,contextName,contextMessage,detailsMessage) \ + ( (This)->lpVtbl -> ReportContextChange(This,changeType,contextId,contextName,contextMessage,detailsMessage) ) + +#define IAppxPackagingDiagnosticEventSink_ReportError(This,errorMessage) \ + ( (This)->lpVtbl -> ReportError(This,errorMessage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxPackagingDiagnosticEventSink_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxPackagingDiagnosticEventSinkManager_INTERFACE_DEFINED__ +#define __IAppxPackagingDiagnosticEventSinkManager_INTERFACE_DEFINED__ + +/* interface IAppxPackagingDiagnosticEventSinkManager */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxPackagingDiagnosticEventSinkManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("369648FA-A7EB-4909-A15D-6954A078F18A") + IAppxPackagingDiagnosticEventSinkManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetSinkForProcess( + /* [in] */ __RPC__in_opt IAppxPackagingDiagnosticEventSink *sink) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxPackagingDiagnosticEventSinkManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxPackagingDiagnosticEventSinkManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxPackagingDiagnosticEventSinkManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxPackagingDiagnosticEventSinkManager * This); + + DECLSPEC_XFGVIRT(IAppxPackagingDiagnosticEventSinkManager, SetSinkForProcess) + HRESULT ( STDMETHODCALLTYPE *SetSinkForProcess )( + __RPC__in IAppxPackagingDiagnosticEventSinkManager * This, + /* [in] */ __RPC__in_opt IAppxPackagingDiagnosticEventSink *sink); + + END_INTERFACE + } IAppxPackagingDiagnosticEventSinkManagerVtbl; + + interface IAppxPackagingDiagnosticEventSinkManager + { + CONST_VTBL struct IAppxPackagingDiagnosticEventSinkManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxPackagingDiagnosticEventSinkManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxPackagingDiagnosticEventSinkManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxPackagingDiagnosticEventSinkManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxPackagingDiagnosticEventSinkManager_SetSinkForProcess(This,sink) \ + ( (This)->lpVtbl -> SetSinkForProcess(This,sink) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxPackagingDiagnosticEventSinkManager_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxAppInstallerReader_INTERFACE_DEFINED__ +#define __IAppxAppInstallerReader_INTERFACE_DEFINED__ + +/* interface IAppxAppInstallerReader */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxAppInstallerReader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f35bc38c-1d2f-43db-a1f4-586430d1fed2") + IAppxAppInstallerReader : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetXmlDom( + /* [retval][out] */ __RPC__deref_out_opt IXMLDOMDocument **dom) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxAppInstallerReaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxAppInstallerReader * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxAppInstallerReader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxAppInstallerReader * This); + + DECLSPEC_XFGVIRT(IAppxAppInstallerReader, GetXmlDom) + HRESULT ( STDMETHODCALLTYPE *GetXmlDom )( + __RPC__in IAppxAppInstallerReader * This, + /* [retval][out] */ __RPC__deref_out_opt IXMLDOMDocument **dom); + + END_INTERFACE + } IAppxAppInstallerReaderVtbl; + + interface IAppxAppInstallerReader + { + CONST_VTBL struct IAppxAppInstallerReaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxAppInstallerReader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxAppInstallerReader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxAppInstallerReader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxAppInstallerReader_GetXmlDom(This,dom) \ + ( (This)->lpVtbl -> GetXmlDom(This,dom) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxAppInstallerReader_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxDigestProvider_INTERFACE_DEFINED__ +#define __IAppxDigestProvider_INTERFACE_DEFINED__ + +/* interface IAppxDigestProvider */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxDigestProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9fe2702b-7640-4659-8e6c-349e43c4cdbd") + IAppxDigestProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDigest( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *digest) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxDigestProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxDigestProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxDigestProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxDigestProvider * This); + + DECLSPEC_XFGVIRT(IAppxDigestProvider, GetDigest) + HRESULT ( STDMETHODCALLTYPE *GetDigest )( + __RPC__in IAppxDigestProvider * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *digest); + + END_INTERFACE + } IAppxDigestProviderVtbl; + + interface IAppxDigestProvider + { + CONST_VTBL struct IAppxDigestProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxDigestProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxDigestProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxDigestProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxDigestProvider_GetDigest(This,digest) \ + ( (This)->lpVtbl -> GetDigest(This,digest) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxDigestProvider_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_appxpackaging_0000_0080 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef struct APPX_ENCRYPTED_PACKAGE_SETTINGS + { + UINT32 keyLength; + LPCWSTR encryptionAlgorithm; + BOOL useDiffusion; + IUri *blockMapHashAlgorithm; + } APPX_ENCRYPTED_PACKAGE_SETTINGS; + +typedef /* [v1_enum] */ +enum APPX_ENCRYPTED_PACKAGE_OPTIONS + { + APPX_ENCRYPTED_PACKAGE_OPTION_NONE = 0, + APPX_ENCRYPTED_PACKAGE_OPTION_DIFFUSION = 0x1, + APPX_ENCRYPTED_PACKAGE_OPTION_PAGE_HASHING = 0x2 + } APPX_ENCRYPTED_PACKAGE_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(APPX_ENCRYPTED_PACKAGE_OPTIONS); +typedef struct APPX_ENCRYPTED_PACKAGE_SETTINGS2 + { + UINT32 keyLength; + LPCWSTR encryptionAlgorithm; + IUri *blockMapHashAlgorithm; + DWORD options; + } APPX_ENCRYPTED_PACKAGE_SETTINGS2; + +typedef struct APPX_KEY_INFO + { + UINT32 keyLength; + UINT32 keyIdLength; + /* [size_is] */ BYTE *key; + /* [size_is] */ BYTE *keyId; + } APPX_KEY_INFO; + +typedef struct APPX_ENCRYPTED_EXEMPTIONS + { + UINT32 count; + /* [unique][size_is] */ LPCWSTR *plainTextFiles; + } APPX_ENCRYPTED_EXEMPTIONS; + + + +extern RPC_IF_HANDLE __MIDL_itf_appxpackaging_0000_0080_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_appxpackaging_0000_0080_v0_0_s_ifspec; + +#ifndef __IAppxEncryptionFactory_INTERFACE_DEFINED__ +#define __IAppxEncryptionFactory_INTERFACE_DEFINED__ + +/* interface IAppxEncryptionFactory */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxEncryptionFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("80E8E04D-8C88-44AE-A011-7CADF6FB2E72") + IAppxEncryptionFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EncryptPackage( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles) = 0; + + virtual HRESULT STDMETHODCALLTYPE DecryptPackage( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateEncryptedPackageWriter( + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in_opt IStream *manifestStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [retval][out] */ __RPC__deref_out_opt IAppxEncryptedPackageWriter **packageWriter) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateEncryptedPackageReader( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **packageReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE EncryptBundle( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles) = 0; + + virtual HRESULT STDMETHODCALLTYPE DecryptBundle( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateEncryptedBundleWriter( + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ UINT64 bundleVersion, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [retval][out] */ __RPC__deref_out_opt IAppxEncryptedBundleWriter **bundleWriter) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateEncryptedBundleReader( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleReader **bundleReader) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxEncryptionFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxEncryptionFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxEncryptionFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxEncryptionFactory * This); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory, EncryptPackage) + HRESULT ( STDMETHODCALLTYPE *EncryptPackage )( + __RPC__in IAppxEncryptionFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory, DecryptPackage) + HRESULT ( STDMETHODCALLTYPE *DecryptPackage )( + __RPC__in IAppxEncryptionFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory, CreateEncryptedPackageWriter) + HRESULT ( STDMETHODCALLTYPE *CreateEncryptedPackageWriter )( + __RPC__in IAppxEncryptionFactory * This, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in_opt IStream *manifestStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [retval][out] */ __RPC__deref_out_opt IAppxEncryptedPackageWriter **packageWriter); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory, CreateEncryptedPackageReader) + HRESULT ( STDMETHODCALLTYPE *CreateEncryptedPackageReader )( + __RPC__in IAppxEncryptionFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **packageReader); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory, EncryptBundle) + HRESULT ( STDMETHODCALLTYPE *EncryptBundle )( + __RPC__in IAppxEncryptionFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory, DecryptBundle) + HRESULT ( STDMETHODCALLTYPE *DecryptBundle )( + __RPC__in IAppxEncryptionFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory, CreateEncryptedBundleWriter) + HRESULT ( STDMETHODCALLTYPE *CreateEncryptedBundleWriter )( + __RPC__in IAppxEncryptionFactory * This, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ UINT64 bundleVersion, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [retval][out] */ __RPC__deref_out_opt IAppxEncryptedBundleWriter **bundleWriter); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory, CreateEncryptedBundleReader) + HRESULT ( STDMETHODCALLTYPE *CreateEncryptedBundleReader )( + __RPC__in IAppxEncryptionFactory * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleReader **bundleReader); + + END_INTERFACE + } IAppxEncryptionFactoryVtbl; + + interface IAppxEncryptionFactory + { + CONST_VTBL struct IAppxEncryptionFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxEncryptionFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxEncryptionFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxEncryptionFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxEncryptionFactory_EncryptPackage(This,inputStream,outputStream,settings,keyInfo,exemptedFiles) \ + ( (This)->lpVtbl -> EncryptPackage(This,inputStream,outputStream,settings,keyInfo,exemptedFiles) ) + +#define IAppxEncryptionFactory_DecryptPackage(This,inputStream,outputStream,keyInfo) \ + ( (This)->lpVtbl -> DecryptPackage(This,inputStream,outputStream,keyInfo) ) + +#define IAppxEncryptionFactory_CreateEncryptedPackageWriter(This,outputStream,manifestStream,settings,keyInfo,exemptedFiles,packageWriter) \ + ( (This)->lpVtbl -> CreateEncryptedPackageWriter(This,outputStream,manifestStream,settings,keyInfo,exemptedFiles,packageWriter) ) + +#define IAppxEncryptionFactory_CreateEncryptedPackageReader(This,inputStream,keyInfo,packageReader) \ + ( (This)->lpVtbl -> CreateEncryptedPackageReader(This,inputStream,keyInfo,packageReader) ) + +#define IAppxEncryptionFactory_EncryptBundle(This,inputStream,outputStream,settings,keyInfo,exemptedFiles) \ + ( (This)->lpVtbl -> EncryptBundle(This,inputStream,outputStream,settings,keyInfo,exemptedFiles) ) + +#define IAppxEncryptionFactory_DecryptBundle(This,inputStream,outputStream,keyInfo) \ + ( (This)->lpVtbl -> DecryptBundle(This,inputStream,outputStream,keyInfo) ) + +#define IAppxEncryptionFactory_CreateEncryptedBundleWriter(This,outputStream,bundleVersion,settings,keyInfo,exemptedFiles,bundleWriter) \ + ( (This)->lpVtbl -> CreateEncryptedBundleWriter(This,outputStream,bundleVersion,settings,keyInfo,exemptedFiles,bundleWriter) ) + +#define IAppxEncryptionFactory_CreateEncryptedBundleReader(This,inputStream,keyInfo,bundleReader) \ + ( (This)->lpVtbl -> CreateEncryptedBundleReader(This,inputStream,keyInfo,bundleReader) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxEncryptionFactory_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxEncryptionFactory2_INTERFACE_DEFINED__ +#define __IAppxEncryptionFactory2_INTERFACE_DEFINED__ + +/* interface IAppxEncryptionFactory2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxEncryptionFactory2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c1b11eee-c4ba-4ab2-a55d-d015fe8ff64f") + IAppxEncryptionFactory2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateEncryptedPackageWriter( + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in_opt IStream *manifestStream, + /* [in] */ __RPC__in_opt IStream *contentGroupMapStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [retval][out] */ __RPC__deref_out_opt IAppxEncryptedPackageWriter **packageWriter) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxEncryptionFactory2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxEncryptionFactory2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxEncryptionFactory2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxEncryptionFactory2 * This); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory2, CreateEncryptedPackageWriter) + HRESULT ( STDMETHODCALLTYPE *CreateEncryptedPackageWriter )( + __RPC__in IAppxEncryptionFactory2 * This, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in_opt IStream *manifestStream, + /* [in] */ __RPC__in_opt IStream *contentGroupMapStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [retval][out] */ __RPC__deref_out_opt IAppxEncryptedPackageWriter **packageWriter); + + END_INTERFACE + } IAppxEncryptionFactory2Vtbl; + + interface IAppxEncryptionFactory2 + { + CONST_VTBL struct IAppxEncryptionFactory2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxEncryptionFactory2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxEncryptionFactory2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxEncryptionFactory2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxEncryptionFactory2_CreateEncryptedPackageWriter(This,outputStream,manifestStream,contentGroupMapStream,settings,keyInfo,exemptedFiles,packageWriter) \ + ( (This)->lpVtbl -> CreateEncryptedPackageWriter(This,outputStream,manifestStream,contentGroupMapStream,settings,keyInfo,exemptedFiles,packageWriter) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxEncryptionFactory2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxEncryptionFactory3_INTERFACE_DEFINED__ +#define __IAppxEncryptionFactory3_INTERFACE_DEFINED__ + +/* interface IAppxEncryptionFactory3 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxEncryptionFactory3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("09edca37-cd64-47d6-b7e8-1cb11d4f7e05") + IAppxEncryptionFactory3 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EncryptPackage( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateEncryptedPackageWriter( + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in_opt IStream *manifestStream, + /* [in] */ __RPC__in_opt IStream *contentGroupMapStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [retval][out] */ __RPC__deref_out_opt IAppxEncryptedPackageWriter **packageWriter) = 0; + + virtual HRESULT STDMETHODCALLTYPE EncryptBundle( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateEncryptedBundleWriter( + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ UINT64 bundleVersion, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [retval][out] */ __RPC__deref_out_opt IAppxEncryptedBundleWriter **bundleWriter) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxEncryptionFactory3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxEncryptionFactory3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxEncryptionFactory3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxEncryptionFactory3 * This); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory3, EncryptPackage) + HRESULT ( STDMETHODCALLTYPE *EncryptPackage )( + __RPC__in IAppxEncryptionFactory3 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory3, CreateEncryptedPackageWriter) + HRESULT ( STDMETHODCALLTYPE *CreateEncryptedPackageWriter )( + __RPC__in IAppxEncryptionFactory3 * This, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in_opt IStream *manifestStream, + /* [in] */ __RPC__in_opt IStream *contentGroupMapStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [retval][out] */ __RPC__deref_out_opt IAppxEncryptedPackageWriter **packageWriter); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory3, EncryptBundle) + HRESULT ( STDMETHODCALLTYPE *EncryptBundle )( + __RPC__in IAppxEncryptionFactory3 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory3, CreateEncryptedBundleWriter) + HRESULT ( STDMETHODCALLTYPE *CreateEncryptedBundleWriter )( + __RPC__in IAppxEncryptionFactory3 * This, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ UINT64 bundleVersion, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [retval][out] */ __RPC__deref_out_opt IAppxEncryptedBundleWriter **bundleWriter); + + END_INTERFACE + } IAppxEncryptionFactory3Vtbl; + + interface IAppxEncryptionFactory3 + { + CONST_VTBL struct IAppxEncryptionFactory3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxEncryptionFactory3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxEncryptionFactory3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxEncryptionFactory3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxEncryptionFactory3_EncryptPackage(This,inputStream,outputStream,settings,keyInfo,exemptedFiles) \ + ( (This)->lpVtbl -> EncryptPackage(This,inputStream,outputStream,settings,keyInfo,exemptedFiles) ) + +#define IAppxEncryptionFactory3_CreateEncryptedPackageWriter(This,outputStream,manifestStream,contentGroupMapStream,settings,keyInfo,exemptedFiles,packageWriter) \ + ( (This)->lpVtbl -> CreateEncryptedPackageWriter(This,outputStream,manifestStream,contentGroupMapStream,settings,keyInfo,exemptedFiles,packageWriter) ) + +#define IAppxEncryptionFactory3_EncryptBundle(This,inputStream,outputStream,settings,keyInfo,exemptedFiles) \ + ( (This)->lpVtbl -> EncryptBundle(This,inputStream,outputStream,settings,keyInfo,exemptedFiles) ) + +#define IAppxEncryptionFactory3_CreateEncryptedBundleWriter(This,outputStream,bundleVersion,settings,keyInfo,exemptedFiles,bundleWriter) \ + ( (This)->lpVtbl -> CreateEncryptedBundleWriter(This,outputStream,bundleVersion,settings,keyInfo,exemptedFiles,bundleWriter) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxEncryptionFactory3_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxEncryptionFactory4_INTERFACE_DEFINED__ +#define __IAppxEncryptionFactory4_INTERFACE_DEFINED__ + +/* interface IAppxEncryptionFactory4 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxEncryptionFactory4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A879611F-12FD-41fe-85D5-06AE779BBAF5") + IAppxEncryptionFactory4 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EncryptPackage( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [in] */ UINT64 memoryLimit) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxEncryptionFactory4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxEncryptionFactory4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxEncryptionFactory4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxEncryptionFactory4 * This); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory4, EncryptPackage) + HRESULT ( STDMETHODCALLTYPE *EncryptPackage )( + __RPC__in IAppxEncryptionFactory4 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ __RPC__in_opt IStream *outputStream, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [in] */ __RPC__in const APPX_ENCRYPTED_EXEMPTIONS *exemptedFiles, + /* [in] */ UINT64 memoryLimit); + + END_INTERFACE + } IAppxEncryptionFactory4Vtbl; + + interface IAppxEncryptionFactory4 + { + CONST_VTBL struct IAppxEncryptionFactory4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxEncryptionFactory4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxEncryptionFactory4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxEncryptionFactory4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxEncryptionFactory4_EncryptPackage(This,inputStream,outputStream,settings,keyInfo,exemptedFiles,memoryLimit) \ + ( (This)->lpVtbl -> EncryptPackage(This,inputStream,outputStream,settings,keyInfo,exemptedFiles,memoryLimit) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxEncryptionFactory4_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxEncryptionFactory5_INTERFACE_DEFINED__ +#define __IAppxEncryptionFactory5_INTERFACE_DEFINED__ + +/* interface IAppxEncryptionFactory5 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxEncryptionFactory5; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("68d6e77a-f446-480f-b0f0-d91a24c60746") + IAppxEncryptionFactory5 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateEncryptedPackageReader2( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **packageReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateEncryptedBundleReader2( + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleReader **bundleReader) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxEncryptionFactory5Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxEncryptionFactory5 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxEncryptionFactory5 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxEncryptionFactory5 * This); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory5, CreateEncryptedPackageReader2) + HRESULT ( STDMETHODCALLTYPE *CreateEncryptedPackageReader2 )( + __RPC__in IAppxEncryptionFactory5 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxPackageReader **packageReader); + + DECLSPEC_XFGVIRT(IAppxEncryptionFactory5, CreateEncryptedBundleReader2) + HRESULT ( STDMETHODCALLTYPE *CreateEncryptedBundleReader2 )( + __RPC__in IAppxEncryptionFactory5 * This, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [optional][in] */ __RPC__in const APPX_KEY_INFO *keyInfo, + /* [optional][in] */ __RPC__in LPCWSTR expectedDigest, + /* [retval][out] */ __RPC__deref_out_opt IAppxBundleReader **bundleReader); + + END_INTERFACE + } IAppxEncryptionFactory5Vtbl; + + interface IAppxEncryptionFactory5 + { + CONST_VTBL struct IAppxEncryptionFactory5Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxEncryptionFactory5_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxEncryptionFactory5_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxEncryptionFactory5_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxEncryptionFactory5_CreateEncryptedPackageReader2(This,inputStream,keyInfo,expectedDigest,packageReader) \ + ( (This)->lpVtbl -> CreateEncryptedPackageReader2(This,inputStream,keyInfo,expectedDigest,packageReader) ) + +#define IAppxEncryptionFactory5_CreateEncryptedBundleReader2(This,inputStream,keyInfo,expectedDigest,bundleReader) \ + ( (This)->lpVtbl -> CreateEncryptedBundleReader2(This,inputStream,keyInfo,expectedDigest,bundleReader) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxEncryptionFactory5_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxEncryptedPackageWriter_INTERFACE_DEFINED__ +#define __IAppxEncryptedPackageWriter_INTERFACE_DEFINED__ + +/* interface IAppxEncryptedPackageWriter */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxEncryptedPackageWriter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F43D0B0B-1379-40E2-9B29-682EA2BF42AF") + IAppxEncryptedPackageWriter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPayloadFileEncrypted( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ APPX_COMPRESSION_OPTION compressionOption, + /* [in] */ __RPC__in_opt IStream *inputStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxEncryptedPackageWriterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxEncryptedPackageWriter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxEncryptedPackageWriter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxEncryptedPackageWriter * This); + + DECLSPEC_XFGVIRT(IAppxEncryptedPackageWriter, AddPayloadFileEncrypted) + HRESULT ( STDMETHODCALLTYPE *AddPayloadFileEncrypted )( + __RPC__in IAppxEncryptedPackageWriter * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ APPX_COMPRESSION_OPTION compressionOption, + /* [in] */ __RPC__in_opt IStream *inputStream); + + DECLSPEC_XFGVIRT(IAppxEncryptedPackageWriter, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IAppxEncryptedPackageWriter * This); + + END_INTERFACE + } IAppxEncryptedPackageWriterVtbl; + + interface IAppxEncryptedPackageWriter + { + CONST_VTBL struct IAppxEncryptedPackageWriterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxEncryptedPackageWriter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxEncryptedPackageWriter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxEncryptedPackageWriter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxEncryptedPackageWriter_AddPayloadFileEncrypted(This,fileName,compressionOption,inputStream) \ + ( (This)->lpVtbl -> AddPayloadFileEncrypted(This,fileName,compressionOption,inputStream) ) + +#define IAppxEncryptedPackageWriter_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxEncryptedPackageWriter_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxEncryptedPackageWriter2_INTERFACE_DEFINED__ +#define __IAppxEncryptedPackageWriter2_INTERFACE_DEFINED__ + +/* interface IAppxEncryptedPackageWriter2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxEncryptedPackageWriter2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3E475447-3A25-40b5-8AD2-F953AE50C92D") + IAppxEncryptedPackageWriter2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPayloadFilesEncrypted( + /* [in] */ UINT32 fileCount, + /* [size_is][in] */ __RPC__in_ecount_full(fileCount) APPX_PACKAGE_WRITER_PAYLOAD_STREAM *payloadFiles, + /* [in] */ UINT64 memoryLimit) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxEncryptedPackageWriter2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxEncryptedPackageWriter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxEncryptedPackageWriter2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxEncryptedPackageWriter2 * This); + + DECLSPEC_XFGVIRT(IAppxEncryptedPackageWriter2, AddPayloadFilesEncrypted) + HRESULT ( STDMETHODCALLTYPE *AddPayloadFilesEncrypted )( + __RPC__in IAppxEncryptedPackageWriter2 * This, + /* [in] */ UINT32 fileCount, + /* [size_is][in] */ __RPC__in_ecount_full(fileCount) APPX_PACKAGE_WRITER_PAYLOAD_STREAM *payloadFiles, + /* [in] */ UINT64 memoryLimit); + + END_INTERFACE + } IAppxEncryptedPackageWriter2Vtbl; + + interface IAppxEncryptedPackageWriter2 + { + CONST_VTBL struct IAppxEncryptedPackageWriter2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxEncryptedPackageWriter2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxEncryptedPackageWriter2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxEncryptedPackageWriter2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxEncryptedPackageWriter2_AddPayloadFilesEncrypted(This,fileCount,payloadFiles,memoryLimit) \ + ( (This)->lpVtbl -> AddPayloadFilesEncrypted(This,fileCount,payloadFiles,memoryLimit) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxEncryptedPackageWriter2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxEncryptedBundleWriter_INTERFACE_DEFINED__ +#define __IAppxEncryptedBundleWriter_INTERFACE_DEFINED__ + +/* interface IAppxEncryptedBundleWriter */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxEncryptedBundleWriter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("80B0902F-7BF0-4117-B8C6-4279EF81EE77") + IAppxEncryptedBundleWriter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPayloadPackageEncrypted( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *packageStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxEncryptedBundleWriterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxEncryptedBundleWriter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxEncryptedBundleWriter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxEncryptedBundleWriter * This); + + DECLSPEC_XFGVIRT(IAppxEncryptedBundleWriter, AddPayloadPackageEncrypted) + HRESULT ( STDMETHODCALLTYPE *AddPayloadPackageEncrypted )( + __RPC__in IAppxEncryptedBundleWriter * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *packageStream); + + DECLSPEC_XFGVIRT(IAppxEncryptedBundleWriter, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IAppxEncryptedBundleWriter * This); + + END_INTERFACE + } IAppxEncryptedBundleWriterVtbl; + + interface IAppxEncryptedBundleWriter + { + CONST_VTBL struct IAppxEncryptedBundleWriterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxEncryptedBundleWriter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxEncryptedBundleWriter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxEncryptedBundleWriter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxEncryptedBundleWriter_AddPayloadPackageEncrypted(This,fileName,packageStream) \ + ( (This)->lpVtbl -> AddPayloadPackageEncrypted(This,fileName,packageStream) ) + +#define IAppxEncryptedBundleWriter_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxEncryptedBundleWriter_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxEncryptedBundleWriter2_INTERFACE_DEFINED__ +#define __IAppxEncryptedBundleWriter2_INTERFACE_DEFINED__ + +/* interface IAppxEncryptedBundleWriter2 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxEncryptedBundleWriter2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E644BE82-F0FA-42B8-A956-8D1CB48EE379") + IAppxEncryptedBundleWriter2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddExternalPackageReference( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxEncryptedBundleWriter2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxEncryptedBundleWriter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxEncryptedBundleWriter2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxEncryptedBundleWriter2 * This); + + DECLSPEC_XFGVIRT(IAppxEncryptedBundleWriter2, AddExternalPackageReference) + HRESULT ( STDMETHODCALLTYPE *AddExternalPackageReference )( + __RPC__in IAppxEncryptedBundleWriter2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream); + + END_INTERFACE + } IAppxEncryptedBundleWriter2Vtbl; + + interface IAppxEncryptedBundleWriter2 + { + CONST_VTBL struct IAppxEncryptedBundleWriter2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxEncryptedBundleWriter2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxEncryptedBundleWriter2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxEncryptedBundleWriter2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxEncryptedBundleWriter2_AddExternalPackageReference(This,fileName,inputStream) \ + ( (This)->lpVtbl -> AddExternalPackageReference(This,fileName,inputStream) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxEncryptedBundleWriter2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_appxpackaging_0000_0089 */ +/* [local] */ + +typedef /* [v1_enum] */ +enum APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION + { + APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION_APPEND_DELTA = 0 + } APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION; + +typedef /* [v1_enum] */ +enum APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS + { + APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTION_NONE = 0, + APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTION_SKIP_VALIDATION = 0x1, + APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTION_LOCALIZED = 0x2 + } APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS); + + +extern RPC_IF_HANDLE __MIDL_itf_appxpackaging_0000_0089_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_appxpackaging_0000_0089_v0_0_s_ifspec; + +#ifndef __IAppxEncryptedBundleWriter3_INTERFACE_DEFINED__ +#define __IAppxEncryptedBundleWriter3_INTERFACE_DEFINED__ + +/* interface IAppxEncryptedBundleWriter3 */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxEncryptedBundleWriter3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0D34DEB3-5CAE-4DD3-977C-504932A51D31") + IAppxEncryptedBundleWriter3 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPayloadPackageEncrypted( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *packageStream, + /* [in] */ BOOL isDefaultApplicablePackage) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddExternalPackageReference( + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ BOOL isDefaultApplicablePackage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxEncryptedBundleWriter3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxEncryptedBundleWriter3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxEncryptedBundleWriter3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxEncryptedBundleWriter3 * This); + + DECLSPEC_XFGVIRT(IAppxEncryptedBundleWriter3, AddPayloadPackageEncrypted) + HRESULT ( STDMETHODCALLTYPE *AddPayloadPackageEncrypted )( + __RPC__in IAppxEncryptedBundleWriter3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *packageStream, + /* [in] */ BOOL isDefaultApplicablePackage); + + DECLSPEC_XFGVIRT(IAppxEncryptedBundleWriter3, AddExternalPackageReference) + HRESULT ( STDMETHODCALLTYPE *AddExternalPackageReference )( + __RPC__in IAppxEncryptedBundleWriter3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR fileName, + /* [in] */ __RPC__in_opt IStream *inputStream, + /* [in] */ BOOL isDefaultApplicablePackage); + + END_INTERFACE + } IAppxEncryptedBundleWriter3Vtbl; + + interface IAppxEncryptedBundleWriter3 + { + CONST_VTBL struct IAppxEncryptedBundleWriter3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxEncryptedBundleWriter3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxEncryptedBundleWriter3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxEncryptedBundleWriter3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxEncryptedBundleWriter3_AddPayloadPackageEncrypted(This,fileName,packageStream,isDefaultApplicablePackage) \ + ( (This)->lpVtbl -> AddPayloadPackageEncrypted(This,fileName,packageStream,isDefaultApplicablePackage) ) + +#define IAppxEncryptedBundleWriter3_AddExternalPackageReference(This,fileName,inputStream,isDefaultApplicablePackage) \ + ( (This)->lpVtbl -> AddExternalPackageReference(This,fileName,inputStream,isDefaultApplicablePackage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxEncryptedBundleWriter3_INTERFACE_DEFINED__ */ + + +#ifndef __IAppxPackageEditor_INTERFACE_DEFINED__ +#define __IAppxPackageEditor_INTERFACE_DEFINED__ + +/* interface IAppxPackageEditor */ +/* [ref][uuid][object] */ + + +EXTERN_C const IID IID_IAppxPackageEditor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E2ADB6DC-5E71-4416-86B6-86E5F5291A6B") + IAppxPackageEditor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetWorkingDirectory( + /* [string][in] */ __RPC__in_string LPCWSTR workingDirectory) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDeltaPackage( + /* [in] */ __RPC__in_opt IStream *updatedPackageStream, + /* [in] */ __RPC__in_opt IStream *baselinePackageStream, + /* [in] */ __RPC__in_opt IStream *deltaPackageStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDeltaPackageUsingBaselineBlockMap( + /* [in] */ __RPC__in_opt IStream *updatedPackageStream, + /* [in] */ __RPC__in_opt IStream *baselineBlockMapStream, + /* [string][in] */ __RPC__in_string LPCWSTR baselinePackageFullName, + /* [in] */ __RPC__in_opt IStream *deltaPackageStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdatePackage( + /* [in] */ __RPC__in_opt IStream *baselinePackageStream, + /* [in] */ __RPC__in_opt IStream *deltaPackageStream, + /* [in] */ APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION updateOption) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateEncryptedPackage( + /* [in] */ __RPC__in_opt IStream *baselineEncryptedPackageStream, + /* [in] */ __RPC__in_opt IStream *deltaPackageStream, + /* [in] */ APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION updateOption, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdatePackageManifest( + /* [in] */ __RPC__in_opt IStream *packageStream, + /* [in] */ __RPC__in_opt IStream *updatedManifestStream, + /* [in] */ BOOL isPackageEncrypted, + /* [in] */ APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS options) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppxPackageEditorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppxPackageEditor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppxPackageEditor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppxPackageEditor * This); + + DECLSPEC_XFGVIRT(IAppxPackageEditor, SetWorkingDirectory) + HRESULT ( STDMETHODCALLTYPE *SetWorkingDirectory )( + __RPC__in IAppxPackageEditor * This, + /* [string][in] */ __RPC__in_string LPCWSTR workingDirectory); + + DECLSPEC_XFGVIRT(IAppxPackageEditor, CreateDeltaPackage) + HRESULT ( STDMETHODCALLTYPE *CreateDeltaPackage )( + __RPC__in IAppxPackageEditor * This, + /* [in] */ __RPC__in_opt IStream *updatedPackageStream, + /* [in] */ __RPC__in_opt IStream *baselinePackageStream, + /* [in] */ __RPC__in_opt IStream *deltaPackageStream); + + DECLSPEC_XFGVIRT(IAppxPackageEditor, CreateDeltaPackageUsingBaselineBlockMap) + HRESULT ( STDMETHODCALLTYPE *CreateDeltaPackageUsingBaselineBlockMap )( + __RPC__in IAppxPackageEditor * This, + /* [in] */ __RPC__in_opt IStream *updatedPackageStream, + /* [in] */ __RPC__in_opt IStream *baselineBlockMapStream, + /* [string][in] */ __RPC__in_string LPCWSTR baselinePackageFullName, + /* [in] */ __RPC__in_opt IStream *deltaPackageStream); + + DECLSPEC_XFGVIRT(IAppxPackageEditor, UpdatePackage) + HRESULT ( STDMETHODCALLTYPE *UpdatePackage )( + __RPC__in IAppxPackageEditor * This, + /* [in] */ __RPC__in_opt IStream *baselinePackageStream, + /* [in] */ __RPC__in_opt IStream *deltaPackageStream, + /* [in] */ APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION updateOption); + + DECLSPEC_XFGVIRT(IAppxPackageEditor, UpdateEncryptedPackage) + HRESULT ( STDMETHODCALLTYPE *UpdateEncryptedPackage )( + __RPC__in IAppxPackageEditor * This, + /* [in] */ __RPC__in_opt IStream *baselineEncryptedPackageStream, + /* [in] */ __RPC__in_opt IStream *deltaPackageStream, + /* [in] */ APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION updateOption, + /* [in] */ __RPC__in const APPX_ENCRYPTED_PACKAGE_SETTINGS2 *settings, + /* [in] */ __RPC__in const APPX_KEY_INFO *keyInfo); + + DECLSPEC_XFGVIRT(IAppxPackageEditor, UpdatePackageManifest) + HRESULT ( STDMETHODCALLTYPE *UpdatePackageManifest )( + __RPC__in IAppxPackageEditor * This, + /* [in] */ __RPC__in_opt IStream *packageStream, + /* [in] */ __RPC__in_opt IStream *updatedManifestStream, + /* [in] */ BOOL isPackageEncrypted, + /* [in] */ APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS options); + + END_INTERFACE + } IAppxPackageEditorVtbl; + + interface IAppxPackageEditor + { + CONST_VTBL struct IAppxPackageEditorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppxPackageEditor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppxPackageEditor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppxPackageEditor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppxPackageEditor_SetWorkingDirectory(This,workingDirectory) \ + ( (This)->lpVtbl -> SetWorkingDirectory(This,workingDirectory) ) + +#define IAppxPackageEditor_CreateDeltaPackage(This,updatedPackageStream,baselinePackageStream,deltaPackageStream) \ + ( (This)->lpVtbl -> CreateDeltaPackage(This,updatedPackageStream,baselinePackageStream,deltaPackageStream) ) + +#define IAppxPackageEditor_CreateDeltaPackageUsingBaselineBlockMap(This,updatedPackageStream,baselineBlockMapStream,baselinePackageFullName,deltaPackageStream) \ + ( (This)->lpVtbl -> CreateDeltaPackageUsingBaselineBlockMap(This,updatedPackageStream,baselineBlockMapStream,baselinePackageFullName,deltaPackageStream) ) + +#define IAppxPackageEditor_UpdatePackage(This,baselinePackageStream,deltaPackageStream,updateOption) \ + ( (This)->lpVtbl -> UpdatePackage(This,baselinePackageStream,deltaPackageStream,updateOption) ) + +#define IAppxPackageEditor_UpdateEncryptedPackage(This,baselineEncryptedPackageStream,deltaPackageStream,updateOption,settings,keyInfo) \ + ( (This)->lpVtbl -> UpdateEncryptedPackage(This,baselineEncryptedPackageStream,deltaPackageStream,updateOption,settings,keyInfo) ) + +#define IAppxPackageEditor_UpdatePackageManifest(This,packageStream,updatedManifestStream,isPackageEncrypted,options) \ + ( (This)->lpVtbl -> UpdatePackageManifest(This,packageStream,updatedManifestStream,isPackageEncrypted,options) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppxPackageEditor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_appxpackaging_0000_0091 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_appxpackaging_0000_0091_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_appxpackaging_0000_0091_v0_0_s_ifspec; + + +#ifndef __APPXPACKAGING_LIBRARY_DEFINED__ +#define __APPXPACKAGING_LIBRARY_DEFINED__ + +/* library APPXPACKAGING */ +/* [lcid][version][uuid] */ + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +EXTERN_C const IID LIBID_APPXPACKAGING; + +EXTERN_C const CLSID CLSID_AppxFactory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("5842a140-ff9f-4166-8f5c-62f5b7b0c781") +AppxFactory; +#endif + +EXTERN_C const CLSID CLSID_AppxBundleFactory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("378E0446-5384-43B7-8877-E7DBDD883446") +AppxBundleFactory; +#endif + +EXTERN_C const CLSID CLSID_AppxPackagingDiagnosticEventSinkManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("50CA0A46-1588-4161-8ED2-EF9E469CED5D") +AppxPackagingDiagnosticEventSinkManager; +#endif + +EXTERN_C const CLSID CLSID_AppxPackagingServiceProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("FB1B3839-09DA-404F-B002-9CBB8DA5CA4F") +AppxPackagingServiceProvider; +#endif + +EXTERN_C const CLSID CLSID_AppxEncryptionFactory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("DC664FDD-D868-46EE-8780-8D196CB739F7") +AppxEncryptionFactory; +#endif + +EXTERN_C const CLSID CLSID_AppxPackageEditor; + +#ifdef __cplusplus + +class DECLSPEC_UUID("F004F2CA-AEBC-4B0D-BF58-E516D5BCC0AB") +AppxPackageEditor; +#endif +#endif /* __APPXPACKAGING_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_appxpackaging_0000_0092 */ +/* [local] */ + +#endif // (NTDDI >= NTDDI_WIN7) + + +extern RPC_IF_HANDLE __MIDL_itf_appxpackaging_0000_0092_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_appxpackaging_0000_0092_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AppxPackaging.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AppxPackaging.idl new file mode 100644 index 0000000000000000000000000000000000000000..778a2644b1165a8632bd798ebf7522643024e3c8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AppxPackaging.idl @@ -0,0 +1,2305 @@ +//--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// Interfaces & Objects for manipulating Appx Packages. +// +//---------------------------------------------------------------------------- + +cpp_quote("#include ") + +import "oaidl.idl"; +import "ocidl.idl"; +import "urlmon.idl"; // For IUri + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN7)") + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") +typedef struct APPX_PACKAGE_SETTINGS +{ + BOOL forceZip32; + IUri* hashMethod; +} APPX_PACKAGE_SETTINGS; + +typedef [v1_enum] enum APPX_COMPRESSION_OPTION +{ + APPX_COMPRESSION_OPTION_NONE = 0, + APPX_COMPRESSION_OPTION_NORMAL = 1, + APPX_COMPRESSION_OPTION_MAXIMUM = 2, + APPX_COMPRESSION_OPTION_FAST = 3, + APPX_COMPRESSION_OPTION_SUPERFAST = 4 +} APPX_COMPRESSION_OPTION; + +typedef struct APPX_PACKAGE_WRITER_PAYLOAD_STREAM +{ + // Source of the payload + IStream* inputStream; + + // Name and metadata to use when writing the payload into the appx package + LPCWSTR fileName; + LPCWSTR contentType; + APPX_COMPRESSION_OPTION compressionOption; +} APPX_PACKAGE_WRITER_PAYLOAD_STREAM; + +// If a new footprint file type is added in either of the two +// enums below, be sure to update the corresponding file name +// in appxpackagingglobals.hpp c_packageFootprintFiles array. +typedef [v1_enum] enum APPX_FOOTPRINT_FILE_TYPE +{ + APPX_FOOTPRINT_FILE_TYPE_MANIFEST = 0, + APPX_FOOTPRINT_FILE_TYPE_BLOCKMAP = 1, + APPX_FOOTPRINT_FILE_TYPE_SIGNATURE = 2, + APPX_FOOTPRINT_FILE_TYPE_CODEINTEGRITY = 3, + APPX_FOOTPRINT_FILE_TYPE_CONTENTGROUPMAP = 4 +} APPX_FOOTPRINT_FILE_TYPE; + +typedef [v1_enum] enum APPX_BUNDLE_FOOTPRINT_FILE_TYPE +{ + APPX_BUNDLE_FOOTPRINT_FILE_TYPE_FIRST = 0, + APPX_BUNDLE_FOOTPRINT_FILE_TYPE_MANIFEST = 0, + APPX_BUNDLE_FOOTPRINT_FILE_TYPE_BLOCKMAP = 1, + APPX_BUNDLE_FOOTPRINT_FILE_TYPE_SIGNATURE = 2, + APPX_BUNDLE_FOOTPRINT_FILE_TYPE_LAST = 2 +} APPX_BUNDLE_FOOTPRINT_FILE_TYPE; + +typedef [v1_enum] enum APPX_CAPABILITIES +{ + APPX_CAPABILITY_INTERNET_CLIENT = 0x0000000000000001, + APPX_CAPABILITY_INTERNET_CLIENT_SERVER = 0x0000000000000002, + APPX_CAPABILITY_PRIVATE_NETWORK_CLIENT_SERVER = 0x0000000000000004, + APPX_CAPABILITY_DOCUMENTS_LIBRARY = 0x0000000000000008, + APPX_CAPABILITY_PICTURES_LIBRARY = 0x0000000000000010, + APPX_CAPABILITY_VIDEOS_LIBRARY = 0x0000000000000020, + APPX_CAPABILITY_MUSIC_LIBRARY = 0x0000000000000040, + APPX_CAPABILITY_ENTERPRISE_AUTHENTICATION = 0x0000000000000080, + APPX_CAPABILITY_SHARED_USER_CERTIFICATES = 0x0000000000000100, + APPX_CAPABILITY_REMOVABLE_STORAGE = 0x0000000000000200, + APPX_CAPABILITY_APPOINTMENTS = 0x0000000000000400, + APPX_CAPABILITY_CONTACTS = 0x0000000000000800 +} APPX_CAPABILITIES; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(APPX_CAPABILITIES);") + +typedef [v1_enum] enum APPX_PACKAGE_ARCHITECTURE +{ + APPX_PACKAGE_ARCHITECTURE_X86 = 0, // PROCESSOR_ARCHITECTURE_INTEL + APPX_PACKAGE_ARCHITECTURE_ARM = 5, // PROCESSOR_ARCHITECTURE_ARM + APPX_PACKAGE_ARCHITECTURE_X64 = 9, // PROCESSOR_ARCHITECTURE_AMD64 + APPX_PACKAGE_ARCHITECTURE_NEUTRAL = 11, // PROCESSOR_ARCHITECTURE_NEUTRAL + APPX_PACKAGE_ARCHITECTURE_ARM64 = 12 // PROCESSOR_ARCHITECTURE_ARM64 +} APPX_PACKAGE_ARCHITECTURE; + +typedef [v1_enum] enum APPX_PACKAGE_ARCHITECTURE2 +{ + // Must match APPX_PACKAGE_ARCHITECTURE + APPX_PACKAGE_ARCHITECTURE2_X86 = 0, // PROCESSOR_ARCHITECTURE_INTEL + APPX_PACKAGE_ARCHITECTURE2_ARM = 5, // PROCESSOR_ARCHITECTURE_ARM + APPX_PACKAGE_ARCHITECTURE2_X64 = 9, // PROCESSOR_ARCHITECTURE_AMD64 + APPX_PACKAGE_ARCHITECTURE2_NEUTRAL = 11, // PROCESSOR_ARCHITECTURE_NEUTRAL + APPX_PACKAGE_ARCHITECTURE2_ARM64 = 12, // PROCESSOR_ARCHITECTURE_ARM64 + APPX_PACKAGE_ARCHITECTURE2_X86_ON_ARM64 = 14, // PROCESSOR_ARCHITECTURE_IA32_ON_ARM64 + APPX_PACKAGE_ARCHITECTURE2_UNKNOWN = 0xFFFF // PROCESSOR_ARCHITECTURE_UNKNOWN +} APPX_PACKAGE_ARCHITECTURE2; + +typedef [v1_enum] enum APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE +{ + APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE_APPLICATION = 0, + APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE_RESOURCE = 1 +} APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE; + +typedef [v1_enum] enum DX_FEATURE_LEVEL +{ + DX_FEATURE_LEVEL_UNSPECIFIED = 0, + DX_FEATURE_LEVEL_9 = 1, + DX_FEATURE_LEVEL_10 = 2, + DX_FEATURE_LEVEL_11 = 3, +} DX_FEATURE_LEVEL; + +typedef [v1_enum] enum APPX_CAPABILITY_CLASS_TYPE +{ + APPX_CAPABILITY_CLASS_DEFAULT = 0x00000000, + APPX_CAPABILITY_CLASS_GENERAL = 0x00000001, + APPX_CAPABILITY_CLASS_RESTRICTED = 0x00000002, + APPX_CAPABILITY_CLASS_WINDOWS = 0x00000004, + APPX_CAPABILITY_CLASS_ALL = 0x00000007, + APPX_CAPABILITY_CLASS_CUSTOM = 0x00000008 +} APPX_CAPABILITY_CLASS_TYPE; + +typedef [v1_enum] enum APPX_PACKAGING_CONTEXT_CHANGE_TYPE +{ + APPX_PACKAGING_CONTEXT_CHANGE_TYPE_START = 0, + APPX_PACKAGING_CONTEXT_CHANGE_TYPE_CHANGE = 1, + APPX_PACKAGING_CONTEXT_CHANGE_TYPE_DETAILS = 2, + APPX_PACKAGING_CONTEXT_CHANGE_TYPE_END = 3 +} APPX_PACKAGING_CONTEXT_CHANGE_TYPE; + +interface IAppxPackageWriter; +interface IAppxPackageReader; +interface IAppxFile; +interface IAppxFile2; +interface IAppxFilesEnumerator; +interface IAppxBlockMapReader; +interface IAppxBlockMapFile; +interface IAppxBlockMapFile2; +interface IAppxBlockMapFilesEnumerator; +interface IAppxBlockMapBlock; +interface IAppxBlockMapBlocksEnumerator; +interface IAppxManifestApplicationsEnumerator; +interface IAppxManifestApplication; +interface IAppxManifestDeviceCapabilitiesEnumerator; +interface IAppxManifestPackageId; +interface IAppxManifestPackageId2; +interface IAppxManifestPackageDependency; +interface IAppxManifestPackageDependenciesEnumerator; +interface IAppxManifestProperties; +interface IAppxManifestReader; +interface IAppxBundleFactory; +interface IAppxBundleFactory2; +interface IAppxBundleFactory3; +interface IAppxBundleWriter; +interface IAppxBundleWriter2; +interface IAppxBundleWriter3; +interface IAppxBundleWriter4; +interface IAppxBundleReader; +interface IAppxBundleReader2; +interface IAppxBundleManifestReader; +interface IAppxBundleManifestReader2; +interface IAppxBundleManifestPackageInfoEnumerator; +interface IAppxBundleManifestPackageInfo; +interface IAppxBundleManifestPackageInfo2; +interface IAppxBundleManifestPackageInfo3; +interface IAppxBundleManifestOptionalBundleInfoEnumerator; +interface IAppxBundleManifestOptionalBundleInfo; +interface IAppxManifestQualifiedResourcesEnumerator; +interface IAppxManifestQualifiedResource; +interface IAppxManifestTargetDeviceFamily; +interface IAppxManifestTargetDeviceFamiliesEnumerator; +interface IAppxManifestPackageDependency2; +interface IAppxManifestPackageDependency3; +interface IAppxManifestResourcesEnumerator; +interface IAppxManifestCapabilitiesEnumerator; +interface IAppxManifestOptionalPackageInfo; +interface IAppxContentGroupFilesEnumerator; +interface IAppxContentGroupsEnumerator; +interface IAppxContentGroup; +interface IAppxContentGroupMapReader; +interface IAppxSourceContentGroupMapReader; +interface IAppxContentGroupMapWriter; +interface IAppxManifestMainPackageDependenciesEnumerator; +interface IAppxManifestMainPackageDependency; +interface IAppxPackagingEventSink; +interface IAppxPackagingEventSinkManager; +interface IAppxManifestDriverDependency; +interface IAppxManifestDriverDependenciesEnumerator; +interface IAppxManifestDriverConstraint; +interface IAppxManifestDriverConstraintsEnumerator; +interface IAppxManifestOSPackageDependency; +interface IAppxManifestOSPackageDependenciesEnumerator; +interface IAppxManifestHostRuntimeDependency; +interface IAppxManifestHostRuntimeDependenciesEnumerator; +interface IAppxAppInstallerReader; +interface IAppxDigestProvider; +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") +interface IAppxEncryptionFactory; +interface IAppxEncryptedPackageWriter; +interface IAppxEncryptedBundleWriter; +interface IAppxEncryptedBundleWriter2; +interface IAppxEncryptedBundleWriter3; +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") +[ + object, + uuid(beb94909-e451-438b-b5a7-d79e767b75d8), + pointer_default(ref) +] +interface IAppxFactory : IUnknown +{ + HRESULT + CreatePackageWriter( + [in] IStream * outputStream, + [in] APPX_PACKAGE_SETTINGS * settings, + [out, retval] IAppxPackageWriter ** packageWriter + ); + + HRESULT + CreatePackageReader( + [in] IStream * inputStream, + [out, retval] IAppxPackageReader ** packageReader + ); + + HRESULT + CreateManifestReader( + [in] IStream * inputStream, + [out, retval] IAppxManifestReader ** manifestReader + ); + + HRESULT + CreateBlockMapReader( + [in] IStream * inputStream, + [out, retval] IAppxBlockMapReader ** blockMapReader + ); + + HRESULT + CreateValidatedBlockMapReader( + [in] IStream * blockMapStream, + [in] LPCWSTR signatureFileName, + [out, retval] IAppxBlockMapReader ** blockMapReader + ); +} + +[ + object, + uuid(f1346df2-c282-4e22-b918-743a929a8d55), + pointer_default(ref) +] +interface IAppxFactory2 : IUnknown +{ + HRESULT + CreateContentGroupMapReader( + [in] IStream * inputStream, + [out, retval] IAppxContentGroupMapReader** contentGroupMapReader + ); + + HRESULT + CreateSourceContentGroupMapReader( + [in] IStream * inputStream, + [out, retval] IAppxSourceContentGroupMapReader** reader + ); + + HRESULT + CreateContentGroupMapWriter( + [in] IStream * stream, + [out, retval] IAppxContentGroupMapWriter** contentGroupMapWriter + ); +} + +[ + object, + uuid(776b2c05-e21d-4e24-ba1a-cd529a8bfdbb), + pointer_default(ref) +] +interface IAppxFactory3 : IUnknown +{ + HRESULT + CreatePackageReader2( + [in] IStream* inputStream, + [in, optional] LPCWSTR expectedDigest, + [out, retval] IAppxPackageReader** packageReader + ); + + HRESULT + CreateManifestReader2( + [in] IStream* inputStream, + [in, optional] LPCWSTR expectedDigest, + [out, retval] IAppxManifestReader** manifestReader + ); + + HRESULT + CreateAppInstallerReader( + [in] IStream* inputStream, + [in, optional] LPCWSTR expectedDigest, + [out, retval] IAppxAppInstallerReader** appInstallerReader + ); +} + +[ + object, + uuid(92E50000-6934-4C8D-B472-229D431DADDF), + pointer_default(ref) +] +interface IAppxFactory4 : IUnknown +{ + HRESULT + CreatePackageReaderFromSourceUri( + [in] LPCWSTR uri, + [in, unique, string] LPCWSTR expectedDigest, + [out, retval] IAppxPackageReader** packageReader + ); +} + +[ + object, + uuid(b5c49650-99bc-481c-9a34-3d53a4106708), + pointer_default(ref) +] +interface IAppxPackageReader : IUnknown +{ + HRESULT + GetBlockMap( + [out, retval] IAppxBlockMapReader ** blockMapReader + ); + + HRESULT + GetFootprintFile( + [in] APPX_FOOTPRINT_FILE_TYPE type, + [out, retval] IAppxFile ** file + ); + + HRESULT + GetPayloadFile( + [in, string] LPCWSTR fileName, + [out, retval] IAppxFile ** file + ); + + HRESULT + GetPayloadFiles( + [out, retval] IAppxFilesEnumerator ** filesEnumerator + ); + + HRESULT + GetManifest( + [out, retval] IAppxManifestReader ** manifestReader + ); +} + +[ + object, + uuid(9099e33b-246f-41e4-881a-008eb613f858), + pointer_default(ref) +] +interface IAppxPackageWriter : IUnknown +{ + HRESULT + AddPayloadFile( + [in, string] LPCWSTR fileName, + [in, string] LPCWSTR contentType, + [in] APPX_COMPRESSION_OPTION compressionOption, + [in] IStream * inputStream + ); + + HRESULT + Close( + [in] IStream * manifest + ); +} + +[ + object, + uuid(2cf5c4fd-e54c-4ea5-ba4e-f8c4b105a8c8), + pointer_default(ref) +] +interface IAppxPackageWriter2 : IUnknown +{ + HRESULT + Close( + [in] IStream* manifest, + [in] IStream* contentGroupMap + ); +} + +[ + object, + uuid(a83aacd3-41c0-4501-b8a3-74164f50b2fd), + pointer_default(ref) +] +interface IAppxPackageWriter3 : IUnknown +{ + HRESULT + AddPayloadFiles( + [in] UINT32 fileCount, + [in, size_is(fileCount)] APPX_PACKAGE_WRITER_PAYLOAD_STREAM* payloadFiles, + [in] UINT64 memoryLimit + ); +} + +[ + object, + uuid(91df827b-94fd-468f-827b-57f41b2f6f2e), + pointer_default(ref) +] +interface IAppxFile : IUnknown +{ + HRESULT + GetCompressionOption( + [out, retval] APPX_COMPRESSION_OPTION * compressionOption + ); + + HRESULT + GetContentType( + [out, string, retval] LPWSTR * contentType + ); + + HRESULT + GetName( + [out, string, retval] LPWSTR * fileName + ); + + HRESULT + GetSize( + [out, retval] UINT64 * size + ); + + HRESULT + GetStream( + [out, retval] IStream ** stream + ); +} + +[ + object, + uuid(0c830b3c-40e9-11ee-be56-0242ac120002), + pointer_default(ref) +] +interface IAppxFile2 : IAppxFile +{ + HRESULT + GetBlockSize( + [out, retval] UINT64 * blockSize + ); +} + +[ + object, + uuid(f007eeaf-9831-411c-9847-917cdc62d1fe), + pointer_default(ref) +] +interface IAppxFilesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxFile ** file + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL * hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL * hasNext + ); +} + +[ + object, + uuid(5efec991-bca3-42d1-9ec2-e92d609ec22a), + pointer_default(ref) +] +interface IAppxBlockMapReader : IUnknown +{ + HRESULT + GetFile( + [in, string] LPCWSTR filename, + [out, retval] IAppxBlockMapFile ** file + ); + + HRESULT + GetFiles( + [out, retval] IAppxBlockMapFilesEnumerator ** enumerator + ); + + HRESULT + GetHashMethod( + [out, retval] IUri ** hashMethod + ); + + HRESULT + GetStream( + [out, retval] IStream ** blockMapStream + ); +} + +[ + object, + uuid(277672ac-4f63-42c1-8abc-beae3600eb59), + pointer_default(ref) +] +interface IAppxBlockMapFile : IUnknown +{ + HRESULT + GetBlocks( + [out, retval] IAppxBlockMapBlocksEnumerator ** blocks + ); + + HRESULT + GetLocalFileHeaderSize( + [out, retval] UINT32 * lfhSize + ); + + HRESULT + GetName( + [out, string, retval] LPWSTR * name + ); + + HRESULT + GetUncompressedSize( + [out, retval] UINT64 * size + ); + + HRESULT + ValidateFileHash( + [in] IStream * fileStream, + [out, retval] BOOL * isValid + ); +} + +[ + object, + uuid(54785f78-40e9-11ee-be56-0242ac120002), + pointer_default(ref) +] +interface IAppxBlockMapFile2 : IAppxBlockMapFile +{ + HRESULT + GetBlockSize( + [out, retval] UINT64 * blockSize + ); +} + +[ + object, + uuid(02b856a2-4262-4070-bacb-1a8cbbc42305), + pointer_default(ref) +] +interface IAppxBlockMapFilesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxBlockMapFile ** file + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL * hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL * hasCurrent + ); +} + +[ + object, + uuid(75cf3930-3244-4fe0-a8c8-e0bcb270b889), + pointer_default(unique) +] +interface IAppxBlockMapBlock : IUnknown +{ + HRESULT + GetHash( + [out] UINT32 * bufferSize, + [out, size_is(, *bufferSize), retval] BYTE ** buffer + ); + + HRESULT + GetCompressedSize( + [out, retval] UINT32 * size + ); +} + +[ + object, + uuid(6b429b5b-36ef-479e-b9eb-0c1482b49e16), + pointer_default(ref) +] +interface IAppxBlockMapBlocksEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxBlockMapBlock ** block + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL * hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL * hasNext + ); +} + +[ + object, + uuid(4e1bd148-55a0-4480-a3d1-15544710637c), + pointer_default(ref) +] +interface IAppxManifestReader : IUnknown +{ + HRESULT + GetPackageId( + [out, retval] IAppxManifestPackageId ** packageId + ); + + HRESULT + GetProperties( + [out, retval] IAppxManifestProperties ** packageProperties + ); + + HRESULT + GetPackageDependencies( + [out, retval] IAppxManifestPackageDependenciesEnumerator ** dependencies + ); + + HRESULT + GetCapabilities( + [out, retval] APPX_CAPABILITIES * capabilities + ); + + HRESULT + GetResources( + [out, retval] IAppxManifestResourcesEnumerator ** resources + ); + + HRESULT + GetDeviceCapabilities( + [out, retval] IAppxManifestDeviceCapabilitiesEnumerator ** deviceCapabilities + ); + + HRESULT + GetPrerequisite( + [in, string] LPCWSTR name, + [out, retval] UINT64 * value + ); + + HRESULT + GetApplications( + [out, retval] IAppxManifestApplicationsEnumerator ** applications + ); + + HRESULT + GetStream( + [out, retval] IStream ** manifestStream + ); +} + +[ + object, + uuid(d06f67bc-b31d-4eba-a8af-638e73e77b4d), + pointer_default(ref) +] +interface IAppxManifestReader2 : IAppxManifestReader +{ + HRESULT + GetQualifiedResources( + [out, retval] IAppxManifestQualifiedResourcesEnumerator ** resources + ); +} + +[ + object, + uuid(C43825AB-69B7-400A-9709-CC37F5A72D24), + pointer_default(ref) +] +interface IAppxManifestReader3 : IAppxManifestReader2 +{ + HRESULT + GetCapabilitiesByCapabilityClass( + [in] APPX_CAPABILITY_CLASS_TYPE capabilityClass, + [out, retval] IAppxManifestCapabilitiesEnumerator ** capabilities + ); + + HRESULT + GetTargetDeviceFamilies( + [out, retval] IAppxManifestTargetDeviceFamiliesEnumerator** targetDeviceFamilies + ); +} + +[ + object, + uuid(4579BB7C-741D-4161-B5A1-47BD3B78AD9B), + pointer_default(ref) +] +interface IAppxManifestReader4 : IAppxManifestReader3 +{ + HRESULT + GetOptionalPackageInfo( + [out, retval] IAppxManifestOptionalPackageInfo ** optionalPackageInfo + ); +} + +[ + object, + uuid(8D7AE132-A690-4C00-B75A-6AAE1FEAAC80), + pointer_default(ref) +] +interface IAppxManifestReader5 : IUnknown +{ + HRESULT + GetMainPackageDependencies( + [out, retval] IAppxManifestMainPackageDependenciesEnumerator** mainPackageDependencies + ); +} + +[ + object, + uuid(34DEACA4-D3C0-4E3E-B312-E42625E3807E), + pointer_default(ref) +] +interface IAppxManifestReader6 : IUnknown +{ + HRESULT + GetIsNonQualifiedResourcePackage( + [out, retval] BOOL* isNonQualifiedResourcePackage + ); +} + +[ + object, + uuid(8EFE6F27-0CE0-4988-B32D-738EB63DB3B7), + pointer_default(ref) +] +interface IAppxManifestReader7 : IUnknown +{ + HRESULT + GetDriverDependencies( + [out, retval] IAppxManifestDriverDependenciesEnumerator** driverDependencies + ); + + HRESULT + GetOSPackageDependencies( + [out, retval] IAppxManifestOSPackageDependenciesEnumerator** osPackageDependencies + ); + + HRESULT + GetHostRuntimeDependencies( + [out, retval] IAppxManifestHostRuntimeDependenciesEnumerator** hostRuntimeDependencies + ); +} + +[ + object, + uuid(FE039DB2-467f-4755-8404-8F5EB6865B33), + pointer_default(ref) +] +interface IAppxManifestDriverDependenciesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxManifestDriverDependency** driverDependency + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL* hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL* hasNext + ); +} + +[ + object, + uuid(1210CB94-5A92-4602-BE24-79F318AF4AF9), + pointer_default(ref) +] +interface IAppxManifestDriverDependency : IUnknown +{ + HRESULT + GetDriverConstraints( + [out, retval] IAppxManifestDriverConstraintsEnumerator** driverConstraints + ); +} + +[ + object, + uuid(D402B2D1-F600-49E0-95E6-975D8DA13D89), + pointer_default(ref) +] +interface IAppxManifestDriverConstraintsEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxManifestDriverConstraint** driverConstraint + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL* hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL* hasNext + ); +} + +[ + object, + uuid(C031BEE4-BBCC-48EA-A237-C34045C80A07), + pointer_default(ref) +] +interface IAppxManifestDriverConstraint : IUnknown +{ + HRESULT + GetName( + [out, string, retval] LPWSTR* name + ); + + HRESULT + GetMinVersion( + [out, retval] UINT64* minVersion + ); + + HRESULT + GetMinDate( + [out, string, retval] LPWSTR* minDate + ); +} + +[ + object, + uuid(B84E2FC3-F8EC-4BC1-8AE2-156346F5FFEA), + pointer_default(ref) +] +interface IAppxManifestOSPackageDependenciesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxManifestOSPackageDependency** osPackageDependency + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL* hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL* hasNext + ); +} + +[ + object, + uuid(154995EE-54A6-4F14-AC97-D8CF0519644B), + pointer_default(ref) +] +interface IAppxManifestOSPackageDependency : IUnknown +{ + HRESULT + GetName( + [out, string, retval] LPWSTR* name + ); + + HRESULT + GetVersion( + [out, retval] UINT64* version + ); +} + +[ + object, + uuid(6427A646-7F49-433E-B1A6-0DA309F6885A), + pointer_default(ref) +] +interface IAppxManifestHostRuntimeDependenciesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxManifestHostRuntimeDependency** hostRuntimeDependency + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL* hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL* hasNext + ); +} + +[ + object, + uuid(3455D234-8414-410D-95C7-7B35255B8391), + pointer_default(ref) +] +interface IAppxManifestHostRuntimeDependency : IUnknown +{ + HRESULT + GetName( + [out, string, retval] LPWSTR* name + ); + + HRESULT + GetPublisher( + [out, string, retval] LPWSTR* publisher + ); + + HRESULT + GetMinVersion( + [out, retval] UINT64* minVersion + ); +} + +[ + object, + uuid(C26F23A8-EE10-4AD6-B898-2B4D7AEBFE6A), + pointer_default(ref) +] +interface IAppxManifestHostRuntimeDependency2 : IUnknown +{ + HRESULT + GetPackageFamilyName( + [out, string, retval] LPWSTR* packageFamilyName + ); +} + +[ + object, + uuid(2634847D-5B5D-4FE5-A243-002FF95EDC7E), + pointer_default(ref) +] +interface IAppxManifestOptionalPackageInfo : IUnknown +{ + HRESULT + GetIsOptionalPackage( + [out, retval] BOOL * isOptionalPackage + ); + + HRESULT + GetMainPackageName( + [out, string, retval] LPWSTR * mainPackageName + ); +} + +[ + object, + uuid(A99C4F00-51D2-4F0F-BA46-7ED5255EBDFF), + pointer_default(ref) +] +interface IAppxManifestMainPackageDependenciesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxManifestMainPackageDependency** mainPackageDependency + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL* hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL* hasNext + ); +} + +[ + object, + uuid(05D0611C-BC29-46D5-97E2-84B9C79BD8AE), + pointer_default(ref) +] +interface IAppxManifestMainPackageDependency : IUnknown +{ + HRESULT + GetName( + [out, string, retval] LPWSTR* name + ); + + HRESULT + GetPublisher( + [out, string, retval] LPWSTR* publisher + ); + + HRESULT + GetPackageFamilyName( + [out, string, retval] LPWSTR* packageFamilyName + ); +} + +[ + object, + uuid(283ce2d7-7153-4a91-9649-7a0f7240945f), + pointer_default(ref) +] +interface IAppxManifestPackageId : IUnknown +{ + HRESULT + GetName( + [out, string, retval] LPWSTR * name + ); + + HRESULT + GetArchitecture( + [out, retval] APPX_PACKAGE_ARCHITECTURE * architecture + ); + + HRESULT + GetPublisher( + [out, string, retval] LPWSTR * publisher + ); + + HRESULT + GetVersion( + [out, retval] UINT64 * packageVersion + ); + + HRESULT + GetResourceId( + [out, string, retval] LPWSTR * resourceId + ); + + HRESULT + ComparePublisher( + [in, string] LPCWSTR other, + [out, retval] BOOL * isSame + ); + + HRESULT + GetPackageFullName( + [out, string, retval] LPWSTR * packageFullName + ); + + HRESULT + GetPackageFamilyName( + [out, string, retval] LPWSTR * packageFamilyName + ); +} + +[ + object, + uuid(2256999d-d617-42f1-880e-0ba4542319d5), + pointer_default(ref) +] +interface IAppxManifestPackageId2 : IAppxManifestPackageId +{ + HRESULT + GetArchitecture2( + [out, retval] APPX_PACKAGE_ARCHITECTURE2 * architecture + ); +} + +[ + object, + uuid(03faf64d-f26f-4b2c-aaf7-8fe7789b8bca), + pointer_default(ref) +] +interface IAppxManifestProperties : IUnknown +{ + HRESULT + GetBoolValue( + [in, string] LPCWSTR name, + [out, retval] BOOL * value + ); + + HRESULT + GetStringValue( + [in, string] LPCWSTR name, + [out, string, retval] LPWSTR * value + ); +} + +[ + object, + uuid(36537F36-27A4-4788-88C0-733819575017), + pointer_default(ref) +] +interface IAppxManifestTargetDeviceFamiliesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxManifestTargetDeviceFamily** targetDeviceFamily + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL* hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL* hasNext + ); +} + +[ + object, + uuid(9091B09B-C8D5-4F31-8687-A338259FAEFB), + pointer_default(ref) +] +interface IAppxManifestTargetDeviceFamily : IUnknown +{ + HRESULT + GetName( + [out, string, retval] LPWSTR* name + ); + + HRESULT + GetMinVersion( + [out, retval] UINT64* minVersion + ); + + HRESULT + GetMaxVersionTested( + [out, retval] UINT64* maxVersionTested + ); +} + +[ + object, + uuid(b43bbcf9-65a6-42dd-bac0-8c6741e7f5a4), + pointer_default(ref) +] +interface IAppxManifestPackageDependenciesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxManifestPackageDependency ** dependency + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL * hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL * hasNext + ); +} + +[ + object, + uuid(e4946b59-733e-43f0-a724-3bde4c1285a0), + pointer_default(ref) +] +interface IAppxManifestPackageDependency : IUnknown +{ + HRESULT + GetName( + [out, string, retval] LPWSTR * name + ); + + HRESULT + GetPublisher( + [out, string, retval] LPWSTR * publisher + ); + + HRESULT + GetMinVersion( + [out, retval] UINT64 * minVersion + ); +} + +[ + object, + uuid(DDA0B713-F3FF-49D3-898A-2786780C5D98), + pointer_default(ref) +] +interface IAppxManifestPackageDependency2 : IAppxManifestPackageDependency +{ + HRESULT + GetMaxMajorVersionTested( + [out, retval] UINT16* maxMajorVersionTested + ); +} + +[ + object, + uuid(1AC56374-6198-4D6B-92E4-749D5AB8A895), + pointer_default(ref) +] +interface IAppxManifestPackageDependency3 : IUnknown +{ + HRESULT + GetIsOptional( + [out, retval] BOOL * isOptional + ); +} + +[ + object, + uuid(de4dfbbd-881a-48bb-858c-d6f2baeae6ed), + pointer_default(ref) +] +interface IAppxManifestResourcesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, string, retval] LPWSTR * resource + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL * hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL * hasNext + ); +} + +[ + object, + uuid(30204541-427b-4a1c-bacf-655bf463a540), + pointer_default(ref) +] +interface IAppxManifestDeviceCapabilitiesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, string, retval] LPWSTR * deviceCapability + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL * hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL * hasNext + ); +} + +[ + object, + uuid(11D22258-F470-42C1-B291-8361C5437E41), + pointer_default(ref) +] +interface IAppxManifestCapabilitiesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, string, retval] LPWSTR * capability + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL * hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL * hasNext + ); +} + +[ + object, + uuid(9eb8a55a-f04b-4d0d-808d-686185d4847a), + pointer_default(ref) +] +interface IAppxManifestApplicationsEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxManifestApplication ** application + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL * hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL * hasNext + ); +} + +[ + object, + uuid(5da89bf4-3773-46be-b650-7e744863b7e8), + pointer_default(ref) +] +interface IAppxManifestApplication : IUnknown +{ + HRESULT + GetStringValue( + [in, string] LPCWSTR name, + [out, string, retval] LPWSTR * value + ); + + HRESULT + GetAppUserModelId( + [out, string, retval] LPWSTR * appUserModelId + ); +} + +[ + object, + uuid(8ef6adfe-3762-4a8f-9373-2fc5d444c8d2), + pointer_default(ref) +] +interface IAppxManifestQualifiedResourcesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxManifestQualifiedResource ** resource + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL * hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL * hasNext + ); +} + +[ + object, + uuid(3b53a497-3c5c-48d1-9ea3-bb7eac8cd7d4), + pointer_default(ref) +] +interface IAppxManifestQualifiedResource : IUnknown +{ + HRESULT + GetLanguage( + [out, string, retval] LPWSTR * language + ); + + HRESULT + GetScale( + [out, retval] UINT32 * scale + ); + + HRESULT + GetDXFeatureLevel( + [out, retval] DX_FEATURE_LEVEL * dxFeatureLevel + ); +} + +[ + object, + uuid(BBA65864-965F-4A5F-855F-F074BDBF3A7B), + pointer_default(ref) +] +interface IAppxBundleFactory : IUnknown +{ + HRESULT CreateBundleWriter( + [in] IStream* outputStream, + [in] UINT64 bundleVersion, + [out, retval] IAppxBundleWriter** bundleWriter + ); + + HRESULT CreateBundleReader( + [in] IStream* inputStream, + [out, retval] IAppxBundleReader** bundleReader + ); + + HRESULT CreateBundleManifestReader( + [in] IStream* inputStream, + [out, retval] IAppxBundleManifestReader** manifestReader + ); +} + +[ + object, + uuid(7325b83d-0185-42c4-82ac-be34ab1a2a8a), + pointer_default(ref) +] +interface IAppxBundleFactory2 : IUnknown +{ + HRESULT CreateBundleReader2( + [in] IStream* inputStream, + [in, optional] LPCWSTR expectedDigest, + [out, retval] IAppxBundleReader** bundleReader + ); +} + +[ + object, + uuid(D11EA6B6-3909-4376-B7C4-10D50F5CF3AE), + pointer_default(ref) +] +interface IAppxBundleFactory3 : IUnknown +{ + HRESULT CreateBundleReaderFromSourceUri( + [in] LPCWSTR uri, + [in, unique, string] LPCWSTR expectedDigest, + [out, retval] IAppxBundleReader** bundleReader + ); +} + +[ + object, + uuid(EC446FE8-BFEC-4C64-AB4F-49F038F0C6D2), + pointer_default(ref) +] +interface IAppxBundleWriter : IUnknown +{ + HRESULT AddPayloadPackage( + [in, string] LPCWSTR fileName, + [in] IStream* packageStream + ); + + HRESULT Close(); +} + +[ + object, + uuid(6D8FE971-01CC-49A0-B685-233851279962), + pointer_default(ref) +] +interface IAppxBundleWriter2 : IUnknown +{ + HRESULT AddExternalPackageReference( + [in, string] LPCWSTR fileName, + [in] IStream* inputStream + ); +} + +[ + object, + uuid(AD711152-F969-4193-82D5-9DDF2786D21A), + pointer_default(ref) +] +interface IAppxBundleWriter3 : IUnknown +{ + HRESULT AddPackageReference( + [in, string] LPCWSTR fileName, + [in] IStream* inputStream + ); + + HRESULT Close( + [in, string] LPCWSTR hashMethodString + ); +} + +[ + object, + uuid(9CD9D523-5009-4C01-9882-DC029FBD47A3), + pointer_default(ref) +] +interface IAppxBundleWriter4 : IUnknown +{ + HRESULT AddPayloadPackage( + [in, string] LPCWSTR fileName, + [in] IStream* packageStream, + [in] BOOL isDefaultApplicablePackage + ); + + HRESULT AddPackageReference( + [in, string] LPCWSTR fileName, + [in] IStream* inputStream, + [in] BOOL isDefaultApplicablePackage + ); + + HRESULT AddExternalPackageReference( + [in, string] LPCWSTR fileName, + [in] IStream* inputStream, + [in] BOOL isDefaultApplicablePackage + ); +} + +[ + object, + uuid(DD75B8C0-BA76-43B0-AE0F-68656A1DC5C8), + pointer_default(ref) +] +interface IAppxBundleReader : IUnknown +{ + HRESULT GetFootprintFile( + [in] APPX_BUNDLE_FOOTPRINT_FILE_TYPE fileType, + [out, retval] IAppxFile** footprintFile + ); + + HRESULT GetBlockMap( + [out, retval] IAppxBlockMapReader** blockMapReader + ); + + HRESULT GetManifest( + [out, retval] IAppxBundleManifestReader** manifestReader + ); + + HRESULT GetPayloadPackages( + [out, retval] IAppxFilesEnumerator** payloadPackages + ); + + HRESULT GetPayloadPackage( + [in, string] LPCWSTR fileName, + [out, retval] IAppxFile** payloadPackage + ); +} + +[ + object, + uuid(98262195-D63A-4C10-B4CF-DD72E061BA87), + pointer_default(ref) +] +interface IAppxBundleReader2 : IUnknown +{ + HRESULT GetPayloadPackageReader( + [in, string] LPCWSTR fileName, + [out, retval] IAppxPackageReader** payloadPackageReader + ); +} + +[ + object, + uuid(CF0EBBC1-CC99-4106-91EB-E67462E04FB0), + pointer_default(ref) +] +interface IAppxBundleManifestReader : IUnknown +{ + HRESULT GetPackageId( + [out, retval] IAppxManifestPackageId** packageId + ); + + HRESULT GetPackageInfoItems( + [out, retval] IAppxBundleManifestPackageInfoEnumerator** packageInfoItems + ); + + HRESULT GetStream( + [out, retval] IStream** manifestStream + ); +} + +[ + object, + uuid(5517DF70-033F-4AF2-8213-87D766805C02), + pointer_default(ref) +] +interface IAppxBundleManifestReader2 : IUnknown +{ + HRESULT GetOptionalBundles( + [out, retval] IAppxBundleManifestOptionalBundleInfoEnumerator** optionalBundles + ); +} + +[ + object, + uuid(F9B856EE-49A6-4E19-B2B0-6A2406D63A32), + pointer_default(ref) +] +interface IAppxBundleManifestPackageInfoEnumerator : IUnknown +{ + HRESULT GetCurrent( + [out, retval] IAppxBundleManifestPackageInfo** packageInfo + ); + + HRESULT GetHasCurrent( + [out, retval] BOOL* hasCurrent + ); + + HRESULT MoveNext( + [out, retval] BOOL* hasNext + ); +} + +[ + object, + uuid(54CD06C1-268F-40BB-8ED2-757A9EBAEC8D), + pointer_default(ref) +] +interface IAppxBundleManifestPackageInfo : IUnknown +{ + HRESULT GetPackageType( + [out, retval] APPX_BUNDLE_PAYLOAD_PACKAGE_TYPE* packageType + ); + + HRESULT GetPackageId( + [out, retval] IAppxManifestPackageId** packageId + ); + + HRESULT GetFileName( + [out, string, retval] LPWSTR* fileName + ); + + HRESULT GetOffset( + [out, retval] UINT64* offset + ); + + HRESULT GetSize( + [out, retval] UINT64* size + ); + + HRESULT GetResources( + [out, retval] IAppxManifestQualifiedResourcesEnumerator** resources + ); +} + +[ + object, + uuid(44C2ACBC-B2CF-4CCB-BBDB-9C6DA8C3BC9E), + pointer_default(ref) +] +interface IAppxBundleManifestPackageInfo2 : IUnknown +{ + HRESULT GetIsPackageReference( + [out, retval] BOOL* isPackageReference + ); + + HRESULT GetIsNonQualifiedResourcePackage( + [out, retval] BOOL* isNonQualifiedResourcePackage + ); + + HRESULT GetIsDefaultApplicablePackage( + [out, retval] BOOL* isDefaultApplicablePackage + ); +} + +[ + object, + uuid(6BA74B98-BB74-4296-80D0-5F4256A99675), + pointer_default(ref) +] +interface IAppxBundleManifestPackageInfo3 : IUnknown +{ + HRESULT GetTargetDeviceFamilies( + [out, retval] IAppxManifestTargetDeviceFamiliesEnumerator** targetDeviceFamilies + ); +} + +[ + object, + uuid(5DA6F13D-A8A7-4532-857C-1393D659371D), + pointer_default(ref) +] +interface IAppxBundleManifestPackageInfo4 : IUnknown +{ + HRESULT GetIsStub( + [out, retval] BOOL* isStub + ); +} + +[ + object, + uuid(9A178793-F97E-46AC-AACA-DD5BA4C177C8), + pointer_default(ref) +] +interface IAppxBundleManifestOptionalBundleInfoEnumerator : IUnknown +{ + HRESULT GetCurrent( + [out, retval] IAppxBundleManifestOptionalBundleInfo** optionalBundle + ); + + HRESULT GetHasCurrent( + [out, retval] BOOL* hasCurrent + ); + + HRESULT MoveNext( + [out, retval] BOOL* hasNext + ); +} + +[ + object, + uuid(515BF2E8-BCB0-4D69-8C48-E383147B6E12), + pointer_default(ref) +] +interface IAppxBundleManifestOptionalBundleInfo : IUnknown +{ + HRESULT GetPackageId( + [out, retval] IAppxManifestPackageId** packageId + ); + + HRESULT GetFileName( + [out, string, retval] LPWSTR* fileName + ); + + HRESULT GetPackageInfoItems( + [out, retval] IAppxBundleManifestPackageInfoEnumerator** packageInfoItems + ); +} + +[ + object, + uuid(1a09a2fd-7440-44eb-8c84-848205a6a1cc), + pointer_default(ref) +] +interface IAppxContentGroupFilesEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] LPWSTR* file + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL* hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL* hasNext + ); +} + +[ + object, + uuid(328f6468-c04f-4e3c-b6fa-6b8d27f3003a), + pointer_default(ref) +] +interface IAppxContentGroup : IUnknown +{ + HRESULT + GetName( + [out, string, retval] LPWSTR* groupName + ); + + HRESULT + GetFiles( + [out, retval] IAppxContentGroupFilesEnumerator** enumerator + ); +} + +[ + object, + uuid(3264e477-16d1-4d63-823e-7d2984696634), + pointer_default(ref) +] +interface IAppxContentGroupsEnumerator : IUnknown +{ + HRESULT + GetCurrent( + [out, retval] IAppxContentGroup** stream + ); + + HRESULT + GetHasCurrent( + [out, retval] BOOL* hasCurrent + ); + + HRESULT + MoveNext( + [out, retval] BOOL* hasNext + ); +} + +[ + object, + uuid(418726d8-dd99-4f5d-9886-157add20de01), + pointer_default(ref) +] +interface IAppxContentGroupMapReader : IUnknown +{ + HRESULT + GetRequiredGroup( + [out, retval] IAppxContentGroup** requiredGroup + ); + + HRESULT + GetAutomaticGroups( + [out, retval] IAppxContentGroupsEnumerator** automaticGroupsEnumerator + ); +} + +[ + object, + uuid(f329791d-540b-4a9f-bc75-3282b7d73193), + pointer_default(ref) +] +interface IAppxSourceContentGroupMapReader : IUnknown +{ + HRESULT + GetRequiredGroup( + [out, retval] IAppxContentGroup** requiredGroup + ); + + HRESULT + GetAutomaticGroups( + [out, retval] IAppxContentGroupsEnumerator** automaticGroupsEnumerator + ); +} + +[ + object, + uuid(d07ab776-a9de-4798-8c14-3db31e687c78), + pointer_default(ref) +] +interface IAppxContentGroupMapWriter : IUnknown +{ + HRESULT + AddAutomaticGroup( + [in, string] LPCWSTR groupName + ); + + HRESULT + AddAutomaticFile( + [in, string] LPCWSTR fileName + ); + + HRESULT + Close(); +} + +[ + object, + uuid(17239D47-6ADB-45D2-80F6-F9CBC3BF059D), + pointer_default(ref) +] +interface IAppxPackagingDiagnosticEventSink : IUnknown +{ + HRESULT ReportContextChange( + [in] APPX_PACKAGING_CONTEXT_CHANGE_TYPE changeType, + [in] LONG contextId, + [in, string] LPCSTR contextName, + [in, string] LPCWSTR contextMessage, + [in, string] LPCWSTR detailsMessage); + + HRESULT ReportError( + [in, string] LPCWSTR errorMessage); +} + +[ + object, + uuid(369648FA-A7EB-4909-A15D-6954A078F18A), + pointer_default(ref) +] +interface IAppxPackagingDiagnosticEventSinkManager : IUnknown +{ + HRESULT SetSinkForProcess( + [in] IAppxPackagingDiagnosticEventSink* sink); +} + +[ + object, + uuid(f35bc38c-1d2f-43db-a1f4-586430d1fed2), + pointer_default(ref) +] +interface IAppxAppInstallerReader : IUnknown +{ + HRESULT + GetXmlDom( + [out, retval] IXMLDOMDocument** dom + ); +} + +[ + object, + uuid(9fe2702b-7640-4659-8e6c-349e43c4cdbd), + pointer_default(ref) +] +interface IAppxDigestProvider : IUnknown +{ + HRESULT + GetDigest( + [out, retval] LPWSTR* digest + ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") +typedef struct APPX_ENCRYPTED_PACKAGE_SETTINGS +{ + UINT32 keyLength; + LPCWSTR encryptionAlgorithm; + BOOL useDiffusion; + IUri* blockMapHashAlgorithm; +} APPX_ENCRYPTED_PACKAGE_SETTINGS; + +typedef [v1_enum] enum APPX_ENCRYPTED_PACKAGE_OPTIONS +{ + APPX_ENCRYPTED_PACKAGE_OPTION_NONE = 0, + APPX_ENCRYPTED_PACKAGE_OPTION_DIFFUSION = 0x1, + APPX_ENCRYPTED_PACKAGE_OPTION_PAGE_HASHING = 0x2, +} APPX_ENCRYPTED_PACKAGE_OPTIONS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(APPX_ENCRYPTED_PACKAGE_OPTIONS);") + +typedef struct APPX_ENCRYPTED_PACKAGE_SETTINGS2 +{ + UINT32 keyLength; + LPCWSTR encryptionAlgorithm; + IUri* blockMapHashAlgorithm; + DWORD options; +} APPX_ENCRYPTED_PACKAGE_SETTINGS2; + +typedef struct APPX_KEY_INFO +{ + UINT32 keyLength; + UINT32 keyIdLength; + [size_is(keyLength)] BYTE* key; + [size_is(keyIdLength)] BYTE* keyId; +} APPX_KEY_INFO; + +typedef struct APPX_ENCRYPTED_EXEMPTIONS +{ + UINT32 count; + [size_is(count), unique] LPCWSTR *plainTextFiles; +} APPX_ENCRYPTED_EXEMPTIONS; + +[ + object, + uuid(80E8E04D-8C88-44AE-A011-7CADF6FB2E72), + pointer_default(ref) +] +interface IAppxEncryptionFactory : IUnknown +{ + HRESULT EncryptPackage( + [in] IStream * inputStream, + [in] IStream * outputStream, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS * settings, + [in] const APPX_KEY_INFO * keyInfo, + [in] const APPX_ENCRYPTED_EXEMPTIONS * exemptedFiles + ); + + HRESULT DecryptPackage( + [in] IStream * inputStream, + [in] IStream * outputStream, + [in] const APPX_KEY_INFO * keyInfo + ); + + HRESULT CreateEncryptedPackageWriter( + [in] IStream * outputStream, + [in] IStream * manifestStream, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS * settings, + [in] const APPX_KEY_INFO * keyInfo, + [in] const APPX_ENCRYPTED_EXEMPTIONS * exemptedFiles, + [out, retval] IAppxEncryptedPackageWriter ** packageWriter + ); + + HRESULT CreateEncryptedPackageReader( + [in] IStream * inputStream, + [in] const APPX_KEY_INFO * keyInfo, + [out, retval] IAppxPackageReader ** packageReader + ); + + HRESULT EncryptBundle( + [in] IStream * inputStream, + [in] IStream * outputStream, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS * settings, + [in] const APPX_KEY_INFO * keyInfo, + [in] const APPX_ENCRYPTED_EXEMPTIONS * exemptedFiles + ); + + HRESULT DecryptBundle( + [in] IStream * inputStream, + [in] IStream * outputStream, + [in] const APPX_KEY_INFO * keyInfo + ); + + HRESULT CreateEncryptedBundleWriter( + [in] IStream * outputStream, + [in] UINT64 bundleVersion, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS * settings, + [in] const APPX_KEY_INFO * keyInfo, + [in] const APPX_ENCRYPTED_EXEMPTIONS * exemptedFiles, + [out, retval] IAppxEncryptedBundleWriter ** bundleWriter + ); + + HRESULT CreateEncryptedBundleReader( + [in] IStream * inputStream, + [in] const APPX_KEY_INFO * keyInfo, + [out, retval] IAppxBundleReader** bundleReader + ); +} + +[ + object, + uuid(c1b11eee-c4ba-4ab2-a55d-d015fe8ff64f), + pointer_default(ref) +] +interface IAppxEncryptionFactory2 : IUnknown +{ + HRESULT CreateEncryptedPackageWriter( + [in] IStream * outputStream, + [in] IStream * manifestStream, + [in] IStream * contentGroupMapStream, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS * settings, + [in] const APPX_KEY_INFO * keyInfo, + [in] const APPX_ENCRYPTED_EXEMPTIONS * exemptedFiles, + [out, retval] IAppxEncryptedPackageWriter ** packageWriter + ); +} + +[ + object, + uuid(09edca37-cd64-47d6-b7e8-1cb11d4f7e05), + pointer_default(ref) +] +interface IAppxEncryptionFactory3 : IUnknown +{ + HRESULT EncryptPackage( + [in] IStream * inputStream, + [in] IStream * outputStream, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS2 * settings, + [in] const APPX_KEY_INFO * keyInfo, + [in] const APPX_ENCRYPTED_EXEMPTIONS * exemptedFiles + ); + + HRESULT CreateEncryptedPackageWriter( + [in] IStream * outputStream, + [in] IStream * manifestStream, + [in] IStream * contentGroupMapStream, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS2 * settings, + [in] const APPX_KEY_INFO * keyInfo, + [in] const APPX_ENCRYPTED_EXEMPTIONS * exemptedFiles, + [out, retval] IAppxEncryptedPackageWriter ** packageWriter + ); + + HRESULT EncryptBundle( + [in] IStream * inputStream, + [in] IStream * outputStream, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS2 * settings, + [in] const APPX_KEY_INFO * keyInfo, + [in] const APPX_ENCRYPTED_EXEMPTIONS * exemptedFiles + ); + + HRESULT CreateEncryptedBundleWriter( + [in] IStream * outputStream, + [in] UINT64 bundleVersion, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS2 * settings, + [in] const APPX_KEY_INFO * keyInfo, + [in] const APPX_ENCRYPTED_EXEMPTIONS * exemptedFiles, + [out, retval] IAppxEncryptedBundleWriter ** bundleWriter + ); +} + +[ + object, + uuid(A879611F-12FD-41fe-85D5-06AE779BBAF5), + pointer_default(ref) +] +interface IAppxEncryptionFactory4 : IUnknown +{ + HRESULT EncryptPackage( + [in] IStream * inputStream, + [in] IStream * outputStream, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS2 * settings, + [in] const APPX_KEY_INFO * keyInfo, + [in] const APPX_ENCRYPTED_EXEMPTIONS * exemptedFiles, + [in] UINT64 memoryLimit + ); +} + +[ + object, + uuid(68d6e77a-f446-480f-b0f0-d91a24c60746), + pointer_default(ref) +] +interface IAppxEncryptionFactory5 : IUnknown +{ + HRESULT CreateEncryptedPackageReader2( + [in] IStream * inputStream, + [in, optional] const APPX_KEY_INFO * keyInfo, + [in, optional] LPCWSTR expectedDigest, + [out, retval] IAppxPackageReader ** packageReader + ); + + HRESULT CreateEncryptedBundleReader2( + [in] IStream * inputStream, + [in, optional] const APPX_KEY_INFO * keyInfo, + [in, optional] LPCWSTR expectedDigest, + [out, retval] IAppxBundleReader** bundleReader + ); +} + +[ + object, + uuid(F43D0B0B-1379-40E2-9B29-682EA2BF42AF), + pointer_default(ref) +] +interface IAppxEncryptedPackageWriter : IUnknown +{ + HRESULT AddPayloadFileEncrypted( + [in, string] LPCWSTR fileName, + [in] APPX_COMPRESSION_OPTION compressionOption, + [in] IStream * inputStream + ); + + HRESULT Close(); +} + +[ + object, + uuid(3E475447-3A25-40b5-8AD2-F953AE50C92D), + pointer_default(ref) +] +interface IAppxEncryptedPackageWriter2 : IUnknown +{ + HRESULT + AddPayloadFilesEncrypted( + [in] UINT32 fileCount, + [in, size_is(fileCount)] APPX_PACKAGE_WRITER_PAYLOAD_STREAM* payloadFiles, + [in] UINT64 memoryLimit + ); +} + +[ + object, + uuid(80B0902F-7BF0-4117-B8C6-4279EF81EE77), + pointer_default(ref) +] +interface IAppxEncryptedBundleWriter : IUnknown +{ + HRESULT AddPayloadPackageEncrypted( + [in, string] LPCWSTR fileName, + [in] IStream* packageStream + ); + + HRESULT Close(); +} + +[ + object, + uuid(E644BE82-F0FA-42B8-A956-8D1CB48EE379), + pointer_default(ref) +] +interface IAppxEncryptedBundleWriter2 : IUnknown +{ + HRESULT AddExternalPackageReference( + [in, string] LPCWSTR fileName, + [in] IStream* inputStream + ); +} + +typedef [v1_enum] enum APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION +{ + APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION_APPEND_DELTA = 0x00, +} APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION; + +typedef [v1_enum] enum APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS +{ + APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTION_NONE = 0x00, + APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTION_SKIP_VALIDATION = 0x01, + APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTION_LOCALIZED = 0x02 +} APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS);") + +[ + object, + uuid(0D34DEB3-5CAE-4DD3-977C-504932A51D31), + pointer_default(ref) +] +interface IAppxEncryptedBundleWriter3 : IUnknown +{ + HRESULT AddPayloadPackageEncrypted( + [in, string] LPCWSTR fileName, + [in] IStream* packageStream, + [in] BOOL isDefaultApplicablePackage + ); + + HRESULT AddExternalPackageReference( + [in, string] LPCWSTR fileName, + [in] IStream* inputStream, + [in] BOOL isDefaultApplicablePackage + ); +} + +[ + object, + uuid(E2ADB6DC-5E71-4416-86B6-86E5F5291A6B), + pointer_default(ref) +] +interface IAppxPackageEditor : IUnknown +{ + HRESULT SetWorkingDirectory( + [in, string] LPCWSTR workingDirectory + ); + + HRESULT CreateDeltaPackage( + [in] IStream* updatedPackageStream, + [in] IStream* baselinePackageStream, + [in] IStream* deltaPackageStream + ); + + HRESULT CreateDeltaPackageUsingBaselineBlockMap( + [in] IStream* updatedPackageStream, + [in] IStream* baselineBlockMapStream, + [in, string] LPCWSTR baselinePackageFullName, + [in] IStream* deltaPackageStream + ); + + HRESULT UpdatePackage( + [in] IStream* baselinePackageStream, + [in] IStream* deltaPackageStream, + [in] APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION updateOption + ); + + HRESULT UpdateEncryptedPackage( + [in] IStream* baselineEncryptedPackageStream, + [in] IStream* deltaPackageStream, + [in] APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_OPTION updateOption, + [in] const APPX_ENCRYPTED_PACKAGE_SETTINGS2 * settings, + [in] const APPX_KEY_INFO* keyInfo + ); + + HRESULT UpdatePackageManifest( + [in] IStream* packageStream, + [in] IStream* updatedManifestStream, + [in] BOOL isPackageEncrypted, + [in] APPX_PACKAGE_EDITOR_UPDATE_PACKAGE_MANIFEST_OPTIONS options + ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +[ + uuid(d7255437-34ff-48d1-b726-601dc4de4cad), + version(1.0), + lcid(0x0000) +] +library APPXPACKAGING { + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") +[ + uuid(5842a140-ff9f-4166-8f5c-62f5b7b0c781) +] +coclass AppxFactory +{ + interface IAppxFactory4; + interface IAppxFactory3; + interface IAppxFactory2; + [default] interface IAppxFactory; +}; + +[ + uuid(378E0446-5384-43B7-8877-E7DBDD883446) +] +coclass AppxBundleFactory +{ + interface IAppxBundleFactory3; + interface IAppxBundleFactory2; + [default] interface IAppxBundleFactory; +}; + +[ + uuid(50CA0A46-1588-4161-8ED2-EF9E469CED5D) +] +coclass AppxPackagingDiagnosticEventSinkManager +{ + [default] interface IAppxPackagingDiagnosticEventSinkManager; +}; + +[ + uuid(FB1B3839-09DA-404F-B002-9CBB8DA5CA4F) +] +coclass AppxPackagingServiceProvider +{ + [default] interface IServiceProvider; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") +[ + uuid(DC664FDD-D868-46EE-8780-8D196CB739F7) +] +coclass AppxEncryptionFactory +{ + interface IAppxEncryptionFactory5; + interface IAppxEncryptionFactory4; + interface IAppxEncryptionFactory3; + interface IAppxEncryptionFactory2; + [default] interface IAppxEncryptionFactory; +}; + +[ + uuid(F004F2CA-AEBC-4B0D-BF58-E516D5BCC0AB) +] +coclass AppxPackageEditor +{ + [default] interface IAppxPackageEditor; +}; +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +}; // library APPXPACKAGING +cpp_quote("#endif // (NTDDI >= NTDDI_WIN7)") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Asptlb.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Asptlb.h new file mode 100644 index 0000000000000000000000000000000000000000..81786d57ab37b020db5543a8cc79d4f4655bfaad --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Asptlb.h @@ -0,0 +1,3057 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __asptlb_h__ +#define __asptlb_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IStringList_FWD_DEFINED__ +#define __IStringList_FWD_DEFINED__ +typedef interface IStringList IStringList; + +#endif /* __IStringList_FWD_DEFINED__ */ + + +#ifndef __IRequestDictionary_FWD_DEFINED__ +#define __IRequestDictionary_FWD_DEFINED__ +typedef interface IRequestDictionary IRequestDictionary; + +#endif /* __IRequestDictionary_FWD_DEFINED__ */ + + +#ifndef __IRequest_FWD_DEFINED__ +#define __IRequest_FWD_DEFINED__ +typedef interface IRequest IRequest; + +#endif /* __IRequest_FWD_DEFINED__ */ + + +#ifndef __Request_FWD_DEFINED__ +#define __Request_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Request Request; +#else +typedef struct Request Request; +#endif /* __cplusplus */ + +#endif /* __Request_FWD_DEFINED__ */ + + +#ifndef __IReadCookie_FWD_DEFINED__ +#define __IReadCookie_FWD_DEFINED__ +typedef interface IReadCookie IReadCookie; + +#endif /* __IReadCookie_FWD_DEFINED__ */ + + +#ifndef __IWriteCookie_FWD_DEFINED__ +#define __IWriteCookie_FWD_DEFINED__ +typedef interface IWriteCookie IWriteCookie; + +#endif /* __IWriteCookie_FWD_DEFINED__ */ + + +#ifndef __IResponse_FWD_DEFINED__ +#define __IResponse_FWD_DEFINED__ +typedef interface IResponse IResponse; + +#endif /* __IResponse_FWD_DEFINED__ */ + + +#ifndef __Response_FWD_DEFINED__ +#define __Response_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Response Response; +#else +typedef struct Response Response; +#endif /* __cplusplus */ + +#endif /* __Response_FWD_DEFINED__ */ + + +#ifndef __IVariantDictionary_FWD_DEFINED__ +#define __IVariantDictionary_FWD_DEFINED__ +typedef interface IVariantDictionary IVariantDictionary; + +#endif /* __IVariantDictionary_FWD_DEFINED__ */ + + +#ifndef __ISessionObject_FWD_DEFINED__ +#define __ISessionObject_FWD_DEFINED__ +typedef interface ISessionObject ISessionObject; + +#endif /* __ISessionObject_FWD_DEFINED__ */ + + +#ifndef __Session_FWD_DEFINED__ +#define __Session_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Session Session; +#else +typedef struct Session Session; +#endif /* __cplusplus */ + +#endif /* __Session_FWD_DEFINED__ */ + + +#ifndef __IApplicationObject_FWD_DEFINED__ +#define __IApplicationObject_FWD_DEFINED__ +typedef interface IApplicationObject IApplicationObject; + +#endif /* __IApplicationObject_FWD_DEFINED__ */ + + +#ifndef __Application_FWD_DEFINED__ +#define __Application_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Application Application; +#else +typedef struct Application Application; +#endif /* __cplusplus */ + +#endif /* __Application_FWD_DEFINED__ */ + + +#ifndef __IASPError_FWD_DEFINED__ +#define __IASPError_FWD_DEFINED__ +typedef interface IASPError IASPError; + +#endif /* __IASPError_FWD_DEFINED__ */ + + +#ifndef __IServer_FWD_DEFINED__ +#define __IServer_FWD_DEFINED__ +typedef interface IServer IServer; + +#endif /* __IServer_FWD_DEFINED__ */ + + +#ifndef __Server_FWD_DEFINED__ +#define __Server_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Server Server; +#else +typedef struct Server Server; +#endif /* __cplusplus */ + +#endif /* __Server_FWD_DEFINED__ */ + + +#ifndef __IScriptingContext_FWD_DEFINED__ +#define __IScriptingContext_FWD_DEFINED__ +typedef interface IScriptingContext IScriptingContext; + +#endif /* __IScriptingContext_FWD_DEFINED__ */ + + +#ifndef __ScriptingContext_FWD_DEFINED__ +#define __ScriptingContext_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ScriptingContext ScriptingContext; +#else +typedef struct ScriptingContext ScriptingContext; +#endif /* __cplusplus */ + +#endif /* __ScriptingContext_FWD_DEFINED__ */ + + +#ifdef __cplusplus +extern "C"{ +#endif + + + +#ifndef __ASPTypeLibrary_LIBRARY_DEFINED__ +#define __ASPTypeLibrary_LIBRARY_DEFINED__ + +/* library ASPTypeLibrary */ +/* [version][lcid][helpstring][uuid] */ + + +DEFINE_GUID(LIBID_ASPTypeLibrary,0xD97A6DA0,0xA85C,0x11cf,0x83,0xAE,0x00,0xA0,0xC9,0x0C,0x2B,0xD8); + +#ifndef __IStringList_INTERFACE_DEFINED__ +#define __IStringList_INTERFACE_DEFINED__ + +/* interface IStringList */ +/* [object][hidden][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IStringList,0xD97A6DA0,0xA85D,0x11cf,0x83,0xAE,0x00,0xA0,0xC9,0x0C,0x2B,0xD8); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D97A6DA0-A85D-11cf-83AE-00A0C90C2BD8") + IStringList : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in][optional] */ VARIANT i, + /* [retval][out] */ __RPC__out VARIANT *pVariantReturn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out int *cStrRet) = 0; + + virtual /* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumReturn) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IStringListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IStringList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IStringList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IStringList * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IStringList * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IStringList * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IStringList * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IStringList * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IStringList, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IStringList * This, + /* [in][optional] */ VARIANT i, + /* [retval][out] */ __RPC__out VARIANT *pVariantReturn); + + DECLSPEC_XFGVIRT(IStringList, get_Count) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IStringList * This, + /* [retval][out] */ __RPC__out int *cStrRet); + + DECLSPEC_XFGVIRT(IStringList, get__NewEnum) + /* [restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IStringList * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumReturn); + + END_INTERFACE + } IStringListVtbl; + + interface IStringList + { + CONST_VTBL struct IStringListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IStringList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IStringList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IStringList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IStringList_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IStringList_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IStringList_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IStringList_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IStringList_get_Item(This,i,pVariantReturn) \ + ( (This)->lpVtbl -> get_Item(This,i,pVariantReturn) ) + +#define IStringList_get_Count(This,cStrRet) \ + ( (This)->lpVtbl -> get_Count(This,cStrRet) ) + +#define IStringList_get__NewEnum(This,ppEnumReturn) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumReturn) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IStringList_INTERFACE_DEFINED__ */ + + +#ifndef __IRequestDictionary_INTERFACE_DEFINED__ +#define __IRequestDictionary_INTERFACE_DEFINED__ + +/* interface IRequestDictionary */ +/* [object][hidden][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IRequestDictionary,0xD97A6DA0,0xA85F,0x11df,0x83,0xAE,0x00,0xA0,0xC9,0x0C,0x2B,0xD8); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D97A6DA0-A85F-11df-83AE-00A0C90C2BD8") + IRequestDictionary : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in][optional] */ VARIANT Var, + /* [retval][out] */ __RPC__out VARIANT *pVariantReturn) = 0; + + virtual /* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumReturn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out int *cStrRet) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Key( + /* [in] */ VARIANT VarKey, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRequestDictionaryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRequestDictionary * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRequestDictionary * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRequestDictionary * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IRequestDictionary * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IRequestDictionary * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IRequestDictionary * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IRequestDictionary * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IRequestDictionary, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IRequestDictionary * This, + /* [in][optional] */ VARIANT Var, + /* [retval][out] */ __RPC__out VARIANT *pVariantReturn); + + DECLSPEC_XFGVIRT(IRequestDictionary, get__NewEnum) + /* [restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IRequestDictionary * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumReturn); + + DECLSPEC_XFGVIRT(IRequestDictionary, get_Count) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IRequestDictionary * This, + /* [retval][out] */ __RPC__out int *cStrRet); + + DECLSPEC_XFGVIRT(IRequestDictionary, get_Key) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Key )( + __RPC__in IRequestDictionary * This, + /* [in] */ VARIANT VarKey, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + END_INTERFACE + } IRequestDictionaryVtbl; + + interface IRequestDictionary + { + CONST_VTBL struct IRequestDictionaryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRequestDictionary_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRequestDictionary_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRequestDictionary_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRequestDictionary_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IRequestDictionary_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IRequestDictionary_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IRequestDictionary_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IRequestDictionary_get_Item(This,Var,pVariantReturn) \ + ( (This)->lpVtbl -> get_Item(This,Var,pVariantReturn) ) + +#define IRequestDictionary_get__NewEnum(This,ppEnumReturn) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumReturn) ) + +#define IRequestDictionary_get_Count(This,cStrRet) \ + ( (This)->lpVtbl -> get_Count(This,cStrRet) ) + +#define IRequestDictionary_get_Key(This,VarKey,pvar) \ + ( (This)->lpVtbl -> get_Key(This,VarKey,pvar) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRequestDictionary_INTERFACE_DEFINED__ */ + + +#ifndef __IRequest_INTERFACE_DEFINED__ +#define __IRequest_INTERFACE_DEFINED__ + +/* interface IRequest */ +/* [object][hidden][dual][oleautomation][uuid] */ + + +DEFINE_GUID(IID_IRequest,0xD97A6DA0,0xA861,0x11cf,0x93,0xAE,0x00,0xA0,0xC9,0x0C,0x2B,0xD8); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D97A6DA0-A861-11cf-93AE-00A0C90C2BD8") + IRequest : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ __RPC__in BSTR bstrVar, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppObjReturn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_QueryString( + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Form( + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn) = 0; + + virtual /* [hidden][propget] */ HRESULT STDMETHODCALLTYPE get_Body( + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ServerVariables( + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ClientCertificate( + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Cookies( + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_TotalBytes( + /* [retval][out] */ __RPC__out long *pcbTotal) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE BinaryRead( + /* [out][in] */ __RPC__inout VARIANT *pvarCountToRead, + /* [retval][out] */ __RPC__out VARIANT *pvarReturn) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRequestVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRequest * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRequest * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRequest * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IRequest * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IRequest * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IRequest * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IRequest * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IRequest, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IRequest * This, + /* [in] */ __RPC__in BSTR bstrVar, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppObjReturn); + + DECLSPEC_XFGVIRT(IRequest, get_QueryString) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QueryString )( + __RPC__in IRequest * This, + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn); + + DECLSPEC_XFGVIRT(IRequest, get_Form) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Form )( + __RPC__in IRequest * This, + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn); + + DECLSPEC_XFGVIRT(IRequest, get_Body) + /* [hidden][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Body )( + __RPC__in IRequest * This, + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn); + + DECLSPEC_XFGVIRT(IRequest, get_ServerVariables) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerVariables )( + __RPC__in IRequest * This, + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn); + + DECLSPEC_XFGVIRT(IRequest, get_ClientCertificate) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientCertificate )( + __RPC__in IRequest * This, + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn); + + DECLSPEC_XFGVIRT(IRequest, get_Cookies) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Cookies )( + __RPC__in IRequest * This, + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppDictReturn); + + DECLSPEC_XFGVIRT(IRequest, get_TotalBytes) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalBytes )( + __RPC__in IRequest * This, + /* [retval][out] */ __RPC__out long *pcbTotal); + + DECLSPEC_XFGVIRT(IRequest, BinaryRead) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *BinaryRead )( + __RPC__in IRequest * This, + /* [out][in] */ __RPC__inout VARIANT *pvarCountToRead, + /* [retval][out] */ __RPC__out VARIANT *pvarReturn); + + END_INTERFACE + } IRequestVtbl; + + interface IRequest + { + CONST_VTBL struct IRequestVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRequest_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRequest_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRequest_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRequest_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IRequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IRequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IRequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IRequest_get_Item(This,bstrVar,ppObjReturn) \ + ( (This)->lpVtbl -> get_Item(This,bstrVar,ppObjReturn) ) + +#define IRequest_get_QueryString(This,ppDictReturn) \ + ( (This)->lpVtbl -> get_QueryString(This,ppDictReturn) ) + +#define IRequest_get_Form(This,ppDictReturn) \ + ( (This)->lpVtbl -> get_Form(This,ppDictReturn) ) + +#define IRequest_get_Body(This,ppDictReturn) \ + ( (This)->lpVtbl -> get_Body(This,ppDictReturn) ) + +#define IRequest_get_ServerVariables(This,ppDictReturn) \ + ( (This)->lpVtbl -> get_ServerVariables(This,ppDictReturn) ) + +#define IRequest_get_ClientCertificate(This,ppDictReturn) \ + ( (This)->lpVtbl -> get_ClientCertificate(This,ppDictReturn) ) + +#define IRequest_get_Cookies(This,ppDictReturn) \ + ( (This)->lpVtbl -> get_Cookies(This,ppDictReturn) ) + +#define IRequest_get_TotalBytes(This,pcbTotal) \ + ( (This)->lpVtbl -> get_TotalBytes(This,pcbTotal) ) + +#define IRequest_BinaryRead(This,pvarCountToRead,pvarReturn) \ + ( (This)->lpVtbl -> BinaryRead(This,pvarCountToRead,pvarReturn) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRequest_INTERFACE_DEFINED__ */ + + +DEFINE_GUID(CLSID_Request,0x920c25d0,0x25d9,0x11d0,0xa5,0x5f,0x00,0xa0,0xc9,0x0c,0x20,0x91); + +#ifdef __cplusplus + +class DECLSPEC_UUID("920c25d0-25d9-11d0-a55f-00a0c90c2091") +Request; +#endif + +#ifndef __IReadCookie_INTERFACE_DEFINED__ +#define __IReadCookie_INTERFACE_DEFINED__ + +/* interface IReadCookie */ +/* [object][hidden][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IReadCookie,0x71EAF260,0x0CE0,0x11D0,0xA5,0x3E,0x00,0xA0,0xC9,0x0C,0x20,0x91); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("71EAF260-0CE0-11D0-A53E-00A0C90C2091") + IReadCookie : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in][optional] */ VARIANT Var, + /* [retval][out] */ __RPC__out VARIANT *pVariantReturn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_HasKeys( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfHasKeys) = 0; + + virtual /* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumReturn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out int *cStrRet) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Key( + /* [in] */ VARIANT VarKey, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IReadCookieVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IReadCookie * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IReadCookie * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IReadCookie * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IReadCookie * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IReadCookie * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IReadCookie * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IReadCookie * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IReadCookie, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IReadCookie * This, + /* [in][optional] */ VARIANT Var, + /* [retval][out] */ __RPC__out VARIANT *pVariantReturn); + + DECLSPEC_XFGVIRT(IReadCookie, get_HasKeys) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HasKeys )( + __RPC__in IReadCookie * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfHasKeys); + + DECLSPEC_XFGVIRT(IReadCookie, get__NewEnum) + /* [restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IReadCookie * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumReturn); + + DECLSPEC_XFGVIRT(IReadCookie, get_Count) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IReadCookie * This, + /* [retval][out] */ __RPC__out int *cStrRet); + + DECLSPEC_XFGVIRT(IReadCookie, get_Key) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Key )( + __RPC__in IReadCookie * This, + /* [in] */ VARIANT VarKey, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + END_INTERFACE + } IReadCookieVtbl; + + interface IReadCookie + { + CONST_VTBL struct IReadCookieVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IReadCookie_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IReadCookie_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IReadCookie_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IReadCookie_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IReadCookie_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IReadCookie_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IReadCookie_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IReadCookie_get_Item(This,Var,pVariantReturn) \ + ( (This)->lpVtbl -> get_Item(This,Var,pVariantReturn) ) + +#define IReadCookie_get_HasKeys(This,pfHasKeys) \ + ( (This)->lpVtbl -> get_HasKeys(This,pfHasKeys) ) + +#define IReadCookie_get__NewEnum(This,ppEnumReturn) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumReturn) ) + +#define IReadCookie_get_Count(This,cStrRet) \ + ( (This)->lpVtbl -> get_Count(This,cStrRet) ) + +#define IReadCookie_get_Key(This,VarKey,pvar) \ + ( (This)->lpVtbl -> get_Key(This,VarKey,pvar) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IReadCookie_INTERFACE_DEFINED__ */ + + +#ifndef __IWriteCookie_INTERFACE_DEFINED__ +#define __IWriteCookie_INTERFACE_DEFINED__ + +/* interface IWriteCookie */ +/* [object][hidden][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IWriteCookie,0xD97A6DA0,0xA862,0x11cf,0x84,0xAE,0x00,0xA0,0xC9,0x0C,0x2B,0xD8); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D97A6DA0-A862-11cf-84AE-00A0C90C2BD8") + IWriteCookie : public IDispatch + { + public: + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Item( + /* [in][optional] */ VARIANT key, + /* [in] */ __RPC__in BSTR bstrValue) = 0; + + virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Expires( + /* [in] */ DATE dtExpires) = 0; + + virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Domain( + /* [in] */ __RPC__in BSTR bstrDomain) = 0; + + virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Path( + /* [in] */ __RPC__in BSTR bstrPath) = 0; + + virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_Secure( + /* [in] */ VARIANT_BOOL fSecure) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_HasKeys( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfHasKeys) = 0; + + virtual /* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumReturn) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWriteCookieVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWriteCookie * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWriteCookie * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWriteCookie * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWriteCookie * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWriteCookie * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWriteCookie * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWriteCookie * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWriteCookie, put_Item) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Item )( + __RPC__in IWriteCookie * This, + /* [in][optional] */ VARIANT key, + /* [in] */ __RPC__in BSTR bstrValue); + + DECLSPEC_XFGVIRT(IWriteCookie, put_Expires) + /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Expires )( + __RPC__in IWriteCookie * This, + /* [in] */ DATE dtExpires); + + DECLSPEC_XFGVIRT(IWriteCookie, put_Domain) + /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Domain )( + __RPC__in IWriteCookie * This, + /* [in] */ __RPC__in BSTR bstrDomain); + + DECLSPEC_XFGVIRT(IWriteCookie, put_Path) + /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Path )( + __RPC__in IWriteCookie * This, + /* [in] */ __RPC__in BSTR bstrPath); + + DECLSPEC_XFGVIRT(IWriteCookie, put_Secure) + /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Secure )( + __RPC__in IWriteCookie * This, + /* [in] */ VARIANT_BOOL fSecure); + + DECLSPEC_XFGVIRT(IWriteCookie, get_HasKeys) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HasKeys )( + __RPC__in IWriteCookie * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfHasKeys); + + DECLSPEC_XFGVIRT(IWriteCookie, get__NewEnum) + /* [restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IWriteCookie * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumReturn); + + END_INTERFACE + } IWriteCookieVtbl; + + interface IWriteCookie + { + CONST_VTBL struct IWriteCookieVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWriteCookie_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWriteCookie_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWriteCookie_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWriteCookie_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWriteCookie_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWriteCookie_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWriteCookie_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWriteCookie_put_Item(This,key,bstrValue) \ + ( (This)->lpVtbl -> put_Item(This,key,bstrValue) ) + +#define IWriteCookie_put_Expires(This,dtExpires) \ + ( (This)->lpVtbl -> put_Expires(This,dtExpires) ) + +#define IWriteCookie_put_Domain(This,bstrDomain) \ + ( (This)->lpVtbl -> put_Domain(This,bstrDomain) ) + +#define IWriteCookie_put_Path(This,bstrPath) \ + ( (This)->lpVtbl -> put_Path(This,bstrPath) ) + +#define IWriteCookie_put_Secure(This,fSecure) \ + ( (This)->lpVtbl -> put_Secure(This,fSecure) ) + +#define IWriteCookie_get_HasKeys(This,pfHasKeys) \ + ( (This)->lpVtbl -> get_HasKeys(This,pfHasKeys) ) + +#define IWriteCookie_get__NewEnum(This,ppEnumReturn) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumReturn) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWriteCookie_INTERFACE_DEFINED__ */ + + +#ifndef __IResponse_INTERFACE_DEFINED__ +#define __IResponse_INTERFACE_DEFINED__ + +/* interface IResponse */ +/* [object][hidden][dual][oleautomation][uuid] */ + + +DEFINE_GUID(IID_IResponse,0xD97A6DA0,0xA864,0x11cf,0x83,0xBE,0x00,0xA0,0xC9,0x0C,0x2B,0xD8); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D97A6DA0-A864-11cf-83BE-00A0C90C2BD8") + IResponse : public IDispatch + { + public: + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Buffer( + /* [retval][out] */ __RPC__out VARIANT_BOOL *fIsBuffering) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Buffer( + /* [in] */ VARIANT_BOOL fIsBuffering) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ContentType( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrContentTypeRet) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ContentType( + /* [in] */ __RPC__in BSTR bstrContentType) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Expires( + /* [retval][out] */ __RPC__out VARIANT *pvarExpiresMinutesRet) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Expires( + /* [in] */ long lExpiresMinutes) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ExpiresAbsolute( + /* [retval][out] */ __RPC__out VARIANT *pvarExpiresRet) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ExpiresAbsolute( + /* [in] */ DATE dtExpires) = 0; + + virtual /* [propget][helpstring] */ HRESULT STDMETHODCALLTYPE get_Cookies( + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppCookies) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrStatusRet) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Status( + /* [in] */ __RPC__in BSTR bstrStatus) = 0; + + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in BSTR bstrHeaderValue, + /* [in] */ __RPC__in BSTR bstrHeaderName) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddHeader( + /* [in] */ __RPC__in BSTR bstrHeaderName, + /* [in] */ __RPC__in BSTR bstrHeaderValue) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AppendToLog( + /* [in] */ __RPC__in BSTR bstrLogEntry) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE BinaryWrite( + /* [in] */ VARIANT varInput) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE End( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Flush( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Redirect( + /* [in] */ __RPC__in BSTR bstrURL) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Write( + /* [in] */ VARIANT varText) = 0; + + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE WriteBlock( + /* [in] */ short iBlockNumber) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE IsClientConnected( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsClientConnected) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CharSet( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCharSetRet) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CharSet( + /* [in] */ __RPC__in BSTR bstrCharSet) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Pics( + /* [in] */ __RPC__in BSTR bstrHeaderValue) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CacheControl( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCacheControl) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CacheControl( + /* [in] */ __RPC__in BSTR bstrCacheControl) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CodePage( + /* [retval][out] */ __RPC__out long *plvar) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CodePage( + /* [in] */ long lvar) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LCID( + /* [retval][out] */ __RPC__out long *plvar) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_LCID( + /* [in] */ long lvar) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IResponseVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IResponse * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IResponse * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IResponse * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IResponse * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IResponse * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IResponse, get_Buffer) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Buffer )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *fIsBuffering); + + DECLSPEC_XFGVIRT(IResponse, put_Buffer) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Buffer )( + __RPC__in IResponse * This, + /* [in] */ VARIANT_BOOL fIsBuffering); + + DECLSPEC_XFGVIRT(IResponse, get_ContentType) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ContentType )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrContentTypeRet); + + DECLSPEC_XFGVIRT(IResponse, put_ContentType) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ContentType )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in BSTR bstrContentType); + + DECLSPEC_XFGVIRT(IResponse, get_Expires) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Expires )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__out VARIANT *pvarExpiresMinutesRet); + + DECLSPEC_XFGVIRT(IResponse, put_Expires) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Expires )( + __RPC__in IResponse * This, + /* [in] */ long lExpiresMinutes); + + DECLSPEC_XFGVIRT(IResponse, get_ExpiresAbsolute) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExpiresAbsolute )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__out VARIANT *pvarExpiresRet); + + DECLSPEC_XFGVIRT(IResponse, put_ExpiresAbsolute) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExpiresAbsolute )( + __RPC__in IResponse * This, + /* [in] */ DATE dtExpires); + + DECLSPEC_XFGVIRT(IResponse, get_Cookies) + /* [propget][helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_Cookies )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__deref_out_opt IRequestDictionary **ppCookies); + + DECLSPEC_XFGVIRT(IResponse, get_Status) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrStatusRet); + + DECLSPEC_XFGVIRT(IResponse, put_Status) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Status )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in BSTR bstrStatus); + + DECLSPEC_XFGVIRT(IResponse, Add) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in BSTR bstrHeaderValue, + /* [in] */ __RPC__in BSTR bstrHeaderName); + + DECLSPEC_XFGVIRT(IResponse, AddHeader) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddHeader )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in BSTR bstrHeaderName, + /* [in] */ __RPC__in BSTR bstrHeaderValue); + + DECLSPEC_XFGVIRT(IResponse, AppendToLog) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppendToLog )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in BSTR bstrLogEntry); + + DECLSPEC_XFGVIRT(IResponse, BinaryWrite) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *BinaryWrite )( + __RPC__in IResponse * This, + /* [in] */ VARIANT varInput); + + DECLSPEC_XFGVIRT(IResponse, Clear) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IResponse * This); + + DECLSPEC_XFGVIRT(IResponse, End) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *End )( + __RPC__in IResponse * This); + + DECLSPEC_XFGVIRT(IResponse, Flush) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Flush )( + __RPC__in IResponse * This); + + DECLSPEC_XFGVIRT(IResponse, Redirect) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Redirect )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in BSTR bstrURL); + + DECLSPEC_XFGVIRT(IResponse, Write) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Write )( + __RPC__in IResponse * This, + /* [in] */ VARIANT varText); + + DECLSPEC_XFGVIRT(IResponse, WriteBlock) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *WriteBlock )( + __RPC__in IResponse * This, + /* [in] */ short iBlockNumber); + + DECLSPEC_XFGVIRT(IResponse, IsClientConnected) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *IsClientConnected )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsClientConnected); + + DECLSPEC_XFGVIRT(IResponse, get_CharSet) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CharSet )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCharSetRet); + + DECLSPEC_XFGVIRT(IResponse, put_CharSet) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CharSet )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in BSTR bstrCharSet); + + DECLSPEC_XFGVIRT(IResponse, Pics) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Pics )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in BSTR bstrHeaderValue); + + DECLSPEC_XFGVIRT(IResponse, get_CacheControl) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CacheControl )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCacheControl); + + DECLSPEC_XFGVIRT(IResponse, put_CacheControl) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CacheControl )( + __RPC__in IResponse * This, + /* [in] */ __RPC__in BSTR bstrCacheControl); + + DECLSPEC_XFGVIRT(IResponse, get_CodePage) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CodePage )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__out long *plvar); + + DECLSPEC_XFGVIRT(IResponse, put_CodePage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CodePage )( + __RPC__in IResponse * This, + /* [in] */ long lvar); + + DECLSPEC_XFGVIRT(IResponse, get_LCID) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LCID )( + __RPC__in IResponse * This, + /* [retval][out] */ __RPC__out long *plvar); + + DECLSPEC_XFGVIRT(IResponse, put_LCID) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_LCID )( + __RPC__in IResponse * This, + /* [in] */ long lvar); + + END_INTERFACE + } IResponseVtbl; + + interface IResponse + { + CONST_VTBL struct IResponseVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IResponse_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IResponse_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IResponse_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IResponse_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IResponse_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IResponse_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IResponse_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IResponse_get_Buffer(This,fIsBuffering) \ + ( (This)->lpVtbl -> get_Buffer(This,fIsBuffering) ) + +#define IResponse_put_Buffer(This,fIsBuffering) \ + ( (This)->lpVtbl -> put_Buffer(This,fIsBuffering) ) + +#define IResponse_get_ContentType(This,pbstrContentTypeRet) \ + ( (This)->lpVtbl -> get_ContentType(This,pbstrContentTypeRet) ) + +#define IResponse_put_ContentType(This,bstrContentType) \ + ( (This)->lpVtbl -> put_ContentType(This,bstrContentType) ) + +#define IResponse_get_Expires(This,pvarExpiresMinutesRet) \ + ( (This)->lpVtbl -> get_Expires(This,pvarExpiresMinutesRet) ) + +#define IResponse_put_Expires(This,lExpiresMinutes) \ + ( (This)->lpVtbl -> put_Expires(This,lExpiresMinutes) ) + +#define IResponse_get_ExpiresAbsolute(This,pvarExpiresRet) \ + ( (This)->lpVtbl -> get_ExpiresAbsolute(This,pvarExpiresRet) ) + +#define IResponse_put_ExpiresAbsolute(This,dtExpires) \ + ( (This)->lpVtbl -> put_ExpiresAbsolute(This,dtExpires) ) + +#define IResponse_get_Cookies(This,ppCookies) \ + ( (This)->lpVtbl -> get_Cookies(This,ppCookies) ) + +#define IResponse_get_Status(This,pbstrStatusRet) \ + ( (This)->lpVtbl -> get_Status(This,pbstrStatusRet) ) + +#define IResponse_put_Status(This,bstrStatus) \ + ( (This)->lpVtbl -> put_Status(This,bstrStatus) ) + +#define IResponse_Add(This,bstrHeaderValue,bstrHeaderName) \ + ( (This)->lpVtbl -> Add(This,bstrHeaderValue,bstrHeaderName) ) + +#define IResponse_AddHeader(This,bstrHeaderName,bstrHeaderValue) \ + ( (This)->lpVtbl -> AddHeader(This,bstrHeaderName,bstrHeaderValue) ) + +#define IResponse_AppendToLog(This,bstrLogEntry) \ + ( (This)->lpVtbl -> AppendToLog(This,bstrLogEntry) ) + +#define IResponse_BinaryWrite(This,varInput) \ + ( (This)->lpVtbl -> BinaryWrite(This,varInput) ) + +#define IResponse_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IResponse_End(This) \ + ( (This)->lpVtbl -> End(This) ) + +#define IResponse_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + +#define IResponse_Redirect(This,bstrURL) \ + ( (This)->lpVtbl -> Redirect(This,bstrURL) ) + +#define IResponse_Write(This,varText) \ + ( (This)->lpVtbl -> Write(This,varText) ) + +#define IResponse_WriteBlock(This,iBlockNumber) \ + ( (This)->lpVtbl -> WriteBlock(This,iBlockNumber) ) + +#define IResponse_IsClientConnected(This,pfIsClientConnected) \ + ( (This)->lpVtbl -> IsClientConnected(This,pfIsClientConnected) ) + +#define IResponse_get_CharSet(This,pbstrCharSetRet) \ + ( (This)->lpVtbl -> get_CharSet(This,pbstrCharSetRet) ) + +#define IResponse_put_CharSet(This,bstrCharSet) \ + ( (This)->lpVtbl -> put_CharSet(This,bstrCharSet) ) + +#define IResponse_Pics(This,bstrHeaderValue) \ + ( (This)->lpVtbl -> Pics(This,bstrHeaderValue) ) + +#define IResponse_get_CacheControl(This,pbstrCacheControl) \ + ( (This)->lpVtbl -> get_CacheControl(This,pbstrCacheControl) ) + +#define IResponse_put_CacheControl(This,bstrCacheControl) \ + ( (This)->lpVtbl -> put_CacheControl(This,bstrCacheControl) ) + +#define IResponse_get_CodePage(This,plvar) \ + ( (This)->lpVtbl -> get_CodePage(This,plvar) ) + +#define IResponse_put_CodePage(This,lvar) \ + ( (This)->lpVtbl -> put_CodePage(This,lvar) ) + +#define IResponse_get_LCID(This,plvar) \ + ( (This)->lpVtbl -> get_LCID(This,plvar) ) + +#define IResponse_put_LCID(This,lvar) \ + ( (This)->lpVtbl -> put_LCID(This,lvar) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IResponse_INTERFACE_DEFINED__ */ + + +DEFINE_GUID(CLSID_Response,0x46E19BA0,0x25DD,0x11D0,0xA5,0x5F,0x00,0xA0,0xC9,0x0C,0x20,0x91); + +#ifdef __cplusplus + +class DECLSPEC_UUID("46E19BA0-25DD-11D0-A55F-00A0C90C2091") +Response; +#endif + +#ifndef __IVariantDictionary_INTERFACE_DEFINED__ +#define __IVariantDictionary_INTERFACE_DEFINED__ + +/* interface IVariantDictionary */ +/* [object][hidden][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IVariantDictionary,0x4a7deb90,0xb069,0x11d0,0xb3,0x73,0x00,0xa0,0xc9,0x0c,0x2b,0xd8); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4a7deb90-b069-11d0-b373-00a0c90c2bd8") + IVariantDictionary : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT VarKey, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Item( + /* [in] */ VARIANT VarKey, + /* [in] */ VARIANT var) = 0; + + virtual /* [propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Item( + /* [in] */ VARIANT VarKey, + /* [in] */ VARIANT var) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Key( + /* [in] */ VARIANT VarKey, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out int *cStrRet) = 0; + + virtual /* [restricted][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumReturn) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ VARIANT VarKey) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IVariantDictionaryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IVariantDictionary * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IVariantDictionary * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IVariantDictionary * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IVariantDictionary * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IVariantDictionary * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IVariantDictionary * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IVariantDictionary * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IVariantDictionary, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IVariantDictionary * This, + /* [in] */ VARIANT VarKey, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(IVariantDictionary, put_Item) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Item )( + __RPC__in IVariantDictionary * This, + /* [in] */ VARIANT VarKey, + /* [in] */ VARIANT var); + + DECLSPEC_XFGVIRT(IVariantDictionary, putref_Item) + /* [propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Item )( + __RPC__in IVariantDictionary * This, + /* [in] */ VARIANT VarKey, + /* [in] */ VARIANT var); + + DECLSPEC_XFGVIRT(IVariantDictionary, get_Key) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Key )( + __RPC__in IVariantDictionary * This, + /* [in] */ VARIANT VarKey, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(IVariantDictionary, get_Count) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IVariantDictionary * This, + /* [retval][out] */ __RPC__out int *cStrRet); + + DECLSPEC_XFGVIRT(IVariantDictionary, get__NewEnum) + /* [restricted][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IVariantDictionary * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumReturn); + + DECLSPEC_XFGVIRT(IVariantDictionary, Remove) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IVariantDictionary * This, + /* [in] */ VARIANT VarKey); + + DECLSPEC_XFGVIRT(IVariantDictionary, RemoveAll) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveAll )( + __RPC__in IVariantDictionary * This); + + END_INTERFACE + } IVariantDictionaryVtbl; + + interface IVariantDictionary + { + CONST_VTBL struct IVariantDictionaryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IVariantDictionary_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IVariantDictionary_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IVariantDictionary_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IVariantDictionary_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IVariantDictionary_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IVariantDictionary_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IVariantDictionary_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IVariantDictionary_get_Item(This,VarKey,pvar) \ + ( (This)->lpVtbl -> get_Item(This,VarKey,pvar) ) + +#define IVariantDictionary_put_Item(This,VarKey,var) \ + ( (This)->lpVtbl -> put_Item(This,VarKey,var) ) + +#define IVariantDictionary_putref_Item(This,VarKey,var) \ + ( (This)->lpVtbl -> putref_Item(This,VarKey,var) ) + +#define IVariantDictionary_get_Key(This,VarKey,pvar) \ + ( (This)->lpVtbl -> get_Key(This,VarKey,pvar) ) + +#define IVariantDictionary_get_Count(This,cStrRet) \ + ( (This)->lpVtbl -> get_Count(This,cStrRet) ) + +#define IVariantDictionary_get__NewEnum(This,ppEnumReturn) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumReturn) ) + +#define IVariantDictionary_Remove(This,VarKey) \ + ( (This)->lpVtbl -> Remove(This,VarKey) ) + +#define IVariantDictionary_RemoveAll(This) \ + ( (This)->lpVtbl -> RemoveAll(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IVariantDictionary_INTERFACE_DEFINED__ */ + + +#ifndef __ISessionObject_INTERFACE_DEFINED__ +#define __ISessionObject_INTERFACE_DEFINED__ + +/* interface ISessionObject */ +/* [object][hidden][oleautomation][dual][uuid] */ + + +DEFINE_GUID(IID_ISessionObject,0xD97A6DA0,0xA865,0x11cf,0x83,0xAF,0x00,0xA0,0xC9,0x0C,0x2B,0xD8); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D97A6DA0-A865-11cf-83AF-00A0C90C2BD8") + ISessionObject : public IDispatch + { + public: + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SessionID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRet) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [in] */ __RPC__in BSTR bstrValue, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ __RPC__in BSTR bstrValue, + /* [in] */ VARIANT var) = 0; + + virtual /* [propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Value( + /* [in] */ __RPC__in BSTR bstrValue, + /* [in] */ VARIANT var) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Timeout( + /* [retval][out] */ __RPC__out long *plvar) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Timeout( + /* [in] */ long lvar) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Abandon( void) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_CodePage( + /* [retval][out] */ __RPC__out long *plvar) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CodePage( + /* [in] */ long lvar) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_LCID( + /* [retval][out] */ __RPC__out long *plvar) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_LCID( + /* [in] */ long lvar) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_StaticObjects( + /* [retval][out] */ __RPC__deref_out_opt IVariantDictionary **ppTaggedObjects) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Contents( + /* [retval][out] */ __RPC__deref_out_opt IVariantDictionary **ppProperties) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISessionObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISessionObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISessionObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISessionObject * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISessionObject * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISessionObject * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISessionObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISessionObject * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISessionObject, get_SessionID) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionID )( + __RPC__in ISessionObject * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRet); + + DECLSPEC_XFGVIRT(ISessionObject, get_Value) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in ISessionObject * This, + /* [in] */ __RPC__in BSTR bstrValue, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(ISessionObject, put_Value) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in ISessionObject * This, + /* [in] */ __RPC__in BSTR bstrValue, + /* [in] */ VARIANT var); + + DECLSPEC_XFGVIRT(ISessionObject, putref_Value) + /* [propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Value )( + __RPC__in ISessionObject * This, + /* [in] */ __RPC__in BSTR bstrValue, + /* [in] */ VARIANT var); + + DECLSPEC_XFGVIRT(ISessionObject, get_Timeout) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Timeout )( + __RPC__in ISessionObject * This, + /* [retval][out] */ __RPC__out long *plvar); + + DECLSPEC_XFGVIRT(ISessionObject, put_Timeout) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Timeout )( + __RPC__in ISessionObject * This, + /* [in] */ long lvar); + + DECLSPEC_XFGVIRT(ISessionObject, Abandon) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Abandon )( + __RPC__in ISessionObject * This); + + DECLSPEC_XFGVIRT(ISessionObject, get_CodePage) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CodePage )( + __RPC__in ISessionObject * This, + /* [retval][out] */ __RPC__out long *plvar); + + DECLSPEC_XFGVIRT(ISessionObject, put_CodePage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CodePage )( + __RPC__in ISessionObject * This, + /* [in] */ long lvar); + + DECLSPEC_XFGVIRT(ISessionObject, get_LCID) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LCID )( + __RPC__in ISessionObject * This, + /* [retval][out] */ __RPC__out long *plvar); + + DECLSPEC_XFGVIRT(ISessionObject, put_LCID) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_LCID )( + __RPC__in ISessionObject * This, + /* [in] */ long lvar); + + DECLSPEC_XFGVIRT(ISessionObject, get_StaticObjects) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StaticObjects )( + __RPC__in ISessionObject * This, + /* [retval][out] */ __RPC__deref_out_opt IVariantDictionary **ppTaggedObjects); + + DECLSPEC_XFGVIRT(ISessionObject, get_Contents) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Contents )( + __RPC__in ISessionObject * This, + /* [retval][out] */ __RPC__deref_out_opt IVariantDictionary **ppProperties); + + END_INTERFACE + } ISessionObjectVtbl; + + interface ISessionObject + { + CONST_VTBL struct ISessionObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISessionObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISessionObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISessionObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISessionObject_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISessionObject_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISessionObject_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISessionObject_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISessionObject_get_SessionID(This,pbstrRet) \ + ( (This)->lpVtbl -> get_SessionID(This,pbstrRet) ) + +#define ISessionObject_get_Value(This,bstrValue,pvar) \ + ( (This)->lpVtbl -> get_Value(This,bstrValue,pvar) ) + +#define ISessionObject_put_Value(This,bstrValue,var) \ + ( (This)->lpVtbl -> put_Value(This,bstrValue,var) ) + +#define ISessionObject_putref_Value(This,bstrValue,var) \ + ( (This)->lpVtbl -> putref_Value(This,bstrValue,var) ) + +#define ISessionObject_get_Timeout(This,plvar) \ + ( (This)->lpVtbl -> get_Timeout(This,plvar) ) + +#define ISessionObject_put_Timeout(This,lvar) \ + ( (This)->lpVtbl -> put_Timeout(This,lvar) ) + +#define ISessionObject_Abandon(This) \ + ( (This)->lpVtbl -> Abandon(This) ) + +#define ISessionObject_get_CodePage(This,plvar) \ + ( (This)->lpVtbl -> get_CodePage(This,plvar) ) + +#define ISessionObject_put_CodePage(This,lvar) \ + ( (This)->lpVtbl -> put_CodePage(This,lvar) ) + +#define ISessionObject_get_LCID(This,plvar) \ + ( (This)->lpVtbl -> get_LCID(This,plvar) ) + +#define ISessionObject_put_LCID(This,lvar) \ + ( (This)->lpVtbl -> put_LCID(This,lvar) ) + +#define ISessionObject_get_StaticObjects(This,ppTaggedObjects) \ + ( (This)->lpVtbl -> get_StaticObjects(This,ppTaggedObjects) ) + +#define ISessionObject_get_Contents(This,ppProperties) \ + ( (This)->lpVtbl -> get_Contents(This,ppProperties) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISessionObject_INTERFACE_DEFINED__ */ + + +DEFINE_GUID(CLSID_Session,0x509F8F20,0x25DE,0x11D0,0xA5,0x5F,0x00,0xA0,0xC9,0x0C,0x20,0x91); + +#ifdef __cplusplus + +class DECLSPEC_UUID("509F8F20-25DE-11D0-A55F-00A0C90C2091") +Session; +#endif + +#ifndef __IApplicationObject_INTERFACE_DEFINED__ +#define __IApplicationObject_INTERFACE_DEFINED__ + +/* interface IApplicationObject */ +/* [object][hidden][dual][oleautomation][uuid] */ + + +DEFINE_GUID(IID_IApplicationObject,0xD97A6DA0,0xA866,0x11cf,0x83,0xAE,0x10,0xA0,0xC9,0x0C,0x2B,0xD8); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D97A6DA0-A866-11cf-83AE-10A0C90C2BD8") + IApplicationObject : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [in] */ __RPC__in BSTR bstrValue, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ __RPC__in BSTR bstrValue, + /* [in] */ VARIANT var) = 0; + + virtual /* [propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Value( + /* [in] */ __RPC__in BSTR bstrValue, + /* [in] */ VARIANT var) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Lock( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnLock( void) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_StaticObjects( + /* [retval][out] */ __RPC__deref_out_opt IVariantDictionary **ppProperties) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Contents( + /* [retval][out] */ __RPC__deref_out_opt IVariantDictionary **ppProperties) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IApplicationObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IApplicationObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IApplicationObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IApplicationObject * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IApplicationObject * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IApplicationObject * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IApplicationObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IApplicationObject * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IApplicationObject, get_Value) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IApplicationObject * This, + /* [in] */ __RPC__in BSTR bstrValue, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(IApplicationObject, put_Value) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in IApplicationObject * This, + /* [in] */ __RPC__in BSTR bstrValue, + /* [in] */ VARIANT var); + + DECLSPEC_XFGVIRT(IApplicationObject, putref_Value) + /* [propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Value )( + __RPC__in IApplicationObject * This, + /* [in] */ __RPC__in BSTR bstrValue, + /* [in] */ VARIANT var); + + DECLSPEC_XFGVIRT(IApplicationObject, Lock) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Lock )( + __RPC__in IApplicationObject * This); + + DECLSPEC_XFGVIRT(IApplicationObject, UnLock) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnLock )( + __RPC__in IApplicationObject * This); + + DECLSPEC_XFGVIRT(IApplicationObject, get_StaticObjects) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StaticObjects )( + __RPC__in IApplicationObject * This, + /* [retval][out] */ __RPC__deref_out_opt IVariantDictionary **ppProperties); + + DECLSPEC_XFGVIRT(IApplicationObject, get_Contents) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Contents )( + __RPC__in IApplicationObject * This, + /* [retval][out] */ __RPC__deref_out_opt IVariantDictionary **ppProperties); + + END_INTERFACE + } IApplicationObjectVtbl; + + interface IApplicationObject + { + CONST_VTBL struct IApplicationObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IApplicationObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IApplicationObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IApplicationObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IApplicationObject_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IApplicationObject_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IApplicationObject_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IApplicationObject_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IApplicationObject_get_Value(This,bstrValue,pvar) \ + ( (This)->lpVtbl -> get_Value(This,bstrValue,pvar) ) + +#define IApplicationObject_put_Value(This,bstrValue,var) \ + ( (This)->lpVtbl -> put_Value(This,bstrValue,var) ) + +#define IApplicationObject_putref_Value(This,bstrValue,var) \ + ( (This)->lpVtbl -> putref_Value(This,bstrValue,var) ) + +#define IApplicationObject_Lock(This) \ + ( (This)->lpVtbl -> Lock(This) ) + +#define IApplicationObject_UnLock(This) \ + ( (This)->lpVtbl -> UnLock(This) ) + +#define IApplicationObject_get_StaticObjects(This,ppProperties) \ + ( (This)->lpVtbl -> get_StaticObjects(This,ppProperties) ) + +#define IApplicationObject_get_Contents(This,ppProperties) \ + ( (This)->lpVtbl -> get_Contents(This,ppProperties) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IApplicationObject_INTERFACE_DEFINED__ */ + + +DEFINE_GUID(CLSID_Application,0x7C3BAF00,0x25DE,0x11D0,0xA5,0x5F,0x00,0xA0,0xC9,0x0C,0x20,0x91); + +#ifdef __cplusplus + +class DECLSPEC_UUID("7C3BAF00-25DE-11D0-A55F-00A0C90C2091") +Application; +#endif + +#ifndef __IASPError_INTERFACE_DEFINED__ +#define __IASPError_INTERFACE_DEFINED__ + +/* interface IASPError */ +/* [object][hidden][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IASPError,0xF5A6893E,0xA0F5,0x11d1,0x8C,0x4B,0x00,0xC0,0x4F,0xC3,0x24,0xA4); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F5A6893E-A0F5-11d1-8C4B-00C04FC324A4") + IASPError : public IDispatch + { + public: + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ASPCode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrASPCode) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Number( + /* [retval][out] */ __RPC__out long *plNumber) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Category( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSource) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_File( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFileName) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Line( + /* [retval][out] */ __RPC__out long *plLineNumber) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ASPDescription( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Column( + /* [retval][out] */ __RPC__out long *plColumn) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Source( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrLineText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IASPErrorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IASPError * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IASPError * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IASPError * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IASPError * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IASPError * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IASPError * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IASPError * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IASPError, get_ASPCode) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ASPCode )( + __RPC__in IASPError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrASPCode); + + DECLSPEC_XFGVIRT(IASPError, get_Number) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Number )( + __RPC__in IASPError * This, + /* [retval][out] */ __RPC__out long *plNumber); + + DECLSPEC_XFGVIRT(IASPError, get_Category) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Category )( + __RPC__in IASPError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSource); + + DECLSPEC_XFGVIRT(IASPError, get_File) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_File )( + __RPC__in IASPError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFileName); + + DECLSPEC_XFGVIRT(IASPError, get_Line) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Line )( + __RPC__in IASPError * This, + /* [retval][out] */ __RPC__out long *plLineNumber); + + DECLSPEC_XFGVIRT(IASPError, get_Description) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IASPError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IASPError, get_ASPDescription) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ASPDescription )( + __RPC__in IASPError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IASPError, get_Column) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Column )( + __RPC__in IASPError * This, + /* [retval][out] */ __RPC__out long *plColumn); + + DECLSPEC_XFGVIRT(IASPError, get_Source) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in IASPError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrLineText); + + END_INTERFACE + } IASPErrorVtbl; + + interface IASPError + { + CONST_VTBL struct IASPErrorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IASPError_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IASPError_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IASPError_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IASPError_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IASPError_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IASPError_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IASPError_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IASPError_get_ASPCode(This,pbstrASPCode) \ + ( (This)->lpVtbl -> get_ASPCode(This,pbstrASPCode) ) + +#define IASPError_get_Number(This,plNumber) \ + ( (This)->lpVtbl -> get_Number(This,plNumber) ) + +#define IASPError_get_Category(This,pbstrSource) \ + ( (This)->lpVtbl -> get_Category(This,pbstrSource) ) + +#define IASPError_get_File(This,pbstrFileName) \ + ( (This)->lpVtbl -> get_File(This,pbstrFileName) ) + +#define IASPError_get_Line(This,plLineNumber) \ + ( (This)->lpVtbl -> get_Line(This,plLineNumber) ) + +#define IASPError_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IASPError_get_ASPDescription(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_ASPDescription(This,pbstrDescription) ) + +#define IASPError_get_Column(This,plColumn) \ + ( (This)->lpVtbl -> get_Column(This,plColumn) ) + +#define IASPError_get_Source(This,pbstrLineText) \ + ( (This)->lpVtbl -> get_Source(This,pbstrLineText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IASPError_INTERFACE_DEFINED__ */ + + +#ifndef __IServer_INTERFACE_DEFINED__ +#define __IServer_INTERFACE_DEFINED__ + +/* interface IServer */ +/* [object][hidden][dual][oleautomation][uuid] */ + + +DEFINE_GUID(IID_IServer,0xD97A6DA0,0xA867,0x11cf,0x83,0xAE,0x01,0xA0,0xC9,0x0C,0x2B,0xD8); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D97A6DA0-A867-11cf-83AE-01A0C90C2BD8") + IServer : public IDispatch + { + public: + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ScriptTimeout( + /* [retval][out] */ __RPC__out long *plTimeoutSeconds) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ScriptTimeout( + /* [in] */ long lTimeoutSeconds) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateObject( + /* [in] */ __RPC__in BSTR bstrProgID, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDispObject) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE HTMLEncode( + /* [in] */ __RPC__in BSTR bstrIn, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEncoded) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE MapPath( + /* [in] */ __RPC__in BSTR bstrLogicalPath, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPhysicalPath) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE URLEncode( + /* [in] */ __RPC__in BSTR bstrIn, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEncoded) = 0; + + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE URLPathEncode( + /* [in] */ __RPC__in BSTR bstrIn, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEncoded) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Execute( + /* [in] */ __RPC__in BSTR bstrLogicalPath) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Transfer( + /* [in] */ __RPC__in BSTR bstrLogicalPath) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetLastError( + /* [retval][out] */ __RPC__deref_out_opt IASPError **ppASPErrorObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServer * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IServer * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IServer * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IServer * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IServer, get_ScriptTimeout) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScriptTimeout )( + __RPC__in IServer * This, + /* [retval][out] */ __RPC__out long *plTimeoutSeconds); + + DECLSPEC_XFGVIRT(IServer, put_ScriptTimeout) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ScriptTimeout )( + __RPC__in IServer * This, + /* [in] */ long lTimeoutSeconds); + + DECLSPEC_XFGVIRT(IServer, CreateObject) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateObject )( + __RPC__in IServer * This, + /* [in] */ __RPC__in BSTR bstrProgID, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDispObject); + + DECLSPEC_XFGVIRT(IServer, HTMLEncode) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *HTMLEncode )( + __RPC__in IServer * This, + /* [in] */ __RPC__in BSTR bstrIn, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEncoded); + + DECLSPEC_XFGVIRT(IServer, MapPath) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *MapPath )( + __RPC__in IServer * This, + /* [in] */ __RPC__in BSTR bstrLogicalPath, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPhysicalPath); + + DECLSPEC_XFGVIRT(IServer, URLEncode) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *URLEncode )( + __RPC__in IServer * This, + /* [in] */ __RPC__in BSTR bstrIn, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEncoded); + + DECLSPEC_XFGVIRT(IServer, URLPathEncode) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *URLPathEncode )( + __RPC__in IServer * This, + /* [in] */ __RPC__in BSTR bstrIn, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEncoded); + + DECLSPEC_XFGVIRT(IServer, Execute) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in IServer * This, + /* [in] */ __RPC__in BSTR bstrLogicalPath); + + DECLSPEC_XFGVIRT(IServer, Transfer) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Transfer )( + __RPC__in IServer * This, + /* [in] */ __RPC__in BSTR bstrLogicalPath); + + DECLSPEC_XFGVIRT(IServer, GetLastError) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetLastError )( + __RPC__in IServer * This, + /* [retval][out] */ __RPC__deref_out_opt IASPError **ppASPErrorObject); + + END_INTERFACE + } IServerVtbl; + + interface IServer + { + CONST_VTBL struct IServerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServer_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IServer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IServer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IServer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IServer_get_ScriptTimeout(This,plTimeoutSeconds) \ + ( (This)->lpVtbl -> get_ScriptTimeout(This,plTimeoutSeconds) ) + +#define IServer_put_ScriptTimeout(This,lTimeoutSeconds) \ + ( (This)->lpVtbl -> put_ScriptTimeout(This,lTimeoutSeconds) ) + +#define IServer_CreateObject(This,bstrProgID,ppDispObject) \ + ( (This)->lpVtbl -> CreateObject(This,bstrProgID,ppDispObject) ) + +#define IServer_HTMLEncode(This,bstrIn,pbstrEncoded) \ + ( (This)->lpVtbl -> HTMLEncode(This,bstrIn,pbstrEncoded) ) + +#define IServer_MapPath(This,bstrLogicalPath,pbstrPhysicalPath) \ + ( (This)->lpVtbl -> MapPath(This,bstrLogicalPath,pbstrPhysicalPath) ) + +#define IServer_URLEncode(This,bstrIn,pbstrEncoded) \ + ( (This)->lpVtbl -> URLEncode(This,bstrIn,pbstrEncoded) ) + +#define IServer_URLPathEncode(This,bstrIn,pbstrEncoded) \ + ( (This)->lpVtbl -> URLPathEncode(This,bstrIn,pbstrEncoded) ) + +#define IServer_Execute(This,bstrLogicalPath) \ + ( (This)->lpVtbl -> Execute(This,bstrLogicalPath) ) + +#define IServer_Transfer(This,bstrLogicalPath) \ + ( (This)->lpVtbl -> Transfer(This,bstrLogicalPath) ) + +#define IServer_GetLastError(This,ppASPErrorObject) \ + ( (This)->lpVtbl -> GetLastError(This,ppASPErrorObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServer_INTERFACE_DEFINED__ */ + + +DEFINE_GUID(CLSID_Server,0xA506D160,0x25E0,0x11D0,0xA5,0x5F,0x00,0xA0,0xC9,0x0C,0x20,0x91); + +#ifdef __cplusplus + +class DECLSPEC_UUID("A506D160-25E0-11D0-A55F-00A0C90C2091") +Server; +#endif + +#ifndef __IScriptingContext_INTERFACE_DEFINED__ +#define __IScriptingContext_INTERFACE_DEFINED__ + +/* interface IScriptingContext */ +/* [object][hidden][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IScriptingContext,0xD97A6DA0,0xA868,0x11cf,0x83,0xAE,0x00,0xB0,0xC9,0x0C,0x2B,0xD8); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D97A6DA0-A868-11cf-83AE-00B0C90C2BD8") + IScriptingContext : public IDispatch + { + public: + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Request( + /* [retval][out] */ __RPC__deref_out_opt IRequest **ppRequest) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Response( + /* [retval][out] */ __RPC__deref_out_opt IResponse **ppResponse) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Server( + /* [retval][out] */ __RPC__deref_out_opt IServer **ppServer) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Session( + /* [retval][out] */ __RPC__deref_out_opt ISessionObject **ppSession) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Application( + /* [retval][out] */ __RPC__deref_out_opt IApplicationObject **ppApplication) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IScriptingContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IScriptingContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IScriptingContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IScriptingContext * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IScriptingContext * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IScriptingContext * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IScriptingContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IScriptingContext * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IScriptingContext, get_Request) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Request )( + __RPC__in IScriptingContext * This, + /* [retval][out] */ __RPC__deref_out_opt IRequest **ppRequest); + + DECLSPEC_XFGVIRT(IScriptingContext, get_Response) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Response )( + __RPC__in IScriptingContext * This, + /* [retval][out] */ __RPC__deref_out_opt IResponse **ppResponse); + + DECLSPEC_XFGVIRT(IScriptingContext, get_Server) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Server )( + __RPC__in IScriptingContext * This, + /* [retval][out] */ __RPC__deref_out_opt IServer **ppServer); + + DECLSPEC_XFGVIRT(IScriptingContext, get_Session) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Session )( + __RPC__in IScriptingContext * This, + /* [retval][out] */ __RPC__deref_out_opt ISessionObject **ppSession); + + DECLSPEC_XFGVIRT(IScriptingContext, get_Application) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Application )( + __RPC__in IScriptingContext * This, + /* [retval][out] */ __RPC__deref_out_opt IApplicationObject **ppApplication); + + END_INTERFACE + } IScriptingContextVtbl; + + interface IScriptingContext + { + CONST_VTBL struct IScriptingContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IScriptingContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IScriptingContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IScriptingContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IScriptingContext_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IScriptingContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IScriptingContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IScriptingContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IScriptingContext_get_Request(This,ppRequest) \ + ( (This)->lpVtbl -> get_Request(This,ppRequest) ) + +#define IScriptingContext_get_Response(This,ppResponse) \ + ( (This)->lpVtbl -> get_Response(This,ppResponse) ) + +#define IScriptingContext_get_Server(This,ppServer) \ + ( (This)->lpVtbl -> get_Server(This,ppServer) ) + +#define IScriptingContext_get_Session(This,ppSession) \ + ( (This)->lpVtbl -> get_Session(This,ppSession) ) + +#define IScriptingContext_get_Application(This,ppApplication) \ + ( (This)->lpVtbl -> get_Application(This,ppApplication) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IScriptingContext_INTERFACE_DEFINED__ */ + + +DEFINE_GUID(CLSID_ScriptingContext,0xD97A6DA0,0xA868,0x11cf,0x83,0xAE,0x11,0xB0,0xC9,0x0C,0x2B,0xD8); + +#ifdef __cplusplus + +class DECLSPEC_UUID("D97A6DA0-A868-11cf-83AE-11B0C90C2BD8") +ScriptingContext; +#endif +#endif /* __ASPTypeLibrary_LIBRARY_DEFINED__ */ + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AtscPsipParser.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AtscPsipParser.h new file mode 100644 index 0000000000000000000000000000000000000000..14979717692f2531d439067df421aa602c77b88a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AtscPsipParser.h @@ -0,0 +1,2475 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __atscpsipparser_h__ +#define __atscpsipparser_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAtscPsipParser_FWD_DEFINED__ +#define __IAtscPsipParser_FWD_DEFINED__ +typedef interface IAtscPsipParser IAtscPsipParser; + +#endif /* __IAtscPsipParser_FWD_DEFINED__ */ + + +#ifndef __IATSC_MGT_FWD_DEFINED__ +#define __IATSC_MGT_FWD_DEFINED__ +typedef interface IATSC_MGT IATSC_MGT; + +#endif /* __IATSC_MGT_FWD_DEFINED__ */ + + +#ifndef __IATSC_VCT_FWD_DEFINED__ +#define __IATSC_VCT_FWD_DEFINED__ +typedef interface IATSC_VCT IATSC_VCT; + +#endif /* __IATSC_VCT_FWD_DEFINED__ */ + + +#ifndef __IATSC_EIT_FWD_DEFINED__ +#define __IATSC_EIT_FWD_DEFINED__ +typedef interface IATSC_EIT IATSC_EIT; + +#endif /* __IATSC_EIT_FWD_DEFINED__ */ + + +#ifndef __IATSC_ETT_FWD_DEFINED__ +#define __IATSC_ETT_FWD_DEFINED__ +typedef interface IATSC_ETT IATSC_ETT; + +#endif /* __IATSC_ETT_FWD_DEFINED__ */ + + +#ifndef __IATSC_STT_FWD_DEFINED__ +#define __IATSC_STT_FWD_DEFINED__ +typedef interface IATSC_STT IATSC_STT; + +#endif /* __IATSC_STT_FWD_DEFINED__ */ + + +#ifndef __ISCTE_EAS_FWD_DEFINED__ +#define __ISCTE_EAS_FWD_DEFINED__ +typedef interface ISCTE_EAS ISCTE_EAS; + +#endif /* __ISCTE_EAS_FWD_DEFINED__ */ + + +#ifndef __IAtscContentAdvisoryDescriptor_FWD_DEFINED__ +#define __IAtscContentAdvisoryDescriptor_FWD_DEFINED__ +typedef interface IAtscContentAdvisoryDescriptor IAtscContentAdvisoryDescriptor; + +#endif /* __IAtscContentAdvisoryDescriptor_FWD_DEFINED__ */ + + +#ifndef __ICaptionServiceDescriptor_FWD_DEFINED__ +#define __ICaptionServiceDescriptor_FWD_DEFINED__ +typedef interface ICaptionServiceDescriptor ICaptionServiceDescriptor; + +#endif /* __ICaptionServiceDescriptor_FWD_DEFINED__ */ + + +#ifndef __IServiceLocationDescriptor_FWD_DEFINED__ +#define __IServiceLocationDescriptor_FWD_DEFINED__ +typedef interface IServiceLocationDescriptor IServiceLocationDescriptor; + +#endif /* __IServiceLocationDescriptor_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "mpeg2structs.h" +#include "mpeg2data.h" +#include "mpeg2psiparser.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_atscpsipparser_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + + + + +#define ATSC_ETM_LOCATION_NOT_PRESENT 0x00 +#define ATSC_ETM_LOCATION_IN_PTC_FOR_PSIP 0x01 +#define ATSC_ETM_LOCATION_IN_PTC_FOR_EVENT 0x02 +#define ATSC_ETM_LOCATION_RESERVED 0x03 + + +extern RPC_IF_HANDLE __MIDL_itf_atscpsipparser_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_atscpsipparser_0000_0000_v0_0_s_ifspec; + +#ifndef __IAtscPsipParser_INTERFACE_DEFINED__ +#define __IAtscPsipParser_INTERFACE_DEFINED__ + +/* interface IAtscPsipParser */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAtscPsipParser; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B2C98995-5EB2-4fb1-B406-F3E8E2026A9A") + IAtscPsipParser : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IUnknown *punkMpeg2Data) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPAT( + /* [out] */ __RPC__deref_out_opt IPAT **ppPAT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAT( + /* [in] */ DWORD dwTimeout, + /* [out] */ __RPC__deref_out_opt ICAT **ppCAT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPMT( + /* [in] */ PID pid, + /* [in] */ __RPC__in WORD *pwProgramNumber, + /* [out] */ __RPC__deref_out_opt IPMT **ppPMT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTSDT( + /* [out] */ __RPC__deref_out_opt ITSDT **ppTSDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMGT( + /* [out] */ __RPC__deref_out_opt IATSC_MGT **ppMGT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVCT( + /* [in] */ TID tableId, + /* [in] */ BOOL fGetNextTable, + /* [out] */ __RPC__deref_out_opt IATSC_VCT **ppVCT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEIT( + /* [in] */ PID pid, + /* [in] */ __RPC__in WORD *pwSourceId, + /* [in] */ DWORD dwTimeout, + /* [out] */ __RPC__deref_out_opt IATSC_EIT **ppEIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetETT( + /* [in] */ PID pid, + /* [in] */ __RPC__in WORD *wSourceId, + /* [in] */ __RPC__in WORD *pwEventId, + /* [out] */ __RPC__deref_out_opt IATSC_ETT **ppETT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSTT( + /* [out] */ __RPC__deref_out_opt IATSC_STT **ppSTT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEAS( + /* [in] */ PID pid, + /* [out] */ __RPC__deref_out_opt ISCTE_EAS **ppEAS) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAtscPsipParserVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAtscPsipParser * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAtscPsipParser * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAtscPsipParser * This); + + DECLSPEC_XFGVIRT(IAtscPsipParser, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IAtscPsipParser * This, + /* [in] */ __RPC__in_opt IUnknown *punkMpeg2Data); + + DECLSPEC_XFGVIRT(IAtscPsipParser, GetPAT) + HRESULT ( STDMETHODCALLTYPE *GetPAT )( + __RPC__in IAtscPsipParser * This, + /* [out] */ __RPC__deref_out_opt IPAT **ppPAT); + + DECLSPEC_XFGVIRT(IAtscPsipParser, GetCAT) + HRESULT ( STDMETHODCALLTYPE *GetCAT )( + __RPC__in IAtscPsipParser * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ __RPC__deref_out_opt ICAT **ppCAT); + + DECLSPEC_XFGVIRT(IAtscPsipParser, GetPMT) + HRESULT ( STDMETHODCALLTYPE *GetPMT )( + __RPC__in IAtscPsipParser * This, + /* [in] */ PID pid, + /* [in] */ __RPC__in WORD *pwProgramNumber, + /* [out] */ __RPC__deref_out_opt IPMT **ppPMT); + + DECLSPEC_XFGVIRT(IAtscPsipParser, GetTSDT) + HRESULT ( STDMETHODCALLTYPE *GetTSDT )( + __RPC__in IAtscPsipParser * This, + /* [out] */ __RPC__deref_out_opt ITSDT **ppTSDT); + + DECLSPEC_XFGVIRT(IAtscPsipParser, GetMGT) + HRESULT ( STDMETHODCALLTYPE *GetMGT )( + __RPC__in IAtscPsipParser * This, + /* [out] */ __RPC__deref_out_opt IATSC_MGT **ppMGT); + + DECLSPEC_XFGVIRT(IAtscPsipParser, GetVCT) + HRESULT ( STDMETHODCALLTYPE *GetVCT )( + __RPC__in IAtscPsipParser * This, + /* [in] */ TID tableId, + /* [in] */ BOOL fGetNextTable, + /* [out] */ __RPC__deref_out_opt IATSC_VCT **ppVCT); + + DECLSPEC_XFGVIRT(IAtscPsipParser, GetEIT) + HRESULT ( STDMETHODCALLTYPE *GetEIT )( + __RPC__in IAtscPsipParser * This, + /* [in] */ PID pid, + /* [in] */ __RPC__in WORD *pwSourceId, + /* [in] */ DWORD dwTimeout, + /* [out] */ __RPC__deref_out_opt IATSC_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IAtscPsipParser, GetETT) + HRESULT ( STDMETHODCALLTYPE *GetETT )( + __RPC__in IAtscPsipParser * This, + /* [in] */ PID pid, + /* [in] */ __RPC__in WORD *wSourceId, + /* [in] */ __RPC__in WORD *pwEventId, + /* [out] */ __RPC__deref_out_opt IATSC_ETT **ppETT); + + DECLSPEC_XFGVIRT(IAtscPsipParser, GetSTT) + HRESULT ( STDMETHODCALLTYPE *GetSTT )( + __RPC__in IAtscPsipParser * This, + /* [out] */ __RPC__deref_out_opt IATSC_STT **ppSTT); + + DECLSPEC_XFGVIRT(IAtscPsipParser, GetEAS) + HRESULT ( STDMETHODCALLTYPE *GetEAS )( + __RPC__in IAtscPsipParser * This, + /* [in] */ PID pid, + /* [out] */ __RPC__deref_out_opt ISCTE_EAS **ppEAS); + + END_INTERFACE + } IAtscPsipParserVtbl; + + interface IAtscPsipParser + { + CONST_VTBL struct IAtscPsipParserVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAtscPsipParser_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAtscPsipParser_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAtscPsipParser_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAtscPsipParser_Initialize(This,punkMpeg2Data) \ + ( (This)->lpVtbl -> Initialize(This,punkMpeg2Data) ) + +#define IAtscPsipParser_GetPAT(This,ppPAT) \ + ( (This)->lpVtbl -> GetPAT(This,ppPAT) ) + +#define IAtscPsipParser_GetCAT(This,dwTimeout,ppCAT) \ + ( (This)->lpVtbl -> GetCAT(This,dwTimeout,ppCAT) ) + +#define IAtscPsipParser_GetPMT(This,pid,pwProgramNumber,ppPMT) \ + ( (This)->lpVtbl -> GetPMT(This,pid,pwProgramNumber,ppPMT) ) + +#define IAtscPsipParser_GetTSDT(This,ppTSDT) \ + ( (This)->lpVtbl -> GetTSDT(This,ppTSDT) ) + +#define IAtscPsipParser_GetMGT(This,ppMGT) \ + ( (This)->lpVtbl -> GetMGT(This,ppMGT) ) + +#define IAtscPsipParser_GetVCT(This,tableId,fGetNextTable,ppVCT) \ + ( (This)->lpVtbl -> GetVCT(This,tableId,fGetNextTable,ppVCT) ) + +#define IAtscPsipParser_GetEIT(This,pid,pwSourceId,dwTimeout,ppEIT) \ + ( (This)->lpVtbl -> GetEIT(This,pid,pwSourceId,dwTimeout,ppEIT) ) + +#define IAtscPsipParser_GetETT(This,pid,wSourceId,pwEventId,ppETT) \ + ( (This)->lpVtbl -> GetETT(This,pid,wSourceId,pwEventId,ppETT) ) + +#define IAtscPsipParser_GetSTT(This,ppSTT) \ + ( (This)->lpVtbl -> GetSTT(This,ppSTT) ) + +#define IAtscPsipParser_GetEAS(This,pid,ppEAS) \ + ( (This)->lpVtbl -> GetEAS(This,pid,ppEAS) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAtscPsipParser_INTERFACE_DEFINED__ */ + + +#ifndef __IATSC_MGT_INTERFACE_DEFINED__ +#define __IATSC_MGT_INTERFACE_DEFINED__ + +/* interface IATSC_MGT */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IATSC_MGT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8877dabd-c137-4073-97e3-779407a5d87a") + IATSC_MGT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProtocolVersion( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordType( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTypePid( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out PID *ppidVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordVersionNumber( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [in] */ __RPC__in DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IATSC_MGTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IATSC_MGT * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IATSC_MGT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IATSC_MGT * This); + + DECLSPEC_XFGVIRT(IATSC_MGT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IATSC_MGT * This, + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + __RPC__in IATSC_MGT * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetProtocolVersion) + HRESULT ( STDMETHODCALLTYPE *GetProtocolVersion )( + __RPC__in IATSC_MGT * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + __RPC__in IATSC_MGT * This, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetRecordType) + HRESULT ( STDMETHODCALLTYPE *GetRecordType )( + __RPC__in IATSC_MGT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetRecordTypePid) + HRESULT ( STDMETHODCALLTYPE *GetRecordTypePid )( + __RPC__in IATSC_MGT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out PID *ppidVal); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetRecordVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordVersionNumber )( + __RPC__in IATSC_MGT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + __RPC__in IATSC_MGT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + __RPC__in IATSC_MGT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + __RPC__in IATSC_MGT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + __RPC__in IATSC_MGT * This, + /* [in] */ __RPC__in DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + __RPC__in IATSC_MGT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IATSC_MGT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + __RPC__in IATSC_MGT * This, + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + END_INTERFACE + } IATSC_MGTVtbl; + + interface IATSC_MGT + { + CONST_VTBL struct IATSC_MGTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IATSC_MGT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IATSC_MGT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IATSC_MGT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IATSC_MGT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IATSC_MGT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IATSC_MGT_GetProtocolVersion(This,pbVal) \ + ( (This)->lpVtbl -> GetProtocolVersion(This,pbVal) ) + +#define IATSC_MGT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IATSC_MGT_GetRecordType(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordType(This,dwRecordIndex,pwVal) ) + +#define IATSC_MGT_GetRecordTypePid(This,dwRecordIndex,ppidVal) \ + ( (This)->lpVtbl -> GetRecordTypePid(This,dwRecordIndex,ppidVal) ) + +#define IATSC_MGT_GetRecordVersionNumber(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordVersionNumber(This,dwRecordIndex,pbVal) ) + +#define IATSC_MGT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IATSC_MGT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IATSC_MGT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IATSC_MGT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IATSC_MGT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IATSC_MGT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IATSC_MGT_INTERFACE_DEFINED__ */ + + +#ifndef __IATSC_VCT_INTERFACE_DEFINED__ +#define __IATSC_VCT_INTERFACE_DEFINED__ + +/* interface IATSC_VCT */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IATSC_VCT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("26879a18-32f9-46c6-91f0-fb6479270e8c") + IATSC_VCT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransportStreamId( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProtocolVersion( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordName( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__deref_out_opt LPWSTR *pwsName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordMajorChannelNumber( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordMinorChannelNumber( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordModulationMode( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCarrierFrequency( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTransportStreamId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordProgramNumber( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEtmLocation( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordIsAccessControlledBitSet( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordIsHiddenBitSet( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordIsPathSelectBitSet( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordIsOutOfBandBitSet( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordIsHideGuideBitSet( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceType( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordSourceId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [in] */ __RPC__in DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IATSC_VCTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IATSC_VCT * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IATSC_VCT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IATSC_VCT * This); + + DECLSPEC_XFGVIRT(IATSC_VCT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IATSC_VCT * This, + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + __RPC__in IATSC_VCT * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + __RPC__in IATSC_VCT * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetProtocolVersion) + HRESULT ( STDMETHODCALLTYPE *GetProtocolVersion )( + __RPC__in IATSC_VCT * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + __RPC__in IATSC_VCT * This, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordName) + HRESULT ( STDMETHODCALLTYPE *GetRecordName )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__deref_out_opt LPWSTR *pwsName); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordMajorChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordMajorChannelNumber )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordMinorChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordMinorChannelNumber )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordModulationMode) + HRESULT ( STDMETHODCALLTYPE *GetRecordModulationMode )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordCarrierFrequency) + HRESULT ( STDMETHODCALLTYPE *GetRecordCarrierFrequency )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetRecordTransportStreamId )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordProgramNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordProgramNumber )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordEtmLocation) + HRESULT ( STDMETHODCALLTYPE *GetRecordEtmLocation )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordIsAccessControlledBitSet) + HRESULT ( STDMETHODCALLTYPE *GetRecordIsAccessControlledBitSet )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BOOL *pfVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordIsHiddenBitSet) + HRESULT ( STDMETHODCALLTYPE *GetRecordIsHiddenBitSet )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BOOL *pfVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordIsPathSelectBitSet) + HRESULT ( STDMETHODCALLTYPE *GetRecordIsPathSelectBitSet )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BOOL *pfVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordIsOutOfBandBitSet) + HRESULT ( STDMETHODCALLTYPE *GetRecordIsOutOfBandBitSet )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BOOL *pfVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordIsHideGuideBitSet) + HRESULT ( STDMETHODCALLTYPE *GetRecordIsHideGuideBitSet )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BOOL *pfVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordServiceType) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceType )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordSourceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordSourceId )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + __RPC__in IATSC_VCT * This, + /* [in] */ __RPC__in DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + __RPC__in IATSC_VCT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IATSC_VCT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + __RPC__in IATSC_VCT * This, + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + END_INTERFACE + } IATSC_VCTVtbl; + + interface IATSC_VCT + { + CONST_VTBL struct IATSC_VCTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IATSC_VCT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IATSC_VCT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IATSC_VCT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IATSC_VCT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IATSC_VCT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IATSC_VCT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IATSC_VCT_GetProtocolVersion(This,pbVal) \ + ( (This)->lpVtbl -> GetProtocolVersion(This,pbVal) ) + +#define IATSC_VCT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IATSC_VCT_GetRecordName(This,dwRecordIndex,pwsName) \ + ( (This)->lpVtbl -> GetRecordName(This,dwRecordIndex,pwsName) ) + +#define IATSC_VCT_GetRecordMajorChannelNumber(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordMajorChannelNumber(This,dwRecordIndex,pwVal) ) + +#define IATSC_VCT_GetRecordMinorChannelNumber(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordMinorChannelNumber(This,dwRecordIndex,pwVal) ) + +#define IATSC_VCT_GetRecordModulationMode(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordModulationMode(This,dwRecordIndex,pbVal) ) + +#define IATSC_VCT_GetRecordCarrierFrequency(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCarrierFrequency(This,dwRecordIndex,pdwVal) ) + +#define IATSC_VCT_GetRecordTransportStreamId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordTransportStreamId(This,dwRecordIndex,pwVal) ) + +#define IATSC_VCT_GetRecordProgramNumber(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordProgramNumber(This,dwRecordIndex,pwVal) ) + +#define IATSC_VCT_GetRecordEtmLocation(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordEtmLocation(This,dwRecordIndex,pbVal) ) + +#define IATSC_VCT_GetRecordIsAccessControlledBitSet(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordIsAccessControlledBitSet(This,dwRecordIndex,pfVal) ) + +#define IATSC_VCT_GetRecordIsHiddenBitSet(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordIsHiddenBitSet(This,dwRecordIndex,pfVal) ) + +#define IATSC_VCT_GetRecordIsPathSelectBitSet(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordIsPathSelectBitSet(This,dwRecordIndex,pfVal) ) + +#define IATSC_VCT_GetRecordIsOutOfBandBitSet(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordIsOutOfBandBitSet(This,dwRecordIndex,pfVal) ) + +#define IATSC_VCT_GetRecordIsHideGuideBitSet(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordIsHideGuideBitSet(This,dwRecordIndex,pfVal) ) + +#define IATSC_VCT_GetRecordServiceType(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordServiceType(This,dwRecordIndex,pbVal) ) + +#define IATSC_VCT_GetRecordSourceId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordSourceId(This,dwRecordIndex,pwVal) ) + +#define IATSC_VCT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IATSC_VCT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IATSC_VCT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IATSC_VCT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IATSC_VCT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IATSC_VCT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IATSC_VCT_INTERFACE_DEFINED__ */ + + +#ifndef __IATSC_EIT_INTERFACE_DEFINED__ +#define __IATSC_EIT_INTERFACE_DEFINED__ + +/* interface IATSC_EIT */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IATSC_EIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d7c212d7-76a2-4b4b-aa56-846879a80096") + IATSC_EIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSourceId( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProtocolVersion( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEventId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordStartTime( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEtmLocation( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDuration( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out MPEG_DURATION *pmdVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTitleText( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out DWORD *pdwLength, + /* [out] */ __RPC__deref_out_opt BYTE **ppText) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IATSC_EITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IATSC_EIT * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IATSC_EIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IATSC_EIT * This); + + DECLSPEC_XFGVIRT(IATSC_EIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IATSC_EIT * This, + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + __RPC__in IATSC_EIT * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetSourceId) + HRESULT ( STDMETHODCALLTYPE *GetSourceId )( + __RPC__in IATSC_EIT * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetProtocolVersion) + HRESULT ( STDMETHODCALLTYPE *GetProtocolVersion )( + __RPC__in IATSC_EIT * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + __RPC__in IATSC_EIT * This, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetRecordEventId) + HRESULT ( STDMETHODCALLTYPE *GetRecordEventId )( + __RPC__in IATSC_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetRecordStartTime) + HRESULT ( STDMETHODCALLTYPE *GetRecordStartTime )( + __RPC__in IATSC_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetRecordEtmLocation) + HRESULT ( STDMETHODCALLTYPE *GetRecordEtmLocation )( + __RPC__in IATSC_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetRecordDuration) + HRESULT ( STDMETHODCALLTYPE *GetRecordDuration )( + __RPC__in IATSC_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out MPEG_DURATION *pmdVal); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetRecordTitleText) + HRESULT ( STDMETHODCALLTYPE *GetRecordTitleText )( + __RPC__in IATSC_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out DWORD *pdwLength, + /* [out] */ __RPC__deref_out_opt BYTE **ppText); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + __RPC__in IATSC_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + __RPC__in IATSC_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IATSC_EIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + __RPC__in IATSC_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + END_INTERFACE + } IATSC_EITVtbl; + + interface IATSC_EIT + { + CONST_VTBL struct IATSC_EITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IATSC_EIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IATSC_EIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IATSC_EIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IATSC_EIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IATSC_EIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IATSC_EIT_GetSourceId(This,pwVal) \ + ( (This)->lpVtbl -> GetSourceId(This,pwVal) ) + +#define IATSC_EIT_GetProtocolVersion(This,pbVal) \ + ( (This)->lpVtbl -> GetProtocolVersion(This,pbVal) ) + +#define IATSC_EIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IATSC_EIT_GetRecordEventId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordEventId(This,dwRecordIndex,pwVal) ) + +#define IATSC_EIT_GetRecordStartTime(This,dwRecordIndex,pmdtVal) \ + ( (This)->lpVtbl -> GetRecordStartTime(This,dwRecordIndex,pmdtVal) ) + +#define IATSC_EIT_GetRecordEtmLocation(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordEtmLocation(This,dwRecordIndex,pbVal) ) + +#define IATSC_EIT_GetRecordDuration(This,dwRecordIndex,pmdVal) \ + ( (This)->lpVtbl -> GetRecordDuration(This,dwRecordIndex,pmdVal) ) + +#define IATSC_EIT_GetRecordTitleText(This,dwRecordIndex,pdwLength,ppText) \ + ( (This)->lpVtbl -> GetRecordTitleText(This,dwRecordIndex,pdwLength,ppText) ) + +#define IATSC_EIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IATSC_EIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IATSC_EIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IATSC_EIT_INTERFACE_DEFINED__ */ + + +#ifndef __IATSC_ETT_INTERFACE_DEFINED__ +#define __IATSC_ETT_INTERFACE_DEFINED__ + +/* interface IATSC_ETT */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IATSC_ETT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5a142cc9-b8cf-4a86-a040-e9cadf3ef3e7") + IATSC_ETT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProtocolVersion( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEtmId( + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExtendedMessageText( + /* [out] */ __RPC__out DWORD *pdwLength, + /* [out] */ __RPC__deref_out_opt BYTE **ppText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IATSC_ETTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IATSC_ETT * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IATSC_ETT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IATSC_ETT * This); + + DECLSPEC_XFGVIRT(IATSC_ETT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IATSC_ETT * This, + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IATSC_ETT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + __RPC__in IATSC_ETT * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_ETT, GetProtocolVersion) + HRESULT ( STDMETHODCALLTYPE *GetProtocolVersion )( + __RPC__in IATSC_ETT * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_ETT, GetEtmId) + HRESULT ( STDMETHODCALLTYPE *GetEtmId )( + __RPC__in IATSC_ETT * This, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_ETT, GetExtendedMessageText) + HRESULT ( STDMETHODCALLTYPE *GetExtendedMessageText )( + __RPC__in IATSC_ETT * This, + /* [out] */ __RPC__out DWORD *pdwLength, + /* [out] */ __RPC__deref_out_opt BYTE **ppText); + + END_INTERFACE + } IATSC_ETTVtbl; + + interface IATSC_ETT + { + CONST_VTBL struct IATSC_ETTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IATSC_ETT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IATSC_ETT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IATSC_ETT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IATSC_ETT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IATSC_ETT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IATSC_ETT_GetProtocolVersion(This,pbVal) \ + ( (This)->lpVtbl -> GetProtocolVersion(This,pbVal) ) + +#define IATSC_ETT_GetEtmId(This,pdwVal) \ + ( (This)->lpVtbl -> GetEtmId(This,pdwVal) ) + +#define IATSC_ETT_GetExtendedMessageText(This,pdwLength,ppText) \ + ( (This)->lpVtbl -> GetExtendedMessageText(This,pdwLength,ppText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IATSC_ETT_INTERFACE_DEFINED__ */ + + +#ifndef __IATSC_STT_INTERFACE_DEFINED__ +#define __IATSC_STT_INTERFACE_DEFINED__ + +/* interface IATSC_STT */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IATSC_STT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6bf42423-217d-4d6f-81e1-3a7b360ec896") + IATSC_STT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProtocolVersion( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSystemTime( + /* [out] */ __RPC__out MPEG_DATE_AND_TIME *pmdtSystemTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGpsUtcOffset( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDaylightSavings( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IATSC_STTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IATSC_STT * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IATSC_STT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IATSC_STT * This); + + DECLSPEC_XFGVIRT(IATSC_STT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IATSC_STT * This, + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IATSC_STT, GetProtocolVersion) + HRESULT ( STDMETHODCALLTYPE *GetProtocolVersion )( + __RPC__in IATSC_STT * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_STT, GetSystemTime) + HRESULT ( STDMETHODCALLTYPE *GetSystemTime )( + __RPC__in IATSC_STT * This, + /* [out] */ __RPC__out MPEG_DATE_AND_TIME *pmdtSystemTime); + + DECLSPEC_XFGVIRT(IATSC_STT, GetGpsUtcOffset) + HRESULT ( STDMETHODCALLTYPE *GetGpsUtcOffset )( + __RPC__in IATSC_STT * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IATSC_STT, GetDaylightSavings) + HRESULT ( STDMETHODCALLTYPE *GetDaylightSavings )( + __RPC__in IATSC_STT * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IATSC_STT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + __RPC__in IATSC_STT * This, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IATSC_STT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + __RPC__in IATSC_STT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IATSC_STT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + __RPC__in IATSC_STT * This, + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + END_INTERFACE + } IATSC_STTVtbl; + + interface IATSC_STT + { + CONST_VTBL struct IATSC_STTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IATSC_STT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IATSC_STT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IATSC_STT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IATSC_STT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IATSC_STT_GetProtocolVersion(This,pbVal) \ + ( (This)->lpVtbl -> GetProtocolVersion(This,pbVal) ) + +#define IATSC_STT_GetSystemTime(This,pmdtSystemTime) \ + ( (This)->lpVtbl -> GetSystemTime(This,pmdtSystemTime) ) + +#define IATSC_STT_GetGpsUtcOffset(This,pbVal) \ + ( (This)->lpVtbl -> GetGpsUtcOffset(This,pbVal) ) + +#define IATSC_STT_GetDaylightSavings(This,pwVal) \ + ( (This)->lpVtbl -> GetDaylightSavings(This,pwVal) ) + +#define IATSC_STT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IATSC_STT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IATSC_STT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IATSC_STT_INTERFACE_DEFINED__ */ + + +#ifndef __ISCTE_EAS_INTERFACE_DEFINED__ +#define __ISCTE_EAS_INTERFACE_DEFINED__ + +/* interface ISCTE_EAS */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ISCTE_EAS; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1FF544D6-161D-4fae-9FAA-4F9F492AE999") + ISCTE_EAS : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSequencyNumber( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProtocolVersion( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEASEventID( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginatorCode( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEASEventCodeLen( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEASEventCode( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRawNatureOfActivationTextLen( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRawNatureOfActivationText( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNatureOfActivationText( + /* [in] */ __RPC__in BSTR bstrIS0639code, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrString) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTimeRemaining( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStartTime( + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDuration( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAlertPriority( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDetailsOOBSourceID( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDetailsMajor( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDetailsMinor( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDetailsAudioOOBSourceID( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAlertText( + /* [in] */ __RPC__in BSTR bstrIS0639code, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrString) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRawAlertTextLen( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRawAlertText( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLocationCount( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLocationCodes( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbState, + /* [out] */ __RPC__out BYTE *pbCountySubdivision, + /* [out] */ __RPC__out WORD *pwCounty) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExceptionCount( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExceptionService( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbIBRef, + /* [out] */ __RPC__out WORD *pwFirst, + /* [out] */ __RPC__out WORD *pwSecond) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ __RPC__out DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISCTE_EASVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISCTE_EAS * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISCTE_EAS * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISCTE_EAS * This); + + DECLSPEC_XFGVIRT(ISCTE_EAS, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ISCTE_EAS * This, + /* [in] */ __RPC__in_opt ISectionList *pSectionList, + /* [in] */ __RPC__in_opt IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetSequencyNumber) + HRESULT ( STDMETHODCALLTYPE *GetSequencyNumber )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetProtocolVersion) + HRESULT ( STDMETHODCALLTYPE *GetProtocolVersion )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetEASEventID) + HRESULT ( STDMETHODCALLTYPE *GetEASEventID )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetOriginatorCode) + HRESULT ( STDMETHODCALLTYPE *GetOriginatorCode )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetEASEventCodeLen) + HRESULT ( STDMETHODCALLTYPE *GetEASEventCodeLen )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetEASEventCode) + HRESULT ( STDMETHODCALLTYPE *GetEASEventCode )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetRawNatureOfActivationTextLen) + HRESULT ( STDMETHODCALLTYPE *GetRawNatureOfActivationTextLen )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetRawNatureOfActivationText) + HRESULT ( STDMETHODCALLTYPE *GetRawNatureOfActivationText )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetNatureOfActivationText) + HRESULT ( STDMETHODCALLTYPE *GetNatureOfActivationText )( + __RPC__in ISCTE_EAS * This, + /* [in] */ __RPC__in BSTR bstrIS0639code, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrString); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetTimeRemaining) + HRESULT ( STDMETHODCALLTYPE *GetTimeRemaining )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetStartTime) + HRESULT ( STDMETHODCALLTYPE *GetStartTime )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetDuration) + HRESULT ( STDMETHODCALLTYPE *GetDuration )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetAlertPriority) + HRESULT ( STDMETHODCALLTYPE *GetAlertPriority )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetDetailsOOBSourceID) + HRESULT ( STDMETHODCALLTYPE *GetDetailsOOBSourceID )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetDetailsMajor) + HRESULT ( STDMETHODCALLTYPE *GetDetailsMajor )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetDetailsMinor) + HRESULT ( STDMETHODCALLTYPE *GetDetailsMinor )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetDetailsAudioOOBSourceID) + HRESULT ( STDMETHODCALLTYPE *GetDetailsAudioOOBSourceID )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetAlertText) + HRESULT ( STDMETHODCALLTYPE *GetAlertText )( + __RPC__in ISCTE_EAS * This, + /* [in] */ __RPC__in BSTR bstrIS0639code, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrString); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetRawAlertTextLen) + HRESULT ( STDMETHODCALLTYPE *GetRawAlertTextLen )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetRawAlertText) + HRESULT ( STDMETHODCALLTYPE *GetRawAlertText )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetLocationCount) + HRESULT ( STDMETHODCALLTYPE *GetLocationCount )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetLocationCodes) + HRESULT ( STDMETHODCALLTYPE *GetLocationCodes )( + __RPC__in ISCTE_EAS * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbState, + /* [out] */ __RPC__out BYTE *pbCountySubdivision, + /* [out] */ __RPC__out WORD *pwCounty); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetExceptionCount) + HRESULT ( STDMETHODCALLTYPE *GetExceptionCount )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetExceptionService) + HRESULT ( STDMETHODCALLTYPE *GetExceptionService )( + __RPC__in ISCTE_EAS * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbIBRef, + /* [out] */ __RPC__out WORD *pwFirst, + /* [out] */ __RPC__out WORD *pwSecond); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + __RPC__in ISCTE_EAS * This, + /* [out] */ __RPC__out DWORD *pdwVal); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + __RPC__in ISCTE_EAS * This, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(ISCTE_EAS, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + __RPC__in ISCTE_EAS * This, + /* [in] */ BYTE bTag, + /* [out][in] */ __RPC__inout DWORD *pdwCookie, + /* [out] */ __RPC__deref_out_opt IGenericDescriptor **ppDescriptor); + + END_INTERFACE + } ISCTE_EASVtbl; + + interface ISCTE_EAS + { + CONST_VTBL struct ISCTE_EASVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISCTE_EAS_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISCTE_EAS_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISCTE_EAS_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISCTE_EAS_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define ISCTE_EAS_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define ISCTE_EAS_GetSequencyNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetSequencyNumber(This,pbVal) ) + +#define ISCTE_EAS_GetProtocolVersion(This,pbVal) \ + ( (This)->lpVtbl -> GetProtocolVersion(This,pbVal) ) + +#define ISCTE_EAS_GetEASEventID(This,pwVal) \ + ( (This)->lpVtbl -> GetEASEventID(This,pwVal) ) + +#define ISCTE_EAS_GetOriginatorCode(This,pbVal) \ + ( (This)->lpVtbl -> GetOriginatorCode(This,pbVal) ) + +#define ISCTE_EAS_GetEASEventCodeLen(This,pbVal) \ + ( (This)->lpVtbl -> GetEASEventCodeLen(This,pbVal) ) + +#define ISCTE_EAS_GetEASEventCode(This,pbVal) \ + ( (This)->lpVtbl -> GetEASEventCode(This,pbVal) ) + +#define ISCTE_EAS_GetRawNatureOfActivationTextLen(This,pbVal) \ + ( (This)->lpVtbl -> GetRawNatureOfActivationTextLen(This,pbVal) ) + +#define ISCTE_EAS_GetRawNatureOfActivationText(This,pbVal) \ + ( (This)->lpVtbl -> GetRawNatureOfActivationText(This,pbVal) ) + +#define ISCTE_EAS_GetNatureOfActivationText(This,bstrIS0639code,pbstrString) \ + ( (This)->lpVtbl -> GetNatureOfActivationText(This,bstrIS0639code,pbstrString) ) + +#define ISCTE_EAS_GetTimeRemaining(This,pbVal) \ + ( (This)->lpVtbl -> GetTimeRemaining(This,pbVal) ) + +#define ISCTE_EAS_GetStartTime(This,pdwVal) \ + ( (This)->lpVtbl -> GetStartTime(This,pdwVal) ) + +#define ISCTE_EAS_GetDuration(This,pwVal) \ + ( (This)->lpVtbl -> GetDuration(This,pwVal) ) + +#define ISCTE_EAS_GetAlertPriority(This,pbVal) \ + ( (This)->lpVtbl -> GetAlertPriority(This,pbVal) ) + +#define ISCTE_EAS_GetDetailsOOBSourceID(This,pwVal) \ + ( (This)->lpVtbl -> GetDetailsOOBSourceID(This,pwVal) ) + +#define ISCTE_EAS_GetDetailsMajor(This,pwVal) \ + ( (This)->lpVtbl -> GetDetailsMajor(This,pwVal) ) + +#define ISCTE_EAS_GetDetailsMinor(This,pwVal) \ + ( (This)->lpVtbl -> GetDetailsMinor(This,pwVal) ) + +#define ISCTE_EAS_GetDetailsAudioOOBSourceID(This,pwVal) \ + ( (This)->lpVtbl -> GetDetailsAudioOOBSourceID(This,pwVal) ) + +#define ISCTE_EAS_GetAlertText(This,bstrIS0639code,pbstrString) \ + ( (This)->lpVtbl -> GetAlertText(This,bstrIS0639code,pbstrString) ) + +#define ISCTE_EAS_GetRawAlertTextLen(This,pwVal) \ + ( (This)->lpVtbl -> GetRawAlertTextLen(This,pwVal) ) + +#define ISCTE_EAS_GetRawAlertText(This,pbVal) \ + ( (This)->lpVtbl -> GetRawAlertText(This,pbVal) ) + +#define ISCTE_EAS_GetLocationCount(This,pbVal) \ + ( (This)->lpVtbl -> GetLocationCount(This,pbVal) ) + +#define ISCTE_EAS_GetLocationCodes(This,bIndex,pbState,pbCountySubdivision,pwCounty) \ + ( (This)->lpVtbl -> GetLocationCodes(This,bIndex,pbState,pbCountySubdivision,pwCounty) ) + +#define ISCTE_EAS_GetExceptionCount(This,pbVal) \ + ( (This)->lpVtbl -> GetExceptionCount(This,pbVal) ) + +#define ISCTE_EAS_GetExceptionService(This,bIndex,pbIBRef,pwFirst,pwSecond) \ + ( (This)->lpVtbl -> GetExceptionService(This,bIndex,pbIBRef,pwFirst,pwSecond) ) + +#define ISCTE_EAS_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define ISCTE_EAS_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define ISCTE_EAS_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISCTE_EAS_INTERFACE_DEFINED__ */ + + +#ifndef __IAtscContentAdvisoryDescriptor_INTERFACE_DEFINED__ +#define __IAtscContentAdvisoryDescriptor_INTERFACE_DEFINED__ + +/* interface IAtscContentAdvisoryDescriptor */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAtscContentAdvisoryDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FF76E60C-0283-43ea-BA32-B422238547EE") + IAtscContentAdvisoryDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRatingRegionCount( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRatingRegion( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRatedDimensions( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRatingDimension( + /* [in] */ BYTE bIndexOuter, + /* [in] */ BYTE bIndexInner, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRatingValue( + /* [in] */ BYTE bIndexOuter, + /* [in] */ BYTE bIndexInner, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRatingDescriptionText( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbLength, + /* [out] */ __RPC__deref_out_opt BYTE **ppText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAtscContentAdvisoryDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAtscContentAdvisoryDescriptor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAtscContentAdvisoryDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAtscContentAdvisoryDescriptor * This); + + DECLSPEC_XFGVIRT(IAtscContentAdvisoryDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + __RPC__in IAtscContentAdvisoryDescriptor * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IAtscContentAdvisoryDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + __RPC__in IAtscContentAdvisoryDescriptor * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IAtscContentAdvisoryDescriptor, GetRatingRegionCount) + HRESULT ( STDMETHODCALLTYPE *GetRatingRegionCount )( + __RPC__in IAtscContentAdvisoryDescriptor * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IAtscContentAdvisoryDescriptor, GetRecordRatingRegion) + HRESULT ( STDMETHODCALLTYPE *GetRecordRatingRegion )( + __RPC__in IAtscContentAdvisoryDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IAtscContentAdvisoryDescriptor, GetRecordRatedDimensions) + HRESULT ( STDMETHODCALLTYPE *GetRecordRatedDimensions )( + __RPC__in IAtscContentAdvisoryDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IAtscContentAdvisoryDescriptor, GetRecordRatingDimension) + HRESULT ( STDMETHODCALLTYPE *GetRecordRatingDimension )( + __RPC__in IAtscContentAdvisoryDescriptor * This, + /* [in] */ BYTE bIndexOuter, + /* [in] */ BYTE bIndexInner, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IAtscContentAdvisoryDescriptor, GetRecordRatingValue) + HRESULT ( STDMETHODCALLTYPE *GetRecordRatingValue )( + __RPC__in IAtscContentAdvisoryDescriptor * This, + /* [in] */ BYTE bIndexOuter, + /* [in] */ BYTE bIndexInner, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IAtscContentAdvisoryDescriptor, GetRecordRatingDescriptionText) + HRESULT ( STDMETHODCALLTYPE *GetRecordRatingDescriptionText )( + __RPC__in IAtscContentAdvisoryDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbLength, + /* [out] */ __RPC__deref_out_opt BYTE **ppText); + + END_INTERFACE + } IAtscContentAdvisoryDescriptorVtbl; + + interface IAtscContentAdvisoryDescriptor + { + CONST_VTBL struct IAtscContentAdvisoryDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAtscContentAdvisoryDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAtscContentAdvisoryDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAtscContentAdvisoryDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAtscContentAdvisoryDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IAtscContentAdvisoryDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IAtscContentAdvisoryDescriptor_GetRatingRegionCount(This,pbVal) \ + ( (This)->lpVtbl -> GetRatingRegionCount(This,pbVal) ) + +#define IAtscContentAdvisoryDescriptor_GetRecordRatingRegion(This,bIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRatingRegion(This,bIndex,pbVal) ) + +#define IAtscContentAdvisoryDescriptor_GetRecordRatedDimensions(This,bIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRatedDimensions(This,bIndex,pbVal) ) + +#define IAtscContentAdvisoryDescriptor_GetRecordRatingDimension(This,bIndexOuter,bIndexInner,pbVal) \ + ( (This)->lpVtbl -> GetRecordRatingDimension(This,bIndexOuter,bIndexInner,pbVal) ) + +#define IAtscContentAdvisoryDescriptor_GetRecordRatingValue(This,bIndexOuter,bIndexInner,pbVal) \ + ( (This)->lpVtbl -> GetRecordRatingValue(This,bIndexOuter,bIndexInner,pbVal) ) + +#define IAtscContentAdvisoryDescriptor_GetRecordRatingDescriptionText(This,bIndex,pbLength,ppText) \ + ( (This)->lpVtbl -> GetRecordRatingDescriptionText(This,bIndex,pbLength,ppText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAtscContentAdvisoryDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __ICaptionServiceDescriptor_INTERFACE_DEFINED__ +#define __ICaptionServiceDescriptor_INTERFACE_DEFINED__ + +/* interface ICaptionServiceDescriptor */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ICaptionServiceDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("40834007-6834-46f0-BD45-D5F6A6BE258C") + ICaptionServiceDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetNumberOfServices( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out_ecount_full(3) BYTE LangCode[ 3 ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCaptionServiceNumber( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCCType( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEasyReader( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetWideAspectRatio( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICaptionServiceDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICaptionServiceDescriptor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICaptionServiceDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICaptionServiceDescriptor * This); + + DECLSPEC_XFGVIRT(ICaptionServiceDescriptor, GetNumberOfServices) + HRESULT ( STDMETHODCALLTYPE *GetNumberOfServices )( + __RPC__in ICaptionServiceDescriptor * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ICaptionServiceDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + __RPC__in ICaptionServiceDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out_ecount_full(3) BYTE LangCode[ 3 ]); + + DECLSPEC_XFGVIRT(ICaptionServiceDescriptor, GetCaptionServiceNumber) + HRESULT ( STDMETHODCALLTYPE *GetCaptionServiceNumber )( + __RPC__in ICaptionServiceDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ICaptionServiceDescriptor, GetCCType) + HRESULT ( STDMETHODCALLTYPE *GetCCType )( + __RPC__in ICaptionServiceDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ICaptionServiceDescriptor, GetEasyReader) + HRESULT ( STDMETHODCALLTYPE *GetEasyReader )( + __RPC__in ICaptionServiceDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(ICaptionServiceDescriptor, GetWideAspectRatio) + HRESULT ( STDMETHODCALLTYPE *GetWideAspectRatio )( + __RPC__in ICaptionServiceDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + END_INTERFACE + } ICaptionServiceDescriptorVtbl; + + interface ICaptionServiceDescriptor + { + CONST_VTBL struct ICaptionServiceDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICaptionServiceDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICaptionServiceDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICaptionServiceDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICaptionServiceDescriptor_GetNumberOfServices(This,pbVal) \ + ( (This)->lpVtbl -> GetNumberOfServices(This,pbVal) ) + +#define ICaptionServiceDescriptor_GetLanguageCode(This,bIndex,LangCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,bIndex,LangCode) ) + +#define ICaptionServiceDescriptor_GetCaptionServiceNumber(This,bIndex,pbVal) \ + ( (This)->lpVtbl -> GetCaptionServiceNumber(This,bIndex,pbVal) ) + +#define ICaptionServiceDescriptor_GetCCType(This,bIndex,pbVal) \ + ( (This)->lpVtbl -> GetCCType(This,bIndex,pbVal) ) + +#define ICaptionServiceDescriptor_GetEasyReader(This,bIndex,pbVal) \ + ( (This)->lpVtbl -> GetEasyReader(This,bIndex,pbVal) ) + +#define ICaptionServiceDescriptor_GetWideAspectRatio(This,bIndex,pbVal) \ + ( (This)->lpVtbl -> GetWideAspectRatio(This,bIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICaptionServiceDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceLocationDescriptor_INTERFACE_DEFINED__ +#define __IServiceLocationDescriptor_INTERFACE_DEFINED__ + +/* interface IServiceLocationDescriptor */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IServiceLocationDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("58C3C827-9D91-4215-BFF3-820A49F0904C") + IServiceLocationDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPCR_PID( + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNumberOfElements( + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetElementStreamType( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetElementPID( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetElementLanguageCode( + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out_ecount_full(3) BYTE LangCode[ 3 ]) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceLocationDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceLocationDescriptor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceLocationDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceLocationDescriptor * This); + + DECLSPEC_XFGVIRT(IServiceLocationDescriptor, GetPCR_PID) + HRESULT ( STDMETHODCALLTYPE *GetPCR_PID )( + __RPC__in IServiceLocationDescriptor * This, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IServiceLocationDescriptor, GetNumberOfElements) + HRESULT ( STDMETHODCALLTYPE *GetNumberOfElements )( + __RPC__in IServiceLocationDescriptor * This, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IServiceLocationDescriptor, GetElementStreamType) + HRESULT ( STDMETHODCALLTYPE *GetElementStreamType )( + __RPC__in IServiceLocationDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out BYTE *pbVal); + + DECLSPEC_XFGVIRT(IServiceLocationDescriptor, GetElementPID) + HRESULT ( STDMETHODCALLTYPE *GetElementPID )( + __RPC__in IServiceLocationDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out WORD *pwVal); + + DECLSPEC_XFGVIRT(IServiceLocationDescriptor, GetElementLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetElementLanguageCode )( + __RPC__in IServiceLocationDescriptor * This, + /* [in] */ BYTE bIndex, + /* [out] */ __RPC__out_ecount_full(3) BYTE LangCode[ 3 ]); + + END_INTERFACE + } IServiceLocationDescriptorVtbl; + + interface IServiceLocationDescriptor + { + CONST_VTBL struct IServiceLocationDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceLocationDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceLocationDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceLocationDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceLocationDescriptor_GetPCR_PID(This,pwVal) \ + ( (This)->lpVtbl -> GetPCR_PID(This,pwVal) ) + +#define IServiceLocationDescriptor_GetNumberOfElements(This,pbVal) \ + ( (This)->lpVtbl -> GetNumberOfElements(This,pbVal) ) + +#define IServiceLocationDescriptor_GetElementStreamType(This,bIndex,pbVal) \ + ( (This)->lpVtbl -> GetElementStreamType(This,bIndex,pbVal) ) + +#define IServiceLocationDescriptor_GetElementPID(This,bIndex,pwVal) \ + ( (This)->lpVtbl -> GetElementPID(This,bIndex,pwVal) ) + +#define IServiceLocationDescriptor_GetElementLanguageCode(This,bIndex,LangCode) \ + ( (This)->lpVtbl -> GetElementLanguageCode(This,bIndex,LangCode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceLocationDescriptor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_atscpsipparser_0000_0010 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_atscpsipparser_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_atscpsipparser_0000_0010_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioAPOTypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioAPOTypes.h new file mode 100644 index 0000000000000000000000000000000000000000..e56fe0c29f2590fbc4a4a500f3459c8278be798d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioAPOTypes.h @@ -0,0 +1,105 @@ +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All rights reserved. +// +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +typedef LONGLONG HNSTIME; // hundred nanosecond unit +typedef LONGLONG MFTIME; // hundred nanosecond unit + +typedef float FLOAT32; // float +typedef double FLOAT64; // double + +// Validation flags for APO_CONNECTION_PROPERTY. Each APO connection has +// an APO_CONNECTION_PROPERTY structure associated with it. The buffer +// for each connection may be either invalid, valid, or silent. +typedef enum APO_BUFFER_FLAGS +{ + // BUFFER_INVALID means that there is no valid data in the connection + // buffer. The buffer pointer will still be valid and capable of holding + // the amount of valid audio data specified in the APO_CONNECTION_PROPERTY. + // The processor will mark every connection BUFFER_INVALID before running + // the IAudioOutputEndpoint::GetOutputDataPointer, + // IAudioInputEndpointRT::GetInputDataPointer, or + // IAudioProcessingObjectRT::APOProcess each time its IAudioProcess::Process + // routine is called. + BUFFER_INVALID = 0, + + // Connection buffer has valid data. This is the "normal" operational + // state of the connection buffer. An APO will set this flag once it + // writes valid data into a buffer. + BUFFER_VALID = 1, + + // The connection buffer should be treated as if it contains silence. + // APOs will mark their output connection buffers as silent (instead + // of writing silence into the buffer) if they generate a buffer of + // silence. This typically only happens when the buffer(s) going in + // are marked BUFFER_SILENT. + BUFFER_SILENT = 2 +} APO_BUFFER_FLAGS; + +// This structure contains the dynamically changing connection properties. +// The connection between APOs ends up resolving to the APO_CONNECTION_PROPERTY +// structure for the IAudioProcessingObjectRT::APOProcess call. This structure +// is passed in IAudioInputEndpointRT::GetInputDataPointer and +// IAudioOutputEndpointRT::ReleaseOutputDataPointer. +typedef struct APO_CONNECTION_PROPERTY +{ + // The connection buffer. APOs use this buffer to read and write + // audio data. + // + // Alignment required + // (128 bit or frame aligned) + // | + // +-----+ + // V + // +-------------------------------------------------------------+ + // | | + // | | + // | audio buffer | + // | | + // | | + // +-------------------------------------------------------------+ + // ^ + // | + // pBuffer + // + UINT_PTR pBuffer; + + // Number of valid frames in the connection buffer. This must + // be less than or equal to APO_CONNECTION_DESCRIPTOR.u32MaxFrameCount. + // An APO will use the valid frame count to determine how much data to + // process on an input buffer. An APO will set the valid frame count + // upon writing data into its output connection(s). + UINT32 u32ValidFrameCount; + + // Connection flags for this buffer. Tells APOs if the buffer is valid, + // in valid, or silent. See APO_BUFFER_FLAGS. + APO_BUFFER_FLAGS u32BufferFlags; + + // A tag identifying a valid APO_CONNECTION_PROPERTY structure. + UINT32 u32Signature; +} APO_CONNECTION_PROPERTY; + +// This structure defines V2 of the APO_CONNECTION_PROPERTY. +typedef struct APO_CONNECTION_PROPERTY_V2 +{ + APO_CONNECTION_PROPERTY property; + UINT64 u64QPCTime; +} APO_CONNECTION_PROPERTY_V2; + +#ifndef _AUDIO_CURVE_TYPE_ +#define _AUDIO_CURVE_TYPE_ +typedef enum { + AUDIO_CURVE_TYPE_NONE = 0, + AUDIO_CURVE_TYPE_WINDOWS_FADE = 1, +} AUDIO_CURVE_TYPE; +#endif // _AUDIO_CURVE_TYPE_ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioEngineEndpoint.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioEngineEndpoint.h new file mode 100644 index 0000000000000000000000000000000000000000..ec1221e2306bfa57a91298c4db7778d3b41f66df --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioEngineEndpoint.h @@ -0,0 +1,1568 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __audioengineendpoint_h__ +#define __audioengineendpoint_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAudioEndpoint_FWD_DEFINED__ +#define __IAudioEndpoint_FWD_DEFINED__ +typedef interface IAudioEndpoint IAudioEndpoint; + +#endif /* __IAudioEndpoint_FWD_DEFINED__ */ + + +#ifndef __IAudioEndpointRT_FWD_DEFINED__ +#define __IAudioEndpointRT_FWD_DEFINED__ +typedef interface IAudioEndpointRT IAudioEndpointRT; + +#endif /* __IAudioEndpointRT_FWD_DEFINED__ */ + + +#ifndef __IAudioInputEndpointRT_FWD_DEFINED__ +#define __IAudioInputEndpointRT_FWD_DEFINED__ +typedef interface IAudioInputEndpointRT IAudioInputEndpointRT; + +#endif /* __IAudioInputEndpointRT_FWD_DEFINED__ */ + + +#ifndef __IAudioOutputEndpointRT_FWD_DEFINED__ +#define __IAudioOutputEndpointRT_FWD_DEFINED__ +typedef interface IAudioOutputEndpointRT IAudioOutputEndpointRT; + +#endif /* __IAudioOutputEndpointRT_FWD_DEFINED__ */ + + +#ifndef __IAudioDeviceEndpoint_FWD_DEFINED__ +#define __IAudioDeviceEndpoint_FWD_DEFINED__ +typedef interface IAudioDeviceEndpoint IAudioDeviceEndpoint; + +#endif /* __IAudioDeviceEndpoint_FWD_DEFINED__ */ + + +#ifndef __IAudioEndpointOffloadStreamVolume_FWD_DEFINED__ +#define __IAudioEndpointOffloadStreamVolume_FWD_DEFINED__ +typedef interface IAudioEndpointOffloadStreamVolume IAudioEndpointOffloadStreamVolume; + +#endif /* __IAudioEndpointOffloadStreamVolume_FWD_DEFINED__ */ + + +#ifndef __IAudioEndpointOffloadStreamMute_FWD_DEFINED__ +#define __IAudioEndpointOffloadStreamMute_FWD_DEFINED__ +typedef interface IAudioEndpointOffloadStreamMute IAudioEndpointOffloadStreamMute; + +#endif /* __IAudioEndpointOffloadStreamMute_FWD_DEFINED__ */ + + +#ifndef __IAudioEndpointOffloadStreamMeter_FWD_DEFINED__ +#define __IAudioEndpointOffloadStreamMeter_FWD_DEFINED__ +typedef interface IAudioEndpointOffloadStreamMeter IAudioEndpointOffloadStreamMeter; + +#endif /* __IAudioEndpointOffloadStreamMeter_FWD_DEFINED__ */ + + +#ifndef __IAudioEndpointLastBufferControl_FWD_DEFINED__ +#define __IAudioEndpointLastBufferControl_FWD_DEFINED__ +typedef interface IAudioEndpointLastBufferControl IAudioEndpointLastBufferControl; + +#endif /* __IAudioEndpointLastBufferControl_FWD_DEFINED__ */ + + +#ifndef __IAudioLfxControl_FWD_DEFINED__ +#define __IAudioLfxControl_FWD_DEFINED__ +typedef interface IAudioLfxControl IAudioLfxControl; + +#endif /* __IAudioLfxControl_FWD_DEFINED__ */ + + +#ifndef __IHardwareAudioEngineBase_FWD_DEFINED__ +#define __IHardwareAudioEngineBase_FWD_DEFINED__ +typedef interface IHardwareAudioEngineBase IHardwareAudioEngineBase; + +#endif /* __IHardwareAudioEngineBase_FWD_DEFINED__ */ + + +#ifndef __IAudioEndpointControl_FWD_DEFINED__ +#define __IAudioEndpointControl_FWD_DEFINED__ +typedef interface IAudioEndpointControl IAudioEndpointControl; + +#endif /* __IAudioEndpointControl_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "propidl.h" +#include "audioapotypes.h" +#include "mmreg.h" +#include "mmdeviceapi.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_audioengineendpoint_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_audioengineendpoint_0000_0000_0001 + { + eHostProcessConnector = 0, + eOffloadConnector = ( eHostProcessConnector + 1 ) , + eLoopbackConnector = ( eOffloadConnector + 1 ) , + eKeywordDetectorConnector = ( eLoopbackConnector + 1 ) , + eLoopbackConnectorPostVolume = ( eKeywordDetectorConnector + 1 ) , + eConnectorCount = ( eLoopbackConnectorPostVolume + 1 ) + } EndpointConnectorType; + +typedef struct AUDIO_ENDPOINT_SHARED_CREATE_PARAMS + { + UINT32 u32Size; + UINT32 u32TSSessionId; + EndpointConnectorType targetEndpointConnectorType; + WAVEFORMATEX wfxDeviceFormat; + } AUDIO_ENDPOINT_SHARED_CREATE_PARAMS; + +typedef struct AUDIO_ENDPOINT_SHARED_CREATE_PARAMS *PAUDIO_ENDPOINT_SHARED_CREATE_PARAMS; + +typedef +enum AE_POSITION_FLAGS + { + POSITION_INVALID = 0, + POSITION_DISCONTINUOUS = 1, + POSITION_CONTINUOUS = 2, + POSITION_QPC_ERROR = 4 + } AE_POSITION_FLAGS; + +typedef struct AE_CURRENT_POSITION + { + UINT64 u64DevicePosition; + UINT64 u64StreamPosition; + UINT64 u64PaddingFrames; + HNSTIME hnsQPCPosition; + FLOAT32 f32FramesPerSecond; + AE_POSITION_FLAGS Flag; + } AE_CURRENT_POSITION; + +typedef struct AE_CURRENT_POSITION *PAE_CURRENT_POSITION; + + + +extern RPC_IF_HANDLE __MIDL_itf_audioengineendpoint_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioengineendpoint_0000_0000_v0_0_s_ifspec; + +#ifndef __IAudioEndpoint_INTERFACE_DEFINED__ +#define __IAudioEndpoint_INTERFACE_DEFINED__ + +/* interface IAudioEndpoint */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioEndpoint; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30A99515-1527-4451-AF9F-00C5F0234DAF") + IAudioEndpoint : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFrameFormat( + /* [out] */ WAVEFORMATEX **ppFormat) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFramesPerPacket( + /* [out] */ UINT32 *pFramesPerPacket) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLatency( + /* [out] */ HNSTIME *pLatency) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStreamFlags( + /* [in] */ DWORD streamFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetEventHandle( + /* [in] */ HANDLE eventHandle) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpoint * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpoint * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpoint * This); + + DECLSPEC_XFGVIRT(IAudioEndpoint, GetFrameFormat) + HRESULT ( STDMETHODCALLTYPE *GetFrameFormat )( + IAudioEndpoint * This, + /* [out] */ WAVEFORMATEX **ppFormat); + + DECLSPEC_XFGVIRT(IAudioEndpoint, GetFramesPerPacket) + HRESULT ( STDMETHODCALLTYPE *GetFramesPerPacket )( + IAudioEndpoint * This, + /* [out] */ UINT32 *pFramesPerPacket); + + DECLSPEC_XFGVIRT(IAudioEndpoint, GetLatency) + HRESULT ( STDMETHODCALLTYPE *GetLatency )( + IAudioEndpoint * This, + /* [out] */ HNSTIME *pLatency); + + DECLSPEC_XFGVIRT(IAudioEndpoint, SetStreamFlags) + HRESULT ( STDMETHODCALLTYPE *SetStreamFlags )( + IAudioEndpoint * This, + /* [in] */ DWORD streamFlags); + + DECLSPEC_XFGVIRT(IAudioEndpoint, SetEventHandle) + HRESULT ( STDMETHODCALLTYPE *SetEventHandle )( + IAudioEndpoint * This, + /* [in] */ HANDLE eventHandle); + + END_INTERFACE + } IAudioEndpointVtbl; + + interface IAudioEndpoint + { + CONST_VTBL struct IAudioEndpointVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpoint_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpoint_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpoint_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpoint_GetFrameFormat(This,ppFormat) \ + ( (This)->lpVtbl -> GetFrameFormat(This,ppFormat) ) + +#define IAudioEndpoint_GetFramesPerPacket(This,pFramesPerPacket) \ + ( (This)->lpVtbl -> GetFramesPerPacket(This,pFramesPerPacket) ) + +#define IAudioEndpoint_GetLatency(This,pLatency) \ + ( (This)->lpVtbl -> GetLatency(This,pLatency) ) + +#define IAudioEndpoint_SetStreamFlags(This,streamFlags) \ + ( (This)->lpVtbl -> SetStreamFlags(This,streamFlags) ) + +#define IAudioEndpoint_SetEventHandle(This,eventHandle) \ + ( (This)->lpVtbl -> SetEventHandle(This,eventHandle) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpoint_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioEndpointRT_INTERFACE_DEFINED__ +#define __IAudioEndpointRT_INTERFACE_DEFINED__ + +/* interface IAudioEndpointRT */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioEndpointRT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DFD2005F-A6E5-4d39-A265-939ADA9FBB4D") + IAudioEndpointRT : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE GetCurrentPadding( + /* [out] */ HNSTIME *pPadding, + /* [out] */ AE_CURRENT_POSITION *pAeCurrentPosition) = 0; + + virtual void STDMETHODCALLTYPE ProcessingComplete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPinInactive( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPinActive( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointRTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointRT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointRT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointRT * This); + + DECLSPEC_XFGVIRT(IAudioEndpointRT, GetCurrentPadding) + void ( STDMETHODCALLTYPE *GetCurrentPadding )( + IAudioEndpointRT * This, + /* [out] */ HNSTIME *pPadding, + /* [out] */ AE_CURRENT_POSITION *pAeCurrentPosition); + + DECLSPEC_XFGVIRT(IAudioEndpointRT, ProcessingComplete) + void ( STDMETHODCALLTYPE *ProcessingComplete )( + IAudioEndpointRT * This); + + DECLSPEC_XFGVIRT(IAudioEndpointRT, SetPinInactive) + HRESULT ( STDMETHODCALLTYPE *SetPinInactive )( + IAudioEndpointRT * This); + + DECLSPEC_XFGVIRT(IAudioEndpointRT, SetPinActive) + HRESULT ( STDMETHODCALLTYPE *SetPinActive )( + IAudioEndpointRT * This); + + END_INTERFACE + } IAudioEndpointRTVtbl; + + interface IAudioEndpointRT + { + CONST_VTBL struct IAudioEndpointRTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointRT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointRT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointRT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointRT_GetCurrentPadding(This,pPadding,pAeCurrentPosition) \ + ( (This)->lpVtbl -> GetCurrentPadding(This,pPadding,pAeCurrentPosition) ) + +#define IAudioEndpointRT_ProcessingComplete(This) \ + ( (This)->lpVtbl -> ProcessingComplete(This) ) + +#define IAudioEndpointRT_SetPinInactive(This) \ + ( (This)->lpVtbl -> SetPinInactive(This) ) + +#define IAudioEndpointRT_SetPinActive(This) \ + ( (This)->lpVtbl -> SetPinActive(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointRT_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioInputEndpointRT_INTERFACE_DEFINED__ +#define __IAudioInputEndpointRT_INTERFACE_DEFINED__ + +/* interface IAudioInputEndpointRT */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioInputEndpointRT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8026AB61-92B2-43c1-A1DF-5C37EBD08D82") + IAudioInputEndpointRT : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE GetInputDataPointer( + /* [out][in] */ APO_CONNECTION_PROPERTY *pConnectionProperty, + /* [out][in] */ AE_CURRENT_POSITION *pAeTimeStamp) = 0; + + virtual void STDMETHODCALLTYPE ReleaseInputDataPointer( + /* [in] */ UINT32 u32FrameCount, + /* [in] */ UINT_PTR pDataPointer) = 0; + + virtual void STDMETHODCALLTYPE PulseEndpoint( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioInputEndpointRTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioInputEndpointRT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioInputEndpointRT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioInputEndpointRT * This); + + DECLSPEC_XFGVIRT(IAudioInputEndpointRT, GetInputDataPointer) + void ( STDMETHODCALLTYPE *GetInputDataPointer )( + IAudioInputEndpointRT * This, + /* [out][in] */ APO_CONNECTION_PROPERTY *pConnectionProperty, + /* [out][in] */ AE_CURRENT_POSITION *pAeTimeStamp); + + DECLSPEC_XFGVIRT(IAudioInputEndpointRT, ReleaseInputDataPointer) + void ( STDMETHODCALLTYPE *ReleaseInputDataPointer )( + IAudioInputEndpointRT * This, + /* [in] */ UINT32 u32FrameCount, + /* [in] */ UINT_PTR pDataPointer); + + DECLSPEC_XFGVIRT(IAudioInputEndpointRT, PulseEndpoint) + void ( STDMETHODCALLTYPE *PulseEndpoint )( + IAudioInputEndpointRT * This); + + END_INTERFACE + } IAudioInputEndpointRTVtbl; + + interface IAudioInputEndpointRT + { + CONST_VTBL struct IAudioInputEndpointRTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioInputEndpointRT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioInputEndpointRT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioInputEndpointRT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioInputEndpointRT_GetInputDataPointer(This,pConnectionProperty,pAeTimeStamp) \ + ( (This)->lpVtbl -> GetInputDataPointer(This,pConnectionProperty,pAeTimeStamp) ) + +#define IAudioInputEndpointRT_ReleaseInputDataPointer(This,u32FrameCount,pDataPointer) \ + ( (This)->lpVtbl -> ReleaseInputDataPointer(This,u32FrameCount,pDataPointer) ) + +#define IAudioInputEndpointRT_PulseEndpoint(This) \ + ( (This)->lpVtbl -> PulseEndpoint(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioInputEndpointRT_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioOutputEndpointRT_INTERFACE_DEFINED__ +#define __IAudioOutputEndpointRT_INTERFACE_DEFINED__ + +/* interface IAudioOutputEndpointRT */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioOutputEndpointRT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8FA906E4-C31C-4e31-932E-19A66385E9AA") + IAudioOutputEndpointRT : public IUnknown + { + public: + virtual UINT_PTR STDMETHODCALLTYPE GetOutputDataPointer( + /* [in] */ UINT32 u32FrameCount, + /* [in] */ AE_CURRENT_POSITION *pAeTimeStamp) = 0; + + virtual void STDMETHODCALLTYPE ReleaseOutputDataPointer( + /* [in] */ const APO_CONNECTION_PROPERTY *pConnectionProperty) = 0; + + virtual void STDMETHODCALLTYPE PulseEndpoint( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioOutputEndpointRTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioOutputEndpointRT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioOutputEndpointRT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioOutputEndpointRT * This); + + DECLSPEC_XFGVIRT(IAudioOutputEndpointRT, GetOutputDataPointer) + UINT_PTR ( STDMETHODCALLTYPE *GetOutputDataPointer )( + IAudioOutputEndpointRT * This, + /* [in] */ UINT32 u32FrameCount, + /* [in] */ AE_CURRENT_POSITION *pAeTimeStamp); + + DECLSPEC_XFGVIRT(IAudioOutputEndpointRT, ReleaseOutputDataPointer) + void ( STDMETHODCALLTYPE *ReleaseOutputDataPointer )( + IAudioOutputEndpointRT * This, + /* [in] */ const APO_CONNECTION_PROPERTY *pConnectionProperty); + + DECLSPEC_XFGVIRT(IAudioOutputEndpointRT, PulseEndpoint) + void ( STDMETHODCALLTYPE *PulseEndpoint )( + IAudioOutputEndpointRT * This); + + END_INTERFACE + } IAudioOutputEndpointRTVtbl; + + interface IAudioOutputEndpointRT + { + CONST_VTBL struct IAudioOutputEndpointRTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioOutputEndpointRT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioOutputEndpointRT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioOutputEndpointRT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioOutputEndpointRT_GetOutputDataPointer(This,u32FrameCount,pAeTimeStamp) \ + ( (This)->lpVtbl -> GetOutputDataPointer(This,u32FrameCount,pAeTimeStamp) ) + +#define IAudioOutputEndpointRT_ReleaseOutputDataPointer(This,pConnectionProperty) \ + ( (This)->lpVtbl -> ReleaseOutputDataPointer(This,pConnectionProperty) ) + +#define IAudioOutputEndpointRT_PulseEndpoint(This) \ + ( (This)->lpVtbl -> PulseEndpoint(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioOutputEndpointRT_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioDeviceEndpoint_INTERFACE_DEFINED__ +#define __IAudioDeviceEndpoint_INTERFACE_DEFINED__ + +/* interface IAudioDeviceEndpoint */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioDeviceEndpoint; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D4952F5A-A0B2-4cc4-8B82-9358488DD8AC") + IAudioDeviceEndpoint : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetBuffer( + /* [in] */ HNSTIME MaxPeriod, + /* [in] */ UINT32 u32LatencyCoefficient) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRTCaps( + /* [out] */ BOOL *pbIsRTCapable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEventDrivenCapable( + /* [out] */ BOOL *pbisEventCapable) = 0; + + virtual HRESULT STDMETHODCALLTYPE WriteExclusiveModeParametersToSharedMemory( + /* [in] */ UINT_PTR hTargetProcess, + /* [in] */ HNSTIME hnsPeriod, + /* [in] */ HNSTIME hnsBufferDuration, + /* [in] */ UINT32 u32LatencyCoefficient, + /* [out] */ UINT32 *pu32SharedMemorySize, + /* [out] */ UINT_PTR *phSharedMemory) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioDeviceEndpointVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioDeviceEndpoint * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioDeviceEndpoint * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioDeviceEndpoint * This); + + DECLSPEC_XFGVIRT(IAudioDeviceEndpoint, SetBuffer) + HRESULT ( STDMETHODCALLTYPE *SetBuffer )( + IAudioDeviceEndpoint * This, + /* [in] */ HNSTIME MaxPeriod, + /* [in] */ UINT32 u32LatencyCoefficient); + + DECLSPEC_XFGVIRT(IAudioDeviceEndpoint, GetRTCaps) + HRESULT ( STDMETHODCALLTYPE *GetRTCaps )( + IAudioDeviceEndpoint * This, + /* [out] */ BOOL *pbIsRTCapable); + + DECLSPEC_XFGVIRT(IAudioDeviceEndpoint, GetEventDrivenCapable) + HRESULT ( STDMETHODCALLTYPE *GetEventDrivenCapable )( + IAudioDeviceEndpoint * This, + /* [out] */ BOOL *pbisEventCapable); + + DECLSPEC_XFGVIRT(IAudioDeviceEndpoint, WriteExclusiveModeParametersToSharedMemory) + HRESULT ( STDMETHODCALLTYPE *WriteExclusiveModeParametersToSharedMemory )( + IAudioDeviceEndpoint * This, + /* [in] */ UINT_PTR hTargetProcess, + /* [in] */ HNSTIME hnsPeriod, + /* [in] */ HNSTIME hnsBufferDuration, + /* [in] */ UINT32 u32LatencyCoefficient, + /* [out] */ UINT32 *pu32SharedMemorySize, + /* [out] */ UINT_PTR *phSharedMemory); + + END_INTERFACE + } IAudioDeviceEndpointVtbl; + + interface IAudioDeviceEndpoint + { + CONST_VTBL struct IAudioDeviceEndpointVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioDeviceEndpoint_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioDeviceEndpoint_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioDeviceEndpoint_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioDeviceEndpoint_SetBuffer(This,MaxPeriod,u32LatencyCoefficient) \ + ( (This)->lpVtbl -> SetBuffer(This,MaxPeriod,u32LatencyCoefficient) ) + +#define IAudioDeviceEndpoint_GetRTCaps(This,pbIsRTCapable) \ + ( (This)->lpVtbl -> GetRTCaps(This,pbIsRTCapable) ) + +#define IAudioDeviceEndpoint_GetEventDrivenCapable(This,pbisEventCapable) \ + ( (This)->lpVtbl -> GetEventDrivenCapable(This,pbisEventCapable) ) + +#define IAudioDeviceEndpoint_WriteExclusiveModeParametersToSharedMemory(This,hTargetProcess,hnsPeriod,hnsBufferDuration,u32LatencyCoefficient,pu32SharedMemorySize,phSharedMemory) \ + ( (This)->lpVtbl -> WriteExclusiveModeParametersToSharedMemory(This,hTargetProcess,hnsPeriod,hnsBufferDuration,u32LatencyCoefficient,pu32SharedMemorySize,phSharedMemory) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioDeviceEndpoint_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioEndpointOffloadStreamVolume_INTERFACE_DEFINED__ +#define __IAudioEndpointOffloadStreamVolume_INTERFACE_DEFINED__ + +/* interface IAudioEndpointOffloadStreamVolume */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioEndpointOffloadStreamVolume; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("64F1DD49-71CA-4281-8672-3A9EDDD1D0B6") + IAudioEndpointOffloadStreamVolume : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetVolumeChannelCount( + /* [out] */ UINT32 *pu32ChannelCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetChannelVolumes( + /* [in] */ UINT32 u32ChannelCount, + /* [in] */ FLOAT32 *pf32Volumes, + /* [in] */ AUDIO_CURVE_TYPE u32CurveType, + /* [in] */ HNSTIME *pCurveDuration) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChannelVolumes( + /* [in] */ UINT32 u32ChannelCount, + /* [out] */ FLOAT32 *pf32Volumes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointOffloadStreamVolumeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointOffloadStreamVolume * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointOffloadStreamVolume * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointOffloadStreamVolume * This); + + DECLSPEC_XFGVIRT(IAudioEndpointOffloadStreamVolume, GetVolumeChannelCount) + HRESULT ( STDMETHODCALLTYPE *GetVolumeChannelCount )( + IAudioEndpointOffloadStreamVolume * This, + /* [out] */ UINT32 *pu32ChannelCount); + + DECLSPEC_XFGVIRT(IAudioEndpointOffloadStreamVolume, SetChannelVolumes) + HRESULT ( STDMETHODCALLTYPE *SetChannelVolumes )( + IAudioEndpointOffloadStreamVolume * This, + /* [in] */ UINT32 u32ChannelCount, + /* [in] */ FLOAT32 *pf32Volumes, + /* [in] */ AUDIO_CURVE_TYPE u32CurveType, + /* [in] */ HNSTIME *pCurveDuration); + + DECLSPEC_XFGVIRT(IAudioEndpointOffloadStreamVolume, GetChannelVolumes) + HRESULT ( STDMETHODCALLTYPE *GetChannelVolumes )( + IAudioEndpointOffloadStreamVolume * This, + /* [in] */ UINT32 u32ChannelCount, + /* [out] */ FLOAT32 *pf32Volumes); + + END_INTERFACE + } IAudioEndpointOffloadStreamVolumeVtbl; + + interface IAudioEndpointOffloadStreamVolume + { + CONST_VTBL struct IAudioEndpointOffloadStreamVolumeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointOffloadStreamVolume_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointOffloadStreamVolume_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointOffloadStreamVolume_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointOffloadStreamVolume_GetVolumeChannelCount(This,pu32ChannelCount) \ + ( (This)->lpVtbl -> GetVolumeChannelCount(This,pu32ChannelCount) ) + +#define IAudioEndpointOffloadStreamVolume_SetChannelVolumes(This,u32ChannelCount,pf32Volumes,u32CurveType,pCurveDuration) \ + ( (This)->lpVtbl -> SetChannelVolumes(This,u32ChannelCount,pf32Volumes,u32CurveType,pCurveDuration) ) + +#define IAudioEndpointOffloadStreamVolume_GetChannelVolumes(This,u32ChannelCount,pf32Volumes) \ + ( (This)->lpVtbl -> GetChannelVolumes(This,u32ChannelCount,pf32Volumes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointOffloadStreamVolume_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioEndpointOffloadStreamMute_INTERFACE_DEFINED__ +#define __IAudioEndpointOffloadStreamMute_INTERFACE_DEFINED__ + +/* interface IAudioEndpointOffloadStreamMute */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioEndpointOffloadStreamMute; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DFE21355-5EC2-40E0-8D6B-710AC3C00249") + IAudioEndpointOffloadStreamMute : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetMute( + /* [in] */ boolean bMuted) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMute( + /* [out] */ boolean *pbMuted) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointOffloadStreamMuteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointOffloadStreamMute * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointOffloadStreamMute * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointOffloadStreamMute * This); + + DECLSPEC_XFGVIRT(IAudioEndpointOffloadStreamMute, SetMute) + HRESULT ( STDMETHODCALLTYPE *SetMute )( + IAudioEndpointOffloadStreamMute * This, + /* [in] */ boolean bMuted); + + DECLSPEC_XFGVIRT(IAudioEndpointOffloadStreamMute, GetMute) + HRESULT ( STDMETHODCALLTYPE *GetMute )( + IAudioEndpointOffloadStreamMute * This, + /* [out] */ boolean *pbMuted); + + END_INTERFACE + } IAudioEndpointOffloadStreamMuteVtbl; + + interface IAudioEndpointOffloadStreamMute + { + CONST_VTBL struct IAudioEndpointOffloadStreamMuteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointOffloadStreamMute_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointOffloadStreamMute_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointOffloadStreamMute_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointOffloadStreamMute_SetMute(This,bMuted) \ + ( (This)->lpVtbl -> SetMute(This,bMuted) ) + +#define IAudioEndpointOffloadStreamMute_GetMute(This,pbMuted) \ + ( (This)->lpVtbl -> GetMute(This,pbMuted) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointOffloadStreamMute_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioEndpointOffloadStreamMeter_INTERFACE_DEFINED__ +#define __IAudioEndpointOffloadStreamMeter_INTERFACE_DEFINED__ + +/* interface IAudioEndpointOffloadStreamMeter */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioEndpointOffloadStreamMeter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E1546DCE-9DD1-418B-9AB2-348CED161C86") + IAudioEndpointOffloadStreamMeter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetMeterChannelCount( + /* [out] */ UINT32 *pu32ChannelCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMeteringData( + /* [in] */ UINT32 u32ChannelCount, + /* [out] */ FLOAT32 *pf32PeakValues) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointOffloadStreamMeterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointOffloadStreamMeter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointOffloadStreamMeter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointOffloadStreamMeter * This); + + DECLSPEC_XFGVIRT(IAudioEndpointOffloadStreamMeter, GetMeterChannelCount) + HRESULT ( STDMETHODCALLTYPE *GetMeterChannelCount )( + IAudioEndpointOffloadStreamMeter * This, + /* [out] */ UINT32 *pu32ChannelCount); + + DECLSPEC_XFGVIRT(IAudioEndpointOffloadStreamMeter, GetMeteringData) + HRESULT ( STDMETHODCALLTYPE *GetMeteringData )( + IAudioEndpointOffloadStreamMeter * This, + /* [in] */ UINT32 u32ChannelCount, + /* [out] */ FLOAT32 *pf32PeakValues); + + END_INTERFACE + } IAudioEndpointOffloadStreamMeterVtbl; + + interface IAudioEndpointOffloadStreamMeter + { + CONST_VTBL struct IAudioEndpointOffloadStreamMeterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointOffloadStreamMeter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointOffloadStreamMeter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointOffloadStreamMeter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointOffloadStreamMeter_GetMeterChannelCount(This,pu32ChannelCount) \ + ( (This)->lpVtbl -> GetMeterChannelCount(This,pu32ChannelCount) ) + +#define IAudioEndpointOffloadStreamMeter_GetMeteringData(This,u32ChannelCount,pf32PeakValues) \ + ( (This)->lpVtbl -> GetMeteringData(This,u32ChannelCount,pf32PeakValues) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointOffloadStreamMeter_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioEndpointLastBufferControl_INTERFACE_DEFINED__ +#define __IAudioEndpointLastBufferControl_INTERFACE_DEFINED__ + +/* interface IAudioEndpointLastBufferControl */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioEndpointLastBufferControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F8520DD3-8F9D-4437-9861-62F584C33DD6") + IAudioEndpointLastBufferControl : public IUnknown + { + public: + virtual BOOL STDMETHODCALLTYPE IsLastBufferControlSupported( void) = 0; + + virtual void STDMETHODCALLTYPE ReleaseOutputDataPointerForLastBuffer( + /* [in] */ const APO_CONNECTION_PROPERTY *pConnectionProperty) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointLastBufferControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointLastBufferControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointLastBufferControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointLastBufferControl * This); + + DECLSPEC_XFGVIRT(IAudioEndpointLastBufferControl, IsLastBufferControlSupported) + BOOL ( STDMETHODCALLTYPE *IsLastBufferControlSupported )( + IAudioEndpointLastBufferControl * This); + + DECLSPEC_XFGVIRT(IAudioEndpointLastBufferControl, ReleaseOutputDataPointerForLastBuffer) + void ( STDMETHODCALLTYPE *ReleaseOutputDataPointerForLastBuffer )( + IAudioEndpointLastBufferControl * This, + /* [in] */ const APO_CONNECTION_PROPERTY *pConnectionProperty); + + END_INTERFACE + } IAudioEndpointLastBufferControlVtbl; + + interface IAudioEndpointLastBufferControl + { + CONST_VTBL struct IAudioEndpointLastBufferControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointLastBufferControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointLastBufferControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointLastBufferControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointLastBufferControl_IsLastBufferControlSupported(This) \ + ( (This)->lpVtbl -> IsLastBufferControlSupported(This) ) + +#define IAudioEndpointLastBufferControl_ReleaseOutputDataPointerForLastBuffer(This,pConnectionProperty) \ + ( (This)->lpVtbl -> ReleaseOutputDataPointerForLastBuffer(This,pConnectionProperty) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointLastBufferControl_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioLfxControl_INTERFACE_DEFINED__ +#define __IAudioLfxControl_INTERFACE_DEFINED__ + +/* interface IAudioLfxControl */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioLfxControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("076A6922-D802-4F83-BAF6-409D9CA11BFE") + IAudioLfxControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetLocalEffectsState( + /* [in] */ BOOL bEnabled) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLocalEffectsState( + /* [out] */ BOOL *pbEnabled) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioLfxControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioLfxControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioLfxControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioLfxControl * This); + + DECLSPEC_XFGVIRT(IAudioLfxControl, SetLocalEffectsState) + HRESULT ( STDMETHODCALLTYPE *SetLocalEffectsState )( + IAudioLfxControl * This, + /* [in] */ BOOL bEnabled); + + DECLSPEC_XFGVIRT(IAudioLfxControl, GetLocalEffectsState) + HRESULT ( STDMETHODCALLTYPE *GetLocalEffectsState )( + IAudioLfxControl * This, + /* [out] */ BOOL *pbEnabled); + + END_INTERFACE + } IAudioLfxControlVtbl; + + interface IAudioLfxControl + { + CONST_VTBL struct IAudioLfxControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioLfxControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioLfxControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioLfxControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioLfxControl_SetLocalEffectsState(This,bEnabled) \ + ( (This)->lpVtbl -> SetLocalEffectsState(This,bEnabled) ) + +#define IAudioLfxControl_GetLocalEffectsState(This,pbEnabled) \ + ( (This)->lpVtbl -> GetLocalEffectsState(This,pbEnabled) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioLfxControl_INTERFACE_DEFINED__ */ + + +#ifndef __IHardwareAudioEngineBase_INTERFACE_DEFINED__ +#define __IHardwareAudioEngineBase_INTERFACE_DEFINED__ + +/* interface IHardwareAudioEngineBase */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IHardwareAudioEngineBase; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EDDCE3E4-F3C1-453a-B461-223563CBD886") + IHardwareAudioEngineBase : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAvailableOffloadConnectorCount( + /* [annotation][in] */ + _In_ LPWSTR _pwstrDeviceId, + /* [annotation][in] */ + _In_ UINT32 _uConnectorId, + /* [annotation][out] */ + _Out_ UINT32 *_pAvailableConnectorInstanceCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEngineFormat( + /* [annotation][in] */ + _In_ IMMDevice *pDevice, + /* [annotation][in] */ + _In_ BOOL _bRequestDeviceFormat, + /* [out] */ WAVEFORMATEX **_ppwfxFormat) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetEngineDeviceFormat( + /* [annotation][in] */ + _In_ IMMDevice *pDevice, + /* [in] */ WAVEFORMATEX *_pwfxFormat) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetGfxState( + /* [annotation][in] */ + _In_ IMMDevice *pDevice, + /* [annotation][in] */ + _In_ BOOL _bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGfxState( + /* [annotation][in] */ + _In_ IMMDevice *pDevice, + /* [annotation][out] */ + _Out_ BOOL *_pbEnable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHardwareAudioEngineBaseVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IHardwareAudioEngineBase * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IHardwareAudioEngineBase * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IHardwareAudioEngineBase * This); + + DECLSPEC_XFGVIRT(IHardwareAudioEngineBase, GetAvailableOffloadConnectorCount) + HRESULT ( STDMETHODCALLTYPE *GetAvailableOffloadConnectorCount )( + IHardwareAudioEngineBase * This, + /* [annotation][in] */ + _In_ LPWSTR _pwstrDeviceId, + /* [annotation][in] */ + _In_ UINT32 _uConnectorId, + /* [annotation][out] */ + _Out_ UINT32 *_pAvailableConnectorInstanceCount); + + DECLSPEC_XFGVIRT(IHardwareAudioEngineBase, GetEngineFormat) + HRESULT ( STDMETHODCALLTYPE *GetEngineFormat )( + IHardwareAudioEngineBase * This, + /* [annotation][in] */ + _In_ IMMDevice *pDevice, + /* [annotation][in] */ + _In_ BOOL _bRequestDeviceFormat, + /* [out] */ WAVEFORMATEX **_ppwfxFormat); + + DECLSPEC_XFGVIRT(IHardwareAudioEngineBase, SetEngineDeviceFormat) + HRESULT ( STDMETHODCALLTYPE *SetEngineDeviceFormat )( + IHardwareAudioEngineBase * This, + /* [annotation][in] */ + _In_ IMMDevice *pDevice, + /* [in] */ WAVEFORMATEX *_pwfxFormat); + + DECLSPEC_XFGVIRT(IHardwareAudioEngineBase, SetGfxState) + HRESULT ( STDMETHODCALLTYPE *SetGfxState )( + IHardwareAudioEngineBase * This, + /* [annotation][in] */ + _In_ IMMDevice *pDevice, + /* [annotation][in] */ + _In_ BOOL _bEnable); + + DECLSPEC_XFGVIRT(IHardwareAudioEngineBase, GetGfxState) + HRESULT ( STDMETHODCALLTYPE *GetGfxState )( + IHardwareAudioEngineBase * This, + /* [annotation][in] */ + _In_ IMMDevice *pDevice, + /* [annotation][out] */ + _Out_ BOOL *_pbEnable); + + END_INTERFACE + } IHardwareAudioEngineBaseVtbl; + + interface IHardwareAudioEngineBase + { + CONST_VTBL struct IHardwareAudioEngineBaseVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHardwareAudioEngineBase_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHardwareAudioEngineBase_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHardwareAudioEngineBase_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHardwareAudioEngineBase_GetAvailableOffloadConnectorCount(This,_pwstrDeviceId,_uConnectorId,_pAvailableConnectorInstanceCount) \ + ( (This)->lpVtbl -> GetAvailableOffloadConnectorCount(This,_pwstrDeviceId,_uConnectorId,_pAvailableConnectorInstanceCount) ) + +#define IHardwareAudioEngineBase_GetEngineFormat(This,pDevice,_bRequestDeviceFormat,_ppwfxFormat) \ + ( (This)->lpVtbl -> GetEngineFormat(This,pDevice,_bRequestDeviceFormat,_ppwfxFormat) ) + +#define IHardwareAudioEngineBase_SetEngineDeviceFormat(This,pDevice,_pwfxFormat) \ + ( (This)->lpVtbl -> SetEngineDeviceFormat(This,pDevice,_pwfxFormat) ) + +#define IHardwareAudioEngineBase_SetGfxState(This,pDevice,_bEnable) \ + ( (This)->lpVtbl -> SetGfxState(This,pDevice,_bEnable) ) + +#define IHardwareAudioEngineBase_GetGfxState(This,pDevice,_pbEnable) \ + ( (This)->lpVtbl -> GetGfxState(This,pDevice,_pbEnable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHardwareAudioEngineBase_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioEndpointControl_INTERFACE_DEFINED__ +#define __IAudioEndpointControl_INTERFACE_DEFINED__ + +/* interface IAudioEndpointControl */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioEndpointControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C684B72A-6DF4-4774-BDF9-76B77509B653") + IAudioEndpointControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Start( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAudioEndpointControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAudioEndpointControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAudioEndpointControl * This); + + DECLSPEC_XFGVIRT(IAudioEndpointControl, Start) + HRESULT ( STDMETHODCALLTYPE *Start )( + __RPC__in IAudioEndpointControl * This); + + DECLSPEC_XFGVIRT(IAudioEndpointControl, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IAudioEndpointControl * This); + + DECLSPEC_XFGVIRT(IAudioEndpointControl, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IAudioEndpointControl * This); + + END_INTERFACE + } IAudioEndpointControlVtbl; + + interface IAudioEndpointControl + { + CONST_VTBL struct IAudioEndpointControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointControl_Start(This) \ + ( (This)->lpVtbl -> Start(This) ) + +#define IAudioEndpointControl_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IAudioEndpointControl_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointControl_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioengineendpoint_0000_0012 */ +/* [local] */ + +#define STATIC_DEVINTERFACE_AUDIOENDPOINTPLUGIN \ + 0X9F2F7B66l, 0X65AC, 0X4FA6, 0X8A, 0XE4, 0X12, 0X3C, 0X78, 0XB8, 0X93, 0X13 +DEFINE_GUIDSTRUCT("9F2F7B66-65AC-4FA6-8AE4-123C78B89313", DEVINTERFACE_AUDIOENDPOINTPLUGIN); +#define DEVINTERFACE_AUDIOENDPOINTPLUGIN DEFINE_GUIDNAMED(DEVINTERFACE_AUDIOENDPOINTPLUGIN) +DEFINE_PROPERTYKEY(DEVPKEY_AudioEndpointPlugin_FactoryCLSID, 0x12d83bd7, 0xcf12, 0x46be, 0x85, 0x40, 0x81, 0x27, 0x10, 0xd3, 0x2, 0x1c, 1); +DEFINE_PROPERTYKEY(DEVPKEY_AudioEndpointPlugin_DataFlow, 0x12d83bd7, 0xcf12, 0x46be, 0x85, 0x40, 0x81, 0x27, 0x10, 0xd3, 0x2, 0x1c, 2); +DEFINE_PROPERTYKEY(DEVPKEY_AudioEndpointPlugin_PnPInterface, 0x12d83bd7, 0xcf12, 0x46be, 0x85, 0x40, 0x81, 0x27, 0x10, 0xd3, 0x2, 0x1c, 3); +DEFINE_PROPERTYKEY(DEVPKEY_AudioEndpointPlugin2_FactoryCLSID, 0x12d83bd7, 0xcf12, 0x46be, 0x85, 0x40, 0x81, 0x27, 0x10, 0xd3, 0x2, 0x1c, 4); +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_audioengineendpoint_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioengineendpoint_0000_0012_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioEngineEndpoint.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioEngineEndpoint.idl new file mode 100644 index 0000000000000000000000000000000000000000..030cd8ffd8ca1fe1671d8cf95a33064c1215d997 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioEngineEndpoint.idl @@ -0,0 +1,1026 @@ +// +// audioengineendpoint.idl -- Copyright (c) 2003 Microsoft Corporation +// +// Description: +// +// The interface and type definitions for audio engine endpoints. +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "propidl.idl"; +import "audioapotypes.h"; +import "mmreg.h"; +import "mmdeviceapi.idl"; + +// Endpoint pin type +typedef enum { + eHostProcessConnector, + eOffloadConnector, + eLoopbackConnector, + eKeywordDetectorConnector, + eLoopbackConnectorPostVolume, + eConnectorCount +} EndpointConnectorType; + +//----------------------------------------------------------------------------- +// Description: +// +// Creation parameters for shared mode. +// +typedef struct AUDIO_ENDPOINT_SHARED_CREATE_PARAMS +{ + // The size of the structure. + UINT32 u32Size; + + // SessionId + UINT32 u32TSSessionId; + + // Target endpoint connector type + EndpointConnectorType targetEndpointConnectorType; + + // The format of the endpoint. + WAVEFORMATEX wfxDeviceFormat; +} AUDIO_ENDPOINT_SHARED_CREATE_PARAMS, *PAUDIO_ENDPOINT_SHARED_CREATE_PARAMS; + +//----------------------------------------------------------------------------- +// Description: +// +// Each AE_CURRENT_POSITION structure has a flag associated with it. +// The flag for each structure may be either invalid, valid, or +// discontinuous... +// +typedef enum AE_POSITION_FLAGS +{ + // POSITION_INVALID means that the position is invalid + // and should not be used. + POSITION_INVALID = 0, + + // Position is valid. However there has been + // a disruption such as a glitch or state transition. + // This position is not correlated with the previous one. + POSITION_DISCONTINUOUS = 1, + + // Position is valid. The previous packet + // and this packet aligns perfectly on the timeline. + POSITION_CONTINUOUS = 2, + + // The QPC value associated with this position is not accurate + // within 300 Microseconds. + POSITION_QPC_ERROR = 4 +} AE_POSITION_FLAGS; + +//----------------------------------------------------------------------------- +// Description: +// +// Structure used to report the current frame position from the device to the clients. +// +typedef struct AE_CURRENT_POSITION +{ + // Device position in frames. + UINT64 u64DevicePosition; + + // Stream position in frames used for capture to determine starting point. + UINT64 u64StreamPosition; + + // Current amount of padding (in frames) between the current position and the stream fill point. + UINT64 u64PaddingFrames; + + // Translated QPC Timer value taken at the time the frame position was checked. + HNSTIME hnsQPCPosition; + + // Calculated value of the data rate at the point when position was set. + FLOAT32 f32FramesPerSecond; + + // Indicates the validity of the position information. + AE_POSITION_FLAGS Flag; +} AE_CURRENT_POSITION, *PAE_CURRENT_POSITION; + +//------------------------------------------------------------------------------------- +// An Audio Endpoint object abstracts the audio device, audio API and any other +// data source/sink from the AudioProcessor. An Audio Endpoint must implement the +// IAudioEndpoint, IAudioEndpointRT, and one or both of IAudioInputEndpointRT and +// IAudioOutputEndpointRT interfaces. The clients of the processor must attach at least +// two Audio Endpoint objects to the Audio Processor, one for input and one for output +// for useful work to occur. An endpoint may only be connected to one connection, and +// each connection may only have one endpoint connected to it. +// +// The audio endpoint object is designed to be a client-extendable object that is used +// to get data into or out of an audio engine instance. Data transfer is handled by +// connecting an audio endpoint to an audio connection. See +// IAudioProcessor::AttachInputEndpointToConnection +// and IAudioProcessor::AttachOutputEndpointToConnection for more information on attaching +// endpoints to connections, and the sections on IAudioEndpoint, IAudioEndpointRT, +// IAudioInputEndpointRT, and IAudioOutputEndpointRT interfaces for info on the audio +// engine side of the endpoint interfaces. +// +// The client-facing side of the endpoint objects is unspecified and may be written in any +// fashion convenient to the needs of the client of the endpoint. The specified interfaces +// must be implemented as stated above. If the endpoint is not being used to drive a graph, +// skip to the next paragraph. Otherwise, if the endpoint is being used to drive a processing +// graph, the processor will call the GetCurrentPadding interface before every processing +// pass. At that time, the endpoint should return the amount of data that is held in the +// endpoint. For an output endpoint, that would be the amount of data queued on the device. +// For an input endpoint, that would be the amount of data captured from the device but not +// yet delivered to the engine. +// +// The processor will call either IAudioInputEndpointRT::GetInputDataPointer or +// IAudioOutputEndpointRT::GetOutputDataPointer (depending on +// whether the endpoint is input or output to the engine), at which time the endpoint should +// return a data pointer of the requested size. After processing occurs, the processor will +// call IAudioInputEndpointRT::ReleaseInputDataPointer or +// IAudioOutputEndpointRT::ReleaseOutputDataPointer, at which time the endpoint can +// handle the data appropriately. See the various interface calls given above for more +// detailed information. +// +// On the client-facing side of the endpoint object, data just must be capable of being +// delivered to or gotten from the endpoint as appropriate. If that means that the client +// wants to use an interface called WriteData to write data on the endpoint, that is fine. +// The client side could use a callback mechanism, such that there is a method called +// RegisterCallback(myFuncPtr) that causes myFuncPtr to be called each time +// GetInputDataPointer is called (however, the myFuncPtr would have to conform to the +// realtime requirements if that were the case). +// +// This is what is meant by a client-extendable object: the interface used by the client +// can be anything, as long as the interfaces required by the engine are present and operate +// to deliver or consume data to or from the engine as specified in the required interfaces. +// The "interface" to the client side doesn't even need to be a COM interface: it could be a +// simple set of C calls or C++ object methods. +// +// The AudioProcessor uses this interface to get information about the endpoint(s) +// attached to it. +[ + object, + uuid(30A99515-1527-4451-AF9F-00C5F0234DAF), + pointer_default(unique), + local +] +interface IAudioEndpoint : IUnknown{ + //------------------------------------------------------------------------- + // Description: + // + // Returns the format of the endpoint. + // + // Parameters: + // + // ppFormat - [out] If S_OK, returns the format of the AudioEndpoint. + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // For example, an AudioEndpoint that is abstracting an audio device + // should return the device format. An AudioEndpoint that is abstracting a + // file should return the file format. + // + // Clients must release ppFormat by calling CoTaskMemFree. + // + // This method may not be called from a real-time processing thread. + // + HRESULT GetFrameFormat([out] WAVEFORMATEX** ppFormat); + + + //------------------------------------------------------------------------- + // Description: + // + // Returns the maximum frame count of the endpoint. + // + // Parameters: + // + // pFramesPerPacket - [out] If S_OK, returns the maximum number of frames + // that may be requested in GetInputDataPointer + // or GetOutputDataPointer. + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // This method returns the maximum frame count that the endpoint in question + // is capable of supporting. The endpoint must accept any request for input + // or output data pointers as long as the requested number of frames is less + // than or equal to the value returned by this function. Requesting a frame + // count from IAudioInputEndpointRT::GetInputDataPointer or + // IAudioOutputEndpointRT::GetOutputDataPointer that is greater than + // the value returned by this function will result in undefined behavior (in + // the debug build, an assert is likely; in retail, the audio data may glitch). + // + // This is often referred to as the "periodicity" of the engine or pump. + // + // Note: This method may be not be called from a real-time processing thread. + // + HRESULT GetFramesPerPacket([out] UINT32 *pFramesPerPacket); + + + //------------------------------------------------------------------------- + // Description: + // + // Returns the latency of the endpoint. + // + // Parameters: + // + // pLatency - [out] If S_OK, returns the latency introduced by the endpoint. + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // This method returns the latency that the endpoint inserts into the stream. + // The latency for a typical buffer endpoint will be zero (i.e. there is no + // latency writing data to a RAM buffer). The latency for a typical hardware + // endpoint will be how ever much buffer latency the endpoint is using to stay + // ahead of the hardware. As an example, if an endpoint is double buffering on + // top of hardware using 5 ms buffers, the latency reported by the endpoint would + // be 5 ms. + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT GetLatency([out] HNSTIME *pLatency); + + //------------------------------------------------------------------------- + // Description: + // + // Pass the IAudioClient::Initialize streamFlags to the endpoint + // + // Parameters: + // + // streamFlags - the stream flags passed to IAudioClient::Initialize + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT SetStreamFlags([in] DWORD streamFlags); + + + //------------------------------------------------------------------------- + // Description: + // + // A WASAPI client supplies this event handle for a buffer completion + // callback + // + // Parameters: + // + // eventHandle - event handle to be signaled when a buffer completes + // + // Return values: + // + // S_OK Successful completion. + // E_INVALIDARG eventHandle is NULL or invalid + // + // Remarks: + // + // This is the event handle passed in IAudioClient::SetEventHandle + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT SetEventHandle([in] HANDLE eventHandle); +}; // IAudioEndpoint + + +// The AudioProcessor uses this interface to discover the current padding between read +// and write positions. +[ + object, + uuid(DFD2005F-A6E5-4d39-A265-939ADA9FBB4D), + pointer_default(unique), + local +] +interface IAudioEndpointRT : IUnknown{ + //------------------------------------------------------------------------- + // Description: + // + // Returns the amount of data queued up in the endpoint. + // + // Parameters: + // + // pPadding - [out] Returns the current difference between + // the read and write pointers. + // + // pAeCurrentPosition - [out] Returns the current position information + // for the endpoint. + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // This method returns the difference between the read and write positions. + // The Audio Pump will use this information to decide how much more processing + // is required. + // + // Different AudioEndpoints will calculate this differently. + // For example an AudioEndpoint that is abstracting a looped-render buffer + // on a HW device will return the difference between the read and write + // offsets. + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + void GetCurrentPadding([out] HNSTIME *pPadding, [out] AE_CURRENT_POSITION *pAeCurrentPosition); + + //------------------------------------------------------------------------- + // Description: + // + // Calls into the endpoint to indicate that a processing pass has been completed + // + // Parameters: + // + // none + // + // Return values: + // + // none + // + // Remarks: + // + // This method allows the Audio Pump to call into the Endpoint to set an event indicating + // that a processing pass had been completed and that there is audio data to be passed to/from + // the endpoint device. This is necessary for Standard streaming on a multiprocessor + // system to ensure that the sequence of events prevents glitching. It may be ignored by an + // RT thread. + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + void ProcessingComplete(void); + + //------------------------------------------------------------------------- + // Description: + // + // Calls into the endpoint to tell it to change the state of the underlying KS + // pin to inactive + // + // Parameters: + // + // none + // + // Return values: + // + // S_OK + // FAILURECODE + // + // Remarks: + // + // This method allows the Audio Pump to call into the Endpoint to tell it to set the state + // of the underlying KS pin to "pause" or "not running". If the endpoint is virtual or does not + // otherwise sit on top of physical hardware, this method may simply return S_OK + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + HRESULT SetPinInactive(void); + + //------------------------------------------------------------------------- + // Description: + // + // Calls into the endpoint to tell it to change the state of the underlying KS + // pin to active + // + // Parameters: + // + // none + // + // Return values: + // + // S_OK + // FAILURECODE + // + // Remarks: + // + // This method allows the Audio Pump to call into the Endpoint to tell it to set the state + // of the underlying KS pin to "running". If the endpoint is virtual or does not + // otherwise sit on top of physical hardware, this method may simply return S_OK + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + HRESULT SetPinActive(void); +}; // IAudioEndpointRT + + +// The AudioProcessor uses this interface to get appropriate input buffers for +// each processing pass. +[ + object, + uuid(8026AB61-92B2-43c1-A1DF-5C37EBD08D82), + pointer_default(unique), + local +] +interface IAudioInputEndpointRT : IUnknown{ + //------------------------------------------------------------------------- + // Description: + // + // Returns pointer to the data that will be read. + // + // Parameters: + // + // pConnectionProperty - [in,out] A pointer to an APO_CONNECTION_PROPERTY + // structure. Upon entry, the fields are set as follows: + // + // pBuffer - NULL. + // + // u32ValidFrameCount - Used to determine how many frames need to be + // in the returned data pointer. AudioEndpoint should not cache this + // information. AudioProcessor can change this number depending on + // its processing needs. + // + // u32BufferFlags - BUFFER_INVALID. + // + // Upon exit, the endpoint should set the fields as follows: + // + // pBuffer - pointer to valid memory where either real data is or + // silence could be placed, depending on the value of u32BufferFlags. + // + // u32ValidFrameCount - remains unchanged. + // + // u32BufferFlags - set to BUFFER_VALID if data pointer contains + // valid audio data that is not silent; BUFFER_SILENT if the data + // pointer would contain only silent data. The data in the buffer does + // not actually need to be silence, but the buffer given in pBuffer + // must be capable of holding the u32ValidFrameCount frames worth of + // silence. + // + // pAeTimeStamp - [in] The time-stamp of the data that is captured. + // This parameter is optional. + // + // Remarks: + // + // This method returns a pointer to the data (in pConnectionProperty->pBuffer) that + // needs to be input into the engine. + // + // The data should be valid in the buffer until the + // ReleaseInputDataPointer method is called. The object should return + // the requested amount of information, inserting silence if there is no + // valid data. + // + // The returned buffer pointer pConnectionProperty->pBuffer must be frame-aligned. + // + // Endpoints do not support the 'extraBuffer' space which may be available in + // the APO_CONNECTION_DESCRIPTOR associated with the Connection Properties + // passed to it. + // + // A pConnectionBuffer->u32ValidFrameCount of 0 is a valid request. In this case, + // the input pointer should be valid but will not be read from. u32ValidFrameCount + // must be <= to the frame count returned in IAudioEndpoint::GetFramesPerPacket. + // + // In the case where there is no or not enough valid data to satisfy the + // u32ValidFrameCount request, a glitch should be logged with the wmi services + // available and silence should be returned. + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + void GetInputDataPointer([in, out] APO_CONNECTION_PROPERTY *pConnectionProperty, + [in, out] AE_CURRENT_POSITION *pAeTimeStamp); + + //------------------------------------------------------------------------- + // Description: + // + // Releases the acquired data pointer. + // + // Parameters: + // + // u32FrameCount - [in] Used to determine how many frames have been + // consumed by the AudioProcessor. This count might not + // be the same as GetInputDataPointer + // + // pDataPointer - [in] The pointer that has been returned from + // GetInputDataPointer. + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // This method tells the AudioEndpoint that the AudioProcessor is done + // with the input data pointer and also tells how many frames have been + // consumed. + // + // For example, an AudioEndpoint that is attached to the input of the + // AudioProcessor and that abstracts a looped buffer can advance its read + // cursor. + // + // An u32FrameCount of 0 means that the client did not utilize any data + // from the given input buffer. The u32FrameCount must be <= to the request + // size from GetInputDataPointer. + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + void ReleaseInputDataPointer([in] UINT32 u32FrameCount, [in] UINT_PTR pDataPointer); + + //------------------------------------------------------------------------- + // Description: + // + // "Pulses" the endpoint, normally by signaling a client-supplied event handle + // + // Parameters: + // + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // This method is normally called at the end of a pump pass and signals + // a client event handle + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + // See Also: + // IAudioProcessor::EndProcess + // + void PulseEndpoint(void); + +}; // IAudioInputEndpointRT + + +// The AudioProcessor uses this interface to get appropriate output buffers +// for each processing pass. +[ + object, + uuid(8FA906E4-C31C-4e31-932E-19A66385E9AA), + pointer_default(unique), + local +] +interface IAudioOutputEndpointRT : IUnknown{ + //------------------------------------------------------------------------- + // Description: + // + // Returns pointer to a buffer that will be written to. + // + // Parameters: + // + // u32FrameCount - [in] Used to determine how many frames need to be + // in the returned data pointer. AudioEndpoint should not + // cache this information. AudioProcessor can change this + // number depending on its processing needs + // pAeTimeStamp - [in] The time-stamp of the data that is rendered. + // This parameter is optional. + // + // Return values: + // + // The data pointer that needs to be played/recorded. + // + // Remarks: + // + // This method returns a pointer to a buffer into which to place the data + // that is output from the engine. + // + // The data won’t be valid except during the duration of the + // ReleaseOutputDataPointer method. + // + // The returned pointer must be frame-aligned. + // + // A u32FrameCount of 0 is a valid request. In this case, the output pointer + // will not be written into, but it should be a valid pointer. u32FrameCount + // must be <= to the frame count returned in IAudioEndpoint::GetFramesPerPacket. + // + // In the case where there is internally not enough + // room to satisfy the client’s request for a buffer pointer, a glitch may + // occur. In this case, the endpoint should still return an address which can + // be written to, however, when ReleaseOutputDataPointer is called this + // data will be lost. The glitch should be logged with the wmi logging + // services available. + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + UINT_PTR GetOutputDataPointer( [in] UINT32 u32FrameCount, + [in] AE_CURRENT_POSITION *pAeTimeStamp); + + + + //------------------------------------------------------------------------- + // Description: + // + // Releases the acquired data pointer. + // + // Parameters: + // + // pConnectionProperty - [in] A pointer to an APO_CONNECTION_PROPERTY + // structure. This structure is only an input parameter and cannot be + // changed. The fields are set as follows: + // + // pBuffer - The pointer that has been returned from GetOutputDataPointer. + // + // u32ValidFrameCount - Used to determine how many frames have been + // generated by the AudioProcessor. This count might not be the same + // as GetOutputDataPointer. + // + // u32BufferFlags - BUFFER_VALID or BUFFER_SILENT. If the flags are + // BUFFER_VALID, the pBuffer pointer contains valid audio data. If the + // flags are BUFFER_SILENT, the endpoint should write silence into the + // destination buffer where the audio data is to end up. + // + // Remarks: + // + // This method tells the AudioEndpoint that the AudioProcessor is done + // with the data pointer, what time corresponds to the samples in the + // data pointer, how many frames have been generated, and if the buffer + // is full of valid data or silent. + // + // For example, an AudioEndpoint that is attached to the output of the + // AudioProcessor and that abstracts a looped buffer can advance its + // write cursor. + // + // An u32FrameCount of 0 means that the client did not generate any + // valid data into the buffer. The u32FrameCount must be <= to the frame + // count requested in GetOutputDataPointer. Note that the only valid data + // in the buffer is denoted by the u32FrameCount. The endpoint should not + // assume that all data requested was written. + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + void ReleaseOutputDataPointer([in] const APO_CONNECTION_PROPERTY *pConnectionProperty ); + + //------------------------------------------------------------------------- + // Description: + // + // "Pulses" the endpoint, normally by signaling a client-supplied event handle + // + // Parameters: + // + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // This method is normally called at the end of a pump pass and signals + // a client event handle + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + // See Also: + // IAudioProcessor::EndProcess + // + void PulseEndpoint(void); +}; // IAudioOutputEndpointRT + +//------------------------------------------------------------------------- +// IAudioDeviceEndpoint +// +// This interface is used to initialize a Device Endpoint. +// +[ + object, + uuid(D4952F5A-A0B2-4cc4-8B82-9358488DD8AC), + pointer_default(unique), + local +] +interface IAudioDeviceEndpoint: IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Allocates data buffers internally. + // + // Parameters: + // + // MaxPeriod - [in] Processing period of the device in + // HNSTIME units. + // + // u32LatencyCoefficient - [in] The latency coefficient for this + // device. This coefficient will be multiplied with MaxPeriod to + // calculate latency. Note that each device has a minimum latency + // and if the coefficient is less than the minimum latency, the + // endpoint will apply minimum latency. Clients can obtain the + // actual latency using the IAudioEndpoint interface. + // 0 as the coefficient, applies the minimum latency coefficient. + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // Clients should not call SetBuffer when the endpoint is utilized + // in exclusive mode. + // + HRESULT SetBuffer( + [in] HNSTIME MaxPeriod, + [in] UINT32 u32LatencyCoefficient); + + + //------------------------------------------------------------------------- + // Description: + // + // Returns the RT capabilities of the device endpoints. + // + // Parameters: + // + // pbIsRTCapable - [out] TRUE, if the device is an RT capable device. + // + // Return values: + // + // S_OK Successful completion. + // + HRESULT GetRTCaps( [out] BOOL* pbIsRTCapable); + + //------------------------------------------------------------------------- + // Description: + // + // Determine the endpoint's capability to be event driven. + // + // Parameters: + // + // pbisEventCapable - pointer to a boolean value which indicates if the + // endpoint can be event driven. TRUE means it can. + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT GetEventDrivenCapable( [out] BOOL *pbisEventCapable); + + //------------------------------------------------------------------------- + // Description: + // + // Creates and writes the exclusive mode parameters to shared memory + // + // Parameters: + // + // hTargetProcess - [in] Handle of the process for which the handles + // will be duplicated. + // + // hnsPeriod - [in] period (packet size) to use in 100-ns units, taking into + // account device min period and client requested periodicity + // + // hnsBufferDuration - [in] client requested buffer duration in 100-ns units + // + // u32LatencyCoefficient - [in] device latency coefficient + // + // pu32SharedMemorySize - [out] The size of the shared memory region. + // + // phSharedMemory - [out] The handle to the shared memory region between + // the service and the process. + // + + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // This method is used in exclusive mode to extract endpoint properties. + // It will fail if the endpoint is fully initialized with SetBuffer. + // + // The shared memory region has a + // AUDIO_ENDPOINT_EXCLUSIVE_CREATE_PARAMS structure in it. The handles + // in the structure are duplicated for the calling process. + // + // Note that the shared region and handles are owned by the endpoint + // and will be released when the endpoint is released. + // + HRESULT WriteExclusiveModeParametersToSharedMemory( + [in] UINT_PTR hTargetProcess, + [in] HNSTIME hnsPeriod, + [in] HNSTIME hnsBufferDuration, + [in] UINT32 u32LatencyCoefficient, + [out] UINT32* pu32SharedMemorySize, + [out] UINT_PTR* phSharedMemory); +}; + +//----------------------------------------------------------------------------- +// IAudioEndpointOffloadStreamVolume +// +// This interface is used to allow per stream offloaded control of volume. +// +[ + object, + uuid(64F1DD49-71CA-4281-8672-3A9EDDD1D0B6), + pointer_default(unique), + local +] +interface IAudioEndpointOffloadStreamVolume : IUnknown +{ + HRESULT GetVolumeChannelCount([out] UINT32 *pu32ChannelCount); + HRESULT SetChannelVolumes([in] UINT32 u32ChannelCount, + [in] FLOAT32 *pf32Volumes, + [in] AUDIO_CURVE_TYPE u32CurveType, + [in] HNSTIME *pCurveDuration); + HRESULT GetChannelVolumes([in] UINT32 u32ChannelCount, [out] FLOAT32 *pf32Volumes); +}; + +//----------------------------------------------------------------------------- +// IAudioEndpointOffloadStreamMute +// +// This interface is used to allow per stream offloaded control of mute. +// +[ + object, + uuid(DFE21355-5EC2-40E0-8D6B-710AC3C00249), + pointer_default(unique), + local +] +interface IAudioEndpointOffloadStreamMute : IUnknown +{ + HRESULT SetMute([in] boolean bMuted); + HRESULT GetMute([out] boolean *pbMuted); +}; + +//----------------------------------------------------------------------------- +// IAudioEndpointOffloadStreamMeter +// +// This interface is used to allow per stream offloaded control of metering. +// +[ + object, + uuid(E1546DCE-9DD1-418B-9AB2-348CED161C86), + pointer_default(unique), + local +] +interface IAudioEndpointOffloadStreamMeter : IUnknown +{ + HRESULT GetMeterChannelCount([out] UINT32 *pu32ChannelCount); + HRESULT GetMeteringData([in] UINT32 u32ChannelCount, [out] FLOAT32 *pf32PeakValues); +}; + +//----------------------------------------------------------------------------- +// IAudioEndpointLastBufferControl +// +// This interface was added to allow an offload stream client to notify +// the endpoint the last buffer has been sent only partially filled, +// which an audio driver is required to signal a buffer completion when +// the very last valid byte of data is read instead of doing that until +// it reaches the end of a buffer. +// +[ + object, + uuid(F8520DD3-8F9D-4437-9861-62F584C33DD6), + pointer_default(unique), + local +] +interface IAudioEndpointLastBufferControl : IUnknown +{ + BOOL IsLastBufferControlSupported(); + void ReleaseOutputDataPointerForLastBuffer([in] const APO_CONNECTION_PROPERTY *pConnectionProperty); +}; + +//----------------------------------------------------------------------------- +// IAudioLfxControl +// +// This interface is used to query and enable/disable Lfx on each stream +// +[ + object, + uuid(076A6922-D802-4F83-BAF6-409D9CA11BFE), + pointer_default(unique), + local +] +interface IAudioLfxControl : IUnknown +{ + HRESULT SetLocalEffectsState([in] BOOL bEnabled); + HRESULT GetLocalEffectsState([out] BOOL* pbEnabled); +}; + +//------------------------------------------------------------------------- +// IHardwareAudioEngineBase +// +// This interface is used to query the potential render hardware audio engine feature +// exposed on an endpoint. +// +[ + object, + uuid(EDDCE3E4-F3C1-453a-B461-223563CBD886), + pointer_default(unique), + local +] +interface IHardwareAudioEngineBase: IUnknown +{ + HRESULT GetAvailableOffloadConnectorCount([in, annotation("_In_")] LPWSTR _pwstrDeviceId, [in, annotation("_In_")] UINT32 _uConnectorId,[out, annotation("_Out_")] UINT32 * _pAvailableConnectorInstanceCount); + HRESULT GetEngineFormat([in, annotation("_In_")] IMMDevice *pDevice, [in, annotation("_In_")] BOOL _bRequestDeviceFormat, [out] WAVEFORMATEX** _ppwfxFormat); + HRESULT SetEngineDeviceFormat([in, annotation("_In_")] IMMDevice *pDevice, [in] WAVEFORMATEX* _pwfxFormat); + HRESULT SetGfxState([in, annotation("_In_")] IMMDevice *pDevice, [in, annotation("_In_")] BOOL _bEnable); + HRESULT GetGfxState([in, annotation("_In_")] IMMDevice *pDevice, [out, annotation("_Out_")] BOOL *_pbEnable); +}; +//----------------------------------------------------------------------------- +// This interface is used to control an endpoint. +[ + object, + uuid(C684B72A-6DF4-4774-BDF9-76B77509B653), + pointer_default(unique) +] +interface IAudioEndpointControl : IUnknown{ + //------------------------------------------------------------------------- + // Description: + // + // Starts an endpoint immediately + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // The implementation of this method may differ for various endpoints. + // For example a RenderDevice endpoint will put the underlying pin to + // RUN state or a Client-Side crossprocess endpoint will set the Start + // bit in the shared memory region. + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT Start(void); + + //------------------------------------------------------------------------- + // Description: + // + // Resets an endpoint immediately. + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // Reset discards all data that has not been processed yet. + // + // The implementation of this method may differ for various endpoints. + // For example an Output-Client-Side crossprocess endpoint will set the + // write cursor to the beginning of the buffer and queue a reset + // request for the Input-Server-Side crossprocess endpoint. + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT Reset(void); + + //------------------------------------------------------------------------- + // Description: + // + // Stops an endpoint immediately. + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // The implementation of this method may differ for various endpoints. + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT Stop(void); +}; + +// GUID_DEVINTERFACE_AUDIOENDPOINTPLUGIN: The PnP interface for audio endpoint plugin +cpp_quote("#define STATIC_DEVINTERFACE_AUDIOENDPOINTPLUGIN \\") +cpp_quote(" 0X9F2F7B66l, 0X65AC, 0X4FA6, 0X8A, 0XE4, 0X12, 0X3C, 0X78, 0XB8, 0X93, 0X13 ") +cpp_quote("DEFINE_GUIDSTRUCT(\"9F2F7B66-65AC-4FA6-8AE4-123C78B89313\", DEVINTERFACE_AUDIOENDPOINTPLUGIN); ") +cpp_quote("#define DEVINTERFACE_AUDIOENDPOINTPLUGIN DEFINE_GUIDNAMED(DEVINTERFACE_AUDIOENDPOINTPLUGIN) ") + +// DEVPKEY_AudioEndpointPlugin_FactoryCLSID: Specifies the CLSID of the audio endpoint plugin factory +// vartype = VT_CLSID +cpp_quote("DEFINE_PROPERTYKEY(DEVPKEY_AudioEndpointPlugin_FactoryCLSID, 0x12d83bd7, 0xcf12, 0x46be, 0x85, 0x40, 0x81, 0x27, 0x10, 0xd3, 0x2, 0x1c, 1); ") + +// DEVPKEY_AudioEndpointPlugin_DataFlow: Specifies type of data flow. 0 = render, 1 = capture. +// vartype = VT_UI4 +cpp_quote("DEFINE_PROPERTYKEY(DEVPKEY_AudioEndpointPlugin_DataFlow, 0x12d83bd7, 0xcf12, 0x46be, 0x85, 0x40, 0x81, 0x27, 0x10, 0xd3, 0x2, 0x1c, 2); ") + +// DEVPKEY_AudioEndpointPlugin_PnPInterface: Specifies name of PnP Interface for audio endpoint plugin. +// vartype = VT_LPWSTR +cpp_quote("DEFINE_PROPERTYKEY(DEVPKEY_AudioEndpointPlugin_PnPInterface, 0x12d83bd7, 0xcf12, 0x46be, 0x85, 0x40, 0x81, 0x27, 0x10, 0xd3, 0x2, 0x1c, 3); ") + +// DEVPKEY_AudioEndpointPlugin2_FactoryCLSID: Specifies the CLSID of the audio endpoint plugin factory +// vartype = VT_CLSID +cpp_quote("DEFINE_PROPERTYKEY(DEVPKEY_AudioEndpointPlugin2_FactoryCLSID, 0x12d83bd7, 0xcf12, 0x46be, 0x85, 0x40, 0x81, 0x27, 0x10, 0xd3, 0x2, 0x1c, 4); ") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioSessionTypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioSessionTypes.h new file mode 100644 index 0000000000000000000000000000000000000000..d254998e9a6b8484815a0364b67bb9b23556c2f3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AudioSessionTypes.h @@ -0,0 +1,159 @@ +// +// AudioSessionTypes.h -- Copyright Microsoft Corporation, All Rights Reserved. +// +// Description: Type definitions used by the audio session manager RPC/COM interfaces +// +#pragma once +#include +#ifndef __AUDIOSESSIONTYPES__ +#define __AUDIOSESSIONTYPES__ + +#pragma region Application and Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) +#if defined(__midl) +#define MIDL_SIZE_IS(x) [size_is(x)] +#define MIDL_STRING [string] +#define MIDL_ANYSIZE_ARRAY +#else // !defined(__midl) +#define MIDL_SIZE_IS(x) +#define MIDL_STRING +#define MIDL_ANYSIZE_ARRAY ANYSIZE_ARRAY +#endif // defined(__midl) + + +//------------------------------------------------------------------------- +// Description: AudioClient share mode +// +// AUDCLNT_SHAREMODE_SHARED - The device will be opened in shared mode and use the +// WAS format. +// AUDCLNT_SHAREMODE_EXCLUSIVE - The device will be opened in exclusive mode and use the +// application specified format. +// +typedef enum _AUDCLNT_SHAREMODE +{ + AUDCLNT_SHAREMODE_SHARED, + AUDCLNT_SHAREMODE_EXCLUSIVE +} AUDCLNT_SHAREMODE; + +//------------------------------------------------------------------------- +// Description: Audio stream categories +// +// ForegroundOnlyMedia - (deprecated for Win10) Music, Streaming audio +// BackgroundCapableMedia - (deprecated for Win10) Video with audio +// Communications - VOIP, chat, phone call +// Alerts - Alarm, Ring tones +// SoundEffects - Sound effects, clicks, dings +// GameEffects - Game sound effects +// GameMedia - Background audio for games +// GameChat - In game player chat +// Speech - Speech recognition +// Media - Music, Streaming audio +// Movie - Video with audio +// FarFieldSpeech - Capture of far field speech +// UniformSpeech - Uniform, device agnostic speech processing +// VoiceTyping - Dictation, typing by voice +// Other - All other streams (default) +// +typedef enum _AUDIO_STREAM_CATEGORY +{ + AudioCategory_Other = 0, + AudioCategory_ForegroundOnlyMedia = 1, +#if NTDDI_VERSION < NTDDI_WINTHRESHOLD + AudioCategory_BackgroundCapableMedia = 2, +#endif + AudioCategory_Communications = 3, + AudioCategory_Alerts = 4, + AudioCategory_SoundEffects = 5, + AudioCategory_GameEffects = 6, + AudioCategory_GameMedia = 7, + AudioCategory_GameChat = 8, + AudioCategory_Speech = 9, + AudioCategory_Movie = 10, + AudioCategory_Media = 11, +#if NTDDI_VERSION >= NTDDI_WIN10_FE + AudioCategory_FarFieldSpeech = 12, + AudioCategory_UniformSpeech = 13, + AudioCategory_VoiceTyping = 14, +#endif +} AUDIO_STREAM_CATEGORY; + + +//------------------------------------------------------------------------- +// Description: AudioClient stream flags +// +// Can be a combination of AUDCLNT_STREAMFLAGS and AUDCLNT_SYSFXFLAGS: +// +// AUDCLNT_STREAMFLAGS (this group of flags uses the high word, +// w/exception of high-bit which is reserved, 0x7FFF0000): +// +// +// AUDCLNT_STREAMFLAGS_CROSSPROCESS - Audio policy control for this stream will be shared with +// with other process sessions that use the same audio session +// GUID. +// +// AUDCLNT_STREAMFLAGS_LOOPBACK - Initializes a renderer endpoint for a loopback audio application. +// In this mode, a capture stream will be opened on the specified +// renderer endpoint. Shared mode and a renderer endpoint is required. +// Otherwise the IAudioClient::Initialize call will fail. If the +// initialize is successful, a capture stream will be available +// from the IAudioClient object. +// +// AUDCLNT_STREAMFLAGS_EVENTCALLBACK - An exclusive mode client will supply an event handle that will be +// signaled when an IRP completes (or a waveRT buffer completes) telling +// it to fill the next buffer +// +// AUDCLNT_STREAMFLAGS_NOPERSIST - Session state will not be persisted +// +// AUDCLNT_STREAMFLAGS_RATEADJUST - The sample rate of the stream is adjusted to a rate specified by an application. +// +// AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY - When used with AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM, a sample rate +// converter with better quality than the default conversion but with a +// higher performance cost is used. This should be used if the audio is +// ultimately intended to be heard by humans as opposed to other +// scenarios such as pumping silence or populating a meter. +// +// AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM - A channel matrixer and a sample rate converter are inserted as necessary +// to convert between the uncompressed format supplied to +// IAudioClient::Initialize and the audio engine mix format. +// +// AUDCLNT_SESSIONFLAGS_EXPIREWHENUNOWNED - Session expires when there are no streams and no owning +// session controls. +// +// AUDCLNT_SESSIONFLAGS_DISPLAY_HIDE - Don't show volume control in the Volume Mixer. +// +// AUDCLNT_SESSIONFLAGS_DISPLAY_HIDEWHENEXPIRED - Don't show volume control in the Volume Mixer after the +// session expires. +// +// +// AUDCLNT_SYSFXFLAGS (these flags use low word 0x0000FFFF): +// +// none defined currently +// +#define AUDCLNT_STREAMFLAGS_CROSSPROCESS 0x00010000 +#define AUDCLNT_STREAMFLAGS_LOOPBACK 0x00020000 +#define AUDCLNT_STREAMFLAGS_EVENTCALLBACK 0x00040000 +#define AUDCLNT_STREAMFLAGS_NOPERSIST 0x00080000 +#define AUDCLNT_STREAMFLAGS_RATEADJUST 0x00100000 +#define AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY 0x08000000 +#define AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM 0x80000000 +#define AUDCLNT_SESSIONFLAGS_EXPIREWHENUNOWNED 0x10000000 +#define AUDCLNT_SESSIONFLAGS_DISPLAY_HIDE 0x20000000 +#define AUDCLNT_SESSIONFLAGS_DISPLAY_HIDEWHENEXPIRED 0x40000000 + +//------------------------------------------------------------------------- +// Description: AudioSession State. +// +// AudioSessionStateInactive - The session has no active audio streams. +// AudioSessionStateActive - The session has active audio streams. +// AudioSessionStateExpired - The session is dormant. +typedef enum _AudioSessionState +{ + AudioSessionStateInactive = 0, + AudioSessionStateActive = 1, + AudioSessionStateExpired = 2 +} AudioSessionState; + +#endif /* WINAPI_FAMILY_PARTITION */ +#pragma endregion +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Audioclient.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Audioclient.h new file mode 100644 index 0000000000000000000000000000000000000000..eaacf6a93dca357dd63b845a9ad165ebf9648798 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Audioclient.h @@ -0,0 +1,2845 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __audioclient_h__ +#define __audioclient_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAudioClient_FWD_DEFINED__ +#define __IAudioClient_FWD_DEFINED__ +typedef interface IAudioClient IAudioClient; + +#endif /* __IAudioClient_FWD_DEFINED__ */ + + +#ifndef __IAudioClient2_FWD_DEFINED__ +#define __IAudioClient2_FWD_DEFINED__ +typedef interface IAudioClient2 IAudioClient2; + +#endif /* __IAudioClient2_FWD_DEFINED__ */ + + +#ifndef __IAudioClient3_FWD_DEFINED__ +#define __IAudioClient3_FWD_DEFINED__ +typedef interface IAudioClient3 IAudioClient3; + +#endif /* __IAudioClient3_FWD_DEFINED__ */ + + +#ifndef __IAudioRenderClient_FWD_DEFINED__ +#define __IAudioRenderClient_FWD_DEFINED__ +typedef interface IAudioRenderClient IAudioRenderClient; + +#endif /* __IAudioRenderClient_FWD_DEFINED__ */ + + +#ifndef __IAudioCaptureClient_FWD_DEFINED__ +#define __IAudioCaptureClient_FWD_DEFINED__ +typedef interface IAudioCaptureClient IAudioCaptureClient; + +#endif /* __IAudioCaptureClient_FWD_DEFINED__ */ + + +#ifndef __IAudioClock_FWD_DEFINED__ +#define __IAudioClock_FWD_DEFINED__ +typedef interface IAudioClock IAudioClock; + +#endif /* __IAudioClock_FWD_DEFINED__ */ + + +#ifndef __IAudioClock2_FWD_DEFINED__ +#define __IAudioClock2_FWD_DEFINED__ +typedef interface IAudioClock2 IAudioClock2; + +#endif /* __IAudioClock2_FWD_DEFINED__ */ + + +#ifndef __IAudioClockAdjustment_FWD_DEFINED__ +#define __IAudioClockAdjustment_FWD_DEFINED__ +typedef interface IAudioClockAdjustment IAudioClockAdjustment; + +#endif /* __IAudioClockAdjustment_FWD_DEFINED__ */ + + +#ifndef __ISimpleAudioVolume_FWD_DEFINED__ +#define __ISimpleAudioVolume_FWD_DEFINED__ +typedef interface ISimpleAudioVolume ISimpleAudioVolume; + +#endif /* __ISimpleAudioVolume_FWD_DEFINED__ */ + + +#ifndef __IAudioClientDuckingControl_FWD_DEFINED__ +#define __IAudioClientDuckingControl_FWD_DEFINED__ +typedef interface IAudioClientDuckingControl IAudioClientDuckingControl; + +#endif /* __IAudioClientDuckingControl_FWD_DEFINED__ */ + + +#ifndef __IAudioViewManagerService_FWD_DEFINED__ +#define __IAudioViewManagerService_FWD_DEFINED__ +typedef interface IAudioViewManagerService IAudioViewManagerService; + +#endif /* __IAudioViewManagerService_FWD_DEFINED__ */ + + +#ifndef __IAudioEffectsChangedNotificationClient_FWD_DEFINED__ +#define __IAudioEffectsChangedNotificationClient_FWD_DEFINED__ +typedef interface IAudioEffectsChangedNotificationClient IAudioEffectsChangedNotificationClient; + +#endif /* __IAudioEffectsChangedNotificationClient_FWD_DEFINED__ */ + + +#ifndef __IAudioEffectsManager_FWD_DEFINED__ +#define __IAudioEffectsManager_FWD_DEFINED__ +typedef interface IAudioEffectsManager IAudioEffectsManager; + +#endif /* __IAudioEffectsManager_FWD_DEFINED__ */ + + +#ifndef __IAudioStreamVolume_FWD_DEFINED__ +#define __IAudioStreamVolume_FWD_DEFINED__ +typedef interface IAudioStreamVolume IAudioStreamVolume; + +#endif /* __IAudioStreamVolume_FWD_DEFINED__ */ + + +#ifndef __IAudioAmbisonicsControl_FWD_DEFINED__ +#define __IAudioAmbisonicsControl_FWD_DEFINED__ +typedef interface IAudioAmbisonicsControl IAudioAmbisonicsControl; + +#endif /* __IAudioAmbisonicsControl_FWD_DEFINED__ */ + + +#ifndef __IChannelAudioVolume_FWD_DEFINED__ +#define __IChannelAudioVolume_FWD_DEFINED__ +typedef interface IChannelAudioVolume IChannelAudioVolume; + +#endif /* __IChannelAudioVolume_FWD_DEFINED__ */ + + +#ifndef __IAcousticEchoCancellationControl_FWD_DEFINED__ +#define __IAcousticEchoCancellationControl_FWD_DEFINED__ +typedef interface IAcousticEchoCancellationControl IAcousticEchoCancellationControl; + +#endif /* __IAcousticEchoCancellationControl_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "unknwn.h" +#include "mmreg.h" +#include "AudioSessionTypes.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_audioclient_0000_0000 */ +/* [local] */ + +#include +#if 0 +typedef /* [hidden][restricted] */ LONGLONG REFERENCE_TIME; + +#else +#ifndef _SkipIksIncludes_ +#define _IKsControl_ +#include +#include +#endif +#endif +#pragma region Application and Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) + +enum _AUDCLNT_BUFFERFLAGS + { + AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY = 0x1, + AUDCLNT_BUFFERFLAGS_SILENT = 0x2, + AUDCLNT_BUFFERFLAGS_TIMESTAMP_ERROR = 0x4 + } ; +typedef /* [v1_enum] */ +enum AUDCLNT_STREAMOPTIONS + { + AUDCLNT_STREAMOPTIONS_NONE = 0, + AUDCLNT_STREAMOPTIONS_RAW = 0x1, + AUDCLNT_STREAMOPTIONS_MATCH_FORMAT = 0x2, + AUDCLNT_STREAMOPTIONS_AMBISONICS = 0x4, + AUDCLNT_STREAMOPTIONS_POST_VOLUME_LOOPBACK = 0x8 + } AUDCLNT_STREAMOPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(AUDCLNT_STREAMOPTIONS); +#if (NTDDI_VERSION < NTDDI_WINBLUE) +typedef struct AudioClientProperties +{ + UINT32 cbSize; + BOOL bIsOffload; + AUDIO_STREAM_CATEGORY eCategory; +} AudioClientProperties; +#else +typedef struct AudioClientProperties + { + UINT32 cbSize; + BOOL bIsOffload; + AUDIO_STREAM_CATEGORY eCategory; + AUDCLNT_STREAMOPTIONS Options; + } AudioClientProperties; + +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0000_v0_0_s_ifspec; + +#ifndef __IAudioClient_INTERFACE_DEFINED__ +#define __IAudioClient_INTERFACE_DEFINED__ + +/* interface IAudioClient */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioClient; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1CB9AD4C-DBFA-4c32-B178-C2F568A703B2") + IAudioClient : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [annotation][in] */ + _In_ AUDCLNT_SHAREMODE ShareMode, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][in] */ + _In_ REFERENCE_TIME hnsBufferDuration, + /* [annotation][in] */ + _In_ REFERENCE_TIME hnsPeriodicity, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBufferSize( + /* [annotation][out] */ + _Out_ UINT32 *pNumBufferFrames) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamLatency( + /* [annotation][out] */ + _Out_ REFERENCE_TIME *phnsLatency) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentPadding( + /* [annotation][out] */ + _Out_ UINT32 *pNumPaddingFrames) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsFormatSupported( + /* [annotation][in] */ + _In_ AUDCLNT_SHAREMODE ShareMode, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [unique][annotation][out] */ + _Out_opt_ WAVEFORMATEX **ppClosestMatch) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMixFormat( + /* [annotation][out] */ + _Out_ WAVEFORMATEX **ppDeviceFormat) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDevicePeriod( + /* [annotation][out] */ + _Out_opt_ REFERENCE_TIME *phnsDefaultDevicePeriod, + /* [annotation][out] */ + _Out_opt_ REFERENCE_TIME *phnsMinimumDevicePeriod) = 0; + + virtual HRESULT STDMETHODCALLTYPE Start( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetEventHandle( + /* [in] */ HANDLE eventHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetService( + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _Out_ void **ppv) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioClientVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioClient * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioClient * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioClient * This); + + DECLSPEC_XFGVIRT(IAudioClient, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IAudioClient * This, + /* [annotation][in] */ + _In_ AUDCLNT_SHAREMODE ShareMode, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][in] */ + _In_ REFERENCE_TIME hnsBufferDuration, + /* [annotation][in] */ + _In_ REFERENCE_TIME hnsPeriodicity, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid); + + DECLSPEC_XFGVIRT(IAudioClient, GetBufferSize) + HRESULT ( STDMETHODCALLTYPE *GetBufferSize )( + IAudioClient * This, + /* [annotation][out] */ + _Out_ UINT32 *pNumBufferFrames); + + DECLSPEC_XFGVIRT(IAudioClient, GetStreamLatency) + HRESULT ( STDMETHODCALLTYPE *GetStreamLatency )( + IAudioClient * This, + /* [annotation][out] */ + _Out_ REFERENCE_TIME *phnsLatency); + + DECLSPEC_XFGVIRT(IAudioClient, GetCurrentPadding) + HRESULT ( STDMETHODCALLTYPE *GetCurrentPadding )( + IAudioClient * This, + /* [annotation][out] */ + _Out_ UINT32 *pNumPaddingFrames); + + DECLSPEC_XFGVIRT(IAudioClient, IsFormatSupported) + HRESULT ( STDMETHODCALLTYPE *IsFormatSupported )( + IAudioClient * This, + /* [annotation][in] */ + _In_ AUDCLNT_SHAREMODE ShareMode, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [unique][annotation][out] */ + _Out_opt_ WAVEFORMATEX **ppClosestMatch); + + DECLSPEC_XFGVIRT(IAudioClient, GetMixFormat) + HRESULT ( STDMETHODCALLTYPE *GetMixFormat )( + IAudioClient * This, + /* [annotation][out] */ + _Out_ WAVEFORMATEX **ppDeviceFormat); + + DECLSPEC_XFGVIRT(IAudioClient, GetDevicePeriod) + HRESULT ( STDMETHODCALLTYPE *GetDevicePeriod )( + IAudioClient * This, + /* [annotation][out] */ + _Out_opt_ REFERENCE_TIME *phnsDefaultDevicePeriod, + /* [annotation][out] */ + _Out_opt_ REFERENCE_TIME *phnsMinimumDevicePeriod); + + DECLSPEC_XFGVIRT(IAudioClient, Start) + HRESULT ( STDMETHODCALLTYPE *Start )( + IAudioClient * This); + + DECLSPEC_XFGVIRT(IAudioClient, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + IAudioClient * This); + + DECLSPEC_XFGVIRT(IAudioClient, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IAudioClient * This); + + DECLSPEC_XFGVIRT(IAudioClient, SetEventHandle) + HRESULT ( STDMETHODCALLTYPE *SetEventHandle )( + IAudioClient * This, + /* [in] */ HANDLE eventHandle); + + DECLSPEC_XFGVIRT(IAudioClient, GetService) + HRESULT ( STDMETHODCALLTYPE *GetService )( + IAudioClient * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _Out_ void **ppv); + + END_INTERFACE + } IAudioClientVtbl; + + interface IAudioClient + { + CONST_VTBL struct IAudioClientVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioClient_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioClient_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioClient_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioClient_Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid) \ + ( (This)->lpVtbl -> Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid) ) + +#define IAudioClient_GetBufferSize(This,pNumBufferFrames) \ + ( (This)->lpVtbl -> GetBufferSize(This,pNumBufferFrames) ) + +#define IAudioClient_GetStreamLatency(This,phnsLatency) \ + ( (This)->lpVtbl -> GetStreamLatency(This,phnsLatency) ) + +#define IAudioClient_GetCurrentPadding(This,pNumPaddingFrames) \ + ( (This)->lpVtbl -> GetCurrentPadding(This,pNumPaddingFrames) ) + +#define IAudioClient_IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch) \ + ( (This)->lpVtbl -> IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch) ) + +#define IAudioClient_GetMixFormat(This,ppDeviceFormat) \ + ( (This)->lpVtbl -> GetMixFormat(This,ppDeviceFormat) ) + +#define IAudioClient_GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod) \ + ( (This)->lpVtbl -> GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod) ) + +#define IAudioClient_Start(This) \ + ( (This)->lpVtbl -> Start(This) ) + +#define IAudioClient_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IAudioClient_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IAudioClient_SetEventHandle(This,eventHandle) \ + ( (This)->lpVtbl -> SetEventHandle(This,eventHandle) ) + +#define IAudioClient_GetService(This,riid,ppv) \ + ( (This)->lpVtbl -> GetService(This,riid,ppv) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioClient_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioClient2_INTERFACE_DEFINED__ +#define __IAudioClient2_INTERFACE_DEFINED__ + +/* interface IAudioClient2 */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioClient2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("726778CD-F60A-4eda-82DE-E47610CD78AA") + IAudioClient2 : public IAudioClient + { + public: + virtual HRESULT STDMETHODCALLTYPE IsOffloadCapable( + /* [annotation][in] */ + _In_ AUDIO_STREAM_CATEGORY Category, + /* [annotation][out] */ + _Out_ BOOL *pbOffloadCapable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetClientProperties( + /* [annotation][in] */ + _In_ const AudioClientProperties *pProperties) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBufferSizeLimits( + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][in] */ + _In_ BOOL bEventDriven, + /* [annotation][out] */ + _Out_ REFERENCE_TIME *phnsMinBufferDuration, + /* [annotation][out] */ + _Out_ REFERENCE_TIME *phnsMaxBufferDuration) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioClient2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioClient2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioClient2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioClient2 * This); + + DECLSPEC_XFGVIRT(IAudioClient, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IAudioClient2 * This, + /* [annotation][in] */ + _In_ AUDCLNT_SHAREMODE ShareMode, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][in] */ + _In_ REFERENCE_TIME hnsBufferDuration, + /* [annotation][in] */ + _In_ REFERENCE_TIME hnsPeriodicity, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid); + + DECLSPEC_XFGVIRT(IAudioClient, GetBufferSize) + HRESULT ( STDMETHODCALLTYPE *GetBufferSize )( + IAudioClient2 * This, + /* [annotation][out] */ + _Out_ UINT32 *pNumBufferFrames); + + DECLSPEC_XFGVIRT(IAudioClient, GetStreamLatency) + HRESULT ( STDMETHODCALLTYPE *GetStreamLatency )( + IAudioClient2 * This, + /* [annotation][out] */ + _Out_ REFERENCE_TIME *phnsLatency); + + DECLSPEC_XFGVIRT(IAudioClient, GetCurrentPadding) + HRESULT ( STDMETHODCALLTYPE *GetCurrentPadding )( + IAudioClient2 * This, + /* [annotation][out] */ + _Out_ UINT32 *pNumPaddingFrames); + + DECLSPEC_XFGVIRT(IAudioClient, IsFormatSupported) + HRESULT ( STDMETHODCALLTYPE *IsFormatSupported )( + IAudioClient2 * This, + /* [annotation][in] */ + _In_ AUDCLNT_SHAREMODE ShareMode, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [unique][annotation][out] */ + _Out_opt_ WAVEFORMATEX **ppClosestMatch); + + DECLSPEC_XFGVIRT(IAudioClient, GetMixFormat) + HRESULT ( STDMETHODCALLTYPE *GetMixFormat )( + IAudioClient2 * This, + /* [annotation][out] */ + _Out_ WAVEFORMATEX **ppDeviceFormat); + + DECLSPEC_XFGVIRT(IAudioClient, GetDevicePeriod) + HRESULT ( STDMETHODCALLTYPE *GetDevicePeriod )( + IAudioClient2 * This, + /* [annotation][out] */ + _Out_opt_ REFERENCE_TIME *phnsDefaultDevicePeriod, + /* [annotation][out] */ + _Out_opt_ REFERENCE_TIME *phnsMinimumDevicePeriod); + + DECLSPEC_XFGVIRT(IAudioClient, Start) + HRESULT ( STDMETHODCALLTYPE *Start )( + IAudioClient2 * This); + + DECLSPEC_XFGVIRT(IAudioClient, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + IAudioClient2 * This); + + DECLSPEC_XFGVIRT(IAudioClient, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IAudioClient2 * This); + + DECLSPEC_XFGVIRT(IAudioClient, SetEventHandle) + HRESULT ( STDMETHODCALLTYPE *SetEventHandle )( + IAudioClient2 * This, + /* [in] */ HANDLE eventHandle); + + DECLSPEC_XFGVIRT(IAudioClient, GetService) + HRESULT ( STDMETHODCALLTYPE *GetService )( + IAudioClient2 * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _Out_ void **ppv); + + DECLSPEC_XFGVIRT(IAudioClient2, IsOffloadCapable) + HRESULT ( STDMETHODCALLTYPE *IsOffloadCapable )( + IAudioClient2 * This, + /* [annotation][in] */ + _In_ AUDIO_STREAM_CATEGORY Category, + /* [annotation][out] */ + _Out_ BOOL *pbOffloadCapable); + + DECLSPEC_XFGVIRT(IAudioClient2, SetClientProperties) + HRESULT ( STDMETHODCALLTYPE *SetClientProperties )( + IAudioClient2 * This, + /* [annotation][in] */ + _In_ const AudioClientProperties *pProperties); + + DECLSPEC_XFGVIRT(IAudioClient2, GetBufferSizeLimits) + HRESULT ( STDMETHODCALLTYPE *GetBufferSizeLimits )( + IAudioClient2 * This, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][in] */ + _In_ BOOL bEventDriven, + /* [annotation][out] */ + _Out_ REFERENCE_TIME *phnsMinBufferDuration, + /* [annotation][out] */ + _Out_ REFERENCE_TIME *phnsMaxBufferDuration); + + END_INTERFACE + } IAudioClient2Vtbl; + + interface IAudioClient2 + { + CONST_VTBL struct IAudioClient2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioClient2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioClient2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioClient2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioClient2_Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid) \ + ( (This)->lpVtbl -> Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid) ) + +#define IAudioClient2_GetBufferSize(This,pNumBufferFrames) \ + ( (This)->lpVtbl -> GetBufferSize(This,pNumBufferFrames) ) + +#define IAudioClient2_GetStreamLatency(This,phnsLatency) \ + ( (This)->lpVtbl -> GetStreamLatency(This,phnsLatency) ) + +#define IAudioClient2_GetCurrentPadding(This,pNumPaddingFrames) \ + ( (This)->lpVtbl -> GetCurrentPadding(This,pNumPaddingFrames) ) + +#define IAudioClient2_IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch) \ + ( (This)->lpVtbl -> IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch) ) + +#define IAudioClient2_GetMixFormat(This,ppDeviceFormat) \ + ( (This)->lpVtbl -> GetMixFormat(This,ppDeviceFormat) ) + +#define IAudioClient2_GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod) \ + ( (This)->lpVtbl -> GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod) ) + +#define IAudioClient2_Start(This) \ + ( (This)->lpVtbl -> Start(This) ) + +#define IAudioClient2_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IAudioClient2_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IAudioClient2_SetEventHandle(This,eventHandle) \ + ( (This)->lpVtbl -> SetEventHandle(This,eventHandle) ) + +#define IAudioClient2_GetService(This,riid,ppv) \ + ( (This)->lpVtbl -> GetService(This,riid,ppv) ) + + +#define IAudioClient2_IsOffloadCapable(This,Category,pbOffloadCapable) \ + ( (This)->lpVtbl -> IsOffloadCapable(This,Category,pbOffloadCapable) ) + +#define IAudioClient2_SetClientProperties(This,pProperties) \ + ( (This)->lpVtbl -> SetClientProperties(This,pProperties) ) + +#define IAudioClient2_GetBufferSizeLimits(This,pFormat,bEventDriven,phnsMinBufferDuration,phnsMaxBufferDuration) \ + ( (This)->lpVtbl -> GetBufferSizeLimits(This,pFormat,bEventDriven,phnsMinBufferDuration,phnsMaxBufferDuration) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioClient2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0002 */ +/* [local] */ + +// AudioClient3ActivationParams is an optional activation parameter for IAudioClient3 +// +// IAudioClient3 implementations log various things via ETW tracing +// including a "context" identifier +// +// In situations where there are multiple active audio clients, +// the "tracing context" identifier can ease correlation of which audio client instance belongs to which application context +// +// Sample app code: +// PROPVARIANT var; +// PropVariantInit(&var); +// auto p = reinterpret_castCoTaskMemAlloc(sizeof(AudioClient3ActivationParams)); +// if (nullptr == p) { ... } +// p->tracingContextId = /* app-specific context identifier */; +// var.vt = VT_BLOB; +// var.blob.cbSize = sizeof(*p); +// var.blob.pBlobData = reinterpret_cast(p); +// hr = ActivateAudioInterfaceAsync(device, __uuidof(IAudioClient3), &var, ...); +// ... +// PropVariantClear(&var); +typedef struct AudioClient3ActivationParams + { + GUID tracingContextId; + } AudioClient3ActivationParams; + + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0002_v0_0_s_ifspec; + +#ifndef __IAudioClient3_INTERFACE_DEFINED__ +#define __IAudioClient3_INTERFACE_DEFINED__ + +/* interface IAudioClient3 */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioClient3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7ED4EE07-8E67-4CD4-8C1A-2B7A5987AD42") + IAudioClient3 : public IAudioClient2 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSharedModeEnginePeriod( + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][out] */ + _Out_ UINT32 *pDefaultPeriodInFrames, + /* [annotation][out] */ + _Out_ UINT32 *pFundamentalPeriodInFrames, + /* [annotation][out] */ + _Out_ UINT32 *pMinPeriodInFrames, + /* [annotation][out] */ + _Out_ UINT32 *pMaxPeriodInFrames) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentSharedModeEnginePeriod( + /* [unique][annotation][out] */ + _Out_ WAVEFORMATEX **ppFormat, + /* [annotation][out] */ + _Out_ UINT32 *pCurrentPeriodInFrames) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeSharedAudioStream( + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][in] */ + _In_ UINT32 PeriodInFrames, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioClient3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioClient3 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioClient3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioClient3 * This); + + DECLSPEC_XFGVIRT(IAudioClient, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IAudioClient3 * This, + /* [annotation][in] */ + _In_ AUDCLNT_SHAREMODE ShareMode, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][in] */ + _In_ REFERENCE_TIME hnsBufferDuration, + /* [annotation][in] */ + _In_ REFERENCE_TIME hnsPeriodicity, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid); + + DECLSPEC_XFGVIRT(IAudioClient, GetBufferSize) + HRESULT ( STDMETHODCALLTYPE *GetBufferSize )( + IAudioClient3 * This, + /* [annotation][out] */ + _Out_ UINT32 *pNumBufferFrames); + + DECLSPEC_XFGVIRT(IAudioClient, GetStreamLatency) + HRESULT ( STDMETHODCALLTYPE *GetStreamLatency )( + IAudioClient3 * This, + /* [annotation][out] */ + _Out_ REFERENCE_TIME *phnsLatency); + + DECLSPEC_XFGVIRT(IAudioClient, GetCurrentPadding) + HRESULT ( STDMETHODCALLTYPE *GetCurrentPadding )( + IAudioClient3 * This, + /* [annotation][out] */ + _Out_ UINT32 *pNumPaddingFrames); + + DECLSPEC_XFGVIRT(IAudioClient, IsFormatSupported) + HRESULT ( STDMETHODCALLTYPE *IsFormatSupported )( + IAudioClient3 * This, + /* [annotation][in] */ + _In_ AUDCLNT_SHAREMODE ShareMode, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [unique][annotation][out] */ + _Out_opt_ WAVEFORMATEX **ppClosestMatch); + + DECLSPEC_XFGVIRT(IAudioClient, GetMixFormat) + HRESULT ( STDMETHODCALLTYPE *GetMixFormat )( + IAudioClient3 * This, + /* [annotation][out] */ + _Out_ WAVEFORMATEX **ppDeviceFormat); + + DECLSPEC_XFGVIRT(IAudioClient, GetDevicePeriod) + HRESULT ( STDMETHODCALLTYPE *GetDevicePeriod )( + IAudioClient3 * This, + /* [annotation][out] */ + _Out_opt_ REFERENCE_TIME *phnsDefaultDevicePeriod, + /* [annotation][out] */ + _Out_opt_ REFERENCE_TIME *phnsMinimumDevicePeriod); + + DECLSPEC_XFGVIRT(IAudioClient, Start) + HRESULT ( STDMETHODCALLTYPE *Start )( + IAudioClient3 * This); + + DECLSPEC_XFGVIRT(IAudioClient, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + IAudioClient3 * This); + + DECLSPEC_XFGVIRT(IAudioClient, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IAudioClient3 * This); + + DECLSPEC_XFGVIRT(IAudioClient, SetEventHandle) + HRESULT ( STDMETHODCALLTYPE *SetEventHandle )( + IAudioClient3 * This, + /* [in] */ HANDLE eventHandle); + + DECLSPEC_XFGVIRT(IAudioClient, GetService) + HRESULT ( STDMETHODCALLTYPE *GetService )( + IAudioClient3 * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _Out_ void **ppv); + + DECLSPEC_XFGVIRT(IAudioClient2, IsOffloadCapable) + HRESULT ( STDMETHODCALLTYPE *IsOffloadCapable )( + IAudioClient3 * This, + /* [annotation][in] */ + _In_ AUDIO_STREAM_CATEGORY Category, + /* [annotation][out] */ + _Out_ BOOL *pbOffloadCapable); + + DECLSPEC_XFGVIRT(IAudioClient2, SetClientProperties) + HRESULT ( STDMETHODCALLTYPE *SetClientProperties )( + IAudioClient3 * This, + /* [annotation][in] */ + _In_ const AudioClientProperties *pProperties); + + DECLSPEC_XFGVIRT(IAudioClient2, GetBufferSizeLimits) + HRESULT ( STDMETHODCALLTYPE *GetBufferSizeLimits )( + IAudioClient3 * This, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][in] */ + _In_ BOOL bEventDriven, + /* [annotation][out] */ + _Out_ REFERENCE_TIME *phnsMinBufferDuration, + /* [annotation][out] */ + _Out_ REFERENCE_TIME *phnsMaxBufferDuration); + + DECLSPEC_XFGVIRT(IAudioClient3, GetSharedModeEnginePeriod) + HRESULT ( STDMETHODCALLTYPE *GetSharedModeEnginePeriod )( + IAudioClient3 * This, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][out] */ + _Out_ UINT32 *pDefaultPeriodInFrames, + /* [annotation][out] */ + _Out_ UINT32 *pFundamentalPeriodInFrames, + /* [annotation][out] */ + _Out_ UINT32 *pMinPeriodInFrames, + /* [annotation][out] */ + _Out_ UINT32 *pMaxPeriodInFrames); + + DECLSPEC_XFGVIRT(IAudioClient3, GetCurrentSharedModeEnginePeriod) + HRESULT ( STDMETHODCALLTYPE *GetCurrentSharedModeEnginePeriod )( + IAudioClient3 * This, + /* [unique][annotation][out] */ + _Out_ WAVEFORMATEX **ppFormat, + /* [annotation][out] */ + _Out_ UINT32 *pCurrentPeriodInFrames); + + DECLSPEC_XFGVIRT(IAudioClient3, InitializeSharedAudioStream) + HRESULT ( STDMETHODCALLTYPE *InitializeSharedAudioStream )( + IAudioClient3 * This, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][in] */ + _In_ UINT32 PeriodInFrames, + /* [annotation][in] */ + _In_ const WAVEFORMATEX *pFormat, + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid); + + END_INTERFACE + } IAudioClient3Vtbl; + + interface IAudioClient3 + { + CONST_VTBL struct IAudioClient3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioClient3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioClient3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioClient3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioClient3_Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid) \ + ( (This)->lpVtbl -> Initialize(This,ShareMode,StreamFlags,hnsBufferDuration,hnsPeriodicity,pFormat,AudioSessionGuid) ) + +#define IAudioClient3_GetBufferSize(This,pNumBufferFrames) \ + ( (This)->lpVtbl -> GetBufferSize(This,pNumBufferFrames) ) + +#define IAudioClient3_GetStreamLatency(This,phnsLatency) \ + ( (This)->lpVtbl -> GetStreamLatency(This,phnsLatency) ) + +#define IAudioClient3_GetCurrentPadding(This,pNumPaddingFrames) \ + ( (This)->lpVtbl -> GetCurrentPadding(This,pNumPaddingFrames) ) + +#define IAudioClient3_IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch) \ + ( (This)->lpVtbl -> IsFormatSupported(This,ShareMode,pFormat,ppClosestMatch) ) + +#define IAudioClient3_GetMixFormat(This,ppDeviceFormat) \ + ( (This)->lpVtbl -> GetMixFormat(This,ppDeviceFormat) ) + +#define IAudioClient3_GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod) \ + ( (This)->lpVtbl -> GetDevicePeriod(This,phnsDefaultDevicePeriod,phnsMinimumDevicePeriod) ) + +#define IAudioClient3_Start(This) \ + ( (This)->lpVtbl -> Start(This) ) + +#define IAudioClient3_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IAudioClient3_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IAudioClient3_SetEventHandle(This,eventHandle) \ + ( (This)->lpVtbl -> SetEventHandle(This,eventHandle) ) + +#define IAudioClient3_GetService(This,riid,ppv) \ + ( (This)->lpVtbl -> GetService(This,riid,ppv) ) + + +#define IAudioClient3_IsOffloadCapable(This,Category,pbOffloadCapable) \ + ( (This)->lpVtbl -> IsOffloadCapable(This,Category,pbOffloadCapable) ) + +#define IAudioClient3_SetClientProperties(This,pProperties) \ + ( (This)->lpVtbl -> SetClientProperties(This,pProperties) ) + +#define IAudioClient3_GetBufferSizeLimits(This,pFormat,bEventDriven,phnsMinBufferDuration,phnsMaxBufferDuration) \ + ( (This)->lpVtbl -> GetBufferSizeLimits(This,pFormat,bEventDriven,phnsMinBufferDuration,phnsMaxBufferDuration) ) + + +#define IAudioClient3_GetSharedModeEnginePeriod(This,pFormat,pDefaultPeriodInFrames,pFundamentalPeriodInFrames,pMinPeriodInFrames,pMaxPeriodInFrames) \ + ( (This)->lpVtbl -> GetSharedModeEnginePeriod(This,pFormat,pDefaultPeriodInFrames,pFundamentalPeriodInFrames,pMinPeriodInFrames,pMaxPeriodInFrames) ) + +#define IAudioClient3_GetCurrentSharedModeEnginePeriod(This,ppFormat,pCurrentPeriodInFrames) \ + ( (This)->lpVtbl -> GetCurrentSharedModeEnginePeriod(This,ppFormat,pCurrentPeriodInFrames) ) + +#define IAudioClient3_InitializeSharedAudioStream(This,StreamFlags,PeriodInFrames,pFormat,AudioSessionGuid) \ + ( (This)->lpVtbl -> InitializeSharedAudioStream(This,StreamFlags,PeriodInFrames,pFormat,AudioSessionGuid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioClient3_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioRenderClient_INTERFACE_DEFINED__ +#define __IAudioRenderClient_INTERFACE_DEFINED__ + +/* interface IAudioRenderClient */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAudioRenderClient; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F294ACFC-3146-4483-A7BF-ADDCA7C260E2") + IAudioRenderClient : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetBuffer( + /* [annotation][in] */ + _In_ UINT32 NumFramesRequested, + /* [annotation][out] */ + _Outptr_result_buffer_(_Inexpressible_("NumFramesRequested * pFormat->nBlockAlign")) BYTE **ppData) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer( + /* [annotation][in] */ + _In_ UINT32 NumFramesWritten, + /* [annotation][in] */ + _In_ DWORD dwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioRenderClientVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioRenderClient * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioRenderClient * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioRenderClient * This); + + DECLSPEC_XFGVIRT(IAudioRenderClient, GetBuffer) + HRESULT ( STDMETHODCALLTYPE *GetBuffer )( + IAudioRenderClient * This, + /* [annotation][in] */ + _In_ UINT32 NumFramesRequested, + /* [annotation][out] */ + _Outptr_result_buffer_(_Inexpressible_("NumFramesRequested * pFormat->nBlockAlign")) BYTE **ppData); + + DECLSPEC_XFGVIRT(IAudioRenderClient, ReleaseBuffer) + HRESULT ( STDMETHODCALLTYPE *ReleaseBuffer )( + IAudioRenderClient * This, + /* [annotation][in] */ + _In_ UINT32 NumFramesWritten, + /* [annotation][in] */ + _In_ DWORD dwFlags); + + END_INTERFACE + } IAudioRenderClientVtbl; + + interface IAudioRenderClient + { + CONST_VTBL struct IAudioRenderClientVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioRenderClient_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioRenderClient_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioRenderClient_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioRenderClient_GetBuffer(This,NumFramesRequested,ppData) \ + ( (This)->lpVtbl -> GetBuffer(This,NumFramesRequested,ppData) ) + +#define IAudioRenderClient_ReleaseBuffer(This,NumFramesWritten,dwFlags) \ + ( (This)->lpVtbl -> ReleaseBuffer(This,NumFramesWritten,dwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioRenderClient_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioCaptureClient_INTERFACE_DEFINED__ +#define __IAudioCaptureClient_INTERFACE_DEFINED__ + +/* interface IAudioCaptureClient */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAudioCaptureClient; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C8ADBD64-E71E-48a0-A4DE-185C395CD317") + IAudioCaptureClient : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetBuffer( + /* [annotation][out] */ + _Outptr_result_buffer_(_Inexpressible_("*pNumFramesToRead * pFormat->nBlockAlign")) BYTE **ppData, + /* [annotation][out] */ + _Out_ UINT32 *pNumFramesToRead, + /* [annotation][out] */ + _Out_ DWORD *pdwFlags, + /* [annotation][unique][out] */ + _Out_opt_ UINT64 *pu64DevicePosition, + /* [annotation][unique][out] */ + _Out_opt_ UINT64 *pu64QPCPosition) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer( + /* [annotation][in] */ + _In_ UINT32 NumFramesRead) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextPacketSize( + /* [annotation][out] */ + _Out_ UINT32 *pNumFramesInNextPacket) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioCaptureClientVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioCaptureClient * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioCaptureClient * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioCaptureClient * This); + + DECLSPEC_XFGVIRT(IAudioCaptureClient, GetBuffer) + HRESULT ( STDMETHODCALLTYPE *GetBuffer )( + IAudioCaptureClient * This, + /* [annotation][out] */ + _Outptr_result_buffer_(_Inexpressible_("*pNumFramesToRead * pFormat->nBlockAlign")) BYTE **ppData, + /* [annotation][out] */ + _Out_ UINT32 *pNumFramesToRead, + /* [annotation][out] */ + _Out_ DWORD *pdwFlags, + /* [annotation][unique][out] */ + _Out_opt_ UINT64 *pu64DevicePosition, + /* [annotation][unique][out] */ + _Out_opt_ UINT64 *pu64QPCPosition); + + DECLSPEC_XFGVIRT(IAudioCaptureClient, ReleaseBuffer) + HRESULT ( STDMETHODCALLTYPE *ReleaseBuffer )( + IAudioCaptureClient * This, + /* [annotation][in] */ + _In_ UINT32 NumFramesRead); + + DECLSPEC_XFGVIRT(IAudioCaptureClient, GetNextPacketSize) + HRESULT ( STDMETHODCALLTYPE *GetNextPacketSize )( + IAudioCaptureClient * This, + /* [annotation][out] */ + _Out_ UINT32 *pNumFramesInNextPacket); + + END_INTERFACE + } IAudioCaptureClientVtbl; + + interface IAudioCaptureClient + { + CONST_VTBL struct IAudioCaptureClientVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioCaptureClient_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioCaptureClient_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioCaptureClient_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioCaptureClient_GetBuffer(This,ppData,pNumFramesToRead,pdwFlags,pu64DevicePosition,pu64QPCPosition) \ + ( (This)->lpVtbl -> GetBuffer(This,ppData,pNumFramesToRead,pdwFlags,pu64DevicePosition,pu64QPCPosition) ) + +#define IAudioCaptureClient_ReleaseBuffer(This,NumFramesRead) \ + ( (This)->lpVtbl -> ReleaseBuffer(This,NumFramesRead) ) + +#define IAudioCaptureClient_GetNextPacketSize(This,pNumFramesInNextPacket) \ + ( (This)->lpVtbl -> GetNextPacketSize(This,pNumFramesInNextPacket) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioCaptureClient_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0005 */ +/* [local] */ + +#define AUDIOCLOCK_CHARACTERISTIC_FIXED_FREQ 0x00000001 + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0005_v0_0_s_ifspec; + +#ifndef __IAudioClock_INTERFACE_DEFINED__ +#define __IAudioClock_INTERFACE_DEFINED__ + +/* interface IAudioClock */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioClock; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD63314F-3FBA-4a1b-812C-EF96358728E7") + IAudioClock : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFrequency( + /* [annotation][out] */ + _Out_ UINT64 *pu64Frequency) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPosition( + /* [annotation][out] */ + _Out_ UINT64 *pu64Position, + /* [annotation][unique][out] */ + _Out_opt_ UINT64 *pu64QPCPosition) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCharacteristics( + /* [annotation][out] */ + _Out_ DWORD *pdwCharacteristics) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioClockVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioClock * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioClock * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioClock * This); + + DECLSPEC_XFGVIRT(IAudioClock, GetFrequency) + HRESULT ( STDMETHODCALLTYPE *GetFrequency )( + IAudioClock * This, + /* [annotation][out] */ + _Out_ UINT64 *pu64Frequency); + + DECLSPEC_XFGVIRT(IAudioClock, GetPosition) + HRESULT ( STDMETHODCALLTYPE *GetPosition )( + IAudioClock * This, + /* [annotation][out] */ + _Out_ UINT64 *pu64Position, + /* [annotation][unique][out] */ + _Out_opt_ UINT64 *pu64QPCPosition); + + DECLSPEC_XFGVIRT(IAudioClock, GetCharacteristics) + HRESULT ( STDMETHODCALLTYPE *GetCharacteristics )( + IAudioClock * This, + /* [annotation][out] */ + _Out_ DWORD *pdwCharacteristics); + + END_INTERFACE + } IAudioClockVtbl; + + interface IAudioClock + { + CONST_VTBL struct IAudioClockVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioClock_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioClock_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioClock_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioClock_GetFrequency(This,pu64Frequency) \ + ( (This)->lpVtbl -> GetFrequency(This,pu64Frequency) ) + +#define IAudioClock_GetPosition(This,pu64Position,pu64QPCPosition) \ + ( (This)->lpVtbl -> GetPosition(This,pu64Position,pu64QPCPosition) ) + +#define IAudioClock_GetCharacteristics(This,pdwCharacteristics) \ + ( (This)->lpVtbl -> GetCharacteristics(This,pdwCharacteristics) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioClock_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0006 */ +/* [local] */ + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0006_v0_0_s_ifspec; + +#ifndef __IAudioClock2_INTERFACE_DEFINED__ +#define __IAudioClock2_INTERFACE_DEFINED__ + +/* interface IAudioClock2 */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioClock2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6f49ff73-6727-49ac-a008-d98cf5e70048") + IAudioClock2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDevicePosition( + /* [annotation][out] */ + _Out_ UINT64 *DevicePosition, + /* [annotation][unique][out] */ + _Out_opt_ UINT64 *QPCPosition) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioClock2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioClock2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioClock2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioClock2 * This); + + DECLSPEC_XFGVIRT(IAudioClock2, GetDevicePosition) + HRESULT ( STDMETHODCALLTYPE *GetDevicePosition )( + IAudioClock2 * This, + /* [annotation][out] */ + _Out_ UINT64 *DevicePosition, + /* [annotation][unique][out] */ + _Out_opt_ UINT64 *QPCPosition); + + END_INTERFACE + } IAudioClock2Vtbl; + + interface IAudioClock2 + { + CONST_VTBL struct IAudioClock2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioClock2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioClock2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioClock2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioClock2_GetDevicePosition(This,DevicePosition,QPCPosition) \ + ( (This)->lpVtbl -> GetDevicePosition(This,DevicePosition,QPCPosition) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioClock2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0007 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0007_v0_0_s_ifspec; + +#ifndef __IAudioClockAdjustment_INTERFACE_DEFINED__ +#define __IAudioClockAdjustment_INTERFACE_DEFINED__ + +/* interface IAudioClockAdjustment */ +/* [object][local][unique][uuid] */ + + +EXTERN_C const IID IID_IAudioClockAdjustment; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f6e4c0a0-46d9-4fb8-be21-57a3ef2b626c") + IAudioClockAdjustment : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetSampleRate( + /* [annotation][in] */ + _In_ float flSampleRate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioClockAdjustmentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioClockAdjustment * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioClockAdjustment * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioClockAdjustment * This); + + DECLSPEC_XFGVIRT(IAudioClockAdjustment, SetSampleRate) + HRESULT ( STDMETHODCALLTYPE *SetSampleRate )( + IAudioClockAdjustment * This, + /* [annotation][in] */ + _In_ float flSampleRate); + + END_INTERFACE + } IAudioClockAdjustmentVtbl; + + interface IAudioClockAdjustment + { + CONST_VTBL struct IAudioClockAdjustmentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioClockAdjustment_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioClockAdjustment_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioClockAdjustment_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioClockAdjustment_SetSampleRate(This,flSampleRate) \ + ( (This)->lpVtbl -> SetSampleRate(This,flSampleRate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioClockAdjustment_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0008 */ +/* [local] */ + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0008_v0_0_s_ifspec; + +#ifndef __ISimpleAudioVolume_INTERFACE_DEFINED__ +#define __ISimpleAudioVolume_INTERFACE_DEFINED__ + +/* interface ISimpleAudioVolume */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_ISimpleAudioVolume; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("87CE5498-68D6-44E5-9215-6DA47EF883D8") + ISimpleAudioVolume : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetMasterVolume( + /* [annotation][in] */ + _In_ float fLevel, + /* [unique][in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMasterVolume( + /* [annotation][out] */ + _Out_ float *pfLevel) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMute( + /* [annotation][in] */ + _In_ const BOOL bMute, + /* [unique][in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMute( + /* [annotation][out] */ + _Out_ BOOL *pbMute) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISimpleAudioVolumeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ISimpleAudioVolume * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ISimpleAudioVolume * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ISimpleAudioVolume * This); + + DECLSPEC_XFGVIRT(ISimpleAudioVolume, SetMasterVolume) + HRESULT ( STDMETHODCALLTYPE *SetMasterVolume )( + ISimpleAudioVolume * This, + /* [annotation][in] */ + _In_ float fLevel, + /* [unique][in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(ISimpleAudioVolume, GetMasterVolume) + HRESULT ( STDMETHODCALLTYPE *GetMasterVolume )( + ISimpleAudioVolume * This, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(ISimpleAudioVolume, SetMute) + HRESULT ( STDMETHODCALLTYPE *SetMute )( + ISimpleAudioVolume * This, + /* [annotation][in] */ + _In_ const BOOL bMute, + /* [unique][in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(ISimpleAudioVolume, GetMute) + HRESULT ( STDMETHODCALLTYPE *GetMute )( + ISimpleAudioVolume * This, + /* [annotation][out] */ + _Out_ BOOL *pbMute); + + END_INTERFACE + } ISimpleAudioVolumeVtbl; + + interface ISimpleAudioVolume + { + CONST_VTBL struct ISimpleAudioVolumeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISimpleAudioVolume_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISimpleAudioVolume_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISimpleAudioVolume_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISimpleAudioVolume_SetMasterVolume(This,fLevel,EventContext) \ + ( (This)->lpVtbl -> SetMasterVolume(This,fLevel,EventContext) ) + +#define ISimpleAudioVolume_GetMasterVolume(This,pfLevel) \ + ( (This)->lpVtbl -> GetMasterVolume(This,pfLevel) ) + +#define ISimpleAudioVolume_SetMute(This,bMute,EventContext) \ + ( (This)->lpVtbl -> SetMute(This,bMute,EventContext) ) + +#define ISimpleAudioVolume_GetMute(This,pbMute) \ + ( (This)->lpVtbl -> GetMute(This,pbMute) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISimpleAudioVolume_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0009 */ +/* [local] */ + +typedef /* [v1_enum] */ +enum AUDIO_DUCKING_OPTIONS + { + AUDIO_DUCKING_OPTIONS_DEFAULT = 0, + AUDIO_DUCKING_OPTIONS_DO_NOT_DUCK_OTHER_STREAMS = 0x1 + } AUDIO_DUCKING_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(AUDIO_DUCKING_OPTIONS); + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0009_v0_0_s_ifspec; + +#ifndef __IAudioClientDuckingControl_INTERFACE_DEFINED__ +#define __IAudioClientDuckingControl_INTERFACE_DEFINED__ + +/* interface IAudioClientDuckingControl */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioClientDuckingControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C789D381-A28C-4168-B28F-D3A837924DC3") + IAudioClientDuckingControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetDuckingOptionsForCurrentStream( + /* [in] */ AUDIO_DUCKING_OPTIONS options) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioClientDuckingControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioClientDuckingControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioClientDuckingControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioClientDuckingControl * This); + + DECLSPEC_XFGVIRT(IAudioClientDuckingControl, SetDuckingOptionsForCurrentStream) + HRESULT ( STDMETHODCALLTYPE *SetDuckingOptionsForCurrentStream )( + IAudioClientDuckingControl * This, + /* [in] */ AUDIO_DUCKING_OPTIONS options); + + END_INTERFACE + } IAudioClientDuckingControlVtbl; + + interface IAudioClientDuckingControl + { + CONST_VTBL struct IAudioClientDuckingControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioClientDuckingControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioClientDuckingControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioClientDuckingControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioClientDuckingControl_SetDuckingOptionsForCurrentStream(This,options) \ + ( (This)->lpVtbl -> SetDuckingOptionsForCurrentStream(This,options) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioClientDuckingControl_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioViewManagerService_INTERFACE_DEFINED__ +#define __IAudioViewManagerService_INTERFACE_DEFINED__ + +/* interface IAudioViewManagerService */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioViewManagerService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A7A7EF10-1F49-45E0-AD35-612057CC8F74") + IAudioViewManagerService : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetAudioStreamWindow( + /* [in] */ HWND hwnd) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioViewManagerServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioViewManagerService * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioViewManagerService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioViewManagerService * This); + + DECLSPEC_XFGVIRT(IAudioViewManagerService, SetAudioStreamWindow) + HRESULT ( STDMETHODCALLTYPE *SetAudioStreamWindow )( + IAudioViewManagerService * This, + /* [in] */ HWND hwnd); + + END_INTERFACE + } IAudioViewManagerServiceVtbl; + + interface IAudioViewManagerService + { + CONST_VTBL struct IAudioViewManagerServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioViewManagerService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioViewManagerService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioViewManagerService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioViewManagerService_SetAudioStreamWindow(This,hwnd) \ + ( (This)->lpVtbl -> SetAudioStreamWindow(This,hwnd) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioViewManagerService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0011 */ +/* [local] */ + +typedef /* [v1_enum] */ +enum AUDIO_EFFECT_STATE + { + AUDIO_EFFECT_STATE_OFF = 0, + AUDIO_EFFECT_STATE_ON = ( AUDIO_EFFECT_STATE_OFF + 1 ) + } AUDIO_EFFECT_STATE; + +typedef struct AUDIO_EFFECT + { + GUID id; + BOOL canSetState; + AUDIO_EFFECT_STATE state; + } AUDIO_EFFECT; + + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0011_v0_0_s_ifspec; + +#ifndef __IAudioEffectsChangedNotificationClient_INTERFACE_DEFINED__ +#define __IAudioEffectsChangedNotificationClient_INTERFACE_DEFINED__ + +/* interface IAudioEffectsChangedNotificationClient */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioEffectsChangedNotificationClient; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A5DED44F-3C5D-4B2B-BD1E-5DC1EE20BBF6") + IAudioEffectsChangedNotificationClient : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnAudioEffectsChanged( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEffectsChangedNotificationClientVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEffectsChangedNotificationClient * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEffectsChangedNotificationClient * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEffectsChangedNotificationClient * This); + + DECLSPEC_XFGVIRT(IAudioEffectsChangedNotificationClient, OnAudioEffectsChanged) + HRESULT ( STDMETHODCALLTYPE *OnAudioEffectsChanged )( + IAudioEffectsChangedNotificationClient * This); + + END_INTERFACE + } IAudioEffectsChangedNotificationClientVtbl; + + interface IAudioEffectsChangedNotificationClient + { + CONST_VTBL struct IAudioEffectsChangedNotificationClientVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEffectsChangedNotificationClient_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEffectsChangedNotificationClient_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEffectsChangedNotificationClient_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEffectsChangedNotificationClient_OnAudioEffectsChanged(This) \ + ( (This)->lpVtbl -> OnAudioEffectsChanged(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEffectsChangedNotificationClient_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioEffectsManager_INTERFACE_DEFINED__ +#define __IAudioEffectsManager_INTERFACE_DEFINED__ + +/* interface IAudioEffectsManager */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioEffectsManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4460B3AE-4B44-4527-8676-7548A8ACD260") + IAudioEffectsManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterAudioEffectsChangedNotificationCallback( + /* [in] */ IAudioEffectsChangedNotificationClient *client) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterAudioEffectsChangedNotificationCallback( + /* [in] */ IAudioEffectsChangedNotificationClient *client) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAudioEffects( + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_maybenull_(*numEffects) AUDIO_EFFECT **effects, + /* [out] */ UINT32 *numEffects) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAudioEffectState( + /* [in] */ GUID effectId, + /* [in] */ AUDIO_EFFECT_STATE state) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEffectsManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEffectsManager * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEffectsManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEffectsManager * This); + + DECLSPEC_XFGVIRT(IAudioEffectsManager, RegisterAudioEffectsChangedNotificationCallback) + HRESULT ( STDMETHODCALLTYPE *RegisterAudioEffectsChangedNotificationCallback )( + IAudioEffectsManager * This, + /* [in] */ IAudioEffectsChangedNotificationClient *client); + + DECLSPEC_XFGVIRT(IAudioEffectsManager, UnregisterAudioEffectsChangedNotificationCallback) + HRESULT ( STDMETHODCALLTYPE *UnregisterAudioEffectsChangedNotificationCallback )( + IAudioEffectsManager * This, + /* [in] */ IAudioEffectsChangedNotificationClient *client); + + DECLSPEC_XFGVIRT(IAudioEffectsManager, GetAudioEffects) + HRESULT ( STDMETHODCALLTYPE *GetAudioEffects )( + IAudioEffectsManager * This, + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_maybenull_(*numEffects) AUDIO_EFFECT **effects, + /* [out] */ UINT32 *numEffects); + + DECLSPEC_XFGVIRT(IAudioEffectsManager, SetAudioEffectState) + HRESULT ( STDMETHODCALLTYPE *SetAudioEffectState )( + IAudioEffectsManager * This, + /* [in] */ GUID effectId, + /* [in] */ AUDIO_EFFECT_STATE state); + + END_INTERFACE + } IAudioEffectsManagerVtbl; + + interface IAudioEffectsManager + { + CONST_VTBL struct IAudioEffectsManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEffectsManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEffectsManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEffectsManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEffectsManager_RegisterAudioEffectsChangedNotificationCallback(This,client) \ + ( (This)->lpVtbl -> RegisterAudioEffectsChangedNotificationCallback(This,client) ) + +#define IAudioEffectsManager_UnregisterAudioEffectsChangedNotificationCallback(This,client) \ + ( (This)->lpVtbl -> UnregisterAudioEffectsChangedNotificationCallback(This,client) ) + +#define IAudioEffectsManager_GetAudioEffects(This,effects,numEffects) \ + ( (This)->lpVtbl -> GetAudioEffects(This,effects,numEffects) ) + +#define IAudioEffectsManager_SetAudioEffectState(This,effectId,state) \ + ( (This)->lpVtbl -> SetAudioEffectState(This,effectId,state) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEffectsManager_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0013 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0013_v0_0_s_ifspec; + +#ifndef __IAudioStreamVolume_INTERFACE_DEFINED__ +#define __IAudioStreamVolume_INTERFACE_DEFINED__ + +/* interface IAudioStreamVolume */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioStreamVolume; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("93014887-242D-4068-8A15-CF5E93B90FE3") + IAudioStreamVolume : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetChannelCount( + /* [annotation][out] */ + _Out_ UINT32 *pdwCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetChannelVolume( + /* [annotation][in] */ + _In_ UINT32 dwIndex, + /* [annotation][in] */ + _In_ const float fLevel) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChannelVolume( + /* [annotation][in] */ + _In_ UINT32 dwIndex, + /* [annotation][out] */ + _Out_ float *pfLevel) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAllVolumes( + /* [annotation][in] */ + _In_ UINT32 dwCount, + /* [annotation][size_is][in] */ + _In_reads_(dwCount) const float *pfVolumes) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAllVolumes( + /* [annotation][in] */ + _In_ UINT32 dwCount, + /* [annotation][size_is][out] */ + _Out_writes_(dwCount) float *pfVolumes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioStreamVolumeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioStreamVolume * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioStreamVolume * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioStreamVolume * This); + + DECLSPEC_XFGVIRT(IAudioStreamVolume, GetChannelCount) + HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IAudioStreamVolume * This, + /* [annotation][out] */ + _Out_ UINT32 *pdwCount); + + DECLSPEC_XFGVIRT(IAudioStreamVolume, SetChannelVolume) + HRESULT ( STDMETHODCALLTYPE *SetChannelVolume )( + IAudioStreamVolume * This, + /* [annotation][in] */ + _In_ UINT32 dwIndex, + /* [annotation][in] */ + _In_ const float fLevel); + + DECLSPEC_XFGVIRT(IAudioStreamVolume, GetChannelVolume) + HRESULT ( STDMETHODCALLTYPE *GetChannelVolume )( + IAudioStreamVolume * This, + /* [annotation][in] */ + _In_ UINT32 dwIndex, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(IAudioStreamVolume, SetAllVolumes) + HRESULT ( STDMETHODCALLTYPE *SetAllVolumes )( + IAudioStreamVolume * This, + /* [annotation][in] */ + _In_ UINT32 dwCount, + /* [annotation][size_is][in] */ + _In_reads_(dwCount) const float *pfVolumes); + + DECLSPEC_XFGVIRT(IAudioStreamVolume, GetAllVolumes) + HRESULT ( STDMETHODCALLTYPE *GetAllVolumes )( + IAudioStreamVolume * This, + /* [annotation][in] */ + _In_ UINT32 dwCount, + /* [annotation][size_is][out] */ + _Out_writes_(dwCount) float *pfVolumes); + + END_INTERFACE + } IAudioStreamVolumeVtbl; + + interface IAudioStreamVolume + { + CONST_VTBL struct IAudioStreamVolumeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioStreamVolume_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioStreamVolume_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioStreamVolume_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioStreamVolume_GetChannelCount(This,pdwCount) \ + ( (This)->lpVtbl -> GetChannelCount(This,pdwCount) ) + +#define IAudioStreamVolume_SetChannelVolume(This,dwIndex,fLevel) \ + ( (This)->lpVtbl -> SetChannelVolume(This,dwIndex,fLevel) ) + +#define IAudioStreamVolume_GetChannelVolume(This,dwIndex,pfLevel) \ + ( (This)->lpVtbl -> GetChannelVolume(This,dwIndex,pfLevel) ) + +#define IAudioStreamVolume_SetAllVolumes(This,dwCount,pfVolumes) \ + ( (This)->lpVtbl -> SetAllVolumes(This,dwCount,pfVolumes) ) + +#define IAudioStreamVolume_GetAllVolumes(This,dwCount,pfVolumes) \ + ( (This)->lpVtbl -> GetAllVolumes(This,dwCount,pfVolumes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioStreamVolume_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0014 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +typedef +enum AMBISONICS_TYPE + { + AMBISONICS_TYPE_FULL3D = 0 + } AMBISONICS_TYPE; + +typedef +enum AMBISONICS_CHANNEL_ORDERING + { + AMBISONICS_CHANNEL_ORDERING_ACN = 0 + } AMBISONICS_CHANNEL_ORDERING; + +typedef +enum AMBISONICS_NORMALIZATION + { + AMBISONICS_NORMALIZATION_SN3D = 0, + AMBISONICS_NORMALIZATION_N3D = ( AMBISONICS_NORMALIZATION_SN3D + 1 ) + } AMBISONICS_NORMALIZATION; + +#define AMBISONICS_PARAM_VERSION_1 1 +// The AMBISONICS_PARAMS initialization structure should be completely filled out +// and then passed into the SetData API of IAmbisonicsControl Service on IAudioClient +// unsigned int(32) size of AMBISONICS_PARAMS +// unsigned int(32) version of AMBISONICS_PARAMS struct +// unsigned int(32) ambisonics_type is the enumeration of ambisonics types +// unsigned int(32) ambisonics_channel_ordering is the enumeration of ambisonics channel ordering +// unsigned int(32) ambisonics_normalization is the enumeration of ambisonics normaliztion +// unsigned int(32) ambisonics_order +// unsigned int(32) ambisonics_num_channels +// unsigned int(32) ambisonics_channel_map is a sequence of 32-bit unsigned integers that maps audio channels in a given audio track to ambisonic components, +// given the defined ambisonics_channel_ordering. The sequence of channel_map values should match the channel sequence within the given audio track. +typedef struct AMBISONICS_PARAMS + { + UINT32 u32Size; + UINT32 u32Version; + AMBISONICS_TYPE u32Type; + AMBISONICS_CHANNEL_ORDERING u32ChannelOrdering; + AMBISONICS_NORMALIZATION u32Normalization; + UINT32 u32Order; + UINT32 u32NumChannels; + /* [size_is][annotation] */ + __field_ecount(u32NumChannels) UINT32 *pu32ChannelMap; + } AMBISONICS_PARAMS; + + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0014_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0014_v0_0_s_ifspec; + +#ifndef __IAudioAmbisonicsControl_INTERFACE_DEFINED__ +#define __IAudioAmbisonicsControl_INTERFACE_DEFINED__ + +/* interface IAudioAmbisonicsControl */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioAmbisonicsControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("28724C91-DF35-4856-9F76-D6A26413F3DF") + IAudioAmbisonicsControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetData( + /* [size_is][in] */ __RPC__in_ecount_full(cbAmbisonicsParams) const AMBISONICS_PARAMS *pAmbisonicsParams, + /* [in] */ UINT32 cbAmbisonicsParams) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetHeadTracking( + /* [in] */ BOOL bEnableHeadTracking) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHeadTracking( + /* [out] */ __RPC__out BOOL *pbEnableHeadTracking) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetRotation( + /* [in] */ float X, + /* [in] */ float Y, + /* [in] */ float Z, + /* [in] */ float W) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioAmbisonicsControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAudioAmbisonicsControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAudioAmbisonicsControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAudioAmbisonicsControl * This); + + DECLSPEC_XFGVIRT(IAudioAmbisonicsControl, SetData) + HRESULT ( STDMETHODCALLTYPE *SetData )( + __RPC__in IAudioAmbisonicsControl * This, + /* [size_is][in] */ __RPC__in_ecount_full(cbAmbisonicsParams) const AMBISONICS_PARAMS *pAmbisonicsParams, + /* [in] */ UINT32 cbAmbisonicsParams); + + DECLSPEC_XFGVIRT(IAudioAmbisonicsControl, SetHeadTracking) + HRESULT ( STDMETHODCALLTYPE *SetHeadTracking )( + __RPC__in IAudioAmbisonicsControl * This, + /* [in] */ BOOL bEnableHeadTracking); + + DECLSPEC_XFGVIRT(IAudioAmbisonicsControl, GetHeadTracking) + HRESULT ( STDMETHODCALLTYPE *GetHeadTracking )( + __RPC__in IAudioAmbisonicsControl * This, + /* [out] */ __RPC__out BOOL *pbEnableHeadTracking); + + DECLSPEC_XFGVIRT(IAudioAmbisonicsControl, SetRotation) + HRESULT ( STDMETHODCALLTYPE *SetRotation )( + __RPC__in IAudioAmbisonicsControl * This, + /* [in] */ float X, + /* [in] */ float Y, + /* [in] */ float Z, + /* [in] */ float W); + + END_INTERFACE + } IAudioAmbisonicsControlVtbl; + + interface IAudioAmbisonicsControl + { + CONST_VTBL struct IAudioAmbisonicsControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioAmbisonicsControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioAmbisonicsControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioAmbisonicsControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioAmbisonicsControl_SetData(This,pAmbisonicsParams,cbAmbisonicsParams) \ + ( (This)->lpVtbl -> SetData(This,pAmbisonicsParams,cbAmbisonicsParams) ) + +#define IAudioAmbisonicsControl_SetHeadTracking(This,bEnableHeadTracking) \ + ( (This)->lpVtbl -> SetHeadTracking(This,bEnableHeadTracking) ) + +#define IAudioAmbisonicsControl_GetHeadTracking(This,pbEnableHeadTracking) \ + ( (This)->lpVtbl -> GetHeadTracking(This,pbEnableHeadTracking) ) + +#define IAudioAmbisonicsControl_SetRotation(This,X,Y,Z,W) \ + ( (This)->lpVtbl -> SetRotation(This,X,Y,Z,W) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioAmbisonicsControl_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0015 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0015_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0015_v0_0_s_ifspec; + +#ifndef __IChannelAudioVolume_INTERFACE_DEFINED__ +#define __IChannelAudioVolume_INTERFACE_DEFINED__ + +/* interface IChannelAudioVolume */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IChannelAudioVolume; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1C158861-B533-4B30-B1CF-E853E51C59B8") + IChannelAudioVolume : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetChannelCount( + /* [annotation][out] */ + _Out_ UINT32 *pdwCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetChannelVolume( + /* [annotation][in] */ + _In_ UINT32 dwIndex, + /* [annotation][in] */ + _In_ const float fLevel, + /* [unique][in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChannelVolume( + /* [annotation][in] */ + _In_ UINT32 dwIndex, + /* [annotation][out] */ + _Out_ float *pfLevel) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAllVolumes( + /* [annotation][in] */ + _In_ UINT32 dwCount, + /* [annotation][size_is][in] */ + _In_reads_(dwCount) const float *pfVolumes, + /* [unique][in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAllVolumes( + /* [annotation][in] */ + _In_ UINT32 dwCount, + /* [annotation][size_is][out] */ + _Out_writes_(dwCount) float *pfVolumes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IChannelAudioVolumeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IChannelAudioVolume * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IChannelAudioVolume * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IChannelAudioVolume * This); + + DECLSPEC_XFGVIRT(IChannelAudioVolume, GetChannelCount) + HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IChannelAudioVolume * This, + /* [annotation][out] */ + _Out_ UINT32 *pdwCount); + + DECLSPEC_XFGVIRT(IChannelAudioVolume, SetChannelVolume) + HRESULT ( STDMETHODCALLTYPE *SetChannelVolume )( + IChannelAudioVolume * This, + /* [annotation][in] */ + _In_ UINT32 dwIndex, + /* [annotation][in] */ + _In_ const float fLevel, + /* [unique][in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IChannelAudioVolume, GetChannelVolume) + HRESULT ( STDMETHODCALLTYPE *GetChannelVolume )( + IChannelAudioVolume * This, + /* [annotation][in] */ + _In_ UINT32 dwIndex, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(IChannelAudioVolume, SetAllVolumes) + HRESULT ( STDMETHODCALLTYPE *SetAllVolumes )( + IChannelAudioVolume * This, + /* [annotation][in] */ + _In_ UINT32 dwCount, + /* [annotation][size_is][in] */ + _In_reads_(dwCount) const float *pfVolumes, + /* [unique][in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IChannelAudioVolume, GetAllVolumes) + HRESULT ( STDMETHODCALLTYPE *GetAllVolumes )( + IChannelAudioVolume * This, + /* [annotation][in] */ + _In_ UINT32 dwCount, + /* [annotation][size_is][out] */ + _Out_writes_(dwCount) float *pfVolumes); + + END_INTERFACE + } IChannelAudioVolumeVtbl; + + interface IChannelAudioVolume + { + CONST_VTBL struct IChannelAudioVolumeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IChannelAudioVolume_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IChannelAudioVolume_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IChannelAudioVolume_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IChannelAudioVolume_GetChannelCount(This,pdwCount) \ + ( (This)->lpVtbl -> GetChannelCount(This,pdwCount) ) + +#define IChannelAudioVolume_SetChannelVolume(This,dwIndex,fLevel,EventContext) \ + ( (This)->lpVtbl -> SetChannelVolume(This,dwIndex,fLevel,EventContext) ) + +#define IChannelAudioVolume_GetChannelVolume(This,dwIndex,pfLevel) \ + ( (This)->lpVtbl -> GetChannelVolume(This,dwIndex,pfLevel) ) + +#define IChannelAudioVolume_SetAllVolumes(This,dwCount,pfVolumes,EventContext) \ + ( (This)->lpVtbl -> SetAllVolumes(This,dwCount,pfVolumes,EventContext) ) + +#define IChannelAudioVolume_GetAllVolumes(This,dwCount,pfVolumes) \ + ( (This)->lpVtbl -> GetAllVolumes(This,dwCount,pfVolumes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IChannelAudioVolume_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0016 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application and Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) +#define AUDCLNT_ERR(n) MAKE_HRESULT(SEVERITY_ERROR, FACILITY_AUDCLNT, n) +#define AUDCLNT_SUCCESS(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_AUDCLNT, n) +#define AUDCLNT_E_NOT_INITIALIZED AUDCLNT_ERR(0x001) +#define AUDCLNT_E_ALREADY_INITIALIZED AUDCLNT_ERR(0x002) +#define AUDCLNT_E_WRONG_ENDPOINT_TYPE AUDCLNT_ERR(0x003) +#define AUDCLNT_E_DEVICE_INVALIDATED AUDCLNT_ERR(0x004) +#define AUDCLNT_E_NOT_STOPPED AUDCLNT_ERR(0x005) +#define AUDCLNT_E_BUFFER_TOO_LARGE AUDCLNT_ERR(0x006) +#define AUDCLNT_E_OUT_OF_ORDER AUDCLNT_ERR(0x007) +#define AUDCLNT_E_UNSUPPORTED_FORMAT AUDCLNT_ERR(0x008) +#define AUDCLNT_E_INVALID_SIZE AUDCLNT_ERR(0x009) +#define AUDCLNT_E_DEVICE_IN_USE AUDCLNT_ERR(0x00a) +#define AUDCLNT_E_BUFFER_OPERATION_PENDING AUDCLNT_ERR(0x00b) +#define AUDCLNT_E_THREAD_NOT_REGISTERED AUDCLNT_ERR(0x00c) +#define AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED AUDCLNT_ERR(0x00e) +#define AUDCLNT_E_ENDPOINT_CREATE_FAILED AUDCLNT_ERR(0x00f) +#define AUDCLNT_E_SERVICE_NOT_RUNNING AUDCLNT_ERR(0x010) +#define AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED AUDCLNT_ERR(0x011) +#define AUDCLNT_E_EXCLUSIVE_MODE_ONLY AUDCLNT_ERR(0x012) +#define AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL AUDCLNT_ERR(0x013) +#define AUDCLNT_E_EVENTHANDLE_NOT_SET AUDCLNT_ERR(0x014) +#define AUDCLNT_E_INCORRECT_BUFFER_SIZE AUDCLNT_ERR(0x015) +#define AUDCLNT_E_BUFFER_SIZE_ERROR AUDCLNT_ERR(0x016) +#define AUDCLNT_E_CPUUSAGE_EXCEEDED AUDCLNT_ERR(0x017) +#define AUDCLNT_E_BUFFER_ERROR AUDCLNT_ERR(0x018) +#define AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED AUDCLNT_ERR(0x019) +#define AUDCLNT_E_INVALID_DEVICE_PERIOD AUDCLNT_ERR(0x020) +#define AUDCLNT_E_INVALID_STREAM_FLAG AUDCLNT_ERR(0x021) +#define AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE AUDCLNT_ERR(0x022) +#define AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES AUDCLNT_ERR(0x023) +#define AUDCLNT_E_OFFLOAD_MODE_ONLY AUDCLNT_ERR(0x024) +#define AUDCLNT_E_NONOFFLOAD_MODE_ONLY AUDCLNT_ERR(0x025) +#define AUDCLNT_E_RESOURCES_INVALIDATED AUDCLNT_ERR(0x026) +#define AUDCLNT_E_RAW_MODE_UNSUPPORTED AUDCLNT_ERR(0x027) +#define AUDCLNT_E_ENGINE_PERIODICITY_LOCKED AUDCLNT_ERR(0x028) +#define AUDCLNT_E_ENGINE_FORMAT_LOCKED AUDCLNT_ERR(0x029) +#define AUDCLNT_E_HEADTRACKING_ENABLED AUDCLNT_ERR(0x030) +#define AUDCLNT_E_HEADTRACKING_UNSUPPORTED AUDCLNT_ERR(0x040) +#define AUDCLNT_E_EFFECT_NOT_AVAILABLE AUDCLNT_ERR(0x041) +#define AUDCLNT_E_EFFECT_STATE_READ_ONLY AUDCLNT_ERR(0x042) +#define AUDCLNT_E_POST_VOLUME_LOOPBACK_UNSUPPORTED AUDCLNT_ERR(0x043) +#define AUDCLNT_S_BUFFER_EMPTY AUDCLNT_SUCCESS(0x001) +#define AUDCLNT_S_THREAD_ALREADY_REGISTERED AUDCLNT_SUCCESS(0x002) +#define AUDCLNT_S_POSITION_STALLED AUDCLNT_SUCCESS(0x003) + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0016_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0016_v0_0_s_ifspec; + +#ifndef __IAcousticEchoCancellationControl_INTERFACE_DEFINED__ +#define __IAcousticEchoCancellationControl_INTERFACE_DEFINED__ + +/* interface IAcousticEchoCancellationControl */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAcousticEchoCancellationControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f4ae25b5-aaa3-437d-b6b3-dbbe2d0e9549") + IAcousticEchoCancellationControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetEchoCancellationRenderEndpoint( + LPCWSTR endpointId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAcousticEchoCancellationControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAcousticEchoCancellationControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAcousticEchoCancellationControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAcousticEchoCancellationControl * This); + + DECLSPEC_XFGVIRT(IAcousticEchoCancellationControl, SetEchoCancellationRenderEndpoint) + HRESULT ( STDMETHODCALLTYPE *SetEchoCancellationRenderEndpoint )( + IAcousticEchoCancellationControl * This, + LPCWSTR endpointId); + + END_INTERFACE + } IAcousticEchoCancellationControlVtbl; + + interface IAcousticEchoCancellationControl + { + CONST_VTBL struct IAcousticEchoCancellationControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAcousticEchoCancellationControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAcousticEchoCancellationControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAcousticEchoCancellationControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAcousticEchoCancellationControl_SetEchoCancellationRenderEndpoint(This,endpointId) \ + ( (This)->lpVtbl -> SetEchoCancellationRenderEndpoint(This,endpointId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAcousticEchoCancellationControl_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioclient_0000_0017 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0017_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclient_0000_0017_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Audioclient.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Audioclient.idl new file mode 100644 index 0000000000000000000000000000000000000000..6edc79cb1b3f4d9936965dc34be97107f713ddd7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Audioclient.idl @@ -0,0 +1,1873 @@ +cpp_quote("#include ") + +// +// Copyright Microsoft Corporation, All Rights Reserved +// +// AudioClient.idl : AudioClient API interface definition +// + +import "wtypes.idl"; +import "unknwn.idl"; // for IUnknown +import "mmreg.h"; // for WAVEFORMATEX + +cpp_quote("#if 0") +typedef [restricted, hidden] LONGLONG REFERENCE_TIME; +cpp_quote("#else") + +cpp_quote("#ifndef _SkipIksIncludes_") +cpp_quote("#define _IKsControl_") +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("#endif") + +cpp_quote("#endif") + + +import "AudioSessionTypes.h"; + +#pragma region Application and Games Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)") + +//------------------------------------------------------------------------- +// Description: AudioClient buffer flags +// +// AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY - The data for this buffer is not correlated +// with the data from the previous buffer. +// AUDCLNT_BUFFERFLAGS_SILENT - This data in this buffer should be treated as silence. +// +// AUDCLNT_BUFFERFLAGS_TIMESTAMP_ERROR - The QPC based timestamp reading for this data +// buffer does not correlate with the data position. +// +enum _AUDCLNT_BUFFERFLAGS +{ + AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY = 0x01, + AUDCLNT_BUFFERFLAGS_SILENT = 0x02, + AUDCLNT_BUFFERFLAGS_TIMESTAMP_ERROR = 0x04 +}; + +//------------------------------------------------------------------------- +// Description: Flags describing the characteristics of an audio stream +// +// AUDCLNT_STREAMOPTIONS_RAW - The audio stream is a 'raw' stream that bypasses +// all signal processing except for endpoint specific, +// always-on processing in the APO, driver and hardware +// +// AUDCLNT_STREAMOPTIONS_MATCH_FORMAT - The client is requesting the audio engine to +// match the format proposed by the client. The audio engine +// may match this format only if the format can be accepted +// the audio driver and associated APOs. +// +// AUDCLNT_STREAMOPTIONS_AMBISONICS - The client is requesting the audio client to insert +// Ambisonics renderer and configure the pipeline to match Ambisonics format types +// +// AUDCLNT_STREAMOPTIONS_POST_VOLUME_LOOPBACK - The client is requesting that the loopback stream capture +// the audio data after volume and/or mute processing has been applied. +typedef [v1_enum] enum AUDCLNT_STREAMOPTIONS +{ + AUDCLNT_STREAMOPTIONS_NONE = 0x00, + AUDCLNT_STREAMOPTIONS_RAW = 0x01, + AUDCLNT_STREAMOPTIONS_MATCH_FORMAT = 0x02, + AUDCLNT_STREAMOPTIONS_AMBISONICS = 0x04, +#if(NTDDI_VERSION > NTDDI_WIN11_ZN) + AUDCLNT_STREAMOPTIONS_POST_VOLUME_LOOPBACK = 0x08, +#endif +} AUDCLNT_STREAMOPTIONS; + +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(AUDCLNT_STREAMOPTIONS);") + +//------------------------------------------------------------------------- +// Description: AudioClient properties structure that must precede +// other properties in IAudioClient::SetClientProperties +// +// cbSize - UINT32 size in bytes of this structure. +// bIsOffload - BOOL indicating whether or not to use offlod mode. +// eCategory - AUDIO_STREAM_CATEGORY to be used. +// Options - A bitfield describing the characteristics of the stream +// +cpp_quote("#if (NTDDI_VERSION < NTDDI_WINBLUE) ") +cpp_quote("typedef struct AudioClientProperties") +cpp_quote("{") +cpp_quote(" UINT32 cbSize;") +cpp_quote(" BOOL bIsOffload;") +cpp_quote(" AUDIO_STREAM_CATEGORY eCategory;") +cpp_quote("} AudioClientProperties;") +cpp_quote("#else") +typedef struct AudioClientProperties +{ + UINT32 cbSize; + BOOL bIsOffload; + AUDIO_STREAM_CATEGORY eCategory; + AUDCLNT_STREAMOPTIONS Options; +} AudioClientProperties; +cpp_quote("#endif") + +//----------------------------------------------------------------------------- +// Description: IAudioClient interface +// +[ + object, + uuid(1CB9AD4C-DBFA-4c32-B178-C2F568A703B2), + pointer_default(unique), + local +] +interface IAudioClient : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Initializes the audio stream by creating a connection to the Windows Audio System (WAS) + // using the specified format, the requested shared buffer duration and the desired audio session + // category. + // + // Parameters: + // + // ShareMode - [in] allows the application to determine how the WAS should create its connection point. The ShareMode must be one of the following: + // + // AUDCLNT_SHAREMODE_SHARED - The device will be opened in shared mode and use the WAS format. pFormat must be non-NULL if this mode is + // specified, otherwise the call will fail. + // + // AUDCLNT_SHAREMODE_EXCLUSIVE - the WAS will attempt to prepare an exclusive mode connection to the audio device in the specified format. + // No local stream APOs will be inserted by the WAS to aid in the creation of the connection point. pFormat must be non-NULL in this mode, + // otherwise the call will fail. + // + // StreamFlags - [in] optional flags that can be specified to control stream creation. Possible flags include: + // + // AUDCLNT_STREAMFLAGS_CROSSPROCESS - Treats a non-NULL audio session guid specified for this stream as a + // cross-process session, for purposes of volume and policy control. Otherwise, the default is for audio + // sessions to be local to the current process. + // + // AUDCLNT_STREAMFLAGS_LOOPBACK - Initializes a renderer endpoint for a loopback audio application. + // In this mode, a capture stream will be opened on the specified renderer endpoint. Shared mode + // and a renderer endpoint is required. Otherwise this Initialize call will fail. On successful + // initialization, a capture stream will be available from this IAudioClient object. + // + // AUDCLNT_STREAMFLAGS_EVENTCALLBACK - specifies that a client will supply an event handle + // to be signaled for "pull model" render or capture. + // + // For a complete list of flags, see AudioSessionTypes.h + // + // hnsBufferDuration - [in] duration to use for the buffer that the audio application will + // share with the WAS, in 100-nanosecond (hns) units. The minimum allowed duration for + // this buffer is the WAS's processing period plus any latency introduced by the WAS stream, + // so if a value lower than this is specified that minimum size will be used. + // + // The application is guaranteed that the underlying buffer created in response to this duration + // request will be at least this size, with any device latency added in. The exact shared + // buffer size created can be retrieved after this method was successfully called by calling + // the GetBufferSize() method. + // + // Clients wishing to use a shared buffer that's exactly equal to the WAS's processing + // quantum size should specify 0 for this argument and run their processing thread using + // the period returned in the GetDevicePeriod() method. This would yield the lowest latency + // and avoid any unnecessary buffering in the audio client. + // + // Applications wishing to use a larger shared buffer, with the goal of either: + // a) processing less often at the price of a higher latency or + // b) running with minimum latency and highest periodicity but filling less of the shared + // buffer per-pass (double-buffering, for instance), + // can do this by passing in the desired value for this parameter, noting the minimum + // size requirement. + // + // If the time requested doesn't fall on a frame boundary, a duration of the next higher + // frame size will be used. The client must call the GetBufferSize() method after + // Initialize to find out the exact frame size of the shared buffer. This value will be + // needed during streaming to compute render buffer request sizes. + // + // hnsPeriodicity - [in] the length in 100-nanosecond (hns) units of a single packet. A packet is + // a single unit of transfer from the client to the KS endpoint. A certain number of "frames" or + // "samples" will be contained in a packet, based on the number of samples / second designated in + // pFormat. In a similar manner to hnsBufferDuration, if the time requested doesn't fall on a frame + // boundary, the duration will be rounded up to the next higher frame. This value cannot be less + // than the minimum periodicity reported by the GetDevicePeriod() method. + // + // pFormat - [in] pointer to the application's desired audio stream format. + // + // AudioSessionGuid - [in] GUID that identifies this audio session. This GUID represents an audio policy + // "class" and is used to indicate what type of audio this application should be associated + // with. Typically, it's expected that the application would either use the default class + // (by setting this pointer to NULL or the contents to GUID_NULL) or one of the pre-defined + // Windows Audio Policy classes defined in the AudioPolicy.idl public header file. + // + // Return values: + // + // S_OK If successful, failure otherwise. + // AUDCLNT_E_INITIALIZED, if already initialized. + // AUDCLNT_E_WRONG_ENDPOINT_TYPE, if loopback flag was set but endpoint isn't a render endpoint. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device was removed. + // AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL, if AUDCLNT_STREAMFLAGS_EVENTCALLBACK StreamFlag is + // supplied and share mode is AUDCLNT_SHAREMODE_EXCLUSIVE, + // hnsBufferDuration and hnsPeriodicity must be equal + // AUDCLNT_E_CPUUSAGE_EXCEEDED, if there is not enough CPU to add this stream. + // + // Remarks: + // + // The IAudioClient methods IsFormatSupported(), GetDevicePeriod() and GetMixFormat() + // don't require that this method be called first. All other methods do. + // + // Applications wishing to run in SharedMode should be prepared to be able to supply or accept + // data in the format returned by IsFormatSupported before calling Initialize. Basically, the + // format the application has to support is either the source format or a "closest match" format + // returned by IsFormatSupported. The Assumption that the mix format returned by GetMixFormat + // can be streamed is not always true. To stream the closest match to the mix format, call + // first GetMixFormat followed by IsFormatSupported passing in the mix format. If streaming the + // mix format is supported by the system effect, IsFormatSupported will return S_OK. + // + // If AUDCLNT_STREAMFLAGS_EVENTCALLBACK is specified and the ShareMode is AUDCLNT_SHAREMODE_EXCLUSIVE, + // hnsBufferDuration and hnsPeriodicity must be equal. This causes an exclusive KSEndpoint to create + // a double buffer pull model cycle. The endpoint starts playing with two full buffers "A" and "B". + // When buffer "A" finishes playing, the client event handle is signaled, buffer "B" starts playing, + // and the client fills buffer "A". Buffers "A" and "B" are both of duration hnsBufferDuration and the + // client thread will be woken up every hnsPeriodicity to fill. This supports a very low latency pull + // model render or capture cycle. + // + // If AUDCLNT_STREAMFLAGS_EVENTCALLBACK is specified and the ShareMode is AUDCLNT_SHAREMODE_SHARED, + // hnsBufferDuration is the client's desired buffer size and hnsPeriodicity must be 0. At the end of + // each processing pass of the audio engine pump, the client's supplied event handle will be signaled. + // + // In either case, specifying the AUDCLNT_STREAMFLAGS_EVENTCALLBACK stream flag requires that the client + // supply an event handle using the SetEventHandle() method prior to calling Start(). + // + // An IAudioClient object supports exactly one WAS connection which lasts for the lifetime + // of the IAudioClient object. + // + HRESULT Initialize( + [in, annotation("_In_")] AUDCLNT_SHAREMODE ShareMode, + [in, annotation("_In_")] DWORD StreamFlags, + [in, annotation("_In_")] REFERENCE_TIME hnsBufferDuration, + [in, annotation("_In_")] REFERENCE_TIME hnsPeriodicity, + [in, annotation("_In_")] const WAVEFORMATEX* pFormat, + [in, annotation("_In_opt_")] LPCGUID AudioSessionGuid ); + + + //------------------------------------------------------------------------- + // Description: + // + // Returns the maximum size of the shared buffer between the application and the WAS, in + // frames. This size is determined by the hnsBufferDuration parameter passed to the Initialize + // call. For render clients, this value determines the maximum amount of application data + // that can be written and stored in the shared buffer at a time. For capture clients, + // this determines the maximum amount of WAS capture data that can be stored for the application. + // + // Parameters: + // + // pNumBufferFrames - [out] pointer for returning the size of the buffer shared between + // application and WAS, in frames. + // + // Return Values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_NOT_INITIALIZED, if audio stream hasn't been successfully initialized. + // E_POINTER, if pNumBufferFrames is NULL. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // + // Remarks: + // + // Render clients can use this value to compute the largest render buffer size that can be + // requested from IAudioRenderClient::GetBuffer() during each processing pass. (For more + // information, see the IAudioRenderClient section.) + // + HRESULT GetBufferSize([out, annotation("_Out_")] UINT32 *pNumBufferFrames); + + //------------------------------------------------------------------------- + // Description: + // + // This method returns the maximum latency for the current stream and device and can be called + // anytime after the stream has been initialized. + // + // Parameters: + // + // phnsLatency - [out] pointer to stream latency in 100-nanosecond (hns) units. + // + // Return Values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_NOT_INITIALIZED if audio stream hasn't been successfully initialized. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // + // Remarks: + // + // This method returns the maximum latency for the current stream. This method can be called + // once the AudioClient has been initialized. + // + // The value will not change for the life of the object. + // + // Render clients can use this value to compute a minimum amount of data to write during any + // single processing pass to prevent glitching. + // + // See the IAudioRenderClient section for more details. + // + HRESULT GetStreamLatency([out, annotation("_Out_")] REFERENCE_TIME * phnsLatency); + + //------------------------------------------------------------------------- + // Description: + // + // Returns the number of frames queued up to play or captured in the buffer shared between + // the WAS and the client. + // + // Parameters: + // + // pNumPaddingFrames - [out] pointer for returning the number of frames currently queued + // to play or capture. + // + // Return Values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_NOT_INITIALIZED if audio stream hasn't been successfully initialized. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed, + // + // Remarks: + // + // Render applications can use this value to compute a minimum on the amount of free space + // available in the render buffer to write into on the next processing pass. See the details + // in the IAudioRenderClient section for how to compute this value. + // + // For capture applications, individual reads of capture data are done based on packet sizes + // (described in the IAudioCaptureClient section), but this value represent the total frame + // count of all the capture packets ready to read. + // + // Once the audio stream has been successfully initialized, this call should always succeed. + // + HRESULT GetCurrentPadding([out, annotation("_Out_")] UINT32 *pNumPaddingFrames); + + //------------------------------------------------------------------------- + // Description: + // + // Provides a way for the user to determine, prior to initialization, whether a given format + // will be supported or not by the AudioClient API and if so, whether the format requires + // exclusive mode. This is a device method which doesn't require prior audio stream + // initialization. + // + // Parameters: + // + // ShareMode - [in] allows the application to determine how the WAS should create its connection point. The ShareMode must be one of the following: + // + // AUDCLNT_SHAREMODE_SHARED - The device will be opened in shared mode. + // + // AUDCLNT_SHAREMODE_EXCLUSIVE - the WAS will attempt to prepare an exclusive mode connection to the audio device in the specified format. + // No local stream APOs will be inserted by the WAS to aid in the creation of the connection point. + // + // pFormat - [in] Pointer to buffer containing the application's audio format. + // + // ppClosestMatch - [out] Pointer to WAVEFORMATEX pointer containing the audio format + // of the closest match in case the format requested cannot be supported natively. + // The closest match is only returned if the SharedMode parameter is + // AUDCLNT_SHAREMODE_SHARED and the return code is S_FALSE. No closest match can be + // provided for AUDCLNT_SHAREMODE_EXCLUSIVE. + // + // Return Values: + // + // S_OK if format is supported. + // S_FALSE if input format is not supported but ppClosestMatch is. + // E_POINTER if ppClosestMatch is NULL & AUDCLNT_SHAREMODE_SHARED. + // AUDCLNT_E_UNSUPPORTED_FORMAT if the offload connector is used and input format is not a compressed format. + // AUDCLNT_E_DEVICE_INVALIDATED if WAS device was removed. + // + // Remarks: + // + // This method does not require that the Initialize method be called first. + // + HRESULT IsFormatSupported( + [in, annotation("_In_")] AUDCLNT_SHAREMODE ShareMode, + [in, annotation("_In_")] const WAVEFORMATEX * pFormat, + [out, annotation("_Out_opt_"), unique] WAVEFORMATEX ** ppClosestMatch); + + //------------------------------------------------------------------------- + // Description: + // + // Returns the current format of the WAS for this device. This is a device method + // which doesn't require prior audio stream initialization. + // + // Parameters: + // + // ppDeviceFormat - [out] Address for returning a pointer to the current audio device format. + // This is the format the WAS will use to communicate with the device and is determined + // by the preferred device format set in the control panel. The memory returned should + // be freed by the caller using CoTaskMemFree() on the returned memory pointer. + // + // Return Values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device was removed. + // + // Remarks: + // + // This method may be called at any time and will always return the same format. + // + // For all cases where the format type contains > 2 channels, the WAVEFORMATEXTENSIBLE type + // will be used and the returned dwChannelMask field will be set correctly. + // + HRESULT GetMixFormat([out, annotation("_Out_")] WAVEFORMATEX ** ppDeviceFormat); + + //------------------------------------------------------------------------- + // Description: + // + // Returns the periodicity of the WAS engine, in 100-nanosecond units. + // See Remarks section for more details about this value. This is a device method + // which doesn't require prior audio stream initialization. + // + // Parameters: + // + // phnsDefaultDevicePeriod - [out] Returns pointer to duration of the WAS period, in + // 100-nanosecond units. This is a device method which doesn't require prior audio + // stream initialization. + // + // phnsMinDevicePeriod - [out] Returns pointer to duration of the minimum WAS period, + // in 100-nanosecond units. This is the minimum periodicity (frames/ packet) that the + // driver supports. This value is the minimum periodicity that is supported in the + // hnsPeriodicity parameter to the IAudioClient::Initialize() call. + // + // Return Values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device was removed. + // + // Remarks: + // + // This method may be called at any time and will always return the same value. + // + HRESULT GetDevicePeriod([out, annotation("_Out_opt_")] REFERENCE_TIME * phnsDefaultDevicePeriod, + [out, annotation("_Out_opt_")] REFERENCE_TIME *phnsMinimumDevicePeriod); + + //------------------------------------------------------------------------- + // Description: + // + // Control method used to start running the audio stream. This causes the + // AudioClient API to start streaming between the shared buffer and the WAS. + // This also starts the underlying audio clock running from its current position. + // If this is the first time this method was called on the stream, the AudioClient's + // IAudioClock position will start from 0. Otherwise, the clock will start from its + // last position. + // + // Parameters: + // + // none + // + // Return values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_NOT_INITIALIZED if client hasn't been successfully initialized. + // AUDCLNT_E_NOT_STOPPED if client hasn't been first stopped. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // AUDCLNT_E_EVENTHANDLE_NOT_SET, if event callback stream flag is specified and the event + // handle was not set with SetEventHandle + // + // Remarks: + // + // To avoid a startup glitch for render clients, applications shouldn't call Start + // until the AudioClient engine has been pre-filled with data using the + // GetBuffer()/ReleaseBuffer() methods on the render interface. + // + HRESULT Start(); + + //------------------------------------------------------------------------- + // Description: + // + // Control method used to stop running the audio stream. This stops the data streaming + // between the WAS and client connection. This also stops the underlying audio clock at + // its current stream position. The stream position won't be reset until the Reset method + // is called. + // + // Parameters: + // + // none + // + // Return values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_NOT_INITIALIZED if client hasn't been successfully initialized. + // S_FALSE if client is already stopped. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // + // Remarks: + // + HRESULT Stop(); + + //------------------------------------------------------------------------- + // Description: + // + // Control method which resets a stopped audio stream by flushing all pending data and + // resetting the audio clock stream position to 0. This method will fail if called on + // a stream that is not stopped. + // + // Parameters: + // + // none + // + // Return values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_NOT_INITIALIZED if audio stream hasn't been successfully initialized. + // AUDCLNT_E_NOT_STOPPED if audio stream hasn't been stopped. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // + // Remarks: + // + HRESULT Reset(); + + + //------------------------------------------------------------------------- + // Description: + // + // Method through which an audio client supplies an event handle used + // to call back for a "pull model" buffer fill. + // + // Parameters: + // + // eventHandle - [in] event handle that will be signaled when a previous buffer has + // completed and that the audio client should fill the + // next buffer + // + // Return values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_NOT_INITIALIZED if audio stream hasn't been successfully initialized. + // AUDCLNT_E_NOT_STOPPED if audio stream hasn't been stopped. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED, if Initialize was not called with the + // AUDCLNT_STREAMFLAGS_EVENTCALLBACK flag + // + // Remarks: + // + // The event handle should be "auto reset" and the client is responsible for closing / freeing + // this event handle + // + HRESULT SetEventHandle([in] HANDLE eventHandle); + + //------------------------------------------------------------------------- + // Description: + // + // Method used to exposed additional services off the AudioClient API, including + // services for render and capture, clock services, volume control and audio session control services. + // + // Parameters: + // + // riid - [in] service interface id + // + // ppv - [out] address for returning service interface pointer + // + // Return values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_NOT_INITIALIZED if audio stream hasn't been successfully initialized. + // AUDCLNT_E_NOT_STOPPED if audio stream hasn't been stopped. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // AUDCLNT_E_WRONG_ENDPOINT_TYPE if the service is recognized but not applicable to the audio endpoint type + // E_INVALIDARG if the service is not supported by this audio stream based on how the stream was initialized + // E_NOINTERFACE if the service is not implemented + // + // Remarks: + // + // The services supported via the method include: + // + // IAudioRenderClient + // IAudioCaptureClient + // IAudioClock + // IAudioClockAdjustment + // IAudioSessionControl + // IAudioStreamVolume + // ISimpleAudioVolume + // IChannelAudioVolume + // IAudioAmbisonicsControl + // IAudioClientDuckingControl + // IAudioEffectsManager + // IAudioViewManagerService + // IAcousticEchoCancellationControl + // + HRESULT GetService([in, annotation("_In_")] REFIID riid, [out, iid_is(riid), annotation("_Out_")] void **ppv); + + +} + +//----------------------------------------------------------------------------- +// Description: IAudioClient2 interface +// +[ + object, + uuid(726778CD-F60A-4eda-82DE-E47610CD78AA), + pointer_default(unique), + local +] +interface IAudioClient2 : IAudioClient +{ + //------------------------------------------------------------------------- + // Description: + // + // This method is called to find out whether the endpoint a stream is created on + // is capable of supporting offload + // + // Parameters: + // + // Category - [in] an AUDIO_STREAM_CATEGORY value + // specifies the category for the stream + // pbOffloadCapable - [out] pointer to a boolean value + // TRUE: offload capable + // FALSE: Not offload capable + // + // Return Values: + // + // Returns: HRESULT code + // + // Remarks: + // + HRESULT IsOffloadCapable( [in, annotation("_In_")] AUDIO_STREAM_CATEGORY Category, + [out, annotation("_Out_")] BOOL *pbOffloadCapable); + //------------------------------------------------------------------------- + // Description: + // + // This method is called to set an audio stream's properties. + // + // + // Parameters: + // + // Properties - [in] AudioClientProperties structure specifying the + // stream properties to set. + // + // Return Values: + // + // Returns: S_OK: if the mode setting was done successfully + // AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE: if the endpoint does not support offloading + // otherwise, return appropriate HRESULT failure code + // Remarks: + // + HRESULT SetClientProperties([in, annotation("_In_")] const AudioClientProperties *pProperties); + //------------------------------------------------------------------------- + // Description: + // + // Returns the buffer size limits of the hardware audio engine, in 100-nanosecond units. + // See Remarks section for more details about this value. This is a device method + // which doesn't require prior audio stream initialization. + // + // Parameters: + // + // pFormat - [in] a pointer to the target format being queried for the buffer size limit + // bEventDriven - [in] indicates whether or not the request is for the buffer limits of an + // event driven stream or non-event driven stream. + // phnsMinBufferDuration - [out] Returns pointer to minimum buffer (100-nanosecond units) that's + // required for the underlying audio engine to operate, at the given + // format specified in "pFormat" parameter, without frequent audio glitching. + // phnsMaxBufferDuration - [out] Returns pointer to maximum buffer that the underlying hardware + // audio engine can support for the given format specified in "pFormat" + // parameter 100-nanosecond units. + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_DEVICE_INVALIDATED, if a device was removed. + // + // Remarks: + // + // This method may be called at any time but depending on the resource usage situation, it might not return the same value + HRESULT GetBufferSizeLimits ( [in, annotation("_In_")] const WAVEFORMATEX* pFormat, + [in, annotation("_In_")] BOOL bEventDriven, + [out, annotation("_Out_")] REFERENCE_TIME * phnsMinBufferDuration, + [out, annotation("_Out_")] REFERENCE_TIME * phnsMaxBufferDuration); +} + +cpp_quote("// AudioClient3ActivationParams is an optional activation parameter for IAudioClient3") +cpp_quote("//") +cpp_quote("// IAudioClient3 implementations log various things via ETW tracing") +cpp_quote("// including a \"context\" identifier") +cpp_quote("//") +cpp_quote("// In situations where there are multiple active audio clients,") +cpp_quote("// the \"tracing context\" identifier can ease correlation of which audio client instance belongs to which application context") +cpp_quote("//") +cpp_quote("// Sample app code:") +cpp_quote("// PROPVARIANT var;") +cpp_quote("// PropVariantInit(&var);") +cpp_quote("// auto p = reinterpret_castCoTaskMemAlloc(sizeof(AudioClient3ActivationParams));") +cpp_quote("// if (nullptr == p) { ... }") +cpp_quote("// p->tracingContextId = /* app-specific context identifier */;") +cpp_quote("// var.vt = VT_BLOB;") +cpp_quote("// var.blob.cbSize = sizeof(*p);") +cpp_quote("// var.blob.pBlobData = reinterpret_cast(p);") +cpp_quote("// hr = ActivateAudioInterfaceAsync(device, __uuidof(IAudioClient3), &var, ...);") +cpp_quote("// ...") +cpp_quote("// PropVariantClear(&var);") + +typedef struct AudioClient3ActivationParams +{ + GUID tracingContextId; +} AudioClient3ActivationParams; + +//----------------------------------------------------------------------------- +// Description: IAudioClient3 interface +// +[ + object, + uuid(7ED4EE07-8E67-4CD4-8C1A-2B7A5987AD42), + pointer_default(unique), + local +] +interface IAudioClient3 : IAudioClient2 +{ + //------------------------------------------------------------------------- + // Description: + // + // This method returns the range of periodicities supported by the engine for the specified format. + // The periodicity of the engine is described as the rate at which the engine wakes an event driven audio client + // for transferring audio data to/from the engine. + // The values returned depends on the characteristics of the audio client as specified through a previous call to + // IAudioClient2::SetClientProperties + // + // Parameters: + // + // pFormat - [in] The stream format + // pDefaultPeriodInFrames - [out] The default period with which the engine will wake the client for + // transferring audio samples + // pFundamentalPeriodInFrames - [out] The smallest period with which the engine will wake the client for + // transferring audio samples. + // The client can choose a period that is an integer multiple + // of the fundamental period, subject to the min and max constraints below. + // pMinPeriodInFrames - [out] The lowest period with which the audio engine will wake the client for + // transferring audio samples. + // pMaxPeriodInFrames - [out] The highest period with which the audio engine will wake the client for + // transferring audio samples. + // + HRESULT GetSharedModeEnginePeriod( [in, annotation("_In_")] const WAVEFORMATEX* pFormat, + [out, annotation("_Out_")] UINT32 *pDefaultPeriodInFrames, + [out, annotation("_Out_")] UINT32 *pFundamentalPeriodInFrames, + [out, annotation("_Out_")] UINT32 *pMinPeriodInFrames, + [out, annotation("_Out_")] UINT32 *pMaxPeriodInFrames); + + //------------------------------------------------------------------------- + // Description: + // + // This method returns the current format and period of the audio engine. + // This method may be used by clients that wish to snap to the current period of the audio engine. + // + // Parameters: + // + // ppFormat - [out] The current device format that is being used by the audio engine + // pCurrentPeriodInFrames - [out] The current period of the audio engine + // + // Remarks: + // Note that this is an instantaneous value that may be outdated as soon as this call returns. + // + HRESULT GetCurrentSharedModeEnginePeriod([out, annotation("_Out_"), unique] WAVEFORMATEX ** ppFormat, + [out, annotation("_Out_")] UINT32 *pCurrentPeriodInFrames); + + //------------------------------------------------------------------------- + // Description: + // + // Initializes a shared stream with the specified period. When using this method, the app cannot specify a + // buffer size. The buffer size is computed based on the period requested by the app, and it is the app's responsibility + // to ensure that audio samples are transferred in/out of the buffer in a timely manner. + // + // Parameters: + // + // StreamFlags - [in] See IAudioClient::Initialize + // pFormat - [in] See IAudioClient::Initialize + // PeriodInFrames - [in] Period requested by the client. This value has to be an integer multiple of the + // fundamental period returned in the call to GetSharedModeEnginePeriod. This value has + // to satisfy the minimum and maximum constraints on the period supported by the engine. + // AudioSessionGuid - [in] See IAudioClient::Initialize + // + HRESULT InitializeSharedAudioStream ( [in, annotation("_In_")] DWORD StreamFlags, + [in, annotation("_In_")] UINT32 PeriodInFrames, + [in, annotation("_In_")] const WAVEFORMATEX* pFormat, + [in, annotation("_In_opt_")] LPCGUID AudioSessionGuid ); +} + +//----------------------------------------------------------------------------- +// Description: IAudioRenderClient interface +// +[ + object, + uuid(F294ACFC-3146-4483-A7BF-ADDCA7C260E2), + helpstring("IAudioRenderClient Interface"), + pointer_default(unique), + local +] +interface IAudioRenderClient : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Returns a pointer to the shared render buffer of the requested size for the + // application to write its output data into for rendering to the WAS. + // + // Parameters: + // + // NumFramesRequested - [in] Number of frames requested in the returned data pointer. + // + // ppData - [out] If call was successful, this address contains a pointer to a data buffer of + // requested size, which application can write into. + // + // Return Values: + // + // S_OK if successful, error otherwise. + // AUDCLNT_E_BUFFER_TOO_LARGE, if NumFramesRequested > (GetBufferSize() - GetCurrentPadding()) + // AUDCLNT_E_OUT_OF_ORDER, if called while a previous IAudioRenderClient::GetBuffer() is still + // in effect. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed, + // E_POINTER, if ppData is NULL. + // + // Remarks: + // + // Maximum buffer size to request - The application shouldn't ask for a larger buffer than + // the size currently available in the requested shared buffer region and if this value is + // exceeded GetBuffer() will fail. The total available space at any given time can be + // determined by calling the GetCurrentPadding() method and subtracting that frame count + // size from the shared buffer size (returned in the GetBufferSize() method). + // + // Minimum buffer size to request - As far as determining the minimum amount of data to write + // per-processing pass, it is left up to the application to ensure that it writes enough data + // to prevent glitching. However, the minimum recommended size for a buffer request to prevent + // glitching is: latency + device period. + // + // The client is required to serialize the GetBuffer()/ReleaseBuffer() sequence of calls. For + // instance, consecutive calls to either GetBuffer() or ReleaseBuffer() aren't permitted and + // will fail. + // + // 'pFormat' in the annotation below refers to the WAVEFORMATEX structure used to initialize IAudioClient. + // + HRESULT GetBuffer([in, annotation("_In_")] UINT32 NumFramesRequested, + [out, annotation("_Outptr_result_buffer_(_Inexpressible_(\"NumFramesRequested * pFormat->nBlockAlign\"))")] BYTE ** ppData); + + //------------------------------------------------------------------------- + // Description: + // + // Releases the render data buffer acquired in the GetBuffer call. + // + // Parameters: + // + // NumFramesWritten - [in] Count of application frames written into the render buffer. Must be + // less than or equal to the requested amount. + // + // dwFlags - [in] this value is used to allow the application to flag the return buffer specially, + // if necessary. The following flags are supported on render buffers: + // + // AUDCLNT_BUFFERFLAGS_SILENT - buffer data should be treated as silence. This flag + // frees a render client from needing to explicitly write silence data to the output + // buffer. Note that a loopback client reading capture data from this render buffer + // shouldn't be required to do any silence filling. + // + // Otherwise, the dwFlags value must be set to 0. + // + // + // Return values: + // + // S_OK if successful, error otherwise. + // E_FAIL, if FramesWritten > count requested in previous GetBuffer() call. + // E_INVALIDARG, if invalid flag was used. + // AUDCLNT_E_OUT_OF_ORDER, if previous IAudioRenderClient streaming call wasn't GetBuffer(). + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // + // Remarks: + // Please note: This function is a "finalizer". As such, + // except for invalid argument errors as called out above, + // this function has no valid failure modes. + // + // + HRESULT ReleaseBuffer([in, annotation("_In_")] UINT32 NumFramesWritten, [in, annotation("_In_")] DWORD dwFlags); +} + +//----------------------------------------------------------------------------- +// Description: IAudioCaptureClient interface +// +[ + object, + uuid(C8ADBD64-E71E-48a0-A4DE-185C395CD317), + helpstring("IAudioCaptureClient Interface"), + pointer_default(unique), + local +] +interface IAudioCaptureClient : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // This method is called to retrieve a pointer to the next packet of data in the + // shared capture buffer ready for the application to read. The method returns the + // size of the packet, which the application must read it in its entirety (or not at all). + // + // Parameters: + // + // ppBuffer - [out] address to return a pointer to a data buffer containing *pNumFramesToRead + // frames of captured data for application to read. + // pNumFramesToRead - [out] pointer to the count of frames in the returned data buffer. + // The caller must read them all (or none, if it doesn't have room to read the complete + // buffer). + // pdwFlags - [out] pointer to bit flags providing additional information about the buffer. + // Must be 0 or a combination of the following flags: + // AUDCLNT_BUFFERFLAGS_TIMEVALID - buffer timestamp is valid. + // AUDCLNT_BUFFERFLAGS_TIMEDISCONTINUITY - buffer timestamp is not correlated with + // previous buffer's timestamp, possibly due to a glitch or state transition. + // AUDCLNT_BUFFERFLAGS_DATADISCONTINUITY - buffer data is not correlated with previous + // buffer's timestamp, possibly due to a glitch or state transition. + // pu64DevicePosition - [out, unique] optional pointer to the device position at the moment of + // capture for the data packet captured in ppData. Note this is a device position and not a + // 0-based stream position. + // pu64QPCPosition - [out, unique] optional pointer to a system QueryPerformaceCounter time + // correlated to the device time for the data packet. + // + // Return values: + // + // S_OK if successful, error otherwise. + // AUDCLNT_E_OUT_OF_ORDER, if called while a previous IAudioCaptureClient::GetBuffer() + // is still in effect. + // AUDCLNT_S_BUFFEREMPTY, if called when there's no available capture data. Note that + // this is a success code that the content of pFrameCount will be 0 in this case. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // + // Remarks: + // + // To process capture data, the application should call this method to get the next buffer + // and its size, from which it can proceed to read the data into the application buffer. + // When the application is finished reading the buffer, it fills in the FramesRead value + // and calls the ReleaseBuffer() method to signal that it's done. + // + // The application is required to read the entire buffer or none of it, if it can't read + // the complete buffer. + // + // To process captured data, during each processing pass the application has the option of: + // a) calling the GetBuffer()/ReleaseBuffer() sequence until GetBuffer() returns + // AUDCNT_S_BUFFEREMPTY or + // b) calling GetNextPacketSize() before each GetBuffer()/ReleaseBuffer() sequence until it + // returns 0. + // + // The data in the returned data pointer will be valid until the client calls the + // ReleaseBuffer() method. + // + // The client is required to serialize the GetBuffer()/ReleaseBuffer() sequence of calls. + // For instance, consecutive calls to either GetBuffer() or ReleaseBuffer() aren't permitted + // and will fail. + // + // If an application needs to determine a stream time for a given sample time, it should + // cache the timestamp of the first capture sample and subtract that value from the current + // sample timestamp (taking care to account for the possible arithmetic wraparound). + // + // 'pFormat' in the annotation below refers to the WAVEFORMATEX structure used to initialize IAudioClient. + // + + HRESULT GetBuffer( + [out, annotation("_Outptr_result_buffer_(_Inexpressible_(\"*pNumFramesToRead * pFormat->nBlockAlign\"))")] BYTE **ppData, + [out, annotation("_Out_")] UINT32 *pNumFramesToRead, + [out, annotation("_Out_")] DWORD *pdwFlags, + [out,unique, annotation("_Out_opt_")] UINT64 *pu64DevicePosition, + [out,unique, annotation("_Out_opt_")] UINT64 *pu64QPCPosition); + + //------------------------------------------------------------------------- + // Description: + // + // Call this method when done reading from the capture buffer returned in the GetBuffer() call. + // + // Parameters: + // + // + // NumFramesRead - [in] frames read out of capture buffer. Must be equal to the total number of + // frames in the previously returned buffer or 0. + // + // Return values: + // + // S_OK if successful, error otherwise. + // E_INVALIDARG, if NumFramesRead != [ value in buffer or 0 ]. + // AUDCLNT_E_OUT_OF_ORDER, if previous IAudioCaptureClient streaming call wasn't GetBuffer(). + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // + // Remarks: + // Please note: This function is a "finalizer". As such, + // except for invalid argument errors as called out above, + // this function has no valid failure modes. + // + // + HRESULT ReleaseBuffer( [in, annotation("_In_")] UINT32 NumFramesRead ); + + //------------------------------------------------------------------------- + // Description: + // + // Returns the number of frames in the next capture buffer packet. Capture applications must read in frames on a packet-by-packet basis. + // + // Parameters: + // + // pNumFramesInNextPacket - [out] pointer for returning the number of frames in the next capture + // packet. When all capture packets have been read this value will be 0. + // + // Return values: + // + // S_OK if successful, failure otherwise. + // AUDCLNT_E_DEVICE_INVALIDATED, if WAS device format was changed or device was removed. + // E_POINTER, if pNumFramesInNextPacket is NULL. + // + // Remarks: + // + // This method returns the size of the next capture packet. To determine the size of all + // the captured data currently in the shared buffer (accounting for all current packets) + // use the IAudioClient::GetCurrentPadding() method. + // + HRESULT GetNextPacketSize([out, annotation("_Out_")] UINT32 *pNumFramesInNextPacket); +} + +//------------------------------------------------------------------------- +// Description: IAudioClock characteristics (returned by IAudioClock::GetCharacteristics): +// +// AUDIOCLOCK_CHARACTERISTIC_FIXED_FREQ - The clock exposed by this object runs at a fixed frequency. +// +cpp_quote("#define AUDIOCLOCK_CHARACTERISTIC_FIXED_FREQ 0x00000001") + +//----------------------------------------------------------------------------- +// Description: IAudioClock interface +// +[ + object, + uuid(CD63314F-3FBA-4a1b-812C-EF96358728E7), + pointer_default(unique), + local +] + +interface IAudioClock : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Returns the frequency for the clock + // + // Parameters: + // + // pu64Frequency - [out] If S_OK, returns the clock frequency. + // + // See Also: + // + // IAudioClock::GetPosition + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER, if pu64Frequency is NULL. + // + // Remarks: + // + // Reports the average frequency in units of the clock position. For example, for an IAudioClock + // object that is reporting the clock position in bytes, this method will return the average + // number of bytes per second consumed. See the description below for GetPosition, for how to + // use this value to compute the clock position in seconds. + // + HRESULT GetFrequency([out, annotation("_Out_")] UINT64* pu64Frequency); + + //------------------------------------------------------------------------- + // Description: + // + // Returns the current clock position + // + // Parameters: + // + // pu64Position - [out] If S_OK, returns the clock position in ticks-per-second. To compute a time position from + // this value, the following formula must be used: + // + // Clock Position (in seconds) = *pu64Position / *pu64Frequency + // + // where *pu64Position is the value returned from this GetPosition call + // and *pu64Frequency is the value returned from IAudioClock::GetFrequency (called at the same time). + // + // NOTE: If the clock is fixed frequency (i.e. supports the AUDIOCLOCK_CHARACTERISTIC_FIXED_FREQ flag + // via the GetCharacteristics call), the GetFrequency call need only be done once up front and the returned value + // used for the life of the clock's position computations. + // + // pu64QPCPosition - [out] If S_OK, returns the QueryPerformanceCounter position corresponding to the + // position argument. This value may be NULL if a correlated system position isn't needed. + // + // See Also: + // + // IAudioClock::GetFrequency + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER, if pu64Position is NULL. + // + // Remarks: + // + // The unit of the clock position depends on the outcome of the + // GetFrequency call. For example, if the frequency is average number of + // bytes, then the clock position will be byte count. + // + HRESULT GetPosition([out, annotation("_Out_")] UINT64* pu64Position, [out,unique, annotation("_Out_opt_")] UINT64* pu64QPCPosition ); + + //------------------------------------------------------------------------- + // Description: + // + // Returns the current clock position + // + // Parameters: + // + // pdwCharacteristics - [out] If S_OK, returns a DWORD value containing 0 or any supported clock characteristics flags. + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER, if pdwCharacteristics is NULL. + // + // Remarks: + // + // Returns clock characteristics. Supported characteristics (see AUDIOCLOCK_CHARACTERISTIC flags description for more info): + // + // AUDIOCLOCK_CHARACTERISTIC_FIXED_FREQUENCY - if set, the clock frequency need only be obtained once for use in + // clock position computations. + // + HRESULT GetCharacteristics([out, annotation("_Out_")] DWORD* pdwCharacteristics ); + +}; // IAudioClock + +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") +//----------------------------------------------------------------------------- +// Description: IAudioClock2 interface +// +[ + object, + uuid(6f49ff73-6727-49ac-a008-d98cf5e70048), + pointer_default(unique), + local +] + +interface IAudioClock2 : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Returns the current device position + // + // Parameters: + // + // DevicePosition - [out] If S_OK, returns the device position in frames. + // + // QPCPosition - [out] If S_OK, returns the QueryPerformanceCounter position corresponding to the + // position argument. This value may be NULL if a correlated system position isn't needed. + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER, if pu64Position is NULL. + // + // Remarks: + // + // This method returns a "raw" position, directly from the hardware. It is not capped or adjusted. Special care + // should be taken interpreting the position because the sampling rate of the device endpoint may be different from + // the mix format used by the client + // + HRESULT GetDevicePosition([out, annotation("_Out_")] UINT64* DevicePosition, [out,unique, annotation("_Out_opt_")] UINT64* QPCPosition ); +}; // IAudioClock2 +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") + +[ + uuid(f6e4c0a0-46d9-4fb8-be21-57a3ef2b626c), + pointer_default(unique), + local +] +interface IAudioClockAdjustment : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Sets the current sample rate + // + // Parameters: + // + // flSampleRate - [in] Sets the new sample rate for the audio + // stream. + // + // + // Return values: + // + // S_OK Successful completion. + // E_INVALIDARG, if the IAudioClient wasn't initialized with + // the AUDCLNT_STREAMFLGS_RATEADJUST flag. + // + // Remarks: + // The new sample rate adjustment will take place on the + // processing pass that follows the call to SetSampleRate(). + // + HRESULT SetSampleRate([in, annotation("_In_")] float flSampleRate); +}; // IAudioClockAdjustment + +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") +//----------------------------------------------------------------------------- +// Description: ISimpleAudioVolume interface +// +[ + object, + uuid(87CE5498-68D6-44E5-9215-6DA47EF883D8), + pointer_default(unique), + local +] +interface ISimpleAudioVolume : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Set the master volume of the current audio client. + // + // Parameters: + // + // fLevel - [in] New amplitude for the audio stream. + // EventContext - [in] Context passed to notification routine, GUID_NULL if NULL. + // + // See Also: + // + // ISimpleAudioVolume::GetMasterVolume + // + // Return values: + // + // S_OK Successful completion. + // + // + HRESULT SetMasterVolume([in, annotation("_In_")] float fLevel, [in, unique] LPCGUID EventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Get the master volume of the current audio client. + // + // Parameters: + // + // pfLevel - [out] New amplitude for the audio stream. + // + // See Also: + // + // ISimpleAudioVolume::SetMasterVolume + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT GetMasterVolume([out, annotation("_Out_")] float *pfLevel); + + //------------------------------------------------------------------------- + // Description: + // + // Set the mute state of the current audio client. + // + // Parameters: + // + // bMute - [in] New mute for the audio stream. + // EventContext - [in] Context passed to notification routine, GUID_NULL if NULL. + // + // See Also: + // + // ISimpleAudioVolume::SetMute + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT SetMute([in, annotation("_In_")] const BOOL bMute, [in, unique] LPCGUID EventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Get the mute state of the current audio client. + // + // Parameters: + // + // bMute - [out] Current mute for the audio stream. + // + // See Also: + // + // ISimpleAudioVolume::GetMute + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT GetMute([out, annotation("_Out_")] BOOL *pbMute); + +} + +typedef [v1_enum] enum AUDIO_DUCKING_OPTIONS +{ + AUDIO_DUCKING_OPTIONS_DEFAULT = 0x00, + AUDIO_DUCKING_OPTIONS_DO_NOT_DUCK_OTHER_STREAMS = 0x01 +} AUDIO_DUCKING_OPTIONS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(AUDIO_DUCKING_OPTIONS);") + +//----------------------------------------------------------------------------- +// Description: IAudioClientDuckingControl interface +// Use IAudioClient::GetService to obtain this interface. +// +[ + object, + uuid(C789D381-A28C-4168-B28F-D3A837924DC3), + pointer_default(unique), + local +] +interface IAudioClientDuckingControl : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Set the AUDIO_DUCKING_OPTIONS_DO_NOT_DUCK_OTHER_STREAMS flag to disable any + // ducking that may be caused by the current stream. + // Specifying AUDIO_DUCKING_OPTIONS_DEFAULT lets Windows control if + // this stream should cause any other streams to be ducked. + // + // Return values: + // + // S_OK Successful completion. + // + // + + HRESULT SetDuckingOptionsForCurrentStream([in] AUDIO_DUCKING_OPTIONS options); +} + +//----------------------------------------------------------------------------- +// Description: IAudioViewManagerService interface +// Use IAudioClient::GetService to obtain this interface. +// +[ + object, + uuid(A7A7EF10-1F49-45E0-AD35-612057CC8F74), + pointer_default(unique), + local +] +interface IAudioViewManagerService : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Associate the audio stream to a given HWND + // + // Parameters: + // + // hwnd - [in] HWND to be associated with the audio stream + // + // + HRESULT SetAudioStreamWindow([in] HWND hwnd); + +}; + +typedef [v1_enum] enum AUDIO_EFFECT_STATE +{ + AUDIO_EFFECT_STATE_OFF = 0, + AUDIO_EFFECT_STATE_ON +} AUDIO_EFFECT_STATE; + +typedef struct AUDIO_EFFECT +{ + GUID id; + BOOL canSetState; + AUDIO_EFFECT_STATE state; +} AUDIO_EFFECT; + +[ + object, + uuid(A5DED44F-3C5D-4B2B-BD1E-5DC1EE20BBF6), + pointer_default(unique), + local +] +interface IAudioEffectsChangedNotificationClient : IUnknown +{ + HRESULT OnAudioEffectsChanged(); +}; + +//----------------------------------------------------------------------------- +// Description: IAudioEffectsManager interface +// Use IAudioClient::GetService to obtain this interface. +// +[ + object, + uuid(4460B3AE-4B44-4527-8676-7548A8ACD260), + pointer_default(unique), + local +] +interface IAudioEffectsManager : IUnknown +{ + HRESULT RegisterAudioEffectsChangedNotificationCallback([in] IAudioEffectsChangedNotificationClient *client); + + HRESULT UnregisterAudioEffectsChangedNotificationCallback([in] IAudioEffectsChangedNotificationClient *client); + + HRESULT GetAudioEffects([out, size_is(,*numEffects), annotation("_Outptr_result_buffer_maybenull_(*numEffects)")] AUDIO_EFFECT **effects, [out] UINT32 *numEffects); + + HRESULT SetAudioEffectState([in] GUID effectId, [in] AUDIO_EFFECT_STATE state); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +//----------------------------------------------------------------------------- +// Description: IStreamAudioVolume interface +// +[ +object, +uuid(93014887-242D-4068-8A15-CF5E93B90FE3), +pointer_default(unique), +local +] +interface IAudioStreamVolume : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Get the channel count for the audio stream. + // + // Parameters: + // + // pdwCount - [out] The current channel count. + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT GetChannelCount([out, annotation("_Out_")] UINT32 *pdwCount); + + //------------------------------------------------------------------------- + // Description: + // + // Set the volume for a particular channel on the current stream. + // + // Parameters: + // + // dwIndex - [in] The channel # to set + // fLevel - [in] The volume level for that channel + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT SetChannelVolume([in, annotation("_In_")] UINT32 dwIndex,[in, annotation("_In_")] const float fLevel); + + //------------------------------------------------------------------------- + // Description: + // + // Get the volume for a particular channel on the current stream. + // + // Parameters: + // + // dwIndex - [in] The channel # to get + // pfLevel - [out] The volume level for that channel + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT GetChannelVolume([in, annotation("_In_")] UINT32 dwIndex,[out, annotation("_Out_")] float *pfLevel); + + //------------------------------------------------------------------------- + // Description: + // + // Set the volume for all audio channels. + // + // Parameters: + // + // dwCount - [in] Number of entries in the pfVolumes array. Must + // be the same as IStreamAudioVolume::GetChannelCount + // pfVolumes - [in] Array of volumes. + // + // See Also: + // + // IStreamAudioVolume::GetAllVolumes + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT SetAllVolumes([in, annotation("_In_")] UINT32 dwCount,[in, size_is(dwCount), annotation("_In_reads_(dwCount)")] const float *pfVolumes); + + //------------------------------------------------------------------------- + // Description: + // + // Get the volume for all audio channels. + // + // Parameters: + // + // dwCount - [in] Number of entries in the pfVolumes array. Must + // be the same as IStreamAudioVolume::GetChannelCount + // pfVolumes - [out] Array of volumes filled in with the current channel volumes. + // + // See Also: + // + // IStreamAudioVolume::SetAllVolumes + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT GetAllVolumes([in, annotation("_In_")] UINT32 dwCount,[out, size_is(dwCount), , annotation("_Out_writes_(dwCount)")] float *pfVolumes); +} +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") +//------------------------------------------------------------------------- +// Description: Enumeration of ambisonics type +// +// AMBISONICS_TYPE_FULL3D - Periphonics (Full 3D). +// Only option supported by AMBIX_BASIC format. +// +typedef enum AMBISONICS_TYPE +{ + AMBISONICS_TYPE_FULL3D = 0 + +} AMBISONICS_TYPE; + +//------------------------------------------------------------------------- +// Description: Enumeration of ambisonics channel ordering +// +// AMBISONICS_CHANNEL_ORDERING_ACN - Ambisonics channel number. +// Only option supported by AMBIX_BASIC format. +// +typedef enum AMBISONICS_CHANNEL_ORDERING +{ + AMBISONICS_CHANNEL_ORDERING_ACN = 0 + +} AMBISONICS_CHANNEL_ORDERING; + +//------------------------------------------------------------------------- +// Description: Enumeration of ambisonics normalization +// +// AMBISONICS_NORMALIZATION_SN3D - Schmidt semi-normalized spherical harmonics. +// Only option supported by AMBIX_BASIC format. +// AMBISONICS_NORMALIZATION_N3D - Schmidt normalized spherical harmonics. +// N3D is supported by core decoder. +// +typedef enum AMBISONICS_NORMALIZATION +{ + AMBISONICS_NORMALIZATION_SN3D = 0, + AMBISONICS_NORMALIZATION_N3D + +} AMBISONICS_NORMALIZATION; + +cpp_quote("#define AMBISONICS_PARAM_VERSION_1 1") +cpp_quote("// The AMBISONICS_PARAMS initialization structure should be completely filled out ") +cpp_quote("// and then passed into the SetData API of IAmbisonicsControl Service on IAudioClient") +cpp_quote("// unsigned int(32) size of AMBISONICS_PARAMS") +cpp_quote("// unsigned int(32) version of AMBISONICS_PARAMS struct") +cpp_quote("// unsigned int(32) ambisonics_type is the enumeration of ambisonics types") +cpp_quote("// unsigned int(32) ambisonics_channel_ordering is the enumeration of ambisonics channel ordering") +cpp_quote("// unsigned int(32) ambisonics_normalization is the enumeration of ambisonics normaliztion") +cpp_quote("// unsigned int(32) ambisonics_order") +cpp_quote("// unsigned int(32) ambisonics_num_channels") +cpp_quote("// unsigned int(32) ambisonics_channel_map is a sequence of 32-bit unsigned integers that maps audio channels in a given audio track to ambisonic components,") +cpp_quote("// given the defined ambisonics_channel_ordering. The sequence of channel_map values should match the channel sequence within the given audio track.") + +typedef struct AMBISONICS_PARAMS +{ + UINT32 u32Size; + UINT32 u32Version; + AMBISONICS_TYPE u32Type; + AMBISONICS_CHANNEL_ORDERING u32ChannelOrdering; + AMBISONICS_NORMALIZATION u32Normalization; + UINT32 u32Order; + UINT32 u32NumChannels; + [annotation("__field_ecount(u32NumChannels)")] + [size_is(u32NumChannels)] UINT32 *pu32ChannelMap; +} AMBISONICS_PARAMS; + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +//----------------------------------------------------------------------------- +// Description: IAudioAmbisonicsControl interface +// +[ +object, +uuid(28724C91-DF35-4856-9F76-D6A26413F3DF), +pointer_default(unique), +] +interface IAudioAmbisonicsControl : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Sets the Ambisonics Metadata for the audio stream. + // + // Parameters: + // + // cbAmbisonicsParams - [in] complete size of the buffer point by AMBISONICS_PARAMS. + // pAmbisonicsParams - [in] buffer containing metadata. + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT SetData([in, size_is(cbAmbisonicsParams)] const AMBISONICS_PARAMS *pAmbisonicsParams, [in] UINT32 cbAmbisonicsParams); + + //------------------------------------------------------------------------- + // Description: + // + // Enables/Disables head tracking + // + // Parameters: + // + // bEnableHeadTracking - [in] bool to decide whether the Audio Ambisonics renderer does head tracking. + // Default value is set to TRUE if endpoint like HMD is capable of head tracking otherwise FALSE + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT SetHeadTracking([in] BOOL bEnableHeadTracking); + + //------------------------------------------------------------------------- + // Description: + // + // Gets if head tracking is enabled or not + // + // Parameters: + // + // pbEnableHeadTracking - [out] bool indicating if Audio Ambisonic renderer does head tracking. + // Default value is set to TRUE if endpoint like HMD is capable of head tracking otherwise FALSE + // + // Return values: + // + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT GetHeadTracking([out] BOOL *pbEnableHeadTracking); + + + //------------------------------------------------------------------------- + // Description: + // + // Sets rotation values in Quaternion + // Quaternion represents orientation and rotation of objects in 3D + // These Rotation values corresponds to head rotation/head tracking. + // For e.g. a user panning 360 degree video to 90 degrees on the right will hear the audio as if the user's head is rotated to 90 degrees on the right. + // This method will return error AUDCLNT_E_HEADTRACKING_ENABLED if the SetHeadTracking is set to TRUE (default is TRUE) i.e., the user will have to first call SetHeadTracking(FALSE) before using SetRotation. + // + // Parameters: + // + // X - [in] X component of Quaternion + // Y - [in] Y component of Quaternion + // Z - [in] Z component of Quaternion + // W - [in] W component of Quaternion + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT SetRotation([in] float X, [in] float Y, [in] float Z, [in] float W); +} +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") + +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +//----------------------------------------------------------------------------- +// Description: IChannelAudioVolume interface +// +[ + object, + uuid(1C158861-B533-4B30-B1CF-E853E51C59B8), + pointer_default(unique), + local +] +interface IChannelAudioVolume : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Get the channel count for the audio session associated with + // this client. + // + // Parameters: + // + // pdwCount - [out] The current channel count. + // + // See Also: + // + // IChannelAudioVolume::GetChannelCount + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT GetChannelCount([out, annotation("_Out_")] UINT32 *pdwCount); + + //------------------------------------------------------------------------- + // Description: + // + // Set the volume for a particular channel on the audio session + // associated with this client. + // + // Parameters: + // + // dwIndex - [in] The channel # to set + // fLevel - [in] The volume level for that channel + // EventContext - [in] Context passed to notification routine, GUID_NULL if NULL. + // + // See Also: + // + // IChannelAudioVolume::GetChannelVolume + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT SetChannelVolume([in, annotation("_In_")] UINT32 dwIndex,[in, annotation("_In_")] const float fLevel, [in, unique] LPCGUID EventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Get the volume for a particular channel. + // + // Parameters: + // + // dwIndex - [in] The channel # to get + // pfLevel - [out] The volume level for that channel + // + // See Also: + // + // IChannelAudioVolume::GetChannelVolume + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT GetChannelVolume([in, annotation("_In_")] UINT32 dwIndex,[out, annotation("_Out_")] float *pfLevel); + + //------------------------------------------------------------------------- + // Description: + // + // Set the volume for all audio channels. + // + // Parameters: + // + // dwCount - [in] Number of entries in the pfVolumes array. Must be the same as IChannelAudioVolume::GetChannelCount + // pfVolumes - [in] Array of volumes. + // EventContext - [in] Context passed to notification routine, GUID_NULL if NULL. + // + // See Also: + // + // IChannelAudioVolume::GetAllVolumes + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT SetAllVolumes([in, annotation("_In_")] UINT32 dwCount,[in, size_is(dwCount), annotation("_In_reads_(dwCount)")] const float *pfVolumes, [in, unique] LPCGUID EventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Get the volume for all audio channels. + // + // Parameters: + // + // dwCount - [in] Number of entries in the pfVolumes array. Must be the same as IChannelAudioVolume::GetChannelCount + // pfVolumes - [out] Array of volumes filled in with the current channel volumes. + // + // See Also: + // + // IChannelAudioVolume::SetAllVolumes + // + // Return values: + // + // S_OK Successful completion. + // OTHER Other error. + // + // + HRESULT GetAllVolumes([in, annotation("_In_")] UINT32 dwCount,[out, size_is(dwCount), , annotation("_Out_writes_(dwCount)")] float *pfVolumes); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application and Games Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)") + +cpp_quote("#define AUDCLNT_ERR(n) MAKE_HRESULT(SEVERITY_ERROR, FACILITY_AUDCLNT, n)") +cpp_quote("#define AUDCLNT_SUCCESS(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_AUDCLNT, n)") + +// error codes +cpp_quote("#define AUDCLNT_E_NOT_INITIALIZED AUDCLNT_ERR(0x001)") +cpp_quote("#define AUDCLNT_E_ALREADY_INITIALIZED AUDCLNT_ERR(0x002)") +cpp_quote("#define AUDCLNT_E_WRONG_ENDPOINT_TYPE AUDCLNT_ERR(0x003)") +cpp_quote("#define AUDCLNT_E_DEVICE_INVALIDATED AUDCLNT_ERR(0x004)") +cpp_quote("#define AUDCLNT_E_NOT_STOPPED AUDCLNT_ERR(0x005)") +cpp_quote("#define AUDCLNT_E_BUFFER_TOO_LARGE AUDCLNT_ERR(0x006)") +cpp_quote("#define AUDCLNT_E_OUT_OF_ORDER AUDCLNT_ERR(0x007)") +cpp_quote("#define AUDCLNT_E_UNSUPPORTED_FORMAT AUDCLNT_ERR(0x008)") +cpp_quote("#define AUDCLNT_E_INVALID_SIZE AUDCLNT_ERR(0x009)") +cpp_quote("#define AUDCLNT_E_DEVICE_IN_USE AUDCLNT_ERR(0x00a)") +cpp_quote("#define AUDCLNT_E_BUFFER_OPERATION_PENDING AUDCLNT_ERR(0x00b)") +cpp_quote("#define AUDCLNT_E_THREAD_NOT_REGISTERED AUDCLNT_ERR(0x00c)") +cpp_quote("#define AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED AUDCLNT_ERR(0x00e)") +cpp_quote("#define AUDCLNT_E_ENDPOINT_CREATE_FAILED AUDCLNT_ERR(0x00f)") +cpp_quote("#define AUDCLNT_E_SERVICE_NOT_RUNNING AUDCLNT_ERR(0x010)") +cpp_quote("#define AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED AUDCLNT_ERR(0x011)") +cpp_quote("#define AUDCLNT_E_EXCLUSIVE_MODE_ONLY AUDCLNT_ERR(0x012)") +cpp_quote("#define AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL AUDCLNT_ERR(0x013)") +cpp_quote("#define AUDCLNT_E_EVENTHANDLE_NOT_SET AUDCLNT_ERR(0x014)") +cpp_quote("#define AUDCLNT_E_INCORRECT_BUFFER_SIZE AUDCLNT_ERR(0x015)") +cpp_quote("#define AUDCLNT_E_BUFFER_SIZE_ERROR AUDCLNT_ERR(0x016)") +cpp_quote("#define AUDCLNT_E_CPUUSAGE_EXCEEDED AUDCLNT_ERR(0x017)") +cpp_quote("#define AUDCLNT_E_BUFFER_ERROR AUDCLNT_ERR(0x018)") +cpp_quote("#define AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED AUDCLNT_ERR(0x019)") +cpp_quote("#define AUDCLNT_E_INVALID_DEVICE_PERIOD AUDCLNT_ERR(0x020)") +cpp_quote("#define AUDCLNT_E_INVALID_STREAM_FLAG AUDCLNT_ERR(0x021)") +cpp_quote("#define AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE AUDCLNT_ERR(0x022)") +cpp_quote("#define AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES AUDCLNT_ERR(0x023)") +cpp_quote("#define AUDCLNT_E_OFFLOAD_MODE_ONLY AUDCLNT_ERR(0x024)") +cpp_quote("#define AUDCLNT_E_NONOFFLOAD_MODE_ONLY AUDCLNT_ERR(0x025)") +cpp_quote("#define AUDCLNT_E_RESOURCES_INVALIDATED AUDCLNT_ERR(0x026)") +cpp_quote("#define AUDCLNT_E_RAW_MODE_UNSUPPORTED AUDCLNT_ERR(0x027)") +cpp_quote("#define AUDCLNT_E_ENGINE_PERIODICITY_LOCKED AUDCLNT_ERR(0x028)") +cpp_quote("#define AUDCLNT_E_ENGINE_FORMAT_LOCKED AUDCLNT_ERR(0x029)") +cpp_quote("#define AUDCLNT_E_HEADTRACKING_ENABLED AUDCLNT_ERR(0x030)") +cpp_quote("#define AUDCLNT_E_HEADTRACKING_UNSUPPORTED AUDCLNT_ERR(0x040)") +cpp_quote("#define AUDCLNT_E_EFFECT_NOT_AVAILABLE AUDCLNT_ERR(0x041)") +cpp_quote("#define AUDCLNT_E_EFFECT_STATE_READ_ONLY AUDCLNT_ERR(0x042)") +cpp_quote("#define AUDCLNT_E_POST_VOLUME_LOOPBACK_UNSUPPORTED AUDCLNT_ERR(0x043)") +cpp_quote("#define AUDCLNT_S_BUFFER_EMPTY AUDCLNT_SUCCESS(0x001)") +cpp_quote("#define AUDCLNT_S_THREAD_ALREADY_REGISTERED AUDCLNT_SUCCESS(0x002)") +cpp_quote("#define AUDCLNT_S_POSITION_STALLED AUDCLNT_SUCCESS(0x003)") + +// NOTE! error codes of 0x100 and above a reserved for SpatialAudioClient. AUDCLNT_ERR(0x100) to AUDCLNT_ERR(0x1FF) +// NOTE! error codes of 0x200 and above a reserved for SpatialAudioMetadataClient. AUDCLNT_ERR(0x200) to AUDCLNT_ERR(0x2FF) + +//----------------------------------------------------------------------------- +// Description: IAcousticEchoCancellationControl interface +// Use IAudioClient::GetService to obtain this interface. +// +[ + object, + uuid(f4ae25b5-aaa3-437d-b6b3-dbbe2d0e9549), + pointer_default(unique), + local +] +interface IAcousticEchoCancellationControl : IUnknown +{ + HRESULT SetEchoCancellationRenderEndpoint(LPCWSTR endpointId); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AuthZ.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AuthZ.h new file mode 100644 index 0000000000000000000000000000000000000000..dad771d0a5e07226229b7ebaf48a8897e589ef35 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AuthZ.h @@ -0,0 +1,1103 @@ +/*++ + +Copyright (c) 2000 Microsoft Corporation + +Module Name: + + authz.h + +Abstract: + + This module contains the authorization framework APIs and any public data + structures needed to call these APIs. + +Revision History: + + Created - March 2000 + +--*/ + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4001) /* nonstandard extension : single line comment */ +#endif + +#ifndef __AUTHZ_H__ +#define __AUTHZ_H__ +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#ifdef __cplusplus +extern "C" { +#endif + +#if !defined(_AUTHZ_) +#define AUTHZAPI DECLSPEC_IMPORT +#else +#define AUTHZAPI +#endif + +#ifndef MIDL_PASS +#include +#endif +#include + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) // padding added after data member +#endif + +// +// Flags which may be used at the time of client context creation using a sid. +// + +#define AUTHZ_SKIP_TOKEN_GROUPS 0x2 +#define AUTHZ_REQUIRE_S4U_LOGON 0x4 +#define AUTHZ_COMPUTE_PRIVILEGES 0x8 + +DECLARE_HANDLE(AUTHZ_ACCESS_CHECK_RESULTS_HANDLE); +DECLARE_HANDLE(AUTHZ_CLIENT_CONTEXT_HANDLE); +DECLARE_HANDLE(AUTHZ_RESOURCE_MANAGER_HANDLE); +DECLARE_HANDLE(AUTHZ_AUDIT_EVENT_HANDLE); +DECLARE_HANDLE(AUTHZ_AUDIT_EVENT_TYPE_HANDLE); +DECLARE_HANDLE(AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE); + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) +DECLARE_HANDLE(AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE); +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +typedef AUTHZ_ACCESS_CHECK_RESULTS_HANDLE *PAUTHZ_ACCESS_CHECK_RESULTS_HANDLE; +typedef AUTHZ_CLIENT_CONTEXT_HANDLE *PAUTHZ_CLIENT_CONTEXT_HANDLE; +typedef AUTHZ_RESOURCE_MANAGER_HANDLE *PAUTHZ_RESOURCE_MANAGER_HANDLE; +typedef AUTHZ_AUDIT_EVENT_HANDLE *PAUTHZ_AUDIT_EVENT_HANDLE; +typedef AUTHZ_AUDIT_EVENT_TYPE_HANDLE *PAUTHZ_AUDIT_EVENT_TYPE_HANDLE; +typedef AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE *PAUTHZ_SECURITY_EVENT_PROVIDER_HANDLE; + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) +typedef AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE *PAUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE; +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +// +// Structure defining the access check request. +// + +typedef struct _AUTHZ_ACCESS_REQUEST +{ + ACCESS_MASK DesiredAccess; + + // + // To replace the principal self sid in the acl. + // + + PSID PrincipalSelfSid; + + // + // Object type list represented by an array of (level, guid) pair and the + // number of elements in the array. This is a post-fix representation of the + // object tree. + // These fields should be set to NULL and 0 respectively except when per + // property access is desired. + // + + POBJECT_TYPE_LIST ObjectTypeList; + DWORD ObjectTypeListLength; + + // + // To support completely business rules based access. This will be passed as + // input to the callback access check function. Access check algorithm does + // not interpret these. + // + + PVOID OptionalArguments; + +} AUTHZ_ACCESS_REQUEST, *PAUTHZ_ACCESS_REQUEST; + +// +// Structure to return the results of the access check call. +// + +typedef struct _AUTHZ_ACCESS_REPLY +{ + // + // The length of the array representing the object type list structure. If + // no object type is used to represent the object, then the length must be + // set to 1. + // + // Note: This parameter must be filled! + // + + DWORD ResultListLength; + + // + // Array of granted access masks. This memory is allocated by the RM. Access + // check routines just fill in the values. + // + + _Field_size_(ResultListLength) PACCESS_MASK GrantedAccessMask; + + // + // Array of SACL evaluation results. This memory is allocated by the RM, if SACL + // evaluation results are desired. Access check routines just fill in the values. + // Sacl evaluation will only be performed if auditing is requested. + // + +#define AUTHZ_GENERATE_SUCCESS_AUDIT 0x1 +#define AUTHZ_GENERATE_FAILURE_AUDIT 0x2 + + _Field_size_opt_(ResultListLength) PDWORD SaclEvaluationResults; + + // + // Array of results for each element of the array. This memory is allocated + // by the RM. Access check routines just fill in the values. + // + + _Field_size_(ResultListLength) PDWORD Error; + +} AUTHZ_ACCESS_REPLY, *PAUTHZ_ACCESS_REPLY; + +// +// Typedefs for callback functions to be provided by the resource manager. +// + +// +// Callback access check function takes in +// AuthzClientContext - a client context +// pAce - pointer to a callback ace +// pArgs - Optional arguments that were passed to AuthzAccessCheck thru +// AuthzAccessRequest->OptionalArguments are passed back here. +// pbAceApplicable - The resource manager must supply whether the ace should +// be used in the computation of access evaluation +// +// Returns +// TRUE if the API succeeded. +// FALSE on any intermediate errors (like failed memory allocation) +// In case of failure, the caller must use SetLastError(ErrorValue). +// + +typedef BOOL (CALLBACK *PFN_AUTHZ_DYNAMIC_ACCESS_CHECK) ( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_ PACE_HEADER pAce, + _In_opt_ PVOID pArgs, + _Inout_ PBOOL pbAceApplicable + ); + +// +// Callback compute dynamic groups function takes in +// AuthzClientContext - a client context +// pArgs - Optional arguments that supplied to AuthzInitializeClientContext* +// thru DynamicGroupArgs are passed back here.. +// pSidAttrArray - To allocate and return an array of (sids, attribute) +// pairs to be added to the normal part of the client context. +// pSidCount - Number of elements in pSidAttrArray +// pRestrictedSidAttrArray - To allocate and return an array of (sids, attribute) +// pairs to be added to the restricted part of the client context. +// pRestrictedSidCount - Number of elements in pRestrictedSidAttrArray +// +// Note: +// Memory returned thru both these array will be freed by the callback +// free function defined by the resource manager. +// +// Returns +// TRUE if the API succeeded. +// FALSE on any intermediate errors (like failed memory allocation) +// In case of failure, the caller must use SetLastError(ErrorValue). +// + +typedef BOOL (CALLBACK *PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS) ( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_ PVOID Args, + _Out_ PSID_AND_ATTRIBUTES *pSidAttrArray, + _Out_ PDWORD pSidCount, + _Out_ PSID_AND_ATTRIBUTES *pRestrictedSidAttrArray, + _Out_ PDWORD pRestrictedSidCount + ); + +// +// Callback free function takes in +// pSidAttrArray - To be freed. This has been allocated by the compute +// dynamic groups function. +// + +typedef VOID (CALLBACK *PFN_AUTHZ_FREE_DYNAMIC_GROUPS) ( + _In_ PSID_AND_ATTRIBUTES pSidAttrArray + ); + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) +// +// Callback central access policy retrieval function takes in +// AuthzClientContext - a client context +// capid - CAPID of the central access policy to retrieve. +// pArgs - Optional arguments that were passed to AuthzAccessCheck through +// AuthzAccessRequest->OptionalArguments are passed back here. +// pCentralAccessPolicyApplicable - The resource manager must indicate +// whether a central access policy should be used in access evaluation. +// ppCentralAccessPolicy - Pointer to the CAP to be used in the +// computation of access evaluation. If NULL, the default CAP is applied. +// +// Returns +// TRUE if the API succeeded. +// FALSE on any intermediate errors (like failed memory allocation) +// In case of failure, the caller must use SetLastError(ErrorValue). +// + +typedef BOOL (CALLBACK *PFN_AUTHZ_GET_CENTRAL_ACCESS_POLICY) ( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_ PSID capid, + _In_opt_ PVOID pArgs, + _Out_ PBOOL pCentralAccessPolicyApplicable, + _Out_ PVOID *ppCentralAccessPolicy + ); + +// +// Callback central access policy free function takes in +// pCentralAccessPolicy - To be freed. This memory has been allocated by +// the central access policy retrieval callback function. +// + +typedef VOID (CALLBACK *PFN_AUTHZ_FREE_CENTRAL_ACCESS_POLICY) ( + _In_ PVOID pCentralAccessPolicy + ); +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +// +// BEGIN: *** (Subject) Security attributes *** +// +// WARNING!!!: +// These #defines and data structures exactly mirror +// the TOKEN_XXX definitions in ntseapi.w. Keep them +// in sync. +// + + +// +// Security attribute data types ... +// + +#define AUTHZ_SECURITY_ATTRIBUTE_TYPE_INVALID 0x00 + +#define AUTHZ_SECURITY_ATTRIBUTE_TYPE_INT64 0x01 +#define AUTHZ_SECURITY_ATTRIBUTE_TYPE_UINT64 0x02 + +// +// Case insensitive attribute value string by default. +// Unless the flag AUTHZ_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE +// is set indicating otherwise. +// + +#define AUTHZ_SECURITY_ATTRIBUTE_TYPE_STRING 0x03 + +// +// Fully-qualified binary name. +// + +typedef struct _AUTHZ_SECURITY_ATTRIBUTE_FQBN_VALUE { + ULONG64 Version; + PWSTR pName; +} AUTHZ_SECURITY_ATTRIBUTE_FQBN_VALUE, *PAUTHZ_SECURITY_ATTRIBUTE_FQBN_VALUE; + +#define AUTHZ_SECURITY_ATTRIBUTE_TYPE_FQBN 0x04 + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) +#define AUTHZ_SECURITY_ATTRIBUTE_TYPE_SID 0x05 + +#define AUTHZ_SECURITY_ATTRIBUTE_TYPE_BOOLEAN 0x06 +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +// +// This is the 'catch all' type. The attribute manipulation +// code really doesn't care about the actual format of the +// value. Value subtypes are defined only for this type. +// Value subtypes permit easy addition of new subtypes +// without having to change the attribute manipulation +// (and WOW64 thunking!) code. +// + +typedef struct _AUTHZ_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE { + PVOID pValue; // Pointer is BYTE aligned. + ULONG ValueLength; // In bytes +} AUTHZ_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE, + *PAUTHZ_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE; + +#define AUTHZ_SECURITY_ATTRIBUTE_TYPE_OCTET_STRING 0x10 + +// +// Attribute operations that can be specified for a 'set' API: +// + + +typedef enum { + + // + // No-op + // + + AUTHZ_SECURITY_ATTRIBUTE_OPERATION_NONE = 0, + + // + // Delete all existing security attributes and their values in + // the NT token and replace it with the specified attributes/values. + // If attributes to replace with are not specified, all existing + // attributes and values are deleted. + // + // This operation can be specified at most once and must be the + // only operation specified. + // + + AUTHZ_SECURITY_ATTRIBUTE_OPERATION_REPLACE_ALL, + + // + // Add a new attribute or a new value to an existing attribute. + // If the value specified for any attribute already exists for + // that attribute, the call fails. + // + + AUTHZ_SECURITY_ATTRIBUTE_OPERATION_ADD, + + // + // Delete the specified value(s) of the specified attribute(s). + // If the last value is deleted from an attribute, the attribute + // itself is removed. If no matching attribute name was found, no + // modifications are done and the call fails. If no value is specified + // for the attribute, the attribute itself will be deleted. + // + + AUTHZ_SECURITY_ATTRIBUTE_OPERATION_DELETE, + + // + // The value(s) of the specified security attribute(s) completely + // replace(s) the existing value(s) of the attribute(s). If the + // attribute does not already exist, it is added. When no value + // is specified, the attribute is deleted, if it exists; otherwise, + // the operation is simply ignored and no failure is reported. + // + + AUTHZ_SECURITY_ATTRIBUTE_OPERATION_REPLACE +} AUTHZ_SECURITY_ATTRIBUTE_OPERATION, *PAUTHZ_SECURITY_ATTRIBUTE_OPERATION; + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) +// +// SID operations that can be specified for a 'set' API: +// + +typedef enum { + + // + // No-op + // + + AUTHZ_SID_OPERATION_NONE = 0, + + // + // Delete all existing SIDs in the NT token and replace them with + // the specified SIDs. + // If the SIDs to replace with are not specified, all existing + // SIDs are deleted. + // + // This operation can be specified at most once and must be the + // only operation specified. + // + + AUTHZ_SID_OPERATION_REPLACE_ALL, + + // + // Add a new SID. + // If the SID specified already exists, the call fails. + // + + AUTHZ_SID_OPERATION_ADD, + + // + // Delete the specified SID(s). + // If no matching SID was found, no modifications are done and + // the call fails. + // + + AUTHZ_SID_OPERATION_DELETE, + + // + // The specified SID(s) completely replace(s) the existing SID(s). + // If the SID does not already exist, it is added. + // + + AUTHZ_SID_OPERATION_REPLACE +} AUTHZ_SID_OPERATION, *PAUTHZ_SID_OPERATION; +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +// +// An individual security attribute. +// + +typedef struct _AUTHZ_SECURITY_ATTRIBUTE_V1 { + + // + // Name of the attribute. + // Case insensitive Windows Unicode string. + // + + PWSTR pName; + + // + // Data type of attribute. + // + + USHORT ValueType; + + // + // Pass 0 in a set operation and check for 0 in + // a get operation. + // + + USHORT Reserved; + +// +// Attribute must not be inherited across process spawns. +// + +#define AUTHZ_SECURITY_ATTRIBUTE_NON_INHERITABLE 0x0001 + + +// +// Attribute value is compared in a case sensitive way. It is valid with string value +// or composite type containing string value. For other types of value, this flag +// will be ignored. Currently, it is valid with the two types: +// AUTHZ_SECURITY_ATTRIBUTE_TYPE_STRING and AUTHZ_SECURITY_ATTRIBUTE_TYPE_FQBN. +// +#define AUTHZ_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE 0x0002 + +#define AUTHZ_SECURITY_ATTRIBUTE_VALID_FLAGS ( \ + AUTHZ_SECURITY_ATTRIBUTE_NON_INHERITABLE | \ + AUTHZ_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE \ + ) + + ULONG Flags; + + // + // Number of values. + // + + ULONG ValueCount; + + // + // The actual value itself. + // + union { + PLONG64 pInt64; + PULONG64 pUint64; + PWSTR *ppString; + PAUTHZ_SECURITY_ATTRIBUTE_FQBN_VALUE pFqbn; + PAUTHZ_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE pOctetString; + } Values; +} AUTHZ_SECURITY_ATTRIBUTE_V1, *PAUTHZ_SECURITY_ATTRIBUTE_V1; + + +// +// Set of security attributes. +// + +typedef struct _AUTHZ_SECURITY_ATTRIBUTES_INFORMATION { + + // + // Versioning. The interpretation of the pointers in the + // Attribute field below is dependent on the version field. + // + // Get operations return the version while the set operation + // MUST specify the version of the data structure passed in. + // + +#define AUTHZ_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1 1 + +#define AUTHZ_SECURITY_ATTRIBUTES_INFORMATION_VERSION \ + AUTHZ_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1 + + // + // MUST BE first. + // + + USHORT Version; + + // + // Pass 0 in set operations and ignore on get operations. + // + + USHORT Reserved; + + ULONG AttributeCount; + + union { + PAUTHZ_SECURITY_ATTRIBUTE_V1 pAttributeV1; + } Attribute; +} AUTHZ_SECURITY_ATTRIBUTES_INFORMATION, + *PAUTHZ_SECURITY_ATTRIBUTES_INFORMATION; + + + + +// +// Valid flags for AuthzAccessCheck +// + +#define AUTHZ_ACCESS_CHECK_NO_DEEP_COPY_SD 0x00000001 + +AUTHZAPI +BOOL +WINAPI +AuthzAccessCheck( + _In_ DWORD Flags, + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_ PAUTHZ_ACCESS_REQUEST pRequest, + _In_opt_ AUTHZ_AUDIT_EVENT_HANDLE hAuditEvent, + _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor, + _In_reads_opt_(OptionalSecurityDescriptorCount) + PSECURITY_DESCRIPTOR *OptionalSecurityDescriptorArray, + _In_ DWORD OptionalSecurityDescriptorCount, + _Inout_ PAUTHZ_ACCESS_REPLY pReply, + _Out_opt_ PAUTHZ_ACCESS_CHECK_RESULTS_HANDLE phAccessCheckResults + ); + +AUTHZAPI +BOOL +WINAPI +AuthzCachedAccessCheck( + _In_ DWORD Flags, + _In_ AUTHZ_ACCESS_CHECK_RESULTS_HANDLE hAccessCheckResults, + _In_ PAUTHZ_ACCESS_REQUEST pRequest, + _In_opt_ AUTHZ_AUDIT_EVENT_HANDLE hAuditEvent, + _Inout_ PAUTHZ_ACCESS_REPLY pReply + ); + +AUTHZAPI +BOOL +WINAPI +AuthzOpenObjectAudit( + _In_ DWORD Flags, + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_ PAUTHZ_ACCESS_REQUEST pRequest, + _In_ AUTHZ_AUDIT_EVENT_HANDLE hAuditEvent, + _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor, + _In_reads_opt_(OptionalSecurityDescriptorCount) + PSECURITY_DESCRIPTOR *OptionalSecurityDescriptorArray OPTIONAL, + _In_ DWORD OptionalSecurityDescriptorCount, + _In_ PAUTHZ_ACCESS_REPLY pReply + ); + +AUTHZAPI +BOOL +WINAPI +AuthzFreeHandle( + _Inout_ AUTHZ_ACCESS_CHECK_RESULTS_HANDLE hAccessCheckResults + ); + +// +// Flags for AuthzInitializeResourceManager and AuthzInitializeResourceManagerEx +// + +#define AUTHZ_RM_FLAG_NO_AUDIT 0x1 +#define AUTHZ_RM_FLAG_INITIALIZE_UNDER_IMPERSONATION 0x2 +#define AUTHZ_RM_FLAG_NO_CENTRAL_ACCESS_POLICIES 0x4 +#define AUTHZ_VALID_RM_INIT_FLAGS (AUTHZ_RM_FLAG_NO_AUDIT | \ + AUTHZ_RM_FLAG_INITIALIZE_UNDER_IMPERSONATION | \ + AUTHZ_RM_FLAG_NO_CENTRAL_ACCESS_POLICIES) + +AUTHZAPI +BOOL +WINAPI +AuthzInitializeResourceManager( + _In_ DWORD Flags, + _In_opt_ PFN_AUTHZ_DYNAMIC_ACCESS_CHECK pfnDynamicAccessCheck, + _In_opt_ PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS pfnComputeDynamicGroups, + _In_opt_ PFN_AUTHZ_FREE_DYNAMIC_GROUPS pfnFreeDynamicGroups, + _In_opt_ PCWSTR szResourceManagerName, + _Out_ PAUTHZ_RESOURCE_MANAGER_HANDLE phAuthzResourceManager + ); + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +#define AUTHZ_RPC_INIT_INFO_CLIENT_VERSION_V1 1 + +typedef struct _AUTHZ_RPC_INIT_INFO_CLIENT +{ + USHORT version; + PWSTR ObjectUuid; + PWSTR ProtSeq; + PWSTR NetworkAddr; + PWSTR Endpoint; + PWSTR Options; + PWSTR ServerSpn; +} AUTHZ_RPC_INIT_INFO_CLIENT, *PAUTHZ_RPC_INIT_INFO_CLIENT; + +// +// Versioning enables future updates of authz resource manager initialization +// info structure. +// +#define AUTHZ_INIT_INFO_VERSION_V1 1 + +// +// Authz resource manager initialization info structure. +// +// version - authz resource manager initialization info structure version. +// +// szResourceManagerName - the name of the resource manager. +// +// pfnDynamicAccessCheck - Pointer to the RM supplied access check function to be +// called when a callback ACE is encountered by the access check algorithm. +// +// pfnComputeDynamicGroups - Pointer to the RM supplied function to compute +// groups to be added to the client context at the time of its creation. +// +// pfnFreeDynamicGroups - Pointer to the function to free the memory allocated +// by the pfnComputeDynamicGroups function. +// +// pfnGetCentralAccessPolicy - Pointer to the function to be called when +// a CAPID ACE is encountered by the access check algorithm. +// +// pfnFreeCentralAccessPolicy - Pointer to the function to free the memory allocated +// by the pfnGetCentralAccessPolicy function. +// + +typedef struct _AUTHZ_INIT_INFO +{ + USHORT version; + PCWSTR szResourceManagerName; + PFN_AUTHZ_DYNAMIC_ACCESS_CHECK pfnDynamicAccessCheck; + PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS pfnComputeDynamicGroups; + PFN_AUTHZ_FREE_DYNAMIC_GROUPS pfnFreeDynamicGroups; + PFN_AUTHZ_GET_CENTRAL_ACCESS_POLICY pfnGetCentralAccessPolicy; + PFN_AUTHZ_FREE_CENTRAL_ACCESS_POLICY pfnFreeCentralAccessPolicy; +} AUTHZ_INIT_INFO, *PAUTHZ_INIT_INFO; + +AUTHZAPI +BOOL +WINAPI +AuthzInitializeResourceManagerEx( + _In_opt_ DWORD Flags, + _In_opt_ PAUTHZ_INIT_INFO pAuthzInitInfo, + _Out_ PAUTHZ_RESOURCE_MANAGER_HANDLE phAuthzResourceManager + ); + + + +AUTHZAPI +BOOL +WINAPI +AuthzInitializeRemoteResourceManager( + _In_ PAUTHZ_RPC_INIT_INFO_CLIENT pRpcInitInfo, + _Out_ PAUTHZ_RESOURCE_MANAGER_HANDLE phAuthzResourceManager + ); + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +AUTHZAPI +BOOL +WINAPI +AuthzFreeResourceManager( + _In_ AUTHZ_RESOURCE_MANAGER_HANDLE hAuthzResourceManager + ); + +AUTHZAPI +BOOL +WINAPI +AuthzInitializeContextFromToken( + _In_ DWORD Flags, + _In_ HANDLE TokenHandle, + _In_ AUTHZ_RESOURCE_MANAGER_HANDLE hAuthzResourceManager, + _In_opt_ PLARGE_INTEGER pExpirationTime, + _In_ LUID Identifier, + _In_opt_ PVOID DynamicGroupArgs, + _Out_ PAUTHZ_CLIENT_CONTEXT_HANDLE phAuthzClientContext + ); + +AUTHZAPI +BOOL +WINAPI +AuthzInitializeContextFromSid( + _In_ DWORD Flags, + _In_ PSID UserSid, + _In_ AUTHZ_RESOURCE_MANAGER_HANDLE hAuthzResourceManager, + _In_opt_ PLARGE_INTEGER pExpirationTime, + _In_ LUID Identifier, + _In_opt_ PVOID DynamicGroupArgs, + _Out_ PAUTHZ_CLIENT_CONTEXT_HANDLE phAuthzClientContext + ); + +AUTHZAPI +BOOL +WINAPI +AuthzInitializeContextFromAuthzContext( + _In_ DWORD Flags, + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_opt_ PLARGE_INTEGER pExpirationTime, + _In_ LUID Identifier, + _In_ PVOID DynamicGroupArgs, + _Out_ PAUTHZ_CLIENT_CONTEXT_HANDLE phNewAuthzClientContext + ); + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) + + +AUTHZAPI +BOOL +WINAPI +AuthzInitializeCompoundContext( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE UserContext, + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE DeviceContext, + _Out_ PAUTHZ_CLIENT_CONTEXT_HANDLE phCompoundContext + ); + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +AUTHZAPI +BOOL +WINAPI +AuthzAddSidsToContext( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_opt_ PSID_AND_ATTRIBUTES Sids, + _In_ DWORD SidCount, + _In_opt_ PSID_AND_ATTRIBUTES RestrictedSids, + _In_ DWORD RestrictedSidCount, + _Out_ PAUTHZ_CLIENT_CONTEXT_HANDLE phNewAuthzClientContext + ); + +// +// API to modify security attributes in AUTHZ client context. +// + +AUTHZAPI +BOOL +WINAPI +AuthzModifySecurityAttributes( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_ + _When_(pAttributes != NULL && *pOperations != AUTHZ_SECURITY_ATTRIBUTE_OPERATION_REPLACE_ALL, _In_reads_(pAttributes->AttributeCount)) + PAUTHZ_SECURITY_ATTRIBUTE_OPERATION pOperations, + _In_opt_ PAUTHZ_SECURITY_ATTRIBUTES_INFORMATION pAttributes + ); + +// +// Enumeration type to be used to specify the type of information to be +// retrieved from an existing AuthzClientContext. +// + +typedef enum _AUTHZ_CONTEXT_INFORMATION_CLASS +{ + AuthzContextInfoUserSid = 1, + AuthzContextInfoGroupsSids, + AuthzContextInfoRestrictedSids, + AuthzContextInfoPrivileges, + AuthzContextInfoExpirationTime, + AuthzContextInfoServerContext, + AuthzContextInfoIdentifier, + AuthzContextInfoSource, + AuthzContextInfoAll, + AuthzContextInfoAuthenticationId, + AuthzContextInfoSecurityAttributes, + AuthzContextInfoDeviceSids, + AuthzContextInfoUserClaims, + AuthzContextInfoDeviceClaims, + AuthzContextInfoAppContainerSid, + AuthzContextInfoCapabilitySids +} AUTHZ_CONTEXT_INFORMATION_CLASS; + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) +AUTHZAPI +BOOL +WINAPI +AuthzModifyClaims( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_ AUTHZ_CONTEXT_INFORMATION_CLASS ClaimClass, + _In_ + _When_(pClaims != NULL && *pClaimOperations != AUTHZ_SECURITY_ATTRIBUTE_OPERATION_REPLACE_ALL, _In_reads_(pClaims->AttributeCount)) + PAUTHZ_SECURITY_ATTRIBUTE_OPERATION pClaimOperations, + _In_opt_ PAUTHZ_SECURITY_ATTRIBUTES_INFORMATION pClaims + ); + +AUTHZAPI +BOOL +WINAPI +AuthzModifySids( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_ AUTHZ_CONTEXT_INFORMATION_CLASS SidClass, + _In_ + _When_(pSids != NULL && *pSidOperations != AUTHZ_SID_OPERATION_REPLACE_ALL, _In_reads_(pSids->GroupCount)) + PAUTHZ_SID_OPERATION pSidOperations, + _In_opt_ PTOKEN_GROUPS pSids + ); + +AUTHZAPI +BOOL +WINAPI +AuthzSetAppContainerInformation( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_ PSID pAppContainerSid, + _In_ DWORD CapabilityCount, + _In_reads_opt_(CapabilityCount) + PSID_AND_ATTRIBUTES pCapabilitySids + ); + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +AUTHZAPI +BOOL +WINAPI +AuthzGetInformationFromContext( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, + _In_ AUTHZ_CONTEXT_INFORMATION_CLASS InfoClass, + _In_ DWORD BufferSize, + _Out_ PDWORD pSizeRequired, + _Out_ PVOID Buffer +); + +AUTHZAPI +BOOL +WINAPI +AuthzFreeContext( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext + ); + + +// +// Valid flags that may be used in AuthzInitializeObjectAccessAuditEvent(). +// + +#define AUTHZ_NO_SUCCESS_AUDIT 0x00000001 +#define AUTHZ_NO_FAILURE_AUDIT 0x00000002 +#define AUTHZ_NO_ALLOC_STRINGS 0x00000004 + +#define AUTHZ_WPD_CATEGORY_FLAG 0x00000010 + +#define AUTHZ_VALID_OBJECT_ACCESS_AUDIT_FLAGS (AUTHZ_NO_SUCCESS_AUDIT | \ + AUTHZ_NO_FAILURE_AUDIT | \ + AUTHZ_NO_ALLOC_STRINGS | \ + AUTHZ_WPD_CATEGORY_FLAG) + +AUTHZAPI +BOOL +WINAPI +AuthzInitializeObjectAccessAuditEvent( + _In_ DWORD Flags, + _In_ AUTHZ_AUDIT_EVENT_TYPE_HANDLE hAuditEventType, + _In_ PWSTR szOperationType, + _In_ PWSTR szObjectType, + _In_ PWSTR szObjectName, + _In_ PWSTR szAdditionalInfo, + _Out_ PAUTHZ_AUDIT_EVENT_HANDLE phAuditEvent, + _In_ DWORD dwAdditionalParameterCount, + ... + ); + +AUTHZAPI +BOOL +WINAPI +AuthzInitializeObjectAccessAuditEvent2( + _In_ DWORD Flags, + _In_ AUTHZ_AUDIT_EVENT_TYPE_HANDLE hAuditEventType, + _In_ PWSTR szOperationType, + _In_ PWSTR szObjectType, + _In_ PWSTR szObjectName, + _In_ PWSTR szAdditionalInfo, + _In_ PWSTR szAdditionalInfo2, + _Out_ PAUTHZ_AUDIT_EVENT_HANDLE phAuditEvent, + _In_ DWORD dwAdditionalParameterCount, + ... + ); + +// +// Enumeration type to be used to specify the type of information to be +// retrieved from an existing AUTHZ_AUDIT_EVENT_HANDLE. +// + +typedef enum _AUTHZ_AUDIT_EVENT_INFORMATION_CLASS +{ + AuthzAuditEventInfoFlags = 1, + AuthzAuditEventInfoOperationType, + AuthzAuditEventInfoObjectType, + AuthzAuditEventInfoObjectName, + AuthzAuditEventInfoAdditionalInfo, +} AUTHZ_AUDIT_EVENT_INFORMATION_CLASS; + +AUTHZAPI +BOOL +WINAPI +AuthzFreeAuditEvent( + _In_ AUTHZ_AUDIT_EVENT_HANDLE hAuditEvent + ); + +// +// Support for SACL evaluation +// + +AUTHZAPI +BOOL +WINAPI +AuthzEvaluateSacl( + _In_ AUTHZ_CLIENT_CONTEXT_HANDLE AuthzClientContext, + _In_ PAUTHZ_ACCESS_REQUEST pRequest, + _In_ PACL Sacl, + _In_ ACCESS_MASK GrantedAccess, + _In_ BOOL AccessGranted, + _Out_ PBOOL pbGenerateAudit + ); + +// +// Support for generic auditing. +// + +typedef struct _AUTHZ_REGISTRATION_OBJECT_TYPE_NAME_OFFSET +{ + PWSTR szObjectTypeName; + DWORD dwOffset; +} AUTHZ_REGISTRATION_OBJECT_TYPE_NAME_OFFSET, *PAUTHZ_REGISTRATION_OBJECT_TYPE_NAME_OFFSET; + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4201) // nonstandard extension used : nameless struct/union +#endif + +typedef struct _AUTHZ_SOURCE_SCHEMA_REGISTRATION +{ + DWORD dwFlags; + PWSTR szEventSourceName; + PWSTR szEventMessageFile; + PWSTR szEventSourceXmlSchemaFile; + PWSTR szEventAccessStringsFile; + PWSTR szExecutableImagePath; + + // + // The meaning of the data is defined by dwFlags. Make sure + // new types are pointers. + // + + union + { + PVOID pReserved; + + // + // Must be supplied when dwFlags contains AUTHZ_MIGRATED_LEGACY_PUBLISHER + // + + GUID* pProviderGuid; + } DUMMYUNIONNAME; + + DWORD dwObjectTypeNameCount; + AUTHZ_REGISTRATION_OBJECT_TYPE_NAME_OFFSET ObjectTypeNames[ANYSIZE_ARRAY]; +} AUTHZ_SOURCE_SCHEMA_REGISTRATION, *PAUTHZ_SOURCE_SCHEMA_REGISTRATION; + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + + +#define AUTHZ_FLAG_ALLOW_MULTIPLE_SOURCE_INSTANCES 0x1 + +AUTHZAPI +BOOL +WINAPI +AuthzInstallSecurityEventSource( + _In_ DWORD dwFlags, + _In_ PAUTHZ_SOURCE_SCHEMA_REGISTRATION pRegistration + ); + +AUTHZAPI +BOOL +WINAPI +AuthzUninstallSecurityEventSource( + _In_ DWORD dwFlags, + _In_ PCWSTR szEventSourceName + ); + + +AUTHZAPI +BOOL +WINAPI +AuthzEnumerateSecurityEventSources( + _In_ DWORD dwFlags, + _Out_ PAUTHZ_SOURCE_SCHEMA_REGISTRATION Buffer, + _Out_ PDWORD pdwCount, + _Inout_ PDWORD pdwLength + ); + +AUTHZAPI +BOOL +WINAPI +AuthzRegisterSecurityEventSource( + _In_ DWORD dwFlags, + _In_ PCWSTR szEventSourceName, + _Out_ PAUTHZ_SECURITY_EVENT_PROVIDER_HANDLE phEventProvider + ); + +AUTHZAPI +BOOL +WINAPI +AuthzUnregisterSecurityEventSource( + _In_ DWORD dwFlags, + _Inout_ PAUTHZ_SECURITY_EVENT_PROVIDER_HANDLE phEventProvider + ); + +AUTHZAPI +BOOL +WINAPI +AuthzReportSecurityEvent( + _In_ DWORD dwFlags, + _Inout_ AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE hEventProvider, + _In_ DWORD dwAuditId, + _In_opt_ PSID pUserSid, + _In_ DWORD dwCount, + ... + ); + +AUTHZAPI +BOOL +WINAPI +AuthzReportSecurityEventFromParams( + _In_ DWORD dwFlags, + _Inout_ AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE hEventProvider, + _In_ DWORD dwAuditId, + _In_opt_ PSID pUserSid, + _In_ PAUDIT_PARAMS pParams + ); + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) +_Success_(return != FALSE) +AUTHZAPI +BOOL +WINAPI +AuthzRegisterCapChangeNotification( + _Out_ PAUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE phCapChangeSubscription, + _In_ LPTHREAD_START_ROUTINE pfnCapChangeCallback, + _In_opt_ PVOID pCallbackContext + ); + +AUTHZAPI +BOOL +WINAPI +AuthzUnregisterCapChangeNotification( + _In_ AUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE hCapChangeSubscription + ); + +AUTHZAPI +BOOL +WINAPI +AuthzFreeCentralAccessPolicyCache( + void + ); +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif /* __AUTHZ_H__ */ + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Authif.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Authif.h new file mode 100644 index 0000000000000000000000000000000000000000..9cf21d013e528312592d7c9d66e28fc7f6a07369 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Authif.h @@ -0,0 +1,493 @@ +/*///////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// FILE +// +// authif.h +// +// SYNOPSIS +// +// Declares the interface for extensions to the Internet Authentication +// Service. +// +/////////////////////////////////////////////////////////////////////////////*/ + +#ifndef _AUTHIF_H_ +#define _AUTHIF_H_ +#if _MSC_VER >= 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/* + * Enumerates the attribute types that are passed to the extension DLL. The + * RADIUS standard attributes are included for convenience and should not be + * considered exhaustive. + */ +typedef enum _RADIUS_ATTRIBUTE_TYPE { + + /* Used to terminate attribute arrays. */ + ratMinimum = 0, + + /* RADIUS standard attributes. */ + ratUserName = 1, + ratUserPassword = 2, + ratCHAPPassword = 3, + ratNASIPAddress = 4, + ratNASPort = 5, + ratServiceType = 6, + ratFramedProtocol = 7, + ratFramedIPAddress = 8, + ratFramedIPNetmask = 9, + ratFramedRouting = 10, + ratFilterId = 11, + ratFramedMTU = 12, + ratFramedCompression = 13, + ratLoginIPHost = 14, + ratLoginService = 15, + ratLoginPort = 16, + ratReplyMessage = 18, + ratCallbackNumber = 19, + ratCallbackId = 20, + ratFramedRoute = 22, + ratFramedIPXNetwork = 23, + ratState = 24, + ratClass = 25, + ratVendorSpecific = 26, + ratSessionTimeout = 27, + ratIdleTimeout = 28, + ratTerminationAction = 29, + ratCalledStationId = 30, + ratCallingStationId = 31, + ratNASIdentifier = 32, + ratProxyState = 33, + ratLoginLATService = 34, + ratLoginLATNode = 35, + ratLoginLATGroup = 36, + ratFramedAppleTalkLink = 37, + ratFramedAppleTalkNetwork = 38, + ratFramedAppleTalkZone = 39, + ratAcctStatusType = 40, + ratAcctDelayTime = 41, + ratAcctInputOctets = 42, + ratAcctOutputOctets = 43, + ratAcctSessionId = 44, + ratAcctAuthentic = 45, + ratAcctSessionTime = 46, + ratAcctInputPackets = 47, + ratAcctOutputPackets = 48, + ratAcctTerminationCause = 49, + ratCHAPChallenge = 60, + ratNASPortType = 61, + ratPortLimit = 62, + ratTunnelType = 64, + ratMediumType = 65, + ratTunnelPassword = 69, + ratTunnelPrivateGroupID = 81, + ratNASIPv6Address = 95, + ratFramedInterfaceId, + ratFramedIPv6Prefix, + ratLoginIPv6Host, + ratFramedIPv6Route, + ratFramedIPv6Pool, + + /* Extended attribute types used to pass additional information. */ + ratCode = 262, /* Request type code. */ + ratIdentifier = 263, /* Request identifier. */ + ratAuthenticator = 264, /* Request authenticator. */ + ratSrcIPAddress = 265, /* Source IP address. */ + ratSrcPort = 266, /* Source IP port. */ + ratProvider = 267, /* Authentication provider. */ + ratStrippedUserName = 268, /* User-Name with realm stripped. */ + ratFQUserName = 269, /* Fully-Qualified-User-Name. */ + ratPolicyName = 270, /* Remote Access Policy name. */ + ratUniqueId = 271, /* Unique ID identifying the request. */ + ratExtensionState = 272, /* Used to pass state between extensions. */ + ratEAPTLV = 273, /* EAP-TLV packet */ + ratRejectReasonCode = 274, /* The reason code for radius reject */ + ratCRPPolicyName = 275, /* CRP Policy Name */ + ratProviderName = 276, /* Remote RADIUS server group name */ + ratClearTextPassword = 277, /* The user password in clear text */ + ratSrcIPv6Address = 278, /* Source IPv6 address */ + ratCertificateThumbprint = 279, /* The thumbprint of client auth certificate */ +} RADIUS_ATTRIBUTE_TYPE; + +/* + * Enumerates the different RADIUS packet codes. Used for the ratCode extended + * attribute. + */ +typedef enum _RADIUS_CODE { + rcUnknown = 0, + rcAccessRequest = 1, + rcAccessAccept = 2, + rcAccessReject = 3, + rcAccountingRequest = 4, + rcAccountingResponse = 5, + rcAccessChallenge = 11, + rcDiscard = 256 +} RADIUS_CODE; + +/* + * Enumerates the different authentication providers used for processing a + * request. Used for the ratProvider extended attribute. + */ +typedef enum _RADIUS_AUTHENTICATION_PROVIDER { + rapUnknown, + rapUsersFile, + rapProxy, + rapWindowsNT, + rapMCIS, + rapODBC, + rapNone +} RADIUS_AUTHENTICATION_PROVIDER; + +/* + * Enumerates a subset of reason codes for radius reject. + * Used for the ratReasonCode extended attribute. + */ +typedef enum _RADIUS_REJECT_REASON_CODE { + rrrcUndefined = 0, + rrrcAccountUnknown = 1, + rrrcAccountDisabled = 2, + rrrcAccountExpired = 3, + rrrcAuthenticationFailure = 4, +} RADIUS_REJECT_REASON_CODE; + +/* + * Enumerates the different RADIUS data types. A type of 'rdtUnknown' means + * the attribute was not recognized by the dictionary. + */ +typedef enum _RADIUS_DATA_TYPE { + rdtUnknown, + rdtString, + rdtAddress, + rdtInteger, + rdtTime, + rdtIpv6Address +} RADIUS_DATA_TYPE; + +/* + * Struct representing a RADIUS or extended attribute. + */ +typedef struct _RADIUS_ATTRIBUTE { + DWORD dwAttrType; /* Attribute type */ + RADIUS_DATA_TYPE fDataType; /* RADIUS_DATA_TYPE of the value */ + DWORD cbDataLength; /* Length of the value (in bytes) */ + union { + DWORD dwValue; /* For rdtAddress, rdtInteger, and rdtTime */ + CONST BYTE* lpValue; /* For rdtUnknown, rdtIpv6Address and rdtString */ + }; +} RADIUS_ATTRIBUTE, *PRADIUS_ATTRIBUTE; + +/* + * Struct representing the layout of a RADIUS Vendor-Specific attribute. This + * is useful when interpreting the RADIUS_ATTRIBUTE lpValue field when + * dwAttrType is ratVendorSpecific. + */ +typedef struct _RADIUS_VSA_FORMAT { + BYTE VendorId[4]; + BYTE VendorType; + BYTE VendorLength; + BYTE AttributeSpecific[1]; +} RADIUS_VSA_FORMAT; + +/* + * Enumerates the different actions an extension DLL can generate in + * response to an Access-Request. + */ +typedef enum _RADIUS_ACTION { + raContinue, + raReject, + raAccept +} RADIUS_ACTION, *PRADIUS_ACTION; + + +/* + * Routines exported by a RADIUS extension DLL. + */ + +/* + * RadiusExtensionInit is optional. If it exists, it will be invoked prior to + * the service coming on-line. A return value other than NO_ERROR prevents the + * service from initializing. + */ +#define RADIUS_EXTENSION_INIT "RadiusExtensionInit" +typedef DWORD (WINAPI *PRADIUS_EXTENSION_INIT)( VOID ); + +/* + * RadiusExtensionTerm is optional. If it exists, it will be invoked prior to + * unloading the DLL to give the extension a chance to clean-up. + */ +#define RADIUS_EXTENSION_TERM "RadiusExtensionTerm" +typedef VOID (WINAPI *PRADIUS_EXTENSION_TERM)( VOID ); + +/* + * RadiusExtensionProcess is mandatory for NT4. For Windows 2000, an + * extension may export RadiusExtensionProcessEx (q.v.) instead. + * + * Parameters: + * pAttrs Array of attributes from the request. It is terminated by an + * attribute with dwAttrType set to ratMinimum. These attributes + * should be treated as read-only and must not be referenced + * after the function returns. + * pfAction For Access-Requests, this parameter will be non-NULL with + * *pfAction == raContinue. The extension DLL can set *pfAction + * to abort further processing and force an Access-Accept or + * Access-Reject. For all other request types, this parameter + * will be NULL. + * + * Return Value: + * A return value other than NO_ERROR causes the request to be discarded. + */ +#define RADIUS_EXTENSION_PROCESS "RadiusExtensionProcess" +typedef DWORD (WINAPI *PRADIUS_EXTENSION_PROCESS)( + IN const RADIUS_ATTRIBUTE *pAttrs, + OUT OPTIONAL PRADIUS_ACTION pfAction + ); + +/* + * RadiusExtensionProcessEx is only supported on Windows 2000. If it exits, + * RadiusExtensionProcess is ignored. + * + * Parameters: + * pInAttrs Array of attributes from the request. It is terminated by an + * attribute with dwAttrType set to ratMinimum. These attributes + * should be treated as read-only and must not be referenced + * after the function returns. + * pOutAttrs Array of attributes to add to the response. It is terminated + * by an attribute with dwAttrType set to ratMinimum. + * *pOutAttrs may be set to NULL if no attributes are returned. + * pfAction For Access-Requests, this parameter will be non-NULL with + * *pfAction == raContinue. The extension DLL can set *pfAction + * to abort further processing and force an Access-Accept or + * Access-Reject. For all other request types, this parameter + * will be NULL. + * + * Return Value: + * A return value other than NO_ERROR causes the request to be discarded. + */ +#define RADIUS_EXTENSION_PROCESS_EX "RadiusExtensionProcessEx" +typedef DWORD (WINAPI *PRADIUS_EXTENSION_PROCESS_EX)( + IN const RADIUS_ATTRIBUTE *pInAttrs, + OUT PRADIUS_ATTRIBUTE *pOutAttrs, + OUT OPTIONAL PRADIUS_ACTION pfAction + ); + +/* + * RadiusExtensionFreeAttributes must be defined if RadiusExtensionProcessEx + * is defined. It is used to free the attributes returned by + * RadiusExtensionProcessEx + * + * Parameters: + * pAttrs Array of attributes to be freed. + */ +#define RADIUS_EXTENSION_FREE_ATTRIBUTES "RadiusExtensionFreeAttributes" +typedef VOID (WINAPI *PRADIUS_EXTENSION_FREE_ATTRIBUTES)( + IN PRADIUS_ATTRIBUTE pAttrs + ); + +/* + * Defines used for installation of an extension DLL. + * The following registry values are used for loading extensions: + * + * HKLM\System\CurrentControlSet\Services\AuthSrv\Parameters + * ExtensionDLLs (REG_MULTI_SZ) + * AuthorizationDLLs (REG_MULTI_SZ) + * + * ExtensionDLLs are invoked before any of the built-in authentication + * providers. They receive all the attributes from the request plus all + * the extended attribute types. + * + * AuthorizationDLLs are invoked after the built-in authentication and + * authorization providers. They receive all the attributes from the + * response plus all the extended attributes types. AuthorizationDLLs may + * not return an action of raAccept. + */ + +#define AUTHSRV_PARAMETERS_KEY_W \ + L"System\\CurrentControlSet\\Services\\AuthSrv\\Parameters" + +#define AUTHSRV_EXTENSIONS_VALUE_W \ + L"ExtensionDLLs" + +#define AUTHSRV_AUTHORIZATION_VALUE_W \ + L"AuthorizationDLLs" + +#define AUTHSRV_ENFORCE_NP_FOR_PAP_CHALLENGE_RESPONSE_VALUE_W \ + L"EnforceNetworkPolicyForPAPBasedChallengeResponse" + +#if _WIN32_WINNT >= 0x0501 + +/* Version of this spec. */ +#define RADIUS_EXTENSION_VERSION (1) + +/* + * Enumerates the different points during request processing where an + * extension can be invoked. + */ +typedef enum _RADIUS_EXTENSION_POINT { + repAuthentication, /* ExtensionDLLs */ + repAuthorization /* AuthorizationDLLs */ +} RADIUS_EXTENSION_POINT; + +/* + * Struct representing an array of RADIUS_ATTRIBUTE structs. All the functions + * for adding attributes to a request copy the supplied memory, so there is no + * need for the extension to export RadiusExtensionFreeAttributes. The + * extension must not modify this struct. All changes must be made by using the + * supplied callback functions. + */ +typedef struct _RADIUS_ATTRIBUTE_ARRAY { + + /* Size of this structure in bytes. */ + DWORD cbSize; + + /* Adds a new attribute to the end of the array. */ + DWORD (WINAPI *Add)( + IN struct _RADIUS_ATTRIBUTE_ARRAY *This, + IN const RADIUS_ATTRIBUTE *pAttr + ); + + /* + * Returns a const pointer to the specified attribute within the array or + * NULL if the index is out of range. + */ + const RADIUS_ATTRIBUTE * (WINAPI *AttributeAt)( + IN const struct _RADIUS_ATTRIBUTE_ARRAY *This, + IN DWORD dwIndex + ); + + /* + * Returns the size of the array. Since indexes are zero-based, the size is + * 1 greater than the largest index. + */ + DWORD (WINAPI *GetSize)( + IN const struct _RADIUS_ATTRIBUTE_ARRAY *This + ); + + /* + * Inserts a new attribute at a specified index in the array. In the + * process, it shifts up (by incrementing the index) the existing attribute + * at this index, and it shifts up all the attributes above it. Returns + * ERROR_INVALID_PARAMETER if the index is out of range. + */ + DWORD (WINAPI *InsertAt)( + IN struct _RADIUS_ATTRIBUTE_ARRAY *This, + IN DWORD dwIndex, + IN const RADIUS_ATTRIBUTE *pAttr + ); + + /* + * Removes the attribute at the specified index in the array. In the + * process, it shifts down all the attributes above the removed attribute. + * Returns ERROR_ACCESS_DENIED if the specified attribute is read-only. + * Returns ERROR_INVALID_PARAMETER if the index is out of range. + */ + DWORD (WINAPI *RemoveAt)( + IN struct _RADIUS_ATTRIBUTE_ARRAY *This, + IN DWORD dwIndex + ); + + /* + * Sets the array element at the specified index, replacing the existing + * attribute. Returns ERROR_INVALID_PARAMETER if the index is out of range. + */ + DWORD (WINAPI *SetAt)( + IN struct _RADIUS_ATTRIBUTE_ARRAY *This, + IN DWORD dwIndex, + IN const RADIUS_ATTRIBUTE *pAttr + ); + +} RADIUS_ATTRIBUTE_ARRAY, *PRADIUS_ATTRIBUTE_ARRAY; + +/* + * Struct used to exchange information with the extension during request + * processing. The extension must not modify this struct. All changes must be + * made by using the supplied callback functions. + */ +typedef struct _RADIUS_EXTENSION_CONTROL_BLOCK { + + /* Size of this structure. */ + DWORD cbSize; + + /* Version info of this specification. */ + DWORD dwVersion; + + /* Point during request processing where the extension is being invoked. */ + RADIUS_EXTENSION_POINT repPoint; + + /* Type of RADIUS request being processed. */ + RADIUS_CODE rcRequestType; + + /* + * Final disposition of the request. This field must not be modified + * directly; use the SetResponseType callback function instead. At the + * repAuthentication point, this may be set to rcUnknown to indicate that no + * decision has been made yet. + */ + RADIUS_CODE rcResponseType; + + /* + * Returns the attributes received in the RADIUS request and any internal + * attributes describing the request state. The extenstion can modify the + * request attributes. For example, when IAS is acting as a RADIUS proxy, an + * extension could filter which attributes are forwarded to a remote RADIUS + * server. + */ + PRADIUS_ATTRIBUTE_ARRAY (WINAPI *GetRequest)( + IN struct _RADIUS_EXTENSION_CONTROL_BLOCK *This + ); + + /* + * Returns the attributes that will be sent in the response if the final + * outcome of request processing matches the specified response type. + * Returns NULL if rcResponseType is invalid. Note that an extension may + * retrieve and modify the attributes for any valid response type regardless + * of the request's current disposition. For example, an extension can set + * the response type to rcAccessAccept, but still add attributes to the + * Access-Reject in case the response type is overridden during further + * processing. + */ + PRADIUS_ATTRIBUTE_ARRAY (WINAPI *GetResponse)( + IN struct _RADIUS_EXTENSION_CONTROL_BLOCK *This, + IN RADIUS_CODE rcResponseType + ); + + /* + * Sets the final disposition of the request. + * Returns ERROR_INVALID_PARAMETER if the specified response type is invalid + * for the request type. + */ + DWORD (WINAPI *SetResponseType)( + IN struct _RADIUS_EXTENSION_CONTROL_BLOCK *This, + IN RADIUS_CODE rcResponseType + ); + +} RADIUS_EXTENSION_CONTROL_BLOCK, *PRADIUS_EXTENSION_CONTROL_BLOCK; + +/* + * If RadiusExtensionProcess2 exists, RadiusExtensionProcess and + * RadiusExtensionProcessEx are ignored. + * + * Parameters: + * pECB Info exchanged with the extension. + * + * Return Value: + * A return value other than NO_ERROR causes the request to be discarded. + */ +#define RADIUS_EXTENSION_PROCESS2 "RadiusExtensionProcess2" +typedef DWORD (WINAPI *PRADIUS_EXTENSION_PROCESS_2)( + IN OUT PRADIUS_EXTENSION_CONTROL_BLOCK pECB + ); + +#endif // _WIN32_WINNT + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _AUTHIF_H_ */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/AviFmt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AviFmt.h new file mode 100644 index 0000000000000000000000000000000000000000..d47b860df9ddb1b8f876366d8bbb869c2ba1779c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/AviFmt.h @@ -0,0 +1,264 @@ +/****************************************************************************/ +/* */ +/* AVIFMT.H - Include file for working with AVI files */ +/* */ +/* Note: You must include WINDOWS.H and MMSYSTEM.H before */ +/* including this file. */ +/* */ +/* Copyright (c) 1991-1998, Microsoft Corp. All rights reserved. */ +/* */ +/* */ +/****************************************************************************/ + +#include + +#ifndef _INC_AVIFMT +#define _INC_AVIFMT 100 /* version number * 100 + revision */ + +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++ */ +#endif /* __cplusplus */ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// begin_vfw32 + +#ifdef _MSC_VER +#pragma warning(disable:4200) +#endif + +/* The following is a short description of the AVI file format. Please + * see the accompanying documentation for a full explanation. + * + * An AVI file is the following RIFF form: + * + * RIFF('AVI' + * LIST('hdrl' + * avih() + * LIST ('strl' + * strh() + * strf() + * ... additional header data + * LIST('movi' + * { LIST('rec' + * SubChunk... + * ) + * | SubChunk } .... + * ) + * [ ] + * ) + * + * The main file header specifies how many streams are present. For + * each one, there must be a stream header chunk and a stream format + * chunk, enlosed in a 'strl' LIST chunk. The 'strf' chunk contains + * type-specific format information; for a video stream, this should + * be a BITMAPINFO structure, including palette. For an audio stream, + * this should be a WAVEFORMAT (or PCMWAVEFORMAT) structure. + * + * The actual data is contained in subchunks within the 'movi' LIST + * chunk. The first two characters of each data chunk are the + * stream number with which that data is associated. + * + * Some defined chunk types: + * Video Streams: + * ##db: RGB DIB bits + * ##dc: RLE8 compressed DIB bits + * ##pc: Palette Change + * + * Audio Streams: + * ##wb: waveform audio bytes + * + * The grouping into LIST 'rec' chunks implies only that the contents of + * the chunk should be read into memory at the same time. This + * grouping is used for files specifically intended to be played from + * CD-ROM. + * + * The index chunk at the end of the file should contain one entry for + * each data chunk in the file. + * + * Limitations for the current software: + * Only one video stream and one audio stream are allowed. + * The streams must start at the beginning of the file. + * + * + * To register codec types please obtain a copy of the Multimedia + * Developer Registration Kit from: + * + * Microsoft Corporation + * Multimedia Systems Group + * Product Marketing + * One Microsoft Way + * Redmond, WA 98052-6399 + * + */ + +#ifndef mmioFOURCC +#define mmioFOURCC( ch0, ch1, ch2, ch3 ) \ + ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \ + ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) ) +#endif + +/* Macro to make a TWOCC out of two characters */ +#ifndef aviTWOCC +#define aviTWOCC(ch0, ch1) ((WORD)(BYTE)(ch0) | ((WORD)(BYTE)(ch1) << 8)) +#endif + +typedef WORD TWOCC; + +/* form types, list types, and chunk types */ +#define formtypeAVI mmioFOURCC('A', 'V', 'I', ' ') +#define formtypeAVIX mmioFOURCC('A', 'V', 'I', 'X') +#define listtypeAVIHEADER mmioFOURCC('h', 'd', 'r', 'l') +#define ckidAVIMAINHDR mmioFOURCC('a', 'v', 'i', 'h') +#define listtypeSTREAMHEADER mmioFOURCC('s', 't', 'r', 'l') +#define ckidSTREAMHEADER mmioFOURCC('s', 't', 'r', 'h') +#define ckidSTREAMFORMAT mmioFOURCC('s', 't', 'r', 'f') +#define ckidSTREAMHANDLERDATA mmioFOURCC('s', 't', 'r', 'd') +#define ckidSTREAMNAME mmioFOURCC('s', 't', 'r', 'n') + +#define listtypeAVIMOVIE mmioFOURCC('m', 'o', 'v', 'i') +#define listtypeAVIRECORD mmioFOURCC('r', 'e', 'c', ' ') + +#define ckidAVINEWINDEX mmioFOURCC('i', 'd', 'x', '1') + +/* +** Stream types for the field of the stream header. +*/ +#define streamtypeVIDEO mmioFOURCC('v', 'i', 'd', 's') +#define streamtypeAUDIO mmioFOURCC('a', 'u', 'd', 's') +#define streamtypeMIDI mmioFOURCC('m', 'i', 'd', 's') +#define streamtypeTEXT mmioFOURCC('t', 'x', 't', 's') + +/* Basic chunk types */ +#define cktypeDIBbits aviTWOCC('d', 'b') +#define cktypeDIBcompressed aviTWOCC('d', 'c') +#define cktypePALchange aviTWOCC('p', 'c') +#define cktypeWAVEbytes aviTWOCC('w', 'b') +#define cktypeDVFrame aviTWOCC('_', '_') + +/* Chunk id to use for extra chunks for padding. */ +#define ckidAVIPADDING mmioFOURCC('J', 'U', 'N', 'K') + +/* +** Useful macros +** +** Warning: These are nasty macro, and MS C 6.0 compiles some of them +** incorrectly if optimizations are on. Ack. +*/ + +/* Macro to get stream number out of a FOURCC ckid */ +#define FromHex(n) (((n) >= 'A') ? ((n) + 10 - 'A') : ((n) - '0')) +#define StreamFromFOURCC(fcc) ((WORD) ((FromHex(LOBYTE(LOWORD(fcc))) << 4) + \ + (FromHex(HIBYTE(LOWORD(fcc)))))) + +/* Macro to get TWOCC chunk type out of a FOURCC ckid */ +#define TWOCCFromFOURCC(fcc) HIWORD(fcc) + +/* Macro to make a ckid for a chunk out of a TWOCC and a stream number +** from 0-255. +*/ +#define ToHex(n) ((BYTE) (((n) > 9) ? ((n) - 10 + 'A') : ((n) + '0'))) +#define MAKEAVICKID(tcc, stream) \ + MAKELONG((ToHex((stream) & 0x0f) << 8) | \ + (ToHex(((stream) & 0xf0) >> 4)), tcc) + +/* +** Main AVI File Header +*/ + +/* flags for use in in AVIFileHdr */ +#define AVIF_HASINDEX 0x00000010 // Index at end of file +#define AVIF_MUSTUSEINDEX 0x00000020 +#define AVIF_ISINTERLEAVED 0x00000100 +#define AVIF_TRUSTCKTYPE 0x00000800 // Use CKType to find key frames +#define AVIF_WASCAPTUREFILE 0x00010000 +#define AVIF_COPYRIGHTED 0x00020000 + +/* The AVI File Header LIST chunk should be padded to this size */ +#define AVI_HEADERSIZE 2048 // size of AVI header list + +typedef struct +{ + DWORD dwMicroSecPerFrame; // frame display rate (or 0L) + DWORD dwMaxBytesPerSec; // max. transfer rate + DWORD dwPaddingGranularity; // pad to multiples of this + // size; normally 2K. + DWORD dwFlags; // the ever-present flags + DWORD dwTotalFrames; // # frames in file + DWORD dwInitialFrames; + DWORD dwStreams; + DWORD dwSuggestedBufferSize; + + DWORD dwWidth; + DWORD dwHeight; + + DWORD dwReserved[4]; +} MainAVIHeader; + +/* +** Stream header +*/ + +#define AVISF_DISABLED 0x00000001 + +#define AVISF_VIDEO_PALCHANGES 0x00010000 + +typedef struct { + FOURCC fccType; + FOURCC fccHandler; + DWORD dwFlags; /* Contains AVITF_* flags */ + WORD wPriority; + WORD wLanguage; + DWORD dwInitialFrames; + DWORD dwScale; + DWORD dwRate; /* dwRate / dwScale == samples/second */ + DWORD dwStart; + DWORD dwLength; /* In units above... */ + DWORD dwSuggestedBufferSize; + DWORD dwQuality; + DWORD dwSampleSize; + RECT rcFrame; +} AVIStreamHeader; + +/* Flags for index */ +#define AVIIF_LIST 0x00000001L // chunk is a 'LIST' +#define AVIIF_KEYFRAME 0x00000010L // this frame is a key frame. +#define AVIIF_FIRSTPART 0x00000020L // this frame is the start of a partial frame. +#define AVIIF_LASTPART 0x00000040L // this frame is the end of a partial frame. +#define AVIIF_MIDPART (AVIIF_LASTPART|AVIIF_FIRSTPART) + +#define AVIIF_NOTIME 0x00000100L // this frame doesn't take any time +#define AVIIF_COMPUSE 0x0FFF0000L // these bits are for compressor use + +typedef struct +{ + DWORD ckid; + DWORD dwFlags; + DWORD dwChunkOffset; // Position of chunk + DWORD dwChunkLength; // Length of chunk +} AVIINDEXENTRY; + +/* +** Palette change chunk +** +** Used in video streams. +*/ +typedef struct +{ + BYTE bFirstEntry; /* first entry to change */ + BYTE bNumEntries; /* # entries to change (0 if 256) */ + WORD wFlags; /* Mostly to preserve alignment... */ + PALETTEENTRY peNew[]; /* New color specifications */ +} AVIPALCHANGE; + +// end_vfw32 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} /* End of extern "C" { */ +#endif /* __cplusplus */ + +#endif /* _INC_AVIFMT */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/BiDiSpl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/BiDiSpl.h new file mode 100644 index 0000000000000000000000000000000000000000..a778b4c8ffcf1459906ce7fd11b19000d2453665 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/BiDiSpl.h @@ -0,0 +1,687 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bidispl_h__ +#define __bidispl_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBidiRequest_FWD_DEFINED__ +#define __IBidiRequest_FWD_DEFINED__ +typedef interface IBidiRequest IBidiRequest; + +#endif /* __IBidiRequest_FWD_DEFINED__ */ + + +#ifndef __IBidiRequestContainer_FWD_DEFINED__ +#define __IBidiRequestContainer_FWD_DEFINED__ +typedef interface IBidiRequestContainer IBidiRequestContainer; + +#endif /* __IBidiRequestContainer_FWD_DEFINED__ */ + + +#ifndef __IBidiSpl_FWD_DEFINED__ +#define __IBidiSpl_FWD_DEFINED__ +typedef interface IBidiSpl IBidiSpl; + +#endif /* __IBidiSpl_FWD_DEFINED__ */ + + +#ifndef __IBidiSpl2_FWD_DEFINED__ +#define __IBidiSpl2_FWD_DEFINED__ +typedef interface IBidiSpl2 IBidiSpl2; + +#endif /* __IBidiSpl2_FWD_DEFINED__ */ + + +#ifndef __BidiRequest_FWD_DEFINED__ +#define __BidiRequest_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BidiRequest BidiRequest; +#else +typedef struct BidiRequest BidiRequest; +#endif /* __cplusplus */ + +#endif /* __BidiRequest_FWD_DEFINED__ */ + + +#ifndef __BidiRequestContainer_FWD_DEFINED__ +#define __BidiRequestContainer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BidiRequestContainer BidiRequestContainer; +#else +typedef struct BidiRequestContainer BidiRequestContainer; +#endif /* __cplusplus */ + +#endif /* __BidiRequestContainer_FWD_DEFINED__ */ + + +#ifndef __BidiSpl_FWD_DEFINED__ +#define __BidiSpl_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BidiSpl BidiSpl; +#else +typedef struct BidiSpl BidiSpl; +#endif /* __cplusplus */ + +#endif /* __BidiSpl_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bidispl_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_bidispl_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bidispl_0000_0000_v0_0_s_ifspec; + +#ifndef __IBidiRequest_INTERFACE_DEFINED__ +#define __IBidiRequest_INTERFACE_DEFINED__ + +/* interface IBidiRequest */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBidiRequest; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F348BD7-4B47-4755-8A9D-0F422DF3DC89") + IBidiRequest : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetSchema( + /* [in] */ __RPC__in const LPCWSTR pszSchema) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetInputData( + /* [in] */ const DWORD dwType, + /* [in] */ __RPC__in const BYTE *pData, + /* [in] */ const UINT uSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetResult( + /* [out] */ __RPC__out HRESULT *phr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOutputData( + /* [in] */ const DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszSchema, + /* [out] */ __RPC__out DWORD *pdwType, + /* [out] */ __RPC__deref_out_opt BYTE **ppData, + /* [out] */ __RPC__out ULONG *uSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEnumCount( + /* [out] */ __RPC__out DWORD *pdwTotal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBidiRequestVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBidiRequest * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBidiRequest * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBidiRequest * This); + + DECLSPEC_XFGVIRT(IBidiRequest, SetSchema) + HRESULT ( STDMETHODCALLTYPE *SetSchema )( + __RPC__in IBidiRequest * This, + /* [in] */ __RPC__in const LPCWSTR pszSchema); + + DECLSPEC_XFGVIRT(IBidiRequest, SetInputData) + HRESULT ( STDMETHODCALLTYPE *SetInputData )( + __RPC__in IBidiRequest * This, + /* [in] */ const DWORD dwType, + /* [in] */ __RPC__in const BYTE *pData, + /* [in] */ const UINT uSize); + + DECLSPEC_XFGVIRT(IBidiRequest, GetResult) + HRESULT ( STDMETHODCALLTYPE *GetResult )( + __RPC__in IBidiRequest * This, + /* [out] */ __RPC__out HRESULT *phr); + + DECLSPEC_XFGVIRT(IBidiRequest, GetOutputData) + HRESULT ( STDMETHODCALLTYPE *GetOutputData )( + __RPC__in IBidiRequest * This, + /* [in] */ const DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszSchema, + /* [out] */ __RPC__out DWORD *pdwType, + /* [out] */ __RPC__deref_out_opt BYTE **ppData, + /* [out] */ __RPC__out ULONG *uSize); + + DECLSPEC_XFGVIRT(IBidiRequest, GetEnumCount) + HRESULT ( STDMETHODCALLTYPE *GetEnumCount )( + __RPC__in IBidiRequest * This, + /* [out] */ __RPC__out DWORD *pdwTotal); + + END_INTERFACE + } IBidiRequestVtbl; + + interface IBidiRequest + { + CONST_VTBL struct IBidiRequestVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBidiRequest_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBidiRequest_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBidiRequest_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBidiRequest_SetSchema(This,pszSchema) \ + ( (This)->lpVtbl -> SetSchema(This,pszSchema) ) + +#define IBidiRequest_SetInputData(This,dwType,pData,uSize) \ + ( (This)->lpVtbl -> SetInputData(This,dwType,pData,uSize) ) + +#define IBidiRequest_GetResult(This,phr) \ + ( (This)->lpVtbl -> GetResult(This,phr) ) + +#define IBidiRequest_GetOutputData(This,dwIndex,ppszSchema,pdwType,ppData,uSize) \ + ( (This)->lpVtbl -> GetOutputData(This,dwIndex,ppszSchema,pdwType,ppData,uSize) ) + +#define IBidiRequest_GetEnumCount(This,pdwTotal) \ + ( (This)->lpVtbl -> GetEnumCount(This,pdwTotal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBidiRequest_INTERFACE_DEFINED__ */ + + +#ifndef __IBidiRequestContainer_INTERFACE_DEFINED__ +#define __IBidiRequestContainer_INTERFACE_DEFINED__ + +/* interface IBidiRequestContainer */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBidiRequestContainer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D752F6C0-94A8-4275-A77D-8F1D1A1121AE") + IBidiRequestContainer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddRequest( + /* [in] */ __RPC__in_opt IBidiRequest *pRequest) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEnumObject( + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRequestCount( + /* [out] */ __RPC__out ULONG *puCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBidiRequestContainerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBidiRequestContainer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBidiRequestContainer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBidiRequestContainer * This); + + DECLSPEC_XFGVIRT(IBidiRequestContainer, AddRequest) + HRESULT ( STDMETHODCALLTYPE *AddRequest )( + __RPC__in IBidiRequestContainer * This, + /* [in] */ __RPC__in_opt IBidiRequest *pRequest); + + DECLSPEC_XFGVIRT(IBidiRequestContainer, GetEnumObject) + HRESULT ( STDMETHODCALLTYPE *GetEnumObject )( + __RPC__in IBidiRequestContainer * This, + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppenum); + + DECLSPEC_XFGVIRT(IBidiRequestContainer, GetRequestCount) + HRESULT ( STDMETHODCALLTYPE *GetRequestCount )( + __RPC__in IBidiRequestContainer * This, + /* [out] */ __RPC__out ULONG *puCount); + + END_INTERFACE + } IBidiRequestContainerVtbl; + + interface IBidiRequestContainer + { + CONST_VTBL struct IBidiRequestContainerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBidiRequestContainer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBidiRequestContainer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBidiRequestContainer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBidiRequestContainer_AddRequest(This,pRequest) \ + ( (This)->lpVtbl -> AddRequest(This,pRequest) ) + +#define IBidiRequestContainer_GetEnumObject(This,ppenum) \ + ( (This)->lpVtbl -> GetEnumObject(This,ppenum) ) + +#define IBidiRequestContainer_GetRequestCount(This,puCount) \ + ( (This)->lpVtbl -> GetRequestCount(This,puCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBidiRequestContainer_INTERFACE_DEFINED__ */ + + +#ifndef __IBidiSpl_INTERFACE_DEFINED__ +#define __IBidiSpl_INTERFACE_DEFINED__ + +/* interface IBidiSpl */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBidiSpl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D580DC0E-DE39-4649-BAA8-BF0B85A03A97") + IBidiSpl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE BindDevice( + /* [in] */ __RPC__in const LPCWSTR pszDeviceName, + /* [in] */ const DWORD dwAccess) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnbindDevice( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendRecv( + /* [in] */ __RPC__in const LPCWSTR pszAction, + /* [in] */ __RPC__in_opt IBidiRequest *pRequest) = 0; + + virtual HRESULT STDMETHODCALLTYPE MultiSendRecv( + /* [in] */ __RPC__in const LPCWSTR pszAction, + /* [in] */ __RPC__in_opt IBidiRequestContainer *pRequestContainer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBidiSplVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBidiSpl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBidiSpl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBidiSpl * This); + + DECLSPEC_XFGVIRT(IBidiSpl, BindDevice) + HRESULT ( STDMETHODCALLTYPE *BindDevice )( + __RPC__in IBidiSpl * This, + /* [in] */ __RPC__in const LPCWSTR pszDeviceName, + /* [in] */ const DWORD dwAccess); + + DECLSPEC_XFGVIRT(IBidiSpl, UnbindDevice) + HRESULT ( STDMETHODCALLTYPE *UnbindDevice )( + __RPC__in IBidiSpl * This); + + DECLSPEC_XFGVIRT(IBidiSpl, SendRecv) + HRESULT ( STDMETHODCALLTYPE *SendRecv )( + __RPC__in IBidiSpl * This, + /* [in] */ __RPC__in const LPCWSTR pszAction, + /* [in] */ __RPC__in_opt IBidiRequest *pRequest); + + DECLSPEC_XFGVIRT(IBidiSpl, MultiSendRecv) + HRESULT ( STDMETHODCALLTYPE *MultiSendRecv )( + __RPC__in IBidiSpl * This, + /* [in] */ __RPC__in const LPCWSTR pszAction, + /* [in] */ __RPC__in_opt IBidiRequestContainer *pRequestContainer); + + END_INTERFACE + } IBidiSplVtbl; + + interface IBidiSpl + { + CONST_VTBL struct IBidiSplVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBidiSpl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBidiSpl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBidiSpl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBidiSpl_BindDevice(This,pszDeviceName,dwAccess) \ + ( (This)->lpVtbl -> BindDevice(This,pszDeviceName,dwAccess) ) + +#define IBidiSpl_UnbindDevice(This) \ + ( (This)->lpVtbl -> UnbindDevice(This) ) + +#define IBidiSpl_SendRecv(This,pszAction,pRequest) \ + ( (This)->lpVtbl -> SendRecv(This,pszAction,pRequest) ) + +#define IBidiSpl_MultiSendRecv(This,pszAction,pRequestContainer) \ + ( (This)->lpVtbl -> MultiSendRecv(This,pszAction,pRequestContainer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBidiSpl_INTERFACE_DEFINED__ */ + + +#ifndef __IBidiSpl2_INTERFACE_DEFINED__ +#define __IBidiSpl2_INTERFACE_DEFINED__ + +/* interface IBidiSpl2 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBidiSpl2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0E8F51B8-8273-4906-8E7B-BE453FFD2E2B") + IBidiSpl2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE BindDevice( + /* [in] */ __RPC__in const LPCWSTR pszDeviceName, + /* [in] */ const DWORD dwAccess) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnbindDevice( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendRecvXMLString( + /* [in] */ __RPC__in BSTR bstrRequest, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrResponse) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendRecvXMLStream( + /* [in] */ __RPC__in_opt IStream *pSRequest, + /* [out] */ __RPC__deref_out_opt IStream **ppSResponse) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBidiSpl2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBidiSpl2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBidiSpl2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBidiSpl2 * This); + + DECLSPEC_XFGVIRT(IBidiSpl2, BindDevice) + HRESULT ( STDMETHODCALLTYPE *BindDevice )( + __RPC__in IBidiSpl2 * This, + /* [in] */ __RPC__in const LPCWSTR pszDeviceName, + /* [in] */ const DWORD dwAccess); + + DECLSPEC_XFGVIRT(IBidiSpl2, UnbindDevice) + HRESULT ( STDMETHODCALLTYPE *UnbindDevice )( + __RPC__in IBidiSpl2 * This); + + DECLSPEC_XFGVIRT(IBidiSpl2, SendRecvXMLString) + HRESULT ( STDMETHODCALLTYPE *SendRecvXMLString )( + __RPC__in IBidiSpl2 * This, + /* [in] */ __RPC__in BSTR bstrRequest, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrResponse); + + DECLSPEC_XFGVIRT(IBidiSpl2, SendRecvXMLStream) + HRESULT ( STDMETHODCALLTYPE *SendRecvXMLStream )( + __RPC__in IBidiSpl2 * This, + /* [in] */ __RPC__in_opt IStream *pSRequest, + /* [out] */ __RPC__deref_out_opt IStream **ppSResponse); + + END_INTERFACE + } IBidiSpl2Vtbl; + + interface IBidiSpl2 + { + CONST_VTBL struct IBidiSpl2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBidiSpl2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBidiSpl2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBidiSpl2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBidiSpl2_BindDevice(This,pszDeviceName,dwAccess) \ + ( (This)->lpVtbl -> BindDevice(This,pszDeviceName,dwAccess) ) + +#define IBidiSpl2_UnbindDevice(This) \ + ( (This)->lpVtbl -> UnbindDevice(This) ) + +#define IBidiSpl2_SendRecvXMLString(This,bstrRequest,pbstrResponse) \ + ( (This)->lpVtbl -> SendRecvXMLString(This,bstrRequest,pbstrResponse) ) + +#define IBidiSpl2_SendRecvXMLStream(This,pSRequest,ppSResponse) \ + ( (This)->lpVtbl -> SendRecvXMLStream(This,pSRequest,ppSResponse) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBidiSpl2_INTERFACE_DEFINED__ */ + + + +#ifndef __IBidiSplLib_LIBRARY_DEFINED__ +#define __IBidiSplLib_LIBRARY_DEFINED__ + +/* library IBidiSplLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_IBidiSplLib; + +EXTERN_C const CLSID CLSID_BidiRequest; + +#ifdef __cplusplus + +class DECLSPEC_UUID("B9162A23-45F9-47cc-80F5-FE0FE9B9E1A2") +BidiRequest; +#endif + +EXTERN_C const CLSID CLSID_BidiRequestContainer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("FC5B8A24-DB05-4a01-8388-22EDF6C2BBBA") +BidiRequestContainer; +#endif + +EXTERN_C const CLSID CLSID_BidiSpl; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2A614240-A4C5-4c33-BD87-1BC709331639") +BidiSpl; +#endif +#endif /* __IBidiSplLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bidispl_0000_0005 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bidispl_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bidispl_0000_0005_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Bits.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Bits.Idl new file mode 100644 index 0000000000000000000000000000000000000000..65af0618a75b68c0eb035994f9403eb05f7f9bc6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Bits.Idl @@ -0,0 +1,456 @@ +//======================================================================= +// +// Copyright (c) 2000 Microsoft Corporation. All Rights Reserved. +// +// File: bits.idl +// +// Description: +// +// Interface to the background file copier. +// +//======================================================================= + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#ifndef DO_NO_IMPORTS +import "unknwn.idl"; +#endif + +cpp_quote("#include \"bitsmsg.h\"") +cpp_quote("#define BG_SIZE_UNKNOWN (UINT64)(-1)") + +#define BG_ENUM_SIZEIS(maxcount) maxcount +#define BG_ENUM_LENGTHIS(maxcount,lengthptr) \ + lengthptr ? *lengthptr : maxcount + +// +// ============================= +// Marshalled interfaces +// ============================= + +[ + uuid(01b7bd23-fb88-4a77-8490-5891d3e4653a), + odl +] +interface IBackgroundCopyFile : IUnknown +{ + typedef struct _BG_FILE_PROGRESS + { + UINT64 BytesTotal; + UINT64 BytesTransferred; + BOOL Completed; + } + BG_FILE_PROGRESS; + + //-------------------------------------------------------------------- + + HRESULT GetRemoteName( [out] LPWSTR *pVal ); + HRESULT GetLocalName( [out] LPWSTR *pVal ); + + HRESULT GetProgress( [out] BG_FILE_PROGRESS *pVal ); +} + +//-------------------------------------------------------------------- +// +[ + uuid(ca51e165-c365-424c-8d41-24aaa4ff3c40), + helpstring("IEnumBackgroundCopyFiles Interface"), + odl +] +interface IEnumBackgroundCopyFiles : IUnknown +{ + HRESULT Next( [in] ULONG celt, + [out, size_is(BG_ENUM_SIZEIS(celt)), length_is(BG_ENUM_LENGTHIS(celt,pceltFetched))] IBackgroundCopyFile **rgelt, + [in,out,unique] ULONG *pceltFetched ); + + HRESULT Skip( [in] ULONG celt); + + HRESULT Reset(); + + HRESULT Clone( [out] IEnumBackgroundCopyFiles **ppenum ); + + HRESULT GetCount( [out] ULONG *puCount ); +} + +//-------------------------------------------------------------------- +// + +[ + uuid(19c613a0-fcb8-4f28-81ae-897c3d078f81), + helpstring("error object for IBackgroundCopyJob"), + odl +] +interface IBackgroundCopyError : IUnknown +{ + typedef enum BG_ERROR_CONTEXT + { + BG_ERROR_CONTEXT_NONE = 0, + BG_ERROR_CONTEXT_UNKNOWN = 1, + BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER = 2, + BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION = 3, + BG_ERROR_CONTEXT_LOCAL_FILE = 4, + BG_ERROR_CONTEXT_REMOTE_FILE = 5, + BG_ERROR_CONTEXT_GENERAL_TRANSPORT = 6, + BG_ERROR_CONTEXT_REMOTE_APPLICATION = 7, + BG_ERROR_CONTEXT_SERVER_CERTIFICATE_CALLBACK = 8, + } BG_ERROR_CONTEXT; + + HRESULT GetError( [out,ref] BG_ERROR_CONTEXT *pContext, + [out,ref] HRESULT *pCode ); + + // Returns BG_E_FILE_NOT_AVAILABLE if no file is available + HRESULT GetFile( [out] IBackgroundCopyFile ** pVal ); + + // Return a human readable description of the error. + // Use CoTaskMemFree to free the description. + HRESULT GetErrorDescription( [in] DWORD LanguageId, + [out,ref] LPWSTR *pErrorDescription ); + + // Return a human readable description of the error context. + // Use CoTaskMemFree to free the description. + HRESULT GetErrorContextDescription( + [in] DWORD LanguageId, + [out,ref] LPWSTR *pContextDescription ); + + // Returns BG_E_PROTOCOL_NOT_AVAILABLE if no protocol is available + HRESULT GetProtocol( [out,ref] LPWSTR *pProtocol ); +} + +// ============================================== +// Job Interface +[ + uuid(37668d37-507e-4160-9316-26306d150b12), + helpstring("IBackgroundCopyJob Interface"), + odl +] +interface IBackgroundCopyJob : IUnknown +{ + typedef struct _BG_FILE_INFO + { + LPWSTR RemoteName; + LPWSTR LocalName; + } + BG_FILE_INFO; + + typedef struct _BG_JOB_PROGRESS + { + UINT64 BytesTotal; + UINT64 BytesTransferred; + + ULONG FilesTotal; + ULONG FilesTransferred; + } + BG_JOB_PROGRESS; + + typedef struct _BG_JOB_TIMES + { + FILETIME CreationTime; + FILETIME ModificationTime; + FILETIME TransferCompletionTime; + } + BG_JOB_TIMES; + + typedef enum BG_JOB_PRIORITY + { + BG_JOB_PRIORITY_FOREGROUND, + BG_JOB_PRIORITY_HIGH, + BG_JOB_PRIORITY_NORMAL, + BG_JOB_PRIORITY_LOW, + + } BG_JOB_PRIORITY; + + typedef enum BG_JOB_STATE + { + BG_JOB_STATE_QUEUED, + BG_JOB_STATE_CONNECTING, + BG_JOB_STATE_TRANSFERRING, + BG_JOB_STATE_SUSPENDED, + BG_JOB_STATE_ERROR, + BG_JOB_STATE_TRANSIENT_ERROR, + BG_JOB_STATE_TRANSFERRED, + BG_JOB_STATE_ACKNOWLEDGED, + BG_JOB_STATE_CANCELLED + + } BG_JOB_STATE; + + typedef enum BG_JOB_TYPE + { + BG_JOB_TYPE_DOWNLOAD, + BG_JOB_TYPE_UPLOAD, + BG_JOB_TYPE_UPLOAD_REPLY + + } BG_JOB_TYPE; + + typedef enum BG_JOB_PROXY_USAGE + { + BG_JOB_PROXY_USAGE_PRECONFIG, + BG_JOB_PROXY_USAGE_NO_PROXY, + BG_JOB_PROXY_USAGE_OVERRIDE, + BG_JOB_PROXY_USAGE_AUTODETECT + } BG_JOB_PROXY_USAGE; + + //-------------------------------------------------------------------- + + // + // Returns E_INVALIDARG if one of the filesets has + // - local name is blank + // - local name contains invalid characters + // - remote name is blank + // - remote name has invalid format + // + // Returns CO_E_NOT_SUPPORTED if + // - remote URL contains unsupported protocol + // + HRESULT + AddFileSet( + [in] ULONG cFileCount, + [in, size_is(cFileCount)] BG_FILE_INFO *pFileSet + ); + + HRESULT + AddFile( + [in] LPCWSTR RemoteUrl, + [in] LPCWSTR LocalName + ); + + // + // Gets an enumerator object for all files in the job. + // + HRESULT + EnumFiles( + [out] IEnumBackgroundCopyFiles ** pEnum + ); + + // + // Pause all activity on the job. The service will take no action until one of + // Resume(), Cancel(), Complete() is called. + // + // if already suspended, just returns S_OK. + // + HRESULT Suspend(); + + // + // Enable downloading for this job. Job properties cannot be modified + // after Resume() until the app calls Suspend(). + // + // if already running, just returns S_OK. + // + HRESULT Resume(); + + // + // Permanently stop the job. The service will delete the job metadata and downloaded files. + // + // If already cancelled or resumed, returns ??? + // + HRESULT Cancel(); + + // + // Acknowledges receipt of the job-complete notification. The service will delete + // the job metadata and leave the downloaded files. + // + HRESULT Complete(); + + //-------------------------------------------------------------------- + + HRESULT GetId( [out] GUID *pVal ); + + HRESULT GetType( [out] BG_JOB_TYPE * pVal ); + + HRESULT GetProgress( [out] BG_JOB_PROGRESS *pVal ); + + HRESULT GetTimes( [out] BG_JOB_TIMES * pVal ); + + HRESULT GetState( [out] BG_JOB_STATE *pVal ); + + HRESULT GetError( [out] IBackgroundCopyError ** ppError ); + + // + // The owner of the job, represented as a string. + // Only the owner and admins are allowed to see or change the job. + // + HRESULT GetOwner( [out] LPWSTR *pVal ); + + // + // name of the job, suitable for display in UI + // + HRESULT SetDisplayName( [in] LPCWSTR Val ); + HRESULT GetDisplayName( [out] LPWSTR *pVal ); + + // + // a field for use by the app + // + HRESULT SetDescription( [in] LPCWSTR Val ); + HRESULT GetDescription( [out] LPWSTR *pVal ); + + // + // the priority of the job in the queue. + // default = PRIORITY_NORMAL + // values not in BG_JOB_PRIORITY return E_NOTIMPL. + // + HRESULT SetPriority( [in] BG_JOB_PRIORITY Val ); + HRESULT GetPriority( [out] BG_JOB_PRIORITY *pVal ); + + // + // ignores extra flags? + // + HRESULT SetNotifyFlags( [in] ULONG Val ); + HRESULT GetNotifyFlags( [out] ULONG *pVal ); + + // interface pointer that implements the IBackgroundCallback interface for notifications. + // If the pointer becomes invalid, the service will try to create a new notification object + // with the notify CLSID. + HRESULT SetNotifyInterface( [in] IUnknown * Val ); + HRESULT GetNotifyInterface( [out] IUnknown ** pVal ); + + HRESULT SetMinimumRetryDelay( [in] ULONG Seconds ); + HRESULT GetMinimumRetryDelay( [out] ULONG * Seconds ); + + HRESULT SetNoProgressTimeout( [in] ULONG Seconds ); + HRESULT GetNoProgressTimeout( [out] ULONG * Seconds ); + + HRESULT GetErrorCount( [out] ULONG * Errors ); + + HRESULT SetProxySettings( + [in] BG_JOB_PROXY_USAGE ProxyUsage, + [in,string,unique] const WCHAR * ProxyList, + [in,string,unique] const WCHAR * ProxyBypassList ); + + HRESULT GetProxySettings( + [out] BG_JOB_PROXY_USAGE *pProxyUsage, + [out] LPWSTR *pProxyList, + [out] LPWSTR *pProxyBypassList ); + + HRESULT TakeOwnership(); + +} + + +// ============================================== +// IEnumJobs Interface +// This interface allows enumerating the jobs under a Job +[ + uuid(1af4f612-3b71-466f-8f58-7b6f73ac57ad), + helpstring("IEnumBackgroundCopyJobs2 Interface"), + odl +] +interface IEnumBackgroundCopyJobs : IUnknown +{ + HRESULT Next( [in] ULONG celt, + [out, size_is(BG_ENUM_SIZEIS(celt)), length_is(BG_ENUM_LENGTHIS(celt,pceltFetched))] IBackgroundCopyJob **rgelt, + [in,out,unique] ULONG *pceltFetched ); + + HRESULT Skip( [in] ULONG celt); + + HRESULT Reset(); + + HRESULT Clone( [out] IEnumBackgroundCopyJobs **ppenum ); + + HRESULT GetCount( [out] ULONG *puCount ); +} + +cpp_quote("#define BG_NOTIFY_JOB_TRANSFERRED 0x0001") +cpp_quote("#define BG_NOTIFY_JOB_ERROR 0x0002") +cpp_quote("#define BG_NOTIFY_DISABLE 0x0004") +cpp_quote("#define BG_NOTIFY_JOB_MODIFICATION 0x0008") +cpp_quote("#define BG_NOTIFY_FILE_TRANSFERRED 0x0010") +cpp_quote("#define BG_NOTIFY_FILE_RANGES_TRANSFERRED 0x0020") + +// ============================================== +// IBackgroundCallback Interface +// This interface is implemented by the client and is used by the queue manager +// to supply progress information to the client. +[ + uuid(97ea99c7-0186-4ad4-8df9-c5b4e0ed6b22), +#if !defined( BITS_DONT_USE_ASYNC_DCOM ) + async_uuid(ca29d251-b4bb-4679-a3d9-ae8006119d54), +#endif + helpstring("IBackgroundCopyCallback Interface"), + odl +] +interface IBackgroundCopyCallback : IUnknown +{ + // + // A job has transferred successfully. + // + HRESULT JobTransferred( [in] IBackgroundCopyJob *pJob ); + + // + // An error occurred, and the service has suspended the job. + // Fix the error and resume the job. + // Get error details by calling (*pFailingJob)->GetStatus(). + // + HRESULT JobError( [in] IBackgroundCopyJob *pJob, + [in] IBackgroundCopyError * pError ); + + // + // The job has been modified. Intendended for user interfaces. + // + HRESULT JobModification( [in] IBackgroundCopyJob *pJob, + [in] DWORD dwReserved ); + +} + +// +// IBackgroundCopyManager is the "root" interface to the background file copy component. +// +[ + uuid(5ce34c0d-0dc9-4c1f-897c-daa1b78cee7c), + helpstring("Background Copy interface"), + odl +] +interface IBackgroundCopyManager : IUnknown +{ + + HRESULT CreateJob( + [in] LPCWSTR DisplayName, + [in] BG_JOB_TYPE Type, + [out] GUID * pJobId, + [out] IBackgroundCopyJob **ppJob ); + + HRESULT GetJob( [in] REFGUID jobID, + [out] IBackgroundCopyJob **ppJob ); + + // + // Without this flag, jobs not owned by the caller are excluded from the enumeration. + // With this flag, those jobs are included. Only works if the caller is an administrator. + // + cpp_quote("#define BG_JOB_ENUM_ALL_USERS 0x0001") + + HRESULT EnumJobs( [in] DWORD dwFlags, + [out] IEnumBackgroundCopyJobs **ppEnum ); + + HRESULT GetErrorDescription( + [in] HRESULT hResult, + [in] DWORD LanguageId, + [out] LPWSTR *pErrorDescription ); +} + +//--------------------------------------------------------------------------- + +[ + uuid(1deeb74f-7915-4560-b558-918c83f176a6), + helpstring("Microsoft Background Copy Queue Manager 1.0"), + lcid(0x0000), + version(1.0) +] +library BackgroundCopyManager +{ + [ + uuid(4991d34b-80a1-4291-83b6-3328366b9097), + helpstring("Background copy control class") + ] + coclass BackgroundCopyManager + { + [default] interface IBackgroundCopyManager; + }; + interface IBackgroundCopyCallback; +} + +cpp_quote("#include \"bits1_5.h\"") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Bits.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Bits.h new file mode 100644 index 0000000000000000000000000000000000000000..96c5f9617ccbcc9bcf4501a82cf138d7d10b0b11 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Bits.h @@ -0,0 +1,1590 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bits_h__ +#define __bits_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBackgroundCopyFile_FWD_DEFINED__ +#define __IBackgroundCopyFile_FWD_DEFINED__ +typedef interface IBackgroundCopyFile IBackgroundCopyFile; + +#endif /* __IBackgroundCopyFile_FWD_DEFINED__ */ + + +#ifndef __IEnumBackgroundCopyFiles_FWD_DEFINED__ +#define __IEnumBackgroundCopyFiles_FWD_DEFINED__ +typedef interface IEnumBackgroundCopyFiles IEnumBackgroundCopyFiles; + +#endif /* __IEnumBackgroundCopyFiles_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyError_FWD_DEFINED__ +#define __IBackgroundCopyError_FWD_DEFINED__ +typedef interface IBackgroundCopyError IBackgroundCopyError; + +#endif /* __IBackgroundCopyError_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyJob_FWD_DEFINED__ +#define __IBackgroundCopyJob_FWD_DEFINED__ +typedef interface IBackgroundCopyJob IBackgroundCopyJob; + +#endif /* __IBackgroundCopyJob_FWD_DEFINED__ */ + + +#ifndef __IEnumBackgroundCopyJobs_FWD_DEFINED__ +#define __IEnumBackgroundCopyJobs_FWD_DEFINED__ +typedef interface IEnumBackgroundCopyJobs IEnumBackgroundCopyJobs; + +#endif /* __IEnumBackgroundCopyJobs_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyCallback_FWD_DEFINED__ +#define __IBackgroundCopyCallback_FWD_DEFINED__ +typedef interface IBackgroundCopyCallback IBackgroundCopyCallback; + +#endif /* __IBackgroundCopyCallback_FWD_DEFINED__ */ + + +#ifndef __AsyncIBackgroundCopyCallback_FWD_DEFINED__ +#define __AsyncIBackgroundCopyCallback_FWD_DEFINED__ +typedef interface AsyncIBackgroundCopyCallback AsyncIBackgroundCopyCallback; + +#endif /* __AsyncIBackgroundCopyCallback_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyManager_FWD_DEFINED__ +#define __IBackgroundCopyManager_FWD_DEFINED__ +typedef interface IBackgroundCopyManager IBackgroundCopyManager; + +#endif /* __IBackgroundCopyManager_FWD_DEFINED__ */ + + +#ifndef __BackgroundCopyManager_FWD_DEFINED__ +#define __BackgroundCopyManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackgroundCopyManager BackgroundCopyManager; +#else +typedef struct BackgroundCopyManager BackgroundCopyManager; +#endif /* __cplusplus */ + +#endif /* __BackgroundCopyManager_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyCallback_FWD_DEFINED__ +#define __IBackgroundCopyCallback_FWD_DEFINED__ +typedef interface IBackgroundCopyCallback IBackgroundCopyCallback; + +#endif /* __IBackgroundCopyCallback_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bits_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include "bitsmsg.h" +#define BG_SIZE_UNKNOWN (UINT64)(-1) + + +extern RPC_IF_HANDLE __MIDL_itf_bits_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits_0000_0000_v0_0_s_ifspec; + +#ifndef __IBackgroundCopyFile_INTERFACE_DEFINED__ +#define __IBackgroundCopyFile_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyFile */ +/* [object][uuid] */ + +typedef struct _BG_FILE_PROGRESS + { + UINT64 BytesTotal; + UINT64 BytesTransferred; + BOOL Completed; + } BG_FILE_PROGRESS; + + +EXTERN_C const IID IID_IBackgroundCopyFile; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("01b7bd23-fb88-4a77-8490-5891d3e4653a") + IBackgroundCopyFile : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRemoteName( + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLocalName( + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProgress( + /* [out] */ __RPC__out BG_FILE_PROGRESS *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyFileVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyFile * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyFile * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyFile * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetRemoteName) + HRESULT ( STDMETHODCALLTYPE *GetRemoteName )( + __RPC__in IBackgroundCopyFile * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetLocalName) + HRESULT ( STDMETHODCALLTYPE *GetLocalName )( + __RPC__in IBackgroundCopyFile * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyFile * This, + /* [out] */ __RPC__out BG_FILE_PROGRESS *pVal); + + END_INTERFACE + } IBackgroundCopyFileVtbl; + + interface IBackgroundCopyFile + { + CONST_VTBL struct IBackgroundCopyFileVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyFile_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyFile_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyFile_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyFile_GetRemoteName(This,pVal) \ + ( (This)->lpVtbl -> GetRemoteName(This,pVal) ) + +#define IBackgroundCopyFile_GetLocalName(This,pVal) \ + ( (This)->lpVtbl -> GetLocalName(This,pVal) ) + +#define IBackgroundCopyFile_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyFile_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumBackgroundCopyFiles_INTERFACE_DEFINED__ +#define __IEnumBackgroundCopyFiles_INTERFACE_DEFINED__ + +/* interface IEnumBackgroundCopyFiles */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IEnumBackgroundCopyFiles; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ca51e165-c365-424c-8d41-24aaa4ff3c40") + IEnumBackgroundCopyFiles : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, pceltFetched ? *pceltFetched : celt) IBackgroundCopyFile **rgelt, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyFiles **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out ULONG *puCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumBackgroundCopyFilesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumBackgroundCopyFiles * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumBackgroundCopyFiles * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumBackgroundCopyFiles * This); + + DECLSPEC_XFGVIRT(IEnumBackgroundCopyFiles, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumBackgroundCopyFiles * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, pceltFetched ? *pceltFetched : celt) IBackgroundCopyFile **rgelt, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumBackgroundCopyFiles, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumBackgroundCopyFiles * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumBackgroundCopyFiles, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumBackgroundCopyFiles * This); + + DECLSPEC_XFGVIRT(IEnumBackgroundCopyFiles, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumBackgroundCopyFiles * This, + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyFiles **ppenum); + + DECLSPEC_XFGVIRT(IEnumBackgroundCopyFiles, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IEnumBackgroundCopyFiles * This, + /* [out] */ __RPC__out ULONG *puCount); + + END_INTERFACE + } IEnumBackgroundCopyFilesVtbl; + + interface IEnumBackgroundCopyFiles + { + CONST_VTBL struct IEnumBackgroundCopyFilesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumBackgroundCopyFiles_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumBackgroundCopyFiles_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumBackgroundCopyFiles_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumBackgroundCopyFiles_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumBackgroundCopyFiles_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumBackgroundCopyFiles_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumBackgroundCopyFiles_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#define IEnumBackgroundCopyFiles_GetCount(This,puCount) \ + ( (This)->lpVtbl -> GetCount(This,puCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumBackgroundCopyFiles_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyError_INTERFACE_DEFINED__ +#define __IBackgroundCopyError_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyError */ +/* [object][helpstring][uuid] */ + +typedef +enum BG_ERROR_CONTEXT + { + BG_ERROR_CONTEXT_NONE = 0, + BG_ERROR_CONTEXT_UNKNOWN = 1, + BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER = 2, + BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION = 3, + BG_ERROR_CONTEXT_LOCAL_FILE = 4, + BG_ERROR_CONTEXT_REMOTE_FILE = 5, + BG_ERROR_CONTEXT_GENERAL_TRANSPORT = 6, + BG_ERROR_CONTEXT_REMOTE_APPLICATION = 7, + BG_ERROR_CONTEXT_SERVER_CERTIFICATE_CALLBACK = 8 + } BG_ERROR_CONTEXT; + + +EXTERN_C const IID IID_IBackgroundCopyError; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("19c613a0-fcb8-4f28-81ae-897c3d078f81") + IBackgroundCopyError : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetError( + /* [ref][out] */ __RPC__out BG_ERROR_CONTEXT *pContext, + /* [ref][out] */ __RPC__out HRESULT *pCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFile( + /* [out] */ __RPC__deref_out_opt IBackgroundCopyFile **pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetErrorDescription( + /* [in] */ DWORD LanguageId, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pErrorDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetErrorContextDescription( + /* [in] */ DWORD LanguageId, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pContextDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProtocol( + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pProtocol) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyErrorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyError * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyError * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyError * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyError, GetError) + HRESULT ( STDMETHODCALLTYPE *GetError )( + __RPC__in IBackgroundCopyError * This, + /* [ref][out] */ __RPC__out BG_ERROR_CONTEXT *pContext, + /* [ref][out] */ __RPC__out HRESULT *pCode); + + DECLSPEC_XFGVIRT(IBackgroundCopyError, GetFile) + HRESULT ( STDMETHODCALLTYPE *GetFile )( + __RPC__in IBackgroundCopyError * This, + /* [out] */ __RPC__deref_out_opt IBackgroundCopyFile **pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyError, GetErrorDescription) + HRESULT ( STDMETHODCALLTYPE *GetErrorDescription )( + __RPC__in IBackgroundCopyError * This, + /* [in] */ DWORD LanguageId, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pErrorDescription); + + DECLSPEC_XFGVIRT(IBackgroundCopyError, GetErrorContextDescription) + HRESULT ( STDMETHODCALLTYPE *GetErrorContextDescription )( + __RPC__in IBackgroundCopyError * This, + /* [in] */ DWORD LanguageId, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pContextDescription); + + DECLSPEC_XFGVIRT(IBackgroundCopyError, GetProtocol) + HRESULT ( STDMETHODCALLTYPE *GetProtocol )( + __RPC__in IBackgroundCopyError * This, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pProtocol); + + END_INTERFACE + } IBackgroundCopyErrorVtbl; + + interface IBackgroundCopyError + { + CONST_VTBL struct IBackgroundCopyErrorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyError_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyError_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyError_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyError_GetError(This,pContext,pCode) \ + ( (This)->lpVtbl -> GetError(This,pContext,pCode) ) + +#define IBackgroundCopyError_GetFile(This,pVal) \ + ( (This)->lpVtbl -> GetFile(This,pVal) ) + +#define IBackgroundCopyError_GetErrorDescription(This,LanguageId,pErrorDescription) \ + ( (This)->lpVtbl -> GetErrorDescription(This,LanguageId,pErrorDescription) ) + +#define IBackgroundCopyError_GetErrorContextDescription(This,LanguageId,pContextDescription) \ + ( (This)->lpVtbl -> GetErrorContextDescription(This,LanguageId,pContextDescription) ) + +#define IBackgroundCopyError_GetProtocol(This,pProtocol) \ + ( (This)->lpVtbl -> GetProtocol(This,pProtocol) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyError_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyJob_INTERFACE_DEFINED__ +#define __IBackgroundCopyJob_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyJob */ +/* [object][helpstring][uuid] */ + +typedef struct _BG_FILE_INFO + { + LPWSTR RemoteName; + LPWSTR LocalName; + } BG_FILE_INFO; + +typedef struct _BG_JOB_PROGRESS + { + UINT64 BytesTotal; + UINT64 BytesTransferred; + ULONG FilesTotal; + ULONG FilesTransferred; + } BG_JOB_PROGRESS; + +typedef struct _BG_JOB_TIMES + { + FILETIME CreationTime; + FILETIME ModificationTime; + FILETIME TransferCompletionTime; + } BG_JOB_TIMES; + +typedef +enum BG_JOB_PRIORITY + { + BG_JOB_PRIORITY_FOREGROUND = 0, + BG_JOB_PRIORITY_HIGH = ( BG_JOB_PRIORITY_FOREGROUND + 1 ) , + BG_JOB_PRIORITY_NORMAL = ( BG_JOB_PRIORITY_HIGH + 1 ) , + BG_JOB_PRIORITY_LOW = ( BG_JOB_PRIORITY_NORMAL + 1 ) + } BG_JOB_PRIORITY; + +typedef +enum BG_JOB_STATE + { + BG_JOB_STATE_QUEUED = 0, + BG_JOB_STATE_CONNECTING = ( BG_JOB_STATE_QUEUED + 1 ) , + BG_JOB_STATE_TRANSFERRING = ( BG_JOB_STATE_CONNECTING + 1 ) , + BG_JOB_STATE_SUSPENDED = ( BG_JOB_STATE_TRANSFERRING + 1 ) , + BG_JOB_STATE_ERROR = ( BG_JOB_STATE_SUSPENDED + 1 ) , + BG_JOB_STATE_TRANSIENT_ERROR = ( BG_JOB_STATE_ERROR + 1 ) , + BG_JOB_STATE_TRANSFERRED = ( BG_JOB_STATE_TRANSIENT_ERROR + 1 ) , + BG_JOB_STATE_ACKNOWLEDGED = ( BG_JOB_STATE_TRANSFERRED + 1 ) , + BG_JOB_STATE_CANCELLED = ( BG_JOB_STATE_ACKNOWLEDGED + 1 ) + } BG_JOB_STATE; + +typedef +enum BG_JOB_TYPE + { + BG_JOB_TYPE_DOWNLOAD = 0, + BG_JOB_TYPE_UPLOAD = ( BG_JOB_TYPE_DOWNLOAD + 1 ) , + BG_JOB_TYPE_UPLOAD_REPLY = ( BG_JOB_TYPE_UPLOAD + 1 ) + } BG_JOB_TYPE; + +typedef +enum BG_JOB_PROXY_USAGE + { + BG_JOB_PROXY_USAGE_PRECONFIG = 0, + BG_JOB_PROXY_USAGE_NO_PROXY = ( BG_JOB_PROXY_USAGE_PRECONFIG + 1 ) , + BG_JOB_PROXY_USAGE_OVERRIDE = ( BG_JOB_PROXY_USAGE_NO_PROXY + 1 ) , + BG_JOB_PROXY_USAGE_AUTODETECT = ( BG_JOB_PROXY_USAGE_OVERRIDE + 1 ) + } BG_JOB_PROXY_USAGE; + + +EXTERN_C const IID IID_IBackgroundCopyJob; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("37668d37-507e-4160-9316-26306d150b12") + IBackgroundCopyJob : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddFileSet( + /* [in] */ ULONG cFileCount, + /* [size_is][in] */ __RPC__in_ecount_full(cFileCount) BG_FILE_INFO *pFileSet) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddFile( + /* [in] */ __RPC__in LPCWSTR RemoteUrl, + /* [in] */ __RPC__in LPCWSTR LocalName) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumFiles( + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyFiles **pEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Suspend( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Resume( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Complete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetId( + /* [out] */ __RPC__out GUID *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetType( + /* [out] */ __RPC__out BG_JOB_TYPE *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProgress( + /* [out] */ __RPC__out BG_JOB_PROGRESS *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTimes( + /* [out] */ __RPC__out BG_JOB_TIMES *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetState( + /* [out] */ __RPC__out BG_JOB_STATE *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetError( + /* [out] */ __RPC__deref_out_opt IBackgroundCopyError **ppError) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOwner( + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDisplayName( + /* [in] */ __RPC__in LPCWSTR Val) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDisplayName( + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDescription( + /* [in] */ __RPC__in LPCWSTR Val) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescription( + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPriority( + /* [in] */ BG_JOB_PRIORITY Val) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPriority( + /* [out] */ __RPC__out BG_JOB_PRIORITY *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetNotifyFlags( + /* [in] */ ULONG Val) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNotifyFlags( + /* [out] */ __RPC__out ULONG *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetNotifyInterface( + /* [in] */ __RPC__in_opt IUnknown *Val) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNotifyInterface( + /* [out] */ __RPC__deref_out_opt IUnknown **pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMinimumRetryDelay( + /* [in] */ ULONG Seconds) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMinimumRetryDelay( + /* [out] */ __RPC__out ULONG *Seconds) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetNoProgressTimeout( + /* [in] */ ULONG Seconds) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNoProgressTimeout( + /* [out] */ __RPC__out ULONG *Seconds) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetErrorCount( + /* [out] */ __RPC__out ULONG *Errors) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProxySettings( + /* [in] */ BG_JOB_PROXY_USAGE ProxyUsage, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyList, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyBypassList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProxySettings( + /* [out] */ __RPC__out BG_JOB_PROXY_USAGE *pProxyUsage, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyList, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyBypassList) = 0; + + virtual HRESULT STDMETHODCALLTYPE TakeOwnership( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyJobVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyJob * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyJob * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, AddFileSet) + HRESULT ( STDMETHODCALLTYPE *AddFileSet )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ ULONG cFileCount, + /* [size_is][in] */ __RPC__in_ecount_full(cFileCount) BG_FILE_INFO *pFileSet); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, AddFile) + HRESULT ( STDMETHODCALLTYPE *AddFile )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ __RPC__in LPCWSTR RemoteUrl, + /* [in] */ __RPC__in LPCWSTR LocalName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, EnumFiles) + HRESULT ( STDMETHODCALLTYPE *EnumFiles )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyFiles **pEnum); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + __RPC__in IBackgroundCopyJob * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IBackgroundCopyJob * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IBackgroundCopyJob * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Complete) + HRESULT ( STDMETHODCALLTYPE *Complete )( + __RPC__in IBackgroundCopyJob * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetId) + HRESULT ( STDMETHODCALLTYPE *GetId )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out GUID *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetType) + HRESULT ( STDMETHODCALLTYPE *GetType )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out BG_JOB_TYPE *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out BG_JOB_PROGRESS *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetTimes) + HRESULT ( STDMETHODCALLTYPE *GetTimes )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out BG_JOB_TIMES *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out BG_JOB_STATE *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetError) + HRESULT ( STDMETHODCALLTYPE *GetError )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__deref_out_opt IBackgroundCopyError **ppError); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetOwner) + HRESULT ( STDMETHODCALLTYPE *GetOwner )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetDisplayName) + HRESULT ( STDMETHODCALLTYPE *SetDisplayName )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetDescription) + HRESULT ( STDMETHODCALLTYPE *SetDescription )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetPriority) + HRESULT ( STDMETHODCALLTYPE *SetPriority )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ BG_JOB_PRIORITY Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetPriority) + HRESULT ( STDMETHODCALLTYPE *GetPriority )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out BG_JOB_PRIORITY *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *SetNotifyFlags )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ ULONG Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *GetNotifyFlags )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNotifyInterface) + HRESULT ( STDMETHODCALLTYPE *SetNotifyInterface )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ __RPC__in_opt IUnknown *Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNotifyInterface) + HRESULT ( STDMETHODCALLTYPE *GetNotifyInterface )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__deref_out_opt IUnknown **pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetMinimumRetryDelay) + HRESULT ( STDMETHODCALLTYPE *SetMinimumRetryDelay )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ ULONG Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetMinimumRetryDelay) + HRESULT ( STDMETHODCALLTYPE *GetMinimumRetryDelay )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out ULONG *Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNoProgressTimeout) + HRESULT ( STDMETHODCALLTYPE *SetNoProgressTimeout )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ ULONG Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNoProgressTimeout) + HRESULT ( STDMETHODCALLTYPE *GetNoProgressTimeout )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out ULONG *Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetErrorCount) + HRESULT ( STDMETHODCALLTYPE *GetErrorCount )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out ULONG *Errors); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetProxySettings) + HRESULT ( STDMETHODCALLTYPE *SetProxySettings )( + __RPC__in IBackgroundCopyJob * This, + /* [in] */ BG_JOB_PROXY_USAGE ProxyUsage, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyList, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyBypassList); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetProxySettings) + HRESULT ( STDMETHODCALLTYPE *GetProxySettings )( + __RPC__in IBackgroundCopyJob * This, + /* [out] */ __RPC__out BG_JOB_PROXY_USAGE *pProxyUsage, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyList, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyBypassList); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, TakeOwnership) + HRESULT ( STDMETHODCALLTYPE *TakeOwnership )( + __RPC__in IBackgroundCopyJob * This); + + END_INTERFACE + } IBackgroundCopyJobVtbl; + + interface IBackgroundCopyJob + { + CONST_VTBL struct IBackgroundCopyJobVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyJob_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyJob_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyJob_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyJob_AddFileSet(This,cFileCount,pFileSet) \ + ( (This)->lpVtbl -> AddFileSet(This,cFileCount,pFileSet) ) + +#define IBackgroundCopyJob_AddFile(This,RemoteUrl,LocalName) \ + ( (This)->lpVtbl -> AddFile(This,RemoteUrl,LocalName) ) + +#define IBackgroundCopyJob_EnumFiles(This,pEnum) \ + ( (This)->lpVtbl -> EnumFiles(This,pEnum) ) + +#define IBackgroundCopyJob_Suspend(This) \ + ( (This)->lpVtbl -> Suspend(This) ) + +#define IBackgroundCopyJob_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#define IBackgroundCopyJob_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IBackgroundCopyJob_Complete(This) \ + ( (This)->lpVtbl -> Complete(This) ) + +#define IBackgroundCopyJob_GetId(This,pVal) \ + ( (This)->lpVtbl -> GetId(This,pVal) ) + +#define IBackgroundCopyJob_GetType(This,pVal) \ + ( (This)->lpVtbl -> GetType(This,pVal) ) + +#define IBackgroundCopyJob_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + +#define IBackgroundCopyJob_GetTimes(This,pVal) \ + ( (This)->lpVtbl -> GetTimes(This,pVal) ) + +#define IBackgroundCopyJob_GetState(This,pVal) \ + ( (This)->lpVtbl -> GetState(This,pVal) ) + +#define IBackgroundCopyJob_GetError(This,ppError) \ + ( (This)->lpVtbl -> GetError(This,ppError) ) + +#define IBackgroundCopyJob_GetOwner(This,pVal) \ + ( (This)->lpVtbl -> GetOwner(This,pVal) ) + +#define IBackgroundCopyJob_SetDisplayName(This,Val) \ + ( (This)->lpVtbl -> SetDisplayName(This,Val) ) + +#define IBackgroundCopyJob_GetDisplayName(This,pVal) \ + ( (This)->lpVtbl -> GetDisplayName(This,pVal) ) + +#define IBackgroundCopyJob_SetDescription(This,Val) \ + ( (This)->lpVtbl -> SetDescription(This,Val) ) + +#define IBackgroundCopyJob_GetDescription(This,pVal) \ + ( (This)->lpVtbl -> GetDescription(This,pVal) ) + +#define IBackgroundCopyJob_SetPriority(This,Val) \ + ( (This)->lpVtbl -> SetPriority(This,Val) ) + +#define IBackgroundCopyJob_GetPriority(This,pVal) \ + ( (This)->lpVtbl -> GetPriority(This,pVal) ) + +#define IBackgroundCopyJob_SetNotifyFlags(This,Val) \ + ( (This)->lpVtbl -> SetNotifyFlags(This,Val) ) + +#define IBackgroundCopyJob_GetNotifyFlags(This,pVal) \ + ( (This)->lpVtbl -> GetNotifyFlags(This,pVal) ) + +#define IBackgroundCopyJob_SetNotifyInterface(This,Val) \ + ( (This)->lpVtbl -> SetNotifyInterface(This,Val) ) + +#define IBackgroundCopyJob_GetNotifyInterface(This,pVal) \ + ( (This)->lpVtbl -> GetNotifyInterface(This,pVal) ) + +#define IBackgroundCopyJob_SetMinimumRetryDelay(This,Seconds) \ + ( (This)->lpVtbl -> SetMinimumRetryDelay(This,Seconds) ) + +#define IBackgroundCopyJob_GetMinimumRetryDelay(This,Seconds) \ + ( (This)->lpVtbl -> GetMinimumRetryDelay(This,Seconds) ) + +#define IBackgroundCopyJob_SetNoProgressTimeout(This,Seconds) \ + ( (This)->lpVtbl -> SetNoProgressTimeout(This,Seconds) ) + +#define IBackgroundCopyJob_GetNoProgressTimeout(This,Seconds) \ + ( (This)->lpVtbl -> GetNoProgressTimeout(This,Seconds) ) + +#define IBackgroundCopyJob_GetErrorCount(This,Errors) \ + ( (This)->lpVtbl -> GetErrorCount(This,Errors) ) + +#define IBackgroundCopyJob_SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) \ + ( (This)->lpVtbl -> SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) ) + +#define IBackgroundCopyJob_GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) \ + ( (This)->lpVtbl -> GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) ) + +#define IBackgroundCopyJob_TakeOwnership(This) \ + ( (This)->lpVtbl -> TakeOwnership(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyJob_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumBackgroundCopyJobs_INTERFACE_DEFINED__ +#define __IEnumBackgroundCopyJobs_INTERFACE_DEFINED__ + +/* interface IEnumBackgroundCopyJobs */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IEnumBackgroundCopyJobs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1af4f612-3b71-466f-8f58-7b6f73ac57ad") + IEnumBackgroundCopyJobs : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, pceltFetched ? *pceltFetched : celt) IBackgroundCopyJob **rgelt, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyJobs **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out ULONG *puCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumBackgroundCopyJobsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumBackgroundCopyJobs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumBackgroundCopyJobs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumBackgroundCopyJobs * This); + + DECLSPEC_XFGVIRT(IEnumBackgroundCopyJobs, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumBackgroundCopyJobs * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, pceltFetched ? *pceltFetched : celt) IBackgroundCopyJob **rgelt, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumBackgroundCopyJobs, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumBackgroundCopyJobs * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumBackgroundCopyJobs, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumBackgroundCopyJobs * This); + + DECLSPEC_XFGVIRT(IEnumBackgroundCopyJobs, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumBackgroundCopyJobs * This, + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyJobs **ppenum); + + DECLSPEC_XFGVIRT(IEnumBackgroundCopyJobs, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IEnumBackgroundCopyJobs * This, + /* [out] */ __RPC__out ULONG *puCount); + + END_INTERFACE + } IEnumBackgroundCopyJobsVtbl; + + interface IEnumBackgroundCopyJobs + { + CONST_VTBL struct IEnumBackgroundCopyJobsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumBackgroundCopyJobs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumBackgroundCopyJobs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumBackgroundCopyJobs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumBackgroundCopyJobs_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumBackgroundCopyJobs_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumBackgroundCopyJobs_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumBackgroundCopyJobs_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#define IEnumBackgroundCopyJobs_GetCount(This,puCount) \ + ( (This)->lpVtbl -> GetCount(This,puCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumBackgroundCopyJobs_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bits_0000_0005 */ +/* [local] */ + +#define BG_NOTIFY_JOB_TRANSFERRED 0x0001 +#define BG_NOTIFY_JOB_ERROR 0x0002 +#define BG_NOTIFY_DISABLE 0x0004 +#define BG_NOTIFY_JOB_MODIFICATION 0x0008 +#define BG_NOTIFY_FILE_TRANSFERRED 0x0010 +#define BG_NOTIFY_FILE_RANGES_TRANSFERRED 0x0020 + + +extern RPC_IF_HANDLE __MIDL_itf_bits_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits_0000_0005_v0_0_s_ifspec; + +#ifndef __IBackgroundCopyCallback_INTERFACE_DEFINED__ +#define __IBackgroundCopyCallback_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyCallback */ +/* [object][helpstring][async_uuid][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97ea99c7-0186-4ad4-8df9-c5b4e0ed6b22") + IBackgroundCopyCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE JobTransferred( + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob) = 0; + + virtual HRESULT STDMETHODCALLTYPE JobError( + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ __RPC__in_opt IBackgroundCopyError *pError) = 0; + + virtual HRESULT STDMETHODCALLTYPE JobModification( + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ DWORD dwReserved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyCallback * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback, JobTransferred) + HRESULT ( STDMETHODCALLTYPE *JobTransferred )( + __RPC__in IBackgroundCopyCallback * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback, JobError) + HRESULT ( STDMETHODCALLTYPE *JobError )( + __RPC__in IBackgroundCopyCallback * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ __RPC__in_opt IBackgroundCopyError *pError); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback, JobModification) + HRESULT ( STDMETHODCALLTYPE *JobModification )( + __RPC__in IBackgroundCopyCallback * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ DWORD dwReserved); + + END_INTERFACE + } IBackgroundCopyCallbackVtbl; + + interface IBackgroundCopyCallback + { + CONST_VTBL struct IBackgroundCopyCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyCallback_JobTransferred(This,pJob) \ + ( (This)->lpVtbl -> JobTransferred(This,pJob) ) + +#define IBackgroundCopyCallback_JobError(This,pJob,pError) \ + ( (This)->lpVtbl -> JobError(This,pJob,pError) ) + +#define IBackgroundCopyCallback_JobModification(This,pJob,dwReserved) \ + ( (This)->lpVtbl -> JobModification(This,pJob,dwReserved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyCallback_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIBackgroundCopyCallback_INTERFACE_DEFINED__ +#define __AsyncIBackgroundCopyCallback_INTERFACE_DEFINED__ + +/* interface AsyncIBackgroundCopyCallback */ +/* [uuid][object][helpstring] */ + + +EXTERN_C const IID IID_AsyncIBackgroundCopyCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ca29d251-b4bb-4679-a3d9-ae8006119d54") + AsyncIBackgroundCopyCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_JobTransferred( + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_JobTransferred( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_JobError( + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ __RPC__in_opt IBackgroundCopyError *pError) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_JobError( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_JobModification( + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ DWORD dwReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_JobModification( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIBackgroundCopyCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIBackgroundCopyCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIBackgroundCopyCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIBackgroundCopyCallback * This); + + DECLSPEC_XFGVIRT(AsyncIBackgroundCopyCallback, Begin_JobTransferred) + HRESULT ( STDMETHODCALLTYPE *Begin_JobTransferred )( + __RPC__in AsyncIBackgroundCopyCallback * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob); + + DECLSPEC_XFGVIRT(AsyncIBackgroundCopyCallback, Finish_JobTransferred) + HRESULT ( STDMETHODCALLTYPE *Finish_JobTransferred )( + __RPC__in AsyncIBackgroundCopyCallback * This); + + DECLSPEC_XFGVIRT(AsyncIBackgroundCopyCallback, Begin_JobError) + HRESULT ( STDMETHODCALLTYPE *Begin_JobError )( + __RPC__in AsyncIBackgroundCopyCallback * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ __RPC__in_opt IBackgroundCopyError *pError); + + DECLSPEC_XFGVIRT(AsyncIBackgroundCopyCallback, Finish_JobError) + HRESULT ( STDMETHODCALLTYPE *Finish_JobError )( + __RPC__in AsyncIBackgroundCopyCallback * This); + + DECLSPEC_XFGVIRT(AsyncIBackgroundCopyCallback, Begin_JobModification) + HRESULT ( STDMETHODCALLTYPE *Begin_JobModification )( + __RPC__in AsyncIBackgroundCopyCallback * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ DWORD dwReserved); + + DECLSPEC_XFGVIRT(AsyncIBackgroundCopyCallback, Finish_JobModification) + HRESULT ( STDMETHODCALLTYPE *Finish_JobModification )( + __RPC__in AsyncIBackgroundCopyCallback * This); + + END_INTERFACE + } AsyncIBackgroundCopyCallbackVtbl; + + interface AsyncIBackgroundCopyCallback + { + CONST_VTBL struct AsyncIBackgroundCopyCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIBackgroundCopyCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIBackgroundCopyCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIBackgroundCopyCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIBackgroundCopyCallback_Begin_JobTransferred(This,pJob) \ + ( (This)->lpVtbl -> Begin_JobTransferred(This,pJob) ) + +#define AsyncIBackgroundCopyCallback_Finish_JobTransferred(This) \ + ( (This)->lpVtbl -> Finish_JobTransferred(This) ) + +#define AsyncIBackgroundCopyCallback_Begin_JobError(This,pJob,pError) \ + ( (This)->lpVtbl -> Begin_JobError(This,pJob,pError) ) + +#define AsyncIBackgroundCopyCallback_Finish_JobError(This) \ + ( (This)->lpVtbl -> Finish_JobError(This) ) + +#define AsyncIBackgroundCopyCallback_Begin_JobModification(This,pJob,dwReserved) \ + ( (This)->lpVtbl -> Begin_JobModification(This,pJob,dwReserved) ) + +#define AsyncIBackgroundCopyCallback_Finish_JobModification(This) \ + ( (This)->lpVtbl -> Finish_JobModification(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIBackgroundCopyCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyManager_INTERFACE_DEFINED__ +#define __IBackgroundCopyManager_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyManager */ +/* [object][helpstring][uuid] */ + +#define BG_JOB_ENUM_ALL_USERS 0x0001 + +EXTERN_C const IID IID_IBackgroundCopyManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5ce34c0d-0dc9-4c1f-897c-daa1b78cee7c") + IBackgroundCopyManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateJob( + /* [in] */ __RPC__in LPCWSTR DisplayName, + /* [in] */ BG_JOB_TYPE Type, + /* [out] */ __RPC__out GUID *pJobId, + /* [out] */ __RPC__deref_out_opt IBackgroundCopyJob **ppJob) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetJob( + /* [in] */ __RPC__in REFGUID jobID, + /* [out] */ __RPC__deref_out_opt IBackgroundCopyJob **ppJob) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumJobs( + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyJobs **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetErrorDescription( + /* [in] */ HRESULT hResult, + /* [in] */ DWORD LanguageId, + /* [out] */ __RPC__deref_out_opt LPWSTR *pErrorDescription) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyManager * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyManager, CreateJob) + HRESULT ( STDMETHODCALLTYPE *CreateJob )( + __RPC__in IBackgroundCopyManager * This, + /* [in] */ __RPC__in LPCWSTR DisplayName, + /* [in] */ BG_JOB_TYPE Type, + /* [out] */ __RPC__out GUID *pJobId, + /* [out] */ __RPC__deref_out_opt IBackgroundCopyJob **ppJob); + + DECLSPEC_XFGVIRT(IBackgroundCopyManager, GetJob) + HRESULT ( STDMETHODCALLTYPE *GetJob )( + __RPC__in IBackgroundCopyManager * This, + /* [in] */ __RPC__in REFGUID jobID, + /* [out] */ __RPC__deref_out_opt IBackgroundCopyJob **ppJob); + + DECLSPEC_XFGVIRT(IBackgroundCopyManager, EnumJobs) + HRESULT ( STDMETHODCALLTYPE *EnumJobs )( + __RPC__in IBackgroundCopyManager * This, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyJobs **ppEnum); + + DECLSPEC_XFGVIRT(IBackgroundCopyManager, GetErrorDescription) + HRESULT ( STDMETHODCALLTYPE *GetErrorDescription )( + __RPC__in IBackgroundCopyManager * This, + /* [in] */ HRESULT hResult, + /* [in] */ DWORD LanguageId, + /* [out] */ __RPC__deref_out_opt LPWSTR *pErrorDescription); + + END_INTERFACE + } IBackgroundCopyManagerVtbl; + + interface IBackgroundCopyManager + { + CONST_VTBL struct IBackgroundCopyManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyManager_CreateJob(This,DisplayName,Type,pJobId,ppJob) \ + ( (This)->lpVtbl -> CreateJob(This,DisplayName,Type,pJobId,ppJob) ) + +#define IBackgroundCopyManager_GetJob(This,jobID,ppJob) \ + ( (This)->lpVtbl -> GetJob(This,jobID,ppJob) ) + +#define IBackgroundCopyManager_EnumJobs(This,dwFlags,ppEnum) \ + ( (This)->lpVtbl -> EnumJobs(This,dwFlags,ppEnum) ) + +#define IBackgroundCopyManager_GetErrorDescription(This,hResult,LanguageId,pErrorDescription) \ + ( (This)->lpVtbl -> GetErrorDescription(This,hResult,LanguageId,pErrorDescription) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyManager_INTERFACE_DEFINED__ */ + + + +#ifndef __BackgroundCopyManager_LIBRARY_DEFINED__ +#define __BackgroundCopyManager_LIBRARY_DEFINED__ + +/* library BackgroundCopyManager */ +/* [version][lcid][helpstring][uuid] */ + + + +EXTERN_C const IID LIBID_BackgroundCopyManager; + +EXTERN_C const CLSID CLSID_BackgroundCopyManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4991d34b-80a1-4291-83b6-3328366b9097") +BackgroundCopyManager; +#endif +#endif /* __BackgroundCopyManager_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bits_0000_0008 */ +/* [local] */ + +#include "bits1_5.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bits_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits_0000_0008_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Bits3_0.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Bits3_0.h new file mode 100644 index 0000000000000000000000000000000000000000..be48f2ea1c7accaf6811a2c9f76c65b629de55bd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Bits3_0.h @@ -0,0 +1,1767 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bits3_0_h__ +#define __bits3_0_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBitsPeerCacheRecord_FWD_DEFINED__ +#define __IBitsPeerCacheRecord_FWD_DEFINED__ +typedef interface IBitsPeerCacheRecord IBitsPeerCacheRecord; + +#endif /* __IBitsPeerCacheRecord_FWD_DEFINED__ */ + + +#ifndef __IEnumBitsPeerCacheRecords_FWD_DEFINED__ +#define __IEnumBitsPeerCacheRecords_FWD_DEFINED__ +typedef interface IEnumBitsPeerCacheRecords IEnumBitsPeerCacheRecords; + +#endif /* __IEnumBitsPeerCacheRecords_FWD_DEFINED__ */ + + +#ifndef __IBitsPeer_FWD_DEFINED__ +#define __IBitsPeer_FWD_DEFINED__ +typedef interface IBitsPeer IBitsPeer; + +#endif /* __IBitsPeer_FWD_DEFINED__ */ + + +#ifndef __IEnumBitsPeers_FWD_DEFINED__ +#define __IEnumBitsPeers_FWD_DEFINED__ +typedef interface IEnumBitsPeers IEnumBitsPeers; + +#endif /* __IEnumBitsPeers_FWD_DEFINED__ */ + + +#ifndef __IBitsPeerCacheAdministration_FWD_DEFINED__ +#define __IBitsPeerCacheAdministration_FWD_DEFINED__ +typedef interface IBitsPeerCacheAdministration IBitsPeerCacheAdministration; + +#endif /* __IBitsPeerCacheAdministration_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyJob4_FWD_DEFINED__ +#define __IBackgroundCopyJob4_FWD_DEFINED__ +typedef interface IBackgroundCopyJob4 IBackgroundCopyJob4; + +#endif /* __IBackgroundCopyJob4_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile3_FWD_DEFINED__ +#define __IBackgroundCopyFile3_FWD_DEFINED__ +typedef interface IBackgroundCopyFile3 IBackgroundCopyFile3; + +#endif /* __IBackgroundCopyFile3_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyCallback2_FWD_DEFINED__ +#define __IBackgroundCopyCallback2_FWD_DEFINED__ +typedef interface IBackgroundCopyCallback2 IBackgroundCopyCallback2; + +#endif /* __IBackgroundCopyCallback2_FWD_DEFINED__ */ + + +#ifndef __BackgroundCopyManager3_0_FWD_DEFINED__ +#define __BackgroundCopyManager3_0_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackgroundCopyManager3_0 BackgroundCopyManager3_0; +#else +typedef struct BackgroundCopyManager3_0 BackgroundCopyManager3_0; +#endif /* __cplusplus */ + +#endif /* __BackgroundCopyManager3_0_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyCallback2_FWD_DEFINED__ +#define __IBackgroundCopyCallback2_FWD_DEFINED__ +typedef interface IBackgroundCopyCallback2 IBackgroundCopyCallback2; + +#endif /* __IBackgroundCopyCallback2_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile3_FWD_DEFINED__ +#define __IBackgroundCopyFile3_FWD_DEFINED__ +typedef interface IBackgroundCopyFile3 IBackgroundCopyFile3; + +#endif /* __IBackgroundCopyFile3_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyJob4_FWD_DEFINED__ +#define __IBackgroundCopyJob4_FWD_DEFINED__ +typedef interface IBackgroundCopyJob4 IBackgroundCopyJob4; + +#endif /* __IBackgroundCopyJob4_FWD_DEFINED__ */ + + +#ifndef __IBitsPeer_FWD_DEFINED__ +#define __IBitsPeer_FWD_DEFINED__ +typedef interface IBitsPeer IBitsPeer; + +#endif /* __IBitsPeer_FWD_DEFINED__ */ + + +#ifndef __IBitsPeerCacheAdministration_FWD_DEFINED__ +#define __IBitsPeerCacheAdministration_FWD_DEFINED__ +typedef interface IBitsPeerCacheAdministration IBitsPeerCacheAdministration; + +#endif /* __IBitsPeerCacheAdministration_FWD_DEFINED__ */ + + +#ifndef __IBitsPeerCacheRecord_FWD_DEFINED__ +#define __IBitsPeerCacheRecord_FWD_DEFINED__ +typedef interface IBitsPeerCacheRecord IBitsPeerCacheRecord; + +#endif /* __IBitsPeerCacheRecord_FWD_DEFINED__ */ + + +#ifndef __IEnumBitsPeerCacheRecords_FWD_DEFINED__ +#define __IEnumBitsPeerCacheRecords_FWD_DEFINED__ +typedef interface IEnumBitsPeerCacheRecords IEnumBitsPeerCacheRecords; + +#endif /* __IEnumBitsPeerCacheRecords_FWD_DEFINED__ */ + + +#ifndef __IEnumBitsPeers_FWD_DEFINED__ +#define __IEnumBitsPeers_FWD_DEFINED__ +typedef interface IEnumBitsPeers IEnumBitsPeers; + +#endif /* __IEnumBitsPeers_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "bits.h" +#include "bits1_5.h" +#include "bits2_0.h" +#include "bits2_5.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bits3_0_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_bits3_0_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits3_0_0000_0000_v0_0_s_ifspec; + +#ifndef __IBitsPeerCacheRecord_INTERFACE_DEFINED__ +#define __IBitsPeerCacheRecord_INTERFACE_DEFINED__ + +/* interface IBitsPeerCacheRecord */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IBitsPeerCacheRecord; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("659cdeaf-489e-11d9-a9cd-000d56965251") + IBitsPeerCacheRecord : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetId( + /* [ref][out] */ __RPC__out GUID *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginUrl( + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileSize( + /* [ref][out] */ __RPC__out UINT64 *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileModificationTime( + /* [ref][out] */ __RPC__out FILETIME *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLastAccessTime( + /* [ref][out] */ __RPC__out FILETIME *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsFileValidated( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileRanges( + /* [ref][out] */ __RPC__out DWORD *pRangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pRangeCount) BG_FILE_RANGE **ppRanges) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBitsPeerCacheRecordVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBitsPeerCacheRecord * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBitsPeerCacheRecord * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBitsPeerCacheRecord * This); + + DECLSPEC_XFGVIRT(IBitsPeerCacheRecord, GetId) + HRESULT ( STDMETHODCALLTYPE *GetId )( + __RPC__in IBitsPeerCacheRecord * This, + /* [ref][out] */ __RPC__out GUID *pVal); + + DECLSPEC_XFGVIRT(IBitsPeerCacheRecord, GetOriginUrl) + HRESULT ( STDMETHODCALLTYPE *GetOriginUrl )( + __RPC__in IBitsPeerCacheRecord * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBitsPeerCacheRecord, GetFileSize) + HRESULT ( STDMETHODCALLTYPE *GetFileSize )( + __RPC__in IBitsPeerCacheRecord * This, + /* [ref][out] */ __RPC__out UINT64 *pVal); + + DECLSPEC_XFGVIRT(IBitsPeerCacheRecord, GetFileModificationTime) + HRESULT ( STDMETHODCALLTYPE *GetFileModificationTime )( + __RPC__in IBitsPeerCacheRecord * This, + /* [ref][out] */ __RPC__out FILETIME *pVal); + + DECLSPEC_XFGVIRT(IBitsPeerCacheRecord, GetLastAccessTime) + HRESULT ( STDMETHODCALLTYPE *GetLastAccessTime )( + __RPC__in IBitsPeerCacheRecord * This, + /* [ref][out] */ __RPC__out FILETIME *pVal); + + DECLSPEC_XFGVIRT(IBitsPeerCacheRecord, IsFileValidated) + HRESULT ( STDMETHODCALLTYPE *IsFileValidated )( + __RPC__in IBitsPeerCacheRecord * This); + + DECLSPEC_XFGVIRT(IBitsPeerCacheRecord, GetFileRanges) + HRESULT ( STDMETHODCALLTYPE *GetFileRanges )( + __RPC__in IBitsPeerCacheRecord * This, + /* [ref][out] */ __RPC__out DWORD *pRangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pRangeCount) BG_FILE_RANGE **ppRanges); + + END_INTERFACE + } IBitsPeerCacheRecordVtbl; + + interface IBitsPeerCacheRecord + { + CONST_VTBL struct IBitsPeerCacheRecordVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBitsPeerCacheRecord_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBitsPeerCacheRecord_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBitsPeerCacheRecord_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBitsPeerCacheRecord_GetId(This,pVal) \ + ( (This)->lpVtbl -> GetId(This,pVal) ) + +#define IBitsPeerCacheRecord_GetOriginUrl(This,pVal) \ + ( (This)->lpVtbl -> GetOriginUrl(This,pVal) ) + +#define IBitsPeerCacheRecord_GetFileSize(This,pVal) \ + ( (This)->lpVtbl -> GetFileSize(This,pVal) ) + +#define IBitsPeerCacheRecord_GetFileModificationTime(This,pVal) \ + ( (This)->lpVtbl -> GetFileModificationTime(This,pVal) ) + +#define IBitsPeerCacheRecord_GetLastAccessTime(This,pVal) \ + ( (This)->lpVtbl -> GetLastAccessTime(This,pVal) ) + +#define IBitsPeerCacheRecord_IsFileValidated(This) \ + ( (This)->lpVtbl -> IsFileValidated(This) ) + +#define IBitsPeerCacheRecord_GetFileRanges(This,pRangeCount,ppRanges) \ + ( (This)->lpVtbl -> GetFileRanges(This,pRangeCount,ppRanges) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBitsPeerCacheRecord_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumBitsPeerCacheRecords_INTERFACE_DEFINED__ +#define __IEnumBitsPeerCacheRecords_INTERFACE_DEFINED__ + +/* interface IEnumBitsPeerCacheRecords */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IEnumBitsPeerCacheRecords; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("659cdea4-489e-11d9-a9cd-000d56965251") + IEnumBitsPeerCacheRecords : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, pceltFetched ? *pceltFetched : celt) IBitsPeerCacheRecord **rgelt, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumBitsPeerCacheRecords **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out ULONG *puCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumBitsPeerCacheRecordsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumBitsPeerCacheRecords * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumBitsPeerCacheRecords * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumBitsPeerCacheRecords * This); + + DECLSPEC_XFGVIRT(IEnumBitsPeerCacheRecords, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumBitsPeerCacheRecords * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, pceltFetched ? *pceltFetched : celt) IBitsPeerCacheRecord **rgelt, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumBitsPeerCacheRecords, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumBitsPeerCacheRecords * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumBitsPeerCacheRecords, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumBitsPeerCacheRecords * This); + + DECLSPEC_XFGVIRT(IEnumBitsPeerCacheRecords, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumBitsPeerCacheRecords * This, + /* [out] */ __RPC__deref_out_opt IEnumBitsPeerCacheRecords **ppenum); + + DECLSPEC_XFGVIRT(IEnumBitsPeerCacheRecords, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IEnumBitsPeerCacheRecords * This, + /* [out] */ __RPC__out ULONG *puCount); + + END_INTERFACE + } IEnumBitsPeerCacheRecordsVtbl; + + interface IEnumBitsPeerCacheRecords + { + CONST_VTBL struct IEnumBitsPeerCacheRecordsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumBitsPeerCacheRecords_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumBitsPeerCacheRecords_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumBitsPeerCacheRecords_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumBitsPeerCacheRecords_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumBitsPeerCacheRecords_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumBitsPeerCacheRecords_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumBitsPeerCacheRecords_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#define IEnumBitsPeerCacheRecords_GetCount(This,puCount) \ + ( (This)->lpVtbl -> GetCount(This,puCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumBitsPeerCacheRecords_INTERFACE_DEFINED__ */ + + +#ifndef __IBitsPeer_INTERFACE_DEFINED__ +#define __IBitsPeer_INTERFACE_DEFINED__ + +/* interface IBitsPeer */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IBitsPeer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("659cdea2-489e-11d9-a9cd-000d56965251") + IBitsPeer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPeerName( + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pName) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsAuthenticated( + /* [ref][out] */ __RPC__out BOOL *pAuth) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsAvailable( + /* [ref][out] */ __RPC__out BOOL *pOnline) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBitsPeerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBitsPeer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBitsPeer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBitsPeer * This); + + DECLSPEC_XFGVIRT(IBitsPeer, GetPeerName) + HRESULT ( STDMETHODCALLTYPE *GetPeerName )( + __RPC__in IBitsPeer * This, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pName); + + DECLSPEC_XFGVIRT(IBitsPeer, IsAuthenticated) + HRESULT ( STDMETHODCALLTYPE *IsAuthenticated )( + __RPC__in IBitsPeer * This, + /* [ref][out] */ __RPC__out BOOL *pAuth); + + DECLSPEC_XFGVIRT(IBitsPeer, IsAvailable) + HRESULT ( STDMETHODCALLTYPE *IsAvailable )( + __RPC__in IBitsPeer * This, + /* [ref][out] */ __RPC__out BOOL *pOnline); + + END_INTERFACE + } IBitsPeerVtbl; + + interface IBitsPeer + { + CONST_VTBL struct IBitsPeerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBitsPeer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBitsPeer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBitsPeer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBitsPeer_GetPeerName(This,pName) \ + ( (This)->lpVtbl -> GetPeerName(This,pName) ) + +#define IBitsPeer_IsAuthenticated(This,pAuth) \ + ( (This)->lpVtbl -> IsAuthenticated(This,pAuth) ) + +#define IBitsPeer_IsAvailable(This,pOnline) \ + ( (This)->lpVtbl -> IsAvailable(This,pOnline) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBitsPeer_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumBitsPeers_INTERFACE_DEFINED__ +#define __IEnumBitsPeers_INTERFACE_DEFINED__ + +/* interface IEnumBitsPeers */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IEnumBitsPeers; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("659cdea5-489e-11d9-a9cd-000d56965251") + IEnumBitsPeers : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, pceltFetched ? *pceltFetched : celt) IBitsPeer **rgelt, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumBitsPeers **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out ULONG *puCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumBitsPeersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumBitsPeers * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumBitsPeers * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumBitsPeers * This); + + DECLSPEC_XFGVIRT(IEnumBitsPeers, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumBitsPeers * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, pceltFetched ? *pceltFetched : celt) IBitsPeer **rgelt, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumBitsPeers, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumBitsPeers * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumBitsPeers, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumBitsPeers * This); + + DECLSPEC_XFGVIRT(IEnumBitsPeers, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumBitsPeers * This, + /* [out] */ __RPC__deref_out_opt IEnumBitsPeers **ppenum); + + DECLSPEC_XFGVIRT(IEnumBitsPeers, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IEnumBitsPeers * This, + /* [out] */ __RPC__out ULONG *puCount); + + END_INTERFACE + } IEnumBitsPeersVtbl; + + interface IEnumBitsPeers + { + CONST_VTBL struct IEnumBitsPeersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumBitsPeers_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumBitsPeers_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumBitsPeers_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumBitsPeers_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumBitsPeers_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumBitsPeers_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumBitsPeers_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#define IEnumBitsPeers_GetCount(This,puCount) \ + ( (This)->lpVtbl -> GetCount(This,puCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumBitsPeers_INTERFACE_DEFINED__ */ + + +#ifndef __IBitsPeerCacheAdministration_INTERFACE_DEFINED__ +#define __IBitsPeerCacheAdministration_INTERFACE_DEFINED__ + +/* interface IBitsPeerCacheAdministration */ +/* [object][helpstring][uuid] */ + +#define BG_ENABLE_PEERCACHING_CLIENT 0x0001 +#define BG_ENABLE_PEERCACHING_SERVER 0x0002 +#define BG_DISABLE_BRANCH_CACHE 0x0004 + +EXTERN_C const IID IID_IBitsPeerCacheAdministration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("659cdead-489e-11d9-a9cd-000d56965251") + IBitsPeerCacheAdministration : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetMaximumCacheSize( + /* [out][ref] */ __RPC__out DWORD *pBytes) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMaximumCacheSize( + DWORD Bytes) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMaximumContentAge( + /* [out][ref] */ __RPC__out ULONG *pSeconds) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMaximumContentAge( + ULONG Seconds) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConfigurationFlags( + /* [out][ref] */ __RPC__out DWORD *pFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetConfigurationFlags( + DWORD Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumRecords( + /* [out] */ __RPC__deref_out_opt IEnumBitsPeerCacheRecords **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecord( + /* [in] */ __RPC__in REFGUID id, + /* [out] */ __RPC__deref_out_opt IBitsPeerCacheRecord **ppRecord) = 0; + + virtual HRESULT STDMETHODCALLTYPE ClearRecords( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRecord( + /* [in] */ __RPC__in REFGUID id) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteUrl( + /* [ref][in] */ __RPC__in LPCWSTR url) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumPeers( + /* [ref][out] */ __RPC__deref_out_opt IEnumBitsPeers **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE ClearPeers( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE DiscoverPeers( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBitsPeerCacheAdministrationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBitsPeerCacheAdministration * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBitsPeerCacheAdministration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBitsPeerCacheAdministration * This); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, GetMaximumCacheSize) + HRESULT ( STDMETHODCALLTYPE *GetMaximumCacheSize )( + __RPC__in IBitsPeerCacheAdministration * This, + /* [out][ref] */ __RPC__out DWORD *pBytes); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, SetMaximumCacheSize) + HRESULT ( STDMETHODCALLTYPE *SetMaximumCacheSize )( + __RPC__in IBitsPeerCacheAdministration * This, + DWORD Bytes); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, GetMaximumContentAge) + HRESULT ( STDMETHODCALLTYPE *GetMaximumContentAge )( + __RPC__in IBitsPeerCacheAdministration * This, + /* [out][ref] */ __RPC__out ULONG *pSeconds); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, SetMaximumContentAge) + HRESULT ( STDMETHODCALLTYPE *SetMaximumContentAge )( + __RPC__in IBitsPeerCacheAdministration * This, + ULONG Seconds); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, GetConfigurationFlags) + HRESULT ( STDMETHODCALLTYPE *GetConfigurationFlags )( + __RPC__in IBitsPeerCacheAdministration * This, + /* [out][ref] */ __RPC__out DWORD *pFlags); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, SetConfigurationFlags) + HRESULT ( STDMETHODCALLTYPE *SetConfigurationFlags )( + __RPC__in IBitsPeerCacheAdministration * This, + DWORD Flags); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, EnumRecords) + HRESULT ( STDMETHODCALLTYPE *EnumRecords )( + __RPC__in IBitsPeerCacheAdministration * This, + /* [out] */ __RPC__deref_out_opt IEnumBitsPeerCacheRecords **ppEnum); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, GetRecord) + HRESULT ( STDMETHODCALLTYPE *GetRecord )( + __RPC__in IBitsPeerCacheAdministration * This, + /* [in] */ __RPC__in REFGUID id, + /* [out] */ __RPC__deref_out_opt IBitsPeerCacheRecord **ppRecord); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, ClearRecords) + HRESULT ( STDMETHODCALLTYPE *ClearRecords )( + __RPC__in IBitsPeerCacheAdministration * This); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, DeleteRecord) + HRESULT ( STDMETHODCALLTYPE *DeleteRecord )( + __RPC__in IBitsPeerCacheAdministration * This, + /* [in] */ __RPC__in REFGUID id); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, DeleteUrl) + HRESULT ( STDMETHODCALLTYPE *DeleteUrl )( + __RPC__in IBitsPeerCacheAdministration * This, + /* [ref][in] */ __RPC__in LPCWSTR url); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, EnumPeers) + HRESULT ( STDMETHODCALLTYPE *EnumPeers )( + __RPC__in IBitsPeerCacheAdministration * This, + /* [ref][out] */ __RPC__deref_out_opt IEnumBitsPeers **ppEnum); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, ClearPeers) + HRESULT ( STDMETHODCALLTYPE *ClearPeers )( + __RPC__in IBitsPeerCacheAdministration * This); + + DECLSPEC_XFGVIRT(IBitsPeerCacheAdministration, DiscoverPeers) + HRESULT ( STDMETHODCALLTYPE *DiscoverPeers )( + __RPC__in IBitsPeerCacheAdministration * This); + + END_INTERFACE + } IBitsPeerCacheAdministrationVtbl; + + interface IBitsPeerCacheAdministration + { + CONST_VTBL struct IBitsPeerCacheAdministrationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBitsPeerCacheAdministration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBitsPeerCacheAdministration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBitsPeerCacheAdministration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBitsPeerCacheAdministration_GetMaximumCacheSize(This,pBytes) \ + ( (This)->lpVtbl -> GetMaximumCacheSize(This,pBytes) ) + +#define IBitsPeerCacheAdministration_SetMaximumCacheSize(This,Bytes) \ + ( (This)->lpVtbl -> SetMaximumCacheSize(This,Bytes) ) + +#define IBitsPeerCacheAdministration_GetMaximumContentAge(This,pSeconds) \ + ( (This)->lpVtbl -> GetMaximumContentAge(This,pSeconds) ) + +#define IBitsPeerCacheAdministration_SetMaximumContentAge(This,Seconds) \ + ( (This)->lpVtbl -> SetMaximumContentAge(This,Seconds) ) + +#define IBitsPeerCacheAdministration_GetConfigurationFlags(This,pFlags) \ + ( (This)->lpVtbl -> GetConfigurationFlags(This,pFlags) ) + +#define IBitsPeerCacheAdministration_SetConfigurationFlags(This,Flags) \ + ( (This)->lpVtbl -> SetConfigurationFlags(This,Flags) ) + +#define IBitsPeerCacheAdministration_EnumRecords(This,ppEnum) \ + ( (This)->lpVtbl -> EnumRecords(This,ppEnum) ) + +#define IBitsPeerCacheAdministration_GetRecord(This,id,ppRecord) \ + ( (This)->lpVtbl -> GetRecord(This,id,ppRecord) ) + +#define IBitsPeerCacheAdministration_ClearRecords(This) \ + ( (This)->lpVtbl -> ClearRecords(This) ) + +#define IBitsPeerCacheAdministration_DeleteRecord(This,id) \ + ( (This)->lpVtbl -> DeleteRecord(This,id) ) + +#define IBitsPeerCacheAdministration_DeleteUrl(This,url) \ + ( (This)->lpVtbl -> DeleteUrl(This,url) ) + +#define IBitsPeerCacheAdministration_EnumPeers(This,ppEnum) \ + ( (This)->lpVtbl -> EnumPeers(This,ppEnum) ) + +#define IBitsPeerCacheAdministration_ClearPeers(This) \ + ( (This)->lpVtbl -> ClearPeers(This) ) + +#define IBitsPeerCacheAdministration_DiscoverPeers(This) \ + ( (This)->lpVtbl -> DiscoverPeers(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBitsPeerCacheAdministration_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyJob4_INTERFACE_DEFINED__ +#define __IBackgroundCopyJob4_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyJob4 */ +/* [object][helpstring][uuid] */ + +#define BG_JOB_ENABLE_PEERCACHING_CLIENT 0x0001 +#define BG_JOB_ENABLE_PEERCACHING_SERVER 0x0002 +#define BG_JOB_DISABLE_BRANCH_CACHE 0x0004 + +EXTERN_C const IID IID_IBackgroundCopyJob4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("659cdeae-489e-11d9-a9cd-000d56965251") + IBackgroundCopyJob4 : public IBackgroundCopyJob3 + { + public: + virtual HRESULT STDMETHODCALLTYPE SetPeerCachingFlags( + DWORD Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPeerCachingFlags( + /* [ref][out] */ __RPC__out DWORD *pFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOwnerIntegrityLevel( + /* [ref][out] */ __RPC__out ULONG *pLevel) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOwnerElevationState( + /* [ref][out] */ __RPC__out BOOL *pElevated) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMaximumDownloadTime( + ULONG Timeout) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMaximumDownloadTime( + /* [ref][out] */ __RPC__out ULONG *pTimeout) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyJob4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyJob4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyJob4 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, AddFileSet) + HRESULT ( STDMETHODCALLTYPE *AddFileSet )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ ULONG cFileCount, + /* [size_is][in] */ __RPC__in_ecount_full(cFileCount) BG_FILE_INFO *pFileSet); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, AddFile) + HRESULT ( STDMETHODCALLTYPE *AddFile )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ __RPC__in LPCWSTR RemoteUrl, + /* [in] */ __RPC__in LPCWSTR LocalName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, EnumFiles) + HRESULT ( STDMETHODCALLTYPE *EnumFiles )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyFiles **pEnum); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + __RPC__in IBackgroundCopyJob4 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IBackgroundCopyJob4 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IBackgroundCopyJob4 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Complete) + HRESULT ( STDMETHODCALLTYPE *Complete )( + __RPC__in IBackgroundCopyJob4 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetId) + HRESULT ( STDMETHODCALLTYPE *GetId )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out GUID *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetType) + HRESULT ( STDMETHODCALLTYPE *GetType )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out BG_JOB_TYPE *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out BG_JOB_PROGRESS *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetTimes) + HRESULT ( STDMETHODCALLTYPE *GetTimes )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out BG_JOB_TIMES *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out BG_JOB_STATE *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetError) + HRESULT ( STDMETHODCALLTYPE *GetError )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__deref_out_opt IBackgroundCopyError **ppError); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetOwner) + HRESULT ( STDMETHODCALLTYPE *GetOwner )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetDisplayName) + HRESULT ( STDMETHODCALLTYPE *SetDisplayName )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetDescription) + HRESULT ( STDMETHODCALLTYPE *SetDescription )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetPriority) + HRESULT ( STDMETHODCALLTYPE *SetPriority )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ BG_JOB_PRIORITY Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetPriority) + HRESULT ( STDMETHODCALLTYPE *GetPriority )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out BG_JOB_PRIORITY *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *SetNotifyFlags )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ ULONG Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *GetNotifyFlags )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNotifyInterface) + HRESULT ( STDMETHODCALLTYPE *SetNotifyInterface )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ __RPC__in_opt IUnknown *Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNotifyInterface) + HRESULT ( STDMETHODCALLTYPE *GetNotifyInterface )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__deref_out_opt IUnknown **pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetMinimumRetryDelay) + HRESULT ( STDMETHODCALLTYPE *SetMinimumRetryDelay )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ ULONG Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetMinimumRetryDelay) + HRESULT ( STDMETHODCALLTYPE *GetMinimumRetryDelay )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out ULONG *Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNoProgressTimeout) + HRESULT ( STDMETHODCALLTYPE *SetNoProgressTimeout )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ ULONG Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNoProgressTimeout) + HRESULT ( STDMETHODCALLTYPE *GetNoProgressTimeout )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out ULONG *Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetErrorCount) + HRESULT ( STDMETHODCALLTYPE *GetErrorCount )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out ULONG *Errors); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetProxySettings) + HRESULT ( STDMETHODCALLTYPE *SetProxySettings )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ BG_JOB_PROXY_USAGE ProxyUsage, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyList, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyBypassList); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetProxySettings) + HRESULT ( STDMETHODCALLTYPE *GetProxySettings )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__out BG_JOB_PROXY_USAGE *pProxyUsage, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyList, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyBypassList); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, TakeOwnership) + HRESULT ( STDMETHODCALLTYPE *TakeOwnership )( + __RPC__in IBackgroundCopyJob4 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetNotifyCmdLine) + HRESULT ( STDMETHODCALLTYPE *SetNotifyCmdLine )( + __RPC__in IBackgroundCopyJob4 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR Program, + /* [unique][in] */ __RPC__in_opt LPCWSTR Parameters); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetNotifyCmdLine) + HRESULT ( STDMETHODCALLTYPE *GetNotifyCmdLine )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProgram, + /* [out] */ __RPC__deref_out_opt LPWSTR *pParameters); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyProgress) + HRESULT ( STDMETHODCALLTYPE *GetReplyProgress )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out][in] */ __RPC__inout BG_JOB_REPLY_PROGRESS *pProgress); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyData) + HRESULT ( STDMETHODCALLTYPE *GetReplyData )( + __RPC__in IBackgroundCopyJob4 * This, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(( unsigned long )*pLength) byte **ppBuffer, + /* [unique][out][in] */ __RPC__inout_opt UINT64 *pLength); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetReplyFileName) + HRESULT ( STDMETHODCALLTYPE *SetReplyFileName )( + __RPC__in IBackgroundCopyJob4 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR ReplyFileName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyFileName) + HRESULT ( STDMETHODCALLTYPE *GetReplyFileName )( + __RPC__in IBackgroundCopyJob4 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pReplyFileName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetCredentials) + HRESULT ( STDMETHODCALLTYPE *SetCredentials )( + __RPC__in IBackgroundCopyJob4 * This, + __RPC__in BG_AUTH_CREDENTIALS *credentials); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, RemoveCredentials) + HRESULT ( STDMETHODCALLTYPE *RemoveCredentials )( + __RPC__in IBackgroundCopyJob4 * This, + BG_AUTH_TARGET Target, + BG_AUTH_SCHEME Scheme); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, ReplaceRemotePrefix) + HRESULT ( STDMETHODCALLTYPE *ReplaceRemotePrefix )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ __RPC__in LPCWSTR OldPrefix, + /* [in] */ __RPC__in LPCWSTR NewPrefix); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, AddFileWithRanges) + HRESULT ( STDMETHODCALLTYPE *AddFileWithRanges )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ __RPC__in LPCWSTR RemoteUrl, + /* [in] */ __RPC__in LPCWSTR LocalName, + /* [in] */ DWORD RangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) BG_FILE_RANGE Ranges[ ]); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, SetFileACLFlags) + HRESULT ( STDMETHODCALLTYPE *SetFileACLFlags )( + __RPC__in IBackgroundCopyJob4 * This, + /* [in] */ DWORD Flags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, GetFileACLFlags) + HRESULT ( STDMETHODCALLTYPE *GetFileACLFlags )( + __RPC__in IBackgroundCopyJob4 * This, + /* [ref][out] */ __RPC__out DWORD *Flags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, SetPeerCachingFlags) + HRESULT ( STDMETHODCALLTYPE *SetPeerCachingFlags )( + __RPC__in IBackgroundCopyJob4 * This, + DWORD Flags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, GetPeerCachingFlags) + HRESULT ( STDMETHODCALLTYPE *GetPeerCachingFlags )( + __RPC__in IBackgroundCopyJob4 * This, + /* [ref][out] */ __RPC__out DWORD *pFlags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, GetOwnerIntegrityLevel) + HRESULT ( STDMETHODCALLTYPE *GetOwnerIntegrityLevel )( + __RPC__in IBackgroundCopyJob4 * This, + /* [ref][out] */ __RPC__out ULONG *pLevel); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, GetOwnerElevationState) + HRESULT ( STDMETHODCALLTYPE *GetOwnerElevationState )( + __RPC__in IBackgroundCopyJob4 * This, + /* [ref][out] */ __RPC__out BOOL *pElevated); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, SetMaximumDownloadTime) + HRESULT ( STDMETHODCALLTYPE *SetMaximumDownloadTime )( + __RPC__in IBackgroundCopyJob4 * This, + ULONG Timeout); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, GetMaximumDownloadTime) + HRESULT ( STDMETHODCALLTYPE *GetMaximumDownloadTime )( + __RPC__in IBackgroundCopyJob4 * This, + /* [ref][out] */ __RPC__out ULONG *pTimeout); + + END_INTERFACE + } IBackgroundCopyJob4Vtbl; + + interface IBackgroundCopyJob4 + { + CONST_VTBL struct IBackgroundCopyJob4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyJob4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyJob4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyJob4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyJob4_AddFileSet(This,cFileCount,pFileSet) \ + ( (This)->lpVtbl -> AddFileSet(This,cFileCount,pFileSet) ) + +#define IBackgroundCopyJob4_AddFile(This,RemoteUrl,LocalName) \ + ( (This)->lpVtbl -> AddFile(This,RemoteUrl,LocalName) ) + +#define IBackgroundCopyJob4_EnumFiles(This,pEnum) \ + ( (This)->lpVtbl -> EnumFiles(This,pEnum) ) + +#define IBackgroundCopyJob4_Suspend(This) \ + ( (This)->lpVtbl -> Suspend(This) ) + +#define IBackgroundCopyJob4_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#define IBackgroundCopyJob4_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IBackgroundCopyJob4_Complete(This) \ + ( (This)->lpVtbl -> Complete(This) ) + +#define IBackgroundCopyJob4_GetId(This,pVal) \ + ( (This)->lpVtbl -> GetId(This,pVal) ) + +#define IBackgroundCopyJob4_GetType(This,pVal) \ + ( (This)->lpVtbl -> GetType(This,pVal) ) + +#define IBackgroundCopyJob4_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + +#define IBackgroundCopyJob4_GetTimes(This,pVal) \ + ( (This)->lpVtbl -> GetTimes(This,pVal) ) + +#define IBackgroundCopyJob4_GetState(This,pVal) \ + ( (This)->lpVtbl -> GetState(This,pVal) ) + +#define IBackgroundCopyJob4_GetError(This,ppError) \ + ( (This)->lpVtbl -> GetError(This,ppError) ) + +#define IBackgroundCopyJob4_GetOwner(This,pVal) \ + ( (This)->lpVtbl -> GetOwner(This,pVal) ) + +#define IBackgroundCopyJob4_SetDisplayName(This,Val) \ + ( (This)->lpVtbl -> SetDisplayName(This,Val) ) + +#define IBackgroundCopyJob4_GetDisplayName(This,pVal) \ + ( (This)->lpVtbl -> GetDisplayName(This,pVal) ) + +#define IBackgroundCopyJob4_SetDescription(This,Val) \ + ( (This)->lpVtbl -> SetDescription(This,Val) ) + +#define IBackgroundCopyJob4_GetDescription(This,pVal) \ + ( (This)->lpVtbl -> GetDescription(This,pVal) ) + +#define IBackgroundCopyJob4_SetPriority(This,Val) \ + ( (This)->lpVtbl -> SetPriority(This,Val) ) + +#define IBackgroundCopyJob4_GetPriority(This,pVal) \ + ( (This)->lpVtbl -> GetPriority(This,pVal) ) + +#define IBackgroundCopyJob4_SetNotifyFlags(This,Val) \ + ( (This)->lpVtbl -> SetNotifyFlags(This,Val) ) + +#define IBackgroundCopyJob4_GetNotifyFlags(This,pVal) \ + ( (This)->lpVtbl -> GetNotifyFlags(This,pVal) ) + +#define IBackgroundCopyJob4_SetNotifyInterface(This,Val) \ + ( (This)->lpVtbl -> SetNotifyInterface(This,Val) ) + +#define IBackgroundCopyJob4_GetNotifyInterface(This,pVal) \ + ( (This)->lpVtbl -> GetNotifyInterface(This,pVal) ) + +#define IBackgroundCopyJob4_SetMinimumRetryDelay(This,Seconds) \ + ( (This)->lpVtbl -> SetMinimumRetryDelay(This,Seconds) ) + +#define IBackgroundCopyJob4_GetMinimumRetryDelay(This,Seconds) \ + ( (This)->lpVtbl -> GetMinimumRetryDelay(This,Seconds) ) + +#define IBackgroundCopyJob4_SetNoProgressTimeout(This,Seconds) \ + ( (This)->lpVtbl -> SetNoProgressTimeout(This,Seconds) ) + +#define IBackgroundCopyJob4_GetNoProgressTimeout(This,Seconds) \ + ( (This)->lpVtbl -> GetNoProgressTimeout(This,Seconds) ) + +#define IBackgroundCopyJob4_GetErrorCount(This,Errors) \ + ( (This)->lpVtbl -> GetErrorCount(This,Errors) ) + +#define IBackgroundCopyJob4_SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) \ + ( (This)->lpVtbl -> SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) ) + +#define IBackgroundCopyJob4_GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) \ + ( (This)->lpVtbl -> GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) ) + +#define IBackgroundCopyJob4_TakeOwnership(This) \ + ( (This)->lpVtbl -> TakeOwnership(This) ) + + +#define IBackgroundCopyJob4_SetNotifyCmdLine(This,Program,Parameters) \ + ( (This)->lpVtbl -> SetNotifyCmdLine(This,Program,Parameters) ) + +#define IBackgroundCopyJob4_GetNotifyCmdLine(This,pProgram,pParameters) \ + ( (This)->lpVtbl -> GetNotifyCmdLine(This,pProgram,pParameters) ) + +#define IBackgroundCopyJob4_GetReplyProgress(This,pProgress) \ + ( (This)->lpVtbl -> GetReplyProgress(This,pProgress) ) + +#define IBackgroundCopyJob4_GetReplyData(This,ppBuffer,pLength) \ + ( (This)->lpVtbl -> GetReplyData(This,ppBuffer,pLength) ) + +#define IBackgroundCopyJob4_SetReplyFileName(This,ReplyFileName) \ + ( (This)->lpVtbl -> SetReplyFileName(This,ReplyFileName) ) + +#define IBackgroundCopyJob4_GetReplyFileName(This,pReplyFileName) \ + ( (This)->lpVtbl -> GetReplyFileName(This,pReplyFileName) ) + +#define IBackgroundCopyJob4_SetCredentials(This,credentials) \ + ( (This)->lpVtbl -> SetCredentials(This,credentials) ) + +#define IBackgroundCopyJob4_RemoveCredentials(This,Target,Scheme) \ + ( (This)->lpVtbl -> RemoveCredentials(This,Target,Scheme) ) + + +#define IBackgroundCopyJob4_ReplaceRemotePrefix(This,OldPrefix,NewPrefix) \ + ( (This)->lpVtbl -> ReplaceRemotePrefix(This,OldPrefix,NewPrefix) ) + +#define IBackgroundCopyJob4_AddFileWithRanges(This,RemoteUrl,LocalName,RangeCount,Ranges) \ + ( (This)->lpVtbl -> AddFileWithRanges(This,RemoteUrl,LocalName,RangeCount,Ranges) ) + +#define IBackgroundCopyJob4_SetFileACLFlags(This,Flags) \ + ( (This)->lpVtbl -> SetFileACLFlags(This,Flags) ) + +#define IBackgroundCopyJob4_GetFileACLFlags(This,Flags) \ + ( (This)->lpVtbl -> GetFileACLFlags(This,Flags) ) + + +#define IBackgroundCopyJob4_SetPeerCachingFlags(This,Flags) \ + ( (This)->lpVtbl -> SetPeerCachingFlags(This,Flags) ) + +#define IBackgroundCopyJob4_GetPeerCachingFlags(This,pFlags) \ + ( (This)->lpVtbl -> GetPeerCachingFlags(This,pFlags) ) + +#define IBackgroundCopyJob4_GetOwnerIntegrityLevel(This,pLevel) \ + ( (This)->lpVtbl -> GetOwnerIntegrityLevel(This,pLevel) ) + +#define IBackgroundCopyJob4_GetOwnerElevationState(This,pElevated) \ + ( (This)->lpVtbl -> GetOwnerElevationState(This,pElevated) ) + +#define IBackgroundCopyJob4_SetMaximumDownloadTime(This,Timeout) \ + ( (This)->lpVtbl -> SetMaximumDownloadTime(This,Timeout) ) + +#define IBackgroundCopyJob4_GetMaximumDownloadTime(This,pTimeout) \ + ( (This)->lpVtbl -> GetMaximumDownloadTime(This,pTimeout) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyJob4_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile3_INTERFACE_DEFINED__ +#define __IBackgroundCopyFile3_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyFile3 */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyFile3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("659cdeaa-489e-11d9-a9cd-000d56965251") + IBackgroundCopyFile3 : public IBackgroundCopyFile2 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTemporaryName( + /* [out] */ __RPC__deref_out_opt LPWSTR *pFilename) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetValidationState( + /* [in] */ BOOL state) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValidationState( + /* [out] */ __RPC__out BOOL *pState) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsDownloadedFromPeer( + /* [out] */ __RPC__out BOOL *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyFile3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyFile3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyFile3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyFile3 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetRemoteName) + HRESULT ( STDMETHODCALLTYPE *GetRemoteName )( + __RPC__in IBackgroundCopyFile3 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetLocalName) + HRESULT ( STDMETHODCALLTYPE *GetLocalName )( + __RPC__in IBackgroundCopyFile3 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyFile3 * This, + /* [out] */ __RPC__out BG_FILE_PROGRESS *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile2, GetFileRanges) + HRESULT ( STDMETHODCALLTYPE *GetFileRanges )( + __RPC__in IBackgroundCopyFile3 * This, + /* [unique][out][in] */ __RPC__inout_opt DWORD *RangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*RangeCount) BG_FILE_RANGE **Ranges); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile2, SetRemoteName) + HRESULT ( STDMETHODCALLTYPE *SetRemoteName )( + __RPC__in IBackgroundCopyFile3 * This, + __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, GetTemporaryName) + HRESULT ( STDMETHODCALLTYPE *GetTemporaryName )( + __RPC__in IBackgroundCopyFile3 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pFilename); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, SetValidationState) + HRESULT ( STDMETHODCALLTYPE *SetValidationState )( + __RPC__in IBackgroundCopyFile3 * This, + /* [in] */ BOOL state); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, GetValidationState) + HRESULT ( STDMETHODCALLTYPE *GetValidationState )( + __RPC__in IBackgroundCopyFile3 * This, + /* [out] */ __RPC__out BOOL *pState); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, IsDownloadedFromPeer) + HRESULT ( STDMETHODCALLTYPE *IsDownloadedFromPeer )( + __RPC__in IBackgroundCopyFile3 * This, + /* [out] */ __RPC__out BOOL *pVal); + + END_INTERFACE + } IBackgroundCopyFile3Vtbl; + + interface IBackgroundCopyFile3 + { + CONST_VTBL struct IBackgroundCopyFile3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyFile3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyFile3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyFile3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyFile3_GetRemoteName(This,pVal) \ + ( (This)->lpVtbl -> GetRemoteName(This,pVal) ) + +#define IBackgroundCopyFile3_GetLocalName(This,pVal) \ + ( (This)->lpVtbl -> GetLocalName(This,pVal) ) + +#define IBackgroundCopyFile3_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + + +#define IBackgroundCopyFile3_GetFileRanges(This,RangeCount,Ranges) \ + ( (This)->lpVtbl -> GetFileRanges(This,RangeCount,Ranges) ) + +#define IBackgroundCopyFile3_SetRemoteName(This,Val) \ + ( (This)->lpVtbl -> SetRemoteName(This,Val) ) + + +#define IBackgroundCopyFile3_GetTemporaryName(This,pFilename) \ + ( (This)->lpVtbl -> GetTemporaryName(This,pFilename) ) + +#define IBackgroundCopyFile3_SetValidationState(This,state) \ + ( (This)->lpVtbl -> SetValidationState(This,state) ) + +#define IBackgroundCopyFile3_GetValidationState(This,pState) \ + ( (This)->lpVtbl -> GetValidationState(This,pState) ) + +#define IBackgroundCopyFile3_IsDownloadedFromPeer(This,pVal) \ + ( (This)->lpVtbl -> IsDownloadedFromPeer(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyFile3_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyCallback2_INTERFACE_DEFINED__ +#define __IBackgroundCopyCallback2_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyCallback2 */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyCallback2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("659cdeac-489e-11d9-a9cd-000d56965251") + IBackgroundCopyCallback2 : public IBackgroundCopyCallback + { + public: + virtual HRESULT STDMETHODCALLTYPE FileTransferred( + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ __RPC__in_opt IBackgroundCopyFile *pFile) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyCallback2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyCallback2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyCallback2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyCallback2 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback, JobTransferred) + HRESULT ( STDMETHODCALLTYPE *JobTransferred )( + __RPC__in IBackgroundCopyCallback2 * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback, JobError) + HRESULT ( STDMETHODCALLTYPE *JobError )( + __RPC__in IBackgroundCopyCallback2 * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ __RPC__in_opt IBackgroundCopyError *pError); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback, JobModification) + HRESULT ( STDMETHODCALLTYPE *JobModification )( + __RPC__in IBackgroundCopyCallback2 * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ DWORD dwReserved); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback2, FileTransferred) + HRESULT ( STDMETHODCALLTYPE *FileTransferred )( + __RPC__in IBackgroundCopyCallback2 * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ __RPC__in_opt IBackgroundCopyFile *pFile); + + END_INTERFACE + } IBackgroundCopyCallback2Vtbl; + + interface IBackgroundCopyCallback2 + { + CONST_VTBL struct IBackgroundCopyCallback2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyCallback2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyCallback2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyCallback2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyCallback2_JobTransferred(This,pJob) \ + ( (This)->lpVtbl -> JobTransferred(This,pJob) ) + +#define IBackgroundCopyCallback2_JobError(This,pJob,pError) \ + ( (This)->lpVtbl -> JobError(This,pJob,pError) ) + +#define IBackgroundCopyCallback2_JobModification(This,pJob,dwReserved) \ + ( (This)->lpVtbl -> JobModification(This,pJob,dwReserved) ) + + +#define IBackgroundCopyCallback2_FileTransferred(This,pJob,pFile) \ + ( (This)->lpVtbl -> FileTransferred(This,pJob,pFile) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyCallback2_INTERFACE_DEFINED__ */ + + + +#ifndef __BackgroundCopyManager3_0_LIBRARY_DEFINED__ +#define __BackgroundCopyManager3_0_LIBRARY_DEFINED__ + +/* library BackgroundCopyManager3_0 */ +/* [version][lcid][helpstring][uuid] */ + + + + + + + + + + + +EXTERN_C const IID LIBID_BackgroundCopyManager3_0; + +EXTERN_C const CLSID CLSID_BackgroundCopyManager3_0; + +#ifdef __cplusplus + +class DECLSPEC_UUID("659cdea7-489e-11d9-a9cd-000d56965251") +BackgroundCopyManager3_0; +#endif +#endif /* __BackgroundCopyManager3_0_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bits3_0_0000_0009 */ +/* [local] */ + +#include "bits4_0.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bits3_0_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits3_0_0000_0009_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/BitsMsg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/BitsMsg.h new file mode 100644 index 0000000000000000000000000000000000000000..15a4cecf0e9650e24f5e5edee8937b4b9a0dc5f2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/BitsMsg.h @@ -0,0 +1,1370 @@ +/*************************************************************************** +* * +* bitsmsg.h -- error code definitions for the background file copier * +* * +* Copyright (c) 2000, Microsoft Corp. All rights reserved. * +* * +***************************************************************************/ + +#ifndef _BGCPYMSG_ +#define _BGCPYMSG_ + +#if defined (_MSC_VER) && (_MSC_VER >= 1020) && !defined(__midl) +#pragma once +#endif + +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +-+-+-+-+-+---------------------+-------------------------------+ +// |S|R|C|N|r| Facility | Code | +// +-+-+-+-+-+---------------------+-------------------------------+ +// +// where +// +// S - Severity - indicates success/fail +// +// 0 - Success +// 1 - Fail (COERROR) +// +// R - reserved portion of the facility code, corresponds to NT's +// second severity bit. +// +// C - reserved portion of the facility code, corresponds to NT's +// C field. +// +// N - reserved portion of the facility code. Used to indicate a +// mapped NT status value. +// +// r - reserved portion of the facility code. Reserved for internal +// use. Used to indicate HRESULT values that are not status +// values, but are instead message ids for display strings. +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// + + +// +// Define the severity codes +// + + +// +// MessageId: BG_E_NOT_FOUND +// +// MessageText: +// +// The requested job was not found. +// +#define BG_E_NOT_FOUND 0x80200001L + +// +// MessageId: BG_E_INVALID_STATE +// +// MessageText: +// +// The requested action is not allowed in the current job state. The job might have been canceled or completed transferring. It is in a read-only state now. +// +#define BG_E_INVALID_STATE 0x80200002L + +// +// MessageId: BG_E_EMPTY +// +// MessageText: +// +// There are no files attached to this job. Attach files to the job, and then try again. +// +#define BG_E_EMPTY 0x80200003L + +// +// MessageId: BG_E_FILE_NOT_AVAILABLE +// +// MessageText: +// +// No file is available because no URL generated an error. +// +#define BG_E_FILE_NOT_AVAILABLE 0x80200004L + +// +// MessageId: BG_E_PROTOCOL_NOT_AVAILABLE +// +// MessageText: +// +// No protocol is available because no URL generated an error. +// +#define BG_E_PROTOCOL_NOT_AVAILABLE 0x80200005L + +// +// MessageId: BG_S_ERROR_CONTEXT_NONE +// +// MessageText: +// +// No errors have occurred. +// +#define BG_S_ERROR_CONTEXT_NONE 0x00200006L + +// +// MessageId: BG_E_ERROR_CONTEXT_UNKNOWN +// +// MessageText: +// +// The error occurred in an unknown location. +// +#define BG_E_ERROR_CONTEXT_UNKNOWN 0x80200007L + +// +// MessageId: BG_E_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER +// +// MessageText: +// +// The error occurred in the Background Intelligent Transfer Service (BITS) queue manager. +// +#define BG_E_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER 0x80200008L + +// +// MessageId: BG_E_ERROR_CONTEXT_LOCAL_FILE +// +// MessageText: +// +// The error occurred while the local file was being processed. Verify that the file is not in use, and then try again. +// +#define BG_E_ERROR_CONTEXT_LOCAL_FILE 0x80200009L + +// +// MessageId: BG_E_ERROR_CONTEXT_REMOTE_FILE +// +// MessageText: +// +// The error occurred while the remote file was being processed. +// +#define BG_E_ERROR_CONTEXT_REMOTE_FILE 0x8020000AL + +// +// MessageId: BG_E_ERROR_CONTEXT_GENERAL_TRANSPORT +// +// MessageText: +// +// The error occurred in the transport layer. The client could not connect to the server. +// +#define BG_E_ERROR_CONTEXT_GENERAL_TRANSPORT 0x8020000BL + +// +// MessageId: BG_E_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION +// +// MessageText: +// +// The error occurred while the notification callback was being processed. Background Intelligent Transfer Service (BITS) will try again later. +// +#define BG_E_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION 0x8020000CL + +// +// MessageId: BG_E_DESTINATION_LOCKED +// +// MessageText: +// +// The destination file system volume is not available. Verify that another program, such as CheckDisk, is not running, which would lock the volume. When the volume is available, Background Intelligent Transfer Service (BITS) will try again. +// +#define BG_E_DESTINATION_LOCKED 0x8020000DL + +// +// MessageId: BG_E_VOLUME_CHANGED +// +// MessageText: +// +// The destination volume has changed. If the disk is removable, it might have been replaced with a different disk. Reinsert the original disk and resume the job. +// +#define BG_E_VOLUME_CHANGED 0x8020000EL + +// +// MessageId: BG_E_ERROR_INFORMATION_UNAVAILABLE +// +// MessageText: +// +// No errors have occurred. +// +#define BG_E_ERROR_INFORMATION_UNAVAILABLE 0x8020000FL + +// +// MessageId: BG_E_NETWORK_DISCONNECTED +// +// MessageText: +// +// There are currently no active network connections. Background Intelligent Transfer Service (BITS) will try again when an adapter is connected. +// +#define BG_E_NETWORK_DISCONNECTED 0x80200010L + +// +// MessageId: BG_E_MISSING_FILE_SIZE +// +// MessageText: +// +// The server did not return the file size. The URL might point to dynamic content. The Content-Length header is not available in the server's HTTP reply. +// +#define BG_E_MISSING_FILE_SIZE 0x80200011L + +// +// MessageId: BG_E_INSUFFICIENT_HTTP_SUPPORT +// +// MessageText: +// +// The server does not support HTTP 1.1. +// +#define BG_E_INSUFFICIENT_HTTP_SUPPORT 0x80200012L + +// +// MessageId: BG_E_INSUFFICIENT_RANGE_SUPPORT +// +// MessageText: +// +// The server does not support the necessary HTTP protocol. Background Intelligent Transfer Service (BITS) requires that the server support the Range protocol header. +// +#define BG_E_INSUFFICIENT_RANGE_SUPPORT 0x80200013L + +// +// MessageId: BG_E_REMOTE_NOT_SUPPORTED +// +// MessageText: +// +// Background Intelligent Transfer Service (BITS) cannot be used remotely. +// +#define BG_E_REMOTE_NOT_SUPPORTED 0x80200014L + +// +// MessageId: BG_E_NEW_OWNER_DIFF_MAPPING +// +// MessageText: +// +// The drive mapping for the job is different for the current owner than for the previous owner. Use a UNC path instead. +// +#define BG_E_NEW_OWNER_DIFF_MAPPING 0x80200015L + +// +// MessageId: BG_E_NEW_OWNER_NO_FILE_ACCESS +// +// MessageText: +// +// The new owner has insufficient access to the local files for the job. The new owner might not have permissions to access the job files. Verify that the new owner has sufficient permissions, and then try again. +// +#define BG_E_NEW_OWNER_NO_FILE_ACCESS 0x80200016L + +// +// MessageId: BG_S_PARTIAL_COMPLETE +// +// MessageText: +// +// Some of the transferred files were deleted because they were incomplete. +// +#define BG_S_PARTIAL_COMPLETE 0x00200017L + +// +// MessageId: BG_E_PROXY_LIST_TOO_LARGE +// +// MessageText: +// +// The HTTP proxy list cannot be longer than 32,000 characters. Try again with a shorter proxy list. +// +#define BG_E_PROXY_LIST_TOO_LARGE 0x80200018L + +// +// MessageId: BG_E_PROXY_BYPASS_LIST_TOO_LARGE +// +// MessageText: +// +// The HTTP proxy bypass list cannot be longer than 32,000 characters. Try again with a shorter bypass proxy list. +// +#define BG_E_PROXY_BYPASS_LIST_TOO_LARGE 0x80200019L + +// +// MessageId: BG_S_UNABLE_TO_DELETE_FILES +// +// MessageText: +// +// Some of the temporary files could not be deleted. Check the system event log for the complete list of files that could not be deleted. +// +#define BG_S_UNABLE_TO_DELETE_FILES 0x0020001AL + +// +// MessageId: BG_E_INVALID_SERVER_RESPONSE +// +// MessageText: +// +// The server's response was not valid. The server was not following the defined protocol. Resume the job, and then Background Intelligent Transfer Service (BITS) will try again. +// +#define BG_E_INVALID_SERVER_RESPONSE 0x8020001BL + +// +// MessageId: BG_E_TOO_MANY_FILES +// +// MessageText: +// +// No more files can be added to this job. +// +#define BG_E_TOO_MANY_FILES 0x8020001CL + +// +// MessageId: BG_E_LOCAL_FILE_CHANGED +// +// MessageText: +// +// The local file was changed during the transfer. Recreate the job, and then try to transfer it again. +// +#define BG_E_LOCAL_FILE_CHANGED 0x8020001DL + +// +// MessageId: BG_E_ERROR_CONTEXT_REMOTE_APPLICATION +// +// MessageText: +// +// The program on the remote server reported the error. +// +#define BG_E_ERROR_CONTEXT_REMOTE_APPLICATION 0x8020001EL + +// +// MessageId: BG_E_SESSION_NOT_FOUND +// +// MessageText: +// +// The specified session could not be found on the server. Background Intelligent Transfer Service (BITS) will try again. +// +#define BG_E_SESSION_NOT_FOUND 0x8020001FL + +// +// MessageId: BG_E_TOO_LARGE +// +// MessageText: +// +// The job is too large for the server to accept. This job might exceed a job size limit set by the server administrator. Reduce the size of the job, and then try again. +// +#define BG_E_TOO_LARGE 0x80200020L + +// +// MessageId: BG_E_STRING_TOO_LONG +// +// MessageText: +// +// The specified string is too long. +// +#define BG_E_STRING_TOO_LONG 0x80200021L + +// +// MessageId: BG_E_CLIENT_SERVER_PROTOCOL_MISMATCH +// +// MessageText: +// +// The client and server versions of Background Intelligent Transfer Service (BITS) are incompatible. +// +#define BG_E_CLIENT_SERVER_PROTOCOL_MISMATCH 0x80200022L + +// +// MessageId: BG_E_SERVER_EXECUTE_ENABLE +// +// MessageText: +// +// Scripting OR execute permissions are enabled on the IIS virtual directory associated with the job. To upload files to the virtual directory, disable the scripting and execute permissions on the virtual directory. +// +#define BG_E_SERVER_EXECUTE_ENABLE 0x80200023L + +// +// MessageId: BG_E_NO_PROGRESS +// +// MessageText: +// +// The job is not making headway. The server may be misconfigured. Background Intelligent Transfer Service (BITS) will try again later. +// +#define BG_E_NO_PROGRESS 0x80200024L + +// +// MessageId: BG_E_USERNAME_TOO_LARGE +// +// MessageText: +// +// The user name cannot be longer than 300 characters. Try again with a shorter name. +// +#define BG_E_USERNAME_TOO_LARGE 0x80200025L + +// +// MessageId: BG_E_PASSWORD_TOO_LARGE +// +// MessageText: +// +// The password cannot be longer than 65536 characters. Try again with a shorter password. +// +#define BG_E_PASSWORD_TOO_LARGE 0x80200026L + +// +// MessageId: BG_E_INVALID_AUTH_TARGET +// +// MessageText: +// +// The authentication target specified in the credentials is not defined. +// +#define BG_E_INVALID_AUTH_TARGET 0x80200027L + +// +// MessageId: BG_E_INVALID_AUTH_SCHEME +// +// MessageText: +// +// The authentication scheme specified in the credentials is not defined. +// +#define BG_E_INVALID_AUTH_SCHEME 0x80200028L + +// +// MessageId: BG_E_FILE_NOT_FOUND +// +// MessageText: +// +// The specified file name does not match any of the files in the job. +// +#define BG_E_FILE_NOT_FOUND 0x80200029L + +// +// MessageId: BG_S_PROXY_CHANGED +// +// MessageText: +// +// The proxy server was changed. +// +#define BG_S_PROXY_CHANGED 0x0020002AL + +// +// MessageId: BG_E_INVALID_RANGE +// +// MessageText: +// +// The requested byte range extends beyond the end of the web page. Use byte ranges that are wholly within the page. +// +#define BG_E_INVALID_RANGE 0x8020002BL + +// +// MessageId: BG_E_OVERLAPPING_RANGES +// +// MessageText: +// +// The list of byte ranges contains some overlapping ranges, which are not supported. +// +#define BG_E_OVERLAPPING_RANGES 0x8020002CL + +// +// MessageId: BG_E_CONNECT_FAILURE +// +// MessageText: +// +// A connection could not be established. +// +#define BG_E_CONNECT_FAILURE 0x8020002DL + +// +// MessageId: BG_E_CONNECTION_CLOSED +// +// MessageText: +// +// The connection was closed prematurely. +// +#define BG_E_CONNECTION_CLOSED 0x8020002EL + +// +// Codes 2F through 3D are reserved for future use. +// +// +// MessageId: BG_E_BLOCKED_BY_POLICY +// +// MessageText: +// +// Group Policy settings prevent background jobs from running at this time. +// +#define BG_E_BLOCKED_BY_POLICY 0x8020003EL + +// +// MessageId: BG_E_INVALID_PROXY_INFO +// +// MessageText: +// +// The supplied proxy server or bypass list is invalid. +// +#define BG_E_INVALID_PROXY_INFO 0x8020003FL + +// +// MessageId: BG_E_INVALID_CREDENTIALS +// +// MessageText: +// +// The format of the supplied security credentials is invalid. +// +#define BG_E_INVALID_CREDENTIALS 0x80200040L + +// +// MessageId: BG_E_INVALID_HASH_ALGORITHM +// +// MessageText: +// +// The application chose an unsupported hashing algorithm. +// +#define BG_E_INVALID_HASH_ALGORITHM 0x80200041L + +// +// MessageId: BG_E_RECORD_DELETED +// +// MessageText: +// +// The chosen cache record has been deleted. The attempt to update it has been abandoned. +// +#define BG_E_RECORD_DELETED 0x80200042L + +// +// MessageId: BG_E_COMMIT_IN_PROGRESS +// +// MessageText: +// +// Another application thread is already updating the cache record. +// +#define BG_E_COMMIT_IN_PROGRESS 0x80200043L + +// +// MessageId: BG_E_DISCOVERY_IN_PROGRESS +// +// MessageText: +// +// The system is already searching for neighbors. Retry the operation after a few seconds. +// +#define BG_E_DISCOVERY_IN_PROGRESS 0x80200044L + +// +// MessageId: BG_E_UPNP_ERROR +// +// MessageText: +// +// A Universal Plug and Play (UPnP) error has occured. Please check your Internet Gateway Device. +// +#define BG_E_UPNP_ERROR 0x80200045L + +// +// MessageId: BG_E_TEST_OPTION_BLOCKED_DOWNLOAD +// +// MessageText: +// +// The test option is blocking the download after the search completed. +// +#define BG_E_TEST_OPTION_BLOCKED_DOWNLOAD 0x80200046L + +// +// MessageId: BG_E_PEERCACHING_DISABLED +// +// MessageText: +// +// Peer-caching is disabled. +// +#define BG_E_PEERCACHING_DISABLED 0x80200047L + +// +// MessageId: BG_E_BUSYCACHERECORD +// +// MessageText: +// +// The cache record is in use and can not be changed or deleted at this time. Try again after a few seconds. +// +#define BG_E_BUSYCACHERECORD 0x80200048L + +// +// MessageId: BG_E_TOO_MANY_JOBS_PER_USER +// +// MessageText: +// +// Job count for the current user has exceeded the per user job limit. +// +#define BG_E_TOO_MANY_JOBS_PER_USER 0x80200049L + +// +// MessageId: BG_E_TOO_MANY_JOBS_PER_MACHINE +// +// MessageText: +// +// Job count for the current machine has exceeded the per machine job limit. +// +#define BG_E_TOO_MANY_JOBS_PER_MACHINE 0x80200050L + +// +// MessageId: BG_E_TOO_MANY_FILES_IN_JOB +// +// MessageText: +// +// File count for the current job has exceeded the per job file limit. +// +#define BG_E_TOO_MANY_FILES_IN_JOB 0x80200051L + +// +// MessageId: BG_E_TOO_MANY_RANGES_IN_FILE +// +// MessageText: +// +// Range count for the current file has exceeded the per file Range limit. +// +#define BG_E_TOO_MANY_RANGES_IN_FILE 0x80200052L + +// +// MessageId: BG_E_VALIDATION_FAILED +// +// MessageText: +// +// The application requested data from a web site, but the response was invalid. Using Event Viewer, check the log 'Application Logs \ Microsoft \ Windows \ Bits-client \ Operational' for more details. +// +#define BG_E_VALIDATION_FAILED 0x80200053L + +// +// MessageId: BG_E_MAXDOWNLOAD_TIMEOUT +// +// MessageText: +// +// BITS timed out downloading the job. The download did not complete within the maximum download time set on the job. +// +#define BG_E_MAXDOWNLOAD_TIMEOUT 0x80200054L + +// +// MessageId: BG_S_OVERRIDDEN_BY_POLICY +// +// MessageText: +// +// The configuration preferences have been saved successfully, but one or more of them are overridden by Group Policy. +// +#define BG_S_OVERRIDDEN_BY_POLICY 0x00200055L + +// +// MessageId: BG_E_TOKEN_REQUIRED +// +// MessageText: +// +// The job is configured to use a different security token for some operations, but the token is not currently available. The application must provide a token and then resume the job. +// +#define BG_E_TOKEN_REQUIRED 0x80200056L + +// +// MessageId: BG_E_UNKNOWN_PROPERTY_ID +// +// MessageText: +// +// SetProperty() or GetProperty() called with an unknown property ID. +// +#define BG_E_UNKNOWN_PROPERTY_ID 0x80200057L + +// +// MessageId: BG_E_READ_ONLY_PROPERTY +// +// MessageText: +// +// Unable to call SetProperty() on a read-only property. +// +#define BG_E_READ_ONLY_PROPERTY 0x80200058L + +// +// MessageId: BG_E_BLOCKED_BY_COST_TRANSFER_POLICY +// +// MessageText: +// +// The job's cost transfer policy settings prevent the job from transferring at this time. +// +#define BG_E_BLOCKED_BY_COST_TRANSFER_POLICY 0x80200059L + +// +// MessageId: BG_E_PROPERTY_SUPPORTED_FOR_DOWNLOAD_JOBS_ONLY +// +// MessageText: +// +// The property is supported for download jobs only. +// +#define BG_E_PROPERTY_SUPPORTED_FOR_DOWNLOAD_JOBS_ONLY 0x80200060L + +// +// MessageId: BG_E_READ_ONLY_PROPERTY_AFTER_ADDFILE +// +// MessageText: +// +// The property cannot be changed after adding a file to job. +// +#define BG_E_READ_ONLY_PROPERTY_AFTER_ADDFILE 0x80200061L + +// +// MessageId: BG_E_READ_ONLY_PROPERTY_AFTER_RESUME +// +// MessageText: +// +// The property cannot be changed after Resuming the job. +// +#define BG_E_READ_ONLY_PROPERTY_AFTER_RESUME 0x80200062L + +// +// MessageId: BG_E_MAX_DOWNLOAD_SIZE_INVALID_VALUE +// +// MessageText: +// +// The value provided for BITS_JOB_PROPERTY_MAX_DOWNLOAD_SIZE property is invalid. Please provide value between 1 and UINT64_MAX. +// +#define BG_E_MAX_DOWNLOAD_SIZE_INVALID_VALUE 0x80200063L + +// +// MessageId: BG_E_MAX_DOWNLOAD_SIZE_LIMIT_REACHED +// +// MessageText: +// +// BITS cannot continue downloading the job. The download reached the maximum download size limit set on the job. +// +#define BG_E_MAX_DOWNLOAD_SIZE_LIMIT_REACHED 0x80200064L + +// +// MessageId: BG_E_STANDBY_MODE +// +// MessageText: +// +// The transfer was paused because the computer is in power-saving mode. The transfer will resume when the computer wakes up. +// +#define BG_E_STANDBY_MODE 0x80200065L + +// +// MessageId: BG_E_USE_STORED_CREDENTIALS_NOT_SUPPORTED +// +// MessageText: +// +// The value provided for BITS_JOB_PROPERTY_USE_STORED_CREDENTIALS property is invalid. The property is only supported for Proxy (BG_AUTH_TARGET_PROXY) targets. +// +#define BG_E_USE_STORED_CREDENTIALS_NOT_SUPPORTED 0x80200066L + +// +// MessageId: BG_E_BLOCKED_BY_BATTERY_POLICY +// +// MessageText: +// +// The transfer was paused because the computer is running on battery power. The transfer will resume when the system is reconnected to A/C power. +// +#define BG_E_BLOCKED_BY_BATTERY_POLICY 0x80200067L + +// +// MessageId: BG_E_BLOCKED_BY_BATTERY_SAVER +// +// MessageText: +// +// The transfer was paused because the computer is in Battery Saver mode. The transfer will resume when the system is reconnected to A/C power or no longer in Battery Saver mode. +// +#define BG_E_BLOCKED_BY_BATTERY_SAVER 0x80200068L + +// +// MessageId: BG_E_WATCHDOG_TIMEOUT +// +// MessageText: +// +// An operation did not complete within the expected time interval. +// +#define BG_E_WATCHDOG_TIMEOUT 0x80200069L + +// +// MessageId: BG_E_APP_PACKAGE_NOT_FOUND +// +// MessageText: +// +// An app package matching the job owner or COM caller was not found. +// +#define BG_E_APP_PACKAGE_NOT_FOUND 0x8020006AL + +// +// MessageId: BG_E_APP_PACKAGE_SCENARIO_NOT_SUPPORTED +// +// MessageText: +// +// BITS usage by app packages cannot be supported on this device because one or more dependencies are missing. +// +#define BG_E_APP_PACKAGE_SCENARIO_NOT_SUPPORTED 0x8020006BL + +// +// MessageId: BG_E_DATABASE_CORRUPT +// +// MessageText: +// +// BITS persistent state corruption was detected. The necessary steps will be taken to fix this issue once BITS is restarted. BITS will now shutdown. +// +#define BG_E_DATABASE_CORRUPT 0x8020006CL + +// +// MessageId: BG_E_RANDOM_ACCESS_NOT_SUPPORTED +// +// MessageText: +// +// BITS IBackgroundCopyFile6 methods are not supported in SMB, dynamic content, multirange, upload, or upload-reply transfers. +// +#define BG_E_RANDOM_ACCESS_NOT_SUPPORTED 0x8020006DL + +// +// MessageId: BG_E_BLOCKED_BY_BACKGROUND_ACCESS_POLICY +// +// MessageText: +// +// The background access settings of the job's owner app prevent the job from transferring at this time. +// +#define BG_E_BLOCKED_BY_BACKGROUND_ACCESS_POLICY 0x8020006EL + +// +// MessageId: BG_E_BLOCKED_BY_GAME_MODE +// +// MessageText: +// +// The job was paused because there is an active Game Mode recipient that isn't the job's owner. The job will resume once the Game Mode recipient loses input focus or is closed. +// +#define BG_E_BLOCKED_BY_GAME_MODE 0x8020006FL + +// +// MessageId: BG_E_BLOCKED_BY_SYSTEM_POLICY +// +// MessageText: +// +// The job was paused due to system resource constraints. The job will automatically resume once system conditions change. +// +#define BG_E_BLOCKED_BY_SYSTEM_POLICY 0x80200070L + +// +// MessageId: BG_E_NOT_SUPPORTED_WITH_CUSTOM_HTTP_METHOD +// +// MessageText: +// +// The requested action is not supported by jobs configured with a custom HTTP method. +// +#define BG_E_NOT_SUPPORTED_WITH_CUSTOM_HTTP_METHOD 0x80200071L + +// +// MessageId: BG_E_UNSUPPORTED_JOB_CONFIGURATION +// +// MessageText: +// +// The current job configuration is not compatible with the requested action. +// +#define BG_E_UNSUPPORTED_JOB_CONFIGURATION 0x80200072L + +// +// MessageId: BG_E_REMOTE_FILE_CHANGED +// +// MessageText: +// +// The remote file was changed during the transfer. If this is expected, call Resume on the job to initiate a retry. +// +#define BG_E_REMOTE_FILE_CHANGED 0x80200073L + +// +// MessageId: BG_E_SERVER_CERT_VALIDATION_INTERFACE_REQUIRED +// +// MessageText: +// +// The job is configured to raise a certificate validation callback, but the callback object is not currently available. The job owner must provide a new callback object and then resume the job. +// +#define BG_E_SERVER_CERT_VALIDATION_INTERFACE_REQUIRED 0x80200074L + +// +// MessageId: BG_E_READ_ONLY_WHEN_JOB_ACTIVE +// +// MessageText: +// +// This method should only be called when the job is in a paused state (SUSPENDED/ERROR/TRANSFERRED). +// +#define BG_E_READ_ONLY_WHEN_JOB_ACTIVE 0x80200075L + +// +// MessageId: BG_E_ERROR_CONTEXT_SERVER_CERTIFICATE_CALLBACK +// +// MessageText: +// +// The error occurred while the user-provided server certificate validation callback was being processed. +// +#define BG_E_ERROR_CONTEXT_SERVER_CERTIFICATE_CALLBACK 0x80200076L + +// +// MessageId: BG_E_HTTP_ERROR_100 +// +// MessageText: +// +// HTTP status 100: The request can be continued. +// +#define BG_E_HTTP_ERROR_100 0x80190064L + +// +// MessageId: BG_E_HTTP_ERROR_101 +// +// MessageText: +// +// HTTP status 101: The server switched protocols in an upgrade header. +// +#define BG_E_HTTP_ERROR_101 0x80190065L + +// +// MessageId: BG_E_HTTP_ERROR_200 +// +// MessageText: +// +// HTTP status 200: The server's response was not valid. The server was not following the defined protocol. Resume the job, and then Background Intelligent Transfer Service (BITS) will try again. +// +#define BG_E_HTTP_ERROR_200 0x801900C8L + +// +// MessageId: BG_E_HTTP_ERROR_201 +// +// MessageText: +// +// HTTP status 201: The request was fulfilled and resulted in the creation of a new resource. +// +#define BG_E_HTTP_ERROR_201 0x801900C9L + +// +// MessageId: BG_E_HTTP_ERROR_202 +// +// MessageText: +// +// HTTP status 202: The request was accepted for processing, but the processing has not been completed yet. +// +#define BG_E_HTTP_ERROR_202 0x801900CAL + +// +// MessageId: BG_E_HTTP_ERROR_203 +// +// MessageText: +// +// HTTP status 203: The returned metadata in the entity-header is not the definitive set available from the server of origin. +// +#define BG_E_HTTP_ERROR_203 0x801900CBL + +// +// MessageId: BG_E_HTTP_ERROR_204 +// +// MessageText: +// +// HTTP status 204: The server has fulfilled the request, but there is no new information to send back. +// +#define BG_E_HTTP_ERROR_204 0x801900CCL + +// +// MessageId: BG_E_HTTP_ERROR_205 +// +// MessageText: +// +// HTTP status 205: The server's response was not valid. The server was not following the defined protocol. Resume the job, and then Background Intelligent Transfer Service (BITS) will try again. +// +#define BG_E_HTTP_ERROR_205 0x801900CDL + +// +// MessageId: BG_E_HTTP_ERROR_206 +// +// MessageText: +// +// HTTP status 206: The server fulfilled the partial GET request for the resource. +// +#define BG_E_HTTP_ERROR_206 0x801900CEL + +// +// MessageId: BG_E_HTTP_ERROR_300 +// +// MessageText: +// +// HTTP status 300: The server could not return the requested data. +// +#define BG_E_HTTP_ERROR_300 0x8019012CL + +// +// MessageId: BG_E_HTTP_ERROR_301 +// +// MessageText: +// +// HTTP status 301: The requested resource was assigned to a new permanent Uniform Resource Identifier (URI), and any future references to this resource should use one of the returned URIs. +// +#define BG_E_HTTP_ERROR_301 0x8019012DL + +// +// MessageId: BG_E_HTTP_ERROR_302 +// +// MessageText: +// +// HTTP status 302: The requested resource was assigned a different Uniform Resource Identifier (URI). This change is temporary. +// +#define BG_E_HTTP_ERROR_302 0x8019012EL + +// +// MessageId: BG_E_HTTP_ERROR_303 +// +// MessageText: +// +// HTTP status 303: The response to the request is under a different Uniform Resource Identifier (URI) and must be retrieved using a GET method on that resource. +// +#define BG_E_HTTP_ERROR_303 0x8019012FL + +// +// MessageId: BG_E_HTTP_ERROR_304 +// +// MessageText: +// +// HTTP status 304: The server's response was not valid. The server was not following the defined protocol. Resume the job, and then Background Intelligent Transfer Service (BITS) will try again. +// +#define BG_E_HTTP_ERROR_304 0x80190130L + +// +// MessageId: BG_E_HTTP_ERROR_305 +// +// MessageText: +// +// HTTP status 305: The requested resource must be accessed through the proxy given by the location field. +// +#define BG_E_HTTP_ERROR_305 0x80190131L + +// +// MessageId: BG_E_HTTP_ERROR_307 +// +// MessageText: +// +// HTTP status 307: The URL has been temporarily relocated. Try again later. +// +#define BG_E_HTTP_ERROR_307 0x80190133L + +// +// MessageId: BG_E_HTTP_ERROR_400 +// +// MessageText: +// +// HTTP status 400: The server cannot process the request because the syntax is not valid. +// +#define BG_E_HTTP_ERROR_400 0x80190190L + +// +// MessageId: BG_E_HTTP_ERROR_401 +// +// MessageText: +// +// HTTP status 401: The requested resource requires user authentication. +// +#define BG_E_HTTP_ERROR_401 0x80190191L + +// +// MessageId: BG_E_HTTP_ERROR_402 +// +// MessageText: +// +// HTTP status 402: The server's response was not valid. The server was not following the defined protocol. Resume the job, and then Background Intelligent Transfer Service (BITS) will try again. +// +#define BG_E_HTTP_ERROR_402 0x80190192L + +// +// MessageId: BG_E_HTTP_ERROR_403 +// +// MessageText: +// +// HTTP status 403: The client does not have sufficient access rights to the requested server object. +// +#define BG_E_HTTP_ERROR_403 0x80190193L + +// +// MessageId: BG_E_HTTP_ERROR_404 +// +// MessageText: +// +// HTTP status 404: The requested URL does not exist on the server. +// +#define BG_E_HTTP_ERROR_404 0x80190194L + +// +// MessageId: BG_E_HTTP_ERROR_405 +// +// MessageText: +// +// HTTP status 405: The method used is not allowed. +// +#define BG_E_HTTP_ERROR_405 0x80190195L + +// +// MessageId: BG_E_HTTP_ERROR_406 +// +// MessageText: +// +// HTTP status 406: No responses acceptable to the client were found. +// +#define BG_E_HTTP_ERROR_406 0x80190196L + +// +// MessageId: BG_E_HTTP_ERROR_407 +// +// MessageText: +// +// HTTP status 407: Proxy authentication is required. +// +#define BG_E_HTTP_ERROR_407 0x80190197L + +// +// MessageId: BG_E_HTTP_ERROR_408 +// +// MessageText: +// +// HTTP status 408: The server timed out waiting for the request. +// +#define BG_E_HTTP_ERROR_408 0x80190198L + +// +// MessageId: BG_E_HTTP_ERROR_409 +// +// MessageText: +// +// HTTP status 409: The request could not be completed because of a conflict with the current state of the resource. The user should resubmit the request with more information. +// +#define BG_E_HTTP_ERROR_409 0x80190199L + +// +// MessageId: BG_E_HTTP_ERROR_410 +// +// MessageText: +// +// HTTP status 410: The requested resource is not currently available at the server, and no forwarding address is known. +// +#define BG_E_HTTP_ERROR_410 0x8019019AL + +// +// MessageId: BG_E_HTTP_ERROR_411 +// +// MessageText: +// +// HTTP status 411: The server cannot accept the request without a defined content length. +// +#define BG_E_HTTP_ERROR_411 0x8019019BL + +// +// MessageId: BG_E_HTTP_ERROR_412 +// +// MessageText: +// +// HTTP status 412: The precondition given in one or more of the request header fields evaluated to false when it was tested on the server. +// +#define BG_E_HTTP_ERROR_412 0x8019019CL + +// +// MessageId: BG_E_HTTP_ERROR_413 +// +// MessageText: +// +// HTTP status 413: The server cannot process the request because the request entity is too large. +// +#define BG_E_HTTP_ERROR_413 0x8019019DL + +// +// MessageId: BG_E_HTTP_ERROR_414 +// +// MessageText: +// +// HTTP status 414: The server cannot process the request because the request Uniform Resource Identifier (URI) is longer than the server can interpret. +// +#define BG_E_HTTP_ERROR_414 0x8019019EL + +// +// MessageId: BG_E_HTTP_ERROR_415 +// +// MessageText: +// +// HTTP status 415: The server's response was not valid. The server was not following the defined protocol. Resume the job, and then Background Intelligent Transfer Service (BITS) will try again. +// +#define BG_E_HTTP_ERROR_415 0x8019019FL + +// +// MessageId: BG_E_HTTP_ERROR_416 +// +// MessageText: +// +// HTTP status 416: The server could not satisfy the range request. +// +#define BG_E_HTTP_ERROR_416 0x801901A0L + +// +// MessageId: BG_E_HTTP_ERROR_417 +// +// MessageText: +// +// HTTP status 417: The server could not meet the expectation given in an Expect request-header field. +// +#define BG_E_HTTP_ERROR_417 0x801901A1L + +// +// MessageId: BG_E_HTTP_ERROR_449 +// +// MessageText: +// +// HTTP status 449: The server's response was not valid. The server was not following the defined protocol. Resume the job, and then Background Intelligent Transfer Service (BITS) will try again. +// +#define BG_E_HTTP_ERROR_449 0x801901C1L + +// +// MessageId: BG_E_HTTP_ERROR_500 +// +// MessageText: +// +// HTTP status 500: An unexpected condition prevented the server from fulfilling the request. +// +#define BG_E_HTTP_ERROR_500 0x801901F4L + +// +// MessageId: BG_E_HTTP_ERROR_501 +// +// MessageText: +// +// HTTP status 501: The server does not support the functionality required to fulfill the request. +// +#define BG_E_HTTP_ERROR_501 0x801901F5L + +// +// MessageId: BG_E_HTTP_ERROR_502 +// +// MessageText: +// +// HTTP status 502: The server, while acting as a gateway or proxy to fulfill the request, received an invalid response from the upstream server it accessed. +// +#define BG_E_HTTP_ERROR_502 0x801901F6L + +// +// MessageId: BG_E_HTTP_ERROR_503 +// +// MessageText: +// +// HTTP status 503: The service is temporarily overloaded. +// +#define BG_E_HTTP_ERROR_503 0x801901F7L + +// +// MessageId: BG_E_HTTP_ERROR_504 +// +// MessageText: +// +// HTTP status 504: The request was timed out waiting for a gateway. +// +#define BG_E_HTTP_ERROR_504 0x801901F8L + +// +// MessageId: BG_E_HTTP_ERROR_505 +// +// MessageText: +// +// HTTP status 505: The server does not support the HTTP protocol version that was used in the request message. +// +#define BG_E_HTTP_ERROR_505 0x801901F9L + +// +// Additional Background Intelligent Transfer Service (BITS) mc entries +// Reserved range is 0x4000 to 0x4100 +// +// +// MessageId: BITS_MC_JOB_CANCELLED +// +// MessageText: +// +// The administrator %4 canceled job "%2" on behalf of %3. The job ID was %1. +// +#define BITS_MC_JOB_CANCELLED 0x80194000L + +// +// MessageId: BITS_MC_FILE_DELETION_FAILED +// +// MessageText: +// +// While canceling job "%2", BITS was not able to remove the temporary files listed below. +// If you can delete them, then you will regain some disk space. The job ID was %1. +// +// %3 +// +#define BITS_MC_FILE_DELETION_FAILED 0x80194001L + +// +// MessageId: BITS_MC_FILE_DELETION_FAILED_MORE +// +// MessageText: +// +// While canceling job "%2", BITS was not able to remove the temporary files listed below. +// If you can delete them, then you will regain some disk space. The job ID was %1. +// +// %3 +// +// Due to space limitations, not all files are listed here. Check for additional files of the form BITxxx.TMP in the same directory. +// +#define BITS_MC_FILE_DELETION_FAILED_MORE 0x80194002L + +// +// MessageId: BITS_MC_JOB_PROPERTY_CHANGE +// +// MessageText: +// +// The administrator %3 modified the %4 property of job "%2". The job ID was %1. +// +#define BITS_MC_JOB_PROPERTY_CHANGE 0x80194003L + +// +// MessageId: BITS_MC_JOB_TAKE_OWNERSHIP +// +// MessageText: +// +// The administrator %4 took ownership of job "%2" from %3. The job ID was %1. +// +#define BITS_MC_JOB_TAKE_OWNERSHIP 0x80194004L + +// +// MessageId: BITS_MC_JOB_SCAVENGED +// +// MessageText: +// +// Job "%2" owned by %3 was canceled after being inactive for more than %4 days. The job ID was %1. +// +#define BITS_MC_JOB_SCAVENGED 0x80194005L + +// +// MessageId: BITS_MC_JOB_NOTIFICATION_FAILURE +// +// MessageText: +// +// Job "%2" owned by %3 failed to notify its associated application. BITS will retry in %4 minutes. The job ID was %1. +// +#define BITS_MC_JOB_NOTIFICATION_FAILURE 0x80194006L + +// +// MessageId: BITS_MC_STATE_FILE_CORRUPT +// +// MessageText: +// +// The BITS job list is not in a recognized format. It may have been created by a different version of BITS. The job list has been cleared. +// +#define BITS_MC_STATE_FILE_CORRUPT 0x80194007L + +// +// MessageId: BITS_MC_FAILED_TO_START +// +// MessageText: +// +// The BITS service failed to start. Try restarting the service at a later time. +// +#define BITS_MC_FAILED_TO_START 0x80194008L + +// +// MessageId: BITS_MC_FATAL_IGD_ERROR +// +// MessageText: +// +// BITS has hit a fatal error communicating with an Internet Gateway Device. Please check that the device is functioning properly. BITS will not attempt to use this device until the next system reboot. +// +#define BITS_MC_FATAL_IGD_ERROR 0x80194009L + +// +// MessageId: BITS_MC_PEERCACHING_PORT +// +// MessageText: +// +// BITS Peer-caching protocol +// +#define BITS_MC_PEERCACHING_PORT 0x8019400AL + +// +// MessageId: BITS_MC_WSD_PORT +// +// MessageText: +// +// Web Services-Discovery protocol +// +#define BITS_MC_WSD_PORT 0x8019400BL + +#endif //_BGCPYMSG_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSys.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSys.h new file mode 100644 index 0000000000000000000000000000000000000000..04f6aba9d4fc6bccb900a5d596c63243ae45e4d2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSys.h @@ -0,0 +1,4423 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __cdo_h__ +#define __cdo_h__ +#include "cdosysstr.h" +#if defined __cplusplus && !defined CDO_NO_NAMESPACE +namespace CDO { +#else +#undef IDataSource +#endif + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDataSource_FWD_DEFINED__ +#define __IDataSource_FWD_DEFINED__ +typedef interface IDataSource IDataSource; + +#endif /* __IDataSource_FWD_DEFINED__ */ + + +#ifndef __IMessage_FWD_DEFINED__ +#define __IMessage_FWD_DEFINED__ +typedef interface IMessage IMessage; + +#endif /* __IMessage_FWD_DEFINED__ */ + + +#ifndef __IBodyPart_FWD_DEFINED__ +#define __IBodyPart_FWD_DEFINED__ +typedef interface IBodyPart IBodyPart; + +#endif /* __IBodyPart_FWD_DEFINED__ */ + + +#ifndef __IConfiguration_FWD_DEFINED__ +#define __IConfiguration_FWD_DEFINED__ +typedef interface IConfiguration IConfiguration; + +#endif /* __IConfiguration_FWD_DEFINED__ */ + + +#ifndef __IMessages_FWD_DEFINED__ +#define __IMessages_FWD_DEFINED__ +typedef interface IMessages IMessages; + +#endif /* __IMessages_FWD_DEFINED__ */ + + +#ifndef __IDropDirectory_FWD_DEFINED__ +#define __IDropDirectory_FWD_DEFINED__ +typedef interface IDropDirectory IDropDirectory; + +#endif /* __IDropDirectory_FWD_DEFINED__ */ + + +#ifndef __IBodyParts_FWD_DEFINED__ +#define __IBodyParts_FWD_DEFINED__ +typedef interface IBodyParts IBodyParts; + +#endif /* __IBodyParts_FWD_DEFINED__ */ + + +#ifndef __ISMTPScriptConnector_FWD_DEFINED__ +#define __ISMTPScriptConnector_FWD_DEFINED__ +typedef interface ISMTPScriptConnector ISMTPScriptConnector; + +#endif /* __ISMTPScriptConnector_FWD_DEFINED__ */ + + +#ifndef __INNTPEarlyScriptConnector_FWD_DEFINED__ +#define __INNTPEarlyScriptConnector_FWD_DEFINED__ +typedef interface INNTPEarlyScriptConnector INNTPEarlyScriptConnector; + +#endif /* __INNTPEarlyScriptConnector_FWD_DEFINED__ */ + + +#ifndef __INNTPPostScriptConnector_FWD_DEFINED__ +#define __INNTPPostScriptConnector_FWD_DEFINED__ +typedef interface INNTPPostScriptConnector INNTPPostScriptConnector; + +#endif /* __INNTPPostScriptConnector_FWD_DEFINED__ */ + + +#ifndef __INNTPFinalScriptConnector_FWD_DEFINED__ +#define __INNTPFinalScriptConnector_FWD_DEFINED__ +typedef interface INNTPFinalScriptConnector INNTPFinalScriptConnector; + +#endif /* __INNTPFinalScriptConnector_FWD_DEFINED__ */ + + +#ifndef __ISMTPOnArrival_FWD_DEFINED__ +#define __ISMTPOnArrival_FWD_DEFINED__ +typedef interface ISMTPOnArrival ISMTPOnArrival; + +#endif /* __ISMTPOnArrival_FWD_DEFINED__ */ + + +#ifndef __INNTPOnPostEarly_FWD_DEFINED__ +#define __INNTPOnPostEarly_FWD_DEFINED__ +typedef interface INNTPOnPostEarly INNTPOnPostEarly; + +#endif /* __INNTPOnPostEarly_FWD_DEFINED__ */ + + +#ifndef __INNTPOnPost_FWD_DEFINED__ +#define __INNTPOnPost_FWD_DEFINED__ +typedef interface INNTPOnPost INNTPOnPost; + +#endif /* __INNTPOnPost_FWD_DEFINED__ */ + + +#ifndef __INNTPOnPostFinal_FWD_DEFINED__ +#define __INNTPOnPostFinal_FWD_DEFINED__ +typedef interface INNTPOnPostFinal INNTPOnPostFinal; + +#endif /* __INNTPOnPostFinal_FWD_DEFINED__ */ + + +#ifndef __IProxyObject_FWD_DEFINED__ +#define __IProxyObject_FWD_DEFINED__ +typedef interface IProxyObject IProxyObject; + +#endif /* __IProxyObject_FWD_DEFINED__ */ + + +#ifndef __IGetInterface_FWD_DEFINED__ +#define __IGetInterface_FWD_DEFINED__ +typedef interface IGetInterface IGetInterface; + +#endif /* __IGetInterface_FWD_DEFINED__ */ + + +#ifndef __IBodyParts_FWD_DEFINED__ +#define __IBodyParts_FWD_DEFINED__ +typedef interface IBodyParts IBodyParts; + +#endif /* __IBodyParts_FWD_DEFINED__ */ + + +#ifndef __IMessages_FWD_DEFINED__ +#define __IMessages_FWD_DEFINED__ +typedef interface IMessages IMessages; + +#endif /* __IMessages_FWD_DEFINED__ */ + + +#ifndef __Message_FWD_DEFINED__ +#define __Message_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Message Message; +#else +typedef struct Message Message; +#endif /* __cplusplus */ + +#endif /* __Message_FWD_DEFINED__ */ + + +#ifndef __Configuration_FWD_DEFINED__ +#define __Configuration_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Configuration Configuration; +#else +typedef struct Configuration Configuration; +#endif /* __cplusplus */ + +#endif /* __Configuration_FWD_DEFINED__ */ + + +#ifndef __DropDirectory_FWD_DEFINED__ +#define __DropDirectory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DropDirectory DropDirectory; +#else +typedef struct DropDirectory DropDirectory; +#endif /* __cplusplus */ + +#endif /* __DropDirectory_FWD_DEFINED__ */ + + +#ifndef __SMTPConnector_FWD_DEFINED__ +#define __SMTPConnector_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SMTPConnector SMTPConnector; +#else +typedef struct SMTPConnector SMTPConnector; +#endif /* __cplusplus */ + +#endif /* __SMTPConnector_FWD_DEFINED__ */ + + +#ifndef __NNTPEarlyConnector_FWD_DEFINED__ +#define __NNTPEarlyConnector_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class NNTPEarlyConnector NNTPEarlyConnector; +#else +typedef struct NNTPEarlyConnector NNTPEarlyConnector; +#endif /* __cplusplus */ + +#endif /* __NNTPEarlyConnector_FWD_DEFINED__ */ + + +#ifndef __NNTPPostConnector_FWD_DEFINED__ +#define __NNTPPostConnector_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class NNTPPostConnector NNTPPostConnector; +#else +typedef struct NNTPPostConnector NNTPPostConnector; +#endif /* __cplusplus */ + +#endif /* __NNTPPostConnector_FWD_DEFINED__ */ + + +#ifndef __NNTPFinalConnector_FWD_DEFINED__ +#define __NNTPFinalConnector_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class NNTPFinalConnector NNTPFinalConnector; +#else +typedef struct NNTPFinalConnector NNTPFinalConnector; +#endif /* __cplusplus */ + +#endif /* __NNTPFinalConnector_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#ifndef __cplusplus // X5-101346 +typedef interface ADOError ADOError; +typedef interface ADOErrors ADOErrors; +typedef interface _ADOCommand _ADOCommand; +typedef interface _ADOConnection _ADOConnection; +typedef interface _ADORecord _ADORecord; +typedef interface IRecADOFields IRecADOFields; +typedef interface _ADOStream _ADOStream; +typedef interface _ADORecordset _ADORecordset; +typedef interface ADOField ADOField; +typedef interface _ADOField _ADOField; +typedef interface ADOFields ADOFields; +typedef interface _ADOParameter _ADOParameter; +typedef interface ADOParameters ADOParameters; +typedef interface ADOProperty ADOProperty; +typedef interface ADOProperties ADOProperties; +#endif // __cplusplus +#include "adoint_backcompat.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_cdo_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + +typedef /* [helpstring] */ +enum CdoConfigSource + { + cdoDefaults = -1, + cdoIIS = 1, + cdoOutlookExpress = 2 + } CdoConfigSource; + +typedef /* [helpstring] */ +enum CdoDSNOptions + { + cdoDSNDefault = 0, + cdoDSNNever = 1, + cdoDSNFailure = 2, + cdoDSNSuccess = 4, + cdoDSNDelay = 8, + cdoDSNSuccessFailOrDelay = 14 + } CdoDSNOptions; + +typedef /* [helpstring] */ +enum CdoEventStatus + { + cdoRunNextSink = 0, + cdoSkipRemainingSinks = 1 + } CdoEventStatus; + +typedef /* [helpstring] */ +enum CdoEventType + { + cdoSMTPOnArrival = 1, + cdoNNTPOnPostEarly = 2, + cdoNNTPOnPost = 3, + cdoNNTPOnPostFinal = 4 + } CdoEventType; + +typedef /* [helpstring] */ +enum cdoImportanceValues + { + cdoLow = 0, + cdoNormal = 1, + cdoHigh = 2 + } cdoImportanceValues; + +typedef /* [helpstring] */ +enum CdoMessageStat + { + cdoStatSuccess = 0, + cdoStatAbortDelivery = 2, + cdoStatBadMail = 3 + } CdoMessageStat; + +typedef /* [helpstring] */ +enum CdoMHTMLFlags + { + cdoSuppressNone = 0, + cdoSuppressImages = 1, + cdoSuppressBGSounds = 2, + cdoSuppressFrames = 4, + cdoSuppressObjects = 8, + cdoSuppressStyleSheets = 16, + cdoSuppressAll = 31 + } CdoMHTMLFlags; + +typedef /* [helpstring] */ +enum CdoNNTPProcessingField + { + cdoPostMessage = 1, + cdoProcessControl = 2, + cdoProcessModerator = 4 + } CdoNNTPProcessingField; + +typedef /* [helpstring] */ +enum CdoPostUsing + { + cdoPostUsingPickup = 1, + cdoPostUsingPort = 2 + } CdoPostUsing; + +typedef +enum cdoPriorityValues + { + cdoPriorityNonUrgent = -1, + cdoPriorityNormal = 0, + cdoPriorityUrgent = 1 + } cdoPriorityValues; + +typedef /* [helpstring] */ +enum CdoProtocolsAuthentication + { + cdoAnonymous = 0, + cdoBasic = 1, + cdoNTLM = 2 + } CdoProtocolsAuthentication; + +typedef /* [helpstring] */ +enum CdoReferenceType + { + cdoRefTypeId = 0, + cdoRefTypeLocation = 1 + } CdoReferenceType; + +typedef /* [helpstring] */ +enum CdoSendUsing + { + cdoSendUsingPickup = 1, + cdoSendUsingPort = 2 + } CdoSendUsing; + +typedef /* [helpstring] */ +enum cdoSensitivityValues + { + cdoSensitivityNone = 0, + cdoPersonal = 1, + cdoPrivate = 2, + cdoCompanyConfidential = 3 + } cdoSensitivityValues; + +typedef /* [helpstring] */ +enum CdoTimeZoneId + { + cdoUTC = 0, + cdoGMT = 1, + cdoSarajevo = 2, + cdoParis = 3, + cdoBerlin = 4, + cdoEasternEurope = 5, + cdoPrague = 6, + cdoAthens = 7, + cdoBrasilia = 8, + cdoAtlanticCanada = 9, + cdoEastern = 10, + cdoCentral = 11, + cdoMountain = 12, + cdoPacific = 13, + cdoAlaska = 14, + cdoHawaii = 15, + cdoMidwayIsland = 16, + cdoWellington = 17, + cdoBrisbane = 18, + cdoAdelaide = 19, + cdoTokyo = 20, + cdoSingapore = 21, + cdoBangkok = 22, + cdoBombay = 23, + cdoAbuDhabi = 24, + cdoTehran = 25, + cdoBaghdad = 26, + cdoIsrael = 27, + cdoNewfoundland = 28, + cdoAzores = 29, + cdoMidAtlantic = 30, + cdoMonrovia = 31, + cdoBuenosAires = 32, + cdoCaracas = 33, + cdoIndiana = 34, + cdoBogota = 35, + cdoSaskatchewan = 36, + cdoMexicoCity = 37, + cdoArizona = 38, + cdoEniwetok = 39, + cdoFiji = 40, + cdoMagadan = 41, + cdoHobart = 42, + cdoGuam = 43, + cdoDarwin = 44, + cdoBeijing = 45, + cdoAlmaty = 46, + cdoIslamabad = 47, + cdoKabul = 48, + cdoCairo = 49, + cdoHarare = 50, + cdoMoscow = 51, + cdoFloating = 52, + cdoCapeVerde = 53, + cdoCaucasus = 54, + cdoCentralAmerica = 55, + cdoEastAfrica = 56, + cdoMelbourne = 57, + cdoEkaterinburg = 58, + cdoHelsinki = 59, + cdoGreenland = 60, + cdoRangoon = 61, + cdoNepal = 62, + cdoIrkutsk = 63, + cdoKrasnoyarsk = 64, + cdoSantiago = 65, + cdoSriLanka = 66, + cdoTonga = 67, + cdoVladivostok = 68, + cdoWestCentralAfrica = 69, + cdoYakutsk = 70, + cdoDhaka = 71, + cdoSeoul = 72, + cdoPerth = 73, + cdoArab = 74, + cdoTaipei = 75, + cdoSydney2000 = 76, + cdoChihuahua = 77, + cdoCanberraCommonwealthGames2006 = 78, + cdoAdelaideCommonwealthGames2006 = 79, + cdoHobartCommonwealthGames2006 = 80, + cdoTijuana = 81, + cdoInvalidTimeZone = 82 + } CdoTimeZoneId; + + + +extern RPC_IF_HANDLE __MIDL_itf_cdo_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cdo_0000_0000_v0_0_s_ifspec; + +#ifndef __IDataSource_INTERFACE_DEFINED__ +#define __IDataSource_INTERFACE_DEFINED__ + +/* interface IDataSource */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IDataSource; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000029-8B95-11D1-82DB-00C04FB1625D") + IDataSource : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SourceClass( + /* [retval][out] */ __RPC__deref_out_opt BSTR *varSourceClass) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Source( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **varSource) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_IsDirty( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pIsDirty) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_IsDirty( + /* [in] */ VARIANT_BOOL varIsDirty) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SourceURL( + /* [retval][out] */ __RPC__deref_out_opt BSTR *varSourceURL) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__deref_out_opt _Connection **varActiveConnection) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveToObject( + /* [in] */ __RPC__in_opt IUnknown *Source, + /* [in] */ __RPC__in BSTR InterfaceName) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE OpenObject( + /* [in] */ __RPC__in_opt IUnknown *Source, + /* [in] */ __RPC__in BSTR InterfaceName) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveTo( + /* [in] */ __RPC__in BSTR SourceURL, + /* [defaultvalue][in] */ __RPC__in_opt IDispatch *ActiveConnection, + /* [optional][in] */ ConnectModeEnum Mode, + /* [optional][in] */ RecordCreateOptionsEnum CreateOptions, + /* [optional][in] */ RecordOpenOptionsEnum Options, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Open( + /* [in] */ __RPC__in BSTR SourceURL, + /* [defaultvalue][in] */ __RPC__in_opt IDispatch *ActiveConnection, + /* [optional][in] */ ConnectModeEnum Mode, + /* [defaultvalue][in] */ RecordCreateOptionsEnum CreateOptions, + /* [optional][in] */ RecordOpenOptionsEnum Options, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveToContainer( + /* [in] */ __RPC__in BSTR ContainerURL, + /* [defaultvalue][in] */ __RPC__in_opt IDispatch *ActiveConnection, + /* [optional][in] */ ConnectModeEnum Mode, + /* [optional][in] */ RecordCreateOptionsEnum CreateOptions, + /* [optional][in] */ RecordOpenOptionsEnum Options, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDataSourceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDataSource * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDataSource * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDataSource * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDataSource * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDataSource * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDataSource * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDataSource * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDataSource, get_SourceClass) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SourceClass )( + __RPC__in IDataSource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *varSourceClass); + + DECLSPEC_XFGVIRT(IDataSource, get_Source) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in IDataSource * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **varSource); + + DECLSPEC_XFGVIRT(IDataSource, get_IsDirty) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_IsDirty )( + __RPC__in IDataSource * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pIsDirty); + + DECLSPEC_XFGVIRT(IDataSource, put_IsDirty) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_IsDirty )( + __RPC__in IDataSource * This, + /* [in] */ VARIANT_BOOL varIsDirty); + + DECLSPEC_XFGVIRT(IDataSource, get_SourceURL) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SourceURL )( + __RPC__in IDataSource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *varSourceURL); + + DECLSPEC_XFGVIRT(IDataSource, get_ActiveConnection) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in IDataSource * This, + /* [retval][out] */ __RPC__deref_out_opt _Connection **varActiveConnection); + + DECLSPEC_XFGVIRT(IDataSource, SaveToObject) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveToObject )( + __RPC__in IDataSource * This, + /* [in] */ __RPC__in_opt IUnknown *Source, + /* [in] */ __RPC__in BSTR InterfaceName); + + DECLSPEC_XFGVIRT(IDataSource, OpenObject) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OpenObject )( + __RPC__in IDataSource * This, + /* [in] */ __RPC__in_opt IUnknown *Source, + /* [in] */ __RPC__in BSTR InterfaceName); + + DECLSPEC_XFGVIRT(IDataSource, SaveTo) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveTo )( + __RPC__in IDataSource * This, + /* [in] */ __RPC__in BSTR SourceURL, + /* [defaultvalue][in] */ __RPC__in_opt IDispatch *ActiveConnection, + /* [optional][in] */ ConnectModeEnum Mode, + /* [optional][in] */ RecordCreateOptionsEnum CreateOptions, + /* [optional][in] */ RecordOpenOptionsEnum Options, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password); + + DECLSPEC_XFGVIRT(IDataSource, Open) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in IDataSource * This, + /* [in] */ __RPC__in BSTR SourceURL, + /* [defaultvalue][in] */ __RPC__in_opt IDispatch *ActiveConnection, + /* [optional][in] */ ConnectModeEnum Mode, + /* [defaultvalue][in] */ RecordCreateOptionsEnum CreateOptions, + /* [optional][in] */ RecordOpenOptionsEnum Options, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password); + + DECLSPEC_XFGVIRT(IDataSource, Save) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IDataSource * This); + + DECLSPEC_XFGVIRT(IDataSource, SaveToContainer) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveToContainer )( + __RPC__in IDataSource * This, + /* [in] */ __RPC__in BSTR ContainerURL, + /* [defaultvalue][in] */ __RPC__in_opt IDispatch *ActiveConnection, + /* [optional][in] */ ConnectModeEnum Mode, + /* [optional][in] */ RecordCreateOptionsEnum CreateOptions, + /* [optional][in] */ RecordOpenOptionsEnum Options, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password); + + END_INTERFACE + } IDataSourceVtbl; + + interface IDataSource + { + CONST_VTBL struct IDataSourceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDataSource_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDataSource_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDataSource_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDataSource_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDataSource_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDataSource_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDataSource_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDataSource_get_SourceClass(This,varSourceClass) \ + ( (This)->lpVtbl -> get_SourceClass(This,varSourceClass) ) + +#define IDataSource_get_Source(This,varSource) \ + ( (This)->lpVtbl -> get_Source(This,varSource) ) + +#define IDataSource_get_IsDirty(This,pIsDirty) \ + ( (This)->lpVtbl -> get_IsDirty(This,pIsDirty) ) + +#define IDataSource_put_IsDirty(This,varIsDirty) \ + ( (This)->lpVtbl -> put_IsDirty(This,varIsDirty) ) + +#define IDataSource_get_SourceURL(This,varSourceURL) \ + ( (This)->lpVtbl -> get_SourceURL(This,varSourceURL) ) + +#define IDataSource_get_ActiveConnection(This,varActiveConnection) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,varActiveConnection) ) + +#define IDataSource_SaveToObject(This,Source,InterfaceName) \ + ( (This)->lpVtbl -> SaveToObject(This,Source,InterfaceName) ) + +#define IDataSource_OpenObject(This,Source,InterfaceName) \ + ( (This)->lpVtbl -> OpenObject(This,Source,InterfaceName) ) + +#define IDataSource_SaveTo(This,SourceURL,ActiveConnection,Mode,CreateOptions,Options,UserName,Password) \ + ( (This)->lpVtbl -> SaveTo(This,SourceURL,ActiveConnection,Mode,CreateOptions,Options,UserName,Password) ) + +#define IDataSource_Open(This,SourceURL,ActiveConnection,Mode,CreateOptions,Options,UserName,Password) \ + ( (This)->lpVtbl -> Open(This,SourceURL,ActiveConnection,Mode,CreateOptions,Options,UserName,Password) ) + +#define IDataSource_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IDataSource_SaveToContainer(This,ContainerURL,ActiveConnection,Mode,CreateOptions,Options,UserName,Password) \ + ( (This)->lpVtbl -> SaveToContainer(This,ContainerURL,ActiveConnection,Mode,CreateOptions,Options,UserName,Password) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDataSource_INTERFACE_DEFINED__ */ + + +#ifndef __IMessage_INTERFACE_DEFINED__ +#define __IMessage_INTERFACE_DEFINED__ + +/* interface IMessage */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IMessage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000020-8B95-11D1-82DB-00C04FB1625D") + IMessage : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BCC( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pBCC) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_BCC( + /* [in] */ __RPC__in BSTR varBCC) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_CC( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pCC) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_CC( + /* [in] */ __RPC__in BSTR varCC) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_FollowUpTo( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pFollowUpTo) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_FollowUpTo( + /* [in] */ __RPC__in BSTR varFollowUpTo) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_From( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pFrom) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_From( + /* [in] */ __RPC__in BSTR varFrom) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Keywords( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pKeywords) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Keywords( + /* [in] */ __RPC__in BSTR varKeywords) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_MimeFormatted( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pMimeFormatted) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MimeFormatted( + /* [in] */ VARIANT_BOOL varMimeFormatted) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Newsgroups( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pNewsgroups) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Newsgroups( + /* [in] */ __RPC__in BSTR varNewsgroups) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Organization( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pOrganization) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Organization( + /* [in] */ __RPC__in BSTR varOrganization) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ReceivedTime( + /* [retval][out] */ __RPC__out DATE *varReceivedTime) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ReplyTo( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pReplyTo) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ReplyTo( + /* [in] */ __RPC__in BSTR varReplyTo) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_DSNOptions( + /* [retval][out] */ __RPC__out CdoDSNOptions *pDSNOptions) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_DSNOptions( + /* [in] */ CdoDSNOptions varDSNOptions) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SentOn( + /* [retval][out] */ __RPC__out DATE *varSentOn) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Subject( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pSubject) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Subject( + /* [in] */ __RPC__in BSTR varSubject) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_To( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pTo) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_To( + /* [in] */ __RPC__in BSTR varTo) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_TextBody( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pTextBody) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_TextBody( + /* [in] */ __RPC__in BSTR varTextBody) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_HTMLBody( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pHTMLBody) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_HTMLBody( + /* [in] */ __RPC__in BSTR varHTMLBody) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Attachments( + /* [retval][out] */ __RPC__deref_out_opt IBodyParts **varAttachments) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Sender( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pSender) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Sender( + /* [in] */ __RPC__in BSTR varSender) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Configuration( + /* [retval][out] */ __RPC__deref_out_opt IConfiguration **pConfiguration) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Configuration( + /* [in] */ __RPC__in_opt IConfiguration *varConfiguration) = 0; + + virtual /* [helpcontext][helpstring][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Configuration( + /* [in] */ __RPC__in_opt IConfiguration *varConfiguration) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_AutoGenerateTextBody( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pAutoGenerateTextBody) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_AutoGenerateTextBody( + /* [in] */ VARIANT_BOOL varAutoGenerateTextBody) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_EnvelopeFields( + /* [retval][out] */ __RPC__deref_out_opt Fields **varEnvelopeFields) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_TextBodyPart( + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **varTextBodyPart) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_HTMLBodyPart( + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **varHTMLBodyPart) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BodyPart( + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **varBodyPart) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_DataSource( + /* [retval][out] */ __RPC__deref_out_opt IDataSource **varDataSource) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Fields( + /* [retval][out] */ __RPC__deref_out_opt Fields **varFields) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_MDNRequested( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pMDNRequested) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MDNRequested( + /* [in] */ VARIANT_BOOL varMDNRequested) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE AddRelatedBodyPart( + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Reference, + /* [in] */ CdoReferenceType ReferenceType, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **ppBody) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE AddAttachment( + /* [in] */ __RPC__in BSTR URL, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **ppBody) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateMHTMLBody( + /* [in] */ __RPC__in BSTR URL, + /* [defaultvalue][in] */ CdoMHTMLFlags Flags, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Forward( + /* [retval][out] */ __RPC__deref_out_opt IMessage **ppMsg) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Post( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE PostReply( + /* [retval][out] */ __RPC__deref_out_opt IMessage **ppMsg) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Reply( + /* [retval][out] */ __RPC__deref_out_opt IMessage **ppMsg) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE ReplyAll( + /* [retval][out] */ __RPC__deref_out_opt IMessage **ppMsg) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Send( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetStream( + /* [retval][out] */ __RPC__deref_out_opt _Stream **ppStream) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetInterface( + /* [in] */ __RPC__in BSTR Interface, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnknown) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMessageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMessage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMessage * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMessage * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMessage * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMessage * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMessage, get_BCC) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BCC )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pBCC); + + DECLSPEC_XFGVIRT(IMessage, put_BCC) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BCC )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varBCC); + + DECLSPEC_XFGVIRT(IMessage, get_CC) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CC )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pCC); + + DECLSPEC_XFGVIRT(IMessage, put_CC) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CC )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varCC); + + DECLSPEC_XFGVIRT(IMessage, get_FollowUpTo) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_FollowUpTo )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pFollowUpTo); + + DECLSPEC_XFGVIRT(IMessage, put_FollowUpTo) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_FollowUpTo )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varFollowUpTo); + + DECLSPEC_XFGVIRT(IMessage, get_From) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_From )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pFrom); + + DECLSPEC_XFGVIRT(IMessage, put_From) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_From )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varFrom); + + DECLSPEC_XFGVIRT(IMessage, get_Keywords) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Keywords )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pKeywords); + + DECLSPEC_XFGVIRT(IMessage, put_Keywords) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Keywords )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varKeywords); + + DECLSPEC_XFGVIRT(IMessage, get_MimeFormatted) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MimeFormatted )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pMimeFormatted); + + DECLSPEC_XFGVIRT(IMessage, put_MimeFormatted) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MimeFormatted )( + __RPC__in IMessage * This, + /* [in] */ VARIANT_BOOL varMimeFormatted); + + DECLSPEC_XFGVIRT(IMessage, get_Newsgroups) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Newsgroups )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pNewsgroups); + + DECLSPEC_XFGVIRT(IMessage, put_Newsgroups) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Newsgroups )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varNewsgroups); + + DECLSPEC_XFGVIRT(IMessage, get_Organization) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Organization )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pOrganization); + + DECLSPEC_XFGVIRT(IMessage, put_Organization) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Organization )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varOrganization); + + DECLSPEC_XFGVIRT(IMessage, get_ReceivedTime) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ReceivedTime )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__out DATE *varReceivedTime); + + DECLSPEC_XFGVIRT(IMessage, get_ReplyTo) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ReplyTo )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pReplyTo); + + DECLSPEC_XFGVIRT(IMessage, put_ReplyTo) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ReplyTo )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varReplyTo); + + DECLSPEC_XFGVIRT(IMessage, get_DSNOptions) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DSNOptions )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__out CdoDSNOptions *pDSNOptions); + + DECLSPEC_XFGVIRT(IMessage, put_DSNOptions) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DSNOptions )( + __RPC__in IMessage * This, + /* [in] */ CdoDSNOptions varDSNOptions); + + DECLSPEC_XFGVIRT(IMessage, get_SentOn) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SentOn )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__out DATE *varSentOn); + + DECLSPEC_XFGVIRT(IMessage, get_Subject) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pSubject); + + DECLSPEC_XFGVIRT(IMessage, put_Subject) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Subject )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varSubject); + + DECLSPEC_XFGVIRT(IMessage, get_To) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_To )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pTo); + + DECLSPEC_XFGVIRT(IMessage, put_To) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_To )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varTo); + + DECLSPEC_XFGVIRT(IMessage, get_TextBody) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_TextBody )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pTextBody); + + DECLSPEC_XFGVIRT(IMessage, put_TextBody) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_TextBody )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varTextBody); + + DECLSPEC_XFGVIRT(IMessage, get_HTMLBody) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_HTMLBody )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pHTMLBody); + + DECLSPEC_XFGVIRT(IMessage, put_HTMLBody) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_HTMLBody )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varHTMLBody); + + DECLSPEC_XFGVIRT(IMessage, get_Attachments) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Attachments )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IBodyParts **varAttachments); + + DECLSPEC_XFGVIRT(IMessage, get_Sender) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Sender )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pSender); + + DECLSPEC_XFGVIRT(IMessage, put_Sender) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Sender )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR varSender); + + DECLSPEC_XFGVIRT(IMessage, get_Configuration) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Configuration )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IConfiguration **pConfiguration); + + DECLSPEC_XFGVIRT(IMessage, put_Configuration) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Configuration )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in_opt IConfiguration *varConfiguration); + + DECLSPEC_XFGVIRT(IMessage, putref_Configuration) + /* [helpcontext][helpstring][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Configuration )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in_opt IConfiguration *varConfiguration); + + DECLSPEC_XFGVIRT(IMessage, get_AutoGenerateTextBody) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AutoGenerateTextBody )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pAutoGenerateTextBody); + + DECLSPEC_XFGVIRT(IMessage, put_AutoGenerateTextBody) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AutoGenerateTextBody )( + __RPC__in IMessage * This, + /* [in] */ VARIANT_BOOL varAutoGenerateTextBody); + + DECLSPEC_XFGVIRT(IMessage, get_EnvelopeFields) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EnvelopeFields )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt Fields **varEnvelopeFields); + + DECLSPEC_XFGVIRT(IMessage, get_TextBodyPart) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_TextBodyPart )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **varTextBodyPart); + + DECLSPEC_XFGVIRT(IMessage, get_HTMLBodyPart) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_HTMLBodyPart )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **varHTMLBodyPart); + + DECLSPEC_XFGVIRT(IMessage, get_BodyPart) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BodyPart )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **varBodyPart); + + DECLSPEC_XFGVIRT(IMessage, get_DataSource) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSource )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IDataSource **varDataSource); + + DECLSPEC_XFGVIRT(IMessage, get_Fields) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt Fields **varFields); + + DECLSPEC_XFGVIRT(IMessage, get_MDNRequested) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MDNRequested )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pMDNRequested); + + DECLSPEC_XFGVIRT(IMessage, put_MDNRequested) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MDNRequested )( + __RPC__in IMessage * This, + /* [in] */ VARIANT_BOOL varMDNRequested); + + DECLSPEC_XFGVIRT(IMessage, AddRelatedBodyPart) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddRelatedBodyPart )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Reference, + /* [in] */ CdoReferenceType ReferenceType, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **ppBody); + + DECLSPEC_XFGVIRT(IMessage, AddAttachment) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddAttachment )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR URL, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **ppBody); + + DECLSPEC_XFGVIRT(IMessage, CreateMHTMLBody) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateMHTMLBody )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR URL, + /* [defaultvalue][in] */ CdoMHTMLFlags Flags, + /* [optional][in] */ __RPC__in BSTR UserName, + /* [optional][in] */ __RPC__in BSTR Password); + + DECLSPEC_XFGVIRT(IMessage, Forward) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Forward )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IMessage **ppMsg); + + DECLSPEC_XFGVIRT(IMessage, Post) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Post )( + __RPC__in IMessage * This); + + DECLSPEC_XFGVIRT(IMessage, PostReply) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PostReply )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IMessage **ppMsg); + + DECLSPEC_XFGVIRT(IMessage, Reply) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reply )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IMessage **ppMsg); + + DECLSPEC_XFGVIRT(IMessage, ReplyAll) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReplyAll )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IMessage **ppMsg); + + DECLSPEC_XFGVIRT(IMessage, Send) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Send )( + __RPC__in IMessage * This); + + DECLSPEC_XFGVIRT(IMessage, GetStream) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetStream )( + __RPC__in IMessage * This, + /* [retval][out] */ __RPC__deref_out_opt _Stream **ppStream); + + DECLSPEC_XFGVIRT(IMessage, GetInterface) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetInterface )( + __RPC__in IMessage * This, + /* [in] */ __RPC__in BSTR Interface, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnknown); + + END_INTERFACE + } IMessageVtbl; + + interface IMessage + { + CONST_VTBL struct IMessageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMessage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMessage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMessage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMessage_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMessage_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMessage_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMessage_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMessage_get_BCC(This,pBCC) \ + ( (This)->lpVtbl -> get_BCC(This,pBCC) ) + +#define IMessage_put_BCC(This,varBCC) \ + ( (This)->lpVtbl -> put_BCC(This,varBCC) ) + +#define IMessage_get_CC(This,pCC) \ + ( (This)->lpVtbl -> get_CC(This,pCC) ) + +#define IMessage_put_CC(This,varCC) \ + ( (This)->lpVtbl -> put_CC(This,varCC) ) + +#define IMessage_get_FollowUpTo(This,pFollowUpTo) \ + ( (This)->lpVtbl -> get_FollowUpTo(This,pFollowUpTo) ) + +#define IMessage_put_FollowUpTo(This,varFollowUpTo) \ + ( (This)->lpVtbl -> put_FollowUpTo(This,varFollowUpTo) ) + +#define IMessage_get_From(This,pFrom) \ + ( (This)->lpVtbl -> get_From(This,pFrom) ) + +#define IMessage_put_From(This,varFrom) \ + ( (This)->lpVtbl -> put_From(This,varFrom) ) + +#define IMessage_get_Keywords(This,pKeywords) \ + ( (This)->lpVtbl -> get_Keywords(This,pKeywords) ) + +#define IMessage_put_Keywords(This,varKeywords) \ + ( (This)->lpVtbl -> put_Keywords(This,varKeywords) ) + +#define IMessage_get_MimeFormatted(This,pMimeFormatted) \ + ( (This)->lpVtbl -> get_MimeFormatted(This,pMimeFormatted) ) + +#define IMessage_put_MimeFormatted(This,varMimeFormatted) \ + ( (This)->lpVtbl -> put_MimeFormatted(This,varMimeFormatted) ) + +#define IMessage_get_Newsgroups(This,pNewsgroups) \ + ( (This)->lpVtbl -> get_Newsgroups(This,pNewsgroups) ) + +#define IMessage_put_Newsgroups(This,varNewsgroups) \ + ( (This)->lpVtbl -> put_Newsgroups(This,varNewsgroups) ) + +#define IMessage_get_Organization(This,pOrganization) \ + ( (This)->lpVtbl -> get_Organization(This,pOrganization) ) + +#define IMessage_put_Organization(This,varOrganization) \ + ( (This)->lpVtbl -> put_Organization(This,varOrganization) ) + +#define IMessage_get_ReceivedTime(This,varReceivedTime) \ + ( (This)->lpVtbl -> get_ReceivedTime(This,varReceivedTime) ) + +#define IMessage_get_ReplyTo(This,pReplyTo) \ + ( (This)->lpVtbl -> get_ReplyTo(This,pReplyTo) ) + +#define IMessage_put_ReplyTo(This,varReplyTo) \ + ( (This)->lpVtbl -> put_ReplyTo(This,varReplyTo) ) + +#define IMessage_get_DSNOptions(This,pDSNOptions) \ + ( (This)->lpVtbl -> get_DSNOptions(This,pDSNOptions) ) + +#define IMessage_put_DSNOptions(This,varDSNOptions) \ + ( (This)->lpVtbl -> put_DSNOptions(This,varDSNOptions) ) + +#define IMessage_get_SentOn(This,varSentOn) \ + ( (This)->lpVtbl -> get_SentOn(This,varSentOn) ) + +#define IMessage_get_Subject(This,pSubject) \ + ( (This)->lpVtbl -> get_Subject(This,pSubject) ) + +#define IMessage_put_Subject(This,varSubject) \ + ( (This)->lpVtbl -> put_Subject(This,varSubject) ) + +#define IMessage_get_To(This,pTo) \ + ( (This)->lpVtbl -> get_To(This,pTo) ) + +#define IMessage_put_To(This,varTo) \ + ( (This)->lpVtbl -> put_To(This,varTo) ) + +#define IMessage_get_TextBody(This,pTextBody) \ + ( (This)->lpVtbl -> get_TextBody(This,pTextBody) ) + +#define IMessage_put_TextBody(This,varTextBody) \ + ( (This)->lpVtbl -> put_TextBody(This,varTextBody) ) + +#define IMessage_get_HTMLBody(This,pHTMLBody) \ + ( (This)->lpVtbl -> get_HTMLBody(This,pHTMLBody) ) + +#define IMessage_put_HTMLBody(This,varHTMLBody) \ + ( (This)->lpVtbl -> put_HTMLBody(This,varHTMLBody) ) + +#define IMessage_get_Attachments(This,varAttachments) \ + ( (This)->lpVtbl -> get_Attachments(This,varAttachments) ) + +#define IMessage_get_Sender(This,pSender) \ + ( (This)->lpVtbl -> get_Sender(This,pSender) ) + +#define IMessage_put_Sender(This,varSender) \ + ( (This)->lpVtbl -> put_Sender(This,varSender) ) + +#define IMessage_get_Configuration(This,pConfiguration) \ + ( (This)->lpVtbl -> get_Configuration(This,pConfiguration) ) + +#define IMessage_put_Configuration(This,varConfiguration) \ + ( (This)->lpVtbl -> put_Configuration(This,varConfiguration) ) + +#define IMessage_putref_Configuration(This,varConfiguration) \ + ( (This)->lpVtbl -> putref_Configuration(This,varConfiguration) ) + +#define IMessage_get_AutoGenerateTextBody(This,pAutoGenerateTextBody) \ + ( (This)->lpVtbl -> get_AutoGenerateTextBody(This,pAutoGenerateTextBody) ) + +#define IMessage_put_AutoGenerateTextBody(This,varAutoGenerateTextBody) \ + ( (This)->lpVtbl -> put_AutoGenerateTextBody(This,varAutoGenerateTextBody) ) + +#define IMessage_get_EnvelopeFields(This,varEnvelopeFields) \ + ( (This)->lpVtbl -> get_EnvelopeFields(This,varEnvelopeFields) ) + +#define IMessage_get_TextBodyPart(This,varTextBodyPart) \ + ( (This)->lpVtbl -> get_TextBodyPart(This,varTextBodyPart) ) + +#define IMessage_get_HTMLBodyPart(This,varHTMLBodyPart) \ + ( (This)->lpVtbl -> get_HTMLBodyPart(This,varHTMLBodyPart) ) + +#define IMessage_get_BodyPart(This,varBodyPart) \ + ( (This)->lpVtbl -> get_BodyPart(This,varBodyPart) ) + +#define IMessage_get_DataSource(This,varDataSource) \ + ( (This)->lpVtbl -> get_DataSource(This,varDataSource) ) + +#define IMessage_get_Fields(This,varFields) \ + ( (This)->lpVtbl -> get_Fields(This,varFields) ) + +#define IMessage_get_MDNRequested(This,pMDNRequested) \ + ( (This)->lpVtbl -> get_MDNRequested(This,pMDNRequested) ) + +#define IMessage_put_MDNRequested(This,varMDNRequested) \ + ( (This)->lpVtbl -> put_MDNRequested(This,varMDNRequested) ) + +#define IMessage_AddRelatedBodyPart(This,URL,Reference,ReferenceType,UserName,Password,ppBody) \ + ( (This)->lpVtbl -> AddRelatedBodyPart(This,URL,Reference,ReferenceType,UserName,Password,ppBody) ) + +#define IMessage_AddAttachment(This,URL,UserName,Password,ppBody) \ + ( (This)->lpVtbl -> AddAttachment(This,URL,UserName,Password,ppBody) ) + +#define IMessage_CreateMHTMLBody(This,URL,Flags,UserName,Password) \ + ( (This)->lpVtbl -> CreateMHTMLBody(This,URL,Flags,UserName,Password) ) + +#define IMessage_Forward(This,ppMsg) \ + ( (This)->lpVtbl -> Forward(This,ppMsg) ) + +#define IMessage_Post(This) \ + ( (This)->lpVtbl -> Post(This) ) + +#define IMessage_PostReply(This,ppMsg) \ + ( (This)->lpVtbl -> PostReply(This,ppMsg) ) + +#define IMessage_Reply(This,ppMsg) \ + ( (This)->lpVtbl -> Reply(This,ppMsg) ) + +#define IMessage_ReplyAll(This,ppMsg) \ + ( (This)->lpVtbl -> ReplyAll(This,ppMsg) ) + +#define IMessage_Send(This) \ + ( (This)->lpVtbl -> Send(This) ) + +#define IMessage_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IMessage_GetInterface(This,Interface,ppUnknown) \ + ( (This)->lpVtbl -> GetInterface(This,Interface,ppUnknown) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMessage_INTERFACE_DEFINED__ */ + + +#ifndef __IBodyPart_INTERFACE_DEFINED__ +#define __IBodyPart_INTERFACE_DEFINED__ + +/* interface IBodyPart */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IBodyPart; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000021-8B95-11D1-82DB-00C04FB1625D") + IBodyPart : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BodyParts( + /* [retval][out] */ __RPC__deref_out_opt IBodyParts **varBodyParts) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ContentTransferEncoding( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pContentTransferEncoding) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ContentTransferEncoding( + /* [in] */ __RPC__in BSTR varContentTransferEncoding) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ContentMediaType( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pContentMediaType) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ContentMediaType( + /* [in] */ __RPC__in BSTR varContentMediaType) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Fields( + /* [retval][out] */ __RPC__deref_out_opt Fields **varFields) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Charset( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pCharset) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Charset( + /* [in] */ __RPC__in BSTR varCharset) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_FileName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *varFileName) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_DataSource( + /* [retval][out] */ __RPC__deref_out_opt IDataSource **varDataSource) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ContentClass( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pContentClass) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ContentClass( + /* [in] */ __RPC__in BSTR varContentClass) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ContentClassName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pContentClassName) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ContentClassName( + /* [in] */ __RPC__in BSTR varContentClassName) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Parent( + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **varParent) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE AddBodyPart( + /* [defaultvalue][in] */ long Index, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **ppPart) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveToFile( + /* [in] */ __RPC__in BSTR FileName) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetEncodedContentStream( + /* [retval][out] */ __RPC__deref_out_opt _Stream **ppStream) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDecodedContentStream( + /* [retval][out] */ __RPC__deref_out_opt _Stream **ppStream) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetStream( + /* [retval][out] */ __RPC__deref_out_opt _Stream **ppStream) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetFieldParameter( + /* [in] */ __RPC__in BSTR FieldName, + /* [in] */ __RPC__in BSTR Parameter, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrValue) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetInterface( + /* [in] */ __RPC__in BSTR Interface, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnknown) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBodyPartVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBodyPart * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBodyPart * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBodyPart * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBodyPart * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBodyPart * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBodyPart * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBodyPart * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBodyPart, get_BodyParts) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BodyParts )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt IBodyParts **varBodyParts); + + DECLSPEC_XFGVIRT(IBodyPart, get_ContentTransferEncoding) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ContentTransferEncoding )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pContentTransferEncoding); + + DECLSPEC_XFGVIRT(IBodyPart, put_ContentTransferEncoding) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ContentTransferEncoding )( + __RPC__in IBodyPart * This, + /* [in] */ __RPC__in BSTR varContentTransferEncoding); + + DECLSPEC_XFGVIRT(IBodyPart, get_ContentMediaType) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ContentMediaType )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pContentMediaType); + + DECLSPEC_XFGVIRT(IBodyPart, put_ContentMediaType) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ContentMediaType )( + __RPC__in IBodyPart * This, + /* [in] */ __RPC__in BSTR varContentMediaType); + + DECLSPEC_XFGVIRT(IBodyPart, get_Fields) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt Fields **varFields); + + DECLSPEC_XFGVIRT(IBodyPart, get_Charset) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Charset )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pCharset); + + DECLSPEC_XFGVIRT(IBodyPart, put_Charset) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Charset )( + __RPC__in IBodyPart * This, + /* [in] */ __RPC__in BSTR varCharset); + + DECLSPEC_XFGVIRT(IBodyPart, get_FileName) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_FileName )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *varFileName); + + DECLSPEC_XFGVIRT(IBodyPart, get_DataSource) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSource )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt IDataSource **varDataSource); + + DECLSPEC_XFGVIRT(IBodyPart, get_ContentClass) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ContentClass )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pContentClass); + + DECLSPEC_XFGVIRT(IBodyPart, put_ContentClass) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ContentClass )( + __RPC__in IBodyPart * This, + /* [in] */ __RPC__in BSTR varContentClass); + + DECLSPEC_XFGVIRT(IBodyPart, get_ContentClassName) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ContentClassName )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pContentClassName); + + DECLSPEC_XFGVIRT(IBodyPart, put_ContentClassName) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ContentClassName )( + __RPC__in IBodyPart * This, + /* [in] */ __RPC__in BSTR varContentClassName); + + DECLSPEC_XFGVIRT(IBodyPart, get_Parent) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **varParent); + + DECLSPEC_XFGVIRT(IBodyPart, AddBodyPart) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddBodyPart )( + __RPC__in IBodyPart * This, + /* [defaultvalue][in] */ long Index, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **ppPart); + + DECLSPEC_XFGVIRT(IBodyPart, SaveToFile) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveToFile )( + __RPC__in IBodyPart * This, + /* [in] */ __RPC__in BSTR FileName); + + DECLSPEC_XFGVIRT(IBodyPart, GetEncodedContentStream) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetEncodedContentStream )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt _Stream **ppStream); + + DECLSPEC_XFGVIRT(IBodyPart, GetDecodedContentStream) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDecodedContentStream )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt _Stream **ppStream); + + DECLSPEC_XFGVIRT(IBodyPart, GetStream) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetStream )( + __RPC__in IBodyPart * This, + /* [retval][out] */ __RPC__deref_out_opt _Stream **ppStream); + + DECLSPEC_XFGVIRT(IBodyPart, GetFieldParameter) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFieldParameter )( + __RPC__in IBodyPart * This, + /* [in] */ __RPC__in BSTR FieldName, + /* [in] */ __RPC__in BSTR Parameter, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrValue); + + DECLSPEC_XFGVIRT(IBodyPart, GetInterface) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetInterface )( + __RPC__in IBodyPart * This, + /* [in] */ __RPC__in BSTR Interface, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnknown); + + END_INTERFACE + } IBodyPartVtbl; + + interface IBodyPart + { + CONST_VTBL struct IBodyPartVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBodyPart_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBodyPart_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBodyPart_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBodyPart_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBodyPart_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBodyPart_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBodyPart_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBodyPart_get_BodyParts(This,varBodyParts) \ + ( (This)->lpVtbl -> get_BodyParts(This,varBodyParts) ) + +#define IBodyPart_get_ContentTransferEncoding(This,pContentTransferEncoding) \ + ( (This)->lpVtbl -> get_ContentTransferEncoding(This,pContentTransferEncoding) ) + +#define IBodyPart_put_ContentTransferEncoding(This,varContentTransferEncoding) \ + ( (This)->lpVtbl -> put_ContentTransferEncoding(This,varContentTransferEncoding) ) + +#define IBodyPart_get_ContentMediaType(This,pContentMediaType) \ + ( (This)->lpVtbl -> get_ContentMediaType(This,pContentMediaType) ) + +#define IBodyPart_put_ContentMediaType(This,varContentMediaType) \ + ( (This)->lpVtbl -> put_ContentMediaType(This,varContentMediaType) ) + +#define IBodyPart_get_Fields(This,varFields) \ + ( (This)->lpVtbl -> get_Fields(This,varFields) ) + +#define IBodyPart_get_Charset(This,pCharset) \ + ( (This)->lpVtbl -> get_Charset(This,pCharset) ) + +#define IBodyPart_put_Charset(This,varCharset) \ + ( (This)->lpVtbl -> put_Charset(This,varCharset) ) + +#define IBodyPart_get_FileName(This,varFileName) \ + ( (This)->lpVtbl -> get_FileName(This,varFileName) ) + +#define IBodyPart_get_DataSource(This,varDataSource) \ + ( (This)->lpVtbl -> get_DataSource(This,varDataSource) ) + +#define IBodyPart_get_ContentClass(This,pContentClass) \ + ( (This)->lpVtbl -> get_ContentClass(This,pContentClass) ) + +#define IBodyPart_put_ContentClass(This,varContentClass) \ + ( (This)->lpVtbl -> put_ContentClass(This,varContentClass) ) + +#define IBodyPart_get_ContentClassName(This,pContentClassName) \ + ( (This)->lpVtbl -> get_ContentClassName(This,pContentClassName) ) + +#define IBodyPart_put_ContentClassName(This,varContentClassName) \ + ( (This)->lpVtbl -> put_ContentClassName(This,varContentClassName) ) + +#define IBodyPart_get_Parent(This,varParent) \ + ( (This)->lpVtbl -> get_Parent(This,varParent) ) + +#define IBodyPart_AddBodyPart(This,Index,ppPart) \ + ( (This)->lpVtbl -> AddBodyPart(This,Index,ppPart) ) + +#define IBodyPart_SaveToFile(This,FileName) \ + ( (This)->lpVtbl -> SaveToFile(This,FileName) ) + +#define IBodyPart_GetEncodedContentStream(This,ppStream) \ + ( (This)->lpVtbl -> GetEncodedContentStream(This,ppStream) ) + +#define IBodyPart_GetDecodedContentStream(This,ppStream) \ + ( (This)->lpVtbl -> GetDecodedContentStream(This,ppStream) ) + +#define IBodyPart_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IBodyPart_GetFieldParameter(This,FieldName,Parameter,pbstrValue) \ + ( (This)->lpVtbl -> GetFieldParameter(This,FieldName,Parameter,pbstrValue) ) + +#define IBodyPart_GetInterface(This,Interface,ppUnknown) \ + ( (This)->lpVtbl -> GetInterface(This,Interface,ppUnknown) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBodyPart_INTERFACE_DEFINED__ */ + + +#ifndef __IConfiguration_INTERFACE_DEFINED__ +#define __IConfiguration_INTERFACE_DEFINED__ + +/* interface IConfiguration */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000022-8B95-11D1-82DB-00C04FB1625D") + IConfiguration : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Fields( + /* [retval][out] */ __RPC__deref_out_opt Fields **varFields) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Load( + /* [in] */ CdoConfigSource LoadFrom, + /* [optional][in] */ __RPC__in BSTR URL) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetInterface( + /* [in] */ __RPC__in BSTR Interface, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnknown) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IConfiguration * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IConfiguration * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IConfiguration * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IConfiguration * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IConfiguration * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IConfiguration * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IConfiguration, get_Fields) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in IConfiguration * This, + /* [retval][out] */ __RPC__deref_out_opt Fields **varFields); + + DECLSPEC_XFGVIRT(IConfiguration, Load) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Load )( + __RPC__in IConfiguration * This, + /* [in] */ CdoConfigSource LoadFrom, + /* [optional][in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IConfiguration, GetInterface) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetInterface )( + __RPC__in IConfiguration * This, + /* [in] */ __RPC__in BSTR Interface, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnknown); + + END_INTERFACE + } IConfigurationVtbl; + + interface IConfiguration + { + CONST_VTBL struct IConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IConfiguration_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IConfiguration_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IConfiguration_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IConfiguration_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IConfiguration_get_Fields(This,varFields) \ + ( (This)->lpVtbl -> get_Fields(This,varFields) ) + +#define IConfiguration_Load(This,LoadFrom,URL) \ + ( (This)->lpVtbl -> Load(This,LoadFrom,URL) ) + +#define IConfiguration_GetInterface(This,Interface,ppUnknown) \ + ( (This)->lpVtbl -> GetInterface(This,Interface,ppUnknown) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IConfiguration_INTERFACE_DEFINED__ */ + + +#ifndef __IMessages_INTERFACE_DEFINED__ +#define __IMessages_INTERFACE_DEFINED__ + +/* interface IMessages */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IMessages; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000025-8B95-11D1-82DB-00C04FB1625D") + IMessages : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + long Index, + /* [retval][out] */ __RPC__deref_out_opt IMessage **ppMessage) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *varCount) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ long Index) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteAll( void) = 0; + + virtual /* [id][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **retval) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Filename( + VARIANT var, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Filename) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMessagesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMessages * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMessages * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMessages * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMessages * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMessages * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMessages * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMessages * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMessages, get_Item) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IMessages * This, + long Index, + /* [retval][out] */ __RPC__deref_out_opt IMessage **ppMessage); + + DECLSPEC_XFGVIRT(IMessages, get_Count) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IMessages * This, + /* [retval][out] */ __RPC__out long *varCount); + + DECLSPEC_XFGVIRT(IMessages, Delete) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IMessages * This, + /* [in] */ long Index); + + DECLSPEC_XFGVIRT(IMessages, DeleteAll) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteAll )( + __RPC__in IMessages * This); + + DECLSPEC_XFGVIRT(IMessages, get__NewEnum) + /* [id][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IMessages * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **retval); + + DECLSPEC_XFGVIRT(IMessages, get_Filename) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Filename )( + __RPC__in IMessages * This, + VARIANT var, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Filename); + + END_INTERFACE + } IMessagesVtbl; + + interface IMessages + { + CONST_VTBL struct IMessagesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMessages_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMessages_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMessages_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMessages_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMessages_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMessages_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMessages_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMessages_get_Item(This,Index,ppMessage) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppMessage) ) + +#define IMessages_get_Count(This,varCount) \ + ( (This)->lpVtbl -> get_Count(This,varCount) ) + +#define IMessages_Delete(This,Index) \ + ( (This)->lpVtbl -> Delete(This,Index) ) + +#define IMessages_DeleteAll(This) \ + ( (This)->lpVtbl -> DeleteAll(This) ) + +#define IMessages_get__NewEnum(This,retval) \ + ( (This)->lpVtbl -> get__NewEnum(This,retval) ) + +#define IMessages_get_Filename(This,var,Filename) \ + ( (This)->lpVtbl -> get_Filename(This,var,Filename) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMessages_INTERFACE_DEFINED__ */ + + +#ifndef __IDropDirectory_INTERFACE_DEFINED__ +#define __IDropDirectory_INTERFACE_DEFINED__ + +/* interface IDropDirectory */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IDropDirectory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000024-8B95-11D1-82DB-00C04FB1625D") + IDropDirectory : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMessages( + /* [optional][in] */ __RPC__in BSTR DirName, + /* [retval][out] */ __RPC__deref_out_opt IMessages **Msgs) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDropDirectoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDropDirectory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDropDirectory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDropDirectory * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDropDirectory * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDropDirectory * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDropDirectory * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDropDirectory * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDropDirectory, GetMessages) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMessages )( + __RPC__in IDropDirectory * This, + /* [optional][in] */ __RPC__in BSTR DirName, + /* [retval][out] */ __RPC__deref_out_opt IMessages **Msgs); + + END_INTERFACE + } IDropDirectoryVtbl; + + interface IDropDirectory + { + CONST_VTBL struct IDropDirectoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDropDirectory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDropDirectory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDropDirectory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDropDirectory_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDropDirectory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDropDirectory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDropDirectory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDropDirectory_GetMessages(This,DirName,Msgs) \ + ( (This)->lpVtbl -> GetMessages(This,DirName,Msgs) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDropDirectory_INTERFACE_DEFINED__ */ + + +#ifndef __IBodyParts_INTERFACE_DEFINED__ +#define __IBodyParts_INTERFACE_DEFINED__ + +/* interface IBodyParts */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IBodyParts; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000023-8B95-11D1-82DB-00C04FB1625D") + IBodyParts : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *varCount) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long Index, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **ppBody) = 0; + + virtual /* [id][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **retval) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT varBP) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteAll( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [defaultvalue][in] */ long Index, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **ppPart) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBodyPartsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBodyParts * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBodyParts * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBodyParts * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBodyParts * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBodyParts * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBodyParts * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBodyParts * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBodyParts, get_Count) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IBodyParts * This, + /* [retval][out] */ __RPC__out long *varCount); + + DECLSPEC_XFGVIRT(IBodyParts, get_Item) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IBodyParts * This, + /* [in] */ long Index, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **ppBody); + + DECLSPEC_XFGVIRT(IBodyParts, get__NewEnum) + /* [id][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IBodyParts * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **retval); + + DECLSPEC_XFGVIRT(IBodyParts, Delete) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IBodyParts * This, + /* [in] */ VARIANT varBP); + + DECLSPEC_XFGVIRT(IBodyParts, DeleteAll) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteAll )( + __RPC__in IBodyParts * This); + + DECLSPEC_XFGVIRT(IBodyParts, Add) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IBodyParts * This, + /* [defaultvalue][in] */ long Index, + /* [retval][out] */ __RPC__deref_out_opt IBodyPart **ppPart); + + END_INTERFACE + } IBodyPartsVtbl; + + interface IBodyParts + { + CONST_VTBL struct IBodyPartsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBodyParts_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBodyParts_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBodyParts_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBodyParts_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBodyParts_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBodyParts_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBodyParts_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBodyParts_get_Count(This,varCount) \ + ( (This)->lpVtbl -> get_Count(This,varCount) ) + +#define IBodyParts_get_Item(This,Index,ppBody) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppBody) ) + +#define IBodyParts_get__NewEnum(This,retval) \ + ( (This)->lpVtbl -> get__NewEnum(This,retval) ) + +#define IBodyParts_Delete(This,varBP) \ + ( (This)->lpVtbl -> Delete(This,varBP) ) + +#define IBodyParts_DeleteAll(This) \ + ( (This)->lpVtbl -> DeleteAll(This) ) + +#define IBodyParts_Add(This,Index,ppPart) \ + ( (This)->lpVtbl -> Add(This,Index,ppPart) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBodyParts_INTERFACE_DEFINED__ */ + + +#ifndef __ISMTPScriptConnector_INTERFACE_DEFINED__ +#define __ISMTPScriptConnector_INTERFACE_DEFINED__ + +/* interface ISMTPScriptConnector */ +/* [hidden][unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_ISMTPScriptConnector; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000030-8B95-11D1-82DB-00C04FB1625D") + ISMTPScriptConnector : public IDispatch + { + public: + }; + + +#else /* C style interface */ + + typedef struct ISMTPScriptConnectorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISMTPScriptConnector * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISMTPScriptConnector * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISMTPScriptConnector * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISMTPScriptConnector * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISMTPScriptConnector * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISMTPScriptConnector * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISMTPScriptConnector * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } ISMTPScriptConnectorVtbl; + + interface ISMTPScriptConnector + { + CONST_VTBL struct ISMTPScriptConnectorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISMTPScriptConnector_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISMTPScriptConnector_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISMTPScriptConnector_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISMTPScriptConnector_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISMTPScriptConnector_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISMTPScriptConnector_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISMTPScriptConnector_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISMTPScriptConnector_INTERFACE_DEFINED__ */ + + +#ifndef __INNTPEarlyScriptConnector_INTERFACE_DEFINED__ +#define __INNTPEarlyScriptConnector_INTERFACE_DEFINED__ + +/* interface INNTPEarlyScriptConnector */ +/* [hidden][unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_INNTPEarlyScriptConnector; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000034-8B95-11D1-82DB-00C04FB1625D") + INNTPEarlyScriptConnector : public IDispatch + { + public: + }; + + +#else /* C style interface */ + + typedef struct INNTPEarlyScriptConnectorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in INNTPEarlyScriptConnector * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in INNTPEarlyScriptConnector * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in INNTPEarlyScriptConnector * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in INNTPEarlyScriptConnector * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in INNTPEarlyScriptConnector * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in INNTPEarlyScriptConnector * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + INNTPEarlyScriptConnector * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } INNTPEarlyScriptConnectorVtbl; + + interface INNTPEarlyScriptConnector + { + CONST_VTBL struct INNTPEarlyScriptConnectorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define INNTPEarlyScriptConnector_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define INNTPEarlyScriptConnector_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define INNTPEarlyScriptConnector_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define INNTPEarlyScriptConnector_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define INNTPEarlyScriptConnector_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define INNTPEarlyScriptConnector_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define INNTPEarlyScriptConnector_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __INNTPEarlyScriptConnector_INTERFACE_DEFINED__ */ + + +#ifndef __INNTPPostScriptConnector_INTERFACE_DEFINED__ +#define __INNTPPostScriptConnector_INTERFACE_DEFINED__ + +/* interface INNTPPostScriptConnector */ +/* [hidden][unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_INNTPPostScriptConnector; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000031-8B95-11D1-82DB-00C04FB1625D") + INNTPPostScriptConnector : public IDispatch + { + public: + }; + + +#else /* C style interface */ + + typedef struct INNTPPostScriptConnectorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in INNTPPostScriptConnector * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in INNTPPostScriptConnector * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in INNTPPostScriptConnector * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in INNTPPostScriptConnector * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in INNTPPostScriptConnector * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in INNTPPostScriptConnector * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + INNTPPostScriptConnector * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } INNTPPostScriptConnectorVtbl; + + interface INNTPPostScriptConnector + { + CONST_VTBL struct INNTPPostScriptConnectorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define INNTPPostScriptConnector_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define INNTPPostScriptConnector_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define INNTPPostScriptConnector_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define INNTPPostScriptConnector_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define INNTPPostScriptConnector_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define INNTPPostScriptConnector_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define INNTPPostScriptConnector_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __INNTPPostScriptConnector_INTERFACE_DEFINED__ */ + + +#ifndef __INNTPFinalScriptConnector_INTERFACE_DEFINED__ +#define __INNTPFinalScriptConnector_INTERFACE_DEFINED__ + +/* interface INNTPFinalScriptConnector */ +/* [hidden][unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_INNTPFinalScriptConnector; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000032-8B95-11D1-82DB-00C04FB1625D") + INNTPFinalScriptConnector : public IDispatch + { + public: + }; + + +#else /* C style interface */ + + typedef struct INNTPFinalScriptConnectorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in INNTPFinalScriptConnector * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in INNTPFinalScriptConnector * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in INNTPFinalScriptConnector * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in INNTPFinalScriptConnector * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in INNTPFinalScriptConnector * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in INNTPFinalScriptConnector * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + INNTPFinalScriptConnector * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } INNTPFinalScriptConnectorVtbl; + + interface INNTPFinalScriptConnector + { + CONST_VTBL struct INNTPFinalScriptConnectorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define INNTPFinalScriptConnector_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define INNTPFinalScriptConnector_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define INNTPFinalScriptConnector_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define INNTPFinalScriptConnector_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define INNTPFinalScriptConnector_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define INNTPFinalScriptConnector_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define INNTPFinalScriptConnector_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __INNTPFinalScriptConnector_INTERFACE_DEFINED__ */ + + +#ifndef __ISMTPOnArrival_INTERFACE_DEFINED__ +#define __ISMTPOnArrival_INTERFACE_DEFINED__ + +/* interface ISMTPOnArrival */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_ISMTPOnArrival; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000026-8B95-11D1-82DB-00C04FB1625D") + ISMTPOnArrival : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE OnArrival( + /* [in] */ __RPC__in_opt IMessage *Msg, + /* [out][in] */ __RPC__inout CdoEventStatus *EventStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISMTPOnArrivalVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISMTPOnArrival * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISMTPOnArrival * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISMTPOnArrival * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISMTPOnArrival * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISMTPOnArrival * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISMTPOnArrival * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISMTPOnArrival * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISMTPOnArrival, OnArrival) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnArrival )( + __RPC__in ISMTPOnArrival * This, + /* [in] */ __RPC__in_opt IMessage *Msg, + /* [out][in] */ __RPC__inout CdoEventStatus *EventStatus); + + END_INTERFACE + } ISMTPOnArrivalVtbl; + + interface ISMTPOnArrival + { + CONST_VTBL struct ISMTPOnArrivalVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISMTPOnArrival_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISMTPOnArrival_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISMTPOnArrival_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISMTPOnArrival_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISMTPOnArrival_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISMTPOnArrival_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISMTPOnArrival_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISMTPOnArrival_OnArrival(This,Msg,EventStatus) \ + ( (This)->lpVtbl -> OnArrival(This,Msg,EventStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISMTPOnArrival_INTERFACE_DEFINED__ */ + + +#ifndef __INNTPOnPostEarly_INTERFACE_DEFINED__ +#define __INNTPOnPostEarly_INTERFACE_DEFINED__ + +/* interface INNTPOnPostEarly */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_INNTPOnPostEarly; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000033-8B95-11D1-82DB-00C04FB1625D") + INNTPOnPostEarly : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE OnPostEarly( + /* [in] */ __RPC__in_opt IMessage *Msg, + /* [out][in] */ __RPC__inout CdoEventStatus *EventStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct INNTPOnPostEarlyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in INNTPOnPostEarly * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in INNTPOnPostEarly * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in INNTPOnPostEarly * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in INNTPOnPostEarly * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in INNTPOnPostEarly * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in INNTPOnPostEarly * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + INNTPOnPostEarly * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(INNTPOnPostEarly, OnPostEarly) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnPostEarly )( + __RPC__in INNTPOnPostEarly * This, + /* [in] */ __RPC__in_opt IMessage *Msg, + /* [out][in] */ __RPC__inout CdoEventStatus *EventStatus); + + END_INTERFACE + } INNTPOnPostEarlyVtbl; + + interface INNTPOnPostEarly + { + CONST_VTBL struct INNTPOnPostEarlyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define INNTPOnPostEarly_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define INNTPOnPostEarly_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define INNTPOnPostEarly_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define INNTPOnPostEarly_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define INNTPOnPostEarly_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define INNTPOnPostEarly_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define INNTPOnPostEarly_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define INNTPOnPostEarly_OnPostEarly(This,Msg,EventStatus) \ + ( (This)->lpVtbl -> OnPostEarly(This,Msg,EventStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __INNTPOnPostEarly_INTERFACE_DEFINED__ */ + + +#ifndef __INNTPOnPost_INTERFACE_DEFINED__ +#define __INNTPOnPost_INTERFACE_DEFINED__ + +/* interface INNTPOnPost */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_INNTPOnPost; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000027-8B95-11D1-82DB-00C04FB1625D") + INNTPOnPost : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE OnPost( + /* [in] */ __RPC__in_opt IMessage *Msg, + /* [out][in] */ __RPC__inout CdoEventStatus *EventStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct INNTPOnPostVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in INNTPOnPost * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in INNTPOnPost * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in INNTPOnPost * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in INNTPOnPost * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in INNTPOnPost * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in INNTPOnPost * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + INNTPOnPost * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(INNTPOnPost, OnPost) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnPost )( + __RPC__in INNTPOnPost * This, + /* [in] */ __RPC__in_opt IMessage *Msg, + /* [out][in] */ __RPC__inout CdoEventStatus *EventStatus); + + END_INTERFACE + } INNTPOnPostVtbl; + + interface INNTPOnPost + { + CONST_VTBL struct INNTPOnPostVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define INNTPOnPost_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define INNTPOnPost_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define INNTPOnPost_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define INNTPOnPost_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define INNTPOnPost_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define INNTPOnPost_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define INNTPOnPost_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define INNTPOnPost_OnPost(This,Msg,EventStatus) \ + ( (This)->lpVtbl -> OnPost(This,Msg,EventStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __INNTPOnPost_INTERFACE_DEFINED__ */ + + +#ifndef __INNTPOnPostFinal_INTERFACE_DEFINED__ +#define __INNTPOnPostFinal_INTERFACE_DEFINED__ + +/* interface INNTPOnPostFinal */ +/* [unique][helpcontext][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_INNTPOnPostFinal; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000028-8B95-11D1-82DB-00C04FB1625D") + INNTPOnPostFinal : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE OnPostFinal( + /* [in] */ __RPC__in_opt IMessage *Msg, + /* [out][in] */ __RPC__inout CdoEventStatus *EventStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct INNTPOnPostFinalVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in INNTPOnPostFinal * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in INNTPOnPostFinal * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in INNTPOnPostFinal * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in INNTPOnPostFinal * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in INNTPOnPostFinal * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in INNTPOnPostFinal * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + INNTPOnPostFinal * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(INNTPOnPostFinal, OnPostFinal) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnPostFinal )( + __RPC__in INNTPOnPostFinal * This, + /* [in] */ __RPC__in_opt IMessage *Msg, + /* [out][in] */ __RPC__inout CdoEventStatus *EventStatus); + + END_INTERFACE + } INNTPOnPostFinalVtbl; + + interface INNTPOnPostFinal + { + CONST_VTBL struct INNTPOnPostFinalVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define INNTPOnPostFinal_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define INNTPOnPostFinal_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define INNTPOnPostFinal_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define INNTPOnPostFinal_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define INNTPOnPostFinal_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define INNTPOnPostFinal_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define INNTPOnPostFinal_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define INNTPOnPostFinal_OnPostFinal(This,Msg,EventStatus) \ + ( (This)->lpVtbl -> OnPostFinal(This,Msg,EventStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __INNTPOnPostFinal_INTERFACE_DEFINED__ */ + + +#ifndef __IProxyObject_INTERFACE_DEFINED__ +#define __IProxyObject_INTERFACE_DEFINED__ + +/* interface IProxyObject */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IProxyObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD000083-8B95-11D1-82DB-00C04FB1625D") + IProxyObject : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Object( + /* [out] */ __RPC__deref_out_opt IUnknown **ppParent) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProxyObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProxyObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProxyObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProxyObject * This); + + DECLSPEC_XFGVIRT(IProxyObject, get_Object) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Object )( + __RPC__in IProxyObject * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppParent); + + END_INTERFACE + } IProxyObjectVtbl; + + interface IProxyObject + { + CONST_VTBL struct IProxyObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProxyObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProxyObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProxyObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProxyObject_get_Object(This,ppParent) \ + ( (This)->lpVtbl -> get_Object(This,ppParent) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProxyObject_INTERFACE_DEFINED__ */ + + +#ifndef __IGetInterface_INTERFACE_DEFINED__ +#define __IGetInterface_INTERFACE_DEFINED__ + +/* interface IGetInterface */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IGetInterface; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD0ff000-8B95-11D1-82DB-00C04FB1625D") + IGetInterface : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetInterface( + /* [in] */ __RPC__in BSTR Interface, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnknown) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInterfaceInner( + /* [in] */ __RPC__in BSTR Interface, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnknown) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetInterfaceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetInterface * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetInterface * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetInterface * This); + + DECLSPEC_XFGVIRT(IGetInterface, GetInterface) + HRESULT ( STDMETHODCALLTYPE *GetInterface )( + __RPC__in IGetInterface * This, + /* [in] */ __RPC__in BSTR Interface, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnknown); + + DECLSPEC_XFGVIRT(IGetInterface, GetInterfaceInner) + HRESULT ( STDMETHODCALLTYPE *GetInterfaceInner )( + __RPC__in IGetInterface * This, + /* [in] */ __RPC__in BSTR Interface, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnknown); + + END_INTERFACE + } IGetInterfaceVtbl; + + interface IGetInterface + { + CONST_VTBL struct IGetInterfaceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetInterface_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetInterface_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetInterface_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetInterface_GetInterface(This,Interface,ppUnknown) \ + ( (This)->lpVtbl -> GetInterface(This,Interface,ppUnknown) ) + +#define IGetInterface_GetInterfaceInner(This,Interface,ppUnknown) \ + ( (This)->lpVtbl -> GetInterfaceInner(This,Interface,ppUnknown) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetInterface_INTERFACE_DEFINED__ */ + + + +#ifndef __CDO_LIBRARY_DEFINED__ +#define __CDO_LIBRARY_DEFINED__ + +/* library CDO */ +/* [helpstring][helpfile][version][uuid] */ + + + + + + + + + + + + + + + + + + +EXTERN_C const IID LIBID_CDO; + + + + +/* module CdoCalendar */ +/* [dllname] */ + + + + + + +/* module CdoCharset */ +/* [dllname] */ + + + + + + + + + + + + + + + + + + + + + + + + + + +/* module CdoConfiguration */ +/* [dllname] */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/* module CdoContentTypeValues */ +/* [dllname] */ + + + + + + + + + + + + + + + + +/* module CdoDAV */ +/* [dllname] */ + + + + + + + +/* module CdoEncodingType */ +/* [dllname] */ + + + + + + + + + + + + +/* module CdoExchange */ +/* [dllname] */ + + + + + + +/* module CdoHTTPMail */ +/* [dllname] */ + + + + + + + + + + + + + + + + + + + + + + + + +/* module CdoInterfaces */ +/* [dllname] */ + + + + + + + + + + + +/* module CdoMailHeader */ +/* [dllname] */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/* module CdoNamespace */ +/* [dllname] */ + + + + + + + + + + + +/* module CdoNNTPEnvelope */ +/* [dllname] */ + + + + + + + +/* module CdoOffice */ +/* [dllname] */ + + + + + + +/* module CdoSMTPEnvelope */ +/* [dllname] */ + + + + + + + + + +#ifndef __CdoErrors_MODULE_DEFINED__ +#define __CdoErrors_MODULE_DEFINED__ + + +/* module CdoErrors */ +/* [dllname] */ + +const LONG CDO_E_UNCAUGHT_EXCEPTION = 0x80040201L; + +const LONG CDO_E_NOT_OPENED = 0x80040202L; + +const LONG CDO_E_UNSUPPORTED_DATASOURCE = 0x80040203L; + +const LONG CDO_E_INVALID_PROPERTYNAME = 0x80040204L; + +const LONG CDO_E_PROP_UNSUPPORTED = 0x80040205L; + +const LONG CDO_E_INACTIVE = 0x80040206L; + +const LONG CDO_E_NO_SUPPORT_FOR_OBJECTS = 0x80040207L; + +const LONG CDO_E_NOT_AVAILABLE = 0x80040208L; + +const LONG CDO_E_NO_DEFAULT_DROP_DIR = 0x80040209L; + +const LONG CDO_E_SMTP_SERVER_REQUIRED = 0x8004020aL; + +const LONG CDO_E_NNTP_SERVER_REQUIRED = 0x8004020bL; + +const LONG CDO_E_RECIPIENT_MISSING = 0x8004020cL; + +const LONG CDO_E_FROM_MISSING = 0x8004020dL; + +const LONG CDO_E_SENDER_REJECTED = 0x8004020eL; + +const LONG CDO_E_RECIPIENTS_REJECTED = 0x8004020fL; + +const LONG CDO_E_NNTP_POST_FAILED = 0x80040210L; + +const LONG CDO_E_SMTP_SEND_FAILED = 0x80040211L; + +const LONG CDO_E_CONNECTION_DROPPED = 0x80040212L; + +const LONG CDO_E_FAILED_TO_CONNECT = 0x80040213L; + +const LONG CDO_E_INVALID_POST = 0x80040214L; + +const LONG CDO_E_AUTHENTICATION_FAILURE = 0x80040215L; + +const LONG CDO_E_INVALID_CONTENT_TYPE = 0x80040216L; + +const LONG CDO_E_LOGON_FAILURE = 0x80040217L; + +const LONG CDO_E_HTTP_NOT_FOUND = 0x80040218L; + +const LONG CDO_E_HTTP_FORBIDDEN = 0x80040219L; + +const LONG CDO_E_HTTP_FAILED = 0x8004021aL; + +const LONG CDO_E_MULTIPART_NO_DATA = 0x8004021bL; + +const LONG CDO_E_INVALID_ENCODING_FOR_MULTIPART = 0x8004021cL; + +const LONG CDO_E_UNSAFE_OPERATION = 0x8004021dL; + +const LONG CDO_E_PROP_NOT_FOUND = 0x8004021eL; + +const LONG CDO_E_INVALID_SEND_OPTION = 0x80040220L; + +const LONG CDO_E_INVALID_POST_OPTION = 0x80040221L; + +const LONG CDO_E_NO_PICKUP_DIR = 0x80040222L; + +const LONG CDO_E_NOT_ALL_DELETED = 0x80040223L; + +const LONG CDO_E_NO_METHOD = 0x80040224L; + +const LONG CDO_E_PROP_READONLY = 0x80040227L; + +const LONG CDO_E_PROP_CANNOT_DELETE = 0x80040228L; + +const LONG CDO_E_BAD_DATA = 0x80040229L; + +const LONG CDO_E_PROP_NONHEADER = 0x8004022aL; + +const LONG CDO_E_INVALID_CHARSET = 0x8004022bL; + +const LONG CDO_E_ADOSTREAM_NOT_BOUND = 0x8004022cL; + +const LONG CDO_E_CONTENTPROPXML_NOT_FOUND = 0x8004022dL; + +const LONG CDO_E_CONTENTPROPXML_WRONG_CHARSET = 0x8004022eL; + +const LONG CDO_E_CONTENTPROPXML_PARSE_FAILED = 0x8004022fL; + +const LONG CDO_E_CONTENTPROPXML_CONVERT_FAILED = 0x80040230L; + +const LONG CDO_E_NO_DIRECTORIES_SPECIFIED = 0x80040231L; + +const LONG CDO_E_DIRECTORIES_UNREACHABLE = 0x80040232L; + +const LONG CDO_E_BAD_SENDER = 0x80040233L; + +const LONG CDO_E_SELF_BINDING = 0x80040234L; + +const LONG CDO_E_BAD_ATTENDEE_DATA = 0x80040235L; + +const LONG CDO_E_ROLE_NOMORE_AVAILABLE = 0x80040236L; + +const LONG CDO_E_BAD_TASKTYPE_ONASSIGN = 0x80040237L; + +const LONG CDO_E_NOT_ASSIGNEDTO_USER = 0x80040238L; + +const LONG CDO_E_OUTOFDATE = 0x80040239L; + +const LONG CDO_E_ARGUMENT1 = 0x80044000L; + +const LONG CDO_E_ARGUMENT2 = 0x80044001L; + +const LONG CDO_E_ARGUMENT3 = 0x80044002L; + +const LONG CDO_E_ARGUMENT4 = 0x80044003L; + +const LONG CDO_E_ARGUMENT5 = 0x80044004L; + +const LONG CDO_E_NOT_FOUND = 0x800cce05L; + +const LONG CDO_E_INVALID_ENCODING_TYPE = 0x800cce1dL; + +#endif /* __CdoErrors_MODULE_DEFINED__ */ + +EXTERN_C const CLSID CLSID_Message; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CD000001-8B95-11D1-82DB-00C04FB1625D") +Message; +#endif + +EXTERN_C const CLSID CLSID_Configuration; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CD000002-8B95-11D1-82DB-00C04FB1625D") +Configuration; +#endif + +EXTERN_C const CLSID CLSID_DropDirectory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CD000004-8B95-11D1-82DB-00C04FB1625D") +DropDirectory; +#endif + +EXTERN_C const CLSID CLSID_SMTPConnector; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CD000008-8B95-11D1-82DB-00C04FB1625D") +SMTPConnector; +#endif + +EXTERN_C const CLSID CLSID_NNTPEarlyConnector; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CD000011-8B95-11D1-82DB-00C04FB1625D") +NNTPEarlyConnector; +#endif + +EXTERN_C const CLSID CLSID_NNTPPostConnector; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CD000009-8B95-11D1-82DB-00C04FB1625D") +NNTPPostConnector; +#endif + +EXTERN_C const CLSID CLSID_NNTPFinalConnector; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CD000010-8B95-11D1-82DB-00C04FB1625D") +NNTPFinalConnector; +#endif +#endif /* __CDO_LIBRARY_DEFINED__ */ +#if defined __cplusplus && !defined CDO_NO_NAMESPACE +} // namespace CDO +#endif + +/* interface __MIDL_itf_cdo_0000_0018 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_cdo_0000_0018_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cdo_0000_0018_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSysErr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSysErr.h new file mode 100644 index 0000000000000000000000000000000000000000..fccc345baa697b79762f8253ecec3471765988ad --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSysErr.h @@ -0,0 +1,2449 @@ +// +// CDO message file +// +// IMPORTANT: +// if you add a new string do it at the end of the existing strings for the given section (cdosys, cdosvr or cdoex) +// see x5:191917 for more details +// +// Message categories +// +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---+-+-+-----------------------+-------------------------------+ +// |Sev|C|R| Facility | Code | +// +---+-+-+-----------------------+-------------------------------+ +// +// where +// +// Sev - is the severity code +// +// 00 - Success +// 01 - Informational +// 10 - Warning +// 11 - Error +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// + + +// +// Define the severity codes +// + + +// +// MessageId: categoryHeader +// +// MessageText: +// +// Header +// +#define categoryHeader 0x00000001L + +// +// MessageId: categoryUnused +// +// MessageText: +// +// None +// +#define categoryUnused 0x00000002L + +// +// MessageId: categoryGeneral +// +// MessageText: +// +// General +// +#define categoryGeneral 0x00000003L + +////////////////////////////////////////////////////////////////////////////// +// Error code ranges in FACILITY_ITF. +// Different libraries sharing the CDO name +// should not conflict in their error codes. Note that below 0x200 is +// reserved by COM. +// 0x200 through 0x5ff - CDOEX and CDOSYS error codes +// 0x600 through 0x6ff - workflow error codes +// 0x1000 through 0x1100 +// 0x4000 through 0x4100 +// +////////////////////////////////////////////////////////////////////////////// +// MessageId Ranges used by the localizer +// +// 1: 0x200 through 0x7ff, 0x4000 through 0x4fff: Library error messages, not localized. +// 2: 0x2000 through 0x2fff: Server error messages, localized in server languages. +// 3: 0x1000 through 0x1fff: Client text, localized in client languages. +// +////////////////////////////////////////////////////////////////////////////// +// Error strings for IErrorInfo +// +// MessageId = 0x200 through 0x7ff or 0x4000 through 0x4fff. Not localized. +// +// 0x200 available - was CDO_E_FAIL +// +// MessageId: CDO_E_UNCAUGHT_EXCEPTION +// +// MessageText: +// +// Exception %1 was generated at address %2 +// +#define CDO_E_UNCAUGHT_EXCEPTION 0x80040201L + +// 0x202 was CDO_E_NOT_BOUND, was renamed +// +// MessageId: CDO_E_NOT_OPENED +// +// MessageText: +// +// No data source has been opened for the object. +// +#define CDO_E_NOT_OPENED 0x80040202L + +// +// MessageId: CDO_E_UNSUPPORTED_DATASOURCE +// +// MessageText: +// +// The object does not support this type of data source. +// +#define CDO_E_UNSUPPORTED_DATASOURCE 0x80040203L + +// +// MessageId: CDO_E_INVALID_PROPERTYNAME +// +// MessageText: +// +// The object does not support the requested property name or namespace. +// +#define CDO_E_INVALID_PROPERTYNAME 0x80040204L + +// +// MessageId: CDO_E_PROP_UNSUPPORTED +// +// MessageText: +// +// The object does not support the requested property. +// +#define CDO_E_PROP_UNSUPPORTED 0x80040205L + +// 0x206 - was CDO_E_NOT_INITIALIZED +// +// MessageId: CDO_E_INACTIVE +// +// MessageText: +// +// The object is not active. It may have been deleted or it may not have been opened. +// +#define CDO_E_INACTIVE 0x80040206L + +// +// MessageId: CDO_E_NO_SUPPORT_FOR_OBJECTS +// +// MessageText: +// +// The object does not support storing persistent state information for objects. +// +#define CDO_E_NO_SUPPORT_FOR_OBJECTS 0x80040207L + +// +// MessageId: CDO_E_NOT_AVAILABLE +// +// MessageText: +// +// The requested property or feature, while supported, is not available at this time or in this context. +// +#define CDO_E_NOT_AVAILABLE 0x80040208L + +// +// MessageId: CDO_E_NO_DEFAULT_DROP_DIR +// +// MessageText: +// +// No default drop directory has been configured for this server. +// +#define CDO_E_NO_DEFAULT_DROP_DIR 0x80040209L + +// +// MessageId: CDO_E_SMTP_SERVER_REQUIRED +// +// MessageText: +// +// The SMTP server name is required, and was not found in the configuration source. +// +#define CDO_E_SMTP_SERVER_REQUIRED 0x8004020AL + +// +// MessageId: CDO_E_NNTP_SERVER_REQUIRED +// +// MessageText: +// +// The NNTP server name is required, and was not found in the configuration source. +// +#define CDO_E_NNTP_SERVER_REQUIRED 0x8004020BL + +// +// MessageId: CDO_E_RECIPIENT_MISSING +// +// MessageText: +// +// At least one recipient is required, but none were found. +// +#define CDO_E_RECIPIENT_MISSING 0x8004020CL + +// +// MessageId: CDO_E_FROM_MISSING +// +// MessageText: +// +// At least one of the From or Sender fields is required, and neither was found. +// +#define CDO_E_FROM_MISSING 0x8004020DL + +// +// MessageId: CDO_E_SENDER_REJECTED +// +// MessageText: +// +// The server rejected the sender address. The server response was: %1 +// +#define CDO_E_SENDER_REJECTED 0x8004020EL + +// +// MessageId: CDO_E_RECIPIENTS_REJECTED +// +// MessageText: +// +// The server rejected one or more recipient addresses. The server response was: %1 +// +#define CDO_E_RECIPIENTS_REJECTED 0x8004020FL + +// +// MessageId: CDO_E_NNTP_POST_FAILED +// +// MessageText: +// +// The message could not be posted to the NNTP server. The transport error code was %2. The server response was %1 +// +#define CDO_E_NNTP_POST_FAILED 0x80040210L + +// +// MessageId: CDO_E_SMTP_SEND_FAILED +// +// MessageText: +// +// The message could not be sent to the SMTP server. The transport error code was %2. The server response was %1 +// +#define CDO_E_SMTP_SEND_FAILED 0x80040211L + +// +// MessageId: CDO_E_CONNECTION_DROPPED +// +// MessageText: +// +// The transport lost its connection to the server. +// +#define CDO_E_CONNECTION_DROPPED 0x80040212L + +// +// MessageId: CDO_E_FAILED_TO_CONNECT +// +// MessageText: +// +// The transport failed to connect to the server. +// +#define CDO_E_FAILED_TO_CONNECT 0x80040213L + +// +// MessageId: CDO_E_INVALID_POST +// +// MessageText: +// +// The Subject, From, and Newsgroup fields are all required, and one or more was not found. +// +#define CDO_E_INVALID_POST 0x80040214L + +//0x215 was CDO_E_DELETE_FAILED +// +// MessageId: CDO_E_AUTHENTICATION_FAILURE +// +// MessageText: +// +// The server rejected the logon attempt due to authentication failure. The server response was: %1 +// +#define CDO_E_AUTHENTICATION_FAILURE 0x80040215L + +// +// MessageId: CDO_E_INVALID_CONTENT_TYPE +// +// MessageText: +// +// The content type was not valid in this context. For example, the root of an MHTML message must be an HTML document. +// +#define CDO_E_INVALID_CONTENT_TYPE 0x80040216L + +// +// MessageId: CDO_E_LOGON_FAILURE +// +// MessageText: +// +// The transport was unable to log on to the server. +// +#define CDO_E_LOGON_FAILURE 0x80040217L + +// +// MessageId: CDO_E_HTTP_NOT_FOUND +// +// MessageText: +// +// The requested resource could not be found. The server response was: %1. +// +#define CDO_E_HTTP_NOT_FOUND 0x80040218L + +// +// MessageId: CDO_E_HTTP_FORBIDDEN +// +// MessageText: +// +// Access to the requested resource is denied. The server response was: %1. +// +#define CDO_E_HTTP_FORBIDDEN 0x80040219L + +// +// MessageId: CDO_E_HTTP_FAILED +// +// MessageText: +// +// The HTTP request failed. The server response was: %1. +// +#define CDO_E_HTTP_FAILED 0x8004021AL + +// +// MessageId: CDO_E_MULTIPART_NO_DATA +// +// MessageText: +// +// This is a multipart body part. It has no content other than the body parts contained within it. +// +#define CDO_E_MULTIPART_NO_DATA 0x8004021BL + +// renamed, was CDO_E_INVALID_ENCODING_FOR_COMPOSITE +// +// MessageId: CDO_E_INVALID_ENCODING_FOR_MULTIPART +// +// MessageText: +// +// Multipart body parts must be encoded as 7bit, 8bit, or binary. +// +#define CDO_E_INVALID_ENCODING_FOR_MULTIPART 0x8004021CL + +// 0x21d was CDO_E_PATHTOOLONG +// +// MessageId: CDO_E_UNSAFE_OPERATION +// +// MessageText: +// +// The requested operation is not allowed in secure mode. +// +#define CDO_E_UNSAFE_OPERATION 0x8004021DL + +// +// MessageId: CDO_E_PROP_NOT_FOUND +// +// MessageText: +// +// The requested property was not found. +// +#define CDO_E_PROP_NOT_FOUND 0x8004021EL + +// 0x21f available, was CDO_E_UNSUPPORTED_PROTOCOL +// +// MessageId: CDO_E_INVALID_SEND_OPTION +// +// MessageText: +// +// The "SendUsing" configuration value is invalid. +// +#define CDO_E_INVALID_SEND_OPTION 0x80040220L + +// +// MessageId: CDO_E_INVALID_POST_OPTION +// +// MessageText: +// +// The "PostUsing" configuration value is invalid. +// +#define CDO_E_INVALID_POST_OPTION 0x80040221L + +// +// MessageId: CDO_E_NO_PICKUP_DIR +// +// MessageText: +// +// The pickup directory path is required and was not specified. +// +#define CDO_E_NO_PICKUP_DIR 0x80040222L + +// +// MessageId: CDO_E_NOT_ALL_DELETED +// +// MessageText: +// +// One or more messages could not be deleted. +// +#define CDO_E_NOT_ALL_DELETED 0x80040223L + +// +// MessageId: CDO_E_NO_METHOD +// +// MessageText: +// +// The requested operation is not available on the underlying object. +// +#define CDO_E_NO_METHOD 0x80040224L + +//0x225 available, was CDO_E_BYTEARRAY_REQUIRED +// 0x226 available, was CDO_E_BSTR_REQUIRED +// +// MessageId: CDO_E_PROP_READONLY +// +// MessageText: +// +// The property is read-only. +// +#define CDO_E_PROP_READONLY 0x80040227L + +// +// MessageId: CDO_E_PROP_CANNOT_DELETE +// +// MessageText: +// +// The property cannot be deleted. +// +#define CDO_E_PROP_CANNOT_DELETE 0x80040228L + +// +// MessageId: CDO_E_BAD_DATA +// +// MessageText: +// +// Data written to the object are inconsistent or invalid. +// +#define CDO_E_BAD_DATA 0x80040229L + +// +// MessageId: CDO_E_PROP_NONHEADER +// +// MessageText: +// +// The requested property is not in the mail header namespace. +// +#define CDO_E_PROP_NONHEADER 0x8004022AL + +// +// MessageId: CDO_E_INVALID_CHARSET +// +// MessageText: +// +// The requested character set is not installed on the computer. +// +#define CDO_E_INVALID_CHARSET 0x8004022BL + +// +// MessageId: CDO_E_ADOSTREAM_NOT_BOUND +// +// MessageText: +// +// The ADO stream has not been opened. +// +#define CDO_E_ADOSTREAM_NOT_BOUND 0x8004022CL + +// +// MessageId: CDO_E_CONTENTPROPXML_NOT_FOUND +// +// MessageText: +// +// The content properties are missing. +// +#define CDO_E_CONTENTPROPXML_NOT_FOUND 0x8004022DL + +// +// MessageId: CDO_E_CONTENTPROPXML_WRONG_CHARSET +// +// MessageText: +// +// Content properties XML must be encoded using UTF-8. +// +#define CDO_E_CONTENTPROPXML_WRONG_CHARSET 0x8004022EL + +// +// MessageId: CDO_E_CONTENTPROPXML_PARSE_FAILED +// +// MessageText: +// +// Failed to parse content properties XML. +// +#define CDO_E_CONTENTPROPXML_PARSE_FAILED 0x8004022FL + +// +// MessageId: CDO_E_CONTENTPROPXML_CONVERT_FAILED +// +// MessageText: +// +// Failed to convert a property from XML to a requested type. +// +#define CDO_E_CONTENTPROPXML_CONVERT_FAILED 0x80040230L + +// +// MessageId: CDO_E_NO_DIRECTORIES_SPECIFIED +// +// MessageText: +// +// No directories were specified for resolution. +// +#define CDO_E_NO_DIRECTORIES_SPECIFIED 0x80040231L + +// +// MessageId: CDO_E_DIRECTORIES_UNREACHABLE +// +// MessageText: +// +// Failed to resolve against one or more of the specified directories. +// +#define CDO_E_DIRECTORIES_UNREACHABLE 0x80040232L + +// +// MessageId: CDO_E_BAD_SENDER +// +// MessageText: +// +// Could not find the Sender's mailbox. +// +#define CDO_E_BAD_SENDER 0x80040233L + +// +// MessageId: CDO_E_SELF_BINDING +// +// MessageText: +// +// Binding to self is not allowed. +// +#define CDO_E_SELF_BINDING 0x80040234L + +// +// MessageId: CDO_E_BAD_ATTENDEE_DATA +// +// MessageText: +// +// Data of the Attendees in the object are inconsistent or invalid. +// +#define CDO_E_BAD_ATTENDEE_DATA 0x80040235L + +// +// MessageId: CDO_E_ROLE_NOMORE_AVAILABLE +// +// MessageText: +// +// No more roles of the desired type are available - maxed out. +// +#define CDO_E_ROLE_NOMORE_AVAILABLE 0x80040236L + +#ifdef CDOTASKS +// +// MessageId: CDO_E_BAD_TASKTYPE_ONASSIGN +// +// MessageText: +// +// The task with its current task type does not permit a call on Assign. Please call CreateUnassignedCopy instead. +// +#define CDO_E_BAD_TASKTYPE_ONASSIGN 0x80040237L + +// +// MessageId: CDO_E_NOT_ASSIGNEDTO_USER +// +// MessageText: +// +// The task is not assigned to the current user. +// +#define CDO_E_NOT_ASSIGNEDTO_USER 0x80040238L + +#endif +// +// MessageId: CDO_E_OUTOFDATE +// +// MessageText: +// +// The item being accessed or manipulated is out of date. +// +#define CDO_E_OUTOFDATE 0x80040239L + + +////////////////////////////////////////////////////////////////////////////// +// parameter validation error messages +// +// MessageId: CDO_E_ARGUMENT1 +// +// MessageText: +// +// The first argument is invalid +// +#define CDO_E_ARGUMENT1 0x80044000L + +// +// MessageId: CDO_E_ARGUMENT2 +// +// MessageText: +// +// The second argument is invalid +// +#define CDO_E_ARGUMENT2 0x80044001L + +// +// MessageId: CDO_E_ARGUMENT3 +// +// MessageText: +// +// The third argument is invalid +// +#define CDO_E_ARGUMENT3 0x80044002L + +// +// MessageId: CDO_E_ARGUMENT4 +// +// MessageText: +// +// The fourth argument is invalid +// +#define CDO_E_ARGUMENT4 0x80044003L + +// +// MessageId: CDO_E_ARGUMENT5 +// +// MessageText: +// +// The fifth argument is invalid +// +#define CDO_E_ARGUMENT5 0x80044004L + + +////////////////////////////////////////////////////////////////////////////// +// Errors returned by MimeOle +// +// These are defined here to provide extended error info text descriptions. +// CDO should never explicitly return any of these errors; they may be passed +// through from MimeOle +// I expect there are numerous places where these errors could still slip through: +// MIME_E_NOT_FOUND +// +// MessageId: CDO_E_NOT_FOUND +// +// MessageText: +// +// The requested body part was not found in this message. +// +#define CDO_E_NOT_FOUND 0x800CCE05L + +// MIME_E_INVALID_ENCODINGTYPE +// Returned when MimeOLE tries to BinHex encode. Can also be returned if an invalid encoding +// is specified, but CDO should protect from these cases. +// +// Also CDO returns this error when a client sets an invalid encoding +// +// MessageId: CDO_E_INVALID_ENCODING_TYPE +// +// MessageText: +// +// The content encoding type is invalid. +// +#define CDO_E_INVALID_ENCODING_TYPE 0x800CCE1DL + +/////////////////////////////////////// +// Headers and folder names +// +// MessageId = 0x1000 through 0x1fff, localized in client languages. +/////////////////////////////////////// +// +// MessageId: IDS_ORIGINAL_MESSAGE +// +// MessageText: +// +// -----Original Message-----%0 +// +#define IDS_ORIGINAL_MESSAGE 0x00011000L + +// +// MessageId: IDS_FROM +// +// MessageText: +// +// From:%0 +// +#define IDS_FROM 0x00011001L + +// +// MessageId: IDS_SENT +// +// MessageText: +// +// Sent:%0 +// +#define IDS_SENT 0x00011002L + +// +// MessageId: IDS_POSTED_AT +// +// MessageText: +// +// Posted At:%0 +// +#define IDS_POSTED_AT 0x00011003L + +// +// MessageId: IDS_TO +// +// MessageText: +// +// To:%0 +// +#define IDS_TO 0x00011004L + +// +// MessageId: IDS_CC +// +// MessageText: +// +// Cc:%0 +// +#define IDS_CC 0x00011005L + +// +// MessageId: IDS_POSTED_TO +// +// MessageText: +// +// Posted To:%0 +// +#define IDS_POSTED_TO 0x00011006L + +// +// MessageId: IDS_CONVERSATION +// +// MessageText: +// +// Conversation:%0 +// +#define IDS_CONVERSATION 0x00011007L + +// +// MessageId: IDS_SUBJECT +// +// MessageText: +// +// Subject:%0 +// +#define IDS_SUBJECT 0x00011008L + +// +// MessageId: IDS_IMPORTANCE +// +// MessageText: +// +// Importance:%0 +// +#define IDS_IMPORTANCE 0x00011009L + +// +// MessageId: IDS_ON_BEHALF_OF +// +// MessageText: +// +// on behalf of%0 +// +#define IDS_ON_BEHALF_OF 0x0001100AL + +// +// MessageId: IDS_FW +// +// MessageText: +// +// FW:%0 +// +#define IDS_FW 0x0001100BL + +// +// MessageId: IDS_RE +// +// MessageText: +// +// RE:%0 +// +#define IDS_RE 0x0001100CL + +// +// MessageId: IDS_CODEPAGE +// +// MessageText: +// +// 1252%0 +// +#define IDS_CODEPAGE 0x0001100DL + +#ifdef CDOSVR +// +// MessageId: IDS_CalendarFolder +// +// MessageText: +// +// Calendar%0 +// +#define IDS_CalendarFolder 0x0001100EL + +// +// MessageId: IDS_ContactsFolder +// +// MessageText: +// +// Contacts%0 +// +#define IDS_ContactsFolder 0x0001100FL + +// +// MessageId: IDS_DraftsFolder +// +// MessageText: +// +// Drafts%0 +// +#define IDS_DraftsFolder 0x00011010L + +// +// MessageId: IDS_JournalFolder +// +// MessageText: +// +// Journal%0 +// +#define IDS_JournalFolder 0x00011011L + +// +// MessageId: IDS_NotesFolder +// +// MessageText: +// +// Notes%0 +// +#define IDS_NotesFolder 0x00011012L + +// +// MessageId: IDS_TasksFolder +// +// MessageText: +// +// Tasks%0 +// +#define IDS_TasksFolder 0x00011013L + +#endif +// +// MessageId: IDS_NewFolder +// +// MessageText: +// +// New Folder%0 +// +#define IDS_NewFolder 0x00011014L + +// +// MessageId: IDS_Location +// +// MessageText: +// +// Location:%0 +// +#define IDS_Location 0x00011015L + +// +// MessageId: IDS_StartTime +// +// MessageText: +// +// Start Time:%0 +// +#define IDS_StartTime 0x00011016L + +// +// MessageId: IDS_EndTime +// +// MessageText: +// +// End Time:%0 +// +#define IDS_EndTime 0x00011017L + +// +// MessageId: IDS_TimeZone +// +// MessageText: +// +// Time Zone:%0 +// +#define IDS_TimeZone 0x00011018L + +// +// MessageId: IDS_LocalTime +// +// MessageText: +// +// Local time%0 +// +#define IDS_LocalTime 0x00011019L + +// +// MessageId: IDS_Organizer +// +// MessageText: +// +// Organizer:%0 +// +#define IDS_Organizer 0x0001101AL + +// +// MessageId: IDS_ApptType +// +// MessageText: +// +// Type:%0 +// +#define IDS_ApptType 0x0001101BL + +// +// MessageId: IDS_SingleAppt +// +// MessageText: +// +// Single Appointment%0 +// +#define IDS_SingleAppt 0x0001101CL + +// +// MessageId: IDS_SingleMtg +// +// MessageText: +// +// Single Meeting%0 +// +#define IDS_SingleMtg 0x0001101DL + +// +// MessageId: IDS_RecurAppt +// +// MessageText: +// +// Recurring Appointment%0 +// +#define IDS_RecurAppt 0x0001101EL + +// +// MessageId: IDS_RecurMtg +// +// MessageText: +// +// Recurring Meeting%0 +// +#define IDS_RecurMtg 0x0001101FL + +/////////////////////////////////////// +// time zones +// +// MessageId = 0x1100 through 0x11ff +/////////////////////////////////////// +// +// MessageId: IDS_Universal +// +// MessageText: +// +// Universal Coordinated Time%0 +// +#define IDS_Universal 0x00011100L + +// +// MessageId: IDS_Greenwich +// +// MessageText: +// +// (GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London%0 +// +#define IDS_Greenwich 0x00011101L + +// +// MessageId: IDS_Sarajevo +// +// MessageText: +// +// (GMT+01:00) Sarajevo, Skopje, Sofija, Vilnius, Warsaw, Zagreb%0 +// +#define IDS_Sarajevo 0x00011102L + +// +// MessageId: IDS_Paris +// +// MessageText: +// +// (GMT+01:00) Brussels, Copenhagen, Madrid, Paris%0 +// +#define IDS_Paris 0x00011103L + +// +// MessageId: IDS_Berlin +// +// MessageText: +// +// (GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna%0 +// +#define IDS_Berlin 0x00011104L + +// +// MessageId: IDS_EasternEurope +// +// MessageText: +// +// (GMT+02:00) Bucharest%0 +// +#define IDS_EasternEurope 0x00011105L + +// +// MessageId: IDS_Prague +// +// MessageText: +// +// (GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague%0 +// +#define IDS_Prague 0x00011106L + +// +// MessageId: IDS_Athens +// +// MessageText: +// +// (GMT+02:00) Athens, Istanbul, Minsk%0 +// +#define IDS_Athens 0x00011107L + +// +// MessageId: IDS_Brasilia +// +// MessageText: +// +// (GMT-03:00) Brasilia%0 +// +#define IDS_Brasilia 0x00011108L + +// +// MessageId: IDS_Atlantic +// +// MessageText: +// +// (GMT-04:00) Atlantic Time (Canada)%0 +// +#define IDS_Atlantic 0x00011109L + +// +// MessageId: IDS_Eastern +// +// MessageText: +// +// (GMT-05:00) Eastern Time (US & Canada)%0 +// +#define IDS_Eastern 0x0001110AL + +// +// MessageId: IDS_Central +// +// MessageText: +// +// (GMT-06:00) Central Time (US & Canada)%0 +// +#define IDS_Central 0x0001110BL + +// +// MessageId: IDS_Mountain +// +// MessageText: +// +// (GMT-07:00) Mountain Time (US & Canada)%0 +// +#define IDS_Mountain 0x0001110CL + +// +// MessageId: IDS_Pacific +// +// MessageText: +// +// (GMT-08:00) Pacific Time (US & Canada)%0 +// +#define IDS_Pacific 0x0001110DL + +// +// MessageId: IDS_Alaska +// +// MessageText: +// +// (GMT-09:00) Alaska%0 +// +#define IDS_Alaska 0x0001110EL + +// +// MessageId: IDS_Hawaii +// +// MessageText: +// +// (GMT-10:00) Hawaii%0 +// +#define IDS_Hawaii 0x0001110FL + +// +// MessageId: IDS_Midway +// +// MessageText: +// +// (GMT-11:00) Midway Island, Samoa%0 +// +#define IDS_Midway 0x00011110L + +// +// MessageId: IDS_Wellington +// +// MessageText: +// +// (GMT+12:00) Auckland, Wellington%0 +// +#define IDS_Wellington 0x00011111L + +// +// MessageId: IDS_Brisbane +// +// MessageText: +// +// (GMT+10:00) Brisbane%0 +// +#define IDS_Brisbane 0x00011112L + +// +// MessageId: IDS_Adelaide +// +// MessageText: +// +// (GMT+09:30) Adelaide%0 +// +#define IDS_Adelaide 0x00011113L + +// +// MessageId: IDS_Tokyo +// +// MessageText: +// +// (GMT+09:00) Osaka, Sapporo, Tokyo%0 +// +#define IDS_Tokyo 0x00011114L + +// +// MessageId: IDS_Singapore +// +// MessageText: +// +// (GMT+08:00) Kuala Lumpur, Singapore%0 +// +#define IDS_Singapore 0x00011115L + +// +// MessageId: IDS_Bangkok +// +// MessageText: +// +// (GMT+07:00) Bangkok, Hanoi, Jakarta%0 +// +#define IDS_Bangkok 0x00011116L + +// +// MessageId: IDS_Bombay +// +// MessageText: +// +// (GMT+05:30) Kolkata, Chennai, Mumbai, New Delhi%0 +// +#define IDS_Bombay 0x00011117L + +// +// MessageId: IDS_AbuDhabi +// +// MessageText: +// +// (GMT+04:00) Abu Dhabi, Muscat%0 +// +#define IDS_AbuDhabi 0x00011118L + +// +// MessageId: IDS_Tehran +// +// MessageText: +// +// (GMT+03:30) Tehran%0 +// +#define IDS_Tehran 0x00011119L + +// +// MessageId: IDS_Baghdad +// +// MessageText: +// +// (GMT+03:00) Baghdad%0 +// +#define IDS_Baghdad 0x0001111AL + +// +// MessageId: IDS_Israel +// +// MessageText: +// +// (GMT+02:00) Jerusalem%0 +// +#define IDS_Israel 0x0001111BL + +// +// MessageId: IDS_Newfoundland +// +// MessageText: +// +// (GMT-03:30) Newfoundland%0 +// +#define IDS_Newfoundland 0x0001111CL + +// +// MessageId: IDS_Azores +// +// MessageText: +// +// (GMT-01:00) Azores%0 +// +#define IDS_Azores 0x0001111DL + +// +// MessageId: IDS_MidAtlantic +// +// MessageText: +// +// (GMT-02:00) Mid-Atlantic%0 +// +#define IDS_MidAtlantic 0x0001111EL + +// +// MessageId: IDS_Monrovia +// +// MessageText: +// +// (GMT) Casablanca, Monrovia%0 +// +#define IDS_Monrovia 0x0001111FL + +// +// MessageId: IDS_BuenosAires +// +// MessageText: +// +// (GMT-03:00) Buenos Aires, Georgetown%0 +// +#define IDS_BuenosAires 0x00011120L + +// +// MessageId: IDS_Caracas +// +// MessageText: +// +// (GMT-04:00) Caracas, La Paz%0 +// +#define IDS_Caracas 0x00011121L + +// +// MessageId: IDS_Indiana +// +// MessageText: +// +// (GMT-05:00) Indiana (East)%0 +// +#define IDS_Indiana 0x00011122L + +// +// MessageId: IDS_Bogota +// +// MessageText: +// +// (GMT-05:00) Bogota, Lima, Quito%0 +// +#define IDS_Bogota 0x00011123L + +// +// MessageId: IDS_Saskatchewan +// +// MessageText: +// +// (GMT-06:00) Saskatchewan%0 +// +#define IDS_Saskatchewan 0x00011124L + +// +// MessageId: IDS_Mexico +// +// MessageText: +// +// (GMT-06:00) Mexico City%0 +// +#define IDS_Mexico 0x00011125L + +// +// MessageId: IDS_Arizona +// +// MessageText: +// +// (GMT-07:00) Arizona%0 +// +#define IDS_Arizona 0x00011126L + +// +// MessageId: IDS_Eniwetok +// +// MessageText: +// +// (GMT-12:00) Eniwetok, Kwajalein%0 +// +#define IDS_Eniwetok 0x00011127L + +// +// MessageId: IDS_Fiji +// +// MessageText: +// +// (GMT+12:00) Fiji Is., Kamchatka, Marshall Is.%0 +// +#define IDS_Fiji 0x00011128L + +// +// MessageId: IDS_Magadan +// +// MessageText: +// +// (GMT+11:00) Magadan, Solomon Is., New Caledonia%0 +// +#define IDS_Magadan 0x00011129L + +// +// MessageId: IDS_Hobart +// +// MessageText: +// +// (GMT+10:00) Hobart%0 +// +#define IDS_Hobart 0x0001112AL + +// +// MessageId: IDS_Guam +// +// MessageText: +// +// (GMT+10:00) Guam, Port Moresby%0 +// +#define IDS_Guam 0x0001112BL + +// +// MessageId: IDS_Darwin +// +// MessageText: +// +// (GMT+09:30) Darwin%0 +// +#define IDS_Darwin 0x0001112CL + +// +// MessageId: IDS_Beijing +// +// MessageText: +// +// (GMT+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi%0 +// +#define IDS_Beijing 0x0001112DL + +// +// MessageId: IDS_Almaty +// +// MessageText: +// +// (GMT+06:00) Almaty, Novosibirsk%0 +// +#define IDS_Almaty 0x0001112EL + +// +// MessageId: IDS_Islamabad +// +// MessageText: +// +// (GMT+05:00) Islamabad, Karachi, Tashkent%0 +// +#define IDS_Islamabad 0x0001112FL + +// +// MessageId: IDS_Kabul +// +// MessageText: +// +// (GMT+04:30) Kabul%0 +// +#define IDS_Kabul 0x00011130L + +// +// MessageId: IDS_Cairo +// +// MessageText: +// +// (GMT+02:00) Cairo%0 +// +#define IDS_Cairo 0x00011131L + +// +// MessageId: IDS_Harare +// +// MessageText: +// +// (GMT+02:00) Harare, Pretoria%0 +// +#define IDS_Harare 0x00011132L + +// +// MessageId: IDS_Moscow +// +// MessageText: +// +// (GMT+03:00) Moscow, St. Petersburg, Volgograd%0 +// +#define IDS_Moscow 0x00011133L + +// +// MessageId: IDS_CapeVerde +// +// MessageText: +// +// (GMT-01:00) Cape Verde Is.%0 +// +#define IDS_CapeVerde 0x00011134L + +// +// MessageId: IDS_Caucasus +// +// MessageText: +// +// (GMT+04:00) Baku, Tbilisi, Yerevan%0 +// +#define IDS_Caucasus 0x00011135L + +// +// MessageId: IDS_CentralAmerica +// +// MessageText: +// +// (GMT-06:00) Central America%0 +// +#define IDS_CentralAmerica 0x00011136L + +// +// MessageId: IDS_EastAfrica +// +// MessageText: +// +// (GMT+03:00) Nairobi%0 +// +#define IDS_EastAfrica 0x00011137L + +// +// MessageId: IDS_Melbourne +// +// MessageText: +// +// (GMT+10:00) Canberra, Melbourne, Sydney%0 +// +#define IDS_Melbourne 0x00011138L + +// +// MessageId: IDS_Ekaterinburg +// +// MessageText: +// +// (GMT+05:00) Ekaterinburg%0 +// +#define IDS_Ekaterinburg 0x00011139L + +// +// MessageId: IDS_Helsinki +// +// MessageText: +// +// (GMT+02:00) Helsinki, Riga, Tallinn%0 +// +#define IDS_Helsinki 0x0001113AL + +// +// MessageId: IDS_Greenland +// +// MessageText: +// +// (GMT-03:00) Greenland%0 +// +#define IDS_Greenland 0x0001113BL + +// +// MessageId: IDS_Rangoon +// +// MessageText: +// +// (GMT+06:30) Yangon (Rangun)%0 +// +#define IDS_Rangoon 0x0001113CL + +// +// MessageId: IDS_Nepal +// +// MessageText: +// +// (GMT+05:45) Kathmandu%0 +// +#define IDS_Nepal 0x0001113DL + +// +// MessageId: IDS_Irkutsk +// +// MessageText: +// +// (GMT+08:00) Irkutsk, Ulaan Bataar%0 +// +#define IDS_Irkutsk 0x0001113EL + +// +// MessageId: IDS_Krasnoyarsk +// +// MessageText: +// +// (GMT+07:00) Krasnoyarsk%0 +// +#define IDS_Krasnoyarsk 0x0001113FL + +// +// MessageId: IDS_Santiago +// +// MessageText: +// +// (GMT-04:00) Santiago%0 +// +#define IDS_Santiago 0x00011140L + +// +// MessageId: IDS_SriLanka +// +// MessageText: +// +// (GMT+06:00) Sri Jayawardenepura%0 +// +#define IDS_SriLanka 0x00011141L + +// +// MessageId: IDS_Tonga +// +// MessageText: +// +// (GMT+13:00) Nuku'alofa%0 +// +#define IDS_Tonga 0x00011142L + +// +// MessageId: IDS_Vladivostok +// +// MessageText: +// +// (GMT+10:00) Vladivostok%0 +// +#define IDS_Vladivostok 0x00011143L + +// +// MessageId: IDS_WestCentralAfrica +// +// MessageText: +// +// (GMT+01:00) West Central Africa%0 +// +#define IDS_WestCentralAfrica 0x00011144L + +// +// MessageId: IDS_Yakutsk +// +// MessageText: +// +// (GMT+09:00) Yakutsk%0 +// +#define IDS_Yakutsk 0x00011145L + +// +// MessageId: IDS_Dhaka +// +// MessageText: +// +// (GMT+06:00) Astana, Dhaka%0 +// +#define IDS_Dhaka 0x00011146L + +// +// MessageId: IDS_Seoul +// +// MessageText: +// +// (GMT+09:00) Seoul%0 +// +#define IDS_Seoul 0x00011147L + +// +// MessageId: IDS_Perth +// +// MessageText: +// +// (GMT+08:00) Perth%0 +// +#define IDS_Perth 0x00011148L + +// +// MessageId: IDS_Arab +// +// MessageText: +// +// (GMT+03:00) Kuwait, Riyadh%0 +// +#define IDS_Arab 0x00011149L + +// +// MessageId: IDS_Taipei +// +// MessageText: +// +// (GMT+08:00) Taipei%0 +// +#define IDS_Taipei 0x0001114AL + +// +// MessageId: IDS_Sydney2000 +// +// MessageText: +// +// (GMT+10:00) Canberra, Melbourne, Sydney (Year 2000 only)%0 +// +#define IDS_Sydney2000 0x0001114BL + +// +// MessageId: IDS_Chihuahua +// +// MessageText: +// +// (GMT-07:00) Chihuahua, La Paz, Mazatlan%0 +// +#define IDS_Chihuahua 0x0001114CL + +// +// MessageId: IDS_CanberraCommonwealthGames2006 +// +// MessageText: +// +// (GMT+10:00) Canberra, Melbourne, Sydney (Commonwealth Games)%0 +// +#define IDS_CanberraCommonwealthGames2006 0x0001114DL + +// +// MessageId: IDS_AdelaideCommonwealthGames2006 +// +// MessageText: +// +// (GMT+09:30) Adelaide (Commonwealth Games)%0 +// +#define IDS_AdelaideCommonwealthGames2006 0x0001114EL + +// +// MessageId: IDS_HobartCommonwealthGames2006 +// +// MessageText: +// +// (GMT+10:00) Hobart (Commonwealth Games)%0 +// +#define IDS_HobartCommonwealthGames2006 0x0001114FL + +// +// MessageId: IDS_Tijuana +// +// MessageText: +// +// (GMT-08:00) Tijuana, Baja California%0 +// +#define IDS_Tijuana 0x00011150L + +/////////////////////////////////////// +// EXCDO messages +// +// MessageId = 0x2000 through 0x2fff, localized in server languages. +/////////////////////////////////////// +#ifdef CDOSVR +// +// MessageId: evtMethodCalled +// +// MessageText: +// +// %1 Event on %2 called with Flags %3 +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtMethodCalled 0x00032000L + +// +// MessageId: evtMethodReturning +// +// MessageText: +// +// %1 Event Method is returning with HRESULT %2 +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtMethodReturning 0x00032001L + +// +// MessageId: evtIsAborting +// +// MessageText: +// +// %1 Event Method is halting, HRESULT %2 +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtIsAborting 0xC0032002L + +// +// MessageId: evtExpansionInitialized +// +// MessageText: +// +// Calendaring agent is initialized successfully. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpansionInitialized 0x00032003L + +// +// MessageId: evtExpansionUnInitialized +// +// MessageText: +// +// Calendaring agent is stopping successfully. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpansionUnInitialized 0x00032004L + +// +// MessageId: evtExpansionInitializeFailed +// +// MessageText: +// +// Calendaring agent failed to initialize with error %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpansionInitializeFailed 0xC0032005L + +// +// MessageId: evtExpansionRegisterFailed +// +// MessageText: +// +// Calendaring recurring item expansion failed to register for notifications for MDB %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpansionRegisterFailed 0xC0032006L + +// +// MessageId: evtExpansionMessageSaveChangesFailed +// +// MessageText: +// +// Calendaring agent failed in message save notification with error %1 on %2: %3. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpansionMessageSaveChangesFailed 0xC0032007L + +// +// MessageId: evtExpansionMessageDeleteFailed +// +// MessageText: +// +// Calendaring agent failed in message delete notification with error %1 on %2: %3. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpansionMessageDeleteFailed 0xC0032008L + +// +// MessageId: evtExpansionFolderSaveChangesFailed +// +// MessageText: +// +// Calendaring agent failed in folder save notification with error %1 on %2: %3. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpansionFolderSaveChangesFailed 0xC0032009L + +// +// MessageId: evtExpansionTooManyInstancesPerDay +// +// MessageText: +// +// Calendaring agent truncated expansion after %1 instances per day. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpansionTooManyInstancesPerDay 0x8003200AL + +// +// MessageId: evtMailboxCreateTotalFailure +// +// MessageText: +// +// The mailbox creation callback failed to create any folders in mailbox %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtMailboxCreateTotalFailure 0xC003200BL + +// +// MessageId: evtMailboxCreatePartialFailure +// +// MessageText: +// +// The mailbox creation callback failed to create one or more folders in mailbox %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtMailboxCreatePartialFailure 0xC003200CL + +// +// MessageId: evtUninitImplRestFailed +// +// MessageText: +// +// Calendaring agent failed to uninitialize implied restriction with error %1 on %2: %3. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtUninitImplRestFailed 0xC003200DL + +// +// MessageId: evtExpandSavingAppt +// +// MessageText: +// +// Calendaring agent failed with error code %1 while saving appointment. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpandSavingAppt 0xC003200EL + +// +// MessageId: evtExpandDeletingAppt +// +// MessageText: +// +// Calendaring agent failed with error code %1 while deleting appointment. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpandDeletingAppt 0xC003200FL + +// +// MessageId: evtExpandQuery +// +// MessageText: +// +// Calendaring agent failed with error code %1 while expanding recurring appointments. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpandQuery 0xC0032010L + +// +// MessageId: evtExpandFolderSetProps +// +// MessageText: +// +// Calendaring agent failed with error code %1 while cleaning up the calendar. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpandFolderSetProps 0xC0032011L + +// +// MessageId: evtRegistryFailure +// +// MessageText: +// +// Calendaring agent failed to open registry with error code %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtRegistryFailure 0xC0032012L + +// +// MessageId: evtExpStat +// +// MessageText: +// +// Calendaring agent failed in the following function with error code: %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpStat 0xC0032013L + +// +// MessageId: evtDumpFcn +// +// MessageText: +// +// Calendaring agent failed in the following function with error code %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtDumpFcn 0xC0032014L + +// +// MessageId: evtSaveDeleteFailFBUpdate +// +// MessageText: +// +// Calendaring agent failed to update the free/busy cache during an appointment save or delete operation. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtSaveDeleteFailFBUpdate 0xC0032015L + +// +// MessageId: evtProcessingQueryCallback +// +// MessageText: +// +// Calendaring agent failed to update the free/busy cache and internal data while processing a query. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtProcessingQueryCallback 0xC0032016L + +// +// MessageId: evtMailboxLocalizeTotalFailure +// +// MessageText: +// +// The mailbox creation callback failed to rename any folders in mailbox %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtMailboxLocalizeTotalFailure 0xC0032017L + +// +// MessageId: evtMailboxLocalizePartialFailure +// +// MessageText: +// +// The mailbox creation callback failed to rename one or more folders in mailbox %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtMailboxLocalizePartialFailure 0xC0032018L + +// +// MessageId: evtExpandMaster +// +// MessageText: +// +// The processing of the recurring appointment with the subject "%1" in mailbox: %2 failed with error code %3. This appointment will not be visible in the web client or other non-MAPI client. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpandMaster 0xC0032019L + +// +// MessageId: evtExpansionInit +// +// MessageText: +// +// A transaction failed during initialization. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpansionInit 0xC003201AL + +// +// MessageId: evtFBGenerateMsg +// +// MessageText: +// +// The calendaring agent could not publish the free/busy information for "%1" because it failed reading the registry with error: %2. +// The save/delete calendar operation for "%3" will not be completed. +// Please ensure that MSExchangeFBPublish agent is started. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtFBGenerateMsg 0xC003201BL + +// +// MessageId: evtExpansionInstExpiryInPublicMDB +// +// MessageText: +// +// Expiry of an instance for the recurring appointment with the subject "%1" in the folder "%2" was detected. The master for that should be expired before this instance. +// This instance will no longer appear in the web clients until the master is updated manually or through replication. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpansionInstExpiryInPublicMDB 0x8003201CL + +// +// MessageId: evtUnhandledExceptionInitialization +// +// MessageText: +// +// Unhandled exception %1 caught during initialization of server agents. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtUnhandledExceptionInitialization 0xC003201DL + +// +// MessageId: evtUnhandledExceptionShutdown +// +// MessageText: +// +// Unhandled exception %1 caught trying to stop server agents. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtUnhandledExceptionShutdown 0xC003201EL + +// +// MessageId: evtUnhandledExceptionInitializationMDB +// +// MessageText: +// +// Unhandled exception %1 caught during initialization of server agents while an MDB is mounted. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtUnhandledExceptionInitializationMDB 0xC003201FL + +// +// MessageId: evtUnhandledExceptionShutdownMDB +// +// MessageText: +// +// Unhandled exception %1 caught trying to stop server agents while an MDB is unmounted. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtUnhandledExceptionShutdownMDB 0xC0032020L + +// +// MessageId: evtUnhandledExceptionMsgSaveChanges +// +// MessageText: +// +// Unhandled exception %1 caught during message save changes notification. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtUnhandledExceptionMsgSaveChanges 0xC0032021L + +// +// MessageId: evtUnhandledExceptionDelete +// +// MessageText: +// +// Unhandled exception %1 caught during deletion notification. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtUnhandledExceptionDelete 0xC0032022L + +// +// MessageId: evtUnhandledExceptionQuery +// +// MessageText: +// +// Unhandled exception %1 caught during query processing. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtUnhandledExceptionQuery 0xC0032023L + +// +// MessageId: evtUnhandledExceptionFolderSaveChanges +// +// MessageText: +// +// Unhandled exception %1 caught during folder save changes notification. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtUnhandledExceptionFolderSaveChanges 0xC0032024L + +// +// MessageId: evtCorruptedCalendar +// +// MessageText: +// +// The calendar for the mailbox %1 is corrupted. This calendar needs to be recreated. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtCorruptedCalendar 0xC0032025L + +// +// MessageId: evtRebuildCalendar +// +// MessageText: +// +// An inconsistency was detected in %2: %3. The calendar is being repaired. If other errors occur with this calendar, please view the calendar using Microsoft Outlook Web Access. If a problem persists, please recreate the calendar or the containing mailbox. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtRebuildCalendar 0x80032026L + +// +// MessageId: evtCheckPrimaryCalendar +// +// MessageText: +// +// Calendar agent failed to determine the primary calendar for mailbox: %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtCheckPrimaryCalendar 0x80032027L + +// +// MessageId: evtExpandMasterPF +// +// MessageText: +// +// The processing of the recurring appointment with the subject "%1" in public folder: %2 failed with error code %3. This appointment will not be visible in the web client or other non-MAPI client. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtExpandMasterPF 0xC0032028L + +// +// MessageId: evtCorruptedPFCalendar +// +// MessageText: +// +// The public folder %1 is corrupted. This calendar needs to be recreated. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtCorruptedPFCalendar 0xC0032029L + +// +// MessageId: evtRebuildPFCalendar +// +// MessageText: +// +// An inconsistency was detected in %1. The calendar is being repaired. If other errors occur with this calendar, please view the calendar using Microsoft Outlook Web Access. If a problem persists, please recreate the public folder calendar. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtRebuildPFCalendar 0x8003202AL + +// +// MessageId: evtMovingMailboxCallbackFailed +// +// MessageText: +// +// Clearing the calendar instances before a move failed for mailbox %1 with error %2. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtMovingMailboxCallbackFailed 0x8003202BL + +// +// MessageId: evtGetMsgClassFromMaster +// +// MessageText: +// +// Calendaring agent failed with error %1 while attempting to retrieve the message class for a recurring appointment. The message class for the instance +// when viewed with the Web Client will not be the same as the one in the series if it is not IPM.Appointment. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtGetMsgClassFromMaster 0x8003202CL + +// +// MessageId: evtOpenURL +// +// MessageText: +// +// Calendaring agent failed with error %1 while attempting to open the status message. If the user is a delegate, the access rights to the mailbox might +// not be set up correctly. Otherwise, the calendar for this mailbox could be corrupted. This could be fixed +// by moving the mailbox to another Exchange server, or exporting the calendar to a Personal Folder File (.PST), and re-importing this into a new calendar. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtOpenURL 0x8003202DL + +// +// MessageId: evtStatusMsgSent +// +// MessageText: +// +// The calendaring data message for %1: %2 has been sent to %3. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtStatusMsgSent 0x4003202EL + +// +// MessageId: evtSaveInvalidStartAppt +// +// MessageText: +// +// An appointment with the subject "%1" was saved to mailbox %2. The start time is missing, so the calendaring agent cannot publish the free/busy information for this appointment. To correct this, please delete the appointment and recreate it. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtSaveInvalidStartAppt 0xC003202FL + +// +// MessageId: evtSaveInvalidEndAppt +// +// MessageText: +// +// An appointment with the subject "%1" was saved to mailbox %2. The end time and duration are missing. For the purposes of publishing free/busy information, this appointment has a duration of zero minutes. To correct this, please delete the appointment and recreate it. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtSaveInvalidEndAppt 0x80032030L + +// +// MessageId: evtModifyInvalidAppt +// +// MessageText: +// +// An existing appointment with the subject "%1" in mailbox %2 was modified. The start time, or both the duration and end time of the existing appointment were missing. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtModifyInvalidAppt 0x80032031L + +// +// MessageId: evtDeleteInvalidAppt +// +// MessageText: +// +// The existing appointment with the subject "%1" in mailbox %2 was deleted. The start time, or both the duration and end time were missing. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtDeleteInvalidAppt 0x80032032L + +// +// MessageId: evtBindToInvalidStartAppt +// +// MessageText: +// +// The calendaring agent cannot bind to the appointment with the subject "%1" in mailbox %2 because the appointment is missing a start time. The calendaring agent will not publish free/busy information for this appointment. To correct this, please delete the appointment and recreate it. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBindToInvalidStartAppt 0xC0032033L + +// +// MessageId: evtBindToInvalidEndAppt +// +// MessageText: +// +// The calendaring agent did bind to the appointment with the subject "%1" in mailbox %2, but the appointment is missing an end time and duration. For the purposes of publishing free/busy information, this appointment has a duration of zero minutes. To correct this, please delete the appointment and recreate it. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBindToInvalidEndAppt 0x80032034L + +// +// MessageId: evtReloadLogType +// +// MessageText: +// +// The EXCDO logging level has been reloaded from the registry and is now set to 0x%1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtReloadLogType 0x40032035L + +// +// MessageId: evtBackgroundStarted +// +// MessageText: +// +// Calendaring agent has successfully started the background thread. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundStarted 0x40032036L + +// +// MessageId: evtBackgroundStartFailed +// +// MessageText: +// +// Calendaring agent has failed to start the background thread due to %1. +// Rendering of large calendars with the Web client will be slower. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundStartFailed 0x80032037L + +// +// MessageId: evtBackgroundProcessing +// +// MessageText: +// +// Background calendaring agent is processing the calendar (%1) in the mailbox (%2) in the MDB (%3). +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundProcessing 0x40032038L + +// +// MessageId: evtBackgroundProcessingNoCals +// +// MessageText: +// +// Background calendaring agent did not find any more calendars to process. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundProcessingNoCals 0x40032039L + +// +// MessageId: evtBackgroundProcessingFinished +// +// MessageText: +// +// Background calendaring agent has finished processing the calendar (%1) in the mailbox (%2) in the MDB (%3). The return code is %4. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundProcessingFinished 0x4003203AL + +// +// MessageId: evtBackgroundAwakeDueToShutdown +// +// MessageText: +// +// Background calendaring agent is awakened due to shutdown. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundAwakeDueToShutdown 0x4003203BL + +// +// MessageId: evtBackgroundAwake +// +// MessageText: +// +// Background calendaring agent is awakened due to calendars needing expansion. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundAwake 0x4003203CL + +// +// MessageId: evtBackgroundTerminating +// +// MessageText: +// +// Background calendaring agent is terminating with return code %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundTerminating 0x4003203DL + +// +// MessageId: evtBackgroundRegisterTaskFailed +// +// MessageText: +// +// The background calendaring agent failed with error code %1 while registering task. +// The rendering of large calendars with the web client or Microsoft Internet Explorer will be slower. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundRegisterTaskFailed 0xC003203EL + +// +// MessageId: evtBackgroundLogonFailed +// +// MessageText: +// +// The background calendaring agent failed to logon to the MDB, or create a session object on the MDB:%1. +// The error code is %2. +// The rendering of large calendars with the web client or Microsoft Internet Explorer for the mailbox %3 with GUID:%4 will be slower. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundLogonFailed 0xC003203FL + +// +// MessageId: evtBackgroundGetMachineToken +// +// MessageText: +// +// The background calendaring agent failed to retrieve the token required for logon on the MDB:%1. +// The error code is %2. +// The rendering of large calendars with the web client or Microsoft Internet Explorer on this MDB will be slower. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundGetMachineToken 0xC0032040L + +// +// MessageId: evtBackgroundSleepUntilNewCal +// +// MessageText: +// +// Background calendaring agent is sleeping until shutdown or a calendar is queued. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundSleepUntilNewCal 0x40032041L + +// +// MessageId: evtBackgroundQueued +// +// MessageText: +// +// The calendar (%1) in mailbox (%2) in the MDB (%3) has been queued for background expansion. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBackgroundQueued 0x40032042L + +// +// MessageId: evtBkExpDumpFcn +// +// MessageText: +// +// The background calendaring agent failed in the following function with error code %1. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtBkExpDumpFcn 0xC0032043L + +// +// MessageId: evtSaveDurationTooLong +// +// MessageText: +// +// An attempt was made to save an appointment with the subject "%1" to mailbox %2. The duration of the appointment was too large, so it was not saved. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtSaveDurationTooLong 0x80032044L + +// +// MessageId: evtModifyDurationTooLong +// +// MessageText: +// +// An existing appointment with the subject "%1" in mailbox %2 was modified. The duration of the existing appointment was too large. Free/busy publishing may not be accurate. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtModifyDurationTooLong 0x80032045L + +// +// MessageId: evtDeleteDurationTooLong +// +// MessageText: +// +// The existing appointment with the subject "%1" in mailbox %2 was deleted. The duration of the existing appointment was too large. Free/busy publishing may not be accurate. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtDeleteDurationTooLong 0x80032046L + +// +// MessageId: evtTooManyIterationsForQuery +// +// MessageText: +// +// The recurring appointment expansion in mailbox %1 has taken too long. Some recurring appointment instances may not be visible at this time. To ensure that the calendar view is correct, please refresh the calendar view in Microsoft Outlook Web Access. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtTooManyIterationsForQuery 0x80032047L + +// +// MessageId: evtTooManyIterationsForFreebusy +// +// MessageText: +// +// The recurring appointment expansion in mailbox %1 has taken too long. The free/busy information for this calendar may be inaccurate. This may be the result of many very old recurring appointments. To correct this, please remove them or change their start date to a more recent date. +// %n%nFor more information, click http://www.microsoft.com/contentredirect.asp. +// +#define evtTooManyIterationsForFreebusy 0x80032048L + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSysStr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSysStr.h new file mode 100644 index 0000000000000000000000000000000000000000..306921f361195493b46db7cc542b266387e4447a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSysStr.h @@ -0,0 +1,185 @@ +#ifndef __cdostr_h_ +#define __cdostr_h_ +// __CdoCalendar_MODULE_DEFINED__ +#define cdoTimeZoneIDURN L"urn:schemas:calendar:timezoneid" + +// __CdoCharset_MODULE_DEFINED__ +#define cdoBIG5 L"big5" +#define cdoEUC_JP L"euc-jp" +#define cdoEUC_KR L"euc-kr" +#define cdoGB2312 L"gb2312" +#define cdoISO_2022_JP L"iso-2022-jp" +#define cdoISO_2022_KR L"iso-2022-kr" +#define cdoISO_8859_1 L"iso-8859-1" +#define cdoISO_8859_2 L"iso-8859-2" +#define cdoISO_8859_3 L"iso-8859-3" +#define cdoISO_8859_4 L"iso-8859-4" +#define cdoISO_8859_5 L"iso-8859-5" +#define cdoISO_8859_6 L"iso-8859-6" +#define cdoISO_8859_7 L"iso-8859-7" +#define cdoISO_8859_8 L"iso-8859-8" +#define cdoISO_8859_9 L"iso-8859-9" +#define cdoKOI8_R L"koi8-r" +#define cdoShift_JIS L"shift-jis" +#define cdoUS_ASCII L"us-ascii" +#define cdoUTF_7 L"utf-7" +#define cdoUTF_8 L"utf-8" +#define cdoISO_8859_15 L"iso-8859-15" + +// __CdoConfiguration_MODULE_DEFINED__ +#define cdoAutoPromoteBodyParts L"http://schemas.microsoft.com/cdo/configuration/autopromotebodyparts" +#define cdoFlushBuffersOnWrite L"http://schemas.microsoft.com/cdo/configuration/flushbuffersonwrite" +#define cdoHTTPCookies L"http://schemas.microsoft.com/cdo/configuration/httpcookies" +#define cdoLanguageCode L"http://schemas.microsoft.com/cdo/configuration/languagecode" +#define cdoNNTPAccountName L"http://schemas.microsoft.com/cdo/configuration/nntpaccountname" +#define cdoNNTPAuthenticate L"http://schemas.microsoft.com/cdo/configuration/nntpauthenticate" +#define cdoNNTPConnectionTimeout L"http://schemas.microsoft.com/cdo/configuration/nntpconnectiontimeout" +#define cdoNNTPServer L"http://schemas.microsoft.com/cdo/configuration/nntpserver" +#define cdoNNTPServerPickupDirectory L"http://schemas.microsoft.com/cdo/configuration/nntpserverpickupdirectory" +#define cdoNNTPServerPort L"http://schemas.microsoft.com/cdo/configuration/nntpserverport" +#define cdoNNTPUseSSL L"http://schemas.microsoft.com/cdo/configuration/nntpusessl" +#define cdoPostEmailAddress L"http://schemas.microsoft.com/cdo/configuration/postemailaddress" +#define cdoPostPassword L"http://schemas.microsoft.com/cdo/configuration/postpassword" +#define cdoPostUserName L"http://schemas.microsoft.com/cdo/configuration/postusername" +#define cdoPostUserReplyEmailAddress L"http://schemas.microsoft.com/cdo/configuration/postuserreplyemailaddress" +#define cdoPostUsingMethod L"http://schemas.microsoft.com/cdo/configuration/postusing" +#define cdoSaveSentItems L"http://schemas.microsoft.com/cdo/configuration/savesentitems" +#define cdoSendEmailAddress L"http://schemas.microsoft.com/cdo/configuration/sendemailaddress" +#define cdoSendPassword L"http://schemas.microsoft.com/cdo/configuration/sendpassword" +#define cdoSendUserName L"http://schemas.microsoft.com/cdo/configuration/sendusername" +#define cdoSendUserReplyEmailAddress L"http://schemas.microsoft.com/cdo/configuration/senduserreplyemailaddress" +#define cdoSendUsingMethod L"http://schemas.microsoft.com/cdo/configuration/sendusing" +#define cdoSMTPAccountName L"http://schemas.microsoft.com/cdo/configuration/smtpaccountname" +#define cdoSMTPAuthenticate L"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" +#define cdoSMTPConnectionTimeout L"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout" +#define cdoSMTPServer L"http://schemas.microsoft.com/cdo/configuration/smtpserver" +#define cdoSMTPServerPickupDirectory L"http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory" +#define cdoSMTPServerPort L"http://schemas.microsoft.com/cdo/configuration/smtpserverport" +#define cdoSMTPUseSSL L"http://schemas.microsoft.com/cdo/configuration/smtpusessl" +#define cdoURLGetLatestVersion L"http://schemas.microsoft.com/cdo/configuration/urlgetlatestversion" +#define cdoURLProxyBypass L"http://schemas.microsoft.com/cdo/configuration/urlproxybypass" +#define cdoURLProxyServer L"http://schemas.microsoft.com/cdo/configuration/urlproxyserver" +#define cdoUseMessageResponseText L"http://schemas.microsoft.com/cdo/configuration/usemessageresponsetext" + +// __CdoContentTypeValues_MODULE_DEFINED__ +#define cdoGif L"image/gif" +#define cdoJpeg L"image/jpeg" +#define cdoMessageExternalBody L"message/external-body" +#define cdoMessagePartial L"message/partial" +#define cdoMessageRFC822 L"message/rfc822" +#define cdoMultipartAlternative L"multipart/alternative" +#define cdoMultipartDigest L"multipart/digest" +#define cdoMultipartMixed L"multipart/mixed" +#define cdoMultipartRelated L"multipart/related" +#define cdoTextHTML L"text/html" +#define cdoTextPlain L"text/plain" + +// __CdoDAV_MODULE_DEFINED__ +#define cdoContentClass L"DAV:contentclass" +#define cdoGetContentType L"DAV:getcontenttype" + +// __CdoEncodingType_MODULE_DEFINED__ +#define cdo7bit L"7bit" +#define cdo8bit L"8bit" +#define cdoBase64 L"base64" +#define cdoBinary L"binary" +#define cdoMacBinHex40 L"mac-binhex40" +#define cdoQuotedPrintable L"quoted-printable" +#define cdoUuencode L"uuencode" + +// __CdoExchange_MODULE_DEFINED__ +#define cdoSensitivity L"http://schemas.microsoft.com/exchange/sensitivity" + +// __CdoHTTPMail_MODULE_DEFINED__ +#define cdoAttachmentFilename L"urn:schemas:httpmail:attachmentfilename" +#define cdoBcc L"urn:schemas:httpmail:bcc" +#define cdoCc L"urn:schemas:httpmail:cc" +#define cdoContentDispositionType L"urn:schemas:httpmail:content-disposition-type" +#define cdoContentMediaType L"urn:schemas:httpmail:content-media-type" +#define cdoDate L"urn:schemas:httpmail:date" +#define cdoDateReceived L"urn:schemas:httpmail:datereceived" +#define cdoFrom L"urn:schemas:httpmail:from" +#define cdoHasAttachment L"urn:schemas:httpmail:hasattachment" +#define cdoHTMLDescription L"urn:schemas:httpmail:htmldescription" +#define cdoImportance L"urn:schemas:httpmail:importance" +#define cdoNormalizedSubject L"urn:schemas:httpmail:normalizedsubject" +#define cdoPriority L"urn:schemas:httpmail:priority" +#define cdoReplyTo L"urn:schemas:httpmail:reply-to" +#define cdoSender L"urn:schemas:httpmail:sender" +#define cdoSubject L"urn:schemas:httpmail:subject" +#define cdoTextDescription L"urn:schemas:httpmail:textdescription" +#define cdoThreadTopic L"urn:schemas:httpmail:thread-topic" +#define cdoTo L"urn:schemas:httpmail:to" + +// __CdoInterfaces_MODULE_DEFINED__ +#define cdoAdoStream L"_Stream" +#define cdoIBodyPart L"IBodyPart" +#define cdoIConfiguration L"IConfiguration" +#define cdoIDataSource L"IDataSource" +#define cdoIMessage L"IMessage" +#define cdoIStream L"IStream" + +// __CdoMailHeader_MODULE_DEFINED__ +#define cdoApproved L"urn:schemas:mailheader:approved" +#define cdoComment L"urn:schemas:mailheader:comment" +#define cdoContentBase L"urn:schemas:mailheader:content-base" +#define cdoContentDescription L"urn:schemas:mailheader:content-description" +#define cdoContentDisposition L"urn:schemas:mailheader:content-disposition" +#define cdoContentId L"urn:schemas:mailheader:content-id" +#define cdoContentLanguage L"urn:schemas:mailheader:content-language" +#define cdoContentLocation L"urn:schemas:mailheader:content-location" +#define cdoContentTransferEncoding L"urn:schemas:mailheader:content-transfer-encoding" +#define cdoContentType L"urn:schemas:mailheader:content-type" +#define cdoControl L"urn:schemas:mailheader:control" +#define cdoDisposition L"urn:schemas:mailheader:disposition" +#define cdoDispositionNotificationTo L"urn:schemas:mailheader:disposition-notification-to" +#define cdoDistribution L"urn:schemas:mailheader:distribution" +#define cdoExpires L"urn:schemas:mailheader:expires" +#define cdoFollowupTo L"urn:schemas:mailheader:followup-to" +#define cdoInReplyTo L"urn:schemas:mailheader:in-reply-to" +#define cdoLines L"urn:schemas:mailheader:lines" +#define cdoMessageId L"urn:schemas:mailheader:message-id" +#define cdoMIMEVersion L"urn:schemas:mailheader:mime-version" +#define cdoNewsgroups L"urn:schemas:mailheader:newsgroups" +#define cdoOrganization L"urn:schemas:mailheader:organization" +#define cdoOriginalRecipient L"urn:schemas:mailheader:original-recipient" +#define cdoPath L"urn:schemas:mailheader:path" +#define cdoPostingVersion L"urn:schemas:mailheader:posting-version" +#define cdoReceived L"urn:schemas:mailheader:received" +#define cdoReferences L"urn:schemas:mailheader:references" +#define cdoRelayVersion L"urn:schemas:mailheader:relay-version" +#define cdoReturnPath L"urn:schemas:mailheader:return-path" +#define cdoReturnReceiptTo L"urn:schemas:mailheader:return-receipt-to" +#define cdoSummary L"urn:schemas:mailheader:summary" +#define cdoThreadIndex L"urn:schemas:mailheader:thread-index" +#define cdoXMailer L"urn:schemas:mailheader:x-mailer" +#define cdoXref L"urn:schemas:mailheader:xref" +#define cdoXUnsent L"urn:schemas:mailheader:x-unsent" +#define cdoXFidelity L"urn:schemas:mailheader:x-cdostreamhighfidelity" + +// __CdoNamespace_MODULE_DEFINED__ +#define cdoNSConfiguration L"http://schemas.microsoft.com/cdo/configuration/" +#define cdoNSContacts L"urn:schemas:contacts:" +#define cdoNSHTTPMail L"urn:schemas:httpmail:" +#define cdoNSMailHeader L"urn:schemas:mailheader:" +#define cdoNSNNTPEnvelope L"http://schemas.microsoft.com/cdo/nntpenvelope/" +#define cdoNSSMTPEnvelope L"http://schemas.microsoft.com/cdo/smtpenvelope/" + +// __CdoNNTPEnvelope_MODULE_DEFINED__ +#define cdoNewsgroupList L"http://schemas.microsoft.com/cdo/nntpenvelope/newsgrouplist" +#define cdoNNTPProcessing L"http://schemas.microsoft.com/cdo/nntpenvelope/nntpprocessing" + +// __CdoOffice_MODULE_DEFINED__ +#define cdoKeywords L"urn:schemas-microsoft-com:office:office#Keywords" + +// __CdoSMTPEnvelope_MODULE_DEFINED__ +#define cdoArrivalTime L"http://schemas.microsoft.com/cdo/smtpenvelope/arrivaltime" +#define cdoClientIPAddress L"http://schemas.microsoft.com/cdo/smtpenvelope/clientipaddress" +#define cdoMessageStatus L"http://schemas.microsoft.com/cdo/smtpenvelope/messagestatus" +#define cdoPickupFileName L"http://schemas.microsoft.com/cdo/smtpenvelope/pickupfilename" +#define cdoRecipientList L"http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist" +#define cdoSenderEmailAddress L"http://schemas.microsoft.com/cdo/smtpenvelope/senderemailaddress" + +// __CdoErrors_MODULE_DEFINED__ + +#endif // __cdostr_h_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSys_I.c b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSys_I.c new file mode 100644 index 0000000000000000000000000000000000000000..f5c8233311a6e214301fb5ea331fe6075f86a785 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CDOSys_I.c @@ -0,0 +1,149 @@ + + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + +/* link this file in with the server and any clients */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +#ifdef __cplusplus +extern "C"{ +#endif + + +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef struct _IID +{ + unsigned long x; + unsigned short s1; + unsigned short s2; + unsigned char c[8]; +} IID; + +#endif // __IID_DEFINED__ + +#ifndef CLSID_DEFINED +#define CLSID_DEFINED +typedef IID CLSID; +#endif // CLSID_DEFINED + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} + +#endif // !_MIDL_USE_GUIDDEF_ + +#if defined __cplusplus && !defined CDO_NO_NAMESPACE +namespace CDO { +#else +#undef IDataSource +#endif + +MIDL_DEFINE_GUID(IID, IID_IDataSource,0xCD000029,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_IMessage,0xCD000020,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_IBodyPart,0xCD000021,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_IConfiguration,0xCD000022,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_IMessages,0xCD000025,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_IDropDirectory,0xCD000024,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_IBodyParts,0xCD000023,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_ISMTPScriptConnector,0xCD000030,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_INNTPEarlyScriptConnector,0xCD000034,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_INNTPPostScriptConnector,0xCD000031,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_INNTPFinalScriptConnector,0xCD000032,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_ISMTPOnArrival,0xCD000026,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_INNTPOnPostEarly,0xCD000033,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_INNTPOnPost,0xCD000027,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_INNTPOnPostFinal,0xCD000028,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_IProxyObject,0xCD000083,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_IGetInterface,0xCD0ff000,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(IID, LIBID_CDO,0xCD000000,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(CLSID, CLSID_Message,0xCD000001,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(CLSID, CLSID_Configuration,0xCD000002,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(CLSID, CLSID_DropDirectory,0xCD000004,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(CLSID, CLSID_SMTPConnector,0xCD000008,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(CLSID, CLSID_NNTPEarlyConnector,0xCD000011,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(CLSID, CLSID_NNTPPostConnector,0xCD000009,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + + +MIDL_DEFINE_GUID(CLSID, CLSID_NNTPFinalConnector,0xCD000010,0x8B95,0x11D1,0x82,0xDB,0x00,0xC0,0x4F,0xB1,0x62,0x5D); + +#undef MIDL_DEFINE_GUID +#if defined __cplusplus && !defined CDO_NO_NAMESPACE +} // namespace CDO +#endif + +#ifdef __cplusplus +} +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CallConv.Inc b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CallConv.Inc new file mode 100644 index 0000000000000000000000000000000000000000..9a359c1af85aea4ba9c87e8baab17fba51518d55 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CallConv.Inc @@ -0,0 +1,314 @@ +;****************************CallConv.Inc************************************ +; +; Copyright (c) 1990-1995, Microsoft Corp. All rights reserved. +; +;**************************************************************************** + +;****************************Public Macro************************************ +; +; ComposeInst Inst,p1,p2,p3,p4,p5,p6,p7,p8,p9 +; +; This macro simply concatenates all arguments into one string. +; +; +;**************************************************************************** + +ComposeInst macro Inst,p1,p2,p3,p4,p5,p6,p7,p8,p9 + &Inst p1&p2&p3&p4&p5&p6&p7&p8&p9 +endm + +;****************************Public Macro************************************ +; +; CountArg cCount,ArgList +; +; This macro count the number of arguments in the ArgList and returns +; the value in cCount. +; +; +;**************************************************************************** + +CountArg macro cCount,ArgList + + cCount = 0 + + irp arg, + cCount = cCount+1 + endm +endm + +;****************************Public Macro************************************ +; +; RevPush ArgList,cCount +; +; This macro pushes the arguments in ArgList in the reverse order +; and returns the number of arguments in cCount. +; +; +;**************************************************************************** + +RevPush macro ArgList,cCount + Local index,x + + CountArg cCount, + + index = cCount + rept cCount + x = 0 + irp arg, + x = x+1 + ife index-x + push arg + exitm + endif + endm + index = index-1 + endm +endm + +;****************************Public Macro************************************ +; +; The following sections contain calling-convention related macros for: +; +; PUBLICP Func,N +; to define a public label +; +; EXTRNP Func,N,Thunk +; to define a external near label +; +; LABELP Func,N +; to label an address as a routine entry point +; +; stdPROC Func,N,ArgList +; to declare a routine header +; +; ProcName Name,Func,N +; to rename a function Func to Name. Using it in conjunction with +; normal function declaration (with the new name) will solve an error +; caused by a long parameter list routine that exhausts page width. +; +; stdRET Func +; to return from Func routines (declared with stdPROC or ProcName.) +; +; stdENDP Func +; to declare the end of routine (declared with stdPROC or ProcName.) +; +; endMod Func +; to declare the end of module with an entry point at Func (declared +; with stdPROC or ProcName.) +; +; stdCall Func,ArgList +; to call to a routine--Func--with the arguments pushed on the stack +; +; MovAddr dest,Func,n +; to move the address of the routine--Func--into dest. +; +; Note that for the standard calling convention all the function names, +; Func, are automatically converted to Func@N where N is the number of +; bytes (decimal) in the argument list. +; +; +;**************************************************************************** + +if @Version GE 600 + option nokeyword: +endif + +PUBLICP macro Func,N + + ifb + public Func&@0 + else + PUBLICP2 Func,%(N*4) + endif +endm + +PUBLICP2 macro Func,N + + public Func&@&N +endm + +EXTRNP macro Func,N,Thunk,FastCall + ifb + IFNDEF Func&@0 + extrn Func&@0:NEAR + ENDIF + else + ifb + ifb + EXTRNP2 Func,%(N*4) + else + EXTRNTHUNK Func,%(N*4) + endif + else + cFCall&@&Func equ (N*4) + ifb + EXTRNP2 &@&Func,%(N*4) + else + EXTRNTHUNK &@&Func,%(N*4) + endif + endif + endif +endm + +EXTRNP2 macro Func,N + IFNDEF Func&@&N + extrn Func&@&N:NEAR + ENDIF +endm + +EXTRNTHUNK macro Func,N + IFNDEF __imp_&Func&@&N + extrn __imp_&Func&@&N:DWORD + ENDIF +endm + +LABELP macro Func,N + + ifb + Func&@0 label near + else + LABELP2 Func,%(N*4) + endif +endm + +LABELP2 macro Func,N + +Func&@&N label near + +endm + +ProcName macro Name,Func,N + + ifb + cByte&Func equ 0 + Name equ + else + cByte&Func equ N + Name equ + endif +endm + +stdPROC macro Func,N,ArgList + + ProcName Func,Func,%(N*4) + + Func proc ArgList +endm + +cPublicProc macro Func,N,ArgList + align dword + PUBLICP Func,N + ifb + stdPROC Func,0, + else + stdPROC Func,N, + endif +endm + +ProcNameF macro Name,Func,N,M + + cByte&Func equ M + cFCall&Func equ N + Name equ + +endm + +stdPROCF macro Func,N,ArgList + + if N gt 2 + ProcNameF Func,Func,%(N*4),%((N-2)*4) + else + ProcNameF Func,Func,%(N*4),0 + endif + + Func proc ArgList +endm + +cPublicFastCall macro Func,N,ArgList + align dword + PUBLICP &@&Func,N + ifb + stdPROCF &@&Func,0, + else + stdPROCF &@&Func,N, + endif +endm + +fstRET macro Func + ret cByte&@&Func +endm + +stdRET macro Func + ret cByte&Func +endm + +cPublicFpo macro FpoLocals, FpoParams + +.FPO ( FpoParams, FpoLocals, 0, 0, 0, 0 ) + +endm + + +fstENDP macro Func + + &@&Func endp +endm + +stdENDP macro Func + + Func endp +endm + +endMod macro Func + + end Func +endm + +stdCallCall macro Func,N + IFDEF __imp_&Func&@&N + call dword ptr [__imp_&Func&@&N] + ELSE + call Func&@&N + ENDIF +endm + + +stdCall macro Func,ArgList + Local Bytes + + RevPush ,Bytes + Bytes = Bytes*4 + + stdCallCall Func,%(Bytes) +endm + +fstCall macro Func,ArgList + Local Bytes + + RevPush ,Bytes + Bytes = Bytes*4 + + if Bytes eq 0 + stdCallCall &@&Func,%cFCall&@&Func + else + ; must have 2 register params + stdCallCall &@&Func,%(Bytes+8) + endif +endm + + +MovAddr macro dest,addr,n + + ComposeInst ,dest,<,offset FLAT:>,addr,<@>,n +endm + + +AlignCfgProc macro + +ifdef _CONTROL_FLOW_GUARD +if _CONTROL_FLOW_GUARD + align 16 +endif +endif + +endm diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CameraUIControl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CameraUIControl.h new file mode 100644 index 0000000000000000000000000000000000000000..ea15ed4d498920a64b61bffc5636e35105bb7829 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CameraUIControl.h @@ -0,0 +1,510 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __camerauicontrol_h__ +#define __camerauicontrol_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICameraUIControlEventCallback_FWD_DEFINED__ +#define __ICameraUIControlEventCallback_FWD_DEFINED__ +typedef interface ICameraUIControlEventCallback ICameraUIControlEventCallback; + +#endif /* __ICameraUIControlEventCallback_FWD_DEFINED__ */ + + +#ifndef __ICameraUIControl_FWD_DEFINED__ +#define __ICameraUIControl_FWD_DEFINED__ +typedef interface ICameraUIControl ICameraUIControl; + +#endif /* __ICameraUIControl_FWD_DEFINED__ */ + + +#ifndef __CameraUIControl_FWD_DEFINED__ +#define __CameraUIControl_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CameraUIControl CameraUIControl; +#else +typedef struct CameraUIControl CameraUIControl; +#endif /* __cplusplus */ + +#endif /* __CameraUIControl_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_camerauicontrol_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#pragma warning(push) +#pragma warning(disable:4668) +#pragma warning(disable:4001) +#pragma once +#pragma warning(pop) +#if (NTDDI_VERSION >= NTDDI_WIN8) +typedef /* [v1_enum] */ +enum CameraUIControlMode + { + Browse = 0, + Linear = ( Browse + 1 ) + } CameraUIControlMode; + +typedef /* [v1_enum] */ +enum CameraUIControlLinearSelectionMode + { + Single = 0, + Multiple = ( Single + 1 ) + } CameraUIControlLinearSelectionMode; + +typedef /* [v1_enum] */ +enum CameraUIControlCaptureMode + { + PhotoOrVideo = 0, + Photo = ( PhotoOrVideo + 1 ) , + Video = ( Photo + 1 ) + } CameraUIControlCaptureMode; + +typedef /* [v1_enum] */ +enum CameraUIControlPhotoFormat + { + Jpeg = 0, + Png = ( Jpeg + 1 ) , + JpegXR = ( Png + 1 ) + } CameraUIControlPhotoFormat; + +typedef /* [v1_enum] */ +enum CameraUIControlVideoFormat + { + Mp4 = 0, + Wmv = ( Mp4 + 1 ) + } CameraUIControlVideoFormat; + +typedef /* [v1_enum] */ +enum CameraUIControlViewType + { + SingleItem = 0, + ItemList = ( SingleItem + 1 ) + } CameraUIControlViewType; + + + +extern RPC_IF_HANDLE __MIDL_itf_camerauicontrol_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_camerauicontrol_0000_0000_v0_0_s_ifspec; + +#ifndef __ICameraUIControlEventCallback_INTERFACE_DEFINED__ +#define __ICameraUIControlEventCallback_INTERFACE_DEFINED__ + +/* interface ICameraUIControlEventCallback */ +/* [local][uuid][object] */ + + +EXTERN_C const IID IID_ICameraUIControlEventCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1BFA0C2C-FBCD-4776-BDA4-88BF974E74F4") + ICameraUIControlEventCallback : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE OnStartupComplete( void) = 0; + + virtual void STDMETHODCALLTYPE OnSuspendComplete( void) = 0; + + virtual void STDMETHODCALLTYPE OnItemCaptured( + /* [annotation][in] */ + _In_ LPCWSTR pszPath) = 0; + + virtual void STDMETHODCALLTYPE OnItemDeleted( + /* [annotation][in] */ + _In_ LPCWSTR pszPath) = 0; + + virtual void STDMETHODCALLTYPE OnClosed( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICameraUIControlEventCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICameraUIControlEventCallback * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICameraUIControlEventCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICameraUIControlEventCallback * This); + + DECLSPEC_XFGVIRT(ICameraUIControlEventCallback, OnStartupComplete) + void ( STDMETHODCALLTYPE *OnStartupComplete )( + ICameraUIControlEventCallback * This); + + DECLSPEC_XFGVIRT(ICameraUIControlEventCallback, OnSuspendComplete) + void ( STDMETHODCALLTYPE *OnSuspendComplete )( + ICameraUIControlEventCallback * This); + + DECLSPEC_XFGVIRT(ICameraUIControlEventCallback, OnItemCaptured) + void ( STDMETHODCALLTYPE *OnItemCaptured )( + ICameraUIControlEventCallback * This, + /* [annotation][in] */ + _In_ LPCWSTR pszPath); + + DECLSPEC_XFGVIRT(ICameraUIControlEventCallback, OnItemDeleted) + void ( STDMETHODCALLTYPE *OnItemDeleted )( + ICameraUIControlEventCallback * This, + /* [annotation][in] */ + _In_ LPCWSTR pszPath); + + DECLSPEC_XFGVIRT(ICameraUIControlEventCallback, OnClosed) + void ( STDMETHODCALLTYPE *OnClosed )( + ICameraUIControlEventCallback * This); + + END_INTERFACE + } ICameraUIControlEventCallbackVtbl; + + interface ICameraUIControlEventCallback + { + CONST_VTBL struct ICameraUIControlEventCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICameraUIControlEventCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICameraUIControlEventCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICameraUIControlEventCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICameraUIControlEventCallback_OnStartupComplete(This) \ + ( (This)->lpVtbl -> OnStartupComplete(This) ) + +#define ICameraUIControlEventCallback_OnSuspendComplete(This) \ + ( (This)->lpVtbl -> OnSuspendComplete(This) ) + +#define ICameraUIControlEventCallback_OnItemCaptured(This,pszPath) \ + ( (This)->lpVtbl -> OnItemCaptured(This,pszPath) ) + +#define ICameraUIControlEventCallback_OnItemDeleted(This,pszPath) \ + ( (This)->lpVtbl -> OnItemDeleted(This,pszPath) ) + +#define ICameraUIControlEventCallback_OnClosed(This) \ + ( (This)->lpVtbl -> OnClosed(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICameraUIControlEventCallback_INTERFACE_DEFINED__ */ + + +#ifndef __ICameraUIControl_INTERFACE_DEFINED__ +#define __ICameraUIControl_INTERFACE_DEFINED__ + +/* interface ICameraUIControl */ +/* [local][uuid][object] */ + + +EXTERN_C const IID IID_ICameraUIControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B8733ADF-3D68-4b8f-BB08-E28A0BED0376") + ICameraUIControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Show( + /* [annotation][in] */ + _In_ IUnknown *pWindow, + /* [annotation][in] */ + _In_ CameraUIControlMode mode, + /* [annotation][in] */ + _In_ CameraUIControlLinearSelectionMode selectionMode, + /* [annotation][in] */ + _In_ CameraUIControlCaptureMode captureMode, + /* [annotation][in] */ + _In_ CameraUIControlPhotoFormat photoFormat, + /* [annotation][in] */ + _In_ CameraUIControlVideoFormat videoFormat, + /* [annotation][in] */ + _In_ BOOL bHasCloseButton, + /* [annotation][in] */ + _In_opt_ ICameraUIControlEventCallback *pEventCallback) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Suspend( + /* [annotation][out] */ + _Out_ BOOL *pbDeferralRequired) = 0; + + virtual HRESULT STDMETHODCALLTYPE Resume( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentViewType( + /* [annotation][out] */ + _Out_ CameraUIControlViewType *pViewType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetActiveItem( + /* [annotation][out] */ + _Outptr_opt_ BSTR *pbstrActiveItemPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSelectedItems( + /* [annotation][out] */ + _Outptr_ SAFEARRAY **ppSelectedItemPaths) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveCapturedItem( + /* [annotation][in] */ + _In_ LPCWSTR pszPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICameraUIControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICameraUIControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICameraUIControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICameraUIControl * This); + + DECLSPEC_XFGVIRT(ICameraUIControl, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + ICameraUIControl * This, + /* [annotation][in] */ + _In_ IUnknown *pWindow, + /* [annotation][in] */ + _In_ CameraUIControlMode mode, + /* [annotation][in] */ + _In_ CameraUIControlLinearSelectionMode selectionMode, + /* [annotation][in] */ + _In_ CameraUIControlCaptureMode captureMode, + /* [annotation][in] */ + _In_ CameraUIControlPhotoFormat photoFormat, + /* [annotation][in] */ + _In_ CameraUIControlVideoFormat videoFormat, + /* [annotation][in] */ + _In_ BOOL bHasCloseButton, + /* [annotation][in] */ + _In_opt_ ICameraUIControlEventCallback *pEventCallback); + + DECLSPEC_XFGVIRT(ICameraUIControl, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ICameraUIControl * This); + + DECLSPEC_XFGVIRT(ICameraUIControl, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + ICameraUIControl * This, + /* [annotation][out] */ + _Out_ BOOL *pbDeferralRequired); + + DECLSPEC_XFGVIRT(ICameraUIControl, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + ICameraUIControl * This); + + DECLSPEC_XFGVIRT(ICameraUIControl, GetCurrentViewType) + HRESULT ( STDMETHODCALLTYPE *GetCurrentViewType )( + ICameraUIControl * This, + /* [annotation][out] */ + _Out_ CameraUIControlViewType *pViewType); + + DECLSPEC_XFGVIRT(ICameraUIControl, GetActiveItem) + HRESULT ( STDMETHODCALLTYPE *GetActiveItem )( + ICameraUIControl * This, + /* [annotation][out] */ + _Outptr_opt_ BSTR *pbstrActiveItemPath); + + DECLSPEC_XFGVIRT(ICameraUIControl, GetSelectedItems) + HRESULT ( STDMETHODCALLTYPE *GetSelectedItems )( + ICameraUIControl * This, + /* [annotation][out] */ + _Outptr_ SAFEARRAY **ppSelectedItemPaths); + + DECLSPEC_XFGVIRT(ICameraUIControl, RemoveCapturedItem) + HRESULT ( STDMETHODCALLTYPE *RemoveCapturedItem )( + ICameraUIControl * This, + /* [annotation][in] */ + _In_ LPCWSTR pszPath); + + END_INTERFACE + } ICameraUIControlVtbl; + + interface ICameraUIControl + { + CONST_VTBL struct ICameraUIControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICameraUIControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICameraUIControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICameraUIControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICameraUIControl_Show(This,pWindow,mode,selectionMode,captureMode,photoFormat,videoFormat,bHasCloseButton,pEventCallback) \ + ( (This)->lpVtbl -> Show(This,pWindow,mode,selectionMode,captureMode,photoFormat,videoFormat,bHasCloseButton,pEventCallback) ) + +#define ICameraUIControl_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ICameraUIControl_Suspend(This,pbDeferralRequired) \ + ( (This)->lpVtbl -> Suspend(This,pbDeferralRequired) ) + +#define ICameraUIControl_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#define ICameraUIControl_GetCurrentViewType(This,pViewType) \ + ( (This)->lpVtbl -> GetCurrentViewType(This,pViewType) ) + +#define ICameraUIControl_GetActiveItem(This,pbstrActiveItemPath) \ + ( (This)->lpVtbl -> GetActiveItem(This,pbstrActiveItemPath) ) + +#define ICameraUIControl_GetSelectedItems(This,ppSelectedItemPaths) \ + ( (This)->lpVtbl -> GetSelectedItems(This,ppSelectedItemPaths) ) + +#define ICameraUIControl_RemoveCapturedItem(This,pszPath) \ + ( (This)->lpVtbl -> RemoveCapturedItem(This,pszPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICameraUIControl_INTERFACE_DEFINED__ */ + + + +#ifndef __CameraUIControlTypesLib_LIBRARY_DEFINED__ +#define __CameraUIControlTypesLib_LIBRARY_DEFINED__ + +/* library CameraUIControlTypesLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_CameraUIControlTypesLib; + +EXTERN_C const CLSID CLSID_CameraUIControl; + +#ifdef __cplusplus + +class DECLSPEC_UUID("16D5A2BE-B1C5-47b3-8EAE-CCBCF452C7E8") +CameraUIControl; +#endif +#endif /* __CameraUIControlTypesLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_camerauicontrol_0000_0003 */ +/* [local] */ + +#endif //(NTDDI_VERSION >= NTDDI_WIN8) + + +extern RPC_IF_HANDLE __MIDL_itf_camerauicontrol_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_camerauicontrol_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CameraUIControl.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CameraUIControl.idl new file mode 100644 index 0000000000000000000000000000000000000000..67e79b8e9e9c84d3b1f7f6f76a891ed4a360de5d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CameraUIControl.idl @@ -0,0 +1,127 @@ +/* + * CameraUiControl.idl + * + * IDL definition for publc CameraUiContro API + * + * Copyright (c) Microsoft Corporation. All rights reserved + */ + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") + +#include + +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)") + +typedef [v1_enum] enum CameraUIControlMode +{ + Browse = 0, + Linear, +} CameraUIControlMode; + +typedef [v1_enum] enum CameraUIControlLinearSelectionMode +{ + Single = 0, + Multiple, +} CameraUIControlLinearSelectionMode; + +typedef [v1_enum] enum CameraUIControlCaptureMode +{ + PhotoOrVideo = 0, + Photo, + Video, +} CameraUIControlCaptureMode; + +typedef [v1_enum] enum CameraUIControlPhotoFormat +{ + Jpeg = 0, + Png, + JpegXR, +} CameraUIControlPhotoFormat; + +typedef [v1_enum] enum CameraUIControlVideoFormat +{ + Mp4 = 0, + Wmv, +} CameraUIControlVideoFormat; + +typedef [v1_enum] enum CameraUIControlViewType +{ + SingleItem = 0, + ItemList, +} CameraUIControlViewType; + +[ + object, + uuid(1BFA0C2C-FBCD-4776-BDA4-88BF974E74F4), + local +] +interface ICameraUIControlEventCallback : IUnknown +{ + void OnStartupComplete(); + + void OnSuspendComplete(); + + void OnItemCaptured([in, annotation("_In_")] LPCWSTR pszPath); + void OnItemDeleted([in, annotation("_In_")] LPCWSTR pszPath); + + void OnClosed(); +} + +[ + object, + uuid(B8733ADF-3D68-4b8f-BB08-E28A0BED0376), + local +] +interface ICameraUIControl : IUnknown +{ + HRESULT Show( + [in, annotation("_In_")] IUnknown *pWindow, + [in, annotation("_In_")] CameraUIControlMode mode, + [in, annotation("_In_")] CameraUIControlLinearSelectionMode selectionMode, + [in, annotation("_In_")] CameraUIControlCaptureMode captureMode, + [in, annotation("_In_")] CameraUIControlPhotoFormat photoFormat, + [in, annotation("_In_")] CameraUIControlVideoFormat videoFormat, + [in, annotation("_In_")] BOOL bHasCloseButton, + [in, annotation("_In_opt_")] ICameraUIControlEventCallback *pEventCallback); + HRESULT Close(); + + HRESULT Suspend([out, annotation("_Out_")] BOOL *pbDeferralRequired); + HRESULT Resume(); + + HRESULT GetCurrentViewType([out, annotation("_Out_")] CameraUIControlViewType *pViewType); + + HRESULT GetActiveItem([out, annotation("_Outptr_opt_")] BSTR *pbstrActiveItemPath); + HRESULT GetSelectedItems([out, annotation("_Outptr_")] SAFEARRAY **ppSelectedItemPaths); + + HRESULT RemoveCapturedItem([in, annotation("_In_")] LPCWSTR pszPath); +} + +[ + uuid(02C5981B-12BB-427d-8BB4-162C9DECC2AD), + version(1.0), + helpstring("CameraUIControl 1.0 Type Library") +] +library CameraUIControlTypesLib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + uuid(16D5A2BE-B1C5-47b3-8EAE-CCBCF452C7E8), + helpstring("CameraUIControl Class") + ] + coclass CameraUIControl + { + [default] interface ICameraUIControl; + }; +} + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WIN8)") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CastingInterop.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CastingInterop.h new file mode 100644 index 0000000000000000000000000000000000000000..a6f916928309c3047c743c749ed35b21d42885cd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CastingInterop.h @@ -0,0 +1,454 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __castinginterop_h__ +#define __castinginterop_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICastingEventHandler_FWD_DEFINED__ +#define __ICastingEventHandler_FWD_DEFINED__ +typedef interface ICastingEventHandler ICastingEventHandler; + +#endif /* __ICastingEventHandler_FWD_DEFINED__ */ + + +#ifndef __ICastingController_FWD_DEFINED__ +#define __ICastingController_FWD_DEFINED__ +typedef interface ICastingController ICastingController; + +#endif /* __ICastingController_FWD_DEFINED__ */ + + +#ifndef __ICastingSourceInfo_FWD_DEFINED__ +#define __ICastingSourceInfo_FWD_DEFINED__ +typedef interface ICastingSourceInfo ICastingSourceInfo; + +#endif /* __ICastingSourceInfo_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "objidl.h" +#include "propsys.h" +#include "EventToken.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_castinginterop_0000_0000 */ +/* [local] */ + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +extern const __declspec(selectany) WCHAR CastingSourceInfo_Property_PreferredSourceUriScheme[] = L"PreferredSourceUriScheme"; +extern const __declspec(selectany) WCHAR CastingSourceInfo_Property_CastingTypes[] = L"CastingTypes"; +extern const __declspec(selectany) WCHAR CastingSourceInfo_Property_ProtectedMedia[] = L"ProtectedMedia"; +typedef +enum CASTING_CONNECTION_ERROR_STATUS + { + CASTING_CONNECTION_ERROR_STATUS_SUCCEEDED = 0, + CASTING_CONNECTION_ERROR_STATUS_DEVICE_DID_NOT_RESPOND = 1, + CASTING_CONNECTION_ERROR_STATUS_DEVICE_ERROR = 2, + CASTING_CONNECTION_ERROR_STATUS_DEVICE_LOCKED = 3, + CASTING_CONNECTION_ERROR_STATUS_PROTECTED_PLAYBACK_FAILED = 4, + CASTING_CONNECTION_ERROR_STATUS_INVALID_CASTING_SOURCE = 5, + CASTING_CONNECTION_ERROR_STATUS_UNKNOWN = 6 + } CASTING_CONNECTION_ERROR_STATUS; + +typedef +enum CASTING_CONNECTION_STATE + { + CASTING_CONNECTION_STATE_DISCONNECTED = 0, + CASTING_CONNECTION_STATE_CONNECTED = 1, + CASTING_CONNECTION_STATE_RENDERING = 2, + CASTING_CONNECTION_STATE_DISCONNECTING = 3, + CASTING_CONNECTION_STATE_CONNECTING = 4 + } CASTING_CONNECTION_STATE; + + + +extern RPC_IF_HANDLE __MIDL_itf_castinginterop_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_castinginterop_0000_0000_v0_0_s_ifspec; + +#ifndef __ICastingEventHandler_INTERFACE_DEFINED__ +#define __ICastingEventHandler_INTERFACE_DEFINED__ + +/* interface ICastingEventHandler */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_ICastingEventHandler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C79A6CB7-BEBD-47a6-A2AD-4D45AD79C7BC") + ICastingEventHandler : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnStateChanged( + /* [in] */ CASTING_CONNECTION_STATE newState) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnError( + /* [in] */ CASTING_CONNECTION_ERROR_STATUS errorStatus, + /* [in] */ __RPC__in LPCWSTR errorMessage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICastingEventHandlerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICastingEventHandler * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICastingEventHandler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICastingEventHandler * This); + + DECLSPEC_XFGVIRT(ICastingEventHandler, OnStateChanged) + HRESULT ( STDMETHODCALLTYPE *OnStateChanged )( + __RPC__in ICastingEventHandler * This, + /* [in] */ CASTING_CONNECTION_STATE newState); + + DECLSPEC_XFGVIRT(ICastingEventHandler, OnError) + HRESULT ( STDMETHODCALLTYPE *OnError )( + __RPC__in ICastingEventHandler * This, + /* [in] */ CASTING_CONNECTION_ERROR_STATUS errorStatus, + /* [in] */ __RPC__in LPCWSTR errorMessage); + + END_INTERFACE + } ICastingEventHandlerVtbl; + + interface ICastingEventHandler + { + CONST_VTBL struct ICastingEventHandlerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICastingEventHandler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICastingEventHandler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICastingEventHandler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICastingEventHandler_OnStateChanged(This,newState) \ + ( (This)->lpVtbl -> OnStateChanged(This,newState) ) + +#define ICastingEventHandler_OnError(This,errorStatus,errorMessage) \ + ( (This)->lpVtbl -> OnError(This,errorStatus,errorMessage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICastingEventHandler_INTERFACE_DEFINED__ */ + + +#ifndef __ICastingController_INTERFACE_DEFINED__ +#define __ICastingController_INTERFACE_DEFINED__ + +/* interface ICastingController */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_ICastingController; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F0A56423-A664-4fbd-8B43-409A45E8D9A1") + ICastingController : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IUnknown *castingEngine, + /* [in] */ __RPC__in_opt IUnknown *castingSource) = 0; + + virtual HRESULT STDMETHODCALLTYPE Connect( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Disconnect( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Advise( + /* [in] */ __RPC__in_opt ICastingEventHandler *eventHandler, + /* [out] */ __RPC__out DWORD *cookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnAdvise( + /* [in] */ DWORD cookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICastingControllerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICastingController * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICastingController * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICastingController * This); + + DECLSPEC_XFGVIRT(ICastingController, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICastingController * This, + /* [in] */ __RPC__in_opt IUnknown *castingEngine, + /* [in] */ __RPC__in_opt IUnknown *castingSource); + + DECLSPEC_XFGVIRT(ICastingController, Connect) + HRESULT ( STDMETHODCALLTYPE *Connect )( + __RPC__in ICastingController * This); + + DECLSPEC_XFGVIRT(ICastingController, Disconnect) + HRESULT ( STDMETHODCALLTYPE *Disconnect )( + __RPC__in ICastingController * This); + + DECLSPEC_XFGVIRT(ICastingController, Advise) + HRESULT ( STDMETHODCALLTYPE *Advise )( + __RPC__in ICastingController * This, + /* [in] */ __RPC__in_opt ICastingEventHandler *eventHandler, + /* [out] */ __RPC__out DWORD *cookie); + + DECLSPEC_XFGVIRT(ICastingController, UnAdvise) + HRESULT ( STDMETHODCALLTYPE *UnAdvise )( + __RPC__in ICastingController * This, + /* [in] */ DWORD cookie); + + END_INTERFACE + } ICastingControllerVtbl; + + interface ICastingController + { + CONST_VTBL struct ICastingControllerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICastingController_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICastingController_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICastingController_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICastingController_Initialize(This,castingEngine,castingSource) \ + ( (This)->lpVtbl -> Initialize(This,castingEngine,castingSource) ) + +#define ICastingController_Connect(This) \ + ( (This)->lpVtbl -> Connect(This) ) + +#define ICastingController_Disconnect(This) \ + ( (This)->lpVtbl -> Disconnect(This) ) + +#define ICastingController_Advise(This,eventHandler,cookie) \ + ( (This)->lpVtbl -> Advise(This,eventHandler,cookie) ) + +#define ICastingController_UnAdvise(This,cookie) \ + ( (This)->lpVtbl -> UnAdvise(This,cookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICastingController_INTERFACE_DEFINED__ */ + + +#ifndef __ICastingSourceInfo_INTERFACE_DEFINED__ +#define __ICastingSourceInfo_INTERFACE_DEFINED__ + +/* interface ICastingSourceInfo */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_ICastingSourceInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("45101AB7-7C3A-4bce-9500-12C09024B298") + ICastingSourceInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetController( + /* [out] */ __RPC__deref_out_opt ICastingController **controller) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperties( + /* [out] */ __RPC__deref_out_opt INamedPropertyStore **props) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICastingSourceInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICastingSourceInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICastingSourceInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICastingSourceInfo * This); + + DECLSPEC_XFGVIRT(ICastingSourceInfo, GetController) + HRESULT ( STDMETHODCALLTYPE *GetController )( + __RPC__in ICastingSourceInfo * This, + /* [out] */ __RPC__deref_out_opt ICastingController **controller); + + DECLSPEC_XFGVIRT(ICastingSourceInfo, GetProperties) + HRESULT ( STDMETHODCALLTYPE *GetProperties )( + __RPC__in ICastingSourceInfo * This, + /* [out] */ __RPC__deref_out_opt INamedPropertyStore **props); + + END_INTERFACE + } ICastingSourceInfoVtbl; + + interface ICastingSourceInfo + { + CONST_VTBL struct ICastingSourceInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICastingSourceInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICastingSourceInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICastingSourceInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICastingSourceInfo_GetController(This,controller) \ + ( (This)->lpVtbl -> GetController(This,controller) ) + +#define ICastingSourceInfo_GetProperties(This,props) \ + ( (This)->lpVtbl -> GetProperties(This,props) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICastingSourceInfo_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_castinginterop_0000_0003 */ +/* [local] */ + +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + + +extern RPC_IF_HANDLE __MIDL_itf_castinginterop_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_castinginterop_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CastingInterop.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CastingInterop.idl new file mode 100644 index 0000000000000000000000000000000000000000..821783b37eca8d1c382c27602a039044df68ff47 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CastingInterop.idl @@ -0,0 +1,79 @@ +// CastingInterop.idl +// +// IDL defines for COM APIs to support interop with Windows.Media.Casting +// +// Copyright (c) Microsoft Corporation. All rights reserved + +import "objidl.idl"; +import "propsys.idl"; +import "EventToken.idl"; + +// TODO_NTDDI_WIN10_TH2 +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD)") + +// Properties to be used with the ICastingSourceInfo::GetProperties propertyset +// The value of the CastingSourceInfo_Property_PreferredSourceUriScheme property must be of type VT_LPWSTR +cpp_quote("extern const __declspec(selectany) WCHAR CastingSourceInfo_Property_PreferredSourceUriScheme[] = L\"PreferredSourceUriScheme\";") +// The value of the CastingSourceInfo_Property_CastingTypes property must be of type VT_UI4 and correspond to one +// or more of the values in the CastingPlaybackTypes enumeration bitwise OR'd together +cpp_quote("extern const __declspec(selectany) WCHAR CastingSourceInfo_Property_CastingTypes[] = L\"CastingTypes\";") +// The value of the CastingSourceInfo_Property_ProtectedMedia property must be of type VT_BOOL +cpp_quote("extern const __declspec(selectany) WCHAR CastingSourceInfo_Property_ProtectedMedia[] = L\"ProtectedMedia\";") + +typedef enum CASTING_CONNECTION_ERROR_STATUS +{ + CASTING_CONNECTION_ERROR_STATUS_SUCCEEDED = 0, + CASTING_CONNECTION_ERROR_STATUS_DEVICE_DID_NOT_RESPOND = 1, + CASTING_CONNECTION_ERROR_STATUS_DEVICE_ERROR = 2, + CASTING_CONNECTION_ERROR_STATUS_DEVICE_LOCKED = 3, + CASTING_CONNECTION_ERROR_STATUS_PROTECTED_PLAYBACK_FAILED = 4, + CASTING_CONNECTION_ERROR_STATUS_INVALID_CASTING_SOURCE = 5, + CASTING_CONNECTION_ERROR_STATUS_UNKNOWN = 6, +} CASTING_CONNECTION_ERROR_STATUS; + +typedef enum CASTING_CONNECTION_STATE +{ + CASTING_CONNECTION_STATE_DISCONNECTED = 0, + CASTING_CONNECTION_STATE_CONNECTED = 1, + CASTING_CONNECTION_STATE_RENDERING = 2, + CASTING_CONNECTION_STATE_DISCONNECTING = 3, + CASTING_CONNECTION_STATE_CONNECTING = 4, +} CASTING_CONNECTION_STATE; + +// This interface is implemented by the Casting API. The object implementing the ICastingController interface +// (below) must notify the Casting API of casting state change and error events though this interface. +[uuid(C79A6CB7-BEBD-47a6-A2AD-4D45AD79C7BC)] +interface ICastingEventHandler : IUnknown +{ + HRESULT OnStateChanged([in] CASTING_CONNECTION_STATE newState); + HRESULT OnError([in] CASTING_CONNECTION_ERROR_STATUS errorStatus, [in] LPCWSTR errorMessage); +} + +// This interface is used by the Casting API to connect and disconnect a CastingSource with a CastingDevice. The +// Casting API retrieves a copy of the object implementing this interface though the ICastingSource::GetController +// method. The object implementing this interface is responsible for connecting/disconnecting to the CastingDevice +// using the provided casting engine object, which implements a protocol specific interface (ex: IMediaRenderer). +// It is also responsible for sending state change and error events to the ICastingEventHandler callback. +[uuid(F0A56423-A664-4fbd-8B43-409A45E8D9A1)] +interface ICastingController : IUnknown +{ + HRESULT Initialize([in] IUnknown *castingEngine, [in] IUnknown *castingSource); + HRESULT Connect(); + HRESULT Disconnect(); + + // Callers should follow the same Advise/UnAdvise model that exists for COM's IConnectionPoint interface + HRESULT Advise([in] ICastingEventHandler *eventHandler, [out] DWORD *cookie); + HRESULT UnAdvise([in] DWORD cookie); +} + +// This interface must be implemented by all CastingSource objects. It is responsible for providing the Casting API +// with an ICastingController implementation, as well as properties about the CastingSource. The exact properties it +// should provide are listed above (CastingSourceInfo_Property_*). +[uuid(45101AB7-7C3A-4bce-9500-12C09024B298)] +interface ICastingSourceInfo : IUnknown +{ + HRESULT GetController([out] ICastingController **controller); + HRESULT GetProperties([out] INamedPropertyStore **props); +} + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD)") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertAdm.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertAdm.h new file mode 100644 index 0000000000000000000000000000000000000000..b7d55db8586c7f29469f62e9eb58b199a594f965 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertAdm.h @@ -0,0 +1,2310 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __certadm_h__ +#define __certadm_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICertAdmin_FWD_DEFINED__ +#define __ICertAdmin_FWD_DEFINED__ +typedef interface ICertAdmin ICertAdmin; + +#endif /* __ICertAdmin_FWD_DEFINED__ */ + + +#ifndef __ICertAdmin2_FWD_DEFINED__ +#define __ICertAdmin2_FWD_DEFINED__ +typedef interface ICertAdmin2 ICertAdmin2; + +#endif /* __ICertAdmin2_FWD_DEFINED__ */ + + +#ifndef __IOCSPProperty_FWD_DEFINED__ +#define __IOCSPProperty_FWD_DEFINED__ +typedef interface IOCSPProperty IOCSPProperty; + +#endif /* __IOCSPProperty_FWD_DEFINED__ */ + + +#ifndef __IOCSPPropertyCollection_FWD_DEFINED__ +#define __IOCSPPropertyCollection_FWD_DEFINED__ +typedef interface IOCSPPropertyCollection IOCSPPropertyCollection; + +#endif /* __IOCSPPropertyCollection_FWD_DEFINED__ */ + + +#ifndef __IOCSPCAConfiguration_FWD_DEFINED__ +#define __IOCSPCAConfiguration_FWD_DEFINED__ +typedef interface IOCSPCAConfiguration IOCSPCAConfiguration; + +#endif /* __IOCSPCAConfiguration_FWD_DEFINED__ */ + + +#ifndef __IOCSPCAConfigurationCollection_FWD_DEFINED__ +#define __IOCSPCAConfigurationCollection_FWD_DEFINED__ +typedef interface IOCSPCAConfigurationCollection IOCSPCAConfigurationCollection; + +#endif /* __IOCSPCAConfigurationCollection_FWD_DEFINED__ */ + + +#ifndef __IOCSPAdmin_FWD_DEFINED__ +#define __IOCSPAdmin_FWD_DEFINED__ +typedef interface IOCSPAdmin IOCSPAdmin; + +#endif /* __IOCSPAdmin_FWD_DEFINED__ */ + + +#ifndef __CCertAdmin_FWD_DEFINED__ +#define __CCertAdmin_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertAdmin CCertAdmin; +#else +typedef struct CCertAdmin CCertAdmin; +#endif /* __cplusplus */ + +#endif /* __CCertAdmin_FWD_DEFINED__ */ + + +#ifndef __CCertView_FWD_DEFINED__ +#define __CCertView_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertView CCertView; +#else +typedef struct CCertView CCertView; +#endif /* __cplusplus */ + +#endif /* __CCertView_FWD_DEFINED__ */ + + +#ifndef __OCSPPropertyCollection_FWD_DEFINED__ +#define __OCSPPropertyCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class OCSPPropertyCollection OCSPPropertyCollection; +#else +typedef struct OCSPPropertyCollection OCSPPropertyCollection; +#endif /* __cplusplus */ + +#endif /* __OCSPPropertyCollection_FWD_DEFINED__ */ + + +#ifndef __OCSPAdmin_FWD_DEFINED__ +#define __OCSPAdmin_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class OCSPAdmin OCSPAdmin; +#else +typedef struct OCSPAdmin OCSPAdmin; +#endif /* __cplusplus */ + +#endif /* __OCSPAdmin_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "certview.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certadm_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define CA_DISP_INCOMPLETE ( 0 ) + +#define CA_DISP_ERROR ( 0x1 ) + +#define CA_DISP_REVOKED ( 0x2 ) + +#define CA_DISP_VALID ( 0x3 ) + +#define CA_DISP_INVALID ( 0x4 ) + +#define CA_DISP_UNDER_SUBMISSION ( 0x5 ) + +#define KRA_DISP_EXPIRED ( 0 ) + +#define KRA_DISP_NOTFOUND ( 0x1 ) + +#define KRA_DISP_REVOKED ( 0x2 ) + +#define KRA_DISP_VALID ( 0x3 ) + +#define KRA_DISP_INVALID ( 0x4 ) + +#define KRA_DISP_UNTRUSTED ( 0x5 ) + +#define KRA_DISP_NOTLOADED ( 0x6 ) + +#define CA_ACCESS_ADMIN ( 0x1 ) + +#define CA_ACCESS_OFFICER ( 0x2 ) + +#define CA_ACCESS_AUDITOR ( 0x4 ) + +#define CA_ACCESS_OPERATOR ( 0x8 ) + +#define CA_ACCESS_MASKROLES ( 0xff ) + +#define CA_ACCESS_READ ( 0x100 ) + +#define CA_ACCESS_ENROLL ( 0x200 ) + + + +extern RPC_IF_HANDLE __MIDL_itf_certadm_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certadm_0000_0000_v0_0_s_ifspec; + +#ifndef __ICertAdmin_INTERFACE_DEFINED__ +#define __ICertAdmin_INTERFACE_DEFINED__ + +/* interface ICertAdmin */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertAdmin; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("34df6950-7fb6-11d0-8817-00a0c903b83c") + ICertAdmin : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE IsValidCertificate( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strSerialNumber, + /* [retval][out] */ __RPC__out LONG *pDisposition) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRevocationReason( + /* [retval][out] */ __RPC__out LONG *pReason) = 0; + + virtual HRESULT STDMETHODCALLTYPE RevokeCertificate( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strSerialNumber, + /* [in] */ LONG Reason, + /* [in] */ DATE Date) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetRequestAttributes( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strAttributes) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCertificateExtension( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strExtensionName, + /* [in] */ LONG Type, + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const VARIANT *pvarValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE DenyRequest( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId) = 0; + + virtual HRESULT STDMETHODCALLTYPE ResubmitRequest( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [retval][out] */ __RPC__out LONG *pDisposition) = 0; + + virtual HRESULT STDMETHODCALLTYPE PublishCRL( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ DATE Date) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCRL( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCRL) = 0; + + virtual HRESULT STDMETHODCALLTYPE ImportCertificate( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strCertificate, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out LONG *pRequestId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertAdminVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertAdmin * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertAdmin * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertAdmin * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertAdmin * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertAdmin * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertAdmin, IsValidCertificate) + HRESULT ( STDMETHODCALLTYPE *IsValidCertificate )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strSerialNumber, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertAdmin, GetRevocationReason) + HRESULT ( STDMETHODCALLTYPE *GetRevocationReason )( + __RPC__in ICertAdmin * This, + /* [retval][out] */ __RPC__out LONG *pReason); + + DECLSPEC_XFGVIRT(ICertAdmin, RevokeCertificate) + HRESULT ( STDMETHODCALLTYPE *RevokeCertificate )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strSerialNumber, + /* [in] */ LONG Reason, + /* [in] */ DATE Date); + + DECLSPEC_XFGVIRT(ICertAdmin, SetRequestAttributes) + HRESULT ( STDMETHODCALLTYPE *SetRequestAttributes )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strAttributes); + + DECLSPEC_XFGVIRT(ICertAdmin, SetCertificateExtension) + HRESULT ( STDMETHODCALLTYPE *SetCertificateExtension )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strExtensionName, + /* [in] */ LONG Type, + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const VARIANT *pvarValue); + + DECLSPEC_XFGVIRT(ICertAdmin, DenyRequest) + HRESULT ( STDMETHODCALLTYPE *DenyRequest )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId); + + DECLSPEC_XFGVIRT(ICertAdmin, ResubmitRequest) + HRESULT ( STDMETHODCALLTYPE *ResubmitRequest )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertAdmin, PublishCRL) + HRESULT ( STDMETHODCALLTYPE *PublishCRL )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ DATE Date); + + DECLSPEC_XFGVIRT(ICertAdmin, GetCRL) + HRESULT ( STDMETHODCALLTYPE *GetCRL )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCRL); + + DECLSPEC_XFGVIRT(ICertAdmin, ImportCertificate) + HRESULT ( STDMETHODCALLTYPE *ImportCertificate )( + __RPC__in ICertAdmin * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strCertificate, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out LONG *pRequestId); + + END_INTERFACE + } ICertAdminVtbl; + + interface ICertAdmin + { + CONST_VTBL struct ICertAdminVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertAdmin_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertAdmin_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertAdmin_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertAdmin_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertAdmin_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertAdmin_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertAdmin_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertAdmin_IsValidCertificate(This,strConfig,strSerialNumber,pDisposition) \ + ( (This)->lpVtbl -> IsValidCertificate(This,strConfig,strSerialNumber,pDisposition) ) + +#define ICertAdmin_GetRevocationReason(This,pReason) \ + ( (This)->lpVtbl -> GetRevocationReason(This,pReason) ) + +#define ICertAdmin_RevokeCertificate(This,strConfig,strSerialNumber,Reason,Date) \ + ( (This)->lpVtbl -> RevokeCertificate(This,strConfig,strSerialNumber,Reason,Date) ) + +#define ICertAdmin_SetRequestAttributes(This,strConfig,RequestId,strAttributes) \ + ( (This)->lpVtbl -> SetRequestAttributes(This,strConfig,RequestId,strAttributes) ) + +#define ICertAdmin_SetCertificateExtension(This,strConfig,RequestId,strExtensionName,Type,Flags,pvarValue) \ + ( (This)->lpVtbl -> SetCertificateExtension(This,strConfig,RequestId,strExtensionName,Type,Flags,pvarValue) ) + +#define ICertAdmin_DenyRequest(This,strConfig,RequestId) \ + ( (This)->lpVtbl -> DenyRequest(This,strConfig,RequestId) ) + +#define ICertAdmin_ResubmitRequest(This,strConfig,RequestId,pDisposition) \ + ( (This)->lpVtbl -> ResubmitRequest(This,strConfig,RequestId,pDisposition) ) + +#define ICertAdmin_PublishCRL(This,strConfig,Date) \ + ( (This)->lpVtbl -> PublishCRL(This,strConfig,Date) ) + +#define ICertAdmin_GetCRL(This,strConfig,Flags,pstrCRL) \ + ( (This)->lpVtbl -> GetCRL(This,strConfig,Flags,pstrCRL) ) + +#define ICertAdmin_ImportCertificate(This,strConfig,strCertificate,Flags,pRequestId) \ + ( (This)->lpVtbl -> ImportCertificate(This,strConfig,strCertificate,Flags,pRequestId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertAdmin_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certadm_0000_0001 */ +/* [local] */ + +#define CA_CRL_BASE ( 0x1 ) + +#define CA_CRL_DELTA ( 0x2 ) + +#define CA_CRL_REPUBLISH ( 0x10 ) + +#define ICF_ALLOWFOREIGN ( 0x10000 ) + +#define ICF_EXISTINGROW ( 0x20000 ) + +#define IKF_OVERWRITE ( 0x10000 ) + +#define CDR_EXPIRED ( 1 ) + +#define CDR_REQUEST_LAST_CHANGED ( 2 ) + + + +extern RPC_IF_HANDLE __MIDL_itf_certadm_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certadm_0000_0001_v0_0_s_ifspec; + +#ifndef __ICertAdmin2_INTERFACE_DEFINED__ +#define __ICertAdmin2_INTERFACE_DEFINED__ + +/* interface ICertAdmin2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertAdmin2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f7c3ac41-b8ce-4fb4-aa58-3d1dc0e36b39") + ICertAdmin2 : public ICertAdmin + { + public: + virtual HRESULT STDMETHODCALLTYPE PublishCRLs( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ DATE Date, + /* [in] */ LONG CRLFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAProperty( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCAProperty( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [in] */ __RPC__in VARIANT *pvarPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAPropertyFlags( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [retval][out] */ __RPC__out LONG *pPropFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAPropertyDisplayName( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDisplayName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetArchivedKey( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrArchivedKey) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConfigEntry( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strNodePath, + /* [in] */ __RPC__in const BSTR strEntryName, + /* [retval][out] */ __RPC__out VARIANT *pvarEntry) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetConfigEntry( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strNodePath, + /* [in] */ __RPC__in const BSTR strEntryName, + /* [in] */ __RPC__in VARIANT *pvarEntry) = 0; + + virtual HRESULT STDMETHODCALLTYPE ImportKey( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strCertHash, + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const BSTR strKey) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMyRoles( + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pRoles) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRow( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Flags, + /* [in] */ DATE Date, + /* [in] */ LONG Table, + /* [in] */ LONG RowId, + /* [retval][out] */ __RPC__out LONG *pcDeleted) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertAdmin2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertAdmin2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertAdmin2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertAdmin2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertAdmin2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertAdmin2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertAdmin, IsValidCertificate) + HRESULT ( STDMETHODCALLTYPE *IsValidCertificate )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strSerialNumber, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertAdmin, GetRevocationReason) + HRESULT ( STDMETHODCALLTYPE *GetRevocationReason )( + __RPC__in ICertAdmin2 * This, + /* [retval][out] */ __RPC__out LONG *pReason); + + DECLSPEC_XFGVIRT(ICertAdmin, RevokeCertificate) + HRESULT ( STDMETHODCALLTYPE *RevokeCertificate )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strSerialNumber, + /* [in] */ LONG Reason, + /* [in] */ DATE Date); + + DECLSPEC_XFGVIRT(ICertAdmin, SetRequestAttributes) + HRESULT ( STDMETHODCALLTYPE *SetRequestAttributes )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strAttributes); + + DECLSPEC_XFGVIRT(ICertAdmin, SetCertificateExtension) + HRESULT ( STDMETHODCALLTYPE *SetCertificateExtension )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strExtensionName, + /* [in] */ LONG Type, + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const VARIANT *pvarValue); + + DECLSPEC_XFGVIRT(ICertAdmin, DenyRequest) + HRESULT ( STDMETHODCALLTYPE *DenyRequest )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId); + + DECLSPEC_XFGVIRT(ICertAdmin, ResubmitRequest) + HRESULT ( STDMETHODCALLTYPE *ResubmitRequest )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertAdmin, PublishCRL) + HRESULT ( STDMETHODCALLTYPE *PublishCRL )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ DATE Date); + + DECLSPEC_XFGVIRT(ICertAdmin, GetCRL) + HRESULT ( STDMETHODCALLTYPE *GetCRL )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCRL); + + DECLSPEC_XFGVIRT(ICertAdmin, ImportCertificate) + HRESULT ( STDMETHODCALLTYPE *ImportCertificate )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strCertificate, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out LONG *pRequestId); + + DECLSPEC_XFGVIRT(ICertAdmin2, PublishCRLs) + HRESULT ( STDMETHODCALLTYPE *PublishCRLs )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ DATE Date, + /* [in] */ LONG CRLFlags); + + DECLSPEC_XFGVIRT(ICertAdmin2, GetCAProperty) + HRESULT ( STDMETHODCALLTYPE *GetCAProperty )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue); + + DECLSPEC_XFGVIRT(ICertAdmin2, SetCAProperty) + HRESULT ( STDMETHODCALLTYPE *SetCAProperty )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [in] */ __RPC__in VARIANT *pvarPropertyValue); + + DECLSPEC_XFGVIRT(ICertAdmin2, GetCAPropertyFlags) + HRESULT ( STDMETHODCALLTYPE *GetCAPropertyFlags )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [retval][out] */ __RPC__out LONG *pPropFlags); + + DECLSPEC_XFGVIRT(ICertAdmin2, GetCAPropertyDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetCAPropertyDisplayName )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDisplayName); + + DECLSPEC_XFGVIRT(ICertAdmin2, GetArchivedKey) + HRESULT ( STDMETHODCALLTYPE *GetArchivedKey )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrArchivedKey); + + DECLSPEC_XFGVIRT(ICertAdmin2, GetConfigEntry) + HRESULT ( STDMETHODCALLTYPE *GetConfigEntry )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strNodePath, + /* [in] */ __RPC__in const BSTR strEntryName, + /* [retval][out] */ __RPC__out VARIANT *pvarEntry); + + DECLSPEC_XFGVIRT(ICertAdmin2, SetConfigEntry) + HRESULT ( STDMETHODCALLTYPE *SetConfigEntry )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in const BSTR strNodePath, + /* [in] */ __RPC__in const BSTR strEntryName, + /* [in] */ __RPC__in VARIANT *pvarEntry); + + DECLSPEC_XFGVIRT(ICertAdmin2, ImportKey) + HRESULT ( STDMETHODCALLTYPE *ImportKey )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strCertHash, + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const BSTR strKey); + + DECLSPEC_XFGVIRT(ICertAdmin2, GetMyRoles) + HRESULT ( STDMETHODCALLTYPE *GetMyRoles )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pRoles); + + DECLSPEC_XFGVIRT(ICertAdmin2, DeleteRow) + HRESULT ( STDMETHODCALLTYPE *DeleteRow )( + __RPC__in ICertAdmin2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Flags, + /* [in] */ DATE Date, + /* [in] */ LONG Table, + /* [in] */ LONG RowId, + /* [retval][out] */ __RPC__out LONG *pcDeleted); + + END_INTERFACE + } ICertAdmin2Vtbl; + + interface ICertAdmin2 + { + CONST_VTBL struct ICertAdmin2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertAdmin2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertAdmin2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertAdmin2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertAdmin2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertAdmin2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertAdmin2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertAdmin2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertAdmin2_IsValidCertificate(This,strConfig,strSerialNumber,pDisposition) \ + ( (This)->lpVtbl -> IsValidCertificate(This,strConfig,strSerialNumber,pDisposition) ) + +#define ICertAdmin2_GetRevocationReason(This,pReason) \ + ( (This)->lpVtbl -> GetRevocationReason(This,pReason) ) + +#define ICertAdmin2_RevokeCertificate(This,strConfig,strSerialNumber,Reason,Date) \ + ( (This)->lpVtbl -> RevokeCertificate(This,strConfig,strSerialNumber,Reason,Date) ) + +#define ICertAdmin2_SetRequestAttributes(This,strConfig,RequestId,strAttributes) \ + ( (This)->lpVtbl -> SetRequestAttributes(This,strConfig,RequestId,strAttributes) ) + +#define ICertAdmin2_SetCertificateExtension(This,strConfig,RequestId,strExtensionName,Type,Flags,pvarValue) \ + ( (This)->lpVtbl -> SetCertificateExtension(This,strConfig,RequestId,strExtensionName,Type,Flags,pvarValue) ) + +#define ICertAdmin2_DenyRequest(This,strConfig,RequestId) \ + ( (This)->lpVtbl -> DenyRequest(This,strConfig,RequestId) ) + +#define ICertAdmin2_ResubmitRequest(This,strConfig,RequestId,pDisposition) \ + ( (This)->lpVtbl -> ResubmitRequest(This,strConfig,RequestId,pDisposition) ) + +#define ICertAdmin2_PublishCRL(This,strConfig,Date) \ + ( (This)->lpVtbl -> PublishCRL(This,strConfig,Date) ) + +#define ICertAdmin2_GetCRL(This,strConfig,Flags,pstrCRL) \ + ( (This)->lpVtbl -> GetCRL(This,strConfig,Flags,pstrCRL) ) + +#define ICertAdmin2_ImportCertificate(This,strConfig,strCertificate,Flags,pRequestId) \ + ( (This)->lpVtbl -> ImportCertificate(This,strConfig,strCertificate,Flags,pRequestId) ) + + +#define ICertAdmin2_PublishCRLs(This,strConfig,Date,CRLFlags) \ + ( (This)->lpVtbl -> PublishCRLs(This,strConfig,Date,CRLFlags) ) + +#define ICertAdmin2_GetCAProperty(This,strConfig,PropId,PropIndex,PropType,Flags,pvarPropertyValue) \ + ( (This)->lpVtbl -> GetCAProperty(This,strConfig,PropId,PropIndex,PropType,Flags,pvarPropertyValue) ) + +#define ICertAdmin2_SetCAProperty(This,strConfig,PropId,PropIndex,PropType,pvarPropertyValue) \ + ( (This)->lpVtbl -> SetCAProperty(This,strConfig,PropId,PropIndex,PropType,pvarPropertyValue) ) + +#define ICertAdmin2_GetCAPropertyFlags(This,strConfig,PropId,pPropFlags) \ + ( (This)->lpVtbl -> GetCAPropertyFlags(This,strConfig,PropId,pPropFlags) ) + +#define ICertAdmin2_GetCAPropertyDisplayName(This,strConfig,PropId,pstrDisplayName) \ + ( (This)->lpVtbl -> GetCAPropertyDisplayName(This,strConfig,PropId,pstrDisplayName) ) + +#define ICertAdmin2_GetArchivedKey(This,strConfig,RequestId,Flags,pstrArchivedKey) \ + ( (This)->lpVtbl -> GetArchivedKey(This,strConfig,RequestId,Flags,pstrArchivedKey) ) + +#define ICertAdmin2_GetConfigEntry(This,strConfig,strNodePath,strEntryName,pvarEntry) \ + ( (This)->lpVtbl -> GetConfigEntry(This,strConfig,strNodePath,strEntryName,pvarEntry) ) + +#define ICertAdmin2_SetConfigEntry(This,strConfig,strNodePath,strEntryName,pvarEntry) \ + ( (This)->lpVtbl -> SetConfigEntry(This,strConfig,strNodePath,strEntryName,pvarEntry) ) + +#define ICertAdmin2_ImportKey(This,strConfig,RequestId,strCertHash,Flags,strKey) \ + ( (This)->lpVtbl -> ImportKey(This,strConfig,RequestId,strCertHash,Flags,strKey) ) + +#define ICertAdmin2_GetMyRoles(This,strConfig,pRoles) \ + ( (This)->lpVtbl -> GetMyRoles(This,strConfig,pRoles) ) + +#define ICertAdmin2_DeleteRow(This,strConfig,Flags,Date,Table,RowId,pcDeleted) \ + ( (This)->lpVtbl -> DeleteRow(This,strConfig,Flags,Date,Table,RowId,pcDeleted) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertAdmin2_INTERFACE_DEFINED__ */ + + +#ifndef __IOCSPProperty_INTERFACE_DEFINED__ +#define __IOCSPProperty_INTERFACE_DEFINED__ + +/* interface IOCSPProperty */ +/* [unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IOCSPProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("66FB7839-5F04-4C25-AD18-9FF1A8376EE0") + IOCSPProperty : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Modified( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOCSPPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOCSPProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOCSPProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOCSPProperty * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IOCSPProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IOCSPProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IOCSPProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IOCSPProperty * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IOCSPProperty, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IOCSPProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IOCSPProperty, get_Value) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IOCSPProperty * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IOCSPProperty, put_Value) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in IOCSPProperty * This, + /* [in] */ VARIANT newVal); + + DECLSPEC_XFGVIRT(IOCSPProperty, get_Modified) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Modified )( + __RPC__in IOCSPProperty * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + END_INTERFACE + } IOCSPPropertyVtbl; + + interface IOCSPProperty + { + CONST_VTBL struct IOCSPPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOCSPProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOCSPProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOCSPProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOCSPProperty_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IOCSPProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IOCSPProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IOCSPProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IOCSPProperty_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) + +#define IOCSPProperty_get_Value(This,pVal) \ + ( (This)->lpVtbl -> get_Value(This,pVal) ) + +#define IOCSPProperty_put_Value(This,newVal) \ + ( (This)->lpVtbl -> put_Value(This,newVal) ) + +#define IOCSPProperty_get_Modified(This,pVal) \ + ( (This)->lpVtbl -> get_Modified(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOCSPProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IOCSPPropertyCollection_INTERFACE_DEFINED__ +#define __IOCSPPropertyCollection_INTERFACE_DEFINED__ + +/* interface IOCSPPropertyCollection */ +/* [unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IOCSPPropertyCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2597C18D-54E6-4B74-9FA9-A6BFDA99CBBE") + IOCSPPropertyCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByName( + /* [in] */ __RPC__in const BSTR bstrPropName, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateProperty( + /* [in] */ __RPC__in const BSTR bstrPropName, + /* [in] */ __RPC__in const VARIANT *pVarPropValue, + /* [retval][out] */ __RPC__deref_out_opt IOCSPProperty **ppVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteProperty( + /* [in] */ __RPC__in const BSTR bstrPropName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitializeFromProperties( + /* [in] */ __RPC__in const VARIANT *pVarProperties) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetAllProperties( + /* [retval][out] */ __RPC__out VARIANT *pVarProperties) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOCSPPropertyCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOCSPPropertyCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOCSPPropertyCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOCSPPropertyCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IOCSPPropertyCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IOCSPPropertyCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IOCSPPropertyCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IOCSPPropertyCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IOCSPPropertyCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IOCSPPropertyCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppVal); + + DECLSPEC_XFGVIRT(IOCSPPropertyCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IOCSPPropertyCollection * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IOCSPPropertyCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IOCSPPropertyCollection * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IOCSPPropertyCollection, get_ItemByName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByName )( + __RPC__in IOCSPPropertyCollection * This, + /* [in] */ __RPC__in const BSTR bstrPropName, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IOCSPPropertyCollection, CreateProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateProperty )( + __RPC__in IOCSPPropertyCollection * This, + /* [in] */ __RPC__in const BSTR bstrPropName, + /* [in] */ __RPC__in const VARIANT *pVarPropValue, + /* [retval][out] */ __RPC__deref_out_opt IOCSPProperty **ppVal); + + DECLSPEC_XFGVIRT(IOCSPPropertyCollection, DeleteProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteProperty )( + __RPC__in IOCSPPropertyCollection * This, + /* [in] */ __RPC__in const BSTR bstrPropName); + + DECLSPEC_XFGVIRT(IOCSPPropertyCollection, InitializeFromProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromProperties )( + __RPC__in IOCSPPropertyCollection * This, + /* [in] */ __RPC__in const VARIANT *pVarProperties); + + DECLSPEC_XFGVIRT(IOCSPPropertyCollection, GetAllProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetAllProperties )( + __RPC__in IOCSPPropertyCollection * This, + /* [retval][out] */ __RPC__out VARIANT *pVarProperties); + + END_INTERFACE + } IOCSPPropertyCollectionVtbl; + + interface IOCSPPropertyCollection + { + CONST_VTBL struct IOCSPPropertyCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOCSPPropertyCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOCSPPropertyCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOCSPPropertyCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOCSPPropertyCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IOCSPPropertyCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IOCSPPropertyCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IOCSPPropertyCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IOCSPPropertyCollection_get__NewEnum(This,ppVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppVal) ) + +#define IOCSPPropertyCollection_get_Item(This,Index,pVal) \ + ( (This)->lpVtbl -> get_Item(This,Index,pVal) ) + +#define IOCSPPropertyCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IOCSPPropertyCollection_get_ItemByName(This,bstrPropName,pVal) \ + ( (This)->lpVtbl -> get_ItemByName(This,bstrPropName,pVal) ) + +#define IOCSPPropertyCollection_CreateProperty(This,bstrPropName,pVarPropValue,ppVal) \ + ( (This)->lpVtbl -> CreateProperty(This,bstrPropName,pVarPropValue,ppVal) ) + +#define IOCSPPropertyCollection_DeleteProperty(This,bstrPropName) \ + ( (This)->lpVtbl -> DeleteProperty(This,bstrPropName) ) + +#define IOCSPPropertyCollection_InitializeFromProperties(This,pVarProperties) \ + ( (This)->lpVtbl -> InitializeFromProperties(This,pVarProperties) ) + +#define IOCSPPropertyCollection_GetAllProperties(This,pVarProperties) \ + ( (This)->lpVtbl -> GetAllProperties(This,pVarProperties) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOCSPPropertyCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IOCSPCAConfiguration_INTERFACE_DEFINED__ +#define __IOCSPCAConfiguration_INTERFACE_DEFINED__ + +/* interface IOCSPCAConfiguration */ +/* [unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IOCSPCAConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AEC92B40-3D46-433F-87D1-B84D5C1E790D") + IOCSPCAConfiguration : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Identifier( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CACertificate( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HashAlgorithm( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HashAlgorithm( + /* [in] */ __RPC__in const BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SigningFlags( + /* [retval][out] */ __RPC__out ULONG *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SigningFlags( + /* [in] */ ULONG newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SigningCertificate( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SigningCertificate( + /* [in] */ VARIANT newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReminderDuration( + /* [retval][out] */ __RPC__out ULONG *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ReminderDuration( + /* [in] */ ULONG newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ErrorCode( + /* [retval][out] */ __RPC__out ULONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CSPName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_KeySpec( + /* [retval][out] */ __RPC__out ULONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProviderCLSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ProviderCLSID( + /* [in] */ __RPC__in const BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProviderProperties( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ProviderProperties( + /* [in] */ VARIANT newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Modified( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LocalRevocationInformation( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LocalRevocationInformation( + /* [in] */ VARIANT newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SigningCertificateTemplate( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SigningCertificateTemplate( + /* [in] */ __RPC__in const BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CAConfig( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CAConfig( + /* [in] */ __RPC__in const BSTR newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOCSPCAConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOCSPCAConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOCSPCAConfiguration * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IOCSPCAConfiguration * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IOCSPCAConfiguration * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_Identifier) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Identifier )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_CACertificate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CACertificate )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_HashAlgorithm) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, put_HashAlgorithm) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ __RPC__in const BSTR newVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_SigningFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SigningFlags )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, put_SigningFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SigningFlags )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ ULONG newVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_SigningCertificate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SigningCertificate )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, put_SigningCertificate) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SigningCertificate )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ VARIANT newVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_ReminderDuration) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReminderDuration )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, put_ReminderDuration) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReminderDuration )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ ULONG newVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_ErrorCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorCode )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_CSPName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CSPName )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_KeySpec) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeySpec )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_ProviderCLSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProviderCLSID )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, put_ProviderCLSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProviderCLSID )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ __RPC__in const BSTR newVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_ProviderProperties) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProviderProperties )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, put_ProviderProperties) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProviderProperties )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ VARIANT newVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_Modified) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Modified )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_LocalRevocationInformation) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LocalRevocationInformation )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, put_LocalRevocationInformation) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LocalRevocationInformation )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ VARIANT newVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_SigningCertificateTemplate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SigningCertificateTemplate )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, put_SigningCertificateTemplate) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SigningCertificateTemplate )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ __RPC__in const BSTR newVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, get_CAConfig) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAConfig )( + __RPC__in IOCSPCAConfiguration * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfiguration, put_CAConfig) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CAConfig )( + __RPC__in IOCSPCAConfiguration * This, + /* [in] */ __RPC__in const BSTR newVal); + + END_INTERFACE + } IOCSPCAConfigurationVtbl; + + interface IOCSPCAConfiguration + { + CONST_VTBL struct IOCSPCAConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOCSPCAConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOCSPCAConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOCSPCAConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOCSPCAConfiguration_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IOCSPCAConfiguration_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IOCSPCAConfiguration_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IOCSPCAConfiguration_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IOCSPCAConfiguration_get_Identifier(This,pVal) \ + ( (This)->lpVtbl -> get_Identifier(This,pVal) ) + +#define IOCSPCAConfiguration_get_CACertificate(This,pVal) \ + ( (This)->lpVtbl -> get_CACertificate(This,pVal) ) + +#define IOCSPCAConfiguration_get_HashAlgorithm(This,pVal) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,pVal) ) + +#define IOCSPCAConfiguration_put_HashAlgorithm(This,newVal) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,newVal) ) + +#define IOCSPCAConfiguration_get_SigningFlags(This,pVal) \ + ( (This)->lpVtbl -> get_SigningFlags(This,pVal) ) + +#define IOCSPCAConfiguration_put_SigningFlags(This,newVal) \ + ( (This)->lpVtbl -> put_SigningFlags(This,newVal) ) + +#define IOCSPCAConfiguration_get_SigningCertificate(This,pVal) \ + ( (This)->lpVtbl -> get_SigningCertificate(This,pVal) ) + +#define IOCSPCAConfiguration_put_SigningCertificate(This,newVal) \ + ( (This)->lpVtbl -> put_SigningCertificate(This,newVal) ) + +#define IOCSPCAConfiguration_get_ReminderDuration(This,pVal) \ + ( (This)->lpVtbl -> get_ReminderDuration(This,pVal) ) + +#define IOCSPCAConfiguration_put_ReminderDuration(This,newVal) \ + ( (This)->lpVtbl -> put_ReminderDuration(This,newVal) ) + +#define IOCSPCAConfiguration_get_ErrorCode(This,pVal) \ + ( (This)->lpVtbl -> get_ErrorCode(This,pVal) ) + +#define IOCSPCAConfiguration_get_CSPName(This,pVal) \ + ( (This)->lpVtbl -> get_CSPName(This,pVal) ) + +#define IOCSPCAConfiguration_get_KeySpec(This,pVal) \ + ( (This)->lpVtbl -> get_KeySpec(This,pVal) ) + +#define IOCSPCAConfiguration_get_ProviderCLSID(This,pVal) \ + ( (This)->lpVtbl -> get_ProviderCLSID(This,pVal) ) + +#define IOCSPCAConfiguration_put_ProviderCLSID(This,newVal) \ + ( (This)->lpVtbl -> put_ProviderCLSID(This,newVal) ) + +#define IOCSPCAConfiguration_get_ProviderProperties(This,pVal) \ + ( (This)->lpVtbl -> get_ProviderProperties(This,pVal) ) + +#define IOCSPCAConfiguration_put_ProviderProperties(This,newVal) \ + ( (This)->lpVtbl -> put_ProviderProperties(This,newVal) ) + +#define IOCSPCAConfiguration_get_Modified(This,pVal) \ + ( (This)->lpVtbl -> get_Modified(This,pVal) ) + +#define IOCSPCAConfiguration_get_LocalRevocationInformation(This,pVal) \ + ( (This)->lpVtbl -> get_LocalRevocationInformation(This,pVal) ) + +#define IOCSPCAConfiguration_put_LocalRevocationInformation(This,newVal) \ + ( (This)->lpVtbl -> put_LocalRevocationInformation(This,newVal) ) + +#define IOCSPCAConfiguration_get_SigningCertificateTemplate(This,pVal) \ + ( (This)->lpVtbl -> get_SigningCertificateTemplate(This,pVal) ) + +#define IOCSPCAConfiguration_put_SigningCertificateTemplate(This,newVal) \ + ( (This)->lpVtbl -> put_SigningCertificateTemplate(This,newVal) ) + +#define IOCSPCAConfiguration_get_CAConfig(This,pVal) \ + ( (This)->lpVtbl -> get_CAConfig(This,pVal) ) + +#define IOCSPCAConfiguration_put_CAConfig(This,newVal) \ + ( (This)->lpVtbl -> put_CAConfig(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOCSPCAConfiguration_INTERFACE_DEFINED__ */ + + +#ifndef __IOCSPCAConfigurationCollection_INTERFACE_DEFINED__ +#define __IOCSPCAConfigurationCollection_INTERFACE_DEFINED__ + +/* interface IOCSPCAConfigurationCollection */ +/* [unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IOCSPCAConfigurationCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2BEBEA0B-5ECE-4F28-A91C-86B4BB20F0D3") + IOCSPCAConfigurationCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByName( + /* [in] */ __RPC__in const BSTR bstrIdentifier, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateCAConfiguration( + /* [in] */ __RPC__in const BSTR bstrIdentifier, + /* [in] */ VARIANT varCACert, + /* [retval][out] */ __RPC__deref_out_opt IOCSPCAConfiguration **ppVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteCAConfiguration( + /* [in] */ __RPC__in const BSTR bstrIdentifier) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOCSPCAConfigurationCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOCSPCAConfigurationCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOCSPCAConfigurationCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOCSPCAConfigurationCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IOCSPCAConfigurationCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IOCSPCAConfigurationCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IOCSPCAConfigurationCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IOCSPCAConfigurationCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IOCSPCAConfigurationCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IOCSPCAConfigurationCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfigurationCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IOCSPCAConfigurationCollection * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfigurationCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IOCSPCAConfigurationCollection * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfigurationCollection, get_ItemByName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByName )( + __RPC__in IOCSPCAConfigurationCollection * This, + /* [in] */ __RPC__in const BSTR bstrIdentifier, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfigurationCollection, CreateCAConfiguration) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateCAConfiguration )( + __RPC__in IOCSPCAConfigurationCollection * This, + /* [in] */ __RPC__in const BSTR bstrIdentifier, + /* [in] */ VARIANT varCACert, + /* [retval][out] */ __RPC__deref_out_opt IOCSPCAConfiguration **ppVal); + + DECLSPEC_XFGVIRT(IOCSPCAConfigurationCollection, DeleteCAConfiguration) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteCAConfiguration )( + __RPC__in IOCSPCAConfigurationCollection * This, + /* [in] */ __RPC__in const BSTR bstrIdentifier); + + END_INTERFACE + } IOCSPCAConfigurationCollectionVtbl; + + interface IOCSPCAConfigurationCollection + { + CONST_VTBL struct IOCSPCAConfigurationCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOCSPCAConfigurationCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOCSPCAConfigurationCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOCSPCAConfigurationCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOCSPCAConfigurationCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IOCSPCAConfigurationCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IOCSPCAConfigurationCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IOCSPCAConfigurationCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IOCSPCAConfigurationCollection_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define IOCSPCAConfigurationCollection_get_Item(This,Index,pVal) \ + ( (This)->lpVtbl -> get_Item(This,Index,pVal) ) + +#define IOCSPCAConfigurationCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IOCSPCAConfigurationCollection_get_ItemByName(This,bstrIdentifier,pVal) \ + ( (This)->lpVtbl -> get_ItemByName(This,bstrIdentifier,pVal) ) + +#define IOCSPCAConfigurationCollection_CreateCAConfiguration(This,bstrIdentifier,varCACert,ppVal) \ + ( (This)->lpVtbl -> CreateCAConfiguration(This,bstrIdentifier,varCACert,ppVal) ) + +#define IOCSPCAConfigurationCollection_DeleteCAConfiguration(This,bstrIdentifier) \ + ( (This)->lpVtbl -> DeleteCAConfiguration(This,bstrIdentifier) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOCSPCAConfigurationCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IOCSPAdmin_INTERFACE_DEFINED__ +#define __IOCSPAdmin_INTERFACE_DEFINED__ + +/* interface IOCSPAdmin */ +/* [unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IOCSPAdmin; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("322E830D-67DB-4FE9-9577-4596D9F09294") + IOCSPAdmin : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OCSPServiceProperties( + /* [retval][out] */ __RPC__deref_out_opt IOCSPPropertyCollection **ppVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OCSPCAConfigurationCollection( + /* [retval][out] */ __RPC__deref_out_opt IOCSPCAConfigurationCollection **pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetConfiguration( + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [in] */ VARIANT_BOOL bForce) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetConfiguration( + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [in] */ VARIANT_BOOL bForce) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMyRoles( + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [retval][out] */ __RPC__out LONG *pRoles) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Ping( + /* [in] */ __RPC__in const BSTR bstrServerName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSecurity( + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [in] */ __RPC__in const BSTR bstrVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecurity( + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSigningCertificates( + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [in] */ __RPC__in const VARIANT *pCACertVar, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetHashAlgorithms( + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [in] */ __RPC__in const BSTR bstrCAId, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOCSPAdminVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOCSPAdmin * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOCSPAdmin * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOCSPAdmin * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IOCSPAdmin * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IOCSPAdmin * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IOCSPAdmin * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IOCSPAdmin * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IOCSPAdmin, get_OCSPServiceProperties) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OCSPServiceProperties )( + __RPC__in IOCSPAdmin * This, + /* [retval][out] */ __RPC__deref_out_opt IOCSPPropertyCollection **ppVal); + + DECLSPEC_XFGVIRT(IOCSPAdmin, get_OCSPCAConfigurationCollection) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OCSPCAConfigurationCollection )( + __RPC__in IOCSPAdmin * This, + /* [retval][out] */ __RPC__deref_out_opt IOCSPCAConfigurationCollection **pVal); + + DECLSPEC_XFGVIRT(IOCSPAdmin, GetConfiguration) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetConfiguration )( + __RPC__in IOCSPAdmin * This, + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [in] */ VARIANT_BOOL bForce); + + DECLSPEC_XFGVIRT(IOCSPAdmin, SetConfiguration) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetConfiguration )( + __RPC__in IOCSPAdmin * This, + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [in] */ VARIANT_BOOL bForce); + + DECLSPEC_XFGVIRT(IOCSPAdmin, GetMyRoles) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMyRoles )( + __RPC__in IOCSPAdmin * This, + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [retval][out] */ __RPC__out LONG *pRoles); + + DECLSPEC_XFGVIRT(IOCSPAdmin, Ping) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Ping )( + __RPC__in IOCSPAdmin * This, + /* [in] */ __RPC__in const BSTR bstrServerName); + + DECLSPEC_XFGVIRT(IOCSPAdmin, SetSecurity) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurity )( + __RPC__in IOCSPAdmin * This, + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [in] */ __RPC__in const BSTR bstrVal); + + DECLSPEC_XFGVIRT(IOCSPAdmin, GetSecurity) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurity )( + __RPC__in IOCSPAdmin * This, + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IOCSPAdmin, GetSigningCertificates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSigningCertificates )( + __RPC__in IOCSPAdmin * This, + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [in] */ __RPC__in const VARIANT *pCACertVar, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IOCSPAdmin, GetHashAlgorithms) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetHashAlgorithms )( + __RPC__in IOCSPAdmin * This, + /* [in] */ __RPC__in const BSTR bstrServerName, + /* [in] */ __RPC__in const BSTR bstrCAId, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + END_INTERFACE + } IOCSPAdminVtbl; + + interface IOCSPAdmin + { + CONST_VTBL struct IOCSPAdminVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOCSPAdmin_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOCSPAdmin_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOCSPAdmin_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOCSPAdmin_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IOCSPAdmin_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IOCSPAdmin_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IOCSPAdmin_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IOCSPAdmin_get_OCSPServiceProperties(This,ppVal) \ + ( (This)->lpVtbl -> get_OCSPServiceProperties(This,ppVal) ) + +#define IOCSPAdmin_get_OCSPCAConfigurationCollection(This,pVal) \ + ( (This)->lpVtbl -> get_OCSPCAConfigurationCollection(This,pVal) ) + +#define IOCSPAdmin_GetConfiguration(This,bstrServerName,bForce) \ + ( (This)->lpVtbl -> GetConfiguration(This,bstrServerName,bForce) ) + +#define IOCSPAdmin_SetConfiguration(This,bstrServerName,bForce) \ + ( (This)->lpVtbl -> SetConfiguration(This,bstrServerName,bForce) ) + +#define IOCSPAdmin_GetMyRoles(This,bstrServerName,pRoles) \ + ( (This)->lpVtbl -> GetMyRoles(This,bstrServerName,pRoles) ) + +#define IOCSPAdmin_Ping(This,bstrServerName) \ + ( (This)->lpVtbl -> Ping(This,bstrServerName) ) + +#define IOCSPAdmin_SetSecurity(This,bstrServerName,bstrVal) \ + ( (This)->lpVtbl -> SetSecurity(This,bstrServerName,bstrVal) ) + +#define IOCSPAdmin_GetSecurity(This,bstrServerName,pVal) \ + ( (This)->lpVtbl -> GetSecurity(This,bstrServerName,pVal) ) + +#define IOCSPAdmin_GetSigningCertificates(This,bstrServerName,pCACertVar,pVal) \ + ( (This)->lpVtbl -> GetSigningCertificates(This,bstrServerName,pCACertVar,pVal) ) + +#define IOCSPAdmin_GetHashAlgorithms(This,bstrServerName,bstrCAId,pVal) \ + ( (This)->lpVtbl -> GetHashAlgorithms(This,bstrServerName,bstrCAId,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOCSPAdmin_INTERFACE_DEFINED__ */ + + + +#ifndef __CERTADMINLib_LIBRARY_DEFINED__ +#define __CERTADMINLib_LIBRARY_DEFINED__ + +/* library CERTADMINLib */ +/* [helpstring][version][uuid] */ + + +enum OCSPSigningFlag + { + OCSP_SF_SILENT = 0x1, + OCSP_SF_USE_CACERT = 0x2, + OCSP_SF_ALLOW_SIGNINGCERT_AUTORENEWAL = 0x4, + OCSP_SF_FORCE_SIGNINGCERT_ISSUER_ISCA = 0x8, + OCSP_SF_AUTODISCOVER_SIGNINGCERT = 0x10, + OCSP_SF_MANUAL_ASSIGN_SIGNINGCERT = 0x20, + OCSP_SF_RESPONDER_ID_KEYHASH = 0x40, + OCSP_SF_RESPONDER_ID_NAME = 0x80, + OCSP_SF_ALLOW_NONCE_EXTENSION = 0x100, + OCSP_SF_ALLOW_SIGNINGCERT_AUTOENROLLMENT = 0x200 + } ; + +enum OCSPRequestFlag + { + OCSP_RF_REJECT_SIGNED_REQUESTS = 0x1 + } ; +#define wszOCSPCAPROP_CACERTIFICATE L"CACertificate" +#define wszOCSPCAPROP_HASHALGORITHMID L"HashAlgorithmId" +#define wszOCSPCAPROP_SIGNINGFLAGS L"SigningFlags" +#define wszOCSPCAPROP_REMINDERDURATION L"ReminderDuration" +#define wszOCSPCAPROP_SIGNINGCERTIFICATE L"SigningCertificate" +#define wszOCSPCAPROP_CSPNAME L"CSPName" +#define wszOCSPCAPROP_KEYSPEC L"KeySpec" +#define wszOCSPCAPROP_ERRORCODE L"ErrorCode" +#define wszOCSPCAPROP_PROVIDERCLSID L"ProviderCLSID" +#define wszOCSPCAPROP_PROVIDERPROPERTIES L"Provider" +#define wszOCSPCAPROP_LOCALREVOCATIONINFORMATION L"LocalRevocationInformation" +#define wszOCSPCAPROP_SIGNINGCERTIFICATETEMPLATE L"SigningCertificateTemplate" +#define wszOCSPCAPROP_CACONFIG L"CAConfig" +#define wszOCSPPROP_LOGLEVEL L"LogLevel" +#define wszOCSPPROP_DEBUG L"Debug" +#define wszOCSPPROP_AUDITFILTER L"AuditFilter" +#define wszOCSPPROP_ARRAYCONTROLLER L"ArrayController" +#define wszOCSPPROP_ARRAYMEMBERS L"ArrayMembers" +#define wszOCSPPROP_ENROLLPOLLINTERVAL L"EnrollPollInterval" +#define wszOCSPISAPIPROP_VIRTUALROOTNAME L"VirtualRootName" +#define wszOCSPISAPIPROP_NUMOFTHREADS L"NumOfThreads" +#define wszOCSPISAPIPROP_NUMOFBACKENDCONNECTIONS L"NumOfBackendConnections" +#define wszOCSPISAPIPROP_REFRESHRATE L"RefreshRate" +#define wszOCSPISAPIPROP_MAXNUMOFCACHEENTRIES L"MaxNumOfCacheEntries" +#define wszOCSPISAPIPROP_MAXAGE L"MaxAge" +#define wszOCSPISAPIPROP_DEBUG L"ISAPIDebug" +#define wszOCSPCOMMONPROP_REQFLAGS L"RequestFlags" +#define wszOCSPCOMMONPROP_MAXINCOMINGMESSAGESIZE L"MaxIncomingMessageSize" +#define wszOCSPCOMMONPROP_MAXNUMOFREQUESTENTRIES L"MaxNumOfRequestEntries" +#define wszOCSPREVPROP_CRLURLTIMEOUT L"CrlUrlTimeOut" +#define wszOCSPREVPROP_BASECRLURLS L"BaseCrlUrls" +#define wszOCSPREVPROP_SERIALNUMBERSDIRS L"IssuedSerialNumbersDirectories" +#define wszOCSPREVPROP_BASECRL L"BaseCrl" +#define wszOCSPREVPROP_DELTACRLURLS L"DeltaCrlUrls" +#define wszOCSPREVPROP_DELTACRL L"DeltaCrl" +#define wszOCSPREVPROP_REFRESHTIMEOUT L"RefreshTimeOut" +#define wszOCSPREVPROP_ERRORCODE L"RevocationErrorCode" +#define wszOCSPREVPROP_ALLOWUSERONLYCRLS L"AllowUserOnlyCrls" +#define wszOCSPREVPROP_ALLOWCAONLYCRLS L"AllowCAOnlyCrls" + +EXTERN_C const IID LIBID_CERTADMINLib; + +EXTERN_C const CLSID CLSID_CCertAdmin; + +#ifdef __cplusplus + +class DECLSPEC_UUID("37eabaf0-7fb6-11d0-8817-00a0c903b83c") +CCertAdmin; +#endif + +EXTERN_C const CLSID CLSID_CCertView; + +#ifdef __cplusplus + +class DECLSPEC_UUID("a12d0f7a-1e84-11d1-9bd6-00c04fb683fa") +CCertView; +#endif + +EXTERN_C const CLSID CLSID_OCSPPropertyCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("F935A528-BA8A-4DD9-BA79-F283275CB2DE") +OCSPPropertyCollection; +#endif + +EXTERN_C const CLSID CLSID_OCSPAdmin; + +#ifdef __cplusplus + +class DECLSPEC_UUID("D3F73511-92C9-47CB-8FF2-8D891A7C4DE4") +OCSPAdmin; +#endif +#endif /* __CERTADMINLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_certadm_0000_0008 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certadm_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certadm_0000_0008_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertBCli.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertBCli.h new file mode 100644 index 0000000000000000000000000000000000000000..eebe909fa8e7bfa601b4cc930ee3b5c1d8ca98d7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertBCli.h @@ -0,0 +1,706 @@ +//+-------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1996 - 1999 +// +// File: certbcli.h +// +// Contents: Cert Server backup client APIs +// +//--------------------------------------------------------------------------- + +#ifdef _CERTBCLI_TYPECHECK +#undef __CERTBCLI_H__ // allow redundant include +#endif + +#ifndef __CERTBCLI_H__ +#define __CERTBCLI_H__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef MIDL_PASS +#define RPC_STRING [string] +#else +#define RPC_STRING +#endif + +#define IN +#define OUT +#define OPTIONAL +#define VOID void + +#define CERTBCLI_CALL __stdcall + +#ifndef _CERTBCLI_DEFINED +#define CERTBCLI_API __declspec(dllimport) CERTBCLI_CALL +#else +#define CERTBCLI_API +#endif + +#define szBACKUPANNOTATION "Cert Server Backup Interface" +#define wszBACKUPANNOTATION TEXT(szBACKUPANNOTATION) + +#define szRESTOREANNOTATION "Cert Server Restore Interface" +#define wszRESTOREANNOTATION TEXT(szRESTOREANNOTATION) + + +// Type of Backup passed to CertSrvBackupPrepare: +// CSBACKUP_TYPE_FULL: Requesting backup of the complete DB (DB & Log files) +// CSBACKUP_TYPE_LOGS_ONLY: Requesting backup of only the log files +// CSBACKUP_TYPE_INCREMENTAL: Requesting incremental backup + +// CertSrvBackupPrepare flags: +#define CSBACKUP_TYPE_FULL 0x00000001 +#define CSBACKUP_TYPE_LOGS_ONLY 0x00000002 +//#define CSBACKUP_TYPE_INCREMENTAL 0x00000004 // not yet supported +#define CSBACKUP_TYPE_MASK 0x00000003 // valid flags + +// Type of Restore passed to CertSrvRestorePrepare: +// CSRESTORE_TYPE_FULL: Requesting restore of the complete DB (DB & Log files) +// CSRESTORE_TYPE_ONLINE: Restoration is done when Cert Server is online. + +#define CSRESTORE_TYPE_FULL 0x00000001 // else incremental +#define CSRESTORE_TYPE_ONLINE 0x00000002 // not yet supported +#define CSRESTORE_TYPE_CATCHUP 0x00000004 // not yet supported +#define CSRESTORE_TYPE_MASK 0x00000005 // valid flags + + +// Setting the current log # to this value would disable incremental backup +#define CSBACKUP_DISABLE_INCREMENTAL 0xffffffff + + +// BFT is the bit flag used to represent file types (directory/dit/logfile/etc.) +// We keep them as a character so that we can append/prepend them to the actual +// file path. The code in the Backup API's rely on the fact that values 0-256 +// in 8 bit ascii map to the values 0-256 in unicode. + +typedef WCHAR CSBFT; + + +// Bit flags: +// CSBFT_DIRECTORY - path specified is a directory +// CSBFT_DATABASE_DIRECTORY - that file goes into database directory +// CSBFT_LOG_DIRECTORY - that the file goes into log directory + +#define CSBFT_DIRECTORY 0x80 +#define CSBFT_DATABASE_DIRECTORY 0x40 +#define CSBFT_LOG_DIRECTORY 0x20 + +// Following combinations are defined for easy use of the filetype and the +// directory into into which it goes + +#define CSBFT_LOG ((CSBFT) (TEXT('\x01') | CSBFT_LOG_DIRECTORY)) +#define CSBFT_LOG_DIR ((CSBFT) (TEXT('\x02') | CSBFT_DIRECTORY)) +#define CSBFT_CHECKPOINT_DIR ((CSBFT) (TEXT('\x03') | CSBFT_DIRECTORY)) +#define CSBFT_CERTSERVER_DATABASE ((CSBFT) (TEXT('\x04') | CSBFT_DATABASE_DIRECTORY)) +#define CSBFT_PATCH_FILE ((CSBFT) (TEXT('\x05') | CSBFT_LOG_DIRECTORY)) +#define CSBFT_UNKNOWN ((CSBFT) (TEXT('\x0f'))) + + +// Backup Context Handle +typedef void *HCSBC; + +#ifndef CSEDB_RSTMAP +typedef struct tagCSEDB_RSTMAPW { + RPC_STRING WCHAR *pwszDatabaseName; + RPC_STRING WCHAR *pwszNewDatabaseName; +} CSEDB_RSTMAPW; + +#define CSEDB_RSTMAP CSEDB_RSTMAPW +#endif // CSEDB_RSTMAP + + +// For all the functions in this interface that have at least one string +// parameter, provide macros to invoke the appropriate version of the +// corresponding function. + +#define CertSrvIsServerOnline CertSrvIsServerOnlineW +#define CertSrvBackupGetDynamicFileList CertSrvBackupGetDynamicFileListW +#define CertSrvBackupPrepare CertSrvBackupPrepareW +#define CertSrvBackupGetDatabaseNames CertSrvBackupGetDatabaseNamesW +#define CertSrvBackupOpenFile CertSrvBackupOpenFileW +#define CertSrvBackupGetBackupLogs CertSrvBackupGetBackupLogsW + +#define CertSrvRestoreGetDatabaseLocations CertSrvRestoreGetDatabaseLocationsW +#define CertSrvRestorePrepare CertSrvRestorePrepareW +#define CertSrvRestoreRegister CertSrvRestoreRegisterW + +#define CertSrvServerControl CertSrvServerControlW + + +//+-------------------------------------------------------------------------- +// CertSrvIsServerOnline -- check to see if the Cert Server is Online on the +// given server. This call is guaranteed to return quickly. +// +// Parameters: +// [in] pwszServerName - name or config string of the server to check +// [out] pfServerOnline - pointer to receive the bool result +// (TRUE if Cert Server is online; FALSE, otherwise) +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//+-------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVISSERVERONLINEW)( + IN WCHAR const *pwszServerName, + OUT BOOL *pfServerOnline); + +HRESULT +CERTBCLI_API +CertSrvIsServerOnlineW( + IN WCHAR const *pwszServerName, + OUT BOOL *pfServerOnline); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVISSERVERONLINEW *pfnCertSrvIsServerOnline = CertSrvIsServerOnline; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvBackupGetDynamicFileList -- return the list of dynamic files that +// need to be backed up in addition to database files. +// +// Parameters: +// [in] hbc - backup context handle +// [out] ppwszzFileList - pointer to receive the pointer to the file list; +// allocated memory should be freed using CertSrvBackupFree() API +// by the caller when it is no longer needed; The file list info +// is an array of null-terminated filenames and the list is +// terminated by two L'\0's. +// [out] pcbSize - will receive the number of bytes returned +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVBACKUPGETDYNAMICFILELISTW)( + IN HCSBC hbc, + OUT WCHAR **ppwszzFileList, + OUT DWORD *pcbSize); + +HRESULT +CERTBCLI_API +CertSrvBackupGetDynamicFileListW( + _In_ IN HCSBC hbc, + _Outptr_ PWSTR *ppwszzFileList, + _Out_ OUT DWORD *pcbSize); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVBACKUPGETDYNAMICFILELISTW *pfnCertSrvBackupGetDynamicFileList = CertSrvBackupGetDynamicFileList; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvBackupPrepare -- prepare the DB for the online backup and return a +// Backup Context Handle to be used for subsequent calls to backup +// functions. +// +// Parameters: +// [in] pwszServerName - name or config string of the server to check +// [in] grbitJet - flag to be passed to jet while backing up dbs +// [in] dwBackupFlags - CSBACKUP_TYPE_FULL or CSBACKUP_TYPE_LOGS_ONLY +// [out] phbc - pointer that will receive the backup context handle +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVBACKUPPREPAREW)( + IN WCHAR const *pwszServerName, + IN ULONG grbitJet, + IN ULONG dwBackupFlags, // CSBACKUP_TYPE_* + OUT HCSBC *phbc); + +HRESULT +CERTBCLI_API +CertSrvBackupPrepareW( + IN WCHAR const *pwszServerName, + IN ULONG grbitJet, + IN ULONG dwBackupFlags, // CSBACKUP_TYPE_* + OUT HCSBC *phbc); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVBACKUPPREPAREW *pfnCertSrvBackupPrepare = CertSrvBackupPrepare; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvBackupGetDatabaseNames -- return the list of data bases that need to +// be backed up for the given backup context +// +// Parameters: +// [in] hbc - backup context handle +// [out] ppwszzAttachmentInformation - pointer to receive the pointer to +// the attachment info; allocated memory should be freed using +// CertSrvBackupFree() API by the caller when it is no longer +// needed; Attachment info is an array of null-terminated +// filenames and the list is terminated by two L'\0's. +// [out] pcbSize - will receive the number of bytes returned +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVBACKUPGETDATABASENAMESW)( + IN HCSBC hbc, + OUT WCHAR **ppwszzAttachmentInformation, + OUT DWORD *pcbSize); + +HRESULT +CERTBCLI_API +CertSrvBackupGetDatabaseNamesW( + _In_ IN HCSBC hbc, + _Outptr_ PWSTR *ppwszzAttachmentInformation, + _Out_ OUT DWORD *pcbSize); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVBACKUPGETDATABASENAMESW *pfnCertSrvBackupGetDatabaseNames = CertSrvBackupGetDatabaseNames; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvBackupOpenFile -- open the given attachment for read. +// +// Parameters: +// [in] hbc - backup context handle +// [in] pwszAttachmentName - name of the attachment to be opened for read +// [in] cbReadHintSize - suggested size in bytes that might be used +// during the subsequent reads on this attachment +// [out] pliFileSize - pointer to a large integer that would receive the +// size in bytes of the given attachment +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVBACKUPOPENFILEW)( + IN HCSBC hbc, + IN WCHAR const *pwszAttachmentName, + IN DWORD cbReadHintSize, + OUT LARGE_INTEGER *pliFileSize); + +HRESULT +CERTBCLI_API +CertSrvBackupOpenFileW( + IN HCSBC hbc, + IN WCHAR const *pwszAttachmentName, + IN DWORD cbReadHintSize, + OUT LARGE_INTEGER *pliFileSize); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVBACKUPOPENFILEW *pfnCertSrvBackupOpenFile = CertSrvBackupOpenFile; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvBackupRead -- read the currently open attachment bytes into the given +// buffer. The client application is expected to call this function +// repeatedly until it gets the entire file (the application would have +// received the file size through the CertSrvBackupOpenFile call before. +// +// Parameters: +// [in] hbc - backup context handle +// [out] pvBuffer - pointer to the buffer that would receive the read data. +// [in] cbBuffer - specifies the size of the above buffer +// [out] pcbRead - pointer to receive the actual number of bytes read. +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVBACKUPREAD)( + IN HCSBC hbc, + OUT VOID *pvBuffer, + IN DWORD cbBuffer, + OUT DWORD *pcbRead); + +HRESULT +CERTBCLI_API +CertSrvBackupRead( + IN HCSBC hbc, + OUT VOID *pvBuffer, + IN DWORD cbBuffer, + OUT DWORD *pcbRead); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVBACKUPREAD *pfnCertSrvBackupRead = CertSrvBackupRead; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvBackupClose -- called by the application after it completes reading all +// the data in the currently opened attachement. +// +// Parameters: +// [in] hbc - backup context handle +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVBACKUPCLOSE)( + IN HCSBC hbc); + +HRESULT +CERTBCLI_API +CertSrvBackupClose( + IN HCSBC hbc); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVBACKUPCLOSE *pfnCertSrvBackupClose = CertSrvBackupClose; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvBackupGetBackupLogs -- return the list of log files that need to be +// backed up for the given backup context +// +// Parameters: +// [in] hbc - backup context handle +// [out] pwszzBackupLogFiles - pointer that will receive the pointer to +// the list of log files; allocated memory should be freed using +// CertSrvBackupFree() API by the caller when it is no +// longer needed; Log files are returned in an array of +// null-terminated filenames and the list is terminated by two +// L'\0's +// [out] pcbSize - will receive the number of bytes returned +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVBACKUPGETBACKUPLOGSW)( + IN HCSBC hbc, + OUT WCHAR **ppwszzBackupLogFiles, + OUT DWORD *pcbSize); + +HRESULT +CERTBCLI_API +CertSrvBackupGetBackupLogsW( + _In_ IN HCSBC hbc, + _Outptr_ PWSTR *ppwszzBackupLogFiles, + _Out_ OUT DWORD *pcbSize); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVBACKUPGETBACKUPLOGSW *pfnCertSrvBackupGetBackupLogs = CertSrvBackupGetBackupLogs; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvBackupTruncateLogs -- called to truncate the already read backup logs. +// +// Parameters: +// [in] hbc - backup context handle +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVBACKUPTRUNCATELOGS)( + IN HCSBC hbc); + +HRESULT +CERTBCLI_API +CertSrvBackupTruncateLogs( + IN HCSBC hbc); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVBACKUPTRUNCATELOGS *pfnCertSrvBackupTruncateLogs = CertSrvBackupTruncateLogs; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvBackupEnd -- called to end the current backup session. +// +// Parameters: +// [in] hbc - backup context handle of the backup session +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVBACKUPEND)( + IN HCSBC hbc); + +HRESULT +CERTBCLI_API +CertSrvBackupEnd( + IN HCSBC hbc); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVBACKUPEND *pfnCertSrvBackupEnd = CertSrvBackupEnd; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvBackupFree -- free any buffer allocated by certbcli.dll APIs. +// +// Parameters: +// [in] pv - pointer to the buffer that is to be freed. +// +// Returns: +// None. +//--------------------------------------------------------------------------- + +typedef VOID (CERTBCLI_CALL FNCERTSRVBACKUPFREE)( + IN VOID *pv); + +VOID +CERTBCLI_API +CertSrvBackupFree( + IN VOID *pv); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVBACKUPFREE *pfnCertSrvBackupFree = CertSrvBackupFree; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvRestoreGetDatabaseLocations -- called both at backup time as well as +// at restorate time to get data base locations for different types of +// files. +// +// Parameters: +// [in] hbc - backup context handle which would have been obtained +// through CertSrvBackupPrepare in the backup case and through +// CertSrvRestorePrepare in the restore case. +// [out] ppwszzDatabaseLocationList - pointer that will receive the +// pointer to the list of database locations; allocated memory +// should be freed using CertSrvBackupFree() API by the caller +// when it is no longer needed; locations are returned in an array +// of null-terminated names and and the list is terminated by +// two L'\0's. The first character of each name is the BFT +// character that indicates the type of the file and the rest of +// the name tells gives the path into which that particular type +// of file should be restored. +// [out] pcbSize - will receive the number of bytes returned +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVRESTOREGETDATABASELOCATIONSW)( + IN HCSBC hbc, + OUT WCHAR **ppwszzDatabaseLocationList, + OUT DWORD *pcbSize); + +HRESULT +CERTBCLI_API +CertSrvRestoreGetDatabaseLocationsW( + _In_ IN HCSBC hbc, + _Outptr_ PWSTR *ppwszzDatabaseLocationList, + _Out_ OUT DWORD *pcbSize); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVRESTOREGETDATABASELOCATIONSW *pfnCertSrvRestoreGetDatabaseLocations = CertSrvRestoreGetDatabaseLocations; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvRestorePrepare -- indicate beginning of a restore session. +// +// Parameters: +// [in] pwszServerName - name or config string of the server into which +// the restore operation is going to be performed. +// [in] dwRestoreFlags - Or'ed combination of CSRESTORE_TYPE_* flags; +// 0 if no special flags are to be specified +// [out] phbc - pointer to receive the backup context handle which is to +// be passed to the subsequent restore APIs +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVRESTOREPREPAREW)( + IN WCHAR const *pwszServerName, + IN ULONG dwRestoreFlags, + OUT HCSBC *phbc); + +HRESULT +CERTBCLI_API +CertSrvRestorePrepareW( + IN WCHAR const *pwszServerName, + IN ULONG dwRestoreFlags, // CSRESTORE_TYPE_* + OUT HCSBC *phbc); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVRESTOREPREPAREW *pfnCertSrvRestorePrepare = CertSrvRestorePrepare; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvRestoreRegister -- register a restore operation. It will interlock +// all subsequent restore operations, and will prevent the restore target +// from starting until the call to CertSrvRestoreRegisterComplete is made. +// +// Parameters: +// [in] hbc - backup context handle for the restore session. +// [in] pwszCheckPointFilePath - path to restore the check point files +// [in] pwszLogPath - path where the log files are restored +// [in] rgrstmap - restore map +// [in] crstmap - tells if there is a new restore map +// [in] pwszBackupLogPath - path where the backup logs are located +// [in] genLow - Lowest log# that was restored in this restore session +// [in] genHigh - Highest log# that was restored in this restore session +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVRESTOREREGISTERW)( + OPTIONAL IN HCSBC hbc, + OPTIONAL IN WCHAR const *pwszCheckPointFilePath, + OPTIONAL IN WCHAR const *pwszLogPath, + OPTIONAL IN CSEDB_RSTMAPW rgrstmap[], + IN LONG crstmap, + OPTIONAL IN WCHAR const *pwszBackupLogPath, + IN ULONG genLow, + IN ULONG genHigh); + +HRESULT +CERTBCLI_API +CertSrvRestoreRegisterW( + OPTIONAL IN HCSBC hbc, + OPTIONAL IN WCHAR const *pwszCheckPointFilePath, + OPTIONAL IN WCHAR const *pwszLogPath, + OPTIONAL IN CSEDB_RSTMAPW rgrstmap[], + IN LONG crstmap, + OPTIONAL IN WCHAR const *pwszBackupLogPath, + IN ULONG genLow, + IN ULONG genHigh); + +HRESULT +CERTBCLI_API +CertSrvRestoreRegisterThroughFile( + IN HCSBC hbc, + OPTIONAL IN WCHAR const *pwszCheckPointFilePath, + OPTIONAL IN WCHAR const *pwszLogPath, + OPTIONAL IN CSEDB_RSTMAPW rgrstmap[], + IN LONG crstmap, + OPTIONAL IN WCHAR const *pwszBackupLogPath, + IN ULONG genLow, + IN ULONG genHigh); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVRESTOREREGISTERW *pfnCertSrvRestoreRegister = CertSrvRestoreRegister; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvRestoreRegisterComplete -- indicate that a previously registered +// restore is complete. +// +// Parameters: +// [in] hbc - backup context handle +// [in] hrRestoreState - success code if the restore was successful +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVRESTOREREGISTERCOMPLETE)( + OPTIONAL IN HCSBC hbc, + IN HRESULT hrRestoreState); + +HRESULT +CERTBCLI_API +CertSrvRestoreRegisterComplete( + OPTIONAL IN HCSBC hbc, + IN HRESULT hrRestoreState); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVRESTOREREGISTERCOMPLETE *pfnCertSrvRestoreRegisterComplete = CertSrvRestoreRegisterComplete; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvRestoreEnd -- end a restore session +// +// Parameters: +// [in] hbc - backup context handle +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVRESTOREEND)( + IN HCSBC hbc); + +HRESULT +CERTBCLI_API +CertSrvRestoreEnd( + IN HCSBC hbc); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVRESTOREEND *pfnCertSrvRestoreEnd = CertSrvRestoreEnd; +#endif + + +//+-------------------------------------------------------------------------- +// CertSrvServerControl -- send a control command to the cert server. +// +// Parameters: +// [in] pwszServerName - name or config string of the server to control +// [in] dwControlFlags - control command and flags +// [out] pcbOut - pointer to receive the size of command output data +// [out] ppbOut - pointer to receive command output data. Use the +// CertSrvBackupFree() API to free the buffer. +// +// Returns: +// S_OK if the call executed successfully; +// Failure code otherwise. +//--------------------------------------------------------------------------- + +#define CSCONTROL_SHUTDOWN 0x000000001 +#define CSCONTROL_SUSPEND 0x000000002 +#define CSCONTROL_RESTART 0x000000003 + +typedef HRESULT (CERTBCLI_CALL FNCERTSRVSERVERCONTROLW)( + IN WCHAR const *pwszServerName, + IN DWORD dwControlFlags, + OPTIONAL OUT DWORD *pcbOut, + OPTIONAL OUT BYTE **ppbOut); + +HRESULT +CERTBCLI_API +CertSrvServerControlW( + IN WCHAR const *pwszServerName, + IN DWORD dwControlFlags, + OPTIONAL OUT DWORD *pcbOut, + OPTIONAL OUT BYTE **ppbOut); + +#ifdef _CERTBCLI_TYPECHECK +FNCERTSRVSERVERCONTROLW *pfnCertSrvServerControl = CertSrvServerControl; +#endif + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __CERTBCLI_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertBase.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertBase.h new file mode 100644 index 0000000000000000000000000000000000000000..24cf07a3049ecfa11b7af13ddd8329c05a0eca76 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertBase.h @@ -0,0 +1,92 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __certbase_h__ +#define __certbase_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +/* header files for imported files */ +#include "wtypes.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certbase_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef struct _CERTTRANSBLOB + { + unsigned long cb; + /* [unique][size_is] */ BYTE *pb; + } CERTTRANSBLOB; + +typedef struct _CERTVIEWRESTRICTION + { + DWORD ColumnIndex; + LONG SeekOperator; + LONG SortOrder; + /* [unique][size_is] */ BYTE *pbValue; + DWORD cbValue; + } CERTVIEWRESTRICTION; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certbase_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certbase_0000_0000_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertBase.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertBase.idl new file mode 100644 index 0000000000000000000000000000000000000000..be8b623a9a102d7cf199d712b3593c79e13322c5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertBase.idl @@ -0,0 +1,43 @@ +//+-------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation +// +// File: certbase.idl +// +// Contents: IDL source for certsrv base types +// +//--------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "wtypes.idl"; + +typedef struct _CERTTRANSBLOB +{ + unsigned long cb; + [size_is(cb), unique] BYTE *pb; +} CERTTRANSBLOB; + + +typedef struct _CERTVIEWRESTRICTION +{ + DWORD ColumnIndex; // affected column + LONG SeekOperator; + LONG SortOrder; + [size_is(cbValue), unique] BYTE *pbValue; + DWORD cbValue; +} CERTVIEWRESTRICTION; + +// CERTVIEWRESTRICTION.SeekOperator values: +// See certview.idl CVR_SEEK_* + +// CERTVIEWRESTRICTION.SortOrder values: +// See certview.idl CVR_SORT_* + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertCli.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertCli.h new file mode 100644 index 0000000000000000000000000000000000000000..24d4f92dc523eb2e039684ccdc2b4ef5c3e043c5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertCli.h @@ -0,0 +1,1948 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __certcli_h__ +#define __certcli_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICertGetConfig_FWD_DEFINED__ +#define __ICertGetConfig_FWD_DEFINED__ +typedef interface ICertGetConfig ICertGetConfig; + +#endif /* __ICertGetConfig_FWD_DEFINED__ */ + + +#ifndef __ICertConfig_FWD_DEFINED__ +#define __ICertConfig_FWD_DEFINED__ +typedef interface ICertConfig ICertConfig; + +#endif /* __ICertConfig_FWD_DEFINED__ */ + + +#ifndef __ICertConfig2_FWD_DEFINED__ +#define __ICertConfig2_FWD_DEFINED__ +typedef interface ICertConfig2 ICertConfig2; + +#endif /* __ICertConfig2_FWD_DEFINED__ */ + + +#ifndef __ICertRequest_FWD_DEFINED__ +#define __ICertRequest_FWD_DEFINED__ +typedef interface ICertRequest ICertRequest; + +#endif /* __ICertRequest_FWD_DEFINED__ */ + + +#ifndef __ICertRequest2_FWD_DEFINED__ +#define __ICertRequest2_FWD_DEFINED__ +typedef interface ICertRequest2 ICertRequest2; + +#endif /* __ICertRequest2_FWD_DEFINED__ */ + + +#ifndef __ICertRequest3_FWD_DEFINED__ +#define __ICertRequest3_FWD_DEFINED__ +typedef interface ICertRequest3 ICertRequest3; + +#endif /* __ICertRequest3_FWD_DEFINED__ */ + + +#ifndef __CCertGetConfig_FWD_DEFINED__ +#define __CCertGetConfig_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertGetConfig CCertGetConfig; +#else +typedef struct CCertGetConfig CCertGetConfig; +#endif /* __cplusplus */ + +#endif /* __CCertGetConfig_FWD_DEFINED__ */ + + +#ifndef __CCertConfig_FWD_DEFINED__ +#define __CCertConfig_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertConfig CCertConfig; +#else +typedef struct CCertConfig CCertConfig; +#endif /* __cplusplus */ + +#endif /* __CCertConfig_FWD_DEFINED__ */ + + +#ifndef __CCertRequest_FWD_DEFINED__ +#define __CCertRequest_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertRequest CCertRequest; +#else +typedef struct CCertRequest CCertRequest; +#endif /* __cplusplus */ + +#endif /* __CCertRequest_FWD_DEFINED__ */ + + +#ifndef __CCertServerPolicy_FWD_DEFINED__ +#define __CCertServerPolicy_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertServerPolicy CCertServerPolicy; +#else +typedef struct CCertServerPolicy CCertServerPolicy; +#endif /* __cplusplus */ + +#endif /* __CCertServerPolicy_FWD_DEFINED__ */ + + +#ifndef __CCertServerExit_FWD_DEFINED__ +#define __CCertServerExit_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertServerExit CCertServerExit; +#else +typedef struct CCertServerExit CCertServerExit; +#endif /* __cplusplus */ + +#endif /* __CCertServerExit_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "certif.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certcli_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_certcli_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certcli_0000_0000_v0_0_s_ifspec; + +#ifndef __ICertGetConfig_INTERFACE_DEFINED__ +#define __ICertGetConfig_INTERFACE_DEFINED__ + +/* interface ICertGetConfig */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertGetConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c7ea09c0-ce17-11d0-8833-00a0c903b83c") + ICertGetConfig : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE GetConfig( + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrOut) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertGetConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertGetConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertGetConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertGetConfig * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertGetConfig * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertGetConfig * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertGetConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertGetConfig * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertGetConfig, GetConfig) + HRESULT ( STDMETHODCALLTYPE *GetConfig )( + __RPC__in ICertGetConfig * This, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrOut); + + END_INTERFACE + } ICertGetConfigVtbl; + + interface ICertGetConfig + { + CONST_VTBL struct ICertGetConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertGetConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertGetConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertGetConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertGetConfig_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertGetConfig_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertGetConfig_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertGetConfig_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertGetConfig_GetConfig(This,Flags,pstrOut) \ + ( (This)->lpVtbl -> GetConfig(This,Flags,pstrOut) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertGetConfig_INTERFACE_DEFINED__ */ + + +#ifndef __ICertConfig_INTERFACE_DEFINED__ +#define __ICertConfig_INTERFACE_DEFINED__ + +/* interface ICertConfig */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("372fce34-4324-11d0-8810-00a0c903b83c") + ICertConfig : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Reset( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out LONG *pCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [retval][out] */ __RPC__out LONG *pIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetField( + /* [in] */ __RPC__in const BSTR strFieldName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrOut) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConfig( + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrOut) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertConfig * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertConfig * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertConfig * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertConfig * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertConfig, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertConfig * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out LONG *pCount); + + DECLSPEC_XFGVIRT(ICertConfig, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in ICertConfig * This, + /* [retval][out] */ __RPC__out LONG *pIndex); + + DECLSPEC_XFGVIRT(ICertConfig, GetField) + HRESULT ( STDMETHODCALLTYPE *GetField )( + __RPC__in ICertConfig * This, + /* [in] */ __RPC__in const BSTR strFieldName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrOut); + + DECLSPEC_XFGVIRT(ICertConfig, GetConfig) + HRESULT ( STDMETHODCALLTYPE *GetConfig )( + __RPC__in ICertConfig * This, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrOut); + + END_INTERFACE + } ICertConfigVtbl; + + interface ICertConfig + { + CONST_VTBL struct ICertConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertConfig_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertConfig_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertConfig_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertConfig_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertConfig_Reset(This,Index,pCount) \ + ( (This)->lpVtbl -> Reset(This,Index,pCount) ) + +#define ICertConfig_Next(This,pIndex) \ + ( (This)->lpVtbl -> Next(This,pIndex) ) + +#define ICertConfig_GetField(This,strFieldName,pstrOut) \ + ( (This)->lpVtbl -> GetField(This,strFieldName,pstrOut) ) + +#define ICertConfig_GetConfig(This,Flags,pstrOut) \ + ( (This)->lpVtbl -> GetConfig(This,Flags,pstrOut) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertConfig_INTERFACE_DEFINED__ */ + + +#ifndef __ICertConfig2_INTERFACE_DEFINED__ +#define __ICertConfig2_INTERFACE_DEFINED__ + +/* interface ICertConfig2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertConfig2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7a18edde-7e78-4163-8ded-78e2c9cee924") + ICertConfig2 : public ICertConfig + { + public: + virtual HRESULT STDMETHODCALLTYPE SetSharedFolder( + /* [in] */ __RPC__in const BSTR strSharedFolder) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertConfig2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertConfig2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertConfig2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertConfig2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertConfig2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertConfig2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertConfig2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertConfig2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertConfig, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertConfig2 * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out LONG *pCount); + + DECLSPEC_XFGVIRT(ICertConfig, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in ICertConfig2 * This, + /* [retval][out] */ __RPC__out LONG *pIndex); + + DECLSPEC_XFGVIRT(ICertConfig, GetField) + HRESULT ( STDMETHODCALLTYPE *GetField )( + __RPC__in ICertConfig2 * This, + /* [in] */ __RPC__in const BSTR strFieldName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrOut); + + DECLSPEC_XFGVIRT(ICertConfig, GetConfig) + HRESULT ( STDMETHODCALLTYPE *GetConfig )( + __RPC__in ICertConfig2 * This, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrOut); + + DECLSPEC_XFGVIRT(ICertConfig2, SetSharedFolder) + HRESULT ( STDMETHODCALLTYPE *SetSharedFolder )( + __RPC__in ICertConfig2 * This, + /* [in] */ __RPC__in const BSTR strSharedFolder); + + END_INTERFACE + } ICertConfig2Vtbl; + + interface ICertConfig2 + { + CONST_VTBL struct ICertConfig2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertConfig2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertConfig2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertConfig2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertConfig2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertConfig2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertConfig2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertConfig2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertConfig2_Reset(This,Index,pCount) \ + ( (This)->lpVtbl -> Reset(This,Index,pCount) ) + +#define ICertConfig2_Next(This,pIndex) \ + ( (This)->lpVtbl -> Next(This,pIndex) ) + +#define ICertConfig2_GetField(This,strFieldName,pstrOut) \ + ( (This)->lpVtbl -> GetField(This,strFieldName,pstrOut) ) + +#define ICertConfig2_GetConfig(This,Flags,pstrOut) \ + ( (This)->lpVtbl -> GetConfig(This,Flags,pstrOut) ) + + +#define ICertConfig2_SetSharedFolder(This,strSharedFolder) \ + ( (This)->lpVtbl -> SetSharedFolder(This,strSharedFolder) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertConfig2_INTERFACE_DEFINED__ */ + + +#ifndef __ICertRequest_INTERFACE_DEFINED__ +#define __ICertRequest_INTERFACE_DEFINED__ + +/* interface ICertRequest */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertRequest; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("014e4840-5523-11d0-8812-00a0c903b83c") + ICertRequest : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Submit( + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const BSTR strRequest, + /* [in] */ __RPC__in const BSTR strAttributes, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pDisposition) = 0; + + virtual HRESULT STDMETHODCALLTYPE RetrievePending( + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pDisposition) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLastStatus( + /* [retval][out] */ __RPC__out LONG *pStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRequestId( + /* [retval][out] */ __RPC__out LONG *pRequestId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDispositionMessage( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDispositionMessage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCACertificate( + /* [in] */ LONG fExchangeCertificate, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCertificate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificate( + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCertificate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertRequestVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertRequest * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertRequest * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertRequest * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertRequest * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertRequest * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertRequest * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertRequest * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertRequest, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in ICertRequest * This, + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const BSTR strRequest, + /* [in] */ __RPC__in const BSTR strAttributes, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertRequest, RetrievePending) + HRESULT ( STDMETHODCALLTYPE *RetrievePending )( + __RPC__in ICertRequest * This, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertRequest, GetLastStatus) + HRESULT ( STDMETHODCALLTYPE *GetLastStatus )( + __RPC__in ICertRequest * This, + /* [retval][out] */ __RPC__out LONG *pStatus); + + DECLSPEC_XFGVIRT(ICertRequest, GetRequestId) + HRESULT ( STDMETHODCALLTYPE *GetRequestId )( + __RPC__in ICertRequest * This, + /* [retval][out] */ __RPC__out LONG *pRequestId); + + DECLSPEC_XFGVIRT(ICertRequest, GetDispositionMessage) + HRESULT ( STDMETHODCALLTYPE *GetDispositionMessage )( + __RPC__in ICertRequest * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDispositionMessage); + + DECLSPEC_XFGVIRT(ICertRequest, GetCACertificate) + HRESULT ( STDMETHODCALLTYPE *GetCACertificate )( + __RPC__in ICertRequest * This, + /* [in] */ LONG fExchangeCertificate, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCertificate); + + DECLSPEC_XFGVIRT(ICertRequest, GetCertificate) + HRESULT ( STDMETHODCALLTYPE *GetCertificate )( + __RPC__in ICertRequest * This, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCertificate); + + END_INTERFACE + } ICertRequestVtbl; + + interface ICertRequest + { + CONST_VTBL struct ICertRequestVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertRequest_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertRequest_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertRequest_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertRequest_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertRequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertRequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertRequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertRequest_Submit(This,Flags,strRequest,strAttributes,strConfig,pDisposition) \ + ( (This)->lpVtbl -> Submit(This,Flags,strRequest,strAttributes,strConfig,pDisposition) ) + +#define ICertRequest_RetrievePending(This,RequestId,strConfig,pDisposition) \ + ( (This)->lpVtbl -> RetrievePending(This,RequestId,strConfig,pDisposition) ) + +#define ICertRequest_GetLastStatus(This,pStatus) \ + ( (This)->lpVtbl -> GetLastStatus(This,pStatus) ) + +#define ICertRequest_GetRequestId(This,pRequestId) \ + ( (This)->lpVtbl -> GetRequestId(This,pRequestId) ) + +#define ICertRequest_GetDispositionMessage(This,pstrDispositionMessage) \ + ( (This)->lpVtbl -> GetDispositionMessage(This,pstrDispositionMessage) ) + +#define ICertRequest_GetCACertificate(This,fExchangeCertificate,strConfig,Flags,pstrCertificate) \ + ( (This)->lpVtbl -> GetCACertificate(This,fExchangeCertificate,strConfig,Flags,pstrCertificate) ) + +#define ICertRequest_GetCertificate(This,Flags,pstrCertificate) \ + ( (This)->lpVtbl -> GetCertificate(This,Flags,pstrCertificate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertRequest_INTERFACE_DEFINED__ */ + + +#ifndef __ICertRequest2_INTERFACE_DEFINED__ +#define __ICertRequest2_INTERFACE_DEFINED__ + +/* interface ICertRequest2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertRequest2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a4772988-4a85-4fa9-824e-b5cf5c16405a") + ICertRequest2 : public ICertRequest + { + public: + virtual HRESULT STDMETHODCALLTYPE GetIssuedCertificate( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strSerialNumber, + /* [retval][out] */ __RPC__out LONG *pDisposition) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetErrorMessageText( + /* [in] */ LONG hrMessage, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrErrorMessageText) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAProperty( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAPropertyFlags( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [retval][out] */ __RPC__out LONG *pPropFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAPropertyDisplayName( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDisplayName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFullResponseProperty( + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertRequest2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertRequest2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertRequest2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertRequest2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertRequest2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertRequest2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertRequest2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertRequest2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertRequest, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in ICertRequest2 * This, + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const BSTR strRequest, + /* [in] */ __RPC__in const BSTR strAttributes, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertRequest, RetrievePending) + HRESULT ( STDMETHODCALLTYPE *RetrievePending )( + __RPC__in ICertRequest2 * This, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertRequest, GetLastStatus) + HRESULT ( STDMETHODCALLTYPE *GetLastStatus )( + __RPC__in ICertRequest2 * This, + /* [retval][out] */ __RPC__out LONG *pStatus); + + DECLSPEC_XFGVIRT(ICertRequest, GetRequestId) + HRESULT ( STDMETHODCALLTYPE *GetRequestId )( + __RPC__in ICertRequest2 * This, + /* [retval][out] */ __RPC__out LONG *pRequestId); + + DECLSPEC_XFGVIRT(ICertRequest, GetDispositionMessage) + HRESULT ( STDMETHODCALLTYPE *GetDispositionMessage )( + __RPC__in ICertRequest2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDispositionMessage); + + DECLSPEC_XFGVIRT(ICertRequest, GetCACertificate) + HRESULT ( STDMETHODCALLTYPE *GetCACertificate )( + __RPC__in ICertRequest2 * This, + /* [in] */ LONG fExchangeCertificate, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCertificate); + + DECLSPEC_XFGVIRT(ICertRequest, GetCertificate) + HRESULT ( STDMETHODCALLTYPE *GetCertificate )( + __RPC__in ICertRequest2 * This, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCertificate); + + DECLSPEC_XFGVIRT(ICertRequest2, GetIssuedCertificate) + HRESULT ( STDMETHODCALLTYPE *GetIssuedCertificate )( + __RPC__in ICertRequest2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strSerialNumber, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertRequest2, GetErrorMessageText) + HRESULT ( STDMETHODCALLTYPE *GetErrorMessageText )( + __RPC__in ICertRequest2 * This, + /* [in] */ LONG hrMessage, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrErrorMessageText); + + DECLSPEC_XFGVIRT(ICertRequest2, GetCAProperty) + HRESULT ( STDMETHODCALLTYPE *GetCAProperty )( + __RPC__in ICertRequest2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue); + + DECLSPEC_XFGVIRT(ICertRequest2, GetCAPropertyFlags) + HRESULT ( STDMETHODCALLTYPE *GetCAPropertyFlags )( + __RPC__in ICertRequest2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [retval][out] */ __RPC__out LONG *pPropFlags); + + DECLSPEC_XFGVIRT(ICertRequest2, GetCAPropertyDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetCAPropertyDisplayName )( + __RPC__in ICertRequest2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDisplayName); + + DECLSPEC_XFGVIRT(ICertRequest2, GetFullResponseProperty) + HRESULT ( STDMETHODCALLTYPE *GetFullResponseProperty )( + __RPC__in ICertRequest2 * This, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue); + + END_INTERFACE + } ICertRequest2Vtbl; + + interface ICertRequest2 + { + CONST_VTBL struct ICertRequest2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertRequest2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertRequest2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertRequest2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertRequest2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertRequest2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertRequest2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertRequest2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertRequest2_Submit(This,Flags,strRequest,strAttributes,strConfig,pDisposition) \ + ( (This)->lpVtbl -> Submit(This,Flags,strRequest,strAttributes,strConfig,pDisposition) ) + +#define ICertRequest2_RetrievePending(This,RequestId,strConfig,pDisposition) \ + ( (This)->lpVtbl -> RetrievePending(This,RequestId,strConfig,pDisposition) ) + +#define ICertRequest2_GetLastStatus(This,pStatus) \ + ( (This)->lpVtbl -> GetLastStatus(This,pStatus) ) + +#define ICertRequest2_GetRequestId(This,pRequestId) \ + ( (This)->lpVtbl -> GetRequestId(This,pRequestId) ) + +#define ICertRequest2_GetDispositionMessage(This,pstrDispositionMessage) \ + ( (This)->lpVtbl -> GetDispositionMessage(This,pstrDispositionMessage) ) + +#define ICertRequest2_GetCACertificate(This,fExchangeCertificate,strConfig,Flags,pstrCertificate) \ + ( (This)->lpVtbl -> GetCACertificate(This,fExchangeCertificate,strConfig,Flags,pstrCertificate) ) + +#define ICertRequest2_GetCertificate(This,Flags,pstrCertificate) \ + ( (This)->lpVtbl -> GetCertificate(This,Flags,pstrCertificate) ) + + +#define ICertRequest2_GetIssuedCertificate(This,strConfig,RequestId,strSerialNumber,pDisposition) \ + ( (This)->lpVtbl -> GetIssuedCertificate(This,strConfig,RequestId,strSerialNumber,pDisposition) ) + +#define ICertRequest2_GetErrorMessageText(This,hrMessage,Flags,pstrErrorMessageText) \ + ( (This)->lpVtbl -> GetErrorMessageText(This,hrMessage,Flags,pstrErrorMessageText) ) + +#define ICertRequest2_GetCAProperty(This,strConfig,PropId,PropIndex,PropType,Flags,pvarPropertyValue) \ + ( (This)->lpVtbl -> GetCAProperty(This,strConfig,PropId,PropIndex,PropType,Flags,pvarPropertyValue) ) + +#define ICertRequest2_GetCAPropertyFlags(This,strConfig,PropId,pPropFlags) \ + ( (This)->lpVtbl -> GetCAPropertyFlags(This,strConfig,PropId,pPropFlags) ) + +#define ICertRequest2_GetCAPropertyDisplayName(This,strConfig,PropId,pstrDisplayName) \ + ( (This)->lpVtbl -> GetCAPropertyDisplayName(This,strConfig,PropId,pstrDisplayName) ) + +#define ICertRequest2_GetFullResponseProperty(This,PropId,PropIndex,PropType,Flags,pvarPropertyValue) \ + ( (This)->lpVtbl -> GetFullResponseProperty(This,PropId,PropIndex,PropType,Flags,pvarPropertyValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertRequest2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certcli_0000_0005 */ +/* [local] */ + +typedef +enum X509EnrollmentAuthFlags + { + X509AuthNone = 0, + X509AuthAnonymous = 1, + X509AuthKerberos = 2, + X509AuthUsername = 4, + X509AuthCertificate = 8 + } X509EnrollmentAuthFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_certcli_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certcli_0000_0005_v0_0_s_ifspec; + +#ifndef __ICertRequest3_INTERFACE_DEFINED__ +#define __ICertRequest3_INTERFACE_DEFINED__ + +/* interface ICertRequest3 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertRequest3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AFC8F92B-33A2-4861-BF36-2933B7CD67B3") + ICertRequest3 : public ICertRequest2 + { + public: + virtual HRESULT STDMETHODCALLTYPE SetCredential( + /* [in] */ LONG hWnd, + /* [in] */ X509EnrollmentAuthFlags AuthType, + /* [in] */ __RPC__in BSTR strCredential, + /* [in] */ __RPC__in BSTR strPassword) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRequestIdString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrRequestId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIssuedCertificate2( + /* [in] */ __RPC__in BSTR strConfig, + /* [in] */ __RPC__in BSTR strRequestId, + /* [in] */ __RPC__in BSTR strSerialNumber, + /* [retval][out] */ __RPC__out LONG *pDisposition) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRefreshPolicy( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertRequest3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertRequest3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertRequest3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertRequest3 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertRequest3 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertRequest3 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertRequest3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertRequest3 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertRequest, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in ICertRequest3 * This, + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const BSTR strRequest, + /* [in] */ __RPC__in const BSTR strAttributes, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertRequest, RetrievePending) + HRESULT ( STDMETHODCALLTYPE *RetrievePending )( + __RPC__in ICertRequest3 * This, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertRequest, GetLastStatus) + HRESULT ( STDMETHODCALLTYPE *GetLastStatus )( + __RPC__in ICertRequest3 * This, + /* [retval][out] */ __RPC__out LONG *pStatus); + + DECLSPEC_XFGVIRT(ICertRequest, GetRequestId) + HRESULT ( STDMETHODCALLTYPE *GetRequestId )( + __RPC__in ICertRequest3 * This, + /* [retval][out] */ __RPC__out LONG *pRequestId); + + DECLSPEC_XFGVIRT(ICertRequest, GetDispositionMessage) + HRESULT ( STDMETHODCALLTYPE *GetDispositionMessage )( + __RPC__in ICertRequest3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDispositionMessage); + + DECLSPEC_XFGVIRT(ICertRequest, GetCACertificate) + HRESULT ( STDMETHODCALLTYPE *GetCACertificate )( + __RPC__in ICertRequest3 * This, + /* [in] */ LONG fExchangeCertificate, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCertificate); + + DECLSPEC_XFGVIRT(ICertRequest, GetCertificate) + HRESULT ( STDMETHODCALLTYPE *GetCertificate )( + __RPC__in ICertRequest3 * This, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCertificate); + + DECLSPEC_XFGVIRT(ICertRequest2, GetIssuedCertificate) + HRESULT ( STDMETHODCALLTYPE *GetIssuedCertificate )( + __RPC__in ICertRequest3 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in const BSTR strSerialNumber, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertRequest2, GetErrorMessageText) + HRESULT ( STDMETHODCALLTYPE *GetErrorMessageText )( + __RPC__in ICertRequest3 * This, + /* [in] */ LONG hrMessage, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrErrorMessageText); + + DECLSPEC_XFGVIRT(ICertRequest2, GetCAProperty) + HRESULT ( STDMETHODCALLTYPE *GetCAProperty )( + __RPC__in ICertRequest3 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue); + + DECLSPEC_XFGVIRT(ICertRequest2, GetCAPropertyFlags) + HRESULT ( STDMETHODCALLTYPE *GetCAPropertyFlags )( + __RPC__in ICertRequest3 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [retval][out] */ __RPC__out LONG *pPropFlags); + + DECLSPEC_XFGVIRT(ICertRequest2, GetCAPropertyDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetCAPropertyDisplayName )( + __RPC__in ICertRequest3 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG PropId, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDisplayName); + + DECLSPEC_XFGVIRT(ICertRequest2, GetFullResponseProperty) + HRESULT ( STDMETHODCALLTYPE *GetFullResponseProperty )( + __RPC__in ICertRequest3 * This, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue); + + DECLSPEC_XFGVIRT(ICertRequest3, SetCredential) + HRESULT ( STDMETHODCALLTYPE *SetCredential )( + __RPC__in ICertRequest3 * This, + /* [in] */ LONG hWnd, + /* [in] */ X509EnrollmentAuthFlags AuthType, + /* [in] */ __RPC__in BSTR strCredential, + /* [in] */ __RPC__in BSTR strPassword); + + DECLSPEC_XFGVIRT(ICertRequest3, GetRequestIdString) + HRESULT ( STDMETHODCALLTYPE *GetRequestIdString )( + __RPC__in ICertRequest3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrRequestId); + + DECLSPEC_XFGVIRT(ICertRequest3, GetIssuedCertificate2) + HRESULT ( STDMETHODCALLTYPE *GetIssuedCertificate2 )( + __RPC__in ICertRequest3 * This, + /* [in] */ __RPC__in BSTR strConfig, + /* [in] */ __RPC__in BSTR strRequestId, + /* [in] */ __RPC__in BSTR strSerialNumber, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertRequest3, GetRefreshPolicy) + HRESULT ( STDMETHODCALLTYPE *GetRefreshPolicy )( + __RPC__in ICertRequest3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + END_INTERFACE + } ICertRequest3Vtbl; + + interface ICertRequest3 + { + CONST_VTBL struct ICertRequest3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertRequest3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertRequest3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertRequest3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertRequest3_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertRequest3_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertRequest3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertRequest3_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertRequest3_Submit(This,Flags,strRequest,strAttributes,strConfig,pDisposition) \ + ( (This)->lpVtbl -> Submit(This,Flags,strRequest,strAttributes,strConfig,pDisposition) ) + +#define ICertRequest3_RetrievePending(This,RequestId,strConfig,pDisposition) \ + ( (This)->lpVtbl -> RetrievePending(This,RequestId,strConfig,pDisposition) ) + +#define ICertRequest3_GetLastStatus(This,pStatus) \ + ( (This)->lpVtbl -> GetLastStatus(This,pStatus) ) + +#define ICertRequest3_GetRequestId(This,pRequestId) \ + ( (This)->lpVtbl -> GetRequestId(This,pRequestId) ) + +#define ICertRequest3_GetDispositionMessage(This,pstrDispositionMessage) \ + ( (This)->lpVtbl -> GetDispositionMessage(This,pstrDispositionMessage) ) + +#define ICertRequest3_GetCACertificate(This,fExchangeCertificate,strConfig,Flags,pstrCertificate) \ + ( (This)->lpVtbl -> GetCACertificate(This,fExchangeCertificate,strConfig,Flags,pstrCertificate) ) + +#define ICertRequest3_GetCertificate(This,Flags,pstrCertificate) \ + ( (This)->lpVtbl -> GetCertificate(This,Flags,pstrCertificate) ) + + +#define ICertRequest3_GetIssuedCertificate(This,strConfig,RequestId,strSerialNumber,pDisposition) \ + ( (This)->lpVtbl -> GetIssuedCertificate(This,strConfig,RequestId,strSerialNumber,pDisposition) ) + +#define ICertRequest3_GetErrorMessageText(This,hrMessage,Flags,pstrErrorMessageText) \ + ( (This)->lpVtbl -> GetErrorMessageText(This,hrMessage,Flags,pstrErrorMessageText) ) + +#define ICertRequest3_GetCAProperty(This,strConfig,PropId,PropIndex,PropType,Flags,pvarPropertyValue) \ + ( (This)->lpVtbl -> GetCAProperty(This,strConfig,PropId,PropIndex,PropType,Flags,pvarPropertyValue) ) + +#define ICertRequest3_GetCAPropertyFlags(This,strConfig,PropId,pPropFlags) \ + ( (This)->lpVtbl -> GetCAPropertyFlags(This,strConfig,PropId,pPropFlags) ) + +#define ICertRequest3_GetCAPropertyDisplayName(This,strConfig,PropId,pstrDisplayName) \ + ( (This)->lpVtbl -> GetCAPropertyDisplayName(This,strConfig,PropId,pstrDisplayName) ) + +#define ICertRequest3_GetFullResponseProperty(This,PropId,PropIndex,PropType,Flags,pvarPropertyValue) \ + ( (This)->lpVtbl -> GetFullResponseProperty(This,PropId,PropIndex,PropType,Flags,pvarPropertyValue) ) + + +#define ICertRequest3_SetCredential(This,hWnd,AuthType,strCredential,strPassword) \ + ( (This)->lpVtbl -> SetCredential(This,hWnd,AuthType,strCredential,strPassword) ) + +#define ICertRequest3_GetRequestIdString(This,pstrRequestId) \ + ( (This)->lpVtbl -> GetRequestIdString(This,pstrRequestId) ) + +#define ICertRequest3_GetIssuedCertificate2(This,strConfig,strRequestId,strSerialNumber,pDisposition) \ + ( (This)->lpVtbl -> GetIssuedCertificate2(This,strConfig,strRequestId,strSerialNumber,pDisposition) ) + +#define ICertRequest3_GetRefreshPolicy(This,pValue) \ + ( (This)->lpVtbl -> GetRefreshPolicy(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertRequest3_INTERFACE_DEFINED__ */ + + + +#ifndef __CERTCLILib_LIBRARY_DEFINED__ +#define __CERTCLILib_LIBRARY_DEFINED__ + +/* library CERTCLILib */ +/* [helpstring][version][uuid] */ + +#define wszCONFIG_COMMONNAME L"CommonName" +#define wszCONFIG_ORGUNIT L"OrgUnit" +#define wszCONFIG_ORGANIZATION L"Organization" +#define wszCONFIG_LOCALITY L"Locality" +#define wszCONFIG_STATE L"State" +#define wszCONFIG_COUNTRY L"Country" +#define wszCONFIG_CONFIG L"Config" +#define wszCONFIG_EXCHANGECERTIFICATE L"ExchangeCertificate" +#define wszCONFIG_SIGNATURECERTIFICATE L"SignatureCertificate" +#define wszCONFIG_DESCRIPTION L"Description" +#define wszCONFIG_COMMENT L"Comment" // obsolete: use Description +#define wszCONFIG_SERVER L"Server" +#define wszCONFIG_AUTHORITY L"Authority" +#define wszCONFIG_SANITIZEDNAME L"SanitizedName" +#define wszCONFIG_SHORTNAME L"ShortName" +#define wszCONFIG_SANITIZEDSHORTNAME L"SanitizedShortName" +#define wszCONFIG_FLAGS L"Flags" +#define wszCONFIG_WEBENROLLMENTSERVERS L"WebEnrollmentServers" +#define CAIF_DSENTRY ( 0x1 ) + +#define CAIF_SHAREDFOLDERENTRY ( 0x2 ) + +#define CAIF_REGISTRY ( 0x4 ) + +#define CAIF_LOCAL ( 0x8 ) + +#define CAIF_REGISTRYPARENT ( 0x10 ) + +#define CR_IN_BASE64HEADER ( 0 ) + +#define CR_IN_BASE64 ( 0x1 ) + +#define CR_IN_BINARY ( 0x2 ) + +#define CR_IN_ENCODEANY ( 0xff ) + +#define CR_IN_ENCODEMASK ( 0xff ) + +#define CR_IN_FORMATANY ( 0 ) + +#define CR_IN_PKCS10 ( 0x100 ) + +#define CR_IN_KEYGEN ( 0x200 ) + +#define CR_IN_PKCS7 ( 0x300 ) + +#define CR_IN_CMC ( 0x400 ) + +#define CR_IN_CHALLENGERESPONSE ( 0x500 ) + +#define CR_IN_SIGNEDCERTIFICATETIMESTAMPLIST ( 0x600 ) + +#define CR_IN_FORMATMASK ( 0xff00 ) + +#define CR_IN_SCEP ( 0x10000 ) + +#define CR_IN_RPC ( 0x20000 ) + +#define CR_IN_HTTP ( 0x30000 ) + +#define CR_IN_FULLRESPONSE ( 0x40000 ) + +#define CR_IN_CRLS ( 0x80000 ) + +#define CR_IN_MACHINE ( 0x100000 ) + +#define CR_IN_ROBO ( 0x200000 ) + +#define CR_IN_CLIENTIDNONE ( 0x400000 ) + +#define CR_IN_CONNECTONLY ( 0x800000 ) + +#define CR_IN_RETURNCHALLENGE ( 0x1000000 ) + +#define CR_IN_SCEPPOST ( 0x2000000 ) + +#define CR_IN_CERTIFICATETRANSPARENCY ( 0x4000000 ) + +#define CR_IN_PRESIGN ( 0x8000000 ) + +#define CR_IN_CLIENTFLAGSMASK ( ( ( ( ( ( CR_IN_ENCODEMASK | CR_IN_RPC ) | CR_IN_MACHINE ) | CR_IN_CLIENTIDNONE ) | CR_IN_CONNECTONLY ) | CR_IN_RETURNCHALLENGE ) ) + +#define CC_DEFAULTCONFIG ( 0 ) + +#define CC_UIPICKCONFIG ( 0x1 ) + +#define CC_FIRSTCONFIG ( 0x2 ) + +#define CC_LOCALCONFIG ( 0x3 ) + +#define CC_LOCALACTIVECONFIG ( 0x4 ) + +#define CC_UIPICKCONFIGSKIPLOCALCA ( 0x5 ) + +#define CR_DISP_INCOMPLETE ( 0 ) + +#define CR_DISP_ERROR ( 0x1 ) + +#define CR_DISP_DENIED ( 0x2 ) + +#define CR_DISP_ISSUED ( 0x3 ) + +#define CR_DISP_ISSUED_OUT_OF_BAND ( 0x4 ) + +#define CR_DISP_UNDER_SUBMISSION ( 0x5 ) + +#define CR_DISP_REVOKED ( 0x6 ) + +#define CR_OUT_BASE64HEADER ( 0 ) + +#define CR_OUT_BASE64 ( 0x1 ) + +#define CR_OUT_BINARY ( 0x2 ) + +#define CR_OUT_BASE64REQUESTHEADER ( 0x3 ) + +#define CR_OUT_HEX ( 0x4 ) + +#define CR_OUT_HEXASCII ( 0x5 ) + +#define CR_OUT_BASE64X509CRLHEADER ( 0x9 ) + +#define CR_OUT_HEXADDR ( 0xa ) + +#define CR_OUT_HEXASCIIADDR ( 0xb ) + +#define CR_OUT_HEXRAW ( 0xc ) + +#define CR_OUT_ENCODEMASK ( 0xff ) + +#define CR_OUT_CHAIN ( 0x100 ) + +#define CR_OUT_CRLS ( 0x200 ) + +#define CR_OUT_NOCRLF ( 0x40000000 ) + +#define CR_OUT_NOCR ( 0x80000000 ) + +#define CR_GEMT_DEFAULT ( 0 ) + +#define CR_GEMT_HRESULT_STRING ( 0x1 ) + +#define CR_GEMT_HTTP_ERROR ( 0x2 ) + +#define CR_PROP_NONE 0 // Invalid +#define CR_PROP_FILEVERSION 1 // String +#define CR_PROP_PRODUCTVERSION 2 // String +#define CR_PROP_EXITCOUNT 3 // Long + +// CR_PROP_EXITCOUNT Elements: +#define CR_PROP_EXITDESCRIPTION 4 // String, Indexed + +#define CR_PROP_POLICYDESCRIPTION 5 // String +#define CR_PROP_CANAME 6 // String +#define CR_PROP_SANITIZEDCANAME 7 // String +#define CR_PROP_SHAREDFOLDER 8 // String +#define CR_PROP_PARENTCA 9 // String +#define CR_PROP_CATYPE 10 // Long +#define CR_PROP_CASIGCERTCOUNT 11 // Long + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CASIGCERT 12 // Binary, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CASIGCERTCHAIN 13 // Binary, Indexed + +#define CR_PROP_CAXCHGCERTCOUNT 14 // Long + +// CR_PROP_CAXCHGCERTCOUNT Elements: +#define CR_PROP_CAXCHGCERT 15 // Binary, Indexed + +// CR_PROP_CAXCHGCERTCOUNT Elements: +#define CR_PROP_CAXCHGCERTCHAIN 16 // Binary, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +// Fetch only if CR_PROP_CRLSTATE[i] == CA_DISP_VALID +// May also be available if CR_PROP_CRLSTATE[i] == CA_DISP_INVALID +#define CR_PROP_BASECRL 17 // Binary, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +// Fetch only if Delta CRLs enabled && CR_PROP_CRLSTATE[i] == CA_DISP_VALID +// May also be available if CR_PROP_CRLSTATE[i] == CA_DISP_INVALID +#define CR_PROP_DELTACRL 18 // Binary, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CACERTSTATE 19 // Long, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CRLSTATE 20 // Long, Indexed + +#define CR_PROP_CAPROPIDMAX 21 // Long +#define CR_PROP_DNSNAME 22 // String +#define CR_PROP_ROLESEPARATIONENABLED 23 // Long +#define CR_PROP_KRACERTUSEDCOUNT 24 // Long +#define CR_PROP_KRACERTCOUNT 25 // Long + +// CR_PROP_KRACERTCOUNT Elements: +#define CR_PROP_KRACERT 26 // Binary, Indexed + +// CR_PROP_KRACERTCOUNT Elements: +#define CR_PROP_KRACERTSTATE 27 // Long, Indexed + +#define CR_PROP_ADVANCEDSERVER 28 // Long +#define CR_PROP_TEMPLATES 29 // String + +// CR_PROP_CASIGCERTCOUNT Elements: +// Fetch only if CR_PROP_CRLSTATE[i] == CA_DISP_VALID +#define CR_PROP_BASECRLPUBLISHSTATUS 30 // Long, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +// Fetch only if Delta CRLs enabled && CR_PROP_CRLSTATE[i] == CA_DISP_VALID +#define CR_PROP_DELTACRLPUBLISHSTATUS 31 // Long, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CASIGCERTCRLCHAIN 32 // Binary, Indexed + +// CR_PROP_CAXCHGCERTCOUNT Elements: +#define CR_PROP_CAXCHGCERTCRLCHAIN 33 // Binary, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CACERTSTATUSCODE 34 // Long, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CAFORWARDCROSSCERT 35 // Binary, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CABACKWARDCROSSCERT 36 // Binary, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CAFORWARDCROSSCERTSTATE 37 // Long, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CABACKWARDCROSSCERTSTATE 38 // Long, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +#define CR_PROP_CACERTVERSION 39 // Long, Indexed +#define CR_PROP_SANITIZEDCASHORTNAME 40 // String + +// CR_PROP_CERTCDPURLS Elements: +#define CR_PROP_CERTCDPURLS 41 // String, Indexed + +// CR_PROP_CERTAIAURLS Elements: +#define CR_PROP_CERTAIAURLS 42 // String, Indexed + +// CR_PROP_CERTAIAOCSPURLS Elements: +#define CR_PROP_CERTAIAOCSPURLS 43 // String, Indexed + +// CR_PROP_LOCALENAME Elements: +#define CR_PROP_LOCALENAME 44 // String + +// CR_PROP_SUBJECTTEMPLATE_OIDS Elements: +#define CR_PROP_SUBJECTTEMPLATE_OIDS 45 // String +#define CR_PROP_CRLPARTITIONCOUNT 46 // Long +// CR_PROP_CASIGCERTCOUNT Elements: +// Fetch only if CR_PROP_CRLSTATE[i] == CA_DISP_VALID +// May also be available if CR_PROP_CRLSTATE[i] == CA_DISP_INVALID +#define CR_PROP_PARTITIONED_BASECRL 47 // Binary, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +// Fetch only if Delta CRLs enabled && CR_PROP_CRLSTATE[i] == CA_DISP_VALID +// May also be available if CR_PROP_CRLSTATE[i] == CA_DISP_INVALID +#define CR_PROP_PARTITIONED_DELTACRL 48 // Binary, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +// Fetch only if CR_PROP_CRLSTATE[i] == CA_DISP_VALID +#define CR_PROP_PARTITIONED_BASECRLPUBLISHSTATUS 49 // Long, Indexed + +// CR_PROP_CASIGCERTCOUNT Elements: +// Fetch only if Delta CRLs enabled && CR_PROP_CRLSTATE[i] == CA_DISP_VALID +#define CR_PROP_PARTITIONED_DELTACRLPUBLISHSTATUS 50 // Long, Indexed +#define CR_PROP_SCEPSERVERCERTS 1000 // Binary +#define CR_PROP_SCEPSERVERCAPABILITIES 1001 // String +#define CR_PROP_SCEPSERVERCERTSCHAIN 1002 // Binary +#define CR_PROP_SCEPMIN CR_PROP_SCEPSERVERCERTS +#define CR_PROP_SCEPMAX CR_PROP_SCEPSERVERCERTSCHAIN + + +#define FR_PROP_NONE 0 // Invalid +#define FR_PROP_FULLRESPONSE 1 // Binary +#define FR_PROP_STATUSINFOCOUNT 2 // Long + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_BODYPARTSTRING 3 // String, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_STATUS 4 // Long, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_STATUSSTRING 5 // String, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_OTHERINFOCHOICE 6 // Long, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_FAILINFO 7 // Long, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_PENDINFOTOKEN 8 // Binary, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_PENDINFOTIME 9 // Date, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_ISSUEDCERTIFICATEHASH 10 // Binary, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_ISSUEDCERTIFICATE 11 // Binary, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_ISSUEDCERTIFICATECHAIN 12 // Binary, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_ISSUEDCERTIFICATECRLCHAIN 13 // Binary, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_ENCRYPTEDKEYHASH 14 // Binary, Indexed + +#define FR_PROP_FULLRESPONSENOPKCS7 15 // Binary + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_CAEXCHANGECERTIFICATEHASH 16 // Binary, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_CAEXCHANGECERTIFICATE 17 // Binary, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_CAEXCHANGECERTIFICATECHAIN 18 // Binary, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_CAEXCHANGECERTIFICATECRLCHAIN 19 // Binary, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_ATTESTATIONCHALLENGE 20 // Binary, Indexed + +// FR_PROP_STATUSINFOCOUNT Elements: +#define FR_PROP_ATTESTATIONPROVIDERNAME 21 // Binary, Indexed + +// FR_PROP_CLAIMCHALLENGE: +#define FR_PROP_CLAIMCHALLENGE 22 // Long + +EXTERN_C const IID LIBID_CERTCLILib; + +EXTERN_C const CLSID CLSID_CCertGetConfig; + +#ifdef __cplusplus + +class DECLSPEC_UUID("c6cc49b0-ce17-11d0-8833-00a0c903b83c") +CCertGetConfig; +#endif + +EXTERN_C const CLSID CLSID_CCertConfig; + +#ifdef __cplusplus + +class DECLSPEC_UUID("372fce38-4324-11d0-8810-00a0c903b83c") +CCertConfig; +#endif + +EXTERN_C const CLSID CLSID_CCertRequest; + +#ifdef __cplusplus + +class DECLSPEC_UUID("98aff3f0-5524-11d0-8812-00a0c903b83c") +CCertRequest; +#endif + +EXTERN_C const CLSID CLSID_CCertServerPolicy; + +#ifdef __cplusplus + +class DECLSPEC_UUID("aa000926-ffbe-11cf-8800-00a0c903b83c") +CCertServerPolicy; +#endif + +EXTERN_C const CLSID CLSID_CCertServerExit; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4c4a5e40-732c-11d0-8816-00a0c903b83c") +CCertServerExit; +#endif +#endif /* __CERTCLILib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_certcli_0000_0007 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certcli_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certcli_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertEnc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertEnc.h new file mode 100644 index 0000000000000000000000000000000000000000..3bb9bcc4a7059bd2161c89c4ab663b2133fb1e9c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertEnc.h @@ -0,0 +1,2871 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __certenc_h__ +#define __certenc_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICertEncodeStringArray_FWD_DEFINED__ +#define __ICertEncodeStringArray_FWD_DEFINED__ +typedef interface ICertEncodeStringArray ICertEncodeStringArray; + +#endif /* __ICertEncodeStringArray_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeStringArray2_FWD_DEFINED__ +#define __ICertEncodeStringArray2_FWD_DEFINED__ +typedef interface ICertEncodeStringArray2 ICertEncodeStringArray2; + +#endif /* __ICertEncodeStringArray2_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeLongArray_FWD_DEFINED__ +#define __ICertEncodeLongArray_FWD_DEFINED__ +typedef interface ICertEncodeLongArray ICertEncodeLongArray; + +#endif /* __ICertEncodeLongArray_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeLongArray2_FWD_DEFINED__ +#define __ICertEncodeLongArray2_FWD_DEFINED__ +typedef interface ICertEncodeLongArray2 ICertEncodeLongArray2; + +#endif /* __ICertEncodeLongArray2_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeDateArray_FWD_DEFINED__ +#define __ICertEncodeDateArray_FWD_DEFINED__ +typedef interface ICertEncodeDateArray ICertEncodeDateArray; + +#endif /* __ICertEncodeDateArray_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeDateArray2_FWD_DEFINED__ +#define __ICertEncodeDateArray2_FWD_DEFINED__ +typedef interface ICertEncodeDateArray2 ICertEncodeDateArray2; + +#endif /* __ICertEncodeDateArray2_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeCRLDistInfo_FWD_DEFINED__ +#define __ICertEncodeCRLDistInfo_FWD_DEFINED__ +typedef interface ICertEncodeCRLDistInfo ICertEncodeCRLDistInfo; + +#endif /* __ICertEncodeCRLDistInfo_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeCRLDistInfo2_FWD_DEFINED__ +#define __ICertEncodeCRLDistInfo2_FWD_DEFINED__ +typedef interface ICertEncodeCRLDistInfo2 ICertEncodeCRLDistInfo2; + +#endif /* __ICertEncodeCRLDistInfo2_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeAltName_FWD_DEFINED__ +#define __ICertEncodeAltName_FWD_DEFINED__ +typedef interface ICertEncodeAltName ICertEncodeAltName; + +#endif /* __ICertEncodeAltName_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeAltName2_FWD_DEFINED__ +#define __ICertEncodeAltName2_FWD_DEFINED__ +typedef interface ICertEncodeAltName2 ICertEncodeAltName2; + +#endif /* __ICertEncodeAltName2_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeBitString_FWD_DEFINED__ +#define __ICertEncodeBitString_FWD_DEFINED__ +typedef interface ICertEncodeBitString ICertEncodeBitString; + +#endif /* __ICertEncodeBitString_FWD_DEFINED__ */ + + +#ifndef __ICertEncodeBitString2_FWD_DEFINED__ +#define __ICertEncodeBitString2_FWD_DEFINED__ +typedef interface ICertEncodeBitString2 ICertEncodeBitString2; + +#endif /* __ICertEncodeBitString2_FWD_DEFINED__ */ + + +#ifndef __CCertEncodeStringArray_FWD_DEFINED__ +#define __CCertEncodeStringArray_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertEncodeStringArray CCertEncodeStringArray; +#else +typedef struct CCertEncodeStringArray CCertEncodeStringArray; +#endif /* __cplusplus */ + +#endif /* __CCertEncodeStringArray_FWD_DEFINED__ */ + + +#ifndef __CCertEncodeLongArray_FWD_DEFINED__ +#define __CCertEncodeLongArray_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertEncodeLongArray CCertEncodeLongArray; +#else +typedef struct CCertEncodeLongArray CCertEncodeLongArray; +#endif /* __cplusplus */ + +#endif /* __CCertEncodeLongArray_FWD_DEFINED__ */ + + +#ifndef __CCertEncodeDateArray_FWD_DEFINED__ +#define __CCertEncodeDateArray_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertEncodeDateArray CCertEncodeDateArray; +#else +typedef struct CCertEncodeDateArray CCertEncodeDateArray; +#endif /* __cplusplus */ + +#endif /* __CCertEncodeDateArray_FWD_DEFINED__ */ + + +#ifndef __CCertEncodeCRLDistInfo_FWD_DEFINED__ +#define __CCertEncodeCRLDistInfo_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertEncodeCRLDistInfo CCertEncodeCRLDistInfo; +#else +typedef struct CCertEncodeCRLDistInfo CCertEncodeCRLDistInfo; +#endif /* __cplusplus */ + +#endif /* __CCertEncodeCRLDistInfo_FWD_DEFINED__ */ + + +#ifndef __CCertEncodeAltName_FWD_DEFINED__ +#define __CCertEncodeAltName_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertEncodeAltName CCertEncodeAltName; +#else +typedef struct CCertEncodeAltName CCertEncodeAltName; +#endif /* __cplusplus */ + +#endif /* __CCertEncodeAltName_FWD_DEFINED__ */ + + +#ifndef __CCertEncodeBitString_FWD_DEFINED__ +#define __CCertEncodeBitString_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertEncodeBitString CCertEncodeBitString; +#else +typedef struct CCertEncodeBitString CCertEncodeBitString; +#endif /* __cplusplus */ + +#endif /* __CCertEncodeBitString_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "certenroll.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certenc_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_certenc_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenc_0000_0000_v0_0_s_ifspec; + +#ifndef __ICertEncodeStringArray_INTERFACE_DEFINED__ +#define __ICertEncodeStringArray_INTERFACE_DEFINED__ + +/* interface ICertEncodeStringArray */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeStringArray; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("12a88820-7494-11d0-8816-00a0c903b83c") + ICertEncodeStringArray : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Decode( + /* [in] */ __RPC__in const BSTR strBinary) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStringType( + /* [retval][out] */ __RPC__out LONG *pStringType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [retval][out] */ __RPC__out LONG *pCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( + /* [in] */ LONG Count, + /* [in] */ LONG StringType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetValue( + /* [in] */ LONG Index, + /* [in] */ __RPC__in const BSTR str) = 0; + + virtual HRESULT STDMETHODCALLTYPE Encode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeStringArrayVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeStringArray * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeStringArray * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeStringArray * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeStringArray * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeStringArray * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeStringArray * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeStringArray * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeStringArray * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, GetStringType) + HRESULT ( STDMETHODCALLTYPE *GetStringType )( + __RPC__in ICertEncodeStringArray * This, + /* [retval][out] */ __RPC__out LONG *pStringType); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in ICertEncodeStringArray * This, + /* [retval][out] */ __RPC__out LONG *pCount); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ICertEncodeStringArray * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstr); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertEncodeStringArray * This, + /* [in] */ LONG Count, + /* [in] */ LONG StringType); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, SetValue) + HRESULT ( STDMETHODCALLTYPE *SetValue )( + __RPC__in ICertEncodeStringArray * This, + /* [in] */ LONG Index, + /* [in] */ __RPC__in const BSTR str); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeStringArray * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + END_INTERFACE + } ICertEncodeStringArrayVtbl; + + interface ICertEncodeStringArray + { + CONST_VTBL struct ICertEncodeStringArrayVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeStringArray_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeStringArray_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeStringArray_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeStringArray_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeStringArray_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeStringArray_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeStringArray_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeStringArray_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeStringArray_GetStringType(This,pStringType) \ + ( (This)->lpVtbl -> GetStringType(This,pStringType) ) + +#define ICertEncodeStringArray_GetCount(This,pCount) \ + ( (This)->lpVtbl -> GetCount(This,pCount) ) + +#define ICertEncodeStringArray_GetValue(This,Index,pstr) \ + ( (This)->lpVtbl -> GetValue(This,Index,pstr) ) + +#define ICertEncodeStringArray_Reset(This,Count,StringType) \ + ( (This)->lpVtbl -> Reset(This,Count,StringType) ) + +#define ICertEncodeStringArray_SetValue(This,Index,str) \ + ( (This)->lpVtbl -> SetValue(This,Index,str) ) + +#define ICertEncodeStringArray_Encode(This,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,pstrBinary) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeStringArray_INTERFACE_DEFINED__ */ + + +#ifndef __ICertEncodeStringArray2_INTERFACE_DEFINED__ +#define __ICertEncodeStringArray2_INTERFACE_DEFINED__ + +/* interface ICertEncodeStringArray2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeStringArray2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9c680d93-9b7d-4e95-9018-4ffe10ba5ada") + ICertEncodeStringArray2 : public ICertEncodeStringArray + { + public: + virtual HRESULT STDMETHODCALLTYPE DecodeBlob( + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual HRESULT STDMETHODCALLTYPE EncodeBlob( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeStringArray2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeStringArray2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeStringArray2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeStringArray2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeStringArray2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeStringArray2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeStringArray2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeStringArray2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeStringArray2 * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, GetStringType) + HRESULT ( STDMETHODCALLTYPE *GetStringType )( + __RPC__in ICertEncodeStringArray2 * This, + /* [retval][out] */ __RPC__out LONG *pStringType); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in ICertEncodeStringArray2 * This, + /* [retval][out] */ __RPC__out LONG *pCount); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ICertEncodeStringArray2 * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstr); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertEncodeStringArray2 * This, + /* [in] */ LONG Count, + /* [in] */ LONG StringType); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, SetValue) + HRESULT ( STDMETHODCALLTYPE *SetValue )( + __RPC__in ICertEncodeStringArray2 * This, + /* [in] */ LONG Index, + /* [in] */ __RPC__in const BSTR str); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeStringArray2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray2, DecodeBlob) + HRESULT ( STDMETHODCALLTYPE *DecodeBlob )( + __RPC__in ICertEncodeStringArray2 * This, + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(ICertEncodeStringArray2, EncodeBlob) + HRESULT ( STDMETHODCALLTYPE *EncodeBlob )( + __RPC__in ICertEncodeStringArray2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData); + + END_INTERFACE + } ICertEncodeStringArray2Vtbl; + + interface ICertEncodeStringArray2 + { + CONST_VTBL struct ICertEncodeStringArray2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeStringArray2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeStringArray2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeStringArray2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeStringArray2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeStringArray2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeStringArray2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeStringArray2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeStringArray2_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeStringArray2_GetStringType(This,pStringType) \ + ( (This)->lpVtbl -> GetStringType(This,pStringType) ) + +#define ICertEncodeStringArray2_GetCount(This,pCount) \ + ( (This)->lpVtbl -> GetCount(This,pCount) ) + +#define ICertEncodeStringArray2_GetValue(This,Index,pstr) \ + ( (This)->lpVtbl -> GetValue(This,Index,pstr) ) + +#define ICertEncodeStringArray2_Reset(This,Count,StringType) \ + ( (This)->lpVtbl -> Reset(This,Count,StringType) ) + +#define ICertEncodeStringArray2_SetValue(This,Index,str) \ + ( (This)->lpVtbl -> SetValue(This,Index,str) ) + +#define ICertEncodeStringArray2_Encode(This,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,pstrBinary) ) + + +#define ICertEncodeStringArray2_DecodeBlob(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> DecodeBlob(This,strEncodedData,Encoding) ) + +#define ICertEncodeStringArray2_EncodeBlob(This,Encoding,pstrEncodedData) \ + ( (This)->lpVtbl -> EncodeBlob(This,Encoding,pstrEncodedData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeStringArray2_INTERFACE_DEFINED__ */ + + +#ifndef __ICertEncodeLongArray_INTERFACE_DEFINED__ +#define __ICertEncodeLongArray_INTERFACE_DEFINED__ + +/* interface ICertEncodeLongArray */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeLongArray; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("15e2f230-a0a2-11d0-8821-00a0c903b83c") + ICertEncodeLongArray : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Decode( + /* [in] */ __RPC__in const BSTR strBinary) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [retval][out] */ __RPC__out LONG *pCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( + /* [in] */ LONG Count) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetValue( + /* [in] */ LONG Index, + /* [in] */ LONG Value) = 0; + + virtual HRESULT STDMETHODCALLTYPE Encode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeLongArrayVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeLongArray * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeLongArray * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeLongArray * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeLongArray * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeLongArray * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeLongArray * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeLongArray * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeLongArray * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in ICertEncodeLongArray * This, + /* [retval][out] */ __RPC__out LONG *pCount); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ICertEncodeLongArray * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertEncodeLongArray * This, + /* [in] */ LONG Count); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, SetValue) + HRESULT ( STDMETHODCALLTYPE *SetValue )( + __RPC__in ICertEncodeLongArray * This, + /* [in] */ LONG Index, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeLongArray * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + END_INTERFACE + } ICertEncodeLongArrayVtbl; + + interface ICertEncodeLongArray + { + CONST_VTBL struct ICertEncodeLongArrayVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeLongArray_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeLongArray_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeLongArray_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeLongArray_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeLongArray_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeLongArray_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeLongArray_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeLongArray_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeLongArray_GetCount(This,pCount) \ + ( (This)->lpVtbl -> GetCount(This,pCount) ) + +#define ICertEncodeLongArray_GetValue(This,Index,pValue) \ + ( (This)->lpVtbl -> GetValue(This,Index,pValue) ) + +#define ICertEncodeLongArray_Reset(This,Count) \ + ( (This)->lpVtbl -> Reset(This,Count) ) + +#define ICertEncodeLongArray_SetValue(This,Index,Value) \ + ( (This)->lpVtbl -> SetValue(This,Index,Value) ) + +#define ICertEncodeLongArray_Encode(This,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,pstrBinary) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeLongArray_INTERFACE_DEFINED__ */ + + +#ifndef __ICertEncodeLongArray2_INTERFACE_DEFINED__ +#define __ICertEncodeLongArray2_INTERFACE_DEFINED__ + +/* interface ICertEncodeLongArray2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeLongArray2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4efde84a-bd9b-4fc2-a108-c347d478840f") + ICertEncodeLongArray2 : public ICertEncodeLongArray + { + public: + virtual HRESULT STDMETHODCALLTYPE DecodeBlob( + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual HRESULT STDMETHODCALLTYPE EncodeBlob( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeLongArray2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeLongArray2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeLongArray2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeLongArray2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeLongArray2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeLongArray2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeLongArray2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeLongArray2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeLongArray2 * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in ICertEncodeLongArray2 * This, + /* [retval][out] */ __RPC__out LONG *pCount); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ICertEncodeLongArray2 * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertEncodeLongArray2 * This, + /* [in] */ LONG Count); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, SetValue) + HRESULT ( STDMETHODCALLTYPE *SetValue )( + __RPC__in ICertEncodeLongArray2 * This, + /* [in] */ LONG Index, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeLongArray2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray2, DecodeBlob) + HRESULT ( STDMETHODCALLTYPE *DecodeBlob )( + __RPC__in ICertEncodeLongArray2 * This, + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(ICertEncodeLongArray2, EncodeBlob) + HRESULT ( STDMETHODCALLTYPE *EncodeBlob )( + __RPC__in ICertEncodeLongArray2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData); + + END_INTERFACE + } ICertEncodeLongArray2Vtbl; + + interface ICertEncodeLongArray2 + { + CONST_VTBL struct ICertEncodeLongArray2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeLongArray2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeLongArray2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeLongArray2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeLongArray2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeLongArray2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeLongArray2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeLongArray2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeLongArray2_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeLongArray2_GetCount(This,pCount) \ + ( (This)->lpVtbl -> GetCount(This,pCount) ) + +#define ICertEncodeLongArray2_GetValue(This,Index,pValue) \ + ( (This)->lpVtbl -> GetValue(This,Index,pValue) ) + +#define ICertEncodeLongArray2_Reset(This,Count) \ + ( (This)->lpVtbl -> Reset(This,Count) ) + +#define ICertEncodeLongArray2_SetValue(This,Index,Value) \ + ( (This)->lpVtbl -> SetValue(This,Index,Value) ) + +#define ICertEncodeLongArray2_Encode(This,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,pstrBinary) ) + + +#define ICertEncodeLongArray2_DecodeBlob(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> DecodeBlob(This,strEncodedData,Encoding) ) + +#define ICertEncodeLongArray2_EncodeBlob(This,Encoding,pstrEncodedData) \ + ( (This)->lpVtbl -> EncodeBlob(This,Encoding,pstrEncodedData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeLongArray2_INTERFACE_DEFINED__ */ + + +#ifndef __ICertEncodeDateArray_INTERFACE_DEFINED__ +#define __ICertEncodeDateArray_INTERFACE_DEFINED__ + +/* interface ICertEncodeDateArray */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeDateArray; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2f9469a0-a470-11d0-8821-00a0c903b83c") + ICertEncodeDateArray : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Decode( + /* [in] */ __RPC__in const BSTR strBinary) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [retval][out] */ __RPC__out LONG *pCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out DATE *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( + /* [in] */ LONG Count) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetValue( + /* [in] */ LONG Index, + /* [in] */ DATE Value) = 0; + + virtual HRESULT STDMETHODCALLTYPE Encode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeDateArrayVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeDateArray * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeDateArray * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeDateArray * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeDateArray * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeDateArray * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeDateArray * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeDateArray * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeDateArray * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in ICertEncodeDateArray * This, + /* [retval][out] */ __RPC__out LONG *pCount); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ICertEncodeDateArray * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out DATE *pValue); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertEncodeDateArray * This, + /* [in] */ LONG Count); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, SetValue) + HRESULT ( STDMETHODCALLTYPE *SetValue )( + __RPC__in ICertEncodeDateArray * This, + /* [in] */ LONG Index, + /* [in] */ DATE Value); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeDateArray * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + END_INTERFACE + } ICertEncodeDateArrayVtbl; + + interface ICertEncodeDateArray + { + CONST_VTBL struct ICertEncodeDateArrayVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeDateArray_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeDateArray_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeDateArray_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeDateArray_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeDateArray_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeDateArray_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeDateArray_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeDateArray_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeDateArray_GetCount(This,pCount) \ + ( (This)->lpVtbl -> GetCount(This,pCount) ) + +#define ICertEncodeDateArray_GetValue(This,Index,pValue) \ + ( (This)->lpVtbl -> GetValue(This,Index,pValue) ) + +#define ICertEncodeDateArray_Reset(This,Count) \ + ( (This)->lpVtbl -> Reset(This,Count) ) + +#define ICertEncodeDateArray_SetValue(This,Index,Value) \ + ( (This)->lpVtbl -> SetValue(This,Index,Value) ) + +#define ICertEncodeDateArray_Encode(This,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,pstrBinary) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeDateArray_INTERFACE_DEFINED__ */ + + +#ifndef __ICertEncodeDateArray2_INTERFACE_DEFINED__ +#define __ICertEncodeDateArray2_INTERFACE_DEFINED__ + +/* interface ICertEncodeDateArray2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeDateArray2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("99a4edb5-2b8e-448d-bf95-bba8d7789dc8") + ICertEncodeDateArray2 : public ICertEncodeDateArray + { + public: + virtual HRESULT STDMETHODCALLTYPE DecodeBlob( + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual HRESULT STDMETHODCALLTYPE EncodeBlob( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeDateArray2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeDateArray2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeDateArray2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeDateArray2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeDateArray2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeDateArray2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeDateArray2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeDateArray2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeDateArray2 * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in ICertEncodeDateArray2 * This, + /* [retval][out] */ __RPC__out LONG *pCount); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ICertEncodeDateArray2 * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out DATE *pValue); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertEncodeDateArray2 * This, + /* [in] */ LONG Count); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, SetValue) + HRESULT ( STDMETHODCALLTYPE *SetValue )( + __RPC__in ICertEncodeDateArray2 * This, + /* [in] */ LONG Index, + /* [in] */ DATE Value); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeDateArray2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray2, DecodeBlob) + HRESULT ( STDMETHODCALLTYPE *DecodeBlob )( + __RPC__in ICertEncodeDateArray2 * This, + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(ICertEncodeDateArray2, EncodeBlob) + HRESULT ( STDMETHODCALLTYPE *EncodeBlob )( + __RPC__in ICertEncodeDateArray2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData); + + END_INTERFACE + } ICertEncodeDateArray2Vtbl; + + interface ICertEncodeDateArray2 + { + CONST_VTBL struct ICertEncodeDateArray2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeDateArray2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeDateArray2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeDateArray2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeDateArray2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeDateArray2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeDateArray2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeDateArray2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeDateArray2_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeDateArray2_GetCount(This,pCount) \ + ( (This)->lpVtbl -> GetCount(This,pCount) ) + +#define ICertEncodeDateArray2_GetValue(This,Index,pValue) \ + ( (This)->lpVtbl -> GetValue(This,Index,pValue) ) + +#define ICertEncodeDateArray2_Reset(This,Count) \ + ( (This)->lpVtbl -> Reset(This,Count) ) + +#define ICertEncodeDateArray2_SetValue(This,Index,Value) \ + ( (This)->lpVtbl -> SetValue(This,Index,Value) ) + +#define ICertEncodeDateArray2_Encode(This,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,pstrBinary) ) + + +#define ICertEncodeDateArray2_DecodeBlob(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> DecodeBlob(This,strEncodedData,Encoding) ) + +#define ICertEncodeDateArray2_EncodeBlob(This,Encoding,pstrEncodedData) \ + ( (This)->lpVtbl -> EncodeBlob(This,Encoding,pstrEncodedData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeDateArray2_INTERFACE_DEFINED__ */ + + +#ifndef __ICertEncodeCRLDistInfo_INTERFACE_DEFINED__ +#define __ICertEncodeCRLDistInfo_INTERFACE_DEFINED__ + +/* interface ICertEncodeCRLDistInfo */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeCRLDistInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("01958640-bbff-11d0-8825-00a0c903b83c") + ICertEncodeCRLDistInfo : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Decode( + /* [in] */ __RPC__in const BSTR strBinary) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDistPointCount( + /* [retval][out] */ __RPC__out LONG *pDistPointCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNameCount( + /* [in] */ LONG DistPointIndex, + /* [retval][out] */ __RPC__out LONG *pNameCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNameChoice( + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__out LONG *pNameChoice) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( + /* [in] */ LONG DistPointCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetNameCount( + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetNameEntry( + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameIndex, + /* [in] */ LONG NameChoice, + /* [in] */ __RPC__in const BSTR strName) = 0; + + virtual HRESULT STDMETHODCALLTYPE Encode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeCRLDistInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeCRLDistInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeCRLDistInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeCRLDistInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, GetDistPointCount) + HRESULT ( STDMETHODCALLTYPE *GetDistPointCount )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [retval][out] */ __RPC__out LONG *pDistPointCount); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, GetNameCount) + HRESULT ( STDMETHODCALLTYPE *GetNameCount )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [in] */ LONG DistPointIndex, + /* [retval][out] */ __RPC__out LONG *pNameCount); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, GetNameChoice) + HRESULT ( STDMETHODCALLTYPE *GetNameChoice )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__out LONG *pNameChoice); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrName); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [in] */ LONG DistPointCount); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, SetNameCount) + HRESULT ( STDMETHODCALLTYPE *SetNameCount )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameCount); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, SetNameEntry) + HRESULT ( STDMETHODCALLTYPE *SetNameEntry )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameIndex, + /* [in] */ LONG NameChoice, + /* [in] */ __RPC__in const BSTR strName); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeCRLDistInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + END_INTERFACE + } ICertEncodeCRLDistInfoVtbl; + + interface ICertEncodeCRLDistInfo + { + CONST_VTBL struct ICertEncodeCRLDistInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeCRLDistInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeCRLDistInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeCRLDistInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeCRLDistInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeCRLDistInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeCRLDistInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeCRLDistInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeCRLDistInfo_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeCRLDistInfo_GetDistPointCount(This,pDistPointCount) \ + ( (This)->lpVtbl -> GetDistPointCount(This,pDistPointCount) ) + +#define ICertEncodeCRLDistInfo_GetNameCount(This,DistPointIndex,pNameCount) \ + ( (This)->lpVtbl -> GetNameCount(This,DistPointIndex,pNameCount) ) + +#define ICertEncodeCRLDistInfo_GetNameChoice(This,DistPointIndex,NameIndex,pNameChoice) \ + ( (This)->lpVtbl -> GetNameChoice(This,DistPointIndex,NameIndex,pNameChoice) ) + +#define ICertEncodeCRLDistInfo_GetName(This,DistPointIndex,NameIndex,pstrName) \ + ( (This)->lpVtbl -> GetName(This,DistPointIndex,NameIndex,pstrName) ) + +#define ICertEncodeCRLDistInfo_Reset(This,DistPointCount) \ + ( (This)->lpVtbl -> Reset(This,DistPointCount) ) + +#define ICertEncodeCRLDistInfo_SetNameCount(This,DistPointIndex,NameCount) \ + ( (This)->lpVtbl -> SetNameCount(This,DistPointIndex,NameCount) ) + +#define ICertEncodeCRLDistInfo_SetNameEntry(This,DistPointIndex,NameIndex,NameChoice,strName) \ + ( (This)->lpVtbl -> SetNameEntry(This,DistPointIndex,NameIndex,NameChoice,strName) ) + +#define ICertEncodeCRLDistInfo_Encode(This,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,pstrBinary) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeCRLDistInfo_INTERFACE_DEFINED__ */ + + +#ifndef __ICertEncodeCRLDistInfo2_INTERFACE_DEFINED__ +#define __ICertEncodeCRLDistInfo2_INTERFACE_DEFINED__ + +/* interface ICertEncodeCRLDistInfo2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeCRLDistInfo2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b4275d4b-3e30-446f-ad36-09d03120b078") + ICertEncodeCRLDistInfo2 : public ICertEncodeCRLDistInfo + { + public: + virtual HRESULT STDMETHODCALLTYPE DecodeBlob( + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual HRESULT STDMETHODCALLTYPE EncodeBlob( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeCRLDistInfo2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeCRLDistInfo2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeCRLDistInfo2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeCRLDistInfo2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, GetDistPointCount) + HRESULT ( STDMETHODCALLTYPE *GetDistPointCount )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [retval][out] */ __RPC__out LONG *pDistPointCount); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, GetNameCount) + HRESULT ( STDMETHODCALLTYPE *GetNameCount )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ LONG DistPointIndex, + /* [retval][out] */ __RPC__out LONG *pNameCount); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, GetNameChoice) + HRESULT ( STDMETHODCALLTYPE *GetNameChoice )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__out LONG *pNameChoice); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrName); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ LONG DistPointCount); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, SetNameCount) + HRESULT ( STDMETHODCALLTYPE *SetNameCount )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameCount); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, SetNameEntry) + HRESULT ( STDMETHODCALLTYPE *SetNameEntry )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ LONG DistPointIndex, + /* [in] */ LONG NameIndex, + /* [in] */ LONG NameChoice, + /* [in] */ __RPC__in const BSTR strName); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo2, DecodeBlob) + HRESULT ( STDMETHODCALLTYPE *DecodeBlob )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(ICertEncodeCRLDistInfo2, EncodeBlob) + HRESULT ( STDMETHODCALLTYPE *EncodeBlob )( + __RPC__in ICertEncodeCRLDistInfo2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData); + + END_INTERFACE + } ICertEncodeCRLDistInfo2Vtbl; + + interface ICertEncodeCRLDistInfo2 + { + CONST_VTBL struct ICertEncodeCRLDistInfo2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeCRLDistInfo2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeCRLDistInfo2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeCRLDistInfo2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeCRLDistInfo2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeCRLDistInfo2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeCRLDistInfo2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeCRLDistInfo2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeCRLDistInfo2_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeCRLDistInfo2_GetDistPointCount(This,pDistPointCount) \ + ( (This)->lpVtbl -> GetDistPointCount(This,pDistPointCount) ) + +#define ICertEncodeCRLDistInfo2_GetNameCount(This,DistPointIndex,pNameCount) \ + ( (This)->lpVtbl -> GetNameCount(This,DistPointIndex,pNameCount) ) + +#define ICertEncodeCRLDistInfo2_GetNameChoice(This,DistPointIndex,NameIndex,pNameChoice) \ + ( (This)->lpVtbl -> GetNameChoice(This,DistPointIndex,NameIndex,pNameChoice) ) + +#define ICertEncodeCRLDistInfo2_GetName(This,DistPointIndex,NameIndex,pstrName) \ + ( (This)->lpVtbl -> GetName(This,DistPointIndex,NameIndex,pstrName) ) + +#define ICertEncodeCRLDistInfo2_Reset(This,DistPointCount) \ + ( (This)->lpVtbl -> Reset(This,DistPointCount) ) + +#define ICertEncodeCRLDistInfo2_SetNameCount(This,DistPointIndex,NameCount) \ + ( (This)->lpVtbl -> SetNameCount(This,DistPointIndex,NameCount) ) + +#define ICertEncodeCRLDistInfo2_SetNameEntry(This,DistPointIndex,NameIndex,NameChoice,strName) \ + ( (This)->lpVtbl -> SetNameEntry(This,DistPointIndex,NameIndex,NameChoice,strName) ) + +#define ICertEncodeCRLDistInfo2_Encode(This,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,pstrBinary) ) + + +#define ICertEncodeCRLDistInfo2_DecodeBlob(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> DecodeBlob(This,strEncodedData,Encoding) ) + +#define ICertEncodeCRLDistInfo2_EncodeBlob(This,Encoding,pstrEncodedData) \ + ( (This)->lpVtbl -> EncodeBlob(This,Encoding,pstrEncodedData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeCRLDistInfo2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenc_0000_0008 */ +/* [local] */ + +#define EAN_NAMEOBJECTID ( 0x80000000 ) + +#define EANR_SUPPRESS_IA5CONVERSION ( 0x80000000 ) + + + +extern RPC_IF_HANDLE __MIDL_itf_certenc_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenc_0000_0008_v0_0_s_ifspec; + +#ifndef __ICertEncodeAltName_INTERFACE_DEFINED__ +#define __ICertEncodeAltName_INTERFACE_DEFINED__ + +/* interface ICertEncodeAltName */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeAltName; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1c9a8c70-1271-11d1-9bd4-00c04fb683fa") + ICertEncodeAltName : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Decode( + /* [in] */ __RPC__in const BSTR strBinary) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNameCount( + /* [retval][out] */ __RPC__out LONG *pNameCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNameChoice( + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__out LONG *pNameChoice) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( + /* [in] */ LONG NameCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetNameEntry( + /* [in] */ LONG NameIndex, + /* [in] */ LONG NameChoice, + /* [in] */ __RPC__in const BSTR strName) = 0; + + virtual HRESULT STDMETHODCALLTYPE Encode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeAltNameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeAltName * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeAltName * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeAltName * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeAltName * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeAltName * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeAltName * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeAltName * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeAltName * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, GetNameCount) + HRESULT ( STDMETHODCALLTYPE *GetNameCount )( + __RPC__in ICertEncodeAltName * This, + /* [retval][out] */ __RPC__out LONG *pNameCount); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, GetNameChoice) + HRESULT ( STDMETHODCALLTYPE *GetNameChoice )( + __RPC__in ICertEncodeAltName * This, + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__out LONG *pNameChoice); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in ICertEncodeAltName * This, + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrName); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertEncodeAltName * This, + /* [in] */ LONG NameCount); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, SetNameEntry) + HRESULT ( STDMETHODCALLTYPE *SetNameEntry )( + __RPC__in ICertEncodeAltName * This, + /* [in] */ LONG NameIndex, + /* [in] */ LONG NameChoice, + /* [in] */ __RPC__in const BSTR strName); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeAltName * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + END_INTERFACE + } ICertEncodeAltNameVtbl; + + interface ICertEncodeAltName + { + CONST_VTBL struct ICertEncodeAltNameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeAltName_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeAltName_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeAltName_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeAltName_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeAltName_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeAltName_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeAltName_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeAltName_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeAltName_GetNameCount(This,pNameCount) \ + ( (This)->lpVtbl -> GetNameCount(This,pNameCount) ) + +#define ICertEncodeAltName_GetNameChoice(This,NameIndex,pNameChoice) \ + ( (This)->lpVtbl -> GetNameChoice(This,NameIndex,pNameChoice) ) + +#define ICertEncodeAltName_GetName(This,NameIndex,pstrName) \ + ( (This)->lpVtbl -> GetName(This,NameIndex,pstrName) ) + +#define ICertEncodeAltName_Reset(This,NameCount) \ + ( (This)->lpVtbl -> Reset(This,NameCount) ) + +#define ICertEncodeAltName_SetNameEntry(This,NameIndex,NameChoice,strName) \ + ( (This)->lpVtbl -> SetNameEntry(This,NameIndex,NameChoice,strName) ) + +#define ICertEncodeAltName_Encode(This,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,pstrBinary) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeAltName_INTERFACE_DEFINED__ */ + + +#ifndef __ICertEncodeAltName2_INTERFACE_DEFINED__ +#define __ICertEncodeAltName2_INTERFACE_DEFINED__ + +/* interface ICertEncodeAltName2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeAltName2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f67fe177-5ef1-4535-b4ce-29df15e2e0c3") + ICertEncodeAltName2 : public ICertEncodeAltName + { + public: + virtual HRESULT STDMETHODCALLTYPE DecodeBlob( + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual HRESULT STDMETHODCALLTYPE EncodeBlob( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNameBlob( + /* [in] */ LONG NameIndex, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetNameEntryBlob( + /* [in] */ LONG NameIndex, + /* [in] */ LONG NameChoice, + /* [in] */ __RPC__in const BSTR strName, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeAltName2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeAltName2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeAltName2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeAltName2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeAltName2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, GetNameCount) + HRESULT ( STDMETHODCALLTYPE *GetNameCount )( + __RPC__in ICertEncodeAltName2 * This, + /* [retval][out] */ __RPC__out LONG *pNameCount); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, GetNameChoice) + HRESULT ( STDMETHODCALLTYPE *GetNameChoice )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__out LONG *pNameChoice); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ LONG NameIndex, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrName); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ LONG NameCount); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, SetNameEntry) + HRESULT ( STDMETHODCALLTYPE *SetNameEntry )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ LONG NameIndex, + /* [in] */ LONG NameChoice, + /* [in] */ __RPC__in const BSTR strName); + + DECLSPEC_XFGVIRT(ICertEncodeAltName, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeAltName2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + DECLSPEC_XFGVIRT(ICertEncodeAltName2, DecodeBlob) + HRESULT ( STDMETHODCALLTYPE *DecodeBlob )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(ICertEncodeAltName2, EncodeBlob) + HRESULT ( STDMETHODCALLTYPE *EncodeBlob )( + __RPC__in ICertEncodeAltName2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData); + + DECLSPEC_XFGVIRT(ICertEncodeAltName2, GetNameBlob) + HRESULT ( STDMETHODCALLTYPE *GetNameBlob )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ LONG NameIndex, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrName); + + DECLSPEC_XFGVIRT(ICertEncodeAltName2, SetNameEntryBlob) + HRESULT ( STDMETHODCALLTYPE *SetNameEntryBlob )( + __RPC__in ICertEncodeAltName2 * This, + /* [in] */ LONG NameIndex, + /* [in] */ LONG NameChoice, + /* [in] */ __RPC__in const BSTR strName, + /* [defaultvalue][in] */ EncodingType Encoding); + + END_INTERFACE + } ICertEncodeAltName2Vtbl; + + interface ICertEncodeAltName2 + { + CONST_VTBL struct ICertEncodeAltName2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeAltName2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeAltName2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeAltName2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeAltName2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeAltName2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeAltName2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeAltName2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeAltName2_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeAltName2_GetNameCount(This,pNameCount) \ + ( (This)->lpVtbl -> GetNameCount(This,pNameCount) ) + +#define ICertEncodeAltName2_GetNameChoice(This,NameIndex,pNameChoice) \ + ( (This)->lpVtbl -> GetNameChoice(This,NameIndex,pNameChoice) ) + +#define ICertEncodeAltName2_GetName(This,NameIndex,pstrName) \ + ( (This)->lpVtbl -> GetName(This,NameIndex,pstrName) ) + +#define ICertEncodeAltName2_Reset(This,NameCount) \ + ( (This)->lpVtbl -> Reset(This,NameCount) ) + +#define ICertEncodeAltName2_SetNameEntry(This,NameIndex,NameChoice,strName) \ + ( (This)->lpVtbl -> SetNameEntry(This,NameIndex,NameChoice,strName) ) + +#define ICertEncodeAltName2_Encode(This,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,pstrBinary) ) + + +#define ICertEncodeAltName2_DecodeBlob(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> DecodeBlob(This,strEncodedData,Encoding) ) + +#define ICertEncodeAltName2_EncodeBlob(This,Encoding,pstrEncodedData) \ + ( (This)->lpVtbl -> EncodeBlob(This,Encoding,pstrEncodedData) ) + +#define ICertEncodeAltName2_GetNameBlob(This,NameIndex,Encoding,pstrName) \ + ( (This)->lpVtbl -> GetNameBlob(This,NameIndex,Encoding,pstrName) ) + +#define ICertEncodeAltName2_SetNameEntryBlob(This,NameIndex,NameChoice,strName,Encoding) \ + ( (This)->lpVtbl -> SetNameEntryBlob(This,NameIndex,NameChoice,strName,Encoding) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeAltName2_INTERFACE_DEFINED__ */ + + +#ifndef __ICertEncodeBitString_INTERFACE_DEFINED__ +#define __ICertEncodeBitString_INTERFACE_DEFINED__ + +/* interface ICertEncodeBitString */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeBitString; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6db525be-1278-11d1-9bd4-00c04fb683fa") + ICertEncodeBitString : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Decode( + /* [in] */ __RPC__in const BSTR strBinary) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBitCount( + /* [retval][out] */ __RPC__out LONG *pBitCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBitString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBitString) = 0; + + virtual HRESULT STDMETHODCALLTYPE Encode( + /* [in] */ LONG BitCount, + /* [in] */ __RPC__in BSTR strBitString, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeBitStringVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeBitString * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeBitString * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeBitString * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeBitString * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeBitString * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeBitString * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeBitString * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeBitString, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeBitString * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeBitString, GetBitCount) + HRESULT ( STDMETHODCALLTYPE *GetBitCount )( + __RPC__in ICertEncodeBitString * This, + /* [retval][out] */ __RPC__out LONG *pBitCount); + + DECLSPEC_XFGVIRT(ICertEncodeBitString, GetBitString) + HRESULT ( STDMETHODCALLTYPE *GetBitString )( + __RPC__in ICertEncodeBitString * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBitString); + + DECLSPEC_XFGVIRT(ICertEncodeBitString, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeBitString * This, + /* [in] */ LONG BitCount, + /* [in] */ __RPC__in BSTR strBitString, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + END_INTERFACE + } ICertEncodeBitStringVtbl; + + interface ICertEncodeBitString + { + CONST_VTBL struct ICertEncodeBitStringVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeBitString_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeBitString_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeBitString_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeBitString_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeBitString_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeBitString_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeBitString_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeBitString_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeBitString_GetBitCount(This,pBitCount) \ + ( (This)->lpVtbl -> GetBitCount(This,pBitCount) ) + +#define ICertEncodeBitString_GetBitString(This,pstrBitString) \ + ( (This)->lpVtbl -> GetBitString(This,pstrBitString) ) + +#define ICertEncodeBitString_Encode(This,BitCount,strBitString,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,BitCount,strBitString,pstrBinary) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeBitString_INTERFACE_DEFINED__ */ + + +#ifndef __ICertEncodeBitString2_INTERFACE_DEFINED__ +#define __ICertEncodeBitString2_INTERFACE_DEFINED__ + +/* interface ICertEncodeBitString2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertEncodeBitString2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e070d6e7-23ef-4dd2-8242-ebd9c928cb30") + ICertEncodeBitString2 : public ICertEncodeBitString + { + public: + virtual HRESULT STDMETHODCALLTYPE DecodeBlob( + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual HRESULT STDMETHODCALLTYPE EncodeBlob( + /* [in] */ LONG BitCount, + /* [in] */ __RPC__in const BSTR strBitString, + /* [defaultvalue][in] */ EncodingType EncodingIn, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBitStringBlob( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBitString) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertEncodeBitString2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertEncodeBitString2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertEncodeBitString2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertEncodeBitString2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertEncodeBitString2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertEncodeBitString2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertEncodeBitString2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertEncodeBitString2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertEncodeBitString, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in ICertEncodeBitString2 * This, + /* [in] */ __RPC__in const BSTR strBinary); + + DECLSPEC_XFGVIRT(ICertEncodeBitString, GetBitCount) + HRESULT ( STDMETHODCALLTYPE *GetBitCount )( + __RPC__in ICertEncodeBitString2 * This, + /* [retval][out] */ __RPC__out LONG *pBitCount); + + DECLSPEC_XFGVIRT(ICertEncodeBitString, GetBitString) + HRESULT ( STDMETHODCALLTYPE *GetBitString )( + __RPC__in ICertEncodeBitString2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBitString); + + DECLSPEC_XFGVIRT(ICertEncodeBitString, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in ICertEncodeBitString2 * This, + /* [in] */ LONG BitCount, + /* [in] */ __RPC__in BSTR strBitString, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBinary); + + DECLSPEC_XFGVIRT(ICertEncodeBitString2, DecodeBlob) + HRESULT ( STDMETHODCALLTYPE *DecodeBlob )( + __RPC__in ICertEncodeBitString2 * This, + /* [in] */ __RPC__in const BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(ICertEncodeBitString2, EncodeBlob) + HRESULT ( STDMETHODCALLTYPE *EncodeBlob )( + __RPC__in ICertEncodeBitString2 * This, + /* [in] */ LONG BitCount, + /* [in] */ __RPC__in const BSTR strBitString, + /* [defaultvalue][in] */ EncodingType EncodingIn, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedData); + + DECLSPEC_XFGVIRT(ICertEncodeBitString2, GetBitStringBlob) + HRESULT ( STDMETHODCALLTYPE *GetBitStringBlob )( + __RPC__in ICertEncodeBitString2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrBitString); + + END_INTERFACE + } ICertEncodeBitString2Vtbl; + + interface ICertEncodeBitString2 + { + CONST_VTBL struct ICertEncodeBitString2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertEncodeBitString2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertEncodeBitString2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertEncodeBitString2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertEncodeBitString2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertEncodeBitString2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertEncodeBitString2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertEncodeBitString2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertEncodeBitString2_Decode(This,strBinary) \ + ( (This)->lpVtbl -> Decode(This,strBinary) ) + +#define ICertEncodeBitString2_GetBitCount(This,pBitCount) \ + ( (This)->lpVtbl -> GetBitCount(This,pBitCount) ) + +#define ICertEncodeBitString2_GetBitString(This,pstrBitString) \ + ( (This)->lpVtbl -> GetBitString(This,pstrBitString) ) + +#define ICertEncodeBitString2_Encode(This,BitCount,strBitString,pstrBinary) \ + ( (This)->lpVtbl -> Encode(This,BitCount,strBitString,pstrBinary) ) + + +#define ICertEncodeBitString2_DecodeBlob(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> DecodeBlob(This,strEncodedData,Encoding) ) + +#define ICertEncodeBitString2_EncodeBlob(This,BitCount,strBitString,EncodingIn,Encoding,pstrEncodedData) \ + ( (This)->lpVtbl -> EncodeBlob(This,BitCount,strBitString,EncodingIn,Encoding,pstrEncodedData) ) + +#define ICertEncodeBitString2_GetBitStringBlob(This,Encoding,pstrBitString) \ + ( (This)->lpVtbl -> GetBitStringBlob(This,Encoding,pstrBitString) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertEncodeBitString2_INTERFACE_DEFINED__ */ + + + +#ifndef __CERTENCODELib_LIBRARY_DEFINED__ +#define __CERTENCODELib_LIBRARY_DEFINED__ + +/* library CERTENCODELib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_CERTENCODELib; + +EXTERN_C const CLSID CLSID_CCertEncodeStringArray; + +#ifdef __cplusplus + +class DECLSPEC_UUID("19a76fe0-7494-11d0-8816-00a0c903b83c") +CCertEncodeStringArray; +#endif + +EXTERN_C const CLSID CLSID_CCertEncodeLongArray; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4e0680a0-a0a2-11d0-8821-00a0c903b83c") +CCertEncodeLongArray; +#endif + +EXTERN_C const CLSID CLSID_CCertEncodeDateArray; + +#ifdef __cplusplus + +class DECLSPEC_UUID("301f77b0-a470-11d0-8821-00a0c903b83c") +CCertEncodeDateArray; +#endif + +EXTERN_C const CLSID CLSID_CCertEncodeCRLDistInfo; + +#ifdef __cplusplus + +class DECLSPEC_UUID("01fa60a0-bbff-11d0-8825-00a0c903b83c") +CCertEncodeCRLDistInfo; +#endif + +EXTERN_C const CLSID CLSID_CCertEncodeAltName; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1cfc4cda-1271-11d1-9bd4-00c04fb683fa") +CCertEncodeAltName; +#endif + +EXTERN_C const CLSID CLSID_CCertEncodeBitString; + +#ifdef __cplusplus + +class DECLSPEC_UUID("6d6b3cd8-1278-11d1-9bd4-00c04fb683fa") +CCertEncodeBitString; +#endif +#endif /* __CERTENCODELib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_certenc_0000_0013 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certenc_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenc_0000_0013_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertExit.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertExit.Idl new file mode 100644 index 0000000000000000000000000000000000000000..7f4a6ca2e35bf9a2acf40afae83230b497cda090 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertExit.Idl @@ -0,0 +1,84 @@ +//+-------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1996 - 1999 +// +// File: certexit.idl +// +// Contents: IDL source for certexit.dll +// +//--------------------------------------------------------------------------- + +// This file will be processed by the MIDL tool to produce the type library +// (certexit.tlb) and marshalling code. + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "wtypes.idl"; +import "certmod.idl"; + +cpp_quote("#define EXITEVENT_INVALID ( 0x0 ) // Invalid event") +cpp_quote("#define EXITEVENT_CERTISSUED ( 0x1 ) // Certificate issued") +cpp_quote("#define EXITEVENT_CERTPENDING ( 0x2 ) // Certificate pending") +cpp_quote("#define EXITEVENT_CERTDENIED ( 0x4 ) // Certificate denied") +cpp_quote("#define EXITEVENT_CERTREVOKED ( 0x8 ) // Certificate revoked") +cpp_quote("#define EXITEVENT_CERTRETRIEVEPENDING ( 0x10 ) // Certificate retrieval") +cpp_quote("#define EXITEVENT_CRLISSUED ( 0x20 ) // CRL issued") +cpp_quote("#define EXITEVENT_SHUTDOWN ( 0x40 ) // Service shutdown") +cpp_quote("#define EXITEVENT_STARTUP ( 0x80 ) // Service startup, fake event generated by exit module") +cpp_quote("#define EXITEVENT_CERTIMPORTED ( 0x200 ) // Certificate Imported") + + +//+-------------------------------------------------------------------------- +// ICertExit class -- local COM interface, local implementation +//+-------------------------------------------------------------------------- + +[ + object, + uuid(e19ae1a0-7364-11d0-8816-00a0c903b83c), + dual, + helpstring("ICertExit Interface"), + pointer_default(unique) +] + +interface ICertExit: IDispatch +{ + import "oaidl.idl"; + + HRESULT Initialize( + [in] BSTR const strConfig, + [out, retval] LONG *pEventMask); + + HRESULT Notify( + [in] LONG ExitEvent, + [in] LONG Context); + + HRESULT GetDescription( + [out, retval] BSTR *pstrDescription); +}; + + +//+-------------------------------------------------------------------------- +// ICertExit2 -- local COM interface +//+-------------------------------------------------------------------------- + +[ + object, + uuid(0abf484b-d049-464d-a7ed-552e7529b0ff), + dual, + helpstring("ICertExit2 Interface"), + pointer_default(unique) +] + +interface ICertExit2: ICertExit +{ + HRESULT GetManageModule( + [out, retval] ICertManageModule **ppManageModule); +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertExit.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertExit.h new file mode 100644 index 0000000000000000000000000000000000000000..1bcb1ab514f8d4147996198de00434d3055ec751 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertExit.h @@ -0,0 +1,453 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __certexit_h__ +#define __certexit_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICertExit_FWD_DEFINED__ +#define __ICertExit_FWD_DEFINED__ +typedef interface ICertExit ICertExit; + +#endif /* __ICertExit_FWD_DEFINED__ */ + + +#ifndef __ICertExit2_FWD_DEFINED__ +#define __ICertExit2_FWD_DEFINED__ +typedef interface ICertExit2 ICertExit2; + +#endif /* __ICertExit2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "certmod.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certexit_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define EXITEVENT_INVALID ( 0x0 ) // Invalid event +#define EXITEVENT_CERTISSUED ( 0x1 ) // Certificate issued +#define EXITEVENT_CERTPENDING ( 0x2 ) // Certificate pending +#define EXITEVENT_CERTDENIED ( 0x4 ) // Certificate denied +#define EXITEVENT_CERTREVOKED ( 0x8 ) // Certificate revoked +#define EXITEVENT_CERTRETRIEVEPENDING ( 0x10 ) // Certificate retrieval +#define EXITEVENT_CRLISSUED ( 0x20 ) // CRL issued +#define EXITEVENT_SHUTDOWN ( 0x40 ) // Service shutdown +#define EXITEVENT_STARTUP ( 0x80 ) // Service startup, fake event generated by exit module +#define EXITEVENT_CERTIMPORTED ( 0x200 ) // Certificate Imported + + +extern RPC_IF_HANDLE __MIDL_itf_certexit_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certexit_0000_0000_v0_0_s_ifspec; + +#ifndef __ICertExit_INTERFACE_DEFINED__ +#define __ICertExit_INTERFACE_DEFINED__ + +/* interface ICertExit */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertExit; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e19ae1a0-7364-11d0-8816-00a0c903b83c") + ICertExit : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pEventMask) = 0; + + virtual HRESULT STDMETHODCALLTYPE Notify( + /* [in] */ LONG ExitEvent, + /* [in] */ LONG Context) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescription( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDescription) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertExitVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertExit * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertExit * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertExit * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertExit * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertExit * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertExit * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertExit * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertExit, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertExit * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pEventMask); + + DECLSPEC_XFGVIRT(ICertExit, Notify) + HRESULT ( STDMETHODCALLTYPE *Notify )( + __RPC__in ICertExit * This, + /* [in] */ LONG ExitEvent, + /* [in] */ LONG Context); + + DECLSPEC_XFGVIRT(ICertExit, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in ICertExit * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDescription); + + END_INTERFACE + } ICertExitVtbl; + + interface ICertExit + { + CONST_VTBL struct ICertExitVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertExit_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertExit_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertExit_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertExit_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertExit_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertExit_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertExit_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertExit_Initialize(This,strConfig,pEventMask) \ + ( (This)->lpVtbl -> Initialize(This,strConfig,pEventMask) ) + +#define ICertExit_Notify(This,ExitEvent,Context) \ + ( (This)->lpVtbl -> Notify(This,ExitEvent,Context) ) + +#define ICertExit_GetDescription(This,pstrDescription) \ + ( (This)->lpVtbl -> GetDescription(This,pstrDescription) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertExit_INTERFACE_DEFINED__ */ + + +#ifndef __ICertExit2_INTERFACE_DEFINED__ +#define __ICertExit2_INTERFACE_DEFINED__ + +/* interface ICertExit2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertExit2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0abf484b-d049-464d-a7ed-552e7529b0ff") + ICertExit2 : public ICertExit + { + public: + virtual HRESULT STDMETHODCALLTYPE GetManageModule( + /* [retval][out] */ __RPC__deref_out_opt ICertManageModule **ppManageModule) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertExit2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertExit2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertExit2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertExit2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertExit2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertExit2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertExit2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertExit2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertExit, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertExit2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [retval][out] */ __RPC__out LONG *pEventMask); + + DECLSPEC_XFGVIRT(ICertExit, Notify) + HRESULT ( STDMETHODCALLTYPE *Notify )( + __RPC__in ICertExit2 * This, + /* [in] */ LONG ExitEvent, + /* [in] */ LONG Context); + + DECLSPEC_XFGVIRT(ICertExit, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in ICertExit2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDescription); + + DECLSPEC_XFGVIRT(ICertExit2, GetManageModule) + HRESULT ( STDMETHODCALLTYPE *GetManageModule )( + __RPC__in ICertExit2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICertManageModule **ppManageModule); + + END_INTERFACE + } ICertExit2Vtbl; + + interface ICertExit2 + { + CONST_VTBL struct ICertExit2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertExit2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertExit2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertExit2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertExit2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertExit2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertExit2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertExit2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertExit2_Initialize(This,strConfig,pEventMask) \ + ( (This)->lpVtbl -> Initialize(This,strConfig,pEventMask) ) + +#define ICertExit2_Notify(This,ExitEvent,Context) \ + ( (This)->lpVtbl -> Notify(This,ExitEvent,Context) ) + +#define ICertExit2_GetDescription(This,pstrDescription) \ + ( (This)->lpVtbl -> GetDescription(This,pstrDescription) ) + + +#define ICertExit2_GetManageModule(This,ppManageModule) \ + ( (This)->lpVtbl -> GetManageModule(This,ppManageModule) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertExit2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certexit_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certexit_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certexit_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertMod.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertMod.Idl new file mode 100644 index 0000000000000000000000000000000000000000..906cdf6f44283624787b47a5688aeb3346615b8d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertMod.Idl @@ -0,0 +1,82 @@ +//+-------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1996 - 1999 +// +// File: certmod.idl +// +// Contents: IDL source for module management functions +// +//--------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "wtypes.idl"; + +//+-------------------------------------------------------------------------- +// ICertManageModule::Configure() +// Flags for configuration interface + +const LONG CMM_REFRESHONLY = 0x00000001; // Non-interactive configure; just reload settings +const LONG CMM_READONLY = 0x00000002; // show UI in read-only mode + +//+-------------------------------------------------------------------------- +// ICertManageModule::XetProperty() +// Flags for get/set property interface + +// values are bstrs +const WCHAR wszCMM_PROP_NAME[] = L"Name"; +const WCHAR wszCMM_PROP_DESCRIPTION[] = L"Description"; +const WCHAR wszCMM_PROP_COPYRIGHT[] = L"Copyright"; +const WCHAR wszCMM_PROP_FILEVER[] = L"File Version"; +const WCHAR wszCMM_PROP_PRODUCTVER[] = L"Product Version"; + +// value is bstr sizeof(HWND) +const WCHAR wszCMM_PROP_DISPLAY_HWND[] = L"HWND"; + +// values are longs +const WCHAR wszCMM_PROP_ISMULTITHREADED[] = L"IsMultiThreaded"; + + +//+-------------------------------------------------------------------------- +// ICertManageModule class -- local COM interface +//+-------------------------------------------------------------------------- + +[ + object, + uuid(e7d7ad42-bd3d-11d1-9a4d-00c04fc297eb), + dual, + helpstring("ICertManageModule Interface"), + pointer_default(unique) +] + +interface ICertManageModule: IDispatch +{ + import "oaidl.idl"; + + HRESULT GetProperty( + [in] BSTR const strConfig, + [in] BSTR strStorageLocation, + [in] BSTR strPropertyName, + [in] LONG Flags, + [out, retval] VARIANT* pvarProperty); + + HRESULT SetProperty( + [in] BSTR const strConfig, + [in] BSTR strStorageLocation, + [in] BSTR strPropertyName, + [in] LONG Flags, + [in] VARIANT const *pvarProperty); + + HRESULT Configure( + [in] BSTR const strConfig, + [in] BSTR strStorageLocation, + [in] LONG Flags); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertMod.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertMod.h new file mode 100644 index 0000000000000000000000000000000000000000..20e1ff21fc0b1eef6d19125131702d9863cd21f9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertMod.h @@ -0,0 +1,315 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __certmod_h__ +#define __certmod_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICertManageModule_FWD_DEFINED__ +#define __ICertManageModule_FWD_DEFINED__ +typedef interface ICertManageModule ICertManageModule; + +#endif /* __ICertManageModule_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certmod_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define CMM_REFRESHONLY ( 0x1 ) + +#define CMM_READONLY ( 0x2 ) + +const WCHAR wszCMM_PROP_NAME[ ] = L"Name"; + +const WCHAR wszCMM_PROP_DESCRIPTION[ ] = L"Description"; + +const WCHAR wszCMM_PROP_COPYRIGHT[ ] = L"Copyright"; + +const WCHAR wszCMM_PROP_FILEVER[ ] = L"File Version"; + +const WCHAR wszCMM_PROP_PRODUCTVER[ ] = L"Product Version"; + +const WCHAR wszCMM_PROP_DISPLAY_HWND[ ] = L"HWND"; + +const WCHAR wszCMM_PROP_ISMULTITHREADED[ ] = L"IsMultiThreaded"; + + + +extern RPC_IF_HANDLE __MIDL_itf_certmod_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certmod_0000_0000_v0_0_s_ifspec; + +#ifndef __ICertManageModule_INTERFACE_DEFINED__ +#define __ICertManageModule_INTERFACE_DEFINED__ + +/* interface ICertManageModule */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertManageModule; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e7d7ad42-bd3d-11d1-9a4d-00c04fc297eb") + ICertManageModule : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in BSTR strStorageLocation, + /* [in] */ __RPC__in BSTR strPropertyName, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out VARIANT *pvarProperty) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in BSTR strStorageLocation, + /* [in] */ __RPC__in BSTR strPropertyName, + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const VARIANT *pvarProperty) = 0; + + virtual HRESULT STDMETHODCALLTYPE Configure( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in BSTR strStorageLocation, + /* [in] */ LONG Flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertManageModuleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertManageModule * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertManageModule * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertManageModule * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertManageModule * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertManageModule * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertManageModule * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertManageModule * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertManageModule, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in ICertManageModule * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in BSTR strStorageLocation, + /* [in] */ __RPC__in BSTR strPropertyName, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out VARIANT *pvarProperty); + + DECLSPEC_XFGVIRT(ICertManageModule, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in ICertManageModule * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in BSTR strStorageLocation, + /* [in] */ __RPC__in BSTR strPropertyName, + /* [in] */ LONG Flags, + /* [in] */ __RPC__in const VARIANT *pvarProperty); + + DECLSPEC_XFGVIRT(ICertManageModule, Configure) + HRESULT ( STDMETHODCALLTYPE *Configure )( + __RPC__in ICertManageModule * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ __RPC__in BSTR strStorageLocation, + /* [in] */ LONG Flags); + + END_INTERFACE + } ICertManageModuleVtbl; + + interface ICertManageModule + { + CONST_VTBL struct ICertManageModuleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertManageModule_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertManageModule_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertManageModule_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertManageModule_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertManageModule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertManageModule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertManageModule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertManageModule_GetProperty(This,strConfig,strStorageLocation,strPropertyName,Flags,pvarProperty) \ + ( (This)->lpVtbl -> GetProperty(This,strConfig,strStorageLocation,strPropertyName,Flags,pvarProperty) ) + +#define ICertManageModule_SetProperty(This,strConfig,strStorageLocation,strPropertyName,Flags,pvarProperty) \ + ( (This)->lpVtbl -> SetProperty(This,strConfig,strStorageLocation,strPropertyName,Flags,pvarProperty) ) + +#define ICertManageModule_Configure(This,strConfig,strStorageLocation,Flags) \ + ( (This)->lpVtbl -> Configure(This,strConfig,strStorageLocation,Flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertManageModule_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certmod_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certmod_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certmod_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertPol.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertPol.Idl new file mode 100644 index 0000000000000000000000000000000000000000..6e86bffa6c4f655996814421e97625eabdd9d1c1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertPol.Idl @@ -0,0 +1,211 @@ +//+-------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1996 - 1999 +// +// File: certpol.idl +// +// Contents: IDL source for certpol.dll +// +//--------------------------------------------------------------------------- + +// This file will be processed by the MIDL tool to produce the type library +// (certpol.tlb) and marshalling code. + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "wtypes.idl"; +import "certmod.idl"; +import "certbase.idl"; +import "certbcli.idl"; + +//+-------------------------------------------------------------------------- +// ICertPolicy class -- local COM interface +//+-------------------------------------------------------------------------- + +[ + object, + uuid(38bb5a00-7636-11d0-b413-00a0c91bbf8c), + dual, + helpstring("ICertPolicy Interface"), + pointer_default(unique) +] + +interface ICertPolicy: IDispatch +{ + import "oaidl.idl"; + + HRESULT Initialize( + [in] BSTR const strConfig); + + HRESULT VerifyRequest( + [in] BSTR const strConfig, + [in] LONG Context, + [in] LONG bNewRequest, + [in] LONG Flags, + [out, retval] LONG *pDisposition); + + HRESULT GetDescription( + [out, retval] BSTR *pstrDescription); + + HRESULT ShutDown(); +}; + + +//+-------------------------------------------------------------------------- +// ICertPolicy2 -- local COM interface +//+-------------------------------------------------------------------------- + +[ + object, + uuid(3db4910e-8001-4bf1-aa1b-f43a808317a0), + dual, + helpstring("ICertPolicy2 Interface"), + pointer_default(unique) +] + +interface ICertPolicy2: ICertPolicy +{ + HRESULT GetManageModule( + [out, retval] ICertManageModule **ppManageModule); +}; + + + +//+-------------------------------------------------------------------------- +// INDESPolicy interface & enums +//+-------------------------------------------------------------------------- + +// SCEP defined message numbers, for reference only: + +typedef enum X509SCEPMessageType // szOIDVerisign_MessageType +{ + SCEPMessageUnknown = -1, + SCEPMessageCertResponse = 3, // Response to certificate/CRL request + SCEPMessagePKCSRequest = 19, // PKCS#10 certificate request + + SCEPMessageGetCertInitial = 20, // Certificate polling (manual enroll) + // Issuer/Subject + XactId + SenderNonce + + SCEPMessageGetCert = 21, // Retrieve a certificate + // Issuer/Serial + XactId + SenderNonce + + SCEPMessageGetCRL = 22, // Retrieve a CRL (not supported) + SCEPMessageClaimChallengeAnswer = 41, // Challenge answer +} X509SCEPMessageType; + +typedef enum X509SCEPDisposition // szOIDVerisign_PkiStatus +{ + SCEPDispositionUnknown = -1, // Invalid value + SCEPDispositionSuccess = 0, + SCEPDispositionFailure = 2, + SCEPDispositionPending = 3, + SCEPDispositionPendingChallenge = 11, +} X509SCEPDisposition; + +typedef enum X509SCEPFailInfo // szOIDVerisign_FailInfo +{ + SCEPFailUnknown = -1,// Invalid value + SCEPFailBadAlgorithm = 0, // Unrecognized/unsupported algorithm ident. + SCEPFailBadMessageCheck = 1, // Integrity check failed + SCEPFailBadRequest = 2, // Transaction not permitted or supported + SCEPFailBadTime = 3, // The signingTime attribute from the PKCS#7 + // authenticatedAttributes was not + // sufficiently close to the system time + SCEPFailBadCertId = 4, // No certificate could be identified matching + // the provided criteria +} X509SCEPFailInfo; + + +// INDESPolicy interface +[ + object, + uuid(13CA515D-431D-46CC-8C2E-1DA269BBD625), + helpstring("NDES Policy Module Interface"), + local +] +interface INDESPolicy : IUnknown +{ + import "oaidl.idl"; + + // Initialize NDES policy module + + HRESULT Initialize(); + + + // Uninitialize NDES policy module + + HRESULT Uninitialize(); + + + // Performs policy decision on whether to issue a challengePassword to the + // SCEP client. + // + // Parameters: + // + // pwszTemplate: The template being requested for, as determined by NDES. + // + // pwszParams: Parameters specific to the policy module implementation. + // + // ppwszResponse After the user has been authenticated and authorized, will + // contain the user's SCEP challengePassword. NDES will free + // this using LocalFree. + + HRESULT GenerateChallenge( + [in, ref] PCWSTR pwszTemplate, + [in, ref] PCWSTR pwszParams, + [out, retval] PWSTR *ppwszResponse); + + + // Verifies the NDES certificate request for submission to the certification authority. + // + // Parameters: + // + // pctbRequest: The encoded PKCS#10 request. + // + // pctbSigningCertEncoded: The valid signing certificate for a renewal request. + // + // pwszTemplate: The template being requested for, as determined by NDES. + // + // pwszTransactionId: The SCEP request transaction ID. + // + // pfVerified: Should be set to TRUE if the pwszChallenge is successfully verified, + // and FALSE otherwise. + + HRESULT VerifyRequest( + [in, ref] CERTTRANSBLOB* pctbRequest, + [in, ref] CERTTRANSBLOB* pctbSigningCertEncoded, + [in, ref] PCWSTR pwszTemplate, + [in, ref] PCWSTR pwszTransactionId, + [out, retval] BOOL* pfVerified); + + + // Notifies the plugin of the transaction status of the SCEP certificate request. + // + // Parameters: + // + // pwszChallenge The user's authentication and authorization SCEP + // challengePassword. + // + // pwszTransactionId: The SCEP request transaction ID. + // + // disposition: The disposition of the transaction. + // + // lastHResult: The HRESULT of the last operation. + // + // pctbIssuedCertEncoded: The requested certificate, if issued. + + HRESULT Notify( + [in, ref] PCWSTR pwszChallenge, + [in, ref] PCWSTR pwszTransactionId, + [in] X509SCEPDisposition disposition, + [in] LONG lastHResult, + [in, ref] CERTTRANSBLOB* pctbIssuedCertEncoded); +} + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertPol.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertPol.h new file mode 100644 index 0000000000000000000000000000000000000000..e19f8956b574348e40e28abc8bf6fce319f3c4ae --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertPol.h @@ -0,0 +1,659 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __certpol_h__ +#define __certpol_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICertPolicy_FWD_DEFINED__ +#define __ICertPolicy_FWD_DEFINED__ +typedef interface ICertPolicy ICertPolicy; + +#endif /* __ICertPolicy_FWD_DEFINED__ */ + + +#ifndef __ICertPolicy2_FWD_DEFINED__ +#define __ICertPolicy2_FWD_DEFINED__ +typedef interface ICertPolicy2 ICertPolicy2; + +#endif /* __ICertPolicy2_FWD_DEFINED__ */ + + +#ifndef __INDESPolicy_FWD_DEFINED__ +#define __INDESPolicy_FWD_DEFINED__ +typedef interface INDESPolicy INDESPolicy; + +#endif /* __INDESPolicy_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "certmod.h" +#include "certbase.h" +#include "certbcli.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certpol_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_certpol_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certpol_0000_0000_v0_0_s_ifspec; + +#ifndef __ICertPolicy_INTERFACE_DEFINED__ +#define __ICertPolicy_INTERFACE_DEFINED__ + +/* interface ICertPolicy */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPolicy; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("38bb5a00-7636-11d0-b413-00a0c91bbf8c") + ICertPolicy : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in const BSTR strConfig) = 0; + + virtual HRESULT STDMETHODCALLTYPE VerifyRequest( + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Context, + /* [in] */ LONG bNewRequest, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out LONG *pDisposition) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescription( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShutDown( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPolicyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPolicy * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPolicy * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPolicy * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPolicy * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPolicy * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPolicy * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPolicy * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertPolicy, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPolicy * This, + /* [in] */ __RPC__in const BSTR strConfig); + + DECLSPEC_XFGVIRT(ICertPolicy, VerifyRequest) + HRESULT ( STDMETHODCALLTYPE *VerifyRequest )( + __RPC__in ICertPolicy * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Context, + /* [in] */ LONG bNewRequest, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertPolicy, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in ICertPolicy * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDescription); + + DECLSPEC_XFGVIRT(ICertPolicy, ShutDown) + HRESULT ( STDMETHODCALLTYPE *ShutDown )( + __RPC__in ICertPolicy * This); + + END_INTERFACE + } ICertPolicyVtbl; + + interface ICertPolicy + { + CONST_VTBL struct ICertPolicyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPolicy_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPolicy_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPolicy_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPolicy_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPolicy_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPolicy_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPolicy_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPolicy_Initialize(This,strConfig) \ + ( (This)->lpVtbl -> Initialize(This,strConfig) ) + +#define ICertPolicy_VerifyRequest(This,strConfig,Context,bNewRequest,Flags,pDisposition) \ + ( (This)->lpVtbl -> VerifyRequest(This,strConfig,Context,bNewRequest,Flags,pDisposition) ) + +#define ICertPolicy_GetDescription(This,pstrDescription) \ + ( (This)->lpVtbl -> GetDescription(This,pstrDescription) ) + +#define ICertPolicy_ShutDown(This) \ + ( (This)->lpVtbl -> ShutDown(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPolicy_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPolicy2_INTERFACE_DEFINED__ +#define __ICertPolicy2_INTERFACE_DEFINED__ + +/* interface ICertPolicy2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPolicy2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3db4910e-8001-4bf1-aa1b-f43a808317a0") + ICertPolicy2 : public ICertPolicy + { + public: + virtual HRESULT STDMETHODCALLTYPE GetManageModule( + /* [retval][out] */ __RPC__deref_out_opt ICertManageModule **ppManageModule) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPolicy2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPolicy2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPolicy2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPolicy2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPolicy2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPolicy2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPolicy2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPolicy2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertPolicy, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPolicy2 * This, + /* [in] */ __RPC__in const BSTR strConfig); + + DECLSPEC_XFGVIRT(ICertPolicy, VerifyRequest) + HRESULT ( STDMETHODCALLTYPE *VerifyRequest )( + __RPC__in ICertPolicy2 * This, + /* [in] */ __RPC__in const BSTR strConfig, + /* [in] */ LONG Context, + /* [in] */ LONG bNewRequest, + /* [in] */ LONG Flags, + /* [retval][out] */ __RPC__out LONG *pDisposition); + + DECLSPEC_XFGVIRT(ICertPolicy, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in ICertPolicy2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrDescription); + + DECLSPEC_XFGVIRT(ICertPolicy, ShutDown) + HRESULT ( STDMETHODCALLTYPE *ShutDown )( + __RPC__in ICertPolicy2 * This); + + DECLSPEC_XFGVIRT(ICertPolicy2, GetManageModule) + HRESULT ( STDMETHODCALLTYPE *GetManageModule )( + __RPC__in ICertPolicy2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICertManageModule **ppManageModule); + + END_INTERFACE + } ICertPolicy2Vtbl; + + interface ICertPolicy2 + { + CONST_VTBL struct ICertPolicy2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPolicy2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPolicy2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPolicy2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPolicy2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPolicy2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPolicy2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPolicy2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPolicy2_Initialize(This,strConfig) \ + ( (This)->lpVtbl -> Initialize(This,strConfig) ) + +#define ICertPolicy2_VerifyRequest(This,strConfig,Context,bNewRequest,Flags,pDisposition) \ + ( (This)->lpVtbl -> VerifyRequest(This,strConfig,Context,bNewRequest,Flags,pDisposition) ) + +#define ICertPolicy2_GetDescription(This,pstrDescription) \ + ( (This)->lpVtbl -> GetDescription(This,pstrDescription) ) + +#define ICertPolicy2_ShutDown(This) \ + ( (This)->lpVtbl -> ShutDown(This) ) + + +#define ICertPolicy2_GetManageModule(This,ppManageModule) \ + ( (This)->lpVtbl -> GetManageModule(This,ppManageModule) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPolicy2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certpol_0000_0002 */ +/* [local] */ + +typedef +enum X509SCEPMessageType + { + SCEPMessageUnknown = -1, + SCEPMessageCertResponse = 3, + SCEPMessagePKCSRequest = 19, + SCEPMessageGetCertInitial = 20, + SCEPMessageGetCert = 21, + SCEPMessageGetCRL = 22, + SCEPMessageClaimChallengeAnswer = 41 + } X509SCEPMessageType; + +typedef +enum X509SCEPDisposition + { + SCEPDispositionUnknown = -1, + SCEPDispositionSuccess = 0, + SCEPDispositionFailure = 2, + SCEPDispositionPending = 3, + SCEPDispositionPendingChallenge = 11 + } X509SCEPDisposition; + +typedef +enum X509SCEPFailInfo + { + SCEPFailUnknown = -1, + SCEPFailBadAlgorithm = 0, + SCEPFailBadMessageCheck = 1, + SCEPFailBadRequest = 2, + SCEPFailBadTime = 3, + SCEPFailBadCertId = 4 + } X509SCEPFailInfo; + + + +extern RPC_IF_HANDLE __MIDL_itf_certpol_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certpol_0000_0002_v0_0_s_ifspec; + +#ifndef __INDESPolicy_INTERFACE_DEFINED__ +#define __INDESPolicy_INTERFACE_DEFINED__ + +/* interface INDESPolicy */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_INDESPolicy; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("13CA515D-431D-46CC-8C2E-1DA269BBD625") + INDESPolicy : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Uninitialize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GenerateChallenge( + /* [ref][in] */ PCWSTR pwszTemplate, + /* [ref][in] */ PCWSTR pwszParams, + /* [retval][out] */ PWSTR *ppwszResponse) = 0; + + virtual HRESULT STDMETHODCALLTYPE VerifyRequest( + /* [ref][in] */ CERTTRANSBLOB *pctbRequest, + /* [ref][in] */ CERTTRANSBLOB *pctbSigningCertEncoded, + /* [ref][in] */ PCWSTR pwszTemplate, + /* [ref][in] */ PCWSTR pwszTransactionId, + /* [retval][out] */ BOOL *pfVerified) = 0; + + virtual HRESULT STDMETHODCALLTYPE Notify( + /* [ref][in] */ PCWSTR pwszChallenge, + /* [ref][in] */ PCWSTR pwszTransactionId, + /* [in] */ X509SCEPDisposition disposition, + /* [in] */ LONG lastHResult, + /* [ref][in] */ CERTTRANSBLOB *pctbIssuedCertEncoded) = 0; + + }; + + +#else /* C style interface */ + + typedef struct INDESPolicyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + INDESPolicy * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + INDESPolicy * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + INDESPolicy * This); + + DECLSPEC_XFGVIRT(INDESPolicy, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + INDESPolicy * This); + + DECLSPEC_XFGVIRT(INDESPolicy, Uninitialize) + HRESULT ( STDMETHODCALLTYPE *Uninitialize )( + INDESPolicy * This); + + DECLSPEC_XFGVIRT(INDESPolicy, GenerateChallenge) + HRESULT ( STDMETHODCALLTYPE *GenerateChallenge )( + INDESPolicy * This, + /* [ref][in] */ PCWSTR pwszTemplate, + /* [ref][in] */ PCWSTR pwszParams, + /* [retval][out] */ PWSTR *ppwszResponse); + + DECLSPEC_XFGVIRT(INDESPolicy, VerifyRequest) + HRESULT ( STDMETHODCALLTYPE *VerifyRequest )( + INDESPolicy * This, + /* [ref][in] */ CERTTRANSBLOB *pctbRequest, + /* [ref][in] */ CERTTRANSBLOB *pctbSigningCertEncoded, + /* [ref][in] */ PCWSTR pwszTemplate, + /* [ref][in] */ PCWSTR pwszTransactionId, + /* [retval][out] */ BOOL *pfVerified); + + DECLSPEC_XFGVIRT(INDESPolicy, Notify) + HRESULT ( STDMETHODCALLTYPE *Notify )( + INDESPolicy * This, + /* [ref][in] */ PCWSTR pwszChallenge, + /* [ref][in] */ PCWSTR pwszTransactionId, + /* [in] */ X509SCEPDisposition disposition, + /* [in] */ LONG lastHResult, + /* [ref][in] */ CERTTRANSBLOB *pctbIssuedCertEncoded); + + END_INTERFACE + } INDESPolicyVtbl; + + interface INDESPolicy + { + CONST_VTBL struct INDESPolicyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define INDESPolicy_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define INDESPolicy_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define INDESPolicy_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define INDESPolicy_Initialize(This) \ + ( (This)->lpVtbl -> Initialize(This) ) + +#define INDESPolicy_Uninitialize(This) \ + ( (This)->lpVtbl -> Uninitialize(This) ) + +#define INDESPolicy_GenerateChallenge(This,pwszTemplate,pwszParams,ppwszResponse) \ + ( (This)->lpVtbl -> GenerateChallenge(This,pwszTemplate,pwszParams,ppwszResponse) ) + +#define INDESPolicy_VerifyRequest(This,pctbRequest,pctbSigningCertEncoded,pwszTemplate,pwszTransactionId,pfVerified) \ + ( (This)->lpVtbl -> VerifyRequest(This,pctbRequest,pctbSigningCertEncoded,pwszTemplate,pwszTransactionId,pfVerified) ) + +#define INDESPolicy_Notify(This,pwszChallenge,pwszTransactionId,disposition,lastHResult,pctbIssuedCertEncoded) \ + ( (This)->lpVtbl -> Notify(This,pwszChallenge,pwszTransactionId,disposition,lastHResult,pctbIssuedCertEncoded) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __INDESPolicy_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certpol_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certpol_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certpol_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertPolEng.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertPolEng.h new file mode 100644 index 0000000000000000000000000000000000000000..f2b2b06b8779954f0a178a9b19387a4206b924a6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertPolEng.h @@ -0,0 +1,92 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +NTSTATUS +NTAPI +PstGetTrustAnchors( + _In_ PUNICODE_STRING pTargetName, + _In_ DWORD cCriteria, + _In_reads_opt_(cCriteria) PCCERT_SELECT_CRITERIA rgpCriteria, + _Outptr_ PSecPkgContext_IssuerListInfoEx* ppTrustedIssuers + ); + +NTSTATUS +NTAPI +PstGetTrustAnchorsEx( + _In_ PUNICODE_STRING pTargetName, + _In_ DWORD cCriteria, + _In_reads_opt_(cCriteria) PCCERT_SELECT_CRITERIA rgpCriteria, + _In_opt_ PCCERT_CONTEXT pCertContext, + _Outptr_ PSecPkgContext_IssuerListInfoEx* ppTrustedIssuers + ); + +NTSTATUS +NTAPI +PstGetCertificateChain( + _In_ PCCERT_CONTEXT pCert, + _In_ PSecPkgContext_IssuerListInfoEx pTrustedIssuers, + _Out_ PCCERT_CHAIN_CONTEXT* ppCertChainContext + ); + +NTSTATUS +NTAPI +PstGetCertificates( + _In_ PUNICODE_STRING pTargetName, + _In_ DWORD cCriteria, + _In_reads_opt_(cCriteria) PCCERT_SELECT_CRITERIA rgpCriteria, + _In_ BOOL bIsClient, + _Out_ PDWORD pdwCertChainContextCount, + _Outptr_result_buffer_(*pdwCertChainContextCount) PCCERT_CHAIN_CONTEXT** ppCertChainContexts + ); + +NTSTATUS +NTAPI +PstAcquirePrivateKey( + _In_ PCCERT_CONTEXT pCert + ); + + +NTSTATUS +NTAPI +PstValidate( + _In_opt_ PUNICODE_STRING pTargetName, + _In_ BOOL bIsClient, + _In_opt_ CERT_USAGE_MATCH* pRequestedIssuancePolicy, + _In_opt_ HCERTSTORE* phAdditionalCertStore, + _In_ PCCERT_CONTEXT pCert, + _Out_opt_ GUID* pProvGUID + ); + +NTSTATUS +NTAPI +PstMapCertificate( + _In_ PCCERT_CONTEXT pCert, + _Out_ LSA_TOKEN_INFORMATION_TYPE* pTokenInformationType, + _Outptr_ PVOID* ppTokenInformation + ); + +NTSTATUS +NTAPI +PstGetUserNameForCertificate( + _In_ PCCERT_CONTEXT pCertContext, + _Out_ PUNICODE_STRING UserName + ); + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertSrv.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertSrv.h new file mode 100644 index 0000000000000000000000000000000000000000..c1b2e93eb2eeba6aa877cafed94edcb8b9421d69 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertSrv.h @@ -0,0 +1,1408 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992 - 1999 +// +// File: CertSrv.h +// Contents: Main Certificate Server header +// Also includes .h files for the COM interfaces +// +//---------------------------------------------------------------------------- + +#if !defined( _CERTSRV_H_ ) +#define _CERTSRV_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifndef DBG_CERTSRV +# if defined(_DEBUG) +# define DBG_CERTSRV 1 +# elif defined(DBG) +# define DBG_CERTSRV DBG +# else +# define DBG_CERTSRV 0 +# endif +#endif + +#define wszSERVICE_NAME TEXT("CertSvc") + +#define wszREGKEYNOSYSTEMCERTSVCPATH \ + TEXT("CurrentControlSet\\Services\\") \ + wszSERVICE_NAME + +#define wszREGKEYCERTSVCPATH TEXT("SYSTEM\\") wszREGKEYNOSYSTEMCERTSVCPATH +#define wszREGKEYBASE wszREGKEYCERTSVCPATH // obsolete definition + +//====================================================================== +// Full path to "CertSvc\Configuration\": +#define wszREGKEYCONFIGPATH wszREGKEYCERTSVCPATH TEXT("\\") wszREGKEYCONFIG +#define wszREGKEYCONFIGPATH_BS wszREGKEYCONFIGPATH TEXT("\\") +#define wszREGKEYCONFIGCANAME wszREGKEYCONFIGPATH_BS // obsolete definition + +//====================================================================== +// Full path to "CertSvc\Configuration\RestoreInProgress": +#define wszREGKEYCONFIGRESTORE wszREGKEYCONFIGPATH_BS wszREGKEYRESTOREINPROGRESS + +//====================================================================== +// Key Under "CertSvc": +#define wszREGKEYCONFIG TEXT("Configuration") + +//====================================================================== +// Values Under "CertSvc\Configuration": +#define wszREGACTIVE TEXT("Active") +#define wszREGDIRECTORY TEXT("ConfigurationDirectory") +#define wszREGDBDIRECTORY TEXT("DBDirectory") +#define wszREGDBLOGDIRECTORY TEXT("DBLogDirectory") +#define wszREGDBSYSDIRECTORY TEXT("DBSystemDirectory") +#define wszREGDBTEMPDIRECTORY TEXT("DBTempDirectory") +#define wszREGDBSESSIONCOUNT TEXT("DBSessionCount") +#define wszREGDBMAXREADSESSIONCOUNT TEXT("DBMaxReadSessionCount") +#define wszREGDBFLAGS TEXT("DBFlags") +#define wszREGDBLASTFULLBACKUP TEXT("DBLastFullBackup") +#define wszREGDBLASTINCREMENTALBACKUP TEXT("DBLastIncrementalBackup") +#define wszREGDBLASTRECOVERY TEXT("DBLastRecovery") +#define wszREGWEBCLIENTCAMACHINE TEXT("WebClientCAMachine") +#define wszREGVERSION TEXT("Version") +#define wszREGWEBCLIENTCANAME TEXT("WebClientCAName") +#define wszREGWEBCLIENTCATYPE TEXT("WebClientCAType") +#define wszREGLDAPFLAGS TEXT("LDAPFlags") +#define wszREGCERTSRVDEBUG TEXT("Debug") + +// Default value for wszREGDBSESSIONCOUNT +#define DBSESSIONCOUNTDEFAULT 100 + +//================================== +// Values for wszREGDBFLAGS + +#define DBFLAGS_READONLY 0x00000001 // ignored in registry +#define DBFLAGS_CREATEIFNEEDED 0x00000002 +#define DBFLAGS_CIRCULARLOGGING 0x00000004 +#define DBFLAGS_LAZYFLUSH 0x00000008 +#define DBFLAGS_MAXCACHESIZEX100 0x00000010 +#define DBFLAGS_CHECKPOINTDEPTH60MB 0x00000020 +#define DBFLAGS_LOGBUFFERSLARGE 0x00000040 +#define DBFLAGS_LOGBUFFERSHUGE 0x00000080 +#define DBFLAGS_LOGFILESIZE16MB 0x00000100 +#define DBFLAGS_MULTITHREADTRANSACTIONS 0x00000200 +#define DBFLAGS_DISABLESNAPSHOTBACKUP 0x00000400 // ignored in registry +#define DBFLAGS_ENABLEVOLATILEREQUESTS 0X00000800 // enables the use of CCertDBMem + +#define DBFLAGS_DEFAULT (DBFLAGS_MAXCACHESIZEX100 | \ + DBFLAGS_CHECKPOINTDEPTH60MB | \ + DBFLAGS_LOGBUFFERSHUGE) + + +//================================== +// Values for wszREGLDAPSSLFLAGS +// Default is zero (same as a missing registry value): +// 0: Don't use SSL, but sign all LDAP traffic. +// 3: Use SSL but don't sign LDAP traffic. +#define LDAPF_SSLENABLE 0x00000001 // use SSL for LDAP traffic +#define LDAPF_SIGNDISABLE 0x00000002 // disable signing LDAP traffic + +// Default value for wszREGMAXINCOMINGMESSAGESIZE +#define MAXINCOMINGMESSAGESIZEDEFAULT (64 * 1024) + +// Default value for wszREGMAXINCOMINGALLOCSIZE +#define MAXINCOMINGALLOCSIZEDEFAULT (64 * 1024) + +// Value for wszREGVERSION: + +// win2k version +#define CSVER_MAJOR_WIN2K 1 // actually this wasn't define in win2k +#define CSVER_MINOR_WIN2K 1 + +// whistler version +#define CSVER_MAJOR_WHISTLER 2 +#define CSVER_MINOR_WHISTLER_BETA2 1 +#define CSVER_MINOR_WHISTLER_BETA3 2 + +// longhorn version +#define CSVER_MAJOR_LONGHORN 3 +#define CSVER_MINOR_LONGHORN_BETA1 1 + +// win7 version +#define CSVER_MAJOR_WIN7 4 +#define CSVER_MINOR_WIN7 1 + +// win8 version +#define CSVER_MAJOR_WIN8 5 +#define CSVER_MINOR_WIN8 1 + +// winblue version +#define CSVER_MAJOR_WINBLUE 6 +#define CSVER_MINOR_WINBLUE 1 + +// threshold version +#define CSVER_MAJOR_THRESHOLD 7 +#define CSVER_MINOR_THRESHOLD 1 + +// current version +#define CSVER_MAJOR CSVER_MAJOR_THRESHOLD // high 16 bits +#define CSVER_MINOR CSVER_MINOR_THRESHOLD // low 16 bits + +// version manipulation +#define CSVER_EXTRACT_MAJOR(version) ((version)>>16) +#define CSVER_EXTRACT_MINOR(version) ((version)&0xffff) +#define CSVER_BUILD_VERSION(major, minor) (((major)<<16)|(minor)) + +// propertyId manipulation to pass partition index and key index +#define CRL_BUILD_PROPID(partIndex, keyIndex) ((partIndex << 16) | keyIndex) +#define CRL_EXTRACT_KEY_INDEX(propId) ((propId) & 0xFFFF) +#define CRL_EXTRACT_PARTITION_INDEX(propId) ((propId) >> 16) + +// Keys Under "CertSvc\Configuration": +#define wszREGKEYRESTOREINPROGRESS TEXT("RestoreInProgress") +#define wszREGKEYDBPARAMETERS TEXT("DBParameters") + +//====================================================================== +// Values Under "CertSvc\Configuration\": +#define wszREGCADESCRIPTION TEXT("CADescription") +#define wszREGCACERTHASH TEXT("CACertHash") +#define wszREGCASERIALNUMBER TEXT("CACertSerialNumber") +#define wszREGCAXCHGCERTHASH TEXT("CAXchgCertHash") +#define wszREGKRACERTHASH TEXT("KRACertHash") +#define wszREGKRACERTCOUNT TEXT("KRACertCount") +#define wszREGKRAFLAGS TEXT("KRAFlags") +#define wszREGCATYPE TEXT("CAType") +#define wszREGCERTENROLLCOMPATIBLE TEXT("CertEnrollCompatible") +#define wszREGENFORCEX500NAMELENGTHS TEXT("EnforceX500NameLengths") +#define wszREGCOMMONNAME TEXT("CommonName") +#define wszREGCLOCKSKEWMINUTES TEXT("ClockSkewMinutes") + +#define wszREGCRLNEXTPUBLISH TEXT("CRLNextPublish") +#define wszREGCRLPERIODSTRING TEXT("CRLPeriod") +#define wszREGCRLPERIODCOUNT TEXT("CRLPeriodUnits") +#define wszREGCRLOVERLAPPERIODSTRING TEXT("CRLOverlapPeriod") +#define wszREGCRLOVERLAPPERIODCOUNT TEXT("CRLOverlapUnits") + +#define wszREGCRLDELTANEXTPUBLISH TEXT("CRLDeltaNextPublish") +#define wszREGCRLDELTAPERIODSTRING TEXT("CRLDeltaPeriod") +#define wszREGCRLDELTAPERIODCOUNT TEXT("CRLDeltaPeriodUnits") +#define wszREGCRLDELTAOVERLAPPERIODSTRING TEXT("CRLDeltaOverlapPeriod") +#define wszREGCRLDELTAOVERLAPPERIODCOUNT TEXT("CRLDeltaOverlapUnits") + +#define wszREGCRLPUBLICATIONURLS TEXT("CRLPublicationURLs") +#define wszREGCACERTPUBLICATIONURLS TEXT("CACertPublicationURLs") + +#define wszREGCRLMAXPARTITIONS TEXT("CRLMaxPartitions") +#define wszREGCRLSUSPENDEDPARTITIONS TEXT("CRLSuspendedPartitions") +#define wszREGCRLCURRENTPARTITION TEXT("CRLCurrentPartition") + +#define wszREGCAXCHGVALIDITYPERIODSTRING TEXT("CAXchgValidityPeriod") +#define wszREGCAXCHGVALIDITYPERIODCOUNT TEXT("CAXchgValidityPeriodUnits") +#define wszREGCAXCHGOVERLAPPERIODSTRING TEXT("CAXchgOverlapPeriod") +#define wszREGCAXCHGOVERLAPPERIODCOUNT TEXT("CAXchgOverlapPeriodUnits") + +#define wszREGCRLPATH_OLD TEXT("CRLPath") +#define wszREGCRLEDITFLAGS TEXT("CRLEditFlags") +#define wszREGCRLFLAGS TEXT("CRLFlags") +#define wszREGCRLATTEMPTREPUBLISH TEXT("CRLAttemptRepublish") +#define wszREGENABLED TEXT("Enabled") +#define wszREGFORCETELETEX TEXT("ForceTeletex") +#define wszREGLOGLEVEL TEXT("LogLevel") +#define wszREGHIGHSERIAL TEXT("HighSerial") +#define wszREGPOLICYFLAGS TEXT("PolicyFlags") +#define wszREGNAMESEPARATOR TEXT("SubjectNameSeparator") +#define wszREGSUBJECTTEMPLATE TEXT("SubjectTemplate") +#define wszREGCAUSEDS TEXT("UseDS") +#define wszREGVALIDITYPERIODSTRING TEXT("ValidityPeriod") +#define wszREGVALIDITYPERIODCOUNT TEXT("ValidityPeriodUnits") +#define wszREGPARENTCAMACHINE TEXT("ParentCAMachine") +#define wszREGPARENTCANAME TEXT("ParentCAName") +#define wszREGREQUESTFILENAME TEXT("RequestFileName") +#define wszREGREQUESTID TEXT("RequestId") +#define wszREGREQUESTKEYCONTAINER TEXT("RequestKeyContainer") +#define wszREGREQUESTKEYINDEX TEXT("RequestKeyIndex") +#define wszREGCASERVERNAME TEXT("CAServerName") +#define wszREGCACERTFILENAME TEXT("CACertFileName") +#define wszREGCASECURITY TEXT("Security") +#define wszREGAUDITFILTER TEXT("AuditFilter") +#define wszREGOFFICERRIGHTS TEXT("OfficerRights") +#define wszENROLLMENTAGENTRIGHTS TEXT("EnrollmentAgentRights") +#define wszREGMAXINCOMINGMESSAGESIZE TEXT("MaxIncomingMessageSize") +#define wszREGMAXINCOMINGALLOCSIZE TEXT("MaxIncomingAllocSize") +#define wszREGROLESEPARATIONENABLED TEXT("RoleSeparationEnabled") +#define wszREGALTERNATEPUBLISHDOMAINS TEXT("AlternatePublishDomains") + +#define wszREGSETUPSTATUS TEXT("SetupStatus") +#define wszREGINTERFACEFLAGS TEXT("InterfaceFlags") +#define wszREGDSCONFIGDN TEXT("DSConfigDN") +#define wszREGDSDOMAINDN TEXT("DSDomainDN") +#define wszREGVIEWAGEMINUTES TEXT("ViewAgeMinutes") +#define wszREGVIEWIDLEMINUTES TEXT("ViewIdleMinutes") + +// This contains a list of UNC or local directories, each containing a selection of EK public keys +// that will be explicitly trusted for TPM attestation +#define wszREGEKPUBLISTDIRECTORIES TEXT("EndorsementKeyListDirectories") + +// This configures the CA to accept Certificate Transparency requests +#define wszCERTIFICATETRANSPARENCYFLAGS TEXT("CertificateTransparencyFlags") + +// This customizes the maximum size of the CT SCTList accepted by the CA +#define wszREGMAXSCTLISTSIZE TEXT("MaxSCTListSize") + +// This sets an OID to replace szOID_CT_CERT_SCTLIST in the issued certificate +#define wszREGCERTIFICATETRANSPARENCYINFOOID TEXT("CTInformationExtensionOid") + +// This extends optional CA behavior with simple processing flags +#define wszREGPROCESSINGFLAGS TEXT("ProcessingFlags") + +// This REG_DWORD value determines if the CA accepts OCSP Signing certificate +// enrollment and renewal requests for replaced CA keys. +// * If the UseDefinedCACertInRequest does not exist, then the default behavior +// is used (do not accept certificate requests on replaced CA keys) +// * Setting the value to 0 is the default setting +// * Setting the value to a non-zero value enables the CA for certificate +// requests for replaced CA keys +#define wszREGUSEDEFINEDCACERTINREQ TEXT("UseDefinedCACertInRequest") + +// This REG_MULTISZ value allows administrators to customize which OIDs can be +// present in OCSP requesting certificates in order to enroll or renew against +// replaced CA keys. +// * If the EnabledEKUForDefinedCACert multi-string entry does not exist, +// then the default behavior is used (enforce OCSP EKU in resultant cert) +// * If a value is present, a basic ASN1 compliance check must be performed on +// CA start-up. If compliance of OID fails validation, the CA must log an +// error and default to enforce OCSP EKU in resultant cert. +#define wszREGENABLEDEKUFORDEFINEDCACERT TEXT("EnabledEKUForDefinedCACert") + +// This REG_MULTISZ value allows administrators to customize which OIDs can be +// present in certificates that are being revoked and need to be present in CRL +// regardless of the certificates validity period. +// * If the EKUOIDsForPublishExpiredCertInCRL multi-string entry does not exist, +// then the default behavior is used (default OIDS defined below). +// * If a value is present, a basic ASN1 compliance check must be performed on +// CA start-up. If compliance of OID fails validation, the CA must log an +// error and default OIDs (defined below) would be used. +#define wszREGEKUOIDSFORPUBLISHEXPIREDCERTINCRL TEXT("EKUOIDsForPublishExpiredCertInCRL") + + +#define wszzDEFAULTEKUOIDSFORPUBLISHEXPIREDCERTINCRL \ + TEXT(szOID_PKIX_KP_CODE_SIGNING) L"\0" \ + TEXT(szOID_KP_KERNEL_MODE_CODE_SIGNING) L"\0" + +#define wszCRTFILENAMEEXT TEXT(".crt") +#define wszPFXFILENAMEEXT TEXT(".p12") +#define wszDATFILENAMEEXT TEXT(".dat") +#define wszLOGFILENAMEEXT TEXT(".log") +#define wszDBFILENAMEEXT TEXT(".edb") +#define szDBBASENAMEPARM "edb" +#define wszDBBASENAMEPARM TEXT(szDBBASENAMEPARM) +#define wszLOGPATH TEXT("CertLog") +#define wszDBBACKUPSUBDIR TEXT("DataBase") +#define wszDBBACKUPCERTBACKDAT TEXT("certbkxp.dat") + +#ifndef __ENUM_CATYPES__ +#define __ENUM_CATYPES__ + +//================================== +// Values for wszREGCATYPE: +typedef enum { + ENUM_ENTERPRISE_ROOTCA = 0, + ENUM_ENTERPRISE_SUBCA = 1, + //ENUM_UNUSED2 = 2, + ENUM_STANDALONE_ROOTCA = 3, + ENUM_STANDALONE_SUBCA = 4, + ENUM_UNKNOWN_CA = 5, +} ENUM_CATYPES; + +typedef struct _CAINFO +{ + DWORD cbSize; + ENUM_CATYPES CAType; + DWORD cCASignatureCerts; + DWORD cCAExchangeCerts; + DWORD cExitModules; + LONG lPropIdMax; + LONG lRoleSeparationEnabled; + DWORD cKRACertUsedCount; + DWORD cKRACertCount; + DWORD fAdvancedServer; +} CAINFO; + +#endif // __ENUM_CATYPES__ + +// Default value for wszREGCLOCKSKEWMINUTES +#define CCLOCKSKEWMINUTESDEFAULT 10 + + +// Default value for wszREGVIEWAGEMINUTES, wszREGVIEWIDLEMINUTES +#define CVIEWAGEMINUTESDEFAULT 16 +#define CVIEWIDLEMINUTESDEFAULT (CVIEWAGEMINUTESDEFAULT / 2) + +// Default validity period for ROOT CA certs: +#define dwVALIDITYPERIODCOUNTDEFAULT_ROOT 5 + +// Default validity periods for certs issued by a CA: +#define dwVALIDITYPERIODCOUNTDEFAULT_ENTERPRISE 2 +#define dwVALIDITYPERIODCOUNTDEFAULT_STANDALONE 1 +#define dwVALIDITYPERIODENUMDEFAULT ENUM_PERIOD_YEARS +#define wszVALIDITYPERIODSTRINGDEFAULT wszPERIODYEARS + +#define dwCAXCHGVALIDITYPERIODCOUNTDEFAULT 1 +#define dwCAXCHGVALIDITYPERIODENUMDEFAULT ENUM_PERIOD_WEEKS +#define wszCAXCHGVALIDITYPERIODSTRINGDEFAULT wszPERIODWEEKS + +#define dwCAXCHGOVERLAPPERIODCOUNTDEFAULT 1 +#define dwCAXCHGOVERLAPPERIODENUMDEFAULT ENUM_PERIOD_DAYS +#define wszCAXCHGOVERLAPPERIODSTRINGDEFAULT wszPERIODDAYS + +#define dwCRLPERIODCOUNTDEFAULT 1 +#define wszCRLPERIODSTRINGDEFAULT wszPERIODWEEKS + +#define dwCRLOVERLAPPERIODCOUNTDEFAULT 0 // 0 --> disabled +#define wszCRLOVERLAPPERIODSTRINGDEFAULT wszPERIODHOURS + +#define dwCRLDELTAPERIODCOUNTDEFAULT 1 +#define wszCRLDELTAPERIODSTRINGDEFAULT wszPERIODDAYS + +#define dwCRLDELTAOVERLAPPERIODCOUNTDEFAULT 0 // 0 --> disabled +#define wszCRLDELTAOVERLAPPERIODSTRINGDEFAULT wszPERIODMINUTES + + +//================================== +// Values for wszREGLOGLEVEL: +#define CERTLOG_MINIMAL (DWORD) 0 +#define CERTLOG_TERSE (DWORD) 1 +#define CERTLOG_ERROR (DWORD) 2 +#define CERTLOG_WARNING (DWORD) 3 +#define CERTLOG_VERBOSE (DWORD) 4 +#define CERTLOG_EXHAUSTIVE (DWORD) 5 + + +//================================== +// Values for wszREGSETUPSTATUS: +#define SETUP_SERVER_FLAG 0x00000001 // server installed +#define SETUP_CLIENT_FLAG 0x00000002 // client installed +#define SETUP_SUSPEND_FLAG 0x00000004 // incomplete install +#define SETUP_REQUEST_FLAG 0x00000008 // new cert requested +#define SETUP_ONLINE_FLAG 0x00000010 // requested online +#define SETUP_DENIED_FLAG 0x00000020 // request denied +#define SETUP_CREATEDB_FLAG 0x00000040 // create new DB +#define SETUP_ATTEMPT_VROOT_CREATE 0x00000080 // try to create vroots +#define SETUP_FORCECRL_FLAG 0x00000100 // force new CRL(s) + +// add server type to CA DS object "flags" attr: +#define SETUP_UPDATE_CAOBJECT_SVRTYPE 0x00000200 + +#define SETUP_SERVER_UPGRADED_FLAG 0x00000400 // server was upgraded + +// still need to upgrade security: +#define SETUP_W2K_SECURITY_NOT_UPGRADED_FLAG 0x00000800 + +// permissons changed while CA was down, certsrv will need to update DS & +// service when it restarts: +#define SETUP_SECURITY_CHANGED 0x00001000 + +// win2k3 SP1 - global DCOM security has been fixed: +#define SETUP_DCOM_SECURITY_UPDATED_FLAG 0x00002000 + +// Indicates that the server is up to date: +#define SETUP_SERVER_IS_UP_TO_DATE_FLAG 0x00004000 + + +//================================== +// Values for wszREGCRLFLAGS: +#define CRLF_DELTA_USE_OLDEST_UNEXPIRED_BASE 0x00000001 // use oldest base: +// else use newest base CRL that satisfies base CRL propagation delay + +#define CRLF_DELETE_EXPIRED_CRLS 0x00000002 +#define CRLF_CRLNUMBER_CRITICAL 0x00000004 +#define CRLF_REVCHECK_IGNORE_OFFLINE 0x00000008 +#define CRLF_IGNORE_INVALID_POLICIES 0x00000010 +#define CRLF_REBUILD_MODIFIED_SUBJECT_ONLY 0x00000020 +#define CRLF_SAVE_FAILED_CERTS 0x00000040 +#define CRLF_IGNORE_UNKNOWN_CMC_ATTRIBUTES 0x00000080 +#define CRLF_IGNORE_CROSS_CERT_TRUST_ERROR 0x00000100 +#define CRLF_PUBLISH_EXPIRED_CERT_CRLS 0x00000200 +#define CRLF_ENFORCE_ENROLLMENT_AGENT 0x00000400 +#define CRLF_DISABLE_RDN_REORDER 0x00000800 +#define CRLF_DISABLE_ROOT_CROSS_CERTS 0x00001000 +#define CRLF_LOG_FULL_RESPONSE 0x00002000 // hex dump response to console +#define CRLF_USE_XCHG_CERT_TEMPLATE 0x00004000 // enforce xchg template access +#define CRLF_USE_CROSS_CERT_TEMPLATE 0x00008000 // enforce cross template access +#define CRLF_ALLOW_REQUEST_ATTRIBUTE_SUBJECT 0x00010000 +#define CRLF_REVCHECK_IGNORE_NOREVCHECK 0x00020000 +#define CRLF_PRESERVE_EXPIRED_CA_CERTS 0x00040000 +#define CRLF_PRESERVE_REVOKED_CA_CERTS 0x00080000 +#define CRLF_DISABLE_CHAIN_VERIFICATION 0x00100000 +#define CRLF_BUILD_ROOTCA_CRLENTRIES_BASEDONKEY 0x00200000 +// Flag to enable CRL partition feature +#define CRLF_ENABLE_CRL_PARTITION 0x00400000 +// Flag to make the partition zero CRLs exclusive. +// When the flag is set, the CRLs of partition zero will exclusively contain +// entries related to certificates assigned specifically to partition zero. +#define CRLF_PARTITION_ZERO_EXCLUSIVE 0x00800000 +#define CRLF_CONTAINS_ONLY_CACERTS 0x01000000 +#define CRLF_CONTAINS_ONLY_USERCERTS 0x02000000 + +//================================== +// Values for wszREGKRAFLAGS: +#define KRAF_ENABLEFOREIGN 0x00000001 // allow foreign cert, key archival +#define KRAF_SAVEBADREQUESTKEY 0x00000002 // save failed request w/archived key +#define KRAF_ENABLEARCHIVEALL 0x00000004 +#define KRAF_DISABLEUSEDEFAULTPROVIDER 0x00000008 + +//================================== +// Values for wszREGINTERFACEFLAGS: +#define IF_LOCKICERTREQUEST 0x00000001 +#define IF_NOREMOTEICERTREQUEST 0x00000002 +#define IF_NOLOCALICERTREQUEST 0x00000004 +#define IF_NORPCICERTREQUEST 0x00000008 +#define IF_NOREMOTEICERTADMIN 0x00000010 +#define IF_NOLOCALICERTADMIN 0x00000020 +#define IF_NOREMOTEICERTADMINBACKUP 0x00000040 +#define IF_NOLOCALICERTADMINBACKUP 0x00000080 +#define IF_NOSNAPSHOTBACKUP 0x00000100 +#define IF_ENFORCEENCRYPTICERTREQUEST 0x00000200 +#define IF_ENFORCEENCRYPTICERTADMIN 0x00000400 +#define IF_ENABLEEXITKEYRETRIEVAL 0x00000800 +#define IF_ENABLEADMINASAUDITOR 0x00001000 +#define IF_ENABLEPRESIGNSUPPORT 0x00002000 + +#define IF_DEFAULT (IF_NOREMOTEICERTADMINBACKUP | \ + IF_LOCKICERTREQUEST | \ + IF_ENFORCEENCRYPTICERTREQUEST | \ + IF_ENFORCEENCRYPTICERTADMIN) + + +// ================================= +// Values for wszREGPROCESSINGFLAGS: +#define PROCFLG_NONE 0x00 +#define PROCFLG_ENFORCEGOODKEYS 0x01 + +//================================== +// Values for numeric prefixes for +// wszREGCRLPUBLICATIONURLS and wszREGCACERTPUBLICATIONURLS: +// +// URL publication template Flags values, encoded as a decimal prefix for URL +// publication templates in the registry: +// "1:c:\winnt\System32\CertSrv\CertEnroll\MyCA.crl" +// "2:http:\//MyServer.MyDomain.com/CertEnroll\MyCA.crl" + +#define CSURL_SERVERPUBLISH 0x00000001 +#define CSURL_ADDTOCERTCDP 0x00000002 +#define CSURL_ADDTOFRESHESTCRL 0x00000004 +#define CSURL_ADDTOCRLCDP 0x00000008 +#define CSURL_PUBLISHRETRY 0x00000010 +#define CSURL_ADDTOCERTOCSP 0x00000020 +#define CSURL_SERVERPUBLISHDELTA 0x00000040 +#define CSURL_ADDTOIDP 0x00000080 +//====================================================================== +// Keys Under "CertSvc\Configuration\": +#define wszREGKEYCSP TEXT("CSP") +#define wszREGKEYENCRYPTIONCSP TEXT("EncryptionCSP") +#define wszREGKEYEXITMODULES TEXT("ExitModules") +#define wszREGKEYPOLICYMODULES TEXT("PolicyModules") +#define wszSECUREDATTRIBUTES TEXT("SignedAttributes") + +#define wszzDEFAULTSIGNEDATTRIBUTES TEXT("RequesterName\0") + +//====================================================================== +// Values Under "CertSvc\Configuration\RestoreInProgress": +#define wszREGBACKUPLOGDIRECTORY TEXT("BackupLogDirectory") +#define wszREGCHECKPOINTFILE TEXT("CheckPointFile") +#define wszREGHIGHLOGNUMBER TEXT("HighLogNumber") +#define wszREGLOWLOGNUMBER TEXT("LowLogNumber") +#define wszREGLOGPATH TEXT("LogPath") +#define wszREGRESTOREMAPCOUNT TEXT("RestoreMapCount") +#define wszREGRESTOREMAP TEXT("RestoreMap") +#define wszREGDATABASERECOVERED TEXT("DatabaseRecovered") +#define wszREGRESTORESTATUS TEXT("RestoreStatus") + +// values under \Configuration\PolicyModules in nt5 beta 2 +#define wszREGB2ICERTMANAGEMODULE TEXT("ICertManageModule") +// values under \Configuration in nt4 sp4 +#define wszREGSP4DEFAULTCONFIGURATION TEXT("DefaultConfiguration") +// values under ca in nt4 sp4 +#define wszREGSP4KEYSETNAME TEXT("KeySetName") +#define wszREGSP4SUBJECTNAMESEPARATOR TEXT("SubjectNameSeparator") +#define wszREGSP4NAMES TEXT("Names") +#define wszREGSP4QUERIES TEXT("Queries") +// both nt4 sp4 and nt5 beta 2 +#define wszREGNETSCAPECERTTYPE TEXT("NetscapeCertType") +#define wszNETSCAPEREVOCATIONTYPE TEXT("Netscape") + + +//====================================================================== +// Values Under "CertSvc\Configuration\\CSP": +// and "CertSvc\Configuration\\EncryptionCSP": +#define wszREGPROVIDERTYPE TEXT("ProviderType") +#define wszREGPROVIDER TEXT("Provider") +#define wszHASHALGORITHM TEXT("HashAlgorithm") +#define wszENCRYPTIONALGORITHM TEXT("EncryptionAlgorithm") +#define wszMACHINEKEYSET TEXT("MachineKeyset") +#define wszREGKEYSIZE TEXT("KeySize") +#define wszREGSYMMETRICKEYSIZE TEXT("SymmetricKeySize") +#define wszCNGPUBLICKEYALGORITHM TEXT("CNGPublicKeyAlgorithm") +#define wszCNGHASHALGORITHM TEXT("CNGHashAlgorithm") +#define wszCNGENCRYPTIONALGORITHM TEXT("CNGEncryptionAlgorithm") +#define wszREGALTERNATESIGNATUREALGORITHM TEXT("AlternateSignatureAlgorithm") + + +//====================================================================== +// Value strings for "CertSvc\Configuration\\SubjectNameSeparator": +#define szNAMESEPARATORDEFAULT "\n" +#define wszNAMESEPARATORDEFAULT TEXT(szNAMESEPARATORDEFAULT) + + +//====================================================================== +// Value strings for "CertSvc\Configuration\\ValidityPeriod", etc.: +#define wszPERIODYEARS TEXT("Years") +#define wszPERIODMONTHS TEXT("Months") +#define wszPERIODWEEKS TEXT("Weeks") +#define wszPERIODDAYS TEXT("Days") +#define wszPERIODHOURS TEXT("Hours") +#define wszPERIODMINUTES TEXT("Minutes") +#define wszPERIODSECONDS TEXT("Seconds") + +//====================================================================== +// Values Under "CertSvc\Configuration\\PolicyModules\": +#define wszREGISSUERCERTURLFLAGS TEXT("IssuerCertURLFlags") +#define wszREGEDITFLAGS TEXT("EditFlags") +#define wszREGUPNMAP TEXT("UPNMap") +#define wszREGSUBJECTALTNAME TEXT("SubjectAltName") +#define wszREGSUBJECTALTNAME2 TEXT("SubjectAltName2") +#define wszREGREQUESTDISPOSITION TEXT("RequestDisposition") +#define wszREGCAPATHLENGTH TEXT("CAPathLength") +#define wszREGREVOCATIONTYPE TEXT("RevocationType") + +#define wszREGLDAPREVOCATIONCRLURL_OLD TEXT("LDAPRevocationCRLURL") +#define wszREGREVOCATIONCRLURL_OLD TEXT("RevocationCRLURL") +#define wszREGFTPREVOCATIONCRLURL_OLD TEXT("FTPRevocationCRLURL") +#define wszREGFILEREVOCATIONCRLURL_OLD TEXT("FileRevocationCRLURL") + +#define wszREGREVOCATIONURL TEXT("RevocationURL") + +#define wszREGLDAPISSUERCERTURL_OLD TEXT("LDAPIssuerCertURL") +#define wszREGISSUERCERTURL_OLD TEXT("IssuerCertURL") +#define wszREGFTPISSUERCERTURL_OLD TEXT("FTPIssuerCertURL") +#define wszREGFILEISSUERCERTURL_OLD TEXT("FileIssuerCertURL") + +#define wszREGENABLEREQUESTEXTENSIONLIST TEXT("EnableRequestExtensionList") +#define wszREGENABLEENROLLEEREQUESTEXTENSIONLIST TEXT("EnableEnrolleeRequestExtensionList") +#define wszREGDISABLEEXTENSIONLIST TEXT("DisableExtensionList") + +// This REG_MULTISZ value allows administrators to control +// which certificate requests get written to the database. +// the EnableVolatileRequests registry value must be enabled for this to work +// * If a value is present, a basic ASN1 compliance check must be performed on +// policy module start-up. If the compliance of OIDs fail validation, the policy module must fail to initialize. +#define wszREGEKUOIDSFORVOLATILEREQUESTS TEXT("EKUOIDsforVolatileRequests") + +// Following values would be used to configure the ldap session during setup of connection to DC from +// policy module +// CertSvc\Configuration\\PolicyModules\\LdapSessionOptions\ +// OptionId1\ +// LDAPSessionOptionValue +// OptionId2\ +// LDAPSessionOptionValue +// OptionId3\ +// LDAPSessionOptionValue +// ... +// OptionId* should be the decimal equivalent of ldap session option identifier +// (see ldap_set_option for the id and allowed values). +// LDAPSessionOptionValue should be REG_DWORD (meaning only options whose value +// is of integer type can be set by configuring this registry key +// +#define wszREGLDAPSESSIONOPTIONS TEXT("LDAPSessionOptions") +#define wszLDAPSESSIONOPTIONVALUE TEXT("LDAPSessionOptionValue") + +#define wszREGDEFAULTSMIME TEXT("DefaultSMIME") + +// wszREGCAPATHLENGTH Values: +#define CAPATHLENGTH_INFINITE 0xffffffff + +// wszREGREQUESTDISPOSITION Values: +#define REQDISP_PENDING 0x00000000 +#define REQDISP_ISSUE 0x00000001 +#define REQDISP_DENY 0x00000002 +#define REQDISP_USEREQUESTATTRIBUTE 0x00000003 +#define REQDISP_MASK 0x000000ff +#define REQDISP_PENDINGFIRST 0x00000100 +#define REQDISP_DEFAULT_STANDALONE (REQDISP_PENDINGFIRST | REQDISP_ISSUE) +#define REQDISP_DEFAULT_ENTERPRISE (REQDISP_ISSUE) + +// wszREGREVOCATIONTYPE Values: +#define REVEXT_CDPLDAPURL_OLD 0x00000001 +#define REVEXT_CDPHTTPURL_OLD 0x00000002 +#define REVEXT_CDPFTPURL_OLD 0x00000004 +#define REVEXT_CDPFILEURL_OLD 0x00000008 +#define REVEXT_CDPURLMASK_OLD 0x000000ff +#define REVEXT_CDPENABLE 0x00000100 +#define REVEXT_ASPENABLE 0x00000200 + +#define REVEXT_DEFAULT_NODS (REVEXT_CDPENABLE) +#define REVEXT_DEFAULT_DS (REVEXT_CDPENABLE) + +// wszREGISSUERCERTURLFLAGS Values: +#define ISSCERT_LDAPURL_OLD 0x00000001 +#define ISSCERT_HTTPURL_OLD 0x00000002 +#define ISSCERT_FTPURL_OLD 0x00000004 +#define ISSCERT_FILEURL_OLD 0x00000008 +#define ISSCERT_URLMASK_OLD 0x000000ff +#define ISSCERT_ENABLE 0x00000100 + +#define ISSCERT_DEFAULT_NODS (ISSCERT_ENABLE) +#define ISSCERT_DEFAULT_DS (ISSCERT_ENABLE) + +// wszREGEDITFLAGS Values: Defaults: +// Under CA key: wszREGCRLEDITFLAGS Values (EDITF_ENABLEAKI* only): +#define EDITF_ENABLEREQUESTEXTENSIONS 0x00000001 // neither +#define EDITF_REQUESTEXTENSIONLIST 0x00000002 // both +#define EDITF_DISABLEEXTENSIONLIST 0x00000004 // both +#define EDITF_ADDOLDKEYUSAGE 0x00000008 // both +#define EDITF_ADDOLDCERTTYPE 0x00000010 // neither +#define EDITF_ATTRIBUTEENDDATE 0x00000020 // Standalone +#define EDITF_BASICCONSTRAINTSCRITICAL 0x00000040 // both +#define EDITF_BASICCONSTRAINTSCA 0x00000080 // Standalone +#define EDITF_ENABLEAKIKEYID 0x00000100 // both +#define EDITF_ATTRIBUTECA 0x00000200 // Standalone +#define EDITF_IGNOREREQUESTERGROUP 0x00000400 // neither +#define EDITF_ENABLEAKIISSUERNAME 0x00000800 // neither +#define EDITF_ENABLEAKIISSUERSERIAL 0x00001000 // neither +#define EDITF_ENABLEAKICRITICAL 0x00002000 // neither +#define EDITF_SERVERUPGRADED 0x00004000 // neither +#define EDITF_ATTRIBUTEEKU 0x00008000 // Standalone +#define EDITF_ENABLEDEFAULTSMIME 0x00010000 // Enterprise +#define EDITF_EMAILOPTIONAL 0x00020000 // neither +#define EDITF_ATTRIBUTESUBJECTALTNAME2 0x00040000 // neither +#define EDITF_ENABLELDAPREFERRALS 0x00080000 // neither +#define EDITF_ENABLECHASECLIENTDC 0x00100000 // Enterprise +#define EDITF_AUDITCERTTEMPLATELOAD 0x00200000 // neither +#define EDITF_DISABLEOLDOSCNUPN 0x00400000 // neither +#define EDITF_DISABLELDAPPACKAGELIST 0x00800000 // neither +#define EDITF_ENABLEUPNMAP 0x01000000 // neither +#define EDITF_ENABLEOCSPREVNOCHECK 0x02000000 // neither +#define EDITF_ENABLERENEWONBEHALFOF 0x04000000 // Enterprise +#define EDITF_ENABLEKEYENCIPHERMENTCACERT 0x08000000 // neither + +#define EDITF_DEFAULT_STANDALONE (EDITF_REQUESTEXTENSIONLIST | \ + EDITF_DISABLEEXTENSIONLIST | \ + EDITF_ADDOLDKEYUSAGE | \ + EDITF_ATTRIBUTEENDDATE | \ + EDITF_BASICCONSTRAINTSCRITICAL | \ + EDITF_BASICCONSTRAINTSCA | \ + EDITF_ENABLEAKIKEYID | \ + EDITF_ATTRIBUTECA | \ + EDITF_ATTRIBUTEEKU) + +#define EDITF_DEFAULT_ENTERPRISE (EDITF_REQUESTEXTENSIONLIST | \ + EDITF_DISABLEEXTENSIONLIST | \ + EDITF_ADDOLDKEYUSAGE | \ + EDITF_BASICCONSTRAINTSCRITICAL | \ + EDITF_ENABLEAKIKEYID | \ + EDITF_ENABLEDEFAULTSMIME | \ + EDITF_ENABLECHASECLIENTDC) + + +//====================================================================== +// Values Under "CertSvc\Configuration\\ExitModules\": + +// LDAP based CRL and URL issuance +#define wszREGLDAPREVOCATIONDN_OLD TEXT("LDAPRevocationDN") +#define wszREGLDAPREVOCATIONDNTEMPLATE_OLD TEXT("LDAPRevocationDNTemplate") +#define wszCRLPUBLISHRETRYCOUNT TEXT("CRLPublishRetryCount") +#define wszREGCERTPUBLISHFLAGS TEXT("PublishCertFlags") + +// wszREGCERTPUBLISHFLAGS Values: +#define EXITPUB_FILE 0x00000001 +#define EXITPUB_ACTIVEDIRECTORY 0x00000002 +#define EXITPUB_REMOVEOLDCERTS 0x00000010 + +#define EXITPUB_DEFAULT_ENTERPRISE EXITPUB_ACTIVEDIRECTORY + +#define EXITPUB_DEFAULT_STANDALONE EXITPUB_FILE + + +#define wszCLASS_CERTADMIN TEXT("CertificateAuthority.Admin") +#define wszCLASS_CERTCONFIG TEXT("CertificateAuthority.Config") +#define wszCLASS_CERTGETCONFIG TEXT("CertificateAuthority.GetConfig") + +#define wszCLASS_CERTENCODE TEXT("CertificateAuthority.Encode") +#define wszCLASS_CERTDBMEM TEXT("CertificateAuthority.DBMem") // no_certs +#define wszCLASS_CERTREQUEST TEXT("CertificateAuthority.Request") +#define wszCLASS_CERTSERVEREXIT TEXT("CertificateAuthority.ServerExit") +#define wszCLASS_CERTSERVERPOLICY TEXT("CertificateAuthority.ServerPolicy") +#define wszCLASS_CERTVIEW TEXT("CertificateAuthority.View") + +// class name templates +#define wszMICROSOFTCERTMODULE_PREFIX TEXT("CertificateAuthority_MicrosoftDefault") +#define wszCERTMANAGE_SUFFIX TEXT("Manage") +#define wszCERTEXITMODULE_POSTFIX TEXT(".Exit") +#define wszCERTMANAGEEXIT_POSTFIX wszCERTEXITMODULE_POSTFIX wszCERTMANAGE_SUFFIX +#define wszCERTPOLICYMODULE_POSTFIX TEXT(".Policy") +#define wszCERTMANAGEPOLICY_POSTFIX wszCERTPOLICYMODULE_POSTFIX wszCERTMANAGE_SUFFIX + + +// actual policy/exit manage class names +#define wszCLASS_CERTMANAGEEXITMODULE wszMICROSOFTCERTMODULE_PREFIX wszCERTMANAGEEXIT_POSTFIX + +#define wszCLASS_CERTMANAGEPOLICYMODULE wszMICROSOFTCERTMODULE_PREFIX wszCERTMANAGEPOLICY_POSTFIX + +// actual policy/exit class names +#define wszCLASS_CERTEXIT wszMICROSOFTCERTMODULE_PREFIX wszCERTEXITMODULE_POSTFIX + +#define wszCLASS_CERTPOLICY wszMICROSOFTCERTMODULE_PREFIX wszCERTPOLICYMODULE_POSTFIX + + +#define wszCAPOLICYFILE L"CAPolicy.inf" + +#define wszINFSECTION_CDP L"CRLDistributionPoint" +#define wszINFSECTION_AIA L"AuthorityInformationAccess" +#define wszINFSECTION_EKU L"EnhancedKeyUsageExtension" +#define wszINFSECTION_CCDP L"CrossCertificateDistributionPointsExtension" + +#define wszINFSECTION_CERTSERVER L"certsrv_server" +#define wszINFKEY_RENEWALKEYLENGTH L"RenewalKeyLength" +#define wszINFKEY_RENEWALVALIDITYPERIODSTRING L"RenewalValidityPeriod" +#define wszINFKEY_RENEWALVALIDITYPERIODCOUNT L"RenewalValidityPeriodUnits" +#define wszINFKEY_UTF8 L"UTF8" +#define wszINFKEY_CRLPERIODSTRING wszREGCRLPERIODSTRING +#define wszINFKEY_CRLPERIODCOUNT wszREGCRLPERIODCOUNT +#define wszINFKEY_CRLDELTAPERIODSTRING wszREGCRLDELTAPERIODSTRING +#define wszINFKEY_CRLDELTAPERIODCOUNT wszREGCRLDELTAPERIODCOUNT +#define wszINFKEY_LOADDEFAULTTEMPLATES L"LoadDefaultTemplates" +#define wszINFKEY_ENABLEKEYCOUNTING L"EnableKeyCounting" +#define wszINFKEY_FORCEUTF8 L"ForceUTF8" +#define wszINFKEY_ALTERNATESIGNATUREALGORITHM wszREGALTERNATESIGNATUREALGORITHM +#define wszINFKEY_SHOWALLCSPS L"ShowAllCSPs" + +#define wszINFKEY_CRITICAL L"Critical" +#define wszINFKEY_EMPTY L"Empty" + +#define wszINFKEY_CCDPSYNCDELTATIME L"SyncDeltaTime" + +#define wszINFSECTION_CAPOLICY L"CAPolicy" +#define wszINFSECTION_POLICYSTATEMENT L"PolicyStatementExtension" +#define wszINFSECTION_APPLICATIONPOLICYSTATEMENT L"ApplicationPolicyStatementExtension" +#define wszINFKEY_POLICIES L"Policies" +#define wszINFKEY_OID L"OID" +#define wszINFKEY_NOTICE L"Notice" +#define wszINFKEY_FLAGS L"Flags" + +#define wszINFSECTION_REQUESTATTRIBUTES L"RequestAttributes" + +#define wszINFSECTION_NAMECONSTRAINTS L"NameConstraintsExtension" +#define wszINFKEY_INCLUDE L"Include" +#define wszINFKEY_EXCLUDE L"Exclude" + +// for [Extensions] section Name Constraints processing: +#define wszINFKEY_SUBTREE L"SubTree" + +#define wszINFKEY_UPN L"UPN" +#define wszINFKEY_EMAIL L"EMail" +#define wszINFKEY_DNS L"DNS" +#define wszINFKEY_DIRECTORYNAME L"DirectoryName" +#define wszINFKEY_URL L"URL" +#define wszINFKEY_IPADDRESS L"IPAddress" +#define wszINFKEY_REGISTEREDID L"RegisteredId" +#define wszINFKEY_OTHERNAME L"OtherName" + +#define wszINFSECTION_POLICYMAPPINGS L"PolicyMappingsExtension" +#define wszINFSECTION_APPLICATIONPOLICYMAPPINGS L"ApplicationPolicyMappingsExtension" + +#define wszINFSECTION_POLICYCONSTRAINTS L"PolicyConstraintsExtension" +#define wszINFSECTION_APPLICATIONPOLICYCONSTRAINTS L"ApplicationPolicyConstraintsExtension" +#define wszINFKEY_REQUIREEXPLICITPOLICY L"RequireExplicitPolicy" +#define wszINFKEY_INHIBITPOLICYMAPPING L"InhibitPolicyMapping" + +#define wszINFSECTION_BASICCONSTRAINTS L"BasicConstraintsExtension" +#define wszINFKEY_PATHLENGTH L"PathLength" + +#define wszINFSECTION_EXTENSIONS L"Extensions" +#define wszINFSECTION_PROPERTIES L"Properties" + +#define wszINFKEY_CONTINUE L"_continue_" + + +#define wszINFSECTION_NEWREQUEST L"NewRequest" +#define wszINFKEY_SUBJECT L"Subject" +#define wszINFKEY_SUBJECTNAMEFLAGS L"SubjectNameFlags" +#define wszINFKEY_X500NAMEFLAGS L"X500NameFlags" +#define wszINFKEY_EXPORTABLE L"Exportable" +#define wszINFKEY_EXPORTABLEENCRYPTED L"ExportableEncrypted" +#define wszINFKEY_HASHALGORITHM L"HashAlgorithm" +#define wszINFKEY_KEYALGORITHM L"KeyAlgorithm" +#define wszINFKEY_KEYALGORITHMPARMETERS L"KeyAlgorithmParameters" +#define wszINFKEY_KEYCONTAINER L"KeyContainer" +#define wszINFKEY_READERNAME L"ReaderName" +#define wszINFKEY_KEYLENGTH L"KeyLength" +#define wszINFKEY_LEGACYKEYSPEC L"KeySpec" +#define wszINFKEY_KEYUSAGEEXTENSION L"KeyUsage" +#define wszINFKEY_KEYUSAGEPROPERTY L"KeyUsageProperty" +#define wszINFKEY_MACHINEKEYSET L"MachineKeySet" +#define wszINFKEY_PRIVATEKEYARCHIVE L"PrivateKeyArchive" +#define wszINFKEY_ENCRYPTIONALGORITHM L"EncryptionAlgorithm" +#define wszINFKEY_ENCRYPTIONLENGTH L"EncryptionLength" +#define wszINFKEY_PROVIDERNAME L"ProviderName" +#define wszINFKEY_PROVIDERTYPE L"ProviderType" +#define wszINFKEY_READERNAME L"ReaderName" +#define wszINFKEY_RENEWALCERT L"RenewalCert" +#define wszINFKEY_REQUESTERNAME wszPROPREQUESTERNAME +#define wszINFKEY_REQUESTTYPE L"RequestType" +#define wszINFKEY_SECURITYDESCRIPTOR L"SecurityDescriptor" +//#define wszINFKEY_ALTERNATESIGNATUREALGORITHM wszREGALTERNATESIGNATUREALGORITHM +#define wszINFKEY_SILENT L"Silent" +#define wszINFKEY_SMIME L"SMIME" +#define wszINFKEY_SUPPRESSDEFAULTS L"SuppressDefaults" +#define wszINFKEY_USEEXISTINGKEY L"UseExistingKeySet" +#define wszINFKEY_USERPROTECTED L"UserProtected" // deprecated +#define wszINFKEY_KEYPROTECTION L"KeyProtection" +#define wszINFKEY_UICONTEXTMESSAGE L"UIContextMessage" +#define wszINFKEY_FRIENDLYNAME L"FriendlyName" +#define wszINFKEY_NOTBEFORE L"NotBefore" +#define wszINFKEY_NOTAFTER L"NotAfter" +#define wszINFKEY_ATTESTPRIVATEKEY L"AttestPrivateKey" +#define wszINFKEY_PUBLICKEY L"PublicKey" +#define wszINFKEY_PUBLICKEYPARAMETERS L"PublicKeyParameters" +#define wszINFKEY_ECCKEYPARAMETERS L"EccKeyParameters" +#define wszINFKEY_ECCKEYPARAMETERS_P L"EccKeyParameters_P" +#define wszINFKEY_ECCKEYPARAMETERS_A L"EccKeyParameters_A" +#define wszINFKEY_ECCKEYPARAMETERS_B L"EccKeyParameters_B" +#define wszINFKEY_ECCKEYPARAMETERS_SEED L"EccKeyParameters_Seed" +#define wszINFKEY_ECCKEYPARAMETERS_BASE L"EccKeyParameters_Base" +#define wszINFKEY_ECCKEYPARAMETERS_ORDER L"EccKeyParameters_Order" +#define wszINFKEY_ECCKEYPARAMETERS_COFACTOR L"EccKeyParameters_Cofactor" +#define wszINFKEY_ECCKEYPARAMETERSTYPE L"EccKeyParametersType" +#define wszINFKEY_SERIALNUMBER L"SerialNumber" +#define wszINFKEY_CATHUMBPRINT L"CAThumbprint" +#define wszINFKEY_CACERTS L"CACerts" +#define wszINFKEY_CACAPABILITIES L"CACapabilities" +#define wszINFKEY_CHALLENGEPASSWORD L"ChallengePassword" + +#define wszINFVALUE_REQUESTTYPE_PKCS10 L"PKCS10" +#define wszINFVALUE_REQUESTTYPE_PKCS7 L"PKCS7" +#define wszINFVALUE_REQUESTTYPE_CMC L"CMC" +#define wszINFVALUE_REQUESTTYPE_CERT L"Cert" +#define wszINFVALUE_REQUESTTYPE_SCEP L"SCEP" + +#define wszINFVALUE_ENDORSEMENTKEY L"EndorsementKey" + + + +//====================================================================== +// Values Under "CertSvc\Configuration\\ExitModules\CertificateAuthority_MicrosoftDefault.Exit\SMTP": +// +// exit module mail support +// +#define wszREGEXITSMTPKEY L"SMTP" +#define wszREGEXITSMTPTEMPLATES L"Templates" +#define wszREGEXITSMTPEVENTFILTER L"EventFilter" +#define wszREGEXITSMTPSERVER L"SMTPServer" +#define wszREGEXITSMTPAUTHENTICATE L"SMTPAuthenticate" + +// Subkeys: +#define wszREGEXITDENIEDKEY L"Denied" +#define wszREGEXITISSUEDKEY L"Issued" +#define wszREGEXITPENDINGKEY L"Pending" +#define wszREGEXITREVOKEDKEY L"Revoked" +#define wszREGEXITCRLISSUEDKEY L"CRLIssued" +#define wszREGEXITSHUTDOWNKEY L"Shutdown" +#define wszREGEXITSTARTUPKEY L"Startup" +#define wszREGEXITIMPORTEDKEY L"Imported" + +//====================================================================== +// Values Under +// "CertSvc\Configuration\\ExitModules\CertificateAuthority_MicrosoftDefault.Exit\SMTP\Issued| +// Pending|Denied|Revoked|CRLIssued|Shutdown": +#define wszREGEXITSMTPFROM L"From" +#define wszREGEXITSMTPTO L"To" +#define wszREGEXITSMTPCC L"Cc" +#define wszREGEXITTITLEFORMAT L"TitleFormat" +#define wszREGEXITTITLEARG L"TitleArg" +#define wszREGEXITBODYFORMAT L"BodyFormat" +#define wszREGEXITBODYARG L"BodyArg" + +#define wszREGEXITPROPNOTFOUND L"???" + +//====================================================================== +// Full path to HKLM or HKCU "AutoEnrollment" key: +#define wszREGKEYENROLLMENT L"Software\\Microsoft\\Cryptography\\AutoEnrollment" +#define wszREGKEYGROUPPOLICYENROLLMENT L"Software\\Policies\\Microsoft\\Cryptography\\AutoEnrollment" + +// Values Under "...\Cryptography\AutoEnrollment" + +#define wszREGMAXPENDINGREQUESTDAYS TEXT("MaxPendingRequestDays") +#define wszREGAELOGLEVEL_OLD TEXT("AEEventLogLevel") // obsolete +// #define wszREGLOGLEVEL TEXT("LogLevel") // new +// #define wszREGCERTSRVDEBUG TEXT("Debug") +// #define AUTO_ENROLLMENT_FLAG TEXT("AEFlags") // autoenr.h +#define wszREGENROLLFLAGS TEXT("EnrollFlags") +#define wszREGVERIFYFLAGS TEXT("VerifyFlags") +#define wszREGUNICODE TEXT("Unicode") +#define wszREGAIKCLOUDCAURL TEXT("AIKCloudCAURL") +#define wszREGAIKKEYALGORITHM TEXT("AIKKeyAlgorithm") +#define wszREGAIKKEYLENGTH TEXT("AIKKeyLength") +#define wszREGPRESERVESCEPDUMMYCERTS TEXT("PreserveSCEPDummyCerts") + +// Keys Under "...\Cryptography\AutoEnrollment" +#define wszREGKEYDISALLOWEDSCEPALGS wszREGKEYENROLLMENT L"\\DisallowedSCEPAlgorithms" +#define wszREGKEYTEMPLATEPOLICY wszREGKEYENROLLMENT L"\\TemplatePolicy" + +// Values Under "...\Cryptography\AutoEnrollment\DisallowedSCEPAlgorithms" +#define wszREGALLPROVIDERS L"All" +// Or KSP name(s) + +// Values Under "...\Cryptography\AutoEnrollment\TemplatePolicy" +// Set low bit to 1 to force machine GP lookup for user enrollment +// Set low bit to 0 (or if reg value is missing) to use default behavior: user context GP lookup +// Only applies to InitializeFromTemplateName methods using default policy & only from user context. +// REG_DWORD +#define TP_MACHINEPOLICY 0x00000001 + +// Set low bit to 0 to disable machine key repair (missing reg value enables) +// Set second bit to 0 to disable user key repair (missing reg value enables) +#define wszREGKEYREPAIR TEXT("KeyRepair") +#define KR_ENABLE_MACHINE 0x00000001 +#define KR_ENABLE_USER 0x00000002 + +//========================================================================================== +// (Un)Installation of each ADCS role create a sub key with names (CertificateAuthority, +// WebEnrollment, CEP, CES, NDES) and then adds the "ConfigurationStatus" reg value +// to indicate whether a particular role has been configured (2), not configured (1) +// or failed (0). +// If customers require a different EP setting than default value, they should create +// "EPTokenCheckValue" reg value directly under the ""..\\ADCS" parent key before starting +// configuration of the given role. This should be created on the machine where the given +// role is being configured and not on the machine where CA role is configured. + +#define CONFIGURATION_STATUS_PARENT_REG_PATH TEXT("Software\\Microsoft\\ADCS") +#define CONFIGURATION_STATUS_REG_VALUE_NAME TEXT("ConfigurationStatus") + +#define CONFIGURATION_REG_EPTOKENCHECKVALUE TEXT("EPTokenCheckValue") +#define EP_TOKENCHECK_DEFAULT_VALUE 2 // Set it to "Always" by default + +// Reg value to disable https only fix. Adding this config option mainly for +// test code purpose. I expect lot of test code relying on http end point for +// certsrv and mscep_admin interfaces. +#define CONFIGURATION_REG_DISABLE_HTTPSONLY TEXT("DisableHTTPSOnly") + +//+-------------------------------------------------------------------------- +// Name properties: + +#define wszPROPDISTINGUISHEDNAME TEXT("DistinguishedName") +#define wszPROPRAWNAME TEXT("RawName") + +#define wszPROPCOUNTRY TEXT("Country") +#define wszPROPORGANIZATION TEXT("Organization") +#define wszPROPORGUNIT TEXT("OrgUnit") +#define wszPROPCOMMONNAME TEXT("CommonName") +#define wszPROPLOCALITY TEXT("Locality") +#define wszPROPSTATE TEXT("State") +#define wszPROPTITLE TEXT("Title") +#define wszPROPGIVENNAME TEXT("GivenName") +#define wszPROPINITIALS TEXT("Initials") +#define wszPROPSURNAME TEXT("SurName") +#define wszPROPDOMAINCOMPONENT TEXT("DomainComponent") +#define wszPROPEMAIL TEXT("EMail") +#define wszPROPSTREETADDRESS TEXT("StreetAddress") +#define wszPROPUNSTRUCTUREDNAME TEXT("UnstructuredName") +#define wszPROPUNSTRUCTUREDADDRESS TEXT("UnstructuredAddress") +#define wszPROPDEVICESERIALNUMBER TEXT("DeviceSerialNumber") + +//+-------------------------------------------------------------------------- +// Subject Name properties: + +#define wszPROPSUBJECTDOT TEXT("Subject.") +#define wszPROPSUBJECTDISTINGUISHEDNAME \ + wszPROPSUBJECTDOT wszPROPDISTINGUISHEDNAME +#define wszPROPSUBJECTRAWNAME wszPROPSUBJECTDOT wszPROPRAWNAME + +#define wszPROPSUBJECTCOUNTRY wszPROPSUBJECTDOT wszPROPCOUNTRY +#define wszPROPSUBJECTORGANIZATION wszPROPSUBJECTDOT wszPROPORGANIZATION +#define wszPROPSUBJECTORGUNIT wszPROPSUBJECTDOT wszPROPORGUNIT +#define wszPROPSUBJECTCOMMONNAME wszPROPSUBJECTDOT wszPROPCOMMONNAME +#define wszPROPSUBJECTLOCALITY wszPROPSUBJECTDOT wszPROPLOCALITY +#define wszPROPSUBJECTSTATE wszPROPSUBJECTDOT wszPROPSTATE +#define wszPROPSUBJECTTITLE wszPROPSUBJECTDOT wszPROPTITLE +#define wszPROPSUBJECTGIVENNAME wszPROPSUBJECTDOT wszPROPGIVENNAME +#define wszPROPSUBJECTINITIALS wszPROPSUBJECTDOT wszPROPINITIALS +#define wszPROPSUBJECTSURNAME wszPROPSUBJECTDOT wszPROPSURNAME +#define wszPROPSUBJECTDOMAINCOMPONENT wszPROPSUBJECTDOT wszPROPDOMAINCOMPONENT +#define wszPROPSUBJECTEMAIL wszPROPSUBJECTDOT wszPROPEMAIL +#define wszPROPSUBJECTSTREETADDRESS wszPROPSUBJECTDOT wszPROPSTREETADDRESS +#define wszPROPSUBJECTUNSTRUCTUREDNAME wszPROPSUBJECTDOT wszPROPUNSTRUCTUREDNAME +#define wszPROPSUBJECTUNSTRUCTUREDADDRESS wszPROPSUBJECTDOT wszPROPUNSTRUCTUREDADDRESS +#define wszPROPSUBJECTDEVICESERIALNUMBER wszPROPSUBJECTDOT wszPROPDEVICESERIALNUMBER + + +//+-------------------------------------------------------------------------- +// Request properties: +#define wszPROPREQUESTDOT TEXT("Request.") + +#define wszPROPREQUESTREQUESTID TEXT("RequestID") +#define wszPROPREQUESTRAWREQUEST TEXT("RawRequest") +#define wszPROPREQUESTRAWARCHIVEDKEY TEXT("RawArchivedKey") +#define wszPROPREQUESTARCHIVEDKEY TEXT("ArchivedKey") // constructed +#define wszPROPREQUESTKEYRECOVERYHASHES TEXT("KeyRecoveryHashes") +#define wszPROPREQUESTRAWOLDCERTIFICATE TEXT("RawOldCertificate") +#define wszPROPREQUESTATTRIBUTES TEXT("RequestAttributes") +#define wszPROPREQUESTTYPE TEXT("RequestType") +#define wszPROPREQUESTFLAGS TEXT("RequestFlags") +#define wszPROPREQUESTSTATUSCODE TEXT("StatusCode") +#define wszPROPREQUESTDISPOSITION TEXT("Disposition") +#define wszPROPREQUESTDISPOSITIONMESSAGE TEXT("DispositionMessage") +#define wszPROPREQUESTSUBMITTEDWHEN TEXT("SubmittedWhen") +#define wszPROPREQUESTRESOLVEDWHEN TEXT("ResolvedWhen") +#define wszPROPREQUESTREVOKEDWHEN TEXT("RevokedWhen") +#define wszPROPREQUESTREVOKEDEFFECTIVEWHEN TEXT("RevokedEffectiveWhen") +#define wszPROPREQUESTREVOKEDREASON TEXT("RevokedReason") +#define wszPROPREQUESTERNAME TEXT("RequesterName") +#define wszPROPCALLERNAME TEXT("CallerName") +#define wszPROPSIGNERPOLICIES TEXT("SignerPolicies") +#define wszPROPSIGNERAPPLICATIONPOLICIES TEXT("SignerApplicationPolicies") +#define wszPROPOFFICER TEXT("Officer") +#define wszPROPPUBLISHEXPIREDCERTINCRL TEXT("PublishExpiredCertInCRL") +#define wszPROPREQUESTERNAMEFROMOLDCERTIFICATE TEXT("RequesterNameFromOldCertificate") +#define wszPROPATTESTATIONCHALLENGE TEXT("AttestationChallenge") +#define wszPROPENDORSEMENTKEYHASH TEXT("EndorsementKeyHash") +#define wszPROPENDORSEMENTCERTIFICATEHASH TEXT("EndorsementCertificateHash") +#define wszPROPRAWPRECERTIFICATE TEXT("RawPrecertificate") +#define wszPROPCRLPARTITIONINDEX TEXT("CRLPartitionIndex") +#define wszPROPLINTERCERTIFICATE TEXT("LinterCertificate") + +//+-------------------------------------------------------------------------- +// Request attribute properties: + +#define wszPROPCHALLENGE TEXT("Challenge") +#define wszPROPEXPECTEDCHALLENGE TEXT("ExpectedChallenge") + +#define wszPROPDISPOSITION TEXT("Disposition") +#define wszPROPDISPOSITIONDENY TEXT("Deny") +#define wszPROPDISPOSITIONPENDING TEXT("Pending") + +#define wszPROPVALIDITYPERIODSTRING TEXT("ValidityPeriod") +#define wszPROPVALIDITYPERIODCOUNT TEXT("ValidityPeriodUnits") +#define wszPROPEXPIRATIONDATE TEXT("ExpirationDate") + +#define wszPROPCERTTYPE TEXT("CertType") +#define wszPROPCERTTEMPLATE TEXT("CertificateTemplate") +#define wszPROPCERTUSAGE TEXT("CertificateUsage") + +#define wszPROPREQUESTOSVERSION TEXT("RequestOSVersion") +#define wszPROPREQUESTCSPPROVIDER TEXT("RequestCSPProvider") + +#define wszPROPEXITCERTFILE TEXT("CertFile") +#define wszPROPCLIENTBROWSERMACHINE TEXT("cbm") +#define wszPROPCERTCLIENTMACHINE TEXT("ccm") +#define wszPROPCLIENTDCDNS L"cdc" +#define wszPROPREQUESTMACHINEDNS L"rmd" +#define wszPROPSUBJECTALTNAME2 TEXT("san") +#define wszPROPDNS TEXT("dns") +#define wszPROPDN TEXT("dn") +#define wszPROPURL TEXT("url") +#define wszPROPIPADDRESS TEXT("ipaddress") +#define wszPROPGUID TEXT("guid") +#define wszPROPOID TEXT("oid") +#define wszPROPUPN TEXT("upn") +#define wszPROPUPN TEXT("upn") + +#define szPROPASNTAG "{asn}" + +#define wszPROPCRITICALTAG TEXT("{critical}") +#define wszPROPUTF8TAG TEXT("{utf8}") +#define wszPROPOCTETTAG TEXT("{octet}") +#define wszPROPHEXTAG TEXT("{hex}") +#define wszPROPASNTAG TEXT(szPROPASNTAG) +#define wszPROPTEXTTAG TEXT("{text}") +#define wszPROPDECIMALTAG TEXT("{decimal}") +#define wszPROPFILETAG TEXT("{file}") + +#define wszAT_EKCERTINF TEXT("@EKCert") +#define wszAT_TESTROOT TEXT("@TestRoot") + +#define wszPROPLINTCERTIFICATE TEXT("LintCertificate") + +//+-------------------------------------------------------------------------- +// "System" properties +// ".#" means ".0", ".1", ".2" ... may be appended to the property name to +// collect context specific values. For some properties, the suffix selects +// the CA certificate context. For others, it selects the the CA CRL context. + +#define wszPROPCATYPE TEXT("CAType") +#define wszPROPSANITIZEDCANAME TEXT("SanitizedCAName") +#define wszPROPSANITIZEDSHORTNAME TEXT("SanitizedShortName") +#define wszPROPMACHINEDNSNAME TEXT("MachineDNSName") +#define wszPROPMODULEREGLOC TEXT("ModuleRegistryLocation") +#define wszPROPUSEDS TEXT("fUseDS") +#define wszPROPDELTACRLSDISABLED TEXT("fDeltaCRLsDisabled") +#define wszPROPSERVERUPGRADED TEXT("fServerUpgraded") +#define wszPROPCONFIGDN TEXT("ConfigDN") +#define wszPROPDOMAINDN TEXT("DomainDN") +#define wszPROPLOGLEVEL TEXT("LogLevel") +#define wszPROPSESSIONCOUNT TEXT("SessionCount") +#define wszPROPTEMPLATECHANGESEQUENCENUMBER TEXT("TemplateChangeSequenceNumber") +#define wszPROPVOLATILEMODE TEXT("VolatileMode") + +// ".#" suffix for ENUM_PERIOD_SECONDS, ... ENUM_PERIOD_YEARS +#define wszLOCALIZEDTIMEPERIODUNITS TEXT("LocalizedTimePeriodUnits") + +// Request Context properties: + +#define wszPROPREQUESTERCAACCESS TEXT("RequesterCAAccess") +#define wszPROPUSERDN TEXT("UserDN") +#define wszPROPKEYARCHIVED TEXT("KeyArchived") + + +// CA Certificate properties: (all ".#" extensible except wszPROPCERTCOUNT) + +#define wszPROPCERTCOUNT TEXT("CertCount") +#define wszPROPRAWCACERTIFICATE TEXT("RawCACertificate") +#define wszPROPCERTSTATE TEXT("CertState") +#define wszPROPCERTSUFFIX TEXT("CertSuffix") + +// CA CRL properties: (all ".#" extensible) + +#define wszPROPRAWCRL TEXT("RawCRL") +#define wszPROPRAWDELTACRL TEXT("RawDeltaCRL") +#define wszPROPCRLINDEX TEXT("CRLIndex") +#define wszPROPCRLSTATE TEXT("CRLState") +#define wszPROPCRLSUFFIX TEXT("CRLSuffix") + +// Values for wszPROPCERTSTATE (see certadm.h): +// CA_DISP_REVOKED // This Cert has been revoked. +// CA_DISP_VALID // This Cert is still valid +// CA_DISP_INVALID // This Cert has expired. +// CA_DISP_ERROR // Cert unavailable (placehholder in registry?) + +// Values for wszPROPCRLSTATE (see certadm.h): +// CA_DISP_REVOKED // All unexpired certs using this Cert's CRL have been +// // revoked. +// CA_DISP_VALID // This Cert is still publishing CRLs as needed. +// CA_DISP_INVALID // All certs using this Cert's CRL are expired. +// CA_DISP_ERROR // This Cert's CRL is managed by another Cert. + +// "Settable" system properties: +#define wszPROPEVENTLOGTERSE TEXT("EventLogTerse") +#define wszPROPEVENTLOGERROR TEXT("EventLogError") +#define wszPROPEVENTLOGWARNING TEXT("EventLogWarning") +#define wszPROPEVENTLOGVERBOSE TEXT("EventLogVerbose") +#define wszPROPEVENTLOGEXHAUSTIVE TEXT("EventLogExhaustive") +#define wszPROPDCNAME TEXT("DCName") +#define wszPROPCROSSFOREST TEXT("CrossForest") +#define wszPROPREQUESTERSAMNAME TEXT("RequesterSAMName") +#define wszPROPREQUESTERUPN TEXT("RequesterUPN") +#define wszPROPREQUESTERDN TEXT("RequesterDN") + +// "Settable" system properties (".#" extensible) +#define wszPROPSEAUDITID TEXT("SEAuditId") + +// "Fetchable" system properties +#define wszPROPSEAUDITFILTER TEXT("SEAuditFilter") + +//+-------------------------------------------------------------------------- +// Certificate properties: + +#define wszPROPCERTIFICATEREQUESTID TEXT("RequestID") +#define wszPROPRAWCERTIFICATE TEXT("RawCertificate") +#define wszPROPCERTIFICATEHASH TEXT("CertificateHash") +#define wszPROPCERTIFICATETEMPLATE TEXT("CertificateTemplate") +#define wszPROPCERTIFICATEENROLLMENTFLAGS TEXT("EnrollmentFlags") +#define wszPROPCERTIFICATEGENERALFLAGS TEXT("GeneralFlags") +#define wszPROPCERTIFICATEPRIVATEKEYFLAGS TEXT("PrivatekeyFlags") +#define wszPROPCERTIFICATESERIALNUMBER TEXT("SerialNumber") +#define wszPROPCERTIFICATENOTBEFOREDATE TEXT("NotBefore") +#define wszPROPCERTIFICATENOTAFTERDATE TEXT("NotAfter") +#define wszPROPCERTIFICATESUBJECTKEYIDENTIFIER TEXT("SubjectKeyIdentifier") +#define wszPROPCERTIFICATERAWPUBLICKEY TEXT("RawPublicKey") +#define wszPROPCERTIFICATEPUBLICKEYLENGTH TEXT("PublicKeyLength") +#define wszPROPCERTIFICATEPUBLICKEYALGORITHM TEXT("PublicKeyAlgorithm") +#define wszPROPCERTIFICATERAWPUBLICKEYALGORITHMPARAMETERS \ + TEXT("RawPublicKeyAlgorithmParameters") +#define wszPROPCERTIFICATEUPN TEXT("UPN") + + +// Obsolete: +#define wszPROPCERTIFICATETYPE TEXT("CertificateType") +#define wszPROPCERTIFICATERAWSMIMECAPABILITIES TEXT("RawSMIMECapabilities") +#define wszPROPNAMETYPE TEXT("NameType") + +//+-------------------------------------------------------------------------- +// Certificate extension properties: + +#define EXTENSION_CRITICAL_FLAG 0x00000001 +#define EXTENSION_DISABLE_FLAG 0x00000002 +#define EXTENSION_DELETE_FLAG 0x00000004 +#define EXTENSION_POLICY_MASK 0x0000ffff // Settable by admin+policy + +#define EXTENSION_ORIGIN_REQUEST 0x00010000 +#define EXTENSION_ORIGIN_POLICY 0x00020000 +#define EXTENSION_ORIGIN_ADMIN 0x00030000 +#define EXTENSION_ORIGIN_SERVER 0x00040000 +#define EXTENSION_ORIGIN_RENEWALCERT 0x00050000 +#define EXTENSION_ORIGIN_IMPORTEDCERT 0x00060000 +#define EXTENSION_ORIGIN_PKCS7 0x00070000 +#define EXTENSION_ORIGIN_CMC 0x00080000 +#define EXTENSION_ORIGIN_CACERT 0x00090000 +#define EXTENSION_ORIGIN_MASK 0x000f0000 + +//+-------------------------------------------------------------------------- +// Extension properties: + +#define wszPROPEXTREQUESTID TEXT("ExtensionRequestId") +#define wszPROPEXTNAME TEXT("ExtensionName") +#define wszPROPEXTFLAGS TEXT("ExtensionFlags") +#define wszPROPEXTRAWVALUE TEXT("ExtensionRawValue") + +//+-------------------------------------------------------------------------- +// Attribute properties: + +#define wszPROPATTRIBREQUESTID TEXT("AttributeRequestId") +#define wszPROPATTRIBNAME TEXT("AttributeName") +#define wszPROPATTRIBVALUE TEXT("AttributeValue") + +//+-------------------------------------------------------------------------- +// CRL properties: + +#define wszPROPCRLROWID TEXT("CRLRowId") +#define wszPROPCRLNUMBER TEXT("CRLNumber") +#define wszPROPCRLMINBASE TEXT("CRLMinBase") // Delta CRLs only +#define wszPROPCRLNAMEID TEXT("CRLNameId") +#define wszPROPCRLCOUNT TEXT("CRLCount") +#define wszPROPCRLTHISUPDATE TEXT("CRLThisUpdate") +#define wszPROPCRLNEXTUPDATE TEXT("CRLNextUpdate") +#define wszPROPCRLTHISPUBLISH TEXT("CRLThisPublish") +#define wszPROPCRLNEXTPUBLISH TEXT("CRLNextPublish") +#define wszPROPCRLEFFECTIVE TEXT("CRLEffective") +#define wszPROPCRLPROPAGATIONCOMPLETE TEXT("CRLPropagationComplete") +#define wszPROPCRLLASTPUBLISHED TEXT("CRLLastPublished") +#define wszPROPCRLPUBLISHATTEMPTS TEXT("CRLPublishAttempts") +#define wszPROPCRLPUBLISHFLAGS TEXT("CRLPublishFlags") +#define wszPROPCRLPUBLISHSTATUSCODE TEXT("CRLPublishStatusCode") +#define wszPROPCRLPUBLISHERROR TEXT("CRLPublishError") +#define wszPROPCRLRAWCRL TEXT("CRLRawCRL") + +//+-------------------------------------------------------------------------- +// CRL Published Flags: + +#define CPF_BASE 0x00000001 +#define CPF_DELTA 0x00000002 +#define CPF_COMPLETE 0x00000004 +#define CPF_SHADOW 0x00000008 +#define CPF_CASTORE_ERROR 0x00000010 +#define CPF_BADURL_ERROR 0x00000020 +#define CPF_MANUAL 0x00000040 +#define CPF_SIGNATURE_ERROR 0x00000080 +#define CPF_LDAP_ERROR 0x00000100 +#define CPF_FILE_ERROR 0x00000200 +#define CPF_FTP_ERROR 0x00000400 +#define CPF_HTTP_ERROR 0x00000800 +#define CPF_POSTPONED_BASE_LDAP_ERROR 0x00001000 +#define CPF_POSTPONED_BASE_FILE_ERROR 0x00002000 + +//+-------------------------------------------------------------------------- +// GetProperty/SetProperty Flags: +// +// Choose one Type + +#define PROPTYPE_LONG 0x00000001 // Signed long +#define PROPTYPE_DATE 0x00000002 // Date+Time +#define PROPTYPE_BINARY 0x00000003 // Binary data +#define PROPTYPE_STRING 0x00000004 // Unicode String +#define PROPTYPE_MASK 0x000000ff + +// Choose one Caller: + +#define PROPCALLER_SERVER 0x00000100 +#define PROPCALLER_POLICY 0x00000200 +#define PROPCALLER_EXIT 0x00000300 +#define PROPCALLER_ADMIN 0x00000400 +#define PROPCALLER_REQUEST 0x00000500 +#define PROPCALLER_MASK 0x00000f00 +#define PROPFLAGS_INDEXED 0x00010000 + +// RequestFlags definitions: + +#define CR_FLG_FORCETELETEX 0x00000001 +#define CR_FLG_RENEWAL 0x00000002 +#define CR_FLG_FORCEUTF8 0x00000004 +#define CR_FLG_CAXCHGCERT 0x00000008 +#define CR_FLG_ENROLLONBEHALFOF 0x00000010 +#define CR_FLG_SUBJECTUNMODIFIED 0x00000020 +#define CR_FLG_VALIDENCRYPTEDKEYHASH 0x00000040 +#define CR_FLG_CACROSSCERT 0x00000080 +#define CR_FLG_ENFORCEUTF8 0x00000100 +#define CR_FLG_DEFINEDCACERT 0x00000200 +#define CR_FLG_CHALLENGEPENDING 0x00000400 +#define CR_FLG_CHALLENGESATISFIED 0x00000800 +#define CR_FLG_TRUSTONUSE 0x00001000 +#define CR_FLG_TRUSTEKCERT 0x00002000 +#define CR_FLG_TRUSTEKKEY 0x00004000 +#define CR_FLG_PUBLISHERROR 0x80000000 + +// Disposition property values: + +// Disposition values for requests in the queue: +#define DB_DISP_ACTIVE 8 // being processed +#define DB_DISP_PENDING 9 // taken under submission +#define DB_DISP_QUEUE_MAX 9 // max disposition value for queue view + +#define DB_DISP_FOREIGN 12 // archived foreign cert + +#define DB_DISP_CA_CERT 15 // CA cert +#define DB_DISP_CA_CERT_CHAIN 16 // CA cert chain +#define DB_DISP_KRA_CERT 17 // KRA cert + +// Disposition values for requests in the log: +#define DB_DISP_LOG_MIN 20 // min disposition value for log view +#define DB_DISP_ISSUED 20 // cert issued +#define DB_DISP_REVOKED 21 // issued and revoked + +// Disposition values for failed requests in the log: +#define DB_DISP_LOG_FAILED_MIN 30 // min disposition value for log view +#define DB_DISP_ERROR 30 // request failed +#define DB_DISP_DENIED 31 // request denied + + +// VerifyRequest() return values + +#define VR_PENDING 0 // request will be accepted or denied later +#define VR_INSTANT_OK 1 // request was accepted +#define VR_INSTANT_BAD 2 // request was rejected + + +//+-------------------------------------------------------------------------- +// Known request Attribute names and Value strings + +// RequestType attribute name: +#define wszCERT_TYPE L"RequestType" // attribute name + +// RequestType attribute values: +// Not specified: // Non-specific certificate +#define wszCERT_TYPE_CLIENT L"Client" // Client authentication cert +#define wszCERT_TYPE_SERVER L"Server" // Server authentication cert +#define wszCERT_TYPE_CODESIGN L"CodeSign" // Code signing certificate +#define wszCERT_TYPE_CUSTOMER L"SetCustomer" // SET Customer certificate +#define wszCERT_TYPE_MERCHANT L"SetMerchant" // SET Merchant certificate +#define wszCERT_TYPE_PAYMENT L"SetPayment" // SET Payment certificate + + +// Version attribute name: +#define wszCERT_VERSION L"Version" // attribute name + +// Version attribute values: +// Not specified: // Whetever is current +#define wszCERT_VERSION_1 L"1" // Version one certificate +#define wszCERT_VERSION_2 L"2" // Version two certificate +#define wszCERT_VERSION_3 L"3" // Version three certificate + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _CERTSRV_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertView.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertView.h new file mode 100644 index 0000000000000000000000000000000000000000..f502afb650d44dd79bb30e1807555ac04cc5fb48 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CertView.h @@ -0,0 +1,1504 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __certview_h__ +#define __certview_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEnumCERTVIEWCOLUMN_FWD_DEFINED__ +#define __IEnumCERTVIEWCOLUMN_FWD_DEFINED__ +typedef interface IEnumCERTVIEWCOLUMN IEnumCERTVIEWCOLUMN; + +#endif /* __IEnumCERTVIEWCOLUMN_FWD_DEFINED__ */ + + +#ifndef __IEnumCERTVIEWATTRIBUTE_FWD_DEFINED__ +#define __IEnumCERTVIEWATTRIBUTE_FWD_DEFINED__ +typedef interface IEnumCERTVIEWATTRIBUTE IEnumCERTVIEWATTRIBUTE; + +#endif /* __IEnumCERTVIEWATTRIBUTE_FWD_DEFINED__ */ + + +#ifndef __IEnumCERTVIEWEXTENSION_FWD_DEFINED__ +#define __IEnumCERTVIEWEXTENSION_FWD_DEFINED__ +typedef interface IEnumCERTVIEWEXTENSION IEnumCERTVIEWEXTENSION; + +#endif /* __IEnumCERTVIEWEXTENSION_FWD_DEFINED__ */ + + +#ifndef __IEnumCERTVIEWROW_FWD_DEFINED__ +#define __IEnumCERTVIEWROW_FWD_DEFINED__ +typedef interface IEnumCERTVIEWROW IEnumCERTVIEWROW; + +#endif /* __IEnumCERTVIEWROW_FWD_DEFINED__ */ + + +#ifndef __ICertView_FWD_DEFINED__ +#define __ICertView_FWD_DEFINED__ +typedef interface ICertView ICertView; + +#endif /* __ICertView_FWD_DEFINED__ */ + + +#ifndef __ICertView2_FWD_DEFINED__ +#define __ICertView2_FWD_DEFINED__ +typedef interface ICertView2 ICertView2; + +#endif /* __ICertView2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certview_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define CV_OUT_BASE64HEADER ( 0 ) + +#define CV_OUT_BASE64 ( 0x1 ) + +#define CV_OUT_BINARY ( 0x2 ) + +#define CV_OUT_BASE64REQUESTHEADER ( 0x3 ) + +#define CV_OUT_HEX ( 0x4 ) + +#define CV_OUT_HEXASCII ( 0x5 ) + +#define CV_OUT_BASE64X509CRLHEADER ( 0x9 ) + +#define CV_OUT_HEXADDR ( 0xa ) + +#define CV_OUT_HEXASCIIADDR ( 0xb ) + +#define CV_OUT_HEXRAW ( 0xc ) + +#define CV_OUT_ENCODEMASK ( 0xff ) + +#define CV_OUT_NOCRLF ( 0x40000000 ) + +#define CV_OUT_NOCR ( 0x80000000 ) + +#define CVR_SEEK_NONE ( 0 ) + +#define CVR_SEEK_EQ ( 0x1 ) + +#define CVR_SEEK_LT ( 0x2 ) + +#define CVR_SEEK_LE ( 0x4 ) + +#define CVR_SEEK_GE ( 0x8 ) + +#define CVR_SEEK_GT ( 0x10 ) + +#define CVR_SEEK_MASK ( 0xff ) + +#define CVR_SEEK_NODELTA ( 0x1000 ) + +#define CVR_SORT_NONE ( 0 ) + +#define CVR_SORT_ASCEND ( 0x1 ) + +#define CVR_SORT_DESCEND ( 0x2 ) + +#define CV_COLUMN_QUEUE_DEFAULT ( -1 ) + +#define CV_COLUMN_LOG_DEFAULT ( -2 ) + +#define CV_COLUMN_LOG_FAILED_DEFAULT ( -3 ) + +#define CV_COLUMN_EXTENSION_DEFAULT ( -4 ) + +#define CV_COLUMN_ATTRIBUTE_DEFAULT ( -5 ) + +#define CV_COLUMN_CRL_DEFAULT ( -6 ) + +#define CV_COLUMN_LOG_REVOKED_DEFAULT ( -7 ) + +#define CVRC_COLUMN_SCHEMA ( 0 ) + +#define CVRC_COLUMN_RESULT ( 0x1 ) + +#define CVRC_COLUMN_VALUE ( 0x2 ) + +#define CVRC_COLUMN_MASK ( 0xfff ) + +#define CVRC_TABLE_REQCERT ( 0 ) + +#define CVRC_TABLE_EXTENSIONS ( 0x3000 ) + +#define CVRC_TABLE_ATTRIBUTES ( 0x4000 ) + +#define CVRC_TABLE_CRL ( 0x5000 ) + +#define CVRC_TABLE_MASK ( 0xf000 ) + +#define CVRC_TABLE_SHIFT ( 12 ) + + + +extern RPC_IF_HANDLE __MIDL_itf_certview_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certview_0000_0000_v0_0_s_ifspec; + +#ifndef __IEnumCERTVIEWCOLUMN_INTERFACE_DEFINED__ +#define __IEnumCERTVIEWCOLUMN_INTERFACE_DEFINED__ + +/* interface IEnumCERTVIEWCOLUMN */ +/* [unique][helpstring][local][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEnumCERTVIEWCOLUMN; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9c735be2-57a5-11d1-9bdb-00c04fb683fa") + IEnumCERTVIEWCOLUMN : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [retval][out] */ LONG *pIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][out] */ BSTR *pstrOut) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDisplayName( + /* [retval][out] */ BSTR *pstrOut) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetType( + /* [retval][out] */ LONG *pType) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsIndexed( + /* [retval][out] */ LONG *pIndexed) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMaxLength( + /* [retval][out] */ LONG *pMaxLength) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [in] */ LONG Flags, + /* [retval][out] */ VARIANT *pvarValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ LONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [retval][out] */ IEnumCERTVIEWCOLUMN **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumCERTVIEWCOLUMNVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumCERTVIEWCOLUMN * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumCERTVIEWCOLUMN * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumCERTVIEWCOLUMN * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IEnumCERTVIEWCOLUMN * This, + /* [out] */ UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IEnumCERTVIEWCOLUMN * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IEnumCERTVIEWCOLUMN * This, + /* [in] */ REFIID riid, + /* [size_is][in] */ LPOLESTR *rgszNames, + /* [range][in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEnumCERTVIEWCOLUMN * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWCOLUMN, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumCERTVIEWCOLUMN * This, + /* [retval][out] */ LONG *pIndex); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWCOLUMN, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + IEnumCERTVIEWCOLUMN * This, + /* [retval][out] */ BSTR *pstrOut); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWCOLUMN, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + IEnumCERTVIEWCOLUMN * This, + /* [retval][out] */ BSTR *pstrOut); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWCOLUMN, GetType) + HRESULT ( STDMETHODCALLTYPE *GetType )( + IEnumCERTVIEWCOLUMN * This, + /* [retval][out] */ LONG *pType); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWCOLUMN, IsIndexed) + HRESULT ( STDMETHODCALLTYPE *IsIndexed )( + IEnumCERTVIEWCOLUMN * This, + /* [retval][out] */ LONG *pIndexed); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWCOLUMN, GetMaxLength) + HRESULT ( STDMETHODCALLTYPE *GetMaxLength )( + IEnumCERTVIEWCOLUMN * This, + /* [retval][out] */ LONG *pMaxLength); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWCOLUMN, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + IEnumCERTVIEWCOLUMN * This, + /* [in] */ LONG Flags, + /* [retval][out] */ VARIANT *pvarValue); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWCOLUMN, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + IEnumCERTVIEWCOLUMN * This, + /* [in] */ LONG celt); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWCOLUMN, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IEnumCERTVIEWCOLUMN * This); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWCOLUMN, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IEnumCERTVIEWCOLUMN * This, + /* [retval][out] */ IEnumCERTVIEWCOLUMN **ppenum); + + END_INTERFACE + } IEnumCERTVIEWCOLUMNVtbl; + + interface IEnumCERTVIEWCOLUMN + { + CONST_VTBL struct IEnumCERTVIEWCOLUMNVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumCERTVIEWCOLUMN_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumCERTVIEWCOLUMN_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumCERTVIEWCOLUMN_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumCERTVIEWCOLUMN_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEnumCERTVIEWCOLUMN_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEnumCERTVIEWCOLUMN_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEnumCERTVIEWCOLUMN_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEnumCERTVIEWCOLUMN_Next(This,pIndex) \ + ( (This)->lpVtbl -> Next(This,pIndex) ) + +#define IEnumCERTVIEWCOLUMN_GetName(This,pstrOut) \ + ( (This)->lpVtbl -> GetName(This,pstrOut) ) + +#define IEnumCERTVIEWCOLUMN_GetDisplayName(This,pstrOut) \ + ( (This)->lpVtbl -> GetDisplayName(This,pstrOut) ) + +#define IEnumCERTVIEWCOLUMN_GetType(This,pType) \ + ( (This)->lpVtbl -> GetType(This,pType) ) + +#define IEnumCERTVIEWCOLUMN_IsIndexed(This,pIndexed) \ + ( (This)->lpVtbl -> IsIndexed(This,pIndexed) ) + +#define IEnumCERTVIEWCOLUMN_GetMaxLength(This,pMaxLength) \ + ( (This)->lpVtbl -> GetMaxLength(This,pMaxLength) ) + +#define IEnumCERTVIEWCOLUMN_GetValue(This,Flags,pvarValue) \ + ( (This)->lpVtbl -> GetValue(This,Flags,pvarValue) ) + +#define IEnumCERTVIEWCOLUMN_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumCERTVIEWCOLUMN_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumCERTVIEWCOLUMN_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumCERTVIEWCOLUMN_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumCERTVIEWATTRIBUTE_INTERFACE_DEFINED__ +#define __IEnumCERTVIEWATTRIBUTE_INTERFACE_DEFINED__ + +/* interface IEnumCERTVIEWATTRIBUTE */ +/* [unique][helpstring][local][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEnumCERTVIEWATTRIBUTE; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e77db656-7653-11d1-9bde-00c04fb683fa") + IEnumCERTVIEWATTRIBUTE : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [retval][out] */ LONG *pIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][out] */ BSTR *pstrOut) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [retval][out] */ BSTR *pstrOut) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ LONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [retval][out] */ IEnumCERTVIEWATTRIBUTE **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumCERTVIEWATTRIBUTEVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumCERTVIEWATTRIBUTE * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumCERTVIEWATTRIBUTE * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumCERTVIEWATTRIBUTE * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IEnumCERTVIEWATTRIBUTE * This, + /* [out] */ UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IEnumCERTVIEWATTRIBUTE * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IEnumCERTVIEWATTRIBUTE * This, + /* [in] */ REFIID riid, + /* [size_is][in] */ LPOLESTR *rgszNames, + /* [range][in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEnumCERTVIEWATTRIBUTE * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWATTRIBUTE, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumCERTVIEWATTRIBUTE * This, + /* [retval][out] */ LONG *pIndex); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWATTRIBUTE, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + IEnumCERTVIEWATTRIBUTE * This, + /* [retval][out] */ BSTR *pstrOut); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWATTRIBUTE, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + IEnumCERTVIEWATTRIBUTE * This, + /* [retval][out] */ BSTR *pstrOut); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWATTRIBUTE, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + IEnumCERTVIEWATTRIBUTE * This, + /* [in] */ LONG celt); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWATTRIBUTE, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IEnumCERTVIEWATTRIBUTE * This); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWATTRIBUTE, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IEnumCERTVIEWATTRIBUTE * This, + /* [retval][out] */ IEnumCERTVIEWATTRIBUTE **ppenum); + + END_INTERFACE + } IEnumCERTVIEWATTRIBUTEVtbl; + + interface IEnumCERTVIEWATTRIBUTE + { + CONST_VTBL struct IEnumCERTVIEWATTRIBUTEVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumCERTVIEWATTRIBUTE_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumCERTVIEWATTRIBUTE_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumCERTVIEWATTRIBUTE_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumCERTVIEWATTRIBUTE_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEnumCERTVIEWATTRIBUTE_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEnumCERTVIEWATTRIBUTE_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEnumCERTVIEWATTRIBUTE_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEnumCERTVIEWATTRIBUTE_Next(This,pIndex) \ + ( (This)->lpVtbl -> Next(This,pIndex) ) + +#define IEnumCERTVIEWATTRIBUTE_GetName(This,pstrOut) \ + ( (This)->lpVtbl -> GetName(This,pstrOut) ) + +#define IEnumCERTVIEWATTRIBUTE_GetValue(This,pstrOut) \ + ( (This)->lpVtbl -> GetValue(This,pstrOut) ) + +#define IEnumCERTVIEWATTRIBUTE_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumCERTVIEWATTRIBUTE_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumCERTVIEWATTRIBUTE_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumCERTVIEWATTRIBUTE_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumCERTVIEWEXTENSION_INTERFACE_DEFINED__ +#define __IEnumCERTVIEWEXTENSION_INTERFACE_DEFINED__ + +/* interface IEnumCERTVIEWEXTENSION */ +/* [unique][helpstring][local][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEnumCERTVIEWEXTENSION; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e7dd1466-7653-11d1-9bde-00c04fb683fa") + IEnumCERTVIEWEXTENSION : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [retval][out] */ LONG *pIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [retval][out] */ BSTR *pstrOut) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFlags( + /* [retval][out] */ LONG *pFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [in] */ LONG Type, + /* [in] */ LONG Flags, + /* [retval][out] */ VARIANT *pvarValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ LONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [retval][out] */ IEnumCERTVIEWEXTENSION **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumCERTVIEWEXTENSIONVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumCERTVIEWEXTENSION * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumCERTVIEWEXTENSION * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumCERTVIEWEXTENSION * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IEnumCERTVIEWEXTENSION * This, + /* [out] */ UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IEnumCERTVIEWEXTENSION * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IEnumCERTVIEWEXTENSION * This, + /* [in] */ REFIID riid, + /* [size_is][in] */ LPOLESTR *rgszNames, + /* [range][in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEnumCERTVIEWEXTENSION * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWEXTENSION, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumCERTVIEWEXTENSION * This, + /* [retval][out] */ LONG *pIndex); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWEXTENSION, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + IEnumCERTVIEWEXTENSION * This, + /* [retval][out] */ BSTR *pstrOut); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWEXTENSION, GetFlags) + HRESULT ( STDMETHODCALLTYPE *GetFlags )( + IEnumCERTVIEWEXTENSION * This, + /* [retval][out] */ LONG *pFlags); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWEXTENSION, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + IEnumCERTVIEWEXTENSION * This, + /* [in] */ LONG Type, + /* [in] */ LONG Flags, + /* [retval][out] */ VARIANT *pvarValue); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWEXTENSION, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + IEnumCERTVIEWEXTENSION * This, + /* [in] */ LONG celt); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWEXTENSION, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IEnumCERTVIEWEXTENSION * This); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWEXTENSION, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IEnumCERTVIEWEXTENSION * This, + /* [retval][out] */ IEnumCERTVIEWEXTENSION **ppenum); + + END_INTERFACE + } IEnumCERTVIEWEXTENSIONVtbl; + + interface IEnumCERTVIEWEXTENSION + { + CONST_VTBL struct IEnumCERTVIEWEXTENSIONVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumCERTVIEWEXTENSION_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumCERTVIEWEXTENSION_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumCERTVIEWEXTENSION_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumCERTVIEWEXTENSION_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEnumCERTVIEWEXTENSION_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEnumCERTVIEWEXTENSION_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEnumCERTVIEWEXTENSION_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEnumCERTVIEWEXTENSION_Next(This,pIndex) \ + ( (This)->lpVtbl -> Next(This,pIndex) ) + +#define IEnumCERTVIEWEXTENSION_GetName(This,pstrOut) \ + ( (This)->lpVtbl -> GetName(This,pstrOut) ) + +#define IEnumCERTVIEWEXTENSION_GetFlags(This,pFlags) \ + ( (This)->lpVtbl -> GetFlags(This,pFlags) ) + +#define IEnumCERTVIEWEXTENSION_GetValue(This,Type,Flags,pvarValue) \ + ( (This)->lpVtbl -> GetValue(This,Type,Flags,pvarValue) ) + +#define IEnumCERTVIEWEXTENSION_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumCERTVIEWEXTENSION_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumCERTVIEWEXTENSION_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumCERTVIEWEXTENSION_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumCERTVIEWROW_INTERFACE_DEFINED__ +#define __IEnumCERTVIEWROW_INTERFACE_DEFINED__ + +/* interface IEnumCERTVIEWROW */ +/* [unique][helpstring][local][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEnumCERTVIEWROW; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d1157f4c-5af2-11d1-9bdc-00c04fb683fa") + IEnumCERTVIEWROW : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [retval][out] */ LONG *pIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumCertViewColumn( + /* [retval][out] */ IEnumCERTVIEWCOLUMN **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumCertViewAttribute( + /* [in] */ LONG Flags, + /* [retval][out] */ IEnumCERTVIEWATTRIBUTE **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumCertViewExtension( + /* [in] */ LONG Flags, + /* [retval][out] */ IEnumCERTVIEWEXTENSION **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ LONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [retval][out] */ IEnumCERTVIEWROW **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMaxIndex( + /* [retval][out] */ LONG *pIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumCERTVIEWROWVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumCERTVIEWROW * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumCERTVIEWROW * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumCERTVIEWROW * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IEnumCERTVIEWROW * This, + /* [out] */ UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IEnumCERTVIEWROW * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IEnumCERTVIEWROW * This, + /* [in] */ REFIID riid, + /* [size_is][in] */ LPOLESTR *rgszNames, + /* [range][in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEnumCERTVIEWROW * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWROW, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumCERTVIEWROW * This, + /* [retval][out] */ LONG *pIndex); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWROW, EnumCertViewColumn) + HRESULT ( STDMETHODCALLTYPE *EnumCertViewColumn )( + IEnumCERTVIEWROW * This, + /* [retval][out] */ IEnumCERTVIEWCOLUMN **ppenum); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWROW, EnumCertViewAttribute) + HRESULT ( STDMETHODCALLTYPE *EnumCertViewAttribute )( + IEnumCERTVIEWROW * This, + /* [in] */ LONG Flags, + /* [retval][out] */ IEnumCERTVIEWATTRIBUTE **ppenum); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWROW, EnumCertViewExtension) + HRESULT ( STDMETHODCALLTYPE *EnumCertViewExtension )( + IEnumCERTVIEWROW * This, + /* [in] */ LONG Flags, + /* [retval][out] */ IEnumCERTVIEWEXTENSION **ppenum); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWROW, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + IEnumCERTVIEWROW * This, + /* [in] */ LONG celt); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWROW, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IEnumCERTVIEWROW * This); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWROW, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IEnumCERTVIEWROW * This, + /* [retval][out] */ IEnumCERTVIEWROW **ppenum); + + DECLSPEC_XFGVIRT(IEnumCERTVIEWROW, GetMaxIndex) + HRESULT ( STDMETHODCALLTYPE *GetMaxIndex )( + IEnumCERTVIEWROW * This, + /* [retval][out] */ LONG *pIndex); + + END_INTERFACE + } IEnumCERTVIEWROWVtbl; + + interface IEnumCERTVIEWROW + { + CONST_VTBL struct IEnumCERTVIEWROWVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumCERTVIEWROW_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumCERTVIEWROW_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumCERTVIEWROW_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumCERTVIEWROW_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEnumCERTVIEWROW_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEnumCERTVIEWROW_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEnumCERTVIEWROW_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEnumCERTVIEWROW_Next(This,pIndex) \ + ( (This)->lpVtbl -> Next(This,pIndex) ) + +#define IEnumCERTVIEWROW_EnumCertViewColumn(This,ppenum) \ + ( (This)->lpVtbl -> EnumCertViewColumn(This,ppenum) ) + +#define IEnumCERTVIEWROW_EnumCertViewAttribute(This,Flags,ppenum) \ + ( (This)->lpVtbl -> EnumCertViewAttribute(This,Flags,ppenum) ) + +#define IEnumCERTVIEWROW_EnumCertViewExtension(This,Flags,ppenum) \ + ( (This)->lpVtbl -> EnumCertViewExtension(This,Flags,ppenum) ) + +#define IEnumCERTVIEWROW_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumCERTVIEWROW_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumCERTVIEWROW_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#define IEnumCERTVIEWROW_GetMaxIndex(This,pIndex) \ + ( (This)->lpVtbl -> GetMaxIndex(This,pIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumCERTVIEWROW_INTERFACE_DEFINED__ */ + + +#ifndef __ICertView_INTERFACE_DEFINED__ +#define __ICertView_INTERFACE_DEFINED__ + +/* interface ICertView */ +/* [unique][helpstring][local][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c3fac344-1e84-11d1-9bd6-00c04fb683fa") + ICertView : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE OpenConnection( + /* [in] */ const BSTR strConfig) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumCertViewColumn( + /* [in] */ LONG fResultColumn, + /* [retval][out] */ IEnumCERTVIEWCOLUMN **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetColumnCount( + /* [in] */ LONG fResultColumn, + /* [retval][out] */ LONG *pcColumn) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetColumnIndex( + /* [in] */ LONG fResultColumn, + /* [in] */ const BSTR strColumnName, + /* [retval][out] */ LONG *pColumnIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetResultColumnCount( + /* [in] */ LONG cResultColumn) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetResultColumn( + /* [in] */ LONG ColumnIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetRestriction( + /* [in] */ LONG ColumnIndex, + /* [in] */ LONG SeekOperator, + /* [in] */ LONG SortOrder, + /* [in] */ const VARIANT *pvarValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenView( + /* [retval][out] */ IEnumCERTVIEWROW **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICertView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICertView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICertView * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + ICertView * This, + /* [out] */ UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + ICertView * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + ICertView * This, + /* [in] */ REFIID riid, + /* [size_is][in] */ LPOLESTR *rgszNames, + /* [range][in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertView * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertView, OpenConnection) + HRESULT ( STDMETHODCALLTYPE *OpenConnection )( + ICertView * This, + /* [in] */ const BSTR strConfig); + + DECLSPEC_XFGVIRT(ICertView, EnumCertViewColumn) + HRESULT ( STDMETHODCALLTYPE *EnumCertViewColumn )( + ICertView * This, + /* [in] */ LONG fResultColumn, + /* [retval][out] */ IEnumCERTVIEWCOLUMN **ppenum); + + DECLSPEC_XFGVIRT(ICertView, GetColumnCount) + HRESULT ( STDMETHODCALLTYPE *GetColumnCount )( + ICertView * This, + /* [in] */ LONG fResultColumn, + /* [retval][out] */ LONG *pcColumn); + + DECLSPEC_XFGVIRT(ICertView, GetColumnIndex) + HRESULT ( STDMETHODCALLTYPE *GetColumnIndex )( + ICertView * This, + /* [in] */ LONG fResultColumn, + /* [in] */ const BSTR strColumnName, + /* [retval][out] */ LONG *pColumnIndex); + + DECLSPEC_XFGVIRT(ICertView, SetResultColumnCount) + HRESULT ( STDMETHODCALLTYPE *SetResultColumnCount )( + ICertView * This, + /* [in] */ LONG cResultColumn); + + DECLSPEC_XFGVIRT(ICertView, SetResultColumn) + HRESULT ( STDMETHODCALLTYPE *SetResultColumn )( + ICertView * This, + /* [in] */ LONG ColumnIndex); + + DECLSPEC_XFGVIRT(ICertView, SetRestriction) + HRESULT ( STDMETHODCALLTYPE *SetRestriction )( + ICertView * This, + /* [in] */ LONG ColumnIndex, + /* [in] */ LONG SeekOperator, + /* [in] */ LONG SortOrder, + /* [in] */ const VARIANT *pvarValue); + + DECLSPEC_XFGVIRT(ICertView, OpenView) + HRESULT ( STDMETHODCALLTYPE *OpenView )( + ICertView * This, + /* [retval][out] */ IEnumCERTVIEWROW **ppenum); + + END_INTERFACE + } ICertViewVtbl; + + interface ICertView + { + CONST_VTBL struct ICertViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertView_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertView_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertView_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertView_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertView_OpenConnection(This,strConfig) \ + ( (This)->lpVtbl -> OpenConnection(This,strConfig) ) + +#define ICertView_EnumCertViewColumn(This,fResultColumn,ppenum) \ + ( (This)->lpVtbl -> EnumCertViewColumn(This,fResultColumn,ppenum) ) + +#define ICertView_GetColumnCount(This,fResultColumn,pcColumn) \ + ( (This)->lpVtbl -> GetColumnCount(This,fResultColumn,pcColumn) ) + +#define ICertView_GetColumnIndex(This,fResultColumn,strColumnName,pColumnIndex) \ + ( (This)->lpVtbl -> GetColumnIndex(This,fResultColumn,strColumnName,pColumnIndex) ) + +#define ICertView_SetResultColumnCount(This,cResultColumn) \ + ( (This)->lpVtbl -> SetResultColumnCount(This,cResultColumn) ) + +#define ICertView_SetResultColumn(This,ColumnIndex) \ + ( (This)->lpVtbl -> SetResultColumn(This,ColumnIndex) ) + +#define ICertView_SetRestriction(This,ColumnIndex,SeekOperator,SortOrder,pvarValue) \ + ( (This)->lpVtbl -> SetRestriction(This,ColumnIndex,SeekOperator,SortOrder,pvarValue) ) + +#define ICertView_OpenView(This,ppenum) \ + ( (This)->lpVtbl -> OpenView(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertView_INTERFACE_DEFINED__ */ + + +#ifndef __ICertView2_INTERFACE_DEFINED__ +#define __ICertView2_INTERFACE_DEFINED__ + +/* interface ICertView2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertView2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d594b282-8851-4b61-9c66-3edadf848863") + ICertView2 : public ICertView + { + public: + virtual HRESULT STDMETHODCALLTYPE SetTable( + /* [in] */ LONG Table) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertView2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertView2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertView2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertView2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertView2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertView2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertView2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertView2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertView, OpenConnection) + HRESULT ( STDMETHODCALLTYPE *OpenConnection )( + __RPC__in ICertView2 * This, + /* [in] */ __RPC__in const BSTR strConfig); + + DECLSPEC_XFGVIRT(ICertView, EnumCertViewColumn) + HRESULT ( STDMETHODCALLTYPE *EnumCertViewColumn )( + __RPC__in ICertView2 * This, + /* [in] */ LONG fResultColumn, + /* [retval][out] */ __RPC__deref_out_opt IEnumCERTVIEWCOLUMN **ppenum); + + DECLSPEC_XFGVIRT(ICertView, GetColumnCount) + HRESULT ( STDMETHODCALLTYPE *GetColumnCount )( + __RPC__in ICertView2 * This, + /* [in] */ LONG fResultColumn, + /* [retval][out] */ __RPC__out LONG *pcColumn); + + DECLSPEC_XFGVIRT(ICertView, GetColumnIndex) + HRESULT ( STDMETHODCALLTYPE *GetColumnIndex )( + __RPC__in ICertView2 * This, + /* [in] */ LONG fResultColumn, + /* [in] */ __RPC__in const BSTR strColumnName, + /* [retval][out] */ __RPC__out LONG *pColumnIndex); + + DECLSPEC_XFGVIRT(ICertView, SetResultColumnCount) + HRESULT ( STDMETHODCALLTYPE *SetResultColumnCount )( + __RPC__in ICertView2 * This, + /* [in] */ LONG cResultColumn); + + DECLSPEC_XFGVIRT(ICertView, SetResultColumn) + HRESULT ( STDMETHODCALLTYPE *SetResultColumn )( + __RPC__in ICertView2 * This, + /* [in] */ LONG ColumnIndex); + + DECLSPEC_XFGVIRT(ICertView, SetRestriction) + HRESULT ( STDMETHODCALLTYPE *SetRestriction )( + __RPC__in ICertView2 * This, + /* [in] */ LONG ColumnIndex, + /* [in] */ LONG SeekOperator, + /* [in] */ LONG SortOrder, + /* [in] */ __RPC__in const VARIANT *pvarValue); + + DECLSPEC_XFGVIRT(ICertView, OpenView) + HRESULT ( STDMETHODCALLTYPE *OpenView )( + __RPC__in ICertView2 * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumCERTVIEWROW **ppenum); + + DECLSPEC_XFGVIRT(ICertView2, SetTable) + HRESULT ( STDMETHODCALLTYPE *SetTable )( + __RPC__in ICertView2 * This, + /* [in] */ LONG Table); + + END_INTERFACE + } ICertView2Vtbl; + + interface ICertView2 + { + CONST_VTBL struct ICertView2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertView2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertView2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertView2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertView2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertView2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertView2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertView2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertView2_OpenConnection(This,strConfig) \ + ( (This)->lpVtbl -> OpenConnection(This,strConfig) ) + +#define ICertView2_EnumCertViewColumn(This,fResultColumn,ppenum) \ + ( (This)->lpVtbl -> EnumCertViewColumn(This,fResultColumn,ppenum) ) + +#define ICertView2_GetColumnCount(This,fResultColumn,pcColumn) \ + ( (This)->lpVtbl -> GetColumnCount(This,fResultColumn,pcColumn) ) + +#define ICertView2_GetColumnIndex(This,fResultColumn,strColumnName,pColumnIndex) \ + ( (This)->lpVtbl -> GetColumnIndex(This,fResultColumn,strColumnName,pColumnIndex) ) + +#define ICertView2_SetResultColumnCount(This,cResultColumn) \ + ( (This)->lpVtbl -> SetResultColumnCount(This,cResultColumn) ) + +#define ICertView2_SetResultColumn(This,ColumnIndex) \ + ( (This)->lpVtbl -> SetResultColumn(This,ColumnIndex) ) + +#define ICertView2_SetRestriction(This,ColumnIndex,SeekOperator,SortOrder,pvarValue) \ + ( (This)->lpVtbl -> SetRestriction(This,ColumnIndex,SeekOperator,SortOrder,pvarValue) ) + +#define ICertView2_OpenView(This,ppenum) \ + ( (This)->lpVtbl -> OpenView(This,ppenum) ) + + +#define ICertView2_SetTable(This,Table) \ + ( (This)->lpVtbl -> SetTable(This,Table) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertView2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certview_0000_0006 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certview_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certview_0000_0006_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Certif.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Certif.h new file mode 100644 index 0000000000000000000000000000000000000000..8de2f13ffb78faa5edb4d311119c6fc267bd9005 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Certif.h @@ -0,0 +1,696 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __certif_h__ +#define __certif_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICertServerPolicy_FWD_DEFINED__ +#define __ICertServerPolicy_FWD_DEFINED__ +typedef interface ICertServerPolicy ICertServerPolicy; + +#endif /* __ICertServerPolicy_FWD_DEFINED__ */ + + +#ifndef __ICertServerExit_FWD_DEFINED__ +#define __ICertServerExit_FWD_DEFINED__ +typedef interface ICertServerExit ICertServerExit; + +#endif /* __ICertServerExit_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certif_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define ENUMEXT_OBJECTID ( 0x1 ) + + + +extern RPC_IF_HANDLE __MIDL_itf_certif_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certif_0000_0000_v0_0_s_ifspec; + +#ifndef __ICertServerPolicy_INTERFACE_DEFINED__ +#define __ICertServerPolicy_INTERFACE_DEFINED__ + +/* interface ICertServerPolicy */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertServerPolicy; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("aa000922-ffbe-11cf-8800-00a0c903b83c") + ICertServerPolicy : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE SetContext( + /* [in] */ LONG Context) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRequestProperty( + /* [in] */ __RPC__in const BSTR strPropertyName, + /* [in] */ LONG PropertyType, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRequestAttribute( + /* [in] */ __RPC__in const BSTR strAttributeName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrAttributeValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificateProperty( + /* [in] */ __RPC__in const BSTR strPropertyName, + /* [in] */ LONG PropertyType, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCertificateProperty( + /* [in] */ __RPC__in const BSTR strPropertyName, + /* [in] */ LONG PropertyType, + /* [in] */ __RPC__in const VARIANT *pvarPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificateExtension( + /* [in] */ __RPC__in const BSTR strExtensionName, + /* [in] */ LONG Type, + /* [retval][out] */ __RPC__out VARIANT *pvarValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificateExtensionFlags( + /* [retval][out] */ __RPC__out LONG *pExtFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCertificateExtension( + /* [in] */ __RPC__in const BSTR strExtensionName, + /* [in] */ LONG Type, + /* [in] */ LONG ExtFlags, + /* [in] */ __RPC__in const VARIANT *pvarValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateExtensionsSetup( + /* [in] */ LONG Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateExtensions( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrExtensionName) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateExtensionsClose( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateAttributesSetup( + /* [in] */ LONG Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateAttributes( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrAttributeName) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateAttributesClose( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertServerPolicyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertServerPolicy * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertServerPolicy * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertServerPolicy * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertServerPolicy * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertServerPolicy * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertServerPolicy * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertServerPolicy * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertServerPolicy, SetContext) + HRESULT ( STDMETHODCALLTYPE *SetContext )( + __RPC__in ICertServerPolicy * This, + /* [in] */ LONG Context); + + DECLSPEC_XFGVIRT(ICertServerPolicy, GetRequestProperty) + HRESULT ( STDMETHODCALLTYPE *GetRequestProperty )( + __RPC__in ICertServerPolicy * This, + /* [in] */ __RPC__in const BSTR strPropertyName, + /* [in] */ LONG PropertyType, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue); + + DECLSPEC_XFGVIRT(ICertServerPolicy, GetRequestAttribute) + HRESULT ( STDMETHODCALLTYPE *GetRequestAttribute )( + __RPC__in ICertServerPolicy * This, + /* [in] */ __RPC__in const BSTR strAttributeName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrAttributeValue); + + DECLSPEC_XFGVIRT(ICertServerPolicy, GetCertificateProperty) + HRESULT ( STDMETHODCALLTYPE *GetCertificateProperty )( + __RPC__in ICertServerPolicy * This, + /* [in] */ __RPC__in const BSTR strPropertyName, + /* [in] */ LONG PropertyType, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue); + + DECLSPEC_XFGVIRT(ICertServerPolicy, SetCertificateProperty) + HRESULT ( STDMETHODCALLTYPE *SetCertificateProperty )( + __RPC__in ICertServerPolicy * This, + /* [in] */ __RPC__in const BSTR strPropertyName, + /* [in] */ LONG PropertyType, + /* [in] */ __RPC__in const VARIANT *pvarPropertyValue); + + DECLSPEC_XFGVIRT(ICertServerPolicy, GetCertificateExtension) + HRESULT ( STDMETHODCALLTYPE *GetCertificateExtension )( + __RPC__in ICertServerPolicy * This, + /* [in] */ __RPC__in const BSTR strExtensionName, + /* [in] */ LONG Type, + /* [retval][out] */ __RPC__out VARIANT *pvarValue); + + DECLSPEC_XFGVIRT(ICertServerPolicy, GetCertificateExtensionFlags) + HRESULT ( STDMETHODCALLTYPE *GetCertificateExtensionFlags )( + __RPC__in ICertServerPolicy * This, + /* [retval][out] */ __RPC__out LONG *pExtFlags); + + DECLSPEC_XFGVIRT(ICertServerPolicy, SetCertificateExtension) + HRESULT ( STDMETHODCALLTYPE *SetCertificateExtension )( + __RPC__in ICertServerPolicy * This, + /* [in] */ __RPC__in const BSTR strExtensionName, + /* [in] */ LONG Type, + /* [in] */ LONG ExtFlags, + /* [in] */ __RPC__in const VARIANT *pvarValue); + + DECLSPEC_XFGVIRT(ICertServerPolicy, EnumerateExtensionsSetup) + HRESULT ( STDMETHODCALLTYPE *EnumerateExtensionsSetup )( + __RPC__in ICertServerPolicy * This, + /* [in] */ LONG Flags); + + DECLSPEC_XFGVIRT(ICertServerPolicy, EnumerateExtensions) + HRESULT ( STDMETHODCALLTYPE *EnumerateExtensions )( + __RPC__in ICertServerPolicy * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrExtensionName); + + DECLSPEC_XFGVIRT(ICertServerPolicy, EnumerateExtensionsClose) + HRESULT ( STDMETHODCALLTYPE *EnumerateExtensionsClose )( + __RPC__in ICertServerPolicy * This); + + DECLSPEC_XFGVIRT(ICertServerPolicy, EnumerateAttributesSetup) + HRESULT ( STDMETHODCALLTYPE *EnumerateAttributesSetup )( + __RPC__in ICertServerPolicy * This, + /* [in] */ LONG Flags); + + DECLSPEC_XFGVIRT(ICertServerPolicy, EnumerateAttributes) + HRESULT ( STDMETHODCALLTYPE *EnumerateAttributes )( + __RPC__in ICertServerPolicy * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrAttributeName); + + DECLSPEC_XFGVIRT(ICertServerPolicy, EnumerateAttributesClose) + HRESULT ( STDMETHODCALLTYPE *EnumerateAttributesClose )( + __RPC__in ICertServerPolicy * This); + + END_INTERFACE + } ICertServerPolicyVtbl; + + interface ICertServerPolicy + { + CONST_VTBL struct ICertServerPolicyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertServerPolicy_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertServerPolicy_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertServerPolicy_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertServerPolicy_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertServerPolicy_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertServerPolicy_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertServerPolicy_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertServerPolicy_SetContext(This,Context) \ + ( (This)->lpVtbl -> SetContext(This,Context) ) + +#define ICertServerPolicy_GetRequestProperty(This,strPropertyName,PropertyType,pvarPropertyValue) \ + ( (This)->lpVtbl -> GetRequestProperty(This,strPropertyName,PropertyType,pvarPropertyValue) ) + +#define ICertServerPolicy_GetRequestAttribute(This,strAttributeName,pstrAttributeValue) \ + ( (This)->lpVtbl -> GetRequestAttribute(This,strAttributeName,pstrAttributeValue) ) + +#define ICertServerPolicy_GetCertificateProperty(This,strPropertyName,PropertyType,pvarPropertyValue) \ + ( (This)->lpVtbl -> GetCertificateProperty(This,strPropertyName,PropertyType,pvarPropertyValue) ) + +#define ICertServerPolicy_SetCertificateProperty(This,strPropertyName,PropertyType,pvarPropertyValue) \ + ( (This)->lpVtbl -> SetCertificateProperty(This,strPropertyName,PropertyType,pvarPropertyValue) ) + +#define ICertServerPolicy_GetCertificateExtension(This,strExtensionName,Type,pvarValue) \ + ( (This)->lpVtbl -> GetCertificateExtension(This,strExtensionName,Type,pvarValue) ) + +#define ICertServerPolicy_GetCertificateExtensionFlags(This,pExtFlags) \ + ( (This)->lpVtbl -> GetCertificateExtensionFlags(This,pExtFlags) ) + +#define ICertServerPolicy_SetCertificateExtension(This,strExtensionName,Type,ExtFlags,pvarValue) \ + ( (This)->lpVtbl -> SetCertificateExtension(This,strExtensionName,Type,ExtFlags,pvarValue) ) + +#define ICertServerPolicy_EnumerateExtensionsSetup(This,Flags) \ + ( (This)->lpVtbl -> EnumerateExtensionsSetup(This,Flags) ) + +#define ICertServerPolicy_EnumerateExtensions(This,pstrExtensionName) \ + ( (This)->lpVtbl -> EnumerateExtensions(This,pstrExtensionName) ) + +#define ICertServerPolicy_EnumerateExtensionsClose(This) \ + ( (This)->lpVtbl -> EnumerateExtensionsClose(This) ) + +#define ICertServerPolicy_EnumerateAttributesSetup(This,Flags) \ + ( (This)->lpVtbl -> EnumerateAttributesSetup(This,Flags) ) + +#define ICertServerPolicy_EnumerateAttributes(This,pstrAttributeName) \ + ( (This)->lpVtbl -> EnumerateAttributes(This,pstrAttributeName) ) + +#define ICertServerPolicy_EnumerateAttributesClose(This) \ + ( (This)->lpVtbl -> EnumerateAttributesClose(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertServerPolicy_INTERFACE_DEFINED__ */ + + +#ifndef __ICertServerExit_INTERFACE_DEFINED__ +#define __ICertServerExit_INTERFACE_DEFINED__ + +/* interface ICertServerExit */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertServerExit; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4ba9eb90-732c-11d0-8816-00a0c903b83c") + ICertServerExit : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE SetContext( + /* [in] */ LONG Context) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRequestProperty( + /* [in] */ __RPC__in const BSTR strPropertyName, + /* [in] */ LONG PropertyType, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRequestAttribute( + /* [in] */ __RPC__in const BSTR strAttributeName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrAttributeValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificateProperty( + /* [in] */ __RPC__in const BSTR strPropertyName, + /* [in] */ LONG PropertyType, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificateExtension( + /* [in] */ __RPC__in const BSTR strExtensionName, + /* [in] */ LONG Type, + /* [retval][out] */ __RPC__out VARIANT *pvarValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificateExtensionFlags( + /* [retval][out] */ __RPC__out LONG *pExtFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateExtensionsSetup( + /* [in] */ LONG Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateExtensions( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrExtensionName) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateExtensionsClose( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateAttributesSetup( + /* [in] */ LONG Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateAttributes( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrAttributeName) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateAttributesClose( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertServerExitVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertServerExit * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertServerExit * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertServerExit * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertServerExit * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertServerExit * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertServerExit * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertServerExit * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertServerExit, SetContext) + HRESULT ( STDMETHODCALLTYPE *SetContext )( + __RPC__in ICertServerExit * This, + /* [in] */ LONG Context); + + DECLSPEC_XFGVIRT(ICertServerExit, GetRequestProperty) + HRESULT ( STDMETHODCALLTYPE *GetRequestProperty )( + __RPC__in ICertServerExit * This, + /* [in] */ __RPC__in const BSTR strPropertyName, + /* [in] */ LONG PropertyType, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue); + + DECLSPEC_XFGVIRT(ICertServerExit, GetRequestAttribute) + HRESULT ( STDMETHODCALLTYPE *GetRequestAttribute )( + __RPC__in ICertServerExit * This, + /* [in] */ __RPC__in const BSTR strAttributeName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrAttributeValue); + + DECLSPEC_XFGVIRT(ICertServerExit, GetCertificateProperty) + HRESULT ( STDMETHODCALLTYPE *GetCertificateProperty )( + __RPC__in ICertServerExit * This, + /* [in] */ __RPC__in const BSTR strPropertyName, + /* [in] */ LONG PropertyType, + /* [retval][out] */ __RPC__out VARIANT *pvarPropertyValue); + + DECLSPEC_XFGVIRT(ICertServerExit, GetCertificateExtension) + HRESULT ( STDMETHODCALLTYPE *GetCertificateExtension )( + __RPC__in ICertServerExit * This, + /* [in] */ __RPC__in const BSTR strExtensionName, + /* [in] */ LONG Type, + /* [retval][out] */ __RPC__out VARIANT *pvarValue); + + DECLSPEC_XFGVIRT(ICertServerExit, GetCertificateExtensionFlags) + HRESULT ( STDMETHODCALLTYPE *GetCertificateExtensionFlags )( + __RPC__in ICertServerExit * This, + /* [retval][out] */ __RPC__out LONG *pExtFlags); + + DECLSPEC_XFGVIRT(ICertServerExit, EnumerateExtensionsSetup) + HRESULT ( STDMETHODCALLTYPE *EnumerateExtensionsSetup )( + __RPC__in ICertServerExit * This, + /* [in] */ LONG Flags); + + DECLSPEC_XFGVIRT(ICertServerExit, EnumerateExtensions) + HRESULT ( STDMETHODCALLTYPE *EnumerateExtensions )( + __RPC__in ICertServerExit * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrExtensionName); + + DECLSPEC_XFGVIRT(ICertServerExit, EnumerateExtensionsClose) + HRESULT ( STDMETHODCALLTYPE *EnumerateExtensionsClose )( + __RPC__in ICertServerExit * This); + + DECLSPEC_XFGVIRT(ICertServerExit, EnumerateAttributesSetup) + HRESULT ( STDMETHODCALLTYPE *EnumerateAttributesSetup )( + __RPC__in ICertServerExit * This, + /* [in] */ LONG Flags); + + DECLSPEC_XFGVIRT(ICertServerExit, EnumerateAttributes) + HRESULT ( STDMETHODCALLTYPE *EnumerateAttributes )( + __RPC__in ICertServerExit * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrAttributeName); + + DECLSPEC_XFGVIRT(ICertServerExit, EnumerateAttributesClose) + HRESULT ( STDMETHODCALLTYPE *EnumerateAttributesClose )( + __RPC__in ICertServerExit * This); + + END_INTERFACE + } ICertServerExitVtbl; + + interface ICertServerExit + { + CONST_VTBL struct ICertServerExitVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertServerExit_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertServerExit_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertServerExit_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertServerExit_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertServerExit_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertServerExit_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertServerExit_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertServerExit_SetContext(This,Context) \ + ( (This)->lpVtbl -> SetContext(This,Context) ) + +#define ICertServerExit_GetRequestProperty(This,strPropertyName,PropertyType,pvarPropertyValue) \ + ( (This)->lpVtbl -> GetRequestProperty(This,strPropertyName,PropertyType,pvarPropertyValue) ) + +#define ICertServerExit_GetRequestAttribute(This,strAttributeName,pstrAttributeValue) \ + ( (This)->lpVtbl -> GetRequestAttribute(This,strAttributeName,pstrAttributeValue) ) + +#define ICertServerExit_GetCertificateProperty(This,strPropertyName,PropertyType,pvarPropertyValue) \ + ( (This)->lpVtbl -> GetCertificateProperty(This,strPropertyName,PropertyType,pvarPropertyValue) ) + +#define ICertServerExit_GetCertificateExtension(This,strExtensionName,Type,pvarValue) \ + ( (This)->lpVtbl -> GetCertificateExtension(This,strExtensionName,Type,pvarValue) ) + +#define ICertServerExit_GetCertificateExtensionFlags(This,pExtFlags) \ + ( (This)->lpVtbl -> GetCertificateExtensionFlags(This,pExtFlags) ) + +#define ICertServerExit_EnumerateExtensionsSetup(This,Flags) \ + ( (This)->lpVtbl -> EnumerateExtensionsSetup(This,Flags) ) + +#define ICertServerExit_EnumerateExtensions(This,pstrExtensionName) \ + ( (This)->lpVtbl -> EnumerateExtensions(This,pstrExtensionName) ) + +#define ICertServerExit_EnumerateExtensionsClose(This) \ + ( (This)->lpVtbl -> EnumerateExtensionsClose(This) ) + +#define ICertServerExit_EnumerateAttributesSetup(This,Flags) \ + ( (This)->lpVtbl -> EnumerateAttributesSetup(This,Flags) ) + +#define ICertServerExit_EnumerateAttributes(This,pstrAttributeName) \ + ( (This)->lpVtbl -> EnumerateAttributes(This,pstrAttributeName) ) + +#define ICertServerExit_EnumerateAttributesClose(This) \ + ( (This)->lpVtbl -> EnumerateAttributesClose(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertServerExit_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certif_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certif_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certif_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ChPtrArr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ChPtrArr.h new file mode 100644 index 0000000000000000000000000000000000000000..05d2eaeba6ec146ae133855cd25e367ff819e93e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ChPtrArr.h @@ -0,0 +1,98 @@ +//*************************************************************************** +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// chptrarr.h +// +// Purpose: Non-MFC CPtrArray class definition +// +//*************************************************************************** + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifndef __CHPTRARRAY__ +#define __CHPTRARRAY__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include +#include +#include +#include +#include + +class POLARITY CHPtrArray +{ + public : + + // Construction/destruction + //========================= + + CHPtrArray() ; + +// Attributes + int GetSize() const ; + int GetUpperBound() const ; + void SetSize(int nNewSize, int nGrowBy = -1) throw ( CHeap_Exception ) ; + +// Operations + // Clean up + void FreeExtra() throw ( CHeap_Exception ) ; + void RemoveAll() ; + + // Accessing elements + void* GetAt(int nIndex) const ; + void SetAt(int nIndex, void* newElement) ; + void*& ElementAt(int nIndex) ; + + // Direct Access to the element data (may return NULL) + const void** GetData() const ; + void** GetData() ; + + // Potentially growing the array + void SetAtGrow(int nIndex, void* newElement) throw ( CHeap_Exception ) ; + int Add(void* newElement) throw ( CHeap_Exception ) ; + int Append(const CHPtrArray& src) throw ( CHeap_Exception ) ; + void Copy(const CHPtrArray& src) throw ( CHeap_Exception ) ; + + // overloaded operator helpers + void* operator[](int nIndex) const ; + void*& operator[](int nIndex) ; + + // Operations that move elements around + void InsertAt(int nIndex, void* newElement, int nCount = 1) throw ( CHeap_Exception ) ; + void RemoveAt(int nIndex, int nCount = 1) ; + void InsertAt(int nStartIndex, CHPtrArray* pNewArray) throw ( CHeap_Exception ) ; + +// Implementation +protected: + void** m_pData ; // the actual array of data + int m_nSize ; // # of elements (upperBound - 1) + int m_nMaxSize ; // max allocated + int m_nGrowBy ; // grow amount + +public: + ~CHPtrArray() ; +#ifdef _DEBUG +// void Dump(CDumpContext&) const ; + void AssertValid() const ; +#endif + +protected: + // local typedefs for class templates + typedef void* BASE_TYPE ; + typedef void* BASE_ARG_TYPE ; +} ; + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ChStrArr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ChStrArr.h new file mode 100644 index 0000000000000000000000000000000000000000..536072368c2d57d0d1790b5e404fe58492843100 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ChStrArr.h @@ -0,0 +1,96 @@ +//*************************************************************************** +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// CHSTRARR.H +// +// Purpose: Utility library version of MFC CHStringArray +// +//*************************************************************************** + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifndef _CHStringArray_ +#define _CHStringArray_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include + +class POLARITY CHStringArray +{ + public: + + CHStringArray(); + ~CHStringArray(); + + // Attributes + int GetSize() const { return m_nSize; } + int GetUpperBound() const { return m_nSize-1; } + void SetSize(int nNewSize, int nGrowBy = -1) throw ( CHeap_Exception ) ; + + // Operations + // Clean up + void FreeExtra() throw ( CHeap_Exception ) ; + void RemoveAll() { SetSize(0); } + + // Accessing elements +#if (!defined DEBUG && !defined _DEBUG) + CHString GetAt(int nIndex) const{ return m_pData[nIndex]; } + void SetAt(int nIndex, LPCWSTR newElement){ m_pData[nIndex] = newElement; } + CHString& ElementAt(int nIndex) { return m_pData[nIndex]; } +#else + CHString GetAt(int nIndex) const; + void SetAt(int nIndex, LPCWSTR newElement); + CHString& ElementAt(int nIndex); +#endif + + // Direct Access to the element data (may return NULL) + const CHString* GetData() const { return (const CHString*)m_pData; } + CHString* GetData() { return (CHString*)m_pData; } + + // Potentially growing the array + void SetAtGrow(int nIndex, LPCWSTR newElement) throw ( CHeap_Exception ) ; + int Add(LPCWSTR newElement) throw ( CHeap_Exception ) + { + int nIndex = m_nSize; + SetAtGrow(nIndex, newElement); + return nIndex; + } + + int Append(const CHStringArray& src) throw ( CHeap_Exception ) ; + void Copy(const CHStringArray& src) throw ( CHeap_Exception ) ; + + // overloaded operator helpers + CHString operator[](int nIndex) const { return GetAt(nIndex); } + CHString& operator[](int nIndex) { return ElementAt(nIndex); } + + // Operations that move elements around + void InsertAt(int nIndex, LPCWSTR newElement, int nCount = 1) throw ( CHeap_Exception ) ; + void RemoveAt(int nIndex, int nCount = 1); + void InsertAt(int nStartIndex, CHStringArray* pNewArray) throw ( CHeap_Exception ) ; + + // Implementation + + protected: + CHString* m_pData; // the actual array of data + int m_nSize; // # of elements (upperBound - 1) + int m_nMaxSize; // max allocated + int m_nGrowBy; // grow amount + // local typedefs for class templates + typedef CHString BASE_TYPE; + typedef LPCWSTR BASE_ARG_TYPE; +}; +//////////////////////////////////////////////////////////////////////////// + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ChString.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ChString.h new file mode 100644 index 0000000000000000000000000000000000000000..0e1987c2a51ddd7f869e7b22d0eec5894e05e398 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ChString.h @@ -0,0 +1,285 @@ +//*************************************************************************** +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// CHSTRING.h +// +// Purpose: Utility library version of MFC CString +// +//*************************************************************************** + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifndef _CHSTRING_H +#define _CHSTRING_H + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +///////////////////////////////////////////////////////////////////////////// +#include +#include +#include +#include +#pragma warning( disable : 4290 ) // Ignore 'C++ Exception Specification ignored' +#include + +///////////////////////////////////////////////////////////////////////////// + +struct _DOUBLE { BYTE doubleBits[sizeof(double)]; }; + +#ifdef FRAMEWORK_ALLOW_DEPRECATED +void POLARITY WINAPI SetCHStringResourceHandle(HINSTANCE handle); +#endif + +///////////////////////////////////////////////////////////////////////////// +// CHString formatting +///////////////////////////////////////////////////////////////////////////// +#define TCHAR_ARG WCHAR +#define WCHAR_ARG WCHAR +#define CHAR_ARG char + +#if defined(_68K_) || defined(_X86_) + #define DOUBLE_ARG _DOUBLE +#else + #define DOUBLE_ARG double +#endif + +struct CHStringData +{ + long nRefs; + int nDataLength; + int nAllocLength; + + WCHAR* data() + { + return (WCHAR*)(this+1); + } +}; + +///////////////////////////////////////////////////////////////////////////// +class POLARITY CHString +{ + protected: + + LPWSTR m_pchData; // pointer to ref counted string data + + protected: + + // implementation helpers + + CHStringData* GetData() const; // returns data pointer + void Init(); + void AllocCopy(CHString& dest, int nCopyLen, int nCopyIndex, int nExtraLen) const throw ( CHeap_Exception ) ; + void AllocBuffer(int nLen) throw ( CHeap_Exception ) ; + void AssignCopy(int nSrcLen, LPCWSTR lpszSrcData) throw ( CHeap_Exception ) ; + void ConcatCopy(int nSrc1Len, LPCWSTR lpszSrc1Data, int nSrc2Len, LPCWSTR lpszSrc2Data) throw ( CHeap_Exception ) ; + void ConcatInPlace(int nSrcLen, LPCWSTR lpszSrcData); + void CopyBeforeWrite() throw ( CHeap_Exception ) ; + void AllocBeforeWrite(int nLen) throw ( CHeap_Exception ) ; + static inline int WINAPI SafeStrlen(LPCWSTR lpsz) { return (lpsz == NULL) ? 0 : (int)wcslen(lpsz); } + + // Helper function used to load resource into lpszBuf buffer. +#ifdef FRAMEWORK_ALLOW_DEPRECATED + int LoadStringW(UINT nID, _In_reads_(nMaxBuf) LPWSTR lpszBuf, UINT nMaxBuf) throw ( CHeap_Exception ) ; +#endif + + public: + +// Constructors/Destruction + + CHString(); + CHString(const CHString& stringSrc); + CHString(WCHAR ch, int nRepeat = 1) throw ( CHeap_Exception ) ; + CHString(LPCSTR lpsz) throw ( CHeap_Exception ) ; + CHString(LPCWSTR lpsz) throw ( CHeap_Exception ) ; + CHString(LPCWSTR lpch, int nLength) throw ( CHeap_Exception ) ; + inline CHString(const unsigned char* lpsz) { Init(); *this = (LPCSTR)lpsz; } + + ~CHString(); + +// Functions + + void SetAt(int nIndex, WCHAR ch) throw ( CHeap_Exception ) ; + void Empty(); + + // inlines + + inline int GetLength() const { return GetData()->nDataLength; } + inline BOOL IsEmpty() const { return GetData()->nDataLength == 0; } + +#if (!defined DEBUG && !defined _DEBUG) + +#ifdef _PREFAST_ + #pragma prefast(push) + #pragma prefast(disable:26018 ) +#endif + inline WCHAR GetAt(int nIndex) const{ return m_pchData[nIndex]; } + inline WCHAR operator[](int nIndex) const{ return m_pchData[nIndex]; } +#ifdef _PREFAST_ + #pragma prefast(pop) +#endif + +#else + WCHAR GetAt(int nIndex) const; + WCHAR operator[](int nIndex) const; +#endif + inline operator LPCWSTR() const { return m_pchData; } + inline int GetAllocLength() const { return GetData()->nAllocLength; } + +// overloaded assignment + + const CHString& operator=(const CHString& stringSrc) throw ( CHeap_Exception ) ; + const CHString& operator=(WCHAR ch) throw ( CHeap_Exception ) ; + const CHString& operator=(LPCSTR lpsz) throw ( CHeap_Exception ) ; + const CHString& operator=(LPCWSTR lpsz) throw ( CHeap_Exception ) ; + inline const CHString& operator=(const unsigned char* lpsz) throw ( CHeap_Exception ) { *this = (LPCSTR)lpsz; return *this; } + inline const CHString& operator=(CHString *p) throw ( CHeap_Exception ) { *this = *p; return *this; } + inline const CHString& operator=(char ch) throw ( CHeap_Exception ) { *this = (WCHAR)ch; return *this; } + + inline const CHString& operator+=(char ch) throw ( CHeap_Exception ) { *this += (WCHAR)ch; return *this; } + friend inline CHString operator+(const CHString& string, char ch) throw ( CHeap_Exception ) { return string + (WCHAR)ch; } + friend inline CHString operator+(char ch, const CHString& string) throw ( CHeap_Exception ) { return (WCHAR)ch + string; } + + const CHString& operator+=(const CHString& string) throw ( CHeap_Exception ) ; + const CHString& operator+=(WCHAR ch) throw ( CHeap_Exception ) ; + const CHString& operator+=(LPCWSTR lpsz) throw ( CHeap_Exception ) ; + + friend CHString POLARITY WINAPI operator+(const CHString& string1, const CHString& string2) throw ( CHeap_Exception ) ; + friend CHString POLARITY WINAPI operator+(const CHString& string, WCHAR ch) throw ( CHeap_Exception ) ; + friend CHString POLARITY WINAPI operator+(WCHAR ch, const CHString& string) throw ( CHeap_Exception ) ; + friend CHString POLARITY WINAPI operator+(const CHString& string, LPCWSTR lpsz) throw ( CHeap_Exception ) ; + friend CHString POLARITY WINAPI operator+(LPCWSTR lpsz, const CHString& string) throw ( CHeap_Exception ) ; + +// string comparison + + int Compare(LPCWSTR lpsz) const; + + inline int CompareNoCase(LPCWSTR lpsz) const + { + // ignore case + + return _wcsicmp(m_pchData, lpsz); + + } // MBCS/Unicode aware + + inline int Collate(LPCWSTR lpsz) const + { + // NLS aware + // CHString::Collate is often slower than Compare but is MBSC/Unicode + // aware as well as locale-sensitive with respect to sort order. + + return wcscoll(m_pchData, lpsz); + + } // locale sensitive + +// Load string from resource file. + +#ifdef FRAMEWORK_ALLOW_DEPRECATED + BOOL LoadStringW(UINT nID) throw ( CHeap_Exception ) ; +#endif + +// Access to string implementation buffer as "C" character array + + LPWSTR GetBuffer(int nMinBufLength) throw ( CHeap_Exception ) ; + void ReleaseBuffer(int nNewLength = -1) throw ( CHeap_Exception ) ; + LPWSTR GetBufferSetLength(int nNewLength) throw ( CHeap_Exception ) ; + void FreeExtra() throw ( CHeap_Exception ) ; + +// Use LockBuffer/UnlockBuffer to turn refcounting off + + LPWSTR LockBuffer() ; + void UnlockBuffer(); + +// searching (return starting index, or -1 if not found) +// look for a single character match + + int Find(WCHAR ch) const; // like "C" strchr + int FindOneOf(LPCWSTR lpszCharSet) const; + int ReverseFind(WCHAR ch) const; + +// look for a specific sub-string + + int Find(LPCWSTR lpszSub) const; // like "C" strstr + +// upper/lower/reverse conversion + + void MakeUpper() throw ( CHeap_Exception ) ; + void MakeLower() throw ( CHeap_Exception ) ; + void MakeReverse() throw ( CHeap_Exception ) ; + +// simple sub-string extraction + + CHString Mid(int nFirst, int nCount) const throw ( CHeap_Exception ) ; + CHString Mid(int nFirst) const throw ( CHeap_Exception ) ; + CHString Left(int nCount) const throw ( CHeap_Exception ) ; + CHString Right(int nCount) const throw ( CHeap_Exception ) ; + + CHString SpanIncluding(LPCWSTR lpszCharSet) const throw ( CHeap_Exception ) ; + CHString SpanExcluding(LPCWSTR lpszCharSet) const throw ( CHeap_Exception ) ; + +// trimming whitespace (either side) + + void TrimRight() throw ( CHeap_Exception ) ; + void TrimLeft() throw ( CHeap_Exception ) ; + +// printf-like formatting using passed string + void __cdecl Format(LPCWSTR lpszFormat, ...) throw ( CHeap_Exception ) ; + void FormatV(LPCWSTR lpszFormat, va_list argList); + +// printf-like formatting using referenced string resource +#ifdef FRAMEWORK_ALLOW_DEPRECATED + void __cdecl Format(UINT nFormatID, ...) throw ( CHeap_Exception ) ; +#endif + +// format using FormatMessage API on passed string + // Warning: if you pass string inserts to this function, they must + // be LPCSTRs on Win9x and LPCWSTRs on NT. + void __cdecl FormatMessageW(LPCWSTR lpszFormat, ...) throw ( CHeap_Exception ) ; + +// format using FormatMessage API on referenced string resource + // Warning: if you pass string inserts to this function, they must + // be LPCSTRs on Win9x and LPCWSTRs on NT. +#ifdef FRAMEWORK_ALLOW_DEPRECATED + void __cdecl FormatMessageW(UINT nFormatID, ...) throw ( CHeap_Exception ) ; +#endif + +#ifndef _NO_BSTR_SUPPORT + + // OLE BSTR support (use for OLE automation) + + BSTR AllocSysString() const throw ( CHeap_Exception ) ; + static void WINAPI Release(CHStringData* pData); + void Release(); + +#endif + +}; + +inline BOOL operator==(const CHString& s1, const CHString& s2) { return s1.Compare(s2) == 0; } +inline BOOL operator==(const CHString& s1, LPCWSTR s2) { return s1.Compare(s2) == 0; } + +inline BOOL operator!=(const CHString& s1, const CHString& s2) { return s1.Compare(s2) != 0; } +inline BOOL operator!=(const CHString& s1, LPCWSTR s2) { return s1.Compare(s2) != 0; } + +inline BOOL operator<(const CHString& s1, const CHString& s2) { return s1.Compare(s2) < 0; } +inline BOOL operator<(const CHString& s1, LPCWSTR s2) { return s1.Compare(s2) < 0; } + +inline BOOL operator>(const CHString& s1, const CHString& s2) { return s1.Compare(s2) > 0; } +inline BOOL operator>(const CHString& s1, LPCWSTR s2) { return s1.Compare(s2) > 0; } + +inline BOOL operator<=(const CHString& s1, const CHString& s2) { return s1.Compare(s2) <= 0; } +inline BOOL operator<=(const CHString& s1, LPCWSTR s2) { return s1.Compare(s2) <= 0; } + +inline BOOL operator>=(const CHString& s1, const CHString& s2) { return s1.Compare(s2) >= 0; } +inline BOOL operator>=(const CHString& s1, LPCWSTR s2) { return s1.Compare(s2) >= 0; } + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CiError.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CiError.h new file mode 100644 index 0000000000000000000000000000000000000000..9c6114e4012f8844b415a6d10a6063445b16a48e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CiError.h @@ -0,0 +1,1289 @@ +#ifndef _CIERROR_H_ +#define _CIERROR_H_ +#ifndef FACILITY_WINDOWS +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---+-+-+-----------------------+-------------------------------+ +// |Sev|C|R| Facility | Code | +// +---+-+-+-----------------------+-------------------------------+ +// +// where +// +// Sev - is the severity code +// +// 00 - Success +// 01 - Informational +// 10 - Warning +// 11 - Error +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_NULL 0x0 +#define FACILITY_ITF 0x4 +#define FACILITY_WINDOWS 0x8 + + +// +// Define the severity codes +// +#define STATUS_SEVERITY_SUCCESS 0x0 +#define STATUS_SEVERITY_COERROR 0x2 +#define STATUS_SEVERITY_COFAIL 0x3 + + +// +// MessageId: NOT_AN_ERROR1 +// +// MessageText: +// +// NOTE: This dummy error message is necessary to force MC to output +// the above defines inside the FACILITY_WINDOWS guard instead +// of leaving it empty. +// +#define NOT_AN_ERROR1 ((HRESULT)0x00081600L) + +#endif // FACILITY_WINDOWS +// +// Range 0x1600-0x1850 is reserved by Content Index. +// +// +// Codes 0x1600-0x164f are reserved for QUERY +// +// +// MessageId: QUERY_E_FAILED +// +// MessageText: +// +// Call failed for unknown reason. +// +#define QUERY_E_FAILED ((HRESULT)0x80041600L) + +// +// MessageId: QUERY_E_INVALIDQUERY +// +// MessageText: +// +// Invalid parameter. +// +#define QUERY_E_INVALIDQUERY ((HRESULT)0x80041601L) + +// +// MessageId: QUERY_E_INVALIDRESTRICTION +// +// MessageText: +// +// The query restriction could not be parsed. +// +#define QUERY_E_INVALIDRESTRICTION ((HRESULT)0x80041602L) + +// +// MessageId: QUERY_E_INVALIDSORT +// +// MessageText: +// +// An invalid sort order was requested. +// +#define QUERY_E_INVALIDSORT ((HRESULT)0x80041603L) + +// +// MessageId: QUERY_E_INVALIDCATEGORIZE +// +// MessageText: +// +// An invalid categorization order was requested. +// +#define QUERY_E_INVALIDCATEGORIZE ((HRESULT)0x80041604L) + +// +// MessageId: QUERY_E_ALLNOISE +// +// MessageText: +// +// The query contained only ignored words. +// +#define QUERY_E_ALLNOISE ((HRESULT)0x80041605L) + +// +// MessageId: QUERY_E_TOOCOMPLEX +// +// MessageText: +// +// The query was too complex to be executed. +// +#define QUERY_E_TOOCOMPLEX ((HRESULT)0x80041606L) + +// +// MessageId: QUERY_E_TIMEDOUT +// +// MessageText: +// +// The query exceeded its execution time limit. +// +#define QUERY_E_TIMEDOUT ((HRESULT)0x80041607L) + +// +// MessageId: QUERY_E_DUPLICATE_OUTPUT_COLUMN +// +// MessageText: +// +// One or more columns in the output column list is a duplicate. +// +#define QUERY_E_DUPLICATE_OUTPUT_COLUMN ((HRESULT)0x80041608L) + +// +// MessageId: QUERY_E_INVALID_OUTPUT_COLUMN +// +// MessageText: +// +// One or more columns in the output column list is not valid. +// +#define QUERY_E_INVALID_OUTPUT_COLUMN ((HRESULT)0x80041609L) + +// +// MessageId: QUERY_E_INVALID_DIRECTORY +// +// MessageText: +// +// Invalid directory name. +// +#define QUERY_E_INVALID_DIRECTORY ((HRESULT)0x8004160AL) + +// +// MessageId: QUERY_E_DIR_ON_REMOVABLE_DRIVE +// +// MessageText: +// +// Specified directory is on a removable medium. +// +#define QUERY_E_DIR_ON_REMOVABLE_DRIVE ((HRESULT)0x8004160BL) + +// +// MessageId: QUERY_S_NO_QUERY +// +// MessageText: +// +// The catalog is in a state where indexing continues, but queries are not allowed. +// +#define QUERY_S_NO_QUERY ((HRESULT)0x8004160CL) + +// +// Codes 0x1650-0x167f are reserved for qutil error codes +// +// +// MessageId: QPLIST_E_CANT_OPEN_FILE +// +// MessageText: +// +// Can not open file. +// +#define QPLIST_E_CANT_OPEN_FILE ((HRESULT)0x80041651L) + +// +// MessageId: QPLIST_E_READ_ERROR +// +// MessageText: +// +// Read error in file. +// +#define QPLIST_E_READ_ERROR ((HRESULT)0x80041652L) + +// +// MessageId: QPLIST_E_EXPECTING_NAME +// +// MessageText: +// +// Expecting property name. +// +#define QPLIST_E_EXPECTING_NAME ((HRESULT)0x80041653L) + +// +// MessageId: QPLIST_E_EXPECTING_TYPE +// +// MessageText: +// +// Expecting type specifier. +// +#define QPLIST_E_EXPECTING_TYPE ((HRESULT)0x80041654L) + +// +// MessageId: QPLIST_E_UNRECOGNIZED_TYPE +// +// MessageText: +// +// Unrecognized type. +// +#define QPLIST_E_UNRECOGNIZED_TYPE ((HRESULT)0x80041655L) + +// +// MessageId: QPLIST_E_EXPECTING_INTEGER +// +// MessageText: +// +// Expecting integer. +// +#define QPLIST_E_EXPECTING_INTEGER ((HRESULT)0x80041656L) + +// +// MessageId: QPLIST_E_EXPECTING_CLOSE_PAREN +// +// MessageText: +// +// Expecting closing parenthesis. +// +#define QPLIST_E_EXPECTING_CLOSE_PAREN ((HRESULT)0x80041657L) + +// +// MessageId: QPLIST_E_EXPECTING_GUID +// +// MessageText: +// +// Expecting GUID. +// +#define QPLIST_E_EXPECTING_GUID ((HRESULT)0x80041658L) + +// +// MessageId: QPLIST_E_BAD_GUID +// +// MessageText: +// +// Invalid guid. +// +#define QPLIST_E_BAD_GUID ((HRESULT)0x80041659L) + +// +// MessageId: QPLIST_E_EXPECTING_PROP_SPEC +// +// MessageText: +// +// Expecting property specifier. +// +#define QPLIST_E_EXPECTING_PROP_SPEC ((HRESULT)0x8004165AL) + +// +// MessageId: QPLIST_E_CANT_SET_PROPERTY +// +// MessageText: +// +// Failed to set property name. +// +#define QPLIST_E_CANT_SET_PROPERTY ((HRESULT)0x8004165BL) + +// +// MessageId: QPLIST_E_DUPLICATE +// +// MessageText: +// +// Duplicate property name. +// +#define QPLIST_E_DUPLICATE ((HRESULT)0x8004165CL) + +// +// MessageId: QPLIST_E_VECTORBYREF_USED_ALONE +// +// MessageText: +// +// DBTYPE_VECTOR or DBTYPE_BYREF used alone. +// +#define QPLIST_E_VECTORBYREF_USED_ALONE ((HRESULT)0x8004165DL) + +// +// MessageId: QPLIST_E_BYREF_USED_WITHOUT_PTRTYPE +// +// MessageText: +// +// DBTYPE_BYREF must be used with DBTYPE_STR, DBTYPE_WSTR, DBTYPE_GUID +// or DBTYPE_UI1 types. +// +#define QPLIST_E_BYREF_USED_WITHOUT_PTRTYPE ((HRESULT)0x8004165EL) + +// +// MessageId: QPARSE_E_UNEXPECTED_NOT +// +// MessageText: +// +// Unexpected NOT operator. +// +#define QPARSE_E_UNEXPECTED_NOT ((HRESULT)0x80041660L) + +// +// MessageId: QPARSE_E_EXPECTING_INTEGER +// +// MessageText: +// +// Expecting integer. +// +#define QPARSE_E_EXPECTING_INTEGER ((HRESULT)0x80041661L) + +// +// MessageId: QPARSE_E_EXPECTING_REAL +// +// MessageText: +// +// Expecting real number. +// +#define QPARSE_E_EXPECTING_REAL ((HRESULT)0x80041662L) + +// +// MessageId: QPARSE_E_EXPECTING_DATE +// +// MessageText: +// +// Expecting date. +// +#define QPARSE_E_EXPECTING_DATE ((HRESULT)0x80041663L) + +// +// MessageId: QPARSE_E_EXPECTING_CURRENCY +// +// MessageText: +// +// Expecting currency. +// +#define QPARSE_E_EXPECTING_CURRENCY ((HRESULT)0x80041664L) + +// +// MessageId: QPARSE_E_EXPECTING_GUID +// +// MessageText: +// +// Expecting GUID. +// +#define QPARSE_E_EXPECTING_GUID ((HRESULT)0x80041665L) + +// +// MessageId: QPARSE_E_EXPECTING_BRACE +// +// MessageText: +// +// Expecting closing square bracket ']'. +// +#define QPARSE_E_EXPECTING_BRACE ((HRESULT)0x80041666L) + +// +// MessageId: QPARSE_E_EXPECTING_PAREN +// +// MessageText: +// +// Expecting closing parenthesis ')'. +// +#define QPARSE_E_EXPECTING_PAREN ((HRESULT)0x80041667L) + +// +// MessageId: QPARSE_E_EXPECTING_PROPERTY +// +// MessageText: +// +// Expecting property name. +// +#define QPARSE_E_EXPECTING_PROPERTY ((HRESULT)0x80041668L) + +// +// MessageId: QPARSE_E_NOT_YET_IMPLEMENTED +// +// MessageText: +// +// Not yet implemented. +// +#define QPARSE_E_NOT_YET_IMPLEMENTED ((HRESULT)0x80041669L) + +// +// MessageId: QPARSE_E_EXPECTING_PHRASE +// +// MessageText: +// +// Expecting phrase. +// +#define QPARSE_E_EXPECTING_PHRASE ((HRESULT)0x8004166AL) + +// +// MessageId: QPARSE_E_UNSUPPORTED_PROPERTY_TYPE +// +// MessageText: +// +// Unsupported property type. +// +#define QPARSE_E_UNSUPPORTED_PROPERTY_TYPE ((HRESULT)0x8004166BL) + +// +// MessageId: QPARSE_E_EXPECTING_REGEX +// +// MessageText: +// +// Expecting regular expression. +// +#define QPARSE_E_EXPECTING_REGEX ((HRESULT)0x8004166CL) + +// +// MessageId: QPARSE_E_EXPECTING_REGEX_PROPERTY +// +// MessageText: +// +// Regular expressions require a property of type string. +// +#define QPARSE_E_EXPECTING_REGEX_PROPERTY ((HRESULT)0x8004166DL) + +// +// MessageId: QPARSE_E_INVALID_LITERAL +// +// MessageText: +// +// Invalid literal. +// +#define QPARSE_E_INVALID_LITERAL ((HRESULT)0x8004166EL) + +// +// MessageId: QPARSE_E_NO_SUCH_PROPERTY +// +// MessageText: +// +// No such property. +// +#define QPARSE_E_NO_SUCH_PROPERTY ((HRESULT)0x8004166FL) + +// +// MessageId: QPARSE_E_EXPECTING_EOS +// +// MessageText: +// +// Expecting end of string. +// +#define QPARSE_E_EXPECTING_EOS ((HRESULT)0x80041670L) + +// +// MessageId: QPARSE_E_EXPECTING_COMMA +// +// MessageText: +// +// Expecting comma. +// +#define QPARSE_E_EXPECTING_COMMA ((HRESULT)0x80041671L) + +// +// MessageId: QPARSE_E_UNEXPECTED_EOS +// +// MessageText: +// +// Unexpected end of string. +// +#define QPARSE_E_UNEXPECTED_EOS ((HRESULT)0x80041672L) + +// +// MessageId: QPARSE_E_WEIGHT_OUT_OF_RANGE +// +// MessageText: +// +// Weight must be between 0 and 1000 in short form queries and between 0.0 and 1.0 in long form queries. +// +#define QPARSE_E_WEIGHT_OUT_OF_RANGE ((HRESULT)0x80041673L) + +// +// MessageId: QPARSE_E_NO_SUCH_SORT_PROPERTY +// +// MessageText: +// +// An invalid property was found in the sort specification. +// +#define QPARSE_E_NO_SUCH_SORT_PROPERTY ((HRESULT)0x80041674L) + +// +// MessageId: QPARSE_E_INVALID_SORT_ORDER +// +// MessageText: +// +// An invalid sort order was specified. Only [a] and [d] are supported. +// +#define QPARSE_E_INVALID_SORT_ORDER ((HRESULT)0x80041675L) + +// +// MessageId: QUTIL_E_CANT_CONVERT_VROOT +// +// MessageText: +// +// Couldn't convert a virtual path to a physical path. +// +#define QUTIL_E_CANT_CONVERT_VROOT ((HRESULT)0x80041676L) + +// +// MessageId: QPARSE_E_INVALID_GROUPING +// +// MessageText: +// +// An unsupported grouping type was specified. +// +#define QPARSE_E_INVALID_GROUPING ((HRESULT)0x80041677L) + +// +// MessageId: QUTIL_E_INVALID_CODEPAGE +// +// MessageText: +// +// Invalid CiCodepage was specified. +// +#define QUTIL_E_INVALID_CODEPAGE ((HRESULT)0xC0041678L) + +// +// MessageId: QPLIST_S_DUPLICATE +// +// MessageText: +// +// Exact duplicate property defined. +// +#define QPLIST_S_DUPLICATE ((HRESULT)0x00041679L) + +// +// MessageId: QPARSE_E_INVALID_QUERY +// +// MessageText: +// +// Invalid query. +// +#define QPARSE_E_INVALID_QUERY ((HRESULT)0x8004167AL) + +// +// MessageId: QPARSE_E_INVALID_RANKMETHOD +// +// MessageText: +// +// Invalid rank method. +// +#define QPARSE_E_INVALID_RANKMETHOD ((HRESULT)0x8004167BL) + +// +// 0x1680 - 0x169F are Filter daemon error codes +// +// +// MessageId: FDAEMON_W_WORDLISTFULL +// +// MessageText: +// +// Wordlist has reached maximum size. Additional documents should not be filtered. +// +#define FDAEMON_W_WORDLISTFULL ((HRESULT)0x00041680L) + +// +// MessageId: FDAEMON_E_LOWRESOURCE +// +// MessageText: +// +// The system is running out of one of more resources needed for filtering, usually memory. +// +#define FDAEMON_E_LOWRESOURCE ((HRESULT)0x80041681L) + +// +// MessageId: FDAEMON_E_FATALERROR +// +// MessageText: +// +// A critical error occurred during document filtering. Consult system administrator. +// +#define FDAEMON_E_FATALERROR ((HRESULT)0x80041682L) + +// +// MessageId: FDAEMON_E_PARTITIONDELETED +// +// MessageText: +// +// Documents not stored in content index because partition has been deleted. +// +#define FDAEMON_E_PARTITIONDELETED ((HRESULT)0x80041683L) + +// +// MessageId: FDAEMON_E_CHANGEUPDATEFAILED +// +// MessageText: +// +// Documents not stored in content index because update of changelist failed. +// +#define FDAEMON_E_CHANGEUPDATEFAILED ((HRESULT)0x80041684L) + +// +// MessageId: FDAEMON_W_EMPTYWORDLIST +// +// MessageText: +// +// Final wordlist was empty. +// +#define FDAEMON_W_EMPTYWORDLIST ((HRESULT)0x00041685L) + +// +// MessageId: FDAEMON_E_WORDLISTCOMMITFAILED +// +// MessageText: +// +// Commit of wordlist failed. Data not available for query. +// +#define FDAEMON_E_WORDLISTCOMMITFAILED ((HRESULT)0x80041686L) + +// +// MessageId: FDAEMON_E_NOWORDLIST +// +// MessageText: +// +// No wordlist is being constructed. May happen after fatal filter error. +// +#define FDAEMON_E_NOWORDLIST ((HRESULT)0x80041687L) + +// +// MessageId: FDAEMON_E_TOOMANYFILTEREDBLOCKS +// +// MessageText: +// +// During document filtering the limit on buffers has been exceeded. +// +#define FDAEMON_E_TOOMANYFILTEREDBLOCKS ((HRESULT)0x80041688L) + +// +// ISearch error codes +// +// +// MessageId: SEARCH_S_NOMOREHITS +// +// MessageText: +// +// End of hits has been reached. +// +#define SEARCH_S_NOMOREHITS ((HRESULT)0x000416A0L) + +// +// MessageId: SEARCH_E_NOMONIKER +// +// MessageText: +// +// Retrival of hits as monikers is not supported (by filter passed into Init). +// +#define SEARCH_E_NOMONIKER ((HRESULT)0x800416A1L) + +// +// MessageId: SEARCH_E_NOREGION +// +// MessageText: +// +// Retrival of hits as filter regions is not supported (by filter passed into Init). +// +#define SEARCH_E_NOREGION ((HRESULT)0x800416A2L) + +// +// Filter error codes +// +// +// MessageId: FILTER_E_TOO_BIG +// +// MessageText: +// +// File is too large to filter. +// +#define FILTER_E_TOO_BIG ((HRESULT)0x80041730L) + +// +// MessageId: FILTER_S_PARTIAL_CONTENTSCAN_IMMEDIATE +// +// MessageText: +// +// A partial content scan of the disk needs to be scheduled for immediate execution. +// +#define FILTER_S_PARTIAL_CONTENTSCAN_IMMEDIATE ((HRESULT)0x00041731L) + +// +// MessageId: FILTER_S_FULL_CONTENTSCAN_IMMEDIATE +// +// MessageText: +// +// A full content scan of the disk needs to be scheduled for immediate execution. +// +#define FILTER_S_FULL_CONTENTSCAN_IMMEDIATE ((HRESULT)0x00041732L) + +// +// MessageId: FILTER_S_CONTENTSCAN_DELAYED +// +// MessageText: +// +// A content scan of the disk needs to be scheduled for execution later. +// +#define FILTER_S_CONTENTSCAN_DELAYED ((HRESULT)0x00041733L) + +// +// MessageId: FILTER_E_CONTENTINDEXCORRUPT +// +// MessageText: +// +// The content index is corrupt. A content scan will to be scheduled after chkdsk or autochk is run. +// +#define FILTER_E_CONTENTINDEXCORRUPT ((HRESULT)0xC0041734L) + +// +// MessageId: FILTER_S_DISK_FULL +// +// MessageText: +// +// The disk is getting full. +// +#define FILTER_S_DISK_FULL ((HRESULT)0x00041735L) + +// +// MessageId: FILTER_E_ALREADY_OPEN +// +// MessageText: +// +// A file is already open. Cannot open another one while a file is open. +// +#define FILTER_E_ALREADY_OPEN ((HRESULT)0x80041736L) + +// +// MessageId: FILTER_E_UNREACHABLE +// +// MessageText: +// +// The file is not reachable. +// +#define FILTER_E_UNREACHABLE ((HRESULT)0x80041737L) + +// +// MessageId: FILTER_E_IN_USE +// +// MessageText: +// +// The document is in use by another process. +// +#define FILTER_E_IN_USE ((HRESULT)0x80041738L) + +// +// MessageId: FILTER_E_NOT_OPEN +// +// MessageText: +// +// The document is not opened. +// +#define FILTER_E_NOT_OPEN ((HRESULT)0x80041739L) + +// +// MessageId: FILTER_S_NO_PROPSETS +// +// MessageText: +// +// The document has no property sets. +// +#define FILTER_S_NO_PROPSETS ((HRESULT)0x0004173AL) + +// +// MessageId: FILTER_E_NO_SUCH_PROPERTY +// +// MessageText: +// +// There is no property with the given GUID. +// +#define FILTER_E_NO_SUCH_PROPERTY ((HRESULT)0x8004173BL) + +// +// MessageId: FILTER_S_NO_SECURITY_DESCRIPTOR +// +// MessageText: +// +// The document has no security descriptor. +// +#define FILTER_S_NO_SECURITY_DESCRIPTOR ((HRESULT)0x0004173CL) + +// +// MessageId: FILTER_E_OFFLINE +// +// MessageText: +// +// The document is offline. +// +#define FILTER_E_OFFLINE ((HRESULT)0x8004173DL) + +// +// MessageId: FILTER_E_PARTIALLY_FILTERED +// +// MessageText: +// +// The document was too large to filter in its entirety. Portions of the document were not emitted. +// +#define FILTER_E_PARTIALLY_FILTERED ((HRESULT)0x8004173EL) + +// +// Word breaker error codes +// +// +// MessageId: WBREAK_E_END_OF_TEXT +// +// MessageText: +// +// End of text reached in text source. +// +#define WBREAK_E_END_OF_TEXT ((HRESULT)0x80041780L) + +// +// MessageId: LANGUAGE_S_LARGE_WORD +// +// MessageText: +// +// Word larger than maximum length. May be truncated by word sink. +// +#define LANGUAGE_S_LARGE_WORD ((HRESULT)0x00041781L) + +// +// MessageId: WBREAK_E_QUERY_ONLY +// +// MessageText: +// +// Feature only available in query mode. +// +#define WBREAK_E_QUERY_ONLY ((HRESULT)0x80041782L) + +// +// MessageId: WBREAK_E_BUFFER_TOO_SMALL +// +// MessageText: +// +// Buffer too small to hold composed phrase. +// +#define WBREAK_E_BUFFER_TOO_SMALL ((HRESULT)0x80041783L) + +// +// MessageId: LANGUAGE_E_DATABASE_NOT_FOUND +// +// MessageText: +// +// Langauge database/cache file could not be found. +// +#define LANGUAGE_E_DATABASE_NOT_FOUND ((HRESULT)0x80041784L) + +// +// MessageId: WBREAK_E_INIT_FAILED +// +// MessageText: +// +// Initialization of word breaker failed. +// +#define WBREAK_E_INIT_FAILED ((HRESULT)0x80041785L) + +// +// MessageId: PSINK_E_QUERY_ONLY +// +// MessageText: +// +// Feature only available in query mode. +// +#define PSINK_E_QUERY_ONLY ((HRESULT)0x80041790L) + +// +// MessageId: PSINK_E_INDEX_ONLY +// +// MessageText: +// +// Feature only available in index mode. +// +#define PSINK_E_INDEX_ONLY ((HRESULT)0x80041791L) + +// +// MessageId: PSINK_E_LARGE_ATTACHMENT +// +// MessageText: +// +// Attachment type beyond valid range. +// +#define PSINK_E_LARGE_ATTACHMENT ((HRESULT)0x80041792L) + +// +// MessageId: PSINK_S_LARGE_WORD +// +// MessageText: +// +// Word larger than maximum length. May be truncated by phrase sink. +// +#define PSINK_S_LARGE_WORD ((HRESULT)0x00041793L) + +// +// Content Index Framework Error Codes +// +// +// MessageId: CI_CORRUPT_DATABASE +// +// MessageText: +// +// The content index is corrupt. +// +#define CI_CORRUPT_DATABASE ((HRESULT)0xC0041800L) + +// +// MessageId: CI_CORRUPT_CATALOG +// +// MessageText: +// +// The content index meta data is corrupt. +// +#define CI_CORRUPT_CATALOG ((HRESULT)0xC0041801L) + +// +// MessageId: CI_INVALID_PARTITION +// +// MessageText: +// +// The content index partition is invalid. +// +#define CI_INVALID_PARTITION ((HRESULT)0xC0041802L) + +// +// MessageId: CI_INVALID_PRIORITY +// +// MessageText: +// +// The priority is invalid. +// +#define CI_INVALID_PRIORITY ((HRESULT)0xC0041803L) + +// +// MessageId: CI_NO_STARTING_KEY +// +// MessageText: +// +// There is no starting key. +// +#define CI_NO_STARTING_KEY ((HRESULT)0xC0041804L) + +// +// MessageId: CI_OUT_OF_INDEX_IDS +// +// MessageText: +// +// The content index is out of index ids. +// +#define CI_OUT_OF_INDEX_IDS ((HRESULT)0xC0041805L) + +// +// MessageId: CI_NO_CATALOG +// +// MessageText: +// +// There is no catalog. +// +#define CI_NO_CATALOG ((HRESULT)0xC0041806L) + +// +// MessageId: CI_CORRUPT_FILTER_BUFFER +// +// MessageText: +// +// The filter buffer is corrupt. +// +#define CI_CORRUPT_FILTER_BUFFER ((HRESULT)0xC0041807L) + +// +// MessageId: CI_INVALID_INDEX +// +// MessageText: +// +// The index is invalid. +// +#define CI_INVALID_INDEX ((HRESULT)0xC0041808L) + +// +// MessageId: CI_PROPSTORE_INCONSISTENCY +// +// MessageText: +// +// Inconsistency in property store detected. +// +#define CI_PROPSTORE_INCONSISTENCY ((HRESULT)0xC0041809L) + +// +// MessageId: CI_E_ALREADY_INITIALIZED +// +// MessageText: +// +// The object is already initialzed. +// +#define CI_E_ALREADY_INITIALIZED ((HRESULT)0x8004180AL) + +// +// MessageId: CI_E_NOT_INITIALIZED +// +// MessageText: +// +// The object is not initialzed. +// +#define CI_E_NOT_INITIALIZED ((HRESULT)0x8004180BL) + +// +// MessageId: CI_E_BUFFERTOOSMALL +// +// MessageText: +// +// The buffer is too small. +// +#define CI_E_BUFFERTOOSMALL ((HRESULT)0x8004180CL) + +// +// MessageId: CI_E_PROPERTY_NOT_CACHED +// +// MessageText: +// +// The given property is not cached. +// +#define CI_E_PROPERTY_NOT_CACHED ((HRESULT)0x8004180DL) + +// +// MessageId: CI_S_WORKID_DELETED +// +// MessageText: +// +// The workid is deleted. +// +#define CI_S_WORKID_DELETED ((HRESULT)0x0004180EL) + +// +// MessageId: CI_E_INVALID_STATE +// +// MessageText: +// +// The object is not in a valid state. +// +#define CI_E_INVALID_STATE ((HRESULT)0x8004180FL) + +// +// MessageId: CI_E_FILTERING_DISABLED +// +// MessageText: +// +// Filtering is disabled in this content index. +// +#define CI_E_FILTERING_DISABLED ((HRESULT)0x80041810L) + +// +// MessageId: CI_E_DISK_FULL +// +// MessageText: +// +// The disk is full and the specified operation cannot be done. +// +#define CI_E_DISK_FULL ((HRESULT)0x80041811L) + +// +// MessageId: CI_E_SHUTDOWN +// +// MessageText: +// +// Content Index has been shutdown. +// +#define CI_E_SHUTDOWN ((HRESULT)0x80041812L) + +// +// MessageId: CI_E_WORKID_NOTVALID +// +// MessageText: +// +// The workid is not valid. +// +#define CI_E_WORKID_NOTVALID ((HRESULT)0x80041813L) + +// +// MessageId: CI_S_END_OF_ENUMERATION +// +// MessageText: +// +// There are no more documents to enumerate. +// +#define CI_S_END_OF_ENUMERATION ((HRESULT)0x00041814L) + +// +// MessageId: CI_E_NOT_FOUND +// +// MessageText: +// +// The object was not found. +// +#define CI_E_NOT_FOUND ((HRESULT)0x80041815L) + +// +// MessageId: CI_E_USE_DEFAULT_PID +// +// MessageText: +// +// The passed-in property id is not supported. +// +#define CI_E_USE_DEFAULT_PID ((HRESULT)0x80041816L) + +// +// MessageId: CI_E_DUPLICATE_NOTIFICATION +// +// MessageText: +// +// There were two notifications for the same workid. +// +#define CI_E_DUPLICATE_NOTIFICATION ((HRESULT)0x80041817L) + +// +// MessageId: CI_E_UPDATES_DISABLED +// +// MessageText: +// +// A document update was rejected because updates were disabled. +// +#define CI_E_UPDATES_DISABLED ((HRESULT)0x80041818L) + +// +// MessageId: CI_E_INVALID_FLAGS_COMBINATION +// +// MessageText: +// +// The combination of flags specified is invalid. +// +#define CI_E_INVALID_FLAGS_COMBINATION ((HRESULT)0x80041819L) + +// +// MessageId: CI_E_OUTOFSEQ_INCREMENT_DATA +// +// MessageText: +// +// The incremental data given to Load is not valid. It may be out of sequence. +// +#define CI_E_OUTOFSEQ_INCREMENT_DATA ((HRESULT)0x8004181AL) + +// +// MessageId: CI_E_SHARING_VIOLATION +// +// MessageText: +// +// A sharing or locking violation caused a failure. +// +#define CI_E_SHARING_VIOLATION ((HRESULT)0x8004181BL) + +// +// MessageId: CI_E_LOGON_FAILURE +// +// MessageText: +// +// A logon permission violation caused a failure. +// +#define CI_E_LOGON_FAILURE ((HRESULT)0x8004181CL) + +// +// MessageId: CI_E_NO_CATALOG +// +// MessageText: +// +// There is no catalog. +// +#define CI_E_NO_CATALOG ((HRESULT)0x8004181DL) + +// +// MessageId: CI_E_STRANGE_PAGEORSECTOR_SIZE +// +// MessageText: +// +// Page size is not an integral multiple of the sector size of the volume where index is located. +// +#define CI_E_STRANGE_PAGEORSECTOR_SIZE ((HRESULT)0x8004181EL) + +// +// MessageId: CI_E_TIMEOUT +// +// MessageText: +// +// Service is too busy. +// +#define CI_E_TIMEOUT ((HRESULT)0x8004181FL) + +// +// MessageId: CI_E_NOT_RUNNING +// +// MessageText: +// +// Service is not running. +// +#define CI_E_NOT_RUNNING ((HRESULT)0x80041820L) + +// +// MessageId: CI_INCORRECT_VERSION +// +// MessageText: +// +// The content index data on disk is for the wrong version. +// +#define CI_INCORRECT_VERSION ((HRESULT)0xC0041821L) + +// +// MessageId: CI_E_ENUMERATION_STARTED +// +// MessageText: +// +// Enumeration has already been started for this query. +// +#define CI_E_ENUMERATION_STARTED ((HRESULT)0xC0041822L) + +// +// MessageId: CI_E_PROPERTY_TOOLARGE +// +// MessageText: +// +// The specified variable length property is too large for the property cache. +// +#define CI_E_PROPERTY_TOOLARGE ((HRESULT)0xC0041823L) + +// +// MessageId: CI_E_CLIENT_FILTER_ABORT +// +// MessageText: +// +// Filtering of object was aborted by client. +// +#define CI_E_CLIENT_FILTER_ABORT ((HRESULT)0xC0041824L) + +// +// MessageId: CI_S_NO_DOCSTORE +// +// MessageText: +// +// For administrative connections from client without association to a docstore. +// +#define CI_S_NO_DOCSTORE ((HRESULT)0x00041825L) + +// +// MessageId: CI_S_CAT_STOPPED +// +// MessageText: +// +// The catalog has been stopped. +// +#define CI_S_CAT_STOPPED ((HRESULT)0x00041826L) + +// +// MessageId: CI_E_CARDINALITY_MISMATCH +// +// MessageText: +// +// Mismatch in cardinality of machine(s)/catalog(s)/scope(s). +// +#define CI_E_CARDINALITY_MISMATCH ((HRESULT)0x80041827L) + +// +// MessageId: CI_E_CONFIG_DISK_FULL +// +// MessageText: +// +// The disk has reached its configured space limit. +// +#define CI_E_CONFIG_DISK_FULL ((HRESULT)0x80041828L) + +// +// MessageId: CI_E_DISTRIBUTED_GROUPBY_UNSUPPORTED +// +// MessageText: +// +// Groupby clause is not supported on a distributed query. +// +#define CI_E_DISTRIBUTED_GROUPBY_UNSUPPORTED ((HRESULT)0x80041829L) + +#endif // _CIERROR_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CimFs.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CimFs.h new file mode 100644 index 0000000000000000000000000000000000000000..f271af4b70dfb453fe12743a9ab3c82a7f936126 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CimFs.h @@ -0,0 +1,227 @@ +/* +Copyright (c) Microsoft Corporation + + API to construct and mount Composite Images (CIMs) +*/ + +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +DECLARE_HANDLE(CIMFS_IMAGE_HANDLE); + +DECLARE_HANDLE(CIMFS_STREAM_HANDLE); + +typedef enum CIM_CREATE_IMAGE_FLAGS +{ + CIM_CREATE_IMAGE_NONE = 0x00000000, + CIM_CREATE_DO_NOT_EXPAND_PE_IMAGES = 0x00000001, + CIM_CREATE_FIXED_SIZE_CHUNKS = 0x00000002, + CIM_CREATE_IMAGE_BLOCK_CIM = 0x00000004, +} CIM_CREATE_IMAGE_FLAGS; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(CIM_CREATE_IMAGE_FLAGS); +#endif + +typedef enum CIM_MOUNT_IMAGE_FLAGS +{ + CIM_MOUNT_IMAGE_NONE = 0x00000000, + CIM_MOUNT_CHILD_ONLY = 0x00000001, + CIM_MOUNT_ENABLE_DAX = 0x00000002, + CIM_MOUNT_CACHE_FILES = 0x00000004, + CIM_MOUNT_CACHE_REGIONS = 0x00000008, + CIM_MOUNT_BLOCK_CIM = 0x00000010, +} CIM_MOUNT_IMAGE_FLAGS; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(CIM_MOUNT_IMAGE_FLAGS); +#endif + +typedef struct _CIMFS_FILE_METADATA +{ + UINT32 Attributes; + INT64 FileSize; + + LARGE_INTEGER CreationTime; + LARGE_INTEGER LastWriteTime; + LARGE_INTEGER ChangeTime; + LARGE_INTEGER LastAccessTime; + + _Field_size_bytes_(SecurityDescriptorSize) const void* SecurityDescriptorBuffer; + UINT32 SecurityDescriptorSize; + + _Field_size_bytes_(ReparseDataSize) const void* ReparseDataBuffer; + UINT32 ReparseDataSize; + + _Field_size_bytes_(EaBufferSize) const void* EaBuffer; + UINT32 EaBufferSize; + +} CIMFS_FILE_METADATA; + +// +// Creates a handle representing a new image at the location +// specified, optionally based on an existing image at that +// location. +// + +STDAPI +CimCreateImage(_In_ PCWSTR imageContainingPath, + _In_opt_ PCWSTR existingImageName, + _In_opt_ PCWSTR newImageName, + _Out_ CIMFS_IMAGE_HANDLE* cimImageHandle); + +// +// Creates a handle representing a new image at the location +// specified, optionally based on an existing image at that +// location. Also take in a flags parameter. +// + +STDAPI +CimCreateImage2(_In_ PCWSTR imageContainingPath, + _In_ CIM_CREATE_IMAGE_FLAGS createImageFlags, + _In_opt_ PCWSTR existingImageName, + _In_opt_ PCWSTR newImageName, + _Out_ CIMFS_IMAGE_HANDLE* cimImageHandle); + +// +// Adds a file with the specified metadata at a path relative +// to the image represented by the image handle. +// Returns a stream handle to the file primary data stream +// which can be used to write data to the stream. +// + +STDAPI +CimCreateFile(_In_ CIMFS_IMAGE_HANDLE cimImageHandle, + _In_ PCWSTR imageRelativePath, + _In_ const CIMFS_FILE_METADATA* fileMetadata, + _Out_ CIMFS_STREAM_HANDLE* cimStreamHandle); + +// +// Adds an alternate stream with the specified size at a path +// relative to the image represented by the image handle. +// Returns a handle to the stream which can be used to write +// data to the stream. +// + +STDAPI +CimCreateAlternateStream(_In_ CIMFS_IMAGE_HANDLE cimImageHandle, + _In_ PCWSTR imageRelativePath, + _In_ UINT64 streamSize, + _Out_ CIMFS_STREAM_HANDLE* cimStreamHandle); + +// +// Adds a hardlink to an existing path relative to the image +// represented by the image handle. +// + +STDAPI +CimCreateHardLink(_In_ CIMFS_IMAGE_HANDLE cimImageHandle, + _In_ PCWSTR imageRelativePath, + _In_ PCWSTR existingImageRelativePath); + +// +// Writes data from the specified buffer to the stream represented +// by the stream handle. +// + +STDAPI +CimWriteStream(_In_ CIMFS_STREAM_HANDLE cimStreamHandle, + _In_reads_bytes_(bufferSize) const void* buffer, + _In_ UINT32 bufferSize); + +// +// Frees resources associated with the stream handle. +// + +STDAPI_(void) +CimCloseStream(_In_ CIMFS_STREAM_HANDLE cimStreamHandle); + +// +// Removes the file, stream, directory or hardlink at a path +// relative to the image represented by the image handle. +// + +STDAPI +CimDeletePath(_In_ CIMFS_IMAGE_HANDLE cimImageHandle, + _In_ PCWSTR imageRelativePath); + +// +// Commits the image represented by the image handle. The handle +// becomes invalid for further operations on the image. +// + +STDAPI +CimCommitImage(_In_ CIMFS_IMAGE_HANDLE cimImageHandle); + +// +// Frees resources associated with the image handle. +// + +STDAPI_(void) +CimCloseImage(_In_ CIMFS_IMAGE_HANDLE cimImageHandle); + +// +// Mounts the named image from the location specified by cimPath +// as a volume with the volume GUID specified by volumeId. +// + +STDAPI +CimMountImage(_In_ PCWSTR imageContainingPath, + _In_ PCWSTR imageName, + _In_ CIM_MOUNT_IMAGE_FLAGS mountImageFlags, + _In_ const GUID* volumeId); + +// +// Dismounts an image mounted with volumeId as the volume GUID. +// + +STDAPI +CimDismountImage(_In_ const GUID* volumeId); + +#if (NTDDI_VERSION >= NTDDI_WIN11_GA) + +// +// Reads a file from the CIM at a given offset. Returns the read bytes in +// in the buffer provided, the number of bytes read, and the number of bytes +// remaining in the file. +// +STDAPI +CimReadFile(_In_ PCWSTR imagePath, + _In_ PCWSTR filePath, + _In_ UINT64 offset, + _Out_ void* buffer, + _In_ UINT64 bufferSize, + _Out_ UINT64* bytesRead, + _Out_ UINT64* bytesRemaining); +// +// Queries the file stat info for a file from the CIM. +// Returns the FILE_STAT_BASIC_INFORMATION +// +STDAPI +CimGetFileStatBasicInformation(_In_ PCWSTR imagePath, + _In_ PCWSTR filePath, + _Out_ FILE_STAT_BASIC_INFORMATION* statInfo); + +// +// This API takes a path that contains a block format cim, the cim name +// and a path to a new location where it converts the block format cim +// to a file format cim. +// +STDAPI +CimConvertBlockImage(_In_ PCWSTR imageContainingPath, + _In_ PCWSTR existingImageName, + _In_ PCWSTR newImageContainingPath); + +#endif // (NTDDI_VERSION >= NTDDI_WIN11_GA) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ + +#ifdef __cplusplus +} +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CluAdmEx.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CluAdmEx.Idl new file mode 100644 index 0000000000000000000000000000000000000000..769ca49f98e0a8c324f0165ade312eea1705224d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CluAdmEx.Idl @@ -0,0 +1,520 @@ +///////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 1996-1997 Microsoft Corporation +// +// Module Name: +// CluAdmEx.idl +// +// Abstract: +// Definition of COM interfaces for Cluster Administrator extensions. +// +// Author: +// davidp August 22, 1996 +// +// Revision History: +// davidp June 23, 1998 +// Added IWCWizard97Callback and IWEExtendWizard97. +// +// Notes: +// The following interfaces defined below are used to get information +// about the object(s) for which a property page, wizard, or context +// menu is being displayed. These interfaces may be queried for by +// the extension using the piData IUnknown interface pointer. +// +// IGetClusterPropSheetInfo +// IGetClusterDataInfo +// IGetClusterObjectInfo +// IGetClusterNodeInfo +// IGetClusterGroupInfo +// IGetClusterResourceInfo +// IGetClusterNetworkInfo +// IGetClusterNetInterfaceInfo +// +// The following interfaces defined below are implemented by extensions +// are are used to extend property sheets, wizards, and context menus. +// +// IWEExtendPropertySheet +// IWEExtendWizard +// IWEExtendWizard97 +// IWEExtendContextMenu +// IWEInvokeCommand +// +// The following interfaces defined below are implemented by CluAdmin +// and are passed to the extension to allow it to add its extension +// property pages, wizard pages, or context menu items. +// +// IWCPropertySheetCallback +// IWCWizardCallback +// IWCWizard97Callback +// IWCContextMenuCallback +// +///////////////////////////////////////////////////////////////////////////// + +#ifndef _CLUADMEX_IDL_ +#define _CLUADMEX_IDL_ + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + import "oaidl.idl"; + import "clusapi.h"; + +// Define HPROPSHEETPAGE because we can't include prsht.h. +#define HPROPSHEETPAGE LONG * + +///////////////////////////////////////////////////////////////////////////// +// Cluster Administrator Extensions type definitions +///////////////////////////////////////////////////////////////////////////// + + ///////////////////////////////////////////////////////////////////////// + // + // CLUADMEX_OBJECT_TYPE + // + // Enumeration of the types of objects that can be administered. + // + ///////////////////////////////////////////////////////////////////////// + + typedef enum _CLUADMEX_OBJECT_TYPE + { + CLUADMEX_OT_NONE = 0, + CLUADMEX_OT_CLUSTER, + CLUADMEX_OT_NODE, + CLUADMEX_OT_GROUP, + CLUADMEX_OT_RESOURCE, + CLUADMEX_OT_RESOURCETYPE, + CLUADMEX_OT_NETWORK, + CLUADMEX_OT_NETINTERFACE + + } CLUADMEX_OBJECT_TYPE; + +///////////////////////////////////////////////////////////////////////////// +// Cluster Administrator Extensions data interface definitions +///////////////////////////////////////////////////////////////////////////// + + ///////////////////////////////////////////////////////////////////////// + // + // IGetClusterUIInfo + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE50-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IGetClusterUIInfo Interface"), + pointer_default(unique) + ] + interface IGetClusterUIInfo : IUnknown + { + import "oaidl.idl"; + + [local] HRESULT GetClusterName( + [out] BSTR lpszName, + [in, out] LONG * pcchName + ); + [local] LCID GetLocale(void); + [local] HFONT GetFont(void); + [local] HICON GetIcon(void); + + }; //*** interface IGetClusterUIInfo + + ///////////////////////////////////////////////////////////////////////// + // + // IGetClusterDataInfo + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE51-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IGetClusterDataInfo Interface"), + pointer_default(unique) + ] + interface IGetClusterDataInfo : IUnknown + { + import "oaidl.idl"; + + [local] HRESULT GetClusterName( + [out] BSTR lpszName, + [in, out] LONG * pcchName + ); + [local] HCLUSTER GetClusterHandle(void); + [local] LONG GetObjectCount(void); + + }; //*** interface IGetClusterDataInfo + + ///////////////////////////////////////////////////////////////////////// + // + // IGetClusterObjectInfo + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE52-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IGetClusterObjectInfo Interface"), + pointer_default(unique) + ] + interface IGetClusterObjectInfo : IUnknown + { + import "oaidl.idl"; + + [local] HRESULT GetObjectName( + [in] LONG lObjIndex, + [out] BSTR lpszName, + [in, out] LONG * pcchName + ); + [local] CLUADMEX_OBJECT_TYPE GetObjectType( + [in] LONG lObjIndex + ); + + }; //*** interface IGetClusterObjectInfo + + ///////////////////////////////////////////////////////////////////////// + // + // IGetClusterNodeInfo + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE53-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IGetClusterNodeInfo Interface"), + pointer_default(unique) + ] + interface IGetClusterNodeInfo : IUnknown + { + import "oaidl.idl"; + + [local] HNODE GetNodeHandle( + [in] LONG lObjIndex + ); + + }; //*** interface IGetClusterObjectInfo + + ///////////////////////////////////////////////////////////////////////// + // + // IGetClusterGroupInfo + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE54-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IGetClusterGroupInfo Interface"), + pointer_default(unique) + ] + interface IGetClusterGroupInfo : IUnknown + { + import "oaidl.idl"; + + [local] HGROUP GetGroupHandle( + [in] LONG lObjIndex + ); + + }; //*** interface IGetClusterGroupInfo + + ///////////////////////////////////////////////////////////////////////// + // + // IGetClusterResourceInfo + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE55-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IGetClusterResourceInfo Interface"), + pointer_default(unique) + ] + interface IGetClusterResourceInfo : IUnknown + { + import "oaidl.idl"; + + [local] HRESOURCE GetResourceHandle( + [in] LONG lObjIndex + ); + [local] HRESULT GetResourceTypeName( + [in] LONG lObjIndex, + [out] BSTR lpszResTypeName, + [in, out] LONG * pcchResTypeName + ); + [local] BOOL GetResourceNetworkName( + [in] LONG lObjIndex, + [out] BSTR lpszNetName, + [in, out] ULONG * pcchNetName + ); + + }; //*** interface IGetClusterResourceInfo + + ///////////////////////////////////////////////////////////////////////// + // + // IGetClusterNetworkInfo + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE56-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IGetClusterNetworkInfo Interface"), + pointer_default(unique) + ] + interface IGetClusterNetworkInfo : IUnknown + { + import "oaidl.idl"; + + [local] HNETWORK GetNetworkHandle( + [in] LONG lObjIndex + ); + + }; //*** interface IGetClusterNetworkInfo + + ///////////////////////////////////////////////////////////////////////// + // + // IGetClusterNetInterfaceInfo + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE57-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IGetClusterNetInterfaceInfo Interface"), + pointer_default(unique) + ] + interface IGetClusterNetInterfaceInfo : IUnknown + { + import "oaidl.idl"; + + [local] HNETINTERFACE GetNetInterfaceHandle( + [in] LONG lObjIndex + ); + + }; //*** interface IGetClusterNetInterfaceInfo + +///////////////////////////////////////////////////////////////////////////// +// Cluster Administrator Extensions interface definitions +///////////////////////////////////////////////////////////////////////////// + + ///////////////////////////////////////////////////////////////////////// + // + // IWCPropertySheetCallback + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE60-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IWCPropertySheetCallback Interface"), + pointer_default(unique) + ] + interface IWCPropertySheetCallback : IUnknown + { + import "oaidl.idl"; + + HRESULT AddPropertySheetPage( + [in] HPROPSHEETPAGE hpage + ); + + }; //*** interface IWCPropertySheetCallback + + ///////////////////////////////////////////////////////////////////////// + // + // IWEExtendPropertySheet + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE61-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IWSExtendPropertySheet Interface"), + pointer_default(unique) + ] + interface IWEExtendPropertySheet : IUnknown + { + import "oaidl.idl"; + + HRESULT CreatePropertySheetPages( + [in] IUnknown * piData, + [in] IWCPropertySheetCallback * piCallback + ); + + }; //*** interface IWEExtendPropertySheet + + ///////////////////////////////////////////////////////////////////////// + // + // IWCWizardCallback + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE62-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IWCWizardCallback Interface"), + pointer_default(unique) + ] + interface IWCWizardCallback : IUnknown + { + import "oaidl.idl"; + + HRESULT AddWizardPage( + [in] HPROPSHEETPAGE hpage + ); + HRESULT EnableNext( + [in] HPROPSHEETPAGE hpage, + [in] BOOL bEnable + ); + + }; //*** interface IWCWizardCallback + + ///////////////////////////////////////////////////////////////////////// + // + // IWEExtendWizard + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE63-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IWEExtendWizard Interface"), + pointer_default(unique) + ] + interface IWEExtendWizard : IUnknown + { + import "oaidl.idl"; + + HRESULT CreateWizardPages( + [in] IUnknown * piData, + [in] IWCWizardCallback * piCallback + ); + + }; //*** interface IWEExtendWizard + + ///////////////////////////////////////////////////////////////////////// + // + // IWCContextMenuCallback + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE64-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IWCContextMenuCallback Interface"), + pointer_default(unique) + ] + interface IWCContextMenuCallback : IUnknown + { + import "oaidl.idl"; + + HRESULT AddExtensionMenuItem( + [in] BSTR lpszName, + [in] BSTR lpszStatusBarText, + [in] ULONG nCommandID, + [in] ULONG nSubmenuCommandID, + [in] ULONG uFlags + ); + + }; //*** interface IWCContextMenuCallback + + ///////////////////////////////////////////////////////////////////////// + // + // IWEExtendContextMenu + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE65-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IWEExtendContextMenu Interface"), + pointer_default(unique) + ] + interface IWEExtendContextMenu : IUnknown + { + import "oaidl.idl"; + + HRESULT AddContextMenuItems( + [in] IUnknown * piData, + [in] IWCContextMenuCallback * piCallback + ); + + }; //*** interface IWEExtendContextMenu + + ///////////////////////////////////////////////////////////////////////// + // + // IWEInvokeCommand + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE66-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IWEInvokeCommand Interface"), + pointer_default(unique) + ] + interface IWEInvokeCommand : IUnknown + { + import "oaidl.idl"; + + HRESULT InvokeCommand( + [in] ULONG nCommandID, + [in] IUnknown * piData + ); + + }; //*** interface IWEInvokeCommand + + ///////////////////////////////////////////////////////////////////////// + // + // IWCWizard97Callback + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE67-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IWCWizard97Callback Interface"), + pointer_default(unique) + ] + interface IWCWizard97Callback : IUnknown + { + import "oaidl.idl"; + + HRESULT AddWizard97Page( + [in] HPROPSHEETPAGE hpage + ); + HRESULT EnableNext( + [in] HPROPSHEETPAGE hpage, + [in] BOOL bEnable + ); + + }; //*** interface IWCWizard97Callback + + ///////////////////////////////////////////////////////////////////////// + // + // IWEExtendWizard97 + // + ///////////////////////////////////////////////////////////////////////// + + [ + object, + uuid(97DEDE68-FC6B-11CF-B5F5-00A0C90AB505), + helpstring("IWEExtendWizard97 Interface"), + pointer_default(unique) + ] + interface IWEExtendWizard97 : IUnknown + { + import "oaidl.idl"; + + HRESULT CreateWizard97Pages( + [in] IUnknown * piData, + [in] IWCWizard97Callback * piCallback + ); + + }; //*** interface IWEExtendWizard97 + +///////////////////////////////////////////////////////////////////////////// + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#endif // _CLUADMEX_IDL_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CluAdmEx.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CluAdmEx.h new file mode 100644 index 0000000000000000000000000000000000000000..12338a2099fe33ad5dcb8785c39405b41e16a6af --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CluAdmEx.h @@ -0,0 +1,1798 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __cluadmex_h__ +#define __cluadmex_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IGetClusterUIInfo_FWD_DEFINED__ +#define __IGetClusterUIInfo_FWD_DEFINED__ +typedef interface IGetClusterUIInfo IGetClusterUIInfo; + +#endif /* __IGetClusterUIInfo_FWD_DEFINED__ */ + + +#ifndef __IGetClusterDataInfo_FWD_DEFINED__ +#define __IGetClusterDataInfo_FWD_DEFINED__ +typedef interface IGetClusterDataInfo IGetClusterDataInfo; + +#endif /* __IGetClusterDataInfo_FWD_DEFINED__ */ + + +#ifndef __IGetClusterObjectInfo_FWD_DEFINED__ +#define __IGetClusterObjectInfo_FWD_DEFINED__ +typedef interface IGetClusterObjectInfo IGetClusterObjectInfo; + +#endif /* __IGetClusterObjectInfo_FWD_DEFINED__ */ + + +#ifndef __IGetClusterNodeInfo_FWD_DEFINED__ +#define __IGetClusterNodeInfo_FWD_DEFINED__ +typedef interface IGetClusterNodeInfo IGetClusterNodeInfo; + +#endif /* __IGetClusterNodeInfo_FWD_DEFINED__ */ + + +#ifndef __IGetClusterGroupInfo_FWD_DEFINED__ +#define __IGetClusterGroupInfo_FWD_DEFINED__ +typedef interface IGetClusterGroupInfo IGetClusterGroupInfo; + +#endif /* __IGetClusterGroupInfo_FWD_DEFINED__ */ + + +#ifndef __IGetClusterResourceInfo_FWD_DEFINED__ +#define __IGetClusterResourceInfo_FWD_DEFINED__ +typedef interface IGetClusterResourceInfo IGetClusterResourceInfo; + +#endif /* __IGetClusterResourceInfo_FWD_DEFINED__ */ + + +#ifndef __IGetClusterNetworkInfo_FWD_DEFINED__ +#define __IGetClusterNetworkInfo_FWD_DEFINED__ +typedef interface IGetClusterNetworkInfo IGetClusterNetworkInfo; + +#endif /* __IGetClusterNetworkInfo_FWD_DEFINED__ */ + + +#ifndef __IGetClusterNetInterfaceInfo_FWD_DEFINED__ +#define __IGetClusterNetInterfaceInfo_FWD_DEFINED__ +typedef interface IGetClusterNetInterfaceInfo IGetClusterNetInterfaceInfo; + +#endif /* __IGetClusterNetInterfaceInfo_FWD_DEFINED__ */ + + +#ifndef __IWCPropertySheetCallback_FWD_DEFINED__ +#define __IWCPropertySheetCallback_FWD_DEFINED__ +typedef interface IWCPropertySheetCallback IWCPropertySheetCallback; + +#endif /* __IWCPropertySheetCallback_FWD_DEFINED__ */ + + +#ifndef __IWEExtendPropertySheet_FWD_DEFINED__ +#define __IWEExtendPropertySheet_FWD_DEFINED__ +typedef interface IWEExtendPropertySheet IWEExtendPropertySheet; + +#endif /* __IWEExtendPropertySheet_FWD_DEFINED__ */ + + +#ifndef __IWCWizardCallback_FWD_DEFINED__ +#define __IWCWizardCallback_FWD_DEFINED__ +typedef interface IWCWizardCallback IWCWizardCallback; + +#endif /* __IWCWizardCallback_FWD_DEFINED__ */ + + +#ifndef __IWEExtendWizard_FWD_DEFINED__ +#define __IWEExtendWizard_FWD_DEFINED__ +typedef interface IWEExtendWizard IWEExtendWizard; + +#endif /* __IWEExtendWizard_FWD_DEFINED__ */ + + +#ifndef __IWCContextMenuCallback_FWD_DEFINED__ +#define __IWCContextMenuCallback_FWD_DEFINED__ +typedef interface IWCContextMenuCallback IWCContextMenuCallback; + +#endif /* __IWCContextMenuCallback_FWD_DEFINED__ */ + + +#ifndef __IWEExtendContextMenu_FWD_DEFINED__ +#define __IWEExtendContextMenu_FWD_DEFINED__ +typedef interface IWEExtendContextMenu IWEExtendContextMenu; + +#endif /* __IWEExtendContextMenu_FWD_DEFINED__ */ + + +#ifndef __IWEInvokeCommand_FWD_DEFINED__ +#define __IWEInvokeCommand_FWD_DEFINED__ +typedef interface IWEInvokeCommand IWEInvokeCommand; + +#endif /* __IWEInvokeCommand_FWD_DEFINED__ */ + + +#ifndef __IWCWizard97Callback_FWD_DEFINED__ +#define __IWCWizard97Callback_FWD_DEFINED__ +typedef interface IWCWizard97Callback IWCWizard97Callback; + +#endif /* __IWCWizard97Callback_FWD_DEFINED__ */ + + +#ifndef __IWEExtendWizard97_FWD_DEFINED__ +#define __IWEExtendWizard97_FWD_DEFINED__ +typedef interface IWEExtendWizard97 IWEExtendWizard97; + +#endif /* __IWEExtendWizard97_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "clusapi.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_cluadmex_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef +enum _CLUADMEX_OBJECT_TYPE + { + CLUADMEX_OT_NONE = 0, + CLUADMEX_OT_CLUSTER = ( CLUADMEX_OT_NONE + 1 ) , + CLUADMEX_OT_NODE = ( CLUADMEX_OT_CLUSTER + 1 ) , + CLUADMEX_OT_GROUP = ( CLUADMEX_OT_NODE + 1 ) , + CLUADMEX_OT_RESOURCE = ( CLUADMEX_OT_GROUP + 1 ) , + CLUADMEX_OT_RESOURCETYPE = ( CLUADMEX_OT_RESOURCE + 1 ) , + CLUADMEX_OT_NETWORK = ( CLUADMEX_OT_RESOURCETYPE + 1 ) , + CLUADMEX_OT_NETINTERFACE = ( CLUADMEX_OT_NETWORK + 1 ) + } CLUADMEX_OBJECT_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_cluadmex_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cluadmex_0000_0000_v0_0_s_ifspec; + +#ifndef __IGetClusterUIInfo_INTERFACE_DEFINED__ +#define __IGetClusterUIInfo_INTERFACE_DEFINED__ + +/* interface IGetClusterUIInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGetClusterUIInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE50-FC6B-11CF-B5F5-00A0C90AB505") + IGetClusterUIInfo : public IUnknown + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetClusterName( + /* [out] */ BSTR lpszName, + /* [out][in] */ LONG *pcchName) = 0; + + virtual /* [local] */ LCID STDMETHODCALLTYPE GetLocale( void) = 0; + + virtual /* [local] */ HFONT STDMETHODCALLTYPE GetFont( void) = 0; + + virtual /* [local] */ HICON STDMETHODCALLTYPE GetIcon( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetClusterUIInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetClusterUIInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetClusterUIInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetClusterUIInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterUIInfo, GetClusterName) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetClusterName )( + IGetClusterUIInfo * This, + /* [out] */ BSTR lpszName, + /* [out][in] */ LONG *pcchName); + + DECLSPEC_XFGVIRT(IGetClusterUIInfo, GetLocale) + /* [local] */ LCID ( STDMETHODCALLTYPE *GetLocale )( + IGetClusterUIInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterUIInfo, GetFont) + /* [local] */ HFONT ( STDMETHODCALLTYPE *GetFont )( + IGetClusterUIInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterUIInfo, GetIcon) + /* [local] */ HICON ( STDMETHODCALLTYPE *GetIcon )( + IGetClusterUIInfo * This); + + END_INTERFACE + } IGetClusterUIInfoVtbl; + + interface IGetClusterUIInfo + { + CONST_VTBL struct IGetClusterUIInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetClusterUIInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetClusterUIInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetClusterUIInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetClusterUIInfo_GetClusterName(This,lpszName,pcchName) \ + ( (This)->lpVtbl -> GetClusterName(This,lpszName,pcchName) ) + +#define IGetClusterUIInfo_GetLocale(This) \ + ( (This)->lpVtbl -> GetLocale(This) ) + +#define IGetClusterUIInfo_GetFont(This) \ + ( (This)->lpVtbl -> GetFont(This) ) + +#define IGetClusterUIInfo_GetIcon(This) \ + ( (This)->lpVtbl -> GetIcon(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetClusterUIInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IGetClusterDataInfo_INTERFACE_DEFINED__ +#define __IGetClusterDataInfo_INTERFACE_DEFINED__ + +/* interface IGetClusterDataInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGetClusterDataInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE51-FC6B-11CF-B5F5-00A0C90AB505") + IGetClusterDataInfo : public IUnknown + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetClusterName( + /* [out] */ BSTR lpszName, + /* [out][in] */ LONG *pcchName) = 0; + + virtual /* [local] */ HCLUSTER STDMETHODCALLTYPE GetClusterHandle( void) = 0; + + virtual /* [local] */ LONG STDMETHODCALLTYPE GetObjectCount( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetClusterDataInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetClusterDataInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetClusterDataInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetClusterDataInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterDataInfo, GetClusterName) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetClusterName )( + IGetClusterDataInfo * This, + /* [out] */ BSTR lpszName, + /* [out][in] */ LONG *pcchName); + + DECLSPEC_XFGVIRT(IGetClusterDataInfo, GetClusterHandle) + /* [local] */ HCLUSTER ( STDMETHODCALLTYPE *GetClusterHandle )( + IGetClusterDataInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterDataInfo, GetObjectCount) + /* [local] */ LONG ( STDMETHODCALLTYPE *GetObjectCount )( + IGetClusterDataInfo * This); + + END_INTERFACE + } IGetClusterDataInfoVtbl; + + interface IGetClusterDataInfo + { + CONST_VTBL struct IGetClusterDataInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetClusterDataInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetClusterDataInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetClusterDataInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetClusterDataInfo_GetClusterName(This,lpszName,pcchName) \ + ( (This)->lpVtbl -> GetClusterName(This,lpszName,pcchName) ) + +#define IGetClusterDataInfo_GetClusterHandle(This) \ + ( (This)->lpVtbl -> GetClusterHandle(This) ) + +#define IGetClusterDataInfo_GetObjectCount(This) \ + ( (This)->lpVtbl -> GetObjectCount(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetClusterDataInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IGetClusterObjectInfo_INTERFACE_DEFINED__ +#define __IGetClusterObjectInfo_INTERFACE_DEFINED__ + +/* interface IGetClusterObjectInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGetClusterObjectInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE52-FC6B-11CF-B5F5-00A0C90AB505") + IGetClusterObjectInfo : public IUnknown + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetObjectName( + /* [in] */ LONG lObjIndex, + /* [out] */ BSTR lpszName, + /* [out][in] */ LONG *pcchName) = 0; + + virtual /* [local] */ CLUADMEX_OBJECT_TYPE STDMETHODCALLTYPE GetObjectType( + /* [in] */ LONG lObjIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetClusterObjectInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetClusterObjectInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetClusterObjectInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetClusterObjectInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterObjectInfo, GetObjectName) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetObjectName )( + IGetClusterObjectInfo * This, + /* [in] */ LONG lObjIndex, + /* [out] */ BSTR lpszName, + /* [out][in] */ LONG *pcchName); + + DECLSPEC_XFGVIRT(IGetClusterObjectInfo, GetObjectType) + /* [local] */ CLUADMEX_OBJECT_TYPE ( STDMETHODCALLTYPE *GetObjectType )( + IGetClusterObjectInfo * This, + /* [in] */ LONG lObjIndex); + + END_INTERFACE + } IGetClusterObjectInfoVtbl; + + interface IGetClusterObjectInfo + { + CONST_VTBL struct IGetClusterObjectInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetClusterObjectInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetClusterObjectInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetClusterObjectInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetClusterObjectInfo_GetObjectName(This,lObjIndex,lpszName,pcchName) \ + ( (This)->lpVtbl -> GetObjectName(This,lObjIndex,lpszName,pcchName) ) + +#define IGetClusterObjectInfo_GetObjectType(This,lObjIndex) \ + ( (This)->lpVtbl -> GetObjectType(This,lObjIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetClusterObjectInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IGetClusterNodeInfo_INTERFACE_DEFINED__ +#define __IGetClusterNodeInfo_INTERFACE_DEFINED__ + +/* interface IGetClusterNodeInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGetClusterNodeInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE53-FC6B-11CF-B5F5-00A0C90AB505") + IGetClusterNodeInfo : public IUnknown + { + public: + virtual /* [local] */ HNODE STDMETHODCALLTYPE GetNodeHandle( + /* [in] */ LONG lObjIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetClusterNodeInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetClusterNodeInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetClusterNodeInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetClusterNodeInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterNodeInfo, GetNodeHandle) + /* [local] */ HNODE ( STDMETHODCALLTYPE *GetNodeHandle )( + IGetClusterNodeInfo * This, + /* [in] */ LONG lObjIndex); + + END_INTERFACE + } IGetClusterNodeInfoVtbl; + + interface IGetClusterNodeInfo + { + CONST_VTBL struct IGetClusterNodeInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetClusterNodeInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetClusterNodeInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetClusterNodeInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetClusterNodeInfo_GetNodeHandle(This,lObjIndex) \ + ( (This)->lpVtbl -> GetNodeHandle(This,lObjIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetClusterNodeInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IGetClusterGroupInfo_INTERFACE_DEFINED__ +#define __IGetClusterGroupInfo_INTERFACE_DEFINED__ + +/* interface IGetClusterGroupInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGetClusterGroupInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE54-FC6B-11CF-B5F5-00A0C90AB505") + IGetClusterGroupInfo : public IUnknown + { + public: + virtual /* [local] */ HGROUP STDMETHODCALLTYPE GetGroupHandle( + /* [in] */ LONG lObjIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetClusterGroupInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetClusterGroupInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetClusterGroupInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetClusterGroupInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterGroupInfo, GetGroupHandle) + /* [local] */ HGROUP ( STDMETHODCALLTYPE *GetGroupHandle )( + IGetClusterGroupInfo * This, + /* [in] */ LONG lObjIndex); + + END_INTERFACE + } IGetClusterGroupInfoVtbl; + + interface IGetClusterGroupInfo + { + CONST_VTBL struct IGetClusterGroupInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetClusterGroupInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetClusterGroupInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetClusterGroupInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetClusterGroupInfo_GetGroupHandle(This,lObjIndex) \ + ( (This)->lpVtbl -> GetGroupHandle(This,lObjIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetClusterGroupInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IGetClusterResourceInfo_INTERFACE_DEFINED__ +#define __IGetClusterResourceInfo_INTERFACE_DEFINED__ + +/* interface IGetClusterResourceInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGetClusterResourceInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE55-FC6B-11CF-B5F5-00A0C90AB505") + IGetClusterResourceInfo : public IUnknown + { + public: + virtual /* [local] */ HRESOURCE STDMETHODCALLTYPE GetResourceHandle( + /* [in] */ LONG lObjIndex) = 0; + + virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetResourceTypeName( + /* [in] */ LONG lObjIndex, + /* [out] */ BSTR lpszResTypeName, + /* [out][in] */ LONG *pcchResTypeName) = 0; + + virtual /* [local] */ BOOL STDMETHODCALLTYPE GetResourceNetworkName( + /* [in] */ LONG lObjIndex, + /* [out] */ BSTR lpszNetName, + /* [out][in] */ ULONG *pcchNetName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetClusterResourceInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetClusterResourceInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetClusterResourceInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetClusterResourceInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterResourceInfo, GetResourceHandle) + /* [local] */ HRESOURCE ( STDMETHODCALLTYPE *GetResourceHandle )( + IGetClusterResourceInfo * This, + /* [in] */ LONG lObjIndex); + + DECLSPEC_XFGVIRT(IGetClusterResourceInfo, GetResourceTypeName) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetResourceTypeName )( + IGetClusterResourceInfo * This, + /* [in] */ LONG lObjIndex, + /* [out] */ BSTR lpszResTypeName, + /* [out][in] */ LONG *pcchResTypeName); + + DECLSPEC_XFGVIRT(IGetClusterResourceInfo, GetResourceNetworkName) + /* [local] */ BOOL ( STDMETHODCALLTYPE *GetResourceNetworkName )( + IGetClusterResourceInfo * This, + /* [in] */ LONG lObjIndex, + /* [out] */ BSTR lpszNetName, + /* [out][in] */ ULONG *pcchNetName); + + END_INTERFACE + } IGetClusterResourceInfoVtbl; + + interface IGetClusterResourceInfo + { + CONST_VTBL struct IGetClusterResourceInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetClusterResourceInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetClusterResourceInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetClusterResourceInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetClusterResourceInfo_GetResourceHandle(This,lObjIndex) \ + ( (This)->lpVtbl -> GetResourceHandle(This,lObjIndex) ) + +#define IGetClusterResourceInfo_GetResourceTypeName(This,lObjIndex,lpszResTypeName,pcchResTypeName) \ + ( (This)->lpVtbl -> GetResourceTypeName(This,lObjIndex,lpszResTypeName,pcchResTypeName) ) + +#define IGetClusterResourceInfo_GetResourceNetworkName(This,lObjIndex,lpszNetName,pcchNetName) \ + ( (This)->lpVtbl -> GetResourceNetworkName(This,lObjIndex,lpszNetName,pcchNetName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetClusterResourceInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IGetClusterNetworkInfo_INTERFACE_DEFINED__ +#define __IGetClusterNetworkInfo_INTERFACE_DEFINED__ + +/* interface IGetClusterNetworkInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGetClusterNetworkInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE56-FC6B-11CF-B5F5-00A0C90AB505") + IGetClusterNetworkInfo : public IUnknown + { + public: + virtual /* [local] */ HNETWORK STDMETHODCALLTYPE GetNetworkHandle( + /* [in] */ LONG lObjIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetClusterNetworkInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetClusterNetworkInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetClusterNetworkInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetClusterNetworkInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterNetworkInfo, GetNetworkHandle) + /* [local] */ HNETWORK ( STDMETHODCALLTYPE *GetNetworkHandle )( + IGetClusterNetworkInfo * This, + /* [in] */ LONG lObjIndex); + + END_INTERFACE + } IGetClusterNetworkInfoVtbl; + + interface IGetClusterNetworkInfo + { + CONST_VTBL struct IGetClusterNetworkInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetClusterNetworkInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetClusterNetworkInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetClusterNetworkInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetClusterNetworkInfo_GetNetworkHandle(This,lObjIndex) \ + ( (This)->lpVtbl -> GetNetworkHandle(This,lObjIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetClusterNetworkInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IGetClusterNetInterfaceInfo_INTERFACE_DEFINED__ +#define __IGetClusterNetInterfaceInfo_INTERFACE_DEFINED__ + +/* interface IGetClusterNetInterfaceInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGetClusterNetInterfaceInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE57-FC6B-11CF-B5F5-00A0C90AB505") + IGetClusterNetInterfaceInfo : public IUnknown + { + public: + virtual /* [local] */ HNETINTERFACE STDMETHODCALLTYPE GetNetInterfaceHandle( + /* [in] */ LONG lObjIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetClusterNetInterfaceInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetClusterNetInterfaceInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetClusterNetInterfaceInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetClusterNetInterfaceInfo * This); + + DECLSPEC_XFGVIRT(IGetClusterNetInterfaceInfo, GetNetInterfaceHandle) + /* [local] */ HNETINTERFACE ( STDMETHODCALLTYPE *GetNetInterfaceHandle )( + IGetClusterNetInterfaceInfo * This, + /* [in] */ LONG lObjIndex); + + END_INTERFACE + } IGetClusterNetInterfaceInfoVtbl; + + interface IGetClusterNetInterfaceInfo + { + CONST_VTBL struct IGetClusterNetInterfaceInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetClusterNetInterfaceInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetClusterNetInterfaceInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetClusterNetInterfaceInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetClusterNetInterfaceInfo_GetNetInterfaceHandle(This,lObjIndex) \ + ( (This)->lpVtbl -> GetNetInterfaceHandle(This,lObjIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetClusterNetInterfaceInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IWCPropertySheetCallback_INTERFACE_DEFINED__ +#define __IWCPropertySheetCallback_INTERFACE_DEFINED__ + +/* interface IWCPropertySheetCallback */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWCPropertySheetCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE60-FC6B-11CF-B5F5-00A0C90AB505") + IWCPropertySheetCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPropertySheetPage( + /* [in] */ __RPC__in LONG *hpage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWCPropertySheetCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWCPropertySheetCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWCPropertySheetCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWCPropertySheetCallback * This); + + DECLSPEC_XFGVIRT(IWCPropertySheetCallback, AddPropertySheetPage) + HRESULT ( STDMETHODCALLTYPE *AddPropertySheetPage )( + __RPC__in IWCPropertySheetCallback * This, + /* [in] */ __RPC__in LONG *hpage); + + END_INTERFACE + } IWCPropertySheetCallbackVtbl; + + interface IWCPropertySheetCallback + { + CONST_VTBL struct IWCPropertySheetCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWCPropertySheetCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWCPropertySheetCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWCPropertySheetCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWCPropertySheetCallback_AddPropertySheetPage(This,hpage) \ + ( (This)->lpVtbl -> AddPropertySheetPage(This,hpage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWCPropertySheetCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IWEExtendPropertySheet_INTERFACE_DEFINED__ +#define __IWEExtendPropertySheet_INTERFACE_DEFINED__ + +/* interface IWEExtendPropertySheet */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWEExtendPropertySheet; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE61-FC6B-11CF-B5F5-00A0C90AB505") + IWEExtendPropertySheet : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreatePropertySheetPages( + /* [in] */ __RPC__in_opt IUnknown *piData, + /* [in] */ __RPC__in_opt IWCPropertySheetCallback *piCallback) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWEExtendPropertySheetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWEExtendPropertySheet * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWEExtendPropertySheet * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWEExtendPropertySheet * This); + + DECLSPEC_XFGVIRT(IWEExtendPropertySheet, CreatePropertySheetPages) + HRESULT ( STDMETHODCALLTYPE *CreatePropertySheetPages )( + __RPC__in IWEExtendPropertySheet * This, + /* [in] */ __RPC__in_opt IUnknown *piData, + /* [in] */ __RPC__in_opt IWCPropertySheetCallback *piCallback); + + END_INTERFACE + } IWEExtendPropertySheetVtbl; + + interface IWEExtendPropertySheet + { + CONST_VTBL struct IWEExtendPropertySheetVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWEExtendPropertySheet_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWEExtendPropertySheet_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWEExtendPropertySheet_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWEExtendPropertySheet_CreatePropertySheetPages(This,piData,piCallback) \ + ( (This)->lpVtbl -> CreatePropertySheetPages(This,piData,piCallback) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWEExtendPropertySheet_INTERFACE_DEFINED__ */ + + +#ifndef __IWCWizardCallback_INTERFACE_DEFINED__ +#define __IWCWizardCallback_INTERFACE_DEFINED__ + +/* interface IWCWizardCallback */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWCWizardCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE62-FC6B-11CF-B5F5-00A0C90AB505") + IWCWizardCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddWizardPage( + /* [in] */ __RPC__in LONG *hpage) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnableNext( + /* [in] */ __RPC__in LONG *hpage, + /* [in] */ BOOL bEnable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWCWizardCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWCWizardCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWCWizardCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWCWizardCallback * This); + + DECLSPEC_XFGVIRT(IWCWizardCallback, AddWizardPage) + HRESULT ( STDMETHODCALLTYPE *AddWizardPage )( + __RPC__in IWCWizardCallback * This, + /* [in] */ __RPC__in LONG *hpage); + + DECLSPEC_XFGVIRT(IWCWizardCallback, EnableNext) + HRESULT ( STDMETHODCALLTYPE *EnableNext )( + __RPC__in IWCWizardCallback * This, + /* [in] */ __RPC__in LONG *hpage, + /* [in] */ BOOL bEnable); + + END_INTERFACE + } IWCWizardCallbackVtbl; + + interface IWCWizardCallback + { + CONST_VTBL struct IWCWizardCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWCWizardCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWCWizardCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWCWizardCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWCWizardCallback_AddWizardPage(This,hpage) \ + ( (This)->lpVtbl -> AddWizardPage(This,hpage) ) + +#define IWCWizardCallback_EnableNext(This,hpage,bEnable) \ + ( (This)->lpVtbl -> EnableNext(This,hpage,bEnable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWCWizardCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IWEExtendWizard_INTERFACE_DEFINED__ +#define __IWEExtendWizard_INTERFACE_DEFINED__ + +/* interface IWEExtendWizard */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWEExtendWizard; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE63-FC6B-11CF-B5F5-00A0C90AB505") + IWEExtendWizard : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateWizardPages( + /* [in] */ __RPC__in_opt IUnknown *piData, + /* [in] */ __RPC__in_opt IWCWizardCallback *piCallback) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWEExtendWizardVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWEExtendWizard * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWEExtendWizard * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWEExtendWizard * This); + + DECLSPEC_XFGVIRT(IWEExtendWizard, CreateWizardPages) + HRESULT ( STDMETHODCALLTYPE *CreateWizardPages )( + __RPC__in IWEExtendWizard * This, + /* [in] */ __RPC__in_opt IUnknown *piData, + /* [in] */ __RPC__in_opt IWCWizardCallback *piCallback); + + END_INTERFACE + } IWEExtendWizardVtbl; + + interface IWEExtendWizard + { + CONST_VTBL struct IWEExtendWizardVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWEExtendWizard_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWEExtendWizard_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWEExtendWizard_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWEExtendWizard_CreateWizardPages(This,piData,piCallback) \ + ( (This)->lpVtbl -> CreateWizardPages(This,piData,piCallback) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWEExtendWizard_INTERFACE_DEFINED__ */ + + +#ifndef __IWCContextMenuCallback_INTERFACE_DEFINED__ +#define __IWCContextMenuCallback_INTERFACE_DEFINED__ + +/* interface IWCContextMenuCallback */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWCContextMenuCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE64-FC6B-11CF-B5F5-00A0C90AB505") + IWCContextMenuCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddExtensionMenuItem( + /* [in] */ __RPC__in BSTR lpszName, + /* [in] */ __RPC__in BSTR lpszStatusBarText, + /* [in] */ ULONG nCommandID, + /* [in] */ ULONG nSubmenuCommandID, + /* [in] */ ULONG uFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWCContextMenuCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWCContextMenuCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWCContextMenuCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWCContextMenuCallback * This); + + DECLSPEC_XFGVIRT(IWCContextMenuCallback, AddExtensionMenuItem) + HRESULT ( STDMETHODCALLTYPE *AddExtensionMenuItem )( + __RPC__in IWCContextMenuCallback * This, + /* [in] */ __RPC__in BSTR lpszName, + /* [in] */ __RPC__in BSTR lpszStatusBarText, + /* [in] */ ULONG nCommandID, + /* [in] */ ULONG nSubmenuCommandID, + /* [in] */ ULONG uFlags); + + END_INTERFACE + } IWCContextMenuCallbackVtbl; + + interface IWCContextMenuCallback + { + CONST_VTBL struct IWCContextMenuCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWCContextMenuCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWCContextMenuCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWCContextMenuCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWCContextMenuCallback_AddExtensionMenuItem(This,lpszName,lpszStatusBarText,nCommandID,nSubmenuCommandID,uFlags) \ + ( (This)->lpVtbl -> AddExtensionMenuItem(This,lpszName,lpszStatusBarText,nCommandID,nSubmenuCommandID,uFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWCContextMenuCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IWEExtendContextMenu_INTERFACE_DEFINED__ +#define __IWEExtendContextMenu_INTERFACE_DEFINED__ + +/* interface IWEExtendContextMenu */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWEExtendContextMenu; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE65-FC6B-11CF-B5F5-00A0C90AB505") + IWEExtendContextMenu : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddContextMenuItems( + /* [in] */ __RPC__in_opt IUnknown *piData, + /* [in] */ __RPC__in_opt IWCContextMenuCallback *piCallback) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWEExtendContextMenuVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWEExtendContextMenu * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWEExtendContextMenu * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWEExtendContextMenu * This); + + DECLSPEC_XFGVIRT(IWEExtendContextMenu, AddContextMenuItems) + HRESULT ( STDMETHODCALLTYPE *AddContextMenuItems )( + __RPC__in IWEExtendContextMenu * This, + /* [in] */ __RPC__in_opt IUnknown *piData, + /* [in] */ __RPC__in_opt IWCContextMenuCallback *piCallback); + + END_INTERFACE + } IWEExtendContextMenuVtbl; + + interface IWEExtendContextMenu + { + CONST_VTBL struct IWEExtendContextMenuVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWEExtendContextMenu_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWEExtendContextMenu_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWEExtendContextMenu_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWEExtendContextMenu_AddContextMenuItems(This,piData,piCallback) \ + ( (This)->lpVtbl -> AddContextMenuItems(This,piData,piCallback) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWEExtendContextMenu_INTERFACE_DEFINED__ */ + + +#ifndef __IWEInvokeCommand_INTERFACE_DEFINED__ +#define __IWEInvokeCommand_INTERFACE_DEFINED__ + +/* interface IWEInvokeCommand */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWEInvokeCommand; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE66-FC6B-11CF-B5F5-00A0C90AB505") + IWEInvokeCommand : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InvokeCommand( + /* [in] */ ULONG nCommandID, + /* [in] */ __RPC__in_opt IUnknown *piData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWEInvokeCommandVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWEInvokeCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWEInvokeCommand * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWEInvokeCommand * This); + + DECLSPEC_XFGVIRT(IWEInvokeCommand, InvokeCommand) + HRESULT ( STDMETHODCALLTYPE *InvokeCommand )( + __RPC__in IWEInvokeCommand * This, + /* [in] */ ULONG nCommandID, + /* [in] */ __RPC__in_opt IUnknown *piData); + + END_INTERFACE + } IWEInvokeCommandVtbl; + + interface IWEInvokeCommand + { + CONST_VTBL struct IWEInvokeCommandVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWEInvokeCommand_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWEInvokeCommand_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWEInvokeCommand_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWEInvokeCommand_InvokeCommand(This,nCommandID,piData) \ + ( (This)->lpVtbl -> InvokeCommand(This,nCommandID,piData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWEInvokeCommand_INTERFACE_DEFINED__ */ + + +#ifndef __IWCWizard97Callback_INTERFACE_DEFINED__ +#define __IWCWizard97Callback_INTERFACE_DEFINED__ + +/* interface IWCWizard97Callback */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWCWizard97Callback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE67-FC6B-11CF-B5F5-00A0C90AB505") + IWCWizard97Callback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddWizard97Page( + /* [in] */ __RPC__in LONG *hpage) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnableNext( + /* [in] */ __RPC__in LONG *hpage, + /* [in] */ BOOL bEnable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWCWizard97CallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWCWizard97Callback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWCWizard97Callback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWCWizard97Callback * This); + + DECLSPEC_XFGVIRT(IWCWizard97Callback, AddWizard97Page) + HRESULT ( STDMETHODCALLTYPE *AddWizard97Page )( + __RPC__in IWCWizard97Callback * This, + /* [in] */ __RPC__in LONG *hpage); + + DECLSPEC_XFGVIRT(IWCWizard97Callback, EnableNext) + HRESULT ( STDMETHODCALLTYPE *EnableNext )( + __RPC__in IWCWizard97Callback * This, + /* [in] */ __RPC__in LONG *hpage, + /* [in] */ BOOL bEnable); + + END_INTERFACE + } IWCWizard97CallbackVtbl; + + interface IWCWizard97Callback + { + CONST_VTBL struct IWCWizard97CallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWCWizard97Callback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWCWizard97Callback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWCWizard97Callback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWCWizard97Callback_AddWizard97Page(This,hpage) \ + ( (This)->lpVtbl -> AddWizard97Page(This,hpage) ) + +#define IWCWizard97Callback_EnableNext(This,hpage,bEnable) \ + ( (This)->lpVtbl -> EnableNext(This,hpage,bEnable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWCWizard97Callback_INTERFACE_DEFINED__ */ + + +#ifndef __IWEExtendWizard97_INTERFACE_DEFINED__ +#define __IWEExtendWizard97_INTERFACE_DEFINED__ + +/* interface IWEExtendWizard97 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWEExtendWizard97; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97DEDE68-FC6B-11CF-B5F5-00A0C90AB505") + IWEExtendWizard97 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateWizard97Pages( + /* [in] */ __RPC__in_opt IUnknown *piData, + /* [in] */ __RPC__in_opt IWCWizard97Callback *piCallback) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWEExtendWizard97Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWEExtendWizard97 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWEExtendWizard97 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWEExtendWizard97 * This); + + DECLSPEC_XFGVIRT(IWEExtendWizard97, CreateWizard97Pages) + HRESULT ( STDMETHODCALLTYPE *CreateWizard97Pages )( + __RPC__in IWEExtendWizard97 * This, + /* [in] */ __RPC__in_opt IUnknown *piData, + /* [in] */ __RPC__in_opt IWCWizard97Callback *piCallback); + + END_INTERFACE + } IWEExtendWizard97Vtbl; + + interface IWEExtendWizard97 + { + CONST_VTBL struct IWEExtendWizard97Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWEExtendWizard97_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWEExtendWizard97_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWEExtendWizard97_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWEExtendWizard97_CreateWizard97Pages(This,piData,piCallback) \ + ( (This)->lpVtbl -> CreateWizard97Pages(This,piData,piCallback) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWEExtendWizard97_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_cluadmex_0000_0017 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_cluadmex_0000_0017_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cluadmex_0000_0017_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ClusApi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ClusApi.h new file mode 100644 index 0000000000000000000000000000000000000000..bac8998e5483db8e8efa2b86c27aeebea16dce52 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ClusApi.h @@ -0,0 +1,9105 @@ + +/*++ + +Copyright (c) 1996 Microsoft Corporation. All rights reserved. + +Module Name: + + clusapi.h + +Abstract: + + This module defines the common management and application interface to + the Microsoft Cluster Server services. + +Revision History: + +--*/ + +#ifndef _CLUSTER_API_ +#define _CLUSTER_API_ + +#if ( !MIDL_PASS && !__midl ) +#define CLUSTER_VERSION_FLAG_MIXED_MODE 0x00000001 + +#define CLUSTER_VERSION_UNKNOWN 0xFFFFFFFF + +// these defines represent cluster numbers, not windows OS numbers +#define NT4_MAJOR_VERSION 1 +#define NT4SP4_MAJOR_VERSION 2 +#define NT5_MAJOR_VERSION 3 +#define NT51_MAJOR_VERSION 4 +#define NT6_MAJOR_VERSION 5 +#define NT7_MAJOR_VERSION 6 +#define NT8_MAJOR_VERSION 7 +#define NT9_MAJOR_VERSION 8 +#define NT10_MAJOR_VERSION 9 +#define NT11_MAJOR_VERSION 10 +#define NT12_MAJOR_VERSION 11 +#define NT13_MAJOR_VERSION 12 + +// NT10 cluster upgrade versions (eg technical previews) +#define WS2016_TP4_UPGRADE_VERSION 6 +#define WS2016_TP5_UPGRADE_VERSION 7 +#define WS2016_RTM_UPGRADE_VERSION 8 + +// NT11 upgrade versions +#define RS3_UPGRADE_VERSION 1 +#define RS4_UPGRADE_VERSION 2 +#define RS5_UPGRADE_VERSION 3 + +// NT12 upgrade versions +#define NINETEEN_H1_UPGRADE_VERSION 1 +#define NINETEEN_H2_UPGRADE_VERSION 2 +#define MN_UPGRADE_VERSION 3 +#define FE_UPGRADE_VERSION 4 +#define FE_22H2_UPGRADE_VERSION 5 + +// NT13 upgrade versions +#define CA_UPGRADE_VERSION 1 +#define NI_UPGRADE_VERSION 2 +#define CU_UPGRADE_VERSION 3 +#define ZN_UPGRADE_VERSION 4 +#define GA_UPGRADE_VERSION 5 +#define GE_UPGRADE_VERSION 6 + +#define HCI_UPGRADE_BIT 0x8000 + +#define CLUSREG_NAME_MIXED_MODE L"MixedMode" + +#endif // ( !MIDL_PASS && !__midl ) + +#ifndef _IN_KERNEL_ + + + +#include + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or FailoverCluster Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_CLUSTER) + + +#define CLUSAPI_VERSION_SERVER2008 0x00000600 +#define CLUSAPI_VERSION_SERVER2008R2 0x00000700 +#define CLUSAPI_VERSION_WINDOWS8 0x00000701 +#define CLUSAPI_VERSION_WINDOWSBLUE 0x00000702 +#define CLUSAPI_VERSION_WINTHRESHOLD 0x00000703 +#define CLUSAPI_VERSION_RS3 0x00000A00 +#define CLUSAPI_VERSION_NI 0x00000A0C +// starting with CU use convention of 0x0000 + 2 digit major version + 2 digit minor version +// ie NT13_MAJOR_VERSION = 12 = 0x0C, CU_UPGRADE_VERSION = 3 = 0x03 +#define CLUSAPI_VERSION_CU 0x00000C03 +#define CLUSAPI_VERSION_ZN 0x00000C04 +#define CLUSAPI_VERSION_GA 0x00000C05 + + +#if (!defined(CLUSAPI_VERSION)) +#if (!defined(NTDDI_VERSION) || (NTDDI_VERSION >= NTDDI_WIN11_GA)) +#define CLUSAPI_VERSION CLUSAPI_VERSION_GA +#elif (!defined(NTDDI_VERSION) || (NTDDI_VERSION >= NTDDI_WIN11_ZN)) +#define CLUSAPI_VERSION CLUSAPI_VERSION_ZN +#elif (!defined(NTDDI_VERSION) || (NTDDI_VERSION >= NTDDI_WIN10_CU)) +#define CLUSAPI_VERSION CLUSAPI_VERSION_CU +#elif (!defined(NTDDI_VERSION) || (NTDDI_VERSION >= NTDDI_WIN10_NI)) +#define CLUSAPI_VERSION CLUSAPI_VERSION_NI +#elif (!defined(NTDDI_VERSION) || (NTDDI_VERSION >= NTDDI_WIN10_RS3)) +#define CLUSAPI_VERSION CLUSAPI_VERSION_RS3 +#elif (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#define CLUSAPI_VERSION CLUSAPI_VERSION_WINTHRESHOLD +#elif (NTDDI_VERSION >= NTDDI_WINBLUE) +#define CLUSAPI_VERSION CLUSAPI_VERSION_WINDOWSBLUE +#elif (NTDDI_VERSION >= NTDDI_WIN8) +#define CLUSAPI_VERSION CLUSAPI_VERSION_WINDOWS8 +#elif (NTDDI_VERSION >= NTDDI_WIN7) +#define CLUSAPI_VERSION CLUSAPI_VERSION_SERVER2008R2 +#else +#define CLUSAPI_VERSION CLUSAPI_VERSION_SERVER2008 +#endif +#endif // !defined(CLUSAPI_VERSION) + +#define CREATE_CLUSTER_VERSION CLUSAPI_VERSION_SERVER2008 +#define CREATE_CLUSTER_MAJOR_VERSION_MASK 0xFFFFFF00 + +#ifdef __cplusplus +extern "C" { +#endif + +#if ( !MIDL_PASS && !__midl ) +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif +#pragma warning( disable : 4200 ) // nonstandard extension used : zero-sized array in struct/union +#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union +#endif // MIDL_PASS + +// +// General cluster definitions +// + +#ifndef _CLUSTER_API_TYPES_ +// +// Defined cluster handle types. +// +typedef struct _HCLUSTER *HCLUSTER; +typedef struct _HNODE *HNODE; +typedef struct _HRESOURCE *HRESOURCE; +typedef struct _HGROUP *HGROUP; +typedef struct _HNETWORK *HNETWORK; +typedef struct _HNETINTERFACE *HNETINTERFACE; +typedef struct _HCHANGE *HCHANGE; +typedef struct _HCLUSENUM *HCLUSENUM; +typedef struct _HGROUPENUM *HGROUPENUM; +typedef struct _HRESENUM *HRESENUM; +typedef struct _HNETWORKENUM *HNETWORKENUM; +typedef struct _HNODEENUM *HNODEENUM; +typedef struct _HNETINTERFACEENUM *HNETINTERFACEENUM; +typedef struct _HRESTYPEENUM *HRESTYPEENUM; +typedef struct _HREGBATCH *HREGBATCH; +typedef struct _HREGBATCHPORT *HREGBATCHPORT; +typedef struct _HREGBATCHNOTIFICATION *HREGBATCHNOTIFICATION; +typedef struct _HREGREADBATCH *HREGREADBATCH; +typedef struct _HREGREADBATCHREPLY *HREGREADBATCHREPLY; +typedef struct _HKEYVALUEBATCH *HKEYVALUEBATCH; +typedef struct _HKEYVALUEBATCHNOTIFICATION *HKEYVALUEBATCHNOTIFICATION; +typedef struct _HKEYVALUEREADBATCH *HKEYVALUEREADBATCH; +typedef struct _HKEYVALUEREADBATCHREPLY *HKEYVALUEREADBATCHREPLY; +typedef struct _HKEYVALUESTORE *HKEYVALUESTORE; + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +typedef struct _HNODEENUMEX *HNODEENUMEX; +typedef struct _HCLUSENUMEX *HCLUSENUMEX; +#endif + +#if(CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8) +typedef struct _HGROUPENUMEX *HGROUPENUMEX; +typedef struct _HRESENUMEX *HRESENUMEX; +#endif + +#if(CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD) +typedef struct _HGROUPSET *HGROUPSET; +typedef struct _HGROUPSETENUM *HGROUPSETENUM; +#endif + +#endif // _CLUSTER_API_TYPES_ + +// +// Definitions used in cluster management routines. +// + +#define MAX_CLUSTERNAME_LENGTH DNS_MAX_LABEL_LENGTH + +#ifndef _CLUSTER_API_TYPES_ +// +// Cluster-related structures and types +// +typedef enum CLUSTER_QUORUM_TYPE { + OperationalQuorum, + ModifyQuorum +} CLUSTER_QUORUM_TYPE; + +#if ( !MIDL_PASS && !__midl ) + +typedef struct CLUSTERVERSIONINFO_NT4 { + DWORD dwVersionInfoSize; + WORD MajorVersion; + WORD MinorVersion; + WORD BuildNumber; + WCHAR szVendorId[64]; + WCHAR szCSDVersion[64]; +}CLUSTERVERSIONINFO_NT4, *PCLUSTERVERSIONINFO_NT4; + +typedef struct CLUSTERVERSIONINFO { + DWORD dwVersionInfoSize; + WORD MajorVersion; + WORD MinorVersion; + WORD BuildNumber; + WCHAR szVendorId[64]; + WCHAR szCSDVersion[64]; + DWORD dwClusterHighestVersion; + DWORD dwClusterLowestVersion; + DWORD dwFlags; + DWORD dwReserved; +} CLUSTERVERSIONINFO, *LPCLUSTERVERSIONINFO, *PCLUSTERVERSIONINFO; + + +typedef struct CLUS_STARTING_PARAMS { + DWORD dwSize; + BOOL bForm; + BOOL bFirst; +} CLUS_STARTING_PARAMS, * PCLUS_STARTING_PARAMS; + + + +#define CLUSTER_VERSION_UNKNOWN 0xFFFFFFFF + +// these defines represent cluster numbers, not windows OS numbers +#define NT4_MAJOR_VERSION 1 +#define NT4SP4_MAJOR_VERSION 2 +#define NT5_MAJOR_VERSION 3 +#define NT51_MAJOR_VERSION 4 +#define NT6_MAJOR_VERSION 5 +#define NT7_MAJOR_VERSION 6 +#define NT8_MAJOR_VERSION 7 +#define NT9_MAJOR_VERSION 8 +#define NT10_MAJOR_VERSION 9 + +// And cluster upgrade versions (eg technical previews) +#define WS2016_TP4_UPGRADE_VERSION 6 +#define WS2016_TP5_UPGRADE_VERSION 7 +#define WS2016_RTM_UPGRADE_VERSION 8 + +// +// Version number macros +// Minor version has been renamed to upgrade version, but the minor version +// macro must remain for compatibility +// + +#define CLUSTER_MAKE_VERSION( _maj, _min ) ((( _maj ) << 16 ) | ( _min )) +#define CLUSTER_GET_MAJOR_VERSION( _ver ) (( _ver ) >> 16 ) +#define CLUSTER_GET_MINOR_VERSION( _ver ) (( _ver ) & 0xFFFF ) +#define CLUSTER_GET_UPGRADE_VERSION( _ver ) (( _ver ) & 0xFFFF ) + +#endif // MIDL_PASS + +// +// Interfaces for the cluster state on a node +// +#define CLUSTER_INSTALLED 0x00000001 +#define CLUSTER_CONFIGURED 0x00000002 +#define CLUSTER_RUNNING 0x00000010 + +typedef enum NODE_CLUSTER_STATE { + ClusterStateNotInstalled = 0x00000000, + ClusterStateNotConfigured = CLUSTER_INSTALLED, + ClusterStateNotRunning = CLUSTER_INSTALLED | CLUSTER_CONFIGURED, + ClusterStateRunning = CLUSTER_INSTALLED | CLUSTER_CONFIGURED | CLUSTER_RUNNING +} NODE_CLUSTER_STATE; + +// Quorum mode flags for SetClusterQuorumResource API + +#define CLUS_HYBRID_QUORUM 1024 // 0xFFFFFFFF +#define CLUS_NODE_MAJORITY_QUORUM 0 // 0xFFFFFFFE +#define CLUS_LEGACY_QUORUM (4 * 1024 * 1024) // 0xFFFFFFFD + +// +// Resource state change reason related types and defines +// +#define CLUSCTL_RESOURCE_STATE_CHANGE_REASON_VERSION_1 1 + +typedef enum CLUSTER_RESOURCE_STATE_CHANGE_REASON { + eResourceStateChangeReasonUnknown, + eResourceStateChangeReasonMove, + eResourceStateChangeReasonFailover, + eResourceStateChangeReasonFailedMove, + eResourceStateChangeReasonShutdown, + eResourceStateChangeReasonRundown +} CLUSTER_RESOURCE_STATE_CHANGE_REASON; + +typedef enum _CLUSTER_REG_COMMAND +{ + CLUSREG_COMMAND_NONE = 0, + + CLUSREG_SET_VALUE = 1, + CLUSREG_CREATE_KEY, + CLUSREG_DELETE_KEY, + CLUSREG_DELETE_VALUE, + CLUSREG_SET_KEY_SECURITY, + CLUSREG_VALUE_DELETED, + + // Commands for read batch + CLUSREG_READ_KEY, + CLUSREG_READ_VALUE, + CLUSREG_READ_ERROR, + + // Control command + CLUSREG_CONTROL_COMMAND, + + // Write conditions + CLUSREG_CONDITION_EXISTS, + CLUSREG_CONDITION_NOT_EXISTS, + CLUSREG_CONDITION_IS_EQUAL, + CLUSREG_CONDITION_IS_NOT_EQUAL, + CLUSREG_CONDITION_IS_GREATER_THAN, + CLUSREG_CONDITION_IS_LESS_THAN, + CLUSREG_CONDITION_KEY_EXISTS, + CLUSREG_CONDITION_KEY_NOT_EXISTS, + + CLUSREG_LAST_COMMAND + +} CLUSTER_REG_COMMAND; + +#define CLUSREG_DATABASE_SYNC_WRITE_TO_ALL_NODES 1 +#define CLUSREG_DATABASE_ISOLATE_READ 2 + + +#if ( !MIDL_PASS && !__midl ) + +typedef struct _CLUSCTL_RESOURCE_STATE_CHANGE_REASON_STRUCT { + DWORD dwSize; + DWORD dwVersion; + CLUSTER_RESOURCE_STATE_CHANGE_REASON eReason; +} CLUSCTL_RESOURCE_STATE_CHANGE_REASON_STRUCT, *PCLUSCTL_RESOURCE_STATE_CHANGE_REASON_STRUCT; + +typedef struct _CLUSTER_BATCH_COMMAND +{ + CLUSTER_REG_COMMAND Command; + DWORD dwOptions; + LPCWSTR wzName; + BYTE CONST * lpData; + DWORD cbData; +} CLUSTER_BATCH_COMMAND; + +typedef struct _CLUSTER_READ_BATCH_COMMAND +{ + CLUSTER_REG_COMMAND Command; + DWORD dwOptions; + LPCWSTR wzSubkeyName; + LPCWSTR wzValueName; + BYTE CONST * lpData; + DWORD cbData; +} CLUSTER_READ_BATCH_COMMAND; + + +#endif // MIDL_PASS + +#if CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2 + +#define CLUSTER_ENUM_ITEM_VERSION_1 0x00000001 +#define CLUSTER_ENUM_ITEM_VERSION CLUSTER_ENUM_ITEM_VERSION_1 + +typedef struct _CLUSTER_ENUM_ITEM { + DWORD dwVersion; + DWORD dwType; + DWORD cbId; + LPWSTR lpszId; + DWORD cbName; + LPWSTR lpszName; +} CLUSTER_ENUM_ITEM, *PCLUSTER_ENUM_ITEM; + +#endif // CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2 + +typedef enum { + ClusGroupTypeCoreCluster = 1, + ClusGroupTypeAvailableStorage = 2, + ClusGroupTypeTemporary = 3, + ClusGroupTypeSharedVolume = 4, + ClusGroupTypeStoragePool = 5, + ClusGroupTypeFileServer = 100, + ClusGroupTypePrintServer = 101, + ClusGroupTypeDhcpServer = 102, + ClusGroupTypeDtc = 103, + ClusGroupTypeMsmq = 104, + ClusGroupTypeWins = 105, + ClusGroupTypeStandAloneDfs = 106, + ClusGroupTypeGenericApplication = 107, + ClusGroupTypeGenericService = 108, + ClusGroupTypeGenericScript = 109, + ClusGroupTypeIScsiNameService = 110, + ClusGroupTypeVirtualMachine = 111, + ClusGroupTypeTsSessionBroker = 112, + ClusGroupTypeIScsiTarget = 113, + ClusGroupTypeScaleoutFileServer = 114, + ClusGroupTypeVMReplicaBroker = 115, + ClusGroupTypeTaskScheduler = 116, + ClusGroupTypeClusterUpdateAgent = 117, + ClusGroupTypeScaleoutCluster = 118, + ClusGroupTypeStorageReplica = 119, + ClusGroupTypeVMReplicaCoordinator = 120, + ClusGroupTypeCrossClusterOrchestrator = 121, + ClusGroupTypeInfrastructureFileServer = 122, + ClusGroupTypeCoreSddc = 123, + ClusGroupTypeUserManager = 124, + ClusGroupTypeKeyValueStoreManager = 125, + ClusGroupTypeHcsVirtualMachine = 126, + ClusGroupTypeMetaVirtualMachine = 127, + ClusGroupTypeUnknown = 9999 +} CLUSGROUP_TYPE, *PCLUSGROUP_TYPE; + +#if CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8 + +#define CLUSTER_CREATE_GROUP_INFO_VERSION_1 0x00000001 +#define CLUSTER_CREATE_GROUP_INFO_VERSION CLUSTER_CREATE_GROUP_INFO_VERSION_1 + +typedef struct _CLUSTER_CREATE_GROUP_INFO { + DWORD dwVersion; + CLUSGROUP_TYPE groupType; +}CLUSTER_CREATE_GROUP_INFO, *PCLUSTER_CREATE_GROUP_INFO; +#endif + +typedef enum +{ + CLUSTER_MGMT_POINT_TYPE_NONE = 0, + CLUSTER_MGMT_POINT_TYPE_CNO, + CLUSTER_MGMT_POINT_TYPE_DNS_ONLY, + CLUSTER_MGMT_POINT_TYPE_CNO_ONLY +} CLUSTER_MGMT_POINT_TYPE; + +typedef enum +{ + CLUSTER_MGMT_POINT_RESTYPE_AUTO = 0, + CLUSTER_MGMT_POINT_RESTYPE_SNN = 1, + CLUSTER_MGMT_POINT_RESTYPE_DNN = 2 +} CLUSTER_MGMT_POINT_RESTYPE, *PCLUSTER_MGMT_POINT_RESTYPE; + +typedef enum +{ + CLUSTER_CLOUD_TYPE_NONE = 0, + CLUSTER_CLOUD_TYPE_AZURE = 1, + + + CLUSTER_CLOUD_TYPE_MIXED = 128, + + CLUSTER_CLOUD_TYPE_UNKNOWN = -1 +} CLUSTER_CLOUD_TYPE, *PCLUSTER_CLOUD_TYPE; + + +#if CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD + +#define GROUPSET_READY_SETTING_DELAY 0x00000001 +#define GROUPSET_READY_SETTING_ONLINE 0x00000002 +#define GROUPSET_READY_SETTING_OS_HEARTBEAT 0x00000003 +#define GROUPSET_READY_SETTING_APPLICATION_READY 0x00000004 + +typedef enum +{ + CLUS_GROUP_START_ALWAYS = 0, + CLUS_GROUP_DO_NOT_START = 1, + CLUS_GROUP_START_ALLOWED = 2 +} CLUS_GROUP_START_SETTING; + +typedef enum +{ + CLUS_AFFINITY_RULE_NONE = 0, + CLUS_AFFINITY_RULE_SAME_FAULT_DOMAIN = 1, + CLUS_AFFINITY_RULE_SAME_NODE = 2, + CLUS_AFFINITY_RULE_DIFFERENT_FAULT_DOMAIN = 3, + CLUS_AFFINITY_RULE_DIFFERENT_NODE = 4, + + CLUS_AFFINITY_RULE_MIN = CLUS_AFFINITY_RULE_NONE, + CLUS_AFFINITY_RULE_MAX = CLUS_AFFINITY_RULE_DIFFERENT_NODE, +} CLUS_AFFINITY_RULE_TYPE; + +typedef enum +{ + CLUS_ADAPTER_EXCLUSION_TYPE_IPPREFIX = 0, + CLUS_ADAPTER_EXCLUSION_TYPE_DESCRIPTION = 1, + CLUS_ADAPTER_EXCLUSION_TYPE_FRIENDLYNAME = 2, +} CLUS_ADAPTER_EXCLUSION_TYPE; + +#define CLUS_GRP_MOVE_ALLOWED 0 +#define CLUS_GRP_MOVE_LOCKED 1 + +#endif // CLUSAPI_VERSION_WINTHRESHOLD + +#endif // _CLUSTER_API_TYPES_ + +// +// Interfaces for managing clusters +// + +// +// Cluster API Specific Access Rights +// +#define CLUSAPI_READ_ACCESS 0x00000001L +#define CLUSAPI_CHANGE_ACCESS 0x00000002L +#define CLUSAPI_NO_ACCESS 0x00000004L +#define CLUSAPI_ALL_ACCESS (CLUSAPI_READ_ACCESS | CLUSAPI_CHANGE_ACCESS) + +// +// Cluster API Access Control Type +// +#define CLUSTER_SET_ACCESS_TYPE_ALLOWED 0 //To add an allowed ACE +#define CLUSTER_SET_ACCESS_TYPE_DENIED 1 //To add a denied ACE +#define CLUSTER_DELETE_ACCESS_CONTROL_ENTRY 2 //To delete all the ACEs for a particular SID + +// +// Return values for CLUSCTL_CLUSTER_CHECK_VOTER_DOWN and CLUSCTL_CLUSTER_CHECK_VOTER_EVICT +// +typedef enum CLUSTER_QUORUM_VALUE { + CLUSTER_QUORUM_MAINTAINED = 0, + CLUSTER_QUORUM_LOST = 1, +} CLUSTER_QUORUM_VALUE; + +#if ( !MIDL_PASS && !__midl ) + +// +// Structure used to pass in the path to validate +// +typedef struct _CLUSTER_VALIDATE_PATH { + WCHAR szPath[]; +} CLUSTER_VALIDATE_PATH, *PCLUSTER_VALIDATE_PATH; + +// +// Structure used to pass in the directory to validate +// +typedef struct _CLUSTER_VALIDATE_DIRECTORY { + WCHAR szPath[]; +} CLUSTER_VALIDATE_DIRECTORY, *PCLUSTER_VALIDATE_DIRECTORY; + +// +// Structure used to pass in the network name to validate +// +typedef struct _CLUSTER_VALIDATE_NETNAME { + WCHAR szNetworkName[]; +} CLUSTER_VALIDATE_NETNAME , *PCLUSTER_VALIDATE_NETNAME ; + +// +// Structure used to pass in the file name to validate +// +typedef struct _CLUSTER_VALIDATE_CSV_FILENAME { + WCHAR szFileName[]; +} CLUSTER_VALIDATE_CSV_FILENAME , *PCLUSTER_VALIDATE_CSV_FILENAME ; + +// +// Structure used to return the status of a request to set the +// password on the account used by the Cluster Service on each +// cluster node. +// +typedef struct CLUSTER_SET_PASSWORD_STATUS { + DWORD NodeId; + BOOLEAN SetAttempted; + DWORD ReturnStatus; +} CLUSTER_SET_PASSWORD_STATUS, *PCLUSTER_SET_PASSWORD_STATUS; + +#ifndef _CLUSTER_API_TYPES_ +typedef struct _CLUSTER_IP_ENTRY +{ + PCWSTR lpszIpAddress; + DWORD dwPrefixLength; +} CLUSTER_IP_ENTRY, *PCLUSTER_IP_ENTRY; + +typedef struct _CREATE_CLUSTER_CONFIG +{ + DWORD dwVersion; + PCWSTR lpszClusterName; + DWORD cNodes; + PCWSTR * ppszNodeNames; + DWORD cIpEntries; + PCLUSTER_IP_ENTRY pIpEntries; + BOOLEAN fEmptyCluster; + CLUSTER_MGMT_POINT_TYPE managementPointType; // CLUSAPI Version >= CLUSAPI_VERSION_WINDOWSBLUE + CLUSTER_MGMT_POINT_RESTYPE managementPointResType; // CLUSAPI Version >= CLUSAPI_VERSION_RS3 + PCWSTR pszUserName; // CLUSAPU Version >= CLUSAPI_VERSION_GA + PCWSTR pszPassword; // CLUSAPU Version >= CLUSAPI_VERSION_GA + PCWSTR pszDomain; // CLUSAPU Version >= CLUSAPI_VERSION_GA +} CREATE_CLUSTER_CONFIG, *PCREATE_CLUSTER_CONFIG; + +// CLUSAPI Version >= CLUSAPI_VERSION_WINTHRESHOLD +typedef struct _CREATE_CLUSTER_NAME_ACCOUNT +{ + DWORD dwVersion; + PCWSTR lpszClusterName; + DWORD dwFlags; + PCWSTR pszUserName; + PCWSTR pszPassword; + PCWSTR pszDomain; + CLUSTER_MGMT_POINT_TYPE managementPointType; + CLUSTER_MGMT_POINT_RESTYPE managementPointResType; // CLUSAPI Version >= CLUSAPI_VERSION_RS3 + BOOLEAN bUpgradeVCOs; // CLUSAPI Version >= CLUSAPI_VERSION_RS3, managementPointType==CLUSTER_MGMT_POINT_TYPE_CNO +} CREATE_CLUSTER_NAME_ACCOUNT, *PCREATE_CLUSTER_NAME_ACCOUNT; + +// Cluster Version >= NT13.CU_UPGRADE_VERSION +// CLUSAPI >= CLUSAPI_VERSION_CU +typedef struct _REPAIR_CLUSTER_NAME_ACCOUNT_CONFIG +{ + DWORD dwVersion; + DWORD dwFlags; + PCWSTR pszUserName; + PCWSTR pszPassword; + PCWSTR pszDomain; +} REPAIR_CLUSTER_NAME_ACCOUNT_CONFIG, *PREPAIR_CLUSTER_NAME_ACCOUNT_CONFIG; + + + +#endif // _CLUSTER_API_TYPES_ + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +typedef BOOL(WINAPI* PCLUSAPI_PFN_REASON_HANDLER)( + _In_ LPVOID lpParameter, + _In_ HCLUSTER hCluster, + _Out_ LPWSTR szReason, + _Inout_ LPDWORD lpSize + ); + +typedef struct _CLUSAPI_REASON_HANDLER { + LPVOID lpParameter; + PCLUSAPI_PFN_REASON_HANDLER pfnHandler; +} CLUSAPI_REASON_HANDLER, *PCLUSAPI_REASON_HANDLER; + +PCLUSAPI_REASON_HANDLER +WINAPI +ClusapiSetReasonHandler( + _In_ PCLUSAPI_REASON_HANDLER lpHandler + ); + +typedef PCLUSAPI_REASON_HANDLER +(WINAPI* PCLUSAPI_SET_REASON_HANDLER)( + _In_ PCLUSAPI_REASON_HANDLER lpHandler + ); + +#endif + +DWORD +WINAPI +GetNodeClusterState( + _In_opt_ LPCWSTR lpszNodeName, + _Out_ LPDWORD pdwClusterState + ); + +typedef DWORD +(WINAPI * PCLUSAPI_GET_NODE_CLUSTER_STATE)( + _In_opt_ LPCWSTR lpszNodeName, + _Out_ LPDWORD pdwClusterState + ); + +HCLUSTER +WINAPI +OpenCluster( + _In_opt_ LPCWSTR lpszClusterName + ); + +typedef HCLUSTER +(WINAPI * PCLUSAPI_OPEN_CLUSTER)( + _In_opt_ LPCWSTR lpszClusterName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +HCLUSTER +WINAPI +OpenClusterEx( + _In_opt_ LPCWSTR lpszClusterName, + _In_ DWORD DesiredAccess, + _Out_opt_ DWORD* GrantedAccess + ); + +typedef HCLUSTER +(WINAPI * PCLUSAPI_OPEN_CLUSTER_EX)( + _In_opt_ LPCWSTR lpszClusterName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ LPDWORD lpdwGrantedAccess + ); +#endif + +BOOL +WINAPI +CloseCluster( + _In_ HCLUSTER hCluster + ); + +typedef BOOL +(WINAPI * PCLUSAPI_CLOSE_CLUSTER)( + _In_ HCLUSTER hCluster + ); + +DWORD +WINAPI +SetClusterName( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNewClusterName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SetClusterName)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNewClusterName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +__success(return == ERROR_SUCCESS) +DWORD +WINAPI +SetClusterNameEx( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNewClusterName, + _In_opt_ LPCWSTR lpszReason +); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_NAME_EX)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNewClusterName, + _In_opt_ LPCWSTR lpszReason +); + +#endif + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +GetClusterInformation( + _In_ HCLUSTER hCluster, + _Out_writes_to_(*lpcchClusterName, *lpcchClusterName + 1) LPWSTR lpszClusterName, + _Inout_ LPDWORD lpcchClusterName, + _Out_opt_ LPCLUSTERVERSIONINFO lpClusterInfo + ); + +typedef DWORD +(WINAPI * PCLUSAPI_GET_CLUSTER_INFORMATION)( + _In_ HCLUSTER hCluster, + _Out_writes_to_(*lpcchClusterName, *lpcchClusterName + 1) LPWSTR lpszClusterName, + _Inout_ LPDWORD lpcchClusterName, + _Out_opt_ LPCLUSTERVERSIONINFO lpClusterInfo + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +GetClusterQuorumResource( + _In_ HCLUSTER hCluster, + _Out_writes_to_(*lpcchResourceName, *lpcchResourceName + 1) LPWSTR lpszResourceName, + _Inout_ LPDWORD lpcchResourceName, + _Out_writes_to_(*lpcchDeviceName, *lpcchDeviceName + 1) LPWSTR lpszDeviceName, + _Inout_ LPDWORD lpcchDeviceName, + _Out_ LPDWORD lpdwMaxQuorumLogSize + ); + +typedef DWORD +(WINAPI * PCLUSAPI_GET_CLUSTER_QUORUM_RESOURCE)( + _In_ HCLUSTER hCluster, + _Out_writes_to_(*lpcchResourceName, *lpcchResourceName + 1) LPWSTR lpszResourceName, + _Inout_ LPDWORD lpcchResourceName, + _Out_writes_to_(*lpcchDeviceName, *lpcchDeviceName + 1) LPWSTR lpszDeviceName, + _Inout_ LPDWORD lpcchDeviceName, + _Out_ LPDWORD lpdwMaxQuorumLogSize + ); + +DWORD +WINAPI +SetClusterQuorumResource( + _In_ HRESOURCE hResource, + _In_opt_ LPCWSTR lpszDeviceName, + _In_ DWORD dwMaxQuoLogSize + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_QUORUM_RESOURCE)( + _In_ HRESOURCE hResource, + _In_opt_ LPCWSTR lpszDeviceName, + _In_ DWORD dwMaxQuoLogSize + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +__success(return == ERROR_SUCCESS) +DWORD +WINAPI +SetClusterQuorumResourceEx( + _In_ HRESOURCE hResource, + _In_opt_ LPCWSTR lpszDeviceName, + _In_ DWORD dwMaxQuorumLogSize, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_QUORUM_RESOURCE_EX)( + _In_ HRESOURCE hResource, + _In_opt_ LPCWSTR lpszDeviceName, + _In_ DWORD dwMaxQuorumLogSize, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +BackupClusterDatabase( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszPathName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_BACKUP_CLUSTER_DATABASE)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszPathName + ); + +DWORD +WINAPI +RestoreClusterDatabase( + _In_ LPCWSTR lpszPathName, + _In_ BOOL bForce, + _In_opt_ LPCWSTR lpszQuorumDriveLetter + ); + +typedef DWORD +(WINAPI * PCLUSAPI_RESTORE_CLUSTER_DATABASE)( + _In_ LPCWSTR lpszPathName, + _In_ BOOL bForce, + _In_opt_ LPCWSTR lpszQuorumDriveLetter + ); + +DWORD +WINAPI +SetClusterNetworkPriorityOrder( + _In_ HCLUSTER hCluster, + _In_ DWORD NetworkCount, + _In_reads_( NetworkCount ) HNETWORK NetworkList[] + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_NETWORK_PRIORITY_ORDER)( + _In_ HCLUSTER hCluster, + _In_ DWORD NetworkCount, + _In_reads_( NetworkCount ) HNETWORK NetworkList[] + ); + +DWORD +WINAPI +SetClusterServiceAccountPassword( + _In_ LPCWSTR lpszClusterName, + _In_ LPCWSTR lpszNewPassword, + _In_ DWORD dwFlags, + _Out_writes_bytes_to_opt_(*lpcbReturnStatusBufferSize, *lpcbReturnStatusBufferSize) PCLUSTER_SET_PASSWORD_STATUS lpReturnStatusBuffer, + _Inout_ LPDWORD lpcbReturnStatusBufferSize + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_SERVICE_ACCOUNT_PASSWORD)( + _In_ LPCWSTR lpszClusterName, + _In_ LPCWSTR lpszNewPassword, + _In_ DWORD dwFlags, + _Out_writes_bytes_to_opt_(*lpcbReturnStatusBufferSize, *lpcbReturnStatusBufferSize) PCLUSTER_SET_PASSWORD_STATUS lpReturnStatusBuffer, + _Inout_ LPDWORD lpcbReturnStatusBufferSize + ); + +DWORD +WINAPI +ClusterControl( + _In_ HCLUSTER hCluster, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_CONTROL)( + _In_ HCLUSTER hCluster, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +ClusterControlEx( + _In_ HCLUSTER hCluster, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_CONTROL_EX)( + _In_ HCLUSTER hCluster, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +typedef enum _CLUSTER_UPGRADE_PHASE { + ClusterUpgradePhaseInitialize = 1, + ClusterUpgradePhaseValidatingUpgrade = 2, + ClusterUpgradePhaseUpgradingComponents = 3, + ClusterUpgradePhaseInstallingNewComponents = 4, + ClusterUpgradePhaseUpgradeComplete = 5 +} CLUSTER_UPGRADE_PHASE; + +typedef BOOL +(WINAPI *PCLUSTER_UPGRADE_PROGRESS_CALLBACK)( + PVOID pvCallbackArg, + CLUSTER_UPGRADE_PHASE eUpgradePhase + ); + +DWORD +WINAPI +ClusterUpgradeFunctionalLevel( + _In_ HCLUSTER hCluster, + _In_ BOOL perform, + _In_opt_ PCLUSTER_UPGRADE_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_UPGRADE)( + _In_ HCLUSTER hCluster, + _In_ BOOL perform, + _In_opt_ PCLUSTER_UPGRADE_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + + +#endif // MIDL_PASS + +// +// Cluster Event Notification API +// + +#ifndef _CLUSTER_API_TYPES_ +// +// Cluster notification enums original +// +typedef enum CLUSTER_CHANGE { + CLUSTER_CHANGE_NODE_STATE = 0x00000001, + CLUSTER_CHANGE_NODE_DELETED = 0x00000002, + CLUSTER_CHANGE_NODE_ADDED = 0x00000004, + CLUSTER_CHANGE_NODE_PROPERTY = 0x00000008, + + CLUSTER_CHANGE_REGISTRY_NAME = 0x00000010, + CLUSTER_CHANGE_REGISTRY_ATTRIBUTES = 0x00000020, + CLUSTER_CHANGE_REGISTRY_VALUE = 0x00000040, + CLUSTER_CHANGE_REGISTRY_SUBTREE = 0x00000080, + + CLUSTER_CHANGE_RESOURCE_STATE = 0x00000100, + CLUSTER_CHANGE_RESOURCE_DELETED = 0x00000200, + CLUSTER_CHANGE_RESOURCE_ADDED = 0x00000400, + CLUSTER_CHANGE_RESOURCE_PROPERTY = 0x00000800, + + CLUSTER_CHANGE_GROUP_STATE = 0x00001000, + CLUSTER_CHANGE_GROUP_DELETED = 0x00002000, + CLUSTER_CHANGE_GROUP_ADDED = 0x00004000, + CLUSTER_CHANGE_GROUP_PROPERTY = 0x00008000, + + CLUSTER_CHANGE_RESOURCE_TYPE_DELETED = 0x00010000, + CLUSTER_CHANGE_RESOURCE_TYPE_ADDED = 0x00020000, + CLUSTER_CHANGE_RESOURCE_TYPE_PROPERTY = 0x00040000, + + CLUSTER_CHANGE_CLUSTER_RECONNECT = 0x00080000, + + CLUSTER_CHANGE_NETWORK_STATE = 0x00100000, + CLUSTER_CHANGE_NETWORK_DELETED = 0x00200000, + CLUSTER_CHANGE_NETWORK_ADDED = 0x00400000, + CLUSTER_CHANGE_NETWORK_PROPERTY = 0x00800000, + + CLUSTER_CHANGE_NETINTERFACE_STATE = 0x01000000, + CLUSTER_CHANGE_NETINTERFACE_DELETED = 0x02000000, + CLUSTER_CHANGE_NETINTERFACE_ADDED = 0x04000000, + CLUSTER_CHANGE_NETINTERFACE_PROPERTY = 0x08000000, + + CLUSTER_CHANGE_QUORUM_STATE = 0x10000000, + CLUSTER_CHANGE_CLUSTER_STATE = 0x20000000, + CLUSTER_CHANGE_CLUSTER_PROPERTY = 0x40000000, + + + CLUSTER_CHANGE_HANDLE_CLOSE = 0x80000000, + + CLUSTER_CHANGE_ALL = (CLUSTER_CHANGE_NODE_STATE | + CLUSTER_CHANGE_NODE_DELETED | + CLUSTER_CHANGE_NODE_ADDED | + CLUSTER_CHANGE_NODE_PROPERTY | + CLUSTER_CHANGE_REGISTRY_NAME | + CLUSTER_CHANGE_REGISTRY_ATTRIBUTES | + CLUSTER_CHANGE_REGISTRY_VALUE | + CLUSTER_CHANGE_REGISTRY_SUBTREE | + CLUSTER_CHANGE_RESOURCE_STATE | + CLUSTER_CHANGE_RESOURCE_DELETED | + CLUSTER_CHANGE_RESOURCE_ADDED | + CLUSTER_CHANGE_RESOURCE_PROPERTY | + CLUSTER_CHANGE_GROUP_STATE | + CLUSTER_CHANGE_GROUP_DELETED | + CLUSTER_CHANGE_GROUP_ADDED | + CLUSTER_CHANGE_GROUP_PROPERTY | + CLUSTER_CHANGE_RESOURCE_TYPE_DELETED | + CLUSTER_CHANGE_RESOURCE_TYPE_ADDED | + CLUSTER_CHANGE_RESOURCE_TYPE_PROPERTY | + CLUSTER_CHANGE_NETWORK_STATE | + CLUSTER_CHANGE_NETWORK_DELETED | + CLUSTER_CHANGE_NETWORK_ADDED | + CLUSTER_CHANGE_NETWORK_PROPERTY | + CLUSTER_CHANGE_NETINTERFACE_STATE | + CLUSTER_CHANGE_NETINTERFACE_DELETED | + CLUSTER_CHANGE_NETINTERFACE_ADDED | + CLUSTER_CHANGE_NETINTERFACE_PROPERTY | + CLUSTER_CHANGE_QUORUM_STATE | + CLUSTER_CHANGE_CLUSTER_STATE | + CLUSTER_CHANGE_CLUSTER_PROPERTY | + CLUSTER_CHANGE_CLUSTER_RECONNECT | + CLUSTER_CHANGE_HANDLE_CLOSE) + +} CLUSTER_CHANGE; + +#if ( CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8 ) +// +// Cluster notification enums V2 +// +typedef enum CLUSTER_NOTIFICATIONS_VERSION { + CLUSTER_NOTIFICATIONS_V1 = 0x00000001, + CLUSTER_NOTIFICATIONS_V2 = 0x00000002 +} CLUSTER_NOTIFICATIONS_VERSION; + +typedef enum CLUSTER_CHANGE_CLUSTER_V2 { + CLUSTER_CHANGE_CLUSTER_RECONNECT_V2 = 0x00000001, + CLUSTER_CHANGE_CLUSTER_STATE_V2 = 0x00000002, + CLUSTER_CHANGE_CLUSTER_GROUP_ADDED_V2 = 0x00000004, + CLUSTER_CHANGE_CLUSTER_HANDLE_CLOSE_V2 = 0x00000008, + CLUSTER_CHANGE_CLUSTER_NETWORK_ADDED_V2 = 0x00000010, + CLUSTER_CHANGE_CLUSTER_NODE_ADDED_V2 = 0x00000020, + CLUSTER_CHANGE_CLUSTER_RESOURCE_TYPE_ADDED_V2 = 0x00000040, + CLUSTER_CHANGE_CLUSTER_COMMON_PROPERTY_V2 = 0x00000080, + CLUSTER_CHANGE_CLUSTER_PRIVATE_PROPERTY_V2 = 0x00000100, + CLUSTER_CHANGE_CLUSTER_LOST_NOTIFICATIONS_V2 = 0x00000200, + CLUSTER_CHANGE_CLUSTER_RENAME_V2 = 0x00000400, + CLUSTER_CHANGE_CLUSTER_MEMBERSHIP_V2 = 0x00000800, + CLUSTER_CHANGE_CLUSTER_UPGRADED_V2 = 0x00001000, + CLUSTER_CHANGE_CLUSTER_ALL_V2 = (CLUSTER_CHANGE_CLUSTER_RECONNECT_V2 | + CLUSTER_CHANGE_CLUSTER_STATE_V2 | + CLUSTER_CHANGE_CLUSTER_GROUP_ADDED_V2 | + CLUSTER_CHANGE_CLUSTER_HANDLE_CLOSE_V2 | + CLUSTER_CHANGE_CLUSTER_NETWORK_ADDED_V2 | + CLUSTER_CHANGE_CLUSTER_NODE_ADDED_V2 | + CLUSTER_CHANGE_CLUSTER_RESOURCE_TYPE_ADDED_V2 | + CLUSTER_CHANGE_CLUSTER_COMMON_PROPERTY_V2 | + CLUSTER_CHANGE_CLUSTER_PRIVATE_PROPERTY_V2 | + CLUSTER_CHANGE_CLUSTER_LOST_NOTIFICATIONS_V2 | + CLUSTER_CHANGE_CLUSTER_RENAME_V2 | + CLUSTER_CHANGE_CLUSTER_MEMBERSHIP_V2 | + CLUSTER_CHANGE_CLUSTER_UPGRADED_V2) +} CLUSTER_CHANGE_CLUSTER_V2; + +typedef enum CLUSTER_CHANGE_GROUP_V2 { + CLUSTER_CHANGE_GROUP_DELETED_V2 = 0x00000001, + CLUSTER_CHANGE_GROUP_COMMON_PROPERTY_V2 = 0x00000002, + CLUSTER_CHANGE_GROUP_PRIVATE_PROPERTY_V2 = 0x00000004, + CLUSTER_CHANGE_GROUP_STATE_V2 = 0x00000008, + CLUSTER_CHANGE_GROUP_OWNER_NODE_V2 = 0x00000010, + CLUSTER_CHANGE_GROUP_PREFERRED_OWNERS_V2 = 0x00000020, + CLUSTER_CHANGE_GROUP_RESOURCE_ADDED_V2 = 0x00000040, + CLUSTER_CHANGE_GROUP_RESOURCE_GAINED_V2 = 0x00000080, + CLUSTER_CHANGE_GROUP_RESOURCE_LOST_V2 = 0x00000100, + CLUSTER_CHANGE_GROUP_HANDLE_CLOSE_V2 = 0x00000200, + CLUSTER_CHANGE_GROUP_ALL_V2 = (CLUSTER_CHANGE_GROUP_DELETED_V2 | + CLUSTER_CHANGE_GROUP_COMMON_PROPERTY_V2 | + CLUSTER_CHANGE_GROUP_PRIVATE_PROPERTY_V2 | + CLUSTER_CHANGE_GROUP_STATE_V2 | + CLUSTER_CHANGE_GROUP_OWNER_NODE_V2 | + CLUSTER_CHANGE_GROUP_PREFERRED_OWNERS_V2 | + CLUSTER_CHANGE_GROUP_RESOURCE_ADDED_V2 | + CLUSTER_CHANGE_GROUP_RESOURCE_GAINED_V2 | + CLUSTER_CHANGE_GROUP_RESOURCE_LOST_V2 | + CLUSTER_CHANGE_GROUP_HANDLE_CLOSE_V2) +} CLUSTER_CHANGE_GROUP_V2; + +typedef enum CLUSTER_CHANGE_GROUPSET_V2 { + CLUSTER_CHANGE_GROUPSET_DELETED_v2 = 0x00000001, + CLUSTER_CHANGE_GROUPSET_COMMON_PROPERTY_V2 = 0x00000002, + CLUSTER_CHANGE_GROUPSET_PRIVATE_PROPERTY_V2 = 0x00000004, + CLUSTER_CHANGE_GROUPSET_STATE_V2 = 0x00000008, + CLUSTER_CHANGE_GROUPSET_GROUP_ADDED = 0x00000010, + CLUSTER_CHANGE_GROUPSET_GROUP_REMOVED = 0x00000020, + CLUSTER_CHANGE_GROUPSET_DEPENDENCIES_V2 = 0x00000040, + CLUSTER_CHANGE_GROUPSET_DEPENDENTS_V2 = 0x00000080, + CLUSTER_CHANGE_GROUPSET_HANDLE_CLOSE_v2 = 0x00000100, + CLUSTER_CHANGE_GROUPSET_ALL_V2 = (CLUSTER_CHANGE_GROUPSET_DELETED_v2 | + CLUSTER_CHANGE_GROUPSET_COMMON_PROPERTY_V2 | + CLUSTER_CHANGE_GROUPSET_PRIVATE_PROPERTY_V2 | + CLUSTER_CHANGE_GROUPSET_STATE_V2 | + CLUSTER_CHANGE_GROUPSET_GROUP_ADDED | + CLUSTER_CHANGE_GROUPSET_GROUP_REMOVED | + CLUSTER_CHANGE_GROUPSET_DEPENDENCIES_V2 | + CLUSTER_CHANGE_GROUPSET_DEPENDENTS_V2 | + CLUSTER_CHANGE_GROUPSET_HANDLE_CLOSE_v2) +} CLUSTER_CHANGE_GROUPSET_V2; + +typedef enum CLUSTER_CHANGE_RESOURCE_V2 { + CLUSTER_CHANGE_RESOURCE_COMMON_PROPERTY_V2 = 0x00000001, + CLUSTER_CHANGE_RESOURCE_PRIVATE_PROPERTY_V2 = 0x00000002, + CLUSTER_CHANGE_RESOURCE_STATE_V2 = 0x00000004, + CLUSTER_CHANGE_RESOURCE_OWNER_GROUP_V2 = 0x00000008, + CLUSTER_CHANGE_RESOURCE_DEPENDENCIES_V2 = 0x00000010, + CLUSTER_CHANGE_RESOURCE_DEPENDENTS_V2 = 0x00000020, + CLUSTER_CHANGE_RESOURCE_POSSIBLE_OWNERS_V2 = 0x00000040, + CLUSTER_CHANGE_RESOURCE_DELETED_V2 = 0x00000080, + CLUSTER_CHANGE_RESOURCE_DLL_UPGRADED_V2 = 0x00000100, + CLUSTER_CHANGE_RESOURCE_HANDLE_CLOSE_V2 = 0x00000200, + CLUSTER_CHANGE_RESOURCE_TERMINAL_STATE_V2 = 0X00000400, + CLUSTER_CHANGE_RESOURCE_ALL_V2 = (CLUSTER_CHANGE_RESOURCE_COMMON_PROPERTY_V2 | + CLUSTER_CHANGE_RESOURCE_PRIVATE_PROPERTY_V2 | + CLUSTER_CHANGE_RESOURCE_STATE_V2 | + CLUSTER_CHANGE_RESOURCE_OWNER_GROUP_V2 | + CLUSTER_CHANGE_RESOURCE_DEPENDENCIES_V2 | + CLUSTER_CHANGE_RESOURCE_DEPENDENTS_V2 | + CLUSTER_CHANGE_RESOURCE_POSSIBLE_OWNERS_V2 | + CLUSTER_CHANGE_RESOURCE_DELETED_V2 | + CLUSTER_CHANGE_RESOURCE_DLL_UPGRADED_V2 | + CLUSTER_CHANGE_RESOURCE_HANDLE_CLOSE_V2 | + CLUSTER_CHANGE_RESOURCE_TERMINAL_STATE_V2 ) +} CLUSTER_CHANGE_RESOURCE_V2; + +typedef enum CLUSTER_CHANGE_RESOURCE_TYPE_V2 { + CLUSTER_CHANGE_RESOURCE_TYPE_DELETED_V2 = 0x00000001, + CLUSTER_CHANGE_RESOURCE_TYPE_COMMON_PROPERTY_V2 = 0x00000002, + CLUSTER_CHANGE_RESOURCE_TYPE_PRIVATE_PROPERTY_V2 = 0x00000004, + CLUSTER_CHANGE_RESOURCE_TYPE_POSSIBLE_OWNERS_V2 = 0x00000008, + CLUSTER_CHANGE_RESOURCE_TYPE_DLL_UPGRADED_V2 = 0x00000010, + CLUSTER_RESOURCE_TYPE_SPECIFIC_V2 = 0x00000020, + CLUSTER_CHANGE_RESOURCE_TYPE_ALL_V2 = (CLUSTER_CHANGE_RESOURCE_TYPE_DELETED_V2 | + CLUSTER_CHANGE_RESOURCE_TYPE_COMMON_PROPERTY_V2 | + CLUSTER_CHANGE_RESOURCE_TYPE_PRIVATE_PROPERTY_V2 | + CLUSTER_CHANGE_RESOURCE_TYPE_POSSIBLE_OWNERS_V2 | + CLUSTER_CHANGE_RESOURCE_TYPE_DLL_UPGRADED_V2 | + CLUSTER_RESOURCE_TYPE_SPECIFIC_V2) +} CLUSTER_CHANGE_RESOURCE_TYPE_V2; + +typedef enum CLUSTER_CHANGE_NETINTERFACE_V2 { + CLUSTER_CHANGE_NETINTERFACE_DELETED_V2 = 0x00000001, + CLUSTER_CHANGE_NETINTERFACE_COMMON_PROPERTY_V2 = 0x00000002, + CLUSTER_CHANGE_NETINTERFACE_PRIVATE_PROPERTY_V2 = 0x00000004, + CLUSTER_CHANGE_NETINTERFACE_STATE_V2 = 0x00000008, + CLUSTER_CHANGE_NETINTERFACE_HANDLE_CLOSE_V2 = 0x00000010, + CLUSTER_CHANGE_NETINTERFACE_ALL_V2 = (CLUSTER_CHANGE_NETINTERFACE_DELETED_V2 | + CLUSTER_CHANGE_NETINTERFACE_COMMON_PROPERTY_V2 | + CLUSTER_CHANGE_NETINTERFACE_PRIVATE_PROPERTY_V2 | + CLUSTER_CHANGE_NETINTERFACE_STATE_V2 | + CLUSTER_CHANGE_NETINTERFACE_HANDLE_CLOSE_V2) +} CLUSTER_CHANGE_NETINTERFACE_V2; + +typedef enum CLUSTER_CHANGE_NETWORK_V2 { + CLUSTER_CHANGE_NETWORK_DELETED_V2 = 0x00000001, + CLUSTER_CHANGE_NETWORK_COMMON_PROPERTY_V2 = 0x00000002, + CLUSTER_CHANGE_NETWORK_PRIVATE_PROPERTY_V2 = 0x00000004, + CLUSTER_CHANGE_NETWORK_STATE_V2 = 0x00000008, + CLUSTER_CHANGE_NETWORK_HANDLE_CLOSE_V2 = 0x00000010, + CLUSTER_CHANGE_NETWORK_ALL_V2 = (CLUSTER_CHANGE_NETWORK_DELETED_V2 | + CLUSTER_CHANGE_NETWORK_COMMON_PROPERTY_V2 | + CLUSTER_CHANGE_NETWORK_PRIVATE_PROPERTY_V2 | + CLUSTER_CHANGE_NETWORK_STATE_V2 | + CLUSTER_CHANGE_NETWORK_HANDLE_CLOSE_V2) +} CLUSTER_CHANGE_NETWORK_V2; + +typedef enum CLUSTER_CHANGE_NODE_V2 { + CLUSTER_CHANGE_NODE_NETINTERFACE_ADDED_V2 = 0x00000001, + CLUSTER_CHANGE_NODE_DELETED_V2 = 0x00000002, + CLUSTER_CHANGE_NODE_COMMON_PROPERTY_V2 = 0x00000004, + CLUSTER_CHANGE_NODE_PRIVATE_PROPERTY_V2 = 0x00000008, + CLUSTER_CHANGE_NODE_STATE_V2 = 0x00000010, + CLUSTER_CHANGE_NODE_GROUP_GAINED_V2 = 0x00000020, + CLUSTER_CHANGE_NODE_GROUP_LOST_V2 = 0x00000040, + CLUSTER_CHANGE_NODE_HANDLE_CLOSE_V2 = 0x00000080, + CLUSTER_CHANGE_NODE_ALL_V2 = (CLUSTER_CHANGE_NODE_NETINTERFACE_ADDED_V2 | + CLUSTER_CHANGE_NODE_DELETED_V2 | + CLUSTER_CHANGE_NODE_COMMON_PROPERTY_V2 | + CLUSTER_CHANGE_NODE_PRIVATE_PROPERTY_V2 | + CLUSTER_CHANGE_NODE_STATE_V2 | + CLUSTER_CHANGE_NODE_GROUP_GAINED_V2 | + CLUSTER_CHANGE_NODE_GROUP_LOST_V2 | + CLUSTER_CHANGE_NODE_HANDLE_CLOSE_V2) +} CLUSTER_CHANGE_NODE_V2; + +typedef enum CLUSTER_CHANGE_REGISTRY_V2 { + CLUSTER_CHANGE_REGISTRY_ATTRIBUTES_V2 = 0x00000001, + CLUSTER_CHANGE_REGISTRY_NAME_V2 = 0x00000002, + CLUSTER_CHANGE_REGISTRY_SUBTREE_V2 = 0x00000004, + CLUSTER_CHANGE_REGISTRY_VALUE_V2 = 0x00000008, + CLUSTER_CHANGE_REGISTRY_HANDLE_CLOSE_V2 = 0x00000010, + CLUSTER_CHANGE_REGISTRY_ALL_V2 = (CLUSTER_CHANGE_REGISTRY_ATTRIBUTES_V2 | + CLUSTER_CHANGE_REGISTRY_NAME_V2 | + CLUSTER_CHANGE_REGISTRY_SUBTREE_V2 | + CLUSTER_CHANGE_REGISTRY_VALUE_V2 | + CLUSTER_CHANGE_REGISTRY_HANDLE_CLOSE_V2) +} CLUSTER_CHANGE_REGISTRY_V2; + +typedef enum CLUSTER_CHANGE_QUORUM_V2 { + CLUSTER_CHANGE_QUORUM_STATE_V2 = 0x00000001, + CLUSTER_CHANGE_QUORUM_ALL_V2 = (CLUSTER_CHANGE_QUORUM_STATE_V2) +} CLUSTER_CHANGE_QUORUM_V2; + +typedef enum CLUSTER_CHANGE_SHARED_VOLUME_V2 { + CLUSTER_CHANGE_SHARED_VOLUME_STATE_V2 = 0x00000001, + CLUSTER_CHANGE_SHARED_VOLUME_ADDED_V2 = 0x00000002, + CLUSTER_CHANGE_SHARED_VOLUME_REMOVED_V2 = 0x00000004, + CLUSTER_CHANGE_SHARED_VOLUME_ALL_V2 = (CLUSTER_CHANGE_SHARED_VOLUME_STATE_V2 | + CLUSTER_CHANGE_SHARED_VOLUME_ADDED_V2 | + CLUSTER_CHANGE_SHARED_VOLUME_REMOVED_V2) +} CLUSTER_CHANGE_SHARED_VOLUME_V2; + +typedef enum CLUSTER_CHANGE_SPACEPORT_V2 { + CLUSTER_CHANGE_SPACEPORT_CUSTOM_PNP_V2 = 0x00000001, +} CLUSTER_CHANGE_SPACEPORT_V2; + +typedef enum CLUSTER_CHANGE_NODE_UPGRADE_PHASE_V2 { + CLUSTER_CHANGE_UPGRADE_NODE_PREPARE = 0x00000001, + CLUSTER_CHANGE_UPGRADE_NODE_COMMIT = 0x00000002, + CLUSTER_CHANGE_UPGRADE_NODE_POSTCOMMIT = 0x00000004, + CLUSTER_CHANGE_UPGRADE_ALL = (CLUSTER_CHANGE_UPGRADE_NODE_PREPARE | + CLUSTER_CHANGE_UPGRADE_NODE_COMMIT | + CLUSTER_CHANGE_UPGRADE_NODE_POSTCOMMIT) +} CLUSTER_CHANGE_NODE_UPGRADE_PHASE_V2; + +typedef enum CLUSTER_OBJECT_TYPE { + CLUSTER_OBJECT_TYPE_NONE = 0x00000000, + CLUSTER_OBJECT_TYPE_CLUSTER = 0x00000001, + CLUSTER_OBJECT_TYPE_GROUP = 0x00000002, + CLUSTER_OBJECT_TYPE_RESOURCE = 0x00000003, + CLUSTER_OBJECT_TYPE_RESOURCE_TYPE = 0x00000004, + CLUSTER_OBJECT_TYPE_NETWORK_INTERFACE = 0x00000005, + CLUSTER_OBJECT_TYPE_NETWORK = 0x00000006, + CLUSTER_OBJECT_TYPE_NODE = 0x00000007, + CLUSTER_OBJECT_TYPE_REGISTRY = 0x00000008, + CLUSTER_OBJECT_TYPE_QUORUM = 0x00000009, + CLUSTER_OBJECT_TYPE_SHARED_VOLUME = 0x0000000a, + CLUSTER_OBJECT_TYPE_GROUPSET = 0x0000000d, + CLUSTER_OBJECT_TYPE_AFFINITYRULE = 0x00000010, + CLUSTER_OBJECT_TYPE_FAULTDOMAIN = 0x00000011, + +} CLUSTER_OBJECT_TYPE; + + +typedef enum CLUSTERSET_OBJECT_TYPE { + CLUSTERSET_OBJECT_TYPE_NONE = 0x00000000, + CLUSTERSET_OBJECT_TYPE_MEMBER = 0x00000001, + CLUSTERSET_OBJECT_TYPE_WORKLOAD = 0x00000002, + CLUSTERSET_OBJECT_TYPE_DATABASE = 0x00000003, +} CLUSTERSET_OBJECT_TYPE; +// +// Cluster notification structs V2 +// +typedef struct _NOTIFY_FILTER_AND_TYPE +{ + DWORD dwObjectType; // Uses CLUSTER_OBJECT_TYPE, but used for RPC so left + // as DWORD + LONGLONG FilterFlags; +} NOTIFY_FILTER_AND_TYPE, *PNOTIFY_FILTER_AND_TYPE; + +// Membership info returned as an array of up nodes +typedef struct _CLUSTER_MEMBERSHIP_INFO { + BOOL HasQuorum; + DWORD UpnodesSize; + BYTE Upnodes[1]; +} CLUSTER_MEMBERSHIP_INFO, *PCLUSTER_MEMBERSHIP_INFO; + +#endif // (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8) + +#endif // _CLUSTER_API_TYPES_ + +#if ( !MIDL_PASS && !__midl ) +#if ( CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8 ) +// +// V2 Notifications DLL Functions +// +HCHANGE +WINAPI +CreateClusterNotifyPortV2( + _In_ HCHANGE hChange, + _In_ HCLUSTER hCluster, + _In_ NOTIFY_FILTER_AND_TYPE * Filters, + _In_ DWORD dwFilterCount, + _In_ DWORD_PTR dwNotifyKey +); + +typedef HCHANGE +(WINAPI * PCLUSAPI_CREATE_CLUSTER_NOTIFY_PORT_V2)( + _In_ HCHANGE hChange, + _In_ HCLUSTER hCluster, + _In_ NOTIFY_FILTER_AND_TYPE * Filters, + _In_ DWORD dwFilterCount, + _In_ DWORD_PTR dwNotifyKey + ); + +DWORD +WINAPI +RegisterClusterNotifyV2( + _In_ HCHANGE hChange, + _In_ NOTIFY_FILTER_AND_TYPE Filter, + _In_ HANDLE hObject, + _In_ DWORD_PTR dwNotifyKey +); + +typedef DWORD +(WINAPI * PCLUSAPI_REGISTER_CLUSTER_NOTIFY_V2)( + _In_ HCHANGE hChange, + _In_ NOTIFY_FILTER_AND_TYPE Filter, + _In_ HANDLE hObject, + _In_ DWORD_PTR dwNotifyKey + ); + +DWORD +WINAPI +GetNotifyEventHandle( + _In_ HCHANGE hChange, + _Out_ LPHANDLE lphTargetEvent + ); + +typedef DWORD +(WINAPI * PCLUSAPI_GET_NOTIFY_EVENT_HANDLE_V2)( + _In_ HCHANGE hChange, + _Out_ LPHANDLE lphTargetEvent + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +GetClusterNotifyV2( + _In_ HCHANGE hChange, + _Out_ DWORD_PTR* lpdwNotifyKey, + _Inout_opt_ PNOTIFY_FILTER_AND_TYPE pFilterAndType, + _Inout_updates_bytes_opt_(*lpbBufferSize) BYTE* buffer, + _Inout_opt_ LPDWORD lpbBufferSize, + _Inout_updates_to_opt_(*lpcchObjectId, *lpcchObjectId + 1 ) LPWSTR lpszObjectId, + _Inout_opt_ LPDWORD lpcchObjectId, + _Inout_updates_to_opt_(*lpcchParentId, *lpcchParentId + 1 ) LPWSTR lpszParentId, + _Inout_opt_ LPDWORD lpcchParentId, + _Inout_updates_to_opt_(*lpcchName, *lpcchName + 1 ) LPWSTR lpszName, + _Inout_opt_ LPDWORD lpcchName, + _Inout_updates_to_opt_(*lpcchType, *lpcchType + 1 ) LPWSTR lpszType, + _Inout_opt_ LPDWORD lpcchType, + _In_opt_ DWORD dwMilliseconds + ); + +typedef DWORD +(WINAPI * PCLUSAPI_GET_CLUSTER_NOTIFY_V2)( + _In_ HCHANGE hChange, + _Out_ DWORD_PTR* lpdwNotifyKey, + _Inout_opt_ PNOTIFY_FILTER_AND_TYPE pFilterAndType, + _Inout_opt_ BYTE* buffer, + _Inout_opt_ LPDWORD lpcchBufferSize, + _Inout_opt_ LPWSTR lpszObjectId, + _Inout_opt_ LPDWORD lpcchObjectId, + _Inout_opt_ LPWSTR lpszParentId, + _Inout_opt_ LPDWORD lpcchParentId, + _Inout_opt_ LPWSTR lpszName, + _Inout_opt_ LPDWORD lpcchName, + _Inout_opt_ LPWSTR lpszType, + _Inout_opt_ LPDWORD lpcchType, + _In_opt_ DWORD dwMilliseconds + ); + + +#endif // (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8) + +// +// Begin original notification DLL function defs +// +HCHANGE +WINAPI +CreateClusterNotifyPort( + _In_ HCHANGE hChange, + _In_ HCLUSTER hCluster, + _In_ DWORD dwFilter, + _In_ DWORD_PTR dwNotifyKey + ); + +typedef HCHANGE +(WINAPI * PCLUSAPI_CREATE_CLUSTER_NOTIFY_PORT)( + _In_ HCHANGE hChange, + _In_ HCLUSTER hCluster, + _In_ DWORD dwFilter, + _In_ DWORD_PTR dwNotifyKey + ); + +DWORD +WINAPI +RegisterClusterNotify( + _In_ HCHANGE hChange, + _In_ DWORD dwFilterType, + _In_ HANDLE hObject, + _In_ DWORD_PTR dwNotifyKey + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REGISTER_CLUSTER_NOTIFY)( + _In_ HCHANGE hChange, + _In_ DWORD dwFilterType, + _In_ HANDLE hObject, + _In_ DWORD_PTR dwNotifyKey + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +GetClusterNotify( + _In_ HCHANGE hChange, + _Out_ DWORD_PTR *lpdwNotifyKey, + _Out_ LPDWORD lpdwFilterType, + _Out_writes_(*lpcchName) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName, + _In_ DWORD dwMilliseconds + ); + +typedef DWORD +(WINAPI * PCLUSAPI_GET_CLUSTER_NOTIFY)( + _In_ HCHANGE hChange, + _Out_ DWORD_PTR *lpdwNotifyKey, + _Out_ LPDWORD lpdwFilterType, + _Out_writes_to_opt_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName, + _In_ DWORD dwMilliseconds + ); + +BOOL +WINAPI +CloseClusterNotifyPort( + _In_ HCHANGE hChange + ); + +typedef BOOL +(WINAPI * PCLUSAPI_CLOSE_CLUSTER_NOTIFY_PORT)( + _In_ HCHANGE hChange + ); + +#endif // MIDL_PASS + +// +// Enumeration routines +// + +#ifndef _CLUSTER_API_TYPES_ +// +// Define enumerable types +// +typedef enum CLUSTER_ENUM { + CLUSTER_ENUM_NODE = 0x00000001, + CLUSTER_ENUM_RESTYPE = 0x00000002, + CLUSTER_ENUM_RESOURCE = 0x00000004, + CLUSTER_ENUM_GROUP = 0x00000008, + CLUSTER_ENUM_NETWORK = 0x00000010, + CLUSTER_ENUM_NETINTERFACE = 0x00000020, + #if (CLUSAPI_VERSION >= CLUSAPI_VERSION_ZN) + CLUSTER_ENUM_CAPACITY_NODE = 0x10000000, + #endif + CLUSTER_ENUM_SHARED_VOLUME_GROUP = 0x20000000, + CLUSTER_ENUM_SHARED_VOLUME_RESOURCE = 0x40000000, + CLUSTER_ENUM_INTERNAL_NETWORK = 0x80000000, + + CLUSTER_ENUM_ALL = (CLUSTER_ENUM_NODE | + CLUSTER_ENUM_RESTYPE | + CLUSTER_ENUM_RESOURCE | + CLUSTER_ENUM_GROUP | + CLUSTER_ENUM_NETWORK | + CLUSTER_ENUM_NETINTERFACE) + +} CLUSTER_ENUM; + +#endif // _CLUSTER_API_TYPES_ + +#if ( !MIDL_PASS && !__midl ) +HCLUSENUM +WINAPI +ClusterOpenEnum( + _In_ HCLUSTER hCluster, + _In_ DWORD dwType + ); + +typedef HCLUSENUM +(WINAPI * PCLUSAPI_CLUSTER_OPEN_ENUM)( + _In_ HCLUSTER hCluster, + _In_ DWORD dwType + ); + +DWORD +WINAPI +ClusterGetEnumCount( + _In_ HCLUSENUM hEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GET_ENUM_COUNT)( + _In_ HCLUSENUM hEnum + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterEnum( + _In_ HCLUSENUM hEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_ENUM)( + _In_ HCLUSENUM hEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +DWORD +WINAPI +ClusterCloseEnum( + _In_ HCLUSENUM hEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_CLOSE_ENUM)( + _In_ HCLUSENUM hEnum + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) + +HCLUSENUMEX +WINAPI +ClusterOpenEnumEx( + _In_ HCLUSTER hCluster, + _In_ DWORD dwType, + _In_opt_ PVOID pOptions + ); + +typedef HCLUSENUMEX +(WINAPI * PCLUSAPI_CLUSTER_OPEN_ENUM_EX)( + _In_ HCLUSTER hCluster, + _In_ DWORD dwType, + _In_opt_ PVOID pOptions + ); + +DWORD +WINAPI +ClusterGetEnumCountEx( + _In_ HCLUSENUMEX hClusterEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GET_ENUM_COUNT_EX)( + _In_ HCLUSENUMEX hClusterEnum + ); + +DWORD +WINAPI +ClusterEnumEx( + _In_ HCLUSENUMEX hClusterEnum, + _In_ DWORD dwIndex, + _Inout_ PCLUSTER_ENUM_ITEM pItem, + _Inout_ LPDWORD cbItem + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_ENUM_EX)( + _In_ HCLUSENUMEX hClusterEnum, + _In_ DWORD dwIndex, + _Inout_ PCLUSTER_ENUM_ITEM pItem, + _Inout_ LPDWORD cbItem + ); + +DWORD +WINAPI +ClusterCloseEnumEx( + _In_ HCLUSENUMEX hClusterEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_CLOSE_ENUM_EX)( + _In_ HCLUSENUMEX hClusterEnum + ); + +#endif // CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2 + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD) + +// Group Set StatusInformation Flags; These flags are set only by Cluster Service Only; + +#define CLUSGROUPSET_STATUS_GROUPS_PENDING 0x0000000000000001 +#define CLUSGROUPSET_STATUS_GROUPS_ONLINE 0x0000000000000002 +#define CLUSGROUPSET_STATUS_OS_HEARTBEAT 0x0000000000000004 +#define CLUSGROUPSET_STATUS_APPLICATION_READY 0x0000000000000008 + +HGROUPSET +WINAPI +CreateClusterGroupSet( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR groupSetName + ); + +typedef HGROUPSET +(WINAPI * PCLUSAPI_CREATE_CLUSTER_GROUP_GROUPSET)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszGroupSetName + ); + +HGROUPSET +WINAPI +OpenClusterGroupSet( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszGroupSetName + ); + +typedef HGROUPSET +(WINAPI * PCLUSAPI_OPEN_CLUSTER_GROUP_GROUPSET)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszGroupSetName + ); + +BOOL +WINAPI +CloseClusterGroupSet( + _In_ HGROUPSET hGroupSet + ); + +typedef BOOL +(WINAPI * PCLUSAPI_CLOSE_CLUSTER_GROUP_GROUPSET)( + _In_ HGROUPSET hGroupSet + ); + +DWORD +WINAPI +DeleteClusterGroupSet( + _In_ HGROUPSET hGroupSet + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DELETE_CLUSTER_GROUP_GROUPSET)( + _In_ HGROUPSET hGroupSet + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +DeleteClusterGroupSetEx( + _In_ HGROUPSET hGroupSet, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DELETE_CLUSTER_GROUP_GROUPSET_EX)( + _In_ HGROUPSET hGroupSet, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +ClusterAddGroupToGroupSet( + _In_ HGROUPSET hGroupSet, + _In_ HGROUP hGroup + ); + +DWORD +WINAPI +ClusterAddGroupToGroupSetWithDomains( + _In_ HGROUPSET hGroupSet, + _In_ HGROUP hGroup, + _In_ DWORD faultDomain, + _In_ DWORD updateDomain + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_ADD_GROUP_TO_GROUP_GROUPSET)( + _In_ HGROUPSET hGroupSet, + _In_ HGROUP hGroup + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +ClusterAddGroupToGroupSetWithDomainsEx( + _In_ HGROUPSET hGroupSet, + _In_ HGROUP hGroup, + _In_ DWORD faultDomain, + _In_ DWORD updateDomain, + _In_opt_ LPCWSTR lpszReason + ); + + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_ADD_GROUP_TO_GROUPSET_WITH_DOMAINS_EX)( + _In_ HGROUPSET hGroupSet, + _In_ HGROUP hGroup, + _In_ DWORD faultDomain, + _In_ DWORD updateDomain, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +ClusterRemoveGroupFromGroupSet( + _In_ HGROUP hGroup + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_REMOVE_GROUP_FROM_GROUPSET)( + _In_ HGROUPSET hGroupSet + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +ClusterRemoveGroupFromGroupSetEx( + _In_ HGROUP hGroup, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_REMOVE_GROUP_FROM_GROUPSET_EX)( + _In_ HGROUPSET hGroupSet, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +ClusterGroupSetControl( + _In_ HGROUPSET hGroupSet, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GROUP_GROUPSET_CONTROL)( + _In_ HGROUPSET hGroupSet, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +__success( return == ERROR_SUCCESS ) +DWORD +WINAPI +ClusterGroupSetControlEx( + _In_ HGROUPSET hGroupSet, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GROUP_GROUPSET_CONTROL_EX)( + _In_ HGROUPSET hGroupSet, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +AddClusterGroupDependency( + _In_ HGROUP hDependentGroup, + _In_ HGROUP hProviderGroup + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CLUSTER_GROUP_DEPENDENCY)( + _In_ HGROUP hDependentGroup, + _In_ HGROUP hProviderGroup + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +AddClusterGroupDependencyEx( + _In_ HGROUP hDependentGroup, + _In_ HGROUP hProviderGroup, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CLUSTER_GROUP_DEPENDENCY_EX)( + _In_ HGROUP hDependentGroup, + _In_ HGROUP hProviderGroup, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +SetGroupDependencyExpression( + _In_ HGROUP hGroup, + _In_ LPCWSTR lpszDependencyExpression + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_GROUP_DEPENDENCY_EXPRESSION)( + _In_ HGROUP hGroupSet, + _In_ LPCWSTR lpszDependencyExpression + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +SetGroupDependencyExpressionEx( + _In_ HGROUP hGroup, + _In_ LPCWSTR lpszDependencyExpression, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_GROUP_DEPENDENCY_EXPRESSION_EX)( + _In_ HGROUP hGroup, + _In_ LPCWSTR lpszDependencyExpression, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +RemoveClusterGroupDependency( + _In_ HGROUP hGroup, + _In_ HGROUP hDependsOn + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CLUSTER_GROUP_DEPENDENCY)( + _In_ HGROUP hGroup, + _In_ HGROUP hDependsOn + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +RemoveClusterGroupDependencyEx( + _In_ HGROUP hGroup, + _In_ HGROUP hDependsOn, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CLUSTER_GROUP_DEPENDENCY_EX)( + _In_ HGROUP hGroup, + _In_ HGROUP hDependsOn, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +AddClusterGroupSetDependency( + _In_ HGROUPSET hDependentGroupSet, + _In_ HGROUPSET hProviderGroupSet + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CLUSTER_GROUP_GROUPSET_DEPENDENCY)( + _In_ HGROUPSET hDependentGroupSet, + _In_ HGROUPSET hProviderGroupSet + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +AddClusterGroupSetDependencyEx( + _In_ HGROUPSET hDependentGroupSet, + _In_ HGROUPSET hProviderGroupSet, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CLUSTER_GROUP_GROUPSET_DEPENDENCY_EX)( + _In_ HGROUPSET hDependentGroupSet, + _In_ HGROUPSET hProviderGroupSet, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +SetClusterGroupSetDependencyExpression( + _In_ HGROUPSET hGroupSet, + _In_ LPCWSTR lpszDependencyExprssion + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_GROUP_GROUPSET_DEPENDENCY_EXPRESSION)( + _In_ HGROUPSET hGroupSet, + _In_ LPCWSTR lpszDependencyExpression + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +SetClusterGroupSetDependencyExpressionEx( + _In_ HGROUPSET hGroupSet, + _In_ LPCWSTR lpszDependencyExpression, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_GROUP_GROUPSET_DEPENDENCY_EXPRESSION_EX)( + _In_ HGROUPSET hGroupSet, + _In_ LPCWSTR lpszDependencyExpression, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +RemoveClusterGroupSetDependency( + _In_ HGROUPSET hGroupSet, + _In_ HGROUPSET hDependsOn + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CLUSTER_GROUP_GROUPSET_DEPENDENCY)( + _In_ HGROUPSET hGroupSet, + _In_ HGROUPSET hDependsOn + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +RemoveClusterGroupSetDependencyEx( + _In_ HGROUPSET hGroupSet, + _In_ HGROUPSET hDependsOn, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CLUSTER_GROUP_GROUPSET_DEPENDENCY_EX)( + _In_ HGROUPSET hGroupSet, + _In_ HGROUPSET hDependsOn, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +AddClusterGroupToGroupSetDependency( + _In_ HGROUP hDependentGroup, + _In_ HGROUPSET hProviderGroupSet + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CLUSTER_GROUP_TO_GROUP_GROUPSET_DEPENDENCY)( + _In_ HGROUP hDependentGroup, + _In_ HGROUPSET hProviderGroupSet + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +AddClusterGroupToGroupSetDependencyEx( + _In_ HGROUP hDependentGroup, + _In_ HGROUPSET hProviderGroupSet, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CLUSTER_GROUP_TO_GROUP_GROUPSET_DEPENDENCY_EX)( + _In_ HGROUP hDependentGroup, + _In_ HGROUPSET hProviderGroupSet, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +RemoveClusterGroupToGroupSetDependency( + _In_ HGROUP hGroup, + _In_ HGROUPSET hDependsOn + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CLUSTER_GROUP_TO_GROUP_GROUPSET_DEPENDENCY)( + _In_ HGROUP hGroup, + _In_ HGROUPSET hDependsOn + ); + + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +RemoveClusterGroupToGroupSetDependencyEx( + _In_ HGROUP hGroup, + _In_ HGROUPSET hDependsOn, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CLUSTER_GROUP_TO_GROUP_GROUPSET_DEPENDENCY_EX)( + _In_ HGROUP hGroup, + _In_ HGROUPSET hDependsOn, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +HGROUPSETENUM +WINAPI + ClusterGroupSetOpenEnum( + IN HCLUSTER hCluster + ); + +DWORD +WINAPI + ClusterGroupSetGetEnumCount( + IN HGROUPSETENUM hGroupSetEnum + ); + +__success(return == ERROR_SUCCESS) +DWORD +WINAPI + ClusterGroupSetEnum( + _In_ HGROUPSETENUM hGroupSetEnum, + _In_ DWORD dwIndex, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +DWORD +WINAPI +ClusterGroupSetCloseEnum( + IN HGROUPSETENUM hGroupSetEnum + ); + +HCLUSTER +WINAPI +GetClusterFromGroupSet( + _In_ HGROUPSET hGroupSet + ); + +typedef HCLUSTER +(WINAPI * PCLUSAPI_GET_CLUSTER_FROM_GROUP_GROUPSET)( + _In_ HGROUPSET hGroupSet + ); + +DWORD +WINAPI +AddCrossClusterGroupSetDependency( + _In_ HGROUPSET hDependentGroupSet, + _In_ LPCWSTR lpRemoteClusterName, + _In_ LPCWSTR lpRemoteGroupSetName +); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CROSS_CLUSTER_GROUPSET_DEPENDENCY)( + _In_ HGROUPSET hDependentGroupSet, + _In_ LPCWSTR lpRemoteClusterName, + _In_ LPCWSTR lpRemoteGroupSetName +); + +DWORD +WINAPI +RemoveCrossClusterGroupSetDependency( + _In_ HGROUPSET hDependentGroupSet, + _In_ LPCWSTR lpRemoteClusterName, + _In_ LPCWSTR lpRemoteGroupSetName +); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CROSS_CLUSTER_GROUPSET_DEPENDENCY)( + _In_ HGROUPSET hDependentGroupSet, + _In_ LPCWSTR lpRemoteClusterName, + _In_ LPCWSTR lpRemoteGroupSetName +); + +#define CLUSTER_AVAILABILITY_SET_CONFIG_V1 0x00000001 + +typedef struct CLUSTER_AVAILABILITY_SET_CONFIG +{ + DWORD dwVersion; + DWORD dwUpdateDomains; + DWORD dwFaultDomains; + BOOL bReserveSpareNode; +} CLUSTER_AVAILABILITY_SET_CONFIG, *PCLUSTER_AVAILABILITY_SET_CONFIG; + +HGROUPSET +WINAPI +CreateClusterAvailabilitySet( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpAvailabilitySetName, + _In_ PCLUSTER_AVAILABILITY_SET_CONFIG pAvailabilitySetConfig +); + +typedef HGROUPSET +(WINAPI *PCLUSAPI_CREATE_CLUSTER_AVAILABILITY_SET)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpAvailabilitySetName, + _In_ PCLUSTER_AVAILABILITY_SET_CONFIG pAvailabilitySetConfig +); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterNodeReplacement( + __in HCLUSTER hCluster, + __in LPCWSTR lpszNodeNameCurrent, + __in LPCWSTR lpszNodeNameNew); + + +// affinity rule + +DWORD +WINAPI +ClusterCreateAffinityRule( + __in HCLUSTER hCluster, + __in LPCWSTR ruleName, + __in CLUS_AFFINITY_RULE_TYPE ruleType +); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_CREATE_AFFINITY_RULE)( + __in HCLUSTER hCluster, + __in LPCWSTR ruleName, + __in CLUS_AFFINITY_RULE_TYPE ruleType +); + +DWORD +WINAPI +ClusterRemoveAffinityRule( + __in HCLUSTER hCluster, + __in LPCWSTR ruleName +); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_REMOVE_AFFINITY_RULE)( + __in HCLUSTER hCluster, + __in LPCWSTR ruleName +); + +DWORD +WINAPI +ClusterAddGroupToAffinityRule( + __in HCLUSTER hCluster, + __in LPCWSTR ruleName, + __in HGROUP hGroup +); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_ADD_GROUP_TO_AFFINITY_RULE)( + __in HCLUSTER hCluster, + __in LPCWSTR ruleName, + __in HGROUP hGroup +); + +DWORD +WINAPI +ClusterRemoveGroupFromAffinityRule( + __in HCLUSTER hCluster, + __in LPCWSTR ruleName, + __in HGROUP hGroup +); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_REMOVE_GROUP_FROM_AFFINITY_RULE)( + __in HCLUSTER hCluster, + __in LPCWSTR ruleName, + __in HGROUP hGroup +); + +DWORD +WINAPI +ClusterAffinityRuleControl( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR affinityRuleName, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_AFFINITY_RULE_CONTROL)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR affinityRuleName, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned +); + + +#endif //(CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD) + +#endif // MIDL_PASS + + +#ifndef _CLUSTER_API_TYPES_ +// +// Define enumerable node types +// +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) + +typedef enum CLUSTER_NODE_ENUM { + CLUSTER_NODE_ENUM_NETINTERFACES = 0x00000001, + CLUSTER_NODE_ENUM_GROUPS = 0x00000002, + CLUSTER_NODE_ENUM_PREFERRED_GROUPS = 0x00000004, + + CLUSTER_NODE_ENUM_ALL = (CLUSTER_NODE_ENUM_NETINTERFACES | + CLUSTER_NODE_ENUM_GROUPS) +} CLUSTER_NODE_ENUM; + +#else + +typedef enum CLUSTER_NODE_ENUM { + CLUSTER_NODE_ENUM_NETINTERFACES = 0x00000001, + + CLUSTER_NODE_ENUM_ALL = (CLUSTER_NODE_ENUM_NETINTERFACES) + +} CLUSTER_NODE_ENUM; + +#endif + +// +// Node-related structures and types. +// +typedef enum CLUSTER_NODE_STATE { + ClusterNodeStateUnknown = -1, + ClusterNodeUp, + ClusterNodeDown, + ClusterNodePaused, + ClusterNodeJoining +} CLUSTER_NODE_STATE; + +#if (CLUSAPI_VERSION > CLUSAPI_VERSION_WINTHRESHOLD) + +// +// StorageNode-related structures and types. +// +typedef enum CLUSTER_STORAGENODE_STATE { + ClusterStorageNodeStateUnknown = 0, + ClusterStorageNodeUp, + ClusterStorageNodeDown, + ClusterStorageNodePaused, + ClusterStorageNodeStarting, + ClusterStorageNodeStopping, +} CLUSTER_STORAGENODE_STATE; + +#endif + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8) + +typedef enum CLUSTER_NODE_DRAIN_STATUS { + NodeDrainStatusNotInitiated = 0, + NodeDrainStatusInProgress, + NodeDrainStatusCompleted, + NodeDrainStatusFailed, + ClusterNodeDrainStatusCount +} CLUSTER_NODE_DRAIN_STATUS; + +#endif //CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8 + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD) + +typedef enum CLUSTER_NODE_STATUS +{ + NodeStatusNormal = 0x0, + NodeStatusIsolated = 0x1, + NodeStatusQuarantined = 0x2, + NodeStatusDrainInProgress = 0x4, + NodeStatusDrainCompleted = 0x8, + NodeStatusDrainFailed = 0x10, + NodeStatusAvoidPlacement = 0x20, + NodeStatusMax = (NodeStatusIsolated | NodeStatusQuarantined | NodeStatusDrainFailed | NodeStatusAvoidPlacement) +} CLUSTER_NODE_STATUS; + +#endif //CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +typedef enum CLUSTER_NODE_FAILBACK_STATUS { + NodeFailbackStatusNotInitiated = 0, + NodeFailbackStatusInProgress, + NodeFailbackStatusCompleted, + NodeFailbackStatusFailed, + ClusterNodeFailbackStatusCount +} CLUSTER_NODE_FAILBACK_STATUS; + +#endif //CLUSAPI_VERSION >= CLUSAPI_VERSION_NI + +#endif // _CLUSTER_API_TYPES_ + +// +// Interfaces for managing the nodes of a cluster. +// + +#if ( !MIDL_PASS && !__midl ) +HNODE +WINAPI +OpenClusterNode( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNodeName + ); + +typedef HNODE +(WINAPI * PCLUSAPI_OPEN_CLUSTER_NODE)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNodeName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +HNODE +WINAPI +OpenClusterNodeEx( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszNodeName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ DWORD* lpdwGrantedAccess + ); + +typedef HNODE +(WINAPI * PCLUSAPI_OPEN_CLUSTER_NODE_EX)( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszNodeName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ LPDWORD lpdwGrantedAccess + ); +#endif + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD) +HNODE +WINAPI +OpenClusterNodeById( + __in HCLUSTER hCluster, + __in DWORD nodeId + ); + +typedef HNODE +(WINAPI * PCLUSAPI_OPEN_NODE_BY_ID)( + __in HCLUSTER hCluster, + __in DWORD nodeId + ); +#endif + +BOOL +WINAPI +CloseClusterNode( + _In_ HNODE hNode + ); + +typedef BOOL +(WINAPI * PCLUSAPI_CLOSE_CLUSTER_NODE)( + _In_ HNODE hNode + ); + +CLUSTER_NODE_STATE +WINAPI +GetClusterNodeState( + _In_ HNODE hNode + ); + +typedef CLUSTER_NODE_STATE +(WINAPI * PCLUSAPI_GET_CLUSTER_NODE_STATE)( + _In_ HNODE hNode + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +GetClusterNodeId( + _In_opt_ HNODE hNode, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszNodeId, + _Inout_ LPDWORD lpcchName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_GET_CLUSTER_NODE_ID)( + _In_opt_ HNODE hNode, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszNodeId, + _Inout_ LPDWORD lpcchName + ); + +#define GetCurrentClusterNodeId(_lpszNodeId_, _lpcchName_) \ + GetClusterNodeId(NULL, (_lpszNodeId_), (_lpcchName_)) + +HCLUSTER +WINAPI +GetClusterFromNode( + _In_ HNODE hNode + ); + +typedef HCLUSTER +(WINAPI * PCLUSAPI_GET_CLUSTER_FROM_NODE)( + _In_ HNODE hNode + ); + +DWORD +WINAPI +PauseClusterNode( + _In_ HNODE hNode + ); + +typedef DWORD +(WINAPI * PCLUSAPI_PAUSE_CLUSTER_NODE)( + _In_ HNODE hNode + ); + +DWORD +WINAPI +ResumeClusterNode( + _In_ HNODE hNode + ); + +typedef DWORD +(WINAPI * PCLUSAPI_RESUME_CLUSTER_NODE)( + _In_ HNODE hNode + ); + +DWORD +WINAPI +EvictClusterNode( + _In_ HNODE hNode + ); + +typedef DWORD +(WINAPI * PCLUSAPI_EVICT_CLUSTER_NODE)( + _In_ HNODE hNode + ); + +HNETINTERFACEENUM +WINAPI +ClusterNetInterfaceOpenEnum( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszNodeName, + _In_opt_ LPCWSTR lpszNetworkName + ); + +__success(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterNetInterfaceEnum( + _In_ HNETINTERFACEENUM hNetInterfaceEnum, + _In_ DWORD dwIndex, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName +); + +DWORD +WINAPI +ClusterNetInterfaceCloseEnum( + _In_ HNETINTERFACEENUM hNetInterfaceEnum +); + +HNODEENUM +WINAPI +ClusterNodeOpenEnum( + _In_ HNODE hNode, + _In_ DWORD dwType + ); + +typedef HNODEENUM +(WINAPI * PCLUSAPI_CLUSTER_NODE_OPEN_ENUM)( + _In_ HNODE hNode, + _In_ DWORD dwType + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) + +HNODEENUMEX +WINAPI +ClusterNodeOpenEnumEx( + _In_ HNODE hNode, + _In_ DWORD dwType, + _In_opt_ PVOID pOptions + ); + +typedef HNODEENUMEX +(WINAPI * PCLUSAPI_CLUSTER_NODE_OPEN_ENUM_EX)( + _In_ HNODE hNode, + _In_ DWORD dwType, + _In_opt_ PVOID pOptions + ); + +DWORD +WINAPI +ClusterNodeGetEnumCountEx( + _In_ HNODEENUMEX hNodeEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NODE_GET_ENUM_COUNT_EX)( + _In_ HNODEENUMEX hNodeEnum + ); + +DWORD +WINAPI +ClusterNodeEnumEx( + _In_ HNODEENUMEX hNodeEnum, + _In_ DWORD dwIndex, + _Inout_ PCLUSTER_ENUM_ITEM pItem, + _Inout_ LPDWORD cbItem + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NODE_ENUM_EX)( + _In_ HNODEENUMEX hNodeEnum, + _In_ DWORD dwIndex, + _Inout_ PCLUSTER_ENUM_ITEM pItem, + _Inout_ LPDWORD cbItem + ); + +DWORD +WINAPI +ClusterNodeCloseEnumEx( + _In_ HNODEENUMEX hNodeEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NODE_CLOSE_ENUM_EX)( + _In_ HNODEENUMEX hNodeEnum + ); + +#endif + +DWORD +WINAPI +ClusterNodeGetEnumCount( + _In_ HNODEENUM hNodeEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NODE_GET_ENUM_COUNT)( + _In_ HNODEENUM hNodeEnum + ); + +DWORD +WINAPI +ClusterNodeCloseEnum( + _In_ HNODEENUM hNodeEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NODE_CLOSE_ENUM)( + _In_ HNODEENUM hNodeEnum + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterNodeEnum( + _In_ HNODEENUM hNodeEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NODE_ENUM)( + _In_ HNODEENUM hNodeEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +DWORD +WINAPI +EvictClusterNodeEx( + _In_ HNODE hNode, + _In_ DWORD dwTimeOut, + _Out_ HRESULT * phrCleanupStatus + ); + +typedef DWORD +(WINAPI * PCLUSAPI_EVICT_CLUSTER_NODE_EX)( + _In_ HNODE hNode, + _In_ DWORD dwTimeOut, + _Out_ HRESULT * phrCleanupStatus + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +EvictClusterNodeEx2( + _In_ HNODE hNode, + _In_ DWORD dwTimeout, + _Out_ HRESULT* phrCleanupStatus, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_EVICT_CLUSTER_NODE_EX2)( + _In_ HNODE hNode, + _In_ DWORD dwTimeout, + _Out_ HRESULT* phrCleanupStatus, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +#endif // MIDL_PASS + + +// +// Interfaces for managing the resource types in a cluster +// + +#if ( !MIDL_PASS && !__midl ) +HKEY +WINAPI +GetClusterResourceTypeKey( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszTypeName, + _In_ REGSAM samDesired + ); + +typedef HKEY +(WINAPI * PCLUSAPI_GET_CLUSTER_RESOURCE_TYPE_KEY)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszTypeName, + _In_ REGSAM samDesired + ); + +#endif // MIDL_PASS + +#ifndef _CLUSTER_API_TYPES_ +// +// Define enumerable group types +// +typedef enum CLUSTER_GROUP_ENUM { + CLUSTER_GROUP_ENUM_CONTAINS = 0x00000001, + CLUSTER_GROUP_ENUM_NODES = 0x00000002, + + CLUSTER_GROUP_ENUM_ALL = (CLUSTER_GROUP_ENUM_CONTAINS | + CLUSTER_GROUP_ENUM_NODES) +} CLUSTER_GROUP_ENUM; + +// +// Interfaces for managing the failover groups in a cluster. +// +typedef enum CLUSTER_GROUP_STATE { + ClusterGroupStateUnknown = -1, + ClusterGroupOnline, + ClusterGroupOffline, + ClusterGroupFailed, + ClusterGroupPartialOnline, + ClusterGroupPending +} CLUSTER_GROUP_STATE; + +typedef enum CLUSTER_GROUP_PRIORITY +{ + PriorityDisabled = 0, // Groups with disabled priorities do not auto-start + PriorityLow = 1000, + PriorityMedium = 2000, + PriorityHigh = 3000, +} CLUSTER_GROUP_PRIORITY; + +typedef enum CLUSTER_GROUP_AUTOFAILBACK_TYPE +{ + ClusterGroupPreventFailback = 0, + ClusterGroupAllowFailback, + ClusterGroupFailbackTypeCount +} CLUSTER_GROUP_AUTOFAILBACK_TYPE, CGAFT; + + +#if CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8 + +#define CLUSTER_GROUP_ENUM_ITEM_VERSION_1 0x00000001 +#define CLUSTER_GROUP_ENUM_ITEM_VERSION CLUSTER_GROUP_ENUM_ITEM_VERSION_1 + +typedef struct _CLUSTER_GROUP_ENUM_ITEM { + DWORD dwVersion; + DWORD cbId; + LPWSTR lpszId; + DWORD cbName; + LPWSTR lpszName; + CLUSTER_GROUP_STATE state; + DWORD cbOwnerNode; + LPWSTR lpszOwnerNode; + DWORD dwFlags; + DWORD cbProperties; + PVOID pProperties; + DWORD cbRoProperties; + PVOID pRoProperties; +} CLUSTER_GROUP_ENUM_ITEM, *PCLUSTER_GROUP_ENUM_ITEM; + +#define CLUSTER_RESOURCE_ENUM_ITEM_VERSION_1 0x00000001 +#define CLUSTER_RESOURCE_ENUM_ITEM_VERSION CLUSTER_RESOURCE_ENUM_ITEM_VERSION_1 + +typedef struct _CLUSTER_RESOURCE_ENUM_ITEM { + DWORD dwVersion; + DWORD cbId; + LPWSTR lpszId; + DWORD cbName; + LPWSTR lpszName; + DWORD cbOwnerGroupName; + LPWSTR lpszOwnerGroupName; + DWORD cbOwnerGroupId; + LPWSTR lpszOwnerGroupId; + DWORD cbProperties; + PVOID pProperties; + DWORD cbRoProperties; + PVOID pRoProperties; +} CLUSTER_RESOURCE_ENUM_ITEM, *PCLUSTER_RESOURCE_ENUM_ITEM; + +#endif // CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8 + +#endif // _CLUSTER_API_TYPES_ + +#if ( !MIDL_PASS && !__midl ) +HGROUP +WINAPI +CreateClusterGroup( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszGroupName + ); + +typedef HGROUP +(WINAPI * PCLUSAPI_CREATE_CLUSTER_GROUP)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszGroupName + ); + +HGROUP +WINAPI +OpenClusterGroup( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszGroupName + ); + +typedef HGROUP +(WINAPI * PCLUSAPI_OPEN_CLUSTER_GROUP)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszGroupName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +HGROUP +WINAPI +OpenClusterGroupEx( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszGroupName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ DWORD* lpdwGrantedAccess + ); + +typedef HGROUP +(WINAPI * PCLUSAPI_OPEN_CLUSTER_GROUP_EX)( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszGroupName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ LPDWORD lpdwGrantedAccess + ); + +#endif + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8) + +// flags for PauseClusterNodeEx +#define CLUSAPI_NODE_PAUSE_REMAIN_ON_PAUSED_NODE_ON_MOVE_ERROR 0x00000001 +#define CLUSAPI_NODE_AVOID_PLACEMENT 0x00000002 +#define CLUSAPI_NODE_PAUSE_RETRY_DRAIN_ON_FAILURE 0x00000004 + + +DWORD +WINAPI +PauseClusterNodeEx( + _In_ HNODE hNode, + _In_ BOOL bDrainNode, + _In_ DWORD dwPauseFlags, + _In_opt_ HNODE hNodeDrainTarget + ); + +typedef DWORD +(WINAPI * PCLUSAPI_PAUSE_CLUSTER_NODE_EX)( + _In_ HNODE hNode, + _In_ BOOL bDrainNode, + _In_ DWORD dwPauseFlags, + _In_opt_ HNODE hNodeDrainTarget + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +PauseClusterNodeEx2( + _In_ HNODE hNode, + _In_ BOOL bDrainNode, + _In_ DWORD dwPauseFlags, + _In_opt_ HNODE hNodeDrainTarget, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_PAUSE_CLUSTER_NODE_EX2)( + _In_ HNODE hNode, + _In_ BOOL bDrainNode, + _In_ DWORD dwPauseFlags, + _In_opt_ HNODE hNodeDrainTarget, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +typedef enum CLUSTER_NODE_RESUME_FAILBACK_TYPE +{ + DoNotFailbackGroups = 0, + FailbackGroupsImmediately, + FailbackGroupsPerPolicy, + ClusterNodeResumeFailbackTypeCount +} CLUSTER_NODE_RESUME_FAILBACK_TYPE; + +// flags for ResumeClusterNodeEx +#define CLUSAPI_NODE_RESUME_FAILBACK_STORAGE 0x00000001 +#define CLUSAPI_NODE_RESUME_FAILBACK_VMS 0x00000002 +#define CLUSAPI_NODE_RESUME_FAILBACK_PINNED_VMS_ONLY 0x00000004 +#define CLUSAPI_NODE_RESUME_FAILBACK_VMS_FORCEFULLY 0x00000008 + + +DWORD +WINAPI +ResumeClusterNodeEx( + _In_ HNODE hNode, + _In_ CLUSTER_NODE_RESUME_FAILBACK_TYPE eResumeFailbackType, + _In_ DWORD dwResumeFlagsReserved + ); + +typedef DWORD +(WINAPI * PCLUSAPI_RESUME_CLUSTER_NODE_EX)( + _In_ HNODE hNode, + _In_ CLUSTER_NODE_RESUME_FAILBACK_TYPE eResumeFailbackType, + _In_ DWORD dwResumeFlagsReserved + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +ResumeClusterNodeEx2( + _In_ HNODE hNode, + _In_ CLUSTER_NODE_RESUME_FAILBACK_TYPE eResumeFailbackType, + _In_ DWORD dwResumeFlagsReserved, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_RESUME_CLUSTER_NODE_EX2)( + _In_ HNODE hNode, + _In_ CLUSTER_NODE_RESUME_FAILBACK_TYPE eResumeFailbackType, + _In_ DWORD dwResumeFlagsReserved, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +// Group StatusInformation Flags; These flags are set only by Cluster Service Only; +#define CLUSGRP_STATUS_LOCKED_MODE 0x0000000000000001 +#define CLUSGRP_STATUS_PREEMPTED 0x0000000000000002 +#define CLUSGRP_STATUS_WAITING_IN_QUEUE_FOR_MOVE 0x0000000000000004 +#define CLUSGRP_STATUS_PHYSICAL_RESOURCES_LACKING 0x0000000000000008 +#define CLUSGRP_STATUS_WAITING_TO_START 0x0000000000000010 +#define CLUSGRP_STATUS_EMBEDDED_FAILURE 0x0000000000000020 +#define CLUSGRP_STATUS_OFFLINE_DUE_TO_ANTIAFFINITY_CONFLICT 0x0000000000000040 +#define CLUSGRP_STATUS_NETWORK_FAILURE 0x0000000000000080 +#define CLUSGRP_STATUS_UNMONITORED 0x0000000000000100 +#define CLUSGRP_STATUS_OS_HEARTBEAT 0x0000000000000200 +#define CLUSGRP_STATUS_APPLICATION_READY 0x0000000000000400 +#define CLUSGRP_STATUS_OFFLINE_NOT_LOCAL_DISK_OWNER 0x0000000000000800 +#define CLUSGRP_STATUS_WAITING_FOR_DEPENDENCIES 0x0000000000001000 + +HGROUP +WINAPI +CreateClusterGroupEx( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszGroupName, + _In_opt_ PCLUSTER_CREATE_GROUP_INFO pGroupInfo + ); + +typedef HGROUP +(WINAPI * PCLUSAPI_CREATE_CLUSTER_GROUPEX)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszGroupName, + _In_opt_ PCLUSTER_CREATE_GROUP_INFO pGroupInfo + ); + +HGROUPENUMEX +WINAPI +ClusterGroupOpenEnumEx( + _In_ HCLUSTER hCluster, + _In_reads_bytes_opt_(cbProperties)LPCWSTR lpszProperties, + _In_ DWORD cbProperties, + _In_reads_bytes_opt_(cbRoProperties) LPCWSTR lpszRoProperties, + _In_ DWORD cbRoProperties, + _In_ DWORD dwFlags + ); + +typedef HGROUPENUMEX +(WINAPI * PCLUSAPI_CLUSTER_GROUP_OPEN_ENUM_EX)( + _In_ HCLUSTER hCluster, + _In_reads_bytes_opt_(cbProperties)LPCWSTR lpszProperties, + _In_ DWORD cbProperties, + _In_reads_bytes_opt_(cbRoProperties) LPCWSTR lpszRoProperties, + _In_ DWORD cbRoProperties, + _In_ DWORD dwFlags + ); + +DWORD +WINAPI +ClusterGroupGetEnumCountEx( + _In_ HGROUPENUMEX hGroupEnumEx + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GROUP_GET_ENUM_COUNT_EX)( + _In_ HGROUPENUMEX hGroupEnumEx + ); + +DWORD +WINAPI +ClusterGroupEnumEx( + _In_ HGROUPENUMEX hGroupEnumEx, + _In_ DWORD dwIndex, + _Inout_ PCLUSTER_GROUP_ENUM_ITEM pItem, + _Inout_ LPDWORD cbItem + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GROUP_ENUM_EX)( + _In_ HGROUPENUMEX hGroupEnumEx, + _In_ DWORD dwIndex, + _Inout_ PCLUSTER_GROUP_ENUM_ITEM pItem, + _Inout_ LPDWORD cbItem + ); + +DWORD +WINAPI +ClusterGroupCloseEnumEx( + _In_ HGROUPENUMEX hGroupEnumEx + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GROUP_CLOSE_ENUM_EX)( + _In_ HGROUPENUMEX hGroupEnumEx + ); + +// Resource StatusInformation Flags; These are set by Cluster Service Only; +#define CLUSRES_STATUS_LOCKED_MODE 0x0000000000000001 +#define CLUSRES_STATUS_EMBEDDED_FAILURE 0x0000000000000002 +#define CLUSRES_STATUS_FAILED_DUE_TO_INSUFFICIENT_CPU 0x0000000000000004 +#define CLUSRES_STATUS_FAILED_DUE_TO_INSUFFICIENT_MEMORY 0x0000000000000008 +#define CLUSRES_STATUS_FAILED_DUE_TO_INSUFFICIENT_GENERIC_RESOURCES 0x0000000000000010 +#define CLUSRES_STATUS_NETWORK_FAILURE 0x0000000000000020 +#define CLUSRES_STATUS_UNMONITORED 0x0000000000000040 +#define CLUSRES_STATUS_OS_HEARTBEAT 0x0000000000000080 +#define CLUSRES_STATUS_APPLICATION_READY 0x0000000000000100 +#define CLUSRES_STATUS_OFFLINE_NOT_LOCAL_DISK_OWNER 0x0000000000000200 + +HRESENUMEX +WINAPI +ClusterResourceOpenEnumEx( + _In_ HCLUSTER hCluster, + _In_reads_bytes_opt_(cbProperties)LPCWSTR lpszProperties, + _In_ DWORD cbProperties, + _In_reads_bytes_opt_(cbRoProperties) LPCWSTR lpszRoProperties, + _In_ DWORD cbRoProperties, + _In_ DWORD dwFlags + ); + +typedef HRESENUMEX +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_OPEN_ENUM_EX)( + _In_ HCLUSTER hCluster, + _In_reads_bytes_opt_(cbProperties)LPCWSTR lpszProperties, + _In_ DWORD cbProperties, + _In_reads_bytes_opt_(cbRoProperties) LPCWSTR lpszRoProperties, + _In_ DWORD cbRoProperties, + _In_ DWORD dwFlags + ); + +DWORD +WINAPI +ClusterResourceGetEnumCountEx( + _In_ HRESENUMEX hResourceEnumEx + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_GET_ENUM_COUNT_EX)( + _In_ HRESENUMEX hResourceEnumEx + ); + +DWORD +WINAPI +ClusterResourceEnumEx( + _In_ HRESENUMEX hResourceEnumEx, + _In_ DWORD dwIndex, + _Inout_ PCLUSTER_RESOURCE_ENUM_ITEM pItem, + _Inout_ LPDWORD cbItem + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_ENUM_EX)( + _In_ HRESENUMEX hResourceEnumEx, + _In_ DWORD dwIndex, + _Inout_ PCLUSTER_RESOURCE_ENUM_ITEM pItem, + _Inout_ LPDWORD cbItem + ); + +DWORD +WINAPI +ClusterResourceCloseEnumEx( + _In_ HRESENUMEX hResourceEnumEx + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_CLOSE_ENUM_EX)( + _In_ HRESENUMEX hResourceEnumEx + ); + +#define CLUSAPI_GROUP_ONLINE_IGNORE_RESOURCE_STATUS 0x00000001 +#define CLUSAPI_GROUP_ONLINE_SYNCHRONOUS 0x00000002 +#define CLUSAPI_GROUP_ONLINE_BEST_POSSIBLE_NODE 0x00000004 +#define CLUSAPI_GROUP_ONLINE_IGNORE_AFFINITY_RULE 0x00000008 + +DWORD WINAPI OnlineClusterGroupEx( + _In_ HGROUP hGroup, + _In_opt_ HNODE hDestinationNode, + _In_ DWORD dwOnlineFlags, + _In_reads_bytes_opt_(cbInBufferSize) PBYTE lpInBuffer, + _In_ DWORD cbInBufferSize + ); + + +#define CLUSAPI_GROUP_OFFLINE_IGNORE_RESOURCE_STATUS 0x00000001 + +DWORD WINAPI OfflineClusterGroupEx( + _In_ HGROUP hGroup, + _In_ DWORD dwOfflineFlags, + _In_reads_bytes_opt_(cbInBufferSize) PBYTE lpInBuffer, + _In_ DWORD cbInBufferSize + ); + + +#define CLUSAPI_RESOURCE_ONLINE_IGNORE_RESOURCE_STATUS 0x00000001 +#define CLUSAPI_RESOURCE_ONLINE_DO_NOT_UPDATE_PERSISTENT_STATE 0x00000002 +#define CLUSAPI_RESOURCE_ONLINE_NECESSARY_FOR_QUORUM 0x00000004 +#define CLUSAPI_RESOURCE_ONLINE_BEST_POSSIBLE_NODE 0x00000008 + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +OnlineClusterGroupEx2( + _In_ HGROUP hGroup, + _In_opt_ HNODE hDestinationNode, + _In_ DWORD dwOnlineFlags, + _In_reads_bytes_opt_(cbInBufferSize) PBYTE lpInBuffer, + _In_ DWORD cbInBufferSize, + _In_opt_ LPCWSTR lpszReason + ); + +DWORD +WINAPI +OfflineClusterGroupEx2( + __in HGROUP hGroup, + __in DWORD dwOfflineFlags, + __in_opt PBYTE lpInBuffer, + __in DWORD cbInBufferSize, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + + +#define CLUSAPI_RESOURCE_ONLINE_IGNORE_AFFINITY_RULE 0x00000020 + + +DWORD WINAPI OnlineClusterResourceEx( + _In_ HRESOURCE hResource, + _In_ DWORD dwOnlineFlags, + _In_reads_bytes_opt_(cbInBufferSize) PBYTE lpInBuffer, + _In_ DWORD cbInBufferSize + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +OnlineClusterResourceEx2( + _In_ HRESOURCE hResource, + _In_ DWORD dwOnlineFlags, + _In_reads_bytes_opt_(cbInBufferSize) PBYTE lpInBuffer, + _In_ DWORD cbInBufferSize, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +#define CLUSAPI_RESOURCE_OFFLINE_IGNORE_RESOURCE_STATUS 0x00000001 +#define CLUSAPI_RESOURCE_OFFLINE_FORCE_WITH_TERMINATION 0x00000002 +#define CLUSAPI_RESOURCE_OFFLINE_DO_NOT_UPDATE_PERSISTENT_STATE 0x00000004 + +// these are passed through the RHS offline resource call for V2 and later resources +#define CLUSAPI_RESOURCE_OFFLINE_REASON_NONE 0x00000000 +#define CLUSAPI_RESOURCE_OFFLINE_REASON_UNKNOWN 0x00000001 +#define CLUSAPI_RESOURCE_OFFLINE_REASON_MOVING 0x00000002 +#define CLUSAPI_RESOURCE_OFFLINE_REASON_USER_REQUESTED 0x00000004 +#define CLUSAPI_RESOURCE_OFFLINE_REASON_BEING_DELETED 0x00000008 +#define CLUSAPI_RESOURCE_OFFLINE_REASON_BEING_RESTARTED 0x00000010 +#define CLUSAPI_RESOURCE_OFFLINE_REASON_PREEMPTED 0x00000020 +#define CLUSAPI_RESOURCE_OFFLINE_REASON_SHUTTING_DOWN 0x00000040 + +DWORD WINAPI OfflineClusterResourceEx( + _In_ HRESOURCE hResource, + _In_ DWORD dwOfflineFlags, + _In_reads_bytes_opt_(cbInBufferSize) PBYTE lpInBuffer, + _In_ DWORD cbInBufferSize + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +OfflineClusterResourceEx2( + _In_ HRESOURCE hResource, + _In_ DWORD dwOfflineFlags, + _In_reads_bytes_opt_(cbInBufferSize) PBYTE lpInBuffer, + _In_ DWORD cbInBufferSize, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +#define CLUSAPI_GROUP_MOVE_IGNORE_RESOURCE_STATUS 0x00000001 +#define CLUSAPI_GROUP_MOVE_RETURN_TO_SOURCE_NODE_ON_ERROR 0x00000002 +#define CLUSAPI_GROUP_MOVE_QUEUE_ENABLED 0x00000004 +#define CLUSAPI_GROUP_MOVE_HIGH_PRIORITY_START 0x00000008 +#define CLUSAPI_GROUP_MOVE_FAILBACK 0x00000010 +#define CLUSAPI_GROUP_MOVE_IGNORE_AFFINITY_RULE 0x00000020 + + +#define CLUSAPI_CHANGE_RESOURCE_GROUP_FORCE_MOVE_TO_CSV 0x0000000000000001 +#define CLUSAPI_VALID_CHANGE_RESOURCE_GROUP_FLAGS (CLUSAPI_CHANGE_RESOURCE_GROUP_FORCE_MOVE_TO_CSV) + +DWORD +WINAPI +MoveClusterGroupEx( + _In_ HGROUP hGroup, + _In_opt_ HNODE hDestinationNode, + _In_ DWORD dwMoveFlags, + _In_reads_bytes_opt_(cbInBufferSize) PBYTE lpInBuffer, + _In_ DWORD cbInBufferSize + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +MoveClusterGroupEx2( + _In_ HGROUP hGroup, + _In_opt_ HNODE hDestinationNode, + _In_ DWORD dwMoveFlags, + _In_reads_bytes_opt_(cbInBufferSize) PBYTE lpInBuffer, + _In_ DWORD cbInBufferSize, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + + +DWORD WINAPI CancelClusterGroupOperation( + _In_ HGROUP hGroup, + _In_ DWORD dwCancelFlags_RESERVED + ); + +DWORD WINAPI RestartClusterResource( + _In_ HRESOURCE hResource, + _In_ DWORD dwFlags + ); + +typedef DWORD +(WINAPI * PCLUSAPI_RESTART_CLUSTER_RESOURCE)( + HRESOURCE hResource, + DWORD dwFlags + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +RestartClusterResourceEx( + _In_ HRESOURCE hResource, + _In_ DWORD dwFlags, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_RESTART_CLUSTER_RESOURCE_EX)( + HRESOURCE hResource, + DWORD dwFlags + ); + +#endif + +#endif // (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8) + +BOOL +WINAPI +CloseClusterGroup( + _In_ HGROUP hGroup + ); + +typedef BOOL +(WINAPI * PCLUSAPI_CLOSE_CLUSTER_GROUP)( + _In_ HGROUP hGroup + ); + +HCLUSTER +WINAPI +GetClusterFromGroup( + _In_ HGROUP hGroup + ); + +typedef HCLUSTER +(WINAPI * PCLUSAPI_GET_CLUSTER_FROM_GROUP)( + _In_ HGROUP hGroup + ); + +_Success_(return >= 0) //!= ClusterGroupStateUnknown +CLUSTER_GROUP_STATE +WINAPI +GetClusterGroupState( + _In_ HGROUP hGroup, + _Out_writes_to_opt_(*lpcchNodeName, *lpcchNodeName + 1) LPWSTR lpszNodeName, + _Inout_opt_ LPDWORD lpcchNodeName + ); + +typedef CLUSTER_GROUP_STATE +(WINAPI * PCLUSAPI_GET_CLUSTER_GROUP_STATE)( + _In_ HGROUP hGroup, + _Out_writes_to_opt_(*lpcchNodeName, *lpcchNodeName + 1) LPWSTR lpszNodeName, + _Inout_opt_ LPDWORD lpcchNodeName + ); + +DWORD +WINAPI +SetClusterGroupName( + _In_ HGROUP hGroup, + _In_ LPCWSTR lpszGroupName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_GROUP_NAME)( + HGROUP hGroup, + LPCWSTR lpszGroupName + ); + +DWORD +WINAPI +SetClusterGroupNodeList( + _In_ HGROUP hGroup, + _In_ DWORD NodeCount, + _In_reads_opt_( NodeCount ) HNODE NodeList[] + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_GROUP_NODE_LIST)( + _In_ HGROUP hGroup, + _In_ DWORD NodeCount, + _In_reads_opt_( NodeCount ) HNODE NodeList[] + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +SetClusterGroupNameEx( + _In_ HGROUP hGroup, + _In_ LPCWSTR lpszGroupName, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_GROUP_NAME_EX)( + _In_ HGROUP hGroup, + _In_ LPCWSTR lpszGroupName, + _In_opt_ LPCWSTR lpszReason + ); + +DWORD +WINAPI +SetClusterGroupNodeListEx( + __in HGROUP hGroup, + __in DWORD NodeCount, + __in_ecount( NodeCount ) HNODE NodeList[], + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_GROUP_NODE_LIST_EX)( + _In_ HGROUP hGroup, + _In_ DWORD NodeCount, + _In_reads_opt_( NodeCount ) HNODE NodeList[], + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +OnlineClusterGroup( + _In_ HGROUP hGroup, + _In_opt_ HNODE hDestinationNode + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ONLINE_CLUSTER_GROUP)( + _In_ HGROUP hGroup, + _In_opt_ HNODE hDestinationNode + ); + +DWORD +WINAPI +MoveClusterGroup( + _In_ HGROUP hGroup, + _In_opt_ HNODE hDestinationNode + ); + +typedef DWORD +(WINAPI * PCLUSAPI_MOVE_CLUSTER_GROUP)( + _In_ HGROUP hGroup, + _In_opt_ HNODE hDestinationNode + ); + +DWORD +WINAPI +OfflineClusterGroup( + _In_ HGROUP hGroup + ); + +typedef DWORD +(WINAPI * PCLUSAPI_OFFLINE_CLUSTER_GROUP)( + HGROUP hGroup + ); + +DWORD +WINAPI +DeleteClusterGroup( + _In_ HGROUP hGroup + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DELETE_CLUSTER_GROUP)( + HGROUP hGroup + ); + +DWORD +WINAPI +DestroyClusterGroup( + _In_ HGROUP hGroup + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DESTROY_CLUSTER_GROUP)( + HGROUP hGroup + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +DeleteClusterGroupEx( + _In_ HGROUP hGroup, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DELETE_CLUSTER_GROUP_EX)( + _In_ HGROUP hGroup, + _In_opt_ LPCWSTR lpszReason + ); + +DWORD +WINAPI +DestroyClusterGroupEx( + _In_ HGROUP hGroup, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DESTROY_CLUSTER_GROUP_EX)( + _In_ HGROUP hGroup, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +HGROUPENUM +WINAPI +ClusterGroupOpenEnum( + _In_ HGROUP hGroup, + _In_ DWORD dwType + ); + +typedef HGROUPENUM +(WINAPI * PCLUSAPI_CLUSTER_GROUP_OPEN_ENUM)( + HGROUP hGroup, + DWORD dwType + ); + +DWORD +WINAPI +ClusterGroupGetEnumCount( + _In_ HGROUPENUM hGroupEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GROUP_GET_ENUM_COUNT)( + _In_ HGROUPENUM hGroupEnum + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterGroupEnum( + _In_ HGROUPENUM hGroupEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszResourceName, + _Inout_ LPDWORD lpcchName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GROUP_ENUM)( + _In_ HGROUPENUM hGroupEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszResourceName, + _Inout_ LPDWORD lpcchName + ); + +DWORD +WINAPI +ClusterGroupCloseEnum( + _In_ HGROUPENUM hGroupEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GROUP_CLOSE_ENUM)( + HGROUPENUM hGroupEnum + ); + +#endif // MIDL_PASS + + +// +// Definitions used in resource management routines. +// + +#ifndef _CLUSTER_API_TYPES_ +// +// Resource-related structures and types +// +typedef enum CLUSTER_RESOURCE_STATE { + ClusterResourceStateUnknown = -1, + ClusterResourceInherited, + ClusterResourceInitializing, + ClusterResourceOnline, + ClusterResourceOffline, + ClusterResourceFailed, + ClusterResourcePending = 128, + ClusterResourceOnlinePending, + ClusterResourceOfflinePending +} CLUSTER_RESOURCE_STATE; + +typedef enum CLUSTER_RESOURCE_RESTART_ACTION { + ClusterResourceDontRestart = 0, + ClusterResourceRestartNoNotify, + ClusterResourceRestartNotify, + ClusterResourceRestartActionCount +} CLUSTER_RESOURCE_RESTART_ACTION, CRRA; + +typedef enum CLUSTER_RESOURCE_EMBEDDED_FAILURE_ACTION { + ClusterResourceEmbeddedFailureActionNone = 0, + ClusterResourceEmbeddedFailureActionLogOnly = 1, + ClusterResourceEmbeddedFailureActionRecover +} CLUSTER_RESOURCE_EMBEDDED_FAILURE_ACTION; + +// +// Flags for resource creation +// +typedef enum CLUSTER_RESOURCE_CREATE_FLAGS { + CLUSTER_RESOURCE_DEFAULT_MONITOR = 0, + CLUSTER_RESOURCE_SEPARATE_MONITOR = 1, + CLUSTER_RESOURCE_VALID_FLAGS = CLUSTER_RESOURCE_SEPARATE_MONITOR +} CLUSTER_RESOURCE_CREATE_FLAGS; + +typedef enum CLUSTER_SHARED_VOLUME_SNAPSHOT_STATE { + ClusterSharedVolumeSnapshotStateUnknown, + ClusterSharedVolumePrepareForHWSnapshot, + ClusterSharedVolumeHWSnapshotCompleted, + ClusterSharedVolumePrepareForFreeze +} CLUSTER_SHARED_VOLUME_SNAPSHOT_STATE; + +#endif // _CLUSTER_API_TYPES_ + +// +// Interfaces for managing the resources in a cluster +// + +#if ( !MIDL_PASS && !__midl ) +HRESOURCE +WINAPI +CreateClusterResource( + _In_ HGROUP hGroup, + _In_ LPCWSTR lpszResourceName, + _In_ LPCWSTR lpszResourceType, + _In_ DWORD dwFlags + ); + +typedef HRESOURCE +(WINAPI * PCLUSAPI_CREATE_CLUSTER_RESOURCE)( + HGROUP hGroup, + LPCWSTR lpszResourceName, + LPCWSTR lpszResourceType, + DWORD dwFlags + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +HRESOURCE +WINAPI +CreateClusterResourceEx( + _In_ HGROUP hGroup, + _In_ LPCWSTR lpszResourceName, + _In_ LPCWSTR lpszResourceType, + _In_ DWORD dwFlags, + _In_opt_ LPCWSTR lpszReason + ); + +typedef HRESOURCE +(WINAPI * PCLUSAPI_CREATE_CLUSTER_RESOURCE_EX)( + _In_ HGROUP hGroup, + _In_ LPCWSTR lpszResourceName, + _In_ LPCWSTR lpszResourceType, + _In_ DWORD dwFlags, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +HRESOURCE +WINAPI +OpenClusterResource( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceName + ); + +typedef HRESOURCE +(WINAPI * PCLUSAPI_OPEN_CLUSTER_RESOURCE)( + HCLUSTER hCluster, + LPCWSTR lpszResourceName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +HRESOURCE +WINAPI +OpenClusterResourceEx( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszResourceName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ DWORD* lpdwGrantedAccess + ); + +typedef HRESOURCE +(WINAPI * PCLUSAPI_OPEN_CLUSTER_RESOURCE_EX)( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszResourceName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ LPDWORD lpdwGrantedAccess + ); +#endif + +BOOL +WINAPI +CloseClusterResource( + _In_ HRESOURCE hResource + ); + +typedef BOOL +(WINAPI * PCLUSAPI_CLOSE_CLUSTER_RESOURCE)( + HRESOURCE hResource + ); + +HCLUSTER +WINAPI +GetClusterFromResource( + _In_ HRESOURCE hResource + ); + +typedef HCLUSTER +(WINAPI * PCLUSAPI_GET_CLUSTER_FROM_RESOURCE)( + _In_ HRESOURCE hResource + ); + +DWORD +WINAPI +DeleteClusterResource( + _In_ HRESOURCE hResource + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DELETE_CLUSTER_RESOURCE)( + HRESOURCE hResource + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +DeleteClusterResourceEx( + _In_ HRESOURCE hResource, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DELETE_CLUSTER_RESOURCE_EX)( + _In_ HRESOURCE hResource, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +_Success_(return >= 0) // != ClusterResourceStateUnknown +CLUSTER_RESOURCE_STATE +WINAPI +GetClusterResourceState( + _In_ HRESOURCE hResource, + _Out_writes_to_opt_(*lpcchNodeName, *lpcchNodeName) LPWSTR lpszNodeName, + _Inout_opt_ LPDWORD lpcchNodeName, + _Out_writes_to_opt_(*lpcchGroupName, *lpcchGroupName) LPWSTR lpszGroupName, + _Inout_opt_ LPDWORD lpcchGroupName + ); + +typedef CLUSTER_RESOURCE_STATE +(WINAPI * PCLUSAPI_GET_CLUSTER_RESOURCE_STATE)( + _In_ HRESOURCE hResource, + _Out_writes_to_opt_(*lpcchNodeName, *lpcchNodeName) LPWSTR lpszNodeName, + _Inout_opt_ LPDWORD lpcchNodeName, + _Out_writes_to_opt_(*lpcchGroupName, *lpcchGroupName) LPWSTR lpszGroupName, + _Inout_opt_ LPDWORD lpcchGroupName + ); + +DWORD +WINAPI +SetClusterResourceName( + _In_ HRESOURCE hResource, + _In_ LPCWSTR lpszResourceName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_RESOURCE_NAME)( + HRESOURCE hResource, + LPCWSTR lpszResourceName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +SetClusterResourceNameEx( + _In_ HRESOURCE hResource, + _In_ LPCWSTR lpszResourceName, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_RESOURCE_NAME_EX)( + _In_ HRESOURCE hResource, + _In_ LPCWSTR lpszResourceName, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +FailClusterResource( + _In_ HRESOURCE hResource + ); + +typedef DWORD +(WINAPI * PCLUSAPI_FAIL_CLUSTER_RESOURCE)( + HRESOURCE hResource + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +FailClusterResourceEx( + _In_ HRESOURCE hResource, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_FAIL_CLUSTER_RESOURCE_EX)( + _In_ HRESOURCE hResource, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +OnlineClusterResource( + _In_ HRESOURCE hResource + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ONLINE_CLUSTER_RESOURCE)( + HRESOURCE hResource + ); + +DWORD +WINAPI +OfflineClusterResource( + _In_ HRESOURCE hResource + ); + +typedef DWORD +(WINAPI * PCLUSAPI_OFFLINE_CLUSTER_RESOURCE)( + HRESOURCE hResource + ); + +DWORD +WINAPI +ChangeClusterResourceGroup( + _In_ HRESOURCE hResource, + _In_ HGROUP hGroup + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CHANGE_CLUSTER_RESOURCE_GROUP)( + HRESOURCE hResource, + HGROUP hGroup + ); + +DWORD +WINAPI +ChangeClusterResourceGroupEx( + _In_ HRESOURCE hResource, + _In_ HGROUP hGroup, + _In_ ULONGLONG Flags + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CHANGE_CLUSTER_RESOURCE_GROUP_EX)( + HRESOURCE hResource, + HGROUP hGroup, + _In_ ULONGLONG Flags + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +ChangeClusterResourceGroupEx2( + _In_ HRESOURCE hResource, + _In_ HGROUP hGroup, + _In_ ULONGLONG Flags, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CHANGE_CLUSTER_RESOURCE_GROUP_EX2)( + _In_ HRESOURCE hResource, + _In_ HGROUP hGroup, + _In_ ULONGLONG Flags, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +AddClusterResourceNode( + _In_ HRESOURCE hResource, + _In_ HNODE hNode + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CLUSTER_RESOURCE_NODE)( + HRESOURCE hResource, + HNODE hNode + ); + +DWORD +WINAPI +RemoveClusterResourceNode( + _In_ HRESOURCE hResource, + _In_ HNODE hNode + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CLUSTER_RESOURCE_NODE)( + HRESOURCE hResource, + HNODE hNode + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +AddClusterResourceNodeEx( + _In_ HRESOURCE hResource, + _In_ HNODE hNode, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CLUSTER_RESOURCE_NODE_EX)( + _In_ HRESOURCE hResource, + _In_ HNODE hNode, + _In_opt_ LPCWSTR lpszReason + ); + +DWORD +WINAPI +RemoveClusterResourceNodeEx( + _In_ HRESOURCE hResource, + _In_ HNODE hNode, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CLUSTER_RESOURCE_NODE_EX)( + _In_ HRESOURCE hResource, + _In_ HNODE hNode, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +AddClusterResourceDependency( + _In_ HRESOURCE hResource, + _In_ HRESOURCE hDependsOn + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CLUSTER_RESOURCE_DEPENDENCY)( + HRESOURCE hResource, + HRESOURCE hDependsOn + ); + +DWORD +WINAPI +RemoveClusterResourceDependency( + _In_ HRESOURCE hResource, + _In_ HRESOURCE hDependsOn + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CLUSTER_RESOURCE_DEPENDENCY)( + HRESOURCE hResource, + HRESOURCE hDependsOn + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +AddClusterResourceDependencyEx( + _In_ HRESOURCE hResource, + _In_ HRESOURCE hDependsOn, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_CLUSTER_RESOURCE_DEPENDENCY_EX)( + _In_ HRESOURCE hResource, + _In_ HRESOURCE hDependsOn, + _In_opt_ LPCWSTR lpszReason + ); + +DWORD +WINAPI +RemoveClusterResourceDependencyEx( + _In_ HRESOURCE hResource, + _In_ HRESOURCE hDependsOn, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_CLUSTER_RESOURCE_DEPENDENCY_EX)( + _In_ HRESOURCE hResource, + _In_ HRESOURCE hDependsOn, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +DWORD +WINAPI +SetClusterResourceDependencyExpression( + _In_ HRESOURCE hResource, + _In_ LPCWSTR lpszDependencyExpression + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_RESOURCE_DEPENDENCY_EXPRESSION)( + _In_ HRESOURCE hResource, + _In_ LPCWSTR lpszDependencyExpression + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +GetClusterResourceDependencyExpression( + _In_ HRESOURCE hResource, + _Out_writes_to_opt_(*lpcchDependencyExpression, *lpcchDependencyExpression + 1) + LPWSTR lpszDependencyExpression, + _Inout_ LPDWORD lpcchDependencyExpression + ); + +typedef DWORD +(WINAPI * PCLUSAPI_GET_CLUSTER_RESOURCE_DEPENDENCY_EXPRESSION)( + _In_ HRESOURCE hResource, + _Out_writes_to_opt_(*lpcchDependencyExpression, *lpcchDependencyExpression + 1) + LPWSTR lpszDependencyExpression, + _Inout_ LPDWORD lpcchDependencyExpression + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +DWORD +WINAPI +AddResourceToClusterSharedVolumes( + _In_ HRESOURCE hResource + ); +#endif + +typedef DWORD +(WINAPI * PCLUSAPI_ADD_RESOURCE_TO_CLUSTER_SHARED_VOLUMES)( + _In_ HRESOURCE hResource + ); + + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +DWORD +WINAPI +RemoveResourceFromClusterSharedVolumes( + _In_ HRESOURCE hResource + ); +#endif + +typedef DWORD +(WINAPI * PCLUSAPI_REMOVE_RESOURCE_FROM_CLUSTER_SHARED_VOLUMES)( + _In_ HRESOURCE hResource + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +DWORD +WINAPI +IsFileOnClusterSharedVolume( + _In_ LPCWSTR lpszPathName, + _Out_ PBOOL pbFileIsOnSharedVolume + ); +#endif + +typedef DWORD +(WINAPI *PCLUSAPI_IS_FILE_ON_CLUSTER_SHARED_VOLUME)( + _In_ LPCWSTR lpszPathName, + _Out_ PBOOL pbFileIsOnSharedVolume + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +DWORD +WINAPI +ClusterSharedVolumeSetSnapshotState( + _In_ GUID guidSnapshotSet, + _In_ LPCWSTR lpszVolumeName, + _In_ CLUSTER_SHARED_VOLUME_SNAPSHOT_STATE state + ); +#endif + +typedef DWORD +(WINAPI *PCLUSAPI_SHARED_VOLUME_SET_SNAPSHOT_STATE)( + _In_ GUID guidSnapshotSet, + _In_ LPCWSTR lpszVolumeName, + _In_ CLUSTER_SHARED_VOLUME_SNAPSHOT_STATE state + ); + +BOOL +WINAPI +CanResourceBeDependent( + _In_ HRESOURCE hResource, + _In_ HRESOURCE hResourceDependent + ); + +typedef BOOL +(WINAPI * PCLUSAPI_CAN_RESOURCE_BE_DEPENDENT)( + HRESOURCE hResource, + HRESOURCE hResourceDependent + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterResourceControl( + _In_ HRESOURCE hResource, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_CONTROL)( + _In_ HRESOURCE hResource, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterResourceControlAsUser( + _In_ HRESOURCE hResource, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterResourceTypeControl( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_TYPE_CONTROL)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterResourceTypeControlAsUser( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterGroupControl( + _In_ HGROUP hGroup, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GROUP_CONTROL)( + _In_ HGROUP hGroup, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +__success(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterResourceControlEx( + _In_ HRESOURCE hResource, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_CONTROL_EX)( + _In_ HRESOURCE hResource, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +__success(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterResourceControlAsUserEx( + _In_ HRESOURCE hResource, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_CONTROL_AS_USER_EX)( + _In_ HRESOURCE hResource, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(cbInBufferSize) LPVOID lpInBuffer, + _In_ DWORD cbInBufferSize, + _Out_writes_bytes_to_opt_(cbOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD cbOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +__success(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterResourceTypeControlEx( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_TYPE_CONTROL_EX)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +__success(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterResourceTypeControlAsUserEx( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_TYPE_CONTROL_AS_USER_EX)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +__success(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterGroupControlEx( + _In_ HGROUP hGroup, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_GROUP_CONTROL_EX)( + _In_ HGROUP hGroup, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterNodeControl( + _In_ HNODE hNode, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NODE_CONTROL)( + _In_ HNODE hNode, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +__success(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterNodeControlEx( + _In_ HNODE hNode, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NODE_CONTROL_EX)( + _In_ HNODE hNode, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +_Success_(return != FALSE) +BOOL +WINAPI +GetClusterResourceNetworkName( + _In_ HRESOURCE hResource, + _Out_writes_to_(*nSize, *nSize + 1) LPWSTR lpBuffer, + _Inout_ LPDWORD nSize + ); + +typedef BOOL +(WINAPI * PCLUSAPI_GET_CLUSTER_RESOURCE_NETWORK_NAME)( + _In_ HRESOURCE hResource, + _Out_writes_to_(*nSize, *nSize + 1) LPWSTR lpBuffer, + _Inout_ LPDWORD nSize + ); + + +#endif // MIDL_PASS + + +// +// Cluster control properties +// + +#ifndef _CLUSTER_API_TYPES_ +// +// Cluster Control Property Data - Types (a WORD) +// +typedef enum CLUSTER_PROPERTY_TYPE { + CLUSPROP_TYPE_UNKNOWN = -1, + CLUSPROP_TYPE_ENDMARK = 0, + CLUSPROP_TYPE_LIST_VALUE, + CLUSPROP_TYPE_RESCLASS, + CLUSPROP_TYPE_RESERVED1, + CLUSPROP_TYPE_NAME, + CLUSPROP_TYPE_SIGNATURE, + CLUSPROP_TYPE_SCSI_ADDRESS, + CLUSPROP_TYPE_DISK_NUMBER, + CLUSPROP_TYPE_PARTITION_INFO, + CLUSPROP_TYPE_FTSET_INFO, + CLUSPROP_TYPE_DISK_SERIALNUMBER, + CLUSPROP_TYPE_DISK_GUID, + CLUSPROP_TYPE_DISK_SIZE, + CLUSPROP_TYPE_PARTITION_INFO_EX, + CLUSPROP_TYPE_PARTITION_INFO_EX2, + CLUSPROP_TYPE_STORAGE_DEVICE_ID_DESCRIPTOR, + + + CLUSPROP_TYPE_USER=32768 +} CLUSTER_PROPERTY_TYPE; + +// +// Cluster Control Property Data - Formats (a WORD) +// +typedef enum CLUSTER_PROPERTY_FORMAT { + CLUSPROP_FORMAT_UNKNOWN = 0, + CLUSPROP_FORMAT_BINARY, + CLUSPROP_FORMAT_DWORD, + CLUSPROP_FORMAT_SZ, + CLUSPROP_FORMAT_EXPAND_SZ, + CLUSPROP_FORMAT_MULTI_SZ, + CLUSPROP_FORMAT_ULARGE_INTEGER, + CLUSPROP_FORMAT_LONG, + CLUSPROP_FORMAT_EXPANDED_SZ, + CLUSPROP_FORMAT_SECURITY_DESCRIPTOR, + CLUSPROP_FORMAT_LARGE_INTEGER, + CLUSPROP_FORMAT_WORD, + CLUSPROP_FORMAT_FILETIME, + CLUSPROP_FORMAT_VALUE_LIST, + CLUSPROP_FORMAT_PROPERTY_LIST, + + CLUSPROP_FORMAT_USER=32768 +} CLUSTER_PROPERTY_FORMAT; + +#endif // _CLUSTER_API_TYPES_ + +// +// Cluster Control Property Data - Syntax +// +#define CLUSPROP_SYNTAX_VALUE( type, format ) ((DWORD) ((type << 16) | format)) + +#ifndef _CLUSTER_API_TYPES_ + +typedef enum CLUSTER_PROPERTY_SYNTAX { + + CLUSPROP_SYNTAX_ENDMARK = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_ENDMARK, CLUSPROP_FORMAT_UNKNOWN ), + CLUSPROP_SYNTAX_NAME = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_NAME, CLUSPROP_FORMAT_SZ ), + CLUSPROP_SYNTAX_RESCLASS = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_RESCLASS, CLUSPROP_FORMAT_DWORD ), + + CLUSPROP_SYNTAX_LIST_VALUE_SZ = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_SZ ), + CLUSPROP_SYNTAX_LIST_VALUE_EXPAND_SZ = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_EXPAND_SZ ), + CLUSPROP_SYNTAX_LIST_VALUE_DWORD = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_DWORD ), + CLUSPROP_SYNTAX_LIST_VALUE_BINARY = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_BINARY ), + CLUSPROP_SYNTAX_LIST_VALUE_MULTI_SZ = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_MULTI_SZ ), + CLUSPROP_SYNTAX_LIST_VALUE_LONG = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_LONG ), + CLUSPROP_SYNTAX_LIST_VALUE_EXPANDED_SZ = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_EXPANDED_SZ ), + CLUSPROP_SYNTAX_LIST_VALUE_SECURITY_DESCRIPTOR = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_SECURITY_DESCRIPTOR ), + CLUSPROP_SYNTAX_LIST_VALUE_LARGE_INTEGER = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_LARGE_INTEGER ), + CLUSPROP_SYNTAX_LIST_VALUE_ULARGE_INTEGER = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_ULARGE_INTEGER ), + CLUSPROP_SYNTAX_LIST_VALUE_WORD = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_WORD ), + CLUSPROP_SYNTAX_LIST_VALUE_PROPERTY_LIST = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_PROPERTY_LIST ), + CLUSPROP_SYNTAX_LIST_VALUE_FILETIME = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_LIST_VALUE, CLUSPROP_FORMAT_FILETIME ), + + // Storage syntax values + + CLUSPROP_SYNTAX_DISK_SIGNATURE = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_SIGNATURE, CLUSPROP_FORMAT_DWORD ), + CLUSPROP_SYNTAX_SCSI_ADDRESS = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_SCSI_ADDRESS, CLUSPROP_FORMAT_DWORD ), + CLUSPROP_SYNTAX_DISK_NUMBER = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_DISK_NUMBER, CLUSPROP_FORMAT_DWORD ), + CLUSPROP_SYNTAX_PARTITION_INFO = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_PARTITION_INFO, CLUSPROP_FORMAT_BINARY ), + CLUSPROP_SYNTAX_FTSET_INFO = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_FTSET_INFO, CLUSPROP_FORMAT_BINARY ), + CLUSPROP_SYNTAX_DISK_SERIALNUMBER = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_DISK_SERIALNUMBER, CLUSPROP_FORMAT_SZ ), + CLUSPROP_SYNTAX_DISK_GUID = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_DISK_GUID, CLUSPROP_FORMAT_SZ ), + CLUSPROP_SYNTAX_DISK_SIZE = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_DISK_SIZE, CLUSPROP_FORMAT_ULARGE_INTEGER ), + CLUSPROP_SYNTAX_PARTITION_INFO_EX = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_PARTITION_INFO_EX, CLUSPROP_FORMAT_BINARY ), + CLUSPROP_SYNTAX_PARTITION_INFO_EX2 = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_PARTITION_INFO_EX2, CLUSPROP_FORMAT_BINARY ), + CLUSPROP_SYNTAX_STORAGE_DEVICE_ID_DESCRIPTOR = CLUSPROP_SYNTAX_VALUE( CLUSPROP_TYPE_STORAGE_DEVICE_ID_DESCRIPTOR, CLUSPROP_FORMAT_BINARY ), + + +} CLUSTER_PROPERTY_SYNTAX; + +#endif // _CLUSTER_API_TYPES_ + + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8) + +#define GROUP_FAILURE_INFO_VERSION_1 0x1 + +typedef struct GROUP_FAILURE_INFO { + DWORD dwFailoverAttemptsRemaining; + DWORD dwFailoverPeriodRemaining; // in sec +} GROUP_FAILURE_INFO, *PGROUP_FAILURE_INFO; + +typedef struct GROUP_FAILURE_INFO_BUFFER { + DWORD dwVersion; + GROUP_FAILURE_INFO Info; +} GROUP_FAILURE_INFO_BUFFER, *PGROUP_FAILURE_INFO_BUFFER; + + +#define RESOURCE_FAILURE_INFO_VERSION_1 0x1 + +typedef struct RESOURCE_FAILURE_INFO { + DWORD dwRestartAttemptsRemaining; + DWORD dwRestartPeriodRemaining; // in sec +} RESOURCE_FAILURE_INFO, *PRESOURCE_FAILURE_INFO; + + +typedef struct RESOURCE_FAILURE_INFO_BUFFER { + DWORD dwVersion; + RESOURCE_FAILURE_INFO Info; +} RESOURCE_FAILURE_INFO_BUFFER, *PRESOURCE_FAILURE_INFO_BUFFER; + +typedef struct RESOURCE_TERMINAL_FAILURE_INFO_BUFFER { + BOOL isTerminalFailure; + DWORD restartPeriodRemaining; +} RESOURCE_TERMINAL_FAILURE_INFO_BUFFER, *PRESOURCE_TERMINAL_FAILURE_INFO_BUFFER; + + +#endif //(CLUSAPI_VERSION >= CLUSAPI_VERSION_WINDOWS8) + + +// +// Define Cluster Control Code access methods +// +#define CLUS_ACCESS_ANY 0 +#define CLUS_ACCESS_READ 0x01 +#define CLUS_ACCESS_WRITE 0x02 + +// +// Define Cluster Control Code modification actions +// +#define CLUS_NO_MODIFY 0 +#define CLUS_MODIFY 0x01 + +// +// Define Cluster Control Code Global actions +// +#define CLUS_NOT_GLOBAL 0 +#define CLUS_GLOBAL 0x01 + +#ifndef _CLUSTER_API_TYPES_ +// +// Define Cluster Control Code target objects +// +typedef enum CLUSTER_CONTROL_OBJECT { + CLUS_OBJECT_INVALID=0, + CLUS_OBJECT_RESOURCE, + CLUS_OBJECT_RESOURCE_TYPE, + CLUS_OBJECT_GROUP, + CLUS_OBJECT_NODE, + CLUS_OBJECT_NETWORK, + CLUS_OBJECT_NETINTERFACE, + CLUS_OBJECT_CLUSTER, + CLUS_OBJECT_GROUPSET, + CLUS_OBJECT_AFFINITYRULE, + CLUS_OBJECT_USER=128 +} CLUSTER_CONTROL_OBJECT; + +#endif // _CLUSTER_API_TYPES_ + + +// +// Macro to generate full cluster control codes +// +// 31 24 23 22 21 20 19 16 15 2 1 0 +// +----------+--+--+--+--+-----------+-----------------------+------+ +// | OBJECT |G |M |U |I CLUSTER CONTROL CODES |ACCESS| +// +----------+--+--+--+--+-----------+-----------------------+------+ +// +// OBJECT - Object identifier (8 bits) +// G - Global bit (operation must be performed on all nodes of cluster) +// M - Modify bit (code causes a modification, may cause event notification) +// U - User code bit (splits the control codes into 2 spaces each 2^^19 in size) +// I - Internal code bit (only for non-user control codes) +// CLUSTER CONTROL CODES - 2^^18 (256 thousand possible control codes) +// ACCESS - Access mode (2 bits) +// + +// +// Define control code shifts +// +#define CLUSCTL_ACCESS_SHIFT 0 +#define CLUSCTL_FUNCTION_SHIFT 2 +#define CLCTL_INTERNAL_SHIFT 20 +#define CLCTL_USER_SHIFT 21 +#define CLCTL_MODIFY_SHIFT 22 +#define CLCTL_GLOBAL_SHIFT 23 +#define CLUSCTL_OBJECT_SHIFT 24 + +// +// Define control code masks +// +#define CLCTL_INTERNAL_MASK (1<= CLUSAPI_VERSION_WINTHRESHOLD) + CLCTL_SET_CLUSTER_S2D_ENABLED = CLCTL_EXTERNAL_CODE( 2904, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + // 2906 is free and can be reused + CLCTL_SET_CLUSTER_S2D_CACHE_METADATA_RESERVE_BYTES = CLCTL_EXTERNAL_CODE( 2907, CLUS_ACCESS_WRITE, CLUS_MODIFY ), +#endif + CLCTL_GROUPSET_GET_GROUPS = CLCTL_EXTERNAL_CODE( 2908, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + CLCTL_GROUPSET_GET_PROVIDER_GROUPS = CLCTL_EXTERNAL_CODE( 2909, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + CLCTL_GROUPSET_GET_PROVIDER_GROUPSETS = CLCTL_EXTERNAL_CODE( 2910, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + CLCTL_GROUP_GET_PROVIDER_GROUPS = CLCTL_EXTERNAL_CODE( 2911, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + CLCTL_GROUP_GET_PROVIDER_GROUPSETS = CLCTL_EXTERNAL_CODE( 2912, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + CLCTL_GROUP_SET_CCF_FROM_MASTER = CLCTL_EXTERNAL_CODE( 2913, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_GET_INFRASTRUCTURE_SOFS_BUFFER = CLCTL_EXTERNAL_CODE( 2914, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + CLCTL_SET_INFRASTRUCTURE_SOFS_BUFFER = CLCTL_EXTERNAL_CODE( 2915, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_NOTIFY_INFRASTRUCTURE_SOFS_CHANGED = CLCTL_EXTERNAL_CODE( 2916, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_SCALEOUT_COMMAND = CLCTL_EXTERNAL_CODE( 2917, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_SCALEOUT_CONTROL = CLCTL_EXTERNAL_CODE( 2918, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_SCALEOUT_GET_CLUSTERS = CLCTL_EXTERNAL_CODE( 2919, CLUS_ACCESS_READ, CLUS_MODIFY ), + + + CLCTL_RELOAD_AUTOLOGGER_CONFIG = CLCTL_EXTERNAL_CODE( 2932, CLUS_ACCESS_WRITE, CLUS_NO_MODIFY ), + CLCTL_STORAGE_RENAME_SHARED_VOLUME = CLCTL_EXTERNAL_CODE( 2933, CLUS_ACCESS_WRITE, CLUS_NO_MODIFY ), + CLCTL_STORAGE_RENAME_SHARED_VOLUME_GUID = CLCTL_EXTERNAL_CODE( 2934, CLUS_ACCESS_WRITE, CLUS_NO_MODIFY ), + CLCTL_ENUM_AFFINITY_RULE_NAMES = CLCTL_EXTERNAL_CODE( 2935, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + CLCTL_GET_NODES_IN_FD = CLCTL_EXTERNAL_CODE( 2936, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + + CLCTL_FORCE_DB_FLUSH = CLCTL_EXTERNAL_CODE( 2937, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + +//Internal codes: +//A control code used by the Cluster service to notify a resource DLL of changes to the cluster environment. Applications cannot use internal control codes; they must use external control codes. + + + // + // Internal control codes + // + CLCTL_DELETE = CLCTL_INTERNAL_CODE( 1, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_INSTALL_NODE = CLCTL_INTERNAL_CODE( 2, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_EVICT_NODE = CLCTL_INTERNAL_CODE( 3, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_ADD_DEPENDENCY = CLCTL_INTERNAL_CODE( 4, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_REMOVE_DEPENDENCY = CLCTL_INTERNAL_CODE( 5, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_ADD_OWNER = CLCTL_INTERNAL_CODE( 6, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_REMOVE_OWNER = CLCTL_INTERNAL_CODE( 7, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + //************ Hole here at 8 + CLCTL_SET_NAME = CLCTL_INTERNAL_CODE( 9, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_CLUSTER_NAME_CHANGED = CLCTL_INTERNAL_CODE( 10, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_CLUSTER_VERSION_CHANGED = CLCTL_INTERNAL_CODE( 11, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_FIXUP_ON_UPGRADE = CLCTL_INTERNAL_CODE( 12, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_STARTING_PHASE1 = CLCTL_INTERNAL_CODE( 13, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_STARTING_PHASE2 = CLCTL_INTERNAL_CODE( 14, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_HOLD_IO = CLCTL_INTERNAL_CODE( 15, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_RESUME_IO = CLCTL_INTERNAL_CODE( 16, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_FORCE_QUORUM = CLCTL_INTERNAL_CODE( 17, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_INITIALIZE = CLCTL_INTERNAL_CODE( 18, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_STATE_CHANGE_REASON = CLCTL_INTERNAL_CODE( 19, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_PROVIDER_STATE_CHANGE = CLCTL_INTERNAL_CODE( 20, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_LEAVING_GROUP = CLCTL_INTERNAL_CODE( 21, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_JOINING_GROUP = CLCTL_INTERNAL_CODE( 22, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + + CLCTL_FSWITNESS_GET_EPOCH_INFO = CLCTL_INTERNAL_CODE( 23, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + CLCTL_FSWITNESS_SET_EPOCH_INFO = CLCTL_INTERNAL_CODE( 24, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + CLCTL_FSWITNESS_RELEASE_LOCK = CLCTL_INTERNAL_CODE( 25, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + + CLCTL_NETNAME_CREDS_NOTIFYCAM = CLCTL_INTERNAL_CODE( 26, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + + CLCTL_NOTIFY_QUORUM_STATUS = CLCTL_INTERNAL_CODE( 31, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + + CLCTL_NOTIFY_MONITOR_SHUTTING_DOWN = CLCTL_INTERNAL_CODE( 32, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + + CLCTL_UNDELETE = CLCTL_INTERNAL_CODE( 33, CLUS_ACCESS_WRITE, CLUS_MODIFY ), + + CLCTL_GET_OPERATION_CONTEXT = CLCTL_INTERNAL_CODE( 2106, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + CLCTL_NOTIFY_OWNER_CHANGE = CLCTL_INTERNAL_CODE( 2120, CLUS_ACCESS_WRITE, CLUS_MODIFY ), +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD) + CLCTL_VALIDATE_CHANGE_GROUP = CLCTL_INTERNAL_CODE( 2121, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), +#endif + + CLCTL_CHECK_DRAIN_VETO = CLCTL_INTERNAL_CODE( 2123, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + CLCTL_NOTIFY_DRAIN_COMPLETE = CLCTL_INTERNAL_CODE( 2124, CLUS_ACCESS_READ, CLUS_NO_MODIFY ), + +} CLCTL_CODES; + +#endif // _CLUSTER_API_TYPES_ + +// +// Define macros to generate object specific control codes +// +#define CLUSCTL_RESOURCE_CODE( Function ) ( \ + ((CLUS_OBJECT_RESOURCE << CLUSCTL_OBJECT_SHIFT) | Function) ) + +#define CLUSCTL_RESOURCE_TYPE_CODE( Function ) ( \ + ((CLUS_OBJECT_RESOURCE_TYPE << CLUSCTL_OBJECT_SHIFT) | Function) ) + +#define CLUSCTL_GROUP_CODE( Function ) ( \ + ((CLUS_OBJECT_GROUP << CLUSCTL_OBJECT_SHIFT) | Function) ) + +#define CLUSCTL_NODE_CODE( Function ) ( \ + ((CLUS_OBJECT_NODE << CLUSCTL_OBJECT_SHIFT) | Function) ) + +#define CLUSCTL_NETWORK_CODE( Function ) ( \ + ((CLUS_OBJECT_NETWORK << CLUSCTL_OBJECT_SHIFT) | Function) ) + +#define CLUSCTL_NETINTERFACE_CODE( Function ) ( \ + ((CLUS_OBJECT_NETINTERFACE << CLUSCTL_OBJECT_SHIFT) | Function) ) + +#define CLUSCTL_CLUSTER_CODE( Function ) ( \ + ((CLUS_OBJECT_CLUSTER << CLUSCTL_OBJECT_SHIFT) | Function) ) + +#define CLUSCTL_GROUPSET_CODE( Function ) ( \ + ((CLUS_OBJECT_GROUPSET << CLUSCTL_OBJECT_SHIFT) | Function) ) + +#define CLUSCTL_AFFINITYRULE_CODE( Function ) ( \ + ((CLUS_OBJECT_AFFINITYRULE << CLUSCTL_OBJECT_SHIFT) | Function) ) + +#define CLUSCTL_USER_CODE( Function, Object ) ( \ + ( (Object) << CLUSCTL_OBJECT_SHIFT) | CLCTL_USER_BASE | (Function << CLUSCTL_FUNCTION_SHIFT) ) + +// +// Define macros to get the function, object, access mode, or User Base flag out +// of a control code +// +#define CLUSCTL_GET_CONTROL_FUNCTION( ControlCode ) \ + ((ControlCode >> CLUSCTL_ACCESS_SHIFT) & CLUSCTL_CONTROL_CODE_MASK) + +#define CLUSCTL_GET_ACCESS_MODE( ControlCode ) \ + ((ControlCode >> CLUSCTL_ACCESS_SHIFT) & CLUSCTL_ACCESS_MODE_MASK) + +#define CLUSCTL_GET_CONTROL_OBJECT( ControlCode ) \ + ((ControlCode >> CLUSCTL_OBJECT_SHIFT) & CLUSCTL_OBJECT_MASK) + +#define CLUSCTL_GET_USER( ControlCode ) \ + ((ControlCode & CLCTL_USER_MASK) >> CLCTL_USER_SHIFT) + +#ifndef _CLUSTER_API_TYPES_ +// +// Cluster Control Codes for Resources +// +typedef enum CLUSCTL_RESOURCE_CODES { + + // + // External resource codes + // + CLUSCTL_RESOURCE_UNKNOWN = + CLUSCTL_RESOURCE_CODE( CLCTL_UNKNOWN ), + + CLUSCTL_RESOURCE_GET_CHARACTERISTICS = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_CHARACTERISTICS ), + + CLUSCTL_RESOURCE_GET_FLAGS = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_FLAGS ), + + CLUSCTL_RESOURCE_GET_CLASS_INFO = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_CLASS_INFO ), + + CLUSCTL_RESOURCE_GET_REQUIRED_DEPENDENCIES = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_REQUIRED_DEPENDENCIES ), + + CLUSCTL_RESOURCE_GET_NAME = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_NAME ), + + CLUSCTL_RESOURCE_GET_ID = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_ID ), + + CLUSCTL_RESOURCE_GET_RESOURCE_TYPE = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_RESOURCE_TYPE ), + + CLUSCTL_RESOURCE_ENUM_COMMON_PROPERTIES = + CLUSCTL_RESOURCE_CODE( CLCTL_ENUM_COMMON_PROPERTIES ), + + CLUSCTL_RESOURCE_GET_RO_COMMON_PROPERTIES = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_RO_COMMON_PROPERTIES ), + + CLUSCTL_RESOURCE_GET_COMMON_PROPERTIES = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_COMMON_PROPERTIES ), + + CLUSCTL_RESOURCE_SET_COMMON_PROPERTIES = + CLUSCTL_RESOURCE_CODE( CLCTL_SET_COMMON_PROPERTIES ), + + CLUSCTL_RESOURCE_VALIDATE_COMMON_PROPERTIES = + CLUSCTL_RESOURCE_CODE( CLCTL_VALIDATE_COMMON_PROPERTIES ), + + CLUSCTL_RESOURCE_GET_COMMON_PROPERTY_FMTS = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_COMMON_PROPERTY_FMTS ), + + CLUSCTL_RESOURCE_ENUM_PRIVATE_PROPERTIES = + CLUSCTL_RESOURCE_CODE( CLCTL_ENUM_PRIVATE_PROPERTIES ), + + CLUSCTL_RESOURCE_GET_RO_PRIVATE_PROPERTIES = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_RO_PRIVATE_PROPERTIES ), + + CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_PRIVATE_PROPERTIES ), + + CLUSCTL_RESOURCE_SET_PRIVATE_PROPERTIES = + CLUSCTL_RESOURCE_CODE( CLCTL_SET_PRIVATE_PROPERTIES ), + + CLUSCTL_RESOURCE_VALIDATE_PRIVATE_PROPERTIES = + CLUSCTL_RESOURCE_CODE( CLCTL_VALIDATE_PRIVATE_PROPERTIES ), + + CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTY_FMTS = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_PRIVATE_PROPERTY_FMTS ), + + CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT = + CLUSCTL_RESOURCE_CODE( CLCTL_ADD_REGISTRY_CHECKPOINT ), + + CLUSCTL_RESOURCE_DELETE_REGISTRY_CHECKPOINT = + CLUSCTL_RESOURCE_CODE( CLCTL_DELETE_REGISTRY_CHECKPOINT ), + + CLUSCTL_RESOURCE_GET_REGISTRY_CHECKPOINTS = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_REGISTRY_CHECKPOINTS ), + + CLUSCTL_RESOURCE_ADD_CRYPTO_CHECKPOINT = + CLUSCTL_RESOURCE_CODE( CLCTL_ADD_CRYPTO_CHECKPOINT ), + + CLUSCTL_RESOURCE_DELETE_CRYPTO_CHECKPOINT = + CLUSCTL_RESOURCE_CODE( CLCTL_DELETE_CRYPTO_CHECKPOINT ), + + CLUSCTL_RESOURCE_ADD_CRYPTO_CHECKPOINT_EX = + CLUSCTL_RESOURCE_CODE( CLCTL_ADD_CRYPTO_CHECKPOINT_EX ), + + CLUSCTL_RESOURCE_GET_CRYPTO_CHECKPOINTS = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_CRYPTO_CHECKPOINTS ), + + CLUSCTL_RESOURCE_GET_LOADBAL_PROCESS_LIST = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_LOADBAL_PROCESS_LIST ), + + CLUSCTL_RESOURCE_GET_NETWORK_NAME = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_NETWORK_NAME ), + + CLUSCTL_RESOURCE_NETNAME_GET_VIRTUAL_SERVER_TOKEN = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_GET_VIRTUAL_SERVER_TOKEN ), + + CLUSCTL_RESOURCE_NETNAME_SET_PWD_INFO = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_SET_PWD_INFO ), + + CLUSCTL_RESOURCE_NETNAME_SET_PWD_INFOEX = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_SET_PWD_INFOEX ), + + CLUSCTL_RESOURCE_NETNAME_DELETE_CO = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_DELETE_CO ), + + CLUSCTL_RESOURCE_NETNAME_VALIDATE_VCO = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_VALIDATE_VCO ), + + CLUSCTL_RESOURCE_NETNAME_RESET_VCO = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_RESET_VCO ), + + CLUSCTL_RESOURCE_NETNAME_REPAIR_VCO = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_REPAIR_VCO ), + + CLUSCTL_RESOURCE_NETNAME_REGISTER_DNS_RECORDS = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_REGISTER_DNS_RECORDS ), + + CLUSCTL_RESOURCE_GET_DNS_NAME = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_DNS_NAME ), + + CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_GET_DISK_INFO ), + + CLUSCTL_RESOURCE_STORAGE_GET_DISK_NUMBER_INFO = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_GET_DISK_NUMBER_INFO ), + + CLUSCTL_RESOURCE_STORAGE_IS_PATH_VALID = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_IS_PATH_VALID ), + + CLUSCTL_RESOURCE_QUERY_DELETE = + CLUSCTL_RESOURCE_CODE( CLCTL_QUERY_DELETE ), + + CLUSCTL_RESOURCE_UPGRADE_DLL = + CLUSCTL_RESOURCE_CODE( CLCTL_RESOURCE_UPGRADE_DLL ), + + CLUSCTL_RESOURCE_IPADDRESS_RENEW_LEASE = + CLUSCTL_RESOURCE_CODE( CLCTL_IPADDRESS_RENEW_LEASE ), + + CLUSCTL_RESOURCE_IPADDRESS_RELEASE_LEASE = + CLUSCTL_RESOURCE_CODE( CLCTL_IPADDRESS_RELEASE_LEASE ), + + CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT_64BIT = + CLUSCTL_RESOURCE_CODE( CLCTL_ADD_REGISTRY_CHECKPOINT_64BIT ), + + CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT_32BIT = + CLUSCTL_RESOURCE_CODE( CLCTL_ADD_REGISTRY_CHECKPOINT_32BIT ), + + CLUSCTL_RESOURCE_QUERY_MAINTENANCE_MODE = + CLUSCTL_RESOURCE_CODE( CLCTL_QUERY_MAINTENANCE_MODE ), + + CLUSCTL_RESOURCE_SET_MAINTENANCE_MODE = + CLUSCTL_RESOURCE_CODE( CLCTL_SET_MAINTENANCE_MODE ), + + CLUSCTL_RESOURCE_STORAGE_SET_DRIVELETTER = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_SET_DRIVELETTER ), + + CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO_EX = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_GET_DISK_INFO_EX ), + + CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO_EX2 = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_GET_DISK_INFO_EX2 ), + + + CLUSCTL_RESOURCE_STORAGE_GET_MOUNTPOINTS = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_GET_MOUNTPOINTS ), + + CLUSCTL_RESOURCE_STORAGE_GET_DIRTY = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_GET_DIRTY ), + + CLUSCTL_RESOURCE_STORAGE_GET_SHARED_VOLUME_INFO = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_GET_SHARED_VOLUME_INFO ), + + CLUSCTL_RESOURCE_SET_CSV_MAINTENANCE_MODE = + CLUSCTL_RESOURCE_CODE( CLCTL_SET_CSV_MAINTENANCE_MODE ), + + CLUSCTL_RESOURCE_ENABLE_SHARED_VOLUME_DIRECTIO = + CLUSCTL_RESOURCE_CODE( CLCTL_ENABLE_SHARED_VOLUME_DIRECTIO ), + + CLUSCTL_RESOURCE_DISABLE_SHARED_VOLUME_DIRECTIO = + CLUSCTL_RESOURCE_CODE( CLCTL_DISABLE_SHARED_VOLUME_DIRECTIO ), + + CLUSCTL_RESOURCE_SET_SHARED_VOLUME_BACKUP_MODE = + CLUSCTL_RESOURCE_CODE( CLCTL_SET_SHARED_VOLUME_BACKUP_MODE ), + + CLUSCTL_RESOURCE_STORAGE_GET_SHARED_VOLUME_PARTITION_NAMES = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_GET_SHARED_VOLUME_PARTITION_NAMES ), + + // get diagnostics info about resource failures + CLUSCTL_RESOURCE_GET_FAILURE_INFO = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_FAILURE_INFO ), + + CLUSCTL_RESOURCE_STORAGE_GET_DISKID = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_GET_DISKID ), + + CLUSCTL_RESOURCE_STORAGE_GET_SHARED_VOLUME_STATES = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_GET_SHARED_VOLUME_STATES ), + + CLUSCTL_RESOURCE_STORAGE_IS_SHARED_VOLUME = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_IS_SHARED_VOLUME ), + + CLUSCTL_RESOURCE_IS_QUORUM_BLOCKED = + CLUSCTL_RESOURCE_CODE( CLCTL_IS_QUORUM_BLOCKED ), + + CLUSCTL_RESOURCE_POOL_GET_DRIVE_INFO = + CLUSCTL_RESOURCE_CODE( CLCTL_POOL_GET_DRIVE_INFO ), + + CLUSCTL_RESOURCE_RLUA_GET_VIRTUAL_SERVER_TOKEN = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_GET_VIRTUAL_SERVER_TOKEN ), + + CLUSCTL_RESOURCE_RLUA_SET_PWD_INFO = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_SET_PWD_INFO ), + + CLUSCTL_RESOURCE_RLUA_SET_PWD_INFOEX = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_SET_PWD_INFOEX ), + + + // + // Internal resource codes + // + CLUSCTL_RESOURCE_DELETE = + CLUSCTL_RESOURCE_CODE( CLCTL_DELETE ), + + CLUSCTL_RESOURCE_UNDELETE = + CLUSCTL_RESOURCE_CODE( CLCTL_UNDELETE ), + + CLUSCTL_RESOURCE_INSTALL_NODE = + CLUSCTL_RESOURCE_CODE( CLCTL_INSTALL_NODE ), + + CLUSCTL_RESOURCE_EVICT_NODE = + CLUSCTL_RESOURCE_CODE( CLCTL_EVICT_NODE ), + + CLUSCTL_RESOURCE_ADD_DEPENDENCY = + CLUSCTL_RESOURCE_CODE( CLCTL_ADD_DEPENDENCY ), + + CLUSCTL_RESOURCE_REMOVE_DEPENDENCY = + CLUSCTL_RESOURCE_CODE( CLCTL_REMOVE_DEPENDENCY ), + + CLUSCTL_RESOURCE_ADD_OWNER = + CLUSCTL_RESOURCE_CODE( CLCTL_ADD_OWNER ), + + CLUSCTL_RESOURCE_REMOVE_OWNER = + CLUSCTL_RESOURCE_CODE( CLCTL_REMOVE_OWNER ), + + CLUSCTL_RESOURCE_SET_NAME = + CLUSCTL_RESOURCE_CODE( CLCTL_SET_NAME ), + + CLUSCTL_RESOURCE_CLUSTER_NAME_CHANGED = + CLUSCTL_RESOURCE_CODE( CLCTL_CLUSTER_NAME_CHANGED ), + + CLUSCTL_RESOURCE_CLUSTER_VERSION_CHANGED = + CLUSCTL_RESOURCE_CODE( CLCTL_CLUSTER_VERSION_CHANGED ), + + CLUSCTL_RESOURCE_FORCE_QUORUM = + CLUSCTL_RESOURCE_CODE( CLCTL_FORCE_QUORUM ), + + CLUSCTL_RESOURCE_INITIALIZE = + CLUSCTL_RESOURCE_CODE( CLCTL_INITIALIZE ), + + CLUSCTL_RESOURCE_STATE_CHANGE_REASON = + CLUSCTL_RESOURCE_CODE( CLCTL_STATE_CHANGE_REASON ), + + CLUSCTL_RESOURCE_PROVIDER_STATE_CHANGE = + CLUSCTL_RESOURCE_CODE( CLCTL_PROVIDER_STATE_CHANGE ), + + CLUSCTL_RESOURCE_LEAVING_GROUP = + CLUSCTL_RESOURCE_CODE( CLCTL_LEAVING_GROUP ), + + CLUSCTL_RESOURCE_JOINING_GROUP = + CLUSCTL_RESOURCE_CODE( CLCTL_JOINING_GROUP ), + + CLUSCTL_RESOURCE_FSWITNESS_GET_EPOCH_INFO = + CLUSCTL_RESOURCE_CODE( CLCTL_FSWITNESS_GET_EPOCH_INFO ), + + CLUSCTL_RESOURCE_FSWITNESS_SET_EPOCH_INFO = + CLUSCTL_RESOURCE_CODE( CLCTL_FSWITNESS_SET_EPOCH_INFO ), + + CLUSCTL_RESOURCE_FSWITNESS_RELEASE_LOCK = + CLUSCTL_RESOURCE_CODE( CLCTL_FSWITNESS_RELEASE_LOCK ), + + CLUSCTL_RESOURCE_NETNAME_CREDS_NOTIFYCAM = + CLUSCTL_RESOURCE_CODE( CLCTL_NETNAME_CREDS_NOTIFYCAM ), + + /* + CLUSCTL_RESOURCE_GET_OPERATION_CONTEXT + + input is GET_OPERATION_CONTEXT_PARAMS + + output should be a property list containing + CLUSRES_GET_OPERATION_CONTEXT_FLAGS + + and 0->many properties with the name being a resource type name + and the value being what will be passed along with it + */ + + CLUSCTL_RESOURCE_GET_OPERATION_CONTEXT = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_OPERATION_CONTEXT ), + + CLUSCTL_RESOURCE_RW_MODIFY_NOOP = + CLUSCTL_RESOURCE_CODE( CLCTL_RW_MODIFY_NOOP ), + + CLUSCTL_RESOURCE_NOTIFY_QUORUM_STATUS = + CLUSCTL_RESOURCE_CODE( CLCTL_NOTIFY_QUORUM_STATUS ), + + CLUSCTL_RESOURCE_NOTIFY_OWNER_CHANGE = + CLUSCTL_RESOURCE_CODE( CLCTL_NOTIFY_OWNER_CHANGE ), + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD) + CLUSCTL_RESOURCE_VALIDATE_CHANGE_GROUP = + CLUSCTL_RESOURCE_CODE( CLCTL_VALIDATE_CHANGE_GROUP ), + + CLUSCTL_RESOURCE_STORAGE_RENAME_SHARED_VOLUME = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_RENAME_SHARED_VOLUME ), + + CLUSCTL_RESOURCE_STORAGE_RENAME_SHARED_VOLUME_GUID = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_RENAME_SHARED_VOLUME_GUID ), +#endif + + + CLUSCTL_CLOUD_WITNESS_RESOURCE_UPDATE_TOKEN = CLUSCTL_RESOURCE_CODE( CLCTL_CLOUD_WITNESS_RESOURCE_UPDATE_TOKEN ), + + CLUSCTL_CLOUD_WITNESS_RESOURCE_UPDATE_KEY = CLUSCTL_RESOURCE_CODE( CLCTL_CLOUD_WITNESS_RESOURCE_UPDATE_KEY ), + + CLUSCTL_RESOURCE_PREPARE_UPGRADE = + CLUSCTL_RESOURCE_CODE( CLCTL_RESOURCE_PREPARE_UPGRADE ), + + CLUSCTL_RESOURCE_UPGRADE_COMPLETED = + CLUSCTL_RESOURCE_CODE( CLCTL_RESOURCE_UPGRADE_COMPLETED ), + + CLUSCTL_RESOURCE_GET_STATE_CHANGE_TIME = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_STATE_CHANGE_TIME ), + + CLUSCTL_RESOURCE_GET_INFRASTRUCTURE_SOFS_BUFFER = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_INFRASTRUCTURE_SOFS_BUFFER ), + + CLUSCTL_RESOURCE_SET_INFRASTRUCTURE_SOFS_BUFFER = + CLUSCTL_RESOURCE_CODE( CLCTL_SET_INFRASTRUCTURE_SOFS_BUFFER ), + + CLUSCTL_RESOURCE_SCALEOUT_COMMAND = + CLUSCTL_RESOURCE_CODE( CLCTL_SCALEOUT_COMMAND ), + CLUSCTL_RESOURCE_SCALEOUT_CONTROL = + CLUSCTL_RESOURCE_CODE( CLCTL_SCALEOUT_CONTROL ), + CLUSCTL_RESOURCE_SCALEOUT_GET_CLUSTERS = + CLUSCTL_RESOURCE_CODE( CLCTL_SCALEOUT_GET_CLUSTERS ), + + + CLUSCTL_RESOURCE_CHECK_DRAIN_VETO = + CLUSCTL_RESOURCE_CODE( CLCTL_CHECK_DRAIN_VETO ), + + CLUSCTL_RESOURCE_NOTIFY_DRAIN_COMPLETE = + CLUSCTL_RESOURCE_CODE( CLCTL_NOTIFY_DRAIN_COMPLETE ), + + CLUSCTL_RESOURCE_GET_NODES_IN_FD = + CLUSCTL_RESOURCE_CODE( CLCTL_GET_NODES_IN_FD ), + +} CLUSCTL_RESOURCE_CODES; + +// +// Cluster Control Codes for Resource Types +// +typedef enum CLUSCTL_RESOURCE_TYPE_CODES { + + // External + CLUSCTL_RESOURCE_TYPE_UNKNOWN = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_UNKNOWN ), + + CLUSCTL_RESOURCE_TYPE_GET_CHARACTERISTICS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_CHARACTERISTICS ), + + CLUSCTL_RESOURCE_TYPE_GET_FLAGS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_FLAGS ), + + CLUSCTL_RESOURCE_TYPE_GET_CLASS_INFO = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_CLASS_INFO ), + + CLUSCTL_RESOURCE_TYPE_GET_REQUIRED_DEPENDENCIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_REQUIRED_DEPENDENCIES ), + + CLUSCTL_RESOURCE_TYPE_GET_ARB_TIMEOUT = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_ARB_TIMEOUT ), + + CLUSCTL_RESOURCE_TYPE_ENUM_COMMON_PROPERTIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_ENUM_COMMON_PROPERTIES ), + + CLUSCTL_RESOURCE_TYPE_GET_RO_COMMON_PROPERTIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_RO_COMMON_PROPERTIES ), + + CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_COMMON_PROPERTIES ), + + CLUSCTL_RESOURCE_TYPE_VALIDATE_COMMON_PROPERTIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_VALIDATE_COMMON_PROPERTIES ), + + CLUSCTL_RESOURCE_TYPE_SET_COMMON_PROPERTIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_SET_COMMON_PROPERTIES ), + + CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTY_FMTS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_COMMON_PROPERTY_FMTS ), + + CLUSCTL_RESOURCE_TYPE_GET_COMMON_RESOURCE_PROPERTY_FMTS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_COMMON_RESOURCE_PROPERTY_FMTS ), + + CLUSCTL_RESOURCE_TYPE_ENUM_PRIVATE_PROPERTIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_ENUM_PRIVATE_PROPERTIES ), + + CLUSCTL_RESOURCE_TYPE_GET_RO_PRIVATE_PROPERTIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_RO_PRIVATE_PROPERTIES ), + + CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_PROPERTIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_PRIVATE_PROPERTIES ), + + CLUSCTL_RESOURCE_TYPE_SET_PRIVATE_PROPERTIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_SET_PRIVATE_PROPERTIES ), + + CLUSCTL_RESOURCE_TYPE_VALIDATE_PRIVATE_PROPERTIES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_VALIDATE_PRIVATE_PROPERTIES ), + + CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_PROPERTY_FMTS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_PRIVATE_PROPERTY_FMTS ), + + CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_RESOURCE_PROPERTY_FMTS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_PRIVATE_RESOURCE_PROPERTY_FMTS ), + + CLUSCTL_RESOURCE_TYPE_GET_REGISTRY_CHECKPOINTS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_REGISTRY_CHECKPOINTS ), + + CLUSCTL_RESOURCE_TYPE_GET_CRYPTO_CHECKPOINTS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_GET_CRYPTO_CHECKPOINTS ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STORAGE_GET_AVAILABLE_DISKS ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_SYNC_CLUSDISK_DB = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STORAGE_SYNC_CLUSDISK_DB ), + + CLUSCTL_RESOURCE_TYPE_NETNAME_VALIDATE_NETNAME = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_VALIDATE_NETNAME ), + + CLUSCTL_RESOURCE_TYPE_NETNAME_GET_OU_FOR_VCO = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_NETNAME_GET_OU_FOR_VCO ), + + CLUSCTL_RESOURCE_TYPE_GEN_APP_VALIDATE_PATH = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_VALIDATE_PATH ), + + CLUSCTL_RESOURCE_TYPE_GEN_APP_VALIDATE_DIRECTORY = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_VALIDATE_DIRECTORY ), + + CLUSCTL_RESOURCE_TYPE_GEN_SCRIPT_VALIDATE_PATH = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_VALIDATE_PATH ), + + CLUSCTL_RESOURCE_TYPE_QUERY_DELETE = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_QUERY_DELETE ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_GET_DRIVELETTERS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STORAGE_GET_DRIVELETTERS ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STORAGE_GET_AVAILABLE_DISKS_EX ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_REMAP_DRIVELETTER = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STORAGE_REMAP_DRIVELETTER ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_GET_DISKID = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STORAGE_GET_DISKID ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_GET_RESOURCEID = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STORAGE_GET_RESOURCEID ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_IS_CLUSTERABLE = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STORAGE_IS_CLUSTERABLE ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_REMOVE_VM_OWNERSHIP = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STORAGE_REMOVE_VM_OWNERSHIP ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_IS_CSV_FILE = + CLUSCTL_RESOURCE_CODE( CLCTL_STORAGE_IS_CSV_FILE ), + + CLUSCTL_RESOURCE_TYPE_WITNESS_VALIDATE_PATH = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_VALIDATE_PATH ), + + // Internal + CLUSCTL_RESOURCE_TYPE_INSTALL_NODE = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_INSTALL_NODE ), + + CLUSCTL_RESOURCE_TYPE_EVICT_NODE = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_EVICT_NODE ), + + CLUSCTL_RESOURCE_TYPE_CLUSTER_VERSION_CHANGED = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_CLUSTER_VERSION_CHANGED ), + + CLUSCTL_RESOURCE_TYPE_FIXUP_ON_UPGRADE = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_FIXUP_ON_UPGRADE ), + + CLUSCTL_RESOURCE_TYPE_STARTING_PHASE1 = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STARTING_PHASE1 ), + + CLUSCTL_RESOURCE_TYPE_STARTING_PHASE2 = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STARTING_PHASE2 ), + + CLUSCTL_RESOURCE_TYPE_HOLD_IO = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_HOLD_IO ), + + CLUSCTL_RESOURCE_TYPE_RESUME_IO = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_RESUME_IO ), + + CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX2_INT = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_STORAGE_GET_AVAILABLE_DISKS_EX2_INT ), + + CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_LOGDISKS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_REPLICATION_GET_ELIGIBLE_LOGDISKS ), + + CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_TARGET_DATADISKS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_REPLICATION_GET_ELIGIBLE_TARGET_DATADISKS ), + + CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_SOURCE_DATADISKS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_REPLICATION_GET_ELIGIBLE_SOURCE_DATADISKS ), + + CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICATED_DISKS = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_REPLICATION_GET_REPLICATED_DISKS ), + + CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICA_VOLUMES = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_REPLICATION_GET_REPLICA_VOLUMES ), + + CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_LOG_VOLUME = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_REPLICATION_GET_LOG_VOLUME ), + + CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_RESOURCE_GROUP = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_REPLICATION_GET_RESOURCE_GROUP), + + CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICATED_PARTITION_INFO = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_REPLICATION_GET_REPLICATED_PARTITION_INFO), + + CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_LOG_INFO = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_REPLICATION_GET_LOG_INFO), + + CLUSCTL_RESOURCE_TYPE_REPLICATION_ADD_REPLICATION_GROUP = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_REPLICATION_ADD_REPLICATION_GROUP ), + + + CLUSCTL_CLOUD_WITNESS_RESOURCE_TYPE_VALIDATE_CREDENTIALS = CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_CLOUD_WITNESS_RESOURCE_TYPE_VALIDATE_CREDENTIALS ), + CLUSCTL_CLOUD_WITNESS_RESOURCE_TYPE_VALIDATE_CREDENTIALS_WITH_KEY = CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_CLOUD_WITNESS_RESOURCE_TYPE_VALIDATE_CREDENTIALS_WITH_KEY ), + + + CLUSCTL_RESOURCE_TYPE_PREPARE_UPGRADE = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_RESOURCE_PREPARE_UPGRADE ), + + CLUSCTL_RESOURCE_TYPE_UPGRADE_COMPLETED = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_RESOURCE_UPGRADE_COMPLETED ), + + CLUSCTL_RESOURCE_TYPE_NOTIFY_MONITOR_SHUTTING_DOWN = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_NOTIFY_MONITOR_SHUTTING_DOWN ), + + CLUSCTL_RESOURCE_TYPE_CHECK_DRAIN_VETO = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_CHECK_DRAIN_VETO ), + + CLUSCTL_RESOURCE_TYPE_NOTIFY_DRAIN_COMPLETE = + CLUSCTL_RESOURCE_TYPE_CODE( CLCTL_NOTIFY_DRAIN_COMPLETE ), + +} CLUSCTL_RESOURCE_TYPE_CODES; + + + // To be used with Control Code CLUSCTL_RESOURCE_TYPE_GET_LOCAL_NODE_SRIOV_INFO Only: + typedef struct NodeSriovInfo { + DWORD VFTotal; + DWORD VFUsed; + DWORD QPTotal; + DWORD QPUsed; + } NodeSriovInfo; + + +// +// Cluster Control Codes for Groups +// +typedef enum CLUSCTL_GROUP_CODES { + + // External + CLUSCTL_GROUP_UNKNOWN = + CLUSCTL_GROUP_CODE( CLCTL_UNKNOWN ), + + CLUSCTL_GROUP_GET_CHARACTERISTICS = + CLUSCTL_GROUP_CODE( CLCTL_GET_CHARACTERISTICS ), + + CLUSCTL_GROUP_GET_FLAGS = + CLUSCTL_GROUP_CODE( CLCTL_GET_FLAGS ), + + CLUSCTL_GROUP_GET_NAME = + CLUSCTL_GROUP_CODE( CLCTL_GET_NAME ), + + CLUSCTL_GROUP_GET_ID = + CLUSCTL_GROUP_CODE( CLCTL_GET_ID ), + + CLUSCTL_GROUP_ENUM_COMMON_PROPERTIES = + CLUSCTL_GROUP_CODE( CLCTL_ENUM_COMMON_PROPERTIES ), + + CLUSCTL_GROUP_GET_RO_COMMON_PROPERTIES = + CLUSCTL_GROUP_CODE( CLCTL_GET_RO_COMMON_PROPERTIES ), + + CLUSCTL_GROUP_GET_COMMON_PROPERTIES = + CLUSCTL_GROUP_CODE( CLCTL_GET_COMMON_PROPERTIES ), + + CLUSCTL_GROUP_SET_COMMON_PROPERTIES = + CLUSCTL_GROUP_CODE( CLCTL_SET_COMMON_PROPERTIES ), + + CLUSCTL_GROUP_VALIDATE_COMMON_PROPERTIES = + CLUSCTL_GROUP_CODE( CLCTL_VALIDATE_COMMON_PROPERTIES ), + + CLUSCTL_GROUP_ENUM_PRIVATE_PROPERTIES = + CLUSCTL_GROUP_CODE( CLCTL_ENUM_PRIVATE_PROPERTIES ), + + CLUSCTL_GROUP_GET_RO_PRIVATE_PROPERTIES = + CLUSCTL_GROUP_CODE( CLCTL_GET_RO_PRIVATE_PROPERTIES ), + + CLUSCTL_GROUP_GET_PRIVATE_PROPERTIES = + CLUSCTL_GROUP_CODE( CLCTL_GET_PRIVATE_PROPERTIES ), + + CLUSCTL_GROUP_SET_PRIVATE_PROPERTIES = + CLUSCTL_GROUP_CODE( CLCTL_SET_PRIVATE_PROPERTIES ), + + CLUSCTL_GROUP_VALIDATE_PRIVATE_PROPERTIES = + CLUSCTL_GROUP_CODE( CLCTL_VALIDATE_PRIVATE_PROPERTIES ), + + CLUSCTL_GROUP_QUERY_DELETE = + CLUSCTL_GROUP_CODE( CLCTL_QUERY_DELETE ), + + CLUSCTL_GROUP_GET_COMMON_PROPERTY_FMTS= + CLUSCTL_GROUP_CODE( CLCTL_GET_COMMON_PROPERTY_FMTS ), + + CLUSCTL_GROUP_GET_PRIVATE_PROPERTY_FMTS= + CLUSCTL_GROUP_CODE( CLCTL_GET_PRIVATE_PROPERTY_FMTS ), + + CLUSCTL_GROUP_GET_FAILURE_INFO = + CLUSCTL_GROUP_CODE( CLCTL_GET_FAILURE_INFO ), + + + // last time a group moved see struct + // input - nothing + // output - see CLUSCTL_GROUP_GET_LAST_MOVE_TIME_OUTPUT + CLUSCTL_GROUP_GET_LAST_MOVE_TIME = + CLUSCTL_GROUP_CODE( CLCTL_GROUP_GET_LAST_MOVE_TIME ), + + + CLUSCTL_GROUP_SET_CCF_FROM_MASTER = + CLUSCTL_GROUP_CODE( CLCTL_GROUP_SET_CCF_FROM_MASTER ), + + // Internal + +} CLUSCTL_GROUP_CODES; + +// +// Cluster Control Codes for Nodes +// +typedef enum CLUSCTL_NODE_CODES { + + // External + CLUSCTL_NODE_UNKNOWN = + CLUSCTL_NODE_CODE( CLCTL_UNKNOWN ), + + CLUSCTL_NODE_GET_CHARACTERISTICS = + CLUSCTL_NODE_CODE( CLCTL_GET_CHARACTERISTICS ), + + CLUSCTL_NODE_GET_FLAGS = + CLUSCTL_NODE_CODE( CLCTL_GET_FLAGS ), + + CLUSCTL_NODE_GET_NAME = + CLUSCTL_NODE_CODE( CLCTL_GET_NAME ), + + CLUSCTL_NODE_GET_ID = + CLUSCTL_NODE_CODE( CLCTL_GET_ID ), + + CLUSCTL_NODE_ENUM_COMMON_PROPERTIES = + CLUSCTL_NODE_CODE( CLCTL_ENUM_COMMON_PROPERTIES ), + + CLUSCTL_NODE_GET_RO_COMMON_PROPERTIES = + CLUSCTL_NODE_CODE( CLCTL_GET_RO_COMMON_PROPERTIES ), + + CLUSCTL_NODE_GET_COMMON_PROPERTIES = + CLUSCTL_NODE_CODE( CLCTL_GET_COMMON_PROPERTIES ), + + CLUSCTL_NODE_SET_COMMON_PROPERTIES = + CLUSCTL_NODE_CODE( CLCTL_SET_COMMON_PROPERTIES ), + + CLUSCTL_NODE_VALIDATE_COMMON_PROPERTIES = + CLUSCTL_NODE_CODE( CLCTL_VALIDATE_COMMON_PROPERTIES ), + + CLUSCTL_NODE_ENUM_PRIVATE_PROPERTIES = + CLUSCTL_NODE_CODE( CLCTL_ENUM_PRIVATE_PROPERTIES ), + + CLUSCTL_NODE_GET_RO_PRIVATE_PROPERTIES = + CLUSCTL_NODE_CODE( CLCTL_GET_RO_PRIVATE_PROPERTIES ), + + CLUSCTL_NODE_GET_PRIVATE_PROPERTIES = + CLUSCTL_NODE_CODE( CLCTL_GET_PRIVATE_PROPERTIES ), + + CLUSCTL_NODE_SET_PRIVATE_PROPERTIES = + CLUSCTL_NODE_CODE( CLCTL_SET_PRIVATE_PROPERTIES ), + + CLUSCTL_NODE_VALIDATE_PRIVATE_PROPERTIES = + CLUSCTL_NODE_CODE( CLCTL_VALIDATE_PRIVATE_PROPERTIES ), + + CLUSCTL_NODE_GET_COMMON_PROPERTY_FMTS= + CLUSCTL_NODE_CODE( CLCTL_GET_COMMON_PROPERTY_FMTS ), + + CLUSCTL_NODE_GET_PRIVATE_PROPERTY_FMTS= + CLUSCTL_NODE_CODE( CLCTL_GET_PRIVATE_PROPERTY_FMTS ), + + CLUSCTL_NODE_GET_CLUSTER_SERVICE_ACCOUNT_NAME = + CLUSCTL_NODE_CODE( CLCTL_GET_CLUSTER_SERVICE_ACCOUNT_NAME ), + + CLUSCTL_NODE_GET_STUCK_NODES = + CLUSCTL_NODE_CODE( CLCTL_GET_STUCK_NODES), + + CLUSCTL_NODE_INJECT_GEM_FAULT = + CLUSCTL_NODE_CODE( CLCTL_INJECT_GEM_FAULT), + + CLUSCTL_NODE_INTRODUCE_GEM_REPAIR_DELAY = + CLUSCTL_NODE_CODE(CLCTL_INTRODUCE_GEM_REPAIR_DELAY), + + CLUSCTL_NODE_SEND_DUMMY_GEM_MESSAGES = + CLUSCTL_NODE_CODE(CLCTL_SEND_DUMMY_GEM_MESSAGES), + + CLUSCTL_NODE_BLOCK_GEM_SEND_RECV = + CLUSCTL_NODE_CODE(CLCTL_BLOCK_GEM_SEND_RECV), + + CLUSCTL_NODE_GET_GEMID_VECTOR = + CLUSCTL_NODE_CODE(CLCTL_GET_GEMID_VECTOR), +} CLUSCTL_NODE_CODES; + +// +// Cluster Control Codes for Networks +// +typedef enum CLUSCTL_NETWORK_CODES { + + // External + CLUSCTL_NETWORK_UNKNOWN = + CLUSCTL_NETWORK_CODE( CLCTL_UNKNOWN ), + + CLUSCTL_NETWORK_GET_CHARACTERISTICS = + CLUSCTL_NETWORK_CODE( CLCTL_GET_CHARACTERISTICS ), + + CLUSCTL_NETWORK_GET_FLAGS = + CLUSCTL_NETWORK_CODE( CLCTL_GET_FLAGS ), + + CLUSCTL_NETWORK_GET_NAME = + CLUSCTL_NETWORK_CODE( CLCTL_GET_NAME ), + + CLUSCTL_NETWORK_GET_ID = + CLUSCTL_NETWORK_CODE( CLCTL_GET_ID ), + + CLUSCTL_NETWORK_ENUM_COMMON_PROPERTIES = + CLUSCTL_NETWORK_CODE( CLCTL_ENUM_COMMON_PROPERTIES ), + + CLUSCTL_NETWORK_GET_RO_COMMON_PROPERTIES = + CLUSCTL_NETWORK_CODE( CLCTL_GET_RO_COMMON_PROPERTIES ), + + CLUSCTL_NETWORK_GET_COMMON_PROPERTIES = + CLUSCTL_NETWORK_CODE( CLCTL_GET_COMMON_PROPERTIES ), + + CLUSCTL_NETWORK_SET_COMMON_PROPERTIES = + CLUSCTL_NETWORK_CODE( CLCTL_SET_COMMON_PROPERTIES ), + + CLUSCTL_NETWORK_VALIDATE_COMMON_PROPERTIES = + CLUSCTL_NETWORK_CODE( CLCTL_VALIDATE_COMMON_PROPERTIES ), + + CLUSCTL_NETWORK_ENUM_PRIVATE_PROPERTIES = + CLUSCTL_NETWORK_CODE( CLCTL_ENUM_PRIVATE_PROPERTIES ), + + CLUSCTL_NETWORK_GET_RO_PRIVATE_PROPERTIES = + CLUSCTL_NETWORK_CODE( CLCTL_GET_RO_PRIVATE_PROPERTIES ), + + CLUSCTL_NETWORK_GET_PRIVATE_PROPERTIES = + CLUSCTL_NETWORK_CODE( CLCTL_GET_PRIVATE_PROPERTIES ), + + CLUSCTL_NETWORK_SET_PRIVATE_PROPERTIES = + CLUSCTL_NETWORK_CODE( CLCTL_SET_PRIVATE_PROPERTIES ), + + CLUSCTL_NETWORK_VALIDATE_PRIVATE_PROPERTIES = + CLUSCTL_NETWORK_CODE( CLCTL_VALIDATE_PRIVATE_PROPERTIES ), + + CLUSCTL_NETWORK_GET_COMMON_PROPERTY_FMTS= + CLUSCTL_NETWORK_CODE( CLCTL_GET_COMMON_PROPERTY_FMTS ), + + CLUSCTL_NETWORK_GET_PRIVATE_PROPERTY_FMTS= + CLUSCTL_NETWORK_CODE( CLCTL_GET_PRIVATE_PROPERTY_FMTS ), + + +} CLUSCTL_NETWORK_CODES; + +// +// Cluster Control Codes for Network Interfaces +// +typedef enum CLUSCTL_NETINTERFACE_CODES { + + // External + CLUSCTL_NETINTERFACE_UNKNOWN = + CLUSCTL_NETINTERFACE_CODE( CLCTL_UNKNOWN ), + + CLUSCTL_NETINTERFACE_GET_CHARACTERISTICS = + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_CHARACTERISTICS ), + + CLUSCTL_NETINTERFACE_GET_FLAGS = + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_FLAGS ), + + CLUSCTL_NETINTERFACE_GET_NAME = + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_NAME ), + + CLUSCTL_NETINTERFACE_GET_ID = + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_ID ), + + CLUSCTL_NETINTERFACE_GET_NODE = + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_NODE ), + + CLUSCTL_NETINTERFACE_GET_NETWORK = + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_NETWORK ), + + CLUSCTL_NETINTERFACE_ENUM_COMMON_PROPERTIES = + CLUSCTL_NETINTERFACE_CODE( CLCTL_ENUM_COMMON_PROPERTIES ), + + CLUSCTL_NETINTERFACE_GET_RO_COMMON_PROPERTIES = + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_RO_COMMON_PROPERTIES ), + + CLUSCTL_NETINTERFACE_GET_COMMON_PROPERTIES = + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_COMMON_PROPERTIES ), + + CLUSCTL_NETINTERFACE_SET_COMMON_PROPERTIES = + CLUSCTL_NETINTERFACE_CODE( CLCTL_SET_COMMON_PROPERTIES ), + + CLUSCTL_NETINTERFACE_VALIDATE_COMMON_PROPERTIES = + CLUSCTL_NETINTERFACE_CODE( CLCTL_VALIDATE_COMMON_PROPERTIES ), + + CLUSCTL_NETINTERFACE_ENUM_PRIVATE_PROPERTIES = + CLUSCTL_NETINTERFACE_CODE( CLCTL_ENUM_PRIVATE_PROPERTIES ), + + CLUSCTL_NETINTERFACE_GET_RO_PRIVATE_PROPERTIES = + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_RO_PRIVATE_PROPERTIES ), + + CLUSCTL_NETINTERFACE_GET_PRIVATE_PROPERTIES = + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_PRIVATE_PROPERTIES ), + + CLUSCTL_NETINTERFACE_SET_PRIVATE_PROPERTIES = + CLUSCTL_NETINTERFACE_CODE( CLCTL_SET_PRIVATE_PROPERTIES ), + + CLUSCTL_NETINTERFACE_VALIDATE_PRIVATE_PROPERTIES = + CLUSCTL_NETINTERFACE_CODE( CLCTL_VALIDATE_PRIVATE_PROPERTIES ), + + CLUSCTL_NETINTERFACE_GET_COMMON_PROPERTY_FMTS= + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_COMMON_PROPERTY_FMTS ), + + CLUSCTL_NETINTERFACE_GET_PRIVATE_PROPERTY_FMTS= + CLUSCTL_NETINTERFACE_CODE( CLCTL_GET_PRIVATE_PROPERTY_FMTS ), + + +} CLUSCTL_NETINTERFACE_CODES; + +// +// Cluster Control Codes for Clusters +// +typedef enum CLUSCTL_CLUSTER_CODES { + + // External + CLUSCTL_CLUSTER_UNKNOWN = + CLUSCTL_CLUSTER_CODE( CLCTL_UNKNOWN ), + + CLUSCTL_CLUSTER_GET_FQDN = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_FQDN ), + + CLUSCTL_CLUSTER_SET_STORAGE_CONFIGURATION = + CLUSCTL_CLUSTER_CODE( CLCTL_SET_STORAGE_CONFIGURATION ), + + CLUSCTL_CLUSTER_GET_STORAGE_CONFIGURATION = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_STORAGE_CONFIGURATION ), + + CLUSCTL_CLUSTER_GET_STORAGE_CONFIG_ATTRIBUTES = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_STORAGE_CONFIG_ATTRIBUTES ), + + CLUSCTL_CLUSTER_ENUM_COMMON_PROPERTIES = + CLUSCTL_CLUSTER_CODE( CLCTL_ENUM_COMMON_PROPERTIES ), + + CLUSCTL_CLUSTER_GET_RO_COMMON_PROPERTIES = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_RO_COMMON_PROPERTIES ), + + CLUSCTL_CLUSTER_GET_COMMON_PROPERTIES = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_COMMON_PROPERTIES ), + + CLUSCTL_CLUSTER_SET_COMMON_PROPERTIES = + CLUSCTL_CLUSTER_CODE( CLCTL_SET_COMMON_PROPERTIES ), + + CLUSCTL_CLUSTER_VALIDATE_COMMON_PROPERTIES = + CLUSCTL_CLUSTER_CODE( CLCTL_VALIDATE_COMMON_PROPERTIES ), + + CLUSCTL_CLUSTER_ENUM_PRIVATE_PROPERTIES = + CLUSCTL_CLUSTER_CODE( CLCTL_ENUM_PRIVATE_PROPERTIES ), + + CLUSCTL_CLUSTER_GET_RO_PRIVATE_PROPERTIES = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_RO_PRIVATE_PROPERTIES ), + + CLUSCTL_CLUSTER_GET_PRIVATE_PROPERTIES = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_PRIVATE_PROPERTIES ), + + CLUSCTL_CLUSTER_SET_PRIVATE_PROPERTIES = + CLUSCTL_CLUSTER_CODE( CLCTL_SET_PRIVATE_PROPERTIES ), + + CLUSCTL_CLUSTER_VALIDATE_PRIVATE_PROPERTIES = + CLUSCTL_CLUSTER_CODE( CLCTL_VALIDATE_PRIVATE_PROPERTIES ), + + CLUSCTL_CLUSTER_GET_COMMON_PROPERTY_FMTS= + CLUSCTL_CLUSTER_CODE( CLCTL_GET_COMMON_PROPERTY_FMTS ), + + CLUSCTL_CLUSTER_GET_PRIVATE_PROPERTY_FMTS= + CLUSCTL_CLUSTER_CODE( CLCTL_GET_PRIVATE_PROPERTY_FMTS ), + + CLUSCTL_CLUSTER_CHECK_VOTER_EVICT= + CLUSCTL_CLUSTER_CODE( CLCTL_CHECK_VOTER_EVICT ), + + CLUSCTL_CLUSTER_CHECK_VOTER_DOWN= + CLUSCTL_CLUSTER_CODE( CLCTL_CHECK_VOTER_DOWN ), + + CLUSCTL_CLUSTER_SHUTDOWN= + CLUSCTL_CLUSTER_CODE( CLCTL_SHUTDOWN ), + + CLUSCTL_CLUSTER_BATCH_BLOCK_KEY = + CLUSCTL_CLUSTER_CODE( CLCTL_BATCH_BLOCK_KEY ), + + CLUSCTL_CLUSTER_BATCH_UNBLOCK_KEY = + CLUSCTL_CLUSTER_CODE( CLCTL_BATCH_UNBLOCK_KEY ), + + CLUSCTL_CLUSTER_GET_SHARED_VOLUME_ID = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_SHARED_VOLUME_ID ), + + CLUSCTL_CLUSTER_GET_CLUSDB_TIMESTAMP = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_CLUSDB_TIMESTAMP ), + + CLUSCTL_CLUSTER_GET_GUM_LOCK_OWNER = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_GUM_LOCK_OWNER ), + + CLUSCTL_CLUSTER_REMOVE_NODE = + CLUSCTL_CLUSTER_CODE( CLCTL_REMOVE_NODE), + + CLUSCTL_CLUSTER_SET_ACCOUNT_ACCESS = + CLUSCTL_CLUSTER_CODE( CLCTL_SET_ACCOUNT_ACCESS), + + CLUSCTL_CLUSTER_CLEAR_NODE_CONNECTION_INFO = + CLUSCTL_CLUSTER_CODE ( CLCTL_CLEAR_NODE_CONNECTION_INFO ), + + CLUSCTL_CLUSTER_SET_DNS_DOMAIN = + CLUSCTL_CLUSTER_CODE ( CLCTL_SET_DNS_DOMAIN ), + + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD) + CLUSCTL_CLUSTER_SET_CLUSTER_S2D_ENABLED = + CLUSCTL_CLUSTER_CODE( CLCTL_SET_CLUSTER_S2D_ENABLED ), + + CLUSCTL_CLUSTER_SET_CLUSTER_S2D_CACHE_METADATA_RESERVE_BYTES = + CLUSCTL_CLUSTER_CODE( CLCTL_SET_CLUSTER_S2D_CACHE_METADATA_RESERVE_BYTES ), + + CLUSCTL_CLUSTER_STORAGE_RENAME_SHARED_VOLUME = + CLUSCTL_CLUSTER_CODE( CLCTL_STORAGE_RENAME_SHARED_VOLUME ), + + CLUSCTL_CLUSTER_STORAGE_RENAME_SHARED_VOLUME_GUID = + CLUSCTL_CLUSTER_CODE( CLCTL_STORAGE_RENAME_SHARED_VOLUME_GUID ), +#endif + + + CLUSCTL_CLUSTER_RELOAD_AUTOLOGGER_CONFIG = + CLUSCTL_CLUSTER_CODE( CLCTL_RELOAD_AUTOLOGGER_CONFIG ), + + CLUSCTL_CLUSTER_ENUM_AFFINITY_RULE_NAMES = + CLUSCTL_CLUSTER_CODE( CLCTL_ENUM_AFFINITY_RULE_NAMES ), + + CLUSCTL_CLUSTER_GET_NODES_IN_FD = + CLUSCTL_CLUSTER_CODE( CLCTL_GET_NODES_IN_FD ), + + CLUSCTL_CLUSTER_FORCE_FLUSH_DB = + CLUSCTL_CLUSTER_CODE( CLCTL_FORCE_DB_FLUSH ), + + CLUSCTL_CLUSTER_GET_CLMUSR_TOKEN = + CLUSCTL_CLUSTER_CODE( CLCTL_NETNAME_GET_VIRTUAL_SERVER_TOKEN ), + + + CLUSCTL_CLUSTER_CHECK_VOTER_EVICT_WITNESS = + CLUSCTL_CLUSTER_CODE( CLCTL_CHECK_VOTER_EVICT_WITNESS ), + + CLUSCTL_CLUSTER_CHECK_VOTER_DOWN_WITNESS = + CLUSCTL_CLUSTER_CODE( CLCTL_CHECK_VOTER_DOWN_WITNESS ), + +} CLUSCTL_CLUSTER_CODES; + +// +// Cluster Control Codes for GroupSets +// +typedef enum CLUSCTL_GROUPSET_CODES { + CLUSCTL_GROUPSET_GET_COMMON_PROPERTIES = + CLUSCTL_GROUPSET_CODE( CLCTL_GET_COMMON_PROPERTIES ), + + CLUSCTL_GROUPSET_GET_RO_COMMON_PROPERTIES = + CLUSCTL_GROUPSET_CODE( CLCTL_GET_RO_COMMON_PROPERTIES ), + + CLUSCTL_GROUPSET_SET_COMMON_PROPERTIES = + CLUSCTL_GROUPSET_CODE( CLCTL_SET_COMMON_PROPERTIES ), + + CLUSCTL_GROUPSET_GET_GROUPS = + CLUSCTL_GROUPSET_CODE( CLCTL_GROUPSET_GET_GROUPS ), + CLUSCTL_GROUPSET_GET_PROVIDER_GROUPS = + CLUSCTL_GROUPSET_CODE( CLCTL_GROUPSET_GET_PROVIDER_GROUPS ), + CLUSCTL_GROUPSET_GET_PROVIDER_GROUPSETS = + CLUSCTL_GROUPSET_CODE( CLCTL_GROUPSET_GET_PROVIDER_GROUPSETS ), + CLUSCTL_GROUP_GET_PROVIDER_GROUPS = + CLUSCTL_GROUPSET_CODE( CLCTL_GROUP_GET_PROVIDER_GROUPS ), + CLUSCTL_GROUP_GET_PROVIDER_GROUPSETS = + CLUSCTL_GROUPSET_CODE( CLCTL_GROUP_GET_PROVIDER_GROUPSETS ), + + CLUSCTL_GROUPSET_GET_ID = + CLUSCTL_GROUPSET_CODE( CLCTL_GET_ID ), + + +} CLUSCTL_GROUPSET_CODES; + +// +// Cluster control codes for Affinity Rules +// +typedef enum CLUSCTL_AFFINITYRULE_CODES { + CLUSCTL_AFFINITYRULE_GET_COMMON_PROPERTIES = + CLUSCTL_AFFINITYRULE_CODE( CLCTL_GET_COMMON_PROPERTIES ), + + CLUSCTL_AFFINITYRULE_GET_RO_COMMON_PROPERTIES = + CLUSCTL_AFFINITYRULE_CODE( CLCTL_GET_RO_COMMON_PROPERTIES ), + + CLUSCTL_AFFINITYRULE_SET_COMMON_PROPERTIES = + CLUSCTL_AFFINITYRULE_CODE( CLCTL_SET_COMMON_PROPERTIES ), + + CLUSCTL_AFFINITYRULE_GET_ID = + CLUSCTL_AFFINITYRULE_CODE( CLCTL_GET_ID ), + + CLUSCTL_AFFINITYRULE_GET_GROUPNAMES = + CLUSCTL_AFFINITYRULE_CODE( CLCTL_GROUPSET_GET_GROUPS ), + +} CLUSCTL_AFFINITYRULE_CODES; + + +// +// Cluster Resource Class types +// +typedef enum CLUSTER_RESOURCE_CLASS { + CLUS_RESCLASS_UNKNOWN = 0, + CLUS_RESCLASS_STORAGE, + CLUS_RESCLASS_NETWORK, + CLUS_RESCLASS_USER = 32768 +} CLUSTER_RESOURCE_CLASS; + +// +// Define Resource SubClass bits +// +// legacy subclass struct +// +typedef enum CLUS_RESSUBCLASS { + CLUS_RESSUBCLASS_SHARED = 0x80000000 +} CLUS_RESSUBCLASS; + +typedef enum CLUS_RESSUBCLASS_STORAGE { + CLUS_RESSUBCLASS_STORAGE_SHARED_BUS = 0x80000000, + CLUS_RESSUBCLASS_STORAGE_DISK = 0x40000000, + CLUS_RESSUBCLASS_STORAGE_REPLICATION = 0x10000000 +} CLUS_RESSUBCLASS_STORAGE; + +typedef enum CLUS_RESSUBCLASS_NETWORK { + CLUS_RESSUBCLASS_NETWORK_INTERNET_PROTOCOL = 0x80000000 // Identifies IP address providers +} CLUS_RESSUBCLASS_NETWORK; + +// +// Cluster Characteristics used by resource types and resources +// +typedef enum CLUS_CHARACTERISTICS { + CLUS_CHAR_UNKNOWN = 0x00000000, + CLUS_CHAR_QUORUM = 0x00000001, + CLUS_CHAR_DELETE_REQUIRES_ALL_NODES = 0x00000002, + CLUS_CHAR_LOCAL_QUORUM = 0x00000004, // deprecated in Vista + CLUS_CHAR_LOCAL_QUORUM_DEBUG = 0x00000008, // deprecated in Vista + CLUS_CHAR_REQUIRES_STATE_CHANGE_REASON = 0x00000010, + CLUS_CHAR_BROADCAST_DELETE = 0x00000020, + CLUS_CHAR_SINGLE_CLUSTER_INSTANCE = 0x00000040, // only one resource of this type allowed per cluster + CLUS_CHAR_SINGLE_GROUP_INSTANCE = 0x00000080, // only one resource of this type allowed per group + CLUS_CHAR_COEXIST_IN_SHARED_VOLUME_GROUP= 0x00000100, + CLUS_CHAR_PLACEMENT_DATA = 0x00000200, + CLUS_CHAR_MONITOR_DETACH = 0x00000400, + CLUS_CHAR_MONITOR_REATTACH = 0x00000800, + CLUS_CHAR_OPERATION_CONTEXT = 0x00001000, + CLUS_CHAR_CLONES = 0x00002000, + CLUS_CHAR_NOT_PREEMPTABLE = 0x00004000, + CLUS_CHAR_NOTIFY_NEW_OWNER = 0x00008000, + CLUS_CHAR_SUPPORTS_UNMONITORED_STATE = 0x00010000, + CLUS_CHAR_INFRASTRUCTURE = 0x00020000, // The resource type is for infrastructure and is not for roles + CLUS_CHAR_VETO_DRAIN = 0x00040000, + CLUS_CHAR_DRAIN_LOCAL_OFFLINE = 0x00080000 + +} CLUS_CHARACTERISTICS; + +// +// Cluster Flags +// +typedef enum CLUS_FLAGS { + CLUS_FLAG_CORE = 0x00000001 +} CLUS_FLAGS; + + +// +// Cluster Resource Property Helper Structures +// + +#if ( !MIDL_PASS && !__midl ) + +// Property syntax. Used for property names and values. +typedef union CLUSPROP_SYNTAX { + DWORD dw; + struct { + WORD wFormat; + WORD wType; + } DUMMYSTRUCTNAME; +} CLUSPROP_SYNTAX, *PCLUSPROP_SYNTAX; + +// Property value. +typedef struct CLUSPROP_VALUE { + CLUSPROP_SYNTAX Syntax; + DWORD cbLength; +} CLUSPROP_VALUE, *PCLUSPROP_VALUE; + +// Binary property value. +#ifdef __cplusplus +typedef struct CLUSPROP_BINARY : public CLUSPROP_VALUE { +#else +typedef struct CLUSPROP_BINARY { + CLUSPROP_VALUE; +#endif + BYTE rgb[]; +} CLUSPROP_BINARY, *PCLUSPROP_BINARY; + +// WORD property value. +#ifdef __cplusplus +typedef struct CLUSPROP_WORD : public CLUSPROP_VALUE { +#else +typedef struct CLUSPROP_WORD { + CLUSPROP_VALUE; +#endif + WORD w; +} CLUSPROP_WORD, *PCLUSPROP_WORD; + +// DWORD property value. +#ifdef __cplusplus +typedef struct CLUSPROP_DWORD : public CLUSPROP_VALUE { +#else +typedef struct CLUSPROP_DWORD { + CLUSPROP_VALUE; +#endif + DWORD dw; +} CLUSPROP_DWORD, *PCLUSPROP_DWORD; + +// LONG property value. +#ifdef __cplusplus +typedef struct CLUSPROP_LONG : public CLUSPROP_VALUE { +#else +typedef struct CLUSPROP_LONG { + CLUSPROP_VALUE; +#endif + LONG l; +} CLUSPROP_LONG, *PCLUSPROP_LONG; + +// String property value. +#ifdef __cplusplus +typedef struct CLUSPROP_SZ : public CLUSPROP_VALUE { +#else +typedef struct CLUSPROP_SZ { + CLUSPROP_VALUE; +#endif + WCHAR sz[]; +} CLUSPROP_SZ, *PCLUSPROP_SZ; + +// Multiple string property value. +typedef CLUSPROP_SZ CLUSPROP_MULTI_SZ, *PCLUSPROP_MULTI_SZ; + +// Property name. +typedef CLUSPROP_SZ CLUSPROP_PROPERTY_NAME, *PCLUSPROP_PROPERTY_NAME; + +// Unsigned large Integer property value. +#ifdef __cplusplus +typedef struct CLUSPROP_ULARGE_INTEGER + : public CLUSPROP_VALUE { +#else +typedef struct CLUSPROP_ULARGE_INTEGER { + CLUSPROP_VALUE; +#endif + ULARGE_INTEGER li; +} CLUSPROP_ULARGE_INTEGER; + +typedef CLUSPROP_ULARGE_INTEGER UNALIGNED *PCLUSPROP_ULARGE_INTEGER; + +// Signed large Integer property value. +#ifdef __cplusplus +typedef struct CLUSPROP_LARGE_INTEGER + : public CLUSPROP_VALUE { +#else +typedef struct CLUSPROP_LARGE_INTEGER { + CLUSPROP_VALUE; +#endif + LARGE_INTEGER li; +} CLUSPROP_LARGE_INTEGER; + +typedef CLUSPROP_LARGE_INTEGER UNALIGNED *PCLUSPROP_LARGE_INTEGER; + +// Security Descriptor property value. +#ifdef __cplusplus +typedef struct CLUSPROP_SECURITY_DESCRIPTOR : public CLUSPROP_VALUE { +#else +typedef struct CLUSPROP_SECURITY_DESCRIPTOR { + CLUSPROP_VALUE; +#endif + union { + SECURITY_DESCRIPTOR_RELATIVE sd; + BYTE rgbSecurityDescriptor[]; + } DUMMYUNIONNAME; +} CLUSPROP_SECURITY_DESCRIPTOR, *PCLUSPROP_SECURITY_DESCRIPTOR; + +// FILETIME Time property value. +#ifdef __cplusplus +typedef struct CLUSPROP_FILETIME + : public CLUSPROP_VALUE { +#else +typedef struct CLUSPROP_FILETIME { + CLUSPROP_VALUE; +#endif + FILETIME ft; +} CLUSPROP_FILETIME, *PCLUSPROP_FILETIME; + +// Resource class info returned by CLCTL_GET_CLASS_INFO control functions. +typedef struct CLUS_RESOURCE_CLASS_INFO { + union { + struct { + union { + DWORD dw; + CLUSTER_RESOURCE_CLASS rc; + } DUMMYUNIONNAME; + DWORD SubClass; + } DUMMYSTRUCTNAME; + ULARGE_INTEGER li; + } DUMMYUNIONNAME; +} CLUS_RESOURCE_CLASS_INFO, *PCLUS_RESOURCE_CLASS_INFO; + +// Resource class property value. +#ifdef __cplusplus +typedef struct CLUSPROP_RESOURCE_CLASS + : public CLUSPROP_VALUE { +#else +typedef struct CLUSPROP_RESOURCE_CLASS { + CLUSPROP_VALUE; +#endif + CLUSTER_RESOURCE_CLASS rc; +} CLUSPROP_RESOURCE_CLASS, *PCLUSPROP_RESOURCE_CLASS; + +// Resource class info property value. +#ifdef __cplusplus +typedef struct CLUSPROP_RESOURCE_CLASS_INFO + : public CLUSPROP_VALUE + , public CLUS_RESOURCE_CLASS_INFO { +#else +typedef struct CLUSPROP_RESOURCE_CLASS_INFO { + CLUSPROP_VALUE; + CLUS_RESOURCE_CLASS_INFO; +#endif +} CLUSPROP_RESOURCE_CLASS_INFO, *PCLUSPROP_RESOURCE_CLASS_INFO; + +// One entry from list returned by CLCTL_GET_REQUIRED_DEPENDENCIES control functions. +typedef union CLUSPROP_REQUIRED_DEPENDENCY { + CLUSPROP_VALUE Value; + CLUSPROP_RESOURCE_CLASS ResClass; + CLUSPROP_SZ ResTypeName; +} CLUSPROP_REQUIRED_DEPENDENCY, *PCLUSPROP_REQUIRED_DEPENDENCY; + +typedef CLUSPROP_DWORD CLUSPROP_DISK_NUMBER, *PCLUSPROP_DISK_NUMBER; + +#endif // MIDL_PASS +#endif // _CLUSTER_API_TYPES_ + +#ifndef _CLUSTER_API_TYPES_ + +// Disk partition information flags. +typedef enum CLUSPROP_PIFLAGS { + CLUSPROP_PIFLAG_STICKY = 0x00000001, + CLUSPROP_PIFLAG_REMOVABLE = 0x00000002, + CLUSPROP_PIFLAG_USABLE = 0x00000004, + CLUSPROP_PIFLAG_DEFAULT_QUORUM = 0x00000008, + CLUSPROP_PIFLAG_USABLE_FOR_CSV = 0x00000010, + CLUSPROP_PIFLAG_ENCRYPTION_ENABLED = 0x00000020, + CLUSPROP_PIFLAG_RAW = 0x00000040, + CLUSPROP_PIFLAG_UNKNOWN = 0x80000000 +} CLUSPROP_PIFLAGS; + +#if ( !MIDL_PASS && !__midl ) +//force quorum information, useful for QON type resources +//to be able to continue operation without the quorum +typedef struct CLUS_FORCE_QUORUM_INFO { + DWORD dwSize; // size of this struct including the nodes list. + DWORD dwNodeBitMask; // a bit mask representing the max assumed node set + DWORD dwMaxNumberofNodes; // the number of bits set in the mask + WCHAR multiszNodeList[1]; // Multi sz list of nodes +} CLUS_FORCE_QUORUM_INFO, *PCLUS_FORCE_QUORUM_INFO; + + +// Disk partition information. +typedef struct CLUS_PARTITION_INFO { + DWORD dwFlags; + WCHAR szDeviceName[MAX_PATH]; + WCHAR szVolumeLabel[MAX_PATH]; + DWORD dwSerialNumber; + DWORD rgdwMaximumComponentLength; + DWORD dwFileSystemFlags; + WCHAR szFileSystem[32]; +} CLUS_PARTITION_INFO, *PCLUS_PARTITION_INFO; + +// Disk partition information ex + +// NOTE: property lists are 32b aligned which means this structure could be returned with a starting +// address that is 32b. aligned, i.e., an address ending in 0, 4, 8 or 0xC. The distance to the +// ULARGE_INTEGER members are properly aligned when the address of the structure ends with 0 or 8 but +// are unaligned when the structure addresses ends with 4 or 0xC. Since it is unpredictable as to +// the alignment of the structure's address, the developer must always access the ULARGE_INTEGER members +// with unaligned pointers or copy the data to another, aligned structure. + +typedef struct CLUS_PARTITION_INFO_EX { + DWORD dwFlags; + WCHAR szDeviceName[MAX_PATH]; + WCHAR szVolumeLabel[MAX_PATH]; + DWORD dwSerialNumber; + DWORD rgdwMaximumComponentLength; + DWORD dwFileSystemFlags; + WCHAR szFileSystem[32]; + ULARGE_INTEGER TotalSizeInBytes; + ULARGE_INTEGER FreeSizeInBytes; + DWORD DeviceNumber; + DWORD PartitionNumber; + GUID VolumeGuid; +} CLUS_PARTITION_INFO_EX, *PCLUS_PARTITION_INFO_EX; + +// Disk partition information ex V2 contains these members in addition to ex. +typedef struct CLUS_PARTITION_INFO_EX2 { + GUID GptPartitionId; + WCHAR szPartitionName[MAX_PATH]; + DWORD EncryptionFlags; +} CLUS_PARTITION_INFO_EX2, *PCLUS_PARTITION_INFO_EX2; + +// Bitmask for volume encryption flags (used in CLUS_PARTITION_INFO_EX2) +#define BitLockerEnabled (0x00000001L) +#define BitLockerDecrypted (0x00000004L) +#define BitlockerEncrypted (0x00000008L) +#define BitLockerDecrypting (0x00000010L) +#define BitlockerEncrypting (0x00000020L) +#define BitLockerPaused (0x00000040L) +#define BitLockerStopped (0x00000080L) +#define BitLockerFlagsAll (BitLockerEnabled | BitLockerDecrypted | BitlockerEncrypted | BitLockerDecrypting | BitlockerEncrypting | BitLockerPaused | BitLockerStopped) + +typedef enum _CLUSTER_CSV_VOLUME_FAULT_STATE { + VolumeStateNoFaults = 0x00000000, + VolumeStateNoDirectIO = 0x00000001, + VolumeStateNoAccess = 0x00000002, + VolumeStateInMaintenance = 0x00000004, + VolumeStateDismounted = 0x00000008 +} CLUSTER_CSV_VOLUME_FAULT_STATE, *PCLUSTER_CSV_VOLUME_FAULT_STATE; + +typedef enum _CLUSTER_SHARED_VOLUME_BACKUP_STATE { + VolumeBackupNone = 0x00000000, + VolumeBackupInProgress = 0x00000001 +} CLUSTER_SHARED_VOLUME_BACKUP_STATE, *PCLUSTER_SHARED_VOLUME_BACKUP_STATE; + +typedef struct _CLUS_CSV_VOLUME_INFO { + ULARGE_INTEGER VolumeOffset; + DWORD PartitionNumber; + CLUSTER_CSV_VOLUME_FAULT_STATE FaultState; + CLUSTER_SHARED_VOLUME_BACKUP_STATE BackupState; + WCHAR szVolumeFriendlyName[MAX_PATH]; + WCHAR szVolumeName[50]; // CSV volume name +} CLUS_CSV_VOLUME_INFO, *PCLUS_CSV_VOLUME_INFO; + +typedef struct _CLUS_CSV_VOLUME_NAME { + LARGE_INTEGER VolumeOffset; + WCHAR szVolumeName[MAX_PATH]; + WCHAR szRootPath[MAX_PATH+3]; +} CLUS_CSV_VOLUME_NAME, *PCLUS_CSV_VOLUME_NAME; + +typedef enum _CLUSTER_SHARED_VOLUME_STATE +{ + SharedVolumeStateUnavailable = 0, + SharedVolumeStatePaused = 1, + SharedVolumeStateActive = 2, + SharedVolumeStateActiveRedirected = 3, + SharedVolumeStateActiveVolumeRedirected = 4 + +} CLUSTER_SHARED_VOLUME_STATE, *PCLUSTER_SHARED_VOLUME_STATE; + +typedef struct _CLUSTER_SHARED_VOLUME_STATE_INFO +{ + WCHAR szVolumeName[MAX_PATH]; + WCHAR szNodeName[MAX_PATH]; + CLUSTER_SHARED_VOLUME_STATE VolumeState; +} CLUSTER_SHARED_VOLUME_STATE_INFO, *PCLUSTER_SHARED_VOLUME_STATE_INFO; + +// Bit mask values for CSV redirected IO reason - upto 64 reasons are supported. +#define RedirectedIOReasonUserRequest 0x0000000000000001 +#define RedirectedIOReasonUnsafeFileSystemFilter 0x0000000000000002 +#define RedirectedIOReasonUnsafeVolumeFilter 0x0000000000000004 +#define RedirectedIOReasonFileSystemTiering 0x0000000000000008 +#define RedirectedIOReasonBitLockerInitializing 0x0000000000000010 +#define RedirectedIOReasonReFs 0x0000000000000020 +#define RedirectedIOReasonMax 0x8000000000000000 + +#define VolumeRedirectedIOReasonNoDiskConnectivity 0x0000000000000001 +#define VolumeRedirectedIOReasonStorageSpaceNotAttached 0x0000000000000002 +#define VolumeRedirectedIOReasonVolumeReplicationEnabled 0x0000000000000004 +#define VolumeRedirectedIOReasonMax 0x8000000000000000 + +typedef struct _CLUSTER_SHARED_VOLUME_STATE_INFO_EX +{ + WCHAR szVolumeName[MAX_PATH]; + WCHAR szNodeName[MAX_PATH]; + CLUSTER_SHARED_VOLUME_STATE VolumeState; + WCHAR szVolumeFriendlyName[MAX_PATH]; + ULONGLONG RedirectedIOReason; + ULONGLONG VolumeRedirectedIOReason; +} CLUSTER_SHARED_VOLUME_STATE_INFO_EX, *PCLUSTER_SHARED_VOLUME_STATE_INFO_EX; + + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD) +typedef enum _CLUSTER_SHARED_VOLUME_RENAME_INPUT_TYPE +{ + ClusterSharedVolumeRenameInputTypeNone, + ClusterSharedVolumeRenameInputTypeVolumeOffset, + ClusterSharedVolumeRenameInputTypeVolumeId, + ClusterSharedVolumeRenameInputTypeVolumeName, + ClusterSharedVolumeRenameInputTypeVolumeGuid +} CLUSTER_SHARED_VOLUME_RENAME_INPUT_TYPE, *PCLUSTER_SHARED_VOLUME_RENAME_INPUT_TYPE; + +typedef struct _CLUSTER_SHARED_VOLUME_RENAME_INPUT_VOLUME +{ + CLUSTER_SHARED_VOLUME_RENAME_INPUT_TYPE InputType; + union + { + ULONGLONG VolumeOffset; + WCHAR VolumeId[MAX_PATH]; + WCHAR VolumeName[MAX_PATH]; + WCHAR VolumeGuid[50]; + }; +} CLUSTER_SHARED_VOLUME_RENAME_INPUT_VOLUME, *PCLUSTER_SHARED_VOLUME_RENAME_INPUT_VOLUME; + +typedef struct _CLUSTER_SHARED_VOLUME_RENAME_INPUT_NAME +{ + WCHAR NewVolumeName[MAX_PATH]; +} CLUSTER_SHARED_VOLUME_RENAME_INPUT_NAME, *PCLUSTER_SHARED_VOLUME_RENAME_INPUT_NAME; + +typedef struct _CLUSTER_SHARED_VOLUME_RENAME_INPUT_GUID_NAME +{ + WCHAR NewVolumeName[MAX_PATH]; + WCHAR NewVolumeGuid[50]; +} CLUSTER_SHARED_VOLUME_RENAME_INPUT_GUID_NAME, *PCLUSTER_SHARED_VOLUME_RENAME_INPUT_GUID_NAME; + +#ifdef __cplusplus +typedef struct _CLUSTER_SHARED_VOLUME_RENAME_INPUT + : public CLUSTER_SHARED_VOLUME_RENAME_INPUT_VOLUME + , public CLUSTER_SHARED_VOLUME_RENAME_INPUT_NAME { +#else +typedef struct _CLUSTER_SHARED_VOLUME_RENAME_INPUT { + CLUSTER_SHARED_VOLUME_RENAME_INPUT_VOLUME; + CLUSTER_SHARED_VOLUME_RENAME_INPUT_NAME; +#endif +} CLUSTER_SHARED_VOLUME_RENAME_INPUT, *PCLUSTER_SHARED_VOLUME_RENAME_INPUT; + +#ifdef __cplusplus +typedef struct _CLUSTER_SHARED_VOLUME_RENAME_GUID_INPUT + : public CLUSTER_SHARED_VOLUME_RENAME_INPUT_VOLUME + , public CLUSTER_SHARED_VOLUME_RENAME_INPUT_GUID_NAME { +#else +typedef struct _CLUSTER_SHARED_VOLUME_RENAME_GUID_INPUT { + CLUSTER_SHARED_VOLUME_RENAME_INPUT_VOLUME; + CLUSTER_SHARED_VOLUME_RENAME_INPUT_GUID_NAME; +#endif +} CLUSTER_SHARED_VOLUME_RENAME_GUID_INPUT, *PCLUSTER_SHARED_VOLUME_RENAME_GUID_INPUT; + +#endif // CLUSAPI_VERSION >= CLUSAPI_VERSION_WINTHRESHOLD + +typedef struct _CLUS_CHKDSK_INFO { + DWORD PartitionNumber; + DWORD ChkdskState; + DWORD FileIdCount; + ULONGLONG FileIdList[1]; // variable length array +} CLUS_CHKDSK_INFO, *PCLUS_CHKDSK_INFO; + +typedef struct _CLUS_DISK_NUMBER_INFO { + DWORD DiskNumber; + DWORD BytesPerSector; +} CLUS_DISK_NUMBER_INFO, *PCLUS_DISK_NUMBER_INFO; + +typedef struct _CLUS_SHARED_VOLUME_BACKUP_MODE { + CLUSTER_SHARED_VOLUME_BACKUP_STATE BackupState; + DWORD DelayTimerInSecs; + WCHAR VolumeName[MAX_PATH]; +} CLUS_SHARED_VOLUME_BACKUP_MODE, *PCLUS_SHARED_VOLUME_BACKUP_MODE; + +// Disk partition information property value. +#ifdef __cplusplus +typedef struct CLUSPROP_PARTITION_INFO + : public CLUSPROP_VALUE + , public CLUS_PARTITION_INFO { +#else +typedef struct CLUSPROP_PARTITION_INFO { + CLUSPROP_VALUE; + CLUS_PARTITION_INFO; +#endif +} CLUSPROP_PARTITION_INFO, *PCLUSPROP_PARTITION_INFO; + +// Disk partition information ex property value. +#ifdef __cplusplus +typedef struct CLUSPROP_PARTITION_INFO_EX + : public CLUSPROP_VALUE + , public CLUS_PARTITION_INFO_EX { +#else +typedef struct CLUSPROP_PARTITION_INFO_EX { + CLUSPROP_VALUE; + CLUS_PARTITION_INFO_EX; +#endif +} CLUSPROP_PARTITION_INFO_EX; + +typedef CLUSPROP_PARTITION_INFO_EX UNALIGNED *PCLUSPROP_PARTITION_INFO_EX; + +// Disk partition information for CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO_EX2 +#ifdef __cplusplus +typedef struct CLUSPROP_PARTITION_INFO_EX2 + : public CLUSPROP_PARTITION_INFO_EX + , public CLUS_PARTITION_INFO_EX2 { +#else +typedef struct CLUSPROP_PARTITION_INFO_EX2 { + CLUSPROP_PARTITION_INFO_EX; + CLUS_PARTITION_INFO_EX2; +#endif +} CLUSPROP_PARTITION_INFO_EX2; + +typedef CLUSPROP_PARTITION_INFO_EX2 UNALIGNED *PCLUSPROP_PARTITION_INFO_EX2; + +// +// FT set information. +// +typedef struct CLUS_FTSET_INFO { + DWORD dwRootSignature; + DWORD dwFtType; +} CLUS_FTSET_INFO, *PCLUS_FTSET_INFO; + +// Disk partition information property value. +#ifdef __cplusplus +typedef struct CLUSPROP_FTSET_INFO + : public CLUSPROP_VALUE + , public CLUS_FTSET_INFO { +#else +typedef struct CLUSPROP_FTSET_INFO { + CLUSPROP_VALUE; + CLUS_FTSET_INFO; +#endif +} CLUSPROP_FTSET_INFO, *PCLUSPROP_FTSET_INFO; + +// Disk Signature property value. +typedef CLUSPROP_DWORD CLUSPROP_DISK_SIGNATURE, *PCLUSPROP_DISK_SIGNATURE; + +// SCSI Address. +typedef struct CLUS_SCSI_ADDRESS { + union { + struct { + UCHAR PortNumber; + UCHAR PathId; + UCHAR TargetId; + UCHAR Lun; + } DUMMYSTRUCTNAME; + DWORD dw; + } DUMMYUNIONNAME; +} CLUS_SCSI_ADDRESS, *PCLUS_SCSI_ADDRESS; + +// SCSI Address property value. +#ifdef __cplusplus +typedef struct CLUSPROP_SCSI_ADDRESS + : public CLUSPROP_VALUE + , public CLUS_SCSI_ADDRESS { +#else +typedef struct CLUSPROP_SCSI_ADDRESS { + CLUSPROP_VALUE; + CLUS_SCSI_ADDRESS; +#endif +} CLUSPROP_SCSI_ADDRESS, *PCLUSPROP_SCSI_ADDRESS; + +// +// input structure for CLUSCTL_RESOURCE_NETNAME_GET_VIRTUAL_SERVER_TOKEN +// +typedef struct CLUS_NETNAME_VS_TOKEN_INFO { + DWORD ProcessID; + DWORD DesiredAccess; + BOOL InheritHandle; +} CLUS_NETNAME_VS_TOKEN_INFO, CLUS_VS_TOKEN_INFO, *PCLUS_NETNAME_VS_TOKEN_INFO, *PCLUS_VS_TOKEN_INFO; + +// +// input structure for CLUSCTL_RESOURCE_NETNAME_SET_PWD_INFO and for CLUSCTL_RESOURCE_RLUA_SET_PWD_INFO +// +#define MAX_OBJECTID 64 +#define MAX_CO_PASSWORD_LENGTH 16 +#define GUID_PRESENT 0x1 +#define CREATEDC_PRESENT 0x2 + +// (PWLEN/sizeof(wchar_t))-1 is the max allowed password size, remember to add 1 to buffers to hold the null +#define MAX_CO_PASSWORD_LENGTHEX 127 + +// including the null +#define MAX_CO_PASSWORD_STORAGEEX 128 + +#define MAX_CREATINGDC_LENGTH 256 + +typedef struct CLUS_NETNAME_PWD_INFO { + DWORD Flags; + WCHAR Password[MAX_CO_PASSWORD_LENGTH]; + WCHAR CreatingDC[MAX_CREATINGDC_LENGTH+2]; // including the '\\' prefix + WCHAR ObjectGuid[MAX_OBJECTID]; // +} CLUS_NETNAME_PWD_INFO, *PCLUS_NETNAME_PWD_INFO, CLUS_RLUA_PWD_INFO, *PCLUS_RLUA_PWD_INFO; + +// +// input structure for CLUSCTL_RESOURCE_NETNAME_SET_PWD_INFOEX and for CLUSCTL_RESOURCE_RLUA_SET_PWD_INFOEX +// +typedef struct CLUS_NETNAME_PWD_INFOEX { + DWORD Flags; + WCHAR Password[MAX_CO_PASSWORD_STORAGEEX]; + WCHAR CreatingDC[MAX_CREATINGDC_LENGTH+2]; // including the '\\' prefix + WCHAR ObjectGuid[MAX_OBJECTID]; // +} CLUS_NETNAME_PWD_INFOEX, *PCLUS_NETNAME_PWD_INFOEX, CLUS_RLUA_PWD_INFOEX, *PCLUS_RLUA_PWD_INFOEX; + + +// +// input structure for CLUSCTL_RESOURCE_DNN_SEND_LEADER_STATUS and for CLUSCTL_RESOURCE_DNN_REFRESH_CLONES +// +typedef struct CLUS_DNN_LEADER_STATUS { + BOOL IsOnline; // Indicates if the leader is online or is shutting down + BOOL IsFileServerPresent; // Indicates if a file server is depending on the netname +} CLUS_DNN_LEADER_STATUS , *PCLUS_DNN_LEADER_STATUS; + +// +// input structure for CLUSCTL_RESOURCE_DNN_UPDATE_SODAFS_CLONE_STATUS +// +typedef struct CLUS_DNN_SODAFS_CLONE_STATUS { + DWORD NodeId; // Indicates the cluster assigned node id of the SODAFS clone + CLUSTER_RESOURCE_STATE Status; // Indicates the status of the clone (Online/Failed) +} CLUS_DNN_SODAFS_CLONE_STATUS , *PCLUS_DNN_SODAFS_CLONE_STATUS; + +// +// A single IP info entry consisting of the node and the IP address +// +typedef struct CLUS_NETNAME_IP_INFO_ENTRY { + DWORD NodeId; // Node to which this IP belongs to + DWORD AddressSize; + BYTE Address[ANYSIZE_ARRAY]; // The actual IP info +} CLUS_NETNAME_IP_INFO_ENTRY, *PCLUS_NETNAME_IP_INFO_ENTRY; + +// +// input structure for CLUSCTL_RESOURCE_NETNAME_SEND_IP_INFO_FOR_MULTICHANNEL +// +#define DNS_LENGTH 64 +typedef struct CLUS_NETNAME_IP_INFO_FOR_MULTICHANNEL { + WCHAR szName[DNS_LENGTH]; // The actual name + DWORD NumEntries; // Number of CLUS_NETNAME_IP_INFO_ENTRY + CLUS_NETNAME_IP_INFO_ENTRY IpInfo[ANYSIZE_ARRAY]; // The actual IP Info as an array +} CLUS_NETNAME_IP_INFO_FOR_MULTICHANNEL, *PCLUS_NETNAME_IP_INFO_FOR_MULTICHANNEL; + +// +// input/output structure associated with Maintenance Mode +// +typedef struct CLUS_MAINTENANCE_MODE_INFO { + BOOL InMaintenance; +} CLUS_MAINTENANCE_MODE_INFO, *PCLUS_MAINTENANCE_MODE_INFO; + +typedef struct CLUS_CSV_MAINTENANCE_MODE_INFO { + BOOL InMaintenance; + WCHAR VolumeName[MAX_PATH]; +} CLUS_CSV_MAINTENANCE_MODE_INFO, *PCLUS_CSV_MAINTENANCE_MODE_INFO; + +#define MAINTENANCE_MODE_V2_SIG 0xabbaf00f + +typedef enum _MAINTENANCE_MODE_TYPE_ENUM { + MaintenanceModeTypeDisableIsAliveCheck=1, + MaintenanceModeTypeOfflineResource=2, + MaintenanceModeTypeUnclusterResource=3, +} MAINTENANCE_MODE_TYPE_ENUM, *PMAINTENANCE_MODE_TYPE_ENUM; + +typedef struct _CLUS_MAINTENANCE_MODE_INFOEX { + BOOL InMaintenance; + MAINTENANCE_MODE_TYPE_ENUM MaintainenceModeType; + CLUSTER_RESOURCE_STATE InternalState; + DWORD Signature; +} CLUS_MAINTENANCE_MODE_INFOEX, *PCLUS_MAINTENANCE_MODE_INFOEX; + +typedef struct _CLUS_SET_MAINTENANCE_MODE_INPUT { + BOOL InMaintenance; + DWORD ExtraParameterSize; + BYTE ExtraParameter[1]; +} CLUS_SET_MAINTENANCE_MODE_INPUT, *PCLUS_SET_MAINTENANCE_MODE_INPUT; + +typedef struct _CLUS_STORAGE_SET_DRIVELETTER { + DWORD PartitionNumber; + DWORD DriveLetterMask; +} CLUS_STORAGE_SET_DRIVELETTER, *PCLUS_STORAGE_SET_DRIVELETTER; + +typedef struct _CLUS_STORAGE_GET_AVAILABLE_DRIVELETTERS { + DWORD AvailDrivelettersMask; +} CLUS_STORAGE_GET_AVAILABLE_DRIVELETTERS, *PCLUS_STORAGE_GET_AVAILABLE_DRIVELETTERS; + +typedef struct _CLUS_STORAGE_REMAP_DRIVELETTER { + DWORD CurrentDriveLetterMask; + DWORD TargetDriveLetterMask; +} CLUS_STORAGE_REMAP_DRIVELETTER, *PCLUS_STORAGE_REMAP_DRIVELETTER; + +typedef struct _CLUS_PROVIDER_STATE_CHANGE_INFO { + DWORD dwSize; // size of this struct including the provider name. + CLUSTER_RESOURCE_STATE resourceState; + WCHAR szProviderId[1]; +} CLUS_PROVIDER_STATE_CHANGE_INFO, *PCLUS_PROVIDER_STATE_CHANGE_INFO; + +// Cluster set create fileserver control input. +typedef struct _CLUS_CREATE_INFRASTRUCTURE_FILESERVER_INPUT { + WCHAR FileServerName[16]; +} CLUS_CREATE_INFRASTRUCTURE_FILESERVER_INPUT, *PCLUS_CREATE_INFRASTRUCTURE_FILESERVER_INPUT; + +// Cluster set create fileserver control output. +typedef struct _CLUS_CREATE_INFRASTRUCTURE_FILESERVER_OUTPUT { + WCHAR FileServerName[MAX_PATH]; +} CLUS_CREATE_INFRASTRUCTURE_FILESERVER_OUTPUT, *PCLUS_CREATE_INFRASTRUCTURE_FILESERVER_OUTPUT; + +// Beginning of a property list. +typedef struct CLUSPROP_LIST { + DWORD nPropertyCount; + CLUSPROP_PROPERTY_NAME PropertyName; +} CLUSPROP_LIST, *PCLUSPROP_LIST; + +// +// values for IP Address' EnableNetbios property +// +typedef enum CLUSPROP_IPADDR_ENABLENETBIOS { + CLUSPROP_IPADDR_ENABLENETBIOS_DISABLED = 0, + CLUSPROP_IPADDR_ENABLENETBIOS_ENABLED, + CLUSPROP_IPADDR_ENABLENETBIOS_TRACK_NIC +} CLUSPROP_IPADDR_ENABLENETBIOS; + +// +// List of change notifications for File Server resource. +// +typedef enum _FILESHARE_CHANGE_ENUM { + FILESHARE_CHANGE_NONE, + FILESHARE_CHANGE_ADD, + FILESHARE_CHANGE_DEL, + FILESHARE_CHANGE_MODIFY +} FILESHARE_CHANGE_ENUM, *PFILESHARE_CHANGE_ENUM; + +// Copied from Lmcons.h +#define NNLEN 80 // Net name length (share name) +typedef struct _FILESHARE_CHANGE { + FILESHARE_CHANGE_ENUM Change; + WCHAR ShareName[NNLEN+4]; +} FILESHARE_CHANGE, *PFILESHARE_CHANGE; + +#pragma warning(push) +#pragma warning(disable: 4200) +typedef struct _FILESHARE_CHANGE_LIST { + DWORD NumEntries; + FILESHARE_CHANGE ChangeEntry[0]; +} FILESHARE_CHANGE_LIST, *PFILESHARE_CHANGE_LIST; +#pragma warning(pop) + +typedef struct _CLUSCTL_GROUP_GET_LAST_MOVE_TIME_OUTPUT +{ + ULONGLONG GetTickCount64; + SYSTEMTIME GetSystemTime; + DWORD NodeId; +} CLUSCTL_GROUP_GET_LAST_MOVE_TIME_OUTPUT, *PCLUSCTL_GROUP_GET_LAST_MOVE_TIME_OUTPUT; + + +// Helper for building or parsing a property list buffer. +typedef union CLUSPROP_BUFFER_HELPER { + BYTE * pb; + WORD * pw; + DWORD * pdw; + LONG * pl; + LPWSTR psz; + PCLUSPROP_LIST pList; + PCLUSPROP_SYNTAX pSyntax; + PCLUSPROP_PROPERTY_NAME pName; + PCLUSPROP_VALUE pValue; + PCLUSPROP_BINARY pBinaryValue; + PCLUSPROP_WORD pWordValue; + PCLUSPROP_DWORD pDwordValue; + PCLUSPROP_LONG pLongValue; + PCLUSPROP_ULARGE_INTEGER pULargeIntegerValue; + PCLUSPROP_LARGE_INTEGER pLargeIntegerValue; + PCLUSPROP_SZ pStringValue; + PCLUSPROP_MULTI_SZ pMultiSzValue; + PCLUSPROP_SECURITY_DESCRIPTOR pSecurityDescriptor; + PCLUSPROP_RESOURCE_CLASS pResourceClassValue; + PCLUSPROP_RESOURCE_CLASS_INFO pResourceClassInfoValue; + PCLUSPROP_DISK_SIGNATURE pDiskSignatureValue; + PCLUSPROP_SCSI_ADDRESS pScsiAddressValue; + PCLUSPROP_DISK_NUMBER pDiskNumberValue; + PCLUSPROP_PARTITION_INFO pPartitionInfoValue; + PCLUSPROP_REQUIRED_DEPENDENCY pRequiredDependencyValue; + PCLUSPROP_PARTITION_INFO_EX pPartitionInfoValueEx; + PCLUSPROP_PARTITION_INFO_EX2 pPartitionInfoValueEx2; + PCLUSPROP_FILETIME pFileTimeValue; +} CLUSPROP_BUFFER_HELPER, *PCLUSPROP_BUFFER_HELPER; + +#endif // MIDL_PASS + +#endif // _CLUSTER_API_TYPES_ + +// Macro for aligning CLUSPROP buffers on a DWORD boundary. +#define ALIGN_CLUSPROP( count ) ((count + 3) & ~3) + +// Macros for declaring array format values +#define CLUSPROP_BINARY_DECLARE( name, cb ) \ + struct { \ + CLUSPROP_SYNTAX Syntax; \ + DWORD cbLength; \ + BYTE rgb[(cb + 3) & ~3]; \ + } name + +#define CLUSPROP_SZ_DECLARE( name, cch ) \ + struct { \ + CLUSPROP_SYNTAX Syntax; \ + DWORD cbLength; \ + WCHAR sz[(cch + 1) & ~1]; \ + } name + +#define CLUSPROP_PROPERTY_NAME_DECLARE( name, cch ) CLUSPROP_SZ_DECLARE( name, cch ) + + + +// +// Cluster resource property enumeration. +// + +#ifndef _CLUSTER_API_TYPES_ +// +// Define enumerable types +// +typedef enum CLUSTER_RESOURCE_ENUM { + CLUSTER_RESOURCE_ENUM_DEPENDS = 0x00000001, + CLUSTER_RESOURCE_ENUM_PROVIDES = 0x00000002, + CLUSTER_RESOURCE_ENUM_NODES = 0x00000004, + + CLUSTER_RESOURCE_ENUM_ALL = (CLUSTER_RESOURCE_ENUM_DEPENDS | + CLUSTER_RESOURCE_ENUM_PROVIDES | + CLUSTER_RESOURCE_ENUM_NODES) +} CLUSTER_RESOURCE_ENUM; + +typedef enum CLUSTER_RESOURCE_TYPE_ENUM { + CLUSTER_RESOURCE_TYPE_ENUM_NODES = 0x00000001, + CLUSTER_RESOURCE_TYPE_ENUM_RESOURCES = 0x00000002, + + CLUSTER_RESOURCE_TYPE_ENUM_ALL = (CLUSTER_RESOURCE_TYPE_ENUM_NODES | + CLUSTER_RESOURCE_TYPE_ENUM_RESOURCES) +} CLUSTER_RESOURCE_TYPE_ENUM; + +#endif // _CLUSTER_API_TYPES_ + +#if ( !MIDL_PASS && !__midl ) +HRESENUM +WINAPI +ClusterResourceOpenEnum( + _In_ HRESOURCE hResource, + _In_ DWORD dwType + ); + +typedef HRESENUM +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_OPEN_ENUM)( + HRESOURCE hResource, + DWORD dwType + ); + +DWORD +WINAPI +ClusterResourceGetEnumCount( + _In_ HRESENUM hResEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_GET_ENUM_COUNT)( + _In_ HRESENUM hResEnum + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterResourceEnum( + _In_ HRESENUM hResEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_ENUM)( + _In_ HRESENUM hResEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +DWORD +WINAPI +ClusterResourceCloseEnum( + _In_ HRESENUM hResEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_CLOSE_ENUM)( + HRESENUM hResEnum + ); + +DWORD +WINAPI +CreateClusterResourceType( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_ LPCWSTR lpszDisplayName, + _In_ LPCWSTR lpszResourceTypeDll, + _In_ DWORD dwLooksAlivePollInterval, + _In_ DWORD dwIsAlivePollInterval + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CREATE_CLUSTER_RESOURCE_TYPE)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_ LPCWSTR lpszDisplayName, + _In_ LPCWSTR lpszResourceTypeDll, + _In_ DWORD dwLooksAlivePollInterval, + _In_ DWORD dwIsAlivePollInterval + ); + +DWORD +WINAPI +DeleteClusterResourceType( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DELETE_CLUSTER_RESOURCE_TYPE)( + HCLUSTER hCluster, + LPCWSTR lpszResourceTypeName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +CreateClusterResourceTypeEx( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_ LPCWSTR lpszDisplayName, + _In_ LPCWSTR lpszResourceTypeDll, + _In_ DWORD dwLooksAlivePollInterval, + _In_ DWORD dwIsAlivePollInterval, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CREATE_CLUSTER_RESOURCE_TYPE_EX)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_ LPCWSTR lpszDisplayName, + _In_ LPCWSTR lpszResourceTypeDll, + _In_ DWORD dwLooksAlivePollInterval, + _In_ DWORD dwIsAlivePollInterval, + _In_opt_ LPCWSTR lpszReason + ); + +DWORD +WINAPI +DeleteClusterResourceTypeEx( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszTypeName, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DELETE_CLUSTER_RESOURCE_TYPE_EX)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszTypeName, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +HRESTYPEENUM +WINAPI +ClusterResourceTypeOpenEnum( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_ DWORD dwType + ); + +typedef HRESTYPEENUM +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_TYPE_OPEN_ENUM)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszResourceTypeName, + _In_ DWORD dwType + ); + +DWORD +WINAPI +ClusterResourceTypeGetEnumCount( + _In_ HRESTYPEENUM hResTypeEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_TYPE_GET_ENUM_COUNT)( + _In_ HRESTYPEENUM hResTypeEnum + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterResourceTypeEnum( + _In_ HRESTYPEENUM hResTypeEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_TYPE_ENUM)( + _In_ HRESTYPEENUM hResTypeEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +DWORD +WINAPI +ClusterResourceTypeCloseEnum( + _In_ HRESTYPEENUM hResTypeEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_RESOURCE_TYPE_CLOSE_ENUM)( + _In_ HRESTYPEENUM hResTypeEnum + ); + +#endif // MIDL_PASS + + + +// +// Network-related structures and types. +// + +#ifndef _CLUSTER_API_TYPES_ +// +// Define enumerable group types +// +typedef enum CLUSTER_NETWORK_ENUM { + CLUSTER_NETWORK_ENUM_NETINTERFACES = 0x00000001, + + CLUSTER_NETWORK_ENUM_ALL = CLUSTER_NETWORK_ENUM_NETINTERFACES +} CLUSTER_NETWORK_ENUM; + +typedef enum CLUSTER_NETWORK_STATE { + ClusterNetworkStateUnknown = -1, + ClusterNetworkUnavailable, + ClusterNetworkDown, + ClusterNetworkPartitioned, + ClusterNetworkUp +} CLUSTER_NETWORK_STATE; + +// Role the network plays in the cluster. This is a bitmask. +typedef enum CLUSTER_NETWORK_ROLE { + ClusterNetworkRoleNone = 0, + ClusterNetworkRoleInternalUse = 0x00000001, + ClusterNetworkRoleClientAccess = 0x00000002, + ClusterNetworkRoleInternalAndClient = 0x00000003 +} CLUSTER_NETWORK_ROLE; + +#endif // _CLUSTER_API_TYPES_ + +// +// Interfaces for managing the networks of a cluster. +// + +#if ( !MIDL_PASS && !__midl ) +HNETWORK +WINAPI +OpenClusterNetwork( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNetworkName + ); + +typedef HNETWORK +(WINAPI * PCLUSAPI_OPEN_CLUSTER_NETWORK)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNetworkName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +HNETWORK +WINAPI +OpenClusterNetworkEx( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszNetworkName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ DWORD* lpdwGrantedAccess + ); + +typedef HNETWORK +(WINAPI * PCLUSAPI_OPEN_CLUSTER_NETWORK_EX)( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszNetworkName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ LPDWORD lpdwGrantedAccess + ); +#endif + +BOOL +WINAPI +CloseClusterNetwork( + _In_ HNETWORK hNetwork + ); + +typedef BOOL +(WINAPI * PCLUSAPI_CLOSE_CLUSTER_NETWORK)( + _In_ HNETWORK hNetwork + ); + +HCLUSTER +WINAPI +GetClusterFromNetwork( + _In_ HNETWORK hNetwork + ); + +typedef HCLUSTER +(WINAPI * PCLUSAPI_GET_CLUSTER_FROM_NETWORK)( + _In_ HNETWORK hNetwork + ); + +HNETWORKENUM +WINAPI +ClusterNetworkOpenEnum( + _In_ HNETWORK hNetwork, + _In_ DWORD dwType + ); + +typedef HNETWORKENUM +(WINAPI * PCLUSAPI_CLUSTER_NETWORK_OPEN_ENUM)( + _In_ HNETWORK hNetwork, + _In_ DWORD dwType + ); + +DWORD +WINAPI +ClusterNetworkGetEnumCount( + _In_ HNETWORKENUM hNetworkEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NETWORK_GET_ENUM_COUNT)( + _In_ HNETWORKENUM hNetworkEnum + ); + +_Success_ (return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterNetworkEnum( + _In_ HNETWORKENUM hNetworkEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NETWORK_ENUM)( + _In_ HNETWORKENUM hNetworkEnum, + _In_ DWORD dwIndex, + _Out_ LPDWORD lpdwType, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName + ); + +DWORD +WINAPI +ClusterNetworkCloseEnum( + _In_ HNETWORKENUM hNetworkEnum + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NETWORK_CLOSE_ENUM)( + _In_ HNETWORKENUM hNetworkEnum + ); + +CLUSTER_NETWORK_STATE +WINAPI +GetClusterNetworkState( + _In_ HNETWORK hNetwork + ); + +typedef CLUSTER_NETWORK_STATE +(WINAPI * PCLUSAPI_GET_CLUSTER_NETWORK_STATE)( + _In_ HNETWORK hNetwork + ); + +DWORD +WINAPI +SetClusterNetworkName( + _In_ HNETWORK hNetwork, + _In_ LPCWSTR lpszName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_NETWORK_NAME)( + _In_ HNETWORK hNetwork, + _In_ LPCWSTR lpszName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +SetClusterNetworkNameEx( + _In_ HNETWORK hNetwork, + _In_ LPCWSTR lpszName, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_SET_CLUSTER_NETWORK_NAME_EX)( + _In_ HNETWORK hNetwork, + _In_ LPCWSTR lpszName, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +GetClusterNetworkId( + _In_ HNETWORK hNetwork, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszNetworkId, + _Inout_ LPDWORD lpcchName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_GET_CLUSTER_NETWORK_ID)( + _In_ HNETWORK hNetwork, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszNetworkId, + _Inout_ LPDWORD lpcchName + ); + +DWORD +WINAPI +ClusterNetworkControl( + _In_ HNETWORK hNetwork, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NETWORK_CONTROL)( + _In_ HNETWORK hNetwork, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +ClusterNetworkControlEx( + _In_ HNETWORK hNetwork, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NETWORK_CONTROL_EX)( + _In_ HNETWORK hNetwork, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +#endif // MIDL_PASS + + +#ifndef _CLUSTER_API_TYPES_ +// +// Network interface-related structures and types. +// +typedef enum CLUSTER_NETINTERFACE_STATE { + ClusterNetInterfaceStateUnknown = -1, + ClusterNetInterfaceUnavailable, + ClusterNetInterfaceFailed, + ClusterNetInterfaceUnreachable, + ClusterNetInterfaceUp +} CLUSTER_NETINTERFACE_STATE; + +#endif // _CLUSTER_API_TYPES_ + +// +// Interfaces for managing the network interfaces of a cluster. +// + +#if ( !MIDL_PASS && !__midl ) +HNETINTERFACE +WINAPI +OpenClusterNetInterface( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszInterfaceName + ); + +typedef HNETINTERFACE +(WINAPI * PCLUSAPI_OPEN_CLUSTER_NET_INTERFACE)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszInterfaceName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_SERVER2008R2) +HNETINTERFACE +WINAPI +OpenClusterNetInterfaceEx( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszInterfaceName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ DWORD* lpdwGrantedAccess + ); + +typedef HNETINTERFACE +(WINAPI * PCLUSAPI_OPEN_CLUSTER_NETINTERFACE_EX)( + _In_ HCLUSTER hCluster, + _In_opt_ LPCWSTR lpszNetInterfaceName, + _In_ DWORD dwDesiredAccess, + _Out_opt_ LPDWORD lpdwGrantedAccess + ); +#endif + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +GetClusterNetInterface( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNodeName, + _In_ LPCWSTR lpszNetworkName, + _Out_writes_to_(*lpcchInterfaceName, *lpcchInterfaceName + 1) LPWSTR lpszInterfaceName, + _Inout_ LPDWORD lpcchInterfaceName + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +GetClusterNetInterfaceEx( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNodeName, + _In_ LPCWSTR lpszNetworkName, + _Out_writes_to_(*lpcbInterfaceListBufSize, *lpcbInterfaceListBufSize) LPWSTR lpmszInterfaceNameList, + _Inout_ LPDWORD lpcbInterfaceListBufSize +); + +typedef DWORD +(WINAPI * PCLUSAPI_GET_CLUSTER_NET_INTERFACE)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR lpszNodeName, + _In_ LPCWSTR lpszNetworkName, + _Out_writes_to_opt_(*lpcchInterfaceName, *lpcchInterfaceName + 1) LPWSTR lpszInterfaceName, + _Inout_ LPDWORD lpcchInterfaceName + ); + +BOOL +WINAPI +CloseClusterNetInterface( + _In_ HNETINTERFACE hNetInterface + ); + +typedef BOOL +(WINAPI * PCLUSAPI_CLOSE_CLUSTER_NET_INTERFACE)( + _In_ HNETINTERFACE hNetInterface + ); + +HCLUSTER +WINAPI +GetClusterFromNetInterface( + _In_ HNETINTERFACE hNetInterface + ); + +typedef HCLUSTER +(WINAPI * PCLUSAPI_GET_CLUSTER_FROM_NET_INTERFACE)( + _In_ HNETINTERFACE hNetInterface + ); + +CLUSTER_NETINTERFACE_STATE +WINAPI +GetClusterNetInterfaceState( + _In_ HNETINTERFACE hNetInterface + ); + +typedef CLUSTER_NETINTERFACE_STATE +(WINAPI * PCLUSAPI_GET_CLUSTER_NET_INTERFACE_STATE)( + _In_ HNETINTERFACE hNetInterface + ); + +DWORD +WINAPI +ClusterNetInterfaceControl( + _In_ HNETINTERFACE hNetInterface, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NET_INTERFACE_CONTROL)( + _In_ HNETINTERFACE hNetInterface, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +ClusterNetInterfaceControlEx( + _In_ HNETINTERFACE hNetInterface, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_NET_INTERFACE_CONTROL_EX)( + _In_ HNETINTERFACE hNetInterface, + _In_opt_ HNODE hHostNode, + _In_ DWORD dwControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize, *lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +#endif // MIDL_PASS + + +// +// Cluster registry update and access routines +// + +#if ( !MIDL_PASS && !__midl ) +HKEY +WINAPI +GetClusterKey( + _In_ HCLUSTER hCluster, + _In_ REGSAM samDesired + ); + +typedef HKEY +(WINAPI * PCLUSAPI_GET_CLUSTER_KEY)( + HCLUSTER hCluster, + REGSAM samDesired + ); + +HKEY +WINAPI +GetClusterGroupKey( + _In_ HGROUP hGroup, + _In_ REGSAM samDesired + ); + +typedef HKEY +(WINAPI * PCLUSAPI_GET_CLUSTER_GROUP_KEY)( + HGROUP hGroup, + REGSAM samDesired + ); + +HKEY +WINAPI +GetClusterResourceKey( + _In_ HRESOURCE hResource, + _In_ REGSAM samDesired + ); + +typedef HKEY +(WINAPI * PCLUSAPI_GET_CLUSTER_RESOURCE_KEY)( + HRESOURCE hResource, + REGSAM samDesired + ); + +HKEY +WINAPI +GetClusterNodeKey( + _In_ HNODE hNode, + _In_ REGSAM samDesired + ); + +typedef HKEY +(WINAPI * PCLUSAPI_GET_CLUSTER_NODE_KEY)( + HNODE hNode, + REGSAM samDesired + ); + +HKEY +WINAPI +GetClusterNetworkKey( + _In_ HNETWORK hNetwork, + _In_ REGSAM samDesired + ); + +typedef HKEY +(WINAPI * PCLUSAPI_GET_CLUSTER_NETWORK_KEY)( + _In_ HNETWORK hNetwork, + _In_ REGSAM samDesired + ); + +HKEY +WINAPI +GetClusterNetInterfaceKey( + _In_ HNETINTERFACE hNetInterface, + _In_ REGSAM samDesired + ); + +typedef HKEY +(WINAPI * PCLUSAPI_GET_CLUSTER_NET_INTERFACE_KEY)( + _In_ HNETINTERFACE hNetInterface, + _In_ REGSAM samDesired + ); + +LONG +WINAPI +ClusterRegCreateKey( + _In_ HKEY hKey, + _In_ LPCWSTR lpszSubKey, + _In_ DWORD dwOptions, + _In_ REGSAM samDesired, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, + _Out_ PHKEY phkResult, + _Out_opt_ LPDWORD lpdwDisposition + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_CREATE_KEY)( + _In_ HKEY hKey, + _In_ LPCWSTR lpszSubKey, + _In_ DWORD dwOptions, + _In_ REGSAM samDesired, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, + _Out_ PHKEY phkResult, + _Out_opt_ LPDWORD lpdwDisposition + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +LONG +WINAPI +ClusterRegCreateKeyEx( + __in HKEY hKey, + __in LPCWSTR lpSubKey, + __in DWORD dwOptions, + __in REGSAM samDesired, + __in_opt LPSECURITY_ATTRIBUTES lpSecurityAttributes, + __out PHKEY phkResult, + __out_opt LPDWORD lpdwDisposition, + _In_opt_ LPCWSTR lpszReason + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_CREATE_KEY_EX)( + _In_ HKEY hKey, + _In_ LPCWSTR lpszSubKey, + _In_ DWORD dwOptions, + _In_ REGSAM samDesired, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, + _Out_ PHKEY phkResult, + _Out_opt_ LPDWORD lpdwDisposition, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +LONG +WINAPI +ClusterRegOpenKey( + _In_ HKEY hKey, + _In_ LPCWSTR lpszSubKey, + _In_ REGSAM samDesired, + _Out_ PHKEY phkResult + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_OPEN_KEY)( + HKEY hKey, + LPCWSTR lpszSubKey, + REGSAM samDesired, + PHKEY phkResult + ); + +LONG +WINAPI +ClusterRegDeleteKey( + _In_ HKEY hKey, + _In_ LPCWSTR lpszSubKey + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_DELETE_KEY)( + HKEY hKey, + LPCWSTR lpszSubKey + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +LONG +WINAPI +ClusterRegDeleteKeyEx( + _In_ HKEY hKey, + _In_ LPCWSTR lpSubKey, + _In_opt_ LPCWSTR lpszReason + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_DELETE_KEY_EX)( + _In_ HKEY hKey, + _In_ LPCWSTR lpSubKey, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +LONG +WINAPI +ClusterRegCloseKey( + _In_ HKEY hKey + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_CLOSE_KEY)( + HKEY hKey + ); + +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +ClusterRegEnumKey( + _In_ HKEY hKey, + _In_ DWORD dwIndex, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName, + _Out_opt_ PFILETIME lpftLastWriteTime + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_ENUM_KEY)( + _In_ HKEY hKey, + _In_ DWORD dwIndex, + _Out_writes_to_(*lpcchName, *lpcchName + 1) LPWSTR lpszName, + _Inout_ LPDWORD lpcchName, + _Out_ PFILETIME lpftLastWriteTime + ); + +DWORD +WINAPI +ClusterRegSetValue( + _In_ HKEY hKey, + _In_ LPCWSTR lpszValueName, + _In_ DWORD dwType, + _In_ CONST BYTE* lpData, + _In_ DWORD cbData + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_REG_SET_VALUE)( + HKEY hKey, + LPCWSTR lpszValueName, + DWORD dwType, + CONST BYTE* lpData, + DWORD cbData + ); + +DWORD +WINAPI +ClusterRegDeleteValue( + _In_ HKEY hKey, + _In_ LPCWSTR lpszValueName + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_REG_DELETE_VALUE)( + HKEY hKey, + LPCWSTR lpszValueName + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +DWORD +WINAPI +ClusterRegSetValueEx( + _In_ HKEY hKey, + _In_ LPCWSTR lpszValueName, + _In_ DWORD dwType, + _In_ CONST BYTE* lpData, + _In_ DWORD cbData, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_REG_SET_VALUE_EX)( + _In_ HKEY hKey, + _In_ LPCWSTR lpszValueName, + _In_ DWORD dwType, + _In_ CONST BYTE* lpData, + _In_ DWORD cbData, + _In_opt_ LPCWSTR lpszReason + ); + +DWORD +WINAPI +ClusterRegDeleteValueEx( + _In_ HKEY hKey, + _In_ LPCWSTR lpszValueName, + _In_opt_ LPCWSTR lpszReason + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_REG_DELETE_VALUE_EX)( + _In_ HKEY hKey, + _In_ LPCWSTR lpszValueName, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +LONG +WINAPI +ClusterRegQueryValue( + _In_ HKEY hKey, + _In_ LPCWSTR lpszValueName, + _Out_opt_ LPDWORD lpdwValueType, + _Out_writes_bytes_to_opt_(*lpcbData, *lpcbData) LPBYTE lpData, + _Inout_opt_ LPDWORD lpcbData + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_QUERY_VALUE)( + _In_ HKEY hKey, + _In_ LPCWSTR lpszValueName, + _Out_opt_ LPDWORD lpdwValueType, + _Out_writes_bytes_to_opt_(*lpcbData, *lpcbData) LPBYTE lpData, + _Inout_opt_ LPDWORD lpcbData + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +ClusterRegEnumValue( + _In_ HKEY hKey, + _In_ DWORD dwIndex, + _Out_writes_to_(*lpcchValueName, *lpcchValueName + 1) LPWSTR lpszValueName, + _Inout_ LPDWORD lpcchValueName, + _Out_opt_ LPDWORD lpdwType, + _Out_writes_bytes_to_opt_(*lpcbData, *lpcbData) LPBYTE lpData, + _Inout_opt_ LPDWORD lpcbData + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CLUSTER_REG_ENUM_VALUE)( + _In_ HKEY hKey, + _In_ DWORD dwIndex, + _Out_writes_to_(*lpcchValueName, *lpcchValueName + 1) LPWSTR lpszValueName, + _Inout_ LPDWORD lpcchValueName, + _Out_ LPDWORD lpdwType, + _Out_writes_bytes_to_opt_(*lpcbData, *lpcbData) LPBYTE lpData, + _Inout_opt_ LPDWORD lpcbData + ); + +LONG +WINAPI +ClusterRegQueryInfoKey( + _In_ HKEY hKey, + _In_ LPDWORD lpcSubKeys, + _In_ LPDWORD lpcchMaxSubKeyLen, + _In_ LPDWORD lpcValues, + _In_ LPDWORD lpcchMaxValueNameLen, + _In_ LPDWORD lpcbMaxValueLen, + _In_ LPDWORD lpcbSecurityDescriptor, + _In_ PFILETIME lpftLastWriteTime + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_QUERY_INFO_KEY)( + HKEY hKey, + LPDWORD lpcSubKeys, + LPDWORD lpcbMaxSubKeyLen, + LPDWORD lpcValues, + LPDWORD lpcbMaxValueNameLen, + LPDWORD lpcbMaxValueLen, + LPDWORD lpcbSecurityDescriptor, + PFILETIME lpftLastWriteTime + ); + +LONG +WINAPI +ClusterRegGetKeySecurity ( + _In_ HKEY hKey, + _In_ SECURITY_INFORMATION RequestedInformation, + _Out_writes_bytes_to_(*lpcbSecurityDescriptor, *lpcbSecurityDescriptor) PSECURITY_DESCRIPTOR pSecurityDescriptor, + _Inout_ LPDWORD lpcbSecurityDescriptor + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_GET_KEY_SECURITY)( + _In_ HKEY hKey, + _In_ SECURITY_INFORMATION RequestedInformation, + _Out_writes_bytes_to_(*lpcbSecurityDescriptor, *lpcbSecurityDescriptor) PSECURITY_DESCRIPTOR pSecurityDescriptor, + _Inout_ LPDWORD lpcbSecurityDescriptor + ); + +LONG +WINAPI +ClusterRegSetKeySecurity( + _In_ HKEY hKey, + _In_ SECURITY_INFORMATION SecurityInformation, + _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_SET_KEY_SECURITY)( + HKEY hKey, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor + ); + +#if (CLUSAPI_VERSION >= CLUSAPI_VERSION_NI) + +LONG +WINAPI +ClusterRegSetKeySecurityEx( + _In_ HKEY hKey, + _In_ SECURITY_INFORMATION SecurityInformation, + _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor, + _In_opt_ LPCWSTR lpszReason + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_SET_KEY_SECURITY_EX)( + HKEY hKey, + SECURITY_INFORMATION SecurityInformation, + PSECURITY_DESCRIPTOR pSecurityDescriptor, + _In_opt_ LPCWSTR lpszReason + ); + +#endif + +LONG +WINAPI +ClusterRegSyncDatabase( + _In_ HCLUSTER hCluster, + _In_ DWORD flags + ); + +typedef LONG +(WINAPI * PCLUSAPI_CLUSTER_REG_SYNC_DATABASE)( + HCLUSTER hCluster, + DWORD flags + ); + +LONG WINAPI ClusterRegCreateBatch( + _In_opt_ HKEY hKey, + _Out_ HREGBATCH* pHREGBATCH + ); + +typedef LONG +(WINAPI *PCLUSAPI_CLUSTER_REG_CREATE_BATCH)( + _In_opt_ HKEY hKey, + _Out_ HREGBATCH* pHREGBATCH + ); + +LONG WINAPI ClusterRegBatchAddCommand( + _In_ HREGBATCH hRegBatch, + _In_ CLUSTER_REG_COMMAND dwCommand, + _In_opt_ LPCWSTR wzName, + _In_ DWORD dwOptions, + _In_reads_bytes_opt_(cbData) VOID CONST * lpData, + _In_ DWORD cbData + ); + +typedef LONG +(WINAPI *PCLUSTER_REG_BATCH_ADD_COMMAND)( + _In_ HREGBATCH hRegBatch, + _In_ CLUSTER_REG_COMMAND dwCommand, + _In_opt_ LPWSTR wzName, + _In_ DWORD dwOptions, + _In_reads_bytes_opt_(cbData) VOID CONST * lpData, + _In_ DWORD cbData + ); + +LONG WINAPI ClusterRegCloseBatch( + _In_ HREGBATCH hRegBatch, + _In_ BOOL bCommit, + _Out_opt_ INT * failedCommandNumber + ); + +LONG WINAPI ClusterRegCloseBatchEx( + _In_ HREGBATCH hRegBatch, + _In_ DWORD flags, + _Out_opt_ INT * failedCommandNumber + ); + +typedef LONG +(WINAPI *PCLUSTER_REG_CLOSE_BATCH)( + _In_ HREGBATCH hRegBatch, + _In_ BOOL bCommit, + _Out_opt_ INT * failedCommandNumber + ); + +LONG WINAPI ClusterRegBatchReadCommand( + _In_ HREGBATCHNOTIFICATION hBatchNotification, + _Out_ CLUSTER_BATCH_COMMAND * pBatchCommand); + +typedef LONG +(WINAPI *PCLUSTER_REG_BATCH_READ_COMMAND)( + _In_ HREGBATCHNOTIFICATION hBatchNotification, + _Out_ CLUSTER_BATCH_COMMAND * pBatchCommand); + +LONG WINAPI ClusterRegBatchCloseNotification( + _In_ HREGBATCHNOTIFICATION hBatchNotification); + +typedef LONG +(WINAPI *PCLUSTER_REG_BATCH_CLOSE_NOTIFICATION)( + _In_ HREGBATCHNOTIFICATION hBatchNotification); + +LONG WINAPI ClusterRegCreateBatchNotifyPort( + _In_ HKEY hKey, + _Out_ HREGBATCHPORT * phBatchNotifyPort); + +typedef LONG +(WINAPI *PCLUSTER_REG_CREATE_BATCH_NOTIFY_PORT)( + _In_ HKEY hKey, + _Out_ HREGBATCHPORT * phBatchNotifyPort); + +LONG WINAPI ClusterRegCloseBatchNotifyPort( + _In_ HREGBATCHPORT hBatchNotifyPort); + +typedef LONG +(WINAPI *PCLUSTER_REG_CLOSE_BATCH_NOTIFY_PORT)( + _In_ HREGBATCHPORT hBatchNotifyPort); + +LONG WINAPI ClusterRegGetBatchNotification( + _In_ HREGBATCHPORT hBatchNotify, + _Out_ HREGBATCHNOTIFICATION * phBatchNotification); + +typedef LONG +(WINAPI *PCLUSTER_REG_GET_BATCH_NOTIFICATION)( + _In_ HREGBATCHPORT hBatchNotify, + _Out_ HREGBATCHNOTIFICATION * phBatchNotification); + + +LONG WINAPI ClusterRegCreateReadBatch( + _In_ HKEY hKey, + _Out_ HREGREADBATCH* phRegReadBatch); + +typedef LONG +(WINAPI *PCLUSTER_REG_CREATE_READ_BATCH)( + _In_ HKEY hKey, + _Out_ HREGREADBATCH* phRegReadBatch); + +LONG WINAPI ClusterRegReadBatchAddCommand( + _In_ HREGREADBATCH hRegReadBatch, + _In_ LPCWSTR wzSubkeyName, + _In_ LPCWSTR wzValueName); + +typedef LONG +(WINAPI *PCLUSTER_REG_READ_BATCH_ADD_COMMAND)( + _In_ HREGREADBATCH hRegReadBatch, + _In_ LPCWSTR wzSubkeyName, + _In_ LPCWSTR wzValueName); + +LONG WINAPI ClusterRegCloseReadBatch( + _In_ HREGREADBATCH hRegReadBatch, + _Out_ HREGREADBATCHREPLY * phRegReadBatchReply); + +typedef LONG +(WINAPI *PCLUSTER_REG_CLOSE_READ_BATCH)( + _In_ HREGREADBATCH hRegReadBatch, + _Out_ HREGREADBATCHREPLY * phRegReadBatchReply); + +LONG WINAPI ClusterRegCloseReadBatchEx( + _In_ HREGREADBATCH hRegReadBatch, + _In_ DWORD flags, + _Out_ HREGREADBATCHREPLY * phRegReadBatchReply); + +typedef LONG +(WINAPI *PCLUSTER_REG_CLOSE_READ_BATCH_EX)( + _In_ HREGREADBATCH hRegReadBatch, + _In_ DWORD flags, + _Out_ HREGREADBATCHREPLY * phRegReadBatchReply); + +LONG WINAPI ClusterRegReadBatchReplyNextCommand( + _In_ HREGREADBATCHREPLY hRegReadBatchReply, + _Out_ CLUSTER_READ_BATCH_COMMAND * pBatchCommand); + +typedef LONG +(WINAPI *PCLUSTER_REG_READ_BATCH_REPLY_NEXT_COMMAND)( + _In_ HREGREADBATCHREPLY hRegReadBatchReply, + _Out_ CLUSTER_READ_BATCH_COMMAND * pBatchCommand); + +LONG WINAPI ClusterRegCloseReadBatchReply( + _In_ HREGREADBATCHREPLY hRegReadBatchReply); + +typedef LONG +(WINAPI *PCLUSTER_REG_CLOSE_READ_BATCH_REPLY)( + _In_ HREGREADBATCHREPLY hRegReadBatchReply); + +DWORD +WINAPI +ClusterSetAccountAccess( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR szAccountSID, //Takes in String SID or an account name + _In_ DWORD dwAccess, + _In_ DWORD dwControlType +); + +typedef DWORD +(WINAPI *PCLUSTER_SET_ACCOUNT_ACCESS)( + _In_ HCLUSTER hCluster, + _In_ LPCWSTR szAccountSID, + _In_ DWORD dwAccess, + _In_ DWORD dwControlType +); + + +// +// Cluster Create, Add Node and Destroy Cluster APIs +// + +// +// Phases that cluster setup operations through. +// Phase numbers may arrive in any order via the callback function. +// + +typedef enum _CLUSTER_SETUP_PHASE { + + ClusterSetupPhaseInitialize = 1, + + ClusterSetupPhaseValidateNodeState = 100, + ClusterSetupPhaseValidateNetft = 102, + ClusterSetupPhaseValidateClusDisk = 103, + ClusterSetupPhaseConfigureClusSvc = 104, + ClusterSetupPhaseStartingClusSvc = 105, + + ClusterSetupPhaseQueryClusterNameAccount = 106, + ClusterSetupPhaseValidateClusterNameAccount = 107, + ClusterSetupPhaseCreateClusterAccount = 108, + ClusterSetupPhaseConfigureClusterAccount = 109, + + ClusterSetupPhaseFormingCluster = 200, + ClusterSetupPhaseAddClusterProperties = 201, + ClusterSetupPhaseCreateResourceTypes = 202, + ClusterSetupPhaseCreateGroups = 203, + ClusterSetupPhaseCreateIPAddressResources = 204, + ClusterSetupPhaseCreateNetworkName = 205, + ClusterSetupPhaseClusterGroupOnline = 206, + + ClusterSetupPhaseGettingCurrentMembership = 300, + ClusterSetupPhaseAddNodeToCluster = 301, + ClusterSetupPhaseNodeUp = 302, + ClusterSetupPhaseApplyNetworkATCIntents = 303, + + ClusterSetupPhaseMoveGroup = 400, + ClusterSetupPhaseDeleteGroup = 401, + ClusterSetupPhaseCleanupCOs = 402, + ClusterSetupPhaseOfflineGroup = 403, + ClusterSetupPhaseEvictNode = 404, + ClusterSetupPhaseCleanupNode = 405, + ClusterSetupPhaseCoreGroupCleanup = 406, + + ClusterSetupPhaseRepairCNOAccount = 500, + ClusterSetupPhaseRepairDNSPermissions = 501, + + ClusterSetupPhaseFailureCleanup = 999 + +} CLUSTER_SETUP_PHASE; + +// +// used to delineate between phases +// +typedef enum _CLUSTER_SETUP_PHASE_TYPE { + + ClusterSetupPhaseStart = 1, + ClusterSetupPhaseContinue = 2, + ClusterSetupPhaseEnd = 3, + ClusterSetupPhaseReport = 4 + +} CLUSTER_SETUP_PHASE_TYPE; + +typedef enum _CLUSTER_SETUP_PHASE_SEVERITY { + + ClusterSetupPhaseInformational = 1, + ClusterSetupPhaseWarning = 2, + ClusterSetupPhaseFatal = 3 + +} CLUSTER_SETUP_PHASE_SEVERITY; + +typedef BOOL +(WINAPI *PCLUSTER_SETUP_PROGRESS_CALLBACK)( + PVOID pvCallbackArg, + CLUSTER_SETUP_PHASE eSetupPhase, + CLUSTER_SETUP_PHASE_TYPE ePhaseType, + CLUSTER_SETUP_PHASE_SEVERITY ePhaseSeverity, + DWORD dwPercentComplete, + _In_opt_ PCWSTR lpszObjectName, + DWORD dwStatus ); + +HCLUSTER +WINAPI +CreateCluster( + _In_ PCREATE_CLUSTER_CONFIG pConfig, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +typedef HCLUSTER +(WINAPI * PCLUSAPI_CREATE_CLUSTER)( + _In_ PCREATE_CLUSTER_CONFIG pConfig, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +HCLUSTER +WINAPI +CreateClusterCNOless( + _In_ PCREATE_CLUSTER_CONFIG pConfig, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +typedef HCLUSTER +(WINAPI * PCLUSAPI_CREATE_CLUSTER_CNOLESS)( + _In_ PCREATE_CLUSTER_CONFIG pConfig, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +DWORD +WINAPI +CreateClusterNameAccount( + _In_ HCLUSTER hCluster, + _In_ PCREATE_CLUSTER_NAME_ACCOUNT pConfig, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +typedef DWORD +(WINAPI * PCLUSAPI_CREATE_CLUSTER_NAME_ACCOUNT)( + _In_ HCLUSTER hCluster, + _In_ PCREATE_CLUSTER_NAME_ACCOUNT pConfig, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +DWORD +WINAPI +RemoveClusterNameAccount( + _In_ HCLUSTER hCluster, + _In_ BOOL bDeleteComputerObjects +); + +DWORD +WINAPI +RepairClusterNameAccount( + _In_ HCLUSTER hCluster, + _In_ PREPAIR_CLUSTER_NAME_ACCOUNT_CONFIG pConfig, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg); + +typedef DWORD +(WINAPI * PCLUSAPI_REPAIR_CLUSTER_NAME_ACCOUNT)( + _In_ HCLUSTER hCluster + ); + +DWORD +WINAPI +DetermineCNOResTypeFromNodelist( + _In_ DWORD cNodes, + _In_ PCWSTR * ppszNodeNames, + _Out_ CLUSTER_MGMT_POINT_RESTYPE* pCNOResType +); + + +DWORD +WINAPI +DetermineCNOResTypeFromCluster( + _In_ HCLUSTER hCluster, + _Out_ CLUSTER_MGMT_POINT_RESTYPE* pCNOResType +); + +DWORD +WINAPI +DetermineClusterCloudTypeFromNodelist( + _In_ DWORD cNodes, + _In_ PCWSTR * ppszNodeNames, + _Out_ PCLUSTER_CLOUD_TYPE pCloudType +); + + +DWORD +WINAPI +DetermineClusterCloudTypeFromCluster( + _In_ HCLUSTER hCluster, + _Out_ PCLUSTER_CLOUD_TYPE pCloudType +); + +DWORD +WINAPI +GetNodeCloudTypeDW( + _In_ PCWSTR ppszNodeName, + __out DWORD* NodeCloudType); + +typedef DWORD (WINAPI *PCLUSAPI_REMOVE_CLUSTER_NAME_ACCOUNT)( + _In_ HCLUSTER hCluster +); + +DWORD +WINAPI +RegisterClusterResourceTypeNotifyV2 ( + __in HCHANGE hChange, + __in HCLUSTER hCluster, + __in LONGLONG Flags, + __in LPCWSTR resTypeName, + __in DWORD_PTR dwNotifyKey + ); + +HNODE +WINAPI +AddClusterNode( + _In_ HCLUSTER hCluster, + _In_ PCWSTR lpszNodeName, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +DWORD +WINAPI +AddClusterStorageNode( + _In_ HCLUSTER hCluster, + _In_ PCWSTR lpszNodeName, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg, + _In_opt_ LPCWSTR lpszClusterStorageNodeDescription, + _In_opt_ LPCWSTR lpszClusterStorageNodeLocation + ); + +HNODE +WINAPI +AddClusterNodeEx( + _In_ HCLUSTER hCluster, + _In_ PCWSTR lpszNodeName, + _In_ DWORD dwFlags, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +DWORD +WINAPI +RemoveClusterStorageNode( + __in HCLUSTER hCluster, + __in LPCWSTR lpszClusterStorageEnclosureName, + __in DWORD dwTimeout, + __in DWORD dwFlags + ); + +typedef HNODE +(WINAPI * PCLUSAPI_ADD_CLUSTER_NODE)( + _In_ HCLUSTER hCluster, + _In_ PCWSTR lpszNodeName, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +typedef HNODE +(WINAPI * PCLUSAPI_ADD_CLUSTER_NODE_EX)( + _In_ HCLUSTER hCluster, + _In_ PCWSTR lpszNodeName, + _In_ DWORD dwFlags, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg + ); + +DWORD +WINAPI +DestroyCluster( + _In_ HCLUSTER hCluster, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg, + _In_ BOOL fdeleteVirtualComputerObjects + ); + +typedef DWORD +(WINAPI * PCLUSAPI_DESTROY_CLUSTER)( + _In_ HCLUSTER hCluster, + _In_opt_ PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, + _In_opt_ PVOID pvCallbackArg, + _In_ BOOL fdeleteVirtualComputerObjects + ); + + +// +// Standard Resource Type Names, these are duplicated in resapi.w's CLUSTER_ROLE struct. Be sure +// to update that struct when adding restype names. +// + +#define CLUS_RESTYPE_NAME_GENAPP L"Generic Application" +#define CLUS_RESTYPE_NAME_GENSVC L"Generic Service" +#define CLUS_RESTYPE_NAME_GENSCRIPT L"Generic Script" +#define CLUS_RESTYPE_NAME_IPADDR L"IP Address" +#define CLUS_RESTYPE_NAME_NETNAME L"Network Name" +#define CLUS_RESTYPE_NAME_DNN L"Distributed Network Name" +#define CLUS_RESTYPE_NAME_FILESHR L"File Share" +#define CLUS_RESTYPE_NAME_PRTSPLR L"Print Spooler" +#define CLUS_RESTYPE_NAME_IPV6_NATIVE L"IPv6 Address" +#define CLUS_RESTYPE_NAME_IPV6_TUNNEL L"IPv6 Tunnel Address" +#define CLUS_RESTYPE_NAME_VSSTASK L"Volume Shadow Copy Service Task" +#define CLUS_RESTYPE_NAME_WINS L"WINS Service" +#define CLUS_RESTYPE_NAME_DHCP L"DHCP Service" +#define CLUS_RESTYPE_NAME_MSMQ L"Microsoft Message Queue Server" +#define CLUS_RESTYPE_NAME_NEW_MSMQ L"MSMQ" +#define CLUS_RESTYPE_NAME_MSMQ_TRIGGER L"MSMQTriggers" +#define CLUS_RESTYPE_NAME_MSDTC L"Distributed Transaction Coordinator" +#define CLUS_RESTYPE_NAME_NFS L"NFS Share" +#define CLUS_RESTYPE_NAME_NETWORK_FILE_SYSTEM L"Network File System" +#define CLUS_RESTYPE_NAME_ISNS L"Microsoft iSNS" +#define CLUS_RESTYPE_NAME_HARDDISK L"Physical Disk" +#define CLUS_RESTYPE_NAME_PHYS_DISK CLUS_RESTYPE_NAME_HARDDISK +#define CLUS_RESTYPE_NAME_FSWITNESS L"File Share Witness" +#define CLUS_RESTYPE_NAME_FILESERVER L"File Server" +#define CLUS_RESTYPE_NAME_SODAFILESERVER L"Scale Out File Server" +#define CLUS_RESTYPE_NAME_DFS L"Distributed File System" +#define CLUS_RESTYPE_NAME_DFSR L"DFS Replicated Folder" +#define CLUS_RESTYPE_NAME_VM L"Virtual Machine" +#define CLUS_RESTYPE_NAME_VM_CONFIG L"Virtual Machine Configuration" +#define CLUS_RESTYPE_NAME_ISCSITARGET L"iSCSI Target Server" +#define CLUS_RESTYPE_NAME_STORAGE_POOL L"Storage Pool" +#define CLUS_RESTYPE_NAME_TASKSCHEDULER L"Task Scheduler" +#define CLUS_RESTYPE_NAME_VMREPLICA_BROKER L"Virtual Machine Replication Broker" +#define CLUS_RESTYPE_NAME_VMREPLICA_COORDINATOR L"Virtual Machine Replication Coordinator" +#define CLUS_RESTYPE_NAME_NFS_V2 L"Network File System" +#define CLUS_RESTYPE_NAME_NFS_MSNS L"NFS Multi Server Namespace" +#define CLUS_RESTYPE_NAME_CAU L"ClusterAwareUpdatingResource" +#define CLUS_RESTYPE_NAME_NV_PROVIDER_ADDRESS L"Provider Address" +#define CLUS_RESTYPE_NAME_NAT L"Nat" +#define CLUS_RESTYPE_NAME_STORAGE_POLICIES L"Storage Policies" +#define CLUS_RESTYPE_NAME_STORQOS L"Storage QoS Policy Manager" +#define CLUS_RESTYPE_NAME_HEALTH_SERVICE L"Health Service" +#define CLUS_RESTYPE_NAME_VM_WMI L"Virtual Machine Cluster WMI" +#define CLUS_RESTYPE_NAME_SDDC_MANAGEMENT L"SDDC Management" +#define CLUS_RESTYPE_NAME_HCSVM L"HCS Virtual Machine" + +#define CLUS_RESTYPE_NAME_VIRTUAL_IPV4 L"Disjoint IPv4 Address" +#define CLUS_RESTYPE_NAME_VIRTUAL_IPV6 L"Disjoint IPv6 Address" +#define CLUS_RESTYPE_NAME_CLOUD_WITNESS L"Cloud Witness" +#define CLUS_RESTYPE_NAME_STORAGE_REPLICA L"Storage Replica" +#define CLUS_RESTYPE_NAME_CROSS_CLUSTER L"Cross Cluster Dependency Orchestrator" + +#define CLUS_RESTYPE_NAME_SCALEOUT_MASTER L"Scaleout Master" +#define CLUS_RESTYPE_NAME_SCALEOUT_WORKER L"Scaleout Worker" + +#define CLUS_RESTYPE_NAME_CONTAINER L"Container" + +#define CLUS_RES_NAME_SCALEOUT_MASTER L"Scaleout Master" +#define CLUS_RES_NAME_SCALEOUT_WORKER L"Scaleout Worker" + +#define CLUS_RESTYPE_NAME_KEY_VALUE_STORE L"Key Value Store" + + +// +// Cluster common property names +// + +#define CLUSREG_NAME_CLUS_DESC L"Description" +#define CLUSREG_NAME_CLUS_SD L"Security Descriptor" +#define CLUSREG_NAME_CLUS_DEFAULT_NETWORK_ROLE L"DefaultNetworkRole" +#define CLUSREG_NAME_QUORUM_ARBITRATION_TIMEOUT L"QuorumArbitrationTimeMax" +#define CLUSTER_HANG_TIMEOUT_KEYNAME L"ClusSvcHangTimeout" +#define CLUSTER_HANG_RECOVERY_ACTION_KEYNAME L"HangRecoveryAction" +#define CLUSTER_CSA_VSS_STATE L"BackupInProgress" +#define CLUSTER_REQUEST_REPLY_TIMEOUT L"RequestReplyTimeout" +#define CLUSTER_WITNESS_FAILED_RESTART_INTERVAL L"WitnessRestartInterval" +#define CLUSTER_WITNESS_DATABASE_WRITE_TIMEOUT L"WitnessDatabaseWriteTimeout" +#define CLUSTER_ADD_EVICT_DELAY L"AddEvictDelay" +#define CLUSREG_NAME_FIXQUORUM L"FixQuorum" +#define CLUSREG_NAME_PREVENTQUORUM L"PreventQuorum" +#define CLUSREG_NAME_IGNORE_PERSISTENT_STATE L"IgnorePersistentStateOnStartup" +#define CLUSTER_SHARED_VOLUMES_ROOT L"SharedVolumesRoot" +#define ENABLE_CLUSTER_SHARED_VOLUMES L"EnableSharedVolumes" +#define CLUSTER_SHARED_VOLUME_VSS_WRITER_OPERATION_TIMEOUT L"SharedVolumeVssWriterOperationTimeout" +#define USE_CLIENT_ACCESS_NETWORKS_FOR_CSV L"UseClientAccessNetworksForSharedVolumes" +#define CLUSTER_CSV_COMPATIBLE_FILTERS L"SharedVolumeCompatibleFilters" +#define CLUSTER_CSV_INCOMPATIBLE_FILTERS L"SharedVolumeIncompatibleFilters" +#define CLUSTER_GROUP_WAIT_DELAY L"ClusterGroupWaitDelay" +#define MINIMUM_PREEMPTOR_PRIORITY L"MinimumPreemptorPriority" +#define MINIMUM_NEVER_PREEMPT_PRIORITY L"MinimumNeverPreemptPriority" +#define CLUSTER_ENFORCED_ANTIAFFINITY L"ClusterEnforcedAntiaffinity" +#define CLUSREG_NAME_SHUTDOWN_TIMEOUT_MINUTES L"ShutdownTimeoutInMinutes" +#define CLUSREG_NAME_CSV_MDS_SD L"SharedVolumeSecurityDescriptor" +#define CLUSREG_NAME_FAILOVER_MOVE_MIGRATION_TYPE L"FailoverMoveMigrationType" +#define CLUSREG_NAME_CSV_BLOCK_CACHE L"BlockCacheSize" +#define CLUSREG_NAME_ROUTE_HISTORY_LENGTH L"RouteHistoryLength" +#define CLUSREG_NAME_LAST_RECENT_EVENTS_RESET_TIME L"RecentEventsResetTime" +#define CLUSREG_NAME_DRAIN_ON_SHUTDOWN L"DrainOnShutdown" +#define CLUSREG_NAME_NETFT_IPSEC_ENABLED L"NetftIPSecEnabled" +#define CLUSREG_NAME_WITNESS_DYNAMIC_WEIGHT L"WitnessDynamicWeight" +#define CLUSREG_NAME_MESSAGE_BUFFER_LENGTH L"MessageBufferLength" +#define CLUSREG_NAME_DATABASE_READ_WRITE_MODE L"DatabaseReadWriteMode" +#define CLUSREG_NAME_FUNCTIONAL_LEVEL L"ClusterFunctionalLevel" +#define CLUSREG_NAME_UPGRADE_VERSION L"ClusterUpgradeVersion" +#define CLUSREG_NAME_RESILIENCY_LEVEL L"ResiliencyLevel" +#define CLUSREG_NAME_RESILIENCY_DEFAULT_SECONDS L"ResiliencyDefaultPeriod" +#define CLUSREG_NAME_QUARANTINE_THRESHOLD L"QuarantineThreshold" +#define CLUSREG_NAME_QUARANTINE_DURATION L"QuarantineDuration" +#define CLUSTER_S2D_ENABLED L"S2DEnabled" +#define CLUSTER_S2D_BUS_TYPES L"S2DBusTypes" +#define CLUSTER_S2D_CACHE_PAGE_SIZE_KBYTES L"S2DCachePageSizeKBytes" +#define CLUSTER_S2D_OPTIMIZATIONS L"S2DOptimizations" +#define CLUSTER_S2D_IO_LATENCY_THRESHOLD L"S2DIOLatencyThreshold" +#define CLUSTER_S2D_CACHE_DESIRED_STATE L"S2DCacheDesiredState" +#define CLUSTER_S2D_CACHE_METADATA_RESERVE L"S2DCacheMetadataReserveBytes" +#define CLUSTER_S2D_CACHE_FLASH_RESERVE_PERCENT L"S2DCacheFlashReservePercent" +#define CLUSTER_S2D_CACHE_BEHAVIOR_FLAGS L"S2DCacheBehavior" +#define CLUSTER_NAME_PREFERRED_SITE L"PreferredSite" +#define CLUSTER_NAME_AUTO_BALANCER_MODE L"AutoBalancerMode" +#define CLUSTER_NAME_AUTO_BALANCER_LEVEL L"AutoBalancerLevel" +#define CLUSREG_NAME_GROUP_DEPENDENCY_TIMEOUT L"GroupDependencyTimeout" +#define CLUSREG_NAME_PLACEMENT_OPTIONS L"PlacementOptions" +#define CLUSREG_NAME_ENABLED_EVENT_LOGS L"EnabledEventLogs" +#define CLUSREG_NAME_MAX_PARALLEL_MIGRATIONS L"MaximumParallelMigrations" +#define CLUSREG_NAME_ACCELERATED_NETWORKING_ENABLED L"AcceleratedNetworkingEnabled" +#define CLUSREG_NAME_ACCELERATED_NETWORKING_NODE_RESERVE L"AcceleratedNetworkingNodeReserve" + +// +// Properties and defaults for single and multi subnet delays and thresholds. +// + +#define CLUSREG_NAME_SAME_SUBNET_DELAY L"SameSubnetDelay" +#define CLUSREG_NAME_CROSS_SUBNET_DELAY L"CrossSubnetDelay" +#define CLUSREG_NAME_CROSS_SITE_DELAY L"CrossSiteDelay" +#define CLUSREG_NAME_SAME_SUBNET_THRESHOLD L"SameSubnetThreshold" +#define CLUSREG_NAME_CROSS_SUBNET_THRESHOLD L"CrossSubnetThreshold" +#define CLUSREG_NAME_CROSS_SITE_THRESHOLD L"CrossSiteThreshold" +#define CLUSREG_NAME_PLUMB_ALL_CROSS_SUBNET_ROUTES L"PlumbAllCrossSubnetRoutes" + +// +// Node common property names +// + +#define CLUSREG_NAME_NODE_NAME L"NodeName" +#define CLUSREG_NAME_NODE_HIGHEST_VERSION L"NodeHighestVersion" +#define CLUSREG_NAME_NODE_LOWEST_VERSION L"NodeLowestVersion" +#define CLUSREG_NAME_NODE_DESC L"Description" +#define CLUSREG_NAME_NODE_MAJOR_VERSION L"MajorVersion" +#define CLUSREG_NAME_NODE_MINOR_VERSION L"MinorVersion" +#define CLUSREG_NAME_NODE_BUILD_NUMBER L"BuildNumber" +#define CLUSREG_NAME_NODE_CSDVERSION L"CSDVersion" +#define CLUSREG_NAME_NODE_WEIGHT L"NodeWeight" +#define CLUSREG_NAME_NODE_DYNAMIC_WEIGHT L"DynamicWeight" +#define CLUSREG_NAME_NODE_IS_PRIMARY L"IsPrimary" +#define CLUSREG_NAME_NODE_DRAIN_STATUS L"NodeDrainStatus" +#define CLUSREG_NAME_NODE_DRAIN_TARGET L"NodeDrainTarget" +#define CLUSREG_NAME_NODE_NEEDS_PQ L"NeedsPreventQuorum" +#define CLUSREG_NAME_NODE_FDID L"FaultDomainId" +#define CLUSREG_NAME_NODE_STATUS_INFO L"StatusInformation" +#define CLUSREG_NAME_NODE_FAULT_DOMAIN L"FaultDomain" +#define CLUSREG_NAME_NODE_MODEL L"Model" +#define CLUSREG_NAME_NODE_SERIALNUMBER L"SerialNumber" +#define CLUSREG_NAME_NODE_MANUFACTURER L"Manufacturer" +#define CLUSREG_NAME_NODE_UNIQUEID L"UniqueID" +#define CLUSREG_NAME_NODE_DRAIN_ERROR_CODE L"DrainErrorCode" +#define CLUSREG_NAME_NODE_FAILBACK_STATUS L"NodeFailbackStatus" +#define CLUSREG_NAME_NODE_FAILBACK_ERROR_CODE L"FailbackErrorCode" +#define CLUSREG_NAME_NODE_HYPERTHREADING_ENABLED L"HyperthreadingEnabled" + +// +// Group common property names +// + +#define CLUSREG_NAME_GRP_NAME L"Name" +#define CLUSREG_NAME_GRP_TYPE L"GroupType" +#define CLUSREG_NAME_GRP_DESC L"Description" +#define CLUSREG_NAME_GRP_PERSISTENT_STATE L"PersistentState" +#define CLUSREG_NAME_GRP_FAILBACK_TYPE L"AutoFailbackType" +#define CLUSREG_NAME_GRP_FAILBACK_WIN_START L"FailbackWindowStart" +#define CLUSREG_NAME_GRP_FAILBACK_WIN_END L"FailbackWindowEnd" +#define CLUSREG_NAME_GRP_FAILOVER_THRESHOLD L"FailoverThreshold" +#define CLUSREG_NAME_GRP_FAILOVER_PERIOD L"FailoverPeriod" +#define CLUSREG_NAME_GRP_PRIORITY L"Priority" +#define CLUSREG_NAME_GRP_DEFAULT_OWNER L"DefaultOwner" +#define CLUSREG_NAME_GRP_STATUS_INFORMATION L"StatusInformation" +#define CLUSREG_NAME_GRP_ANTI_AFFINITY_CLASS_NAME L"AntiAffinityClassNames" +#define CLUSREG_NAME_GRP_START_DELAY L"GroupStartDelay" +#define CLUSREG_NAME_GRP_CCF_EPOCH L"CCFEpoch" +#define CLUSREG_NAME_GRP_CCF_EPOCH_HIGH L"CCFEpochHigh" +#define CLUSREG_NAME_GRP_RESILIENCY_PERIOD L"ResiliencyPeriod" +#define CLUSREG_NAME_GRP_PREFERRED_SITE L"PreferredSite" +#define CLUSREG_NAME_GRP_COLD_START_SETTING L"ColdStartSetting" +#define CLUSREG_NAME_GRP_FAULT_DOMAIN L"FaultDomain" +#define CLUSREG_NAME_GRP_UPDATE_DOMAIN L"UpdateDomain" +#define CLUSREG_NAME_GRP_PLACEMENT_OPTIONS L"PlacementOptions" +#define CLUSREG_NAME_GRP_LOCK_MOVE L"LockedFromMoving" + +// +// Resource common property names +// + +#define CLUSREG_NAME_RES_NAME L"Name" +#define CLUSREG_NAME_RES_TYPE L"Type" +#define CLUSREG_NAME_RES_DESC L"Description" +#define CLUSREG_NAME_RES_SEPARATE_MONITOR L"SeparateMonitor" +#define CLUSREG_NAME_RES_PERSISTENT_STATE L"PersistentState" +#define CLUSREG_NAME_RES_LOOKS_ALIVE L"LooksAlivePollInterval" +#define CLUSREG_NAME_RES_IS_ALIVE L"IsAlivePollInterval" +#define CLUSREG_NAME_RES_RESTART_ACTION L"RestartAction" +#define CLUSREG_NAME_RES_RESTART_THRESHOLD L"RestartThreshold" +#define CLUSREG_NAME_RES_RESTART_PERIOD L"RestartPeriod" +#define CLUSREG_NAME_RES_RESTART_DELAY L"RestartDelay" +#define CLUSREG_NAME_RES_RETRY_PERIOD_ON_FAILURE L"RetryPeriodOnFailure" +#define CLUSREG_NAME_RES_EMBEDDED_FAILURE_ACTION L"EmbeddedFailureAction" +#define CLUSREG_NAME_RES_PENDING_TIMEOUT L"PendingTimeout" +#define CLUSREG_NAME_RES_DEADLOCK_TIMEOUT L"DeadlockTimeout" +#define CLUSREG_NAME_RES_MONITOR_PID L"MonitorProcessId" +#define CLUSREG_NAME_RES_STATUS_INFORMATION L"StatusInformation" +#define CLUSREG_NAME_RES_LAST_OPERATION_STATUS_CODE L"LastOperationStatusCode" +#define CLUSREG_NAME_RES_DATA1 L"ResourceSpecificData1" +#define CLUSREG_NAME_RES_DATA2 L"ResourceSpecificData2" +#define CLUSREG_NAME_RES_STATUS L"ResourceSpecificStatus" + + +// +// Resource Type common property names +// + +#define CLUSREG_NAME_RESTYPE_NAME L"Name" +#define CLUSREG_NAME_RESTYPE_DESC L"Description" +#define CLUSREG_NAME_RESTYPE_DLL_NAME L"DllName" +#define CLUSREG_NAME_RESTYPE_ADMIN_EXTENSIONS L"AdminExtensions" +#define CLUSREG_NAME_RESTYPE_LOOKS_ALIVE CLUSREG_NAME_RES_LOOKS_ALIVE +#define CLUSREG_NAME_RESTYPE_IS_ALIVE CLUSREG_NAME_RES_IS_ALIVE +#define CLUSREG_NAME_RESTYPE_PENDING_TIMEOUT CLUSREG_NAME_RES_PENDING_TIMEOUT +#define CLUSREG_NAME_RESTYPE_DEADLOCK_TIMEOUT CLUSREG_NAME_RES_DEADLOCK_TIMEOUT +#define CLUSREG_NAME_RESTYPE_DUMP_POLICY L"DumpPolicy" +#define CLUSREG_NAME_RESTYPE_DUMP_LOG_QUERY L"DumpLogQuery" +#define CLUSREG_NAME_RESTYPE_DUMP_SERVICES L"DumpServices" +#define CLUSREG_NAME_RESTYPE_ENABLED_EVENT_LOGS L"EnabledEventLogs" +#define CLUSREG_NAME_RESTYPE_MAX_MONITORS L"MaximumMonitors" +#define CLUSREG_NAME_RESTYPE_WPR_START_AFTER L"WprStartAfter" +#define CLUSREG_NAME_RESTYPE_WPR_PROFILES L"WprProfiles" + +// +// Network common property names +// + +#define CLUSREG_NAME_NET_NAME L"Name" +#define CLUSREG_NAME_NET_IPV6_ADDRESSES L"IPv6Addresses" +#define CLUSREG_NAME_NET_IPV6_PREFIXLENGTHS L"IPv6PrefixLengths" +#define CLUSREG_NAME_NET_IPV4_ADDRESSES L"IPv4Addresses" +#define CLUSREG_NAME_NET_IPV4_PREFIXLENGTHS L"IPv4PrefixLengths" +#define CLUSREG_NAME_NET_ADDRESS L"Address" +#define CLUSREG_NAME_NET_ADDRESS_MASK L"AddressMask" +#define CLUSREG_NAME_NET_DESC L"Description" +#define CLUSREG_NAME_NET_ROLE L"Role" +#define CLUSREG_NAME_NET_SPEED L"LinkSpeed" +#define CLUSREG_NAME_NET_RDMA_CAPABLE L"RdmaCapable" +#define CLUSREG_NAME_NET_RSS_CAPABLE L"RssCapable" +#define CLUSREG_NAME_NET_METRIC L"Metric" +#define CLUSREG_NAME_NET_AUTOMETRIC L"AutoMetric" + + +// +// Network Interface common property names +// + +#define CLUSREG_NAME_NETIFACE_NAME L"Name" +#define CLUSREG_NAME_NETIFACE_NODE L"Node" +#define CLUSREG_NAME_NETIFACE_NETWORK L"Network" +#define CLUSREG_NAME_NETIFACE_ADAPTER_NAME L"Adapter" +#define CLUSREG_NAME_NETIFACE_ADAPTER_ID L"AdapterId" +#define CLUSREG_NAME_NETIFACE_DHCP_ENABLED L"DhcpEnabled" +#define CLUSREG_NAME_NETIFACE_IPV6_ADDRESSES L"IPv6Addresses" +#define CLUSREG_NAME_NETIFACE_IPV4_ADDRESSES L"IPv4Addresses" +#define CLUSREG_NAME_NETIFACE_ADDRESS L"Address" +#define CLUSREG_NAME_NETIFACE_DESC L"Description" + +// +// GroupSet common property names +// + +#define CLUSREG_NAME_GROUPSET_NAME L"Name" +#define CLUSREG_NAME_GROUPSET_STARTUP_SETTING L"StartupSetting" +#define CLUSREG_NAME_GROUPSET_STARTUP_COUNT L"StartupCount" +#define CLUSREG_NAME_GROUPSET_STARTUP_DELAY L"StartupDelay" +#define CLUSREG_NAME_GROUPSET_IS_GLOBAL L"IsGlobal" +#define CLUSREG_NAME_GROUPSET_STATUS_INFORMATION L"StatusInformation" +#define CLUSREG_NAME_GROUPSET_IS_AVAILABILITY_SET L"IsAvailabilitySet" +#define CLUSREG_NAME_GROUPSET_UPDATE_DOMAINS L"UpdateDomains" +#define CLUSREG_NAME_GROUPSET_FAULT_DOMAINS L"FaultDomains" +#define CLUSREG_NAME_GROUPSET_RESERVE_NODE L"ReserveSpareNode" +#define CLUSREG_NAME_GROUPSET_AVAILABILITY_SET_INDEX_TO_NODE_MAPPING L"NodeDomainInfo" + +// +// Affinity rule property names +// +#define CLUSREG_NAME_AFFINITYRULE_NAME L"Name" +#define CLUSREG_NAME_AFFINITYRULE_TYPE L"RuleType" +#define CLUSREG_NAME_AFFINITYRULE_GROUPS L"Groups" +#define CLUSREG_NAME_AFFINITYRULE_ENABLED L"Enabled" +#define CLUSREG_NAME_AFFINITYRULE_SOFTANTIAFFINITY L"SoftAntiAffinity" + +// +// Resource private property names +// + +// +// Common to All Resources interested in using Cluster Awareness of Application Memory Usage +// +#define CLUSREG_NAME_START_MEMORY L"StartMemory" +#define CLUSREG_NAME_VIRTUAL_NUMA_COUNT L"VirtualNumaCount" +#define CLUSREG_NAME_DDA_DEVICE_ALLOCATIONS L"DdaDeviceAllocations" +#define CLUSREG_NAME_GPUP_DEVICE_ALLOCATIONS L"GpupDeviceAllocations" + +// +// Physical Disk +// + +#define CLUSREG_NAME_PHYSDISK_DISKIDTYPE L"DiskIdType" +#define CLUSREG_NAME_PHYSDISK_DISKSIGNATURE L"DiskSignature" +#define CLUSREG_NAME_PHYSDISK_DISKIDGUID L"DiskIdGuid" +#define CLUSREG_NAME_PHYSDISK_DISKRUNCHKDSK L"DiskRunChkDsk" +#define CLUSREG_NAME_PHYSDISK_DISKUNIQUEIDS L"DiskUniqueIds" +#define CLUSREG_NAME_PHYSDISK_DISKVOLUMEINFO L"DiskVolumeInfo" +#define CLUSREG_NAME_PHYSDISK_DISKARBTYPE L"DiskArbType" +#define CLUSREG_NAME_PHYSDISK_DISKARBINTERVAL L"DiskArbInterval" +#define CLUSREG_NAME_PHYSDISK_DISKPATH L"DiskPath" +#define CLUSREG_NAME_PHYSDISK_DISKRELOAD L"DiskReload" +#define CLUSREG_NAME_PHYSDISK_MAINTMODE L"MaintenanceMode" +#define CLUSREG_NAME_PHYSDISK_DISKIODELAY L"MaxIoLatency" +#define CLUSREG_NAME_PHYSDISK_MIGRATEFIXUP L"MigrateDriveLetters" +#define CLUSREG_NAME_PHYSDISK_CSVWRITETHROUGH L"CsvEnforceWriteThrough" +#define CLUSREG_NAME_PHYSDISK_CSVBLOCKCACHE L"EnableBlockCache" +#define CLUSREG_NAME_PHYSDISK_FASTONLINEARBITRATE L"FastOnlineArbitrate" +#define CLUSREG_NAME_PHYSDISK_SPACEIDGUID L"VirtualDiskId" +#define CLUSREG_NAME_STORAGESPACE_POOLIDGUID L"PoolId" +#define CLUSREG_NAME_PHYSDISK_CSVSNAPSHOTDIFFAREASIZE L"SnapshotDiffSize" +#define CLUSREG_NAME_PHYSDISK_CSVSNAPSHOTAGELIMIT L"SnapshotAgeLimit" +#define CLUSREG_NAME_PHYSDISK_DISKGUID L"DiskGuid" +#define CLUSREG_NAME_PHYSDISK_VOLSNAPACTIVATETIMEOUT L"VolsnapActivateTimeout" +#define CLUSREG_NAME_PHYSDISK_DISKRECOVERYACTION L"DiskRecoveryAction" + + +#define CLUSREG_NAME_STORAGESPACE_NAME L"VirtualDiskName" +#define CLUSREG_NAME_STORAGESPACE_DESCRIPTION L"VirtualDiskDescription" +#define CLUSREG_NAME_STORAGESPACE_HEALTH L"VirtualDiskHealth" +#define CLUSREG_NAME_STORAGESPACE_STATE L"VirtualDiskState" +#define CLUSREG_NAME_STORAGESPACE_PROVISIONING L"VirtualDiskProvisioning" +#define CLUSREG_NAME_STORAGESPACE_RESILIENCYTYPE L"VirtualDiskResiliencyType" +#define CLUSREG_NAME_STORAGESPACE_RESILIENCYCOLUMNS L"VirtualDiskResiliencyColumns" +#define CLUSREG_NAME_STORAGESPACE_RESILIENCYINTERLEAVE L"VirtualDiskResiliencyInterleave" + + +// +// Generic Application +// + +#define CLUSREG_NAME_GENAPP_COMMAND_LINE L"CommandLine" +#define CLUSREG_NAME_GENAPP_CURRENT_DIRECTORY L"CurrentDirectory" +#define CLUSREG_NAME_GENAPP_USE_NETWORK_NAME L"UseNetworkName" + +// +// Generic Script +// + +#define CLUSREG_NAME_GENSCRIPT_SCRIPT_FILEPATH L"ScriptFilepath" + + +// +// Generic Service +// + +#define CLUSREG_NAME_GENSVC_SERVICE_NAME L"ServiceName" +#define CLUSREG_NAME_GENSVC_STARTUP_PARAMS L"StartupParameters" +#define CLUSREG_NAME_GENSVC_USE_NETWORK_NAME L"UseNetworkName" + + +// +// IPv4 Address +// + +#define CLUSREG_NAME_IPADDR_NETWORK L"Network" +#define CLUSREG_NAME_IPADDR_ADDRESS L"Address" +#define CLUSREG_NAME_IPADDR_SUBNET_MASK L"SubnetMask" +#define CLUSREG_NAME_IPADDR_ENABLE_NETBIOS L"EnableNetBIOS" +#define CLUSREG_NAME_IPADDR_OVERRIDE_ADDRMATCH L"OverrideAddressMatch" +#define CLUSREG_NAME_IPADDR_ENABLE_DHCP L"EnableDhcp" +#define CLUSREG_NAME_IPADDR_LEASE_OBTAINED_TIME L"LeaseObtainedTime" +#define CLUSREG_NAME_IPADDR_LEASE_TERMINATES_TIME L"LeaseExpiresTime" +#define CLUSREG_NAME_IPADDR_T1 L"T1" +#define CLUSREG_NAME_IPADDR_T2 L"T2" +#define CLUSREG_NAME_IPADDR_DHCP_SERVER L"DhcpServer" +#define CLUSREG_NAME_IPADDR_DHCP_ADDRESS L"DhcpAddress" +#define CLUSREG_NAME_IPADDR_DHCP_SUBNET_MASK L"DhcpSubnetMask" +#define CLUSREG_NAME_IPADDR_SHARED_NETNAME L"SharedNetname" +#define CLUSREG_NAME_IPADDR_PROBE_PORT L"ProbePort" +#define CLUSREG_NAME_IPADDR_PROBE_FAILURE_THRESHOLD L"ProbeFailureThreshold" + +// +// IPv6 Address +// + +#define CLUSREG_NAME_IPV6_NATIVE_NETWORK L"Network" +#define CLUSREG_NAME_IPV6_NATIVE_ADDRESS L"Address" +#define CLUSREG_NAME_IPV6_NATIVE_PREFIX_LENGTH L"PrefixLength" + +#define CLUSREG_NAME_IPV6_TUNNEL_ADDRESS L"Address" +#define CLUSREG_NAME_IPV6_TUNNEL_TUNNELTYPE L"TunnelType" + + +// +// Network Name +// +#define CLUSREG_NAME_NETNAME_NAME L"Name" +#define CLUSREG_NAME_NETNAME_CREATING_DC L"CreatingDC" +#define CLUSREG_NAME_NETNAME_OBJECT_ID L"ObjectGUID" +#define CLUSREG_NAME_NETNAME_DNS_NAME L"DnsName" +#define CLUSREG_NAME_NETNAME_REMAP_PIPE_NAMES L"RemapPipeNames" +#define CLUSREG_NAME_NETNAME_RESOURCE_DATA L"ResourceData" +#define CLUSREG_NAME_NETNAME_STATUS_NETBIOS L"StatusNetBIOS" +#define CLUSREG_NAME_NETNAME_STATUS_DNS L"StatusDNS" +#define CLUSREG_NAME_NETNAME_STATUS_KERBEROS L"StatusKerberos" +#define CLUSREG_NAME_NETNAME_VCO_CONTAINER L"VcoContainer" +#define CLUSREG_NAME_NETNAME_LAST_DNS_UPDATE L"LastDNSUpdateTime" +#define CLUSREG_NAME_NETNAME_CONTAINERGUID L"CryptoContainerGUID" +#define CLUSREG_NAME_NETNAME_HOST_TTL L"HostRecordTTL" +#define CLUSREG_NAME_NETNAME_PUBLISH_PTR L"PublishPTRRecords" +#define CLUSREG_NAME_NETNAME_REMOVEVCO_ONDELETE L"DeleteVcoOnResCleanup" +#define CLUSREG_NAME_NETNAME_REGISTER_ALL_IP L"RegisterAllProvidersIP" +#define CLUSREG_KEYNAME_OBJECTGUIDS L"ObjectGUIDs" +#define CLUSREG_NAME_NETNAME_EXCLUDE_NETWORKS L"ExcludeNetworks" +#define CLUSREG_NAME_NETNAME_ALIASES L"Aliases" +#define CLUSREG_NAME_NETNAME_IN_USE_NETWORKS L"InUseNetworks" +#define CLUSREG_NAME_NETNAME_DNS_SUFFIX L"DnsSuffix" +#define CLUSREG_NAME_NETNAME_AD_AWARE L"ADAware" +#define CLUSREG_NAME_NETNAME_DNN_DISABLE_CLONES L"DisableClones" + +// +// Print Spooler +// + +#define CLUSREG_NAME_PRTSPOOL_DEFAULT_SPOOL_DIR L"DefaultSpoolDirectory" +#define CLUSREG_NAME_PRTSPOOL_TIMEOUT L"JobCompletionTimeout" + +// +// File Share +// + +#define CLUSREG_NAME_FILESHR_SERVER_NAME L"ServerName" +#define CLUSREG_NAME_FILESHR_SHARE_NAME L"ShareName" +#define CLUSREG_NAME_FILESHR_PATH L"Path" +#define CLUSREG_NAME_FILESHR_REMARK L"Remark" +#define CLUSREG_NAME_FILESHR_MAX_USERS L"MaxUsers" +#define CLUSREG_NAME_FILESHR_SD L"Security Descriptor" +#define CLUSREG_NAME_FILESHR_SHARE_SUBDIRS L"ShareSubDirs" +#define CLUSREG_NAME_FILESHR_HIDE_SUBDIR_SHARES L"HideSubDirShares" +#define CLUSREG_NAME_FILESHR_IS_DFS_ROOT L"IsDfsRoot" +#define CLUSREG_NAME_FILESHR_SHARE_FLAGS L"ShareFlags" +#define CLUSREG_NAME_FILESHR_CA_TIMEOUT L"CATimeout" +#define CLUSREG_NAME_FILESHR_QOS_FLOWSCOPE L"QosFlowScope" +#define CLUSREG_NAME_FILESHR_QOS_POLICYID L"QosPolicyId" + +// +// DHCP Service +// + +#define CLUSREG_NAME_DHCP_DATABASE_PATH L"DatabasePath" +#define CLUSREG_NAME_DHCP_BACKUP_PATH L"BackupPath" +#define CLUSREG_NAME_LOG_FILE_PATH L"LogFilePath" + + +// +// WINS Service +// + +#define CLUSREG_NAME_WINS_DATABASE_PATH L"DatabasePath" +#define CLUSREG_NAME_WINS_BACKUP_PATH L"BackupPath" + + +// +// Volume Shadow Copy Service Task +// + +#define CLUSREG_NAME_VSSTASK_CURRENTDIRECTORY L"CurrentDirectory" +#define CLUSREG_NAME_VSSTASK_APPNAME L"ApplicationName" +#define CLUSREG_NAME_VSSTASK_APPPARAMS L"ApplicationParams" +#define CLUSREG_NAME_VSSTASK_TRIGGERARRAY L"TriggerArray" + +// +// File Share Quorum Witness Resource +// + +#define CLUSREG_NAME_FSWITNESS_SHARE_PATH L"SharePath" +#define CLUSREG_NAME_FSWITNESS_ARB_DELAY L"ArbitrationDelay" +#define CLUSREG_NAME_FSWITNESS_IMPERSONATE_CNO L"ImpersonateCNO" + +// +// Storage Pool +// +#define CLUSREG_NAME_STORAGESPACE_POOLNAME L"Name" +#define CLUSREG_NAME_STORAGESPACE_POOLDESC L"Description" +#define CLUSREG_NAME_STORAGESPACE_POOLDRIVEIDS L"DriveIds" +#define CLUSREG_NAME_STORAGESPACE_POOLHEALTH L"Health" +#define CLUSREG_NAME_STORAGESPACE_POOLSTATE L"State" +#define CLUSREG_NAME_STORAGESPACE_POOLTOTALCAPACITY L"TotalCapacity" +#define CLUSREG_NAME_STORAGESPACE_POOLCONSUMEDCAPACITY L"ConsumedCapacity" + +#define CLUSREG_NAME_STORAGESPACE_POOLARBITRATE L"Arbitrate" +#define CLUSREG_NAME_STORAGESPACE_POOLREEVALTIMEOUT L"ReEvaluatePlacementTimeout" +#define CLUSREG_NAME_STORAGESPACE_POOLQUORUMSHARE L"PoolQuorumShare" +#define CLUSREG_NAME_STORAGESPACE_POOLQUORUMUSERACCOUNT L"PoolQuorumUserAccount" + +// +// Scale Out File Server +// +#define CLUSREG_NAME_SOFS_SMBASYMMETRYMODE L"SmbAsymmetryMode" + +// +// VIP Address +// +#define CLUSREG_NAME_VIP_PREFIX_LENGTH L"PrefixLength" +#define CLUSREG_NAME_VIP_ADAPTER_NAME L"AdapterName" +#define CLUSREG_NAME_VIP_ADDRESS L"Address" +#define CLUSREG_NAME_VIP_VSID L"VSID" +#define CLUSREG_NAME_VIP_RDID L"RDID" + + +// +// Cloud Witness +// +#define CLUSREG_NAME_CLOUDWITNESS_PRIMARY_TOKEN L"PrimaryToken" +#define CLUSREG_NAME_CLOUDWITNESS_PRIMARY_KEY L"PrimaryKey" +#define CLUSREG_NAME_CLOUDWITNESS_ACCOUNT_NAME L"AccountName" +#define CLUSREG_NAME_CLOUDWITNESS_ENDPOINT_INFO L"EndpointInfo" +#define CLUSREG_NAME_CLOUDWITNESS_CONTAINER_NAME L"ContainerName" +#define CLUSREG_NAME_CLOUDWITNESS_MANAGED_IDENTITY L"IsManagedIdentity" +#define CLOUD_WITNESS_CONTAINER_NAME L"msft-cloud-witness" + +// Storage Replica +#define CLUS_NAME_RES_TYPE_SOURCE_RESID L"SourceResourceId" +#define CLUS_NAME_RES_TYPE_TARGET_RESID L"TargetResourceId" +#define CLUS_NAME_RES_TYPE_SOURCE_VOLUMES L"SourceVolumes" +#define CLUS_NAME_RES_TYPE_TARGET_VOLUMES L"TargetVolumes" +#define CLUS_NAME_RES_TYPE_DATA_RESID L"DataResourceId" +#define CLUS_NAME_RES_TYPE_LOG_RESID L"LogResourceId" +#define CLUS_NAME_RES_TYPE_LOG_VOLUME L"LogVolume" +#define CLUS_NAME_RES_TYPE_REPLICATION_GROUPID L"ReplicationGroupId" +#define CLUS_NAME_RES_TYPE_CLUSTER_GROUPID L"ClusterGroupId" +#define CLUS_NAME_RES_TYPE_REPLICATION_GROUP_TYPE L"ReplicationClusterGroupType" +#define CLUS_NAME_RES_TYPE_MINIMUM_LOG_SIZE L"MinimumLogSizeInBytes" +#define CLUS_NAME_RES_TYPE_UNIT_LOG_SIZE_CHANGE L"UnitOfLogSizeChangeInBytes" +#define CLUS_NAME_RES_TYPE_LOG_MULTIPLE L"LogSizeMultiple" + +// Key Value Store +#define CLUSREG_NAME_KEYVALUESTORE_NAME L"KeyValueStores" +#define CLUSREG_NAME_KEYVALUESTORE_MANAGERNAME L"ManagerName" +#define CLUSREG_NAME_KEYVALUESTORE_MANAGERPATH L"ManagerPath" + + +typedef enum PLACEMENT_OPTIONS { + PLACEMENT_OPTIONS_MIN_VALUE = 0x00000000, + PLACEMENT_OPTIONS_DEFAULT_PLACEMENT_OPTIONS = PLACEMENT_OPTIONS_MIN_VALUE, + PLACEMENT_OPTIONS_DISABLE_CSV_VM_DEPENDENCY = 0x00000001, + PLACEMENT_OPTIONS_CONSIDER_OFFLINE_VMS = 0x00000002, + PLACEMENT_OPTIONS_DONT_USE_MEMORY = 0x00000004, + PLACEMENT_OPTIONS_DONT_USE_CPU = 0x00000008, + PLACEMENT_OPTIONS_DONT_USE_LOCAL_TEMP_DISK = 0x00000010, + PLACEMENT_OPTIONS_DONT_RESUME_VMS_WITH_EXISTING_TEMP_DISK = 0x00000020, + PLACEMENT_OPTIONS_SAVE_VMS_WITH_LOCAL_DISK_ON_DRAIN_OVERWRITE = 0x00000040, + PLACEMENT_OPTIONS_DONT_RESUME_AVAILABILTY_SET_VMS_WITH_EXISTING_TEMP_DISK = 0x00000080, + PLACEMENT_OPTIONS_SAVE_AVAILABILTY_SET_VMS_WITH_LOCAL_DISK_ON_DRAIN_OVERWRITE = 0x00000100, + PLACEMENT_OPTIONS_AVAILABILITY_SET_DOMAIN_AFFINITY = 0x00000200, + PLACEMENT_OPTIONS_ALL = (PLACEMENT_OPTIONS_DISABLE_CSV_VM_DEPENDENCY | + PLACEMENT_OPTIONS_CONSIDER_OFFLINE_VMS | + PLACEMENT_OPTIONS_DONT_USE_MEMORY | + PLACEMENT_OPTIONS_DONT_USE_CPU | + PLACEMENT_OPTIONS_DONT_USE_LOCAL_TEMP_DISK | + PLACEMENT_OPTIONS_DONT_RESUME_VMS_WITH_EXISTING_TEMP_DISK | + PLACEMENT_OPTIONS_SAVE_VMS_WITH_LOCAL_DISK_ON_DRAIN_OVERWRITE | + PLACEMENT_OPTIONS_DONT_RESUME_AVAILABILTY_SET_VMS_WITH_EXISTING_TEMP_DISK | + PLACEMENT_OPTIONS_SAVE_AVAILABILTY_SET_VMS_WITH_LOCAL_DISK_ON_DRAIN_OVERWRITE | + PLACEMENT_OPTIONS_AVAILABILITY_SET_DOMAIN_AFFINITY) +} PLACEMENT_OPTIONS; + +typedef enum GRP_PLACEMENT_OPTIONS { + GRP_PLACEMENT_OPTIONS_MIN_VALUE = 0x00000000, + GRP_PLACEMENT_OPTIONS_DEFAULT = GRP_PLACEMENT_OPTIONS_MIN_VALUE, + GRP_PLACEMENT_OPTIONS_DISABLE_AUTOBALANCING = 0x00000001, + GRP_PLACEMENT_OPTIONS_ALL = (GRP_PLACEMENT_OPTIONS_DISABLE_AUTOBALANCING) +} GRP_PLACEMENT_OPTIONS; + +#define SR_REPLICATED_PARTITION_DISALLOW_MULTINODE_IO 0x00000001 + +typedef struct _SR_RESOURCE_TYPE_REPLICATED_PARTITION_INFO +{ + ULONGLONG PartitionOffset; /**< Offset of the partition in the disk */ + ULONG Capabilities; /**< Capabilities of replicated partition*/ +} SR_RESOURCE_TYPE_REPLICATED_PARTITION_INFO, *PSR_RESOURCE_TYPE_REPLICATED_PARTITION_INFO; + +typedef struct _SR_RESOURCE_TYPE_REPLICATED_PARTITION_ARRAY +{ + DWORD Count; /**< Count of all replicated partitions on the disk*/ + SR_RESOURCE_TYPE_REPLICATED_PARTITION_INFO PartitionArray[1]; /**< Variable size array of all replicated partitions on the disk*/ +} SR_RESOURCE_TYPE_REPLICATED_PARTITION_ARRAY, *PSR_RESOURCE_TYPE_REPLICATED_PARTITION_ARRAY; + +// +// Storage Replica structures and enums used to get replication information from the replication resource types +// +typedef enum _SR_REPLICATED_DISK_TYPE +{ + SrReplicatedDiskTypeNone = 0, + SrReplicatedDiskTypeSource = 1, + SrReplicatedDiskTypeLogSource = 2, + SrReplicatedDiskTypeDestination = 3, + SrReplicatedDiskTypeLogDestination = 4, + SrReplicatedDiskTypeNotInParthership = 5, + SrReplicatedDiskTypeLogNotInParthership = 6, + SrReplicatedDiskTypeOther +} SR_REPLICATED_DISK_TYPE, *PSR_REPLICATED_DISK_TYPE; + +typedef enum _SR_DISK_REPLICATION_ELIGIBLE +{ + SrDiskReplicationEligibleNone = 0, + SrDiskReplicationEligibleYes = 1, + SrDiskReplicationEligibleOffline = 2, + SrDiskReplicationEligibleNotGpt = 3, + SrDiskReplicationEligiblePartitionLayoutMismatch = 4, + SrDiskReplicationEligibleInsufficientFreeSpace = 5, + SrDiskReplicationEligibleNotInSameSite = 6, + SrDiskReplicationEligibleInSameSite = 7, + SrDiskReplicationEligibleFileSystemNotSupported = 8, + SrDiskReplicationEligibleAlreadyInReplication = 9, + SrDiskReplicationEligibleSameAsSpecifiedDisk = 10, + SrDiskReplicationEligibleOther = 9999 +} SR_DISK_REPLICATION_ELIGIBLE, *PSR_DISK_REPLICATION_ELIGIBLE; + +typedef struct _SR_RESOURCE_TYPE_QUERY_ELIGIBLE_LOGDISKS +{ + GUID DataDiskGuid; /**< Cluster resource identifier of data disk.*/ + BOOLEAN IncludeOfflineDisks; /**< When TRUE, the result set includes all the offline disks in Available Storage group.*/ +} SR_RESOURCE_TYPE_QUERY_ELIGIBLE_LOGDISKS, *PSR_RESOURCE_TYPE_QUERY_ELIGIBLE_LOGDISKS; + +typedef struct _SR_RESOURCE_TYPE_ELIGIBLE_TARGET_DATADISKS +{ + GUID SourceDataDiskGuid; /**< Cluster resource identifier of data disk.*/ + GUID TargetReplicationGroupGuid; /**< Replication group to which one of returned set of disk may be added.*/ + BOOLEAN SkipConnectivityCheck; /**< When TRUE, even the disks that are connected to same nodes as the source disk are included in result set.*/ + BOOLEAN IncludeOfflineDisks; /**< When TRUE, the result set includes offline disks in Available Storage group.*/ +} SR_RESOURCE_TYPE_QUERY_ELIGIBLE_TARGET_DATADISKS, *PSR_RESOURCE_TYPE_QUERY_ELIGIBLE_TARGET_DATADISKS; + +typedef struct _SR_RESOURCE_TYPE_ELIGIBLE_SOURCE_DATADISKS +{ + GUID DataDiskGuid; /**< Cluster resource identifier of data disk.*/ + BOOLEAN IncludeAvailableStoargeDisks; /**< When TRUE, the result set includes disks in Available Storage group.*/ +} SR_RESOURCE_TYPE_QUERY_ELIGIBLE_SOURCE_DATADISKS, *PSR_RESOURCE_TYPE_QUERY_ELIGIBLE_SOURCE_DATADISKS; + +typedef struct _SR_RESOURCE_TYPE_DISK_INFO +{ + SR_DISK_REPLICATION_ELIGIBLE Reason; /**< Number of disks in the result set.*/ + GUID DiskGuid; /**< Cluster resource identifier of disk.*/ +} SR_RESOURCE_TYPE_DISK_INFO, *PSR_RESOURCE_TYPE_DISK_INFO; + +typedef struct _SR_RESOURCE_TYPE_ELIGIBLE_DISKS_RESULT +{ + USHORT Count; /**< Number of disks in the result set.*/ + SR_RESOURCE_TYPE_DISK_INFO DiskInfo[1]; /**< Cluster resource identifier and related information about the disk.*/ +} SR_RESOURCE_TYPE_ELIGIBLE_DISKS_RESULT, *PSR_RESOURCE_TYPE_ELIGIBLE_DISKS_RESULT; + +typedef struct _SR_RESOURCE_TYPE_REPLICATED_DISK +{ + SR_REPLICATED_DISK_TYPE Type; /**< Type of the replicated disk.*/ + GUID ClusterDiskResourceGuid; /**< Cluster resource identifier of disk.*/ + GUID ReplicationGroupId; /**< Replication group identifier.*/ + WCHAR ReplicationGroupName[MAX_PATH]; /**< Name of the replication group name.*/ +} SR_RESOURCE_TYPE_REPLICATED_DISK, *PSR_RESOURCE_TYPE_REPLICATED_DISK; + +typedef struct _SR_RESOURCE_TYPE_REPLICATED_DISKS_RESULT +{ + USHORT Count; /**< Number of replicated disks in the result set.*/ + SR_RESOURCE_TYPE_REPLICATED_DISK ReplicatedDisks[1]; /**< Array of replicated disks.*/ +} SR_RESOURCE_TYPE_REPLICATED_DISKS_RESULT, *PSR_RESOURCE_TYPE_REPLICATED_DISKS_RESULT; + +typedef struct _SR_RESOURCE_TYPE_ADD_REPLICATION_GROUP +{ + WCHAR ReplicationGroupName[MAX_PATH]; /**< The name of the replication group to create*/ + WCHAR Description[MAX_PATH]; /**< A text description of the group*/ + WCHAR LogPath[MAX_PATH]; /**< Full path of the log container*/ + ULONGLONG MaxLogSizeInBytes; /**< The maximum size of the log file in Bytes*/ + USHORT LogType; /**< Whether the log is file based CLFS log (1) or RAW SR log (2)*/ + DWORD ReplicationMode; /**< Whether the replication is performed synchronously(1) or asynchronously(2)*/ + DWORD MinimumPartnersInSync; /**< Minimum number of synchronous Replication Partners to be actively in sync before allowing data access by applications on the primary Replica*/ + BOOLEAN EnableWriteConsistency; /**< Set true to enable write consistency*/ + BOOLEAN EnableEncryption; /**< true to enable encryption; otherwise, false*/ + BOOLEAN EnableCompression; /**< true to enable compression; otherwise, false*/ + WCHAR CertificateThumbprint[MAX_PATH]; /**< The certificate thumbprint*/ + ULONG VolumeNameCount; /**< Count of number of volumes in \ref VolumeNames field*/ + WCHAR VolumeNames[ANYSIZE_ARRAY][MAX_PATH]; /**< A collection of volume names*/ +} SR_RESOURCE_TYPE_ADD_REPLICATION_GROUP, *PSR_RESOURCE_TYPE_ADD_REPLICATION_GROUP; + +typedef struct _SR_RESOURCE_TYPE_ADD_REPLICATION_GROUP_RESULT +{ + DWORD Result; /**< Result code*/ + WCHAR ErrorString[MAX_PATH]; /**< Buffer that contains error string from remote CIM calls.*/ +} SR_RESOURCE_TYPE_ADD_REPLICATION_GROUP_RESULT, *PSR_RESOURCE_TYPE_ADD_REPLICATION_GROUP_RESULT; + + +// +// Input structure for CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX2 / CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX2 +// +typedef struct _CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX2_INPUT { + DWORD dwFlags; + GUID guidPoolFilter; +} CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX2_INPUT, *PCLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX2_INPUT; + +#define CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX2_FLAG_ADD_VOLUME_INFO 0x00000001 +#define CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX2_FLAG_FILTER_BY_POOL 0x00000002 +#define CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX2_FLAG_INCLUDE_NON_SHARED_DISKS 0x00000004 + +#if _MSC_VER >= 1200 +#pragma warning(pop) // restore 4200/4201 +#else +#pragma warning( default : 4200 ) // nonstandard extension used : zero-sized array in struct/union +#pragma warning( default : 4201 ) // nonstandard extension used : nameless struct/union +#endif +#endif // MIDL_PASS + +#ifdef __cplusplus +} // extern "C" + +#endif + +#ifndef _CLUSTER_API_TYPES_ +#define _CLUSTER_API_TYPES_ +#endif // _CLUSTER_API_TYPES_ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_CLUSTER) */ +#pragma endregion + +#endif // _IN_KERNEL_ +#endif // _CLUSTER_API_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CmnQuery.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CmnQuery.h new file mode 100644 index 0000000000000000000000000000000000000000..6693116ef12208711656de1b5750a146054df598 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CmnQuery.h @@ -0,0 +1,223 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#include + +#ifndef __cmnquery_h +#define __cmnquery_h + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +DEFINE_GUID(IID_IQueryForm, 0x8cfcee30, 0x39bd, 0x11d0, 0xb8, 0xd1, 0x0, 0xa0, 0x24, 0xab, 0x2d, 0xbb); +DEFINE_GUID(IID_IPersistQuery, 0x1a3114b8, 0xa62e, 0x11d0, 0xa6, 0xc5, 0x0, 0xa0, 0xc9, 0x06, 0xaf, 0x45); + +DEFINE_GUID(CLSID_CommonQuery, 0x83bc5ec0, 0x6f2a, 0x11d0, 0xa1, 0xc4, 0x0, 0xaa, 0x00, 0xc1, 0x6e, 0x65); +DEFINE_GUID(IID_ICommonQuery, 0xab50dec0, 0x6f1d, 0x11d0, 0xa1, 0xc4, 0x0, 0xaa, 0x00, 0xc1, 0x6e, 0x65); + + +#ifndef GUID_DEFS_ONLY + +//----------------------------------------------------------------------------- +// IQueryForm +//----------------------------------------------------------------------------- + +// +// A query form object is registered under the query handlers CLSID, +// a list is stored in the registry: +// +// HKCR\CLSID\{CLSID query handler}\Forms +// +// For each form object there are server values which can be defined: +// +// Flags = flags for the form object: +// QUERYFORM_CHANGESFORMLIST +// QUERYFORM_CHANGESOPTFORMLIST +// +// CLSID = string containing the CLSID of the InProc server to invoke +// to get the IQueryFormObject. +// +// Forms = a sub key containing the CLSIDs for the forms registered +// by IQueryForm::AddForms (or modified by ::AddPages), if +// the flags are 0, then we scan this list looking for a match +// for the default form specified. +// + +#define QUERYFORM_CHANGESFORMLIST 0x000000001 +#define QUERYFORM_CHANGESOPTFORMLIST 0x000000002 + + +// +// Query Forms +// =========== +// Query forms are registered and have query pages added to them, a form without +// pages is not displayed. Each form has a unique CLSID to allow it to be +// selected by invoking the query dialog. +// + +#define CQFF_NOGLOBALPAGES 0x0000001 // = 1 => doesn't have global pages added +#define CQFF_ISOPTIONAL 0x0000002 // = 1 => form is hidden, unless optional forms requested + +typedef struct +{ + DWORD cbStruct; + DWORD dwFlags; + CLSID clsid; + HICON hIcon; + LPCWSTR pszTitle; +} CQFORM, * LPCQFORM; + +typedef HRESULT (CALLBACK *LPCQADDFORMSPROC)(LPARAM lParam, LPCQFORM pForm); + + +// +// Query Form Pages +// ================ +// When a query form has been registered the caller can then add pages to it, +// any form can have pages appended. +// + + +struct _cqpage; +typedef struct _cqpage CQPAGE, * LPCQPAGE; +typedef HRESULT (CALLBACK *LPCQADDPAGESPROC)(LPARAM lParam, REFCLSID clsidForm, LPCQPAGE pPage); +typedef HRESULT (CALLBACK *LPCQPAGEPROC)(LPCQPAGE pPage, HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); + +struct _cqpage +{ + DWORD cbStruct; + DWORD dwFlags; + LPCQPAGEPROC pPageProc; + HINSTANCE hInstance; + INT idPageName; + INT idPageTemplate; + DLGPROC pDlgProc; + LPARAM lParam; +}; + + +// +// IQueryForm interfaces +// + +#undef INTERFACE +#define INTERFACE IQueryForm + +DECLARE_INTERFACE_IID_(IQueryForm, IUnknown, "8cfcee30-39bd-11d0-b8d1-00a024ab2dbb") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // IQueryForm methods + STDMETHOD(Initialize)(THIS_ HKEY hkForm) PURE; + STDMETHOD(AddForms)(THIS_ LPCQADDFORMSPROC pAddFormsProc, LPARAM lParam) PURE; + STDMETHOD(AddPages)(THIS_ LPCQADDPAGESPROC pAddPagesProc, LPARAM lParam) PURE; +}; + + +// +// Messages for pages +// + +#define CQPM_INITIALIZE 0x00000001 +#define CQPM_RELEASE 0x00000002 +#define CQPM_ENABLE 0x00000003 // wParam = TRUE/FALSE (enable, disable), lParam = 0 +#define CQPM_GETPARAMETERS 0x00000005 // wParam = 0, lParam = -> receives the LocalAlloc +#define CQPM_CLEARFORM 0x00000006 // wParam, lParam = 0 +#define CQPM_PERSIST 0x00000007 // wParam = fRead, lParam -> IPersistQuery +#define CQPM_HELP 0x00000008 // wParam = 0, lParam -> LPHELPINFO +#define CQPM_SETDEFAULTPARAMETERS 0x00000009 // wParam = 0, lParam -> OPENQUERYWINDOW + +#define CQPM_HANDLERSPECIFIC 0x10000000 + +//----------------------------------------------------------------------------- +// IPersistQuery +//----------------------------------------------------------------------------- + +// IPersistQuery interface + +#undef INTERFACE +#define INTERFACE IPersistQuery + +DECLARE_INTERFACE_IID_(IPersistQuery, IPersist, "1a3114b8-a62e-11d0-a6c5-00a0c906af45") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // IPersist + STDMETHOD(GetClassID)(THIS_ CLSID* pClassID) PURE; + + // IPersistQuery + STDMETHOD(WriteString)(THIS_ LPCWSTR pSection, LPCWSTR pValueName, LPCWSTR pValue) PURE; + STDMETHOD(ReadString)(THIS_ LPCWSTR pSection, LPCWSTR pValueName, _Out_ LPWSTR pBuffer, INT cchBuffer) PURE; + STDMETHOD(WriteInt)(THIS_ LPCWSTR pSection, LPCWSTR pValueName, INT value) PURE; + STDMETHOD(ReadInt)(THIS_ LPCWSTR pSection, LPCWSTR pValueName, LPINT pValue) PURE; + STDMETHOD(WriteStruct)(THIS_ LPCWSTR pSection, LPCWSTR pValueName, LPVOID pStruct, DWORD cbStruct) PURE; + STDMETHOD(ReadStruct)(THIS_ LPCWSTR pSection, LPCWSTR pValueName, LPVOID pStruct, DWORD cbStruct) PURE; + STDMETHOD(Clear)(THIS) PURE; +}; + + +//----------------------------------------------------------------------------- +// ICommonQuery +//----------------------------------------------------------------------------- + +#define OQWF_OKCANCEL 0x00000001 // = 1 => Provide OK/Cancel buttons +#define OQWF_DEFAULTFORM 0x00000002 // = 1 => clsidDefaultQueryForm is valid +#define OQWF_SINGLESELECT 0x00000004 // = 1 => view to have single selection (depends on viewer) +#define OQWF_LOADQUERY 0x00000008 // = 1 => use the IPersistQuery to load the given query +#define OQWF_REMOVESCOPES 0x00000010 // = 1 => remove scope picker from dialog +#define OQWF_REMOVEFORMS 0x00000020 // = 1 => remove form picker from dialog +#define OQWF_ISSUEONOPEN 0x00000040 // = 1 => issue query on opening the dialog +#define OQWF_SHOWOPTIONAL 0x00000080 // = 1 => list optional forms by default +#define OQWF_SAVEQUERYONOK 0x00000200 // = 1 => use the IPersistQuery to write the query on close +#define OQWF_HIDEMENUS 0x00000400 // = 1 => no menu bar displayed +#define OQWF_HIDESEARCHUI 0x00000800 // = 1 => dialog is filter, therefore start, stop, new search etc + +#define OQWF_PARAMISPROPERTYBAG 0x80000000 // = 1 => the form parameters ptr is an IPropertyBag (ppbFormParameters) + +typedef struct +{ + DWORD cbStruct; // structure size + DWORD dwFlags; // flags (OQFW_*) + CLSID clsidHandler; // clsid of handler we are using + LPVOID pHandlerParameters; // handler specific structure for initialization + CLSID clsidDefaultForm; // default form to be selected (if OQF_DEFAULTFORM == 1 ) + IPersistQuery* pPersistQuery; // IPersistQuery used for loading queries + union + { + void* pFormParameters; + IPropertyBag* ppbFormParameters; + }; +} OPENQUERYWINDOW, * LPOPENQUERYWINDOW; + + +// ICommonQuery + +#undef INTERFACE +#define INTERFACE ICommonQuery + +DECLARE_INTERFACE_IID_(ICommonQuery, IUnknown, "ab50dec0-6f1d-11d0-a1c4-00aa00c16e65") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // ICommonQuery methods + STDMETHOD(OpenQueryWindow)(THIS_ HWND hwndParent, LPOPENQUERYWINDOW pQueryWnd, IDataObject** ppDataObject) PURE; +}; + + + +#endif // GUID_DEFS_ONLY + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Color.Dlg b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Color.Dlg new file mode 100644 index 0000000000000000000000000000000000000000..357d4df08d76e73559e6386ba594adacb6bee0a5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Color.Dlg @@ -0,0 +1,90 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + color.dlg + +Abstract: + + This module contains the resource descriptions for the Win32 + color common dialogs. + +Revision History: + +--*/ + + + +// +// Include Files. +// + +#include + + + + +// +// Color Dialogs. +// + +ChooseColor DIALOG LOADONCALL MOVEABLE DISCARDABLE 2, 0, 298, 184 +STYLE WS_BORDER | DS_MODALFRAME | WS_CAPTION | WS_POPUP | WS_SYSMENU | + DS_3DLOOK +CAPTION "Color" +FONT 8 "MS Shell Dlg" +BEGIN + LTEXT "&Basic colors:", -1, 4, 4, 140, 9 + CONTROL "", COLOR_BOX1, "static", + SS_SIMPLE | WS_CHILD | WS_TABSTOP | WS_GROUP, + 4, 14, 140, 86 + + LTEXT "&Custom colors:", -1, 4, 106, 140, 9 + CONTROL "", COLOR_CUSTOM1, "static", + SS_SIMPLE | WS_CHILD | WS_TABSTOP | WS_GROUP, + 4, 116, 140, 28 + + PUSHBUTTON "&Define Custom Colors >>" COLOR_MIX, 4, 150, 138, 14, + WS_TABSTOP | WS_GROUP + + DEFPUSHBUTTON "OK", IDOK, 4, 166, 44, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "Cancel", IDCANCEL, 52, 166, 44, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Help", pshHelp, 100, 166, 44, 14, WS_GROUP | WS_TABSTOP + + CONTROL "", COLOR_RAINBOW, "static", + SS_SUNKEN | SS_SIMPLE | WS_CHILD, 152, 4, 118, 116 + + CONTROL "", COLOR_LUMSCROLL, "static", + SS_SUNKEN | SS_SIMPLE | WS_CHILD, 280, 4, 8, 116 + + CONTROL "", COLOR_CURRENT, "static", + SS_SUNKEN | SS_SIMPLE | WS_CHILD, 152, 124, 40, 26 + + PUSHBUTTON "&o", COLOR_SOLID, 300, 200, 4, 14, WS_GROUP + RTEXT "Color", COLOR_SOLID_LEFT, 152, 151, 20, 9 + LTEXT "|S&olid", COLOR_SOLID_RIGHT, 172, 151, 20, 9 + + RTEXT "Hu&e:", COLOR_HUEACCEL, 194, 126, 20, 9 + EDITTEXT, COLOR_HUE, 216, 124, 18, 12, WS_GROUP | WS_TABSTOP + + RTEXT "&Sat:", COLOR_SATACCEL, 194, 140, 20, 9 + EDITTEXT, COLOR_SAT, 216, 138, 18, 12, WS_GROUP | WS_TABSTOP + + RTEXT "&Lum:", COLOR_LUMACCEL, 194, 154, 20, 9 + EDITTEXT, COLOR_LUM, 216, 152, 18, 12, WS_GROUP | WS_TABSTOP + + RTEXT "&Red:", COLOR_REDACCEL, 243, 126, 24, 9 + EDITTEXT, COLOR_RED, 269, 124, 18, 12, WS_GROUP | WS_TABSTOP + + RTEXT "&Green:", COLOR_GREENACCEL, 243, 140, 24, 9 + EDITTEXT, COLOR_GREEN, 269, 138, 18, 12, WS_GROUP | WS_TABSTOP + + RTEXT "Bl&ue:", COLOR_BLUEACCEL, 243, 154, 24, 9 + EDITTEXT, COLOR_BLUE, 269, 152, 18, 12, WS_GROUP | WS_TABSTOP + + PUSHBUTTON "&Add to Custom Colors", COLOR_ADD, 152, 166, 142, 14, + WS_GROUP | WS_TABSTOP +END + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ColorDlg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ColorDlg.h new file mode 100644 index 0000000000000000000000000000000000000000..5c75df6328246b9981cf7c00949fd3c4a64d7e6c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ColorDlg.h @@ -0,0 +1,63 @@ +/*++ + +Copyright (c) 1990-1999, Microsoft Corporation All rights reserved. + +Module Name: + + colordlg.h + +Abstract: + + This module contains the header information for the Win32 color dialog. + +Revision History: + +--*/ + + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifndef _INC_COLORDLG +#define _INC_COLORDLG + +#define DLG_COLOR 10 + +#define COLOR_HUESCROLL 700 /* color dialog */ +#define COLOR_SATSCROLL 701 +#define COLOR_LUMSCROLL 702 +#define COLOR_HUE 703 +#define COLOR_SAT 704 +#define COLOR_LUM 705 +#define COLOR_RED 706 +#define COLOR_GREEN 707 +#define COLOR_BLUE 708 +#define COLOR_CURRENT 709 +#define COLOR_RAINBOW 710 +#define COLOR_SAVE 711 +#define COLOR_ADD 712 +#define COLOR_SOLID 713 +#define COLOR_TUNE 714 +#define COLOR_SCHEMES 715 +#define COLOR_ELEMENT 716 +#define COLOR_SAMPLES 717 +#define COLOR_PALETTE 718 +#define COLOR_MIX 719 +#define COLOR_BOX1 720 +#define COLOR_CUSTOM1 721 + +#define COLOR_HUEACCEL 723 +#define COLOR_SATACCEL 724 +#define COLOR_LUMACCEL 725 +#define COLOR_REDACCEL 726 +#define COLOR_GREENACCEL 727 +#define COLOR_BLUEACCEL 728 + +#define COLOR_SOLID_LEFT 730 +#define COLOR_SOLID_RIGHT 731 + +#define NUM_BASIC_COLORS 48 +#define NUM_CUSTOM_COLORS 16 + +#endif /* !_INC_COLORDLG */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComAdmin.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComAdmin.Idl new file mode 100644 index 0000000000000000000000000000000000000000..0dbe861347b8187a3c754db1cb6fd1afc31f01ce --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComAdmin.Idl @@ -0,0 +1,1071 @@ +// comadmin.idl : IDL source for comadmin.dll +// + +// This file will be processed by the MIDL tool to +// produce the type library (comadmin.tlb) and marshalling code. +// +cpp_quote("// ----------------------------------------------------------------------- ") +cpp_quote("// comadmin.h -- COM Administration Programming Interfaces ") +cpp_quote("// ") +cpp_quote("// This file provides the prototypes for the APIs and COM interfaces ") +cpp_quote("// used by Microsoft COM applications. ") +cpp_quote("// ") +cpp_quote("// Copyright (c) 1995-2001 Microsoft Corporation. All Rights Reserved. ") +cpp_quote("// ----------------------------------------------------------------------- ") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#include ") + +cpp_quote("#ifndef DECLSPEC_UUID") +cpp_quote("#if (_MSC_VER >= 1100) && defined (__cplusplus)") +cpp_quote("#define DECLSPEC_UUID(x) __declspec(uuid(x))") +cpp_quote("#else") +cpp_quote("#define DECLSPEC_UUID(x)") +cpp_quote("#endif") +cpp_quote("#endif") + +#include "winerror.h" +import "unknwn.idl"; + + // ICOMAdminCatalog + + [ + object, + uuid(DD662187-DFC2-11d1-A2CF-00805FC79235), + dual, + helpstring("ICOMAdminCatalog Interface"), + pointer_default(unique) + ] + interface ICOMAdminCatalog : IDispatch + { + import "oaidl.idl"; + + [ id(1), helpstring("Gets a collection on the local catalog - without reading any objects from the catalog data store") ] + HRESULT GetCollection( + [in] BSTR bstrCollName, + [out, retval] IDispatch ** ppCatalogCollection); + + [ id(2), helpstring("Connect to a catalog server and get the Root Collection") ] + HRESULT Connect( + [in] BSTR bstrCatalogServerName, + [out, retval] IDispatch ** ppCatalogCollection); + + [ propget, id(3), helpstring("Gets the major version number of the COM Admin objects") ] + HRESULT MajorVersion([out, retval] long * plMajorVersion); + + [ propget, id(4), helpstring("Gets the minor version number of the COM Admin objects") ] + HRESULT MinorVersion([out, retval] long * plMinorVersion); + + [ id(5), helpstring("---")] + HRESULT GetCollectionByQuery( + [in] BSTR bstrCollName, + [in] SAFEARRAY(VARIANT) * ppsaVarQuery, + [out, retval] IDispatch ** ppCatalogCollection); + + [ id(6), helpstring("Imports a component that is already registered as an InProc server") ] + HRESULT ImportComponent([in] BSTR bstrApplIDOrName, [in] BSTR bstrCLSIDOrProgID); + + [ id(7), helpstring("Installs a component into an application") ] + HRESULT InstallComponent( + [in] BSTR bstrApplIDOrName, + [in] BSTR bstrDLL, + [in] BSTR bstrTLB, + [in] BSTR bstrPSDLL); + + [ id(8), helpstring("Initiates shutdown of an application server process") ] + HRESULT ShutdownApplication([in] BSTR bstrApplIDOrName); + + [ id(9), helpstring("Exports an application or client application to be installed on a different machine") ] + HRESULT ExportApplication( + [in] BSTR bstrApplIDOrName, + [in] BSTR bstrApplicationFile, + [in] long lOptions); + +// Turn off warning about how optional params should be of type VARIANT. This interface +// has shipped so we can't fix it correctly, unfortunately. +midl_pragma warning( disable : 2400) + + [ id(10), helpstring("Imports an application from a file") ] + HRESULT InstallApplication( + [in] BSTR bstrApplicationFile, + [in, optional] BSTR bstrDestinationDirectory, + [in, optional] long lOptions, + [in, optional] BSTR bstrUserId, + [in, optional] BSTR bstrPassword, + [in, optional] BSTR bstrRSN); + +// Turn default behavior back on for this warning: +midl_pragma warning( default : 2400) + + [ id(11), helpstring("Stops the router service") ] + HRESULT StopRouter(); + + [ id(12), helpstring("Refreshes the data being used by the router service") ] + HRESULT RefreshRouter(); + + [ id(13), helpstring("Starts the router service") ] + HRESULT StartRouter(); + + [ id(14), helpstring("Reserved method 1") ] + HRESULT Reserved1(); + + [ id(15), helpstring("Reserved method 2") ] + HRESULT Reserved2(); + + [ id(16), helpstring("Installs components into an application from multiple files") ] + HRESULT InstallMultipleComponents( + [in] BSTR bstrApplIDOrName, + [in] SAFEARRAY(VARIANT) * ppsaVarFileNames, + [in] SAFEARRAY(VARIANT) * ppsaVarCLSIDs); + + [ id(17), helpstring("Returns information about components found in the files") ] + HRESULT GetMultipleComponentsInfo( + [in] BSTR bstrApplIdOrName, + [in] SAFEARRAY(VARIANT) * ppsaVarFileNames, + [out] SAFEARRAY(VARIANT) * ppsaVarCLSIDs, + [out] SAFEARRAY(VARIANT) * ppsaVarClassNames, + [out] SAFEARRAY(VARIANT) * ppsaVarFileFlags, + [out] SAFEARRAY(VARIANT) * ppsaVarComponentFlags); + + [ id(18), helpstring("Refreshes all component registration information") ] + HRESULT RefreshComponents(); + + [ id(19), helpstring("Registration database backup") ] + HRESULT BackupREGDB([in] BSTR bstrBackupFilePath); + + [ id(20), helpstring("Registration database restore (must reboot after)") ] + HRESULT RestoreREGDB([in] BSTR bstrBackupFilePath); + + [ id(21), helpstring("Returns information about an application that is about to be installed") ] + HRESULT QueryApplicationFile( + [in] BSTR bstrApplicationFile, + [out] BSTR * pbstrApplicationName, + [out] BSTR * pbstrApplicationDescription, + [out] VARIANT_BOOL * pbHasUsers, + [out] VARIANT_BOOL * pbIsProxy, + [out] SAFEARRAY(VARIANT) * ppsaVarFileNames); + + [ id(22), helpstring("Launches application server process") ] + HRESULT StartApplication([in] BSTR bstrApplIdOrName); + + [ id(23), helpstring("Checks the status of a COM+ related service") ] + HRESULT ServiceCheck([in] long lService, [out, retval] long * plStatus); + + [ id(24), helpstring("Installs multiple event classes into an application") ] + HRESULT InstallMultipleEventClasses( + [in] BSTR bstrApplIdOrName, + [in] SAFEARRAY(VARIANT) * ppsaVarFileNames, + [in] SAFEARRAY(VARIANT) * ppsaVarCLSIDS); + + [ id(25), helpstring("Installs a event class into an application (if one is provided)") ] + HRESULT InstallEventClass( + [in] BSTR bstrApplIdOrName, + [in] BSTR bstrDLL, + [in] BSTR bstrTLB, + [in] BSTR bstrPSDLL); + + [ id(26), helpstring("Gets a list of event classes that implement a specified interface") ] + HRESULT GetEventClassesForIID( + [in] BSTR bstrIID, + [out] SAFEARRAY(VARIANT) * ppsaVarCLSIDs, + [out] SAFEARRAY(VARIANT) * ppsaVarProgIDs, + [out] SAFEARRAY(VARIANT) * ppsaVarDescriptions); + } + + typedef[ helpstring("InUse values for IsSafeToDelete") ] + enum COMAdminInUse + { + COMAdminNotInUse = 0x00000000, + COMAdminInUseByCatalog = 0x00000001, + COMAdminInUseByRegistryUnknown = 0x00000002, + COMAdminInUseByRegistryProxyStub = 0x00000003, + COMAdminInUseByRegistryTypeLib = 0x00000004, + COMAdminInUseByRegistryClsid = 0x00000005, + + } COMAdminInUse; + + // ICOMAdminCatalog2 -- new in Windows XP (Whistler) + + [ + object, + uuid(790C6E0B-9194-4cc9-9426-A48A63185696), + //uuid(c6a4e9ef-432e-4f32-9107-71d2b6fd2c33), + dual, + helpstring("ICOMAdminCatalog2 Interface"), + pointer_default(unique) + ] + interface ICOMAdminCatalog2 : ICOMAdminCatalog + { + [ id(27), helpstring("Get a catalog collection") ] + HRESULT GetCollectionByQuery2( + [in] BSTR bstrCollectionName, + [in] VARIANT * pVarQueryStrings, // VT_BSTR or array of VT_BSTRs + [out, retval] IDispatch ** ppCatalogCollection); + + [ id(28), helpstring("Get an Application Instance ID from a Process ID") ] + HRESULT GetApplicationInstanceIDFromProcessID( + [in] long lProcessID, + [out, retval] BSTR * pbstrApplicationInstanceID); + + // Shutdown, Pause, Resume, Recycle, IsApplicationInstancePaused accept + // a VT_BSTR of ApplicationInstanceID, or VT_ARRAY of VT_VARIANT BSTRs + // of ApplicationInstanceIDs, or VT_DISPATCH/VT_UNKNOWN of an + // ICatalogObject or an ICatalogCollection collection + + [ id(29), helpstring("Initiate shutdown of the specified application server processes") ] + HRESULT ShutdownApplicationInstances( + [in] VARIANT * pVarApplicationInstanceID); // single VT_BSTR or an array + + [ id(30), helpstring("Pause one or more application server processes") ] + HRESULT PauseApplicationInstances( + [in] VARIANT * pVarApplicationInstanceID); // single VT_BSTR or an array + + [ id(31), helpstring("Resume one or more application server processes") ] + HRESULT ResumeApplicationInstances( + [in] VARIANT * pVarApplicationInstanceID); // single VT_BSTR or an array + + [ id(32), helpstring("Recycle one or more application server processes") ] + HRESULT RecycleApplicationInstances( + [in] VARIANT * pVarApplicationInstanceID, // single VT_BSTR or an array + [in] long lReasonCode); + + [ id(33), helpstring("Return VARIANT_TRUE if ANY application instances are paused") ] + HRESULT AreApplicationInstancesPaused( + [in] VARIANT * pVarApplicationInstanceID, // single VT_BSTR or an array + [out, retval] VARIANT_BOOL * pVarBoolPaused); // true iff ANY are paused + + [ id(34), helpstring("Dump an image of this application process to disk") ] + HRESULT DumpApplicationInstance( + [in] BSTR bstrApplicationInstanceID, // one process only + [in] BSTR bstrDirectory, + [in] long lMaxImages, + [out, retval] BSTR * pbstrDumpFile); + + [ propget, id(35), helpstring("Is the application process dump feature supported on this server")] + HRESULT IsApplicationInstanceDumpSupported([out, retval] VARIANT_BOOL * pVarBoolDumpSupported); + + [ id(36), helpstring("Configure an application to run as an NT service") ] + HRESULT CreateServiceForApplication( + [in] BSTR bstrApplicationIDOrName, + [in] BSTR bstrServiceName, + [in] BSTR bstrStartType, + [in] BSTR bstrErrorControl, + [in] BSTR bstrDependencies, + [in] BSTR bstrRunAs, + [in] BSTR bstrPassword, + [in] VARIANT_BOOL bDesktopOk); + + [ id(37), helpstring("Un-configure an application running as an NT service") ] + HRESULT DeleteServiceForApplication([in] BSTR bstrApplicationIDOrName); + + [ id(38), helpstring("Return the Partition ID for the specified Application") ] + HRESULT GetPartitionID( + [in] BSTR bstrApplicationIDOrName, + [out, retval] BSTR * pbstrPartitionID); + + [ id(39), helpstring("Return the Partition name for the specified Application") ] + HRESULT GetPartitionName( + [in] BSTR bstrApplicationIDOrName, + [out, retval] BSTR * pbstrPartitionName); + + [ propput, id(40), helpstring("Set the current destination Partition") ] + HRESULT CurrentPartition([in] BSTR bstrPartitionIDOrName); + + [ propget, id(41), helpstring("Get the current Partition ID") ] + HRESULT CurrentPartitionID([out, retval] BSTR * pbstrPartitionID); + + [ propget, id(42), helpstring("Get the current Partition name") ] + HRESULT CurrentPartitionName([out, retval] BSTR * pbstrPartitionName ); + + [ propget, id(43), helpstring("Get the Global Partition ID") ] + HRESULT GlobalPartitionID([out,retval] BSTR * pbstrGlobalPartitionID); + + [ id(44), helpstring("Flush the user-to-default Partition cache") ] + HRESULT FlushPartitionCache(); + + [ id(45), helpstring("Copy one or more Applications from Partition to Partition") ] + HRESULT CopyApplications( + [in] BSTR bstrSourcePartitionIDOrName, + [in] VARIANT * pVarApplicationID, // not application names, just GUIDs + [in] BSTR bstrDestinationPartitionIDOrName); + + [ id(46), helpstring("Copy one or more components from one Application to an Application in a different Partition") ] + HRESULT CopyComponents( + [in] BSTR bstrSourceApplicationIDOrName, + [in] VARIANT * pVarCLSIDOrProgID, // VT_BSTR or array of VT_BSTR + [in] BSTR bstrDestinationApplicationIDOrName); + + [ id(47), helpstring("Move one or more components from an Application to another Application in a different Partition") ] + HRESULT MoveComponents( + [in] BSTR bstrSourceApplicationIDOrName, + [in] VARIANT * pVarCLSIDOrProgID, // VT_BSTR or array of VT_BSTR + [in] BSTR bstrDestinationApplicationIDOrName); + + [ id(48), helpstring("Create an alias for component configuration while retaining the implementation") ] + HRESULT AliasComponent( + [in] BSTR bstrSrcApplicationIDOrName, + [in] BSTR bstrCLSIDOrProgID, + [in] BSTR bstrDestApplicationIDOrName, // NULL for same as src + [in] BSTR bstrNewProgId, + [in] BSTR bstrNewClsid); // may be a NULL string + + [ id(49), helpstring("Checks whether a DLL is in use by catalog or registry") ] + HRESULT IsSafeToDelete( + [in] BSTR bstrDllName, + [out, retval] COMAdminInUse * pCOMAdminInUse); + + [ id(50), helpstring("Import the specified classes as non-configured components") ] + HRESULT ImportUnconfiguredComponents( + [in] BSTR bstrApplicationIDOrName, + [in] VARIANT * pVarCLSIDOrProgID, // VT_BSTR or an array of VT_BSTR + [in, optional] VARIANT * pVarComponentType); // 1=32-bit, 2-64-bit, omitted = natural bitness for platform + + [ id(51), helpstring("Promote the specified classes to become configured COM+ components") ] + HRESULT PromoteUnconfiguredComponents( + [in] BSTR bstrApplicationIDOrName, + [in] VARIANT * pVarCLSIDOrProgID, // VT_BSTR or an array of VT_BSTR + [in, optional] VARIANT * pVarComponentType); // 1=32-bit, 2-64-bit, omitted = natural bitness for platform + + [ id(52), helpstring("Import one or more components that are already registered as an inproc server in the 32 or 64 bit registry") ] + HRESULT ImportComponents( + [in] BSTR bstrApplicationIDOrName, + [in] VARIANT * pVarCLSIDOrProgID, // VT_BSTR or an array of VT_BSTR + [in, optional] VARIANT * pVarComponentType); // 1=32-bit, 2=64-bit, omitted = natural bitness for platform + + [ propget, id(53), helpstring("Determine if the target catalog server is 64 bit") ] + HRESULT Is64BitCatalogServer([out, retval] VARIANT_BOOL * pbIs64Bit); + + [ id(54), helpstring("Export a Partition to be installed on another machine") ] + HRESULT ExportPartition( + [in] BSTR bstrPartitionIDOrName, + [in] BSTR bstrPartitionFileName, + [in] long lOptions); + + [ id(55), helpstring("Import a Partition from a file") ] + HRESULT InstallPartition( + [in] BSTR bstrFileName, + [in] BSTR bstrDestDirectory, + [in] long lOptions, + [in] BSTR bstrUserID, + [in] BSTR bstrPassword, + [in] BSTR bstrRSN); + + [ id(56), helpstring("Return information about an application that is about to be installed") ] + HRESULT QueryApplicationFile2( + [in] BSTR bstrApplicationFile, + [out, retval] IDispatch **ppFilesForImport); + + [ id(57), helpstring("Return the number of Partitions in which a specified component is installed")] + HRESULT GetComponentVersionCount( + [in] BSTR bstrCLSIDOrProgID, + [out, retval] long *plVersionCount); + } + + + // ICatalogObject + + [ + object, + uuid(6eb22871-8a19-11d0-81b6-00a0c9231c29), + dual, + helpstring("ICatalogObject Interface"), + pointer_default(unique) + ] + interface ICatalogObject : IDispatch + { + import "oaidl.idl"; + + [ propget, id(1), helpstring("Gets a property value") ] + HRESULT Value([in] BSTR bstrPropName, [out, retval] VARIANT * pvarRetVal); + + [ propput, id(1), helpstring("Sets a property value") ] + HRESULT Value([in] BSTR bstrPropName, [in] VARIANT val); + + [ propget, id(2), helpstring("Gets the value of the key property") ] + HRESULT Key([out, retval] VARIANT * pvarRetVal); + + [ propget, id(3), helpstring("Gets the name of the object") ] + HRESULT Name([out, retval] VARIANT * pvarRetVal); + + [ id(4), helpstring("True if the property cannot be set") ] + HRESULT IsPropertyReadOnly([in] BSTR bstrPropName, [out, retval] VARIANT_BOOL * pbRetVal); + + [ propget, id(5), helpstring("True if all properties were successfully read from the catalog data store") ] + HRESULT Valid([out, retval] VARIANT_BOOL * pbRetVal); + + [ id(6), helpstring("True if the property cannot be read") ] + HRESULT IsPropertyWriteOnly([in] BSTR bstrPropName, [out, retval] VARIANT_BOOL * pbRetVal); + } + + // ICatalogCollection + + [ + object, + uuid(6eb22872-8a19-11d0-81b6-00a0c9231c29), + dual, + helpstring("ICatalogCollection Interface"), + pointer_default(unique) + ] + interface ICatalogCollection : IDispatch + { + import "oaidl.idl"; + [ propget, restricted, id(DISPID_NEWENUM) ] // Must be propget. + HRESULT _NewEnum([out, retval] IUnknown ** ppEnumVariant); + + [ propget, id(1), helpstring("Returns an object by index") ] + HRESULT Item( [in] long lIndex, [out, retval] IDispatch ** ppCatalogObject); + + [ propget, helpstring("Returns number of objects in the collection") ] + HRESULT Count([out, retval] long* plObjectCount); + + [ helpstring("Removes an item, given the index") ] + HRESULT Remove([in] long lIndex); + + [ helpstring("Adds an object to the collection - returns the new object") ] + HRESULT Add([out, retval] IDispatch ** ppCatalogObject); + + [ id(2), helpstring("Reads all the collection objects from the catalog data store") ] + HRESULT Populate(); + + [ id(3), helpstring("Saves changes made to the collection into the catalog data store") ] + HRESULT SaveChanges([out, retval] long *pcChanges); + + [ id(4), helpstring("Gets a collection related to a specific object - without reading any objects from the catalog data store") ] + HRESULT GetCollection( + [in] BSTR bstrCollName, + [in] VARIANT varObjectKey, + [out, retval] IDispatch ** ppCatalogCollection); + + [ propget, id(6), helpstring("Gets the name of the collection") ] + HRESULT Name([out, retval] VARIANT * pVarNamel); + + [ propget, id(7), helpstring("Returns VARIANT_TRUE if Add is enabled") ] + HRESULT AddEnabled([out, retval] VARIANT_BOOL * pVarBool); + + [ propget, id(8), helpstring("Returns VARIANT_TRUE if Remove is enabled") ] + HRESULT RemoveEnabled([out, retval] VARIANT_BOOL * pVarBool); + + [ id(9), helpstring("Gets the utility interface") ] + HRESULT GetUtilInterface([out, retval] IDispatch ** ppIDispatch); + + [ propget, id(10), helpstring("Gets the major version number of the Catalog data store") ] + HRESULT DataStoreMajorVersion([out, retval] long * plMajorVersion); + + [ propget, id(11), helpstring("Gets the minor version number of the Catalog data store") ] + HRESULT DataStoreMinorVersion([out, retval] long * plMinorVersionl); + + [ id(12), helpstring("Reads selected objects from the catalog data store") ] + HRESULT PopulateByKey([in] SAFEARRAY(VARIANT) psaKeys); + + [ id(13), helpstring("Reserved for future use") ] + HRESULT PopulateByQuery([in] BSTR bstrQueryString, [in] long lQueryType); + } + + +[ + uuid(F618C513-DFB8-11d1-A2CF-00805FC79235), + version(1.0), + helpstring("COM + 1.0 Admin Type Library") +] +library COMAdmin +{ + importlib("stdole32.tlb"); + + [ + uuid(F618C514-DFB8-11d1-A2CF-00805FC79235), + helpstring("COM Admin Class") + ] + coclass COMAdminCatalog + { + [default] interface ICOMAdminCatalog2; + } + + + [ + noncreatable, + uuid(F618C515-DFB8-11d1-A2CF-00805FC79235), + helpstring("COM Admin Catalog Object Class") + ] + coclass COMAdminCatalogObject + { + [default] interface ICatalogObject; + } + + + [ + noncreatable, + uuid(F618C516-DFB8-11d1-A2CF-00805FC79235), + helpstring("COM Admin Catalog Collection Class") + ] + coclass COMAdminCatalogCollection + { + [default] interface ICatalogCollection; + } + + + typedef[helpstring("ComponentType values for ImportComponentAsLegacy")] + enum COMAdminComponentType + { + COMAdmin32BitComponent = 0x00000001, + COMAdmin64BitComponent = 0x00000002 + } COMAdminComponentType; + + typedef[helpstring("Application install options - these options can be or'ed together")] + enum COMAdminApplicationInstallOptions + { + COMAdminInstallNoUsers = 0, //Default + COMAdminInstallUsers = 1, + COMAdminInstallForceOverwriteOfFiles = 2 + } COMAdminApplicationInstallOptions; + + typedef[helpstring("Application export options - these options can be or'ed together")] + enum COMAdminApplicationExportOptions + { + COMAdminExportNoUsers = 0, //Default + COMAdminExportUsers = 1, + COMAdminExportApplicationProxy = 2, + COMAdminExportForceOverwriteOfFiles = 4, + COMAdminExportIn10Format = 16 + } COMAdminApplicationExportOptions; + + typedef[helpstring("Threading Model Enumerations")] + enum COMAdminThreadingModels + { + COMAdminThreadingModelApartment = 0, + COMAdminThreadingModelFree = 1, + COMAdminThreadingModelMain = 2, + COMAdminThreadingModelBoth = 3, + COMAdminThreadingModelNeutral = 4, + COMAdminThreadingModelNotSpecified = 5 + } COMAdminThreadingModels; + + typedef[helpstring("Transaction Settings Enumerations")] + enum COMAdminTransactionOptions + { + COMAdminTransactionIgnored = 0, + COMAdminTransactionNone = 1, + COMAdminTransactionSupported = 2, + COMAdminTransactionRequired = 3, + COMAdminTransactionRequiresNew = 4, + } COMAdminTransactionOptions; + + typedef[helpstring("Transaction Isolation Level Enumerations")] + // If these values are changed, also change TxIsolationLevelOption in CatQCS.idl. + enum COMAdminTxIsolationLevelOptions + { + COMAdminTxIsolationLevelAny = 0, + COMAdminTxIsolationLevelReadUnCommitted, // translates to ISOLATIONLEVEL_READUNCOMMITTED + COMAdminTxIsolationLevelReadCommitted, // translates to ISOLATIONLEVEL_READCOMMITTED + COMAdminTxIsolationLevelRepeatableRead, // translates to ISOLATIONLEVEL_REPEATABLEREAD + COMAdminTxIsolationLevelSerializable, // translates to ISOLATIONLEVEL_SERIALIZABLE + } COMAdminTxIsolationLevelOptions; + + typedef[helpstring("Synchronization Settings Enumerations")] + enum COMAdminSynchronizationOptions + { + COMAdminSynchronizationIgnored = 0, + COMAdminSynchronizationNone = 1, + COMAdminSynchronizationSupported = 2, + COMAdminSynchronizationRequired = 3, + COMAdminSynchronizationRequiresNew = 4 + } COMAdminSynchronizationOptions; + + typedef[helpstring("Activation Settings Enumerations")] + enum COMAdminActivationOptions + { + COMAdminActivationInproc = 0, + COMAdminActivationLocal = 1 + } COMAdminActivationOptions; + + typedef[helpstring("Access Level Settings Enumerations")] + enum COMAdminAccessChecksLevelOptions + { + COMAdminAccessChecksApplicationLevel = 0, + COMAdminAccessChecksApplicationComponentLevel = 1 + } COMAdminAccessChecksLevelOptions; + + typedef[helpstring("Authentication Level Settings Enumerations")] + enum COMAdminAuthenticationLevelOptions + { + COMAdminAuthenticationDefault = 0, + COMAdminAuthenticationNone = 1, + COMAdminAuthenticationConnect = 2, + COMAdminAuthenticationCall = 3, + COMAdminAuthenticationPacket = 4, + COMAdminAuthenticationIntegrity = 5, + COMAdminAuthenticationPrivacy = 6 + } COMAdminAuthenticationLevelOptions; + + typedef[helpstring("Impersonation Level Settings Enumerations")] + enum COMAdminImpersonationLevelOptions + { + COMAdminImpersonationAnonymous = 1, + COMAdminImpersonationIdentify = 2, + COMAdminImpersonationImpersonate = 3, + COMAdminImpersonationDelegate = 4 + } COMAdminImpersonationLevelOptions; + + typedef[helpstring("Authentication Capabilities Settings Enumerations")] + enum COMAdminAuthenticationCapabilitiesOptions + { + COMAdminAuthenticationCapabilitiesNone = 0x0, + COMAdminAuthenticationCapabilitiesSecureReference = 0x2, + COMAdminAuthenticationCapabilitiesStaticCloaking = 0x20, + COMAdminAuthenticationCapabilitiesDynamicCloaking = 0x40 + } COMAdminAuthenticationCapabilitiesOptions; + + typedef[helpstring("Operating System Enumerations")] + enum COMAdminOS + { + COMAdminOSNotInitialized = 0, + COMAdminOSWindows3_1 = 1, + COMAdminOSWindows9x = 2, + COMAdminOSWindows2000 = 3, + COMAdminOSWindows2000AdvancedServer = 4, + COMAdminOSWindows2000Unknown = 5, + COMAdminOSUnknown = 6, + COMAdminOSWindowsXPPersonal = 11, + COMAdminOSWindowsXPProfessional = 12, + COMAdminOSWindowsNETStandardServer = 13, + COMAdminOSWindowsNETEnterpriseServer = 14, + COMAdminOSWindowsNETDatacenterServer = 15, + COMAdminOSWindowsNETWebServer = 16, + COMAdminOSWindowsLonghornPersonal = 17, + COMAdminOSWindowsLonghornProfessional = 18, + COMAdminOSWindowsLonghornStandardServer = 19, + COMAdminOSWindowsLonghornEnterpriseServer = 20, + COMAdminOSWindowsLonghornDatacenterServer = 21, + COMAdminOSWindowsLonghornWebServer = 22, + COMAdminOSWindows7Personal = 23, + COMAdminOSWindows7Professional = 24, + COMAdminOSWindows7StandardServer = 25, + COMAdminOSWindows7EnterpriseServer = 26, + COMAdminOSWindows7DatacenterServer = 27, + COMAdminOSWindows7WebServer = 28, + COMAdminOSWindows8Personal = 29, + COMAdminOSWindows8Professional = 30, + COMAdminOSWindows8StandardServer = 31, + COMAdminOSWindows8EnterpriseServer = 32, + COMAdminOSWindows8DatacenterServer = 33, + COMAdminOSWindows8WebServer = 34, + COMAdminOSWindowsBluePersonal = 35, + COMAdminOSWindowsBlueProfessional = 36, + COMAdminOSWindowsBlueStandardServer = 37, + COMAdminOSWindowsBlueEnterpriseServer = 38, + COMAdminOSWindowsBlueDatacenterServer = 39, + COMAdminOSWindowsBlueWebServer = 40 + + } COMAdminOS; + + typedef[helpstring("Service Enumerations")] + enum COMAdminServiceOptions + { + COMAdminServiceLoadBalanceRouter = 1 + } COMAdminServiceOptions; + + typedef[helpstring("Service Status Enumerations")] + enum COMAdminServiceStatusOptions + { + COMAdminServiceStopped = 0, + COMAdminServiceStartPending, + COMAdminServiceStopPending, + COMAdminServiceRunning, + COMAdminServiceContinuePending, + COMAdminServicePausePending, + COMAdminServicePaused, + COMAdminServiceUnknownState, + } COMAdminServiceStatusOptions; + + typedef[helpstring("Queued Components Message Authenticate Enumeration")] + enum COMAdminQCMessageAuthenticateOptions { + + [helpstring("Require authenticated messages if available from MSMQ and application Authentication Level For Calls is other than NONE")] + COMAdminQCMessageAuthenticateSecureApps = 0, + + [helpstring("Do not require MSMQ message authentication")] + COMAdminQCMessageAuthenticateOff = 1, + + [helpstring("Require authenticated messages")] + COMAdminQCMessageAuthenticateOn = 2 + } COMAdminQCMessageAuthenticateOptions; + + typedef[helpstring("File Flags")] + enum COMAdminFileFlags + { + [helpstring("File is Loadable")] + COMAdminFileFlagLoadable = 0x00000001, + + [helpstring("File contains COM Objects")] + COMAdminFileFlagCOM = 0x00000002, + + [helpstring("File contains a proxy stub")] + COMAdminFileFlagContainsPS = 0x00000004, + + [helpstring("File contains a component")] + COMAdminFileFlagContainsComp = 0x00000008, + + [helpstring("File contains a typelibrary")] + COMAdminFileFlagContainsTLB = 0x00000010, + + [helpstring("File contains self registration code")] + COMAdminFileFlagSelfReg = 0x00000020, + + [helpstring("File contains self un-registration code")] + COMAdminFileFlagSelfUnReg = 0x00000040, + + [helpstring("File is unloadable")] + COMAdminFileFlagUnloadableDLL = 0x00000080, + + [helpstring("File does not exist")] + COMAdminFileFlagDoesNotExist = 0x00000100, + + [helpstring("File is already installed")] + COMAdminFileFlagAlreadyInstalled = 0x00000200, + + [helpstring("File contains a bad typelibrary")] + COMAdminFileFlagBadTLB = 0x00000400, + + [helpstring("GetClassObj call failed on file")] + COMAdminFileFlagGetClassObjFailed = 0x00000800, + + [helpstring("Class is not available")] + COMAdminFileFlagClassNotAvailable = 0x00001000, + + [helpstring("File uses a registrar to register")] + COMAdminFileFlagRegistrar = 0x00002000, + + [helpstring("File does not use a registrar to register")] + COMAdminFileFlagNoRegistrar = 0x00004000, + + [helpstring("Regsvr call on file failed")] + COMAdminFileFlagDLLRegsvrFailed = 0x00008000, + + [helpstring("Register typelibrary call on file failed")] + COMAdminFileFlagRegTLBFailed = 0x00010000, + + [helpstring("Registrar failed to register file")] + COMAdminFileFlagRegistrarFailed = 0x00020000, + + [helpstring("Generic file error ocurred")] + COMAdminFileFlagError = 0x00040000 + } COMAdminFileFlags; + + typedef[helpstring("Component Flags")] + enum COMAdminComponentFlags + { + [helpstring("Component type information not found")] + COMAdminCompFlagTypeInfoFound = 0x00000001, + + [helpstring("COM Plus Properties Found")] + COMAdminCompFlagCOMPlusPropertiesFound = 0x00000002, + + [helpstring("Proxy Found")] + COMAdminCompFlagProxyFound = 0x00000004, + + [helpstring("Interfaces Found")] + COMAdminCompFlagInterfacesFound = 0x00000008, + + [helpstring("Component is already installed")] + COMAdminCompFlagAlreadyInstalled = 0x00000010, + + [helpstring("Component is not in application")] + COMAdminCompFlagNotInApplication = 0x00000020 + } COMAdminComponentFlags; + + const wchar_t *COMAdminCollectionRoot = "Root"; + const wchar_t *COMAdminCollectionApplications = "Applications"; + const wchar_t *COMAdminCollectionComponents = "Components"; + const wchar_t *COMAdminCollectionComputerList = "ComputerList"; + const wchar_t *COMAdminCollectionApplicationCluster = "ApplicationCluster"; + const wchar_t *COMAdminCollectionLocalComputer = "LocalComputer"; + const wchar_t *COMAdminCollectionInprocServers = "InprocServers"; + const wchar_t *COMAdminCollectionRelatedCollectionInfo = "RelatedCollectionInfo"; + const wchar_t *COMAdminCollectionPropertyInfo = "PropertyInfo"; + const wchar_t *COMAdminCollectionRoles = "Roles"; + const wchar_t *COMAdminCollectionErrorInfo = "ErrorInfo"; + const wchar_t *COMAdminCollectionInterfacesForComponent = "InterfacesForComponent"; + const wchar_t *COMAdminCollectionRolesForComponent = "RolesForComponent"; + const wchar_t *COMAdminCollectionMethodsForInterface = "MethodsForInterface"; + const wchar_t *COMAdminCollectionRolesForInterface = "RolesForInterface"; + const wchar_t *COMAdminCollectionRolesForMethod = "RolesForMethod"; + const wchar_t *COMAdminCollectionUsersInRole = "UsersInRole"; + const wchar_t *COMAdminCollectionDCOMProtocols = "DCOMProtocols"; + const wchar_t *COMAdminCollectionPartitions = "Partitions"; + + // VB style error codes + + typedef[helpstring("Error codes (HRESULTS)")] + enum COMAdminErrorCodes + { + [helpstring("Errors occurred accessing one or more objects - the ErrorInfo collection may have more detail")] + COMAdminErrObjectErrors = COMADMIN_E_OBJECTERRORS, + + [helpstring("One or more of the object's properties are missing or invalid")] + COMAdminErrObjectInvalid = COMADMIN_E_OBJECTINVALID, + + [helpstring("The object was not found in the catalog")] + COMAdminErrKeyMissing = COMADMIN_E_KEYMISSING, + + [helpstring("The object is already registered")] + COMAdminErrAlreadyInstalled = COMADMIN_E_ALREADYINSTALLED, + + [helpstring("Error occurred writing to the application file")] + COMAdminErrAppFileWriteFail = COMADMIN_E_APP_FILE_WRITEFAIL, + + [helpstring("Error occurred reading the application file")] + COMAdminErrAppFileReadFail = COMADMIN_E_APP_FILE_READFAIL, + + [helpstring("Invalid version number in application file")] + COMAdminErrAppFileVersion = COMADMIN_E_APP_FILE_VERSION, + + [helpstring("The file path is invalid")] + COMAdminErrBadPath = COMADMIN_E_BADPATH, + + [helpstring("The application is already installed")] + COMAdminErrApplicationExists = COMADMIN_E_APPLICATIONEXISTS, + + [helpstring("The role already exists")] + COMAdminErrRoleExists = COMADMIN_E_ROLEEXISTS, + + [helpstring("An error occurred copying the file")] + COMAdminErrCantCopyFile = COMADMIN_E_CANTCOPYFILE, + + [helpstring("One or more users are not valid")] + COMAdminErrNoUser = COMADMIN_E_NOUSER, + + [helpstring("One or more users in the application file are not valid")] + COMAdminErrInvalidUserids = COMADMIN_E_INVALIDUSERIDS, + + [helpstring("The component's CLSID is missing or corrupt")] + COMAdminErrNoRegistryCLSID = COMADMIN_E_NOREGISTRYCLSID, + + [helpstring("The component's progID is missing or corrupt")] + COMAdminErrBadRegistryProgID = COMADMIN_E_BADREGISTRYPROGID, + + [helpstring("Unable to set required authentication level for update request")] + COMAdminErrAuthenticationLevel = COMADMIN_E_AUTHENTICATIONLEVEL, + + [helpstring("The identity or password set on the application is not valid")] + COMAdminErrUserPasswdNotValid = COMADMIN_E_USERPASSWDNOTVALID, + + [helpstring("Application file CLSIDs or IIDs do not match corresponding DLLs")] + COMAdminErrCLSIDOrIIDMismatch = COMADMIN_E_CLSIDORIIDMISMATCH, + + [helpstring("Interface information is either missing or changed")] + COMAdminErrRemoteInterface = COMADMIN_E_REMOTEINTERFACE, + + [helpstring("DllRegisterServer failed on component install")] + COMAdminErrDllRegisterServer = COMADMIN_E_DLLREGISTERSERVER, + + [helpstring("No server file share available")] + COMAdminErrNoServerShare = COMADMIN_E_NOSERVERSHARE, + + [helpstring("DLL could not be loaded")] + COMAdminErrDllLoadFailed = COMADMIN_E_DLLLOADFAILED, + + [helpstring("The registered TypeLib ID is not valid")] + COMAdminErrBadRegistryLibID = COMADMIN_E_BADREGISTRYLIBID, + + [helpstring("Application install directory not found")] + COMAdminErrAppDirNotFound = COMADMIN_E_APPDIRNOTFOUND, + + [helpstring("Errors occurred while in the component registrar")] + COMAdminErrRegistrarFailed = COMADMIN_E_REGISTRARFAILED, + + [helpstring("The file does not exist")] + COMAdminErrCompFileDoesNotExist = COMADMIN_E_COMPFILE_DOESNOTEXIST, + + [helpstring("The DLL could not be loaded")] + COMAdminErrCompFileLoadDLLFail = COMADMIN_E_COMPFILE_LOADDLLFAIL, + + [helpstring("GetClassObject failed in the DLL")] + COMAdminErrCompFileGetClassObj = COMADMIN_E_COMPFILE_GETCLASSOBJ, + + [helpstring("The DLL does not support the components listed in the TypeLib")] + COMAdminErrCompFileClassNotAvail = COMADMIN_E_COMPFILE_CLASSNOTAVAIL, + + [helpstring("The TypeLib could not be loaded")] + COMAdminErrCompFileBadTLB = COMADMIN_E_COMPFILE_BADTLB, + + [helpstring("The file does not contain components or component information")] + COMAdminErrCompFileNotInstallable = COMADMIN_E_COMPFILE_NOTINSTALLABLE, + + [helpstring("Changes to this object and its sub-objects have been disabled")] + COMAdminErrNotChangeable = COMADMIN_E_NOTCHANGEABLE, + + [helpstring("The delete function has been disabled for this object")] + COMAdminErrNotDeletable = COMADMIN_E_NOTDELETEABLE, + + [helpstring("The server catalog version is not supported")] + COMAdminErrSession = COMADMIN_E_SESSION, + + [helpstring("The component move was disallowed, because the source or destination application is either a system application or currently locked against changes")] + COMAdminErrCompMoveLocked = COMADMIN_E_COMP_MOVE_LOCKED, + + [helpstring("The component move failed because the destination package no longer exists")] + COMAdminErrCompMoveBadDest = COMADMIN_E_COMP_MOVE_BAD_DEST, + + [helpstring("The system was unable to register the TypeLib")] + COMAdminErrRegisterTLB = COMADMIN_E_REGISTERTLB, + + [helpstring("This operation can not be performed on the system application")] + COMAdminErrSystemApp = COMADMIN_E_SYSTEMAPP, + + [helpstring("The component registrar referenced in this file is not available")] + COMAdminErrCompFileNoRegistrar = COMADMIN_E_COMPFILE_NOREGISTRAR, + + [helpstring("A component in the same DLL is already installed")] + COMAdminErrCoReqCompInstalled = COMADMIN_E_COREQCOMPINSTALLED, + + [helpstring("The service is not installed")] + COMAdminErrServiceNotInstalled = COMADMIN_E_SERVICENOTINSTALLED, + + [helpstring("One or more property settings are either invalid or in conflict with each other")] + COMAdminErrPropertySaveFailed = COMADMIN_E_PROPERTYSAVEFAILED, + + [helpstring("The object you are attempting to add or rename already exists")] + COMAdminErrObjectExists = COMADMIN_E_OBJECTEXISTS, + + [helpstring("The component you are attempting to add or rename already exists")] + COMAdminErrComponentExists = COMADMIN_E_COMPONENTEXISTS, + + [helpstring("The registration file is corrupt")] + COMAdminErrRegFileCorrupt = COMADMIN_E_REGFILE_CORRUPT, + + [helpstring("The property value is too large")] + COMAdminErrPropertyOverflow = COMADMIN_E_PROPERTY_OVERFLOW, + + [helpstring("Object was not found in registry")] + COMAdminErrNotInRegistry = COMADMIN_E_NOTINREGISTRY, + + [helpstring("This object is not poolable")] + COMAdminErrObjectNotPoolable = COMADMIN_E_OBJECTNOTPOOLABLE, + + [helpstring("A CLSID with the same GUID as the new application ID is already installed on this machine")] + COMAdminErrApplidMatchesClsid = COMADMIN_E_APPLID_MATCHES_CLSID, + + [helpstring("A role assigned to a component, interface, or method did not exist in the application")] + COMAdminErrRoleDoesNotExist = COMADMIN_E_ROLE_DOES_NOT_EXIST, + + [helpstring("You must have components in an application in order to start the application.")] + COMAdminErrStartAppNeedsComponents = COMADMIN_E_START_APP_NEEDS_COMPONENTS, + + [helpstring("This operation is not enabled on this platform.")] + COMAdminErrRequiresDifferentPlatform = COMADMIN_E_REQUIRES_DIFFERENT_PLATFORM, + + [helpstring("The queuing service is not installed")] + COMAdminErrQueuingServiceNotAvailable = COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE, + + [helpstring("One of the objects being inserted or updated does not belong to a valid parent collection")] + COMAdminErrObjectParentMissing = COMADMIN_E_OBJECT_PARENT_MISSING, + + [helpstring("One of the objects being updated or worked on does not exist")] + COMAdminErrObjectDoesNotExist = COMADMIN_E_OBJECT_DOES_NOT_EXIST, + + [helpstring("Application Proxy is not exportable")] + COMAdminErrCanNotExportAppProxy = COMADMIN_E_CAN_NOT_EXPORT_APP_PROXY, + + [helpstring("Failed to start application because it is either a library application or an application proxy")] + COMAdminErrCanNotStartApp = COMADMIN_E_CAN_NOT_START_APP, + + [helpstring("System application is not exportable")] + COMAdminErrCanNotExportSystemApp = COMADMIN_E_CAN_NOT_EXPORT_SYS_APP, + + [helpstring("Can not subscribe to this component (the component may have been imported)")] + COMAdminErrCanNotSubscribeToComponent = COMADMIN_E_CANT_SUBSCRIBE_TO_COMPONENT, + + [helpstring("The specified application is not currently running")] + COMAdminErrAppNotRunning = COMADMIN_E_APP_NOT_RUNNING, + + [helpstring("An event class cannot also be a subscriber component")] + COMAdminErrEventClassCannotBeSubscriber = COMADMIN_E_EVENTCLASS_CANT_BE_SUBSCRIBER, + + [helpstring("Library applications and application proxies are incompatible")] + COMAdminErrLibAppProxyIncompatible = COMADMIN_E_LIB_APP_PROXY_INCOMPATIBLE, + + [helpstring("This function is valid for the base partition only")] + COMAdminErrBasePartitionOnly = COMADMIN_E_BASE_PARTITION_ONLY, + + [helpstring("The specified partition name is already in use on this computer")] + COMAdminErrDuplicatePartitionName = COMADMIN_E_CAT_DUPLICATE_PARTITION_NAME, + + [helpstring("The partition cannot be deleted because it is the default partition for one or more users")] + COMAdminErrPartitionInUse = COMADMIN_E_CAT_PARTITION_IN_USE, + + [helpstring("Applications that contain one or more imported components cannot be installed into a partition")] + COMAdminErrImportedComponentsNotAllowed = COMADMIN_E_CAT_IMPORTED_COMPONENTS_NOT_ALLOWED, + + [helpstring("The COM+ registry database has not been initialized")] + COMAdminErrRegdbNotInitialized = COMADMIN_E_REGDB_NOTINITIALIZED, + + [helpstring("The COM+ registry database is not open")] + COMAdminErrRegdbNotOpen = COMADMIN_E_REGDB_NOTOPEN, + + [helpstring("The COM+ registry database detected a system error")] + COMAdminErrRegdbSystemErr = COMADMIN_E_REGDB_SYSTEMERR, + + [helpstring("The COM+ registry database is already running")] + COMAdminErrRegdbAlreadyRunning = COMADMIN_E_REGDB_ALREADYRUNNING, + + [helpstring("This version of the COM+ registry database cannot be migrated")] + COMAdminErrMigVersionNotSupported = COMADMIN_E_MIG_VERSIONNOTSUPPORTED, + + [helpstring("The schema version to be migrated could not be found in the COM+ registry database")] + COMAdminErrMigSchemaNotFound = COMADMIN_E_MIG_SCHEMANOTFOUND, + + [helpstring("There was a type mismatch between binaries")] + COMAdminErrCatBitnessMismatch = COMADMIN_E_CAT_BITNESSMISMATCH, + + [helpstring("A binary of unknown or invalid type was provided")] + COMAdminErrCatUnacceptableBitness = COMADMIN_E_CAT_UNACCEPTABLEBITNESS, + + [helpstring("There was a type mismatch between a binary and an application")] + COMAdminErrCatWrongAppBitnessBitness = COMADMIN_E_CAT_WRONGAPPBITNESS, + + [helpstring("The application cannot be paused or resumed")] + COMAdminErrCatPauseResumeNotSupported = COMADMIN_E_CAT_PAUSE_RESUME_NOT_SUPPORTED, + + [helpstring("The COM+ Catalog Server threw an exception during execution")] + COMAdminErrCatServerFault = COMADMIN_E_CAT_SERVERFAULT, + + [helpstring("Library applications may not be recycled")] + COMAdminErrCantRecycleLibraryApps = COMADMIN_E_CANTRECYCLELIBRARYAPPS, + + [helpstring("Applications running as NT services may not be recycled")] + COMAdminErrCantRecycleServiceApps = COMADMIN_E_CANTRECYCLESERVICEAPPS, + + [helpstring("The process has already been recycled")] + COMAdminErrProcessAlreadyRecycled = COMADMIN_E_PROCESSALREADYRECYCLED, + + [helpstring("A paused process may not be recycled")] + COMAdminErrPausedProcessMayNotBeRecycled = COMADMIN_E_PAUSEDPROCESSMAYNOTBERECYCLED, + + [helpstring("The specified partition does not exist or access to it is denied")] + COMAdminErrInvalidPartition = COMADMIN_E_INVALID_PARTITION, + + [helpstring("Only Application Files (*.MSI files) can be installed into partitions")] + COMAdminErrPartitionMsiOnly = COMADMIN_E_PARTITION_MSI_ONLY, + + [helpstring("You cannot start an application that has been disabled")] + COMAdminErrStartAppDisabled = COMADMIN_E_START_APP_DISABLED, + + [helpstring("A component cannot be moved (or copied) from the System Application, an application proxy or a non-changeable application")] + COMAdminErrCompMoveSource = COMADMIN_E_COMP_MOVE_SOURCE, + + [helpstring("A component cannot be moved (or copied) to the System Application, an application proxy or a non-changeable application")] + COMAdminErrCompMoveDest = COMADMIN_E_COMP_MOVE_DEST, + + [helpstring("A private component cannot be moved (or copied) to a library application or to the base partition")] + COMAdminErrCompMovePrivate = COMADMIN_E_COMP_MOVE_PRIVATE, + + [helpstring("Event Class components cannot be aliased.")] + COMAdminErrCannotCopyEventClass = COMADMIN_E_CANNOT_ALIAS_EVENTCLASS + } COMAdminErrorCodes; +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComAdmin.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComAdmin.h new file mode 100644 index 0000000000000000000000000000000000000000..9ce5836cd9ba1b36cb326a40362bef40309779c7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComAdmin.h @@ -0,0 +1,2395 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __comadmin_h__ +#define __comadmin_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICOMAdminCatalog_FWD_DEFINED__ +#define __ICOMAdminCatalog_FWD_DEFINED__ +typedef interface ICOMAdminCatalog ICOMAdminCatalog; + +#endif /* __ICOMAdminCatalog_FWD_DEFINED__ */ + + +#ifndef __ICOMAdminCatalog2_FWD_DEFINED__ +#define __ICOMAdminCatalog2_FWD_DEFINED__ +typedef interface ICOMAdminCatalog2 ICOMAdminCatalog2; + +#endif /* __ICOMAdminCatalog2_FWD_DEFINED__ */ + + +#ifndef __ICatalogObject_FWD_DEFINED__ +#define __ICatalogObject_FWD_DEFINED__ +typedef interface ICatalogObject ICatalogObject; + +#endif /* __ICatalogObject_FWD_DEFINED__ */ + + +#ifndef __ICatalogCollection_FWD_DEFINED__ +#define __ICatalogCollection_FWD_DEFINED__ +typedef interface ICatalogCollection ICatalogCollection; + +#endif /* __ICatalogCollection_FWD_DEFINED__ */ + + +#ifndef __COMAdminCatalog_FWD_DEFINED__ +#define __COMAdminCatalog_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class COMAdminCatalog COMAdminCatalog; +#else +typedef struct COMAdminCatalog COMAdminCatalog; +#endif /* __cplusplus */ + +#endif /* __COMAdminCatalog_FWD_DEFINED__ */ + + +#ifndef __COMAdminCatalogObject_FWD_DEFINED__ +#define __COMAdminCatalogObject_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class COMAdminCatalogObject COMAdminCatalogObject; +#else +typedef struct COMAdminCatalogObject COMAdminCatalogObject; +#endif /* __cplusplus */ + +#endif /* __COMAdminCatalogObject_FWD_DEFINED__ */ + + +#ifndef __COMAdminCatalogCollection_FWD_DEFINED__ +#define __COMAdminCatalogCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class COMAdminCatalogCollection COMAdminCatalogCollection; +#else +typedef struct COMAdminCatalogCollection COMAdminCatalogCollection; +#endif /* __cplusplus */ + +#endif /* __COMAdminCatalogCollection_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_comadmin_0000_0000 */ +/* [local] */ + +// ----------------------------------------------------------------------- +// comadmin.h -- COM Administration Programming Interfaces +// +// This file provides the prototypes for the APIs and COM interfaces +// used by Microsoft COM applications. +// +// Copyright (c) 1995-2001 Microsoft Corporation. All Rights Reserved. +// ----------------------------------------------------------------------- +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include +#ifndef DECLSPEC_UUID +#if (_MSC_VER >= 1100) && defined (__cplusplus) +#define DECLSPEC_UUID(x) __declspec(uuid(x)) +#else +#define DECLSPEC_UUID(x) +#endif +#endif +#pragma once +#pragma warning(push) +#pragma warning(disable:4668) +#pragma once +#pragma region Input Buffer SAL 1 compatibility macros +#pragma endregion Input Buffer SAL 1 compatibility macros +#pragma once +#pragma once +#pragma warning(pop) + + +extern RPC_IF_HANDLE __MIDL_itf_comadmin_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_comadmin_0000_0000_v0_0_s_ifspec; + +#ifndef __ICOMAdminCatalog_INTERFACE_DEFINED__ +#define __ICOMAdminCatalog_INTERFACE_DEFINED__ + +/* interface ICOMAdminCatalog */ +/* [unique][helpstring][dual][uuid][object] */ + + + + +EXTERN_C const IID IID_ICOMAdminCatalog; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DD662187-DFC2-11d1-A2CF-00805FC79235") + ICOMAdminCatalog : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCollection( + /* [in] */ __RPC__in BSTR bstrCollName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Connect( + /* [in] */ __RPC__in BSTR bstrCatalogServerName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MajorVersion( + /* [retval][out] */ __RPC__out long *plMajorVersion) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinorVersion( + /* [retval][out] */ __RPC__out long *plMinorVersion) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCollectionByQuery( + /* [in] */ __RPC__in BSTR bstrCollName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarQuery, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportComponent( + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__in BSTR bstrCLSIDOrProgID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InstallComponent( + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__in BSTR bstrDLL, + /* [in] */ __RPC__in BSTR bstrTLB, + /* [in] */ __RPC__in BSTR bstrPSDLL) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ShutdownApplication( + /* [in] */ __RPC__in BSTR bstrApplIDOrName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExportApplication( + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [in] */ long lOptions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InstallApplication( + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [optional][in] */ __RPC__in BSTR bstrDestinationDirectory, + /* [optional][in] */ long lOptions, + /* [optional][in] */ __RPC__in BSTR bstrUserId, + /* [optional][in] */ __RPC__in BSTR bstrPassword, + /* [optional][in] */ __RPC__in BSTR bstrRSN) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE StopRouter( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RefreshRouter( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE StartRouter( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Reserved1( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Reserved2( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InstallMultipleComponents( + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarFileNames, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarCLSIDs) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMultipleComponentsInfo( + /* [in] */ __RPC__in BSTR bstrApplIdOrName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarFileNames, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarCLSIDs, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarClassNames, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarFileFlags, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarComponentFlags) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RefreshComponents( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE BackupREGDB( + /* [in] */ __RPC__in BSTR bstrBackupFilePath) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RestoreREGDB( + /* [in] */ __RPC__in BSTR bstrBackupFilePath) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE QueryApplicationFile( + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrApplicationName, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrApplicationDescription, + /* [out] */ __RPC__out VARIANT_BOOL *pbHasUsers, + /* [out] */ __RPC__out VARIANT_BOOL *pbIsProxy, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarFileNames) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE StartApplication( + /* [in] */ __RPC__in BSTR bstrApplIdOrName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ServiceCheck( + /* [in] */ long lService, + /* [retval][out] */ __RPC__out long *plStatus) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InstallMultipleEventClasses( + /* [in] */ __RPC__in BSTR bstrApplIdOrName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarFileNames, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarCLSIDS) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InstallEventClass( + /* [in] */ __RPC__in BSTR bstrApplIdOrName, + /* [in] */ __RPC__in BSTR bstrDLL, + /* [in] */ __RPC__in BSTR bstrTLB, + /* [in] */ __RPC__in BSTR bstrPSDLL) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetEventClassesForIID( + /* [in] */ __RPC__in BSTR bstrIID, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarCLSIDs, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarProgIDs, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarDescriptions) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICOMAdminCatalogVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICOMAdminCatalog * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICOMAdminCatalog * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICOMAdminCatalog * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICOMAdminCatalog * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, GetCollection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCollection )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrCollName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, Connect) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Connect )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrCatalogServerName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, get_MajorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorVersion )( + __RPC__in ICOMAdminCatalog * This, + /* [retval][out] */ __RPC__out long *plMajorVersion); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, get_MinorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorVersion )( + __RPC__in ICOMAdminCatalog * This, + /* [retval][out] */ __RPC__out long *plMinorVersion); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, GetCollectionByQuery) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCollectionByQuery )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrCollName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarQuery, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, ImportComponent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportComponent )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__in BSTR bstrCLSIDOrProgID); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, InstallComponent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallComponent )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__in BSTR bstrDLL, + /* [in] */ __RPC__in BSTR bstrTLB, + /* [in] */ __RPC__in BSTR bstrPSDLL); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, ShutdownApplication) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ShutdownApplication )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplIDOrName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, ExportApplication) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExportApplication )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [in] */ long lOptions); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, InstallApplication) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallApplication )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [optional][in] */ __RPC__in BSTR bstrDestinationDirectory, + /* [optional][in] */ long lOptions, + /* [optional][in] */ __RPC__in BSTR bstrUserId, + /* [optional][in] */ __RPC__in BSTR bstrPassword, + /* [optional][in] */ __RPC__in BSTR bstrRSN); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, StopRouter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StopRouter )( + __RPC__in ICOMAdminCatalog * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, RefreshRouter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RefreshRouter )( + __RPC__in ICOMAdminCatalog * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, StartRouter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StartRouter )( + __RPC__in ICOMAdminCatalog * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, Reserved1) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reserved1 )( + __RPC__in ICOMAdminCatalog * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, Reserved2) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reserved2 )( + __RPC__in ICOMAdminCatalog * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, InstallMultipleComponents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallMultipleComponents )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarFileNames, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarCLSIDs); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, GetMultipleComponentsInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMultipleComponentsInfo )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplIdOrName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarFileNames, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarCLSIDs, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarClassNames, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarFileFlags, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarComponentFlags); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, RefreshComponents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RefreshComponents )( + __RPC__in ICOMAdminCatalog * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, BackupREGDB) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BackupREGDB )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrBackupFilePath); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, RestoreREGDB) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RestoreREGDB )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrBackupFilePath); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, QueryApplicationFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *QueryApplicationFile )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrApplicationName, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrApplicationDescription, + /* [out] */ __RPC__out VARIANT_BOOL *pbHasUsers, + /* [out] */ __RPC__out VARIANT_BOOL *pbIsProxy, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarFileNames); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, StartApplication) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StartApplication )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplIdOrName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, ServiceCheck) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ServiceCheck )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ long lService, + /* [retval][out] */ __RPC__out long *plStatus); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, InstallMultipleEventClasses) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallMultipleEventClasses )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplIdOrName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarFileNames, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarCLSIDS); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, InstallEventClass) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallEventClass )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrApplIdOrName, + /* [in] */ __RPC__in BSTR bstrDLL, + /* [in] */ __RPC__in BSTR bstrTLB, + /* [in] */ __RPC__in BSTR bstrPSDLL); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, GetEventClassesForIID) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetEventClassesForIID )( + __RPC__in ICOMAdminCatalog * This, + /* [in] */ __RPC__in BSTR bstrIID, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarCLSIDs, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarProgIDs, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarDescriptions); + + END_INTERFACE + } ICOMAdminCatalogVtbl; + + interface ICOMAdminCatalog + { + CONST_VTBL struct ICOMAdminCatalogVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICOMAdminCatalog_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICOMAdminCatalog_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICOMAdminCatalog_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICOMAdminCatalog_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICOMAdminCatalog_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICOMAdminCatalog_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICOMAdminCatalog_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICOMAdminCatalog_GetCollection(This,bstrCollName,ppCatalogCollection) \ + ( (This)->lpVtbl -> GetCollection(This,bstrCollName,ppCatalogCollection) ) + +#define ICOMAdminCatalog_Connect(This,bstrCatalogServerName,ppCatalogCollection) \ + ( (This)->lpVtbl -> Connect(This,bstrCatalogServerName,ppCatalogCollection) ) + +#define ICOMAdminCatalog_get_MajorVersion(This,plMajorVersion) \ + ( (This)->lpVtbl -> get_MajorVersion(This,plMajorVersion) ) + +#define ICOMAdminCatalog_get_MinorVersion(This,plMinorVersion) \ + ( (This)->lpVtbl -> get_MinorVersion(This,plMinorVersion) ) + +#define ICOMAdminCatalog_GetCollectionByQuery(This,bstrCollName,ppsaVarQuery,ppCatalogCollection) \ + ( (This)->lpVtbl -> GetCollectionByQuery(This,bstrCollName,ppsaVarQuery,ppCatalogCollection) ) + +#define ICOMAdminCatalog_ImportComponent(This,bstrApplIDOrName,bstrCLSIDOrProgID) \ + ( (This)->lpVtbl -> ImportComponent(This,bstrApplIDOrName,bstrCLSIDOrProgID) ) + +#define ICOMAdminCatalog_InstallComponent(This,bstrApplIDOrName,bstrDLL,bstrTLB,bstrPSDLL) \ + ( (This)->lpVtbl -> InstallComponent(This,bstrApplIDOrName,bstrDLL,bstrTLB,bstrPSDLL) ) + +#define ICOMAdminCatalog_ShutdownApplication(This,bstrApplIDOrName) \ + ( (This)->lpVtbl -> ShutdownApplication(This,bstrApplIDOrName) ) + +#define ICOMAdminCatalog_ExportApplication(This,bstrApplIDOrName,bstrApplicationFile,lOptions) \ + ( (This)->lpVtbl -> ExportApplication(This,bstrApplIDOrName,bstrApplicationFile,lOptions) ) + +#define ICOMAdminCatalog_InstallApplication(This,bstrApplicationFile,bstrDestinationDirectory,lOptions,bstrUserId,bstrPassword,bstrRSN) \ + ( (This)->lpVtbl -> InstallApplication(This,bstrApplicationFile,bstrDestinationDirectory,lOptions,bstrUserId,bstrPassword,bstrRSN) ) + +#define ICOMAdminCatalog_StopRouter(This) \ + ( (This)->lpVtbl -> StopRouter(This) ) + +#define ICOMAdminCatalog_RefreshRouter(This) \ + ( (This)->lpVtbl -> RefreshRouter(This) ) + +#define ICOMAdminCatalog_StartRouter(This) \ + ( (This)->lpVtbl -> StartRouter(This) ) + +#define ICOMAdminCatalog_Reserved1(This) \ + ( (This)->lpVtbl -> Reserved1(This) ) + +#define ICOMAdminCatalog_Reserved2(This) \ + ( (This)->lpVtbl -> Reserved2(This) ) + +#define ICOMAdminCatalog_InstallMultipleComponents(This,bstrApplIDOrName,ppsaVarFileNames,ppsaVarCLSIDs) \ + ( (This)->lpVtbl -> InstallMultipleComponents(This,bstrApplIDOrName,ppsaVarFileNames,ppsaVarCLSIDs) ) + +#define ICOMAdminCatalog_GetMultipleComponentsInfo(This,bstrApplIdOrName,ppsaVarFileNames,ppsaVarCLSIDs,ppsaVarClassNames,ppsaVarFileFlags,ppsaVarComponentFlags) \ + ( (This)->lpVtbl -> GetMultipleComponentsInfo(This,bstrApplIdOrName,ppsaVarFileNames,ppsaVarCLSIDs,ppsaVarClassNames,ppsaVarFileFlags,ppsaVarComponentFlags) ) + +#define ICOMAdminCatalog_RefreshComponents(This) \ + ( (This)->lpVtbl -> RefreshComponents(This) ) + +#define ICOMAdminCatalog_BackupREGDB(This,bstrBackupFilePath) \ + ( (This)->lpVtbl -> BackupREGDB(This,bstrBackupFilePath) ) + +#define ICOMAdminCatalog_RestoreREGDB(This,bstrBackupFilePath) \ + ( (This)->lpVtbl -> RestoreREGDB(This,bstrBackupFilePath) ) + +#define ICOMAdminCatalog_QueryApplicationFile(This,bstrApplicationFile,pbstrApplicationName,pbstrApplicationDescription,pbHasUsers,pbIsProxy,ppsaVarFileNames) \ + ( (This)->lpVtbl -> QueryApplicationFile(This,bstrApplicationFile,pbstrApplicationName,pbstrApplicationDescription,pbHasUsers,pbIsProxy,ppsaVarFileNames) ) + +#define ICOMAdminCatalog_StartApplication(This,bstrApplIdOrName) \ + ( (This)->lpVtbl -> StartApplication(This,bstrApplIdOrName) ) + +#define ICOMAdminCatalog_ServiceCheck(This,lService,plStatus) \ + ( (This)->lpVtbl -> ServiceCheck(This,lService,plStatus) ) + +#define ICOMAdminCatalog_InstallMultipleEventClasses(This,bstrApplIdOrName,ppsaVarFileNames,ppsaVarCLSIDS) \ + ( (This)->lpVtbl -> InstallMultipleEventClasses(This,bstrApplIdOrName,ppsaVarFileNames,ppsaVarCLSIDS) ) + +#define ICOMAdminCatalog_InstallEventClass(This,bstrApplIdOrName,bstrDLL,bstrTLB,bstrPSDLL) \ + ( (This)->lpVtbl -> InstallEventClass(This,bstrApplIdOrName,bstrDLL,bstrTLB,bstrPSDLL) ) + +#define ICOMAdminCatalog_GetEventClassesForIID(This,bstrIID,ppsaVarCLSIDs,ppsaVarProgIDs,ppsaVarDescriptions) \ + ( (This)->lpVtbl -> GetEventClassesForIID(This,bstrIID,ppsaVarCLSIDs,ppsaVarProgIDs,ppsaVarDescriptions) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICOMAdminCatalog_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_comadmin_0000_0001 */ +/* [local] */ + +typedef /* [helpstring] */ +enum COMAdminInUse + { + COMAdminNotInUse = 0, + COMAdminInUseByCatalog = 0x1, + COMAdminInUseByRegistryUnknown = 0x2, + COMAdminInUseByRegistryProxyStub = 0x3, + COMAdminInUseByRegistryTypeLib = 0x4, + COMAdminInUseByRegistryClsid = 0x5 + } COMAdminInUse; + + + +extern RPC_IF_HANDLE __MIDL_itf_comadmin_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_comadmin_0000_0001_v0_0_s_ifspec; + +#ifndef __ICOMAdminCatalog2_INTERFACE_DEFINED__ +#define __ICOMAdminCatalog2_INTERFACE_DEFINED__ + +/* interface ICOMAdminCatalog2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICOMAdminCatalog2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("790C6E0B-9194-4cc9-9426-A48A63185696") + ICOMAdminCatalog2 : public ICOMAdminCatalog + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCollectionByQuery2( + /* [in] */ __RPC__in BSTR bstrCollectionName, + /* [in] */ __RPC__in VARIANT *pVarQueryStrings, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetApplicationInstanceIDFromProcessID( + /* [in] */ long lProcessID, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationInstanceID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ShutdownApplicationInstances( + /* [in] */ __RPC__in VARIANT *pVarApplicationInstanceID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PauseApplicationInstances( + /* [in] */ __RPC__in VARIANT *pVarApplicationInstanceID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ResumeApplicationInstances( + /* [in] */ __RPC__in VARIANT *pVarApplicationInstanceID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RecycleApplicationInstances( + /* [in] */ __RPC__in VARIANT *pVarApplicationInstanceID, + /* [in] */ long lReasonCode) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AreApplicationInstancesPaused( + /* [in] */ __RPC__in VARIANT *pVarApplicationInstanceID, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVarBoolPaused) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DumpApplicationInstance( + /* [in] */ __RPC__in BSTR bstrApplicationInstanceID, + /* [in] */ __RPC__in BSTR bstrDirectory, + /* [in] */ long lMaxImages, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDumpFile) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsApplicationInstanceDumpSupported( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVarBoolDumpSupported) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateServiceForApplication( + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [in] */ __RPC__in BSTR bstrServiceName, + /* [in] */ __RPC__in BSTR bstrStartType, + /* [in] */ __RPC__in BSTR bstrErrorControl, + /* [in] */ __RPC__in BSTR bstrDependencies, + /* [in] */ __RPC__in BSTR bstrRunAs, + /* [in] */ __RPC__in BSTR bstrPassword, + /* [in] */ VARIANT_BOOL bDesktopOk) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteServiceForApplication( + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPartitionID( + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPartitionID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPartitionName( + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPartitionName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CurrentPartition( + /* [in] */ __RPC__in BSTR bstrPartitionIDOrName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPartitionID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPartitionID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPartitionName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPartitionName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GlobalPartitionID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrGlobalPartitionID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE FlushPartitionCache( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyApplications( + /* [in] */ __RPC__in BSTR bstrSourcePartitionIDOrName, + /* [in] */ __RPC__in VARIANT *pVarApplicationID, + /* [in] */ __RPC__in BSTR bstrDestinationPartitionIDOrName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyComponents( + /* [in] */ __RPC__in BSTR bstrSourceApplicationIDOrName, + /* [in] */ __RPC__in VARIANT *pVarCLSIDOrProgID, + /* [in] */ __RPC__in BSTR bstrDestinationApplicationIDOrName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MoveComponents( + /* [in] */ __RPC__in BSTR bstrSourceApplicationIDOrName, + /* [in] */ __RPC__in VARIANT *pVarCLSIDOrProgID, + /* [in] */ __RPC__in BSTR bstrDestinationApplicationIDOrName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AliasComponent( + /* [in] */ __RPC__in BSTR bstrSrcApplicationIDOrName, + /* [in] */ __RPC__in BSTR bstrCLSIDOrProgID, + /* [in] */ __RPC__in BSTR bstrDestApplicationIDOrName, + /* [in] */ __RPC__in BSTR bstrNewProgId, + /* [in] */ __RPC__in BSTR bstrNewClsid) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsSafeToDelete( + /* [in] */ __RPC__in BSTR bstrDllName, + /* [retval][out] */ __RPC__out COMAdminInUse *pCOMAdminInUse) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportUnconfiguredComponents( + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [in] */ __RPC__in VARIANT *pVarCLSIDOrProgID, + /* [optional][in] */ __RPC__in VARIANT *pVarComponentType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PromoteUnconfiguredComponents( + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [in] */ __RPC__in VARIANT *pVarCLSIDOrProgID, + /* [optional][in] */ __RPC__in VARIANT *pVarComponentType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportComponents( + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [in] */ __RPC__in VARIANT *pVarCLSIDOrProgID, + /* [optional][in] */ __RPC__in VARIANT *pVarComponentType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Is64BitCatalogServer( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIs64Bit) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExportPartition( + /* [in] */ __RPC__in BSTR bstrPartitionIDOrName, + /* [in] */ __RPC__in BSTR bstrPartitionFileName, + /* [in] */ long lOptions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InstallPartition( + /* [in] */ __RPC__in BSTR bstrFileName, + /* [in] */ __RPC__in BSTR bstrDestDirectory, + /* [in] */ long lOptions, + /* [in] */ __RPC__in BSTR bstrUserID, + /* [in] */ __RPC__in BSTR bstrPassword, + /* [in] */ __RPC__in BSTR bstrRSN) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE QueryApplicationFile2( + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppFilesForImport) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetComponentVersionCount( + /* [in] */ __RPC__in BSTR bstrCLSIDOrProgID, + /* [retval][out] */ __RPC__out long *plVersionCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICOMAdminCatalog2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICOMAdminCatalog2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICOMAdminCatalog2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICOMAdminCatalog2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICOMAdminCatalog2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, GetCollection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCollection )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrCollName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, Connect) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Connect )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrCatalogServerName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, get_MajorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorVersion )( + __RPC__in ICOMAdminCatalog2 * This, + /* [retval][out] */ __RPC__out long *plMajorVersion); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, get_MinorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorVersion )( + __RPC__in ICOMAdminCatalog2 * This, + /* [retval][out] */ __RPC__out long *plMinorVersion); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, GetCollectionByQuery) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCollectionByQuery )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrCollName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarQuery, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, ImportComponent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportComponent )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__in BSTR bstrCLSIDOrProgID); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, InstallComponent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallComponent )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__in BSTR bstrDLL, + /* [in] */ __RPC__in BSTR bstrTLB, + /* [in] */ __RPC__in BSTR bstrPSDLL); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, ShutdownApplication) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ShutdownApplication )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplIDOrName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, ExportApplication) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExportApplication )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [in] */ long lOptions); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, InstallApplication) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallApplication )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [optional][in] */ __RPC__in BSTR bstrDestinationDirectory, + /* [optional][in] */ long lOptions, + /* [optional][in] */ __RPC__in BSTR bstrUserId, + /* [optional][in] */ __RPC__in BSTR bstrPassword, + /* [optional][in] */ __RPC__in BSTR bstrRSN); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, StopRouter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StopRouter )( + __RPC__in ICOMAdminCatalog2 * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, RefreshRouter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RefreshRouter )( + __RPC__in ICOMAdminCatalog2 * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, StartRouter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StartRouter )( + __RPC__in ICOMAdminCatalog2 * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, Reserved1) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reserved1 )( + __RPC__in ICOMAdminCatalog2 * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, Reserved2) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reserved2 )( + __RPC__in ICOMAdminCatalog2 * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, InstallMultipleComponents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallMultipleComponents )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplIDOrName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarFileNames, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarCLSIDs); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, GetMultipleComponentsInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMultipleComponentsInfo )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplIdOrName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarFileNames, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarCLSIDs, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarClassNames, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarFileFlags, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarComponentFlags); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, RefreshComponents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RefreshComponents )( + __RPC__in ICOMAdminCatalog2 * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, BackupREGDB) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BackupREGDB )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrBackupFilePath); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, RestoreREGDB) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RestoreREGDB )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrBackupFilePath); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, QueryApplicationFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *QueryApplicationFile )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrApplicationName, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrApplicationDescription, + /* [out] */ __RPC__out VARIANT_BOOL *pbHasUsers, + /* [out] */ __RPC__out VARIANT_BOOL *pbIsProxy, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarFileNames); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, StartApplication) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StartApplication )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplIdOrName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, ServiceCheck) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ServiceCheck )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ long lService, + /* [retval][out] */ __RPC__out long *plStatus); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, InstallMultipleEventClasses) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallMultipleEventClasses )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplIdOrName, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarFileNames, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *ppsaVarCLSIDS); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, InstallEventClass) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallEventClass )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplIdOrName, + /* [in] */ __RPC__in BSTR bstrDLL, + /* [in] */ __RPC__in BSTR bstrTLB, + /* [in] */ __RPC__in BSTR bstrPSDLL); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog, GetEventClassesForIID) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetEventClassesForIID )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrIID, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarCLSIDs, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarProgIDs, + /* [out] */ __RPC__deref_out_opt SAFEARRAY * *ppsaVarDescriptions); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, GetCollectionByQuery2) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCollectionByQuery2 )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrCollectionName, + /* [in] */ __RPC__in VARIANT *pVarQueryStrings, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, GetApplicationInstanceIDFromProcessID) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetApplicationInstanceIDFromProcessID )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ long lProcessID, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationInstanceID); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, ShutdownApplicationInstances) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ShutdownApplicationInstances )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in VARIANT *pVarApplicationInstanceID); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, PauseApplicationInstances) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PauseApplicationInstances )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in VARIANT *pVarApplicationInstanceID); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, ResumeApplicationInstances) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ResumeApplicationInstances )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in VARIANT *pVarApplicationInstanceID); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, RecycleApplicationInstances) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RecycleApplicationInstances )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in VARIANT *pVarApplicationInstanceID, + /* [in] */ long lReasonCode); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, AreApplicationInstancesPaused) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AreApplicationInstancesPaused )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in VARIANT *pVarApplicationInstanceID, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVarBoolPaused); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, DumpApplicationInstance) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DumpApplicationInstance )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationInstanceID, + /* [in] */ __RPC__in BSTR bstrDirectory, + /* [in] */ long lMaxImages, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDumpFile); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, get_IsApplicationInstanceDumpSupported) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsApplicationInstanceDumpSupported )( + __RPC__in ICOMAdminCatalog2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVarBoolDumpSupported); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, CreateServiceForApplication) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateServiceForApplication )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [in] */ __RPC__in BSTR bstrServiceName, + /* [in] */ __RPC__in BSTR bstrStartType, + /* [in] */ __RPC__in BSTR bstrErrorControl, + /* [in] */ __RPC__in BSTR bstrDependencies, + /* [in] */ __RPC__in BSTR bstrRunAs, + /* [in] */ __RPC__in BSTR bstrPassword, + /* [in] */ VARIANT_BOOL bDesktopOk); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, DeleteServiceForApplication) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteServiceForApplication )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, GetPartitionID) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPartitionID )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPartitionID); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, GetPartitionName) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPartitionName )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPartitionName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, put_CurrentPartition) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentPartition )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrPartitionIDOrName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, get_CurrentPartitionID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPartitionID )( + __RPC__in ICOMAdminCatalog2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPartitionID); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, get_CurrentPartitionName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPartitionName )( + __RPC__in ICOMAdminCatalog2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPartitionName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, get_GlobalPartitionID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GlobalPartitionID )( + __RPC__in ICOMAdminCatalog2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrGlobalPartitionID); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, FlushPartitionCache) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FlushPartitionCache )( + __RPC__in ICOMAdminCatalog2 * This); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, CopyApplications) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyApplications )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrSourcePartitionIDOrName, + /* [in] */ __RPC__in VARIANT *pVarApplicationID, + /* [in] */ __RPC__in BSTR bstrDestinationPartitionIDOrName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, CopyComponents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyComponents )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrSourceApplicationIDOrName, + /* [in] */ __RPC__in VARIANT *pVarCLSIDOrProgID, + /* [in] */ __RPC__in BSTR bstrDestinationApplicationIDOrName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, MoveComponents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveComponents )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrSourceApplicationIDOrName, + /* [in] */ __RPC__in VARIANT *pVarCLSIDOrProgID, + /* [in] */ __RPC__in BSTR bstrDestinationApplicationIDOrName); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, AliasComponent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AliasComponent )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrSrcApplicationIDOrName, + /* [in] */ __RPC__in BSTR bstrCLSIDOrProgID, + /* [in] */ __RPC__in BSTR bstrDestApplicationIDOrName, + /* [in] */ __RPC__in BSTR bstrNewProgId, + /* [in] */ __RPC__in BSTR bstrNewClsid); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, IsSafeToDelete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsSafeToDelete )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrDllName, + /* [retval][out] */ __RPC__out COMAdminInUse *pCOMAdminInUse); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, ImportUnconfiguredComponents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportUnconfiguredComponents )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [in] */ __RPC__in VARIANT *pVarCLSIDOrProgID, + /* [optional][in] */ __RPC__in VARIANT *pVarComponentType); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, PromoteUnconfiguredComponents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PromoteUnconfiguredComponents )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [in] */ __RPC__in VARIANT *pVarCLSIDOrProgID, + /* [optional][in] */ __RPC__in VARIANT *pVarComponentType); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, ImportComponents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportComponents )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationIDOrName, + /* [in] */ __RPC__in VARIANT *pVarCLSIDOrProgID, + /* [optional][in] */ __RPC__in VARIANT *pVarComponentType); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, get_Is64BitCatalogServer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Is64BitCatalogServer )( + __RPC__in ICOMAdminCatalog2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIs64Bit); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, ExportPartition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExportPartition )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrPartitionIDOrName, + /* [in] */ __RPC__in BSTR bstrPartitionFileName, + /* [in] */ long lOptions); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, InstallPartition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InstallPartition )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrFileName, + /* [in] */ __RPC__in BSTR bstrDestDirectory, + /* [in] */ long lOptions, + /* [in] */ __RPC__in BSTR bstrUserID, + /* [in] */ __RPC__in BSTR bstrPassword, + /* [in] */ __RPC__in BSTR bstrRSN); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, QueryApplicationFile2) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *QueryApplicationFile2 )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationFile, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppFilesForImport); + + DECLSPEC_XFGVIRT(ICOMAdminCatalog2, GetComponentVersionCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetComponentVersionCount )( + __RPC__in ICOMAdminCatalog2 * This, + /* [in] */ __RPC__in BSTR bstrCLSIDOrProgID, + /* [retval][out] */ __RPC__out long *plVersionCount); + + END_INTERFACE + } ICOMAdminCatalog2Vtbl; + + interface ICOMAdminCatalog2 + { + CONST_VTBL struct ICOMAdminCatalog2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICOMAdminCatalog2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICOMAdminCatalog2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICOMAdminCatalog2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICOMAdminCatalog2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICOMAdminCatalog2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICOMAdminCatalog2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICOMAdminCatalog2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICOMAdminCatalog2_GetCollection(This,bstrCollName,ppCatalogCollection) \ + ( (This)->lpVtbl -> GetCollection(This,bstrCollName,ppCatalogCollection) ) + +#define ICOMAdminCatalog2_Connect(This,bstrCatalogServerName,ppCatalogCollection) \ + ( (This)->lpVtbl -> Connect(This,bstrCatalogServerName,ppCatalogCollection) ) + +#define ICOMAdminCatalog2_get_MajorVersion(This,plMajorVersion) \ + ( (This)->lpVtbl -> get_MajorVersion(This,plMajorVersion) ) + +#define ICOMAdminCatalog2_get_MinorVersion(This,plMinorVersion) \ + ( (This)->lpVtbl -> get_MinorVersion(This,plMinorVersion) ) + +#define ICOMAdminCatalog2_GetCollectionByQuery(This,bstrCollName,ppsaVarQuery,ppCatalogCollection) \ + ( (This)->lpVtbl -> GetCollectionByQuery(This,bstrCollName,ppsaVarQuery,ppCatalogCollection) ) + +#define ICOMAdminCatalog2_ImportComponent(This,bstrApplIDOrName,bstrCLSIDOrProgID) \ + ( (This)->lpVtbl -> ImportComponent(This,bstrApplIDOrName,bstrCLSIDOrProgID) ) + +#define ICOMAdminCatalog2_InstallComponent(This,bstrApplIDOrName,bstrDLL,bstrTLB,bstrPSDLL) \ + ( (This)->lpVtbl -> InstallComponent(This,bstrApplIDOrName,bstrDLL,bstrTLB,bstrPSDLL) ) + +#define ICOMAdminCatalog2_ShutdownApplication(This,bstrApplIDOrName) \ + ( (This)->lpVtbl -> ShutdownApplication(This,bstrApplIDOrName) ) + +#define ICOMAdminCatalog2_ExportApplication(This,bstrApplIDOrName,bstrApplicationFile,lOptions) \ + ( (This)->lpVtbl -> ExportApplication(This,bstrApplIDOrName,bstrApplicationFile,lOptions) ) + +#define ICOMAdminCatalog2_InstallApplication(This,bstrApplicationFile,bstrDestinationDirectory,lOptions,bstrUserId,bstrPassword,bstrRSN) \ + ( (This)->lpVtbl -> InstallApplication(This,bstrApplicationFile,bstrDestinationDirectory,lOptions,bstrUserId,bstrPassword,bstrRSN) ) + +#define ICOMAdminCatalog2_StopRouter(This) \ + ( (This)->lpVtbl -> StopRouter(This) ) + +#define ICOMAdminCatalog2_RefreshRouter(This) \ + ( (This)->lpVtbl -> RefreshRouter(This) ) + +#define ICOMAdminCatalog2_StartRouter(This) \ + ( (This)->lpVtbl -> StartRouter(This) ) + +#define ICOMAdminCatalog2_Reserved1(This) \ + ( (This)->lpVtbl -> Reserved1(This) ) + +#define ICOMAdminCatalog2_Reserved2(This) \ + ( (This)->lpVtbl -> Reserved2(This) ) + +#define ICOMAdminCatalog2_InstallMultipleComponents(This,bstrApplIDOrName,ppsaVarFileNames,ppsaVarCLSIDs) \ + ( (This)->lpVtbl -> InstallMultipleComponents(This,bstrApplIDOrName,ppsaVarFileNames,ppsaVarCLSIDs) ) + +#define ICOMAdminCatalog2_GetMultipleComponentsInfo(This,bstrApplIdOrName,ppsaVarFileNames,ppsaVarCLSIDs,ppsaVarClassNames,ppsaVarFileFlags,ppsaVarComponentFlags) \ + ( (This)->lpVtbl -> GetMultipleComponentsInfo(This,bstrApplIdOrName,ppsaVarFileNames,ppsaVarCLSIDs,ppsaVarClassNames,ppsaVarFileFlags,ppsaVarComponentFlags) ) + +#define ICOMAdminCatalog2_RefreshComponents(This) \ + ( (This)->lpVtbl -> RefreshComponents(This) ) + +#define ICOMAdminCatalog2_BackupREGDB(This,bstrBackupFilePath) \ + ( (This)->lpVtbl -> BackupREGDB(This,bstrBackupFilePath) ) + +#define ICOMAdminCatalog2_RestoreREGDB(This,bstrBackupFilePath) \ + ( (This)->lpVtbl -> RestoreREGDB(This,bstrBackupFilePath) ) + +#define ICOMAdminCatalog2_QueryApplicationFile(This,bstrApplicationFile,pbstrApplicationName,pbstrApplicationDescription,pbHasUsers,pbIsProxy,ppsaVarFileNames) \ + ( (This)->lpVtbl -> QueryApplicationFile(This,bstrApplicationFile,pbstrApplicationName,pbstrApplicationDescription,pbHasUsers,pbIsProxy,ppsaVarFileNames) ) + +#define ICOMAdminCatalog2_StartApplication(This,bstrApplIdOrName) \ + ( (This)->lpVtbl -> StartApplication(This,bstrApplIdOrName) ) + +#define ICOMAdminCatalog2_ServiceCheck(This,lService,plStatus) \ + ( (This)->lpVtbl -> ServiceCheck(This,lService,plStatus) ) + +#define ICOMAdminCatalog2_InstallMultipleEventClasses(This,bstrApplIdOrName,ppsaVarFileNames,ppsaVarCLSIDS) \ + ( (This)->lpVtbl -> InstallMultipleEventClasses(This,bstrApplIdOrName,ppsaVarFileNames,ppsaVarCLSIDS) ) + +#define ICOMAdminCatalog2_InstallEventClass(This,bstrApplIdOrName,bstrDLL,bstrTLB,bstrPSDLL) \ + ( (This)->lpVtbl -> InstallEventClass(This,bstrApplIdOrName,bstrDLL,bstrTLB,bstrPSDLL) ) + +#define ICOMAdminCatalog2_GetEventClassesForIID(This,bstrIID,ppsaVarCLSIDs,ppsaVarProgIDs,ppsaVarDescriptions) \ + ( (This)->lpVtbl -> GetEventClassesForIID(This,bstrIID,ppsaVarCLSIDs,ppsaVarProgIDs,ppsaVarDescriptions) ) + + +#define ICOMAdminCatalog2_GetCollectionByQuery2(This,bstrCollectionName,pVarQueryStrings,ppCatalogCollection) \ + ( (This)->lpVtbl -> GetCollectionByQuery2(This,bstrCollectionName,pVarQueryStrings,ppCatalogCollection) ) + +#define ICOMAdminCatalog2_GetApplicationInstanceIDFromProcessID(This,lProcessID,pbstrApplicationInstanceID) \ + ( (This)->lpVtbl -> GetApplicationInstanceIDFromProcessID(This,lProcessID,pbstrApplicationInstanceID) ) + +#define ICOMAdminCatalog2_ShutdownApplicationInstances(This,pVarApplicationInstanceID) \ + ( (This)->lpVtbl -> ShutdownApplicationInstances(This,pVarApplicationInstanceID) ) + +#define ICOMAdminCatalog2_PauseApplicationInstances(This,pVarApplicationInstanceID) \ + ( (This)->lpVtbl -> PauseApplicationInstances(This,pVarApplicationInstanceID) ) + +#define ICOMAdminCatalog2_ResumeApplicationInstances(This,pVarApplicationInstanceID) \ + ( (This)->lpVtbl -> ResumeApplicationInstances(This,pVarApplicationInstanceID) ) + +#define ICOMAdminCatalog2_RecycleApplicationInstances(This,pVarApplicationInstanceID,lReasonCode) \ + ( (This)->lpVtbl -> RecycleApplicationInstances(This,pVarApplicationInstanceID,lReasonCode) ) + +#define ICOMAdminCatalog2_AreApplicationInstancesPaused(This,pVarApplicationInstanceID,pVarBoolPaused) \ + ( (This)->lpVtbl -> AreApplicationInstancesPaused(This,pVarApplicationInstanceID,pVarBoolPaused) ) + +#define ICOMAdminCatalog2_DumpApplicationInstance(This,bstrApplicationInstanceID,bstrDirectory,lMaxImages,pbstrDumpFile) \ + ( (This)->lpVtbl -> DumpApplicationInstance(This,bstrApplicationInstanceID,bstrDirectory,lMaxImages,pbstrDumpFile) ) + +#define ICOMAdminCatalog2_get_IsApplicationInstanceDumpSupported(This,pVarBoolDumpSupported) \ + ( (This)->lpVtbl -> get_IsApplicationInstanceDumpSupported(This,pVarBoolDumpSupported) ) + +#define ICOMAdminCatalog2_CreateServiceForApplication(This,bstrApplicationIDOrName,bstrServiceName,bstrStartType,bstrErrorControl,bstrDependencies,bstrRunAs,bstrPassword,bDesktopOk) \ + ( (This)->lpVtbl -> CreateServiceForApplication(This,bstrApplicationIDOrName,bstrServiceName,bstrStartType,bstrErrorControl,bstrDependencies,bstrRunAs,bstrPassword,bDesktopOk) ) + +#define ICOMAdminCatalog2_DeleteServiceForApplication(This,bstrApplicationIDOrName) \ + ( (This)->lpVtbl -> DeleteServiceForApplication(This,bstrApplicationIDOrName) ) + +#define ICOMAdminCatalog2_GetPartitionID(This,bstrApplicationIDOrName,pbstrPartitionID) \ + ( (This)->lpVtbl -> GetPartitionID(This,bstrApplicationIDOrName,pbstrPartitionID) ) + +#define ICOMAdminCatalog2_GetPartitionName(This,bstrApplicationIDOrName,pbstrPartitionName) \ + ( (This)->lpVtbl -> GetPartitionName(This,bstrApplicationIDOrName,pbstrPartitionName) ) + +#define ICOMAdminCatalog2_put_CurrentPartition(This,bstrPartitionIDOrName) \ + ( (This)->lpVtbl -> put_CurrentPartition(This,bstrPartitionIDOrName) ) + +#define ICOMAdminCatalog2_get_CurrentPartitionID(This,pbstrPartitionID) \ + ( (This)->lpVtbl -> get_CurrentPartitionID(This,pbstrPartitionID) ) + +#define ICOMAdminCatalog2_get_CurrentPartitionName(This,pbstrPartitionName) \ + ( (This)->lpVtbl -> get_CurrentPartitionName(This,pbstrPartitionName) ) + +#define ICOMAdminCatalog2_get_GlobalPartitionID(This,pbstrGlobalPartitionID) \ + ( (This)->lpVtbl -> get_GlobalPartitionID(This,pbstrGlobalPartitionID) ) + +#define ICOMAdminCatalog2_FlushPartitionCache(This) \ + ( (This)->lpVtbl -> FlushPartitionCache(This) ) + +#define ICOMAdminCatalog2_CopyApplications(This,bstrSourcePartitionIDOrName,pVarApplicationID,bstrDestinationPartitionIDOrName) \ + ( (This)->lpVtbl -> CopyApplications(This,bstrSourcePartitionIDOrName,pVarApplicationID,bstrDestinationPartitionIDOrName) ) + +#define ICOMAdminCatalog2_CopyComponents(This,bstrSourceApplicationIDOrName,pVarCLSIDOrProgID,bstrDestinationApplicationIDOrName) \ + ( (This)->lpVtbl -> CopyComponents(This,bstrSourceApplicationIDOrName,pVarCLSIDOrProgID,bstrDestinationApplicationIDOrName) ) + +#define ICOMAdminCatalog2_MoveComponents(This,bstrSourceApplicationIDOrName,pVarCLSIDOrProgID,bstrDestinationApplicationIDOrName) \ + ( (This)->lpVtbl -> MoveComponents(This,bstrSourceApplicationIDOrName,pVarCLSIDOrProgID,bstrDestinationApplicationIDOrName) ) + +#define ICOMAdminCatalog2_AliasComponent(This,bstrSrcApplicationIDOrName,bstrCLSIDOrProgID,bstrDestApplicationIDOrName,bstrNewProgId,bstrNewClsid) \ + ( (This)->lpVtbl -> AliasComponent(This,bstrSrcApplicationIDOrName,bstrCLSIDOrProgID,bstrDestApplicationIDOrName,bstrNewProgId,bstrNewClsid) ) + +#define ICOMAdminCatalog2_IsSafeToDelete(This,bstrDllName,pCOMAdminInUse) \ + ( (This)->lpVtbl -> IsSafeToDelete(This,bstrDllName,pCOMAdminInUse) ) + +#define ICOMAdminCatalog2_ImportUnconfiguredComponents(This,bstrApplicationIDOrName,pVarCLSIDOrProgID,pVarComponentType) \ + ( (This)->lpVtbl -> ImportUnconfiguredComponents(This,bstrApplicationIDOrName,pVarCLSIDOrProgID,pVarComponentType) ) + +#define ICOMAdminCatalog2_PromoteUnconfiguredComponents(This,bstrApplicationIDOrName,pVarCLSIDOrProgID,pVarComponentType) \ + ( (This)->lpVtbl -> PromoteUnconfiguredComponents(This,bstrApplicationIDOrName,pVarCLSIDOrProgID,pVarComponentType) ) + +#define ICOMAdminCatalog2_ImportComponents(This,bstrApplicationIDOrName,pVarCLSIDOrProgID,pVarComponentType) \ + ( (This)->lpVtbl -> ImportComponents(This,bstrApplicationIDOrName,pVarCLSIDOrProgID,pVarComponentType) ) + +#define ICOMAdminCatalog2_get_Is64BitCatalogServer(This,pbIs64Bit) \ + ( (This)->lpVtbl -> get_Is64BitCatalogServer(This,pbIs64Bit) ) + +#define ICOMAdminCatalog2_ExportPartition(This,bstrPartitionIDOrName,bstrPartitionFileName,lOptions) \ + ( (This)->lpVtbl -> ExportPartition(This,bstrPartitionIDOrName,bstrPartitionFileName,lOptions) ) + +#define ICOMAdminCatalog2_InstallPartition(This,bstrFileName,bstrDestDirectory,lOptions,bstrUserID,bstrPassword,bstrRSN) \ + ( (This)->lpVtbl -> InstallPartition(This,bstrFileName,bstrDestDirectory,lOptions,bstrUserID,bstrPassword,bstrRSN) ) + +#define ICOMAdminCatalog2_QueryApplicationFile2(This,bstrApplicationFile,ppFilesForImport) \ + ( (This)->lpVtbl -> QueryApplicationFile2(This,bstrApplicationFile,ppFilesForImport) ) + +#define ICOMAdminCatalog2_GetComponentVersionCount(This,bstrCLSIDOrProgID,plVersionCount) \ + ( (This)->lpVtbl -> GetComponentVersionCount(This,bstrCLSIDOrProgID,plVersionCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICOMAdminCatalog2_INTERFACE_DEFINED__ */ + + +#ifndef __ICatalogObject_INTERFACE_DEFINED__ +#define __ICatalogObject_INTERFACE_DEFINED__ + +/* interface ICatalogObject */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICatalogObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6eb22871-8a19-11d0-81b6-00a0c9231c29") + ICatalogObject : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [in] */ __RPC__in BSTR bstrPropName, + /* [retval][out] */ __RPC__out VARIANT *pvarRetVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ __RPC__in BSTR bstrPropName, + /* [in] */ VARIANT val) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Key( + /* [retval][out] */ __RPC__out VARIANT *pvarRetVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__out VARIANT *pvarRetVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsPropertyReadOnly( + /* [in] */ __RPC__in BSTR bstrPropName, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRetVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Valid( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRetVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsPropertyWriteOnly( + /* [in] */ __RPC__in BSTR bstrPropName, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRetVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICatalogObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICatalogObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICatalogObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICatalogObject * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICatalogObject * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICatalogObject * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICatalogObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICatalogObject * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICatalogObject, get_Value) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in ICatalogObject * This, + /* [in] */ __RPC__in BSTR bstrPropName, + /* [retval][out] */ __RPC__out VARIANT *pvarRetVal); + + DECLSPEC_XFGVIRT(ICatalogObject, put_Value) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in ICatalogObject * This, + /* [in] */ __RPC__in BSTR bstrPropName, + /* [in] */ VARIANT val); + + DECLSPEC_XFGVIRT(ICatalogObject, get_Key) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Key )( + __RPC__in ICatalogObject * This, + /* [retval][out] */ __RPC__out VARIANT *pvarRetVal); + + DECLSPEC_XFGVIRT(ICatalogObject, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in ICatalogObject * This, + /* [retval][out] */ __RPC__out VARIANT *pvarRetVal); + + DECLSPEC_XFGVIRT(ICatalogObject, IsPropertyReadOnly) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsPropertyReadOnly )( + __RPC__in ICatalogObject * This, + /* [in] */ __RPC__in BSTR bstrPropName, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRetVal); + + DECLSPEC_XFGVIRT(ICatalogObject, get_Valid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Valid )( + __RPC__in ICatalogObject * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRetVal); + + DECLSPEC_XFGVIRT(ICatalogObject, IsPropertyWriteOnly) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsPropertyWriteOnly )( + __RPC__in ICatalogObject * This, + /* [in] */ __RPC__in BSTR bstrPropName, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRetVal); + + END_INTERFACE + } ICatalogObjectVtbl; + + interface ICatalogObject + { + CONST_VTBL struct ICatalogObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICatalogObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICatalogObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICatalogObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICatalogObject_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICatalogObject_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICatalogObject_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICatalogObject_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICatalogObject_get_Value(This,bstrPropName,pvarRetVal) \ + ( (This)->lpVtbl -> get_Value(This,bstrPropName,pvarRetVal) ) + +#define ICatalogObject_put_Value(This,bstrPropName,val) \ + ( (This)->lpVtbl -> put_Value(This,bstrPropName,val) ) + +#define ICatalogObject_get_Key(This,pvarRetVal) \ + ( (This)->lpVtbl -> get_Key(This,pvarRetVal) ) + +#define ICatalogObject_get_Name(This,pvarRetVal) \ + ( (This)->lpVtbl -> get_Name(This,pvarRetVal) ) + +#define ICatalogObject_IsPropertyReadOnly(This,bstrPropName,pbRetVal) \ + ( (This)->lpVtbl -> IsPropertyReadOnly(This,bstrPropName,pbRetVal) ) + +#define ICatalogObject_get_Valid(This,pbRetVal) \ + ( (This)->lpVtbl -> get_Valid(This,pbRetVal) ) + +#define ICatalogObject_IsPropertyWriteOnly(This,bstrPropName,pbRetVal) \ + ( (This)->lpVtbl -> IsPropertyWriteOnly(This,bstrPropName,pbRetVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICatalogObject_INTERFACE_DEFINED__ */ + + +#ifndef __ICatalogCollection_INTERFACE_DEFINED__ +#define __ICatalogCollection_INTERFACE_DEFINED__ + +/* interface ICatalogCollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICatalogCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6eb22872-8a19-11d0-81b6-00a0c9231c29") + ICatalogCollection : public IDispatch + { + public: + virtual /* [id][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumVariant) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogObject) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plObjectCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ long lIndex) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Add( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogObject) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Populate( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveChanges( + /* [retval][out] */ __RPC__out long *pcChanges) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCollection( + /* [in] */ __RPC__in BSTR bstrCollName, + /* [in] */ VARIANT varObjectKey, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__out VARIANT *pVarNamel) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AddEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVarBool) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RemoveEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVarBool) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetUtilInterface( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppIDispatch) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DataStoreMajorVersion( + /* [retval][out] */ __RPC__out long *plMajorVersion) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DataStoreMinorVersion( + /* [retval][out] */ __RPC__out long *plMinorVersionl) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PopulateByKey( + /* [in] */ __RPC__in SAFEARRAY * psaKeys) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PopulateByQuery( + /* [in] */ __RPC__in BSTR bstrQueryString, + /* [in] */ long lQueryType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICatalogCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICatalogCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICatalogCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICatalogCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICatalogCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICatalogCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICatalogCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICatalogCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICatalogCollection, get__NewEnum) + /* [id][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICatalogCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumVariant); + + DECLSPEC_XFGVIRT(ICatalogCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ICatalogCollection * This, + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogObject); + + DECLSPEC_XFGVIRT(ICatalogCollection, get_Count) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICatalogCollection * This, + /* [retval][out] */ __RPC__out long *plObjectCount); + + DECLSPEC_XFGVIRT(ICatalogCollection, Remove) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ICatalogCollection * This, + /* [in] */ long lIndex); + + DECLSPEC_XFGVIRT(ICatalogCollection, Add) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ICatalogCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogObject); + + DECLSPEC_XFGVIRT(ICatalogCollection, Populate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Populate )( + __RPC__in ICatalogCollection * This); + + DECLSPEC_XFGVIRT(ICatalogCollection, SaveChanges) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveChanges )( + __RPC__in ICatalogCollection * This, + /* [retval][out] */ __RPC__out long *pcChanges); + + DECLSPEC_XFGVIRT(ICatalogCollection, GetCollection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCollection )( + __RPC__in ICatalogCollection * This, + /* [in] */ __RPC__in BSTR bstrCollName, + /* [in] */ VARIANT varObjectKey, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCatalogCollection); + + DECLSPEC_XFGVIRT(ICatalogCollection, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in ICatalogCollection * This, + /* [retval][out] */ __RPC__out VARIANT *pVarNamel); + + DECLSPEC_XFGVIRT(ICatalogCollection, get_AddEnabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AddEnabled )( + __RPC__in ICatalogCollection * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVarBool); + + DECLSPEC_XFGVIRT(ICatalogCollection, get_RemoveEnabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemoveEnabled )( + __RPC__in ICatalogCollection * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVarBool); + + DECLSPEC_XFGVIRT(ICatalogCollection, GetUtilInterface) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetUtilInterface )( + __RPC__in ICatalogCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppIDispatch); + + DECLSPEC_XFGVIRT(ICatalogCollection, get_DataStoreMajorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DataStoreMajorVersion )( + __RPC__in ICatalogCollection * This, + /* [retval][out] */ __RPC__out long *plMajorVersion); + + DECLSPEC_XFGVIRT(ICatalogCollection, get_DataStoreMinorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DataStoreMinorVersion )( + __RPC__in ICatalogCollection * This, + /* [retval][out] */ __RPC__out long *plMinorVersionl); + + DECLSPEC_XFGVIRT(ICatalogCollection, PopulateByKey) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PopulateByKey )( + __RPC__in ICatalogCollection * This, + /* [in] */ __RPC__in SAFEARRAY * psaKeys); + + DECLSPEC_XFGVIRT(ICatalogCollection, PopulateByQuery) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PopulateByQuery )( + __RPC__in ICatalogCollection * This, + /* [in] */ __RPC__in BSTR bstrQueryString, + /* [in] */ long lQueryType); + + END_INTERFACE + } ICatalogCollectionVtbl; + + interface ICatalogCollection + { + CONST_VTBL struct ICatalogCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICatalogCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICatalogCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICatalogCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICatalogCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICatalogCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICatalogCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICatalogCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICatalogCollection_get__NewEnum(This,ppEnumVariant) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumVariant) ) + +#define ICatalogCollection_get_Item(This,lIndex,ppCatalogObject) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,ppCatalogObject) ) + +#define ICatalogCollection_get_Count(This,plObjectCount) \ + ( (This)->lpVtbl -> get_Count(This,plObjectCount) ) + +#define ICatalogCollection_Remove(This,lIndex) \ + ( (This)->lpVtbl -> Remove(This,lIndex) ) + +#define ICatalogCollection_Add(This,ppCatalogObject) \ + ( (This)->lpVtbl -> Add(This,ppCatalogObject) ) + +#define ICatalogCollection_Populate(This) \ + ( (This)->lpVtbl -> Populate(This) ) + +#define ICatalogCollection_SaveChanges(This,pcChanges) \ + ( (This)->lpVtbl -> SaveChanges(This,pcChanges) ) + +#define ICatalogCollection_GetCollection(This,bstrCollName,varObjectKey,ppCatalogCollection) \ + ( (This)->lpVtbl -> GetCollection(This,bstrCollName,varObjectKey,ppCatalogCollection) ) + +#define ICatalogCollection_get_Name(This,pVarNamel) \ + ( (This)->lpVtbl -> get_Name(This,pVarNamel) ) + +#define ICatalogCollection_get_AddEnabled(This,pVarBool) \ + ( (This)->lpVtbl -> get_AddEnabled(This,pVarBool) ) + +#define ICatalogCollection_get_RemoveEnabled(This,pVarBool) \ + ( (This)->lpVtbl -> get_RemoveEnabled(This,pVarBool) ) + +#define ICatalogCollection_GetUtilInterface(This,ppIDispatch) \ + ( (This)->lpVtbl -> GetUtilInterface(This,ppIDispatch) ) + +#define ICatalogCollection_get_DataStoreMajorVersion(This,plMajorVersion) \ + ( (This)->lpVtbl -> get_DataStoreMajorVersion(This,plMajorVersion) ) + +#define ICatalogCollection_get_DataStoreMinorVersion(This,plMinorVersionl) \ + ( (This)->lpVtbl -> get_DataStoreMinorVersion(This,plMinorVersionl) ) + +#define ICatalogCollection_PopulateByKey(This,psaKeys) \ + ( (This)->lpVtbl -> PopulateByKey(This,psaKeys) ) + +#define ICatalogCollection_PopulateByQuery(This,bstrQueryString,lQueryType) \ + ( (This)->lpVtbl -> PopulateByQuery(This,bstrQueryString,lQueryType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICatalogCollection_INTERFACE_DEFINED__ */ + + + +#ifndef __COMAdmin_LIBRARY_DEFINED__ +#define __COMAdmin_LIBRARY_DEFINED__ + +/* library COMAdmin */ +/* [helpstring][version][uuid] */ + +typedef /* [helpstring] */ +enum COMAdminComponentType + { + COMAdmin32BitComponent = 0x1, + COMAdmin64BitComponent = 0x2 + } COMAdminComponentType; + +typedef /* [helpstring] */ +enum COMAdminApplicationInstallOptions + { + COMAdminInstallNoUsers = 0, + COMAdminInstallUsers = 1, + COMAdminInstallForceOverwriteOfFiles = 2 + } COMAdminApplicationInstallOptions; + +typedef /* [helpstring] */ +enum COMAdminApplicationExportOptions + { + COMAdminExportNoUsers = 0, + COMAdminExportUsers = 1, + COMAdminExportApplicationProxy = 2, + COMAdminExportForceOverwriteOfFiles = 4, + COMAdminExportIn10Format = 16 + } COMAdminApplicationExportOptions; + +typedef /* [helpstring] */ +enum COMAdminThreadingModels + { + COMAdminThreadingModelApartment = 0, + COMAdminThreadingModelFree = 1, + COMAdminThreadingModelMain = 2, + COMAdminThreadingModelBoth = 3, + COMAdminThreadingModelNeutral = 4, + COMAdminThreadingModelNotSpecified = 5 + } COMAdminThreadingModels; + +typedef /* [helpstring] */ +enum COMAdminTransactionOptions + { + COMAdminTransactionIgnored = 0, + COMAdminTransactionNone = 1, + COMAdminTransactionSupported = 2, + COMAdminTransactionRequired = 3, + COMAdminTransactionRequiresNew = 4 + } COMAdminTransactionOptions; + +typedef /* [helpstring] */ +enum COMAdminTxIsolationLevelOptions + { + COMAdminTxIsolationLevelAny = 0, + COMAdminTxIsolationLevelReadUnCommitted = ( COMAdminTxIsolationLevelAny + 1 ) , + COMAdminTxIsolationLevelReadCommitted = ( COMAdminTxIsolationLevelReadUnCommitted + 1 ) , + COMAdminTxIsolationLevelRepeatableRead = ( COMAdminTxIsolationLevelReadCommitted + 1 ) , + COMAdminTxIsolationLevelSerializable = ( COMAdminTxIsolationLevelRepeatableRead + 1 ) + } COMAdminTxIsolationLevelOptions; + +typedef /* [helpstring] */ +enum COMAdminSynchronizationOptions + { + COMAdminSynchronizationIgnored = 0, + COMAdminSynchronizationNone = 1, + COMAdminSynchronizationSupported = 2, + COMAdminSynchronizationRequired = 3, + COMAdminSynchronizationRequiresNew = 4 + } COMAdminSynchronizationOptions; + +typedef /* [helpstring] */ +enum COMAdminActivationOptions + { + COMAdminActivationInproc = 0, + COMAdminActivationLocal = 1 + } COMAdminActivationOptions; + +typedef /* [helpstring] */ +enum COMAdminAccessChecksLevelOptions + { + COMAdminAccessChecksApplicationLevel = 0, + COMAdminAccessChecksApplicationComponentLevel = 1 + } COMAdminAccessChecksLevelOptions; + +typedef /* [helpstring] */ +enum COMAdminAuthenticationLevelOptions + { + COMAdminAuthenticationDefault = 0, + COMAdminAuthenticationNone = 1, + COMAdminAuthenticationConnect = 2, + COMAdminAuthenticationCall = 3, + COMAdminAuthenticationPacket = 4, + COMAdminAuthenticationIntegrity = 5, + COMAdminAuthenticationPrivacy = 6 + } COMAdminAuthenticationLevelOptions; + +typedef /* [helpstring] */ +enum COMAdminImpersonationLevelOptions + { + COMAdminImpersonationAnonymous = 1, + COMAdminImpersonationIdentify = 2, + COMAdminImpersonationImpersonate = 3, + COMAdminImpersonationDelegate = 4 + } COMAdminImpersonationLevelOptions; + +typedef /* [helpstring] */ +enum COMAdminAuthenticationCapabilitiesOptions + { + COMAdminAuthenticationCapabilitiesNone = 0, + COMAdminAuthenticationCapabilitiesSecureReference = 0x2, + COMAdminAuthenticationCapabilitiesStaticCloaking = 0x20, + COMAdminAuthenticationCapabilitiesDynamicCloaking = 0x40 + } COMAdminAuthenticationCapabilitiesOptions; + +typedef /* [helpstring] */ +enum COMAdminOS + { + COMAdminOSNotInitialized = 0, + COMAdminOSWindows3_1 = 1, + COMAdminOSWindows9x = 2, + COMAdminOSWindows2000 = 3, + COMAdminOSWindows2000AdvancedServer = 4, + COMAdminOSWindows2000Unknown = 5, + COMAdminOSUnknown = 6, + COMAdminOSWindowsXPPersonal = 11, + COMAdminOSWindowsXPProfessional = 12, + COMAdminOSWindowsNETStandardServer = 13, + COMAdminOSWindowsNETEnterpriseServer = 14, + COMAdminOSWindowsNETDatacenterServer = 15, + COMAdminOSWindowsNETWebServer = 16, + COMAdminOSWindowsLonghornPersonal = 17, + COMAdminOSWindowsLonghornProfessional = 18, + COMAdminOSWindowsLonghornStandardServer = 19, + COMAdminOSWindowsLonghornEnterpriseServer = 20, + COMAdminOSWindowsLonghornDatacenterServer = 21, + COMAdminOSWindowsLonghornWebServer = 22, + COMAdminOSWindows7Personal = 23, + COMAdminOSWindows7Professional = 24, + COMAdminOSWindows7StandardServer = 25, + COMAdminOSWindows7EnterpriseServer = 26, + COMAdminOSWindows7DatacenterServer = 27, + COMAdminOSWindows7WebServer = 28, + COMAdminOSWindows8Personal = 29, + COMAdminOSWindows8Professional = 30, + COMAdminOSWindows8StandardServer = 31, + COMAdminOSWindows8EnterpriseServer = 32, + COMAdminOSWindows8DatacenterServer = 33, + COMAdminOSWindows8WebServer = 34, + COMAdminOSWindowsBluePersonal = 35, + COMAdminOSWindowsBlueProfessional = 36, + COMAdminOSWindowsBlueStandardServer = 37, + COMAdminOSWindowsBlueEnterpriseServer = 38, + COMAdminOSWindowsBlueDatacenterServer = 39, + COMAdminOSWindowsBlueWebServer = 40 + } COMAdminOS; + +typedef /* [helpstring] */ +enum COMAdminServiceOptions + { + COMAdminServiceLoadBalanceRouter = 1 + } COMAdminServiceOptions; + +typedef /* [helpstring] */ +enum COMAdminServiceStatusOptions + { + COMAdminServiceStopped = 0, + COMAdminServiceStartPending = ( COMAdminServiceStopped + 1 ) , + COMAdminServiceStopPending = ( COMAdminServiceStartPending + 1 ) , + COMAdminServiceRunning = ( COMAdminServiceStopPending + 1 ) , + COMAdminServiceContinuePending = ( COMAdminServiceRunning + 1 ) , + COMAdminServicePausePending = ( COMAdminServiceContinuePending + 1 ) , + COMAdminServicePaused = ( COMAdminServicePausePending + 1 ) , + COMAdminServiceUnknownState = ( COMAdminServicePaused + 1 ) + } COMAdminServiceStatusOptions; + +typedef /* [helpstring] */ +enum COMAdminQCMessageAuthenticateOptions + { + COMAdminQCMessageAuthenticateSecureApps = 0, + COMAdminQCMessageAuthenticateOff = 1, + COMAdminQCMessageAuthenticateOn = 2 + } COMAdminQCMessageAuthenticateOptions; + +typedef /* [helpstring] */ +enum COMAdminFileFlags + { + COMAdminFileFlagLoadable = 0x1, + COMAdminFileFlagCOM = 0x2, + COMAdminFileFlagContainsPS = 0x4, + COMAdminFileFlagContainsComp = 0x8, + COMAdminFileFlagContainsTLB = 0x10, + COMAdminFileFlagSelfReg = 0x20, + COMAdminFileFlagSelfUnReg = 0x40, + COMAdminFileFlagUnloadableDLL = 0x80, + COMAdminFileFlagDoesNotExist = 0x100, + COMAdminFileFlagAlreadyInstalled = 0x200, + COMAdminFileFlagBadTLB = 0x400, + COMAdminFileFlagGetClassObjFailed = 0x800, + COMAdminFileFlagClassNotAvailable = 0x1000, + COMAdminFileFlagRegistrar = 0x2000, + COMAdminFileFlagNoRegistrar = 0x4000, + COMAdminFileFlagDLLRegsvrFailed = 0x8000, + COMAdminFileFlagRegTLBFailed = 0x10000, + COMAdminFileFlagRegistrarFailed = 0x20000, + COMAdminFileFlagError = 0x40000 + } COMAdminFileFlags; + +typedef /* [helpstring] */ +enum COMAdminComponentFlags + { + COMAdminCompFlagTypeInfoFound = 0x1, + COMAdminCompFlagCOMPlusPropertiesFound = 0x2, + COMAdminCompFlagProxyFound = 0x4, + COMAdminCompFlagInterfacesFound = 0x8, + COMAdminCompFlagAlreadyInstalled = 0x10, + COMAdminCompFlagNotInApplication = 0x20 + } COMAdminComponentFlags; + +#define COMAdminCollectionRoot ( "Root" ) + +#define COMAdminCollectionApplications ( "Applications" ) + +#define COMAdminCollectionComponents ( "Components" ) + +#define COMAdminCollectionComputerList ( "ComputerList" ) + +#define COMAdminCollectionApplicationCluster ( "ApplicationCluster" ) + +#define COMAdminCollectionLocalComputer ( "LocalComputer" ) + +#define COMAdminCollectionInprocServers ( "InprocServers" ) + +#define COMAdminCollectionRelatedCollectionInfo ( "RelatedCollectionInfo" ) + +#define COMAdminCollectionPropertyInfo ( "PropertyInfo" ) + +#define COMAdminCollectionRoles ( "Roles" ) + +#define COMAdminCollectionErrorInfo ( "ErrorInfo" ) + +#define COMAdminCollectionInterfacesForComponent ( "InterfacesForComponent" ) + +#define COMAdminCollectionRolesForComponent ( "RolesForComponent" ) + +#define COMAdminCollectionMethodsForInterface ( "MethodsForInterface" ) + +#define COMAdminCollectionRolesForInterface ( "RolesForInterface" ) + +#define COMAdminCollectionRolesForMethod ( "RolesForMethod" ) + +#define COMAdminCollectionUsersInRole ( "UsersInRole" ) + +#define COMAdminCollectionDCOMProtocols ( "DCOMProtocols" ) + +#define COMAdminCollectionPartitions ( "Partitions" ) + +typedef /* [helpstring] */ +enum COMAdminErrorCodes + { + COMAdminErrObjectErrors = ( HRESULT )0x80110401L, + COMAdminErrObjectInvalid = ( HRESULT )0x80110402L, + COMAdminErrKeyMissing = ( HRESULT )0x80110403L, + COMAdminErrAlreadyInstalled = ( HRESULT )0x80110404L, + COMAdminErrAppFileWriteFail = ( HRESULT )0x80110407L, + COMAdminErrAppFileReadFail = ( HRESULT )0x80110408L, + COMAdminErrAppFileVersion = ( HRESULT )0x80110409L, + COMAdminErrBadPath = ( HRESULT )0x8011040aL, + COMAdminErrApplicationExists = ( HRESULT )0x8011040bL, + COMAdminErrRoleExists = ( HRESULT )0x8011040cL, + COMAdminErrCantCopyFile = ( HRESULT )0x8011040dL, + COMAdminErrNoUser = ( HRESULT )0x8011040fL, + COMAdminErrInvalidUserids = ( HRESULT )0x80110410L, + COMAdminErrNoRegistryCLSID = ( HRESULT )0x80110411L, + COMAdminErrBadRegistryProgID = ( HRESULT )0x80110412L, + COMAdminErrAuthenticationLevel = ( HRESULT )0x80110413L, + COMAdminErrUserPasswdNotValid = ( HRESULT )0x80110414L, + COMAdminErrCLSIDOrIIDMismatch = ( HRESULT )0x80110418L, + COMAdminErrRemoteInterface = ( HRESULT )0x80110419L, + COMAdminErrDllRegisterServer = ( HRESULT )0x8011041aL, + COMAdminErrNoServerShare = ( HRESULT )0x8011041bL, + COMAdminErrDllLoadFailed = ( HRESULT )0x8011041dL, + COMAdminErrBadRegistryLibID = ( HRESULT )0x8011041eL, + COMAdminErrAppDirNotFound = ( HRESULT )0x8011041fL, + COMAdminErrRegistrarFailed = ( HRESULT )0x80110423L, + COMAdminErrCompFileDoesNotExist = ( HRESULT )0x80110424L, + COMAdminErrCompFileLoadDLLFail = ( HRESULT )0x80110425L, + COMAdminErrCompFileGetClassObj = ( HRESULT )0x80110426L, + COMAdminErrCompFileClassNotAvail = ( HRESULT )0x80110427L, + COMAdminErrCompFileBadTLB = ( HRESULT )0x80110428L, + COMAdminErrCompFileNotInstallable = ( HRESULT )0x80110429L, + COMAdminErrNotChangeable = ( HRESULT )0x8011042aL, + COMAdminErrNotDeletable = ( HRESULT )0x8011042bL, + COMAdminErrSession = ( HRESULT )0x8011042cL, + COMAdminErrCompMoveLocked = ( HRESULT )0x8011042dL, + COMAdminErrCompMoveBadDest = ( HRESULT )0x8011042eL, + COMAdminErrRegisterTLB = ( HRESULT )0x80110430L, + COMAdminErrSystemApp = ( HRESULT )0x80110433L, + COMAdminErrCompFileNoRegistrar = ( HRESULT )0x80110434L, + COMAdminErrCoReqCompInstalled = ( HRESULT )0x80110435L, + COMAdminErrServiceNotInstalled = ( HRESULT )0x80110436L, + COMAdminErrPropertySaveFailed = ( HRESULT )0x80110437L, + COMAdminErrObjectExists = ( HRESULT )0x80110438L, + COMAdminErrComponentExists = ( HRESULT )0x80110439L, + COMAdminErrRegFileCorrupt = ( HRESULT )0x8011043bL, + COMAdminErrPropertyOverflow = ( HRESULT )0x8011043cL, + COMAdminErrNotInRegistry = ( HRESULT )0x8011043eL, + COMAdminErrObjectNotPoolable = ( HRESULT )0x8011043fL, + COMAdminErrApplidMatchesClsid = ( HRESULT )0x80110446L, + COMAdminErrRoleDoesNotExist = ( HRESULT )0x80110447L, + COMAdminErrStartAppNeedsComponents = ( HRESULT )0x80110448L, + COMAdminErrRequiresDifferentPlatform = ( HRESULT )0x80110449L, + COMAdminErrQueuingServiceNotAvailable = ( HRESULT )0x80110602L, + COMAdminErrObjectParentMissing = ( HRESULT )0x80110808L, + COMAdminErrObjectDoesNotExist = ( HRESULT )0x80110809L, + COMAdminErrCanNotExportAppProxy = ( HRESULT )0x8011044aL, + COMAdminErrCanNotStartApp = ( HRESULT )0x8011044bL, + COMAdminErrCanNotExportSystemApp = ( HRESULT )0x8011044cL, + COMAdminErrCanNotSubscribeToComponent = ( HRESULT )0x8011044dL, + COMAdminErrAppNotRunning = ( HRESULT )0x8011080aL, + COMAdminErrEventClassCannotBeSubscriber = ( HRESULT )0x8011044eL, + COMAdminErrLibAppProxyIncompatible = ( HRESULT )0x8011044fL, + COMAdminErrBasePartitionOnly = ( HRESULT )0x80110450L, + COMAdminErrDuplicatePartitionName = ( HRESULT )0x80110457L, + COMAdminErrPartitionInUse = ( HRESULT )0x80110459L, + COMAdminErrImportedComponentsNotAllowed = ( HRESULT )0x8011045bL, + COMAdminErrRegdbNotInitialized = ( HRESULT )0x80110472L, + COMAdminErrRegdbNotOpen = ( HRESULT )0x80110473L, + COMAdminErrRegdbSystemErr = ( HRESULT )0x80110474L, + COMAdminErrRegdbAlreadyRunning = ( HRESULT )0x80110475L, + COMAdminErrMigVersionNotSupported = ( HRESULT )0x80110480L, + COMAdminErrMigSchemaNotFound = ( HRESULT )0x80110481L, + COMAdminErrCatBitnessMismatch = ( HRESULT )0x80110482L, + COMAdminErrCatUnacceptableBitness = ( HRESULT )0x80110483L, + COMAdminErrCatWrongAppBitnessBitness = ( HRESULT )0x80110484L, + COMAdminErrCatPauseResumeNotSupported = ( HRESULT )0x80110485L, + COMAdminErrCatServerFault = ( HRESULT )0x80110486L, + COMAdminErrCantRecycleLibraryApps = ( HRESULT )0x8011080fL, + COMAdminErrCantRecycleServiceApps = ( HRESULT )0x80110811L, + COMAdminErrProcessAlreadyRecycled = ( HRESULT )0x80110812L, + COMAdminErrPausedProcessMayNotBeRecycled = ( HRESULT )0x80110813L, + COMAdminErrInvalidPartition = ( HRESULT )0x8011080bL, + COMAdminErrPartitionMsiOnly = ( HRESULT )0x80110819L, + COMAdminErrStartAppDisabled = ( HRESULT )0x80110451L, + COMAdminErrCompMoveSource = ( HRESULT )0x8011081cL, + COMAdminErrCompMoveDest = ( HRESULT )0x8011081dL, + COMAdminErrCompMovePrivate = ( HRESULT )0x8011081eL, + COMAdminErrCannotCopyEventClass = ( HRESULT )0x80110820L + } COMAdminErrorCodes; + + +EXTERN_C const IID LIBID_COMAdmin; + +EXTERN_C const CLSID CLSID_COMAdminCatalog; + +#ifdef __cplusplus + +class DECLSPEC_UUID("F618C514-DFB8-11d1-A2CF-00805FC79235") +COMAdminCatalog; +#endif + +EXTERN_C const CLSID CLSID_COMAdminCatalogObject; + +#ifdef __cplusplus + +class DECLSPEC_UUID("F618C515-DFB8-11d1-A2CF-00805FC79235") +COMAdminCatalogObject; +#endif + +EXTERN_C const CLSID CLSID_COMAdminCatalogCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("F618C516-DFB8-11d1-A2CF-00805FC79235") +COMAdminCatalogCollection; +#endif +#endif /* __COMAdmin_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_comadmin_0000_0005 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_comadmin_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_comadmin_0000_0005_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComCat.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComCat.Idl new file mode 100644 index 0000000000000000000000000000000000000000..0ff9b30c022296836ae443052d41567f57466f97 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComCat.Idl @@ -0,0 +1,317 @@ +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: Component Categories Interfaces +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// ComCat.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// OLE Componet Categories Interfaces.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("//") + +#ifndef DO_NO_IMPORTS +import "unknwn.idl"; +#endif + +cpp_quote("#include ") + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +interface IEnumGUID; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +interface IEnumCATEGORYINFO; +interface ICatRegister; +interface ICatInformation; +cpp_quote("EXTERN_C const CLSID CLSID_StdComponentCategoriesMgr;") + +cpp_quote("") +cpp_quote("////////////////////////////////////////////////////////////////////////////") +cpp_quote("// Types") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family or OneCore Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)") + + typedef GUID CATID; + typedef REFGUID REFCATID; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#define IID_IEnumCLSID IID_IEnumGUID") +cpp_quote("#define IEnumCLSID IEnumGUID") +cpp_quote("#define LPENUMCLSID LPENUMGUID") +#define IEnumCLSID IEnumGUID +cpp_quote("#define CATID_NULL GUID_NULL") +cpp_quote("#define IsEqualCATID(rcatid1, rcatid2) IsEqualGUID(rcatid1, rcatid2)") +cpp_quote("#define IID_IEnumCATID IID_IEnumGUID") +cpp_quote("#define IEnumCATID IEnumGUID") +#define IEnumCATID IEnumGUID + +cpp_quote("") +cpp_quote("////////////////////////////////////////////////////////////////////////////") +cpp_quote("// Category IDs (link to uuid3.lib)") +cpp_quote("EXTERN_C const CATID CATID_Insertable;") +cpp_quote("EXTERN_C const CATID CATID_Control;") +cpp_quote("EXTERN_C const CATID CATID_Programmable;") +cpp_quote("EXTERN_C const CATID CATID_IsShortcut;") +cpp_quote("EXTERN_C const CATID CATID_NeverShowExt;") +cpp_quote("EXTERN_C const CATID CATID_DocObject;") +cpp_quote("EXTERN_C const CATID CATID_Printable;") +cpp_quote("EXTERN_C const CATID CATID_RequiresDataPathHost;") +cpp_quote("EXTERN_C const CATID CATID_PersistsToMoniker;") +cpp_quote("EXTERN_C const CATID CATID_PersistsToStorage;") +cpp_quote("EXTERN_C const CATID CATID_PersistsToStreamInit;") +cpp_quote("EXTERN_C const CATID CATID_PersistsToStream;") +cpp_quote("EXTERN_C const CATID CATID_PersistsToMemory;") +cpp_quote("EXTERN_C const CATID CATID_PersistsToFile;") +cpp_quote("EXTERN_C const CATID CATID_PersistsToPropertyBag;") +cpp_quote("EXTERN_C const CATID CATID_InternetAware;") +cpp_quote("EXTERN_C const CATID CATID_DesignTimeUIActivatableControl;") + +cpp_quote("") +cpp_quote("////////////////////////////////////////////////////////////////////////////") +cpp_quote("// Interface Definitions") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: IEnumGUID interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPENUMGUID_DEFINED") +cpp_quote("#define _LPENUMGUID_DEFINED") +[ + object, + uuid(0002E000-0000-0000-C000-000000000046), + pointer_default(unique) +] +interface IEnumGUID : IUnknown +{ + typedef [unique] IEnumGUID *LPENUMGUID; + + [local] + HRESULT Next( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched), annotation("_Out_writes_to_(celt,*pceltFetched)")] GUID *rgelt, + [out, annotation("_Out_opt_")] ULONG *pceltFetched); + + [call_as(Next)] + HRESULT RemoteNext( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched)] GUID *rgelt, + [out] ULONG *pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumGUID **ppenum); +} +cpp_quote("#endif") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: IEnumCATEGORYINFO definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPENUMCATEGORYINFO_DEFINED") +cpp_quote("#define _LPENUMCATEGORYINFO_DEFINED") +[ + object, + uuid(0002E011-0000-0000-C000-000000000046), + pointer_default(unique) +] +interface IEnumCATEGORYINFO : IUnknown +{ + typedef [unique] IEnumCATEGORYINFO *LPENUMCATEGORYINFO; + +#define CATDESC_MAX 128 + + typedef struct tagCATEGORYINFO { + CATID catid; + LCID lcid; + OLECHAR szDescription[CATDESC_MAX]; + } CATEGORYINFO, *LPCATEGORYINFO; + + HRESULT Next( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched)] CATEGORYINFO* rgelt, + [out] ULONG* pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumCATEGORYINFO** ppenum); +} +cpp_quote("#endif") + + +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: ICatRegister definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPCATREGISTER_DEFINED") +cpp_quote("#define _LPCATREGISTER_DEFINED") +[ + object, + uuid(0002E012-0000-0000-C000-000000000046), + pointer_default(unique) +] +interface ICatRegister : IUnknown +{ + typedef [unique] ICatRegister* LPCATREGISTER; + + HRESULT RegisterCategories( + [in] ULONG cCategories, + [in, size_is(cCategories)] CATEGORYINFO rgCategoryInfo[]); + + HRESULT UnRegisterCategories( + [in] ULONG cCategories, + [in, size_is(cCategories)] CATID rgcatid[]); + + HRESULT RegisterClassImplCategories( + [in] REFCLSID rclsid, + [in] ULONG cCategories, + [in, size_is(cCategories)] CATID rgcatid[]); + + HRESULT UnRegisterClassImplCategories( + [in] REFCLSID rclsid, + [in] ULONG cCategories, + [in, size_is(cCategories)] CATID rgcatid[]); + + HRESULT RegisterClassReqCategories( + [in] REFCLSID rclsid, + [in] ULONG cCategories, + [in, size_is(cCategories)] CATID rgcatid[]); + + HRESULT UnRegisterClassReqCategories( + [in] REFCLSID rclsid, + [in] ULONG cCategories, + [in, size_is(cCategories)] CATID rgcatid[]); +} +cpp_quote("#endif") + + +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: ICatInformation definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPCATINFORMATION_DEFINED") +cpp_quote("#define _LPCATINFORMATION_DEFINED") +[ + object, + uuid(0002E013-0000-0000-C000-000000000046), + pointer_default(unique) +] +interface ICatInformation : IUnknown +{ + typedef [unique] ICatInformation* LPCATINFORMATION; + + HRESULT EnumCategories( + [in] LCID lcid, + [out] IEnumCATEGORYINFO** ppenumCategoryInfo); + + HRESULT GetCategoryDesc( + [in] REFCATID rcatid, + [in] LCID lcid, + [out] LPWSTR* pszDesc); + + [local] + HRESULT EnumClassesOfCategories( + [in] ULONG cImplemented, + [in,size_is(cImplemented)] const CATID rgcatidImpl[], + [in] ULONG cRequired, + [in,size_is(cRequired)] const CATID rgcatidReq[], + [out] IEnumCLSID** ppenumClsid); + + [call_as(EnumClassesOfCategories)] + HRESULT RemoteEnumClassesOfCategories( + [in] ULONG cImplemented, + [in,unique,size_is(cImplemented)] const CATID rgcatidImpl[], + [in] ULONG cRequired, + [in,unique,size_is(cRequired)] const CATID rgcatidReq[], + [out] IEnumCLSID** ppenumClsid); + + [local] + HRESULT IsClassOfCategories( + [in] REFCLSID rclsid, + [in] ULONG cImplemented, + [in,size_is(cImplemented)] const CATID rgcatidImpl[], + [in] ULONG cRequired, + [in,size_is(cRequired)] const CATID rgcatidReq[]); + + [call_as(IsClassOfCategories)] + HRESULT RemoteIsClassOfCategories( + [in] REFCLSID rclsid, + [in] ULONG cImplemented, + [in,unique,size_is(cImplemented)] const CATID rgcatidImpl[], + [in] ULONG cRequired, + [in,unique,size_is(cRequired)] const CATID rgcatidReq[] ); + + HRESULT EnumImplCategoriesOfClass( + [in] REFCLSID rclsid, + [out] IEnumCATID** ppenumCatid); + + HRESULT EnumReqCategoriesOfClass( + [in] REFCLSID rclsid, + [out] IEnumCATID** ppenumCatid); +} +cpp_quote("#endif") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComSvcs.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComSvcs.h new file mode 100644 index 0000000000000000000000000000000000000000..607bf2048d0b901e4f0c527e0727fda316ac4b3c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ComSvcs.h @@ -0,0 +1,18203 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __autosvcs_h__ +#define __autosvcs_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ISecurityIdentityColl_FWD_DEFINED__ +#define __ISecurityIdentityColl_FWD_DEFINED__ +typedef interface ISecurityIdentityColl ISecurityIdentityColl; + +#endif /* __ISecurityIdentityColl_FWD_DEFINED__ */ + + +#ifndef __ISecurityCallersColl_FWD_DEFINED__ +#define __ISecurityCallersColl_FWD_DEFINED__ +typedef interface ISecurityCallersColl ISecurityCallersColl; + +#endif /* __ISecurityCallersColl_FWD_DEFINED__ */ + + +#ifndef __ISecurityCallContext_FWD_DEFINED__ +#define __ISecurityCallContext_FWD_DEFINED__ +typedef interface ISecurityCallContext ISecurityCallContext; + +#endif /* __ISecurityCallContext_FWD_DEFINED__ */ + + +#ifndef __IGetSecurityCallContext_FWD_DEFINED__ +#define __IGetSecurityCallContext_FWD_DEFINED__ +typedef interface IGetSecurityCallContext IGetSecurityCallContext; + +#endif /* __IGetSecurityCallContext_FWD_DEFINED__ */ + + +#ifndef __SecurityProperty_FWD_DEFINED__ +#define __SecurityProperty_FWD_DEFINED__ +typedef interface SecurityProperty SecurityProperty; + +#endif /* __SecurityProperty_FWD_DEFINED__ */ + + +#ifndef __ContextInfo_FWD_DEFINED__ +#define __ContextInfo_FWD_DEFINED__ +typedef interface ContextInfo ContextInfo; + +#endif /* __ContextInfo_FWD_DEFINED__ */ + + +#ifndef __ContextInfo2_FWD_DEFINED__ +#define __ContextInfo2_FWD_DEFINED__ +typedef interface ContextInfo2 ContextInfo2; + +#endif /* __ContextInfo2_FWD_DEFINED__ */ + + +#ifndef __ObjectContext_FWD_DEFINED__ +#define __ObjectContext_FWD_DEFINED__ +typedef interface ObjectContext ObjectContext; + +#endif /* __ObjectContext_FWD_DEFINED__ */ + + +#ifndef __ITransactionContextEx_FWD_DEFINED__ +#define __ITransactionContextEx_FWD_DEFINED__ +typedef interface ITransactionContextEx ITransactionContextEx; + +#endif /* __ITransactionContextEx_FWD_DEFINED__ */ + + +#ifndef __ITransactionContext_FWD_DEFINED__ +#define __ITransactionContext_FWD_DEFINED__ +typedef interface ITransactionContext ITransactionContext; + +#endif /* __ITransactionContext_FWD_DEFINED__ */ + + +#ifndef __ICreateWithTransactionEx_FWD_DEFINED__ +#define __ICreateWithTransactionEx_FWD_DEFINED__ +typedef interface ICreateWithTransactionEx ICreateWithTransactionEx; + +#endif /* __ICreateWithTransactionEx_FWD_DEFINED__ */ + + +#ifndef __ICreateWithLocalTransaction_FWD_DEFINED__ +#define __ICreateWithLocalTransaction_FWD_DEFINED__ +typedef interface ICreateWithLocalTransaction ICreateWithLocalTransaction; + +#endif /* __ICreateWithLocalTransaction_FWD_DEFINED__ */ + + +#ifndef __ICreateWithTipTransactionEx_FWD_DEFINED__ +#define __ICreateWithTipTransactionEx_FWD_DEFINED__ +typedef interface ICreateWithTipTransactionEx ICreateWithTipTransactionEx; + +#endif /* __ICreateWithTipTransactionEx_FWD_DEFINED__ */ + + +#ifndef __IComLTxEvents_FWD_DEFINED__ +#define __IComLTxEvents_FWD_DEFINED__ +typedef interface IComLTxEvents IComLTxEvents; + +#endif /* __IComLTxEvents_FWD_DEFINED__ */ + + +#ifndef __IComUserEvent_FWD_DEFINED__ +#define __IComUserEvent_FWD_DEFINED__ +typedef interface IComUserEvent IComUserEvent; + +#endif /* __IComUserEvent_FWD_DEFINED__ */ + + +#ifndef __IComThreadEvents_FWD_DEFINED__ +#define __IComThreadEvents_FWD_DEFINED__ +typedef interface IComThreadEvents IComThreadEvents; + +#endif /* __IComThreadEvents_FWD_DEFINED__ */ + + +#ifndef __IComAppEvents_FWD_DEFINED__ +#define __IComAppEvents_FWD_DEFINED__ +typedef interface IComAppEvents IComAppEvents; + +#endif /* __IComAppEvents_FWD_DEFINED__ */ + + +#ifndef __IComInstanceEvents_FWD_DEFINED__ +#define __IComInstanceEvents_FWD_DEFINED__ +typedef interface IComInstanceEvents IComInstanceEvents; + +#endif /* __IComInstanceEvents_FWD_DEFINED__ */ + + +#ifndef __IComTransactionEvents_FWD_DEFINED__ +#define __IComTransactionEvents_FWD_DEFINED__ +typedef interface IComTransactionEvents IComTransactionEvents; + +#endif /* __IComTransactionEvents_FWD_DEFINED__ */ + + +#ifndef __IComMethodEvents_FWD_DEFINED__ +#define __IComMethodEvents_FWD_DEFINED__ +typedef interface IComMethodEvents IComMethodEvents; + +#endif /* __IComMethodEvents_FWD_DEFINED__ */ + + +#ifndef __IComObjectEvents_FWD_DEFINED__ +#define __IComObjectEvents_FWD_DEFINED__ +typedef interface IComObjectEvents IComObjectEvents; + +#endif /* __IComObjectEvents_FWD_DEFINED__ */ + + +#ifndef __IComResourceEvents_FWD_DEFINED__ +#define __IComResourceEvents_FWD_DEFINED__ +typedef interface IComResourceEvents IComResourceEvents; + +#endif /* __IComResourceEvents_FWD_DEFINED__ */ + + +#ifndef __IComSecurityEvents_FWD_DEFINED__ +#define __IComSecurityEvents_FWD_DEFINED__ +typedef interface IComSecurityEvents IComSecurityEvents; + +#endif /* __IComSecurityEvents_FWD_DEFINED__ */ + + +#ifndef __IComObjectPoolEvents_FWD_DEFINED__ +#define __IComObjectPoolEvents_FWD_DEFINED__ +typedef interface IComObjectPoolEvents IComObjectPoolEvents; + +#endif /* __IComObjectPoolEvents_FWD_DEFINED__ */ + + +#ifndef __IComObjectPoolEvents2_FWD_DEFINED__ +#define __IComObjectPoolEvents2_FWD_DEFINED__ +typedef interface IComObjectPoolEvents2 IComObjectPoolEvents2; + +#endif /* __IComObjectPoolEvents2_FWD_DEFINED__ */ + + +#ifndef __IComObjectConstructionEvents_FWD_DEFINED__ +#define __IComObjectConstructionEvents_FWD_DEFINED__ +typedef interface IComObjectConstructionEvents IComObjectConstructionEvents; + +#endif /* __IComObjectConstructionEvents_FWD_DEFINED__ */ + + +#ifndef __IComActivityEvents_FWD_DEFINED__ +#define __IComActivityEvents_FWD_DEFINED__ +typedef interface IComActivityEvents IComActivityEvents; + +#endif /* __IComActivityEvents_FWD_DEFINED__ */ + + +#ifndef __IComIdentityEvents_FWD_DEFINED__ +#define __IComIdentityEvents_FWD_DEFINED__ +typedef interface IComIdentityEvents IComIdentityEvents; + +#endif /* __IComIdentityEvents_FWD_DEFINED__ */ + + +#ifndef __IComQCEvents_FWD_DEFINED__ +#define __IComQCEvents_FWD_DEFINED__ +typedef interface IComQCEvents IComQCEvents; + +#endif /* __IComQCEvents_FWD_DEFINED__ */ + + +#ifndef __IComExceptionEvents_FWD_DEFINED__ +#define __IComExceptionEvents_FWD_DEFINED__ +typedef interface IComExceptionEvents IComExceptionEvents; + +#endif /* __IComExceptionEvents_FWD_DEFINED__ */ + + +#ifndef __ILBEvents_FWD_DEFINED__ +#define __ILBEvents_FWD_DEFINED__ +typedef interface ILBEvents ILBEvents; + +#endif /* __ILBEvents_FWD_DEFINED__ */ + + +#ifndef __IComCRMEvents_FWD_DEFINED__ +#define __IComCRMEvents_FWD_DEFINED__ +typedef interface IComCRMEvents IComCRMEvents; + +#endif /* __IComCRMEvents_FWD_DEFINED__ */ + + +#ifndef __IComMethod2Events_FWD_DEFINED__ +#define __IComMethod2Events_FWD_DEFINED__ +typedef interface IComMethod2Events IComMethod2Events; + +#endif /* __IComMethod2Events_FWD_DEFINED__ */ + + +#ifndef __IComTrackingInfoEvents_FWD_DEFINED__ +#define __IComTrackingInfoEvents_FWD_DEFINED__ +typedef interface IComTrackingInfoEvents IComTrackingInfoEvents; + +#endif /* __IComTrackingInfoEvents_FWD_DEFINED__ */ + + +#ifndef __IComTrackingInfoCollection_FWD_DEFINED__ +#define __IComTrackingInfoCollection_FWD_DEFINED__ +typedef interface IComTrackingInfoCollection IComTrackingInfoCollection; + +#endif /* __IComTrackingInfoCollection_FWD_DEFINED__ */ + + +#ifndef __IComTrackingInfoObject_FWD_DEFINED__ +#define __IComTrackingInfoObject_FWD_DEFINED__ +typedef interface IComTrackingInfoObject IComTrackingInfoObject; + +#endif /* __IComTrackingInfoObject_FWD_DEFINED__ */ + + +#ifndef __IComTrackingInfoProperties_FWD_DEFINED__ +#define __IComTrackingInfoProperties_FWD_DEFINED__ +typedef interface IComTrackingInfoProperties IComTrackingInfoProperties; + +#endif /* __IComTrackingInfoProperties_FWD_DEFINED__ */ + + +#ifndef __IComApp2Events_FWD_DEFINED__ +#define __IComApp2Events_FWD_DEFINED__ +typedef interface IComApp2Events IComApp2Events; + +#endif /* __IComApp2Events_FWD_DEFINED__ */ + + +#ifndef __IComTransaction2Events_FWD_DEFINED__ +#define __IComTransaction2Events_FWD_DEFINED__ +typedef interface IComTransaction2Events IComTransaction2Events; + +#endif /* __IComTransaction2Events_FWD_DEFINED__ */ + + +#ifndef __IComInstance2Events_FWD_DEFINED__ +#define __IComInstance2Events_FWD_DEFINED__ +typedef interface IComInstance2Events IComInstance2Events; + +#endif /* __IComInstance2Events_FWD_DEFINED__ */ + + +#ifndef __IComObjectPool2Events_FWD_DEFINED__ +#define __IComObjectPool2Events_FWD_DEFINED__ +typedef interface IComObjectPool2Events IComObjectPool2Events; + +#endif /* __IComObjectPool2Events_FWD_DEFINED__ */ + + +#ifndef __IComObjectConstruction2Events_FWD_DEFINED__ +#define __IComObjectConstruction2Events_FWD_DEFINED__ +typedef interface IComObjectConstruction2Events IComObjectConstruction2Events; + +#endif /* __IComObjectConstruction2Events_FWD_DEFINED__ */ + + +#ifndef __ISystemAppEventData_FWD_DEFINED__ +#define __ISystemAppEventData_FWD_DEFINED__ +typedef interface ISystemAppEventData ISystemAppEventData; + +#endif /* __ISystemAppEventData_FWD_DEFINED__ */ + + +#ifndef __IMtsEvents_FWD_DEFINED__ +#define __IMtsEvents_FWD_DEFINED__ +typedef interface IMtsEvents IMtsEvents; + +#endif /* __IMtsEvents_FWD_DEFINED__ */ + + +#ifndef __IMtsEventInfo_FWD_DEFINED__ +#define __IMtsEventInfo_FWD_DEFINED__ +typedef interface IMtsEventInfo IMtsEventInfo; + +#endif /* __IMtsEventInfo_FWD_DEFINED__ */ + + +#ifndef __IMTSLocator_FWD_DEFINED__ +#define __IMTSLocator_FWD_DEFINED__ +typedef interface IMTSLocator IMTSLocator; + +#endif /* __IMTSLocator_FWD_DEFINED__ */ + + +#ifndef __IMtsGrp_FWD_DEFINED__ +#define __IMtsGrp_FWD_DEFINED__ +typedef interface IMtsGrp IMtsGrp; + +#endif /* __IMtsGrp_FWD_DEFINED__ */ + + +#ifndef __IMessageMover_FWD_DEFINED__ +#define __IMessageMover_FWD_DEFINED__ +typedef interface IMessageMover IMessageMover; + +#endif /* __IMessageMover_FWD_DEFINED__ */ + + +#ifndef __IEventServerTrace_FWD_DEFINED__ +#define __IEventServerTrace_FWD_DEFINED__ +typedef interface IEventServerTrace IEventServerTrace; + +#endif /* __IEventServerTrace_FWD_DEFINED__ */ + + +#ifndef __IGetAppTrackerData_FWD_DEFINED__ +#define __IGetAppTrackerData_FWD_DEFINED__ +typedef interface IGetAppTrackerData IGetAppTrackerData; + +#endif /* __IGetAppTrackerData_FWD_DEFINED__ */ + + +#ifndef __IDispenserManager_FWD_DEFINED__ +#define __IDispenserManager_FWD_DEFINED__ +typedef interface IDispenserManager IDispenserManager; + +#endif /* __IDispenserManager_FWD_DEFINED__ */ + + +#ifndef __IHolder_FWD_DEFINED__ +#define __IHolder_FWD_DEFINED__ +typedef interface IHolder IHolder; + +#endif /* __IHolder_FWD_DEFINED__ */ + + +#ifndef __IDispenserDriver_FWD_DEFINED__ +#define __IDispenserDriver_FWD_DEFINED__ +typedef interface IDispenserDriver IDispenserDriver; + +#endif /* __IDispenserDriver_FWD_DEFINED__ */ + + +#ifndef __ITransactionProxy_FWD_DEFINED__ +#define __ITransactionProxy_FWD_DEFINED__ +typedef interface ITransactionProxy ITransactionProxy; + +#endif /* __ITransactionProxy_FWD_DEFINED__ */ + + +#ifndef __IContextSecurityPerimeter_FWD_DEFINED__ +#define __IContextSecurityPerimeter_FWD_DEFINED__ +typedef interface IContextSecurityPerimeter IContextSecurityPerimeter; + +#endif /* __IContextSecurityPerimeter_FWD_DEFINED__ */ + + +#ifndef __ITxProxyHolder_FWD_DEFINED__ +#define __ITxProxyHolder_FWD_DEFINED__ +typedef interface ITxProxyHolder ITxProxyHolder; + +#endif /* __ITxProxyHolder_FWD_DEFINED__ */ + + +#ifndef __IObjectContext_FWD_DEFINED__ +#define __IObjectContext_FWD_DEFINED__ +typedef interface IObjectContext IObjectContext; + +#endif /* __IObjectContext_FWD_DEFINED__ */ + + +#ifndef __IObjectControl_FWD_DEFINED__ +#define __IObjectControl_FWD_DEFINED__ +typedef interface IObjectControl IObjectControl; + +#endif /* __IObjectControl_FWD_DEFINED__ */ + + +#ifndef __IEnumNames_FWD_DEFINED__ +#define __IEnumNames_FWD_DEFINED__ +typedef interface IEnumNames IEnumNames; + +#endif /* __IEnumNames_FWD_DEFINED__ */ + + +#ifndef __ISecurityProperty_FWD_DEFINED__ +#define __ISecurityProperty_FWD_DEFINED__ +typedef interface ISecurityProperty ISecurityProperty; + +#endif /* __ISecurityProperty_FWD_DEFINED__ */ + + +#ifndef __ObjectControl_FWD_DEFINED__ +#define __ObjectControl_FWD_DEFINED__ +typedef interface ObjectControl ObjectControl; + +#endif /* __ObjectControl_FWD_DEFINED__ */ + + +#ifndef __ISharedProperty_FWD_DEFINED__ +#define __ISharedProperty_FWD_DEFINED__ +typedef interface ISharedProperty ISharedProperty; + +#endif /* __ISharedProperty_FWD_DEFINED__ */ + + +#ifndef __ISharedPropertyGroup_FWD_DEFINED__ +#define __ISharedPropertyGroup_FWD_DEFINED__ +typedef interface ISharedPropertyGroup ISharedPropertyGroup; + +#endif /* __ISharedPropertyGroup_FWD_DEFINED__ */ + + +#ifndef __ISharedPropertyGroupManager_FWD_DEFINED__ +#define __ISharedPropertyGroupManager_FWD_DEFINED__ +typedef interface ISharedPropertyGroupManager ISharedPropertyGroupManager; + +#endif /* __ISharedPropertyGroupManager_FWD_DEFINED__ */ + + +#ifndef __IObjectConstruct_FWD_DEFINED__ +#define __IObjectConstruct_FWD_DEFINED__ +typedef interface IObjectConstruct IObjectConstruct; + +#endif /* __IObjectConstruct_FWD_DEFINED__ */ + + +#ifndef __IObjectConstructString_FWD_DEFINED__ +#define __IObjectConstructString_FWD_DEFINED__ +typedef interface IObjectConstructString IObjectConstructString; + +#endif /* __IObjectConstructString_FWD_DEFINED__ */ + + +#ifndef __IObjectContextActivity_FWD_DEFINED__ +#define __IObjectContextActivity_FWD_DEFINED__ +typedef interface IObjectContextActivity IObjectContextActivity; + +#endif /* __IObjectContextActivity_FWD_DEFINED__ */ + + +#ifndef __IObjectContextInfo_FWD_DEFINED__ +#define __IObjectContextInfo_FWD_DEFINED__ +typedef interface IObjectContextInfo IObjectContextInfo; + +#endif /* __IObjectContextInfo_FWD_DEFINED__ */ + + +#ifndef __IObjectContextInfo2_FWD_DEFINED__ +#define __IObjectContextInfo2_FWD_DEFINED__ +typedef interface IObjectContextInfo2 IObjectContextInfo2; + +#endif /* __IObjectContextInfo2_FWD_DEFINED__ */ + + +#ifndef __ITransactionStatus_FWD_DEFINED__ +#define __ITransactionStatus_FWD_DEFINED__ +typedef interface ITransactionStatus ITransactionStatus; + +#endif /* __ITransactionStatus_FWD_DEFINED__ */ + + +#ifndef __IObjectContextTip_FWD_DEFINED__ +#define __IObjectContextTip_FWD_DEFINED__ +typedef interface IObjectContextTip IObjectContextTip; + +#endif /* __IObjectContextTip_FWD_DEFINED__ */ + + +#ifndef __IPlaybackControl_FWD_DEFINED__ +#define __IPlaybackControl_FWD_DEFINED__ +typedef interface IPlaybackControl IPlaybackControl; + +#endif /* __IPlaybackControl_FWD_DEFINED__ */ + + +#ifndef __IGetContextProperties_FWD_DEFINED__ +#define __IGetContextProperties_FWD_DEFINED__ +typedef interface IGetContextProperties IGetContextProperties; + +#endif /* __IGetContextProperties_FWD_DEFINED__ */ + + +#ifndef __IContextState_FWD_DEFINED__ +#define __IContextState_FWD_DEFINED__ +typedef interface IContextState IContextState; + +#endif /* __IContextState_FWD_DEFINED__ */ + + +#ifndef __IPoolManager_FWD_DEFINED__ +#define __IPoolManager_FWD_DEFINED__ +typedef interface IPoolManager IPoolManager; + +#endif /* __IPoolManager_FWD_DEFINED__ */ + + +#ifndef __ISelectCOMLBServer_FWD_DEFINED__ +#define __ISelectCOMLBServer_FWD_DEFINED__ +typedef interface ISelectCOMLBServer ISelectCOMLBServer; + +#endif /* __ISelectCOMLBServer_FWD_DEFINED__ */ + + +#ifndef __ICOMLBArguments_FWD_DEFINED__ +#define __ICOMLBArguments_FWD_DEFINED__ +typedef interface ICOMLBArguments ICOMLBArguments; + +#endif /* __ICOMLBArguments_FWD_DEFINED__ */ + + +#ifndef __ICrmLogControl_FWD_DEFINED__ +#define __ICrmLogControl_FWD_DEFINED__ +typedef interface ICrmLogControl ICrmLogControl; + +#endif /* __ICrmLogControl_FWD_DEFINED__ */ + + +#ifndef __ICrmCompensatorVariants_FWD_DEFINED__ +#define __ICrmCompensatorVariants_FWD_DEFINED__ +typedef interface ICrmCompensatorVariants ICrmCompensatorVariants; + +#endif /* __ICrmCompensatorVariants_FWD_DEFINED__ */ + + +#ifndef __ICrmCompensator_FWD_DEFINED__ +#define __ICrmCompensator_FWD_DEFINED__ +typedef interface ICrmCompensator ICrmCompensator; + +#endif /* __ICrmCompensator_FWD_DEFINED__ */ + + +#ifndef __ICrmMonitorLogRecords_FWD_DEFINED__ +#define __ICrmMonitorLogRecords_FWD_DEFINED__ +typedef interface ICrmMonitorLogRecords ICrmMonitorLogRecords; + +#endif /* __ICrmMonitorLogRecords_FWD_DEFINED__ */ + + +#ifndef __ICrmMonitorClerks_FWD_DEFINED__ +#define __ICrmMonitorClerks_FWD_DEFINED__ +typedef interface ICrmMonitorClerks ICrmMonitorClerks; + +#endif /* __ICrmMonitorClerks_FWD_DEFINED__ */ + + +#ifndef __ICrmMonitor_FWD_DEFINED__ +#define __ICrmMonitor_FWD_DEFINED__ +typedef interface ICrmMonitor ICrmMonitor; + +#endif /* __ICrmMonitor_FWD_DEFINED__ */ + + +#ifndef __ICrmFormatLogRecords_FWD_DEFINED__ +#define __ICrmFormatLogRecords_FWD_DEFINED__ +typedef interface ICrmFormatLogRecords ICrmFormatLogRecords; + +#endif /* __ICrmFormatLogRecords_FWD_DEFINED__ */ + + +#ifndef __IServiceIISIntrinsicsConfig_FWD_DEFINED__ +#define __IServiceIISIntrinsicsConfig_FWD_DEFINED__ +typedef interface IServiceIISIntrinsicsConfig IServiceIISIntrinsicsConfig; + +#endif /* __IServiceIISIntrinsicsConfig_FWD_DEFINED__ */ + + +#ifndef __IServiceComTIIntrinsicsConfig_FWD_DEFINED__ +#define __IServiceComTIIntrinsicsConfig_FWD_DEFINED__ +typedef interface IServiceComTIIntrinsicsConfig IServiceComTIIntrinsicsConfig; + +#endif /* __IServiceComTIIntrinsicsConfig_FWD_DEFINED__ */ + + +#ifndef __IServiceSxsConfig_FWD_DEFINED__ +#define __IServiceSxsConfig_FWD_DEFINED__ +typedef interface IServiceSxsConfig IServiceSxsConfig; + +#endif /* __IServiceSxsConfig_FWD_DEFINED__ */ + + +#ifndef __ICheckSxsConfig_FWD_DEFINED__ +#define __ICheckSxsConfig_FWD_DEFINED__ +typedef interface ICheckSxsConfig ICheckSxsConfig; + +#endif /* __ICheckSxsConfig_FWD_DEFINED__ */ + + +#ifndef __IServiceInheritanceConfig_FWD_DEFINED__ +#define __IServiceInheritanceConfig_FWD_DEFINED__ +typedef interface IServiceInheritanceConfig IServiceInheritanceConfig; + +#endif /* __IServiceInheritanceConfig_FWD_DEFINED__ */ + + +#ifndef __IServiceThreadPoolConfig_FWD_DEFINED__ +#define __IServiceThreadPoolConfig_FWD_DEFINED__ +typedef interface IServiceThreadPoolConfig IServiceThreadPoolConfig; + +#endif /* __IServiceThreadPoolConfig_FWD_DEFINED__ */ + + +#ifndef __IServiceTransactionConfigBase_FWD_DEFINED__ +#define __IServiceTransactionConfigBase_FWD_DEFINED__ +typedef interface IServiceTransactionConfigBase IServiceTransactionConfigBase; + +#endif /* __IServiceTransactionConfigBase_FWD_DEFINED__ */ + + +#ifndef __IServiceTransactionConfig_FWD_DEFINED__ +#define __IServiceTransactionConfig_FWD_DEFINED__ +typedef interface IServiceTransactionConfig IServiceTransactionConfig; + +#endif /* __IServiceTransactionConfig_FWD_DEFINED__ */ + + +#ifndef __IServiceSysTxnConfig_FWD_DEFINED__ +#define __IServiceSysTxnConfig_FWD_DEFINED__ +typedef interface IServiceSysTxnConfig IServiceSysTxnConfig; + +#endif /* __IServiceSysTxnConfig_FWD_DEFINED__ */ + + +#ifndef __IServiceSynchronizationConfig_FWD_DEFINED__ +#define __IServiceSynchronizationConfig_FWD_DEFINED__ +typedef interface IServiceSynchronizationConfig IServiceSynchronizationConfig; + +#endif /* __IServiceSynchronizationConfig_FWD_DEFINED__ */ + + +#ifndef __IServiceTrackerConfig_FWD_DEFINED__ +#define __IServiceTrackerConfig_FWD_DEFINED__ +typedef interface IServiceTrackerConfig IServiceTrackerConfig; + +#endif /* __IServiceTrackerConfig_FWD_DEFINED__ */ + + +#ifndef __IServicePartitionConfig_FWD_DEFINED__ +#define __IServicePartitionConfig_FWD_DEFINED__ +typedef interface IServicePartitionConfig IServicePartitionConfig; + +#endif /* __IServicePartitionConfig_FWD_DEFINED__ */ + + +#ifndef __IServiceCall_FWD_DEFINED__ +#define __IServiceCall_FWD_DEFINED__ +typedef interface IServiceCall IServiceCall; + +#endif /* __IServiceCall_FWD_DEFINED__ */ + + +#ifndef __IAsyncErrorNotify_FWD_DEFINED__ +#define __IAsyncErrorNotify_FWD_DEFINED__ +typedef interface IAsyncErrorNotify IAsyncErrorNotify; + +#endif /* __IAsyncErrorNotify_FWD_DEFINED__ */ + + +#ifndef __IServiceActivity_FWD_DEFINED__ +#define __IServiceActivity_FWD_DEFINED__ +typedef interface IServiceActivity IServiceActivity; + +#endif /* __IServiceActivity_FWD_DEFINED__ */ + + +#ifndef __IThreadPoolKnobs_FWD_DEFINED__ +#define __IThreadPoolKnobs_FWD_DEFINED__ +typedef interface IThreadPoolKnobs IThreadPoolKnobs; + +#endif /* __IThreadPoolKnobs_FWD_DEFINED__ */ + + +#ifndef __IComStaThreadPoolKnobs_FWD_DEFINED__ +#define __IComStaThreadPoolKnobs_FWD_DEFINED__ +typedef interface IComStaThreadPoolKnobs IComStaThreadPoolKnobs; + +#endif /* __IComStaThreadPoolKnobs_FWD_DEFINED__ */ + + +#ifndef __IComMtaThreadPoolKnobs_FWD_DEFINED__ +#define __IComMtaThreadPoolKnobs_FWD_DEFINED__ +typedef interface IComMtaThreadPoolKnobs IComMtaThreadPoolKnobs; + +#endif /* __IComMtaThreadPoolKnobs_FWD_DEFINED__ */ + + +#ifndef __IComStaThreadPoolKnobs2_FWD_DEFINED__ +#define __IComStaThreadPoolKnobs2_FWD_DEFINED__ +typedef interface IComStaThreadPoolKnobs2 IComStaThreadPoolKnobs2; + +#endif /* __IComStaThreadPoolKnobs2_FWD_DEFINED__ */ + + +#ifndef __IProcessInitializer_FWD_DEFINED__ +#define __IProcessInitializer_FWD_DEFINED__ +typedef interface IProcessInitializer IProcessInitializer; + +#endif /* __IProcessInitializer_FWD_DEFINED__ */ + + +#ifndef __IServicePoolConfig_FWD_DEFINED__ +#define __IServicePoolConfig_FWD_DEFINED__ +typedef interface IServicePoolConfig IServicePoolConfig; + +#endif /* __IServicePoolConfig_FWD_DEFINED__ */ + + +#ifndef __IServicePool_FWD_DEFINED__ +#define __IServicePool_FWD_DEFINED__ +typedef interface IServicePool IServicePool; + +#endif /* __IServicePool_FWD_DEFINED__ */ + + +#ifndef __IManagedPooledObj_FWD_DEFINED__ +#define __IManagedPooledObj_FWD_DEFINED__ +typedef interface IManagedPooledObj IManagedPooledObj; + +#endif /* __IManagedPooledObj_FWD_DEFINED__ */ + + +#ifndef __IManagedPoolAction_FWD_DEFINED__ +#define __IManagedPoolAction_FWD_DEFINED__ +typedef interface IManagedPoolAction IManagedPoolAction; + +#endif /* __IManagedPoolAction_FWD_DEFINED__ */ + + +#ifndef __IManagedObjectInfo_FWD_DEFINED__ +#define __IManagedObjectInfo_FWD_DEFINED__ +typedef interface IManagedObjectInfo IManagedObjectInfo; + +#endif /* __IManagedObjectInfo_FWD_DEFINED__ */ + + +#ifndef __IAppDomainHelper_FWD_DEFINED__ +#define __IAppDomainHelper_FWD_DEFINED__ +typedef interface IAppDomainHelper IAppDomainHelper; + +#endif /* __IAppDomainHelper_FWD_DEFINED__ */ + + +#ifndef __IAssemblyLocator_FWD_DEFINED__ +#define __IAssemblyLocator_FWD_DEFINED__ +typedef interface IAssemblyLocator IAssemblyLocator; + +#endif /* __IAssemblyLocator_FWD_DEFINED__ */ + + +#ifndef __IManagedActivationEvents_FWD_DEFINED__ +#define __IManagedActivationEvents_FWD_DEFINED__ +typedef interface IManagedActivationEvents IManagedActivationEvents; + +#endif /* __IManagedActivationEvents_FWD_DEFINED__ */ + + +#ifndef __ISendMethodEvents_FWD_DEFINED__ +#define __ISendMethodEvents_FWD_DEFINED__ +typedef interface ISendMethodEvents ISendMethodEvents; + +#endif /* __ISendMethodEvents_FWD_DEFINED__ */ + + +#ifndef __ITransactionResourcePool_FWD_DEFINED__ +#define __ITransactionResourcePool_FWD_DEFINED__ +typedef interface ITransactionResourcePool ITransactionResourcePool; + +#endif /* __ITransactionResourcePool_FWD_DEFINED__ */ + + +#ifndef __IMTSCall_FWD_DEFINED__ +#define __IMTSCall_FWD_DEFINED__ +typedef interface IMTSCall IMTSCall; + +#endif /* __IMTSCall_FWD_DEFINED__ */ + + +#ifndef __IContextProperties_FWD_DEFINED__ +#define __IContextProperties_FWD_DEFINED__ +typedef interface IContextProperties IContextProperties; + +#endif /* __IContextProperties_FWD_DEFINED__ */ + + +#ifndef __IObjPool_FWD_DEFINED__ +#define __IObjPool_FWD_DEFINED__ +typedef interface IObjPool IObjPool; + +#endif /* __IObjPool_FWD_DEFINED__ */ + + +#ifndef __ITransactionProperty_FWD_DEFINED__ +#define __ITransactionProperty_FWD_DEFINED__ +typedef interface ITransactionProperty ITransactionProperty; + +#endif /* __ITransactionProperty_FWD_DEFINED__ */ + + +#ifndef __IMTSActivity_FWD_DEFINED__ +#define __IMTSActivity_FWD_DEFINED__ +typedef interface IMTSActivity IMTSActivity; + +#endif /* __IMTSActivity_FWD_DEFINED__ */ + + +#ifndef __SecurityIdentity_FWD_DEFINED__ +#define __SecurityIdentity_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SecurityIdentity SecurityIdentity; +#else +typedef struct SecurityIdentity SecurityIdentity; +#endif /* __cplusplus */ + +#endif /* __SecurityIdentity_FWD_DEFINED__ */ + + +#ifndef __SecurityCallers_FWD_DEFINED__ +#define __SecurityCallers_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SecurityCallers SecurityCallers; +#else +typedef struct SecurityCallers SecurityCallers; +#endif /* __cplusplus */ + +#endif /* __SecurityCallers_FWD_DEFINED__ */ + + +#ifndef __SecurityCallContext_FWD_DEFINED__ +#define __SecurityCallContext_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SecurityCallContext SecurityCallContext; +#else +typedef struct SecurityCallContext SecurityCallContext; +#endif /* __cplusplus */ + +#endif /* __SecurityCallContext_FWD_DEFINED__ */ + + +#ifndef __GetSecurityCallContextAppObject_FWD_DEFINED__ +#define __GetSecurityCallContextAppObject_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GetSecurityCallContextAppObject GetSecurityCallContextAppObject; +#else +typedef struct GetSecurityCallContextAppObject GetSecurityCallContextAppObject; +#endif /* __cplusplus */ + +#endif /* __GetSecurityCallContextAppObject_FWD_DEFINED__ */ + + +#ifndef __IContextState_FWD_DEFINED__ +#define __IContextState_FWD_DEFINED__ +typedef interface IContextState IContextState; + +#endif /* __IContextState_FWD_DEFINED__ */ + + +#ifndef __Dummy30040732_FWD_DEFINED__ +#define __Dummy30040732_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Dummy30040732 Dummy30040732; +#else +typedef struct Dummy30040732 Dummy30040732; +#endif /* __cplusplus */ + +#endif /* __Dummy30040732_FWD_DEFINED__ */ + + +#ifndef __ContextInfo_FWD_DEFINED__ +#define __ContextInfo_FWD_DEFINED__ +typedef interface ContextInfo ContextInfo; + +#endif /* __ContextInfo_FWD_DEFINED__ */ + + +#ifndef __ContextInfo2_FWD_DEFINED__ +#define __ContextInfo2_FWD_DEFINED__ +typedef interface ContextInfo2 ContextInfo2; + +#endif /* __ContextInfo2_FWD_DEFINED__ */ + + +#ifndef __ObjectControl_FWD_DEFINED__ +#define __ObjectControl_FWD_DEFINED__ +typedef interface ObjectControl ObjectControl; + +#endif /* __ObjectControl_FWD_DEFINED__ */ + + +#ifndef __TransactionContext_FWD_DEFINED__ +#define __TransactionContext_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class TransactionContext TransactionContext; +#else +typedef struct TransactionContext TransactionContext; +#endif /* __cplusplus */ + +#endif /* __TransactionContext_FWD_DEFINED__ */ + + +#ifndef __TransactionContextEx_FWD_DEFINED__ +#define __TransactionContextEx_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class TransactionContextEx TransactionContextEx; +#else +typedef struct TransactionContextEx TransactionContextEx; +#endif /* __cplusplus */ + +#endif /* __TransactionContextEx_FWD_DEFINED__ */ + + +#ifndef __ByotServerEx_FWD_DEFINED__ +#define __ByotServerEx_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ByotServerEx ByotServerEx; +#else +typedef struct ByotServerEx ByotServerEx; +#endif /* __cplusplus */ + +#endif /* __ByotServerEx_FWD_DEFINED__ */ + + +#ifndef __CServiceConfig_FWD_DEFINED__ +#define __CServiceConfig_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CServiceConfig CServiceConfig; +#else +typedef struct CServiceConfig CServiceConfig; +#endif /* __cplusplus */ + +#endif /* __CServiceConfig_FWD_DEFINED__ */ + + +#ifndef __ServicePool_FWD_DEFINED__ +#define __ServicePool_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ServicePool ServicePool; +#else +typedef struct ServicePool ServicePool; +#endif /* __cplusplus */ + +#endif /* __ServicePool_FWD_DEFINED__ */ + + +#ifndef __ServicePoolConfig_FWD_DEFINED__ +#define __ServicePoolConfig_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ServicePoolConfig ServicePoolConfig; +#else +typedef struct ServicePoolConfig ServicePoolConfig; +#endif /* __cplusplus */ + +#endif /* __ServicePoolConfig_FWD_DEFINED__ */ + + +#ifndef __SharedProperty_FWD_DEFINED__ +#define __SharedProperty_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SharedProperty SharedProperty; +#else +typedef struct SharedProperty SharedProperty; +#endif /* __cplusplus */ + +#endif /* __SharedProperty_FWD_DEFINED__ */ + + +#ifndef __SharedPropertyGroup_FWD_DEFINED__ +#define __SharedPropertyGroup_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SharedPropertyGroup SharedPropertyGroup; +#else +typedef struct SharedPropertyGroup SharedPropertyGroup; +#endif /* __cplusplus */ + +#endif /* __SharedPropertyGroup_FWD_DEFINED__ */ + + +#ifndef __SharedPropertyGroupManager_FWD_DEFINED__ +#define __SharedPropertyGroupManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SharedPropertyGroupManager SharedPropertyGroupManager; +#else +typedef struct SharedPropertyGroupManager SharedPropertyGroupManager; +#endif /* __cplusplus */ + +#endif /* __SharedPropertyGroupManager_FWD_DEFINED__ */ + + +#ifndef __COMEvents_FWD_DEFINED__ +#define __COMEvents_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class COMEvents COMEvents; +#else +typedef struct COMEvents COMEvents; +#endif /* __cplusplus */ + +#endif /* __COMEvents_FWD_DEFINED__ */ + + +#ifndef __CoMTSLocator_FWD_DEFINED__ +#define __CoMTSLocator_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CoMTSLocator CoMTSLocator; +#else +typedef struct CoMTSLocator CoMTSLocator; +#endif /* __cplusplus */ + +#endif /* __CoMTSLocator_FWD_DEFINED__ */ + + +#ifndef __MtsGrp_FWD_DEFINED__ +#define __MtsGrp_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MtsGrp MtsGrp; +#else +typedef struct MtsGrp MtsGrp; +#endif /* __cplusplus */ + +#endif /* __MtsGrp_FWD_DEFINED__ */ + + +#ifndef __ComServiceEvents_FWD_DEFINED__ +#define __ComServiceEvents_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ComServiceEvents ComServiceEvents; +#else +typedef struct ComServiceEvents ComServiceEvents; +#endif /* __cplusplus */ + +#endif /* __ComServiceEvents_FWD_DEFINED__ */ + + +#ifndef __ComSystemAppEventData_FWD_DEFINED__ +#define __ComSystemAppEventData_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ComSystemAppEventData ComSystemAppEventData; +#else +typedef struct ComSystemAppEventData ComSystemAppEventData; +#endif /* __cplusplus */ + +#endif /* __ComSystemAppEventData_FWD_DEFINED__ */ + + +#ifndef __CRMClerk_FWD_DEFINED__ +#define __CRMClerk_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CRMClerk CRMClerk; +#else +typedef struct CRMClerk CRMClerk; +#endif /* __cplusplus */ + +#endif /* __CRMClerk_FWD_DEFINED__ */ + + +#ifndef __CRMRecoveryClerk_FWD_DEFINED__ +#define __CRMRecoveryClerk_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CRMRecoveryClerk CRMRecoveryClerk; +#else +typedef struct CRMRecoveryClerk CRMRecoveryClerk; +#endif /* __cplusplus */ + +#endif /* __CRMRecoveryClerk_FWD_DEFINED__ */ + + +#ifndef __LBEvents_FWD_DEFINED__ +#define __LBEvents_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class LBEvents LBEvents; +#else +typedef struct LBEvents LBEvents; +#endif /* __cplusplus */ + +#endif /* __LBEvents_FWD_DEFINED__ */ + + +#ifndef __MessageMover_FWD_DEFINED__ +#define __MessageMover_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MessageMover MessageMover; +#else +typedef struct MessageMover MessageMover; +#endif /* __cplusplus */ + +#endif /* __MessageMover_FWD_DEFINED__ */ + + +#ifndef __DispenserManager_FWD_DEFINED__ +#define __DispenserManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DispenserManager DispenserManager; +#else +typedef struct DispenserManager DispenserManager; +#endif /* __cplusplus */ + +#endif /* __DispenserManager_FWD_DEFINED__ */ + + +#ifndef __PoolMgr_FWD_DEFINED__ +#define __PoolMgr_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PoolMgr PoolMgr; +#else +typedef struct PoolMgr PoolMgr; +#endif /* __cplusplus */ + +#endif /* __PoolMgr_FWD_DEFINED__ */ + + +#ifndef __EventServer_FWD_DEFINED__ +#define __EventServer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EventServer EventServer; +#else +typedef struct EventServer EventServer; +#endif /* __cplusplus */ + +#endif /* __EventServer_FWD_DEFINED__ */ + + +#ifndef __TrackerServer_FWD_DEFINED__ +#define __TrackerServer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class TrackerServer TrackerServer; +#else +typedef struct TrackerServer TrackerServer; +#endif /* __cplusplus */ + +#endif /* __TrackerServer_FWD_DEFINED__ */ + + +#ifndef __AppDomainHelper_FWD_DEFINED__ +#define __AppDomainHelper_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AppDomainHelper AppDomainHelper; +#else +typedef struct AppDomainHelper AppDomainHelper; +#endif /* __cplusplus */ + +#endif /* __AppDomainHelper_FWD_DEFINED__ */ + + +#ifndef __ClrAssemblyLocator_FWD_DEFINED__ +#define __ClrAssemblyLocator_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ClrAssemblyLocator ClrAssemblyLocator; +#else +typedef struct ClrAssemblyLocator ClrAssemblyLocator; +#endif /* __cplusplus */ + +#endif /* __ClrAssemblyLocator_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "oaidl.h" +#include "ocidl.h" +#include "comadmin.h" +#include "transact.h" +#include "txdtc.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_autosvcs_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// ----------------------------------------------------------------------- +// svcintfs.h -- Microsoft COM+ Services 1.0 Programming Interfaces +// +// This file provides the prototypes for the APIs and COM interfaces +// for applications using COM+ Services. +// +// COM+ Services 1.0 +// Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved. +// ----------------------------------------------------------------------- +#include +#ifndef DECLSPEC_UUID +#if (_MSC_VER >= 1100) && defined (__cplusplus) +#define DECLSPEC_UUID(x) __declspec(uuid(x)) +#else +#define DECLSPEC_UUID(x) +#endif +#endif + + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0000_v0_0_s_ifspec; + +#ifndef __ISecurityIdentityColl_INTERFACE_DEFINED__ +#define __ISecurityIdentityColl_INTERFACE_DEFINED__ + +/* interface ISecurityIdentityColl */ +/* [unique][helpcontext][helpstring][oleautomation][dual][uuid][object] */ + + +EXTERN_C const IID IID_ISecurityIdentityColl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CAFC823C-B441-11d1-B82B-0000F8757E2A") + ISecurityIdentityColl : public IDispatch + { + public: + virtual /* [helpstring][propget][helpcontext][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [helpstring][helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__out VARIANT *pItem) = 0; + + virtual /* [helpstring][helpcontext][restricted][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISecurityIdentityCollVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISecurityIdentityColl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISecurityIdentityColl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISecurityIdentityColl * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISecurityIdentityColl * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISecurityIdentityColl * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISecurityIdentityColl * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISecurityIdentityColl * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISecurityIdentityColl, get_Count) + /* [helpstring][propget][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ISecurityIdentityColl * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(ISecurityIdentityColl, get_Item) + /* [helpstring][helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ISecurityIdentityColl * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__out VARIANT *pItem); + + DECLSPEC_XFGVIRT(ISecurityIdentityColl, get__NewEnum) + /* [helpstring][helpcontext][restricted][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ISecurityIdentityColl * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnum); + + END_INTERFACE + } ISecurityIdentityCollVtbl; + + interface ISecurityIdentityColl + { + CONST_VTBL struct ISecurityIdentityCollVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISecurityIdentityColl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISecurityIdentityColl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISecurityIdentityColl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISecurityIdentityColl_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISecurityIdentityColl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISecurityIdentityColl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISecurityIdentityColl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISecurityIdentityColl_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define ISecurityIdentityColl_get_Item(This,name,pItem) \ + ( (This)->lpVtbl -> get_Item(This,name,pItem) ) + +#define ISecurityIdentityColl_get__NewEnum(This,ppEnum) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISecurityIdentityColl_INTERFACE_DEFINED__ */ + + +#ifndef __ISecurityCallersColl_INTERFACE_DEFINED__ +#define __ISecurityCallersColl_INTERFACE_DEFINED__ + +/* interface ISecurityCallersColl */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ISecurityCallersColl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CAFC823D-B441-11d1-B82B-0000F8757E2A") + ISecurityCallersColl : public IDispatch + { + public: + virtual /* [helpstring][propget][helpcontext][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [helpstring][helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__deref_out_opt ISecurityIdentityColl **pObj) = 0; + + virtual /* [helpstring][helpcontext][restricted][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISecurityCallersCollVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISecurityCallersColl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISecurityCallersColl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISecurityCallersColl * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISecurityCallersColl * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISecurityCallersColl * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISecurityCallersColl * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISecurityCallersColl * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISecurityCallersColl, get_Count) + /* [helpstring][propget][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ISecurityCallersColl * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(ISecurityCallersColl, get_Item) + /* [helpstring][helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ISecurityCallersColl * This, + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__deref_out_opt ISecurityIdentityColl **pObj); + + DECLSPEC_XFGVIRT(ISecurityCallersColl, get__NewEnum) + /* [helpstring][helpcontext][restricted][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ISecurityCallersColl * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnum); + + END_INTERFACE + } ISecurityCallersCollVtbl; + + interface ISecurityCallersColl + { + CONST_VTBL struct ISecurityCallersCollVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISecurityCallersColl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISecurityCallersColl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISecurityCallersColl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISecurityCallersColl_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISecurityCallersColl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISecurityCallersColl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISecurityCallersColl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISecurityCallersColl_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define ISecurityCallersColl_get_Item(This,lIndex,pObj) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pObj) ) + +#define ISecurityCallersColl_get__NewEnum(This,ppEnum) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISecurityCallersColl_INTERFACE_DEFINED__ */ + + +#ifndef __ISecurityCallContext_INTERFACE_DEFINED__ +#define __ISecurityCallContext_INTERFACE_DEFINED__ + +/* interface ISecurityCallContext */ +/* [unique][helpcontext][helpstring][oleautomation][dual][uuid][object] */ + + +EXTERN_C const IID IID_ISecurityCallContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CAFC823E-B441-11d1-B82B-0000F8757E2A") + ISecurityCallContext : public IDispatch + { + public: + virtual /* [helpstring][propget][helpcontext][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [helpstring][helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__out VARIANT *pItem) = 0; + + virtual /* [helpstring][helpcontext][restricted][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnum) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE IsCallerInRole( + __RPC__in BSTR bstrRole, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfInRole) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE IsSecurityEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsEnabled) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE IsUserInRole( + /* [in] */ __RPC__in VARIANT *pUser, + /* [in] */ __RPC__in BSTR bstrRole, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfInRole) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISecurityCallContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISecurityCallContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISecurityCallContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISecurityCallContext * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISecurityCallContext * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISecurityCallContext * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISecurityCallContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISecurityCallContext * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISecurityCallContext, get_Count) + /* [helpstring][propget][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ISecurityCallContext * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(ISecurityCallContext, get_Item) + /* [helpstring][helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ISecurityCallContext * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__out VARIANT *pItem); + + DECLSPEC_XFGVIRT(ISecurityCallContext, get__NewEnum) + /* [helpstring][helpcontext][restricted][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ISecurityCallContext * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnum); + + DECLSPEC_XFGVIRT(ISecurityCallContext, IsCallerInRole) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *IsCallerInRole )( + __RPC__in ISecurityCallContext * This, + __RPC__in BSTR bstrRole, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfInRole); + + DECLSPEC_XFGVIRT(ISecurityCallContext, IsSecurityEnabled) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *IsSecurityEnabled )( + __RPC__in ISecurityCallContext * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsEnabled); + + DECLSPEC_XFGVIRT(ISecurityCallContext, IsUserInRole) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *IsUserInRole )( + __RPC__in ISecurityCallContext * This, + /* [in] */ __RPC__in VARIANT *pUser, + /* [in] */ __RPC__in BSTR bstrRole, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfInRole); + + END_INTERFACE + } ISecurityCallContextVtbl; + + interface ISecurityCallContext + { + CONST_VTBL struct ISecurityCallContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISecurityCallContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISecurityCallContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISecurityCallContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISecurityCallContext_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISecurityCallContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISecurityCallContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISecurityCallContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISecurityCallContext_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define ISecurityCallContext_get_Item(This,name,pItem) \ + ( (This)->lpVtbl -> get_Item(This,name,pItem) ) + +#define ISecurityCallContext_get__NewEnum(This,ppEnum) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnum) ) + +#define ISecurityCallContext_IsCallerInRole(This,bstrRole,pfInRole) \ + ( (This)->lpVtbl -> IsCallerInRole(This,bstrRole,pfInRole) ) + +#define ISecurityCallContext_IsSecurityEnabled(This,pfIsEnabled) \ + ( (This)->lpVtbl -> IsSecurityEnabled(This,pfIsEnabled) ) + +#define ISecurityCallContext_IsUserInRole(This,pUser,bstrRole,pfInRole) \ + ( (This)->lpVtbl -> IsUserInRole(This,pUser,bstrRole,pfInRole) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISecurityCallContext_INTERFACE_DEFINED__ */ + + +#ifndef __IGetSecurityCallContext_INTERFACE_DEFINED__ +#define __IGetSecurityCallContext_INTERFACE_DEFINED__ + +/* interface IGetSecurityCallContext */ +/* [unique][helpcontext][helpstring][oleautomation][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGetSecurityCallContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CAFC823F-B441-11d1-B82B-0000F8757E2A") + IGetSecurityCallContext : public IDispatch + { + public: + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetSecurityCallContext( + /* [retval][out] */ __RPC__deref_out_opt ISecurityCallContext **ppObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetSecurityCallContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetSecurityCallContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetSecurityCallContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetSecurityCallContext * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGetSecurityCallContext * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGetSecurityCallContext * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGetSecurityCallContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGetSecurityCallContext * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGetSecurityCallContext, GetSecurityCallContext) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityCallContext )( + __RPC__in IGetSecurityCallContext * This, + /* [retval][out] */ __RPC__deref_out_opt ISecurityCallContext **ppObject); + + END_INTERFACE + } IGetSecurityCallContextVtbl; + + interface IGetSecurityCallContext + { + CONST_VTBL struct IGetSecurityCallContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetSecurityCallContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetSecurityCallContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetSecurityCallContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetSecurityCallContext_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGetSecurityCallContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGetSecurityCallContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGetSecurityCallContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGetSecurityCallContext_GetSecurityCallContext(This,ppObject) \ + ( (This)->lpVtbl -> GetSecurityCallContext(This,ppObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetSecurityCallContext_INTERFACE_DEFINED__ */ + + +#ifndef __SecurityProperty_INTERFACE_DEFINED__ +#define __SecurityProperty_INTERFACE_DEFINED__ + +/* interface SecurityProperty */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_SecurityProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E74A7215-014D-11d1-A63C-00A0C911B4E0") + SecurityProperty : public IDispatch + { + public: + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetDirectCallerName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrUserName) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetDirectCreatorName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrUserName) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetOriginalCallerName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrUserName) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetOriginalCreatorName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrUserName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct SecurityPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in SecurityProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in SecurityProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in SecurityProperty * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in SecurityProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in SecurityProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in SecurityProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + SecurityProperty * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(SecurityProperty, GetDirectCallerName) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetDirectCallerName )( + __RPC__in SecurityProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrUserName); + + DECLSPEC_XFGVIRT(SecurityProperty, GetDirectCreatorName) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetDirectCreatorName )( + __RPC__in SecurityProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrUserName); + + DECLSPEC_XFGVIRT(SecurityProperty, GetOriginalCallerName) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetOriginalCallerName )( + __RPC__in SecurityProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrUserName); + + DECLSPEC_XFGVIRT(SecurityProperty, GetOriginalCreatorName) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetOriginalCreatorName )( + __RPC__in SecurityProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrUserName); + + END_INTERFACE + } SecurityPropertyVtbl; + + interface SecurityProperty + { + CONST_VTBL struct SecurityPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define SecurityProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define SecurityProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define SecurityProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define SecurityProperty_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define SecurityProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define SecurityProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define SecurityProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define SecurityProperty_GetDirectCallerName(This,bstrUserName) \ + ( (This)->lpVtbl -> GetDirectCallerName(This,bstrUserName) ) + +#define SecurityProperty_GetDirectCreatorName(This,bstrUserName) \ + ( (This)->lpVtbl -> GetDirectCreatorName(This,bstrUserName) ) + +#define SecurityProperty_GetOriginalCallerName(This,bstrUserName) \ + ( (This)->lpVtbl -> GetOriginalCallerName(This,bstrUserName) ) + +#define SecurityProperty_GetOriginalCreatorName(This,bstrUserName) \ + ( (This)->lpVtbl -> GetOriginalCreatorName(This,bstrUserName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __SecurityProperty_INTERFACE_DEFINED__ */ + + +#ifndef __ContextInfo_INTERFACE_DEFINED__ +#define __ContextInfo_INTERFACE_DEFINED__ + +/* interface ContextInfo */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ContextInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("19A5A02C-0AC8-11d2-B286-00C04F8EF934") + ContextInfo : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsInTransaction( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsInTx) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetTransaction( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppTx) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetTransactionId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTxId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetActivityId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrActivityId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetContextId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCtxId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ContextInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ContextInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ContextInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ContextInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ContextInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ContextInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ContextInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ContextInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ContextInfo, IsInTransaction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsInTransaction )( + __RPC__in ContextInfo * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsInTx); + + DECLSPEC_XFGVIRT(ContextInfo, GetTransaction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetTransaction )( + __RPC__in ContextInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppTx); + + DECLSPEC_XFGVIRT(ContextInfo, GetTransactionId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetTransactionId )( + __RPC__in ContextInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTxId); + + DECLSPEC_XFGVIRT(ContextInfo, GetActivityId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetActivityId )( + __RPC__in ContextInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrActivityId); + + DECLSPEC_XFGVIRT(ContextInfo, GetContextId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetContextId )( + __RPC__in ContextInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCtxId); + + END_INTERFACE + } ContextInfoVtbl; + + interface ContextInfo + { + CONST_VTBL struct ContextInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ContextInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ContextInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ContextInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ContextInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ContextInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ContextInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ContextInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ContextInfo_IsInTransaction(This,pbIsInTx) \ + ( (This)->lpVtbl -> IsInTransaction(This,pbIsInTx) ) + +#define ContextInfo_GetTransaction(This,ppTx) \ + ( (This)->lpVtbl -> GetTransaction(This,ppTx) ) + +#define ContextInfo_GetTransactionId(This,pbstrTxId) \ + ( (This)->lpVtbl -> GetTransactionId(This,pbstrTxId) ) + +#define ContextInfo_GetActivityId(This,pbstrActivityId) \ + ( (This)->lpVtbl -> GetActivityId(This,pbstrActivityId) ) + +#define ContextInfo_GetContextId(This,pbstrCtxId) \ + ( (This)->lpVtbl -> GetContextId(This,pbstrCtxId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ContextInfo_INTERFACE_DEFINED__ */ + + +#ifndef __ContextInfo2_INTERFACE_DEFINED__ +#define __ContextInfo2_INTERFACE_DEFINED__ + +/* interface ContextInfo2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ContextInfo2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c99d6e75-2375-11d4-8331-00c04f605588") + ContextInfo2 : public ContextInfo + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPartitionId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *__MIDL__ContextInfo20000) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetApplicationId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *__MIDL__ContextInfo20001) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetApplicationInstanceId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *__MIDL__ContextInfo20002) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ContextInfo2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ContextInfo2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ContextInfo2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ContextInfo2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ContextInfo2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ContextInfo2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ContextInfo2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ContextInfo2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ContextInfo, IsInTransaction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsInTransaction )( + __RPC__in ContextInfo2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsInTx); + + DECLSPEC_XFGVIRT(ContextInfo, GetTransaction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetTransaction )( + __RPC__in ContextInfo2 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppTx); + + DECLSPEC_XFGVIRT(ContextInfo, GetTransactionId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetTransactionId )( + __RPC__in ContextInfo2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTxId); + + DECLSPEC_XFGVIRT(ContextInfo, GetActivityId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetActivityId )( + __RPC__in ContextInfo2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrActivityId); + + DECLSPEC_XFGVIRT(ContextInfo, GetContextId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetContextId )( + __RPC__in ContextInfo2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCtxId); + + DECLSPEC_XFGVIRT(ContextInfo2, GetPartitionId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPartitionId )( + __RPC__in ContextInfo2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *__MIDL__ContextInfo20000); + + DECLSPEC_XFGVIRT(ContextInfo2, GetApplicationId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetApplicationId )( + __RPC__in ContextInfo2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *__MIDL__ContextInfo20001); + + DECLSPEC_XFGVIRT(ContextInfo2, GetApplicationInstanceId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetApplicationInstanceId )( + __RPC__in ContextInfo2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *__MIDL__ContextInfo20002); + + END_INTERFACE + } ContextInfo2Vtbl; + + interface ContextInfo2 + { + CONST_VTBL struct ContextInfo2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ContextInfo2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ContextInfo2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ContextInfo2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ContextInfo2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ContextInfo2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ContextInfo2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ContextInfo2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ContextInfo2_IsInTransaction(This,pbIsInTx) \ + ( (This)->lpVtbl -> IsInTransaction(This,pbIsInTx) ) + +#define ContextInfo2_GetTransaction(This,ppTx) \ + ( (This)->lpVtbl -> GetTransaction(This,ppTx) ) + +#define ContextInfo2_GetTransactionId(This,pbstrTxId) \ + ( (This)->lpVtbl -> GetTransactionId(This,pbstrTxId) ) + +#define ContextInfo2_GetActivityId(This,pbstrActivityId) \ + ( (This)->lpVtbl -> GetActivityId(This,pbstrActivityId) ) + +#define ContextInfo2_GetContextId(This,pbstrCtxId) \ + ( (This)->lpVtbl -> GetContextId(This,pbstrCtxId) ) + + +#define ContextInfo2_GetPartitionId(This,__MIDL__ContextInfo20000) \ + ( (This)->lpVtbl -> GetPartitionId(This,__MIDL__ContextInfo20000) ) + +#define ContextInfo2_GetApplicationId(This,__MIDL__ContextInfo20001) \ + ( (This)->lpVtbl -> GetApplicationId(This,__MIDL__ContextInfo20001) ) + +#define ContextInfo2_GetApplicationInstanceId(This,__MIDL__ContextInfo20002) \ + ( (This)->lpVtbl -> GetApplicationInstanceId(This,__MIDL__ContextInfo20002) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ContextInfo2_INTERFACE_DEFINED__ */ + + +#ifndef __ObjectContext_INTERFACE_DEFINED__ +#define __ObjectContext_INTERFACE_DEFINED__ + +/* interface ObjectContext */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ObjectContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("74C08646-CEDB-11CF-8B49-00AA00B8A790") + ObjectContext : public IDispatch + { + public: + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE CreateInstance( + /* [in] */ __RPC__in BSTR bstrProgID, + /* [retval][out] */ __RPC__out VARIANT *pObject) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE SetComplete( void) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE SetAbort( void) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE EnableCommit( void) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE DisableCommit( void) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE IsInTransaction( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsInTx) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE IsSecurityEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsEnabled) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE IsCallerInRole( + __RPC__in BSTR bstrRole, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbInRole) = 0; + + virtual /* [helpstring][helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [helpstring][helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__out VARIANT *pItem) = 0; + + virtual /* [helpstring][helpcontext][restricted][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnum) = 0; + + virtual /* [helpstring][helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Security( + /* [retval][out] */ __RPC__deref_out_opt SecurityProperty **ppSecurityProperty) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ContextInfo( + /* [retval][out] */ __RPC__deref_out_opt ContextInfo **ppContextInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ObjectContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ObjectContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ObjectContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ObjectContext * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ObjectContext * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ObjectContext * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ObjectContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ObjectContext * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ObjectContext, CreateInstance) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreateInstance )( + __RPC__in ObjectContext * This, + /* [in] */ __RPC__in BSTR bstrProgID, + /* [retval][out] */ __RPC__out VARIANT *pObject); + + DECLSPEC_XFGVIRT(ObjectContext, SetComplete) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SetComplete )( + __RPC__in ObjectContext * This); + + DECLSPEC_XFGVIRT(ObjectContext, SetAbort) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SetAbort )( + __RPC__in ObjectContext * This); + + DECLSPEC_XFGVIRT(ObjectContext, EnableCommit) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *EnableCommit )( + __RPC__in ObjectContext * This); + + DECLSPEC_XFGVIRT(ObjectContext, DisableCommit) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *DisableCommit )( + __RPC__in ObjectContext * This); + + DECLSPEC_XFGVIRT(ObjectContext, IsInTransaction) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *IsInTransaction )( + __RPC__in ObjectContext * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsInTx); + + DECLSPEC_XFGVIRT(ObjectContext, IsSecurityEnabled) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *IsSecurityEnabled )( + __RPC__in ObjectContext * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsEnabled); + + DECLSPEC_XFGVIRT(ObjectContext, IsCallerInRole) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *IsCallerInRole )( + __RPC__in ObjectContext * This, + __RPC__in BSTR bstrRole, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbInRole); + + DECLSPEC_XFGVIRT(ObjectContext, get_Count) + /* [helpstring][helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ObjectContext * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(ObjectContext, get_Item) + /* [helpstring][helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ObjectContext * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__out VARIANT *pItem); + + DECLSPEC_XFGVIRT(ObjectContext, get__NewEnum) + /* [helpstring][helpcontext][restricted][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ObjectContext * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnum); + + DECLSPEC_XFGVIRT(ObjectContext, get_Security) + /* [helpstring][helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Security )( + __RPC__in ObjectContext * This, + /* [retval][out] */ __RPC__deref_out_opt SecurityProperty **ppSecurityProperty); + + DECLSPEC_XFGVIRT(ObjectContext, get_ContextInfo) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ContextInfo )( + __RPC__in ObjectContext * This, + /* [retval][out] */ __RPC__deref_out_opt ContextInfo **ppContextInfo); + + END_INTERFACE + } ObjectContextVtbl; + + interface ObjectContext + { + CONST_VTBL struct ObjectContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ObjectContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ObjectContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ObjectContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ObjectContext_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ObjectContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ObjectContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ObjectContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ObjectContext_CreateInstance(This,bstrProgID,pObject) \ + ( (This)->lpVtbl -> CreateInstance(This,bstrProgID,pObject) ) + +#define ObjectContext_SetComplete(This) \ + ( (This)->lpVtbl -> SetComplete(This) ) + +#define ObjectContext_SetAbort(This) \ + ( (This)->lpVtbl -> SetAbort(This) ) + +#define ObjectContext_EnableCommit(This) \ + ( (This)->lpVtbl -> EnableCommit(This) ) + +#define ObjectContext_DisableCommit(This) \ + ( (This)->lpVtbl -> DisableCommit(This) ) + +#define ObjectContext_IsInTransaction(This,pbIsInTx) \ + ( (This)->lpVtbl -> IsInTransaction(This,pbIsInTx) ) + +#define ObjectContext_IsSecurityEnabled(This,pbIsEnabled) \ + ( (This)->lpVtbl -> IsSecurityEnabled(This,pbIsEnabled) ) + +#define ObjectContext_IsCallerInRole(This,bstrRole,pbInRole) \ + ( (This)->lpVtbl -> IsCallerInRole(This,bstrRole,pbInRole) ) + +#define ObjectContext_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define ObjectContext_get_Item(This,name,pItem) \ + ( (This)->lpVtbl -> get_Item(This,name,pItem) ) + +#define ObjectContext_get__NewEnum(This,ppEnum) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnum) ) + +#define ObjectContext_get_Security(This,ppSecurityProperty) \ + ( (This)->lpVtbl -> get_Security(This,ppSecurityProperty) ) + +#define ObjectContext_get_ContextInfo(This,ppContextInfo) \ + ( (This)->lpVtbl -> get_ContextInfo(This,ppContextInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ObjectContext_INTERFACE_DEFINED__ */ + + +#ifndef __ITransactionContextEx_INTERFACE_DEFINED__ +#define __ITransactionContextEx_INTERFACE_DEFINED__ + +/* interface ITransactionContextEx */ +/* [unique][helpcontext][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ITransactionContextEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7999FC22-D3C6-11CF-ACAB-00A024A55AEF") + ITransactionContextEx : public IUnknown + { + public: + virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE CreateInstance( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **pObject) = 0; + + virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE Commit( void) = 0; + + virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE Abort( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITransactionContextExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITransactionContextEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITransactionContextEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITransactionContextEx * This); + + DECLSPEC_XFGVIRT(ITransactionContextEx, CreateInstance) + /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *CreateInstance )( + __RPC__in ITransactionContextEx * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **pObject); + + DECLSPEC_XFGVIRT(ITransactionContextEx, Commit) + /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in ITransactionContextEx * This); + + DECLSPEC_XFGVIRT(ITransactionContextEx, Abort) + /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Abort )( + __RPC__in ITransactionContextEx * This); + + END_INTERFACE + } ITransactionContextExVtbl; + + interface ITransactionContextEx + { + CONST_VTBL struct ITransactionContextExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITransactionContextEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITransactionContextEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITransactionContextEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITransactionContextEx_CreateInstance(This,rclsid,riid,pObject) \ + ( (This)->lpVtbl -> CreateInstance(This,rclsid,riid,pObject) ) + +#define ITransactionContextEx_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + +#define ITransactionContextEx_Abort(This) \ + ( (This)->lpVtbl -> Abort(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITransactionContextEx_INTERFACE_DEFINED__ */ + + +#ifndef __ITransactionContext_INTERFACE_DEFINED__ +#define __ITransactionContext_INTERFACE_DEFINED__ + +/* interface ITransactionContext */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ITransactionContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7999FC21-D3C6-11CF-ACAB-00A024A55AEF") + ITransactionContext : public IDispatch + { + public: + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE CreateInstance( + /* [in] */ __RPC__in BSTR pszProgId, + /* [retval][out] */ __RPC__out VARIANT *pObject) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE Commit( void) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE Abort( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITransactionContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITransactionContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITransactionContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITransactionContext * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ITransactionContext * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ITransactionContext * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ITransactionContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ITransactionContext * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ITransactionContext, CreateInstance) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreateInstance )( + __RPC__in ITransactionContext * This, + /* [in] */ __RPC__in BSTR pszProgId, + /* [retval][out] */ __RPC__out VARIANT *pObject); + + DECLSPEC_XFGVIRT(ITransactionContext, Commit) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in ITransactionContext * This); + + DECLSPEC_XFGVIRT(ITransactionContext, Abort) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Abort )( + __RPC__in ITransactionContext * This); + + END_INTERFACE + } ITransactionContextVtbl; + + interface ITransactionContext + { + CONST_VTBL struct ITransactionContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITransactionContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITransactionContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITransactionContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITransactionContext_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ITransactionContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ITransactionContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ITransactionContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ITransactionContext_CreateInstance(This,pszProgId,pObject) \ + ( (This)->lpVtbl -> CreateInstance(This,pszProgId,pObject) ) + +#define ITransactionContext_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + +#define ITransactionContext_Abort(This) \ + ( (This)->lpVtbl -> Abort(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITransactionContext_INTERFACE_DEFINED__ */ + + +#ifndef __ICreateWithTransactionEx_INTERFACE_DEFINED__ +#define __ICreateWithTransactionEx_INTERFACE_DEFINED__ + +/* interface ICreateWithTransactionEx */ +/* [unique][helpcontext][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICreateWithTransactionEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("455ACF57-5345-11d2-99CF-00C04F797BC9") + ICreateWithTransactionEx : public IUnknown + { + public: + virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE CreateInstance( + /* [in] */ __RPC__in_opt ITransaction *pTransaction, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **pObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICreateWithTransactionExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICreateWithTransactionEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICreateWithTransactionEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICreateWithTransactionEx * This); + + DECLSPEC_XFGVIRT(ICreateWithTransactionEx, CreateInstance) + /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *CreateInstance )( + __RPC__in ICreateWithTransactionEx * This, + /* [in] */ __RPC__in_opt ITransaction *pTransaction, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **pObject); + + END_INTERFACE + } ICreateWithTransactionExVtbl; + + interface ICreateWithTransactionEx + { + CONST_VTBL struct ICreateWithTransactionExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICreateWithTransactionEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICreateWithTransactionEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICreateWithTransactionEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICreateWithTransactionEx_CreateInstance(This,pTransaction,rclsid,riid,pObject) \ + ( (This)->lpVtbl -> CreateInstance(This,pTransaction,rclsid,riid,pObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICreateWithTransactionEx_INTERFACE_DEFINED__ */ + + +#ifndef __ICreateWithLocalTransaction_INTERFACE_DEFINED__ +#define __ICreateWithLocalTransaction_INTERFACE_DEFINED__ + +/* interface ICreateWithLocalTransaction */ +/* [unique][helpcontext][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_ICreateWithLocalTransaction; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("227AC7A8-8423-42ce-B7CF-03061EC9AAA3") + ICreateWithLocalTransaction : public IUnknown + { + public: + virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE CreateInstanceWithSysTx( + /* [in] */ IUnknown *pTransaction, + /* [in] */ REFCLSID rclsid, + /* [in] */ REFIID riid, + /* [iid_is][retval][out] */ void **pObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICreateWithLocalTransactionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICreateWithLocalTransaction * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICreateWithLocalTransaction * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICreateWithLocalTransaction * This); + + DECLSPEC_XFGVIRT(ICreateWithLocalTransaction, CreateInstanceWithSysTx) + /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *CreateInstanceWithSysTx )( + ICreateWithLocalTransaction * This, + /* [in] */ IUnknown *pTransaction, + /* [in] */ REFCLSID rclsid, + /* [in] */ REFIID riid, + /* [iid_is][retval][out] */ void **pObject); + + END_INTERFACE + } ICreateWithLocalTransactionVtbl; + + interface ICreateWithLocalTransaction + { + CONST_VTBL struct ICreateWithLocalTransactionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICreateWithLocalTransaction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICreateWithLocalTransaction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICreateWithLocalTransaction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICreateWithLocalTransaction_CreateInstanceWithSysTx(This,pTransaction,rclsid,riid,pObject) \ + ( (This)->lpVtbl -> CreateInstanceWithSysTx(This,pTransaction,rclsid,riid,pObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICreateWithLocalTransaction_INTERFACE_DEFINED__ */ + + +#ifndef __ICreateWithTipTransactionEx_INTERFACE_DEFINED__ +#define __ICreateWithTipTransactionEx_INTERFACE_DEFINED__ + +/* interface ICreateWithTipTransactionEx */ +/* [unique][helpcontext][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICreateWithTipTransactionEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("455ACF59-5345-11d2-99CF-00C04F797BC9") + ICreateWithTipTransactionEx : public IUnknown + { + public: + virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE CreateInstance( + /* [in] */ __RPC__in BSTR bstrTipUrl, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **pObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICreateWithTipTransactionExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICreateWithTipTransactionEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICreateWithTipTransactionEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICreateWithTipTransactionEx * This); + + DECLSPEC_XFGVIRT(ICreateWithTipTransactionEx, CreateInstance) + /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *CreateInstance )( + __RPC__in ICreateWithTipTransactionEx * This, + /* [in] */ __RPC__in BSTR bstrTipUrl, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **pObject); + + END_INTERFACE + } ICreateWithTipTransactionExVtbl; + + interface ICreateWithTipTransactionEx + { + CONST_VTBL struct ICreateWithTipTransactionExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICreateWithTipTransactionEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICreateWithTipTransactionEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICreateWithTipTransactionEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICreateWithTipTransactionEx_CreateInstance(This,bstrTipUrl,rclsid,riid,pObject) \ + ( (This)->lpVtbl -> CreateInstance(This,bstrTipUrl,rclsid,riid,pObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICreateWithTipTransactionEx_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0013 */ +/* [local] */ + +#pragma deprecated (ICreateWithTipTransactionEx) +typedef unsigned __int64 MTS_OBJID; + +typedef unsigned __int64 MTS_RESID; + +typedef unsigned __int64 ULONG64; + +#ifndef _COMSVCSEVENTINFO_ +#define _COMSVCSEVENTINFO_ +typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][hidden] */ struct __MIDL___MIDL_itf_autosvcs_0000_0013_0001 + { + DWORD cbSize; + DWORD dwPid; + LONGLONG lTime; + LONG lMicroTime; + LONGLONG perfCount; + GUID guidApp; + LPOLESTR sMachineName; + } COMSVCSEVENTINFO; + +#endif // _COMSVCSEVENTINFO_ + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0013_v0_0_s_ifspec; + +#ifndef __IComLTxEvents_INTERFACE_DEFINED__ +#define __IComLTxEvents_INTERFACE_DEFINED__ + +/* interface IComLTxEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComLTxEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("605CF82C-578E-4298-975D-82BABCD9E053") + IComLTxEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnLtxTransactionStart( + __RPC__in COMSVCSEVENTINFO *pInfo, + GUID guidLtx, + GUID tsid, + BOOL fRoot, + int nIsolationLevel) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnLtxTransactionPrepare( + __RPC__in COMSVCSEVENTINFO *pInfo, + GUID guidLtx, + BOOL fVote) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnLtxTransactionAbort( + __RPC__in COMSVCSEVENTINFO *pInfo, + GUID guidLtx) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnLtxTransactionCommit( + __RPC__in COMSVCSEVENTINFO *pInfo, + GUID guidLtx) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnLtxTransactionPromote( + __RPC__in COMSVCSEVENTINFO *pInfo, + GUID guidLtx, + GUID txnId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComLTxEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComLTxEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComLTxEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComLTxEvents * This); + + DECLSPEC_XFGVIRT(IComLTxEvents, OnLtxTransactionStart) + HRESULT ( STDMETHODCALLTYPE *OnLtxTransactionStart )( + __RPC__in IComLTxEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + GUID guidLtx, + GUID tsid, + BOOL fRoot, + int nIsolationLevel); + + DECLSPEC_XFGVIRT(IComLTxEvents, OnLtxTransactionPrepare) + HRESULT ( STDMETHODCALLTYPE *OnLtxTransactionPrepare )( + __RPC__in IComLTxEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + GUID guidLtx, + BOOL fVote); + + DECLSPEC_XFGVIRT(IComLTxEvents, OnLtxTransactionAbort) + HRESULT ( STDMETHODCALLTYPE *OnLtxTransactionAbort )( + __RPC__in IComLTxEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + GUID guidLtx); + + DECLSPEC_XFGVIRT(IComLTxEvents, OnLtxTransactionCommit) + HRESULT ( STDMETHODCALLTYPE *OnLtxTransactionCommit )( + __RPC__in IComLTxEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + GUID guidLtx); + + DECLSPEC_XFGVIRT(IComLTxEvents, OnLtxTransactionPromote) + HRESULT ( STDMETHODCALLTYPE *OnLtxTransactionPromote )( + __RPC__in IComLTxEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + GUID guidLtx, + GUID txnId); + + END_INTERFACE + } IComLTxEventsVtbl; + + interface IComLTxEvents + { + CONST_VTBL struct IComLTxEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComLTxEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComLTxEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComLTxEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComLTxEvents_OnLtxTransactionStart(This,pInfo,guidLtx,tsid,fRoot,nIsolationLevel) \ + ( (This)->lpVtbl -> OnLtxTransactionStart(This,pInfo,guidLtx,tsid,fRoot,nIsolationLevel) ) + +#define IComLTxEvents_OnLtxTransactionPrepare(This,pInfo,guidLtx,fVote) \ + ( (This)->lpVtbl -> OnLtxTransactionPrepare(This,pInfo,guidLtx,fVote) ) + +#define IComLTxEvents_OnLtxTransactionAbort(This,pInfo,guidLtx) \ + ( (This)->lpVtbl -> OnLtxTransactionAbort(This,pInfo,guidLtx) ) + +#define IComLTxEvents_OnLtxTransactionCommit(This,pInfo,guidLtx) \ + ( (This)->lpVtbl -> OnLtxTransactionCommit(This,pInfo,guidLtx) ) + +#define IComLTxEvents_OnLtxTransactionPromote(This,pInfo,guidLtx,txnId) \ + ( (This)->lpVtbl -> OnLtxTransactionPromote(This,pInfo,guidLtx,txnId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComLTxEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComUserEvent_INTERFACE_DEFINED__ +#define __IComUserEvent_INTERFACE_DEFINED__ + +/* interface IComUserEvent */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComUserEvent; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130A4-2E50-11d2-98A5-00C04F8EE1C4") + IComUserEvent : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnUserEvent( + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in VARIANT *pvarEvent) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComUserEventVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComUserEvent * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComUserEvent * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComUserEvent * This); + + DECLSPEC_XFGVIRT(IComUserEvent, OnUserEvent) + HRESULT ( STDMETHODCALLTYPE *OnUserEvent )( + __RPC__in IComUserEvent * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in VARIANT *pvarEvent); + + END_INTERFACE + } IComUserEventVtbl; + + interface IComUserEvent + { + CONST_VTBL struct IComUserEventVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComUserEvent_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComUserEvent_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComUserEvent_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComUserEvent_OnUserEvent(This,pInfo,pvarEvent) \ + ( (This)->lpVtbl -> OnUserEvent(This,pInfo,pvarEvent) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComUserEvent_INTERFACE_DEFINED__ */ + + +#ifndef __IComThreadEvents_INTERFACE_DEFINED__ +#define __IComThreadEvents_INTERFACE_DEFINED__ + +/* interface IComThreadEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComThreadEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130A5-2E50-11d2-98A5-00C04F8EE1C4") + IComThreadEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnThreadStart( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ DWORD dwThread, + /* [in] */ DWORD dwTheadCnt) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadTerminate( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ DWORD dwThread, + /* [in] */ DWORD dwTheadCnt) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadBindToApartment( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 AptID, + /* [in] */ DWORD dwActCnt, + /* [in] */ DWORD dwLowCnt) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadUnBind( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 AptID, + /* [in] */ DWORD dwActCnt) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadWorkEnque( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 MsgWorkID, + /* [in] */ DWORD QueueLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadWorkPrivate( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 MsgWorkID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadWorkPublic( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 MsgWorkID, + /* [in] */ DWORD QueueLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadWorkRedirect( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 MsgWorkID, + /* [in] */ DWORD QueueLen, + /* [in] */ ULONG64 ThreadNum) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadWorkReject( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 MsgWorkID, + /* [in] */ DWORD QueueLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadAssignApartment( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ ULONG64 AptID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadUnassignApartment( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 AptID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComThreadEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComThreadEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComThreadEvents * This); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadStart) + HRESULT ( STDMETHODCALLTYPE *OnThreadStart )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ DWORD dwThread, + /* [in] */ DWORD dwTheadCnt); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadTerminate) + HRESULT ( STDMETHODCALLTYPE *OnThreadTerminate )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ DWORD dwThread, + /* [in] */ DWORD dwTheadCnt); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadBindToApartment) + HRESULT ( STDMETHODCALLTYPE *OnThreadBindToApartment )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 AptID, + /* [in] */ DWORD dwActCnt, + /* [in] */ DWORD dwLowCnt); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadUnBind) + HRESULT ( STDMETHODCALLTYPE *OnThreadUnBind )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 AptID, + /* [in] */ DWORD dwActCnt); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadWorkEnque) + HRESULT ( STDMETHODCALLTYPE *OnThreadWorkEnque )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 MsgWorkID, + /* [in] */ DWORD QueueLen); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadWorkPrivate) + HRESULT ( STDMETHODCALLTYPE *OnThreadWorkPrivate )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 MsgWorkID); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadWorkPublic) + HRESULT ( STDMETHODCALLTYPE *OnThreadWorkPublic )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 MsgWorkID, + /* [in] */ DWORD QueueLen); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadWorkRedirect) + HRESULT ( STDMETHODCALLTYPE *OnThreadWorkRedirect )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 MsgWorkID, + /* [in] */ DWORD QueueLen, + /* [in] */ ULONG64 ThreadNum); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadWorkReject) + HRESULT ( STDMETHODCALLTYPE *OnThreadWorkReject )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ThreadID, + /* [in] */ ULONG64 MsgWorkID, + /* [in] */ DWORD QueueLen); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadAssignApartment) + HRESULT ( STDMETHODCALLTYPE *OnThreadAssignApartment )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ ULONG64 AptID); + + DECLSPEC_XFGVIRT(IComThreadEvents, OnThreadUnassignApartment) + HRESULT ( STDMETHODCALLTYPE *OnThreadUnassignApartment )( + __RPC__in IComThreadEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 AptID); + + END_INTERFACE + } IComThreadEventsVtbl; + + interface IComThreadEvents + { + CONST_VTBL struct IComThreadEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComThreadEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComThreadEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComThreadEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComThreadEvents_OnThreadStart(This,pInfo,ThreadID,dwThread,dwTheadCnt) \ + ( (This)->lpVtbl -> OnThreadStart(This,pInfo,ThreadID,dwThread,dwTheadCnt) ) + +#define IComThreadEvents_OnThreadTerminate(This,pInfo,ThreadID,dwThread,dwTheadCnt) \ + ( (This)->lpVtbl -> OnThreadTerminate(This,pInfo,ThreadID,dwThread,dwTheadCnt) ) + +#define IComThreadEvents_OnThreadBindToApartment(This,pInfo,ThreadID,AptID,dwActCnt,dwLowCnt) \ + ( (This)->lpVtbl -> OnThreadBindToApartment(This,pInfo,ThreadID,AptID,dwActCnt,dwLowCnt) ) + +#define IComThreadEvents_OnThreadUnBind(This,pInfo,ThreadID,AptID,dwActCnt) \ + ( (This)->lpVtbl -> OnThreadUnBind(This,pInfo,ThreadID,AptID,dwActCnt) ) + +#define IComThreadEvents_OnThreadWorkEnque(This,pInfo,ThreadID,MsgWorkID,QueueLen) \ + ( (This)->lpVtbl -> OnThreadWorkEnque(This,pInfo,ThreadID,MsgWorkID,QueueLen) ) + +#define IComThreadEvents_OnThreadWorkPrivate(This,pInfo,ThreadID,MsgWorkID) \ + ( (This)->lpVtbl -> OnThreadWorkPrivate(This,pInfo,ThreadID,MsgWorkID) ) + +#define IComThreadEvents_OnThreadWorkPublic(This,pInfo,ThreadID,MsgWorkID,QueueLen) \ + ( (This)->lpVtbl -> OnThreadWorkPublic(This,pInfo,ThreadID,MsgWorkID,QueueLen) ) + +#define IComThreadEvents_OnThreadWorkRedirect(This,pInfo,ThreadID,MsgWorkID,QueueLen,ThreadNum) \ + ( (This)->lpVtbl -> OnThreadWorkRedirect(This,pInfo,ThreadID,MsgWorkID,QueueLen,ThreadNum) ) + +#define IComThreadEvents_OnThreadWorkReject(This,pInfo,ThreadID,MsgWorkID,QueueLen) \ + ( (This)->lpVtbl -> OnThreadWorkReject(This,pInfo,ThreadID,MsgWorkID,QueueLen) ) + +#define IComThreadEvents_OnThreadAssignApartment(This,pInfo,guidActivity,AptID) \ + ( (This)->lpVtbl -> OnThreadAssignApartment(This,pInfo,guidActivity,AptID) ) + +#define IComThreadEvents_OnThreadUnassignApartment(This,pInfo,AptID) \ + ( (This)->lpVtbl -> OnThreadUnassignApartment(This,pInfo,AptID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComThreadEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComAppEvents_INTERFACE_DEFINED__ +#define __IComAppEvents_INTERFACE_DEFINED__ + +/* interface IComAppEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComAppEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130A6-2E50-11d2-98A5-00C04F8EE1C4") + IComAppEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnAppActivation( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnAppShutdown( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnAppForceShutdown( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComAppEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComAppEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComAppEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComAppEvents * This); + + DECLSPEC_XFGVIRT(IComAppEvents, OnAppActivation) + HRESULT ( STDMETHODCALLTYPE *OnAppActivation )( + __RPC__in IComAppEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp); + + DECLSPEC_XFGVIRT(IComAppEvents, OnAppShutdown) + HRESULT ( STDMETHODCALLTYPE *OnAppShutdown )( + __RPC__in IComAppEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp); + + DECLSPEC_XFGVIRT(IComAppEvents, OnAppForceShutdown) + HRESULT ( STDMETHODCALLTYPE *OnAppForceShutdown )( + __RPC__in IComAppEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp); + + END_INTERFACE + } IComAppEventsVtbl; + + interface IComAppEvents + { + CONST_VTBL struct IComAppEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComAppEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComAppEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComAppEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComAppEvents_OnAppActivation(This,pInfo,guidApp) \ + ( (This)->lpVtbl -> OnAppActivation(This,pInfo,guidApp) ) + +#define IComAppEvents_OnAppShutdown(This,pInfo,guidApp) \ + ( (This)->lpVtbl -> OnAppShutdown(This,pInfo,guidApp) ) + +#define IComAppEvents_OnAppForceShutdown(This,pInfo,guidApp) \ + ( (This)->lpVtbl -> OnAppForceShutdown(This,pInfo,guidApp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComAppEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComInstanceEvents_INTERFACE_DEFINED__ +#define __IComInstanceEvents_INTERFACE_DEFINED__ + +/* interface IComInstanceEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComInstanceEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130A7-2E50-11d2-98A5-00C04F8EE1C4") + IComInstanceEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnObjectCreate( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ __RPC__in REFCLSID clsid, + /* [in] */ __RPC__in REFGUID tsid, + /* [in] */ ULONG64 CtxtID, + /* [in] */ ULONG64 ObjectID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjectDestroy( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComInstanceEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComInstanceEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComInstanceEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComInstanceEvents * This); + + DECLSPEC_XFGVIRT(IComInstanceEvents, OnObjectCreate) + HRESULT ( STDMETHODCALLTYPE *OnObjectCreate )( + __RPC__in IComInstanceEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ __RPC__in REFCLSID clsid, + /* [in] */ __RPC__in REFGUID tsid, + /* [in] */ ULONG64 CtxtID, + /* [in] */ ULONG64 ObjectID); + + DECLSPEC_XFGVIRT(IComInstanceEvents, OnObjectDestroy) + HRESULT ( STDMETHODCALLTYPE *OnObjectDestroy )( + __RPC__in IComInstanceEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID); + + END_INTERFACE + } IComInstanceEventsVtbl; + + interface IComInstanceEvents + { + CONST_VTBL struct IComInstanceEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComInstanceEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComInstanceEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComInstanceEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComInstanceEvents_OnObjectCreate(This,pInfo,guidActivity,clsid,tsid,CtxtID,ObjectID) \ + ( (This)->lpVtbl -> OnObjectCreate(This,pInfo,guidActivity,clsid,tsid,CtxtID,ObjectID) ) + +#define IComInstanceEvents_OnObjectDestroy(This,pInfo,CtxtID) \ + ( (This)->lpVtbl -> OnObjectDestroy(This,pInfo,CtxtID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComInstanceEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComTransactionEvents_INTERFACE_DEFINED__ +#define __IComTransactionEvents_INTERFACE_DEFINED__ + +/* interface IComTransactionEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComTransactionEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130A8-2E50-11d2-98A5-00C04F8EE1C4") + IComTransactionEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnTransactionStart( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ __RPC__in REFGUID tsid, + /* [in] */ BOOL fRoot) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnTransactionPrepare( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ BOOL fVoteYes) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnTransactionAbort( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnTransactionCommit( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComTransactionEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComTransactionEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComTransactionEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComTransactionEvents * This); + + DECLSPEC_XFGVIRT(IComTransactionEvents, OnTransactionStart) + HRESULT ( STDMETHODCALLTYPE *OnTransactionStart )( + __RPC__in IComTransactionEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ __RPC__in REFGUID tsid, + /* [in] */ BOOL fRoot); + + DECLSPEC_XFGVIRT(IComTransactionEvents, OnTransactionPrepare) + HRESULT ( STDMETHODCALLTYPE *OnTransactionPrepare )( + __RPC__in IComTransactionEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ BOOL fVoteYes); + + DECLSPEC_XFGVIRT(IComTransactionEvents, OnTransactionAbort) + HRESULT ( STDMETHODCALLTYPE *OnTransactionAbort )( + __RPC__in IComTransactionEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx); + + DECLSPEC_XFGVIRT(IComTransactionEvents, OnTransactionCommit) + HRESULT ( STDMETHODCALLTYPE *OnTransactionCommit )( + __RPC__in IComTransactionEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx); + + END_INTERFACE + } IComTransactionEventsVtbl; + + interface IComTransactionEvents + { + CONST_VTBL struct IComTransactionEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComTransactionEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComTransactionEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComTransactionEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComTransactionEvents_OnTransactionStart(This,pInfo,guidTx,tsid,fRoot) \ + ( (This)->lpVtbl -> OnTransactionStart(This,pInfo,guidTx,tsid,fRoot) ) + +#define IComTransactionEvents_OnTransactionPrepare(This,pInfo,guidTx,fVoteYes) \ + ( (This)->lpVtbl -> OnTransactionPrepare(This,pInfo,guidTx,fVoteYes) ) + +#define IComTransactionEvents_OnTransactionAbort(This,pInfo,guidTx) \ + ( (This)->lpVtbl -> OnTransactionAbort(This,pInfo,guidTx) ) + +#define IComTransactionEvents_OnTransactionCommit(This,pInfo,guidTx) \ + ( (This)->lpVtbl -> OnTransactionCommit(This,pInfo,guidTx) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComTransactionEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComMethodEvents_INTERFACE_DEFINED__ +#define __IComMethodEvents_INTERFACE_DEFINED__ + +/* interface IComMethodEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComMethodEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130A9-2E50-11d2-98A5-00C04F8EE1C4") + IComMethodEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnMethodCall( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ ULONG iMeth) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnMethodReturn( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ ULONG iMeth, + /* [in] */ HRESULT hresult) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnMethodException( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ ULONG iMeth) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComMethodEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComMethodEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComMethodEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComMethodEvents * This); + + DECLSPEC_XFGVIRT(IComMethodEvents, OnMethodCall) + HRESULT ( STDMETHODCALLTYPE *OnMethodCall )( + __RPC__in IComMethodEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ ULONG iMeth); + + DECLSPEC_XFGVIRT(IComMethodEvents, OnMethodReturn) + HRESULT ( STDMETHODCALLTYPE *OnMethodReturn )( + __RPC__in IComMethodEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ ULONG iMeth, + /* [in] */ HRESULT hresult); + + DECLSPEC_XFGVIRT(IComMethodEvents, OnMethodException) + HRESULT ( STDMETHODCALLTYPE *OnMethodException )( + __RPC__in IComMethodEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ ULONG iMeth); + + END_INTERFACE + } IComMethodEventsVtbl; + + interface IComMethodEvents + { + CONST_VTBL struct IComMethodEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComMethodEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComMethodEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComMethodEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComMethodEvents_OnMethodCall(This,pInfo,oid,guidCid,guidRid,iMeth) \ + ( (This)->lpVtbl -> OnMethodCall(This,pInfo,oid,guidCid,guidRid,iMeth) ) + +#define IComMethodEvents_OnMethodReturn(This,pInfo,oid,guidCid,guidRid,iMeth,hresult) \ + ( (This)->lpVtbl -> OnMethodReturn(This,pInfo,oid,guidCid,guidRid,iMeth,hresult) ) + +#define IComMethodEvents_OnMethodException(This,pInfo,oid,guidCid,guidRid,iMeth) \ + ( (This)->lpVtbl -> OnMethodException(This,pInfo,oid,guidCid,guidRid,iMeth) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComMethodEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComObjectEvents_INTERFACE_DEFINED__ +#define __IComObjectEvents_INTERFACE_DEFINED__ + +/* interface IComObjectEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComObjectEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130AA-2E50-11d2-98A5-00C04F8EE1C4") + IComObjectEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnObjectActivate( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID, + /* [in] */ ULONG64 ObjectID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjectDeactivate( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID, + /* [in] */ ULONG64 ObjectID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnDisableCommit( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnEnableCommit( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnSetComplete( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnSetAbort( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComObjectEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComObjectEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComObjectEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComObjectEvents * This); + + DECLSPEC_XFGVIRT(IComObjectEvents, OnObjectActivate) + HRESULT ( STDMETHODCALLTYPE *OnObjectActivate )( + __RPC__in IComObjectEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID, + /* [in] */ ULONG64 ObjectID); + + DECLSPEC_XFGVIRT(IComObjectEvents, OnObjectDeactivate) + HRESULT ( STDMETHODCALLTYPE *OnObjectDeactivate )( + __RPC__in IComObjectEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID, + /* [in] */ ULONG64 ObjectID); + + DECLSPEC_XFGVIRT(IComObjectEvents, OnDisableCommit) + HRESULT ( STDMETHODCALLTYPE *OnDisableCommit )( + __RPC__in IComObjectEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID); + + DECLSPEC_XFGVIRT(IComObjectEvents, OnEnableCommit) + HRESULT ( STDMETHODCALLTYPE *OnEnableCommit )( + __RPC__in IComObjectEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID); + + DECLSPEC_XFGVIRT(IComObjectEvents, OnSetComplete) + HRESULT ( STDMETHODCALLTYPE *OnSetComplete )( + __RPC__in IComObjectEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID); + + DECLSPEC_XFGVIRT(IComObjectEvents, OnSetAbort) + HRESULT ( STDMETHODCALLTYPE *OnSetAbort )( + __RPC__in IComObjectEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID); + + END_INTERFACE + } IComObjectEventsVtbl; + + interface IComObjectEvents + { + CONST_VTBL struct IComObjectEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComObjectEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComObjectEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComObjectEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComObjectEvents_OnObjectActivate(This,pInfo,CtxtID,ObjectID) \ + ( (This)->lpVtbl -> OnObjectActivate(This,pInfo,CtxtID,ObjectID) ) + +#define IComObjectEvents_OnObjectDeactivate(This,pInfo,CtxtID,ObjectID) \ + ( (This)->lpVtbl -> OnObjectDeactivate(This,pInfo,CtxtID,ObjectID) ) + +#define IComObjectEvents_OnDisableCommit(This,pInfo,CtxtID) \ + ( (This)->lpVtbl -> OnDisableCommit(This,pInfo,CtxtID) ) + +#define IComObjectEvents_OnEnableCommit(This,pInfo,CtxtID) \ + ( (This)->lpVtbl -> OnEnableCommit(This,pInfo,CtxtID) ) + +#define IComObjectEvents_OnSetComplete(This,pInfo,CtxtID) \ + ( (This)->lpVtbl -> OnSetComplete(This,pInfo,CtxtID) ) + +#define IComObjectEvents_OnSetAbort(This,pInfo,CtxtID) \ + ( (This)->lpVtbl -> OnSetAbort(This,pInfo,CtxtID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComObjectEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComResourceEvents_INTERFACE_DEFINED__ +#define __IComResourceEvents_INTERFACE_DEFINED__ + +/* interface IComResourceEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComResourceEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130AB-2E50-11d2-98A5-00C04F8EE1C4") + IComResourceEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnResourceCreate( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjectID, + /* [in] */ __RPC__in LPCOLESTR pszType, + /* [in] */ ULONG64 resId, + /* [in] */ BOOL enlisted) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnResourceAllocate( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjectID, + /* [in] */ __RPC__in LPCOLESTR pszType, + /* [in] */ ULONG64 resId, + /* [in] */ BOOL enlisted, + /* [in] */ DWORD NumRated, + /* [in] */ DWORD Rating) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnResourceRecycle( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjectID, + /* [in] */ __RPC__in LPCOLESTR pszType, + /* [in] */ ULONG64 resId) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnResourceDestroy( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjectID, + /* [in] */ HRESULT hr, + /* [in] */ __RPC__in LPCOLESTR pszType, + /* [in] */ ULONG64 resId) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnResourceTrack( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjectID, + /* [in] */ __RPC__in LPCOLESTR pszType, + /* [in] */ ULONG64 resId, + /* [in] */ BOOL enlisted) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComResourceEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComResourceEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComResourceEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComResourceEvents * This); + + DECLSPEC_XFGVIRT(IComResourceEvents, OnResourceCreate) + HRESULT ( STDMETHODCALLTYPE *OnResourceCreate )( + __RPC__in IComResourceEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjectID, + /* [in] */ __RPC__in LPCOLESTR pszType, + /* [in] */ ULONG64 resId, + /* [in] */ BOOL enlisted); + + DECLSPEC_XFGVIRT(IComResourceEvents, OnResourceAllocate) + HRESULT ( STDMETHODCALLTYPE *OnResourceAllocate )( + __RPC__in IComResourceEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjectID, + /* [in] */ __RPC__in LPCOLESTR pszType, + /* [in] */ ULONG64 resId, + /* [in] */ BOOL enlisted, + /* [in] */ DWORD NumRated, + /* [in] */ DWORD Rating); + + DECLSPEC_XFGVIRT(IComResourceEvents, OnResourceRecycle) + HRESULT ( STDMETHODCALLTYPE *OnResourceRecycle )( + __RPC__in IComResourceEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjectID, + /* [in] */ __RPC__in LPCOLESTR pszType, + /* [in] */ ULONG64 resId); + + DECLSPEC_XFGVIRT(IComResourceEvents, OnResourceDestroy) + HRESULT ( STDMETHODCALLTYPE *OnResourceDestroy )( + __RPC__in IComResourceEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjectID, + /* [in] */ HRESULT hr, + /* [in] */ __RPC__in LPCOLESTR pszType, + /* [in] */ ULONG64 resId); + + DECLSPEC_XFGVIRT(IComResourceEvents, OnResourceTrack) + HRESULT ( STDMETHODCALLTYPE *OnResourceTrack )( + __RPC__in IComResourceEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjectID, + /* [in] */ __RPC__in LPCOLESTR pszType, + /* [in] */ ULONG64 resId, + /* [in] */ BOOL enlisted); + + END_INTERFACE + } IComResourceEventsVtbl; + + interface IComResourceEvents + { + CONST_VTBL struct IComResourceEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComResourceEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComResourceEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComResourceEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComResourceEvents_OnResourceCreate(This,pInfo,ObjectID,pszType,resId,enlisted) \ + ( (This)->lpVtbl -> OnResourceCreate(This,pInfo,ObjectID,pszType,resId,enlisted) ) + +#define IComResourceEvents_OnResourceAllocate(This,pInfo,ObjectID,pszType,resId,enlisted,NumRated,Rating) \ + ( (This)->lpVtbl -> OnResourceAllocate(This,pInfo,ObjectID,pszType,resId,enlisted,NumRated,Rating) ) + +#define IComResourceEvents_OnResourceRecycle(This,pInfo,ObjectID,pszType,resId) \ + ( (This)->lpVtbl -> OnResourceRecycle(This,pInfo,ObjectID,pszType,resId) ) + +#define IComResourceEvents_OnResourceDestroy(This,pInfo,ObjectID,hr,pszType,resId) \ + ( (This)->lpVtbl -> OnResourceDestroy(This,pInfo,ObjectID,hr,pszType,resId) ) + +#define IComResourceEvents_OnResourceTrack(This,pInfo,ObjectID,pszType,resId,enlisted) \ + ( (This)->lpVtbl -> OnResourceTrack(This,pInfo,ObjectID,pszType,resId,enlisted) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComResourceEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComSecurityEvents_INTERFACE_DEFINED__ +#define __IComSecurityEvents_INTERFACE_DEFINED__ + +/* interface IComSecurityEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComSecurityEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130AC-2E50-11d2-98A5-00C04F8EE1C4") + IComSecurityEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnAuthenticate( + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidActivity, + ULONG64 ObjectID, + __RPC__in REFGUID guidIID, + ULONG iMeth, + ULONG cbByteOrig, + /* [size_is][in] */ __RPC__in_ecount_full(cbByteOrig) BYTE *pSidOriginalUser, + ULONG cbByteCur, + /* [size_is][in] */ __RPC__in_ecount_full(cbByteCur) BYTE *pSidCurrentUser, + BOOL bCurrentUserInpersonatingInProc) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnAuthenticateFail( + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidActivity, + ULONG64 ObjectID, + __RPC__in REFGUID guidIID, + ULONG iMeth, + ULONG cbByteOrig, + /* [size_is][in] */ __RPC__in_ecount_full(cbByteOrig) BYTE *pSidOriginalUser, + ULONG cbByteCur, + /* [size_is][in] */ __RPC__in_ecount_full(cbByteCur) BYTE *pSidCurrentUser, + BOOL bCurrentUserInpersonatingInProc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComSecurityEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComSecurityEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComSecurityEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComSecurityEvents * This); + + DECLSPEC_XFGVIRT(IComSecurityEvents, OnAuthenticate) + HRESULT ( STDMETHODCALLTYPE *OnAuthenticate )( + __RPC__in IComSecurityEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidActivity, + ULONG64 ObjectID, + __RPC__in REFGUID guidIID, + ULONG iMeth, + ULONG cbByteOrig, + /* [size_is][in] */ __RPC__in_ecount_full(cbByteOrig) BYTE *pSidOriginalUser, + ULONG cbByteCur, + /* [size_is][in] */ __RPC__in_ecount_full(cbByteCur) BYTE *pSidCurrentUser, + BOOL bCurrentUserInpersonatingInProc); + + DECLSPEC_XFGVIRT(IComSecurityEvents, OnAuthenticateFail) + HRESULT ( STDMETHODCALLTYPE *OnAuthenticateFail )( + __RPC__in IComSecurityEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidActivity, + ULONG64 ObjectID, + __RPC__in REFGUID guidIID, + ULONG iMeth, + ULONG cbByteOrig, + /* [size_is][in] */ __RPC__in_ecount_full(cbByteOrig) BYTE *pSidOriginalUser, + ULONG cbByteCur, + /* [size_is][in] */ __RPC__in_ecount_full(cbByteCur) BYTE *pSidCurrentUser, + BOOL bCurrentUserInpersonatingInProc); + + END_INTERFACE + } IComSecurityEventsVtbl; + + interface IComSecurityEvents + { + CONST_VTBL struct IComSecurityEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComSecurityEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComSecurityEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComSecurityEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComSecurityEvents_OnAuthenticate(This,pInfo,guidActivity,ObjectID,guidIID,iMeth,cbByteOrig,pSidOriginalUser,cbByteCur,pSidCurrentUser,bCurrentUserInpersonatingInProc) \ + ( (This)->lpVtbl -> OnAuthenticate(This,pInfo,guidActivity,ObjectID,guidIID,iMeth,cbByteOrig,pSidOriginalUser,cbByteCur,pSidCurrentUser,bCurrentUserInpersonatingInProc) ) + +#define IComSecurityEvents_OnAuthenticateFail(This,pInfo,guidActivity,ObjectID,guidIID,iMeth,cbByteOrig,pSidOriginalUser,cbByteCur,pSidCurrentUser,bCurrentUserInpersonatingInProc) \ + ( (This)->lpVtbl -> OnAuthenticateFail(This,pInfo,guidActivity,ObjectID,guidIID,iMeth,cbByteOrig,pSidOriginalUser,cbByteCur,pSidCurrentUser,bCurrentUserInpersonatingInProc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComSecurityEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComObjectPoolEvents_INTERFACE_DEFINED__ +#define __IComObjectPoolEvents_INTERFACE_DEFINED__ + +/* interface IComObjectPoolEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComObjectPoolEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130AD-2E50-11d2-98A5-00C04F8EE1C4") + IComObjectPoolEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnObjPoolPutObject( + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidObject, + int nReason, + DWORD dwAvailable, + ULONG64 oid) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjPoolGetObject( + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidActivity, + __RPC__in REFGUID guidObject, + DWORD dwAvailable, + ULONG64 oid) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjPoolRecycleToTx( + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidActivity, + __RPC__in REFGUID guidObject, + __RPC__in REFGUID guidTx, + ULONG64 objid) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjPoolGetFromTx( + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidActivity, + __RPC__in REFGUID guidObject, + __RPC__in REFGUID guidTx, + ULONG64 objid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComObjectPoolEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComObjectPoolEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComObjectPoolEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComObjectPoolEvents * This); + + DECLSPEC_XFGVIRT(IComObjectPoolEvents, OnObjPoolPutObject) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolPutObject )( + __RPC__in IComObjectPoolEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidObject, + int nReason, + DWORD dwAvailable, + ULONG64 oid); + + DECLSPEC_XFGVIRT(IComObjectPoolEvents, OnObjPoolGetObject) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolGetObject )( + __RPC__in IComObjectPoolEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidActivity, + __RPC__in REFGUID guidObject, + DWORD dwAvailable, + ULONG64 oid); + + DECLSPEC_XFGVIRT(IComObjectPoolEvents, OnObjPoolRecycleToTx) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolRecycleToTx )( + __RPC__in IComObjectPoolEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidActivity, + __RPC__in REFGUID guidObject, + __RPC__in REFGUID guidTx, + ULONG64 objid); + + DECLSPEC_XFGVIRT(IComObjectPoolEvents, OnObjPoolGetFromTx) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolGetFromTx )( + __RPC__in IComObjectPoolEvents * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidActivity, + __RPC__in REFGUID guidObject, + __RPC__in REFGUID guidTx, + ULONG64 objid); + + END_INTERFACE + } IComObjectPoolEventsVtbl; + + interface IComObjectPoolEvents + { + CONST_VTBL struct IComObjectPoolEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComObjectPoolEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComObjectPoolEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComObjectPoolEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComObjectPoolEvents_OnObjPoolPutObject(This,pInfo,guidObject,nReason,dwAvailable,oid) \ + ( (This)->lpVtbl -> OnObjPoolPutObject(This,pInfo,guidObject,nReason,dwAvailable,oid) ) + +#define IComObjectPoolEvents_OnObjPoolGetObject(This,pInfo,guidActivity,guidObject,dwAvailable,oid) \ + ( (This)->lpVtbl -> OnObjPoolGetObject(This,pInfo,guidActivity,guidObject,dwAvailable,oid) ) + +#define IComObjectPoolEvents_OnObjPoolRecycleToTx(This,pInfo,guidActivity,guidObject,guidTx,objid) \ + ( (This)->lpVtbl -> OnObjPoolRecycleToTx(This,pInfo,guidActivity,guidObject,guidTx,objid) ) + +#define IComObjectPoolEvents_OnObjPoolGetFromTx(This,pInfo,guidActivity,guidObject,guidTx,objid) \ + ( (This)->lpVtbl -> OnObjPoolGetFromTx(This,pInfo,guidActivity,guidObject,guidTx,objid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComObjectPoolEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComObjectPoolEvents2_INTERFACE_DEFINED__ +#define __IComObjectPoolEvents2_INTERFACE_DEFINED__ + +/* interface IComObjectPoolEvents2 */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComObjectPoolEvents2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130AE-2E50-11d2-98A5-00C04F8EE1C4") + IComObjectPoolEvents2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnObjPoolCreateObject( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidObject, + DWORD dwObjsCreated, + ULONG64 oid) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjPoolDestroyObject( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidObject, + DWORD dwObjsCreated, + ULONG64 oid) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjPoolCreateDecision( + __RPC__in COMSVCSEVENTINFO *pInfo, + DWORD dwThreadsWaiting, + DWORD dwAvail, + DWORD dwCreated, + DWORD dwMin, + DWORD dwMax) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjPoolTimeout( + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidObject, + __RPC__in REFGUID guidActivity, + DWORD dwTimeout) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjPoolCreatePool( + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidObject, + DWORD dwMin, + DWORD dwMax, + DWORD dwTimeout) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComObjectPoolEvents2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComObjectPoolEvents2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComObjectPoolEvents2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComObjectPoolEvents2 * This); + + DECLSPEC_XFGVIRT(IComObjectPoolEvents2, OnObjPoolCreateObject) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolCreateObject )( + __RPC__in IComObjectPoolEvents2 * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidObject, + DWORD dwObjsCreated, + ULONG64 oid); + + DECLSPEC_XFGVIRT(IComObjectPoolEvents2, OnObjPoolDestroyObject) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolDestroyObject )( + __RPC__in IComObjectPoolEvents2 * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidObject, + DWORD dwObjsCreated, + ULONG64 oid); + + DECLSPEC_XFGVIRT(IComObjectPoolEvents2, OnObjPoolCreateDecision) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolCreateDecision )( + __RPC__in IComObjectPoolEvents2 * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + DWORD dwThreadsWaiting, + DWORD dwAvail, + DWORD dwCreated, + DWORD dwMin, + DWORD dwMax); + + DECLSPEC_XFGVIRT(IComObjectPoolEvents2, OnObjPoolTimeout) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolTimeout )( + __RPC__in IComObjectPoolEvents2 * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidObject, + __RPC__in REFGUID guidActivity, + DWORD dwTimeout); + + DECLSPEC_XFGVIRT(IComObjectPoolEvents2, OnObjPoolCreatePool) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolCreatePool )( + __RPC__in IComObjectPoolEvents2 * This, + __RPC__in COMSVCSEVENTINFO *pInfo, + __RPC__in REFGUID guidObject, + DWORD dwMin, + DWORD dwMax, + DWORD dwTimeout); + + END_INTERFACE + } IComObjectPoolEvents2Vtbl; + + interface IComObjectPoolEvents2 + { + CONST_VTBL struct IComObjectPoolEvents2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComObjectPoolEvents2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComObjectPoolEvents2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComObjectPoolEvents2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComObjectPoolEvents2_OnObjPoolCreateObject(This,pInfo,guidObject,dwObjsCreated,oid) \ + ( (This)->lpVtbl -> OnObjPoolCreateObject(This,pInfo,guidObject,dwObjsCreated,oid) ) + +#define IComObjectPoolEvents2_OnObjPoolDestroyObject(This,pInfo,guidObject,dwObjsCreated,oid) \ + ( (This)->lpVtbl -> OnObjPoolDestroyObject(This,pInfo,guidObject,dwObjsCreated,oid) ) + +#define IComObjectPoolEvents2_OnObjPoolCreateDecision(This,pInfo,dwThreadsWaiting,dwAvail,dwCreated,dwMin,dwMax) \ + ( (This)->lpVtbl -> OnObjPoolCreateDecision(This,pInfo,dwThreadsWaiting,dwAvail,dwCreated,dwMin,dwMax) ) + +#define IComObjectPoolEvents2_OnObjPoolTimeout(This,pInfo,guidObject,guidActivity,dwTimeout) \ + ( (This)->lpVtbl -> OnObjPoolTimeout(This,pInfo,guidObject,guidActivity,dwTimeout) ) + +#define IComObjectPoolEvents2_OnObjPoolCreatePool(This,pInfo,guidObject,dwMin,dwMax,dwTimeout) \ + ( (This)->lpVtbl -> OnObjPoolCreatePool(This,pInfo,guidObject,dwMin,dwMax,dwTimeout) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComObjectPoolEvents2_INTERFACE_DEFINED__ */ + + +#ifndef __IComObjectConstructionEvents_INTERFACE_DEFINED__ +#define __IComObjectConstructionEvents_INTERFACE_DEFINED__ + +/* interface IComObjectConstructionEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComObjectConstructionEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130AF-2E50-11d2-98A5-00C04F8EE1C4") + IComObjectConstructionEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnObjectConstruct( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ __RPC__in LPCOLESTR sConstructString, + /* [in] */ ULONG64 oid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComObjectConstructionEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComObjectConstructionEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComObjectConstructionEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComObjectConstructionEvents * This); + + DECLSPEC_XFGVIRT(IComObjectConstructionEvents, OnObjectConstruct) + HRESULT ( STDMETHODCALLTYPE *OnObjectConstruct )( + __RPC__in IComObjectConstructionEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ __RPC__in LPCOLESTR sConstructString, + /* [in] */ ULONG64 oid); + + END_INTERFACE + } IComObjectConstructionEventsVtbl; + + interface IComObjectConstructionEvents + { + CONST_VTBL struct IComObjectConstructionEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComObjectConstructionEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComObjectConstructionEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComObjectConstructionEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComObjectConstructionEvents_OnObjectConstruct(This,pInfo,guidObject,sConstructString,oid) \ + ( (This)->lpVtbl -> OnObjectConstruct(This,pInfo,guidObject,sConstructString,oid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComObjectConstructionEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComActivityEvents_INTERFACE_DEFINED__ +#define __IComActivityEvents_INTERFACE_DEFINED__ + +/* interface IComActivityEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComActivityEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130B0-2E50-11d2-98A5-00C04F8EE1C4") + IComActivityEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnActivityCreate( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnActivityDestroy( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnActivityEnter( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidCurrent, + /* [in] */ __RPC__in REFGUID guidEntered, + /* [in] */ DWORD dwThread) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnActivityTimeout( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidCurrent, + /* [in] */ __RPC__in REFGUID guidEntered, + /* [in] */ DWORD dwThread, + /* [in] */ DWORD dwTimeout) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnActivityReenter( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidCurrent, + /* [in] */ DWORD dwThread, + /* [in] */ DWORD dwCallDepth) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnActivityLeave( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidCurrent, + /* [in] */ __RPC__in REFGUID guidLeft) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnActivityLeaveSame( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidCurrent, + /* [in] */ DWORD dwCallDepth) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComActivityEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComActivityEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComActivityEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComActivityEvents * This); + + DECLSPEC_XFGVIRT(IComActivityEvents, OnActivityCreate) + HRESULT ( STDMETHODCALLTYPE *OnActivityCreate )( + __RPC__in IComActivityEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity); + + DECLSPEC_XFGVIRT(IComActivityEvents, OnActivityDestroy) + HRESULT ( STDMETHODCALLTYPE *OnActivityDestroy )( + __RPC__in IComActivityEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity); + + DECLSPEC_XFGVIRT(IComActivityEvents, OnActivityEnter) + HRESULT ( STDMETHODCALLTYPE *OnActivityEnter )( + __RPC__in IComActivityEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidCurrent, + /* [in] */ __RPC__in REFGUID guidEntered, + /* [in] */ DWORD dwThread); + + DECLSPEC_XFGVIRT(IComActivityEvents, OnActivityTimeout) + HRESULT ( STDMETHODCALLTYPE *OnActivityTimeout )( + __RPC__in IComActivityEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidCurrent, + /* [in] */ __RPC__in REFGUID guidEntered, + /* [in] */ DWORD dwThread, + /* [in] */ DWORD dwTimeout); + + DECLSPEC_XFGVIRT(IComActivityEvents, OnActivityReenter) + HRESULT ( STDMETHODCALLTYPE *OnActivityReenter )( + __RPC__in IComActivityEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidCurrent, + /* [in] */ DWORD dwThread, + /* [in] */ DWORD dwCallDepth); + + DECLSPEC_XFGVIRT(IComActivityEvents, OnActivityLeave) + HRESULT ( STDMETHODCALLTYPE *OnActivityLeave )( + __RPC__in IComActivityEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidCurrent, + /* [in] */ __RPC__in REFGUID guidLeft); + + DECLSPEC_XFGVIRT(IComActivityEvents, OnActivityLeaveSame) + HRESULT ( STDMETHODCALLTYPE *OnActivityLeaveSame )( + __RPC__in IComActivityEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidCurrent, + /* [in] */ DWORD dwCallDepth); + + END_INTERFACE + } IComActivityEventsVtbl; + + interface IComActivityEvents + { + CONST_VTBL struct IComActivityEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComActivityEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComActivityEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComActivityEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComActivityEvents_OnActivityCreate(This,pInfo,guidActivity) \ + ( (This)->lpVtbl -> OnActivityCreate(This,pInfo,guidActivity) ) + +#define IComActivityEvents_OnActivityDestroy(This,pInfo,guidActivity) \ + ( (This)->lpVtbl -> OnActivityDestroy(This,pInfo,guidActivity) ) + +#define IComActivityEvents_OnActivityEnter(This,pInfo,guidCurrent,guidEntered,dwThread) \ + ( (This)->lpVtbl -> OnActivityEnter(This,pInfo,guidCurrent,guidEntered,dwThread) ) + +#define IComActivityEvents_OnActivityTimeout(This,pInfo,guidCurrent,guidEntered,dwThread,dwTimeout) \ + ( (This)->lpVtbl -> OnActivityTimeout(This,pInfo,guidCurrent,guidEntered,dwThread,dwTimeout) ) + +#define IComActivityEvents_OnActivityReenter(This,pInfo,guidCurrent,dwThread,dwCallDepth) \ + ( (This)->lpVtbl -> OnActivityReenter(This,pInfo,guidCurrent,dwThread,dwCallDepth) ) + +#define IComActivityEvents_OnActivityLeave(This,pInfo,guidCurrent,guidLeft) \ + ( (This)->lpVtbl -> OnActivityLeave(This,pInfo,guidCurrent,guidLeft) ) + +#define IComActivityEvents_OnActivityLeaveSame(This,pInfo,guidCurrent,dwCallDepth) \ + ( (This)->lpVtbl -> OnActivityLeaveSame(This,pInfo,guidCurrent,dwCallDepth) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComActivityEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComIdentityEvents_INTERFACE_DEFINED__ +#define __IComIdentityEvents_INTERFACE_DEFINED__ + +/* interface IComIdentityEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComIdentityEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130B1-2E50-11d2-98A5-00C04F8EE1C4") + IComIdentityEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnIISRequestInfo( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjId, + /* [in] */ __RPC__in LPCOLESTR pszClientIP, + /* [in] */ __RPC__in LPCOLESTR pszServerIP, + /* [in] */ __RPC__in LPCOLESTR pszURL) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComIdentityEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComIdentityEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComIdentityEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComIdentityEvents * This); + + DECLSPEC_XFGVIRT(IComIdentityEvents, OnIISRequestInfo) + HRESULT ( STDMETHODCALLTYPE *OnIISRequestInfo )( + __RPC__in IComIdentityEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 ObjId, + /* [in] */ __RPC__in LPCOLESTR pszClientIP, + /* [in] */ __RPC__in LPCOLESTR pszServerIP, + /* [in] */ __RPC__in LPCOLESTR pszURL); + + END_INTERFACE + } IComIdentityEventsVtbl; + + interface IComIdentityEvents + { + CONST_VTBL struct IComIdentityEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComIdentityEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComIdentityEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComIdentityEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComIdentityEvents_OnIISRequestInfo(This,pInfo,ObjId,pszClientIP,pszServerIP,pszURL) \ + ( (This)->lpVtbl -> OnIISRequestInfo(This,pInfo,ObjId,pszClientIP,pszServerIP,pszURL) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComIdentityEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComQCEvents_INTERFACE_DEFINED__ +#define __IComQCEvents_INTERFACE_DEFINED__ + +/* interface IComQCEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComQCEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130B2-2E50-11d2-98A5-00C04F8EE1C4") + IComQCEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnQCRecord( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 objid, + /* [in] */ __RPC__in_ecount_full(60) WCHAR szQueue[ 60 ], + /* [in] */ __RPC__in REFGUID guidMsgId, + /* [in] */ __RPC__in REFGUID guidWorkFlowId, + /* [in] */ HRESULT msmqhr) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnQCQueueOpen( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in_ecount_full(60) WCHAR szQueue[ 60 ], + /* [in] */ ULONG64 QueueID, + /* [in] */ HRESULT hr) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnQCReceive( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 QueueID, + /* [in] */ __RPC__in REFGUID guidMsgId, + /* [in] */ __RPC__in REFGUID guidWorkFlowId, + /* [in] */ HRESULT hr) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnQCReceiveFail( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 QueueID, + /* [in] */ HRESULT msmqhr) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnQCMoveToReTryQueue( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidMsgId, + /* [in] */ __RPC__in REFGUID guidWorkFlowId, + /* [in] */ ULONG RetryIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnQCMoveToDeadQueue( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidMsgId, + /* [in] */ __RPC__in REFGUID guidWorkFlowId) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnQCPlayback( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 objid, + /* [in] */ __RPC__in REFGUID guidMsgId, + /* [in] */ __RPC__in REFGUID guidWorkFlowId, + /* [in] */ HRESULT hr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComQCEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComQCEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComQCEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComQCEvents * This); + + DECLSPEC_XFGVIRT(IComQCEvents, OnQCRecord) + HRESULT ( STDMETHODCALLTYPE *OnQCRecord )( + __RPC__in IComQCEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 objid, + /* [in] */ __RPC__in_ecount_full(60) WCHAR szQueue[ 60 ], + /* [in] */ __RPC__in REFGUID guidMsgId, + /* [in] */ __RPC__in REFGUID guidWorkFlowId, + /* [in] */ HRESULT msmqhr); + + DECLSPEC_XFGVIRT(IComQCEvents, OnQCQueueOpen) + HRESULT ( STDMETHODCALLTYPE *OnQCQueueOpen )( + __RPC__in IComQCEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in_ecount_full(60) WCHAR szQueue[ 60 ], + /* [in] */ ULONG64 QueueID, + /* [in] */ HRESULT hr); + + DECLSPEC_XFGVIRT(IComQCEvents, OnQCReceive) + HRESULT ( STDMETHODCALLTYPE *OnQCReceive )( + __RPC__in IComQCEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 QueueID, + /* [in] */ __RPC__in REFGUID guidMsgId, + /* [in] */ __RPC__in REFGUID guidWorkFlowId, + /* [in] */ HRESULT hr); + + DECLSPEC_XFGVIRT(IComQCEvents, OnQCReceiveFail) + HRESULT ( STDMETHODCALLTYPE *OnQCReceiveFail )( + __RPC__in IComQCEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 QueueID, + /* [in] */ HRESULT msmqhr); + + DECLSPEC_XFGVIRT(IComQCEvents, OnQCMoveToReTryQueue) + HRESULT ( STDMETHODCALLTYPE *OnQCMoveToReTryQueue )( + __RPC__in IComQCEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidMsgId, + /* [in] */ __RPC__in REFGUID guidWorkFlowId, + /* [in] */ ULONG RetryIndex); + + DECLSPEC_XFGVIRT(IComQCEvents, OnQCMoveToDeadQueue) + HRESULT ( STDMETHODCALLTYPE *OnQCMoveToDeadQueue )( + __RPC__in IComQCEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidMsgId, + /* [in] */ __RPC__in REFGUID guidWorkFlowId); + + DECLSPEC_XFGVIRT(IComQCEvents, OnQCPlayback) + HRESULT ( STDMETHODCALLTYPE *OnQCPlayback )( + __RPC__in IComQCEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 objid, + /* [in] */ __RPC__in REFGUID guidMsgId, + /* [in] */ __RPC__in REFGUID guidWorkFlowId, + /* [in] */ HRESULT hr); + + END_INTERFACE + } IComQCEventsVtbl; + + interface IComQCEvents + { + CONST_VTBL struct IComQCEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComQCEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComQCEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComQCEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComQCEvents_OnQCRecord(This,pInfo,objid,szQueue,guidMsgId,guidWorkFlowId,msmqhr) \ + ( (This)->lpVtbl -> OnQCRecord(This,pInfo,objid,szQueue,guidMsgId,guidWorkFlowId,msmqhr) ) + +#define IComQCEvents_OnQCQueueOpen(This,pInfo,szQueue,QueueID,hr) \ + ( (This)->lpVtbl -> OnQCQueueOpen(This,pInfo,szQueue,QueueID,hr) ) + +#define IComQCEvents_OnQCReceive(This,pInfo,QueueID,guidMsgId,guidWorkFlowId,hr) \ + ( (This)->lpVtbl -> OnQCReceive(This,pInfo,QueueID,guidMsgId,guidWorkFlowId,hr) ) + +#define IComQCEvents_OnQCReceiveFail(This,pInfo,QueueID,msmqhr) \ + ( (This)->lpVtbl -> OnQCReceiveFail(This,pInfo,QueueID,msmqhr) ) + +#define IComQCEvents_OnQCMoveToReTryQueue(This,pInfo,guidMsgId,guidWorkFlowId,RetryIndex) \ + ( (This)->lpVtbl -> OnQCMoveToReTryQueue(This,pInfo,guidMsgId,guidWorkFlowId,RetryIndex) ) + +#define IComQCEvents_OnQCMoveToDeadQueue(This,pInfo,guidMsgId,guidWorkFlowId) \ + ( (This)->lpVtbl -> OnQCMoveToDeadQueue(This,pInfo,guidMsgId,guidWorkFlowId) ) + +#define IComQCEvents_OnQCPlayback(This,pInfo,objid,guidMsgId,guidWorkFlowId,hr) \ + ( (This)->lpVtbl -> OnQCPlayback(This,pInfo,objid,guidMsgId,guidWorkFlowId,hr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComQCEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComExceptionEvents_INTERFACE_DEFINED__ +#define __IComExceptionEvents_INTERFACE_DEFINED__ + +/* interface IComExceptionEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComExceptionEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130B3-2E50-11d2-98A5-00C04F8EE1C4") + IComExceptionEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnExceptionUser( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG code, + /* [in] */ ULONG64 address, + /* [in] */ __RPC__in LPCOLESTR pszStackTrace) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComExceptionEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComExceptionEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComExceptionEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComExceptionEvents * This); + + DECLSPEC_XFGVIRT(IComExceptionEvents, OnExceptionUser) + HRESULT ( STDMETHODCALLTYPE *OnExceptionUser )( + __RPC__in IComExceptionEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG code, + /* [in] */ ULONG64 address, + /* [in] */ __RPC__in LPCOLESTR pszStackTrace); + + END_INTERFACE + } IComExceptionEventsVtbl; + + interface IComExceptionEvents + { + CONST_VTBL struct IComExceptionEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComExceptionEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComExceptionEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComExceptionEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComExceptionEvents_OnExceptionUser(This,pInfo,code,address,pszStackTrace) \ + ( (This)->lpVtbl -> OnExceptionUser(This,pInfo,code,address,pszStackTrace) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComExceptionEvents_INTERFACE_DEFINED__ */ + + +#ifndef __ILBEvents_INTERFACE_DEFINED__ +#define __ILBEvents_INTERFACE_DEFINED__ + +/* interface ILBEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_ILBEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130B4-2E50-11d2-98A5-00C04F8EE1C4") + ILBEvents : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TargetUp( + __RPC__in BSTR bstrServerName, + __RPC__in BSTR bstrClsidEng) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TargetDown( + __RPC__in BSTR bstrServerName, + __RPC__in BSTR bstrClsidEng) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EngineDefined( + __RPC__in BSTR bstrPropName, + __RPC__in VARIANT *varPropValue, + __RPC__in BSTR bstrClsidEng) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILBEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILBEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILBEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILBEvents * This); + + DECLSPEC_XFGVIRT(ILBEvents, TargetUp) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TargetUp )( + __RPC__in ILBEvents * This, + __RPC__in BSTR bstrServerName, + __RPC__in BSTR bstrClsidEng); + + DECLSPEC_XFGVIRT(ILBEvents, TargetDown) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TargetDown )( + __RPC__in ILBEvents * This, + __RPC__in BSTR bstrServerName, + __RPC__in BSTR bstrClsidEng); + + DECLSPEC_XFGVIRT(ILBEvents, EngineDefined) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EngineDefined )( + __RPC__in ILBEvents * This, + __RPC__in BSTR bstrPropName, + __RPC__in VARIANT *varPropValue, + __RPC__in BSTR bstrClsidEng); + + END_INTERFACE + } ILBEventsVtbl; + + interface ILBEvents + { + CONST_VTBL struct ILBEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILBEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILBEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILBEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILBEvents_TargetUp(This,bstrServerName,bstrClsidEng) \ + ( (This)->lpVtbl -> TargetUp(This,bstrServerName,bstrClsidEng) ) + +#define ILBEvents_TargetDown(This,bstrServerName,bstrClsidEng) \ + ( (This)->lpVtbl -> TargetDown(This,bstrServerName,bstrClsidEng) ) + +#define ILBEvents_EngineDefined(This,bstrPropName,varPropValue,bstrClsidEng) \ + ( (This)->lpVtbl -> EngineDefined(This,bstrPropName,varPropValue,bstrClsidEng) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILBEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComCRMEvents_INTERFACE_DEFINED__ +#define __IComCRMEvents_INTERFACE_DEFINED__ + +/* interface IComCRMEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComCRMEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("683130B5-2E50-11d2-98A5-00C04F8EE1C4") + IComCRMEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnCRMRecoveryStart( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMRecoveryDone( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMCheckpoint( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMBegin( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID, + /* [in] */ GUID guidActivity, + /* [in] */ GUID guidTx, + /* [in] */ __RPC__in_ecount_full(64) WCHAR szProgIdCompensator[ 64 ], + /* [in] */ __RPC__in_ecount_full(64) WCHAR szDescription[ 64 ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMPrepare( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMCommit( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMAbort( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMIndoubt( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMDone( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMRelease( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMAnalyze( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID, + /* [in] */ DWORD dwCrmRecordType, + /* [in] */ DWORD dwRecordSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMWrite( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID, + /* [in] */ BOOL fVariants, + /* [in] */ DWORD dwRecordSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMForget( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMForce( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCRMDeliver( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID, + /* [in] */ BOOL fVariants, + /* [in] */ DWORD dwRecordSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComCRMEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComCRMEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComCRMEvents * This); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMRecoveryStart) + HRESULT ( STDMETHODCALLTYPE *OnCRMRecoveryStart )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMRecoveryDone) + HRESULT ( STDMETHODCALLTYPE *OnCRMRecoveryDone )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMCheckpoint) + HRESULT ( STDMETHODCALLTYPE *OnCRMCheckpoint )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMBegin) + HRESULT ( STDMETHODCALLTYPE *OnCRMBegin )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID, + /* [in] */ GUID guidActivity, + /* [in] */ GUID guidTx, + /* [in] */ __RPC__in_ecount_full(64) WCHAR szProgIdCompensator[ 64 ], + /* [in] */ __RPC__in_ecount_full(64) WCHAR szDescription[ 64 ]); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMPrepare) + HRESULT ( STDMETHODCALLTYPE *OnCRMPrepare )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMCommit) + HRESULT ( STDMETHODCALLTYPE *OnCRMCommit )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMAbort) + HRESULT ( STDMETHODCALLTYPE *OnCRMAbort )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMIndoubt) + HRESULT ( STDMETHODCALLTYPE *OnCRMIndoubt )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMDone) + HRESULT ( STDMETHODCALLTYPE *OnCRMDone )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMRelease) + HRESULT ( STDMETHODCALLTYPE *OnCRMRelease )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMAnalyze) + HRESULT ( STDMETHODCALLTYPE *OnCRMAnalyze )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID, + /* [in] */ DWORD dwCrmRecordType, + /* [in] */ DWORD dwRecordSize); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMWrite) + HRESULT ( STDMETHODCALLTYPE *OnCRMWrite )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID, + /* [in] */ BOOL fVariants, + /* [in] */ DWORD dwRecordSize); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMForget) + HRESULT ( STDMETHODCALLTYPE *OnCRMForget )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMForce) + HRESULT ( STDMETHODCALLTYPE *OnCRMForce )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID); + + DECLSPEC_XFGVIRT(IComCRMEvents, OnCRMDeliver) + HRESULT ( STDMETHODCALLTYPE *OnCRMDeliver )( + __RPC__in IComCRMEvents * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidClerkCLSID, + /* [in] */ BOOL fVariants, + /* [in] */ DWORD dwRecordSize); + + END_INTERFACE + } IComCRMEventsVtbl; + + interface IComCRMEvents + { + CONST_VTBL struct IComCRMEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComCRMEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComCRMEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComCRMEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComCRMEvents_OnCRMRecoveryStart(This,pInfo,guidApp) \ + ( (This)->lpVtbl -> OnCRMRecoveryStart(This,pInfo,guidApp) ) + +#define IComCRMEvents_OnCRMRecoveryDone(This,pInfo,guidApp) \ + ( (This)->lpVtbl -> OnCRMRecoveryDone(This,pInfo,guidApp) ) + +#define IComCRMEvents_OnCRMCheckpoint(This,pInfo,guidApp) \ + ( (This)->lpVtbl -> OnCRMCheckpoint(This,pInfo,guidApp) ) + +#define IComCRMEvents_OnCRMBegin(This,pInfo,guidClerkCLSID,guidActivity,guidTx,szProgIdCompensator,szDescription) \ + ( (This)->lpVtbl -> OnCRMBegin(This,pInfo,guidClerkCLSID,guidActivity,guidTx,szProgIdCompensator,szDescription) ) + +#define IComCRMEvents_OnCRMPrepare(This,pInfo,guidClerkCLSID) \ + ( (This)->lpVtbl -> OnCRMPrepare(This,pInfo,guidClerkCLSID) ) + +#define IComCRMEvents_OnCRMCommit(This,pInfo,guidClerkCLSID) \ + ( (This)->lpVtbl -> OnCRMCommit(This,pInfo,guidClerkCLSID) ) + +#define IComCRMEvents_OnCRMAbort(This,pInfo,guidClerkCLSID) \ + ( (This)->lpVtbl -> OnCRMAbort(This,pInfo,guidClerkCLSID) ) + +#define IComCRMEvents_OnCRMIndoubt(This,pInfo,guidClerkCLSID) \ + ( (This)->lpVtbl -> OnCRMIndoubt(This,pInfo,guidClerkCLSID) ) + +#define IComCRMEvents_OnCRMDone(This,pInfo,guidClerkCLSID) \ + ( (This)->lpVtbl -> OnCRMDone(This,pInfo,guidClerkCLSID) ) + +#define IComCRMEvents_OnCRMRelease(This,pInfo,guidClerkCLSID) \ + ( (This)->lpVtbl -> OnCRMRelease(This,pInfo,guidClerkCLSID) ) + +#define IComCRMEvents_OnCRMAnalyze(This,pInfo,guidClerkCLSID,dwCrmRecordType,dwRecordSize) \ + ( (This)->lpVtbl -> OnCRMAnalyze(This,pInfo,guidClerkCLSID,dwCrmRecordType,dwRecordSize) ) + +#define IComCRMEvents_OnCRMWrite(This,pInfo,guidClerkCLSID,fVariants,dwRecordSize) \ + ( (This)->lpVtbl -> OnCRMWrite(This,pInfo,guidClerkCLSID,fVariants,dwRecordSize) ) + +#define IComCRMEvents_OnCRMForget(This,pInfo,guidClerkCLSID) \ + ( (This)->lpVtbl -> OnCRMForget(This,pInfo,guidClerkCLSID) ) + +#define IComCRMEvents_OnCRMForce(This,pInfo,guidClerkCLSID) \ + ( (This)->lpVtbl -> OnCRMForce(This,pInfo,guidClerkCLSID) ) + +#define IComCRMEvents_OnCRMDeliver(This,pInfo,guidClerkCLSID,fVariants,dwRecordSize) \ + ( (This)->lpVtbl -> OnCRMDeliver(This,pInfo,guidClerkCLSID,fVariants,dwRecordSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComCRMEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IComMethod2Events_INTERFACE_DEFINED__ +#define __IComMethod2Events_INTERFACE_DEFINED__ + +/* interface IComMethod2Events */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComMethod2Events; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FB388AAA-567D-4024-AF8E-6E93EE748573") + IComMethod2Events : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnMethodCall2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ DWORD dwThread, + /* [in] */ ULONG iMeth) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnMethodReturn2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ DWORD dwThread, + /* [in] */ ULONG iMeth, + /* [in] */ HRESULT hresult) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnMethodException2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ DWORD dwThread, + /* [in] */ ULONG iMeth) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComMethod2EventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComMethod2Events * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComMethod2Events * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComMethod2Events * This); + + DECLSPEC_XFGVIRT(IComMethod2Events, OnMethodCall2) + HRESULT ( STDMETHODCALLTYPE *OnMethodCall2 )( + __RPC__in IComMethod2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ DWORD dwThread, + /* [in] */ ULONG iMeth); + + DECLSPEC_XFGVIRT(IComMethod2Events, OnMethodReturn2) + HRESULT ( STDMETHODCALLTYPE *OnMethodReturn2 )( + __RPC__in IComMethod2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ DWORD dwThread, + /* [in] */ ULONG iMeth, + /* [in] */ HRESULT hresult); + + DECLSPEC_XFGVIRT(IComMethod2Events, OnMethodException2) + HRESULT ( STDMETHODCALLTYPE *OnMethodException2 )( + __RPC__in IComMethod2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFCLSID guidCid, + /* [in] */ __RPC__in REFIID guidRid, + /* [in] */ DWORD dwThread, + /* [in] */ ULONG iMeth); + + END_INTERFACE + } IComMethod2EventsVtbl; + + interface IComMethod2Events + { + CONST_VTBL struct IComMethod2EventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComMethod2Events_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComMethod2Events_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComMethod2Events_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComMethod2Events_OnMethodCall2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth) \ + ( (This)->lpVtbl -> OnMethodCall2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth) ) + +#define IComMethod2Events_OnMethodReturn2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth,hresult) \ + ( (This)->lpVtbl -> OnMethodReturn2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth,hresult) ) + +#define IComMethod2Events_OnMethodException2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth) \ + ( (This)->lpVtbl -> OnMethodException2(This,pInfo,oid,guidCid,guidRid,dwThread,iMeth) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComMethod2Events_INTERFACE_DEFINED__ */ + + +#ifndef __IComTrackingInfoEvents_INTERFACE_DEFINED__ +#define __IComTrackingInfoEvents_INTERFACE_DEFINED__ + +/* interface IComTrackingInfoEvents */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComTrackingInfoEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4e6cdcc9-fb25-4fd5-9cc5-c9f4b6559cec") + IComTrackingInfoEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnNewTrackingInfo( + /* [in] */ __RPC__in_opt IUnknown *pToplevelCollection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComTrackingInfoEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComTrackingInfoEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComTrackingInfoEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComTrackingInfoEvents * This); + + DECLSPEC_XFGVIRT(IComTrackingInfoEvents, OnNewTrackingInfo) + HRESULT ( STDMETHODCALLTYPE *OnNewTrackingInfo )( + __RPC__in IComTrackingInfoEvents * This, + /* [in] */ __RPC__in_opt IUnknown *pToplevelCollection); + + END_INTERFACE + } IComTrackingInfoEventsVtbl; + + interface IComTrackingInfoEvents + { + CONST_VTBL struct IComTrackingInfoEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComTrackingInfoEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComTrackingInfoEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComTrackingInfoEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComTrackingInfoEvents_OnNewTrackingInfo(This,pToplevelCollection) \ + ( (This)->lpVtbl -> OnNewTrackingInfo(This,pToplevelCollection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComTrackingInfoEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0034 */ +/* [local] */ + +typedef /* [public][public] */ +enum __MIDL___MIDL_itf_autosvcs_0000_0034_0001 + { + TRKCOLL_PROCESSES = 0, + TRKCOLL_APPLICATIONS = ( TRKCOLL_PROCESSES + 1 ) , + TRKCOLL_COMPONENTS = ( TRKCOLL_APPLICATIONS + 1 ) + } TRACKING_COLL_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0034_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0034_v0_0_s_ifspec; + +#ifndef __IComTrackingInfoCollection_INTERFACE_DEFINED__ +#define __IComTrackingInfoCollection_INTERFACE_DEFINED__ + +/* interface IComTrackingInfoCollection */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComTrackingInfoCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c266c677-c9ad-49ab-9fd9-d9661078588a") + IComTrackingInfoCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Type( + /* [out] */ __RPC__out TRACKING_COLL_TYPE *pType) = 0; + + virtual HRESULT STDMETHODCALLTYPE Count( + /* [out] */ __RPC__out ULONG *pCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Item( + /* [in] */ ULONG ulIndex, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppv) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComTrackingInfoCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComTrackingInfoCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComTrackingInfoCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComTrackingInfoCollection * This); + + DECLSPEC_XFGVIRT(IComTrackingInfoCollection, Type) + HRESULT ( STDMETHODCALLTYPE *Type )( + __RPC__in IComTrackingInfoCollection * This, + /* [out] */ __RPC__out TRACKING_COLL_TYPE *pType); + + DECLSPEC_XFGVIRT(IComTrackingInfoCollection, Count) + HRESULT ( STDMETHODCALLTYPE *Count )( + __RPC__in IComTrackingInfoCollection * This, + /* [out] */ __RPC__out ULONG *pCount); + + DECLSPEC_XFGVIRT(IComTrackingInfoCollection, Item) + HRESULT ( STDMETHODCALLTYPE *Item )( + __RPC__in IComTrackingInfoCollection * This, + /* [in] */ ULONG ulIndex, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppv); + + END_INTERFACE + } IComTrackingInfoCollectionVtbl; + + interface IComTrackingInfoCollection + { + CONST_VTBL struct IComTrackingInfoCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComTrackingInfoCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComTrackingInfoCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComTrackingInfoCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComTrackingInfoCollection_Type(This,pType) \ + ( (This)->lpVtbl -> Type(This,pType) ) + +#define IComTrackingInfoCollection_Count(This,pCount) \ + ( (This)->lpVtbl -> Count(This,pCount) ) + +#define IComTrackingInfoCollection_Item(This,ulIndex,riid,ppv) \ + ( (This)->lpVtbl -> Item(This,ulIndex,riid,ppv) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComTrackingInfoCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IComTrackingInfoObject_INTERFACE_DEFINED__ +#define __IComTrackingInfoObject_INTERFACE_DEFINED__ + +/* interface IComTrackingInfoObject */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComTrackingInfoObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("116e42c5-d8b1-47bf-ab1e-c895ed3e2372") + IComTrackingInfoObject : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [in] */ __RPC__in LPOLESTR szPropertyName, + /* [out] */ __RPC__out VARIANT *pvarOut) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComTrackingInfoObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComTrackingInfoObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComTrackingInfoObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComTrackingInfoObject * This); + + DECLSPEC_XFGVIRT(IComTrackingInfoObject, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in IComTrackingInfoObject * This, + /* [in] */ __RPC__in LPOLESTR szPropertyName, + /* [out] */ __RPC__out VARIANT *pvarOut); + + END_INTERFACE + } IComTrackingInfoObjectVtbl; + + interface IComTrackingInfoObject + { + CONST_VTBL struct IComTrackingInfoObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComTrackingInfoObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComTrackingInfoObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComTrackingInfoObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComTrackingInfoObject_GetValue(This,szPropertyName,pvarOut) \ + ( (This)->lpVtbl -> GetValue(This,szPropertyName,pvarOut) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComTrackingInfoObject_INTERFACE_DEFINED__ */ + + +#ifndef __IComTrackingInfoProperties_INTERFACE_DEFINED__ +#define __IComTrackingInfoProperties_INTERFACE_DEFINED__ + +/* interface IComTrackingInfoProperties */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComTrackingInfoProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("789b42be-6f6b-443a-898e-67abf390aa14") + IComTrackingInfoProperties : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE PropCount( + /* [out] */ __RPC__out ULONG *pCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropName( + /* [in] */ ULONG ulIndex, + /* [string][out] */ __RPC__deref_out_opt_string LPOLESTR *ppszPropName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComTrackingInfoPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComTrackingInfoProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComTrackingInfoProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComTrackingInfoProperties * This); + + DECLSPEC_XFGVIRT(IComTrackingInfoProperties, PropCount) + HRESULT ( STDMETHODCALLTYPE *PropCount )( + __RPC__in IComTrackingInfoProperties * This, + /* [out] */ __RPC__out ULONG *pCount); + + DECLSPEC_XFGVIRT(IComTrackingInfoProperties, GetPropName) + HRESULT ( STDMETHODCALLTYPE *GetPropName )( + __RPC__in IComTrackingInfoProperties * This, + /* [in] */ ULONG ulIndex, + /* [string][out] */ __RPC__deref_out_opt_string LPOLESTR *ppszPropName); + + END_INTERFACE + } IComTrackingInfoPropertiesVtbl; + + interface IComTrackingInfoProperties + { + CONST_VTBL struct IComTrackingInfoPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComTrackingInfoProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComTrackingInfoProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComTrackingInfoProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComTrackingInfoProperties_PropCount(This,pCount) \ + ( (This)->lpVtbl -> PropCount(This,pCount) ) + +#define IComTrackingInfoProperties_GetPropName(This,ulIndex,ppszPropName) \ + ( (This)->lpVtbl -> GetPropName(This,ulIndex,ppszPropName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComTrackingInfoProperties_INTERFACE_DEFINED__ */ + + +#ifndef __IComApp2Events_INTERFACE_DEFINED__ +#define __IComApp2Events_INTERFACE_DEFINED__ + +/* interface IComApp2Events */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComApp2Events; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1290BC1A-B219-418d-B078-5934DED08242") + IComApp2Events : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnAppActivation2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp, + /* [in] */ GUID guidProcess) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnAppShutdown2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnAppForceShutdown2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnAppPaused2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp, + /* [in] */ BOOL bPaused) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnAppRecycle2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp, + /* [in] */ GUID guidProcess, + /* [in] */ long lReason) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComApp2EventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComApp2Events * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComApp2Events * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComApp2Events * This); + + DECLSPEC_XFGVIRT(IComApp2Events, OnAppActivation2) + HRESULT ( STDMETHODCALLTYPE *OnAppActivation2 )( + __RPC__in IComApp2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp, + /* [in] */ GUID guidProcess); + + DECLSPEC_XFGVIRT(IComApp2Events, OnAppShutdown2) + HRESULT ( STDMETHODCALLTYPE *OnAppShutdown2 )( + __RPC__in IComApp2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp); + + DECLSPEC_XFGVIRT(IComApp2Events, OnAppForceShutdown2) + HRESULT ( STDMETHODCALLTYPE *OnAppForceShutdown2 )( + __RPC__in IComApp2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp); + + DECLSPEC_XFGVIRT(IComApp2Events, OnAppPaused2) + HRESULT ( STDMETHODCALLTYPE *OnAppPaused2 )( + __RPC__in IComApp2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp, + /* [in] */ BOOL bPaused); + + DECLSPEC_XFGVIRT(IComApp2Events, OnAppRecycle2) + HRESULT ( STDMETHODCALLTYPE *OnAppRecycle2 )( + __RPC__in IComApp2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ GUID guidApp, + /* [in] */ GUID guidProcess, + /* [in] */ long lReason); + + END_INTERFACE + } IComApp2EventsVtbl; + + interface IComApp2Events + { + CONST_VTBL struct IComApp2EventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComApp2Events_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComApp2Events_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComApp2Events_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComApp2Events_OnAppActivation2(This,pInfo,guidApp,guidProcess) \ + ( (This)->lpVtbl -> OnAppActivation2(This,pInfo,guidApp,guidProcess) ) + +#define IComApp2Events_OnAppShutdown2(This,pInfo,guidApp) \ + ( (This)->lpVtbl -> OnAppShutdown2(This,pInfo,guidApp) ) + +#define IComApp2Events_OnAppForceShutdown2(This,pInfo,guidApp) \ + ( (This)->lpVtbl -> OnAppForceShutdown2(This,pInfo,guidApp) ) + +#define IComApp2Events_OnAppPaused2(This,pInfo,guidApp,bPaused) \ + ( (This)->lpVtbl -> OnAppPaused2(This,pInfo,guidApp,bPaused) ) + +#define IComApp2Events_OnAppRecycle2(This,pInfo,guidApp,guidProcess,lReason) \ + ( (This)->lpVtbl -> OnAppRecycle2(This,pInfo,guidApp,guidProcess,lReason) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComApp2Events_INTERFACE_DEFINED__ */ + + +#ifndef __IComTransaction2Events_INTERFACE_DEFINED__ +#define __IComTransaction2Events_INTERFACE_DEFINED__ + +/* interface IComTransaction2Events */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComTransaction2Events; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A136F62A-2F94-4288-86E0-D8A1FA4C0299") + IComTransaction2Events : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnTransactionStart2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ __RPC__in REFGUID tsid, + /* [in] */ BOOL fRoot, + /* [in] */ int nIsolationLevel) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnTransactionPrepare2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ BOOL fVoteYes) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnTransactionAbort2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnTransactionCommit2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComTransaction2EventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComTransaction2Events * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComTransaction2Events * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComTransaction2Events * This); + + DECLSPEC_XFGVIRT(IComTransaction2Events, OnTransactionStart2) + HRESULT ( STDMETHODCALLTYPE *OnTransactionStart2 )( + __RPC__in IComTransaction2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ __RPC__in REFGUID tsid, + /* [in] */ BOOL fRoot, + /* [in] */ int nIsolationLevel); + + DECLSPEC_XFGVIRT(IComTransaction2Events, OnTransactionPrepare2) + HRESULT ( STDMETHODCALLTYPE *OnTransactionPrepare2 )( + __RPC__in IComTransaction2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ BOOL fVoteYes); + + DECLSPEC_XFGVIRT(IComTransaction2Events, OnTransactionAbort2) + HRESULT ( STDMETHODCALLTYPE *OnTransactionAbort2 )( + __RPC__in IComTransaction2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx); + + DECLSPEC_XFGVIRT(IComTransaction2Events, OnTransactionCommit2) + HRESULT ( STDMETHODCALLTYPE *OnTransactionCommit2 )( + __RPC__in IComTransaction2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidTx); + + END_INTERFACE + } IComTransaction2EventsVtbl; + + interface IComTransaction2Events + { + CONST_VTBL struct IComTransaction2EventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComTransaction2Events_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComTransaction2Events_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComTransaction2Events_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComTransaction2Events_OnTransactionStart2(This,pInfo,guidTx,tsid,fRoot,nIsolationLevel) \ + ( (This)->lpVtbl -> OnTransactionStart2(This,pInfo,guidTx,tsid,fRoot,nIsolationLevel) ) + +#define IComTransaction2Events_OnTransactionPrepare2(This,pInfo,guidTx,fVoteYes) \ + ( (This)->lpVtbl -> OnTransactionPrepare2(This,pInfo,guidTx,fVoteYes) ) + +#define IComTransaction2Events_OnTransactionAbort2(This,pInfo,guidTx) \ + ( (This)->lpVtbl -> OnTransactionAbort2(This,pInfo,guidTx) ) + +#define IComTransaction2Events_OnTransactionCommit2(This,pInfo,guidTx) \ + ( (This)->lpVtbl -> OnTransactionCommit2(This,pInfo,guidTx) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComTransaction2Events_INTERFACE_DEFINED__ */ + + +#ifndef __IComInstance2Events_INTERFACE_DEFINED__ +#define __IComInstance2Events_INTERFACE_DEFINED__ + +/* interface IComInstance2Events */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComInstance2Events; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("20E3BF07-B506-4ad5-A50C-D2CA5B9C158E") + IComInstance2Events : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnObjectCreate2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ __RPC__in REFCLSID clsid, + /* [in] */ __RPC__in REFGUID tsid, + /* [in] */ ULONG64 CtxtID, + /* [in] */ ULONG64 ObjectID, + /* [in] */ __RPC__in REFGUID guidPartition) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjectDestroy2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComInstance2EventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComInstance2Events * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComInstance2Events * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComInstance2Events * This); + + DECLSPEC_XFGVIRT(IComInstance2Events, OnObjectCreate2) + HRESULT ( STDMETHODCALLTYPE *OnObjectCreate2 )( + __RPC__in IComInstance2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ __RPC__in REFCLSID clsid, + /* [in] */ __RPC__in REFGUID tsid, + /* [in] */ ULONG64 CtxtID, + /* [in] */ ULONG64 ObjectID, + /* [in] */ __RPC__in REFGUID guidPartition); + + DECLSPEC_XFGVIRT(IComInstance2Events, OnObjectDestroy2) + HRESULT ( STDMETHODCALLTYPE *OnObjectDestroy2 )( + __RPC__in IComInstance2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ ULONG64 CtxtID); + + END_INTERFACE + } IComInstance2EventsVtbl; + + interface IComInstance2Events + { + CONST_VTBL struct IComInstance2EventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComInstance2Events_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComInstance2Events_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComInstance2Events_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComInstance2Events_OnObjectCreate2(This,pInfo,guidActivity,clsid,tsid,CtxtID,ObjectID,guidPartition) \ + ( (This)->lpVtbl -> OnObjectCreate2(This,pInfo,guidActivity,clsid,tsid,CtxtID,ObjectID,guidPartition) ) + +#define IComInstance2Events_OnObjectDestroy2(This,pInfo,CtxtID) \ + ( (This)->lpVtbl -> OnObjectDestroy2(This,pInfo,CtxtID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComInstance2Events_INTERFACE_DEFINED__ */ + + +#ifndef __IComObjectPool2Events_INTERFACE_DEFINED__ +#define __IComObjectPool2Events_INTERFACE_DEFINED__ + +/* interface IComObjectPool2Events */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComObjectPool2Events; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("65BF6534-85EA-4f64-8CF4-3D974B2AB1CF") + IComObjectPool2Events : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnObjPoolPutObject2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ int nReason, + /* [in] */ DWORD dwAvailable, + /* [in] */ ULONG64 oid) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjPoolGetObject2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ DWORD dwAvailable, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFGUID guidPartition) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjPoolRecycleToTx2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ ULONG64 objid) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnObjPoolGetFromTx2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ ULONG64 objid, + /* [in] */ __RPC__in REFGUID guidPartition) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComObjectPool2EventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComObjectPool2Events * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComObjectPool2Events * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComObjectPool2Events * This); + + DECLSPEC_XFGVIRT(IComObjectPool2Events, OnObjPoolPutObject2) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolPutObject2 )( + __RPC__in IComObjectPool2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ int nReason, + /* [in] */ DWORD dwAvailable, + /* [in] */ ULONG64 oid); + + DECLSPEC_XFGVIRT(IComObjectPool2Events, OnObjPoolGetObject2) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolGetObject2 )( + __RPC__in IComObjectPool2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ DWORD dwAvailable, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFGUID guidPartition); + + DECLSPEC_XFGVIRT(IComObjectPool2Events, OnObjPoolRecycleToTx2) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolRecycleToTx2 )( + __RPC__in IComObjectPool2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ ULONG64 objid); + + DECLSPEC_XFGVIRT(IComObjectPool2Events, OnObjPoolGetFromTx2) + HRESULT ( STDMETHODCALLTYPE *OnObjPoolGetFromTx2 )( + __RPC__in IComObjectPool2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidActivity, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ __RPC__in REFGUID guidTx, + /* [in] */ ULONG64 objid, + /* [in] */ __RPC__in REFGUID guidPartition); + + END_INTERFACE + } IComObjectPool2EventsVtbl; + + interface IComObjectPool2Events + { + CONST_VTBL struct IComObjectPool2EventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComObjectPool2Events_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComObjectPool2Events_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComObjectPool2Events_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComObjectPool2Events_OnObjPoolPutObject2(This,pInfo,guidObject,nReason,dwAvailable,oid) \ + ( (This)->lpVtbl -> OnObjPoolPutObject2(This,pInfo,guidObject,nReason,dwAvailable,oid) ) + +#define IComObjectPool2Events_OnObjPoolGetObject2(This,pInfo,guidActivity,guidObject,dwAvailable,oid,guidPartition) \ + ( (This)->lpVtbl -> OnObjPoolGetObject2(This,pInfo,guidActivity,guidObject,dwAvailable,oid,guidPartition) ) + +#define IComObjectPool2Events_OnObjPoolRecycleToTx2(This,pInfo,guidActivity,guidObject,guidTx,objid) \ + ( (This)->lpVtbl -> OnObjPoolRecycleToTx2(This,pInfo,guidActivity,guidObject,guidTx,objid) ) + +#define IComObjectPool2Events_OnObjPoolGetFromTx2(This,pInfo,guidActivity,guidObject,guidTx,objid,guidPartition) \ + ( (This)->lpVtbl -> OnObjPoolGetFromTx2(This,pInfo,guidActivity,guidObject,guidTx,objid,guidPartition) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComObjectPool2Events_INTERFACE_DEFINED__ */ + + +#ifndef __IComObjectConstruction2Events_INTERFACE_DEFINED__ +#define __IComObjectConstruction2Events_INTERFACE_DEFINED__ + +/* interface IComObjectConstruction2Events */ +/* [uuid][hidden][object] */ + + +EXTERN_C const IID IID_IComObjectConstruction2Events; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4B5A7827-8DF2-45c0-8F6F-57EA1F856A9F") + IComObjectConstruction2Events : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnObjectConstruct2( + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ __RPC__in LPCOLESTR sConstructString, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFGUID guidPartition) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComObjectConstruction2EventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComObjectConstruction2Events * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComObjectConstruction2Events * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComObjectConstruction2Events * This); + + DECLSPEC_XFGVIRT(IComObjectConstruction2Events, OnObjectConstruct2) + HRESULT ( STDMETHODCALLTYPE *OnObjectConstruct2 )( + __RPC__in IComObjectConstruction2Events * This, + /* [in] */ __RPC__in COMSVCSEVENTINFO *pInfo, + /* [in] */ __RPC__in REFGUID guidObject, + /* [in] */ __RPC__in LPCOLESTR sConstructString, + /* [in] */ ULONG64 oid, + /* [in] */ __RPC__in REFGUID guidPartition); + + END_INTERFACE + } IComObjectConstruction2EventsVtbl; + + interface IComObjectConstruction2Events + { + CONST_VTBL struct IComObjectConstruction2EventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComObjectConstruction2Events_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComObjectConstruction2Events_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComObjectConstruction2Events_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComObjectConstruction2Events_OnObjectConstruct2(This,pInfo,guidObject,sConstructString,oid,guidPartition) \ + ( (This)->lpVtbl -> OnObjectConstruct2(This,pInfo,guidObject,sConstructString,oid,guidPartition) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComObjectConstruction2Events_INTERFACE_DEFINED__ */ + + +#ifndef __ISystemAppEventData_INTERFACE_DEFINED__ +#define __ISystemAppEventData_INTERFACE_DEFINED__ + +/* interface ISystemAppEventData */ +/* [unique][uuid][hidden][object] */ + + +EXTERN_C const IID IID_ISystemAppEventData; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D6D48A3C-D5C5-49E7-8C74-99E4889ED52F") + ISystemAppEventData : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Startup( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnDataChanged( + /* [in] */ DWORD dwPID, + /* [in] */ DWORD dwMask, + /* [in] */ DWORD dwNumberSinks, + /* [in] */ __RPC__in BSTR bstrDwMethodMask, + /* [in] */ DWORD dwReason, + /* [in] */ ULONG64 u64TraceHandle) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISystemAppEventDataVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISystemAppEventData * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISystemAppEventData * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISystemAppEventData * This); + + DECLSPEC_XFGVIRT(ISystemAppEventData, Startup) + HRESULT ( STDMETHODCALLTYPE *Startup )( + __RPC__in ISystemAppEventData * This); + + DECLSPEC_XFGVIRT(ISystemAppEventData, OnDataChanged) + HRESULT ( STDMETHODCALLTYPE *OnDataChanged )( + __RPC__in ISystemAppEventData * This, + /* [in] */ DWORD dwPID, + /* [in] */ DWORD dwMask, + /* [in] */ DWORD dwNumberSinks, + /* [in] */ __RPC__in BSTR bstrDwMethodMask, + /* [in] */ DWORD dwReason, + /* [in] */ ULONG64 u64TraceHandle); + + END_INTERFACE + } ISystemAppEventDataVtbl; + + interface ISystemAppEventData + { + CONST_VTBL struct ISystemAppEventDataVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISystemAppEventData_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISystemAppEventData_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISystemAppEventData_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISystemAppEventData_Startup(This) \ + ( (This)->lpVtbl -> Startup(This) ) + +#define ISystemAppEventData_OnDataChanged(This,dwPID,dwMask,dwNumberSinks,bstrDwMethodMask,dwReason,u64TraceHandle) \ + ( (This)->lpVtbl -> OnDataChanged(This,dwPID,dwMask,dwNumberSinks,bstrDwMethodMask,dwReason,u64TraceHandle) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISystemAppEventData_INTERFACE_DEFINED__ */ + + +#ifndef __IMtsEvents_INTERFACE_DEFINED__ +#define __IMtsEvents_INTERFACE_DEFINED__ + +/* interface IMtsEvents */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IMtsEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BACEDF4D-74AB-11D0-B162-00AA00BA3258") + IMtsEvents : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PackageName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PackageGuid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PostEvent( + /* [in] */ __RPC__in VARIANT *vEvent) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FireEvents( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetProcessID( + /* [retval][out] */ __RPC__out long *id) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMtsEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMtsEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMtsEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMtsEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMtsEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMtsEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMtsEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMtsEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMtsEvents, get_PackageName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PackageName )( + __RPC__in IMtsEvents * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IMtsEvents, get_PackageGuid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PackageGuid )( + __RPC__in IMtsEvents * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IMtsEvents, PostEvent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PostEvent )( + __RPC__in IMtsEvents * This, + /* [in] */ __RPC__in VARIANT *vEvent); + + DECLSPEC_XFGVIRT(IMtsEvents, get_FireEvents) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FireEvents )( + __RPC__in IMtsEvents * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IMtsEvents, GetProcessID) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetProcessID )( + __RPC__in IMtsEvents * This, + /* [retval][out] */ __RPC__out long *id); + + END_INTERFACE + } IMtsEventsVtbl; + + interface IMtsEvents + { + CONST_VTBL struct IMtsEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMtsEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMtsEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMtsEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMtsEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMtsEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMtsEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMtsEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMtsEvents_get_PackageName(This,pVal) \ + ( (This)->lpVtbl -> get_PackageName(This,pVal) ) + +#define IMtsEvents_get_PackageGuid(This,pVal) \ + ( (This)->lpVtbl -> get_PackageGuid(This,pVal) ) + +#define IMtsEvents_PostEvent(This,vEvent) \ + ( (This)->lpVtbl -> PostEvent(This,vEvent) ) + +#define IMtsEvents_get_FireEvents(This,pVal) \ + ( (This)->lpVtbl -> get_FireEvents(This,pVal) ) + +#define IMtsEvents_GetProcessID(This,id) \ + ( (This)->lpVtbl -> GetProcessID(This,id) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMtsEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IMtsEventInfo_INTERFACE_DEFINED__ +#define __IMtsEventInfo_INTERFACE_DEFINED__ + +/* interface IMtsEventInfo */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IMtsEventInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D56C3DC1-8482-11d0-B170-00AA00BA3258") + IMtsEventInfo : public IDispatch + { + public: + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Names( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **pUnk) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *sDisplayName) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_EventID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *sGuidEventID) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *lCount) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [in] */ __RPC__in BSTR sKey, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMtsEventInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMtsEventInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMtsEventInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMtsEventInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMtsEventInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMtsEventInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMtsEventInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMtsEventInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMtsEventInfo, get_Names) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Names )( + __RPC__in IMtsEventInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **pUnk); + + DECLSPEC_XFGVIRT(IMtsEventInfo, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IMtsEventInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *sDisplayName); + + DECLSPEC_XFGVIRT(IMtsEventInfo, get_EventID) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventID )( + __RPC__in IMtsEventInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *sGuidEventID); + + DECLSPEC_XFGVIRT(IMtsEventInfo, get_Count) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IMtsEventInfo * This, + /* [retval][out] */ __RPC__out long *lCount); + + DECLSPEC_XFGVIRT(IMtsEventInfo, get_Value) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IMtsEventInfo * This, + /* [in] */ __RPC__in BSTR sKey, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + END_INTERFACE + } IMtsEventInfoVtbl; + + interface IMtsEventInfo + { + CONST_VTBL struct IMtsEventInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMtsEventInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMtsEventInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMtsEventInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMtsEventInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMtsEventInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMtsEventInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMtsEventInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMtsEventInfo_get_Names(This,pUnk) \ + ( (This)->lpVtbl -> get_Names(This,pUnk) ) + +#define IMtsEventInfo_get_DisplayName(This,sDisplayName) \ + ( (This)->lpVtbl -> get_DisplayName(This,sDisplayName) ) + +#define IMtsEventInfo_get_EventID(This,sGuidEventID) \ + ( (This)->lpVtbl -> get_EventID(This,sGuidEventID) ) + +#define IMtsEventInfo_get_Count(This,lCount) \ + ( (This)->lpVtbl -> get_Count(This,lCount) ) + +#define IMtsEventInfo_get_Value(This,sKey,pVal) \ + ( (This)->lpVtbl -> get_Value(This,sKey,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMtsEventInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IMTSLocator_INTERFACE_DEFINED__ +#define __IMTSLocator_INTERFACE_DEFINED__ + +/* interface IMTSLocator */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IMTSLocator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D19B8BFD-7F88-11D0-B16E-00AA00BA3258") + IMTSLocator : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetEventDispatcher( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **pUnk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMTSLocatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMTSLocator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMTSLocator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMTSLocator * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMTSLocator * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMTSLocator * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMTSLocator * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMTSLocator * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMTSLocator, GetEventDispatcher) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetEventDispatcher )( + __RPC__in IMTSLocator * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **pUnk); + + END_INTERFACE + } IMTSLocatorVtbl; + + interface IMTSLocator + { + CONST_VTBL struct IMTSLocatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMTSLocator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMTSLocator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMTSLocator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMTSLocator_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMTSLocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMTSLocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMTSLocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMTSLocator_GetEventDispatcher(This,pUnk) \ + ( (This)->lpVtbl -> GetEventDispatcher(This,pUnk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMTSLocator_INTERFACE_DEFINED__ */ + + +#ifndef __IMtsGrp_INTERFACE_DEFINED__ +#define __IMtsGrp_INTERFACE_DEFINED__ + +/* interface IMtsGrp */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IMtsGrp; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4B2E958C-0393-11D1-B1AB-00AA00BA3258") + IMtsGrp : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Item( + /* [in] */ long lIndex, + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDispatcher) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMtsGrpVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMtsGrp * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMtsGrp * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMtsGrp * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMtsGrp * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMtsGrp * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMtsGrp * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMtsGrp * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMtsGrp, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IMtsGrp * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IMtsGrp, Item) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Item )( + __RPC__in IMtsGrp * This, + /* [in] */ long lIndex, + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDispatcher); + + DECLSPEC_XFGVIRT(IMtsGrp, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IMtsGrp * This); + + END_INTERFACE + } IMtsGrpVtbl; + + interface IMtsGrp + { + CONST_VTBL struct IMtsGrpVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMtsGrp_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMtsGrp_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMtsGrp_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMtsGrp_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMtsGrp_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMtsGrp_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMtsGrp_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMtsGrp_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IMtsGrp_Item(This,lIndex,ppUnkDispatcher) \ + ( (This)->lpVtbl -> Item(This,lIndex,ppUnkDispatcher) ) + +#define IMtsGrp_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMtsGrp_INTERFACE_DEFINED__ */ + + +#ifndef __IMessageMover_INTERFACE_DEFINED__ +#define __IMessageMover_INTERFACE_DEFINED__ + +/* interface IMessageMover */ +/* [unique][dual][nonextensible][oleautomation][hidden][object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IMessageMover; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("588A085A-B795-11D1-8054-00C04FC340EE") + IMessageMover : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SourcePath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SourcePath( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DestPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DestPath( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CommitBatchSize( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_CommitBatchSize( + /* [in] */ long newVal) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE MoveMessages( + /* [retval][out] */ __RPC__out long *plMessagesMoved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMessageMoverVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMessageMover * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMessageMover * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMessageMover * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMessageMover * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMessageMover * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMessageMover * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMessageMover * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMessageMover, get_SourcePath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourcePath )( + __RPC__in IMessageMover * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IMessageMover, put_SourcePath) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourcePath )( + __RPC__in IMessageMover * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IMessageMover, get_DestPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestPath )( + __RPC__in IMessageMover * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IMessageMover, put_DestPath) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestPath )( + __RPC__in IMessageMover * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IMessageMover, get_CommitBatchSize) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommitBatchSize )( + __RPC__in IMessageMover * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IMessageMover, put_CommitBatchSize) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CommitBatchSize )( + __RPC__in IMessageMover * This, + /* [in] */ long newVal); + + DECLSPEC_XFGVIRT(IMessageMover, MoveMessages) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *MoveMessages )( + __RPC__in IMessageMover * This, + /* [retval][out] */ __RPC__out long *plMessagesMoved); + + END_INTERFACE + } IMessageMoverVtbl; + + interface IMessageMover + { + CONST_VTBL struct IMessageMoverVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMessageMover_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMessageMover_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMessageMover_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMessageMover_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMessageMover_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMessageMover_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMessageMover_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMessageMover_get_SourcePath(This,pVal) \ + ( (This)->lpVtbl -> get_SourcePath(This,pVal) ) + +#define IMessageMover_put_SourcePath(This,newVal) \ + ( (This)->lpVtbl -> put_SourcePath(This,newVal) ) + +#define IMessageMover_get_DestPath(This,pVal) \ + ( (This)->lpVtbl -> get_DestPath(This,pVal) ) + +#define IMessageMover_put_DestPath(This,newVal) \ + ( (This)->lpVtbl -> put_DestPath(This,newVal) ) + +#define IMessageMover_get_CommitBatchSize(This,pVal) \ + ( (This)->lpVtbl -> get_CommitBatchSize(This,pVal) ) + +#define IMessageMover_put_CommitBatchSize(This,newVal) \ + ( (This)->lpVtbl -> put_CommitBatchSize(This,newVal) ) + +#define IMessageMover_MoveMessages(This,plMessagesMoved) \ + ( (This)->lpVtbl -> MoveMessages(This,plMessagesMoved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMessageMover_INTERFACE_DEFINED__ */ + + +#ifndef __IEventServerTrace_INTERFACE_DEFINED__ +#define __IEventServerTrace_INTERFACE_DEFINED__ + +/* interface IEventServerTrace */ +/* [object][unique][helpstring][dual][uuid] */ + + +EXTERN_C const IID IID_IEventServerTrace; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9A9F12B8-80AF-47ab-A579-35EA57725370") + IEventServerTrace : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE StartTraceGuid( + /* [in] */ __RPC__in BSTR bstrguidEvent, + /* [in] */ __RPC__in BSTR bstrguidFilter, + /* [in] */ LONG lPidFilter) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE StopTraceGuid( + /* [in] */ __RPC__in BSTR bstrguidEvent, + /* [in] */ __RPC__in BSTR bstrguidFilter, + /* [in] */ LONG lPidFilter) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumTraceGuid( + /* [out] */ __RPC__out LONG *plCntGuids, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrGuidList) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventServerTraceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventServerTrace * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventServerTrace * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventServerTrace * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IEventServerTrace * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IEventServerTrace * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IEventServerTrace * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEventServerTrace * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEventServerTrace, StartTraceGuid) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StartTraceGuid )( + __RPC__in IEventServerTrace * This, + /* [in] */ __RPC__in BSTR bstrguidEvent, + /* [in] */ __RPC__in BSTR bstrguidFilter, + /* [in] */ LONG lPidFilter); + + DECLSPEC_XFGVIRT(IEventServerTrace, StopTraceGuid) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *StopTraceGuid )( + __RPC__in IEventServerTrace * This, + /* [in] */ __RPC__in BSTR bstrguidEvent, + /* [in] */ __RPC__in BSTR bstrguidFilter, + /* [in] */ LONG lPidFilter); + + DECLSPEC_XFGVIRT(IEventServerTrace, EnumTraceGuid) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumTraceGuid )( + __RPC__in IEventServerTrace * This, + /* [out] */ __RPC__out LONG *plCntGuids, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrGuidList); + + END_INTERFACE + } IEventServerTraceVtbl; + + interface IEventServerTrace + { + CONST_VTBL struct IEventServerTraceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventServerTrace_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventServerTrace_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventServerTrace_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventServerTrace_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEventServerTrace_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEventServerTrace_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEventServerTrace_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEventServerTrace_StartTraceGuid(This,bstrguidEvent,bstrguidFilter,lPidFilter) \ + ( (This)->lpVtbl -> StartTraceGuid(This,bstrguidEvent,bstrguidFilter,lPidFilter) ) + +#define IEventServerTrace_StopTraceGuid(This,bstrguidEvent,bstrguidFilter,lPidFilter) \ + ( (This)->lpVtbl -> StopTraceGuid(This,bstrguidEvent,bstrguidFilter,lPidFilter) ) + +#define IEventServerTrace_EnumTraceGuid(This,plCntGuids,pbstrGuidList) \ + ( (This)->lpVtbl -> EnumTraceGuid(This,plCntGuids,pbstrGuidList) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventServerTrace_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0049 */ +/* [local] */ + +typedef /* [hidden] */ struct _RECYCLE_INFO + { + GUID guidCombaseProcessIdentifier; + LONGLONG ProcessStartTime; + DWORD dwRecycleLifetimeLimit; + DWORD dwRecycleMemoryLimit; + DWORD dwRecycleExpirationTimeout; + } RECYCLE_INFO; + +typedef /* [hidden] */ +enum tagDUMPTYPE + { + DUMPTYPE_FULL = 0, + DUMPTYPE_MINI = ( DUMPTYPE_FULL + 1 ) , + DUMPTYPE_NONE = ( DUMPTYPE_MINI + 1 ) + } DUMPTYPE; + +typedef /* [hidden] */ struct _HANG_INFO + { + BOOL fAppHangMonitorEnabled; + BOOL fTerminateOnHang; + DUMPTYPE DumpType; + DWORD dwHangTimeout; + DWORD dwDumpCount; + DWORD dwInfoMsgCount; + } HANG_INFO; + +typedef +enum tagCOMPLUS_APPTYPE + { + APPTYPE_UNKNOWN = 0xffffffff, + APPTYPE_SERVER = 1, + APPTYPE_LIBRARY = 0, + APPTYPE_SWC = 2 + } COMPLUS_APPTYPE; + + + +// +// Definition of global named event used to control starting and +// stopping of tracker push data. +// +#define TRACKER_STARTSTOP_EVENT L"Global\\COM+ Tracker Push Event" + + +// +// Definition of global named event used to signal when the +// system application has been restarted +// +#define TRACKER_INIT_EVENT L"Global\\COM+ Tracker Init Event" + + +#ifndef GUID_STRING_SIZE +#define GUID_STRING_SIZE 40 // a couple over. +#endif +typedef /* [hidden] */ struct CAppStatistics + { + DWORD m_cTotalCalls; + DWORD m_cTotalInstances; + DWORD m_cTotalClasses; + DWORD m_cCallsPerSecond; + } APPSTATISTICS; + +typedef /* [hidden] */ struct CAppData + { + DWORD m_idApp; + WCHAR m_szAppGuid[ 40 ]; + DWORD m_dwAppProcessId; + APPSTATISTICS m_AppStatistics; + } APPDATA; + +typedef /* [hidden] */ struct CCLSIDData + { + CLSID m_clsid; + DWORD m_cReferences; + DWORD m_cBound; + DWORD m_cPooled; + DWORD m_cInCall; + DWORD m_dwRespTime; + DWORD m_cCallsCompleted; + DWORD m_cCallsFailed; + } CLSIDDATA; + +typedef /* [hidden] */ struct CCLSIDData2 + { + CLSID m_clsid; + GUID m_appid; + GUID m_partid; + /* [string] */ WCHAR *m_pwszAppName; + /* [string] */ WCHAR *m_pwszCtxName; + COMPLUS_APPTYPE m_eAppType; + DWORD m_cReferences; + DWORD m_cBound; + DWORD m_cPooled; + DWORD m_cInCall; + DWORD m_dwRespTime; + DWORD m_cCallsCompleted; + DWORD m_cCallsFailed; + } CLSIDDATA2; + + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0049_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0049_v0_0_s_ifspec; + +#ifndef __IGetAppTrackerData_INTERFACE_DEFINED__ +#define __IGetAppTrackerData_INTERFACE_DEFINED__ + +/* interface IGetAppTrackerData */ +/* [helpstring][unique][uuid][object] */ + +#define DATA_NOT_AVAILABLE ( 0xffffffff ) + +typedef /* [helpstring] */ +enum _GetAppTrackerDataFlags + { + GATD_INCLUDE_PROCESS_EXE_NAME = 0x1, + GATD_INCLUDE_LIBRARY_APPS = 0x2, + GATD_INCLUDE_SWC = 0x4, + GATD_INCLUDE_CLASS_NAME = 0x8, + GATD_INCLUDE_APPLICATION_NAME = 0x10 + } GetAppTrackerDataFlags; + +typedef /* [helpstring] */ struct _ApplicationProcessSummary + { + GUID PartitionIdPrimaryApplication; + GUID ApplicationIdPrimaryApplication; + GUID ApplicationInstanceId; + DWORD ProcessId; + COMPLUS_APPTYPE Type; + /* [string][unique] */ LPWSTR ProcessExeName; + BOOL IsService; + BOOL IsPaused; + BOOL IsRecycled; + } ApplicationProcessSummary; + +typedef /* [helpstring] */ struct _ApplicationProcessStatistics + { + ULONG NumCallsOutstanding; + ULONG NumTrackedComponents; + ULONG NumComponentInstances; + ULONG AvgCallsPerSecond; + ULONG Reserved1; + ULONG Reserved2; + ULONG Reserved3; + ULONG Reserved4; + } ApplicationProcessStatistics; + +typedef /* [helpstring] */ struct _ApplicationProcessRecycleInfo + { + BOOL IsRecyclable; + BOOL IsRecycled; + FILETIME TimeRecycled; + FILETIME TimeToTerminate; + long RecycleReasonCode; + BOOL IsPendingRecycle; + BOOL HasAutomaticLifetimeRecycling; + FILETIME TimeForAutomaticRecycling; + ULONG MemoryLimitInKB; + ULONG MemoryUsageInKBLastCheck; + ULONG ActivationLimit; + ULONG NumActivationsLastReported; + ULONG CallLimit; + ULONG NumCallsLastReported; + } ApplicationProcessRecycleInfo; + +typedef /* [helpstring] */ struct _ApplicationSummary + { + GUID ApplicationInstanceId; + GUID PartitionId; + GUID ApplicationId; + COMPLUS_APPTYPE Type; + /* [string][unique] */ LPWSTR ApplicationName; + ULONG NumTrackedComponents; + ULONG NumComponentInstances; + } ApplicationSummary; + +typedef /* [helpstring] */ struct _ComponentSummary + { + GUID ApplicationInstanceId; + GUID PartitionId; + GUID ApplicationId; + CLSID Clsid; + /* [string][unique] */ LPWSTR ClassName; + /* [string][unique] */ LPWSTR ApplicationName; + } ComponentSummary; + +typedef /* [helpstring] */ struct _ComponentStatistics + { + ULONG NumInstances; + ULONG NumBoundReferences; + ULONG NumPooledObjects; + ULONG NumObjectsInCall; + ULONG AvgResponseTimeInMs; + ULONG NumCallsCompletedRecent; + ULONG NumCallsFailedRecent; + ULONG NumCallsCompletedTotal; + ULONG NumCallsFailedTotal; + ULONG Reserved1; + ULONG Reserved2; + ULONG Reserved3; + ULONG Reserved4; + } ComponentStatistics; + +typedef /* [helpstring] */ struct _ComponentHangMonitorInfo + { + BOOL IsMonitored; + BOOL TerminateOnHang; + ULONG AvgCallThresholdInMs; + } ComponentHangMonitorInfo; + + +EXTERN_C const IID IID_IGetAppTrackerData; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("507C3AC8-3E12-4cb0-9366-653D3E050638") + IGetAppTrackerData : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetApplicationProcesses( + /* [in] */ __RPC__in REFGUID PartitionId, + /* [in] */ __RPC__in REFGUID ApplicationId, + /* [in] */ DWORD Flags, + /* [out] */ __RPC__out ULONG *NumApplicationProcesses, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*NumApplicationProcesses) ApplicationProcessSummary **ApplicationProcesses) = 0; + + virtual /* [helpstring][local] */ HRESULT STDMETHODCALLTYPE GetApplicationProcessDetails( + /* [in] */ REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ DWORD Flags, + /* [annotation] */ + _Out_opt_ ApplicationProcessSummary *Summary, + /* [annotation] */ + _Out_opt_ ApplicationProcessStatistics *Statistics, + /* [annotation] */ + _Out_opt_ ApplicationProcessRecycleInfo *RecycleInfo, + /* [annotation] */ + _Out_opt_ BOOL *AnyComponentsHangMonitored) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetApplicationsInProcess( + /* [in] */ __RPC__in REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ __RPC__in REFGUID PartitionId, + /* [in] */ DWORD Flags, + /* [out] */ __RPC__out ULONG *NumApplicationsInProcess, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*NumApplicationsInProcess) ApplicationSummary **Applications) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetComponentsInProcess( + /* [in] */ __RPC__in REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ __RPC__in REFGUID PartitionId, + /* [in] */ __RPC__in REFGUID ApplicationId, + /* [in] */ DWORD Flags, + /* [out] */ __RPC__out ULONG *NumComponentsInProcess, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*NumComponentsInProcess) ComponentSummary **Components) = 0; + + virtual /* [helpstring][local] */ HRESULT STDMETHODCALLTYPE GetComponentDetails( + /* [in] */ REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ REFCLSID Clsid, + /* [in] */ DWORD Flags, + /* [annotation] */ + _Out_opt_ ComponentSummary *Summary, + /* [annotation] */ + _Out_opt_ ComponentStatistics *Statistics, + /* [annotation] */ + _Out_opt_ ComponentHangMonitorInfo *HangMonitorInfo) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTrackerDataAsCollectionObject( + /* [out] */ __RPC__deref_out_opt IUnknown **TopLevelCollection) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSuggestedPollingInterval( + /* [out] */ __RPC__out DWORD *PollingIntervalInSeconds) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetAppTrackerDataVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetAppTrackerData * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetAppTrackerData * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetAppTrackerData * This); + + DECLSPEC_XFGVIRT(IGetAppTrackerData, GetApplicationProcesses) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetApplicationProcesses )( + __RPC__in IGetAppTrackerData * This, + /* [in] */ __RPC__in REFGUID PartitionId, + /* [in] */ __RPC__in REFGUID ApplicationId, + /* [in] */ DWORD Flags, + /* [out] */ __RPC__out ULONG *NumApplicationProcesses, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*NumApplicationProcesses) ApplicationProcessSummary **ApplicationProcesses); + + DECLSPEC_XFGVIRT(IGetAppTrackerData, GetApplicationProcessDetails) + /* [helpstring][local] */ HRESULT ( STDMETHODCALLTYPE *GetApplicationProcessDetails )( + IGetAppTrackerData * This, + /* [in] */ REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ DWORD Flags, + /* [annotation] */ + _Out_opt_ ApplicationProcessSummary *Summary, + /* [annotation] */ + _Out_opt_ ApplicationProcessStatistics *Statistics, + /* [annotation] */ + _Out_opt_ ApplicationProcessRecycleInfo *RecycleInfo, + /* [annotation] */ + _Out_opt_ BOOL *AnyComponentsHangMonitored); + + DECLSPEC_XFGVIRT(IGetAppTrackerData, GetApplicationsInProcess) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetApplicationsInProcess )( + __RPC__in IGetAppTrackerData * This, + /* [in] */ __RPC__in REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ __RPC__in REFGUID PartitionId, + /* [in] */ DWORD Flags, + /* [out] */ __RPC__out ULONG *NumApplicationsInProcess, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*NumApplicationsInProcess) ApplicationSummary **Applications); + + DECLSPEC_XFGVIRT(IGetAppTrackerData, GetComponentsInProcess) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetComponentsInProcess )( + __RPC__in IGetAppTrackerData * This, + /* [in] */ __RPC__in REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ __RPC__in REFGUID PartitionId, + /* [in] */ __RPC__in REFGUID ApplicationId, + /* [in] */ DWORD Flags, + /* [out] */ __RPC__out ULONG *NumComponentsInProcess, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*NumComponentsInProcess) ComponentSummary **Components); + + DECLSPEC_XFGVIRT(IGetAppTrackerData, GetComponentDetails) + /* [helpstring][local] */ HRESULT ( STDMETHODCALLTYPE *GetComponentDetails )( + IGetAppTrackerData * This, + /* [in] */ REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ REFCLSID Clsid, + /* [in] */ DWORD Flags, + /* [annotation] */ + _Out_opt_ ComponentSummary *Summary, + /* [annotation] */ + _Out_opt_ ComponentStatistics *Statistics, + /* [annotation] */ + _Out_opt_ ComponentHangMonitorInfo *HangMonitorInfo); + + DECLSPEC_XFGVIRT(IGetAppTrackerData, GetTrackerDataAsCollectionObject) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTrackerDataAsCollectionObject )( + __RPC__in IGetAppTrackerData * This, + /* [out] */ __RPC__deref_out_opt IUnknown **TopLevelCollection); + + DECLSPEC_XFGVIRT(IGetAppTrackerData, GetSuggestedPollingInterval) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSuggestedPollingInterval )( + __RPC__in IGetAppTrackerData * This, + /* [out] */ __RPC__out DWORD *PollingIntervalInSeconds); + + END_INTERFACE + } IGetAppTrackerDataVtbl; + + interface IGetAppTrackerData + { + CONST_VTBL struct IGetAppTrackerDataVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetAppTrackerData_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetAppTrackerData_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetAppTrackerData_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetAppTrackerData_GetApplicationProcesses(This,PartitionId,ApplicationId,Flags,NumApplicationProcesses,ApplicationProcesses) \ + ( (This)->lpVtbl -> GetApplicationProcesses(This,PartitionId,ApplicationId,Flags,NumApplicationProcesses,ApplicationProcesses) ) + +#define IGetAppTrackerData_GetApplicationProcessDetails(This,ApplicationInstanceId,ProcessId,Flags,Summary,Statistics,RecycleInfo,AnyComponentsHangMonitored) \ + ( (This)->lpVtbl -> GetApplicationProcessDetails(This,ApplicationInstanceId,ProcessId,Flags,Summary,Statistics,RecycleInfo,AnyComponentsHangMonitored) ) + +#define IGetAppTrackerData_GetApplicationsInProcess(This,ApplicationInstanceId,ProcessId,PartitionId,Flags,NumApplicationsInProcess,Applications) \ + ( (This)->lpVtbl -> GetApplicationsInProcess(This,ApplicationInstanceId,ProcessId,PartitionId,Flags,NumApplicationsInProcess,Applications) ) + +#define IGetAppTrackerData_GetComponentsInProcess(This,ApplicationInstanceId,ProcessId,PartitionId,ApplicationId,Flags,NumComponentsInProcess,Components) \ + ( (This)->lpVtbl -> GetComponentsInProcess(This,ApplicationInstanceId,ProcessId,PartitionId,ApplicationId,Flags,NumComponentsInProcess,Components) ) + +#define IGetAppTrackerData_GetComponentDetails(This,ApplicationInstanceId,ProcessId,Clsid,Flags,Summary,Statistics,HangMonitorInfo) \ + ( (This)->lpVtbl -> GetComponentDetails(This,ApplicationInstanceId,ProcessId,Clsid,Flags,Summary,Statistics,HangMonitorInfo) ) + +#define IGetAppTrackerData_GetTrackerDataAsCollectionObject(This,TopLevelCollection) \ + ( (This)->lpVtbl -> GetTrackerDataAsCollectionObject(This,TopLevelCollection) ) + +#define IGetAppTrackerData_GetSuggestedPollingInterval(This,PollingIntervalInSeconds) \ + ( (This)->lpVtbl -> GetSuggestedPollingInterval(This,PollingIntervalInSeconds) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IGetAppTrackerData_RemoteGetApplicationProcessDetails_Proxy( + __RPC__in IGetAppTrackerData * This, + /* [in] */ __RPC__in REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ DWORD Flags, + /* [unique][out][in] */ __RPC__inout_opt ApplicationProcessSummary *Summary, + /* [unique][out][in] */ __RPC__inout_opt ApplicationProcessStatistics *Statistics, + /* [unique][out][in] */ __RPC__inout_opt ApplicationProcessRecycleInfo *RecycleInfo, + /* [unique][out][in] */ __RPC__inout_opt BOOL *AnyComponentsHangMonitored); + + +void __RPC_STUB IGetAppTrackerData_RemoteGetApplicationProcessDetails_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IGetAppTrackerData_RemoteGetComponentDetails_Proxy( + __RPC__in IGetAppTrackerData * This, + /* [in] */ __RPC__in REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ __RPC__in REFCLSID Clsid, + /* [in] */ DWORD Flags, + /* [unique][out][in] */ __RPC__inout_opt ComponentSummary *Summary, + /* [unique][out][in] */ __RPC__inout_opt ComponentStatistics *Statistics, + /* [unique][out][in] */ __RPC__inout_opt ComponentHangMonitorInfo *HangMonitorInfo); + + +void __RPC_STUB IGetAppTrackerData_RemoteGetComponentDetails_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IGetAppTrackerData_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0050 */ +/* [local] */ + +// +// Dispenser Manager interfaces +// +// Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved. + +#ifndef DECLSPEC_UUID +#if (_MSC_VER >= 1100) && defined (__cplusplus) +#define DECLSPEC_UUID(x) __declspec(uuid(x)) +#else +#define DECLSPEC_UUID(x) +#endif +#endif +typedef DWORD_PTR RESTYPID; + +typedef DWORD_PTR RESID; + +typedef LPOLESTR SRESID; + +typedef LPCOLESTR constSRESID; + +typedef DWORD RESOURCERATING; + +typedef long TIMEINSECS; + +typedef DWORD_PTR INSTID; + +typedef DWORD_PTR TRANSID; + + + +// +// Error Codes +// +#define MTXDM_E_ENLISTRESOURCEFAILED 0x8004E100 // return from EnlistResource, is then returned by AllocResource + +// +// IDispenserManager +// Implemented by Dispenser Manager, called by all Dispensers. +// + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0050_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0050_v0_0_s_ifspec; + +#ifndef __IDispenserManager_INTERFACE_DEFINED__ +#define __IDispenserManager_INTERFACE_DEFINED__ + +/* interface IDispenserManager */ +/* [unique][hidden][local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDispenserManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5cb31e10-2b5f-11cf-be10-00aa00a2fa25") + IDispenserManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterDispenser( + /* [in] */ IDispenserDriver *__MIDL__IDispenserManager0000, + /* [in] */ LPCOLESTR szDispenserName, + /* [out] */ IHolder **__MIDL__IDispenserManager0001) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContext( + /* [out] */ INSTID *__MIDL__IDispenserManager0002, + /* [out] */ TRANSID *__MIDL__IDispenserManager0003) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDispenserManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDispenserManager * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDispenserManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDispenserManager * This); + + DECLSPEC_XFGVIRT(IDispenserManager, RegisterDispenser) + HRESULT ( STDMETHODCALLTYPE *RegisterDispenser )( + IDispenserManager * This, + /* [in] */ IDispenserDriver *__MIDL__IDispenserManager0000, + /* [in] */ LPCOLESTR szDispenserName, + /* [out] */ IHolder **__MIDL__IDispenserManager0001); + + DECLSPEC_XFGVIRT(IDispenserManager, GetContext) + HRESULT ( STDMETHODCALLTYPE *GetContext )( + IDispenserManager * This, + /* [out] */ INSTID *__MIDL__IDispenserManager0002, + /* [out] */ TRANSID *__MIDL__IDispenserManager0003); + + END_INTERFACE + } IDispenserManagerVtbl; + + interface IDispenserManager + { + CONST_VTBL struct IDispenserManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDispenserManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDispenserManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDispenserManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDispenserManager_RegisterDispenser(This,__MIDL__IDispenserManager0000,szDispenserName,__MIDL__IDispenserManager0001) \ + ( (This)->lpVtbl -> RegisterDispenser(This,__MIDL__IDispenserManager0000,szDispenserName,__MIDL__IDispenserManager0001) ) + +#define IDispenserManager_GetContext(This,__MIDL__IDispenserManager0002,__MIDL__IDispenserManager0003) \ + ( (This)->lpVtbl -> GetContext(This,__MIDL__IDispenserManager0002,__MIDL__IDispenserManager0003) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDispenserManager_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0051 */ +/* [local] */ + +// +// IHolder +// Implemented by Dispenser Manager, called by one Dispenser. +// + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0051_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0051_v0_0_s_ifspec; + +#ifndef __IHolder_INTERFACE_DEFINED__ +#define __IHolder_INTERFACE_DEFINED__ + +/* interface IHolder */ +/* [unique][hidden][local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IHolder; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bf6a1850-2b45-11cf-be10-00aa00a2fa25") + IHolder : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AllocResource( + /* [in] */ const RESTYPID __MIDL__IHolder0000, + /* [out] */ RESID *__MIDL__IHolder0001) = 0; + + virtual HRESULT STDMETHODCALLTYPE FreeResource( + /* [in] */ const RESID __MIDL__IHolder0002) = 0; + + virtual HRESULT STDMETHODCALLTYPE TrackResource( + /* [in] */ const RESID __MIDL__IHolder0003) = 0; + + virtual HRESULT STDMETHODCALLTYPE TrackResourceS( + /* [in] */ constSRESID __MIDL__IHolder0004) = 0; + + virtual HRESULT STDMETHODCALLTYPE UntrackResource( + /* [in] */ const RESID __MIDL__IHolder0005, + /* [in] */ const BOOL __MIDL__IHolder0006) = 0; + + virtual HRESULT STDMETHODCALLTYPE UntrackResourceS( + /* [in] */ constSRESID __MIDL__IHolder0007, + /* [in] */ const BOOL __MIDL__IHolder0008) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestDestroyResource( + /* [in] */ const RESID __MIDL__IHolder0009) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHolderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IHolder * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IHolder * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IHolder * This); + + DECLSPEC_XFGVIRT(IHolder, AllocResource) + HRESULT ( STDMETHODCALLTYPE *AllocResource )( + IHolder * This, + /* [in] */ const RESTYPID __MIDL__IHolder0000, + /* [out] */ RESID *__MIDL__IHolder0001); + + DECLSPEC_XFGVIRT(IHolder, FreeResource) + HRESULT ( STDMETHODCALLTYPE *FreeResource )( + IHolder * This, + /* [in] */ const RESID __MIDL__IHolder0002); + + DECLSPEC_XFGVIRT(IHolder, TrackResource) + HRESULT ( STDMETHODCALLTYPE *TrackResource )( + IHolder * This, + /* [in] */ const RESID __MIDL__IHolder0003); + + DECLSPEC_XFGVIRT(IHolder, TrackResourceS) + HRESULT ( STDMETHODCALLTYPE *TrackResourceS )( + IHolder * This, + /* [in] */ constSRESID __MIDL__IHolder0004); + + DECLSPEC_XFGVIRT(IHolder, UntrackResource) + HRESULT ( STDMETHODCALLTYPE *UntrackResource )( + IHolder * This, + /* [in] */ const RESID __MIDL__IHolder0005, + /* [in] */ const BOOL __MIDL__IHolder0006); + + DECLSPEC_XFGVIRT(IHolder, UntrackResourceS) + HRESULT ( STDMETHODCALLTYPE *UntrackResourceS )( + IHolder * This, + /* [in] */ constSRESID __MIDL__IHolder0007, + /* [in] */ const BOOL __MIDL__IHolder0008); + + DECLSPEC_XFGVIRT(IHolder, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + IHolder * This); + + DECLSPEC_XFGVIRT(IHolder, RequestDestroyResource) + HRESULT ( STDMETHODCALLTYPE *RequestDestroyResource )( + IHolder * This, + /* [in] */ const RESID __MIDL__IHolder0009); + + END_INTERFACE + } IHolderVtbl; + + interface IHolder + { + CONST_VTBL struct IHolderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHolder_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHolder_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHolder_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHolder_AllocResource(This,__MIDL__IHolder0000,__MIDL__IHolder0001) \ + ( (This)->lpVtbl -> AllocResource(This,__MIDL__IHolder0000,__MIDL__IHolder0001) ) + +#define IHolder_FreeResource(This,__MIDL__IHolder0002) \ + ( (This)->lpVtbl -> FreeResource(This,__MIDL__IHolder0002) ) + +#define IHolder_TrackResource(This,__MIDL__IHolder0003) \ + ( (This)->lpVtbl -> TrackResource(This,__MIDL__IHolder0003) ) + +#define IHolder_TrackResourceS(This,__MIDL__IHolder0004) \ + ( (This)->lpVtbl -> TrackResourceS(This,__MIDL__IHolder0004) ) + +#define IHolder_UntrackResource(This,__MIDL__IHolder0005,__MIDL__IHolder0006) \ + ( (This)->lpVtbl -> UntrackResource(This,__MIDL__IHolder0005,__MIDL__IHolder0006) ) + +#define IHolder_UntrackResourceS(This,__MIDL__IHolder0007,__MIDL__IHolder0008) \ + ( (This)->lpVtbl -> UntrackResourceS(This,__MIDL__IHolder0007,__MIDL__IHolder0008) ) + +#define IHolder_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define IHolder_RequestDestroyResource(This,__MIDL__IHolder0009) \ + ( (This)->lpVtbl -> RequestDestroyResource(This,__MIDL__IHolder0009) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHolder_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0052 */ +/* [local] */ + +// +// IDispenserDriver +// Implemented by a Dispenser, called by Dispenser Manager. +// + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0052_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0052_v0_0_s_ifspec; + +#ifndef __IDispenserDriver_INTERFACE_DEFINED__ +#define __IDispenserDriver_INTERFACE_DEFINED__ + +/* interface IDispenserDriver */ +/* [unique][hidden][local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDispenserDriver; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("208b3651-2b48-11cf-be10-00aa00a2fa25") + IDispenserDriver : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateResource( + /* [in] */ const RESTYPID ResTypId, + /* [out] */ RESID *pResId, + /* [out] */ TIMEINSECS *pSecsFreeBeforeDestroy) = 0; + + virtual HRESULT STDMETHODCALLTYPE RateResource( + /* [in] */ const RESTYPID ResTypId, + /* [in] */ const RESID ResId, + /* [in] */ const BOOL fRequiresTransactionEnlistment, + /* [out] */ RESOURCERATING *pRating) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnlistResource( + /* [in] */ const RESID ResId, + /* [in] */ const TRANSID TransId) = 0; + + virtual HRESULT STDMETHODCALLTYPE ResetResource( + /* [in] */ const RESID ResId) = 0; + + virtual HRESULT STDMETHODCALLTYPE DestroyResource( + /* [in] */ const RESID ResId) = 0; + + virtual HRESULT STDMETHODCALLTYPE DestroyResourceS( + /* [in] */ constSRESID ResId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDispenserDriverVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDispenserDriver * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDispenserDriver * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDispenserDriver * This); + + DECLSPEC_XFGVIRT(IDispenserDriver, CreateResource) + HRESULT ( STDMETHODCALLTYPE *CreateResource )( + IDispenserDriver * This, + /* [in] */ const RESTYPID ResTypId, + /* [out] */ RESID *pResId, + /* [out] */ TIMEINSECS *pSecsFreeBeforeDestroy); + + DECLSPEC_XFGVIRT(IDispenserDriver, RateResource) + HRESULT ( STDMETHODCALLTYPE *RateResource )( + IDispenserDriver * This, + /* [in] */ const RESTYPID ResTypId, + /* [in] */ const RESID ResId, + /* [in] */ const BOOL fRequiresTransactionEnlistment, + /* [out] */ RESOURCERATING *pRating); + + DECLSPEC_XFGVIRT(IDispenserDriver, EnlistResource) + HRESULT ( STDMETHODCALLTYPE *EnlistResource )( + IDispenserDriver * This, + /* [in] */ const RESID ResId, + /* [in] */ const TRANSID TransId); + + DECLSPEC_XFGVIRT(IDispenserDriver, ResetResource) + HRESULT ( STDMETHODCALLTYPE *ResetResource )( + IDispenserDriver * This, + /* [in] */ const RESID ResId); + + DECLSPEC_XFGVIRT(IDispenserDriver, DestroyResource) + HRESULT ( STDMETHODCALLTYPE *DestroyResource )( + IDispenserDriver * This, + /* [in] */ const RESID ResId); + + DECLSPEC_XFGVIRT(IDispenserDriver, DestroyResourceS) + HRESULT ( STDMETHODCALLTYPE *DestroyResourceS )( + IDispenserDriver * This, + /* [in] */ constSRESID ResId); + + END_INTERFACE + } IDispenserDriverVtbl; + + interface IDispenserDriver + { + CONST_VTBL struct IDispenserDriverVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDispenserDriver_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDispenserDriver_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDispenserDriver_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDispenserDriver_CreateResource(This,ResTypId,pResId,pSecsFreeBeforeDestroy) \ + ( (This)->lpVtbl -> CreateResource(This,ResTypId,pResId,pSecsFreeBeforeDestroy) ) + +#define IDispenserDriver_RateResource(This,ResTypId,ResId,fRequiresTransactionEnlistment,pRating) \ + ( (This)->lpVtbl -> RateResource(This,ResTypId,ResId,fRequiresTransactionEnlistment,pRating) ) + +#define IDispenserDriver_EnlistResource(This,ResId,TransId) \ + ( (This)->lpVtbl -> EnlistResource(This,ResId,TransId) ) + +#define IDispenserDriver_ResetResource(This,ResId) \ + ( (This)->lpVtbl -> ResetResource(This,ResId) ) + +#define IDispenserDriver_DestroyResource(This,ResId) \ + ( (This)->lpVtbl -> DestroyResource(This,ResId) ) + +#define IDispenserDriver_DestroyResourceS(This,ResId) \ + ( (This)->lpVtbl -> DestroyResourceS(This,ResId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDispenserDriver_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0053 */ +/* [local] */ + +#ifdef USE_UUIDOF_FOR_IID_ +#define IID_IHolder __uuidof(IIHolder) +#define IID_IDispenserManager __uuidof(IDispenserManager) +#define IID_IDispenserDriver __uuidof(IDispenserDriver) +#endif + + +//////////////////////////////////////////////////////////// +// This is the list of Microsoft-allocated process recycling +// reason codes. These are typed as a long; all values with the +// high bit set are reserved by Microsoft. Users who have no +// special information to add may use the CRR_NO_REASON_SUPPLIED +// code for that purpose. The value zero is reserved for the +// CRR_NO_REASON_SUPPLIED code. + + +#define CRR_NO_REASON_SUPPLIED 0x00000000 +#define CRR_LIFETIME_LIMIT 0xFFFFFFFF +#define CRR_ACTIVATION_LIMIT 0xFFFFFFFE +#define CRR_CALL_LIMIT 0xFFFFFFFD +#define CRR_MEMORY_LIMIT 0xFFFFFFFC +#define CRR_RECYCLED_FROM_UI 0xFFFFFFFB + + +//////////////////////////////////////////////////////////// + + +EXTERN_C const CLSID CLSID_MTSPackage; +EXTERN_C const GUID GUID_DefaultAppPartition; +EXTERN_C const GUID GUID_FinalizerCID; +EXTERN_C const GUID IID_IEnterActivityWithNoLock; + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0053_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0053_v0_0_s_ifspec; + +#ifndef __ITransactionProxy_INTERFACE_DEFINED__ +#define __ITransactionProxy_INTERFACE_DEFINED__ + +/* interface ITransactionProxy */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_ITransactionProxy; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("02558374-DF2E-4dae-BD6B-1D5C994F9BDC") + ITransactionProxy : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Commit( + /* [in] */ GUID guid) = 0; + + virtual HRESULT STDMETHODCALLTYPE Abort( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Promote( + /* [out] */ ITransaction **pTransaction) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVoter( + /* [in] */ ITransactionVoterNotifyAsync2 *pTxAsync, + /* [out] */ ITransactionVoterBallotAsync2 **ppBallot) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIsolationLevel( + /* [retval][out] */ ISOLEVEL *__MIDL__ITransactionProxy0000) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIdentifier( + /* [retval][out] */ GUID *pbstrIdentifier) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsReusable( + /* [out] */ BOOL *pfIsReusable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITransactionProxyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ITransactionProxy * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ITransactionProxy * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ITransactionProxy * This); + + DECLSPEC_XFGVIRT(ITransactionProxy, Commit) + HRESULT ( STDMETHODCALLTYPE *Commit )( + ITransactionProxy * This, + /* [in] */ GUID guid); + + DECLSPEC_XFGVIRT(ITransactionProxy, Abort) + HRESULT ( STDMETHODCALLTYPE *Abort )( + ITransactionProxy * This); + + DECLSPEC_XFGVIRT(ITransactionProxy, Promote) + HRESULT ( STDMETHODCALLTYPE *Promote )( + ITransactionProxy * This, + /* [out] */ ITransaction **pTransaction); + + DECLSPEC_XFGVIRT(ITransactionProxy, CreateVoter) + HRESULT ( STDMETHODCALLTYPE *CreateVoter )( + ITransactionProxy * This, + /* [in] */ ITransactionVoterNotifyAsync2 *pTxAsync, + /* [out] */ ITransactionVoterBallotAsync2 **ppBallot); + + DECLSPEC_XFGVIRT(ITransactionProxy, GetIsolationLevel) + HRESULT ( STDMETHODCALLTYPE *GetIsolationLevel )( + ITransactionProxy * This, + /* [retval][out] */ ISOLEVEL *__MIDL__ITransactionProxy0000); + + DECLSPEC_XFGVIRT(ITransactionProxy, GetIdentifier) + HRESULT ( STDMETHODCALLTYPE *GetIdentifier )( + ITransactionProxy * This, + /* [retval][out] */ GUID *pbstrIdentifier); + + DECLSPEC_XFGVIRT(ITransactionProxy, IsReusable) + HRESULT ( STDMETHODCALLTYPE *IsReusable )( + ITransactionProxy * This, + /* [out] */ BOOL *pfIsReusable); + + END_INTERFACE + } ITransactionProxyVtbl; + + interface ITransactionProxy + { + CONST_VTBL struct ITransactionProxyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITransactionProxy_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITransactionProxy_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITransactionProxy_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITransactionProxy_Commit(This,guid) \ + ( (This)->lpVtbl -> Commit(This,guid) ) + +#define ITransactionProxy_Abort(This) \ + ( (This)->lpVtbl -> Abort(This) ) + +#define ITransactionProxy_Promote(This,pTransaction) \ + ( (This)->lpVtbl -> Promote(This,pTransaction) ) + +#define ITransactionProxy_CreateVoter(This,pTxAsync,ppBallot) \ + ( (This)->lpVtbl -> CreateVoter(This,pTxAsync,ppBallot) ) + +#define ITransactionProxy_GetIsolationLevel(This,__MIDL__ITransactionProxy0000) \ + ( (This)->lpVtbl -> GetIsolationLevel(This,__MIDL__ITransactionProxy0000) ) + +#define ITransactionProxy_GetIdentifier(This,pbstrIdentifier) \ + ( (This)->lpVtbl -> GetIdentifier(This,pbstrIdentifier) ) + +#define ITransactionProxy_IsReusable(This,pfIsReusable) \ + ( (This)->lpVtbl -> IsReusable(This,pfIsReusable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITransactionProxy_INTERFACE_DEFINED__ */ + + +#ifndef __IContextSecurityPerimeter_INTERFACE_DEFINED__ +#define __IContextSecurityPerimeter_INTERFACE_DEFINED__ + +/* interface IContextSecurityPerimeter */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IContextSecurityPerimeter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A7549A29-A7C4-42e1-8DC1-7E3D748DC24A") + IContextSecurityPerimeter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPerimeterFlag( + /* [out] */ BOOL *pFlag) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPerimeterFlag( + /* [in] */ BOOL fFlag) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContextSecurityPerimeterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IContextSecurityPerimeter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IContextSecurityPerimeter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IContextSecurityPerimeter * This); + + DECLSPEC_XFGVIRT(IContextSecurityPerimeter, GetPerimeterFlag) + HRESULT ( STDMETHODCALLTYPE *GetPerimeterFlag )( + IContextSecurityPerimeter * This, + /* [out] */ BOOL *pFlag); + + DECLSPEC_XFGVIRT(IContextSecurityPerimeter, SetPerimeterFlag) + HRESULT ( STDMETHODCALLTYPE *SetPerimeterFlag )( + IContextSecurityPerimeter * This, + /* [in] */ BOOL fFlag); + + END_INTERFACE + } IContextSecurityPerimeterVtbl; + + interface IContextSecurityPerimeter + { + CONST_VTBL struct IContextSecurityPerimeterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContextSecurityPerimeter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContextSecurityPerimeter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContextSecurityPerimeter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContextSecurityPerimeter_GetPerimeterFlag(This,pFlag) \ + ( (This)->lpVtbl -> GetPerimeterFlag(This,pFlag) ) + +#define IContextSecurityPerimeter_SetPerimeterFlag(This,fFlag) \ + ( (This)->lpVtbl -> SetPerimeterFlag(This,fFlag) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContextSecurityPerimeter_INTERFACE_DEFINED__ */ + + +#ifndef __ITxProxyHolder_INTERFACE_DEFINED__ +#define __ITxProxyHolder_INTERFACE_DEFINED__ + +/* interface ITxProxyHolder */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_ITxProxyHolder; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("13D86F31-0139-41af-BCAD-C7D50435FE9F") + ITxProxyHolder : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE GetIdentifier( + /* [out] */ GUID *pGuidLtx) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITxProxyHolderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ITxProxyHolder * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ITxProxyHolder * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ITxProxyHolder * This); + + DECLSPEC_XFGVIRT(ITxProxyHolder, GetIdentifier) + void ( STDMETHODCALLTYPE *GetIdentifier )( + ITxProxyHolder * This, + /* [out] */ GUID *pGuidLtx); + + END_INTERFACE + } ITxProxyHolderVtbl; + + interface ITxProxyHolder + { + CONST_VTBL struct ITxProxyHolderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITxProxyHolder_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITxProxyHolder_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITxProxyHolder_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITxProxyHolder_GetIdentifier(This,pGuidLtx) \ + ( (This)->lpVtbl -> GetIdentifier(This,pGuidLtx) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITxProxyHolder_INTERFACE_DEFINED__ */ + + +#ifndef __IObjectContext_INTERFACE_DEFINED__ +#define __IObjectContext_INTERFACE_DEFINED__ + +/* interface IObjectContext */ +/* [object][unique][uuid][local] */ + + +EXTERN_C const IID IID_IObjectContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51372ae0-cae7-11cf-be81-00aa00a2fa25") + IObjectContext : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateInstance( + /* [in] */ REFCLSID rclsid, + /* [in] */ REFIID riid, + /* [retval][iid_is][out] */ LPVOID *ppv) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetComplete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAbort( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnableCommit( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisableCommit( void) = 0; + + virtual BOOL STDMETHODCALLTYPE IsInTransaction( void) = 0; + + virtual BOOL STDMETHODCALLTYPE IsSecurityEnabled( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsCallerInRole( + /* [in] */ BSTR bstrRole, + /* [retval][out] */ BOOL *pfIsInRole) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IObjectContext * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IObjectContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IObjectContext * This); + + DECLSPEC_XFGVIRT(IObjectContext, CreateInstance) + HRESULT ( STDMETHODCALLTYPE *CreateInstance )( + IObjectContext * This, + /* [in] */ REFCLSID rclsid, + /* [in] */ REFIID riid, + /* [retval][iid_is][out] */ LPVOID *ppv); + + DECLSPEC_XFGVIRT(IObjectContext, SetComplete) + HRESULT ( STDMETHODCALLTYPE *SetComplete )( + IObjectContext * This); + + DECLSPEC_XFGVIRT(IObjectContext, SetAbort) + HRESULT ( STDMETHODCALLTYPE *SetAbort )( + IObjectContext * This); + + DECLSPEC_XFGVIRT(IObjectContext, EnableCommit) + HRESULT ( STDMETHODCALLTYPE *EnableCommit )( + IObjectContext * This); + + DECLSPEC_XFGVIRT(IObjectContext, DisableCommit) + HRESULT ( STDMETHODCALLTYPE *DisableCommit )( + IObjectContext * This); + + DECLSPEC_XFGVIRT(IObjectContext, IsInTransaction) + BOOL ( STDMETHODCALLTYPE *IsInTransaction )( + IObjectContext * This); + + DECLSPEC_XFGVIRT(IObjectContext, IsSecurityEnabled) + BOOL ( STDMETHODCALLTYPE *IsSecurityEnabled )( + IObjectContext * This); + + DECLSPEC_XFGVIRT(IObjectContext, IsCallerInRole) + HRESULT ( STDMETHODCALLTYPE *IsCallerInRole )( + IObjectContext * This, + /* [in] */ BSTR bstrRole, + /* [retval][out] */ BOOL *pfIsInRole); + + END_INTERFACE + } IObjectContextVtbl; + + interface IObjectContext + { + CONST_VTBL struct IObjectContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectContext_CreateInstance(This,rclsid,riid,ppv) \ + ( (This)->lpVtbl -> CreateInstance(This,rclsid,riid,ppv) ) + +#define IObjectContext_SetComplete(This) \ + ( (This)->lpVtbl -> SetComplete(This) ) + +#define IObjectContext_SetAbort(This) \ + ( (This)->lpVtbl -> SetAbort(This) ) + +#define IObjectContext_EnableCommit(This) \ + ( (This)->lpVtbl -> EnableCommit(This) ) + +#define IObjectContext_DisableCommit(This) \ + ( (This)->lpVtbl -> DisableCommit(This) ) + +#define IObjectContext_IsInTransaction(This) \ + ( (This)->lpVtbl -> IsInTransaction(This) ) + +#define IObjectContext_IsSecurityEnabled(This) \ + ( (This)->lpVtbl -> IsSecurityEnabled(This) ) + +#define IObjectContext_IsCallerInRole(This,bstrRole,pfIsInRole) \ + ( (This)->lpVtbl -> IsCallerInRole(This,bstrRole,pfIsInRole) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectContext_INTERFACE_DEFINED__ */ + + +#ifndef __IObjectControl_INTERFACE_DEFINED__ +#define __IObjectControl_INTERFACE_DEFINED__ + +/* interface IObjectControl */ +/* [object][unique][uuid][local] */ + + +EXTERN_C const IID IID_IObjectControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51372aec-cae7-11cf-be81-00aa00a2fa25") + IObjectControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Activate( void) = 0; + + virtual void STDMETHODCALLTYPE Deactivate( void) = 0; + + virtual BOOL STDMETHODCALLTYPE CanBePooled( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IObjectControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IObjectControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IObjectControl * This); + + DECLSPEC_XFGVIRT(IObjectControl, Activate) + HRESULT ( STDMETHODCALLTYPE *Activate )( + IObjectControl * This); + + DECLSPEC_XFGVIRT(IObjectControl, Deactivate) + void ( STDMETHODCALLTYPE *Deactivate )( + IObjectControl * This); + + DECLSPEC_XFGVIRT(IObjectControl, CanBePooled) + BOOL ( STDMETHODCALLTYPE *CanBePooled )( + IObjectControl * This); + + END_INTERFACE + } IObjectControlVtbl; + + interface IObjectControl + { + CONST_VTBL struct IObjectControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectControl_Activate(This) \ + ( (This)->lpVtbl -> Activate(This) ) + +#define IObjectControl_Deactivate(This) \ + ( (This)->lpVtbl -> Deactivate(This) ) + +#define IObjectControl_CanBePooled(This) \ + ( (This)->lpVtbl -> CanBePooled(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectControl_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumNames_INTERFACE_DEFINED__ +#define __IEnumNames_INTERFACE_DEFINED__ + +/* interface IEnumNames */ +/* [object][unique][uuid][hidden][local] */ + + +EXTERN_C const IID IID_IEnumNames; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51372af2-cae7-11cf-be81-00aa00a2fa25") + IEnumNames : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ unsigned long celt, + /* [size_is][out] */ BSTR *rgname, + /* [retval][out] */ unsigned long *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ unsigned long celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [retval][out] */ IEnumNames **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumNamesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumNames * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumNames * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumNames * This); + + DECLSPEC_XFGVIRT(IEnumNames, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumNames * This, + /* [in] */ unsigned long celt, + /* [size_is][out] */ BSTR *rgname, + /* [retval][out] */ unsigned long *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumNames, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + IEnumNames * This, + /* [in] */ unsigned long celt); + + DECLSPEC_XFGVIRT(IEnumNames, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IEnumNames * This); + + DECLSPEC_XFGVIRT(IEnumNames, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IEnumNames * This, + /* [retval][out] */ IEnumNames **ppenum); + + END_INTERFACE + } IEnumNamesVtbl; + + interface IEnumNames + { + CONST_VTBL struct IEnumNamesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumNames_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumNames_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumNames_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumNames_Next(This,celt,rgname,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgname,pceltFetched) ) + +#define IEnumNames_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumNames_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumNames_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumNames_INTERFACE_DEFINED__ */ + + +#ifndef __ISecurityProperty_INTERFACE_DEFINED__ +#define __ISecurityProperty_INTERFACE_DEFINED__ + +/* interface ISecurityProperty */ +/* [object][unique][uuid][local] */ + + +EXTERN_C const IID IID_ISecurityProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51372aea-cae7-11cf-be81-00aa00a2fa25") + ISecurityProperty : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDirectCreatorSID( + PSID *pSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalCreatorSID( + PSID *pSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDirectCallerSID( + PSID *pSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalCallerSID( + PSID *pSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseSID( + PSID pSID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISecurityPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ISecurityProperty * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ISecurityProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ISecurityProperty * This); + + DECLSPEC_XFGVIRT(ISecurityProperty, GetDirectCreatorSID) + HRESULT ( STDMETHODCALLTYPE *GetDirectCreatorSID )( + ISecurityProperty * This, + PSID *pSID); + + DECLSPEC_XFGVIRT(ISecurityProperty, GetOriginalCreatorSID) + HRESULT ( STDMETHODCALLTYPE *GetOriginalCreatorSID )( + ISecurityProperty * This, + PSID *pSID); + + DECLSPEC_XFGVIRT(ISecurityProperty, GetDirectCallerSID) + HRESULT ( STDMETHODCALLTYPE *GetDirectCallerSID )( + ISecurityProperty * This, + PSID *pSID); + + DECLSPEC_XFGVIRT(ISecurityProperty, GetOriginalCallerSID) + HRESULT ( STDMETHODCALLTYPE *GetOriginalCallerSID )( + ISecurityProperty * This, + PSID *pSID); + + DECLSPEC_XFGVIRT(ISecurityProperty, ReleaseSID) + HRESULT ( STDMETHODCALLTYPE *ReleaseSID )( + ISecurityProperty * This, + PSID pSID); + + END_INTERFACE + } ISecurityPropertyVtbl; + + interface ISecurityProperty + { + CONST_VTBL struct ISecurityPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISecurityProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISecurityProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISecurityProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISecurityProperty_GetDirectCreatorSID(This,pSID) \ + ( (This)->lpVtbl -> GetDirectCreatorSID(This,pSID) ) + +#define ISecurityProperty_GetOriginalCreatorSID(This,pSID) \ + ( (This)->lpVtbl -> GetOriginalCreatorSID(This,pSID) ) + +#define ISecurityProperty_GetDirectCallerSID(This,pSID) \ + ( (This)->lpVtbl -> GetDirectCallerSID(This,pSID) ) + +#define ISecurityProperty_GetOriginalCallerSID(This,pSID) \ + ( (This)->lpVtbl -> GetOriginalCallerSID(This,pSID) ) + +#define ISecurityProperty_ReleaseSID(This,pSID) \ + ( (This)->lpVtbl -> ReleaseSID(This,pSID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISecurityProperty_INTERFACE_DEFINED__ */ + + +#ifndef __ObjectControl_INTERFACE_DEFINED__ +#define __ObjectControl_INTERFACE_DEFINED__ + +/* interface ObjectControl */ +/* [version][helpcontext][helpstring][oleautomation][uuid][local][object] */ + + +EXTERN_C const IID IID_ObjectControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7DC41850-0C31-11d0-8B79-00AA00B8A790") + ObjectControl : public IUnknown + { + public: + virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE Activate( void) = 0; + + virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE Deactivate( void) = 0; + + virtual /* [helpstring][helpcontext] */ HRESULT STDMETHODCALLTYPE CanBePooled( + /* [retval][out] */ VARIANT_BOOL *pbPoolable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ObjectControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ObjectControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ObjectControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ObjectControl * This); + + DECLSPEC_XFGVIRT(ObjectControl, Activate) + /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Activate )( + ObjectControl * This); + + DECLSPEC_XFGVIRT(ObjectControl, Deactivate) + /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Deactivate )( + ObjectControl * This); + + DECLSPEC_XFGVIRT(ObjectControl, CanBePooled) + /* [helpstring][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *CanBePooled )( + ObjectControl * This, + /* [retval][out] */ VARIANT_BOOL *pbPoolable); + + END_INTERFACE + } ObjectControlVtbl; + + interface ObjectControl + { + CONST_VTBL struct ObjectControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ObjectControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ObjectControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ObjectControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ObjectControl_Activate(This) \ + ( (This)->lpVtbl -> Activate(This) ) + +#define ObjectControl_Deactivate(This) \ + ( (This)->lpVtbl -> Deactivate(This) ) + +#define ObjectControl_CanBePooled(This,pbPoolable) \ + ( (This)->lpVtbl -> CanBePooled(This,pbPoolable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ObjectControl_INTERFACE_DEFINED__ */ + + +#ifndef __ISharedProperty_INTERFACE_DEFINED__ +#define __ISharedProperty_INTERFACE_DEFINED__ + +/* interface ISharedProperty */ +/* [object][unique][helpcontext][helpstring][dual][uuid] */ + + +EXTERN_C const IID IID_ISharedProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2A005C01-A5DE-11CF-9E66-00AA00A3F464") + ISharedProperty : public IDispatch + { + public: + virtual /* [helpstring][helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT val) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISharedPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISharedProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISharedProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISharedProperty * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISharedProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISharedProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISharedProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISharedProperty * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISharedProperty, get_Value) + /* [helpstring][helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in ISharedProperty * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(ISharedProperty, put_Value) + /* [helpstring][helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in ISharedProperty * This, + /* [in] */ VARIANT val); + + END_INTERFACE + } ISharedPropertyVtbl; + + interface ISharedProperty + { + CONST_VTBL struct ISharedPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISharedProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISharedProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISharedProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISharedProperty_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISharedProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISharedProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISharedProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISharedProperty_get_Value(This,pVal) \ + ( (This)->lpVtbl -> get_Value(This,pVal) ) + +#define ISharedProperty_put_Value(This,val) \ + ( (This)->lpVtbl -> put_Value(This,val) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISharedProperty_INTERFACE_DEFINED__ */ + + +#ifndef __ISharedPropertyGroup_INTERFACE_DEFINED__ +#define __ISharedPropertyGroup_INTERFACE_DEFINED__ + +/* interface ISharedPropertyGroup */ +/* [object][unique][helpcontext][helpstring][dual][uuid] */ + + +EXTERN_C const IID IID_ISharedPropertyGroup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2A005C07-A5DE-11CF-9E66-00AA00A3F464") + ISharedPropertyGroup : public IDispatch + { + public: + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE CreatePropertyByPosition( + /* [in] */ int Index, + /* [out] */ __RPC__out VARIANT_BOOL *fExists, + /* [retval][out] */ __RPC__deref_out_opt ISharedProperty **ppProp) = 0; + + virtual /* [helpstring][helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyByPosition( + /* [in] */ int Index, + /* [retval][out] */ __RPC__deref_out_opt ISharedProperty **ppProperty) = 0; + + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE CreateProperty( + /* [in] */ __RPC__in BSTR Name, + /* [out] */ __RPC__out VARIANT_BOOL *fExists, + /* [retval][out] */ __RPC__deref_out_opt ISharedProperty **ppProp) = 0; + + virtual /* [helpstring][helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Property( + /* [in] */ __RPC__in BSTR Name, + /* [retval][out] */ __RPC__deref_out_opt ISharedProperty **ppProperty) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISharedPropertyGroupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISharedPropertyGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISharedPropertyGroup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISharedPropertyGroup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISharedPropertyGroup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISharedPropertyGroup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISharedPropertyGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISharedPropertyGroup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISharedPropertyGroup, CreatePropertyByPosition) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreatePropertyByPosition )( + __RPC__in ISharedPropertyGroup * This, + /* [in] */ int Index, + /* [out] */ __RPC__out VARIANT_BOOL *fExists, + /* [retval][out] */ __RPC__deref_out_opt ISharedProperty **ppProp); + + DECLSPEC_XFGVIRT(ISharedPropertyGroup, get_PropertyByPosition) + /* [helpstring][helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyByPosition )( + __RPC__in ISharedPropertyGroup * This, + /* [in] */ int Index, + /* [retval][out] */ __RPC__deref_out_opt ISharedProperty **ppProperty); + + DECLSPEC_XFGVIRT(ISharedPropertyGroup, CreateProperty) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreateProperty )( + __RPC__in ISharedPropertyGroup * This, + /* [in] */ __RPC__in BSTR Name, + /* [out] */ __RPC__out VARIANT_BOOL *fExists, + /* [retval][out] */ __RPC__deref_out_opt ISharedProperty **ppProp); + + DECLSPEC_XFGVIRT(ISharedPropertyGroup, get_Property) + /* [helpstring][helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Property )( + __RPC__in ISharedPropertyGroup * This, + /* [in] */ __RPC__in BSTR Name, + /* [retval][out] */ __RPC__deref_out_opt ISharedProperty **ppProperty); + + END_INTERFACE + } ISharedPropertyGroupVtbl; + + interface ISharedPropertyGroup + { + CONST_VTBL struct ISharedPropertyGroupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISharedPropertyGroup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISharedPropertyGroup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISharedPropertyGroup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISharedPropertyGroup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISharedPropertyGroup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISharedPropertyGroup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISharedPropertyGroup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISharedPropertyGroup_CreatePropertyByPosition(This,Index,fExists,ppProp) \ + ( (This)->lpVtbl -> CreatePropertyByPosition(This,Index,fExists,ppProp) ) + +#define ISharedPropertyGroup_get_PropertyByPosition(This,Index,ppProperty) \ + ( (This)->lpVtbl -> get_PropertyByPosition(This,Index,ppProperty) ) + +#define ISharedPropertyGroup_CreateProperty(This,Name,fExists,ppProp) \ + ( (This)->lpVtbl -> CreateProperty(This,Name,fExists,ppProp) ) + +#define ISharedPropertyGroup_get_Property(This,Name,ppProperty) \ + ( (This)->lpVtbl -> get_Property(This,Name,ppProperty) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISharedPropertyGroup_INTERFACE_DEFINED__ */ + + +#ifndef __ISharedPropertyGroupManager_INTERFACE_DEFINED__ +#define __ISharedPropertyGroupManager_INTERFACE_DEFINED__ + +/* interface ISharedPropertyGroupManager */ +/* [object][unique][helpcontext][helpstring][dual][uuid] */ + + +EXTERN_C const IID IID_ISharedPropertyGroupManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2A005C0D-A5DE-11CF-9E66-00AA00A3F464") + ISharedPropertyGroupManager : public IDispatch + { + public: + virtual /* [helpstring][helpcontext][id] */ HRESULT STDMETHODCALLTYPE CreatePropertyGroup( + /* [in] */ __RPC__in BSTR Name, + /* [out][in] */ __RPC__inout LONG *dwIsoMode, + /* [out][in] */ __RPC__inout LONG *dwRelMode, + /* [out] */ __RPC__out VARIANT_BOOL *fExists, + /* [retval][out] */ __RPC__deref_out_opt ISharedPropertyGroup **ppGroup) = 0; + + virtual /* [helpstring][helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Group( + /* [in] */ __RPC__in BSTR Name, + /* [retval][out] */ __RPC__deref_out_opt ISharedPropertyGroup **ppGroup) = 0; + + virtual /* [helpstring][helpcontext][id][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **retval) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISharedPropertyGroupManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISharedPropertyGroupManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISharedPropertyGroupManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISharedPropertyGroupManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISharedPropertyGroupManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISharedPropertyGroupManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISharedPropertyGroupManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISharedPropertyGroupManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISharedPropertyGroupManager, CreatePropertyGroup) + /* [helpstring][helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreatePropertyGroup )( + __RPC__in ISharedPropertyGroupManager * This, + /* [in] */ __RPC__in BSTR Name, + /* [out][in] */ __RPC__inout LONG *dwIsoMode, + /* [out][in] */ __RPC__inout LONG *dwRelMode, + /* [out] */ __RPC__out VARIANT_BOOL *fExists, + /* [retval][out] */ __RPC__deref_out_opt ISharedPropertyGroup **ppGroup); + + DECLSPEC_XFGVIRT(ISharedPropertyGroupManager, get_Group) + /* [helpstring][helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Group )( + __RPC__in ISharedPropertyGroupManager * This, + /* [in] */ __RPC__in BSTR Name, + /* [retval][out] */ __RPC__deref_out_opt ISharedPropertyGroup **ppGroup); + + DECLSPEC_XFGVIRT(ISharedPropertyGroupManager, get__NewEnum) + /* [helpstring][helpcontext][id][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ISharedPropertyGroupManager * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **retval); + + END_INTERFACE + } ISharedPropertyGroupManagerVtbl; + + interface ISharedPropertyGroupManager + { + CONST_VTBL struct ISharedPropertyGroupManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISharedPropertyGroupManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISharedPropertyGroupManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISharedPropertyGroupManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISharedPropertyGroupManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISharedPropertyGroupManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISharedPropertyGroupManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISharedPropertyGroupManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISharedPropertyGroupManager_CreatePropertyGroup(This,Name,dwIsoMode,dwRelMode,fExists,ppGroup) \ + ( (This)->lpVtbl -> CreatePropertyGroup(This,Name,dwIsoMode,dwRelMode,fExists,ppGroup) ) + +#define ISharedPropertyGroupManager_get_Group(This,Name,ppGroup) \ + ( (This)->lpVtbl -> get_Group(This,Name,ppGroup) ) + +#define ISharedPropertyGroupManager_get__NewEnum(This,retval) \ + ( (This)->lpVtbl -> get__NewEnum(This,retval) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISharedPropertyGroupManager_INTERFACE_DEFINED__ */ + + +#ifndef __IObjectConstruct_INTERFACE_DEFINED__ +#define __IObjectConstruct_INTERFACE_DEFINED__ + +/* interface IObjectConstruct */ +/* [uuid][helpstring][unique][object][local] */ + + +EXTERN_C const IID IID_IObjectConstruct; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("41C4F8B3-7439-11D2-98CB-00C04F8EE1C4") + IObjectConstruct : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Construct( + /* [in] */ IDispatch *pCtorObj) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectConstructVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IObjectConstruct * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IObjectConstruct * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IObjectConstruct * This); + + DECLSPEC_XFGVIRT(IObjectConstruct, Construct) + HRESULT ( STDMETHODCALLTYPE *Construct )( + IObjectConstruct * This, + /* [in] */ IDispatch *pCtorObj); + + END_INTERFACE + } IObjectConstructVtbl; + + interface IObjectConstruct + { + CONST_VTBL struct IObjectConstructVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectConstruct_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectConstruct_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectConstruct_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectConstruct_Construct(This,pCtorObj) \ + ( (This)->lpVtbl -> Construct(This,pCtorObj) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectConstruct_INTERFACE_DEFINED__ */ + + +#ifndef __IObjectConstructString_INTERFACE_DEFINED__ +#define __IObjectConstructString_INTERFACE_DEFINED__ + +/* interface IObjectConstructString */ +/* [uuid][helpstring][dual][unique][object][local] */ + + +EXTERN_C const IID IID_IObjectConstructString; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("41C4F8B2-7439-11D2-98CB-00C04F8EE1C4") + IObjectConstructString : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ConstructString( + /* [retval][out] */ BSTR *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectConstructStringVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IObjectConstructString * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IObjectConstructString * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IObjectConstructString * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IObjectConstructString * This, + /* [out] */ UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IObjectConstructString * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IObjectConstructString * This, + /* [in] */ REFIID riid, + /* [size_is][in] */ LPOLESTR *rgszNames, + /* [range][in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IObjectConstructString * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IObjectConstructString, get_ConstructString) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConstructString )( + IObjectConstructString * This, + /* [retval][out] */ BSTR *pVal); + + END_INTERFACE + } IObjectConstructStringVtbl; + + interface IObjectConstructString + { + CONST_VTBL struct IObjectConstructStringVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectConstructString_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectConstructString_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectConstructString_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectConstructString_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IObjectConstructString_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IObjectConstructString_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IObjectConstructString_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IObjectConstructString_get_ConstructString(This,pVal) \ + ( (This)->lpVtbl -> get_ConstructString(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectConstructString_INTERFACE_DEFINED__ */ + + +#ifndef __IObjectContextActivity_INTERFACE_DEFINED__ +#define __IObjectContextActivity_INTERFACE_DEFINED__ + +/* interface IObjectContextActivity */ +/* [object][unique][uuid][local] */ + + +EXTERN_C const IID IID_IObjectContextActivity; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51372afc-cae7-11cf-be81-00aa00a2fa25") + IObjectContextActivity : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetActivityId( + /* [out] */ GUID *pGUID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectContextActivityVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IObjectContextActivity * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IObjectContextActivity * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IObjectContextActivity * This); + + DECLSPEC_XFGVIRT(IObjectContextActivity, GetActivityId) + HRESULT ( STDMETHODCALLTYPE *GetActivityId )( + IObjectContextActivity * This, + /* [out] */ GUID *pGUID); + + END_INTERFACE + } IObjectContextActivityVtbl; + + interface IObjectContextActivity + { + CONST_VTBL struct IObjectContextActivityVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectContextActivity_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectContextActivity_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectContextActivity_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectContextActivity_GetActivityId(This,pGUID) \ + ( (This)->lpVtbl -> GetActivityId(This,pGUID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectContextActivity_INTERFACE_DEFINED__ */ + + +#ifndef __IObjectContextInfo_INTERFACE_DEFINED__ +#define __IObjectContextInfo_INTERFACE_DEFINED__ + +/* interface IObjectContextInfo */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IObjectContextInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("75B52DDB-E8ED-11d1-93AD-00AA00BA3258") + IObjectContextInfo : public IUnknown + { + public: + virtual BOOL STDMETHODCALLTYPE IsInTransaction( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransaction( + IUnknown **pptrans) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransactionId( + /* [out] */ GUID *pGuid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetActivityId( + /* [out] */ GUID *pGUID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContextId( + /* [out] */ GUID *pGuid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectContextInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IObjectContextInfo * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IObjectContextInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IObjectContextInfo * This); + + DECLSPEC_XFGVIRT(IObjectContextInfo, IsInTransaction) + BOOL ( STDMETHODCALLTYPE *IsInTransaction )( + IObjectContextInfo * This); + + DECLSPEC_XFGVIRT(IObjectContextInfo, GetTransaction) + HRESULT ( STDMETHODCALLTYPE *GetTransaction )( + IObjectContextInfo * This, + IUnknown **pptrans); + + DECLSPEC_XFGVIRT(IObjectContextInfo, GetTransactionId) + HRESULT ( STDMETHODCALLTYPE *GetTransactionId )( + IObjectContextInfo * This, + /* [out] */ GUID *pGuid); + + DECLSPEC_XFGVIRT(IObjectContextInfo, GetActivityId) + HRESULT ( STDMETHODCALLTYPE *GetActivityId )( + IObjectContextInfo * This, + /* [out] */ GUID *pGUID); + + DECLSPEC_XFGVIRT(IObjectContextInfo, GetContextId) + HRESULT ( STDMETHODCALLTYPE *GetContextId )( + IObjectContextInfo * This, + /* [out] */ GUID *pGuid); + + END_INTERFACE + } IObjectContextInfoVtbl; + + interface IObjectContextInfo + { + CONST_VTBL struct IObjectContextInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectContextInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectContextInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectContextInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectContextInfo_IsInTransaction(This) \ + ( (This)->lpVtbl -> IsInTransaction(This) ) + +#define IObjectContextInfo_GetTransaction(This,pptrans) \ + ( (This)->lpVtbl -> GetTransaction(This,pptrans) ) + +#define IObjectContextInfo_GetTransactionId(This,pGuid) \ + ( (This)->lpVtbl -> GetTransactionId(This,pGuid) ) + +#define IObjectContextInfo_GetActivityId(This,pGUID) \ + ( (This)->lpVtbl -> GetActivityId(This,pGUID) ) + +#define IObjectContextInfo_GetContextId(This,pGuid) \ + ( (This)->lpVtbl -> GetContextId(This,pGuid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectContextInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IObjectContextInfo2_INTERFACE_DEFINED__ +#define __IObjectContextInfo2_INTERFACE_DEFINED__ + +/* interface IObjectContextInfo2 */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IObjectContextInfo2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("594BE71A-4BC4-438b-9197-CFD176248B09") + IObjectContextInfo2 : public IObjectContextInfo + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPartitionId( + /* [out] */ GUID *pGuid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetApplicationId( + /* [out] */ GUID *pGuid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetApplicationInstanceId( + /* [out] */ GUID *pGuid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectContextInfo2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IObjectContextInfo2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IObjectContextInfo2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IObjectContextInfo2 * This); + + DECLSPEC_XFGVIRT(IObjectContextInfo, IsInTransaction) + BOOL ( STDMETHODCALLTYPE *IsInTransaction )( + IObjectContextInfo2 * This); + + DECLSPEC_XFGVIRT(IObjectContextInfo, GetTransaction) + HRESULT ( STDMETHODCALLTYPE *GetTransaction )( + IObjectContextInfo2 * This, + IUnknown **pptrans); + + DECLSPEC_XFGVIRT(IObjectContextInfo, GetTransactionId) + HRESULT ( STDMETHODCALLTYPE *GetTransactionId )( + IObjectContextInfo2 * This, + /* [out] */ GUID *pGuid); + + DECLSPEC_XFGVIRT(IObjectContextInfo, GetActivityId) + HRESULT ( STDMETHODCALLTYPE *GetActivityId )( + IObjectContextInfo2 * This, + /* [out] */ GUID *pGUID); + + DECLSPEC_XFGVIRT(IObjectContextInfo, GetContextId) + HRESULT ( STDMETHODCALLTYPE *GetContextId )( + IObjectContextInfo2 * This, + /* [out] */ GUID *pGuid); + + DECLSPEC_XFGVIRT(IObjectContextInfo2, GetPartitionId) + HRESULT ( STDMETHODCALLTYPE *GetPartitionId )( + IObjectContextInfo2 * This, + /* [out] */ GUID *pGuid); + + DECLSPEC_XFGVIRT(IObjectContextInfo2, GetApplicationId) + HRESULT ( STDMETHODCALLTYPE *GetApplicationId )( + IObjectContextInfo2 * This, + /* [out] */ GUID *pGuid); + + DECLSPEC_XFGVIRT(IObjectContextInfo2, GetApplicationInstanceId) + HRESULT ( STDMETHODCALLTYPE *GetApplicationInstanceId )( + IObjectContextInfo2 * This, + /* [out] */ GUID *pGuid); + + END_INTERFACE + } IObjectContextInfo2Vtbl; + + interface IObjectContextInfo2 + { + CONST_VTBL struct IObjectContextInfo2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectContextInfo2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectContextInfo2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectContextInfo2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectContextInfo2_IsInTransaction(This) \ + ( (This)->lpVtbl -> IsInTransaction(This) ) + +#define IObjectContextInfo2_GetTransaction(This,pptrans) \ + ( (This)->lpVtbl -> GetTransaction(This,pptrans) ) + +#define IObjectContextInfo2_GetTransactionId(This,pGuid) \ + ( (This)->lpVtbl -> GetTransactionId(This,pGuid) ) + +#define IObjectContextInfo2_GetActivityId(This,pGUID) \ + ( (This)->lpVtbl -> GetActivityId(This,pGUID) ) + +#define IObjectContextInfo2_GetContextId(This,pGuid) \ + ( (This)->lpVtbl -> GetContextId(This,pGuid) ) + + +#define IObjectContextInfo2_GetPartitionId(This,pGuid) \ + ( (This)->lpVtbl -> GetPartitionId(This,pGuid) ) + +#define IObjectContextInfo2_GetApplicationId(This,pGuid) \ + ( (This)->lpVtbl -> GetApplicationId(This,pGuid) ) + +#define IObjectContextInfo2_GetApplicationInstanceId(This,pGuid) \ + ( (This)->lpVtbl -> GetApplicationInstanceId(This,pGuid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectContextInfo2_INTERFACE_DEFINED__ */ + + +#ifndef __ITransactionStatus_INTERFACE_DEFINED__ +#define __ITransactionStatus_INTERFACE_DEFINED__ + +/* interface ITransactionStatus */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_ITransactionStatus; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("61F589E8-3724-4898-A0A4-664AE9E1D1B4") + ITransactionStatus : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetTransactionStatus( + HRESULT hrStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransactionStatus( + HRESULT *pHrStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITransactionStatusVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ITransactionStatus * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ITransactionStatus * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ITransactionStatus * This); + + DECLSPEC_XFGVIRT(ITransactionStatus, SetTransactionStatus) + HRESULT ( STDMETHODCALLTYPE *SetTransactionStatus )( + ITransactionStatus * This, + HRESULT hrStatus); + + DECLSPEC_XFGVIRT(ITransactionStatus, GetTransactionStatus) + HRESULT ( STDMETHODCALLTYPE *GetTransactionStatus )( + ITransactionStatus * This, + HRESULT *pHrStatus); + + END_INTERFACE + } ITransactionStatusVtbl; + + interface ITransactionStatus + { + CONST_VTBL struct ITransactionStatusVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITransactionStatus_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITransactionStatus_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITransactionStatus_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITransactionStatus_SetTransactionStatus(This,hrStatus) \ + ( (This)->lpVtbl -> SetTransactionStatus(This,hrStatus) ) + +#define ITransactionStatus_GetTransactionStatus(This,pHrStatus) \ + ( (This)->lpVtbl -> GetTransactionStatus(This,pHrStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITransactionStatus_INTERFACE_DEFINED__ */ + + +#ifndef __IObjectContextTip_INTERFACE_DEFINED__ +#define __IObjectContextTip_INTERFACE_DEFINED__ + +/* interface IObjectContextTip */ +/* [object][uuid][unique][local] */ + + +EXTERN_C const IID IID_IObjectContextTip; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("92FD41CA-BAD9-11d2-9A2D-00C04F797BC9") + IObjectContextTip : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTipUrl( + /* [retval][out] */ BSTR *pTipUrl) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectContextTipVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IObjectContextTip * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IObjectContextTip * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IObjectContextTip * This); + + DECLSPEC_XFGVIRT(IObjectContextTip, GetTipUrl) + HRESULT ( STDMETHODCALLTYPE *GetTipUrl )( + IObjectContextTip * This, + /* [retval][out] */ BSTR *pTipUrl); + + END_INTERFACE + } IObjectContextTipVtbl; + + interface IObjectContextTip + { + CONST_VTBL struct IObjectContextTipVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectContextTip_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectContextTip_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectContextTip_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectContextTip_GetTipUrl(This,pTipUrl) \ + ( (This)->lpVtbl -> GetTipUrl(This,pTipUrl) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectContextTip_INTERFACE_DEFINED__ */ + + +#ifndef __IPlaybackControl_INTERFACE_DEFINED__ +#define __IPlaybackControl_INTERFACE_DEFINED__ + +/* interface IPlaybackControl */ +/* [object][unique][uuid] */ + + +EXTERN_C const IID IID_IPlaybackControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51372afd-cae7-11cf-be81-00aa00a2fa25") + IPlaybackControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FinalClientRetry( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE FinalServerRetry( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPlaybackControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPlaybackControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPlaybackControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPlaybackControl * This); + + DECLSPEC_XFGVIRT(IPlaybackControl, FinalClientRetry) + HRESULT ( STDMETHODCALLTYPE *FinalClientRetry )( + __RPC__in IPlaybackControl * This); + + DECLSPEC_XFGVIRT(IPlaybackControl, FinalServerRetry) + HRESULT ( STDMETHODCALLTYPE *FinalServerRetry )( + __RPC__in IPlaybackControl * This); + + END_INTERFACE + } IPlaybackControlVtbl; + + interface IPlaybackControl + { + CONST_VTBL struct IPlaybackControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPlaybackControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPlaybackControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPlaybackControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPlaybackControl_FinalClientRetry(This) \ + ( (This)->lpVtbl -> FinalClientRetry(This) ) + +#define IPlaybackControl_FinalServerRetry(This) \ + ( (This)->lpVtbl -> FinalServerRetry(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPlaybackControl_INTERFACE_DEFINED__ */ + + +#ifndef __IGetContextProperties_INTERFACE_DEFINED__ +#define __IGetContextProperties_INTERFACE_DEFINED__ + +/* interface IGetContextProperties */ +/* [object][unique][uuid][local] */ + + +EXTERN_C const IID IID_IGetContextProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51372af4-cae7-11cf-be81-00aa00a2fa25") + IGetContextProperties : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Count( + /* [retval][out] */ long *plCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ BSTR name, + /* [retval][out] */ VARIANT *pProperty) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumNames( + /* [retval][out] */ IEnumNames **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetContextPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IGetContextProperties * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IGetContextProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IGetContextProperties * This); + + DECLSPEC_XFGVIRT(IGetContextProperties, Count) + HRESULT ( STDMETHODCALLTYPE *Count )( + IGetContextProperties * This, + /* [retval][out] */ long *plCount); + + DECLSPEC_XFGVIRT(IGetContextProperties, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + IGetContextProperties * This, + /* [in] */ BSTR name, + /* [retval][out] */ VARIANT *pProperty); + + DECLSPEC_XFGVIRT(IGetContextProperties, EnumNames) + HRESULT ( STDMETHODCALLTYPE *EnumNames )( + IGetContextProperties * This, + /* [retval][out] */ IEnumNames **ppenum); + + END_INTERFACE + } IGetContextPropertiesVtbl; + + interface IGetContextProperties + { + CONST_VTBL struct IGetContextPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetContextProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetContextProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetContextProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetContextProperties_Count(This,plCount) \ + ( (This)->lpVtbl -> Count(This,plCount) ) + +#define IGetContextProperties_GetProperty(This,name,pProperty) \ + ( (This)->lpVtbl -> GetProperty(This,name,pProperty) ) + +#define IGetContextProperties_EnumNames(This,ppenum) \ + ( (This)->lpVtbl -> EnumNames(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetContextProperties_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0073 */ +/* [local] */ + +typedef +enum tagTransactionVote + { + TxCommit = 0, + TxAbort = ( TxCommit + 1 ) + } TransactionVote; + + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0073_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0073_v0_0_s_ifspec; + +#ifndef __IContextState_INTERFACE_DEFINED__ +#define __IContextState_INTERFACE_DEFINED__ + +/* interface IContextState */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IContextState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3C05E54B-A42A-11d2-AFC4-00C04F8EE1C4") + IContextState : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetDeactivateOnReturn( + VARIANT_BOOL bDeactivate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDeactivateOnReturn( + /* [out] */ VARIANT_BOOL *pbDeactivate) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMyTransactionVote( + TransactionVote txVote) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMyTransactionVote( + /* [out] */ TransactionVote *ptxVote) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContextStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IContextState * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IContextState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IContextState * This); + + DECLSPEC_XFGVIRT(IContextState, SetDeactivateOnReturn) + HRESULT ( STDMETHODCALLTYPE *SetDeactivateOnReturn )( + IContextState * This, + VARIANT_BOOL bDeactivate); + + DECLSPEC_XFGVIRT(IContextState, GetDeactivateOnReturn) + HRESULT ( STDMETHODCALLTYPE *GetDeactivateOnReturn )( + IContextState * This, + /* [out] */ VARIANT_BOOL *pbDeactivate); + + DECLSPEC_XFGVIRT(IContextState, SetMyTransactionVote) + HRESULT ( STDMETHODCALLTYPE *SetMyTransactionVote )( + IContextState * This, + TransactionVote txVote); + + DECLSPEC_XFGVIRT(IContextState, GetMyTransactionVote) + HRESULT ( STDMETHODCALLTYPE *GetMyTransactionVote )( + IContextState * This, + /* [out] */ TransactionVote *ptxVote); + + END_INTERFACE + } IContextStateVtbl; + + interface IContextState + { + CONST_VTBL struct IContextStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContextState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContextState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContextState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContextState_SetDeactivateOnReturn(This,bDeactivate) \ + ( (This)->lpVtbl -> SetDeactivateOnReturn(This,bDeactivate) ) + +#define IContextState_GetDeactivateOnReturn(This,pbDeactivate) \ + ( (This)->lpVtbl -> GetDeactivateOnReturn(This,pbDeactivate) ) + +#define IContextState_SetMyTransactionVote(This,txVote) \ + ( (This)->lpVtbl -> SetMyTransactionVote(This,txVote) ) + +#define IContextState_GetMyTransactionVote(This,ptxVote) \ + ( (This)->lpVtbl -> GetMyTransactionVote(This,ptxVote) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContextState_INTERFACE_DEFINED__ */ + + +#ifndef __IPoolManager_INTERFACE_DEFINED__ +#define __IPoolManager_INTERFACE_DEFINED__ + +/* interface IPoolManager */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IPoolManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0a469861-5a91-43a0-99b6-d5e179bb0631") + IPoolManager : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ShutdownPool( + /* [in] */ BSTR CLSIDOrProgID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPoolManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPoolManager * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPoolManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPoolManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IPoolManager * This, + /* [out] */ UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IPoolManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IPoolManager * This, + /* [in] */ REFIID riid, + /* [size_is][in] */ LPOLESTR *rgszNames, + /* [range][in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IPoolManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IPoolManager, ShutdownPool) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShutdownPool )( + IPoolManager * This, + /* [in] */ BSTR CLSIDOrProgID); + + END_INTERFACE + } IPoolManagerVtbl; + + interface IPoolManager + { + CONST_VTBL struct IPoolManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPoolManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPoolManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPoolManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPoolManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IPoolManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IPoolManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IPoolManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IPoolManager_ShutdownPool(This,CLSIDOrProgID) \ + ( (This)->lpVtbl -> ShutdownPool(This,CLSIDOrProgID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPoolManager_INTERFACE_DEFINED__ */ + + +#ifndef __ISelectCOMLBServer_INTERFACE_DEFINED__ +#define __ISelectCOMLBServer_INTERFACE_DEFINED__ + +/* interface ISelectCOMLBServer */ +/* [object][unique][uuid][local] */ + + +EXTERN_C const IID IID_ISelectCOMLBServer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("dcf443f4-3f8a-4872-b9f0-369a796d12d6") + ISelectCOMLBServer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Init( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLBServer( + /* [in] */ IUnknown *pUnk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISelectCOMLBServerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ISelectCOMLBServer * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ISelectCOMLBServer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ISelectCOMLBServer * This); + + DECLSPEC_XFGVIRT(ISelectCOMLBServer, Init) + HRESULT ( STDMETHODCALLTYPE *Init )( + ISelectCOMLBServer * This); + + DECLSPEC_XFGVIRT(ISelectCOMLBServer, GetLBServer) + HRESULT ( STDMETHODCALLTYPE *GetLBServer )( + ISelectCOMLBServer * This, + /* [in] */ IUnknown *pUnk); + + END_INTERFACE + } ISelectCOMLBServerVtbl; + + interface ISelectCOMLBServer + { + CONST_VTBL struct ISelectCOMLBServerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISelectCOMLBServer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISelectCOMLBServer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISelectCOMLBServer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISelectCOMLBServer_Init(This) \ + ( (This)->lpVtbl -> Init(This) ) + +#define ISelectCOMLBServer_GetLBServer(This,pUnk) \ + ( (This)->lpVtbl -> GetLBServer(This,pUnk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISelectCOMLBServer_INTERFACE_DEFINED__ */ + + +#ifndef __ICOMLBArguments_INTERFACE_DEFINED__ +#define __ICOMLBArguments_INTERFACE_DEFINED__ + +/* interface ICOMLBArguments */ +/* [object][unique][uuid][local] */ + + +EXTERN_C const IID IID_ICOMLBArguments; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3a0f150f-8ee5-4b94-b40e-aef2f9e42ed2") + ICOMLBArguments : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCLSID( + /* [out] */ CLSID *pCLSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCLSID( + /* [in] */ CLSID *pCLSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMachineName( + /* [in] */ ULONG cchSvr, + /* [annotation][max_is][out] */ + _Out_writes_(cchSvr) WCHAR szServerName[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMachineName( + /* [in] */ ULONG cchSvr, + /* [annotation][size_is][in] */ + _In_reads_(cchSvr) WCHAR szServerName[ ]) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICOMLBArgumentsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICOMLBArguments * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICOMLBArguments * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICOMLBArguments * This); + + DECLSPEC_XFGVIRT(ICOMLBArguments, GetCLSID) + HRESULT ( STDMETHODCALLTYPE *GetCLSID )( + ICOMLBArguments * This, + /* [out] */ CLSID *pCLSID); + + DECLSPEC_XFGVIRT(ICOMLBArguments, SetCLSID) + HRESULT ( STDMETHODCALLTYPE *SetCLSID )( + ICOMLBArguments * This, + /* [in] */ CLSID *pCLSID); + + DECLSPEC_XFGVIRT(ICOMLBArguments, GetMachineName) + HRESULT ( STDMETHODCALLTYPE *GetMachineName )( + ICOMLBArguments * This, + /* [in] */ ULONG cchSvr, + /* [annotation][max_is][out] */ + _Out_writes_(cchSvr) WCHAR szServerName[ ]); + + DECLSPEC_XFGVIRT(ICOMLBArguments, SetMachineName) + HRESULT ( STDMETHODCALLTYPE *SetMachineName )( + ICOMLBArguments * This, + /* [in] */ ULONG cchSvr, + /* [annotation][size_is][in] */ + _In_reads_(cchSvr) WCHAR szServerName[ ]); + + END_INTERFACE + } ICOMLBArgumentsVtbl; + + interface ICOMLBArguments + { + CONST_VTBL struct ICOMLBArgumentsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICOMLBArguments_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICOMLBArguments_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICOMLBArguments_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICOMLBArguments_GetCLSID(This,pCLSID) \ + ( (This)->lpVtbl -> GetCLSID(This,pCLSID) ) + +#define ICOMLBArguments_SetCLSID(This,pCLSID) \ + ( (This)->lpVtbl -> SetCLSID(This,pCLSID) ) + +#define ICOMLBArguments_GetMachineName(This,cchSvr,szServerName) \ + ( (This)->lpVtbl -> GetMachineName(This,cchSvr,szServerName) ) + +#define ICOMLBArguments_SetMachineName(This,cchSvr,szServerName) \ + ( (This)->lpVtbl -> SetMachineName(This,cchSvr,szServerName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICOMLBArguments_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0077 */ +/* [local] */ + +#if (_WIN32_WINNT >= 0x0500) +#define GetObjectContext(ppIOC) (CoGetObjectContext(IID_IObjectContext, (void **) (ppIOC)) == S_OK ? S_OK : CONTEXT_E_NOCONTEXT) +#else +extern HRESULT __cdecl GetObjectContext (IObjectContext** ppInstanceContext); +#endif +EXTERN_C HRESULT __stdcall CoCreateActivity(IUnknown* pIUnknown, REFIID riid, void** ppObj ); +EXTERN_C HRESULT __stdcall CoEnterServiceDomain(IUnknown* pConfigObject); +EXTERN_C void __stdcall CoLeaveServiceDomain(IUnknown *pUnkStatus); +EXTERN_C HRESULT __stdcall GetManagedExtensions(DWORD* dwExts); +extern void* __cdecl SafeRef(REFIID rid, IUnknown* pUnk); +extern HRESULT __cdecl RecycleSurrogate(long lReasonCode); + + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0077_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0077_v0_0_s_ifspec; + +#ifndef __ICrmLogControl_INTERFACE_DEFINED__ +#define __ICrmLogControl_INTERFACE_DEFINED__ + +/* interface ICrmLogControl */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICrmLogControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A0E174B3-D26E-11d2-8F84-00805FC7BCD9") + ICrmLogControl : public IUnknown + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransactionUOW( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RegisterCompensator( + /* [in] */ __RPC__in LPCWSTR lpcwstrProgIdCompensator, + /* [in] */ __RPC__in LPCWSTR lpcwstrDescription, + /* [in] */ LONG lCrmRegFlags) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteLogRecordVariants( + /* [in] */ __RPC__in VARIANT *pLogRecord) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ForceLog( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ForgetLogRecord( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ForceTransactionToAbort( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE WriteLogRecord( + /* [size_is][in] */ __RPC__in_ecount_full(cBlob) BLOB rgBlob[ ], + /* [in] */ ULONG cBlob) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICrmLogControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICrmLogControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICrmLogControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICrmLogControl * This); + + DECLSPEC_XFGVIRT(ICrmLogControl, get_TransactionUOW) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransactionUOW )( + __RPC__in ICrmLogControl * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(ICrmLogControl, RegisterCompensator) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RegisterCompensator )( + __RPC__in ICrmLogControl * This, + /* [in] */ __RPC__in LPCWSTR lpcwstrProgIdCompensator, + /* [in] */ __RPC__in LPCWSTR lpcwstrDescription, + /* [in] */ LONG lCrmRegFlags); + + DECLSPEC_XFGVIRT(ICrmLogControl, WriteLogRecordVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteLogRecordVariants )( + __RPC__in ICrmLogControl * This, + /* [in] */ __RPC__in VARIANT *pLogRecord); + + DECLSPEC_XFGVIRT(ICrmLogControl, ForceLog) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ForceLog )( + __RPC__in ICrmLogControl * This); + + DECLSPEC_XFGVIRT(ICrmLogControl, ForgetLogRecord) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ForgetLogRecord )( + __RPC__in ICrmLogControl * This); + + DECLSPEC_XFGVIRT(ICrmLogControl, ForceTransactionToAbort) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ForceTransactionToAbort )( + __RPC__in ICrmLogControl * This); + + DECLSPEC_XFGVIRT(ICrmLogControl, WriteLogRecord) + HRESULT ( STDMETHODCALLTYPE *WriteLogRecord )( + __RPC__in ICrmLogControl * This, + /* [size_is][in] */ __RPC__in_ecount_full(cBlob) BLOB rgBlob[ ], + /* [in] */ ULONG cBlob); + + END_INTERFACE + } ICrmLogControlVtbl; + + interface ICrmLogControl + { + CONST_VTBL struct ICrmLogControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICrmLogControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICrmLogControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICrmLogControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICrmLogControl_get_TransactionUOW(This,pVal) \ + ( (This)->lpVtbl -> get_TransactionUOW(This,pVal) ) + +#define ICrmLogControl_RegisterCompensator(This,lpcwstrProgIdCompensator,lpcwstrDescription,lCrmRegFlags) \ + ( (This)->lpVtbl -> RegisterCompensator(This,lpcwstrProgIdCompensator,lpcwstrDescription,lCrmRegFlags) ) + +#define ICrmLogControl_WriteLogRecordVariants(This,pLogRecord) \ + ( (This)->lpVtbl -> WriteLogRecordVariants(This,pLogRecord) ) + +#define ICrmLogControl_ForceLog(This) \ + ( (This)->lpVtbl -> ForceLog(This) ) + +#define ICrmLogControl_ForgetLogRecord(This) \ + ( (This)->lpVtbl -> ForgetLogRecord(This) ) + +#define ICrmLogControl_ForceTransactionToAbort(This) \ + ( (This)->lpVtbl -> ForceTransactionToAbort(This) ) + +#define ICrmLogControl_WriteLogRecord(This,rgBlob,cBlob) \ + ( (This)->lpVtbl -> WriteLogRecord(This,rgBlob,cBlob) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICrmLogControl_INTERFACE_DEFINED__ */ + + +#ifndef __ICrmCompensatorVariants_INTERFACE_DEFINED__ +#define __ICrmCompensatorVariants_INTERFACE_DEFINED__ + +/* interface ICrmCompensatorVariants */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICrmCompensatorVariants; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F0BAF8E4-7804-11d1-82E9-00A0C91EEDE9") + ICrmCompensatorVariants : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetLogControlVariants( + /* [in] */ __RPC__in_opt ICrmLogControl *pLogControl) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE BeginPrepareVariants( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PrepareRecordVariants( + /* [in] */ __RPC__in VARIANT *pLogRecord, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbForget) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EndPrepareVariants( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbOkToPrepare) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE BeginCommitVariants( + /* [in] */ VARIANT_BOOL bRecovery) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CommitRecordVariants( + /* [in] */ __RPC__in VARIANT *pLogRecord, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbForget) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EndCommitVariants( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE BeginAbortVariants( + /* [in] */ VARIANT_BOOL bRecovery) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AbortRecordVariants( + /* [in] */ __RPC__in VARIANT *pLogRecord, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbForget) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EndAbortVariants( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICrmCompensatorVariantsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICrmCompensatorVariants * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICrmCompensatorVariants * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICrmCompensatorVariants * This); + + DECLSPEC_XFGVIRT(ICrmCompensatorVariants, SetLogControlVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLogControlVariants )( + __RPC__in ICrmCompensatorVariants * This, + /* [in] */ __RPC__in_opt ICrmLogControl *pLogControl); + + DECLSPEC_XFGVIRT(ICrmCompensatorVariants, BeginPrepareVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BeginPrepareVariants )( + __RPC__in ICrmCompensatorVariants * This); + + DECLSPEC_XFGVIRT(ICrmCompensatorVariants, PrepareRecordVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PrepareRecordVariants )( + __RPC__in ICrmCompensatorVariants * This, + /* [in] */ __RPC__in VARIANT *pLogRecord, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbForget); + + DECLSPEC_XFGVIRT(ICrmCompensatorVariants, EndPrepareVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EndPrepareVariants )( + __RPC__in ICrmCompensatorVariants * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbOkToPrepare); + + DECLSPEC_XFGVIRT(ICrmCompensatorVariants, BeginCommitVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BeginCommitVariants )( + __RPC__in ICrmCompensatorVariants * This, + /* [in] */ VARIANT_BOOL bRecovery); + + DECLSPEC_XFGVIRT(ICrmCompensatorVariants, CommitRecordVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CommitRecordVariants )( + __RPC__in ICrmCompensatorVariants * This, + /* [in] */ __RPC__in VARIANT *pLogRecord, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbForget); + + DECLSPEC_XFGVIRT(ICrmCompensatorVariants, EndCommitVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EndCommitVariants )( + __RPC__in ICrmCompensatorVariants * This); + + DECLSPEC_XFGVIRT(ICrmCompensatorVariants, BeginAbortVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BeginAbortVariants )( + __RPC__in ICrmCompensatorVariants * This, + /* [in] */ VARIANT_BOOL bRecovery); + + DECLSPEC_XFGVIRT(ICrmCompensatorVariants, AbortRecordVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AbortRecordVariants )( + __RPC__in ICrmCompensatorVariants * This, + /* [in] */ __RPC__in VARIANT *pLogRecord, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbForget); + + DECLSPEC_XFGVIRT(ICrmCompensatorVariants, EndAbortVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EndAbortVariants )( + __RPC__in ICrmCompensatorVariants * This); + + END_INTERFACE + } ICrmCompensatorVariantsVtbl; + + interface ICrmCompensatorVariants + { + CONST_VTBL struct ICrmCompensatorVariantsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICrmCompensatorVariants_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICrmCompensatorVariants_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICrmCompensatorVariants_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICrmCompensatorVariants_SetLogControlVariants(This,pLogControl) \ + ( (This)->lpVtbl -> SetLogControlVariants(This,pLogControl) ) + +#define ICrmCompensatorVariants_BeginPrepareVariants(This) \ + ( (This)->lpVtbl -> BeginPrepareVariants(This) ) + +#define ICrmCompensatorVariants_PrepareRecordVariants(This,pLogRecord,pbForget) \ + ( (This)->lpVtbl -> PrepareRecordVariants(This,pLogRecord,pbForget) ) + +#define ICrmCompensatorVariants_EndPrepareVariants(This,pbOkToPrepare) \ + ( (This)->lpVtbl -> EndPrepareVariants(This,pbOkToPrepare) ) + +#define ICrmCompensatorVariants_BeginCommitVariants(This,bRecovery) \ + ( (This)->lpVtbl -> BeginCommitVariants(This,bRecovery) ) + +#define ICrmCompensatorVariants_CommitRecordVariants(This,pLogRecord,pbForget) \ + ( (This)->lpVtbl -> CommitRecordVariants(This,pLogRecord,pbForget) ) + +#define ICrmCompensatorVariants_EndCommitVariants(This) \ + ( (This)->lpVtbl -> EndCommitVariants(This) ) + +#define ICrmCompensatorVariants_BeginAbortVariants(This,bRecovery) \ + ( (This)->lpVtbl -> BeginAbortVariants(This,bRecovery) ) + +#define ICrmCompensatorVariants_AbortRecordVariants(This,pLogRecord,pbForget) \ + ( (This)->lpVtbl -> AbortRecordVariants(This,pLogRecord,pbForget) ) + +#define ICrmCompensatorVariants_EndAbortVariants(This) \ + ( (This)->lpVtbl -> EndAbortVariants(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICrmCompensatorVariants_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0079 */ +/* [local] */ + +#ifndef _tagCrmLogRecordRead_ +#define _tagCrmLogRecordRead_ +typedef struct tagCrmLogRecordRead + { + DWORD dwCrmFlags; + DWORD dwSequenceNumber; + BLOB blobUserData; + } CrmLogRecordRead; + +#endif // _tagCrmLogRecordRead_ + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0079_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0079_v0_0_s_ifspec; + +#ifndef __ICrmCompensator_INTERFACE_DEFINED__ +#define __ICrmCompensator_INTERFACE_DEFINED__ + +/* interface ICrmCompensator */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICrmCompensator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BBC01830-8D3B-11d1-82EC-00A0C91EEDE9") + ICrmCompensator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetLogControl( + /* [in] */ __RPC__in_opt ICrmLogControl *pLogControl) = 0; + + virtual HRESULT STDMETHODCALLTYPE BeginPrepare( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PrepareRecord( + /* [in] */ CrmLogRecordRead crmLogRec, + /* [retval][out] */ __RPC__out BOOL *pfForget) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndPrepare( + /* [retval][out] */ __RPC__out BOOL *pfOkToPrepare) = 0; + + virtual HRESULT STDMETHODCALLTYPE BeginCommit( + /* [in] */ BOOL fRecovery) = 0; + + virtual HRESULT STDMETHODCALLTYPE CommitRecord( + /* [in] */ CrmLogRecordRead crmLogRec, + /* [retval][out] */ __RPC__out BOOL *pfForget) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndCommit( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE BeginAbort( + /* [in] */ BOOL fRecovery) = 0; + + virtual HRESULT STDMETHODCALLTYPE AbortRecord( + /* [in] */ CrmLogRecordRead crmLogRec, + /* [retval][out] */ __RPC__out BOOL *pfForget) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndAbort( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICrmCompensatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICrmCompensator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICrmCompensator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICrmCompensator * This); + + DECLSPEC_XFGVIRT(ICrmCompensator, SetLogControl) + HRESULT ( STDMETHODCALLTYPE *SetLogControl )( + __RPC__in ICrmCompensator * This, + /* [in] */ __RPC__in_opt ICrmLogControl *pLogControl); + + DECLSPEC_XFGVIRT(ICrmCompensator, BeginPrepare) + HRESULT ( STDMETHODCALLTYPE *BeginPrepare )( + __RPC__in ICrmCompensator * This); + + DECLSPEC_XFGVIRT(ICrmCompensator, PrepareRecord) + HRESULT ( STDMETHODCALLTYPE *PrepareRecord )( + __RPC__in ICrmCompensator * This, + /* [in] */ CrmLogRecordRead crmLogRec, + /* [retval][out] */ __RPC__out BOOL *pfForget); + + DECLSPEC_XFGVIRT(ICrmCompensator, EndPrepare) + HRESULT ( STDMETHODCALLTYPE *EndPrepare )( + __RPC__in ICrmCompensator * This, + /* [retval][out] */ __RPC__out BOOL *pfOkToPrepare); + + DECLSPEC_XFGVIRT(ICrmCompensator, BeginCommit) + HRESULT ( STDMETHODCALLTYPE *BeginCommit )( + __RPC__in ICrmCompensator * This, + /* [in] */ BOOL fRecovery); + + DECLSPEC_XFGVIRT(ICrmCompensator, CommitRecord) + HRESULT ( STDMETHODCALLTYPE *CommitRecord )( + __RPC__in ICrmCompensator * This, + /* [in] */ CrmLogRecordRead crmLogRec, + /* [retval][out] */ __RPC__out BOOL *pfForget); + + DECLSPEC_XFGVIRT(ICrmCompensator, EndCommit) + HRESULT ( STDMETHODCALLTYPE *EndCommit )( + __RPC__in ICrmCompensator * This); + + DECLSPEC_XFGVIRT(ICrmCompensator, BeginAbort) + HRESULT ( STDMETHODCALLTYPE *BeginAbort )( + __RPC__in ICrmCompensator * This, + /* [in] */ BOOL fRecovery); + + DECLSPEC_XFGVIRT(ICrmCompensator, AbortRecord) + HRESULT ( STDMETHODCALLTYPE *AbortRecord )( + __RPC__in ICrmCompensator * This, + /* [in] */ CrmLogRecordRead crmLogRec, + /* [retval][out] */ __RPC__out BOOL *pfForget); + + DECLSPEC_XFGVIRT(ICrmCompensator, EndAbort) + HRESULT ( STDMETHODCALLTYPE *EndAbort )( + __RPC__in ICrmCompensator * This); + + END_INTERFACE + } ICrmCompensatorVtbl; + + interface ICrmCompensator + { + CONST_VTBL struct ICrmCompensatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICrmCompensator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICrmCompensator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICrmCompensator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICrmCompensator_SetLogControl(This,pLogControl) \ + ( (This)->lpVtbl -> SetLogControl(This,pLogControl) ) + +#define ICrmCompensator_BeginPrepare(This) \ + ( (This)->lpVtbl -> BeginPrepare(This) ) + +#define ICrmCompensator_PrepareRecord(This,crmLogRec,pfForget) \ + ( (This)->lpVtbl -> PrepareRecord(This,crmLogRec,pfForget) ) + +#define ICrmCompensator_EndPrepare(This,pfOkToPrepare) \ + ( (This)->lpVtbl -> EndPrepare(This,pfOkToPrepare) ) + +#define ICrmCompensator_BeginCommit(This,fRecovery) \ + ( (This)->lpVtbl -> BeginCommit(This,fRecovery) ) + +#define ICrmCompensator_CommitRecord(This,crmLogRec,pfForget) \ + ( (This)->lpVtbl -> CommitRecord(This,crmLogRec,pfForget) ) + +#define ICrmCompensator_EndCommit(This) \ + ( (This)->lpVtbl -> EndCommit(This) ) + +#define ICrmCompensator_BeginAbort(This,fRecovery) \ + ( (This)->lpVtbl -> BeginAbort(This,fRecovery) ) + +#define ICrmCompensator_AbortRecord(This,crmLogRec,pfForget) \ + ( (This)->lpVtbl -> AbortRecord(This,crmLogRec,pfForget) ) + +#define ICrmCompensator_EndAbort(This) \ + ( (This)->lpVtbl -> EndAbort(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICrmCompensator_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0080 */ +/* [local] */ + +#ifndef _tagCrmTransactionState_ +#define _tagCrmTransactionState_ +typedef +enum tagCrmTransactionState + { + TxState_Active = 0, + TxState_Committed = ( TxState_Active + 1 ) , + TxState_Aborted = ( TxState_Committed + 1 ) , + TxState_Indoubt = ( TxState_Aborted + 1 ) + } CrmTransactionState; + +#endif // _tagCrmTransactionState_ + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0080_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0080_v0_0_s_ifspec; + +#ifndef __ICrmMonitorLogRecords_INTERFACE_DEFINED__ +#define __ICrmMonitorLogRecords_INTERFACE_DEFINED__ + +/* interface ICrmMonitorLogRecords */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICrmMonitorLogRecords; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("70C8E441-C7ED-11d1-82FB-00A0C91EEDE9") + ICrmMonitorLogRecords : public IUnknown + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransactionState( + /* [retval][out] */ __RPC__out CrmTransactionState *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StructuredRecords( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLogRecord( + /* [in] */ DWORD dwIndex, + /* [out][in] */ __RPC__inout CrmLogRecordRead *pCrmLogRec) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLogRecordVariants( + /* [in] */ VARIANT IndexNumber, + /* [retval][out] */ __RPC__out LPVARIANT pLogRecord) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICrmMonitorLogRecordsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICrmMonitorLogRecords * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICrmMonitorLogRecords * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICrmMonitorLogRecords * This); + + DECLSPEC_XFGVIRT(ICrmMonitorLogRecords, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICrmMonitorLogRecords * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ICrmMonitorLogRecords, get_TransactionState) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransactionState )( + __RPC__in ICrmMonitorLogRecords * This, + /* [retval][out] */ __RPC__out CrmTransactionState *pVal); + + DECLSPEC_XFGVIRT(ICrmMonitorLogRecords, get_StructuredRecords) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StructuredRecords )( + __RPC__in ICrmMonitorLogRecords * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(ICrmMonitorLogRecords, GetLogRecord) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLogRecord )( + __RPC__in ICrmMonitorLogRecords * This, + /* [in] */ DWORD dwIndex, + /* [out][in] */ __RPC__inout CrmLogRecordRead *pCrmLogRec); + + DECLSPEC_XFGVIRT(ICrmMonitorLogRecords, GetLogRecordVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLogRecordVariants )( + __RPC__in ICrmMonitorLogRecords * This, + /* [in] */ VARIANT IndexNumber, + /* [retval][out] */ __RPC__out LPVARIANT pLogRecord); + + END_INTERFACE + } ICrmMonitorLogRecordsVtbl; + + interface ICrmMonitorLogRecords + { + CONST_VTBL struct ICrmMonitorLogRecordsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICrmMonitorLogRecords_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICrmMonitorLogRecords_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICrmMonitorLogRecords_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICrmMonitorLogRecords_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ICrmMonitorLogRecords_get_TransactionState(This,pVal) \ + ( (This)->lpVtbl -> get_TransactionState(This,pVal) ) + +#define ICrmMonitorLogRecords_get_StructuredRecords(This,pVal) \ + ( (This)->lpVtbl -> get_StructuredRecords(This,pVal) ) + +#define ICrmMonitorLogRecords_GetLogRecord(This,dwIndex,pCrmLogRec) \ + ( (This)->lpVtbl -> GetLogRecord(This,dwIndex,pCrmLogRec) ) + +#define ICrmMonitorLogRecords_GetLogRecordVariants(This,IndexNumber,pLogRecord) \ + ( (This)->lpVtbl -> GetLogRecordVariants(This,IndexNumber,pLogRecord) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICrmMonitorLogRecords_INTERFACE_DEFINED__ */ + + +#ifndef __ICrmMonitorClerks_INTERFACE_DEFINED__ +#define __ICrmMonitorClerks_INTERFACE_DEFINED__ + +/* interface ICrmMonitorClerks */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICrmMonitorClerks; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("70C8E442-C7ED-11d1-82FB-00A0C91EEDE9") + ICrmMonitorClerks : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ProgIdCompensator( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Description( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TransactionUOW( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ActivityId( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICrmMonitorClerksVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICrmMonitorClerks * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICrmMonitorClerks * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICrmMonitorClerks * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICrmMonitorClerks * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICrmMonitorClerks * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICrmMonitorClerks * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICrmMonitorClerks * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICrmMonitorClerks, Item) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Item )( + __RPC__in ICrmMonitorClerks * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem); + + DECLSPEC_XFGVIRT(ICrmMonitorClerks, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICrmMonitorClerks * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(ICrmMonitorClerks, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICrmMonitorClerks * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ICrmMonitorClerks, ProgIdCompensator) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ProgIdCompensator )( + __RPC__in ICrmMonitorClerks * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem); + + DECLSPEC_XFGVIRT(ICrmMonitorClerks, Description) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Description )( + __RPC__in ICrmMonitorClerks * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem); + + DECLSPEC_XFGVIRT(ICrmMonitorClerks, TransactionUOW) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TransactionUOW )( + __RPC__in ICrmMonitorClerks * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem); + + DECLSPEC_XFGVIRT(ICrmMonitorClerks, ActivityId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ActivityId )( + __RPC__in ICrmMonitorClerks * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem); + + END_INTERFACE + } ICrmMonitorClerksVtbl; + + interface ICrmMonitorClerks + { + CONST_VTBL struct ICrmMonitorClerksVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICrmMonitorClerks_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICrmMonitorClerks_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICrmMonitorClerks_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICrmMonitorClerks_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICrmMonitorClerks_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICrmMonitorClerks_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICrmMonitorClerks_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICrmMonitorClerks_Item(This,Index,pItem) \ + ( (This)->lpVtbl -> Item(This,Index,pItem) ) + +#define ICrmMonitorClerks_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define ICrmMonitorClerks_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ICrmMonitorClerks_ProgIdCompensator(This,Index,pItem) \ + ( (This)->lpVtbl -> ProgIdCompensator(This,Index,pItem) ) + +#define ICrmMonitorClerks_Description(This,Index,pItem) \ + ( (This)->lpVtbl -> Description(This,Index,pItem) ) + +#define ICrmMonitorClerks_TransactionUOW(This,Index,pItem) \ + ( (This)->lpVtbl -> TransactionUOW(This,Index,pItem) ) + +#define ICrmMonitorClerks_ActivityId(This,Index,pItem) \ + ( (This)->lpVtbl -> ActivityId(This,Index,pItem) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICrmMonitorClerks_INTERFACE_DEFINED__ */ + + +#ifndef __ICrmMonitor_INTERFACE_DEFINED__ +#define __ICrmMonitor_INTERFACE_DEFINED__ + +/* interface ICrmMonitor */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICrmMonitor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("70C8E443-C7ED-11d1-82FB-00A0C91EEDE9") + ICrmMonitor : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetClerks( + /* [retval][out] */ __RPC__deref_out_opt ICrmMonitorClerks **pClerks) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE HoldClerk( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICrmMonitorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICrmMonitor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICrmMonitor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICrmMonitor * This); + + DECLSPEC_XFGVIRT(ICrmMonitor, GetClerks) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetClerks )( + __RPC__in ICrmMonitor * This, + /* [retval][out] */ __RPC__deref_out_opt ICrmMonitorClerks **pClerks); + + DECLSPEC_XFGVIRT(ICrmMonitor, HoldClerk) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *HoldClerk )( + __RPC__in ICrmMonitor * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out LPVARIANT pItem); + + END_INTERFACE + } ICrmMonitorVtbl; + + interface ICrmMonitor + { + CONST_VTBL struct ICrmMonitorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICrmMonitor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICrmMonitor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICrmMonitor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICrmMonitor_GetClerks(This,pClerks) \ + ( (This)->lpVtbl -> GetClerks(This,pClerks) ) + +#define ICrmMonitor_HoldClerk(This,Index,pItem) \ + ( (This)->lpVtbl -> HoldClerk(This,Index,pItem) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICrmMonitor_INTERFACE_DEFINED__ */ + + +#ifndef __ICrmFormatLogRecords_INTERFACE_DEFINED__ +#define __ICrmFormatLogRecords_INTERFACE_DEFINED__ + +/* interface ICrmFormatLogRecords */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICrmFormatLogRecords; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9C51D821-C98B-11d1-82FB-00A0C91EEDE9") + ICrmFormatLogRecords : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetColumnCount( + /* [out] */ __RPC__out long *plColumnCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetColumnHeaders( + /* [out] */ __RPC__out LPVARIANT pHeaders) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetColumn( + /* [in] */ CrmLogRecordRead CrmLogRec, + /* [out] */ __RPC__out LPVARIANT pFormattedLogRecord) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetColumnVariants( + /* [in] */ VARIANT LogRecord, + /* [out] */ __RPC__out LPVARIANT pFormattedLogRecord) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICrmFormatLogRecordsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICrmFormatLogRecords * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICrmFormatLogRecords * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICrmFormatLogRecords * This); + + DECLSPEC_XFGVIRT(ICrmFormatLogRecords, GetColumnCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetColumnCount )( + __RPC__in ICrmFormatLogRecords * This, + /* [out] */ __RPC__out long *plColumnCount); + + DECLSPEC_XFGVIRT(ICrmFormatLogRecords, GetColumnHeaders) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetColumnHeaders )( + __RPC__in ICrmFormatLogRecords * This, + /* [out] */ __RPC__out LPVARIANT pHeaders); + + DECLSPEC_XFGVIRT(ICrmFormatLogRecords, GetColumn) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetColumn )( + __RPC__in ICrmFormatLogRecords * This, + /* [in] */ CrmLogRecordRead CrmLogRec, + /* [out] */ __RPC__out LPVARIANT pFormattedLogRecord); + + DECLSPEC_XFGVIRT(ICrmFormatLogRecords, GetColumnVariants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetColumnVariants )( + __RPC__in ICrmFormatLogRecords * This, + /* [in] */ VARIANT LogRecord, + /* [out] */ __RPC__out LPVARIANT pFormattedLogRecord); + + END_INTERFACE + } ICrmFormatLogRecordsVtbl; + + interface ICrmFormatLogRecords + { + CONST_VTBL struct ICrmFormatLogRecordsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICrmFormatLogRecords_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICrmFormatLogRecords_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICrmFormatLogRecords_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICrmFormatLogRecords_GetColumnCount(This,plColumnCount) \ + ( (This)->lpVtbl -> GetColumnCount(This,plColumnCount) ) + +#define ICrmFormatLogRecords_GetColumnHeaders(This,pHeaders) \ + ( (This)->lpVtbl -> GetColumnHeaders(This,pHeaders) ) + +#define ICrmFormatLogRecords_GetColumn(This,CrmLogRec,pFormattedLogRecord) \ + ( (This)->lpVtbl -> GetColumn(This,CrmLogRec,pFormattedLogRecord) ) + +#define ICrmFormatLogRecords_GetColumnVariants(This,LogRecord,pFormattedLogRecord) \ + ( (This)->lpVtbl -> GetColumnVariants(This,LogRecord,pFormattedLogRecord) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICrmFormatLogRecords_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0084 */ +/* [local] */ + +typedef +enum tagCSC_InheritanceConfig + { + CSC_Inherit = 0, + CSC_Ignore = ( CSC_Inherit + 1 ) + } CSC_InheritanceConfig; + +typedef +enum tagCSC_ThreadPool + { + CSC_ThreadPoolNone = 0, + CSC_ThreadPoolInherit = ( CSC_ThreadPoolNone + 1 ) , + CSC_STAThreadPool = ( CSC_ThreadPoolInherit + 1 ) , + CSC_MTAThreadPool = ( CSC_STAThreadPool + 1 ) + } CSC_ThreadPool; + +typedef +enum tagCSC_Binding + { + CSC_NoBinding = 0, + CSC_BindToPoolThread = ( CSC_NoBinding + 1 ) + } CSC_Binding; + +typedef +enum tagCSC_TransactionConfig + { + CSC_NoTransaction = 0, + CSC_IfContainerIsTransactional = ( CSC_NoTransaction + 1 ) , + CSC_CreateTransactionIfNecessary = ( CSC_IfContainerIsTransactional + 1 ) , + CSC_NewTransaction = ( CSC_CreateTransactionIfNecessary + 1 ) + } CSC_TransactionConfig; + +typedef +enum tagCSC_SynchronizationConfig + { + CSC_NoSynchronization = 0, + CSC_IfContainerIsSynchronized = ( CSC_NoSynchronization + 1 ) , + CSC_NewSynchronizationIfNecessary = ( CSC_IfContainerIsSynchronized + 1 ) , + CSC_NewSynchronization = ( CSC_NewSynchronizationIfNecessary + 1 ) + } CSC_SynchronizationConfig; + +typedef +enum tagCSC_TrackerConfig + { + CSC_DontUseTracker = 0, + CSC_UseTracker = ( CSC_DontUseTracker + 1 ) + } CSC_TrackerConfig; + +typedef +enum tagCSC_PartitionConfig + { + CSC_NoPartition = 0, + CSC_InheritPartition = ( CSC_NoPartition + 1 ) , + CSC_NewPartition = ( CSC_InheritPartition + 1 ) + } CSC_PartitionConfig; + +typedef +enum tagCSC_IISIntrinsicsConfig + { + CSC_NoIISIntrinsics = 0, + CSC_InheritIISIntrinsics = ( CSC_NoIISIntrinsics + 1 ) + } CSC_IISIntrinsicsConfig; + +typedef +enum tagCSC_COMTIIntrinsicsConfig + { + CSC_NoCOMTIIntrinsics = 0, + CSC_InheritCOMTIIntrinsics = ( CSC_NoCOMTIIntrinsics + 1 ) + } CSC_COMTIIntrinsicsConfig; + +typedef +enum tagCSC_SxsConfig + { + CSC_NoSxs = 0, + CSC_InheritSxs = ( CSC_NoSxs + 1 ) , + CSC_NewSxs = ( CSC_InheritSxs + 1 ) + } CSC_SxsConfig; + + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0084_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0084_v0_0_s_ifspec; + +#ifndef __IServiceIISIntrinsicsConfig_INTERFACE_DEFINED__ +#define __IServiceIISIntrinsicsConfig_INTERFACE_DEFINED__ + +/* interface IServiceIISIntrinsicsConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceIISIntrinsicsConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1a0cf920-d452-46f4-bc36-48118d54ea52") + IServiceIISIntrinsicsConfig : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IISIntrinsicsConfig( + /* [in] */ CSC_IISIntrinsicsConfig iisIntrinsicsConfig) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceIISIntrinsicsConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceIISIntrinsicsConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceIISIntrinsicsConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceIISIntrinsicsConfig * This); + + DECLSPEC_XFGVIRT(IServiceIISIntrinsicsConfig, IISIntrinsicsConfig) + HRESULT ( STDMETHODCALLTYPE *IISIntrinsicsConfig )( + __RPC__in IServiceIISIntrinsicsConfig * This, + /* [in] */ CSC_IISIntrinsicsConfig iisIntrinsicsConfig); + + END_INTERFACE + } IServiceIISIntrinsicsConfigVtbl; + + interface IServiceIISIntrinsicsConfig + { + CONST_VTBL struct IServiceIISIntrinsicsConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceIISIntrinsicsConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceIISIntrinsicsConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceIISIntrinsicsConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceIISIntrinsicsConfig_IISIntrinsicsConfig(This,iisIntrinsicsConfig) \ + ( (This)->lpVtbl -> IISIntrinsicsConfig(This,iisIntrinsicsConfig) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceIISIntrinsicsConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceComTIIntrinsicsConfig_INTERFACE_DEFINED__ +#define __IServiceComTIIntrinsicsConfig_INTERFACE_DEFINED__ + +/* interface IServiceComTIIntrinsicsConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceComTIIntrinsicsConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("09e6831e-04e1-4ed4-9d0f-e8b168bafeaf") + IServiceComTIIntrinsicsConfig : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ComTIIntrinsicsConfig( + /* [in] */ CSC_COMTIIntrinsicsConfig comtiIntrinsicsConfig) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceComTIIntrinsicsConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceComTIIntrinsicsConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceComTIIntrinsicsConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceComTIIntrinsicsConfig * This); + + DECLSPEC_XFGVIRT(IServiceComTIIntrinsicsConfig, ComTIIntrinsicsConfig) + HRESULT ( STDMETHODCALLTYPE *ComTIIntrinsicsConfig )( + __RPC__in IServiceComTIIntrinsicsConfig * This, + /* [in] */ CSC_COMTIIntrinsicsConfig comtiIntrinsicsConfig); + + END_INTERFACE + } IServiceComTIIntrinsicsConfigVtbl; + + interface IServiceComTIIntrinsicsConfig + { + CONST_VTBL struct IServiceComTIIntrinsicsConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceComTIIntrinsicsConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceComTIIntrinsicsConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceComTIIntrinsicsConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceComTIIntrinsicsConfig_ComTIIntrinsicsConfig(This,comtiIntrinsicsConfig) \ + ( (This)->lpVtbl -> ComTIIntrinsicsConfig(This,comtiIntrinsicsConfig) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceComTIIntrinsicsConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceSxsConfig_INTERFACE_DEFINED__ +#define __IServiceSxsConfig_INTERFACE_DEFINED__ + +/* interface IServiceSxsConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceSxsConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c7cd7379-f3f2-4634-811b-703281d73e08") + IServiceSxsConfig : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SxsConfig( + /* [in] */ CSC_SxsConfig scsConfig) = 0; + + virtual HRESULT STDMETHODCALLTYPE SxsName( + /* [string][in] */ __RPC__in_string LPCWSTR szSxsName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SxsDirectory( + /* [string][in] */ __RPC__in_string LPCWSTR szSxsDirectory) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceSxsConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceSxsConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceSxsConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceSxsConfig * This); + + DECLSPEC_XFGVIRT(IServiceSxsConfig, SxsConfig) + HRESULT ( STDMETHODCALLTYPE *SxsConfig )( + __RPC__in IServiceSxsConfig * This, + /* [in] */ CSC_SxsConfig scsConfig); + + DECLSPEC_XFGVIRT(IServiceSxsConfig, SxsName) + HRESULT ( STDMETHODCALLTYPE *SxsName )( + __RPC__in IServiceSxsConfig * This, + /* [string][in] */ __RPC__in_string LPCWSTR szSxsName); + + DECLSPEC_XFGVIRT(IServiceSxsConfig, SxsDirectory) + HRESULT ( STDMETHODCALLTYPE *SxsDirectory )( + __RPC__in IServiceSxsConfig * This, + /* [string][in] */ __RPC__in_string LPCWSTR szSxsDirectory); + + END_INTERFACE + } IServiceSxsConfigVtbl; + + interface IServiceSxsConfig + { + CONST_VTBL struct IServiceSxsConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceSxsConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceSxsConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceSxsConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceSxsConfig_SxsConfig(This,scsConfig) \ + ( (This)->lpVtbl -> SxsConfig(This,scsConfig) ) + +#define IServiceSxsConfig_SxsName(This,szSxsName) \ + ( (This)->lpVtbl -> SxsName(This,szSxsName) ) + +#define IServiceSxsConfig_SxsDirectory(This,szSxsDirectory) \ + ( (This)->lpVtbl -> SxsDirectory(This,szSxsDirectory) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceSxsConfig_INTERFACE_DEFINED__ */ + + +#ifndef __ICheckSxsConfig_INTERFACE_DEFINED__ +#define __ICheckSxsConfig_INTERFACE_DEFINED__ + +/* interface ICheckSxsConfig */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICheckSxsConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0FF5A96F-11FC-47d1-BAA6-25DD347E7242") + ICheckSxsConfig : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsSameSxsConfig( + /* [string][in] */ LPCWSTR wszSxsName, + /* [string][in] */ LPCWSTR wszSxsDirectory, + /* [string][in] */ LPCWSTR wszSxsAppName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICheckSxsConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICheckSxsConfig * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICheckSxsConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICheckSxsConfig * This); + + DECLSPEC_XFGVIRT(ICheckSxsConfig, IsSameSxsConfig) + HRESULT ( STDMETHODCALLTYPE *IsSameSxsConfig )( + ICheckSxsConfig * This, + /* [string][in] */ LPCWSTR wszSxsName, + /* [string][in] */ LPCWSTR wszSxsDirectory, + /* [string][in] */ LPCWSTR wszSxsAppName); + + END_INTERFACE + } ICheckSxsConfigVtbl; + + interface ICheckSxsConfig + { + CONST_VTBL struct ICheckSxsConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICheckSxsConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICheckSxsConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICheckSxsConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICheckSxsConfig_IsSameSxsConfig(This,wszSxsName,wszSxsDirectory,wszSxsAppName) \ + ( (This)->lpVtbl -> IsSameSxsConfig(This,wszSxsName,wszSxsDirectory,wszSxsAppName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICheckSxsConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceInheritanceConfig_INTERFACE_DEFINED__ +#define __IServiceInheritanceConfig_INTERFACE_DEFINED__ + +/* interface IServiceInheritanceConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceInheritanceConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("92186771-d3b4-4d77-a8ea-ee842d586f35") + IServiceInheritanceConfig : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ContainingContextTreatment( + /* [in] */ CSC_InheritanceConfig inheritanceConfig) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceInheritanceConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceInheritanceConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceInheritanceConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceInheritanceConfig * This); + + DECLSPEC_XFGVIRT(IServiceInheritanceConfig, ContainingContextTreatment) + HRESULT ( STDMETHODCALLTYPE *ContainingContextTreatment )( + __RPC__in IServiceInheritanceConfig * This, + /* [in] */ CSC_InheritanceConfig inheritanceConfig); + + END_INTERFACE + } IServiceInheritanceConfigVtbl; + + interface IServiceInheritanceConfig + { + CONST_VTBL struct IServiceInheritanceConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceInheritanceConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceInheritanceConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceInheritanceConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceInheritanceConfig_ContainingContextTreatment(This,inheritanceConfig) \ + ( (This)->lpVtbl -> ContainingContextTreatment(This,inheritanceConfig) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceInheritanceConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceThreadPoolConfig_INTERFACE_DEFINED__ +#define __IServiceThreadPoolConfig_INTERFACE_DEFINED__ + +/* interface IServiceThreadPoolConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceThreadPoolConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("186d89bc-f277-4bcc-80d5-4df7b836ef4a") + IServiceThreadPoolConfig : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SelectThreadPool( + /* [in] */ CSC_ThreadPool threadPool) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBindingInfo( + /* [in] */ CSC_Binding binding) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceThreadPoolConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceThreadPoolConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceThreadPoolConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceThreadPoolConfig * This); + + DECLSPEC_XFGVIRT(IServiceThreadPoolConfig, SelectThreadPool) + HRESULT ( STDMETHODCALLTYPE *SelectThreadPool )( + __RPC__in IServiceThreadPoolConfig * This, + /* [in] */ CSC_ThreadPool threadPool); + + DECLSPEC_XFGVIRT(IServiceThreadPoolConfig, SetBindingInfo) + HRESULT ( STDMETHODCALLTYPE *SetBindingInfo )( + __RPC__in IServiceThreadPoolConfig * This, + /* [in] */ CSC_Binding binding); + + END_INTERFACE + } IServiceThreadPoolConfigVtbl; + + interface IServiceThreadPoolConfig + { + CONST_VTBL struct IServiceThreadPoolConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceThreadPoolConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceThreadPoolConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceThreadPoolConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceThreadPoolConfig_SelectThreadPool(This,threadPool) \ + ( (This)->lpVtbl -> SelectThreadPool(This,threadPool) ) + +#define IServiceThreadPoolConfig_SetBindingInfo(This,binding) \ + ( (This)->lpVtbl -> SetBindingInfo(This,binding) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceThreadPoolConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceTransactionConfigBase_INTERFACE_DEFINED__ +#define __IServiceTransactionConfigBase_INTERFACE_DEFINED__ + +/* interface IServiceTransactionConfigBase */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceTransactionConfigBase; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("772b3fbe-6ffd-42fb-b5f8-8f9b260f3810") + IServiceTransactionConfigBase : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ConfigureTransaction( + /* [in] */ CSC_TransactionConfig transactionConfig) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsolationLevel( + /* [in] */ COMAdminTxIsolationLevelOptions option) = 0; + + virtual HRESULT STDMETHODCALLTYPE TransactionTimeout( + /* [in] */ ULONG ulTimeoutSec) = 0; + + virtual HRESULT STDMETHODCALLTYPE BringYourOwnTransaction( + /* [string][in] */ __RPC__in_string LPCWSTR szTipURL) = 0; + + virtual HRESULT STDMETHODCALLTYPE NewTransactionDescription( + /* [string][in] */ __RPC__in_string LPCWSTR szTxDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceTransactionConfigBaseVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceTransactionConfigBase * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceTransactionConfigBase * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceTransactionConfigBase * This); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, ConfigureTransaction) + HRESULT ( STDMETHODCALLTYPE *ConfigureTransaction )( + __RPC__in IServiceTransactionConfigBase * This, + /* [in] */ CSC_TransactionConfig transactionConfig); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, IsolationLevel) + HRESULT ( STDMETHODCALLTYPE *IsolationLevel )( + __RPC__in IServiceTransactionConfigBase * This, + /* [in] */ COMAdminTxIsolationLevelOptions option); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, TransactionTimeout) + HRESULT ( STDMETHODCALLTYPE *TransactionTimeout )( + __RPC__in IServiceTransactionConfigBase * This, + /* [in] */ ULONG ulTimeoutSec); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, BringYourOwnTransaction) + HRESULT ( STDMETHODCALLTYPE *BringYourOwnTransaction )( + __RPC__in IServiceTransactionConfigBase * This, + /* [string][in] */ __RPC__in_string LPCWSTR szTipURL); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, NewTransactionDescription) + HRESULT ( STDMETHODCALLTYPE *NewTransactionDescription )( + __RPC__in IServiceTransactionConfigBase * This, + /* [string][in] */ __RPC__in_string LPCWSTR szTxDesc); + + END_INTERFACE + } IServiceTransactionConfigBaseVtbl; + + interface IServiceTransactionConfigBase + { + CONST_VTBL struct IServiceTransactionConfigBaseVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceTransactionConfigBase_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceTransactionConfigBase_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceTransactionConfigBase_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceTransactionConfigBase_ConfigureTransaction(This,transactionConfig) \ + ( (This)->lpVtbl -> ConfigureTransaction(This,transactionConfig) ) + +#define IServiceTransactionConfigBase_IsolationLevel(This,option) \ + ( (This)->lpVtbl -> IsolationLevel(This,option) ) + +#define IServiceTransactionConfigBase_TransactionTimeout(This,ulTimeoutSec) \ + ( (This)->lpVtbl -> TransactionTimeout(This,ulTimeoutSec) ) + +#define IServiceTransactionConfigBase_BringYourOwnTransaction(This,szTipURL) \ + ( (This)->lpVtbl -> BringYourOwnTransaction(This,szTipURL) ) + +#define IServiceTransactionConfigBase_NewTransactionDescription(This,szTxDesc) \ + ( (This)->lpVtbl -> NewTransactionDescription(This,szTxDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceTransactionConfigBase_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceTransactionConfig_INTERFACE_DEFINED__ +#define __IServiceTransactionConfig_INTERFACE_DEFINED__ + +/* interface IServiceTransactionConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceTransactionConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("59f4c2a3-d3d7-4a31-b6e4-6ab3177c50b9") + IServiceTransactionConfig : public IServiceTransactionConfigBase + { + public: + virtual HRESULT STDMETHODCALLTYPE ConfigureBYOT( + /* [in] */ __RPC__in_opt ITransaction *pITxByot) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceTransactionConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceTransactionConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceTransactionConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceTransactionConfig * This); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, ConfigureTransaction) + HRESULT ( STDMETHODCALLTYPE *ConfigureTransaction )( + __RPC__in IServiceTransactionConfig * This, + /* [in] */ CSC_TransactionConfig transactionConfig); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, IsolationLevel) + HRESULT ( STDMETHODCALLTYPE *IsolationLevel )( + __RPC__in IServiceTransactionConfig * This, + /* [in] */ COMAdminTxIsolationLevelOptions option); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, TransactionTimeout) + HRESULT ( STDMETHODCALLTYPE *TransactionTimeout )( + __RPC__in IServiceTransactionConfig * This, + /* [in] */ ULONG ulTimeoutSec); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, BringYourOwnTransaction) + HRESULT ( STDMETHODCALLTYPE *BringYourOwnTransaction )( + __RPC__in IServiceTransactionConfig * This, + /* [string][in] */ __RPC__in_string LPCWSTR szTipURL); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, NewTransactionDescription) + HRESULT ( STDMETHODCALLTYPE *NewTransactionDescription )( + __RPC__in IServiceTransactionConfig * This, + /* [string][in] */ __RPC__in_string LPCWSTR szTxDesc); + + DECLSPEC_XFGVIRT(IServiceTransactionConfig, ConfigureBYOT) + HRESULT ( STDMETHODCALLTYPE *ConfigureBYOT )( + __RPC__in IServiceTransactionConfig * This, + /* [in] */ __RPC__in_opt ITransaction *pITxByot); + + END_INTERFACE + } IServiceTransactionConfigVtbl; + + interface IServiceTransactionConfig + { + CONST_VTBL struct IServiceTransactionConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceTransactionConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceTransactionConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceTransactionConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceTransactionConfig_ConfigureTransaction(This,transactionConfig) \ + ( (This)->lpVtbl -> ConfigureTransaction(This,transactionConfig) ) + +#define IServiceTransactionConfig_IsolationLevel(This,option) \ + ( (This)->lpVtbl -> IsolationLevel(This,option) ) + +#define IServiceTransactionConfig_TransactionTimeout(This,ulTimeoutSec) \ + ( (This)->lpVtbl -> TransactionTimeout(This,ulTimeoutSec) ) + +#define IServiceTransactionConfig_BringYourOwnTransaction(This,szTipURL) \ + ( (This)->lpVtbl -> BringYourOwnTransaction(This,szTipURL) ) + +#define IServiceTransactionConfig_NewTransactionDescription(This,szTxDesc) \ + ( (This)->lpVtbl -> NewTransactionDescription(This,szTxDesc) ) + + +#define IServiceTransactionConfig_ConfigureBYOT(This,pITxByot) \ + ( (This)->lpVtbl -> ConfigureBYOT(This,pITxByot) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceTransactionConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceSysTxnConfig_INTERFACE_DEFINED__ +#define __IServiceSysTxnConfig_INTERFACE_DEFINED__ + +/* interface IServiceSysTxnConfig */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IServiceSysTxnConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("33CAF1A1-FCB8-472b-B45E-967448DED6D8") + IServiceSysTxnConfig : public IServiceTransactionConfig + { + public: + virtual HRESULT STDMETHODCALLTYPE ConfigureBYOTSysTxn( + /* [in] */ ITransactionProxy *pTxProxy) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceSysTxnConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IServiceSysTxnConfig * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IServiceSysTxnConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IServiceSysTxnConfig * This); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, ConfigureTransaction) + HRESULT ( STDMETHODCALLTYPE *ConfigureTransaction )( + IServiceSysTxnConfig * This, + /* [in] */ CSC_TransactionConfig transactionConfig); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, IsolationLevel) + HRESULT ( STDMETHODCALLTYPE *IsolationLevel )( + IServiceSysTxnConfig * This, + /* [in] */ COMAdminTxIsolationLevelOptions option); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, TransactionTimeout) + HRESULT ( STDMETHODCALLTYPE *TransactionTimeout )( + IServiceSysTxnConfig * This, + /* [in] */ ULONG ulTimeoutSec); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, BringYourOwnTransaction) + HRESULT ( STDMETHODCALLTYPE *BringYourOwnTransaction )( + IServiceSysTxnConfig * This, + /* [string][in] */ LPCWSTR szTipURL); + + DECLSPEC_XFGVIRT(IServiceTransactionConfigBase, NewTransactionDescription) + HRESULT ( STDMETHODCALLTYPE *NewTransactionDescription )( + IServiceSysTxnConfig * This, + /* [string][in] */ LPCWSTR szTxDesc); + + DECLSPEC_XFGVIRT(IServiceTransactionConfig, ConfigureBYOT) + HRESULT ( STDMETHODCALLTYPE *ConfigureBYOT )( + IServiceSysTxnConfig * This, + /* [in] */ ITransaction *pITxByot); + + DECLSPEC_XFGVIRT(IServiceSysTxnConfig, ConfigureBYOTSysTxn) + HRESULT ( STDMETHODCALLTYPE *ConfigureBYOTSysTxn )( + IServiceSysTxnConfig * This, + /* [in] */ ITransactionProxy *pTxProxy); + + END_INTERFACE + } IServiceSysTxnConfigVtbl; + + interface IServiceSysTxnConfig + { + CONST_VTBL struct IServiceSysTxnConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceSysTxnConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceSysTxnConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceSysTxnConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceSysTxnConfig_ConfigureTransaction(This,transactionConfig) \ + ( (This)->lpVtbl -> ConfigureTransaction(This,transactionConfig) ) + +#define IServiceSysTxnConfig_IsolationLevel(This,option) \ + ( (This)->lpVtbl -> IsolationLevel(This,option) ) + +#define IServiceSysTxnConfig_TransactionTimeout(This,ulTimeoutSec) \ + ( (This)->lpVtbl -> TransactionTimeout(This,ulTimeoutSec) ) + +#define IServiceSysTxnConfig_BringYourOwnTransaction(This,szTipURL) \ + ( (This)->lpVtbl -> BringYourOwnTransaction(This,szTipURL) ) + +#define IServiceSysTxnConfig_NewTransactionDescription(This,szTxDesc) \ + ( (This)->lpVtbl -> NewTransactionDescription(This,szTxDesc) ) + + +#define IServiceSysTxnConfig_ConfigureBYOT(This,pITxByot) \ + ( (This)->lpVtbl -> ConfigureBYOT(This,pITxByot) ) + + +#define IServiceSysTxnConfig_ConfigureBYOTSysTxn(This,pTxProxy) \ + ( (This)->lpVtbl -> ConfigureBYOTSysTxn(This,pTxProxy) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceSysTxnConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceSynchronizationConfig_INTERFACE_DEFINED__ +#define __IServiceSynchronizationConfig_INTERFACE_DEFINED__ + +/* interface IServiceSynchronizationConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceSynchronizationConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fd880e81-6dce-4c58-af83-a208846c0030") + IServiceSynchronizationConfig : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ConfigureSynchronization( + /* [in] */ CSC_SynchronizationConfig synchConfig) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceSynchronizationConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceSynchronizationConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceSynchronizationConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceSynchronizationConfig * This); + + DECLSPEC_XFGVIRT(IServiceSynchronizationConfig, ConfigureSynchronization) + HRESULT ( STDMETHODCALLTYPE *ConfigureSynchronization )( + __RPC__in IServiceSynchronizationConfig * This, + /* [in] */ CSC_SynchronizationConfig synchConfig); + + END_INTERFACE + } IServiceSynchronizationConfigVtbl; + + interface IServiceSynchronizationConfig + { + CONST_VTBL struct IServiceSynchronizationConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceSynchronizationConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceSynchronizationConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceSynchronizationConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceSynchronizationConfig_ConfigureSynchronization(This,synchConfig) \ + ( (This)->lpVtbl -> ConfigureSynchronization(This,synchConfig) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceSynchronizationConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceTrackerConfig_INTERFACE_DEFINED__ +#define __IServiceTrackerConfig_INTERFACE_DEFINED__ + +/* interface IServiceTrackerConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceTrackerConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6c3a3e1d-0ba6-4036-b76f-d0404db816c9") + IServiceTrackerConfig : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE TrackerConfig( + /* [in] */ CSC_TrackerConfig trackerConfig, + /* [string][in] */ __RPC__in_string LPCWSTR szTrackerAppName, + /* [string][in] */ __RPC__in_string LPCWSTR szTrackerCtxName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceTrackerConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceTrackerConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceTrackerConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceTrackerConfig * This); + + DECLSPEC_XFGVIRT(IServiceTrackerConfig, TrackerConfig) + HRESULT ( STDMETHODCALLTYPE *TrackerConfig )( + __RPC__in IServiceTrackerConfig * This, + /* [in] */ CSC_TrackerConfig trackerConfig, + /* [string][in] */ __RPC__in_string LPCWSTR szTrackerAppName, + /* [string][in] */ __RPC__in_string LPCWSTR szTrackerCtxName); + + END_INTERFACE + } IServiceTrackerConfigVtbl; + + interface IServiceTrackerConfig + { + CONST_VTBL struct IServiceTrackerConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceTrackerConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceTrackerConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceTrackerConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceTrackerConfig_TrackerConfig(This,trackerConfig,szTrackerAppName,szTrackerCtxName) \ + ( (This)->lpVtbl -> TrackerConfig(This,trackerConfig,szTrackerAppName,szTrackerCtxName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceTrackerConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServicePartitionConfig_INTERFACE_DEFINED__ +#define __IServicePartitionConfig_INTERFACE_DEFINED__ + +/* interface IServicePartitionConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServicePartitionConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("80182d03-5ea4-4831-ae97-55beffc2e590") + IServicePartitionConfig : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE PartitionConfig( + /* [in] */ CSC_PartitionConfig partitionConfig) = 0; + + virtual HRESULT STDMETHODCALLTYPE PartitionID( + /* [in] */ __RPC__in REFGUID guidPartitionID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServicePartitionConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServicePartitionConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServicePartitionConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServicePartitionConfig * This); + + DECLSPEC_XFGVIRT(IServicePartitionConfig, PartitionConfig) + HRESULT ( STDMETHODCALLTYPE *PartitionConfig )( + __RPC__in IServicePartitionConfig * This, + /* [in] */ CSC_PartitionConfig partitionConfig); + + DECLSPEC_XFGVIRT(IServicePartitionConfig, PartitionID) + HRESULT ( STDMETHODCALLTYPE *PartitionID )( + __RPC__in IServicePartitionConfig * This, + /* [in] */ __RPC__in REFGUID guidPartitionID); + + END_INTERFACE + } IServicePartitionConfigVtbl; + + interface IServicePartitionConfig + { + CONST_VTBL struct IServicePartitionConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServicePartitionConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServicePartitionConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServicePartitionConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServicePartitionConfig_PartitionConfig(This,partitionConfig) \ + ( (This)->lpVtbl -> PartitionConfig(This,partitionConfig) ) + +#define IServicePartitionConfig_PartitionID(This,guidPartitionID) \ + ( (This)->lpVtbl -> PartitionID(This,guidPartitionID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServicePartitionConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceCall_INTERFACE_DEFINED__ +#define __IServiceCall_INTERFACE_DEFINED__ + +/* interface IServiceCall */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceCall; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BD3E2E12-42DD-40f4-A09A-95A50C58304B") + IServiceCall : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnCall( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceCallVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceCall * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceCall * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceCall * This); + + DECLSPEC_XFGVIRT(IServiceCall, OnCall) + HRESULT ( STDMETHODCALLTYPE *OnCall )( + __RPC__in IServiceCall * This); + + END_INTERFACE + } IServiceCallVtbl; + + interface IServiceCall + { + CONST_VTBL struct IServiceCallVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceCall_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceCall_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceCall_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceCall_OnCall(This) \ + ( (This)->lpVtbl -> OnCall(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceCall_INTERFACE_DEFINED__ */ + + +#ifndef __IAsyncErrorNotify_INTERFACE_DEFINED__ +#define __IAsyncErrorNotify_INTERFACE_DEFINED__ + +/* interface IAsyncErrorNotify */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAsyncErrorNotify; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FE6777FB-A674-4177-8F32-6D707E113484") + IAsyncErrorNotify : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnError( + HRESULT hr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAsyncErrorNotifyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAsyncErrorNotify * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAsyncErrorNotify * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAsyncErrorNotify * This); + + DECLSPEC_XFGVIRT(IAsyncErrorNotify, OnError) + HRESULT ( STDMETHODCALLTYPE *OnError )( + __RPC__in IAsyncErrorNotify * This, + HRESULT hr); + + END_INTERFACE + } IAsyncErrorNotifyVtbl; + + interface IAsyncErrorNotify + { + CONST_VTBL struct IAsyncErrorNotifyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAsyncErrorNotify_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAsyncErrorNotify_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAsyncErrorNotify_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAsyncErrorNotify_OnError(This,hr) \ + ( (This)->lpVtbl -> OnError(This,hr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAsyncErrorNotify_INTERFACE_DEFINED__ */ + + +#ifndef __IServiceActivity_INTERFACE_DEFINED__ +#define __IServiceActivity_INTERFACE_DEFINED__ + +/* interface IServiceActivity */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IServiceActivity; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("67532E0C-9E2F-4450-A354-035633944E17") + IServiceActivity : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SynchronousCall( + /* [in] */ __RPC__in_opt IServiceCall *pIServiceCall) = 0; + + virtual HRESULT STDMETHODCALLTYPE AsynchronousCall( + /* [in] */ __RPC__in_opt IServiceCall *pIServiceCall) = 0; + + virtual HRESULT STDMETHODCALLTYPE BindToCurrentThread( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnbindFromThread( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServiceActivityVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IServiceActivity * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IServiceActivity * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IServiceActivity * This); + + DECLSPEC_XFGVIRT(IServiceActivity, SynchronousCall) + HRESULT ( STDMETHODCALLTYPE *SynchronousCall )( + __RPC__in IServiceActivity * This, + /* [in] */ __RPC__in_opt IServiceCall *pIServiceCall); + + DECLSPEC_XFGVIRT(IServiceActivity, AsynchronousCall) + HRESULT ( STDMETHODCALLTYPE *AsynchronousCall )( + __RPC__in IServiceActivity * This, + /* [in] */ __RPC__in_opt IServiceCall *pIServiceCall); + + DECLSPEC_XFGVIRT(IServiceActivity, BindToCurrentThread) + HRESULT ( STDMETHODCALLTYPE *BindToCurrentThread )( + __RPC__in IServiceActivity * This); + + DECLSPEC_XFGVIRT(IServiceActivity, UnbindFromThread) + HRESULT ( STDMETHODCALLTYPE *UnbindFromThread )( + __RPC__in IServiceActivity * This); + + END_INTERFACE + } IServiceActivityVtbl; + + interface IServiceActivity + { + CONST_VTBL struct IServiceActivityVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServiceActivity_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServiceActivity_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServiceActivity_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServiceActivity_SynchronousCall(This,pIServiceCall) \ + ( (This)->lpVtbl -> SynchronousCall(This,pIServiceCall) ) + +#define IServiceActivity_AsynchronousCall(This,pIServiceCall) \ + ( (This)->lpVtbl -> AsynchronousCall(This,pIServiceCall) ) + +#define IServiceActivity_BindToCurrentThread(This) \ + ( (This)->lpVtbl -> BindToCurrentThread(This) ) + +#define IServiceActivity_UnbindFromThread(This) \ + ( (This)->lpVtbl -> UnbindFromThread(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServiceActivity_INTERFACE_DEFINED__ */ + + +#ifndef __IThreadPoolKnobs_INTERFACE_DEFINED__ +#define __IThreadPoolKnobs_INTERFACE_DEFINED__ + +/* interface IThreadPoolKnobs */ +/* [unique][local][uuid][object] */ + + +EXTERN_C const IID IID_IThreadPoolKnobs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51372af7-cae7-11cf-be81-00aa00a2fa25") + IThreadPoolKnobs : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetMaxThreads( + long *plcMaxThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentThreads( + long *plcCurrentThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMaxThreads( + long lcMaxThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDeleteDelay( + long *pmsecDeleteDelay) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDeleteDelay( + long msecDeleteDelay) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMaxQueuedRequests( + long *plcMaxQueuedRequests) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentQueuedRequests( + long *plcCurrentQueuedRequests) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMaxQueuedRequests( + long lcMaxQueuedRequests) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMinThreads( + long lcMinThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetQueueDepth( + long lcQueueDepth) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IThreadPoolKnobsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IThreadPoolKnobs * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IThreadPoolKnobs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IThreadPoolKnobs * This); + + DECLSPEC_XFGVIRT(IThreadPoolKnobs, GetMaxThreads) + HRESULT ( STDMETHODCALLTYPE *GetMaxThreads )( + IThreadPoolKnobs * This, + long *plcMaxThreads); + + DECLSPEC_XFGVIRT(IThreadPoolKnobs, GetCurrentThreads) + HRESULT ( STDMETHODCALLTYPE *GetCurrentThreads )( + IThreadPoolKnobs * This, + long *plcCurrentThreads); + + DECLSPEC_XFGVIRT(IThreadPoolKnobs, SetMaxThreads) + HRESULT ( STDMETHODCALLTYPE *SetMaxThreads )( + IThreadPoolKnobs * This, + long lcMaxThreads); + + DECLSPEC_XFGVIRT(IThreadPoolKnobs, GetDeleteDelay) + HRESULT ( STDMETHODCALLTYPE *GetDeleteDelay )( + IThreadPoolKnobs * This, + long *pmsecDeleteDelay); + + DECLSPEC_XFGVIRT(IThreadPoolKnobs, SetDeleteDelay) + HRESULT ( STDMETHODCALLTYPE *SetDeleteDelay )( + IThreadPoolKnobs * This, + long msecDeleteDelay); + + DECLSPEC_XFGVIRT(IThreadPoolKnobs, GetMaxQueuedRequests) + HRESULT ( STDMETHODCALLTYPE *GetMaxQueuedRequests )( + IThreadPoolKnobs * This, + long *plcMaxQueuedRequests); + + DECLSPEC_XFGVIRT(IThreadPoolKnobs, GetCurrentQueuedRequests) + HRESULT ( STDMETHODCALLTYPE *GetCurrentQueuedRequests )( + IThreadPoolKnobs * This, + long *plcCurrentQueuedRequests); + + DECLSPEC_XFGVIRT(IThreadPoolKnobs, SetMaxQueuedRequests) + HRESULT ( STDMETHODCALLTYPE *SetMaxQueuedRequests )( + IThreadPoolKnobs * This, + long lcMaxQueuedRequests); + + DECLSPEC_XFGVIRT(IThreadPoolKnobs, SetMinThreads) + HRESULT ( STDMETHODCALLTYPE *SetMinThreads )( + IThreadPoolKnobs * This, + long lcMinThreads); + + DECLSPEC_XFGVIRT(IThreadPoolKnobs, SetQueueDepth) + HRESULT ( STDMETHODCALLTYPE *SetQueueDepth )( + IThreadPoolKnobs * This, + long lcQueueDepth); + + END_INTERFACE + } IThreadPoolKnobsVtbl; + + interface IThreadPoolKnobs + { + CONST_VTBL struct IThreadPoolKnobsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IThreadPoolKnobs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IThreadPoolKnobs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IThreadPoolKnobs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IThreadPoolKnobs_GetMaxThreads(This,plcMaxThreads) \ + ( (This)->lpVtbl -> GetMaxThreads(This,plcMaxThreads) ) + +#define IThreadPoolKnobs_GetCurrentThreads(This,plcCurrentThreads) \ + ( (This)->lpVtbl -> GetCurrentThreads(This,plcCurrentThreads) ) + +#define IThreadPoolKnobs_SetMaxThreads(This,lcMaxThreads) \ + ( (This)->lpVtbl -> SetMaxThreads(This,lcMaxThreads) ) + +#define IThreadPoolKnobs_GetDeleteDelay(This,pmsecDeleteDelay) \ + ( (This)->lpVtbl -> GetDeleteDelay(This,pmsecDeleteDelay) ) + +#define IThreadPoolKnobs_SetDeleteDelay(This,msecDeleteDelay) \ + ( (This)->lpVtbl -> SetDeleteDelay(This,msecDeleteDelay) ) + +#define IThreadPoolKnobs_GetMaxQueuedRequests(This,plcMaxQueuedRequests) \ + ( (This)->lpVtbl -> GetMaxQueuedRequests(This,plcMaxQueuedRequests) ) + +#define IThreadPoolKnobs_GetCurrentQueuedRequests(This,plcCurrentQueuedRequests) \ + ( (This)->lpVtbl -> GetCurrentQueuedRequests(This,plcCurrentQueuedRequests) ) + +#define IThreadPoolKnobs_SetMaxQueuedRequests(This,lcMaxQueuedRequests) \ + ( (This)->lpVtbl -> SetMaxQueuedRequests(This,lcMaxQueuedRequests) ) + +#define IThreadPoolKnobs_SetMinThreads(This,lcMinThreads) \ + ( (This)->lpVtbl -> SetMinThreads(This,lcMinThreads) ) + +#define IThreadPoolKnobs_SetQueueDepth(This,lcQueueDepth) \ + ( (This)->lpVtbl -> SetQueueDepth(This,lcQueueDepth) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IThreadPoolKnobs_INTERFACE_DEFINED__ */ + + +#ifndef __IComStaThreadPoolKnobs_INTERFACE_DEFINED__ +#define __IComStaThreadPoolKnobs_INTERFACE_DEFINED__ + +/* interface IComStaThreadPoolKnobs */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IComStaThreadPoolKnobs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("324B64FA-33B6-11d2-98B7-00C04F8EE1C4") + IComStaThreadPoolKnobs : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetMinThreadCount( + DWORD minThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMinThreadCount( + /* [out] */ __RPC__out DWORD *minThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMaxThreadCount( + DWORD maxThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMaxThreadCount( + /* [out] */ __RPC__out DWORD *maxThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetActivityPerThread( + DWORD activitiesPerThread) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetActivityPerThread( + /* [out] */ __RPC__out DWORD *activitiesPerThread) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetActivityRatio( + DOUBLE activityRatio) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetActivityRatio( + /* [out] */ __RPC__out DOUBLE *activityRatio) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetThreadCount( + /* [out] */ __RPC__out DWORD *pdwThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetQueueDepth( + /* [out] */ __RPC__out DWORD *pdwQDepth) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetQueueDepth( + /* [in] */ long dwQDepth) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComStaThreadPoolKnobsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComStaThreadPoolKnobs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComStaThreadPoolKnobs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComStaThreadPoolKnobs * This); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, SetMinThreadCount) + HRESULT ( STDMETHODCALLTYPE *SetMinThreadCount )( + __RPC__in IComStaThreadPoolKnobs * This, + DWORD minThreads); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetMinThreadCount) + HRESULT ( STDMETHODCALLTYPE *GetMinThreadCount )( + __RPC__in IComStaThreadPoolKnobs * This, + /* [out] */ __RPC__out DWORD *minThreads); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, SetMaxThreadCount) + HRESULT ( STDMETHODCALLTYPE *SetMaxThreadCount )( + __RPC__in IComStaThreadPoolKnobs * This, + DWORD maxThreads); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetMaxThreadCount) + HRESULT ( STDMETHODCALLTYPE *GetMaxThreadCount )( + __RPC__in IComStaThreadPoolKnobs * This, + /* [out] */ __RPC__out DWORD *maxThreads); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, SetActivityPerThread) + HRESULT ( STDMETHODCALLTYPE *SetActivityPerThread )( + __RPC__in IComStaThreadPoolKnobs * This, + DWORD activitiesPerThread); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetActivityPerThread) + HRESULT ( STDMETHODCALLTYPE *GetActivityPerThread )( + __RPC__in IComStaThreadPoolKnobs * This, + /* [out] */ __RPC__out DWORD *activitiesPerThread); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, SetActivityRatio) + HRESULT ( STDMETHODCALLTYPE *SetActivityRatio )( + __RPC__in IComStaThreadPoolKnobs * This, + DOUBLE activityRatio); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetActivityRatio) + HRESULT ( STDMETHODCALLTYPE *GetActivityRatio )( + __RPC__in IComStaThreadPoolKnobs * This, + /* [out] */ __RPC__out DOUBLE *activityRatio); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetThreadCount) + HRESULT ( STDMETHODCALLTYPE *GetThreadCount )( + __RPC__in IComStaThreadPoolKnobs * This, + /* [out] */ __RPC__out DWORD *pdwThreads); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetQueueDepth) + HRESULT ( STDMETHODCALLTYPE *GetQueueDepth )( + __RPC__in IComStaThreadPoolKnobs * This, + /* [out] */ __RPC__out DWORD *pdwQDepth); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, SetQueueDepth) + HRESULT ( STDMETHODCALLTYPE *SetQueueDepth )( + __RPC__in IComStaThreadPoolKnobs * This, + /* [in] */ long dwQDepth); + + END_INTERFACE + } IComStaThreadPoolKnobsVtbl; + + interface IComStaThreadPoolKnobs + { + CONST_VTBL struct IComStaThreadPoolKnobsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComStaThreadPoolKnobs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComStaThreadPoolKnobs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComStaThreadPoolKnobs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComStaThreadPoolKnobs_SetMinThreadCount(This,minThreads) \ + ( (This)->lpVtbl -> SetMinThreadCount(This,minThreads) ) + +#define IComStaThreadPoolKnobs_GetMinThreadCount(This,minThreads) \ + ( (This)->lpVtbl -> GetMinThreadCount(This,minThreads) ) + +#define IComStaThreadPoolKnobs_SetMaxThreadCount(This,maxThreads) \ + ( (This)->lpVtbl -> SetMaxThreadCount(This,maxThreads) ) + +#define IComStaThreadPoolKnobs_GetMaxThreadCount(This,maxThreads) \ + ( (This)->lpVtbl -> GetMaxThreadCount(This,maxThreads) ) + +#define IComStaThreadPoolKnobs_SetActivityPerThread(This,activitiesPerThread) \ + ( (This)->lpVtbl -> SetActivityPerThread(This,activitiesPerThread) ) + +#define IComStaThreadPoolKnobs_GetActivityPerThread(This,activitiesPerThread) \ + ( (This)->lpVtbl -> GetActivityPerThread(This,activitiesPerThread) ) + +#define IComStaThreadPoolKnobs_SetActivityRatio(This,activityRatio) \ + ( (This)->lpVtbl -> SetActivityRatio(This,activityRatio) ) + +#define IComStaThreadPoolKnobs_GetActivityRatio(This,activityRatio) \ + ( (This)->lpVtbl -> GetActivityRatio(This,activityRatio) ) + +#define IComStaThreadPoolKnobs_GetThreadCount(This,pdwThreads) \ + ( (This)->lpVtbl -> GetThreadCount(This,pdwThreads) ) + +#define IComStaThreadPoolKnobs_GetQueueDepth(This,pdwQDepth) \ + ( (This)->lpVtbl -> GetQueueDepth(This,pdwQDepth) ) + +#define IComStaThreadPoolKnobs_SetQueueDepth(This,dwQDepth) \ + ( (This)->lpVtbl -> SetQueueDepth(This,dwQDepth) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComStaThreadPoolKnobs_INTERFACE_DEFINED__ */ + + +#ifndef __IComMtaThreadPoolKnobs_INTERFACE_DEFINED__ +#define __IComMtaThreadPoolKnobs_INTERFACE_DEFINED__ + +/* interface IComMtaThreadPoolKnobs */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IComMtaThreadPoolKnobs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F9A76D2E-76A5-43eb-A0C4-49BEC8E48480") + IComMtaThreadPoolKnobs : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE MTASetMaxThreadCount( + DWORD dwMaxThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE MTAGetMaxThreadCount( + /* [out] */ __RPC__out DWORD *pdwMaxThreads) = 0; + + virtual HRESULT STDMETHODCALLTYPE MTASetThrottleValue( + DWORD dwThrottle) = 0; + + virtual HRESULT STDMETHODCALLTYPE MTAGetThrottleValue( + /* [out] */ __RPC__out DWORD *pdwThrottle) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComMtaThreadPoolKnobsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComMtaThreadPoolKnobs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComMtaThreadPoolKnobs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComMtaThreadPoolKnobs * This); + + DECLSPEC_XFGVIRT(IComMtaThreadPoolKnobs, MTASetMaxThreadCount) + HRESULT ( STDMETHODCALLTYPE *MTASetMaxThreadCount )( + __RPC__in IComMtaThreadPoolKnobs * This, + DWORD dwMaxThreads); + + DECLSPEC_XFGVIRT(IComMtaThreadPoolKnobs, MTAGetMaxThreadCount) + HRESULT ( STDMETHODCALLTYPE *MTAGetMaxThreadCount )( + __RPC__in IComMtaThreadPoolKnobs * This, + /* [out] */ __RPC__out DWORD *pdwMaxThreads); + + DECLSPEC_XFGVIRT(IComMtaThreadPoolKnobs, MTASetThrottleValue) + HRESULT ( STDMETHODCALLTYPE *MTASetThrottleValue )( + __RPC__in IComMtaThreadPoolKnobs * This, + DWORD dwThrottle); + + DECLSPEC_XFGVIRT(IComMtaThreadPoolKnobs, MTAGetThrottleValue) + HRESULT ( STDMETHODCALLTYPE *MTAGetThrottleValue )( + __RPC__in IComMtaThreadPoolKnobs * This, + /* [out] */ __RPC__out DWORD *pdwThrottle); + + END_INTERFACE + } IComMtaThreadPoolKnobsVtbl; + + interface IComMtaThreadPoolKnobs + { + CONST_VTBL struct IComMtaThreadPoolKnobsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComMtaThreadPoolKnobs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComMtaThreadPoolKnobs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComMtaThreadPoolKnobs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComMtaThreadPoolKnobs_MTASetMaxThreadCount(This,dwMaxThreads) \ + ( (This)->lpVtbl -> MTASetMaxThreadCount(This,dwMaxThreads) ) + +#define IComMtaThreadPoolKnobs_MTAGetMaxThreadCount(This,pdwMaxThreads) \ + ( (This)->lpVtbl -> MTAGetMaxThreadCount(This,pdwMaxThreads) ) + +#define IComMtaThreadPoolKnobs_MTASetThrottleValue(This,dwThrottle) \ + ( (This)->lpVtbl -> MTASetThrottleValue(This,dwThrottle) ) + +#define IComMtaThreadPoolKnobs_MTAGetThrottleValue(This,pdwThrottle) \ + ( (This)->lpVtbl -> MTAGetThrottleValue(This,pdwThrottle) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComMtaThreadPoolKnobs_INTERFACE_DEFINED__ */ + + +#ifndef __IComStaThreadPoolKnobs2_INTERFACE_DEFINED__ +#define __IComStaThreadPoolKnobs2_INTERFACE_DEFINED__ + +/* interface IComStaThreadPoolKnobs2 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IComStaThreadPoolKnobs2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("73707523-FF9A-4974-BF84-2108DC213740") + IComStaThreadPoolKnobs2 : public IComStaThreadPoolKnobs + { + public: + virtual HRESULT STDMETHODCALLTYPE GetMaxCPULoad( + /* [out] */ __RPC__out DWORD *pdwLoad) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMaxCPULoad( + long pdwLoad) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCPUMetricEnabled( + /* [out] */ __RPC__out BOOL *pbMetricEnabled) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCPUMetricEnabled( + BOOL bMetricEnabled) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCreateThreadsAggressively( + /* [out] */ __RPC__out BOOL *pbMetricEnabled) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCreateThreadsAggressively( + BOOL bMetricEnabled) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMaxCSR( + /* [out] */ __RPC__out DWORD *pdwCSR) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMaxCSR( + long dwCSR) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetWaitTimeForThreadCleanup( + /* [out] */ __RPC__out DWORD *pdwThreadCleanupWaitTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetWaitTimeForThreadCleanup( + long dwThreadCleanupWaitTime) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IComStaThreadPoolKnobs2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IComStaThreadPoolKnobs2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IComStaThreadPoolKnobs2 * This); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, SetMinThreadCount) + HRESULT ( STDMETHODCALLTYPE *SetMinThreadCount )( + __RPC__in IComStaThreadPoolKnobs2 * This, + DWORD minThreads); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetMinThreadCount) + HRESULT ( STDMETHODCALLTYPE *GetMinThreadCount )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out DWORD *minThreads); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, SetMaxThreadCount) + HRESULT ( STDMETHODCALLTYPE *SetMaxThreadCount )( + __RPC__in IComStaThreadPoolKnobs2 * This, + DWORD maxThreads); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetMaxThreadCount) + HRESULT ( STDMETHODCALLTYPE *GetMaxThreadCount )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out DWORD *maxThreads); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, SetActivityPerThread) + HRESULT ( STDMETHODCALLTYPE *SetActivityPerThread )( + __RPC__in IComStaThreadPoolKnobs2 * This, + DWORD activitiesPerThread); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetActivityPerThread) + HRESULT ( STDMETHODCALLTYPE *GetActivityPerThread )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out DWORD *activitiesPerThread); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, SetActivityRatio) + HRESULT ( STDMETHODCALLTYPE *SetActivityRatio )( + __RPC__in IComStaThreadPoolKnobs2 * This, + DOUBLE activityRatio); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetActivityRatio) + HRESULT ( STDMETHODCALLTYPE *GetActivityRatio )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out DOUBLE *activityRatio); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetThreadCount) + HRESULT ( STDMETHODCALLTYPE *GetThreadCount )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out DWORD *pdwThreads); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, GetQueueDepth) + HRESULT ( STDMETHODCALLTYPE *GetQueueDepth )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out DWORD *pdwQDepth); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs, SetQueueDepth) + HRESULT ( STDMETHODCALLTYPE *SetQueueDepth )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [in] */ long dwQDepth); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs2, GetMaxCPULoad) + HRESULT ( STDMETHODCALLTYPE *GetMaxCPULoad )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out DWORD *pdwLoad); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs2, SetMaxCPULoad) + HRESULT ( STDMETHODCALLTYPE *SetMaxCPULoad )( + __RPC__in IComStaThreadPoolKnobs2 * This, + long pdwLoad); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs2, GetCPUMetricEnabled) + HRESULT ( STDMETHODCALLTYPE *GetCPUMetricEnabled )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out BOOL *pbMetricEnabled); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs2, SetCPUMetricEnabled) + HRESULT ( STDMETHODCALLTYPE *SetCPUMetricEnabled )( + __RPC__in IComStaThreadPoolKnobs2 * This, + BOOL bMetricEnabled); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs2, GetCreateThreadsAggressively) + HRESULT ( STDMETHODCALLTYPE *GetCreateThreadsAggressively )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out BOOL *pbMetricEnabled); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs2, SetCreateThreadsAggressively) + HRESULT ( STDMETHODCALLTYPE *SetCreateThreadsAggressively )( + __RPC__in IComStaThreadPoolKnobs2 * This, + BOOL bMetricEnabled); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs2, GetMaxCSR) + HRESULT ( STDMETHODCALLTYPE *GetMaxCSR )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out DWORD *pdwCSR); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs2, SetMaxCSR) + HRESULT ( STDMETHODCALLTYPE *SetMaxCSR )( + __RPC__in IComStaThreadPoolKnobs2 * This, + long dwCSR); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs2, GetWaitTimeForThreadCleanup) + HRESULT ( STDMETHODCALLTYPE *GetWaitTimeForThreadCleanup )( + __RPC__in IComStaThreadPoolKnobs2 * This, + /* [out] */ __RPC__out DWORD *pdwThreadCleanupWaitTime); + + DECLSPEC_XFGVIRT(IComStaThreadPoolKnobs2, SetWaitTimeForThreadCleanup) + HRESULT ( STDMETHODCALLTYPE *SetWaitTimeForThreadCleanup )( + __RPC__in IComStaThreadPoolKnobs2 * This, + long dwThreadCleanupWaitTime); + + END_INTERFACE + } IComStaThreadPoolKnobs2Vtbl; + + interface IComStaThreadPoolKnobs2 + { + CONST_VTBL struct IComStaThreadPoolKnobs2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IComStaThreadPoolKnobs2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IComStaThreadPoolKnobs2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IComStaThreadPoolKnobs2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IComStaThreadPoolKnobs2_SetMinThreadCount(This,minThreads) \ + ( (This)->lpVtbl -> SetMinThreadCount(This,minThreads) ) + +#define IComStaThreadPoolKnobs2_GetMinThreadCount(This,minThreads) \ + ( (This)->lpVtbl -> GetMinThreadCount(This,minThreads) ) + +#define IComStaThreadPoolKnobs2_SetMaxThreadCount(This,maxThreads) \ + ( (This)->lpVtbl -> SetMaxThreadCount(This,maxThreads) ) + +#define IComStaThreadPoolKnobs2_GetMaxThreadCount(This,maxThreads) \ + ( (This)->lpVtbl -> GetMaxThreadCount(This,maxThreads) ) + +#define IComStaThreadPoolKnobs2_SetActivityPerThread(This,activitiesPerThread) \ + ( (This)->lpVtbl -> SetActivityPerThread(This,activitiesPerThread) ) + +#define IComStaThreadPoolKnobs2_GetActivityPerThread(This,activitiesPerThread) \ + ( (This)->lpVtbl -> GetActivityPerThread(This,activitiesPerThread) ) + +#define IComStaThreadPoolKnobs2_SetActivityRatio(This,activityRatio) \ + ( (This)->lpVtbl -> SetActivityRatio(This,activityRatio) ) + +#define IComStaThreadPoolKnobs2_GetActivityRatio(This,activityRatio) \ + ( (This)->lpVtbl -> GetActivityRatio(This,activityRatio) ) + +#define IComStaThreadPoolKnobs2_GetThreadCount(This,pdwThreads) \ + ( (This)->lpVtbl -> GetThreadCount(This,pdwThreads) ) + +#define IComStaThreadPoolKnobs2_GetQueueDepth(This,pdwQDepth) \ + ( (This)->lpVtbl -> GetQueueDepth(This,pdwQDepth) ) + +#define IComStaThreadPoolKnobs2_SetQueueDepth(This,dwQDepth) \ + ( (This)->lpVtbl -> SetQueueDepth(This,dwQDepth) ) + + +#define IComStaThreadPoolKnobs2_GetMaxCPULoad(This,pdwLoad) \ + ( (This)->lpVtbl -> GetMaxCPULoad(This,pdwLoad) ) + +#define IComStaThreadPoolKnobs2_SetMaxCPULoad(This,pdwLoad) \ + ( (This)->lpVtbl -> SetMaxCPULoad(This,pdwLoad) ) + +#define IComStaThreadPoolKnobs2_GetCPUMetricEnabled(This,pbMetricEnabled) \ + ( (This)->lpVtbl -> GetCPUMetricEnabled(This,pbMetricEnabled) ) + +#define IComStaThreadPoolKnobs2_SetCPUMetricEnabled(This,bMetricEnabled) \ + ( (This)->lpVtbl -> SetCPUMetricEnabled(This,bMetricEnabled) ) + +#define IComStaThreadPoolKnobs2_GetCreateThreadsAggressively(This,pbMetricEnabled) \ + ( (This)->lpVtbl -> GetCreateThreadsAggressively(This,pbMetricEnabled) ) + +#define IComStaThreadPoolKnobs2_SetCreateThreadsAggressively(This,bMetricEnabled) \ + ( (This)->lpVtbl -> SetCreateThreadsAggressively(This,bMetricEnabled) ) + +#define IComStaThreadPoolKnobs2_GetMaxCSR(This,pdwCSR) \ + ( (This)->lpVtbl -> GetMaxCSR(This,pdwCSR) ) + +#define IComStaThreadPoolKnobs2_SetMaxCSR(This,dwCSR) \ + ( (This)->lpVtbl -> SetMaxCSR(This,dwCSR) ) + +#define IComStaThreadPoolKnobs2_GetWaitTimeForThreadCleanup(This,pdwThreadCleanupWaitTime) \ + ( (This)->lpVtbl -> GetWaitTimeForThreadCleanup(This,pdwThreadCleanupWaitTime) ) + +#define IComStaThreadPoolKnobs2_SetWaitTimeForThreadCleanup(This,dwThreadCleanupWaitTime) \ + ( (This)->lpVtbl -> SetWaitTimeForThreadCleanup(This,dwThreadCleanupWaitTime) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IComStaThreadPoolKnobs2_INTERFACE_DEFINED__ */ + + +#ifndef __IProcessInitializer_INTERFACE_DEFINED__ +#define __IProcessInitializer_INTERFACE_DEFINED__ + +/* interface IProcessInitializer */ +/* [oleautomation][uuid][unique][object] */ + + +EXTERN_C const IID IID_IProcessInitializer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1113f52d-dc7f-4943-aed6-88d04027e32a") + IProcessInitializer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Startup( + /* [in] */ __RPC__in_opt IUnknown *punkProcessControl) = 0; + + virtual HRESULT STDMETHODCALLTYPE Shutdown( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProcessInitializerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProcessInitializer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProcessInitializer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProcessInitializer * This); + + DECLSPEC_XFGVIRT(IProcessInitializer, Startup) + HRESULT ( STDMETHODCALLTYPE *Startup )( + __RPC__in IProcessInitializer * This, + /* [in] */ __RPC__in_opt IUnknown *punkProcessControl); + + DECLSPEC_XFGVIRT(IProcessInitializer, Shutdown) + HRESULT ( STDMETHODCALLTYPE *Shutdown )( + __RPC__in IProcessInitializer * This); + + END_INTERFACE + } IProcessInitializerVtbl; + + interface IProcessInitializer + { + CONST_VTBL struct IProcessInitializerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProcessInitializer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProcessInitializer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProcessInitializer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProcessInitializer_Startup(This,punkProcessControl) \ + ( (This)->lpVtbl -> Startup(This,punkProcessControl) ) + +#define IProcessInitializer_Shutdown(This) \ + ( (This)->lpVtbl -> Shutdown(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProcessInitializer_INTERFACE_DEFINED__ */ + + +#ifndef __IServicePoolConfig_INTERFACE_DEFINED__ +#define __IServicePoolConfig_INTERFACE_DEFINED__ + +/* interface IServicePoolConfig */ +/* [object][uuid][unique][local] */ + + +EXTERN_C const IID IID_IServicePoolConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a9690656-5bca-470c-8451-250c1f43a33e") + IServicePoolConfig : public IUnknown + { + public: + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_MaxPoolSize( + /* [in] */ DWORD dwMaxPool) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MaxPoolSize( + /* [retval][out] */ DWORD *pdwMaxPool) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_MinPoolSize( + /* [in] */ DWORD dwMinPool) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MinPoolSize( + /* [retval][out] */ DWORD *pdwMinPool) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CreationTimeout( + /* [in] */ DWORD dwCreationTimeout) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CreationTimeout( + /* [retval][out] */ DWORD *pdwCreationTimeout) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_TransactionAffinity( + /* [in] */ BOOL fTxAffinity) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_TransactionAffinity( + /* [retval][out] */ BOOL *pfTxAffinity) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ClassFactory( + /* [in] */ IClassFactory *pFactory) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ClassFactory( + /* [retval][out] */ IClassFactory **pFactory) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServicePoolConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IServicePoolConfig * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IServicePoolConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IServicePoolConfig * This); + + DECLSPEC_XFGVIRT(IServicePoolConfig, put_MaxPoolSize) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxPoolSize )( + IServicePoolConfig * This, + /* [in] */ DWORD dwMaxPool); + + DECLSPEC_XFGVIRT(IServicePoolConfig, get_MaxPoolSize) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxPoolSize )( + IServicePoolConfig * This, + /* [retval][out] */ DWORD *pdwMaxPool); + + DECLSPEC_XFGVIRT(IServicePoolConfig, put_MinPoolSize) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinPoolSize )( + IServicePoolConfig * This, + /* [in] */ DWORD dwMinPool); + + DECLSPEC_XFGVIRT(IServicePoolConfig, get_MinPoolSize) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinPoolSize )( + IServicePoolConfig * This, + /* [retval][out] */ DWORD *pdwMinPool); + + DECLSPEC_XFGVIRT(IServicePoolConfig, put_CreationTimeout) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CreationTimeout )( + IServicePoolConfig * This, + /* [in] */ DWORD dwCreationTimeout); + + DECLSPEC_XFGVIRT(IServicePoolConfig, get_CreationTimeout) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTimeout )( + IServicePoolConfig * This, + /* [retval][out] */ DWORD *pdwCreationTimeout); + + DECLSPEC_XFGVIRT(IServicePoolConfig, put_TransactionAffinity) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_TransactionAffinity )( + IServicePoolConfig * This, + /* [in] */ BOOL fTxAffinity); + + DECLSPEC_XFGVIRT(IServicePoolConfig, get_TransactionAffinity) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransactionAffinity )( + IServicePoolConfig * This, + /* [retval][out] */ BOOL *pfTxAffinity); + + DECLSPEC_XFGVIRT(IServicePoolConfig, put_ClassFactory) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClassFactory )( + IServicePoolConfig * This, + /* [in] */ IClassFactory *pFactory); + + DECLSPEC_XFGVIRT(IServicePoolConfig, get_ClassFactory) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassFactory )( + IServicePoolConfig * This, + /* [retval][out] */ IClassFactory **pFactory); + + END_INTERFACE + } IServicePoolConfigVtbl; + + interface IServicePoolConfig + { + CONST_VTBL struct IServicePoolConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServicePoolConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServicePoolConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServicePoolConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServicePoolConfig_put_MaxPoolSize(This,dwMaxPool) \ + ( (This)->lpVtbl -> put_MaxPoolSize(This,dwMaxPool) ) + +#define IServicePoolConfig_get_MaxPoolSize(This,pdwMaxPool) \ + ( (This)->lpVtbl -> get_MaxPoolSize(This,pdwMaxPool) ) + +#define IServicePoolConfig_put_MinPoolSize(This,dwMinPool) \ + ( (This)->lpVtbl -> put_MinPoolSize(This,dwMinPool) ) + +#define IServicePoolConfig_get_MinPoolSize(This,pdwMinPool) \ + ( (This)->lpVtbl -> get_MinPoolSize(This,pdwMinPool) ) + +#define IServicePoolConfig_put_CreationTimeout(This,dwCreationTimeout) \ + ( (This)->lpVtbl -> put_CreationTimeout(This,dwCreationTimeout) ) + +#define IServicePoolConfig_get_CreationTimeout(This,pdwCreationTimeout) \ + ( (This)->lpVtbl -> get_CreationTimeout(This,pdwCreationTimeout) ) + +#define IServicePoolConfig_put_TransactionAffinity(This,fTxAffinity) \ + ( (This)->lpVtbl -> put_TransactionAffinity(This,fTxAffinity) ) + +#define IServicePoolConfig_get_TransactionAffinity(This,pfTxAffinity) \ + ( (This)->lpVtbl -> get_TransactionAffinity(This,pfTxAffinity) ) + +#define IServicePoolConfig_put_ClassFactory(This,pFactory) \ + ( (This)->lpVtbl -> put_ClassFactory(This,pFactory) ) + +#define IServicePoolConfig_get_ClassFactory(This,pFactory) \ + ( (This)->lpVtbl -> get_ClassFactory(This,pFactory) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServicePoolConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IServicePool_INTERFACE_DEFINED__ +#define __IServicePool_INTERFACE_DEFINED__ + +/* interface IServicePool */ +/* [object][uuid][unique][local] */ + + +EXTERN_C const IID IID_IServicePool; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b302df81-ea45-451e-99a2-09f9fd1b1e13") + IServicePool : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ IUnknown *pPoolConfig) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetObject( + REFIID riid, + /* [iid_is][out] */ void **ppv) = 0; + + virtual HRESULT STDMETHODCALLTYPE Shutdown( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IServicePoolVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IServicePool * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IServicePool * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IServicePool * This); + + DECLSPEC_XFGVIRT(IServicePool, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IServicePool * This, + /* [in] */ IUnknown *pPoolConfig); + + DECLSPEC_XFGVIRT(IServicePool, GetObject) + HRESULT ( STDMETHODCALLTYPE *GetObject )( + IServicePool * This, + REFIID riid, + /* [iid_is][out] */ void **ppv); + + DECLSPEC_XFGVIRT(IServicePool, Shutdown) + HRESULT ( STDMETHODCALLTYPE *Shutdown )( + IServicePool * This); + + END_INTERFACE + } IServicePoolVtbl; + + interface IServicePool + { + CONST_VTBL struct IServicePoolVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IServicePool_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IServicePool_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IServicePool_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IServicePool_Initialize(This,pPoolConfig) \ + ( (This)->lpVtbl -> Initialize(This,pPoolConfig) ) + +#define IServicePool_GetObject(This,riid,ppv) \ + ( (This)->lpVtbl -> GetObject(This,riid,ppv) ) + +#define IServicePool_Shutdown(This) \ + ( (This)->lpVtbl -> Shutdown(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IServicePool_INTERFACE_DEFINED__ */ + + +#ifndef __IManagedPooledObj_INTERFACE_DEFINED__ +#define __IManagedPooledObj_INTERFACE_DEFINED__ + +/* interface IManagedPooledObj */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IManagedPooledObj; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c5da4bea-1b42-4437-8926-b6a38860a770") + IManagedPooledObj : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetHeld( + /* [in] */ BOOL m_bHeld) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IManagedPooledObjVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IManagedPooledObj * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IManagedPooledObj * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IManagedPooledObj * This); + + DECLSPEC_XFGVIRT(IManagedPooledObj, SetHeld) + HRESULT ( STDMETHODCALLTYPE *SetHeld )( + IManagedPooledObj * This, + /* [in] */ BOOL m_bHeld); + + END_INTERFACE + } IManagedPooledObjVtbl; + + interface IManagedPooledObj + { + CONST_VTBL struct IManagedPooledObjVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IManagedPooledObj_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IManagedPooledObj_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IManagedPooledObj_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IManagedPooledObj_SetHeld(This,m_bHeld) \ + ( (This)->lpVtbl -> SetHeld(This,m_bHeld) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IManagedPooledObj_INTERFACE_DEFINED__ */ + + +#ifndef __IManagedPoolAction_INTERFACE_DEFINED__ +#define __IManagedPoolAction_INTERFACE_DEFINED__ + +/* interface IManagedPoolAction */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IManagedPoolAction; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("da91b74e-5388-4783-949d-c1cd5fb00506") + IManagedPoolAction : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE LastRelease( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IManagedPoolActionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IManagedPoolAction * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IManagedPoolAction * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IManagedPoolAction * This); + + DECLSPEC_XFGVIRT(IManagedPoolAction, LastRelease) + HRESULT ( STDMETHODCALLTYPE *LastRelease )( + IManagedPoolAction * This); + + END_INTERFACE + } IManagedPoolActionVtbl; + + interface IManagedPoolAction + { + CONST_VTBL struct IManagedPoolActionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IManagedPoolAction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IManagedPoolAction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IManagedPoolAction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IManagedPoolAction_LastRelease(This) \ + ( (This)->lpVtbl -> LastRelease(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IManagedPoolAction_INTERFACE_DEFINED__ */ + + +#ifndef __IManagedObjectInfo_INTERFACE_DEFINED__ +#define __IManagedObjectInfo_INTERFACE_DEFINED__ + +/* interface IManagedObjectInfo */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IManagedObjectInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1427c51a-4584-49d8-90a0-c50d8086cbe9") + IManagedObjectInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetIUnknown( + /* [out] */ IUnknown **pUnk) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIObjectControl( + /* [out] */ IObjectControl **pCtrl) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetInPool( + /* [in] */ BOOL bInPool, + /* [in] */ IManagedPooledObj *pPooledObj) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetWrapperStrength( + /* [in] */ BOOL bStrong) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IManagedObjectInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IManagedObjectInfo * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IManagedObjectInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IManagedObjectInfo * This); + + DECLSPEC_XFGVIRT(IManagedObjectInfo, GetIUnknown) + HRESULT ( STDMETHODCALLTYPE *GetIUnknown )( + IManagedObjectInfo * This, + /* [out] */ IUnknown **pUnk); + + DECLSPEC_XFGVIRT(IManagedObjectInfo, GetIObjectControl) + HRESULT ( STDMETHODCALLTYPE *GetIObjectControl )( + IManagedObjectInfo * This, + /* [out] */ IObjectControl **pCtrl); + + DECLSPEC_XFGVIRT(IManagedObjectInfo, SetInPool) + HRESULT ( STDMETHODCALLTYPE *SetInPool )( + IManagedObjectInfo * This, + /* [in] */ BOOL bInPool, + /* [in] */ IManagedPooledObj *pPooledObj); + + DECLSPEC_XFGVIRT(IManagedObjectInfo, SetWrapperStrength) + HRESULT ( STDMETHODCALLTYPE *SetWrapperStrength )( + IManagedObjectInfo * This, + /* [in] */ BOOL bStrong); + + END_INTERFACE + } IManagedObjectInfoVtbl; + + interface IManagedObjectInfo + { + CONST_VTBL struct IManagedObjectInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IManagedObjectInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IManagedObjectInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IManagedObjectInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IManagedObjectInfo_GetIUnknown(This,pUnk) \ + ( (This)->lpVtbl -> GetIUnknown(This,pUnk) ) + +#define IManagedObjectInfo_GetIObjectControl(This,pCtrl) \ + ( (This)->lpVtbl -> GetIObjectControl(This,pCtrl) ) + +#define IManagedObjectInfo_SetInPool(This,bInPool,pPooledObj) \ + ( (This)->lpVtbl -> SetInPool(This,bInPool,pPooledObj) ) + +#define IManagedObjectInfo_SetWrapperStrength(This,bStrong) \ + ( (This)->lpVtbl -> SetWrapperStrength(This,bStrong) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IManagedObjectInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IAppDomainHelper_INTERFACE_DEFINED__ +#define __IAppDomainHelper_INTERFACE_DEFINED__ + +/* interface IAppDomainHelper */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IAppDomainHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c7b67079-8255-42c6-9ec0-6994a3548780") + IAppDomainHelper : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ IUnknown *pUnkAD, + /* [in] */ HRESULT ( STDMETHODCALLTYPE __MIDL__IAppDomainHelper0000 )( + void *pv), + /* [in] */ void *pPool) = 0; + + virtual HRESULT STDMETHODCALLTYPE DoCallback( + /* [in] */ IUnknown *pUnkAD, + /* [in] */ HRESULT ( STDMETHODCALLTYPE __MIDL__IAppDomainHelper0001 )( + void *pv), + /* [in] */ void *pPool) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppDomainHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAppDomainHelper * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAppDomainHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAppDomainHelper * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IAppDomainHelper * This, + /* [out] */ UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IAppDomainHelper * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IAppDomainHelper * This, + /* [in] */ REFIID riid, + /* [size_is][in] */ LPOLESTR *rgszNames, + /* [range][in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAppDomainHelper * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAppDomainHelper, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IAppDomainHelper * This, + /* [in] */ IUnknown *pUnkAD, + /* [in] */ HRESULT ( STDMETHODCALLTYPE __MIDL__IAppDomainHelper0000 )( + void *pv), + /* [in] */ void *pPool); + + DECLSPEC_XFGVIRT(IAppDomainHelper, DoCallback) + HRESULT ( STDMETHODCALLTYPE *DoCallback )( + IAppDomainHelper * This, + /* [in] */ IUnknown *pUnkAD, + /* [in] */ HRESULT ( STDMETHODCALLTYPE __MIDL__IAppDomainHelper0001 )( + void *pv), + /* [in] */ void *pPool); + + END_INTERFACE + } IAppDomainHelperVtbl; + + interface IAppDomainHelper + { + CONST_VTBL struct IAppDomainHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppDomainHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppDomainHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppDomainHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppDomainHelper_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAppDomainHelper_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAppDomainHelper_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAppDomainHelper_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAppDomainHelper_Initialize(This,pUnkAD,__MIDL__IAppDomainHelper0000,pPool) \ + ( (This)->lpVtbl -> Initialize(This,pUnkAD,__MIDL__IAppDomainHelper0000,pPool) ) + +#define IAppDomainHelper_DoCallback(This,pUnkAD,__MIDL__IAppDomainHelper0001,pPool) \ + ( (This)->lpVtbl -> DoCallback(This,pUnkAD,__MIDL__IAppDomainHelper0001,pPool) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppDomainHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IAssemblyLocator_INTERFACE_DEFINED__ +#define __IAssemblyLocator_INTERFACE_DEFINED__ + +/* interface IAssemblyLocator */ +/* [object][oleautomation][unique][helpstring][uuid] */ + + +EXTERN_C const IID IID_IAssemblyLocator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("391ffbb9-a8ee-432a-abc8-baa238dab90f") + IAssemblyLocator : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE GetModules( + /* [in] */ __RPC__in BSTR applicationDir, + /* [in] */ __RPC__in BSTR applicationName, + /* [in] */ __RPC__in BSTR assemblyName, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *pModules) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAssemblyLocatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAssemblyLocator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAssemblyLocator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAssemblyLocator * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAssemblyLocator * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAssemblyLocator * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAssemblyLocator * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAssemblyLocator * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAssemblyLocator, GetModules) + HRESULT ( STDMETHODCALLTYPE *GetModules )( + __RPC__in IAssemblyLocator * This, + /* [in] */ __RPC__in BSTR applicationDir, + /* [in] */ __RPC__in BSTR applicationName, + /* [in] */ __RPC__in BSTR assemblyName, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *pModules); + + END_INTERFACE + } IAssemblyLocatorVtbl; + + interface IAssemblyLocator + { + CONST_VTBL struct IAssemblyLocatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAssemblyLocator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAssemblyLocator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAssemblyLocator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAssemblyLocator_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAssemblyLocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAssemblyLocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAssemblyLocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAssemblyLocator_GetModules(This,applicationDir,applicationName,assemblyName,pModules) \ + ( (This)->lpVtbl -> GetModules(This,applicationDir,applicationName,assemblyName,pModules) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAssemblyLocator_INTERFACE_DEFINED__ */ + + +#ifndef __IManagedActivationEvents_INTERFACE_DEFINED__ +#define __IManagedActivationEvents_INTERFACE_DEFINED__ + +/* interface IManagedActivationEvents */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IManagedActivationEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a5f325af-572f-46da-b8ab-827c3d95d99e") + IManagedActivationEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateManagedStub( + /* [in] */ IManagedObjectInfo *pInfo, + /* [in] */ BOOL fDist) = 0; + + virtual HRESULT STDMETHODCALLTYPE DestroyManagedStub( + /* [in] */ IManagedObjectInfo *pInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IManagedActivationEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IManagedActivationEvents * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IManagedActivationEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IManagedActivationEvents * This); + + DECLSPEC_XFGVIRT(IManagedActivationEvents, CreateManagedStub) + HRESULT ( STDMETHODCALLTYPE *CreateManagedStub )( + IManagedActivationEvents * This, + /* [in] */ IManagedObjectInfo *pInfo, + /* [in] */ BOOL fDist); + + DECLSPEC_XFGVIRT(IManagedActivationEvents, DestroyManagedStub) + HRESULT ( STDMETHODCALLTYPE *DestroyManagedStub )( + IManagedActivationEvents * This, + /* [in] */ IManagedObjectInfo *pInfo); + + END_INTERFACE + } IManagedActivationEventsVtbl; + + interface IManagedActivationEvents + { + CONST_VTBL struct IManagedActivationEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IManagedActivationEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IManagedActivationEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IManagedActivationEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IManagedActivationEvents_CreateManagedStub(This,pInfo,fDist) \ + ( (This)->lpVtbl -> CreateManagedStub(This,pInfo,fDist) ) + +#define IManagedActivationEvents_DestroyManagedStub(This,pInfo) \ + ( (This)->lpVtbl -> DestroyManagedStub(This,pInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IManagedActivationEvents_INTERFACE_DEFINED__ */ + + +#ifndef __ISendMethodEvents_INTERFACE_DEFINED__ +#define __ISendMethodEvents_INTERFACE_DEFINED__ + +/* interface ISendMethodEvents */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_ISendMethodEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2732fd59-b2b4-4d44-878c-8b8f09626008") + ISendMethodEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SendMethodCall( + /* [in] */ const void *pIdentity, + /* [in] */ REFIID riid, + /* [in] */ DWORD dwMeth) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendMethodReturn( + /* [in] */ const void *pIdentity, + /* [in] */ REFIID riid, + /* [in] */ DWORD dwMeth, + /* [in] */ HRESULT hrCall, + /* [in] */ HRESULT hrServer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISendMethodEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ISendMethodEvents * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ISendMethodEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ISendMethodEvents * This); + + DECLSPEC_XFGVIRT(ISendMethodEvents, SendMethodCall) + HRESULT ( STDMETHODCALLTYPE *SendMethodCall )( + ISendMethodEvents * This, + /* [in] */ const void *pIdentity, + /* [in] */ REFIID riid, + /* [in] */ DWORD dwMeth); + + DECLSPEC_XFGVIRT(ISendMethodEvents, SendMethodReturn) + HRESULT ( STDMETHODCALLTYPE *SendMethodReturn )( + ISendMethodEvents * This, + /* [in] */ const void *pIdentity, + /* [in] */ REFIID riid, + /* [in] */ DWORD dwMeth, + /* [in] */ HRESULT hrCall, + /* [in] */ HRESULT hrServer); + + END_INTERFACE + } ISendMethodEventsVtbl; + + interface ISendMethodEvents + { + CONST_VTBL struct ISendMethodEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISendMethodEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISendMethodEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISendMethodEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISendMethodEvents_SendMethodCall(This,pIdentity,riid,dwMeth) \ + ( (This)->lpVtbl -> SendMethodCall(This,pIdentity,riid,dwMeth) ) + +#define ISendMethodEvents_SendMethodReturn(This,pIdentity,riid,dwMeth,hrCall,hrServer) \ + ( (This)->lpVtbl -> SendMethodReturn(This,pIdentity,riid,dwMeth,hrCall,hrServer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISendMethodEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0113 */ +/* [local] */ + + + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0113_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0113_v0_0_s_ifspec; + +#ifndef __ITransactionResourcePool_INTERFACE_DEFINED__ +#define __ITransactionResourcePool_INTERFACE_DEFINED__ + +/* interface ITransactionResourcePool */ +/* [object][unique][local][helpstring][uuid] */ + + +EXTERN_C const IID IID_ITransactionResourcePool; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C5FEB7C1-346A-11D1-B1CC-00AA00BA3258") + ITransactionResourcePool : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE PutResource( + /* [in] */ IObjPool *pPool, + /* [in] */ IUnknown *pUnk) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetResource( + /* [in] */ IObjPool *pPool, + /* [out] */ IUnknown **ppUnk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITransactionResourcePoolVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ITransactionResourcePool * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ITransactionResourcePool * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ITransactionResourcePool * This); + + DECLSPEC_XFGVIRT(ITransactionResourcePool, PutResource) + HRESULT ( STDMETHODCALLTYPE *PutResource )( + ITransactionResourcePool * This, + /* [in] */ IObjPool *pPool, + /* [in] */ IUnknown *pUnk); + + DECLSPEC_XFGVIRT(ITransactionResourcePool, GetResource) + HRESULT ( STDMETHODCALLTYPE *GetResource )( + ITransactionResourcePool * This, + /* [in] */ IObjPool *pPool, + /* [out] */ IUnknown **ppUnk); + + END_INTERFACE + } ITransactionResourcePoolVtbl; + + interface ITransactionResourcePool + { + CONST_VTBL struct ITransactionResourcePoolVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITransactionResourcePool_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITransactionResourcePool_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITransactionResourcePool_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITransactionResourcePool_PutResource(This,pPool,pUnk) \ + ( (This)->lpVtbl -> PutResource(This,pPool,pUnk) ) + +#define ITransactionResourcePool_GetResource(This,pPool,ppUnk) \ + ( (This)->lpVtbl -> GetResource(This,pPool,ppUnk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITransactionResourcePool_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_autosvcs_0000_0114 */ +/* [local] */ + +EXTERN_C HRESULT __stdcall MTSCreateActivity ( REFIID riid, void** ppobj ); + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0114_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0114_v0_0_s_ifspec; + +#ifndef __IMTSCall_INTERFACE_DEFINED__ +#define __IMTSCall_INTERFACE_DEFINED__ + +/* interface IMTSCall */ +/* [object][unique][uuid][local] */ + + +EXTERN_C const IID IID_IMTSCall; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51372AEF-CAE7-11CF-BE81-00AA00A2FA25") + IMTSCall : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnCall( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMTSCallVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMTSCall * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMTSCall * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMTSCall * This); + + DECLSPEC_XFGVIRT(IMTSCall, OnCall) + HRESULT ( STDMETHODCALLTYPE *OnCall )( + IMTSCall * This); + + END_INTERFACE + } IMTSCallVtbl; + + interface IMTSCall + { + CONST_VTBL struct IMTSCallVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMTSCall_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMTSCall_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMTSCall_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMTSCall_OnCall(This) \ + ( (This)->lpVtbl -> OnCall(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMTSCall_INTERFACE_DEFINED__ */ + + +#ifndef __IContextProperties_INTERFACE_DEFINED__ +#define __IContextProperties_INTERFACE_DEFINED__ + +/* interface IContextProperties */ +/* [object][unique][uuid][local] */ + + +EXTERN_C const IID IID_IContextProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D396DA85-BF8F-11d1-BBAE-00C04FC2FA5F") + IContextProperties : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Count( + /* [retval][out] */ long *plCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ BSTR name, + /* [retval][out] */ VARIANT *pProperty) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumNames( + /* [retval][out] */ IEnumNames **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ BSTR name, + /* [in] */ VARIANT property) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveProperty( + /* [in] */ BSTR name) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContextPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IContextProperties * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IContextProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IContextProperties * This); + + DECLSPEC_XFGVIRT(IContextProperties, Count) + HRESULT ( STDMETHODCALLTYPE *Count )( + IContextProperties * This, + /* [retval][out] */ long *plCount); + + DECLSPEC_XFGVIRT(IContextProperties, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + IContextProperties * This, + /* [in] */ BSTR name, + /* [retval][out] */ VARIANT *pProperty); + + DECLSPEC_XFGVIRT(IContextProperties, EnumNames) + HRESULT ( STDMETHODCALLTYPE *EnumNames )( + IContextProperties * This, + /* [retval][out] */ IEnumNames **ppenum); + + DECLSPEC_XFGVIRT(IContextProperties, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + IContextProperties * This, + /* [in] */ BSTR name, + /* [in] */ VARIANT property); + + DECLSPEC_XFGVIRT(IContextProperties, RemoveProperty) + HRESULT ( STDMETHODCALLTYPE *RemoveProperty )( + IContextProperties * This, + /* [in] */ BSTR name); + + END_INTERFACE + } IContextPropertiesVtbl; + + interface IContextProperties + { + CONST_VTBL struct IContextPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContextProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContextProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContextProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContextProperties_Count(This,plCount) \ + ( (This)->lpVtbl -> Count(This,plCount) ) + +#define IContextProperties_GetProperty(This,name,pProperty) \ + ( (This)->lpVtbl -> GetProperty(This,name,pProperty) ) + +#define IContextProperties_EnumNames(This,ppenum) \ + ( (This)->lpVtbl -> EnumNames(This,ppenum) ) + +#define IContextProperties_SetProperty(This,name,property) \ + ( (This)->lpVtbl -> SetProperty(This,name,property) ) + +#define IContextProperties_RemoveProperty(This,name) \ + ( (This)->lpVtbl -> RemoveProperty(This,name) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContextProperties_INTERFACE_DEFINED__ */ + + +#ifndef __IObjPool_INTERFACE_DEFINED__ +#define __IObjPool_INTERFACE_DEFINED__ + +/* interface IObjPool */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IObjPool; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7D8805A0-2EA7-11D1-B1CC-00AA00BA3258") + IObjPool : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE Reserved1( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved2( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved3( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved4( void) = 0; + + virtual void STDMETHODCALLTYPE PutEndTx( + IUnknown *pObj) = 0; + + virtual void STDMETHODCALLTYPE Reserved5( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved6( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjPoolVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IObjPool * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IObjPool * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IObjPool * This); + + DECLSPEC_XFGVIRT(IObjPool, Reserved1) + void ( STDMETHODCALLTYPE *Reserved1 )( + IObjPool * This); + + DECLSPEC_XFGVIRT(IObjPool, Reserved2) + void ( STDMETHODCALLTYPE *Reserved2 )( + IObjPool * This); + + DECLSPEC_XFGVIRT(IObjPool, Reserved3) + void ( STDMETHODCALLTYPE *Reserved3 )( + IObjPool * This); + + DECLSPEC_XFGVIRT(IObjPool, Reserved4) + void ( STDMETHODCALLTYPE *Reserved4 )( + IObjPool * This); + + DECLSPEC_XFGVIRT(IObjPool, PutEndTx) + void ( STDMETHODCALLTYPE *PutEndTx )( + IObjPool * This, + IUnknown *pObj); + + DECLSPEC_XFGVIRT(IObjPool, Reserved5) + void ( STDMETHODCALLTYPE *Reserved5 )( + IObjPool * This); + + DECLSPEC_XFGVIRT(IObjPool, Reserved6) + void ( STDMETHODCALLTYPE *Reserved6 )( + IObjPool * This); + + END_INTERFACE + } IObjPoolVtbl; + + interface IObjPool + { + CONST_VTBL struct IObjPoolVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjPool_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjPool_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjPool_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjPool_Reserved1(This) \ + ( (This)->lpVtbl -> Reserved1(This) ) + +#define IObjPool_Reserved2(This) \ + ( (This)->lpVtbl -> Reserved2(This) ) + +#define IObjPool_Reserved3(This) \ + ( (This)->lpVtbl -> Reserved3(This) ) + +#define IObjPool_Reserved4(This) \ + ( (This)->lpVtbl -> Reserved4(This) ) + +#define IObjPool_PutEndTx(This,pObj) \ + ( (This)->lpVtbl -> PutEndTx(This,pObj) ) + +#define IObjPool_Reserved5(This) \ + ( (This)->lpVtbl -> Reserved5(This) ) + +#define IObjPool_Reserved6(This) \ + ( (This)->lpVtbl -> Reserved6(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjPool_INTERFACE_DEFINED__ */ + + +#ifndef __ITransactionProperty_INTERFACE_DEFINED__ +#define __ITransactionProperty_INTERFACE_DEFINED__ + +/* interface ITransactionProperty */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_ITransactionProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("788ea814-87b1-11d1-bba6-00c04fc2fa5f") + ITransactionProperty : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE Reserved1( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved2( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved3( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved4( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved5( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved6( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved7( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved8( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved9( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransactionResourcePool( + /* [out] */ ITransactionResourcePool **ppTxPool) = 0; + + virtual void STDMETHODCALLTYPE Reserved10( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved11( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved12( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved13( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved14( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved15( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved16( void) = 0; + + virtual void STDMETHODCALLTYPE Reserved17( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITransactionPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ITransactionProperty * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved1) + void ( STDMETHODCALLTYPE *Reserved1 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved2) + void ( STDMETHODCALLTYPE *Reserved2 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved3) + void ( STDMETHODCALLTYPE *Reserved3 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved4) + void ( STDMETHODCALLTYPE *Reserved4 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved5) + void ( STDMETHODCALLTYPE *Reserved5 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved6) + void ( STDMETHODCALLTYPE *Reserved6 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved7) + void ( STDMETHODCALLTYPE *Reserved7 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved8) + void ( STDMETHODCALLTYPE *Reserved8 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved9) + void ( STDMETHODCALLTYPE *Reserved9 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, GetTransactionResourcePool) + HRESULT ( STDMETHODCALLTYPE *GetTransactionResourcePool )( + ITransactionProperty * This, + /* [out] */ ITransactionResourcePool **ppTxPool); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved10) + void ( STDMETHODCALLTYPE *Reserved10 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved11) + void ( STDMETHODCALLTYPE *Reserved11 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved12) + void ( STDMETHODCALLTYPE *Reserved12 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved13) + void ( STDMETHODCALLTYPE *Reserved13 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved14) + void ( STDMETHODCALLTYPE *Reserved14 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved15) + void ( STDMETHODCALLTYPE *Reserved15 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved16) + void ( STDMETHODCALLTYPE *Reserved16 )( + ITransactionProperty * This); + + DECLSPEC_XFGVIRT(ITransactionProperty, Reserved17) + void ( STDMETHODCALLTYPE *Reserved17 )( + ITransactionProperty * This); + + END_INTERFACE + } ITransactionPropertyVtbl; + + interface ITransactionProperty + { + CONST_VTBL struct ITransactionPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITransactionProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITransactionProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITransactionProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITransactionProperty_Reserved1(This) \ + ( (This)->lpVtbl -> Reserved1(This) ) + +#define ITransactionProperty_Reserved2(This) \ + ( (This)->lpVtbl -> Reserved2(This) ) + +#define ITransactionProperty_Reserved3(This) \ + ( (This)->lpVtbl -> Reserved3(This) ) + +#define ITransactionProperty_Reserved4(This) \ + ( (This)->lpVtbl -> Reserved4(This) ) + +#define ITransactionProperty_Reserved5(This) \ + ( (This)->lpVtbl -> Reserved5(This) ) + +#define ITransactionProperty_Reserved6(This) \ + ( (This)->lpVtbl -> Reserved6(This) ) + +#define ITransactionProperty_Reserved7(This) \ + ( (This)->lpVtbl -> Reserved7(This) ) + +#define ITransactionProperty_Reserved8(This) \ + ( (This)->lpVtbl -> Reserved8(This) ) + +#define ITransactionProperty_Reserved9(This) \ + ( (This)->lpVtbl -> Reserved9(This) ) + +#define ITransactionProperty_GetTransactionResourcePool(This,ppTxPool) \ + ( (This)->lpVtbl -> GetTransactionResourcePool(This,ppTxPool) ) + +#define ITransactionProperty_Reserved10(This) \ + ( (This)->lpVtbl -> Reserved10(This) ) + +#define ITransactionProperty_Reserved11(This) \ + ( (This)->lpVtbl -> Reserved11(This) ) + +#define ITransactionProperty_Reserved12(This) \ + ( (This)->lpVtbl -> Reserved12(This) ) + +#define ITransactionProperty_Reserved13(This) \ + ( (This)->lpVtbl -> Reserved13(This) ) + +#define ITransactionProperty_Reserved14(This) \ + ( (This)->lpVtbl -> Reserved14(This) ) + +#define ITransactionProperty_Reserved15(This) \ + ( (This)->lpVtbl -> Reserved15(This) ) + +#define ITransactionProperty_Reserved16(This) \ + ( (This)->lpVtbl -> Reserved16(This) ) + +#define ITransactionProperty_Reserved17(This) \ + ( (This)->lpVtbl -> Reserved17(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITransactionProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IMTSActivity_INTERFACE_DEFINED__ +#define __IMTSActivity_INTERFACE_DEFINED__ + +/* interface IMTSActivity */ +/* [object][unique][uuid][local] */ + + +EXTERN_C const IID IID_IMTSActivity; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51372AF0-CAE7-11CF-BE81-00AA00A2FA25") + IMTSActivity : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SynchronousCall( + /* [in] */ IMTSCall *pCall) = 0; + + virtual HRESULT STDMETHODCALLTYPE AsyncCall( + /* [in] */ IMTSCall *pCall) = 0; + + virtual void STDMETHODCALLTYPE Reserved1( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE BindToCurrentThread( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnbindFromThread( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMTSActivityVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMTSActivity * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMTSActivity * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMTSActivity * This); + + DECLSPEC_XFGVIRT(IMTSActivity, SynchronousCall) + HRESULT ( STDMETHODCALLTYPE *SynchronousCall )( + IMTSActivity * This, + /* [in] */ IMTSCall *pCall); + + DECLSPEC_XFGVIRT(IMTSActivity, AsyncCall) + HRESULT ( STDMETHODCALLTYPE *AsyncCall )( + IMTSActivity * This, + /* [in] */ IMTSCall *pCall); + + DECLSPEC_XFGVIRT(IMTSActivity, Reserved1) + void ( STDMETHODCALLTYPE *Reserved1 )( + IMTSActivity * This); + + DECLSPEC_XFGVIRT(IMTSActivity, BindToCurrentThread) + HRESULT ( STDMETHODCALLTYPE *BindToCurrentThread )( + IMTSActivity * This); + + DECLSPEC_XFGVIRT(IMTSActivity, UnbindFromThread) + HRESULT ( STDMETHODCALLTYPE *UnbindFromThread )( + IMTSActivity * This); + + END_INTERFACE + } IMTSActivityVtbl; + + interface IMTSActivity + { + CONST_VTBL struct IMTSActivityVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMTSActivity_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMTSActivity_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMTSActivity_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMTSActivity_SynchronousCall(This,pCall) \ + ( (This)->lpVtbl -> SynchronousCall(This,pCall) ) + +#define IMTSActivity_AsyncCall(This,pCall) \ + ( (This)->lpVtbl -> AsyncCall(This,pCall) ) + +#define IMTSActivity_Reserved1(This) \ + ( (This)->lpVtbl -> Reserved1(This) ) + +#define IMTSActivity_BindToCurrentThread(This) \ + ( (This)->lpVtbl -> BindToCurrentThread(This) ) + +#define IMTSActivity_UnbindFromThread(This) \ + ( (This)->lpVtbl -> UnbindFromThread(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMTSActivity_INTERFACE_DEFINED__ */ + + + +#ifndef __COMSVCSLib_LIBRARY_DEFINED__ +#define __COMSVCSLib_LIBRARY_DEFINED__ + +/* library COMSVCSLib */ +/* [helpstring][version][uuid] */ + + + +typedef /* [public][helpcontext][helpstring] */ +enum __MIDL___MIDL_itf_autosvcs_0001_0150_0001 + { + mtsErrCtxAborted = 0x8004e002, + mtsErrCtxAborting = 0x8004e003, + mtsErrCtxNoContext = 0x8004e004, + mtsErrCtxNotRegistered = 0x8004e005, + mtsErrCtxSynchTimeout = 0x8004e006, + mtsErrCtxOldReference = 0x8004e007, + mtsErrCtxRoleNotFound = 0x8004e00c, + mtsErrCtxNoSecurity = 0x8004e00d, + mtsErrCtxWrongThread = 0x8004e00e, + mtsErrCtxTMNotAvailable = 0x8004e00f, + comQCErrApplicationNotQueued = 0x80110600, + comQCErrNoQueueableInterfaces = 0x80110601, + comQCErrQueuingServiceNotAvailable = 0x80110602, + comQCErrQueueTransactMismatch = 0x80110603, + comqcErrRecorderMarshalled = 0x80110604, + comqcErrOutParam = 0x80110605, + comqcErrRecorderNotTrusted = 0x80110606, + comqcErrPSLoad = 0x80110607, + comqcErrMarshaledObjSameTxn = 0x80110608, + comqcErrInvalidMessage = 0x80110650, + comqcErrMsmqSidUnavailable = 0x80110651, + comqcErrWrongMsgExtension = 0x80110652, + comqcErrMsmqServiceUnavailable = 0x80110653, + comqcErrMsgNotAuthenticated = 0x80110654, + comqcErrMsmqConnectorUsed = 0x80110655, + comqcErrBadMarshaledObject = 0x80110656 + } Error_Constants; + + +typedef /* [public] */ +enum __MIDL___MIDL_itf_autosvcs_0001_0159_0001 + { + LockSetGet = 0, + LockMethod = ( LockSetGet + 1 ) + } LockModes; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_autosvcs_0001_0159_0002 + { + Standard = 0, + Process = ( Standard + 1 ) + } ReleaseModes; + +#ifndef _tagCrmFlags_ +#define _tagCrmFlags_ +typedef +enum tagCRMFLAGS + { + CRMFLAG_FORGETTARGET = 0x1, + CRMFLAG_WRITTENDURINGPREPARE = 0x2, + CRMFLAG_WRITTENDURINGCOMMIT = 0x4, + CRMFLAG_WRITTENDURINGABORT = 0x8, + CRMFLAG_WRITTENDURINGRECOVERY = 0x10, + CRMFLAG_WRITTENDURINGREPLAY = 0x20, + CRMFLAG_REPLAYINPROGRESS = 0x40 + } CRMFLAGS; + +#endif // _tagCrmFlags_ +#ifndef _tagCrmRegFlags_ +#define _tagCrmRegFlags_ +typedef +enum tagCRMREGFLAGS + { + CRMREGFLAG_PREPAREPHASE = 0x1, + CRMREGFLAG_COMMITPHASE = 0x2, + CRMREGFLAG_ABORTPHASE = 0x4, + CRMREGFLAG_ALLPHASES = 0x7, + CRMREGFLAG_FAILIFINDOUBTSREMAIN = 0x10 + } CRMREGFLAGS; + +#endif // _tagCrmRegFlags_ + +EXTERN_C const IID LIBID_COMSVCSLib; + +EXTERN_C const CLSID CLSID_SecurityIdentity; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0a5-7f19-11d2-978e-0000f8757e2a") +SecurityIdentity; +#endif + +EXTERN_C const CLSID CLSID_SecurityCallers; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0a6-7f19-11d2-978e-0000f8757e2a") +SecurityCallers; +#endif + +EXTERN_C const CLSID CLSID_SecurityCallContext; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0a7-7f19-11d2-978e-0000f8757e2a") +SecurityCallContext; +#endif + +EXTERN_C const CLSID CLSID_GetSecurityCallContextAppObject; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0a8-7f19-11d2-978e-0000f8757e2a") +GetSecurityCallContextAppObject; +#endif + +EXTERN_C const CLSID CLSID_Dummy30040732; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0a9-7f19-11d2-978e-0000f8757e2a") +Dummy30040732; +#endif + +EXTERN_C const CLSID CLSID_TransactionContext; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7999FC25-D3C6-11CF-ACAB-00A024A55AEF") +TransactionContext; +#endif + +EXTERN_C const CLSID CLSID_TransactionContextEx; + +#ifdef __cplusplus + +class DECLSPEC_UUID("5cb66670-d3d4-11cf-acab-00a024a55aef") +TransactionContextEx; +#endif + +EXTERN_C const CLSID CLSID_ByotServerEx; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0aa-7f19-11d2-978e-0000f8757e2a") +ByotServerEx; +#endif + +EXTERN_C const CLSID CLSID_CServiceConfig; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0c8-7f19-11d2-978e-0000f8757e2a") +CServiceConfig; +#endif + +EXTERN_C const CLSID CLSID_ServicePool; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0c9-7f19-11d2-978e-0000f8757e2a") +ServicePool; +#endif + +EXTERN_C const CLSID CLSID_ServicePoolConfig; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0ca-7f19-11d2-978e-0000f8757e2a") +ServicePoolConfig; +#endif + +EXTERN_C const CLSID CLSID_SharedProperty; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2A005C05-A5DE-11CF-9E66-00AA00A3F464") +SharedProperty; +#endif + +EXTERN_C const CLSID CLSID_SharedPropertyGroup; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2A005C0B-A5DE-11CF-9E66-00AA00A3F464") +SharedPropertyGroup; +#endif + +EXTERN_C const CLSID CLSID_SharedPropertyGroupManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2A005C11-A5DE-11CF-9E66-00AA00A3F464") +SharedPropertyGroupManager; +#endif + +EXTERN_C const CLSID CLSID_COMEvents; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0ab-7f19-11d2-978e-0000f8757e2a") +COMEvents; +#endif + +EXTERN_C const CLSID CLSID_CoMTSLocator; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0ac-7f19-11d2-978e-0000f8757e2a") +CoMTSLocator; +#endif + +EXTERN_C const CLSID CLSID_MtsGrp; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4B2E958D-0393-11D1-B1AB-00AA00BA3258") +MtsGrp; +#endif + +EXTERN_C const CLSID CLSID_ComServiceEvents; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0c3-7f19-11d2-978e-0000f8757e2a") +ComServiceEvents; +#endif + +EXTERN_C const CLSID CLSID_ComSystemAppEventData; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0c6-7f19-11d2-978e-0000f8757e2a") +ComSystemAppEventData; +#endif + +EXTERN_C const CLSID CLSID_CRMClerk; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0bd-7f19-11d2-978e-0000f8757e2a") +CRMClerk; +#endif + +EXTERN_C const CLSID CLSID_CRMRecoveryClerk; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0be-7f19-11d2-978e-0000f8757e2a") +CRMRecoveryClerk; +#endif + +EXTERN_C const CLSID CLSID_LBEvents; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0c1-7f19-11d2-978e-0000f8757e2a") +LBEvents; +#endif + +EXTERN_C const CLSID CLSID_MessageMover; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0bf-7f19-11d2-978e-0000f8757e2a") +MessageMover; +#endif + +EXTERN_C const CLSID CLSID_DispenserManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabb0c0-7f19-11d2-978e-0000f8757e2a") +DispenserManager; +#endif + +EXTERN_C const CLSID CLSID_PoolMgr; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabafb5-7f19-11d2-978e-0000f8757e2a") +PoolMgr; +#endif + +EXTERN_C const CLSID CLSID_EventServer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabafbc-7f19-11d2-978e-0000f8757e2a") +EventServer; +#endif + +EXTERN_C const CLSID CLSID_TrackerServer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecabafb9-7f19-11d2-978e-0000f8757e2a") +TrackerServer; +#endif + +EXTERN_C const CLSID CLSID_AppDomainHelper; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ef24f689-14f8-4d92-b4af-d7b1f0e70fd4") +AppDomainHelper; +#endif + +EXTERN_C const CLSID CLSID_ClrAssemblyLocator; + +#ifdef __cplusplus + +class DECLSPEC_UUID("458aa3b5-265a-4b75-bc05-9bea4630cf18") +ClrAssemblyLocator; +#endif +#endif /* __COMSVCSLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_autosvcs_0000_0120 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0120_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_autosvcs_0000_0120_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* [helpstring][local] */ HRESULT STDMETHODCALLTYPE IGetAppTrackerData_GetApplicationProcessDetails_Proxy( + IGetAppTrackerData * This, + /* [in] */ REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ DWORD Flags, + /* [annotation] */ + _Out_opt_ ApplicationProcessSummary *Summary, + /* [annotation] */ + _Out_opt_ ApplicationProcessStatistics *Statistics, + /* [annotation] */ + _Out_opt_ ApplicationProcessRecycleInfo *RecycleInfo, + /* [annotation] */ + _Out_opt_ BOOL *AnyComponentsHangMonitored); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IGetAppTrackerData_GetApplicationProcessDetails_Stub( + __RPC__in IGetAppTrackerData * This, + /* [in] */ __RPC__in REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ DWORD Flags, + /* [unique][out][in] */ __RPC__inout_opt ApplicationProcessSummary *Summary, + /* [unique][out][in] */ __RPC__inout_opt ApplicationProcessStatistics *Statistics, + /* [unique][out][in] */ __RPC__inout_opt ApplicationProcessRecycleInfo *RecycleInfo, + /* [unique][out][in] */ __RPC__inout_opt BOOL *AnyComponentsHangMonitored); + +/* [helpstring][local] */ HRESULT STDMETHODCALLTYPE IGetAppTrackerData_GetComponentDetails_Proxy( + IGetAppTrackerData * This, + /* [in] */ REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ REFCLSID Clsid, + /* [in] */ DWORD Flags, + /* [annotation] */ + _Out_opt_ ComponentSummary *Summary, + /* [annotation] */ + _Out_opt_ ComponentStatistics *Statistics, + /* [annotation] */ + _Out_opt_ ComponentHangMonitorInfo *HangMonitorInfo); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IGetAppTrackerData_GetComponentDetails_Stub( + __RPC__in IGetAppTrackerData * This, + /* [in] */ __RPC__in REFGUID ApplicationInstanceId, + /* [in] */ DWORD ProcessId, + /* [in] */ __RPC__in REFCLSID Clsid, + /* [in] */ DWORD Flags, + /* [unique][out][in] */ __RPC__inout_opt ComponentSummary *Summary, + /* [unique][out][in] */ __RPC__inout_opt ComponentStatistics *Statistics, + /* [unique][out][in] */ __RPC__inout_opt ComponentHangMonitorInfo *HangMonitorInfo); + + + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CommCtrl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CommCtrl.h new file mode 100644 index 0000000000000000000000000000000000000000..44285099cb28faf5a293c6c69f6b6ba4046639f2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CommCtrl.h @@ -0,0 +1,7964 @@ + +/*****************************************************************************\ +* * +* commctrl.h - - Interface for the Windows Common Controls * +* * +* Version 1.2 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +\*****************************************************************************/ + + + +#ifndef _INC_COMMCTRL +#define _INC_COMMCTRL + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(push) +#pragma warning(disable:4001) /* nonstandard extension : single line comment */ +#pragma warning(disable:4201) /* nonstandard extension used : nameless struct/union */ +#pragma warning(disable:4820) /* padding added after data member */ +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifndef _HRESULT_DEFINED +#define _HRESULT_DEFINED +typedef _Return_type_success_(return >= 0) long HRESULT; +#endif // !_HRESULT_DEFINED + +#ifndef NOUSER + + +// +// Define API decoration for direct importing of DLL references. +// +#ifndef WINCOMMCTRLAPI +#if !defined(_COMCTL32_) && defined(_WIN32) +#define WINCOMMCTRLAPI DECLSPEC_IMPORT +#else +#define WINCOMMCTRLAPI +#endif +#endif // WINCOMMCTRLAPI + +// +// For compilers that don't support nameless unions +// +#ifndef DUMMYUNIONNAME +#ifdef NONAMELESSUNION +#define DUMMYUNIONNAME u +#define DUMMYUNIONNAME2 u2 +#define DUMMYUNIONNAME3 u3 +#define DUMMYUNIONNAME4 u4 +#define DUMMYUNIONNAME5 u5 +#else +#define DUMMYUNIONNAME +#define DUMMYUNIONNAME2 +#define DUMMYUNIONNAME3 +#define DUMMYUNIONNAME4 +#define DUMMYUNIONNAME5 +#endif +#endif // DUMMYUNIONNAME + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Users of this header may define any number of these constants to avoid +// the definitions of each functional group. +// +// NOTOOLBAR Customizable bitmap-button toolbar control. +// NOUPDOWN Up and Down arrow increment/decrement control. +// NOSTATUSBAR Status bar control. +// NOMENUHELP APIs to help manage menus, especially with a status bar. +// NOTRACKBAR Customizable column-width tracking control. +// NODRAGLIST APIs to make a listbox source and sink drag&drop actions. +// NOPROGRESS Progress gas gauge. +// NOHOTKEY HotKey control +// NOHEADER Header bar control. +// NOIMAGEAPIS ImageList apis. +// NOLISTVIEW ListView control. +// NOTREEVIEW TreeView control. +// NOTABCONTROL Tab control. +// NOANIMATE Animate control. +// NOBUTTON Button control. +// NOSTATIC Static control. +// NOEDIT Edit control. +// NOLISTBOX Listbox control. +// NOCOMBOBOX Combobox control. +// NOSCROLLBAR Scrollbar control. +// NOTASKDIALOG Task Dialog. +// +//============================================================================= + +#include + +#ifndef SNDMSG +#ifdef __cplusplus +#ifndef _MAC +#define SNDMSG ::SendMessage +#else +#define SNDMSG ::AfxSendMessage +#endif +#else +#ifndef _MAC +#define SNDMSG SendMessage +#else +#define SNDMSG AfxSendMessage +#endif //_MAC +#endif +#endif // ifndef SNDMSG + +#ifdef _MAC +#ifndef RC_INVOKED +#ifndef _WLM_NOFORCE_LIBS + +#ifndef _WLMDLL + #ifdef _DEBUG + #pragma comment(lib, "comctld.lib") + #else + #pragma comment(lib, "comctl.lib") + #endif + #pragma comment(linker, "/macres:comctl.rsc") + #else + #ifdef _DEBUG + #pragma comment(lib, "msvcctld.lib") + #else + #pragma comment(lib, "msvcctl.lib") + #endif +#endif // _WLMDLL + +#endif // _WLM_NOFORCE_LIBS +#endif // RC_INVOKED +#endif //_MAC + +WINCOMMCTRLAPI void WINAPI InitCommonControls(void); + +typedef struct tagINITCOMMONCONTROLSEX { + DWORD dwSize; // size of this structure + DWORD dwICC; // flags indicating which classes to be initialized +} INITCOMMONCONTROLSEX, *LPINITCOMMONCONTROLSEX; +#define ICC_LISTVIEW_CLASSES 0x00000001 // listview, header +#define ICC_TREEVIEW_CLASSES 0x00000002 // treeview, tooltips +#define ICC_BAR_CLASSES 0x00000004 // toolbar, statusbar, trackbar, tooltips +#define ICC_TAB_CLASSES 0x00000008 // tab, tooltips +#define ICC_UPDOWN_CLASS 0x00000010 // updown +#define ICC_PROGRESS_CLASS 0x00000020 // progress +#define ICC_HOTKEY_CLASS 0x00000040 // hotkey +#define ICC_ANIMATE_CLASS 0x00000080 // animate +#define ICC_WIN95_CLASSES 0x000000FF +#define ICC_DATE_CLASSES 0x00000100 // month picker, date picker, time picker, updown +#define ICC_USEREX_CLASSES 0x00000200 // comboex +#define ICC_COOL_CLASSES 0x00000400 // rebar (coolbar) control +#define ICC_INTERNET_CLASSES 0x00000800 +#define ICC_PAGESCROLLER_CLASS 0x00001000 // page scroller +#define ICC_NATIVEFNTCTL_CLASS 0x00002000 // native font control +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define ICC_STANDARD_CLASSES 0x00004000 +#define ICC_LINK_CLASS 0x00008000 +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + + +WINCOMMCTRLAPI BOOL WINAPI InitCommonControlsEx(_In_ const INITCOMMONCONTROLSEX *picce); + +#define ODT_HEADER 100 +#define ODT_TAB 101 +#define ODT_LISTVIEW 102 + + +//====== Ranges for control message IDs ======================================= + +#define LVM_FIRST 0x1000 // ListView messages +#define TV_FIRST 0x1100 // TreeView messages +#define HDM_FIRST 0x1200 // Header messages +#define TCM_FIRST 0x1300 // Tab control messages + +#define PGM_FIRST 0x1400 // Pager control messages + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define ECM_FIRST 0x1500 // Edit control messages +#define BCM_FIRST 0x1600 // Button control messages +#define CBM_FIRST 0x1700 // Combobox control messages +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + +#define CCM_FIRST 0x2000 // Common control shared messages +#define CCM_LAST (CCM_FIRST + 0x200) + + +#define CCM_SETBKCOLOR (CCM_FIRST + 1) // lParam is bkColor + +typedef struct tagCOLORSCHEME { + DWORD dwSize; + COLORREF clrBtnHighlight; // highlight color + COLORREF clrBtnShadow; // shadow color +} COLORSCHEME, *LPCOLORSCHEME; + +#define CCM_SETCOLORSCHEME (CCM_FIRST + 2) // lParam is color scheme +#define CCM_GETCOLORSCHEME (CCM_FIRST + 3) // fills in COLORSCHEME pointed to by lParam +#define CCM_GETDROPTARGET (CCM_FIRST + 4) +#define CCM_SETUNICODEFORMAT (CCM_FIRST + 5) +#define CCM_GETUNICODEFORMAT (CCM_FIRST + 6) + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define COMCTL32_VERSION 6 +#else +#define COMCTL32_VERSION 5 +#endif + +#define CCM_SETVERSION (CCM_FIRST + 0x7) +#define CCM_GETVERSION (CCM_FIRST + 0x8) +#define CCM_SETNOTIFYWINDOW (CCM_FIRST + 0x9) // wParam == hwndParent. +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define CCM_SETWINDOWTHEME (CCM_FIRST + 0xb) +#define CCM_DPISCALE (CCM_FIRST + 0xc) // wParam == Awareness +#endif + +// for tooltips +#define INFOTIPSIZE 1024 + +//====== WM_NOTIFY Macros ===================================================== + +#define HANDLE_WM_NOTIFY(hwnd, wParam, lParam, fn) \ + (fn)((hwnd), (int)(wParam), (NMHDR *)(lParam)) +#define FORWARD_WM_NOTIFY(hwnd, idFrom, pnmhdr, fn) \ + (LRESULT)(fn)((hwnd), WM_NOTIFY, (WPARAM)(int)(idFrom), (LPARAM)(NMHDR *)(pnmhdr)) + + +//====== Generic WM_NOTIFY notification codes ================================= + +#define NM_OUTOFMEMORY (NM_FIRST-1) +#define NM_CLICK (NM_FIRST-2) // uses NMCLICK struct +#define NM_DBLCLK (NM_FIRST-3) +#define NM_RETURN (NM_FIRST-4) +#define NM_RCLICK (NM_FIRST-5) // uses NMCLICK struct +#define NM_RDBLCLK (NM_FIRST-6) +#define NM_SETFOCUS (NM_FIRST-7) +#define NM_KILLFOCUS (NM_FIRST-8) +#define NM_CUSTOMDRAW (NM_FIRST-12) +#define NM_HOVER (NM_FIRST-13) +#define NM_NCHITTEST (NM_FIRST-14) // uses NMMOUSE struct +#define NM_KEYDOWN (NM_FIRST-15) // uses NMKEY struct +#define NM_RELEASEDCAPTURE (NM_FIRST-16) +#define NM_SETCURSOR (NM_FIRST-17) // uses NMMOUSE struct +#define NM_CHAR (NM_FIRST-18) // uses NMCHAR struct +#define NM_TOOLTIPSCREATED (NM_FIRST-19) // notify of when the tooltips window is create +#define NM_LDOWN (NM_FIRST-20) +#define NM_RDOWN (NM_FIRST-21) +#define NM_THEMECHANGED (NM_FIRST-22) + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define NM_FONTCHANGED (NM_FIRST-23) +#define NM_CUSTOMTEXT (NM_FIRST-24) // uses NMCUSTOMTEXT struct +#define NM_TVSTATEIMAGECHANGING (NM_FIRST-24) // uses NMTVSTATEIMAGECHANGING struct, defined after HTREEITEM +#endif + +#ifndef CCSIZEOF_STRUCT +#define CCSIZEOF_STRUCT(structname, member) (((int)((LPBYTE)(&((structname*)0)->member) - ((LPBYTE)((structname*)0)))) + sizeof(((structname*)0)->member)) +#endif + +//====== Generic WM_NOTIFY notification structures ============================ +typedef struct tagNMTOOLTIPSCREATED +{ + NMHDR hdr; + HWND hwndToolTips; +} NMTOOLTIPSCREATED, * LPNMTOOLTIPSCREATED; + +typedef struct tagNMMOUSE { + NMHDR hdr; + DWORD_PTR dwItemSpec; + DWORD_PTR dwItemData; + POINT pt; + LPARAM dwHitInfo; // any specifics about where on the item or control the mouse is +} NMMOUSE, *LPNMMOUSE; + +typedef NMMOUSE NMCLICK; +typedef LPNMMOUSE LPNMCLICK; + +// Generic structure to request an object of a specific type. + +typedef struct tagNMOBJECTNOTIFY { + NMHDR hdr; + int iItem; +#ifdef __IID_DEFINED__ + const IID *piid; +#else + const void *piid; +#endif + void *pObject; + HRESULT hResult; + DWORD dwFlags; // control specific flags (hints as to where in iItem it hit) +} NMOBJECTNOTIFY, *LPNMOBJECTNOTIFY; + +// Generic structure for a key + +typedef struct tagNMKEY +{ + NMHDR hdr; + UINT nVKey; + UINT uFlags; +} NMKEY, *LPNMKEY; + +// Generic structure for a character + +typedef struct tagNMCHAR { + NMHDR hdr; + UINT ch; + DWORD dwItemPrev; // Item previously selected + DWORD dwItemNext; // Item to be selected +} NMCHAR, *LPNMCHAR; + +#if (_WIN32_IE >= 0x0600) + +typedef struct tagNMCUSTOMTEXT +{ + NMHDR hdr; + HDC hDC; + LPCWSTR lpString; + int nCount; + LPRECT lpRect; + UINT uFormat; + BOOL fLink; +} NMCUSTOMTEXT, *LPNMCUSTOMTEXT; + +#endif // _WIN32_IE >= 0x0600 +//====== WM_NOTIFY codes (NMHDR.code values) ================================== + +#define NM_FIRST (0U- 0U) // generic to all controls +#define NM_LAST (0U- 99U) + +#define LVN_FIRST (0U-100U) // listview +#define LVN_LAST (0U-199U) + +// Property sheet reserved (0U-200U) - (0U-299U) - see prsht.h + +#define HDN_FIRST (0U-300U) // header +#define HDN_LAST (0U-399U) + +#define TVN_FIRST (0U-400U) // treeview +#define TVN_LAST (0U-499U) + +#define TTN_FIRST (0U-520U) // tooltips +#define TTN_LAST (0U-549U) + +#define TCN_FIRST (0U-550U) // tab control +#define TCN_LAST (0U-580U) + +// Shell reserved (0U-580U) - (0U-589U) + +#define CDN_FIRST (0U-601U) // common dialog (new) +#define CDN_LAST (0U-699U) + +#define TBN_FIRST (0U-700U) // toolbar +#define TBN_LAST (0U-720U) + +#define UDN_FIRST (0U-721U) // updown +#define UDN_LAST (0U-729U) +#define DTN_FIRST (0U-740U) // datetimepick +#define DTN_LAST (0U-745U) // DTN_FIRST - 5 + +#define MCN_FIRST (0U-746U) // monthcal +#define MCN_LAST (0U-752U) // MCN_FIRST - 6 + +#define DTN_FIRST2 (0U-753U) // datetimepick2 +#define DTN_LAST2 (0U-799U) + +#define CBEN_FIRST (0U-800U) // combo box ex +#define CBEN_LAST (0U-830U) + +#define RBN_FIRST (0U-831U) // rebar +#define RBN_LAST (0U-859U) + +#define IPN_FIRST (0U-860U) // internet address +#define IPN_LAST (0U-879U) // internet address + +#define SBN_FIRST (0U-880U) // status bar +#define SBN_LAST (0U-899U) + +#define PGN_FIRST (0U-900U) // Pager Control +#define PGN_LAST (0U-950U) + +#ifndef WMN_FIRST +#define WMN_FIRST (0U-1000U) +#define WMN_LAST (0U-1200U) +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define BCN_FIRST (0U-1250U) +#define BCN_LAST (0U-1350U) +#endif + + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TRBN_FIRST (0U-1501U) // trackbar +#define TRBN_LAST (0U-1519U) +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#define EN_FIRST (0U-1520U) // edit control +#define EN_LAST (0U-1540U) +#endif + +#define MSGF_COMMCTRL_BEGINDRAG 0x4200 +#define MSGF_COMMCTRL_SIZEHEADER 0x4201 +#define MSGF_COMMCTRL_DRAGSELECT 0x4202 +#define MSGF_COMMCTRL_TOOLBARCUST 0x4203 + +//==================== CUSTOM DRAW ========================================== + + +// custom draw return flags +// values under 0x00010000 are reserved for global custom draw values. +// above that are for specific controls +#define CDRF_DODEFAULT 0x00000000 +#define CDRF_NEWFONT 0x00000002 +#define CDRF_SKIPDEFAULT 0x00000004 +#define CDRF_DOERASE 0x00000008 // draw the background +#define CDRF_SKIPPOSTPAINT 0x00000100 // don't draw the focus rect + +#define CDRF_NOTIFYPOSTPAINT 0x00000010 +#define CDRF_NOTIFYITEMDRAW 0x00000020 +#define CDRF_NOTIFYSUBITEMDRAW 0x00000020 // flags are the same, we can distinguish by context +#define CDRF_NOTIFYPOSTERASE 0x00000040 + +// drawstage flags +// values under 0x00010000 are reserved for global custom draw values. +// above that are for specific controls +#define CDDS_PREPAINT 0x00000001 +#define CDDS_POSTPAINT 0x00000002 +#define CDDS_PREERASE 0x00000003 +#define CDDS_POSTERASE 0x00000004 +// the 0x000010000 bit means it's individual item specific +#define CDDS_ITEM 0x00010000 +#define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT) +#define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT) +#define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE) +#define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE) +#define CDDS_SUBITEM 0x00020000 + +// itemState flags +#define CDIS_SELECTED 0x0001 +#define CDIS_GRAYED 0x0002 +#define CDIS_DISABLED 0x0004 +#define CDIS_CHECKED 0x0008 +#define CDIS_FOCUS 0x0010 +#define CDIS_DEFAULT 0x0020 +#define CDIS_HOT 0x0040 +#define CDIS_MARKED 0x0080 +#define CDIS_INDETERMINATE 0x0100 +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define CDIS_SHOWKEYBOARDCUES 0x0200 +#endif +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define CDIS_NEARHOT 0x0400 +#define CDIS_OTHERSIDEHOT 0x0800 +#define CDIS_DROPHILITED 0x1000 +#endif + +typedef struct tagNMCUSTOMDRAWINFO +{ + NMHDR hdr; + DWORD dwDrawStage; + HDC hdc; + RECT rc; + DWORD_PTR dwItemSpec; // this is control specific, but it's how to specify an item. valid only with CDDS_ITEM bit set + UINT uItemState; + LPARAM lItemlParam; +} NMCUSTOMDRAW, *LPNMCUSTOMDRAW; + +typedef struct tagNMTTCUSTOMDRAW +{ + NMCUSTOMDRAW nmcd; + UINT uDrawFlags; +} NMTTCUSTOMDRAW, *LPNMTTCUSTOMDRAW; + +typedef struct tagNMCUSTOMSPLITRECTINFO +{ + NMHDR hdr; + RECT rcClient; + RECT rcButton; + RECT rcSplit; +} NMCUSTOMSPLITRECTINFO, *LPNMCUSTOMSPLITRECTINFO; + +#define NM_GETCUSTOMSPLITRECT (BCN_FIRST + 0x0003) + + +//====== IMAGE APIS =========================================================== + +#ifndef NOIMAGEAPIS + +#define CLR_NONE 0xFFFFFFFFL +#define CLR_DEFAULT 0xFF000000L + + +#ifndef HIMAGELIST +struct _IMAGELIST; +typedef struct _IMAGELIST* HIMAGELIST; +#endif + +#ifndef IMAGELISTDRAWPARAMS +typedef struct _IMAGELISTDRAWPARAMS +{ + DWORD cbSize; + HIMAGELIST himl; + int i; + HDC hdcDst; + int x; + int y; + int cx; + int cy; + int xBitmap; // x offest from the upperleft of bitmap + int yBitmap; // y offset from the upperleft of bitmap + COLORREF rgbBk; + COLORREF rgbFg; + UINT fStyle; + DWORD dwRop; +#if (_WIN32_IE >= 0x0501) + DWORD fState; + DWORD Frame; + COLORREF crEffect; +#endif +} IMAGELISTDRAWPARAMS, *LPIMAGELISTDRAWPARAMS; + +#define IMAGELISTDRAWPARAMS_V3_SIZE CCSIZEOF_STRUCT(IMAGELISTDRAWPARAMS, dwRop) + +#endif + +#define ILC_MASK 0x00000001 +#define ILC_COLOR 0x00000000 +#define ILC_COLORDDB 0x000000FE +#define ILC_COLOR4 0x00000004 +#define ILC_COLOR8 0x00000008 +#define ILC_COLOR16 0x00000010 +#define ILC_COLOR24 0x00000018 +#define ILC_COLOR32 0x00000020 +#define ILC_PALETTE 0x00000800 // (not implemented) +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define ILC_MIRROR 0x00002000 // Mirror the icons contained, if the process is mirrored +#define ILC_PERITEMMIRROR 0x00008000 // Causes the mirroring code to mirror each item when inserting a set of images, verses the whole strip +#endif +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define ILC_ORIGINALSIZE 0x00010000 // Imagelist should accept smaller than set images and apply OriginalSize based on image added +#define ILC_HIGHQUALITYSCALE 0x00020000 // Imagelist should enable use of the high quality scaler. +#endif +WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Create(int cx, int cy, UINT flags, int cInitial, int cGrow); +WINCOMMCTRLAPI BOOL WINAPI ImageList_Destroy(_In_opt_ HIMAGELIST himl); + +WINCOMMCTRLAPI int WINAPI ImageList_GetImageCount(_In_ HIMAGELIST himl); +WINCOMMCTRLAPI BOOL WINAPI ImageList_SetImageCount(_In_ HIMAGELIST himl, _In_ UINT uNewCount); + +WINCOMMCTRLAPI int WINAPI ImageList_Add(_In_ HIMAGELIST himl, _In_ HBITMAP hbmImage, _In_opt_ HBITMAP hbmMask); + +WINCOMMCTRLAPI int WINAPI ImageList_ReplaceIcon(_In_ HIMAGELIST himl, _In_ int i, _In_ HICON hicon); +WINCOMMCTRLAPI COLORREF WINAPI ImageList_SetBkColor(_In_ HIMAGELIST himl, _In_ COLORREF clrBk); +WINCOMMCTRLAPI COLORREF WINAPI ImageList_GetBkColor(_In_ HIMAGELIST himl); +WINCOMMCTRLAPI BOOL WINAPI ImageList_SetOverlayImage(_In_ HIMAGELIST himl, _In_ int iImage, _In_ int iOverlay); + +#define ImageList_AddIcon(himl, hicon) ImageList_ReplaceIcon(himl, -1, hicon) + +#define ILD_NORMAL 0x00000000 +#define ILD_TRANSPARENT 0x00000001 +#define ILD_MASK 0x00000010 +#define ILD_IMAGE 0x00000020 +#define ILD_ROP 0x00000040 +#define ILD_BLEND25 0x00000002 +#define ILD_BLEND50 0x00000004 +#define ILD_OVERLAYMASK 0x00000F00 +#define INDEXTOOVERLAYMASK(i) ((i) << 8) +#define ILD_PRESERVEALPHA 0x00001000 // This preserves the alpha channel in dest +#define ILD_SCALE 0x00002000 // Causes the image to be scaled to cx, cy instead of clipped +#define ILD_DPISCALE 0x00004000 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define ILD_ASYNC 0x00008000 +#endif + +#define ILD_SELECTED ILD_BLEND50 +#define ILD_FOCUS ILD_BLEND25 +#define ILD_BLEND ILD_BLEND50 +#define CLR_HILIGHT CLR_DEFAULT + +#define ILS_NORMAL 0x00000000 +#define ILS_GLOW 0x00000001 +#define ILS_SHADOW 0x00000002 +#define ILS_SATURATE 0x00000004 +#define ILS_ALPHA 0x00000008 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define ILGT_NORMAL 0x00000000 +#define ILGT_ASYNC 0x00000001 +#endif + +WINCOMMCTRLAPI BOOL WINAPI ImageList_Draw(_In_ HIMAGELIST himl, _In_ int i, _In_ HDC hdcDst, _In_ int x, _In_ int y, _In_ UINT fStyle); + + +#ifdef _WIN32 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define HBITMAP_CALLBACK ((HBITMAP)-1) // only for SparseImageList +#endif + +WINCOMMCTRLAPI BOOL WINAPI ImageList_Replace(_In_ HIMAGELIST himl, _In_ int i, _In_ HBITMAP hbmImage, _In_opt_ HBITMAP hbmMask); + +WINCOMMCTRLAPI int WINAPI ImageList_AddMasked(_In_ HIMAGELIST himl, _In_ HBITMAP hbmImage, _In_ COLORREF crMask); +WINCOMMCTRLAPI BOOL WINAPI ImageList_DrawEx(_In_ HIMAGELIST himl, _In_ int i, _In_ HDC hdcDst, _In_ int x, _In_ int y, _In_ int dx, _In_ int dy, _In_ COLORREF rgbBk, _In_ COLORREF rgbFg, _In_ UINT fStyle); +WINCOMMCTRLAPI BOOL WINAPI ImageList_DrawIndirect(_In_ IMAGELISTDRAWPARAMS* pimldp); +WINCOMMCTRLAPI BOOL WINAPI ImageList_Remove(_In_ HIMAGELIST himl, _In_ int i); +WINCOMMCTRLAPI HICON WINAPI ImageList_GetIcon(_In_ HIMAGELIST himl, _In_ int i, _In_ UINT flags); +WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_LoadImageA(HINSTANCE hi, LPCSTR lpbmp, int cx, int cGrow, COLORREF crMask, UINT uType, UINT uFlags); +WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_LoadImageW(HINSTANCE hi, LPCWSTR lpbmp, int cx, int cGrow, COLORREF crMask, UINT uType, UINT uFlags); + +#ifdef UNICODE +#define ImageList_LoadImage ImageList_LoadImageW +#else +#define ImageList_LoadImage ImageList_LoadImageA +#endif + +#define ILCF_MOVE (0x00000000) +#define ILCF_SWAP (0x00000001) +WINCOMMCTRLAPI BOOL WINAPI ImageList_Copy(_In_ HIMAGELIST himlDst, _In_ int iDst, _In_ HIMAGELIST himlSrc, _In_ int iSrc, _In_ UINT uFlags); + +WINCOMMCTRLAPI BOOL WINAPI ImageList_BeginDrag(_In_ HIMAGELIST himlTrack, _In_ int iTrack, _In_ int dxHotspot, _In_ int dyHotspot); +WINCOMMCTRLAPI void WINAPI ImageList_EndDrag(void); +WINCOMMCTRLAPI BOOL WINAPI ImageList_DragEnter(HWND hwndLock, int x, int y); +WINCOMMCTRLAPI BOOL WINAPI ImageList_DragLeave(HWND hwndLock); +WINCOMMCTRLAPI BOOL WINAPI ImageList_DragMove(int x, int y); +WINCOMMCTRLAPI BOOL WINAPI ImageList_SetDragCursorImage(_In_ HIMAGELIST himlDrag, _In_ int iDrag, _In_ int dxHotspot, _In_ int dyHotspot); + +WINCOMMCTRLAPI BOOL WINAPI ImageList_DragShowNolock(BOOL fShow); +_Success_(return != NULL) WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_GetDragImage(_Out_opt_ POINT *ppt, _Out_opt_ POINT *pptHotspot); + +#define ImageList_RemoveAll(himl) ImageList_Remove(himl, -1) +#define ImageList_ExtractIcon(hi, himl, i) ImageList_GetIcon(himl, i, 0) +#define ImageList_LoadBitmap(hi, lpbmp, cx, cGrow, crMask) ImageList_LoadImage(hi, lpbmp, cx, cGrow, crMask, IMAGE_BITMAP, 0) + +struct IStream; + +WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Read(_In_ struct IStream *pstm); +WINCOMMCTRLAPI BOOL WINAPI ImageList_Write(_In_ HIMAGELIST himl, _In_ struct IStream *pstm); + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define ILP_NORMAL 0 // Writes or reads the stream using new sematics for this version of comctl32 +#define ILP_DOWNLEVEL 1 // Write or reads the stream using downlevel sematics. + + +WINCOMMCTRLAPI HRESULT WINAPI ImageList_ReadEx(_In_ DWORD dwFlags, _In_ struct IStream *pstm, _In_ REFIID riid, _Outptr_ PVOID* ppv); +WINCOMMCTRLAPI HRESULT WINAPI ImageList_WriteEx(_In_ HIMAGELIST himl, _In_ DWORD dwFlags, _In_ struct IStream *pstm); +#endif + + +#ifndef IMAGEINFO +typedef struct _IMAGEINFO +{ + HBITMAP hbmImage; + HBITMAP hbmMask; + int Unused1; + int Unused2; + RECT rcImage; +} IMAGEINFO, *LPIMAGEINFO; +#endif + +_Success_(return) WINCOMMCTRLAPI BOOL WINAPI ImageList_GetIconSize(_In_ HIMAGELIST himl, _Out_opt_ int *cx, _Out_opt_ int *cy); +_Success_(return) WINCOMMCTRLAPI BOOL WINAPI ImageList_SetIconSize(_In_ HIMAGELIST himl, _In_ int cx, _In_ int cy); +_Success_(return) WINCOMMCTRLAPI BOOL WINAPI ImageList_GetImageInfo(_In_ HIMAGELIST himl, _In_ int i, _Out_ IMAGEINFO *pImageInfo); +WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Merge(_In_ HIMAGELIST himl1, _In_ int i1, _In_ HIMAGELIST himl2, _In_ int i2, _In_ int dx, _In_ int dy); +WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Duplicate(_In_ HIMAGELIST himl); + + +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +WINCOMMCTRLAPI HRESULT WINAPI HIMAGELIST_QueryInterface(_In_ HIMAGELIST himl, _In_ REFIID riid, _Outptr_ void **ppv); + +#ifdef __cplusplus +FORCEINLINE HIMAGELIST IImageListToHIMAGELIST(struct IImageList *himl) +{ + return reinterpret_cast(himl); +} +#else +#define IImageListToHIMAGELIST(himl) ((HIMAGELIST)(himl)) +#endif + +#endif + + +#endif + + +//====== HEADER CONTROL ======================================================= + +#ifndef NOHEADER + +#ifdef _WIN32 +#define WC_HEADERA "SysHeader32" +#define WC_HEADERW L"SysHeader32" + +#ifdef UNICODE +#define WC_HEADER WC_HEADERW +#else +#define WC_HEADER WC_HEADERA +#endif + +#else +#define WC_HEADER "SysHeader" +#endif + +// begin_r_commctrl + +#define HDS_HORZ 0x0000 +#define HDS_BUTTONS 0x0002 +#define HDS_HOTTRACK 0x0004 +#define HDS_HIDDEN 0x0008 + +#define HDS_DRAGDROP 0x0040 +#define HDS_FULLDRAG 0x0080 +#define HDS_FILTERBAR 0x0100 + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define HDS_FLAT 0x0200 +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define HDS_CHECKBOXES 0x0400 +#define HDS_NOSIZING 0x0800 +#define HDS_OVERFLOW 0x1000 +#endif +// end_r_commctrl + +#define HDFT_ISSTRING 0x0000 // HD_ITEM.pvFilter points to a HD_TEXTFILTER +#define HDFT_ISNUMBER 0x0001 // HD_ITEM.pvFilter points to a INT +#define HDFT_ISDATE 0x0002 // HD_ITEM.pvFilter points to a DWORD (dos date) + +#define HDFT_HASNOVALUE 0x8000 // clear the filter, by setting this bit + +#ifdef UNICODE +#define HD_TEXTFILTER HD_TEXTFILTERW +#define HDTEXTFILTER HD_TEXTFILTERW +#define LPHD_TEXTFILTER LPHD_TEXTFILTERW +#define LPHDTEXTFILTER LPHD_TEXTFILTERW +#else +#define HD_TEXTFILTER HD_TEXTFILTERA +#define HDTEXTFILTER HD_TEXTFILTERA +#define LPHD_TEXTFILTER LPHD_TEXTFILTERA +#define LPHDTEXTFILTER LPHD_TEXTFILTERA +#endif + +typedef struct _HD_TEXTFILTERA +{ + LPSTR pszText; // [in] pointer to the buffer containing the filter (ANSI) + INT cchTextMax; // [in] max size of buffer/edit control buffer +} HD_TEXTFILTERA, *LPHD_TEXTFILTERA; + +typedef struct _HD_TEXTFILTERW +{ + LPWSTR pszText; // [in] pointer to the buffer contiaining the filter (UNICODE) + INT cchTextMax; // [in] max size of buffer/edit control buffer +} HD_TEXTFILTERW, *LPHD_TEXTFILTERW; + +#define HD_ITEMA HDITEMA +#define HD_ITEMW HDITEMW +#define HD_ITEM HDITEM + +typedef struct _HD_ITEMA +{ + UINT mask; + int cxy; + LPSTR pszText; + HBITMAP hbm; + int cchTextMax; + int fmt; + LPARAM lParam; + int iImage; // index of bitmap in ImageList + int iOrder; // where to draw this item + UINT type; // [in] filter type (defined what pvFilter is a pointer to) + void * pvFilter; // [in] filter data see above +#if (NTDDI_VERSION >= NTDDI_VISTA) + UINT state; +#endif +} HDITEMA, *LPHDITEMA; + +#define HDITEMA_V1_SIZE CCSIZEOF_STRUCT(HDITEMA, lParam) +#define HDITEMW_V1_SIZE CCSIZEOF_STRUCT(HDITEMW, lParam) + + +typedef struct _HD_ITEMW +{ + UINT mask; + int cxy; + LPWSTR pszText; + HBITMAP hbm; + int cchTextMax; + int fmt; + LPARAM lParam; + int iImage; // index of bitmap in ImageList + int iOrder; + UINT type; // [in] filter type (defined what pvFilter is a pointer to) + void * pvFilter; // [in] fillter data see above +#if (NTDDI_VERSION >= NTDDI_VISTA) + UINT state; +#endif +} HDITEMW, *LPHDITEMW; + +#ifdef UNICODE +#define HDITEM HDITEMW +#define LPHDITEM LPHDITEMW +#define HDITEM_V1_SIZE HDITEMW_V1_SIZE +#else +#define HDITEM HDITEMA +#define LPHDITEM LPHDITEMA +#define HDITEM_V1_SIZE HDITEMA_V1_SIZE +#endif + + +#define HDI_WIDTH 0x0001 +#define HDI_HEIGHT HDI_WIDTH +#define HDI_TEXT 0x0002 +#define HDI_FORMAT 0x0004 +#define HDI_LPARAM 0x0008 +#define HDI_BITMAP 0x0010 +#define HDI_IMAGE 0x0020 +#define HDI_DI_SETITEM 0x0040 +#define HDI_ORDER 0x0080 +#define HDI_FILTER 0x0100 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define HDI_STATE 0x0200 +#endif + +// HDF_ flags are shared with the listview control (LVCFMT_ flags) + +#define HDF_LEFT 0x0000 // Same as LVCFMT_LEFT +#define HDF_RIGHT 0x0001 // Same as LVCFMT_RIGHT +#define HDF_CENTER 0x0002 // Same as LVCFMT_CENTER +#define HDF_JUSTIFYMASK 0x0003 // Same as LVCFMT_JUSTIFYMASK +#define HDF_RTLREADING 0x0004 // Same as LVCFMT_LEFT + +#define HDF_BITMAP 0x2000 +#define HDF_STRING 0x4000 +#define HDF_OWNERDRAW 0x8000 // Same as LVCFMT_COL_HAS_IMAGES +#define HDF_IMAGE 0x0800 // Same as LVCFMT_IMAGE +#define HDF_BITMAP_ON_RIGHT 0x1000 // Same as LVCFMT_BITMAP_ON_RIGHT + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define HDF_SORTUP 0x0400 +#define HDF_SORTDOWN 0x0200 +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define HDF_CHECKBOX 0x0040 +#define HDF_CHECKED 0x0080 +#define HDF_FIXEDWIDTH 0x0100 // Can't resize the column; same as LVCFMT_FIXED_WIDTH +#define HDF_SPLITBUTTON 0x1000000 // Column is a split button; same as LVCFMT_SPLITBUTTON +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define HDIS_FOCUSED 0x00000001 +#endif + +#define HDM_GETITEMCOUNT (HDM_FIRST + 0) +#define Header_GetItemCount(hwndHD) \ + (int)SNDMSG((hwndHD), HDM_GETITEMCOUNT, 0, 0L) + + +#define HDM_INSERTITEMA (HDM_FIRST + 1) +#define HDM_INSERTITEMW (HDM_FIRST + 10) + +#ifdef UNICODE +#define HDM_INSERTITEM HDM_INSERTITEMW +#else +#define HDM_INSERTITEM HDM_INSERTITEMA +#endif + +#define Header_InsertItem(hwndHD, i, phdi) \ + (int)SNDMSG((hwndHD), HDM_INSERTITEM, (WPARAM)(int)(i), (LPARAM)(const HD_ITEM *)(phdi)) + + +#define HDM_DELETEITEM (HDM_FIRST + 2) +#define Header_DeleteItem(hwndHD, i) \ + (BOOL)SNDMSG((hwndHD), HDM_DELETEITEM, (WPARAM)(int)(i), 0L) + + +#define HDM_GETITEMA (HDM_FIRST + 3) +#define HDM_GETITEMW (HDM_FIRST + 11) + +#ifdef UNICODE +#define HDM_GETITEM HDM_GETITEMW +#else +#define HDM_GETITEM HDM_GETITEMA +#endif + +#define Header_GetItem(hwndHD, i, phdi) \ + (BOOL)SNDMSG((hwndHD), HDM_GETITEM, (WPARAM)(int)(i), (LPARAM)(HD_ITEM *)(phdi)) + + +#define HDM_SETITEMA (HDM_FIRST + 4) +#define HDM_SETITEMW (HDM_FIRST + 12) + +#ifdef UNICODE +#define HDM_SETITEM HDM_SETITEMW +#else +#define HDM_SETITEM HDM_SETITEMA +#endif + +#define Header_SetItem(hwndHD, i, phdi) \ + (BOOL)SNDMSG((hwndHD), HDM_SETITEM, (WPARAM)(int)(i), (LPARAM)(const HD_ITEM *)(phdi)) + +#define HD_LAYOUT HDLAYOUT + +typedef struct _HD_LAYOUT +{ + RECT *prc; + WINDOWPOS *pwpos; +} HDLAYOUT, *LPHDLAYOUT; + + +#define HDM_LAYOUT (HDM_FIRST + 5) +#define Header_Layout(hwndHD, playout) \ + (BOOL)SNDMSG((hwndHD), HDM_LAYOUT, 0, (LPARAM)(HD_LAYOUT *)(playout)) + + +#define HHT_NOWHERE 0x0001 +#define HHT_ONHEADER 0x0002 +#define HHT_ONDIVIDER 0x0004 +#define HHT_ONDIVOPEN 0x0008 +#define HHT_ONFILTER 0x0010 +#define HHT_ONFILTERBUTTON 0x0020 +#define HHT_ABOVE 0x0100 +#define HHT_BELOW 0x0200 +#define HHT_TORIGHT 0x0400 +#define HHT_TOLEFT 0x0800 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define HHT_ONITEMSTATEICON 0x1000 +#define HHT_ONDROPDOWN 0x2000 +#define HHT_ONOVERFLOW 0x4000 +#endif + +#define HD_HITTESTINFO HDHITTESTINFO + +typedef struct _HD_HITTESTINFO +{ + POINT pt; + UINT flags; + int iItem; +} HDHITTESTINFO, *LPHDHITTESTINFO; + +#define HDSIL_NORMAL 0 +#define HDSIL_STATE 1 + +#define HDM_HITTEST (HDM_FIRST + 6) + +#define HDM_GETITEMRECT (HDM_FIRST + 7) +#define Header_GetItemRect(hwnd, iItem, lprc) \ + (BOOL)SNDMSG((hwnd), HDM_GETITEMRECT, (WPARAM)(iItem), (LPARAM)(lprc)) + +#define HDM_SETIMAGELIST (HDM_FIRST + 8) +#define Header_SetImageList(hwnd, himl) \ + (HIMAGELIST)SNDMSG((hwnd), HDM_SETIMAGELIST, HDSIL_NORMAL, (LPARAM)(himl)) +#define Header_SetStateImageList(hwnd, himl) \ + (HIMAGELIST)SNDMSG((hwnd), HDM_SETIMAGELIST, HDSIL_STATE, (LPARAM)(himl)) + +#define HDM_GETIMAGELIST (HDM_FIRST + 9) +#define Header_GetImageList(hwnd) \ + (HIMAGELIST)SNDMSG((hwnd), HDM_GETIMAGELIST, HDSIL_NORMAL, 0) +#define Header_GetStateImageList(hwnd) \ + (HIMAGELIST)SNDMSG((hwnd), HDM_GETIMAGELIST, HDSIL_STATE, 0) + +#define HDM_ORDERTOINDEX (HDM_FIRST + 15) +#define Header_OrderToIndex(hwnd, i) \ + (int)SNDMSG((hwnd), HDM_ORDERTOINDEX, (WPARAM)(i), 0) + +#define HDM_CREATEDRAGIMAGE (HDM_FIRST + 16) // wparam = which item (by index) +#define Header_CreateDragImage(hwnd, i) \ + (HIMAGELIST)SNDMSG((hwnd), HDM_CREATEDRAGIMAGE, (WPARAM)(i), 0) + +#define HDM_GETORDERARRAY (HDM_FIRST + 17) +#define Header_GetOrderArray(hwnd, iCount, lpi) \ + (BOOL)SNDMSG((hwnd), HDM_GETORDERARRAY, (WPARAM)(iCount), (LPARAM)(lpi)) + +#define HDM_SETORDERARRAY (HDM_FIRST + 18) +#define Header_SetOrderArray(hwnd, iCount, lpi) \ + (BOOL)SNDMSG((hwnd), HDM_SETORDERARRAY, (WPARAM)(iCount), (LPARAM)(lpi)) +// lparam = int array of size HDM_GETITEMCOUNT +// the array specifies the order that all items should be displayed. +// e.g. { 2, 0, 1} +// says the index 2 item should be shown in the 0ths position +// index 0 should be shown in the 1st position +// index 1 should be shown in the 2nd position + + +#define HDM_SETHOTDIVIDER (HDM_FIRST + 19) +#define Header_SetHotDivider(hwnd, fPos, dw) \ + (int)SNDMSG((hwnd), HDM_SETHOTDIVIDER, (WPARAM)(fPos), (LPARAM)(dw)) +// convenience message for external dragdrop +// wParam = BOOL specifying whether the lParam is a dwPos of the cursor +// position or the index of which divider to hotlight +// lParam = depends on wParam (-1 and wParm = FALSE turns off hotlight) + +#define HDM_SETBITMAPMARGIN (HDM_FIRST + 20) +#define Header_SetBitmapMargin(hwnd, iWidth) \ + (int)SNDMSG((hwnd), HDM_SETBITMAPMARGIN, (WPARAM)(iWidth), 0) + +#define HDM_GETBITMAPMARGIN (HDM_FIRST + 21) +#define Header_GetBitmapMargin(hwnd) \ + (int)SNDMSG((hwnd), HDM_GETBITMAPMARGIN, 0, 0) + +#define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define Header_SetUnicodeFormat(hwnd, fUnicode) \ + (BOOL)SNDMSG((hwnd), HDM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0) + +#define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define Header_GetUnicodeFormat(hwnd) \ + (BOOL)SNDMSG((hwnd), HDM_GETUNICODEFORMAT, 0, 0) + +#define HDM_SETFILTERCHANGETIMEOUT (HDM_FIRST+22) +#define Header_SetFilterChangeTimeout(hwnd, i) \ + (int)SNDMSG((hwnd), HDM_SETFILTERCHANGETIMEOUT, 0, (LPARAM)(i)) + +#define HDM_EDITFILTER (HDM_FIRST+23) +#define Header_EditFilter(hwnd, i, fDiscardChanges) \ + (int)SNDMSG((hwnd), HDM_EDITFILTER, (WPARAM)(i), MAKELPARAM(fDiscardChanges, 0)) + +// Clear filter takes -1 as a column value to indicate that all +// the filter should be cleared. When this happens you will +// only receive a single filter changed notification. + +#define HDM_CLEARFILTER (HDM_FIRST+24) +#define Header_ClearFilter(hwnd, i) \ + (int)SNDMSG((hwnd), HDM_CLEARFILTER, (WPARAM)(i), 0) +#define Header_ClearAllFilters(hwnd) \ + (int)SNDMSG((hwnd), HDM_CLEARFILTER, (WPARAM)-1, 0) + +#if (_WIN32_IE >= 0x0600) +#define HDM_TRANSLATEACCELERATOR CCM_TRANSLATEACCELERATOR +#endif + +#if(NTDDI_VERSION >= NTDDI_VISTA) + +#define HDM_GETITEMDROPDOWNRECT (HDM_FIRST+25) // rect of item's drop down button +#define Header_GetItemDropDownRect(hwnd, iItem, lprc) \ + (BOOL)SNDMSG((hwnd), HDM_GETITEMDROPDOWNRECT, (WPARAM)(iItem), (LPARAM)(lprc)) + +#define HDM_GETOVERFLOWRECT (HDM_FIRST+26) // rect of overflow button +#define Header_GetOverflowRect(hwnd, lprc) \ + (BOOL)SNDMSG((hwnd), HDM_GETOVERFLOWRECT, 0, (LPARAM)(lprc)) + +#define HDM_GETFOCUSEDITEM (HDM_FIRST+27) +#define Header_GetFocusedItem(hwnd) \ + (int)SNDMSG((hwnd), HDM_GETFOCUSEDITEM, (WPARAM)(0), (LPARAM)(0)) + +#define HDM_SETFOCUSEDITEM (HDM_FIRST+28) +#define Header_SetFocusedItem(hwnd, iItem) \ + (BOOL)SNDMSG((hwnd), HDM_SETFOCUSEDITEM, (WPARAM)(0), (LPARAM)(iItem)) + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#define HDN_ITEMCHANGINGA (HDN_FIRST-0) +#define HDN_ITEMCHANGINGW (HDN_FIRST-20) +#define HDN_ITEMCHANGEDA (HDN_FIRST-1) +#define HDN_ITEMCHANGEDW (HDN_FIRST-21) +#define HDN_ITEMCLICKA (HDN_FIRST-2) +#define HDN_ITEMCLICKW (HDN_FIRST-22) +#define HDN_ITEMDBLCLICKA (HDN_FIRST-3) +#define HDN_ITEMDBLCLICKW (HDN_FIRST-23) +#define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5) +#define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25) +#define HDN_BEGINTRACKA (HDN_FIRST-6) +#define HDN_BEGINTRACKW (HDN_FIRST-26) +#define HDN_ENDTRACKA (HDN_FIRST-7) +#define HDN_ENDTRACKW (HDN_FIRST-27) +#define HDN_TRACKA (HDN_FIRST-8) +#define HDN_TRACKW (HDN_FIRST-28) +#define HDN_GETDISPINFOA (HDN_FIRST-9) +#define HDN_GETDISPINFOW (HDN_FIRST-29) +#define HDN_BEGINDRAG (HDN_FIRST-10) +#define HDN_ENDDRAG (HDN_FIRST-11) +#define HDN_FILTERCHANGE (HDN_FIRST-12) +#define HDN_FILTERBTNCLICK (HDN_FIRST-13) + +#if (_WIN32_IE >= 0x0600) +#define HDN_BEGINFILTEREDIT (HDN_FIRST-14) +#define HDN_ENDFILTEREDIT (HDN_FIRST-15) +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define HDN_ITEMSTATEICONCLICK (HDN_FIRST-16) +#define HDN_ITEMKEYDOWN (HDN_FIRST-17) +#define HDN_DROPDOWN (HDN_FIRST-18) +#define HDN_OVERFLOWCLICK (HDN_FIRST-19) +#endif + +#ifdef UNICODE +#define HDN_ITEMCHANGING HDN_ITEMCHANGINGW +#define HDN_ITEMCHANGED HDN_ITEMCHANGEDW +#define HDN_ITEMCLICK HDN_ITEMCLICKW +#define HDN_ITEMDBLCLICK HDN_ITEMDBLCLICKW +#define HDN_DIVIDERDBLCLICK HDN_DIVIDERDBLCLICKW +#define HDN_BEGINTRACK HDN_BEGINTRACKW +#define HDN_ENDTRACK HDN_ENDTRACKW +#define HDN_TRACK HDN_TRACKW +#define HDN_GETDISPINFO HDN_GETDISPINFOW +#else +#define HDN_ITEMCHANGING HDN_ITEMCHANGINGA +#define HDN_ITEMCHANGED HDN_ITEMCHANGEDA +#define HDN_ITEMCLICK HDN_ITEMCLICKA +#define HDN_ITEMDBLCLICK HDN_ITEMDBLCLICKA +#define HDN_DIVIDERDBLCLICK HDN_DIVIDERDBLCLICKA +#define HDN_BEGINTRACK HDN_BEGINTRACKA +#define HDN_ENDTRACK HDN_ENDTRACKA +#define HDN_TRACK HDN_TRACKA +#define HDN_GETDISPINFO HDN_GETDISPINFOA +#endif + +#define HD_NOTIFYA NMHEADERA +#define HD_NOTIFYW NMHEADERW +#define HD_NOTIFY NMHEADER + +typedef struct tagNMHEADERA +{ + NMHDR hdr; + int iItem; + int iButton; + HDITEMA *pitem; +} NMHEADERA, *LPNMHEADERA; + + +typedef struct tagNMHEADERW +{ + NMHDR hdr; + int iItem; + int iButton; + HDITEMW *pitem; +} NMHEADERW, *LPNMHEADERW; + +#ifdef UNICODE +#define NMHEADER NMHEADERW +#define LPNMHEADER LPNMHEADERW +#else +#define NMHEADER NMHEADERA +#define LPNMHEADER LPNMHEADERA +#endif + +typedef struct tagNMHDDISPINFOW +{ + NMHDR hdr; + int iItem; + UINT mask; + LPWSTR pszText; + int cchTextMax; + int iImage; + LPARAM lParam; +} NMHDDISPINFOW, *LPNMHDDISPINFOW; + +typedef struct tagNMHDDISPINFOA +{ + NMHDR hdr; + int iItem; + UINT mask; + LPSTR pszText; + int cchTextMax; + int iImage; + LPARAM lParam; +} NMHDDISPINFOA, *LPNMHDDISPINFOA; + + +#ifdef UNICODE +#define NMHDDISPINFO NMHDDISPINFOW +#define LPNMHDDISPINFO LPNMHDDISPINFOW +#else +#define NMHDDISPINFO NMHDDISPINFOA +#define LPNMHDDISPINFO LPNMHDDISPINFOA +#endif + +typedef struct tagNMHDFILTERBTNCLICK +{ + NMHDR hdr; + INT iItem; + RECT rc; +} NMHDFILTERBTNCLICK, *LPNMHDFILTERBTNCLICK; + +#endif // NOHEADER + + +//====== TOOLBAR CONTROL ====================================================== + +#ifndef NOTOOLBAR + +#ifdef _WIN32 +#define TOOLBARCLASSNAMEW L"ToolbarWindow32" +#define TOOLBARCLASSNAMEA "ToolbarWindow32" + +#ifdef UNICODE +#define TOOLBARCLASSNAME TOOLBARCLASSNAMEW +#else +#define TOOLBARCLASSNAME TOOLBARCLASSNAMEA +#endif + +#else +#define TOOLBARCLASSNAME "ToolbarWindow" +#endif + +typedef struct _TBBUTTON { + int iBitmap; + int idCommand; + BYTE fsState; + BYTE fsStyle; +#ifdef _WIN64 + BYTE bReserved[6]; // padding for alignment +#elif defined(_WIN32) + BYTE bReserved[2]; // padding for alignment +#endif + DWORD_PTR dwData; + INT_PTR iString; +} TBBUTTON, NEAR* PTBBUTTON, *LPTBBUTTON; +typedef const TBBUTTON *LPCTBBUTTON; + + +typedef struct _COLORMAP { + COLORREF from; + COLORREF to; +} COLORMAP, *LPCOLORMAP; + +WINCOMMCTRLAPI HWND WINAPI CreateToolbarEx(HWND hwnd, DWORD ws, UINT wID, int nBitmaps, + HINSTANCE hBMInst, UINT_PTR wBMID, LPCTBBUTTON lpButtons, + int iNumButtons, int dxButton, int dyButton, + int dxBitmap, int dyBitmap, UINT uStructSize); + +WINCOMMCTRLAPI HBITMAP WINAPI CreateMappedBitmap(HINSTANCE hInstance, INT_PTR idBitmap, + UINT wFlags, _In_opt_ LPCOLORMAP lpColorMap, + int iNumMaps); + +#define CMB_MASKED 0x02 +#define TBSTATE_CHECKED 0x01 +#define TBSTATE_PRESSED 0x02 +#define TBSTATE_ENABLED 0x04 +#define TBSTATE_HIDDEN 0x08 +#define TBSTATE_INDETERMINATE 0x10 +#define TBSTATE_WRAP 0x20 +#define TBSTATE_ELLIPSES 0x40 +#define TBSTATE_MARKED 0x80 + +// begin_r_commctrl + +#define TBSTYLE_BUTTON 0x0000 // obsolete; use BTNS_BUTTON instead +#define TBSTYLE_SEP 0x0001 // obsolete; use BTNS_SEP instead +#define TBSTYLE_CHECK 0x0002 // obsolete; use BTNS_CHECK instead +#define TBSTYLE_GROUP 0x0004 // obsolete; use BTNS_GROUP instead +#define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK) // obsolete; use BTNS_CHECKGROUP instead +#define TBSTYLE_DROPDOWN 0x0008 // obsolete; use BTNS_DROPDOWN instead +#define TBSTYLE_AUTOSIZE 0x0010 // obsolete; use BTNS_AUTOSIZE instead +#define TBSTYLE_NOPREFIX 0x0020 // obsolete; use BTNS_NOPREFIX instead + +#define TBSTYLE_TOOLTIPS 0x0100 +#define TBSTYLE_WRAPABLE 0x0200 +#define TBSTYLE_ALTDRAG 0x0400 +#define TBSTYLE_FLAT 0x0800 +#define TBSTYLE_LIST 0x1000 +#define TBSTYLE_CUSTOMERASE 0x2000 +#define TBSTYLE_REGISTERDROP 0x4000 +#define TBSTYLE_TRANSPARENT 0x8000 + +// end_r_commctrl + +#define TBSTYLE_EX_DRAWDDARROWS 0x00000001 + +// begin_r_commctrl + +#define BTNS_BUTTON TBSTYLE_BUTTON // 0x0000 +#define BTNS_SEP TBSTYLE_SEP // 0x0001 +#define BTNS_CHECK TBSTYLE_CHECK // 0x0002 +#define BTNS_GROUP TBSTYLE_GROUP // 0x0004 +#define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP // (TBSTYLE_GROUP | TBSTYLE_CHECK) +#define BTNS_DROPDOWN TBSTYLE_DROPDOWN // 0x0008 +#define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE // 0x0010; automatically calculate the cx of the button +#define BTNS_NOPREFIX TBSTYLE_NOPREFIX // 0x0020; this button should not have accel prefix +#define BTNS_SHOWTEXT 0x0040 // ignored unless TBSTYLE_EX_MIXEDBUTTONS is set +#define BTNS_WHOLEDROPDOWN 0x0080 // draw drop-down arrow, but without split arrow section + +// end_r_commctrl + +#define TBSTYLE_EX_MIXEDBUTTONS 0x00000008 +#define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010 // don't show partially obscured buttons + +#define TBSTYLE_EX_MULTICOLUMN 0x00000002 // conflicts w/ TBSTYLE_WRAPABLE +#define TBSTYLE_EX_VERTICAL 0x00000004 + + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define TBSTYLE_EX_DOUBLEBUFFER 0x00000080 // Double Buffer the toolbar +#endif + + +// Custom Draw Structure +typedef struct _NMTBCUSTOMDRAW { + NMCUSTOMDRAW nmcd; + HBRUSH hbrMonoDither; + HBRUSH hbrLines; // For drawing lines on buttons + HPEN hpenLines; // For drawing lines on buttons + + COLORREF clrText; // Color of text + COLORREF clrMark; // Color of text bk when marked. (only if TBSTATE_MARKED) + COLORREF clrTextHighlight; // Color of text when highlighted + COLORREF clrBtnFace; // Background of the button + COLORREF clrBtnHighlight; // 3D highlight + COLORREF clrHighlightHotTrack; // In conjunction with fHighlightHotTrack + // will cause button to highlight like a menu + RECT rcText; // Rect for text + + int nStringBkMode; + int nHLStringBkMode; +#if (NTDDI_VERSION >= NTDDI_WINXP) + int iListGap; +#endif +} NMTBCUSTOMDRAW, * LPNMTBCUSTOMDRAW; + +// Toolbar custom draw return flags +#define TBCDRF_NOEDGES 0x00010000 // Don't draw button edges +#define TBCDRF_HILITEHOTTRACK 0x00020000 // Use color of the button bk when hottracked +#define TBCDRF_NOOFFSET 0x00040000 // Don't offset button if pressed +#define TBCDRF_NOMARK 0x00080000 // Don't draw default highlight of image/text for TBSTATE_MARKED +#define TBCDRF_NOETCHEDEFFECT 0x00100000 // Don't draw etched effect for disabled items + +#define TBCDRF_BLENDICON 0x00200000 // Use ILD_BLEND50 on the icon image +#define TBCDRF_NOBACKGROUND 0x00400000 // Use ILD_BLEND50 on the icon image +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TBCDRF_USECDCOLORS 0x00800000 // Use CustomDrawColors to RenderText regardless of VisualStyle +#endif + +#define TB_ENABLEBUTTON (WM_USER + 1) +#define TB_CHECKBUTTON (WM_USER + 2) +#define TB_PRESSBUTTON (WM_USER + 3) +#define TB_HIDEBUTTON (WM_USER + 4) +#define TB_INDETERMINATE (WM_USER + 5) +#define TB_MARKBUTTON (WM_USER + 6) +#define TB_ISBUTTONENABLED (WM_USER + 9) +#define TB_ISBUTTONCHECKED (WM_USER + 10) +#define TB_ISBUTTONPRESSED (WM_USER + 11) +#define TB_ISBUTTONHIDDEN (WM_USER + 12) +#define TB_ISBUTTONINDETERMINATE (WM_USER + 13) +#define TB_ISBUTTONHIGHLIGHTED (WM_USER + 14) +#define TB_SETSTATE (WM_USER + 17) +#define TB_GETSTATE (WM_USER + 18) +#define TB_ADDBITMAP (WM_USER + 19) + +#ifdef _WIN32 +typedef struct tagTBADDBITMAP { + HINSTANCE hInst; + UINT_PTR nID; +} TBADDBITMAP, *LPTBADDBITMAP; + +#define HINST_COMMCTRL ((HINSTANCE)-1) +#define IDB_STD_SMALL_COLOR 0 +#define IDB_STD_LARGE_COLOR 1 +#define IDB_VIEW_SMALL_COLOR 4 +#define IDB_VIEW_LARGE_COLOR 5 +#define IDB_HIST_SMALL_COLOR 8 +#define IDB_HIST_LARGE_COLOR 9 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define IDB_HIST_NORMAL 12 +#define IDB_HIST_HOT 13 +#define IDB_HIST_DISABLED 14 +#define IDB_HIST_PRESSED 15 +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +// icon indexes for standard bitmap + +#define STD_CUT 0 +#define STD_COPY 1 +#define STD_PASTE 2 +#define STD_UNDO 3 +#define STD_REDOW 4 +#define STD_DELETE 5 +#define STD_FILENEW 6 +#define STD_FILEOPEN 7 +#define STD_FILESAVE 8 +#define STD_PRINTPRE 9 +#define STD_PROPERTIES 10 +#define STD_HELP 11 +#define STD_FIND 12 +#define STD_REPLACE 13 +#define STD_PRINT 14 + +// icon indexes for standard view bitmap + +#define VIEW_LARGEICONS 0 +#define VIEW_SMALLICONS 1 +#define VIEW_LIST 2 +#define VIEW_DETAILS 3 +#define VIEW_SORTNAME 4 +#define VIEW_SORTSIZE 5 +#define VIEW_SORTDATE 6 +#define VIEW_SORTTYPE 7 +#define VIEW_PARENTFOLDER 8 +#define VIEW_NETCONNECT 9 +#define VIEW_NETDISCONNECT 10 +#define VIEW_NEWFOLDER 11 +#define VIEW_VIEWMENU 12 + +#define HIST_BACK 0 +#define HIST_FORWARD 1 +#define HIST_FAVORITES 2 +#define HIST_ADDTOFAVORITES 3 +#define HIST_VIEWTREE 4 + +#endif + +#define TB_ADDBUTTONSA (WM_USER + 20) +#define TB_INSERTBUTTONA (WM_USER + 21) + +#define TB_DELETEBUTTON (WM_USER + 22) +#define TB_GETBUTTON (WM_USER + 23) +#define TB_BUTTONCOUNT (WM_USER + 24) +#define TB_COMMANDTOINDEX (WM_USER + 25) + +#ifdef _WIN32 + +typedef struct tagTBSAVEPARAMSA { + HKEY hkr; + LPCSTR pszSubKey; + LPCSTR pszValueName; +} TBSAVEPARAMSA, *LPTBSAVEPARAMSA; + +typedef struct tagTBSAVEPARAMSW { + HKEY hkr; + LPCWSTR pszSubKey; + LPCWSTR pszValueName; +} TBSAVEPARAMSW, *LPTBSAVEPARAMW; + +#ifdef UNICODE +#define TBSAVEPARAMS TBSAVEPARAMSW +#define LPTBSAVEPARAMS LPTBSAVEPARAMSW +#else +#define TBSAVEPARAMS TBSAVEPARAMSA +#define LPTBSAVEPARAMS LPTBSAVEPARAMSA +#endif + +#endif // _WIN32 + +#define TB_SAVERESTOREA (WM_USER + 26) +#define TB_SAVERESTOREW (WM_USER + 76) +#define TB_CUSTOMIZE (WM_USER + 27) +#define TB_ADDSTRINGA (WM_USER + 28) +#define TB_ADDSTRINGW (WM_USER + 77) +#define TB_GETITEMRECT (WM_USER + 29) +#define TB_BUTTONSTRUCTSIZE (WM_USER + 30) +#define TB_SETBUTTONSIZE (WM_USER + 31) +#define TB_SETBITMAPSIZE (WM_USER + 32) +#define TB_AUTOSIZE (WM_USER + 33) +#define TB_GETTOOLTIPS (WM_USER + 35) +#define TB_SETTOOLTIPS (WM_USER + 36) +#define TB_SETPARENT (WM_USER + 37) +#define TB_SETROWS (WM_USER + 39) +#define TB_GETROWS (WM_USER + 40) +#define TB_SETCMDID (WM_USER + 42) +#define TB_CHANGEBITMAP (WM_USER + 43) +#define TB_GETBITMAP (WM_USER + 44) +#define TB_GETBUTTONTEXTA (WM_USER + 45) +#define TB_GETBUTTONTEXTW (WM_USER + 75) +#define TB_REPLACEBITMAP (WM_USER + 46) +#define TB_SETINDENT (WM_USER + 47) +#define TB_SETIMAGELIST (WM_USER + 48) +#define TB_GETIMAGELIST (WM_USER + 49) +#define TB_LOADIMAGES (WM_USER + 50) +#define TB_GETRECT (WM_USER + 51) // wParam is the Cmd instead of index +#define TB_SETHOTIMAGELIST (WM_USER + 52) +#define TB_GETHOTIMAGELIST (WM_USER + 53) +#define TB_SETDISABLEDIMAGELIST (WM_USER + 54) +#define TB_GETDISABLEDIMAGELIST (WM_USER + 55) +#define TB_SETSTYLE (WM_USER + 56) +#define TB_GETSTYLE (WM_USER + 57) +#define TB_GETBUTTONSIZE (WM_USER + 58) +#define TB_SETBUTTONWIDTH (WM_USER + 59) +#define TB_SETMAXTEXTROWS (WM_USER + 60) +#define TB_GETTEXTROWS (WM_USER + 61) + +#ifdef UNICODE +#define TB_GETBUTTONTEXT TB_GETBUTTONTEXTW +#define TB_SAVERESTORE TB_SAVERESTOREW +#define TB_ADDSTRING TB_ADDSTRINGW +#else +#define TB_GETBUTTONTEXT TB_GETBUTTONTEXTA +#define TB_SAVERESTORE TB_SAVERESTOREA +#define TB_ADDSTRING TB_ADDSTRINGA +#endif +#define TB_GETOBJECT (WM_USER + 62) // wParam == IID, lParam void **ppv +#define TB_GETHOTITEM (WM_USER + 71) +#define TB_SETHOTITEM (WM_USER + 72) // wParam == iHotItem +#define TB_SETANCHORHIGHLIGHT (WM_USER + 73) // wParam == TRUE/FALSE +#define TB_GETANCHORHIGHLIGHT (WM_USER + 74) +#define TB_MAPACCELERATORA (WM_USER + 78) // wParam == ch, lParam int * pidBtn + +typedef struct { + int iButton; + DWORD dwFlags; +} TBINSERTMARK, * LPTBINSERTMARK; +#define TBIMHT_AFTER 0x00000001 // TRUE = insert After iButton, otherwise before +#define TBIMHT_BACKGROUND 0x00000002 // TRUE iff missed buttons completely + +#define TB_GETINSERTMARK (WM_USER + 79) // lParam == LPTBINSERTMARK +#define TB_SETINSERTMARK (WM_USER + 80) // lParam == LPTBINSERTMARK +#define TB_INSERTMARKHITTEST (WM_USER + 81) // wParam == LPPOINT lParam == LPTBINSERTMARK +#define TB_MOVEBUTTON (WM_USER + 82) +#define TB_GETMAXSIZE (WM_USER + 83) // lParam == LPSIZE +#define TB_SETEXTENDEDSTYLE (WM_USER + 84) // For TBSTYLE_EX_* +#define TB_GETEXTENDEDSTYLE (WM_USER + 85) // For TBSTYLE_EX_* +#define TB_GETPADDING (WM_USER + 86) +#define TB_SETPADDING (WM_USER + 87) +#define TB_SETINSERTMARKCOLOR (WM_USER + 88) +#define TB_GETINSERTMARKCOLOR (WM_USER + 89) + +#define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME // lParam is color scheme +#define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME // fills in COLORSCHEME pointed to by lParam + +#define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT + +#define TB_MAPACCELERATORW (WM_USER + 90) // wParam == ch, lParam int * pidBtn +#ifdef UNICODE +#define TB_MAPACCELERATOR TB_MAPACCELERATORW +#else +#define TB_MAPACCELERATOR TB_MAPACCELERATORA +#endif + +typedef struct { + HINSTANCE hInstOld; + UINT_PTR nIDOld; + HINSTANCE hInstNew; + UINT_PTR nIDNew; + int nButtons; +} TBREPLACEBITMAP, *LPTBREPLACEBITMAP; + +#ifdef _WIN32 + +#define TBBF_LARGE 0x0001 + +#define TB_GETBITMAPFLAGS (WM_USER + 41) + +#define TBIF_IMAGE 0x00000001 +#define TBIF_TEXT 0x00000002 +#define TBIF_STATE 0x00000004 +#define TBIF_STYLE 0x00000008 +#define TBIF_LPARAM 0x00000010 +#define TBIF_COMMAND 0x00000020 +#define TBIF_SIZE 0x00000040 + +#define TBIF_BYINDEX 0x80000000 // this specifies that the wparam in Get/SetButtonInfo is an index, not id + +typedef struct { + UINT cbSize; + DWORD dwMask; + int idCommand; + int iImage; + BYTE fsState; + BYTE fsStyle; + WORD cx; + DWORD_PTR lParam; + LPSTR pszText; + int cchText; +} TBBUTTONINFOA, *LPTBBUTTONINFOA; + +typedef struct { + UINT cbSize; + DWORD dwMask; + int idCommand; + int iImage; + BYTE fsState; + BYTE fsStyle; + WORD cx; + DWORD_PTR lParam; + LPWSTR pszText; + int cchText; +} TBBUTTONINFOW, *LPTBBUTTONINFOW; + +#ifdef UNICODE +#define TBBUTTONINFO TBBUTTONINFOW +#define LPTBBUTTONINFO LPTBBUTTONINFOW +#else +#define TBBUTTONINFO TBBUTTONINFOA +#define LPTBBUTTONINFO LPTBBUTTONINFOA +#endif + +// BUTTONINFO APIs do NOT support the string pool. +#define TB_GETBUTTONINFOW (WM_USER + 63) +#define TB_SETBUTTONINFOW (WM_USER + 64) +#define TB_GETBUTTONINFOA (WM_USER + 65) +#define TB_SETBUTTONINFOA (WM_USER + 66) +#ifdef UNICODE +#define TB_GETBUTTONINFO TB_GETBUTTONINFOW +#define TB_SETBUTTONINFO TB_SETBUTTONINFOW +#else +#define TB_GETBUTTONINFO TB_GETBUTTONINFOA +#define TB_SETBUTTONINFO TB_SETBUTTONINFOA +#endif + + +#define TB_INSERTBUTTONW (WM_USER + 67) +#define TB_ADDBUTTONSW (WM_USER + 68) + +#define TB_HITTEST (WM_USER + 69) + +// New post Win95/NT4 for InsertButton and AddButton. if iString member +// is a pointer to a string, it will be handled as a string like listview +// (although LPSTR_TEXTCALLBACK is not supported). +#ifdef UNICODE +#define TB_INSERTBUTTON TB_INSERTBUTTONW +#define TB_ADDBUTTONS TB_ADDBUTTONSW +#else +#define TB_INSERTBUTTON TB_INSERTBUTTONA +#define TB_ADDBUTTONS TB_ADDBUTTONSA +#endif + +#define TB_SETDRAWTEXTFLAGS (WM_USER + 70) // wParam == mask lParam == bit values + +#define TB_GETSTRINGW (WM_USER + 91) +#define TB_GETSTRINGA (WM_USER + 92) +#ifdef UNICODE +#define TB_GETSTRING TB_GETSTRINGW +#else +#define TB_GETSTRING TB_GETSTRINGA +#endif + +#define TB_SETBOUNDINGSIZE (WM_USER + 93) +#define TB_SETHOTITEM2 (WM_USER + 94) // wParam == iHotItem, lParam = dwFlags +#define TB_HASACCELERATOR (WM_USER + 95) // wParam == char, lParam = &iCount +#define TB_SETLISTGAP (WM_USER + 96) +#define TB_GETIMAGELISTCOUNT (WM_USER + 98) +#define TB_GETIDEALSIZE (WM_USER + 99) // wParam == fHeight, lParam = psize +// before using WM_USER + 103, recycle old space above (WM_USER + 97) +#define TB_TRANSLATEACCELERATOR CCM_TRANSLATEACCELERATOR + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define TBMF_PAD 0x00000001 +#define TBMF_BARPAD 0x00000002 +#define TBMF_BUTTONSPACING 0x00000004 + +typedef struct { + UINT cbSize; + DWORD dwMask; + + int cxPad; // PAD + int cyPad; + int cxBarPad; // BARPAD + int cyBarPad; + int cxButtonSpacing; // BUTTONSPACING + int cyButtonSpacing; +} TBMETRICS, * LPTBMETRICS; + +#define TB_GETMETRICS (WM_USER + 101) +#define TB_SETMETRICS (WM_USER + 102) +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TB_GETITEMDROPDOWNRECT (WM_USER + 103) // Rect of item's drop down button +#define TB_SETPRESSEDIMAGELIST (WM_USER + 104) +#define TB_GETPRESSEDIMAGELIST (WM_USER + 105) +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define TB_SETWINDOWTHEME CCM_SETWINDOWTHEME +#endif + +#define TBN_GETBUTTONINFOA (TBN_FIRST-0) +#define TBN_BEGINDRAG (TBN_FIRST-1) +#define TBN_ENDDRAG (TBN_FIRST-2) +#define TBN_BEGINADJUST (TBN_FIRST-3) +#define TBN_ENDADJUST (TBN_FIRST-4) +#define TBN_RESET (TBN_FIRST-5) +#define TBN_QUERYINSERT (TBN_FIRST-6) +#define TBN_QUERYDELETE (TBN_FIRST-7) +#define TBN_TOOLBARCHANGE (TBN_FIRST-8) +#define TBN_CUSTHELP (TBN_FIRST-9) +#define TBN_DROPDOWN (TBN_FIRST - 10) +#define TBN_GETOBJECT (TBN_FIRST - 12) + +// Structure for TBN_HOTITEMCHANGE notification +// +typedef struct tagNMTBHOTITEM +{ + NMHDR hdr; + int idOld; + int idNew; + DWORD dwFlags; // HICF_* +} NMTBHOTITEM, * LPNMTBHOTITEM; + +// Hot item change flags +#define HICF_OTHER 0x00000000 +#define HICF_MOUSE 0x00000001 // Triggered by mouse +#define HICF_ARROWKEYS 0x00000002 // Triggered by arrow keys +#define HICF_ACCELERATOR 0x00000004 // Triggered by accelerator +#define HICF_DUPACCEL 0x00000008 // This accelerator is not unique +#define HICF_ENTERING 0x00000010 // idOld is invalid +#define HICF_LEAVING 0x00000020 // idNew is invalid +#define HICF_RESELECT 0x00000040 // hot item reselected +#define HICF_LMOUSE 0x00000080 // left mouse button selected +#define HICF_TOGGLEDROPDOWN 0x00000100 // Toggle button's dropdown state + + +#define TBN_HOTITEMCHANGE (TBN_FIRST - 13) +#define TBN_DRAGOUT (TBN_FIRST - 14) // this is sent when the user clicks down on a button then drags off the button +#define TBN_DELETINGBUTTON (TBN_FIRST - 15) // uses TBNOTIFY +#define TBN_GETDISPINFOA (TBN_FIRST - 16) // This is sent when the toolbar needs some display information +#define TBN_GETDISPINFOW (TBN_FIRST - 17) // This is sent when the toolbar needs some display information +#define TBN_GETINFOTIPA (TBN_FIRST - 18) +#define TBN_GETINFOTIPW (TBN_FIRST - 19) +#define TBN_GETBUTTONINFOW (TBN_FIRST - 20) +#define TBN_RESTORE (TBN_FIRST - 21) +#define TBN_SAVE (TBN_FIRST - 22) +#define TBN_INITCUSTOMIZE (TBN_FIRST - 23) +#define TBNRF_HIDEHELP 0x00000001 +#define TBNRF_ENDCUSTOMIZE 0x00000002 +#define TBN_WRAPHOTITEM (TBN_FIRST - 24) +#define TBN_DUPACCELERATOR (TBN_FIRST - 25) +#define TBN_WRAPACCELERATOR (TBN_FIRST - 26) +#define TBN_DRAGOVER (TBN_FIRST - 27) +#define TBN_MAPACCELERATOR (TBN_FIRST - 28) + + + +typedef struct tagNMTBSAVE +{ + NMHDR hdr; + DWORD* pData; + DWORD* pCurrent; + UINT cbData; + int iItem; + int cButtons; + TBBUTTON tbButton; +} NMTBSAVE, *LPNMTBSAVE; + +typedef struct tagNMTBRESTORE +{ + NMHDR hdr; + DWORD* pData; + DWORD* pCurrent; + UINT cbData; + int iItem; + int cButtons; + int cbBytesPerRecord; + TBBUTTON tbButton; +} NMTBRESTORE, *LPNMTBRESTORE; + +typedef struct tagNMTBGETINFOTIPA +{ + NMHDR hdr; + LPSTR pszText; + int cchTextMax; + int iItem; + LPARAM lParam; +} NMTBGETINFOTIPA, *LPNMTBGETINFOTIPA; + +typedef struct tagNMTBGETINFOTIPW +{ + NMHDR hdr; + LPWSTR pszText; + int cchTextMax; + int iItem; + LPARAM lParam; +} NMTBGETINFOTIPW, *LPNMTBGETINFOTIPW; + +#ifdef UNICODE +#define TBN_GETINFOTIP TBN_GETINFOTIPW +#define NMTBGETINFOTIP NMTBGETINFOTIPW +#define LPNMTBGETINFOTIP LPNMTBGETINFOTIPW +#else +#define TBN_GETINFOTIP TBN_GETINFOTIPA +#define NMTBGETINFOTIP NMTBGETINFOTIPA +#define LPNMTBGETINFOTIP LPNMTBGETINFOTIPA +#endif + +#define TBNF_IMAGE 0x00000001 +#define TBNF_TEXT 0x00000002 +#define TBNF_DI_SETITEM 0x10000000 + +typedef struct { + NMHDR hdr; + DWORD dwMask; // [in] Specifies the values requested .[out] Client ask the data to be set for future use + int idCommand; // [in] id of button we're requesting info for + DWORD_PTR lParam; // [in] lParam of button + int iImage; // [out] image index + LPSTR pszText; // [out] new text for item + int cchText; // [in] size of buffer pointed to by pszText +} NMTBDISPINFOA, *LPNMTBDISPINFOA; + +typedef struct { + NMHDR hdr; + DWORD dwMask; //[in] Specifies the values requested .[out] Client ask the data to be set for future use + int idCommand; // [in] id of button we're requesting info for + DWORD_PTR lParam; // [in] lParam of button + int iImage; // [out] image index + LPWSTR pszText; // [out] new text for item + int cchText; // [in] size of buffer pointed to by pszText +} NMTBDISPINFOW, *LPNMTBDISPINFOW; + + +#ifdef UNICODE +#define TBN_GETDISPINFO TBN_GETDISPINFOW +#define NMTBDISPINFO NMTBDISPINFOW +#define LPNMTBDISPINFO LPNMTBDISPINFOW +#else +#define TBN_GETDISPINFO TBN_GETDISPINFOA +#define NMTBDISPINFO NMTBDISPINFOA +#define LPNMTBDISPINFO LPNMTBDISPINFOA +#endif + +// Return codes for TBN_DROPDOWN +#define TBDDRET_DEFAULT 0 +#define TBDDRET_NODEFAULT 1 +#define TBDDRET_TREATPRESSED 2 // Treat as a standard press button + + +#ifdef UNICODE +#define TBN_GETBUTTONINFO TBN_GETBUTTONINFOW +#else +#define TBN_GETBUTTONINFO TBN_GETBUTTONINFOA +#endif + +#define TBNOTIFYA NMTOOLBARA +#define TBNOTIFYW NMTOOLBARW +#define LPTBNOTIFYA LPNMTOOLBARA +#define LPTBNOTIFYW LPNMTOOLBARW + +#define TBNOTIFY NMTOOLBAR +#define LPTBNOTIFY LPNMTOOLBAR + +typedef struct tagNMTOOLBARA { + NMHDR hdr; + int iItem; + TBBUTTON tbButton; + int cchText; + LPSTR pszText; + RECT rcButton; +} NMTOOLBARA, *LPNMTOOLBARA; + +typedef struct tagNMTOOLBARW { + NMHDR hdr; + int iItem; + TBBUTTON tbButton; + int cchText; + LPWSTR pszText; + RECT rcButton; +} NMTOOLBARW, *LPNMTOOLBARW; + +#ifdef UNICODE +#define NMTOOLBAR NMTOOLBARW +#define LPNMTOOLBAR LPNMTOOLBARW +#else +#define NMTOOLBAR NMTOOLBARA +#define LPNMTOOLBAR LPNMTOOLBARA +#endif + +#endif + +#endif // NOTOOLBAR + + +//====== REBAR CONTROL ======================================================== + +#ifndef NOREBAR + +#ifdef _WIN32 +#define REBARCLASSNAMEW L"ReBarWindow32" +#define REBARCLASSNAMEA "ReBarWindow32" + +#ifdef UNICODE +#define REBARCLASSNAME REBARCLASSNAMEW +#else +#define REBARCLASSNAME REBARCLASSNAMEA +#endif + +#else +#define REBARCLASSNAME "ReBarWindow" +#endif + +#define RBIM_IMAGELIST 0x00000001 + +// begin_r_commctrl + +#define RBS_TOOLTIPS 0x00000100 +#define RBS_VARHEIGHT 0x00000200 +#define RBS_BANDBORDERS 0x00000400 +#define RBS_FIXEDORDER 0x00000800 +#define RBS_REGISTERDROP 0x00001000 +#define RBS_AUTOSIZE 0x00002000 +#define RBS_VERTICALGRIPPER 0x00004000 // this always has the vertical gripper (default for horizontal mode) +#define RBS_DBLCLKTOGGLE 0x00008000 +// end_r_commctrl + +typedef struct tagREBARINFO +{ + UINT cbSize; + UINT fMask; +#ifndef NOIMAGEAPIS + HIMAGELIST himl; +#else + HANDLE himl; +#endif +} REBARINFO, *LPREBARINFO; + + +#define RBBS_BREAK 0x00000001 // break to new line +#define RBBS_FIXEDSIZE 0x00000002 // band can't be sized +#define RBBS_CHILDEDGE 0x00000004 // edge around top & bottom of child window +#define RBBS_HIDDEN 0x00000008 // don't show +#define RBBS_NOVERT 0x00000010 // don't show when vertical +#define RBBS_FIXEDBMP 0x00000020 // bitmap doesn't move during band resize +#define RBBS_VARIABLEHEIGHT 0x00000040 // allow autosizing of this child vertically +#define RBBS_GRIPPERALWAYS 0x00000080 // always show the gripper +#define RBBS_NOGRIPPER 0x00000100 // never show the gripper +#define RBBS_USECHEVRON 0x00000200 // display drop-down button for this band if it's sized smaller than ideal width +#define RBBS_HIDETITLE 0x00000400 // keep band title hidden +#define RBBS_TOPALIGN 0x00000800 // keep band in top row +#if (NTDDI_VERSION >= NTDDI_VISTA) +#endif + + + +#define RBBIM_STYLE 0x00000001 +#define RBBIM_COLORS 0x00000002 +#define RBBIM_TEXT 0x00000004 +#define RBBIM_IMAGE 0x00000008 +#define RBBIM_CHILD 0x00000010 +#define RBBIM_CHILDSIZE 0x00000020 +#define RBBIM_SIZE 0x00000040 +#define RBBIM_BACKGROUND 0x00000080 +#define RBBIM_ID 0x00000100 +#define RBBIM_IDEALSIZE 0x00000200 +#define RBBIM_LPARAM 0x00000400 +#define RBBIM_HEADERSIZE 0x00000800 // control the size of the header +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define RBBIM_CHEVRONLOCATION 0x00001000 +#define RBBIM_CHEVRONSTATE 0x00002000 +#endif + +typedef struct tagREBARBANDINFOA +{ + UINT cbSize; + UINT fMask; + UINT fStyle; + COLORREF clrFore; + COLORREF clrBack; + LPSTR lpText; + UINT cch; + int iImage; + HWND hwndChild; + UINT cxMinChild; + UINT cyMinChild; + UINT cx; + HBITMAP hbmBack; + UINT wID; + UINT cyChild; + UINT cyMaxChild; + UINT cyIntegral; + UINT cxIdeal; + LPARAM lParam; + UINT cxHeader; +#if (NTDDI_VERSION >= NTDDI_VISTA) + RECT rcChevronLocation; // the rect is in client co-ord wrt hwndChild + UINT uChevronState; // STATE_SYSTEM_* +#endif +} REBARBANDINFOA, *LPREBARBANDINFOA; +typedef REBARBANDINFOA CONST *LPCREBARBANDINFOA; + +#define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, wID) +#define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID) + +#define REBARBANDINFOA_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, cxHeader) +#define REBARBANDINFOW_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, cxHeader) + +typedef struct tagREBARBANDINFOW +{ + UINT cbSize; + UINT fMask; + UINT fStyle; + COLORREF clrFore; + COLORREF clrBack; + LPWSTR lpText; + UINT cch; + int iImage; + HWND hwndChild; + UINT cxMinChild; + UINT cyMinChild; + UINT cx; + HBITMAP hbmBack; + UINT wID; + UINT cyChild; + UINT cyMaxChild; + UINT cyIntegral; + UINT cxIdeal; + LPARAM lParam; + UINT cxHeader; +#if (NTDDI_VERSION >= NTDDI_VISTA) + RECT rcChevronLocation; // the rect is in client co-ord wrt hwndChild + UINT uChevronState; // STATE_SYSTEM_* +#endif +} REBARBANDINFOW, *LPREBARBANDINFOW; +typedef REBARBANDINFOW CONST *LPCREBARBANDINFOW; + +#ifdef UNICODE +#define REBARBANDINFO REBARBANDINFOW +#define LPREBARBANDINFO LPREBARBANDINFOW +#define LPCREBARBANDINFO LPCREBARBANDINFOW +#define REBARBANDINFO_V3_SIZE REBARBANDINFOW_V3_SIZE +#define REBARBANDINFO_V6_SIZE REBARBANDINFOW_V6_SIZE +#else +#define REBARBANDINFO REBARBANDINFOA +#define LPREBARBANDINFO LPREBARBANDINFOA +#define LPCREBARBANDINFO LPCREBARBANDINFOA +#define REBARBANDINFO_V3_SIZE REBARBANDINFOA_V3_SIZE +#define REBARBANDINFO_V6_SIZE REBARBANDINFOA_V6_SIZE +#endif + +#define RB_INSERTBANDA (WM_USER + 1) +#define RB_DELETEBAND (WM_USER + 2) +#define RB_GETBARINFO (WM_USER + 3) +#define RB_SETBARINFO (WM_USER + 4) +#define RB_SETBANDINFOA (WM_USER + 6) +#define RB_SETPARENT (WM_USER + 7) +#define RB_HITTEST (WM_USER + 8) +#define RB_GETRECT (WM_USER + 9) +#define RB_INSERTBANDW (WM_USER + 10) +#define RB_SETBANDINFOW (WM_USER + 11) +#define RB_GETBANDCOUNT (WM_USER + 12) +#define RB_GETROWCOUNT (WM_USER + 13) +#define RB_GETROWHEIGHT (WM_USER + 14) +#define RB_IDTOINDEX (WM_USER + 16) // wParam == id +#define RB_GETTOOLTIPS (WM_USER + 17) +#define RB_SETTOOLTIPS (WM_USER + 18) +#define RB_SETBKCOLOR (WM_USER + 19) // sets the default BK color +#define RB_GETBKCOLOR (WM_USER + 20) // defaults to CLR_NONE +#define RB_SETTEXTCOLOR (WM_USER + 21) +#define RB_GETTEXTCOLOR (WM_USER + 22) // defaults to 0x00000000 + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define RBSTR_CHANGERECT 0x0001 // flags for RB_SIZETORECT +#endif + +#define RB_SIZETORECT (WM_USER + 23) // resize the rebar/break bands and such to this rect (lparam) + +#define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME // lParam is color scheme +#define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME // fills in COLORSCHEME pointed to by lParam + +#ifdef UNICODE +#define RB_INSERTBAND RB_INSERTBANDW +#define RB_SETBANDINFO RB_SETBANDINFOW +#else +#define RB_INSERTBAND RB_INSERTBANDA +#define RB_SETBANDINFO RB_SETBANDINFOA +#endif + +// for manual drag control +// lparam == cursor pos + // -1 means do it yourself. + // -2 means use what you had saved before +#define RB_BEGINDRAG (WM_USER + 24) +#define RB_ENDDRAG (WM_USER + 25) +#define RB_DRAGMOVE (WM_USER + 26) +#define RB_GETBARHEIGHT (WM_USER + 27) +#define RB_GETBANDINFOW (WM_USER + 28) +#define RB_GETBANDINFOA (WM_USER + 29) + +#ifdef UNICODE +#define RB_GETBANDINFO RB_GETBANDINFOW +#else +#define RB_GETBANDINFO RB_GETBANDINFOA +#endif + +#define RB_MINIMIZEBAND (WM_USER + 30) +#define RB_MAXIMIZEBAND (WM_USER + 31) + +#define RB_GETDROPTARGET (CCM_GETDROPTARGET) + +#define RB_GETBANDBORDERS (WM_USER + 34) // returns in lparam = lprc the amount of edges added to band wparam + +#define RB_SHOWBAND (WM_USER + 35) // show/hide band +#define RB_SETPALETTE (WM_USER + 37) +#define RB_GETPALETTE (WM_USER + 38) +#define RB_MOVEBAND (WM_USER + 39) + +#define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define RB_GETBANDMARGINS (WM_USER + 40) +#define RB_SETWINDOWTHEME CCM_SETWINDOWTHEME +#endif + +#if (_WIN32_IE >= 0x0600) +#define RB_SETEXTENDEDSTYLE (WM_USER + 41) +#define RB_GETEXTENDEDSTYLE (WM_USER + 42) +#endif // _WIN32_IE >= 0x0600 + +#define RB_PUSHCHEVRON (WM_USER + 43) + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define RB_SETBANDWIDTH (WM_USER + 44) // set width for docked band +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#define RBN_HEIGHTCHANGE (RBN_FIRST - 0) + +#define RBN_GETOBJECT (RBN_FIRST - 1) +#define RBN_LAYOUTCHANGED (RBN_FIRST - 2) +#define RBN_AUTOSIZE (RBN_FIRST - 3) +#define RBN_BEGINDRAG (RBN_FIRST - 4) +#define RBN_ENDDRAG (RBN_FIRST - 5) +#define RBN_DELETINGBAND (RBN_FIRST - 6) // Uses NMREBAR +#define RBN_DELETEDBAND (RBN_FIRST - 7) // Uses NMREBAR +#define RBN_CHILDSIZE (RBN_FIRST - 8) + +#define RBN_CHEVRONPUSHED (RBN_FIRST - 10) + +#if (_WIN32_IE >= 0x0600) +#define RBN_SPLITTERDRAG (RBN_FIRST - 11) +#endif // _WIN32_IE >= 0x0600 + + +#define RBN_MINMAX (RBN_FIRST - 21) + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define RBN_AUTOBREAK (RBN_FIRST - 22) +#endif + +typedef struct tagNMREBARCHILDSIZE +{ + NMHDR hdr; + UINT uBand; + UINT wID; + RECT rcChild; + RECT rcBand; +} NMREBARCHILDSIZE, *LPNMREBARCHILDSIZE; + +typedef struct tagNMREBAR +{ + NMHDR hdr; + DWORD dwMask; // RBNM_* + UINT uBand; + UINT fStyle; + UINT wID; + LPARAM lParam; +} NMREBAR, *LPNMREBAR; + +// Mask flags for NMREBAR +#define RBNM_ID 0x00000001 +#define RBNM_STYLE 0x00000002 +#define RBNM_LPARAM 0x00000004 + + +typedef struct tagNMRBAUTOSIZE +{ + NMHDR hdr; + BOOL fChanged; + RECT rcTarget; + RECT rcActual; +} NMRBAUTOSIZE, *LPNMRBAUTOSIZE; + +typedef struct tagNMREBARCHEVRON +{ + NMHDR hdr; + UINT uBand; + UINT wID; + LPARAM lParam; + RECT rc; + LPARAM lParamNM; +} NMREBARCHEVRON, *LPNMREBARCHEVRON; + +#if (_WIN32_IE >= 0x0600) +typedef struct tagNMREBARSPLITTER +{ + NMHDR hdr; + RECT rcSizing; +} NMREBARSPLITTER, *LPNMREBARSPLITTER; +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define RBAB_AUTOSIZE 0x0001 // These are not flags and are all mutually exclusive +#define RBAB_ADDBAND 0x0002 + +typedef struct tagNMREBARAUTOBREAK +{ + NMHDR hdr; + UINT uBand; + UINT wID; + LPARAM lParam; + UINT uMsg; + UINT fStyleCurrent; + BOOL fAutoBreak; +} NMREBARAUTOBREAK, *LPNMREBARAUTOBREAK; +#endif + +#define RBHT_NOWHERE 0x0001 +#define RBHT_CAPTION 0x0002 +#define RBHT_CLIENT 0x0003 +#define RBHT_GRABBER 0x0004 +#define RBHT_CHEVRON 0x0008 +#if (_WIN32_IE >= 0x0600) +#define RBHT_SPLITTER 0x0010 +#endif + +typedef struct _RB_HITTESTINFO +{ + POINT pt; + UINT flags; + int iBand; +} RBHITTESTINFO, *LPRBHITTESTINFO; + +#endif // NOREBAR + +//====== TOOLTIPS CONTROL ===================================================== + +#ifndef NOTOOLTIPS + +#ifdef _WIN32 + +#define TOOLTIPS_CLASSW L"tooltips_class32" +#define TOOLTIPS_CLASSA "tooltips_class32" + +#ifdef UNICODE +#define TOOLTIPS_CLASS TOOLTIPS_CLASSW +#else +#define TOOLTIPS_CLASS TOOLTIPS_CLASSA +#endif + +#else +#define TOOLTIPS_CLASS "tooltips_class" +#endif + +#define LPTOOLINFOA LPTTTOOLINFOA +#define LPTOOLINFOW LPTTTOOLINFOW +#define TOOLINFOA TTTOOLINFOA +#define TOOLINFOW TTTOOLINFOW + +#define LPTOOLINFO LPTTTOOLINFO +#define TOOLINFO TTTOOLINFO + +#define TTTOOLINFOA_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText) +#define TTTOOLINFOW_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText) +#define TTTOOLINFOA_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lParam) +#define TTTOOLINFOW_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lParam) +#define TTTOOLINFOA_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpReserved) +#define TTTOOLINFOW_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpReserved) + +typedef struct tagTOOLINFOA { + UINT cbSize; + UINT uFlags; + HWND hwnd; + UINT_PTR uId; + RECT rect; + HINSTANCE hinst; + LPSTR lpszText; + LPARAM lParam; +#if (NTDDI_VERSION >= NTDDI_WINXP) + void *lpReserved; +#endif +} TTTOOLINFOA, NEAR *PTOOLINFOA, *LPTTTOOLINFOA; + +typedef struct tagTOOLINFOW { + UINT cbSize; + UINT uFlags; + HWND hwnd; + UINT_PTR uId; + RECT rect; + HINSTANCE hinst; + LPWSTR lpszText; + LPARAM lParam; +#if (NTDDI_VERSION >= NTDDI_WINXP) + void *lpReserved; +#endif +} TTTOOLINFOW, NEAR *PTOOLINFOW, *LPTTTOOLINFOW; + +#ifdef UNICODE +#define TTTOOLINFO TTTOOLINFOW +#define PTOOLINFO PTOOLINFOW +#define LPTTTOOLINFO LPTTTOOLINFOW +#define TTTOOLINFO_V1_SIZE TTTOOLINFOW_V1_SIZE +#else +#define PTOOLINFO PTOOLINFOA +#define TTTOOLINFO TTTOOLINFOA +#define LPTTTOOLINFO LPTTTOOLINFOA +#define TTTOOLINFO_V1_SIZE TTTOOLINFOA_V1_SIZE +#endif + +// begin_r_commctrl + +#define TTS_ALWAYSTIP 0x01 +#define TTS_NOPREFIX 0x02 +#define TTS_NOANIMATE 0x10 +#define TTS_NOFADE 0x20 +#define TTS_BALLOON 0x40 +#define TTS_CLOSE 0x80 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TTS_USEVISUALSTYLE 0x100 // Use themed hyperlinks + +#endif + +// end_r_commctrl + +#define TTF_IDISHWND 0x0001 + +// Use this to center around trackpoint in trackmode +// -OR- to center around tool in normal mode. +// Use TTF_ABSOLUTE to place the tip exactly at the track coords when +// in tracking mode. TTF_ABSOLUTE can be used in conjunction with TTF_CENTERTIP +// to center the tip absolutely about the track point. + +#define TTF_CENTERTIP 0x0002 +#define TTF_RTLREADING 0x0004 +#define TTF_SUBCLASS 0x0010 +#define TTF_TRACK 0x0020 +#define TTF_ABSOLUTE 0x0080 +#define TTF_TRANSPARENT 0x0100 +#define TTF_PARSELINKS 0x1000 +#define TTF_DI_SETITEM 0x8000 // valid only on the TTN_NEEDTEXT callback + + +#define TTDT_AUTOMATIC 0 +#define TTDT_RESHOW 1 +#define TTDT_AUTOPOP 2 +#define TTDT_INITIAL 3 + +// ToolTip Icons (Set with TTM_SETTITLE) +#define TTI_NONE 0 +#define TTI_INFO 1 +#define TTI_WARNING 2 +#define TTI_ERROR 3 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TTI_INFO_LARGE 4 +#define TTI_WARNING_LARGE 5 +#define TTI_ERROR_LARGE 6 +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +// Tool Tip Messages +#define TTM_ACTIVATE (WM_USER + 1) +#define TTM_SETDELAYTIME (WM_USER + 3) +#define TTM_ADDTOOLA (WM_USER + 4) +#define TTM_ADDTOOLW (WM_USER + 50) +#define TTM_DELTOOLA (WM_USER + 5) +#define TTM_DELTOOLW (WM_USER + 51) +#define TTM_NEWTOOLRECTA (WM_USER + 6) +#define TTM_NEWTOOLRECTW (WM_USER + 52) +#define TTM_RELAYEVENT (WM_USER + 7) // Win7: wParam = GetMessageExtraInfo() when relaying WM_MOUSEMOVE + +#define TTM_GETTOOLINFOA (WM_USER + 8) +#define TTM_GETTOOLINFOW (WM_USER + 53) + +#define TTM_SETTOOLINFOA (WM_USER + 9) +#define TTM_SETTOOLINFOW (WM_USER + 54) + +#define TTM_HITTESTA (WM_USER +10) +#define TTM_HITTESTW (WM_USER +55) +#define TTM_GETTEXTA (WM_USER +11) +#define TTM_GETTEXTW (WM_USER +56) +#define TTM_UPDATETIPTEXTA (WM_USER +12) +#define TTM_UPDATETIPTEXTW (WM_USER +57) +#define TTM_GETTOOLCOUNT (WM_USER +13) +#define TTM_ENUMTOOLSA (WM_USER +14) +#define TTM_ENUMTOOLSW (WM_USER +58) +#define TTM_GETCURRENTTOOLA (WM_USER + 15) +#define TTM_GETCURRENTTOOLW (WM_USER + 59) +#define TTM_WINDOWFROMPOINT (WM_USER + 16) +#define TTM_TRACKACTIVATE (WM_USER + 17) // wParam = TRUE/FALSE start end lparam = LPTOOLINFO +#define TTM_TRACKPOSITION (WM_USER + 18) // lParam = dwPos +#define TTM_SETTIPBKCOLOR (WM_USER + 19) +#define TTM_SETTIPTEXTCOLOR (WM_USER + 20) +#define TTM_GETDELAYTIME (WM_USER + 21) +#define TTM_GETTIPBKCOLOR (WM_USER + 22) +#define TTM_GETTIPTEXTCOLOR (WM_USER + 23) +#define TTM_SETMAXTIPWIDTH (WM_USER + 24) +#define TTM_GETMAXTIPWIDTH (WM_USER + 25) +#define TTM_SETMARGIN (WM_USER + 26) // lParam = lprc +#define TTM_GETMARGIN (WM_USER + 27) // lParam = lprc +#define TTM_POP (WM_USER + 28) +#define TTM_UPDATE (WM_USER + 29) +#define TTM_GETBUBBLESIZE (WM_USER + 30) +#define TTM_ADJUSTRECT (WM_USER + 31) +#define TTM_SETTITLEA (WM_USER + 32) // wParam = TTI_*, lParam = char* szTitle +#define TTM_SETTITLEW (WM_USER + 33) // wParam = TTI_*, lParam = wchar* szTitle + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define TTM_POPUP (WM_USER + 34) +#define TTM_GETTITLE (WM_USER + 35) // wParam = 0, lParam = TTGETTITLE* + +typedef struct _TTGETTITLE +{ + DWORD dwSize; + UINT uTitleBitmap; + UINT cch; + WCHAR* pszTitle; +} TTGETTITLE, *PTTGETTITLE; +#endif + +#ifdef UNICODE +#define TTM_ADDTOOL TTM_ADDTOOLW +#define TTM_DELTOOL TTM_DELTOOLW +#define TTM_NEWTOOLRECT TTM_NEWTOOLRECTW +#define TTM_GETTOOLINFO TTM_GETTOOLINFOW +#define TTM_SETTOOLINFO TTM_SETTOOLINFOW +#define TTM_HITTEST TTM_HITTESTW +#define TTM_GETTEXT TTM_GETTEXTW +#define TTM_UPDATETIPTEXT TTM_UPDATETIPTEXTW +#define TTM_ENUMTOOLS TTM_ENUMTOOLSW +#define TTM_GETCURRENTTOOL TTM_GETCURRENTTOOLW +#define TTM_SETTITLE TTM_SETTITLEW +#else +#define TTM_ADDTOOL TTM_ADDTOOLA +#define TTM_DELTOOL TTM_DELTOOLA +#define TTM_NEWTOOLRECT TTM_NEWTOOLRECTA +#define TTM_GETTOOLINFO TTM_GETTOOLINFOA +#define TTM_SETTOOLINFO TTM_SETTOOLINFOA +#define TTM_HITTEST TTM_HITTESTA +#define TTM_GETTEXT TTM_GETTEXTA +#define TTM_UPDATETIPTEXT TTM_UPDATETIPTEXTA +#define TTM_ENUMTOOLS TTM_ENUMTOOLSA +#define TTM_GETCURRENTTOOL TTM_GETCURRENTTOOLA +#define TTM_SETTITLE TTM_SETTITLEA +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define TTM_SETWINDOWTHEME CCM_SETWINDOWTHEME +#endif + + +#define LPHITTESTINFOW LPTTHITTESTINFOW +#define LPHITTESTINFOA LPTTHITTESTINFOA +#define LPHITTESTINFO LPTTHITTESTINFO + +typedef struct _TT_HITTESTINFOA { + HWND hwnd; + POINT pt; + TTTOOLINFOA ti; +} TTHITTESTINFOA, *LPTTHITTESTINFOA; + +typedef struct _TT_HITTESTINFOW { + HWND hwnd; + POINT pt; + TTTOOLINFOW ti; +} TTHITTESTINFOW, *LPTTHITTESTINFOW; + +#ifdef UNICODE +#define TTHITTESTINFO TTHITTESTINFOW +#define LPTTHITTESTINFO LPTTHITTESTINFOW +#else +#define TTHITTESTINFO TTHITTESTINFOA +#define LPTTHITTESTINFO LPTTHITTESTINFOA +#endif + +#define TTN_GETDISPINFOA (TTN_FIRST - 0) +#define TTN_GETDISPINFOW (TTN_FIRST - 10) +#define TTN_SHOW (TTN_FIRST - 1) +#define TTN_POP (TTN_FIRST - 2) +#define TTN_LINKCLICK (TTN_FIRST - 3) + +#ifdef UNICODE +#define TTN_GETDISPINFO TTN_GETDISPINFOW +#else +#define TTN_GETDISPINFO TTN_GETDISPINFOA +#endif + +#define TTN_NEEDTEXT TTN_GETDISPINFO +#define TTN_NEEDTEXTA TTN_GETDISPINFOA +#define TTN_NEEDTEXTW TTN_GETDISPINFOW + + +#define TOOLTIPTEXTW NMTTDISPINFOW +#define TOOLTIPTEXTA NMTTDISPINFOA +#define LPTOOLTIPTEXTA LPNMTTDISPINFOA +#define LPTOOLTIPTEXTW LPNMTTDISPINFOW + +#define TOOLTIPTEXT NMTTDISPINFO +#define LPTOOLTIPTEXT LPNMTTDISPINFO + +#define NMTTDISPINFOA_V1_SIZE CCSIZEOF_STRUCT(NMTTDISPINFOA, uFlags) +#define NMTTDISPINFOW_V1_SIZE CCSIZEOF_STRUCT(NMTTDISPINFOW, uFlags) + +typedef struct tagNMTTDISPINFOA { + NMHDR hdr; + LPSTR lpszText; + char szText[80]; + HINSTANCE hinst; + UINT uFlags; + LPARAM lParam; +} NMTTDISPINFOA, *LPNMTTDISPINFOA; + +typedef struct tagNMTTDISPINFOW { + NMHDR hdr; + LPWSTR lpszText; + WCHAR szText[80]; + HINSTANCE hinst; + UINT uFlags; + LPARAM lParam; +} NMTTDISPINFOW, *LPNMTTDISPINFOW; + +#ifdef UNICODE +#define NMTTDISPINFO NMTTDISPINFOW +#define LPNMTTDISPINFO LPNMTTDISPINFOW +#define NMTTDISPINFO_V1_SIZE NMTTDISPINFOW_V1_SIZE +#else +#define NMTTDISPINFO NMTTDISPINFOA +#define LPNMTTDISPINFO LPNMTTDISPINFOA +#define NMTTDISPINFO_V1_SIZE NMTTDISPINFOA_V1_SIZE +#endif + +#endif // NOTOOLTIPS + + +//====== STATUS BAR CONTROL =================================================== + +#ifndef NOSTATUSBAR + +// begin_r_commctrl + +#define SBARS_SIZEGRIP 0x0100 +#define SBARS_TOOLTIPS 0x0800 + +// this is a status bar flag, preference to SBARS_TOOLTIPS +#define SBT_TOOLTIPS 0x0800 + +// end_r_commctrl + +WINCOMMCTRLAPI void WINAPI DrawStatusTextA(HDC hDC, LPCRECT lprc, LPCSTR pszText, UINT uFlags); +WINCOMMCTRLAPI void WINAPI DrawStatusTextW(HDC hDC, LPCRECT lprc, LPCWSTR pszText, UINT uFlags); + +WINCOMMCTRLAPI HWND WINAPI CreateStatusWindowA(LONG style, LPCSTR lpszText, HWND hwndParent, UINT wID); +WINCOMMCTRLAPI HWND WINAPI CreateStatusWindowW(LONG style, LPCWSTR lpszText, HWND hwndParent, UINT wID); + +#ifdef UNICODE +#define CreateStatusWindow CreateStatusWindowW +#define DrawStatusText DrawStatusTextW +#else +#define CreateStatusWindow CreateStatusWindowA +#define DrawStatusText DrawStatusTextA +#endif + +#ifdef _WIN32 +#define STATUSCLASSNAMEW L"msctls_statusbar32" +#define STATUSCLASSNAMEA "msctls_statusbar32" + +#ifdef UNICODE +#define STATUSCLASSNAME STATUSCLASSNAMEW +#else +#define STATUSCLASSNAME STATUSCLASSNAMEA +#endif + +#else +#define STATUSCLASSNAME "msctls_statusbar" +#endif + +#define SB_SETTEXTA (WM_USER+1) +#define SB_SETTEXTW (WM_USER+11) +#define SB_GETTEXTA (WM_USER+2) +#define SB_GETTEXTW (WM_USER+13) +#define SB_GETTEXTLENGTHA (WM_USER+3) +#define SB_GETTEXTLENGTHW (WM_USER+12) + +#ifdef UNICODE +#define SB_GETTEXT SB_GETTEXTW +#define SB_SETTEXT SB_SETTEXTW +#define SB_GETTEXTLENGTH SB_GETTEXTLENGTHW +#define SB_SETTIPTEXT SB_SETTIPTEXTW +#define SB_GETTIPTEXT SB_GETTIPTEXTW +#else +#define SB_GETTEXT SB_GETTEXTA +#define SB_SETTEXT SB_SETTEXTA +#define SB_GETTEXTLENGTH SB_GETTEXTLENGTHA +#define SB_SETTIPTEXT SB_SETTIPTEXTA +#define SB_GETTIPTEXT SB_GETTIPTEXTA +#endif + + +#define SB_SETPARTS (WM_USER+4) +#define SB_GETPARTS (WM_USER+6) +#define SB_GETBORDERS (WM_USER+7) +#define SB_SETMINHEIGHT (WM_USER+8) +#define SB_SIMPLE (WM_USER+9) +#define SB_GETRECT (WM_USER+10) +#define SB_ISSIMPLE (WM_USER+14) +#define SB_SETICON (WM_USER+15) +#define SB_SETTIPTEXTA (WM_USER+16) +#define SB_SETTIPTEXTW (WM_USER+17) +#define SB_GETTIPTEXTA (WM_USER+18) +#define SB_GETTIPTEXTW (WM_USER+19) +#define SB_GETICON (WM_USER+20) +#define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT + +#define SBT_OWNERDRAW 0x1000 +#define SBT_NOBORDERS 0x0100 +#define SBT_POPOUT 0x0200 +#define SBT_RTLREADING 0x0400 +#define SBT_NOTABPARSING 0x0800 + +#define SB_SETBKCOLOR CCM_SETBKCOLOR // lParam = bkColor + +// status bar notifications +#define SBN_SIMPLEMODECHANGE (SBN_FIRST - 0) + +// refers to the data saved for simple mode +#define SB_SIMPLEID 0x00ff + +#endif // NOSTATUSBAR + +//====== MENU HELP ============================================================ + +#ifndef NOMENUHELP + +WINCOMMCTRLAPI void WINAPI MenuHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, HMENU hMainMenu, HINSTANCE hInst, HWND hwndStatus, _In_reads_(_Inexpressible_(2 + 2n && n >= 1)) UINT *lpwIDs); +WINCOMMCTRLAPI BOOL WINAPI ShowHideMenuCtl(_In_ HWND hWnd, _In_ UINT_PTR uFlags, _In_z_ LPINT lpInfo); +WINCOMMCTRLAPI void WINAPI GetEffectiveClientRect(_In_ HWND hWnd, _Out_ LPRECT lprc, _In_z_ const INT *lpInfo); + +#define MINSYSCOMMAND SC_SIZE + +#endif + + +//====== TRACKBAR CONTROL ===================================================== + +#ifndef NOTRACKBAR + +#ifdef _WIN32 + +#define TRACKBAR_CLASSA "msctls_trackbar32" +#define TRACKBAR_CLASSW L"msctls_trackbar32" + +#ifdef UNICODE +#define TRACKBAR_CLASS TRACKBAR_CLASSW +#else +#define TRACKBAR_CLASS TRACKBAR_CLASSA +#endif + +#else +#define TRACKBAR_CLASS "msctls_trackbar" +#endif + + +// begin_r_commctrl + +#define TBS_AUTOTICKS 0x0001 +#define TBS_VERT 0x0002 +#define TBS_HORZ 0x0000 +#define TBS_TOP 0x0004 +#define TBS_BOTTOM 0x0000 +#define TBS_LEFT 0x0004 +#define TBS_RIGHT 0x0000 +#define TBS_BOTH 0x0008 +#define TBS_NOTICKS 0x0010 +#define TBS_ENABLESELRANGE 0x0020 +#define TBS_FIXEDLENGTH 0x0040 +#define TBS_NOTHUMB 0x0080 +#define TBS_TOOLTIPS 0x0100 +#define TBS_REVERSED 0x0200 // Accessibility hint: the smaller number (usually the min value) means "high" and the larger number (usually the max value) means "low" + +#define TBS_DOWNISLEFT 0x0400 // Down=Left and Up=Right (default is Down=Right and Up=Left) + +#if (_WIN32_IE >= 0x0600) +#define TBS_NOTIFYBEFOREMOVE 0x0800 // Trackbar should notify parent before repositioning the slider due to user action (enables snapping) +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TBS_TRANSPARENTBKGND 0x1000 // Background is painted by the parent via WM_PRINTCLIENT +#endif + +// end_r_commctrl + +#define TBM_GETPOS (WM_USER) +#define TBM_GETRANGEMIN (WM_USER+1) +#define TBM_GETRANGEMAX (WM_USER+2) +#define TBM_GETTIC (WM_USER+3) +#define TBM_SETTIC (WM_USER+4) +#define TBM_SETPOS (WM_USER+5) +#define TBM_SETRANGE (WM_USER+6) +#define TBM_SETRANGEMIN (WM_USER+7) +#define TBM_SETRANGEMAX (WM_USER+8) +#define TBM_CLEARTICS (WM_USER+9) +#define TBM_SETSEL (WM_USER+10) +#define TBM_SETSELSTART (WM_USER+11) +#define TBM_SETSELEND (WM_USER+12) +#define TBM_GETPTICS (WM_USER+14) +#define TBM_GETTICPOS (WM_USER+15) +#define TBM_GETNUMTICS (WM_USER+16) +#define TBM_GETSELSTART (WM_USER+17) +#define TBM_GETSELEND (WM_USER+18) +#define TBM_CLEARSEL (WM_USER+19) +#define TBM_SETTICFREQ (WM_USER+20) +#define TBM_SETPAGESIZE (WM_USER+21) +#define TBM_GETPAGESIZE (WM_USER+22) +#define TBM_SETLINESIZE (WM_USER+23) +#define TBM_GETLINESIZE (WM_USER+24) +#define TBM_GETTHUMBRECT (WM_USER+25) +#define TBM_GETCHANNELRECT (WM_USER+26) +#define TBM_SETTHUMBLENGTH (WM_USER+27) +#define TBM_GETTHUMBLENGTH (WM_USER+28) +#define TBM_SETTOOLTIPS (WM_USER+29) +#define TBM_GETTOOLTIPS (WM_USER+30) +#define TBM_SETTIPSIDE (WM_USER+31) +// TrackBar Tip Side flags +#define TBTS_TOP 0 +#define TBTS_LEFT 1 +#define TBTS_BOTTOM 2 +#define TBTS_RIGHT 3 + +#define TBM_SETBUDDY (WM_USER+32) // wparam = BOOL fLeft; (or right) +#define TBM_GETBUDDY (WM_USER+33) // wparam = BOOL fLeft; (or right) +#define TBM_SETPOSNOTIFY (WM_USER+34) +#define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT + + +#define TB_LINEUP 0 +#define TB_LINEDOWN 1 +#define TB_PAGEUP 2 +#define TB_PAGEDOWN 3 +#define TB_THUMBPOSITION 4 +#define TB_THUMBTRACK 5 +#define TB_TOP 6 +#define TB_BOTTOM 7 +#define TB_ENDTRACK 8 + + +// custom draw item specs +#define TBCD_TICS 0x0001 +#define TBCD_THUMB 0x0002 +#define TBCD_CHANNEL 0x0003 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TRBN_THUMBPOSCHANGING (TRBN_FIRST-1) + +// Structure for Trackbar's TRBN_THUMBPOSCHANGING notification +typedef struct tagTRBTHUMBPOSCHANGING +{ + NMHDR hdr; + DWORD dwPos; + int nReason; +} NMTRBTHUMBPOSCHANGING; +#endif + +#endif // trackbar + +//====== DRAG LIST CONTROL ==================================================== + +#ifndef NODRAGLIST + +typedef struct tagDRAGLISTINFO { + UINT uNotification; + HWND hWnd; + POINT ptCursor; +} DRAGLISTINFO, *LPDRAGLISTINFO; + +#define DL_BEGINDRAG (WM_USER+133) +#define DL_DRAGGING (WM_USER+134) +#define DL_DROPPED (WM_USER+135) +#define DL_CANCELDRAG (WM_USER+136) + +#define DL_CURSORSET 0 +#define DL_STOPCURSOR 1 +#define DL_COPYCURSOR 2 +#define DL_MOVECURSOR 3 + +#define DRAGLISTMSGSTRING TEXT("commctrl_DragListMsg") + +WINCOMMCTRLAPI BOOL WINAPI MakeDragList(HWND hLB); +WINCOMMCTRLAPI void WINAPI DrawInsert(HWND handParent, HWND hLB, int nItem); + +WINCOMMCTRLAPI int WINAPI LBItemFromPt(HWND hLB, POINT pt, BOOL bAutoScroll); + +#endif + + +//====== UPDOWN CONTROL ======================================================= + +#ifndef NOUPDOWN + +#ifdef _WIN32 + +#define UPDOWN_CLASSA "msctls_updown32" +#define UPDOWN_CLASSW L"msctls_updown32" + +#ifdef UNICODE +#define UPDOWN_CLASS UPDOWN_CLASSW +#else +#define UPDOWN_CLASS UPDOWN_CLASSA +#endif + +#else +#define UPDOWN_CLASS "msctls_updown" +#endif + + +typedef struct _UDACCEL { + UINT nSec; + UINT nInc; +} UDACCEL, *LPUDACCEL; + +#define UD_MAXVAL 0x7fff +#define UD_MINVAL (-UD_MAXVAL) + +// begin_r_commctrl + +#define UDS_WRAP 0x0001 +#define UDS_SETBUDDYINT 0x0002 +#define UDS_ALIGNRIGHT 0x0004 +#define UDS_ALIGNLEFT 0x0008 +#define UDS_AUTOBUDDY 0x0010 +#define UDS_ARROWKEYS 0x0020 +#define UDS_HORZ 0x0040 +#define UDS_NOTHOUSANDS 0x0080 +#define UDS_HOTTRACK 0x0100 + +// end_r_commctrl + +#define UDM_SETRANGE (WM_USER+101) +#define UDM_GETRANGE (WM_USER+102) +#define UDM_SETPOS (WM_USER+103) +#define UDM_GETPOS (WM_USER+104) +#define UDM_SETBUDDY (WM_USER+105) +#define UDM_GETBUDDY (WM_USER+106) +#define UDM_SETACCEL (WM_USER+107) +#define UDM_GETACCEL (WM_USER+108) +#define UDM_SETBASE (WM_USER+109) +#define UDM_GETBASE (WM_USER+110) +#define UDM_SETRANGE32 (WM_USER+111) +#define UDM_GETRANGE32 (WM_USER+112) // wParam & lParam are LPINT +#define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define UDM_SETPOS32 (WM_USER+113) +#define UDM_GETPOS32 (WM_USER+114) + +WINCOMMCTRLAPI HWND WINAPI CreateUpDownControl(DWORD dwStyle, int x, int y, int cx, int cy, + HWND hParent, int nID, HINSTANCE hInst, + HWND hBuddy, + int nUpper, int nLower, int nPos); + +#define NM_UPDOWN NMUPDOWN +#define LPNM_UPDOWN LPNMUPDOWN + +typedef struct _NM_UPDOWN +{ + NMHDR hdr; + int iPos; + int iDelta; +} NMUPDOWN, *LPNMUPDOWN; + +#define UDN_DELTAPOS (UDN_FIRST - 1) + +#endif // NOUPDOWN + + +//====== PROGRESS CONTROL ===================================================== + +#ifndef NOPROGRESS + +#ifdef _WIN32 + +#define PROGRESS_CLASSA "msctls_progress32" +#define PROGRESS_CLASSW L"msctls_progress32" + + +#ifdef UNICODE +#define PROGRESS_CLASS PROGRESS_CLASSW +#else +#define PROGRESS_CLASS PROGRESS_CLASSA +#endif + +#else +#define PROGRESS_CLASS "msctls_progress" +#endif + +// begin_r_commctrl + +#define PBS_SMOOTH 0x01 +#define PBS_VERTICAL 0x04 + +// end_r_commctrl + +#define PBM_SETRANGE (WM_USER+1) +#define PBM_SETPOS (WM_USER+2) +#define PBM_DELTAPOS (WM_USER+3) +#define PBM_SETSTEP (WM_USER+4) +#define PBM_STEPIT (WM_USER+5) +#define PBM_SETRANGE32 (WM_USER+6) // lParam = high, wParam = low +typedef struct +{ + int iLow; + int iHigh; +} PBRANGE, *PPBRANGE; +#define PBM_GETRANGE (WM_USER+7) // wParam = return (TRUE ? low : high). lParam = PPBRANGE or NULL +#define PBM_GETPOS (WM_USER+8) +#define PBM_SETBARCOLOR (WM_USER+9) // lParam = bar color +#define PBM_SETBKCOLOR CCM_SETBKCOLOR // lParam = bkColor + + +// begin_r_commctrl + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define PBS_MARQUEE 0x08 +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + +// end_r_commctrl + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define PBM_SETMARQUEE (WM_USER+10) +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + +// begin_r_commctrl +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define PBS_SMOOTHREVERSE 0x10 +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +// end_r_commctrl + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +#define PBM_GETSTEP (WM_USER+13) +#define PBM_GETBKCOLOR (WM_USER+14) +#define PBM_GETBARCOLOR (WM_USER+15) +#define PBM_SETSTATE (WM_USER+16) // wParam = PBST_[State] (NORMAL, ERROR, PAUSED) +#define PBM_GETSTATE (WM_USER+17) + +#define PBST_NORMAL 0x0001 +#define PBST_ERROR 0x0002 +#define PBST_PAUSED 0x0003 +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#endif // NOPROGRESS + + +//====== HOTKEY CONTROL ======================================================= + +#ifndef NOHOTKEY + +#define HOTKEYF_SHIFT 0x01 +#define HOTKEYF_CONTROL 0x02 +#define HOTKEYF_ALT 0x04 +#ifdef _MAC +#define HOTKEYF_EXT 0x80 +#else +#define HOTKEYF_EXT 0x08 +#endif + +#define HKCOMB_NONE 0x0001 +#define HKCOMB_S 0x0002 +#define HKCOMB_C 0x0004 +#define HKCOMB_A 0x0008 +#define HKCOMB_SC 0x0010 +#define HKCOMB_SA 0x0020 +#define HKCOMB_CA 0x0040 +#define HKCOMB_SCA 0x0080 + + +#define HKM_SETHOTKEY (WM_USER+1) +#define HKM_GETHOTKEY (WM_USER+2) +#define HKM_SETRULES (WM_USER+3) + +#ifdef _WIN32 + +#define HOTKEY_CLASSA "msctls_hotkey32" +#define HOTKEY_CLASSW L"msctls_hotkey32" + +#ifdef UNICODE +#define HOTKEY_CLASS HOTKEY_CLASSW +#else +#define HOTKEY_CLASS HOTKEY_CLASSA +#endif + +#else +#define HOTKEY_CLASS "msctls_hotkey" +#endif + +#endif // NOHOTKEY + +// begin_r_commctrl + +//====== COMMON CONTROL STYLES ================================================ + +#define CCS_TOP 0x00000001L +#define CCS_NOMOVEY 0x00000002L +#define CCS_BOTTOM 0x00000003L +#define CCS_NORESIZE 0x00000004L +#define CCS_NOPARENTALIGN 0x00000008L +#define CCS_ADJUSTABLE 0x00000020L +#define CCS_NODIVIDER 0x00000040L +#define CCS_VERT 0x00000080L +#define CCS_LEFT (CCS_VERT | CCS_TOP) +#define CCS_RIGHT (CCS_VERT | CCS_BOTTOM) +#define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY) + +// end_r_commctrl + +//====== SysLink control ========================================= + +#ifdef _WIN32 +#if (NTDDI_VERSION >= NTDDI_WINXP) + +#define INVALID_LINK_INDEX (-1) +#define MAX_LINKID_TEXT 48 +#define L_MAX_URL_LENGTH (2048 + 32 + sizeof("://")) + +#define WC_LINK L"SysLink" + +// begin_r_commctrl + +#define LWS_TRANSPARENT 0x0001 +#define LWS_IGNORERETURN 0x0002 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LWS_NOPREFIX 0x0004 +#define LWS_USEVISUALSTYLE 0x0008 +#define LWS_USECUSTOMTEXT 0x0010 +#define LWS_RIGHT 0x0020 +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +// end_r_commctrl + +#define LIF_ITEMINDEX 0x00000001 +#define LIF_STATE 0x00000002 +#define LIF_ITEMID 0x00000004 +#define LIF_URL 0x00000008 + +#define LIS_FOCUSED 0x00000001 +#define LIS_ENABLED 0x00000002 +#define LIS_VISITED 0x00000004 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LIS_HOTTRACK 0x00000008 +#define LIS_DEFAULTCOLORS 0x00000010 // Don't use any custom text colors +#endif + +typedef struct tagLITEM +{ + UINT mask ; + int iLink ; + UINT state ; + UINT stateMask ; + WCHAR szID[MAX_LINKID_TEXT] ; + WCHAR szUrl[L_MAX_URL_LENGTH] ; +} LITEM, * PLITEM ; + +typedef struct tagLHITTESTINFO +{ + POINT pt ; + LITEM item ; +} LHITTESTINFO, *PLHITTESTINFO ; + +typedef struct tagNMLINK +{ + NMHDR hdr; + LITEM item ; +} NMLINK, *PNMLINK; + +// SysLink notifications +// NM_CLICK // wParam: control ID, lParam: PNMLINK, ret: ignored. + +// LinkWindow messages +#define LM_HITTEST (WM_USER+0x300) // wParam: n/a, lparam: PLHITTESTINFO, ret: BOOL +#define LM_GETIDEALHEIGHT (WM_USER+0x301) // wParam: cxMaxWidth, lparam: n/a, ret: cy +#define LM_SETITEM (WM_USER+0x302) // wParam: n/a, lparam: LITEM*, ret: BOOL +#define LM_GETITEM (WM_USER+0x303) // wParam: n/a, lparam: LITEM*, ret: BOOL +#define LM_GETIDEALSIZE (LM_GETIDEALHEIGHT) // wParam: cxMaxWidth, lparam: SIZE*, ret: cy + +#endif + +#endif // _WIN32 +//====== End SysLink control ========================================= + + +//====== LISTVIEW CONTROL ===================================================== + +#ifndef NOLISTVIEW + +#ifdef _WIN32 + +#define WC_LISTVIEWA "SysListView32" +#define WC_LISTVIEWW L"SysListView32" + +#ifdef UNICODE +#define WC_LISTVIEW WC_LISTVIEWW +#else +#define WC_LISTVIEW WC_LISTVIEWA +#endif + +#else +#define WC_LISTVIEW "SysListView" +#endif + +// begin_r_commctrl + +#define LVS_ICON 0x0000 +#define LVS_REPORT 0x0001 +#define LVS_SMALLICON 0x0002 +#define LVS_LIST 0x0003 +#define LVS_TYPEMASK 0x0003 +#define LVS_SINGLESEL 0x0004 +#define LVS_SHOWSELALWAYS 0x0008 +#define LVS_SORTASCENDING 0x0010 +#define LVS_SORTDESCENDING 0x0020 +#define LVS_SHAREIMAGELISTS 0x0040 +#define LVS_NOLABELWRAP 0x0080 +#define LVS_AUTOARRANGE 0x0100 +#define LVS_EDITLABELS 0x0200 +#define LVS_OWNERDATA 0x1000 +#define LVS_NOSCROLL 0x2000 + +#define LVS_TYPESTYLEMASK 0xfc00 + +#define LVS_ALIGNTOP 0x0000 +#define LVS_ALIGNLEFT 0x0800 +#define LVS_ALIGNMASK 0x0c00 + +#define LVS_OWNERDRAWFIXED 0x0400 +#define LVS_NOCOLUMNHEADER 0x4000 +#define LVS_NOSORTHEADER 0x8000 + +// end_r_commctrl + +#define LVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define ListView_SetUnicodeFormat(hwnd, fUnicode) \ + (BOOL)SNDMSG((hwnd), LVM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0) + +#define LVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define ListView_GetUnicodeFormat(hwnd) \ + (BOOL)SNDMSG((hwnd), LVM_GETUNICODEFORMAT, 0, 0) + +#define LVM_GETBKCOLOR (LVM_FIRST + 0) +#define ListView_GetBkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), LVM_GETBKCOLOR, 0, 0L) + +#define LVM_SETBKCOLOR (LVM_FIRST + 1) +#define ListView_SetBkColor(hwnd, clrBk) \ + (BOOL)SNDMSG((hwnd), LVM_SETBKCOLOR, 0, (LPARAM)(COLORREF)(clrBk)) + +#define LVM_GETIMAGELIST (LVM_FIRST + 2) +#define ListView_GetImageList(hwnd, iImageList) \ + (HIMAGELIST)SNDMSG((hwnd), LVM_GETIMAGELIST, (WPARAM)(INT)(iImageList), 0L) + +#define LVSIL_NORMAL 0 +#define LVSIL_SMALL 1 +#define LVSIL_STATE 2 +#define LVSIL_GROUPHEADER 3 + +#define LVM_SETIMAGELIST (LVM_FIRST + 3) +#define ListView_SetImageList(hwnd, himl, iImageList) \ + (HIMAGELIST)SNDMSG((hwnd), LVM_SETIMAGELIST, (WPARAM)(iImageList), (LPARAM)(HIMAGELIST)(himl)) + +#define LVM_GETITEMCOUNT (LVM_FIRST + 4) +#define ListView_GetItemCount(hwnd) \ + (int)SNDMSG((hwnd), LVM_GETITEMCOUNT, 0, 0L) + + +#define LVIF_TEXT 0x00000001 +#define LVIF_IMAGE 0x00000002 +#define LVIF_PARAM 0x00000004 +#define LVIF_STATE 0x00000008 +#define LVIF_INDENT 0x00000010 +#define LVIF_NORECOMPUTE 0x00000800 +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define LVIF_GROUPID 0x00000100 +#define LVIF_COLUMNS 0x00000200 +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LVIF_COLFMT 0x00010000 // The piColFmt member is valid in addition to puColumns +#endif + +#define LVIS_FOCUSED 0x0001 +#define LVIS_SELECTED 0x0002 +#define LVIS_CUT 0x0004 +#define LVIS_DROPHILITED 0x0008 +#define LVIS_GLOW 0x0010 +#define LVIS_ACTIVATING 0x0020 + +#define LVIS_OVERLAYMASK 0x0F00 +#define LVIS_STATEIMAGEMASK 0xF000 + +#define INDEXTOSTATEIMAGEMASK(i) ((i) << 12) + +#define I_INDENTCALLBACK (-1) +#define LV_ITEMA LVITEMA +#define LV_ITEMW LVITEMW + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define I_GROUPIDCALLBACK (-1) +#define I_GROUPIDNONE (-2) +#endif +#define LV_ITEM LVITEM + +#define LVITEMA_V1_SIZE CCSIZEOF_STRUCT(LVITEMA, lParam) +#define LVITEMW_V1_SIZE CCSIZEOF_STRUCT(LVITEMW, lParam) + +#if (NTDDI_VERSION >= NTDDI_VISTA) // Will be unused downlevel, but sizeof(LVITEMA) must be equal to sizeof(LVITEMW) +#define LVITEMA_V5_SIZE CCSIZEOF_STRUCT(LVITEMA, puColumns) +#define LVITEMW_V5_SIZE CCSIZEOF_STRUCT(LVITEMW, puColumns) + +#ifdef UNICODE +#define LVITEM_V5_SIZE LVITEMW_V5_SIZE +#else +#define LVITEM_V5_SIZE LVITEMA_V5_SIZE +#endif +#endif + +typedef struct tagLVITEMA +{ + UINT mask; + int iItem; + int iSubItem; + UINT state; + UINT stateMask; + LPSTR pszText; + int cchTextMax; + int iImage; + LPARAM lParam; + int iIndent; +#if (NTDDI_VERSION >= NTDDI_WINXP) + int iGroupId; + UINT cColumns; // tile view columns + PUINT puColumns; +#endif +#if (NTDDI_VERSION >= NTDDI_VISTA) // Will be unused downlevel, but sizeof(LVITEMA) must be equal to sizeof(LVITEMW) + int* piColFmt; + int iGroup; // readonly. only valid for owner data. +#endif +} LVITEMA, *LPLVITEMA; + +typedef struct tagLVITEMW +{ + UINT mask; + int iItem; + int iSubItem; + UINT state; + UINT stateMask; + LPWSTR pszText; + int cchTextMax; + int iImage; + LPARAM lParam; + int iIndent; +#if (NTDDI_VERSION >= NTDDI_WINXP) + int iGroupId; + UINT cColumns; // tile view columns + PUINT puColumns; +#endif +#if (NTDDI_VERSION >= NTDDI_VISTA) + int* piColFmt; + int iGroup; // readonly. only valid for owner data. +#endif +} LVITEMW, *LPLVITEMW; + +#ifdef UNICODE +#define LVITEM LVITEMW +#define LPLVITEM LPLVITEMW +#define LVITEM_V1_SIZE LVITEMW_V1_SIZE +#else +#define LVITEM LVITEMA +#define LPLVITEM LPLVITEMA +#define LVITEM_V1_SIZE LVITEMA_V1_SIZE +#endif + +#define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L) +#define LPSTR_TEXTCALLBACKA ((LPSTR)-1L) +#ifdef UNICODE +#define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKW +#else +#define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKA +#endif + +#define I_IMAGECALLBACK (-1) +#define I_IMAGENONE (-2) + +#if (NTDDI_VERSION >= NTDDI_WINXP) +// For tileview +#define I_COLUMNSCALLBACK ((UINT)-1) +#endif + +#define LVM_GETITEMA (LVM_FIRST + 5) +#define LVM_GETITEMW (LVM_FIRST + 75) +#ifdef UNICODE +#define LVM_GETITEM LVM_GETITEMW +#else +#define LVM_GETITEM LVM_GETITEMA +#endif + +#define ListView_GetItem(hwnd, pitem) \ + (BOOL)SNDMSG((hwnd), LVM_GETITEM, 0, (LPARAM)(LV_ITEM *)(pitem)) + + +#define LVM_SETITEMA (LVM_FIRST + 6) +#define LVM_SETITEMW (LVM_FIRST + 76) +#ifdef UNICODE +#define LVM_SETITEM LVM_SETITEMW +#else +#define LVM_SETITEM LVM_SETITEMA +#endif + +#define ListView_SetItem(hwnd, pitem) \ + (BOOL)SNDMSG((hwnd), LVM_SETITEM, 0, (LPARAM)(const LV_ITEM *)(pitem)) + + +#define LVM_INSERTITEMA (LVM_FIRST + 7) +#define LVM_INSERTITEMW (LVM_FIRST + 77) +#ifdef UNICODE +#define LVM_INSERTITEM LVM_INSERTITEMW +#else +#define LVM_INSERTITEM LVM_INSERTITEMA +#endif +#define ListView_InsertItem(hwnd, pitem) \ + (int)SNDMSG((hwnd), LVM_INSERTITEM, 0, (LPARAM)(const LV_ITEM *)(pitem)) + + +#define LVM_DELETEITEM (LVM_FIRST + 8) +#define ListView_DeleteItem(hwnd, i) \ + (BOOL)SNDMSG((hwnd), LVM_DELETEITEM, (WPARAM)(int)(i), 0L) + + +#define LVM_DELETEALLITEMS (LVM_FIRST + 9) +#define ListView_DeleteAllItems(hwnd) \ + (BOOL)SNDMSG((hwnd), LVM_DELETEALLITEMS, 0, 0L) + + +#define LVM_GETCALLBACKMASK (LVM_FIRST + 10) +#define ListView_GetCallbackMask(hwnd) \ + (BOOL)SNDMSG((hwnd), LVM_GETCALLBACKMASK, 0, 0) + + +#define LVM_SETCALLBACKMASK (LVM_FIRST + 11) +#define ListView_SetCallbackMask(hwnd, mask) \ + (BOOL)SNDMSG((hwnd), LVM_SETCALLBACKMASK, (WPARAM)(UINT)(mask), 0) + + +#define LVNI_ALL 0x0000 + +#define LVNI_FOCUSED 0x0001 +#define LVNI_SELECTED 0x0002 +#define LVNI_CUT 0x0004 +#define LVNI_DROPHILITED 0x0008 +#define LVNI_STATEMASK (LVNI_FOCUSED | LVNI_SELECTED | LVNI_CUT | LVNI_DROPHILITED) + +#define LVNI_VISIBLEORDER 0x0010 +#define LVNI_PREVIOUS 0x0020 +#define LVNI_VISIBLEONLY 0x0040 +#define LVNI_SAMEGROUPONLY 0x0080 + +#define LVNI_ABOVE 0x0100 +#define LVNI_BELOW 0x0200 +#define LVNI_TOLEFT 0x0400 +#define LVNI_TORIGHT 0x0800 +#define LVNI_DIRECTIONMASK (LVNI_ABOVE | LVNI_BELOW | LVNI_TOLEFT | LVNI_TORIGHT) + + +#define LVM_GETNEXTITEM (LVM_FIRST + 12) +#define ListView_GetNextItem(hwnd, i, flags) \ + (int)SNDMSG((hwnd), LVM_GETNEXTITEM, (WPARAM)(int)(i), MAKELPARAM((flags), 0)) + +#define LVFI_PARAM 0x0001 +#define LVFI_STRING 0x0002 +#define LVFI_SUBSTRING 0x0004 // Same as LVFI_PARTIAL +#define LVFI_PARTIAL 0x0008 +#define LVFI_WRAP 0x0020 +#define LVFI_NEARESTXY 0x0040 + +#define LV_FINDINFOA LVFINDINFOA +#define LV_FINDINFOW LVFINDINFOW + +#define LV_FINDINFO LVFINDINFO + +typedef struct tagLVFINDINFOA +{ + UINT flags; + LPCSTR psz; + LPARAM lParam; + POINT pt; + UINT vkDirection; +} LVFINDINFOA, *LPFINDINFOA; + +typedef struct tagLVFINDINFOW +{ + UINT flags; + LPCWSTR psz; + LPARAM lParam; + POINT pt; + UINT vkDirection; +} LVFINDINFOW, *LPFINDINFOW; + +#ifdef UNICODE +#define LVFINDINFO LVFINDINFOW +#else +#define LVFINDINFO LVFINDINFOA +#endif + +#define LVM_FINDITEMA (LVM_FIRST + 13) +#define LVM_FINDITEMW (LVM_FIRST + 83) +#ifdef UNICODE +#define LVM_FINDITEM LVM_FINDITEMW +#else +#define LVM_FINDITEM LVM_FINDITEMA +#endif + +#define ListView_FindItem(hwnd, iStart, plvfi) \ + (int)SNDMSG((hwnd), LVM_FINDITEM, (WPARAM)(int)(iStart), (LPARAM)(const LV_FINDINFO *)(plvfi)) + +#define LVIR_BOUNDS 0 +#define LVIR_ICON 1 +#define LVIR_LABEL 2 +#define LVIR_SELECTBOUNDS 3 + + +#define LVM_GETITEMRECT (LVM_FIRST + 14) +#define ListView_GetItemRect(hwnd, i, prc, code) \ + (BOOL)SNDMSG((hwnd), LVM_GETITEMRECT, (WPARAM)(int)(i), \ + ((prc) ? (((RECT *)(prc))->left = (code),(LPARAM)(RECT *)(prc)) : (LPARAM)(RECT *)NULL)) + + +#define LVM_SETITEMPOSITION (LVM_FIRST + 15) +#define ListView_SetItemPosition(hwndLV, i, x, y) \ + (BOOL)SNDMSG((hwndLV), LVM_SETITEMPOSITION, (WPARAM)(int)(i), MAKELPARAM((x), (y))) + + +#define LVM_GETITEMPOSITION (LVM_FIRST + 16) +#define ListView_GetItemPosition(hwndLV, i, ppt) \ + (BOOL)SNDMSG((hwndLV), LVM_GETITEMPOSITION, (WPARAM)(int)(i), (LPARAM)(POINT *)(ppt)) + + +#define LVM_GETSTRINGWIDTHA (LVM_FIRST + 17) +#define LVM_GETSTRINGWIDTHW (LVM_FIRST + 87) +#ifdef UNICODE +#define LVM_GETSTRINGWIDTH LVM_GETSTRINGWIDTHW +#else +#define LVM_GETSTRINGWIDTH LVM_GETSTRINGWIDTHA +#endif + +#define ListView_GetStringWidth(hwndLV, psz) \ + (int)SNDMSG((hwndLV), LVM_GETSTRINGWIDTH, 0, (LPARAM)(LPCTSTR)(psz)) + + +#define LVHT_NOWHERE 0x00000001 +#define LVHT_ONITEMICON 0x00000002 +#define LVHT_ONITEMLABEL 0x00000004 +#define LVHT_ONITEMSTATEICON 0x00000008 +#define LVHT_ONITEM (LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON) + +#define LVHT_ABOVE 0x00000008 +#define LVHT_BELOW 0x00000010 +#define LVHT_TORIGHT 0x00000020 +#define LVHT_TOLEFT 0x00000040 + + +#define LVHT_EX_GROUP_HEADER 0x10000000 +#define LVHT_EX_GROUP_FOOTER 0x20000000 +#define LVHT_EX_GROUP_COLLAPSE 0x40000000 +#define LVHT_EX_GROUP_BACKGROUND 0x80000000 +#define LVHT_EX_GROUP_STATEICON 0x01000000 +#define LVHT_EX_GROUP_SUBSETLINK 0x02000000 +#define LVHT_EX_GROUP (LVHT_EX_GROUP_BACKGROUND | LVHT_EX_GROUP_COLLAPSE | LVHT_EX_GROUP_FOOTER | LVHT_EX_GROUP_HEADER | LVHT_EX_GROUP_STATEICON | LVHT_EX_GROUP_SUBSETLINK) +#define LVHT_EX_ONCONTENTS 0x04000000 // On item AND not on the background +#define LVHT_EX_FOOTER 0x08000000 + +#define LV_HITTESTINFO LVHITTESTINFO + +#define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO, iItem) + +typedef struct tagLVHITTESTINFO +{ + POINT pt; + UINT flags; + int iItem; + int iSubItem; // this is was NOT in win95. valid only for LVM_SUBITEMHITTEST +#if (NTDDI_VERSION >= NTDDI_VISTA) + int iGroup; // readonly. index of group. only valid for owner data. + // supports single item in multiple groups. +#endif +} LVHITTESTINFO, *LPLVHITTESTINFO; + +#define LVM_HITTEST (LVM_FIRST + 18) +#define ListView_HitTest(hwndLV, pinfo) \ + (int)SNDMSG((hwndLV), LVM_HITTEST, 0, (LPARAM)(LV_HITTESTINFO *)(pinfo)) +#define ListView_HitTestEx(hwndLV, pinfo) \ + (int)SNDMSG((hwndLV), LVM_HITTEST, (WPARAM)-1, (LPARAM)(LV_HITTESTINFO *)(pinfo)) + + +#define LVM_ENSUREVISIBLE (LVM_FIRST + 19) +#define ListView_EnsureVisible(hwndLV, i, fPartialOK) \ + (BOOL)SNDMSG((hwndLV), LVM_ENSUREVISIBLE, (WPARAM)(int)(i), MAKELPARAM((fPartialOK), 0)) + + +#define LVM_SCROLL (LVM_FIRST + 20) +#define ListView_Scroll(hwndLV, dx, dy) \ + (BOOL)SNDMSG((hwndLV), LVM_SCROLL, (WPARAM)(int)(dx), (LPARAM)(int)(dy)) + + +#define LVM_REDRAWITEMS (LVM_FIRST + 21) +#define ListView_RedrawItems(hwndLV, iFirst, iLast) \ + (BOOL)SNDMSG((hwndLV), LVM_REDRAWITEMS, (WPARAM)(int)(iFirst), (LPARAM)(int)(iLast)) + + +#define LVA_DEFAULT 0x0000 +#define LVA_ALIGNLEFT 0x0001 +#define LVA_ALIGNTOP 0x0002 +#define LVA_SNAPTOGRID 0x0005 + + +#define LVM_ARRANGE (LVM_FIRST + 22) +#define ListView_Arrange(hwndLV, code) \ + (BOOL)SNDMSG((hwndLV), LVM_ARRANGE, (WPARAM)(UINT)(code), 0L) + + +#define LVM_EDITLABELA (LVM_FIRST + 23) +#define LVM_EDITLABELW (LVM_FIRST + 118) +#ifdef UNICODE +#define LVM_EDITLABEL LVM_EDITLABELW +#else +#define LVM_EDITLABEL LVM_EDITLABELA +#endif + +#define ListView_EditLabel(hwndLV, i) \ + (HWND)SNDMSG((hwndLV), LVM_EDITLABEL, (WPARAM)(int)(i), 0L) + +#define LVM_GETEDITCONTROL (LVM_FIRST + 24) +#define ListView_GetEditControl(hwndLV) \ + (HWND)SNDMSG((hwndLV), LVM_GETEDITCONTROL, 0, 0L) + + +#define LV_COLUMNA LVCOLUMNA +#define LV_COLUMNW LVCOLUMNW + +#define LV_COLUMN LVCOLUMN + +#define LVCOLUMNA_V1_SIZE CCSIZEOF_STRUCT(LVCOLUMNA, iSubItem) +#define LVCOLUMNW_V1_SIZE CCSIZEOF_STRUCT(LVCOLUMNW, iSubItem) + +typedef struct tagLVCOLUMNA +{ + UINT mask; + int fmt; + int cx; + LPSTR pszText; + int cchTextMax; + int iSubItem; + int iImage; + int iOrder; +#if (NTDDI_VERSION >= NTDDI_VISTA) + int cxMin; // min snap point + int cxDefault; // default snap point + int cxIdeal; // read only. ideal may not eqaul current width if auto sized (LVS_EX_AUTOSIZECOLUMNS) to a lesser width. +#endif +} LVCOLUMNA, *LPLVCOLUMNA; + +typedef struct tagLVCOLUMNW +{ + UINT mask; + int fmt; + int cx; + LPWSTR pszText; + int cchTextMax; + int iSubItem; + int iImage; + int iOrder; +#if (NTDDI_VERSION >= NTDDI_VISTA) + int cxMin; // min snap point + int cxDefault; // default snap point + int cxIdeal; // read only. ideal may not eqaul current width if auto sized (LVS_EX_AUTOSIZECOLUMNS) to a lesser width. +#endif +} LVCOLUMNW, *LPLVCOLUMNW; + +#ifdef UNICODE +#define LVCOLUMN LVCOLUMNW +#define LPLVCOLUMN LPLVCOLUMNW +#define LVCOLUMN_V1_SIZE LVCOLUMNW_V1_SIZE +#else +#define LVCOLUMN LVCOLUMNA +#define LPLVCOLUMN LPLVCOLUMNA +#define LVCOLUMN_V1_SIZE LVCOLUMNA_V1_SIZE +#endif + + +#define LVCF_FMT 0x0001 +#define LVCF_WIDTH 0x0002 +#define LVCF_TEXT 0x0004 +#define LVCF_SUBITEM 0x0008 +#define LVCF_IMAGE 0x0010 +#define LVCF_ORDER 0x0020 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LVCF_MINWIDTH 0x0040 +#define LVCF_DEFAULTWIDTH 0x0080 +#define LVCF_IDEALWIDTH 0x0100 +#endif + +// LVCFMT_ flags up to FFFF are shared with the header control (HDF_ flags). +// Flags above FFFF are listview-specific. + +#define LVCFMT_LEFT 0x0000 // Same as HDF_LEFT +#define LVCFMT_RIGHT 0x0001 // Same as HDF_RIGHT +#define LVCFMT_CENTER 0x0002 // Same as HDF_CENTER +#define LVCFMT_JUSTIFYMASK 0x0003 // Same as HDF_JUSTIFYMASK + +#define LVCFMT_IMAGE 0x0800 // Same as HDF_IMAGE +#define LVCFMT_BITMAP_ON_RIGHT 0x1000 // Same as HDF_BITMAP_ON_RIGHT +#define LVCFMT_COL_HAS_IMAGES 0x8000 // Same as HDF_OWNERDRAW + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LVCFMT_FIXED_WIDTH 0x00100 // Can't resize the column; same as HDF_FIXEDWIDTH +#define LVCFMT_NO_DPI_SCALE 0x40000 // If not set, CCM_DPISCALE will govern scaling up fixed width +#define LVCFMT_FIXED_RATIO 0x80000 // Width will augment with the row height + +// The following flags +#define LVCFMT_LINE_BREAK 0x100000 // Move to the top of the next list of columns +#define LVCFMT_FILL 0x200000 // Fill the remainder of the tile area. Might have a title. +#define LVCFMT_WRAP 0x400000 // This sub-item can be wrapped. +#define LVCFMT_NO_TITLE 0x800000 // This sub-item doesn't have an title. +#define LVCFMT_TILE_PLACEMENTMASK (LVCFMT_LINE_BREAK | LVCFMT_FILL) + +#define LVCFMT_SPLITBUTTON 0x1000000 // Column is a split button; same as HDF_SPLITBUTTON +#endif + +#define LVM_GETCOLUMNA (LVM_FIRST + 25) +#define LVM_GETCOLUMNW (LVM_FIRST + 95) +#ifdef UNICODE +#define LVM_GETCOLUMN LVM_GETCOLUMNW +#else +#define LVM_GETCOLUMN LVM_GETCOLUMNA +#endif + +#define ListView_GetColumn(hwnd, iCol, pcol) \ + (BOOL)SNDMSG((hwnd), LVM_GETCOLUMN, (WPARAM)(int)(iCol), (LPARAM)(LV_COLUMN *)(pcol)) + +#define LVM_SETCOLUMNA (LVM_FIRST + 26) +#define LVM_SETCOLUMNW (LVM_FIRST + 96) +#ifdef UNICODE +#define LVM_SETCOLUMN LVM_SETCOLUMNW +#else +#define LVM_SETCOLUMN LVM_SETCOLUMNA +#endif + +#define ListView_SetColumn(hwnd, iCol, pcol) \ + (BOOL)SNDMSG((hwnd), LVM_SETCOLUMN, (WPARAM)(int)(iCol), (LPARAM)(const LV_COLUMN *)(pcol)) + + +#define LVM_INSERTCOLUMNA (LVM_FIRST + 27) +#define LVM_INSERTCOLUMNW (LVM_FIRST + 97) +#ifdef UNICODE +# define LVM_INSERTCOLUMN LVM_INSERTCOLUMNW +#else +# define LVM_INSERTCOLUMN LVM_INSERTCOLUMNA +#endif + +#define ListView_InsertColumn(hwnd, iCol, pcol) \ + (int)SNDMSG((hwnd), LVM_INSERTCOLUMN, (WPARAM)(int)(iCol), (LPARAM)(const LV_COLUMN *)(pcol)) + + +#define LVM_DELETECOLUMN (LVM_FIRST + 28) +#define ListView_DeleteColumn(hwnd, iCol) \ + (BOOL)SNDMSG((hwnd), LVM_DELETECOLUMN, (WPARAM)(int)(iCol), 0) + + +#define LVM_GETCOLUMNWIDTH (LVM_FIRST + 29) +#define ListView_GetColumnWidth(hwnd, iCol) \ + (int)SNDMSG((hwnd), LVM_GETCOLUMNWIDTH, (WPARAM)(int)(iCol), 0) + + +#define LVSCW_AUTOSIZE -1 +#define LVSCW_AUTOSIZE_USEHEADER -2 +#define LVM_SETCOLUMNWIDTH (LVM_FIRST + 30) + +#define ListView_SetColumnWidth(hwnd, iCol, cx) \ + (BOOL)SNDMSG((hwnd), LVM_SETCOLUMNWIDTH, (WPARAM)(int)(iCol), MAKELPARAM((cx), 0)) + +#define LVM_GETHEADER (LVM_FIRST + 31) +#define ListView_GetHeader(hwnd)\ + (HWND)SNDMSG((hwnd), LVM_GETHEADER, 0, 0L) + +#define LVM_CREATEDRAGIMAGE (LVM_FIRST + 33) +#define ListView_CreateDragImage(hwnd, i, lpptUpLeft) \ + (HIMAGELIST)SNDMSG((hwnd), LVM_CREATEDRAGIMAGE, (WPARAM)(int)(i), (LPARAM)(LPPOINT)(lpptUpLeft)) + + +#define LVM_GETVIEWRECT (LVM_FIRST + 34) +#define ListView_GetViewRect(hwnd, prc) \ + (BOOL)SNDMSG((hwnd), LVM_GETVIEWRECT, 0, (LPARAM)(RECT *)(prc)) + + +#define LVM_GETTEXTCOLOR (LVM_FIRST + 35) +#define ListView_GetTextColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), LVM_GETTEXTCOLOR, 0, 0L) + + +#define LVM_SETTEXTCOLOR (LVM_FIRST + 36) +#define ListView_SetTextColor(hwnd, clrText) \ + (BOOL)SNDMSG((hwnd), LVM_SETTEXTCOLOR, 0, (LPARAM)(COLORREF)(clrText)) + + +#define LVM_GETTEXTBKCOLOR (LVM_FIRST + 37) +#define ListView_GetTextBkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), LVM_GETTEXTBKCOLOR, 0, 0L) + + +#define LVM_SETTEXTBKCOLOR (LVM_FIRST + 38) +#define ListView_SetTextBkColor(hwnd, clrTextBk) \ + (BOOL)SNDMSG((hwnd), LVM_SETTEXTBKCOLOR, 0, (LPARAM)(COLORREF)(clrTextBk)) + + +#define LVM_GETTOPINDEX (LVM_FIRST + 39) +#define ListView_GetTopIndex(hwndLV) \ + (int)SNDMSG((hwndLV), LVM_GETTOPINDEX, 0, 0) + + +#define LVM_GETCOUNTPERPAGE (LVM_FIRST + 40) +#define ListView_GetCountPerPage(hwndLV) \ + (int)SNDMSG((hwndLV), LVM_GETCOUNTPERPAGE, 0, 0) + + +#define LVM_GETORIGIN (LVM_FIRST + 41) +#define ListView_GetOrigin(hwndLV, ppt) \ + (BOOL)SNDMSG((hwndLV), LVM_GETORIGIN, (WPARAM)0, (LPARAM)(POINT *)(ppt)) + + +#define LVM_UPDATE (LVM_FIRST + 42) +#define ListView_Update(hwndLV, i) \ + (BOOL)SNDMSG((hwndLV), LVM_UPDATE, (WPARAM)(i), 0L) + + +#define LVM_SETITEMSTATE (LVM_FIRST + 43) +#define ListView_SetItemState(hwndLV, i, data, mask) \ +{ LV_ITEM _macro_lvi;\ + _macro_lvi.stateMask = (mask);\ + _macro_lvi.state = (data);\ + SNDMSG((hwndLV), LVM_SETITEMSTATE, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_macro_lvi);\ +} + +#define ListView_SetCheckState(hwndLV, i, fCheck) \ + ListView_SetItemState(hwndLV, i, INDEXTOSTATEIMAGEMASK((fCheck)?2:1), LVIS_STATEIMAGEMASK) + +#define LVM_GETITEMSTATE (LVM_FIRST + 44) +#define ListView_GetItemState(hwndLV, i, mask) \ + (UINT)SNDMSG((hwndLV), LVM_GETITEMSTATE, (WPARAM)(i), (LPARAM)(mask)) + +#define ListView_GetCheckState(hwndLV, i) \ + ((((UINT)(SNDMSG((hwndLV), LVM_GETITEMSTATE, (WPARAM)(i), LVIS_STATEIMAGEMASK))) >> 12) -1) + +#define LVM_GETITEMTEXTA (LVM_FIRST + 45) +#define LVM_GETITEMTEXTW (LVM_FIRST + 115) + +#ifdef UNICODE +#define LVM_GETITEMTEXT LVM_GETITEMTEXTW +#else +#define LVM_GETITEMTEXT LVM_GETITEMTEXTA +#endif + +#define ListView_GetItemText(hwndLV, i, iSubItem_, pszText_, cchTextMax_) \ +{ LV_ITEM _macro_lvi;\ + _macro_lvi.iSubItem = (iSubItem_);\ + _macro_lvi.cchTextMax = (cchTextMax_);\ + _macro_lvi.pszText = (pszText_);\ + SNDMSG((hwndLV), LVM_GETITEMTEXT, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_macro_lvi);\ +} + + +#define LVM_SETITEMTEXTA (LVM_FIRST + 46) +#define LVM_SETITEMTEXTW (LVM_FIRST + 116) + +#ifdef UNICODE +#define LVM_SETITEMTEXT LVM_SETITEMTEXTW +#else +#define LVM_SETITEMTEXT LVM_SETITEMTEXTA +#endif + +#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_) \ +{ LV_ITEM _macro_lvi;\ + _macro_lvi.iSubItem = (iSubItem_);\ + _macro_lvi.pszText = (pszText_);\ + SNDMSG((hwndLV), LVM_SETITEMTEXT, (WPARAM)(i), (LPARAM)(LV_ITEM *)&_macro_lvi);\ +} + +// these flags only apply to LVS_OWNERDATA listviews in report or list mode +#define LVSICF_NOINVALIDATEALL 0x00000001 +#define LVSICF_NOSCROLL 0x00000002 + +#define LVM_SETITEMCOUNT (LVM_FIRST + 47) +#define ListView_SetItemCount(hwndLV, cItems) \ + SNDMSG((hwndLV), LVM_SETITEMCOUNT, (WPARAM)(cItems), 0) + +#define ListView_SetItemCountEx(hwndLV, cItems, dwFlags) \ + SNDMSG((hwndLV), LVM_SETITEMCOUNT, (WPARAM)(cItems), (LPARAM)(dwFlags)) + +typedef int (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM); + + +#define LVM_SORTITEMS (LVM_FIRST + 48) +#define ListView_SortItems(hwndLV, _pfnCompare, _lPrm) \ + (BOOL)SNDMSG((hwndLV), LVM_SORTITEMS, (WPARAM)(LPARAM)(_lPrm), \ + (LPARAM)(PFNLVCOMPARE)(_pfnCompare)) + + +#define LVM_SETITEMPOSITION32 (LVM_FIRST + 49) +#define ListView_SetItemPosition32(hwndLV, i, x0, y0) \ +{ POINT ptNewPos; \ + ptNewPos.x = (x0); ptNewPos.y = (y0); \ + SNDMSG((hwndLV), LVM_SETITEMPOSITION32, (WPARAM)(int)(i), (LPARAM)&ptNewPos); \ +} + + +#define LVM_GETSELECTEDCOUNT (LVM_FIRST + 50) +#define ListView_GetSelectedCount(hwndLV) \ + (UINT)SNDMSG((hwndLV), LVM_GETSELECTEDCOUNT, 0, 0L) + +#define LVM_GETITEMSPACING (LVM_FIRST + 51) +#define ListView_GetItemSpacing(hwndLV, fSmall) \ + (DWORD)SNDMSG((hwndLV), LVM_GETITEMSPACING, fSmall, 0L) + + +#define LVM_GETISEARCHSTRINGA (LVM_FIRST + 52) +#define LVM_GETISEARCHSTRINGW (LVM_FIRST + 117) + +#ifdef UNICODE +#define LVM_GETISEARCHSTRING LVM_GETISEARCHSTRINGW +#else +#define LVM_GETISEARCHSTRING LVM_GETISEARCHSTRINGA +#endif + +#define ListView_GetISearchString(hwndLV, lpsz) \ + (BOOL)SNDMSG((hwndLV), LVM_GETISEARCHSTRING, 0, (LPARAM)(LPTSTR)(lpsz)) + +#define LVM_SETICONSPACING (LVM_FIRST + 53) +// -1 for cx and cy means we'll use the default (system settings) +// 0 for cx or cy means use the current setting (allows you to change just one param) +#define ListView_SetIconSpacing(hwndLV, cx, cy) \ + (DWORD)SNDMSG((hwndLV), LVM_SETICONSPACING, 0, MAKELONG(cx,cy)) + + +#define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST + 54) // optional wParam == mask +#define ListView_SetExtendedListViewStyle(hwndLV, dw)\ + (DWORD)SNDMSG((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, 0, dw) +#define ListView_SetExtendedListViewStyleEx(hwndLV, dwMask, dw)\ + (DWORD)SNDMSG((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, dwMask, dw) + +#define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST + 55) +#define ListView_GetExtendedListViewStyle(hwndLV)\ + (DWORD)SNDMSG((hwndLV), LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0) + +#define LVS_EX_GRIDLINES 0x00000001 +#define LVS_EX_SUBITEMIMAGES 0x00000002 +#define LVS_EX_CHECKBOXES 0x00000004 +#define LVS_EX_TRACKSELECT 0x00000008 +#define LVS_EX_HEADERDRAGDROP 0x00000010 +#define LVS_EX_FULLROWSELECT 0x00000020 // applies to report mode only +#define LVS_EX_ONECLICKACTIVATE 0x00000040 +#define LVS_EX_TWOCLICKACTIVATE 0x00000080 +#define LVS_EX_FLATSB 0x00000100 +#define LVS_EX_REGIONAL 0x00000200 +#define LVS_EX_INFOTIP 0x00000400 // listview does InfoTips for you +#define LVS_EX_UNDERLINEHOT 0x00000800 +#define LVS_EX_UNDERLINECOLD 0x00001000 +#define LVS_EX_MULTIWORKAREAS 0x00002000 +#define LVS_EX_LABELTIP 0x00004000 // listview unfolds partly hidden labels if it does not have infotip text +#define LVS_EX_BORDERSELECT 0x00008000 // border selection style instead of highlight +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define LVS_EX_DOUBLEBUFFER 0x00010000 +#define LVS_EX_HIDELABELS 0x00020000 +#define LVS_EX_SINGLEROW 0x00040000 +#define LVS_EX_SNAPTOGRID 0x00080000 // Icons automatically snap to grid. +#define LVS_EX_SIMPLESELECT 0x00100000 // Also changes overlay rendering to top right for icon mode. +#endif +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LVS_EX_JUSTIFYCOLUMNS 0x00200000 // Icons are lined up in columns that use up the whole view area. +#define LVS_EX_TRANSPARENTBKGND 0x00400000 // Background is painted by the parent via WM_PRINTCLIENT +#define LVS_EX_TRANSPARENTSHADOWTEXT 0x00800000 // Enable shadow text on transparent backgrounds only (useful with bitmaps) +#define LVS_EX_AUTOAUTOARRANGE 0x01000000 // Icons automatically arrange if no icon positions have been set +#define LVS_EX_HEADERINALLVIEWS 0x02000000 // Display column header in all view modes +#define LVS_EX_AUTOCHECKSELECT 0x08000000 +#define LVS_EX_AUTOSIZECOLUMNS 0x10000000 +#define LVS_EX_COLUMNSNAPPOINTS 0x40000000 +#define LVS_EX_COLUMNOVERFLOW 0x80000000 + +#endif + +#define LVM_GETSUBITEMRECT (LVM_FIRST + 56) +#define ListView_GetSubItemRect(hwnd, iItem, iSubItem, code, prc) \ + (BOOL)SNDMSG((hwnd), LVM_GETSUBITEMRECT, (WPARAM)(int)(iItem), \ + ((prc) ? ((((LPRECT)(prc))->top = (iSubItem)), (((LPRECT)(prc))->left = (code)), (LPARAM)(prc)) : (LPARAM)(LPRECT)NULL)) + +#define LVM_SUBITEMHITTEST (LVM_FIRST + 57) +#define ListView_SubItemHitTest(hwnd, plvhti) \ + (int)SNDMSG((hwnd), LVM_SUBITEMHITTEST, 0, (LPARAM)(LPLVHITTESTINFO)(plvhti)) +#define ListView_SubItemHitTestEx(hwnd, plvhti) \ + (int)SNDMSG((hwnd), LVM_SUBITEMHITTEST, (WPARAM)-1, (LPARAM)(LPLVHITTESTINFO)(plvhti)) + +#define LVM_SETCOLUMNORDERARRAY (LVM_FIRST + 58) +#define ListView_SetColumnOrderArray(hwnd, iCount, pi) \ + (BOOL)SNDMSG((hwnd), LVM_SETCOLUMNORDERARRAY, (WPARAM)(iCount), (LPARAM)(LPINT)(pi)) + +#define LVM_GETCOLUMNORDERARRAY (LVM_FIRST + 59) +#define ListView_GetColumnOrderArray(hwnd, iCount, pi) \ + (BOOL)SNDMSG((hwnd), LVM_GETCOLUMNORDERARRAY, (WPARAM)(iCount), (LPARAM)(LPINT)(pi)) + +#define LVM_SETHOTITEM (LVM_FIRST + 60) +#define ListView_SetHotItem(hwnd, i) \ + (int)SNDMSG((hwnd), LVM_SETHOTITEM, (WPARAM)(i), 0) + +#define LVM_GETHOTITEM (LVM_FIRST + 61) +#define ListView_GetHotItem(hwnd) \ + (int)SNDMSG((hwnd), LVM_GETHOTITEM, 0, 0) + +#define LVM_SETHOTCURSOR (LVM_FIRST + 62) +#define ListView_SetHotCursor(hwnd, hcur) \ + (HCURSOR)SNDMSG((hwnd), LVM_SETHOTCURSOR, 0, (LPARAM)(hcur)) + +#define LVM_GETHOTCURSOR (LVM_FIRST + 63) +#define ListView_GetHotCursor(hwnd) \ + (HCURSOR)SNDMSG((hwnd), LVM_GETHOTCURSOR, 0, 0) + +#define LVM_APPROXIMATEVIEWRECT (LVM_FIRST + 64) +#define ListView_ApproximateViewRect(hwnd, iWidth, iHeight, iCount) \ + (DWORD)SNDMSG((hwnd), LVM_APPROXIMATEVIEWRECT, (WPARAM)(iCount), MAKELPARAM(iWidth, iHeight)) + +#define LV_MAX_WORKAREAS 16 +#define LVM_SETWORKAREAS (LVM_FIRST + 65) +#define ListView_SetWorkAreas(hwnd, nWorkAreas, prc) \ + (BOOL)SNDMSG((hwnd), LVM_SETWORKAREAS, (WPARAM)(int)(nWorkAreas), (LPARAM)(RECT *)(prc)) + +#define LVM_GETWORKAREAS (LVM_FIRST + 70) +#define ListView_GetWorkAreas(hwnd, nWorkAreas, prc) \ + (BOOL)SNDMSG((hwnd), LVM_GETWORKAREAS, (WPARAM)(int)(nWorkAreas), (LPARAM)(RECT *)(prc)) + + +#define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST + 73) +#define ListView_GetNumberOfWorkAreas(hwnd, pnWorkAreas) \ + (BOOL)SNDMSG((hwnd), LVM_GETNUMBEROFWORKAREAS, 0, (LPARAM)(UINT *)(pnWorkAreas)) + + +#define LVM_GETSELECTIONMARK (LVM_FIRST + 66) +#define ListView_GetSelectionMark(hwnd) \ + (int)SNDMSG((hwnd), LVM_GETSELECTIONMARK, 0, 0) + +#define LVM_SETSELECTIONMARK (LVM_FIRST + 67) +#define ListView_SetSelectionMark(hwnd, i) \ + (int)SNDMSG((hwnd), LVM_SETSELECTIONMARK, 0, (LPARAM)(i)) + +#define LVM_SETHOVERTIME (LVM_FIRST + 71) +#define ListView_SetHoverTime(hwndLV, dwHoverTimeMs)\ + (DWORD)SNDMSG((hwndLV), LVM_SETHOVERTIME, 0, (LPARAM)(dwHoverTimeMs)) + +#define LVM_GETHOVERTIME (LVM_FIRST + 72) +#define ListView_GetHoverTime(hwndLV)\ + (DWORD)SNDMSG((hwndLV), LVM_GETHOVERTIME, 0, 0) + +#define LVM_SETTOOLTIPS (LVM_FIRST + 74) +#define ListView_SetToolTips(hwndLV, hwndNewHwnd)\ + (HWND)SNDMSG((hwndLV), LVM_SETTOOLTIPS, (WPARAM)(hwndNewHwnd), 0) + +#define LVM_GETTOOLTIPS (LVM_FIRST + 78) +#define ListView_GetToolTips(hwndLV)\ + (HWND)SNDMSG((hwndLV), LVM_GETTOOLTIPS, 0, 0) + + +#define LVM_SORTITEMSEX (LVM_FIRST + 81) +#define ListView_SortItemsEx(hwndLV, _pfnCompare, _lPrm) \ + (BOOL)SNDMSG((hwndLV), LVM_SORTITEMSEX, (WPARAM)(LPARAM)(_lPrm), (LPARAM)(PFNLVCOMPARE)(_pfnCompare)) + +typedef struct tagLVBKIMAGEA +{ + ULONG ulFlags; // LVBKIF_* + HBITMAP hbm; + LPSTR pszImage; + UINT cchImageMax; + int xOffsetPercent; + int yOffsetPercent; +} LVBKIMAGEA, *LPLVBKIMAGEA; +typedef struct tagLVBKIMAGEW +{ + ULONG ulFlags; // LVBKIF_* + HBITMAP hbm; + LPWSTR pszImage; + UINT cchImageMax; + int xOffsetPercent; + int yOffsetPercent; +} LVBKIMAGEW, *LPLVBKIMAGEW; + +#define LVBKIF_SOURCE_NONE 0x00000000 +#define LVBKIF_SOURCE_HBITMAP 0x00000001 +#define LVBKIF_SOURCE_URL 0x00000002 +#define LVBKIF_SOURCE_MASK 0x00000003 +#define LVBKIF_STYLE_NORMAL 0x00000000 +#define LVBKIF_STYLE_TILE 0x00000010 +#define LVBKIF_STYLE_MASK 0x00000010 +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define LVBKIF_FLAG_TILEOFFSET 0x00000100 +#define LVBKIF_TYPE_WATERMARK 0x10000000 +#define LVBKIF_FLAG_ALPHABLEND 0x20000000 +#endif + +#define LVM_SETBKIMAGEA (LVM_FIRST + 68) +#define LVM_SETBKIMAGEW (LVM_FIRST + 138) +#define LVM_GETBKIMAGEA (LVM_FIRST + 69) +#define LVM_GETBKIMAGEW (LVM_FIRST + 139) + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define LVM_SETSELECTEDCOLUMN (LVM_FIRST + 140) +#define ListView_SetSelectedColumn(hwnd, iCol) \ + SNDMSG((hwnd), LVM_SETSELECTEDCOLUMN, (WPARAM)(iCol), 0) + +#define LV_VIEW_ICON 0x0000 +#define LV_VIEW_DETAILS 0x0001 +#define LV_VIEW_SMALLICON 0x0002 +#define LV_VIEW_LIST 0x0003 +#define LV_VIEW_TILE 0x0004 +#define LV_VIEW_MAX 0x0004 + +#define LVM_SETVIEW (LVM_FIRST + 142) +#define ListView_SetView(hwnd, iView) \ + (DWORD)SNDMSG((hwnd), LVM_SETVIEW, (WPARAM)(DWORD)(iView), 0) + +#define LVM_GETVIEW (LVM_FIRST + 143) +#define ListView_GetView(hwnd) \ + (DWORD)SNDMSG((hwnd), LVM_GETVIEW, 0, 0) + + +#define LVGF_NONE 0x00000000 +#define LVGF_HEADER 0x00000001 +#define LVGF_FOOTER 0x00000002 +#define LVGF_STATE 0x00000004 +#define LVGF_ALIGN 0x00000008 +#define LVGF_GROUPID 0x00000010 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LVGF_SUBTITLE 0x00000100 // pszSubtitle is valid +#define LVGF_TASK 0x00000200 // pszTask is valid +#define LVGF_DESCRIPTIONTOP 0x00000400 // pszDescriptionTop is valid +#define LVGF_DESCRIPTIONBOTTOM 0x00000800 // pszDescriptionBottom is valid +#define LVGF_TITLEIMAGE 0x00001000 // iTitleImage is valid +#define LVGF_EXTENDEDIMAGE 0x00002000 // iExtendedImage is valid +#define LVGF_ITEMS 0x00004000 // iFirstItem and cItems are valid +#define LVGF_SUBSET 0x00008000 // pszSubsetTitle is valid +#define LVGF_SUBSETITEMS 0x00010000 // readonly, cItems holds count of items in visible subset, iFirstItem is valid +#endif + +#define LVGS_NORMAL 0x00000000 +#define LVGS_COLLAPSED 0x00000001 +#define LVGS_HIDDEN 0x00000002 +#define LVGS_NOHEADER 0x00000004 +#define LVGS_COLLAPSIBLE 0x00000008 +#define LVGS_FOCUSED 0x00000010 +#define LVGS_SELECTED 0x00000020 +#define LVGS_SUBSETED 0x00000040 +#define LVGS_SUBSETLINKFOCUSED 0x00000080 + +#define LVGA_HEADER_LEFT 0x00000001 +#define LVGA_HEADER_CENTER 0x00000002 +#define LVGA_HEADER_RIGHT 0x00000004 // Don't forget to validate exclusivity +#define LVGA_FOOTER_LEFT 0x00000008 +#define LVGA_FOOTER_CENTER 0x00000010 +#define LVGA_FOOTER_RIGHT 0x00000020 // Don't forget to validate exclusivity + +typedef struct tagLVGROUP +{ + UINT cbSize; + UINT mask; + LPWSTR pszHeader; + int cchHeader; + + LPWSTR pszFooter; + int cchFooter; + + int iGroupId; + + UINT stateMask; + UINT state; + UINT uAlign; +#if (NTDDI_VERSION >= NTDDI_VISTA) + LPWSTR pszSubtitle; + UINT cchSubtitle; + LPWSTR pszTask; + UINT cchTask; + LPWSTR pszDescriptionTop; + UINT cchDescriptionTop; + LPWSTR pszDescriptionBottom; + UINT cchDescriptionBottom; + int iTitleImage; + int iExtendedImage; + int iFirstItem; // Read only + UINT cItems; // Read only + LPWSTR pszSubsetTitle; // NULL if group is not subset + UINT cchSubsetTitle; + +#define LVGROUP_V5_SIZE CCSIZEOF_STRUCT(LVGROUP, uAlign) + +#endif +} LVGROUP, *PLVGROUP; + +#define LVM_INSERTGROUP (LVM_FIRST + 145) +#define ListView_InsertGroup(hwnd, index, pgrp) \ + SNDMSG((hwnd), LVM_INSERTGROUP, (WPARAM)(index), (LPARAM)(pgrp)) + +#define LVM_SETGROUPINFO (LVM_FIRST + 147) +#define ListView_SetGroupInfo(hwnd, iGroupId, pgrp) \ + SNDMSG((hwnd), LVM_SETGROUPINFO, (WPARAM)(iGroupId), (LPARAM)(pgrp)) + +#define LVM_GETGROUPINFO (LVM_FIRST + 149) +#define ListView_GetGroupInfo(hwnd, iGroupId, pgrp) \ + SNDMSG((hwnd), LVM_GETGROUPINFO, (WPARAM)(iGroupId), (LPARAM)(pgrp)) + +#define LVM_REMOVEGROUP (LVM_FIRST + 150) +#define ListView_RemoveGroup(hwnd, iGroupId) \ + SNDMSG((hwnd), LVM_REMOVEGROUP, (WPARAM)(iGroupId), 0) + +#define LVM_MOVEGROUP (LVM_FIRST + 151) +#define ListView_MoveGroup(hwnd, iGroupId, toIndex) \ + SNDMSG((hwnd), LVM_MOVEGROUP, (WPARAM)(iGroupId), (LPARAM)(toIndex)) + +#define LVM_GETGROUPCOUNT (LVM_FIRST + 152) +#define ListView_GetGroupCount(hwnd) \ + SNDMSG((hwnd), LVM_GETGROUPCOUNT, (WPARAM)0, (LPARAM)0) + +#define LVM_GETGROUPINFOBYINDEX (LVM_FIRST + 153) +#define ListView_GetGroupInfoByIndex(hwnd, iIndex, pgrp) \ + SNDMSG((hwnd), LVM_GETGROUPINFOBYINDEX, (WPARAM)(iIndex), (LPARAM)(pgrp)) + +#define LVM_MOVEITEMTOGROUP (LVM_FIRST + 154) +#define ListView_MoveItemToGroup(hwnd, idItemFrom, idGroupTo) \ + SNDMSG((hwnd), LVM_MOVEITEMTOGROUP, (WPARAM)(idItemFrom), (LPARAM)(idGroupTo)) + +#define LVGGR_GROUP 0 // Entire expanded group +#define LVGGR_HEADER 1 // Header only (collapsed group) +#define LVGGR_LABEL 2 // Label only +#define LVGGR_SUBSETLINK 3 // subset link only + +#define LVM_GETGROUPRECT (LVM_FIRST + 98) +#define ListView_GetGroupRect(hwnd, iGroupId, type, prc) \ + SNDMSG((hwnd), LVM_GETGROUPRECT, (WPARAM)(iGroupId), \ + ((prc) ? (((RECT*)(prc))->top = (type)), (LPARAM)(RECT*)(prc) : (LPARAM)(RECT*)NULL)) + +#define LVGMF_NONE 0x00000000 +#define LVGMF_BORDERSIZE 0x00000001 +#define LVGMF_BORDERCOLOR 0x00000002 +#define LVGMF_TEXTCOLOR 0x00000004 + +typedef struct tagLVGROUPMETRICS +{ + UINT cbSize; + UINT mask; + UINT Left; + UINT Top; + UINT Right; + UINT Bottom; + COLORREF crLeft; + COLORREF crTop; + COLORREF crRight; + COLORREF crBottom; + COLORREF crHeader; + COLORREF crFooter; +} LVGROUPMETRICS, *PLVGROUPMETRICS; + +#define LVM_SETGROUPMETRICS (LVM_FIRST + 155) +#define ListView_SetGroupMetrics(hwnd, pGroupMetrics) \ + SNDMSG((hwnd), LVM_SETGROUPMETRICS, 0, (LPARAM)(pGroupMetrics)) + +#define LVM_GETGROUPMETRICS (LVM_FIRST + 156) +#define ListView_GetGroupMetrics(hwnd, pGroupMetrics) \ + SNDMSG((hwnd), LVM_GETGROUPMETRICS, 0, (LPARAM)(pGroupMetrics)) + +#define LVM_ENABLEGROUPVIEW (LVM_FIRST + 157) +#define ListView_EnableGroupView(hwnd, fEnable) \ + SNDMSG((hwnd), LVM_ENABLEGROUPVIEW, (WPARAM)(fEnable), 0) + +typedef int (CALLBACK *PFNLVGROUPCOMPARE)(int, int, void *); + +#define LVM_SORTGROUPS (LVM_FIRST + 158) +#define ListView_SortGroups(hwnd, _pfnGroupCompate, _plv) \ + SNDMSG((hwnd), LVM_SORTGROUPS, (WPARAM)(_pfnGroupCompate), (LPARAM)(_plv)) + +typedef struct tagLVINSERTGROUPSORTED +{ + PFNLVGROUPCOMPARE pfnGroupCompare; + void *pvData; + LVGROUP lvGroup; +}LVINSERTGROUPSORTED, *PLVINSERTGROUPSORTED; + +#define LVM_INSERTGROUPSORTED (LVM_FIRST + 159) +#define ListView_InsertGroupSorted(hwnd, structInsert) \ + SNDMSG((hwnd), LVM_INSERTGROUPSORTED, (WPARAM)(structInsert), 0) + +#define LVM_REMOVEALLGROUPS (LVM_FIRST + 160) +#define ListView_RemoveAllGroups(hwnd) \ + SNDMSG((hwnd), LVM_REMOVEALLGROUPS, 0, 0) + +#define LVM_HASGROUP (LVM_FIRST + 161) +#define ListView_HasGroup(hwnd, dwGroupId) \ + SNDMSG((hwnd), LVM_HASGROUP, dwGroupId, 0) + +#define ListView_SetGroupState(hwnd, dwGroupId, dwMask, dwState) \ +{ LVGROUP _macro_lvg;\ + _macro_lvg.cbSize = sizeof(_macro_lvg);\ + _macro_lvg.mask = LVGF_STATE;\ + _macro_lvg.stateMask = dwMask;\ + _macro_lvg.state = dwState;\ + SNDMSG((hwnd), LVM_SETGROUPINFO, (WPARAM)(dwGroupId), (LPARAM)(LVGROUP *)&_macro_lvg);\ +} +#define LVM_GETGROUPSTATE (LVM_FIRST + 92) +#define ListView_GetGroupState(hwnd, dwGroupId, dwMask) \ + (UINT) SNDMSG((hwnd), LVM_GETGROUPSTATE, (WPARAM)(dwGroupId), (LPARAM)(dwMask)) + +#define LVM_GETFOCUSEDGROUP (LVM_FIRST + 93) +#define ListView_GetFocusedGroup(hwnd) \ + SNDMSG((hwnd), LVM_GETFOCUSEDGROUP, 0, 0) + +#define LVTVIF_AUTOSIZE 0x00000000 +#define LVTVIF_FIXEDWIDTH 0x00000001 +#define LVTVIF_FIXEDHEIGHT 0x00000002 +#define LVTVIF_FIXEDSIZE 0x00000003 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LVTVIF_EXTENDED 0x00000004 +#endif + +#define LVTVIM_TILESIZE 0x00000001 +#define LVTVIM_COLUMNS 0x00000002 +#define LVTVIM_LABELMARGIN 0x00000004 + +typedef struct tagLVTILEVIEWINFO +{ + UINT cbSize; + DWORD dwMask; //LVTVIM_* + DWORD dwFlags; //LVTVIF_* + SIZE sizeTile; + int cLines; + RECT rcLabelMargin; +} LVTILEVIEWINFO, *PLVTILEVIEWINFO; + +typedef struct tagLVTILEINFO +{ + UINT cbSize; + int iItem; + UINT cColumns; + PUINT puColumns; +#if (NTDDI_VERSION >= NTDDI_VISTA) + int* piColFmt; +#endif +} LVTILEINFO, *PLVTILEINFO; + +#define LVTILEINFO_V5_SIZE CCSIZEOF_STRUCT(LVTILEINFO, puColumns) + +#define LVM_SETTILEVIEWINFO (LVM_FIRST + 162) +#define ListView_SetTileViewInfo(hwnd, ptvi) \ + SNDMSG((hwnd), LVM_SETTILEVIEWINFO, 0, (LPARAM)(ptvi)) + +#define LVM_GETTILEVIEWINFO (LVM_FIRST + 163) +#define ListView_GetTileViewInfo(hwnd, ptvi) \ + SNDMSG((hwnd), LVM_GETTILEVIEWINFO, 0, (LPARAM)(ptvi)) + +#define LVM_SETTILEINFO (LVM_FIRST + 164) +#define ListView_SetTileInfo(hwnd, pti) \ + SNDMSG((hwnd), LVM_SETTILEINFO, 0, (LPARAM)(pti)) + +#define LVM_GETTILEINFO (LVM_FIRST + 165) +#define ListView_GetTileInfo(hwnd, pti) \ + SNDMSG((hwnd), LVM_GETTILEINFO, 0, (LPARAM)(pti)) + +typedef struct +{ + UINT cbSize; + DWORD dwFlags; + int iItem; + DWORD dwReserved; +} LVINSERTMARK, * LPLVINSERTMARK; + +#define LVIM_AFTER 0x00000001 // TRUE = insert After iItem, otherwise before + +#define LVM_SETINSERTMARK (LVM_FIRST + 166) +#define ListView_SetInsertMark(hwnd, lvim) \ + (BOOL)SNDMSG((hwnd), LVM_SETINSERTMARK, (WPARAM) 0, (LPARAM) (lvim)) + +#define LVM_GETINSERTMARK (LVM_FIRST + 167) +#define ListView_GetInsertMark(hwnd, lvim) \ + (BOOL)SNDMSG((hwnd), LVM_GETINSERTMARK, (WPARAM) 0, (LPARAM) (lvim)) + +#define LVM_INSERTMARKHITTEST (LVM_FIRST + 168) +#define ListView_InsertMarkHitTest(hwnd, point, lvim) \ + (int)SNDMSG((hwnd), LVM_INSERTMARKHITTEST, (WPARAM)(LPPOINT)(point), (LPARAM)(LPLVINSERTMARK)(lvim)) + +#define LVM_GETINSERTMARKRECT (LVM_FIRST + 169) +#define ListView_GetInsertMarkRect(hwnd, rc) \ + (int)SNDMSG((hwnd), LVM_GETINSERTMARKRECT, (WPARAM)0, (LPARAM)(LPRECT)(rc)) + +#define LVM_SETINSERTMARKCOLOR (LVM_FIRST + 170) +#define ListView_SetInsertMarkColor(hwnd, color) \ + (COLORREF)SNDMSG((hwnd), LVM_SETINSERTMARKCOLOR, (WPARAM)0, (LPARAM)(COLORREF)(color)) + +#define LVM_GETINSERTMARKCOLOR (LVM_FIRST + 171) +#define ListView_GetInsertMarkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), LVM_GETINSERTMARKCOLOR, (WPARAM)0, (LPARAM)0) + +typedef struct tagLVSETINFOTIP +{ + UINT cbSize; + DWORD dwFlags; + LPWSTR pszText; + int iItem; + int iSubItem; +} LVSETINFOTIP, *PLVSETINFOTIP; + +#define LVM_SETINFOTIP (LVM_FIRST + 173) + +#define ListView_SetInfoTip(hwndLV, plvInfoTip)\ + (BOOL)SNDMSG((hwndLV), LVM_SETINFOTIP, (WPARAM)0, (LPARAM)(plvInfoTip)) + +#define LVM_GETSELECTEDCOLUMN (LVM_FIRST + 174) +#define ListView_GetSelectedColumn(hwnd) \ + (UINT)SNDMSG((hwnd), LVM_GETSELECTEDCOLUMN, 0, 0) + +#define LVM_ISGROUPVIEWENABLED (LVM_FIRST + 175) +#define ListView_IsGroupViewEnabled(hwnd) \ + (BOOL)SNDMSG((hwnd), LVM_ISGROUPVIEWENABLED, 0, 0) + +#define LVM_GETOUTLINECOLOR (LVM_FIRST + 176) +#define ListView_GetOutlineColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), LVM_GETOUTLINECOLOR, 0, 0) + +#define LVM_SETOUTLINECOLOR (LVM_FIRST + 177) +#define ListView_SetOutlineColor(hwnd, color) \ + (COLORREF)SNDMSG((hwnd), LVM_SETOUTLINECOLOR, (WPARAM)0, (LPARAM)(COLORREF)(color)) + + +#define LVM_CANCELEDITLABEL (LVM_FIRST + 179) +#define ListView_CancelEditLabel(hwnd) \ + (VOID)SNDMSG((hwnd), LVM_CANCELEDITLABEL, (WPARAM)0, (LPARAM)0) + +// These next to methods make it easy to identify an item that can be repositioned +// within listview. For example: Many developers use the lParam to store an identifier that is +// unique. Unfortunatly, in order to find this item, they have to iterate through all of the items +// in the listview. Listview will maintain a unique identifier. The upper bound is the size of a DWORD. +#define LVM_MAPINDEXTOID (LVM_FIRST + 180) +#define ListView_MapIndexToID(hwnd, index) \ + (UINT)SNDMSG((hwnd), LVM_MAPINDEXTOID, (WPARAM)(index), (LPARAM)0) + +#define LVM_MAPIDTOINDEX (LVM_FIRST + 181) +#define ListView_MapIDToIndex(hwnd, id) \ + (UINT)SNDMSG((hwnd), LVM_MAPIDTOINDEX, (WPARAM)(id), (LPARAM)0) + +#define LVM_ISITEMVISIBLE (LVM_FIRST + 182) +#define ListView_IsItemVisible(hwnd, index) \ + (UINT)SNDMSG((hwnd), LVM_ISITEMVISIBLE, (WPARAM)(index), (LPARAM)0) + + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define ListView_SetGroupHeaderImageList(hwnd, himl) \ + (HIMAGELIST)SNDMSG((hwnd), LVM_SETIMAGELIST, (WPARAM)LVSIL_GROUPHEADER, (LPARAM)(HIMAGELIST)(himl)) + +#define ListView_GetGroupHeaderImageList(hwnd) \ + (HIMAGELIST)SNDMSG((hwnd), LVM_GETIMAGELIST, (WPARAM)LVSIL_GROUPHEADER, 0L) + +#define LVM_GETEMPTYTEXT (LVM_FIRST + 204) +#define ListView_GetEmptyText(hwnd, pszText, cchText) \ + (BOOL)SNDMSG((hwnd), LVM_GETEMPTYTEXT, (WPARAM)(cchText), (LPARAM)(pszText)) + +#define LVM_GETFOOTERRECT (LVM_FIRST + 205) +#define ListView_GetFooterRect(hwnd, prc) \ + (BOOL)SNDMSG((hwnd), LVM_GETFOOTERRECT, (WPARAM)(0), (LPARAM)(prc)) + +// footer flags +#define LVFF_ITEMCOUNT 0x00000001 + +typedef struct tagLVFOOTERINFO +{ + UINT mask; // LVFF_* + LPWSTR pszText; + int cchTextMax; + UINT cItems; +} LVFOOTERINFO, *LPLVFOOTERINFO; + +#define LVM_GETFOOTERINFO (LVM_FIRST + 206) +#define ListView_GetFooterInfo(hwnd, plvfi) \ + (BOOL)SNDMSG((hwnd), LVM_GETFOOTERINFO, (WPARAM)(0), (LPARAM)(plvfi)) + +#define LVM_GETFOOTERITEMRECT (LVM_FIRST + 207) +#define ListView_GetFooterItemRect(hwnd, iItem, prc) \ + (BOOL)SNDMSG((hwnd), LVM_GETFOOTERITEMRECT, (WPARAM)(iItem), (LPARAM)(prc)) + +// footer item flags +#define LVFIF_TEXT 0x00000001 +#define LVFIF_STATE 0x00000002 + +// footer item state +#define LVFIS_FOCUSED 0x0001 + +typedef struct tagLVFOOTERITEM +{ + UINT mask; // LVFIF_* + int iItem; + LPWSTR pszText; + int cchTextMax; + UINT state; // LVFIS_* + UINT stateMask; // LVFIS_* +} LVFOOTERITEM, *LPLVFOOTERITEM; + +#define LVM_GETFOOTERITEM (LVM_FIRST + 208) +#define ListView_GetFooterItem(hwnd, iItem, pfi) \ + (BOOL)SNDMSG((hwnd), LVM_GETFOOTERITEM, (WPARAM)(iItem), (LPARAM)(pfi)) + +// supports a single item in multiple groups. +typedef struct tagLVITEMINDEX +{ + int iItem; // listview item index + int iGroup; // group index (must be -1 if group view is not enabled) +} LVITEMINDEX, *PLVITEMINDEX; + +#define LVM_GETITEMINDEXRECT (LVM_FIRST + 209) +#define ListView_GetItemIndexRect(hwnd, plvii, iSubItem, code, prc) \ + (BOOL)SNDMSG((hwnd), LVM_GETITEMINDEXRECT, (WPARAM)(LVITEMINDEX*)(plvii), \ + ((prc) ? ((((LPRECT)(prc))->top = (iSubItem)), (((LPRECT)(prc))->left = (code)), (LPARAM)(prc)) : (LPARAM)(LPRECT)NULL)) + +#define LVM_SETITEMINDEXSTATE (LVM_FIRST + 210) +#define ListView_SetItemIndexState(hwndLV, plvii, data, mask) \ +{ LV_ITEM _macro_lvi;\ + _macro_lvi.stateMask = (mask);\ + _macro_lvi.state = (data);\ + SNDMSG((hwndLV), LVM_SETITEMINDEXSTATE, (WPARAM)(LVITEMINDEX*)(plvii), (LPARAM)(LV_ITEM *)&_macro_lvi);\ +} + +#define LVM_GETNEXTITEMINDEX (LVM_FIRST + 211) +#define ListView_GetNextItemIndex(hwnd, plvii, flags) \ + (BOOL)SNDMSG((hwnd), LVM_GETNEXTITEMINDEX, (WPARAM)(LVITEMINDEX*)(plvii), MAKELPARAM((flags), 0)) + +#endif + +#endif + +#ifdef UNICODE +#define LVBKIMAGE LVBKIMAGEW +#define LPLVBKIMAGE LPLVBKIMAGEW +#define LVM_SETBKIMAGE LVM_SETBKIMAGEW +#define LVM_GETBKIMAGE LVM_GETBKIMAGEW +#else +#define LVBKIMAGE LVBKIMAGEA +#define LPLVBKIMAGE LPLVBKIMAGEA +#define LVM_SETBKIMAGE LVM_SETBKIMAGEA +#define LVM_GETBKIMAGE LVM_GETBKIMAGEA +#endif + +#define ListView_SetBkImage(hwnd, plvbki) \ + (BOOL)SNDMSG((hwnd), LVM_SETBKIMAGE, 0, (LPARAM)(plvbki)) + +#define ListView_GetBkImage(hwnd, plvbki) \ + (BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)(plvbki)) + + + +#define LPNM_LISTVIEW LPNMLISTVIEW +#define NM_LISTVIEW NMLISTVIEW + +typedef struct tagNMLISTVIEW +{ + NMHDR hdr; + int iItem; + int iSubItem; + UINT uNewState; + UINT uOldState; + UINT uChanged; + POINT ptAction; + LPARAM lParam; +} NMLISTVIEW, *LPNMLISTVIEW; + + +// NMITEMACTIVATE is used instead of NMLISTVIEW in IE >= 0x400 +// therefore all the fields are the same except for extra uKeyFlags +// they are used to store key flags at the time of the single click with +// delayed activation - because by the time the timer goes off a user may +// not hold the keys (shift, ctrl) any more +typedef struct tagNMITEMACTIVATE +{ + NMHDR hdr; + int iItem; + int iSubItem; + UINT uNewState; + UINT uOldState; + UINT uChanged; + POINT ptAction; + LPARAM lParam; + UINT uKeyFlags; +} NMITEMACTIVATE, *LPNMITEMACTIVATE; + +// key flags stored in uKeyFlags +#define LVKF_ALT 0x0001 +#define LVKF_CONTROL 0x0002 +#define LVKF_SHIFT 0x0004 + + +#define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLVCUSTOMDRAW, clrTextBk) + +typedef struct tagNMLVCUSTOMDRAW +{ + NMCUSTOMDRAW nmcd; + COLORREF clrText; + COLORREF clrTextBk; + int iSubItem; +#if (NTDDI_VERSION >= NTDDI_WINXP) + DWORD dwItemType; + + // Item custom draw + COLORREF clrFace; + int iIconEffect; + int iIconPhase; + int iPartId; + int iStateId; + + // Group Custom Draw + RECT rcText; + UINT uAlign; // Alignment. Use LVGA_HEADER_CENTER, LVGA_HEADER_RIGHT, LVGA_HEADER_LEFT +#endif +} NMLVCUSTOMDRAW, *LPNMLVCUSTOMDRAW; + +// dwItemType +#define LVCDI_ITEM 0x00000000 +#define LVCDI_GROUP 0x00000001 +#define LVCDI_ITEMSLIST 0x00000002 + +// ListView custom draw return values +#define LVCDRF_NOSELECT 0x00010000 +#define LVCDRF_NOGROUPFRAME 0x00020000 + + +typedef struct tagNMLVCACHEHINT +{ + NMHDR hdr; + int iFrom; + int iTo; +} NMLVCACHEHINT, *LPNMLVCACHEHINT; + +#define LPNM_CACHEHINT LPNMLVCACHEHINT +#define PNM_CACHEHINT LPNMLVCACHEHINT +#define NM_CACHEHINT NMLVCACHEHINT + +typedef struct tagNMLVFINDITEMA +{ + NMHDR hdr; + int iStart; + LVFINDINFOA lvfi; +} NMLVFINDITEMA, *LPNMLVFINDITEMA; + +typedef struct tagNMLVFINDITEMW +{ + NMHDR hdr; + int iStart; + LVFINDINFOW lvfi; +} NMLVFINDITEMW, *LPNMLVFINDITEMW; + +#define PNM_FINDITEMA LPNMLVFINDITEMA +#define LPNM_FINDITEMA LPNMLVFINDITEMA +#define NM_FINDITEMA NMLVFINDITEMA + +#define PNM_FINDITEMW LPNMLVFINDITEMW +#define LPNM_FINDITEMW LPNMLVFINDITEMW +#define NM_FINDITEMW NMLVFINDITEMW + +#ifdef UNICODE +#define PNM_FINDITEM PNM_FINDITEMW +#define LPNM_FINDITEM LPNM_FINDITEMW +#define NM_FINDITEM NM_FINDITEMW +#define NMLVFINDITEM NMLVFINDITEMW +#define LPNMLVFINDITEM LPNMLVFINDITEMW +#else +#define PNM_FINDITEM PNM_FINDITEMA +#define LPNM_FINDITEM LPNM_FINDITEMA +#define NM_FINDITEM NM_FINDITEMA +#define NMLVFINDITEM NMLVFINDITEMA +#define LPNMLVFINDITEM LPNMLVFINDITEMA +#endif + +typedef struct tagNMLVODSTATECHANGE +{ + NMHDR hdr; + int iFrom; + int iTo; + UINT uNewState; + UINT uOldState; +} NMLVODSTATECHANGE, *LPNMLVODSTATECHANGE; + +#define PNM_ODSTATECHANGE LPNMLVODSTATECHANGE +#define LPNM_ODSTATECHANGE LPNMLVODSTATECHANGE +#define NM_ODSTATECHANGE NMLVODSTATECHANGE + + +#define LVN_ITEMCHANGING (LVN_FIRST-0) +#define LVN_ITEMCHANGED (LVN_FIRST-1) +#define LVN_INSERTITEM (LVN_FIRST-2) +#define LVN_DELETEITEM (LVN_FIRST-3) +#define LVN_DELETEALLITEMS (LVN_FIRST-4) +#define LVN_BEGINLABELEDITA (LVN_FIRST-5) +#define LVN_BEGINLABELEDITW (LVN_FIRST-75) +#define LVN_ENDLABELEDITA (LVN_FIRST-6) +#define LVN_ENDLABELEDITW (LVN_FIRST-76) +#define LVN_COLUMNCLICK (LVN_FIRST-8) +#define LVN_BEGINDRAG (LVN_FIRST-9) +#define LVN_BEGINRDRAG (LVN_FIRST-11) + +#define LVN_ODCACHEHINT (LVN_FIRST-13) +#define LVN_ODFINDITEMA (LVN_FIRST-52) +#define LVN_ODFINDITEMW (LVN_FIRST-79) + +#define LVN_ITEMACTIVATE (LVN_FIRST-14) +#define LVN_ODSTATECHANGED (LVN_FIRST-15) + +#ifdef UNICODE +#define LVN_ODFINDITEM LVN_ODFINDITEMW +#else +#define LVN_ODFINDITEM LVN_ODFINDITEMA +#endif + + +#define LVN_HOTTRACK (LVN_FIRST-21) + +#define LVN_GETDISPINFOA (LVN_FIRST-50) +#define LVN_GETDISPINFOW (LVN_FIRST-77) +#define LVN_SETDISPINFOA (LVN_FIRST-51) +#define LVN_SETDISPINFOW (LVN_FIRST-78) + +#ifdef UNICODE +#define LVN_BEGINLABELEDIT LVN_BEGINLABELEDITW +#define LVN_ENDLABELEDIT LVN_ENDLABELEDITW +#define LVN_GETDISPINFO LVN_GETDISPINFOW +#define LVN_SETDISPINFO LVN_SETDISPINFOW +#else +#define LVN_BEGINLABELEDIT LVN_BEGINLABELEDITA +#define LVN_ENDLABELEDIT LVN_ENDLABELEDITA +#define LVN_GETDISPINFO LVN_GETDISPINFOA +#define LVN_SETDISPINFO LVN_SETDISPINFOA +#endif + + +#define LVIF_DI_SETITEM 0x1000 + +#define LV_DISPINFOA NMLVDISPINFOA +#define LV_DISPINFOW NMLVDISPINFOW + +#define LV_DISPINFO NMLVDISPINFO + +typedef struct tagLVDISPINFO { + NMHDR hdr; + LVITEMA item; +} NMLVDISPINFOA, *LPNMLVDISPINFOA; + +typedef struct tagLVDISPINFOW { + NMHDR hdr; + LVITEMW item; +} NMLVDISPINFOW, *LPNMLVDISPINFOW; + +#ifdef UNICODE +#define NMLVDISPINFO NMLVDISPINFOW +#else +#define NMLVDISPINFO NMLVDISPINFOA +#endif + +#define LVN_KEYDOWN (LVN_FIRST-55) + +#define LV_KEYDOWN NMLVKEYDOWN + +#ifdef _WIN32 +#include +#endif + +typedef struct tagLVKEYDOWN +{ + NMHDR hdr; + WORD wVKey; + UINT flags; +} NMLVKEYDOWN, *LPNMLVKEYDOWN; + +#ifdef _WIN32 +#include +#endif + +#define LVN_MARQUEEBEGIN (LVN_FIRST-56) + +#if (NTDDI_VERSION >= NTDDI_VISTA) +typedef struct tagNMLVLINK +{ + NMHDR hdr; + LITEM link; + int iItem; + int iSubItem; +} NMLVLINK, *PNMLVLINK; +#endif + +typedef struct tagNMLVGETINFOTIPA +{ + NMHDR hdr; + DWORD dwFlags; + LPSTR pszText; + int cchTextMax; + int iItem; + int iSubItem; + LPARAM lParam; +} NMLVGETINFOTIPA, *LPNMLVGETINFOTIPA; + +typedef struct tagNMLVGETINFOTIPW +{ + NMHDR hdr; + DWORD dwFlags; + LPWSTR pszText; + int cchTextMax; + int iItem; + int iSubItem; + LPARAM lParam; +} NMLVGETINFOTIPW, *LPNMLVGETINFOTIPW; + +// NMLVGETINFOTIPA.dwFlag values + +#define LVGIT_UNFOLDED 0x0001 + +#define LVN_GETINFOTIPA (LVN_FIRST-57) +#define LVN_GETINFOTIPW (LVN_FIRST-58) + +#ifdef UNICODE +#define LVN_GETINFOTIP LVN_GETINFOTIPW +#define NMLVGETINFOTIP NMLVGETINFOTIPW +#define LPNMLVGETINFOTIP LPNMLVGETINFOTIPW +#else +#define LVN_GETINFOTIP LVN_GETINFOTIPA +#define NMLVGETINFOTIP NMLVGETINFOTIPA +#define LPNMLVGETINFOTIP LPNMLVGETINFOTIPA +#endif + + +// +// LVN_INCREMENTALSEARCH gives the app the opportunity to customize +// incremental search. For example, if the items are numeric, +// the app can do numerical search instead of string search. +// +// ListView notifies the app with NMLVFINDITEM. +// The app sets pnmfi->lvfi.lParam to the result of the incremental search, +// or to LVNSCH_DEFAULT if ListView should do the default search, +// or to LVNSCH_ERROR to fail the search and just beep, +// or to LVNSCH_IGNORE to stop all ListView processing. +// +// The return value is not used. + +#define LVNSCH_DEFAULT -1 +#define LVNSCH_ERROR -2 +#define LVNSCH_IGNORE -3 + +#define LVN_INCREMENTALSEARCHA (LVN_FIRST-62) +#define LVN_INCREMENTALSEARCHW (LVN_FIRST-63) + +#ifdef UNICODE +#define LVN_INCREMENTALSEARCH LVN_INCREMENTALSEARCHW +#else +#define LVN_INCREMENTALSEARCH LVN_INCREMENTALSEARCHA +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LVN_COLUMNDROPDOWN (LVN_FIRST-64) + + +#define LVN_COLUMNOVERFLOWCLICK (LVN_FIRST-66) + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#if (NTDDI_VERSION >= NTDDI_WINXP) +typedef struct tagNMLVSCROLL +{ + NMHDR hdr; + int dx; + int dy; +} NMLVSCROLL, *LPNMLVSCROLL; + +#define LVN_BEGINSCROLL (LVN_FIRST-80) +#define LVN_ENDSCROLL (LVN_FIRST-81) +#endif + + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LVN_LINKCLICK (LVN_FIRST-84) + + +#define EMF_CENTERED 0x00000001 // render markup centered in the listview area + +typedef struct tagNMLVEMPTYMARKUP +{ + NMHDR hdr; + // out params from client back to listview + DWORD dwFlags; // EMF_* + WCHAR szMarkup[L_MAX_URL_LENGTH]; // markup displayed +} NMLVEMPTYMARKUP; + +#define LVN_GETEMPTYMARKUP (LVN_FIRST-87) + + +#endif + +#endif // NOLISTVIEW + +//====== TREEVIEW CONTROL ===================================================== + +#ifndef NOTREEVIEW + +#ifdef _WIN32 +#define WC_TREEVIEWA "SysTreeView32" +#define WC_TREEVIEWW L"SysTreeView32" + +#ifdef UNICODE +#define WC_TREEVIEW WC_TREEVIEWW +#else +#define WC_TREEVIEW WC_TREEVIEWA +#endif + +#else +#define WC_TREEVIEW "SysTreeView" +#endif + +// begin_r_commctrl + +#define TVS_HASBUTTONS 0x0001 +#define TVS_HASLINES 0x0002 +#define TVS_LINESATROOT 0x0004 +#define TVS_EDITLABELS 0x0008 +#define TVS_DISABLEDRAGDROP 0x0010 +#define TVS_SHOWSELALWAYS 0x0020 +#define TVS_RTLREADING 0x0040 + +#define TVS_NOTOOLTIPS 0x0080 +#define TVS_CHECKBOXES 0x0100 +#define TVS_TRACKSELECT 0x0200 +#define TVS_SINGLEEXPAND 0x0400 +#define TVS_INFOTIP 0x0800 +#define TVS_FULLROWSELECT 0x1000 +#define TVS_NOSCROLL 0x2000 +#define TVS_NONEVENHEIGHT 0x4000 +#define TVS_NOHSCROLL 0x8000 // TVS_NOSCROLL overrides this + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define TVS_EX_NOSINGLECOLLAPSE 0x0001 +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TVS_EX_MULTISELECT 0x0002 +#define TVS_EX_DOUBLEBUFFER 0x0004 +#define TVS_EX_NOINDENTSTATE 0x0008 +#define TVS_EX_RICHTOOLTIP 0x0010 +#define TVS_EX_AUTOHSCROLL 0x0020 +#define TVS_EX_FADEINOUTEXPANDOS 0x0040 +#define TVS_EX_PARTIALCHECKBOXES 0x0080 +#define TVS_EX_EXCLUSIONCHECKBOXES 0x0100 +#define TVS_EX_DIMMEDCHECKBOXES 0x0200 +#define TVS_EX_DRAWIMAGEASYNC 0x0400 +#endif + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif + +// end_r_commctrl + +struct _TREEITEM; +typedef struct _TREEITEM *HTREEITEM; + +#define TVIF_TEXT 0x0001 +#define TVIF_IMAGE 0x0002 +#define TVIF_PARAM 0x0004 +#define TVIF_STATE 0x0008 +#define TVIF_HANDLE 0x0010 +#define TVIF_SELECTEDIMAGE 0x0020 +#define TVIF_CHILDREN 0x0040 +#define TVIF_INTEGRAL 0x0080 +#if (_WIN32_IE >= 0x0600) +#define TVIF_STATEEX 0x0100 +#define TVIF_EXPANDEDIMAGE 0x0200 +#endif +#define TVIS_SELECTED 0x0002 +#define TVIS_CUT 0x0004 +#define TVIS_DROPHILITED 0x0008 +#define TVIS_BOLD 0x0010 +#define TVIS_EXPANDED 0x0020 +#define TVIS_EXPANDEDONCE 0x0040 +#define TVIS_EXPANDPARTIAL 0x0080 + +#define TVIS_OVERLAYMASK 0x0F00 +#define TVIS_STATEIMAGEMASK 0xF000 +#define TVIS_USERMASK 0xF000 + +#if (_WIN32_IE >= 0x0600) +#define TVIS_EX_FLAT 0x0001 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TVIS_EX_DISABLED 0x0002 +#endif +#define TVIS_EX_ALL 0x0002 + +// Structure for TreeView's NM_TVSTATEIMAGECHANGING notification +typedef struct tagNMTVSTATEIMAGECHANGING +{ + NMHDR hdr; + HTREEITEM hti; + int iOldStateImageIndex; + int iNewStateImageIndex; +} NMTVSTATEIMAGECHANGING, *LPNMTVSTATEIMAGECHANGING; +#endif + +#define I_CHILDRENCALLBACK (-1) +#define I_CHILDRENAUTO (-2) + +#define LPTV_ITEMW LPTVITEMW +#define LPTV_ITEMA LPTVITEMA +#define TV_ITEMW TVITEMW +#define TV_ITEMA TVITEMA + +#define LPTV_ITEM LPTVITEM +#define TV_ITEM TVITEM + +typedef struct tagTVITEMA { + UINT mask; + HTREEITEM hItem; + UINT state; + UINT stateMask; + LPSTR pszText; + int cchTextMax; + int iImage; + int iSelectedImage; + int cChildren; + LPARAM lParam; +} TVITEMA, *LPTVITEMA; + +typedef struct tagTVITEMW { + UINT mask; + HTREEITEM hItem; + UINT state; + UINT stateMask; + LPWSTR pszText; + int cchTextMax; + int iImage; + int iSelectedImage; + int cChildren; + LPARAM lParam; +} TVITEMW, *LPTVITEMW; + +// only used for Get and Set messages. no notifies +typedef struct tagTVITEMEXA { + UINT mask; + HTREEITEM hItem; + UINT state; + UINT stateMask; + LPSTR pszText; + int cchTextMax; + int iImage; + int iSelectedImage; + int cChildren; + LPARAM lParam; + int iIntegral; +#if (_WIN32_IE >= 0x0600) + UINT uStateEx; + HWND hwnd; + int iExpandedImage; +#endif +#if (NTDDI_VERSION >= NTDDI_WIN7) + int iReserved; +#endif +} TVITEMEXA, *LPTVITEMEXA; +// only used for Get and Set messages. no notifies +typedef struct tagTVITEMEXW { + UINT mask; + HTREEITEM hItem; + UINT state; + UINT stateMask; + LPWSTR pszText; + int cchTextMax; + int iImage; + int iSelectedImage; + int cChildren; + LPARAM lParam; + int iIntegral; +#if (_WIN32_IE >= 0x0600) + UINT uStateEx; + HWND hwnd; + int iExpandedImage; +#endif +#if (NTDDI_VERSION >= NTDDI_WIN7) + int iReserved; +#endif +} TVITEMEXW, *LPTVITEMEXW; +#ifdef UNICODE +typedef TVITEMEXW TVITEMEX; +typedef LPTVITEMEXW LPTVITEMEX; +#else +typedef TVITEMEXA TVITEMEX; +typedef LPTVITEMEXA LPTVITEMEX; +#endif // UNICODE + +#ifdef UNICODE +#define TVITEM TVITEMW +#define LPTVITEM LPTVITEMW +#else +#define TVITEM TVITEMA +#define LPTVITEM LPTVITEMA +#endif + + +#define TVI_ROOT ((HTREEITEM)(ULONG_PTR)-0x10000) +#define TVI_FIRST ((HTREEITEM)(ULONG_PTR)-0x0FFFF) +#define TVI_LAST ((HTREEITEM)(ULONG_PTR)-0x0FFFE) +#define TVI_SORT ((HTREEITEM)(ULONG_PTR)-0x0FFFD) + +#define LPTV_INSERTSTRUCTA LPTVINSERTSTRUCTA +#define LPTV_INSERTSTRUCTW LPTVINSERTSTRUCTW +#define TV_INSERTSTRUCTA TVINSERTSTRUCTA +#define TV_INSERTSTRUCTW TVINSERTSTRUCTW + +#define TV_INSERTSTRUCT TVINSERTSTRUCT +#define LPTV_INSERTSTRUCT LPTVINSERTSTRUCT + + +#define TVINSERTSTRUCTA_V1_SIZE CCSIZEOF_STRUCT(TVINSERTSTRUCTA, item) +#define TVINSERTSTRUCTW_V1_SIZE CCSIZEOF_STRUCT(TVINSERTSTRUCTW, item) + +typedef struct tagTVINSERTSTRUCTA { + HTREEITEM hParent; + HTREEITEM hInsertAfter; + union + { + TVITEMEXA itemex; + TV_ITEMA item; + } DUMMYUNIONNAME; +} TVINSERTSTRUCTA, *LPTVINSERTSTRUCTA; + +typedef struct tagTVINSERTSTRUCTW { + HTREEITEM hParent; + HTREEITEM hInsertAfter; + union + { + TVITEMEXW itemex; + TV_ITEMW item; + } DUMMYUNIONNAME; +} TVINSERTSTRUCTW, *LPTVINSERTSTRUCTW; + +#ifdef UNICODE +#define TVINSERTSTRUCT TVINSERTSTRUCTW +#define LPTVINSERTSTRUCT LPTVINSERTSTRUCTW +#define TVINSERTSTRUCT_V1_SIZE TVINSERTSTRUCTW_V1_SIZE +#else +#define TVINSERTSTRUCT TVINSERTSTRUCTA +#define LPTVINSERTSTRUCT LPTVINSERTSTRUCTA +#define TVINSERTSTRUCT_V1_SIZE TVINSERTSTRUCTA_V1_SIZE +#endif + +#define TVM_INSERTITEMA (TV_FIRST + 0) +#define TVM_INSERTITEMW (TV_FIRST + 50) +#ifdef UNICODE +#define TVM_INSERTITEM TVM_INSERTITEMW +#else +#define TVM_INSERTITEM TVM_INSERTITEMA +#endif + +#define TreeView_InsertItem(hwnd, lpis) \ + (HTREEITEM)SNDMSG((hwnd), TVM_INSERTITEM, 0, (LPARAM)(LPTV_INSERTSTRUCT)(lpis)) + + +#define TVM_DELETEITEM (TV_FIRST + 1) +#define TreeView_DeleteItem(hwnd, hitem) \ + (BOOL)SNDMSG((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hitem)) + + +#define TreeView_DeleteAllItems(hwnd) \ + (BOOL)SNDMSG((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT) + + +#define TVM_EXPAND (TV_FIRST + 2) +#define TreeView_Expand(hwnd, hitem, code) \ + (BOOL)SNDMSG((hwnd), TVM_EXPAND, (WPARAM)(code), (LPARAM)(HTREEITEM)(hitem)) + + +#define TVE_COLLAPSE 0x0001 +#define TVE_EXPAND 0x0002 +#define TVE_TOGGLE 0x0003 +#define TVE_EXPANDPARTIAL 0x4000 +#define TVE_COLLAPSERESET 0x8000 + + +#define TVM_GETITEMRECT (TV_FIRST + 4) +#define TreeView_GetItemRect(hwnd, hitem, prc, code) \ + (*(HTREEITEM *)(prc) = (hitem), (BOOL)SNDMSG((hwnd), TVM_GETITEMRECT, (WPARAM)(code), (LPARAM)(RECT *)(prc))) + + +#define TVM_GETCOUNT (TV_FIRST + 5) +#define TreeView_GetCount(hwnd) \ + (UINT)SNDMSG((hwnd), TVM_GETCOUNT, 0, 0) + + +#define TVM_GETINDENT (TV_FIRST + 6) +#define TreeView_GetIndent(hwnd) \ + (UINT)SNDMSG((hwnd), TVM_GETINDENT, 0, 0) + + +#define TVM_SETINDENT (TV_FIRST + 7) +#define TreeView_SetIndent(hwnd, indent) \ + (BOOL)SNDMSG((hwnd), TVM_SETINDENT, (WPARAM)(indent), 0) + + +#define TVM_GETIMAGELIST (TV_FIRST + 8) +#define TreeView_GetImageList(hwnd, iImage) \ + (HIMAGELIST)SNDMSG((hwnd), TVM_GETIMAGELIST, iImage, 0) + + +#define TVSIL_NORMAL 0 +#define TVSIL_STATE 2 + + +#define TVM_SETIMAGELIST (TV_FIRST + 9) +#define TreeView_SetImageList(hwnd, himl, iImage) \ + (HIMAGELIST)SNDMSG((hwnd), TVM_SETIMAGELIST, iImage, (LPARAM)(HIMAGELIST)(himl)) + + +#define TVM_GETNEXTITEM (TV_FIRST + 10) +#define TreeView_GetNextItem(hwnd, hitem, code) \ + (HTREEITEM)SNDMSG((hwnd), TVM_GETNEXTITEM, (WPARAM)(code), (LPARAM)(HTREEITEM)(hitem)) + + +#define TVGN_ROOT 0x0000 +#define TVGN_NEXT 0x0001 +#define TVGN_PREVIOUS 0x0002 +#define TVGN_PARENT 0x0003 +#define TVGN_CHILD 0x0004 +#define TVGN_FIRSTVISIBLE 0x0005 +#define TVGN_NEXTVISIBLE 0x0006 +#define TVGN_PREVIOUSVISIBLE 0x0007 +#define TVGN_DROPHILITE 0x0008 +#define TVGN_CARET 0x0009 +#define TVGN_LASTVISIBLE 0x000A +#if (_WIN32_IE >= 0x0600) +#define TVGN_NEXTSELECTED 0x000B +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define TVSI_NOSINGLEEXPAND 0x8000 // Should not conflict with TVGN flags. +#endif + +#define TreeView_GetChild(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem, TVGN_CHILD) +#define TreeView_GetNextSibling(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem, TVGN_NEXT) +#define TreeView_GetPrevSibling(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem, TVGN_PREVIOUS) +#define TreeView_GetParent(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem, TVGN_PARENT) +#define TreeView_GetFirstVisible(hwnd) TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE) +#define TreeView_GetNextVisible(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem, TVGN_NEXTVISIBLE) +#define TreeView_GetPrevVisible(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem, TVGN_PREVIOUSVISIBLE) +#define TreeView_GetSelection(hwnd) TreeView_GetNextItem(hwnd, NULL, TVGN_CARET) +#define TreeView_GetDropHilight(hwnd) TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE) +#define TreeView_GetRoot(hwnd) TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT) +#define TreeView_GetLastVisible(hwnd) TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE) +#if (_WIN32_IE >= 0x0600) +#define TreeView_GetNextSelected(hwnd, hitem) TreeView_GetNextItem(hwnd, hitem, TVGN_NEXTSELECTED) +#endif + +#define TVM_SELECTITEM (TV_FIRST + 11) +#define TreeView_Select(hwnd, hitem, code) \ + (BOOL)SNDMSG((hwnd), TVM_SELECTITEM, (WPARAM)(code), (LPARAM)(HTREEITEM)(hitem)) + + +#define TreeView_SelectItem(hwnd, hitem) TreeView_Select(hwnd, hitem, TVGN_CARET) +#define TreeView_SelectDropTarget(hwnd, hitem) TreeView_Select(hwnd, hitem, TVGN_DROPHILITE) +#define TreeView_SelectSetFirstVisible(hwnd, hitem) TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE) + +#define TVM_GETITEMA (TV_FIRST + 12) +#define TVM_GETITEMW (TV_FIRST + 62) + +#ifdef UNICODE +#define TVM_GETITEM TVM_GETITEMW +#else +#define TVM_GETITEM TVM_GETITEMA +#endif + +#define TreeView_GetItem(hwnd, pitem) \ + (BOOL)SNDMSG((hwnd), TVM_GETITEM, 0, (LPARAM)(TV_ITEM *)(pitem)) + + +#define TVM_SETITEMA (TV_FIRST + 13) +#define TVM_SETITEMW (TV_FIRST + 63) + +#ifdef UNICODE +#define TVM_SETITEM TVM_SETITEMW +#else +#define TVM_SETITEM TVM_SETITEMA +#endif + +#define TreeView_SetItem(hwnd, pitem) \ + (BOOL)SNDMSG((hwnd), TVM_SETITEM, 0, (LPARAM)(const TV_ITEM *)(pitem)) + + +#define TVM_EDITLABELA (TV_FIRST + 14) +#define TVM_EDITLABELW (TV_FIRST + 65) +#ifdef UNICODE +#define TVM_EDITLABEL TVM_EDITLABELW +#else +#define TVM_EDITLABEL TVM_EDITLABELA +#endif + +#define TreeView_EditLabel(hwnd, hitem) \ + (HWND)SNDMSG((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem)) + + +#define TVM_GETEDITCONTROL (TV_FIRST + 15) +#define TreeView_GetEditControl(hwnd) \ + (HWND)SNDMSG((hwnd), TVM_GETEDITCONTROL, 0, 0) + + +#define TVM_GETVISIBLECOUNT (TV_FIRST + 16) +#define TreeView_GetVisibleCount(hwnd) \ + (UINT)SNDMSG((hwnd), TVM_GETVISIBLECOUNT, 0, 0) + + +#define TVM_HITTEST (TV_FIRST + 17) +#define TreeView_HitTest(hwnd, lpht) \ + (HTREEITEM)SNDMSG((hwnd), TVM_HITTEST, 0, (LPARAM)(LPTV_HITTESTINFO)(lpht)) + + +#define LPTV_HITTESTINFO LPTVHITTESTINFO +#define TV_HITTESTINFO TVHITTESTINFO + +typedef struct tagTVHITTESTINFO { + POINT pt; + UINT flags; + HTREEITEM hItem; +} TVHITTESTINFO, *LPTVHITTESTINFO; + +#define TVHT_NOWHERE 0x0001 +#define TVHT_ONITEMICON 0x0002 +#define TVHT_ONITEMLABEL 0x0004 +#define TVHT_ONITEM (TVHT_ONITEMICON | TVHT_ONITEMLABEL | TVHT_ONITEMSTATEICON) +#define TVHT_ONITEMINDENT 0x0008 +#define TVHT_ONITEMBUTTON 0x0010 +#define TVHT_ONITEMRIGHT 0x0020 +#define TVHT_ONITEMSTATEICON 0x0040 + +#define TVHT_ABOVE 0x0100 +#define TVHT_BELOW 0x0200 +#define TVHT_TORIGHT 0x0400 +#define TVHT_TOLEFT 0x0800 + + +#define TVM_CREATEDRAGIMAGE (TV_FIRST + 18) +#define TreeView_CreateDragImage(hwnd, hitem) \ + (HIMAGELIST)SNDMSG((hwnd), TVM_CREATEDRAGIMAGE, 0, (LPARAM)(HTREEITEM)(hitem)) + + +#define TVM_SORTCHILDREN (TV_FIRST + 19) +#define TreeView_SortChildren(hwnd, hitem, recurse) \ + (BOOL)SNDMSG((hwnd), TVM_SORTCHILDREN, (WPARAM)(recurse), (LPARAM)(HTREEITEM)(hitem)) + + +#define TVM_ENSUREVISIBLE (TV_FIRST + 20) +#define TreeView_EnsureVisible(hwnd, hitem) \ + (BOOL)SNDMSG((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(HTREEITEM)(hitem)) + + +#define TVM_SORTCHILDRENCB (TV_FIRST + 21) +#define TreeView_SortChildrenCB(hwnd, psort, recurse) \ + (BOOL)SNDMSG((hwnd), TVM_SORTCHILDRENCB, (WPARAM)(recurse), \ + (LPARAM)(LPTV_SORTCB)(psort)) + + +#define TVM_ENDEDITLABELNOW (TV_FIRST + 22) +#define TreeView_EndEditLabelNow(hwnd, fCancel) \ + (BOOL)SNDMSG((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)(fCancel), 0) + + +#define TVM_GETISEARCHSTRINGA (TV_FIRST + 23) +#define TVM_GETISEARCHSTRINGW (TV_FIRST + 64) + +#ifdef UNICODE +#define TVM_GETISEARCHSTRING TVM_GETISEARCHSTRINGW +#else +#define TVM_GETISEARCHSTRING TVM_GETISEARCHSTRINGA +#endif + +#define TVM_SETTOOLTIPS (TV_FIRST + 24) +#define TreeView_SetToolTips(hwnd, hwndTT) \ + (HWND)SNDMSG((hwnd), TVM_SETTOOLTIPS, (WPARAM)(hwndTT), 0) +#define TVM_GETTOOLTIPS (TV_FIRST + 25) +#define TreeView_GetToolTips(hwnd) \ + (HWND)SNDMSG((hwnd), TVM_GETTOOLTIPS, 0, 0) + +#define TreeView_GetISearchString(hwndTV, lpsz) \ + (BOOL)SNDMSG((hwndTV), TVM_GETISEARCHSTRING, 0, (LPARAM)(LPTSTR)(lpsz)) + +#define TVM_SETINSERTMARK (TV_FIRST + 26) +#define TreeView_SetInsertMark(hwnd, hItem, fAfter) \ + (BOOL)SNDMSG((hwnd), TVM_SETINSERTMARK, (WPARAM) (fAfter), (LPARAM) (hItem)) + +#define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define TreeView_SetUnicodeFormat(hwnd, fUnicode) \ + (BOOL)SNDMSG((hwnd), TVM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0) + +#define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define TreeView_GetUnicodeFormat(hwnd) \ + (BOOL)SNDMSG((hwnd), TVM_GETUNICODEFORMAT, 0, 0) + +#define TVM_SETITEMHEIGHT (TV_FIRST + 27) +#define TreeView_SetItemHeight(hwnd, iHeight) \ + (int)SNDMSG((hwnd), TVM_SETITEMHEIGHT, (WPARAM)(iHeight), 0) +#define TVM_GETITEMHEIGHT (TV_FIRST + 28) +#define TreeView_GetItemHeight(hwnd) \ + (int)SNDMSG((hwnd), TVM_GETITEMHEIGHT, 0, 0) + +#define TVM_SETBKCOLOR (TV_FIRST + 29) +#define TreeView_SetBkColor(hwnd, clr) \ + (COLORREF)SNDMSG((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)(clr)) + +#define TVM_SETTEXTCOLOR (TV_FIRST + 30) +#define TreeView_SetTextColor(hwnd, clr) \ + (COLORREF)SNDMSG((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)(clr)) + +#define TVM_GETBKCOLOR (TV_FIRST + 31) +#define TreeView_GetBkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), TVM_GETBKCOLOR, 0, 0) + +#define TVM_GETTEXTCOLOR (TV_FIRST + 32) +#define TreeView_GetTextColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), TVM_GETTEXTCOLOR, 0, 0) + +#define TVM_SETSCROLLTIME (TV_FIRST + 33) +#define TreeView_SetScrollTime(hwnd, uTime) \ + (UINT)SNDMSG((hwnd), TVM_SETSCROLLTIME, uTime, 0) + +#define TVM_GETSCROLLTIME (TV_FIRST + 34) +#define TreeView_GetScrollTime(hwnd) \ + (UINT)SNDMSG((hwnd), TVM_GETSCROLLTIME, 0, 0) + + +#define TVM_SETINSERTMARKCOLOR (TV_FIRST + 37) +#define TreeView_SetInsertMarkColor(hwnd, clr) \ + (COLORREF)SNDMSG((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)(clr)) +#define TVM_GETINSERTMARKCOLOR (TV_FIRST + 38) +#define TreeView_GetInsertMarkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0) + +#define TVM_SETBORDER (TV_FIRST + 35) +#define TreeView_SetBorder(hwnd, dwFlags, xBorder, yBorder) \ + (int)SNDMSG((hwnd), TVM_SETBORDER, (WPARAM)(dwFlags), MAKELPARAM(xBorder, yBorder)) + +#define TVSBF_XBORDER 0x00000001 +#define TVSBF_YBORDER 0x00000002 + +// tvm_?etitemstate only uses mask, state and stateMask. +// so unicode or ansi is irrelevant. +#define TreeView_SetItemState(hwndTV, hti, data, _mask) \ +{ TVITEM _ms_TVi;\ + _ms_TVi.mask = TVIF_STATE; \ + _ms_TVi.hItem = (hti); \ + _ms_TVi.stateMask = (_mask);\ + _ms_TVi.state = (data);\ + SNDMSG((hwndTV), TVM_SETITEM, 0, (LPARAM)(TV_ITEM *)&_ms_TVi);\ +} + +#define TreeView_SetCheckState(hwndTV, hti, fCheck) \ + TreeView_SetItemState(hwndTV, hti, INDEXTOSTATEIMAGEMASK((fCheck)?2:1), TVIS_STATEIMAGEMASK) + +#define TVM_GETITEMSTATE (TV_FIRST + 39) +#define TreeView_GetItemState(hwndTV, hti, mask) \ + (UINT)SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), (LPARAM)(mask)) + +#define TreeView_GetCheckState(hwndTV, hti) \ + ((((UINT)(SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), TVIS_STATEIMAGEMASK))) >> 12) -1) + + +#define TVM_SETLINECOLOR (TV_FIRST + 40) +#define TreeView_SetLineColor(hwnd, clr) \ + (COLORREF)SNDMSG((hwnd), TVM_SETLINECOLOR, 0, (LPARAM)(clr)) + +#define TVM_GETLINECOLOR (TV_FIRST + 41) +#define TreeView_GetLineColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), TVM_GETLINECOLOR, 0, 0) + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define TVM_MAPACCIDTOHTREEITEM (TV_FIRST + 42) +#define TreeView_MapAccIDToHTREEITEM(hwnd, id) \ + (HTREEITEM)SNDMSG((hwnd), TVM_MAPACCIDTOHTREEITEM, id, 0) + +#define TVM_MAPHTREEITEMTOACCID (TV_FIRST + 43) +#define TreeView_MapHTREEITEMToAccID(hwnd, htreeitem) \ + (UINT)SNDMSG((hwnd), TVM_MAPHTREEITEMTOACCID, (WPARAM)(htreeitem), 0) + +#define TVM_SETEXTENDEDSTYLE (TV_FIRST + 44) +#define TreeView_SetExtendedStyle(hwnd, dw, mask) \ + (DWORD)SNDMSG((hwnd), TVM_SETEXTENDEDSTYLE, mask, dw) + +#define TVM_GETEXTENDEDSTYLE (TV_FIRST + 45) +#define TreeView_GetExtendedStyle(hwnd) \ + (DWORD)SNDMSG((hwnd), TVM_GETEXTENDEDSTYLE, 0, 0) + + +#define TVM_SETAUTOSCROLLINFO (TV_FIRST + 59) +#define TreeView_SetAutoScrollInfo(hwnd, uPixPerSec, uUpdateTime) \ + SNDMSG((hwnd), TVM_SETAUTOSCROLLINFO, (WPARAM)(uPixPerSec), (LPARAM)(uUpdateTime)) +#endif + +#define TVM_SETHOT (TV_FIRST + 58) +#define TreeView_SetHot(hwnd, hitem) \ + SNDMSG((hwnd), TVM_SETHOT, 0, (LPARAM)(hitem)) + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TVM_GETSELECTEDCOUNT (TV_FIRST + 70) +#define TreeView_GetSelectedCount(hwnd) \ + (DWORD)SNDMSG((hwnd), TVM_GETSELECTEDCOUNT, 0, 0) + +#define TVM_SHOWINFOTIP (TV_FIRST + 71) +#define TreeView_ShowInfoTip(hwnd, hitem) \ + (DWORD)SNDMSG((hwnd), TVM_SHOWINFOTIP, 0, (LPARAM)(hitem)) + +typedef enum _TVITEMPART +{ + TVGIPR_BUTTON = 0x0001, +} TVITEMPART; + +typedef struct tagTVGETITEMPARTRECTINFO { + HTREEITEM hti; + RECT* prc; + TVITEMPART partID; +} TVGETITEMPARTRECTINFO; + +#define TVM_GETITEMPARTRECT (TV_FIRST + 72) +#define TreeView_GetItemPartRect(hwnd, hitem, prc, partid) \ +{ TVGETITEMPARTRECTINFO info; \ + info.hti = (hitem); \ + info.prc = (prc); \ + info.partID = (partid); \ + (BOOL)SNDMSG((hwnd), TVM_GETITEMPARTRECT, 0, (LPARAM)&info); \ +} + +#endif + + +typedef int (CALLBACK *PFNTVCOMPARE)(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort); + +#define LPTV_SORTCB LPTVSORTCB +#define TV_SORTCB TVSORTCB + +typedef struct tagTVSORTCB +{ + HTREEITEM hParent; + PFNTVCOMPARE lpfnCompare; + LPARAM lParam; +} TVSORTCB, *LPTVSORTCB; + + +#define LPNM_TREEVIEWA LPNMTREEVIEWA +#define LPNM_TREEVIEWW LPNMTREEVIEWW +#define NM_TREEVIEWW NMTREEVIEWW +#define NM_TREEVIEWA NMTREEVIEWA + +#define LPNM_TREEVIEW LPNMTREEVIEW +#define NM_TREEVIEW NMTREEVIEW + +typedef struct tagNMTREEVIEWA { + NMHDR hdr; + UINT action; + TVITEMA itemOld; + TVITEMA itemNew; + POINT ptDrag; +} NMTREEVIEWA, *LPNMTREEVIEWA; + + +typedef struct tagNMTREEVIEWW { + NMHDR hdr; + UINT action; + TVITEMW itemOld; + TVITEMW itemNew; + POINT ptDrag; +} NMTREEVIEWW, *LPNMTREEVIEWW; + + +#ifdef UNICODE +#define NMTREEVIEW NMTREEVIEWW +#define LPNMTREEVIEW LPNMTREEVIEWW +#else +#define NMTREEVIEW NMTREEVIEWA +#define LPNMTREEVIEW LPNMTREEVIEWA +#endif + + +#define TVN_SELCHANGINGA (TVN_FIRST-1) +#define TVN_SELCHANGINGW (TVN_FIRST-50) +#define TVN_SELCHANGEDA (TVN_FIRST-2) +#define TVN_SELCHANGEDW (TVN_FIRST-51) + +#define TVC_UNKNOWN 0x0000 +#define TVC_BYMOUSE 0x0001 +#define TVC_BYKEYBOARD 0x0002 + +#define TVN_GETDISPINFOA (TVN_FIRST-3) +#define TVN_GETDISPINFOW (TVN_FIRST-52) +#define TVN_SETDISPINFOA (TVN_FIRST-4) +#define TVN_SETDISPINFOW (TVN_FIRST-53) + +#define TVIF_DI_SETITEM 0x1000 + +#define TV_DISPINFOA NMTVDISPINFOA +#define TV_DISPINFOW NMTVDISPINFOW + +#define TV_DISPINFO NMTVDISPINFO + +typedef struct tagTVDISPINFOA { + NMHDR hdr; + TVITEMA item; +} NMTVDISPINFOA, *LPNMTVDISPINFOA; + +typedef struct tagTVDISPINFOW { + NMHDR hdr; + TVITEMW item; +} NMTVDISPINFOW, *LPNMTVDISPINFOW; + +#ifdef UNICODE +#define NMTVDISPINFO NMTVDISPINFOW +#define LPNMTVDISPINFO LPNMTVDISPINFOW +#else +#define NMTVDISPINFO NMTVDISPINFOA +#define LPNMTVDISPINFO LPNMTVDISPINFOA +#endif + +#if (_WIN32_IE >= 0x0600) + +typedef struct tagTVDISPINFOEXA { + NMHDR hdr; + TVITEMEXA item; +} NMTVDISPINFOEXA, *LPNMTVDISPINFOEXA; + +typedef struct tagTVDISPINFOEXW { + NMHDR hdr; + TVITEMEXW item; +} NMTVDISPINFOEXW, *LPNMTVDISPINFOEXW; + +#ifdef UNICODE +#define NMTVDISPINFOEX NMTVDISPINFOEXW +#define LPNMTVDISPINFOEX LPNMTVDISPINFOEXW +#else +#define NMTVDISPINFOEX NMTVDISPINFOEXA +#define LPNMTVDISPINFOEX LPNMTVDISPINFOEXA +#endif + +#define TV_DISPINFOEXA NMTVDISPINFOEXA +#define TV_DISPINFOEXW NMTVDISPINFOEXW +#define TV_DISPINFOEX NMTVDISPINFOEX + +#endif +#define TVN_ITEMEXPANDINGA (TVN_FIRST-5) +#define TVN_ITEMEXPANDINGW (TVN_FIRST-54) +#define TVN_ITEMEXPANDEDA (TVN_FIRST-6) +#define TVN_ITEMEXPANDEDW (TVN_FIRST-55) +#define TVN_BEGINDRAGA (TVN_FIRST-7) +#define TVN_BEGINDRAGW (TVN_FIRST-56) +#define TVN_BEGINRDRAGA (TVN_FIRST-8) +#define TVN_BEGINRDRAGW (TVN_FIRST-57) +#define TVN_DELETEITEMA (TVN_FIRST-9) +#define TVN_DELETEITEMW (TVN_FIRST-58) +#define TVN_BEGINLABELEDITA (TVN_FIRST-10) +#define TVN_BEGINLABELEDITW (TVN_FIRST-59) +#define TVN_ENDLABELEDITA (TVN_FIRST-11) +#define TVN_ENDLABELEDITW (TVN_FIRST-60) +#define TVN_KEYDOWN (TVN_FIRST-12) + +#define TVN_GETINFOTIPA (TVN_FIRST-13) +#define TVN_GETINFOTIPW (TVN_FIRST-14) +#define TVN_SINGLEEXPAND (TVN_FIRST-15) + +#define TVNRET_DEFAULT 0 +#define TVNRET_SKIPOLD 1 +#define TVNRET_SKIPNEW 2 + +#if (_WIN32_IE >= 0x0600) +#define TVN_ITEMCHANGINGA (TVN_FIRST-16) +#define TVN_ITEMCHANGINGW (TVN_FIRST-17) +#define TVN_ITEMCHANGEDA (TVN_FIRST-18) +#define TVN_ITEMCHANGEDW (TVN_FIRST-19) +#define TVN_ASYNCDRAW (TVN_FIRST-20) +#endif + +#define TV_KEYDOWN NMTVKEYDOWN + +#ifdef _WIN32 +#include +#endif + +typedef struct tagTVKEYDOWN { + NMHDR hdr; + WORD wVKey; + UINT flags; +} NMTVKEYDOWN, *LPNMTVKEYDOWN; + +#ifdef _WIN32 +#include +#endif + + +#ifdef UNICODE +#define TVN_SELCHANGING TVN_SELCHANGINGW +#define TVN_SELCHANGED TVN_SELCHANGEDW +#define TVN_GETDISPINFO TVN_GETDISPINFOW +#define TVN_SETDISPINFO TVN_SETDISPINFOW +#define TVN_ITEMEXPANDING TVN_ITEMEXPANDINGW +#define TVN_ITEMEXPANDED TVN_ITEMEXPANDEDW +#define TVN_BEGINDRAG TVN_BEGINDRAGW +#define TVN_BEGINRDRAG TVN_BEGINRDRAGW +#define TVN_DELETEITEM TVN_DELETEITEMW +#define TVN_BEGINLABELEDIT TVN_BEGINLABELEDITW +#define TVN_ENDLABELEDIT TVN_ENDLABELEDITW +#else +#define TVN_SELCHANGING TVN_SELCHANGINGA +#define TVN_SELCHANGED TVN_SELCHANGEDA +#define TVN_GETDISPINFO TVN_GETDISPINFOA +#define TVN_SETDISPINFO TVN_SETDISPINFOA +#define TVN_ITEMEXPANDING TVN_ITEMEXPANDINGA +#define TVN_ITEMEXPANDED TVN_ITEMEXPANDEDA +#define TVN_BEGINDRAG TVN_BEGINDRAGA +#define TVN_BEGINRDRAG TVN_BEGINRDRAGA +#define TVN_DELETEITEM TVN_DELETEITEMA +#define TVN_BEGINLABELEDIT TVN_BEGINLABELEDITA +#define TVN_ENDLABELEDIT TVN_ENDLABELEDITA +#endif + +#define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW, clrTextBk) + +typedef struct tagNMTVCUSTOMDRAW +{ + NMCUSTOMDRAW nmcd; + COLORREF clrText; + COLORREF clrTextBk; + int iLevel; +} NMTVCUSTOMDRAW, *LPNMTVCUSTOMDRAW; + + +// for tooltips + +typedef struct tagNMTVGETINFOTIPA +{ + NMHDR hdr; + LPSTR pszText; + int cchTextMax; + HTREEITEM hItem; + LPARAM lParam; +} NMTVGETINFOTIPA, *LPNMTVGETINFOTIPA; + +typedef struct tagNMTVGETINFOTIPW +{ + NMHDR hdr; + LPWSTR pszText; + int cchTextMax; + HTREEITEM hItem; + LPARAM lParam; +} NMTVGETINFOTIPW, *LPNMTVGETINFOTIPW; + + +#ifdef UNICODE +#define TVN_GETINFOTIP TVN_GETINFOTIPW +#define NMTVGETINFOTIP NMTVGETINFOTIPW +#define LPNMTVGETINFOTIP LPNMTVGETINFOTIPW +#else +#define TVN_GETINFOTIP TVN_GETINFOTIPA +#define NMTVGETINFOTIP NMTVGETINFOTIPA +#define LPNMTVGETINFOTIP LPNMTVGETINFOTIPA +#endif + +// treeview's customdraw return meaning don't draw images. valid on CDRF_NOTIFYITEMPREPAINT +#define TVCDRF_NOIMAGES 0x00010000 + +#if (_WIN32_IE > 0x0600) +typedef struct tagTVITEMCHANGE { + NMHDR hdr; + UINT uChanged; + HTREEITEM hItem; + UINT uStateNew; + UINT uStateOld; + LPARAM lParam; +} NMTVITEMCHANGE; + +typedef struct tagNMTVASYNCDRAW +{ + NMHDR hdr; + IMAGELISTDRAWPARAMS *pimldp; // the draw that failed + HRESULT hr; // why it failed + HTREEITEM hItem; // item that failed to draw icon + LPARAM lParam; // its data + // Out Params + DWORD dwRetFlags; // What listview should do on return + int iRetImageIndex; // used if ADRF_DRAWIMAGE is returned +} NMTVASYNCDRAW; + +#ifdef UNICODE +#define TVN_ITEMCHANGING TVN_ITEMCHANGINGW +#define TVN_ITEMCHANGED TVN_ITEMCHANGEDW +#else +#define TVN_ITEMCHANGING TVN_ITEMCHANGINGA +#define TVN_ITEMCHANGED TVN_ITEMCHANGEDA +#endif + +#endif // _WIN32_IE >= 0x0600 + +#endif // NOTREEVIEW + +#ifndef NOUSEREXCONTROLS + +//////////////////// ComboBoxEx //////////////////////////////// + +#define WC_COMBOBOXEXW L"ComboBoxEx32" +#define WC_COMBOBOXEXA "ComboBoxEx32" + + +#ifdef UNICODE +#define WC_COMBOBOXEX WC_COMBOBOXEXW +#else +#define WC_COMBOBOXEX WC_COMBOBOXEXA +#endif + + +#define CBEIF_TEXT 0x00000001 +#define CBEIF_IMAGE 0x00000002 +#define CBEIF_SELECTEDIMAGE 0x00000004 +#define CBEIF_OVERLAY 0x00000008 +#define CBEIF_INDENT 0x00000010 +#define CBEIF_LPARAM 0x00000020 + +#define CBEIF_DI_SETITEM 0x10000000 + +typedef struct tagCOMBOBOXEXITEMA +{ + UINT mask; + INT_PTR iItem; + LPSTR pszText; + int cchTextMax; + int iImage; + int iSelectedImage; + int iOverlay; + int iIndent; + LPARAM lParam; +} COMBOBOXEXITEMA, *PCOMBOBOXEXITEMA; +typedef COMBOBOXEXITEMA CONST *PCCOMBOEXITEMA; + + +typedef struct tagCOMBOBOXEXITEMW +{ + UINT mask; + INT_PTR iItem; + LPWSTR pszText; + int cchTextMax; + int iImage; + int iSelectedImage; + int iOverlay; + int iIndent; + LPARAM lParam; +} COMBOBOXEXITEMW, *PCOMBOBOXEXITEMW; +typedef COMBOBOXEXITEMW CONST *PCCOMBOEXITEMW; + +#ifdef UNICODE +#define COMBOBOXEXITEM COMBOBOXEXITEMW +#define PCOMBOBOXEXITEM PCOMBOBOXEXITEMW +#define PCCOMBOBOXEXITEM PCCOMBOBOXEXITEMW +#else +#define COMBOBOXEXITEM COMBOBOXEXITEMA +#define PCOMBOBOXEXITEM PCOMBOBOXEXITEMA +#define PCCOMBOBOXEXITEM PCCOMBOBOXEXITEMA +#endif + +#define CBEM_INSERTITEMA (WM_USER + 1) +#define CBEM_SETIMAGELIST (WM_USER + 2) +#define CBEM_GETIMAGELIST (WM_USER + 3) +#define CBEM_GETITEMA (WM_USER + 4) +#define CBEM_SETITEMA (WM_USER + 5) +#define CBEM_DELETEITEM CB_DELETESTRING +#define CBEM_GETCOMBOCONTROL (WM_USER + 6) +#define CBEM_GETEDITCONTROL (WM_USER + 7) +#define CBEM_SETEXSTYLE (WM_USER + 8) // use SETEXTENDEDSTYLE instead +#define CBEM_SETEXTENDEDSTYLE (WM_USER + 14) // lparam == new style, wParam (optional) == mask +#define CBEM_GETEXSTYLE (WM_USER + 9) // use GETEXTENDEDSTYLE instead +#define CBEM_GETEXTENDEDSTYLE (WM_USER + 9) +#define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define CBEM_HASEDITCHANGED (WM_USER + 10) +#define CBEM_INSERTITEMW (WM_USER + 11) +#define CBEM_SETITEMW (WM_USER + 12) +#define CBEM_GETITEMW (WM_USER + 13) + +#ifdef UNICODE +#define CBEM_INSERTITEM CBEM_INSERTITEMW +#define CBEM_SETITEM CBEM_SETITEMW +#define CBEM_GETITEM CBEM_GETITEMW +#else +#define CBEM_INSERTITEM CBEM_INSERTITEMA +#define CBEM_SETITEM CBEM_SETITEMA +#define CBEM_GETITEM CBEM_GETITEMA +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define CBEM_SETWINDOWTHEME CCM_SETWINDOWTHEME +#endif + + +#define CBES_EX_NOEDITIMAGE 0x00000001 +#define CBES_EX_NOEDITIMAGEINDENT 0x00000002 +#define CBES_EX_PATHWORDBREAKPROC 0x00000004 +#define CBES_EX_NOSIZELIMIT 0x00000008 +#define CBES_EX_CASESENSITIVE 0x00000010 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define CBES_EX_TEXTENDELLIPSIS 0x00000020 +#endif + + +typedef struct { + NMHDR hdr; + COMBOBOXEXITEMA ceItem; +} NMCOMBOBOXEXA, *PNMCOMBOBOXEXA; + +typedef struct { + NMHDR hdr; + COMBOBOXEXITEMW ceItem; +} NMCOMBOBOXEXW, *PNMCOMBOBOXEXW; + +#ifdef UNICODE +#define NMCOMBOBOXEX NMCOMBOBOXEXW +#define PNMCOMBOBOXEX PNMCOMBOBOXEXW +#define CBEN_GETDISPINFO CBEN_GETDISPINFOW +#else +#define NMCOMBOBOXEX NMCOMBOBOXEXA +#define PNMCOMBOBOXEX PNMCOMBOBOXEXA +#define CBEN_GETDISPINFO CBEN_GETDISPINFOA +#endif + +#define CBEN_GETDISPINFOA (CBEN_FIRST - 0) +#define CBEN_INSERTITEM (CBEN_FIRST - 1) +#define CBEN_DELETEITEM (CBEN_FIRST - 2) +#define CBEN_BEGINEDIT (CBEN_FIRST - 4) +#define CBEN_ENDEDITA (CBEN_FIRST - 5) +#define CBEN_ENDEDITW (CBEN_FIRST - 6) + +#define CBEN_GETDISPINFOW (CBEN_FIRST - 7) + +#define CBEN_DRAGBEGINA (CBEN_FIRST - 8) +#define CBEN_DRAGBEGINW (CBEN_FIRST - 9) + +#ifdef UNICODE +#define CBEN_DRAGBEGIN CBEN_DRAGBEGINW +#else +#define CBEN_DRAGBEGIN CBEN_DRAGBEGINA +#endif + +// lParam specifies why the endedit is happening +#ifdef UNICODE +#define CBEN_ENDEDIT CBEN_ENDEDITW +#else +#define CBEN_ENDEDIT CBEN_ENDEDITA +#endif + +#define CBENF_KILLFOCUS 1 +#define CBENF_RETURN 2 +#define CBENF_ESCAPE 3 +#define CBENF_DROPDOWN 4 + +#define CBEMAXSTRLEN 260 + +// CBEN_DRAGBEGIN sends this information ... + +typedef struct { + NMHDR hdr; + int iItemid; + WCHAR szText[CBEMAXSTRLEN]; +}NMCBEDRAGBEGINW, *LPNMCBEDRAGBEGINW, *PNMCBEDRAGBEGINW; + + +typedef struct { + NMHDR hdr; + int iItemid; + char szText[CBEMAXSTRLEN]; +}NMCBEDRAGBEGINA, *LPNMCBEDRAGBEGINA, *PNMCBEDRAGBEGINA; + +#ifdef UNICODE +#define NMCBEDRAGBEGIN NMCBEDRAGBEGINW +#define LPNMCBEDRAGBEGIN LPNMCBEDRAGBEGINW +#define PNMCBEDRAGBEGIN PNMCBEDRAGBEGINW +#else +#define NMCBEDRAGBEGIN NMCBEDRAGBEGINA +#define LPNMCBEDRAGBEGIN LPNMCBEDRAGBEGINA +#define PNMCBEDRAGBEGIN PNMCBEDRAGBEGINA +#endif + +// CBEN_ENDEDIT sends this information... +// fChanged if the user actually did anything +// iNewSelection gives what would be the new selection unless the notify is failed +// iNewSelection may be CB_ERR if there's no match +typedef struct { + NMHDR hdr; + BOOL fChanged; + int iNewSelection; + WCHAR szText[CBEMAXSTRLEN]; + int iWhy; +} NMCBEENDEDITW, *LPNMCBEENDEDITW, *PNMCBEENDEDITW; + +typedef struct { + NMHDR hdr; + BOOL fChanged; + int iNewSelection; + char szText[CBEMAXSTRLEN]; + int iWhy; +} NMCBEENDEDITA, *LPNMCBEENDEDITA,*PNMCBEENDEDITA; + +#ifdef UNICODE +#define NMCBEENDEDIT NMCBEENDEDITW +#define LPNMCBEENDEDIT LPNMCBEENDEDITW +#define PNMCBEENDEDIT PNMCBEENDEDITW +#else +#define NMCBEENDEDIT NMCBEENDEDITA +#define LPNMCBEENDEDIT LPNMCBEENDEDITA +#define PNMCBEENDEDIT PNMCBEENDEDITA +#endif + +#endif + + + +//====== TAB CONTROL ========================================================== + +#ifndef NOTABCONTROL + +#ifdef _WIN32 + +#define WC_TABCONTROLA "SysTabControl32" +#define WC_TABCONTROLW L"SysTabControl32" + +#ifdef UNICODE +#define WC_TABCONTROL WC_TABCONTROLW +#else +#define WC_TABCONTROL WC_TABCONTROLA +#endif + +#else +#define WC_TABCONTROL "SysTabControl" +#endif + +// begin_r_commctrl + +#define TCS_SCROLLOPPOSITE 0x0001 // assumes multiline tab +#define TCS_BOTTOM 0x0002 +#define TCS_RIGHT 0x0002 +#define TCS_MULTISELECT 0x0004 // allow multi-select in button mode +#define TCS_FLATBUTTONS 0x0008 +#define TCS_FORCEICONLEFT 0x0010 +#define TCS_FORCELABELLEFT 0x0020 +#define TCS_HOTTRACK 0x0040 +#define TCS_VERTICAL 0x0080 +#define TCS_TABS 0x0000 +#define TCS_BUTTONS 0x0100 +#define TCS_SINGLELINE 0x0000 +#define TCS_MULTILINE 0x0200 +#define TCS_RIGHTJUSTIFY 0x0000 +#define TCS_FIXEDWIDTH 0x0400 +#define TCS_RAGGEDRIGHT 0x0800 +#define TCS_FOCUSONBUTTONDOWN 0x1000 +#define TCS_OWNERDRAWFIXED 0x2000 +#define TCS_TOOLTIPS 0x4000 +#define TCS_FOCUSNEVER 0x8000 + +// end_r_commctrl + +// EX styles for use with TCM_SETEXTENDEDSTYLE +#define TCS_EX_FLATSEPARATORS 0x00000001 +#define TCS_EX_REGISTERDROP 0x00000002 + +#define TCM_GETIMAGELIST (TCM_FIRST + 2) +#define TabCtrl_GetImageList(hwnd) \ + (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L) + + +#define TCM_SETIMAGELIST (TCM_FIRST + 3) +#define TabCtrl_SetImageList(hwnd, himl) \ + (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(HIMAGELIST)(himl)) + + +#define TCM_GETITEMCOUNT (TCM_FIRST + 4) +#define TabCtrl_GetItemCount(hwnd) \ + (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L) + + +#define TCIF_TEXT 0x0001 +#define TCIF_IMAGE 0x0002 +#define TCIF_RTLREADING 0x0004 +#define TCIF_PARAM 0x0008 +#define TCIF_STATE 0x0010 + + +#define TCIS_BUTTONPRESSED 0x0001 +#define TCIS_HIGHLIGHTED 0x0002 + +#define TC_ITEMHEADERA TCITEMHEADERA +#define TC_ITEMHEADERW TCITEMHEADERW +#define TC_ITEMHEADER TCITEMHEADER + +typedef struct tagTCITEMHEADERA +{ + UINT mask; + UINT lpReserved1; + UINT lpReserved2; + LPSTR pszText; + int cchTextMax; + int iImage; +} TCITEMHEADERA, *LPTCITEMHEADERA; + +typedef struct tagTCITEMHEADERW +{ + UINT mask; + UINT lpReserved1; + UINT lpReserved2; + LPWSTR pszText; + int cchTextMax; + int iImage; +} TCITEMHEADERW, *LPTCITEMHEADERW; + +#ifdef UNICODE +#define TCITEMHEADER TCITEMHEADERW +#define LPTCITEMHEADER LPTCITEMHEADERW +#else +#define TCITEMHEADER TCITEMHEADERA +#define LPTCITEMHEADER LPTCITEMHEADERA +#endif + + +#define TC_ITEMA TCITEMA +#define TC_ITEMW TCITEMW +#define TC_ITEM TCITEM + +typedef struct tagTCITEMA +{ + UINT mask; + DWORD dwState; + DWORD dwStateMask; + LPSTR pszText; + int cchTextMax; + int iImage; + + LPARAM lParam; +} TCITEMA, *LPTCITEMA; + +typedef struct tagTCITEMW +{ + UINT mask; + DWORD dwState; + DWORD dwStateMask; + LPWSTR pszText; + int cchTextMax; + int iImage; + + LPARAM lParam; +} TCITEMW, *LPTCITEMW; + +#ifdef UNICODE +#define TCITEM TCITEMW +#define LPTCITEM LPTCITEMW +#else +#define TCITEM TCITEMA +#define LPTCITEM LPTCITEMA +#endif + + +#define TCM_GETITEMA (TCM_FIRST + 5) +#define TCM_GETITEMW (TCM_FIRST + 60) + +#ifdef UNICODE +#define TCM_GETITEM TCM_GETITEMW +#else +#define TCM_GETITEM TCM_GETITEMA +#endif + +#define TabCtrl_GetItem(hwnd, iItem, pitem) \ + (BOOL)SNDMSG((hwnd), TCM_GETITEM, (WPARAM)(int)(iItem), (LPARAM)(TC_ITEM *)(pitem)) + + +#define TCM_SETITEMA (TCM_FIRST + 6) +#define TCM_SETITEMW (TCM_FIRST + 61) + +#ifdef UNICODE +#define TCM_SETITEM TCM_SETITEMW +#else +#define TCM_SETITEM TCM_SETITEMA +#endif + +#define TabCtrl_SetItem(hwnd, iItem, pitem) \ + (BOOL)SNDMSG((hwnd), TCM_SETITEM, (WPARAM)(int)(iItem), (LPARAM)(TC_ITEM *)(pitem)) + + +#define TCM_INSERTITEMA (TCM_FIRST + 7) +#define TCM_INSERTITEMW (TCM_FIRST + 62) + +#ifdef UNICODE +#define TCM_INSERTITEM TCM_INSERTITEMW +#else +#define TCM_INSERTITEM TCM_INSERTITEMA +#endif + +#define TabCtrl_InsertItem(hwnd, iItem, pitem) \ + (int)SNDMSG((hwnd), TCM_INSERTITEM, (WPARAM)(int)(iItem), (LPARAM)(const TC_ITEM *)(pitem)) + + +#define TCM_DELETEITEM (TCM_FIRST + 8) +#define TabCtrl_DeleteItem(hwnd, i) \ + (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L) + + +#define TCM_DELETEALLITEMS (TCM_FIRST + 9) +#define TabCtrl_DeleteAllItems(hwnd) \ + (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L) + + +#define TCM_GETITEMRECT (TCM_FIRST + 10) +#define TabCtrl_GetItemRect(hwnd, i, prc) \ + (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT *)(prc)) + + +#define TCM_GETCURSEL (TCM_FIRST + 11) +#define TabCtrl_GetCurSel(hwnd) \ + (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0) + + +#define TCM_SETCURSEL (TCM_FIRST + 12) +#define TabCtrl_SetCurSel(hwnd, i) \ + (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)(i), 0) + + +#define TCHT_NOWHERE 0x0001 +#define TCHT_ONITEMICON 0x0002 +#define TCHT_ONITEMLABEL 0x0004 +#define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL) + +#define LPTC_HITTESTINFO LPTCHITTESTINFO +#define TC_HITTESTINFO TCHITTESTINFO + +typedef struct tagTCHITTESTINFO +{ + POINT pt; + UINT flags; +} TCHITTESTINFO, *LPTCHITTESTINFO; + +#define TCM_HITTEST (TCM_FIRST + 13) +#define TabCtrl_HitTest(hwndTC, pinfo) \ + (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO *)(pinfo)) + + +#define TCM_SETITEMEXTRA (TCM_FIRST + 14) +#define TabCtrl_SetItemExtra(hwndTC, cb) \ + (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L) + + +#define TCM_ADJUSTRECT (TCM_FIRST + 40) +#define TabCtrl_AdjustRect(hwnd, bLarger, prc) \ + (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)(bLarger), (LPARAM)(RECT *)(prc)) + + +#define TCM_SETITEMSIZE (TCM_FIRST + 41) +#define TabCtrl_SetItemSize(hwnd, x, y) \ + (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y)) + + +#define TCM_REMOVEIMAGE (TCM_FIRST + 42) +#define TabCtrl_RemoveImage(hwnd, i) \ + (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L) + + +#define TCM_SETPADDING (TCM_FIRST + 43) +#define TabCtrl_SetPadding(hwnd, cx, cy) \ + (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy)) + + +#define TCM_GETROWCOUNT (TCM_FIRST + 44) +#define TabCtrl_GetRowCount(hwnd) \ + (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L) + + +#define TCM_GETTOOLTIPS (TCM_FIRST + 45) +#define TabCtrl_GetToolTips(hwnd) \ + (HWND)SNDMSG((hwnd), TCM_GETTOOLTIPS, 0, 0L) + + +#define TCM_SETTOOLTIPS (TCM_FIRST + 46) +#define TabCtrl_SetToolTips(hwnd, hwndTT) \ + (void)SNDMSG((hwnd), TCM_SETTOOLTIPS, (WPARAM)(hwndTT), 0L) + + +#define TCM_GETCURFOCUS (TCM_FIRST + 47) +#define TabCtrl_GetCurFocus(hwnd) \ + (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0) + +#define TCM_SETCURFOCUS (TCM_FIRST + 48) +#define TabCtrl_SetCurFocus(hwnd, i) \ + SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0) + +#define TCM_SETMINTABWIDTH (TCM_FIRST + 49) +#define TabCtrl_SetMinTabWidth(hwnd, x) \ + (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x) + + +#define TCM_DESELECTALL (TCM_FIRST + 50) +#define TabCtrl_DeselectAll(hwnd, fExcludeFocus)\ + (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0) + +#define TCM_HIGHLIGHTITEM (TCM_FIRST + 51) +#define TabCtrl_HighlightItem(hwnd, i, fHighlight) \ + (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)(i), (LPARAM)MAKELONG (fHighlight, 0)) + +#define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52) // optional wParam == mask +#define TabCtrl_SetExtendedStyle(hwnd, dw)\ + (DWORD)SNDMSG((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw) + +#define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53) +#define TabCtrl_GetExtendedStyle(hwnd)\ + (DWORD)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0) + +#define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define TabCtrl_SetUnicodeFormat(hwnd, fUnicode) \ + (BOOL)SNDMSG((hwnd), TCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0) + +#define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define TabCtrl_GetUnicodeFormat(hwnd) \ + (BOOL)SNDMSG((hwnd), TCM_GETUNICODEFORMAT, 0, 0) + + +#define TCN_KEYDOWN (TCN_FIRST - 0) + +#define TC_KEYDOWN NMTCKEYDOWN + +#ifdef _WIN32 +#include +#endif + +typedef struct tagTCKEYDOWN +{ + NMHDR hdr; + WORD wVKey; + UINT flags; +} NMTCKEYDOWN; + +#ifdef _WIN32 +#include +#endif + +#define TCN_SELCHANGE (TCN_FIRST - 1) +#define TCN_SELCHANGING (TCN_FIRST - 2) +#define TCN_GETOBJECT (TCN_FIRST - 3) +#define TCN_FOCUSCHANGE (TCN_FIRST - 4) +#endif // NOTABCONTROL + + +//====== ANIMATE CONTROL ====================================================== + +#ifndef NOANIMATE + +#ifdef _WIN32 + +#define ANIMATE_CLASSW L"SysAnimate32" +#define ANIMATE_CLASSA "SysAnimate32" + + +#ifdef UNICODE +#define ANIMATE_CLASS ANIMATE_CLASSW +#else +#define ANIMATE_CLASS ANIMATE_CLASSA +#endif + +// begin_r_commctrl + +#define ACS_CENTER 0x0001 +#define ACS_TRANSPARENT 0x0002 +#define ACS_AUTOPLAY 0x0004 +#define ACS_TIMER 0x0008 // don't use threads... use timers + +// end_r_commctrl + +#define ACM_OPENA (WM_USER+100) +#define ACM_OPENW (WM_USER+103) + +#ifdef UNICODE +#define ACM_OPEN ACM_OPENW +#else +#define ACM_OPEN ACM_OPENA +#endif + +#define ACM_PLAY (WM_USER+101) +#define ACM_STOP (WM_USER+102) +#define ACM_ISPLAYING (WM_USER+104) + +#define ACN_START 1 +#define ACN_STOP 2 + + +#define Animate_Create(hwndP, id, dwStyle, hInstance) \ + CreateWindow(ANIMATE_CLASS, NULL, \ + dwStyle, 0, 0, 0, 0, hwndP, (HMENU)(id), hInstance, NULL) + +#define Animate_Open(hwnd, szName) (BOOL)SNDMSG(hwnd, ACM_OPEN, 0, (LPARAM)(LPTSTR)(szName)) +#define Animate_OpenEx(hwnd, hInst, szName) (BOOL)SNDMSG(hwnd, ACM_OPEN, (WPARAM)(hInst), (LPARAM)(LPTSTR)(szName)) +#define Animate_Play(hwnd, from, to, rep) (BOOL)SNDMSG(hwnd, ACM_PLAY, (WPARAM)(rep), (LPARAM)MAKELONG(from, to)) +#define Animate_Stop(hwnd) (BOOL)SNDMSG(hwnd, ACM_STOP, 0, 0) +#define Animate_IsPlaying(hwnd) (BOOL)SNDMSG(hwnd, ACM_ISPLAYING, 0, 0) +#define Animate_Close(hwnd) Animate_Open(hwnd, NULL) +#define Animate_Seek(hwnd, frame) Animate_Play(hwnd, frame, frame, 1) +#endif + +#endif // NOANIMATE + +//====== MONTHCAL CONTROL ====================================================== + +#ifndef NOMONTHCAL +#ifdef _WIN32 + +#define MONTHCAL_CLASSW L"SysMonthCal32" +#define MONTHCAL_CLASSA "SysMonthCal32" + +#ifdef UNICODE +#define MONTHCAL_CLASS MONTHCAL_CLASSW +#else +#define MONTHCAL_CLASS MONTHCAL_CLASSA +#endif + +// bit-packed array of "bold" info for a month +// if a bit is on, that day is drawn bold +typedef DWORD MONTHDAYSTATE, *LPMONTHDAYSTATE; + + +#define MCM_FIRST 0x1000 + +// BOOL MonthCal_GetCurSel(HWND hmc, LPSYSTEMTIME pst) +// returns FALSE if MCS_MULTISELECT +// returns TRUE and sets *pst to the currently selected date otherwise +#define MCM_GETCURSEL (MCM_FIRST + 1) +#define MonthCal_GetCurSel(hmc, pst) (BOOL)SNDMSG(hmc, MCM_GETCURSEL, 0, (LPARAM)(pst)) + +// BOOL MonthCal_SetCurSel(HWND hmc, LPSYSTEMTIME pst) +// returns FALSE if MCS_MULTISELECT +// returns TURE and sets the currently selected date to *pst otherwise +#define MCM_SETCURSEL (MCM_FIRST + 2) +#define MonthCal_SetCurSel(hmc, pst) (BOOL)SNDMSG(hmc, MCM_SETCURSEL, 0, (LPARAM)(pst)) + +// DWORD MonthCal_GetMaxSelCount(HWND hmc) +// returns the maximum number of selectable days allowed +#define MCM_GETMAXSELCOUNT (MCM_FIRST + 3) +#define MonthCal_GetMaxSelCount(hmc) (DWORD)SNDMSG(hmc, MCM_GETMAXSELCOUNT, 0, 0L) + +// BOOL MonthCal_SetMaxSelCount(HWND hmc, UINT n) +// sets the max number days that can be selected iff MCS_MULTISELECT +#define MCM_SETMAXSELCOUNT (MCM_FIRST + 4) +#define MonthCal_SetMaxSelCount(hmc, n) (BOOL)SNDMSG(hmc, MCM_SETMAXSELCOUNT, (WPARAM)(n), 0L) + +// BOOL MonthCal_GetSelRange(HWND hmc, LPSYSTEMTIME rgst) +// sets rgst[0] to the first day of the selection range +// sets rgst[1] to the last day of the selection range +#define MCM_GETSELRANGE (MCM_FIRST + 5) +#define MonthCal_GetSelRange(hmc, rgst) SNDMSG(hmc, MCM_GETSELRANGE, 0, (LPARAM)(rgst)) + +// BOOL MonthCal_SetSelRange(HWND hmc, LPSYSTEMTIME rgst) +// selects the range of days from rgst[0] to rgst[1] +#define MCM_SETSELRANGE (MCM_FIRST + 6) +#define MonthCal_SetSelRange(hmc, rgst) SNDMSG(hmc, MCM_SETSELRANGE, 0, (LPARAM)(rgst)) + +// DWORD MonthCal_GetMonthRange(HWND hmc, DWORD gmr, LPSYSTEMTIME rgst) +// if rgst specified, sets rgst[0] to the starting date and +// and rgst[1] to the ending date of the the selectable (non-grayed) +// days if GMR_VISIBLE or all the displayed days (including grayed) +// if GMR_DAYSTATE. +// returns the number of months spanned by the above range. +#define MCM_GETMONTHRANGE (MCM_FIRST + 7) +#define MonthCal_GetMonthRange(hmc, gmr, rgst) (DWORD)SNDMSG(hmc, MCM_GETMONTHRANGE, (WPARAM)(gmr), (LPARAM)(rgst)) + +// BOOL MonthCal_SetDayState(HWND hmc, int cbds, DAYSTATE *rgds) +// cbds is the count of DAYSTATE items in rgds and it must be equal +// to the value returned from MonthCal_GetMonthRange(hmc, GMR_DAYSTATE, NULL) +// This sets the DAYSTATE bits for each month (grayed and non-grayed +// days) displayed in the calendar. The first bit in a month's DAYSTATE +// corresponts to bolding day 1, the second bit affects day 2, etc. +#define MCM_SETDAYSTATE (MCM_FIRST + 8) +#define MonthCal_SetDayState(hmc, cbds, rgds) SNDMSG(hmc, MCM_SETDAYSTATE, (WPARAM)(cbds), (LPARAM)(rgds)) + +// BOOL MonthCal_GetMinReqRect(HWND hmc, LPRECT prc) +// sets *prc the minimal size needed to display one month +// To display two months, undo the AdjustWindowRect calculation already done to +// this rect, double the width, and redo the AdjustWindowRect calculation -- +// the monthcal control will display two calendars in this window (if you also +// double the vertical size, you will get 4 calendars) +// NOTE: if you want to gurantee that the "Today" string is not clipped, +// get the MCM_GETMAXTODAYWIDTH and use the max of that width and this width +#define MCM_GETMINREQRECT (MCM_FIRST + 9) +#define MonthCal_GetMinReqRect(hmc, prc) SNDMSG(hmc, MCM_GETMINREQRECT, 0, (LPARAM)(prc)) + +// set colors to draw control with -- see MCSC_ bits below +#define MCM_SETCOLOR (MCM_FIRST + 10) +#define MonthCal_SetColor(hmc, iColor, clr) SNDMSG(hmc, MCM_SETCOLOR, iColor, clr) + +#define MCM_GETCOLOR (MCM_FIRST + 11) +#define MonthCal_GetColor(hmc, iColor) SNDMSG(hmc, MCM_GETCOLOR, iColor, 0) + +#define MCSC_BACKGROUND 0 // the background color (between months) +#define MCSC_TEXT 1 // the dates +#define MCSC_TITLEBK 2 // background of the title +#define MCSC_TITLETEXT 3 +#define MCSC_MONTHBK 4 // background within the month cal +#define MCSC_TRAILINGTEXT 5 // the text color of header & trailing days + +// set what day is "today" send NULL to revert back to real date +#define MCM_SETTODAY (MCM_FIRST + 12) +#define MonthCal_SetToday(hmc, pst) SNDMSG(hmc, MCM_SETTODAY, 0, (LPARAM)(pst)) + +// get what day is "today" +// returns BOOL for success/failure +#define MCM_GETTODAY (MCM_FIRST + 13) +#define MonthCal_GetToday(hmc, pst) (BOOL)SNDMSG(hmc, MCM_GETTODAY, 0, (LPARAM)(pst)) + +// determine what pinfo->pt is over +#define MCM_HITTEST (MCM_FIRST + 14) +#define MonthCal_HitTest(hmc, pinfo) \ + SNDMSG(hmc, MCM_HITTEST, 0, (LPARAM)(PMCHITTESTINFO)(pinfo)) + + +typedef struct { + UINT cbSize; + POINT pt; + + UINT uHit; // out param + SYSTEMTIME st; +#if (NTDDI_VERSION >= NTDDI_VISTA) + RECT rc; + int iOffset; + int iRow; + int iCol; +#endif +} MCHITTESTINFO, *PMCHITTESTINFO; + +#define MCHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(MCHITTESTINFO, st) + +#define MCHT_TITLE 0x00010000 +#define MCHT_CALENDAR 0x00020000 +#define MCHT_TODAYLINK 0x00030000 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define MCHT_CALENDARCONTROL 0x00100000 +#endif + +#define MCHT_NEXT 0x01000000 // these indicate that hitting +#define MCHT_PREV 0x02000000 // here will go to the next/prev month + +#define MCHT_NOWHERE 0x00000000 + +#define MCHT_TITLEBK (MCHT_TITLE) +#define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001) +#define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002) +#define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003) +#define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003) + +#define MCHT_CALENDARBK (MCHT_CALENDAR) +#define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001) +#define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT) +#define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV) +#define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002) +#define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003) +#define MCHT_CALENDARDATEMIN (MCHT_CALENDAR | 0x0004) +#define MCHT_CALENDARDATEMAX (MCHT_CALENDAR | 0x0005) + +// set first day of week to iDay: +// 0 for Monday, 1 for Tuesday, ..., 6 for Sunday +// -1 for means use locale info +#define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15) +#define MonthCal_SetFirstDayOfWeek(hmc, iDay) \ + SNDMSG(hmc, MCM_SETFIRSTDAYOFWEEK, 0, iDay) + +// DWORD result... low word has the day. high word is bool if this is app set +// or not (FALSE == using locale info) +#define MCM_GETFIRSTDAYOFWEEK (MCM_FIRST + 16) +#define MonthCal_GetFirstDayOfWeek(hmc) \ + (DWORD)SNDMSG(hmc, MCM_GETFIRSTDAYOFWEEK, 0, 0) + +// DWORD MonthCal_GetRange(HWND hmc, LPSYSTEMTIME rgst) +// modifies rgst[0] to be the minimum ALLOWABLE systemtime (or 0 if no minimum) +// modifies rgst[1] to be the maximum ALLOWABLE systemtime (or 0 if no maximum) +// returns GDTR_MIN|GDTR_MAX if there is a minimum|maximum limit +#define MCM_GETRANGE (MCM_FIRST + 17) +#define MonthCal_GetRange(hmc, rgst) \ + (DWORD)SNDMSG(hmc, MCM_GETRANGE, 0, (LPARAM)(rgst)) + +// BOOL MonthCal_SetRange(HWND hmc, DWORD gdtr, LPSYSTEMTIME rgst) +// if GDTR_MIN, sets the minimum ALLOWABLE systemtime to rgst[0], otherwise removes minimum +// if GDTR_MAX, sets the maximum ALLOWABLE systemtime to rgst[1], otherwise removes maximum +// returns TRUE on success, FALSE on error (such as invalid parameters) +#define MCM_SETRANGE (MCM_FIRST + 18) +#define MonthCal_SetRange(hmc, gd, rgst) \ + (BOOL)SNDMSG(hmc, MCM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst)) + +// int MonthCal_GetMonthDelta(HWND hmc) +// returns the number of months one click on a next/prev button moves by +#define MCM_GETMONTHDELTA (MCM_FIRST + 19) +#define MonthCal_GetMonthDelta(hmc) \ + (int)SNDMSG(hmc, MCM_GETMONTHDELTA, 0, 0) + +// int MonthCal_SetMonthDelta(HWND hmc, int n) +// sets the month delta to n. n==0 reverts to moving by a page of months +// returns the previous value of n. +#define MCM_SETMONTHDELTA (MCM_FIRST + 20) +#define MonthCal_SetMonthDelta(hmc, n) \ + (int)SNDMSG(hmc, MCM_SETMONTHDELTA, n, 0) + +// DWORD MonthCal_GetMaxTodayWidth(HWND hmc, LPSIZE psz) +// sets *psz to the maximum width/height of the "Today" string displayed +// at the bottom of the calendar (as long as MCS_NOTODAY is not specified) +#define MCM_GETMAXTODAYWIDTH (MCM_FIRST + 21) +#define MonthCal_GetMaxTodayWidth(hmc) \ + (DWORD)SNDMSG(hmc, MCM_GETMAXTODAYWIDTH, 0, 0) + +#define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT +#define MonthCal_SetUnicodeFormat(hwnd, fUnicode) \ + (BOOL)SNDMSG((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0) + +#define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT +#define MonthCal_GetUnicodeFormat(hwnd) \ + (BOOL)SNDMSG((hwnd), MCM_GETUNICODEFORMAT, 0, 0) + +#if (NTDDI_VERSION >= NTDDI_VISTA) +// View +#define MCMV_MONTH 0 +#define MCMV_YEAR 1 +#define MCMV_DECADE 2 +#define MCMV_CENTURY 3 +#define MCMV_MAX MCMV_CENTURY + +#define MCM_GETCURRENTVIEW (MCM_FIRST + 22) +#define MonthCal_GetCurrentView(hmc) \ + (DWORD)SNDMSG(hmc, MCM_GETCURRENTVIEW, 0, 0) + +#define MCM_GETCALENDARCOUNT (MCM_FIRST + 23) +#define MonthCal_GetCalendarCount(hmc) \ + (DWORD)SNDMSG(hmc, MCM_GETCALENDARCOUNT, 0, 0) + +// Part +#define MCGIP_CALENDARCONTROL 0 +#define MCGIP_NEXT 1 +#define MCGIP_PREV 2 +#define MCGIP_FOOTER 3 +#define MCGIP_CALENDAR 4 +#define MCGIP_CALENDARHEADER 5 +#define MCGIP_CALENDARBODY 6 +#define MCGIP_CALENDARROW 7 +#define MCGIP_CALENDARCELL 8 + +#define MCGIF_DATE 0x00000001 +#define MCGIF_RECT 0x00000002 +#define MCGIF_NAME 0x00000004 + +// Note: iRow of -1 refers to the row header and iCol of -1 refers to the col header. +typedef struct tagMCGRIDINFO { + UINT cbSize; + DWORD dwPart; + DWORD dwFlags; + int iCalendar; + int iRow; + int iCol; + BOOL bSelected; + SYSTEMTIME stStart; + SYSTEMTIME stEnd; + RECT rc; + PWSTR pszName; + size_t cchName; +} MCGRIDINFO, *PMCGRIDINFO; + +#define MCM_GETCALENDARGRIDINFO (MCM_FIRST + 24) +#define MonthCal_GetCalendarGridInfo(hmc, pmcGridInfo) \ + (BOOL)SNDMSG(hmc, MCM_GETCALENDARGRIDINFO, 0, (LPARAM)(PMCGRIDINFO)(pmcGridInfo)) + +#define MCM_GETCALID (MCM_FIRST + 27) +#define MonthCal_GetCALID(hmc) \ + (CALID)SNDMSG(hmc, MCM_GETCALID, 0, 0) + +#define MCM_SETCALID (MCM_FIRST + 28) +#define MonthCal_SetCALID(hmc, calid) \ + SNDMSG(hmc, MCM_SETCALID, (WPARAM)(calid), 0) + +// Returns the min rect that will fit the max number of calendars for the passed in rect. +#define MCM_SIZERECTTOMIN (MCM_FIRST + 29) +#define MonthCal_SizeRectToMin(hmc, prc) \ + SNDMSG(hmc, MCM_SIZERECTTOMIN, 0, (LPARAM)(prc)) + +#define MCM_SETCALENDARBORDER (MCM_FIRST + 30) +#define MonthCal_SetCalendarBorder(hmc, fset, xyborder) \ + SNDMSG(hmc, MCM_SETCALENDARBORDER, (WPARAM)(fset), (LPARAM)(xyborder)) + +#define MCM_GETCALENDARBORDER (MCM_FIRST + 31) +#define MonthCal_GetCalendarBorder(hmc) \ + (int)SNDMSG(hmc, MCM_GETCALENDARBORDER, 0, 0) + +#define MCM_SETCURRENTVIEW (MCM_FIRST + 32) +#define MonthCal_SetCurrentView(hmc, dwNewView) \ + (BOOL)SNDMSG(hmc, MCM_SETCURRENTVIEW, 0, (LPARAM)(dwNewView)) + +#endif + +// MCN_SELCHANGE is sent whenever the currently displayed date changes +// via month change, year change, keyboard navigation, prev/next button +// +typedef struct tagNMSELCHANGE +{ + NMHDR nmhdr; // this must be first, so we don't break WM_NOTIFY + + SYSTEMTIME stSelStart; + SYSTEMTIME stSelEnd; +} NMSELCHANGE, *LPNMSELCHANGE; + +#define MCN_SELCHANGE (MCN_FIRST - 3) // -749 + +// MCN_GETDAYSTATE is sent for MCS_DAYSTATE controls whenever new daystate +// information is needed (month or year scroll) to draw bolding information. +// The app must fill in cDayState months worth of information starting from +// stStart date. The app may fill in the array at prgDayState or change +// prgDayState to point to a different array out of which the information +// will be copied. (similar to tooltips) +// +typedef struct tagNMDAYSTATE +{ + NMHDR nmhdr; // this must be first, so we don't break WM_NOTIFY + + SYSTEMTIME stStart; + int cDayState; + + LPMONTHDAYSTATE prgDayState; // points to cDayState MONTHDAYSTATEs +} NMDAYSTATE, *LPNMDAYSTATE; + +#define MCN_GETDAYSTATE (MCN_FIRST - 1) // -747 + +// MCN_SELECT is sent whenever a selection has occured (via mouse or keyboard) +// +typedef NMSELCHANGE NMSELECT, *LPNMSELECT; + + +#define MCN_SELECT (MCN_FIRST) // -746 + +typedef struct tagNMVIEWCHANGE +{ + NMHDR nmhdr; // this must be first, so we don't break WM_NOTIFY + DWORD dwOldView; + DWORD dwNewView; +} NMVIEWCHANGE, *LPNMVIEWCHANGE; + +#define MCN_VIEWCHANGE (MCN_FIRST - 4) // -750 + + +// begin_r_commctrl + +#define MCS_DAYSTATE 0x0001 +#define MCS_MULTISELECT 0x0002 +#define MCS_WEEKNUMBERS 0x0004 +#define MCS_NOTODAYCIRCLE 0x0008 +#define MCS_NOTODAY 0x0010 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define MCS_NOTRAILINGDATES 0x0040 +#define MCS_SHORTDAYSOFWEEK 0x0080 +#define MCS_NOSELCHANGEONNAV 0x0100 +#endif + + +// end_r_commctrl + +#define GMR_VISIBLE 0 // visible portion of display +#define GMR_DAYSTATE 1 // above plus the grayed out parts of + // partially displayed months + + +#endif // _WIN32 +#endif // NOMONTHCAL + + +//====== DATETIMEPICK CONTROL ================================================== + +#ifndef NODATETIMEPICK +#ifdef _WIN32 + +#define DATETIMEPICK_CLASSW L"SysDateTimePick32" +#define DATETIMEPICK_CLASSA "SysDateTimePick32" + +#ifdef UNICODE +#define DATETIMEPICK_CLASS DATETIMEPICK_CLASSW +#else +#define DATETIMEPICK_CLASS DATETIMEPICK_CLASSA +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +typedef struct tagDATETIMEPICKERINFO +{ + DWORD cbSize; + + RECT rcCheck; + DWORD stateCheck; + + RECT rcButton; + DWORD stateButton; + + HWND hwndEdit; + HWND hwndUD; + HWND hwndDropDown; +} DATETIMEPICKERINFO, *LPDATETIMEPICKERINFO; + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#define DTM_FIRST 0x1000 + +// DWORD DateTimePick_GetSystemtime(HWND hdp, LPSYSTEMTIME pst) +// returns GDT_NONE if "none" is selected (DTS_SHOWNONE only) +// returns GDT_VALID and modifies *pst to be the currently selected value +#define DTM_GETSYSTEMTIME (DTM_FIRST + 1) +#define DateTime_GetSystemtime(hdp, pst) (DWORD)SNDMSG(hdp, DTM_GETSYSTEMTIME, 0, (LPARAM)(pst)) + +// BOOL DateTime_SetSystemtime(HWND hdp, DWORD gd, LPSYSTEMTIME pst) +// if gd==GDT_NONE, sets datetimepick to None (DTS_SHOWNONE only) +// if gd==GDT_VALID, sets datetimepick to *pst +// returns TRUE on success, FALSE on error (such as bad params) +#define DTM_SETSYSTEMTIME (DTM_FIRST + 2) +#define DateTime_SetSystemtime(hdp, gd, pst) (BOOL)SNDMSG(hdp, DTM_SETSYSTEMTIME, (WPARAM)(gd), (LPARAM)(pst)) + +// DWORD DateTime_GetRange(HWND hdp, LPSYSTEMTIME rgst) +// modifies rgst[0] to be the minimum ALLOWABLE systemtime (or 0 if no minimum) +// modifies rgst[1] to be the maximum ALLOWABLE systemtime (or 0 if no maximum) +// returns GDTR_MIN|GDTR_MAX if there is a minimum|maximum limit +#define DTM_GETRANGE (DTM_FIRST + 3) +#define DateTime_GetRange(hdp, rgst) (DWORD)SNDMSG(hdp, DTM_GETRANGE, 0, (LPARAM)(rgst)) + +// BOOL DateTime_SetRange(HWND hdp, DWORD gdtr, LPSYSTEMTIME rgst) +// if GDTR_MIN, sets the minimum ALLOWABLE systemtime to rgst[0], otherwise removes minimum +// if GDTR_MAX, sets the maximum ALLOWABLE systemtime to rgst[1], otherwise removes maximum +// returns TRUE on success, FALSE on error (such as invalid parameters) +#define DTM_SETRANGE (DTM_FIRST + 4) +#define DateTime_SetRange(hdp, gd, rgst) (BOOL)SNDMSG(hdp, DTM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst)) + +// BOOL DateTime_SetFormat(HWND hdp, LPCTSTR sz) +// sets the display formatting string to sz (see GetDateFormat and GetTimeFormat for valid formatting chars) +// NOTE: 'X' is a valid formatting character which indicates that the application +// will determine how to display information. Such apps must support DTN_WMKEYDOWN, +// DTN_FORMAT, and DTN_FORMATQUERY. +#define DTM_SETFORMATA (DTM_FIRST + 5) +#define DTM_SETFORMATW (DTM_FIRST + 50) + +#ifdef UNICODE +#define DTM_SETFORMAT DTM_SETFORMATW +#else +#define DTM_SETFORMAT DTM_SETFORMATA +#endif + +#define DateTime_SetFormat(hdp, sz) (BOOL)SNDMSG(hdp, DTM_SETFORMAT, 0, (LPARAM)(sz)) + + +#define DTM_SETMCCOLOR (DTM_FIRST + 6) +#define DateTime_SetMonthCalColor(hdp, iColor, clr) SNDMSG(hdp, DTM_SETMCCOLOR, iColor, clr) + +#define DTM_GETMCCOLOR (DTM_FIRST + 7) +#define DateTime_GetMonthCalColor(hdp, iColor) SNDMSG(hdp, DTM_GETMCCOLOR, iColor, 0) + +// HWND DateTime_GetMonthCal(HWND hdp) +// returns the HWND of the MonthCal popup window. Only valid +// between DTN_DROPDOWN and DTN_CLOSEUP notifications. +#define DTM_GETMONTHCAL (DTM_FIRST + 8) +#define DateTime_GetMonthCal(hdp) (HWND)SNDMSG(hdp, DTM_GETMONTHCAL, 0, 0) + +#define DTM_SETMCFONT (DTM_FIRST + 9) +#define DateTime_SetMonthCalFont(hdp, hfont, fRedraw) SNDMSG(hdp, DTM_SETMCFONT, (WPARAM)(hfont), (LPARAM)(fRedraw)) + +#define DTM_GETMCFONT (DTM_FIRST + 10) +#define DateTime_GetMonthCalFont(hdp) SNDMSG(hdp, DTM_GETMCFONT, 0, 0) + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +#define DTM_SETMCSTYLE (DTM_FIRST + 11) +#define DateTime_SetMonthCalStyle(hdp, dwStyle) SNDMSG(hdp, DTM_SETMCSTYLE, 0, (LPARAM)dwStyle) + +#define DTM_GETMCSTYLE (DTM_FIRST + 12) +#define DateTime_GetMonthCalStyle(hdp) SNDMSG(hdp, DTM_GETMCSTYLE, 0, 0) + +#define DTM_CLOSEMONTHCAL (DTM_FIRST + 13) +#define DateTime_CloseMonthCal(hdp) SNDMSG(hdp, DTM_CLOSEMONTHCAL, 0, 0) + +// DateTime_GetDateTimePickerInfo(HWND hdp, DATETIMEPICKERINFO* pdtpi) +// Retrieves information about the selected date time picker. +#define DTM_GETDATETIMEPICKERINFO (DTM_FIRST + 14) +#define DateTime_GetDateTimePickerInfo(hdp, pdtpi) SNDMSG(hdp, DTM_GETDATETIMEPICKERINFO, 0, (LPARAM)(pdtpi)) + +#define DTM_GETIDEALSIZE (DTM_FIRST + 15) +#define DateTime_GetIdealSize(hdp, psize) (BOOL)SNDMSG((hdp), DTM_GETIDEALSIZE, 0, (LPARAM)(psize)) + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +// begin_r_commctrl + +#define DTS_UPDOWN 0x0001 // use UPDOWN instead of MONTHCAL +#define DTS_SHOWNONE 0x0002 // allow a NONE selection +#define DTS_SHORTDATEFORMAT 0x0000 // use the short date format (app must forward WM_WININICHANGE messages) +#define DTS_LONGDATEFORMAT 0x0004 // use the long date format (app must forward WM_WININICHANGE messages) +#define DTS_SHORTDATECENTURYFORMAT 0x000C// short date format with century (app must forward WM_WININICHANGE messages) +#define DTS_TIMEFORMAT 0x0009 // use the time format (app must forward WM_WININICHANGE messages) +#define DTS_APPCANPARSE 0x0010 // allow user entered strings (app MUST respond to DTN_USERSTRING) +#define DTS_RIGHTALIGN 0x0020 // right-align popup instead of left-align it + +// end_r_commctrl + +#define DTN_DATETIMECHANGE (DTN_FIRST2 - 6) // the systemtime has changed, -759 +typedef struct tagNMDATETIMECHANGE +{ + NMHDR nmhdr; + DWORD dwFlags; // GDT_VALID or GDT_NONE + SYSTEMTIME st; // valid iff dwFlags==GDT_VALID +} NMDATETIMECHANGE, *LPNMDATETIMECHANGE; + +#define DTN_USERSTRINGA (DTN_FIRST2 - 5) // the user has entered a string, -758 +#define DTN_USERSTRINGW (DTN_FIRST - 5) // -745 +typedef struct tagNMDATETIMESTRINGA +{ + NMHDR nmhdr; + LPCSTR pszUserString; // string user entered + SYSTEMTIME st; // app fills this in + DWORD dwFlags; // GDT_VALID or GDT_NONE +} NMDATETIMESTRINGA, *LPNMDATETIMESTRINGA; + +typedef struct tagNMDATETIMESTRINGW +{ + NMHDR nmhdr; + LPCWSTR pszUserString; // string user entered + SYSTEMTIME st; // app fills this in + DWORD dwFlags; // GDT_VALID or GDT_NONE +} NMDATETIMESTRINGW, *LPNMDATETIMESTRINGW; + +#ifdef UNICODE +#define DTN_USERSTRING DTN_USERSTRINGW +#define NMDATETIMESTRING NMDATETIMESTRINGW +#define LPNMDATETIMESTRING LPNMDATETIMESTRINGW +#else +#define DTN_USERSTRING DTN_USERSTRINGA +#define NMDATETIMESTRING NMDATETIMESTRINGA +#define LPNMDATETIMESTRING LPNMDATETIMESTRINGA +#endif + + +#define DTN_WMKEYDOWNA (DTN_FIRST2 - 4) // modify keydown on app format field (X), , -757 +#define DTN_WMKEYDOWNW (DTN_FIRST - 4) // -744 +typedef struct tagNMDATETIMEWMKEYDOWNA +{ + NMHDR nmhdr; + int nVirtKey; // virtual key code of WM_KEYDOWN which MODIFIES an X field + LPCSTR pszFormat; // format substring + SYSTEMTIME st; // current systemtime, app should modify based on key +} NMDATETIMEWMKEYDOWNA, *LPNMDATETIMEWMKEYDOWNA; + +typedef struct tagNMDATETIMEWMKEYDOWNW +{ + NMHDR nmhdr; + int nVirtKey; // virtual key code of WM_KEYDOWN which MODIFIES an X field + LPCWSTR pszFormat; // format substring + SYSTEMTIME st; // current systemtime, app should modify based on key +} NMDATETIMEWMKEYDOWNW, *LPNMDATETIMEWMKEYDOWNW; + +#ifdef UNICODE +#define DTN_WMKEYDOWN DTN_WMKEYDOWNW +#define NMDATETIMEWMKEYDOWN NMDATETIMEWMKEYDOWNW +#define LPNMDATETIMEWMKEYDOWN LPNMDATETIMEWMKEYDOWNW +#else +#define DTN_WMKEYDOWN DTN_WMKEYDOWNA +#define NMDATETIMEWMKEYDOWN NMDATETIMEWMKEYDOWNA +#define LPNMDATETIMEWMKEYDOWN LPNMDATETIMEWMKEYDOWNA +#endif + + +#define DTN_FORMATA (DTN_FIRST2 - 3) // query display for app format field (X), -756 +#define DTN_FORMATW (DTN_FIRST - 3) // -743 +typedef struct tagNMDATETIMEFORMATA +{ + NMHDR nmhdr; + LPCSTR pszFormat; // format substring + SYSTEMTIME st; // current systemtime + LPCSTR pszDisplay; // string to display + CHAR szDisplay[64]; // buffer pszDisplay originally points at +} NMDATETIMEFORMATA, *LPNMDATETIMEFORMATA; + +typedef struct tagNMDATETIMEFORMATW +{ + NMHDR nmhdr; + LPCWSTR pszFormat; // format substring + SYSTEMTIME st; // current systemtime + LPCWSTR pszDisplay; // string to display + WCHAR szDisplay[64]; // buffer pszDisplay originally points at +} NMDATETIMEFORMATW, *LPNMDATETIMEFORMATW; + +#ifdef UNICODE +#define DTN_FORMAT DTN_FORMATW +#define NMDATETIMEFORMAT NMDATETIMEFORMATW +#define LPNMDATETIMEFORMAT LPNMDATETIMEFORMATW +#else +#define DTN_FORMAT DTN_FORMATA +#define NMDATETIMEFORMAT NMDATETIMEFORMATA +#define LPNMDATETIMEFORMAT LPNMDATETIMEFORMATA +#endif + + +#define DTN_FORMATQUERYA (DTN_FIRST2 - 2) // query formatting info for app format field (X), -755 +#define DTN_FORMATQUERYW (DTN_FIRST - 2) // -742 +typedef struct tagNMDATETIMEFORMATQUERYA +{ + NMHDR nmhdr; + LPCSTR pszFormat; // format substring + SIZE szMax; // max bounding rectangle app will use for this format string +} NMDATETIMEFORMATQUERYA, *LPNMDATETIMEFORMATQUERYA; + +typedef struct tagNMDATETIMEFORMATQUERYW +{ + NMHDR nmhdr; + LPCWSTR pszFormat; // format substring + SIZE szMax; // max bounding rectangle app will use for this format string +} NMDATETIMEFORMATQUERYW, *LPNMDATETIMEFORMATQUERYW; + +#ifdef UNICODE +#define DTN_FORMATQUERY DTN_FORMATQUERYW +#define NMDATETIMEFORMATQUERY NMDATETIMEFORMATQUERYW +#define LPNMDATETIMEFORMATQUERY LPNMDATETIMEFORMATQUERYW +#else +#define DTN_FORMATQUERY DTN_FORMATQUERYA +#define NMDATETIMEFORMATQUERY NMDATETIMEFORMATQUERYA +#define LPNMDATETIMEFORMATQUERY LPNMDATETIMEFORMATQUERYA +#endif + + +#define DTN_DROPDOWN (DTN_FIRST2 - 1) // MonthCal has dropped down, -754 +#define DTN_CLOSEUP (DTN_FIRST2) // MonthCal is popping up, -753 + + +#define GDTR_MIN 0x0001 +#define GDTR_MAX 0x0002 + +#define GDT_ERROR -1 +#define GDT_VALID 0 +#define GDT_NONE 1 + + +#endif // _WIN32 +#endif // NODATETIMEPICK + + +#ifndef NOIPADDRESS + +/////////////////////////////////////////////// +// IP Address edit control + +// Messages sent to IPAddress controls + +#define IPM_CLEARADDRESS (WM_USER+100) // no parameters +#define IPM_SETADDRESS (WM_USER+101) // lparam = TCP/IP address +#define IPM_GETADDRESS (WM_USER+102) // lresult = # of non black fields. lparam = LPDWORD for TCP/IP address +#define IPM_SETRANGE (WM_USER+103) // wparam = field, lparam = range +#define IPM_SETFOCUS (WM_USER+104) // wparam = field +#define IPM_ISBLANK (WM_USER+105) // no parameters + +#define WC_IPADDRESSW L"SysIPAddress32" +#define WC_IPADDRESSA "SysIPAddress32" + +#ifdef UNICODE +#define WC_IPADDRESS WC_IPADDRESSW +#else +#define WC_IPADDRESS WC_IPADDRESSA +#endif + +#define IPN_FIELDCHANGED (IPN_FIRST - 0) +typedef struct tagNMIPADDRESS +{ + NMHDR hdr; + int iField; + int iValue; +} NMIPADDRESS, *LPNMIPADDRESS; + +// The following is a useful macro for passing the range values in the +// IPM_SETRANGE message. + +#define MAKEIPRANGE(low, high) ((LPARAM)(WORD)(((BYTE)(high) << 8) + (BYTE)(low))) + +// And this is a useful macro for making the IP Address to be passed +// as a LPARAM. + +#define MAKEIPADDRESS(b1,b2,b3,b4) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4)))) + +// Get individual number +#define FIRST_IPADDRESS(x) (((x) >> 24) & 0xff) +#define SECOND_IPADDRESS(x) (((x) >> 16) & 0xff) +#define THIRD_IPADDRESS(x) (((x) >> 8) & 0xff) +#define FOURTH_IPADDRESS(x) ((x) & 0xff) + + +#endif // NOIPADDRESS + + +//--------------------------------------------------------------------------------------- +//--------------------------------------------------------------------------------------- +// ====================== Pager Control ============================= +//--------------------------------------------------------------------------------------- +//--------------------------------------------------------------------------------------- + +#ifndef NOPAGESCROLLER + +//Pager Class Name +#define WC_PAGESCROLLERW L"SysPager" +#define WC_PAGESCROLLERA "SysPager" + +#ifdef UNICODE +#define WC_PAGESCROLLER WC_PAGESCROLLERW +#else +#define WC_PAGESCROLLER WC_PAGESCROLLERA +#endif + + +//--------------------------------------------------------------------------------------- +// Pager Control Styles +//--------------------------------------------------------------------------------------- +// begin_r_commctrl + +#define PGS_VERT 0x00000000 +#define PGS_HORZ 0x00000001 +#define PGS_AUTOSCROLL 0x00000002 +#define PGS_DRAGNDROP 0x00000004 + +// end_r_commctrl + + +//--------------------------------------------------------------------------------------- +// Pager Button State +//--------------------------------------------------------------------------------------- +//The scroll can be in one of the following control State +#define PGF_INVISIBLE 0 // Scroll button is not visible +#define PGF_NORMAL 1 // Scroll button is in normal state +#define PGF_GRAYED 2 // Scroll button is in grayed state +#define PGF_DEPRESSED 4 // Scroll button is in depressed state +#define PGF_HOT 8 // Scroll button is in hot state + + +// The following identifiers specifies the button control +#define PGB_TOPORLEFT 0 +#define PGB_BOTTOMORRIGHT 1 + +//--------------------------------------------------------------------------------------- +// Pager Control Messages +//--------------------------------------------------------------------------------------- +#define PGM_SETCHILD (PGM_FIRST + 1) // lParam == hwnd +#define Pager_SetChild(hwnd, hwndChild) \ + (void)SNDMSG((hwnd), PGM_SETCHILD, 0, (LPARAM)(hwndChild)) + +#define PGM_RECALCSIZE (PGM_FIRST + 2) +#define Pager_RecalcSize(hwnd) \ + (void)SNDMSG((hwnd), PGM_RECALCSIZE, 0, 0) + +#define PGM_FORWARDMOUSE (PGM_FIRST + 3) +#define Pager_ForwardMouse(hwnd, bForward) \ + (void)SNDMSG((hwnd), PGM_FORWARDMOUSE, (WPARAM)(bForward), 0) + +#define PGM_SETBKCOLOR (PGM_FIRST + 4) +#define Pager_SetBkColor(hwnd, clr) \ + (COLORREF)SNDMSG((hwnd), PGM_SETBKCOLOR, 0, (LPARAM)(clr)) + +#define PGM_GETBKCOLOR (PGM_FIRST + 5) +#define Pager_GetBkColor(hwnd) \ + (COLORREF)SNDMSG((hwnd), PGM_GETBKCOLOR, 0, 0) + +#define PGM_SETBORDER (PGM_FIRST + 6) +#define Pager_SetBorder(hwnd, iBorder) \ + (int)SNDMSG((hwnd), PGM_SETBORDER, 0, (LPARAM)(iBorder)) + +#define PGM_GETBORDER (PGM_FIRST + 7) +#define Pager_GetBorder(hwnd) \ + (int)SNDMSG((hwnd), PGM_GETBORDER, 0, 0) + +#define PGM_SETPOS (PGM_FIRST + 8) +#define Pager_SetPos(hwnd, iPos) \ + (int)SNDMSG((hwnd), PGM_SETPOS, 0, (LPARAM)(iPos)) + +#define PGM_GETPOS (PGM_FIRST + 9) +#define Pager_GetPos(hwnd) \ + (int)SNDMSG((hwnd), PGM_GETPOS, 0, 0) + +#define PGM_SETBUTTONSIZE (PGM_FIRST + 10) +#define Pager_SetButtonSize(hwnd, iSize) \ + (int)SNDMSG((hwnd), PGM_SETBUTTONSIZE, 0, (LPARAM)(iSize)) + +#define PGM_GETBUTTONSIZE (PGM_FIRST + 11) +#define Pager_GetButtonSize(hwnd) \ + (int)SNDMSG((hwnd), PGM_GETBUTTONSIZE, 0,0) + +#define PGM_GETBUTTONSTATE (PGM_FIRST + 12) +#define Pager_GetButtonState(hwnd, iButton) \ + (DWORD)SNDMSG((hwnd), PGM_GETBUTTONSTATE, 0, (LPARAM)(iButton)) + +#define PGM_GETDROPTARGET CCM_GETDROPTARGET +#define Pager_GetDropTarget(hwnd, ppdt) \ + (void)SNDMSG((hwnd), PGM_GETDROPTARGET, 0, (LPARAM)(ppdt)) + +#define PGM_SETSCROLLINFO (PGM_FIRST + 13) +#define Pager_SetScrollInfo(hwnd, cTimeOut, cLinesPer, cPixelsPerLine) \ + (void) SNDMSG((hwnd), PGM_SETSCROLLINFO, cTimeOut, MAKELONG(cLinesPer, cPixelsPerLine)) + +//--------------------------------------------------------------------------------------- +//Pager Control Notification Messages +//--------------------------------------------------------------------------------------- + + +// PGN_SCROLL Notification Message + +#define PGN_SCROLL (PGN_FIRST-1) + +#define PGF_SCROLLUP 1 +#define PGF_SCROLLDOWN 2 +#define PGF_SCROLLLEFT 4 +#define PGF_SCROLLRIGHT 8 + + +//Keys down +#define PGK_SHIFT 1 +#define PGK_CONTROL 2 +#define PGK_MENU 4 + + +#ifdef _WIN32 +#include +#endif + +// This structure is sent along with PGN_SCROLL notifications +typedef struct { + NMHDR hdr; + WORD fwKeys; // Specifies which keys are down when this notification is send + RECT rcParent; // Contains Parent Window Rect + int iDir; // Scrolling Direction + int iXpos; // Horizontal scroll position + int iYpos; // Vertical scroll position + int iScroll; // [in/out] Amount to scroll +}NMPGSCROLL, *LPNMPGSCROLL; + +#ifdef _WIN32 +#include +#endif + +// PGN_CALCSIZE Notification Message + +#define PGN_CALCSIZE (PGN_FIRST-2) + +#define PGF_CALCWIDTH 1 +#define PGF_CALCHEIGHT 2 + +typedef struct { + NMHDR hdr; + DWORD dwFlag; + int iWidth; + int iHeight; +}NMPGCALCSIZE, *LPNMPGCALCSIZE; + + +// PGN_HOTITEMCHANGE Notification Message + +#define PGN_HOTITEMCHANGE (PGN_FIRST-3) + +/* +The PGN_HOTITEMCHANGE notification uses these notification +flags defined in TOOLBAR: + +#define HICF_ENTERING 0x00000010 // idOld is invalid +#define HICF_LEAVING 0x00000020 // idNew is invalid +*/ + +// Structure for PGN_HOTITEMCHANGE notification +// +typedef struct tagNMPGHOTITEM +{ + NMHDR hdr; + int idOld; + int idNew; + DWORD dwFlags; // HICF_* +} NMPGHOTITEM, * LPNMPGHOTITEM; + +#endif // NOPAGESCROLLER + +////====================== End Pager Control ========================================== + +// +// === Native Font Control === +// +#ifndef NONATIVEFONTCTL +//NativeFont Class Name +#define WC_NATIVEFONTCTLW L"NativeFontCtl" +#define WC_NATIVEFONTCTLA "NativeFontCtl" + +#ifdef UNICODE +#define WC_NATIVEFONTCTL WC_NATIVEFONTCTLW +#else +#define WC_NATIVEFONTCTL WC_NATIVEFONTCTLA +#endif + +// begin_r_commctrl + +// style definition +#define NFS_EDIT 0x0001 +#define NFS_STATIC 0x0002 +#define NFS_LISTCOMBO 0x0004 +#define NFS_BUTTON 0x0008 +#define NFS_ALL 0x0010 +#define NFS_USEFONTASSOC 0x0020 + +// end_r_commctrl + +#endif // NONATIVEFONTCTL +// === End Native Font Control === + +// ====================== Button Control ============================= + +#ifndef NOBUTTON + +#ifdef _WIN32 + +// Button Class Name +#define WC_BUTTONA "Button" +#define WC_BUTTONW L"Button" + +#ifdef UNICODE +#define WC_BUTTON WC_BUTTONW +#else +#define WC_BUTTON WC_BUTTONA +#endif + +#else +#define WC_BUTTON "Button" +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define BUTTON_IMAGELIST_ALIGN_LEFT 0 +#define BUTTON_IMAGELIST_ALIGN_RIGHT 1 +#define BUTTON_IMAGELIST_ALIGN_TOP 2 +#define BUTTON_IMAGELIST_ALIGN_BOTTOM 3 +#define BUTTON_IMAGELIST_ALIGN_CENTER 4 // Doesn't draw text + +typedef struct +{ + HIMAGELIST himl; // Images: Normal, Hot, Pushed, Disabled. If count is less than 4, we use index 1 + RECT margin; // Margin around icon. + UINT uAlign; +} BUTTON_IMAGELIST, *PBUTTON_IMAGELIST; + +#define BCM_GETIDEALSIZE (BCM_FIRST + 0x0001) +#define Button_GetIdealSize(hwnd, psize)\ + (BOOL)SNDMSG((hwnd), BCM_GETIDEALSIZE, 0, (LPARAM)(psize)) + +#define BCM_SETIMAGELIST (BCM_FIRST + 0x0002) +#define Button_SetImageList(hwnd, pbuttonImagelist)\ + (BOOL)SNDMSG((hwnd), BCM_SETIMAGELIST, 0, (LPARAM)(pbuttonImagelist)) + +#define BCM_GETIMAGELIST (BCM_FIRST + 0x0003) +#define Button_GetImageList(hwnd, pbuttonImagelist)\ + (BOOL)SNDMSG((hwnd), BCM_GETIMAGELIST, 0, (LPARAM)(pbuttonImagelist)) + +#define BCM_SETTEXTMARGIN (BCM_FIRST + 0x0004) +#define Button_SetTextMargin(hwnd, pmargin)\ + (BOOL)SNDMSG((hwnd), BCM_SETTEXTMARGIN, 0, (LPARAM)(pmargin)) +#define BCM_GETTEXTMARGIN (BCM_FIRST + 0x0005) +#define Button_GetTextMargin(hwnd, pmargin)\ + (BOOL)SNDMSG((hwnd), BCM_GETTEXTMARGIN, 0, (LPARAM)(pmargin)) + +typedef struct tagNMBCHOTITEM +{ + NMHDR hdr; + DWORD dwFlags; // HICF_* +} NMBCHOTITEM, * LPNMBCHOTITEM; + +#define BCN_HOTITEMCHANGE (BCN_FIRST + 0x0001) + +#define BST_HOT 0x0200 + +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +// BUTTON STATE FLAGS +#define BST_DROPDOWNPUSHED 0x0400 + +// begin_r_commctrl + +// BUTTON STYLES +#define BS_SPLITBUTTON 0x0000000CL +#define BS_DEFSPLITBUTTON 0x0000000DL +#define BS_COMMANDLINK 0x0000000EL +#define BS_DEFCOMMANDLINK 0x0000000FL + +// SPLIT BUTTON INFO mask flags +#define BCSIF_GLYPH 0x0001 +#define BCSIF_IMAGE 0x0002 +#define BCSIF_STYLE 0x0004 +#define BCSIF_SIZE 0x0008 + +// SPLIT BUTTON STYLE flags +#define BCSS_NOSPLIT 0x0001 +#define BCSS_STRETCH 0x0002 +#define BCSS_ALIGNLEFT 0x0004 +#define BCSS_IMAGE 0x0008 + +// end_r_commctrl + +// BUTTON STRUCTURES +typedef struct tagBUTTON_SPLITINFO +{ + UINT mask; + HIMAGELIST himlGlyph; // interpreted as WCHAR if BCSIF_GLYPH is set + UINT uSplitStyle; + SIZE size; +} BUTTON_SPLITINFO, * PBUTTON_SPLITINFO; + +// BUTTON MESSAGES +#define BCM_SETDROPDOWNSTATE (BCM_FIRST + 0x0006) +#define Button_SetDropDownState(hwnd, fDropDown) \ + (BOOL)SNDMSG((hwnd), BCM_SETDROPDOWNSTATE, (WPARAM)(fDropDown), 0) + +#define BCM_SETSPLITINFO (BCM_FIRST + 0x0007) +#define Button_SetSplitInfo(hwnd, pInfo) \ + (BOOL)SNDMSG((hwnd), BCM_SETSPLITINFO, 0, (LPARAM)(pInfo)) + +#define BCM_GETSPLITINFO (BCM_FIRST + 0x0008) +#define Button_GetSplitInfo(hwnd, pInfo) \ + (BOOL)SNDMSG((hwnd), BCM_GETSPLITINFO, 0, (LPARAM)(pInfo)) + +#define BCM_SETNOTE (BCM_FIRST + 0x0009) +#define Button_SetNote(hwnd, psz) \ + (BOOL)SNDMSG((hwnd), BCM_SETNOTE, 0, (LPARAM)(psz)) + +#define BCM_GETNOTE (BCM_FIRST + 0x000A) +#define Button_GetNote(hwnd, psz, pcc) \ + (BOOL)SNDMSG((hwnd), BCM_GETNOTE, (WPARAM)pcc, (LPARAM)psz) + +#define BCM_GETNOTELENGTH (BCM_FIRST + 0x000B) +#define Button_GetNoteLength(hwnd) \ + (LRESULT)SNDMSG((hwnd), BCM_GETNOTELENGTH, 0, 0) + + +#if (NTDDI_VERSION >= NTDDI_VISTA) +// Macro to use on a button or command link to display an elevated icon +#define BCM_SETSHIELD (BCM_FIRST + 0x000C) +#define Button_SetElevationRequiredState(hwnd, fRequired) \ + (LRESULT)SNDMSG((hwnd), BCM_SETSHIELD, 0, (LPARAM)fRequired) +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +// Value to pass to BCM_SETIMAGELIST to indicate that no glyph should be +// displayed +#define BCCL_NOGLYPH (HIMAGELIST)(-1) + + +// NOTIFICATION MESSAGES +typedef struct tagNMBCDROPDOWN +{ + NMHDR hdr; + RECT rcButton; +} NMBCDROPDOWN, * LPNMBCDROPDOWN; + +#define BCN_DROPDOWN (BCN_FIRST + 0x0002) + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#endif // NOBUTTON + +// ===================== End Button Control ========================= + +// ====================== Static Control ============================= + +#ifndef NOSTATIC + +#ifdef _WIN32 + +// Static Class Name +#define WC_STATICA "Static" +#define WC_STATICW L"Static" + +#ifdef UNICODE +#define WC_STATIC WC_STATICW +#else +#define WC_STATIC WC_STATICA +#endif + +#else +#define WC_STATIC "Static" +#endif + +#endif // NOSTATIC + +// ===================== End Static Control ========================= + +// ====================== Edit Control ============================= + +#ifndef NOEDIT + +#ifdef _WIN32 + +// Edit Class Name +#define WC_EDITA "Edit" +#define WC_EDITW L"Edit" + +#ifdef UNICODE +#define WC_EDIT WC_EDITW +#else +#define WC_EDIT WC_EDITA +#endif + +#else +#define WC_EDIT "Edit" +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +// Edit Control Extended Styles to use with EM_SETEXTENDEDSTYLE/EM_GETEXTENDEDSTYLE +#define ES_EX_ALLOWEOL_CR 0x0001L +#define ES_EX_ALLOWEOL_LF 0x0002L +#define ES_EX_ALLOWEOL_ALL (ES_EX_ALLOWEOL_CR | ES_EX_ALLOWEOL_LF) +#define ES_EX_CONVERT_EOL_ON_PASTE 0x0004L + + +#define ES_EX_ZOOMABLE 0x0010L +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define EM_SETCUEBANNER (ECM_FIRST + 1) // Set the cue banner with the lParm = LPCWSTR +#define Edit_SetCueBannerText(hwnd, lpcwText) \ + (BOOL)SNDMSG((hwnd), EM_SETCUEBANNER, 0, (LPARAM)(lpcwText)) +#define Edit_SetCueBannerTextFocused(hwnd, lpcwText, fDrawFocused) \ + (BOOL)SNDMSG((hwnd), EM_SETCUEBANNER, (WPARAM)fDrawFocused, (LPARAM)lpcwText) +#define EM_GETCUEBANNER (ECM_FIRST + 2) // Set the cue banner with the lParm = LPCWSTR +#define Edit_GetCueBannerText(hwnd, lpwText, cchText) \ + (BOOL)SNDMSG((hwnd), EM_GETCUEBANNER, (WPARAM)(lpwText), (LPARAM)(cchText)) + +typedef struct _tagEDITBALLOONTIP +{ + DWORD cbStruct; + LPCWSTR pszTitle; + LPCWSTR pszText; + INT ttiIcon; // From TTI_* +} EDITBALLOONTIP, *PEDITBALLOONTIP; +#define EM_SHOWBALLOONTIP (ECM_FIRST + 3) // Show a balloon tip associated to the edit control +#define Edit_ShowBalloonTip(hwnd, peditballoontip) \ + (BOOL)SNDMSG((hwnd), EM_SHOWBALLOONTIP, 0, (LPARAM)(peditballoontip)) +#define EM_HIDEBALLOONTIP (ECM_FIRST + 4) // Hide any balloon tip associated with the edit control +#define Edit_HideBalloonTip(hwnd) \ + (BOOL)SNDMSG((hwnd), EM_HIDEBALLOONTIP, 0, 0) +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define EM_SETHILITE (ECM_FIRST + 5) +#define Edit_SetHilite(hwndCtl, ichStart, ichEnd) ((void)SNDMSG((hwndCtl), EM_SETHILITE, (ichStart), (ichEnd))) +#define EM_GETHILITE (ECM_FIRST + 6) +#define Edit_GetHilite(hwndCtl) ((DWORD)SNDMSG((hwndCtl), EM_GETHILITE, 0L, 0L)) + + +#endif + +#define EM_NOSETFOCUS (ECM_FIRST + 7) +#define Edit_NoSetFocus(hwndCtl) ((DWORD)SNDMSG((hwndCtl), EM_NOSETFOCUS, 0L, 0L)) + +#define EM_TAKEFOCUS (ECM_FIRST + 8) +#define Edit_TakeFocus(hwndCtl) ((DWORD)SNDMSG((hwndCtl), EM_TAKEFOCUS, 0L, 0L)) + + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +// EM_SETENDOFLINE/EM_GETENDOFLINE options +typedef enum EC_ENDOFLINE { + EC_ENDOFLINE_DETECTFROMCONTENT = 0, + EC_ENDOFLINE_CRLF = 1, + EC_ENDOFLINE_CR = 2, + EC_ENDOFLINE_LF = 3, +} EC_ENDOFLINE; + +#define EM_SETEXTENDEDSTYLE (ECM_FIRST + 10) +#define Edit_SetExtendedStyle(hwndCtl, dw, dwMask) \ + (DWORD)SNDMSG((hwndCtl), EM_SETEXTENDEDSTYLE, (dwMask), (dw)) +#define EM_GETEXTENDEDSTYLE (ECM_FIRST + 11) +#define Edit_GetExtendedStyle(hwndCtl) \ + (DWORD)SNDMSG((hwndCtl), EM_GETEXTENDEDSTYLE, 0, 0) +#define EM_SETENDOFLINE (ECM_FIRST + 12) +#define Edit_SetEndOfLine(hwndCtl, eolType) \ + (DWORD)SNDMSG((hwndCtl), EM_SETENDOFLINE, (eolType), 0) +#define EM_GETENDOFLINE (ECM_FIRST + 13) +#define Edit_GetEndOfLine(hwndCtl) \ + (EC_ENDOFLINE)SNDMSG((hwndCtl), EM_GETENDOFLINE, 0, 0) + +#define EM_ENABLESEARCHWEB (ECM_FIRST + 14) +#define Edit_EnableSearchWeb(hwndCtl, enable) \ + (BOOL)SNDMSG((hwndCtl), EM_ENABLESEARCHWEB, (WPARAM)(enable), 0) +#define EM_SEARCHWEB (ECM_FIRST + 15) +#define Edit_SearchWeb(hwndCtl) \ + (BOOL)SNDMSG((hwndCtl), EM_SEARCHWEB, 0, 0) + +// Form codes are internal-only so keep the api internal + +#define EM_SETCARETINDEX (ECM_FIRST + 17) +#define Edit_SetCaretIndex(hwndCtl, newCaretPosition) \ + (BOOL)SNDMSG((hwndCtl), EM_SETCARETINDEX, (WPARAM)(newCaretIndex), 0) +#define EM_GETCARETINDEX (ECM_FIRST + 18) +#define Edit_GetCaretIndex(hwndCtl) \ + (DWORD)SNDMSG((hwndCtl), EM_GETCARETINDEX, 0, 0) + +// We want to reuse the same messages as richedit.h +// which is why these are outside of the ECM_FIRST-ECM_LAST range. +#define EM_GETZOOM (WM_USER + 224) +#define Edit_GetZoom(hwndCtl, numerator, denominator) \ + (BOOL)SNDMSG((hwndCtl), EM_GETZOOM, (WPARAM)(numerator), (LPARAM)(denominator)) +#define EM_SETZOOM (WM_USER + 225) +#define Edit_SetZoom(hwndCtl, numerator, denominator) \ + (BOOL)SNDMSG((hwndCtl), EM_SETZOOM, (WPARAM)(numerator), (LPARAM)(denominator)) + +#define EM_FILELINEFROMCHAR (ECM_FIRST + 19) +#define Edit_GetFileLineFromChar(hwndCtl, characterIndex) \ + (DWORD)SNDMSG((hwndCtl), EM_FILELINEFROMCHAR, (WPARAM)(characterIndex), 0) +#define EM_FILELINEINDEX (ECM_FIRST + 20) +#define Edit_GetFileLineIndex(hwndCtl, lineNumber) \ + (DWORD)SNDMSG((hwndCtl), EM_FILELINEINDEX, (WPARAM)(lineNumber), 0) +#define EM_FILELINELENGTH (ECM_FIRST + 21) +#define Edit_GetFileLineLength(hwndCtl, characterIndex) \ + (DWORD)SNDMSG((hwndCtl), EM_FILELINELENGTH, (WPARAM)(characterIndex), 0) +#define EM_GETFILELINE (ECM_FIRST + 22) +#define Edit_GetFileLine(hwndCtl, lineNumber, textBuffer) \ + (DWORD)SNDMSG((hwndCtl), EM_GETFILELINE, (WPARAM)(lineNumber), (LPARAM)(textBuffer)) +#define EM_GETFILELINECOUNT (ECM_FIRST + 23) +#define Edit_GetFileLineCount(hwndCtl) \ + (DWORD)SNDMSG((hwndCtl), EM_GETFILELINECOUNT, 0, 0) + +#define EN_SEARCHWEB (EN_FIRST - 0) + +typedef enum EC_SEARCHWEB_ENTRYPOINT { + EC_SEARCHWEB_ENTRYPOINT_EXTERNAL = 0, + EC_SEARCHWEB_ENTRYPOINT_CONTEXTMENU = 1, +} EC_SEARCHWEB_ENTRYPOINT; + +typedef struct NMSEARCHWEB +{ + NMHDR hdr; + EC_SEARCHWEB_ENTRYPOINT entrypoint; + BOOL hasQueryText; + BOOL invokeSucceeded; +} NMSEARCHWEB; + +#endif + +#endif // NOEDIT + +// ===================== End Edit Control ========================= + +// ====================== Listbox Control ============================= + +#ifndef NOLISTBOX + +#ifdef _WIN32 + +// Listbox Class Name +#define WC_LISTBOXA "ListBox" +#define WC_LISTBOXW L"ListBox" + +#ifdef UNICODE +#define WC_LISTBOX WC_LISTBOXW +#else +#define WC_LISTBOX WC_LISTBOXA +#endif + +#else +#define WC_LISTBOX "ListBox" +#endif + +#endif // NOLISTBOX + + +// ===================== End Listbox Control ========================= + +// ====================== Combobox Control ============================= + +#ifndef NOCOMBOBOX + +#ifdef _WIN32 + +// Combobox Class Name +#define WC_COMBOBOXA "ComboBox" +#define WC_COMBOBOXW L"ComboBox" + +#ifdef UNICODE +#define WC_COMBOBOX WC_COMBOBOXW +#else +#define WC_COMBOBOX WC_COMBOBOXA +#endif + +#else +#define WC_COMBOBOX "ComboBox" +#endif + +#endif // NOCOMBOBOX + + +#if (NTDDI_VERSION >= NTDDI_WINXP) + +// custom combobox control messages +#define CB_SETMINVISIBLE (CBM_FIRST + 1) +#define CB_GETMINVISIBLE (CBM_FIRST + 2) +#define CB_SETCUEBANNER (CBM_FIRST + 3) +#define CB_GETCUEBANNER (CBM_FIRST + 4) + +#define ComboBox_SetMinVisible(hwnd, iMinVisible) \ + (BOOL)SNDMSG((hwnd), CB_SETMINVISIBLE, (WPARAM)(iMinVisible), 0) + +#define ComboBox_GetMinVisible(hwnd) \ + (int)SNDMSG((hwnd), CB_GETMINVISIBLE, 0, 0) + +#define ComboBox_SetCueBannerText(hwnd, lpcwText) \ + (BOOL)SNDMSG((hwnd), CB_SETCUEBANNER, 0, (LPARAM)(lpcwText)) + +#define ComboBox_GetCueBannerText(hwnd, lpwText, cchText) \ + (BOOL)SNDMSG((hwnd), CB_GETCUEBANNER, (WPARAM)(lpwText), (LPARAM)(cchText)) + +#endif + +// ===================== End Combobox Control ========================= + +// ====================== Scrollbar Control ============================ + +#ifndef NOSCROLLBAR + +#ifdef _WIN32 + +// Scrollbar Class Name +#define WC_SCROLLBARA "ScrollBar" +#define WC_SCROLLBARW L"ScrollBar" + +#ifdef UNICODE +#define WC_SCROLLBAR WC_SCROLLBARW +#else +#define WC_SCROLLBAR WC_SCROLLBARA +#endif + +#else +#define WC_SCROLLBAR "ScrollBar" +#endif + +#endif // NOSCROLLBAR + + +// ===================== End Scrollbar Control ========================= + +// ===================== Task Dialog ========================= +#ifndef NOTASKDIALOG +// Task Dialog is only available starting Windows Vista +#if (NTDDI_VERSION >= NTDDI_VISTA) + +#ifdef _WIN32 +#include +#endif + +typedef HRESULT (CALLBACK *PFTASKDIALOGCALLBACK)(_In_ HWND hwnd, _In_ UINT msg, _In_ WPARAM wParam, _In_ LPARAM lParam, _In_ LONG_PTR lpRefData); + +enum _TASKDIALOG_FLAGS +{ + TDF_ENABLE_HYPERLINKS = 0x0001, + TDF_USE_HICON_MAIN = 0x0002, + TDF_USE_HICON_FOOTER = 0x0004, + TDF_ALLOW_DIALOG_CANCELLATION = 0x0008, + TDF_USE_COMMAND_LINKS = 0x0010, + TDF_USE_COMMAND_LINKS_NO_ICON = 0x0020, + TDF_EXPAND_FOOTER_AREA = 0x0040, + TDF_EXPANDED_BY_DEFAULT = 0x0080, + TDF_VERIFICATION_FLAG_CHECKED = 0x0100, + TDF_SHOW_PROGRESS_BAR = 0x0200, + TDF_SHOW_MARQUEE_PROGRESS_BAR = 0x0400, + TDF_CALLBACK_TIMER = 0x0800, + TDF_POSITION_RELATIVE_TO_WINDOW = 0x1000, + TDF_RTL_LAYOUT = 0x2000, + TDF_NO_DEFAULT_RADIO_BUTTON = 0x4000, + TDF_CAN_BE_MINIMIZED = 0x8000, +#if (NTDDI_VERSION >= NTDDI_WIN8) + TDF_NO_SET_FOREGROUND = 0x00010000, // Don't call SetForegroundWindow() when activating the dialog +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + TDF_SIZE_TO_CONTENT = 0x01000000 // used by ShellMessageBox to emulate MessageBox sizing behavior +}; +typedef int TASKDIALOG_FLAGS; // Note: _TASKDIALOG_FLAGS is an int + +typedef enum _TASKDIALOG_MESSAGES +{ + TDM_NAVIGATE_PAGE = WM_USER+101, + TDM_CLICK_BUTTON = WM_USER+102, // wParam = Button ID + TDM_SET_MARQUEE_PROGRESS_BAR = WM_USER+103, // wParam = 0 (nonMarque) wParam != 0 (Marquee) + TDM_SET_PROGRESS_BAR_STATE = WM_USER+104, // wParam = new progress state + TDM_SET_PROGRESS_BAR_RANGE = WM_USER+105, // lParam = MAKELPARAM(nMinRange, nMaxRange) + TDM_SET_PROGRESS_BAR_POS = WM_USER+106, // wParam = new position + TDM_SET_PROGRESS_BAR_MARQUEE = WM_USER+107, // wParam = 0 (stop marquee), wParam != 0 (start marquee), lparam = speed (milliseconds between repaints) + TDM_SET_ELEMENT_TEXT = WM_USER+108, // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR) + TDM_CLICK_RADIO_BUTTON = WM_USER+110, // wParam = Radio Button ID + TDM_ENABLE_BUTTON = WM_USER+111, // lParam = 0 (disable), lParam != 0 (enable), wParam = Button ID + TDM_ENABLE_RADIO_BUTTON = WM_USER+112, // lParam = 0 (disable), lParam != 0 (enable), wParam = Radio Button ID + TDM_CLICK_VERIFICATION = WM_USER+113, // wParam = 0 (unchecked), 1 (checked), lParam = 1 (set key focus) + TDM_UPDATE_ELEMENT_TEXT = WM_USER+114, // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR) + TDM_SET_BUTTON_ELEVATION_REQUIRED_STATE = WM_USER+115, // wParam = Button ID, lParam = 0 (elevation not required), lParam != 0 (elevation required) + TDM_UPDATE_ICON = WM_USER+116 // wParam = icon element (TASKDIALOG_ICON_ELEMENTS), lParam = new icon (hIcon if TDF_USE_HICON_* was set, PCWSTR otherwise) +} TASKDIALOG_MESSAGES; + +typedef enum _TASKDIALOG_NOTIFICATIONS +{ + TDN_CREATED = 0, + TDN_NAVIGATED = 1, + TDN_BUTTON_CLICKED = 2, // wParam = Button ID + TDN_HYPERLINK_CLICKED = 3, // lParam = (LPCWSTR)pszHREF + TDN_TIMER = 4, // wParam = Milliseconds since dialog created or timer reset + TDN_DESTROYED = 5, + TDN_RADIO_BUTTON_CLICKED = 6, // wParam = Radio Button ID + TDN_DIALOG_CONSTRUCTED = 7, + TDN_VERIFICATION_CLICKED = 8, // wParam = 1 if checkbox checked, 0 if not, lParam is unused and always 0 + TDN_HELP = 9, + TDN_EXPANDO_BUTTON_CLICKED = 10 // wParam = 0 (dialog is now collapsed), wParam != 0 (dialog is now expanded) +} TASKDIALOG_NOTIFICATIONS; + +typedef struct _TASKDIALOG_BUTTON +{ + int nButtonID; + PCWSTR pszButtonText; +} TASKDIALOG_BUTTON; + +typedef enum _TASKDIALOG_ELEMENTS +{ + TDE_CONTENT, + TDE_EXPANDED_INFORMATION, + TDE_FOOTER, + TDE_MAIN_INSTRUCTION +} TASKDIALOG_ELEMENTS; + +typedef enum _TASKDIALOG_ICON_ELEMENTS +{ + TDIE_ICON_MAIN, + TDIE_ICON_FOOTER +} TASKDIALOG_ICON_ELEMENTS; + +#define TD_WARNING_ICON MAKEINTRESOURCEW(-1) +#define TD_ERROR_ICON MAKEINTRESOURCEW(-2) +#define TD_INFORMATION_ICON MAKEINTRESOURCEW(-3) +#define TD_SHIELD_ICON MAKEINTRESOURCEW(-4) + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + + +#if (NTDDI_VERSION >= NTDDI_VISTA) +enum _TASKDIALOG_COMMON_BUTTON_FLAGS +{ + TDCBF_OK_BUTTON = 0x0001, // selected control return value IDOK + TDCBF_YES_BUTTON = 0x0002, // selected control return value IDYES + TDCBF_NO_BUTTON = 0x0004, // selected control return value IDNO + TDCBF_CANCEL_BUTTON = 0x0008, // selected control return value IDCANCEL + TDCBF_RETRY_BUTTON = 0x0010, // selected control return value IDRETRY + TDCBF_CLOSE_BUTTON = 0x0020 // selected control return value IDCLOSE +}; +typedef int TASKDIALOG_COMMON_BUTTON_FLAGS; // Note: _TASKDIALOG_COMMON_BUTTON_FLAGS is an int + +typedef struct _TASKDIALOGCONFIG +{ + UINT cbSize; + HWND hwndParent; // incorrectly named, this is the owner window, not a parent. + HINSTANCE hInstance; // used for MAKEINTRESOURCE() strings + TASKDIALOG_FLAGS dwFlags; // TASKDIALOG_FLAGS (TDF_XXX) flags + TASKDIALOG_COMMON_BUTTON_FLAGS dwCommonButtons; // TASKDIALOG_COMMON_BUTTON (TDCBF_XXX) flags + PCWSTR pszWindowTitle; // string or MAKEINTRESOURCE() + union + { + HICON hMainIcon; + PCWSTR pszMainIcon; + } DUMMYUNIONNAME; + PCWSTR pszMainInstruction; + PCWSTR pszContent; + UINT cButtons; + const TASKDIALOG_BUTTON *pButtons; + int nDefaultButton; + UINT cRadioButtons; + const TASKDIALOG_BUTTON *pRadioButtons; + int nDefaultRadioButton; + PCWSTR pszVerificationText; + PCWSTR pszExpandedInformation; + PCWSTR pszExpandedControlText; + PCWSTR pszCollapsedControlText; + union + { + HICON hFooterIcon; + PCWSTR pszFooterIcon; + } DUMMYUNIONNAME2; + PCWSTR pszFooter; + PFTASKDIALOGCALLBACK pfCallback; + LONG_PTR lpCallbackData; + UINT cxWidth; // width of the Task Dialog's client area in DLU's. If 0, Task Dialog will calculate the ideal width. +} TASKDIALOGCONFIG; + + +WINCOMMCTRLAPI HRESULT WINAPI TaskDialogIndirect(_In_ const TASKDIALOGCONFIG *pTaskConfig, _Out_opt_ int *pnButton, _Out_opt_ int *pnRadioButton, _Out_opt_ BOOL *pfVerificationFlagChecked); +WINCOMMCTRLAPI HRESULT WINAPI TaskDialog(_In_opt_ HWND hwndOwner, _In_opt_ HINSTANCE hInstance, _In_opt_ PCWSTR pszWindowTitle, _In_opt_ PCWSTR pszMainInstruction, _In_opt_ PCWSTR pszContent, TASKDIALOG_COMMON_BUTTON_FLAGS dwCommonButtons, _In_opt_ PCWSTR pszIcon, _Out_opt_ int *pnButton); + + +#ifdef _WIN32 +#include +#endif + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) +#endif // NOTASKDIALOG + + +// ==================== End TaskDialog ======================= + + +// +// === MUI APIs === +// +#ifndef NOMUI +void WINAPI InitMUILanguage(LANGID uiLang); + + +LANGID WINAPI GetMUILanguage(void); +#endif // NOMUI + +#include + +#ifdef _WIN32 +//====== TrackMouseEvent ===================================================== + +#ifndef NOTRACKMOUSEEVENT + +// +// If the messages for TrackMouseEvent have not been defined then define them +// now. +// +#ifndef WM_MOUSEHOVER +#define WM_MOUSEHOVER 0x02A1 +#define WM_MOUSELEAVE 0x02A3 +#endif + +// +// If the TRACKMOUSEEVENT structure and associated flags havent been declared +// then declare them now. +// +#ifndef TME_HOVER + +#define TME_HOVER 0x00000001 +#define TME_LEAVE 0x00000002 +#if (WINVER >= 0x0500) +#define TME_NONCLIENT 0x00000010 +#endif /* WINVER >= 0x0500 */ +#define TME_QUERY 0x40000000 +#define TME_CANCEL 0x80000000 + + + +#define HOVER_DEFAULT 0xFFFFFFFF + +typedef struct tagTRACKMOUSEEVENT { + DWORD cbSize; + DWORD dwFlags; + HWND hwndTrack; + DWORD dwHoverTime; +} TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT; + +#endif // !TME_HOVER + + +// +// Declare _TrackMouseEvent. This API tries to use the window manager's +// implementation of TrackMouseEvent if it is present, otherwise it emulates. +// +WINCOMMCTRLAPI +BOOL +WINAPI +_TrackMouseEvent( + _Inout_ LPTRACKMOUSEEVENT lpEventTrack); + +#endif // !NOTRACKMOUSEEVENT + +//====== Flat Scrollbar APIs========================================= +#ifndef NOFLATSBAPIS + +#define WSB_PROP_CYVSCROLL 0x00000001L +#define WSB_PROP_CXHSCROLL 0x00000002L +#define WSB_PROP_CYHSCROLL 0x00000004L +#define WSB_PROP_CXVSCROLL 0x00000008L +#define WSB_PROP_CXHTHUMB 0x00000010L +#define WSB_PROP_CYVTHUMB 0x00000020L +#define WSB_PROP_VBKGCOLOR 0x00000040L +#define WSB_PROP_HBKGCOLOR 0x00000080L +#define WSB_PROP_VSTYLE 0x00000100L +#define WSB_PROP_HSTYLE 0x00000200L +#define WSB_PROP_WINSTYLE 0x00000400L +#define WSB_PROP_PALETTE 0x00000800L +#define WSB_PROP_MASK 0x00000FFFL + +#define FSB_FLAT_MODE 2 +#define FSB_ENCARTA_MODE 1 +#define FSB_REGULAR_MODE 0 + +WINCOMMCTRLAPI BOOL WINAPI FlatSB_EnableScrollBar(HWND, int, UINT); +WINCOMMCTRLAPI BOOL WINAPI FlatSB_ShowScrollBar(HWND, int code, BOOL); + +WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollRange(HWND, int code, LPINT, LPINT); +WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollInfo(HWND, int code, LPSCROLLINFO); + +WINCOMMCTRLAPI int WINAPI FlatSB_GetScrollPos(HWND, int code); + + +WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollProp(HWND, int propIndex, LPINT); +#ifdef _WIN64 +WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollPropPtr(HWND, int propIndex, PINT_PTR); +#else +#define FlatSB_GetScrollPropPtr FlatSB_GetScrollProp +#endif + + +WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollPos(HWND, int code, int pos, BOOL fRedraw); + +WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollInfo(HWND, int code, LPSCROLLINFO psi, BOOL fRedraw); + + +WINCOMMCTRLAPI int WINAPI FlatSB_SetScrollRange(HWND, int code, int min, int max, BOOL fRedraw); +WINCOMMCTRLAPI BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT index, INT_PTR newValue, BOOL); +#define FlatSB_SetScrollPropPtr FlatSB_SetScrollProp + +WINCOMMCTRLAPI BOOL WINAPI InitializeFlatSB(HWND); +WINCOMMCTRLAPI HRESULT WINAPI UninitializeFlatSB(HWND); + +#endif // NOFLATSBAPIS + + +#endif /* _WIN32 */ + + +#if (NTDDI_VERSION >= NTDDI_WINXP) +// +// subclassing stuff +// +typedef LRESULT (CALLBACK *SUBCLASSPROC)(HWND hWnd, UINT uMsg, WPARAM wParam, + LPARAM lParam, UINT_PTR uIdSubclass, DWORD_PTR dwRefData); + + +_Success_(return) BOOL WINAPI SetWindowSubclass(_In_ HWND hWnd, _In_ SUBCLASSPROC pfnSubclass, _In_ UINT_PTR uIdSubclass, + _In_ DWORD_PTR dwRefData); +_Success_(return) BOOL WINAPI GetWindowSubclass(_In_ HWND hWnd, _In_ SUBCLASSPROC pfnSubclass, _In_ UINT_PTR uIdSubclass, + _Out_opt_ DWORD_PTR *pdwRefData); +_Success_(return) BOOL WINAPI RemoveWindowSubclass(_In_ HWND hWnd, _In_ SUBCLASSPROC pfnSubclass, + _In_ UINT_PTR uIdSubclass); + +LRESULT WINAPI DefSubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +enum _LI_METRIC +{ + LIM_SMALL, // corresponds to SM_CXSMICON/SM_CYSMICON + LIM_LARGE, // corresponds to SM_CXICON/SM_CYICON +}; + +WINCOMMCTRLAPI HRESULT WINAPI LoadIconMetric(HINSTANCE hinst, PCWSTR pszName, int lims, _Out_ HICON *phico); +WINCOMMCTRLAPI HRESULT WINAPI LoadIconWithScaleDown(HINSTANCE hinst, PCWSTR pszName, int cx, int cy, _Out_ HICON *phico); + +#endif // NTDDI_VISTA + +#if (NTDDI_VERSION >= NTDDI_WINXP) + +int WINAPI DrawShadowText(_In_ HDC hdc, _In_reads_(cch) LPCWSTR pszText, _In_ UINT cch, _In_ RECT* prc, _In_ DWORD dwFlags, _In_ COLORREF crText, _In_ COLORREF crShadow, + _In_ int ixOffset, _In_ int iyOffset); +#endif + + + + +#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */ +#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0) +#include "commctrl.inl" +#endif /* ISOLATION_AWARE_ENABLED */ +#endif /* RC */ + +#ifdef __cplusplus +} +#endif + +#endif + + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _INC_COMMCTRL */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CompPkgSup.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CompPkgSup.h new file mode 100644 index 0000000000000000000000000000000000000000..823353c6e4fe614c71b4896dd86ca725d81a307f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CompPkgSup.h @@ -0,0 +1,73 @@ +//*@@@+++@@@@****************************************************************** +// +// ComponentPackageSupport +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//*@@@---@@@@****************************************************************** +// + +// +// CompPkgSup.h is the header containing the realtime work queue APIs +// exported by CompPkgSup.dll +// + +#if (_MSC_VER > 1020) +#pragma once +#endif + +#if !defined(__COMPPKGSUP_H__) +#define __COMPPKGSUP_H__ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include +#include +#include + +///////////////////////////////////////////////////////////////////////////////////////// + +#if !defined(MIDL_NS_PREFIX) && !defined(____x_ABI_CWindows_CFoundation_CIClosable_FWD_DEFINED__) +#pragma push_macro("ABI") +#undef ABI +#define ABI +#endif + +STDAPI InstantiateComponentFromPackage(_In_ HSTRING classId, _In_ HSTRING packageFullName, _COM_Outptr_ IInspectable** instance); +STDAPI RegisterServerForPMP(_In_ HSTRING serverClassId, _In_ IClassFactory *classFactory, _Out_ LPVOID *token); +STDAPI UnregisterServerForPMP(_In_ LPVOID token); +STDAPI GetServerForPMP(_In_ HSTRING serverClassId, _COM_Outptr_ IUnknown **unknown); + +STDAPI AreDvdCodecsEnabled(); +STDAPI RequireNetworkDuringMediaTaskCompletion(_In_ BOOL requireNetwork, _Out_opt_ DWORD* requireCount); +STDAPI_(DWORD) GetNetworkRequestCount(); +STDAPI GetMediaExtensionCommunicationFactory(_Outptr_ LPVOID* factory); +STDAPI_(BOOL) IsMediaBehaviorEnabled(_In_ GUID mediaBehavior); +STDAPI GetMediaComponentPackageInfo( _In_ bool trustedOnly, _In_ HSTRING category, + _COM_Outptr_ ABI::Windows::Foundation::Collections::IVector **codecPropertiesVector); +#if (NTDDI_VERSION >= NTDDI_WIN11_GA) +STDAPI GetSystemNativeProcessorSignature(_Out_ DWORD* processorSignature); +#endif // NTDDI_VERSION >= NTDDI_WIN11_GA + +#if (NTDDI_VERSION >= NTDDI_WIN11_GE) +STDAPI GetDefaultContentDecryptionModuleFactory(_In_ PCWSTR keySystem, _Outptr_result_maybenull_ IMFContentDecryptionModuleFactory** contentDecryptionModuleFactory); +STDAPI RegisterMediaExtensionPackage(_In_ PCWSTR packageFamilyName); +#endif // NTDDI_VERSION >= NTDDI_WIN11_GE + +// +// MF behavior GUIDs +// + +// MEDIA_BEHAVIOR_MEDIAPLAYBACKLIST_AUTOPLAYBACKITEMRESET {45B17027-E16C-4F23-A62B-B37146B2C964} +EXTERN_GUID(MEDIA_BEHAVIOR_MEDIAPLAYBACKLIST_AUTOPLAYBACKITEMRESET, + 0x45b17027, 0xe16c, 0x4f23, 0xa6, 0x2b, 0xb3, 0x71, 0x46, 0xb2, 0xc9, 0x64); + +#if !defined(MIDL_NS_PREFIX) && !defined(____x_ABI_CWindows_CFoundation_CIClosable_FWD_DEFINED__) +#pragma pop_macro("ABI") +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //#if !defined(__COMPPKGSUP_H__) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ContactAggregation.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ContactAggregation.h new file mode 100644 index 0000000000000000000000000000000000000000..0786f343b62fc417727f1abffe317ec4ca1dded1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ContactAggregation.h @@ -0,0 +1,2394 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __contactaggregation_h__ +#define __contactaggregation_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IContactAggregationManager_FWD_DEFINED__ +#define __IContactAggregationManager_FWD_DEFINED__ +typedef interface IContactAggregationManager IContactAggregationManager; + +#endif /* __IContactAggregationManager_FWD_DEFINED__ */ + + +#ifndef __IContactAggregationContact_FWD_DEFINED__ +#define __IContactAggregationContact_FWD_DEFINED__ +typedef interface IContactAggregationContact IContactAggregationContact; + +#endif /* __IContactAggregationContact_FWD_DEFINED__ */ + + +#ifndef __IContactAggregationContactCollection_FWD_DEFINED__ +#define __IContactAggregationContactCollection_FWD_DEFINED__ +typedef interface IContactAggregationContactCollection IContactAggregationContactCollection; + +#endif /* __IContactAggregationContactCollection_FWD_DEFINED__ */ + + +#ifndef __IContactAggregationAggregate_FWD_DEFINED__ +#define __IContactAggregationAggregate_FWD_DEFINED__ +typedef interface IContactAggregationAggregate IContactAggregationAggregate; + +#endif /* __IContactAggregationAggregate_FWD_DEFINED__ */ + + +#ifndef __IContactAggregationAggregateCollection_FWD_DEFINED__ +#define __IContactAggregationAggregateCollection_FWD_DEFINED__ +typedef interface IContactAggregationAggregateCollection IContactAggregationAggregateCollection; + +#endif /* __IContactAggregationAggregateCollection_FWD_DEFINED__ */ + + +#ifndef __IContactAggregationGroup_FWD_DEFINED__ +#define __IContactAggregationGroup_FWD_DEFINED__ +typedef interface IContactAggregationGroup IContactAggregationGroup; + +#endif /* __IContactAggregationGroup_FWD_DEFINED__ */ + + +#ifndef __IContactAggregationGroupCollection_FWD_DEFINED__ +#define __IContactAggregationGroupCollection_FWD_DEFINED__ +typedef interface IContactAggregationGroupCollection IContactAggregationGroupCollection; + +#endif /* __IContactAggregationGroupCollection_FWD_DEFINED__ */ + + +#ifndef __IContactAggregationLink_FWD_DEFINED__ +#define __IContactAggregationLink_FWD_DEFINED__ +typedef interface IContactAggregationLink IContactAggregationLink; + +#endif /* __IContactAggregationLink_FWD_DEFINED__ */ + + +#ifndef __IContactAggregationLinkCollection_FWD_DEFINED__ +#define __IContactAggregationLinkCollection_FWD_DEFINED__ +typedef interface IContactAggregationLinkCollection IContactAggregationLinkCollection; + +#endif /* __IContactAggregationLinkCollection_FWD_DEFINED__ */ + + +#ifndef __IContactAggregationServerPerson_FWD_DEFINED__ +#define __IContactAggregationServerPerson_FWD_DEFINED__ +typedef interface IContactAggregationServerPerson IContactAggregationServerPerson; + +#endif /* __IContactAggregationServerPerson_FWD_DEFINED__ */ + + +#ifndef __IContactAggregationServerPersonCollection_FWD_DEFINED__ +#define __IContactAggregationServerPersonCollection_FWD_DEFINED__ +typedef interface IContactAggregationServerPersonCollection IContactAggregationServerPersonCollection; + +#endif /* __IContactAggregationServerPersonCollection_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_contactaggregation_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if NTDDI_VERSION >= NTDDI_WIN10_RS1 + + + + + + + + + + + +typedef /* [v1_enum] */ +enum CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS + { + CA_CREATE_LOCAL = 0, + CA_CREATE_EXTERNAL = 1 + } CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS; + +typedef /* [v1_enum] */ +enum CONTACT_AGGREGATION_COLLECTION_OPTIONS + { + CACO_DEFAULT = 0, + CACO_INCLUDE_EXTERNAL = 1, + CACO_EXTERNAL_ONLY = 2 + } CONTACT_AGGREGATION_COLLECTION_OPTIONS; + +typedef struct _CONTACT_AGGREGATION_BLOB + { + DWORD dwCount; + /* [size_is] */ BYTE *lpb; + } CONTACT_AGGREGATION_BLOB; + +typedef struct _CONTACT_AGGREGATION_BLOB *PCONTACT_AGGREGATION_BLOB; + +DEFINE_GUID(CLSID_ContactAggregationManager, 0x96c8ad95, 0xc199, 0x44de, 0xb3, 0x4e, 0xac, 0x33, 0xc4, 0x42, 0xdf, 0x39); +#pragma deprecated(IContactAggregationManager) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0000_v0_0_s_ifspec; + +#ifndef __IContactAggregationManager_INTERFACE_DEFINED__ +#define __IContactAggregationManager_INTERFACE_DEFINED__ + +/* interface IContactAggregationManager */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1D865989-4B1F-4B60-8F34-C2AD468B2B50") + IContactAggregationManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetVersionInfo( + /* [out] */ __RPC__out long *plMajorVersion, + /* [out] */ __RPC__out long *plMinorVersion) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateOrOpenGroup( + /* [in] */ __RPC__in LPCWSTR pGroupName, + /* [in] */ CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS options, + /* [out] */ __RPC__out BOOL *pCreatedGroup, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationGroup **ppGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateExternalContact( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateServerPerson( + /* [out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateServerContactLink( + /* [out] */ __RPC__deref_out_opt IContactAggregationLink **ppServerContactLink) = 0; + + virtual HRESULT STDMETHODCALLTYPE Flush( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenAggregateContact( + /* [in] */ __RPC__in LPCWSTR pItemId, + /* [out] */ __RPC__deref_out_opt IContactAggregationAggregate **ppItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenContact( + /* [in] */ __RPC__in LPCWSTR pItemId, + /* [out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenServerContactLink( + /* [in] */ __RPC__in LPCWSTR pItemId, + /* [out] */ __RPC__deref_out_opt IContactAggregationLink **ppItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenServerPerson( + /* [in] */ __RPC__in LPCWSTR pItemId, + /* [out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppItem) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Contacts( + /* [in] */ CONTACT_AGGREGATION_COLLECTION_OPTIONS options, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContactCollection **ppItems) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AggregateContacts( + /* [in] */ CONTACT_AGGREGATION_COLLECTION_OPTIONS options, + /* [out] */ __RPC__deref_out_opt IContactAggregationAggregateCollection **ppAggregates) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Groups( + /* [in] */ CONTACT_AGGREGATION_COLLECTION_OPTIONS options, + /* [out] */ __RPC__deref_out_opt IContactAggregationGroupCollection **ppGroups) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ServerPersons( + /* [out] */ __RPC__deref_out_opt IContactAggregationServerPersonCollection **ppServerPersonCollection) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ServerContactLinks( + /* [in] */ __RPC__in LPCWSTR pPersonItemId, + /* [out] */ __RPC__deref_out_opt IContactAggregationLinkCollection **ppServerContactLinkCollection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationManager * This); + + DECLSPEC_XFGVIRT(IContactAggregationManager, GetVersionInfo) + HRESULT ( STDMETHODCALLTYPE *GetVersionInfo )( + __RPC__in IContactAggregationManager * This, + /* [out] */ __RPC__out long *plMajorVersion, + /* [out] */ __RPC__out long *plMinorVersion); + + DECLSPEC_XFGVIRT(IContactAggregationManager, CreateOrOpenGroup) + HRESULT ( STDMETHODCALLTYPE *CreateOrOpenGroup )( + __RPC__in IContactAggregationManager * This, + /* [in] */ __RPC__in LPCWSTR pGroupName, + /* [in] */ CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS options, + /* [out] */ __RPC__out BOOL *pCreatedGroup, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IContactAggregationManager, CreateExternalContact) + HRESULT ( STDMETHODCALLTYPE *CreateExternalContact )( + __RPC__in IContactAggregationManager * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem); + + DECLSPEC_XFGVIRT(IContactAggregationManager, CreateServerPerson) + HRESULT ( STDMETHODCALLTYPE *CreateServerPerson )( + __RPC__in IContactAggregationManager * This, + /* [out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson); + + DECLSPEC_XFGVIRT(IContactAggregationManager, CreateServerContactLink) + HRESULT ( STDMETHODCALLTYPE *CreateServerContactLink )( + __RPC__in IContactAggregationManager * This, + /* [out] */ __RPC__deref_out_opt IContactAggregationLink **ppServerContactLink); + + DECLSPEC_XFGVIRT(IContactAggregationManager, Flush) + HRESULT ( STDMETHODCALLTYPE *Flush )( + __RPC__in IContactAggregationManager * This); + + DECLSPEC_XFGVIRT(IContactAggregationManager, OpenAggregateContact) + HRESULT ( STDMETHODCALLTYPE *OpenAggregateContact )( + __RPC__in IContactAggregationManager * This, + /* [in] */ __RPC__in LPCWSTR pItemId, + /* [out] */ __RPC__deref_out_opt IContactAggregationAggregate **ppItem); + + DECLSPEC_XFGVIRT(IContactAggregationManager, OpenContact) + HRESULT ( STDMETHODCALLTYPE *OpenContact )( + __RPC__in IContactAggregationManager * This, + /* [in] */ __RPC__in LPCWSTR pItemId, + /* [out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem); + + DECLSPEC_XFGVIRT(IContactAggregationManager, OpenServerContactLink) + HRESULT ( STDMETHODCALLTYPE *OpenServerContactLink )( + __RPC__in IContactAggregationManager * This, + /* [in] */ __RPC__in LPCWSTR pItemId, + /* [out] */ __RPC__deref_out_opt IContactAggregationLink **ppItem); + + DECLSPEC_XFGVIRT(IContactAggregationManager, OpenServerPerson) + HRESULT ( STDMETHODCALLTYPE *OpenServerPerson )( + __RPC__in IContactAggregationManager * This, + /* [in] */ __RPC__in LPCWSTR pItemId, + /* [out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppItem); + + DECLSPEC_XFGVIRT(IContactAggregationManager, get_Contacts) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Contacts )( + __RPC__in IContactAggregationManager * This, + /* [in] */ CONTACT_AGGREGATION_COLLECTION_OPTIONS options, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContactCollection **ppItems); + + DECLSPEC_XFGVIRT(IContactAggregationManager, get_AggregateContacts) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AggregateContacts )( + __RPC__in IContactAggregationManager * This, + /* [in] */ CONTACT_AGGREGATION_COLLECTION_OPTIONS options, + /* [out] */ __RPC__deref_out_opt IContactAggregationAggregateCollection **ppAggregates); + + DECLSPEC_XFGVIRT(IContactAggregationManager, get_Groups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Groups )( + __RPC__in IContactAggregationManager * This, + /* [in] */ CONTACT_AGGREGATION_COLLECTION_OPTIONS options, + /* [out] */ __RPC__deref_out_opt IContactAggregationGroupCollection **ppGroups); + + DECLSPEC_XFGVIRT(IContactAggregationManager, get_ServerPersons) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerPersons )( + __RPC__in IContactAggregationManager * This, + /* [out] */ __RPC__deref_out_opt IContactAggregationServerPersonCollection **ppServerPersonCollection); + + DECLSPEC_XFGVIRT(IContactAggregationManager, get_ServerContactLinks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerContactLinks )( + __RPC__in IContactAggregationManager * This, + /* [in] */ __RPC__in LPCWSTR pPersonItemId, + /* [out] */ __RPC__deref_out_opt IContactAggregationLinkCollection **ppServerContactLinkCollection); + + END_INTERFACE + } IContactAggregationManagerVtbl; + + interface IContactAggregationManager + { + CONST_VTBL struct IContactAggregationManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationManager_GetVersionInfo(This,plMajorVersion,plMinorVersion) \ + ( (This)->lpVtbl -> GetVersionInfo(This,plMajorVersion,plMinorVersion) ) + +#define IContactAggregationManager_CreateOrOpenGroup(This,pGroupName,options,pCreatedGroup,ppGroup) \ + ( (This)->lpVtbl -> CreateOrOpenGroup(This,pGroupName,options,pCreatedGroup,ppGroup) ) + +#define IContactAggregationManager_CreateExternalContact(This,ppItem) \ + ( (This)->lpVtbl -> CreateExternalContact(This,ppItem) ) + +#define IContactAggregationManager_CreateServerPerson(This,ppServerPerson) \ + ( (This)->lpVtbl -> CreateServerPerson(This,ppServerPerson) ) + +#define IContactAggregationManager_CreateServerContactLink(This,ppServerContactLink) \ + ( (This)->lpVtbl -> CreateServerContactLink(This,ppServerContactLink) ) + +#define IContactAggregationManager_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + +#define IContactAggregationManager_OpenAggregateContact(This,pItemId,ppItem) \ + ( (This)->lpVtbl -> OpenAggregateContact(This,pItemId,ppItem) ) + +#define IContactAggregationManager_OpenContact(This,pItemId,ppItem) \ + ( (This)->lpVtbl -> OpenContact(This,pItemId,ppItem) ) + +#define IContactAggregationManager_OpenServerContactLink(This,pItemId,ppItem) \ + ( (This)->lpVtbl -> OpenServerContactLink(This,pItemId,ppItem) ) + +#define IContactAggregationManager_OpenServerPerson(This,pItemId,ppItem) \ + ( (This)->lpVtbl -> OpenServerPerson(This,pItemId,ppItem) ) + +#define IContactAggregationManager_get_Contacts(This,options,ppItems) \ + ( (This)->lpVtbl -> get_Contacts(This,options,ppItems) ) + +#define IContactAggregationManager_get_AggregateContacts(This,options,ppAggregates) \ + ( (This)->lpVtbl -> get_AggregateContacts(This,options,ppAggregates) ) + +#define IContactAggregationManager_get_Groups(This,options,ppGroups) \ + ( (This)->lpVtbl -> get_Groups(This,options,ppGroups) ) + +#define IContactAggregationManager_get_ServerPersons(This,ppServerPersonCollection) \ + ( (This)->lpVtbl -> get_ServerPersons(This,ppServerPersonCollection) ) + +#define IContactAggregationManager_get_ServerContactLinks(This,pPersonItemId,ppServerContactLinkCollection) \ + ( (This)->lpVtbl -> get_ServerContactLinks(This,pPersonItemId,ppServerContactLinkCollection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationManager_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0001 */ +/* [local] */ + +#pragma deprecated(IContactAggregationContact) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0001_v0_0_s_ifspec; + +#ifndef __IContactAggregationContact_INTERFACE_DEFINED__ +#define __IContactAggregationContact_INTERFACE_DEFINED__ + +/* interface IContactAggregationContact */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationContact; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1EB22E86-4C86-41F0-9F9F-C251E9FDA6C3") + IContactAggregationContact : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE MoveToAggregate( + /* [in] */ __RPC__in LPCWSTR pAggregateId) = 0; + + virtual HRESULT STDMETHODCALLTYPE Unlink( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AccountId( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAccountId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AccountId( + /* [in] */ __RPC__in LPCWSTR pAccountId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AggregateId( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppAggregateId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppItemId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsMe( + /* [retval][out] */ __RPC__out BOOL *pIsMe) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsExternal( + /* [retval][out] */ __RPC__out BOOL *pIsExternal) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NetworkSourceId( + /* [retval][out] */ __RPC__out ULONG *pNetworkSourceId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_NetworkSourceId( + /* [in] */ ULONG networkSourceId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NetworkSourceIdString( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppNetworkSourceId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_NetworkSourceIdString( + /* [in] */ __RPC__in LPCWSTR pNetworkSourceId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RemoteObjectId( + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **ppRemoteObjectId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_RemoteObjectId( + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pRemoteObjectId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SyncIdentityHash( + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **ppSyncIdentityHash) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SyncIdentityHash( + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pSyncIdentityHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationContactVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationContact * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationContact * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationContact * This); + + DECLSPEC_XFGVIRT(IContactAggregationContact, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IContactAggregationContact * This); + + DECLSPEC_XFGVIRT(IContactAggregationContact, Save) + HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IContactAggregationContact * This); + + DECLSPEC_XFGVIRT(IContactAggregationContact, MoveToAggregate) + HRESULT ( STDMETHODCALLTYPE *MoveToAggregate )( + __RPC__in IContactAggregationContact * This, + /* [in] */ __RPC__in LPCWSTR pAggregateId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, Unlink) + HRESULT ( STDMETHODCALLTYPE *Unlink )( + __RPC__in IContactAggregationContact * This); + + DECLSPEC_XFGVIRT(IContactAggregationContact, get_AccountId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AccountId )( + __RPC__in IContactAggregationContact * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAccountId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, put_AccountId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AccountId )( + __RPC__in IContactAggregationContact * This, + /* [in] */ __RPC__in LPCWSTR pAccountId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, get_AggregateId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AggregateId )( + __RPC__in IContactAggregationContact * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppAggregateId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, get_Id) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IContactAggregationContact * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppItemId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, get_IsMe) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsMe )( + __RPC__in IContactAggregationContact * This, + /* [retval][out] */ __RPC__out BOOL *pIsMe); + + DECLSPEC_XFGVIRT(IContactAggregationContact, get_IsExternal) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsExternal )( + __RPC__in IContactAggregationContact * This, + /* [retval][out] */ __RPC__out BOOL *pIsExternal); + + DECLSPEC_XFGVIRT(IContactAggregationContact, get_NetworkSourceId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkSourceId )( + __RPC__in IContactAggregationContact * This, + /* [retval][out] */ __RPC__out ULONG *pNetworkSourceId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, put_NetworkSourceId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkSourceId )( + __RPC__in IContactAggregationContact * This, + /* [in] */ ULONG networkSourceId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, get_NetworkSourceIdString) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkSourceIdString )( + __RPC__in IContactAggregationContact * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppNetworkSourceId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, put_NetworkSourceIdString) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkSourceIdString )( + __RPC__in IContactAggregationContact * This, + /* [in] */ __RPC__in LPCWSTR pNetworkSourceId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, get_RemoteObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemoteObjectId )( + __RPC__in IContactAggregationContact * This, + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **ppRemoteObjectId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, put_RemoteObjectId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RemoteObjectId )( + __RPC__in IContactAggregationContact * This, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pRemoteObjectId); + + DECLSPEC_XFGVIRT(IContactAggregationContact, get_SyncIdentityHash) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SyncIdentityHash )( + __RPC__in IContactAggregationContact * This, + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **ppSyncIdentityHash); + + DECLSPEC_XFGVIRT(IContactAggregationContact, put_SyncIdentityHash) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SyncIdentityHash )( + __RPC__in IContactAggregationContact * This, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pSyncIdentityHash); + + END_INTERFACE + } IContactAggregationContactVtbl; + + interface IContactAggregationContact + { + CONST_VTBL struct IContactAggregationContactVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationContact_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationContact_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationContact_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationContact_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IContactAggregationContact_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IContactAggregationContact_MoveToAggregate(This,pAggregateId) \ + ( (This)->lpVtbl -> MoveToAggregate(This,pAggregateId) ) + +#define IContactAggregationContact_Unlink(This) \ + ( (This)->lpVtbl -> Unlink(This) ) + +#define IContactAggregationContact_get_AccountId(This,ppAccountId) \ + ( (This)->lpVtbl -> get_AccountId(This,ppAccountId) ) + +#define IContactAggregationContact_put_AccountId(This,pAccountId) \ + ( (This)->lpVtbl -> put_AccountId(This,pAccountId) ) + +#define IContactAggregationContact_get_AggregateId(This,ppAggregateId) \ + ( (This)->lpVtbl -> get_AggregateId(This,ppAggregateId) ) + +#define IContactAggregationContact_get_Id(This,ppItemId) \ + ( (This)->lpVtbl -> get_Id(This,ppItemId) ) + +#define IContactAggregationContact_get_IsMe(This,pIsMe) \ + ( (This)->lpVtbl -> get_IsMe(This,pIsMe) ) + +#define IContactAggregationContact_get_IsExternal(This,pIsExternal) \ + ( (This)->lpVtbl -> get_IsExternal(This,pIsExternal) ) + +#define IContactAggregationContact_get_NetworkSourceId(This,pNetworkSourceId) \ + ( (This)->lpVtbl -> get_NetworkSourceId(This,pNetworkSourceId) ) + +#define IContactAggregationContact_put_NetworkSourceId(This,networkSourceId) \ + ( (This)->lpVtbl -> put_NetworkSourceId(This,networkSourceId) ) + +#define IContactAggregationContact_get_NetworkSourceIdString(This,ppNetworkSourceId) \ + ( (This)->lpVtbl -> get_NetworkSourceIdString(This,ppNetworkSourceId) ) + +#define IContactAggregationContact_put_NetworkSourceIdString(This,pNetworkSourceId) \ + ( (This)->lpVtbl -> put_NetworkSourceIdString(This,pNetworkSourceId) ) + +#define IContactAggregationContact_get_RemoteObjectId(This,ppRemoteObjectId) \ + ( (This)->lpVtbl -> get_RemoteObjectId(This,ppRemoteObjectId) ) + +#define IContactAggregationContact_put_RemoteObjectId(This,pRemoteObjectId) \ + ( (This)->lpVtbl -> put_RemoteObjectId(This,pRemoteObjectId) ) + +#define IContactAggregationContact_get_SyncIdentityHash(This,ppSyncIdentityHash) \ + ( (This)->lpVtbl -> get_SyncIdentityHash(This,ppSyncIdentityHash) ) + +#define IContactAggregationContact_put_SyncIdentityHash(This,pSyncIdentityHash) \ + ( (This)->lpVtbl -> put_SyncIdentityHash(This,pSyncIdentityHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationContact_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0002 */ +/* [local] */ + +#pragma deprecated(IContactAggregationContactCollection) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0002_v0_0_s_ifspec; + +#ifndef __IContactAggregationContactCollection_INTERFACE_DEFINED__ +#define __IContactAggregationContactCollection_INTERFACE_DEFINED__ + +/* interface IContactAggregationContactCollection */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationContactCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("826E66FA-81DE-43CA-A6FB-8C785CD996C6") + IContactAggregationContactCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FindFirst( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindNext( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFirstByIdentityHash( + /* [in] */ __RPC__in LPCWSTR pSourceType, + /* [in] */ __RPC__in LPCWSTR pAccountId, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pIdentityHash, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out int *pCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFirstByRemoteId( + /* [in] */ __RPC__in LPCWSTR pSourceType, + /* [in] */ __RPC__in LPCWSTR pAccountId, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pRemoteObjectId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationContactCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationContactCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationContactCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationContactCollection * This); + + DECLSPEC_XFGVIRT(IContactAggregationContactCollection, FindFirst) + HRESULT ( STDMETHODCALLTYPE *FindFirst )( + __RPC__in IContactAggregationContactCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem); + + DECLSPEC_XFGVIRT(IContactAggregationContactCollection, FindNext) + HRESULT ( STDMETHODCALLTYPE *FindNext )( + __RPC__in IContactAggregationContactCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem); + + DECLSPEC_XFGVIRT(IContactAggregationContactCollection, FindFirstByIdentityHash) + HRESULT ( STDMETHODCALLTYPE *FindFirstByIdentityHash )( + __RPC__in IContactAggregationContactCollection * This, + /* [in] */ __RPC__in LPCWSTR pSourceType, + /* [in] */ __RPC__in LPCWSTR pAccountId, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pIdentityHash, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem); + + DECLSPEC_XFGVIRT(IContactAggregationContactCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IContactAggregationContactCollection * This, + /* [retval][out] */ __RPC__out int *pCount); + + DECLSPEC_XFGVIRT(IContactAggregationContactCollection, FindFirstByRemoteId) + HRESULT ( STDMETHODCALLTYPE *FindFirstByRemoteId )( + __RPC__in IContactAggregationContactCollection * This, + /* [in] */ __RPC__in LPCWSTR pSourceType, + /* [in] */ __RPC__in LPCWSTR pAccountId, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pRemoteObjectId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationContact **ppItem); + + END_INTERFACE + } IContactAggregationContactCollectionVtbl; + + interface IContactAggregationContactCollection + { + CONST_VTBL struct IContactAggregationContactCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationContactCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationContactCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationContactCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationContactCollection_FindFirst(This,ppItem) \ + ( (This)->lpVtbl -> FindFirst(This,ppItem) ) + +#define IContactAggregationContactCollection_FindNext(This,ppItem) \ + ( (This)->lpVtbl -> FindNext(This,ppItem) ) + +#define IContactAggregationContactCollection_FindFirstByIdentityHash(This,pSourceType,pAccountId,pIdentityHash,ppItem) \ + ( (This)->lpVtbl -> FindFirstByIdentityHash(This,pSourceType,pAccountId,pIdentityHash,ppItem) ) + +#define IContactAggregationContactCollection_get_Count(This,pCount) \ + ( (This)->lpVtbl -> get_Count(This,pCount) ) + +#define IContactAggregationContactCollection_FindFirstByRemoteId(This,pSourceType,pAccountId,pRemoteObjectId,ppItem) \ + ( (This)->lpVtbl -> FindFirstByRemoteId(This,pSourceType,pAccountId,pRemoteObjectId,ppItem) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationContactCollection_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0003 */ +/* [local] */ + +#pragma deprecated(IContactAggregationAggregate) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0003_v0_0_s_ifspec; + +#ifndef __IContactAggregationAggregate_INTERFACE_DEFINED__ +#define __IContactAggregationAggregate_INTERFACE_DEFINED__ + +/* interface IContactAggregationAggregate */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationAggregate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7ED1C814-CD30-43C8-9B8D-2E489E53D54B") + IContactAggregationAggregate : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentItems( + /* [out] */ __RPC__deref_out_opt IContactAggregationContactCollection **pComponentItems) = 0; + + virtual HRESULT STDMETHODCALLTYPE Link( + /* [in] */ __RPC__in LPCWSTR pAggregateId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Groups( + /* [in] */ CONTACT_AGGREGATION_COLLECTION_OPTIONS options, + /* [out] */ __RPC__deref_out_opt IContactAggregationGroupCollection **ppGroups) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AntiLink( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAntiLink) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AntiLink( + /* [in] */ __RPC__in LPCWSTR pAntiLink) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FavoriteOrder( + /* [retval][out] */ __RPC__out ULONG *pFavoriteOrder) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_FavoriteOrder( + /* [in] */ ULONG favoriteOrder) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppItemId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationAggregateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationAggregate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationAggregate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationAggregate * This); + + DECLSPEC_XFGVIRT(IContactAggregationAggregate, Save) + HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IContactAggregationAggregate * This); + + DECLSPEC_XFGVIRT(IContactAggregationAggregate, GetComponentItems) + HRESULT ( STDMETHODCALLTYPE *GetComponentItems )( + __RPC__in IContactAggregationAggregate * This, + /* [out] */ __RPC__deref_out_opt IContactAggregationContactCollection **pComponentItems); + + DECLSPEC_XFGVIRT(IContactAggregationAggregate, Link) + HRESULT ( STDMETHODCALLTYPE *Link )( + __RPC__in IContactAggregationAggregate * This, + /* [in] */ __RPC__in LPCWSTR pAggregateId); + + DECLSPEC_XFGVIRT(IContactAggregationAggregate, get_Groups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Groups )( + __RPC__in IContactAggregationAggregate * This, + /* [in] */ CONTACT_AGGREGATION_COLLECTION_OPTIONS options, + /* [out] */ __RPC__deref_out_opt IContactAggregationGroupCollection **ppGroups); + + DECLSPEC_XFGVIRT(IContactAggregationAggregate, get_AntiLink) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AntiLink )( + __RPC__in IContactAggregationAggregate * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAntiLink); + + DECLSPEC_XFGVIRT(IContactAggregationAggregate, put_AntiLink) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AntiLink )( + __RPC__in IContactAggregationAggregate * This, + /* [in] */ __RPC__in LPCWSTR pAntiLink); + + DECLSPEC_XFGVIRT(IContactAggregationAggregate, get_FavoriteOrder) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FavoriteOrder )( + __RPC__in IContactAggregationAggregate * This, + /* [retval][out] */ __RPC__out ULONG *pFavoriteOrder); + + DECLSPEC_XFGVIRT(IContactAggregationAggregate, put_FavoriteOrder) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_FavoriteOrder )( + __RPC__in IContactAggregationAggregate * This, + /* [in] */ ULONG favoriteOrder); + + DECLSPEC_XFGVIRT(IContactAggregationAggregate, get_Id) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IContactAggregationAggregate * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppItemId); + + END_INTERFACE + } IContactAggregationAggregateVtbl; + + interface IContactAggregationAggregate + { + CONST_VTBL struct IContactAggregationAggregateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationAggregate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationAggregate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationAggregate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationAggregate_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IContactAggregationAggregate_GetComponentItems(This,pComponentItems) \ + ( (This)->lpVtbl -> GetComponentItems(This,pComponentItems) ) + +#define IContactAggregationAggregate_Link(This,pAggregateId) \ + ( (This)->lpVtbl -> Link(This,pAggregateId) ) + +#define IContactAggregationAggregate_get_Groups(This,options,ppGroups) \ + ( (This)->lpVtbl -> get_Groups(This,options,ppGroups) ) + +#define IContactAggregationAggregate_get_AntiLink(This,ppAntiLink) \ + ( (This)->lpVtbl -> get_AntiLink(This,ppAntiLink) ) + +#define IContactAggregationAggregate_put_AntiLink(This,pAntiLink) \ + ( (This)->lpVtbl -> put_AntiLink(This,pAntiLink) ) + +#define IContactAggregationAggregate_get_FavoriteOrder(This,pFavoriteOrder) \ + ( (This)->lpVtbl -> get_FavoriteOrder(This,pFavoriteOrder) ) + +#define IContactAggregationAggregate_put_FavoriteOrder(This,favoriteOrder) \ + ( (This)->lpVtbl -> put_FavoriteOrder(This,favoriteOrder) ) + +#define IContactAggregationAggregate_get_Id(This,ppItemId) \ + ( (This)->lpVtbl -> get_Id(This,ppItemId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationAggregate_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0004 */ +/* [local] */ + +#pragma deprecated(IContactAggregationAggregateCollection) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0004_v0_0_s_ifspec; + +#ifndef __IContactAggregationAggregateCollection_INTERFACE_DEFINED__ +#define __IContactAggregationAggregateCollection_INTERFACE_DEFINED__ + +/* interface IContactAggregationAggregateCollection */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationAggregateCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2359F3A6-3A68-40AF-98DB-0F9EB143C3BB") + IContactAggregationAggregateCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FindFirst( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationAggregate **ppAggregate) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFirstByAntiLinkId( + /* [in] */ __RPC__in LPCWSTR pAntiLinkId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationAggregate **ppAggregate) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindNext( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationAggregate **ppAggregate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out int *pCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationAggregateCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationAggregateCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationAggregateCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationAggregateCollection * This); + + DECLSPEC_XFGVIRT(IContactAggregationAggregateCollection, FindFirst) + HRESULT ( STDMETHODCALLTYPE *FindFirst )( + __RPC__in IContactAggregationAggregateCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationAggregate **ppAggregate); + + DECLSPEC_XFGVIRT(IContactAggregationAggregateCollection, FindFirstByAntiLinkId) + HRESULT ( STDMETHODCALLTYPE *FindFirstByAntiLinkId )( + __RPC__in IContactAggregationAggregateCollection * This, + /* [in] */ __RPC__in LPCWSTR pAntiLinkId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationAggregate **ppAggregate); + + DECLSPEC_XFGVIRT(IContactAggregationAggregateCollection, FindNext) + HRESULT ( STDMETHODCALLTYPE *FindNext )( + __RPC__in IContactAggregationAggregateCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationAggregate **ppAggregate); + + DECLSPEC_XFGVIRT(IContactAggregationAggregateCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IContactAggregationAggregateCollection * This, + /* [retval][out] */ __RPC__out int *pCount); + + END_INTERFACE + } IContactAggregationAggregateCollectionVtbl; + + interface IContactAggregationAggregateCollection + { + CONST_VTBL struct IContactAggregationAggregateCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationAggregateCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationAggregateCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationAggregateCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationAggregateCollection_FindFirst(This,ppAggregate) \ + ( (This)->lpVtbl -> FindFirst(This,ppAggregate) ) + +#define IContactAggregationAggregateCollection_FindFirstByAntiLinkId(This,pAntiLinkId,ppAggregate) \ + ( (This)->lpVtbl -> FindFirstByAntiLinkId(This,pAntiLinkId,ppAggregate) ) + +#define IContactAggregationAggregateCollection_FindNext(This,ppAggregate) \ + ( (This)->lpVtbl -> FindNext(This,ppAggregate) ) + +#define IContactAggregationAggregateCollection_get_Count(This,pCount) \ + ( (This)->lpVtbl -> get_Count(This,pCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationAggregateCollection_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0005 */ +/* [local] */ + +#pragma deprecated(IContactAggregationGroup) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0005_v0_0_s_ifspec; + +#ifndef __IContactAggregationGroup_INTERFACE_DEFINED__ +#define __IContactAggregationGroup_INTERFACE_DEFINED__ + +/* interface IContactAggregationGroup */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationGroup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C93C545F-1284-499B-96AF-07372AF473E0") + IContactAggregationGroup : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in LPCWSTR pAggregateId) = 0; + + virtual HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ __RPC__in LPCWSTR pAggregateId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Members( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationAggregateCollection **ppAggregateContactCollection) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_GlobalObjectId( + /* [retval][out] */ __RPC__out GUID *pGlobalObjectId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_GlobalObjectId( + /* [in] */ __RPC__in const GUID *pGlobalObjectId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppItemId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppName) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in LPCWSTR pName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationGroupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationGroup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationGroup * This); + + DECLSPEC_XFGVIRT(IContactAggregationGroup, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IContactAggregationGroup * This); + + DECLSPEC_XFGVIRT(IContactAggregationGroup, Save) + HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IContactAggregationGroup * This); + + DECLSPEC_XFGVIRT(IContactAggregationGroup, Add) + HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IContactAggregationGroup * This, + /* [in] */ __RPC__in LPCWSTR pAggregateId); + + DECLSPEC_XFGVIRT(IContactAggregationGroup, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IContactAggregationGroup * This, + /* [in] */ __RPC__in LPCWSTR pAggregateId); + + DECLSPEC_XFGVIRT(IContactAggregationGroup, get_Members) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Members )( + __RPC__in IContactAggregationGroup * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationAggregateCollection **ppAggregateContactCollection); + + DECLSPEC_XFGVIRT(IContactAggregationGroup, get_GlobalObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_GlobalObjectId )( + __RPC__in IContactAggregationGroup * This, + /* [retval][out] */ __RPC__out GUID *pGlobalObjectId); + + DECLSPEC_XFGVIRT(IContactAggregationGroup, put_GlobalObjectId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_GlobalObjectId )( + __RPC__in IContactAggregationGroup * This, + /* [in] */ __RPC__in const GUID *pGlobalObjectId); + + DECLSPEC_XFGVIRT(IContactAggregationGroup, get_Id) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IContactAggregationGroup * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppItemId); + + DECLSPEC_XFGVIRT(IContactAggregationGroup, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IContactAggregationGroup * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppName); + + DECLSPEC_XFGVIRT(IContactAggregationGroup, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IContactAggregationGroup * This, + /* [in] */ __RPC__in LPCWSTR pName); + + END_INTERFACE + } IContactAggregationGroupVtbl; + + interface IContactAggregationGroup + { + CONST_VTBL struct IContactAggregationGroupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationGroup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationGroup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationGroup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationGroup_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IContactAggregationGroup_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IContactAggregationGroup_Add(This,pAggregateId) \ + ( (This)->lpVtbl -> Add(This,pAggregateId) ) + +#define IContactAggregationGroup_Remove(This,pAggregateId) \ + ( (This)->lpVtbl -> Remove(This,pAggregateId) ) + +#define IContactAggregationGroup_get_Members(This,ppAggregateContactCollection) \ + ( (This)->lpVtbl -> get_Members(This,ppAggregateContactCollection) ) + +#define IContactAggregationGroup_get_GlobalObjectId(This,pGlobalObjectId) \ + ( (This)->lpVtbl -> get_GlobalObjectId(This,pGlobalObjectId) ) + +#define IContactAggregationGroup_put_GlobalObjectId(This,pGlobalObjectId) \ + ( (This)->lpVtbl -> put_GlobalObjectId(This,pGlobalObjectId) ) + +#define IContactAggregationGroup_get_Id(This,ppItemId) \ + ( (This)->lpVtbl -> get_Id(This,ppItemId) ) + +#define IContactAggregationGroup_get_Name(This,ppName) \ + ( (This)->lpVtbl -> get_Name(This,ppName) ) + +#define IContactAggregationGroup_put_Name(This,pName) \ + ( (This)->lpVtbl -> put_Name(This,pName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationGroup_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0006 */ +/* [local] */ + +#pragma deprecated(IContactAggregationGroupCollection) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0006_v0_0_s_ifspec; + +#ifndef __IContactAggregationGroupCollection_INTERFACE_DEFINED__ +#define __IContactAggregationGroupCollection_INTERFACE_DEFINED__ + +/* interface IContactAggregationGroupCollection */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationGroupCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("20A19A9C-D2F3-4B83-9143-BEFFD2CC226D") + IContactAggregationGroupCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FindFirst( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationGroup **ppGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFirstByGlobalObjectId( + /* [in] */ __RPC__in const GUID *pGlobalObjectId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationGroup **ppGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindNext( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationGroup **ppGroup) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out UINT *pCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationGroupCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationGroupCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationGroupCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationGroupCollection * This); + + DECLSPEC_XFGVIRT(IContactAggregationGroupCollection, FindFirst) + HRESULT ( STDMETHODCALLTYPE *FindFirst )( + __RPC__in IContactAggregationGroupCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IContactAggregationGroupCollection, FindFirstByGlobalObjectId) + HRESULT ( STDMETHODCALLTYPE *FindFirstByGlobalObjectId )( + __RPC__in IContactAggregationGroupCollection * This, + /* [in] */ __RPC__in const GUID *pGlobalObjectId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IContactAggregationGroupCollection, FindNext) + HRESULT ( STDMETHODCALLTYPE *FindNext )( + __RPC__in IContactAggregationGroupCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IContactAggregationGroupCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IContactAggregationGroupCollection * This, + /* [retval][out] */ __RPC__out UINT *pCount); + + END_INTERFACE + } IContactAggregationGroupCollectionVtbl; + + interface IContactAggregationGroupCollection + { + CONST_VTBL struct IContactAggregationGroupCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationGroupCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationGroupCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationGroupCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationGroupCollection_FindFirst(This,ppGroup) \ + ( (This)->lpVtbl -> FindFirst(This,ppGroup) ) + +#define IContactAggregationGroupCollection_FindFirstByGlobalObjectId(This,pGlobalObjectId,ppGroup) \ + ( (This)->lpVtbl -> FindFirstByGlobalObjectId(This,pGlobalObjectId,ppGroup) ) + +#define IContactAggregationGroupCollection_FindNext(This,ppGroup) \ + ( (This)->lpVtbl -> FindNext(This,ppGroup) ) + +#define IContactAggregationGroupCollection_get_Count(This,pCount) \ + ( (This)->lpVtbl -> get_Count(This,pCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationGroupCollection_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0007 */ +/* [local] */ + +#pragma deprecated(IContactAggregationLink) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0007_v0_0_s_ifspec; + +#ifndef __IContactAggregationLink_INTERFACE_DEFINED__ +#define __IContactAggregationLink_INTERFACE_DEFINED__ + +/* interface IContactAggregationLink */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationLink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B6813323-A183-4654-8627-79B30DE3A0EC") + IContactAggregationLink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AccountId( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAccountId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AccountId( + /* [in] */ __RPC__in LPCWSTR pAccountId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppItemId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsLinkResolved( + /* [retval][out] */ __RPC__out BOOL *pIsLinkResolved) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_IsLinkResolved( + /* [in] */ BOOL isLinkResolved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NetworkSourceIdString( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppNetworkSourceId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_NetworkSourceIdString( + /* [in] */ __RPC__in LPCWSTR pNetworkSourceId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RemoteObjectId( + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **ppRemoteObjectId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_RemoteObjectId( + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pRemoteObjectId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ServerPerson( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppServerPersonId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ServerPerson( + /* [in] */ __RPC__in LPCWSTR pServerPersonId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ServerPersonBaseline( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppServerPersonId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ServerPersonBaseline( + /* [in] */ __RPC__in LPCWSTR pServerPersonId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SyncIdentityHash( + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **ppSyncIdentityHash) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SyncIdentityHash( + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pSyncIdentityHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationLinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationLink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationLink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationLink * This); + + DECLSPEC_XFGVIRT(IContactAggregationLink, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IContactAggregationLink * This); + + DECLSPEC_XFGVIRT(IContactAggregationLink, Save) + HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IContactAggregationLink * This); + + DECLSPEC_XFGVIRT(IContactAggregationLink, get_AccountId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AccountId )( + __RPC__in IContactAggregationLink * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAccountId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, put_AccountId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AccountId )( + __RPC__in IContactAggregationLink * This, + /* [in] */ __RPC__in LPCWSTR pAccountId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, get_Id) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IContactAggregationLink * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppItemId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, get_IsLinkResolved) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsLinkResolved )( + __RPC__in IContactAggregationLink * This, + /* [retval][out] */ __RPC__out BOOL *pIsLinkResolved); + + DECLSPEC_XFGVIRT(IContactAggregationLink, put_IsLinkResolved) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsLinkResolved )( + __RPC__in IContactAggregationLink * This, + /* [in] */ BOOL isLinkResolved); + + DECLSPEC_XFGVIRT(IContactAggregationLink, get_NetworkSourceIdString) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkSourceIdString )( + __RPC__in IContactAggregationLink * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppNetworkSourceId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, put_NetworkSourceIdString) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetworkSourceIdString )( + __RPC__in IContactAggregationLink * This, + /* [in] */ __RPC__in LPCWSTR pNetworkSourceId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, get_RemoteObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemoteObjectId )( + __RPC__in IContactAggregationLink * This, + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **ppRemoteObjectId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, put_RemoteObjectId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RemoteObjectId )( + __RPC__in IContactAggregationLink * This, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pRemoteObjectId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, get_ServerPerson) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerPerson )( + __RPC__in IContactAggregationLink * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppServerPersonId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, put_ServerPerson) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServerPerson )( + __RPC__in IContactAggregationLink * This, + /* [in] */ __RPC__in LPCWSTR pServerPersonId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, get_ServerPersonBaseline) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerPersonBaseline )( + __RPC__in IContactAggregationLink * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppServerPersonId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, put_ServerPersonBaseline) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServerPersonBaseline )( + __RPC__in IContactAggregationLink * This, + /* [in] */ __RPC__in LPCWSTR pServerPersonId); + + DECLSPEC_XFGVIRT(IContactAggregationLink, get_SyncIdentityHash) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SyncIdentityHash )( + __RPC__in IContactAggregationLink * This, + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **ppSyncIdentityHash); + + DECLSPEC_XFGVIRT(IContactAggregationLink, put_SyncIdentityHash) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SyncIdentityHash )( + __RPC__in IContactAggregationLink * This, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pSyncIdentityHash); + + END_INTERFACE + } IContactAggregationLinkVtbl; + + interface IContactAggregationLink + { + CONST_VTBL struct IContactAggregationLinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationLink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationLink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationLink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationLink_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IContactAggregationLink_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IContactAggregationLink_get_AccountId(This,ppAccountId) \ + ( (This)->lpVtbl -> get_AccountId(This,ppAccountId) ) + +#define IContactAggregationLink_put_AccountId(This,pAccountId) \ + ( (This)->lpVtbl -> put_AccountId(This,pAccountId) ) + +#define IContactAggregationLink_get_Id(This,ppItemId) \ + ( (This)->lpVtbl -> get_Id(This,ppItemId) ) + +#define IContactAggregationLink_get_IsLinkResolved(This,pIsLinkResolved) \ + ( (This)->lpVtbl -> get_IsLinkResolved(This,pIsLinkResolved) ) + +#define IContactAggregationLink_put_IsLinkResolved(This,isLinkResolved) \ + ( (This)->lpVtbl -> put_IsLinkResolved(This,isLinkResolved) ) + +#define IContactAggregationLink_get_NetworkSourceIdString(This,ppNetworkSourceId) \ + ( (This)->lpVtbl -> get_NetworkSourceIdString(This,ppNetworkSourceId) ) + +#define IContactAggregationLink_put_NetworkSourceIdString(This,pNetworkSourceId) \ + ( (This)->lpVtbl -> put_NetworkSourceIdString(This,pNetworkSourceId) ) + +#define IContactAggregationLink_get_RemoteObjectId(This,ppRemoteObjectId) \ + ( (This)->lpVtbl -> get_RemoteObjectId(This,ppRemoteObjectId) ) + +#define IContactAggregationLink_put_RemoteObjectId(This,pRemoteObjectId) \ + ( (This)->lpVtbl -> put_RemoteObjectId(This,pRemoteObjectId) ) + +#define IContactAggregationLink_get_ServerPerson(This,ppServerPersonId) \ + ( (This)->lpVtbl -> get_ServerPerson(This,ppServerPersonId) ) + +#define IContactAggregationLink_put_ServerPerson(This,pServerPersonId) \ + ( (This)->lpVtbl -> put_ServerPerson(This,pServerPersonId) ) + +#define IContactAggregationLink_get_ServerPersonBaseline(This,ppServerPersonId) \ + ( (This)->lpVtbl -> get_ServerPersonBaseline(This,ppServerPersonId) ) + +#define IContactAggregationLink_put_ServerPersonBaseline(This,pServerPersonId) \ + ( (This)->lpVtbl -> put_ServerPersonBaseline(This,pServerPersonId) ) + +#define IContactAggregationLink_get_SyncIdentityHash(This,ppSyncIdentityHash) \ + ( (This)->lpVtbl -> get_SyncIdentityHash(This,ppSyncIdentityHash) ) + +#define IContactAggregationLink_put_SyncIdentityHash(This,pSyncIdentityHash) \ + ( (This)->lpVtbl -> put_SyncIdentityHash(This,pSyncIdentityHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationLink_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0008 */ +/* [local] */ + +#pragma deprecated(IContactAggregationLinkCollection) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0008_v0_0_s_ifspec; + +#ifndef __IContactAggregationLinkCollection_INTERFACE_DEFINED__ +#define __IContactAggregationLinkCollection_INTERFACE_DEFINED__ + +/* interface IContactAggregationLinkCollection */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationLinkCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F8BC0E93-FB55-4F28-B9FA-B1C274153292") + IContactAggregationLinkCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FindFirst( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationLink **ppServerContactLink) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFirstByRemoteId( + /* [in] */ __RPC__in LPCWSTR pSourceType, + /* [in] */ __RPC__in LPCWSTR pAccountId, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pRemoteId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationLink **ppServerContactLink) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindNext( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationLink **ppServerContactLink) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out UINT *pCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationLinkCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationLinkCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationLinkCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationLinkCollection * This); + + DECLSPEC_XFGVIRT(IContactAggregationLinkCollection, FindFirst) + HRESULT ( STDMETHODCALLTYPE *FindFirst )( + __RPC__in IContactAggregationLinkCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationLink **ppServerContactLink); + + DECLSPEC_XFGVIRT(IContactAggregationLinkCollection, FindFirstByRemoteId) + HRESULT ( STDMETHODCALLTYPE *FindFirstByRemoteId )( + __RPC__in IContactAggregationLinkCollection * This, + /* [in] */ __RPC__in LPCWSTR pSourceType, + /* [in] */ __RPC__in LPCWSTR pAccountId, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pRemoteId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationLink **ppServerContactLink); + + DECLSPEC_XFGVIRT(IContactAggregationLinkCollection, FindNext) + HRESULT ( STDMETHODCALLTYPE *FindNext )( + __RPC__in IContactAggregationLinkCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationLink **ppServerContactLink); + + DECLSPEC_XFGVIRT(IContactAggregationLinkCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IContactAggregationLinkCollection * This, + /* [retval][out] */ __RPC__out UINT *pCount); + + END_INTERFACE + } IContactAggregationLinkCollectionVtbl; + + interface IContactAggregationLinkCollection + { + CONST_VTBL struct IContactAggregationLinkCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationLinkCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationLinkCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationLinkCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationLinkCollection_FindFirst(This,ppServerContactLink) \ + ( (This)->lpVtbl -> FindFirst(This,ppServerContactLink) ) + +#define IContactAggregationLinkCollection_FindFirstByRemoteId(This,pSourceType,pAccountId,pRemoteId,ppServerContactLink) \ + ( (This)->lpVtbl -> FindFirstByRemoteId(This,pSourceType,pAccountId,pRemoteId,ppServerContactLink) ) + +#define IContactAggregationLinkCollection_FindNext(This,ppServerContactLink) \ + ( (This)->lpVtbl -> FindNext(This,ppServerContactLink) ) + +#define IContactAggregationLinkCollection_get_Count(This,pCount) \ + ( (This)->lpVtbl -> get_Count(This,pCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationLinkCollection_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0009 */ +/* [local] */ + +#pragma deprecated(IContactAggregationServerPerson) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0009_v0_0_s_ifspec; + +#ifndef __IContactAggregationServerPerson_INTERFACE_DEFINED__ +#define __IContactAggregationServerPerson_INTERFACE_DEFINED__ + +/* interface IContactAggregationServerPerson */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationServerPerson; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7FDC3D4B-1B82-4334-85C5-25184EE5A5F2") + IContactAggregationServerPerson : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AggregateId( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAggregateId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AggregateId( + /* [in] */ __RPC__in LPCWSTR pAggregateId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AntiLink( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAntiLink) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AntiLink( + /* [in] */ __RPC__in LPCWSTR pAntiLink) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AntiLinkBaseline( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAntiLink) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AntiLinkBaseline( + /* [in] */ __RPC__in LPCWSTR pAntiLink) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FavoriteOrder( + /* [retval][out] */ __RPC__out ULONG *pFavoriteOrder) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_FavoriteOrder( + /* [in] */ ULONG favoriteOrder) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FavoriteOrderBaseline( + /* [retval][out] */ __RPC__out ULONG *pFavoriteOrder) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_FavoriteOrderBaseline( + /* [in] */ ULONG favoriteOrder) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Groups( + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **pGroups) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Groups( + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pGroups) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_GroupsBaseline( + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **ppGroups) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_GroupsBaseline( + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pGroups) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsTombstone( + /* [retval][out] */ __RPC__out BOOL *pIsTombstone) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_IsTombstone( + /* [in] */ BOOL isTombstone) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_LinkedAggregateId( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppLinkedAggregateId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_LinkedAggregateId( + /* [in] */ __RPC__in LPCWSTR pLinkedAggregateId) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ObjectId( + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppObjectId) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ObjectId( + /* [in] */ __RPC__in LPCWSTR pObjectId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationServerPersonVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationServerPerson * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationServerPerson * This); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IContactAggregationServerPerson * This); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, Save) + HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IContactAggregationServerPerson * This); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_AggregateId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AggregateId )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAggregateId); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, put_AggregateId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AggregateId )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ __RPC__in LPCWSTR pAggregateId); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_AntiLink) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AntiLink )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAntiLink); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, put_AntiLink) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AntiLink )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ __RPC__in LPCWSTR pAntiLink); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_AntiLinkBaseline) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AntiLinkBaseline )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppAntiLink); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, put_AntiLinkBaseline) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AntiLinkBaseline )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ __RPC__in LPCWSTR pAntiLink); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_FavoriteOrder) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FavoriteOrder )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__out ULONG *pFavoriteOrder); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, put_FavoriteOrder) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_FavoriteOrder )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ ULONG favoriteOrder); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_FavoriteOrderBaseline) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FavoriteOrderBaseline )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__out ULONG *pFavoriteOrder); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, put_FavoriteOrderBaseline) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_FavoriteOrderBaseline )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ ULONG favoriteOrder); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_Groups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Groups )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **pGroups); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, put_Groups) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Groups )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pGroups); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_GroupsBaseline) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_GroupsBaseline )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__deref_out_opt CONTACT_AGGREGATION_BLOB **ppGroups); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, put_GroupsBaseline) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_GroupsBaseline )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ __RPC__in const CONTACT_AGGREGATION_BLOB *pGroups); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_Id) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppId); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_IsTombstone) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsTombstone )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__out BOOL *pIsTombstone); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, put_IsTombstone) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsTombstone )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ BOOL isTombstone); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_LinkedAggregateId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_LinkedAggregateId )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppLinkedAggregateId); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, put_LinkedAggregateId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_LinkedAggregateId )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ __RPC__in LPCWSTR pLinkedAggregateId); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IContactAggregationServerPerson * This, + /* [retval][out] */ __RPC__deref_out_opt LPWSTR *ppObjectId); + + DECLSPEC_XFGVIRT(IContactAggregationServerPerson, put_ObjectId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ObjectId )( + __RPC__in IContactAggregationServerPerson * This, + /* [in] */ __RPC__in LPCWSTR pObjectId); + + END_INTERFACE + } IContactAggregationServerPersonVtbl; + + interface IContactAggregationServerPerson + { + CONST_VTBL struct IContactAggregationServerPersonVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationServerPerson_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationServerPerson_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationServerPerson_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationServerPerson_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IContactAggregationServerPerson_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IContactAggregationServerPerson_get_AggregateId(This,ppAggregateId) \ + ( (This)->lpVtbl -> get_AggregateId(This,ppAggregateId) ) + +#define IContactAggregationServerPerson_put_AggregateId(This,pAggregateId) \ + ( (This)->lpVtbl -> put_AggregateId(This,pAggregateId) ) + +#define IContactAggregationServerPerson_get_AntiLink(This,ppAntiLink) \ + ( (This)->lpVtbl -> get_AntiLink(This,ppAntiLink) ) + +#define IContactAggregationServerPerson_put_AntiLink(This,pAntiLink) \ + ( (This)->lpVtbl -> put_AntiLink(This,pAntiLink) ) + +#define IContactAggregationServerPerson_get_AntiLinkBaseline(This,ppAntiLink) \ + ( (This)->lpVtbl -> get_AntiLinkBaseline(This,ppAntiLink) ) + +#define IContactAggregationServerPerson_put_AntiLinkBaseline(This,pAntiLink) \ + ( (This)->lpVtbl -> put_AntiLinkBaseline(This,pAntiLink) ) + +#define IContactAggregationServerPerson_get_FavoriteOrder(This,pFavoriteOrder) \ + ( (This)->lpVtbl -> get_FavoriteOrder(This,pFavoriteOrder) ) + +#define IContactAggregationServerPerson_put_FavoriteOrder(This,favoriteOrder) \ + ( (This)->lpVtbl -> put_FavoriteOrder(This,favoriteOrder) ) + +#define IContactAggregationServerPerson_get_FavoriteOrderBaseline(This,pFavoriteOrder) \ + ( (This)->lpVtbl -> get_FavoriteOrderBaseline(This,pFavoriteOrder) ) + +#define IContactAggregationServerPerson_put_FavoriteOrderBaseline(This,favoriteOrder) \ + ( (This)->lpVtbl -> put_FavoriteOrderBaseline(This,favoriteOrder) ) + +#define IContactAggregationServerPerson_get_Groups(This,pGroups) \ + ( (This)->lpVtbl -> get_Groups(This,pGroups) ) + +#define IContactAggregationServerPerson_put_Groups(This,pGroups) \ + ( (This)->lpVtbl -> put_Groups(This,pGroups) ) + +#define IContactAggregationServerPerson_get_GroupsBaseline(This,ppGroups) \ + ( (This)->lpVtbl -> get_GroupsBaseline(This,ppGroups) ) + +#define IContactAggregationServerPerson_put_GroupsBaseline(This,pGroups) \ + ( (This)->lpVtbl -> put_GroupsBaseline(This,pGroups) ) + +#define IContactAggregationServerPerson_get_Id(This,ppId) \ + ( (This)->lpVtbl -> get_Id(This,ppId) ) + +#define IContactAggregationServerPerson_get_IsTombstone(This,pIsTombstone) \ + ( (This)->lpVtbl -> get_IsTombstone(This,pIsTombstone) ) + +#define IContactAggregationServerPerson_put_IsTombstone(This,isTombstone) \ + ( (This)->lpVtbl -> put_IsTombstone(This,isTombstone) ) + +#define IContactAggregationServerPerson_get_LinkedAggregateId(This,ppLinkedAggregateId) \ + ( (This)->lpVtbl -> get_LinkedAggregateId(This,ppLinkedAggregateId) ) + +#define IContactAggregationServerPerson_put_LinkedAggregateId(This,pLinkedAggregateId) \ + ( (This)->lpVtbl -> put_LinkedAggregateId(This,pLinkedAggregateId) ) + +#define IContactAggregationServerPerson_get_ObjectId(This,ppObjectId) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppObjectId) ) + +#define IContactAggregationServerPerson_put_ObjectId(This,pObjectId) \ + ( (This)->lpVtbl -> put_ObjectId(This,pObjectId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationServerPerson_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0010 */ +/* [local] */ + +#pragma deprecated(IContactAggregationServerPersonCollection) + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0010_v0_0_s_ifspec; + +#ifndef __IContactAggregationServerPersonCollection_INTERFACE_DEFINED__ +#define __IContactAggregationServerPersonCollection_INTERFACE_DEFINED__ + +/* interface IContactAggregationServerPersonCollection */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IContactAggregationServerPersonCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4F730A4A-6604-47B6-A987-669ECF1E5751") + IContactAggregationServerPersonCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FindFirst( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFirstByServerId( + /* [in] */ __RPC__in LPCWSTR pServerId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFirstByAggregateId( + /* [in] */ __RPC__in LPCWSTR pAggregateId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFirstByLinkedAggregateId( + /* [in] */ __RPC__in LPCWSTR pAggregateId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindNext( + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out UINT *pCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactAggregationServerPersonCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactAggregationServerPersonCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactAggregationServerPersonCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactAggregationServerPersonCollection * This); + + DECLSPEC_XFGVIRT(IContactAggregationServerPersonCollection, FindFirst) + HRESULT ( STDMETHODCALLTYPE *FindFirst )( + __RPC__in IContactAggregationServerPersonCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson); + + DECLSPEC_XFGVIRT(IContactAggregationServerPersonCollection, FindFirstByServerId) + HRESULT ( STDMETHODCALLTYPE *FindFirstByServerId )( + __RPC__in IContactAggregationServerPersonCollection * This, + /* [in] */ __RPC__in LPCWSTR pServerId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson); + + DECLSPEC_XFGVIRT(IContactAggregationServerPersonCollection, FindFirstByAggregateId) + HRESULT ( STDMETHODCALLTYPE *FindFirstByAggregateId )( + __RPC__in IContactAggregationServerPersonCollection * This, + /* [in] */ __RPC__in LPCWSTR pAggregateId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson); + + DECLSPEC_XFGVIRT(IContactAggregationServerPersonCollection, FindFirstByLinkedAggregateId) + HRESULT ( STDMETHODCALLTYPE *FindFirstByLinkedAggregateId )( + __RPC__in IContactAggregationServerPersonCollection * This, + /* [in] */ __RPC__in LPCWSTR pAggregateId, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson); + + DECLSPEC_XFGVIRT(IContactAggregationServerPersonCollection, FindNext) + HRESULT ( STDMETHODCALLTYPE *FindNext )( + __RPC__in IContactAggregationServerPersonCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IContactAggregationServerPerson **ppServerPerson); + + DECLSPEC_XFGVIRT(IContactAggregationServerPersonCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IContactAggregationServerPersonCollection * This, + /* [retval][out] */ __RPC__out UINT *pCount); + + END_INTERFACE + } IContactAggregationServerPersonCollectionVtbl; + + interface IContactAggregationServerPersonCollection + { + CONST_VTBL struct IContactAggregationServerPersonCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactAggregationServerPersonCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactAggregationServerPersonCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactAggregationServerPersonCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactAggregationServerPersonCollection_FindFirst(This,ppServerPerson) \ + ( (This)->lpVtbl -> FindFirst(This,ppServerPerson) ) + +#define IContactAggregationServerPersonCollection_FindFirstByServerId(This,pServerId,ppServerPerson) \ + ( (This)->lpVtbl -> FindFirstByServerId(This,pServerId,ppServerPerson) ) + +#define IContactAggregationServerPersonCollection_FindFirstByAggregateId(This,pAggregateId,ppServerPerson) \ + ( (This)->lpVtbl -> FindFirstByAggregateId(This,pAggregateId,ppServerPerson) ) + +#define IContactAggregationServerPersonCollection_FindFirstByLinkedAggregateId(This,pAggregateId,ppServerPerson) \ + ( (This)->lpVtbl -> FindFirstByLinkedAggregateId(This,pAggregateId,ppServerPerson) ) + +#define IContactAggregationServerPersonCollection_FindNext(This,ppServerPerson) \ + ( (This)->lpVtbl -> FindNext(This,ppServerPerson) ) + +#define IContactAggregationServerPersonCollection_get_Count(This,pCount) \ + ( (This)->lpVtbl -> get_Count(This,pCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactAggregationServerPersonCollection_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contactaggregation_0000_0011 */ +/* [local] */ + +#endif /* NTDDI_VERSION >=NTDDI_WIN10_RS1 */ +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contactaggregation_0000_0011_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ContactAggregation.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ContactAggregation.idl new file mode 100644 index 0000000000000000000000000000000000000000..ef4b912c8ff017c7e2859c4fdc5042631c0b221a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ContactAggregation.idl @@ -0,0 +1,316 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// +// Use of this source code is subject to the terms of the Microsoft +// premium shared source license agreement under which you licensed +// this source code. If you did not accept the terms of the license +// agreement, you are not authorized to use this source code. +// For the terms of the license, please see the license agreement +// signed by you and Microsoft. +// THE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES. +// +// *********************************************************************** + +import "ocidl.idl"; + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#if NTDDI_VERSION >= NTDDI_WIN10_RS1") + +interface IContactAggregationManager; + +interface IContactAggregationContact; +interface IContactAggregationContactCollection; + +interface IContactAggregationAggregate; +interface IContactAggregationAggregateCollection; + +interface IContactAggregationGroup; +interface IContactAggregationGroupCollection; + +interface IContactAggregationLink; +interface IContactAggregationLinkCollection; + +interface IContactAggregationServerPerson; +interface IContactAggregationServerPersonCollection; + +typedef [v1_enum] +enum CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS +{ + CA_CREATE_LOCAL = 0, + CA_CREATE_EXTERNAL = 1 +} CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS; + +typedef [v1_enum] +enum CONTACT_AGGREGATION_COLLECTION_OPTIONS +{ + CACO_DEFAULT = 0, + CACO_INCLUDE_EXTERNAL = 1, + CACO_EXTERNAL_ONLY = 2 +} CONTACT_AGGREGATION_COLLECTION_OPTIONS; + +typedef struct _CONTACT_AGGREGATION_BLOB { + DWORD dwCount; + [size_is(dwCount)] BYTE* lpb; +} CONTACT_AGGREGATION_BLOB, *PCONTACT_AGGREGATION_BLOB; + + +cpp_quote("DEFINE_GUID(CLSID_ContactAggregationManager, 0x96c8ad95, 0xc199, 0x44de, 0xb3, 0x4e, 0xac, 0x33, 0xc4, 0x42, 0xdf, 0x39);") + + +cpp_quote("#pragma deprecated(IContactAggregationManager)") +[ + object, + uuid(1D865989-4B1F-4B60-8F34-C2AD468B2B50) +] +interface IContactAggregationManager : IUnknown +{ + HRESULT GetVersionInfo([out] long *plMajorVersion, [out] long *plMinorVersion); + + HRESULT CreateOrOpenGroup( + [in] LPCWSTR pGroupName, + [in] CONTACT_AGGREGATION_CREATE_OR_OPEN_OPTIONS options, + [out] BOOL *pCreatedGroup, + [out, retval] IContactAggregationGroup **ppGroup); + HRESULT CreateExternalContact([out, retval] IContactAggregationContact **ppItem); + HRESULT CreateServerPerson([out] IContactAggregationServerPerson **ppServerPerson); + HRESULT CreateServerContactLink([out] IContactAggregationLink **ppServerContactLink); + HRESULT Flush(); + HRESULT OpenAggregateContact([in] LPCWSTR pItemId, [out] IContactAggregationAggregate **ppItem); + HRESULT OpenContact([in] LPCWSTR pItemId, [out] IContactAggregationContact **ppItem); + HRESULT OpenServerContactLink([in] LPCWSTR pItemId, [out] IContactAggregationLink **ppItem); + HRESULT OpenServerPerson([in] LPCWSTR pItemId, [out] IContactAggregationServerPerson **ppItem); + + [propget] HRESULT Contacts([in] CONTACT_AGGREGATION_COLLECTION_OPTIONS options, [out, retval] IContactAggregationContactCollection **ppItems); + [propget] HRESULT AggregateContacts([in] CONTACT_AGGREGATION_COLLECTION_OPTIONS options, [out] IContactAggregationAggregateCollection **ppAggregates); + [propget] HRESULT Groups([in] CONTACT_AGGREGATION_COLLECTION_OPTIONS options, [out] IContactAggregationGroupCollection **ppGroups); + [propget] HRESULT ServerPersons([out] IContactAggregationServerPersonCollection **ppServerPersonCollection); + [propget] HRESULT ServerContactLinks([in] LPCWSTR pPersonItemId, [out] IContactAggregationLinkCollection **ppServerContactLinkCollection); +}; + + +cpp_quote("#pragma deprecated(IContactAggregationContact)") +[ + object, + uuid(1EB22E86-4C86-41F0-9F9F-C251E9FDA6C3) +] +interface IContactAggregationContact : IUnknown +{ + HRESULT Delete(); + HRESULT Save(); + + HRESULT MoveToAggregate([in] LPCWSTR pAggregateId); + HRESULT Unlink(); + + [propget] HRESULT AccountId([out, retval] LPWSTR *ppAccountId); + [propput] HRESULT AccountId([in] LPCWSTR pAccountId); + [propget] HRESULT AggregateId([out] LPWSTR *ppAggregateId); + [propget] HRESULT Id([out, retval] LPWSTR *ppItemId); + [propget] HRESULT IsMe([out, retval] BOOL *pIsMe); + [propget] HRESULT IsExternal([out, retval] BOOL *pIsExternal); + [propget] HRESULT NetworkSourceId([out, retval] ULONG *pNetworkSourceId); + [propput] HRESULT NetworkSourceId([in] ULONG networkSourceId); + [propget] HRESULT NetworkSourceIdString([out, retval] LPWSTR *ppNetworkSourceId); + [propput] HRESULT NetworkSourceIdString([in] LPCWSTR pNetworkSourceId); + [propget] HRESULT RemoteObjectId([out, retval] CONTACT_AGGREGATION_BLOB **ppRemoteObjectId); + [propput] HRESULT RemoteObjectId([in] const CONTACT_AGGREGATION_BLOB *pRemoteObjectId); + [propget] HRESULT SyncIdentityHash([out, retval] CONTACT_AGGREGATION_BLOB **ppSyncIdentityHash); + [propput] HRESULT SyncIdentityHash([in] const CONTACT_AGGREGATION_BLOB *pSyncIdentityHash); +}; + + +cpp_quote("#pragma deprecated(IContactAggregationContactCollection)") +[ + object, + uuid(826E66FA-81DE-43CA-A6FB-8C785CD996C6) +] +interface IContactAggregationContactCollection : IUnknown +{ + HRESULT FindFirst([out, retval] IContactAggregationContact **ppItem); + HRESULT FindNext([out, retval] IContactAggregationContact **ppItem); + + HRESULT FindFirstByIdentityHash([in] LPCWSTR pSourceType, [in] LPCWSTR pAccountId, [in] const CONTACT_AGGREGATION_BLOB *pIdentityHash, [out, retval] IContactAggregationContact **ppItem); + + [propget] HRESULT Count([out, retval] int *pCount); + + HRESULT FindFirstByRemoteId([in] LPCWSTR pSourceType, [in] LPCWSTR pAccountId, [in] const CONTACT_AGGREGATION_BLOB *pRemoteObjectId, [out, retval] IContactAggregationContact **ppItem); +}; + + +cpp_quote("#pragma deprecated(IContactAggregationAggregate)") +[ + object, + uuid(7ED1C814-CD30-43C8-9B8D-2E489E53D54B) +] +interface IContactAggregationAggregate : IUnknown +{ + HRESULT Save(); + + HRESULT GetComponentItems([out] IContactAggregationContactCollection **pComponentItems); + HRESULT Link([in] LPCWSTR pAggregateId); + + [propget] HRESULT Groups([in] CONTACT_AGGREGATION_COLLECTION_OPTIONS options, [out] IContactAggregationGroupCollection **ppGroups); + + [propget] HRESULT AntiLink([out, retval] LPWSTR *ppAntiLink); + [propput] HRESULT AntiLink([in] LPCWSTR pAntiLink); + [propget] HRESULT FavoriteOrder([out, retval] ULONG *pFavoriteOrder); + [propput] HRESULT FavoriteOrder([in] ULONG favoriteOrder); + [propget] HRESULT Id([out, retval] LPWSTR *ppItemId); +}; + + +cpp_quote("#pragma deprecated(IContactAggregationAggregateCollection)") +[ + object, + uuid(2359F3A6-3A68-40AF-98DB-0F9EB143C3BB) +] +interface IContactAggregationAggregateCollection : IUnknown +{ + HRESULT FindFirst([out, retval] IContactAggregationAggregate **ppAggregate); + HRESULT FindFirstByAntiLinkId([in] LPCWSTR pAntiLinkId, [out, retval] IContactAggregationAggregate **ppAggregate); + HRESULT FindNext([out, retval] IContactAggregationAggregate **ppAggregate); + + [propget] HRESULT Count([out, retval] int *pCount); +}; + + +cpp_quote("#pragma deprecated(IContactAggregationGroup)") +[ + object, + uuid(C93C545F-1284-499B-96AF-07372AF473E0) +] +interface IContactAggregationGroup : IUnknown +{ + HRESULT Delete(); + HRESULT Save(); + + HRESULT Add([in] LPCWSTR pAggregateId); + HRESULT Remove([in] LPCWSTR pAggregateId); + + [propget] HRESULT Members([out, retval] IContactAggregationAggregateCollection **ppAggregateContactCollection); + + [propget] HRESULT GlobalObjectId([out, retval] GUID *pGlobalObjectId); + [propput] HRESULT GlobalObjectId([in] const GUID *pGlobalObjectId); + [propget] HRESULT Id([out, retval] LPWSTR *ppItemId); + [propget] HRESULT Name([out, retval] LPWSTR *ppName); + [propput] HRESULT Name([in] LPCWSTR pName); +}; + + +cpp_quote("#pragma deprecated(IContactAggregationGroupCollection)") +[ + object, + uuid(20A19A9C-D2F3-4B83-9143-BEFFD2CC226D) +] +interface IContactAggregationGroupCollection : IUnknown +{ + HRESULT FindFirst([out, retval] IContactAggregationGroup **ppGroup); + HRESULT FindFirstByGlobalObjectId([in] const GUID *pGlobalObjectId, [out, retval] IContactAggregationGroup **ppGroup); + HRESULT FindNext([out, retval] IContactAggregationGroup **ppGroup); + + [propget] HRESULT Count([out, retval] UINT *pCount); +}; + + +cpp_quote("#pragma deprecated(IContactAggregationLink)") +[ + object, + uuid(B6813323-A183-4654-8627-79B30DE3A0EC) +] +interface IContactAggregationLink : IUnknown +{ + HRESULT Delete(); + HRESULT Save(); + + [propget] HRESULT AccountId([out, retval] LPWSTR *ppAccountId); + [propput] HRESULT AccountId([in] LPCWSTR pAccountId); + [propget] HRESULT Id([out, retval] LPWSTR *ppItemId); + [propget] HRESULT IsLinkResolved([out, retval] BOOL *pIsLinkResolved); + [propput] HRESULT IsLinkResolved([in] BOOL isLinkResolved); + [propget] HRESULT NetworkSourceIdString([out, retval] LPWSTR *ppNetworkSourceId); + [propput] HRESULT NetworkSourceIdString([in] LPCWSTR pNetworkSourceId); + [propget] HRESULT RemoteObjectId([out, retval] CONTACT_AGGREGATION_BLOB **ppRemoteObjectId); + [propput] HRESULT RemoteObjectId([in] const CONTACT_AGGREGATION_BLOB *pRemoteObjectId); + [propget] HRESULT ServerPerson([out, retval] LPWSTR *ppServerPersonId); + [propput] HRESULT ServerPerson([in] LPCWSTR pServerPersonId); + [propget] HRESULT ServerPersonBaseline([out, retval] LPWSTR *ppServerPersonId); + [propput] HRESULT ServerPersonBaseline([in] LPCWSTR pServerPersonId); + [propget] HRESULT SyncIdentityHash([out, retval] CONTACT_AGGREGATION_BLOB **ppSyncIdentityHash); + [propput] HRESULT SyncIdentityHash([in] const CONTACT_AGGREGATION_BLOB *pSyncIdentityHash); +}; + + +cpp_quote("#pragma deprecated(IContactAggregationLinkCollection)") +[ + object, + uuid(F8BC0E93-FB55-4F28-B9FA-B1C274153292) +] +interface IContactAggregationLinkCollection : IUnknown +{ + HRESULT FindFirst([out, retval] IContactAggregationLink **ppServerContactLink); + HRESULT FindFirstByRemoteId([in] LPCWSTR pSourceType, [in] LPCWSTR pAccountId, [in] const CONTACT_AGGREGATION_BLOB *pRemoteId, [out, retval] IContactAggregationLink **ppServerContactLink); + HRESULT FindNext([out, retval] IContactAggregationLink **ppServerContactLink); + + [propget] HRESULT Count([out, retval] UINT *pCount); +}; + + +cpp_quote("#pragma deprecated(IContactAggregationServerPerson)") +[ + object, + uuid(7FDC3D4B-1B82-4334-85C5-25184EE5A5F2) +] +interface IContactAggregationServerPerson : IUnknown +{ + HRESULT Delete(); + HRESULT Save(); + + [propget] HRESULT AggregateId([out, retval] LPWSTR *ppAggregateId); + [propput] HRESULT AggregateId([in] LPCWSTR pAggregateId); + [propget] HRESULT AntiLink([out, retval] LPWSTR *ppAntiLink); + [propput] HRESULT AntiLink([in] LPCWSTR pAntiLink); + [propget] HRESULT AntiLinkBaseline([out, retval] LPWSTR *ppAntiLink); + [propput] HRESULT AntiLinkBaseline([in] LPCWSTR pAntiLink); + [propget] HRESULT FavoriteOrder([out, retval] ULONG *pFavoriteOrder); + [propput] HRESULT FavoriteOrder([in] ULONG favoriteOrder); + [propget] HRESULT FavoriteOrderBaseline([out, retval] ULONG *pFavoriteOrder); + [propput] HRESULT FavoriteOrderBaseline([in] ULONG favoriteOrder); + [propget] HRESULT Groups([out, retval] CONTACT_AGGREGATION_BLOB **pGroups); + [propput] HRESULT Groups([in] const CONTACT_AGGREGATION_BLOB *pGroups); + [propget] HRESULT GroupsBaseline([out, retval] CONTACT_AGGREGATION_BLOB **ppGroups); + [propput] HRESULT GroupsBaseline([in] const CONTACT_AGGREGATION_BLOB *pGroups); + [propget] HRESULT Id([out, retval] LPWSTR *ppId); + [propget] HRESULT IsTombstone([out, retval] BOOL *pIsTombstone); + [propput] HRESULT IsTombstone([in] BOOL isTombstone); + [propget] HRESULT LinkedAggregateId([out, retval] LPWSTR *ppLinkedAggregateId); + [propput] HRESULT LinkedAggregateId([in] LPCWSTR pLinkedAggregateId); + [propget] HRESULT ObjectId([out, retval] LPWSTR *ppObjectId); + [propput] HRESULT ObjectId([in] LPCWSTR pObjectId); +}; + + +cpp_quote("#pragma deprecated(IContactAggregationServerPersonCollection)") +[ + object, + uuid(4F730A4A-6604-47B6-A987-669ECF1E5751) +] +interface IContactAggregationServerPersonCollection : IUnknown +{ + HRESULT FindFirst([out, retval] IContactAggregationServerPerson **ppServerPerson); + HRESULT FindFirstByServerId([in] LPCWSTR pServerId, [out, retval] IContactAggregationServerPerson **ppServerPerson); + HRESULT FindFirstByAggregateId([in] LPCWSTR pAggregateId, [out, retval] IContactAggregationServerPerson **ppServerPerson); + HRESULT FindFirstByLinkedAggregateId([in] LPCWSTR pAggregateId, [out, retval] IContactAggregationServerPerson **ppServerPerson); + HRESULT FindNext([out, retval] IContactAggregationServerPerson **ppServerPerson); + + [propget] HRESULT Count([out, retval] UINT *pCount); +}; + +cpp_quote("#endif /* NTDDI_VERSION >=NTDDI_WIN10_RS1 */") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Cpl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Cpl.h new file mode 100644 index 0000000000000000000000000000000000000000..c3e0a26832efdfd38ae624b0c87b73f66150c16c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Cpl.h @@ -0,0 +1,217 @@ + +/*****************************************************************************\ +* * +* cpl.h - Control panel extension DLL definitions * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +******************************************************************************/ +/* +* General rules for being installed in the Control Panel: +* +* 1) The CPL/DLL must export a function named CPlApplet which will handle +* the messages discussed below. +* 2) If the applet needs to save information in CONTROL.INI minimize +* clutter by using the application name [MMCPL.appletname]. +* 3) If the applet is refrenced in CONTROL.INI under [MMCPL] use +* the following form: +* ... +* [MMCPL] +* uniqueName=c:\mydir\myapplet.dll +* ... +* +* The order applet CPLs/DLLs are loaded by Control Panel is not guaranteed. +* They may be sorted for display, categorization, etc. +* +*/ +#ifndef _INC_CPL +#define _INC_CPL + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#if (_MSC_VER >= 800) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif +#pragma warning(disable:4001) /* nonstandard extension : single line comment */ +#endif + +#include /* Assume byte packing throughout */ + +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++ */ +#endif /* __cplusplus */ + +/* Deprecated; control.exe no longer uses these messages */ +#define WM_CPL_LAUNCH (WM_USER+1000) +#define WM_CPL_LAUNCHED (WM_USER+1001) + +/* A function prototype for CPlApplet() */ + +typedef LONG (APIENTRY *APPLET_PROC)(HWND hwndCpl, UINT msg, LPARAM lParam1, LPARAM lParam2); + +/* The data structure CPlApplet() must fill in. */ + +typedef struct tagCPLINFO +{ + int idIcon; /* icon resource id, provided by CPlApplet() */ + int idName; /* display name string resource id, provided by CPlApplet() */ + int idInfo; /* description/tooltip/status bar string resource id, provided by CPlApplet() */ + LONG_PTR lData; /* user defined data */ +} CPLINFO, *LPCPLINFO; + +typedef struct tagNEWCPLINFOA +{ + DWORD dwSize; /* size, in bytes, of the structure */ + DWORD dwFlags; + DWORD dwHelpContext; /* help context to use */ + LONG_PTR lData; /* user defined data */ + HICON hIcon; /* icon to use, this is owned by the Control Panel window (may be deleted) */ + CHAR szName[32]; /* display name */ + CHAR szInfo[64]; /* description/tooltip/status bar string */ + CHAR szHelpFile[128];/* path to help file to use */ +} NEWCPLINFOA, *LPNEWCPLINFOA; +typedef struct tagNEWCPLINFOW +{ + DWORD dwSize; /* size, in bytes, of the structure */ + DWORD dwFlags; + DWORD dwHelpContext; /* help context to use */ + LONG_PTR lData; /* user defined data */ + HICON hIcon; /* icon to use, this is owned by the Control Panel window (may be deleted) */ + WCHAR szName[32]; /* display name */ + WCHAR szInfo[64]; /* description/tooltip/status bar string */ + WCHAR szHelpFile[128];/* path to help file to use */ +} NEWCPLINFOW, *LPNEWCPLINFOW; +#ifdef UNICODE +typedef NEWCPLINFOW NEWCPLINFO; +typedef LPNEWCPLINFOW LPNEWCPLINFO; +#else +typedef NEWCPLINFOA NEWCPLINFO; +typedef LPNEWCPLINFOA LPNEWCPLINFO; +#endif // UNICODE + +#if(WINVER >= 0x0400) +#define CPL_DYNAMIC_RES 0 +/* This constant may be used in place of real resource IDs for the idIcon, +* idName or idInfo members of the CPLINFO structure. Normally, the system +* uses these values to extract copies of the resources and store them in a +* cache. Once the resource information is in the cache, the system does not +* need to load a CPL unless the user actually tries to use it. +* CPL_DYNAMIC_RES tells the system not to cache the resource, but instead to +* load the CPL every time it needs to display information about an item. This +* allows a CPL to dynamically decide what information will be displayed, but +* is SIGNIFICANTLY SLOWER than displaying information from a cache. +* Typically, CPL_DYNAMIC_RES is used when a control panel must inspect the +* runtime status of some device in order to provide text or icons to display. +* It should be avoided if possible because of the performance hit to Control Panel. +*/ + +#endif /* WINVER >= 0x0400 */ + +/* The messages CPlApplet() must handle: */ + +#define CPL_INIT 1 +/* This message is sent to indicate CPlApplet() was found. */ +/* lParam1 and lParam2 are not defined. */ +/* Return TRUE or FALSE indicating whether the control panel should proceed. */ + + +#define CPL_GETCOUNT 2 +/* This message is sent to determine the number of applets to be displayed. */ +/* lParam1 and lParam2 are not defined. */ +/* Return the number of applets you wish to display in the control */ +/* panel window. */ + + +#define CPL_INQUIRE 3 +/* This message is sent for information about each applet. */ +/* The return value is ignored. */ +/* lParam1 is the applet number to register, a value from 0 to */ +/* (CPL_GETCOUNT - 1). lParam2 is a pointer to a CPLINFO structure. */ +/* Fill in CPLINFO's idIcon, idName, idInfo and lData fields with */ +/* the resource id for an icon to display, name and description string ids, */ +/* and a long data item associated with applet #lParam1. This information */ +/* may be cached by the caller at runtime and/or across sessions. */ +/* To prevent caching, see CPL_DYNAMIC_RES, above. If the icon, name, and description */ +/* are not dynamic then CPL_DYNAMIC_RES should not be used and the CPL_NEWINQURE message */ +/* should be ignored */ + + +#define CPL_SELECT 4 +/* The CPL_SELECT message is not used. */ + + +#define CPL_DBLCLK 5 +/* This message is sent when the applet's icon has been double-clicked. */ +/* lParam1 is the applet number which was selected. */ +/* lParam2 is the applet's lData value. */ +/* This message should initiate the applet's dialog box. */ + + +#define CPL_STOP 6 +/* This message is sent for each applet when the control panel is exiting. */ +/* lParam1 is the applet number. lParam2 is the applet's lData value. */ +/* Do applet specific cleaning up here. */ + + +#define CPL_EXIT 7 +/* This message is sent just before the control panel calls FreeLibrary. */ +/* lParam1 and lParam2 are not defined. */ +/* Do non-applet specific cleaning up here. */ + + +#define CPL_NEWINQUIRE 8 +/* Same as CPL_INQUIRE execpt lParam2 is a pointer to a NEWCPLINFO struct. */ +/* The return value is ignored. */ +/* A CPL should NOT respond to the CPL_NEWINQURE message unless CPL_DYNAMIC_RES */ +/* is used in CPL_INQUIRE. CPLs which respond to CPL_NEWINQUIRE cannot be cached */ +/* and slow the loading of the Control Panel window. */ + +#if(WINVER >= 0x0400) +#define CPL_STARTWPARMSA 9 +#define CPL_STARTWPARMSW 10 +#ifdef UNICODE +#define CPL_STARTWPARMS CPL_STARTWPARMSW +#else +#define CPL_STARTWPARMS CPL_STARTWPARMSA +#endif +/* This message parallels CPL_DBLCLK in that the applet should initiate +* its dialog box. Where it differs is that this invocation is coming +* out of RUNDLL, and there may be some extra directions for execution. +* lParam1: the applet number. +* lParam2: an LPSTR to any extra directions that might exist. +* returns: TRUE if the message was handled; FALSE if not. +*/ +#endif /* WINVER >= 0x0400 */ + +/* This message is internal to the Control Panel and MAIN applets. */ +/* It is only sent when an applet is invoked from the command line */ +/* during system installation. */ +#define CPL_SETUP 200 + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#include + +#if (_MSC_VER >= 800) +#if (_MSC_VER >= 1200) +#pragma warning(pop) +#else +#pragma warning(default:4001) +#endif +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _INC_CPL */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Cplext.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Cplext.h new file mode 100644 index 0000000000000000000000000000000000000000..31cd64c7ffa14b1e37047a5943b08cbcf35c4aba --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Cplext.h @@ -0,0 +1,71 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// CPLEXT.H -- defines for property sheet extensions to system control panels +// +// Version 4.00 +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +/////////////////////////////////////////////////////////////////////////////// + +#pragma once + +#ifndef _INC_CPLEXT +#define _INC_CPLEXT + + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/////////////////////////////////////////////////////////////////////////////// +// Below are constants for pages which can be replaced in the standard control +// panel applets. To extend an applet, you must define an object which +// supports the IShellPropSheetExt interface and register it's in-process +// server in a subkey under the applet's registry key. Registry paths for the +// applets are defined in the header file REGSTR.H +// Generally, when an IShellPropSheetExt is loaded, it's AddPages method +// will be called once, while it's ReplacePage method may be called zero or +// more times. ReplacePage is only called in context. +/////////////////////////////////////////////////////////////////////////////// + +//----------------------------------------------------------------------------- +// Mouse Control Panel Extensions +// The following constants MAY be passed in IShellPropSheetExt::ReplacePage's +// uPageID parameter for servers registered under +// ( REGSTR_PATH_CONTROLSFOLDER "\\Mouse" ) +//----------------------------------------------------------------------------- + +#define CPLPAGE_MOUSE_BUTTONS 1 +#define CPLPAGE_MOUSE_PTRMOTION 2 +#define CPLPAGE_MOUSE_WHEEL 3 + + +//----------------------------------------------------------------------------- +// Keyboard Control Panel Extensions +// The following constants MAY be passed in IShellPropSheetExt::ReplacePage's +// uPageID parameter for servers registered under +// ( REGSTR_PATH_CONTROLSFOLDER "\\Keyboard" ) +//----------------------------------------------------------------------------- + +#define CPLPAGE_KEYBOARD_SPEED 1 + + +//----------------------------------------------------------------------------- +// Display Control Panel Extensions +// The following constants MAY be passed in IShellPropSheetExt::ReplacePage's +// uPageID parameter for servers registered under +// ( REGSTR_PATH_CONTROLSFOLDER "\\Display" ) +//----------------------------------------------------------------------------- + +#define CPLPAGE_DISPLAY_BACKGROUND 1 + + +/////////////////////////////////////////////////////////////////////////////// + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/CustCntl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CustCntl.h new file mode 100644 index 0000000000000000000000000000000000000000..009decdfc17d510d5e4d7b20b01ae861b836a3ba --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/CustCntl.h @@ -0,0 +1,219 @@ +/*****************************************************************************\ +* * +* custcntl.h - Custom Control Library header file * +* * +* Copyright (c) 1992-1999, Microsoft Corp. All rights reserved * +* * +\*****************************************************************************/ + +#ifndef _INC_CUSTCNTL +#define _INC_CUSTCNTL + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++ */ +#endif /* __cplusplus */ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/* + * General size defines. + */ +#define CCHCCCLASS 32 // Max chars in a class name. +#define CCHCCDESC 32 // Max chars in a control description. +#define CCHCCTEXT 256 // Max chars in a text field. + + +/* + * CCSTYLE - Custom Control Style structure. This structure is passed + * tp the Custom Control Style function when the user wants to edit the + * styles of the custom control. + */ +typedef struct tagCCSTYLEA { + DWORD flStyle; // Style of the control. + DWORD flExtStyle; // Extended style of the control. + CHAR szText[CCHCCTEXT]; // Text of the control. + LANGID lgid; // Language Id of the control's dialog. + WORD wReserved1; // Reserved value. Do not change. +} CCSTYLEA, *LPCCSTYLEA; + +typedef struct tagCCSTYLEW { + DWORD flStyle; // Style of the control. + DWORD flExtStyle; // Extended style of the control. + WCHAR szText[CCHCCTEXT]; // Text of the control. + LANGID lgid; // Language Id of the control's dialog. + WORD wReserved1; // Reserved value. Do not change. +} CCSTYLEW, *LPCCSTYLEW; + +#ifdef UNICODE +#define CCSTYLE CCSTYLEW +#define LPCCSTYLE LPCCSTYLEW +#else +#define CCSTYLE CCSTYLEA +#define LPCCSTYLE LPCCSTYLEA +#endif // UNICODE + + +/* + * The Style function prototype. This will be called when the user + * wants to edit the styles of a custom control. It should display a + * dialog to edit the styles, update the styles in the pccs structure, + * then return TRUE for success. If an error occurs or the user + * cancels the dialog, FALSE should be returned. + */ +typedef BOOL (CALLBACK* LPFNCCSTYLEA)(HWND hwndParent, LPCCSTYLEA pccs); +typedef BOOL (CALLBACK* LPFNCCSTYLEW)(HWND hwndParent, LPCCSTYLEW pccs); + +#ifdef UNICODE +#define LPFNCCSTYLE LPFNCCSTYLEW +#else +#define LPFNCCSTYLE LPFNCCSTYLEA +#endif // UNICODE + + +/* + * The SizeToText function prototype. This will be called if the user + * requests that the custom control be sized to fit it's text. It + * should use the specified styles, text and font to determine how + * large the control must be to accommodate the text, then return this + * value in pixels. The value of -1 should be returned if an error + * occurs. + */ +typedef INT (CALLBACK* LPFNCCSIZETOTEXTA)(DWORD flStyle, DWORD flExtStyle, + HFONT hfont, LPSTR pszText); +typedef INT (CALLBACK* LPFNCCSIZETOTEXTW)(DWORD flStyle, DWORD flExtStyle, + HFONT hfont, LPWSTR pszText); + +#ifdef UNICODE +#define LPFNCCSIZETOTEXT LPFNCCSIZETOTEXTW +#else +#define LPFNCCSIZETOTEXT LPFNCCSIZETOTEXTA +#endif // UNICODE + + +/* + * CCSTYLEFLAG - Custom Control Style Flag structure. A table of these + * structures is used to specify the define strings that match the + * different styles for a custom control. + */ +typedef struct tagCCSTYLEFLAGA { + DWORD flStyle; // Style bits for this style. + DWORD flStyleMask; // Mask for the style. Can be zero. + LPSTR pszStyle; // Points to the style define string. +} CCSTYLEFLAGA, *LPCCSTYLEFLAGA; + +typedef struct tagCCSTYLEFLAGW { + DWORD flStyle; // Style bits for this style. + DWORD flStyleMask; // Mask for the style. Can be zero. + LPWSTR pszStyle; // Points to the style define string. +} CCSTYLEFLAGW, *LPCCSTYLEFLAGW; + +#ifdef UNICODE +#define CCSTYLEFLAG CCSTYLEFLAGW +#define LPCCSTYLEFLAG LPCCSTYLEFLAGW +#else +#define CCSTYLEFLAG CCSTYLEFLAGA +#define LPCCSTYLEFLAG LPCCSTYLEFLAGA +#endif // UNICODE + + +/* + * CCF_* defines. These flags are used for the flOptions field of the + * CCINFO structure, and describe some basic characteristics of the + * custom control. + */ +#define CCF_NOTEXT 0x00000001 // Control cannot have text. + + +/* + * CCINFO - Custom Control Info structure. This structure provides + * the dialog editor with information about the control types that the + * DLL supports. + */ +typedef struct tagCCINFOA { + CHAR szClass[CCHCCCLASS]; // Class name for the control. + DWORD flOptions; // Option flags (CCF_* defines). + CHAR szDesc[CCHCCDESC]; // Short, descriptive text for the ctrl. + UINT cxDefault; // Default width (in dialog units). + UINT cyDefault; // Default height (in dialog units). + DWORD flStyleDefault; // Default style (WS_CHILD | WS_VISIBLE). + DWORD flExtStyleDefault; // Default extended style. + DWORD flCtrlTypeMask; // Mask for control type styles. + CHAR szTextDefault[CCHCCTEXT]; // Default text. + INT cStyleFlags; // Entries in the following style table. + LPCCSTYLEFLAGA aStyleFlags; // Points to style flag table. + LPFNCCSTYLEA lpfnStyle; // Pointer to the Styles function. + LPFNCCSIZETOTEXTA lpfnSizeToText; // Pointer to the SizeToText function. + DWORD dwReserved1; // Reserved. Must be zero. + DWORD dwReserved2; // Reserved. Must be zero. +} CCINFOA, *LPCCINFOA; + +typedef struct tagCCINFOW { + WCHAR szClass[CCHCCCLASS]; // Class name for the control. + DWORD flOptions; // Option flags (CCF_* defines). + WCHAR szDesc[CCHCCDESC]; // Short, descriptive text for the ctrl. + UINT cxDefault; // Default width (in dialog units). + UINT cyDefault; // Default height (in dialog units). + DWORD flStyleDefault; // Default style (WS_CHILD | WS_VISIBLE). + DWORD flExtStyleDefault; // Default extended style. + DWORD flCtrlTypeMask; // Mask for control type styles. + INT cStyleFlags; // Entries in the following style table. + LPCCSTYLEFLAGW aStyleFlags; // Points to style flag table. + WCHAR szTextDefault[CCHCCTEXT]; // Default text. + LPFNCCSTYLEW lpfnStyle; // Pointer to the Styles function. + LPFNCCSIZETOTEXTW lpfnSizeToText; // Pointer to the SizeToText function. + DWORD dwReserved1; // Reserved. Must be zero. + DWORD dwReserved2; // Reserved. Must be zero. +} CCINFOW, *LPCCINFOW; + +#ifdef UNICODE +#define CCINFO CCINFOW +#define LPCCINFO LPCCINFOW +#else +#define CCINFO CCINFOA +#define LPCCINFO LPCCINFOA +#endif // UNICODE + + +/* + * The Info function prototype. This function is the first one + * called by the dialog editor. Custom control DLL's must export + * one or both of the following functions by name (the ordinal + * used for the export does not matter): + * + * UINT CALLBACK CustomControlInfoA(LPCCINFOA acci) + * UINT CALLBACK CustomControlInfoW(LPCCINFOW acci) + * + * This function must return the number of controls that the DLL + * supports, or NULL if an error occurs. If the acci parameter is + * not NULL, it will be pointing to an array of CCINFOA or CCINFOW + * structures that should be filled in with the information about + * the different control types supported by the DLL. + * + * If both functions are present, the CustomControlInfoW function + * will be used by the dialog editor. + */ +typedef UINT (CALLBACK* LPFNCCINFOA)(LPCCINFOA acci); +typedef UINT (CALLBACK* LPFNCCINFOW)(LPCCINFOW acci); + +#ifdef UNICODE +#define LPFNCCINFO LPFNCCINFOW +#else +#define LPFNCCINFO LPFNCCINFOA +#endif // UNICODE + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* _INC_CUSTCNTL */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/D2DErr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/D2DErr.h new file mode 100644 index 0000000000000000000000000000000000000000..188e40f3cfa2695ee1bf0d3cb329f5f6e627a393 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/D2DErr.h @@ -0,0 +1,68 @@ +/*=========================================================================*\ + + Copyright (c) Microsoft Corporation. All rights reserved. + +\*=========================================================================*/ + +#pragma once + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/*=========================================================================*\ + D2D Status Codes +\*=========================================================================*/ + +#define FACILITY_D2D 0x899 + +#define MAKE_D2DHR( sev, code )\ + MAKE_HRESULT( sev, FACILITY_D2D, (code) ) + +#define MAKE_D2DHR_ERR( code )\ + MAKE_D2DHR( 1, code ) + + +//+---------------------------------------------------------------------------- +// +// D2D error codes +// +//------------------------------------------------------------------------------ + +// +// Error codes shared with WINCODECS +// + +// +// The pixel format is not supported. +// +#define D2DERR_UNSUPPORTED_PIXEL_FORMAT WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT + +// +// Error codes that were already returned in prior versions and were part of the +// MIL facility. + +// +// Error codes mapped from WIN32 where there isn't already another HRESULT based +// define +// + +// +// The supplied buffer was too small to accommodate the data. +// +#define D2DERR_INSUFFICIENT_BUFFER HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) + + +// +// The file specified was not found. +// +#define D2DERR_FILE_NOT_FOUND HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) + +// +// D2D specific codes now live in winerror.h +// + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DLNADeviceInterfaceIds.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DLNADeviceInterfaceIds.h new file mode 100644 index 0000000000000000000000000000000000000000..0e9db3ed58dd5612a470833e9f0009d5f7cf5afb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DLNADeviceInterfaceIds.h @@ -0,0 +1,49 @@ +//*@@@+++@@@@****************************************************************** +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//*@@@---@@@@****************************************************************** + +/******************************Module*Header*******************************\ +* +* Module Name: DLNADeviceInterfaceIds.h +* +* DLNA Device Interface Ids +* +\**************************************************************************/ + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#if NTDDI_VERSION >= NTDDI_WIN8 + +#ifndef INITGUID +#define INITGUID +#endif +#include + +// {D0875FB4-2196-4c7a-A63D-E416ADDD60A1} +#ifndef GUID_DEVINTERFACE_DMR +DEFINE_GUID( GUID_DEVINTERFACE_DMR, 0xD0875FB4, 0x2196, 0x4c7a, 0xA6, 0x3D, 0xE4, 0x16, 0xAD, 0xDD, 0x60, 0xA1 ); +#endif + +// {25B4E268-2A05-496e-803B-266837FBDA4B} +#ifndef GUID_DEVINTERFACE_DMP +DEFINE_GUID( GUID_DEVINTERFACE_DMP, 0x25B4E268, 0x2A05, 0x496e, 0x80, 0x3B, 0x26, 0x68, 0x37, 0xFB, 0xDA, 0x4B ); +#endif + +// {C96037AE-A558-4470-B432-115A31B85553} +#ifndef GUID_DEVINTERFACE_DMS +DEFINE_GUID( GUID_DEVINTERFACE_DMS, 0xC96037AE, 0xA558, 0x4470, 0xB4, 0x32, 0x11, 0x5A, 0x31, 0xB8, 0x55, 0x53 ); +#endif + +#endif // NTDDI_VERSION >= NTDDI_WIN8 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DLNAMetadataProviderProperties.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DLNAMetadataProviderProperties.h new file mode 100644 index 0000000000000000000000000000000000000000..dc20358e9b8b5eb21d9e8be0834b82dd8d22c72b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DLNAMetadataProviderProperties.h @@ -0,0 +1,58 @@ +//*@@@+++@@@@****************************************************************** +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//*@@@---@@@@****************************************************************** + +/******************************Module*Header*******************************\ +* +* Module Name: DLNAMetadataProviderProperties.h +* +* DLNA Metadata Plug-In Properties +* +\**************************************************************************/ + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#if NTDDI_VERSION >= NTDDI_WIN8 + +#ifndef INITGUID +#define INITGUID +#endif +#include + +#include + +// Property keys GUID base. +// {88AD39DB-0D0C-4A38-8435-4043826B5C91} + +DEFINE_DEVPROPKEY( DEVPKEY_Device_PacketWakeSupported, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0x0 ); // DEVPROP_TYPE_BOOLEAN +DEFINE_DEVPROPKEY( DEVPKEY_Device_SendPacketWakeSupported, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0x1 ); // DEVPROP_TYPE_BOOLEAN +DEFINE_DEVPROPKEY( DEVPKEY_Device_UDN, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0x6 ); // DEVPROP_TYPE_STRING +DEFINE_DEVPROPKEY( DEVPKEY_Device_SupportsAudio, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0x8 ); // DEVPROP_TYPE_BOOLEAN +DEFINE_DEVPROPKEY( DEVPKEY_Device_SupportsVideo, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0x9 ); // DEVPROP_TYPE_BOOLEAN +DEFINE_DEVPROPKEY( DEVPKEY_Device_SupportsImages, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0xA ); // DEVPROP_TYPE_BOOLEAN +DEFINE_DEVPROPKEY( DEVPKEY_Device_SinkProtocolInfo, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0xE ); // DEVPROP_TYPE_STRING + +// DLNA device class and device capabilities +DEFINE_DEVPROPKEY( DEVPKEY_Device_DLNADOC, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0xF ); // DEVPROP_TYPE_STRING + +// DLNA capabilities +DEFINE_DEVPROPKEY( DEVPKEY_Device_DLNACAP, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0x10 ); // DEVPROP_TYPE_STRING + +DEFINE_DEVPROPKEY( DEVPKEY_Device_SupportsSearch, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0x11 ); // DEVPROP_TYPE_BOOLEAN +DEFINE_DEVPROPKEY( DEVPKEY_Device_SupportsMute, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0x12 ); // DEVPROP_TYPE_BOOLEAN +DEFINE_DEVPROPKEY( DEVPKEY_Device_MaxVolume, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0x13 ); // DEVPROP_TYPE_UINT32 +DEFINE_DEVPROPKEY( DEVPKEY_Device_SupportsSetNextAVT, 0x88AD39DB, 0x0D0C, 0x4A38, 0x84, 0x35, 0x40, 0x43, 0x82, 0x6B, 0x5C, 0x91, 0x14 ); // DEVPROP_TYPE_BOOLEAN + +#endif // NTDDI_VERSION >= NTDDI_WIN8 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSAdmin.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSAdmin.h new file mode 100644 index 0000000000000000000000000000000000000000..c007ffbdc01972c1515f1534a89306658ef06c9b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSAdmin.h @@ -0,0 +1,281 @@ +//+-------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1994 - 1999. +// +// File: dsadmin.h +// +// Contents: DS Admin Object Creation public header +// +//--------------------------------------------------------------------------- + + +// +// CoClass for the Object creation dialog object +// +// {E301A009-F901-11d2-82B9-00C04F68928B} +DEFINE_GUID(CLSID_DsAdminCreateObj, + 0xe301a009, 0xf901, 0x11d2, 0x82, 0xb9, 0x0, 0xc0, 0x4f, 0x68, 0x92, 0x8b); + + +// +// Interface GUIDs +// + + +// {53554A38-F902-11d2-82B9-00C04F68928B} +DEFINE_GUID(IID_IDsAdminCreateObj, + 0x53554a38, 0xf902, 0x11d2, 0x82, 0xb9, 0x0, 0xc0, 0x4f, 0x68, 0x92, 0x8b); + +// {F2573587-E6FC-11d2-82AF-00C04F68928B} +DEFINE_GUID(IID_IDsAdminNewObj, + 0xf2573587, 0xe6fc, 0x11d2, 0x82, 0xaf, 0x0, 0xc0, 0x4f, 0x68, 0x92, 0x8b); + +// {BE2B487E-F904-11d2-82B9-00C04F68928B} +DEFINE_GUID(IID_IDsAdminNewObjPrimarySite, +0xbe2b487e, 0xf904, 0x11d2, 0x82, 0xb9, 0x0, 0xc0, 0x4f, 0x68, 0x92, 0x8b); + + +// {6088EAE2-E7BF-11d2-82AF-00C04F68928B} +DEFINE_GUID(IID_IDsAdminNewObjExt, + 0x6088eae2, 0xe7bf, 0x11d2, 0x82, 0xaf, 0x0, 0xc0, 0x4f, 0x68, 0x92, 0x8b); + + +// {E4A2B8B3-5A18-11d2-97C1-00A0C9A06D2D} +DEFINE_GUID(IID_IDsAdminNotifyHandler, + 0xe4a2b8b3, 0x5a18, 0x11d2, 0x97, 0xc1, 0x0, 0xa0, 0xc9, 0xa0, 0x6d, 0x2d); + + +#ifndef _DSADMIN_H +#define _DSADMIN_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +// ---------------------------------------------------------------------------- +// +// Interface: IDsAdminCreateObj +// +// Implemented by the object (implemented by the system) CLSID_DsAdminCreateObj +// +// Used by: any client needing to invoke the creation UI +// + + +#undef INTERFACE +#define INTERFACE IDsAdminCreateObj + +DECLARE_INTERFACE_(IDsAdminCreateObj, IUnknown) +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + // *** IDsAdminCreateObj methods *** + STDMETHOD(Initialize)(THIS_ /*IN*/ IADsContainer* pADsContainerObj, + /*IN*/ IADs* pADsCopySource, + /*IN*/ LPCWSTR lpszClassName) PURE; + STDMETHOD(CreateModal)(THIS_ /*IN*/ HWND hwndParent, + /*OUT*/ IADs** ppADsObj) PURE; +}; + + + + + + +//--------------------------------------------------------------------------- +// +// Interface: IDsAdminNewObj +// +// Implemented by: DS Admin +// +// Used by: creation extension in proc server (both primary and regular) +// + +#undef INTERFACE +#define INTERFACE IDsAdminNewObj + +DECLARE_INTERFACE_(IDsAdminNewObj, IUnknown) +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + // *** IDsAdminNewObj methods *** + STDMETHOD(SetButtons)(THIS_ /*IN*/ ULONG nCurrIndex, /*IN*/ BOOL bValid) PURE; + STDMETHOD(GetPageCounts)(THIS_ /*OUT*/ LONG* pnTotal, + /*OUT*/ LONG* pnStartIndex) PURE; +}; + + + + + +//--------------------------------------------------------------------------- +// +// Interface: IDsAdminNewObjPrimarySite +// +// Implemented by: DS Admin +// +// Used by: creation extension in proc server (primary only) +// + +#undef INTERFACE +#define INTERFACE IDsAdminNewObjPrimarySite + +DECLARE_INTERFACE_(IDsAdminNewObjPrimarySite, IUnknown) +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + + // *** IDsAdminNewObjPrimarySite methods *** + STDMETHOD(CreateNew)(THIS_ /*IN*/ LPCWSTR pszName) PURE; + STDMETHOD(Commit)(THIS ) PURE; +}; + + + +// +// struct passed to IDsAdminNewObjExt::Initialize() +// +// it contains information regarding UI look +// + +typedef struct +{ + DWORD dwSize; // size of struct, for versioning + HICON hObjClassIcon; // class icon for the object to be created + LPWSTR lpszWizTitle; // title of the wizard + LPWSTR lpszContDisplayName; // container display name (canonical name) +} DSA_NEWOBJ_DISPINFO, * LPDSA_NEWOBJ_DISPINFO; + + + + +// +// context flags passed to IDsAdminNewObjExt::OnError() and to IDsAdminNewObjExt::WriteData() +// + +#define DSA_NEWOBJ_CTX_PRECOMMIT 0x00000001 // before SetInfo() +#define DSA_NEWOBJ_CTX_COMMIT 0x00000002 // SetInfo(), commit phase +#define DSA_NEWOBJ_CTX_POSTCOMMIT 0x00000003 // after SetInfo() +#define DSA_NEWOBJ_CTX_CLEANUP 0x00000004 // on post commit fail + + + +//--------------------------------------------------------------------------- +// +// Interface: IDsAdminNewObjExt +// +// Implemented by: creation extension in proc server (both primary and regular) +// +// Used by: DS Admin +// + +#undef INTERFACE +#define INTERFACE IDsAdminNewObjExt + +DECLARE_INTERFACE_(IDsAdminNewObjExt, IUnknown) +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + + // *** IDsAdminNewObjExt methods *** + STDMETHOD(Initialize)(THIS_ /*IN*/ IADsContainer* pADsContainerObj, + /*IN*/ IADs* pADsCopySource, + /*IN*/ LPCWSTR lpszClassName, + /*IN*/ IDsAdminNewObj* pDsAdminNewObj, + /*IN*/ LPDSA_NEWOBJ_DISPINFO pDispInfo) PURE; + + STDMETHOD(AddPages)(THIS_ /*IN*/ LPFNADDPROPSHEETPAGE lpfnAddPage, + /*IN*/ LPARAM lParam) PURE; + + STDMETHOD(SetObject)(THIS_ /*IN*/ IADs* pADsObj) PURE; + + STDMETHOD(WriteData)(THIS_ /*IN*/ HWND hWnd, + /*IN*/ ULONG uContext) PURE; + + STDMETHOD(OnError)(THIS_ /*IN*/ HWND hWnd, + /*IN*/ HRESULT hr, + /*IN*/ ULONG uContext) PURE; + + STDMETHOD(GetSummaryInfo)(THIS_ /*OUT*/BSTR* pBstrText) PURE; +}; + + +// +// Notification opcodes for IDsAdminNotifyHandler +// + +#define DSA_NOTIFY_DEL 0x00000001 // delete +#define DSA_NOTIFY_REN 0x00000002 // rename +#define DSA_NOTIFY_MOV 0x00000004 // move +#define DSA_NOTIFY_PROP 0x00000008 // property change + +#define DSA_NOTIFY_ALL (DSA_NOTIFY_DEL|DSA_NOTIFY_REN|DSA_NOTIFY_MOV|DSA_NOTIFY_PROP) + +// +// TODO: add explaination +// +// flags to handle additional data +// + +#define DSA_NOTIFY_FLAG_ADDITIONAL_DATA 0x00000002 //process additional extension data? +#define DSA_NOTIFY_FLAG_FORCE_ADDITIONAL_DATA 0x00000001 //operation forced + + + +//--------------------------------------------------------------------------- +// +// Interface: IDsAdminNotifyHandler +// +// Implemented by: notification handler in proc server +// +// Used by: DS Admin +// + +#undef INTERFACE +#define INTERFACE IDsAdminNotifyHandler + + +DECLARE_INTERFACE_(IDsAdminNotifyHandler, IUnknown) +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + // IDsAdminNotifyHandler methods + STDMETHOD(Initialize)(THIS_ /*IN*/ IDataObject* pExtraInfo, + /*OUT*/ ULONG* puEventFlags) PURE; + STDMETHOD(Begin)(THIS_ /*IN*/ ULONG uEvent, + /*IN*/ IDataObject* pArg1, + /*IN*/ IDataObject* pArg2, + /*OUT*/ ULONG* puFlags, + /*OUT*/ BSTR* pBstr) PURE; + + STDMETHOD(Notify)(THIS_ /*IN*/ ULONG nItem, /*IN*/ ULONG uFlags) PURE; + + STDMETHOD(End)(THIS) PURE; +}; + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _DSADMIN_H + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSAttrib.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSAttrib.h new file mode 100644 index 0000000000000000000000000000000000000000..e6fa03e77bbe81b0216a6395e861263f180b2d16 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSAttrib.h @@ -0,0 +1,525 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dsattrib_h__ +#define __dsattrib_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAttributeSet_FWD_DEFINED__ +#define __IAttributeSet_FWD_DEFINED__ +typedef interface IAttributeSet IAttributeSet; + +#endif /* __IAttributeSet_FWD_DEFINED__ */ + + +#ifndef __IAttributeGet_FWD_DEFINED__ +#define __IAttributeGet_FWD_DEFINED__ +typedef interface IAttributeGet IAttributeGet; + +#endif /* __IAttributeGet_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "objidl.h" +#include "strmif.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dsattrib_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + +extern RPC_IF_HANDLE __MIDL_itf_dsattrib_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dsattrib_0000_0000_v0_0_s_ifspec; + +#ifndef __IAttributeSet_INTERFACE_DEFINED__ +#define __IAttributeSet_INTERFACE_DEFINED__ + +/* interface IAttributeSet */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAttributeSet; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("583ec3cc-4960-4857-982b-41a33ea0a006") + IAttributeSet : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetAttrib( + /* [in] */ GUID guidAttribute, + /* [in] */ __RPC__in BYTE *pbAttribute, + /* [in] */ DWORD dwAttributeLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAttributeSetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAttributeSet * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAttributeSet * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAttributeSet * This); + + DECLSPEC_XFGVIRT(IAttributeSet, SetAttrib) + HRESULT ( STDMETHODCALLTYPE *SetAttrib )( + __RPC__in IAttributeSet * This, + /* [in] */ GUID guidAttribute, + /* [in] */ __RPC__in BYTE *pbAttribute, + /* [in] */ DWORD dwAttributeLength); + + END_INTERFACE + } IAttributeSetVtbl; + + interface IAttributeSet + { + CONST_VTBL struct IAttributeSetVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAttributeSet_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAttributeSet_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAttributeSet_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAttributeSet_SetAttrib(This,guidAttribute,pbAttribute,dwAttributeLength) \ + ( (This)->lpVtbl -> SetAttrib(This,guidAttribute,pbAttribute,dwAttributeLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAttributeSet_INTERFACE_DEFINED__ */ + + +#ifndef __IAttributeGet_INTERFACE_DEFINED__ +#define __IAttributeGet_INTERFACE_DEFINED__ + +/* interface IAttributeGet */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAttributeGet; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("52dbd1ec-e48f-4528-9232-f442a68f0ae1") + IAttributeGet : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out LONG *plCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAttribIndexed( + /* [in] */ LONG lIndex, + /* [out] */ __RPC__out GUID *pguidAttribute, + /* [out][in] */ __RPC__inout BYTE *pbAttribute, + /* [out][in] */ __RPC__inout DWORD *pdwAttributeLength) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAttrib( + /* [in] */ GUID guidAttribute, + /* [out][in] */ __RPC__inout BYTE *pbAttribute, + /* [out][in] */ __RPC__inout DWORD *pdwAttributeLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAttributeGetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAttributeGet * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAttributeGet * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAttributeGet * This); + + DECLSPEC_XFGVIRT(IAttributeGet, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IAttributeGet * This, + /* [out] */ __RPC__out LONG *plCount); + + DECLSPEC_XFGVIRT(IAttributeGet, GetAttribIndexed) + HRESULT ( STDMETHODCALLTYPE *GetAttribIndexed )( + __RPC__in IAttributeGet * This, + /* [in] */ LONG lIndex, + /* [out] */ __RPC__out GUID *pguidAttribute, + /* [out][in] */ __RPC__inout BYTE *pbAttribute, + /* [out][in] */ __RPC__inout DWORD *pdwAttributeLength); + + DECLSPEC_XFGVIRT(IAttributeGet, GetAttrib) + HRESULT ( STDMETHODCALLTYPE *GetAttrib )( + __RPC__in IAttributeGet * This, + /* [in] */ GUID guidAttribute, + /* [out][in] */ __RPC__inout BYTE *pbAttribute, + /* [out][in] */ __RPC__inout DWORD *pdwAttributeLength); + + END_INTERFACE + } IAttributeGetVtbl; + + interface IAttributeGet + { + CONST_VTBL struct IAttributeGetVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAttributeGet_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAttributeGet_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAttributeGet_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAttributeGet_GetCount(This,plCount) \ + ( (This)->lpVtbl -> GetCount(This,plCount) ) + +#define IAttributeGet_GetAttribIndexed(This,lIndex,pguidAttribute,pbAttribute,pdwAttributeLength) \ + ( (This)->lpVtbl -> GetAttribIndexed(This,lIndex,pguidAttribute,pbAttribute,pdwAttributeLength) ) + +#define IAttributeGet_GetAttrib(This,guidAttribute,pbAttribute,pdwAttributeLength) \ + ( (This)->lpVtbl -> GetAttrib(This,guidAttribute,pbAttribute,pdwAttributeLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAttributeGet_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dsattrib_0000_0002 */ +/* [local] */ + +// ------------------------------------------------------ +// GUID: DSATTRIB_UDCRTag +// ------------------------------------------------------ +typedef struct _UDCR_TAG { + BYTE bVersion ; + BYTE KID [24 + 1] ; + ULONGLONG ullBaseCounter ; + ULONGLONG ullBaseCounterRange ; + BOOL fScrambled ; + BYTE bStreamMark ; + DWORD dwReserved1 ; + DWORD dwReserved2 ; +} UDCR_TAG ; +// ------------------------------------------------------ +// GUID: DSATTRIB_PicSampleSeq +// ------------------------------------------------------ +// Older defines with mnemonics specific to MPEG-2 video: +#define SAMPLE_SEQ_SEQUENCE_HEADER 1 +#define SAMPLE_SEQ_GOP_HEADER 2 +#define SAMPLE_SEQ_PICTURE_HEADER 3 +// Latest defines with mnemonics generic to MPEG-2 and H.264 video: +#define SAMPLE_SEQ_SEQUENCE_START SAMPLE_SEQ_SEQUENCE_HEADER +#define SAMPLE_SEQ_SEEK_POINT SAMPLE_SEQ_GOP_HEADER +#define SAMPLE_SEQ_FRAME_START SAMPLE_SEQ_PICTURE_HEADER +// Older defines with mnemonics specific to MPEG-2 video: +#define SAMPLE_SEQ_CONTENT_UNKNOWN 0 +#define SAMPLE_SEQ_CONTENT_I_FRAME 1 +#define SAMPLE_SEQ_CONTENT_P_FRAME 2 +#define SAMPLE_SEQ_CONTENT_B_FRAME 3 +// Latest defines with mnemonics generic to MPEG-2 and H.264 video: +#define SAMPLE_SEQ_CONTENT_STANDALONE_FRAME SAMPLE_SEQ_CONTENT_I_FRAME +#define SAMPLE_SEQ_CONTENT_REF_FRAME SAMPLE_SEQ_CONTENT_P_FRAME +#define SAMPLE_SEQ_CONTENT_NONREF_FRAME SAMPLE_SEQ_CONTENT_B_FRAME +typedef struct _PIC_SEQ_SAMPLE { + DWORD + Content : 3, // SAMPLE_CONTENT_* + Start : 1, // '1' if the sample is a PictureSampleSequence start + FrameRate : 4, // see below (h.262, table 6-4) + InvalidVA : 1, // 0 normally. 1 if VA attempted but failed + Reserved : 19, // reserved; shall have value 0 + Version : 4 ; // 1 [0 means InvalidVA defaults to 0] +} PIC_SEQ_SAMPLE, *PPIC_SEQ_SAMPLE ; +// Frame Rate +// (see h.262, table 6-4) +// +// 0000 reserved (ignore field value) +// 0001 23.976 +// 0010 24 +// 0011 25 +// 0100 29.97 +// 0101 30 +// 0110 50 +// 0111 59.94 +// 1000 60 +typedef struct _SAMPLE_SEQ_OFFSET { + DWORD + Type : 4, // SAMPLE_SEQ_*; 0 means not used + Offset : 20, // downstream byte offset; 0xfffff means > 2^20-1 + Reserved : 8 ; // reserved; o +} SAMPLE_SEQ_OFFSET ; +#define OFFSET_MARKER_COUNT(attr_len) \ + ((attr_len - sizeof (PIC_SEQ_SAMPLE)) / sizeof (SAMPLE_SEQ_OFFSET)) +#define PIC_SEQ_SAMPLE_ATTR_LEN(cOffsets) (sizeof (PIC_SEQ_SAMPLE) + (cOffsets) * sizeof (SAMPLE_SEQ_OFFSET)) +// ------------------------------------------------------ +// GUID: DSATTRIB_OptionalVideoAttributes +// ------------------------------------------------------ + +typedef enum VA_VIDEO_FORMAT +{ + // Original video format known: + + VA_VIDEO_COMPONENT = 0, + VA_VIDEO_PAL = 1, + VA_VIDEO_NTSC = 2, + VA_VIDEO_SECAM = 3, + VA_VIDEO_MAC = 4, + + // Original video format not known: + + VA_VIDEO_UNSPECIFIED = 5 + + // The MPEG-2 video and H.264 specs reserve values + // 6 and 7 for future use. +} VA_VIDEO_FORMAT; + +typedef enum VA_COLOR_PRIMARIES +{ + // 0 is reserved by both H.264 and MPEG-2 video + + VA_PRIMARIES_ITU_R_BT_709 = 1, + + // Use this value if the color primaries system is not + // known or non-standard: + + VA_PRIMARIES_UNSPECIFIED = 2, + + // 3 is reserved by both H.264 and MPEG-2 video + + VA_PRIMARIES_ITU_R_BT_470_SYSTEM_M = 4, + VA_PRIMARIES_ITU_R_BT_470_SYSTEM_B_G = 5, + VA_PRIMARIES_SMPTE_170M = 6, + VA_PRIMARIES_SMPTE_240M = 7, + VA_PRIMARIES_H264_GENERIC_FILM = 8 + + // Values in the range 9 to 255 are reserved by H.264. Values in + // the range 8 to 255 are reserved by MPEG-2 video +} VA_COLOR_PRIMARIES; + +typedef enum VA_TRANSFER_CHARACTERISTICS +{ + // The value 0 is reserved by both MPEG-2 video and H.264 + + VA_TRANSFER_CHARACTERISTICS_ITU_R_BT_709 = 1, + + // Use the value below of the transfer characteristics + // are unknown or non-standard: + + VA_TRANSFER_CHARACTERISTICS_UNSPECIFIED = 2, + + // The value 3 is reserved by both MPEG-2 video and H.264 + + VA_TRANSFER_CHARACTERISTICS_ITU_R_BT_470_SYSTEM_M = 4, + VA_TRANSFER_CHARACTERISTICS_ITU_R_BT_470_SYSTEM_B_G = 5, + VA_TRANSFER_CHARACTERISTICS_SMPTE_170M = 6, + VA_TRANSFER_CHARACTERISTICS_SMPTE_240M = 7, + VA_TRANSFER_CHARACTERISTICS_LINEAR = 8, + VA_TRANSFER_CHARACTERISTICS_H264_LOG_100_TO_1 = 9, + VA_TRANSFER_CHARACTERISTICS_H264_LOG_316_TO_1 = 10 + + // The values 11 to 255 are reserved by H.264. The values + // 9 to 255 are reserved by MPEG-2 video. +} VA_TRANSFER_CHARACTERISTICS; + +typedef enum VA_MATRIX_COEFFICIENTS +{ + VA_MATRIX_COEFF_H264_RGB = 0, + VA_MATRIX_COEFF_ITU_R_BT_709 = 1, + + // Use the value below if the matrix coefficients are + // unknown or non-standard: + + VA_MATRIX_COEFF_UNSPECIFIED = 2, + + // The value 3 is reserved by both MPEG-2 video and H.264 + + VA_MATRIX_COEFF_FCC = 4, + VA_MATRIX_COEFF_ITU_R_BT_470_SYSTEM_B_G = 5, + VA_MATRIX_COEFF_SMPTE_170M = 6, + VA_MATRIX_COEFF_SMPTE_240M = 7, + VA_MATRIX_COEFF_H264_YCgCo = 8 + + // The values 9 to 255 are reserved by H.264. The values 8 to 255 + // are reserved by MPEG-2 video. +} VA_MATRIX_COEFFICIENTS; + +typedef struct VA_OPTIONAL_VIDEO_PROPERTIES +{ + WORD dwPictureHeight ; + WORD dwPictureWidth ; + WORD dwAspectRatioX ; + WORD dwAspectRatioY ; + VA_VIDEO_FORMAT VAVideoFormat; + VA_COLOR_PRIMARIES VAColorPrimaries; + VA_TRANSFER_CHARACTERISTICS VATransferCharacteristics; + VA_MATRIX_COEFFICIENTS VAMatrixCoefficients; +} VA_OPTIONAL_VIDEO_PROPERTIES; +// ------------------------------------------------------ +// GUID: DSATTRIB_TRANSPORT_PROPERTIES +// ------------------------------------------------------ +typedef struct _TRANSPORT_PROPERTIES { + ULONG PID ; + REFERENCE_TIME PCR ; + union { + struct _Others { + LONGLONG + TransportScramblingControl : 8 , + Reserved : 56 ; + } Others ; + LONGLONG Value ; + } Fields ; +} TRANSPORT_PROPERTIES ; +// ------------------------------------------------------ +// GUID: DSATTRIB_PBDATAG_ATTRIBUTE +// ------------------------------------------------------ +typedef struct _PBDA_TAG_ATTRIBUTE { + GUID TableUUId ; + BYTE TableId ; + WORD VersionNo ; + DWORD TableDataSize ; + BYTE TableData [1] ; +} PBDA_TAG_ATTRIBUTE ; +// ------------------------------------------------------ +// GUID: DSATTRIB_CAPTURE_STREAMTIME +// ------------------------------------------------------ +typedef struct _CAPTURE_STREAMTIME { + REFERENCE_TIME StreamTime ; +} CAPTURE_STREAMTIME ; +// ------------------------------------------------------ +// GUID: DSATTRIB_DSHOW_STREAM_DESC +// ------------------------------------------------------ +typedef struct _DSHOW_STREAM_DESC { + DWORD VersionNo ; + DWORD StreamId ; + BOOL Default ; + BOOL Creation ; + DWORD Reserved ; +} DSHOW_STREAM_DESC ; +// ------------------------------------------------------ +// GUID: DSATTRIB_SAMPLE_LIVE_STREAM_TIME +// ------------------------------------------------------ +typedef struct _SAMPLE_LIVE_STREAM_TIME{ + ULONGLONG qwStreamTime; + ULONGLONG qwLiveTime; +}SAMPLE_LIVE_STREAM_TIME ; +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dsattrib_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dsattrib_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSAttrib.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSAttrib.idl new file mode 100644 index 0000000000000000000000000000000000000000..b826e7293b5ee010adc1a25d5bea26f357ae3ddc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSAttrib.idl @@ -0,0 +1,314 @@ + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl" ; +import "wtypes.idl" ; +import "objidl.idl"; +import "strmif.idl" ; + +// ============================================================================ +// interfaces + +interface IAttributeSet ; +interface IAttributeGet ; + +/*++ + ============================================================================ + ============================================================================ + sample attribute interfaces +--*/ + +[ + object, + uuid(583ec3cc-4960-4857-982b-41a33ea0a006), + pointer_default(unique) +] +interface IAttributeSet : IUnknown +{ + HRESULT + SetAttrib ( + [in] GUID guidAttribute, + [in] BYTE * pbAttribute, + [in] DWORD dwAttributeLength + ) ; +} ; + +[ + object, + uuid(52dbd1ec-e48f-4528-9232-f442a68f0ae1), + pointer_default(unique) +] +interface IAttributeGet : IUnknown +{ + HRESULT + GetCount ( + [out] LONG * plCount + ) ; + + HRESULT + GetAttribIndexed ( + [in] LONG lIndex, // 0-based + [out] GUID * pguidAttribute, + [in, out] BYTE * pbAttribute, + [in, out] DWORD * pdwAttributeLength + ) ; + + HRESULT + GetAttrib ( + [in] GUID guidAttribute, + [in, out] BYTE * pbAttribute, + [in, out] DWORD * pdwAttributeLength + ) ; +} ; + +/*++ + ============================================================================ + ============================================================================ + well-known attributes +--*/ + +// ---------------------------------------------------------------------------- +// UDCR attribute + +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("// GUID: DSATTRIB_UDCRTag") +cpp_quote ("// ------------------------------------------------------") + +cpp_quote ("typedef struct _UDCR_TAG {") +cpp_quote (" BYTE bVersion ;") +cpp_quote (" BYTE KID [24 + 1] ;") +cpp_quote (" ULONGLONG ullBaseCounter ;") +cpp_quote (" ULONGLONG ullBaseCounterRange ;") +cpp_quote (" BOOL fScrambled ;") +cpp_quote (" BYTE bStreamMark ;") +cpp_quote (" DWORD dwReserved1 ;") +cpp_quote (" DWORD dwReserved2 ;") +cpp_quote ("} UDCR_TAG ;") + +// ---------------------------------------------------------------------------- +// mpeg2 video analysis attribute + +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("// GUID: DSATTRIB_PicSampleSeq") +cpp_quote ("// ------------------------------------------------------") + +cpp_quote ("// Older defines with mnemonics specific to MPEG-2 video:") +cpp_quote ("#define SAMPLE_SEQ_SEQUENCE_HEADER 1") +cpp_quote ("#define SAMPLE_SEQ_GOP_HEADER 2") +cpp_quote ("#define SAMPLE_SEQ_PICTURE_HEADER 3") + +cpp_quote ("// Latest defines with mnemonics generic to MPEG-2 and H.264 video:") +cpp_quote ("#define SAMPLE_SEQ_SEQUENCE_START SAMPLE_SEQ_SEQUENCE_HEADER") +cpp_quote ("#define SAMPLE_SEQ_SEEK_POINT SAMPLE_SEQ_GOP_HEADER") +cpp_quote ("#define SAMPLE_SEQ_FRAME_START SAMPLE_SEQ_PICTURE_HEADER") + +cpp_quote ("// Older defines with mnemonics specific to MPEG-2 video:") +cpp_quote ("#define SAMPLE_SEQ_CONTENT_UNKNOWN 0") +cpp_quote ("#define SAMPLE_SEQ_CONTENT_I_FRAME 1") +cpp_quote ("#define SAMPLE_SEQ_CONTENT_P_FRAME 2") +cpp_quote ("#define SAMPLE_SEQ_CONTENT_B_FRAME 3") + +cpp_quote ("// Latest defines with mnemonics generic to MPEG-2 and H.264 video:") +cpp_quote ("#define SAMPLE_SEQ_CONTENT_STANDALONE_FRAME SAMPLE_SEQ_CONTENT_I_FRAME") +cpp_quote ("#define SAMPLE_SEQ_CONTENT_REF_FRAME SAMPLE_SEQ_CONTENT_P_FRAME") +cpp_quote ("#define SAMPLE_SEQ_CONTENT_NONREF_FRAME SAMPLE_SEQ_CONTENT_B_FRAME") + +cpp_quote ("typedef struct _PIC_SEQ_SAMPLE {") +cpp_quote (" DWORD") +cpp_quote (" Content : 3, // SAMPLE_CONTENT_*") +cpp_quote (" Start : 1, // '1' if the sample is a PictureSampleSequence start") +cpp_quote (" FrameRate : 4, // see below (h.262, table 6-4)") +cpp_quote (" InvalidVA : 1, // 0 normally. 1 if VA attempted but failed") +cpp_quote (" Reserved : 19, // reserved; shall have value 0") +cpp_quote (" Version : 4 ; // 1 [0 means InvalidVA defaults to 0]") +cpp_quote ("} PIC_SEQ_SAMPLE, *PPIC_SEQ_SAMPLE ;") + +cpp_quote ("// Frame Rate") +cpp_quote ("// (see h.262, table 6-4)") +cpp_quote ("//") +cpp_quote ("// 0000 reserved (ignore field value)") +cpp_quote ("// 0001 23.976") +cpp_quote ("// 0010 24") +cpp_quote ("// 0011 25") +cpp_quote ("// 0100 29.97") +cpp_quote ("// 0101 30") +cpp_quote ("// 0110 50") +cpp_quote ("// 0111 59.94") +cpp_quote ("// 1000 60") + +cpp_quote ("typedef struct _SAMPLE_SEQ_OFFSET {") +cpp_quote (" DWORD") +cpp_quote (" Type : 4, // SAMPLE_SEQ_*; 0 means not used") +cpp_quote (" Offset : 20, // downstream byte offset; 0xfffff means > 2^20-1") +cpp_quote (" Reserved : 8 ; // reserved; o") +cpp_quote ("} SAMPLE_SEQ_OFFSET ;") + +cpp_quote ("#define OFFSET_MARKER_COUNT(attr_len) \\") +cpp_quote (" ((attr_len - sizeof (PIC_SEQ_SAMPLE)) / sizeof (SAMPLE_SEQ_OFFSET))") + +cpp_quote ("#define PIC_SEQ_SAMPLE_ATTR_LEN(cOffsets) (sizeof (PIC_SEQ_SAMPLE) + (cOffsets) * sizeof (SAMPLE_SEQ_OFFSET))") + +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("// GUID: DSATTRIB_OptionalVideoAttributes") +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("") +cpp_quote ("typedef enum VA_VIDEO_FORMAT") +cpp_quote ("{") +cpp_quote (" // Original video format known:") +cpp_quote ("") +cpp_quote (" VA_VIDEO_COMPONENT = 0,") +cpp_quote (" VA_VIDEO_PAL = 1,") +cpp_quote (" VA_VIDEO_NTSC = 2,") +cpp_quote (" VA_VIDEO_SECAM = 3,") +cpp_quote (" VA_VIDEO_MAC = 4,") +cpp_quote ("") +cpp_quote (" // Original video format not known:") +cpp_quote ("") +cpp_quote (" VA_VIDEO_UNSPECIFIED = 5") +cpp_quote ("") +cpp_quote (" // The MPEG-2 video and H.264 specs reserve values") +cpp_quote (" // 6 and 7 for future use. ") +cpp_quote ("} VA_VIDEO_FORMAT;") +cpp_quote ("") +cpp_quote ("typedef enum VA_COLOR_PRIMARIES") +cpp_quote ("{") +cpp_quote (" // 0 is reserved by both H.264 and MPEG-2 video") +cpp_quote ("") +cpp_quote (" VA_PRIMARIES_ITU_R_BT_709 = 1,") +cpp_quote ("") +cpp_quote (" // Use this value if the color primaries system is not") +cpp_quote (" // known or non-standard:") +cpp_quote ("") +cpp_quote (" VA_PRIMARIES_UNSPECIFIED = 2, ") +cpp_quote ("") +cpp_quote (" // 3 is reserved by both H.264 and MPEG-2 video") +cpp_quote ("") +cpp_quote (" VA_PRIMARIES_ITU_R_BT_470_SYSTEM_M = 4,") +cpp_quote (" VA_PRIMARIES_ITU_R_BT_470_SYSTEM_B_G = 5,") +cpp_quote (" VA_PRIMARIES_SMPTE_170M = 6,") +cpp_quote (" VA_PRIMARIES_SMPTE_240M = 7,") +cpp_quote (" VA_PRIMARIES_H264_GENERIC_FILM = 8") +cpp_quote ("") +cpp_quote (" // Values in the range 9 to 255 are reserved by H.264. Values in ") +cpp_quote (" // the range 8 to 255 are reserved by MPEG-2 video") +cpp_quote ("} VA_COLOR_PRIMARIES;") +cpp_quote ("") +cpp_quote ("typedef enum VA_TRANSFER_CHARACTERISTICS") +cpp_quote ("{") +cpp_quote (" // The value 0 is reserved by both MPEG-2 video and H.264") +cpp_quote ("") +cpp_quote (" VA_TRANSFER_CHARACTERISTICS_ITU_R_BT_709 = 1,") +cpp_quote ("") +cpp_quote (" // Use the value below of the transfer characteristics") +cpp_quote (" // are unknown or non-standard:") +cpp_quote ("") +cpp_quote (" VA_TRANSFER_CHARACTERISTICS_UNSPECIFIED = 2, ") +cpp_quote ("") +cpp_quote (" // The value 3 is reserved by both MPEG-2 video and H.264") +cpp_quote ("") +cpp_quote (" VA_TRANSFER_CHARACTERISTICS_ITU_R_BT_470_SYSTEM_M = 4,") +cpp_quote (" VA_TRANSFER_CHARACTERISTICS_ITU_R_BT_470_SYSTEM_B_G = 5,") +cpp_quote (" VA_TRANSFER_CHARACTERISTICS_SMPTE_170M = 6,") +cpp_quote (" VA_TRANSFER_CHARACTERISTICS_SMPTE_240M = 7,") +cpp_quote (" VA_TRANSFER_CHARACTERISTICS_LINEAR = 8,") +cpp_quote (" VA_TRANSFER_CHARACTERISTICS_H264_LOG_100_TO_1 = 9,") +cpp_quote (" VA_TRANSFER_CHARACTERISTICS_H264_LOG_316_TO_1 = 10") +cpp_quote ("") +cpp_quote (" // The values 11 to 255 are reserved by H.264. The values") +cpp_quote (" // 9 to 255 are reserved by MPEG-2 video.") +cpp_quote ("} VA_TRANSFER_CHARACTERISTICS;") +cpp_quote ("") +cpp_quote ("typedef enum VA_MATRIX_COEFFICIENTS") +cpp_quote ("{") +cpp_quote (" VA_MATRIX_COEFF_H264_RGB = 0,") +cpp_quote (" VA_MATRIX_COEFF_ITU_R_BT_709 = 1,") +cpp_quote ("") +cpp_quote (" // Use the value below if the matrix coefficients are") +cpp_quote (" // unknown or non-standard:") +cpp_quote ("") +cpp_quote (" VA_MATRIX_COEFF_UNSPECIFIED = 2,") +cpp_quote ("") +cpp_quote (" // The value 3 is reserved by both MPEG-2 video and H.264") +cpp_quote ("") +cpp_quote (" VA_MATRIX_COEFF_FCC = 4,") +cpp_quote (" VA_MATRIX_COEFF_ITU_R_BT_470_SYSTEM_B_G = 5,") +cpp_quote (" VA_MATRIX_COEFF_SMPTE_170M = 6,") +cpp_quote (" VA_MATRIX_COEFF_SMPTE_240M = 7,") +cpp_quote (" VA_MATRIX_COEFF_H264_YCgCo = 8") +cpp_quote ("") +cpp_quote (" // The values 9 to 255 are reserved by H.264. The values 8 to 255") +cpp_quote (" // are reserved by MPEG-2 video.") +cpp_quote ("} VA_MATRIX_COEFFICIENTS;") +cpp_quote ("") +cpp_quote ("typedef struct VA_OPTIONAL_VIDEO_PROPERTIES") +cpp_quote ("{") +cpp_quote (" WORD dwPictureHeight ;") +cpp_quote (" WORD dwPictureWidth ;") +cpp_quote (" WORD dwAspectRatioX ;") +cpp_quote (" WORD dwAspectRatioY ;") +cpp_quote (" VA_VIDEO_FORMAT VAVideoFormat;") +cpp_quote (" VA_COLOR_PRIMARIES VAColorPrimaries;") +cpp_quote (" VA_TRANSFER_CHARACTERISTICS VATransferCharacteristics;") +cpp_quote (" VA_MATRIX_COEFFICIENTS VAMatrixCoefficients;") +cpp_quote ("} VA_OPTIONAL_VIDEO_PROPERTIES;") + +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("// GUID: DSATTRIB_TRANSPORT_PROPERTIES") +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("typedef struct _TRANSPORT_PROPERTIES {") +cpp_quote (" ULONG PID ;") +cpp_quote (" REFERENCE_TIME PCR ;") +cpp_quote (" union {") +cpp_quote (" struct _Others {") +cpp_quote (" LONGLONG ") +cpp_quote (" TransportScramblingControl : 8 ,") +cpp_quote (" Reserved : 56 ;") +cpp_quote (" } Others ;") +cpp_quote (" LONGLONG Value ;") +cpp_quote (" } Fields ;") +cpp_quote ("} TRANSPORT_PROPERTIES ;") + +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("// GUID: DSATTRIB_PBDATAG_ATTRIBUTE") +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("typedef struct _PBDA_TAG_ATTRIBUTE {") +cpp_quote (" GUID TableUUId ;") +cpp_quote (" BYTE TableId ;") +cpp_quote (" WORD VersionNo ;") +cpp_quote (" DWORD TableDataSize ;") +cpp_quote (" BYTE TableData [1] ;") +cpp_quote ("} PBDA_TAG_ATTRIBUTE ;") + +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("// GUID: DSATTRIB_CAPTURE_STREAMTIME") +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("typedef struct _CAPTURE_STREAMTIME {") +cpp_quote (" REFERENCE_TIME StreamTime ;") +cpp_quote ("} CAPTURE_STREAMTIME ;") + +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("// GUID: DSATTRIB_DSHOW_STREAM_DESC") +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("typedef struct _DSHOW_STREAM_DESC {") +cpp_quote (" DWORD VersionNo ;") +cpp_quote (" DWORD StreamId ;") +cpp_quote (" BOOL Default ;") +cpp_quote (" BOOL Creation ;") +cpp_quote (" DWORD Reserved ;") +cpp_quote ("} DSHOW_STREAM_DESC ;") + +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("// GUID: DSATTRIB_SAMPLE_LIVE_STREAM_TIME") +cpp_quote ("// ------------------------------------------------------") +cpp_quote ("typedef struct _SAMPLE_LIVE_STREAM_TIME{") +cpp_quote (" ULONGLONG qwStreamTime;") +cpp_quote (" ULONGLONG qwLiveTime;") +cpp_quote ("}SAMPLE_LIVE_STREAM_TIME ;") + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSClient.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSClient.h new file mode 100644 index 0000000000000000000000000000000000000000..71ad8398e8cd5efd0e6a0b05e81b895c7edfd618 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSClient.h @@ -0,0 +1,487 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +//---------------------------------------------------------------------------// +// CLSIDs exposed for the dsclient. +//---------------------------------------------------------------------------// + +// this CLSID is used to signal that the DSOBJECTNAMEs structure originated +// for the Microsoft DS. + +DEFINE_GUID(CLSID_MicrosoftDS, 0xfe1290f0, 0xcfbd, 0x11cf, 0xa3, 0x30, 0x0, 0xaa, 0x0, 0xc1, 0x6e, 0x65); +#define CLSID_DsFolder CLSID_MicrosoftDS + + +// this is the CLSID used by clients to get the IShellExtInit, IPropSheetExt +// and IContextMenus exposed from dsuiext.dll. + +DEFINE_GUID(CLSID_DsPropertyPages, 0xd45d530, 0x764b, 0x11d0, 0xa1, 0xca, 0x0, 0xaa, 0x0, 0xc1, 0x6e, 0x65); + +DEFINE_GUID(CLSID_DsDomainTreeBrowser, 0x1698790a, 0xe2b4, 0x11d0, 0xb0, 0xb1, 0x00, 0xc0, 0x4f, 0xd8, 0xdc, 0xa6); +DEFINE_GUID(IID_IDsBrowseDomainTree, 0x7cabcf1e, 0x78f5, 0x11d2, 0x96, 0xc, 0x0, 0xc0, 0x4f, 0xa3, 0x1a, 0x86); + +DEFINE_GUID(CLSID_DsDisplaySpecifier, 0x1ab4a8c0, 0x6a0b, 0x11d2, 0xad, 0x49, 0x0, 0xc0, 0x4f, 0xa3, 0x1a, 0x86); +#define IID_IDsDisplaySpecifier CLSID_DsDisplaySpecifier + +DEFINE_GUID(CLSID_DsFolderProperties, 0x9e51e0d0, 0x6e0f, 0x11d2, 0x96, 0x1, 0x0, 0xc0, 0x4f, 0xa3, 0x1a, 0x86); + +#ifndef GUID_DEFS_ONLY + +#include "activeds.h" + +//---------------------------------------------------------------------------// +// Clipboard formats used within DSUI +//---------------------------------------------------------------------------// + +// +// CF_DSOBJECTS +// ------------ +// This clipboard format defines the seleciton for an DS IShellFolder to the +// shell extensions. All strings are stored as BSTR's, and an offset == 0 +// is used to indicate that the string is not present. +// + +#define DSOBJECT_ISCONTAINER 0x00000001 // = 1 => object is a container +#define DSOBJECT_READONLYPAGES 0x80000000 // = 1 => read only pages + +#define DSPROVIDER_UNUSED_0 0x00000001 +#define DSPROVIDER_UNUSED_1 0x00000002 +#define DSPROVIDER_UNUSED_2 0x00000004 +#define DSPROVIDER_UNUSED_3 0x00000008 +#define DSPROVIDER_ADVANCED 0x00000010 // = 1 => advanced mode +#define DSPROVIDER_AD_LDS 0x00000020 // = 1 => talking to an AD LDS instance + +#define CFSTR_DSOBJECTNAMES TEXT("DsObjectNames") + +typedef struct +{ + DWORD dwFlags; // item flags + DWORD dwProviderFlags; // flags for item provider + DWORD offsetName; // offset to ADS path of the object + DWORD offsetClass; // offset to object class name / == 0 not known +} DSOBJECT, * LPDSOBJECT; + +typedef struct +{ + CLSID clsidNamespace; // namespace identifier (indicates which namespace selection from) + UINT cItems; // number of objects + DSOBJECT aObjects[1]; // array of objects +} DSOBJECTNAMES, * LPDSOBJECTNAMES; + + +// +// CF_DSDISPLAYSPECOPTIONS +// ----------------------- +// When invoking an object referenced by a display specifier (context menu, property +// page, etc) we call the IShellExtInit interface passing a IDataObject. This data +// object supports the CF_DSDISPLAYSPECOPTIONS format to give out configuration +// informaiton about admin/shell invocation. +// +// When interacting with dsuiext.dll the interfaces uses this clipboard format +// to determine which display specifier attributes to address (admin/shell) +// and pick up the values accordingly. If no format is suppoted then +// dsuiext.dll defaults to shell. +// + +#define CFSTR_DS_DISPLAY_SPEC_OPTIONS TEXT("DsDisplaySpecOptions") +#define CFSTR_DSDISPLAYSPECOPTIONS CFSTR_DS_DISPLAY_SPEC_OPTIONS + +typedef struct _DSDISPLAYSPECOPTIONS +{ + DWORD dwSize; // size of struct, for versioning + DWORD dwFlags; // invocation flags + DWORD offsetAttribPrefix; // offset to attribute prefix string. + + DWORD offsetUserName; // offset to UNICODE user name + DWORD offsetPassword; // offset to UNICODE password + DWORD offsetServer; + DWORD offsetServerConfigPath; + +} DSDISPLAYSPECOPTIONS, * PDSDISPLAYSPECOPTIONS, * LPDSDISPLAYSPECOPTIONS; + +#define DS_PROP_SHELL_PREFIX L"shell" +#define DS_PROP_ADMIN_PREFIX L"admin" + +#define DSDSOF_HASUSERANDSERVERINFO 0x00000001 // = 1 => user name/password are valid +#define DSDSOF_SIMPLEAUTHENTICATE 0x00000002 // = 1 => don't use secure authentication to DS +#define DSDSOF_DONTSIGNSEAL 0x00000004 // = 1 => don't sign+seal when opening DS objects +#define DSDSOF_DSAVAILABLE 0x40000000 // = 1 => ignore DS available checks + +// +// CF_DSPROPERTYPAGEINFO +// --------------------- +// When the property pages for an object are being displayed the parsed +// display specifier string is passed to the page object via the IDataObject +// in the following clipboard format. +// +// Within the display specifier for a property page, the format for a +// Win32 extension is "n,{clsid}[,bla...]" we take the "bla" section and +// pass it down. +// + +#define CFSTR_DSPROPERTYPAGEINFO TEXT("DsPropPageInfo") + +typedef struct +{ + DWORD offsetString; // offset to UNICODE string +} DSPROPERTYPAGEINFO, * LPDSPROPERTYPAGEINFO; + + +// +// To sync property pages and the admin tools this message is broadcast +// + +#define DSPROP_ATTRCHANGED_MSG TEXT("DsPropAttrChanged") + +//---------------------------------------------------------------------------// + + +//---------------------------------------------------------------------------// +// +// IDsBrowseDomainTree +// =================== +// This interface returns a list of the domains from a given computer name +// (or the current computer name if none is specified). +// +// NOTES: +// 1) The structure returned by ::GetDomains should be free'd using +// FreeDomains. +// +// 2) ::BrowseTo allocates a string on exit, this is allocated using +// CoTaskMemAlloc, and therefore should be free'd using CoTaskMemFree. +// +//---------------------------------------------------------------------------// + +#define DBDTF_RETURNFQDN 0x00000001 // if not set, pszNCName will be blank +#define DBDTF_RETURNMIXEDDOMAINS 0x00000002 // set it if you want downlevel trust domains too +#define DBDTF_RETURNEXTERNAL 0x00000004 // set it if you want external trust domains too +#define DBDTF_RETURNINBOUND 0x00000008 // set it if you want trusting domains +#define DBDTF_RETURNINOUTBOUND 0x00000010 // set it if you want both trusted and trusting domains + +typedef struct _DOMAINDESC +{ + LPWSTR pszName; // domain name (if no dns, use netbios) + LPWSTR pszPath; // set to blank + LPWSTR pszNCName; // FQDN, e.g.,DC=mydomain,DC=microsoft,DC=com + LPWSTR pszTrustParent; // parent domain name (if no dns, use netbios) + LPWSTR pszObjectClass; // Object class of the domain object referenced + ULONG ulFlags; // Flags, from DS_TRUSTED_DOMAINS.Flags + BOOL fDownLevel; // == 1 if downlevel domain + struct _DOMAINDESC *pdChildList; // Children of this node + struct _DOMAINDESC *pdNextSibling; // Siblings of this node +} DOMAIN_DESC, DOMAINDESC, * PDOMAIN_DESC, * LPDOMAINDESC; + +typedef struct +{ + DWORD dsSize; + DWORD dwCount; + DOMAINDESC aDomains[1]; +} DOMAIN_TREE, DOMAINTREE, * PDOMAIN_TREE, * LPDOMAINTREE; + +#undef INTERFACE +#define INTERFACE IDsBrowseDomainTree + +DECLARE_INTERFACE_IID_(IDsBrowseDomainTree, IUnknown, "7cabcf1e-78f5-11d2-960c-00c04fa31a86") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // *** IDsBrowseDomainTree methods *** + STDMETHOD(BrowseTo)(THIS_ HWND hwndParent, _Out_ LPWSTR *ppszTargetPath, _In_ DWORD dwFlags) PURE; + STDMETHOD(GetDomains)(THIS_ PDOMAIN_TREE *ppDomainTree, DWORD dwFlags) PURE; + STDMETHOD(FreeDomains)(THIS_ PDOMAIN_TREE *ppDomainTree) PURE; + STDMETHOD(FlushCachedDomains)(THIS) PURE; + STDMETHOD(SetComputer)(THIS_ LPCWSTR pszComputerName, LPCWSTR pszUserName, LPCWSTR pszPassword) PURE; +}; + +//---------------------------------------------------------------------------// + + +//---------------------------------------------------------------------------// +// +// IDsDisplaySpecifier +// =================== +// This interface gives client UI access to the display specifiers for +// specific attributes. +// +//---------------------------------------------------------------------------// + +// +// IDsDisplaySpecifier::SetServer flags +// +#define DSSSF_SIMPLEAUTHENTICATE 0x00000001 // = 1 => don't use secure authentication to DS +#define DSSSF_DONTSIGNSEAL 0x00000002 // = 1 => don't use sign+seal when opening objects in the DS +#define DSSSF_DSAVAILABLE 0x80000000 // = 1 => ignore DS available checks + +// +// Flags for IDsDisplaySpecifier::GetIcon / GetIconLocation +// +#define DSGIF_ISNORMAL 0x0000000 // = icon is in normal state (default) +#define DSGIF_ISOPEN 0x0000001 // = icon is in open state +#define DSGIF_ISDISABLED 0x0000002 // = icon is in a disabled state +#define DSGIF_ISMASK 0x000000f +#define DSGIF_GETDEFAULTICON 0x0000010 // = 1 => if no icon then get default (from shell32.dll) +#define DSGIF_DEFAULTISCONTAINER 0x0000020 // = 1 => if returning default icon, return it as a container + +// +// Flags for IDsDisplaySpecifier::IsClassContainer +// +#define DSICCF_IGNORETREATASLEAF 0x00000001 // = 1 => igore the "treatAsLeaf" and use only schema information + +// +// Callback function used for IDsDisplaySpecifier::EnumClassAttributes +// + +#define DSECAF_NOTLISTED 0x00000001 // = 1 => hide from the field drop down in the query UI + +typedef HRESULT (CALLBACK *LPDSENUMATTRIBUTES)(LPARAM lParam, LPCWSTR pszAttributeName, LPCWSTR pszDisplayName, DWORD dwFlags); + +// +// IDsDisplaySpecifier::GetClassCreationInfo information +// + +#define DSCCIF_HASWIZARDDIALOG 0x00000001 // = 1 => return the wizard dialog CLSID +#define DSCCIF_HASWIZARDPRIMARYPAGE 0x00000002 // = 1 => returning a primary wizard dlg CLSID + +typedef struct +{ + DWORD dwFlags; + CLSID clsidWizardDialog; + CLSID clsidWizardPrimaryPage; + DWORD cWizardExtensions; // how many extension CLSIDs? + CLSID aWizardExtensions[1]; +} DSCLASSCREATIONINFO, * LPDSCLASSCREATIONINFO; + +// +// IDsDisplaySpecifier - a COM object for interacting with display specifiers +// + +#undef INTERFACE +#define INTERFACE IDsDisplaySpecifier + +DECLARE_INTERFACE_IID_(IDsDisplaySpecifier, IUnknown, "1ab4a8c0-6a0b-11d2-ad49-00c04fa31a86") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // *** IDsDisplaySpecifier methods *** + STDMETHOD(SetServer)(THIS_ LPCWSTR pszServer, LPCWSTR pszUserName, LPCWSTR pszPassword, DWORD dwFlags) PURE; + STDMETHOD(SetLanguageID)(THIS_ LANGID langid) PURE; + STDMETHOD(GetDisplaySpecifier)(THIS_ LPCWSTR pszObjectClass, REFIID riid, void **ppv) PURE; + STDMETHOD(GetIconLocation)(THIS_ LPCWSTR pszObjectClass, _In_ DWORD dwFlags, _Out_writes_(cchBuffer) LPWSTR pszBuffer, _In_ INT cchBuffer, _Out_ INT *presid) PURE; + STDMETHOD_(HICON, GetIcon)(THIS_ LPCWSTR pszObjectClass, DWORD dwFlags, INT cxIcon, INT cyIcon) PURE; + STDMETHOD(GetFriendlyClassName)(THIS_ LPCWSTR pszObjectClass, _Out_writes_(cchBuffer) LPWSTR pszBuffer, _In_ INT cchBuffer) PURE; + STDMETHOD(GetFriendlyAttributeName)(THIS_ LPCWSTR pszObjectClass, _In_ LPCWSTR pszAttributeName, _Out_writes_(cchBuffer) LPWSTR pszBuffer, _In_ UINT cchBuffer) PURE; + STDMETHOD_(BOOL, IsClassContainer)(THIS_ LPCWSTR pszObjectClass, LPCWSTR pszADsPath, DWORD dwFlags) PURE; + STDMETHOD(GetClassCreationInfo)(THIS_ LPCWSTR pszObjectClass, LPDSCLASSCREATIONINFO* ppdscci) PURE; + STDMETHOD(EnumClassAttributes)(THIS_ LPCWSTR pszObjectClass, LPDSENUMATTRIBUTES pcbEnum, LPARAM lParam) PURE; + STDMETHOD_(ADSTYPE, GetAttributeADsType)(THIS_ LPCWSTR pszAttributeName) PURE; +}; + + +//---------------------------------------------------------------------------// +// +// DsBrowseForContainer +// -------------------- +// Provides a container browser similar to the SHBrowseForFolder, except +// targetting the DS. +// +// In: +// pInfo -> DSBROWSEINFO structure +// +// Out: +// == IDOK/IDCANCEL depending on buttons, -1 if error +// +//---------------------------------------------------------------------------// + +typedef struct +{ + DWORD cbStruct; // size of structure in bytes + HWND hwndOwner; // dialog owner + LPCWSTR pszCaption; // dialog caption text (can be NULL) + LPCWSTR pszTitle; // displayed above the tree view control (can be NULL) + LPCWSTR pszRoot; // ADS path to root (NULL == root of DS namespace) + LPWSTR pszPath; // [in/out] initial selection & returned path (required) + ULONG cchPath; // size of pszPath buffer in characters + DWORD dwFlags; + BFFCALLBACK pfnCallback; // callback function (see SHBrowseForFolder) + LPARAM lParam; // passed to pfnCallback as lpUserData + DWORD dwReturnFormat; // ADS_FORMAT_* (default is ADS_FORMAT_X500_NO_SERVER) + LPCWSTR pUserName; // Username and Password to authenticate against DS with + LPCWSTR pPassword; + LPWSTR pszObjectClass; // UNICODE string for the object class + ULONG cchObjectClass; +} DSBROWSEINFOW, *PDSBROWSEINFOW; + +typedef struct +{ + DWORD cbStruct; + HWND hwndOwner; + LPCSTR pszCaption; + LPCSTR pszTitle; + LPCWSTR pszRoot; // ADS paths are always UNICODE + LPWSTR pszPath; // ditto + ULONG cchPath; + DWORD dwFlags; + BFFCALLBACK pfnCallback; + LPARAM lParam; + DWORD dwReturnFormat; + LPCWSTR pUserName; // Username and Password to authenticate against DS with + LPCWSTR pPassword; + LPWSTR pszObjectClass; // object class of the selected object + ULONG cchObjectClass; +} DSBROWSEINFOA, *PDSBROWSEINFOA; + +#ifdef UNICODE +#define DSBROWSEINFO DSBROWSEINFOW +#define PDSBROWSEINFO PDSBROWSEINFOW +#else +#define DSBROWSEINFO DSBROWSEINFOA +#define PDSBROWSEINFO PDSBROWSEINFOA +#endif + +// DSBROWSEINFO flags +#define DSBI_NOBUTTONS 0x00000001 // NOT TVS_HASBUTTONS +#define DSBI_NOLINES 0x00000002 // NOT TVS_HASLINES +#define DSBI_NOLINESATROOT 0x00000004 // NOT TVS_LINESATROOT +#define DSBI_CHECKBOXES 0x00000100 // TVS_CHECKBOXES +#define DSBI_NOROOT 0x00010000 // don't include pszRoot in tree (its children become top level nodes) +#define DSBI_INCLUDEHIDDEN 0x00020000 // display hidden objects +#define DSBI_EXPANDONOPEN 0x00040000 // expand to the path specified in pszPath when opening the dialog +#define DSBI_ENTIREDIRECTORY 0x00090000 // browse the entire directory (defaults to having DSBI_NOROOT set) +#define DSBI_RETURN_FORMAT 0x00100000 // dwReturnFormat field is valid +#define DSBI_HASCREDENTIALS 0x00200000 // pUserName & pPassword are valid +#define DSBI_IGNORETREATASLEAF 0x00400000 // ignore the treat as leaf flag when calling IsClassContainer +#define DSBI_SIMPLEAUTHENTICATE 0x00800000 // don't use secure authentication to DS +#define DSBI_RETURNOBJECTCLASS 0x01000000 // return object class of selected object +#define DSBI_DONTSIGNSEAL 0x02000000 // don't sign+seal communication with DS + +#define DSB_MAX_DISPLAYNAME_CHARS 64 + +typedef struct +{ + DWORD cbStruct; + LPCWSTR pszADsPath; // ADS paths are always Unicode + LPCWSTR pszClass; // ADS properties are always Unicode + DWORD dwMask; + DWORD dwState; + DWORD dwStateMask; + WCHAR szDisplayName[DSB_MAX_DISPLAYNAME_CHARS]; + WCHAR szIconLocation[MAX_PATH]; + INT iIconResID; +} DSBITEMW, *PDSBITEMW; + +typedef struct +{ + DWORD cbStruct; + LPCWSTR pszADsPath; // ADS paths are always Unicode + LPCWSTR pszClass; // ADS properties are always Unicode + DWORD dwMask; + DWORD dwState; + DWORD dwStateMask; + CHAR szDisplayName[DSB_MAX_DISPLAYNAME_CHARS]; + CHAR szIconLocation[MAX_PATH]; + INT iIconResID; +} DSBITEMA, *PDSBITEMA; + +#ifdef UNICODE +#define DSBITEM DSBITEMW +#define PDSBITEM PDSBITEMW +#else +#define DSBITEM DSBITEMA +#define PDSBITEM PDSBITEMA +#endif + +// DSBITEM mask flags +#define DSBF_STATE 0x00000001 +#define DSBF_ICONLOCATION 0x00000002 +#define DSBF_DISPLAYNAME 0x00000004 + +// DSBITEM state flags +#define DSBS_CHECKED 0x00000001 +#define DSBS_HIDDEN 0x00000002 +#define DSBS_ROOT 0x00000004 + +// +// this message is sent to the callback to see if it wants to insert or modify +// the item that is about to be inserted into the view. +// + +#define DSBM_QUERYINSERTW 100 // lParam = PDSBITEMW (state, icon & name may be modified). Return TRUE if handled. +#define DSBM_QUERYINSERTA 101 // lParam = PDSBITEMA (state, icon & name may be modified). Return TRUE if handled. + +#ifdef UNICODE +#define DSBM_QUERYINSERT DSBM_QUERYINSERTW +#else +#define DSBM_QUERYINSERT DSBM_QUERYINSERTA +#endif + +// +// Called before we change the state of the icon (on tree collapse/expand) +// + +#define DSBM_CHANGEIMAGESTATE 102 // lParam = adspath. Return TRUE/FALSE top allow/disallow + +// +// The dialog receives a WM_HELP +// + +#define DSBM_HELP 103 // lParam == LPHELPINFO structure + +// +// The dialog receives a WM_CONTEXTMENU, DSBID_xxx are the control ID's for this +// dialog so that you can display suitable help. +// + +#define DSBM_CONTEXTMENU 104 // lParam == window handle to retrieve help for + + +// +// These are the control IDs for the controls in the dialog. The callback can use +// these to modify the contents of the dialog as required. +// + +#define DSBID_BANNER 256 +#define DSBID_CONTAINERLIST 257 + +// +// API exported for browsing for containers. +// + +STDAPI_(int) DsBrowseForContainerW(_Inout_ PDSBROWSEINFOW pInfo); +STDAPI_(int) DsBrowseForContainerA(_Inout_ PDSBROWSEINFOA pInfo); + +#ifdef UNICODE +#define DsBrowseForContainer DsBrowseForContainerW +#else +#define DsBrowseForContainer DsBrowseForContainerA +#endif + + +// NOTE: these are here to keep old clients building - remove soon + +STDAPI_(HICON) DsGetIcon(DWORD dwFlags, LPCWSTR pszObjectClass, INT cxImage, INT cyImage); +STDAPI DsGetFriendlyClassName(LPCWSTR pszObjectClass, _Out_writes_(cchBuffer) LPWSTR pszBuffer, UINT cchBuffer); + + +#ifdef __cplusplus +struct __declspec(uuid("1ab4a8c0-6a0b-11d2-ad49-00c04fa31a86")) IDsDisplaySpecifier; +#endif + +#endif // GUID_DEFS_ONLY + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSQuery.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSQuery.h new file mode 100644 index 0000000000000000000000000000000000000000..389157d1ecf4ae5c0158c5a236ccc596af543689 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSQuery.h @@ -0,0 +1,146 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#ifndef __dsquery_h +#define __dsquery_h + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// query handler ID for dsquery. +// + +DEFINE_GUID(CLSID_DsQuery, 0x8a23e65e, 0x31c2, 0x11d0, 0x89, 0x1c, 0x0, 0xa0, 0x24, 0xab, 0x2d, 0xbb); + +// +// standard forms shipped in dsquery.dll +// + +DEFINE_GUID(CLSID_DsFindObjects, 0x83ee3fe1, 0x57d9, 0x11d0, 0xb9, 0x32, 0x0, 0xa0, 0x24, 0xab, 0x2d, 0xbb); +DEFINE_GUID(CLSID_DsFindPeople, 0x83ee3fe2, 0x57d9, 0x11d0, 0xb9, 0x32, 0x0, 0xa0, 0x24, 0xab, 0x2d, 0xbb); +DEFINE_GUID(CLSID_DsFindPrinter, 0xb577f070, 0x7ee2, 0x11d0, 0x91, 0x3f, 0x0, 0xaa, 0x0, 0xc1, 0x6e, 0x65); +DEFINE_GUID(CLSID_DsFindComputer, 0x16006700, 0x87ad, 0x11d0, 0x91, 0x40, 0x0, 0xaa, 0x0, 0xc1, 0x6e, 0x65); +DEFINE_GUID(CLSID_DsFindVolume, 0xc1b3cbf1, 0x886a, 0x11d0, 0x91, 0x40, 0x0, 0xaa, 0x0, 0xc1, 0x6e, 0x65); +DEFINE_GUID(CLSID_DsFindContainer, 0xc1b3cbf2, 0x886a, 0x11d0, 0x91, 0x40, 0x0, 0xaa, 0x0, 0xc1, 0x6e, 0x65); +DEFINE_GUID(CLSID_DsFindAdvanced, 0x83ee3fe3, 0x57d9, 0x11d0, 0xb9, 0x32, 0x0, 0xa0, 0x24, 0xab, 0x2d, 0xbb); + +// +// admin forms +// + +DEFINE_GUID(CLSID_DsFindDomainController, 0x538c7b7e, 0xd25e, 0x11d0, 0x97, 0x42, 0x0, 0xa0, 0xc9, 0x6, 0xaf, 0x45); +DEFINE_GUID(CLSID_DsFindWriteableDomainController, 0x7cbef079, 0xaa84, 0x444b, 0xbc, 0x70, 0x68, 0xe4, 0x12, 0x83, 0xea, 0xbc); +DEFINE_GUID(CLSID_DsFindFrsMembers, 0x94ce4b18, 0xb3d3, 0x11d1, 0xb9, 0xb4, 0x0, 0xc0, 0x4f, 0xd8, 0xd5, 0xb0); + + +#ifndef GUID_DEFS_ONLY + +// +// DSQUERYINITPARAMS +// ----------------- +// This structured is used when creating a new query view. +// + +#define DSQPF_NOSAVE 0x00000001 // = 1 => remove save verb +#define DSQPF_SAVELOCATION 0x00000002 // = 1 => pSaveLocation contains directory to save queries into +#define DSQPF_SHOWHIDDENOBJECTS 0x00000004 // = 1 => show objects marked as "hidden" in results +#define DSQPF_ENABLEADMINFEATURES 0x00000008 // = 1 => show admin verbs, property pages etc +#define DSQPF_ENABLEADVANCEDFEATURES 0x00000010 // = 1 => set the advanced flag for the property pages +#define DSQPF_HASCREDENTIALS 0x00000020 // = 1 => pServer, pUserName & pPassword are valid +#define DSQPF_NOCHOOSECOLUMNS 0x00000040 // = 1 => remove choose columns from view + +typedef struct +{ + DWORD cbStruct; + DWORD dwFlags; + LPWSTR pDefaultScope; // -> Active Directory path to use as scope / == NULL for none + LPWSTR pDefaultSaveLocation; // -> Directory to save queries into / == NULL default location + LPWSTR pUserName; // -> user name to authenticate with + LPWSTR pPassword; // -> password for authentication + LPWSTR pServer; // -> server to use for obtaining trusts etc +} DSQUERYINITPARAMS, * LPDSQUERYINITPARAMS; + + +// +// DSQUERYPARAMS +// ------------- +// The DS query handle takes a packed structure which contains the +// columns and query to be issued. +// + +#define CFSTR_DSQUERYPARAMS TEXT("DsQueryParameters") + +#define DSCOLUMNPROP_ADSPATH ((LONG)(-1)) +#define DSCOLUMNPROP_OBJECTCLASS ((LONG)(-2)) + +typedef struct +{ + DWORD dwFlags; // flags for this column + INT fmt; // list view form information + INT cx; // default column width + INT idsName; // resource ID for the column dispaly name + LONG offsetProperty; // offset to BSTR defining column ADs property name + DWORD dwReserved; // reserved field +} DSCOLUMN, * LPDSCOLUMN; + +typedef struct +{ + DWORD cbStruct; + DWORD dwFlags; + HINSTANCE hInstance; // instance handle used for string extraction + LONG offsetQuery; // offset to LDAP filter string + LONG iColumns; // column count + DWORD dwReserved; // reserved field for this query + DSCOLUMN aColumns[1]; // array of column descriptions +} DSQUERYPARAMS, * LPDSQUERYPARAMS; + + +// +// CF_DSQUERYSCOPE +// --------------- +// A clipboard format the puts a string version of the scope into a +// storage medium via GlobalAlloc. +// +#define CFSTR_DSQUERYSCOPE TEXT("DsQueryScope") + + +// +// DSQPM_GETCLASSLIST +// ------------------ +// This page message is sent to the form pages to retrieve the list of classes +// that the pages are going to query from. This is used by the feild selector +// and the property well to build its list of display classes. +// + +typedef struct +{ + DWORD cbStruct; + LONG cClasses; // number of classes in array + DWORD offsetClass[1]; // offset to the class names (UNICODE) +} DSQUERYCLASSLIST, * LPDSQUERYCLASSLIST; + + +#define DSQPM_GETCLASSLIST (CQPM_HANDLERSPECIFIC+0) // wParam == flags, lParam = LPLPDSQUERYCLASSLIST + + +// +// DSQPM_HELPTOPICS +// ---------------- +// This page message is sent to the form pages to allow them to handle the +// "Help Topics" verb. +// + +#define DSQPM_HELPTOPICS (CQPM_HANDLERSPECIFIC+1) // wParam = 0, lParam = hWnd parent + + + +#endif // GUID_DEFS_ONLY + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSRole.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSRole.h new file mode 100644 index 0000000000000000000000000000000000000000..811c3c7e7b9f4eafd514133a168575b2ca18a037 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DSRole.h @@ -0,0 +1,135 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1997-1999 Microsoft Corporation + +Module Name: + + dsrole.h + +Abstract: + + This module contains the public interfaces to query the network roles of + workstations, servers, and DCs + +--*/ + +#ifndef __DSROLE_H__ +#define __DSROLE_H__ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Domain information +// +typedef enum _DSROLE_MACHINE_ROLE { + + DsRole_RoleStandaloneWorkstation, + DsRole_RoleMemberWorkstation, + DsRole_RoleStandaloneServer, + DsRole_RoleMemberServer, + DsRole_RoleBackupDomainController, + DsRole_RolePrimaryDomainController + +} DSROLE_MACHINE_ROLE; + +// +// Previous server state +// +typedef enum _DSROLE_SERVER_STATE { + + DsRoleServerUnknown = 0, + DsRoleServerPrimary, + DsRoleServerBackup + +} DSROLE_SERVER_STATE, *PDSROLE_SERVER_STATE; + +typedef enum _DSROLE_PRIMARY_DOMAIN_INFO_LEVEL { + + DsRolePrimaryDomainInfoBasic = 1, + DsRoleUpgradeStatus, + DsRoleOperationState + +} DSROLE_PRIMARY_DOMAIN_INFO_LEVEL; + +// +// Flags to be used with the PRIMARY_DOMAIN_INFO_LEVEL structures below +// +#define DSROLE_PRIMARY_DS_RUNNING 0x00000001 +#define DSROLE_PRIMARY_DS_MIXED_MODE 0x00000002 +#define DSROLE_UPGRADE_IN_PROGRESS 0x00000004 +#define DSROLE_PRIMARY_DS_READONLY 0x00000008 +#define DSROLE_PRIMARY_DOMAIN_GUID_PRESENT 0x01000000 + +// +// Structure that correspond to the DSROLE_PRIMARY_DOMAIN_INFO_LEVEL +// +typedef struct _DSROLE_PRIMARY_DOMAIN_INFO_BASIC { + + DSROLE_MACHINE_ROLE MachineRole; + ULONG Flags; + LPWSTR DomainNameFlat; + LPWSTR DomainNameDns; + LPWSTR DomainForestName; + GUID DomainGuid; + +} DSROLE_PRIMARY_DOMAIN_INFO_BASIC, *PDSROLE_PRIMARY_DOMAIN_INFO_BASIC; + +typedef struct _DSROLE_UPGRADE_STATUS_INFO { + + ULONG OperationState; + DSROLE_SERVER_STATE PreviousServerState; + +} DSROLE_UPGRADE_STATUS_INFO, *PDSROLE_UPGRADE_STATUS_INFO; + +typedef enum _DSROLE_OPERATION_STATE { + + DsRoleOperationIdle = 0, + DsRoleOperationActive, + DsRoleOperationNeedReboot + +} DSROLE_OPERATION_STATE; + +typedef struct _DSROLE_OPERATION_STATE_INFO { + + DSROLE_OPERATION_STATE OperationState; + +} DSROLE_OPERATION_STATE_INFO, *PDSROLE_OPERATION_STATE_INFO; + +DWORD +WINAPI +DsRoleGetPrimaryDomainInformation( + IN LPCWSTR lpServer OPTIONAL, + IN DSROLE_PRIMARY_DOMAIN_INFO_LEVEL InfoLevel, + OUT PBYTE *Buffer + ); + +VOID +WINAPI +DsRoleFreeMemory( + IN PVOID Buffer + ); + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // __DSROLE_H__ + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DXGIMessages.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DXGIMessages.h new file mode 100644 index 0000000000000000000000000000000000000000..f53b12607b1667e0c8354ece0f1026c183c40850 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DXGIMessages.h @@ -0,0 +1,351 @@ +/* + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: DXGIMessages.h + * Content: DXGI Debug Message Enumeration + */ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#if NTDDI_VERSION >= NTDDI_WIN7 + +typedef enum +{ + DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_InvalidOutputWindow = 0, + DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_BufferWidthInferred, + DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_BufferHeightInferred, + DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_NoScanoutFlagChanged, + DXGI_MSG_IDXGISwapChain_Creation_MaxBufferCountExceeded, + DXGI_MSG_IDXGISwapChain_Creation_TooFewBuffers, + DXGI_MSG_IDXGISwapChain_Creation_NoOutputWindow, + DXGI_MSG_IDXGISwapChain_Destruction_OtherMethodsCalled, + DXGI_MSG_IDXGISwapChain_GetDesc_pDescIsNULL, + DXGI_MSG_IDXGISwapChain_GetBuffer_ppSurfaceIsNULL, + DXGI_MSG_IDXGISwapChain_GetBuffer_NoAllocatedBuffers, + DXGI_MSG_IDXGISwapChain_GetBuffer_iBufferMustBeZero, + DXGI_MSG_IDXGISwapChain_GetBuffer_iBufferOOB, + DXGI_MSG_IDXGISwapChain_GetContainingOutput_ppOutputIsNULL, + DXGI_MSG_IDXGISwapChain_Present_SyncIntervalOOB, + DXGI_MSG_IDXGISwapChain_Present_InvalidNonPreRotatedFlag, + DXGI_MSG_IDXGISwapChain_Present_NoAllocatedBuffers, + DXGI_MSG_IDXGISwapChain_Present_GetDXGIAdapterFailed, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_BufferCountOOB, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_UnreleasedReferences, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidSwapChainFlag, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidNonPreRotatedFlag, + DXGI_MSG_IDXGISwapChain_ResizeTarget_RefreshRateDivideByZero, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_InvalidTarget, + DXGI_MSG_IDXGISwapChain_GetFrameStatistics_pStatsIsNULL, + DXGI_MSG_IDXGISwapChain_GetLastPresentCount_pLastPresentCountIsNULL, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_RemoteNotSupported, + DXGI_MSG_IDXGIOutput_TakeOwnership_FailedToAcquireFullscreenMutex, + DXGI_MSG_IDXGIFactory_CreateSoftwareAdapter_ppAdapterInterfaceIsNULL, + DXGI_MSG_IDXGIFactory_EnumAdapters_ppAdapterInterfaceIsNULL, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ppSwapChainIsNULL, + DXGI_MSG_IDXGIFactory_CreateSwapChain_pDescIsNULL, + DXGI_MSG_IDXGIFactory_CreateSwapChain_UnknownSwapEffect, + DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidFlags, + DXGI_MSG_IDXGIFactory_CreateSwapChain_NonPreRotatedFlagAndWindowed, + DXGI_MSG_IDXGIFactory_CreateSwapChain_NullDeviceInterface, + DXGI_MSG_IDXGIFactory_GetWindowAssociation_phWndIsNULL, + DXGI_MSG_IDXGIFactory_MakeWindowAssociation_InvalidFlags, + DXGI_MSG_IDXGISurface_Map_InvalidSurface, + DXGI_MSG_IDXGISurface_Map_FlagsSetToZero, + DXGI_MSG_IDXGISurface_Map_DiscardAndReadFlagSet, + DXGI_MSG_IDXGISurface_Map_DiscardButNotWriteFlagSet, + DXGI_MSG_IDXGISurface_Map_NoCPUAccess, + DXGI_MSG_IDXGISurface_Map_ReadFlagSetButCPUAccessIsDynamic, + DXGI_MSG_IDXGISurface_Map_DiscardFlagSetButCPUAccessIsNotDynamic, + DXGI_MSG_IDXGIOutput_GetDisplayModeList_pNumModesIsNULL, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_ModeHasInvalidWidthOrHeight, + DXGI_MSG_IDXGIOutput_GetCammaControlCapabilities_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_TakeOwnership_pDeviceIsNULL, + DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_pDestinationIsNULL, + DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_MapOfDestinationFailed, + DXGI_MSG_IDXGIOutput_GetFrameStatistics_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_GetFrameStatistics_pStatsIsNULL, + DXGI_MSG_IDXGIOutput_SetGammaControl_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_GetGammaControl_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_GetGammaControl_NoGammaControls, + DXGI_MSG_IDXGIOutput_SetDisplaySurface_IDXGIResourceNotSupportedBypPrimary, + DXGI_MSG_IDXGIOutput_SetDisplaySurface_pPrimaryIsInvalid, + DXGI_MSG_IDXGIOutput_SetDisplaySurface_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_TakeOwnership_RemoteDeviceNotSupported, + DXGI_MSG_IDXGIOutput_GetDisplayModeList_RemoteDeviceNotSupported, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_RemoteDeviceNotSupported, + DXGI_MSG_IDXGIDevice_CreateSurface_InvalidParametersWithpSharedResource, + DXGI_MSG_IDXGIObject_GetPrivateData_puiDataSizeIsNULL, + DXGI_MSG_IDXGISwapChain_Creation_InvalidOutputWindow, + DXGI_MSG_IDXGISwapChain_Release_SwapChainIsFullscreen, + DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_InvalidTargetSurfaceFormat, + DXGI_MSG_IDXGIFactory_CreateSoftwareAdapter_ModuleIsNULL, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_IDXGIDeviceNotSupportedBypConcernedDevice, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_pModeToMatchOrpClosestMatchIsNULL, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_ModeHasRefreshRateDenominatorZero, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_UnknownFormatIsInvalidForConfiguration, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_InvalidDisplayModeScanlineOrdering, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_InvalidDisplayModeScaling, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_InvalidDisplayModeFormatAndDeviceCombination, + DXGI_MSG_IDXGIFactory_Creation_CalledFromDllMain, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_OutputNotOwnedBySwapChainDevice, + DXGI_MSG_IDXGISwapChain_Creation_InvalidWindowStyle, + DXGI_MSG_IDXGISwapChain_GetFrameStatistics_UnsupportedStatistics, + DXGI_MSG_IDXGISwapChain_GetContainingOutput_SwapchainAdapterDoesNotControlOutput, + DXGI_MSG_IDXGIOutput_SetOrGetGammaControl_pArrayIsNULL, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_FullscreenInvalidForChildWindows, + DXGI_MSG_IDXGIFactory_Release_CalledFromDllMain, + DXGI_MSG_IDXGISwapChain_Present_UnreleasedHDC, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_NonPreRotatedAndGDICompatibleFlags, + DXGI_MSG_IDXGIFactory_CreateSwapChain_NonPreRotatedAndGDICompatibleFlags, + DXGI_MSG_IDXGISurface1_GetDC_pHdcIsNULL, + DXGI_MSG_IDXGISurface1_GetDC_SurfaceNotTexture2D, + DXGI_MSG_IDXGISurface1_GetDC_GDICompatibleFlagNotSet, + DXGI_MSG_IDXGISurface1_GetDC_UnreleasedHDC, + DXGI_MSG_IDXGISurface_Map_NoCPUAccess2, + DXGI_MSG_IDXGISurface1_ReleaseDC_GetDCNotCalled, + DXGI_MSG_IDXGISurface1_ReleaseDC_InvalidRectangleDimensions, + DXGI_MSG_IDXGIOutput_TakeOwnership_RemoteOutputNotSupported, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_RemoteOutputNotSupported, + DXGI_MSG_IDXGIOutput_GetDisplayModeList_RemoteOutputNotSupported, + DXGI_MSG_IDXGIFactory_CreateSwapChain_pDeviceHasMismatchedDXGIFactory, + DXGI_MSG_IDXGISwapChain_Present_NonOptimalFSConfiguration, + DXGI_MSG_IDXGIFactory_CreateSwapChain_FlipSequentialNotSupportedOnD3D10, + DXGI_MSG_IDXGIFactory_CreateSwapChain_BufferCountOOBForFlipSequential, + DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidFormatForFlipSequential, + DXGI_MSG_IDXGIFactory_CreateSwapChain_MultiSamplingNotSupportedForFlipSequential, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_BufferCountOOBForFlipSequential, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidFormatForFlipSequential, + DXGI_MSG_IDXGISwapChain_Present_PartialPresentationBeforeStandardPresentation, + DXGI_MSG_IDXGISwapChain_Present_FullscreenPartialPresentIsInvalid, + DXGI_MSG_IDXGISwapChain_Present_InvalidPresentTestOrDoNotSequenceFlag, + DXGI_MSG_IDXGISwapChain_Present_ScrollInfoWithNoDirtyRectsSpecified, + DXGI_MSG_IDXGISwapChain_Present_EmptyScrollRect, + DXGI_MSG_IDXGISwapChain_Present_ScrollRectOutOfBackbufferBounds, + DXGI_MSG_IDXGISwapChain_Present_ScrollRectOutOfBackbufferBoundsWithOffset, + DXGI_MSG_IDXGISwapChain_Present_EmptyDirtyRect, + DXGI_MSG_IDXGISwapChain_Present_DirtyRectOutOfBackbufferBounds, + DXGI_MSG_IDXGIFactory_CreateSwapChain_UnsupportedBufferUsageFlags, + DXGI_MSG_IDXGISwapChain_Present_DoNotSequenceFlagSetButPreviousBufferIsUndefined, + DXGI_MSG_IDXGISwapChain_Present_UnsupportedFlags, + DXGI_MSG_IDXGISwapChain_Present_FlipModelChainMustResizeOrCreateOnFSTransition, + DXGI_MSG_IDXGIFactory_CreateSwapChain_pRestrictToOutputFromOtherIDXGIFactory, + DXGI_MSG_IDXGIFactory_CreateSwapChain_RestrictOutputNotSupportedOnAdapter, + DXGI_MSG_IDXGISwapChain_Present_RestrictToOutputFlagSetButInvalidpRestrictToOutput, + DXGI_MSG_IDXGISwapChain_Present_RestrictToOutputFlagdWithFullscreen, + DXGI_MSG_IDXGISwapChain_Present_RestrictOutputFlagWithStaleSwapChain, + DXGI_MSG_IDXGISwapChain_Present_OtherFlagsCausingInvalidPresentTestFlag, + DXGI_MSG_IDXGIFactory_CreateSwapChain_UnavailableInSession0, + DXGI_MSG_IDXGIFactory_MakeWindowAssociation_UnavailableInSession0, + DXGI_MSG_IDXGIFactory_GetWindowAssociation_UnavailableInSession0, + DXGI_MSG_IDXGIAdapter_EnumOutputs_UnavailableInSession0, + DXGI_MSG_IDXGISwapChain_CreationOrSetFullscreenState_StereoDisabled, + DXGI_MSG_IDXGIFactory2_UnregisterStatus_CookieNotFound, + DXGI_MSG_IDXGISwapChain_Present_ProtectedContentInWindowedModeWithoutFSOrOverlay, + DXGI_MSG_IDXGISwapChain_Present_ProtectedContentInWindowedModeWithoutFlipSequential, + DXGI_MSG_IDXGISwapChain_Present_ProtectedContentWithRDPDriver, + DXGI_MSG_IDXGISwapChain_Present_ProtectedContentInWindowedModeWithDWMOffOrInvalidDisplayAffinity, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_WidthOrHeightIsZero, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_OnlyFlipSequentialSupported, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_UnsupportedOnAdapter, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_UnsupportedOnWindows7, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_FSTransitionWithCompositionSwapChain, + DXGI_MSG_IDXGISwapChain_ResizeTarget_InvalidWithCompositionSwapChain, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_WidthOrHeightIsZero, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ScalingNoneIsFlipModelOnly, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ScalingUnrecognized, + DXGI_MSG_IDXGIFactory_CreateSwapChain_DisplayOnlyFullscreenUnsupported, + DXGI_MSG_IDXGIFactory_CreateSwapChain_DisplayOnlyUnsupported, + DXGI_MSG_IDXGISwapChain_Present_RestartIsFullscreenOnly, + DXGI_MSG_IDXGISwapChain_Present_ProtectedWindowlessPresentationRequiresDisplayOnly, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_DisplayOnlyUnsupported, + DXGI_MSG_IDXGISwapChain1_SetBackgroundColor_OutOfRange, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_DisplayOnlyFullscreenUnsupported, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_DisplayOnlyUnsupported, + DXGI_MSG_IDXGISwapchain_Present_ScrollUnsupported, + DXGI_MSG_IDXGISwapChain1_SetRotation_UnsupportedOS, + DXGI_MSG_IDXGISwapChain1_GetRotation_UnsupportedOS, + DXGI_MSG_IDXGISwapchain_Present_FullscreenRotation, + DXGI_MSG_IDXGISwapChain_Present_PartialPresentationWithMSAABuffers, + DXGI_MSG_IDXGISwapChain1_SetRotation_FlipSequentialRequired, + DXGI_MSG_IDXGISwapChain1_SetRotation_InvalidRotation, + DXGI_MSG_IDXGISwapChain1_GetRotation_FlipSequentialRequired, + DXGI_MSG_IDXGISwapChain_GetHwnd_WrongType, + DXGI_MSG_IDXGISwapChain_GetCompositionSurface_WrongType, + DXGI_MSG_IDXGISwapChain_GetCoreWindow_WrongType, + DXGI_MSG_IDXGISwapChain_GetFullscreenDesc_NonHwnd, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_CoreWindow, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_UnsupportedOnWindows7, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_pWindowIsNULL, + DXGI_MSG_IDXGIFactory_CreateSwapChain_FSUnsupportedForModernApps, + DXGI_MSG_IDXGIFactory_MakeWindowAssociation_ModernApp, + DXGI_MSG_IDXGISwapChain_ResizeTarget_ModernApp, + DXGI_MSG_IDXGISwapChain_ResizeTarget_pNewTargetParametersIsNULL, + DXGI_MSG_IDXGIOutput_SetDisplaySurface_ModernApp, + DXGI_MSG_IDXGIOutput_TakeOwnership_ModernApp, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_pWindowIsInvalid, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCompositionSurface_InvalidHandle, + DXGI_MSG_IDXGISurface1_GetDC_ModernApp, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ScalingNoneRequiresWindows8OrNewer, + DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoAndPreferRight, + DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoOrPreferRightWithDoNotSequence, + DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoOrPreferRightWithoutStereo, + DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoUnsupported, + DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_ArraySizeMismatch, + DXGI_MSG_IDXGISwapChain_Present_PartialPresentationWithSwapEffectDiscard, + DXGI_MSG_IDXGIFactory_CreateSwapChain_AlphaUnrecognized, + DXGI_MSG_IDXGIFactory_CreateSwapChain_AlphaIsWindowlessOnly, + DXGI_MSG_IDXGIFactory_CreateSwapChain_AlphaIsFlipModelOnly, + DXGI_MSG_IDXGIFactory_CreateSwapChain_RestrictToOutputAdapterMismatch, + DXGI_MSG_IDXGIFactory_CreateSwapChain_DisplayOnlyOnLegacy, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_DisplayOnlyOnLegacy, + DXGI_MSG_IDXGIResource1_CreateSubresourceSurface_InvalidIndex, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_InvalidScaling, + DXGI_MSG_IDXGIFactory_CreateSwapChainForCoreWindow_InvalidSwapEffect, + DXGI_MSG_IDXGIResource1_CreateSharedHandle_UnsupportedOS, + DXGI_MSG_IDXGIFactory2_RegisterOcclusionStatusWindow_UnsupportedOS, + DXGI_MSG_IDXGIFactory2_RegisterOcclusionStatusEvent_UnsupportedOS, + DXGI_MSG_IDXGIOutput1_DuplicateOutput_UnsupportedOS, + DXGI_MSG_IDXGIDisplayControl_IsStereoEnabled_UnsupportedOS, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_InvalidAlphaMode, + DXGI_MSG_IDXGIFactory_GetSharedResourceAdapterLuid_InvalidResource, + DXGI_MSG_IDXGIFactory_GetSharedResourceAdapterLuid_InvalidLUID, + DXGI_MSG_IDXGIFactory_GetSharedResourceAdapterLuid_UnsupportedOS, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_2DOnly, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_StagingOnly, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_NeedCPUAccessWrite, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_NoShared, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_OnlyMipLevels1, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_MappedOrOfferedResource, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_FSUnsupportedForModernApps, + DXGI_MSG_IDXGIFactory_CreateSwapChain_FailedToGoFSButNonPreRotated, + DXGI_MSG_IDXGIFactory_CreateSwapChainOrRegisterOcclusionStatus_BlitModelUsedWhileRegisteredForOcclusionStatusEvents, + DXGI_MSG_IDXGISwapChain_Present_BlitModelUsedWhileRegisteredForOcclusionStatusEvents, + DXGI_MSG_IDXGIFactory_CreateSwapChain_WaitableSwapChainsAreFlipModelOnly, + DXGI_MSG_IDXGIFactory_CreateSwapChain_WaitableSwapChainsAreNotFullscreen, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_Waitable, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveWaitableFlag, + DXGI_MSG_IDXGISwapChain_GetFrameLatencyWaitableObject_OnlyWaitable, + DXGI_MSG_IDXGISwapChain_GetMaximumFrameLatency_OnlyWaitable, + DXGI_MSG_IDXGISwapChain_GetMaximumFrameLatency_pMaxLatencyIsNULL, + DXGI_MSG_IDXGISwapChain_SetMaximumFrameLatency_OnlyWaitable, + DXGI_MSG_IDXGISwapChain_SetMaximumFrameLatency_MaxLatencyIsOutOfBounds, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ForegroundIsCoreWindowOnly, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_ForegroundUnsupportedOnAdapter, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_InvalidScaling, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_InvalidAlphaMode, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveForegroundFlag, + DXGI_MSG_IDXGISwapChain_SetMatrixTransform_MatrixPointerCannotBeNull, + DXGI_MSG_IDXGISwapChain_SetMatrixTransform_RequiresCompositionSwapChain, + DXGI_MSG_IDXGISwapChain_SetMatrixTransform_MatrixMustBeFinite, + DXGI_MSG_IDXGISwapChain_SetMatrixTransform_MatrixMustBeTranslateAndOrScale, + DXGI_MSG_IDXGISwapChain_GetMatrixTransform_MatrixPointerCannotBeNull, + DXGI_MSG_IDXGISwapChain_GetMatrixTransform_RequiresCompositionSwapChain, + DXGI_MSG_DXGIGetDebugInterface1_NULL_ppDebug, + DXGI_MSG_DXGIGetDebugInterface1_InvalidFlags, + DXGI_MSG_IDXGISwapChain_Present_Decode, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_Decode, + DXGI_MSG_IDXGISwapChain_SetSourceSize_FlipModel, + DXGI_MSG_IDXGISwapChain_SetSourceSize_Decode, + DXGI_MSG_IDXGISwapChain_SetSourceSize_WidthHeight, + DXGI_MSG_IDXGISwapChain_GetSourceSize_NullPointers, + DXGI_MSG_IDXGISwapChain_GetSourceSize_Decode, + DXGI_MSG_IDXGIDecodeSwapChain_SetColorSpace_InvalidFlags, + DXGI_MSG_IDXGIDecodeSwapChain_SetSourceRect_InvalidRect, + DXGI_MSG_IDXGIDecodeSwapChain_SetTargetRect_InvalidRect, + DXGI_MSG_IDXGIDecodeSwapChain_SetDestSize_InvalidSize, + DXGI_MSG_IDXGIDecodeSwapChain_GetSourceRect_InvalidPointer, + DXGI_MSG_IDXGIDecodeSwapChain_GetTargetRect_InvalidPointer, + DXGI_MSG_IDXGIDecodeSwapChain_GetDestSize_InvalidPointer, + DXGI_MSG_IDXGISwapChain_PresentBuffer_YUV, + DXGI_MSG_IDXGISwapChain_SetSourceSize_YUV, + DXGI_MSG_IDXGISwapChain_GetSourceSize_YUV, + DXGI_MSG_IDXGISwapChain_SetMatrixTransform_YUV, + DXGI_MSG_IDXGISwapChain_GetMatrixTransform_YUV, + DXGI_MSG_IDXGISwapChain_Present_PartialPresentation_YUV, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveFlag_YUV, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_Alignment_YUV, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ShaderInputUnsupported_YUV, + DXGI_MSG_IDXGIOutput3_CheckOverlaySupport_NullPointers, + DXGI_MSG_IDXGIOutput3_CheckOverlaySupport_IDXGIDeviceNotSupportedBypConcernedDevice, + DXGI_MSG_IDXGIAdapter_EnumOutputs2_InvalidEnumOutputs2Flag, + DXGI_MSG_IDXGISwapChain_CreationOrSetFullscreenState_FSUnsupportedForFlipDiscard, + DXGI_MSG_IDXGIOutput4_CheckOverlayColorSpaceSupport_NullPointers, + DXGI_MSG_IDXGIOutput4_CheckOverlayColorSpaceSupport_IDXGIDeviceNotSupportedBypConcernedDevice, + DXGI_MSG_IDXGISwapChain3_CheckColorSpaceSupport_NullPointers, + DXGI_MSG_IDXGISwapChain3_SetColorSpace1_InvalidColorSpace, + DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidHwProtect, + DXGI_MSG_IDXGIFactory_CreateSwapChain_HwProtectUnsupported, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidHwProtect, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_HwProtectUnsupported, + DXGI_MSG_IDXGISwapChain_ResizeBuffers1_D3D12Only, + DXGI_MSG_IDXGISwapChain_ResizeBuffers1_FlipModel, + DXGI_MSG_IDXGISwapChain_ResizeBuffers1_NodeMaskAndQueueRequired, + DXGI_MSG_IDXGISwapChain_CreateSwapChain_InvalidHwProtectGdiFlag, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidHwProtectGdiFlag, + DXGI_MSG_IDXGIFactory_CreateSwapChain_10BitFormatNotSupported, + DXGI_MSG_IDXGIFactory_CreateSwapChain_FlipSwapEffectRequired, + DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidDevice, + DXGI_MSG_IDXGIOutput_TakeOwnership_Unsupported, + DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidQueue, + DXGI_MSG_IDXGISwapChain3_ResizeBuffers1_InvalidQueue, + DXGI_MSG_IDXGIFactory_CreateSwapChainForHwnd_InvalidScaling, + DXGI_MSG_IDXGISwapChain3_SetHDRMetaData_InvalidSize, + DXGI_MSG_IDXGISwapChain3_SetHDRMetaData_InvalidPointer, + DXGI_MSG_IDXGISwapChain3_SetHDRMetaData_InvalidType, + DXGI_MSG_IDXGISwapChain_Present_FullscreenAllowTearingIsInvalid, + DXGI_MSG_IDXGISwapChain_Present_AllowTearingRequiresPresentIntervalZero, + DXGI_MSG_IDXGISwapChain_Present_AllowTearingRequiresCreationFlag, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveAllowTearingFlag, + DXGI_MSG_IDXGIFactory_CreateSwapChain_AllowTearingFlagIsFlipModelOnly, + DXGI_MSG_IDXGIFactory_CheckFeatureSupport_InvalidFeature, + DXGI_MSG_IDXGIFactory_CheckFeatureSupport_InvalidSize, + DXGI_MSG_IDXGIOutput6_CheckHardwareCompositionSupport_NullPointer, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_PerMonitorDpiShimApplied, + DXGI_MSG_IDXGIOutput_DuplicateOutput_PerMonitorDpiShimApplied, + DXGI_MSG_IDXGIOutput_DuplicateOutput1_PerMonitorDpiRequired, + DXGI_MSG_IDXGIFactory7_UnregisterAdaptersChangedEvent_CookieNotFound, + DXGI_MSG_IDXGIFactory_CreateSwapChain_LegacyBltModelSwapEffect, + DXGI_MSG_IDXGISwapChain4_SetHDRMetaData_MetadataUnchanged, + DXGI_MSG_IDXGISwapChain_Present_11On12_Released_Resource, + DXGI_MSG_IDXGIFactory_CreateSwapChain_MultipleSwapchainRefToSurface_DeferredDtr, + DXGI_MSG_IDXGIFactory_MakeWindowAssociation_NoOpBehavior, + + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_NotForegroundWindow = 1000, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_DISCARD_BufferCount, + DXGI_MSG_Phone_IDXGISwapChain_SetFullscreenState_NotAvailable, + DXGI_MSG_Phone_IDXGISwapChain_ResizeBuffers_NotAvailable, + DXGI_MSG_Phone_IDXGISwapChain_ResizeTarget_NotAvailable, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidLayerIndex, + DXGI_MSG_Phone_IDXGISwapChain_Present_MultipleLayerIndex, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidLayerFlag, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidRotation, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidBlend, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidResource, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidMultiPlaneOverlayResource, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidIndexForPrimary, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidIndexForOverlay, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidSubResourceIndex, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidSourceRect, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidDestinationRect, + DXGI_MSG_Phone_IDXGISwapChain_Present_MultipleResource, + DXGI_MSG_Phone_IDXGISwapChain_Present_NotSharedResource, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidFlag, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidInterval, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_MSAA_NotSupported, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_ScalingAspectRatioStretch_Supported_ModernApp, + DXGI_MSG_Phone_IDXGISwapChain_GetFrameStatistics_NotAvailable_ModernApp, + DXGI_MSG_Phone_IDXGISwapChain_Present_ReplaceInterval0With1, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_FailedRegisterWithCompositor, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_NotForegroundWindow_AtRendering, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_FLIP_SEQUENTIAL_BufferCount, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_FLIP_Modern_CoreWindow_Only, + DXGI_MSG_Phone_IDXGISwapChain_Present1_RequiresOverlays, + DXGI_MSG_Phone_IDXGISwapChain_SetBackgroundColor_FlipSequentialRequired, + DXGI_MSG_Phone_IDXGISwapChain_GetBackgroundColor_FlipSequentialRequired, + +} DXGI_Message_Id; + +#endif // NTDDI_VERSION >= NTDDI_WIN7 diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DXProgrammableCapture.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DXProgrammableCapture.h new file mode 100644 index 0000000000000000000000000000000000000000..6e2b266057c27ccd570e72d111e4a6f72f86ac66 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DXProgrammableCapture.h @@ -0,0 +1,44 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) + +#pragma once + +#endif // _MSC_VER + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + +// Applications use this interface to denote the beginning and ending of a +// "frame" of captured DXGI/D3D10+ commands for examination within a debugging +// tool such as Visual Studio 2013. Absent such calls, a frame is defined by +// Visual Studio as beginning and ending with the IDXGISwapChain*::Present* calls. +// +// To retrieve a pointer to this interface, call +// +// ComPtr graphicsAnalysis; +// DXGIGetDebugInterface1(0, IID_PPV_ARGS(&graphicsAnalysis)); +// +// The function will only succeed when the application is being run under +// "graphics analysis" in Visual Studio (or other similar tools), so applications +// must be sure to handle failure from DXGIGetDebugInterface1 gracefully. +// +// Further note that DXGIGetDebugInterface1 is tagged as a development-only capability, +// which implies that linking to this function will cause the application to fail +// Windows store certification. Consequently, it is recommended that usage of that +// function be compiled only for pre-release code. + +interface DECLSPEC_UUID("9f251514-9d4d-4902-9d60-18988ab7d4b5") DECLSPEC_NOVTABLE IDXGraphicsAnalysis : public IUnknown +{ + STDMETHOD_(void, BeginCapture)() PURE; + STDMETHOD_(void, EndCapture)() PURE; +}; + +#endif // NTDDI_VERSION + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgEng.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgEng.h new file mode 100644 index 0000000000000000000000000000000000000000..b09d36293bdae947906b3eb9b8a4b14b847fd399 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgEng.h @@ -0,0 +1,27163 @@ +//---------------------------------------------------------------------------- +// +// Debugger engine interfaces. +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//---------------------------------------------------------------------------- + +#ifndef __DBGENG_H__ +#define __DBGENG_H__ + +#include + +#pragma region Desktop Family or WER Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_WER) + +#include +#include + +#ifndef _WDBGEXTS_ +typedef struct _WINDBG_EXTENSION_APIS32* PWINDBG_EXTENSION_APIS32; +typedef struct _WINDBG_EXTENSION_APIS64* PWINDBG_EXTENSION_APIS64; +#endif + +#ifndef _CRASHLIB_ +typedef struct _MEMORY_BASIC_INFORMATION64* PMEMORY_BASIC_INFORMATION64; +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +//---------------------------------------------------------------------------- +// +// Special exception code extensions could throw +// +//---------------------------------------------------------------------------- +#define ERROR_DBG_CANCELLED 0xC00004C7 // 0xC0000000 + ERROR_CANCELLED +#define ERROR_DBG_TIMEOUT 0xC00005B4 // 0xC0000000 + ERROR_TIMEOUT + +//---------------------------------------------------------------------------- +// +// GUIDs and interface forward declarations. +// +//---------------------------------------------------------------------------- + +/* f2df5f53-071f-47bd-9de6-5734c3fed689 */ +DEFINE_GUID(IID_IDebugAdvanced, 0xf2df5f53, 0x071f, 0x47bd, + 0x9d, 0xe6, 0x57, 0x34, 0xc3, 0xfe, 0xd6, 0x89); +/* 716d14c9-119b-4ba5-af1f-0890e672416a */ +DEFINE_GUID(IID_IDebugAdvanced2, 0x716d14c9, 0x119b, 0x4ba5, + 0xaf, 0x1f, 0x08, 0x90, 0xe6, 0x72, 0x41, 0x6a); +/* cba4abb4-84c4-444d-87ca-a04e13286739 */ +DEFINE_GUID(IID_IDebugAdvanced3, 0xcba4abb4, 0x84c4, 0x444d, + 0x87, 0xca, 0xa0, 0x4e, 0x13, 0x28, 0x67, 0x39); +/* d1069067-2a65-4bf0-ae97-76184b67856b */ +DEFINE_GUID(IID_IDebugAdvanced4, 0xd1069067, 0x2a65, 0x4bf0, + 0xae, 0x97, 0x76, 0x18, 0x4b, 0x67, 0x85, 0x6b); +/* 5bd9d474-5975-423a-b88b-65a8e7110e65 */ +DEFINE_GUID(IID_IDebugBreakpoint, 0x5bd9d474, 0x5975, 0x423a, + 0xb8, 0x8b, 0x65, 0xa8, 0xe7, 0x11, 0x0e, 0x65); +/* 1b278d20-79f2-426e-a3f9-c1ddf375d48e */ +DEFINE_GUID(IID_IDebugBreakpoint2, 0x1b278d20, 0x79f2, 0x426e, + 0xa3, 0xf9, 0xc1, 0xdd, 0xf3, 0x75, 0xd4, 0x8e); +/* 38f5c249-b448-43bb-9835-579d4ec02249 */ +DEFINE_GUID(IID_IDebugBreakpoint3, 0x38f5c249, 0xb448, 0x43bb, + 0x98, 0x35, 0x57, 0x9d, 0x4e, 0xc0, 0x22, 0x49); +/* 27fe5639-8407-4f47-8364-ee118fb08ac8 */ +DEFINE_GUID(IID_IDebugClient, 0x27fe5639, 0x8407, 0x4f47, + 0x83, 0x64, 0xee, 0x11, 0x8f, 0xb0, 0x8a, 0xc8); +/* edbed635-372e-4dab-bbfe-ed0d2f63be81 */ +DEFINE_GUID(IID_IDebugClient2, 0xedbed635, 0x372e, 0x4dab, + 0xbb, 0xfe, 0xed, 0x0d, 0x2f, 0x63, 0xbe, 0x81); +/* dd492d7f-71b8-4ad6-a8dc-1c887479ff91 */ +DEFINE_GUID(IID_IDebugClient3, 0xdd492d7f, 0x71b8, 0x4ad6, + 0xa8, 0xdc, 0x1c, 0x88, 0x74, 0x79, 0xff, 0x91); +/* ca83c3de-5089-4cf8-93c8-d892387f2a5e */ +DEFINE_GUID(IID_IDebugClient4, 0xca83c3de, 0x5089, 0x4cf8, + 0x93, 0xc8, 0xd8, 0x92, 0x38, 0x7f, 0x2a, 0x5e); +/* e3acb9d7-7ec2-4f0c-a0da-e81e0cbbe628 */ +DEFINE_GUID(IID_IDebugClient5, 0xe3acb9d7, 0x7ec2, 0x4f0c, + 0xa0, 0xda, 0xe8, 0x1e, 0x0c, 0xbb, 0xe6, 0x28); +/* fd28b4c5-c498-4686-a28e-62cad2154eb3 */ +DEFINE_GUID(IID_IDebugClient6, 0xfd28b4c5, 0xc498, 0x4686, + 0xa2, 0x8e, 0x62, 0xca, 0xd2, 0x15, 0x4e, 0xb3); +/* 13586be3-542e-481e-b1f2-8497ba74f9a9 */ +DEFINE_GUID(IID_IDebugClient7, 0x13586be3, 0x542e, 0x481e, + 0xb1, 0xf2, 0x84, 0x97, 0xba, 0x74, 0xf9, 0xa9); +/* CEC43ADD-6375-469e-83D5-414E4033C19A */ +DEFINE_GUID(IID_IDebugClient8, 0xcec43add, 0x6375, 0x469e, + 0x83, 0xd5, 0x41, 0x4e, 0x40, 0x33, 0xc1, 0x9a); +/* 2C24CD5B-4D9E-4DF4-8A70-3D37440D119F */ +DEFINE_GUID(IID_IDebugClient9, 0x2c24cd5b, 0x4d9e, 0x4df4, + 0x8a, 0x70, 0x3d, 0x37, 0x44, 0x0d, 0x11, 0x9f); +/* a02b66c4-aea3-4234-a9f7-fe4c383d4e29 */ +DEFINE_GUID(IID_IDebugPlmClient, 0xa02b66c4, 0xaea3, 0x4234, + 0xa9, 0xf7, 0xfe, 0x4c, 0x38, 0x3d, 0x4e, 0x29); +/* 597c980d-e7bd-4309-962c-9d9b69a7372c */ +DEFINE_GUID(IID_IDebugPlmClient2, 0x597c980d, 0xe7bd, 0x4309, + 0x96, 0x2c, 0x9d, 0x9b, 0x69, 0xa7, 0x37, 0x2c); +/* cdf48669-901f-4791-b868-7d2cb3a2d7fc */ +DEFINE_GUID(IID_IDebugPlmClient3, 0xcdf48669, 0x901f, 0x4791, + 0xb8, 0x68, 0x7d, 0x2c, 0xb3, 0xa2, 0xd7, 0xfc); +/* 7782d8f2-2b85-4059-ab88-28ceddca1c80 */ +DEFINE_GUID(IID_IDebugOutputStream, 0x7782d8f2, 0x2b85, 0x4059, + 0xab, 0x88, 0x28, 0xce, 0xdd, 0xca, 0x1c, 0x80); +/* 5182e668-105e-416e-ad92-24ef800424ba */ +DEFINE_GUID(IID_IDebugControl, 0x5182e668, 0x105e, 0x416e, + 0xad, 0x92, 0x24, 0xef, 0x80, 0x04, 0x24, 0xba); +/* d4366723-44df-4bed-8c7e-4c05424f4588 */ +DEFINE_GUID(IID_IDebugControl2, 0xd4366723, 0x44df, 0x4bed, + 0x8c, 0x7e, 0x4c, 0x05, 0x42, 0x4f, 0x45, 0x88); +/* 7df74a86-b03f-407f-90ab-a20dadcead08 */ +DEFINE_GUID(IID_IDebugControl3, 0x7df74a86, 0xb03f, 0x407f, + 0x90, 0xab, 0xa2, 0x0d, 0xad, 0xce, 0xad, 0x08); +/* 94e60ce9-9b41-4b19-9fc0-6d9eb35272b3 */ +DEFINE_GUID(IID_IDebugControl4, 0x94e60ce9, 0x9b41, 0x4b19, + 0x9f, 0xc0, 0x6d, 0x9e, 0xb3, 0x52, 0x72, 0xb3); +/* b2ffe162-2412-429f-8d1d-5bf6dd824696 */ +DEFINE_GUID(IID_IDebugControl5, 0xb2ffe162, 0x2412, 0x429f, + 0x8d, 0x1d, 0x5b, 0xf6, 0xdd, 0x82, 0x46, 0x96); +/* bc0d583f-126d-43a1-9cc4-a860ab1d537b */ +DEFINE_GUID(IID_IDebugControl6, 0xbc0d583f, 0x126d, 0x43a1, + 0x9c, 0xc4, 0xa8, 0x60, 0xab, 0x1d, 0x53, 0x7b); +/* b86fb3b1-80d4-475b-aea3-cf06539cf63a */ +DEFINE_GUID(IID_IDebugControl7, 0xb86fb3b1, 0x80d4, 0x475b, + 0xae, 0xa3, 0xcf, 0x06, 0x53, 0x9c, 0xf6, 0x3a); +/* 88f7dfab-3ea7-4c3a-aefb-c4e8106173aa */ +DEFINE_GUID(IID_IDebugDataSpaces, 0x88f7dfab, 0x3ea7, 0x4c3a, + 0xae, 0xfb, 0xc4, 0xe8, 0x10, 0x61, 0x73, 0xaa); +/* 7a5e852f-96e9-468f-ac1b-0b3addc4a049 */ +DEFINE_GUID(IID_IDebugDataSpaces2, 0x7a5e852f, 0x96e9, 0x468f, + 0xac, 0x1b, 0x0b, 0x3a, 0xdd, 0xc4, 0xa0, 0x49); +/* 23f79d6c-8aaf-4f7c-a607-9995f5407e63 */ +DEFINE_GUID(IID_IDebugDataSpaces3, 0x23f79d6c, 0x8aaf, 0x4f7c, + 0xa6, 0x07, 0x99, 0x95, 0xf5, 0x40, 0x7e, 0x63); +/* d98ada1f-29e9-4ef5-a6c0-e53349883212 */ +DEFINE_GUID(IID_IDebugDataSpaces4, 0xd98ada1f, 0x29e9, 0x4ef5, + 0xa6, 0xc0, 0xe5, 0x33, 0x49, 0x88, 0x32, 0x12); +/* 337be28b-5036-4d72-b6bf-c45fbb9f2eaa */ +DEFINE_GUID(IID_IDebugEventCallbacks, 0x337be28b, 0x5036, 0x4d72, + 0xb6, 0xbf, 0xc4, 0x5f, 0xbb, 0x9f, 0x2e, 0xaa); +/* 0690e046-9c23-45ac-a04f-987ac29ad0d3 */ +DEFINE_GUID(IID_IDebugEventCallbacksWide, 0x0690e046, 0x9c23, 0x45ac, + 0xa0, 0x4f, 0x98, 0x7a, 0xc2, 0x9a, 0xd0, 0xd3); +/* 61a4905b-23f9-4247-b3c5-53d087529ab7 */ +DEFINE_GUID(IID_IDebugEventContextCallbacks, 0x61a4905b, 0x23f9, 0x4247, + 0xb3, 0xc5, 0x53, 0xd0, 0x87, 0x52, 0x9a, 0xb7); +/* 9f50e42c-f136-499e-9a97-73036c94ed2d */ +DEFINE_GUID(IID_IDebugInputCallbacks, 0x9f50e42c, 0xf136, 0x499e, + 0x9a, 0x97, 0x73, 0x03, 0x6c, 0x94, 0xed, 0x2d); +/* 4bf58045-d654-4c40-b0af-683090f356dc */ +DEFINE_GUID(IID_IDebugOutputCallbacks, 0x4bf58045, 0xd654, 0x4c40, + 0xb0, 0xaf, 0x68, 0x30, 0x90, 0xf3, 0x56, 0xdc); +/* 4c7fd663-c394-4e26-8ef1-34ad5ed3764c */ +DEFINE_GUID(IID_IDebugOutputCallbacksWide, 0x4c7fd663, 0xc394, 0x4e26, + 0x8e, 0xf1, 0x34, 0xad, 0x5e, 0xd3, 0x76, 0x4c); +/* 67721fe9-56d2-4a44-a325-2b65513ce6eb */ +DEFINE_GUID(IID_IDebugOutputCallbacks2, 0x67721fe9, 0x56d2, 0x4a44, + 0xa3, 0x25, 0x2b, 0x65, 0x51, 0x3c, 0xe6, 0xeb); +/* ce289126-9e84-45a7-937e-67bb18691493 */ +DEFINE_GUID(IID_IDebugRegisters, 0xce289126, 0x9e84, 0x45a7, + 0x93, 0x7e, 0x67, 0xbb, 0x18, 0x69, 0x14, 0x93); +/* 1656afa9-19c6-4e3a-97e7-5dc9160cf9c4 */ +DEFINE_GUID(IID_IDebugRegisters2, 0x1656afa9, 0x19c6, 0x4e3a, + 0x97, 0xe7, 0x5d, 0xc9, 0x16, 0x0c, 0xf9, 0xc4); +/* f2528316-0f1a-4431-aeed-11d096e1e2ab */ +DEFINE_GUID(IID_IDebugSymbolGroup, 0xf2528316, 0x0f1a, 0x4431, + 0xae, 0xed, 0x11, 0xd0, 0x96, 0xe1, 0xe2, 0xab); +/* 6a7ccc5f-fb5e-4dcc-b41c-6c20307bccc7 */ +DEFINE_GUID(IID_IDebugSymbolGroup2, 0x6a7ccc5f, 0xfb5e, 0x4dcc, + 0xb4, 0x1c, 0x6c, 0x20, 0x30, 0x7b, 0xcc, 0xc7); +/* 8c31e98c-983a-48a5-9016-6fe5d667a950 */ +DEFINE_GUID(IID_IDebugSymbols, 0x8c31e98c, 0x983a, 0x48a5, + 0x90, 0x16, 0x6f, 0xe5, 0xd6, 0x67, 0xa9, 0x50); +/* 3a707211-afdd-4495-ad4f-56fecdf8163f */ +DEFINE_GUID(IID_IDebugSymbols2, 0x3a707211, 0xafdd, 0x4495, + 0xad, 0x4f, 0x56, 0xfe, 0xcd, 0xf8, 0x16, 0x3f); +/* f02fbecc-50ac-4f36-9ad9-c975e8f32ff8 */ +DEFINE_GUID(IID_IDebugSymbols3, 0xf02fbecc, 0x50ac, 0x4f36, + 0x9a, 0xd9, 0xc9, 0x75, 0xe8, 0xf3, 0x2f, 0xf8); +/* e391bbd8-9d8c-4418-840b-c006592a1752 */ +DEFINE_GUID(IID_IDebugSymbols4, 0xe391bbd8, 0x9d8c, 0x4418, + 0x84, 0x0b, 0xc0, 0x06, 0x59, 0x2a, 0x17, 0x52); +/* c65fa83e-1e69-475e-8e0e-b5d79e9cc17e */ +DEFINE_GUID(IID_IDebugSymbols5, 0xc65fa83e, 0x1e69, 0x475e, + 0x8e, 0x0e, 0xb5, 0xd7, 0x9e, 0x9c, 0xc1, 0x7e); +/* 6b86fe2c-2c4f-4f0c-9da2-174311acc327 */ +DEFINE_GUID(IID_IDebugSystemObjects, 0x6b86fe2c, 0x2c4f, 0x4f0c, + 0x9d, 0xa2, 0x17, 0x43, 0x11, 0xac, 0xc3, 0x27); +/* 0ae9f5ff-1852-4679-b055-494bee6407ee */ +DEFINE_GUID(IID_IDebugSystemObjects2, 0x0ae9f5ff, 0x1852, 0x4679, + 0xb0, 0x55, 0x49, 0x4b, 0xee, 0x64, 0x07, 0xee); +/* e9676e2f-e286-4ea3-b0f9-dfe5d9fc330e */ +DEFINE_GUID(IID_IDebugSystemObjects3, 0xe9676e2f, 0xe286, 0x4ea3, + 0xb0, 0xf9, 0xdf, 0xe5, 0xd9, 0xfc, 0x33, 0x0e); +/* 489468e6-7d0f-4af5-87ab-25207454d553 */ +DEFINE_GUID(IID_IDebugSystemObjects4, 0x489468e6, 0x7d0f, 0x4af5, + 0x87, 0xab, 0x25, 0x20, 0x74, 0x54, 0xd5, 0x53); + +typedef interface DECLSPEC_UUID("f2df5f53-071f-47bd-9de6-5734c3fed689") + IDebugAdvanced* PDEBUG_ADVANCED; +typedef interface DECLSPEC_UUID("716d14c9-119b-4ba5-af1f-0890e672416a") + IDebugAdvanced2* PDEBUG_ADVANCED2; +typedef interface DECLSPEC_UUID("cba4abb4-84c4-444d-87ca-a04e13286739") + IDebugAdvanced3* PDEBUG_ADVANCED3; +typedef interface DECLSPEC_UUID("d1069067-2a65-4bf0-ae97-76184b67856b") + IDebugAdvanced4* PDEBUG_ADVANCED4; +typedef interface DECLSPEC_UUID("5bd9d474-5975-423a-b88b-65a8e7110e65") + IDebugBreakpoint* PDEBUG_BREAKPOINT; +typedef interface DECLSPEC_UUID("1b278d20-79f2-426e-a3f9-c1ddf375d48e") + IDebugBreakpoint2* PDEBUG_BREAKPOINT2; +typedef interface DECLSPEC_UUID("38f5c249-b448-43bb-9835-579d4ec02249") + IDebugBreakpoint3* PDEBUG_BREAKPOINT3; +typedef interface DECLSPEC_UUID("27fe5639-8407-4f47-8364-ee118fb08ac8") + IDebugClient* PDEBUG_CLIENT; +typedef interface DECLSPEC_UUID("edbed635-372e-4dab-bbfe-ed0d2f63be81") + IDebugClient2* PDEBUG_CLIENT2; +typedef interface DECLSPEC_UUID("dd492d7f-71b8-4ad6-a8dc-1c887479ff91") + IDebugClient3* PDEBUG_CLIENT3; +typedef interface DECLSPEC_UUID("ca83c3de-5089-4cf8-93c8-d892387f2a5e") + IDebugClient4* PDEBUG_CLIENT4; +typedef interface DECLSPEC_UUID("e3acb9d7-7ec2-4f0c-a0da-e81e0cbbe628") + IDebugClient5* PDEBUG_CLIENT5; +typedef interface DECLSPEC_UUID("fd28b4c5-c498-4686-a28e-62cad2154eb3") + IDebugClient6* PDEBUG_CLIENT6; +typedef interface DECLSPEC_UUID("13586be3-542e-481e-b1f2-8497ba74f9a9") + IDebugClient7* PDEBUG_CLIENT7; +typedef interface DECLSPEC_UUID("CEC43ADD-6375-469e-83D5-414E4033C19A") + IDebugClient8* PDEBUG_CLIENT8; +typedef interface DECLSPEC_UUID("2C24CD5B-4D9E-4DF4-8A70-3D37440D119F") + IDebugClient9* PDEBUG_CLIENT9; +typedef interface DECLSPEC_UUID("a02b66c4-aea3-4234-a9f7-fe4c383d4e29") + IDebugPlmClient* PIDEBUG_PLMCLIENT; +typedef interface DECLSPEC_UUID("597c980d-e7bd-4309-962c-9d9b69a7372c") + IDebugPlmClient2* PIDEBUG_PLMCLIENT2; +typedef interface DECLSPEC_UUID("d4a5dbd1-ca02-4d90-856a-2a92bfd0f20f") + IDebugPlmClient3* PIDEBUG_PLMCLIENT3; +typedef interface DECLSPEC_UUID("7782d8f2-2b85-4059-ab88-28ceddca1c80") + IDebugOutputStream* PDEBUG_OUTPUT_STREAM; +typedef interface DECLSPEC_UUID("5182e668-105e-416e-ad92-24ef800424ba") + IDebugControl* PDEBUG_CONTROL; +typedef interface DECLSPEC_UUID("d4366723-44df-4bed-8c7e-4c05424f4588") + IDebugControl2* PDEBUG_CONTROL2; +typedef interface DECLSPEC_UUID("7df74a86-b03f-407f-90ab-a20dadcead08") + IDebugControl3* PDEBUG_CONTROL3; +typedef interface DECLSPEC_UUID("94e60ce9-9b41-4b19-9fc0-6d9eb35272b3") + IDebugControl4* PDEBUG_CONTROL4; +typedef interface DECLSPEC_UUID("b2ffe162-2412-429f-8d1d-5bf6dd824696") + IDebugControl5* PDEBUG_CONTROL5; +typedef interface DECLSPEC_UUID("bc0d583f-126d-43a1-9cc4-a860ab1d537b") + IDebugControl6* PDEBUG_CONTROL6; +typedef interface DECLSPEC_UUID("b86fb3b1-80d4-475b-aea3-cf06539cf63a") + IDebugControl7* PDEBUG_CONTROL7; + +typedef interface DECLSPEC_UUID("88f7dfab-3ea7-4c3a-aefb-c4e8106173aa") + IDebugDataSpaces* PDEBUG_DATA_SPACES; +typedef interface DECLSPEC_UUID("7a5e852f-96e9-468f-ac1b-0b3addc4a049") + IDebugDataSpaces2* PDEBUG_DATA_SPACES2; +typedef interface DECLSPEC_UUID("23f79d6c-8aaf-4f7c-a607-9995f5407e63") + IDebugDataSpaces3* PDEBUG_DATA_SPACES3; +typedef interface DECLSPEC_UUID("d98ada1f-29e9-4ef5-a6c0-e53349883212") + IDebugDataSpaces4* PDEBUG_DATA_SPACES4; +typedef interface DECLSPEC_UUID("337be28b-5036-4d72-b6bf-c45fbb9f2eaa") + IDebugEventCallbacks* PDEBUG_EVENT_CALLBACKS; +typedef interface DECLSPEC_UUID("0690e046-9c23-45ac-a04f-987ac29ad0d3") + IDebugEventCallbacksWide* PDEBUG_EVENT_CALLBACKS_WIDE; +typedef interface DECLSPEC_UUID("61a4905b-23f9-4247-b3c5-53d087529ab7") + IDebugEventContextCallbacks* PDEBUG_EVENT_CONTEXT_CALLBACKS; +typedef interface DECLSPEC_UUID("9f50e42c-f136-499e-9a97-73036c94ed2d") + IDebugInputCallbacks* PDEBUG_INPUT_CALLBACKS; +typedef interface DECLSPEC_UUID("4bf58045-d654-4c40-b0af-683090f356dc") + IDebugOutputCallbacks* PDEBUG_OUTPUT_CALLBACKS; +typedef interface DECLSPEC_UUID("4c7fd663-c394-4e26-8ef1-34ad5ed3764c") + IDebugOutputCallbacksWide* PDEBUG_OUTPUT_CALLBACKS_WIDE; +typedef interface DECLSPEC_UUID("67721fe9-56d2-4a44-a325-2b65513ce6eb") + IDebugOutputCallbacks2* PDEBUG_OUTPUT_CALLBACKS2; +typedef interface DECLSPEC_UUID("ce289126-9e84-45a7-937e-67bb18691493") + IDebugRegisters* PDEBUG_REGISTERS; +typedef interface DECLSPEC_UUID("1656afa9-19c6-4e3a-97e7-5dc9160cf9c4") + IDebugRegisters2* PDEBUG_REGISTERS2; +typedef interface DECLSPEC_UUID("f2528316-0f1a-4431-aeed-11d096e1e2ab") + IDebugSymbolGroup* PDEBUG_SYMBOL_GROUP; +typedef interface DECLSPEC_UUID("6a7ccc5f-fb5e-4dcc-b41c-6c20307bccc7") + IDebugSymbolGroup2* PDEBUG_SYMBOL_GROUP2; +typedef interface DECLSPEC_UUID("8c31e98c-983a-48a5-9016-6fe5d667a950") + IDebugSymbols* PDEBUG_SYMBOLS; +typedef interface DECLSPEC_UUID("3a707211-afdd-4495-ad4f-56fecdf8163f") + IDebugSymbols2* PDEBUG_SYMBOLS2; +typedef interface DECLSPEC_UUID("f02fbecc-50ac-4f36-9ad9-c975e8f32ff8") + IDebugSymbols3* PDEBUG_SYMBOLS3; +typedef interface DECLSPEC_UUID("e391bbd8-9d8c-4418-840b-c006592a1752") + IDebugSymbols4* PDEBUG_SYMBOLS4; +typedef interface DECLSPEC_UUID("c65fa83e-1e69-475e-8e0e-b5d79e9cc17e") + IDebugSymbols5* PDEBUG_SYMBOLS5; +typedef interface DECLSPEC_UUID("6b86fe2c-2c4f-4f0c-9da2-174311acc327") + IDebugSystemObjects* PDEBUG_SYSTEM_OBJECTS; +typedef interface DECLSPEC_UUID("0ae9f5ff-1852-4679-b055-494bee6407ee") + IDebugSystemObjects2* PDEBUG_SYSTEM_OBJECTS2; +typedef interface DECLSPEC_UUID("e9676e2f-e286-4ea3-b0f9-dfe5d9fc330e") + IDebugSystemObjects3* PDEBUG_SYSTEM_OBJECTS3; +typedef interface DECLSPEC_UUID("489468e6-7d0f-4af5-87ab-25207454d553") + IDebugSystemObjects4* PDEBUG_SYSTEM_OBJECTS4; + +//---------------------------------------------------------------------------- +// +// Macros. +// +//---------------------------------------------------------------------------- + +// Extends a 32-bit address into a 64-bit address. +#define DEBUG_EXTEND64(Addr) ((ULONG64)(LONG64)(LONG)(Addr)) + +//---------------------------------------------------------------------------- +// +// Client creation functions. +// +//---------------------------------------------------------------------------- + +// RemoteOptions specifies connection types and +// their parameters. Supported strings are: +// npipe:Server=,Pipe= +// tcp:Server=,Port= +STDAPI +DebugConnect( + _In_ PCSTR RemoteOptions, + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ); + +STDAPI +DebugConnectWide( + _In_ PCWSTR RemoteOptions, + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ); + +STDAPI +DebugCreate( + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ); + +STDAPI +DebugCreateEx( + _In_ REFIID InterfaceId, + _In_ DWORD DbgEngOptions, + _Out_ PVOID* Interface + ); + +//---------------------------------------------------------------------------- +// +// IDebugAdvanced. +// +//---------------------------------------------------------------------------- + +typedef struct _DEBUG_OFFSET_REGION +{ + ULONG64 Base; + ULONG64 Size; +} DEBUG_OFFSET_REGION, *PDEBUG_OFFSET_REGION; + +#undef INTERFACE +#define INTERFACE IDebugAdvanced +DECLARE_INTERFACE_(IDebugAdvanced, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugAdvanced. + + // Get/SetThreadContext offer control over + // the full processor context for a thread. + // Higher-level functions, such as the + // IDebugRegisters interface, allow similar + // access in simpler and more generic ways. + // Get/SetThreadContext are useful when + // large amounts of thread context must + // be changed and processor-specific code + // is not a problem. + STDMETHOD(GetThreadContext)( + THIS_ + _Out_writes_bytes_(ContextSize) /* align_is(16) */ PVOID Context, + _In_ ULONG ContextSize + ) PURE; + STDMETHOD(SetThreadContext)( + THIS_ + _In_reads_bytes_(ContextSize) /* align_is(16) */ PVOID Context, + _In_ ULONG ContextSize + ) PURE; +}; + +typedef struct _DEBUG_READ_USER_MINIDUMP_STREAM +{ + IN ULONG StreamType; + IN ULONG Flags; + IN ULONG64 Offset; + OUT PVOID Buffer; + IN ULONG BufferSize; + OUT ULONG BufferUsed; +} DEBUG_READ_USER_MINIDUMP_STREAM, *PDEBUG_READ_USER_MINIDUMP_STREAM; + +#define DEBUG_GET_TEXT_COMPLETIONS_NO_DOT_COMMANDS 0x00000001 +#define DEBUG_GET_TEXT_COMPLETIONS_NO_EXTENSION_COMMANDS 0x00000002 +#define DEBUG_GET_TEXT_COMPLETIONS_NO_SYMBOLS 0x00000004 + +typedef struct _DEBUG_GET_TEXT_COMPLETIONS_IN +{ + ULONG Flags; + ULONG MatchCountLimit; + ULONG64 Reserved[3]; + // Input text string follows. +} DEBUG_GET_TEXT_COMPLETIONS_IN, *PDEBUG_GET_TEXT_COMPLETIONS_IN; + +#define DEBUG_GET_TEXT_COMPLETIONS_IS_DOT_COMMAND 0x00000001 +#define DEBUG_GET_TEXT_COMPLETIONS_IS_EXTENSION_COMMAND 0x00000002 +#define DEBUG_GET_TEXT_COMPLETIONS_IS_SYMBOL 0x00000004 + +typedef struct _DEBUG_GET_TEXT_COMPLETIONS_OUT +{ + ULONG Flags; + // Char index in input string where completions start. + ULONG ReplaceIndex; + ULONG MatchCount; + ULONG Reserved1; + ULONG64 Reserved2[2]; + // Completions follow. + // Completion data is zero-terminated strings ended + // by a final zero double-terminator. +} DEBUG_GET_TEXT_COMPLETIONS_OUT, *PDEBUG_GET_TEXT_COMPLETIONS_OUT; + +typedef struct _DEBUG_CACHED_SYMBOL_INFO +{ + ULONG64 ModBase; + ULONG64 Arg1; + ULONG64 Arg2; + ULONG Id; + ULONG Arg3; +} DEBUG_CACHED_SYMBOL_INFO, *PDEBUG_CACHED_SYMBOL_INFO; + +typedef struct _PROCESS_NAME_ENTRY +{ + ULONG ProcessId; + ULONG NameOffset; // offset for the process name string. + ULONG NameSize; // ProcessName will always be NULL terminated, NameSize is for struct align and safeguard. + ULONG NextEntry; // offset for next entry, 0 if the last. +} PROCESS_NAME_ENTRY, *PPROCESS_NAME_ENTRY; + +// +// Request requests. +// + +// InBuffer - Unused. +// OutBuffer - Unused. +#define DEBUG_REQUEST_SOURCE_PATH_HAS_SOURCE_SERVER 0 + +// InBuffer - Unused. +// OutBuffer - Machine-specific CONTEXT. +#define DEBUG_REQUEST_TARGET_EXCEPTION_CONTEXT 1 + +// InBuffer - Unused. +// OutBuffer - ULONG system ID of thread. +#define DEBUG_REQUEST_TARGET_EXCEPTION_THREAD 2 + +// InBuffer - Unused. +// OutBuffer - EXCEPTION_RECORD64. +#define DEBUG_REQUEST_TARGET_EXCEPTION_RECORD 3 + +// InBuffer - Unused. +// OutBuffer - DEBUG_CREATE_PROCESS_OPTIONS. +#define DEBUG_REQUEST_GET_ADDITIONAL_CREATE_OPTIONS 4 + +// InBuffer - DEBUG_CREATE_PROCESS_OPTIONS. +// OutBuffer - Unused. +#define DEBUG_REQUEST_SET_ADDITIONAL_CREATE_OPTIONS 5 + +// InBuffer - Unused. +// OutBuffer - ULONG[2] major/minor. +#define DEBUG_REQUEST_GET_WIN32_MAJOR_MINOR_VERSIONS 6 + +// InBuffer - DEBUG_READ_USER_MINIDUMP_STREAM. +// OutBuffer - Unused. +#define DEBUG_REQUEST_READ_USER_MINIDUMP_STREAM 7 + +// InBuffer - Unused. +// OutBuffer - Unused. +#define DEBUG_REQUEST_TARGET_CAN_DETACH 8 + +// InBuffer - PTSTR. +// OutBuffer - Unused. +#define DEBUG_REQUEST_SET_LOCAL_IMPLICIT_COMMAND_LINE 9 + +// InBuffer - Unused. +// OutBuffer - Event code stream offset. +#define DEBUG_REQUEST_GET_CAPTURED_EVENT_CODE_OFFSET 10 + +// InBuffer - Unused. +// OutBuffer - Event code stream information. +#define DEBUG_REQUEST_READ_CAPTURED_EVENT_CODE_STREAM 11 + +// InBuffer - Input data block. +// OutBuffer - Processed data block. +#define DEBUG_REQUEST_EXT_TYPED_DATA_ANSI 12 + +// InBuffer - Unused. +// OutBuffer - Returned path. +#define DEBUG_REQUEST_GET_EXTENSION_SEARCH_PATH_WIDE 13 + +// InBuffer - DEBUG_GET_TEXT_COMPLETIONS_IN. +// OutBuffer - DEBUG_GET_TEXT_COMPLETIONS_OUT. +#define DEBUG_REQUEST_GET_TEXT_COMPLETIONS_WIDE 14 + +// InBuffer - ULONG64 cookie. +// OutBuffer - DEBUG_CACHED_SYMBOL_INFO. +#define DEBUG_REQUEST_GET_CACHED_SYMBOL_INFO 15 + +// InBuffer - DEBUG_CACHED_SYMBOL_INFO. +// OutBuffer - ULONG64 cookie. +#define DEBUG_REQUEST_ADD_CACHED_SYMBOL_INFO 16 + +// InBuffer - ULONG64 cookie. +// OutBuffer - Unused. +#define DEBUG_REQUEST_REMOVE_CACHED_SYMBOL_INFO 17 + +// InBuffer - DEBUG_GET_TEXT_COMPLETIONS_IN. +// OutBuffer - DEBUG_GET_TEXT_COMPLETIONS_OUT. +#define DEBUG_REQUEST_GET_TEXT_COMPLETIONS_ANSI 18 + +// InBuffer - Unused. +// OutBuffer - Unused. +#define DEBUG_REQUEST_CURRENT_OUTPUT_CALLBACKS_ARE_DML_AWARE 19 + +// InBuffer - ULONG64 offset. +// OutBuffer - Unwind information. +#define DEBUG_REQUEST_GET_OFFSET_UNWIND_INFORMATION 20 + +// InBuffer - Unused +// OutBuffer - returned DUMP_HEADER32/DUMP_HEADER64 structure. +#define DEBUG_REQUEST_GET_DUMP_HEADER 21 + +// InBuffer - DUMP_HEADER32/DUMP_HEADER64 structure. +// OutBuffer - Unused +#define DEBUG_REQUEST_SET_DUMP_HEADER 22 + +// InBuffer - Midori specific +// OutBuffer - Midori specific +#define DEBUG_REQUEST_MIDORI 23 + +// InBuffer - Unused +// OutBuffer - PROCESS_NAME_ENTRY blocks +#define DEBUG_REQUEST_PROCESS_DESCRIPTORS 24 + +// InBuffer - Unused +// OutBuffer - MINIDUMP_MISC_INFO_N blocks +#define DEBUG_REQUEST_MISC_INFORMATION 25 + +// InBuffer - Unused +// OutBuffer - ULONG64 as TokenHandle value +#define DEBUG_REQUEST_OPEN_PROCESS_TOKEN 26 + +// InBuffer - Unused +// OutBuffer - ULONG64 as TokenHandle value +#define DEBUG_REQUEST_OPEN_THREAD_TOKEN 27 + +// InBuffer - ULONG64 as TokenHandle being duplicated +// OutBuffer - ULONG64 as new duplicated TokenHandle +#define DEBUG_REQUEST_DUPLICATE_TOKEN 28 + +// InBuffer - a ULONG64 as TokenHandle and a ULONG as NtQueryInformationToken() request code +// OutBuffer - NtQueryInformationToken() return +#define DEBUG_REQUEST_QUERY_INFO_TOKEN 29 + +// InBuffer - ULONG64 as TokenHandle +// OutBuffer - Unused +#define DEBUG_REQUEST_CLOSE_TOKEN 30 + +// InBuffer - ULONG64 for process server identification and ULONG as PID +// OutBuffer - Unused +#define DEBUG_REQUEST_WOW_PROCESS 31 + +// InBuffer - ULONG64 for process server identification and PWSTR as module path +// OutBuffer - Unused +#define DEBUG_REQUEST_WOW_MODULE 32 + +// InBuffer - Unused +// OutBuffer - Unused +// return - S_OK if non-invasive user-mode attach, S_FALSE if not (but still live user-mode), E_FAIL otherwise. +#define DEBUG_LIVE_USER_NON_INVASIVE 33 + +// InBuffer - TID +// OutBuffer - Unused +// return - ResumeThreads() return. +#define DEBUG_REQUEST_RESUME_THREAD 34 + +// InBuffer - LONG32 - 0:query current state; >0:enable inline queries; <0: disable inline queries +// OutBuffer - Unused +// return - S_OK: inline queries are enabled; S_FALSE: inline queries are disabled; others: errors. +#define DEBUG_REQUEST_INLINE_QUERY 35 + +// InBuffer - Unused +// OutBuffer - Unused +// return - S_OK. +#define DEBUG_REQUEST_TL_INSTRUMENTATION_AWARE 36 + +// InBuffer - Unused +// OutBuffer - ULONG for version number supported +// return - S_OK. +#define DEBUG_REQUEST_GET_INSTRUMENTATION_VERSION 37 + +// InBuffer - ULONG for module index +// OutBuffer - ULONG for architecture +// return - S_OK +#define DEBUG_REQUEST_GET_MODULE_ARCHITECTURE 38 + +// InBuffer - ULONG64 for process server identification and PWSTR as module path +// OutBuffer - ULONG for architecture +#define DEBUG_REQUEST_GET_IMAGE_ARCHITECTURE 39 + +// InBuffer - HWND for the new parent +// OutBuffer - HWND for the old parent window +#define DEBUG_REQUEST_SET_PARENT_HWND 40 + +// +// GetSourceFileInformation requests. +// + +// Arg64 - Module base. +// Arg32 - Unused. +#define DEBUG_SRCFILE_SYMBOL_TOKEN 0 + +// Arg64 - Module base. +// Arg32 - Unused. +#define DEBUG_SRCFILE_SYMBOL_TOKEN_SOURCE_COMMAND_WIDE 1 + +// Arg64 - Module base. +// Arg32 - Unused +#define DEBUG_SRCFILE_SYMBOL_CHECKSUMINFO 2 + +// +// GetSymbolInformation requests. +// + +// Arg64 - Unused. +// Arg32 - Breakpoint ID. +// Buffer - ULONG line number. +// String - File name. +#define DEBUG_SYMINFO_BREAKPOINT_SOURCE_LINE 0 + +// Arg64 - Module base. +// Arg32 - Unused. +// Buffer - IMAGEHLP_MODULEW64. +// String - Unused. +#define DEBUG_SYMINFO_IMAGEHLP_MODULEW64 1 + +// Arg64 - Offset. +// Arg32 - Symbol tag. +// Buffer - Unicode symbol name strings. Could have multiple strings. +// String - Unused, strings are returned in Buffer as there +// may be more than one. +#define DEBUG_SYMINFO_GET_SYMBOL_NAME_BY_OFFSET_AND_TAG_WIDE 2 + +// Arg64 - Module base. +// Arg32 - Symbol tag. +// Buffer - Array of symbol addresses. +// String - Concatenated symbol strings. Individual symbol +// strings are zero-terminated and the final string in +// a symbol is double-zero-terminated. +#define DEBUG_SYMINFO_GET_MODULE_SYMBOL_NAMES_AND_OFFSETS 3 + +// +// GetSystemObjectInformation requests. +// + +// Arg64 - Unused. +// Arg32 - Debugger thread ID. +// Buffer - DEBUG_THREAD_BASIC_INFORMATION. +#define DEBUG_SYSOBJINFO_THREAD_BASIC_INFORMATION 0 + +// Arg64 - Unused. +// Arg32 - Debugger thread ID. +// Buffer - Unicode name string. +#define DEBUG_SYSOBJINFO_THREAD_NAME_WIDE 1 + +// Arg64 - Unused. +// Arg32 - Unused. +// Buffer - ULONG cookie value. +#define DEBUG_SYSOBJINFO_CURRENT_PROCESS_COOKIE 2 + +#define DEBUG_TBINFO_EXIT_STATUS 0x00000001 +#define DEBUG_TBINFO_PRIORITY_CLASS 0x00000002 +#define DEBUG_TBINFO_PRIORITY 0x00000004 +#define DEBUG_TBINFO_TIMES 0x00000008 +#define DEBUG_TBINFO_START_OFFSET 0x00000010 +#define DEBUG_TBINFO_AFFINITY 0x00000020 +#define DEBUG_TBINFO_ALL 0x0000003f + +typedef struct _DEBUG_THREAD_BASIC_INFORMATION +{ + // Valid members have a DEBUG_TBINFO bit set in Valid. + ULONG Valid; + ULONG ExitStatus; + ULONG PriorityClass; + ULONG Priority; + ULONG64 CreateTime; + ULONG64 ExitTime; + ULONG64 KernelTime; + ULONG64 UserTime; + ULONG64 StartOffset; + ULONG64 Affinity; +} DEBUG_THREAD_BASIC_INFORMATION, *PDEBUG_THREAD_BASIC_INFORMATION; + +#undef INTERFACE +#define INTERFACE IDebugAdvanced2 +DECLARE_INTERFACE_(IDebugAdvanced2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugAdvanced. + + // Get/SetThreadContext offer control over + // the full processor context for a thread. + // Higher-level functions, such as the + // IDebugRegisters interface, allow similar + // access in simpler and more generic ways. + // Get/SetThreadContext are useful when + // large amounts of thread context must + // be changed and processor-specific code + // is not a problem. + STDMETHOD(GetThreadContext)( + THIS_ + _Out_writes_bytes_(ContextSize) /* align_is(16) */ PVOID Context, + _In_ ULONG ContextSize + ) PURE; + STDMETHOD(SetThreadContext)( + THIS_ + _In_reads_bytes_(ContextSize) /* align_is(16) */ PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + // IDebugAdvanced2. + + // + // Generalized open-ended methods for querying + // and manipulation. The open-ended nature of + // these methods makes it easy to add new requests, + // although at a cost in convenience of calling. + // Sufficiently common requests may have more specific, + // simpler methods elsewhere. + // + + STDMETHOD(Request)( + THIS_ + _In_ ULONG Request, + _In_reads_bytes_opt_(InBufferSize) PVOID InBuffer, + _In_ ULONG InBufferSize, + _Out_writes_bytes_opt_(OutBufferSize) PVOID OutBuffer, + _In_ ULONG OutBufferSize, + _Out_opt_ PULONG OutSize + ) PURE; + + STDMETHOD(GetSourceFileInformation)( + THIS_ + _In_ ULONG Which, + _In_ PSTR SourceFile, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize + ) PURE; + STDMETHOD(FindSourceFileAndToken)( + THIS_ + _In_ ULONG StartElement, + _In_ ULONG64 ModAddr, + _In_ PCSTR File, + _In_ ULONG Flags, + _In_reads_bytes_opt_(FileTokenSize) PVOID FileToken, + _In_ ULONG FileTokenSize, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + + STDMETHOD(GetSymbolInformation)( + THIS_ + _In_ ULONG Which, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize, + _Out_writes_opt_(StringBufferSize) PSTR StringBuffer, + _In_ ULONG StringBufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + + STDMETHOD(GetSystemObjectInformation)( + THIS_ + _In_ ULONG Which, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugAdvanced3 +DECLARE_INTERFACE_(IDebugAdvanced3, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugAdvanced. + + // Get/SetThreadContext offer control over + // the full processor context for a thread. + // Higher-level functions, such as the + // IDebugRegisters interface, allow similar + // access in simpler and more generic ways. + // Get/SetThreadContext are useful when + // large amounts of thread context must + // be changed and processor-specific code + // is not a problem. + STDMETHOD(GetThreadContext)( + THIS_ + _Out_writes_bytes_(ContextSize) /* align_is(16) */ PVOID Context, + _In_ ULONG ContextSize + ) PURE; + STDMETHOD(SetThreadContext)( + THIS_ + _In_reads_bytes_(ContextSize) /* align_is(16) */ PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + // IDebugAdvanced2. + + // + // Generalized open-ended methods for querying + // and manipulation. The open-ended nature of + // these methods makes it easy to add new requests, + // although at a cost in convenience of calling. + // Sufficiently common requests may have more specific, + // simpler methods elsewhere. + // + + STDMETHOD(Request)( + THIS_ + _In_ ULONG Request, + _In_reads_bytes_opt_(InBufferSize) PVOID InBuffer, + _In_ ULONG InBufferSize, + _Out_writes_bytes_opt_(OutBufferSize) PVOID OutBuffer, + _In_ ULONG OutBufferSize, + _Out_opt_ PULONG OutSize + ) PURE; + + STDMETHOD(GetSourceFileInformation)( + THIS_ + _In_ ULONG Which, + _In_ PSTR SourceFile, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize + ) PURE; + STDMETHOD(FindSourceFileAndToken)( + THIS_ + _In_ ULONG StartElement, + _In_ ULONG64 ModAddr, + _In_ PCSTR File, + _In_ ULONG Flags, + _In_reads_bytes_opt_(FileTokenSize) PVOID FileToken, + _In_ ULONG FileTokenSize, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + + STDMETHOD(GetSymbolInformation)( + THIS_ + _In_ ULONG Which, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize, + _Out_writes_opt_(StringBufferSize) PSTR StringBuffer, + _In_ ULONG StringBufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + + STDMETHOD(GetSystemObjectInformation)( + THIS_ + _In_ ULONG Which, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize + ) PURE; + + // IDebugAdvanced3. + + STDMETHOD(GetSourceFileInformationWide)( + THIS_ + _In_ ULONG Which, + _In_ PWSTR SourceFile, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize + ) PURE; + STDMETHOD(FindSourceFileAndTokenWide)( + THIS_ + _In_ ULONG StartElement, + _In_ ULONG64 ModAddr, + _In_ PCWSTR File, + _In_ ULONG Flags, + _In_reads_bytes_opt_(FileTokenSize) PVOID FileToken, + _In_ ULONG FileTokenSize, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + + STDMETHOD(GetSymbolInformationWide)( + THIS_ + _In_ ULONG Which, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize, + _Out_writes_opt_(StringBufferSize) PWSTR StringBuffer, + _In_ ULONG StringBufferSize, + _Out_opt_ PULONG StringSize + ) PURE; +}; + +// +// Extended line symbol information. +// +typedef struct _SYMBOL_INFO_EX +{ + ULONG SizeOfStruct; // Set to sizeof(SYMBOL_INFO_EX). + ULONG TypeOfInfo; // Type of the symbol information stored (Ex. DEBUG_SYMINFO_BREAKPOINT_SOURCE_LINE) + ULONG64 Offset; // Address of the line. + ULONG Line; // First line number that does not correspond to a compiler added glue lines. + ULONG Displacement; // Line displacement: Offset between given address and the first instruction of the line. + ULONG Reserved[4]; +} SYMBOL_INFO_EX, *PSYMBOL_INFO_EX; + +#undef INTERFACE +#define INTERFACE IDebugAdvanced4 +DECLARE_INTERFACE_(IDebugAdvanced4, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugAdvanced. + + // Get/SetThreadContext offer control over + // the full processor context for a thread. + // Higher-level functions, such as the + // IDebugRegisters interface, allow similar + // access in simpler and more generic ways. + // Get/SetThreadContext are useful when + // large amounts of thread context must + // be changed and processor-specific code + // is not a problem. + STDMETHOD(GetThreadContext)( + THIS_ + _Out_writes_bytes_(ContextSize) /* align_is(16) */ PVOID Context, + _In_ ULONG ContextSize + ) PURE; + STDMETHOD(SetThreadContext)( + THIS_ + _In_reads_bytes_(ContextSize) /* align_is(16) */ PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + // IDebugAdvanced2. + + // + // Generalized open-ended methods for querying + // and manipulation. The open-ended nature of + // these methods makes it easy to add new requests, + // although at a cost in convenience of calling. + // Sufficiently common requests may have more specific, + // simpler methods elsewhere. + // + + STDMETHOD(Request)( + THIS_ + _In_ ULONG Request, + _In_reads_bytes_opt_(InBufferSize) PVOID InBuffer, + _In_ ULONG InBufferSize, + _Out_writes_bytes_opt_(OutBufferSize) PVOID OutBuffer, + _In_ ULONG OutBufferSize, + _Out_opt_ PULONG OutSize + ) PURE; + + STDMETHOD(GetSourceFileInformation)( + THIS_ + _In_ ULONG Which, + _In_ PSTR SourceFile, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize + ) PURE; + STDMETHOD(FindSourceFileAndToken)( + THIS_ + _In_ ULONG StartElement, + _In_ ULONG64 ModAddr, + _In_ PCSTR File, + _In_ ULONG Flags, + _In_reads_bytes_opt_(FileTokenSize) PVOID FileToken, + _In_ ULONG FileTokenSize, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + + STDMETHOD(GetSymbolInformation)( + THIS_ + _In_ ULONG Which, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize, + _Out_writes_opt_(StringBufferSize) PSTR StringBuffer, + _In_ ULONG StringBufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + + STDMETHOD(GetSystemObjectInformation)( + THIS_ + _In_ ULONG Which, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize + ) PURE; + + // IDebugAdvanced3. + + STDMETHOD(GetSourceFileInformationWide)( + THIS_ + _In_ ULONG Which, + _In_ PWSTR SourceFile, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize + ) PURE; + STDMETHOD(FindSourceFileAndTokenWide)( + THIS_ + _In_ ULONG StartElement, + _In_ ULONG64 ModAddr, + _In_ PCWSTR File, + _In_ ULONG Flags, + _In_reads_bytes_opt_(FileTokenSize) PVOID FileToken, + _In_ ULONG FileTokenSize, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + + STDMETHOD(GetSymbolInformationWide)( + THIS_ + _In_ ULONG Which, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize, + _Out_writes_opt_(StringBufferSize) PWSTR StringBuffer, + _In_ ULONG StringBufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + + // IDebugAdvanced4. + + STDMETHOD(GetSymbolInformationWideEx)( + THIS_ + _In_ ULONG Which, + _In_ ULONG64 Arg64, + _In_ ULONG Arg32, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize, + _Out_writes_opt_(StringBufferSize) PWSTR StringBuffer, + _In_ ULONG StringBufferSize, + _Out_opt_ PULONG StringSize, + _Out_opt_ PSYMBOL_INFO_EX pInfoEx + ) PURE; + +}; + +//---------------------------------------------------------------------------- +// +// IDebugBreakpoint. +// +//---------------------------------------------------------------------------- + +// Types of breakpoints. +#define DEBUG_BREAKPOINT_CODE 0 +#define DEBUG_BREAKPOINT_DATA 1 +#define DEBUG_BREAKPOINT_TIME 2 +#define DEBUG_BREAKPOINT_INLINE 3 + +// Breakpoint flags. +// Go-only breakpoints are only active when +// the engine is in unrestricted execution +// mode. They do not fire when the engine +// is stepping. +#define DEBUG_BREAKPOINT_GO_ONLY 0x00000001 +// A breakpoint is flagged as deferred as long as +// its offset expression cannot be evaluated. +// A deferred breakpoint is not active. +#define DEBUG_BREAKPOINT_DEFERRED 0x00000002 +#define DEBUG_BREAKPOINT_ENABLED 0x00000004 +// The adder-only flag does not affect breakpoint +// operation. It is just a marker to restrict +// output and notifications for the breakpoint to +// the client that added the breakpoint. Breakpoint +// callbacks for adder-only breaks will only be delivered +// to the adding client. The breakpoint can not +// be enumerated and accessed by other clients. +#define DEBUG_BREAKPOINT_ADDER_ONLY 0x00000008 +// One-shot breakpoints automatically clear themselves +// the first time they are hit. +#define DEBUG_BREAKPOINT_ONE_SHOT 0x00000010 + +// Data breakpoint access types. +// Different architectures support different +// sets of these bits. +#define DEBUG_BREAK_READ 0x00000001 +#define DEBUG_BREAK_WRITE 0x00000002 +#define DEBUG_BREAK_EXECUTE 0x00000004 +#define DEBUG_BREAK_IO 0x00000008 + +// Structure for querying breakpoint information +// all at once. +typedef struct _DEBUG_BREAKPOINT_PARAMETERS +{ + ULONG64 Offset; + ULONG Id; + ULONG BreakType; + ULONG ProcType; + ULONG Flags; + ULONG DataSize; + ULONG DataAccessType; + ULONG PassCount; + ULONG CurrentPassCount; + ULONG MatchThread; + ULONG CommandSize; + ULONG OffsetExpressionSize; +} DEBUG_BREAKPOINT_PARAMETERS, *PDEBUG_BREAKPOINT_PARAMETERS; + +#undef INTERFACE +#define INTERFACE IDebugBreakpoint +DECLARE_INTERFACE_(IDebugBreakpoint, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugBreakpoint. + + // Retrieves debugger engine unique ID + // for the breakpoint. This ID is + // fixed as long as the breakpoint exists + // but after that may be reused. + STDMETHOD(GetId)( + THIS_ + _Out_ PULONG Id + ) PURE; + // Retrieves the type of break and + // processor type for the breakpoint. + STDMETHOD(GetType)( + THIS_ + _Out_ PULONG BreakType, + _Out_ PULONG ProcType + ) PURE; + // Returns the client that called AddBreakpoint. + STDMETHOD(GetAdder)( + THIS_ + _Out_ PDEBUG_CLIENT* Adder + ) PURE; + + STDMETHOD(GetFlags)( + THIS_ + _Out_ PULONG Flags + ) PURE; + // Only certain flags can be changed. Flags + // are: GO_ONLY, ENABLE. + // Sets the given flags. + STDMETHOD(AddFlags)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Clears the given flags. + STDMETHOD(RemoveFlags)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Sets the flags. + STDMETHOD(SetFlags)( + THIS_ + _In_ ULONG Flags + ) PURE; + + // Controls the offset of the breakpoint. The + // interpretation of the offset value depends on + // the type of breakpoint and its settings. It + // may be a code address, a data address, an + // I/O port, etc. + STDMETHOD(GetOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(SetOffset)( + THIS_ + _In_ ULONG64 Offset + ) PURE; + + // Data breakpoint methods will fail if the + // target platform does not support the + // parameters used. + // These methods only function for breakpoints + // created as data breakpoints. + STDMETHOD(GetDataParameters)( + THIS_ + _Out_ PULONG Size, + _Out_ PULONG AccessType + ) PURE; + STDMETHOD(SetDataParameters)( + THIS_ + _In_ ULONG Size, + _In_ ULONG AccessType + ) PURE; + + // Pass count defaults to one. + STDMETHOD(GetPassCount)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(SetPassCount)( + THIS_ + _In_ ULONG Count + ) PURE; + // Gets the current number of times + // the breakpoint has been hit since + // it was last triggered. + STDMETHOD(GetCurrentPassCount)( + THIS_ + _Out_ PULONG Count + ) PURE; + + // If a match thread is set this breakpoint will + // only trigger if it occurs on the match thread. + // Otherwise it triggers for all threads. + // Thread restrictions are not currently supported + // in kernel mode. + STDMETHOD(GetMatchThreadId)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(SetMatchThreadId)( + THIS_ + _In_ ULONG Thread + ) PURE; + + // The command for a breakpoint is automatically + // executed by the engine before the event + // is propagated. If the breakpoint continues + // execution the event will begin with a continue + // status. If the breakpoint does not continue + // the event will begin with a break status. + // This allows breakpoint commands to participate + // in the normal event status voting. + // Breakpoint commands are only executed until + // the first command that alters the execution + // status, such as g, p and t. + STDMETHOD(GetCommand)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetCommand)( + THIS_ + _In_ PCSTR Command + ) PURE; + + // Offset expressions are evaluated immediately + // and at module load and unload events. If the + // evaluation is successful the breakpoints + // offset is updated and the breakpoint is + // handled normally. If the expression cannot + // be evaluated the breakpoint is deferred. + // Currently the only offset expression + // supported is a module-relative symbol + // of the form !. + STDMETHOD(GetOffsetExpression)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ExpressionSize + ) PURE; + STDMETHOD(SetOffsetExpression)( + THIS_ + _In_ PCSTR Expression + ) PURE; + + STDMETHOD(GetParameters)( + THIS_ + _Out_ PDEBUG_BREAKPOINT_PARAMETERS Params + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugBreakpoint2 +DECLARE_INTERFACE_(IDebugBreakpoint2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugBreakpoint. + + // Retrieves debugger engine unique ID + // for the breakpoint. This ID is + // fixed as long as the breakpoint exists + // but after that may be reused. + STDMETHOD(GetId)( + THIS_ + _Out_ PULONG Id + ) PURE; + // Retrieves the type of break and + // processor type for the breakpoint. + STDMETHOD(GetType)( + THIS_ + _Out_ PULONG BreakType, + _Out_ PULONG ProcType + ) PURE; + // Returns the client that called AddBreakpoint. + STDMETHOD(GetAdder)( + THIS_ + _Out_ PDEBUG_CLIENT* Adder + ) PURE; + + STDMETHOD(GetFlags)( + THIS_ + _Out_ PULONG Flags + ) PURE; + // Only certain flags can be changed. Flags + // are: GO_ONLY, ENABLE. + // Sets the given flags. + STDMETHOD(AddFlags)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Clears the given flags. + STDMETHOD(RemoveFlags)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Sets the flags. + STDMETHOD(SetFlags)( + THIS_ + _In_ ULONG Flags + ) PURE; + + // Controls the offset of the breakpoint. The + // interpretation of the offset value depends on + // the type of breakpoint and its settings. It + // may be a code address, a data address, an + // I/O port, etc. + STDMETHOD(GetOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(SetOffset)( + THIS_ + _In_ ULONG64 Offset + ) PURE; + + // Data breakpoint methods will fail if the + // target platform does not support the + // parameters used. + // These methods only function for breakpoints + // created as data breakpoints. + STDMETHOD(GetDataParameters)( + THIS_ + _Out_ PULONG Size, + _Out_ PULONG AccessType + ) PURE; + STDMETHOD(SetDataParameters)( + THIS_ + _In_ ULONG Size, + _In_ ULONG AccessType + ) PURE; + + // Pass count defaults to one. + STDMETHOD(GetPassCount)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(SetPassCount)( + THIS_ + _In_ ULONG Count + ) PURE; + // Gets the current number of times + // the breakpoint has been hit since + // it was last triggered. + STDMETHOD(GetCurrentPassCount)( + THIS_ + _Out_ PULONG Count + ) PURE; + + // If a match thread is set this breakpoint will + // only trigger if it occurs on the match thread. + // Otherwise it triggers for all threads. + // Thread restrictions are not currently supported + // in kernel mode. + STDMETHOD(GetMatchThreadId)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(SetMatchThreadId)( + THIS_ + _In_ ULONG Thread + ) PURE; + + // The command for a breakpoint is automatically + // executed by the engine before the event + // is propagated. If the breakpoint continues + // execution the event will begin with a continue + // status. If the breakpoint does not continue + // the event will begin with a break status. + // This allows breakpoint commands to participate + // in the normal event status voting. + // Breakpoint commands are only executed until + // the first command that alters the execution + // status, such as g, p and t. + STDMETHOD(GetCommand)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetCommand)( + THIS_ + _In_ PCSTR Command + ) PURE; + + // Offset expressions are evaluated immediately + // and at module load and unload events. If the + // evaluation is successful the breakpoints + // offset is updated and the breakpoint is + // handled normally. If the expression cannot + // be evaluated the breakpoint is deferred. + // Currently the only offset expression + // supported is a module-relative symbol + // of the form !. + STDMETHOD(GetOffsetExpression)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ExpressionSize + ) PURE; + STDMETHOD(SetOffsetExpression)( + THIS_ + _In_ PCSTR Expression + ) PURE; + + STDMETHOD(GetParameters)( + THIS_ + _Out_ PDEBUG_BREAKPOINT_PARAMETERS Params + ) PURE; + + // IDebugBreakpoint2. + + STDMETHOD(GetCommandWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetCommandWide)( + THIS_ + _In_ PCWSTR Command + ) PURE; + + STDMETHOD(GetOffsetExpressionWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ExpressionSize + ) PURE; + STDMETHOD(SetOffsetExpressionWide)( + THIS_ + _In_ PCWSTR Expression + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugBreakpoint3 +DECLARE_INTERFACE_(IDebugBreakpoint3, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugBreakpoint. + + // Retrieves debugger engine unique ID + // for the breakpoint. This ID is + // fixed as long as the breakpoint exists + // but after that may be reused. + STDMETHOD(GetId)( + THIS_ + _Out_ PULONG Id + ) PURE; + // Retrieves the type of break and + // processor type for the breakpoint. + STDMETHOD(GetType)( + THIS_ + _Out_ PULONG BreakType, + _Out_ PULONG ProcType + ) PURE; + // Returns the client that called AddBreakpoint. + STDMETHOD(GetAdder)( + THIS_ + _Out_ PDEBUG_CLIENT* Adder + ) PURE; + + STDMETHOD(GetFlags)( + THIS_ + _Out_ PULONG Flags + ) PURE; + // Only certain flags can be changed. Flags + // are: GO_ONLY, ENABLE. + // Sets the given flags. + STDMETHOD(AddFlags)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Clears the given flags. + STDMETHOD(RemoveFlags)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Sets the flags. + STDMETHOD(SetFlags)( + THIS_ + _In_ ULONG Flags + ) PURE; + + // Controls the offset of the breakpoint. The + // interpretation of the offset value depends on + // the type of breakpoint and its settings. It + // may be a code address, a data address, an + // I/O port, etc. + STDMETHOD(GetOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(SetOffset)( + THIS_ + _In_ ULONG64 Offset + ) PURE; + + // Data breakpoint methods will fail if the + // target platform does not support the + // parameters used. + // These methods only function for breakpoints + // created as data breakpoints. + STDMETHOD(GetDataParameters)( + THIS_ + _Out_ PULONG Size, + _Out_ PULONG AccessType + ) PURE; + STDMETHOD(SetDataParameters)( + THIS_ + _In_ ULONG Size, + _In_ ULONG AccessType + ) PURE; + + // Pass count defaults to one. + STDMETHOD(GetPassCount)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(SetPassCount)( + THIS_ + _In_ ULONG Count + ) PURE; + // Gets the current number of times + // the breakpoint has been hit since + // it was last triggered. + STDMETHOD(GetCurrentPassCount)( + THIS_ + _Out_ PULONG Count + ) PURE; + + // If a match thread is set this breakpoint will + // only trigger if it occurs on the match thread. + // Otherwise it triggers for all threads. + // Thread restrictions are not currently supported + // in kernel mode. + STDMETHOD(GetMatchThreadId)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(SetMatchThreadId)( + THIS_ + _In_ ULONG Thread + ) PURE; + + // The command for a breakpoint is automatically + // executed by the engine before the event + // is propagated. If the breakpoint continues + // execution the event will begin with a continue + // status. If the breakpoint does not continue + // the event will begin with a break status. + // This allows breakpoint commands to participate + // in the normal event status voting. + // Breakpoint commands are only executed until + // the first command that alters the execution + // status, such as g, p and t. + STDMETHOD(GetCommand)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetCommand)( + THIS_ + _In_ PCSTR Command + ) PURE; + + // Offset expressions are evaluated immediately + // and at module load and unload events. If the + // evaluation is successful the breakpoints + // offset is updated and the breakpoint is + // handled normally. If the expression cannot + // be evaluated the breakpoint is deferred. + // Currently the only offset expression + // supported is a module-relative symbol + // of the form !. + STDMETHOD(GetOffsetExpression)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ExpressionSize + ) PURE; + STDMETHOD(SetOffsetExpression)( + THIS_ + _In_ PCSTR Expression + ) PURE; + + STDMETHOD(GetParameters)( + THIS_ + _Out_ PDEBUG_BREAKPOINT_PARAMETERS Params + ) PURE; + + // IDebugBreakpoint2. + + STDMETHOD(GetCommandWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetCommandWide)( + THIS_ + _In_ PCWSTR Command + ) PURE; + + STDMETHOD(GetOffsetExpressionWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ExpressionSize + ) PURE; + STDMETHOD(SetOffsetExpressionWide)( + THIS_ + _In_ PCWSTR Expression + ) PURE; + + // IDebugBreakpoint3. + + STDMETHOD(GetGuid)( + THIS_ + _Out_ LPGUID Guid + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// IDebugClient. +// +//---------------------------------------------------------------------------- + +// Kernel attach flags. +#define DEBUG_ATTACH_KERNEL_CONNECTION 0x00000000 +// Attach to the local machine. If this flag is not set +// a connection is made to a separate target machine using +// the given connection options. +#define DEBUG_ATTACH_LOCAL_KERNEL 0x00000001 +// Attach to an eXDI driver. +#define DEBUG_ATTACH_EXDI_DRIVER 0x00000002 +// Just install client-side transpotr drivers +#define DEBUG_ATTACH_INSTALL_DRIVER 0x00000004 + +// GetRunningProcessSystemIdByExecutableName flags. +// By default the match allows a tail match on +// just the filename. The match returns the first hit +// even if multiple matches exist. +#define DEBUG_GET_PROC_DEFAULT 0x00000000 +// The name must match fully. +#define DEBUG_GET_PROC_FULL_MATCH 0x00000001 +// The match must be the only match. +#define DEBUG_GET_PROC_ONLY_MATCH 0x00000002 +// The name is a service name instead of an executable name. +#define DEBUG_GET_PROC_SERVICE_NAME 0x00000004 + +// GetRunningProcessDescription flags. +#define DEBUG_PROC_DESC_DEFAULT 0x00000000 +// Return only filenames, not full paths. +#define DEBUG_PROC_DESC_NO_PATHS 0x00000001 +// Dont look up service names. +#define DEBUG_PROC_DESC_NO_SERVICES 0x00000002 +// Dont look up MTS package names. +#define DEBUG_PROC_DESC_NO_MTS_PACKAGES 0x00000004 +// Dont retrieve the command line. +#define DEBUG_PROC_DESC_NO_COMMAND_LINE 0x00000008 +// Dont retrieve the session ID. +#define DEBUG_PROC_DESC_NO_SESSION_ID 0x00000010 +// Dont retrieve the process's user name. +#define DEBUG_PROC_DESC_NO_USER_NAME 0x00000020 +// Retrieve the process's package family name. +#define DEBUG_PROC_DESC_WITH_PACKAGEFAMILY 0x00000040 +// Retrieve the process's architecture. +#define DEBUG_PROC_DESC_WITH_ARCHITECTURE 0x00000080 + +// +// Attach flags. +// + +// Call DebugActiveProcess when attaching. +#define DEBUG_ATTACH_DEFAULT 0x00000000 +// When attaching to a process just examine +// the process state and suspend the threads. +// DebugActiveProcess is not called so the process +// is not actually being debugged. This is useful +// for debugging processes holding locks which +// interfere with the operation of DebugActiveProcess +// or in situations where it is not desirable to +// actually set up as a debugger. +#define DEBUG_ATTACH_NONINVASIVE 0x00000001 +// Attempt to attach to a process that was abandoned +// when being debugged. This is only supported in +// some system versions. +// This flag also allows multiple debuggers to +// attach to the same process, which can result +// in numerous problems unless very carefully +// managed. +#define DEBUG_ATTACH_EXISTING 0x00000002 +// When attaching non-invasively, do not suspend +// threads. It is the callers responsibility +// to either suspend the threads itself or be +// aware that the attach state may not reflect +// the current state of the process if threads +// are still running. +#define DEBUG_ATTACH_NONINVASIVE_NO_SUSPEND 0x00000004 +// When doing an invasive attach do not inject +// a break-in thread to generate the initial break-in +// event. This can be useful to save resources when +// an initial break is not necessary or when injecting +// a thread might affect the debuggee's state. This +// option is only supported on Windows XP and above. +#define DEBUG_ATTACH_INVASIVE_NO_INITIAL_BREAK 0x00000008 +// When doing an invasive attach resume all threads at the +// time of attach. This makes it possible to attach +// to a process created suspended and cause it to start running. +#define DEBUG_ATTACH_INVASIVE_RESUME_PROCESS 0x00000010 +// When doing a non-invasive attach the engine must +// recover information for all debuggee elements. The +// engine may not have permissions for all elements, +// for example it may not be able to open all threads, +// and that would ordinarily block the attach. This +// flag allows unusable elements to be ignored. +#define DEBUG_ATTACH_NONINVASIVE_ALLOW_PARTIAL 0x00000020 + + +// +// Process creation flags to merge with Win32 flags. +// + +// On Windows XP this flag prevents the debug +// heap from being used in the new process. +#define DEBUG_CREATE_PROCESS_NO_DEBUG_HEAP CREATE_UNICODE_ENVIRONMENT +// Indicates that the native NT RTL process creation +// routines should be used instead of Win32. This +// is only meaningful for special processes that run +// as NT native processes. +#define DEBUG_CREATE_PROCESS_THROUGH_RTL STACK_SIZE_PARAM_IS_A_RESERVATION + +// +// Process creation flags specific to the debugger engine. +// + +#define DEBUG_ECREATE_PROCESS_DEFAULT 0x00000000 +#define DEBUG_ECREATE_PROCESS_INHERIT_HANDLES 0x00000001 +#define DEBUG_ECREATE_PROCESS_USE_VERIFIER_FLAGS 0x00000002 +#define DEBUG_ECREATE_PROCESS_USE_IMPLICIT_COMMAND_LINE 0x00000004 + +typedef struct _DEBUG_CREATE_PROCESS_OPTIONS +{ + // Win32 create flags. + ULONG CreateFlags; + // DEBUG_ECREATE_PROCESS_* flags. + ULONG EngCreateFlags; + // Application Verifier flags, + // if DEBUG_ECREATE_PROCESS_USE_VERIFIER_FLAGS is set. + ULONG VerifierFlags; + // Must be zero. + ULONG Reserved; +} DEBUG_CREATE_PROCESS_OPTIONS, *PDEBUG_CREATE_PROCESS_OPTIONS; + +// +// Process options. +// + +// Indicates that the debuggee process should be +// automatically detached when the debugger exits. +// A debugger can explicitly detach on exit or this +// flag can be set so that detach occurs regardless +// of how the debugger exits. +// This is only supported on some system versions. +#define DEBUG_PROCESS_DETACH_ON_EXIT 0x00000001 +// Indicates that processes created by the current +// process should not be debugged. +// Modifying this flag is only supported on some +// system versions. +#define DEBUG_PROCESS_ONLY_THIS_PROCESS 0x00000002 + +// ConnectSession flags. +// Default connect. +#define DEBUG_CONNECT_SESSION_DEFAULT 0x00000000 +// Do not output the debugger version. +#define DEBUG_CONNECT_SESSION_NO_VERSION 0x00000001 +// Do not announce the connection. +#define DEBUG_CONNECT_SESSION_NO_ANNOUNCE 0x00000002 + +// OutputServers flags. +// Debugger servers from StartSever. +#define DEBUG_SERVERS_DEBUGGER 0x00000001 +// Process servers from StartProcessServer. +#define DEBUG_SERVERS_PROCESS 0x00000002 +#define DEBUG_SERVERS_ALL 0x00000003 + +// EndSession flags. +// Perform cleanup for the session. +#define DEBUG_END_PASSIVE 0x00000000 +// Actively terminate the session and then perform cleanup. +#define DEBUG_END_ACTIVE_TERMINATE 0x00000001 +// If possible, detach from all processes and then perform cleanup. +#define DEBUG_END_ACTIVE_DETACH 0x00000002 +// Perform whatever cleanup is possible that doesn't require +// acquiring any locks. This is useful for situations where +// a thread is currently using the engine but the application +// needs to exit and still wants to give the engine +// the opportunity to clean up as much as possible. +// This may leave the engine in an indeterminate state so +// further engine calls should not be made. +// When making a reentrant EndSession call from a remote +// client it is the callers responsibility to ensure +// that the server can process the request. It is best +// to avoid making such calls. +#define DEBUG_END_REENTRANT 0x00000003 +// Notify a server that a remote client is disconnecting. +// This isnt required but if it isnt called then +// no disconnect messages will be generated by the server. +#define DEBUG_END_DISCONNECT 0x00000004 + +// Output mask bits. +// Normal output. +#define DEBUG_OUTPUT_NORMAL 0x00000001 +// Error output. +#define DEBUG_OUTPUT_ERROR 0x00000002 +// Warnings. +#define DEBUG_OUTPUT_WARNING 0x00000004 +// Additional output. +#define DEBUG_OUTPUT_VERBOSE 0x00000008 +// Prompt output. +#define DEBUG_OUTPUT_PROMPT 0x00000010 +// Register dump before prompt. +#define DEBUG_OUTPUT_PROMPT_REGISTERS 0x00000020 +// Warnings specific to extension operation. +#define DEBUG_OUTPUT_EXTENSION_WARNING 0x00000040 +// Debuggee debug output, such as from OutputDebugString. +#define DEBUG_OUTPUT_DEBUGGEE 0x00000080 +// Debuggee-generated prompt, such as from DbgPrompt. +#define DEBUG_OUTPUT_DEBUGGEE_PROMPT 0x00000100 +// Symbol messages, such as for !sym noisy. +#define DEBUG_OUTPUT_SYMBOLS 0x00000200 +// Output which modifies the status bar +#define DEBUG_OUTPUT_STATUS 0x00000400 +// Structured XML status messages +#define DEBUG_OUTPUT_XML 0x00000800 + +// Internal debugger output, used mainly +// for debugging the debugger. Output +// may only occur in debug builds. +// KD protocol output. +#define DEBUG_IOUTPUT_KD_PROTOCOL 0x80000000 +// Remoting output. +#define DEBUG_IOUTPUT_REMOTING 0x40000000 +// Breakpoint output. +#define DEBUG_IOUTPUT_BREAKPOINT 0x20000000 +// Event output. +#define DEBUG_IOUTPUT_EVENT 0x10000000 +// Virtual/Physical address translation +#define DEBUG_IOUTPUT_ADDR_TRANSLATE 0x08000000 + +// OutputIdentity flags. +#define DEBUG_OUTPUT_IDENTITY_DEFAULT 0x00000000 + +// Client identification constants +#define DEBUG_CLIENT_UNKNOWN 0x0 +#define DEBUG_CLIENT_VSINT 0x1 +#define DEBUG_CLIENT_NTSD 0x2 +#define DEBUG_CLIENT_NTKD 0x3 +#define DEBUG_CLIENT_CDB 0x4 +#define DEBUG_CLIENT_KD 0x5 +#define DEBUG_CLIENT_WINDBG 0x6 +#define DEBUG_CLIENT_WINIDE 0x7 + +typedef struct _DEBUG_CLIENT_CONTEXT +{ + UINT cbSize; + UINT eClient; +} DEBUG_CLIENT_CONTEXT, *PDEBUG_CLIENT_CONTEXT; + +#undef INTERFACE +#define INTERFACE IDebugClient +DECLARE_INTERFACE_(IDebugClient, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugClient. + + // The following set of methods start + // the different kinds of debuggees. + + // Begins a debug session using the kernel + // debugging protocol. This method selects + // the protocol as the debuggee communication + // mechanism but does not initiate the communication + // itself. + STDMETHOD(AttachKernel)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptions)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + // Updates the connection options for a live + // kernel connection. This can only be used + // to modify parameters for the connection, not + // to switch to a completely different kind of + // connection. + // This method is reentrant. + STDMETHOD(SetKernelConnectionOptions)( + THIS_ + _In_ PCSTR Options + ) PURE; + + // Starts a process server for remote + // user-mode process control. + // The local process server is server zero. + STDMETHOD(StartProcessServer)( + THIS_ + _In_ ULONG Flags, + _In_ PCSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServer)( + THIS_ + _In_ PCSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(DisconnectProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + + // Enumerates and describes processes + // accessible through the given process server. + STDMETHOD(GetRunningProcessSystemIds)( + THIS_ + _In_ ULONG64 Server, + _Out_writes_opt_(Count) PULONG Ids, + _In_ ULONG Count, + _Out_opt_ PULONG ActualCount + ) PURE; + STDMETHOD(GetRunningProcessSystemIdByExecutableName)( + THIS_ + _In_ ULONG64 Server, + _In_ PCSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescription)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + // Attaches to a running user-mode process. + STDMETHOD(AttachProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Creates a new user-mode process for debugging. + // CreateFlags are as given to Win32s CreateProcess. + // One of DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS + // must be specified. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + // Creates or attaches to a user-mode process, or both. + // If CommandLine is NULL this method operates as + // AttachProcess does. If ProcessId is zero it + // operates as CreateProcess does. If CommandLine is + // non-NULL and ProcessId is non-zero the method first + // starts a process with the given information but + // in a suspended state. The engine then attaches to + // the indicated process. Once the attach is successful + // the suspended process is resumed. This provides + // synchronization between the new process and the + // attachment. + STDMETHOD(CreateProcessAndAttach)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Gets and sets process control flags. + STDMETHOD(GetProcessOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Opens any kind of user- or kernel-mode dump file + // and begins a debug session with the information + // contained within it. + STDMETHOD(OpenDumpFile)( + THIS_ + _In_ PCSTR DumpFile + ) PURE; + // Writes a dump file from the current session information. + // The kind of dump file written is determined by the + // kind of session and the type qualifier given. + // For example, if the current session is a kernel + // debug session (DEBUG_CLASS_KERNEL) and the qualifier + // is DEBUG_DUMP_SMALL a small kernel dump will be written. + STDMETHOD(WriteDumpFile)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier + ) PURE; + + // Indicates that a remote client is ready to + // begin participating in the current session. + // HistoryLimit gives a character limit on + // the amount of output history to be sent. + STDMETHOD(ConnectSession)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG HistoryLimit + ) PURE; + // Indicates that the engine should start accepting + // remote connections. Options specifies connection types + // and their parameters. Supported strings are: + // npipe:Pipe= + // tcp:Port= + STDMETHOD(StartServer)( + THIS_ + _In_ PCSTR Options + ) PURE; + // List the servers running on the given machine. + // Uses the line prefix. + STDMETHOD(OutputServers)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Machine, + _In_ ULONG Flags + ) PURE; + + // Attempts to terminate all processes in the debuggers list. + STDMETHOD(TerminateProcesses)( + THIS + ) PURE; + // Attempts to detach from all processes in the debuggers list. + // This requires OS support for debugger detach. + STDMETHOD(DetachProcesses)( + THIS + ) PURE; + // Stops the current debug session. If a process + // was created or attached an active EndSession can + // terminate or detach from it. + // If a kernel connection was opened it will be closed but the + // target machine is otherwise unaffected. + STDMETHOD(EndSession)( + THIS_ + _In_ ULONG Flags + ) PURE; + // If a process was started and ran to completion + // this method can be used to retrieve its exit code. + STDMETHOD(GetExitCode)( + THIS_ + _Out_ PULONG Code + ) PURE; + + // Client event callbacks are called on the thread + // of the client. In order to give thread + // execution to the engine for callbacks all + // client threads should call DispatchCallbacks + // when they are idle. Callbacks are only + // received when a thread calls DispatchCallbacks + // or WaitForEvent. WaitForEvent can only be + // called by the thread that started the debug + // session so all other client threads should + // call DispatchCallbacks when possible. + // DispatchCallbacks returns when ExitDispatch is used + // to interrupt dispatch or when the timeout expires. + // DispatchCallbacks dispatches callbacks for all + // clients associated with the thread calling + // DispatchCallbacks. + // DispatchCallbacks returns S_FALSE when the + // timeout expires. + STDMETHOD(DispatchCallbacks)( + THIS_ + _In_ ULONG Timeout + ) PURE; + // ExitDispatch can be used to interrupt callback + // dispatch when a client thread is needed by the + // client. This method is reentrant and can + // be called from any thread. + STDMETHOD(ExitDispatch)( + THIS_ + _In_ PDEBUG_CLIENT Client + ) PURE; + + // Clients are specific to the thread that + // created them. Calls from other threads + // fail immediately. The CreateClient method + // is a notable exception; it allows creation + // of a new client for a new thread. + STDMETHOD(CreateClient)( + THIS_ + _Out_ PDEBUG_CLIENT* Client + ) PURE; + + STDMETHOD(GetInputCallbacks)( + THIS_ + _Out_ PDEBUG_INPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetInputCallbacks)( + THIS_ + _In_opt_ PDEBUG_INPUT_CALLBACKS Callbacks + ) PURE; + + // Output callback interfaces are described separately. + STDMETHOD(GetOutputCallbacks)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacks)( + THIS_ + _In_opt_ PDEBUG_OUTPUT_CALLBACKS Callbacks + ) PURE; + // Output flags provide control over + // the distribution of output among clients. + // Output masks select which output streams + // should be sent to the output callbacks. + // Only Output calls with a mask that + // contains one of the output mask bits + // will be sent to the output callbacks. + // These methods are reentrant. + // If such access is not synchronized + // disruptions in output may occur. + STDMETHOD(GetOutputMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOutputMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + // These methods allow access to another clients + // output mask. They are necessary for changing + // a clients output mask when it is + // waiting for events. These methods are reentrant + // and can be called from any thread. + STDMETHOD(GetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _In_ ULONG Mask + ) PURE; + // Control the width of an output line for + // commands which produce formatted output. + // This setting is just a suggestion. + STDMETHOD(GetOutputWidth)( + THIS_ + _Out_ PULONG Columns + ) PURE; + STDMETHOD(SetOutputWidth)( + THIS_ + _In_ ULONG Columns + ) PURE; + // Some of the engines output commands produce + // multiple lines of output. A prefix can be + // set that the engine will automatically output + // for each line in that case, allowing a caller + // to control indentation or identifying marks. + // This is not a general setting for any output + // with a newline in it. Methods which use + // the line prefix are marked in their documentation. + STDMETHOD(GetOutputLinePrefix)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR Prefix + ) PURE; + + // Returns a string describing the machine + // and user this client represents. The + // specific content of the string varies + // with operating system. If the client is + // remotely connected some network information + // may also be present. + STDMETHOD(GetIdentity)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + // Format is a printf-like format string + // with one %s where the identity string should go. + STDMETHOD(OutputIdentity)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCSTR Format + ) PURE; + + // Event callbacks allow a client to + // receive notification about changes + // during the debug session. + STDMETHOD(GetEventCallbacks)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CALLBACKS Callbacks + ) PURE; + + // The engine sometimes merges compatible callback + // requests to reduce callback overhead. This is + // most noticeable with output as small pieces of + // output are collected into larger groups to + // reduce the overall number of output callback calls. + // A client can use this method to force all pending + // callbacks to be delivered. This is rarely necessary. + STDMETHOD(FlushCallbacks)( + THIS + ) PURE; +}; + +// Per-dump-format control flags. +#define DEBUG_FORMAT_DEFAULT 0x00000000 +// When creating a CAB with secondary images do searches +// for all image files, regardless of whether they're +// needed for the current session or not. +#define DEBUG_FORMAT_CAB_SECONDARY_ALL_IMAGES 0x10000000 +// Write dump to a temporary file, then package it +// into a CAB file and delete the temporary file. +#define DEBUG_FORMAT_WRITE_CAB 0x20000000 +// When creating a CAB add secondary files such as +// current symbols and mapped images. +#define DEBUG_FORMAT_CAB_SECONDARY_FILES 0x40000000 +// Don't overwrite existing files. +#define DEBUG_FORMAT_NO_OVERWRITE 0x80000000 + +#define DEBUG_FORMAT_USER_SMALL_FULL_MEMORY 0x00000001 +#define DEBUG_FORMAT_USER_SMALL_HANDLE_DATA 0x00000002 +#define DEBUG_FORMAT_USER_SMALL_UNLOADED_MODULES 0x00000004 +#define DEBUG_FORMAT_USER_SMALL_INDIRECT_MEMORY 0x00000008 +#define DEBUG_FORMAT_USER_SMALL_DATA_SEGMENTS 0x00000010 +#define DEBUG_FORMAT_USER_SMALL_FILTER_MEMORY 0x00000020 +#define DEBUG_FORMAT_USER_SMALL_FILTER_PATHS 0x00000040 +#define DEBUG_FORMAT_USER_SMALL_PROCESS_THREAD_DATA 0x00000080 +#define DEBUG_FORMAT_USER_SMALL_PRIVATE_READ_WRITE_MEMORY 0x00000100 +#define DEBUG_FORMAT_USER_SMALL_NO_OPTIONAL_DATA 0x00000200 +#define DEBUG_FORMAT_USER_SMALL_FULL_MEMORY_INFO 0x00000400 +#define DEBUG_FORMAT_USER_SMALL_THREAD_INFO 0x00000800 +#define DEBUG_FORMAT_USER_SMALL_CODE_SEGMENTS 0x00001000 +#define DEBUG_FORMAT_USER_SMALL_NO_AUXILIARY_STATE 0x00002000 +#define DEBUG_FORMAT_USER_SMALL_FULL_AUXILIARY_STATE 0x00004000 +#define DEBUG_FORMAT_USER_SMALL_MODULE_HEADERS 0x00008000 +#define DEBUG_FORMAT_USER_SMALL_FILTER_TRIAGE 0x00010000 +#define DEBUG_FORMAT_USER_SMALL_ADD_AVX_XSTATE_CONTEXT 0x00020000 +#define DEBUG_FORMAT_USER_SMALL_IPT_TRACE 0x00040000 +#define DEBUG_FORMAT_USER_SMALL_NO_IGNORE_INACCESSIBLE_MEM 0x04000000 +#define DEBUG_FORMAT_USER_SMALL_IGNORE_INACCESSIBLE_MEM 0x08000000 +#define DEBUG_FORMAT_USER_SMALL_SCAN_PARTIAL_PAGES 0x10000000 + + +// +// Dump information file types. +// + +// Base dump file, returned when querying for dump files. +#define DEBUG_DUMP_FILE_BASE 0xffffffff +// Single file containing packed page file information. +#define DEBUG_DUMP_FILE_PAGE_FILE_DUMP 0x00000000 + +#undef INTERFACE +#define INTERFACE IDebugClient2 +DECLARE_INTERFACE_(IDebugClient2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugClient. + + // The following set of methods start + // the different kinds of debuggees. + + // Begins a debug session using the kernel + // debugging protocol. This method selects + // the protocol as the debuggee communication + // mechanism but does not initiate the communication + // itself. + STDMETHOD(AttachKernel)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptions)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + // Updates the connection options for a live + // kernel connection. This can only be used + // to modify parameters for the connection, not + // to switch to a completely different kind of + // connection. + // This method is reentrant. + STDMETHOD(SetKernelConnectionOptions)( + THIS_ + _In_ PCSTR Options + ) PURE; + + // Starts a process server for remote + // user-mode process control. + // The local process server is server zero. + STDMETHOD(StartProcessServer)( + THIS_ + _In_ ULONG Flags, + _In_ PCSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServer)( + THIS_ + _In_ PCSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(DisconnectProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + + // Enumerates and describes processes + // accessible through the given process server. + STDMETHOD(GetRunningProcessSystemIds)( + THIS_ + _In_ ULONG64 Server, + _Out_writes_opt_(Count) PULONG Ids, + _In_ ULONG Count, + _Out_opt_ PULONG ActualCount + ) PURE; + STDMETHOD(GetRunningProcessSystemIdByExecutableName)( + THIS_ + _In_ ULONG64 Server, + _In_ PCSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescription)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + // Attaches to a running user-mode process. + STDMETHOD(AttachProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Creates a new user-mode process for debugging. + // CreateFlags are as given to Win32s CreateProcess. + // One of DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS + // must be specified. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + // Creates or attaches to a user-mode process, or both. + // If CommandLine is NULL this method operates as + // AttachProcess does. If ProcessId is zero it + // operates as CreateProcess does. If CommandLine is + // non-NULL and ProcessId is non-zero the method first + // starts a process with the given information but + // in a suspended state. The engine then attaches to + // the indicated process. Once the attach is successful + // the suspended process is resumed. This provides + // synchronization between the new process and the + // attachment. + STDMETHOD(CreateProcessAndAttach)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Gets and sets process control flags. + STDMETHOD(GetProcessOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Opens any kind of user- or kernel-mode dump file + // and begins a debug session with the information + // contained within it. + STDMETHOD(OpenDumpFile)( + THIS_ + _In_ PCSTR DumpFile + ) PURE; + // Writes a dump file from the current session information. + // The kind of dump file written is determined by the + // kind of session and the type qualifier given. + // For example, if the current session is a kernel + // debug session (DEBUG_CLASS_KERNEL) and the qualifier + // is DEBUG_DUMP_SMALL a small kernel dump will be written. + STDMETHOD(WriteDumpFile)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier + ) PURE; + + // Indicates that a remote client is ready to + // begin participating in the current session. + // HistoryLimit gives a character limit on + // the amount of output history to be sent. + STDMETHOD(ConnectSession)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG HistoryLimit + ) PURE; + // Indicates that the engine should start accepting + // remote connections. Options specifies connection types + // and their parameters. Supported strings are: + // npipe:Pipe= + // tcp:Port= + STDMETHOD(StartServer)( + THIS_ + _In_ PCSTR Options + ) PURE; + // List the servers running on the given machine. + // Uses the line prefix. + STDMETHOD(OutputServers)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Machine, + _In_ ULONG Flags + ) PURE; + + // Attempts to terminate all processes in the debuggers list. + STDMETHOD(TerminateProcesses)( + THIS + ) PURE; + // Attempts to detach from all processes in the debuggers list. + // This requires OS support for debugger detach. + STDMETHOD(DetachProcesses)( + THIS + ) PURE; + // Stops the current debug session. If a process + // was created or attached an active EndSession can + // terminate or detach from it. + // If a kernel connection was opened it will be closed but the + // target machine is otherwise unaffected. + STDMETHOD(EndSession)( + THIS_ + _In_ ULONG Flags + ) PURE; + // If a process was started and ran to completion + // this method can be used to retrieve its exit code. + STDMETHOD(GetExitCode)( + THIS_ + _Out_ PULONG Code + ) PURE; + + // Client event callbacks are called on the thread + // of the client. In order to give thread + // execution to the engine for callbacks all + // client threads should call DispatchCallbacks + // when they are idle. Callbacks are only + // received when a thread calls DispatchCallbacks + // or WaitForEvent. WaitForEvent can only be + // called by the thread that started the debug + // session so all other client threads should + // call DispatchCallbacks when possible. + // DispatchCallbacks returns when ExitDispatch is used + // to interrupt dispatch or when the timeout expires. + // DispatchCallbacks dispatches callbacks for all + // clients associated with the thread calling + // DispatchCallbacks. + // DispatchCallbacks returns S_FALSE when the + // timeout expires. + STDMETHOD(DispatchCallbacks)( + THIS_ + _In_ ULONG Timeout + ) PURE; + // ExitDispatch can be used to interrupt callback + // dispatch when a client thread is needed by the + // client. This method is reentrant and can + // be called from any thread. + STDMETHOD(ExitDispatch)( + THIS_ + _In_ PDEBUG_CLIENT Client + ) PURE; + + // Clients are specific to the thread that + // created them. Calls from other threads + // fail immediately. The CreateClient method + // is a notable exception; it allows creation + // of a new client for a new thread. + STDMETHOD(CreateClient)( + THIS_ + _Out_ PDEBUG_CLIENT* Client + ) PURE; + + STDMETHOD(GetInputCallbacks)( + THIS_ + _Out_ PDEBUG_INPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetInputCallbacks)( + THIS_ + _In_opt_ PDEBUG_INPUT_CALLBACKS Callbacks + ) PURE; + + // Output callback interfaces are described separately. + STDMETHOD(GetOutputCallbacks)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacks)( + THIS_ + _In_opt_ PDEBUG_OUTPUT_CALLBACKS Callbacks + ) PURE; + // Output flags provide control over + // the distribution of output among clients. + // Output masks select which output streams + // should be sent to the output callbacks. + // Only Output calls with a mask that + // contains one of the output mask bits + // will be sent to the output callbacks. + // These methods are reentrant. + // If such access is not synchronized + // disruptions in output may occur. + STDMETHOD(GetOutputMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOutputMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + // These methods allow access to another clients + // output mask. They are necessary for changing + // a clients output mask when it is + // waiting for events. These methods are reentrant + // and can be called from any thread. + STDMETHOD(GetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _In_ ULONG Mask + ) PURE; + // Control the width of an output line for + // commands which produce formatted output. + // This setting is just a suggestion. + STDMETHOD(GetOutputWidth)( + THIS_ + _Out_ PULONG Columns + ) PURE; + STDMETHOD(SetOutputWidth)( + THIS_ + _In_ ULONG Columns + ) PURE; + // Some of the engines output commands produce + // multiple lines of output. A prefix can be + // set that the engine will automatically output + // for each line in that case, allowing a caller + // to control indentation or identifying marks. + // This is not a general setting for any output + // with a newline in it. Methods which use + // the line prefix are marked in their documentation. + STDMETHOD(GetOutputLinePrefix)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR Prefix + ) PURE; + + // Returns a string describing the machine + // and user this client represents. The + // specific content of the string varies + // with operating system. If the client is + // remotely connected some network information + // may also be present. + STDMETHOD(GetIdentity)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + // Format is a printf-like format string + // with one %s where the identity string should go. + STDMETHOD(OutputIdentity)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCSTR Format + ) PURE; + + // Event callbacks allow a client to + // receive notification about changes + // during the debug session. + STDMETHOD(GetEventCallbacks)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CALLBACKS Callbacks + ) PURE; + + // The engine sometimes merges compatible callback + // requests to reduce callback overhead. This is + // most noticeable with output as small pieces of + // output are collected into larger groups to + // reduce the overall number of output callback calls. + // A client can use this method to force all pending + // callbacks to be delivered. This is rarely necessary. + STDMETHOD(FlushCallbacks)( + THIS + ) PURE; + + // IDebugClient2. + + // Functions similarly to WriteDumpFile with + // the addition of the ability to specify + // per-dump-format write control flags. + // Comment is not supported in all formats. + STDMETHOD(WriteDumpFile2)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCSTR Comment + ) PURE; + // Registers additional files of supporting information + // for a dump file open. This method must be called + // before OpenDumpFile is called. + // The files registered may be opened at the time + // this method is called but generally will not + // be used until OpenDumpFile is called. + STDMETHOD(AddDumpInformationFile)( + THIS_ + _In_ PCSTR InfoFile, + _In_ ULONG Type + ) PURE; + + // Requests that the remote process server shut down. + STDMETHOD(EndProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + // Waits for a started process server to + // exit. Allows an application running a + // process server to monitor the process + // server so that it can tell when a remote + // client has asked for it to exit. + // Returns S_OK if the process server has + // shut down and S_FALSE for a timeout. + STDMETHOD(WaitForProcessServerEnd)( + THIS_ + _In_ ULONG Timeout + ) PURE; + + // Returns S_OK if the system is configured + // to allow kernel debugging. + STDMETHOD(IsKernelDebuggerEnabled)( + THIS + ) PURE; + + // Attempts to terminate the current process. + // Exit process events for the process may be generated. + STDMETHOD(TerminateCurrentProcess)( + THIS + ) PURE; + // Attempts to detach from the current process. + // This requires OS support for debugger detach. + STDMETHOD(DetachCurrentProcess)( + THIS + ) PURE; + // Removes the process from the debuggers process + // list without making any other changes. The process + // will still be marked as being debugged and will + // not run. This allows a debugger to be shut down + // and a new debugger attached without taking the + // process out of the debugged state. + // This is only supported on some system versions. + STDMETHOD(AbandonCurrentProcess)( + THIS + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugClient3 +DECLARE_INTERFACE_(IDebugClient3, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugClient. + + // The following set of methods start + // the different kinds of debuggees. + + // Begins a debug session using the kernel + // debugging protocol. This method selects + // the protocol as the debuggee communication + // mechanism but does not initiate the communication + // itself. + STDMETHOD(AttachKernel)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptions)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + // Updates the connection options for a live + // kernel connection. This can only be used + // to modify parameters for the connection, not + // to switch to a completely different kind of + // connection. + // This method is reentrant. + STDMETHOD(SetKernelConnectionOptions)( + THIS_ + _In_ PCSTR Options + ) PURE; + + // Starts a process server for remote + // user-mode process control. + // The local process server is server zero. + STDMETHOD(StartProcessServer)( + THIS_ + _In_ ULONG Flags, + _In_ PCSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServer)( + THIS_ + _In_ PCSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(DisconnectProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + + // Enumerates and describes processes + // accessible through the given process server. + STDMETHOD(GetRunningProcessSystemIds)( + THIS_ + _In_ ULONG64 Server, + _Out_writes_opt_(Count) PULONG Ids, + _In_ ULONG Count, + _Out_opt_ PULONG ActualCount + ) PURE; + STDMETHOD(GetRunningProcessSystemIdByExecutableName)( + THIS_ + _In_ ULONG64 Server, + _In_ PCSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescription)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + // Attaches to a running user-mode process. + STDMETHOD(AttachProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Creates a new user-mode process for debugging. + // CreateFlags are as given to Win32s CreateProcess. + // One of DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS + // must be specified. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + // Creates or attaches to a user-mode process, or both. + // If CommandLine is NULL this method operates as + // AttachProcess does. If ProcessId is zero it + // operates as CreateProcess does. If CommandLine is + // non-NULL and ProcessId is non-zero the method first + // starts a process with the given information but + // in a suspended state. The engine then attaches to + // the indicated process. Once the attach is successful + // the suspended process is resumed. This provides + // synchronization between the new process and the + // attachment. + STDMETHOD(CreateProcessAndAttach)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Gets and sets process control flags. + STDMETHOD(GetProcessOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Opens any kind of user- or kernel-mode dump file + // and begins a debug session with the information + // contained within it. + STDMETHOD(OpenDumpFile)( + THIS_ + _In_ PCSTR DumpFile + ) PURE; + // Writes a dump file from the current session information. + // The kind of dump file written is determined by the + // kind of session and the type qualifier given. + // For example, if the current session is a kernel + // debug session (DEBUG_CLASS_KERNEL) and the qualifier + // is DEBUG_DUMP_SMALL a small kernel dump will be written. + STDMETHOD(WriteDumpFile)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier + ) PURE; + + // Indicates that a remote client is ready to + // begin participating in the current session. + // HistoryLimit gives a character limit on + // the amount of output history to be sent. + STDMETHOD(ConnectSession)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG HistoryLimit + ) PURE; + // Indicates that the engine should start accepting + // remote connections. Options specifies connection types + // and their parameters. Supported strings are: + // npipe:Pipe= + // tcp:Port= + STDMETHOD(StartServer)( + THIS_ + _In_ PCSTR Options + ) PURE; + // List the servers running on the given machine. + // Uses the line prefix. + STDMETHOD(OutputServers)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Machine, + _In_ ULONG Flags + ) PURE; + + // Attempts to terminate all processes in the debuggers list. + STDMETHOD(TerminateProcesses)( + THIS + ) PURE; + // Attempts to detach from all processes in the debuggers list. + // This requires OS support for debugger detach. + STDMETHOD(DetachProcesses)( + THIS + ) PURE; + // Stops the current debug session. If a process + // was created or attached an active EndSession can + // terminate or detach from it. + // If a kernel connection was opened it will be closed but the + // target machine is otherwise unaffected. + STDMETHOD(EndSession)( + THIS_ + _In_ ULONG Flags + ) PURE; + // If a process was started and ran to completion + // this method can be used to retrieve its exit code. + STDMETHOD(GetExitCode)( + THIS_ + _Out_ PULONG Code + ) PURE; + + // Client event callbacks are called on the thread + // of the client. In order to give thread + // execution to the engine for callbacks all + // client threads should call DispatchCallbacks + // when they are idle. Callbacks are only + // received when a thread calls DispatchCallbacks + // or WaitForEvent. WaitForEvent can only be + // called by the thread that started the debug + // session so all other client threads should + // call DispatchCallbacks when possible. + // DispatchCallbacks returns when ExitDispatch is used + // to interrupt dispatch or when the timeout expires. + // DispatchCallbacks dispatches callbacks for all + // clients associated with the thread calling + // DispatchCallbacks. + // DispatchCallbacks returns S_FALSE when the + // timeout expires. + STDMETHOD(DispatchCallbacks)( + THIS_ + _In_ ULONG Timeout + ) PURE; + // ExitDispatch can be used to interrupt callback + // dispatch when a client thread is needed by the + // client. This method is reentrant and can + // be called from any thread. + STDMETHOD(ExitDispatch)( + THIS_ + _In_ PDEBUG_CLIENT Client + ) PURE; + + // Clients are specific to the thread that + // created them. Calls from other threads + // fail immediately. The CreateClient method + // is a notable exception; it allows creation + // of a new client for a new thread. + STDMETHOD(CreateClient)( + THIS_ + _Out_ PDEBUG_CLIENT* Client + ) PURE; + + STDMETHOD(GetInputCallbacks)( + THIS_ + _Out_ PDEBUG_INPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetInputCallbacks)( + THIS_ + _In_opt_ PDEBUG_INPUT_CALLBACKS Callbacks + ) PURE; + + // Output callback interfaces are described separately. + STDMETHOD(GetOutputCallbacks)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacks)( + THIS_ + _In_opt_ PDEBUG_OUTPUT_CALLBACKS Callbacks + ) PURE; + // Output flags provide control over + // the distribution of output among clients. + // Output masks select which output streams + // should be sent to the output callbacks. + // Only Output calls with a mask that + // contains one of the output mask bits + // will be sent to the output callbacks. + // These methods are reentrant. + // If such access is not synchronized + // disruptions in output may occur. + STDMETHOD(GetOutputMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOutputMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + // These methods allow access to another clients + // output mask. They are necessary for changing + // a clients output mask when it is + // waiting for events. These methods are reentrant + // and can be called from any thread. + STDMETHOD(GetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _In_ ULONG Mask + ) PURE; + // Control the width of an output line for + // commands which produce formatted output. + // This setting is just a suggestion. + STDMETHOD(GetOutputWidth)( + THIS_ + _Out_ PULONG Columns + ) PURE; + STDMETHOD(SetOutputWidth)( + THIS_ + _In_ ULONG Columns + ) PURE; + // Some of the engines output commands produce + // multiple lines of output. A prefix can be + // set that the engine will automatically output + // for each line in that case, allowing a caller + // to control indentation or identifying marks. + // This is not a general setting for any output + // with a newline in it. Methods which use + // the line prefix are marked in their documentation. + STDMETHOD(GetOutputLinePrefix)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR Prefix + ) PURE; + + // Returns a string describing the machine + // and user this client represents. The + // specific content of the string varies + // with operating system. If the client is + // remotely connected some network information + // may also be present. + STDMETHOD(GetIdentity)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + // Format is a printf-like format string + // with one %s where the identity string should go. + STDMETHOD(OutputIdentity)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCSTR Format + ) PURE; + + // Event callbacks allow a client to + // receive notification about changes + // during the debug session. + STDMETHOD(GetEventCallbacks)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CALLBACKS Callbacks + ) PURE; + + // The engine sometimes merges compatible callback + // requests to reduce callback overhead. This is + // most noticeable with output as small pieces of + // output are collected into larger groups to + // reduce the overall number of output callback calls. + // A client can use this method to force all pending + // callbacks to be delivered. This is rarely necessary. + STDMETHOD(FlushCallbacks)( + THIS + ) PURE; + + // IDebugClient2. + + // Functions similarly to WriteDumpFile with + // the addition of the ability to specify + // per-dump-format write control flags. + // Comment is not supported in all formats. + STDMETHOD(WriteDumpFile2)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCSTR Comment + ) PURE; + // Registers additional files of supporting information + // for a dump file open. This method must be called + // before OpenDumpFile is called. + // The files registered may be opened at the time + // this method is called but generally will not + // be used until OpenDumpFile is called. + STDMETHOD(AddDumpInformationFile)( + THIS_ + _In_ PCSTR InfoFile, + _In_ ULONG Type + ) PURE; + + // Requests that the remote process server shut down. + STDMETHOD(EndProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + // Waits for a started process server to + // exit. Allows an application running a + // process server to monitor the process + // server so that it can tell when a remote + // client has asked for it to exit. + // Returns S_OK if the process server has + // shut down and S_FALSE for a timeout. + STDMETHOD(WaitForProcessServerEnd)( + THIS_ + _In_ ULONG Timeout + ) PURE; + + // Returns S_OK if the system is configured + // to allow kernel debugging. + STDMETHOD(IsKernelDebuggerEnabled)( + THIS + ) PURE; + + // Attempts to terminate the current process. + // Exit process events for the process may be generated. + STDMETHOD(TerminateCurrentProcess)( + THIS + ) PURE; + // Attempts to detach from the current process. + // This requires OS support for debugger detach. + STDMETHOD(DetachCurrentProcess)( + THIS + ) PURE; + // Removes the process from the debuggers process + // list without making any other changes. The process + // will still be marked as being debugged and will + // not run. This allows a debugger to be shut down + // and a new debugger attached without taking the + // process out of the debugged state. + // This is only supported on some system versions. + STDMETHOD(AbandonCurrentProcess)( + THIS + ) PURE; + + // IDebugClient3. + + STDMETHOD(GetRunningProcessSystemIdByExecutableNameWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescriptionWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PWSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + STDMETHOD(CreateProcessWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + STDMETHOD(CreateProcessAndAttachWide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; +}; + +// +// Special indices for GetDumpFile to return +// alternate filenames. +// + +// Special index that returns the name of the last .dmp file +// that failed to load (whether directly or from inside a +// .cab file). +#define DEBUG_DUMP_FILE_LOAD_FAILED_INDEX 0xffffffff +// Index that returns last cab file opened, this is needed to +// get the name of original CAB file since debugger returns the +// extracted dump file in the GetDumpFile method. +#define DEBUG_DUMP_FILE_ORIGINAL_CAB_INDEX 0xfffffffe + +#undef INTERFACE +#define INTERFACE IDebugClient4 +DECLARE_INTERFACE_(IDebugClient4, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugClient. + + // The following set of methods start + // the different kinds of debuggees. + + // Begins a debug session using the kernel + // debugging protocol. This method selects + // the protocol as the debuggee communication + // mechanism but does not initiate the communication + // itself. + STDMETHOD(AttachKernel)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptions)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + // Updates the connection options for a live + // kernel connection. This can only be used + // to modify parameters for the connection, not + // to switch to a completely different kind of + // connection. + // This method is reentrant. + STDMETHOD(SetKernelConnectionOptions)( + THIS_ + _In_ PCSTR Options + ) PURE; + + // Starts a process server for remote + // user-mode process control. + // The local process server is server zero. + STDMETHOD(StartProcessServer)( + THIS_ + _In_ ULONG Flags, + _In_ PCSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServer)( + THIS_ + _In_ PCSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(DisconnectProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + + // Enumerates and describes processes + // accessible through the given process server. + STDMETHOD(GetRunningProcessSystemIds)( + THIS_ + _In_ ULONG64 Server, + _Out_writes_opt_(Count) PULONG Ids, + _In_ ULONG Count, + _Out_opt_ PULONG ActualCount + ) PURE; + STDMETHOD(GetRunningProcessSystemIdByExecutableName)( + THIS_ + _In_ ULONG64 Server, + _In_ PCSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescription)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + // Attaches to a running user-mode process. + STDMETHOD(AttachProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Creates a new user-mode process for debugging. + // CreateFlags are as given to Win32s CreateProcess. + // One of DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS + // must be specified. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + // Creates or attaches to a user-mode process, or both. + // If CommandLine is NULL this method operates as + // AttachProcess does. If ProcessId is zero it + // operates as CreateProcess does. If CommandLine is + // non-NULL and ProcessId is non-zero the method first + // starts a process with the given information but + // in a suspended state. The engine then attaches to + // the indicated process. Once the attach is successful + // the suspended process is resumed. This provides + // synchronization between the new process and the + // attachment. + STDMETHOD(CreateProcessAndAttach)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Gets and sets process control flags. + STDMETHOD(GetProcessOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Opens any kind of user- or kernel-mode dump file + // and begins a debug session with the information + // contained within it. + STDMETHOD(OpenDumpFile)( + THIS_ + _In_ PCSTR DumpFile + ) PURE; + // Writes a dump file from the current session information. + // The kind of dump file written is determined by the + // kind of session and the type qualifier given. + // For example, if the current session is a kernel + // debug session (DEBUG_CLASS_KERNEL) and the qualifier + // is DEBUG_DUMP_SMALL a small kernel dump will be written. + STDMETHOD(WriteDumpFile)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier + ) PURE; + + // Indicates that a remote client is ready to + // begin participating in the current session. + // HistoryLimit gives a character limit on + // the amount of output history to be sent. + STDMETHOD(ConnectSession)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG HistoryLimit + ) PURE; + // Indicates that the engine should start accepting + // remote connections. Options specifies connection types + // and their parameters. Supported strings are: + // npipe:Pipe= + // tcp:Port= + STDMETHOD(StartServer)( + THIS_ + _In_ PCSTR Options + ) PURE; + // List the servers running on the given machine. + // Uses the line prefix. + STDMETHOD(OutputServers)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Machine, + _In_ ULONG Flags + ) PURE; + + // Attempts to terminate all processes in the debuggers list. + STDMETHOD(TerminateProcesses)( + THIS + ) PURE; + // Attempts to detach from all processes in the debuggers list. + // This requires OS support for debugger detach. + STDMETHOD(DetachProcesses)( + THIS + ) PURE; + // Stops the current debug session. If a process + // was created or attached an active EndSession can + // terminate or detach from it. + // If a kernel connection was opened it will be closed but the + // target machine is otherwise unaffected. + STDMETHOD(EndSession)( + THIS_ + _In_ ULONG Flags + ) PURE; + // If a process was started and ran to completion + // this method can be used to retrieve its exit code. + STDMETHOD(GetExitCode)( + THIS_ + _Out_ PULONG Code + ) PURE; + + // Client event callbacks are called on the thread + // of the client. In order to give thread + // execution to the engine for callbacks all + // client threads should call DispatchCallbacks + // when they are idle. Callbacks are only + // received when a thread calls DispatchCallbacks + // or WaitForEvent. WaitForEvent can only be + // called by the thread that started the debug + // session so all other client threads should + // call DispatchCallbacks when possible. + // DispatchCallbacks returns when ExitDispatch is used + // to interrupt dispatch or when the timeout expires. + // DispatchCallbacks dispatches callbacks for all + // clients associated with the thread calling + // DispatchCallbacks. + // DispatchCallbacks returns S_FALSE when the + // timeout expires. + STDMETHOD(DispatchCallbacks)( + THIS_ + _In_ ULONG Timeout + ) PURE; + // ExitDispatch can be used to interrupt callback + // dispatch when a client thread is needed by the + // client. This method is reentrant and can + // be called from any thread. + STDMETHOD(ExitDispatch)( + THIS_ + _In_ PDEBUG_CLIENT Client + ) PURE; + + // Clients are specific to the thread that + // created them. Calls from other threads + // fail immediately. The CreateClient method + // is a notable exception; it allows creation + // of a new client for a new thread. + STDMETHOD(CreateClient)( + THIS_ + _Out_ PDEBUG_CLIENT* Client + ) PURE; + + STDMETHOD(GetInputCallbacks)( + THIS_ + _Out_ PDEBUG_INPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetInputCallbacks)( + THIS_ + _In_opt_ PDEBUG_INPUT_CALLBACKS Callbacks + ) PURE; + + // Output callback interfaces are described separately. + STDMETHOD(GetOutputCallbacks)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacks)( + THIS_ + _In_opt_ PDEBUG_OUTPUT_CALLBACKS Callbacks + ) PURE; + // Output flags provide control over + // the distribution of output among clients. + // Output masks select which output streams + // should be sent to the output callbacks. + // Only Output calls with a mask that + // contains one of the output mask bits + // will be sent to the output callbacks. + // These methods are reentrant. + // If such access is not synchronized + // disruptions in output may occur. + STDMETHOD(GetOutputMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOutputMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + // These methods allow access to another clients + // output mask. They are necessary for changing + // a clients output mask when it is + // waiting for events. These methods are reentrant + // and can be called from any thread. + STDMETHOD(GetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _In_ ULONG Mask + ) PURE; + // Control the width of an output line for + // commands which produce formatted output. + // This setting is just a suggestion. + STDMETHOD(GetOutputWidth)( + THIS_ + _Out_ PULONG Columns + ) PURE; + STDMETHOD(SetOutputWidth)( + THIS_ + _In_ ULONG Columns + ) PURE; + // Some of the engines output commands produce + // multiple lines of output. A prefix can be + // set that the engine will automatically output + // for each line in that case, allowing a caller + // to control indentation or identifying marks. + // This is not a general setting for any output + // with a newline in it. Methods which use + // the line prefix are marked in their documentation. + STDMETHOD(GetOutputLinePrefix)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR Prefix + ) PURE; + + // Returns a string describing the machine + // and user this client represents. The + // specific content of the string varies + // with operating system. If the client is + // remotely connected some network information + // may also be present. + STDMETHOD(GetIdentity)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + // Format is a printf-like format string + // with one %s where the identity string should go. + STDMETHOD(OutputIdentity)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCSTR Format + ) PURE; + + // Event callbacks allow a client to + // receive notification about changes + // during the debug session. + STDMETHOD(GetEventCallbacks)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CALLBACKS Callbacks + ) PURE; + + // The engine sometimes merges compatible callback + // requests to reduce callback overhead. This is + // most noticeable with output as small pieces of + // output are collected into larger groups to + // reduce the overall number of output callback calls. + // A client can use this method to force all pending + // callbacks to be delivered. This is rarely necessary. + STDMETHOD(FlushCallbacks)( + THIS + ) PURE; + + // IDebugClient2. + + // Functions similarly to WriteDumpFile with + // the addition of the ability to specify + // per-dump-format write control flags. + // Comment is not supported in all formats. + STDMETHOD(WriteDumpFile2)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCSTR Comment + ) PURE; + // Registers additional files of supporting information + // for a dump file open. This method must be called + // before OpenDumpFile is called. + // The files registered may be opened at the time + // this method is called but generally will not + // be used until OpenDumpFile is called. + STDMETHOD(AddDumpInformationFile)( + THIS_ + _In_ PCSTR InfoFile, + _In_ ULONG Type + ) PURE; + + // Requests that the remote process server shut down. + STDMETHOD(EndProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + // Waits for a started process server to + // exit. Allows an application running a + // process server to monitor the process + // server so that it can tell when a remote + // client has asked for it to exit. + // Returns S_OK if the process server has + // shut down and S_FALSE for a timeout. + STDMETHOD(WaitForProcessServerEnd)( + THIS_ + _In_ ULONG Timeout + ) PURE; + + // Returns S_OK if the system is configured + // to allow kernel debugging. + STDMETHOD(IsKernelDebuggerEnabled)( + THIS + ) PURE; + + // Attempts to terminate the current process. + // Exit process events for the process may be generated. + STDMETHOD(TerminateCurrentProcess)( + THIS + ) PURE; + // Attempts to detach from the current process. + // This requires OS support for debugger detach. + STDMETHOD(DetachCurrentProcess)( + THIS + ) PURE; + // Removes the process from the debuggers process + // list without making any other changes. The process + // will still be marked as being debugged and will + // not run. This allows a debugger to be shut down + // and a new debugger attached without taking the + // process out of the debugged state. + // This is only supported on some system versions. + STDMETHOD(AbandonCurrentProcess)( + THIS + ) PURE; + + // IDebugClient3. + + STDMETHOD(GetRunningProcessSystemIdByExecutableNameWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescriptionWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PWSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + STDMETHOD(CreateProcessWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + STDMETHOD(CreateProcessAndAttachWide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // IDebugClient4. + + // In the following methods both a filename and a file + // handle can be passed in. If a file handle is given + // the filename may be omitted, although providing it + // allows the debugger to properly report the name when + // queried. + // File handles cannot be used in remote calls. + STDMETHOD(OpenDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle + ) PURE; + STDMETHOD(WriteDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCWSTR Comment + ) PURE; + STDMETHOD(AddDumpInformationFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Type + ) PURE; + // These methods can be used to retrieve + // file information for all targets that + // involve files. + STDMETHOD(GetNumberDumpFiles)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetDumpFile)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + STDMETHOD(GetDumpFileWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugClient5 +DECLARE_INTERFACE_(IDebugClient5, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugClient. + + // The following set of methods start + // the different kinds of debuggees. + + // Begins a debug session using the kernel + // debugging protocol. This method selects + // the protocol as the debuggee communication + // mechanism but does not initiate the communication + // itself. + STDMETHOD(AttachKernel)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptions)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + // Updates the connection options for a live + // kernel connection. This can only be used + // to modify parameters for the connection, not + // to switch to a completely different kind of + // connection. + // This method is reentrant. + STDMETHOD(SetKernelConnectionOptions)( + THIS_ + _In_ PCSTR Options + ) PURE; + + // Starts a process server for remote + // user-mode process control. + // The local process server is server zero. + STDMETHOD(StartProcessServer)( + THIS_ + _In_ ULONG Flags, + _In_ PCSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServer)( + THIS_ + _In_ PCSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(DisconnectProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + + // Enumerates and describes processes + // accessible through the given process server. + STDMETHOD(GetRunningProcessSystemIds)( + THIS_ + _In_ ULONG64 Server, + _Out_writes_opt_(Count) PULONG Ids, + _In_ ULONG Count, + _Out_opt_ PULONG ActualCount + ) PURE; + STDMETHOD(GetRunningProcessSystemIdByExecutableName)( + THIS_ + _In_ ULONG64 Server, + _In_ PCSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescription)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + // Attaches to a running user-mode process. + STDMETHOD(AttachProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Creates a new user-mode process for debugging. + // CreateFlags are as given to Win32s CreateProcess. + // One of DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS + // must be specified. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + // Creates or attaches to a user-mode process, or both. + // If CommandLine is NULL this method operates as + // AttachProcess does. If ProcessId is zero it + // operates as CreateProcess does. If CommandLine is + // non-NULL and ProcessId is non-zero the method first + // starts a process with the given information but + // in a suspended state. The engine then attaches to + // the indicated process. Once the attach is successful + // the suspended process is resumed. This provides + // synchronization between the new process and the + // attachment. + STDMETHOD(CreateProcessAndAttach)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Gets and sets process control flags. + STDMETHOD(GetProcessOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Opens any kind of user- or kernel-mode dump file + // and begins a debug session with the information + // contained within it. + STDMETHOD(OpenDumpFile)( + THIS_ + _In_ PCSTR DumpFile + ) PURE; + // Writes a dump file from the current session information. + // The kind of dump file written is determined by the + // kind of session and the type qualifier given. + // For example, if the current session is a kernel + // debug session (DEBUG_CLASS_KERNEL) and the qualifier + // is DEBUG_DUMP_SMALL a small kernel dump will be written. + STDMETHOD(WriteDumpFile)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier + ) PURE; + + // Indicates that a remote client is ready to + // begin participating in the current session. + // HistoryLimit gives a character limit on + // the amount of output history to be sent. + STDMETHOD(ConnectSession)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG HistoryLimit + ) PURE; + // Indicates that the engine should start accepting + // remote connections. Options specifies connection types + // and their parameters. Supported strings are: + // npipe:Pipe= + // tcp:Port= + STDMETHOD(StartServer)( + THIS_ + _In_ PCSTR Options + ) PURE; + // List the servers running on the given machine. + // Uses the line prefix. + STDMETHOD(OutputServers)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Machine, + _In_ ULONG Flags + ) PURE; + + // Attempts to terminate all processes in the debuggers list. + STDMETHOD(TerminateProcesses)( + THIS + ) PURE; + // Attempts to detach from all processes in the debuggers list. + // This requires OS support for debugger detach. + STDMETHOD(DetachProcesses)( + THIS + ) PURE; + // Stops the current debug session. If a process + // was created or attached an active EndSession can + // terminate or detach from it. + // If a kernel connection was opened it will be closed but the + // target machine is otherwise unaffected. + STDMETHOD(EndSession)( + THIS_ + _In_ ULONG Flags + ) PURE; + // If a process was started and ran to completion + // this method can be used to retrieve its exit code. + STDMETHOD(GetExitCode)( + THIS_ + _Out_ PULONG Code + ) PURE; + + // Client event callbacks are called on the thread + // of the client. In order to give thread + // execution to the engine for callbacks all + // client threads should call DispatchCallbacks + // when they are idle. Callbacks are only + // received when a thread calls DispatchCallbacks + // or WaitForEvent. WaitForEvent can only be + // called by the thread that started the debug + // session so all other client threads should + // call DispatchCallbacks when possible. + // DispatchCallbacks returns when ExitDispatch is used + // to interrupt dispatch or when the timeout expires. + // DispatchCallbacks dispatches callbacks for all + // clients associated with the thread calling + // DispatchCallbacks. + // DispatchCallbacks returns S_FALSE when the + // timeout expires. + STDMETHOD(DispatchCallbacks)( + THIS_ + _In_ ULONG Timeout + ) PURE; + // ExitDispatch can be used to interrupt callback + // dispatch when a client thread is needed by the + // client. This method is reentrant and can + // be called from any thread. + STDMETHOD(ExitDispatch)( + THIS_ + _In_ PDEBUG_CLIENT Client + ) PURE; + + // Clients are specific to the thread that + // created them. Calls from other threads + // fail immediately. The CreateClient method + // is a notable exception; it allows creation + // of a new client for a new thread. + STDMETHOD(CreateClient)( + THIS_ + _Out_ PDEBUG_CLIENT* Client + ) PURE; + + STDMETHOD(GetInputCallbacks)( + THIS_ + _Out_ PDEBUG_INPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetInputCallbacks)( + THIS_ + _In_opt_ PDEBUG_INPUT_CALLBACKS Callbacks + ) PURE; + + // Output callback interfaces are described separately. + STDMETHOD(GetOutputCallbacks)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacks)( + THIS_ + _In_opt_ PDEBUG_OUTPUT_CALLBACKS Callbacks + ) PURE; + // Output flags provide control over + // the distribution of output among clients. + // Output masks select which output streams + // should be sent to the output callbacks. + // Only Output calls with a mask that + // contains one of the output mask bits + // will be sent to the output callbacks. + // These methods are reentrant. + // If such access is not synchronized + // disruptions in output may occur. + STDMETHOD(GetOutputMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOutputMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + // These methods allow access to another clients + // output mask. They are necessary for changing + // a clients output mask when it is + // waiting for events. These methods are reentrant + // and can be called from any thread. + STDMETHOD(GetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _In_ ULONG Mask + ) PURE; + // Control the width of an output line for + // commands which produce formatted output. + // This setting is just a suggestion. + STDMETHOD(GetOutputWidth)( + THIS_ + _Out_ PULONG Columns + ) PURE; + STDMETHOD(SetOutputWidth)( + THIS_ + _In_ ULONG Columns + ) PURE; + // Some of the engines output commands produce + // multiple lines of output. A prefix can be + // set that the engine will automatically output + // for each line in that case, allowing a caller + // to control indentation or identifying marks. + // This is not a general setting for any output + // with a newline in it. Methods which use + // the line prefix are marked in their documentation. + STDMETHOD(GetOutputLinePrefix)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR Prefix + ) PURE; + + // Returns a string describing the machine + // and user this client represents. The + // specific content of the string varies + // with operating system. If the client is + // remotely connected some network information + // may also be present. + STDMETHOD(GetIdentity)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + // Format is a printf-like format string + // with one %s where the identity string should go. + STDMETHOD(OutputIdentity)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCSTR Format + ) PURE; + + // Event callbacks allow a client to + // receive notification about changes + // during the debug session. + STDMETHOD(GetEventCallbacks)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CALLBACKS Callbacks + ) PURE; + + // The engine sometimes merges compatible callback + // requests to reduce callback overhead. This is + // most noticeable with output as small pieces of + // output are collected into larger groups to + // reduce the overall number of output callback calls. + // A client can use this method to force all pending + // callbacks to be delivered. This is rarely necessary. + STDMETHOD(FlushCallbacks)( + THIS + ) PURE; + + // IDebugClient2. + + // Functions similarly to WriteDumpFile with + // the addition of the ability to specify + // per-dump-format write control flags. + // Comment is not supported in all formats. + STDMETHOD(WriteDumpFile2)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCSTR Comment + ) PURE; + // Registers additional files of supporting information + // for a dump file open. This method must be called + // before OpenDumpFile is called. + // The files registered may be opened at the time + // this method is called but generally will not + // be used until OpenDumpFile is called. + STDMETHOD(AddDumpInformationFile)( + THIS_ + _In_ PCSTR InfoFile, + _In_ ULONG Type + ) PURE; + + // Requests that the remote process server shut down. + STDMETHOD(EndProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + // Waits for a started process server to + // exit. Allows an application running a + // process server to monitor the process + // server so that it can tell when a remote + // client has asked for it to exit. + // Returns S_OK if the process server has + // shut down and S_FALSE for a timeout. + STDMETHOD(WaitForProcessServerEnd)( + THIS_ + _In_ ULONG Timeout + ) PURE; + + // Returns S_OK if the system is configured + // to allow kernel debugging. + STDMETHOD(IsKernelDebuggerEnabled)( + THIS + ) PURE; + + // Attempts to terminate the current process. + // Exit process events for the process may be generated. + STDMETHOD(TerminateCurrentProcess)( + THIS + ) PURE; + // Attempts to detach from the current process. + // This requires OS support for debugger detach. + STDMETHOD(DetachCurrentProcess)( + THIS + ) PURE; + // Removes the process from the debuggers process + // list without making any other changes. The process + // will still be marked as being debugged and will + // not run. This allows a debugger to be shut down + // and a new debugger attached without taking the + // process out of the debugged state. + // This is only supported on some system versions. + STDMETHOD(AbandonCurrentProcess)( + THIS + ) PURE; + + // IDebugClient3. + + STDMETHOD(GetRunningProcessSystemIdByExecutableNameWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescriptionWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PWSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + STDMETHOD(CreateProcessWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + STDMETHOD(CreateProcessAndAttachWide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // IDebugClient4. + + // In the following methods both a filename and a file + // handle can be passed in. If a file handle is given + // the filename may be omitted, although providing it + // allows the debugger to properly report the name when + // queried. + // File handles cannot be used in remote calls. + STDMETHOD(OpenDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle + ) PURE; + STDMETHOD(WriteDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCWSTR Comment + ) PURE; + STDMETHOD(AddDumpInformationFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Type + ) PURE; + // These methods can be used to retrieve + // file information for all targets that + // involve files. + STDMETHOD(GetNumberDumpFiles)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetDumpFile)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + STDMETHOD(GetDumpFileWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + + // IDebugClient5. + + STDMETHOD(AttachKernelWide)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCWSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptionsWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + STDMETHOD(SetKernelConnectionOptionsWide)( + THIS_ + _In_ PCWSTR Options + ) PURE; + + STDMETHOD(StartProcessServerWide)( + THIS_ + _In_ ULONG Flags, + _In_ PCWSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServerWide)( + THIS_ + _In_ PCWSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + + STDMETHOD(StartServerWide)( + THIS_ + _In_ PCWSTR Options + ) PURE; + STDMETHOD(OutputServersWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR Machine, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetOutputCallbacksWide)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS_WIDE* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacksWide)( + THIS_ + _In_ PDEBUG_OUTPUT_CALLBACKS_WIDE Callbacks + ) PURE; + STDMETHOD(GetOutputLinePrefixWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefixWide)( + THIS_ + _In_opt_ PCWSTR Prefix + ) PURE; + + STDMETHOD(GetIdentityWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + STDMETHOD(OutputIdentityWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCWSTR Format + ) PURE; + + STDMETHOD(GetEventCallbacksWide)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS_WIDE* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacksWide)( + THIS_ + _In_ PDEBUG_EVENT_CALLBACKS_WIDE Callbacks + ) PURE; + + STDMETHOD(CreateProcess2)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCSTR InitialDirectory, + _In_opt_ PCSTR Environment + ) PURE; + STDMETHOD(CreateProcess2Wide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCWSTR InitialDirectory, + _In_opt_ PCWSTR Environment + ) PURE; + STDMETHOD(CreateProcessAndAttach2)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCSTR InitialDirectory, + _In_opt_ PCSTR Environment, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + STDMETHOD(CreateProcessAndAttach2Wide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCWSTR InitialDirectory, + _In_opt_ PCWSTR Environment, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // Helpers for saving and restoring the + // current output line prefix. + STDMETHOD(PushOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR NewPrefix, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(PushOutputLinePrefixWide)( + THIS_ + _In_opt_ PCWSTR NewPrefix, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(PopOutputLinePrefix)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + // Queries to determine if any clients + // could potentially respond to the given callback. + STDMETHOD(GetNumberInputCallbacks)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(GetNumberOutputCallbacks)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(GetNumberEventCallbacks)( + THIS_ + _In_ ULONG EventFlags, + _Out_ PULONG Count + ) PURE; + + // Control over locking the session against + // undesired quits. The quit lock string + // cannot be retrieved from a secure session. + STDMETHOD(GetQuitLockString)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(SetQuitLockString)( + THIS_ + _In_ PCSTR String + ) PURE; + STDMETHOD(GetQuitLockStringWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(SetQuitLockStringWide)( + THIS_ + _In_ PCWSTR String + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugClient6 +DECLARE_INTERFACE_(IDebugClient6, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugClient. + + // The following set of methods start + // the different kinds of debuggees. + + // Begins a debug session using the kernel + // debugging protocol. This method selects + // the protocol as the debuggee communication + // mechanism but does not initiate the communication + // itself. + STDMETHOD(AttachKernel)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptions)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + // Updates the connection options for a live + // kernel connection. This can only be used + // to modify parameters for the connection, not + // to switch to a completely different kind of + // connection. + // This method is reentrant. + STDMETHOD(SetKernelConnectionOptions)( + THIS_ + _In_ PCSTR Options + ) PURE; + + // Starts a process server for remote + // user-mode process control. + // The local process server is server zero. + STDMETHOD(StartProcessServer)( + THIS_ + _In_ ULONG Flags, + _In_ PCSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServer)( + THIS_ + _In_ PCSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(DisconnectProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + + // Enumerates and describes processes + // accessible through the given process server. + STDMETHOD(GetRunningProcessSystemIds)( + THIS_ + _In_ ULONG64 Server, + _Out_writes_opt_(Count) PULONG Ids, + _In_ ULONG Count, + _Out_opt_ PULONG ActualCount + ) PURE; + STDMETHOD(GetRunningProcessSystemIdByExecutableName)( + THIS_ + _In_ ULONG64 Server, + _In_ PCSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescription)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + // Attaches to a running user-mode process. + STDMETHOD(AttachProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Creates a new user-mode process for debugging. + // CreateFlags are as given to Win32s CreateProcess. + // One of DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS + // must be specified. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + // Creates or attaches to a user-mode process, or both. + // If CommandLine is NULL this method operates as + // AttachProcess does. If ProcessId is zero it + // operates as CreateProcess does. If CommandLine is + // non-NULL and ProcessId is non-zero the method first + // starts a process with the given information but + // in a suspended state. The engine then attaches to + // the indicated process. Once the attach is successful + // the suspended process is resumed. This provides + // synchronization between the new process and the + // attachment. + STDMETHOD(CreateProcessAndAttach)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Gets and sets process control flags. + STDMETHOD(GetProcessOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Opens any kind of user- or kernel-mode dump file + // and begins a debug session with the information + // contained within it. + STDMETHOD(OpenDumpFile)( + THIS_ + _In_ PCSTR DumpFile + ) PURE; + // Writes a dump file from the current session information. + // The kind of dump file written is determined by the + // kind of session and the type qualifier given. + // For example, if the current session is a kernel + // debug session (DEBUG_CLASS_KERNEL) and the qualifier + // is DEBUG_DUMP_SMALL a small kernel dump will be written. + STDMETHOD(WriteDumpFile)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier + ) PURE; + + // Indicates that a remote client is ready to + // begin participating in the current session. + // HistoryLimit gives a character limit on + // the amount of output history to be sent. + STDMETHOD(ConnectSession)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG HistoryLimit + ) PURE; + // Indicates that the engine should start accepting + // remote connections. Options specifies connection types + // and their parameters. Supported strings are: + // npipe:Pipe= + // tcp:Port= + STDMETHOD(StartServer)( + THIS_ + _In_ PCSTR Options + ) PURE; + // List the servers running on the given machine. + // Uses the line prefix. + STDMETHOD(OutputServers)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Machine, + _In_ ULONG Flags + ) PURE; + + // Attempts to terminate all processes in the debuggers list. + STDMETHOD(TerminateProcesses)( + THIS + ) PURE; + // Attempts to detach from all processes in the debuggers list. + // This requires OS support for debugger detach. + STDMETHOD(DetachProcesses)( + THIS + ) PURE; + // Stops the current debug session. If a process + // was created or attached an active EndSession can + // terminate or detach from it. + // If a kernel connection was opened it will be closed but the + // target machine is otherwise unaffected. + STDMETHOD(EndSession)( + THIS_ + _In_ ULONG Flags + ) PURE; + // If a process was started and ran to completion + // this method can be used to retrieve its exit code. + STDMETHOD(GetExitCode)( + THIS_ + _Out_ PULONG Code + ) PURE; + + // Client event callbacks are called on the thread + // of the client. In order to give thread + // execution to the engine for callbacks all + // client threads should call DispatchCallbacks + // when they are idle. Callbacks are only + // received when a thread calls DispatchCallbacks + // or WaitForEvent. WaitForEvent can only be + // called by the thread that started the debug + // session so all other client threads should + // call DispatchCallbacks when possible. + // DispatchCallbacks returns when ExitDispatch is used + // to interrupt dispatch or when the timeout expires. + // DispatchCallbacks dispatches callbacks for all + // clients associated with the thread calling + // DispatchCallbacks. + // DispatchCallbacks returns S_FALSE when the + // timeout expires. + STDMETHOD(DispatchCallbacks)( + THIS_ + _In_ ULONG Timeout + ) PURE; + // ExitDispatch can be used to interrupt callback + // dispatch when a client thread is needed by the + // client. This method is reentrant and can + // be called from any thread. + STDMETHOD(ExitDispatch)( + THIS_ + _In_ PDEBUG_CLIENT Client + ) PURE; + + // Clients are specific to the thread that + // created them. Calls from other threads + // fail immediately. The CreateClient method + // is a notable exception; it allows creation + // of a new client for a new thread. + STDMETHOD(CreateClient)( + THIS_ + _Out_ PDEBUG_CLIENT* Client + ) PURE; + + STDMETHOD(GetInputCallbacks)( + THIS_ + _Out_ PDEBUG_INPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetInputCallbacks)( + THIS_ + _In_opt_ PDEBUG_INPUT_CALLBACKS Callbacks + ) PURE; + + // Output callback interfaces are described separately. + STDMETHOD(GetOutputCallbacks)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacks)( + THIS_ + _In_opt_ PDEBUG_OUTPUT_CALLBACKS Callbacks + ) PURE; + // Output flags provide control over + // the distribution of output among clients. + // Output masks select which output streams + // should be sent to the output callbacks. + // Only Output calls with a mask that + // contains one of the output mask bits + // will be sent to the output callbacks. + // These methods are reentrant. + // If such access is not synchronized + // disruptions in output may occur. + STDMETHOD(GetOutputMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOutputMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + // These methods allow access to another clients + // output mask. They are necessary for changing + // a clients output mask when it is + // waiting for events. These methods are reentrant + // and can be called from any thread. + STDMETHOD(GetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _In_ ULONG Mask + ) PURE; + // Control the width of an output line for + // commands which produce formatted output. + // This setting is just a suggestion. + STDMETHOD(GetOutputWidth)( + THIS_ + _Out_ PULONG Columns + ) PURE; + STDMETHOD(SetOutputWidth)( + THIS_ + _In_ ULONG Columns + ) PURE; + // Some of the engines output commands produce + // multiple lines of output. A prefix can be + // set that the engine will automatically output + // for each line in that case, allowing a caller + // to control indentation or identifying marks. + // This is not a general setting for any output + // with a newline in it. Methods which use + // the line prefix are marked in their documentation. + STDMETHOD(GetOutputLinePrefix)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR Prefix + ) PURE; + + // Returns a string describing the machine + // and user this client represents. The + // specific content of the string varies + // with operating system. If the client is + // remotely connected some network information + // may also be present. + STDMETHOD(GetIdentity)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + // Format is a printf-like format string + // with one %s where the identity string should go. + STDMETHOD(OutputIdentity)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCSTR Format + ) PURE; + + // Event callbacks allow a client to + // receive notification about changes + // during the debug session. + STDMETHOD(GetEventCallbacks)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CALLBACKS Callbacks + ) PURE; + + // The engine sometimes merges compatible callback + // requests to reduce callback overhead. This is + // most noticeable with output as small pieces of + // output are collected into larger groups to + // reduce the overall number of output callback calls. + // A client can use this method to force all pending + // callbacks to be delivered. This is rarely necessary. + STDMETHOD(FlushCallbacks)( + THIS + ) PURE; + + // IDebugClient2. + + // Functions similarly to WriteDumpFile with + // the addition of the ability to specify + // per-dump-format write control flags. + // Comment is not supported in all formats. + STDMETHOD(WriteDumpFile2)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCSTR Comment + ) PURE; + // Registers additional files of supporting information + // for a dump file open. This method must be called + // before OpenDumpFile is called. + // The files registered may be opened at the time + // this method is called but generally will not + // be used until OpenDumpFile is called. + STDMETHOD(AddDumpInformationFile)( + THIS_ + _In_ PCSTR InfoFile, + _In_ ULONG Type + ) PURE; + + // Requests that the remote process server shut down. + STDMETHOD(EndProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + // Waits for a started process server to + // exit. Allows an application running a + // process server to monitor the process + // server so that it can tell when a remote + // client has asked for it to exit. + // Returns S_OK if the process server has + // shut down and S_FALSE for a timeout. + STDMETHOD(WaitForProcessServerEnd)( + THIS_ + _In_ ULONG Timeout + ) PURE; + + // Returns S_OK if the system is configured + // to allow kernel debugging. + STDMETHOD(IsKernelDebuggerEnabled)( + THIS + ) PURE; + + // Attempts to terminate the current process. + // Exit process events for the process may be generated. + STDMETHOD(TerminateCurrentProcess)( + THIS + ) PURE; + // Attempts to detach from the current process. + // This requires OS support for debugger detach. + STDMETHOD(DetachCurrentProcess)( + THIS + ) PURE; + // Removes the process from the debuggers process + // list without making any other changes. The process + // will still be marked as being debugged and will + // not run. This allows a debugger to be shut down + // and a new debugger attached without taking the + // process out of the debugged state. + // This is only supported on some system versions. + STDMETHOD(AbandonCurrentProcess)( + THIS + ) PURE; + + // IDebugClient3. + + STDMETHOD(GetRunningProcessSystemIdByExecutableNameWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescriptionWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PWSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + STDMETHOD(CreateProcessWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + STDMETHOD(CreateProcessAndAttachWide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // IDebugClient4. + + // In the following methods both a filename and a file + // handle can be passed in. If a file handle is given + // the filename may be omitted, although providing it + // allows the debugger to properly report the name when + // queried. + // File handles cannot be used in remote calls. + STDMETHOD(OpenDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle + ) PURE; + STDMETHOD(WriteDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCWSTR Comment + ) PURE; + STDMETHOD(AddDumpInformationFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Type + ) PURE; + // These methods can be used to retrieve + // file information for all targets that + // involve files. + STDMETHOD(GetNumberDumpFiles)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetDumpFile)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + STDMETHOD(GetDumpFileWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + + // IDebugClient5. + + STDMETHOD(AttachKernelWide)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCWSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptionsWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + STDMETHOD(SetKernelConnectionOptionsWide)( + THIS_ + _In_ PCWSTR Options + ) PURE; + + STDMETHOD(StartProcessServerWide)( + THIS_ + _In_ ULONG Flags, + _In_ PCWSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServerWide)( + THIS_ + _In_ PCWSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + + STDMETHOD(StartServerWide)( + THIS_ + _In_ PCWSTR Options + ) PURE; + STDMETHOD(OutputServersWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR Machine, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetOutputCallbacksWide)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS_WIDE* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacksWide)( + THIS_ + _In_ PDEBUG_OUTPUT_CALLBACKS_WIDE Callbacks + ) PURE; + STDMETHOD(GetOutputLinePrefixWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefixWide)( + THIS_ + _In_opt_ PCWSTR Prefix + ) PURE; + + STDMETHOD(GetIdentityWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + STDMETHOD(OutputIdentityWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCWSTR Format + ) PURE; + + STDMETHOD(GetEventCallbacksWide)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS_WIDE* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacksWide)( + THIS_ + _In_ PDEBUG_EVENT_CALLBACKS_WIDE Callbacks + ) PURE; + + STDMETHOD(CreateProcess2)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCSTR InitialDirectory, + _In_opt_ PCSTR Environment + ) PURE; + STDMETHOD(CreateProcess2Wide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCWSTR InitialDirectory, + _In_opt_ PCWSTR Environment + ) PURE; + STDMETHOD(CreateProcessAndAttach2)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCSTR InitialDirectory, + _In_opt_ PCSTR Environment, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + STDMETHOD(CreateProcessAndAttach2Wide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCWSTR InitialDirectory, + _In_opt_ PCWSTR Environment, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // Helpers for saving and restoring the + // current output line prefix. + STDMETHOD(PushOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR NewPrefix, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(PushOutputLinePrefixWide)( + THIS_ + _In_opt_ PCWSTR NewPrefix, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(PopOutputLinePrefix)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + // Queries to determine if any clients + // could potentially respond to the given callback. + STDMETHOD(GetNumberInputCallbacks)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(GetNumberOutputCallbacks)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(GetNumberEventCallbacks)( + THIS_ + _In_ ULONG EventFlags, + _Out_ PULONG Count + ) PURE; + + // Control over locking the session against + // undesired quits. The quit lock string + // cannot be retrieved from a secure session. + STDMETHOD(GetQuitLockString)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(SetQuitLockString)( + THIS_ + _In_ PCSTR String + ) PURE; + STDMETHOD(GetQuitLockStringWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(SetQuitLockStringWide)( + THIS_ + _In_ PCWSTR String + ) PURE; + + // IDebugClient6 + + STDMETHOD(SetEventContextCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CONTEXT_CALLBACKS Callbacks + ) PURE; + +}; + +#undef INTERFACE +#define INTERFACE IDebugClient7 +DECLARE_INTERFACE_(IDebugClient7, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugClient. + + // The following set of methods start + // the different kinds of debuggees. + + // Begins a debug session using the kernel + // debugging protocol. This method selects + // the protocol as the debuggee communication + // mechanism but does not initiate the communication + // itself. + STDMETHOD(AttachKernel)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptions)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + // Updates the connection options for a live + // kernel connection. This can only be used + // to modify parameters for the connection, not + // to switch to a completely different kind of + // connection. + // This method is reentrant. + STDMETHOD(SetKernelConnectionOptions)( + THIS_ + _In_ PCSTR Options + ) PURE; + + // Starts a process server for remote + // user-mode process control. + // The local process server is server zero. + STDMETHOD(StartProcessServer)( + THIS_ + _In_ ULONG Flags, + _In_ PCSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServer)( + THIS_ + _In_ PCSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(DisconnectProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + + // Enumerates and describes processes + // accessible through the given process server. + STDMETHOD(GetRunningProcessSystemIds)( + THIS_ + _In_ ULONG64 Server, + _Out_writes_opt_(Count) PULONG Ids, + _In_ ULONG Count, + _Out_opt_ PULONG ActualCount + ) PURE; + STDMETHOD(GetRunningProcessSystemIdByExecutableName)( + THIS_ + _In_ ULONG64 Server, + _In_ PCSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescription)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + // Attaches to a running user-mode process. + STDMETHOD(AttachProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Creates a new user-mode process for debugging. + // CreateFlags are as given to Win32s CreateProcess. + // One of DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS + // must be specified. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + // Creates or attaches to a user-mode process, or both. + // If CommandLine is NULL this method operates as + // AttachProcess does. If ProcessId is zero it + // operates as CreateProcess does. If CommandLine is + // non-NULL and ProcessId is non-zero the method first + // starts a process with the given information but + // in a suspended state. The engine then attaches to + // the indicated process. Once the attach is successful + // the suspended process is resumed. This provides + // synchronization between the new process and the + // attachment. + STDMETHOD(CreateProcessAndAttach)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Gets and sets process control flags. + STDMETHOD(GetProcessOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Opens any kind of user- or kernel-mode dump file + // and begins a debug session with the information + // contained within it. + STDMETHOD(OpenDumpFile)( + THIS_ + _In_ PCSTR DumpFile + ) PURE; + // Writes a dump file from the current session information. + // The kind of dump file written is determined by the + // kind of session and the type qualifier given. + // For example, if the current session is a kernel + // debug session (DEBUG_CLASS_KERNEL) and the qualifier + // is DEBUG_DUMP_SMALL a small kernel dump will be written. + STDMETHOD(WriteDumpFile)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier + ) PURE; + + // Indicates that a remote client is ready to + // begin participating in the current session. + // HistoryLimit gives a character limit on + // the amount of output history to be sent. + STDMETHOD(ConnectSession)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG HistoryLimit + ) PURE; + // Indicates that the engine should start accepting + // remote connections. Options specifies connection types + // and their parameters. Supported strings are: + // npipe:Pipe= + // tcp:Port= + STDMETHOD(StartServer)( + THIS_ + _In_ PCSTR Options + ) PURE; + // List the servers running on the given machine. + // Uses the line prefix. + STDMETHOD(OutputServers)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Machine, + _In_ ULONG Flags + ) PURE; + + // Attempts to terminate all processes in the debuggers list. + STDMETHOD(TerminateProcesses)( + THIS + ) PURE; + // Attempts to detach from all processes in the debuggers list. + // This requires OS support for debugger detach. + STDMETHOD(DetachProcesses)( + THIS + ) PURE; + // Stops the current debug session. If a process + // was created or attached an active EndSession can + // terminate or detach from it. + // If a kernel connection was opened it will be closed but the + // target machine is otherwise unaffected. + STDMETHOD(EndSession)( + THIS_ + _In_ ULONG Flags + ) PURE; + // If a process was started and ran to completion + // this method can be used to retrieve its exit code. + STDMETHOD(GetExitCode)( + THIS_ + _Out_ PULONG Code + ) PURE; + + // Client event callbacks are called on the thread + // of the client. In order to give thread + // execution to the engine for callbacks all + // client threads should call DispatchCallbacks + // when they are idle. Callbacks are only + // received when a thread calls DispatchCallbacks + // or WaitForEvent. WaitForEvent can only be + // called by the thread that started the debug + // session so all other client threads should + // call DispatchCallbacks when possible. + // DispatchCallbacks returns when ExitDispatch is used + // to interrupt dispatch or when the timeout expires. + // DispatchCallbacks dispatches callbacks for all + // clients associated with the thread calling + // DispatchCallbacks. + // DispatchCallbacks returns S_FALSE when the + // timeout expires. + STDMETHOD(DispatchCallbacks)( + THIS_ + _In_ ULONG Timeout + ) PURE; + // ExitDispatch can be used to interrupt callback + // dispatch when a client thread is needed by the + // client. This method is reentrant and can + // be called from any thread. + STDMETHOD(ExitDispatch)( + THIS_ + _In_ PDEBUG_CLIENT Client + ) PURE; + + // Clients are specific to the thread that + // created them. Calls from other threads + // fail immediately. The CreateClient method + // is a notable exception; it allows creation + // of a new client for a new thread. + STDMETHOD(CreateClient)( + THIS_ + _Out_ PDEBUG_CLIENT* Client + ) PURE; + + STDMETHOD(GetInputCallbacks)( + THIS_ + _Out_ PDEBUG_INPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetInputCallbacks)( + THIS_ + _In_opt_ PDEBUG_INPUT_CALLBACKS Callbacks + ) PURE; + + // Output callback interfaces are described separately. + STDMETHOD(GetOutputCallbacks)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacks)( + THIS_ + _In_opt_ PDEBUG_OUTPUT_CALLBACKS Callbacks + ) PURE; + // Output flags provide control over + // the distribution of output among clients. + // Output masks select which output streams + // should be sent to the output callbacks. + // Only Output calls with a mask that + // contains one of the output mask bits + // will be sent to the output callbacks. + // These methods are reentrant. + // If such access is not synchronized + // disruptions in output may occur. + STDMETHOD(GetOutputMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOutputMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + // These methods allow access to another clients + // output mask. They are necessary for changing + // a clients output mask when it is + // waiting for events. These methods are reentrant + // and can be called from any thread. + STDMETHOD(GetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _In_ ULONG Mask + ) PURE; + // Control the width of an output line for + // commands which produce formatted output. + // This setting is just a suggestion. + STDMETHOD(GetOutputWidth)( + THIS_ + _Out_ PULONG Columns + ) PURE; + STDMETHOD(SetOutputWidth)( + THIS_ + _In_ ULONG Columns + ) PURE; + // Some of the engines output commands produce + // multiple lines of output. A prefix can be + // set that the engine will automatically output + // for each line in that case, allowing a caller + // to control indentation or identifying marks. + // This is not a general setting for any output + // with a newline in it. Methods which use + // the line prefix are marked in their documentation. + STDMETHOD(GetOutputLinePrefix)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR Prefix + ) PURE; + + // Returns a string describing the machine + // and user this client represents. The + // specific content of the string varies + // with operating system. If the client is + // remotely connected some network information + // may also be present. + STDMETHOD(GetIdentity)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + // Format is a printf-like format string + // with one %s where the identity string should go. + STDMETHOD(OutputIdentity)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCSTR Format + ) PURE; + + // Event callbacks allow a client to + // receive notification about changes + // during the debug session. + STDMETHOD(GetEventCallbacks)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CALLBACKS Callbacks + ) PURE; + + // The engine sometimes merges compatible callback + // requests to reduce callback overhead. This is + // most noticeable with output as small pieces of + // output are collected into larger groups to + // reduce the overall number of output callback calls. + // A client can use this method to force all pending + // callbacks to be delivered. This is rarely necessary. + STDMETHOD(FlushCallbacks)( + THIS + ) PURE; + + // IDebugClient2. + + // Functions similarly to WriteDumpFile with + // the addition of the ability to specify + // per-dump-format write control flags. + // Comment is not supported in all formats. + STDMETHOD(WriteDumpFile2)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCSTR Comment + ) PURE; + // Registers additional files of supporting information + // for a dump file open. This method must be called + // before OpenDumpFile is called. + // The files registered may be opened at the time + // this method is called but generally will not + // be used until OpenDumpFile is called. + STDMETHOD(AddDumpInformationFile)( + THIS_ + _In_ PCSTR InfoFile, + _In_ ULONG Type + ) PURE; + + // Requests that the remote process server shut down. + STDMETHOD(EndProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + // Waits for a started process server to + // exit. Allows an application running a + // process server to monitor the process + // server so that it can tell when a remote + // client has asked for it to exit. + // Returns S_OK if the process server has + // shut down and S_FALSE for a timeout. + STDMETHOD(WaitForProcessServerEnd)( + THIS_ + _In_ ULONG Timeout + ) PURE; + + // Returns S_OK if the system is configured + // to allow kernel debugging. + STDMETHOD(IsKernelDebuggerEnabled)( + THIS + ) PURE; + + // Attempts to terminate the current process. + // Exit process events for the process may be generated. + STDMETHOD(TerminateCurrentProcess)( + THIS + ) PURE; + // Attempts to detach from the current process. + // This requires OS support for debugger detach. + STDMETHOD(DetachCurrentProcess)( + THIS + ) PURE; + // Removes the process from the debuggers process + // list without making any other changes. The process + // will still be marked as being debugged and will + // not run. This allows a debugger to be shut down + // and a new debugger attached without taking the + // process out of the debugged state. + // This is only supported on some system versions. + STDMETHOD(AbandonCurrentProcess)( + THIS + ) PURE; + + // IDebugClient3. + + STDMETHOD(GetRunningProcessSystemIdByExecutableNameWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescriptionWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PWSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + STDMETHOD(CreateProcessWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + STDMETHOD(CreateProcessAndAttachWide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // IDebugClient4. + + // In the following methods both a filename and a file + // handle can be passed in. If a file handle is given + // the filename may be omitted, although providing it + // allows the debugger to properly report the name when + // queried. + // File handles cannot be used in remote calls. + STDMETHOD(OpenDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle + ) PURE; + STDMETHOD(WriteDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCWSTR Comment + ) PURE; + STDMETHOD(AddDumpInformationFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Type + ) PURE; + // These methods can be used to retrieve + // file information for all targets that + // involve files. + STDMETHOD(GetNumberDumpFiles)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetDumpFile)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + STDMETHOD(GetDumpFileWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + + // IDebugClient5. + + STDMETHOD(AttachKernelWide)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCWSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptionsWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + STDMETHOD(SetKernelConnectionOptionsWide)( + THIS_ + _In_ PCWSTR Options + ) PURE; + + STDMETHOD(StartProcessServerWide)( + THIS_ + _In_ ULONG Flags, + _In_ PCWSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServerWide)( + THIS_ + _In_ PCWSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + + STDMETHOD(StartServerWide)( + THIS_ + _In_ PCWSTR Options + ) PURE; + STDMETHOD(OutputServersWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR Machine, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetOutputCallbacksWide)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS_WIDE* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacksWide)( + THIS_ + _In_ PDEBUG_OUTPUT_CALLBACKS_WIDE Callbacks + ) PURE; + STDMETHOD(GetOutputLinePrefixWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefixWide)( + THIS_ + _In_opt_ PCWSTR Prefix + ) PURE; + + STDMETHOD(GetIdentityWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + STDMETHOD(OutputIdentityWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCWSTR Format + ) PURE; + + STDMETHOD(GetEventCallbacksWide)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS_WIDE* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacksWide)( + THIS_ + _In_ PDEBUG_EVENT_CALLBACKS_WIDE Callbacks + ) PURE; + + STDMETHOD(CreateProcess2)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCSTR InitialDirectory, + _In_opt_ PCSTR Environment + ) PURE; + STDMETHOD(CreateProcess2Wide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCWSTR InitialDirectory, + _In_opt_ PCWSTR Environment + ) PURE; + STDMETHOD(CreateProcessAndAttach2)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCSTR InitialDirectory, + _In_opt_ PCSTR Environment, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + STDMETHOD(CreateProcessAndAttach2Wide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCWSTR InitialDirectory, + _In_opt_ PCWSTR Environment, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // Helpers for saving and restoring the + // current output line prefix. + STDMETHOD(PushOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR NewPrefix, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(PushOutputLinePrefixWide)( + THIS_ + _In_opt_ PCWSTR NewPrefix, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(PopOutputLinePrefix)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + // Queries to determine if any clients + // could potentially respond to the given callback. + STDMETHOD(GetNumberInputCallbacks)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(GetNumberOutputCallbacks)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(GetNumberEventCallbacks)( + THIS_ + _In_ ULONG EventFlags, + _Out_ PULONG Count + ) PURE; + + // Control over locking the session against + // undesired quits. The quit lock string + // cannot be retrieved from a secure session. + STDMETHOD(GetQuitLockString)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(SetQuitLockString)( + THIS_ + _In_ PCSTR String + ) PURE; + STDMETHOD(GetQuitLockStringWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(SetQuitLockStringWide)( + THIS_ + _In_ PCWSTR String + ) PURE; + + // IDebugClient6 + + STDMETHOD(SetEventContextCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CONTEXT_CALLBACKS Callbacks + ) PURE; + + // IDebugClient7 + + STDMETHOD(SetClientContext)( + THIS_ + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugClient8 +DECLARE_INTERFACE_(IDebugClient8, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugClient. + + // The following set of methods start + // the different kinds of debuggees. + + // Begins a debug session using the kernel + // debugging protocol. This method selects + // the protocol as the debuggee communication + // mechanism but does not initiate the communication + // itself. + STDMETHOD(AttachKernel)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptions)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + // Updates the connection options for a live + // kernel connection. This can only be used + // to modify parameters for the connection, not + // to switch to a completely different kind of + // connection. + // This method is reentrant. + STDMETHOD(SetKernelConnectionOptions)( + THIS_ + _In_ PCSTR Options + ) PURE; + + // Starts a process server for remote + // user-mode process control. + // The local process server is server zero. + STDMETHOD(StartProcessServer)( + THIS_ + _In_ ULONG Flags, + _In_ PCSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServer)( + THIS_ + _In_ PCSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(DisconnectProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + + // Enumerates and describes processes + // accessible through the given process server. + STDMETHOD(GetRunningProcessSystemIds)( + THIS_ + _In_ ULONG64 Server, + _Out_writes_opt_(Count) PULONG Ids, + _In_ ULONG Count, + _Out_opt_ PULONG ActualCount + ) PURE; + STDMETHOD(GetRunningProcessSystemIdByExecutableName)( + THIS_ + _In_ ULONG64 Server, + _In_ PCSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescription)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + // Attaches to a running user-mode process. + STDMETHOD(AttachProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Creates a new user-mode process for debugging. + // CreateFlags are as given to Win32s CreateProcess. + // One of DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS + // must be specified. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + // Creates or attaches to a user-mode process, or both. + // If CommandLine is NULL this method operates as + // AttachProcess does. If ProcessId is zero it + // operates as CreateProcess does. If CommandLine is + // non-NULL and ProcessId is non-zero the method first + // starts a process with the given information but + // in a suspended state. The engine then attaches to + // the indicated process. Once the attach is successful + // the suspended process is resumed. This provides + // synchronization between the new process and the + // attachment. + STDMETHOD(CreateProcessAndAttach)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Gets and sets process control flags. + STDMETHOD(GetProcessOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Opens any kind of user- or kernel-mode dump file + // and begins a debug session with the information + // contained within it. + STDMETHOD(OpenDumpFile)( + THIS_ + _In_ PCSTR DumpFile + ) PURE; + // Writes a dump file from the current session information. + // The kind of dump file written is determined by the + // kind of session and the type qualifier given. + // For example, if the current session is a kernel + // debug session (DEBUG_CLASS_KERNEL) and the qualifier + // is DEBUG_DUMP_SMALL a small kernel dump will be written. + STDMETHOD(WriteDumpFile)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier + ) PURE; + + // Indicates that a remote client is ready to + // begin participating in the current session. + // HistoryLimit gives a character limit on + // the amount of output history to be sent. + STDMETHOD(ConnectSession)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG HistoryLimit + ) PURE; + // Indicates that the engine should start accepting + // remote connections. Options specifies connection types + // and their parameters. Supported strings are: + // npipe:Pipe= + // tcp:Port= + STDMETHOD(StartServer)( + THIS_ + _In_ PCSTR Options + ) PURE; + // List the servers running on the given machine. + // Uses the line prefix. + STDMETHOD(OutputServers)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Machine, + _In_ ULONG Flags + ) PURE; + + // Attempts to terminate all processes in the debuggers list. + STDMETHOD(TerminateProcesses)( + THIS + ) PURE; + // Attempts to detach from all processes in the debuggers list. + // This requires OS support for debugger detach. + STDMETHOD(DetachProcesses)( + THIS + ) PURE; + // Stops the current debug session. If a process + // was created or attached an active EndSession can + // terminate or detach from it. + // If a kernel connection was opened it will be closed but the + // target machine is otherwise unaffected. + STDMETHOD(EndSession)( + THIS_ + _In_ ULONG Flags + ) PURE; + // If a process was started and ran to completion + // this method can be used to retrieve its exit code. + STDMETHOD(GetExitCode)( + THIS_ + _Out_ PULONG Code + ) PURE; + + // Client event callbacks are called on the thread + // of the client. In order to give thread + // execution to the engine for callbacks all + // client threads should call DispatchCallbacks + // when they are idle. Callbacks are only + // received when a thread calls DispatchCallbacks + // or WaitForEvent. WaitForEvent can only be + // called by the thread that started the debug + // session so all other client threads should + // call DispatchCallbacks when possible. + // DispatchCallbacks returns when ExitDispatch is used + // to interrupt dispatch or when the timeout expires. + // DispatchCallbacks dispatches callbacks for all + // clients associated with the thread calling + // DispatchCallbacks. + // DispatchCallbacks returns S_FALSE when the + // timeout expires. + STDMETHOD(DispatchCallbacks)( + THIS_ + _In_ ULONG Timeout + ) PURE; + // ExitDispatch can be used to interrupt callback + // dispatch when a client thread is needed by the + // client. This method is reentrant and can + // be called from any thread. + STDMETHOD(ExitDispatch)( + THIS_ + _In_ PDEBUG_CLIENT Client + ) PURE; + + // Clients are specific to the thread that + // created them. Calls from other threads + // fail immediately. The CreateClient method + // is a notable exception; it allows creation + // of a new client for a new thread. + STDMETHOD(CreateClient)( + THIS_ + _Out_ PDEBUG_CLIENT* Client + ) PURE; + + STDMETHOD(GetInputCallbacks)( + THIS_ + _Out_ PDEBUG_INPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetInputCallbacks)( + THIS_ + _In_opt_ PDEBUG_INPUT_CALLBACKS Callbacks + ) PURE; + + // Output callback interfaces are described separately. + STDMETHOD(GetOutputCallbacks)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacks)( + THIS_ + _In_opt_ PDEBUG_OUTPUT_CALLBACKS Callbacks + ) PURE; + // Output flags provide control over + // the distribution of output among clients. + // Output masks select which output streams + // should be sent to the output callbacks. + // Only Output calls with a mask that + // contains one of the output mask bits + // will be sent to the output callbacks. + // These methods are reentrant. + // If such access is not synchronized + // disruptions in output may occur. + STDMETHOD(GetOutputMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOutputMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + // These methods allow access to another clients + // output mask. They are necessary for changing + // a clients output mask when it is + // waiting for events. These methods are reentrant + // and can be called from any thread. + STDMETHOD(GetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _In_ ULONG Mask + ) PURE; + // Control the width of an output line for + // commands which produce formatted output. + // This setting is just a suggestion. + STDMETHOD(GetOutputWidth)( + THIS_ + _Out_ PULONG Columns + ) PURE; + STDMETHOD(SetOutputWidth)( + THIS_ + _In_ ULONG Columns + ) PURE; + // Some of the engines output commands produce + // multiple lines of output. A prefix can be + // set that the engine will automatically output + // for each line in that case, allowing a caller + // to control indentation or identifying marks. + // This is not a general setting for any output + // with a newline in it. Methods which use + // the line prefix are marked in their documentation. + STDMETHOD(GetOutputLinePrefix)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR Prefix + ) PURE; + + // Returns a string describing the machine + // and user this client represents. The + // specific content of the string varies + // with operating system. If the client is + // remotely connected some network information + // may also be present. + STDMETHOD(GetIdentity)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + // Format is a printf-like format string + // with one %s where the identity string should go. + STDMETHOD(OutputIdentity)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCSTR Format + ) PURE; + + // Event callbacks allow a client to + // receive notification about changes + // during the debug session. + STDMETHOD(GetEventCallbacks)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CALLBACKS Callbacks + ) PURE; + + // The engine sometimes merges compatible callback + // requests to reduce callback overhead. This is + // most noticeable with output as small pieces of + // output are collected into larger groups to + // reduce the overall number of output callback calls. + // A client can use this method to force all pending + // callbacks to be delivered. This is rarely necessary. + STDMETHOD(FlushCallbacks)( + THIS + ) PURE; + + // IDebugClient2. + + // Functions similarly to WriteDumpFile with + // the addition of the ability to specify + // per-dump-format write control flags. + // Comment is not supported in all formats. + STDMETHOD(WriteDumpFile2)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCSTR Comment + ) PURE; + // Registers additional files of supporting information + // for a dump file open. This method must be called + // before OpenDumpFile is called. + // The files registered may be opened at the time + // this method is called but generally will not + // be used until OpenDumpFile is called. + STDMETHOD(AddDumpInformationFile)( + THIS_ + _In_ PCSTR InfoFile, + _In_ ULONG Type + ) PURE; + + // Requests that the remote process server shut down. + STDMETHOD(EndProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + // Waits for a started process server to + // exit. Allows an application running a + // process server to monitor the process + // server so that it can tell when a remote + // client has asked for it to exit. + // Returns S_OK if the process server has + // shut down and S_FALSE for a timeout. + STDMETHOD(WaitForProcessServerEnd)( + THIS_ + _In_ ULONG Timeout + ) PURE; + + // Returns S_OK if the system is configured + // to allow kernel debugging. + STDMETHOD(IsKernelDebuggerEnabled)( + THIS + ) PURE; + + // Attempts to terminate the current process. + // Exit process events for the process may be generated. + STDMETHOD(TerminateCurrentProcess)( + THIS + ) PURE; + // Attempts to detach from the current process. + // This requires OS support for debugger detach. + STDMETHOD(DetachCurrentProcess)( + THIS + ) PURE; + // Removes the process from the debuggers process + // list without making any other changes. The process + // will still be marked as being debugged and will + // not run. This allows a debugger to be shut down + // and a new debugger attached without taking the + // process out of the debugged state. + // This is only supported on some system versions. + STDMETHOD(AbandonCurrentProcess)( + THIS + ) PURE; + + // IDebugClient3. + + STDMETHOD(GetRunningProcessSystemIdByExecutableNameWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescriptionWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PWSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + STDMETHOD(CreateProcessWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + STDMETHOD(CreateProcessAndAttachWide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // IDebugClient4. + + // In the following methods both a filename and a file + // handle can be passed in. If a file handle is given + // the filename may be omitted, although providing it + // allows the debugger to properly report the name when + // queried. + // File handles cannot be used in remote calls. + STDMETHOD(OpenDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle + ) PURE; + STDMETHOD(WriteDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCWSTR Comment + ) PURE; + STDMETHOD(AddDumpInformationFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Type + ) PURE; + // These methods can be used to retrieve + // file information for all targets that + // involve files. + STDMETHOD(GetNumberDumpFiles)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetDumpFile)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + STDMETHOD(GetDumpFileWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + + // IDebugClient5. + + STDMETHOD(AttachKernelWide)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCWSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptionsWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + STDMETHOD(SetKernelConnectionOptionsWide)( + THIS_ + _In_ PCWSTR Options + ) PURE; + + STDMETHOD(StartProcessServerWide)( + THIS_ + _In_ ULONG Flags, + _In_ PCWSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServerWide)( + THIS_ + _In_ PCWSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + + STDMETHOD(StartServerWide)( + THIS_ + _In_ PCWSTR Options + ) PURE; + STDMETHOD(OutputServersWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR Machine, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetOutputCallbacksWide)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS_WIDE* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacksWide)( + THIS_ + _In_ PDEBUG_OUTPUT_CALLBACKS_WIDE Callbacks + ) PURE; + STDMETHOD(GetOutputLinePrefixWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefixWide)( + THIS_ + _In_opt_ PCWSTR Prefix + ) PURE; + + STDMETHOD(GetIdentityWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + STDMETHOD(OutputIdentityWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCWSTR Format + ) PURE; + + STDMETHOD(GetEventCallbacksWide)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS_WIDE* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacksWide)( + THIS_ + _In_ PDEBUG_EVENT_CALLBACKS_WIDE Callbacks + ) PURE; + + STDMETHOD(CreateProcess2)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCSTR InitialDirectory, + _In_opt_ PCSTR Environment + ) PURE; + STDMETHOD(CreateProcess2Wide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCWSTR InitialDirectory, + _In_opt_ PCWSTR Environment + ) PURE; + STDMETHOD(CreateProcessAndAttach2)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCSTR InitialDirectory, + _In_opt_ PCSTR Environment, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + STDMETHOD(CreateProcessAndAttach2Wide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCWSTR InitialDirectory, + _In_opt_ PCWSTR Environment, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // Helpers for saving and restoring the + // current output line prefix. + STDMETHOD(PushOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR NewPrefix, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(PushOutputLinePrefixWide)( + THIS_ + _In_opt_ PCWSTR NewPrefix, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(PopOutputLinePrefix)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + // Queries to determine if any clients + // could potentially respond to the given callback. + STDMETHOD(GetNumberInputCallbacks)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(GetNumberOutputCallbacks)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(GetNumberEventCallbacks)( + THIS_ + _In_ ULONG EventFlags, + _Out_ PULONG Count + ) PURE; + + // Control over locking the session against + // undesired quits. The quit lock string + // cannot be retrieved from a secure session. + STDMETHOD(GetQuitLockString)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(SetQuitLockString)( + THIS_ + _In_ PCSTR String + ) PURE; + STDMETHOD(GetQuitLockStringWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(SetQuitLockStringWide)( + THIS_ + _In_ PCWSTR String + ) PURE; + + // IDebugClient6 + + STDMETHOD(SetEventContextCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CONTEXT_CALLBACKS Callbacks + ) PURE; + + // IDebugClient7 + + STDMETHOD(SetClientContext)( + THIS_ + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + // IDebugClient8 + + STDMETHOD(OpenDumpFileWide2)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG AlternateArch + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugClient9 +DECLARE_INTERFACE_(IDebugClient9, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugClient. + + // The following set of methods start + // the different kinds of debuggees. + + // Begins a debug session using the kernel + // debugging protocol. This method selects + // the protocol as the debuggee communication + // mechanism but does not initiate the communication + // itself. + STDMETHOD(AttachKernel)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptions)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + // Updates the connection options for a live + // kernel connection. This can only be used + // to modify parameters for the connection, not + // to switch to a completely different kind of + // connection. + // This method is reentrant. + STDMETHOD(SetKernelConnectionOptions)( + THIS_ + _In_ PCSTR Options + ) PURE; + + // Starts a process server for remote + // user-mode process control. + // The local process server is server zero. + STDMETHOD(StartProcessServer)( + THIS_ + _In_ ULONG Flags, + _In_ PCSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServer)( + THIS_ + _In_ PCSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(DisconnectProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + + // Enumerates and describes processes + // accessible through the given process server. + STDMETHOD(GetRunningProcessSystemIds)( + THIS_ + _In_ ULONG64 Server, + _Out_writes_opt_(Count) PULONG Ids, + _In_ ULONG Count, + _Out_opt_ PULONG ActualCount + ) PURE; + STDMETHOD(GetRunningProcessSystemIdByExecutableName)( + THIS_ + _In_ ULONG64 Server, + _In_ PCSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescription)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + // Attaches to a running user-mode process. + STDMETHOD(AttachProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Creates a new user-mode process for debugging. + // CreateFlags are as given to Win32s CreateProcess. + // One of DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS + // must be specified. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + // Creates or attaches to a user-mode process, or both. + // If CommandLine is NULL this method operates as + // AttachProcess does. If ProcessId is zero it + // operates as CreateProcess does. If CommandLine is + // non-NULL and ProcessId is non-zero the method first + // starts a process with the given information but + // in a suspended state. The engine then attaches to + // the indicated process. Once the attach is successful + // the suspended process is resumed. This provides + // synchronization between the new process and the + // attachment. + STDMETHOD(CreateProcessAndAttach)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + // Gets and sets process control flags. + STDMETHOD(GetProcessOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetProcessOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Opens any kind of user- or kernel-mode dump file + // and begins a debug session with the information + // contained within it. + STDMETHOD(OpenDumpFile)( + THIS_ + _In_ PCSTR DumpFile + ) PURE; + // Writes a dump file from the current session information. + // The kind of dump file written is determined by the + // kind of session and the type qualifier given. + // For example, if the current session is a kernel + // debug session (DEBUG_CLASS_KERNEL) and the qualifier + // is DEBUG_DUMP_SMALL a small kernel dump will be written. + STDMETHOD(WriteDumpFile)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier + ) PURE; + + // Indicates that a remote client is ready to + // begin participating in the current session. + // HistoryLimit gives a character limit on + // the amount of output history to be sent. + STDMETHOD(ConnectSession)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG HistoryLimit + ) PURE; + // Indicates that the engine should start accepting + // remote connections. Options specifies connection types + // and their parameters. Supported strings are: + // npipe:Pipe= + // tcp:Port= + STDMETHOD(StartServer)( + THIS_ + _In_ PCSTR Options + ) PURE; + // List the servers running on the given machine. + // Uses the line prefix. + STDMETHOD(OutputServers)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Machine, + _In_ ULONG Flags + ) PURE; + + // Attempts to terminate all processes in the debuggers list. + STDMETHOD(TerminateProcesses)( + THIS + ) PURE; + // Attempts to detach from all processes in the debuggers list. + // This requires OS support for debugger detach. + STDMETHOD(DetachProcesses)( + THIS + ) PURE; + // Stops the current debug session. If a process + // was created or attached an active EndSession can + // terminate or detach from it. + // If a kernel connection was opened it will be closed but the + // target machine is otherwise unaffected. + STDMETHOD(EndSession)( + THIS_ + _In_ ULONG Flags + ) PURE; + // If a process was started and ran to completion + // this method can be used to retrieve its exit code. + STDMETHOD(GetExitCode)( + THIS_ + _Out_ PULONG Code + ) PURE; + + // Client event callbacks are called on the thread + // of the client. In order to give thread + // execution to the engine for callbacks all + // client threads should call DispatchCallbacks + // when they are idle. Callbacks are only + // received when a thread calls DispatchCallbacks + // or WaitForEvent. WaitForEvent can only be + // called by the thread that started the debug + // session so all other client threads should + // call DispatchCallbacks when possible. + // DispatchCallbacks returns when ExitDispatch is used + // to interrupt dispatch or when the timeout expires. + // DispatchCallbacks dispatches callbacks for all + // clients associated with the thread calling + // DispatchCallbacks. + // DispatchCallbacks returns S_FALSE when the + // timeout expires. + STDMETHOD(DispatchCallbacks)( + THIS_ + _In_ ULONG Timeout + ) PURE; + // ExitDispatch can be used to interrupt callback + // dispatch when a client thread is needed by the + // client. This method is reentrant and can + // be called from any thread. + STDMETHOD(ExitDispatch)( + THIS_ + _In_ PDEBUG_CLIENT Client + ) PURE; + + // Clients are specific to the thread that + // created them. Calls from other threads + // fail immediately. The CreateClient method + // is a notable exception; it allows creation + // of a new client for a new thread. + STDMETHOD(CreateClient)( + THIS_ + _Out_ PDEBUG_CLIENT* Client + ) PURE; + + STDMETHOD(GetInputCallbacks)( + THIS_ + _Out_ PDEBUG_INPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetInputCallbacks)( + THIS_ + _In_opt_ PDEBUG_INPUT_CALLBACKS Callbacks + ) PURE; + + // Output callback interfaces are described separately. + STDMETHOD(GetOutputCallbacks)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacks)( + THIS_ + _In_opt_ PDEBUG_OUTPUT_CALLBACKS Callbacks + ) PURE; + // Output flags provide control over + // the distribution of output among clients. + // Output masks select which output streams + // should be sent to the output callbacks. + // Only Output calls with a mask that + // contains one of the output mask bits + // will be sent to the output callbacks. + // These methods are reentrant. + // If such access is not synchronized + // disruptions in output may occur. + STDMETHOD(GetOutputMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOutputMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + // These methods allow access to another clients + // output mask. They are necessary for changing + // a clients output mask when it is + // waiting for events. These methods are reentrant + // and can be called from any thread. + STDMETHOD(GetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetOtherOutputMask)( + THIS_ + _In_ PDEBUG_CLIENT Client, + _In_ ULONG Mask + ) PURE; + // Control the width of an output line for + // commands which produce formatted output. + // This setting is just a suggestion. + STDMETHOD(GetOutputWidth)( + THIS_ + _Out_ PULONG Columns + ) PURE; + STDMETHOD(SetOutputWidth)( + THIS_ + _In_ ULONG Columns + ) PURE; + // Some of the engines output commands produce + // multiple lines of output. A prefix can be + // set that the engine will automatically output + // for each line in that case, allowing a caller + // to control indentation or identifying marks. + // This is not a general setting for any output + // with a newline in it. Methods which use + // the line prefix are marked in their documentation. + STDMETHOD(GetOutputLinePrefix)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR Prefix + ) PURE; + + // Returns a string describing the machine + // and user this client represents. The + // specific content of the string varies + // with operating system. If the client is + // remotely connected some network information + // may also be present. + STDMETHOD(GetIdentity)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + // Format is a printf-like format string + // with one %s where the identity string should go. + STDMETHOD(OutputIdentity)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCSTR Format + ) PURE; + + // Event callbacks allow a client to + // receive notification about changes + // during the debug session. + STDMETHOD(GetEventCallbacks)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CALLBACKS Callbacks + ) PURE; + + // The engine sometimes merges compatible callback + // requests to reduce callback overhead. This is + // most noticeable with output as small pieces of + // output are collected into larger groups to + // reduce the overall number of output callback calls. + // A client can use this method to force all pending + // callbacks to be delivered. This is rarely necessary. + STDMETHOD(FlushCallbacks)( + THIS + ) PURE; + + // IDebugClient2. + + // Functions similarly to WriteDumpFile with + // the addition of the ability to specify + // per-dump-format write control flags. + // Comment is not supported in all formats. + STDMETHOD(WriteDumpFile2)( + THIS_ + _In_ PCSTR DumpFile, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCSTR Comment + ) PURE; + // Registers additional files of supporting information + // for a dump file open. This method must be called + // before OpenDumpFile is called. + // The files registered may be opened at the time + // this method is called but generally will not + // be used until OpenDumpFile is called. + STDMETHOD(AddDumpInformationFile)( + THIS_ + _In_ PCSTR InfoFile, + _In_ ULONG Type + ) PURE; + + // Requests that the remote process server shut down. + STDMETHOD(EndProcessServer)( + THIS_ + _In_ ULONG64 Server + ) PURE; + // Waits for a started process server to + // exit. Allows an application running a + // process server to monitor the process + // server so that it can tell when a remote + // client has asked for it to exit. + // Returns S_OK if the process server has + // shut down and S_FALSE for a timeout. + STDMETHOD(WaitForProcessServerEnd)( + THIS_ + _In_ ULONG Timeout + ) PURE; + + // Returns S_OK if the system is configured + // to allow kernel debugging. + STDMETHOD(IsKernelDebuggerEnabled)( + THIS + ) PURE; + + // Attempts to terminate the current process. + // Exit process events for the process may be generated. + STDMETHOD(TerminateCurrentProcess)( + THIS + ) PURE; + // Attempts to detach from the current process. + // This requires OS support for debugger detach. + STDMETHOD(DetachCurrentProcess)( + THIS + ) PURE; + // Removes the process from the debuggers process + // list without making any other changes. The process + // will still be marked as being debugged and will + // not run. This allows a debugger to be shut down + // and a new debugger attached without taking the + // process out of the debugged state. + // This is only supported on some system versions. + STDMETHOD(AbandonCurrentProcess)( + THIS + ) PURE; + + // IDebugClient3. + + STDMETHOD(GetRunningProcessSystemIdByExecutableNameWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR ExeName, + _In_ ULONG Flags, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetRunningProcessDescriptionWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG SystemId, + _In_ ULONG Flags, + _Out_writes_opt_(ExeNameSize) PWSTR ExeName, + _In_ ULONG ExeNameSize, + _Out_opt_ PULONG ActualExeNameSize, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG ActualDescriptionSize + ) PURE; + + STDMETHOD(CreateProcessWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_ ULONG CreateFlags + ) PURE; + STDMETHOD(CreateProcessAndAttachWide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_ ULONG CreateFlags, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // IDebugClient4. + + // In the following methods both a filename and a file + // handle can be passed in. If a file handle is given + // the filename may be omitted, although providing it + // allows the debugger to properly report the name when + // queried. + // File handles cannot be used in remote calls. + STDMETHOD(OpenDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle + ) PURE; + STDMETHOD(WriteDumpFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Qualifier, + _In_ ULONG FormatFlags, + _In_opt_ PCWSTR Comment + ) PURE; + STDMETHOD(AddDumpInformationFileWide)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG Type + ) PURE; + // These methods can be used to retrieve + // file information for all targets that + // involve files. + STDMETHOD(GetNumberDumpFiles)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetDumpFile)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + STDMETHOD(GetDumpFileWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Handle, + _Out_ PULONG Type + ) PURE; + + // IDebugClient5. + + STDMETHOD(AttachKernelWide)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PCWSTR ConnectOptions + ) PURE; + STDMETHOD(GetKernelConnectionOptionsWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG OptionsSize + ) PURE; + STDMETHOD(SetKernelConnectionOptionsWide)( + THIS_ + _In_ PCWSTR Options + ) PURE; + + STDMETHOD(StartProcessServerWide)( + THIS_ + _In_ ULONG Flags, + _In_ PCWSTR Options, + _In_opt_ _Reserved_ PVOID Reserved + ) PURE; + STDMETHOD(ConnectProcessServerWide)( + THIS_ + _In_ PCWSTR RemoteOptions, + _Out_ PULONG64 Server + ) PURE; + + STDMETHOD(StartServerWide)( + THIS_ + _In_ PCWSTR Options + ) PURE; + STDMETHOD(OutputServersWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR Machine, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetOutputCallbacksWide)( + THIS_ + _Out_ PDEBUG_OUTPUT_CALLBACKS_WIDE* Callbacks + ) PURE; + STDMETHOD(SetOutputCallbacksWide)( + THIS_ + _In_ PDEBUG_OUTPUT_CALLBACKS_WIDE Callbacks + ) PURE; + STDMETHOD(GetOutputLinePrefixWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PrefixSize + ) PURE; + STDMETHOD(SetOutputLinePrefixWide)( + THIS_ + _In_opt_ PCWSTR Prefix + ) PURE; + + STDMETHOD(GetIdentityWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG IdentitySize + ) PURE; + STDMETHOD(OutputIdentityWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ PCWSTR Format + ) PURE; + + STDMETHOD(GetEventCallbacksWide)( + THIS_ + _Out_ PDEBUG_EVENT_CALLBACKS_WIDE* Callbacks + ) PURE; + STDMETHOD(SetEventCallbacksWide)( + THIS_ + _In_ PDEBUG_EVENT_CALLBACKS_WIDE Callbacks + ) PURE; + + STDMETHOD(CreateProcess2)( + THIS_ + _In_ ULONG64 Server, + _In_ PSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCSTR InitialDirectory, + _In_opt_ PCSTR Environment + ) PURE; + STDMETHOD(CreateProcess2Wide)( + THIS_ + _In_ ULONG64 Server, + _In_ PWSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCWSTR InitialDirectory, + _In_opt_ PCWSTR Environment + ) PURE; + STDMETHOD(CreateProcessAndAttach2)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCSTR InitialDirectory, + _In_opt_ PCSTR Environment, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + STDMETHOD(CreateProcessAndAttach2Wide)( + THIS_ + _In_ ULONG64 Server, + _In_opt_ PWSTR CommandLine, + _In_reads_bytes_(OptionsBufferSize) PVOID OptionsBuffer, + _In_ ULONG OptionsBufferSize, + _In_opt_ PCWSTR InitialDirectory, + _In_opt_ PCWSTR Environment, + _In_ ULONG ProcessId, + _In_ ULONG AttachFlags + ) PURE; + + // Helpers for saving and restoring the + // current output line prefix. + STDMETHOD(PushOutputLinePrefix)( + THIS_ + _In_opt_ PCSTR NewPrefix, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(PushOutputLinePrefixWide)( + THIS_ + _In_opt_ PCWSTR NewPrefix, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(PopOutputLinePrefix)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + // Queries to determine if any clients + // could potentially respond to the given callback. + STDMETHOD(GetNumberInputCallbacks)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(GetNumberOutputCallbacks)( + THIS_ + _Out_ PULONG Count + ) PURE; + STDMETHOD(GetNumberEventCallbacks)( + THIS_ + _In_ ULONG EventFlags, + _Out_ PULONG Count + ) PURE; + + // Control over locking the session against + // undesired quits. The quit lock string + // cannot be retrieved from a secure session. + STDMETHOD(GetQuitLockString)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(SetQuitLockString)( + THIS_ + _In_ PCSTR String + ) PURE; + STDMETHOD(GetQuitLockStringWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(SetQuitLockStringWide)( + THIS_ + _In_ PCWSTR String + ) PURE; + + // IDebugClient6 + + STDMETHOD(SetEventContextCallbacks)( + THIS_ + _In_opt_ PDEBUG_EVENT_CONTEXT_CALLBACKS Callbacks + ) PURE; + + // IDebugClient7 + + STDMETHOD(SetClientContext)( + THIS_ + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + // IDebugClient8 + + STDMETHOD(OpenDumpFileWide2)( + THIS_ + _In_opt_ PCWSTR FileName, + _In_ ULONG64 FileHandle, + _In_ ULONG AlternateArch + ) PURE; + + // IDebugClient9 + + STDMETHOD(OpenDumpDirectoryWide)( + THIS_ + _In_opt_ PCWSTR DirName, + _In_ ULONG AlternateArch + ) PURE; + STDMETHOD(OpenDumpDirectory)( + THIS_ + _In_ PCSTR DumpDir, + _In_ ULONG AlternativeArch + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugPlmClient +DECLARE_INTERFACE_(IDebugPlmClient, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugPlmClient + + // Launches suspended Plm Application + STDMETHOD(LaunchPlmPackageForDebugWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG Timeout, + _In_ PCWSTR PackageFullName, + _In_ PCWSTR AppName, + _In_opt_ PCWSTR Arguments, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugPlmClient2 +DECLARE_INTERFACE_(IDebugPlmClient2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugPlmClient + + // Launches suspended Plm Application + STDMETHOD(LaunchPlmPackageForDebugWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG Timeout, + _In_ PCWSTR PackageFullName, + _In_ PCWSTR AppName, + _In_opt_ PCWSTR Arguments, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId + ) PURE; + + // IDebugPlmClient2 + + // Launches suspended Plm Bg Task + STDMETHOD(LaunchPlmBgTaskForDebugWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG Timeout, + _In_ PCWSTR PackageFullName, + _In_ PCWSTR BackgroundTaskId, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugPlmClient3 +DECLARE_INTERFACE_(IDebugPlmClient3, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugPlmClient + + // Launches suspended Plm Application + STDMETHOD(LaunchPlmPackageForDebugWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG Timeout, + _In_ PCWSTR PackageFullName, + _In_ PCWSTR AppName, + _In_opt_ PCWSTR Arguments, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId + ) PURE; + + // IDebugPlmClient2 + + // Launches suspended Plm Bg Task + STDMETHOD(LaunchPlmBgTaskForDebugWide)( + THIS_ + _In_ ULONG64 Server, + _In_ ULONG Timeout, + _In_ PCWSTR PackageFullName, + _In_ PCWSTR BackgroundTaskId, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId + ) PURE; + + // IDebugPlmClient3 + + STDMETHOD(QueryPlmPackageWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR PackageFullName, + _In_ PDEBUG_OUTPUT_STREAM Stream + ) PURE; + + STDMETHOD(QueryPlmPackageList)( + THIS_ + _In_ ULONG64 Server, + _In_ PDEBUG_OUTPUT_STREAM Stream + ) PURE; + + STDMETHOD(EnablePlmPackageDebugWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR PackageFullName + ) PURE; + + STDMETHOD(DisablePlmPackageDebugWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR PackageFullName + ) PURE; + + STDMETHOD(SuspendPlmPackageWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR PackageFullName + ) PURE; + + STDMETHOD(ResumePlmPackageWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR PackageFullName + ) PURE; + + STDMETHOD(TerminatePlmPackageWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR PackageFullName + ) PURE; + + // Launches and attaches to Plm Application. Starts debugger session + // if it is not already started + STDMETHOD(LaunchAndDebugPlmAppWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR PackageFullName, + _In_ PCWSTR AppName, + _In_ PCWSTR Arguments + ) PURE; + + // Launches and attaches to Plm Bg Task. Starts debugger session + // if it is not already started + STDMETHOD(ActivateAndDebugPlmBgTaskWide)( + THIS_ + _In_ ULONG64 Server, + _In_ PCWSTR PackageFullName, + _In_ PCWSTR BackgroundTaskId + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugOutputStream +DECLARE_INTERFACE_(IDebugOutputStream, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + __in REFIID InterfaceId, + __out PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugOutputStream. + STDMETHOD(Write)( + THIS_ + _In_ PCWSTR psz + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// IDebugControl. +// +//---------------------------------------------------------------------------- + +// Execution status codes used for waiting, +// for returning current status and for +// event method return values. +#define DEBUG_STATUS_NO_CHANGE 0 +#define DEBUG_STATUS_GO 1 +#define DEBUG_STATUS_GO_HANDLED 2 +#define DEBUG_STATUS_GO_NOT_HANDLED 3 +#define DEBUG_STATUS_STEP_OVER 4 +#define DEBUG_STATUS_STEP_INTO 5 +#define DEBUG_STATUS_BREAK 6 +#define DEBUG_STATUS_NO_DEBUGGEE 7 +#define DEBUG_STATUS_STEP_BRANCH 8 +#define DEBUG_STATUS_IGNORE_EVENT 9 +#define DEBUG_STATUS_RESTART_REQUESTED 10 +#define DEBUG_STATUS_REVERSE_GO 11 +#define DEBUG_STATUS_REVERSE_STEP_BRANCH 12 +#define DEBUG_STATUS_REVERSE_STEP_OVER 13 +#define DEBUG_STATUS_REVERSE_STEP_INTO 14 +#define DEBUG_STATUS_OUT_OF_SYNC 15 +#define DEBUG_STATUS_WAIT_INPUT 16 +#define DEBUG_STATUS_TIMEOUT 17 + +#define DEBUG_STATUS_MASK 0x1f + +// This bit is added in DEBUG_CES_EXECUTION_STATUS +// notifications when the engines execution status +// is changing due to operations performed during +// a wait, such as making synchronous callbacks. If +// the bit is not set the execution status is changing +// due to a wait being satisfied. +#define DEBUG_STATUS_INSIDE_WAIT 0x100000000 +// This bit is added in DEBUG_CES_EXECUTION_STATUS +// notifications when the engines execution status +// update is coming after a wait has timed-out. +// It indicates that the execution status change +// was not due to an actual event. +#define DEBUG_STATUS_WAIT_TIMEOUT 0x200000000 + +// Output control flags. +// Output generated by methods called by this +// client will be sent only to this clients +// output callbacks. +#define DEBUG_OUTCTL_THIS_CLIENT 0x00000000 +// Output will be sent to all clients. +#define DEBUG_OUTCTL_ALL_CLIENTS 0x00000001 +// Output will be sent to all clients except +// the client generating the output. +#define DEBUG_OUTCTL_ALL_OTHER_CLIENTS 0x00000002 +// Output will be discarded immediately and will not +// be logged or sent to callbacks. +#define DEBUG_OUTCTL_IGNORE 0x00000003 +// Output will be logged but not sent to callbacks. +#define DEBUG_OUTCTL_LOG_ONLY 0x00000004 +// All send control bits. +#define DEBUG_OUTCTL_SEND_MASK 0x00000007 +// Do not place output from this client in +// the global log file. +#define DEBUG_OUTCTL_NOT_LOGGED 0x00000008 +// Send output to clients regardless of whether the +// mask allows it or not. +#define DEBUG_OUTCTL_OVERRIDE_MASK 0x00000010 +// Text is markup instead of plain text. +#define DEBUG_OUTCTL_DML 0x00000020 + +// Special values which mean leave the output settings +// unchanged. +#define DEBUG_OUTCTL_AMBIENT_DML 0xfffffffe +#define DEBUG_OUTCTL_AMBIENT_TEXT 0xffffffff + +// Old ambient flag which maps to text. +#define DEBUG_OUTCTL_AMBIENT DEBUG_OUTCTL_AMBIENT_TEXT + +// Interrupt types. +// Force a break in if the debuggee is running. +#define DEBUG_INTERRUPT_ACTIVE 0 +// Notify but do not force a break in. +#define DEBUG_INTERRUPT_PASSIVE 1 +// Try and get the current engine operation to +// complete so that the engine will be available +// again. If no wait is active this is the same +// as a passive interrupt. If a wait is active +// this will try to cause the wait to fail without +// breaking in to the debuggee. There is +// no guarantee that issuing an exit interrupt +// will cause the engine to become available +// as not all operations are arbitrarily +// interruptible. +#define DEBUG_INTERRUPT_EXIT 2 + +// OutputCurrentState flags. These flags +// allow a particular type of information +// to be displayed but do not guarantee +// that it will be displayed. Other global +// settings may override these flags or +// the particular state may not be available. +// For example, source line information may +// not be present so source line information +// may not be displayed. +#define DEBUG_CURRENT_DEFAULT 0x0000000f +#define DEBUG_CURRENT_SYMBOL 0x00000001 +#define DEBUG_CURRENT_DISASM 0x00000002 +#define DEBUG_CURRENT_REGISTERS 0x00000004 +#define DEBUG_CURRENT_SOURCE_LINE 0x00000008 + +// +// Disassemble flags. +// + +// Compute the effective address from current register +// information and display it. +#define DEBUG_DISASM_EFFECTIVE_ADDRESS 0x00000001 +// If the current disassembly offset has an exact +// symbol match output the symbol. +#define DEBUG_DISASM_MATCHING_SYMBOLS 0x00000002 +// Output the source line number for each disassembly offset. +#define DEBUG_DISASM_SOURCE_LINE_NUMBER 0x00000004 +// Output the source file name (no path) for each disassembly offset. +#define DEBUG_DISASM_SOURCE_FILE_NAME 0x00000008 + +// Code interpretation levels for stepping +// and other operations. +#define DEBUG_LEVEL_SOURCE 0 +#define DEBUG_LEVEL_ASSEMBLY 1 + +// Engine control flags. +#define DEBUG_ENGOPT_IGNORE_DBGHELP_VERSION 0x00000001 +#define DEBUG_ENGOPT_IGNORE_EXTENSION_VERSIONS 0x00000002 +// If neither allow nor disallow is specified +// the engine will pick one based on what kind +// of debugging is going on. +#define DEBUG_ENGOPT_ALLOW_NETWORK_PATHS 0x00000004 +#define DEBUG_ENGOPT_DISALLOW_NETWORK_PATHS 0x00000008 +#define DEBUG_ENGOPT_NETWORK_PATHS (0x00000004 | 0x00000008) +// Ignore loader-generated first-chance exceptions. +#define DEBUG_ENGOPT_IGNORE_LOADER_EXCEPTIONS 0x00000010 +// Break in on a debuggees initial event. In user-mode +// this will break at the initial system breakpoint +// for every created process. In kernel-mode it +// will attempt break in on the target at the first +// WaitForEvent. +#define DEBUG_ENGOPT_INITIAL_BREAK 0x00000020 +// Break in on the first module load for a debuggee. +#define DEBUG_ENGOPT_INITIAL_MODULE_BREAK 0x00000040 +// Break in on a debuggees final event. In user-mode +// this will break on process exit for every process. +// In kernel-mode it currently does nothing. +#define DEBUG_ENGOPT_FINAL_BREAK 0x00000080 +// By default Execute will repeat the last command +// if it is given an empty string. The flags to +// Execute can override this behavior for a single +// command or this engine option can be used to +// change the default globally. +#define DEBUG_ENGOPT_NO_EXECUTE_REPEAT 0x00000100 +// Disable places in the engine that have fallback +// code when presented with incomplete information. +// 1. Fails minidump module loads unless matching +// executables can be mapped. +#define DEBUG_ENGOPT_FAIL_INCOMPLETE_INFORMATION 0x00000200 +// Allow the debugger to manipulate page protections +// in order to insert code breakpoints on pages that +// do not have write access. This option is not on +// by default as it allows breakpoints to be set +// in potentially hazardous memory areas. +#define DEBUG_ENGOPT_ALLOW_READ_ONLY_BREAKPOINTS 0x00000400 +// When using a software (bp/bu) breakpoint in code +// that will be executed by multiple threads it is +// possible for breakpoint management to cause the +// breakpoint to be missed or for spurious single-step +// exceptions to be generated. This flag suspends +// all but the active thread when doing breakpoint +// management and thereby avoids multithreading +// problems. Care must be taken when using it, though, +// as the suspension of threads can cause deadlocks +// if the suspended threads are holding resources that +// the active thread needs. Additionally, there +// are still rare situations where problems may +// occur, but setting this flag corrects nearly +// all multithreading issues with software breakpoints. +// Thread-restricted stepping and execution supersedes +// this flags effect. +// This flag is ignored in kernel sessions as there +// is no way to restrict processor execution. +#define DEBUG_ENGOPT_SYNCHRONIZE_BREAKPOINTS 0x00000800 +// Disallows executing shell commands through the +// engine with .shell (!!). +#define DEBUG_ENGOPT_DISALLOW_SHELL_COMMANDS 0x00001000 +// Turns on "quiet mode", a somewhat less verbose mode +// of operation supported in the debuggers that were +// superseded by dbgeng.dll. This equates to the KDQUIET +// environment variable. +#define DEBUG_ENGOPT_KD_QUIET_MODE 0x00002000 +// Disables managed code debugging support in the engine. +// If managed support is already in use this flag has no effect. +#define DEBUG_ENGOPT_DISABLE_MANAGED_SUPPORT 0x00004000 +// Disables symbol loading for all modules created +// after this flag is set. +#define DEBUG_ENGOPT_DISABLE_MODULE_SYMBOL_LOAD 0x00008000 +// Disables execution commands. +#define DEBUG_ENGOPT_DISABLE_EXECUTION_COMMANDS 0x00010000 +// Disallows mapping of image files from disk for any use. +// For example, this disallows image mapping for memory +// content when debugging minidumps. +// Does not affect existing mappings, only future attempts. +#define DEBUG_ENGOPT_DISALLOW_IMAGE_FILE_MAPPING 0x00020000 +// Requests that dbgeng run DML-enhanced versions of commands +// and operations by default. +#define DEBUG_ENGOPT_PREFER_DML 0x00040000 +// Explicitly disable SQM upload. +#define DEBUG_ENGOPT_DISABLESQM 0x00080000 +// This is used to disable the source stepping (step over/step in) into CFG code. +#define DEBUG_ENGOPT_DISABLE_STEPLINES_OPTIONS 0x00200000 +// This is used when debugging target with sensitive data. +// It will disable saving dumps during debugging +// Can be set only (no reset once it is set) +#define DEBUG_ENGOPT_DEBUGGING_SENSITIVE_DATA 0x00400000 +// When opening .cab or .zip files, if there is a trace (.run file), open +// it instead of any other dump files in the archive. +#define DEBUG_ENGOPT_PREFER_TRACE_FILES 0x00800000 +// Use suffixes of the form @n (n is a non-negative integer) to disambiguate shadowed variables. +#define DEBUG_ENGOPT_RESOLVE_SHADOWED_VARIABLES 0x01000000 +#define DEBUG_ENGOPT_ALL 0x01EFFFFF + +// General unspecified ID constant. +#define DEBUG_ANY_ID 0xffffffff + +typedef struct _DEBUG_STACK_FRAME +{ + ULONG64 InstructionOffset; + ULONG64 ReturnOffset; + ULONG64 FrameOffset; + ULONG64 StackOffset; + ULONG64 FuncTableEntry; + ULONG64 Params[4]; + ULONG64 Reserved[6]; + BOOL Virtual; + ULONG FrameNumber; +} DEBUG_STACK_FRAME, *PDEBUG_STACK_FRAME; + +#define DBG_FRAME_DEFAULT 0 // the same as INLINE_FRAME_CONTEXT_INIT in dbghelp.h +#define DBG_FRAME_IGNORE_INLINE 0xFFFFFFFF // the same as INLINE_FRAME_CONTEXT_IGNORE in dbghelp.h + +typedef struct _DEBUG_STACK_FRAME_EX +{ + // First DEBUG_STACK_FRAME structure + ULONG64 InstructionOffset; + ULONG64 ReturnOffset; + ULONG64 FrameOffset; + ULONG64 StackOffset; + ULONG64 FuncTableEntry; + ULONG64 Params[4]; + ULONG64 Reserved[6]; + BOOL Virtual; + ULONG FrameNumber; + + // Extended DEBUG_STACK_FRAME fields. + ULONG InlineFrameContext; + ULONG Reserved1; // For alignment purpose. +} DEBUG_STACK_FRAME_EX, *PDEBUG_STACK_FRAME_EX; + +// The types of inline frame context. +#define STACK_FRAME_TYPE_INIT 0x00 +#define STACK_FRAME_TYPE_STACK 0x01 +#define STACK_FRAME_TYPE_INLINE 0x02 +#define STACK_FRAME_TYPE_RA 0x80 // Whether the instruction pointer is the current IP or a RA from callee frame. +#define STACK_FRAME_TYPE_IGNORE 0xFF + +#pragma warning(push) +#pragma warning(disable:4201) // nonstandard extension used : nameless struct + +typedef union _INLINE_FRAME_CONTEXT { + DWORD ContextValue; + struct { + BYTE FrameId; + BYTE FrameType; + WORD FrameSignature; + }; +} INLINE_FRAME_CONTEXT; + +#pragma warning(pop) + +typedef struct _STACK_SRC_INFO +{ + PCWSTR ImagePath; + PCWSTR ModuleName; + PCWSTR Function; + ULONG Displacement; + ULONG Row; + ULONG Column; +} STACK_SRC_INFO, *PSTACK_SRC_INFO; + +typedef struct _STACK_SYM_FRAME_INFO +{ + DEBUG_STACK_FRAME_EX StackFrameEx; + STACK_SRC_INFO SrcInfo; +} STACK_SYM_FRAME_INFO, *PSTACK_SYM_FRAME_INFO; + +// OutputStackTrace flags. +// Display a small number of arguments for each call. +// These may or may not be the actual arguments depending +// on the architecture, particular function and +// point during the execution of the function. +// If the current code level is assembly arguments +// are dumped as hex values. If the code level is +// source the engine attempts to provide symbolic +// argument information. +#define DEBUG_STACK_ARGUMENTS 0x00000001 +// Displays information about the functions +// frame such as __stdcall arguments, FPO +// information and whatever else is available. +#define DEBUG_STACK_FUNCTION_INFO 0x00000002 +// Displays source line information for each +// frame of the stack trace. +#define DEBUG_STACK_SOURCE_LINE 0x00000004 +// Show return, previous frame and other relevant address +// values for each frame. +#define DEBUG_STACK_FRAME_ADDRESSES 0x00000008 +// Show column names. +#define DEBUG_STACK_COLUMN_NAMES 0x00000010 +// Show non-volatile register context for each +// frame. This is only meaningful for some platforms. +#define DEBUG_STACK_NONVOLATILE_REGISTERS 0x00000020 +// Show frame numbers +#define DEBUG_STACK_FRAME_NUMBERS 0x00000040 +// Show typed source parameters. +#define DEBUG_STACK_PARAMETERS 0x00000080 +// Show just return address in stack frame addresses. +#define DEBUG_STACK_FRAME_ADDRESSES_RA_ONLY 0x00000100 +// Show frame-to-frame memory usage. +#define DEBUG_STACK_FRAME_MEMORY_USAGE 0x00000200 +// Show typed source parameters one to a line. +#define DEBUG_STACK_PARAMETERS_NEWLINE 0x00000400 +// Produce stack output enhanced with DML content. +#define DEBUG_STACK_DML 0x00000800 +// Show offset from stack frame +#define DEBUG_STACK_FRAME_OFFSETS 0x00001000 +// The stack trace information is from a stack provider +#define DEBUG_STACK_PROVIDER 0x00002000 +// The architecture of the frame (for mixed architecture stacks) +#define DEBUG_STACK_FRAME_ARCH 0x00004000 + +// Classes of debuggee. Each class +// has different qualifiers for specific +// kinds of debuggees. +#define DEBUG_CLASS_UNINITIALIZED 0 +#define DEBUG_CLASS_KERNEL 1 +#define DEBUG_CLASS_USER_WINDOWS 2 +#define DEBUG_CLASS_IMAGE_FILE 3 + +// Generic dump types. These can be used +// with either user or kernel sessions. +// Session-type-specific aliases are also +// provided. +#define DEBUG_DUMP_SMALL 1024 +#define DEBUG_DUMP_DEFAULT 1025 +#define DEBUG_DUMP_FULL 1026 +#define DEBUG_DUMP_IMAGE_FILE 1027 +#define DEBUG_DUMP_TRACE_LOG 1028 +#define DEBUG_DUMP_WINDOWS_CE 1029 +#define DEBUG_DUMP_ACTIVE 1030 + +// Specific types of kernel debuggees. +#define DEBUG_KERNEL_CONNECTION 0 +#define DEBUG_KERNEL_LOCAL 1 +#define DEBUG_KERNEL_EXDI_DRIVER 2 +#define DEBUG_KERNEL_IDNA 3 +#define DEBUG_KERNEL_INSTALL_DRIVER 4 +#define DEBUG_KERNEL_REPT 5 + +#define DEBUG_KERNEL_SMALL_DUMP DEBUG_DUMP_SMALL +#define DEBUG_KERNEL_DUMP DEBUG_DUMP_DEFAULT +#define DEBUG_KERNEL_ACTIVE_DUMP DEBUG_DUMP_ACTIVE +#define DEBUG_KERNEL_FULL_DUMP DEBUG_DUMP_FULL + +#define DEBUG_KERNEL_TRACE_LOG DEBUG_DUMP_TRACE_LOG + +// Specific types of Windows user debuggees. +#define DEBUG_USER_WINDOWS_PROCESS 0 +#define DEBUG_USER_WINDOWS_PROCESS_SERVER 1 +#define DEBUG_USER_WINDOWS_IDNA 2 +#define DEBUG_USER_WINDOWS_REPT 3 +#define DEBUG_USER_WINDOWS_SMALL_DUMP DEBUG_DUMP_SMALL +#define DEBUG_USER_WINDOWS_DUMP DEBUG_DUMP_DEFAULT +#define DEBUG_USER_WINDOWS_DUMP_WINDOWS_CE DEBUG_DUMP_WINDOWS_CE + +// Extension flags. +#define DEBUG_EXTENSION_AT_ENGINE 0x00000000 + +// Execute and ExecuteCommandFile flags. +// These flags only apply to the command +// text itself; output from the executed +// command is controlled by the output +// control parameter. +// Default execution. Command is logged +// but not output. +#define DEBUG_EXECUTE_DEFAULT 0x00000000 +// Echo commands during execution. In +// ExecuteCommandFile also echoes the prompt +// for each line of the file. +#define DEBUG_EXECUTE_ECHO 0x00000001 +// Do not log or output commands during execution. +// Overridden by DEBUG_EXECUTE_ECHO. +#define DEBUG_EXECUTE_NOT_LOGGED 0x00000002 +// If this flag is not set an empty string +// to Execute will repeat the last Execute +// string. +#define DEBUG_EXECUTE_NO_REPEAT 0x00000004 +// If this flag is set , the source of command +// execution is user typing from remote session. +#define DEBUG_EXECUTE_USER_TYPED 0x00000008 +// If this flag is set , the source of command +// execution is user clicking from remote session. +#define DEBUG_EXECUTE_USER_CLICKED 0x00000010 +// If this flag is set , the source of command +// execution is debugger extension. +#define DEBUG_EXECUTE_EXTENSION 0x00000020 +// If this flag is set , the source of command +// execution is internal command like debugger setup. +#define DEBUG_EXECUTE_INTERNAL 0x00000040 +// If this flag is set , the source of command +// execution is debugger script. +#define DEBUG_EXECUTE_SCRIPT 0x00000080 +// If this flag is set, the source of command +// execution is a toolbar button. +#define DEBUG_EXECUTE_TOOLBAR 0x00000100 +// If this flag is set, the source of command +// execution is a menu item. +#define DEBUG_EXECUTE_MENU 0x00000200 +// If this flag is set, the source of command +// execution is a keyboard shortcut or hotkey. +#define DEBUG_EXECUTE_HOTKEY 0x00000400 +// If this flag is set, the source of command +// execution is a command registered on an event. +#define DEBUG_EXECUTE_EVENT 0x00000800 + +// Specific event filter types. Some event +// filters have optional arguments to further +// qualify their operation. +#define DEBUG_FILTER_CREATE_THREAD 0x00000000 +#define DEBUG_FILTER_EXIT_THREAD 0x00000001 +#define DEBUG_FILTER_CREATE_PROCESS 0x00000002 +#define DEBUG_FILTER_EXIT_PROCESS 0x00000003 +// Argument is the name of a module to break on. +#define DEBUG_FILTER_LOAD_MODULE 0x00000004 +// Argument is the base address of a specific module to break on. +#define DEBUG_FILTER_UNLOAD_MODULE 0x00000005 +#define DEBUG_FILTER_SYSTEM_ERROR 0x00000006 +// Initial breakpoint and initial module load are one-shot +// events that are triggered at the appropriate points in +// the beginning of a session. Their commands are executed +// and then further processing is controlled by the normal +// exception and load module filters. +#define DEBUG_FILTER_INITIAL_BREAKPOINT 0x00000007 +#define DEBUG_FILTER_INITIAL_MODULE_LOAD 0x00000008 +// The debug output filter allows the debugger to stop +// when output is produced so that the code causing +// output can be tracked down or synchronized with. +// This filter is not supported for live dual-machine +// kernel debugging. +#define DEBUG_FILTER_DEBUGGEE_OUTPUT 0x00000009 + +// Event filter execution options. +// Break in always. +#define DEBUG_FILTER_BREAK 0x00000000 +// Break in on second-chance exceptions. For events +// that are not exceptions this is the same as BREAK. +#define DEBUG_FILTER_SECOND_CHANCE_BREAK 0x00000001 +// Output a message about the event but continue. +#define DEBUG_FILTER_OUTPUT 0x00000002 +// Continue the event. +#define DEBUG_FILTER_IGNORE 0x00000003 +// Used to remove general exception filters. +#define DEBUG_FILTER_REMOVE 0x00000004 + +// Event filter continuation options. These options are +// only used when DEBUG_STATUS_GO is used to continue +// execution. If a specific go status such as +// DEBUG_STATUS_GO_NOT_HANDLED is used it controls +// the continuation. +#define DEBUG_FILTER_GO_HANDLED 0x00000000 +#define DEBUG_FILTER_GO_NOT_HANDLED 0x00000001 + +// Specific event filter settings. +typedef struct _DEBUG_SPECIFIC_FILTER_PARAMETERS +{ + ULONG ExecutionOption; + ULONG ContinueOption; + ULONG TextSize; + ULONG CommandSize; + // If ArgumentSize is zero this filter does + // not have an argument. An empty argument for + // a filter which does have an argument will take + // one byte for the terminator. + ULONG ArgumentSize; +} DEBUG_SPECIFIC_FILTER_PARAMETERS, *PDEBUG_SPECIFIC_FILTER_PARAMETERS; + +// Exception event filter settings. +typedef struct _DEBUG_EXCEPTION_FILTER_PARAMETERS +{ + ULONG ExecutionOption; + ULONG ContinueOption; + ULONG TextSize; + ULONG CommandSize; + ULONG SecondCommandSize; + ULONG ExceptionCode; +} DEBUG_EXCEPTION_FILTER_PARAMETERS, *PDEBUG_EXCEPTION_FILTER_PARAMETERS; + +// Wait flags. +#define DEBUG_WAIT_DEFAULT 0x00000000 + +// Last event information structures. +typedef struct _DEBUG_LAST_EVENT_INFO_BREAKPOINT +{ + ULONG Id; +} DEBUG_LAST_EVENT_INFO_BREAKPOINT, *PDEBUG_LAST_EVENT_INFO_BREAKPOINT; + +typedef struct _DEBUG_LAST_EVENT_INFO_EXCEPTION +{ + EXCEPTION_RECORD64 ExceptionRecord; + ULONG FirstChance; +} DEBUG_LAST_EVENT_INFO_EXCEPTION, *PDEBUG_LAST_EVENT_INFO_EXCEPTION; + +typedef struct _DEBUG_LAST_EVENT_INFO_EXIT_THREAD +{ + ULONG ExitCode; +} DEBUG_LAST_EVENT_INFO_EXIT_THREAD, *PDEBUG_LAST_EVENT_INFO_EXIT_THREAD; + +typedef struct _DEBUG_LAST_EVENT_INFO_EXIT_PROCESS +{ + ULONG ExitCode; +} DEBUG_LAST_EVENT_INFO_EXIT_PROCESS, *PDEBUG_LAST_EVENT_INFO_EXIT_PROCESS; + +typedef struct _DEBUG_LAST_EVENT_INFO_LOAD_MODULE +{ + ULONG64 Base; +} DEBUG_LAST_EVENT_INFO_LOAD_MODULE, *PDEBUG_LAST_EVENT_INFO_LOAD_MODULE; + +typedef struct _DEBUG_LAST_EVENT_INFO_UNLOAD_MODULE +{ + ULONG64 Base; +} DEBUG_LAST_EVENT_INFO_UNLOAD_MODULE, *PDEBUG_LAST_EVENT_INFO_UNLOAD_MODULE; + +typedef struct _DEBUG_LAST_EVENT_INFO_SYSTEM_ERROR +{ + ULONG Error; + ULONG Level; +} DEBUG_LAST_EVENT_INFO_SYSTEM_ERROR, *PDEBUG_LAST_EVENT_INFO_SYSTEM_ERROR; + +typedef struct _DEBUG_LAST_EVENT_INFO_SERVICE_EXCEPTION +{ + ULONG Kind; + ULONG DataSize; + ULONG64 Address; + + // + // (Kind) Specific Data... (e.g.: an EXCEPTION_RECORD64 or another definition given by + // a specific platform service) + // +} DEBUG_LAST_EVENT_INFO_SERVICE_EXCEPTION, *PDEBUG_LAST_EVENT_INFO_SERVICE_EXCEPTION; + +// DEBUG_VALUE types. +#define DEBUG_VALUE_INVALID 0 +#define DEBUG_VALUE_INT8 1 +#define DEBUG_VALUE_INT16 2 +#define DEBUG_VALUE_INT32 3 +#define DEBUG_VALUE_INT64 4 +#define DEBUG_VALUE_FLOAT32 5 +#define DEBUG_VALUE_FLOAT64 6 +#define DEBUG_VALUE_FLOAT80 7 +#define DEBUG_VALUE_FLOAT82 8 +#define DEBUG_VALUE_FLOAT128 9 +#define DEBUG_VALUE_VECTOR64 10 +#define DEBUG_VALUE_VECTOR128 11 +// Count of type indices. +#define DEBUG_VALUE_TYPES 12 + +#if defined(_MSC_VER) +#if _MSC_VER >= 800 +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif +#pragma warning(disable:4201) /* Nameless struct/union */ +#endif +#endif + +// We want the DEBUG_VALUE structure to have 8-byte alignment +// and be 32 bytes total. This is tricky because the compiler +// wants to pad the union of values out to a even 8-byte multiple, +// pushing the type out too far. We can't use 4-packing because +// then the 8-byte alignment requirement is lost, so instead +// we shrink the union to 24 bytes and have a reserved field +// before the type field. The same amount of space is available +// and everybody's happy, but the structure is somewhat unusual. + +typedef struct _DEBUG_VALUE +{ + union + { + UCHAR I8; + USHORT I16; + ULONG I32; + struct + { + // Extra NAT indicator for IA64 + // integer registers. NAT will + // always be false for other CPUs. + ULONG64 I64; + BOOL Nat; + }; + float F32; + double F64; + UCHAR F80Bytes[10]; + UCHAR F82Bytes[11]; + UCHAR F128Bytes[16]; + // Vector interpretations. The actual number + // of valid elements depends on the vector length. + UCHAR VI8[16]; + USHORT VI16[8]; + ULONG VI32[4]; + ULONG64 VI64[2]; + float VF32[4]; + double VF64[2]; + struct + { + ULONG LowPart; + ULONG HighPart; + } I64Parts32; + struct + { + ULONG64 LowPart; + LONG64 HighPart; + } F128Parts64; + // Allows raw byte access to content. Array + // can be indexed for as much data as Type + // describes. This array also serves to pad + // the structure out to 32 bytes and reserves + // space for future members. + UCHAR RawBytes[24]; + }; + ULONG TailOfRawBytes; + ULONG Type; +} DEBUG_VALUE, *PDEBUG_VALUE; + +#if defined(_MSC_VER) +#if _MSC_VER >= 800 +#if _MSC_VER >= 1200 +#pragma warning(pop) +#else +#pragma warning(default:4201) /* Nameless struct/union */ +#endif +#endif +#endif + +#undef INTERFACE +#define INTERFACE IDebugControl +DECLARE_INTERFACE_(IDebugControl, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugControl. + + // Checks for a user interrupt, such a Ctrl-C + // or stop button. + // This method is reentrant. + STDMETHOD(GetInterrupt)( + THIS + ) PURE; + // Registers a user interrupt. + // This method is reentrant. + STDMETHOD(SetInterrupt)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Interrupting a user-mode process requires + // access to some system resources that the + // process may hold itself, preventing the + // interrupt from occurring. The engine + // will time-out pending interrupt requests + // and simulate an interrupt if necessary. + // These methods control the interrupt timeout. + STDMETHOD(GetInterruptTimeout)( + THIS_ + _Out_ PULONG Seconds + ) PURE; + STDMETHOD(SetInterruptTimeout)( + THIS_ + _In_ ULONG Seconds + ) PURE; + + STDMETHOD(GetLogFile)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + // Opens a log file which collects all + // output. Output from every client except + // those that explicitly disable logging + // goes into the log. + // Opening a log file closes any log file + // already open. + STDMETHOD(OpenLogFile)( + THIS_ + _In_ PCSTR File, + _In_ BOOL Append + ) PURE; + STDMETHOD(CloseLogFile)( + THIS + ) PURE; + // Controls what output is logged. + STDMETHOD(GetLogMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetLogMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + + // Input requests input from all clients. + // The first input that is returned is used + // to satisfy the call. Other returned + // input is discarded. + STDMETHOD(Input)( + THIS_ + _Out_writes_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + // This method is used by clients to return + // input when it is available. It will + // return S_OK if the input is used to + // satisfy an Input call and S_FALSE if + // the input is ignored. + // This method is reentrant. + STDMETHOD(ReturnInput)( + THIS_ + _In_ PCSTR Buffer + ) PURE; + + // Sends output through clients + // output callbacks if the mask is allowed + // by the current output control mask and + // according to the output distribution + // settings. + STDMETHODV(Output)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaList)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + // The following methods allow direct control + // over the distribution of the given output + // for situations where something other than + // the default is desired. These methods require + // extra work in the engine so they should + // only be used when necessary. + STDMETHODV(ControlledOutput)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + + // Displays the standard command-line prompt + // followed by the given output. If Format + // is NULL no additional output is produced. + // Output is produced under the + // DEBUG_OUTPUT_PROMPT mask. + // This method only outputs the prompt; it + // does not get input. + STDMETHODV(OutputPrompt)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + _In_ va_list Args + ) PURE; + // Gets the text that would be displayed by OutputPrompt. + STDMETHOD(GetPromptText)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // Outputs information about the current + // debuggee state such as a register + // summary, disassembly at the current PC, + // closest symbol and others. + // Uses the line prefix. + STDMETHOD(OutputCurrentState)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // Outputs the debugger and extension version + // information. This method is reentrant. + // Uses the line prefix. + STDMETHOD(OutputVersionInformation)( + THIS_ + _In_ ULONG OutputControl + ) PURE; + + // In user-mode debugging sessions the + // engine will set an event when + // exceptions are continued. This can + // be used to synchronize other processes + // with the debuggers handling of events. + // For example, this is used to support + // the e argument to ntsd. + STDMETHOD(GetNotifyEventHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(SetNotifyEventHandle)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Assemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(Disassemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + // Returns the value of the effective address + // computed for the last Disassemble, if there + // was one. + STDMETHOD(GetDisassembleEffectiveOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Uses the line prefix if necessary. + STDMETHOD(OutputDisassembly)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_ PULONG64 EndOffset + ) PURE; + // Produces multiple lines of disassembly output. + // There will be PreviousLines of disassembly before + // the given offset if a valid disassembly exists. + // In all, there will be TotalLines of output produced. + // The first and last line offsets are returned + // specially and all lines offsets can be retrieved + // through LineOffsets. LineOffsets will contain + // offsets for each line where disassembly started. + // When disassembly of a single instruction takes + // multiple lines the initial offset will be followed + // by DEBUG_INVALID_OFFSET. + // Uses the line prefix. + STDMETHOD(OutputDisassemblyLines)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG PreviousLines, + _In_ ULONG TotalLines, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_opt_ PULONG OffsetLine, + _Out_opt_ PULONG64 StartOffset, + _Out_opt_ PULONG64 EndOffset, + _Out_writes_opt_(TotalLines) PULONG64 LineOffsets + ) PURE; + // Returns the offset of the start of + // the instruction thats the given + // delta away from the instruction + // at the initial offset. + // This routine does not check for + // validity of the instruction or + // the memory containing it. + STDMETHOD(GetNearInstruction)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_ PULONG64 NearOffset + ) PURE; + + // Offsets can be passed in as zero to use the current + // thread state. + STDMETHOD(GetStackTrace)( + THIS_ + _In_ ULONG64 FrameOffset, + _In_ ULONG64 StackOffset, + _In_ ULONG64 InstructionOffset, + _Out_writes_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_opt_ PULONG FramesFilled + ) PURE; + // Does a simple stack trace to determine + // what the current return address is. + STDMETHOD(GetReturnOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // If Frames is NULL OutputStackTrace will + // use GetStackTrace to get FramesSize frames + // and then output them. The current register + // values for frame, stack and instruction offsets + // are used. + // Uses the line prefix. + STDMETHOD(OutputStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_opt_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_ ULONG Flags + ) PURE; + + // Returns information about the debuggee such + // as user vs. kernel, dump vs. live, etc. + STDMETHOD(GetDebuggeeType)( + THIS_ + _Out_ PULONG Class, + _Out_ PULONG Qualifier + ) PURE; + // Returns the type of physical processors in + // the machine. + // Returns one of the IMAGE_FILE_MACHINE values. + STDMETHOD(GetActualProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Returns the type of processor used in the + // current processor context. + STDMETHOD(GetExecutingProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Query all the possible processor types that + // may be encountered during this debug session. + STDMETHOD(GetNumberPossibleExecutingProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetPossibleExecutingProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Get the number of actual processors in + // the machine. + STDMETHOD(GetNumberProcessors)( + THIS_ + _Out_ PULONG Number + ) PURE; + // PlatformId is one of the VER_PLATFORM values. + // Major and minor are as given in the NT + // kernel debugger protocol. + // ServicePackString and ServicePackNumber indicate the + // system service pack level. ServicePackNumber is not + // available in some sessions where the service pack level + // is only expressed as a string. The service pack information + // will be empty if the system does not have a service pack + // applied. + // The build string is string information identifying the + // particular build of the system. The build string is + // empty if the system has no particular identifying + // information. + STDMETHOD(GetSystemVersion)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Major, + _Out_ PULONG Minor, + _Out_writes_opt_(ServicePackStringSize) PSTR ServicePackString, + _In_ ULONG ServicePackStringSize, + _Out_opt_ PULONG ServicePackStringUsed, + _Out_ PULONG ServicePackNumber, + _Out_writes_opt_(BuildStringSize) PSTR BuildString, + _In_ ULONG BuildStringSize, + _Out_opt_ PULONG BuildStringUsed + ) PURE; + // Returns the page size for the currently executing + // processor context. The page size may vary between + // processor types. + STDMETHOD(GetPageSize)( + THIS_ + _Out_ PULONG Size + ) PURE; + // Returns S_OK if the current processor context uses + // 64-bit addresses, otherwise S_FALSE. + STDMETHOD(IsPointer64Bit)( + THIS + ) PURE; + // Reads the bugcheck data area and returns the + // current contents. This method only works + // in kernel debugging sessions. + STDMETHOD(ReadBugCheckData)( + THIS_ + _Out_ PULONG Code, + _Out_ PULONG64 Arg1, + _Out_ PULONG64 Arg2, + _Out_ PULONG64 Arg3, + _Out_ PULONG64 Arg4 + ) PURE; + + // Query all the processor types supported by + // the engine. This is a complete list and is + // not related to the machine running the engine + // or the debuggee. + STDMETHOD(GetNumberSupportedProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetSupportedProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Returns a full, descriptive name and an + // abbreviated name for a processor type. + STDMETHOD(GetProcessorTypeNames)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // Gets and sets the type of processor to + // use when doing things like setting + // breakpoints, accessing registers, + // getting stack traces and so on. + STDMETHOD(GetEffectiveProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + STDMETHOD(SetEffectiveProcessorType)( + THIS_ + _In_ ULONG Type + ) PURE; + + // Returns information about whether and how + // the debuggee is running. Status will + // be GO if the debuggee is running and + // BREAK if it isnt. + // If no debuggee exists the status is + // NO_DEBUGGEE. + // This method is reentrant. + STDMETHOD(GetExecutionStatus)( + THIS_ + _Out_ PULONG Status + ) PURE; + // Changes the execution status of the + // engine from stopped to running. + // Status must be one of the go or step + // status values. + STDMETHOD(SetExecutionStatus)( + THIS_ + _In_ ULONG Status + ) PURE; + + // Controls what code interpretation level the debugger + // runs at. The debugger checks the code level when + // deciding whether to step by a source line or + // assembly instruction along with other related operations. + STDMETHOD(GetCodeLevel)( + THIS_ + _Out_ PULONG Level + ) PURE; + STDMETHOD(SetCodeLevel)( + THIS_ + _In_ ULONG Level + ) PURE; + + // Gets and sets engine control flags. + // These methods are reentrant. + STDMETHOD(GetEngineOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Gets and sets control values for + // handling system error events. + // If the system error level is less + // than or equal to the given levels + // the error may be displayed and + // the default break for the event + // may be set. + STDMETHOD(GetSystemErrorControl)( + THIS_ + _Out_ PULONG OutputLevel, + _Out_ PULONG BreakLevel + ) PURE; + STDMETHOD(SetSystemErrorControl)( + THIS_ + _In_ ULONG OutputLevel, + _In_ ULONG BreakLevel + ) PURE; + + // The command processor supports simple + // string replacement macros in Evaluate and + // Execute. There are currently ten macro + // slots available. Slots 0-9 map to + // the command invocations $u0-$u9. + STDMETHOD(GetTextMacro)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacro)( + THIS_ + _In_ ULONG Slot, + _In_ PCSTR Macro + ) PURE; + + // Controls the default number radix used + // in expressions and commands. + STDMETHOD(GetRadix)( + THIS_ + _Out_ PULONG Radix + ) PURE; + STDMETHOD(SetRadix)( + THIS_ + _In_ ULONG Radix + ) PURE; + + // Evaluates the given expression string and + // returns the resulting value. + // If DesiredType is DEBUG_VALUE_INVALID then + // the natural type is used. + // RemainderIndex, if provided, is set to the index + // of the first character in the input string that was + // not used when evaluating the expression. + STDMETHOD(Evaluate)( + THIS_ + _In_ PCSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + // Attempts to convert the input value to a value + // of the requested type in the output value. + // Conversions can fail if no conversion exists. + // Successful conversions may be lossy. + STDMETHOD(CoerceValue)( + THIS_ + _In_ PDEBUG_VALUE In, + _In_ ULONG OutType, + _Out_ PDEBUG_VALUE Out + ) PURE; + STDMETHOD(CoerceValues)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_VALUE In, + _In_reads_(Count) PULONG OutTypes, + _Out_writes_(Count) PDEBUG_VALUE Out + ) PURE; + + // Executes the given command string. + // If the string has multiple commands + // Execute will not return until all + // of them have been executed. If this + // requires waiting for the debuggee to + // execute an internal wait will be done + // so Execute can take an arbitrary amount + // of time. + STDMETHOD(Execute)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Command, + _In_ ULONG Flags + ) PURE; + // Executes the given command file by + // reading a line at a time and processing + // it with Execute. + STDMETHOD(ExecuteCommandFile)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + // Breakpoint interfaces are described + // elsewhere in this section. + STDMETHOD(GetNumberBreakpoints)( + THIS_ + _Out_ PULONG Number + ) PURE; + // It is possible for this retrieval function to + // fail even with an index within the number of + // existing breakpoints if the breakpoint is + // a private breakpoint. + STDMETHOD(GetBreakpointByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + STDMETHOD(GetBreakpointById)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // If Ids is non-NULL the Count breakpoints + // referred to in the Ids array are returned, + // otherwise breakpoints from index Start to + // Start + Count 1 are returned. + STDMETHOD(GetBreakpointParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Ids, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_BREAKPOINT_PARAMETERS Params + ) PURE; + // Breakpoints are created empty and disabled. + // When their parameters have been set they + // should be enabled by setting the ENABLE flag. + // If DesiredId is DEBUG_ANY_ID then the + // engine picks an unused ID. If DesiredId + // is any other number the engine attempts + // to use the given ID for the breakpoint. + // If another breakpoint exists with that ID + // the call will fail. + STDMETHOD(AddBreakpoint)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // Breakpoint interface is invalid after this call. + STDMETHOD(RemoveBreakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT Bp + ) PURE; + + // Control and use extension DLLs. + STDMETHOD(AddExtension)( + THIS_ + _In_ PCSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(RemoveExtension)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPath)( + THIS_ + _In_ PCSTR Path, + _Out_ PULONG64 Handle + ) PURE; + // If Handle is zero the extension + // chain is walked searching for the + // function. + STDMETHOD(CallExtension)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR Function, + _In_opt_ PCSTR Arguments + ) PURE; + // GetExtensionFunction works like + // GetProcAddress on extension DLLs + // to allow raw function-call-level + // interaction with extension DLLs. + // Such functions do not need to + // follow the standard extension prototype + // if they are not going to be called + // through the text extension interface. + // _EFN_ is automatically prepended to + // the name string given. + // This function cannot be called remotely. + STDMETHOD(GetExtensionFunction)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + // These methods return alternate + // extension interfaces in order to allow + // interface-style extension DLLs to mix in + // older extension calls. + // Structure sizes must be initialized before + // the call. + // These methods cannot be called remotely. + STDMETHOD(GetWindbgExtensionApis32)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS32 Api + ) PURE; + STDMETHOD(GetWindbgExtensionApis64)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS64 Api + ) PURE; + + // The engine provides a simple mechanism + // to filter common events. Arbitrarily complicated + // filtering can be done by registering event callbacks + // but simple event filtering only requires + // setting the options of one of the predefined + // event filters. + // Simple event filters are either for specific + // events and therefore have an enumerant or + // they are for an exception and are based on + // the exceptions code. Exception filters + // are further divided into exceptions specially + // handled by the engine, which is a fixed set, + // and arbitrary exceptions. + // All three groups of filters are indexed together + // with the specific filters first, then the specific + // exception filters and finally the arbitrary + // exception filters. + // The first specific exception is the default + // exception. If an exception event occurs for + // an exception without settings the default + // exception settings are used. + STDMETHOD(GetNumberEventFilters)( + THIS_ + _Out_ PULONG SpecificEvents, + _Out_ PULONG SpecificExceptions, + _Out_ PULONG ArbitraryExceptions + ) PURE; + // Some filters have descriptive text associated with them. + STDMETHOD(GetEventFilterText)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // All filters support executing a command when the + // event occurs. + STDMETHOD(GetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + STDMETHOD(SetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + // Some specific filters have arguments to further + // qualify their operation. + STDMETHOD(GetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Argument + ) PURE; + // If Codes is non-NULL Start is ignored. + STDMETHOD(GetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Codes, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // The codes in the parameter data control the application + // of the parameter data. If a code is not already in + // the set of filters it is added. If the ExecutionOption + // for a code is REMOVE then the filter is removed. + // Specific exception filters cannot be removed. + STDMETHOD(SetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // Exception filters support an additional command for + // second-chance events. + STDMETHOD(GetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + + // Yields processing to the engine until + // an event occurs. This method may + // only be called by the thread that started + // the debug session. + // When an event occurs the engine carries + // out all event processing such as calling + // callbacks. + // If the callbacks indicate that execution should + // break the wait will return, otherwise it + // goes back to waiting for a new event. + // If the timeout expires, S_FALSE is returned. + // The timeout is not currently supported for + // kernel debugging. + STDMETHOD(WaitForEvent)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG Timeout + ) PURE; + + // Retrieves information about the last event that occurred. + // EventType is one of the event callback mask bits. + // ExtraInformation contains additional event-specific + // information. Not all events have additional information. + STDMETHOD(GetLastEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; +}; + +// OutputTextReplacements flags. +#define DEBUG_OUT_TEXT_REPL_DEFAULT 0x00000000 + +#undef INTERFACE +#define INTERFACE IDebugControl2 +DECLARE_INTERFACE_(IDebugControl2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugControl. + + // Checks for a user interrupt, such a Ctrl-C + // or stop button. + // This method is reentrant. + STDMETHOD(GetInterrupt)( + THIS + ) PURE; + // Registers a user interrupt. + // This method is reentrant. + STDMETHOD(SetInterrupt)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Interrupting a user-mode process requires + // access to some system resources that the + // process may hold itself, preventing the + // interrupt from occurring. The engine + // will time-out pending interrupt requests + // and simulate an interrupt if necessary. + // These methods control the interrupt timeout. + STDMETHOD(GetInterruptTimeout)( + THIS_ + _Out_ PULONG Seconds + ) PURE; + STDMETHOD(SetInterruptTimeout)( + THIS_ + _In_ ULONG Seconds + ) PURE; + + STDMETHOD(GetLogFile)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + // Opens a log file which collects all + // output. Output from every client except + // those that explicitly disable logging + // goes into the log. + // Opening a log file closes any log file + // already open. + STDMETHOD(OpenLogFile)( + THIS_ + _In_ PCSTR File, + _In_ BOOL Append + ) PURE; + STDMETHOD(CloseLogFile)( + THIS + ) PURE; + // Controls what output is logged. + STDMETHOD(GetLogMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetLogMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + + // Input requests input from all clients. + // The first input that is returned is used + // to satisfy the call. Other returned + // input is discarded. + STDMETHOD(Input)( + THIS_ + _Out_writes_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + // This method is used by clients to return + // input when it is available. It will + // return S_OK if the input is used to + // satisfy an Input call and S_FALSE if + // the input is ignored. + // This method is reentrant. + STDMETHOD(ReturnInput)( + THIS_ + _In_ PCSTR Buffer + ) PURE; + + // Sends output through clients + // output callbacks if the mask is allowed + // by the current output control mask and + // according to the output distribution + // settings. + STDMETHODV(Output)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaList)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + // The following methods allow direct control + // over the distribution of the given output + // for situations where something other than + // the default is desired. These methods require + // extra work in the engine so they should + // only be used when necessary. + STDMETHODV(ControlledOutput)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + + // Displays the standard command-line prompt + // followed by the given output. If Format + // is NULL no additional output is produced. + // Output is produced under the + // DEBUG_OUTPUT_PROMPT mask. + // This method only outputs the prompt; it + // does not get input. + STDMETHODV(OutputPrompt)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + _In_ va_list Args + ) PURE; + // Gets the text that would be displayed by OutputPrompt. + STDMETHOD(GetPromptText)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // Outputs information about the current + // debuggee state such as a register + // summary, disassembly at the current PC, + // closest symbol and others. + // Uses the line prefix. + STDMETHOD(OutputCurrentState)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // Outputs the debugger and extension version + // information. This method is reentrant. + // Uses the line prefix. + STDMETHOD(OutputVersionInformation)( + THIS_ + _In_ ULONG OutputControl + ) PURE; + + // In user-mode debugging sessions the + // engine will set an event when + // exceptions are continued. This can + // be used to synchronize other processes + // with the debuggers handling of events. + // For example, this is used to support + // the e argument to ntsd. + STDMETHOD(GetNotifyEventHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(SetNotifyEventHandle)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Assemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(Disassemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + // Returns the value of the effective address + // computed for the last Disassemble, if there + // was one. + STDMETHOD(GetDisassembleEffectiveOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Uses the line prefix if necessary. + STDMETHOD(OutputDisassembly)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_ PULONG64 EndOffset + ) PURE; + // Produces multiple lines of disassembly output. + // There will be PreviousLines of disassembly before + // the given offset if a valid disassembly exists. + // In all, there will be TotalLines of output produced. + // The first and last line offsets are returned + // specially and all lines offsets can be retrieved + // through LineOffsets. LineOffsets will contain + // offsets for each line where disassembly started. + // When disassembly of a single instruction takes + // multiple lines the initial offset will be followed + // by DEBUG_INVALID_OFFSET. + // Uses the line prefix. + STDMETHOD(OutputDisassemblyLines)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG PreviousLines, + _In_ ULONG TotalLines, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_opt_ PULONG OffsetLine, + _Out_opt_ PULONG64 StartOffset, + _Out_opt_ PULONG64 EndOffset, + _Out_writes_opt_(TotalLines) PULONG64 LineOffsets + ) PURE; + // Returns the offset of the start of + // the instruction thats the given + // delta away from the instruction + // at the initial offset. + // This routine does not check for + // validity of the instruction or + // the memory containing it. + STDMETHOD(GetNearInstruction)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_ PULONG64 NearOffset + ) PURE; + + // Offsets can be passed in as zero to use the current + // thread state. + STDMETHOD(GetStackTrace)( + THIS_ + _In_ ULONG64 FrameOffset, + _In_ ULONG64 StackOffset, + _In_ ULONG64 InstructionOffset, + _Out_writes_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_opt_ PULONG FramesFilled + ) PURE; + // Does a simple stack trace to determine + // what the current return address is. + STDMETHOD(GetReturnOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // If Frames is NULL OutputStackTrace will + // use GetStackTrace to get FramesSize frames + // and then output them. The current register + // values for frame, stack and instruction offsets + // are used. + // Uses the line prefix. + STDMETHOD(OutputStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_opt_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_ ULONG Flags + ) PURE; + + // Returns information about the debuggee such + // as user vs. kernel, dump vs. live, etc. + STDMETHOD(GetDebuggeeType)( + THIS_ + _Out_ PULONG Class, + _Out_ PULONG Qualifier + ) PURE; + // Returns the type of physical processors in + // the machine. + // Returns one of the IMAGE_FILE_MACHINE values. + STDMETHOD(GetActualProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Returns the type of processor used in the + // current processor context. + STDMETHOD(GetExecutingProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Query all the possible processor types that + // may be encountered during this debug session. + STDMETHOD(GetNumberPossibleExecutingProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetPossibleExecutingProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Get the number of actual processors in + // the machine. + STDMETHOD(GetNumberProcessors)( + THIS_ + _Out_ PULONG Number + ) PURE; + // PlatformId is one of the VER_PLATFORM values. + // Major and minor are as given in the NT + // kernel debugger protocol. + // ServicePackString and ServicePackNumber indicate the + // system service pack level. ServicePackNumber is not + // available in some sessions where the service pack level + // is only expressed as a string. The service pack information + // will be empty if the system does not have a service pack + // applied. + // The build string is string information identifying the + // particular build of the system. The build string is + // empty if the system has no particular identifying + // information. + STDMETHOD(GetSystemVersion)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Major, + _Out_ PULONG Minor, + _Out_writes_opt_(ServicePackStringSize) PSTR ServicePackString, + _In_ ULONG ServicePackStringSize, + _Out_opt_ PULONG ServicePackStringUsed, + _Out_ PULONG ServicePackNumber, + _Out_writes_opt_(BuildStringSize) PSTR BuildString, + _In_ ULONG BuildStringSize, + _Out_opt_ PULONG BuildStringUsed + ) PURE; + // Returns the page size for the currently executing + // processor context. The page size may vary between + // processor types. + STDMETHOD(GetPageSize)( + THIS_ + _Out_ PULONG Size + ) PURE; + // Returns S_OK if the current processor context uses + // 64-bit addresses, otherwise S_FALSE. + STDMETHOD(IsPointer64Bit)( + THIS + ) PURE; + // Reads the bugcheck data area and returns the + // current contents. This method only works + // in kernel debugging sessions. + STDMETHOD(ReadBugCheckData)( + THIS_ + _Out_ PULONG Code, + _Out_ PULONG64 Arg1, + _Out_ PULONG64 Arg2, + _Out_ PULONG64 Arg3, + _Out_ PULONG64 Arg4 + ) PURE; + + // Query all the processor types supported by + // the engine. This is a complete list and is + // not related to the machine running the engine + // or the debuggee. + STDMETHOD(GetNumberSupportedProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetSupportedProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Returns a full, descriptive name and an + // abbreviated name for a processor type. + STDMETHOD(GetProcessorTypeNames)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // Gets and sets the type of processor to + // use when doing things like setting + // breakpoints, accessing registers, + // getting stack traces and so on. + STDMETHOD(GetEffectiveProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + STDMETHOD(SetEffectiveProcessorType)( + THIS_ + _In_ ULONG Type + ) PURE; + + // Returns information about whether and how + // the debuggee is running. Status will + // be GO if the debuggee is running and + // BREAK if it isnt. + // If no debuggee exists the status is + // NO_DEBUGGEE. + // This method is reentrant. + STDMETHOD(GetExecutionStatus)( + THIS_ + _Out_ PULONG Status + ) PURE; + // Changes the execution status of the + // engine from stopped to running. + // Status must be one of the go or step + // status values. + STDMETHOD(SetExecutionStatus)( + THIS_ + _In_ ULONG Status + ) PURE; + + // Controls what code interpretation level the debugger + // runs at. The debugger checks the code level when + // deciding whether to step by a source line or + // assembly instruction along with other related operations. + STDMETHOD(GetCodeLevel)( + THIS_ + _Out_ PULONG Level + ) PURE; + STDMETHOD(SetCodeLevel)( + THIS_ + _In_ ULONG Level + ) PURE; + + // Gets and sets engine control flags. + // These methods are reentrant. + STDMETHOD(GetEngineOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Gets and sets control values for + // handling system error events. + // If the system error level is less + // than or equal to the given levels + // the error may be displayed and + // the default break for the event + // may be set. + STDMETHOD(GetSystemErrorControl)( + THIS_ + _Out_ PULONG OutputLevel, + _Out_ PULONG BreakLevel + ) PURE; + STDMETHOD(SetSystemErrorControl)( + THIS_ + _In_ ULONG OutputLevel, + _In_ ULONG BreakLevel + ) PURE; + + // The command processor supports simple + // string replacement macros in Evaluate and + // Execute. There are currently ten macro + // slots available. Slots 0-9 map to + // the command invocations $u0-$u9. + STDMETHOD(GetTextMacro)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacro)( + THIS_ + _In_ ULONG Slot, + _In_ PCSTR Macro + ) PURE; + + // Controls the default number radix used + // in expressions and commands. + STDMETHOD(GetRadix)( + THIS_ + _Out_ PULONG Radix + ) PURE; + STDMETHOD(SetRadix)( + THIS_ + _In_ ULONG Radix + ) PURE; + + // Evaluates the given expression string and + // returns the resulting value. + // If DesiredType is DEBUG_VALUE_INVALID then + // the natural type is used. + // RemainderIndex, if provided, is set to the index + // of the first character in the input string that was + // not used when evaluating the expression. + STDMETHOD(Evaluate)( + THIS_ + _In_ PCSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + // Attempts to convert the input value to a value + // of the requested type in the output value. + // Conversions can fail if no conversion exists. + // Successful conversions may be lossy. + STDMETHOD(CoerceValue)( + THIS_ + _In_ PDEBUG_VALUE In, + _In_ ULONG OutType, + _Out_ PDEBUG_VALUE Out + ) PURE; + STDMETHOD(CoerceValues)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_VALUE In, + _In_reads_(Count) PULONG OutTypes, + _Out_writes_(Count) PDEBUG_VALUE Out + ) PURE; + + // Executes the given command string. + // If the string has multiple commands + // Execute will not return until all + // of them have been executed. If this + // requires waiting for the debuggee to + // execute an internal wait will be done + // so Execute can take an arbitrary amount + // of time. + STDMETHOD(Execute)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Command, + _In_ ULONG Flags + ) PURE; + // Executes the given command file by + // reading a line at a time and processing + // it with Execute. + STDMETHOD(ExecuteCommandFile)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + // Breakpoint interfaces are described + // elsewhere in this section. + STDMETHOD(GetNumberBreakpoints)( + THIS_ + _Out_ PULONG Number + ) PURE; + // It is possible for this retrieval function to + // fail even with an index within the number of + // existing breakpoints if the breakpoint is + // a private breakpoint. + STDMETHOD(GetBreakpointByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + STDMETHOD(GetBreakpointById)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // If Ids is non-NULL the Count breakpoints + // referred to in the Ids array are returned, + // otherwise breakpoints from index Start to + // Start + Count 1 are returned. + STDMETHOD(GetBreakpointParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Ids, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_BREAKPOINT_PARAMETERS Params + ) PURE; + // Breakpoints are created empty and disabled. + // When their parameters have been set they + // should be enabled by setting the ENABLE flag. + // If DesiredId is DEBUG_ANY_ID then the + // engine picks an unused ID. If DesiredId + // is any other number the engine attempts + // to use the given ID for the breakpoint. + // If another breakpoint exists with that ID + // the call will fail. + STDMETHOD(AddBreakpoint)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // Breakpoint interface is invalid after this call. + STDMETHOD(RemoveBreakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT Bp + ) PURE; + + // Control and use extension DLLs. + STDMETHOD(AddExtension)( + THIS_ + _In_ PCSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(RemoveExtension)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPath)( + THIS_ + _In_ PCSTR Path, + _Out_ PULONG64 Handle + ) PURE; + // If Handle is zero the extension + // chain is walked searching for the + // function. + STDMETHOD(CallExtension)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR Function, + _In_opt_ PCSTR Arguments + ) PURE; + // GetExtensionFunction works like + // GetProcAddress on extension DLLs + // to allow raw function-call-level + // interaction with extension DLLs. + // Such functions do not need to + // follow the standard extension prototype + // if they are not going to be called + // through the text extension interface. + // This function cannot be called remotely. + STDMETHOD(GetExtensionFunction)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + // These methods return alternate + // extension interfaces in order to allow + // interface-style extension DLLs to mix in + // older extension calls. + // Structure sizes must be initialized before + // the call. + // These methods cannot be called remotely. + STDMETHOD(GetWindbgExtensionApis32)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS32 Api + ) PURE; + STDMETHOD(GetWindbgExtensionApis64)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS64 Api + ) PURE; + + // The engine provides a simple mechanism + // to filter common events. Arbitrarily complicated + // filtering can be done by registering event callbacks + // but simple event filtering only requires + // setting the options of one of the predefined + // event filters. + // Simple event filters are either for specific + // events and therefore have an enumerant or + // they are for an exception and are based on + // the exceptions code. Exception filters + // are further divided into exceptions specially + // handled by the engine, which is a fixed set, + // and arbitrary exceptions. + // All three groups of filters are indexed together + // with the specific filters first, then the specific + // exception filters and finally the arbitrary + // exception filters. + // The first specific exception is the default + // exception. If an exception event occurs for + // an exception without settings the default + // exception settings are used. + STDMETHOD(GetNumberEventFilters)( + THIS_ + _Out_ PULONG SpecificEvents, + _Out_ PULONG SpecificExceptions, + _Out_ PULONG ArbitraryExceptions + ) PURE; + // Some filters have descriptive text associated with them. + STDMETHOD(GetEventFilterText)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // All filters support executing a command when the + // event occurs. + STDMETHOD(GetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + STDMETHOD(SetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + // Some specific filters have arguments to further + // qualify their operation. + STDMETHOD(GetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Argument + ) PURE; + // If Codes is non-NULL Start is ignored. + STDMETHOD(GetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Codes, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // The codes in the parameter data control the application + // of the parameter data. If a code is not already in + // the set of filters it is added. If the ExecutionOption + // for a code is REMOVE then the filter is removed. + // Specific exception filters cannot be removed. + STDMETHOD(SetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // Exception filters support an additional command for + // second-chance events. + STDMETHOD(GetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + + // Yields processing to the engine until + // an event occurs. This method may + // only be called by the thread that started + // the debug session. + // When an event occurs the engine carries + // out all event processing such as calling + // callbacks. + // If the callbacks indicate that execution should + // break the wait will return, otherwise it + // goes back to waiting for a new event. + // If the timeout expires, S_FALSE is returned. + // The timeout is not currently supported for + // kernel debugging. + STDMETHOD(WaitForEvent)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG Timeout + ) PURE; + + // Retrieves information about the last event that occurred. + // EventType is one of the event callback mask bits. + // ExtraInformation contains additional event-specific + // information. Not all events have additional information. + STDMETHOD(GetLastEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; + + // IDebugControl2. + + STDMETHOD(GetCurrentTimeDate)( + THIS_ + _Out_ PULONG TimeDate + ) PURE; + // Retrieves the number of seconds since the + // machine started running. + STDMETHOD(GetCurrentSystemUpTime)( + THIS_ + _Out_ PULONG UpTime + ) PURE; + + // If the current session is a dump session, + // retrieves any extended format information. + STDMETHOD(GetDumpFormatFlags)( + THIS_ + _Out_ PULONG FormatFlags + ) PURE; + + // The debugger has been enhanced to allow + // arbitrary text replacements in addition + // to the simple $u0-$u9 text macros. + // Text replacement takes a given source + // text in commands and converts it to the + // given destination text. Replacements + // are named by their source text so that + // only one replacement for a source text + // string can exist. + STDMETHOD(GetNumberTextReplacements)( + THIS_ + _Out_ PULONG NumRepl + ) PURE; + // If SrcText is non-NULL the replacement + // is looked up by source text, otherwise + // Index is used to get the Nth replacement. + STDMETHOD(GetTextReplacement)( + THIS_ + _In_opt_ PCSTR SrcText, + _In_ ULONG Index, + _Out_writes_opt_(SrcBufferSize) PSTR SrcBuffer, + _In_ ULONG SrcBufferSize, + _Out_opt_ PULONG SrcSize, + _Out_writes_opt_(DstBufferSize) PSTR DstBuffer, + _In_ ULONG DstBufferSize, + _Out_opt_ PULONG DstSize + ) PURE; + // Setting the destination text to + // NULL removes the alias. + STDMETHOD(SetTextReplacement)( + THIS_ + _In_ PCSTR SrcText, + _In_opt_ PCSTR DstText + ) PURE; + STDMETHOD(RemoveTextReplacements)( + THIS + ) PURE; + // Outputs the complete list of current + // replacements. + STDMETHOD(OutputTextReplacements)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; +}; + +// +// Assembly/disassembly options. +// +// The specific effects of these flags varies depending +// on the particular instruction set. +// + +#define DEBUG_ASMOPT_DEFAULT 0x00000000 +// Display additional information in disassembly. +#define DEBUG_ASMOPT_VERBOSE 0x00000001 +// Do not display raw code bytes in disassembly. +#define DEBUG_ASMOPT_NO_CODE_BYTES 0x00000002 +// Do not take the output width into account when +// formatting disassembly. +#define DEBUG_ASMOPT_IGNORE_OUTPUT_WIDTH 0x00000004 +// Display source file line number before each line if available. +#define DEBUG_ASMOPT_SOURCE_LINE_NUMBER 0x00000008 + +// +// Expression syntax options. +// + +// MASM-style expression evaluation. +#define DEBUG_EXPR_MASM 0x00000000 +// C++-style expression evaluation. +#define DEBUG_EXPR_CPLUSPLUS 0x00000001 + +// +// Event index description information. +// + +#define DEBUG_EINDEX_NAME 0x00000000 + +// +// SetNextEventIndex relation options. +// + +// Value increases forward from the first index. +#define DEBUG_EINDEX_FROM_START 0x00000000 +// Value increases backwards from the last index. +#define DEBUG_EINDEX_FROM_END 0x00000001 +// Value is a signed delta from the current index. +#define DEBUG_EINDEX_FROM_CURRENT 0x00000002 + +#undef INTERFACE +#define INTERFACE IDebugControl3 +DECLARE_INTERFACE_(IDebugControl3, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugControl. + + // Checks for a user interrupt, such a Ctrl-C + // or stop button. + // This method is reentrant. + STDMETHOD(GetInterrupt)( + THIS + ) PURE; + // Registers a user interrupt. + // This method is reentrant. + STDMETHOD(SetInterrupt)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Interrupting a user-mode process requires + // access to some system resources that the + // process may hold itself, preventing the + // interrupt from occurring. The engine + // will time-out pending interrupt requests + // and simulate an interrupt if necessary. + // These methods control the interrupt timeout. + STDMETHOD(GetInterruptTimeout)( + THIS_ + _Out_ PULONG Seconds + ) PURE; + STDMETHOD(SetInterruptTimeout)( + THIS_ + _In_ ULONG Seconds + ) PURE; + + STDMETHOD(GetLogFile)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + // Opens a log file which collects all + // output. Output from every client except + // those that explicitly disable logging + // goes into the log. + // Opening a log file closes any log file + // already open. + STDMETHOD(OpenLogFile)( + THIS_ + _In_ PCSTR File, + _In_ BOOL Append + ) PURE; + STDMETHOD(CloseLogFile)( + THIS + ) PURE; + // Controls what output is logged. + STDMETHOD(GetLogMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetLogMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + + // Input requests input from all clients. + // The first input that is returned is used + // to satisfy the call. Other returned + // input is discarded. + STDMETHOD(Input)( + THIS_ + _Out_writes_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + // This method is used by clients to return + // input when it is available. It will + // return S_OK if the input is used to + // satisfy an Input call and S_FALSE if + // the input is ignored. + // This method is reentrant. + STDMETHOD(ReturnInput)( + THIS_ + _In_ PCSTR Buffer + ) PURE; + + // Sends output through clients + // output callbacks if the mask is allowed + // by the current output control mask and + // according to the output distribution + // settings. + STDMETHODV(Output)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaList)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + // The following methods allow direct control + // over the distribution of the given output + // for situations where something other than + // the default is desired. These methods require + // extra work in the engine so they should + // only be used when necessary. + STDMETHODV(ControlledOutput)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + + // Displays the standard command-line prompt + // followed by the given output. If Format + // is NULL no additional output is produced. + // Output is produced under the + // DEBUG_OUTPUT_PROMPT mask. + // This method only outputs the prompt; it + // does not get input. + STDMETHODV(OutputPrompt)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + _In_ va_list Args + ) PURE; + // Gets the text that would be displayed by OutputPrompt. + STDMETHOD(GetPromptText)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // Outputs information about the current + // debuggee state such as a register + // summary, disassembly at the current PC, + // closest symbol and others. + // Uses the line prefix. + STDMETHOD(OutputCurrentState)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // Outputs the debugger and extension version + // information. This method is reentrant. + // Uses the line prefix. + STDMETHOD(OutputVersionInformation)( + THIS_ + _In_ ULONG OutputControl + ) PURE; + + // In user-mode debugging sessions the + // engine will set an event when + // exceptions are continued. This can + // be used to synchronize other processes + // with the debuggers handling of events. + // For example, this is used to support + // the e argument to ntsd. + STDMETHOD(GetNotifyEventHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(SetNotifyEventHandle)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Assemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(Disassemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + // Returns the value of the effective address + // computed for the last Disassemble, if there + // was one. + STDMETHOD(GetDisassembleEffectiveOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Uses the line prefix if necessary. + STDMETHOD(OutputDisassembly)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_ PULONG64 EndOffset + ) PURE; + // Produces multiple lines of disassembly output. + // There will be PreviousLines of disassembly before + // the given offset if a valid disassembly exists. + // In all, there will be TotalLines of output produced. + // The first and last line offsets are returned + // specially and all lines offsets can be retrieved + // through LineOffsets. LineOffsets will contain + // offsets for each line where disassembly started. + // When disassembly of a single instruction takes + // multiple lines the initial offset will be followed + // by DEBUG_INVALID_OFFSET. + // Uses the line prefix. + STDMETHOD(OutputDisassemblyLines)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG PreviousLines, + _In_ ULONG TotalLines, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_opt_ PULONG OffsetLine, + _Out_opt_ PULONG64 StartOffset, + _Out_opt_ PULONG64 EndOffset, + _Out_writes_opt_(TotalLines) PULONG64 LineOffsets + ) PURE; + // Returns the offset of the start of + // the instruction thats the given + // delta away from the instruction + // at the initial offset. + // This routine does not check for + // validity of the instruction or + // the memory containing it. + STDMETHOD(GetNearInstruction)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_ PULONG64 NearOffset + ) PURE; + + // Offsets can be passed in as zero to use the current + // thread state. + STDMETHOD(GetStackTrace)( + THIS_ + _In_ ULONG64 FrameOffset, + _In_ ULONG64 StackOffset, + _In_ ULONG64 InstructionOffset, + _Out_writes_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_opt_ PULONG FramesFilled + ) PURE; + // Does a simple stack trace to determine + // what the current return address is. + STDMETHOD(GetReturnOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // If Frames is NULL OutputStackTrace will + // use GetStackTrace to get FramesSize frames + // and then output them. The current register + // values for frame, stack and instruction offsets + // are used. + // Uses the line prefix. + STDMETHOD(OutputStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_opt_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_ ULONG Flags + ) PURE; + + // Returns information about the debuggee such + // as user vs. kernel, dump vs. live, etc. + STDMETHOD(GetDebuggeeType)( + THIS_ + _Out_ PULONG Class, + _Out_ PULONG Qualifier + ) PURE; + // Returns the type of physical processors in + // the machine. + // Returns one of the IMAGE_FILE_MACHINE values. + STDMETHOD(GetActualProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Returns the type of processor used in the + // current processor context. + STDMETHOD(GetExecutingProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Query all the possible processor types that + // may be encountered during this debug session. + STDMETHOD(GetNumberPossibleExecutingProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetPossibleExecutingProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Get the number of actual processors in + // the machine. + STDMETHOD(GetNumberProcessors)( + THIS_ + _Out_ PULONG Number + ) PURE; + // PlatformId is one of the VER_PLATFORM values. + // Major and minor are as given in the NT + // kernel debugger protocol. + // ServicePackString and ServicePackNumber indicate the + // system service pack level. ServicePackNumber is not + // available in some sessions where the service pack level + // is only expressed as a string. The service pack information + // will be empty if the system does not have a service pack + // applied. + // The build string is string information identifying the + // particular build of the system. The build string is + // empty if the system has no particular identifying + // information. + STDMETHOD(GetSystemVersion)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Major, + _Out_ PULONG Minor, + _Out_writes_opt_(ServicePackStringSize) PSTR ServicePackString, + _In_ ULONG ServicePackStringSize, + _Out_opt_ PULONG ServicePackStringUsed, + _Out_ PULONG ServicePackNumber, + _Out_writes_opt_(BuildStringSize) PSTR BuildString, + _In_ ULONG BuildStringSize, + _Out_opt_ PULONG BuildStringUsed + ) PURE; + // Returns the page size for the currently executing + // processor context. The page size may vary between + // processor types. + STDMETHOD(GetPageSize)( + THIS_ + _Out_ PULONG Size + ) PURE; + // Returns S_OK if the current processor context uses + // 64-bit addresses, otherwise S_FALSE. + STDMETHOD(IsPointer64Bit)( + THIS + ) PURE; + // Reads the bugcheck data area and returns the + // current contents. This method only works + // in kernel debugging sessions. + STDMETHOD(ReadBugCheckData)( + THIS_ + _Out_ PULONG Code, + _Out_ PULONG64 Arg1, + _Out_ PULONG64 Arg2, + _Out_ PULONG64 Arg3, + _Out_ PULONG64 Arg4 + ) PURE; + + // Query all the processor types supported by + // the engine. This is a complete list and is + // not related to the machine running the engine + // or the debuggee. + STDMETHOD(GetNumberSupportedProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetSupportedProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Returns a full, descriptive name and an + // abbreviated name for a processor type. + STDMETHOD(GetProcessorTypeNames)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // Gets and sets the type of processor to + // use when doing things like setting + // breakpoints, accessing registers, + // getting stack traces and so on. + STDMETHOD(GetEffectiveProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + STDMETHOD(SetEffectiveProcessorType)( + THIS_ + _In_ ULONG Type + ) PURE; + + // Returns information about whether and how + // the debuggee is running. Status will + // be GO if the debuggee is running and + // BREAK if it isnt. + // If no debuggee exists the status is + // NO_DEBUGGEE. + // This method is reentrant. + STDMETHOD(GetExecutionStatus)( + THIS_ + _Out_ PULONG Status + ) PURE; + // Changes the execution status of the + // engine from stopped to running. + // Status must be one of the go or step + // status values. + STDMETHOD(SetExecutionStatus)( + THIS_ + _In_ ULONG Status + ) PURE; + + // Controls what code interpretation level the debugger + // runs at. The debugger checks the code level when + // deciding whether to step by a source line or + // assembly instruction along with other related operations. + STDMETHOD(GetCodeLevel)( + THIS_ + _Out_ PULONG Level + ) PURE; + STDMETHOD(SetCodeLevel)( + THIS_ + _In_ ULONG Level + ) PURE; + + // Gets and sets engine control flags. + // These methods are reentrant. + STDMETHOD(GetEngineOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Gets and sets control values for + // handling system error events. + // If the system error level is less + // than or equal to the given levels + // the error may be displayed and + // the default break for the event + // may be set. + STDMETHOD(GetSystemErrorControl)( + THIS_ + _Out_ PULONG OutputLevel, + _Out_ PULONG BreakLevel + ) PURE; + STDMETHOD(SetSystemErrorControl)( + THIS_ + _In_ ULONG OutputLevel, + _In_ ULONG BreakLevel + ) PURE; + + // The command processor supports simple + // string replacement macros in Evaluate and + // Execute. There are currently ten macro + // slots available. Slots 0-9 map to + // the command invocations $u0-$u9. + STDMETHOD(GetTextMacro)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacro)( + THIS_ + _In_ ULONG Slot, + _In_ PCSTR Macro + ) PURE; + + // Controls the default number radix used + // in expressions and commands. + STDMETHOD(GetRadix)( + THIS_ + _Out_ PULONG Radix + ) PURE; + STDMETHOD(SetRadix)( + THIS_ + _In_ ULONG Radix + ) PURE; + + // Evaluates the given expression string and + // returns the resulting value. + // If DesiredType is DEBUG_VALUE_INVALID then + // the natural type is used. + // RemainderIndex, if provided, is set to the index + // of the first character in the input string that was + // not used when evaluating the expression. + STDMETHOD(Evaluate)( + THIS_ + _In_ PCSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + // Attempts to convert the input value to a value + // of the requested type in the output value. + // Conversions can fail if no conversion exists. + // Successful conversions may be lossy. + STDMETHOD(CoerceValue)( + THIS_ + _In_ PDEBUG_VALUE In, + _In_ ULONG OutType, + _Out_ PDEBUG_VALUE Out + ) PURE; + STDMETHOD(CoerceValues)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_VALUE In, + _In_reads_(Count) PULONG OutTypes, + _Out_writes_(Count) PDEBUG_VALUE Out + ) PURE; + + // Executes the given command string. + // If the string has multiple commands + // Execute will not return until all + // of them have been executed. If this + // requires waiting for the debuggee to + // execute an internal wait will be done + // so Execute can take an arbitrary amount + // of time. + STDMETHOD(Execute)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Command, + _In_ ULONG Flags + ) PURE; + // Executes the given command file by + // reading a line at a time and processing + // it with Execute. + STDMETHOD(ExecuteCommandFile)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + // Breakpoint interfaces are described + // elsewhere in this section. + STDMETHOD(GetNumberBreakpoints)( + THIS_ + _Out_ PULONG Number + ) PURE; + // It is possible for this retrieval function to + // fail even with an index within the number of + // existing breakpoints if the breakpoint is + // a private breakpoint. + STDMETHOD(GetBreakpointByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + STDMETHOD(GetBreakpointById)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // If Ids is non-NULL the Count breakpoints + // referred to in the Ids array are returned, + // otherwise breakpoints from index Start to + // Start + Count 1 are returned. + STDMETHOD(GetBreakpointParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Ids, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_BREAKPOINT_PARAMETERS Params + ) PURE; + // Breakpoints are created empty and disabled. + // When their parameters have been set they + // should be enabled by setting the ENABLE flag. + // If DesiredId is DEBUG_ANY_ID then the + // engine picks an unused ID. If DesiredId + // is any other number the engine attempts + // to use the given ID for the breakpoint. + // If another breakpoint exists with that ID + // the call will fail. + STDMETHOD(AddBreakpoint)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // Breakpoint interface is invalid after this call. + STDMETHOD(RemoveBreakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT Bp + ) PURE; + + // Control and use extension DLLs. + STDMETHOD(AddExtension)( + THIS_ + _In_ PCSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(RemoveExtension)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPath)( + THIS_ + _In_ PCSTR Path, + _Out_ PULONG64 Handle + ) PURE; + // If Handle is zero the extension + // chain is walked searching for the + // function. + STDMETHOD(CallExtension)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR Function, + _In_opt_ PCSTR Arguments + ) PURE; + // GetExtensionFunction works like + // GetProcAddress on extension DLLs + // to allow raw function-call-level + // interaction with extension DLLs. + // Such functions do not need to + // follow the standard extension prototype + // if they are not going to be called + // through the text extension interface. + // This function cannot be called remotely. + STDMETHOD(GetExtensionFunction)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + // These methods return alternate + // extension interfaces in order to allow + // interface-style extension DLLs to mix in + // older extension calls. + // Structure sizes must be initialized before + // the call. + // These methods cannot be called remotely. + STDMETHOD(GetWindbgExtensionApis32)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS32 Api + ) PURE; + STDMETHOD(GetWindbgExtensionApis64)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS64 Api + ) PURE; + + // The engine provides a simple mechanism + // to filter common events. Arbitrarily complicated + // filtering can be done by registering event callbacks + // but simple event filtering only requires + // setting the options of one of the predefined + // event filters. + // Simple event filters are either for specific + // events and therefore have an enumerant or + // they are for an exception and are based on + // the exceptions code. Exception filters + // are further divided into exceptions specially + // handled by the engine, which is a fixed set, + // and arbitrary exceptions. + // All three groups of filters are indexed together + // with the specific filters first, then the specific + // exception filters and finally the arbitrary + // exception filters. + // The first specific exception is the default + // exception. If an exception event occurs for + // an exception without settings the default + // exception settings are used. + STDMETHOD(GetNumberEventFilters)( + THIS_ + _Out_ PULONG SpecificEvents, + _Out_ PULONG SpecificExceptions, + _Out_ PULONG ArbitraryExceptions + ) PURE; + // Some filters have descriptive text associated with them. + STDMETHOD(GetEventFilterText)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // All filters support executing a command when the + // event occurs. + STDMETHOD(GetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + STDMETHOD(SetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + // Some specific filters have arguments to further + // qualify their operation. + STDMETHOD(GetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Argument + ) PURE; + // If Codes is non-NULL Start is ignored. + STDMETHOD(GetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Codes, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // The codes in the parameter data control the application + // of the parameter data. If a code is not already in + // the set of filters it is added. If the ExecutionOption + // for a code is REMOVE then the filter is removed. + // Specific exception filters cannot be removed. + STDMETHOD(SetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // Exception filters support an additional command for + // second-chance events. + STDMETHOD(GetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + + // Yields processing to the engine until + // an event occurs. This method may + // only be called by the thread that started + // the debug session. + // When an event occurs the engine carries + // out all event processing such as calling + // callbacks. + // If the callbacks indicate that execution should + // break the wait will return, otherwise it + // goes back to waiting for a new event. + // If the timeout expires, S_FALSE is returned. + // The timeout is not currently supported for + // kernel debugging. + STDMETHOD(WaitForEvent)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG Timeout + ) PURE; + + // Retrieves information about the last event that occurred. + // EventType is one of the event callback mask bits. + // ExtraInformation contains additional event-specific + // information. Not all events have additional information. + STDMETHOD(GetLastEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; + + // IDebugControl2. + + STDMETHOD(GetCurrentTimeDate)( + THIS_ + _Out_ PULONG TimeDate + ) PURE; + // Retrieves the number of seconds since the + // machine started running. + STDMETHOD(GetCurrentSystemUpTime)( + THIS_ + _Out_ PULONG UpTime + ) PURE; + + // If the current session is a dump session, + // retrieves any extended format information. + STDMETHOD(GetDumpFormatFlags)( + THIS_ + _Out_ PULONG FormatFlags + ) PURE; + + // The debugger has been enhanced to allow + // arbitrary text replacements in addition + // to the simple $u0-$u9 text macros. + // Text replacement takes a given source + // text in commands and converts it to the + // given destination text. Replacements + // are named by their source text so that + // only one replacement for a source text + // string can exist. + STDMETHOD(GetNumberTextReplacements)( + THIS_ + _Out_ PULONG NumRepl + ) PURE; + // If SrcText is non-NULL the replacement + // is looked up by source text, otherwise + // Index is used to get the Nth replacement. + STDMETHOD(GetTextReplacement)( + THIS_ + _In_opt_ PCSTR SrcText, + _In_ ULONG Index, + _Out_writes_opt_(SrcBufferSize) PSTR SrcBuffer, + _In_ ULONG SrcBufferSize, + _Out_opt_ PULONG SrcSize, + _Out_writes_opt_(DstBufferSize) PSTR DstBuffer, + _In_ ULONG DstBufferSize, + _Out_opt_ PULONG DstSize + ) PURE; + // Setting the destination text to + // NULL removes the alias. + STDMETHOD(SetTextReplacement)( + THIS_ + _In_ PCSTR SrcText, + _In_opt_ PCSTR DstText + ) PURE; + STDMETHOD(RemoveTextReplacements)( + THIS + ) PURE; + // Outputs the complete list of current + // replacements. + STDMETHOD(OutputTextReplacements)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // IDebugControl3. + + // Control options for assembly and disassembly. + STDMETHOD(GetAssemblyOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Control the expression syntax. + STDMETHOD(GetExpressionSyntax)( + THIS_ + _Out_ PULONG Flags + ) PURE; + STDMETHOD(SetExpressionSyntax)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Look up a syntax by its abbreviated + // name and set it. + STDMETHOD(SetExpressionSyntaxByName)( + THIS_ + _In_ PCSTR AbbrevName + ) PURE; + STDMETHOD(GetNumberExpressionSyntaxes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetExpressionSyntaxNames)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // + // Some debug sessions have only a single + // possible event, such as a snapshot dump + // file; some have dynamic events, such as + // a live debug session; and others may have + // multiple events, such as a dump file that + // contains snapshots from different points + // in time. The following methods allow + // discovery and selection of the available + // events for a session. + // Sessions with one or more static events + // will be able to report all of the events + // when queried. Sessions with dynamic events + // will only report a single event representing + // the current event. + // Switching events constitutes execution and + // changing the current event will alter the + // execution status to a running state, after + // which WaitForEvent must be used to process + // the selected event. + // + + // GetNumberEvents returns S_OK if this is the + // complete set of events possible, such as for + // a static session; or S_FALSE if other events + // may be possible, such as for a dynamic session. + STDMETHOD(GetNumberEvents)( + THIS_ + _Out_ PULONG Events + ) PURE; + // Sessions may have descriptive information for + // the various events available. The amount of + // information varies according to the specific + // session and data. + STDMETHOD(GetEventIndexDescription)( + THIS_ + _In_ ULONG Index, + _In_ ULONG Which, + _In_opt_ PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DescSize + ) PURE; + STDMETHOD(GetCurrentEventIndex)( + THIS_ + _Out_ PULONG Index + ) PURE; + // SetNextEventIndex works like seek in that + // it can set an absolute or relative index. + // SetNextEventIndex works similarly to SetExecutionStatus + // by putting the session into a running state, after + // which the caller must call WaitForEvent. The + // current event index only changes when WaitForEvent + // is called. + STDMETHOD(SetNextEventIndex)( + THIS_ + _In_ ULONG Relation, + _In_ ULONG Value, + _Out_ PULONG NextIndex + ) PURE; +}; + +// +// Log file flags. +// + +#define DEBUG_LOG_DEFAULT 0x00000000 +#define DEBUG_LOG_APPEND 0x00000001 +#define DEBUG_LOG_UNICODE 0x00000002 +#define DEBUG_LOG_DML 0x00000004 + +// +// System version strings. +// + +#define DEBUG_SYSVERSTR_SERVICE_PACK 0x00000000 +#define DEBUG_SYSVERSTR_BUILD 0x00000001 + +// +// GetManagedStatus flags and strings. +// + +#define DEBUG_MANAGED_DISABLED 0x00000000 +#define DEBUG_MANAGED_ALLOWED 0x00000001 +#define DEBUG_MANAGED_DLL_LOADED 0x00000002 + +#define DEBUG_MANSTR_NONE 0x00000000 +#define DEBUG_MANSTR_LOADED_SUPPORT_DLL 0x00000001 +#define DEBUG_MANSTR_LOAD_STATUS 0x00000002 + +// +// ResetManagedStatus flags. +// + +// Reset state to default engine startup state with +// no support loaded. +#define DEBUG_MANRESET_DEFAULT 0x00000000 +// Force managed support DLL load attempt. +#define DEBUG_MANRESET_LOAD_DLL 0x00000001 + +#undef INTERFACE +#define INTERFACE IDebugControl4 +DECLARE_INTERFACE_(IDebugControl4, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugControl. + + // Checks for a user interrupt, such a Ctrl-C + // or stop button. + // This method is reentrant. + STDMETHOD(GetInterrupt)( + THIS + ) PURE; + // Registers a user interrupt. + // This method is reentrant. + STDMETHOD(SetInterrupt)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Interrupting a user-mode process requires + // access to some system resources that the + // process may hold itself, preventing the + // interrupt from occurring. The engine + // will time-out pending interrupt requests + // and simulate an interrupt if necessary. + // These methods control the interrupt timeout. + STDMETHOD(GetInterruptTimeout)( + THIS_ + _Out_ PULONG Seconds + ) PURE; + STDMETHOD(SetInterruptTimeout)( + THIS_ + _In_ ULONG Seconds + ) PURE; + + STDMETHOD(GetLogFile)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + // Opens a log file which collects all + // output. Output from every client except + // those that explicitly disable logging + // goes into the log. + // Opening a log file closes any log file + // already open. + STDMETHOD(OpenLogFile)( + THIS_ + _In_ PCSTR File, + _In_ BOOL Append + ) PURE; + STDMETHOD(CloseLogFile)( + THIS + ) PURE; + // Controls what output is logged. + STDMETHOD(GetLogMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetLogMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + + // Input requests input from all clients. + // The first input that is returned is used + // to satisfy the call. Other returned + // input is discarded. + STDMETHOD(Input)( + THIS_ + _Out_writes_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + // This method is used by clients to return + // input when it is available. It will + // return S_OK if the input is used to + // satisfy an Input call and S_FALSE if + // the input is ignored. + // This method is reentrant. + STDMETHOD(ReturnInput)( + THIS_ + _In_ PCSTR Buffer + ) PURE; + + // Sends output through clients + // output callbacks if the mask is allowed + // by the current output control mask and + // according to the output distribution + // settings. + STDMETHODV(Output)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaList)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + // The following methods allow direct control + // over the distribution of the given output + // for situations where something other than + // the default is desired. These methods require + // extra work in the engine so they should + // only be used when necessary. + STDMETHODV(ControlledOutput)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + + // Displays the standard command-line prompt + // followed by the given output. If Format + // is NULL no additional output is produced. + // Output is produced under the + // DEBUG_OUTPUT_PROMPT mask. + // This method only outputs the prompt; it + // does not get input. + STDMETHODV(OutputPrompt)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + _In_ va_list Args + ) PURE; + // Gets the text that would be displayed by OutputPrompt. + STDMETHOD(GetPromptText)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // Outputs information about the current + // debuggee state such as a register + // summary, disassembly at the current PC, + // closest symbol and others. + // Uses the line prefix. + STDMETHOD(OutputCurrentState)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // Outputs the debugger and extension version + // information. This method is reentrant. + // Uses the line prefix. + STDMETHOD(OutputVersionInformation)( + THIS_ + _In_ ULONG OutputControl + ) PURE; + + // In user-mode debugging sessions the + // engine will set an event when + // exceptions are continued. This can + // be used to synchronize other processes + // with the debuggers handling of events. + // For example, this is used to support + // the e argument to ntsd. + STDMETHOD(GetNotifyEventHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(SetNotifyEventHandle)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Assemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(Disassemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + // Returns the value of the effective address + // computed for the last Disassemble, if there + // was one. + STDMETHOD(GetDisassembleEffectiveOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Uses the line prefix if necessary. + STDMETHOD(OutputDisassembly)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_ PULONG64 EndOffset + ) PURE; + // Produces multiple lines of disassembly output. + // There will be PreviousLines of disassembly before + // the given offset if a valid disassembly exists. + // In all, there will be TotalLines of output produced. + // The first and last line offsets are returned + // specially and all lines offsets can be retrieved + // through LineOffsets. LineOffsets will contain + // offsets for each line where disassembly started. + // When disassembly of a single instruction takes + // multiple lines the initial offset will be followed + // by DEBUG_INVALID_OFFSET. + // Uses the line prefix. + STDMETHOD(OutputDisassemblyLines)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG PreviousLines, + _In_ ULONG TotalLines, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_opt_ PULONG OffsetLine, + _Out_opt_ PULONG64 StartOffset, + _Out_opt_ PULONG64 EndOffset, + _Out_writes_opt_(TotalLines) PULONG64 LineOffsets + ) PURE; + // Returns the offset of the start of + // the instruction thats the given + // delta away from the instruction + // at the initial offset. + // This routine does not check for + // validity of the instruction or + // the memory containing it. + STDMETHOD(GetNearInstruction)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_ PULONG64 NearOffset + ) PURE; + + // Offsets can be passed in as zero to use the current + // thread state. + STDMETHOD(GetStackTrace)( + THIS_ + _In_ ULONG64 FrameOffset, + _In_ ULONG64 StackOffset, + _In_ ULONG64 InstructionOffset, + _Out_writes_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_opt_ PULONG FramesFilled + ) PURE; + // Does a simple stack trace to determine + // what the current return address is. + STDMETHOD(GetReturnOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // If Frames is NULL OutputStackTrace will + // use GetStackTrace to get FramesSize frames + // and then output them. The current register + // values for frame, stack and instruction offsets + // are used. + // Uses the line prefix. + STDMETHOD(OutputStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_opt_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_ ULONG Flags + ) PURE; + + // Returns information about the debuggee such + // as user vs. kernel, dump vs. live, etc. + STDMETHOD(GetDebuggeeType)( + THIS_ + _Out_ PULONG Class, + _Out_ PULONG Qualifier + ) PURE; + // Returns the type of physical processors in + // the machine. + // Returns one of the IMAGE_FILE_MACHINE values. + STDMETHOD(GetActualProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Returns the type of processor used in the + // current processor context. + STDMETHOD(GetExecutingProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Query all the possible processor types that + // may be encountered during this debug session. + STDMETHOD(GetNumberPossibleExecutingProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetPossibleExecutingProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Get the number of actual processors in + // the machine. + STDMETHOD(GetNumberProcessors)( + THIS_ + _Out_ PULONG Number + ) PURE; + // PlatformId is one of the VER_PLATFORM values. + // Major and minor are as given in the NT + // kernel debugger protocol. + // ServicePackString and ServicePackNumber indicate the + // system service pack level. ServicePackNumber is not + // available in some sessions where the service pack level + // is only expressed as a string. The service pack information + // will be empty if the system does not have a service pack + // applied. + // The build string is string information identifying the + // particular build of the system. The build string is + // empty if the system has no particular identifying + // information. + STDMETHOD(GetSystemVersion)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Major, + _Out_ PULONG Minor, + _Out_writes_opt_(ServicePackStringSize) PSTR ServicePackString, + _In_ ULONG ServicePackStringSize, + _Out_opt_ PULONG ServicePackStringUsed, + _Out_ PULONG ServicePackNumber, + _Out_writes_opt_(BuildStringSize) PSTR BuildString, + _In_ ULONG BuildStringSize, + _Out_opt_ PULONG BuildStringUsed + ) PURE; + // Returns the page size for the currently executing + // processor context. The page size may vary between + // processor types. + STDMETHOD(GetPageSize)( + THIS_ + _Out_ PULONG Size + ) PURE; + // Returns S_OK if the current processor context uses + // 64-bit addresses, otherwise S_FALSE. + STDMETHOD(IsPointer64Bit)( + THIS + ) PURE; + // Reads the bugcheck data area and returns the + // current contents. This method only works + // in kernel debugging sessions. + STDMETHOD(ReadBugCheckData)( + THIS_ + _Out_ PULONG Code, + _Out_ PULONG64 Arg1, + _Out_ PULONG64 Arg2, + _Out_ PULONG64 Arg3, + _Out_ PULONG64 Arg4 + ) PURE; + + // Query all the processor types supported by + // the engine. This is a complete list and is + // not related to the machine running the engine + // or the debuggee. + STDMETHOD(GetNumberSupportedProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetSupportedProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Returns a full, descriptive name and an + // abbreviated name for a processor type. + STDMETHOD(GetProcessorTypeNames)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // Gets and sets the type of processor to + // use when doing things like setting + // breakpoints, accessing registers, + // getting stack traces and so on. + STDMETHOD(GetEffectiveProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + STDMETHOD(SetEffectiveProcessorType)( + THIS_ + _In_ ULONG Type + ) PURE; + + // Returns information about whether and how + // the debuggee is running. Status will + // be GO if the debuggee is running and + // BREAK if it isnt. + // If no debuggee exists the status is + // NO_DEBUGGEE. + // This method is reentrant. + STDMETHOD(GetExecutionStatus)( + THIS_ + _Out_ PULONG Status + ) PURE; + // Changes the execution status of the + // engine from stopped to running. + // Status must be one of the go or step + // status values. + STDMETHOD(SetExecutionStatus)( + THIS_ + _In_ ULONG Status + ) PURE; + + // Controls what code interpretation level the debugger + // runs at. The debugger checks the code level when + // deciding whether to step by a source line or + // assembly instruction along with other related operations. + STDMETHOD(GetCodeLevel)( + THIS_ + _Out_ PULONG Level + ) PURE; + STDMETHOD(SetCodeLevel)( + THIS_ + _In_ ULONG Level + ) PURE; + + // Gets and sets engine control flags. + // These methods are reentrant. + STDMETHOD(GetEngineOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Gets and sets control values for + // handling system error events. + // If the system error level is less + // than or equal to the given levels + // the error may be displayed and + // the default break for the event + // may be set. + STDMETHOD(GetSystemErrorControl)( + THIS_ + _Out_ PULONG OutputLevel, + _Out_ PULONG BreakLevel + ) PURE; + STDMETHOD(SetSystemErrorControl)( + THIS_ + _In_ ULONG OutputLevel, + _In_ ULONG BreakLevel + ) PURE; + + // The command processor supports simple + // string replacement macros in Evaluate and + // Execute. There are currently ten macro + // slots available. Slots 0-9 map to + // the command invocations $u0-$u9. + STDMETHOD(GetTextMacro)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacro)( + THIS_ + _In_ ULONG Slot, + _In_ PCSTR Macro + ) PURE; + + // Controls the default number radix used + // in expressions and commands. + STDMETHOD(GetRadix)( + THIS_ + _Out_ PULONG Radix + ) PURE; + STDMETHOD(SetRadix)( + THIS_ + _In_ ULONG Radix + ) PURE; + + // Evaluates the given expression string and + // returns the resulting value. + // If DesiredType is DEBUG_VALUE_INVALID then + // the natural type is used. + // RemainderIndex, if provided, is set to the index + // of the first character in the input string that was + // not used when evaluating the expression. + STDMETHOD(Evaluate)( + THIS_ + _In_ PCSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + // Attempts to convert the input value to a value + // of the requested type in the output value. + // Conversions can fail if no conversion exists. + // Successful conversions may be lossy. + STDMETHOD(CoerceValue)( + THIS_ + _In_ PDEBUG_VALUE In, + _In_ ULONG OutType, + _Out_ PDEBUG_VALUE Out + ) PURE; + STDMETHOD(CoerceValues)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_VALUE In, + _In_reads_(Count) PULONG OutTypes, + _Out_writes_(Count) PDEBUG_VALUE Out + ) PURE; + + // Executes the given command string. + // If the string has multiple commands + // Execute will not return until all + // of them have been executed. If this + // requires waiting for the debuggee to + // execute an internal wait will be done + // so Execute can take an arbitrary amount + // of time. + STDMETHOD(Execute)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Command, + _In_ ULONG Flags + ) PURE; + // Executes the given command file by + // reading a line at a time and processing + // it with Execute. + STDMETHOD(ExecuteCommandFile)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + // Breakpoint interfaces are described + // elsewhere in this section. + STDMETHOD(GetNumberBreakpoints)( + THIS_ + _Out_ PULONG Number + ) PURE; + // It is possible for this retrieval function to + // fail even with an index within the number of + // existing breakpoints if the breakpoint is + // a private breakpoint. + STDMETHOD(GetBreakpointByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + STDMETHOD(GetBreakpointById)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // If Ids is non-NULL the Count breakpoints + // referred to in the Ids array are returned, + // otherwise breakpoints from index Start to + // Start + Count 1 are returned. + STDMETHOD(GetBreakpointParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Ids, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_BREAKPOINT_PARAMETERS Params + ) PURE; + // Breakpoints are created empty and disabled. + // When their parameters have been set they + // should be enabled by setting the ENABLE flag. + // If DesiredId is DEBUG_ANY_ID then the + // engine picks an unused ID. If DesiredId + // is any other number the engine attempts + // to use the given ID for the breakpoint. + // If another breakpoint exists with that ID + // the call will fail. + STDMETHOD(AddBreakpoint)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // Breakpoint interface is invalid after this call. + STDMETHOD(RemoveBreakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT Bp + ) PURE; + + // Control and use extension DLLs. + STDMETHOD(AddExtension)( + THIS_ + _In_ PCSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(RemoveExtension)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPath)( + THIS_ + _In_ PCSTR Path, + _Out_ PULONG64 Handle + ) PURE; + // If Handle is zero the extension + // chain is walked searching for the + // function. + STDMETHOD(CallExtension)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR Function, + _In_opt_ PCSTR Arguments + ) PURE; + // GetExtensionFunction works like + // GetProcAddress on extension DLLs + // to allow raw function-call-level + // interaction with extension DLLs. + // Such functions do not need to + // follow the standard extension prototype + // if they are not going to be called + // through the text extension interface. + // This function cannot be called remotely. + STDMETHOD(GetExtensionFunction)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + // These methods return alternate + // extension interfaces in order to allow + // interface-style extension DLLs to mix in + // older extension calls. + // Structure sizes must be initialized before + // the call. + // These methods cannot be called remotely. + STDMETHOD(GetWindbgExtensionApis32)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS32 Api + ) PURE; + STDMETHOD(GetWindbgExtensionApis64)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS64 Api + ) PURE; + + // The engine provides a simple mechanism + // to filter common events. Arbitrarily complicated + // filtering can be done by registering event callbacks + // but simple event filtering only requires + // setting the options of one of the predefined + // event filters. + // Simple event filters are either for specific + // events and therefore have an enumerant or + // they are for an exception and are based on + // the exceptions code. Exception filters + // are further divided into exceptions specially + // handled by the engine, which is a fixed set, + // and arbitrary exceptions. + // All three groups of filters are indexed together + // with the specific filters first, then the specific + // exception filters and finally the arbitrary + // exception filters. + // The first specific exception is the default + // exception. If an exception event occurs for + // an exception without settings the default + // exception settings are used. + STDMETHOD(GetNumberEventFilters)( + THIS_ + _Out_ PULONG SpecificEvents, + _Out_ PULONG SpecificExceptions, + _Out_ PULONG ArbitraryExceptions + ) PURE; + // Some filters have descriptive text associated with them. + STDMETHOD(GetEventFilterText)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // All filters support executing a command when the + // event occurs. + STDMETHOD(GetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + STDMETHOD(SetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + // Some specific filters have arguments to further + // qualify their operation. + STDMETHOD(GetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Argument + ) PURE; + // If Codes is non-NULL Start is ignored. + STDMETHOD(GetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Codes, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // The codes in the parameter data control the application + // of the parameter data. If a code is not already in + // the set of filters it is added. If the ExecutionOption + // for a code is REMOVE then the filter is removed. + // Specific exception filters cannot be removed. + STDMETHOD(SetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // Exception filters support an additional command for + // second-chance events. + STDMETHOD(GetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + + // Yields processing to the engine until + // an event occurs. This method may + // only be called by the thread that started + // the debug session. + // When an event occurs the engine carries + // out all event processing such as calling + // callbacks. + // If the callbacks indicate that execution should + // break the wait will return, otherwise it + // goes back to waiting for a new event. + // If the timeout expires, S_FALSE is returned. + // The timeout is not currently supported for + // kernel debugging. + STDMETHOD(WaitForEvent)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG Timeout + ) PURE; + + // Retrieves information about the last event that occurred. + // EventType is one of the event callback mask bits. + // ExtraInformation contains additional event-specific + // information. Not all events have additional information. + STDMETHOD(GetLastEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; + + // IDebugControl2. + + STDMETHOD(GetCurrentTimeDate)( + THIS_ + _Out_ PULONG TimeDate + ) PURE; + // Retrieves the number of seconds since the + // machine started running. + STDMETHOD(GetCurrentSystemUpTime)( + THIS_ + _Out_ PULONG UpTime + ) PURE; + + // If the current session is a dump session, + // retrieves any extended format information. + STDMETHOD(GetDumpFormatFlags)( + THIS_ + _Out_ PULONG FormatFlags + ) PURE; + + // The debugger has been enhanced to allow + // arbitrary text replacements in addition + // to the simple $u0-$u9 text macros. + // Text replacement takes a given source + // text in commands and converts it to the + // given destination text. Replacements + // are named by their source text so that + // only one replacement for a source text + // string can exist. + STDMETHOD(GetNumberTextReplacements)( + THIS_ + _Out_ PULONG NumRepl + ) PURE; + // If SrcText is non-NULL the replacement + // is looked up by source text, otherwise + // Index is used to get the Nth replacement. + STDMETHOD(GetTextReplacement)( + THIS_ + _In_opt_ PCSTR SrcText, + _In_ ULONG Index, + _Out_writes_opt_(SrcBufferSize) PSTR SrcBuffer, + _In_ ULONG SrcBufferSize, + _Out_opt_ PULONG SrcSize, + _Out_writes_opt_(DstBufferSize) PSTR DstBuffer, + _In_ ULONG DstBufferSize, + _Out_opt_ PULONG DstSize + ) PURE; + // Setting the destination text to + // NULL removes the alias. + STDMETHOD(SetTextReplacement)( + THIS_ + _In_ PCSTR SrcText, + _In_opt_ PCSTR DstText + ) PURE; + STDMETHOD(RemoveTextReplacements)( + THIS + ) PURE; + // Outputs the complete list of current + // replacements. + STDMETHOD(OutputTextReplacements)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // IDebugControl3. + + // Control options for assembly and disassembly. + STDMETHOD(GetAssemblyOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Control the expression syntax. + STDMETHOD(GetExpressionSyntax)( + THIS_ + _Out_ PULONG Flags + ) PURE; + STDMETHOD(SetExpressionSyntax)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Look up a syntax by its abbreviated + // name and set it. + STDMETHOD(SetExpressionSyntaxByName)( + THIS_ + _In_ PCSTR AbbrevName + ) PURE; + STDMETHOD(GetNumberExpressionSyntaxes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetExpressionSyntaxNames)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // + // Some debug sessions have only a single + // possible event, such as a snapshot dump + // file; some have dynamic events, such as + // a live debug session; and others may have + // multiple events, such as a dump file that + // contains snapshots from different points + // in time. The following methods allow + // discovery and selection of the available + // events for a session. + // Sessions with one or more static events + // will be able to report all of the events + // when queried. Sessions with dynamic events + // will only report a single event representing + // the current event. + // Switching events constitutes execution and + // changing the current event will alter the + // execution status to a running state, after + // which WaitForEvent must be used to process + // the selected event. + // + + // GetNumberEvents returns S_OK if this is the + // complete set of events possible, such as for + // a static session; or S_FALSE if other events + // may be possible, such as for a dynamic session. + STDMETHOD(GetNumberEvents)( + THIS_ + _Out_ PULONG Events + ) PURE; + // Sessions may have descriptive information for + // the various events available. The amount of + // information varies according to the specific + // session and data. + STDMETHOD(GetEventIndexDescription)( + THIS_ + _In_ ULONG Index, + _In_ ULONG Which, + _In_opt_ PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DescSize + ) PURE; + STDMETHOD(GetCurrentEventIndex)( + THIS_ + _Out_ PULONG Index + ) PURE; + // SetNextEventIndex works like seek in that + // it can set an absolute or relative index. + // SetNextEventIndex works similarly to SetExecutionStatus + // by putting the session into a running state, after + // which the caller must call WaitForEvent. The + // current event index only changes when WaitForEvent + // is called. + STDMETHOD(SetNextEventIndex)( + THIS_ + _In_ ULONG Relation, + _In_ ULONG Value, + _Out_ PULONG NextIndex + ) PURE; + + // IDebugControl4. + + STDMETHOD(GetLogFileWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + STDMETHOD(OpenLogFileWide)( + THIS_ + _In_ PCWSTR File, + _In_ BOOL Append + ) PURE; + + STDMETHOD(InputWide)( + THIS_ + _Out_writes_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + STDMETHOD(ReturnInputWide)( + THIS_ + _In_ PCWSTR Buffer + ) PURE; + + STDMETHODV(OutputWide)( + THIS_ + _In_ ULONG Mask, + _In_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaListWide)( + THIS_ + _In_ ULONG Mask, + _In_ PCWSTR Format, + _In_ va_list Args + ) PURE; + STDMETHODV(ControlledOutputWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaListWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCWSTR Format, + _In_ va_list Args + ) PURE; + + STDMETHODV(OutputPromptWide)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaListWide)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCWSTR Format, + _In_ va_list Args + ) PURE; + STDMETHOD(GetPromptTextWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + + STDMETHOD(AssembleWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCWSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(DisassembleWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + + STDMETHOD(GetProcessorTypeNamesWide)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PWSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PWSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + STDMETHOD(GetTextMacroWide)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacroWide)( + THIS_ + _In_ ULONG Slot, + _In_ PCWSTR Macro + ) PURE; + + STDMETHOD(EvaluateWide)( + THIS_ + _In_ PCWSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + + STDMETHOD(ExecuteWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR Command, + _In_ ULONG Flags + ) PURE; + STDMETHOD(ExecuteCommandFileWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetBreakpointByIndex2)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(GetBreakpointById2)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(AddBreakpoint2)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(RemoveBreakpoint2)( + THIS_ + _In_ PDEBUG_BREAKPOINT2 Bp + ) PURE; + + STDMETHOD(AddExtensionWide)( + THIS_ + _In_ PCWSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPathWide)( + THIS_ + _In_ PCWSTR Path, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(CallExtensionWide)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCWSTR Function, + _In_opt_ PCWSTR Arguments + ) PURE; + STDMETHOD(GetExtensionFunctionWide)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCWSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + + STDMETHOD(GetEventFilterTextWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + STDMETHOD(GetEventFilterCommandWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommandWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterArgumentWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgumentWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Argument + ) PURE; + STDMETHOD(GetExceptionFilterSecondCommandWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommandWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Command + ) PURE; + + STDMETHOD(GetLastEventInformationWide)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; + + STDMETHOD(GetTextReplacementWide)( + THIS_ + _In_opt_ PCWSTR SrcText, + _In_ ULONG Index, + _Out_writes_opt_(SrcBufferSize) PWSTR SrcBuffer, + _In_ ULONG SrcBufferSize, + _Out_opt_ PULONG SrcSize, + _Out_writes_opt_(DstBufferSize) PWSTR DstBuffer, + _In_ ULONG DstBufferSize, + _Out_opt_ PULONG DstSize + ) PURE; + STDMETHOD(SetTextReplacementWide)( + THIS_ + _In_ PCWSTR SrcText, + _In_opt_ PCWSTR DstText + ) PURE; + + STDMETHOD(SetExpressionSyntaxByNameWide)( + THIS_ + _In_ PCWSTR AbbrevName + ) PURE; + STDMETHOD(GetExpressionSyntaxNamesWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(FullNameBufferSize) PWSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PWSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + STDMETHOD(GetEventIndexDescriptionWide)( + THIS_ + _In_ ULONG Index, + _In_ ULONG Which, + _In_opt_ PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DescSize + ) PURE; + + STDMETHOD(GetLogFile2)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PULONG Flags + ) PURE; + STDMETHOD(OpenLogFile2)( + THIS_ + _In_ PCSTR File, + _In_ ULONG Flags + ) PURE; + STDMETHOD(GetLogFile2Wide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PULONG Flags + ) PURE; + STDMETHOD(OpenLogFile2Wide)( + THIS_ + _In_ PCWSTR File, + _In_ ULONG Flags + ) PURE; + + // GetSystemVersion always returns the kd + // major/minor version numbers, which are + // different than the Win32 version numbers. + // GetSystemVersionValues can be used + // to determine the Win32 version values. + STDMETHOD(GetSystemVersionValues)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Win32Major, + _Out_ PULONG Win32Minor, + _Out_opt_ PULONG KdMajor, + _Out_opt_ PULONG KdMinor + ) PURE; + // Strings are selected with DEBUG_SYSVERSTR_*. + STDMETHOD(GetSystemVersionString)( + THIS_ + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(GetSystemVersionStringWide)( + THIS_ + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + + // Stack tracing with a full initial context + // and full context return for each frame. + // The FrameContextsSize parameter is the total + // byte size of FrameContexts. FrameContextsEntrySize + // gives the byte size of each entry in + // FrameContexts. + STDMETHOD(GetContextStackTrace)( + THIS_ + _In_reads_bytes_opt_(StartContextSize) PVOID StartContext, + _In_ ULONG StartContextSize, + _Out_writes_opt_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_writes_bytes_opt_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _Out_opt_ PULONG FramesFilled + ) PURE; + STDMETHOD(OutputContextStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_reads_bytes_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _In_ ULONG Flags + ) PURE; + + // Some targets, such as user-mode minidump files, + // have separate "event of interest" information + // stored within them. This method allows + // access to that information. + STDMETHOD(GetStoredEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ContextSize) PVOID Context, + _In_ ULONG ContextSize, + _Out_opt_ PULONG ContextUsed, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed + ) PURE; + + // Managed debugging support relies on debugging + // functionality provided by the Common Language Runtime. + // This method provides feedback on the engine's + // use of the runtime debugging APIs. + STDMETHOD(GetManagedStatus)( + THIS_ + _Out_opt_ PULONG Flags, + _In_ ULONG WhichString, + _Out_writes_opt_(StringSize) PSTR String, + _In_ ULONG StringSize, + _Out_opt_ PULONG StringNeeded + ) PURE; + STDMETHOD(GetManagedStatusWide)( + THIS_ + _Out_opt_ PULONG Flags, + _In_ ULONG WhichString, + _Out_writes_opt_(StringSize) PWSTR String, + _In_ ULONG StringSize, + _Out_opt_ PULONG StringNeeded + ) PURE; + // Clears and reinitializes the engine's + // managed code debugging support. + STDMETHOD(ResetManagedStatus)( + THIS_ + _In_ ULONG Flags + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugControl5 +DECLARE_INTERFACE_(IDebugControl5, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugControl. + + // Checks for a user interrupt, such a Ctrl-C + // or stop button. + // This method is reentrant. + STDMETHOD(GetInterrupt)( + THIS + ) PURE; + // Registers a user interrupt. + // This method is reentrant. + STDMETHOD(SetInterrupt)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Interrupting a user-mode process requires + // access to some system resources that the + // process may hold itself, preventing the + // interrupt from occurring. The engine + // will time-out pending interrupt requests + // and simulate an interrupt if necessary. + // These methods control the interrupt timeout. + STDMETHOD(GetInterruptTimeout)( + THIS_ + _Out_ PULONG Seconds + ) PURE; + STDMETHOD(SetInterruptTimeout)( + THIS_ + _In_ ULONG Seconds + ) PURE; + + STDMETHOD(GetLogFile)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + // Opens a log file which collects all + // output. Output from every client except + // those that explicitly disable logging + // goes into the log. + // Opening a log file closes any log file + // already open. + STDMETHOD(OpenLogFile)( + THIS_ + _In_ PCSTR File, + _In_ BOOL Append + ) PURE; + STDMETHOD(CloseLogFile)( + THIS + ) PURE; + // Controls what output is logged. + STDMETHOD(GetLogMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetLogMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + + // Input requests input from all clients. + // The first input that is returned is used + // to satisfy the call. Other returned + // input is discarded. + STDMETHOD(Input)( + THIS_ + _Out_writes_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + // This method is used by clients to return + // input when it is available. It will + // return S_OK if the input is used to + // satisfy an Input call and S_FALSE if + // the input is ignored. + // This method is reentrant. + STDMETHOD(ReturnInput)( + THIS_ + _In_ PCSTR Buffer + ) PURE; + + // Sends output through clients + // output callbacks if the mask is allowed + // by the current output control mask and + // according to the output distribution + // settings. + STDMETHODV(Output)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaList)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + // The following methods allow direct control + // over the distribution of the given output + // for situations where something other than + // the default is desired. These methods require + // extra work in the engine so they should + // only be used when necessary. + STDMETHODV(ControlledOutput)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + + // Displays the standard command-line prompt + // followed by the given output. If Format + // is NULL no additional output is produced. + // Output is produced under the + // DEBUG_OUTPUT_PROMPT mask. + // This method only outputs the prompt; it + // does not get input. + STDMETHODV(OutputPrompt)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + _In_ va_list Args + ) PURE; + // Gets the text that would be displayed by OutputPrompt. + STDMETHOD(GetPromptText)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // Outputs information about the current + // debuggee state such as a register + // summary, disassembly at the current PC, + // closest symbol and others. + // Uses the line prefix. + STDMETHOD(OutputCurrentState)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // Outputs the debugger and extension version + // information. This method is reentrant. + // Uses the line prefix. + STDMETHOD(OutputVersionInformation)( + THIS_ + _In_ ULONG OutputControl + ) PURE; + + // In user-mode debugging sessions the + // engine will set an event when + // exceptions are continued. This can + // be used to synchronize other processes + // with the debuggers handling of events. + // For example, this is used to support + // the e argument to ntsd. + STDMETHOD(GetNotifyEventHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(SetNotifyEventHandle)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Assemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(Disassemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + // Returns the value of the effective address + // computed for the last Disassemble, if there + // was one. + STDMETHOD(GetDisassembleEffectiveOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Uses the line prefix if necessary. + STDMETHOD(OutputDisassembly)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_ PULONG64 EndOffset + ) PURE; + // Produces multiple lines of disassembly output. + // There will be PreviousLines of disassembly before + // the given offset if a valid disassembly exists. + // In all, there will be TotalLines of output produced. + // The first and last line offsets are returned + // specially and all lines offsets can be retrieved + // through LineOffsets. LineOffsets will contain + // offsets for each line where disassembly started. + // When disassembly of a single instruction takes + // multiple lines the initial offset will be followed + // by DEBUG_INVALID_OFFSET. + // Uses the line prefix. + STDMETHOD(OutputDisassemblyLines)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG PreviousLines, + _In_ ULONG TotalLines, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_opt_ PULONG OffsetLine, + _Out_opt_ PULONG64 StartOffset, + _Out_opt_ PULONG64 EndOffset, + _Out_writes_opt_(TotalLines) PULONG64 LineOffsets + ) PURE; + // Returns the offset of the start of + // the instruction thats the given + // delta away from the instruction + // at the initial offset. + // This routine does not check for + // validity of the instruction or + // the memory containing it. + STDMETHOD(GetNearInstruction)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_ PULONG64 NearOffset + ) PURE; + + // Offsets can be passed in as zero to use the current + // thread state. + STDMETHOD(GetStackTrace)( + THIS_ + _In_ ULONG64 FrameOffset, + _In_ ULONG64 StackOffset, + _In_ ULONG64 InstructionOffset, + _Out_writes_to_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_opt_ PULONG FramesFilled + ) PURE; + // Does a simple stack trace to determine + // what the current return address is. + STDMETHOD(GetReturnOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // If Frames is NULL OutputStackTrace will + // use GetStackTrace to get FramesSize frames + // and then output them. The current register + // values for frame, stack and instruction offsets + // are used. + // Uses the line prefix. + STDMETHOD(OutputStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_opt_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_ ULONG Flags + ) PURE; + + // Returns information about the debuggee such + // as user vs. kernel, dump vs. live, etc. + STDMETHOD(GetDebuggeeType)( + THIS_ + _Out_ PULONG Class, + _Out_ PULONG Qualifier + ) PURE; + // Returns the type of physical processors in + // the machine. + // Returns one of the IMAGE_FILE_MACHINE values. + STDMETHOD(GetActualProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Returns the type of processor used in the + // current processor context. + STDMETHOD(GetExecutingProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Query all the possible processor types that + // may be encountered during this debug session. + STDMETHOD(GetNumberPossibleExecutingProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetPossibleExecutingProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Get the number of actual processors in + // the machine. + STDMETHOD(GetNumberProcessors)( + THIS_ + _Out_ PULONG Number + ) PURE; + // PlatformId is one of the VER_PLATFORM values. + // Major and minor are as given in the NT + // kernel debugger protocol. + // ServicePackString and ServicePackNumber indicate the + // system service pack level. ServicePackNumber is not + // available in some sessions where the service pack level + // is only expressed as a string. The service pack information + // will be empty if the system does not have a service pack + // applied. + // The build string is string information identifying the + // particular build of the system. The build string is + // empty if the system has no particular identifying + // information. + STDMETHOD(GetSystemVersion)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Major, + _Out_ PULONG Minor, + _Out_writes_opt_(ServicePackStringSize) PSTR ServicePackString, + _In_ ULONG ServicePackStringSize, + _Out_opt_ PULONG ServicePackStringUsed, + _Out_ PULONG ServicePackNumber, + _Out_writes_opt_(BuildStringSize) PSTR BuildString, + _In_ ULONG BuildStringSize, + _Out_opt_ PULONG BuildStringUsed + ) PURE; + // Returns the page size for the currently executing + // processor context. The page size may vary between + // processor types. + STDMETHOD(GetPageSize)( + THIS_ + _Out_ PULONG Size + ) PURE; + // Returns S_OK if the current processor context uses + // 64-bit addresses, otherwise S_FALSE. + STDMETHOD(IsPointer64Bit)( + THIS + ) PURE; + // Reads the bugcheck data area and returns the + // current contents. This method only works + // in kernel debugging sessions. + STDMETHOD(ReadBugCheckData)( + THIS_ + _Out_ PULONG Code, + _Out_ PULONG64 Arg1, + _Out_ PULONG64 Arg2, + _Out_ PULONG64 Arg3, + _Out_ PULONG64 Arg4 + ) PURE; + + // Query all the processor types supported by + // the engine. This is a complete list and is + // not related to the machine running the engine + // or the debuggee. + STDMETHOD(GetNumberSupportedProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetSupportedProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Returns a full, descriptive name and an + // abbreviated name for a processor type. + STDMETHOD(GetProcessorTypeNames)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // Gets and sets the type of processor to + // use when doing things like setting + // breakpoints, accessing registers, + // getting stack traces and so on. + STDMETHOD(GetEffectiveProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + STDMETHOD(SetEffectiveProcessorType)( + THIS_ + _In_ ULONG Type + ) PURE; + + // Returns information about whether and how + // the debuggee is running. Status will + // be GO if the debuggee is running and + // BREAK if it isnt. + // If no debuggee exists the status is + // NO_DEBUGGEE. + // This method is reentrant. + STDMETHOD(GetExecutionStatus)( + THIS_ + _Out_ PULONG Status + ) PURE; + // Changes the execution status of the + // engine from stopped to running. + // Status must be one of the go or step + // status values. + STDMETHOD(SetExecutionStatus)( + THIS_ + _In_ ULONG Status + ) PURE; + + // Controls what code interpretation level the debugger + // runs at. The debugger checks the code level when + // deciding whether to step by a source line or + // assembly instruction along with other related operations. + STDMETHOD(GetCodeLevel)( + THIS_ + _Out_ PULONG Level + ) PURE; + STDMETHOD(SetCodeLevel)( + THIS_ + _In_ ULONG Level + ) PURE; + + // Gets and sets engine control flags. + // These methods are reentrant. + STDMETHOD(GetEngineOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Gets and sets control values for + // handling system error events. + // If the system error level is less + // than or equal to the given levels + // the error may be displayed and + // the default break for the event + // may be set. + STDMETHOD(GetSystemErrorControl)( + THIS_ + _Out_ PULONG OutputLevel, + _Out_ PULONG BreakLevel + ) PURE; + STDMETHOD(SetSystemErrorControl)( + THIS_ + _In_ ULONG OutputLevel, + _In_ ULONG BreakLevel + ) PURE; + + // The command processor supports simple + // string replacement macros in Evaluate and + // Execute. There are currently ten macro + // slots available. Slots 0-9 map to + // the command invocations $u0-$u9. + STDMETHOD(GetTextMacro)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacro)( + THIS_ + _In_ ULONG Slot, + _In_ PCSTR Macro + ) PURE; + + // Controls the default number radix used + // in expressions and commands. + STDMETHOD(GetRadix)( + THIS_ + _Out_ PULONG Radix + ) PURE; + STDMETHOD(SetRadix)( + THIS_ + _In_ ULONG Radix + ) PURE; + + // Evaluates the given expression string and + // returns the resulting value. + // If DesiredType is DEBUG_VALUE_INVALID then + // the natural type is used. + // RemainderIndex, if provided, is set to the index + // of the first character in the input string that was + // not used when evaluating the expression. + STDMETHOD(Evaluate)( + THIS_ + _In_ PCSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + // Attempts to convert the input value to a value + // of the requested type in the output value. + // Conversions can fail if no conversion exists. + // Successful conversions may be lossy. + STDMETHOD(CoerceValue)( + THIS_ + _In_ PDEBUG_VALUE In, + _In_ ULONG OutType, + _Out_ PDEBUG_VALUE Out + ) PURE; + STDMETHOD(CoerceValues)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_VALUE In, + _In_reads_(Count) PULONG OutTypes, + _Out_writes_(Count) PDEBUG_VALUE Out + ) PURE; + + // Executes the given command string. + // If the string has multiple commands + // Execute will not return until all + // of them have been executed. If this + // requires waiting for the debuggee to + // execute an internal wait will be done + // so Execute can take an arbitrary amount + // of time. + STDMETHOD(Execute)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Command, + _In_ ULONG Flags + ) PURE; + // Executes the given command file by + // reading a line at a time and processing + // it with Execute. + STDMETHOD(ExecuteCommandFile)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + // Breakpoint interfaces are described + // elsewhere in this section. + STDMETHOD(GetNumberBreakpoints)( + THIS_ + _Out_ PULONG Number + ) PURE; + // It is possible for this retrieval function to + // fail even with an index within the number of + // existing breakpoints if the breakpoint is + // a private breakpoint. + STDMETHOD(GetBreakpointByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + STDMETHOD(GetBreakpointById)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // If Ids is non-NULL the Count breakpoints + // referred to in the Ids array are returned, + // otherwise breakpoints from index Start to + // Start + Count 1 are returned. + STDMETHOD(GetBreakpointParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Ids, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_BREAKPOINT_PARAMETERS Params + ) PURE; + // Breakpoints are created empty and disabled. + // When their parameters have been set they + // should be enabled by setting the ENABLE flag. + // If DesiredId is DEBUG_ANY_ID then the + // engine picks an unused ID. If DesiredId + // is any other number the engine attempts + // to use the given ID for the breakpoint. + // If another breakpoint exists with that ID + // the call will fail. + STDMETHOD(AddBreakpoint)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // Breakpoint interface is invalid after this call. + STDMETHOD(RemoveBreakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT Bp + ) PURE; + + // Control and use extension DLLs. + STDMETHOD(AddExtension)( + THIS_ + _In_ PCSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(RemoveExtension)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPath)( + THIS_ + _In_ PCSTR Path, + _Out_ PULONG64 Handle + ) PURE; + // If Handle is zero the extension + // chain is walked searching for the + // function. + STDMETHOD(CallExtension)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR Function, + _In_opt_ PCSTR Arguments + ) PURE; + // GetExtensionFunction works like + // GetProcAddress on extension DLLs + // to allow raw function-call-level + // interaction with extension DLLs. + // Such functions do not need to + // follow the standard extension prototype + // if they are not going to be called + // through the text extension interface. + // This function cannot be called remotely. + STDMETHOD(GetExtensionFunction)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + // These methods return alternate + // extension interfaces in order to allow + // interface-style extension DLLs to mix in + // older extension calls. + // Structure sizes must be initialized before + // the call. + // These methods cannot be called remotely. + STDMETHOD(GetWindbgExtensionApis32)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS32 Api + ) PURE; + STDMETHOD(GetWindbgExtensionApis64)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS64 Api + ) PURE; + + // The engine provides a simple mechanism + // to filter common events. Arbitrarily complicated + // filtering can be done by registering event callbacks + // but simple event filtering only requires + // setting the options of one of the predefined + // event filters. + // Simple event filters are either for specific + // events and therefore have an enumerant or + // they are for an exception and are based on + // the exceptions code. Exception filters + // are further divided into exceptions specially + // handled by the engine, which is a fixed set, + // and arbitrary exceptions. + // All three groups of filters are indexed together + // with the specific filters first, then the specific + // exception filters and finally the arbitrary + // exception filters. + // The first specific exception is the default + // exception. If an exception event occurs for + // an exception without settings the default + // exception settings are used. + STDMETHOD(GetNumberEventFilters)( + THIS_ + _Out_ PULONG SpecificEvents, + _Out_ PULONG SpecificExceptions, + _Out_ PULONG ArbitraryExceptions + ) PURE; + // Some filters have descriptive text associated with them. + STDMETHOD(GetEventFilterText)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // All filters support executing a command when the + // event occurs. + STDMETHOD(GetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + STDMETHOD(SetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + // Some specific filters have arguments to further + // qualify their operation. + STDMETHOD(GetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Argument + ) PURE; + // If Codes is non-NULL Start is ignored. + STDMETHOD(GetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Codes, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // The codes in the parameter data control the application + // of the parameter data. If a code is not already in + // the set of filters it is added. If the ExecutionOption + // for a code is REMOVE then the filter is removed. + // Specific exception filters cannot be removed. + STDMETHOD(SetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // Exception filters support an additional command for + // second-chance events. + STDMETHOD(GetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + + // Yields processing to the engine until + // an event occurs. This method may + // only be called by the thread that started + // the debug session. + // When an event occurs the engine carries + // out all event processing such as calling + // callbacks. + // If the callbacks indicate that execution should + // break the wait will return, otherwise it + // goes back to waiting for a new event. + // If the timeout expires, S_FALSE is returned. + // The timeout is not currently supported for + // kernel debugging. + STDMETHOD(WaitForEvent)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG Timeout + ) PURE; + + // Retrieves information about the last event that occurred. + // EventType is one of the event callback mask bits. + // ExtraInformation contains additional event-specific + // information. Not all events have additional information. + STDMETHOD(GetLastEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; + + // IDebugControl2. + + STDMETHOD(GetCurrentTimeDate)( + THIS_ + _Out_ PULONG TimeDate + ) PURE; + // Retrieves the number of seconds since the + // machine started running. + STDMETHOD(GetCurrentSystemUpTime)( + THIS_ + _Out_ PULONG UpTime + ) PURE; + + // If the current session is a dump session, + // retrieves any extended format information. + STDMETHOD(GetDumpFormatFlags)( + THIS_ + _Out_ PULONG FormatFlags + ) PURE; + + // The debugger has been enhanced to allow + // arbitrary text replacements in addition + // to the simple $u0-$u9 text macros. + // Text replacement takes a given source + // text in commands and converts it to the + // given destination text. Replacements + // are named by their source text so that + // only one replacement for a source text + // string can exist. + STDMETHOD(GetNumberTextReplacements)( + THIS_ + _Out_ PULONG NumRepl + ) PURE; + // If SrcText is non-NULL the replacement + // is looked up by source text, otherwise + // Index is used to get the Nth replacement. + STDMETHOD(GetTextReplacement)( + THIS_ + _In_opt_ PCSTR SrcText, + _In_ ULONG Index, + _Out_writes_opt_(SrcBufferSize) PSTR SrcBuffer, + _In_ ULONG SrcBufferSize, + _Out_opt_ PULONG SrcSize, + _Out_writes_opt_(DstBufferSize) PSTR DstBuffer, + _In_ ULONG DstBufferSize, + _Out_opt_ PULONG DstSize + ) PURE; + // Setting the destination text to + // NULL removes the alias. + STDMETHOD(SetTextReplacement)( + THIS_ + _In_ PCSTR SrcText, + _In_opt_ PCSTR DstText + ) PURE; + STDMETHOD(RemoveTextReplacements)( + THIS + ) PURE; + // Outputs the complete list of current + // replacements. + STDMETHOD(OutputTextReplacements)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // IDebugControl3. + + // Control options for assembly and disassembly. + STDMETHOD(GetAssemblyOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Control the expression syntax. + STDMETHOD(GetExpressionSyntax)( + THIS_ + _Out_ PULONG Flags + ) PURE; + STDMETHOD(SetExpressionSyntax)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Look up a syntax by its abbreviated + // name and set it. + STDMETHOD(SetExpressionSyntaxByName)( + THIS_ + _In_ PCSTR AbbrevName + ) PURE; + STDMETHOD(GetNumberExpressionSyntaxes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetExpressionSyntaxNames)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // + // Some debug sessions have only a single + // possible event, such as a snapshot dump + // file; some have dynamic events, such as + // a live debug session; and others may have + // multiple events, such as a dump file that + // contains snapshots from different points + // in time. The following methods allow + // discovery and selection of the available + // events for a session. + // Sessions with one or more static events + // will be able to report all of the events + // when queried. Sessions with dynamic events + // will only report a single event representing + // the current event. + // Switching events constitutes execution and + // changing the current event will alter the + // execution status to a running state, after + // which WaitForEvent must be used to process + // the selected event. + // + + // GetNumberEvents returns S_OK if this is the + // complete set of events possible, such as for + // a static session; or S_FALSE if other events + // may be possible, such as for a dynamic session. + STDMETHOD(GetNumberEvents)( + THIS_ + _Out_ PULONG Events + ) PURE; + // Sessions may have descriptive information for + // the various events available. The amount of + // information varies according to the specific + // session and data. + STDMETHOD(GetEventIndexDescription)( + THIS_ + _In_ ULONG Index, + _In_ ULONG Which, + _In_opt_ PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DescSize + ) PURE; + STDMETHOD(GetCurrentEventIndex)( + THIS_ + _Out_ PULONG Index + ) PURE; + // SetNextEventIndex works like seek in that + // it can set an absolute or relative index. + // SetNextEventIndex works similarly to SetExecutionStatus + // by putting the session into a running state, after + // which the caller must call WaitForEvent. The + // current event index only changes when WaitForEvent + // is called. + STDMETHOD(SetNextEventIndex)( + THIS_ + _In_ ULONG Relation, + _In_ ULONG Value, + _Out_ PULONG NextIndex + ) PURE; + + // IDebugControl4. + + STDMETHOD(GetLogFileWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + STDMETHOD(OpenLogFileWide)( + THIS_ + _In_ PCWSTR File, + _In_ BOOL Append + ) PURE; + + STDMETHOD(InputWide)( + THIS_ + _Out_writes_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + STDMETHOD(ReturnInputWide)( + THIS_ + _In_ PCWSTR Buffer + ) PURE; + + STDMETHODV(OutputWide)( + THIS_ + _In_ ULONG Mask, + _In_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaListWide)( + THIS_ + _In_ ULONG Mask, + _In_ PCWSTR Format, + _In_ va_list Args + ) PURE; + STDMETHODV(ControlledOutputWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaListWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCWSTR Format, + _In_ va_list Args + ) PURE; + + STDMETHODV(OutputPromptWide)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaListWide)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCWSTR Format, + _In_ va_list Args + ) PURE; + STDMETHOD(GetPromptTextWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + + STDMETHOD(AssembleWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCWSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(DisassembleWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + + STDMETHOD(GetProcessorTypeNamesWide)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PWSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PWSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + STDMETHOD(GetTextMacroWide)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacroWide)( + THIS_ + _In_ ULONG Slot, + _In_ PCWSTR Macro + ) PURE; + + STDMETHOD(EvaluateWide)( + THIS_ + _In_ PCWSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + + STDMETHOD(ExecuteWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR Command, + _In_ ULONG Flags + ) PURE; + STDMETHOD(ExecuteCommandFileWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetBreakpointByIndex2)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(GetBreakpointById2)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(AddBreakpoint2)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(RemoveBreakpoint2)( + THIS_ + _In_ PDEBUG_BREAKPOINT2 Bp + ) PURE; + + STDMETHOD(AddExtensionWide)( + THIS_ + _In_ PCWSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPathWide)( + THIS_ + _In_ PCWSTR Path, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(CallExtensionWide)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCWSTR Function, + _In_opt_ PCWSTR Arguments + ) PURE; + STDMETHOD(GetExtensionFunctionWide)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCWSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + + STDMETHOD(GetEventFilterTextWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + STDMETHOD(GetEventFilterCommandWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommandWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterArgumentWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgumentWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Argument + ) PURE; + STDMETHOD(GetExceptionFilterSecondCommandWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommandWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Command + ) PURE; + + STDMETHOD(GetLastEventInformationWide)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; + + STDMETHOD(GetTextReplacementWide)( + THIS_ + _In_opt_ PCWSTR SrcText, + _In_ ULONG Index, + _Out_writes_opt_(SrcBufferSize) PWSTR SrcBuffer, + _In_ ULONG SrcBufferSize, + _Out_opt_ PULONG SrcSize, + _Out_writes_opt_(DstBufferSize) PWSTR DstBuffer, + _In_ ULONG DstBufferSize, + _Out_opt_ PULONG DstSize + ) PURE; + STDMETHOD(SetTextReplacementWide)( + THIS_ + _In_ PCWSTR SrcText, + _In_opt_ PCWSTR DstText + ) PURE; + + STDMETHOD(SetExpressionSyntaxByNameWide)( + THIS_ + _In_ PCWSTR AbbrevName + ) PURE; + STDMETHOD(GetExpressionSyntaxNamesWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(FullNameBufferSize) PWSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PWSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + STDMETHOD(GetEventIndexDescriptionWide)( + THIS_ + _In_ ULONG Index, + _In_ ULONG Which, + _In_opt_ PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DescSize + ) PURE; + + STDMETHOD(GetLogFile2)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PULONG Flags + ) PURE; + STDMETHOD(OpenLogFile2)( + THIS_ + _In_ PCSTR File, + _In_ ULONG Flags + ) PURE; + STDMETHOD(GetLogFile2Wide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PULONG Flags + ) PURE; + STDMETHOD(OpenLogFile2Wide)( + THIS_ + _In_ PCWSTR File, + _In_ ULONG Flags + ) PURE; + + // GetSystemVersion always returns the kd + // major/minor version numbers, which are + // different than the Win32 version numbers. + // GetSystemVersionValues can be used + // to determine the Win32 version values. + STDMETHOD(GetSystemVersionValues)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Win32Major, + _Out_ PULONG Win32Minor, + _Out_opt_ PULONG KdMajor, + _Out_opt_ PULONG KdMinor + ) PURE; + // Strings are selected with DEBUG_SYSVERSTR_*. + STDMETHOD(GetSystemVersionString)( + THIS_ + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(GetSystemVersionStringWide)( + THIS_ + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + + // Stack tracing with a full initial context + // and full context return for each frame. + // The FrameContextsSize parameter is the total + // byte size of FrameContexts. FrameContextsEntrySize + // gives the byte size of each entry in + // FrameContexts. + STDMETHOD(GetContextStackTrace)( + THIS_ + _In_reads_bytes_opt_(StartContextSize) PVOID StartContext, + _In_ ULONG StartContextSize, + _Out_writes_to_opt_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_writes_bytes_opt_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _Out_opt_ PULONG FramesFilled + ) PURE; + STDMETHOD(OutputContextStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_reads_bytes_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _In_ ULONG Flags + ) PURE; + + // Some targets, such as user-mode minidump files, + // have separate "event of interest" information + // stored within them. This method allows + // access to that information. + STDMETHOD(GetStoredEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ContextSize) PVOID Context, + _In_ ULONG ContextSize, + _Out_opt_ PULONG ContextUsed, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed + ) PURE; + + // Managed debugging support relies on debugging + // functionality provided by the Common Language Runtime. + // This method provides feedback on the engine's + // use of the runtime debugging APIs. + STDMETHOD(GetManagedStatus)( + THIS_ + _Out_opt_ PULONG Flags, + _In_ ULONG WhichString, + _Out_writes_opt_(StringSize) PSTR String, + _In_ ULONG StringSize, + _Out_opt_ PULONG StringNeeded + ) PURE; + STDMETHOD(GetManagedStatusWide)( + THIS_ + _Out_opt_ PULONG Flags, + _In_ ULONG WhichString, + _Out_writes_opt_(StringSize) PWSTR String, + _In_ ULONG StringSize, + _Out_opt_ PULONG StringNeeded + ) PURE; + // Clears and reinitializes the engine's + // managed code debugging support. + STDMETHOD(ResetManagedStatus)( + THIS_ + _In_ ULONG Flags + ) PURE; + + // IDebugControl5 + STDMETHOD(GetStackTraceEx)( + THIS_ + _In_ ULONG64 FrameOffset, + _In_ ULONG64 StackOffset, + _In_ ULONG64 InstructionOffset, + _Out_writes_to_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _Out_opt_ PULONG FramesFilled + ) PURE; + + STDMETHOD(OutputStackTraceEx)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_opt_(FramesSize) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetContextStackTraceEx)( + THIS_ + _In_reads_bytes_opt_(StartContextSize) PVOID StartContext, + _In_ ULONG StartContextSize, + _Out_writes_to_opt_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _Out_writes_bytes_opt_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _Out_opt_ PULONG FramesFilled + ) PURE; + + STDMETHOD(OutputContextStackTraceEx)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_(FramesSize) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _In_reads_bytes_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetBreakpointByGuid)( + THIS_ + _In_ LPGUID Guid, + _Out_ PDEBUG_BREAKPOINT3* Bp + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugControl6 +DECLARE_INTERFACE_(IDebugControl6, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugControl. + + // Checks for a user interrupt, such a Ctrl-C + // or stop button. + // This method is reentrant. + STDMETHOD(GetInterrupt)( + THIS + ) PURE; + // Registers a user interrupt. + // This method is reentrant. + STDMETHOD(SetInterrupt)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Interrupting a user-mode process requires + // access to some system resources that the + // process may hold itself, preventing the + // interrupt from occurring. The engine + // will time-out pending interrupt requests + // and simulate an interrupt if necessary. + // These methods control the interrupt timeout. + STDMETHOD(GetInterruptTimeout)( + THIS_ + _Out_ PULONG Seconds + ) PURE; + STDMETHOD(SetInterruptTimeout)( + THIS_ + _In_ ULONG Seconds + ) PURE; + + STDMETHOD(GetLogFile)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + // Opens a log file which collects all + // output. Output from every client except + // those that explicitly disable logging + // goes into the log. + // Opening a log file closes any log file + // already open. + STDMETHOD(OpenLogFile)( + THIS_ + _In_ PCSTR File, + _In_ BOOL Append + ) PURE; + STDMETHOD(CloseLogFile)( + THIS + ) PURE; + // Controls what output is logged. + STDMETHOD(GetLogMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetLogMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + + // Input requests input from all clients. + // The first input that is returned is used + // to satisfy the call. Other returned + // input is discarded. + STDMETHOD(Input)( + THIS_ + _Out_writes_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + // This method is used by clients to return + // input when it is available. It will + // return S_OK if the input is used to + // satisfy an Input call and S_FALSE if + // the input is ignored. + // This method is reentrant. + STDMETHOD(ReturnInput)( + THIS_ + _In_ PCSTR Buffer + ) PURE; + + // Sends output through clients + // output callbacks if the mask is allowed + // by the current output control mask and + // according to the output distribution + // settings. + STDMETHODV(Output)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaList)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + // The following methods allow direct control + // over the distribution of the given output + // for situations where something other than + // the default is desired. These methods require + // extra work in the engine so they should + // only be used when necessary. + STDMETHODV(ControlledOutput)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + + // Displays the standard command-line prompt + // followed by the given output. If Format + // is NULL no additional output is produced. + // Output is produced under the + // DEBUG_OUTPUT_PROMPT mask. + // This method only outputs the prompt; it + // does not get input. + STDMETHODV(OutputPrompt)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + _In_ va_list Args + ) PURE; + // Gets the text that would be displayed by OutputPrompt. + STDMETHOD(GetPromptText)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // Outputs information about the current + // debuggee state such as a register + // summary, disassembly at the current PC, + // closest symbol and others. + // Uses the line prefix. + STDMETHOD(OutputCurrentState)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // Outputs the debugger and extension version + // information. This method is reentrant. + // Uses the line prefix. + STDMETHOD(OutputVersionInformation)( + THIS_ + _In_ ULONG OutputControl + ) PURE; + + // In user-mode debugging sessions the + // engine will set an event when + // exceptions are continued. This can + // be used to synchronize other processes + // with the debuggers handling of events. + // For example, this is used to support + // the e argument to ntsd. + STDMETHOD(GetNotifyEventHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(SetNotifyEventHandle)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Assemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(Disassemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + // Returns the value of the effective address + // computed for the last Disassemble, if there + // was one. + STDMETHOD(GetDisassembleEffectiveOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Uses the line prefix if necessary. + STDMETHOD(OutputDisassembly)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_ PULONG64 EndOffset + ) PURE; + // Produces multiple lines of disassembly output. + // There will be PreviousLines of disassembly before + // the given offset if a valid disassembly exists. + // In all, there will be TotalLines of output produced. + // The first and last line offsets are returned + // specially and all lines offsets can be retrieved + // through LineOffsets. LineOffsets will contain + // offsets for each line where disassembly started. + // When disassembly of a single instruction takes + // multiple lines the initial offset will be followed + // by DEBUG_INVALID_OFFSET. + // Uses the line prefix. + STDMETHOD(OutputDisassemblyLines)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG PreviousLines, + _In_ ULONG TotalLines, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_opt_ PULONG OffsetLine, + _Out_opt_ PULONG64 StartOffset, + _Out_opt_ PULONG64 EndOffset, + _Out_writes_opt_(TotalLines) PULONG64 LineOffsets + ) PURE; + // Returns the offset of the start of + // the instruction thats the given + // delta away from the instruction + // at the initial offset. + // This routine does not check for + // validity of the instruction or + // the memory containing it. + STDMETHOD(GetNearInstruction)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_ PULONG64 NearOffset + ) PURE; + + // Offsets can be passed in as zero to use the current + // thread state. + STDMETHOD(GetStackTrace)( + THIS_ + _In_ ULONG64 FrameOffset, + _In_ ULONG64 StackOffset, + _In_ ULONG64 InstructionOffset, + _Out_writes_to_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_opt_ PULONG FramesFilled + ) PURE; + // Does a simple stack trace to determine + // what the current return address is. + STDMETHOD(GetReturnOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // If Frames is NULL OutputStackTrace will + // use GetStackTrace to get FramesSize frames + // and then output them. The current register + // values for frame, stack and instruction offsets + // are used. + // Uses the line prefix. + STDMETHOD(OutputStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_opt_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_ ULONG Flags + ) PURE; + + // Returns information about the debuggee such + // as user vs. kernel, dump vs. live, etc. + STDMETHOD(GetDebuggeeType)( + THIS_ + _Out_ PULONG Class, + _Out_ PULONG Qualifier + ) PURE; + // Returns the type of physical processors in + // the machine. + // Returns one of the IMAGE_FILE_MACHINE values. + STDMETHOD(GetActualProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Returns the type of processor used in the + // current processor context. + STDMETHOD(GetExecutingProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Query all the possible processor types that + // may be encountered during this debug session. + STDMETHOD(GetNumberPossibleExecutingProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetPossibleExecutingProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Get the number of actual processors in + // the machine. + STDMETHOD(GetNumberProcessors)( + THIS_ + _Out_ PULONG Number + ) PURE; + // PlatformId is one of the VER_PLATFORM values. + // Major and minor are as given in the NT + // kernel debugger protocol. + // ServicePackString and ServicePackNumber indicate the + // system service pack level. ServicePackNumber is not + // available in some sessions where the service pack level + // is only expressed as a string. The service pack information + // will be empty if the system does not have a service pack + // applied. + // The build string is string information identifying the + // particular build of the system. The build string is + // empty if the system has no particular identifying + // information. + STDMETHOD(GetSystemVersion)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Major, + _Out_ PULONG Minor, + _Out_writes_opt_(ServicePackStringSize) PSTR ServicePackString, + _In_ ULONG ServicePackStringSize, + _Out_opt_ PULONG ServicePackStringUsed, + _Out_ PULONG ServicePackNumber, + _Out_writes_opt_(BuildStringSize) PSTR BuildString, + _In_ ULONG BuildStringSize, + _Out_opt_ PULONG BuildStringUsed + ) PURE; + // Returns the page size for the currently executing + // processor context. The page size may vary between + // processor types. + STDMETHOD(GetPageSize)( + THIS_ + _Out_ PULONG Size + ) PURE; + // Returns S_OK if the current processor context uses + // 64-bit addresses, otherwise S_FALSE. + STDMETHOD(IsPointer64Bit)( + THIS + ) PURE; + // Reads the bugcheck data area and returns the + // current contents. This method only works + // in kernel debugging sessions. + STDMETHOD(ReadBugCheckData)( + THIS_ + _Out_ PULONG Code, + _Out_ PULONG64 Arg1, + _Out_ PULONG64 Arg2, + _Out_ PULONG64 Arg3, + _Out_ PULONG64 Arg4 + ) PURE; + + // Query all the processor types supported by + // the engine. This is a complete list and is + // not related to the machine running the engine + // or the debuggee. + STDMETHOD(GetNumberSupportedProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetSupportedProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Returns a full, descriptive name and an + // abbreviated name for a processor type. + STDMETHOD(GetProcessorTypeNames)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // Gets and sets the type of processor to + // use when doing things like setting + // breakpoints, accessing registers, + // getting stack traces and so on. + STDMETHOD(GetEffectiveProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + STDMETHOD(SetEffectiveProcessorType)( + THIS_ + _In_ ULONG Type + ) PURE; + + // Returns information about whether and how + // the debuggee is running. Status will + // be GO if the debuggee is running and + // BREAK if it isnt. + // If no debuggee exists the status is + // NO_DEBUGGEE. + // This method is reentrant. + STDMETHOD(GetExecutionStatus)( + THIS_ + _Out_ PULONG Status + ) PURE; + // Changes the execution status of the + // engine from stopped to running. + // Status must be one of the go or step + // status values. + STDMETHOD(SetExecutionStatus)( + THIS_ + _In_ ULONG Status + ) PURE; + + // Controls what code interpretation level the debugger + // runs at. The debugger checks the code level when + // deciding whether to step by a source line or + // assembly instruction along with other related operations. + STDMETHOD(GetCodeLevel)( + THIS_ + _Out_ PULONG Level + ) PURE; + STDMETHOD(SetCodeLevel)( + THIS_ + _In_ ULONG Level + ) PURE; + + // Gets and sets engine control flags. + // These methods are reentrant. + STDMETHOD(GetEngineOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Gets and sets control values for + // handling system error events. + // If the system error level is less + // than or equal to the given levels + // the error may be displayed and + // the default break for the event + // may be set. + STDMETHOD(GetSystemErrorControl)( + THIS_ + _Out_ PULONG OutputLevel, + _Out_ PULONG BreakLevel + ) PURE; + STDMETHOD(SetSystemErrorControl)( + THIS_ + _In_ ULONG OutputLevel, + _In_ ULONG BreakLevel + ) PURE; + + // The command processor supports simple + // string replacement macros in Evaluate and + // Execute. There are currently ten macro + // slots available. Slots 0-9 map to + // the command invocations $u0-$u9. + STDMETHOD(GetTextMacro)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacro)( + THIS_ + _In_ ULONG Slot, + _In_ PCSTR Macro + ) PURE; + + // Controls the default number radix used + // in expressions and commands. + STDMETHOD(GetRadix)( + THIS_ + _Out_ PULONG Radix + ) PURE; + STDMETHOD(SetRadix)( + THIS_ + _In_ ULONG Radix + ) PURE; + + // Evaluates the given expression string and + // returns the resulting value. + // If DesiredType is DEBUG_VALUE_INVALID then + // the natural type is used. + // RemainderIndex, if provided, is set to the index + // of the first character in the input string that was + // not used when evaluating the expression. + STDMETHOD(Evaluate)( + THIS_ + _In_ PCSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + // Attempts to convert the input value to a value + // of the requested type in the output value. + // Conversions can fail if no conversion exists. + // Successful conversions may be lossy. + STDMETHOD(CoerceValue)( + THIS_ + _In_ PDEBUG_VALUE In, + _In_ ULONG OutType, + _Out_ PDEBUG_VALUE Out + ) PURE; + STDMETHOD(CoerceValues)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_VALUE In, + _In_reads_(Count) PULONG OutTypes, + _Out_writes_(Count) PDEBUG_VALUE Out + ) PURE; + + // Executes the given command string. + // If the string has multiple commands + // Execute will not return until all + // of them have been executed. If this + // requires waiting for the debuggee to + // execute an internal wait will be done + // so Execute can take an arbitrary amount + // of time. + STDMETHOD(Execute)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Command, + _In_ ULONG Flags + ) PURE; + // Executes the given command file by + // reading a line at a time and processing + // it with Execute. + STDMETHOD(ExecuteCommandFile)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + // Breakpoint interfaces are described + // elsewhere in this section. + STDMETHOD(GetNumberBreakpoints)( + THIS_ + _Out_ PULONG Number + ) PURE; + // It is possible for this retrieval function to + // fail even with an index within the number of + // existing breakpoints if the breakpoint is + // a private breakpoint. + STDMETHOD(GetBreakpointByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + STDMETHOD(GetBreakpointById)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // If Ids is non-NULL the Count breakpoints + // referred to in the Ids array are returned, + // otherwise breakpoints from index Start to + // Start + Count 1 are returned. + STDMETHOD(GetBreakpointParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Ids, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_BREAKPOINT_PARAMETERS Params + ) PURE; + // Breakpoints are created empty and disabled. + // When their parameters have been set they + // should be enabled by setting the ENABLE flag. + // If DesiredId is DEBUG_ANY_ID then the + // engine picks an unused ID. If DesiredId + // is any other number the engine attempts + // to use the given ID for the breakpoint. + // If another breakpoint exists with that ID + // the call will fail. + STDMETHOD(AddBreakpoint)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // Breakpoint interface is invalid after this call. + STDMETHOD(RemoveBreakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT Bp + ) PURE; + + // Control and use extension DLLs. + STDMETHOD(AddExtension)( + THIS_ + _In_ PCSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(RemoveExtension)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPath)( + THIS_ + _In_ PCSTR Path, + _Out_ PULONG64 Handle + ) PURE; + // If Handle is zero the extension + // chain is walked searching for the + // function. + STDMETHOD(CallExtension)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR Function, + _In_opt_ PCSTR Arguments + ) PURE; + // GetExtensionFunction works like + // GetProcAddress on extension DLLs + // to allow raw function-call-level + // interaction with extension DLLs. + // Such functions do not need to + // follow the standard extension prototype + // if they are not going to be called + // through the text extension interface. + // This function cannot be called remotely. + STDMETHOD(GetExtensionFunction)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + // These methods return alternate + // extension interfaces in order to allow + // interface-style extension DLLs to mix in + // older extension calls. + // Structure sizes must be initialized before + // the call. + // These methods cannot be called remotely. + STDMETHOD(GetWindbgExtensionApis32)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS32 Api + ) PURE; + STDMETHOD(GetWindbgExtensionApis64)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS64 Api + ) PURE; + + // The engine provides a simple mechanism + // to filter common events. Arbitrarily complicated + // filtering can be done by registering event callbacks + // but simple event filtering only requires + // setting the options of one of the predefined + // event filters. + // Simple event filters are either for specific + // events and therefore have an enumerant or + // they are for an exception and are based on + // the exceptions code. Exception filters + // are further divided into exceptions specially + // handled by the engine, which is a fixed set, + // and arbitrary exceptions. + // All three groups of filters are indexed together + // with the specific filters first, then the specific + // exception filters and finally the arbitrary + // exception filters. + // The first specific exception is the default + // exception. If an exception event occurs for + // an exception without settings the default + // exception settings are used. + STDMETHOD(GetNumberEventFilters)( + THIS_ + _Out_ PULONG SpecificEvents, + _Out_ PULONG SpecificExceptions, + _Out_ PULONG ArbitraryExceptions + ) PURE; + // Some filters have descriptive text associated with them. + STDMETHOD(GetEventFilterText)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // All filters support executing a command when the + // event occurs. + STDMETHOD(GetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + STDMETHOD(SetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + // Some specific filters have arguments to further + // qualify their operation. + STDMETHOD(GetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Argument + ) PURE; + // If Codes is non-NULL Start is ignored. + STDMETHOD(GetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Codes, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // The codes in the parameter data control the application + // of the parameter data. If a code is not already in + // the set of filters it is added. If the ExecutionOption + // for a code is REMOVE then the filter is removed. + // Specific exception filters cannot be removed. + STDMETHOD(SetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // Exception filters support an additional command for + // second-chance events. + STDMETHOD(GetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + + // Yields processing to the engine until + // an event occurs. This method may + // only be called by the thread that started + // the debug session. + // When an event occurs the engine carries + // out all event processing such as calling + // callbacks. + // If the callbacks indicate that execution should + // break the wait will return, otherwise it + // goes back to waiting for a new event. + // If the timeout expires, S_FALSE is returned. + // The timeout is not currently supported for + // kernel debugging. + STDMETHOD(WaitForEvent)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG Timeout + ) PURE; + + // Retrieves information about the last event that occurred. + // EventType is one of the event callback mask bits. + // ExtraInformation contains additional event-specific + // information. Not all events have additional information. + STDMETHOD(GetLastEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; + + // IDebugControl2. + + STDMETHOD(GetCurrentTimeDate)( + THIS_ + _Out_ PULONG TimeDate + ) PURE; + // Retrieves the number of seconds since the + // machine started running. + STDMETHOD(GetCurrentSystemUpTime)( + THIS_ + _Out_ PULONG UpTime + ) PURE; + + // If the current session is a dump session, + // retrieves any extended format information. + STDMETHOD(GetDumpFormatFlags)( + THIS_ + _Out_ PULONG FormatFlags + ) PURE; + + // The debugger has been enhanced to allow + // arbitrary text replacements in addition + // to the simple $u0-$u9 text macros. + // Text replacement takes a given source + // text in commands and converts it to the + // given destination text. Replacements + // are named by their source text so that + // only one replacement for a source text + // string can exist. + STDMETHOD(GetNumberTextReplacements)( + THIS_ + _Out_ PULONG NumRepl + ) PURE; + // If SrcText is non-NULL the replacement + // is looked up by source text, otherwise + // Index is used to get the Nth replacement. + STDMETHOD(GetTextReplacement)( + THIS_ + _In_opt_ PCSTR SrcText, + _In_ ULONG Index, + _Out_writes_opt_(SrcBufferSize) PSTR SrcBuffer, + _In_ ULONG SrcBufferSize, + _Out_opt_ PULONG SrcSize, + _Out_writes_opt_(DstBufferSize) PSTR DstBuffer, + _In_ ULONG DstBufferSize, + _Out_opt_ PULONG DstSize + ) PURE; + // Setting the destination text to + // NULL removes the alias. + STDMETHOD(SetTextReplacement)( + THIS_ + _In_ PCSTR SrcText, + _In_opt_ PCSTR DstText + ) PURE; + STDMETHOD(RemoveTextReplacements)( + THIS + ) PURE; + // Outputs the complete list of current + // replacements. + STDMETHOD(OutputTextReplacements)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // IDebugControl3. + + // Control options for assembly and disassembly. + STDMETHOD(GetAssemblyOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Control the expression syntax. + STDMETHOD(GetExpressionSyntax)( + THIS_ + _Out_ PULONG Flags + ) PURE; + STDMETHOD(SetExpressionSyntax)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Look up a syntax by its abbreviated + // name and set it. + STDMETHOD(SetExpressionSyntaxByName)( + THIS_ + _In_ PCSTR AbbrevName + ) PURE; + STDMETHOD(GetNumberExpressionSyntaxes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetExpressionSyntaxNames)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // + // Some debug sessions have only a single + // possible event, such as a snapshot dump + // file; some have dynamic events, such as + // a live debug session; and others may have + // multiple events, such as a dump file that + // contains snapshots from different points + // in time. The following methods allow + // discovery and selection of the available + // events for a session. + // Sessions with one or more static events + // will be able to report all of the events + // when queried. Sessions with dynamic events + // will only report a single event representing + // the current event. + // Switching events constitutes execution and + // changing the current event will alter the + // execution status to a running state, after + // which WaitForEvent must be used to process + // the selected event. + // + + // GetNumberEvents returns S_OK if this is the + // complete set of events possible, such as for + // a static session; or S_FALSE if other events + // may be possible, such as for a dynamic session. + STDMETHOD(GetNumberEvents)( + THIS_ + _Out_ PULONG Events + ) PURE; + // Sessions may have descriptive information for + // the various events available. The amount of + // information varies according to the specific + // session and data. + STDMETHOD(GetEventIndexDescription)( + THIS_ + _In_ ULONG Index, + _In_ ULONG Which, + _In_opt_ PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DescSize + ) PURE; + STDMETHOD(GetCurrentEventIndex)( + THIS_ + _Out_ PULONG Index + ) PURE; + // SetNextEventIndex works like seek in that + // it can set an absolute or relative index. + // SetNextEventIndex works similarly to SetExecutionStatus + // by putting the session into a running state, after + // which the caller must call WaitForEvent. The + // current event index only changes when WaitForEvent + // is called. + STDMETHOD(SetNextEventIndex)( + THIS_ + _In_ ULONG Relation, + _In_ ULONG Value, + _Out_ PULONG NextIndex + ) PURE; + + // IDebugControl4. + + STDMETHOD(GetLogFileWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + STDMETHOD(OpenLogFileWide)( + THIS_ + _In_ PCWSTR File, + _In_ BOOL Append + ) PURE; + + STDMETHOD(InputWide)( + THIS_ + _Out_writes_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + STDMETHOD(ReturnInputWide)( + THIS_ + _In_ PCWSTR Buffer + ) PURE; + + STDMETHODV(OutputWide)( + THIS_ + _In_ ULONG Mask, + _In_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaListWide)( + THIS_ + _In_ ULONG Mask, + _In_ PCWSTR Format, + _In_ va_list Args + ) PURE; + STDMETHODV(ControlledOutputWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaListWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCWSTR Format, + _In_ va_list Args + ) PURE; + + STDMETHODV(OutputPromptWide)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaListWide)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCWSTR Format, + _In_ va_list Args + ) PURE; + STDMETHOD(GetPromptTextWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + + STDMETHOD(AssembleWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCWSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(DisassembleWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + + STDMETHOD(GetProcessorTypeNamesWide)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PWSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PWSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + STDMETHOD(GetTextMacroWide)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacroWide)( + THIS_ + _In_ ULONG Slot, + _In_ PCWSTR Macro + ) PURE; + + STDMETHOD(EvaluateWide)( + THIS_ + _In_ PCWSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + + STDMETHOD(ExecuteWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR Command, + _In_ ULONG Flags + ) PURE; + STDMETHOD(ExecuteCommandFileWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetBreakpointByIndex2)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(GetBreakpointById2)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(AddBreakpoint2)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(RemoveBreakpoint2)( + THIS_ + _In_ PDEBUG_BREAKPOINT2 Bp + ) PURE; + + STDMETHOD(AddExtensionWide)( + THIS_ + _In_ PCWSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPathWide)( + THIS_ + _In_ PCWSTR Path, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(CallExtensionWide)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCWSTR Function, + _In_opt_ PCWSTR Arguments + ) PURE; + STDMETHOD(GetExtensionFunctionWide)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCWSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + + STDMETHOD(GetEventFilterTextWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + STDMETHOD(GetEventFilterCommandWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommandWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterArgumentWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgumentWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Argument + ) PURE; + STDMETHOD(GetExceptionFilterSecondCommandWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommandWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Command + ) PURE; + + STDMETHOD(GetLastEventInformationWide)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; + + STDMETHOD(GetTextReplacementWide)( + THIS_ + _In_opt_ PCWSTR SrcText, + _In_ ULONG Index, + _Out_writes_opt_(SrcBufferSize) PWSTR SrcBuffer, + _In_ ULONG SrcBufferSize, + _Out_opt_ PULONG SrcSize, + _Out_writes_opt_(DstBufferSize) PWSTR DstBuffer, + _In_ ULONG DstBufferSize, + _Out_opt_ PULONG DstSize + ) PURE; + STDMETHOD(SetTextReplacementWide)( + THIS_ + _In_ PCWSTR SrcText, + _In_opt_ PCWSTR DstText + ) PURE; + + STDMETHOD(SetExpressionSyntaxByNameWide)( + THIS_ + _In_ PCWSTR AbbrevName + ) PURE; + STDMETHOD(GetExpressionSyntaxNamesWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(FullNameBufferSize) PWSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PWSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + STDMETHOD(GetEventIndexDescriptionWide)( + THIS_ + _In_ ULONG Index, + _In_ ULONG Which, + _In_opt_ PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DescSize + ) PURE; + + STDMETHOD(GetLogFile2)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PULONG Flags + ) PURE; + STDMETHOD(OpenLogFile2)( + THIS_ + _In_ PCSTR File, + _In_ ULONG Flags + ) PURE; + STDMETHOD(GetLogFile2Wide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PULONG Flags + ) PURE; + STDMETHOD(OpenLogFile2Wide)( + THIS_ + _In_ PCWSTR File, + _In_ ULONG Flags + ) PURE; + + // GetSystemVersion always returns the kd + // major/minor version numbers, which are + // different than the Win32 version numbers. + // GetSystemVersionValues can be used + // to determine the Win32 version values. + STDMETHOD(GetSystemVersionValues)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Win32Major, + _Out_ PULONG Win32Minor, + _Out_opt_ PULONG KdMajor, + _Out_opt_ PULONG KdMinor + ) PURE; + // Strings are selected with DEBUG_SYSVERSTR_*. + STDMETHOD(GetSystemVersionString)( + THIS_ + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(GetSystemVersionStringWide)( + THIS_ + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + + // Stack tracing with a full initial context + // and full context return for each frame. + // The FrameContextsSize parameter is the total + // byte size of FrameContexts. FrameContextsEntrySize + // gives the byte size of each entry in + // FrameContexts. + STDMETHOD(GetContextStackTrace)( + THIS_ + _In_reads_bytes_opt_(StartContextSize) PVOID StartContext, + _In_ ULONG StartContextSize, + _Out_writes_to_opt_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_writes_bytes_opt_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _Out_opt_ PULONG FramesFilled + ) PURE; + STDMETHOD(OutputContextStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_reads_bytes_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _In_ ULONG Flags + ) PURE; + + // Some targets, such as user-mode minidump files, + // have separate "event of interest" information + // stored within them. This method allows + // access to that information. + STDMETHOD(GetStoredEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ContextSize) PVOID Context, + _In_ ULONG ContextSize, + _Out_opt_ PULONG ContextUsed, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed + ) PURE; + + // Managed debugging support relies on debugging + // functionality provided by the Common Language Runtime. + // This method provides feedback on the engine's + // use of the runtime debugging APIs. + STDMETHOD(GetManagedStatus)( + THIS_ + _Out_opt_ PULONG Flags, + _In_ ULONG WhichString, + _Out_writes_opt_(StringSize) PSTR String, + _In_ ULONG StringSize, + _Out_opt_ PULONG StringNeeded + ) PURE; + STDMETHOD(GetManagedStatusWide)( + THIS_ + _Out_opt_ PULONG Flags, + _In_ ULONG WhichString, + _Out_writes_opt_(StringSize) PWSTR String, + _In_ ULONG StringSize, + _Out_opt_ PULONG StringNeeded + ) PURE; + // Clears and reinitializes the engine's + // managed code debugging support. + STDMETHOD(ResetManagedStatus)( + THIS_ + _In_ ULONG Flags + ) PURE; + + // IDebugControl5 + STDMETHOD(GetStackTraceEx)( + THIS_ + _In_ ULONG64 FrameOffset, + _In_ ULONG64 StackOffset, + _In_ ULONG64 InstructionOffset, + _Out_writes_to_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _Out_opt_ PULONG FramesFilled + ) PURE; + + STDMETHOD(OutputStackTraceEx)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_opt_(FramesSize) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetContextStackTraceEx)( + THIS_ + _In_reads_bytes_opt_(StartContextSize) PVOID StartContext, + _In_ ULONG StartContextSize, + _Out_writes_to_opt_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _Out_writes_bytes_opt_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _Out_opt_ PULONG FramesFilled + ) PURE; + + STDMETHOD(OutputContextStackTraceEx)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_(FramesSize) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _In_reads_bytes_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetBreakpointByGuid)( + THIS_ + _In_ LPGUID Guid, + _Out_ PDEBUG_BREAKPOINT3* Bp + ) PURE; + + // IDebugControl6 + + // Returns additional info states for + STDMETHOD(GetExecutionStatusEx)( + THIS_ + _Out_ PULONG Status + ) PURE; + + STDMETHOD(GetSynchronizationStatus)( + THIS_ + _Out_ PULONG SendsAttempted, + _Out_ PULONG SecondsSinceLastResponse + ) PURE; + +}; + +#define DEBUG_EXEC_FLAGS_NONBLOCK 0x00000001 + +#undef INTERFACE +#define INTERFACE IDebugControl7 +DECLARE_INTERFACE_(IDebugControl7, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugControl. + + // Checks for a user interrupt, such a Ctrl-C + // or stop button. + // This method is reentrant. + STDMETHOD(GetInterrupt)( + THIS + ) PURE; + // Registers a user interrupt. + // This method is reentrant. + STDMETHOD(SetInterrupt)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Interrupting a user-mode process requires + // access to some system resources that the + // process may hold itself, preventing the + // interrupt from occurring. The engine + // will time-out pending interrupt requests + // and simulate an interrupt if necessary. + // These methods control the interrupt timeout. + STDMETHOD(GetInterruptTimeout)( + THIS_ + _Out_ PULONG Seconds + ) PURE; + STDMETHOD(SetInterruptTimeout)( + THIS_ + _In_ ULONG Seconds + ) PURE; + + STDMETHOD(GetLogFile)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + // Opens a log file which collects all + // output. Output from every client except + // those that explicitly disable logging + // goes into the log. + // Opening a log file closes any log file + // already open. + STDMETHOD(OpenLogFile)( + THIS_ + _In_ PCSTR File, + _In_ BOOL Append + ) PURE; + STDMETHOD(CloseLogFile)( + THIS + ) PURE; + // Controls what output is logged. + STDMETHOD(GetLogMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + STDMETHOD(SetLogMask)( + THIS_ + _In_ ULONG Mask + ) PURE; + + // Input requests input from all clients. + // The first input that is returned is used + // to satisfy the call. Other returned + // input is discarded. + STDMETHOD(Input)( + THIS_ + _Out_writes_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + // This method is used by clients to return + // input when it is available. It will + // return S_OK if the input is used to + // satisfy an Input call and S_FALSE if + // the input is ignored. + // This method is reentrant. + STDMETHOD(ReturnInput)( + THIS_ + _In_ PCSTR Buffer + ) PURE; + + // Sends output through clients + // output callbacks if the mask is allowed + // by the current output control mask and + // according to the output distribution + // settings. + STDMETHODV(Output)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaList)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + // The following methods allow direct control + // over the distribution of the given output + // for situations where something other than + // the default is desired. These methods require + // extra work in the engine so they should + // only be used when necessary. + STDMETHODV(ControlledOutput)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCSTR Format, + _In_ va_list Args + ) PURE; + + // Displays the standard command-line prompt + // followed by the given output. If Format + // is NULL no additional output is produced. + // Output is produced under the + // DEBUG_OUTPUT_PROMPT mask. + // This method only outputs the prompt; it + // does not get input. + STDMETHODV(OutputPrompt)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaList)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCSTR Format, + _In_ va_list Args + ) PURE; + // Gets the text that would be displayed by OutputPrompt. + STDMETHOD(GetPromptText)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // Outputs information about the current + // debuggee state such as a register + // summary, disassembly at the current PC, + // closest symbol and others. + // Uses the line prefix. + STDMETHOD(OutputCurrentState)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // Outputs the debugger and extension version + // information. This method is reentrant. + // Uses the line prefix. + STDMETHOD(OutputVersionInformation)( + THIS_ + _In_ ULONG OutputControl + ) PURE; + + // In user-mode debugging sessions the + // engine will set an event when + // exceptions are continued. This can + // be used to synchronize other processes + // with the debuggers handling of events. + // For example, this is used to support + // the e argument to ntsd. + STDMETHOD(GetNotifyEventHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(SetNotifyEventHandle)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Assemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(Disassemble)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + // Returns the value of the effective address + // computed for the last Disassemble, if there + // was one. + STDMETHOD(GetDisassembleEffectiveOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Uses the line prefix if necessary. + STDMETHOD(OutputDisassembly)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_ PULONG64 EndOffset + ) PURE; + // Produces multiple lines of disassembly output. + // There will be PreviousLines of disassembly before + // the given offset if a valid disassembly exists. + // In all, there will be TotalLines of output produced. + // The first and last line offsets are returned + // specially and all lines offsets can be retrieved + // through LineOffsets. LineOffsets will contain + // offsets for each line where disassembly started. + // When disassembly of a single instruction takes + // multiple lines the initial offset will be followed + // by DEBUG_INVALID_OFFSET. + // Uses the line prefix. + STDMETHOD(OutputDisassemblyLines)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG PreviousLines, + _In_ ULONG TotalLines, + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_opt_ PULONG OffsetLine, + _Out_opt_ PULONG64 StartOffset, + _Out_opt_ PULONG64 EndOffset, + _Out_writes_opt_(TotalLines) PULONG64 LineOffsets + ) PURE; + // Returns the offset of the start of + // the instruction thats the given + // delta away from the instruction + // at the initial offset. + // This routine does not check for + // validity of the instruction or + // the memory containing it. + STDMETHOD(GetNearInstruction)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_ PULONG64 NearOffset + ) PURE; + + // Offsets can be passed in as zero to use the current + // thread state. + STDMETHOD(GetStackTrace)( + THIS_ + _In_ ULONG64 FrameOffset, + _In_ ULONG64 StackOffset, + _In_ ULONG64 InstructionOffset, + _Out_writes_to_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_opt_ PULONG FramesFilled + ) PURE; + // Does a simple stack trace to determine + // what the current return address is. + STDMETHOD(GetReturnOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // If Frames is NULL OutputStackTrace will + // use GetStackTrace to get FramesSize frames + // and then output them. The current register + // values for frame, stack and instruction offsets + // are used. + // Uses the line prefix. + STDMETHOD(OutputStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_opt_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_ ULONG Flags + ) PURE; + + // Returns information about the debuggee such + // as user vs. kernel, dump vs. live, etc. + STDMETHOD(GetDebuggeeType)( + THIS_ + _Out_ PULONG Class, + _Out_ PULONG Qualifier + ) PURE; + // Returns the type of physical processors in + // the machine. + // Returns one of the IMAGE_FILE_MACHINE values. + STDMETHOD(GetActualProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Returns the type of processor used in the + // current processor context. + STDMETHOD(GetExecutingProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + // Query all the possible processor types that + // may be encountered during this debug session. + STDMETHOD(GetNumberPossibleExecutingProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetPossibleExecutingProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Get the number of actual processors in + // the machine. + STDMETHOD(GetNumberProcessors)( + THIS_ + _Out_ PULONG Number + ) PURE; + // PlatformId is one of the VER_PLATFORM values. + // Major and minor are as given in the NT + // kernel debugger protocol. + // ServicePackString and ServicePackNumber indicate the + // system service pack level. ServicePackNumber is not + // available in some sessions where the service pack level + // is only expressed as a string. The service pack information + // will be empty if the system does not have a service pack + // applied. + // The build string is string information identifying the + // particular build of the system. The build string is + // empty if the system has no particular identifying + // information. + STDMETHOD(GetSystemVersion)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Major, + _Out_ PULONG Minor, + _Out_writes_opt_(ServicePackStringSize) PSTR ServicePackString, + _In_ ULONG ServicePackStringSize, + _Out_opt_ PULONG ServicePackStringUsed, + _Out_ PULONG ServicePackNumber, + _Out_writes_opt_(BuildStringSize) PSTR BuildString, + _In_ ULONG BuildStringSize, + _Out_opt_ PULONG BuildStringUsed + ) PURE; + // Returns the page size for the currently executing + // processor context. The page size may vary between + // processor types. + STDMETHOD(GetPageSize)( + THIS_ + _Out_ PULONG Size + ) PURE; + // Returns S_OK if the current processor context uses + // 64-bit addresses, otherwise S_FALSE. + STDMETHOD(IsPointer64Bit)( + THIS + ) PURE; + // Reads the bugcheck data area and returns the + // current contents. This method only works + // in kernel debugging sessions. + STDMETHOD(ReadBugCheckData)( + THIS_ + _Out_ PULONG Code, + _Out_ PULONG64 Arg1, + _Out_ PULONG64 Arg2, + _Out_ PULONG64 Arg3, + _Out_ PULONG64 Arg4 + ) PURE; + + // Query all the processor types supported by + // the engine. This is a complete list and is + // not related to the machine running the engine + // or the debuggee. + STDMETHOD(GetNumberSupportedProcessorTypes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetSupportedProcessorTypes)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Types + ) PURE; + // Returns a full, descriptive name and an + // abbreviated name for a processor type. + STDMETHOD(GetProcessorTypeNames)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // Gets and sets the type of processor to + // use when doing things like setting + // breakpoints, accessing registers, + // getting stack traces and so on. + STDMETHOD(GetEffectiveProcessorType)( + THIS_ + _Out_ PULONG Type + ) PURE; + STDMETHOD(SetEffectiveProcessorType)( + THIS_ + _In_ ULONG Type + ) PURE; + + // Returns information about whether and how + // the debuggee is running. Status will + // be GO if the debuggee is running and + // BREAK if it isnt. + // If no debuggee exists the status is + // NO_DEBUGGEE. + // This method is reentrant. + STDMETHOD(GetExecutionStatus)( + THIS_ + _Out_ PULONG Status + ) PURE; + // Changes the execution status of the + // engine from stopped to running. + // Status must be one of the go or step + // status values. + STDMETHOD(SetExecutionStatus)( + THIS_ + _In_ ULONG Status + ) PURE; + + // Controls what code interpretation level the debugger + // runs at. The debugger checks the code level when + // deciding whether to step by a source line or + // assembly instruction along with other related operations. + STDMETHOD(GetCodeLevel)( + THIS_ + _Out_ PULONG Level + ) PURE; + STDMETHOD(SetCodeLevel)( + THIS_ + _In_ ULONG Level + ) PURE; + + // Gets and sets engine control flags. + // These methods are reentrant. + STDMETHOD(GetEngineOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetEngineOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Gets and sets control values for + // handling system error events. + // If the system error level is less + // than or equal to the given levels + // the error may be displayed and + // the default break for the event + // may be set. + STDMETHOD(GetSystemErrorControl)( + THIS_ + _Out_ PULONG OutputLevel, + _Out_ PULONG BreakLevel + ) PURE; + STDMETHOD(SetSystemErrorControl)( + THIS_ + _In_ ULONG OutputLevel, + _In_ ULONG BreakLevel + ) PURE; + + // The command processor supports simple + // string replacement macros in Evaluate and + // Execute. There are currently ten macro + // slots available. Slots 0-9 map to + // the command invocations $u0-$u9. + STDMETHOD(GetTextMacro)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacro)( + THIS_ + _In_ ULONG Slot, + _In_ PCSTR Macro + ) PURE; + + // Controls the default number radix used + // in expressions and commands. + STDMETHOD(GetRadix)( + THIS_ + _Out_ PULONG Radix + ) PURE; + STDMETHOD(SetRadix)( + THIS_ + _In_ ULONG Radix + ) PURE; + + // Evaluates the given expression string and + // returns the resulting value. + // If DesiredType is DEBUG_VALUE_INVALID then + // the natural type is used. + // RemainderIndex, if provided, is set to the index + // of the first character in the input string that was + // not used when evaluating the expression. + STDMETHOD(Evaluate)( + THIS_ + _In_ PCSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + // Attempts to convert the input value to a value + // of the requested type in the output value. + // Conversions can fail if no conversion exists. + // Successful conversions may be lossy. + STDMETHOD(CoerceValue)( + THIS_ + _In_ PDEBUG_VALUE In, + _In_ ULONG OutType, + _Out_ PDEBUG_VALUE Out + ) PURE; + STDMETHOD(CoerceValues)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_VALUE In, + _In_reads_(Count) PULONG OutTypes, + _Out_writes_(Count) PDEBUG_VALUE Out + ) PURE; + + // Executes the given command string. + // If the string has multiple commands + // Execute will not return until all + // of them have been executed. If this + // requires waiting for the debuggee to + // execute an internal wait will be done + // so Execute can take an arbitrary amount + // of time. + STDMETHOD(Execute)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR Command, + _In_ ULONG Flags + ) PURE; + // Executes the given command file by + // reading a line at a time and processing + // it with Execute. + STDMETHOD(ExecuteCommandFile)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + // Breakpoint interfaces are described + // elsewhere in this section. + STDMETHOD(GetNumberBreakpoints)( + THIS_ + _Out_ PULONG Number + ) PURE; + // It is possible for this retrieval function to + // fail even with an index within the number of + // existing breakpoints if the breakpoint is + // a private breakpoint. + STDMETHOD(GetBreakpointByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + STDMETHOD(GetBreakpointById)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // If Ids is non-NULL the Count breakpoints + // referred to in the Ids array are returned, + // otherwise breakpoints from index Start to + // Start + Count 1 are returned. + STDMETHOD(GetBreakpointParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Ids, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_BREAKPOINT_PARAMETERS Params + ) PURE; + // Breakpoints are created empty and disabled. + // When their parameters have been set they + // should be enabled by setting the ENABLE flag. + // If DesiredId is DEBUG_ANY_ID then the + // engine picks an unused ID. If DesiredId + // is any other number the engine attempts + // to use the given ID for the breakpoint. + // If another breakpoint exists with that ID + // the call will fail. + STDMETHOD(AddBreakpoint)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT* Bp + ) PURE; + // Breakpoint interface is invalid after this call. + STDMETHOD(RemoveBreakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT Bp + ) PURE; + + // Control and use extension DLLs. + STDMETHOD(AddExtension)( + THIS_ + _In_ PCSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(RemoveExtension)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPath)( + THIS_ + _In_ PCSTR Path, + _Out_ PULONG64 Handle + ) PURE; + // If Handle is zero the extension + // chain is walked searching for the + // function. + STDMETHOD(CallExtension)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR Function, + _In_opt_ PCSTR Arguments + ) PURE; + // GetExtensionFunction works like + // GetProcAddress on extension DLLs + // to allow raw function-call-level + // interaction with extension DLLs. + // Such functions do not need to + // follow the standard extension prototype + // if they are not going to be called + // through the text extension interface. + // This function cannot be called remotely. + STDMETHOD(GetExtensionFunction)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + // These methods return alternate + // extension interfaces in order to allow + // interface-style extension DLLs to mix in + // older extension calls. + // Structure sizes must be initialized before + // the call. + // These methods cannot be called remotely. + STDMETHOD(GetWindbgExtensionApis32)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS32 Api + ) PURE; + STDMETHOD(GetWindbgExtensionApis64)( + THIS_ + _Inout_ PWINDBG_EXTENSION_APIS64 Api + ) PURE; + + // The engine provides a simple mechanism + // to filter common events. Arbitrarily complicated + // filtering can be done by registering event callbacks + // but simple event filtering only requires + // setting the options of one of the predefined + // event filters. + // Simple event filters are either for specific + // events and therefore have an enumerant or + // they are for an exception and are based on + // the exceptions code. Exception filters + // are further divided into exceptions specially + // handled by the engine, which is a fixed set, + // and arbitrary exceptions. + // All three groups of filters are indexed together + // with the specific filters first, then the specific + // exception filters and finally the arbitrary + // exception filters. + // The first specific exception is the default + // exception. If an exception event occurs for + // an exception without settings the default + // exception settings are used. + STDMETHOD(GetNumberEventFilters)( + THIS_ + _Out_ PULONG SpecificEvents, + _Out_ PULONG SpecificExceptions, + _Out_ PULONG ArbitraryExceptions + ) PURE; + // Some filters have descriptive text associated with them. + STDMETHOD(GetEventFilterText)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + // All filters support executing a command when the + // event occurs. + STDMETHOD(GetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + STDMETHOD(SetSpecificFilterParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_SPECIFIC_FILTER_PARAMETERS Params + ) PURE; + // Some specific filters have arguments to further + // qualify their operation. + STDMETHOD(GetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgument)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Argument + ) PURE; + // If Codes is non-NULL Start is ignored. + STDMETHOD(GetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Codes, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // The codes in the parameter data control the application + // of the parameter data. If a code is not already in + // the set of filters it is added. If the ExecutionOption + // for a code is REMOVE then the filter is removed. + // Specific exception filters cannot be removed. + STDMETHOD(SetExceptionFilterParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_(Count) PDEBUG_EXCEPTION_FILTER_PARAMETERS Params + ) PURE; + // Exception filters support an additional command for + // second-chance events. + STDMETHOD(GetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommand)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Command + ) PURE; + + // Yields processing to the engine until + // an event occurs. This method may + // only be called by the thread that started + // the debug session. + // When an event occurs the engine carries + // out all event processing such as calling + // callbacks. + // If the callbacks indicate that execution should + // break the wait will return, otherwise it + // goes back to waiting for a new event. + // If the timeout expires, S_FALSE is returned. + // The timeout is not currently supported for + // kernel debugging. + STDMETHOD(WaitForEvent)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG Timeout + ) PURE; + + // Retrieves information about the last event that occurred. + // EventType is one of the event callback mask bits. + // ExtraInformation contains additional event-specific + // information. Not all events have additional information. + STDMETHOD(GetLastEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; + + // IDebugControl2. + + STDMETHOD(GetCurrentTimeDate)( + THIS_ + _Out_ PULONG TimeDate + ) PURE; + // Retrieves the number of seconds since the + // machine started running. + STDMETHOD(GetCurrentSystemUpTime)( + THIS_ + _Out_ PULONG UpTime + ) PURE; + + // If the current session is a dump session, + // retrieves any extended format information. + STDMETHOD(GetDumpFormatFlags)( + THIS_ + _Out_ PULONG FormatFlags + ) PURE; + + // The debugger has been enhanced to allow + // arbitrary text replacements in addition + // to the simple $u0-$u9 text macros. + // Text replacement takes a given source + // text in commands and converts it to the + // given destination text. Replacements + // are named by their source text so that + // only one replacement for a source text + // string can exist. + STDMETHOD(GetNumberTextReplacements)( + THIS_ + _Out_ PULONG NumRepl + ) PURE; + // If SrcText is non-NULL the replacement + // is looked up by source text, otherwise + // Index is used to get the Nth replacement. + STDMETHOD(GetTextReplacement)( + THIS_ + _In_opt_ PCSTR SrcText, + _In_ ULONG Index, + _Out_writes_opt_(SrcBufferSize) PSTR SrcBuffer, + _In_ ULONG SrcBufferSize, + _Out_opt_ PULONG SrcSize, + _Out_writes_opt_(DstBufferSize) PSTR DstBuffer, + _In_ ULONG DstBufferSize, + _Out_opt_ PULONG DstSize + ) PURE; + // Setting the destination text to + // NULL removes the alias. + STDMETHOD(SetTextReplacement)( + THIS_ + _In_ PCSTR SrcText, + _In_opt_ PCSTR DstText + ) PURE; + STDMETHOD(RemoveTextReplacements)( + THIS + ) PURE; + // Outputs the complete list of current + // replacements. + STDMETHOD(OutputTextReplacements)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // IDebugControl3. + + // Control options for assembly and disassembly. + STDMETHOD(GetAssemblyOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetAssemblyOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // Control the expression syntax. + STDMETHOD(GetExpressionSyntax)( + THIS_ + _Out_ PULONG Flags + ) PURE; + STDMETHOD(SetExpressionSyntax)( + THIS_ + _In_ ULONG Flags + ) PURE; + // Look up a syntax by its abbreviated + // name and set it. + STDMETHOD(SetExpressionSyntaxByName)( + THIS_ + _In_ PCSTR AbbrevName + ) PURE; + STDMETHOD(GetNumberExpressionSyntaxes)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetExpressionSyntaxNames)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(FullNameBufferSize) PSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + // + // Some debug sessions have only a single + // possible event, such as a snapshot dump + // file; some have dynamic events, such as + // a live debug session; and others may have + // multiple events, such as a dump file that + // contains snapshots from different points + // in time. The following methods allow + // discovery and selection of the available + // events for a session. + // Sessions with one or more static events + // will be able to report all of the events + // when queried. Sessions with dynamic events + // will only report a single event representing + // the current event. + // Switching events constitutes execution and + // changing the current event will alter the + // execution status to a running state, after + // which WaitForEvent must be used to process + // the selected event. + // + + // GetNumberEvents returns S_OK if this is the + // complete set of events possible, such as for + // a static session; or S_FALSE if other events + // may be possible, such as for a dynamic session. + STDMETHOD(GetNumberEvents)( + THIS_ + _Out_ PULONG Events + ) PURE; + // Sessions may have descriptive information for + // the various events available. The amount of + // information varies according to the specific + // session and data. + STDMETHOD(GetEventIndexDescription)( + THIS_ + _In_ ULONG Index, + _In_ ULONG Which, + _In_opt_ PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DescSize + ) PURE; + STDMETHOD(GetCurrentEventIndex)( + THIS_ + _Out_ PULONG Index + ) PURE; + // SetNextEventIndex works like seek in that + // it can set an absolute or relative index. + // SetNextEventIndex works similarly to SetExecutionStatus + // by putting the session into a running state, after + // which the caller must call WaitForEvent. The + // current event index only changes when WaitForEvent + // is called. + STDMETHOD(SetNextEventIndex)( + THIS_ + _In_ ULONG Relation, + _In_ ULONG Value, + _Out_ PULONG NextIndex + ) PURE; + + // IDebugControl4. + + STDMETHOD(GetLogFileWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PBOOL Append + ) PURE; + STDMETHOD(OpenLogFileWide)( + THIS_ + _In_ PCWSTR File, + _In_ BOOL Append + ) PURE; + + STDMETHOD(InputWide)( + THIS_ + _Out_writes_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InputSize + ) PURE; + STDMETHOD(ReturnInputWide)( + THIS_ + _In_ PCWSTR Buffer + ) PURE; + + STDMETHODV(OutputWide)( + THIS_ + _In_ ULONG Mask, + _In_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(OutputVaListWide)( + THIS_ + _In_ ULONG Mask, + _In_ PCWSTR Format, + _In_ va_list Args + ) PURE; + STDMETHODV(ControlledOutputWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(ControlledOutputVaListWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Mask, + _In_ PCWSTR Format, + _In_ va_list Args + ) PURE; + + STDMETHODV(OutputPromptWide)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCWSTR Format, + ... + ) PURE; + STDMETHOD(OutputPromptVaListWide)( + THIS_ + _In_ ULONG OutputControl, + _In_opt_ PCWSTR Format, + _In_ va_list Args + ) PURE; + STDMETHOD(GetPromptTextWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + + STDMETHOD(AssembleWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ PCWSTR Instr, + _Out_ PULONG64 EndOffset + ) PURE; + STDMETHOD(DisassembleWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DisassemblySize, + _Out_ PULONG64 EndOffset + ) PURE; + + STDMETHOD(GetProcessorTypeNamesWide)( + THIS_ + _In_ ULONG Type, + _Out_writes_opt_(FullNameBufferSize) PWSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PWSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + STDMETHOD(GetTextMacroWide)( + THIS_ + _In_ ULONG Slot, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MacroSize + ) PURE; + STDMETHOD(SetTextMacroWide)( + THIS_ + _In_ ULONG Slot, + _In_ PCWSTR Macro + ) PURE; + + STDMETHOD(EvaluateWide)( + THIS_ + _In_ PCWSTR Expression, + _In_ ULONG DesiredType, + _Out_ PDEBUG_VALUE Value, + _Out_opt_ PULONG RemainderIndex + ) PURE; + + STDMETHOD(ExecuteWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR Command, + _In_ ULONG Flags + ) PURE; + STDMETHOD(ExecuteCommandFileWide)( + THIS_ + _In_ ULONG OutputControl, + _In_ PCWSTR CommandFile, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetBreakpointByIndex2)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(GetBreakpointById2)( + THIS_ + _In_ ULONG Id, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(AddBreakpoint2)( + THIS_ + _In_ ULONG Type, + _In_ ULONG DesiredId, + _Out_ PDEBUG_BREAKPOINT2* Bp + ) PURE; + STDMETHOD(RemoveBreakpoint2)( + THIS_ + _In_ PDEBUG_BREAKPOINT2 Bp + ) PURE; + + STDMETHOD(AddExtensionWide)( + THIS_ + _In_ PCWSTR Path, + _In_ ULONG Flags, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(GetExtensionByPathWide)( + THIS_ + _In_ PCWSTR Path, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(CallExtensionWide)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCWSTR Function, + _In_opt_ PCWSTR Arguments + ) PURE; + STDMETHOD(GetExtensionFunctionWide)( + THIS_ + _In_ ULONG64 Handle, + _In_ PCWSTR FuncName, + _Out_ FARPROC* Function + ) PURE; + + STDMETHOD(GetEventFilterTextWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TextSize + ) PURE; + STDMETHOD(GetEventFilterCommandWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetEventFilterCommandWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Command + ) PURE; + STDMETHOD(GetSpecificFilterArgumentWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ArgumentSize + ) PURE; + STDMETHOD(SetSpecificFilterArgumentWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Argument + ) PURE; + STDMETHOD(GetExceptionFilterSecondCommandWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG CommandSize + ) PURE; + STDMETHOD(SetExceptionFilterSecondCommandWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Command + ) PURE; + + STDMETHOD(GetLastEventInformationWide)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed, + _Out_writes_opt_(DescriptionSize) PWSTR Description, + _In_ ULONG DescriptionSize, + _Out_opt_ PULONG DescriptionUsed + ) PURE; + + STDMETHOD(GetTextReplacementWide)( + THIS_ + _In_opt_ PCWSTR SrcText, + _In_ ULONG Index, + _Out_writes_opt_(SrcBufferSize) PWSTR SrcBuffer, + _In_ ULONG SrcBufferSize, + _Out_opt_ PULONG SrcSize, + _Out_writes_opt_(DstBufferSize) PWSTR DstBuffer, + _In_ ULONG DstBufferSize, + _Out_opt_ PULONG DstSize + ) PURE; + STDMETHOD(SetTextReplacementWide)( + THIS_ + _In_ PCWSTR SrcText, + _In_opt_ PCWSTR DstText + ) PURE; + + STDMETHOD(SetExpressionSyntaxByNameWide)( + THIS_ + _In_ PCWSTR AbbrevName + ) PURE; + STDMETHOD(GetExpressionSyntaxNamesWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(FullNameBufferSize) PWSTR FullNameBuffer, + _In_ ULONG FullNameBufferSize, + _Out_opt_ PULONG FullNameSize, + _Out_writes_opt_(AbbrevNameBufferSize) PWSTR AbbrevNameBuffer, + _In_ ULONG AbbrevNameBufferSize, + _Out_opt_ PULONG AbbrevNameSize + ) PURE; + + STDMETHOD(GetEventIndexDescriptionWide)( + THIS_ + _In_ ULONG Index, + _In_ ULONG Which, + _In_opt_ PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DescSize + ) PURE; + + STDMETHOD(GetLogFile2)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PULONG Flags + ) PURE; + STDMETHOD(OpenLogFile2)( + THIS_ + _In_ PCSTR File, + _In_ ULONG Flags + ) PURE; + STDMETHOD(GetLogFile2Wide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FileSize, + _Out_ PULONG Flags + ) PURE; + STDMETHOD(OpenLogFile2Wide)( + THIS_ + _In_ PCWSTR File, + _In_ ULONG Flags + ) PURE; + + // GetSystemVersion always returns the kd + // major/minor version numbers, which are + // different than the Win32 version numbers. + // GetSystemVersionValues can be used + // to determine the Win32 version values. + STDMETHOD(GetSystemVersionValues)( + THIS_ + _Out_ PULONG PlatformId, + _Out_ PULONG Win32Major, + _Out_ PULONG Win32Minor, + _Out_opt_ PULONG KdMajor, + _Out_opt_ PULONG KdMinor + ) PURE; + // Strings are selected with DEBUG_SYSVERSTR_*. + STDMETHOD(GetSystemVersionString)( + THIS_ + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(GetSystemVersionStringWide)( + THIS_ + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + + // Stack tracing with a full initial context + // and full context return for each frame. + // The FrameContextsSize parameter is the total + // byte size of FrameContexts. FrameContextsEntrySize + // gives the byte size of each entry in + // FrameContexts. + STDMETHOD(GetContextStackTrace)( + THIS_ + _In_reads_bytes_opt_(StartContextSize) PVOID StartContext, + _In_ ULONG StartContextSize, + _Out_writes_to_opt_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _Out_writes_bytes_opt_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _Out_opt_ PULONG FramesFilled + ) PURE; + STDMETHOD(OutputContextStackTrace)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_(FramesSize) PDEBUG_STACK_FRAME Frames, + _In_ ULONG FramesSize, + _In_reads_bytes_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _In_ ULONG Flags + ) PURE; + + // Some targets, such as user-mode minidump files, + // have separate "event of interest" information + // stored within them. This method allows + // access to that information. + STDMETHOD(GetStoredEventInformation)( + THIS_ + _Out_ PULONG Type, + _Out_ PULONG ProcessId, + _Out_ PULONG ThreadId, + _Out_writes_bytes_opt_(ContextSize) PVOID Context, + _In_ ULONG ContextSize, + _Out_opt_ PULONG ContextUsed, + _Out_writes_bytes_opt_(ExtraInformationSize) PVOID ExtraInformation, + _In_ ULONG ExtraInformationSize, + _Out_opt_ PULONG ExtraInformationUsed + ) PURE; + + // Managed debugging support relies on debugging + // functionality provided by the Common Language Runtime. + // This method provides feedback on the engine's + // use of the runtime debugging APIs. + STDMETHOD(GetManagedStatus)( + THIS_ + _Out_opt_ PULONG Flags, + _In_ ULONG WhichString, + _Out_writes_opt_(StringSize) PSTR String, + _In_ ULONG StringSize, + _Out_opt_ PULONG StringNeeded + ) PURE; + STDMETHOD(GetManagedStatusWide)( + THIS_ + _Out_opt_ PULONG Flags, + _In_ ULONG WhichString, + _Out_writes_opt_(StringSize) PWSTR String, + _In_ ULONG StringSize, + _Out_opt_ PULONG StringNeeded + ) PURE; + // Clears and reinitializes the engine's + // managed code debugging support. + STDMETHOD(ResetManagedStatus)( + THIS_ + _In_ ULONG Flags + ) PURE; + + // IDebugControl5 + STDMETHOD(GetStackTraceEx)( + THIS_ + _In_ ULONG64 FrameOffset, + _In_ ULONG64 StackOffset, + _In_ ULONG64 InstructionOffset, + _Out_writes_to_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _Out_opt_ PULONG FramesFilled + ) PURE; + + STDMETHOD(OutputStackTraceEx)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_opt_(FramesSize) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetContextStackTraceEx)( + THIS_ + _In_reads_bytes_opt_(StartContextSize) PVOID StartContext, + _In_ ULONG StartContextSize, + _Out_writes_to_opt_(FramesSize,*FramesFilled) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _Out_writes_bytes_opt_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _Out_opt_ PULONG FramesFilled + ) PURE; + + STDMETHOD(OutputContextStackTraceEx)( + THIS_ + _In_ ULONG OutputControl, + _In_reads_(FramesSize) PDEBUG_STACK_FRAME_EX Frames, + _In_ ULONG FramesSize, + _In_reads_bytes_(FrameContextsSize) PVOID FrameContexts, + _In_ ULONG FrameContextsSize, + _In_ ULONG FrameContextsEntrySize, + _In_ ULONG Flags + ) PURE; + + STDMETHOD(GetBreakpointByGuid)( + THIS_ + _In_ LPGUID Guid, + _Out_ PDEBUG_BREAKPOINT3* Bp + ) PURE; + + // IDebugControl6 + + // Returns additional info states for + STDMETHOD(GetExecutionStatusEx)( + THIS_ + _Out_ PULONG Status + ) PURE; + + STDMETHOD(GetSynchronizationStatus)( + THIS_ + _Out_ PULONG SendsAttempted, + _Out_ PULONG SecondsSinceLastResponse + ) PURE; + + // IDebugControl7 + + STDMETHOD(GetDebuggeeType2)( + THIS_ + _In_ ULONG Flags, + _Out_ PULONG Class, + _Out_ PULONG Qualifier + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// IDebugDataSpaces. +// +//---------------------------------------------------------------------------- + +// Data space indices for callbacks and other methods. +#define DEBUG_DATA_SPACE_VIRTUAL 0 +#define DEBUG_DATA_SPACE_PHYSICAL 1 +#define DEBUG_DATA_SPACE_CONTROL 2 +#define DEBUG_DATA_SPACE_IO 3 +#define DEBUG_DATA_SPACE_MSR 4 +#define DEBUG_DATA_SPACE_BUS_DATA 5 +#define DEBUG_DATA_SPACE_DEBUGGER_DATA 6 +// Count of data spaces. +#define DEBUG_DATA_SPACE_COUNT 7 + +// Indices for ReadDebuggerData interface +#define DEBUG_DATA_KernBase 24 +#define DEBUG_DATA_BreakpointWithStatusAddr 32 +#define DEBUG_DATA_SavedContextAddr 40 +#define DEBUG_DATA_KiCallUserModeAddr 56 +#define DEBUG_DATA_KeUserCallbackDispatcherAddr 64 +#define DEBUG_DATA_PsLoadedModuleListAddr 72 +#define DEBUG_DATA_PsActiveProcessHeadAddr 80 +#define DEBUG_DATA_PspCidTableAddr 88 +#define DEBUG_DATA_ExpSystemResourcesListAddr 96 +#define DEBUG_DATA_ExpPagedPoolDescriptorAddr 104 +#define DEBUG_DATA_ExpNumberOfPagedPoolsAddr 112 +#define DEBUG_DATA_KeTimeIncrementAddr 120 +#define DEBUG_DATA_KeBugCheckCallbackListHeadAddr 128 +#define DEBUG_DATA_KiBugcheckDataAddr 136 +#define DEBUG_DATA_IopErrorLogListHeadAddr 144 +#define DEBUG_DATA_ObpRootDirectoryObjectAddr 152 +#define DEBUG_DATA_ObpTypeObjectTypeAddr 160 +#define DEBUG_DATA_MmSystemCacheStartAddr 168 +#define DEBUG_DATA_MmSystemCacheEndAddr 176 +#define DEBUG_DATA_MmSystemCacheWsAddr 184 +#define DEBUG_DATA_MmPfnDatabaseAddr 192 +#define DEBUG_DATA_MmSystemPtesStartAddr 200 +#define DEBUG_DATA_MmSystemPtesEndAddr 208 +#define DEBUG_DATA_MmSubsectionBaseAddr 216 +#define DEBUG_DATA_MmNumberOfPagingFilesAddr 224 +#define DEBUG_DATA_MmLowestPhysicalPageAddr 232 +#define DEBUG_DATA_MmHighestPhysicalPageAddr 240 +#define DEBUG_DATA_MmNumberOfPhysicalPagesAddr 248 +#define DEBUG_DATA_MmMaximumNonPagedPoolInBytesAddr 256 +#define DEBUG_DATA_MmNonPagedSystemStartAddr 264 +#define DEBUG_DATA_MmNonPagedPoolStartAddr 272 +#define DEBUG_DATA_MmNonPagedPoolEndAddr 280 +#define DEBUG_DATA_MmPagedPoolStartAddr 288 +#define DEBUG_DATA_MmPagedPoolEndAddr 296 +#define DEBUG_DATA_MmPagedPoolInformationAddr 304 +#define DEBUG_DATA_MmPageSize 312 +#define DEBUG_DATA_MmSizeOfPagedPoolInBytesAddr 320 +#define DEBUG_DATA_MmTotalCommitLimitAddr 328 +#define DEBUG_DATA_MmTotalCommittedPagesAddr 336 +#define DEBUG_DATA_MmSharedCommitAddr 344 +#define DEBUG_DATA_MmDriverCommitAddr 352 +#define DEBUG_DATA_MmProcessCommitAddr 360 +#define DEBUG_DATA_MmPagedPoolCommitAddr 368 +#define DEBUG_DATA_MmExtendedCommitAddr 376 +#define DEBUG_DATA_MmZeroedPageListHeadAddr 384 +#define DEBUG_DATA_MmFreePageListHeadAddr 392 +#define DEBUG_DATA_MmStandbyPageListHeadAddr 400 +#define DEBUG_DATA_MmModifiedPageListHeadAddr 408 +#define DEBUG_DATA_MmModifiedNoWritePageListHeadAddr 416 +#define DEBUG_DATA_MmAvailablePagesAddr 424 +#define DEBUG_DATA_MmResidentAvailablePagesAddr 432 +#define DEBUG_DATA_PoolTrackTableAddr 440 +#define DEBUG_DATA_NonPagedPoolDescriptorAddr 448 +#define DEBUG_DATA_MmHighestUserAddressAddr 456 +#define DEBUG_DATA_MmSystemRangeStartAddr 464 +#define DEBUG_DATA_MmUserProbeAddressAddr 472 +#define DEBUG_DATA_KdPrintCircularBufferAddr 480 +#define DEBUG_DATA_KdPrintCircularBufferEndAddr 488 +#define DEBUG_DATA_KdPrintWritePointerAddr 496 +#define DEBUG_DATA_KdPrintRolloverCountAddr 504 +#define DEBUG_DATA_MmLoadedUserImageListAddr 512 +#define DEBUG_DATA_NtBuildLabAddr 520 +#define DEBUG_DATA_KiNormalSystemCall 528 +#define DEBUG_DATA_KiProcessorBlockAddr 536 +#define DEBUG_DATA_MmUnloadedDriversAddr 544 +#define DEBUG_DATA_MmLastUnloadedDriverAddr 552 +#define DEBUG_DATA_MmTriageActionTakenAddr 560 +#define DEBUG_DATA_MmSpecialPoolTagAddr 568 +#define DEBUG_DATA_KernelVerifierAddr 576 +#define DEBUG_DATA_MmVerifierDataAddr 584 +#define DEBUG_DATA_MmAllocatedNonPagedPoolAddr 592 +#define DEBUG_DATA_MmPeakCommitmentAddr 600 +#define DEBUG_DATA_MmTotalCommitLimitMaximumAddr 608 +#define DEBUG_DATA_CmNtCSDVersionAddr 616 +#define DEBUG_DATA_MmPhysicalMemoryBlockAddr 624 +#define DEBUG_DATA_MmSessionBase 632 +#define DEBUG_DATA_MmSessionSize 640 +#define DEBUG_DATA_MmSystemParentTablePage 648 +#define DEBUG_DATA_MmVirtualTranslationBase 656 +#define DEBUG_DATA_OffsetKThreadNextProcessor 664 +#define DEBUG_DATA_OffsetKThreadTeb 666 +#define DEBUG_DATA_OffsetKThreadKernelStack 668 +#define DEBUG_DATA_OffsetKThreadInitialStack 670 +#define DEBUG_DATA_OffsetKThreadApcProcess 672 +#define DEBUG_DATA_OffsetKThreadState 674 +#define DEBUG_DATA_OffsetKThreadBStore 676 +#define DEBUG_DATA_OffsetKThreadBStoreLimit 678 +#define DEBUG_DATA_SizeEProcess 680 +#define DEBUG_DATA_OffsetEprocessPeb 682 +#define DEBUG_DATA_OffsetEprocessParentCID 684 +#define DEBUG_DATA_OffsetEprocessDirectoryTableBase 686 +#define DEBUG_DATA_SizePrcb 688 +#define DEBUG_DATA_OffsetPrcbDpcRoutine 690 +#define DEBUG_DATA_OffsetPrcbCurrentThread 692 +#define DEBUG_DATA_OffsetPrcbMhz 694 +#define DEBUG_DATA_OffsetPrcbCpuType 696 +#define DEBUG_DATA_OffsetPrcbVendorString 698 +#define DEBUG_DATA_OffsetPrcbProcessorState 700 +#define DEBUG_DATA_OffsetPrcbNumber 702 +#define DEBUG_DATA_SizeEThread 704 +#define DEBUG_DATA_KdPrintCircularBufferPtrAddr 712 +#define DEBUG_DATA_KdPrintBufferSizeAddr 720 +#define DEBUG_DATA_MmBadPagesDetected 800 +#define DEBUG_DATA_EtwpDebuggerData 816 +#define DEBUG_DATA_PteBase 864 + +#define DEBUG_DATA_PaeEnabled 100000 +#define DEBUG_DATA_SharedUserData 100008 +#define DEBUG_DATA_ProductType 100016 +#define DEBUG_DATA_SuiteMask 100024 +#define DEBUG_DATA_DumpWriterStatus 100032 +#define DEBUG_DATA_DumpFormatVersion 100040 +#define DEBUG_DATA_DumpWriterVersion 100048 +#define DEBUG_DATA_DumpPowerState 100056 +#define DEBUG_DATA_DumpMmStorage 100064 +#define DEBUG_DATA_DumpAttributes 100072 +#define DEBUG_DATA_PagingLevels 100080 + +// +// Processor information structures. +// + +typedef struct _DEBUG_PROCESSOR_IDENTIFICATION_ALPHA +{ + ULONG Type; + ULONG Revision; +} DEBUG_PROCESSOR_IDENTIFICATION_ALPHA, *PDEBUG_PROCESSOR_IDENTIFICATION_ALPHA; + +typedef struct _DEBUG_PROCESSOR_IDENTIFICATION_AMD64 +{ + ULONG Family; + ULONG Model; + ULONG Stepping; + CHAR VendorString[16]; +} DEBUG_PROCESSOR_IDENTIFICATION_AMD64, *PDEBUG_PROCESSOR_IDENTIFICATION_AMD64; + +typedef struct _DEBUG_PROCESSOR_IDENTIFICATION_IA64 +{ + ULONG Model; + ULONG Revision; + ULONG Family; + ULONG ArchRev; + CHAR VendorString[16]; +} DEBUG_PROCESSOR_IDENTIFICATION_IA64, *PDEBUG_PROCESSOR_IDENTIFICATION_IA64; + +typedef struct _DEBUG_PROCESSOR_IDENTIFICATION_X86 +{ + ULONG Family; + ULONG Model; + ULONG Stepping; + CHAR VendorString[16]; +} DEBUG_PROCESSOR_IDENTIFICATION_X86, *PDEBUG_PROCESSOR_IDENTIFICATION_X86; + +typedef struct _DEBUG_PROCESSOR_IDENTIFICATION_ARM +{ + ULONG Model; + ULONG Revision; + CHAR VendorString[16]; +} DEBUG_PROCESSOR_IDENTIFICATION_ARM, *PDEBUG_PROCESSOR_IDENTIFICATION_ARM; + +typedef struct _DEBUG_PROCESSOR_IDENTIFICATION_ARM64 +{ + ULONG Model; + ULONG Revision; + CHAR VendorString[16]; +} DEBUG_PROCESSOR_IDENTIFICATION_ARM64, *PDEBUG_PROCESSOR_IDENTIFICATION_ARM64; + +typedef union _DEBUG_PROCESSOR_IDENTIFICATION_ALL +{ + DEBUG_PROCESSOR_IDENTIFICATION_ALPHA Alpha; + DEBUG_PROCESSOR_IDENTIFICATION_AMD64 Amd64; + DEBUG_PROCESSOR_IDENTIFICATION_IA64 Ia64; + DEBUG_PROCESSOR_IDENTIFICATION_X86 X86; + DEBUG_PROCESSOR_IDENTIFICATION_ARM Arm; + DEBUG_PROCESSOR_IDENTIFICATION_ARM64 Arm64; +} DEBUG_PROCESSOR_IDENTIFICATION_ALL, *PDEBUG_PROCESSOR_IDENTIFICATION_ALL; + +// Indices for ReadProcessorSystemData. +#define DEBUG_DATA_KPCR_OFFSET 0 +#define DEBUG_DATA_KPRCB_OFFSET 1 +#define DEBUG_DATA_KTHREAD_OFFSET 2 +#define DEBUG_DATA_BASE_TRANSLATION_VIRTUAL_OFFSET 3 +#define DEBUG_DATA_PROCESSOR_IDENTIFICATION 4 +#define DEBUG_DATA_PROCESSOR_SPEED 5 + +#undef INTERFACE +#define INTERFACE IDebugDataSpaces +DECLARE_INTERFACE_(IDebugDataSpaces, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugDataSpaces. + STDMETHOD(ReadVirtual)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + // SearchVirtual searches the given virtual + // address range for the given pattern. PatternSize + // gives the byte length of the pattern and PatternGranularity + // controls the granularity of comparisons during + // the search. + // For example, a DWORD-granular search would + // use a pattern granularity of four to search by DWORD + // increments. + STDMETHOD(SearchVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Length, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _In_ ULONG PatternGranularity, + _Out_ PULONG64 MatchOffset + ) PURE; + // These methods are identical to Read/WriteVirtual + // except that they avoid the kernel virtual memory + // cache entirely and are therefore useful for reading + // virtual memory which is inherently volatile, such + // as memory-mapped device areas, without contaminating + // or invalidating the cache. + // In user-mode they are the same as Read/WriteVirtual. + STDMETHOD(ReadVirtualUncached)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteVirtualUncached)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + // The following two methods are convenience + // methods for accessing pointer values. + // They automatically convert between native pointers + // and canonical 64-bit values as necessary. + // These routines stop at the first failure. + STDMETHOD(ReadPointersVirtual)( + THIS_ + _In_ ULONG Count, + _In_ ULONG64 Offset, + _Out_writes_(Count) PULONG64 Ptrs + ) PURE; + STDMETHOD(WritePointersVirtual)( + THIS_ + _In_ ULONG Count, + _In_ ULONG64 Offset, + _In_reads_(Count) PULONG64 Ptrs + ) PURE; + // All non-virtual data spaces are only + // available when kernel debugging. + STDMETHOD(ReadPhysical)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WritePhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadControl)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteControl)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadIo)( + THIS_ + _In_ ULONG InterfaceType, + _In_ ULONG BusNumber, + _In_ ULONG AddressSpace, + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteIo)( + THIS_ + _In_ ULONG InterfaceType, + _In_ ULONG BusNumber, + _In_ ULONG AddressSpace, + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadMsr)( + THIS_ + _In_ ULONG Msr, + _Out_ PULONG64 Value + ) PURE; + STDMETHOD(WriteMsr)( + THIS_ + _In_ ULONG Msr, + _In_ ULONG64 Value + ) PURE; + STDMETHOD(ReadBusData)( + THIS_ + _In_ ULONG BusDataType, + _In_ ULONG BusNumber, + _In_ ULONG SlotNumber, + _In_ ULONG Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteBusData)( + THIS_ + _In_ ULONG BusDataType, + _In_ ULONG BusNumber, + _In_ ULONG SlotNumber, + _In_ ULONG Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(CheckLowMemory)( + THIS + ) PURE; + STDMETHOD(ReadDebuggerData)( + THIS_ + _In_ ULONG Index, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; + STDMETHOD(ReadProcessorSystemData)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG Index, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; +}; + +// +// Handle data types and structures. +// + +#define DEBUG_HANDLE_DATA_TYPE_BASIC 0 +#define DEBUG_HANDLE_DATA_TYPE_TYPE_NAME 1 +#define DEBUG_HANDLE_DATA_TYPE_OBJECT_NAME 2 +#define DEBUG_HANDLE_DATA_TYPE_HANDLE_COUNT 3 +#define DEBUG_HANDLE_DATA_TYPE_TYPE_NAME_WIDE 4 +#define DEBUG_HANDLE_DATA_TYPE_OBJECT_NAME_WIDE 5 +#define DEBUG_HANDLE_DATA_TYPE_MINI_THREAD_1 6 +#define DEBUG_HANDLE_DATA_TYPE_MINI_MUTANT_1 7 +#define DEBUG_HANDLE_DATA_TYPE_MINI_MUTANT_2 8 +#define DEBUG_HANDLE_DATA_TYPE_PER_HANDLE_OPERATIONS 9 +#define DEBUG_HANDLE_DATA_TYPE_ALL_HANDLE_OPERATIONS 10 +#define DEBUG_HANDLE_DATA_TYPE_MINI_PROCESS_1 11 +#define DEBUG_HANDLE_DATA_TYPE_MINI_PROCESS_2 12 +#define DEBUG_HANDLE_DATA_TYPE_MINI_EVENT_1 13 +#define DEBUG_HANDLE_DATA_TYPE_MINI_SECTION_1 14 +#define DEBUG_HANDLE_DATA_TYPE_MINI_SEMAPHORE_1 15 + +typedef struct _DEBUG_HANDLE_DATA_BASIC +{ + ULONG TypeNameSize; + ULONG ObjectNameSize; + ULONG Attributes; + ULONG GrantedAccess; + ULONG HandleCount; + ULONG PointerCount; +} DEBUG_HANDLE_DATA_BASIC, *PDEBUG_HANDLE_DATA_BASIC; + +#undef INTERFACE +#define INTERFACE IDebugDataSpaces2 +DECLARE_INTERFACE_(IDebugDataSpaces2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugDataSpaces. + STDMETHOD(ReadVirtual)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + // SearchVirtual searches the given virtual + // address range for the given pattern. PatternSize + // gives the byte length of the pattern and PatternGranularity + // controls the granularity of comparisons during + // the search. + // For example, a DWORD-granular search would + // use a pattern granularity of four to search by DWORD + // increments. + STDMETHOD(SearchVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Length, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _In_ ULONG PatternGranularity, + _Out_ PULONG64 MatchOffset + ) PURE; + // These methods are identical to Read/WriteVirtual + // except that they avoid the kernel virtual memory + // cache entirely and are therefore useful for reading + // virtual memory which is inherently volatile, such + // as memory-mapped device areas, without contaminating + // or invalidating the cache. + // In user-mode they are the same as Read/WriteVirtual. + STDMETHOD(ReadVirtualUncached)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteVirtualUncached)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + // The following two methods are convenience + // methods for accessing pointer values. + // They automatically convert between native pointers + // and canonical 64-bit values as necessary. + // These routines stop at the first failure. + STDMETHOD(ReadPointersVirtual)( + THIS_ + _In_ ULONG Count, + _In_ ULONG64 Offset, + _Out_writes_(Count) PULONG64 Ptrs + ) PURE; + STDMETHOD(WritePointersVirtual)( + THIS_ + _In_ ULONG Count, + _In_ ULONG64 Offset, + _In_reads_(Count) PULONG64 Ptrs + ) PURE; + // All non-virtual data spaces are only + // available when kernel debugging. + STDMETHOD(ReadPhysical)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WritePhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadControl)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteControl)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadIo)( + THIS_ + _In_ ULONG InterfaceType, + _In_ ULONG BusNumber, + _In_ ULONG AddressSpace, + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteIo)( + THIS_ + _In_ ULONG InterfaceType, + _In_ ULONG BusNumber, + _In_ ULONG AddressSpace, + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadMsr)( + THIS_ + _In_ ULONG Msr, + _Out_ PULONG64 Value + ) PURE; + STDMETHOD(WriteMsr)( + THIS_ + _In_ ULONG Msr, + _In_ ULONG64 Value + ) PURE; + STDMETHOD(ReadBusData)( + THIS_ + _In_ ULONG BusDataType, + _In_ ULONG BusNumber, + _In_ ULONG SlotNumber, + _In_ ULONG Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteBusData)( + THIS_ + _In_ ULONG BusDataType, + _In_ ULONG BusNumber, + _In_ ULONG SlotNumber, + _In_ ULONG Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(CheckLowMemory)( + THIS + ) PURE; + STDMETHOD(ReadDebuggerData)( + THIS_ + _In_ ULONG Index, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; + STDMETHOD(ReadProcessorSystemData)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG Index, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; + + // IDebugDataSpaces2. + + STDMETHOD(VirtualToPhysical)( + THIS_ + _In_ ULONG64 Virtual, + _Out_ PULONG64 Physical + ) PURE; + // Returns the physical addresses for the + // N levels of the systems paging structures. + // Level zero is the starting base physical + // address for virtual translations. + // Levels one-(N-1) will point to the appropriate + // paging descriptor for the virtual address at + // the given level of the paging hierarchy. The + // exact number of levels depends on many factors. + // The last level will be the fully translated + // physical address, matching what VirtualToPhysical + // returns. If the address can only be partially + // translated S_FALSE is returned. + STDMETHOD(GetVirtualTranslationPhysicalOffsets)( + THIS_ + _In_ ULONG64 Virtual, + _Out_writes_opt_(OffsetsSize) PULONG64 Offsets, + _In_ ULONG OffsetsSize, + _Out_opt_ PULONG Levels + ) PURE; + + // System handle data is accessible in certain + // debug sessions. The particular data available + // varies from session to session and platform + // to platform. + STDMETHOD(ReadHandleData)( + THIS_ + _In_ ULONG64 Handle, + _In_ ULONG DataType, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; + + // Fills memory with the given pattern. + // The fill stops at the first non-writable byte. + STDMETHOD(FillVirtual)( + THIS_ + _In_ ULONG64 Start, + _In_ ULONG Size, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _Out_opt_ PULONG Filled + ) PURE; + STDMETHOD(FillPhysical)( + THIS_ + _In_ ULONG64 Start, + _In_ ULONG Size, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _Out_opt_ PULONG Filled + ) PURE; + + // Queries virtual memory mapping information given + // an address similarly to the Win32 API VirtualQuery. + // MEMORY_BASIC_INFORMATION64 is defined in crash.h. + // This method currently only works for user-mode sessions. + STDMETHOD(QueryVirtual)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PMEMORY_BASIC_INFORMATION64 Info + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugDataSpaces3 +DECLARE_INTERFACE_(IDebugDataSpaces3, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugDataSpaces. + STDMETHOD(ReadVirtual)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + // SearchVirtual searches the given virtual + // address range for the given pattern. PatternSize + // gives the byte length of the pattern and PatternGranularity + // controls the granularity of comparisons during + // the search. + // For example, a DWORD-granular search would + // use a pattern granularity of four to search by DWORD + // increments. + STDMETHOD(SearchVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Length, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _In_ ULONG PatternGranularity, + _Out_ PULONG64 MatchOffset + ) PURE; + // These methods are identical to Read/WriteVirtual + // except that they avoid the kernel virtual memory + // cache entirely and are therefore useful for reading + // virtual memory which is inherently volatile, such + // as memory-mapped device areas, without contaminating + // or invalidating the cache. + // In user-mode they are the same as Read/WriteVirtual. + STDMETHOD(ReadVirtualUncached)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteVirtualUncached)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + // The following two methods are convenience + // methods for accessing pointer values. + // They automatically convert between native pointers + // and canonical 64-bit values as necessary. + // These routines stop at the first failure. + STDMETHOD(ReadPointersVirtual)( + THIS_ + _In_ ULONG Count, + _In_ ULONG64 Offset, + _Out_writes_(Count) PULONG64 Ptrs + ) PURE; + STDMETHOD(WritePointersVirtual)( + THIS_ + _In_ ULONG Count, + _In_ ULONG64 Offset, + _In_reads_(Count) PULONG64 Ptrs + ) PURE; + // All non-virtual data spaces are only + // available when kernel debugging. + STDMETHOD(ReadPhysical)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WritePhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadControl)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteControl)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadIo)( + THIS_ + _In_ ULONG InterfaceType, + _In_ ULONG BusNumber, + _In_ ULONG AddressSpace, + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteIo)( + THIS_ + _In_ ULONG InterfaceType, + _In_ ULONG BusNumber, + _In_ ULONG AddressSpace, + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadMsr)( + THIS_ + _In_ ULONG Msr, + _Out_ PULONG64 Value + ) PURE; + STDMETHOD(WriteMsr)( + THIS_ + _In_ ULONG Msr, + _In_ ULONG64 Value + ) PURE; + STDMETHOD(ReadBusData)( + THIS_ + _In_ ULONG BusDataType, + _In_ ULONG BusNumber, + _In_ ULONG SlotNumber, + _In_ ULONG Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteBusData)( + THIS_ + _In_ ULONG BusDataType, + _In_ ULONG BusNumber, + _In_ ULONG SlotNumber, + _In_ ULONG Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(CheckLowMemory)( + THIS + ) PURE; + STDMETHOD(ReadDebuggerData)( + THIS_ + _In_ ULONG Index, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; + STDMETHOD(ReadProcessorSystemData)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG Index, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; + + // IDebugDataSpaces2. + + STDMETHOD(VirtualToPhysical)( + THIS_ + _In_ ULONG64 Virtual, + _Out_ PULONG64 Physical + ) PURE; + // Returns the physical addresses for the + // N levels of the systems paging structures. + // Level zero is the starting base physical + // address for virtual translations. + // Levels one-(N-1) will point to the appropriate + // paging descriptor for the virtual address at + // the given level of the paging hierarchy. The + // exact number of levels depends on many factors. + // The last level will be the fully translated + // physical address, matching what VirtualToPhysical + // returns. If the address can only be partially + // translated S_FALSE is returned. + STDMETHOD(GetVirtualTranslationPhysicalOffsets)( + THIS_ + _In_ ULONG64 Virtual, + _Out_writes_opt_(OffsetsSize) PULONG64 Offsets, + _In_ ULONG OffsetsSize, + _Out_opt_ PULONG Levels + ) PURE; + + // System handle data is accessible in certain + // debug sessions. The particular data available + // varies from session to session and platform + // to platform. + STDMETHOD(ReadHandleData)( + THIS_ + _In_ ULONG64 Handle, + _In_ ULONG DataType, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; + + // Fills memory with the given pattern. + // The fill stops at the first non-writable byte. + STDMETHOD(FillVirtual)( + THIS_ + _In_ ULONG64 Start, + _In_ ULONG Size, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _Out_opt_ PULONG Filled + ) PURE; + STDMETHOD(FillPhysical)( + THIS_ + _In_ ULONG64 Start, + _In_ ULONG Size, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _Out_opt_ PULONG Filled + ) PURE; + + // Queries virtual memory mapping information given + // an address similarly to the Win32 API VirtualQuery. + // MEMORY_BASIC_INFORMATION64 is defined in crash.h. + // This method currently only works for user-mode sessions. + STDMETHOD(QueryVirtual)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PMEMORY_BASIC_INFORMATION64 Info + ) PURE; + + // IDebugDataSpaces3. + + // Convenience method for reading an image + // header from virtual memory. Given the + // image base, this method determines where + // the NT headers are, validates the necessary + // markers and converts the headers into + // 64-bit form for consistency. + // A caller can check whether the headers were + // originally 32-bit by checking the optional + // header magic value. + // This method will not read ROM headers. + STDMETHOD(ReadImageNtHeaders)( + THIS_ + _In_ ULONG64 ImageBase, + _Out_ PIMAGE_NT_HEADERS64 Headers + ) PURE; + + // Some debug sessions have arbitrary additional + // data available. For example, additional dump + // information files may contain extra information + // gathered at the same time as the primary dump. + // Such information is tagged with a unique identifier + // and can only be retrieved via the tag. + // Tagged data cannot be partially available; the + // tagged block is either fully present or completely + // absent. + STDMETHOD(ReadTagged)( + THIS_ + _In_ LPGUID Tag, + _In_ ULONG Offset, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TotalSize + ) PURE; + STDMETHOD(StartEnumTagged)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(GetNextTagged)( + THIS_ + _In_ ULONG64 Handle, + _Out_ LPGUID Tag, + _Out_ PULONG Size + ) PURE; + STDMETHOD(EndEnumTagged)( + THIS_ + _In_ ULONG64 Handle + ) PURE; +}; + +#define DEBUG_OFFSINFO_VIRTUAL_SOURCE 0x00000001 + +#define DEBUG_VSOURCE_INVALID 0x00000000 +#define DEBUG_VSOURCE_DEBUGGEE 0x00000001 +#define DEBUG_VSOURCE_MAPPED_IMAGE 0x00000002 +#define DEBUG_VSOURCE_DUMP_WITHOUT_MEMINFO 0x00000003 + +#define DEBUG_VSEARCH_DEFAULT 0x00000000 +#define DEBUG_VSEARCH_WRITABLE_ONLY 0x00000001 + +#define DEBUG_PHYSICAL_DEFAULT 0x00000000 +#define DEBUG_PHYSICAL_CACHED 0x00000001 +#define DEBUG_PHYSICAL_UNCACHED 0x00000002 +#define DEBUG_PHYSICAL_WRITE_COMBINED 0x00000003 + +#undef INTERFACE +#define INTERFACE IDebugDataSpaces4 +DECLARE_INTERFACE_(IDebugDataSpaces4, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugDataSpaces. + + STDMETHOD(ReadVirtual)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + // SearchVirtual searches the given virtual + // address range for the given pattern. PatternSize + // gives the byte length of the pattern and PatternGranularity + // controls the granularity of comparisons during + // the search. + // For example, a DWORD-granular search would + // use a pattern granularity of four to search by DWORD + // increments. + STDMETHOD(SearchVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Length, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _In_ ULONG PatternGranularity, + _Out_ PULONG64 MatchOffset + ) PURE; + // These methods are identical to Read/WriteVirtual + // except that they avoid the kernel virtual memory + // cache entirely and are therefore useful for reading + // virtual memory which is inherently volatile, such + // as memory-mapped device areas, without contaminating + // or invalidating the cache. + // In user-mode they are the same as Read/WriteVirtual. + STDMETHOD(ReadVirtualUncached)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteVirtualUncached)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + // The following two methods are convenience + // methods for accessing pointer values. + // They automatically convert between native pointers + // and canonical 64-bit values as necessary. + // These routines stop at the first failure. + STDMETHOD(ReadPointersVirtual)( + THIS_ + _In_ ULONG Count, + _In_ ULONG64 Offset, + _Out_writes_(Count) PULONG64 Ptrs + ) PURE; + STDMETHOD(WritePointersVirtual)( + THIS_ + _In_ ULONG Count, + _In_ ULONG64 Offset, + _In_reads_(Count) PULONG64 Ptrs + ) PURE; + // All non-virtual data spaces are only + // available when kernel debugging. + STDMETHOD(ReadPhysical)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WritePhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadControl)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteControl)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadIo)( + THIS_ + _In_ ULONG InterfaceType, + _In_ ULONG BusNumber, + _In_ ULONG AddressSpace, + _In_ ULONG64 Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteIo)( + THIS_ + _In_ ULONG InterfaceType, + _In_ ULONG BusNumber, + _In_ ULONG AddressSpace, + _In_ ULONG64 Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(ReadMsr)( + THIS_ + _In_ ULONG Msr, + _Out_ PULONG64 Value + ) PURE; + STDMETHOD(WriteMsr)( + THIS_ + _In_ ULONG Msr, + _In_ ULONG64 Value + ) PURE; + STDMETHOD(ReadBusData)( + THIS_ + _In_ ULONG BusDataType, + _In_ ULONG BusNumber, + _In_ ULONG SlotNumber, + _In_ ULONG Offset, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteBusData)( + THIS_ + _In_ ULONG BusDataType, + _In_ ULONG BusNumber, + _In_ ULONG SlotNumber, + _In_ ULONG Offset, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(CheckLowMemory)( + THIS + ) PURE; + STDMETHOD(ReadDebuggerData)( + THIS_ + _In_ ULONG Index, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; + STDMETHOD(ReadProcessorSystemData)( + THIS_ + _In_ ULONG Processor, + _In_ ULONG Index, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; + + // IDebugDataSpaces2. + + STDMETHOD(VirtualToPhysical)( + THIS_ + _In_ ULONG64 Virtual, + _Out_ PULONG64 Physical + ) PURE; + // Returns the physical addresses for the + // N levels of the systems paging structures. + // Level zero is the starting base physical + // address for virtual translations. + // Levels one-(N-1) will point to the appropriate + // paging descriptor for the virtual address at + // the given level of the paging hierarchy. The + // exact number of levels depends on many factors. + // The last level will be the fully translated + // physical address, matching what VirtualToPhysical + // returns. If the address can only be partially + // translated S_FALSE is returned. + STDMETHOD(GetVirtualTranslationPhysicalOffsets)( + THIS_ + _In_ ULONG64 Virtual, + _Out_writes_opt_(OffsetsSize) PULONG64 Offsets, + _In_ ULONG OffsetsSize, + _Out_opt_ PULONG Levels + ) PURE; + + // System handle data is accessible in certain + // debug sessions. The particular data available + // varies from session to session and platform + // to platform. + STDMETHOD(ReadHandleData)( + THIS_ + _In_ ULONG64 Handle, + _In_ ULONG DataType, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG DataSize + ) PURE; + + // Fills memory with the given pattern. + // The fill stops at the first non-writable byte. + STDMETHOD(FillVirtual)( + THIS_ + _In_ ULONG64 Start, + _In_ ULONG Size, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _Out_opt_ PULONG Filled + ) PURE; + STDMETHOD(FillPhysical)( + THIS_ + _In_ ULONG64 Start, + _In_ ULONG Size, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _Out_opt_ PULONG Filled + ) PURE; + + // Queries virtual memory mapping information given + // an address similarly to the Win32 API VirtualQuery. + // MEMORY_BASIC_INFORMATION64 is defined in crash.h. + // This method currently only works for user-mode sessions. + STDMETHOD(QueryVirtual)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PMEMORY_BASIC_INFORMATION64 Info + ) PURE; + + // IDebugDataSpaces3. + + // Convenience method for reading an image + // header from virtual memory. Given the + // image base, this method determines where + // the NT headers are, validates the necessary + // markers and converts the headers into + // 64-bit form for consistency. + // A caller can check whether the headers were + // originally 32-bit by checking the optional + // header magic value. + // This method will not read ROM headers. + STDMETHOD(ReadImageNtHeaders)( + THIS_ + _In_ ULONG64 ImageBase, + _Out_ PIMAGE_NT_HEADERS64 Headers + ) PURE; + + // Some debug sessions have arbitrary additional + // data available. For example, additional dump + // information files may contain extra information + // gathered at the same time as the primary dump. + // Such information is tagged with a unique identifier + // and can only be retrieved via the tag. + // Tagged data cannot be partially available; the + // tagged block is either fully present or completely + // absent. + STDMETHOD(ReadTagged)( + THIS_ + _In_ LPGUID Tag, + _In_ ULONG Offset, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG TotalSize + ) PURE; + STDMETHOD(StartEnumTagged)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(GetNextTagged)( + THIS_ + _In_ ULONG64 Handle, + _Out_ LPGUID Tag, + _Out_ PULONG Size + ) PURE; + STDMETHOD(EndEnumTagged)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + // IDebugDataSpaces4. + + // General information about an address in the given data space. + // Queries are from DEBUG_OFFSINFO_*. + STDMETHOD(GetOffsetInformation)( + THIS_ + _In_ ULONG Space, + _In_ ULONG Which, + _In_ ULONG64 Offset, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG InfoSize + ) PURE; + + // Given a particular address, return the + // next address which has a different validity. + // For example, in debug sessions such as a live + // user-mode session where virtual address validity + // changes from page to page this will return the + // page after the given page. In sessions such as + // a user-mode dump file where validity can change + // from byte to byte this will return the start of + // the next region that has different validity. + STDMETHOD(GetNextDifferentlyValidOffsetVirtual)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG64 NextOffset + ) PURE; + + // Given a particular range of virtual addresses, + // find the first region which is valid memory. + STDMETHOD(GetValidRegionVirtual)( + THIS_ + _In_ ULONG64 Base, + _In_ ULONG Size, + _Out_ PULONG64 ValidBase, + _Out_ PULONG ValidSize + ) PURE; + + STDMETHOD(SearchVirtual2)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Length, + _In_ ULONG Flags, + _In_reads_bytes_(PatternSize) PVOID Pattern, + _In_ ULONG PatternSize, + _In_ ULONG PatternGranularity, + _Out_ PULONG64 MatchOffset + ) PURE; + + // Attempts to read a multi-byte string + // starting at the given virtual address. + // The possible string length, including terminator, + // is capped at the given max size. + // If a return buffer is given it will always + // be terminated. + STDMETHOD(ReadMultiByteStringVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG MaxBytes, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringBytes + ) PURE; + // Reads a multi-byte string and converts + // it to Unicode using the given code page. + STDMETHOD(ReadMultiByteStringVirtualWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG MaxBytes, + _In_ ULONG CodePage, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringBytes + ) PURE; + STDMETHOD(ReadUnicodeStringVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG MaxBytes, + _In_ ULONG CodePage, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringBytes + ) PURE; + STDMETHOD(ReadUnicodeStringVirtualWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG MaxBytes, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringBytes + ) PURE; + + STDMETHOD(ReadPhysical2)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WritePhysical2)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// IDebugEventCallbacks. +// +//---------------------------------------------------------------------------- + +// Interest mask bits. +#define DEBUG_EVENT_BREAKPOINT 0x00000001 +#define DEBUG_EVENT_EXCEPTION 0x00000002 +#define DEBUG_EVENT_CREATE_THREAD 0x00000004 +#define DEBUG_EVENT_EXIT_THREAD 0x00000008 +#define DEBUG_EVENT_CREATE_PROCESS 0x00000010 +#define DEBUG_EVENT_EXIT_PROCESS 0x00000020 +#define DEBUG_EVENT_LOAD_MODULE 0x00000040 +#define DEBUG_EVENT_UNLOAD_MODULE 0x00000080 +#define DEBUG_EVENT_SYSTEM_ERROR 0x00000100 +#define DEBUG_EVENT_SESSION_STATUS 0x00000200 +#define DEBUG_EVENT_CHANGE_DEBUGGEE_STATE 0x00000400 +#define DEBUG_EVENT_CHANGE_ENGINE_STATE 0x00000800 +#define DEBUG_EVENT_CHANGE_SYMBOL_STATE 0x00001000 +#define DEBUG_EVENT_SERVICE_EXCEPTION 0x00002000 + +// SessionStatus flags. +// A debuggee has been discovered for the session. +#define DEBUG_SESSION_ACTIVE 0x00000000 +// The session has been ended by EndSession. +#define DEBUG_SESSION_END_SESSION_ACTIVE_TERMINATE 0x00000001 +#define DEBUG_SESSION_END_SESSION_ACTIVE_DETACH 0x00000002 +#define DEBUG_SESSION_END_SESSION_PASSIVE 0x00000003 +// The debuggee has run to completion. User-mode only. +#define DEBUG_SESSION_END 0x00000004 +// The target machine has rebooted. Kernel-mode only. +#define DEBUG_SESSION_REBOOT 0x00000005 +// The target machine has hibernated. Kernel-mode only. +#define DEBUG_SESSION_HIBERNATE 0x00000006 +// The engine was unable to continue the session. +#define DEBUG_SESSION_FAILURE 0x00000007 + +// ChangeDebuggeeState flags. +// The debuggees state has changed generally, such +// as when the debuggee has been executing. +// Argument is zero. +#define DEBUG_CDS_ALL 0xffffffff +// Registers have changed. If only a single register +// changed, argument is the index of the register. +// Otherwise it is DEBUG_ANY_ID. +#define DEBUG_CDS_REGISTERS 0x00000001 +// Data spaces have changed. If only a single +// space was affected, argument is the data +// space. Otherwise it is DEBUG_ANY_ID. +#define DEBUG_CDS_DATA 0x00000002 +// Inform the GUI clients to refresh debugger windows. +#define DEBUG_CDS_REFRESH 0x00000004 + +// DEBUG_CDS_REFRESH IDs +#define DEBUG_CDS_REFRESH_EVALUATE 1 +#define DEBUG_CDS_REFRESH_EXECUTE 2 +#define DEBUG_CDS_REFRESH_EXECUTECOMMANDFILE 3 +#define DEBUG_CDS_REFRESH_ADDBREAKPOINT 4 +#define DEBUG_CDS_REFRESH_REMOVEBREAKPOINT 5 +#define DEBUG_CDS_REFRESH_WRITEVIRTUAL 6 +#define DEBUG_CDS_REFRESH_WRITEVIRTUALUNCACHED 7 +#define DEBUG_CDS_REFRESH_WRITEPHYSICAL 8 +#define DEBUG_CDS_REFRESH_WRITEPHYSICAL2 9 +#define DEBUG_CDS_REFRESH_SETVALUE 10 +#define DEBUG_CDS_REFRESH_SETVALUE2 11 +#define DEBUG_CDS_REFRESH_SETSCOPE 12 +#define DEBUG_CDS_REFRESH_SETSCOPEFRAMEBYINDEX 13 +#define DEBUG_CDS_REFRESH_SETSCOPEFROMJITDEBUGINFO 14 +#define DEBUG_CDS_REFRESH_SETSCOPEFROMSTOREDEVENT 15 +#define DEBUG_CDS_REFRESH_INLINESTEP 16 +#define DEBUG_CDS_REFRESH_INLINESTEP_PSEUDO 17 + +// ChangeEngineState flags. +// The engine state has changed generally. +// Argument is zero. +#define DEBUG_CES_ALL 0xffffffff +// Current thread changed. This may imply a change +// of system and process also. Argument is the ID of the new +// current thread or DEBUG_ANY_ID if no thread is current. +#define DEBUG_CES_CURRENT_THREAD 0x00000001 +// Effective processor changed. Argument is the +// new processor type. +#define DEBUG_CES_EFFECTIVE_PROCESSOR 0x00000002 +// Breakpoints changed. If only a single breakpoint +// changed, argument is the ID of the breakpoint. +// Otherwise it is DEBUG_ANY_ID. +#define DEBUG_CES_BREAKPOINTS 0x00000004 +// Code interpretation level changed. Argument is +// the new level. +#define DEBUG_CES_CODE_LEVEL 0x00000008 +// Execution status changed. Argument is the new +// execution status. +#define DEBUG_CES_EXECUTION_STATUS 0x00000010 +// Engine options have changed. Argument is the new +// options value. +#define DEBUG_CES_ENGINE_OPTIONS 0x00000020 +// Log file information has changed. Argument +// is TRUE if a log file was opened and FALSE if +// a log file was closed. +#define DEBUG_CES_LOG_FILE 0x00000040 +// Default number radix has changed. Argument +// is the new radix. +#define DEBUG_CES_RADIX 0x00000080 +// Event filters changed. If only a single filter +// changed the argument is the filter's index, +// otherwise it is DEBUG_ANY_ID. +#define DEBUG_CES_EVENT_FILTERS 0x00000100 +// Process options have changed. Argument is the new +// options value. +#define DEBUG_CES_PROCESS_OPTIONS 0x00000200 +// Extensions have been added or removed. +#define DEBUG_CES_EXTENSIONS 0x00000400 +// Systems have been added or removed. The argument +// is the system ID. Systems, unlike processes and +// threads, may be created at any time and not +// just during WaitForEvent. +#define DEBUG_CES_SYSTEMS 0x00000800 +// Assembly/disassembly options have changed. Argument +// is the new options value. +#define DEBUG_CES_ASSEMBLY_OPTIONS 0x00001000 +// Expression syntax has changed. Argument +// is the new syntax value. +#define DEBUG_CES_EXPRESSION_SYNTAX 0x00002000 +// Text replacements have changed. +#define DEBUG_CES_TEXT_REPLACEMENTS 0x00004000 + +// ChangeSymbolState flags. +// Symbol state has changed generally, such +// as after reload operations. Argument is zero. +#define DEBUG_CSS_ALL 0xffffffff +// Modules have been loaded. If only a +// single module changed, argument is the +// base address of the module. Otherwise +// it is zero. +#define DEBUG_CSS_LOADS 0x00000001 +// Modules have been unloaded. If only a +// single module changed, argument is the +// base address of the module. Otherwise +// it is zero. +#define DEBUG_CSS_UNLOADS 0x00000002 +// Current symbol scope changed. +#define DEBUG_CSS_SCOPE 0x00000004 +// Paths have changed. +#define DEBUG_CSS_PATHS 0x00000008 +// Symbol options have changed. Argument is the new +// options value. +#define DEBUG_CSS_SYMBOL_OPTIONS 0x00000010 +// Type options have changed. Argument is the new +// options value. +#define DEBUG_CSS_TYPE_OPTIONS 0x00000020 +// Inform that the current Scope Symbol format has been changed, +// so the client needs to update the symbols on Locals/Watch/.. +// and the engine will collapse any expanded child +#define DEBUG_CSS_COLLAPSE_CHILDREN 0x00000040 + + +#undef INTERFACE +#define INTERFACE IDebugEventCallbacks +DECLARE_INTERFACE_(IDebugEventCallbacks, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugEventCallbacks. + + // The engine calls GetInterestMask once when + // the event callbacks are set for a client. + STDMETHOD(GetInterestMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + + // A breakpoint event is generated when + // a breakpoint exception is received and + // it can be mapped to an existing breakpoint. + // The callback method is given a reference + // to the breakpoint and should release it when + // it is done with it. + STDMETHOD(Breakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT Bp + ) PURE; + + // Exceptions include breaks which cannot + // be mapped to an existing breakpoint + // instance. + STDMETHOD(Exception)( + THIS_ + _In_ PEXCEPTION_RECORD64 Exception, + _In_ ULONG FirstChance + ) PURE; + + // Any of these values can be zero if they + // cannot be provided by the engine. + // Currently the kernel does not return thread + // or process change events. + STDMETHOD(CreateThread)( + THIS_ + _In_ ULONG64 Handle, + _In_ ULONG64 DataOffset, + _In_ ULONG64 StartOffset + ) PURE; + STDMETHOD(ExitThread)( + THIS_ + _In_ ULONG ExitCode + ) PURE; + + // Any of these values can be zero if they + // cannot be provided by the engine. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 ImageFileHandle, + _In_ ULONG64 Handle, + _In_ ULONG64 BaseOffset, + _In_ ULONG ModuleSize, + _In_opt_ PCSTR ModuleName, + _In_opt_ PCSTR ImageName, + _In_ ULONG CheckSum, + _In_ ULONG TimeDateStamp, + _In_ ULONG64 InitialThreadHandle, + _In_ ULONG64 ThreadDataOffset, + _In_ ULONG64 StartOffset + ) PURE; + _Analysis_noreturn_ + STDMETHOD(ExitProcess)( + THIS_ + _In_ ULONG ExitCode + ) PURE; + + // Any of these values may be zero. + STDMETHOD(LoadModule)( + THIS_ + _In_ ULONG64 ImageFileHandle, + _In_ ULONG64 BaseOffset, + _In_ ULONG ModuleSize, + _In_opt_ PCSTR ModuleName, + _In_opt_ PCSTR ImageName, + _In_ ULONG CheckSum, + _In_ ULONG TimeDateStamp + ) PURE; + STDMETHOD(UnloadModule)( + THIS_ + _In_opt_ PCSTR ImageBaseName, + _In_ ULONG64 BaseOffset + ) PURE; + + STDMETHOD(SystemError)( + THIS_ + _In_ ULONG Error, + _In_ ULONG Level + ) PURE; + + // Session status is synchronous like the other + // wait callbacks but it is called as the state + // of the session is changing rather than at + // specific events so its return value does not + // influence waiting. Implementations should just + // return DEBUG_STATUS_NO_CHANGE. + // Also, because some of the status + // notifications are very early or very + // late in the session lifetime there may not be + // current processes or threads when the notification + // is generated. + STDMETHOD(SessionStatus)( + THIS_ + _In_ ULONG Status + ) PURE; + + // The following callbacks are informational + // callbacks notifying the provider about + // changes in debug state. The return value + // of these callbacks is ignored. Implementations + // can not call back into the engine. + + // Debuggee state, such as registers or data spaces, + // has changed. + STDMETHOD(ChangeDebuggeeState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) PURE; + // Engine state has changed. + STDMETHOD(ChangeEngineState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) PURE; + // Symbol state has changed. + STDMETHOD(ChangeSymbolState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugEventCallbacksWide +DECLARE_INTERFACE_(IDebugEventCallbacksWide, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugEventCallbacksWide. + + // The engine calls GetInterestMask once when + // the event callbacks are set for a client. + STDMETHOD(GetInterestMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + + // A breakpoint event is generated when + // a breakpoint exception is received and + // it can be mapped to an existing breakpoint. + // The callback method is given a reference + // to the breakpoint and should release it when + // it is done with it. + STDMETHOD(Breakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT2 Bp + ) PURE; + + // Exceptions include breaks which cannot + // be mapped to an existing breakpoint + // instance. + STDMETHOD(Exception)( + THIS_ + _In_ PEXCEPTION_RECORD64 Exception, + _In_ ULONG FirstChance + ) PURE; + + // Any of these values can be zero if they + // cannot be provided by the engine. + // Currently the kernel does not return thread + // or process change events. + STDMETHOD(CreateThread)( + THIS_ + _In_ ULONG64 Handle, + _In_ ULONG64 DataOffset, + _In_ ULONG64 StartOffset + ) PURE; + _Analysis_noreturn_ + STDMETHOD(ExitThread)( + THIS_ + _In_ ULONG ExitCode + ) PURE; + + // Any of these values can be zero if they + // cannot be provided by the engine. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 ImageFileHandle, + _In_ ULONG64 Handle, + _In_ ULONG64 BaseOffset, + _In_ ULONG ModuleSize, + _In_opt_ PCWSTR ModuleName, + _In_opt_ PCWSTR ImageName, + _In_ ULONG CheckSum, + _In_ ULONG TimeDateStamp, + _In_ ULONG64 InitialThreadHandle, + _In_ ULONG64 ThreadDataOffset, + _In_ ULONG64 StartOffset + ) PURE; + STDMETHOD(ExitProcess)( + THIS_ + _In_ ULONG ExitCode + ) PURE; + + // Any of these values may be zero. + STDMETHOD(LoadModule)( + THIS_ + _In_ ULONG64 ImageFileHandle, + _In_ ULONG64 BaseOffset, + _In_ ULONG ModuleSize, + _In_opt_ PCWSTR ModuleName, + _In_opt_ PCWSTR ImageName, + _In_ ULONG CheckSum, + _In_ ULONG TimeDateStamp + ) PURE; + STDMETHOD(UnloadModule)( + THIS_ + _In_opt_ PCWSTR ImageBaseName, + _In_ ULONG64 BaseOffset + ) PURE; + + STDMETHOD(SystemError)( + THIS_ + _In_ ULONG Error, + _In_ ULONG Level + ) PURE; + + // Session status is synchronous like the other + // wait callbacks but it is called as the state + // of the session is changing rather than at + // specific events so its return value does not + // influence waiting. Implementations should just + // return DEBUG_STATUS_NO_CHANGE. + // Also, because some of the status + // notifications are very early or very + // late in the session lifetime there may not be + // current processes or threads when the notification + // is generated. + STDMETHOD(SessionStatus)( + THIS_ + _In_ ULONG Status + ) PURE; + + // The following callbacks are informational + // callbacks notifying the provider about + // changes in debug state. The return value + // of these callbacks is ignored. Implementations + // can not call back into the engine. + + // Debuggee state, such as registers or data spaces, + // has changed. + STDMETHOD(ChangeDebuggeeState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) PURE; + // Engine state has changed. + STDMETHOD(ChangeEngineState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) PURE; + // Symbol state has changed. + STDMETHOD(ChangeSymbolState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) PURE; +}; + +typedef struct _DEBUG_EVENT_CONTEXT +{ + ULONG Size; + ULONG ProcessEngineId; + ULONG ThreadEngineId; + ULONG FrameEngineId; +} DEBUG_EVENT_CONTEXT, *PDEBUG_EVENT_CONTEXT; + +#undef INTERFACE +#define INTERFACE IDebugEventContextCallbacks +DECLARE_INTERFACE_(IDebugEventContextCallbacks, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugEventContextCallbacks. + + // The engine calls GetInterestMask once when + // the event callbacks are set for a client. + STDMETHOD(GetInterestMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + + // A breakpoint event is generated when + // a breakpoint exception is received and + // it can be mapped to an existing breakpoint. + // The callback method is given a reference + // to the breakpoint and should release it when + // it is done with it. + STDMETHOD(Breakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT2 Bp, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + // Exceptions include breaks which cannot + // be mapped to an existing breakpoint + // instance. + STDMETHOD(Exception)( + THIS_ + _In_ PEXCEPTION_RECORD64 Exception, + _In_ ULONG FirstChance, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + // Any of these values can be zero if they + // cannot be provided by the engine. + // Currently the kernel does not return thread + // or process change events. + STDMETHOD(CreateThread)( + THIS_ + _In_ ULONG64 Handle, + _In_ ULONG64 DataOffset, + _In_ ULONG64 StartOffset, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + STDMETHOD(ExitThread)( + THIS_ + _In_ ULONG ExitCode, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + // Any of these values can be zero if they + // cannot be provided by the engine. + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 ImageFileHandle, + _In_ ULONG64 Handle, + _In_ ULONG64 BaseOffset, + _In_ ULONG ModuleSize, + _In_opt_ PCWSTR ModuleName, + _In_opt_ PCWSTR ImageName, + _In_ ULONG CheckSum, + _In_ ULONG TimeDateStamp, + _In_ ULONG64 InitialThreadHandle, + _In_ ULONG64 ThreadDataOffset, + _In_ ULONG64 StartOffset, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + STDMETHOD(ExitProcess)( + THIS_ + _In_ ULONG ExitCode, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + // Any of these values may be zero. + STDMETHOD(LoadModule)( + THIS_ + _In_ ULONG64 ImageFileHandle, + _In_ ULONG64 BaseOffset, + _In_ ULONG ModuleSize, + _In_opt_ PCWSTR ModuleName, + _In_opt_ PCWSTR ImageName, + _In_ ULONG CheckSum, + _In_ ULONG TimeDateStamp, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + STDMETHOD(UnloadModule)( + THIS_ + _In_opt_ PCWSTR ImageBaseName, + _In_ ULONG64 BaseOffset, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + STDMETHOD(SystemError)( + THIS_ + _In_ ULONG Error, + _In_ ULONG Level, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + + // Session status is synchronous like the other + // wait callbacks but it is called as the state + // of the session is changing rather than at + // specific events so its return value does not + // influence waiting. Implementations should just + // return DEBUG_STATUS_NO_CHANGE. + // Also, because some of the status + // notifications are very early or very + // late in the session lifetime there may not be + // current processes or threads when the notification + // is generated. + STDMETHOD(SessionStatus)( + THIS_ + _In_ ULONG Status + ) PURE; + + // The following callbacks are informational + // callbacks notifying the provider about + // changes in debug state. The return value + // of these callbacks is ignored. Implementations + // can not call back into the engine. + + // Debuggee state, such as registers or data spaces, + // has changed. + STDMETHOD(ChangeDebuggeeState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + // Engine state has changed. + STDMETHOD(ChangeEngineState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument, + _In_reads_bytes_(ContextSize) PVOID Context, + _In_ ULONG ContextSize + ) PURE; + // Symbol state has changed. + STDMETHOD(ChangeSymbolState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// IDebugInputCallbacks. +// +//---------------------------------------------------------------------------- + +#undef INTERFACE +#define INTERFACE IDebugInputCallbacks +DECLARE_INTERFACE_(IDebugInputCallbacks, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugInputCallbacks. + + // A call to the StartInput method is a request for + // a line of input from any client. The returned input + // should always be zero-terminated. The buffer size + // provided is only a guideline. A client can return + // more if necessary and the engine will truncate it + // before returning from IDebugControl::Input. + // The return value is ignored. + STDMETHOD(StartInput)( + THIS_ + _In_ ULONG BufferSize + ) PURE; + // The return value is ignored. + STDMETHOD(EndInput)( + THIS + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// IDebugOutputCallbacks. +// +//---------------------------------------------------------------------------- + +#undef INTERFACE +#define INTERFACE IDebugOutputCallbacks +DECLARE_INTERFACE_(IDebugOutputCallbacks, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugOutputCallbacks. + + // This method is only called if the supplied mask + // is allowed by the clients output control. + // The return value is ignored. + STDMETHOD(Output)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Text + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugOutputCallbacksWide +DECLARE_INTERFACE_(IDebugOutputCallbacksWide, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugOutputCallbacksWide. + + // This method is only called if the supplied mask + // is allowed by the clients output control. + // The return value is ignored. + STDMETHOD(Output)( + THIS_ + _In_ ULONG Mask, + _In_ PCWSTR Text + ) PURE; +}; + +// +// IDebugOutputCallbacks2 interest mask flags. +// + +// Indicates that the callback wants notifications +// of all explicit flushes. +#define DEBUG_OUTCBI_EXPLICIT_FLUSH 0x00000001 +// Indicates that the callback wants +// content in text form. +#define DEBUG_OUTCBI_TEXT 0x00000002 +// Indicates that the callback wants +// content in markup form. +#define DEBUG_OUTCBI_DML 0x00000004 + +#define DEBUG_OUTCBI_ANY_FORMAT 0x00000006 + +// +// Different kinds of output callback notifications +// that can be sent to Output2. +// + +// Plain text content, flags are below, argument is mask. +#define DEBUG_OUTCB_TEXT 0 +// Debugger markup content, flags are below, argument is mask. +#define DEBUG_OUTCB_DML 1 +// Notification of an explicit output flush, flags and argument are zero. +#define DEBUG_OUTCB_EXPLICIT_FLUSH 2 + +// +// Flags for various Output2 callbacks. +// + +// The content string was followed by an +// explicit flush. This flag will be used +// instead of a separate DEBUG_OUTCB_EXPLICIT_FLUSH +// callback when a flush has text to flush, +// thus avoiding two callbacks. +#define DEBUG_OUTCBF_COMBINED_EXPLICIT_FLUSH 0x00000001 + +// The markup content string has embedded tags. +#define DEBUG_OUTCBF_DML_HAS_TAGS 0x00000002 +// The markup content has encoded special characters like ", &, < and >. +#define DEBUG_OUTCBF_DML_HAS_SPECIAL_CHARACTERS 0x00000004 + +#undef INTERFACE +#define INTERFACE IDebugOutputCallbacks2 +DECLARE_INTERFACE_(IDebugOutputCallbacks2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugOutputCallbacks. + + // This method is not used. + STDMETHOD(Output)( + THIS_ + _In_ ULONG Mask, + _In_ PCSTR Text + ) PURE; + + // IDebugOutputCallbacks2. + + // The engine calls GetInterestMask once when + // the callbacks are set for a client. + STDMETHOD(GetInterestMask)( + THIS_ + _Out_ PULONG Mask + ) PURE; + + STDMETHOD(Output2)( + THIS_ + _In_ ULONG Which, + _In_ ULONG Flags, + _In_ ULONG64 Arg, + _In_opt_ PCWSTR Text + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// IDebugRegisters. +// +//---------------------------------------------------------------------------- + +#define DEBUG_REGISTERS_DEFAULT 0x00000000 +#define DEBUG_REGISTERS_INT32 0x00000001 +#define DEBUG_REGISTERS_INT64 0x00000002 +#define DEBUG_REGISTERS_FLOAT 0x00000004 +#define DEBUG_REGISTERS_ALL 0x00000007 + +#define DEBUG_REGISTER_SUB_REGISTER 0x00000001 + +typedef struct _DEBUG_REGISTER_DESCRIPTION +{ + // DEBUG_VALUE type. + ULONG Type; + ULONG Flags; + + // If this is a subregister the full + // registers description index is + // given in SubregMaster. The length, mask + // and shift describe how the subregisters + // bits fit into the full register. + ULONG SubregMaster; + ULONG SubregLength; + ULONG64 SubregMask; + ULONG SubregShift; + + ULONG Reserved0; +} DEBUG_REGISTER_DESCRIPTION, *PDEBUG_REGISTER_DESCRIPTION; + +#undef INTERFACE +#define INTERFACE IDebugRegisters +DECLARE_INTERFACE_(IDebugRegisters, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugRegisters. + STDMETHOD(GetNumberRegisters)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetDescription)( + THIS_ + _In_ ULONG Register, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PDEBUG_REGISTER_DESCRIPTION Desc + ) PURE; + STDMETHOD(GetIndexByName)( + THIS_ + _In_ PCSTR Name, + _Out_ PULONG Index + ) PURE; + + STDMETHOD(GetValue)( + THIS_ + _In_ ULONG Register, + _Out_ PDEBUG_VALUE Value + ) PURE; + // SetValue makes a best effort at coercing + // the given value into the given registers + // value type. If the given value is larger + // than the register can hold the least + // significant bits will be dropped. Float + // to int and int to float will be done + // if necessary. Subregister bits will be + // inserted into the master register. + STDMETHOD(SetValue)( + THIS_ + _In_ ULONG Register, + _In_ PDEBUG_VALUE Value + ) PURE; + // Gets Count register values. If Indices is + // non-NULL it must contain Count register + // indices which control the registers affected. + // If Indices is NULL the registers from Start + // to Start + Count 1 are retrieved. + STDMETHOD(GetValues)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Indices, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_VALUE Values + ) PURE; + STDMETHOD(SetValues)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Indices, + _In_ ULONG Start, + _In_reads_(Count) PDEBUG_VALUE Values + ) PURE; + + // Outputs a group of registers in a well-formatted + // way thats specific to the platforms register set. + // Uses the line prefix. + STDMETHOD(OutputRegisters)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // Abstracted pieces of processor information. + // The mapping of these values to architectural + // registers is architecture-specific and their + // interpretation and existence may vary. They + // are intended to be directly compatible with + // calls which take this information, such as + // stack walking. + STDMETHOD(GetInstructionOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(GetStackOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(GetFrameOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; +}; + +// +// The engine maintains several separate +// pieces of context information. There is +// the current debuggee context, a possible +// override context, such as from .cxr, +// a context for the current scope frame and so on. +// + +// Get register information from the debuggee. +#define DEBUG_REGSRC_DEBUGGEE 0x00000000 +// Get register information from an explicit +// override context, such as one set by .cxr. +// If there is no override context the request will fail. +#define DEBUG_REGSRC_EXPLICIT 0x00000001 +// Get register information from the current scope +// frame. Note that stack unwinding does not guarantee +// accurate updating of the register context, +// so scope frame register context may not be accurate +// in all cases. +#define DEBUG_REGSRC_FRAME 0x00000002 + +#undef INTERFACE +#define INTERFACE IDebugRegisters2 +DECLARE_INTERFACE_(IDebugRegisters2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugRegisters. + + STDMETHOD(GetNumberRegisters)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetDescription)( + THIS_ + _In_ ULONG Register, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PDEBUG_REGISTER_DESCRIPTION Desc + ) PURE; + STDMETHOD(GetIndexByName)( + THIS_ + _In_ PCSTR Name, + _Out_ PULONG Index + ) PURE; + + STDMETHOD(GetValue)( + THIS_ + _In_ ULONG Register, + _Out_ PDEBUG_VALUE Value + ) PURE; + // SetValue makes a best effort at coercing + // the given value into the given registers + // value type. If the given value is larger + // than the register can hold the least + // significant bits will be dropped. Float + // to int and int to float will be done + // if necessary. Subregister bits will be + // inserted into the master register. + STDMETHOD(SetValue)( + THIS_ + _In_ ULONG Register, + _In_ PDEBUG_VALUE Value + ) PURE; + // Gets Count register values. If Indices is + // non-NULL it must contain Count register + // indices which control the registers affected. + // If Indices is NULL the registers from Start + // to Start + Count 1 are retrieved. + STDMETHOD(GetValues)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Indices, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_VALUE Values + ) PURE; + STDMETHOD(SetValues)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Indices, + _In_ ULONG Start, + _In_reads_(Count) PDEBUG_VALUE Values + ) PURE; + + // Outputs a group of registers in a well-formatted + // way thats specific to the platforms register set. + // Uses the line prefix. + STDMETHOD(OutputRegisters)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags + ) PURE; + + // Abstracted pieces of processor information. + // The mapping of these values to architectural + // registers is architecture-specific and their + // interpretation and existence may vary. They + // are intended to be directly compatible with + // calls which take this information, such as + // stack walking. + STDMETHOD(GetInstructionOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(GetStackOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(GetFrameOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + + // IDebugRegisters2. + + STDMETHOD(GetDescriptionWide)( + THIS_ + _In_ ULONG Register, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PDEBUG_REGISTER_DESCRIPTION Desc + ) PURE; + STDMETHOD(GetIndexByNameWide)( + THIS_ + _In_ PCWSTR Name, + _Out_ PULONG Index + ) PURE; + + // Pseudo-registers are synthetic values derived + // by the engine that are presented in a manner + // similar to regular registers. They are simple + // value holders, similar to actual registers. + // Pseudo-registers are defined for concepts, + // such as current-instruction-pointer or + // current-thread-data. As such they have + // types appropriate for their data. + STDMETHOD(GetNumberPseudoRegisters)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetPseudoDescription)( + THIS_ + _In_ ULONG Register, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 TypeModule, + _Out_opt_ PULONG TypeId + ) PURE; + STDMETHOD(GetPseudoDescriptionWide)( + THIS_ + _In_ ULONG Register, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 TypeModule, + _Out_opt_ PULONG TypeId + ) PURE; + STDMETHOD(GetPseudoIndexByName)( + THIS_ + _In_ PCSTR Name, + _Out_ PULONG Index + ) PURE; + STDMETHOD(GetPseudoIndexByNameWide)( + THIS_ + _In_ PCWSTR Name, + _Out_ PULONG Index + ) PURE; + // Some pseudo-register values are affected + // by the register source, others are not. + STDMETHOD(GetPseudoValues)( + THIS_ + _In_ ULONG Source, + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Indices, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_VALUE Values + ) PURE; + // Many pseudo-registers are read-only and cannot be set. + STDMETHOD(SetPseudoValues)( + THIS_ + _In_ ULONG Source, + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Indices, + _In_ ULONG Start, + _In_reads_(Count) PDEBUG_VALUE Values + ) PURE; + + // These expanded methods allow selection + // of the source of register information. + STDMETHOD(GetValues2)( + THIS_ + _In_ ULONG Source, + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Indices, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_VALUE Values + ) PURE; + STDMETHOD(SetValues2)( + THIS_ + _In_ ULONG Source, + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG Indices, + _In_ ULONG Start, + _In_reads_(Count) PDEBUG_VALUE Values + ) PURE; + STDMETHOD(OutputRegisters2)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Source, + _In_ ULONG Flags + ) PURE; + STDMETHOD(GetInstructionOffset2)( + THIS_ + _In_ ULONG Source, + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(GetStackOffset2)( + THIS_ + _In_ ULONG Source, + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(GetFrameOffset2)( + THIS_ + _In_ ULONG Source, + _Out_ PULONG64 Offset + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// IDebugSymbolGroup +// +//---------------------------------------------------------------------------- + +// OutputSymbols flags. +// Default output contains +// **NAME****OFF****VALUE****TYPE** +// per symbol. +#define DEBUG_OUTPUT_SYMBOLS_DEFAULT 0x00000000 +#define DEBUG_OUTPUT_SYMBOLS_NO_NAMES 0x00000001 +#define DEBUG_OUTPUT_SYMBOLS_NO_OFFSETS 0x00000002 +#define DEBUG_OUTPUT_SYMBOLS_NO_VALUES 0x00000004 +#define DEBUG_OUTPUT_SYMBOLS_NO_TYPES 0x00000010 + +#define DEBUG_OUTPUT_NAME_END "**NAME**" +#define DEBUG_OUTPUT_OFFSET_END "**OFF**" +#define DEBUG_OUTPUT_VALUE_END "**VALUE**" +#define DEBUG_OUTPUT_TYPE_END "**TYPE**" + +#define DEBUG_OUTPUT_NAME_END_WIDE L"**NAME**" +#define DEBUG_OUTPUT_OFFSET_END_WIDE L"**OFF**" +#define DEBUG_OUTPUT_VALUE_END_WIDE L"**VALUE**" +#define DEBUG_OUTPUT_TYPE_END_WIDE L"**TYPE**" + +#ifdef UNICODE +#define DEBUG_OUTPUT_NAME_END_T DEBUG_OUTPUT_NAME_END_WIDE +#define DEBUG_OUTPUT_OFFSET_END_T DEBUG_OUTPUT_OFFSET_END_WIDE +#define DEBUG_OUTPUT_VALUE_END_T DEBUG_OUTPUT_VALUE_END_WIDE +#define DEBUG_OUTPUT_TYPE_END_T DEBUG_OUTPUT_TYPE_END_WIDE +#else +#define DEBUG_OUTPUT_NAME_END_T DEBUG_OUTPUT_NAME_END +#define DEBUG_OUTPUT_OFFSET_END_T DEBUG_OUTPUT_OFFSET_END +#define DEBUG_OUTPUT_VALUE_END_T DEBUG_OUTPUT_VALUE_END +#define DEBUG_OUTPUT_TYPE_END_T DEBUG_OUTPUT_TYPE_END +#endif + +// DEBUG_SYMBOL_PARAMETERS flags. +// Cumulative expansion level, takes four bits. +#define DEBUG_SYMBOL_EXPANSION_LEVEL_MASK 0x0000000f +// Symbols subelements follow. +#define DEBUG_SYMBOL_EXPANDED 0x00000010 +// Symbols value is read-only. +#define DEBUG_SYMBOL_READ_ONLY 0x00000020 +// Symbol subelements are array elements. +#define DEBUG_SYMBOL_IS_ARRAY 0x00000040 +// Symbol is a float value. +#define DEBUG_SYMBOL_IS_FLOAT 0x00000080 +// Symbol is a scope argument. +#define DEBUG_SYMBOL_IS_ARGUMENT 0x00000100 +// Symbol is a scope argument. +#define DEBUG_SYMBOL_IS_LOCAL 0x00000200 + +typedef struct _DEBUG_SYMBOL_PARAMETERS +{ + ULONG64 Module; + ULONG TypeId; + // ParentSymbol may be DEBUG_ANY_ID when unknown. + ULONG ParentSymbol; + // A subelement of a symbol can be a field, such + // as in structs, unions or classes; or an array + // element count for arrays. + ULONG SubElements; + ULONG Flags; + ULONG64 Reserved; +} DEBUG_SYMBOL_PARAMETERS, *PDEBUG_SYMBOL_PARAMETERS; + +#undef INTERFACE +#define INTERFACE IDebugSymbolGroup +DECLARE_INTERFACE_(IDebugSymbolGroup, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSymbolGroup. + STDMETHOD(GetNumberSymbols)( + THIS_ + _Out_ PULONG Number + ) PURE; + // On input Index indicates the desired insertion + // index. On output Index contains the actual index. + // Use DEBUG_ANY_ID to append a symbol to the end. + STDMETHOD(AddSymbol)( + THIS_ + _In_ PCSTR Name, + _Inout_ PULONG Index + ) PURE; + STDMETHOD(RemoveSymbolByName)( + THIS_ + _In_ PCSTR Name + ) PURE; + STDMETHOD(RemoveSymbolByIndex)( + THIS_ + _In_ ULONG Index + ) PURE; + STDMETHOD(GetSymbolName)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + STDMETHOD(GetSymbolParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PDEBUG_SYMBOL_PARAMETERS Params + ) PURE; + STDMETHOD(ExpandSymbol)( + THIS_ + _In_ ULONG Index, + _In_ BOOL Expand + ) PURE; + // Uses the line prefix. + STDMETHOD(OutputSymbols)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ ULONG Start, + _In_ ULONG Count + ) PURE; + STDMETHOD(WriteSymbol)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Value + ) PURE; + STDMETHOD(OutputAsType)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Type + ) PURE; +}; + +#define DEBUG_SYMENT_IS_CODE 0x00000001 +#define DEBUG_SYMENT_IS_DATA 0x00000002 +#define DEBUG_SYMENT_IS_PARAMETER 0x00000004 +#define DEBUG_SYMENT_IS_LOCAL 0x00000008 +#define DEBUG_SYMENT_IS_MANAGED 0x00000010 +#define DEBUG_SYMENT_IS_SYNTHETIC 0x00000020 + +typedef struct _DEBUG_SYMBOL_ENTRY +{ + ULONG64 ModuleBase; + ULONG64 Offset; + ULONG64 Id; + ULONG64 Arg64; + ULONG Size; + ULONG Flags; + ULONG TypeId; + ULONG NameSize; + ULONG Token; + ULONG Tag; + ULONG Arg32; + ULONG Reserved; +} DEBUG_SYMBOL_ENTRY, *PDEBUG_SYMBOL_ENTRY; + +#undef INTERFACE +#define INTERFACE IDebugSymbolGroup2 +DECLARE_INTERFACE_(IDebugSymbolGroup2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSymbolGroup. + + STDMETHOD(GetNumberSymbols)( + THIS_ + _Out_ PULONG Number + ) PURE; + // On input Index indicates the desired insertion + // index. On output Index contains the actual index. + // Use DEBUG_ANY_ID to append a symbol to the end. + STDMETHOD(AddSymbol)( + THIS_ + _In_ PCSTR Name, + _Inout_ PULONG Index + ) PURE; + STDMETHOD(RemoveSymbolByName)( + THIS_ + _In_ PCSTR Name + ) PURE; + STDMETHOD(RemoveSymbolByIndex)( + THIS_ + _In_ ULONG Index + ) PURE; + STDMETHOD(GetSymbolName)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + STDMETHOD(GetSymbolParameters)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PDEBUG_SYMBOL_PARAMETERS Params + ) PURE; + STDMETHOD(ExpandSymbol)( + THIS_ + _In_ ULONG Index, + _In_ BOOL Expand + ) PURE; + // Uses the line prefix. + STDMETHOD(OutputSymbols)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ ULONG Start, + _In_ ULONG Count + ) PURE; + STDMETHOD(WriteSymbol)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Value + ) PURE; + STDMETHOD(OutputAsType)( + THIS_ + _In_ ULONG Index, + _In_ PCSTR Type + ) PURE; + + // IDebugSymbolGroup2. + + STDMETHOD(AddSymbolWide)( + THIS_ + _In_ PCWSTR Name, + _Inout_ PULONG Index + ) PURE; + STDMETHOD(RemoveSymbolByNameWide)( + THIS_ + _In_ PCWSTR Name + ) PURE; + STDMETHOD(GetSymbolNameWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + STDMETHOD(WriteSymbolWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Value + ) PURE; + STDMETHOD(OutputAsTypeWide)( + THIS_ + _In_ ULONG Index, + _In_ PCWSTR Type + ) PURE; + + STDMETHOD(GetSymbolTypeName)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + STDMETHOD(GetSymbolTypeNameWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + STDMETHOD(GetSymbolSize)( + THIS_ + _In_ ULONG Index, + _Out_ PULONG Size + ) PURE; + // If the symbol has an absolute address + // this method will retrieve it. + STDMETHOD(GetSymbolOffset)( + THIS_ + _In_ ULONG Index, + _Out_ PULONG64 Offset + ) PURE; + // If the symbol is enregistered this + // method will return the register index. + STDMETHOD(GetSymbolRegister)( + THIS_ + _In_ ULONG Index, + _Out_ PULONG Register + ) PURE; + STDMETHOD(GetSymbolValueText)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + STDMETHOD(GetSymbolValueTextWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + STDMETHOD(GetSymbolEntryInformation)( + THIS_ + _In_ ULONG Index, + _Out_ PDEBUG_SYMBOL_ENTRY Entry + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// IDebugSymbols. +// +//---------------------------------------------------------------------------- + +// +// Information about a module. +// + +// Flags. +#define DEBUG_MODULE_LOADED 0x00000000 +#define DEBUG_MODULE_UNLOADED 0x00000001 +#define DEBUG_MODULE_USER_MODE 0x00000002 +#define DEBUG_MODULE_EXE_MODULE 0x00000004 +#define DEBUG_MODULE_EXPLICIT 0x00000008 +#define DEBUG_MODULE_SECONDARY 0x00000010 +#define DEBUG_MODULE_SYNTHETIC 0x00000020 +#define DEBUG_MODULE_SYM_BAD_CHECKSUM 0x00010000 + +// Symbol types. +#define DEBUG_SYMTYPE_NONE 0 +#define DEBUG_SYMTYPE_COFF 1 +#define DEBUG_SYMTYPE_CODEVIEW 2 +#define DEBUG_SYMTYPE_PDB 3 +#define DEBUG_SYMTYPE_EXPORT 4 +#define DEBUG_SYMTYPE_DEFERRED 5 +#define DEBUG_SYMTYPE_SYM 6 +#define DEBUG_SYMTYPE_DIA 7 + +typedef struct _DEBUG_MODULE_PARAMETERS +{ + ULONG64 Base; + ULONG Size; + ULONG TimeDateStamp; + ULONG Checksum; + ULONG Flags; + ULONG SymbolType; + ULONG ImageNameSize; + ULONG ModuleNameSize; + ULONG LoadedImageNameSize; + ULONG SymbolFileNameSize; + ULONG MappedImageNameSize; + ULONG64 Reserved[2]; +} DEBUG_MODULE_PARAMETERS, *PDEBUG_MODULE_PARAMETERS; + +// Scope arguments are function arguments +// and thus only change when the scope +// crosses functions. +#define DEBUG_SCOPE_GROUP_ARGUMENTS 0x00000001 +// Scope locals are locals declared in a particular +// scope and are only defined within that scope. +#define DEBUG_SCOPE_GROUP_LOCALS 0x00000002 +// All symbols in the scope. +#define DEBUG_SCOPE_GROUP_ALL 0x00000003 +// Get Debug Symbols by using Data Model engine +#define DEBUG_SCOPE_GROUP_BY_DATAMODEL 0x00000004 +// Valid flags for the set of DEBUG_SCOPE_GROUP +// If you add a new flag, then please add it to DEBUG_SCOPE_GROUP_VALID_FLAGS +#define DEBUG_SCOPE_GROUP_VALID_FLAGS (DEBUG_SCOPE_GROUP_ALL | DEBUG_SCOPE_GROUP_BY_DATAMODEL) + + +// Typed data output control flags. +#define DEBUG_OUTTYPE_DEFAULT 0x00000000 +#define DEBUG_OUTTYPE_NO_INDENT 0x00000001 +#define DEBUG_OUTTYPE_NO_OFFSET 0x00000002 +#define DEBUG_OUTTYPE_VERBOSE 0x00000004 +#define DEBUG_OUTTYPE_COMPACT_OUTPUT 0x00000008 +#define DEBUG_OUTTYPE_RECURSION_LEVEL(Max) (((Max) & 0xf) << 4) +#define DEBUG_OUTTYPE_ADDRESS_OF_FIELD 0x00010000 +#define DEBUG_OUTTYPE_ADDRESS_AT_END 0x00020000 +#define DEBUG_OUTTYPE_BLOCK_RECURSE 0x00200000 + +// FindSourceFile flags. +#define DEBUG_FIND_SOURCE_DEFAULT 0x00000000 +// Returns fully-qualified paths only. If this +// is not set the path returned may be relative. +#define DEBUG_FIND_SOURCE_FULL_PATH 0x00000001 +// Scans all the path elements for a match and +// returns the one that has the most similarity +// between the given file and the matching element. +#define DEBUG_FIND_SOURCE_BEST_MATCH 0x00000002 +// Do not search source server paths. +#define DEBUG_FIND_SOURCE_NO_SRCSRV 0x00000004 +// Restrict FindSourceFileAndToken to token lookup only. +#define DEBUG_FIND_SOURCE_TOKEN_LOOKUP 0x00000008 +// Indicates that the FileToken/FileTokenSize arguments refer to the checksum +// information for the source file obtained from a call to the +// GetSourceFileInformation method with the 'Which' parameter +// set to DEBUG_SRCFILE_SYMBOL_CHECKSUMINFO +#define DEBUG_FIND_SOURCE_WITH_CHECKSUM 0x00000010 +// This option is similar to DEBUG_FIND_SOURCE_WITH_CHECKSUM. +// The only difference is that DEBUG_SRCFILE_SYMBOL_CHECKSUMINFO will check +// for a checksum but won't enforce it i.e. if a file is found it may or may not +// match the requested checksum. +// DEBUG_FIND_SOURCE_WITH_CHECKSUM_STRICT eliminates this ambiguity i.e. +// if the file is found for sure it matches the checksum. +// Please note that line endings of the file may change when downloading +// a source file from various source code repositories. This means that the downloaded file +// would have a checksum which depends on file content and the updated line endings. +// The engine will try to match the checksum of the file to the requested checksum. +// If they don't match, the engine will calculate an alternative checksum +// of the file with modified line endings and will try to match it to the requested checksum. +// In summary: DEBUG_FIND_SOURCE_WITH_CHECKSUM_STRICT will return a file if its checksum matches +// to the requested checksum, or if the file's checksum calculated based on updated line endings +// matches the requested checksum. +#define DEBUG_FIND_SOURCE_WITH_CHECKSUM_STRICT 0x00000020 + + +// A special value marking an offset that should not +// be treated as a valid offset. This is only used +// in special situations where it is unlikely that +// this value would be a valid offset. +#define DEBUG_INVALID_OFFSET ((ULONG64)-1) + +// Module index sort order used by GetModuleByIndex() API. +#define MODULE_ORDERS_MASK 0xF0000000 +#define MODULE_ORDERS_LOADTIME 0x10000000 +#define MODULE_ORDERS_MODULENAME 0x20000000 + +#undef INTERFACE +#define INTERFACE IDebugSymbols +DECLARE_INTERFACE_(IDebugSymbols, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSymbols. + + // Controls the symbol options used during + // symbol operations. + // Uses the same flags as dbghelps SymSetOptions. + STDMETHOD(GetSymbolOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + STDMETHOD(GetNameByOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + // A symbol name may not be unique, particularly + // when overloaded functions exist which all + // have the same name. If GetOffsetByName + // finds multiple matches for the name it + // can return any one of them. In that + // case it will return S_FALSE to indicate + // that ambiguity was arbitrarily resolved. + // A caller can then use SearchSymbols to + // find all of the matches if it wishes to + // perform different disambiguation. + STDMETHOD(GetOffsetByName)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG64 Offset + ) PURE; + // GetNearNameByOffset returns symbols + // located near the symbol closest to + // to the offset, such as the previous + // or next symbol. If Delta is zero it + // operates identically to GetNameByOffset. + // If Delta is nonzero and such a symbol + // does not exist an error is returned. + // The next symbol, if one exists, will + // always have a higher offset than the + // input offset so the displacement is + // always negative. The situation is + // reversed for the previous symbol. + STDMETHOD(GetNearNameByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByLine)( + THIS_ + _In_ ULONG Line, + _In_ PCSTR File, + _Out_ PULONG64 Offset + ) PURE; + + // Enumerates the engines list of modules + // loaded for the current process. This may + // or may not match the system module list + // for the process. Reload can be used to + // synchronize the engines list with the system + // if necessary. + // Some sessions also track recently unloaded + // code modules for help in analyzing failures + // where an attempt is made to call unloaded code. + // These modules are indexed after the loaded + // modules. + STDMETHOD(GetNumberModules)( + THIS_ + _Out_ PULONG Loaded, + _Out_ PULONG Unloaded + ) PURE; + STDMETHOD(GetModuleByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PULONG64 Base + ) PURE; + // The module name may not be unique. + // This method returns the first match. + STDMETHOD(GetModuleByModuleName)( + THIS_ + _In_ PCSTR Name, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // Offset can be any offset within + // the module extent. Extents may + // not be unique when including unloaded + // drivers. This method returns the + // first match. + STDMETHOD(GetModuleByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + STDMETHOD(GetModuleNames)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(ImageNameBufferSize) PSTR ImageNameBuffer, + _In_ ULONG ImageNameBufferSize, + _Out_opt_ PULONG ImageNameSize, + _Out_writes_opt_(ModuleNameBufferSize) PSTR ModuleNameBuffer, + _In_ ULONG ModuleNameBufferSize, + _Out_opt_ PULONG ModuleNameSize, + _Out_writes_opt_(LoadedImageNameBufferSize) PSTR LoadedImageNameBuffer, + _In_ ULONG LoadedImageNameBufferSize, + _Out_opt_ PULONG LoadedImageNameSize + ) PURE; + STDMETHOD(GetModuleParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG64 Bases, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_MODULE_PARAMETERS Params + ) PURE; + // Looks up the module from a ! + // string. + STDMETHOD(GetSymbolModule)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG64 Base + ) PURE; + + // Returns the string name of a type. + STDMETHOD(GetTypeName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + // Returns the ID for a type name. + STDMETHOD(GetTypeId)( + THIS_ + _In_ ULONG64 Module, + _In_ PCSTR Name, + _Out_ PULONG TypeId + ) PURE; + STDMETHOD(GetTypeSize)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_ PULONG Size + ) PURE; + // Given a type which can contain members + // this method returns the offset of a + // particular member within the type. + // TypeId should give the container type ID + // and Field gives the dot-separated path + // to the field of interest. + STDMETHOD(GetFieldOffset)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ PCSTR Field, + _Out_ PULONG Offset + ) PURE; + + STDMETHOD(GetSymbolTypeId)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + // As with GetOffsetByName a symbol's + // name may be ambiguous. GetOffsetTypeId + // returns the type for the symbol closest + // to the given offset and can be used + // to avoid ambiguity. + STDMETHOD(GetOffsetTypeId)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + + // Helpers for virtual and physical data + // which combine creation of a location with + // the actual operation. + STDMETHOD(ReadTypedDataVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteTypedDataVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(OutputTypedDataVirtual)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG Flags + ) PURE; + STDMETHOD(ReadTypedDataPhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteTypedDataPhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(OutputTypedDataPhysical)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG Flags + ) PURE; + + // Function arguments and scope block symbols + // can be retrieved relative to currently + // executing code. A caller can provide just + // a code offset for scoping purposes and look + // up names or the caller can provide a full frame + // and look up actual values. The values for + // scoped symbols are best-guess and may or may not + // be accurate depending on program optimizations, + // the machine architecture, the current point + // in the programs execution and so on. + // A caller can also provide a complete register + // context for setting a scope to a previous + // machine state such as a context saved for + // an exception. Usually this isnt necessary + // and the current register context is used. + STDMETHOD(GetScope)( + THIS_ + _Out_opt_ PULONG64 InstructionOffset, + _Out_opt_ PDEBUG_STACK_FRAME ScopeFrame, + _Out_writes_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + // If ScopeFrame or ScopeContext is non-NULL then + // InstructionOffset is ignored. + // If ScopeContext is NULL the current + // register context is used. + // If the scope identified by the given + // information is the same as before + // SetScope returns S_OK. If the scope + // information changes, such as when the + // scope moves between functions or scope + // blocks, SetScope returns S_FALSE. + STDMETHOD(SetScope)( + THIS_ + _In_ ULONG64 InstructionOffset, + _In_opt_ PDEBUG_STACK_FRAME ScopeFrame, + _In_reads_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + // ResetScope clears the scope information + // for situations where scoped symbols + // mask global symbols or when resetting + // from explicit information to the current + // information. + STDMETHOD(ResetScope)( + THIS + ) PURE; + // A scope symbol is tied to its particular + // scope and only is meaningful within the scope. + // The returned group can be updated by passing it back + // into the method for lower-cost + // incremental updates when stepping. + STDMETHOD(GetScopeSymbolGroup)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PDEBUG_SYMBOL_GROUP Update, + _Out_ PDEBUG_SYMBOL_GROUP* Symbols + ) PURE; + + // Create a new symbol group. + STDMETHOD(CreateSymbolGroup)( + THIS_ + _Out_ PDEBUG_SYMBOL_GROUP* Group + ) PURE; + + // StartSymbolMatch matches symbol names + // against the given pattern using simple + // regular expressions. The search results + // are iterated through using GetNextSymbolMatch. + // When the caller is done examining results + // the match should be freed via EndSymbolMatch. + // If the match pattern contains a module name + // the search is restricted to a single module. + // Pattern matching is only done on symbol names, + // not module names. + // All active symbol match handles are invalidated + // when the set of loaded symbols changes. + STDMETHOD(StartSymbolMatch)( + THIS_ + _In_ PCSTR Pattern, + _Out_ PULONG64 Handle + ) PURE; + // If Buffer is NULL the match does not + // advance. + STDMETHOD(GetNextSymbolMatch)( + THIS_ + _In_ ULONG64 Handle, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MatchSize, + _Out_opt_ PULONG64 Offset + ) PURE; + STDMETHOD(EndSymbolMatch)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Reload)( + THIS_ + _In_ PCSTR Module + ) PURE; + + STDMETHOD(GetSymbolPath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetSymbolPath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendSymbolPath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + + // Manipulate the path for executable images. + // Some dump files need to load executable images + // in order to resolve dump information. This + // path controls where the engine looks for + // images. + STDMETHOD(GetImagePath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetImagePath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendImagePath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + + // Path routines for source file location + // methods. + STDMETHOD(GetSourcePath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + // Gets the nth part of the source path. + STDMETHOD(GetSourcePathElement)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ElementSize + ) PURE; + STDMETHOD(SetSourcePath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendSourcePath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + // Uses the given file path and the source path + // information to try and locate an existing file. + // The given file path is merged with elements + // of the source path and checked for existence. + // If a match is found the element used is returned. + // A starting element can be specified to restrict + // the search to a subset of the path elements; + // this can be useful when checking for multiple + // matches along the source path. + // The returned element can be 1, indicating + // the file was found directly and not on the path. + STDMETHOD(FindSourceFile)( + THIS_ + _In_ ULONG StartElement, + _In_ PCSTR File, + _In_ ULONG Flags, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + // Retrieves all the line offset information + // for a particular source file. Buffer is + // first intialized to DEBUG_INVALID_OFFSET for + // every entry. Then for each piece of line + // symbol information Buffer[Line] set to + // Lines offset. This produces a per-line + // map of the offsets for the lines of the + // given file. Line numbers are decremented + // for the map so Buffer[0] contains the offset + // for line number 1. + // If there is no line information at all for + // the given file the method fails rather + // than returning a map of invalid offsets. + STDMETHOD(GetSourceFileLineOffsets)( + THIS_ + _In_ PCSTR File, + _Out_writes_opt_(BufferLines) PULONG64 Buffer, + _In_ ULONG BufferLines, + _Out_opt_ PULONG FileLines + ) PURE; +}; + +// +// GetModuleNameString strings. +// + +#define DEBUG_MODNAME_IMAGE 0x00000000 +#define DEBUG_MODNAME_MODULE 0x00000001 +#define DEBUG_MODNAME_LOADED_IMAGE 0x00000002 +#define DEBUG_MODNAME_SYMBOL_FILE 0x00000003 +#define DEBUG_MODNAME_MAPPED_IMAGE 0x00000004 + +// +// Type options, used with Get/SetTypeOptions. +// + +// Display PUSHORT and USHORT arrays in Unicode. +#define DEBUG_TYPEOPTS_UNICODE_DISPLAY 0x00000001 +// Display LONG types in default base instead of decimal. +#define DEBUG_TYPEOPTS_LONGSTATUS_DISPLAY 0x00000002 +// Display integer types in default base instead of decimal. +#define DEBUG_TYPEOPTS_FORCERADIX_OUTPUT 0x00000004 +// Search for the type/symbol with largest size when +// multiple type/symbol match for a given name +#define DEBUG_TYPEOPTS_MATCH_MAXSIZE 0x00000008 + +#undef INTERFACE +#define INTERFACE IDebugSymbols2 +DECLARE_INTERFACE_(IDebugSymbols2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSymbols. + + // Controls the symbol options used during + // symbol operations. + // Uses the same flags as dbghelps SymSetOptions. + STDMETHOD(GetSymbolOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + STDMETHOD(GetNameByOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + // A symbol name may not be unique, particularly + // when overloaded functions exist which all + // have the same name. If GetOffsetByName + // finds multiple matches for the name it + // can return any one of them. In that + // case it will return S_FALSE to indicate + // that ambiguity was arbitrarily resolved. + // A caller can then use SearchSymbols to + // find all of the matches if it wishes to + // perform different disambiguation. + STDMETHOD(GetOffsetByName)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG64 Offset + ) PURE; + // GetNearNameByOffset returns symbols + // located near the symbol closest to + // to the offset, such as the previous + // or next symbol. If Delta is zero it + // operates identically to GetNameByOffset. + // If Delta is nonzero and such a symbol + // does not exist an error is returned. + // The next symbol, if one exists, will + // always have a higher offset than the + // input offset so the displacement is + // always negative. The situation is + // reversed for the previous symbol. + STDMETHOD(GetNearNameByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByLine)( + THIS_ + _In_ ULONG Line, + _In_ PCSTR File, + _Out_ PULONG64 Offset + ) PURE; + + // Enumerates the engines list of modules + // loaded for the current process. This may + // or may not match the system module list + // for the process. Reload can be used to + // synchronize the engines list with the system + // if necessary. + // Some sessions also track recently unloaded + // code modules for help in analyzing failures + // where an attempt is made to call unloaded code. + // These modules are indexed after the loaded + // modules. + STDMETHOD(GetNumberModules)( + THIS_ + _Out_ PULONG Loaded, + _Out_ PULONG Unloaded + ) PURE; + STDMETHOD(GetModuleByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PULONG64 Base + ) PURE; + // The module name may not be unique. + // This method returns the first match. + STDMETHOD(GetModuleByModuleName)( + THIS_ + _In_ PCSTR Name, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // Offset can be any offset within + // the module extent. Extents may + // not be unique when including unloaded + // drivers. This method returns the + // first match. + STDMETHOD(GetModuleByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + STDMETHOD(GetModuleNames)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(ImageNameBufferSize) PSTR ImageNameBuffer, + _In_ ULONG ImageNameBufferSize, + _Out_opt_ PULONG ImageNameSize, + _Out_writes_opt_(ModuleNameBufferSize) PSTR ModuleNameBuffer, + _In_ ULONG ModuleNameBufferSize, + _Out_opt_ PULONG ModuleNameSize, + _Out_writes_opt_(LoadedImageNameBufferSize) PSTR LoadedImageNameBuffer, + _In_ ULONG LoadedImageNameBufferSize, + _Out_opt_ PULONG LoadedImageNameSize + ) PURE; + STDMETHOD(GetModuleParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG64 Bases, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_MODULE_PARAMETERS Params + ) PURE; + // Looks up the module from a ! + // string. + STDMETHOD(GetSymbolModule)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG64 Base + ) PURE; + + // Returns the string name of a type. + STDMETHOD(GetTypeName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + // Returns the ID for a type name. + STDMETHOD(GetTypeId)( + THIS_ + _In_ ULONG64 Module, + _In_ PCSTR Name, + _Out_ PULONG TypeId + ) PURE; + STDMETHOD(GetTypeSize)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_ PULONG Size + ) PURE; + // Given a type which can contain members + // this method returns the offset of a + // particular member within the type. + // TypeId should give the container type ID + // and Field gives the dot-separated path + // to the field of interest. + STDMETHOD(GetFieldOffset)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ PCSTR Field, + _Out_ PULONG Offset + ) PURE; + + STDMETHOD(GetSymbolTypeId)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + // As with GetOffsetByName a symbol's + // name may be ambiguous. GetOffsetTypeId + // returns the type for the symbol closest + // to the given offset and can be used + // to avoid ambiguity. + STDMETHOD(GetOffsetTypeId)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + + // Helpers for virtual and physical data + // which combine creation of a location with + // the actual operation. + STDMETHOD(ReadTypedDataVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteTypedDataVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(OutputTypedDataVirtual)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG Flags + ) PURE; + STDMETHOD(ReadTypedDataPhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteTypedDataPhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(OutputTypedDataPhysical)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG Flags + ) PURE; + + // Function arguments and scope block symbols + // can be retrieved relative to currently + // executing code. A caller can provide just + // a code offset for scoping purposes and look + // up names or the caller can provide a full frame + // and look up actual values. The values for + // scoped symbols are best-guess and may or may not + // be accurate depending on program optimizations, + // the machine architecture, the current point + // in the programs execution and so on. + // A caller can also provide a complete register + // context for setting a scope to a previous + // machine state such as a context saved for + // an exception. Usually this isnt necessary + // and the current register context is used. + STDMETHOD(GetScope)( + THIS_ + _Out_opt_ PULONG64 InstructionOffset, + _Out_opt_ PDEBUG_STACK_FRAME ScopeFrame, + _Out_writes_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + // If ScopeFrame or ScopeContext is non-NULL then + // InstructionOffset is ignored. + // If ScopeContext is NULL the current + // register context is used. + // If the scope identified by the given + // information is the same as before + // SetScope returns S_OK. If the scope + // information changes, such as when the + // scope moves between functions or scope + // blocks, SetScope returns S_FALSE. + STDMETHOD(SetScope)( + THIS_ + _In_ ULONG64 InstructionOffset, + _In_opt_ PDEBUG_STACK_FRAME ScopeFrame, + _In_reads_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + // ResetScope clears the scope information + // for situations where scoped symbols + // mask global symbols or when resetting + // from explicit information to the current + // information. + STDMETHOD(ResetScope)( + THIS + ) PURE; + // A scope symbol is tied to its particular + // scope and only is meaningful within the scope. + // The returned group can be updated by passing it back + // into the method for lower-cost + // incremental updates when stepping. + STDMETHOD(GetScopeSymbolGroup)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PDEBUG_SYMBOL_GROUP Update, + _Out_ PDEBUG_SYMBOL_GROUP* Symbols + ) PURE; + + // Create a new symbol group. + STDMETHOD(CreateSymbolGroup)( + THIS_ + _Out_ PDEBUG_SYMBOL_GROUP* Group + ) PURE; + + // StartSymbolMatch matches symbol names + // against the given pattern using simple + // regular expressions. The search results + // are iterated through using GetNextSymbolMatch. + // When the caller is done examining results + // the match should be freed via EndSymbolMatch. + // If the match pattern contains a module name + // the search is restricted to a single module. + // Pattern matching is only done on symbol names, + // not module names. + // All active symbol match handles are invalidated + // when the set of loaded symbols changes. + STDMETHOD(StartSymbolMatch)( + THIS_ + _In_ PCSTR Pattern, + _Out_ PULONG64 Handle + ) PURE; + // If Buffer is NULL the match does not + // advance. + STDMETHOD(GetNextSymbolMatch)( + THIS_ + _In_ ULONG64 Handle, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MatchSize, + _Out_opt_ PULONG64 Offset + ) PURE; + STDMETHOD(EndSymbolMatch)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Reload)( + THIS_ + _In_ PCSTR Module + ) PURE; + + STDMETHOD(GetSymbolPath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetSymbolPath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendSymbolPath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + + // Manipulate the path for executable images. + // Some dump files need to load executable images + // in order to resolve dump information. This + // path controls where the engine looks for + // images. + STDMETHOD(GetImagePath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetImagePath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendImagePath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + + // Path routines for source file location + // methods. + STDMETHOD(GetSourcePath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + // Gets the nth part of the source path. + STDMETHOD(GetSourcePathElement)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ElementSize + ) PURE; + STDMETHOD(SetSourcePath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendSourcePath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + // Uses the given file path and the source path + // information to try and locate an existing file. + // The given file path is merged with elements + // of the source path and checked for existence. + // If a match is found the element used is returned. + // A starting element can be specified to restrict + // the search to a subset of the path elements; + // this can be useful when checking for multiple + // matches along the source path. + // The returned element can be 1, indicating + // the file was found directly and not on the path. + STDMETHOD(FindSourceFile)( + THIS_ + _In_ ULONG StartElement, + _In_ PCSTR File, + _In_ ULONG Flags, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + // Retrieves all the line offset information + // for a particular source file. Buffer is + // first intialized to DEBUG_INVALID_OFFSET for + // every entry. Then for each piece of line + // symbol information Buffer[Line] set to + // Lines offset. This produces a per-line + // map of the offsets for the lines of the + // given file. Line numbers are decremented + // for the map so Buffer[0] contains the offset + // for line number 1. + // If there is no line information at all for + // the given file the method fails rather + // than returning a map of invalid offsets. + STDMETHOD(GetSourceFileLineOffsets)( + THIS_ + _In_ PCSTR File, + _Out_writes_opt_(BufferLines) PULONG64 Buffer, + _In_ ULONG BufferLines, + _Out_opt_ PULONG FileLines + ) PURE; + + // IDebugSymbols2. + + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + // Item is specified as in VerQueryValue. + // Module version information is only + // available for loaded modules and may + // not be available in all debug sessions. + STDMETHOD(GetModuleVersionInformation)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _In_ PCSTR Item, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG VerInfoSize + ) PURE; + // Retrieves any available module name string + // such as module name or symbol file name. + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + // If symbols are deferred an error will + // be returned. + // E_NOINTERFACE may be returned, indicating + // no information exists. + STDMETHOD(GetModuleNameString)( + THIS_ + _In_ ULONG Which, + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Returns the string name of a constant type. + STDMETHOD(GetConstantName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG64 Value, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Gets name of a field in a struct + // FieldNumber is 0 based index of field in a struct + STDMETHOD(GetFieldName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG FieldIndex, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Control options for typed values. + STDMETHOD(GetTypeOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; +}; + +// +// GetModuleBy* flags. +// + +// Scan all modules, loaded and unloaded. +#define DEBUG_GETMOD_DEFAULT 0x00000000 +// Do not scan loaded modules. +#define DEBUG_GETMOD_NO_LOADED_MODULES 0x00000001 +// Do not scan unloaded modules. +#define DEBUG_GETMOD_NO_UNLOADED_MODULES 0x00000002 + +// +// AddSyntheticModule flags. +// +#define DEBUG_ADDSYNTHMOD_DEFAULT 0x00000000 +#define DEBUG_ADDSYNTHMOD_ZEROBASE 0x00000001 + +// +// AddSyntheticSymbol flags. +// + +#define DEBUG_ADDSYNTHSYM_DEFAULT 0x00000000 + +// +// OutputSymbolByOffset flags. +// + +// Use the current debugger settings for symbol output. +#define DEBUG_OUTSYM_DEFAULT 0x00000000 +// Always display the offset in addition to any symbol hit. +#define DEBUG_OUTSYM_FORCE_OFFSET 0x00000001 +// Display source line information if found. +#define DEBUG_OUTSYM_SOURCE_LINE 0x00000002 +// Output symbol hits that don't exactly match. +#define DEBUG_OUTSYM_ALLOW_DISPLACEMENT 0x00000004 + +// +// GetFunctionEntryByOffset flags. +// + +#define DEBUG_GETFNENT_DEFAULT 0x00000000 +// The engine provides artificial entries for well-known +// cases. This flag limits the entry search to only +// the raw entries and disables artificial entry lookup. +#define DEBUG_GETFNENT_RAW_ENTRY_ONLY 0x00000001 + +typedef struct _DEBUG_MODULE_AND_ID +{ + ULONG64 ModuleBase; + ULONG64 Id; +} DEBUG_MODULE_AND_ID, *PDEBUG_MODULE_AND_ID; + +#define DEBUG_SOURCE_IS_STATEMENT 0x00000001 + +// +// GetSourceEntriesByLine flags. +// + +#define DEBUG_GSEL_DEFAULT 0x00000000 +// Do not allow any extra symbols to load during the search. +#define DEBUG_GSEL_NO_SYMBOL_LOADS 0x00000001 +// Allow source hits with lower line numbers. +#define DEBUG_GSEL_ALLOW_LOWER 0x00000002 +// Allow source hits with higher line numbers. +#define DEBUG_GSEL_ALLOW_HIGHER 0x00000004 +// Only return the nearest hits. +#define DEBUG_GSEL_NEAREST_ONLY 0x00000008 +// Only return caller sites of the inline function +#define DEBUG_GSEL_INLINE_CALLSITE 0x00000010 + +typedef struct _DEBUG_SYMBOL_SOURCE_ENTRY +{ + ULONG64 ModuleBase; + ULONG64 Offset; + ULONG64 FileNameId; + ULONG64 EngineInternal; + ULONG Size; + ULONG Flags; + ULONG FileNameSize; + // Line numbers are one-based. + // May be DEBUG_ANY_ID if unknown. + ULONG StartLine; + ULONG EndLine; + // Column numbers are one-based byte indices. + // May be DEBUG_ANY_ID if unknown. + ULONG StartColumn; + ULONG EndColumn; + ULONG Reserved; +} DEBUG_SYMBOL_SOURCE_ENTRY, *PDEBUG_SYMBOL_SOURCE_ENTRY; + +#undef INTERFACE +#define INTERFACE IDebugSymbols3 +DECLARE_INTERFACE_(IDebugSymbols3, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSymbols. + + // Controls the symbol options used during + // symbol operations. + // Uses the same flags as dbghelps SymSetOptions. + STDMETHOD(GetSymbolOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + STDMETHOD(GetNameByOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + // A symbol name may not be unique, particularly + // when overloaded functions exist which all + // have the same name. If GetOffsetByName + // finds multiple matches for the name it + // can return any one of them. In that + // case it will return S_FALSE to indicate + // that ambiguity was arbitrarily resolved. + // A caller can then use SearchSymbols to + // find all of the matches if it wishes to + // perform different disambiguation. + STDMETHOD(GetOffsetByName)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG64 Offset + ) PURE; + // GetNearNameByOffset returns symbols + // located near the symbol closest to + // to the offset, such as the previous + // or next symbol. If Delta is zero it + // operates identically to GetNameByOffset. + // If Delta is nonzero and such a symbol + // does not exist an error is returned. + // The next symbol, if one exists, will + // always have a higher offset than the + // input offset so the displacement is + // always negative. The situation is + // reversed for the previous symbol. + STDMETHOD(GetNearNameByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByLine)( + THIS_ + _In_ ULONG Line, + _In_ PCSTR File, + _Out_ PULONG64 Offset + ) PURE; + + // Enumerates the engines list of modules + // loaded for the current process. This may + // or may not match the system module list + // for the process. Reload can be used to + // synchronize the engines list with the system + // if necessary. + // Some sessions also track recently unloaded + // code modules for help in analyzing failures + // where an attempt is made to call unloaded code. + // These modules are indexed after the loaded + // modules. + STDMETHOD(GetNumberModules)( + THIS_ + _Out_ PULONG Loaded, + _Out_ PULONG Unloaded + ) PURE; + STDMETHOD(GetModuleByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PULONG64 Base + ) PURE; + // The module name may not be unique. + // This method returns the first match. + STDMETHOD(GetModuleByModuleName)( + THIS_ + _In_ PCSTR Name, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // Offset can be any offset within + // the module extent. Extents may + // not be unique when including unloaded + // drivers. This method returns the + // first match. + STDMETHOD(GetModuleByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + STDMETHOD(GetModuleNames)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(ImageNameBufferSize) PSTR ImageNameBuffer, + _In_ ULONG ImageNameBufferSize, + _Out_opt_ PULONG ImageNameSize, + _Out_writes_opt_(ModuleNameBufferSize) PSTR ModuleNameBuffer, + _In_ ULONG ModuleNameBufferSize, + _Out_opt_ PULONG ModuleNameSize, + _Out_writes_opt_(LoadedImageNameBufferSize) PSTR LoadedImageNameBuffer, + _In_ ULONG LoadedImageNameBufferSize, + _Out_opt_ PULONG LoadedImageNameSize + ) PURE; + STDMETHOD(GetModuleParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG64 Bases, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_MODULE_PARAMETERS Params + ) PURE; + // Looks up the module from a ! + // string. + STDMETHOD(GetSymbolModule)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG64 Base + ) PURE; + + // Returns the string name of a type. + STDMETHOD(GetTypeName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + // Returns the ID for a type name. + STDMETHOD(GetTypeId)( + THIS_ + _In_ ULONG64 Module, + _In_ PCSTR Name, + _Out_ PULONG TypeId + ) PURE; + STDMETHOD(GetTypeSize)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_ PULONG Size + ) PURE; + // Given a type which can contain members + // this method returns the offset of a + // particular member within the type. + // TypeId should give the container type ID + // and Field gives the dot-separated path + // to the field of interest. + STDMETHOD(GetFieldOffset)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ PCSTR Field, + _Out_ PULONG Offset + ) PURE; + + STDMETHOD(GetSymbolTypeId)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + // As with GetOffsetByName a symbol's + // name may be ambiguous. GetOffsetTypeId + // returns the type for the symbol closest + // to the given offset and can be used + // to avoid ambiguity. + STDMETHOD(GetOffsetTypeId)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + + // Helpers for virtual and physical data + // which combine creation of a location with + // the actual operation. + STDMETHOD(ReadTypedDataVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteTypedDataVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(OutputTypedDataVirtual)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG Flags + ) PURE; + STDMETHOD(ReadTypedDataPhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteTypedDataPhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(OutputTypedDataPhysical)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG Flags + ) PURE; + + // Function arguments and scope block symbols + // can be retrieved relative to currently + // executing code. A caller can provide just + // a code offset for scoping purposes and look + // up names or the caller can provide a full frame + // and look up actual values. The values for + // scoped symbols are best-guess and may or may not + // be accurate depending on program optimizations, + // the machine architecture, the current point + // in the programs execution and so on. + // A caller can also provide a complete register + // context for setting a scope to a previous + // machine state such as a context saved for + // an exception. Usually this isnt necessary + // and the current register context is used. + STDMETHOD(GetScope)( + THIS_ + _Out_opt_ PULONG64 InstructionOffset, + _Out_opt_ PDEBUG_STACK_FRAME ScopeFrame, + _Out_writes_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + // If ScopeFrame or ScopeContext is non-NULL then + // InstructionOffset is ignored. + // If ScopeContext is NULL the current + // register context is used. + // If the scope identified by the given + // information is the same as before + // SetScope returns S_OK. If the scope + // information changes, such as when the + // scope moves between functions or scope + // blocks, SetScope returns S_FALSE. + STDMETHOD(SetScope)( + THIS_ + _In_ ULONG64 InstructionOffset, + _In_opt_ PDEBUG_STACK_FRAME ScopeFrame, + _In_reads_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + // ResetScope clears the scope information + // for situations where scoped symbols + // mask global symbols or when resetting + // from explicit information to the current + // information. + STDMETHOD(ResetScope)( + THIS + ) PURE; + // A scope symbol is tied to its particular + // scope and only is meaningful within the scope. + // The returned group can be updated by passing it back + // into the method for lower-cost + // incremental updates when stepping. + STDMETHOD(GetScopeSymbolGroup)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PDEBUG_SYMBOL_GROUP Update, + _Out_ PDEBUG_SYMBOL_GROUP* Symbols + ) PURE; + + // Create a new symbol group. + STDMETHOD(CreateSymbolGroup)( + THIS_ + _Out_ PDEBUG_SYMBOL_GROUP* Group + ) PURE; + + // StartSymbolMatch matches symbol names + // against the given pattern using simple + // regular expressions. The search results + // are iterated through using GetNextSymbolMatch. + // When the caller is done examining results + // the match should be freed via EndSymbolMatch. + // If the match pattern contains a module name + // the search is restricted to a single module. + // Pattern matching is only done on symbol names, + // not module names. + // All active symbol match handles are invalidated + // when the set of loaded symbols changes. + STDMETHOD(StartSymbolMatch)( + THIS_ + _In_ PCSTR Pattern, + _Out_ PULONG64 Handle + ) PURE; + // If Buffer is NULL the match does not + // advance. + STDMETHOD(GetNextSymbolMatch)( + THIS_ + _In_ ULONG64 Handle, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MatchSize, + _Out_opt_ PULONG64 Offset + ) PURE; + STDMETHOD(EndSymbolMatch)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Reload)( + THIS_ + _In_ PCSTR Module + ) PURE; + + STDMETHOD(GetSymbolPath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetSymbolPath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendSymbolPath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + + // Manipulate the path for executable images. + // Some dump files need to load executable images + // in order to resolve dump information. This + // path controls where the engine looks for + // images. + STDMETHOD(GetImagePath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetImagePath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendImagePath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + + // Path routines for source file location + // methods. + STDMETHOD(GetSourcePath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + // Gets the nth part of the source path. + STDMETHOD(GetSourcePathElement)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ElementSize + ) PURE; + STDMETHOD(SetSourcePath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendSourcePath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + // Uses the given file path and the source path + // information to try and locate an existing file. + // The given file path is merged with elements + // of the source path and checked for existence. + // If a match is found the element used is returned. + // A starting element can be specified to restrict + // the search to a subset of the path elements; + // this can be useful when checking for multiple + // matches along the source path. + // The returned element can be 1, indicating + // the file was found directly and not on the path. + STDMETHOD(FindSourceFile)( + THIS_ + _In_ ULONG StartElement, + _In_ PCSTR File, + _In_ ULONG Flags, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + // Retrieves all the line offset information + // for a particular source file. Buffer is + // first intialized to DEBUG_INVALID_OFFSET for + // every entry. Then for each piece of line + // symbol information Buffer[Line] set to + // Lines offset. This produces a per-line + // map of the offsets for the lines of the + // given file. Line numbers are decremented + // for the map so Buffer[0] contains the offset + // for line number 1. + // If there is no line information at all for + // the given file the method fails rather + // than returning a map of invalid offsets. + STDMETHOD(GetSourceFileLineOffsets)( + THIS_ + _In_ PCSTR File, + _Out_writes_opt_(BufferLines) PULONG64 Buffer, + _In_ ULONG BufferLines, + _Out_opt_ PULONG FileLines + ) PURE; + + // IDebugSymbols2. + + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + // Item is specified as in VerQueryValue. + // Module version information is only + // available for loaded modules and may + // not be available in all debug sessions. + STDMETHOD(GetModuleVersionInformation)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _In_ PCSTR Item, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG VerInfoSize + ) PURE; + // Retrieves any available module name string + // such as module name or symbol file name. + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + // If symbols are deferred an error will + // be returned. + // E_NOINTERFACE may be returned, indicating + // no information exists. + STDMETHOD(GetModuleNameString)( + THIS_ + _In_ ULONG Which, + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Returns the string name of a constant type. + STDMETHOD(GetConstantName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG64 Value, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Gets name of a field in a struct + // FieldNumber is 0 based index of field in a struct + STDMETHOD(GetFieldName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG FieldIndex, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Control options for typed values. + STDMETHOD(GetTypeOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // IDebugSymbols3. + + STDMETHOD(GetNameByOffsetWide)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByNameWide)( + THIS_ + _In_ PCWSTR Symbol, + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(GetNearNameByOffsetWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByOffsetWide)( + THIS_ + _In_ ULONG64 Offset, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PWSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByLineWide)( + THIS_ + _In_ ULONG Line, + _In_ PCWSTR File, + _Out_ PULONG64 Offset + ) PURE; + + STDMETHOD(GetModuleByModuleNameWide)( + THIS_ + _In_ PCWSTR Name, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + STDMETHOD(GetSymbolModuleWide)( + THIS_ + _In_ PCWSTR Symbol, + _Out_ PULONG64 Base + ) PURE; + + STDMETHOD(GetTypeNameWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + // Returns the ID for a type name. + STDMETHOD(GetTypeIdWide)( + THIS_ + _In_ ULONG64 Module, + _In_ PCWSTR Name, + _Out_ PULONG TypeId + ) PURE; + STDMETHOD(GetFieldOffsetWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ PCWSTR Field, + _Out_ PULONG Offset + ) PURE; + + STDMETHOD(GetSymbolTypeIdWide)( + THIS_ + _In_ PCWSTR Symbol, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + + STDMETHOD(GetScopeSymbolGroup2)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PDEBUG_SYMBOL_GROUP2 Update, + _Out_ PDEBUG_SYMBOL_GROUP2* Symbols + ) PURE; + + STDMETHOD(CreateSymbolGroup2)( + THIS_ + _Out_ PDEBUG_SYMBOL_GROUP2* Group + ) PURE; + + STDMETHOD(StartSymbolMatchWide)( + THIS_ + _In_ PCWSTR Pattern, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(GetNextSymbolMatchWide)( + THIS_ + _In_ ULONG64 Handle, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MatchSize, + _Out_opt_ PULONG64 Offset + ) PURE; + + STDMETHOD(ReloadWide)( + THIS_ + _In_ PCWSTR Module + ) PURE; + + STDMETHOD(GetSymbolPathWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetSymbolPathWide)( + THIS_ + _In_ PCWSTR Path + ) PURE; + STDMETHOD(AppendSymbolPathWide)( + THIS_ + _In_ PCWSTR Addition + ) PURE; + + STDMETHOD(GetImagePathWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetImagePathWide)( + THIS_ + _In_ PCWSTR Path + ) PURE; + STDMETHOD(AppendImagePathWide)( + THIS_ + _In_ PCWSTR Addition + ) PURE; + + STDMETHOD(GetSourcePathWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(GetSourcePathElementWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ElementSize + ) PURE; + STDMETHOD(SetSourcePathWide)( + THIS_ + _In_ PCWSTR Path + ) PURE; + STDMETHOD(AppendSourcePathWide)( + THIS_ + _In_ PCWSTR Addition + ) PURE; + STDMETHOD(FindSourceFileWide)( + THIS_ + _In_ ULONG StartElement, + _In_ PCWSTR File, + _In_ ULONG Flags, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + STDMETHOD(GetSourceFileLineOffsetsWide)( + THIS_ + _In_ PCWSTR File, + _Out_writes_opt_(BufferLines) PULONG64 Buffer, + _In_ ULONG BufferLines, + _Out_opt_ PULONG FileLines + ) PURE; + + STDMETHOD(GetModuleVersionInformationWide)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _In_ PCWSTR Item, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG VerInfoSize + ) PURE; + STDMETHOD(GetModuleNameStringWide)( + THIS_ + _In_ ULONG Which, + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + STDMETHOD(GetConstantNameWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG64 Value, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + STDMETHOD(GetFieldNameWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG FieldIndex, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Returns S_OK if the engine is using managed + // debugging support when retriving information + // for the given module. This can be expensive + // to check. + STDMETHOD(IsManagedModule)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base + ) PURE; + + // The module name may not be unique. + // This method returns the first match. + STDMETHOD(GetModuleByModuleName2)( + THIS_ + _In_ PCSTR Name, + _In_ ULONG StartIndex, + _In_ ULONG Flags, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + STDMETHOD(GetModuleByModuleName2Wide)( + THIS_ + _In_ PCWSTR Name, + _In_ ULONG StartIndex, + _In_ ULONG Flags, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // Offset can be any offset within + // the module extent. Extents may + // not be unique when including unloaded + // drivers. This method returns the + // first match. + STDMETHOD(GetModuleByOffset2)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG StartIndex, + _In_ ULONG Flags, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + + // A caller can create artificial loaded modules in + // the engine's module list if desired. + // These modules only serve as names for + // a region of addresses. They cannot have + // real symbols loaded for them; if that + // is desired Reload can be used with explicit + // parameters to create a true module entry. + // The region must not be in use by any other + // module. + // A general reload will discard any synthetic modules. + STDMETHOD(AddSyntheticModule)( + THIS_ + _In_ ULONG64 Base, + _In_ ULONG Size, + _In_ PCSTR ImagePath, + _In_ PCSTR ModuleName, + _In_ ULONG Flags + ) PURE; + STDMETHOD(AddSyntheticModuleWide)( + THIS_ + _In_ ULONG64 Base, + _In_ ULONG Size, + _In_ PCWSTR ImagePath, + _In_ PCWSTR ModuleName, + _In_ ULONG Flags + ) PURE; + STDMETHOD(RemoveSyntheticModule)( + THIS_ + _In_ ULONG64 Base + ) PURE; + + // Modify the current frame used for scoping. + // This is equivalent to the '.frame' command. + STDMETHOD(GetCurrentScopeFrameIndex)( + THIS_ + _Out_ PULONG Index + ) PURE; + STDMETHOD(SetScopeFrameByIndex)( + THIS_ + _In_ ULONG Index + ) PURE; + + // Recovers JIT_DEBUG_INFO information at the given + // address from the debuggee and sets current + // debugger scope context from it. + // Equivalent to '.jdinfo' command. + STDMETHOD(SetScopeFromJitDebugInfo)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 InfoOffset + ) PURE; + + // Switches the current debugger scope to + // the stored event information. + // Equivalent to the '.ecxr' command. + STDMETHOD(SetScopeFromStoredEvent)( + THIS + ) PURE; + + // Takes the first symbol hit and outputs it. + // Controlled with DEBUG_OUTSYM_* flags. + STDMETHOD(OutputSymbolByOffset)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ ULONG64 Offset + ) PURE; + + // Function entry information for a particular + // piece of code can be retrieved by this method. + // The actual data returned is system-dependent. + STDMETHOD(GetFunctionEntryByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BufferNeeded + ) PURE; + + // Given a type which can contain members + // this method returns the type ID and offset of a + // particular member within the type. + // Field gives the dot-separated path + // to the field of interest. + STDMETHOD(GetFieldTypeAndOffset)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG ContainerTypeId, + _In_ PCSTR Field, + _Out_opt_ PULONG FieldTypeId, + _Out_opt_ PULONG Offset + ) PURE; + STDMETHOD(GetFieldTypeAndOffsetWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG ContainerTypeId, + _In_ PCWSTR Field, + _Out_opt_ PULONG FieldTypeId, + _Out_opt_ PULONG Offset + ) PURE; + + // Artificial symbols can be created in any + // existing module as a way to name an address. + // The address must not already have symbol + // information. + // A reload will discard synthetic symbols + // for all address regions reloaded. + STDMETHOD(AddSyntheticSymbol)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Size, + _In_ PCSTR Name, + _In_ ULONG Flags, + _Out_opt_ PDEBUG_MODULE_AND_ID Id + ) PURE; + STDMETHOD(AddSyntheticSymbolWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Size, + _In_ PCWSTR Name, + _In_ ULONG Flags, + _Out_opt_ PDEBUG_MODULE_AND_ID Id + ) PURE; + STDMETHOD(RemoveSyntheticSymbol)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id + ) PURE; + + // The following methods can return multiple + // hits for symbol lookups to allow for all + // possible hits to be returned. + STDMETHOD(GetSymbolEntriesByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(IdsCount) PDEBUG_MODULE_AND_ID Ids, + _Out_writes_opt_(IdsCount) PULONG64 Displacements, + _In_ ULONG IdsCount, + _Out_opt_ PULONG Entries + ) PURE; + STDMETHOD(GetSymbolEntriesByName)( + THIS_ + _In_ PCSTR Symbol, + _In_ ULONG Flags, + _Out_writes_opt_(IdsCount) PDEBUG_MODULE_AND_ID Ids, + _In_ ULONG IdsCount, + _Out_opt_ PULONG Entries + ) PURE; + STDMETHOD(GetSymbolEntriesByNameWide)( + THIS_ + _In_ PCWSTR Symbol, + _In_ ULONG Flags, + _Out_writes_opt_(IdsCount) PDEBUG_MODULE_AND_ID Ids, + _In_ ULONG IdsCount, + _Out_opt_ PULONG Entries + ) PURE; + // Symbol lookup by managed metadata token. + STDMETHOD(GetSymbolEntryByToken)( + THIS_ + _In_ ULONG64 ModuleBase, + _In_ ULONG Token, + _Out_ PDEBUG_MODULE_AND_ID Id + ) PURE; + + // Retrieves full symbol entry information from an ID. + STDMETHOD(GetSymbolEntryInformation)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _Out_ PDEBUG_SYMBOL_ENTRY Info + ) PURE; + STDMETHOD(GetSymbolEntryString)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(GetSymbolEntryStringWide)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + // Returns all known memory regions associated + // with the given symbol. Simple symbols will + // have a single region starting from their base. + // More complicated regions, such as functions + // with multiple code areas, can have an arbitrarily + // large number of regions. + // The quality of information returned is highly + // dependent on the symbolic information availble. + STDMETHOD(GetSymbolEntryOffsetRegions)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _In_ ULONG Flags, + _Out_writes_opt_(RegionsCount) PDEBUG_OFFSET_REGION Regions, + _In_ ULONG RegionsCount, + _Out_opt_ PULONG RegionsAvail + ) PURE; + + // This method allows navigating within the + // symbol entry hierarchy. + STDMETHOD(GetSymbolEntryBySymbolEntry)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID FromId, + _In_ ULONG Flags, + _Out_ PDEBUG_MODULE_AND_ID ToId + ) PURE; + + // The following methods can return multiple + // hits for source lookups to allow for all + // possible hits to be returned. + STDMETHOD(GetSourceEntriesByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(EntriesCount) PDEBUG_SYMBOL_SOURCE_ENTRY Entries, + _In_ ULONG EntriesCount, + _Out_opt_ PULONG EntriesAvail + ) PURE; + STDMETHOD(GetSourceEntriesByLine)( + THIS_ + _In_ ULONG Line, + _In_ PCSTR File, + _In_ ULONG Flags, + _Out_writes_opt_(EntriesCount) PDEBUG_SYMBOL_SOURCE_ENTRY Entries, + _In_ ULONG EntriesCount, + _Out_opt_ PULONG EntriesAvail + ) PURE; + STDMETHOD(GetSourceEntriesByLineWide)( + THIS_ + _In_ ULONG Line, + _In_ PCWSTR File, + _In_ ULONG Flags, + _Out_writes_opt_(EntriesCount) PDEBUG_SYMBOL_SOURCE_ENTRY Entries, + _In_ ULONG EntriesCount, + _Out_opt_ PULONG EntriesAvail + ) PURE; + + STDMETHOD(GetSourceEntryString)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY Entry, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(GetSourceEntryStringWide)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY Entry, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + // Returns all known memory regions associated + // with the given source entry. As with + // GetSymbolEntryOffsetRegions the regions available + // are variable. + STDMETHOD(GetSourceEntryOffsetRegions)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY Entry, + _In_ ULONG Flags, + _Out_writes_opt_(RegionsCount) PDEBUG_OFFSET_REGION Regions, + _In_ ULONG RegionsCount, + _Out_opt_ PULONG RegionsAvail + ) PURE; + + // This method allows navigating within the + // source entries. + STDMETHOD(GetSourceEntryBySourceEntry)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY FromEntry, + _In_ ULONG Flags, + _Out_ PDEBUG_SYMBOL_SOURCE_ENTRY ToEntry + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugSymbols4 +DECLARE_INTERFACE_(IDebugSymbols4, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSymbols. + + // Controls the symbol options used during + // symbol operations. + // Uses the same flags as dbghelps SymSetOptions. + STDMETHOD(GetSymbolOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + STDMETHOD(GetNameByOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + // A symbol name may not be unique, particularly + // when overloaded functions exist which all + // have the same name. If GetOffsetByName + // finds multiple matches for the name it + // can return any one of them. In that + // case it will return S_FALSE to indicate + // that ambiguity was arbitrarily resolved. + // A caller can then use SearchSymbols to + // find all of the matches if it wishes to + // perform different disambiguation. + STDMETHOD(GetOffsetByName)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG64 Offset + ) PURE; + // GetNearNameByOffset returns symbols + // located near the symbol closest to + // to the offset, such as the previous + // or next symbol. If Delta is zero it + // operates identically to GetNameByOffset. + // If Delta is nonzero and such a symbol + // does not exist an error is returned. + // The next symbol, if one exists, will + // always have a higher offset than the + // input offset so the displacement is + // always negative. The situation is + // reversed for the previous symbol. + STDMETHOD(GetNearNameByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByLine)( + THIS_ + _In_ ULONG Line, + _In_ PCSTR File, + _Out_ PULONG64 Offset + ) PURE; + + // Enumerates the engines list of modules + // loaded for the current process. This may + // or may not match the system module list + // for the process. Reload can be used to + // synchronize the engines list with the system + // if necessary. + // Some sessions also track recently unloaded + // code modules for help in analyzing failures + // where an attempt is made to call unloaded code. + // These modules are indexed after the loaded + // modules. + STDMETHOD(GetNumberModules)( + THIS_ + _Out_ PULONG Loaded, + _Out_ PULONG Unloaded + ) PURE; + STDMETHOD(GetModuleByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PULONG64 Base + ) PURE; + // The module name may not be unique. + // This method returns the first match. + STDMETHOD(GetModuleByModuleName)( + THIS_ + _In_ PCSTR Name, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // Offset can be any offset within + // the module extent. Extents may + // not be unique when including unloaded + // drivers. This method returns the + // first match. + STDMETHOD(GetModuleByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + STDMETHOD(GetModuleNames)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(ImageNameBufferSize) PSTR ImageNameBuffer, + _In_ ULONG ImageNameBufferSize, + _Out_opt_ PULONG ImageNameSize, + _Out_writes_opt_(ModuleNameBufferSize) PSTR ModuleNameBuffer, + _In_ ULONG ModuleNameBufferSize, + _Out_opt_ PULONG ModuleNameSize, + _Out_writes_opt_(LoadedImageNameBufferSize) PSTR LoadedImageNameBuffer, + _In_ ULONG LoadedImageNameBufferSize, + _Out_opt_ PULONG LoadedImageNameSize + ) PURE; + STDMETHOD(GetModuleParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG64 Bases, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_MODULE_PARAMETERS Params + ) PURE; + // Looks up the module from a ! + // string. + STDMETHOD(GetSymbolModule)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG64 Base + ) PURE; + + // Returns the string name of a type. + STDMETHOD(GetTypeName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + // Returns the ID for a type name. + STDMETHOD(GetTypeId)( + THIS_ + _In_ ULONG64 Module, + _In_ PCSTR Name, + _Out_ PULONG TypeId + ) PURE; + STDMETHOD(GetTypeSize)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_ PULONG Size + ) PURE; + // Given a type which can contain members + // this method returns the offset of a + // particular member within the type. + // TypeId should give the container type ID + // and Field gives the dot-separated path + // to the field of interest. + STDMETHOD(GetFieldOffset)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ PCSTR Field, + _Out_ PULONG Offset + ) PURE; + + STDMETHOD(GetSymbolTypeId)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + // As with GetOffsetByName a symbol's + // name may be ambiguous. GetOffsetTypeId + // returns the type for the symbol closest + // to the given offset and can be used + // to avoid ambiguity. + STDMETHOD(GetOffsetTypeId)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + + // Helpers for virtual and physical data + // which combine creation of a location with + // the actual operation. + STDMETHOD(ReadTypedDataVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteTypedDataVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(OutputTypedDataVirtual)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG Flags + ) PURE; + STDMETHOD(ReadTypedDataPhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteTypedDataPhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(OutputTypedDataPhysical)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG Flags + ) PURE; + + // Function arguments and scope block symbols + // can be retrieved relative to currently + // executing code. A caller can provide just + // a code offset for scoping purposes and look + // up names or the caller can provide a full frame + // and look up actual values. The values for + // scoped symbols are best-guess and may or may not + // be accurate depending on program optimizations, + // the machine architecture, the current point + // in the programs execution and so on. + // A caller can also provide a complete register + // context for setting a scope to a previous + // machine state such as a context saved for + // an exception. Usually this isnt necessary + // and the current register context is used. + STDMETHOD(GetScope)( + THIS_ + _Out_opt_ PULONG64 InstructionOffset, + _Out_opt_ PDEBUG_STACK_FRAME ScopeFrame, + _Out_writes_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + // If ScopeFrame or ScopeContext is non-NULL then + // InstructionOffset is ignored. + // If ScopeContext is NULL the current + // register context is used. + // If the scope identified by the given + // information is the same as before + // SetScope returns S_OK. If the scope + // information changes, such as when the + // scope moves between functions or scope + // blocks, SetScope returns S_FALSE. + STDMETHOD(SetScope)( + THIS_ + _In_ ULONG64 InstructionOffset, + _In_opt_ PDEBUG_STACK_FRAME ScopeFrame, + _In_reads_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + // ResetScope clears the scope information + // for situations where scoped symbols + // mask global symbols or when resetting + // from explicit information to the current + // information. + STDMETHOD(ResetScope)( + THIS + ) PURE; + // A scope symbol is tied to its particular + // scope and only is meaningful within the scope. + // The returned group can be updated by passing it back + // into the method for lower-cost + // incremental updates when stepping. + STDMETHOD(GetScopeSymbolGroup)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PDEBUG_SYMBOL_GROUP Update, + _Out_ PDEBUG_SYMBOL_GROUP* Symbols + ) PURE; + + // Create a new symbol group. + STDMETHOD(CreateSymbolGroup)( + THIS_ + _Out_ PDEBUG_SYMBOL_GROUP* Group + ) PURE; + + // StartSymbolMatch matches symbol names + // against the given pattern using simple + // regular expressions. The search results + // are iterated through using GetNextSymbolMatch. + // When the caller is done examining results + // the match should be freed via EndSymbolMatch. + // If the match pattern contains a module name + // the search is restricted to a single module. + // Pattern matching is only done on symbol names, + // not module names. + // All active symbol match handles are invalidated + // when the set of loaded symbols changes. + STDMETHOD(StartSymbolMatch)( + THIS_ + _In_ PCSTR Pattern, + _Out_ PULONG64 Handle + ) PURE; + // If Buffer is NULL the match does not + // advance. + STDMETHOD(GetNextSymbolMatch)( + THIS_ + _In_ ULONG64 Handle, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MatchSize, + _Out_opt_ PULONG64 Offset + ) PURE; + STDMETHOD(EndSymbolMatch)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Reload)( + THIS_ + _In_ PCSTR Module + ) PURE; + + STDMETHOD(GetSymbolPath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetSymbolPath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendSymbolPath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + + // Manipulate the path for executable images. + // Some dump files need to load executable images + // in order to resolve dump information. This + // path controls where the engine looks for + // images. + STDMETHOD(GetImagePath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetImagePath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendImagePath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + + // Path routines for source file location + // methods. + STDMETHOD(GetSourcePath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + // Gets the nth part of the source path. + STDMETHOD(GetSourcePathElement)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ElementSize + ) PURE; + STDMETHOD(SetSourcePath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendSourcePath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + // Uses the given file path and the source path + // information to try and locate an existing file. + // The given file path is merged with elements + // of the source path and checked for existence. + // If a match is found the element used is returned. + // A starting element can be specified to restrict + // the search to a subset of the path elements; + // this can be useful when checking for multiple + // matches along the source path. + // The returned element can be 1, indicating + // the file was found directly and not on the path. + STDMETHOD(FindSourceFile)( + THIS_ + _In_ ULONG StartElement, + _In_ PCSTR File, + _In_ ULONG Flags, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + // Retrieves all the line offset information + // for a particular source file. Buffer is + // first intialized to DEBUG_INVALID_OFFSET for + // every entry. Then for each piece of line + // symbol information Buffer[Line] set to + // Lines offset. This produces a per-line + // map of the offsets for the lines of the + // given file. Line numbers are decremented + // for the map so Buffer[0] contains the offset + // for line number 1. + // If there is no line information at all for + // the given file the method fails rather + // than returning a map of invalid offsets. + STDMETHOD(GetSourceFileLineOffsets)( + THIS_ + _In_ PCSTR File, + _Out_writes_opt_(BufferLines) PULONG64 Buffer, + _In_ ULONG BufferLines, + _Out_opt_ PULONG FileLines + ) PURE; + + // IDebugSymbols2. + + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + // Item is specified as in VerQueryValue. + // Module version information is only + // available for loaded modules and may + // not be available in all debug sessions. + STDMETHOD(GetModuleVersionInformation)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _In_ PCSTR Item, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG VerInfoSize + ) PURE; + // Retrieves any available module name string + // such as module name or symbol file name. + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + // If symbols are deferred an error will + // be returned. + // E_NOINTERFACE may be returned, indicating + // no information exists. + STDMETHOD(GetModuleNameString)( + THIS_ + _In_ ULONG Which, + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Returns the string name of a constant type. + STDMETHOD(GetConstantName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG64 Value, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Gets name of a field in a struct + // FieldNumber is 0 based index of field in a struct + STDMETHOD(GetFieldName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG FieldIndex, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Control options for typed values. + STDMETHOD(GetTypeOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // IDebugSymbols3. + + STDMETHOD(GetNameByOffsetWide)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByNameWide)( + THIS_ + _In_ PCWSTR Symbol, + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(GetNearNameByOffsetWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByOffsetWide)( + THIS_ + _In_ ULONG64 Offset, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PWSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByLineWide)( + THIS_ + _In_ ULONG Line, + _In_ PCWSTR File, + _Out_ PULONG64 Offset + ) PURE; + + STDMETHOD(GetModuleByModuleNameWide)( + THIS_ + _In_ PCWSTR Name, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + STDMETHOD(GetSymbolModuleWide)( + THIS_ + _In_ PCWSTR Symbol, + _Out_ PULONG64 Base + ) PURE; + + STDMETHOD(GetTypeNameWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + // Returns the ID for a type name. + STDMETHOD(GetTypeIdWide)( + THIS_ + _In_ ULONG64 Module, + _In_ PCWSTR Name, + _Out_ PULONG TypeId + ) PURE; + STDMETHOD(GetFieldOffsetWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ PCWSTR Field, + _Out_ PULONG Offset + ) PURE; + + STDMETHOD(GetSymbolTypeIdWide)( + THIS_ + _In_ PCWSTR Symbol, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + + STDMETHOD(GetScopeSymbolGroup2)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PDEBUG_SYMBOL_GROUP2 Update, + _Out_ PDEBUG_SYMBOL_GROUP2* Symbols + ) PURE; + + STDMETHOD(CreateSymbolGroup2)( + THIS_ + _Out_ PDEBUG_SYMBOL_GROUP2* Group + ) PURE; + + STDMETHOD(StartSymbolMatchWide)( + THIS_ + _In_ PCWSTR Pattern, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(GetNextSymbolMatchWide)( + THIS_ + _In_ ULONG64 Handle, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MatchSize, + _Out_opt_ PULONG64 Offset + ) PURE; + + STDMETHOD(ReloadWide)( + THIS_ + _In_ PCWSTR Module + ) PURE; + + STDMETHOD(GetSymbolPathWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetSymbolPathWide)( + THIS_ + _In_ PCWSTR Path + ) PURE; + STDMETHOD(AppendSymbolPathWide)( + THIS_ + _In_ PCWSTR Addition + ) PURE; + + STDMETHOD(GetImagePathWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetImagePathWide)( + THIS_ + _In_ PCWSTR Path + ) PURE; + STDMETHOD(AppendImagePathWide)( + THIS_ + _In_ PCWSTR Addition + ) PURE; + + STDMETHOD(GetSourcePathWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(GetSourcePathElementWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ElementSize + ) PURE; + STDMETHOD(SetSourcePathWide)( + THIS_ + _In_ PCWSTR Path + ) PURE; + STDMETHOD(AppendSourcePathWide)( + THIS_ + _In_ PCWSTR Addition + ) PURE; + STDMETHOD(FindSourceFileWide)( + THIS_ + _In_ ULONG StartElement, + _In_ PCWSTR File, + _In_ ULONG Flags, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + STDMETHOD(GetSourceFileLineOffsetsWide)( + THIS_ + _In_ PCWSTR File, + _Out_writes_opt_(BufferLines) PULONG64 Buffer, + _In_ ULONG BufferLines, + _Out_opt_ PULONG FileLines + ) PURE; + + STDMETHOD(GetModuleVersionInformationWide)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _In_ PCWSTR Item, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG VerInfoSize + ) PURE; + STDMETHOD(GetModuleNameStringWide)( + THIS_ + _In_ ULONG Which, + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + STDMETHOD(GetConstantNameWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG64 Value, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + STDMETHOD(GetFieldNameWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG FieldIndex, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Returns S_OK if the engine is using managed + // debugging support when retriving information + // for the given module. This can be expensive + // to check. + STDMETHOD(IsManagedModule)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base + ) PURE; + + // The module name may not be unique. + // This method returns the first match. + STDMETHOD(GetModuleByModuleName2)( + THIS_ + _In_ PCSTR Name, + _In_ ULONG StartIndex, + _In_ ULONG Flags, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + STDMETHOD(GetModuleByModuleName2Wide)( + THIS_ + _In_ PCWSTR Name, + _In_ ULONG StartIndex, + _In_ ULONG Flags, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // Offset can be any offset within + // the module extent. Extents may + // not be unique when including unloaded + // drivers. This method returns the + // first match. + STDMETHOD(GetModuleByOffset2)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG StartIndex, + _In_ ULONG Flags, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + + // A caller can create artificial loaded modules in + // the engine's module list if desired. + // These modules only serve as names for + // a region of addresses. They cannot have + // real symbols loaded for them; if that + // is desired Reload can be used with explicit + // parameters to create a true module entry. + // The region must not be in use by any other + // module. + // A general reload will discard any synthetic modules. + STDMETHOD(AddSyntheticModule)( + THIS_ + _In_ ULONG64 Base, + _In_ ULONG Size, + _In_ PCSTR ImagePath, + _In_ PCSTR ModuleName, + _In_ ULONG Flags + ) PURE; + STDMETHOD(AddSyntheticModuleWide)( + THIS_ + _In_ ULONG64 Base, + _In_ ULONG Size, + _In_ PCWSTR ImagePath, + _In_ PCWSTR ModuleName, + _In_ ULONG Flags + ) PURE; + STDMETHOD(RemoveSyntheticModule)( + THIS_ + _In_ ULONG64 Base + ) PURE; + + // Modify the current frame used for scoping. + // This is equivalent to the '.frame' command. + STDMETHOD(GetCurrentScopeFrameIndex)( + THIS_ + _Out_ PULONG Index + ) PURE; + STDMETHOD(SetScopeFrameByIndex)( + THIS_ + _In_ ULONG Index + ) PURE; + + // Recovers JIT_DEBUG_INFO information at the given + // address from the debuggee and sets current + // debugger scope context from it. + // Equivalent to '.jdinfo' command. + STDMETHOD(SetScopeFromJitDebugInfo)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 InfoOffset + ) PURE; + + // Switches the current debugger scope to + // the stored event information. + // Equivalent to the '.ecxr' command. + STDMETHOD(SetScopeFromStoredEvent)( + THIS + ) PURE; + + // Takes the first symbol hit and outputs it. + // Controlled with DEBUG_OUTSYM_* flags. + STDMETHOD(OutputSymbolByOffset)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ ULONG64 Offset + ) PURE; + + // Function entry information for a particular + // piece of code can be retrieved by this method. + // The actual data returned is system-dependent. + STDMETHOD(GetFunctionEntryByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BufferNeeded + ) PURE; + + // Given a type which can contain members + // this method returns the type ID and offset of a + // particular member within the type. + // Field gives the dot-separated path + // to the field of interest. + STDMETHOD(GetFieldTypeAndOffset)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG ContainerTypeId, + _In_ PCSTR Field, + _Out_opt_ PULONG FieldTypeId, + _Out_opt_ PULONG Offset + ) PURE; + STDMETHOD(GetFieldTypeAndOffsetWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG ContainerTypeId, + _In_ PCWSTR Field, + _Out_opt_ PULONG FieldTypeId, + _Out_opt_ PULONG Offset + ) PURE; + + // Artificial symbols can be created in any + // existing module as a way to name an address. + // The address must not already have symbol + // information. + // A reload will discard synthetic symbols + // for all address regions reloaded. + STDMETHOD(AddSyntheticSymbol)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Size, + _In_ PCSTR Name, + _In_ ULONG Flags, + _Out_opt_ PDEBUG_MODULE_AND_ID Id + ) PURE; + STDMETHOD(AddSyntheticSymbolWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Size, + _In_ PCWSTR Name, + _In_ ULONG Flags, + _Out_opt_ PDEBUG_MODULE_AND_ID Id + ) PURE; + STDMETHOD(RemoveSyntheticSymbol)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id + ) PURE; + + // The following methods can return multiple + // hits for symbol lookups to allow for all + // possible hits to be returned. + STDMETHOD(GetSymbolEntriesByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(IdsCount) PDEBUG_MODULE_AND_ID Ids, + _Out_writes_opt_(IdsCount) PULONG64 Displacements, + _In_ ULONG IdsCount, + _Out_opt_ PULONG Entries + ) PURE; + STDMETHOD(GetSymbolEntriesByName)( + THIS_ + _In_ PCSTR Symbol, + _In_ ULONG Flags, + _Out_writes_opt_(IdsCount) PDEBUG_MODULE_AND_ID Ids, + _In_ ULONG IdsCount, + _Out_opt_ PULONG Entries + ) PURE; + STDMETHOD(GetSymbolEntriesByNameWide)( + THIS_ + _In_ PCWSTR Symbol, + _In_ ULONG Flags, + _Out_writes_opt_(IdsCount) PDEBUG_MODULE_AND_ID Ids, + _In_ ULONG IdsCount, + _Out_opt_ PULONG Entries + ) PURE; + // Symbol lookup by managed metadata token. + STDMETHOD(GetSymbolEntryByToken)( + THIS_ + _In_ ULONG64 ModuleBase, + _In_ ULONG Token, + _Out_ PDEBUG_MODULE_AND_ID Id + ) PURE; + + // Retrieves full symbol entry information from an ID. + STDMETHOD(GetSymbolEntryInformation)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _Out_ PDEBUG_SYMBOL_ENTRY Info + ) PURE; + STDMETHOD(GetSymbolEntryString)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(GetSymbolEntryStringWide)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + // Returns all known memory regions associated + // with the given symbol. Simple symbols will + // have a single region starting from their base. + // More complicated regions, such as functions + // with multiple code areas, can have an arbitrarily + // large number of regions. + // The quality of information returned is highly + // dependent on the symbolic information availble. + STDMETHOD(GetSymbolEntryOffsetRegions)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _In_ ULONG Flags, + _Out_writes_opt_(RegionsCount) PDEBUG_OFFSET_REGION Regions, + _In_ ULONG RegionsCount, + _Out_opt_ PULONG RegionsAvail + ) PURE; + + // This method allows navigating within the + // symbol entry hierarchy. + STDMETHOD(GetSymbolEntryBySymbolEntry)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID FromId, + _In_ ULONG Flags, + _Out_ PDEBUG_MODULE_AND_ID ToId + ) PURE; + + // The following methods can return multiple + // hits for source lookups to allow for all + // possible hits to be returned. + STDMETHOD(GetSourceEntriesByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(EntriesCount) PDEBUG_SYMBOL_SOURCE_ENTRY Entries, + _In_ ULONG EntriesCount, + _Out_opt_ PULONG EntriesAvail + ) PURE; + STDMETHOD(GetSourceEntriesByLine)( + THIS_ + _In_ ULONG Line, + _In_ PCSTR File, + _In_ ULONG Flags, + _Out_writes_opt_(EntriesCount) PDEBUG_SYMBOL_SOURCE_ENTRY Entries, + _In_ ULONG EntriesCount, + _Out_opt_ PULONG EntriesAvail + ) PURE; + STDMETHOD(GetSourceEntriesByLineWide)( + THIS_ + _In_ ULONG Line, + _In_ PCWSTR File, + _In_ ULONG Flags, + _Out_writes_opt_(EntriesCount) PDEBUG_SYMBOL_SOURCE_ENTRY Entries, + _In_ ULONG EntriesCount, + _Out_opt_ PULONG EntriesAvail + ) PURE; + + STDMETHOD(GetSourceEntryString)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY Entry, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(GetSourceEntryStringWide)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY Entry, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + // Returns all known memory regions associated + // with the given source entry. As with + // GetSymbolEntryOffsetRegions the regions available + // are variable. + STDMETHOD(GetSourceEntryOffsetRegions)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY Entry, + _In_ ULONG Flags, + _Out_writes_opt_(RegionsCount) PDEBUG_OFFSET_REGION Regions, + _In_ ULONG RegionsCount, + _Out_opt_ PULONG RegionsAvail + ) PURE; + + // This method allows navigating within the + // source entries. + STDMETHOD(GetSourceEntryBySourceEntry)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY FromEntry, + _In_ ULONG Flags, + _Out_ PDEBUG_SYMBOL_SOURCE_ENTRY ToEntry + ) PURE; + + // IDebugSymbols4 + STDMETHOD(GetScopeEx)( + THIS_ + _Out_opt_ PULONG64 InstructionOffset, + _Out_opt_ PDEBUG_STACK_FRAME_EX ScopeFrame, + _Out_writes_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + + STDMETHOD(SetScopeEx)( + THIS_ + _In_ ULONG64 InstructionOffset, + _In_opt_ PDEBUG_STACK_FRAME_EX ScopeFrame, + _In_reads_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + + STDMETHOD(GetNameByInlineContext)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG InlineContext, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetNameByInlineContextWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG InlineContext, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByInlineContext)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG InlineContext, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByInlineContextWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG InlineContext, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PWSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(OutputSymbolByInlineContext)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ ULONG64 Offset, + _In_ ULONG InlineContext + ) PURE; +}; + +#define DEBUG_FRAME_DEFAULT 0 +#define DEBUG_FRAME_IGNORE_INLINE 0x00000001 + +#undef INTERFACE +#define INTERFACE IDebugSymbols5 +DECLARE_INTERFACE_(IDebugSymbols5, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSymbols. + + // Controls the symbol options used during + // symbol operations. + // Uses the same flags as dbghelps SymSetOptions. + STDMETHOD(GetSymbolOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetSymbolOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + STDMETHOD(GetNameByOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + // A symbol name may not be unique, particularly + // when overloaded functions exist which all + // have the same name. If GetOffsetByName + // finds multiple matches for the name it + // can return any one of them. In that + // case it will return S_FALSE to indicate + // that ambiguity was arbitrarily resolved. + // A caller can then use SearchSymbols to + // find all of the matches if it wishes to + // perform different disambiguation. + STDMETHOD(GetOffsetByName)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG64 Offset + ) PURE; + // GetNearNameByOffset returns symbols + // located near the symbol closest to + // to the offset, such as the previous + // or next symbol. If Delta is zero it + // operates identically to GetNameByOffset. + // If Delta is nonzero and such a symbol + // does not exist an error is returned. + // The next symbol, if one exists, will + // always have a higher offset than the + // input offset so the displacement is + // always negative. The situation is + // reversed for the previous symbol. + STDMETHOD(GetNearNameByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByLine)( + THIS_ + _In_ ULONG Line, + _In_ PCSTR File, + _Out_ PULONG64 Offset + ) PURE; + + // Enumerates the engines list of modules + // loaded for the current process. This may + // or may not match the system module list + // for the process. Reload can be used to + // synchronize the engines list with the system + // if necessary. + // Some sessions also track recently unloaded + // code modules for help in analyzing failures + // where an attempt is made to call unloaded code. + // These modules are indexed after the loaded + // modules. + STDMETHOD(GetNumberModules)( + THIS_ + _Out_ PULONG Loaded, + _Out_ PULONG Unloaded + ) PURE; + STDMETHOD(GetModuleByIndex)( + THIS_ + _In_ ULONG Index, + _Out_ PULONG64 Base + ) PURE; + // The module name may not be unique. + // This method returns the first match. + STDMETHOD(GetModuleByModuleName)( + THIS_ + _In_ PCSTR Name, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // Offset can be any offset within + // the module extent. Extents may + // not be unique when including unloaded + // drivers. This method returns the + // first match. + STDMETHOD(GetModuleByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + STDMETHOD(GetModuleNames)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(ImageNameBufferSize) PSTR ImageNameBuffer, + _In_ ULONG ImageNameBufferSize, + _Out_opt_ PULONG ImageNameSize, + _Out_writes_opt_(ModuleNameBufferSize) PSTR ModuleNameBuffer, + _In_ ULONG ModuleNameBufferSize, + _Out_opt_ PULONG ModuleNameSize, + _Out_writes_opt_(LoadedImageNameBufferSize) PSTR LoadedImageNameBuffer, + _In_ ULONG LoadedImageNameBufferSize, + _Out_opt_ PULONG LoadedImageNameSize + ) PURE; + STDMETHOD(GetModuleParameters)( + THIS_ + _In_ ULONG Count, + _In_reads_opt_(Count) PULONG64 Bases, + _In_ ULONG Start, + _Out_writes_(Count) PDEBUG_MODULE_PARAMETERS Params + ) PURE; + // Looks up the module from a ! + // string. + STDMETHOD(GetSymbolModule)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG64 Base + ) PURE; + + // Returns the string name of a type. + STDMETHOD(GetTypeName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + // Returns the ID for a type name. + STDMETHOD(GetTypeId)( + THIS_ + _In_ ULONG64 Module, + _In_ PCSTR Name, + _Out_ PULONG TypeId + ) PURE; + STDMETHOD(GetTypeSize)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_ PULONG Size + ) PURE; + // Given a type which can contain members + // this method returns the offset of a + // particular member within the type. + // TypeId should give the container type ID + // and Field gives the dot-separated path + // to the field of interest. + STDMETHOD(GetFieldOffset)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ PCSTR Field, + _Out_ PULONG Offset + ) PURE; + + STDMETHOD(GetSymbolTypeId)( + THIS_ + _In_ PCSTR Symbol, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + // As with GetOffsetByName a symbol's + // name may be ambiguous. GetOffsetTypeId + // returns the type for the symbol closest + // to the given offset and can be used + // to avoid ambiguity. + STDMETHOD(GetOffsetTypeId)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + + // Helpers for virtual and physical data + // which combine creation of a location with + // the actual operation. + STDMETHOD(ReadTypedDataVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteTypedDataVirtual)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(OutputTypedDataVirtual)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG Flags + ) PURE; + STDMETHOD(ReadTypedDataPhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesRead + ) PURE; + STDMETHOD(WriteTypedDataPhysical)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_reads_bytes_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BytesWritten + ) PURE; + STDMETHOD(OutputTypedDataPhysical)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 Offset, + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG Flags + ) PURE; + + // Function arguments and scope block symbols + // can be retrieved relative to currently + // executing code. A caller can provide just + // a code offset for scoping purposes and look + // up names or the caller can provide a full frame + // and look up actual values. The values for + // scoped symbols are best-guess and may or may not + // be accurate depending on program optimizations, + // the machine architecture, the current point + // in the programs execution and so on. + // A caller can also provide a complete register + // context for setting a scope to a previous + // machine state such as a context saved for + // an exception. Usually this isnt necessary + // and the current register context is used. + STDMETHOD(GetScope)( + THIS_ + _Out_opt_ PULONG64 InstructionOffset, + _Out_opt_ PDEBUG_STACK_FRAME ScopeFrame, + _Out_writes_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + // If ScopeFrame or ScopeContext is non-NULL then + // InstructionOffset is ignored. + // If ScopeContext is NULL the current + // register context is used. + // If the scope identified by the given + // information is the same as before + // SetScope returns S_OK. If the scope + // information changes, such as when the + // scope moves between functions or scope + // blocks, SetScope returns S_FALSE. + STDMETHOD(SetScope)( + THIS_ + _In_ ULONG64 InstructionOffset, + _In_opt_ PDEBUG_STACK_FRAME ScopeFrame, + _In_reads_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + // ResetScope clears the scope information + // for situations where scoped symbols + // mask global symbols or when resetting + // from explicit information to the current + // information. + STDMETHOD(ResetScope)( + THIS + ) PURE; + // A scope symbol is tied to its particular + // scope and only is meaningful within the scope. + // The returned group can be updated by passing it back + // into the method for lower-cost + // incremental updates when stepping. + STDMETHOD(GetScopeSymbolGroup)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PDEBUG_SYMBOL_GROUP Update, + _Out_ PDEBUG_SYMBOL_GROUP* Symbols + ) PURE; + + // Create a new symbol group. + STDMETHOD(CreateSymbolGroup)( + THIS_ + _Out_ PDEBUG_SYMBOL_GROUP* Group + ) PURE; + + // StartSymbolMatch matches symbol names + // against the given pattern using simple + // regular expressions. The search results + // are iterated through using GetNextSymbolMatch. + // When the caller is done examining results + // the match should be freed via EndSymbolMatch. + // If the match pattern contains a module name + // the search is restricted to a single module. + // Pattern matching is only done on symbol names, + // not module names. + // All active symbol match handles are invalidated + // when the set of loaded symbols changes. + STDMETHOD(StartSymbolMatch)( + THIS_ + _In_ PCSTR Pattern, + _Out_ PULONG64 Handle + ) PURE; + // If Buffer is NULL the match does not + // advance. + STDMETHOD(GetNextSymbolMatch)( + THIS_ + _In_ ULONG64 Handle, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MatchSize, + _Out_opt_ PULONG64 Offset + ) PURE; + STDMETHOD(EndSymbolMatch)( + THIS_ + _In_ ULONG64 Handle + ) PURE; + + STDMETHOD(Reload)( + THIS_ + _In_ PCSTR Module + ) PURE; + + STDMETHOD(GetSymbolPath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetSymbolPath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendSymbolPath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + + // Manipulate the path for executable images. + // Some dump files need to load executable images + // in order to resolve dump information. This + // path controls where the engine looks for + // images. + STDMETHOD(GetImagePath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetImagePath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendImagePath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + + // Path routines for source file location + // methods. + STDMETHOD(GetSourcePath)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + // Gets the nth part of the source path. + STDMETHOD(GetSourcePathElement)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ElementSize + ) PURE; + STDMETHOD(SetSourcePath)( + THIS_ + _In_ PCSTR Path + ) PURE; + STDMETHOD(AppendSourcePath)( + THIS_ + _In_ PCSTR Addition + ) PURE; + // Uses the given file path and the source path + // information to try and locate an existing file. + // The given file path is merged with elements + // of the source path and checked for existence. + // If a match is found the element used is returned. + // A starting element can be specified to restrict + // the search to a subset of the path elements; + // this can be useful when checking for multiple + // matches along the source path. + // The returned element can be 1, indicating + // the file was found directly and not on the path. + STDMETHOD(FindSourceFile)( + THIS_ + _In_ ULONG StartElement, + _In_ PCSTR File, + _In_ ULONG Flags, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + // Retrieves all the line offset information + // for a particular source file. Buffer is + // first intialized to DEBUG_INVALID_OFFSET for + // every entry. Then for each piece of line + // symbol information Buffer[Line] set to + // Lines offset. This produces a per-line + // map of the offsets for the lines of the + // given file. Line numbers are decremented + // for the map so Buffer[0] contains the offset + // for line number 1. + // If there is no line information at all for + // the given file the method fails rather + // than returning a map of invalid offsets. + STDMETHOD(GetSourceFileLineOffsets)( + THIS_ + _In_ PCSTR File, + _Out_writes_opt_(BufferLines) PULONG64 Buffer, + _In_ ULONG BufferLines, + _Out_opt_ PULONG FileLines + ) PURE; + + // IDebugSymbols2. + + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + // Item is specified as in VerQueryValue. + // Module version information is only + // available for loaded modules and may + // not be available in all debug sessions. + STDMETHOD(GetModuleVersionInformation)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _In_ PCSTR Item, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG VerInfoSize + ) PURE; + // Retrieves any available module name string + // such as module name or symbol file name. + // If Index is DEBUG_ANY_ID the base address + // is used to look up the module instead. + // If symbols are deferred an error will + // be returned. + // E_NOINTERFACE may be returned, indicating + // no information exists. + STDMETHOD(GetModuleNameString)( + THIS_ + _In_ ULONG Which, + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Returns the string name of a constant type. + STDMETHOD(GetConstantName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG64 Value, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Gets name of a field in a struct + // FieldNumber is 0 based index of field in a struct + STDMETHOD(GetFieldName)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG FieldIndex, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Control options for typed values. + STDMETHOD(GetTypeOptions)( + THIS_ + _Out_ PULONG Options + ) PURE; + STDMETHOD(AddTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(RemoveTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + STDMETHOD(SetTypeOptions)( + THIS_ + _In_ ULONG Options + ) PURE; + + // IDebugSymbols3. + + STDMETHOD(GetNameByOffsetWide)( + THIS_ + _In_ ULONG64 Offset, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByNameWide)( + THIS_ + _In_ PCWSTR Symbol, + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(GetNearNameByOffsetWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ LONG Delta, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByOffsetWide)( + THIS_ + _In_ ULONG64 Offset, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PWSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + STDMETHOD(GetOffsetByLineWide)( + THIS_ + _In_ ULONG Line, + _In_ PCWSTR File, + _Out_ PULONG64 Offset + ) PURE; + + STDMETHOD(GetModuleByModuleNameWide)( + THIS_ + _In_ PCWSTR Name, + _In_ ULONG StartIndex, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + STDMETHOD(GetSymbolModuleWide)( + THIS_ + _In_ PCWSTR Symbol, + _Out_ PULONG64 Base + ) PURE; + + STDMETHOD(GetTypeNameWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + // Returns the ID for a type name. + STDMETHOD(GetTypeIdWide)( + THIS_ + _In_ ULONG64 Module, + _In_ PCWSTR Name, + _Out_ PULONG TypeId + ) PURE; + STDMETHOD(GetFieldOffsetWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ PCWSTR Field, + _Out_ PULONG Offset + ) PURE; + + STDMETHOD(GetSymbolTypeIdWide)( + THIS_ + _In_ PCWSTR Symbol, + _Out_ PULONG TypeId, + _Out_opt_ PULONG64 Module + ) PURE; + + STDMETHOD(GetScopeSymbolGroup2)( + THIS_ + _In_ ULONG Flags, + _In_opt_ PDEBUG_SYMBOL_GROUP2 Update, + _Out_ PDEBUG_SYMBOL_GROUP2* Symbols + ) PURE; + + STDMETHOD(CreateSymbolGroup2)( + THIS_ + _Out_ PDEBUG_SYMBOL_GROUP2* Group + ) PURE; + + STDMETHOD(StartSymbolMatchWide)( + THIS_ + _In_ PCWSTR Pattern, + _Out_ PULONG64 Handle + ) PURE; + STDMETHOD(GetNextSymbolMatchWide)( + THIS_ + _In_ ULONG64 Handle, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG MatchSize, + _Out_opt_ PULONG64 Offset + ) PURE; + + STDMETHOD(ReloadWide)( + THIS_ + _In_ PCWSTR Module + ) PURE; + + STDMETHOD(GetSymbolPathWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetSymbolPathWide)( + THIS_ + _In_ PCWSTR Path + ) PURE; + STDMETHOD(AppendSymbolPathWide)( + THIS_ + _In_ PCWSTR Addition + ) PURE; + + STDMETHOD(GetImagePathWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(SetImagePathWide)( + THIS_ + _In_ PCWSTR Path + ) PURE; + STDMETHOD(AppendImagePathWide)( + THIS_ + _In_ PCWSTR Addition + ) PURE; + + STDMETHOD(GetSourcePathWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG PathSize + ) PURE; + STDMETHOD(GetSourcePathElementWide)( + THIS_ + _In_ ULONG Index, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ElementSize + ) PURE; + STDMETHOD(SetSourcePathWide)( + THIS_ + _In_ PCWSTR Path + ) PURE; + STDMETHOD(AppendSourcePathWide)( + THIS_ + _In_ PCWSTR Addition + ) PURE; + STDMETHOD(FindSourceFileWide)( + THIS_ + _In_ ULONG StartElement, + _In_ PCWSTR File, + _In_ ULONG Flags, + _Out_opt_ PULONG FoundElement, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG FoundSize + ) PURE; + STDMETHOD(GetSourceFileLineOffsetsWide)( + THIS_ + _In_ PCWSTR File, + _Out_writes_opt_(BufferLines) PULONG64 Buffer, + _In_ ULONG BufferLines, + _Out_opt_ PULONG FileLines + ) PURE; + + STDMETHOD(GetModuleVersionInformationWide)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base, + _In_ PCWSTR Item, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG VerInfoSize + ) PURE; + STDMETHOD(GetModuleNameStringWide)( + THIS_ + _In_ ULONG Which, + _In_ ULONG Index, + _In_ ULONG64 Base, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + STDMETHOD(GetConstantNameWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG64 Value, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + STDMETHOD(GetFieldNameWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG TypeId, + _In_ ULONG FieldIndex, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // Returns S_OK if the engine is using managed + // debugging support when retriving information + // for the given module. This can be expensive + // to check. + STDMETHOD(IsManagedModule)( + THIS_ + _In_ ULONG Index, + _In_ ULONG64 Base + ) PURE; + + // The module name may not be unique. + // This method returns the first match. + STDMETHOD(GetModuleByModuleName2)( + THIS_ + _In_ PCSTR Name, + _In_ ULONG StartIndex, + _In_ ULONG Flags, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + STDMETHOD(GetModuleByModuleName2Wide)( + THIS_ + _In_ PCWSTR Name, + _In_ ULONG StartIndex, + _In_ ULONG Flags, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + // Offset can be any offset within + // the module extent. Extents may + // not be unique when including unloaded + // drivers. This method returns the + // first match. + STDMETHOD(GetModuleByOffset2)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG StartIndex, + _In_ ULONG Flags, + _Out_opt_ PULONG Index, + _Out_opt_ PULONG64 Base + ) PURE; + + // A caller can create artificial loaded modules in + // the engine's module list if desired. + // These modules only serve as names for + // a region of addresses. They cannot have + // real symbols loaded for them; if that + // is desired Reload can be used with explicit + // parameters to create a true module entry. + // The region must not be in use by any other + // module. + // A general reload will discard any synthetic modules. + STDMETHOD(AddSyntheticModule)( + THIS_ + _In_ ULONG64 Base, + _In_ ULONG Size, + _In_ PCSTR ImagePath, + _In_ PCSTR ModuleName, + _In_ ULONG Flags + ) PURE; + STDMETHOD(AddSyntheticModuleWide)( + THIS_ + _In_ ULONG64 Base, + _In_ ULONG Size, + _In_ PCWSTR ImagePath, + _In_ PCWSTR ModuleName, + _In_ ULONG Flags + ) PURE; + STDMETHOD(RemoveSyntheticModule)( + THIS_ + _In_ ULONG64 Base + ) PURE; + + // Modify the current frame used for scoping. + // This is equivalent to the '.frame' command. + STDMETHOD(GetCurrentScopeFrameIndex)( + THIS_ + _Out_ PULONG Index + ) PURE; + STDMETHOD(SetScopeFrameByIndex)( + THIS_ + _In_ ULONG Index + ) PURE; + + // Recovers JIT_DEBUG_INFO information at the given + // address from the debuggee and sets current + // debugger scope context from it. + // Equivalent to '.jdinfo' command. + STDMETHOD(SetScopeFromJitDebugInfo)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG64 InfoOffset + ) PURE; + + // Switches the current debugger scope to + // the stored event information. + // Equivalent to the '.ecxr' command. + STDMETHOD(SetScopeFromStoredEvent)( + THIS + ) PURE; + + // Takes the first symbol hit and outputs it. + // Controlled with DEBUG_OUTSYM_* flags. + STDMETHOD(OutputSymbolByOffset)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ ULONG64 Offset + ) PURE; + + // Function entry information for a particular + // piece of code can be retrieved by this method. + // The actual data returned is system-dependent. + STDMETHOD(GetFunctionEntryByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_bytes_opt_(BufferSize) PVOID Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG BufferNeeded + ) PURE; + + // Given a type which can contain members + // this method returns the type ID and offset of a + // particular member within the type. + // Field gives the dot-separated path + // to the field of interest. + STDMETHOD(GetFieldTypeAndOffset)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG ContainerTypeId, + _In_ PCSTR Field, + _Out_opt_ PULONG FieldTypeId, + _Out_opt_ PULONG Offset + ) PURE; + STDMETHOD(GetFieldTypeAndOffsetWide)( + THIS_ + _In_ ULONG64 Module, + _In_ ULONG ContainerTypeId, + _In_ PCWSTR Field, + _Out_opt_ PULONG FieldTypeId, + _Out_opt_ PULONG Offset + ) PURE; + + // Artificial symbols can be created in any + // existing module as a way to name an address. + // The address must not already have symbol + // information. + // A reload will discard synthetic symbols + // for all address regions reloaded. + STDMETHOD(AddSyntheticSymbol)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Size, + _In_ PCSTR Name, + _In_ ULONG Flags, + _Out_opt_ PDEBUG_MODULE_AND_ID Id + ) PURE; + STDMETHOD(AddSyntheticSymbolWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Size, + _In_ PCWSTR Name, + _In_ ULONG Flags, + _Out_opt_ PDEBUG_MODULE_AND_ID Id + ) PURE; + STDMETHOD(RemoveSyntheticSymbol)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id + ) PURE; + + // The following methods can return multiple + // hits for symbol lookups to allow for all + // possible hits to be returned. + STDMETHOD(GetSymbolEntriesByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(IdsCount) PDEBUG_MODULE_AND_ID Ids, + _Out_writes_opt_(IdsCount) PULONG64 Displacements, + _In_ ULONG IdsCount, + _Out_opt_ PULONG Entries + ) PURE; + STDMETHOD(GetSymbolEntriesByName)( + THIS_ + _In_ PCSTR Symbol, + _In_ ULONG Flags, + _Out_writes_opt_(IdsCount) PDEBUG_MODULE_AND_ID Ids, + _In_ ULONG IdsCount, + _Out_opt_ PULONG Entries + ) PURE; + STDMETHOD(GetSymbolEntriesByNameWide)( + THIS_ + _In_ PCWSTR Symbol, + _In_ ULONG Flags, + _Out_writes_opt_(IdsCount) PDEBUG_MODULE_AND_ID Ids, + _In_ ULONG IdsCount, + _Out_opt_ PULONG Entries + ) PURE; + // Symbol lookup by managed metadata token. + STDMETHOD(GetSymbolEntryByToken)( + THIS_ + _In_ ULONG64 ModuleBase, + _In_ ULONG Token, + _Out_ PDEBUG_MODULE_AND_ID Id + ) PURE; + + // Retrieves full symbol entry information from an ID. + STDMETHOD(GetSymbolEntryInformation)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _Out_ PDEBUG_SYMBOL_ENTRY Info + ) PURE; + STDMETHOD(GetSymbolEntryString)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(GetSymbolEntryStringWide)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + // Returns all known memory regions associated + // with the given symbol. Simple symbols will + // have a single region starting from their base. + // More complicated regions, such as functions + // with multiple code areas, can have an arbitrarily + // large number of regions. + // The quality of information returned is highly + // dependent on the symbolic information availble. + STDMETHOD(GetSymbolEntryOffsetRegions)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID Id, + _In_ ULONG Flags, + _Out_writes_opt_(RegionsCount) PDEBUG_OFFSET_REGION Regions, + _In_ ULONG RegionsCount, + _Out_opt_ PULONG RegionsAvail + ) PURE; + + // This method allows navigating within the + // symbol entry hierarchy. + STDMETHOD(GetSymbolEntryBySymbolEntry)( + THIS_ + _In_ PDEBUG_MODULE_AND_ID FromId, + _In_ ULONG Flags, + _Out_ PDEBUG_MODULE_AND_ID ToId + ) PURE; + + // The following methods can return multiple + // hits for source lookups to allow for all + // possible hits to be returned. + STDMETHOD(GetSourceEntriesByOffset)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG Flags, + _Out_writes_opt_(EntriesCount) PDEBUG_SYMBOL_SOURCE_ENTRY Entries, + _In_ ULONG EntriesCount, + _Out_opt_ PULONG EntriesAvail + ) PURE; + STDMETHOD(GetSourceEntriesByLine)( + THIS_ + _In_ ULONG Line, + _In_ PCSTR File, + _In_ ULONG Flags, + _Out_writes_opt_(EntriesCount) PDEBUG_SYMBOL_SOURCE_ENTRY Entries, + _In_ ULONG EntriesCount, + _Out_opt_ PULONG EntriesAvail + ) PURE; + STDMETHOD(GetSourceEntriesByLineWide)( + THIS_ + _In_ ULONG Line, + _In_ PCWSTR File, + _In_ ULONG Flags, + _Out_writes_opt_(EntriesCount) PDEBUG_SYMBOL_SOURCE_ENTRY Entries, + _In_ ULONG EntriesCount, + _Out_opt_ PULONG EntriesAvail + ) PURE; + + STDMETHOD(GetSourceEntryString)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY Entry, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + STDMETHOD(GetSourceEntryStringWide)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY Entry, + _In_ ULONG Which, + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG StringSize + ) PURE; + // Returns all known memory regions associated + // with the given source entry. As with + // GetSymbolEntryOffsetRegions the regions available + // are variable. + STDMETHOD(GetSourceEntryOffsetRegions)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY Entry, + _In_ ULONG Flags, + _Out_writes_opt_(RegionsCount) PDEBUG_OFFSET_REGION Regions, + _In_ ULONG RegionsCount, + _Out_opt_ PULONG RegionsAvail + ) PURE; + + // This method allows navigating within the + // source entries. + STDMETHOD(GetSourceEntryBySourceEntry)( + THIS_ + _In_ PDEBUG_SYMBOL_SOURCE_ENTRY FromEntry, + _In_ ULONG Flags, + _Out_ PDEBUG_SYMBOL_SOURCE_ENTRY ToEntry + ) PURE; + + // IDebugSymbols4 + STDMETHOD(GetScopeEx)( + THIS_ + _Out_opt_ PULONG64 InstructionOffset, + _Out_opt_ PDEBUG_STACK_FRAME_EX ScopeFrame, + _Out_writes_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + + STDMETHOD(SetScopeEx)( + THIS_ + _In_ ULONG64 InstructionOffset, + _In_opt_ PDEBUG_STACK_FRAME_EX ScopeFrame, + _In_reads_bytes_opt_(ScopeContextSize) PVOID ScopeContext, + _In_ ULONG ScopeContextSize + ) PURE; + + STDMETHOD(GetNameByInlineContext)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG InlineContext, + _Out_writes_opt_(NameBufferSize) PSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetNameByInlineContextWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG InlineContext, + _Out_writes_opt_(NameBufferSize) PWSTR NameBuffer, + _In_ ULONG NameBufferSize, + _Out_opt_ PULONG NameSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByInlineContext)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG InlineContext, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(GetLineByInlineContextWide)( + THIS_ + _In_ ULONG64 Offset, + _In_ ULONG InlineContext, + _Out_opt_ PULONG Line, + _Out_writes_opt_(FileBufferSize) PWSTR FileBuffer, + _In_ ULONG FileBufferSize, + _Out_opt_ PULONG FileSize, + _Out_opt_ PULONG64 Displacement + ) PURE; + + STDMETHOD(OutputSymbolByInlineContext)( + THIS_ + _In_ ULONG OutputControl, + _In_ ULONG Flags, + _In_ ULONG64 Offset, + _In_ ULONG InlineContext + ) PURE; + + // IDebugSymbols5 + STDMETHOD(GetCurrentScopeFrameIndexEx)( + THIS_ + _In_ ULONG Flags, + _Out_ PULONG Index + ) PURE; + STDMETHOD(SetScopeFrameByIndexEx)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG Index + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// IDebugSystemObjects +// +//---------------------------------------------------------------------------- + +#undef INTERFACE +#define INTERFACE IDebugSystemObjects +DECLARE_INTERFACE_(IDebugSystemObjects, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSystemObjects. + + // In user mode debugging the debugger + // tracks all threads and processes and + // enumerates them through the following + // methods. When enumerating threads + // the threads are enumerated for the current + // process. + // Kernel mode debugging currently is + // limited to enumerating only the threads + // assigned to processors, not all of + // the threads in the system. Process + // enumeration is limited to a single + // virtual process representing kernel space. + + // Returns the ID of the thread on which + // the last event occurred. + STDMETHOD(GetEventThread)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetEventProcess)( + THIS_ + _Out_ PULONG Id + ) PURE; + + // Controls implicit thread used by the + // debug engine. The debuggers current + // thread is just a piece of data held + // by the debugger for calls which use + // thread-specific information. In those + // calls the debuggers current thread is used. + // The debuggers current thread is not related + // to any system thread attribute. + // IDs for threads are small integer IDs + // maintained by the engine. They are not + // related to system thread IDs. + STDMETHOD(GetCurrentThreadId)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(SetCurrentThreadId)( + THIS_ + _In_ ULONG Id + ) PURE; + // The current process is the process + // that owns the current thread. + STDMETHOD(GetCurrentProcessId)( + THIS_ + _Out_ PULONG Id + ) PURE; + // Setting the current process automatically + // sets the current thread to the thread that + // was last current in that process. + STDMETHOD(SetCurrentProcessId)( + THIS_ + _In_ ULONG Id + ) PURE; + + // Gets the number of threads in the current process. + STDMETHOD(GetNumberThreads)( + THIS_ + _Out_ PULONG Number + ) PURE; + // Gets thread count information for all processes + // and the largest number of threads in a single process. + STDMETHOD(GetTotalNumberThreads)( + THIS_ + _Out_ PULONG Total, + _Out_ PULONG LargestProcess + ) PURE; + STDMETHOD(GetThreadIdsByIndex)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_opt_(Count) PULONG Ids, + _Out_writes_opt_(Count) PULONG SysIds + ) PURE; + // Gets the debugger ID for the thread + // currently running on the given + // processor. Only works in kernel + // debugging. + STDMETHOD(GetThreadIdByProcessor)( + THIS_ + _In_ ULONG Processor, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current threads + // system data structure. When kernel debugging + // this is the offset of the KTHREAD. + // When user debugging it is the offset + // of the current TEB. + STDMETHOD(GetCurrentThreadDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger thread ID for the given + // system thread data structure. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByDataOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current threads + // TEB. In user mode this is equivalent to + // the threads data offset. + STDMETHOD(GetCurrentThreadTeb)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger thread ID for the given TEB. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByTeb)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the system unique ID for the current thread. + // Not currently supported when kernel debugging. + STDMETHOD(GetCurrentThreadSystemId)( + THIS_ + _Out_ PULONG SysId + ) PURE; + // Looks up a debugger thread ID for the given + // system thread ID. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdBySystemId)( + THIS_ + _In_ ULONG SysId, + _Out_ PULONG Id + ) PURE; + // Returns the handle of the current thread. + // In kernel mode the value returned is the + // index of the processor the thread is + // executing on plus one. + STDMETHOD(GetCurrentThreadHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + // Looks up a debugger thread ID for the given handle. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByHandle)( + THIS_ + _In_ ULONG64 Handle, + _Out_ PULONG Id + ) PURE; + + // Currently kernel mode sessions will only have + // a single process representing kernel space. + STDMETHOD(GetNumberProcesses)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetProcessIdsByIndex)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_opt_(Count) PULONG Ids, + _Out_writes_opt_(Count) PULONG SysIds + ) PURE; + // Returns the offset of the current processs + // system data structure. When kernel debugging + // this is the offset of the KPROCESS of + // the process that owns the current thread. + // When user debugging it is the offset + // of the current PEB. + STDMETHOD(GetCurrentProcessDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger process ID for the given + // system process data structure. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdByDataOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current processs + // PEB. In user mode this is equivalent to + // the processs data offset. + STDMETHOD(GetCurrentProcessPeb)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger process ID for the given PEB. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdByPeb)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the system unique ID for the current process. + // Not currently supported when kernel debugging. + STDMETHOD(GetCurrentProcessSystemId)( + THIS_ + _Out_ PULONG SysId + ) PURE; + // Looks up a debugger process ID for the given + // system process ID. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdBySystemId)( + THIS_ + _In_ ULONG SysId, + _Out_ PULONG Id + ) PURE; + // Returns the handle of the current process. + // In kernel mode this is the kernel processs + // artificial handle used for symbol operations + // and so can only be used with dbghelp APIs. + STDMETHOD(GetCurrentProcessHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + // Looks up a debugger process ID for the given handle. + STDMETHOD(GetProcessIdByHandle)( + THIS_ + _In_ ULONG64 Handle, + _Out_ PULONG Id + ) PURE; + // Retrieve the name of the executable loaded + // in the process. This may fail if no executable + // was identified. + STDMETHOD(GetCurrentProcessExecutableName)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ExeSize + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugSystemObjects2 +DECLARE_INTERFACE_(IDebugSystemObjects2, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSystemObjects. + + // In user mode debugging the debugger + // tracks all threads and processes and + // enumerates them through the following + // methods. When enumerating threads + // the threads are enumerated for the current + // process. + // Kernel mode debugging currently is + // limited to enumerating only the threads + // assigned to processors, not all of + // the threads in the system. Process + // enumeration is limited to a single + // virtual process representing kernel space. + + // Returns the ID of the thread on which + // the last event occurred. + STDMETHOD(GetEventThread)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetEventProcess)( + THIS_ + _Out_ PULONG Id + ) PURE; + + // Controls implicit thread used by the + // debug engine. The debuggers current + // thread is just a piece of data held + // by the debugger for calls which use + // thread-specific information. In those + // calls the debuggers current thread is used. + // The debuggers current thread is not related + // to any system thread attribute. + // IDs for threads are small integer IDs + // maintained by the engine. They are not + // related to system thread IDs. + STDMETHOD(GetCurrentThreadId)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(SetCurrentThreadId)( + THIS_ + _In_ ULONG Id + ) PURE; + // The current process is the process + // that owns the current thread. + STDMETHOD(GetCurrentProcessId)( + THIS_ + _Out_ PULONG Id + ) PURE; + // Setting the current process automatically + // sets the current thread to the thread that + // was last current in that process. + STDMETHOD(SetCurrentProcessId)( + THIS_ + _In_ ULONG Id + ) PURE; + + // Gets the number of threads in the current process. + STDMETHOD(GetNumberThreads)( + THIS_ + _Out_ PULONG Number + ) PURE; + // Gets thread count information for all processes + // and the largest number of threads in a single process. + STDMETHOD(GetTotalNumberThreads)( + THIS_ + _Out_ PULONG Total, + _Out_ PULONG LargestProcess + ) PURE; + STDMETHOD(GetThreadIdsByIndex)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_opt_(Count) PULONG Ids, + _Out_writes_opt_(Count) PULONG SysIds + ) PURE; + // Gets the debugger ID for the thread + // currently running on the given + // processor. Only works in kernel + // debugging. + STDMETHOD(GetThreadIdByProcessor)( + THIS_ + _In_ ULONG Processor, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current threads + // system data structure. When kernel debugging + // this is the offset of the KTHREAD. + // When user debugging it is the offset + // of the current TEB. + STDMETHOD(GetCurrentThreadDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger thread ID for the given + // system thread data structure. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByDataOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current threads + // TEB. In user mode this is equivalent to + // the threads data offset. + STDMETHOD(GetCurrentThreadTeb)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger thread ID for the given TEB. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByTeb)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the system unique ID for the current thread. + // Not currently supported when kernel debugging. + STDMETHOD(GetCurrentThreadSystemId)( + THIS_ + _Out_ PULONG SysId + ) PURE; + // Looks up a debugger thread ID for the given + // system thread ID. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdBySystemId)( + THIS_ + _In_ ULONG SysId, + _Out_ PULONG Id + ) PURE; + // Returns the handle of the current thread. + // In kernel mode the value returned is the + // index of the processor the thread is + // executing on plus one. + STDMETHOD(GetCurrentThreadHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + // Looks up a debugger thread ID for the given handle. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByHandle)( + THIS_ + _In_ ULONG64 Handle, + _Out_ PULONG Id + ) PURE; + + // Currently kernel mode sessions will only have + // a single process representing kernel space. + STDMETHOD(GetNumberProcesses)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetProcessIdsByIndex)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_opt_(Count) PULONG Ids, + _Out_writes_opt_(Count) PULONG SysIds + ) PURE; + // Returns the offset of the current processs + // system data structure. When kernel debugging + // this is the offset of the KPROCESS of + // the process that owns the current thread. + // When user debugging it is the offset + // of the current PEB. + STDMETHOD(GetCurrentProcessDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger process ID for the given + // system process data structure. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdByDataOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current processs + // PEB. In user mode this is equivalent to + // the processs data offset. + STDMETHOD(GetCurrentProcessPeb)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger process ID for the given PEB. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdByPeb)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the system unique ID for the current process. + // Not currently supported when kernel debugging. + STDMETHOD(GetCurrentProcessSystemId)( + THIS_ + _Out_ PULONG SysId + ) PURE; + // Looks up a debugger process ID for the given + // system process ID. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdBySystemId)( + THIS_ + _In_ ULONG SysId, + _Out_ PULONG Id + ) PURE; + // Returns the handle of the current process. + // In kernel mode this is the kernel processs + // artificial handle used for symbol operations + // and so can only be used with dbghelp APIs. + STDMETHOD(GetCurrentProcessHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + // Looks up a debugger process ID for the given handle. + STDMETHOD(GetProcessIdByHandle)( + THIS_ + _In_ ULONG64 Handle, + _Out_ PULONG Id + ) PURE; + // Retrieve the name of the executable loaded + // in the process. This may fail if no executable + // was identified. + STDMETHOD(GetCurrentProcessExecutableName)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ExeSize + ) PURE; + + // IDebugSystemObjects2. + + // Return the number of seconds that the current + // process has been running. + STDMETHOD(GetCurrentProcessUpTime)( + THIS_ + _Out_ PULONG UpTime + ) PURE; + + // During kernel sessions the debugger retrieves + // some information from the system thread and process + // running on the current processor. For example, + // the debugger will retrieve virtual memory translation + // information for when the debugger needs to + // carry out its own virtual to physical translations. + // Occasionally it can be interesting to perform + // similar operations but on a process which isnt + // currently running. The follow methods allow a caller + // to override the data offsets used by the debugger + // so that other system threads and processes can + // be used instead. These values are defaulted to + // the thread and process running on the current + // processor each time the debuggee executes or + // the current processor changes. + // The thread and process settings are independent so + // it is possible to refer to a thread in a process + // other than the current process and vice versa. + // Setting an offset of zero will reload the + // default value. + STDMETHOD(GetImplicitThreadDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(SetImplicitThreadDataOffset)( + THIS_ + _In_ ULONG64 Offset + ) PURE; + STDMETHOD(GetImplicitProcessDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(SetImplicitProcessDataOffset)( + THIS_ + _In_ ULONG64 Offset + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugSystemObjects3 +DECLARE_INTERFACE_(IDebugSystemObjects3, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSystemObjects. + + // In user mode debugging the debugger + // tracks all threads and processes and + // enumerates them through the following + // methods. When enumerating threads + // the threads are enumerated for the current + // process. + // Kernel mode debugging currently is + // limited to enumerating only the threads + // assigned to processors, not all of + // the threads in the system. Process + // enumeration is limited to a single + // virtual process representing kernel space. + + // Returns the ID of the thread on which + // the last event occurred. + STDMETHOD(GetEventThread)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetEventProcess)( + THIS_ + _Out_ PULONG Id + ) PURE; + + // Controls implicit thread used by the + // debug engine. The debuggers current + // thread is just a piece of data held + // by the debugger for calls which use + // thread-specific information. In those + // calls the debuggers current thread is used. + // The debuggers current thread is not related + // to any system thread attribute. + // IDs for threads are small integer IDs + // maintained by the engine. They are not + // related to system thread IDs. + STDMETHOD(GetCurrentThreadId)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(SetCurrentThreadId)( + THIS_ + _In_ ULONG Id + ) PURE; + // The current process is the process + // that owns the current thread. + STDMETHOD(GetCurrentProcessId)( + THIS_ + _Out_ PULONG Id + ) PURE; + // Setting the current process automatically + // sets the current thread to the thread that + // was last current in that process. + STDMETHOD(SetCurrentProcessId)( + THIS_ + _In_ ULONG Id + ) PURE; + + // Gets the number of threads in the current process. + STDMETHOD(GetNumberThreads)( + THIS_ + _Out_ PULONG Number + ) PURE; + // Gets thread count information for all processes + // and the largest number of threads in a single process. + STDMETHOD(GetTotalNumberThreads)( + THIS_ + _Out_ PULONG Total, + _Out_ PULONG LargestProcess + ) PURE; + STDMETHOD(GetThreadIdsByIndex)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_opt_(Count) PULONG Ids, + _Out_writes_opt_(Count) PULONG SysIds + ) PURE; + // Gets the debugger ID for the thread + // currently running on the given + // processor. Only works in kernel + // debugging. + STDMETHOD(GetThreadIdByProcessor)( + THIS_ + _In_ ULONG Processor, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current threads + // system data structure. When kernel debugging + // this is the offset of the KTHREAD. + // When user debugging it is the offset + // of the current TEB. + STDMETHOD(GetCurrentThreadDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger thread ID for the given + // system thread data structure. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByDataOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current threads + // TEB. In user mode this is equivalent to + // the threads data offset. + STDMETHOD(GetCurrentThreadTeb)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger thread ID for the given TEB. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByTeb)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the system unique ID for the current thread. + // Not currently supported when kernel debugging. + STDMETHOD(GetCurrentThreadSystemId)( + THIS_ + _Out_ PULONG SysId + ) PURE; + // Looks up a debugger thread ID for the given + // system thread ID. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdBySystemId)( + THIS_ + _In_ ULONG SysId, + _Out_ PULONG Id + ) PURE; + // Returns the handle of the current thread. + // In kernel mode the value returned is the + // index of the processor the thread is + // executing on plus one. + STDMETHOD(GetCurrentThreadHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + // Looks up a debugger thread ID for the given handle. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByHandle)( + THIS_ + _In_ ULONG64 Handle, + _Out_ PULONG Id + ) PURE; + + // Currently kernel mode sessions will only have + // a single process representing kernel space. + STDMETHOD(GetNumberProcesses)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetProcessIdsByIndex)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_opt_(Count) PULONG Ids, + _Out_writes_opt_(Count) PULONG SysIds + ) PURE; + // Returns the offset of the current processs + // system data structure. When kernel debugging + // this is the offset of the KPROCESS of + // the process that owns the current thread. + // When user debugging it is the offset + // of the current PEB. + STDMETHOD(GetCurrentProcessDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger process ID for the given + // system process data structure. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdByDataOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current processs + // PEB. In user mode this is equivalent to + // the processs data offset. + STDMETHOD(GetCurrentProcessPeb)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger process ID for the given PEB. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdByPeb)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the system unique ID for the current process. + // Not currently supported when kernel debugging. + STDMETHOD(GetCurrentProcessSystemId)( + THIS_ + _Out_ PULONG SysId + ) PURE; + // Looks up a debugger process ID for the given + // system process ID. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdBySystemId)( + THIS_ + _In_ ULONG SysId, + _Out_ PULONG Id + ) PURE; + // Returns the handle of the current process. + // In kernel mode this is the kernel processs + // artificial handle used for symbol operations + // and so can only be used with dbghelp APIs. + STDMETHOD(GetCurrentProcessHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + // Looks up a debugger process ID for the given handle. + STDMETHOD(GetProcessIdByHandle)( + THIS_ + _In_ ULONG64 Handle, + _Out_ PULONG Id + ) PURE; + // Retrieve the name of the executable loaded + // in the process. This may fail if no executable + // was identified. + STDMETHOD(GetCurrentProcessExecutableName)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ExeSize + ) PURE; + + // IDebugSystemObjects2. + + // Return the number of seconds that the current + // process has been running. + STDMETHOD(GetCurrentProcessUpTime)( + THIS_ + _Out_ PULONG UpTime + ) PURE; + + // During kernel sessions the debugger retrieves + // some information from the system thread and process + // running on the current processor. For example, + // the debugger will retrieve virtual memory translation + // information for when the debugger needs to + // carry out its own virtual to physical translations. + // Occasionally it can be interesting to perform + // similar operations but on a process which isnt + // currently running. The follow methods allow a caller + // to override the data offsets used by the debugger + // so that other system threads and processes can + // be used instead. These values are defaulted to + // the thread and process running on the current + // processor each time the debuggee executes or + // the current processor changes. + // The thread and process settings are independent so + // it is possible to refer to a thread in a process + // other than the current process and vice versa. + // Setting an offset of zero will reload the + // default value. + STDMETHOD(GetImplicitThreadDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(SetImplicitThreadDataOffset)( + THIS_ + _In_ ULONG64 Offset + ) PURE; + STDMETHOD(GetImplicitProcessDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(SetImplicitProcessDataOffset)( + THIS_ + _In_ ULONG64 Offset + ) PURE; + + // IDebugSystemObjects3. + + STDMETHOD(GetEventSystem)( + THIS_ + _Out_ PULONG Id + ) PURE; + + STDMETHOD(GetCurrentSystemId)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(SetCurrentSystemId)( + THIS_ + _In_ ULONG Id + ) PURE; + + STDMETHOD(GetNumberSystems)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetSystemIdsByIndex)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Ids + ) PURE; + STDMETHOD(GetTotalNumberThreadsAndProcesses)( + THIS_ + _Out_ PULONG TotalThreads, + _Out_ PULONG TotalProcesses, + _Out_ PULONG LargestProcessThreads, + _Out_ PULONG LargestSystemThreads, + _Out_ PULONG LargestSystemProcesses + ) PURE; + STDMETHOD(GetCurrentSystemServer)( + THIS_ + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(GetSystemByServer)( + THIS_ + _In_ ULONG64 Server, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetCurrentSystemServerName)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugSystemObjects4 +DECLARE_INTERFACE_(IDebugSystemObjects4, IUnknown) +{ + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) PURE; + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + // IDebugSystemObjects. + + // In user mode debugging the debugger + // tracks all threads and processes and + // enumerates them through the following + // methods. When enumerating threads + // the threads are enumerated for the current + // process. + // Kernel mode debugging currently is + // limited to enumerating only the threads + // assigned to processors, not all of + // the threads in the system. Process + // enumeration is limited to a single + // virtual process representing kernel space. + + // Returns the ID of the thread on which + // the last event occurred. + STDMETHOD(GetEventThread)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetEventProcess)( + THIS_ + _Out_ PULONG Id + ) PURE; + + // Controls implicit thread used by the + // debug engine. The debuggers current + // thread is just a piece of data held + // by the debugger for calls which use + // thread-specific information. In those + // calls the debuggers current thread is used. + // The debuggers current thread is not related + // to any system thread attribute. + // IDs for threads are small integer IDs + // maintained by the engine. They are not + // related to system thread IDs. + STDMETHOD(GetCurrentThreadId)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(SetCurrentThreadId)( + THIS_ + _In_ ULONG Id + ) PURE; + // The current process is the process + // that owns the current thread. + STDMETHOD(GetCurrentProcessId)( + THIS_ + _Out_ PULONG Id + ) PURE; + // Setting the current process automatically + // sets the current thread to the thread that + // was last current in that process. + STDMETHOD(SetCurrentProcessId)( + THIS_ + _In_ ULONG Id + ) PURE; + + // Gets the number of threads in the current process. + STDMETHOD(GetNumberThreads)( + THIS_ + _Out_ PULONG Number + ) PURE; + // Gets thread count information for all processes + // and the largest number of threads in a single process. + STDMETHOD(GetTotalNumberThreads)( + THIS_ + _Out_ PULONG Total, + _Out_ PULONG LargestProcess + ) PURE; + STDMETHOD(GetThreadIdsByIndex)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_opt_(Count) PULONG Ids, + _Out_writes_opt_(Count) PULONG SysIds + ) PURE; + // Gets the debugger ID for the thread + // currently running on the given + // processor. Only works in kernel + // debugging. + STDMETHOD(GetThreadIdByProcessor)( + THIS_ + _In_ ULONG Processor, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current threads + // system data structure. When kernel debugging + // this is the offset of the KTHREAD. + // When user debugging it is the offset + // of the current TEB. + STDMETHOD(GetCurrentThreadDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger thread ID for the given + // system thread data structure. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByDataOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current threads + // TEB. In user mode this is equivalent to + // the threads data offset. + STDMETHOD(GetCurrentThreadTeb)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger thread ID for the given TEB. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByTeb)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the system unique ID for the current thread. + // Not currently supported when kernel debugging. + STDMETHOD(GetCurrentThreadSystemId)( + THIS_ + _Out_ PULONG SysId + ) PURE; + // Looks up a debugger thread ID for the given + // system thread ID. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdBySystemId)( + THIS_ + _In_ ULONG SysId, + _Out_ PULONG Id + ) PURE; + // Returns the handle of the current thread. + // In kernel mode the value returned is the + // index of the processor the thread is + // executing on plus one. + STDMETHOD(GetCurrentThreadHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + // Looks up a debugger thread ID for the given handle. + // Currently when kernel debugging this will fail + // if the thread is not executing on a processor. + STDMETHOD(GetThreadIdByHandle)( + THIS_ + _In_ ULONG64 Handle, + _Out_ PULONG Id + ) PURE; + + // Currently kernel mode sessions will only have + // a single process representing kernel space. + STDMETHOD(GetNumberProcesses)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetProcessIdsByIndex)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_opt_(Count) PULONG Ids, + _Out_writes_opt_(Count) PULONG SysIds + ) PURE; + // Returns the offset of the current processs + // system data structure. When kernel debugging + // this is the offset of the KPROCESS of + // the process that owns the current thread. + // When user debugging it is the offset + // of the current PEB. + STDMETHOD(GetCurrentProcessDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger process ID for the given + // system process data structure. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdByDataOffset)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the offset of the current processs + // PEB. In user mode this is equivalent to + // the processs data offset. + STDMETHOD(GetCurrentProcessPeb)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + // Looks up a debugger process ID for the given PEB. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdByPeb)( + THIS_ + _In_ ULONG64 Offset, + _Out_ PULONG Id + ) PURE; + // Returns the system unique ID for the current process. + // Not currently supported when kernel debugging. + STDMETHOD(GetCurrentProcessSystemId)( + THIS_ + _Out_ PULONG SysId + ) PURE; + // Looks up a debugger process ID for the given + // system process ID. + // Not currently supported when kernel debugging. + STDMETHOD(GetProcessIdBySystemId)( + THIS_ + _In_ ULONG SysId, + _Out_ PULONG Id + ) PURE; + // Returns the handle of the current process. + // In kernel mode this is the kernel processs + // artificial handle used for symbol operations + // and so can only be used with dbghelp APIs. + STDMETHOD(GetCurrentProcessHandle)( + THIS_ + _Out_ PULONG64 Handle + ) PURE; + // Looks up a debugger process ID for the given handle. + STDMETHOD(GetProcessIdByHandle)( + THIS_ + _In_ ULONG64 Handle, + _Out_ PULONG Id + ) PURE; + // Retrieve the name of the executable loaded + // in the process. This may fail if no executable + // was identified. + STDMETHOD(GetCurrentProcessExecutableName)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ExeSize + ) PURE; + + // IDebugSystemObjects2. + + // Return the number of seconds that the current + // process has been running. + STDMETHOD(GetCurrentProcessUpTime)( + THIS_ + _Out_ PULONG UpTime + ) PURE; + + // During kernel sessions the debugger retrieves + // some information from the system thread and process + // running on the current processor. For example, + // the debugger will retrieve virtual memory translation + // information for when the debugger needs to + // carry out its own virtual to physical translations. + // Occasionally it can be interesting to perform + // similar operations but on a process which isnt + // currently running. The follow methods allow a caller + // to override the data offsets used by the debugger + // so that other system threads and processes can + // be used instead. These values are defaulted to + // the thread and process running on the current + // processor each time the debuggee executes or + // the current processor changes. + // The thread and process settings are independent so + // it is possible to refer to a thread in a process + // other than the current process and vice versa. + // Setting an offset of zero will reload the + // default value. + STDMETHOD(GetImplicitThreadDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(SetImplicitThreadDataOffset)( + THIS_ + _In_ ULONG64 Offset + ) PURE; + STDMETHOD(GetImplicitProcessDataOffset)( + THIS_ + _Out_ PULONG64 Offset + ) PURE; + STDMETHOD(SetImplicitProcessDataOffset)( + THIS_ + _In_ ULONG64 Offset + ) PURE; + + // IDebugSystemObjects3. + + STDMETHOD(GetEventSystem)( + THIS_ + _Out_ PULONG Id + ) PURE; + + STDMETHOD(GetCurrentSystemId)( + THIS_ + _Out_ PULONG Id + ) PURE; + STDMETHOD(SetCurrentSystemId)( + THIS_ + _In_ ULONG Id + ) PURE; + + STDMETHOD(GetNumberSystems)( + THIS_ + _Out_ PULONG Number + ) PURE; + STDMETHOD(GetSystemIdsByIndex)( + THIS_ + _In_ ULONG Start, + _In_ ULONG Count, + _Out_writes_(Count) PULONG Ids + ) PURE; + STDMETHOD(GetTotalNumberThreadsAndProcesses)( + THIS_ + _Out_ PULONG TotalThreads, + _Out_ PULONG TotalProcesses, + _Out_ PULONG LargestProcessThreads, + _Out_ PULONG LargestSystemThreads, + _Out_ PULONG LargestSystemProcesses + ) PURE; + STDMETHOD(GetCurrentSystemServer)( + THIS_ + _Out_ PULONG64 Server + ) PURE; + STDMETHOD(GetSystemByServer)( + THIS_ + _In_ ULONG64 Server, + _Out_ PULONG Id + ) PURE; + STDMETHOD(GetCurrentSystemServerName)( + THIS_ + _Out_writes_opt_(BufferSize) PSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; + + // IDebugSystemObjects4. + + STDMETHOD(GetCurrentProcessExecutableNameWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG ExeSize + ) PURE; + + STDMETHOD(GetCurrentSystemServerNameWide)( + THIS_ + _Out_writes_opt_(BufferSize) PWSTR Buffer, + _In_ ULONG BufferSize, + _Out_opt_ PULONG NameSize + ) PURE; +}; + +//---------------------------------------------------------------------------- +// +// Debugger/debuggee communication. +// +// A distinguished exception, DBG_COMMAND_EXCEPTION (0x40010009), +// can be used by a debuggee to communicate with the debugger. +// The arguments of the exception must be: +// 1. Exception ID. +// 2. Command code. +// 3. Size of argument. +// 4. Pointer to argument. +// +// The arguments depend on the command code. +// +//---------------------------------------------------------------------------- + +#define DEBUG_COMMAND_EXCEPTION_ID 0xdbe00dbe + +// Invalid command code. +#define DEBUG_CMDEX_INVALID 0x00000000 + +// +// The debugger can collect strings for display at the +// next event. A debuggee can use this to register information +// about a program situation before places where an event +// may occur, such as a risky operation or assertion. +// The strings are automatically flushed on the next +// event continuation. Strings are kept on a per-thread basis. +// +// When adding, the argument is the string to add. +// Reset has no arguments and clears all strings. +// +#define DEBUG_CMDEX_ADD_EVENT_STRING 0x00000001 +#define DEBUG_CMDEX_RESET_EVENT_STRINGS 0x00000002 + +#ifndef DEBUG_NO_IMPLEMENTATION + +FORCEINLINE void +DebugCommandException(ULONG Command, ULONG ArgSize, PVOID Arg) +{ + ULONG_PTR ExArgs[4]; + + ExArgs[0] = DEBUG_COMMAND_EXCEPTION_ID; + ExArgs[1] = Command; + ExArgs[2] = ArgSize; + ExArgs[3] = (ULONG_PTR)Arg; + RaiseException(DBG_COMMAND_EXCEPTION, 0, 4, ExArgs); +} + +#endif // #ifndef DEBUG_NO_IMPLEMENTATION + +//---------------------------------------------------------------------------- +// +// Extension callbacks. +// +//---------------------------------------------------------------------------- + +// Returns a version with the major version in +// the high word and the minor version in the low word. +#define DEBUG_EXTENSION_VERSION(Major, Minor) \ + ((((Major) & 0xffff) << 16) | ((Minor) & 0xffff)) + +// +// Descriptive flags returned from extension initialization. +// + +// Extension has a !help command which can give +// per-command help. +#define DEBUG_EXTINIT_HAS_COMMAND_HELP 0x00000001 + +// Initialization routine. Called once when the extension DLL +// is loaded. Returns a version and returns flags detailing +// overall qualities of the extension DLL. +// A session may or may not be active at the time the DLL +// is loaded so initialization routines should not expect +// to be able to query session information. +typedef HRESULT (CALLBACK* PDEBUG_EXTENSION_INITIALIZE) + (_Out_ PULONG Version, _Out_ PULONG Flags); +// Exit routine. Called once just before attempting to unload +// the extension DLL. If DebugExtensionCanUnload is present, +// it will be called between the return of this callback and +// an actual unload of the DLL. If not, the extension DLL +// will be unloaded upon return of this method. As with +// initialization, a session may or may not be active at the +// time of the call. +typedef void (CALLBACK* PDEBUG_EXTENSION_UNINITIALIZE) + (void); +// Routine to check if a debug extension can unload after +// the uninitialization call. If present, this is called +// between the uninitialize callback and actual unload of +// the DLL. The extension should return either S_OK (if no +// objects are present which would prevent unload of the +// extension) or S_FALSE (if there are still outstanding +// references to model objects in the debugger extension) +// +// This is the debugger's equivalent of DllCanUnloadNow +// for extensions which manipulate the debugger's object +// model. +typedef HRESULT (CALLBACK* PDEBUG_EXTENSION_CANUNLOAD) + (void); +// Unload routine. If and only if DebugExtensionCanUnload +// is presnt in the debugger extension, this will be called +// after a successful CanUnload call immediately before the +// debugger actually unloads the extension DLL. +typedef void (CALLBACK* PDEBUG_EXTENSION_UNLOAD) + (void); + +// A debuggee has been discovered for the session. It +// is not necessarily halted. +#define DEBUG_NOTIFY_SESSION_ACTIVE 0x00000000 +// The session no longer has a debuggee. +#define DEBUG_NOTIFY_SESSION_INACTIVE 0x00000001 +// The debuggee is halted and accessible. +#define DEBUG_NOTIFY_SESSION_ACCESSIBLE 0x00000002 +// The debuggee is running or inaccessible. +#define DEBUG_NOTIFY_SESSION_INACCESSIBLE 0x00000003 + +typedef void (CALLBACK* PDEBUG_EXTENSION_NOTIFY) + (_In_ ULONG Notify, _In_ ULONG64 Argument); + +// A PDEBUG_EXTENSION_CALL function can return this code +// to indicate that it was unable to handle the request +// and that the search for an extension function should +// continue down the extension DLL chain. +// Taken from STATUS_VALIDATE_CONTINUE. +#define DEBUG_EXTENSION_CONTINUE_SEARCH \ + HRESULT_FROM_NT(0xC0000271L) + +// A PDEBUG_EXTENSION_CALL function can return this code +// to indicate that the engine should unload and reload +// the extension binary. This allows extensions to implement +// auto-update functionality. +#define DEBUG_EXTENSION_RELOAD_EXTENSION \ + HRESULT_FROM_NT(0xC00000EEL) + +// Every routine in an extension DLL has the following prototype. +// The extension may be called from multiple clients so it +// should not cache the client value between calls. +typedef HRESULT (CALLBACK* PDEBUG_EXTENSION_CALL) + (_In_ PDEBUG_CLIENT Client, _In_opt_ PCSTR Args); + +// +// KnownStructOutput[Ex] flags +// + +// Return names of supported structs. +#define DEBUG_KNOWN_STRUCT_GET_NAMES 1 +// Return value output for type. +#define DEBUG_KNOWN_STRUCT_GET_SINGLE_LINE_OUTPUT 2 +// Return S_OK if suppressing type name. +#define DEBUG_KNOWN_STRUCT_SUPPRESS_TYPE_NAME 3 + +// Extensions may export this callback in order to dump structs that +// are well known to them. The engine calls this to inject extension +// output into dt's struct dump. +typedef HRESULT (CALLBACK* PDEBUG_EXTENSION_KNOWN_STRUCT) + (_In_ ULONG Flags, + _In_ ULONG64 Offset, + _In_opt_ PSTR TypeName, + _Out_writes_opt_(*BufferChars) PSTR Buffer, + _Inout_opt_ PULONG BufferChars); +typedef HRESULT (CALLBACK* PDEBUG_EXTENSION_KNOWN_STRUCT_EX) + (_In_ PDEBUG_CLIENT Client, + _In_ ULONG Flags, + _In_ ULONG64 Offset, + _In_opt_ PCSTR TypeName, + _Out_writes_opt_(*BufferChars) PSTR Buffer, + _Inout_opt_ PULONG BufferChars); + +// Backwards compatibility with old, incorrect name. +typedef PDEBUG_EXTENSION_KNOWN_STRUCT PDEBUG_ENTENSION_KNOWNSTRUCT; + +// +// Extensions can provide pseudo-register values that +// operate similiarly to the debugger's built-in $teb, etc. +// + +#define DEBUG_EXT_QVALUE_DEFAULT 0x00000000 + +typedef HRESULT (CALLBACK* PDEBUG_EXTENSION_QUERY_VALUE_NAMES) + (_In_ PDEBUG_CLIENT Client, + _In_ ULONG Flags, + _Out_writes_(BufferChars) PWSTR Buffer, + _In_ ULONG BufferChars, + _Out_ PULONG BufferNeeded); + +#define DEBUG_EXT_PVALUE_DEFAULT 0x00000000 + +#define DEBUG_EXT_PVTYPE_IS_VALUE 0x00000000 +#define DEBUG_EXT_PVTYPE_IS_POINTER 0x00000001 + +typedef HRESULT (CALLBACK* PDEBUG_EXTENSION_PROVIDE_VALUE) + (_In_ PDEBUG_CLIENT Client, + _In_ ULONG Flags, + _In_ PCWSTR Name, + _Out_ PULONG64 Value, + _Out_ PULONG64 TypeModBase, + _Out_ PULONG TypeId, + _Out_ PULONG TypeFlags); + +//---------------------------------------------------------------------------- +// +// Extension functions. +// +// Extension functions differ from extension callbacks in that +// they are arbitrary functions exported from an extension DLL +// for other code callers instead of for human invocation from +// debugger commands. Extension function pointers are retrieved +// for an extension DLL with IDebugControl::GetExtensionFunction. +// +// Extension function names must begin with _EFN_. Other than that +// they can have any name and prototype. Extension functions +// must be public exports of their extension DLL. They should +// have a typedef for their function pointer prototype in an +// extension header so that callers have a header file to include +// with a type that allows a correctly-formed invocation of the +// extension function. +// +// The engine does not perform any validation of calls to +// extension functions. Once the extension function pointer +// is retrieved with GetExtensionFunction all calls go +// directly between the caller and the extension function and +// are not mediated by the engine. +// +//---------------------------------------------------------------------------- + +#ifdef __cplusplus +}; + +//---------------------------------------------------------------------------- +// +// Dump stack provider callbacks +// +//---------------------------------------------------------------------------- + +// If a specific dump stream type is present, +// dbgeng will pass the stream to dump stack +// provider prior to thread enumeration. +// Implemented by dump stack provider +// BeginThreadStackReconstruction +typedef HRESULT (CALLBACK* PDEBUG_STACK_PROVIDER_BEGINTHREADSTACKRECONSTRUCTION) + ( + _In_ ULONG StreamType, + _In_reads_(BufferSize) PVOID MiniDumpStreamBuffer, + _In_ ULONG BufferSize); + +// Queries dump stream provider per-thread +// Stack frames and symbolic data are returned +// New inline frames may be provided +// stackdmpprovider must be enabled +// ReconstructStack +typedef HRESULT (CALLBACK* PDEBUG_STACK_PROVIDER_RECONSTRUCTSTACK) + ( + _In_ ULONG SystemThreadId, + _In_reads_(CountNativeFrames) PDEBUG_STACK_FRAME_EX NativeFrames, + _In_ ULONG CountNativeFrames, + _Outptr_result_buffer_(*StackSymFramesFilled) PSTACK_SYM_FRAME_INFO *StackSymFrames, + _Out_ PULONG StackSymFramesFilled); + +//After ReconstructStack is called and used dbgeng will call the stack provider to free memory +// FreeStackSymFrames +typedef HRESULT (CALLBACK* PDEBUG_STACK_PROVIDER_FREESTACKSYMFRAMES) + ( + _In_opt_ PSTACK_SYM_FRAME_INFO StackSymFrames); + +// Dbgeng is done with thread stack reconstruction +// Dump stack provider may clean up state +// EndThreadStackReconstruction +typedef HRESULT (CALLBACK* PDEBUG_STACK_PROVIDER_ENDTHREADSTACKRECONSTRUCTION) + (void); + + +//---------------------------------------------------------------------------- +// +// C++ implementation helper classes. +// +//---------------------------------------------------------------------------- + +#if !defined(DEBUG_NO_IMPLEMENTATION) && !defined(_M_CEE_PURE) + +// warning C5204: 'DebugBaseEventCallbacks': class has virtual functions, +// but its trivial destructor is not virtual; instances of objects derived +// from this class may not be destructed correctly. +#pragma warning(push) +#pragma warning(disable:5204) + +// +// DebugBaseEventCallbacks provides a do-nothing base implementation +// of IDebugEventCallbacks. A program can derive their own +// event callbacks class from DebugBaseEventCallbacks and implement +// only the methods they are interested in. Programs must be +// careful to implement GetInterestMask appropriately. +// +class DebugBaseEventCallbacks : public IDebugEventCallbacks +{ +public: + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) + { + *Interface = NULL; + +#if _MSC_VER >= 1100 + if (IsEqualIID(InterfaceId, __uuidof(IUnknown)) || + IsEqualIID(InterfaceId, __uuidof(IDebugEventCallbacks))) +#else + if (IsEqualIID(InterfaceId, IID_IUnknown) || + IsEqualIID(InterfaceId, IID_IDebugEventCallbacks)) +#endif + { + *Interface = (IDebugEventCallbacks *)this; + AddRef(); + return S_OK; + } + else + { + return E_NOINTERFACE; + } + } + + // IDebugEventCallbacks. + + STDMETHOD(Breakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT Bp + ) + { + UNREFERENCED_PARAMETER(Bp); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(Exception)( + THIS_ + _In_ PEXCEPTION_RECORD64 Exception, + _In_ ULONG FirstChance + ) + { + UNREFERENCED_PARAMETER(Exception); + UNREFERENCED_PARAMETER(FirstChance); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(CreateThread)( + THIS_ + _In_ ULONG64 Handle, + _In_ ULONG64 DataOffset, + _In_ ULONG64 StartOffset + ) + { + UNREFERENCED_PARAMETER(Handle); + UNREFERENCED_PARAMETER(DataOffset); + UNREFERENCED_PARAMETER(StartOffset); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(ExitThread)( + THIS_ + _In_ ULONG ExitCode + ) + { + UNREFERENCED_PARAMETER(ExitCode); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 ImageFileHandle, + _In_ ULONG64 Handle, + _In_ ULONG64 BaseOffset, + _In_ ULONG ModuleSize, + _In_ PCSTR ModuleName, + _In_ PCSTR ImageName, + _In_ ULONG CheckSum, + _In_ ULONG TimeDateStamp, + _In_ ULONG64 InitialThreadHandle, + _In_ ULONG64 ThreadDataOffset, + _In_ ULONG64 StartOffset + ) + { + UNREFERENCED_PARAMETER(ImageFileHandle); + UNREFERENCED_PARAMETER(Handle); + UNREFERENCED_PARAMETER(BaseOffset); + UNREFERENCED_PARAMETER(ModuleSize); + UNREFERENCED_PARAMETER(ModuleName); + UNREFERENCED_PARAMETER(ImageName); + UNREFERENCED_PARAMETER(CheckSum); + UNREFERENCED_PARAMETER(TimeDateStamp); + UNREFERENCED_PARAMETER(InitialThreadHandle); + UNREFERENCED_PARAMETER(ThreadDataOffset); + UNREFERENCED_PARAMETER(StartOffset); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(ExitProcess)( + THIS_ + _In_ ULONG ExitCode + ) + { + UNREFERENCED_PARAMETER(ExitCode); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(LoadModule)( + THIS_ + _In_ ULONG64 ImageFileHandle, + _In_ ULONG64 BaseOffset, + _In_ ULONG ModuleSize, + _In_ PCSTR ModuleName, + _In_ PCSTR ImageName, + _In_ ULONG CheckSum, + _In_ ULONG TimeDateStamp + ) + { + UNREFERENCED_PARAMETER(ImageFileHandle); + UNREFERENCED_PARAMETER(BaseOffset); + UNREFERENCED_PARAMETER(ModuleSize); + UNREFERENCED_PARAMETER(ModuleName); + UNREFERENCED_PARAMETER(ImageName); + UNREFERENCED_PARAMETER(CheckSum); + UNREFERENCED_PARAMETER(TimeDateStamp); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(UnloadModule)( + THIS_ + _In_ PCSTR ImageBaseName, + _In_ ULONG64 BaseOffset + ) + { + UNREFERENCED_PARAMETER(ImageBaseName); + UNREFERENCED_PARAMETER(BaseOffset); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(SystemError)( + THIS_ + _In_ ULONG Error, + _In_ ULONG Level + ) + { + UNREFERENCED_PARAMETER(Error); + UNREFERENCED_PARAMETER(Level); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(SessionStatus)( + THIS_ + _In_ ULONG Status + ) + { + UNREFERENCED_PARAMETER(Status); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(ChangeDebuggeeState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) + { + UNREFERENCED_PARAMETER(Flags); + UNREFERENCED_PARAMETER(Argument); + return S_OK; + } + STDMETHOD(ChangeEngineState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) + { + UNREFERENCED_PARAMETER(Flags); + UNREFERENCED_PARAMETER(Argument); + return S_OK; + } + STDMETHOD(ChangeSymbolState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) + { + UNREFERENCED_PARAMETER(Flags); + UNREFERENCED_PARAMETER(Argument); + return S_OK; + } +}; + +#pragma warning(pop) + +// warning C5204: 'DebugBaseEventCallbacksWide': class has virtual functions, +// but its trivial destructor is not virtual; instances of objects derived +// from this class may not be destructed correctly. +#pragma warning(push) +#pragma warning(disable:5204) + +class DebugBaseEventCallbacksWide : public IDebugEventCallbacksWide +{ +public: + // IUnknown. + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID InterfaceId, + _Out_ PVOID* Interface + ) + { + *Interface = NULL; + +#if _MSC_VER >= 1100 + if (IsEqualIID(InterfaceId, __uuidof(IUnknown)) || + IsEqualIID(InterfaceId, __uuidof(IDebugEventCallbacksWide))) +#else + if (IsEqualIID(InterfaceId, IID_IUnknown) || + IsEqualIID(InterfaceId, IID_IDebugEventCallbacksWide)) +#endif + { + *Interface = (IDebugEventCallbacksWide *)this; + AddRef(); + return S_OK; + } + else + { + return E_NOINTERFACE; + } + } + + // IDebugEventCallbacksWide. + + STDMETHOD(Breakpoint)( + THIS_ + _In_ PDEBUG_BREAKPOINT2 Bp + ) + { + UNREFERENCED_PARAMETER(Bp); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(Exception)( + THIS_ + _In_ PEXCEPTION_RECORD64 Exception, + _In_ ULONG FirstChance + ) + { + UNREFERENCED_PARAMETER(Exception); + UNREFERENCED_PARAMETER(FirstChance); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(CreateThread)( + THIS_ + _In_ ULONG64 Handle, + _In_ ULONG64 DataOffset, + _In_ ULONG64 StartOffset + ) + { + UNREFERENCED_PARAMETER(Handle); + UNREFERENCED_PARAMETER(DataOffset); + UNREFERENCED_PARAMETER(StartOffset); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(ExitThread)( + THIS_ + _In_ ULONG ExitCode + ) + { + UNREFERENCED_PARAMETER(ExitCode); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(CreateProcess)( + THIS_ + _In_ ULONG64 ImageFileHandle, + _In_ ULONG64 Handle, + _In_ ULONG64 BaseOffset, + _In_ ULONG ModuleSize, + _In_ PCWSTR ModuleName, + _In_ PCWSTR ImageName, + _In_ ULONG CheckSum, + _In_ ULONG TimeDateStamp, + _In_ ULONG64 InitialThreadHandle, + _In_ ULONG64 ThreadDataOffset, + _In_ ULONG64 StartOffset + ) + { + UNREFERENCED_PARAMETER(ImageFileHandle); + UNREFERENCED_PARAMETER(Handle); + UNREFERENCED_PARAMETER(BaseOffset); + UNREFERENCED_PARAMETER(ModuleSize); + UNREFERENCED_PARAMETER(ModuleName); + UNREFERENCED_PARAMETER(ImageName); + UNREFERENCED_PARAMETER(CheckSum); + UNREFERENCED_PARAMETER(TimeDateStamp); + UNREFERENCED_PARAMETER(InitialThreadHandle); + UNREFERENCED_PARAMETER(ThreadDataOffset); + UNREFERENCED_PARAMETER(StartOffset); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(ExitProcess)( + THIS_ + _In_ ULONG ExitCode + ) + { + UNREFERENCED_PARAMETER(ExitCode); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(LoadModule)( + THIS_ + _In_ ULONG64 ImageFileHandle, + _In_ ULONG64 BaseOffset, + _In_ ULONG ModuleSize, + _In_ PCWSTR ModuleName, + _In_ PCWSTR ImageName, + _In_ ULONG CheckSum, + _In_ ULONG TimeDateStamp + ) + { + UNREFERENCED_PARAMETER(ImageFileHandle); + UNREFERENCED_PARAMETER(BaseOffset); + UNREFERENCED_PARAMETER(ModuleSize); + UNREFERENCED_PARAMETER(ModuleName); + UNREFERENCED_PARAMETER(ImageName); + UNREFERENCED_PARAMETER(CheckSum); + UNREFERENCED_PARAMETER(TimeDateStamp); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(UnloadModule)( + THIS_ + _In_ PCWSTR ImageBaseName, + _In_ ULONG64 BaseOffset + ) + { + UNREFERENCED_PARAMETER(ImageBaseName); + UNREFERENCED_PARAMETER(BaseOffset); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(SystemError)( + THIS_ + _In_ ULONG Error, + _In_ ULONG Level + ) + { + UNREFERENCED_PARAMETER(Error); + UNREFERENCED_PARAMETER(Level); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(SessionStatus)( + THIS_ + _In_ ULONG Status + ) + { + UNREFERENCED_PARAMETER(Status); + return DEBUG_STATUS_NO_CHANGE; + } + STDMETHOD(ChangeDebuggeeState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) + { + UNREFERENCED_PARAMETER(Flags); + UNREFERENCED_PARAMETER(Argument); + return S_OK; + } + STDMETHOD(ChangeEngineState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) + { + UNREFERENCED_PARAMETER(Flags); + UNREFERENCED_PARAMETER(Argument); + return S_OK; + } + STDMETHOD(ChangeSymbolState)( + THIS_ + _In_ ULONG Flags, + _In_ ULONG64 Argument + ) + { + UNREFERENCED_PARAMETER(Flags); + UNREFERENCED_PARAMETER(Argument); + return S_OK; + } +}; + +#pragma warning(pop) + +#endif // #ifndef DEBUG_NO_IMPLEMENTATION + +#ifdef DEBUG_UNICODE_MACROS + +#ifdef UNICODE + +#define IDebugEventCallbacksT IDebugEventCallbacksWide +#define IID_IDebugEventCallbacksT IID_IDebugEventCallbacksWide +#define IDebugOutputCallbacksT IDebugOutputCallbacksWide +#define IID_IDebugOutputCallbacksT IID_IDebugOutputCallbacksWide +#define DebugBaseEventCallbacksT DebugBaseEventCallbacksWide + +#define DebugConnectT DebugConnectWide +#define GetSourceFileInformationT GetSourceFileInformationWide +#define FindSourceFileAndTokenT FindSourceFileAndTokenWide +#define GetSymbolInformationT GetSymbolInformationWide +#define GetSymbolInformationExT GetSymbolInformationWideEx +#define GetCommandT GetCommandWide +#define SetCommandT SetCommandWide +#define GetOffsetExpressionT GetOffsetExpressionWide +#define SetOffsetExpressionT SetOffsetExpressionWide +#define GetRunningProcessSystemIdByExecutableNameT GetRunningProcessSystemIdByExecutableNameWide +#define GetRunningProcessDescriptionT GetRunningProcessDescriptionWide +#define CreateProcessT CreateProcessWide +#define CreateProcessAndAttachT CreateProcessAndAttachWide +#define AddDumpInformationFileT AddDumpInformationFileWide +#define GetDumpFileT GetDumpFileWide +#define AttachKernelT AttachKernelWide +#define GetKernelConnectionOptionsT GetKernelConnectionOptionsWide +#define SetKernelConnectionOptionsT SetKernelConnectionOptionsWide +#define StartProcessServerT StartProcessServerWide +#define ConnectProcessServerT ConnectProcessServerWide +#define StartServerT StartServerWide +#define OutputServersT OutputServersWide +#define GetOutputCallbacksT GetOutputCallbacksWide +#define SetOutputCallbacksT SetOutputCallbacksWide +#define GetOutputLinePrefixT GetOutputLinePrefixWide +#define SetOutputLinePrefixT SetOutputLinePrefixWide +#define GetIdentityT GetIdentityWide +#define OutputIdentityT OutputIdentityWide +#define GetEventCallbacksT GetEventCallbacksWide +#define SetEventCallbacksT SetEventCallbacksWide +#define CreateProcess2T CreateProcess2Wide +#define CreateProcessAndAttach2T CreateProcessAndAttach2Wide +#define PushOutputLinePrefixT PushOutputLinePrefixWide +#define GetQuitLockStringT GetQuitLockStringWide +#define SetQuitLockStringT SetQuitLockStringWide +#define GetLogFileT GetLogFileWide +#define OpenLogFileT OpenLogFileWide +#define InputT InputWide +#define ReturnInputT ReturnInputWide +#define OutputT OutputWide +#define OutputVaListT OutputVaListWide +#define ControlledOutputT ControlledOutputWide +#define ControlledOutputVaListT ControlledOutputVaListWide +#define OutputPromptT OutputPromptWide +#define OutputPromptVaListT OutputPromptVaListWide +#define GetPromptTextT GetPromptTextWide +#define AssembleT AssembleWide +#define DisassembleT DisassembleWide +#define GetProcessorTypeNamesT GetProcessorTypeNamesWide +#define GetTextMacroT GetTextMacroWide +#define SetTextMacroT SetTextMacroWide +#define EvaluateT EvaluateWide +#define ExecuteT ExecuteWide +#define ExecuteCommandFileT ExecuteCommandFileWide +#define AddExtensionT AddExtensionWide +#define GetExtensionByPathT GetExtensionByPathWide +#define CallExtensionT CallExtensionWide +#define GetExtensionFunctionT GetExtensionFunctionWide +#define GetEventFilterTextT GetEventFilterTextWide +#define GetEventFilterCommandT GetEventFilterCommandWide +#define SetEventFilterCommandT SetEventFilterCommandWide +#define GetSpecificFilterArgumentT GetSpecificFilterArgumentWide +#define SetSpecificFilterArgumentT SetSpecificFilterArgumentWide +#define GetExceptionFilterSecondCommandT GetExceptionFilterSecondCommandWide +#define SetExceptionFilterSecondCommandT SetExceptionFilterSecondCommandWide +#define GetLastEventInformationT GetLastEventInformationWide +#define GetTextReplacementT GetTextReplacementWide +#define SetTextReplacementT SetTextReplacementWide +#define SetExpressionSyntaxByNameT SetExpressionSyntaxByNameWide +#define GetExpressionSyntaxNamesT GetExpressionSyntaxNamesWide +#define GetEventIndexDescriptionT GetEventIndexDescriptionWide +#define GetLogFile2T GetLogFile2Wide +#define OpenLogFile2T OpenLogFile2Wide +#define GetSystemVersionStringT GetSystemVersionStringWide +#define ReadMultiByteStringVirtualT ReadMultiByteStringVirtualWide +#define ReadUnicodeStringVirtualT ReadUnicodeStringVirtualWide +#define GetDescriptionT GetDescriptionWide +#define GetIndexByNameT GetIndexByNameWide +#define GetPseudoDescriptionT GetPseudoDescriptionWide +#define GetPseudoIndexByNameT GetPseudoIndexByNameWide +#define AddSymbolT AddSymbolWide +#define RemoveSymbolByNameT RemoveSymbolByNameWide +#define GetSymbolNameT GetSymbolNameWide +#define WriteSymbolT WriteSymbolWide +#define OutputAsTypeT OutputAsTypeWide +#define GetSymbolTypeNameT GetSymbolTypeNameWide +#define GetSymbolValueTextT GetSymbolValueTextWide +#define GetNameByOffsetT GetNameByOffsetWide +#define GetNameByInlineContextT GetNameByInlineContextWide +#define GetOffsetByNameT GetOffsetByNameWide +#define GetNearNameByOffsetT GetNearNameByOffsetWide +#define GetLineByOffsetT GetLineByOffsetWide +#define GetLineByInlineContextT GetLineByInlineContextWide +#define GetOffsetByLineT GetOffsetByLineWide +#define GetModuleByModuleNameT GetModuleByModuleNameWide +#define GetModuleByModuleName2T GetModuleByModuleName2Wide +#define GetSymbolModuleT GetSymbolModuleWide +#define GetTypeNameT GetTypeNameWide +#define GetTypeIdT GetTypeIdWide +#define GetFieldOffsetT GetFieldOffsetWide +#define GetSymbolTypeIdT GetSymbolTypeIdWide +#define StartSymbolMatchT StartSymbolMatchWide +#define GetNextSymbolMatchT GetNextSymbolMatchWide +#define ReloadT ReloadWide +#define GetSymbolPathT GetSymbolPathWide +#define SetSymbolPathT SetSymbolPathWide +#define AppendSymbolPathT AppendSymbolPathWide +#define GetImagePathT GetImagePathWide +#define SetImagePathT SetImagePathWide +#define AppendImagePathT AppendImagePathWide +#define GetSourcePathT GetSourcePathWide +#define GetSourcePathElementT GetSourcePathElementWide +#define SetSourcePathT SetSourcePathWide +#define AppendSourcePathT AppendSourcePathWide +#define FindSourceFileT FindSourceFileWide +#define GetSourceFileLineOffsetsT GetSourceFileLineOffsetsWide +#define GetModuleVersionInformationT GetModuleVersionInformationWide +#define GetModuleNameStringT GetModuleNameStringWide +#define GetConstantNameT GetConstantNameWide +#define GetFieldNameT GetFieldNameWide +#define GetFieldTypeAndOffsetT GetFieldTypeAndOffsetWide +#define GetSymbolEntriesByNameT GetSymbolEntriesByNameWide +#define GetSymbolEntryStringT GetSymbolEntryStringWide +#define GetSourceEntriesByLineT GetSourceEntriesByLineWide +#define GetSourceEntryStringT GetSourceEntryStringWide +#define GetCurrentProcessExecutableNameT GetCurrentProcessExecutableNameWide +#define GetCurrentSystemServerNameT GetCurrentSystemServerNameWide + +#else // #ifdef UNICODE + +#define IDebugEventCallbacksT IDebugEventCallbacks +#define IID_IDebugEventCallbacksT IID_IDebugEventCallbacks +#define IDebugOutputCallbacksT IDebugOutputCallbacks +#define IID_IDebugOutputCallbacksT IID_IDebugOutputCallbacks +#define DebugBaseEventCallbacksT DebugBaseEventCallbacks + +#define DebugConnectT DebugConnect +#define GetSourceFileInformationT GetSourceFileInformation +#define FindSourceFileAndTokenT FindSourceFileAndToken +#define GetSymbolInformationT GetSymbolInformation +#define GetCommandT GetCommand +#define SetCommandT SetCommand +#define GetOffsetExpressionT GetOffsetExpression +#define SetOffsetExpressionT SetOffsetExpression +#define GetRunningProcessSystemIdByExecutableNameT GetRunningProcessSystemIdByExecutableName +#define GetRunningProcessDescriptionT GetRunningProcessDescription +#define CreateProcessT CreateProcess +#define CreateProcessAndAttachT CreateProcessAndAttach +#define AddDumpInformationFileT AddDumpInformationFile +#define GetDumpFileT GetDumpFile +#define AttachKernelT AttachKernel +#define GetKernelConnectionOptionsT GetKernelConnectionOptions +#define SetKernelConnectionOptionsT SetKernelConnectionOptions +#define StartProcessServerT StartProcessServer +#define ConnectProcessServerT ConnectProcessServer +#define StartServerT StartServer +#define OutputServersT OutputServers +#define GetOutputCallbacksT GetOutputCallbacks +#define SetOutputCallbacksT SetOutputCallbacks +#define GetOutputLinePrefixT GetOutputLinePrefix +#define SetOutputLinePrefixT SetOutputLinePrefix +#define GetIdentityT GetIdentity +#define OutputIdentityT OutputIdentity +#define GetEventCallbacksT GetEventCallbacks +#define SetEventCallbacksT SetEventCallbacks +#define CreateProcess2T CreateProcess2 +#define CreateProcessAndAttach2T CreateProcessAndAttach2 +#define PushOutputLinePrefixT PushOutputLinePrefix +#define GetQuitLockStringT GetQuitLockString +#define SetQuitLockStringT SetQuitLockString +#define GetLogFileT GetLogFile +#define OpenLogFileT OpenLogFile +#define InputT Input +#define ReturnInputT ReturnInput +#define OutputT Output +#define OutputVaListT OutputVaList +#define ControlledOutputT ControlledOutput +#define ControlledOutputVaListT ControlledOutputVaList +#define OutputPromptT OutputPrompt +#define OutputPromptVaListT OutputPromptVaList +#define GetPromptTextT GetPromptText +#define AssembleT Assemble +#define DisassembleT Disassemble +#define GetProcessorTypeNamesT GetProcessorTypeNames +#define GetTextMacroT GetTextMacro +#define SetTextMacroT SetTextMacro +#define EvaluateT Evaluate +#define ExecuteT Execute +#define ExecuteCommandFileT ExecuteCommandFile +#define AddExtensionT AddExtension +#define GetExtensionByPathT GetExtensionByPath +#define CallExtensionT CallExtension +#define GetExtensionFunctionT GetExtensionFunction +#define GetEventFilterTextT GetEventFilterText +#define GetEventFilterCommandT GetEventFilterCommand +#define SetEventFilterCommandT SetEventFilterCommand +#define GetSpecificFilterArgumentT GetSpecificFilterArgument +#define SetSpecificFilterArgumentT SetSpecificFilterArgument +#define GetExceptionFilterSecondCommandT GetExceptionFilterSecondCommand +#define SetExceptionFilterSecondCommandT SetExceptionFilterSecondCommand +#define GetLastEventInformationT GetLastEventInformation +#define GetTextReplacementT GetTextReplacement +#define SetTextReplacementT SetTextReplacement +#define SetExpressionSyntaxByNameT SetExpressionSyntaxByName +#define GetExpressionSyntaxNamesT GetExpressionSyntaxNames +#define GetEventIndexDescriptionT GetEventIndexDescription +#define GetLogFile2T GetLogFile2 +#define OpenLogFile2T OpenLogFile2 +#define GetSystemVersionStringT GetSystemVersionString +#define ReadMultiByteStringVirtualT ReadMultiByteStringVirtual +#define ReadUnicodeStringVirtualT ReadUnicodeStringVirtual +#define GetDescriptionT GetDescription +#define GetIndexByNameT GetIndexByName +#define GetPseudoDescriptionT GetPseudoDescription +#define GetPseudoIndexByNameT GetPseudoIndexByName +#define AddSymbolT AddSymbol +#define RemoveSymbolByNameT RemoveSymbolByName +#define GetSymbolNameT GetSymbolName +#define WriteSymbolT WriteSymbol +#define OutputAsTypeT OutputAsType +#define GetSymbolTypeNameT GetSymbolTypeName +#define GetSymbolValueTextT GetSymbolValueText +#define GetNameByOffsetT GetNameByOffset +#define GetNameByInlineContextT GetNameByInlineContext +#define GetOffsetByNameT GetOffsetByName +#define GetNearNameByOffsetT GetNearNameByOffset +#define GetLineByOffsetT GetLineByOffset +#define GetLineByInlineContextT GetLineByInlineContext +#define GetOffsetByLineT GetOffsetByLine +#define GetModuleByModuleNameT GetModuleByModuleName +#define GetModuleByModuleName2T GetModuleByModuleName2 +#define GetSymbolModuleT GetSymbolModule +#define GetTypeNameT GetTypeName +#define GetTypeIdT GetTypeId +#define GetFieldOffsetT GetFieldOffset +#define GetSymbolTypeIdT GetSymbolTypeId +#define StartSymbolMatchT StartSymbolMatch +#define GetNextSymbolMatchT GetNextSymbolMatch +#define ReloadT Reload +#define GetSymbolPathT GetSymbolPath +#define SetSymbolPathT SetSymbolPath +#define AppendSymbolPathT AppendSymbolPath +#define GetImagePathT GetImagePath +#define SetImagePathT SetImagePath +#define AppendImagePathT AppendImagePath +#define GetSourcePathT GetSourcePath +#define GetSourcePathElementT GetSourcePathElement +#define SetSourcePathT SetSourcePath +#define AppendSourcePathT AppendSourcePath +#define FindSourceFileT FindSourceFile +#define GetSourceFileLineOffsetsT GetSourceFileLineOffsets +#define GetModuleVersionInformationT GetModuleVersionInformation +#define GetModuleNameStringT GetModuleNameString +#define GetConstantNameT GetConstantName +#define GetFieldNameT GetFieldName +#define GetFieldTypeAndOffsetT GetFieldTypeAndOffset +#define GetSymbolEntriesByNameT GetSymbolEntriesByName +#define GetSymbolEntryStringT GetSymbolEntryString +#define GetSourceEntriesByLineT GetSourceEntriesByLine +#define GetSourceEntryStringT GetSourceEntryString +#define GetCurrentProcessExecutableNameT GetCurrentProcessExecutableName +#define GetCurrentSystemServerNameT GetCurrentSystemServerName + +#endif // #ifdef UNICODE + +#endif // #ifdef DEBUG_UNICODE_MACROS + +#endif // #ifdef __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_WER) */ +#pragma endregion + +#endif // #ifndef __DBGENG_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgHelp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgHelp.h new file mode 100644 index 0000000000000000000000000000000000000000..09bb15cbc71edab752bc0286e30fc54b3e02df0a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgHelp.h @@ -0,0 +1,4370 @@ +/*++ BUILD Version: 0000 Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + dbghelp.h + +Abstract: + + This module defines the prototypes and constants required for the image + help routines. + + Contains debugging support routines that are redistributable. + +Revision History: + +--*/ + +#ifndef _DBGHELP_ +#define _DBGHELP_ + +#if _MSC_VER > 1020 +#pragma once +#endif + +#include + +#define NONGAMESPARTITIONS WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_WER + +#pragma region Desktop Family or WER Package +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + + +// As a general principal always call the 64 bit version +// of every API, if a choice exists. The 64 bit version +// works great on 32 bit platforms, and is forward +// compatible to 64 bit platforms. + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +#ifdef _WIN64 +#ifndef _IMAGEHLP64 +#define _IMAGEHLP64 +#endif +#endif + +#include + + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef _IMAGEHLP_SOURCE_ + #define IMAGEAPI __stdcall + #define DBHLP_DEPRECIATED +#else + #define IMAGEAPI DECLSPEC_IMPORT __stdcall + #if (_MSC_VER >= 1300) && !defined(MIDL_PASS) + #define DBHLP_DEPRECIATED __declspec(deprecated) + #else + #define DBHLP_DEPRECIATED + #endif +#endif + +#define DBHLPAPI IMAGEAPI + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#define IMAGE_SEPARATION (64*1024) + +// Observant readers may notice that 2 new fields, +// 'fReadOnly' and 'Version' have been added to +// the LOADED_IMAGE structure after 'fDOSImage'. +// This does not change the size of the structure +// from previous headers. That is because while +// 'fDOSImage' is a byte, it is padded by the +// compiler to 4 bytes. So the 2 new fields are +// slipped into the extra space. + +typedef struct _LOADED_IMAGE { + PSTR ModuleName; + HANDLE hFile; + PUCHAR MappedAddress; +#ifdef _IMAGEHLP64 + PIMAGE_NT_HEADERS64 FileHeader; +#else + PIMAGE_NT_HEADERS32 FileHeader; +#endif + PIMAGE_SECTION_HEADER LastRvaSection; + ULONG NumberOfSections; + PIMAGE_SECTION_HEADER Sections; + ULONG Characteristics; + BOOLEAN fSystemImage; + BOOLEAN fDOSImage; + BOOLEAN fReadOnly; + UCHAR Version; + LIST_ENTRY Links; + ULONG SizeOfImage; +} LOADED_IMAGE, *PLOADED_IMAGE; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +#define MAX_SYM_NAME 2000 + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + + +// Error codes set by dbghelp functions. Call GetLastError +// to see them. +// Dbghelp also sets error codes found in winerror.h + +#define ERROR_IMAGE_NOT_STRIPPED 0x8800 // the image is not stripped. No dbg file available. +#define ERROR_NO_DBG_POINTER 0x8801 // image is stripped but there is no pointer to a dbg file +#define ERROR_NO_PDB_POINTER 0x8802 // image does not point to a pdb file + +typedef BOOL +(CALLBACK *PFIND_DEBUG_FILE_CALLBACK)( + _In_ HANDLE FileHandle, + _In_ PCSTR FileName, + _In_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +SymFindDebugInfoFile( + _In_ HANDLE hProcess, + _In_ PCSTR FileName, + _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath, + _In_opt_ PFIND_DEBUG_FILE_CALLBACK Callback, + _In_opt_ PVOID CallerData + ); + +typedef BOOL +(CALLBACK *PFIND_DEBUG_FILE_CALLBACKW)( + _In_ HANDLE FileHandle, + _In_ PCWSTR FileName, + _In_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +SymFindDebugInfoFileW( + _In_ HANDLE hProcess, + _In_ PCWSTR FileName, + _Out_writes_(MAX_PATH + 1) PWSTR DebugFilePath, + _In_opt_ PFIND_DEBUG_FILE_CALLBACKW Callback, + _In_opt_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +FindDebugInfoFile ( + _In_ PCSTR FileName, + _In_ PCSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath + ); + +HANDLE +IMAGEAPI +FindDebugInfoFileEx ( + _In_ PCSTR FileName, + _In_ PCSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath, + _In_opt_ PFIND_DEBUG_FILE_CALLBACK Callback, + _In_opt_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +FindDebugInfoFileExW ( + _In_ PCWSTR FileName, + _In_ PCWSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PWSTR DebugFilePath, + _In_opt_ PFIND_DEBUG_FILE_CALLBACKW Callback, + _In_opt_ PVOID CallerData + ); + +typedef BOOL +(CALLBACK *PFINDFILEINPATHCALLBACK)( + _In_ PCSTR filename, + _In_ PVOID context + ); + +BOOL +IMAGEAPI +SymFindFileInPath( + _In_ HANDLE hprocess, + _In_opt_ PCSTR SearchPath, + _In_ PCSTR FileName, + _In_opt_ PVOID id, + _In_ DWORD two, + _In_ DWORD three, + _In_ DWORD flags, + _Out_writes_(MAX_PATH + 1) PSTR FoundFile, + _In_opt_ PFINDFILEINPATHCALLBACK callback, + _In_opt_ PVOID context + ); + +typedef BOOL +(CALLBACK *PFINDFILEINPATHCALLBACKW)( + _In_ PCWSTR filename, + _In_ PVOID context + ); + +BOOL +IMAGEAPI +SymFindFileInPathW( + _In_ HANDLE hprocess, + _In_opt_ PCWSTR SearchPath, + _In_ PCWSTR FileName, + _In_opt_ PVOID id, + _In_ DWORD two, + _In_ DWORD three, + _In_ DWORD flags, + _Out_writes_(MAX_PATH + 1) PWSTR FoundFile, + _In_opt_ PFINDFILEINPATHCALLBACKW callback, + _In_opt_ PVOID context + ); + +typedef BOOL +(CALLBACK *PFIND_EXE_FILE_CALLBACK)( + _In_ HANDLE FileHandle, + _In_ PCSTR FileName, + _In_opt_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +SymFindExecutableImage( + _In_ HANDLE hProcess, + _In_ PCSTR FileName, + _Out_writes_(MAX_PATH + 1) PSTR ImageFilePath, + _In_ PFIND_EXE_FILE_CALLBACK Callback, + _In_ PVOID CallerData + ); + +typedef BOOL +(CALLBACK *PFIND_EXE_FILE_CALLBACKW)( + _In_ HANDLE FileHandle, + _In_ PCWSTR FileName, + _In_opt_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +SymFindExecutableImageW( + _In_ HANDLE hProcess, + _In_ PCWSTR FileName, + _Out_writes_(MAX_PATH + 1) PWSTR ImageFilePath, + _In_ PFIND_EXE_FILE_CALLBACKW Callback, + _In_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +FindExecutableImage( + _In_ PCSTR FileName, + _In_ PCSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PSTR ImageFilePath + ); + +HANDLE +IMAGEAPI +FindExecutableImageEx( + _In_ PCSTR FileName, + _In_ PCSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PSTR ImageFilePath, + _In_opt_ PFIND_EXE_FILE_CALLBACK Callback, + _In_opt_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +FindExecutableImageExW( + _In_ PCWSTR FileName, + _In_ PCWSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PWSTR ImageFilePath, + _In_opt_ PFIND_EXE_FILE_CALLBACKW Callback, + _In_ PVOID CallerData + ); + +PIMAGE_NT_HEADERS +IMAGEAPI +ImageNtHeader ( + _In_ PVOID Base + ); + +PVOID +IMAGEAPI +ImageDirectoryEntryToDataEx ( + _In_ PVOID Base, + _In_ BOOLEAN MappedAsImage, + _In_ USHORT DirectoryEntry, + _Out_ PULONG Size, + _Out_opt_ PIMAGE_SECTION_HEADER *FoundHeader + ); + +PVOID +IMAGEAPI +ImageDirectoryEntryToData ( + _In_ PVOID Base, + _In_ BOOLEAN MappedAsImage, + _In_ USHORT DirectoryEntry, + _Out_ PULONG Size + ); + +PIMAGE_SECTION_HEADER +IMAGEAPI +ImageRvaToSection( + _In_ PIMAGE_NT_HEADERS NtHeaders, + _In_ PVOID Base, + _In_ ULONG Rva + ); + +PVOID +IMAGEAPI +ImageRvaToVa( + _In_ PIMAGE_NT_HEADERS NtHeaders, + _In_ PVOID Base, + _In_ ULONG Rva, + _In_opt_ OUT PIMAGE_SECTION_HEADER *LastRvaSection + ); + +#ifndef _WIN64 +// This api won't be ported to Win64 - Fix your code. + +typedef struct _IMAGE_DEBUG_INFORMATION { + LIST_ENTRY List; + DWORD ReservedSize; + PVOID ReservedMappedBase; + USHORT ReservedMachine; + USHORT ReservedCharacteristics; + DWORD ReservedCheckSum; + DWORD ImageBase; + DWORD SizeOfImage; + + DWORD ReservedNumberOfSections; + PIMAGE_SECTION_HEADER ReservedSections; + + DWORD ReservedExportedNamesSize; + PSTR ReservedExportedNames; + + DWORD ReservedNumberOfFunctionTableEntries; + PIMAGE_FUNCTION_ENTRY ReservedFunctionTableEntries; + DWORD ReservedLowestFunctionStartingAddress; + DWORD ReservedHighestFunctionEndingAddress; + + DWORD ReservedNumberOfFpoTableEntries; + PFPO_DATA ReservedFpoTableEntries; + + DWORD SizeOfCoffSymbols; + PIMAGE_COFF_SYMBOLS_HEADER CoffSymbols; + + DWORD ReservedSizeOfCodeViewSymbols; + PVOID ReservedCodeViewSymbols; + + PSTR ImageFilePath; + PSTR ImageFileName; + PSTR ReservedDebugFilePath; + + DWORD ReservedTimeDateStamp; + + BOOL ReservedRomImage; + PIMAGE_DEBUG_DIRECTORY ReservedDebugDirectory; + DWORD ReservedNumberOfDebugDirectories; + + DWORD ReservedOriginalFunctionTableBaseAddress; + + DWORD Reserved[ 2 ]; + +} IMAGE_DEBUG_INFORMATION, *PIMAGE_DEBUG_INFORMATION; + + +PIMAGE_DEBUG_INFORMATION +IMAGEAPI +MapDebugInformation( + _In_opt_ HANDLE FileHandle, + _In_ PCSTR FileName, + _In_opt_ PCSTR SymbolPath, + _In_ ULONG ImageBase + ); + +BOOL +IMAGEAPI +UnmapDebugInformation( + _Out_writes_(_Inexpressible_(unknown)) PIMAGE_DEBUG_INFORMATION DebugInfo + ); + +#endif + +BOOL +IMAGEAPI +SearchTreeForFile( + _In_ PCSTR RootPath, + _In_ PCSTR InputPathName, + _Out_writes_(MAX_PATH + 1) PSTR OutputPathBuffer + ); + +BOOL +IMAGEAPI +SearchTreeForFileW( + _In_ PCWSTR RootPath, + _In_ PCWSTR InputPathName, + _Out_writes_(MAX_PATH + 1) PWSTR OutputPathBuffer + ); + +typedef BOOL +(CALLBACK *PENUMDIRTREE_CALLBACK)( + _In_ PCSTR FilePath, + _In_opt_ PVOID CallerData + ); + +BOOL +IMAGEAPI +EnumDirTree( + _In_opt_ HANDLE hProcess, + _In_ PCSTR RootPath, + _In_ PCSTR InputPathName, + _Out_writes_opt_(MAX_PATH + 1) PSTR OutputPathBuffer, + _In_opt_ PENUMDIRTREE_CALLBACK cb, + _In_opt_ PVOID data + ); + +typedef BOOL +(CALLBACK *PENUMDIRTREE_CALLBACKW)( + _In_ PCWSTR FilePath, + _In_opt_ PVOID CallerData + ); + +BOOL +IMAGEAPI +EnumDirTreeW( + _In_opt_ HANDLE hProcess, + _In_ PCWSTR RootPath, + _In_ PCWSTR InputPathName, + _Out_writes_opt_(MAX_PATH + 1) PWSTR OutputPathBuffer, + _In_opt_ PENUMDIRTREE_CALLBACKW cb, + _In_opt_ PVOID data + ); + +BOOL +IMAGEAPI +MakeSureDirectoryPathExists( + _In_ PCSTR DirPath + ); + +// +// UnDecorateSymbolName Flags +// + +#define UNDNAME_COMPLETE (0x0000) // Enable full undecoration +#define UNDNAME_NO_LEADING_UNDERSCORES (0x0001) // Remove leading underscores from MS extended keywords +#define UNDNAME_NO_MS_KEYWORDS (0x0002) // Disable expansion of MS extended keywords +#define UNDNAME_NO_FUNCTION_RETURNS (0x0004) // Disable expansion of return type for primary declaration +#define UNDNAME_NO_ALLOCATION_MODEL (0x0008) // Disable expansion of the declaration model +#define UNDNAME_NO_ALLOCATION_LANGUAGE (0x0010) // Disable expansion of the declaration language specifier +#define UNDNAME_NO_MS_THISTYPE (0x0020) // NYI Disable expansion of MS keywords on the 'this' type for primary declaration +#define UNDNAME_NO_CV_THISTYPE (0x0040) // NYI Disable expansion of CV modifiers on the 'this' type for primary declaration +#define UNDNAME_NO_THISTYPE (0x0060) // Disable all modifiers on the 'this' type +#define UNDNAME_NO_ACCESS_SPECIFIERS (0x0080) // Disable expansion of access specifiers for members +#define UNDNAME_NO_THROW_SIGNATURES (0x0100) // Disable expansion of 'throw-signatures' for functions and pointers to functions +#define UNDNAME_NO_MEMBER_TYPE (0x0200) // Disable expansion of 'static' or 'virtual'ness of members +#define UNDNAME_NO_RETURN_UDT_MODEL (0x0400) // Disable expansion of MS model for UDT returns +#define UNDNAME_32_BIT_DECODE (0x0800) // Undecorate 32-bit decorated names +#define UNDNAME_NAME_ONLY (0x1000) // Crack only the name for primary declaration; + // return just [scope::]name. Does expand template params +#define UNDNAME_NO_ARGUMENTS (0x2000) // Don't undecorate arguments to function +#define UNDNAME_NO_SPECIAL_SYMS (0x4000) // Don't undecorate special names (v-table, vcall, vector xxx, metatype, etc) + +DWORD +IMAGEAPI +WINAPI +UnDecorateSymbolName( + _In_ PCSTR name, + _Out_writes_(maxStringLength) PSTR outputString, + _In_ DWORD maxStringLength, + _In_ DWORD flags + ); + +DWORD +IMAGEAPI +WINAPI +UnDecorateSymbolNameW( + _In_ PCWSTR name, + _Out_writes_(maxStringLength) PWSTR outputString, + _In_ DWORD maxStringLength, + _In_ DWORD flags + ); + +// +// these values are used for synthesized file types +// that can be passed in as image headers instead of +// the standard ones from ntimage.h +// + +#define DBHHEADER_DEBUGDIRS 0x1 +#define DBHHEADER_CVMISC 0x2 +#define DBHHEADER_PDBGUID 0x3 + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +typedef struct _MODLOAD_DATA { + DWORD ssize; // size of this struct + DWORD ssig; // signature identifying the passed data + PVOID data; // pointer to passed data + DWORD size; // size of passed data + DWORD flags; // options +} MODLOAD_DATA, *PMODLOAD_DATA; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +typedef struct _MODLOAD_CVMISC { + DWORD oCV; // ofset to the codeview record + size_t cCV; // size of the codeview record + DWORD oMisc; // offset to the misc record + size_t cMisc; // size of the misc record + DWORD dtImage; // datetime stamp of the image + DWORD cImage; // size of the image +} MODLOAD_CVMISC, *PMODLOAD_CVMISC; + +typedef struct _MODLOAD_PDBGUID_PDBAGE { + GUID PdbGuid; // Pdb Guid + DWORD PdbAge; // Pdb Age +} MODLOAD_PDBGUID_PDBAGE, *PMODLOAD_PDBGUID_PDBAGE; + +// +// StackWalking API +// + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +typedef enum { + AddrMode1616, + AddrMode1632, + AddrModeReal, + AddrModeFlat +} ADDRESS_MODE; + +typedef struct _tagADDRESS64 { + DWORD64 Offset; + WORD Segment; + ADDRESS_MODE Mode; +} ADDRESS64, *LPADDRESS64; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define ADDRESS ADDRESS64 +#define LPADDRESS LPADDRESS64 +#else +typedef struct _tagADDRESS { + DWORD Offset; + WORD Segment; + ADDRESS_MODE Mode; +} ADDRESS, *LPADDRESS; + +__inline +void +Address32To64( + _In_ LPADDRESS a32, + _Out_ LPADDRESS64 a64 + ) +{ + a64->Offset = (ULONG64)(LONG64)(LONG)a32->Offset; + a64->Segment = a32->Segment; + a64->Mode = a32->Mode; +} + +__inline +void +Address64To32( + _In_ LPADDRESS64 a64, + _Out_ LPADDRESS a32 + ) +{ + a32->Offset = (ULONG)a64->Offset; + a32->Segment = a64->Segment; + a32->Mode = a64->Mode; +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +// +// This structure is included in the STACKFRAME structure, +// and is used to trace through usermode callbacks in a thread's +// kernel stack. The values must be copied by the kernel debugger +// from the DBGKD_GET_VERSION and WAIT_STATE_CHANGE packets. +// + +// +// New KDHELP structure for 64 bit system support. +// This structure is preferred in new code. +// +typedef struct _KDHELP64 { + + // + // address of kernel thread object, as provided in the + // WAIT_STATE_CHANGE packet. + // + DWORD64 Thread; + + // + // offset in thread object to pointer to the current callback frame + // in kernel stack. + // + DWORD ThCallbackStack; + + // + // offset in thread object to pointer to the current callback backing + // store frame in kernel stack. + // + DWORD ThCallbackBStore; + + // + // offsets to values in frame: + // + // address of next callback frame + DWORD NextCallback; + + // address of saved frame pointer (if applicable) + DWORD FramePointer; + + + // + // Address of the kernel function that calls out to user mode + // + DWORD64 KiCallUserMode; + + // + // Address of the user mode dispatcher function + // + DWORD64 KeUserCallbackDispatcher; + + // + // Lowest kernel mode address + // + DWORD64 SystemRangeStart; + + // + // Address of the user mode exception dispatcher function. + // Added in API version 10. + // + DWORD64 KiUserExceptionDispatcher; + + // + // Stack bounds, added in API version 11. + // + DWORD64 StackBase; + DWORD64 StackLimit; + + // + // Target OS build number. Added in API version 12. + // + DWORD BuildVersion; + DWORD RetpolineStubFunctionTableSize; + DWORD64 RetpolineStubFunctionTable; + DWORD RetpolineStubOffset; + DWORD RetpolineStubSize; + DWORD64 Reserved0[2]; + +} KDHELP64, *PKDHELP64; + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define KDHELP KDHELP64 +#define PKDHELP PKDHELP64 +#else +typedef struct _KDHELP { + + // + // address of kernel thread object, as provided in the + // WAIT_STATE_CHANGE packet. + // + DWORD Thread; + + // + // offset in thread object to pointer to the current callback frame + // in kernel stack. + // + DWORD ThCallbackStack; + + // + // offsets to values in frame: + // + // address of next callback frame + DWORD NextCallback; + + // address of saved frame pointer (if applicable) + DWORD FramePointer; + + // + // Address of the kernel function that calls out to user mode + // + DWORD KiCallUserMode; + + // + // Address of the user mode dispatcher function + // + DWORD KeUserCallbackDispatcher; + + // + // Lowest kernel mode address + // + DWORD SystemRangeStart; + + // + // offset in thread object to pointer to the current callback backing + // store frame in kernel stack. + // + DWORD ThCallbackBStore; + + // + // Address of the user mode exception dispatcher function. + // Added in API version 10. + // + DWORD KiUserExceptionDispatcher; + + // + // Stack bounds, added in API version 11. + // + DWORD StackBase; + DWORD StackLimit; + + DWORD Reserved[5]; + +} KDHELP, *PKDHELP; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +__inline +void +KdHelp32To64( + _In_ PKDHELP p32, + _Out_ PKDHELP64 p64 + ) +{ + p64->Thread = p32->Thread; + p64->ThCallbackStack = p32->ThCallbackStack; + p64->NextCallback = p32->NextCallback; + p64->FramePointer = p32->FramePointer; + p64->KiCallUserMode = p32->KiCallUserMode; + p64->KeUserCallbackDispatcher = p32->KeUserCallbackDispatcher; + p64->SystemRangeStart = p32->SystemRangeStart; + p64->KiUserExceptionDispatcher = p32->KiUserExceptionDispatcher; + p64->StackBase = p32->StackBase; + p64->StackLimit = p32->StackLimit; +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +typedef struct _tagSTACKFRAME64 { + ADDRESS64 AddrPC; // program counter + ADDRESS64 AddrReturn; // return address + ADDRESS64 AddrFrame; // frame pointer + ADDRESS64 AddrStack; // stack pointer + ADDRESS64 AddrBStore; // backing store pointer + PVOID FuncTableEntry; // pointer to pdata/fpo or NULL + DWORD64 Params[4]; // possible arguments to the function + BOOL Far; // WOW far call + BOOL Virtual; // is this a virtual frame? + DWORD64 Reserved[3]; + KDHELP64 KdHelp; +} STACKFRAME64, *LPSTACKFRAME64; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#define INLINE_FRAME_CONTEXT_INIT 0 +#define INLINE_FRAME_CONTEXT_IGNORE 0xFFFFFFFF + +typedef struct _tagSTACKFRAME_EX { + // First, STACKFRAME64 structure + ADDRESS64 AddrPC; // program counter + ADDRESS64 AddrReturn; // return address + ADDRESS64 AddrFrame; // frame pointer + ADDRESS64 AddrStack; // stack pointer + ADDRESS64 AddrBStore; // backing store pointer + PVOID FuncTableEntry; // pointer to pdata/fpo or NULL + DWORD64 Params[4]; // possible arguments to the function + BOOL Far; // WOW far call + BOOL Virtual; // is this a virtual frame? + DWORD64 Reserved[3]; + KDHELP64 KdHelp; + + // Extended STACKFRAME fields + DWORD StackFrameSize; + DWORD InlineFrameContext; +} STACKFRAME_EX, *LPSTACKFRAME_EX; + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define STACKFRAME STACKFRAME64 +#define LPSTACKFRAME LPSTACKFRAME64 +#else +typedef struct _tagSTACKFRAME { + ADDRESS AddrPC; // program counter + ADDRESS AddrReturn; // return address + ADDRESS AddrFrame; // frame pointer + ADDRESS AddrStack; // stack pointer + PVOID FuncTableEntry; // pointer to pdata/fpo or NULL + DWORD Params[4]; // possible arguments to the function + BOOL Far; // WOW far call + BOOL Virtual; // is this a virtual frame? + DWORD Reserved[3]; + KDHELP KdHelp; + ADDRESS AddrBStore; // backing store pointer +} STACKFRAME, *LPSTACKFRAME; +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +typedef +BOOL +(__stdcall *PREAD_PROCESS_MEMORY_ROUTINE64)( + _In_ HANDLE hProcess, + _In_ DWORD64 qwBaseAddress, + _Out_writes_bytes_(nSize) PVOID lpBuffer, + _In_ DWORD nSize, + _Out_ LPDWORD lpNumberOfBytesRead + ); + +typedef +PVOID +(__stdcall *PFUNCTION_TABLE_ACCESS_ROUTINE64)( + _In_ HANDLE ahProcess, + _In_ DWORD64 AddrBase + ); + +typedef +DWORD64 +(__stdcall *PGET_MODULE_BASE_ROUTINE64)( + _In_ HANDLE hProcess, + _In_ DWORD64 Address + ); + +typedef +DWORD64 +(__stdcall *PTRANSLATE_ADDRESS_ROUTINE64)( + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _In_ LPADDRESS64 lpaddr + ); + +// Target Attributes: +// + +// Asks the caller to return a 64-bit mask which indicates which bits in a code address are PAC +// bits. This attribute is only relevant for ARM64 debug targets. The attribute data must be the address +// for which the PAC mask is being fetched. This allows the caller to deal with differences in PAC masks for +// ARM64 EL0/1/2. If PAC is disabled or the attribute does not apply, FALSE should be returned from the attribute +// getter. If the special value TARGET_ATTRIBUTE_PACMASK_LIVETARGET is returned, the PAC mask for the call +// is assumed to be the same as the PAC mask for the currently running process. +// +#define TARGET_ATTRIBUTE_PACMASK 0x00000001 + +// Target Attribute Special Values: +// +#define TARGET_ATTRIBUTE_PACMASK_LIVETARGET 0xFFFFFFFFFFFFFFFFull + +typedef +BOOL +(__stdcall *PGET_TARGET_ATTRIBUTE_VALUE64)( + _In_ HANDLE hProcess, + _In_ DWORD Attribute, + _In_ DWORD64 AttributeData, + _Out_ DWORD64 *AttributeValue + ); + +BOOL +IMAGEAPI +StackWalk64( + _In_ DWORD MachineType, + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _Inout_ LPSTACKFRAME64 StackFrame, + _Inout_ PVOID ContextRecord, + _In_opt_ PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine, + _In_opt_ PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine, + _In_opt_ PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine, + _In_opt_ PTRANSLATE_ADDRESS_ROUTINE64 TranslateAddress + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#define SYM_STKWALK_DEFAULT 0x00000000 +#define SYM_STKWALK_FORCE_FRAMEPTR 0x00000001 +#define SYM_STKWALK_ZEROEXTEND_PTRS 0x00000002 +BOOL +IMAGEAPI +StackWalkEx( + _In_ DWORD MachineType, + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _Inout_ LPSTACKFRAME_EX StackFrame, + _Inout_ PVOID ContextRecord, + _In_opt_ PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine, + _In_opt_ PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine, + _In_opt_ PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine, + _In_opt_ PTRANSLATE_ADDRESS_ROUTINE64 TranslateAddress, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +StackWalk2( + _In_ DWORD MachineType, + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _Inout_ LPSTACKFRAME_EX StackFrame, + _Inout_ PVOID ContextRecord, + _In_opt_ PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine, + _In_opt_ PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine, + _In_opt_ PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine, + _In_opt_ PTRANSLATE_ADDRESS_ROUTINE64 TranslateAddress, + _In_opt_ PGET_TARGET_ATTRIBUTE_VALUE64 GetTargetAttributeValue, + _In_ DWORD Flags + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) + +#define PREAD_PROCESS_MEMORY_ROUTINE PREAD_PROCESS_MEMORY_ROUTINE64 +#define PFUNCTION_TABLE_ACCESS_ROUTINE PFUNCTION_TABLE_ACCESS_ROUTINE64 +#define PGET_MODULE_BASE_ROUTINE PGET_MODULE_BASE_ROUTINE64 +#define PTRANSLATE_ADDRESS_ROUTINE PTRANSLATE_ADDRESS_ROUTINE64 +#define PGET_TARGET_ATTRIBUTE_VALUE PGET_TARGET_ATTRIBUTE_VALUE64 + +#define StackWalk StackWalk64 + +#else + +typedef +BOOL +(__stdcall *PREAD_PROCESS_MEMORY_ROUTINE)( + _In_ HANDLE hProcess, + _In_ DWORD lpBaseAddress, + _Out_writes_bytes_(nSize) PVOID lpBuffer, + _In_ DWORD nSize, + _Out_ PDWORD lpNumberOfBytesRead + ); + +typedef +PVOID +(__stdcall *PFUNCTION_TABLE_ACCESS_ROUTINE)( + _In_ HANDLE hProcess, + _In_ DWORD AddrBase + ); + +typedef +DWORD +(__stdcall *PGET_MODULE_BASE_ROUTINE)( + _In_ HANDLE hProcess, + _In_ DWORD Address + ); + +typedef +DWORD +(__stdcall *PTRANSLATE_ADDRESS_ROUTINE)( + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _Out_ LPADDRESS lpaddr + ); + +BOOL +IMAGEAPI +StackWalk( + DWORD MachineType, + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _Inout_ LPSTACKFRAME StackFrame, + _Inout_ PVOID ContextRecord, + _In_opt_ PREAD_PROCESS_MEMORY_ROUTINE ReadMemoryRoutine, + _In_opt_ PFUNCTION_TABLE_ACCESS_ROUTINE FunctionTableAccessRoutine, + _In_opt_ PGET_MODULE_BASE_ROUTINE GetModuleBaseRoutine, + _In_opt_ PTRANSLATE_ADDRESS_ROUTINE TranslateAddress + ); + +#endif + + +#define API_VERSION_NUMBER 12 + +typedef struct API_VERSION { + USHORT MajorVersion; + USHORT MinorVersion; + USHORT Revision; + USHORT Reserved; +} API_VERSION, *LPAPI_VERSION; + +LPAPI_VERSION +IMAGEAPI +ImagehlpApiVersion( + VOID + ); + +LPAPI_VERSION +IMAGEAPI +ImagehlpApiVersionEx( + _In_ LPAPI_VERSION AppVersion + ); + +DWORD +IMAGEAPI +GetTimestampForLoadedLibrary( + _In_ HMODULE Module + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) +// +// typedefs for function pointers +// +typedef BOOL +(CALLBACK *PSYM_ENUMMODULES_CALLBACK64)( + _In_ PCSTR ModuleName, + _In_ DWORD64 BaseOfDll, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMMODULES_CALLBACKW64)( + _In_ PCWSTR ModuleName, + _In_ DWORD64 BaseOfDll, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PENUMLOADED_MODULES_CALLBACK64)( + _In_ PCSTR ModuleName, + _In_ DWORD64 ModuleBase, + _In_ ULONG ModuleSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PENUMLOADED_MODULES_CALLBACKW64)( + _In_ PCWSTR ModuleName, + _In_ DWORD64 ModuleBase, + _In_ ULONG ModuleSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK64)( + _In_ PCSTR SymbolName, + _In_ DWORD64 SymbolAddress, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK64W)( + _In_ PCWSTR SymbolName, + _In_ DWORD64 SymbolAddress, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYMBOL_REGISTERED_CALLBACK64)( + _In_ HANDLE hProcess, + _In_ ULONG ActionCode, + _In_opt_ ULONG64 CallbackData, + _In_opt_ ULONG64 UserContext + ); + +typedef +PVOID +(CALLBACK *PSYMBOL_FUNCENTRY_CALLBACK)( + _In_ HANDLE hProcess, + _In_ DWORD AddrBase, + _In_opt_ PVOID UserContext + ); + +typedef +PVOID +(CALLBACK *PSYMBOL_FUNCENTRY_CALLBACK64)( + _In_ HANDLE hProcess, + _In_ ULONG64 AddrBase, + _In_ ULONG64 UserContext + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) + +#define PSYM_ENUMMODULES_CALLBACK PSYM_ENUMMODULES_CALLBACK64 +#define PSYM_ENUMSYMBOLS_CALLBACK PSYM_ENUMSYMBOLS_CALLBACK64 +#define PSYM_ENUMSYMBOLS_CALLBACKW PSYM_ENUMSYMBOLS_CALLBACK64W +#define PENUMLOADED_MODULES_CALLBACK PENUMLOADED_MODULES_CALLBACK64 +#define PSYMBOL_REGISTERED_CALLBACK PSYMBOL_REGISTERED_CALLBACK64 +#define PSYMBOL_FUNCENTRY_CALLBACK PSYMBOL_FUNCENTRY_CALLBACK64 + +#else + +typedef BOOL +(CALLBACK *PSYM_ENUMMODULES_CALLBACK)( + _In_ PCSTR ModuleName, + _In_ ULONG BaseOfDll, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK)( + _In_ PCSTR SymbolName, + _In_ ULONG SymbolAddress, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSYMBOLS_CALLBACKW)( + _In_ PCWSTR SymbolName, + _In_ ULONG SymbolAddress, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PENUMLOADED_MODULES_CALLBACK)( + _In_ PCSTR ModuleName, + _In_ ULONG ModuleBase, + _In_ ULONG ModuleSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYMBOL_REGISTERED_CALLBACK)( + _In_ HANDLE hProcess, + _In_ ULONG ActionCode, + _In_opt_ PVOID CallbackData, + _In_opt_ PVOID UserContext + ); + +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +// values found in SYMBOL_INFO.Tag +// +// This was taken from cvconst.h and should +// not override any values found there. +// +// #define _NO_CVCONST_H_ if you don't +// have access to that file... + +#ifdef _NO_CVCONST_H + +// DIA enums + +enum SymTagEnum +{ + SymTagNull, + SymTagExe, + SymTagCompiland, + SymTagCompilandDetails, + SymTagCompilandEnv, + SymTagFunction, + SymTagBlock, + SymTagData, + SymTagAnnotation, + SymTagLabel, + SymTagPublicSymbol, + SymTagUDT, + SymTagEnum, + SymTagFunctionType, + SymTagPointerType, + SymTagArrayType, + SymTagBaseType, + SymTagTypedef, + SymTagBaseClass, + SymTagFriend, + SymTagFunctionArgType, + SymTagFuncDebugStart, + SymTagFuncDebugEnd, + SymTagUsingNamespace, + SymTagVTableShape, + SymTagVTable, + SymTagCustom, + SymTagThunk, + SymTagCustomType, + SymTagManagedType, + SymTagDimension, + SymTagCallSite, + SymTagInlineSite, + SymTagBaseInterface, + SymTagVectorType, + SymTagMatrixType, + SymTagHLSLType, + SymTagCaller, + SymTagCallee, + SymTagExport, + SymTagHeapAllocationSite, + SymTagCoffGroup, + SymTagMax +}; + +#endif + +// +// flags found in SYMBOL_INFO.Flags +// + +#define SYMFLAG_VALUEPRESENT 0x00000001 +#define SYMFLAG_REGISTER 0x00000008 +#define SYMFLAG_REGREL 0x00000010 +#define SYMFLAG_FRAMEREL 0x00000020 +#define SYMFLAG_PARAMETER 0x00000040 +#define SYMFLAG_LOCAL 0x00000080 +#define SYMFLAG_CONSTANT 0x00000100 +#define SYMFLAG_EXPORT 0x00000200 +#define SYMFLAG_FORWARDER 0x00000400 +#define SYMFLAG_FUNCTION 0x00000800 +#define SYMFLAG_VIRTUAL 0x00001000 +#define SYMFLAG_THUNK 0x00002000 +#define SYMFLAG_TLSREL 0x00004000 +#define SYMFLAG_SLOT 0x00008000 +#define SYMFLAG_ILREL 0x00010000 +#define SYMFLAG_METADATA 0x00020000 +#define SYMFLAG_CLR_TOKEN 0x00040000 +#define SYMFLAG_NULL 0x00080000 +#define SYMFLAG_FUNC_NO_RETURN 0x00100000 +#define SYMFLAG_SYNTHETIC_ZEROBASE 0x00200000 +#define SYMFLAG_PUBLIC_CODE 0x00400000 +#define SYMFLAG_REGREL_ALIASINDIR 0x00800000 +#define SYMFLAG_FIXUP_ARM64X 0x01000000 +#define SYMFLAG_GLOBAL 0x02000000 +#define SYMFLAG_COMPLEX 0x04000000 + +// this resets SymNext/Prev to the beginning +// of the module passed in the address field + +#define SYMFLAG_RESET 0x80000000 + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +// +// symbol type enumeration +// +typedef enum { + SymNone = 0, + SymCoff, + SymCv, + SymPdb, + SymExport, + SymDeferred, + SymSym, // .sym file + SymDia, + SymVirtual, + NumSymTypes +} SYM_TYPE; + +// +// symbol data structure +// + +typedef struct _IMAGEHLP_SYMBOL64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_SYMBOL64) + DWORD64 Address; // virtual address including dll base address + DWORD Size; // estimated size of symbol, can be zero + DWORD Flags; // info about the symbols, see the SYMF defines + DWORD MaxNameLength; // maximum size of symbol name in 'Name' + CHAR Name[1]; // symbol name (null terminated string) +} IMAGEHLP_SYMBOL64, *PIMAGEHLP_SYMBOL64; + +typedef struct _IMAGEHLP_SYMBOL64_PACKAGE { + IMAGEHLP_SYMBOL64 sym; + CHAR name[MAX_SYM_NAME + 1]; +} IMAGEHLP_SYMBOL64_PACKAGE, *PIMAGEHLP_SYMBOL64_PACKAGE; + +typedef struct _IMAGEHLP_SYMBOLW64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_SYMBOLW64) + DWORD64 Address; // virtual address including dll base address + DWORD Size; // estimated size of symbol, can be zero + DWORD Flags; // info about the symbols, see the SYMF defines + DWORD MaxNameLength; // maximum size of symbol name in 'Name' + WCHAR Name[1]; // symbol name (null terminated string) +} IMAGEHLP_SYMBOLW64, *PIMAGEHLP_SYMBOLW64; + +typedef struct _IMAGEHLP_SYMBOLW64_PACKAGE { + IMAGEHLP_SYMBOLW64 sym; + WCHAR name[MAX_SYM_NAME + 1]; +} IMAGEHLP_SYMBOLW64_PACKAGE, *PIMAGEHLP_SYMBOLW64_PACKAGE; + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) + + #define IMAGEHLP_SYMBOL IMAGEHLP_SYMBOL64 + #define PIMAGEHLP_SYMBOL PIMAGEHLP_SYMBOL64 + #define IMAGEHLP_SYMBOL_PACKAGE IMAGEHLP_SYMBOL64_PACKAGE + #define PIMAGEHLP_SYMBOL_PACKAGE PIMAGEHLP_SYMBOL64_PACKAGE + #define IMAGEHLP_SYMBOLW IMAGEHLP_SYMBOLW64 + #define PIMAGEHLP_SYMBOLW PIMAGEHLP_SYMBOLW64 + #define IMAGEHLP_SYMBOLW_PACKAGE IMAGEHLP_SYMBOLW64_PACKAGE + #define PIMAGEHLP_SYMBOLW_PACKAGE PIMAGEHLP_SYMBOLW64_PACKAGE + +#else + + typedef struct _IMAGEHLP_SYMBOL { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_SYMBOL) + DWORD Address; // virtual address including dll base address + DWORD Size; // estimated size of symbol, can be zero + DWORD Flags; // info about the symbols, see the SYMF defines + DWORD MaxNameLength; // maximum size of symbol name in 'Name' + CHAR Name[1]; // symbol name (null terminated string) + } IMAGEHLP_SYMBOL, *PIMAGEHLP_SYMBOL; + + typedef struct _IMAGEHLP_SYMBOL_PACKAGE { + IMAGEHLP_SYMBOL sym; + CHAR name[MAX_SYM_NAME + 1]; + } IMAGEHLP_SYMBOL_PACKAGE, *PIMAGEHLP_SYMBOL_PACKAGE; + + typedef struct _IMAGEHLP_SYMBOLW { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_SYMBOLW) + DWORD Address; // virtual address including dll base address + DWORD Size; // estimated size of symbol, can be zero + DWORD Flags; // info about the symbols, see the SYMF defines + DWORD MaxNameLength; // maximum size of symbol name in 'Name' + WCHAR Name[1]; // symbol name (null terminated string) + } IMAGEHLP_SYMBOLW, *PIMAGEHLP_SYMBOLW; + + typedef struct _IMAGEHLP_SYMBOLW_PACKAGE { + IMAGEHLP_SYMBOLW sym; + WCHAR name[MAX_SYM_NAME + 1]; + } IMAGEHLP_SYMBOLW_PACKAGE, *PIMAGEHLP_SYMBOLW_PACKAGE; + +#endif + +// +// module data structure +// + +// +// ANSI Module Information +// + +typedef struct _IMAGEHLP_MODULE64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_MODULE64) + DWORD64 BaseOfImage; // base load address of module + DWORD ImageSize; // virtual size of the loaded module + DWORD TimeDateStamp; // date/time stamp from pe header + DWORD CheckSum; // checksum from the pe header + DWORD NumSyms; // number of symbols in the symbol table + SYM_TYPE SymType; // type of symbols loaded + CHAR ModuleName[32]; // module name + CHAR ImageName[256]; // image name + CHAR LoadedImageName[256]; // symbol file name + // new elements: 07-Jun-2002 + CHAR LoadedPdbName[256]; // pdb file name + DWORD CVSig; // Signature of the CV record in the debug directories + CHAR CVData[MAX_PATH * 3]; // Contents of the CV record + DWORD PdbSig; // Signature of PDB + GUID PdbSig70; // Signature of PDB (VC 7 and up) + DWORD PdbAge; // DBI age of pdb + BOOL PdbUnmatched; // loaded an unmatched pdb + BOOL DbgUnmatched; // loaded an unmatched dbg + BOOL LineNumbers; // we have line number information + BOOL GlobalSymbols; // we have internal symbol information + BOOL TypeInfo; // we have type information + // new elements: 17-Dec-2003 + BOOL SourceIndexed; // pdb supports source server + BOOL Publics; // contains public symbols + // new element: 15-Jul-2009 + DWORD MachineType; // IMAGE_FILE_MACHINE_XXX from ntimage.h and winnt.h + DWORD Reserved; // Padding - don't remove. +} IMAGEHLP_MODULE64, *PIMAGEHLP_MODULE64; + +// (Extended) ANSI version of IMAGEHLP_MODULE64 that supports Search Hints +typedef struct _IMAGEHLP_MODULE64_EX { + IMAGEHLP_MODULE64 Module; + DWORD RegionFlags; // Region Search Flags - IMAGEHLP_MODULE_REGION_XXX +} IMAGEHLP_MODULE64_EX, *PIMAGEHLP_MODULE64_EX; + +// +// WIDE Module Information +// + +typedef struct _IMAGEHLP_MODULEW64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_MODULE64) + DWORD64 BaseOfImage; // base load address of module + DWORD ImageSize; // virtual size of the loaded module + DWORD TimeDateStamp; // date/time stamp from pe header + DWORD CheckSum; // checksum from the pe header + DWORD NumSyms; // number of symbols in the symbol table + SYM_TYPE SymType; // type of symbols loaded + WCHAR ModuleName[32]; // module name + WCHAR ImageName[256]; // image name + // new elements: 07-Jun-2002 + WCHAR LoadedImageName[256]; // symbol file name + WCHAR LoadedPdbName[256]; // pdb file name + DWORD CVSig; // Signature of the CV record in the debug directories + WCHAR CVData[MAX_PATH * 3]; // Contents of the CV record + DWORD PdbSig; // Signature of PDB + GUID PdbSig70; // Signature of PDB (VC 7 and up) + DWORD PdbAge; // DBI age of pdb + BOOL PdbUnmatched; // loaded an unmatched pdb + BOOL DbgUnmatched; // loaded an unmatched dbg + BOOL LineNumbers; // we have line number information + BOOL GlobalSymbols; // we have internal symbol information + BOOL TypeInfo; // we have type information + // new elements: 17-Dec-2003 + BOOL SourceIndexed; // pdb supports source server + BOOL Publics; // contains public symbols + // new element: 15-Jul-2009 + DWORD MachineType; // IMAGE_FILE_MACHINE_XXX from ntimage.h and winnt.h + DWORD Reserved; // Padding - don't remove. +} IMAGEHLP_MODULEW64, *PIMAGEHLP_MODULEW64; + +// (Extended) WIDE version of IMAGEHLP_MODULEW64 that supports Search Hints +typedef struct _IMAGEHLP_MODULEW64_EX { + IMAGEHLP_MODULEW64 Module; + DWORD RegionFlags; // Region Search Flags - IMAGEHLP_MODULE_REGION_XXX +} IMAGEHLP_MODULEW64_EX, *PIMAGEHLP_MODULEW64_EX; + + +#define IMAGEHLP_MODULE_REGION_DLLBASE 0x01 +#define IMAGEHLP_MODULE_REGION_DLLRANGE 0x02 +#define IMAGEHLP_MODULE_REGION_ADDITIONAL 0x04 +#define IMAGEHLP_MODULE_REGION_JIT 0x08 +#define IMAGEHLP_MODULE_REGION_ALL 0xFF + + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define IMAGEHLP_MODULE IMAGEHLP_MODULE64 +#define PIMAGEHLP_MODULE PIMAGEHLP_MODULE64 +#define IMAGEHLP_MODULEW IMAGEHLP_MODULEW64 +#define PIMAGEHLP_MODULEW PIMAGEHLP_MODULEW64 +#else +typedef struct _IMAGEHLP_MODULE { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_MODULE) + DWORD BaseOfImage; // base load address of module + DWORD ImageSize; // virtual size of the loaded module + DWORD TimeDateStamp; // date/time stamp from pe header + DWORD CheckSum; // checksum from the pe header + DWORD NumSyms; // number of symbols in the symbol table + SYM_TYPE SymType; // type of symbols loaded + CHAR ModuleName[32]; // module name + CHAR ImageName[256]; // image name + CHAR LoadedImageName[256]; // symbol file name +} IMAGEHLP_MODULE, *PIMAGEHLP_MODULE; + +typedef struct _IMAGEHLP_MODULEW { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_MODULE) + DWORD BaseOfImage; // base load address of module + DWORD ImageSize; // virtual size of the loaded module + DWORD TimeDateStamp; // date/time stamp from pe header + DWORD CheckSum; // checksum from the pe header + DWORD NumSyms; // number of symbols in the symbol table + SYM_TYPE SymType; // type of symbols loaded + WCHAR ModuleName[32]; // module name + WCHAR ImageName[256]; // image name + WCHAR LoadedImageName[256]; // symbol file name +} IMAGEHLP_MODULEW, *PIMAGEHLP_MODULEW; +#endif + +// +// source file line data structure +// + +typedef struct _IMAGEHLP_LINE64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_LINE64) + PVOID Key; // internal + DWORD LineNumber; // line number in file + PCHAR FileName; // full filename + DWORD64 Address; // first instruction of line +} IMAGEHLP_LINE64, *PIMAGEHLP_LINE64; + +typedef struct _IMAGEHLP_LINEW64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_LINE64) + PVOID Key; // internal + DWORD LineNumber; // line number in file + PWSTR FileName; // full filename + DWORD64 Address; // first instruction of line +} IMAGEHLP_LINEW64, *PIMAGEHLP_LINEW64; + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define IMAGEHLP_LINE IMAGEHLP_LINE64 +#define PIMAGEHLP_LINE PIMAGEHLP_LINE64 +#else +typedef struct _IMAGEHLP_LINE { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_LINE) + PVOID Key; // internal + DWORD LineNumber; // line number in file + PCHAR FileName; // full filename + DWORD Address; // first instruction of line +} IMAGEHLP_LINE, *PIMAGEHLP_LINE; + +typedef struct _IMAGEHLP_LINEW { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_LINE64) + PVOID Key; // internal + DWORD LineNumber; // line number in file + PCHAR FileName; // full filename + DWORD64 Address; // first instruction of line +} IMAGEHLP_LINEW, *PIMAGEHLP_LINEW; +#endif + +// +// source file structure +// + +typedef struct _SOURCEFILE { + DWORD64 ModBase; // base address of loaded module + PCHAR FileName; // full filename of source +} SOURCEFILE, *PSOURCEFILE; + +typedef struct _SOURCEFILEW { + DWORD64 ModBase; // base address of loaded module + PWSTR FileName; // full filename of source +} SOURCEFILEW, *PSOURCEFILEW; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +// +// data structures used for registered symbol callbacks +// + +#define CBA_DEFERRED_SYMBOL_LOAD_START 0x00000001 +#define CBA_DEFERRED_SYMBOL_LOAD_COMPLETE 0x00000002 +#define CBA_DEFERRED_SYMBOL_LOAD_FAILURE 0x00000003 +#define CBA_SYMBOLS_UNLOADED 0x00000004 +#define CBA_DUPLICATE_SYMBOL 0x00000005 +#define CBA_READ_MEMORY 0x00000006 +#define CBA_DEFERRED_SYMBOL_LOAD_CANCEL 0x00000007 +#define CBA_SET_OPTIONS 0x00000008 +#define CBA_EVENT 0x00000010 +#define CBA_DEFERRED_SYMBOL_LOAD_PARTIAL 0x00000020 +#define CBA_DEBUG_INFO 0x10000000 +#define CBA_SRCSRV_INFO 0x20000000 +#define CBA_SRCSRV_EVENT 0x40000000 +#define CBA_UPDATE_STATUS_BAR 0x50000000 +#define CBA_ENGINE_PRESENT 0x60000000 +#define CBA_CHECK_ENGOPT_DISALLOW_NETWORK_PATHS 0x70000000 +#define CBA_CHECK_ARM_MACHINE_THUMB_TYPE_OVERRIDE 0x80000000 +#define CBA_XML_LOG 0x90000000 +#define CBA_MAP_JIT_SYMBOL 0xA0000000 + + +typedef struct _IMAGEHLP_CBA_READ_MEMORY { + DWORD64 addr; // address to read from + PVOID buf; // buffer to read to + DWORD bytes; // amount of bytes to read + DWORD *bytesread; // pointer to store amount of bytes read +} IMAGEHLP_CBA_READ_MEMORY, *PIMAGEHLP_CBA_READ_MEMORY; + +enum { + sevInfo = 0, + sevProblem, + sevAttn, + sevFatal, + sevMax // unused +}; + +#define EVENT_SRCSPEW_START 100 +#define EVENT_SRCSPEW 100 +#define EVENT_SRCSPEW_END 199 + +typedef struct _IMAGEHLP_CBA_EVENT { + DWORD severity; // values from sevInfo to sevFatal + DWORD code; // numerical code IDs the error + PCHAR desc; // may contain a text description of the error + PVOID object; // value dependant upon the error code +} IMAGEHLP_CBA_EVENT, *PIMAGEHLP_CBA_EVENT; + +typedef struct _IMAGEHLP_CBA_EVENTW { + DWORD severity; // values from sevInfo to sevFatal + DWORD code; // numerical code IDs the error + PCWSTR desc; // may contain a text description of the error + PVOID object; // value dependant upon the error code +} IMAGEHLP_CBA_EVENTW, *PIMAGEHLP_CBA_EVENTW; + +typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOAD64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_DEFERRED_SYMBOL_LOAD64) + DWORD64 BaseOfImage; // base load address of module + DWORD CheckSum; // checksum from the pe header + DWORD TimeDateStamp; // date/time stamp from pe header + CHAR FileName[MAX_PATH]; // symbols file or image name + BOOLEAN Reparse; // load failure reparse + HANDLE hFile; // file handle, if passed + DWORD Flags; // +} IMAGEHLP_DEFERRED_SYMBOL_LOAD64, *PIMAGEHLP_DEFERRED_SYMBOL_LOAD64; + +typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOADW64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_DEFERRED_SYMBOL_LOADW64) + DWORD64 BaseOfImage; // base load address of module + DWORD CheckSum; // checksum from the pe header + DWORD TimeDateStamp; // date/time stamp from pe header + WCHAR FileName[MAX_PATH + 1]; // symbols file or image name + BOOLEAN Reparse; // load failure reparse + HANDLE hFile; // file handle, if passed + DWORD Flags; // +} IMAGEHLP_DEFERRED_SYMBOL_LOADW64, *PIMAGEHLP_DEFERRED_SYMBOL_LOADW64; + +#define DSLFLAG_MISMATCHED_PDB 0x1 +#define DSLFLAG_MISMATCHED_DBG 0x2 +#define FLAG_ENGINE_PRESENT 0x4 +#define FLAG_ENGOPT_DISALLOW_NETWORK_PATHS 0x8 +#define FLAG_OVERRIDE_ARM_MACHINE_TYPE 0x10 + + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define IMAGEHLP_DEFERRED_SYMBOL_LOAD IMAGEHLP_DEFERRED_SYMBOL_LOAD64 +#define PIMAGEHLP_DEFERRED_SYMBOL_LOAD PIMAGEHLP_DEFERRED_SYMBOL_LOAD64 +#else +typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOAD { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_DEFERRED_SYMBOL_LOAD) + DWORD BaseOfImage; // base load address of module + DWORD CheckSum; // checksum from the pe header + DWORD TimeDateStamp; // date/time stamp from pe header + CHAR FileName[MAX_PATH]; // symbols file or image name + BOOLEAN Reparse; // load failure reparse + HANDLE hFile; // file handle, if passed +} IMAGEHLP_DEFERRED_SYMBOL_LOAD, *PIMAGEHLP_DEFERRED_SYMBOL_LOAD; +#endif + +typedef struct _IMAGEHLP_DUPLICATE_SYMBOL64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_DUPLICATE_SYMBOL64) + DWORD NumberOfDups; // number of duplicates in the Symbol array + PIMAGEHLP_SYMBOL64 Symbol; // array of duplicate symbols + DWORD SelectedSymbol; // symbol selected (-1 to start) +} IMAGEHLP_DUPLICATE_SYMBOL64, *PIMAGEHLP_DUPLICATE_SYMBOL64; + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define IMAGEHLP_DUPLICATE_SYMBOL IMAGEHLP_DUPLICATE_SYMBOL64 +#define PIMAGEHLP_DUPLICATE_SYMBOL PIMAGEHLP_DUPLICATE_SYMBOL64 +#else +typedef struct _IMAGEHLP_DUPLICATE_SYMBOL { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_DUPLICATE_SYMBOL) + DWORD NumberOfDups; // number of duplicates in the Symbol array + PIMAGEHLP_SYMBOL Symbol; // array of duplicate symbols + DWORD SelectedSymbol; // symbol selected (-1 to start) +} IMAGEHLP_DUPLICATE_SYMBOL, *PIMAGEHLP_DUPLICATE_SYMBOL; +#endif + +typedef struct _IMAGEHLP_JIT_SYMBOL_MAP { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_JIT_SYMBOL_MAP) + DWORD64 Address; // address to map to JIT association with an image + DWORD64 BaseOfImage; // base load address (0 == unmapped) +} IMAGEHLP_JIT_SYMBOLMAP, *PIMAGEHLP_JIT_SYMBOLMAP; + +// If dbghelp ever needs to display graphical UI, it will use this as the parent window. + +BOOL +IMAGEAPI +SymSetParentWindow( + _In_ HWND hwnd + ); + +BOOL +IMAGEAPI +SymGetParentWindow( + _Out_ HWND * pHwnd + ); + +PCHAR +IMAGEAPI +SymSetHomeDirectory( + _In_opt_ HANDLE hProcess, + _In_opt_ PCSTR dir + ); + +PWSTR +IMAGEAPI +SymSetHomeDirectoryW( + _In_opt_ HANDLE hProcess, + _In_opt_ PCWSTR dir + ); + +PCHAR +IMAGEAPI +SymGetHomeDirectory( + _In_ DWORD type, + _Out_writes_(size) PSTR dir, + _In_ size_t size + ); + +PWSTR +IMAGEAPI +SymGetHomeDirectoryW( + _In_ DWORD type, + _Out_writes_(size) PWSTR dir, + _In_ size_t size + ); + +typedef enum { + hdBase = 0, // root directory for dbghelp + hdSym, // where symbols are stored + hdSrc, // where source is stored + hdMax // end marker +} IMAGEHLP_HD_TYPE; + +typedef struct _OMAP { + ULONG rva; + ULONG rvaTo; +} OMAP, *POMAP; + +BOOL +IMAGEAPI +SymGetOmaps( + _In_ HANDLE hProcess, + _In_ DWORD64 BaseOfDll, + _Out_ POMAP *OmapTo, + _Out_ PDWORD64 cOmapTo, + _Out_ POMAP *OmapFrom, + _Out_ PDWORD64 cOmapFrom + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// options that are set/returned by SymSetOptions() & SymGetOptions() +// these are used as a mask +// + + #define SYMOPT_CASE_INSENSITIVE 0x00000001 + #define SYMOPT_UNDNAME 0x00000002 + #define SYMOPT_DEFERRED_LOADS 0x00000004 + #define SYMOPT_NO_CPP 0x00000008 + #define SYMOPT_LOAD_LINES 0x00000010 + #define SYMOPT_OMAP_FIND_NEAREST 0x00000020 + #define SYMOPT_LOAD_ANYTHING 0x00000040 + #define SYMOPT_IGNORE_CVREC 0x00000080 + #define SYMOPT_NO_UNQUALIFIED_LOADS 0x00000100 + #define SYMOPT_FAIL_CRITICAL_ERRORS 0x00000200 + #define SYMOPT_EXACT_SYMBOLS 0x00000400 + #define SYMOPT_ALLOW_ABSOLUTE_SYMBOLS 0x00000800 + #define SYMOPT_IGNORE_NT_SYMPATH 0x00001000 + #define SYMOPT_INCLUDE_32BIT_MODULES 0x00002000 + #define SYMOPT_PUBLICS_ONLY 0x00004000 + #define SYMOPT_NO_PUBLICS 0x00008000 + #define SYMOPT_AUTO_PUBLICS 0x00010000 + #define SYMOPT_NO_IMAGE_SEARCH 0x00020000 + #define SYMOPT_SECURE 0x00040000 + #define SYMOPT_NO_PROMPTS 0x00080000 + #define SYMOPT_OVERWRITE 0x00100000 + #define SYMOPT_IGNORE_IMAGEDIR 0x00200000 + #define SYMOPT_FLAT_DIRECTORY 0x00400000 + #define SYMOPT_FAVOR_COMPRESSED 0x00800000 + #define SYMOPT_ALLOW_ZERO_ADDRESS 0x01000000 + #define SYMOPT_DISABLE_SYMSRV_AUTODETECT 0x02000000 + #define SYMOPT_READONLY_CACHE 0x04000000 + #define SYMOPT_SYMPATH_LAST 0x08000000 + #define SYMOPT_DISABLE_FAST_SYMBOLS 0x10000000 + #define SYMOPT_DISABLE_SYMSRV_TIMEOUT 0x20000000 + #define SYMOPT_DISABLE_SRVSTAR_ON_STARTUP 0x40000000 + #define SYMOPT_DEBUG 0x80000000 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +typedef enum { + SYMOPT_EX_DISABLEACCESSTIMEUPDATE, // Disable File Last Access Time on Symbols + SYMOPT_EX_LASTVALIDDEBUGDIRECTORY, // For entries with multiple debug directories: prefer the last to the first + SYMOPT_EX_NOIMPLICITPATTERNSEARCH, // For SymEnum* APIs: never implicitly run a pattern search without explicit pattern characters + SYMOPT_EX_NEVERLOADSYMBOLS, // Never try to load and parse symbols + SYMOPT_EX_MAX // Unused +} IMAGEHLP_EXTENDED_OPTIONS; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +DWORD +IMAGEAPI +SymSetOptions( + _In_ DWORD SymOptions + ); + +DWORD +IMAGEAPI +SymGetOptions( + VOID + ); + +BOOL +IMAGEAPI +SymCleanup( + _In_ HANDLE hProcess + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +// Returns the value of the extended option +BOOL +IMAGEAPI +SymGetExtendedOption(_In_ IMAGEHLP_EXTENDED_OPTIONS option); + +// Returns the previous value of the option +BOOL +IMAGEAPI +SymSetExtendedOption(_In_ IMAGEHLP_EXTENDED_OPTIONS option, _In_ BOOL value); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymMatchString( + _In_ PCSTR string, + _In_ PCSTR expression, + _In_ BOOL fCase + ); + +BOOL +IMAGEAPI +SymMatchStringA( + _In_ PCSTR string, + _In_ PCSTR expression, + _In_ BOOL fCase + ); + +BOOL +IMAGEAPI +SymMatchStringW( + _In_ PCWSTR string, + _In_ PCWSTR expression, + _In_ BOOL fCase + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSOURCEFILES_CALLBACK)( + _In_ PSOURCEFILE pSourceFile, + _In_opt_ PVOID UserContext + ); + +// for backwards compatibility - don't use this +#define PSYM_ENUMSOURCFILES_CALLBACK PSYM_ENUMSOURCEFILES_CALLBACK + +BOOL +IMAGEAPI +SymEnumSourceFiles( + _In_ HANDLE hProcess, + _In_ ULONG64 ModBase, + _In_opt_ PCSTR Mask, + _In_ PSYM_ENUMSOURCEFILES_CALLBACK cbSrcFiles, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSOURCEFILES_CALLBACKW)( + _In_ PSOURCEFILEW pSourceFile, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSourceFilesW( + _In_ HANDLE hProcess, + _In_ ULONG64 ModBase, + _In_opt_ PCWSTR Mask, + _In_ PSYM_ENUMSOURCEFILES_CALLBACKW cbSrcFiles, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumerateModules64( + _In_ HANDLE hProcess, + _In_ PSYM_ENUMMODULES_CALLBACK64 EnumModulesCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumerateModulesW64( + _In_ HANDLE hProcess, + _In_ PSYM_ENUMMODULES_CALLBACKW64 EnumModulesCallback, + _In_opt_ PVOID UserContext + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymEnumerateModules SymEnumerateModules64 +#else +BOOL +IMAGEAPI +SymEnumerateModules( + _In_ HANDLE hProcess, + _In_ PSYM_ENUMMODULES_CALLBACK EnumModulesCallback, + _In_opt_ PVOID UserContext + ); +#endif + +BOOL +IMAGEAPI +EnumerateLoadedModulesEx( + _In_ HANDLE hProcess, + _In_ PENUMLOADED_MODULES_CALLBACK64 EnumLoadedModulesCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +EnumerateLoadedModulesExW( + _In_ HANDLE hProcess, + _In_ PENUMLOADED_MODULES_CALLBACKW64 EnumLoadedModulesCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +EnumerateLoadedModules64( + _In_ HANDLE hProcess, + _In_ PENUMLOADED_MODULES_CALLBACK64 EnumLoadedModulesCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +EnumerateLoadedModulesW64( + _In_ HANDLE hProcess, + _In_ PENUMLOADED_MODULES_CALLBACKW64 EnumLoadedModulesCallback, + _In_opt_ PVOID UserContext + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define EnumerateLoadedModules EnumerateLoadedModules64 +#else +BOOL +IMAGEAPI +EnumerateLoadedModules( + _In_ HANDLE hProcess, + _In_ PENUMLOADED_MODULES_CALLBACK EnumLoadedModulesCallback, + _In_opt_ PVOID UserContext + ); +#endif + +PVOID +IMAGEAPI +SymFunctionTableAccess64( + _In_ HANDLE hProcess, + _In_ DWORD64 AddrBase + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +PVOID +IMAGEAPI +SymFunctionTableAccess64AccessRoutines( + _In_ HANDLE hProcess, + _In_ DWORD64 AddrBase, + _In_opt_ PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine, + _In_opt_ PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymFunctionTableAccess SymFunctionTableAccess64 +#else +PVOID +IMAGEAPI +SymFunctionTableAccess( + _In_ HANDLE hProcess, + _In_ DWORD AddrBase + ); +#endif + +BOOL +IMAGEAPI +SymGetUnwindInfo( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _Out_writes_bytes_opt_(*Size) PVOID Buffer, + _Inout_ PULONG Size + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymGetModuleInfo64( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr, + _Out_ PIMAGEHLP_MODULE64 ModuleInfo + ); + +BOOL +IMAGEAPI +SymGetModuleInfoW64( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr, + _Out_ PIMAGEHLP_MODULEW64 ModuleInfo + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetModuleInfo SymGetModuleInfo64 +#define SymGetModuleInfoW SymGetModuleInfoW64 +#else +BOOL +IMAGEAPI +SymGetModuleInfo( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr, + _Out_ PIMAGEHLP_MODULE ModuleInfo + ); + +BOOL +IMAGEAPI +SymGetModuleInfoW( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr, + _Out_ PIMAGEHLP_MODULEW ModuleInfo + ); +#endif + +DWORD64 +IMAGEAPI +SymGetModuleBase64( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetModuleBase SymGetModuleBase64 +#else +DWORD +IMAGEAPI +SymGetModuleBase( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +typedef struct _SRCCODEINFO { + DWORD SizeOfStruct; // set to sizeof(SRCCODEINFO) + PVOID Key; // not used + DWORD64 ModBase; // base address of module this applies to + CHAR Obj[MAX_PATH + 1]; // the object file within the module + CHAR FileName[MAX_PATH + 1]; // full filename + DWORD LineNumber; // line number in file + DWORD64 Address; // first instruction of line +} SRCCODEINFO, *PSRCCODEINFO; + +typedef struct _SRCCODEINFOW { + DWORD SizeOfStruct; // set to sizeof(SRCCODEINFO) + PVOID Key; // not used + DWORD64 ModBase; // base address of module this applies to + WCHAR Obj[MAX_PATH + 1]; // the object file within the module + WCHAR FileName[MAX_PATH + 1]; // full filename + DWORD LineNumber; // line number in file + DWORD64 Address; // first instruction of line +} SRCCODEINFOW, *PSRCCODEINFOW; + +typedef BOOL +(CALLBACK *PSYM_ENUMLINES_CALLBACK)( + _In_ PSRCCODEINFO LineInfo, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumLines( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCSTR Obj, + _In_opt_ PCSTR File, + _In_ PSYM_ENUMLINES_CALLBACK EnumLinesCallback, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMLINES_CALLBACKW)( + _In_ PSRCCODEINFOW LineInfo, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumLinesW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCWSTR Obj, + _In_opt_ PCWSTR File, + _In_ PSYM_ENUMLINES_CALLBACKW EnumLinesCallback, + _In_opt_ PVOID UserContext + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymGetLineFromAddr64( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINE64 Line64 + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +BOOL +IMAGEAPI +SymGetLineFromAddrW64( + _In_ HANDLE hProcess, + _In_ DWORD64 dwAddr, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINEW64 Line + ); + +BOOL +IMAGEAPI +SymGetLineFromInlineContext( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr, + _In_ ULONG InlineContext, + _In_opt_ DWORD64 qwModuleBaseAddress, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINE64 Line64 + ); + +BOOL +IMAGEAPI +SymGetLineFromInlineContextW( + _In_ HANDLE hProcess, + _In_ DWORD64 dwAddr, + _In_ ULONG InlineContext, + _In_opt_ DWORD64 qwModuleBaseAddress, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINEW64 Line + ); + +BOOL +IMAGEAPI +SymEnumSourceLines( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCSTR Obj, + _In_opt_ PCSTR File, + _In_opt_ DWORD Line, + _In_ DWORD Flags, + _In_ PSYM_ENUMLINES_CALLBACK EnumLinesCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSourceLinesW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCWSTR Obj, + _In_opt_ PCWSTR File, + _In_opt_ DWORD Line, + _In_ DWORD Flags, + _In_ PSYM_ENUMLINES_CALLBACKW EnumLinesCallback, + _In_opt_ PVOID UserContext + ); + +// Check whether input Address includes "inline stack". +DWORD +IMAGEAPI +SymAddrIncludeInlineTrace( + _In_ HANDLE hProcess, + _In_ DWORD64 Address + ); + +#define SYM_INLINE_COMP_ERROR 0 +#define SYM_INLINE_COMP_IDENTICAL 1 +#define SYM_INLINE_COMP_STEPIN 2 +#define SYM_INLINE_COMP_STEPOUT 3 +#define SYM_INLINE_COMP_STEPOVER 4 +#define SYM_INLINE_COMP_DIFFERENT 5 + +// Compare the "inline stack" from the 2 input addresses and determine whether the difference is possibly from +// what execution control operation. The return value would be onr of the literals defined above. +DWORD +IMAGEAPI +SymCompareInlineTrace( + _In_ HANDLE hProcess, + _In_ DWORD64 Address1, + _In_ DWORD InlineContext1, + _In_ DWORD64 RetAddress1, + _In_ DWORD64 Address2, + _In_ DWORD64 RetAddress2 + ); + +BOOL +IMAGEAPI +SymQueryInlineTrace( + _In_ HANDLE hProcess, + _In_ DWORD64 StartAddress, + _In_ DWORD StartContext, + _In_ DWORD64 StartRetAddress, + _In_ DWORD64 CurAddress, + _Out_ LPDWORD CurContext, + _Out_ LPDWORD CurFrameIndex + ); + +// flags for SymEnumSourceLines + +#define ESLFLAG_FULLPATH 0x00000001 +#define ESLFLAG_NEAREST 0x00000002 +#define ESLFLAG_PREV 0x00000004 +#define ESLFLAG_NEXT 0x00000008 +#define ESLFLAG_INLINE_SITE 0x00000010 + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetLineFromAddr SymGetLineFromAddr64 +#define SymGetLineFromAddrW SymGetLineFromAddrW64 +#else +BOOL +IMAGEAPI +SymGetLineFromAddr( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINE Line + ); + +BOOL +IMAGEAPI +SymGetLineFromAddrW( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINEW Line + ); +#endif + +BOOL +IMAGEAPI +SymGetLineFromName64( + _In_ HANDLE hProcess, + _In_opt_ PCSTR ModuleName, + _In_opt_ PCSTR FileName, + _In_ DWORD dwLineNumber, + _Out_ PLONG plDisplacement, + _Inout_ PIMAGEHLP_LINE64 Line + ); + +BOOL +IMAGEAPI +SymGetLineFromNameW64( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR ModuleName, + _In_opt_ PCWSTR FileName, + _In_ DWORD dwLineNumber, + _Out_ PLONG plDisplacement, + _Inout_ PIMAGEHLP_LINEW64 Line + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetLineFromName SymGetLineFromName64 +#else +BOOL +IMAGEAPI +SymGetLineFromName( + _In_ HANDLE hProcess, + _In_opt_ PCSTR ModuleName, + _In_opt_ PCSTR FileName, + _In_ DWORD dwLineNumber, + _Out_ PLONG plDisplacement, + _Inout_ PIMAGEHLP_LINE Line + ); +#endif + +BOOL +IMAGEAPI +SymGetLineNext64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINE64 Line + ); + +BOOL +IMAGEAPI +SymGetLineNextW64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINEW64 Line + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetLineNext SymGetLineNext64 +#else +BOOL +IMAGEAPI +SymGetLineNext( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINE Line + ); + +BOOL +IMAGEAPI +SymGetLineNextW( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINEW Line + ); +#endif + +BOOL +IMAGEAPI +SymGetLinePrev64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINE64 Line + ); + +BOOL +IMAGEAPI +SymGetLinePrevW64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINEW64 Line + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetLinePrev SymGetLinePrev64 +#else +BOOL +IMAGEAPI +SymGetLinePrev( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINE Line + ); + +BOOL +IMAGEAPI +SymGetLinePrevW( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINEW Line + ); +#endif + +ULONG +IMAGEAPI +SymGetFileLineOffsets64( + _In_ HANDLE hProcess, + _In_opt_ PCSTR ModuleName, + _In_ PCSTR FileName, + _Out_writes_(BufferLines) PDWORD64 Buffer, + _In_ ULONG BufferLines + ); + +BOOL +IMAGEAPI +SymMatchFileName( + _In_ PCSTR FileName, + _In_ PCSTR Match, + _Outptr_opt_ PSTR *FileNameStop, + _Outptr_opt_ PSTR *MatchStop + ); + +BOOL +IMAGEAPI +SymMatchFileNameW( + _In_ PCWSTR FileName, + _In_ PCWSTR Match, + _Outptr_opt_ PWSTR *FileNameStop, + _Outptr_opt_ PWSTR *MatchStop + ); + +BOOL +IMAGEAPI +SymGetSourceFile( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCSTR Params, + _In_ PCSTR FileSpec, + _Out_writes_(Size) PSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCWSTR Params, + _In_ PCWSTR FileSpec, + _Out_writes_(Size) PWSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileToken( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCSTR FileSpec, + _Outptr_ PVOID *Token, + _Out_ DWORD *Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileTokenByTokenName( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCSTR FileSpec, + _In_ PCSTR TokenName, + _In_opt_ PCSTR TokenParameters, + _Outptr_ PVOID *Token, + _Out_ DWORD *Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileChecksumW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCWSTR FileSpec, + _Out_ DWORD *pCheckSumType, + _Out_writes_(checksumSize) BYTE *pChecksum, + _In_ DWORD checksumSize, + _Out_ DWORD *pActualBytesWritten + ); + +BOOL +IMAGEAPI +SymGetSourceFileChecksum( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCSTR FileSpec, + _Out_ DWORD *pCheckSumType, + _Out_writes_(checksumSize) BYTE *pChecksum, + _In_ DWORD checksumSize, + _Out_ DWORD *pActualBytesWritten + ); + +BOOL +IMAGEAPI +SymGetSourceFileTokenW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCWSTR FileSpec, + _Outptr_ PVOID *Token, + _Out_ DWORD *Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileTokenByTokenNameW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCWSTR FileSpec, + _In_ PCWSTR TokenName, + _In_opt_ PCWSTR TokenParameters, + _Outptr_ PVOID *Token, + _Out_ DWORD *Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileFromToken( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCSTR Params, + _Out_writes_(Size) PSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileFromTokenByTokenName( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCSTR TokenName, + _In_opt_ PCSTR Params, + _Out_writes_(Size) PSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileFromTokenW( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCWSTR Params, + _Out_writes_(Size) PWSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileFromTokenByTokenNameW( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCWSTR TokenName, + _In_opt_ PCWSTR Params, + _Out_writes_(Size) PWSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceVarFromToken( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCSTR Params, + _In_ PCSTR VarName, + _Out_writes_(Size) PSTR Value, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceVarFromTokenW( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCWSTR Params, + _In_ PCWSTR VarName, + _Out_writes_(Size) PWSTR Value, + _In_ DWORD Size + ); + +typedef BOOL (CALLBACK *PENUMSOURCEFILETOKENSCALLBACK)(_In_ PVOID token, _In_ size_t size); + +BOOL +IMAGEAPI +SymEnumSourceFileTokens( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PENUMSOURCEFILETOKENSCALLBACK Callback + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymInitialize( + _In_ HANDLE hProcess, + _In_opt_ PCSTR UserSearchPath, + _In_ BOOL fInvadeProcess + ); + +BOOL +IMAGEAPI +SymInitializeW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR UserSearchPath, + _In_ BOOL fInvadeProcess + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +BOOL +IMAGEAPI +SymGetSearchPath( + _In_ HANDLE hProcess, + _Out_writes_(SearchPathLength) PSTR SearchPath, + _In_ DWORD SearchPathLength + ); + +BOOL +IMAGEAPI +SymGetSearchPathW( + _In_ HANDLE hProcess, + _Out_writes_(SearchPathLength) PWSTR SearchPath, + _In_ DWORD SearchPathLength + ); + +BOOL +IMAGEAPI +SymSetSearchPath( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SearchPath + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymSetSearchPathW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SearchPath + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#define SLMFLAG_VIRTUAL 0x1 +#define SLMFLAG_ALT_INDEX 0x2 +#define SLMFLAG_NO_SYMBOLS 0x4 + +DWORD64 +IMAGEAPI +SymLoadModuleEx( + _In_ HANDLE hProcess, + _In_opt_ HANDLE hFile, + _In_opt_ PCSTR ImageName, + _In_opt_ PCSTR ModuleName, + _In_ DWORD64 BaseOfDll, + _In_ DWORD DllSize, + _In_opt_ PMODLOAD_DATA Data, + _In_opt_ DWORD Flags + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +DWORD64 +IMAGEAPI +SymLoadModuleExW( + _In_ HANDLE hProcess, + _In_opt_ HANDLE hFile, + _In_opt_ PCWSTR ImageName, + _In_opt_ PCWSTR ModuleName, + _In_ DWORD64 BaseOfDll, + _In_ DWORD DllSize, + _In_opt_ PMODLOAD_DATA Data, + _In_opt_ DWORD Flags + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +BOOL +IMAGEAPI +SymUnloadModule64( + _In_ HANDLE hProcess, + _In_ DWORD64 BaseOfDll + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymUnloadModule SymUnloadModule64 +#else +BOOL +IMAGEAPI +SymUnloadModule( + _In_ HANDLE hProcess, + _In_ DWORD BaseOfDll + ); +#endif + +BOOL +IMAGEAPI +SymUnDName64( + _In_ PIMAGEHLP_SYMBOL64 sym, // Symbol to undecorate + _Out_writes_(UnDecNameLength) PSTR UnDecName, // Buffer to store undecorated name in + _In_ DWORD UnDecNameLength // Size of the buffer + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymUnDName SymUnDName64 +#else +BOOL +IMAGEAPI +SymUnDName( + _In_ PIMAGEHLP_SYMBOL sym, // Symbol to undecorate + _Out_writes_(UnDecNameLength) PSTR UnDecName, // Buffer to store undecorated name in + _In_ DWORD UnDecNameLength // Size of the buffer + ); +#endif + +BOOL +IMAGEAPI +SymRegisterCallback64( + _In_ HANDLE hProcess, + _In_ PSYMBOL_REGISTERED_CALLBACK64 CallbackFunction, + _In_ ULONG64 UserContext + ); + +BOOL +IMAGEAPI +SymRegisterCallbackW64( + _In_ HANDLE hProcess, + _In_ PSYMBOL_REGISTERED_CALLBACK64 CallbackFunction, + _In_ ULONG64 UserContext + ); + +BOOL +IMAGEAPI +SymRegisterFunctionEntryCallback64( + _In_ HANDLE hProcess, + _In_ PSYMBOL_FUNCENTRY_CALLBACK64 CallbackFunction, + _In_ ULONG64 UserContext + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymRegisterCallback SymRegisterCallback64 +#define SymRegisterFunctionEntryCallback SymRegisterFunctionEntryCallback64 +#else +BOOL +IMAGEAPI +SymRegisterCallback( + _In_ HANDLE hProcess, + _In_ PSYMBOL_REGISTERED_CALLBACK CallbackFunction, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymRegisterFunctionEntryCallback( + _In_ HANDLE hProcess, + _In_ PSYMBOL_FUNCENTRY_CALLBACK CallbackFunction, + _In_opt_ PVOID UserContext + ); +#endif + + +typedef struct _IMAGEHLP_SYMBOL_SRC { + DWORD sizeofstruct; + DWORD type; + char file[MAX_PATH]; +} IMAGEHLP_SYMBOL_SRC, *PIMAGEHLP_SYMBOL_SRC; + +typedef struct _MODULE_TYPE_INFO { // AKA TYPTYP + USHORT dataLength; + USHORT leaf; + BYTE data[1]; +} MODULE_TYPE_INFO, *PMODULE_TYPE_INFO; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +typedef struct _SYMBOL_INFO { + ULONG SizeOfStruct; + ULONG TypeIndex; // Type Index of symbol + ULONG64 Reserved[2]; + ULONG Index; + ULONG Size; + ULONG64 ModBase; // Base Address of module comtaining this symbol + ULONG Flags; + ULONG64 Value; // Value of symbol, ValuePresent should be 1 + ULONG64 Address; // Address of symbol including base address of module + ULONG Register; // register holding value or pointer to value + ULONG Scope; // scope of the symbol + ULONG Tag; // pdb classification + ULONG NameLen; // Actual length of name + ULONG MaxNameLen; + CHAR Name[1]; // Name of symbol +} SYMBOL_INFO, *PSYMBOL_INFO; + +typedef struct _SYMBOL_INFO_PACKAGE { + SYMBOL_INFO si; + CHAR name[MAX_SYM_NAME + 1]; +} SYMBOL_INFO_PACKAGE, *PSYMBOL_INFO_PACKAGE; + +typedef struct _SYMBOL_INFOW { + ULONG SizeOfStruct; + ULONG TypeIndex; // Type Index of symbol + ULONG64 Reserved[2]; + ULONG Index; + ULONG Size; + ULONG64 ModBase; // Base Address of module comtaining this symbol + ULONG Flags; + ULONG64 Value; // Value of symbol, ValuePresent should be 1 + ULONG64 Address; // Address of symbol including base address of module + ULONG Register; // register holding value or pointer to value + ULONG Scope; // scope of the symbol + ULONG Tag; // pdb classification + ULONG NameLen; // Actual length of name + ULONG MaxNameLen; + WCHAR Name[1]; // Name of symbol +} SYMBOL_INFOW, *PSYMBOL_INFOW; + +typedef struct _SYMBOL_INFO_PACKAGEW { + SYMBOL_INFOW si; + WCHAR name[MAX_SYM_NAME + 1]; +} SYMBOL_INFO_PACKAGEW, *PSYMBOL_INFO_PACKAGEW; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +typedef struct _IMAGEHLP_STACK_FRAME +{ + ULONG64 InstructionOffset; + ULONG64 ReturnOffset; + ULONG64 FrameOffset; + ULONG64 StackOffset; + ULONG64 BackingStoreOffset; + ULONG64 FuncTableEntry; + ULONG64 Params[4]; + ULONG64 Reserved[5]; + BOOL Virtual; + ULONG Reserved2; +} IMAGEHLP_STACK_FRAME, *PIMAGEHLP_STACK_FRAME; + +typedef VOID IMAGEHLP_CONTEXT, *PIMAGEHLP_CONTEXT; + + +BOOL +IMAGEAPI +SymSetContext( + _In_ HANDLE hProcess, + _In_ PIMAGEHLP_STACK_FRAME StackFrame, + _In_opt_ PIMAGEHLP_CONTEXT Context + ); + +BOOL +IMAGEAPI +SymSetScopeFromAddr( + _In_ HANDLE hProcess, + _In_ ULONG64 Address + ); + +BOOL +IMAGEAPI +SymSetScopeFromInlineContext( + _In_ HANDLE hProcess, + _In_ ULONG64 Address, + _In_ ULONG InlineContext + ); + +BOOL +IMAGEAPI +SymSetScopeFromIndex( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ DWORD Index + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMPROCESSES_CALLBACK)( + _In_ HANDLE hProcess, + _In_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumProcesses( + _In_ PSYM_ENUMPROCESSES_CALLBACK EnumProcessesCallback, + _In_ PVOID UserContext + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymFromAddr( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _Out_opt_ PDWORD64 Displacement, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymFromAddrW( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _Out_opt_ PDWORD64 Displacement, + _Inout_ PSYMBOL_INFOW Symbol + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +BOOL +IMAGEAPI +SymFromInlineContext( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _In_ ULONG InlineContext, + _Out_opt_ PDWORD64 Displacement, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymFromInlineContextW( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _In_ ULONG InlineContext, + _Out_opt_ PDWORD64 Displacement, + _Inout_ PSYMBOL_INFOW Symbol + ); + +BOOL +IMAGEAPI +SymFromToken( + _In_ HANDLE hProcess, + _In_ DWORD64 Base, + _In_ DWORD Token, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymFromTokenW( + _In_ HANDLE hProcess, + _In_ DWORD64 Base, + _In_ DWORD Token, + _Inout_ PSYMBOL_INFOW Symbol + ); + +BOOL +IMAGEAPI +SymNext( + _In_ HANDLE hProcess, + _Inout_ PSYMBOL_INFO si + ); + +BOOL +IMAGEAPI +SymNextW( + _In_ HANDLE hProcess, + _Inout_ PSYMBOL_INFOW siw + ); + +BOOL +IMAGEAPI +SymPrev( + _In_ HANDLE hProcess, + _Inout_ PSYMBOL_INFO si + ); + +BOOL +IMAGEAPI +SymPrevW( + _In_ HANDLE hProcess, + _Inout_ PSYMBOL_INFOW siw + ); + +// While SymFromName will provide a symbol from a name, +// SymEnumSymbols can provide the same matching information +// for ALL symbols with a matching name, even regular +// expressions. That way you can search across modules +// and differentiate between identically named symbols. + +BOOL +IMAGEAPI +SymFromName( + _In_ HANDLE hProcess, + _In_ PCSTR Name, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymFromNameW( + _In_ HANDLE hProcess, + _In_ PCWSTR Name, + _Inout_ PSYMBOL_INFOW Symbol + ); + +#define SYMENUM_OPTIONS_DEFAULT 0x00000001 +#define SYMENUM_OPTIONS_INLINE 0x00000002 + +typedef BOOL +(CALLBACK *PSYM_ENUMERATESYMBOLS_CALLBACK)( + _In_ PSYMBOL_INFO pSymInfo, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSymbols( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCSTR Mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSymbolsEx( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCSTR Mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext, + _In_ DWORD Options + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMERATESYMBOLS_CALLBACKW)( + _In_ PSYMBOL_INFOW pSymInfo, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSymbolsW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCWSTR Mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSymbolsExW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCWSTR Mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext, + _In_ DWORD Options + ); + +BOOL +IMAGEAPI +SymEnumSymbolsForAddr( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSymbolsForAddrW( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +#define SYMSEARCH_MASKOBJS 0x01 // used internally to implement other APIs +#define SYMSEARCH_RECURSE 0X02 // recurse scopes +#define SYMSEARCH_GLOBALSONLY 0X04 // search only for global symbols +#define SYMSEARCH_ALLITEMS 0X08 // search for everything in the pdb, not just normal scoped symbols + +BOOL +IMAGEAPI +SymSearch( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ DWORD Index, + _In_opt_ DWORD SymTag, + _In_opt_ PCSTR Mask, + _In_opt_ DWORD64 Address, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext, + _In_ DWORD Options + ); + +BOOL +IMAGEAPI +SymSearchW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ DWORD Index, + _In_opt_ DWORD SymTag, + _In_opt_ PCWSTR Mask, + _In_opt_ DWORD64 Address, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext, + _In_ DWORD Options + ); + +BOOL +IMAGEAPI +SymGetScope( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ DWORD Index, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymGetScopeW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ DWORD Index, + _Inout_ PSYMBOL_INFOW Symbol + ); + +BOOL +IMAGEAPI +SymFromIndex( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ DWORD Index, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymFromIndexW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ DWORD Index, + _Inout_ PSYMBOL_INFOW Symbol + ); + +typedef enum _IMAGEHLP_SYMBOL_TYPE_INFO { + TI_GET_SYMTAG, + TI_GET_SYMNAME, + TI_GET_LENGTH, + TI_GET_TYPE, + TI_GET_TYPEID, + TI_GET_BASETYPE, + TI_GET_ARRAYINDEXTYPEID, + TI_FINDCHILDREN, + TI_GET_DATAKIND, + TI_GET_ADDRESSOFFSET, + TI_GET_OFFSET, + TI_GET_VALUE, + TI_GET_COUNT, + TI_GET_CHILDRENCOUNT, + TI_GET_BITPOSITION, + TI_GET_VIRTUALBASECLASS, + TI_GET_VIRTUALTABLESHAPEID, + TI_GET_VIRTUALBASEPOINTEROFFSET, + TI_GET_CLASSPARENTID, + TI_GET_NESTED, + TI_GET_SYMINDEX, + TI_GET_LEXICALPARENT, + TI_GET_ADDRESS, + TI_GET_THISADJUST, + TI_GET_UDTKIND, + TI_IS_EQUIV_TO, + TI_GET_CALLING_CONVENTION, + TI_IS_CLOSE_EQUIV_TO, + TI_GTIEX_REQS_VALID, + TI_GET_VIRTUALBASEOFFSET, + TI_GET_VIRTUALBASEDISPINDEX, + TI_GET_IS_REFERENCE, + TI_GET_INDIRECTVIRTUALBASECLASS, + TI_GET_VIRTUALBASETABLETYPE, + TI_GET_OBJECTPOINTERTYPE, + TI_GET_DISCRIMINATEDUNION_TAG_TYPEID, + TI_GET_DISCRIMINATEDUNION_TAG_OFFSET, + TI_GET_DISCRIMINATEDUNION_TAG_RANGESCOUNT, + TI_GET_DISCRIMINATEDUNION_TAG_RANGES, + IMAGEHLP_SYMBOL_TYPE_INFO_MAX, +} IMAGEHLP_SYMBOL_TYPE_INFO; + +typedef struct _TI_FINDCHILDREN_PARAMS { + ULONG Count; + ULONG Start; + ULONG ChildId[1]; +} TI_FINDCHILDREN_PARAMS; + +typedef struct _DISCRIMINATEDUNION_TAG_VALUE { + BYTE value[16]; + BYTE valueSizeBytes; +} DISCRIMINATEDUNION_TAG_VALUE; + +typedef struct _TI_GET_DISCRIMINATEDUNION_TAG_RANGES_PARAMS { + ULONG Count; + ULONG Start; + DISCRIMINATEDUNION_TAG_VALUE Range[1]; +} TI_GET_DISCRIMINATEDUNION_TAG_RANGES_PARAMS; + +BOOL +IMAGEAPI +SymGetTypeInfo( + _In_ HANDLE hProcess, + _In_ DWORD64 ModBase, + _In_ ULONG TypeId, + _In_ IMAGEHLP_SYMBOL_TYPE_INFO GetType, + _Out_ PVOID pInfo + ); + +#define IMAGEHLP_GET_TYPE_INFO_UNCACHED 0x00000001 +#define IMAGEHLP_GET_TYPE_INFO_CHILDREN 0x00000002 + +typedef struct _IMAGEHLP_GET_TYPE_INFO_PARAMS { + IN ULONG SizeOfStruct; + IN ULONG Flags; + IN ULONG NumIds; + IN PULONG TypeIds; + IN ULONG64 TagFilter; + IN ULONG NumReqs; + IN IMAGEHLP_SYMBOL_TYPE_INFO* ReqKinds; + IN PULONG_PTR ReqOffsets; + IN PULONG ReqSizes; + IN ULONG_PTR ReqStride; + IN ULONG_PTR BufferSize; + OUT PVOID Buffer; + OUT ULONG EntriesMatched; + OUT ULONG EntriesFilled; + OUT ULONG64 TagsFound; + OUT ULONG64 AllReqsValid; + IN ULONG NumReqsValid; + OUT PULONG64 ReqsValid OPTIONAL; +} IMAGEHLP_GET_TYPE_INFO_PARAMS, *PIMAGEHLP_GET_TYPE_INFO_PARAMS; + +BOOL +IMAGEAPI +SymGetTypeInfoEx( + _In_ HANDLE hProcess, + _In_ DWORD64 ModBase, + _Inout_ PIMAGEHLP_GET_TYPE_INFO_PARAMS Params + ); + +BOOL +IMAGEAPI +SymEnumTypes( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumTypesW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumTypesByName( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCSTR mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumTypesByNameW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCWSTR mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymGetTypeFromName( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PCSTR Name, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymGetTypeFromNameW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PCWSTR Name, + _Inout_ PSYMBOL_INFOW Symbol + ); + +BOOL +IMAGEAPI +SymAddSymbol( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PCSTR Name, + _In_ DWORD64 Address, + _In_ DWORD Size, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymAddSymbolW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PCWSTR Name, + _In_ DWORD64 Address, + _In_ DWORD Size, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymDeleteSymbol( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCSTR Name, + _In_ DWORD64 Address, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymDeleteSymbolW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCWSTR Name, + _In_ DWORD64 Address, + _In_ DWORD Flags + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymRefreshModuleList( + _In_ HANDLE hProcess + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +BOOL +IMAGEAPI +SymAddSourceStream( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCSTR StreamFile, + _In_reads_bytes_opt_(Size) PBYTE Buffer, + _In_ size_t Size + ); + +typedef BOOL (WINAPI *SYMADDSOURCESTREAM)(HANDLE, ULONG64, PCSTR, PBYTE, size_t); + +BOOL +IMAGEAPI +SymAddSourceStreamA( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCSTR StreamFile, + _In_reads_bytes_opt_(Size) PBYTE Buffer, + _In_ size_t Size + ); + +typedef BOOL (WINAPI *SYMADDSOURCESTREAMA)(HANDLE, ULONG64, PCSTR, PBYTE, size_t); + +BOOL +IMAGEAPI +SymAddSourceStreamW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCWSTR FileSpec, + _In_reads_bytes_opt_(Size) PBYTE Buffer, + _In_ size_t Size + ); + +BOOL +IMAGEAPI +SymSrvIsStoreW( + _In_opt_ HANDLE hProcess, + _In_ PCWSTR path + ); + +BOOL +IMAGEAPI +SymSrvIsStore( + _In_opt_ HANDLE hProcess, + _In_ PCSTR path + ); + +PCSTR +IMAGEAPI +SymSrvDeltaName( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SymPath, + _In_ PCSTR Type, + _In_ PCSTR File1, + _In_ PCSTR File2 + ); + +PCWSTR +IMAGEAPI +SymSrvDeltaNameW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SymPath, + _In_ PCWSTR Type, + _In_ PCWSTR File1, + _In_ PCWSTR File2 + ); + +PCSTR +IMAGEAPI +SymSrvGetSupplement( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SymPath, + _In_ PCSTR Node, + _In_ PCSTR File + ); + +PCWSTR +IMAGEAPI +SymSrvGetSupplementW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SymPath, + _In_ PCWSTR Node, + _In_ PCWSTR File + ); + +BOOL +IMAGEAPI +SymSrvGetFileIndexes( + _In_ PCSTR File, + _Out_ GUID *Id, + _Out_ PDWORD Val1, + _Out_opt_ PDWORD Val2, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymSrvGetFileIndexesW( + _In_ PCWSTR File, + _Out_ GUID *Id, + _Out_ PDWORD Val1, + _Out_opt_ PDWORD Val2, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymSrvGetFileIndexStringW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SrvPath, + _In_ PCWSTR File, + _Out_writes_(Size) PWSTR Index, + _In_ size_t Size, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymSrvGetFileIndexString( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SrvPath, + _In_ PCSTR File, + _Out_writes_(Size) PSTR Index, + _In_ size_t Size, + _In_ DWORD Flags + ); + +typedef struct { + DWORD sizeofstruct; + char file[MAX_PATH +1]; + BOOL stripped; + DWORD timestamp; + DWORD size; + char dbgfile[MAX_PATH +1]; + char pdbfile[MAX_PATH + 1]; + GUID guid; + DWORD sig; + DWORD age; +} SYMSRV_INDEX_INFO, *PSYMSRV_INDEX_INFO; + +typedef struct { + DWORD sizeofstruct; + WCHAR file[MAX_PATH +1]; + BOOL stripped; + DWORD timestamp; + DWORD size; + WCHAR dbgfile[MAX_PATH +1]; + WCHAR pdbfile[MAX_PATH + 1]; + GUID guid; + DWORD sig; + DWORD age; +} SYMSRV_INDEX_INFOW, *PSYMSRV_INDEX_INFOW; + +BOOL +IMAGEAPI +SymSrvGetFileIndexInfo( + _In_ PCSTR File, + _Out_ PSYMSRV_INDEX_INFO Info, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymSrvGetFileIndexInfoW( + _In_ PCWSTR File, + _Out_ PSYMSRV_INDEX_INFOW Info, + _In_ DWORD Flags + ); + +PCSTR +IMAGEAPI +SymSrvStoreSupplement( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SrvPath, + _In_ PCSTR Node, + _In_ PCSTR File, + _In_ DWORD Flags + ); + +PCWSTR +IMAGEAPI +SymSrvStoreSupplementW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SymPath, + _In_ PCWSTR Node, + _In_ PCWSTR File, + _In_ DWORD Flags + ); + +PCSTR +IMAGEAPI +SymSrvStoreFile( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SrvPath, + _In_ PCSTR File, + _In_ DWORD Flags + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +PCWSTR +IMAGEAPI +SymSrvStoreFileW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SrvPath, + _In_ PCWSTR File, + _In_ DWORD Flags + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +// used by SymGetSymbolFile's "Type" parameter + +typedef enum { + sfImage = 0, + sfDbg, + sfPdb, + sfMpd, + sfMax +} IMAGEHLP_SF_TYPE; + +BOOL +IMAGEAPI +SymGetSymbolFile( + _In_opt_ HANDLE hProcess, + _In_opt_ PCSTR SymPath, + _In_ PCSTR ImageFile, + _In_ DWORD Type, + _Out_writes_(cSymbolFile) PSTR SymbolFile, + _In_ size_t cSymbolFile, + _Out_writes_(cDbgFile) PSTR DbgFile, + _In_ size_t cDbgFile + ); + +BOOL +IMAGEAPI +SymGetSymbolFileW( + _In_opt_ HANDLE hProcess, + _In_opt_ PCWSTR SymPath, + _In_ PCWSTR ImageFile, + _In_ DWORD Type, + _Out_writes_(cSymbolFile) PWSTR SymbolFile, + _In_ size_t cSymbolFile, + _Out_writes_(cDbgFile) PWSTR DbgFile, + _In_ size_t cDbgFile + ); + +// +// Full user-mode dump creation. +// + +typedef BOOL (WINAPI *PDBGHELP_CREATE_USER_DUMP_CALLBACK)( + _In_ DWORD DataType, + _In_ PVOID* Data, + _Out_ LPDWORD DataLength, + _In_opt_ PVOID UserData + ); + +BOOL +WINAPI +DbgHelpCreateUserDump( + _In_opt_ LPCSTR FileName, + _In_ PDBGHELP_CREATE_USER_DUMP_CALLBACK Callback, + _In_opt_ PVOID UserData + ); + +BOOL +WINAPI +DbgHelpCreateUserDumpW( + _In_opt_ LPCWSTR FileName, + _In_ PDBGHELP_CREATE_USER_DUMP_CALLBACK Callback, + _In_opt_ PVOID UserData + ); + +// ----------------------------------------------------------------- +// The following 4 legacy APIs are fully supported, but newer +// ones are recommended. SymFromName and SymFromAddr provide +// much more detailed info on the returned symbol. + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymGetSymFromAddr64( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr, + _Out_opt_ PDWORD64 pdwDisplacement, + _Inout_ PIMAGEHLP_SYMBOL64 Symbol + ); + + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetSymFromAddr SymGetSymFromAddr64 +#else +BOOL +IMAGEAPI +SymGetSymFromAddr( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr, + _Out_opt_ PDWORD pdwDisplacement, + _Inout_ PIMAGEHLP_SYMBOL Symbol + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +// While following two APIs will provide a symbol from a name, +// SymEnumSymbols can provide the same matching information +// for ALL symbols with a matching name, even regular +// expressions. That way you can search across modules +// and differentiate between identically named symbols. + +BOOL +IMAGEAPI +SymGetSymFromName64( + _In_ HANDLE hProcess, + _In_ PCSTR Name, + _Inout_ PIMAGEHLP_SYMBOL64 Symbol + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetSymFromName SymGetSymFromName64 +#else +BOOL +IMAGEAPI +SymGetSymFromName( + _In_ HANDLE hProcess, + _In_ PCSTR Name, + _Inout_ PIMAGEHLP_SYMBOL Symbol + ); +#endif + + +// Symbol server exports + +// This is the version of the SYMSRV_EXTENDED_OUTPUT_DATA structure. +#define EXT_OUTPUT_VER 1 + +// This structure indicates the Extended Symsrv.dll output data structure +typedef struct +{ + DWORD sizeOfStruct; // size of the structure + DWORD version; // version number (EXT_OUTPUT_VER) + WCHAR filePtrMsg[MAX_PATH + 1]; // File ptr message data buffer +} SYMSRV_EXTENDED_OUTPUT_DATA, *PSYMSRV_EXTENDED_OUTPUT_DATA; + +typedef BOOL (WINAPI *PSYMBOLSERVERPROC)(PCSTR, PCSTR, PVOID, DWORD, DWORD, PSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERPROCA)(PCSTR, PCSTR, PVOID, DWORD, DWORD, PSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERPROCW)(PCWSTR, PCWSTR, PVOID, DWORD, DWORD, PWSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERBYINDEXPROC)(PCSTR, PCSTR, PCSTR, PSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERBYINDEXPROCA)(PCSTR, PCSTR, PCSTR, PSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERBYINDEXPROCW)(PCWSTR, PCWSTR, PCWSTR, PWSTR); +typedef BOOL (WINAPI *PSYMBOLSERVEROPENPROC)(VOID); +typedef BOOL (WINAPI *PSYMBOLSERVERCLOSEPROC)(VOID); +typedef BOOL (WINAPI *PSYMBOLSERVERSETOPTIONSPROC)(UINT_PTR, ULONG64); +typedef BOOL (WINAPI *PSYMBOLSERVERSETOPTIONSWPROC)(UINT_PTR, ULONG64); +typedef BOOL (CALLBACK WINAPI *PSYMBOLSERVERCALLBACKPROC)(UINT_PTR action, ULONG64 data, ULONG64 context); +typedef UINT_PTR (WINAPI *PSYMBOLSERVERGETOPTIONSPROC)(); +typedef BOOL (WINAPI *PSYMBOLSERVERPINGPROC)(PCSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERPINGPROCA)(PCSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERPINGPROCW)(PCWSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERGETVERSION)(LPAPI_VERSION); +typedef BOOL (WINAPI *PSYMBOLSERVERDELTANAME)(PCSTR, PVOID, DWORD, DWORD, PVOID, DWORD, DWORD, PSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERDELTANAMEW)(PCWSTR, PVOID, DWORD, DWORD, PVOID, DWORD, DWORD, PWSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERGETSUPPLEMENT)(PCSTR, PCSTR, PCSTR, PSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERGETSUPPLEMENTW)(PCWSTR, PCWSTR, PCWSTR, PWSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERSTORESUPPLEMENT)(PCSTR, PCSTR, PCSTR, PSTR, size_t, DWORD); +typedef BOOL (WINAPI *PSYMBOLSERVERSTORESUPPLEMENTW)(PCWSTR, PCWSTR, PCWSTR, PWSTR, size_t, DWORD); +typedef BOOL (WINAPI *PSYMBOLSERVERGETINDEXSTRING)(PVOID, DWORD, DWORD, PSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERGETINDEXSTRINGW)(PVOID, DWORD, DWORD, PWSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERSTOREFILE)(PCSTR, PCSTR, PVOID, DWORD, DWORD, PSTR, size_t, DWORD); +typedef BOOL (WINAPI *PSYMBOLSERVERSTOREFILEW)(PCWSTR, PCWSTR, PVOID, DWORD, DWORD, PWSTR, size_t, DWORD); +typedef BOOL (WINAPI *PSYMBOLSERVERISSTORE)(PCSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERISSTOREW)(PCWSTR); +typedef DWORD (WINAPI *PSYMBOLSERVERVERSION)(); +typedef BOOL (CALLBACK WINAPI *PSYMBOLSERVERMESSAGEPROC)(UINT_PTR action, ULONG64 data, ULONG64 context); +typedef BOOL (WINAPI *PSYMBOLSERVERWEXPROC)(PCWSTR, PCWSTR, PVOID, DWORD, DWORD, PWSTR, PSYMSRV_EXTENDED_OUTPUT_DATA); +typedef BOOL (WINAPI *PSYMBOLSERVERPINGPROCWEX)(PCWSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERGETOPTIONDATAPROC)(UINT_PTR, PULONG64); +typedef BOOL (WINAPI *PSYMBOLSERVERSETHTTPAUTHHEADER)(_In_ PCWSTR pszAuthHeader); + +#define SYMSRV_VERSION 2 + +#define SSRVOPT_CALLBACK 0x00000001 +#define SSRVOPT_DWORD 0x00000002 +#define SSRVOPT_DWORDPTR 0x00000004 +#define SSRVOPT_GUIDPTR 0x00000008 +#define SSRVOPT_OLDGUIDPTR 0x00000010 +#define SSRVOPT_UNATTENDED 0x00000020 +#define SSRVOPT_NOCOPY 0x00000040 +#define SSRVOPT_GETPATH 0x00000040 +#define SSRVOPT_PARENTWIN 0x00000080 +#define SSRVOPT_PARAMTYPE 0x00000100 +#define SSRVOPT_SECURE 0x00000200 +#define SSRVOPT_TRACE 0x00000400 +#define SSRVOPT_SETCONTEXT 0x00000800 +#define SSRVOPT_PROXY 0x00001000 +#define SSRVOPT_DOWNSTREAM_STORE 0x00002000 +#define SSRVOPT_OVERWRITE 0x00004000 +#define SSRVOPT_RESETTOU 0x00008000 +#define SSRVOPT_CALLBACKW 0x00010000 +#define SSRVOPT_FLAT_DEFAULT_STORE 0x00020000 +#define SSRVOPT_PROXYW 0x00040000 +#define SSRVOPT_MESSAGE 0x00080000 +#define SSRVOPT_SERVICE 0x00100000 // deprecated +#define SSRVOPT_FAVOR_COMPRESSED 0x00200000 +#define SSRVOPT_STRING 0x00400000 +#define SSRVOPT_WINHTTP 0x00800000 +#define SSRVOPT_WININET 0x01000000 +#define SSRVOPT_DONT_UNCOMPRESS 0x02000000 +#define SSRVOPT_DISABLE_PING_HOST 0x04000000 +#define SSRVOPT_DISABLE_TIMEOUT 0x08000000 +#define SSRVOPT_ENABLE_COMM_MSG 0x10000000 +#define SSRVOPT_URI_FILTER 0x20000000 +#define SSRVOPT_URI_TIERS 0x40000000 +#define SSRVOPT_RETRY_APP_HANG 0x80000000 + +#define SSRVOPT_MAX 0x80000000 + +#define SSRVOPT_RESET ((ULONG_PTR)-1) + +#define NUM_SSRVOPTS 32 + +#define SSRVURI_HTTP_NORMAL 0x01 +#define SSRVURI_HTTP_COMPRESSED 0x02 +#define SSRVURI_HTTP_FILEPTR 0x04 + +#define SSRVURI_UNC_NORMAL 0x10 +#define SSRVURI_UNC_COMPRESSED 0x20 +#define SSRVURI_UNC_FILEPTR 0x40 + +#define SSRVURI_HTTP_MASK 0x0F +#define SSRVURI_UNC_MASK 0xF0 +#define SSRVURI_ALL 0xFF + +// Legacy Names +#define SSRVURI_NORMAL SSRVURI_HTTP_NORMAL +#define SSRVURI_COMPRESSED SSRVURI_HTTP_COMPRESSED +#define SSRVURI_FILEPTR SSRVURI_HTTP_FILEPTR + +#define SSRVACTION_TRACE 1 +#define SSRVACTION_QUERYCANCEL 2 +#define SSRVACTION_EVENT 3 +#define SSRVACTION_EVENTW 4 +#define SSRVACTION_SIZE 5 +#define SSRVACTION_HTTPSTATUS 6 +#define SSRVACTION_XMLOUTPUT 7 +#define SSRVACTION_CHECKSUMSTATUS 8 + +#endif // WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + + #define SYMSTOREOPT_COMPRESS 0x01 + #define SYMSTOREOPT_OVERWRITE 0x02 + #define SYMSTOREOPT_RETURNINDEX 0x04 + #define SYMSTOREOPT_POINTER 0x08 + #define SYMSTOREOPT_ALT_INDEX 0x10 + #define SYMSTOREOPT_UNICODE 0x20 + #define SYMSTOREOPT_PASS_IF_EXISTS 0x40 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#ifdef DBGHELP_TRANSLATE_TCHAR + #define SymInitialize SymInitializeW + #define SymAddSymbol SymAddSymbolW + #define SymDeleteSymbol SymDeleteSymbolW + #define SearchTreeForFile SearchTreeForFileW + #define UnDecorateSymbolName UnDecorateSymbolNameW + #define SymGetLineFromName64 SymGetLineFromNameW64 + #define SymGetLineFromAddr64 SymGetLineFromAddrW64 + #define SymGetLineFromInlineContext SymGetLineFromInlineContextW + #define SymGetLineNext64 SymGetLineNextW64 + #define SymGetLinePrev64 SymGetLinePrevW64 + #define SymFromName SymFromNameW + #define SymFindExecutableImage SymFindExecutableImageW + #define FindExecutableImageEx FindExecutableImageExW + #define SymSearch SymSearchW + #define SymEnumLines SymEnumLinesW + #define SymEnumSourceLines SymEnumSourceLinesW + #define SymGetTypeFromName SymGetTypeFromNameW + #define SymEnumSymbolsForAddr SymEnumSymbolsForAddrW + #define SymFromAddr SymFromAddrW + #define SymFromInlineContext SymFromInlineContextW + #define SymMatchString SymMatchStringW + #define SymEnumSourceFiles SymEnumSourceFilesW + #define SymEnumSymbols SymEnumSymbolsW + #define SymEnumSymbolsEx SymEnumSymbolsExW + #define SymLoadModuleEx SymLoadModuleExW + #define SymSetSearchPath SymSetSearchPathW + #define SymGetSearchPath SymGetSearchPathW + #define EnumDirTree EnumDirTreeW + #define SymFromToken SymFromTokenW + #define SymFromIndex SymFromIndexW + #define SymGetScope SymGetScopeW + #define SymNext SymNextW + #define SymPrev SymPrevW + #define SymEnumTypes SymEnumTypesW + #define SymEnumTypesByName SymEnumTypesByNameW + #define SymRegisterCallback64 SymRegisterCallbackW64 + #define SymFindDebugInfoFile SymFindDebugInfoFileW + #define FindDebugInfoFileEx FindDebugInfoFileExW + #define SymFindFileInPath SymFindFileInPathW + #define SymEnumerateModules64 SymEnumerateModulesW64 + #define SymSetHomeDirectory SymSetHomeDirectoryW + #define SymGetHomeDirectory SymGetHomeDirectoryW + #define SymGetSourceFile SymGetSourceFileW + #define SymGetSourceFileToken SymGetSourceFileTokenW + #define SymGetSourceFileFromToken SymGetSourceFileFromTokenW + #define SymGetSourceVarFromToken SymGetSourceVarFromTokenW + #define SymGetSourceFileTokenByTokenName SymGetSourceFileTokenByTokenNameW + #define SymGetFileLineOffsets64 SymGetFileLineOffsetsW64 + #define SymFindFileInPath SymFindFileInPathW + #define SymMatchFileName SymMatchFileNameW + #define SymGetSourceFileFromTokenByTokenName SymGetSourceFileFromTokenByTokenNameW + #define SymGetModuleInfo64 SymGetModuleInfoW64 + #define SymAddSourceStream SymAddSourceStreamW + #define SymSrvIsStore SymSrvIsStoreW + #define SymSrvDeltaName SymSrvDeltaNameW + #define SymSrvGetSupplement SymSrvGetSupplementW + #define SymSrvStoreSupplement SymSrvStoreSupplementW + #define SymSrvGetFileIndexes SymSrvGetFileIndexes + #define SymSrvGetFileIndexString SymSrvGetFileIndexStringW + #define SymSrvStoreFile SymSrvStoreFileW + #define SymGetSymbolFile SymGetSymbolFileW + #define EnumerateLoadedModules64 EnumerateLoadedModulesW64 + #define EnumerateLoadedModulesEx EnumerateLoadedModulesExW + #define SymSrvGetFileIndexInfo SymSrvGetFileIndexInfoW + + #define IMAGEHLP_LINE64 IMAGEHLP_LINEW64 + #define PIMAGEHLP_LINE64 PIMAGEHLP_LINEW64 + #define SYMBOL_INFO SYMBOL_INFOW + #define PSYMBOL_INFO PSYMBOL_INFOW + #define SYMBOL_INFO_PACKAGE SYMBOL_INFO_PACKAGEW + #define PSYMBOL_INFO_PACKAGE PSYMBOL_INFO_PACKAGEW + #define FIND_EXE_FILE_CALLBACK FIND_EXE_FILE_CALLBACKW + #define PFIND_EXE_FILE_CALLBACK PFIND_EXE_FILE_CALLBACKW + #define SYM_ENUMERATESYMBOLS_CALLBACK SYM_ENUMERATESYMBOLS_CALLBACKW + #define PSYM_ENUMERATESYMBOLS_CALLBACK PSYM_ENUMERATESYMBOLS_CALLBACKW + #define SRCCODEINFO SRCCODEINFOW + #define PSRCCODEINFO PSRCCODEINFOW + #define SOURCEFILE SOURCEFILEW + #define PSOURCEFILE PSOURCEFILEW + #define SYM_ENUMSOURECFILES_CALLBACK SYM_ENUMSOURCEFILES_CALLBACKW + #define PSYM_ENUMSOURCEFILES_CALLBACK PSYM_ENUMSOURECFILES_CALLBACKW + #define IMAGEHLP_CBA_EVENT IMAGEHLP_CBA_EVENTW + #define PIMAGEHLP_CBA_EVENT PIMAGEHLP_CBA_EVENTW + #define PENUMDIRTREE_CALLBACK PENUMDIRTREE_CALLBACKW + #define IMAGEHLP_DEFERRED_SYMBOL_LOAD64 IMAGEHLP_DEFERRED_SYMBOL_LOADW64 + #define PIMAGEHLP_DEFERRED_SYMBOL_LOAD64 PIMAGEHLP_DEFERRED_SYMBOL_LOADW64 + #define PFIND_DEBUG_FILE_CALLBACK PFIND_DEBUG_FILE_CALLBACKW + #define PFINDFILEINPATHCALLBACK PFINDFILEINPATHCALLBACKW + #define IMAGEHLP_MODULE64 IMAGEHLP_MODULEW64 + #define PIMAGEHLP_MODULE64 PIMAGEHLP_MODULEW64 + #define SYMSRV_INDEX_INFO SYMSRV_INDEX_INFOW + #define PSYMSRV_INDEX_INFO PSYMSRV_INDEX_INFOW + + #define PSYMBOLSERVERPROC PSYMBOLSERVERPROCW + #define PSYMBOLSERVERPINGPROC PSYMBOLSERVERPINGPROCW + +#pragma endregion +#endif // WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + + +// ----------------------------------------------------------------- +// The following APIs exist only for backwards compatibility +// with a pre-release version documented in an MSDN release. + +// You should use SymFindFileInPath if you want to maintain +// future compatibility. + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +FindFileInPath( + _In_ HANDLE hprocess, + _In_ PCSTR SearchPath, + _In_ PCSTR FileName, + _In_ PVOID id, + _In_ DWORD two, + _In_ DWORD three, + _In_ DWORD flags, + _Out_writes_(MAX_PATH + 1) PSTR FilePath + ); + +// You should use SymFindFileInPath if you want to maintain +// future compatibility. + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +FindFileInSearchPath( + _In_ HANDLE hprocess, + _In_ PCSTR SearchPath, + _In_ PCSTR FileName, + _In_ DWORD one, + _In_ DWORD two, + _In_ DWORD three, + _Out_writes_(MAX_PATH + 1) PSTR FilePath + ); + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +SymEnumSym( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +SymEnumerateSymbols64( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PSYM_ENUMSYMBOLS_CALLBACK64 EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +SymEnumerateSymbolsW64( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PSYM_ENUMSYMBOLS_CALLBACK64W EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymEnumerateSymbols SymEnumerateSymbols64 +#define SymEnumerateSymbolsW SymEnumerateSymbolsW64 +#else +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +SymEnumerateSymbols( + _In_ HANDLE hProcess, + _In_ ULONG BaseOfDll, + _In_ PSYM_ENUMSYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +SymEnumerateSymbolsW( + _In_ HANDLE hProcess, + _In_ ULONG BaseOfDll, + _In_ PSYM_ENUMSYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); +#endif + +// use SymLoadModuleEx + +DWORD64 +IMAGEAPI +SymLoadModule64( + _In_ HANDLE hProcess, + _In_opt_ HANDLE hFile, + _In_opt_ PCSTR ImageName, + _In_opt_ PCSTR ModuleName, + _In_ DWORD64 BaseOfDll, + _In_ DWORD SizeOfDll + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymLoadModule SymLoadModule64 +#else +DWORD +IMAGEAPI +SymLoadModule( + _In_ HANDLE hProcess, + _In_opt_ HANDLE hFile, + _In_opt_ PCSTR ImageName, + _In_opt_ PCSTR ModuleName, + _In_ DWORD BaseOfDll, + _In_ DWORD SizeOfDll + ); +#endif + +BOOL +IMAGEAPI +SymGetSymNext64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOL64 Symbol + ); + +BOOL +IMAGEAPI +SymGetSymNextW64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOLW64 Symbol + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetSymNext SymGetSymNext64 +#define SymGetSymNextW SymGetSymNextW64 +#else +BOOL +IMAGEAPI +SymGetSymNext( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOL Symbol + ); + +BOOL +IMAGEAPI +SymGetSymNextW( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOLW Symbol + ); +#endif + +BOOL +IMAGEAPI +SymGetSymPrev64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOL64 Symbol + ); + +BOOL +IMAGEAPI +SymGetSymPrevW64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOLW64 Symbol + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetSymPrev SymGetSymPrev64 +#define SymGetSymPrevW SymGetSymPrevW64 +#else +BOOL +IMAGEAPI +SymGetSymPrev( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOL Symbol + ); + +BOOL +IMAGEAPI +SymGetSymPrevW( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOLW Symbol + ); +#endif + + +// This type indicates the call back function type +typedef ULONG (__stdcall *LPCALL_BACK_USER_INTERRUPT_ROUTINE )(VOID); + +// Extra data to report for the symbol load summary +typedef struct +{ + PCWSTR pBinPathNonExist; + PCWSTR pSymbolPathNonExist; +}DBGHELP_DATA_REPORT_STRUCT, *PDBGHELP_DATA_REPORT_STRUCT; + +void +IMAGEAPI +SetCheckUserInterruptShared( + _In_ LPCALL_BACK_USER_INTERRUPT_ROUTINE lpStartAddress + ); + +LPCALL_BACK_USER_INTERRUPT_ROUTINE +IMAGEAPI +GetCheckUserInterruptShared( + void + ); + +DWORD +IMAGEAPI +GetSymLoadError( + void + ); + +void +IMAGEAPI +SetSymLoadError( + _In_ DWORD error + ); + +BOOL +IMAGEAPI +ReportSymbolLoadSummary( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR pLoadModule, + _In_ PDBGHELP_DATA_REPORT_STRUCT pSymbolData + ); + +void +IMAGEAPI +RemoveInvalidModuleList( + _In_ HANDLE hProcess + ); + +// These values should not be used. +// They have been replaced by SYMFLAG_ values. + +#define SYMF_OMAP_GENERATED 0x00000001 +#define SYMF_OMAP_MODIFIED 0x00000002 +#define SYMF_REGISTER 0x00000008 +#define SYMF_REGREL 0x00000010 +#define SYMF_FRAMEREL 0x00000020 +#define SYMF_PARAMETER 0x00000040 +#define SYMF_LOCAL 0x00000080 +#define SYMF_CONSTANT 0x00000100 +#define SYMF_EXPORT 0x00000200 +#define SYMF_FORWARDER 0x00000400 +#define SYMF_FUNCTION 0x00000800 +#define SYMF_VIRTUAL 0x00001000 +#define SYMF_THUNK 0x00002000 +#define SYMF_TLSREL 0x00004000 + +// These values should also not be used. +// They have been replaced by SYMFLAG_ values. + +#define IMAGEHLP_SYMBOL_INFO_VALUEPRESENT 1 +#define IMAGEHLP_SYMBOL_INFO_REGISTER SYMF_REGISTER // 0x0008 +#define IMAGEHLP_SYMBOL_INFO_REGRELATIVE SYMF_REGREL // 0x0010 +#define IMAGEHLP_SYMBOL_INFO_FRAMERELATIVE SYMF_FRAMEREL // 0x0020 +#define IMAGEHLP_SYMBOL_INFO_PARAMETER SYMF_PARAMETER // 0x0040 +#define IMAGEHLP_SYMBOL_INFO_LOCAL SYMF_LOCAL // 0x0080 +#define IMAGEHLP_SYMBOL_INFO_CONSTANT SYMF_CONSTANT // 0x0100 +#define IMAGEHLP_SYMBOL_FUNCTION SYMF_FUNCTION // 0x0800 +#define IMAGEHLP_SYMBOL_VIRTUAL SYMF_VIRTUAL // 0x1000 +#define IMAGEHLP_SYMBOL_THUNK SYMF_THUNK // 0x2000 +#define IMAGEHLP_SYMBOL_INFO_TLSRELATIVE SYMF_TLSREL // 0x4000 + +// +// RangeMap APIs. +// +PVOID +IMAGEAPI +RangeMapCreate( + VOID + ); + +VOID +IMAGEAPI +RangeMapFree( + _In_opt_ PVOID RmapHandle + ); + +#define IMAGEHLP_RMAP_MAPPED_FLAT 0x00000001 +#define IMAGEHLP_RMAP_BIG_ENDIAN 0x00000002 +#define IMAGEHLP_RMAP_IGNORE_MISCOMPARE 0x00000004 + +#define IMAGEHLP_RMAP_FIXUP_ARM64X 0x10000000 +#define IMAGEHLP_RMAP_LOAD_RW_DATA_SECTIONS 0x20000000 +#define IMAGEHLP_RMAP_OMIT_SHARED_RW_DATA_SECTIONS 0x40000000 +#define IMAGEHLP_RMAP_FIXUP_IMAGEBASE 0x80000000 + +BOOL +IMAGEAPI +RangeMapAddPeImageSections( + _In_ PVOID RmapHandle, + _In_opt_ PCWSTR ImageName, + _In_reads_bytes_(MappingBytes) PVOID MappedImage, + _In_ DWORD MappingBytes, + _In_ DWORD64 ImageBase, + _In_ DWORD64 UserTag, + _In_ DWORD MappingFlags + ); + +BOOL +IMAGEAPI +RangeMapRemove( + _In_ PVOID RmapHandle, + _In_ DWORD64 UserTag + ); + +BOOL +IMAGEAPI +RangeMapRead( + _In_ PVOID RmapHandle, + _In_ DWORD64 Offset, + _Out_writes_bytes_to_(RequestBytes, *DoneBytes) PVOID Buffer, + _In_ DWORD RequestBytes, + _In_ DWORD Flags, + _Out_opt_ PDWORD DoneBytes + ); + +BOOL +IMAGEAPI +RangeMapWrite( + _In_ PVOID RmapHandle, + _In_ DWORD64 Offset, + _In_reads_bytes_(RequestBytes) PVOID Buffer, + _In_ DWORD RequestBytes, + _In_ DWORD Flags, + _Out_opt_ PDWORD DoneBytes + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +#ifdef __cplusplus +} +#endif + +#include + + +#include + + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#endif // _DBGHELP_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgModel.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgModel.h new file mode 100644 index 0000000000000000000000000000000000000000..a9af8120a5a072dbfd88a3ee4438f68648f091a1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgModel.h @@ -0,0 +1,13015 @@ +//******************************************************************************* +// +// Debugger Data Model +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//******************************************************************************* + +#ifndef __DBGMODEL_H__ +#define __DBGMODEL_H__ + +#include + +#pragma region Desktop Family or WER Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_WER) + +// +// A number of the model APIs have a convention to return extended error information in the resulting object. +// This means that a series of APIs which return model objects will +// +// - On success +// Always have a valid model object +// +// - On failure +// Possibly return back a model object which is an error object which contains extended error information +// beyond the failing HRESULT. Such objects are immediately convertable to display strings, etc... +// +#define _COM_Errorptr_ _Outptr_ +#define _COM_Errorptr_opt_ _Outptr_opt_ +#define _COM_Errorptr_opt_result_maybenull_ _Outptr_opt_result_maybenull_ + +// +// Location: +// +// Defines the location for an object. This particular variant of Location is the C-COM access struct. +// Note that a location only has meaning in conjunction with a host context. It is a location within +// a context. When performing an operation on the location (reading bytes, writing bytes, etc...), +// a valid host context must be supplied. +// +struct Location +{ + // The HostDefined field has two states that are "Non-Opaque" at the API layer. + // + // 0: Indicates that the offset is a pointer into virtual address space of the target. + // Non-Zero: The defined value is proprietary to the host. Clients can propagate and change offset. They cannot + // legally change the value. + // + // This can be determined by the IsVirtualAddress() method if this structure is built from C++ code. + // + ULONG64 HostDefined; + ULONG64 Offset; + +#ifdef __cplusplus + + // Location(): + // + // Default constructs an equivalent nullptr. + // + Location() : + HostDefined(0), + Offset(0) + { + } + + // Location(): + // + // Constructs a location from an offset into the virtual address space of the target. + // + Location(ULONG64 virtualAddress) : + HostDefined(0), + Offset(virtualAddress) + { + } + + Location(const Location& src) : + HostDefined(src.HostDefined), + Offset(src.Offset) + { + } + + Location& operator=(const Location& src) + { + HostDefined = src.HostDefined; + Offset = src.Offset; + return *this; + } + + Location& operator=(ULONG64 virtualAddress) + { + HostDefined = 0; + Offset = virtualAddress; + return *this; + } + + bool operator==(const Location& rhs) const + { + return (rhs.HostDefined == HostDefined && rhs.Offset == Offset); + } + + bool operator!=(const Location& rhs) const + { + return !(operator==(rhs)); + } + + Location& operator+=(LONG64 offset) + { + Offset += offset; + return *this; + } + + Location& operator-=(LONG64 offset) + { + Offset -= offset; + return *this; + } + + Location operator+(LONG64 offset) const + { + Location l = *this; + l += offset; + return l; + } + + Location operator-(LONG64 offset) const + { + Location l = *this; + l -= offset; + return l; + } + + // GetOffset(): + // + // Returns the offset of the location. + // + ULONG64 GetOffset() const + { + return Offset; + } + + // IsVirtualAddress(): + // + // Indicates whether the location refers to a virtual address. + // + bool IsVirtualAddress() const + { + return (HostDefined == 0); + } + +#endif // __cplusplus + +}; + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// +// Stub declarations to aid in bridging data model and target composition interfaces for +// any code which does not include DbgServices.h +// + +#ifndef __DBGSERVICES_H__ +struct ISvcProcess; +struct ISvcThread; +struct ISvcExecutionUnit; +struct IDebugServiceManager; +struct ISvcModule; +struct ISvcSymbolType; +#endif // __DBGSERVICES_H__ + +//************************************************************************** +// Public Interfaces: + +// {F2BCE54E-4835-4f8a-836E-7981E29904D1} +DEFINE_GUID(IID_IHostDataModelAccess, 0xf2bce54e, 0x4835, 0x4f8a, 0x83, 0x6e, 0x79, 0x81, 0xe2, 0x99, 0x4, 0xd1); + +// {0FC7557D-401D-4fca-9365-DA1E9850697C} +DEFINE_GUID(IID_IKeyStore, 0xfc7557d, 0x401d, 0x4fca, 0x93, 0x65, 0xda, 0x1e, 0x98, 0x50, 0x69, 0x7c); + +// {E28C7893-3F4B-4b96-BACA-293CDC55F45D} +DEFINE_GUID(IID_IModelObject, 0xe28c7893, 0x3f4b, 0x4b96, 0xba, 0xca, 0x29, 0x3c, 0xdc, 0x55, 0xf4, 0x5d); + +// {D61E19F4-AB3D-4344-9F7B-0993F3D58745} +DEFINE_GUID(IID_IModelObject2, 0xd61e19f4, 0xab3d, 0x4344, 0x9f, 0x7b, 0x09, 0x93, 0xf3, 0xd5, 0x87, 0x45); + +// {73FE19F4-A110-4500-8ED9-3C28896F508C} +DEFINE_GUID(IID_IDataModelManager, 0x73fe19f4, 0xa110, 0x4500, 0x8e, 0xd9, 0x3c, 0x28, 0x89, 0x6f, 0x50, 0x8c); + +// {F412C5EA-2284-4622-A660-A697160D3312} +DEFINE_GUID(IID_IDataModelManager2, 0xf412c5ea, 0x2284, 0x4622, 0xa6, 0x60, 0xa6, 0x97, 0x16, 0xd, 0x33, 0x12); + +// {8642DAF8-6EF5-4753-B53F-D83A5CEE8100} +DEFINE_GUID(IID_IDataModelManager3, 0x8642daf8, 0x6ef5, 0x4753, 0xb5, 0x3f, 0xd8, 0x3a, 0x5c, 0xee, 0x81, 0x00); + +// {8898AD97-3A2E-421C-953F-035E15426B7C} +DEFINE_GUID(IID_IDataModelManager4, 0x8898ad97, 0x3a2e, 0x421c, 0x95, 0x3f, 0x03, 0x5e, 0x15, 0x42, 0x6b, 0x7c); + +// {5253DCF8-5AFF-4c62-B302-56A289E00998} +DEFINE_GUID(IID_IModelKeyReference, 0x5253dcf8, 0x5aff, 0x4c62, 0xb3, 0x2, 0x56, 0xa2, 0x89, 0xe0, 0x9, 0x98); + +// {5A0C63D9-0526-42b8-960C-9516A3254C85} +DEFINE_GUID(IID_IModelPropertyAccessor, 0x5a0c63d9, 0x526, 0x42b8, 0x96, 0xc, 0x95, 0x16, 0xa3, 0x25, 0x4c, 0x85); + +// {80600C1F-B90B-4896-82AD-1C00207909E8} +DEFINE_GUID(IID_IModelMethod, 0x80600c1f, 0xb90b, 0x4896, 0x82, 0xad, 0x1c, 0x0, 0x20, 0x79, 0x9, 0xe8); + +// {345FA92E-5E00-4319-9CAE-971F7601CDCF} +DEFINE_GUID(IID_IKeyEnumerator, 0x345fa92e, 0x5e00, 0x4319, 0x9c, 0xae, 0x97, 0x1f, 0x76, 0x1, 0xcd, 0xcf); + +// {E13613F9-3A3C-40b5-8F48-1E5EBFB9B21B} +DEFINE_GUID(IID_IRawEnumerator, 0xe13613f9, 0x3a3c, 0x40b5, 0x8f, 0x48, 0x1e, 0x5e, 0xbf, 0xb9, 0xb2, 0x1b); + +// {FCB98D1D-1114-4fbf-B24C-EFFCB5DEF0D3} +DEFINE_GUID(IID_IDataModelConcept, 0xfcb98d1d, 0x1114, 0x4fbf, 0xb2, 0x4c, 0xef, 0xfc, 0xb5, 0xde, 0xf0, 0xd3); + +// {47BBFC0B-0B20-4E0C-882B-465D6CCAC97C} +DEFINE_GUID(IID_INamedModelsEnumerator, 0x47bbfc0b, 0x0b20, 0x4e0c, 0x88, 0x2b, 0x46, 0x5d, 0x6c, 0xca, 0xc9, 0x7c); + +// {D28E8D70-6C00-4205-940D-501016601EA3} +DEFINE_GUID(IID_IStringDisplayableConcept, 0xd28e8d70, 0x6c00, 0x4205, 0x94, 0xd, 0x50, 0x10, 0x16, 0x60, 0x1e, 0xa3); + +// {C7371568-5C78-4A00-A4AB-6EF8823184CB} +DEFINE_GUID(IID_ICodeAddressConcept, 0xc7371568, 0x5c78, 0x4a00, 0xa4, 0xab, 0x6e, 0xf8, 0x82, 0x31,0x84, 0xcb); + +// {A4952C59-7144-4c76-873B-6046C0955FFC} +DEFINE_GUID(IID_IObjectWrapperConcept, 0xa4952c59, 0x7144, 0x4c76, 0x87, 0x3b, 0x60, 0x46, 0xc0, 0x95, 0x5f, 0xfc); + +// {E4622136-927D-4490-874F-581F3E4E3688} +DEFINE_GUID(IID_IModelIterator, 0xe4622136, 0x927d, 0x4490, 0x87, 0x4f, 0x58, 0x1f, 0x3e, 0x4e, 0x36, 0x88); + +// {F5D49D0C-0B02-4301-9C9B-B3A6037628F3} +DEFINE_GUID(IID_IIterableConcept, 0xf5d49d0c, 0xb02, 0x4301, 0x9c, 0x9b, 0xb3, 0xa6, 0x3, 0x76, 0x28, 0xf3); + +// {D1FAD99F-3F53-4457-850C-8051DF2D3FB5} +DEFINE_GUID(IID_IIndexableConcept, 0xd1fad99f, 0x3f53, 0x4457, 0x85, 0xc, 0x80, 0x51, 0xdf, 0x2d, 0x3f, 0xb5); + +// {9D6C1D7B-A76F-4618-8068-5F76BD9A4E8A} +DEFINE_GUID(IID_IPreferredRuntimeTypeConcept, 0x9d6c1d7b, 0xa76f, 0x4618, 0x80, 0x68, 0x5f, 0x76, 0xbd, 0x9a, 0x4e, 0x8a); + +// {B8C74943-6B2C-4eeb-B5C5-35D378A6D99D} +DEFINE_GUID(IID_IDebugHost, 0xb8c74943, 0x6b2c, 0x4eeb, 0xb5, 0xc5, 0x35, 0xd3, 0x78, 0xa6, 0xd9, 0x9d); + +// {A68C70D8-5EC0-46e5-B775-3134A48EA2E3} +DEFINE_GUID(IID_IDebugHostContext, 0xa68c70d8, 0x5ec0, 0x46e5, 0xb7, 0x75, 0x31, 0x34, 0xa4, 0x8e, 0xa2, 0xe3); + +// {E92274A2-47F4-4538-A196-B83DB25fE403} +DEFINE_GUID(IID_IDebugHostContext2, 0xe92274a2, 0x47f4, 0x4538, 0xa1, 0x96, 0xb8, 0x3d, 0xb2, 0x5f, 0xe4, 0x03); + +// {5E67115D-5449-4553-A9E9-CA446578CAB2} +DEFINE_GUID(IID_IDebugHostContextExtension, 0x5e67115d, 0x5449, 0x4553, 0xa9, 0xe9, 0xca, 0x44, 0x65, 0x78, 0xca, 0xb2); + +// {35AE8E40-F234-4ef1-B8EA-0DFBC58A2043} +DEFINE_GUID(IID_IDebugHostContextExtensibility, 0x35ae8e40, 0xf234, 0x4ef1, 0xb8, 0xea, 0xd, 0xfb, 0xc5, 0x8a, 0x20, 0x43); + +// {EEB8FB43-B44E-4B0F-B871-65F0886FCAF2} +DEFINE_GUID(IID_IDebugHostContextControl, 0xeeb8fb43, 0xb44e, 0x4b0f, 0xb8, 0x71, 0x65, 0xf0, 0x88, 0x6f, 0xca, 0xf2); + +// {6301EEE8-85E3-4058-A7C0-D37E0EA65F75} +DEFINE_GUID(IID_IDebugHostContextAlternator, 0x6301eee8, 0x85e3, 0x4058, 0xa7, 0xc0, 0xd3, 0x7e, 0x0e, 0xa6, 0x5f, 0x75); + +// {854FD751-C2E1-4eb2-B525-6619CB97A588} +DEFINE_GUID(IID_IDebugHostSymbols, 0x854fd751, 0xc2e1, 0x4eb2, 0xb5, 0x25, 0x66, 0x19, 0xcb, 0x97, 0xa5, 0x88); + +// {6BAF1F48-65EE-4ff2-B3AF-10C7F21D38B2} +DEFINE_GUID(IID_IDebugHostSymbols2, 0x6baf1f48, 0x65ee, 0x4ff2, 0xb3, 0xaf, 0x10, 0xc7, 0xf2, 0x1d, 0x38, 0xb2); + +// {212149C9-9183-4a3e-B00E-4FD1DC95339B} +DEFINE_GUID(IID_IDebugHostMemory, 0x212149c9, 0x9183, 0x4a3e, 0xb0, 0xe, 0x4f, 0xd1, 0xdc, 0x95, 0x33, 0x9b); + +// {EEA033DE-38F6-416b-A251-1D3771001270} +DEFINE_GUID(IID_IDebugHostMemory2, 0xeea033de, 0x38f6, 0x416b, 0xa2, 0x51, 0x1d, 0x37, 0x71, 0x0, 0x12, 0x70); + +// {A515ED09-2BF3-4499-BB03-553790079F84} +DEFINE_GUID(IID_IDebugHostMemory3, 0xa515ed09, 0x2bf3, 0x4499, 0xbb, 0x3, 0x55, 0x37, 0x90, 0x7, 0x9f, 0x84); + +// {FE6B3658-DA4B-44e3-8A58-6201322280E6} +DEFINE_GUID(IID_IDebugHostMemory4, 0xfe6b3658, 0xda4b, 0x44e3, 0x8a, 0x58, 0x62, 0x1, 0x32, 0x22, 0x80, 0xe6); + +// {DF033400-4912-46e9-BA62-6EF2EB4D87D4} +DEFINE_GUID(IID_IDebugHostMemory5, 0xdf033400, 0x4912, 0x46e9, 0xba, 0x62, 0x6e, 0xf2, 0xeb, 0x4d, 0x87, 0xd4); + +// {0F819103-87DE-4e96-8277-E05CD441FB22} +DEFINE_GUID(IID_IDebugHostSymbol, 0xf819103, 0x87de, 0x4e96, 0x82, 0x77, 0xe0, 0x5c, 0xd4, 0x41, 0xfb, 0x22); + +// {21515B67-6720-4257-8A68-077DC944471C} +DEFINE_GUID(IID_IDebugHostSymbol2, 0x21515b67, 0x6720, 0x4257, 0x8a, 0x68, 0x7, 0x7d, 0xc9, 0x44, 0x47, 0x1c); + +// {1B3FC1B3-D03D-43e0-8EB0-9AA4BAA21EDB} +DEFINE_GUID(IID_IDebugHostSymbol3, 0x1b3fc1b3, 0xd03d, 0x43e0, 0x8e, 0xb0, 0x9a, 0xa4, 0xba, 0xa2, 0x1e, 0xdb); + +// {28D96C86-10A3-4976-B14E-EAEF4790AA1F} +DEFINE_GUID(IID_IDebugHostSymbolEnumerator, 0x28d96c86, 0x10a3, 0x4976, 0xb1, 0x4e, 0xea, 0xef, 0x47, 0x90, 0xaa, 0x1f); + +// {D49EECE8-8D12-4ce1-AB73-E5B63DF4F9D3} +DEFINE_GUID(IID_IDebugHostSymbolSubstitutionEnumerator, 0xd49eece8, 0x8d12, 0x4ce1, 0xab, 0x73, 0xe5, 0xb6, 0x3d, 0xf4, 0xf9, 0xd3); + +// {C9BA3E18-D070-4378-BBD0-34613B346E1E} +DEFINE_GUID(IID_IDebugHostModule, 0xc9ba3e18, 0xd070, 0x4378, 0xbb, 0xd0, 0x34, 0x61, 0x3b, 0x34, 0x6e, 0x1e); + +// {B51887E8-BCD0-4e8f-A8C7-434398B78C37} +DEFINE_GUID(IID_IDebugHostModule2, 0xb51887e8, 0xbcd0, 0x4e8f, 0xa8, 0xc7, 0x43, 0x43, 0x98, 0xb7, 0x8c, 0x37); + +// {68576417-9fAB-4C69-8977-3A4D87CF08FD} +DEFINE_GUID(IID_IDebugHostModule3, 0x68576417, 0x9fab, 0x4c69, 0x89, 0x77, 0x3a, 0x4d, 0x87, 0xcf, 0x08, 0xfd); + +// {41415136-38A4-474f-8E98-57E2DC64E565} +DEFINE_GUID(IID_IDebugHostModule4, 0x41415136, 0x38a4, 0x474f, 0x8e, 0x98, 0x57, 0xe2, 0xdc, 0x64, 0xe5, 0x65); + +// {ED36A63D-AD2B-467e-A0CA-4CA949357625} +DEFINE_GUID(IID_IDebugHostModule5, 0xed36a63d, 0xad2b, 0x467e, 0xa0, 0xca, 0x4c, 0xa9, 0x49, 0x35, 0x76, 0x25); + +// {F219B848-63B2-4a43-A6C9-72ABF25A9711} +DEFINE_GUID(IID_IDebugHostType, 0xf219b848, 0x63b2, 0x4a43, 0xa6, 0xc9, 0x72, 0xab, 0xf2, 0x5a, 0x97, 0x11); + +// {B28632B9-8506-4676-87CE-8F7E05E59876} +DEFINE_GUID(IID_IDebugHostType2, 0xb28632b9, 0x8506, 0x4676, 0x87, 0xce, 0x8f, 0x7e, 0x5, 0xe5, 0x98, 0x76); + +// {8B0409AC-C1BB-433D-887A-ED12C3AF0E7D} +DEFINE_GUID(IID_IDebugHostType3, 0x8b0409ac, 0xc1bb, 0x433d, 0x88, 0x7a, 0xed, 0x12, 0xc3, 0xaf, 0xe, 0x7d); + +// {77D3CDC6-BD55-42BF-A4FD-D9AA60E3C1E1} +DEFINE_GUID(IID_IDebugHostType4, 0x77d3cdc6, 0xbd55, 0x42bf, 0xa4, 0xfd, 0xd9, 0xaa, 0x60, 0xe3, 0xc1, 0xe1); + +// {DB6716CE-8EE8-4C86-89DB-A658915C87F4} +DEFINE_GUID(IID_IDebugHostType5, 0xdb6716ce, 0x8ee8, 0x4c86, 0x89, 0xdb, 0xa6, 0x58, 0x91, 0x5c, 0x87, 0xf4); + +// {08B431ED-F684-4480-8C44-B543AA32CEB0} +DEFINE_GUID(IID_IDebugHostType6, 0x08b431ed, 0xf684, 0x4480, 0x8c, 0x44, 0xb5, 0x43, 0xaa, 0x32, 0xce, 0xb0); + +// {F4A035C0-4CA0-4B6D-BFD2-B378A0DBFE4C} +DEFINE_GUID(IID_IDebugHostTaggedUnionRangeEnumerator, 0xf4a035c0, 0x4ca0, 0x4b6d, 0xbf, 0xd2, 0xb3, 0x78, 0xa0, 0xdb, 0xfe, 0x4c); + +// {62787EDC-FA76-4690-BD71-5E8C3E2937EC} +DEFINE_GUID(IID_IDebugHostConstant, 0x62787edc, 0xfa76, 0x4690, 0xbd, 0x71, 0x5e, 0x8c, 0x3e, 0x29, 0x37, 0xec); + +// {31E53A5A-01EE-4BBB-B899-4B46AE7D595C} +DEFINE_GUID(IID_IDebugHostModuleSignature, 0x31e53a5a, 0x01ee, 0x4bbb, 0xb8, 0x99, 0x4b, 0x46, 0xae, 0x7d, 0x59, 0x5c); + +// {3AADC353-2B14-4abb-9893-5E03458E07EE} +DEFINE_GUID(IID_IDebugHostTypeSignature, 0x3aadc353, 0x2b14, 0x4abb, 0x98, 0x93, 0x5e, 0x3, 0x45, 0x8e, 0x7, 0xee); + +// {E06F6495-16BC-4cc9-B11D-2A6B23FA72F3} +DEFINE_GUID(IID_IDebugHostField, 0xe06f6495, 0x16bc, 0x4cc9, 0xb1, 0x1d, 0x2a, 0x6b, 0x23, 0xfa, 0x72, 0xf3); + +// {99468A0B-EA92-4BD4-9EFE-A266160578CA} +DEFINE_GUID(IID_IDebugHostField2, 0x99468a0b, 0xea92, 0x4bd4, 0x9e, 0xfe, 0xa2, 0x66, 0x16, 0x5, 0x78, 0xca); + +// {A3D64993-826C-44fa-897D-926F2FE7AD0B} +DEFINE_GUID(IID_IDebugHostData, 0xa3d64993, 0x826c, 0x44fa, 0x89, 0x7d, 0x92, 0x6f, 0x2f, 0xe7, 0xad, 0xb); + +// {B94D57D2-390B-40f7-B5B4-B6DB897D974B} +DEFINE_GUID(IID_IDebugHostBaseClass, 0xb94d57d2, 0x390b, 0x40f7, 0xb5, 0xb4, 0xb6, 0xdb, 0x89, 0x7d, 0x97, 0x4b); + +// {435460E2-FD3B-4275-B36C-88EF50188588} +DEFINE_GUID(IID_IDebugHostBaseClass2, 0x435460e2, 0xfd3b, 0x4275, 0xb3, 0x6c, 0x88, 0xef, 0x50, 0x18, 0x85, 0x88); + +// {C8FF0F0B-FCE9-467e-8BB3-5D69EF109C00} +DEFINE_GUID(IID_IDebugHostErrorSink, 0xc8ff0f0b, 0xfce9, 0x467e, 0x8b, 0xb3, 0x5d, 0x69, 0xef, 0x10, 0x9c, 0x0); + +// {0FEF9A21-577E-4997-AC7B-1C4883241D99} +DEFINE_GUID(IID_IDebugHostEvaluator, 0xfef9a21, 0x577e, 0x4997, 0xac, 0x7b, 0x1c, 0x48, 0x83, 0x24, 0x1d, 0x99); + +// {6C597AC9-FB4D-4f6d-9F39-22488539F8F4} +DEFINE_GUID(IID_IDebugHostPublic, 0x6c597ac9, 0xfb4d, 0x4f6d, 0x9f, 0x39, 0x22, 0x48, 0x85, 0x39, 0xf8, 0xf4); + +// {4F3E1CE2-86B2-4C7A-9C65-D0A9D0EECF44} +DEFINE_GUID(IID_IDebugHostStatus, 0x4f3e1ce2, 0x86b2, 0x4c7a, 0x9c, 0x65, 0xd0, 0xa9, 0xd0, 0xee, 0xcf, 0x44); + +// {4A168D3F-04D0-49c4-8F9A-7B5B3108C6C6} +DEFINE_GUID(IID_IDebugHostStatus2, 0x4a168d3f, 0x4d0, 0x49c4, 0x8f, 0x9a, 0x7b, 0x5b, 0x31, 0x8, 0xc6, 0xc6); + +// {3B362B0E-89F0-46c6-A663-DFDC95194AEF} +DEFINE_GUID(IID_IDataModelScriptClient, 0x3b362b0e, 0x89f0, 0x46c6, 0xa6, 0x63, 0xdf, 0xdc, 0x95, 0x19, 0x4a, 0xef); + +// {1303DEC4-FA3B-4F1B-9224-B953D16BABB5} +DEFINE_GUID(IID_IDataModelScriptTemplate, 0x1303dec4, 0xfa3b, 0x4f1b, 0x92, 0x24, 0xb9, 0x53, 0xd1, 0x6b, 0xab, 0xb5); + +// {7B4D30FC-B14A-49f8-8D87-D9A1480C97F7} +DEFINE_GUID(IID_IDataModelScript, 0x7b4d30fc, 0xb14a, 0x49f8, 0x8d, 0x87, 0xd9, 0xa1, 0x48, 0xc, 0x97, 0xf7); + +// {7D90CF81-BEE2-4B91-9D49-8FEC0F7D56D1} +DEFINE_GUID(IID_IDataModelScript2, 0x7d90cf81, 0xbee2, 0x4b91, 0x9d, 0x49, 0x8f, 0xec, 0xf, 0x7d, 0x56, 0xd1); + +// {513461E0-4FCA-48ce-8658-32F3E2056F3B} +DEFINE_GUID(IID_IDataModelScriptProvider, 0x513461e0, 0x4fca, 0x48ce, 0x86, 0x58, 0x32, 0xf3, 0xe2, 0x5, 0x6f, 0x3b); + +// {6FD11E33-E5AD-410b-8011-68C6BC4BF80D} +DEFINE_GUID(IID_IDataModelScriptManager, 0x6fd11e33, 0xe5ad, 0x410b, 0x80, 0x11, 0x68, 0xc6, 0xbc, 0x4b, 0xf8, 0xd); + +// {95BA00E2-704A-4fe2-A8F1-A7E7D8FB0941} +DEFINE_GUID(IID_IDataModelScriptProviderEnumerator, 0x95ba00e2, 0x704a, 0x4fe2, 0xa8, 0xf1, 0xa7, 0xe7, 0xd8, 0xfb, 0x9, 0x41); + +// {B70334A4-B92C-4570-93A1-D3EB686649A0} +DEFINE_GUID(IID_IDebugHostScriptHost, 0xb70334a4, 0xb92c, 0x4570, 0x93, 0xa1, 0xd3, 0xeb, 0x68, 0x66, 0x49, 0xa0); + +// {014D366A-1F23-4981-9219-B2DB8B402054} +DEFINE_GUID(IID_IDataModelScriptHostContext, 0x14d366a, 0x1f23, 0x4981, 0x92, 0x19, 0xb2, 0xdb, 0x8b, 0x40, 0x20, 0x54); + +// {AF352B7B-8292-4c01-B360-2DC3696C65E7} +DEFINE_GUID(IID_IDataModelNameBinder, 0xaf352b7b, 0x8292, 0x4c01, 0xb3, 0x60, 0x2d, 0xc3, 0x69, 0x6c, 0x65, 0xe7); + +// {E7983FA1-80A7-498c-988F-518DDC5D4025} +DEFINE_GUID(IID_IDynamicKeyProviderConcept, 0xe7983fa1, 0x80a7, 0x498c, 0x98, 0x8f, 0x51, 0x8d, 0xdc, 0x5d, 0x40, 0x25); + +// {95A7F7DD-602E-483f-9D06-A15C0EE13174} +DEFINE_GUID(IID_IDynamicConceptProviderConcept, 0x95a7f7dd, 0x602e, 0x483f, 0x9d, 0x6, 0xa1, 0x5c, 0xe, 0xe1, 0x31, 0x74); + +// {69CE6AE2-2268-4e6f-B062-20CE62BFE677} +DEFINE_GUID(IID_IDataModelScriptTemplateEnumerator, 0x69ce6ae2, 0x2268, 0x4e6f, 0xb0, 0x62, 0x20, 0xce, 0x62, 0xbf, 0xe6, 0x77); + +// {80E2F7C5-7159-4e92-887E-7E0347E88406} +DEFINE_GUID(IID_IModelKeyReference2, 0x80e2f7c5, 0x7159, 0x4e92, 0x88, 0x7e, 0x7e, 0x3, 0x47, 0xe8, 0x84, 0x6); + +// {A117A435-1FB4-4092-A2AB-A929576C1E87} +DEFINE_GUID(IID_IDebugHostEvaluator2, 0xa117a435, 0x1fb4, 0x4092, 0xa2, 0xab, 0xa9, 0x29, 0x57, 0x6c, 0x1e, 0x87); + +// {D2419F4A-7E8D-4C15-A499-73902B015ABB} +DEFINE_GUID(IID_IDebugHostEvaluator3, 0xd2419f4a, 0x7e8d, 0x4c15, 0xa4, 0x99, 0x73, 0x90, 0x2b, 0x1, 0x5a, 0xbb); + +// {3C2B24E1-11D0-4f86-8AE5-4DF166F73253} +DEFINE_GUID(IID_IDebugHostExtensibility, 0x3c2b24e1, 0x11d0, 0x4f86, 0x8a, 0xe5, 0x4d, 0xf1, 0x66, 0xf7, 0x32, 0x53); + +// {91CC55E7-2A22-4494-9710-B729DAB48F71} +DEFINE_GUID(IID_IDebugHostExtensibility2, 0x91cc55e7, 0x2a22, 0x4494, 0x97, 0x10, 0xb7, 0x29, 0xda, 0xb4, 0x8f, 0x71); + +// {4BE234DE-D397-4378-BBB4-9055A425D7D1} +DEFINE_GUID(IID_IDebugHostExtensibility3, 0x4be234de, 0xd397, 0x4378, 0xbb, 0xb4, 0x90, 0x55, 0xa4, 0x25, 0xd7, 0xd1); + +// {DE8E0945-9750-4471-AB76-A8F79D6EC350} +DEFINE_GUID(IID_IDataModelScriptDebug, 0xde8e0945, 0x9750, 0x4471, 0xab, 0x76, 0xa8, 0xf7, 0x9d, 0x6e, 0xc3, 0x50); + +// {53159B6D-D4C4-471b-A863-5B110CA800CA} +DEFINE_GUID(IID_IDataModelScriptDebugClient, 0x53159b6d, 0xd4c4, 0x471b, 0xa8, 0x63, 0x5b, 0x11, 0xc, 0xa8, 0x0, 0xca); + +// {051364DD-E449-443e-9762-FE578F4A5473} +DEFINE_GUID(IID_IDataModelScriptDebugStack, 0x51364dd, 0xe449, 0x443e, 0x97, 0x62, 0xfe, 0x57, 0x8f, 0x4a, 0x54, 0x73); + +// {DEC6ED5E-6360-4941-AB4C-A26409DE4F82} +DEFINE_GUID(IID_IDataModelScriptDebugStackFrame, 0xdec6ed5e, 0x6360, 0x4941, 0xab, 0x4c, 0xa2, 0x64, 0x9, 0xde, 0x4f, 0x82); + +// {0F9FEED7-D045-4ac3-98A8-A98942CF6A35} +DEFINE_GUID(IID_IDataModelScriptDebugVariableSetEnumerator, 0xf9feed7, 0xd045, 0x4ac3, 0x98, 0xa8, 0xa9, 0x89, 0x42, 0xcf, 0x6a, 0x35); + +// {6BB27B35-02E6-47cb-90A0-5371244032DE} +DEFINE_GUID(IID_IDataModelScriptDebugBreakpoint, 0x6bb27b35, 0x2e6, 0x47cb, 0x90, 0xa0, 0x53, 0x71, 0x24, 0x40, 0x32, 0xde); + +// {39484A75-B4F3-4799-86DA-691AFA57B299} +DEFINE_GUID(IID_IDataModelScriptDebugBreakpointEnumerator, 0x39484a75, 0xb4f3, 0x4799, 0x86, 0xda, 0x69, 0x1a, 0xfa, 0x57, 0xb2, 0x99); + +// {CBB10ED3-839E-426c-9243-E23535C1AE1A} +DEFINE_GUID(IID_IDataModelScriptDebug2, 0xcbb10ed3, 0x839e, 0x426c, 0x92, 0x43, 0xe2, 0x35, 0x35, 0xc1, 0xae, 0x1a); + +// {A7830646-9F0C-4a31-BA19-503F33E6C8A3} +DEFINE_GUID(IID_IComparableConcept, 0xa7830646, 0x9f0c, 0x4a31, 0xba, 0x19, 0x50, 0x3f, 0x33, 0xe6, 0xc8, 0xa3); + +// {C52D5D3D-609D-4d5d-8A82-46B0ACDEC4F4} +DEFINE_GUID(IID_IEquatableConcept, 0xc52d5d3d, 0x609d, 0x4d5d, 0x8a, 0x82, 0x46, 0xb0, 0xac, 0xde, 0xc4, 0xf4); + +// {2CD9906F-F1B3-4463-828A-0ADDAFE8BAAE} +DEFINE_GUID(IID_IActionableConcept, 0x2cd9906f, 0xf1b3, 0x4463, 0x82, 0x8a, 0xa, 0xdd, 0xaf, 0xe8, 0xba, 0xae); + +// {7FC09C9F-632D-48e8-A97B-2F4F2E5C1161} +DEFINE_GUID(IID_IActionQueryConcept, 0x7fc09c9f, 0x632d, 0x48e8, 0xa9, 0x7b, 0x2f, 0x4f, 0x2e, 0x5c, 0x11, 0x61); + +// {3DEC5C44-F63A-4ca6-90F0-FD5C269FDA59} +DEFINE_GUID(IID_IActionEnumerator, 0x3dec5c44, 0xf63a, 0x4ca6, 0x90, 0xf0, 0xfd, 0x5c, 0x26, 0x9f, 0xda, 0x59); + +// {1A9409F1-F0E0-4b48-9A4E-5783548FB57A} +DEFINE_GUID(IID_IConstructableConcept, 0x1a9409f1, 0xf0e0, 0x4b48, 0x9a, 0x4e, 0x57, 0x83, 0x54, 0x8f, 0xb5, 0x7a); + +// {F798139E-1B2C-4077-8D87-9FA5D044F3EB} +DEFINE_GUID(IID_IDeconstructableConcept, 0xf798139e, 0x1b2c, 0x4077, 0x8d, 0x87, 0x9f, 0xa5, 0xd0, 0x44, 0xf3, 0xeb); + +// {A754393C-4FBE-4178-8AD5-FE6079AC048D} +DEFINE_GUID(IID_IDebugHostFunctionIntrospection, 0xa754393c, 0x4fbe, 0x4178, 0x8a, 0xd5, 0xfe, 0x60, 0x79, 0xac, 0x04, 0x8d); + +// {8E1CB118-AA83-409a-AAE9-C7FF78911A5F} +DEFINE_GUID(IID_IDebugHostFunctionIntrospection2, 0x8e1cb118, 0xaa83, 0x409a, 0xaa, 0xe9, 0xc7, 0xff, 0x78, 0x91, 0x1a, 0x5f); + +// {A24E286B-891A-40fc-8A3A-89B66EDDCE57} +DEFINE_GUID(IID_IDebugHostFunctionIntrospection3, 0xa24e286b, 0x891a, 0x40fc, 0x8a, 0x3a, 0x89, 0xb6, 0x6e, 0xdd, 0xce, 0x57); + +// {A61ADC36-1ED5-40fe-A976-6A21CD81E811} +DEFINE_GUID(IID_IDebugHostFunctionLocalDetailsEnumerator, 0xa61adc36, 0x1ed5, 0x40fe, 0xa9, 0x76, 0x6a, 0x21, 0xcd, 0x81, 0xe8, 0x11); + +// {89280EA8-B3B9-408c-BE16-32AB28F5C0AC} +DEFINE_GUID(IID_IDebugHostFunctionLocalDetails, 0x89280ea8, 0xb3b9, 0x408c, 0xbe, 0x16, 0x32, 0xab, 0x28, 0xf5, 0xc0, 0xac); + +// {199A57B0-1967-4363-B25E-90C7E8A07F22} +DEFINE_GUID(IID_IDebugHostFunctionLocalDetails2, 0x199a57b0, 0x1967, 0x4363, 0xb2, 0x5e, 0x90, 0xc7, 0xe8, 0xa0, 0x7f, 0x22); + +// {026C9E81-8B9F-4d32-9606-A394EC62B045} +DEFINE_GUID(IID_IDebugHostFunctionLocalStorageEnumerator, 0x26c9e81, 0x8b9f, 0x4d32, 0x96, 0x6, 0xa3, 0x94, 0xec, 0x62, 0xb0, 0x45); + +// {2F2F303B-39BE-4b6d-9BFB-4FAA49DBBD45} +DEFINE_GUID(IID_IDebugHostFunctionLocalStorage, 0x2f2f303b, 0x39be, 0x4b6d, 0x9b, 0xfb, 0x4f, 0xaa, 0x49, 0xdb, 0xbd, 0x45); + +// {213B3725-36A2-45A0-9EA4-854D46D85195} +DEFINE_GUID(IID_IDebugHostFunctionLocalStorageDetails, 0x213b3725, 0x36a2, 0x45a0, 0x9e, 0xa4, 0x85, 0x4d, 0x46, 0xd8, 0x51, 0x95); + +// {63832802-2DB3-4DE7-B76C-197AC15B5EC6} +DEFINE_GUID(IID_IFilteredNamespacePropertyToken, 0x63832802, 0x2db3, 0x4de7, 0xb7, 0x6c, 0x19, 0x7a, 0xc1, 0x5b, 0x5e, 0xc6); + + +struct DECLSPEC_UUID("F2BCE54E-4835-4f8a-836E-7981E29904D1") IHostDataModelAccess; + +struct DECLSPEC_UUID("0FC7557D-401D-4fca-9365-DA1E9850697C") IKeyStore; +struct DECLSPEC_UUID("E28C7893-3F4B-4b96-BACA-293CDC55F45D") IModelObject; +struct DECLSPEC_UUID("D61E19F4-AB3D-4344-9F7B-0993F3D58745") IModelObject2; +struct DECLSPEC_UUID("73FE19F4-A110-4500-8ED9-3C28896F508C") IDataModelManager; +struct DECLSPEC_UUID("F412C5EA-2284-4622-A660-A697160D3312") IDataModelManager2; +struct DECLSPEC_UUID("8642DAF8-6EF5-4753-B53F-D83A5CEE8100") IDataModelManager3; +struct DECLSPEC_UUID("8898AD97-3A2E-421C-953F-035E15426B7C") IDataModelManager4; +struct DECLSPEC_UUID("5253DCF8-5AFF-4c62-B302-56A289E00998") IModelKeyReference; +struct DECLSPEC_UUID("5A0C63D9-0526-42b8-960C-9516A3254C85") IModelPropertyAccessor; +struct DECLSPEC_UUID("80600C1F-B90B-4896-82AD-1C00207909E8") IModelMethod; +struct DECLSPEC_UUID("345FA92E-5E00-4319-9CAE-971F7601CDCF") IKeyEnumerator; +struct DECLSPEC_UUID("E13613F9-3A3C-40b5-8F48-1E5EBFB9B21B") IRawEnumerator; + +struct DECLSPEC_UUID("FCB98D1D-1114-4fbf-B24C-EFFCB5DEF0D3") IDataModelConcept; +struct DECLSPEC_UUID("47BBFC0B-0B20-4E0C-882B-465D6CCAC97C") INamedModelsEnumerator; +struct DECLSPEC_UUID("D28E8D70-6C00-4205-940D-501016601EA3") IStringDisplayableConcept; +struct DECLSPEC_UUID("C7371568-5C78-4A00-A4AB-6EF8823184CB") ICodeAddressConcept; +struct DECLSPEC_UUID("A4952C59-7144-4c76-873B-6046C0955FFC") IObjectWrapperConcept; +struct DECLSPEC_UUID("E4622136-927D-4490-874F-581F3E4E3688") IModelIterator; +struct DECLSPEC_UUID("F5D49D0C-0B02-4301-9C9B-B3A6037628F3") IIterableConcept; +struct DECLSPEC_UUID("D1FAD99F-3F53-4457-850C-8051DF2D3FB5") IIndexableConcept; +struct DECLSPEC_UUID("9D6C1D7B-A76F-4618-8068-5F76BD9A4E8A") IPreferredRuntimeTypeConcept; + +struct DECLSPEC_UUID("B8C74943-6B2C-4eeb-B5C5-35D378A6D99D") IDebugHost; +struct DECLSPEC_UUID("A68C70D8-5EC0-46e5-B775-3134A48EA2E3") IDebugHostContext; +struct DECLSPEC_UUID("E92274A2-47F4-4538-A196-B83DB25fE403") IDebugHostContext2; +struct DECLSPEC_UUID("5E67115D-5449-4553-A9E9-CA446578CAB2") IDebugHostContextExtension; +struct DECLSPEC_UUID("35AE8E40-F234-4ef1-B8EA-0DFBC58A2043") IDebugHostContextExtensibility; +struct DECLSPEC_UUID("EEB8FB43-B44E-4B0F-B871-65F0886FCAF2") IDebugHostContextControl; +struct DECLSPEC_UUID("6301EEE8-85E3-4058-A7C0-D37E0EA65F75") IDebugHostContextAlternator; +struct DECLSPEC_UUID("854FD751-C2E1-4eb2-B525-6619CB97A588") IDebugHostSymbols; +struct DECLSPEC_UUID("6BAF1F48-65EE-4ff2-B3AF-10C7F21D38B2") IDebugHostSymbols2; +struct DECLSPEC_UUID("31E53A5A-01EE-4BBB-B899-4B46AE7D595C") IDebugHostModuleSignature; +struct DECLSPEC_UUID("3AADC353-2B14-4abb-9893-5E03458E07EE") IDebugHostTypeSignature; +struct DECLSPEC_UUID("212149C9-9183-4a3e-B00E-4FD1DC95339B") IDebugHostMemory; +struct DECLSPEC_UUID("EEA033DE-38F6-416b-A251-1D3771001270") IDebugHostMemory2; +struct DECLSPEC_UUID("A515ED09-2BF3-4499-BB03-553790079F84") IDebugHostMemory3; +struct DECLSPEC_UUID("FE6B3658-DA4B-44e3-8A58-6201322280E6") IDebugHostMemory4; +struct DECLSPEC_UUID("DF033400-4912-46e9-BA62-6EF2EB4D87D4") IDebugHostMemory5; +struct DECLSPEC_UUID("C8FF0F0B-FCE9-467e-8BB3-5D69EF109C00") IDebugHostErrorSink; +struct DECLSPEC_UUID("0FEF9A21-577E-4997-AC7B-1C4883241D99") IDebugHostEvaluator; + +struct DECLSPEC_UUID("28D96C86-10A3-4976-B14E-EAEF4790AA1F") IDebugHostSymbolEnumerator; +struct DECLSPEC_UUID("D49EECE8-8D12-4ce1-AB73-E5B63DF4F9D3") IDebugHostSymbolSubstitutionEnumerator; +struct DECLSPEC_UUID("0F819103-87DE-4e96-8277-E05CD441FB22") IDebugHostSymbol; +struct DECLSPEC_UUID("21515B67-6720-4257-8A68-077DC944471C") IDebugHostSymbol2; +struct DECLSPEC_UUID("1B3FC1B3-D03D-43e0-8EB0-9AA4BAA21EDB") IDebugHostSymbol3; +struct DECLSPEC_UUID("C9BA3E18-D070-4378-BBD0-34613B346E1E") IDebugHostModule; +struct DECLSPEC_UUID("B51887E8-BCD0-4e8f-A8C7-434398B78C37") IDebugHostModule2; +struct DECLSPEC_UUID("68576417-9fAB-4C69-8977-3A4D87CF08FD") IDebugHostModule3; +struct DECLSPEC_UUID("41415136-38A4-474f-8E98-57E2DC64E565") IDebugHostModule4; +struct DECLSPEC_UUID("ED36A63D-AD2B-467e-A0CA-4CA949357625") IDebugHostModule5; +struct DECLSPEC_UUID("3AADC353-2B14-4abb-9893-5E03458E07EE") IDebugHostType; +struct DECLSPEC_UUID("B28632B9-8506-4676-87CE-8F7E05E59876") IDebugHostType2; +struct DECLSPEC_UUID("8B0409AC-C1BB-433D-887A-ED12C3AF0E7D") IDebugHostType3; +struct DECLSPEC_UUID("77D3CDC6-BD55-42BF-A4FD-D9AA60E3C1E1") IDebugHostType4; +struct DECLSPEC_UUID("DB6716CE-8EE8-4C86-89DB-A658915C87F4") IDebugHostType5; +struct DECLSPEC_UUID("08B431ED-F684-4480-8C44-B543AA32CEB0") IDebugHostType6; +struct DECLSPEC_UUID("F4A035C0-4CA0-4B6D-BFD2-B378A0DBFE4C") IDebugHostTaggedUnionRangeEnumerator; +struct DECLSPEC_UUID("62787EDC-FA76-4690-BD71-5E8C3E2937EC") IDebugHostConstant; +struct DECLSPEC_UUID("E06F6495-16BC-4cc9-B11D-2A6B23FA72F3") IDebugHostField; +struct DECLSPEC_UUID("99468A0B-EA92-4BD4-9EFE-A266160578CA") IDebugHostField2; +struct DECLSPEC_UUID("A3D64993-826C-44fa-897D-926F2FE7AD0B") IDebugHostData; +struct DECLSPEC_UUID("B94D57D2-390B-40f7-B5B4-B6DB897D974B") IDebugHostBaseClass; +struct DECLSPEC_UUID("435460E2-FD3B-4275-B36C-88EF50188588") IDebugHostBaseClass2; +struct DECLSPEC_UUID("6C597AC9-FB4D-4f6d-9F39-22488539F8F4") IDebugHostPublic; + +struct DECLSPEC_UUID("4F3E1CE2-86B2-4C7A-9C65-D0A9D0EECF44") IDebugHostStatus; +struct DECLSPEC_UUID("4A168D3F-04D0-49c4-8F9A-7B5B3108C6C6") IDebugHostStatus2; +struct DECLSPEC_UUID("3B362B0E-89F0-46c6-A663-DFDC95194AEF") IDataModelScriptClient; +struct DECLSPEC_UUID("1303DEC4-FA3B-4F1B-9224-B953D16BABB5") IDataModelScriptTemplate; +struct DECLSPEC_UUID("7B4D30FC-B14A-49f8-8D87-D9A1480C97F7") IDataModelScript; +struct DECLSPEC_UUID("7D90CF81-BEE2-4B91-9D49-8FEC0F7D56D1") IDataModelScript2; + +struct DECLSPEC_UUID("513461E0-4FCA-48ce-8658-32F3E2056F3B") IDataModelScriptProvider; +struct DECLSPEC_UUID("6FD11E33-E5AD-410b-8011-68C6BC4BF80D") IDataModelScriptManager; +struct DECLSPEC_UUID("95BA00E2-704A-4fe2-A8F1-A7E7D8FB0941") IDataModelScriptProviderEnumerator; +struct DECLSPEC_UUID("B70334A4-B92C-4570-93A1-D3EB686649A0") IDebugHostScriptHost; +struct DECLSPEC_UUID("014D366A-1F23-4981-9219-B2DB8B402054") IDataModelScriptHostContext; +struct DECLSPEC_UUID("AF352B7B-8292-4c01-B360-2DC3696C65E7") IDataModelNameBinder; +struct DECLSPEC_UUID("69CE6AE2-2268-4e6f-B062-20CE62BFE677") IDataModelScriptTemplateEnumerator; + +struct DECLSPEC_UUID("E7983FA1-80A7-498c-988F-518DDC5D4025") IDynamicKeyProviderConcept; +struct DECLSPEC_UUID("95A7F7DD-602E-483f-9D06-A15C0EE13174") IDynamicConceptProviderConcept; +struct DECLSPEC_UUID("80E2F7C5-7159-4e92-887E-7E0347E88406") IModelKeyReference2; +struct DECLSPEC_UUID("A117A435-1FB4-4092-A2AB-A929576C1E87") IDebugHostEvaluator2; +struct DECLSPEC_UUID("D2419F4A-7E8D-4C15-A499-73902B015ABB") IDebugHostEvaluator3; + +struct DECLSPEC_UUID("3C2B24E1-11D0-4f86-8AE5-4DF166F73253") IDebugHostExtensibility; +struct DECLSPEC_UUID("91CC55E7-2A22-4494-9710-B729DAB48F71") IDebugHostExtensibility2; +struct DECLSPEC_UUID("4BE234DE-D397-4378-BBB4-9055A425D7D1") IDebugHostExtensibility3; + +struct DECLSPEC_UUID("DE8E0945-9750-4471-AB76-A8F79D6EC350") IDataModelScriptDebug; +struct DECLSPEC_UUID("53159B6D-D4C4-471b-A863-5B110CA800CA") IDataModelScriptDebugClient; +struct DECLSPEC_UUID("051364DD-E449-443e-9762-FE578F4A5473") IDataModelScriptDebugStack; +struct DECLSPEC_UUID("DEC6ED5E-6360-4941-AB4C-A26409DE4F82") IDataModelScriptDebugStackFrame; +struct DECLSPEC_UUID("0F9FEED7-D045-4ac3-98A8-A98942CF6A35") IDataModelScriptDebugVariableSetEnumerator; +struct DECLSPEC_UUID("6BB27B35-02E6-47cb-90A0-5371244032DE") IDataModelScriptDebugBreakpoint; +struct DECLSPEC_UUID("39484A75-B4F3-4799-86DA-691AFA57B299") IDataModelScriptDebugBreakpointEnumerator; +struct DECLSPEC_UUID("CBB10ED3-839E-426c-9243-E23535C1AE1A") IDataModelScriptDebug2; + +struct DECLSPEC_UUID("A7830646-9F0C-4a31-BA19-503F33E6C8A3") IComparableConcept; +struct DECLSPEC_UUID("C52D5D3D-609D-4d5d-8A82-46B0ACDEC4F4") IEquatableConcept; + +struct DECLSPEC_UUID("2CD9906F-F1B3-4463-828A-0ADDAFE8BAAE") IActionableConcept; +struct DECLSPEC_UUID("7FC09C9F-632D-48e8-A97B-2F4F2E5C1161") IActionQueryConcept; +struct DECLSPEC_UUID("3DEC5C44-F63A-4ca6-90F0-FD5C269FDA59") IActionEnumerator; +struct DECLSPEC_UUID("1A9409F1-F0E0-4b48-9A4E-5783548FB57A") IConstructableConcept; +struct DECLSPEC_UUID("F798139E-1B2C-4077-8D87-9FA5D044F3EB") IDeconstructableConcept; + +struct DECLSPEC_UUID("A754393C-4FBE-4178-8AD5-FE6079AC048D") IDebugHostFunctionIntrospection; +struct DECLSPEC_UUID("8E1CB118-AA83-409a-AAE9-C7FF78911A5F") IDebugHostFunctionIntrospection2; +struct DECLSPEC_UUID("A24E286B-891A-40fc-8A3A-89B66EDDCE57") IDebugHostFunctionIntrospection3; +struct DECLSPEC_UUID("A61ADC36-1ED5-40fe-A976-6A21CD81E811") IDebugHostFunctionLocalDetailsEnumerator; +struct DECLSPEC_UUID("89280EA8-B3B9-408c-BE16-32AB28F5C0AC") IDebugHostFunctionLocalDetails; +struct DECLSPEC_UUID("199A57B0-1967-4363-B25E-90C7E8A07F22") IDebugHostFunctionLocalDetails2; +struct DECLSPEC_UUID("026C9E81-8B9F-4d32-9606-A394EC62B045") IDebugHostFunctionLocalStorageEnumerator; +struct DECLSPEC_UUID("2F2F303B-39BE-4b6d-9BFB-4FAA49DBBD45") IDebugHostFunctionLocalStorage; +struct DECLSPEC_UUID("213B3725-36A2-45A0-9EA4-854D46D85195") IDebugHostFunctionLocalStorage2; + +struct DECLSPEC_UUID("63832802-2DB3-4DE7-B76C-197AC15B5EC6") IFilteredNamespacePropertyToken; + +// +// ModelObjectKind: +// +// Describes what an IModelObject is intrinsically. +// +enum ModelObjectKind +{ + // The model object is a property accessor which can be called to retrieve value, etc... + // + // Calling GetIntrinsicValue on the object will yield a variant in which the punkVal + // IUnknown pointer is an IModelPropertyAccessor. + // + ObjectPropertyAccessor, + + // The model object is a wrapped host context (allowing such to be used as an indexer, etc...) + // + // Calling GetIntrinsicValue on the object will yield a variant in which the punkVal + // IUnknown pointer is an IDebugHostContext. + // + ObjectContext, + + // It's a typed object within the debuggee. It may or may not have a model associated with it. + // If it has a model, key/value pairs may be associated. + // + // This object type has no "intrinsic value". It always has a location which can be acquired. + // + ObjectTargetObject, + + // It's a reference to an object within the debuggee (e.g.: the object *REFERS TO* a "target int" or a + // "target int&"). This is distinct from an object within the debuggee which is a reference (e.g.: + // the object *IS* a "target int&"). + // + // This allows an evaluator or other client of the model to take a "reference" to a "reference" + // (object reference to a int&) or to take a "reference" to an object which is enregistered. + // + // This object type has no "intrinsic value". It always has a location which can be acquired. + // The underlying object can be acquired through the Dereference method. + // + ObjectTargetObjectReference, + + // The model object is a synthetic object (a key/value/metadata store) + // + // This object type has no "intrinsic value" or location. It is purely a key/value/metadata store. + // + ObjectSynthetic, + + // The model object represents no value. If a given key exists but only has a value conditionally (e.g.: it's + // a property accessor), it can return NoValue to indicate this. The caller should treat this appropriately (e.g.: + // not displaying the key/value in a visualization, etc...) + // + // This object type has no "intrinsic value" or location. + // + ObjectNoValue, + + // The model object represents an error. + // + // This object type has no "intrinsci value" or location. It can always be converted to a string to determine + // the error message. + // + ObjectError, + + // The type is an intrinsic which is communicated through a variant (and the resulting variant type) + // + // Calling GetIntrinsicValue on this type will yield a variant in which the value has been packed in + // its natural form. String objects are packed as VT_BSTR. + // + ObjectIntrinsic, + + // The model object is a method which can be called. + // + // Calling GetIntrinsicValue on the object will yield a variant in which the punkVal + // IUnknown pointer is an IModelMethod. + // + ObjectMethod, + + // The model object is a key reference. + // + // Calling GetIntrinsicValue on the object will yield a variant in which the punkVal + // IUnknown pointer is an IKeyReference. + // + ObjectKeyReference, + +}; + +// SymbolKind: +// +// Defines the kind of a symbol. +// +enum SymbolKind +{ + // Unspecified symbol type. + Symbol, + + // The symbol is a module and is QI'able for IDebugHostModule + SymbolModule, + + // The symbol is a type and is QI'able for IDebugHostType + SymbolType, + + // The symbol is a field and is QI'able for IDebugHostField + SymbolField, + + // The symbol is a constant and is QI'able for IDebugHostConstant + SymbolConstant, + + // The symbol is data which is not a field of a structure and is QI'able for IDebugHostData + SymbolData, + + // The symbol is a base class and is QI'able for IDebugHostBaseClass + SymbolBaseClass, + + // The symbol is a public symbol and is QI'able for IDebugHostPublic + SymbolPublic, + + // The symbol is a function symbol and is QI'able for IDebugHostData + SymbolFunction, +}; + +// TypeKind: +// +// Defines the kind of a type. +// +enum TypeKind +{ + // The type is a UDT (user defined type -- a struct, class, etc...) + // + // The canonical form of an IModelObject which represents a UDT *value* is + // ObjectTargetObject where the type is always kept. + // + TypeUDT, + + // The type is a pointer + // + // The canonical form of an IModelObject which represents a pointer *value* is + // ObjectIntrinsic where the type is always kept. The value of the pointer + // is zero extended to 64-bits and can be retrieved with a fetch of the intrinsic + // value of the object. The value is packed into the VT_UI8 (ullVal) field of + // the object's variant data. + // + // The base type of a pointer as returned by GetBaseType() is the type pointed to. + // + TypePointer, + + // The type is a member pointer + // + // The canonical form of an IModelObject which represents a member pointer *value* is + // much the same as that of pointer. The specific meaning of the intrinsic value + // packed into the variant is compiler specific. + // + TypeMemberPointer, + + // The type is an array + // + // The canonical form of an IModelObject which represents an array *value* is + // ObjectTargetObject where the type is always kept. The array is always referred + // to by a location which can be retrieved via the object's GetLocation() method. + // The actual array is not packed into the model object. + // + // The base type of an array as returned by GetBaseType() is the type of each element + // of the array. + // + TypeArray, + + // The type is a function + TypeFunction, + + // ************************************************************************** + // This entry is **DEPRECATED**. + // ************************************************************************** + // + // The canonical form of an IModelObject which is a typedef is the same as the canonical + // form of whatever the typedef is for. A typedef will appear completely transparent to + // the user of the object and the type information unless the explicit typedef methods of + // IDebugHostType2 are utilized to query typedef information or there is an explicit data + // model registered against the typedef. + // + TypeTypedef, + + // The type is an enum + // + // The canonical form of an IModelObject which represents an enum *value* is + // ObjectIntrinsic where the type is always kept. The value is packed into + // the appropriate type in the object's variant data as described by the + // storage type of the enumeration. + // + TypeEnum, + + // The type is an intrinsic (basic type) + // + // The canonical form of an IModelObject which represents an intrinsic *value* is + // ObjectIntrinsic. The value is packed into the appropriate tyep in the object's + // variant data as indicated by the kind of intrinsic. + // + // Note that keeping the type information associated with the IModelObject is optional + // if the underlying type is fully described by the variant data type (VT_*). + // + TypeIntrinsic, + + // The type is an array which cannot be expressed as TypeArray. + // + // This is due to things such as dynamic sizes, dynamic bounds, etc... CLI arrays are + // represented as TypeExtendedArray. + // + TypeExtendedArray +}; + +// IntrinsicKind: +// +// Defines the kind of an intrinsic (basic) type. This is distinct from the variant type +// which carries the type. +// +enum IntrinsicKind +{ + // void + IntrinsicVoid, + + // bool + IntrinsicBool, + + // char + IntrinsicChar, + + // wchar_t + IntrinsicWChar, + + // signed int (of some size -- not necessarily 4 bytes) + IntrinsicInt, + + // unsigned int (of some size -- not necessarily 4 bytes) + IntrinsicUInt, + + // long (of some size) + IntrinsicLong, + + // unsigned long (of some size) + IntrinsicULong, + + // floating point (of some size -- not necessarily 4 bytes) + IntrinsicFloat, + + // HRESULT + IntrinsicHRESULT, + + // char16_t + IntrinsicChar16, + + // char32_t + IntrinsicChar32 + +}; + +// PointerKind: +// +// Defines the kind of a pointer type. +// +enum PointerKind +{ + // * + PointerStandard, + + // & + PointerReference, + + // && + PointerRValueReference, + + // ^ + PointerCXHat, + + // CLI reference (invisible to the user) + PointerManagedReference +}; + +// CallingConventionKind: +// +// Defines the kind of calling convention of a function type. +// +enum CallingConventionKind +{ + // The calling convention is not known + CallingConventionUnknown, + + // The calling convention is __cdecl + CallingConventionCDecl, + + // The calling convention is fastcall + CallingConventionFastCall, + + // The calling convention is stdcall + CallingConventionStdCall, + + // The calling convention is syscall + CallingConventionSysCall, + + // The calling convention is thiscall + CallingConventionThisCall, + +}; + +// LocationKind: +// +// Defines the location of a field or other data. +// +enum LocationKind +{ + // The field is a member and has an offset relative to the this pointer + LocationMember, + + // The field is static and has an address + LocationStatic, + + // The field is constant and has a value + LocationConstant, + + // The field has no location (e.g.: it has been optimized out or was a static which was defined but not + // declared) + LocationNone, +}; + +//************************************************* +// Metadata Keys: + +// +// "PreferredFormat" +// contains a value which is from the PreferredFormat enumeration below that indicates the preferred manner in which a given +// value should be *DISPLAYED*. It does not affect the value itself. +// +// "PreferredRadix" +// contains a value which indicates the preferred display radix for an integral value. This is either 8, 10, or 16 +// +// "PreferShow" +// contains a boolean value which contains an indication of whether the element should, by default, display. +// The default value of this metadata key is "true" for values which are not methods and "false" for values +// which are methods. +// +// "PreferredLength" +// contains a value which describes how many iterated elements to display by default. +// The default value of this metadata key is "1" for pointers and the type system defined length of any array +// for array types. +// +// "ActionName" +// applicable only to object methods which take no arguments and have ObjectNoValueReturns, the presence of this +// metadatakey indicates that the method is an action for the object which should be funneled to appropriate UI +// under the name given in this string metadata key. The UI here may be a DML link (in WinDbg), a context menu, +// or other affordance. An example of an action is "Switch To" for a thread which changes the UI focus to +// the given thread. +// +// "ActionDescription" +// applicable only where the "ActionName" key is present, this is a string value which gives tooltip style +// help for an action. +// +// "ActionIsDefault" +// applicable only where the "ActionName" key is present, this is a boolean value which describes whether +// the action is a default action or not. The default action for an object may be funneled to additional +// UI. By default, the value of this key is "false". Only a single action method on any given object may +// be marked as the default action. +// +// "PreferAutoExpand" +// contains an unsigned value which describes whether the element should be expanded automatically if +// it is a child of some other object and the recursion level is high enough. The default value for this +// key is "true". If this key is specified as "false", the object **WILL NOT** expand in a console view unless +// it is the root element being displayed. +// +// "PreferredExpansionDepth" +// contains an unsigned value which describes how far the element should be expanded if not otherwise specified +// by a host command or other UI affordance. +// +// "PreferTabularFormat" +// contains a boolean value which describes whether the value should be displayed in a tabular form instead +// of a hierarchical form +// + +// +// PreferredFormat +// +// Predefined values of the "PreferredFormat" key which may appear as the metadata on a returned key value. This indicates +// the preferred DISPLAY FORMAT for a given value. +// +enum PreferredFormat +{ + // There is no preferred format + FormatNone, + + // The preferred format is a single character as '*' + FormatSingleCharacter, + + // The preferred format is a quoted 8-bit string + FormatQuotedString, + + // The preferred format is a non-quoted 8-bit string + FormatString, + + // The preferred format is a quoted Unicode (UTF-16) string + FormatQuotedUnicodeString, + + // The preferred format is a non-quoted Unicode (UTF-16) string + FormatUnicodeString, + + // The preferred format is a quoted UTF-8 string + FormatQuotedUTF8String, + + // The preferred format is a non-quoted UTF-8 string + FormatUTF8String, + + // The preferred format is a quoted BSTR + FormatBSTRString, + + // The preferred format is a quoted WinRT HSTRING + FormatQuotedHString, + + // The preferred format is a non-quoted WinRT HSTRING + FormatHString, + + // The preferred format is the raw (native) type + FormatRaw, + + // The preferred format is the enum name only + FormatEnumNameOnly, + + // The preferred format is the quoted string with escaped characters + FormatEscapedStringWithQuote, + + // The preferred format is a non-quoted Unicode (UTF-32) string + FormatUTF32String, + + // The preferred format is a quoted Unicode (UTF-32) string + FormatQuotedUTF32String +}; + +// +// IHostDataModelAccess: +// +// An interface *suggested* on the per-host extensibility mechanism to get from the host extensibility +// mechanism to the model based one. Extensions which are written to a host-specific API set can query +// this mechanism to get to the data model and create host-agnostic extensions. +// +// As an example, DbgEng based extensions can query for this interface from any IDebug* (Client/Control/etc...) +// interface to get to the model and access model APIs. Such extensions are hybrid (they are still specific +// to a particular host but contain portions that may be factored out later for a general model based extension) +// +// This is the **ONLY** interface in this set of APIs which is not intended to be host agnostic. +// +#undef INTERFACE +#define INTERFACE IHostDataModelAccess +DECLARE_INTERFACE_(IHostDataModelAccess, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IKeyStore + + // GetDataModel(): + // + // Returns the core interfaces to the data model. A hybrid extension can query its host's + // extensibility interfaces for IHostDataModelAccess and subsequently call this method to + // get to the data model interfaces. + // + // There is no guarantee that any particular host supports this interface. + // + STDMETHOD(GetDataModel)( + THIS_ + _COM_Outptr_ IDataModelManager** manager, + _COM_Outptr_ IDebugHost** host + ) PURE; +}; + +// +// IKeyStore: +// +// An interface which represents a set of key/value/metadata tuples. This is primarily the +// interface by which metadata is represented. +// +#undef INTERFACE +#define INTERFACE IKeyStore +DECLARE_INTERFACE_(IKeyStore, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IKeyStore + + // GetKey(): + // + // If the store or its parent has a key named according to the argument 'key', this will + // return the value of that key and, optionally, any metadata associated with that key. + // + // If the key is a property accessor, this API will return the property accessor itself. It is the responsibility + // of the caller to resolve the property by fetching the IModelPropertyAccessor interface and calling into it + // passing the appropriate context object. + // + STDMETHOD(GetKey)( + THIS_ + _In_ PCWSTR key, + _COM_Errorptr_opt_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // SetKey(): + // + // If the store or its parent has a key named according to the argument 'key', this will + // set the value of that key and optionally its associated metadata. + // + // If the key is a property accessor, this will not set the value of the property. It will explicitly + // overwrite the property with the new value. + // + // This is the only method which is capable of creating a new key. If a new key is to be created, this + // will create the key on the store where SetKey was called. It will not create a key on the parent store. + // + STDMETHOD(SetKey)( + THIS_ + _In_ PCWSTR key, + _In_opt_ IModelObject* object, + _In_opt_ IKeyStore* metadata + ) PURE; + + // GetKeyValue(): + // + // If the store or its parent has a key named according to the argument 'key', this will + // return the value of that key and, optionally, any metadata associated with that key. + // + // If the key is a property accessor, this API will fetch the value underlying the property and return it. + // It will not return the IModelPropertyAccessor interface for the property. + // + STDMETHOD(GetKeyValue)( + THIS_ + _In_ PCWSTR key, + _COM_Errorptr_opt_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // SetKeyValue(): + // + // If the store or its parent has a key named according to the argument 'key', this will + // set the value of that key. + // + // If the key is a property accessor, this API will call the underlying property to set the value of the + // property. Note that some properties are read-only and, as such, this API may return a failure if called + // on such a property. If the key is not a property accessor, it will overwrite the value of the key directly. + // + // This method will never create a new key named 'key'. + // + STDMETHOD(SetKeyValue)( + THIS_ + _In_ PCWSTR key, + _In_ IModelObject* object + ) PURE; + + // ClearKeys(): + // + // This will clear all keys on the store but *NOT* on its parent. + // + STDMETHOD(ClearKeys)( + THIS + ) PURE; + +}; + +// RawSearchFlags: +// +// Flags to GetRawValue/EnumerateRawValues +// +enum RawSearchFlags +{ + // There are no search flags + RawSearchNone = 0x00000000, + + // Indicates that the search should not recurse to base children (e.g.: base classes). Only names/types + // which are in the object itself should be returned. + RawSearchNoBases = 0x00000001, +}; + +// +// IModelObject: +// +// The core object model interface. All object instances that the model can represent are directly referred +// to by the IModelObject interface. +// +// This interface is never directly implemented by a client. +// +#undef INTERFACE +#define INTERFACE IModelObject +DECLARE_INTERFACE_(IModelObject, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IModelObject + + // Client Methods: + + // GetContext(): + // + // Gets the host (debugger) context that is associated with this object. + // + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_result_maybenull_ IDebugHostContext** context + ) PURE; + + // GetKind(): + // + // Gets the kind of this object. This indicates the kind of object (e.g.: a boxed intrinsic value, + // an object within the address space of the debug target, a synthetic object created by the + // debugger, an error, etc...). This does not indicate the language type of the object. + // + STDMETHOD(GetKind)( + THIS_ + _Out_ ModelObjectKind *kind + ) PURE; + + // GetIntrinsicValue(): + // + // If the object has an intrinsic value because it is a boxed intrinsic, a pointer, or a construct + // which has an associated IUnknown, this will return the intrinsic value of the object as a + // VARIANT. + // + // If the object does not have an intrinsic value (e.g.: it is a completely synthetic object), calling + // this API will result in an error. + // + STDMETHOD(GetIntrinsicValue)( + THIS_ + _Out_ VARIANT* intrinsicData + ) PURE; + + // GetIntrinsicValueAs(): + // + // If the object has an intrinsic value because it is a boxed intrinsic, a pointer, or a construct + // which has an associated IUnknown, this will return the intrinsic value of the object converted + // to the variant type passed in the 'vt' argument. If the value cannot be converted to the given + // variant type, this will return an error. + // + STDMETHOD(GetIntrinsicValueAs)( + THIS_ + _In_ VARTYPE vt, + _Out_ VARIANT* intrinsicData + ) PURE; + + // GetKeyValue(): + // + // If the object or one of its parent models has a key named according to the argument 'key', this will + // return the value of that key and, optionally, any metadata associated with that key. + // + // If the key is a property accessor, this API will fetch the value underlying the property and return it. + // It will not return the IModelPropertyAccessor interface for the property. + // + STDMETHOD(GetKeyValue)( + THIS_ + _In_ PCWSTR key, + _COM_Errorptr_opt_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // SetKeyValue(): + // + // If the object or one of its parent models has a key named according to the argument 'key', this will + // set the value of that key. + // + // If the key is a property accessor, this API will call the underlying property to set the value of the + // property. Note that some properties are read-only and, as such, this API may return a failure if called + // on such a property. If the key is not a property accessor, it will overwrite the value of the key directly. + // + // This method will never create a new key named 'key'. + // + STDMETHOD(SetKeyValue)( + THIS_ + _In_ PCWSTR key, + _In_opt_ IModelObject* object + ) PURE; + + // EnumerateKeyValues(): + // + // This returns an enumerator which will enumerate all keys and their associated values on this object and + // any of its parent values. Note that if any of the enumerated values are property accessors, the underlying + // property will be fetched and returned by the enumerator. This will never return an object which is an + // IModelPropertyAccessor. + // + STDMETHOD(EnumerateKeyValues)( + THIS_ + _COM_Outptr_ IKeyEnumerator** enumerator + ) PURE; + + // GetRawValue(): + // + // If the object represents an object within the address space of the debug target which has children (e.g.: a user + // defined type such as a struct or class), this will attempt to return the child named 'name'. The kind of child + // being sought (e.g.: field, base class, etc...) should be passed in the 'kind' argument. + // + // If no child named 'name' can be found, this method will fail. If there is an ambiguity presented by 'name', an + // error will be returned. + // + STDMETHOD(GetRawValue)( + THIS_ + _In_ SymbolKind kind, + _In_ PCWSTR name, + _In_ ULONG searchFlags, + _COM_Errorptr_ IModelObject** object + ) PURE; + + // EnumerateRawValues(): + // + // This returns an enumerator which will enumerate all raw (native) children of the object of the kind 'kind'. + // + STDMETHOD(EnumerateRawValues)( + THIS_ + _In_ SymbolKind kind, + _In_ ULONG searchFlags, + _COM_Outptr_ IRawEnumerator** enumerator + ) PURE; + + // Dereference(): + // + // If the object in question is something which is dereferencable (e.g.: a pointer or reference), calling this API will + // return the dereferenced object. Calling this API on a non-dereferencable object will result in an error being returned. + // + STDMETHOD(Dereference)( + THIS_ + _COM_Errorptr_ IModelObject** object + ) PURE; + + // TryCastToRuntimeType(): + // + // If the debug host can identify the runtime type of this object (e.g.: the most derived class), calling this method + // will return that object. If the debug host cannot identify such runtime type or the present object is the runtime + // type, the output object 'runtimeTypedObject' will be this object. + // A given object can specify it's "runtime type" by implementing the IPreferredRuntimeTypeConcept concept. If that concept + // is not implemented the debug host method will be used. + // + // Note that it is possible for this method to fail for a variety of reasons (e.g.: inability to locate symbols, etc...). + // + STDMETHOD(TryCastToRuntimeType)( + THIS_ + _COM_Errorptr_ IModelObject** runtimeTypedObject + ) PURE; + + // GetConcept(): + // + // If the object or one of its parent models has a concept identified by the IID contained in the 'conceptId' + // argument, this will return the concept interface in the 'conceptInterface' argument. This is the only valid method + // of acquiring any concept interface. Concept interfaces should not attempt to be accessed via a QueryInterface + // call. + // + STDMETHOD(GetConcept)( + THIS_ + _In_ REFIID conceptId, + _COM_Outptr_ IUnknown** conceptInterface, + _COM_Outptr_opt_result_maybenull_ IKeyStore** conceptMetadata + ) PURE; + + // GetLocation(): + // + // If the object represents an object in the address space of the debug target, this will return the address + // of the object. + // + // It is a failure to call this API on any type other than one which declares that it is a TargetObjectType via the + // GetKind method. + // + STDMETHOD(GetLocation)( + THIS_ + _Out_ Location* location + ) PURE; + + // GetTypeInfo(): + // + // If the object has an associated type (native language type), this will return an interface representing that type. + // Note that if a given type is inherently described by the type of a VARIANT structure, it will not have associated + // type information. + // + // If the object does not have associated type information, this API will return 'nullptr'. This is not a failure. + // + STDMETHOD(GetTypeInfo)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + // GetTargetInfo(): + // + // If the object represents an object in the address space of the debug target, this will return both the address + // of the object and the type (native language type) of the object. The type returned from this method is identical + // to the one returned from the GetTypeInfo method. + // + // It is a failure to call this API on any type other than one which declares that it is a TargetObjectType via the + // GetType method. + // + STDMETHOD(GetTargetInfo)( + THIS_ + _Out_ Location* location, + _Out_ IDebugHostType** type + ) PURE; + + // Advanced clients: + + // GetNumberOfParentModels(): + // + // Returns the number of parent models of this object. An object may have zero or more parent models associated with it. + // If the object does not have a given key or concept when queried, such calls are passed to all parent models in + // linear order to satisfy the request. + // + STDMETHOD(GetNumberOfParentModels)( + _Out_ ULONG64* numModels + ) PURE; + + // GetParentModel(): + // + // Returns the 'i'-th parent model of this object and, optionally, the adjusted context object associated with that + // parent model. + // + // If the object does not have a given key or concept when queried, such calls are passed to all parent models in + // linear order to satisfy the request. A parent model may also adjust the context (effective this pointer) object. If + // the model performs such adjustment, the adjusted object is returned in the 'contextObject' argument. If not, + // nullptr is returned in the 'contextObject' argument. + // + STDMETHOD(GetParentModel)( + _In_ ULONG64 i, + _COM_Outptr_ IModelObject **model, + _COM_Outptr_result_maybenull_ IModelObject **contextObject + ) PURE; + + // AddParentModel(): + // + // Adds a new parent model to this object. If the object does not have a given key or concept when queried, such calls are + // passed to all parent models in linear order to satisfy the request. + // + // If the parent model needs to adjust the context (effective this pointer) object so that property accessors and other + // concept interfaces on the parent model receive a different context pointer than the object itself, such an adjusted context + // can be passed in the 'contextObject' argument. If no adjustment is necessary, nullptr should be passed. Note that it + // is perfectly legitimate for the object passed in 'contextObject' to be a property accessor. In that case, the property + // will always be resolved before being given to any caller of GetParentModel or passed to any other accessor or concept. + // + // If this model should take precedence over any other parent models, the 'override' argument should be 'true'; otherwise, + // it should be 'false' and the new model will be added last in search order. + // + STDMETHOD(AddParentModel)( + THIS_ + _In_ IModelObject* model, + _In_opt_ IModelObject* contextObject, + _In_ bool override) PURE; + + // RemoveParentModel(): + // + // Removes a parent model as indicated by the 'model' argument from the list of parent models of this object. + // + STDMETHOD(RemoveParentModel)( + THIS_ + _In_ IModelObject* model + ) PURE; + + // GetKey(): + // + // If the object or one of its parent models has a key named according to the argument 'key', this will + // return the value of that key and, optionally, any metadata associated with that key. + // + // If the key is a property accessor, this API will return the property accessor itself. It is the responsibility + // of the caller to resolve the property by fetching the IModelPropertyAccessor interface and calling into it + // passing the appropriate context object. + // + STDMETHOD(GetKey)( + THIS_ + _In_ PCWSTR key, + _COM_Errorptr_opt_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // GetKeyReference(): + // + // If the object or one of its parent models has a key named according to the argument 'key', this will + // return a reference to that key (and optionally the *present* metadata associated with that key). + // + STDMETHOD(GetKeyReference)( + THIS_ + _In_ PCWSTR key, + _COM_Errorptr_opt_ IModelObject** objectReference, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // SetKey(): + // + // If the object or one of its parent models has a key named according to the argument 'key', this will + // set the value of that key and optionally its associated metadata. + // + // If the key is a property accessor, this will not set the value of the property. It will explicitly + // overwrite the property with the new value. + // + // This is the only method which is capable of creating a new key. If a new key is to be created, this + // will create the key on the object where SetKey was called. It will not create a key on a parent + // model. + // + STDMETHOD(SetKey)( + THIS_ + _In_ PCWSTR key, + _In_opt_ IModelObject* object, + _In_opt_ IKeyStore* metadata + ) PURE; + + // ClearKeys(): + // + // This will clear all keys on the object but *NOT* on the parents that are attached to the object. + // + STDMETHOD(ClearKeys)( + THIS + ) PURE; + + // EnumerateKeys(): + // + // This returns an enumerator which will enumerate all keys and their associated values on this object and + // any of its parent values. Note that if any of the enumerated values are property accessors, the underlying + // value will not be fetched. The enumerator will instead return the property accessor object. It is the responsibility + // of the user of the enumerator to resolve the property value by fetching the IModelPropertyAccessor interface and + // calling into it passing the appropriate context object. + // + STDMETHOD(EnumerateKeys)( + THIS_ + _COM_Outptr_ IKeyEnumerator** enumerator + ) PURE; + + // EnumerateKeyReferences(): + // + // This returns an enumerator which will enumerate all keys on this object and any of its parent values. This will + // return references to those keys rather than the keys themselves. + // + STDMETHOD(EnumerateKeyReferences)( + THIS_ + _COM_Outptr_ IKeyEnumerator** enumerator + ) PURE; + + // SetConcept(): + // + // This sets a concept interface identified by the 'conceptId' argument on the object. Such concept interfaces + // can make the object convertible to a string, iterable, indexable, etc... + // + STDMETHOD(SetConcept)( + THIS_ + _In_ REFIID conceptId, + _In_ IUnknown* conceptInterface, + _In_opt_ IKeyStore* conceptMetadata + ) PURE; + + // ClearConcepts(): + // + // This clears all concepts on the object but *NOT* on the parents that are attached to the object. + // + STDMETHOD(ClearConcepts)( + THIS + ) PURE; + + // GetRawReference(): + // + // If the object represents an object within the address space of the debug target which has children (e.g.: a user + // defined type such as a struct or class), this will attempt to return a reference to the child named 'name'. The type + // of child being sought (e.g.: field, base class, etc...) should be passed in the 'type' argument. + // + // If no child named 'name' can be found, this method will fail. If there is an ambiguity presented by 'name', an + // error will be returned. + // + STDMETHOD(GetRawReference)( + THIS_ + _In_ SymbolKind kind, + _In_ PCWSTR name, + _In_ ULONG searchFlags, + _COM_Errorptr_ IModelObject** object + ) PURE; + + // EnumerateRawReferences(): + // + // This returns an enumerator which will enumerate references to all raw (native) children of the object of the type 'type'. + // + STDMETHOD(EnumerateRawReferences)( + THIS_ + _In_ SymbolKind kind, + _In_ ULONG searchFlags, + _COM_Outptr_ IRawEnumerator** enumerator + ) PURE; + + // SetContextForDataModel(): + // + // This method allows a parent data model which is linked to multiple instance objects to add cache information to each + // instance object. The model object for the data model is passed in the 'dataModelObject' interface and an IUnknown + // which represents the information to cache is passed in the 'context' argument. When the instance object destructs, + // it will release the cached information. + // + STDMETHOD(SetContextForDataModel)( + THIS_ + _In_ IModelObject* dataModelObject, + _In_ IUnknown* context + ) PURE; + + // GetContextForDataModel(): + // + // If a parent model has associated cached information with an instance through a prior call to SetContextForDataModel, + // this method allows the parent model to fetch the previously stored information. The model object for the data model + // is passed in the 'dataModelObject' argument. + // + // Note that a lack of cache information is not a failure. The returned 'context' argument will simply be nullptr in this + // case. + // + STDMETHOD(GetContextForDataModel)( + THIS_ + _In_ IModelObject* dataModelObject, + _Out_ IUnknown** context + ) PURE; + + // Compare(): + // + // Compares this object against another object. Returns -1 (this < other), 0 (this == other), or 1 (this > other). + // If the objects cannot be compared, a failure occurs. + // + // Only intrinsic values may be compared using this method. + // + STDMETHOD(Compare)( + THIS_ + _In_ IModelObject* other, + _COM_Outptr_opt_result_maybenull_ IModelObject **ppResult + ) PURE; + + // IsEqualTo(): + // + // Compares this object against another object. Returns true or false as to whether the objects are equal. + // For objects which have an ordering, this returning true is equivalent to Compare(...) returning 0. For objects + // that have no ordering but are equatable, Compare(...) will fail, but this will not. + // + // Note that this is a value based comparison as defined by the type. + // + STDMETHOD(IsEqualTo)( + THIS_ + _In_ IModelObject* other, + _Out_ bool* equal + ) PURE; + +}; + +// +// IModelObject2: +// +// This is the second version of the core object model interface. All object instances that the model can represent are directly referred +// to by the IModelObject interface. +// +// This interface is never directly implemented by a client. +// +#undef INTERFACE +#define INTERFACE IModelObject2 +DECLARE_INTERFACE_(IModelObject2, IModelObject) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IModelObject + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_result_maybenull_ IDebugHostContext** context + ) PURE; + + STDMETHOD(GetKind)( + THIS_ + _Out_ ModelObjectKind *kind + ) PURE; + + STDMETHOD(GetIntrinsicValue)( + THIS_ + _Out_ VARIANT* intrinsicData + ) PURE; + + STDMETHOD(GetIntrinsicValueAs)( + THIS_ + _In_ VARTYPE vt, + _Out_ VARIANT* intrinsicData + ) PURE; + + STDMETHOD(GetKeyValue)( + THIS_ + _In_ PCWSTR key, + _COM_Errorptr_opt_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + STDMETHOD(SetKeyValue)( + THIS_ + _In_ PCWSTR key, + _In_opt_ IModelObject* object + ) PURE; + + STDMETHOD(EnumerateKeyValues)( + THIS_ + _COM_Outptr_ IKeyEnumerator** enumerator + ) PURE; + + STDMETHOD(GetRawValue)( + THIS_ + _In_ SymbolKind kind, + _In_ PCWSTR name, + _In_ ULONG searchFlags, + _COM_Errorptr_ IModelObject** object + ) PURE; + + STDMETHOD(EnumerateRawValues)( + THIS_ + _In_ SymbolKind kind, + _In_ ULONG searchFlags, + _COM_Outptr_ IRawEnumerator** enumerator + ) PURE; + + STDMETHOD(Dereference)( + THIS_ + _COM_Errorptr_ IModelObject** object + ) PURE; + + STDMETHOD(TryCastToRuntimeType)( + THIS_ + _COM_Errorptr_ IModelObject** runtimeTypedObject + ) PURE; + + STDMETHOD(GetConcept)( + THIS_ + _In_ REFIID conceptId, + _COM_Outptr_ IUnknown** conceptInterface, + _COM_Outptr_opt_result_maybenull_ IKeyStore** conceptMetadata + ) PURE; + + STDMETHOD(GetLocation)( + THIS_ + _Out_ Location* location + ) PURE; + + STDMETHOD(GetTypeInfo)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetTargetInfo)( + THIS_ + _Out_ Location* location, + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetNumberOfParentModels)( + _Out_ ULONG64* numModels + ) PURE; + + STDMETHOD(GetParentModel)( + _In_ ULONG64 i, + _COM_Outptr_ IModelObject **model, + _COM_Outptr_result_maybenull_ IModelObject **contextObject + ) PURE; + + STDMETHOD(AddParentModel)( + THIS_ + _In_ IModelObject* model, + _In_opt_ IModelObject* contextObject, + _In_ bool override) PURE; + + STDMETHOD(RemoveParentModel)( + THIS_ + _In_ IModelObject* model + ) PURE; + + STDMETHOD(GetKey)( + THIS_ + _In_ PCWSTR key, + _COM_Errorptr_opt_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + STDMETHOD(GetKeyReference)( + THIS_ + _In_ PCWSTR key, + _COM_Errorptr_opt_ IModelObject** objectReference, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + STDMETHOD(SetKey)( + THIS_ + _In_ PCWSTR key, + _In_opt_ IModelObject* object, + _In_opt_ IKeyStore* metadata + ) PURE; + + STDMETHOD(ClearKeys)( + THIS + ) PURE; + + STDMETHOD(EnumerateKeys)( + THIS_ + _COM_Outptr_ IKeyEnumerator** enumerator + ) PURE; + + STDMETHOD(EnumerateKeyReferences)( + THIS_ + _COM_Outptr_ IKeyEnumerator** enumerator + ) PURE; + + STDMETHOD(SetConcept)( + THIS_ + _In_ REFIID conceptId, + _In_ IUnknown* conceptInterface, + _In_opt_ IKeyStore* conceptMetadata + ) PURE; + + STDMETHOD(ClearConcepts)( + THIS + ) PURE; + + STDMETHOD(GetRawReference)( + THIS_ + _In_ SymbolKind kind, + _In_ PCWSTR name, + _In_ ULONG searchFlags, + _COM_Errorptr_ IModelObject** object + ) PURE; + + STDMETHOD(EnumerateRawReferences)( + THIS_ + _In_ SymbolKind kind, + _In_ ULONG searchFlags, + _COM_Outptr_ IRawEnumerator** enumerator + ) PURE; + + STDMETHOD(SetContextForDataModel)( + THIS_ + _In_ IModelObject* dataModelObject, + _In_ IUnknown* context + ) PURE; + + STDMETHOD(GetContextForDataModel)( + THIS_ + _In_ IModelObject* dataModelObject, + _Out_ IUnknown** context + ) PURE; + + STDMETHOD(Compare)( + THIS_ + _In_ IModelObject* other, + _COM_Outptr_opt_result_maybenull_ IModelObject **ppResult + ) PURE; + + STDMETHOD(IsEqualTo)( + THIS_ + _In_ IModelObject* other, + _Out_ bool* equal + ) PURE; + + //************************************************* + // IModelObject2 + // + + // EnumerateOwnKeyValues(): + // + // This returns an enumerator which will enumerate all keys and their associated values on this object (but not on + // any of its parent values). Note that if any of the enumerated values are property accessors, the underlying + // property will be fetched and returned by the enumerator. This will never return an object which is an + // IModelPropertyAccessor. + // + STDMETHOD(EnumerateOwnKeyValues)( + THIS_ + _COM_Outptr_ IKeyEnumerator** ppEnumerator + ) PURE; + + // EnumerateOwnKeys(): + // + // This returns an enumerator which will enumerate all keys and their associated values on this object (but not on + // any of its parent values). Note that if any of the enumerated values are property accessors, the underlying + // value will not be fetched. The enumerator will instead return the property accessor object. It is the responsibility + // of the user of the enumerator to resolve the property value by fetching the IModelPropertyAccessor interface and + // calling into it passing the appropriate context object. + // + STDMETHOD(EnumerateOwnKeys)( + THIS_ + _COM_Outptr_ IKeyEnumerator** ppEnumerator + ) PURE; + + // EnumerateOwnKeyReferences(): + // + // This returns an enumerator which will enumerate all keys on this object (but not on any of its parent values). This will + // return references to those keys rather than the keys themselves. + // + STDMETHOD(EnumerateOwnKeyReferences)( + THIS_ + _COM_Outptr_ IKeyEnumerator** ppEnumerator + ) PURE; +}; + +// +// IDataModelManager: +// +// The core interface for the data model manager. This is the interface by which new objects are created, +// intrinsic values are boxed and unboxed, and models are registered for types. +// +// This interface is never directly implemented by a client. +// +#undef INTERFACE +#define INTERFACE IDataModelManager +DECLARE_INTERFACE_(IDataModelManager, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelManager + + // Close(): + // + // Cleanup method for the data model manager. This **MUST** be called when a host is shutting down the data model + // manager prior to releasing its reference to the manager. + // + STDMETHOD(Close)( + THIS + ) PURE; + + + // CreateNoValue(): + // + // Creates an object which represents nothing. In essence, this appears like "void". A property + // which does not exist for a particular instance of an object may return "NoValue" instead of an error. + // A parent model which is a property accessor but only applies to some objects may return "NoValue" + // instead of an error. + // + // "NoValue" objects will not be displayed by many clients. + // + STDMETHOD(CreateNoValue)( + THIS_ + _Out_ IModelObject** object + ) PURE; + + // CreateErrorObject(): + // + // Creates an object which encapsulates a failure (code and message). + // + STDMETHOD(CreateErrorObject)( + THIS_ + _In_ HRESULT hrError, + _In_opt_ PCWSTR pwszMessage, + _COM_Outptr_ IModelObject** object + ) PURE; + + // CreateTypedObject(): + // + // Creates an object within the address space of the host at the supplied location. If a particular + // host context is passed, the object will acquire that context; otherwise -- the object will inherit + // its context from that of the supplied type. + // + // If the given object location is an *offset* from a location fetched from another object (e.g.: it is + // a field of that object), the context supplied here should be explicitly passed from object where + // that location came from. + // + // CreateTypedObject may return an error object in the output argument even in the case of failure. + // + STDMETHOD(CreateTypedObject)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ Location objectLocation, + _In_ IDebugHostType* objectType, + _COM_Errorptr_ IModelObject** object + ) PURE; + + // CreateTypedObjectReference(): + // + // Creates a reference to an object within the address space of the host. This is a reference as defined + // by the model API, not a reference as defined by the language. + // + // In respects other than creating a reference, this behaves as per CreateTypedObject. + // + STDMETHOD(CreateTypedObjectReference)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ Location objectLocation, + _In_ IDebugHostType* objectType, + _COM_Errorptr_ IModelObject** object + ) PURE; + + // CreateSyntheticObject(): + // + // Creates an empty synthetic object (a store of key/value/metadata tuples). + // + STDMETHOD(CreateSyntheticObject)( + THIS_ + _In_opt_ IDebugHostContext* context, + _COM_Outptr_ IModelObject** object + ) PURE; + + // CreateDataModelObject(): + // + // Creates a synthetic object designed to be a data model. This method is a convenience for the caller. + // The resulting syntehtic object is an empty synthetic object onto which the supplied data model concept + // has been added via SetConcept(). + // + STDMETHOD(CreateDataModelObject)( + THIS_ + _In_ IDataModelConcept* dataModel, + _COM_Outptr_ IModelObject** object + ) PURE; + + // CreateIntrinsicObject(): + // + // Creates an object representing an intrinsic value. In some language parlences, this would be called + // "boxing" a value. + // + // The full type of the value is defined by the VARIANT in which it is carried. For values which have + // ancillary type information (e.g.: enumerations), CreateTypedIntrinsicObject can be used. + // + // NOTE: 128-bit integers are represented in 2-sized, 1-dimensional SAFEARRAYs: + // VT_ARRAY | VT_UI8 is the VARTYPE for 128-bit unsigned integers. + // VT_ARRAY | VT_I8 is the VARTYPE for 128-bit signed integers. + // The first element in the array corresponds to the low 64 bits of the 128-bit integer, + // while the second corresponds to the high 64 bits. + STDMETHOD(CreateIntrinsicObject)( + THIS_ + _In_ ModelObjectKind objectKind, + _In_ VARIANT* intrinsicData, + _COM_Outptr_ IModelObject** object + ) PURE; + + // CreateTypedIntrinsicObject(): + // + // Similar to CreateIntrinsicObject(), this creates a value object which has ancillary type information. + // Ancillary type information is used for enumerations, pointer types, and other things which have an + // inherit value but by which that value is interpreted differently than just the bits of the value. + // + STDMETHOD(CreateTypedIntrinsicObject)( + THIS_ + _In_ VARIANT* intrinsicData, + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** object + ) PURE; + + // GetModelForTypeSignature(): + // + // Returns the model currently registered for a given type signature. Such registration can be performed + // by calling RegisterModelForTypeSignature(). + // + STDMETHOD(GetModelForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _Out_ IModelObject** dataModel + ) PURE; + + // GetModelForType(): + // + // Returns the model (registered via RegisterModelForTypeSignature) whose type signature is the best + // match for the given type. In addition to returning the registered model, the type signature + // and a list of wildcard matches between the signature and the actual type is also returned. + // + STDMETHOD(GetModelForType)( + THIS_ + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** dataModel, + _COM_Outptr_opt_ IDebugHostTypeSignature** typeSignature, + _COM_Outptr_opt_ IDebugHostSymbolEnumerator** wildcardMatches + ) PURE; + + // RegisterModelForTypeSignature(): + // + // Registers a model for a given type signature. Any object which has a type that matches the signature + // will have the inpassed model applied as a parent model of the object when the object is created. + // + STDMETHOD(RegisterModelForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _In_ IModelObject* dataModel + ) PURE; + + // UnregisterModelForTypeSignature(): + // + // Undoes a prior call to RegisterModelForTypeSignature(). Newly created objects of the type which matches + // the supplied signature will no longer have the supplied data model applied as a parent model. + // + // Note that calling this method has no effect on pre-existing objects which matched the signature. + // + STDMETHOD(UnregisterModelForTypeSignature)( + THIS_ + _In_ IModelObject* dataModel, + _In_opt_ IDebugHostTypeSignature* typeSignature + ) PURE; + + // RegisterExtensionForTypeSignature(): + // + // Registers an extension for a given type signature. Any object which has a type signature that matches the signature + // will have the inpassed model applied as a parent model of the object when the object is created. + // + // Unlike RegisterModelForTypeSignature -- which affects the single CANONICAL model for a given type signature + // and can have no ambiguous registrations -- any number of extensions can be registered against a type signature + // (or multiple ambiguous type signatures). All such extensions will be automatically attached. + // + STDMETHOD(RegisterExtensionForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _In_ IModelObject* dataModel + ) PURE; + + // UnregisterExtensionForTypeSignature(): + // + // Behaves as UnregisterModelForTypeSignature excepting that it undoes RegisterExtensionForTypeSignature. + // + STDMETHOD(UnregisterExtensionForTypeSignature)( + THIS_ + _In_ IModelObject* dataModel, + _In_opt_ IDebugHostTypeSignature* typeSignature + ) PURE; + + // CreateMetadataStore(): + // + // Creates a new key store for metadata. Any tagging of metadata onto key names is done by creating such + // an object, filling it, and passing it to SetKey(). + // + STDMETHOD(CreateMetadataStore)( + THIS_ + _In_opt_ IKeyStore* parentStore, + _COM_Outptr_ IKeyStore** metadataStore + ) PURE; + + // GetRootNamespace(): + // + // Gets the root namespace which is managed by the data model. A host and its extensions have full control + // of what goes into this namespace. + // + STDMETHOD(GetRootNamespace)( + THIS_ + _COM_Outptr_ IModelObject** rootNamespace + ) PURE; + + // RegisterNamedModel(): + // + // Associates a given data model with a well defined name. This name can then be used to look up the data model. + // All of the data models which the model itself creates are well named and registered via this mechanism. + // + STDMETHOD(RegisterNamedModel)( + THIS_ + _In_ PCWSTR modelName, + _In_ IModelObject *modeObject + ) PURE; + + // UnregisterNamedModel(): + // + // Removes the registration of a given name. This undoes a prior call to RegisterNamedModel(). + // + STDMETHOD(UnregisterNamedModel)( + THIS_ + _In_ PCWSTR modelName + ) PURE; + + // AcquireNamedModel(): + // + // This looks up a well known model name and returns the data model registered by that name. Note that if + // there is no model registered by the supplied name, a stub will be created and returned to the caller. + // Anything added to the stub will be added to the real object at the time a registration is made. + // + STDMETHOD(AcquireNamedModel)( + THIS_ + _In_ PCWSTR modelName, + _COM_Outptr_ IModelObject **modelObject + ) PURE; +}; + +// +// IDataModelManager2: +// +// The second version of the interface for the data model manager. This is the interface by which new objects are created, +// intrinsic values are boxed and unboxed, and models are registered for types. +// +// This interface is never directly implemented by a client. +// +#undef INTERFACE +#define INTERFACE IDataModelManager2 +DECLARE_INTERFACE_(IDataModelManager2, IDataModelManager) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelManager + + STDMETHOD(Close)( + THIS + ) PURE; + + + STDMETHOD(CreateNoValue)( + THIS_ + _Out_ IModelObject** object + ) PURE; + + STDMETHOD(CreateErrorObject)( + THIS_ + _In_ HRESULT hrError, + _In_opt_ PCWSTR pwszMessage, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateTypedObject)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ Location objectLocation, + _In_ IDebugHostType* objectType, + _COM_Errorptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateTypedObjectReference)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ Location objectLocation, + _In_ IDebugHostType* objectType, + _COM_Errorptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateSyntheticObject)( + THIS_ + _In_opt_ IDebugHostContext* context, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateDataModelObject)( + THIS_ + _In_ IDataModelConcept* dataModel, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateIntrinsicObject)( + THIS_ + _In_ ModelObjectKind objectKind, + _In_ VARIANT* intrinsicData, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateTypedIntrinsicObject)( + THIS_ + _In_ VARIANT* intrinsicData, + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(GetModelForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _Out_ IModelObject** dataModel + ) PURE; + + STDMETHOD(GetModelForType)( + THIS_ + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** dataModel, + _COM_Outptr_opt_ IDebugHostTypeSignature** typeSignature, + _COM_Outptr_opt_ IDebugHostSymbolEnumerator** wildcardMatches + ) PURE; + + STDMETHOD(RegisterModelForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _In_ IModelObject* dataModel + ) PURE; + + STDMETHOD(UnregisterModelForTypeSignature)( + THIS_ + _In_ IModelObject* dataModel, + _In_opt_ IDebugHostTypeSignature* typeSignature + ) PURE; + + STDMETHOD(RegisterExtensionForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _In_ IModelObject* dataModel + ) PURE; + + STDMETHOD(UnregisterExtensionForTypeSignature)( + THIS_ + _In_ IModelObject* dataModel, + _In_opt_ IDebugHostTypeSignature* typeSignature + ) PURE; + + STDMETHOD(CreateMetadataStore)( + THIS_ + _In_opt_ IKeyStore* parentStore, + _COM_Outptr_ IKeyStore** metadataStore + ) PURE; + + STDMETHOD(GetRootNamespace)( + THIS_ + _COM_Outptr_ IModelObject** rootNamespace + ) PURE; + + STDMETHOD(RegisterNamedModel)( + THIS_ + _In_ PCWSTR modelName, + _In_ IModelObject *modeObject + ) PURE; + + STDMETHOD(UnregisterNamedModel)( + THIS_ + _In_ PCWSTR modelName + ) PURE; + + STDMETHOD(AcquireNamedModel)( + THIS_ + _In_ PCWSTR modelName, + _COM_Outptr_ IModelObject **modelObject + ) PURE; + + //************************************************* + // IDataModelManager2 + // + + // AcquireSubNamespace(): + // + // A convenience method for acquiring (and registering if necessary) a sub-namespace on an object. + // + // modelName + // the name of the model which is being extended with a namespace (e.g.: "Debugger.Models.Process") + // + // subNamespaceModelName + // the name of the model which is being added (e.g.: "Debugger.Models.Process.Io") + // + // accessName + // the name used to access the namespace from the parent object (e.g.: "Io") + // + // metadata + // the metadata store used on the accessor for the namespace (e.g.: the help on "Io" if it is newly created) + // + // namespaceModelObject + // the namespace model returned is placed here + // + STDMETHOD(AcquireSubNamespace)( + THIS_ + _In_ PCWSTR modelName, + _In_ PCWSTR subNamespaceModelName, + _In_ PCWSTR accessName, + _In_opt_ IKeyStore *metadata, + _COM_Outptr_ IModelObject **namespaceModelObject + ) PURE; + + // CreateTypedIntrinsicObjectEx(): + // + // A version of CreateTypedIntrinsicObject which allows for the passing of an explicit context. Such is only + // useful for intrinsics which represent addresses in the target (such as pointers). + // + STDMETHOD(CreateTypedIntrinsicObjectEx)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ VARIANT* intrinsicData, + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** object + ) PURE; + +}; + +// +// IDataModelManager3: +// +// The third version of the interface for the data model manager. This is the interface by which new objects are created, +// intrinsic values are boxed and unboxed, and models are registered for types. +// +// This interface is never directly implemented by a client. +// +#undef INTERFACE +#define INTERFACE IDataModelManager3 +DECLARE_INTERFACE_(IDataModelManager3, IDataModelManager2) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelManager + + STDMETHOD(Close)( + THIS + ) PURE; + + + STDMETHOD(CreateNoValue)( + THIS_ + _Out_ IModelObject** object + ) PURE; + + STDMETHOD(CreateErrorObject)( + THIS_ + _In_ HRESULT hrError, + _In_opt_ PCWSTR pwszMessage, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateTypedObject)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ Location objectLocation, + _In_ IDebugHostType* objectType, + _COM_Errorptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateTypedObjectReference)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ Location objectLocation, + _In_ IDebugHostType* objectType, + _COM_Errorptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateSyntheticObject)( + THIS_ + _In_opt_ IDebugHostContext* context, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateDataModelObject)( + THIS_ + _In_ IDataModelConcept* dataModel, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateIntrinsicObject)( + THIS_ + _In_ ModelObjectKind objectKind, + _In_ VARIANT* intrinsicData, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateTypedIntrinsicObject)( + THIS_ + _In_ VARIANT* intrinsicData, + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(GetModelForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _Out_ IModelObject** dataModel + ) PURE; + + STDMETHOD(GetModelForType)( + THIS_ + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** dataModel, + _COM_Outptr_opt_ IDebugHostTypeSignature** typeSignature, + _COM_Outptr_opt_ IDebugHostSymbolEnumerator** wildcardMatches + ) PURE; + + STDMETHOD(RegisterModelForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _In_ IModelObject* dataModel + ) PURE; + + STDMETHOD(UnregisterModelForTypeSignature)( + THIS_ + _In_ IModelObject* dataModel, + _In_opt_ IDebugHostTypeSignature* typeSignature + ) PURE; + + STDMETHOD(RegisterExtensionForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _In_ IModelObject* dataModel + ) PURE; + + STDMETHOD(UnregisterExtensionForTypeSignature)( + THIS_ + _In_ IModelObject* dataModel, + _In_opt_ IDebugHostTypeSignature* typeSignature + ) PURE; + + STDMETHOD(CreateMetadataStore)( + THIS_ + _In_opt_ IKeyStore* parentStore, + _COM_Outptr_ IKeyStore** metadataStore + ) PURE; + + STDMETHOD(GetRootNamespace)( + THIS_ + _COM_Outptr_ IModelObject** rootNamespace + ) PURE; + + STDMETHOD(RegisterNamedModel)( + THIS_ + _In_ PCWSTR modelName, + _In_ IModelObject *modeObject + ) PURE; + + STDMETHOD(UnregisterNamedModel)( + THIS_ + _In_ PCWSTR modelName + ) PURE; + + STDMETHOD(AcquireNamedModel)( + THIS_ + _In_ PCWSTR modelName, + _COM_Outptr_ IModelObject **modelObject + ) PURE; + + //************************************************* + // IDataModelManager2 + // + + // AcquireSubNamespace(): + // + // A convenience method for acquiring (and registering if necessary) a sub-namespace on an object. + // + // modelName + // the name of the model which is being extended with a namespace (e.g.: "Debugger.Models.Process") + // + // subNamespaceModelName + // the name of the model which is being added (e.g.: "Debugger.Models.Process.Io") + // + // accessName + // the name used to access the namespace from the parent object (e.g.: "Io") + // + // metadata + // the metadata store used on the accessor for the namespace (e.g.: the help on "Io" if it is newly created) + // + // namespaceModelObject + // the namespace model returned is placed here + // + STDMETHOD(AcquireSubNamespace)( + THIS_ + _In_ PCWSTR modelName, + _In_ PCWSTR subNamespaceModelName, + _In_ PCWSTR accessName, + _In_opt_ IKeyStore *metadata, + _COM_Outptr_ IModelObject **namespaceModelObject + ) PURE; + + // CreateTypedIntrinsicObjectEx(): + // + // A version of CreateTypedIntrinsicObject which allows for the passing of an explicit context. Such is only + // useful for intrinsics which represent addresses in the target (such as pointers). + // + STDMETHOD(CreateTypedIntrinsicObjectEx)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ VARIANT* intrinsicData, + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** object + ) PURE; + + //************************************************* + // IDataModelManager3 + // + + // + // A convenience method for acquiring (and registering if necessary) a filtered sub-namespace on an object. + // + // modelName + // the name of the model which is being extended with a namespace (e.g.: "Debugger.Models.Process") + // + // subNamespaceModelName + // the name of the model which is being added (e.g.: "Debugger.Models.Process.Io") + // + // accessName + // the name used to access the namespace from the parent object (e.g.: "Io") + // + // filter + // the filter method to evaluate the context object in order to determine if the namespace property will be applied to the context object + // + // metadata + // the metadata store used on the accessor for the namespace (e.g.: the help on "Io" if it is newly created) + // + // namespaceModelObject + // the namespace model returned is placed here + // + // token + // the token returned is placed here. + // + STDMETHOD(AcquireFilteredSubNamespace)( + THIS_ + _In_ PCWSTR modelName, + _In_ PCWSTR subNamespaceModelName, + _In_ PCWSTR accessName, + _In_opt_ IKeyStore *metadata, + _In_ IModelMethod *filter, + _COM_Outptr_ IModelObject **namespaceModelObject, + _COM_Outptr_result_maybenull_ IFilteredNamespacePropertyToken **token + ) PURE; + + // EnumerateNamedModels(): + // + // This returns an enumerator which will enumerate all registered named models and their associated name. + // + STDMETHOD(EnumerateNamedModels)( + THIS_ + _COM_Outptr_ INamedModelsEnumerator** ppEnumerator + ) PURE; +}; + +// +// IDataModelManager4: +// +// It adds debug model reporting functionality. +// +// This interface is never directly implemented by a client. +// +#undef INTERFACE +#define INTERFACE IDataModelManager4 +DECLARE_INTERFACE_(IDataModelManager4, IDataModelManager3) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelManager + + STDMETHOD(Close)( + THIS_ + ) PURE; + + + STDMETHOD(CreateNoValue)( + THIS_ + _Out_ IModelObject** object + ) PURE; + + STDMETHOD(CreateErrorObject)( + THIS_ + _In_ HRESULT hrError, + _In_opt_ PCWSTR pwszMessage, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateTypedObject)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ Location objectLocation, + _In_ IDebugHostType* objectType, + _COM_Errorptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateTypedObjectReference)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ Location objectLocation, + _In_ IDebugHostType* objectType, + _COM_Errorptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateSyntheticObject)( + THIS_ + _In_opt_ IDebugHostContext* context, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateDataModelObject)( + THIS_ + _In_ IDataModelConcept* dataModel, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateIntrinsicObject)( + THIS_ + _In_ ModelObjectKind objectKind, + _In_ VARIANT* intrinsicData, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(CreateTypedIntrinsicObject)( + THIS_ + _In_ VARIANT* intrinsicData, + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** object + ) PURE; + + STDMETHOD(GetModelForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _Out_ IModelObject** dataModel + ) PURE; + + STDMETHOD(GetModelForType)( + THIS_ + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** dataModel, + _COM_Outptr_opt_ IDebugHostTypeSignature** typeSignature, + _COM_Outptr_opt_ IDebugHostSymbolEnumerator** wildcardMatches + ) PURE; + + STDMETHOD(RegisterModelForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _In_ IModelObject* dataModel + ) PURE; + + STDMETHOD(UnregisterModelForTypeSignature)( + THIS_ + _In_ IModelObject* dataModel, + _In_opt_ IDebugHostTypeSignature* typeSignature + ) PURE; + + STDMETHOD(RegisterExtensionForTypeSignature)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _In_ IModelObject* dataModel + ) PURE; + + STDMETHOD(UnregisterExtensionForTypeSignature)( + THIS_ + _In_ IModelObject* dataModel, + _In_opt_ IDebugHostTypeSignature* typeSignature + ) PURE; + + STDMETHOD(CreateMetadataStore)( + THIS_ + _In_opt_ IKeyStore* parentStore, + _COM_Outptr_ IKeyStore** metadataStore + ) PURE; + + STDMETHOD(GetRootNamespace)( + THIS_ + _COM_Outptr_ IModelObject** rootNamespace + ) PURE; + + STDMETHOD(RegisterNamedModel)( + THIS_ + _In_ PCWSTR modelName, + _In_ IModelObject *modeObject + ) PURE; + + STDMETHOD(UnregisterNamedModel)( + THIS_ + _In_ PCWSTR modelName + ) PURE; + + STDMETHOD(AcquireNamedModel)( + THIS_ + _In_ PCWSTR modelName, + _COM_Outptr_ IModelObject **modelObject + ) PURE; + + //************************************************* + // IDataModelManager2 + // + + // AcquireSubNamespace(): + // + // A convenience method for acquiring (and registering if necessary) a sub-namespace on an object. + // + // modelName + // the name of the model which is being extended with a namespace (e.g.: "Debugger.Models.Process") + // + // subNamespaceModelName + // the name of the model which is being added (e.g.: "Debugger.Models.Process.Io") + // + // accessName + // the name used to access the namespace from the parent object (e.g.: "Io") + // + // metadata + // the metadata store used on the accessor for the namespace (e.g.: the help on "Io" if it is newly created) + // + // namespaceModelObject + // the namespace model returned is placed here + // + STDMETHOD(AcquireSubNamespace)( + THIS_ + _In_ PCWSTR modelName, + _In_ PCWSTR subNamespaceModelName, + _In_ PCWSTR accessName, + _In_opt_ IKeyStore *metadata, + _COM_Outptr_ IModelObject **namespaceModelObject + ) PURE; + + // CreateTypedIntrinsicObjectEx(): + // + // A version of CreateTypedIntrinsicObject which allows for the passing of an explicit context. Such is only + // useful for intrinsics which represent addresses in the target (such as pointers). + // + STDMETHOD(CreateTypedIntrinsicObjectEx)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ VARIANT* intrinsicData, + _In_ IDebugHostType* type, + _COM_Outptr_ IModelObject** object + ) PURE; + + //************************************************* + // IDataModelManager3 + // + + // + // A convenience method for acquiring (and registering if necessary) a filtered sub-namespace on an object. + // + // modelName + // the name of the model which is being extended with a namespace (e.g.: "Debugger.Models.Process") + // + // subNamespaceModelName + // the name of the model which is being added (e.g.: "Debugger.Models.Process.Io") + // + // accessName + // the name used to access the namespace from the parent object (e.g.: "Io") + // + // filter + // the filter method to evaluate the context object in order to determine if the namespace property will be applied to the context object + // + // metadata + // the metadata store used on the accessor for the namespace (e.g.: the help on "Io" if it is newly created) + // + // namespaceModelObject + // the namespace model returned is placed here + // + // token + // the token returned is placed here. + // + STDMETHOD(AcquireFilteredSubNamespace)( + THIS_ + _In_ PCWSTR modelName, + _In_ PCWSTR subNamespaceModelName, + _In_ PCWSTR accessName, + _In_opt_ IKeyStore *metadata, + _In_ IModelMethod *filter, + _COM_Outptr_ IModelObject **namespaceModelObject, + _COM_Outptr_result_maybenull_ IFilteredNamespacePropertyToken **token + ) PURE; + + // EnumerateNamedModels(): + // + // This returns an enumerator which will enumerate all registered named models and their associated name. + // + STDMETHOD(EnumerateNamedModels)( + THIS_ + _COM_Outptr_ INamedModelsEnumerator** ppEnumerator + ) PURE; + + //************************************************* + // IDataModelManager4 + // + + // CreateSyntheticObjectFromKeyStore(): + // + // Creates a synthetic object from an existing key store (key/value/metadata tuples). + // + STDMETHOD(CreateSyntheticObjectFromKeyStore)( + THIS_ + _In_opt_ IDebugHostContext* context, + _In_ IKeyStore* parentStore, + _COM_Outptr_ IModelObject** object + ) PURE; +}; + +// +// IModelKeyReference: +// +// Represents a reference to a key which can be resolved (dereferenced) to get the underlying key. +// +// This interface is never directly implemented by a client. +// +#undef INTERFACE +#define INTERFACE IModelKeyReference +DECLARE_INTERFACE_(IModelKeyReference, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IModelKeyReference: + + // GetKeyName(): + // + // Gets the name of the key this reference refers to. + // + STDMETHOD(GetKeyName)( + THIS_ + _Out_ BSTR* keyName + ) PURE; + + // GetOriginalObject(): + // + // Gets the object on which the original "GetKeyReference" which produced this + // key reference was called. + // + // If a key reference is resolved to a property accessor with GetKey(), the original + // object should be passed as context. The IModelPropertyAccessor object which + // is acquired from the resolution will automatically perform the necessary adjustment + // thunk between the return value of this method and the return value of + // GetContextObject(). + // + STDMETHOD(GetOriginalObject)( + THIS_ + _COM_Outptr_ IModelObject** originalObject + ) PURE; + + // GetContextObject(): + // + // Gets the (potentially adjusted) context object for the key. If the key was found on + // a parent model that had a context adjustor, this will be different from the value returned + // in GetOriginalObject; otherwise -- it will be identical. + // + // This object is not typically needed. + // + STDMETHOD(GetContextObject)( + THIS_ + _COM_Outptr_ IModelObject** containingObject + ) PURE; + + //************************************************* + // Accessors: + // + + // + // These are the **ONLY** valid way to resolve a key reference. The particular parent model + // on which the key was found is not exposed. There is no way for a caller to fetch + // the particular key by using an IModelObject->GetKey(this->GetKeyName()) for any + // given IModelObject. + // + + // GetKey(): + // + // Resolves (dereferences) the reference and returns the underlying value as if a call to the + // "GetKey" method were made on the IModelObject from which this key reference was derived. + // + // Note that this method will not resolve underlying properties. If the value of the key is + // a property accessor, it will return it. + // + STDMETHOD(GetKey)( + THIS_ + _COM_Errorptr_opt_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // GetKeyValue(): + // + // Resolves (dereferences) the reference and returns the underlying value as if a call to the + // "GetKeyValue" method were made on the IModelObject from which this key reference was derived. + // + // Note that this method will resolve underlying properties. If the value of the key is + // a property accessor, this API will fetch the value underlying the property and return it. + // It will not return the IModelPropertyAccessor interface for the property. + // + STDMETHOD(GetKeyValue)( + THIS_ + _COM_Errorptr_opt_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // SetKey(): + // + // Resolves (dereferences) the reference and sets the underlying key. Note that this does not + // behave identically to a "SetKey" call on the IModelObject from which this key reference was + // derived. + // + // This will always set the value of the PARTICULAR key to which the reference refers. + // + STDMETHOD(SetKey)( + THIS_ + _In_opt_ IModelObject* object, + _In_opt_ IKeyStore* metadata + ) PURE; + + // SetKeyValue(): + // + // Resolves (dereferences) the reference and sets the underlying key. + // + // Note that this method will resolve underlying properties. If the value of the key is + // a property accessor, this API will call the set method on the underlying property. + // + STDMETHOD(SetKeyValue)( + THIS_ + _In_ IModelObject* object + ) PURE; +}; + +// +// IModelPropertyAccessor: +// +// Represents a read-only or read-write property on an object. A client which only wishes to fetch the value +// of a property would normally call a "GetKeyValue" method on an object and not deal directly with this interface. +// +// Extensions which implement properties would implement this interface one or more times for the properties +// which it provides. +// +#undef INTERFACE +#define INTERFACE IModelPropertyAccessor +DECLARE_INTERFACE_(IModelPropertyAccessor, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IModelPropertyAccessor: + + // GetValue(): + // + // Gets the underlying value of the property. The name of the key and the original context object + // passed to the "GetKey" method that returned this property accessor must be passed to this + // call. + // + STDMETHOD(GetValue)( + THIS_ + _In_ PCWSTR key, + _In_opt_ IModelObject* contextObject, + _COM_Outptr_ IModelObject** value + ) PURE; + + // SetValue(): + // + // Sets the underlying value of the property. The name of the key and the original context object + // passed to the "GetKey" method that returned this property accessor must be passed to this + // call. + // + // Note that some properties are read-only. In such a case, this method will fail. + // + STDMETHOD(SetValue)( + THIS_ + _In_ PCWSTR key, + _In_opt_ IModelObject* contextObject, + _In_ IModelObject* value + ) PURE; +}; + +// +// IModelMethod: +// +// Represents a method which can be called. +// +// Extensions which implement methods would implement this interface one or more times for the methods +// which it provides. +// +#undef INTERFACE +#define INTERFACE IModelMethod +DECLARE_INTERFACE_(IModelMethod, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IModelMethod: + + + // Call(): + // + // Call the method. The arguments to the method must be packed into a linear + // array. A singular result (or error) is returned. Metadata about the result + // can also optionally be returned. + // + STDMETHOD(Call)( + THIS_ + _In_opt_ IModelObject *pContextObject, + _In_ ULONG64 argCount, + _In_reads_(argCount) IModelObject **ppArguments, + _COM_Errorptr_ IModelObject **ppResult, + _COM_Outptr_opt_result_maybenull_ IKeyStore **ppMetadata + ) PURE; +}; + +// +// IKeyEnumerator: +// +// An interface which enumerates the model based keys on an object (and their values and associated +// metadata). A key enumerator can be acquired through the EnumerateKeys, EnumerateKeyValues, and +// EnumerateKeyReferences methods on an IModelObject. +// +#undef INTERFACE +#define INTERFACE IKeyEnumerator +DECLARE_INTERFACE_(IKeyEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IKeyEnumerator: + + // Reset(): + // + // Resets the enumerator to its initial state. A subsequent GetNext call will return + // the first key in enumerator order. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Moves the iterator forward and fetches the name of the next key and, optionally, its value (or a + // reference to it) and associated metadata. + // + // Note that depending on how this enumerator was acquired, the object returned in the value field + // may be the value associated with the key (EnumerateKeys), the resolved value of any property that + // the key referes to (EnumerateKeyValues), or a reference to the key (EnumerateKeyReferences). + // + // If there was an error in resolving the value of the key (for EnumerateKeyValues, for instance), + // the method may return an error *AND* fill value with an error object. + // + // When the enumerator hits the end of the sequence, E_BOUNDS will be returned. + // + STDMETHOD(GetNext)( + _Out_ BSTR* key, + _COM_Errorptr_opt_ IModelObject** value, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + +}; + +// +// IRawEnumerator: +// +// An interface which enumerates the raw children (e.g.: base classes, fields, etc...) of an object +// (and their values and associated metadata). A raw enumerator can be acquired through the +// EnumerateRawValues or EnumerateRawReferences methods on IModelObject. +// +#undef INTERFACE +#define INTERFACE IRawEnumerator +DECLARE_INTERFACE_(IRawEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IKeyEnumerator: + + // Reset(): + // + // Resets the enumerator to its initial state. A subsequent GetNext call will return + // the first raw element (native field, base class, etc...) in enumerator order. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Moves the iterator forward and fetches the name of the raw element and, optionally, its value (or a + // reference to it) and what kind of element it is. + // + // Note that depending on how this enumerator was acquired, the object returned in the value field + // may be the value of the raw element (EnumerateRawValues) or a reference to the raw element + // (EnumerateRawReferences). + // + // If there was an error in reading the value of the raw element (for EnumerateRawValues, for instance), + // the method may return an error *AND* fill value with an error object. + // + // When the enumerator hits the end of the sequence, E_BOUNDS will be returned. + // + STDMETHOD(GetNext)( + _Out_opt_ BSTR* name, + _Out_opt_ SymbolKind *kind, + _COM_Errorptr_opt_ IModelObject** value + ) PURE; + +}; + +// +// INamedModelsEnumerator: +// +// An interface which enumerates registered named models +// +#undef INTERFACE +#define INTERFACE INamedModelsEnumerator +DECLARE_INTERFACE_(INamedModelsEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // INamedModelsEnumerator: + + // Reset(): + // + // Resets the enumerator. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Moves the iterator forward and fetches the name of the next registered model name and the model + // + STDMETHOD(GetNext)( + THIS_ + _Out_ BSTR* pModelName, + _COM_Outptr_ IModelObject** ppModel + ) PURE; +}; + +// +// IDataModelConcept: +// +// Any object which represents a data model which is registered under a name or +// is registered for a particular type signature must implement this concept and add it to the data model +// object via IModelObject::SetConcept. +// +// Clients which create data models implement this interface. It is most frequently +// consumed by the data model manager itself. +// +#undef INTERFACE +#define INTERFACE IDataModelConcept +DECLARE_INTERFACE_(IDataModelConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelConcept: + + // InitializeObject(): + // + // If a particular data model is attached to a type signature + // (via IDataModelManager::RegisterModelForTypeSignature) before an instance of a type matching + // that signature is created, this method will be called on the model. The method will be passed + // the instance object which is being created (modelObject), the type signature which matched + // the specific type of the instance object (matchingTypeSignature), and an enumerator to any wildcard + // matches between the specific type and the type signature. + // + // Note that a data model implementation **MUST NOT** rely on this method being called. A data model + // may be attached after instances of a particular type already exist. This method is most frequently + // used for caching purposes. + // + // A client of the model never calls this API directly. It is called by the model itself. An + // implementor may choose to do nothing in the method; however -- any such "do nothing" implementation + // must still succeed via an S_OK return. A failure returned from this method will prevent object + // construction. + // + STDMETHOD(InitializeObject)( + THIS_ + _In_ IModelObject* modelObject, + _In_opt_ IDebugHostTypeSignature* matchingTypeSignature, + _In_opt_ IDebugHostSymbolEnumerator* wildcardMatches + ) PURE; + + // GetName(): + // + // Returns the name of the data model. If the data model is registered under a default name + // (via IDataModelManager::RegisterNamedModel), it is expected that the returned name is the + // registered default name. Note that a data model may be registered under multiple names. + // It is also perfectly legitimate for a data model to be completely unnamed. In such cases, + // the GetName method may return E_NOTIMPL. + // + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* modelName + ) PURE; + +}; + +// +// IStringDisplayableConcept: +// +// Any object (or data model) which has a string conversion suitable for display implements this concept. +// Clients should not rely on the form of this string conversion for programmatic purposes. It is intended +// for display purposes only. +// +#undef INTERFACE +#define INTERFACE IStringDisplayableConcept +DECLARE_INTERFACE_(IStringDisplayableConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IStringDisplayableConcept: + + // ToDisplayString(): + // + // Called in order to convert an instance of an object to a string suitable for display. + // The "contextObject" argument refers to the object being converted. If there is metadata which + // governs the string conversion (e.g.: choosing which radix to convert an ordinal in), the associated + // metadata store is passed in the "metadata" argument. + // + STDMETHOD(ToDisplayString)( + THIS_ + _In_ IModelObject* contextObject, + _In_opt_ IKeyStore* metadata, + _Out_ BSTR* displayString + ) PURE; +}; + +// +// ICodeAddressConcept: +// +// ICodeAddressConcept Description +#undef INTERFACE +#define INTERFACE ICodeAddressConcept +DECLARE_INTERFACE_(ICodeAddressConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // Name: + + // GetContainingFunctionSymbol(): + // + // GetContainingFunctionSymbol Description + STDMETHOD(GetContainingSymbol)( + THIS_ + _In_ IModelObject* pContextObject, + _Out_ IDebugHostSymbol **ppSymbol + ) PURE; +}; + +// +// IModelIterator: +// +// This interface enumerates the iterable elements of a collection. An object which is iterable +// via IIterableConcept must return an implementation of IModelIterator from its GetIterator method. +// +#undef INTERFACE +#define INTERFACE IModelIterator +DECLARE_INTERFACE_(IModelIterator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IModelIterator: + + // Reset(): + // + // Resets the enumerator to its initial state. A subsequent GetNext call will return + // the first iterated element in iteration order. + // + // Note that it is legitimate for a particular iterator to E_NOTIMPL this particular + // call. In such circumstances, the iterator is forward only and cannot be reset to its + // initial state. While this is legitimate, it is highly recommended that any iterator which + // can support the reset capability. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Moves the iterator forward and fetches the next iterated element and, optionally, the default + // indexer for that element. Note that any iterable which returns a non-zero value from + // IIterableConcept::GetDefaultIndexDimensionality *MUST* return that dimensionality of indexer + // from any call to GetNext. A client of the GetNext method may choose to pass 0/nullptr and not + // retrieve the indexer or choose to pass the dimensionality and a buffer of that size to retrieve + // the indexer. It is illegal to request or pass back only part of an indexer via a non-zero "dimensions" + // argument which is less than the default index dimensionality returned from + // IIterableConcept::GetDefaultIndexDimensionality. + // + // If the iterator moved forward successfully but there was an error in reading the value of + // the iterated element, the method may return an error *AND* fill "object" with an error object. + // + // When the enumerator hits the end of the sequence, E_BOUNDS will be returned. + // + STDMETHOD(GetNext)( + _COM_Errorptr_ IModelObject** object, + _In_ ULONG64 dimensions, + _Out_writes_opt_(dimensions) IModelObject** indexers, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; +}; + +// WrappedObjectPreference: +// +// Indicates a preference for how the wrapper and the wrapped object should be treated. +// +enum WrappedObjectPreference +{ + // Indicates that the wrapped object should be used for name resolution and not interpreted to be a + // generalized proxy for the object. In essence, things like "." and "->" should work in an expression + // evaluator; however, other operations should not. + WrappedObjectNameResolution, + + // Indicates that the wrapper should be considered a general proxy for the wrapped object. + WrappedObjectGeneralProxy +}; + +// IObjectWrapperConcept: +// +// An object which is a wrapper for another object (e.g.: a smart pointer like std::unique_ptr) +// can implement this concept to indicate such. +// +#undef INTERFACE +#define INTERFACE IObjectWrapperConcept +DECLARE_INTERFACE_(IObjectWrapperConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IObjectWrapperConcept: + + // GetWrappedObject(): + // + // Gets the object that the context object wraps (e.g.: the underlying pointer which a smart pointer object holds) + // + STDMETHOD(GetWrappedObject)( + THIS_ + _In_ IModelObject *pContextObject, + _COM_Outptr_ IModelObject **wrappedObject, + _Out_ WrappedObjectPreference *pUsagePreference + ) PURE; +}; + +// +// IIterableConcept: +// +// Any object (or data model) which is a container which can be iterated implements this concept. +// +#undef INTERFACE +#define INTERFACE IIterableConcept +DECLARE_INTERFACE_(IIterableConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IIterableConcept: + + // GetDefaultIndexDimensionality(): + // + // If the iterable object also supports indexing via supporting IIndexableConcept, the iterator may optionally + // return a "default index" for each element it produces. The dimensionality of that "default index" is returned + // from this method. + // + // An implementation of this method may return 0 / S_OK indicating that there is no default index returned + // from the iterator or it may return non-zero / S_OK indicating that there is a default index returned from + // each GetNext of the iterator. + // + // Note that an implementation which returns non-zero for dimensionality here is promising: + // + // - It supports IIndexableConcept + // + // - The GetNext method of the IModelIterator returned from the GetIterator method here will return a default + // index of this dimensionality for each element that is UNIQUE + // + // - Passing the default index from IModelIterator::GetNext to IIndexableConcept::GetAt will return the same + // value + // + STDMETHOD(GetDefaultIndexDimensionality)( + THIS_ + _In_ IModelObject* contextObject, + _Out_ ULONG64* dimensionality + ) PURE; + + // GetIterator(): + // + // Returns an iterator instance for this iterable. The instance of the object being iterated is passed in + // the "contextObject" argument. + // + STDMETHOD(GetIterator)( + THIS_ + _In_ IModelObject* contextObject, + _Out_ IModelIterator** iterator + ) PURE; + +}; + +// +// IIndexableConcept: +// +// Any object which is a container that supports random access retrieval of elements from given N-dimensional +// indexers implements this concept. +// +// It is legal for an object to be indexable (via support of IIndexableConcept) and not iterable (via lack of support +// for IIterableConcept). +// +#undef INTERFACE +#define INTERFACE IIndexableConcept +DECLARE_INTERFACE_(IIndexableConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IIndexableConcept: + + // GetDimensionality(): + // + // Returns the dimensionality of the indexer. + // + // Note that if the object in question is iterable as well as indexable and the object supports a + // default indexer (as inquired through IIterableConcept::GetDefaultIndexDimensionality), the + // dimensionality returned from the iterator and this method must agree. + // + STDMETHOD(GetDimensionality)( + THIS_ + _In_ IModelObject* contextObject, + _Out_ ULONG64* dimensionality + ) PURE; + + // GetAt(): + // + // Returns the value of the element at a particular N-dimensional index. An indexer of N-dimensions + // where N is the value returned from GetDimensionality **MUST** be supported. + // + // Note that a given object may be indexable in different domains by different types (e.g.: indexable + // via both ordinals and strings). + // + // If the index is out of range (or could not be accessed), the method will return a failure; however, + // in such cases, the output object may still be set to an error object. + // + STDMETHOD(GetAt)( + THIS_ + _In_ IModelObject* contextObject, + _In_ ULONG64 indexerCount, + _In_reads_(indexerCount) IModelObject** indexers, + _COM_Errorptr_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // SetAt(): + // + // Attempts to set the value of the element at a particular N-dimensional index. An indexer of N-dimensions + // where N is the value returned from GetDimensionality **MUST** be supported. + // + // Note that a given object may be indexable in different domains by different types (e.g.: indexable + // via both ordinals and strings). + // + // If the index is out of range (or could not be accessed), the method will return a failure; however, + // in such cases, the output object may still be set to an error object. + // + // Note that some indexers are read-only. This method may fail on such indexers (with E_NOTIMPL). + // + STDMETHOD(SetAt)( + THIS_ + _In_ IModelObject* contextObject, + _In_ ULONG64 indexerCount, + _In_reads_(indexerCount) IModelObject** indexers, + _In_ IModelObject *value + ) PURE; +}; + +// +// IPreferredRuntimeTypeConcept: +// +// This interface provides a facility to use custom logic when casting an object to it's runtime type. For most types this is not +// needed as in most instances the runtime type can be determined by the debugger automatically. In some cases this is not +// possible and this interface can be used in order to provide the correct runtime type. +// +#undef INTERFACE +#define INTERFACE IPreferredRuntimeTypeConcept +DECLARE_INTERFACE_(IPreferredRuntimeTypeConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IPreferredRuntimeTypeConcept: + + // CastToPreferredRuntimeType() + // + // Casts the object to it's preferred runtime type. + // + // If the cast is successful the method will return success. + // Otherwise a failure is returned. + // + // Note that the error E_NOT_SET is considered special by this method. + // An implementation of this method which returns E_NOT_SET is indicating + // to the data model that it does not wish to override the default + // (type system based) conversion to a runtime type. + // + STDMETHOD(CastToPreferredRuntimeType)( + THIS_ + _In_ IModelObject* contextObject, + _COM_Errorptr_ IModelObject** object + ) PURE; +}; + +// +// IDebugHost: +// +// The core interface which represents the underlying debugger which is hosting the data model. +// The host is required to support this interface. The various other IDebugHost* interfaces +// can be queried once an extension has access to the debug host. +// +#undef INTERFACE +#define INTERFACE IDebugHost +DECLARE_INTERFACE_(IDebugHost, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHost: + + // GetHostDefinedInterface(): + // + // Returns an object (interface cast to IUnknown) which only has meaning to a specific host. + // The DbgEng host of the model might return an IDebugClient (cast to IUnknown) as an example. + // + // A host may E_NOTIMPL this if it does not wish to provide any access to its implementation + // specific interfaces. + // + STDMETHOD(GetHostDefinedInterface)( + THIS_ + _COM_Outptr_ IUnknown** hostUnk + ) PURE; + + // GetCurrentContext(): + // + // Returns a context object which represents the current "state" of the debugger. This is the context + // in which all expression evaluations happen, modules are queried, memory reads and writes occur, etc... + // The exact meaning of this is specific to a host. It may include which target/process is being debugged, + // etc... + // + // A host may not E_NOTIMPL this method. + // + STDMETHOD(GetCurrentContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + // GetDefaultMetadata(): + // + // Returns a default metadata store for the host. The core object model relies on default metadata for + // certain operations if specific metadata is not provided. The display radix for a given type is one + // example where the core model will fall back to default metadata. + // + // A host may E_NOTIMPL this if it does not provide a default metadata store. + // + STDMETHOD(GetDefaultMetadata)( + THIS_ + _COM_Outptr_ IKeyStore** defaultMetadataStore + ) PURE; +}; + +// +// IDebugHostContext: +// +// This interface represents an opaque blob of state managed by the debugger which hosts +// the data model interfaces. This opaque blob represents the "state" of the debugger +// as it pertains to an object. This may include, for instance, what target / process +// the object belongs to, what address space the object is in, etc... +// +// The "current" context of the debugger can be acquired via IDebugHost::GetCurrentContext +// Similarly, the context of any object can be acquired via IModelObject::GetContext. +// +// Child objects which are created by an extension should propagate the state of the parent +// whenever possible. Only the debug host should extend or alter the context. +// +#undef INTERFACE +#define INTERFACE IDebugHostContext +DECLARE_INTERFACE_(IDebugHostContext, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostContext: + + // IsEqualTo(): + // + // Returns whether two IDebugHostContext objects are equal by value. Note that there + // is no requirement for a debug host to have interface pointer equality for two contexts + // which are equivalent. The actual contexts can be compared through this method. + // + STDMETHOD(IsEqualTo)( + THIS_ + _In_ IDebugHostContext *pContext, + _Out_ bool *pIsEqual + ) PURE; +}; + +// USE_CURRENT_HOST_CONTEXT: +// +// Methods which take an IDebugHostContext can be called with this special defined value to indicate +// to the debug host that the "current" context of the debugger should be used. This is in lieu of +// explicitly calling IDebugHost::GetCurrentContext and explicitly passing it to the method needing +// an IDebugHostContext. +// +// Using this may be more efficient than the explicit query and pass. +// +#define USE_CURRENT_HOST_CONTEXT ((IDebugHostContext *)((ULONG_PTR)-1)) + +enum AddressSpaceRelation +{ + Disjoint, + Equal, + Overlapping, + Subset, + Superset +}; + +// +// IDebugHostContext2: +// +// Extended capabilities for working with contexts. +// +#undef INTERFACE +#define INTERFACE IDebugHostContext2 +DECLARE_INTERFACE_(IDebugHostContext2, IDebugHostContext) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostContext: + + // IsEqualTo(): + // + // Returns whether two IDebugHostContext objects are equal by value. Note that there + // is no requirement for a debug host to have interface pointer equality for two contexts + // which are equivalent. The actual contexts can be compared through this method. + // + STDMETHOD(IsEqualTo)( + THIS_ + _In_ IDebugHostContext *pContext, + _Out_ bool *pIsEqual + ) PURE; + + //************************************************* + // IDebugHostContext2: + + + // GetAddressSpaceRelation(): + // + // Returns the relationship between this contexts virtual memory space and another, as follows: + // + // Disjoint - The two contexts share no virtual memory mappings. + // Equal - The two contexts share all virtual memory mappings. + // Overlapping - The two contexts have partially shared memory mappings. + // Subset - The indicated context is a strict subset of this context. + // Superset - The indicated context is a strict superset of this context. + // + STDMETHOD(GetAddressSpaceRelation)( + THIS_ + _In_ IDebugHostContext2* pContext, + _Out_ AddressSpaceRelation* pAddressSpaceRelation + ) PURE; +}; + +// IDebugHostContextExtension: +// +// An optional "interface" on host contexts that allows for extensibility based modification. This interface +// is *NEVER* QI'able off an IDebugHostContext. Changes must be done via a QI for IDebugHostContextExtensibility +// and cloning an existing context (with optional additions). Once this interface is released, it can never +// be reacquired. +// +#undef INTERFACE +#define INTERFACE IDebugHostContextExtension +DECLARE_INTERFACE_(IDebugHostContextExtension, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostContextExtension: + + // AddExtensionData: + // + // Adds a set of extension data to a host context. + // + STDMETHOD(AddExtensionData)( + THIS_ + _In_ ULONG blobId, + _In_ ULONG dataSize, + _In_reads_(dataSize) PVOID data + ) PURE; + + // FinalizeContext(): + // + // Finalizes modifications of the host context, makes it immutable, and returns an interface to the + // context. + // + STDMETHOD(FinalizeContext)( + THIS_ + _COM_Outptr_ IDebugHostContext **immutableContext + ) PURE; + +}; + +// IDebugHostContextExtensibility: +// +// An *OPTIONAL* interface for hosts to support that allows certain extensions +#undef INTERFACE +#define INTERFACE IDebugHostContextExtensibility +DECLARE_INTERFACE_(IDebugHostContextExtensibility, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostContextExtensibility: + // + + // HasExtensionData(): + // + // Indicates whether a given context has a particular extension blob associated with it. + // + STDMETHOD_(bool, HasExtensionData)( + THIS_ + _In_ ULONG blobId + ) PURE; + + // ReadExtensionData: + // + // Reads a set of extension data from a host context. This method will fail if the context does not + // have the particular extension blob associated with it. + // + STDMETHOD(ReadExtensionData)( + THIS_ + _In_ ULONG blobId, + _In_ ULONG bufferSize, + _Out_writes_(bufferSize) PVOID buffer + ) PURE; + + // CloneContextForModification(): + // + // Clones this host context and returns a one time modification interface to associate data with + // the context. The FinalizeContext method must be called on the resulting handle to get back to the actual + // cloned context. Once that is done, the returned host context is immutable. + // + STDMETHOD(CloneContextForModification)( + THIS_ + _COM_Outptr_ IDebugHostContextExtension **extensionHandle + ) PURE; + + // CloneContextWithModification(): + // + // Clones this host context, associates a particular extension blob with the cloned context, finalizes the + // context, and returns an immutable interface to the newly cloned context. To associate additional context + // information beyond a single blob, CloneContextForModification should be used. + // + STDMETHOD(CloneContextWithModification)( + THIS_ + _In_ ULONG blobId, + _In_ ULONG dataSize, + _In_reads_(dataSize) PVOID data, + _COM_Outptr_ IDebugHostContext **clonedContext + ) PURE; +}; + +// +// IDebugHostContextControl: +// +// This interface allows to change the "current" context (the internal state) of the debugger (IDebugHostContext) +// +// The context change can be a full change/switch (for example change the current process/thread/etx. being debugged) +// or a temporary switch. The temporary change/switch of the internal state of the debugger may alter the debugger +// in an inconsistent state and not all debugger functionality is available unless the change/switch is reverted back. + +#undef INTERFACE +#define INTERFACE IDebugHostContextControl +DECLARE_INTERFACE_(IDebugHostContextControl, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostContextControl: + + // SwitchTo(): + // + // Changes/switches the debugger engine context to IDebugHostContext (the context which IDebugHostContextControl was retrieved from). + // This is a "full" context debuger engine switch. + // + STDMETHOD(SwitchTo)( + THIS_ + ) PURE; + + // GetContextAlternator(): + // + // Retrieves context alternator, which allows a temporary context change/switch + // + STDMETHOD(GetContextAlternator)( + THIS_ + _COM_Outptr_ IDebugHostContextAlternator** contextAlternator + ) PURE; +}; + +// +// IDebugHostContextAlternator: +// +// This interface allows to change the "current" context (the internal state) of the debugger (IDebugHostContext) +// +// The context change can be a full change/switch (for example change the current process/thread/etx. being debugged) +// or a temporary switch. The temporary change/switch of the internal state of the debugger may alter the debugger +// in an inconsistent state and not all debugger functionality is available unless the change/switch is reverted back. +// +#undef INTERFACE +#define INTERFACE IDebugHostContextAlternator +DECLARE_INTERFACE_(IDebugHostContextAlternator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostContextAlternator: + + // SwitchTo(): + // + // Changes/Switches the debugger engine context to IDebugHostContext (the context which IDebugHostContextControl was retrieved from). + // The change/switch is a temporary and not all debugger functionality is available or may work as expected unless + // the context is switched back + // + STDMETHOD(SwitchTo)( + THIS_ + _In_ bool fullSwitch + ) PURE; + + // SwitchBack(): + // + // Restores the debugger engine context to its previous state before invoking SwitchTo to temporary switch to a new context. + // the context is switched back + // + STDMETHOD(SwitchBack)( + THIS_ + ) PURE; +}; + + +// +// ErrorClass: +// +// Defines the class of error which is being reported to the host. +// +enum ErrorClass +{ + ErrorClassWarning, + ErrorClassError +}; + +// +// IDebugHostErrorSink: +// +// Represents an error sink for the debug host. Errors which occur during certain operations +// are sent to the error sink to be handled (or notify the user). +// +#undef INTERFACE +#define INTERFACE IDebugHostErrorSink +DECLARE_INTERFACE_(IDebugHostErrorSink, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostErrorSink: + + // ReportError(): + // + // Called by the debug host to report an error. + // + STDMETHOD(ReportError)( + THIS_ + _In_ ErrorClass errClass, + _In_ HRESULT hrError, + _In_ PCWSTR message + ) PURE; + +}; + +// +// IDebugHostSymbol: +// +// The base interface for any symbol (field, type, function, etc...) represented by +// the debug host. +// +#undef INTERFACE +#define INTERFACE IDebugHostSymbol +DECLARE_INTERFACE_(IDebugHostSymbol, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + // GetContext(): + // + // Gets the debug host's context for this symbol. Any object which is created relative to this symbol + // can be created with this context. + // + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + // EnumerateChidlren(): + // + // Enumerates all child symbols of the given type and name. SymbolType::Symbol can be used to search + // to search for any kind of child. + // + // Note that if name is nullptr, children of any name will be produced by the resulting enumerator. + // + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + // GetSymbolKind(): + // + // Gets the kind of symbol that this is (e.g.: a field, a base class, a type, etc...) + // + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + // GetName(): + // + // Returns the name of the symbol if the symbol has a name. If the symbol does not have a name, an error + // is returned. + // + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + // GetType(): + // + // Returns the type (e.g.: "int *") of the symbol if the symbol has a type. If the symbol does not have a + // type, an error is returned. + // + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + // GetContainingModule(): + // + // Returns the module which contains this symbol if the symbol has a containing module. If the symbol does + // not have a containing module, an error is returned. + // + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + // CompareAgainst(): + // + // Compares two symbols for equality. A host is under no obligation to ensure that there is interface pointer + // equality for two identical symbols. This can be used to check for equality. + // + // Note that presently, "comparisonFlags" is reserved. + // + STDMETHOD(CompareAgainst)( + THIS_ + _In_ IDebugHostSymbol *pComparisonSymbol, + _In_ ULONG comparisonFlags, + _Out_ bool *pMatches + ) PURE; + +}; + +// +// IDebugHostSymbolEnumerator: +// +// This enumerates a set of symbols. Such may be the set of children acquired from a call to +// the IDebugHostSymbol::EnumerateChildren method. +// +#undef INTERFACE +#define INTERFACE IDebugHostSymbolEnumerator +DECLARE_INTERFACE_(IDebugHostSymbolEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbolEnumerator: + + // Reset(): + // + // Resets the enumerator to its initial state. A subsequent GetNext call will return + // the first symbol in the set in enumerator order. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Moves the iterator forward and fetches the next symbol in the set. + // + // E_BOUNDS will be returned when the enumerator hits the end of the set. + // + STDMETHOD(GetNext)( + THIS_ + _COM_Outptr_ IDebugHostSymbol** symbol + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugHostSymbolSubstitutionEnumerator +DECLARE_INTERFACE_(IDebugHostSymbolSubstitutionEnumerator, IDebugHostSymbolEnumerator) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbolEnumerator: + // + + // Reset(): + // + // Resets the enumerator to its initial state. A subsequent GetNext call will return + // the first symbol in the set in enumerator order. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Moves the iterator forward and fetches the next symbol in the set. + // + // E_BOUNDS will be returned when the enumerator hits the end of the set. + // + STDMETHOD(GetNext)( + THIS_ + _COM_Outptr_ IDebugHostSymbol** symbol + ) PURE; + + //************************************************* + // IDebugHostSymbolSubstitutionEnumerator: + // + + // GetNextWithSubstitutionText(): + // + // Moves the iterator forward and fetches both the next symbol in the set and the textual representation + // of that symbol as appropriate in its given context. + // + STDMETHOD(GetNextWithSubstitutionText)( + THIS_ + _COM_Outptr_opt_result_maybenull_ IDebugHostSymbol** symbol, + _Out_opt_ BSTR *symbolText + ) PURE; +}; + +// +// IDebugHostModule: +// +// A specialization of IDebugHostSymbol representing a module (e.g.: a DLL or executable). +// +#undef INTERFACE +#define INTERFACE IDebugHostModule +DECLARE_INTERFACE_(IDebugHostModule, IDebugHostSymbol) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostModule: + + // GetImageName(): + // + // Returns the image name of the module. If "allowPath" is set, the resulting imageName **MAY OR MAY NOT** + // include the path to the image (depending on the particular debug host). If the "allowPath" is not set, + // the resulting imageName will only include the name. + // + STDMETHOD(GetImageName)( + THIS_ + _In_ bool allowPath, + _Out_ BSTR* imageName + ) PURE; + + // GetBaseLocation(): + // + // Returns the location of the base of the module in the address space of the debug target. + // + STDMETHOD(GetBaseLocation)( + THIS_ + _Out_ Location* moduleBaseLocation + ) PURE; + + // GetVersion(): + // + // Returns the file and product version of the module (assuming they can be read). If a given version + // is requested (via a non-nullptr output pointer) and it cannot be read, an appropriate error will be + // returned. + // + STDMETHOD(GetVersion)( + THIS_ + _Out_opt_ ULONG64* fileVersion, + _Out_opt_ ULONG64* productVersion + ) PURE; + + // FindTypeByName(): + // + // Finds a type (e.g.: "int *") which is defined within the module by name. This method may return a valid + // IDebugHostType which would never be returned via an explicit recursion of children of the module. The + // debug host may allow the creation of "derivative types" of things not in the module in question + // (e.g.: a "MyStruct **" where "MyStruct" is never used in pointer form). + // + STDMETHOD(FindTypeByName)( + THIS_ + _In_z_ PCWSTR typeName, + _Out_ IDebugHostType** type + ) PURE; + + // FindSymbolByRVA(): + // + // Finds a single symbol at the given relative virtual address within the module. If there is not a single + // symbol at the supplied RVA, an error will be returned. + // + STDMETHOD(FindSymbolByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbol** symbol + ) PURE; + + // FindSymbolByName(): + // + // Finds a single symbol by name within the module. If there is not a single symbol matching the given name, + // an error will be returned. + // + STDMETHOD(FindSymbolByName)( + THIS_ + _In_z_ PCWSTR symbolName, + _Out_ IDebugHostSymbol** symbol + ) PURE; +}; + +// +// IDebugHostModule2: +// +// A specialization of IDebugHostSymbol representing a module (e.g.: a DLL or executable). +// +#undef INTERFACE +#define INTERFACE IDebugHostModule2 +DECLARE_INTERFACE_(IDebugHostModule2, IDebugHostModule) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostModule: + + STDMETHOD(GetImageName)( + THIS_ + _In_ bool allowPath, + _Out_ BSTR* imageName + ) PURE; + + STDMETHOD(GetBaseLocation)( + THIS_ + _Out_ Location* moduleBaseLocation + ) PURE; + + STDMETHOD(GetVersion)( + THIS_ + _Out_opt_ ULONG64* fileVersion, + _Out_opt_ ULONG64* productVersion + ) PURE; + + STDMETHOD(FindTypeByName)( + THIS_ + _In_z_ PCWSTR typeName, + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(FindSymbolByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbol** symbol + ) PURE; + + STDMETHOD(FindSymbolByName)( + THIS_ + _In_z_ PCWSTR symbolName, + _Out_ IDebugHostSymbol** symbol + ) PURE; + + //************************************************* + // IDebugHostModule2: + + // FindContainingSymbolByRVA(): + // + // Finds a single symbol whose size indicates that the given relative virtual address is contained within it. If there is not a single + // symbol at the supplied RVA, an error will be returned. + // + // The offset to the symbol will be returned as well. + // + STDMETHOD(FindContainingSymbolByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbol** symbol, + _Out_ ULONG64 *offset + ) PURE; +}; + +// +// IDebugHostModule3: +// +// A specialization of IDebugHostSymbol representing a module (e.g.: a DLL or executable). +// +#undef INTERFACE +#define INTERFACE IDebugHostModule3 +DECLARE_INTERFACE_(IDebugHostModule3, IDebugHostModule2) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostModule: + + STDMETHOD(GetImageName)( + THIS_ + _In_ bool allowPath, + _Out_ BSTR* imageName + ) PURE; + + STDMETHOD(GetBaseLocation)( + THIS_ + _Out_ Location* moduleBaseLocation + ) PURE; + + STDMETHOD(GetVersion)( + THIS_ + _Out_opt_ ULONG64* fileVersion, + _Out_opt_ ULONG64* productVersion + ) PURE; + + STDMETHOD(FindTypeByName)( + THIS_ + _In_z_ PCWSTR typeName, + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(FindSymbolByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbol** symbol + ) PURE; + + STDMETHOD(FindSymbolByName)( + THIS_ + _In_z_ PCWSTR symbolName, + _Out_ IDebugHostSymbol** symbol + ) PURE; + + //************************************************* + // IDebugHostModule2: + + // FindContainingSymbolByRVA(): + // + // Finds a single symbol whose size indicates that the given relative virtual address is contained within it. If there is not a single + // symbol at the supplied RVA, an error will be returned. + // + // The offset to the symbol will be returned as well. + // + STDMETHOD(FindContainingSymbolByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbol** symbol, + _Out_ ULONG64 *offset + ) PURE; + + //************************************************* + // IDebugHostModule3: + + // GetRange(): + // + // Returns the beginning and ending VA of the module in memory. + // + STDMETHOD(GetRange)( + THIS_ + _Out_ Location* moduleStart, + _Out_ Location* moduleEnd + ) PURE; + +}; + +#undef INTERFACE +#define INTERFACE IDebugHostModule4 +DECLARE_INTERFACE_(IDebugHostModule4, IDebugHostModule3) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostModule: + + STDMETHOD(GetImageName)( + THIS_ + _In_ bool allowPath, + _Out_ BSTR* imageName + ) PURE; + + STDMETHOD(GetBaseLocation)( + THIS_ + _Out_ Location* moduleBaseLocation + ) PURE; + + STDMETHOD(GetVersion)( + THIS_ + _Out_opt_ ULONG64* fileVersion, + _Out_opt_ ULONG64* productVersion + ) PURE; + + STDMETHOD(FindTypeByName)( + THIS_ + _In_z_ PCWSTR typeName, + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(FindSymbolByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbol** symbol + ) PURE; + + STDMETHOD(FindSymbolByName)( + THIS_ + _In_z_ PCWSTR symbolName, + _Out_ IDebugHostSymbol** symbol + ) PURE; + + //************************************************* + // IDebugHostModule2: + + // FindContainingSymbolByRVA(): + // + // Finds a single symbol whose size indicates that the given relative virtual address is contained within it. If there is not a single + // symbol at the supplied RVA, an error will be returned. + // + // The offset to the symbol will be returned as well. + // + STDMETHOD(FindContainingSymbolByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbol** symbol, + _Out_ ULONG64 *offset + ) PURE; + + //************************************************* + // IDebugHostModule3: + + STDMETHOD(GetRange)( + THIS_ + _Out_ Location* moduleStart, + _Out_ Location* moduleEnd + ) PURE; + + //************************************************* + // IDebugHostModule4: + // + + // FindTypeByName2(): + // + // Finds a type by name within the module. If an enclosing symbol is given, the type is looked for by name + // within that enclosing symbol; otherwise, the type is looked for globally. + // + STDMETHOD(FindTypeByName2)( + THIS_ + _In_opt_ IDebugHostSymbol *pEnclosingSymbol, + _In_z_ PCWSTR typeName, + _Out_ IDebugHostType** type + ) PURE; +}; + +// KnownCompiler: +// +// Identifies a set of well known compilers that we know something about. +// +enum KnownCompiler +{ + CompilerUnknown, + CompilerMSVC, + CompilerGCC, + CompilerClang, + CompilerRustC +}; + +#undef INTERFACE +#define INTERFACE IDebugHostModule5 +DECLARE_INTERFACE_(IDebugHostModule5, IDebugHostModule4) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostModule: + + STDMETHOD(GetImageName)( + THIS_ + _In_ bool allowPath, + _Out_ BSTR* imageName + ) PURE; + + STDMETHOD(GetBaseLocation)( + THIS_ + _Out_ Location* moduleBaseLocation + ) PURE; + + STDMETHOD(GetVersion)( + THIS_ + _Out_opt_ ULONG64* fileVersion, + _Out_opt_ ULONG64* productVersion + ) PURE; + + STDMETHOD(FindTypeByName)( + THIS_ + _In_z_ PCWSTR typeName, + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(FindSymbolByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbol** symbol + ) PURE; + + STDMETHOD(FindSymbolByName)( + THIS_ + _In_z_ PCWSTR symbolName, + _Out_ IDebugHostSymbol** symbol + ) PURE; + + //************************************************* + // IDebugHostModule2: + + // FindContainingSymbolByRVA(): + // + // Finds a single symbol whose size indicates that the given relative virtual address is contained within it. If there is not a single + // symbol at the supplied RVA, an error will be returned. + // + // The offset to the symbol will be returned as well. + // + STDMETHOD(FindContainingSymbolByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbol** symbol, + _Out_ ULONG64 *offset + ) PURE; + + //************************************************* + // IDebugHostModule3: + + STDMETHOD(GetRange)( + THIS_ + _Out_ Location* moduleStart, + _Out_ Location* moduleEnd + ) PURE; + + //************************************************* + // IDebugHostModule4: + // + + // FindTypeByName2(): + // + // Finds a type by name within the module. If an enclosing symbol is given, the type is looked for by name + // within that enclosing symbol; otherwise, the type is looked for globally. + // + STDMETHOD(FindTypeByName2)( + THIS_ + _In_opt_ IDebugHostSymbol *pEnclosingSymbol, + _In_z_ PCWSTR typeName, + _Out_ IDebugHostType** type + ) PURE; + + //************************************************* + // IDebugHostModule5: + // + + // GetPrimaryCompilerInformation(): + // + // Returns information about what might be considered the "primary compiler" which produced the module. + // Such information may, for instance, be used to understand something about how symbols are formatted + // by that compiler, etc... While this may differ for each compilation unit / compiland (e.g.: there may + // be assembly code linked in, etc...), this should return the "primary" or most significant one for + // non-assembly CUs. + // + // Note that the "compiler string" returned may be a compiler name or may include additional information + // (e.g.: command line arguments, etc...). That depends on the underlying implementation. + // + // It is legal for a debug host to E_NOTIMPL this. + // + STDMETHOD(GetPrimaryCompilerInformation)( + THIS_ + _Out_ KnownCompiler *pCompilerId, + _Out_opt_ BSTR *pPrimaryCompilerString + ) PURE; +}; + + +// +// ArrayDimension: +// +// Defines the memory layout of one dimension of an array. +// +struct ArrayDimension +{ + // The lower bounds of the array. For C style zero based arrays, this will always be zero. There is no + // uniform restriction that all arrays represented by these interfaces are zero based. + LONG64 LowerBound; + + // Defines the length of the dimension. The dimension is considered to be of the form [LowerBound, LowerBound + Length) + ULONG64 Length; + + // Defines how many bytes to move forward in memory to walk from index N of the dimension to index N + 1 + ULONG64 Stride; +}; + +// +// IDebugHostType: +// +// A specialization of IDebugHostSymbol representing a type (e.g.: "MyStruct *") +// +#undef INTERFACE +#define INTERFACE IDebugHostType +DECLARE_INTERFACE_(IDebugHostType, IDebugHostSymbol) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostType: + + // GetKind(): + // + // Returns the kind of type (e.g.: a pointer, an array, an intrinsic, etc...) + // + STDMETHOD(GetTypeKind)( + THIS_ + _Out_ TypeKind *kind + ) PURE; + + // GetSize(): + // + // Returns the overall size of the type as laid out in memory. + // + STDMETHOD(GetSize)( + THIS_ + _Out_ ULONG64* size + ) PURE; + + // GetBaseType(): + // + // If the type is a derivative of another single type (e.g.: as "MyStruct *" is derived from "MyStruct"), + // this returns the base type of the derivation. For pointers, this would return the type pointed to. + // For arrays, this would return what the array is an array of. If the type is not such a derivative + // type, an error is returned. + // + // Not that this method has nothing to do with C++ base classes. Such are symbols (IDebugHostBaseClass) + // which can be enumerated from the derived class via a call to EnumerateChildren. + // + STDMETHOD(GetBaseType)( + THIS_ + _Out_ IDebugHostType** baseType + ) PURE; + + // GetHashCode(): + // + // Returns a 32-bit hash code for the type. With the exception of a global match (e.g.: a type signature + // like "*" if permitted by the host), any type instance which can match a particular type signature must + // return the same hash code. + // + // This is used in conjunction with type signatures in order to match type signatures to type instances. + // + STDMETHOD(GetHashCode)( + THIS_ + _Out_ ULONG* hashCode + ) PURE; + + // GetIntrinsicType(): + // + // If the type kind as reported by GetTypeKind is an intrinsic, this returns more information about the + // particular kind of intrinsic. + // + // The returned "intrinsicKind" indicates things like whether it is a bool, integer, floating point, etc... + // but not necessarily the size. The returned "carrierType" indicates how this intrinsic value is + // packed into a VARIANT structure. The combination of this information indicates the full set + // of information about the intrinsic. + // + STDMETHOD(GetIntrinsicType)( + THIS_ + _Out_opt_ IntrinsicKind *intrinsicKind, + _Out_opt_ VARTYPE *carrierType + ) PURE; + + //************************************************* + // Bitfield Information: + // + // The following methods only apply to types which are bitfields: + // + + // GetBitField(): + // + // If the type is a bit field, this returns the numeric position of the least significant bit of the + // field and the length of the field. Bit positions (lsbOfField + lengthOfField : lsbOfField] define + // the bit position. + // + STDMETHOD(GetBitField)( + THIS_ + _Out_ ULONG* lsbOfField, + _Out_ ULONG* lengthOfField + ) PURE; + + + //************************************************* + // Pointer Information (GetKind returns TypePointer): + // + // The following methods only apply to types which are pointers (or create + // derivative types which are pointers) + // + + // GetPointerKind(): + // + // Returns what kind of pointer the type is (e.g.: a standard pointer, a pointer to member, + // a reference, an r-value reference, a C++/CX hat, etc...) + // + STDMETHOD(GetPointerKind)( + THIS_ + _Out_ PointerKind* pointerKind + ) PURE; + + // GetMemberType(): + // + // If the pointer is a pointer-to-class-member, this returns the type of such class. + // + STDMETHOD(GetMemberType)( + THIS_ + _Out_ IDebugHostType** memberType + ) PURE; + + // CreatePointerTo(): + // + // For any given type, this returns a new IDebugHostType which is a pointer to this type. + // The kind of pointer is supplied by the "kind" argument. + // + STDMETHOD(CreatePointerTo)( + THIS_ + _In_ PointerKind kind, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Array Information (GetKind returns TypeArray): + // + // The following methods only apply to types which are arrays (or create + // derivative types which are arrays) + // + + // GetArrayDimensionality(): + // + // Returns the dimensionality of the array. There is no guarantee that every array type representable by + // these interfaces is a standard zero-based one dimensional array as is standard in C. + // + STDMETHOD(GetArrayDimensionality)( + THIS_ + _Out_ ULONG64* arrayDimensionality + ) PURE; + + // GetArrayDimensions(): + // + // Fills in information about each dimension of the array including its lower bound, length, and stride. + // This method should not be called on TypeExtendedArray. Methods in IDebugHostType4 should be utilized. + // + STDMETHOD(GetArrayDimensions)( + THIS_ + _In_ ULONG64 dimensions, + _Out_writes_(dimensions) ArrayDimension *pDimensions + ) PURE; + + // CreateArrayOf(): + // + // For any given type, this returns a new IDebugHostType which is an array of this type. + // The dimensions of the array must be supplied via the "dimensions" and "pDimensions" arguments. + // This method should not be called on TypeExtendedArray. Methods in IDebugHostType4 should be utilized. + // + STDMETHOD(CreateArrayOf)( + THIS_ + _In_ ULONG64 dimensions, + _In_reads_(dimensions) ArrayDimension *pDimensions, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Function Information (GetKind returns TypeFunction): + // + // The following methods only apply to types which are functions (or create + // derivative types which are functions) + // + + // GetFunctionCallingConvention(): + // + // Returns the calling convention of the function (e.g.: STDCALL, FASTCALL, etc...) + // + STDMETHOD(GetFunctionCallingConvention)( + THIS_ + _Out_ CallingConventionKind* conventionKind + ) PURE; + + // GetFunctionReturnType(): + // + // Gets the return type of the function as an IDebugHostType. + // + STDMETHOD(GetFunctionReturnType)( + THIS_ + _COM_Outptr_ IDebugHostType** returnType + ) PURE; + + // GetFunctionParameterTypeCount(): + // + // Gets the number of parameter types that the function takes. + // + STDMETHOD(GetFunctionParameterTypeCount)( + THIS_ + _Out_ ULONG64* count + ) PURE; + + // GetFunctionParameterTypeAt(): + // + // Returns the type of the "i"-th argument to the function as a new IDebugHostType. + // + STDMETHOD(GetFunctionParameterTypeAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostType** parameterType + ) PURE; + + //************************************************* + // Template Information: + // + // The following methods only apply to types which are templates or generics (or create + // derivative types which are templates or generics) + // + + // IsGeneric(): + // + // Returns whether the type is a generic or template. + // + STDMETHOD(IsGeneric)( + THIS_ + _Out_ bool* isGeneric + ) PURE; + + // GetGenericArgumentCount(): + // + // Returns the number of arguments to the generic/template. The returned value must be greater + // than zero. + // + STDMETHOD(GetGenericArgumentCount)( + THIS_ + _Out_ ULONG64* argCount + ) PURE; + + // GetGenericArgumentAt(): + // + // For the "i"-th generic argument to the generic/template, this returns a new IDebugHostSymbol + // which represents that argument. For templates, this is most often an IDebugHostType; however -- + // it may be an IDebugHostConstant for non-template type arguments. + // + // Note that it is possible for some compiler generated generics and templates that this method + // will fail. + // + STDMETHOD(GetGenericArgumentAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostSymbol** argument + ) PURE; + +}; + +// VarArgsKind: +// +// Defines the style of variable arguments that a function definition takes. +// +enum VarArgsKind +{ + // The function does not take any variable arguments + VarArgsNone, + + // The function is a C-style varargs function ( returntype(arg1, arg2, ...) ). The number of arguments + // reported by the function does not include the ellipsis ('...') argument. Any variable argument + // passing occurs after the number of arguments returned by GetFunctionParameterTypeCount(...). + // + VarArgsCStyle +}; + +// +// IDebugHostType2: +// +// Additional type information capabilities provided in addition to those of IDebugHostType. +// +#undef INTERFACE +#define INTERFACE IDebugHostType2 +DECLARE_INTERFACE_(IDebugHostType2, IDebugHostType) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostType: + + STDMETHOD(GetTypeKind)( + THIS_ + _Out_ TypeKind *kind + ) PURE; + + STDMETHOD(GetSize)( + THIS_ + _Out_ ULONG64* size + ) PURE; + + STDMETHOD(GetBaseType)( + THIS_ + _Out_ IDebugHostType** baseType + ) PURE; + + STDMETHOD(GetHashCode)( + THIS_ + _Out_ ULONG* hashCode + ) PURE; + + STDMETHOD(GetIntrinsicType)( + THIS_ + _Out_opt_ IntrinsicKind *intrinsicKind, + _Out_opt_ VARTYPE *carrierType + ) PURE; + + //************************************************* + // Bitfield Information: + // + // The following methods only apply to types which are bitfields: + // + + STDMETHOD(GetBitField)( + THIS_ + _Out_ ULONG* lsbOfField, + _Out_ ULONG* lengthOfField + ) PURE; + + //************************************************* + // Pointer Information (GetKind returns TypePointer): + // + // The following methods only apply to types which are pointers (or create + // derivative types which are pointers) + // + + STDMETHOD(GetPointerKind)( + THIS_ + _Out_ PointerKind* pointerKind + ) PURE; + + STDMETHOD(GetMemberType)( + THIS_ + _Out_ IDebugHostType** memberType + ) PURE; + + STDMETHOD(CreatePointerTo)( + THIS_ + _In_ PointerKind kind, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Array Information (GetKind returns TypeArray): + // + // The following methods only apply to types which are arrays (or create + // derivative types which are arrays) + // + + STDMETHOD(GetArrayDimensionality)( + THIS_ + _Out_ ULONG64* arrayDimensionality + ) PURE; + + STDMETHOD(GetArrayDimensions)( + THIS_ + _In_ ULONG64 dimensions, + _Out_writes_(dimensions) ArrayDimension *pDimensions + ) PURE; + + STDMETHOD(CreateArrayOf)( + THIS_ + _In_ ULONG64 dimensions, + _In_reads_(dimensions) ArrayDimension *pDimensions, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Function Information (GetKind returns TypeFunction): + // + // The following methods only apply to types which are functions (or create + // derivative types which are functions) + // + + STDMETHOD(GetFunctionCallingConvention)( + THIS_ + _Out_ CallingConventionKind* conventionKind + ) PURE; + + STDMETHOD(GetFunctionReturnType)( + THIS_ + _COM_Outptr_ IDebugHostType** returnType + ) PURE; + + STDMETHOD(GetFunctionParameterTypeCount)( + THIS_ + _Out_ ULONG64* count + ) PURE; + + STDMETHOD(GetFunctionParameterTypeAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostType** parameterType + ) PURE; + + //************************************************* + // Template Information: + // + // The following methods only apply to types which are templates or generics (or create + // derivative types which are templates or generics) + // + + STDMETHOD(IsGeneric)( + THIS_ + _Out_ bool* isGeneric + ) PURE; + + STDMETHOD(GetGenericArgumentCount)( + THIS_ + _Out_ ULONG64* argCount + ) PURE; + + STDMETHOD(GetGenericArgumentAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostSymbol** argument + ) PURE; + + //************************************************************************** + // IDebugHostType2: + // + // The following methods are only available in the v2 IDebugHostType interface. + + //************************************************* + // Typedef Information: + // + // Typedef types are, for the vast majority of calls, indistinguishable from the types they are definitions + // against. In the event that the true typedef information needs to be known, the following APIs + // apply. + // + + // IsTypedef(): + // + // Returns whether the type is a typedef for another type or not. + // + STDMETHOD(IsTypedef)( + THIS_ + _Out_ bool* isTypedef + ) PURE; + + // GetTypedefBaseType(): + // + // If IsTypedef returns true, this will return the type that a typedef refers to. Note that the base + // type may be another typedef. It is entirely possible to have a chain of definitions. If the caller + // wishes to acquire the first non-typedef type of a chain, GetTypedefFinalBaseType is the appropriate call. + // + STDMETHOD(GetTypedefBaseType)( + THIS_ + _Out_ IDebugHostType2** baseType + ) PURE; + + // GetTypedefFinalBaseType(): + // + // If IsTypedef returns true, this will return the bottom-most type of a typedef chain. That is, the first + // type in the chain which is NOT a typedef. This is the type which is implicitly used for most + // non-typedef IDebugHostType::* methods on a typedef type. + // + STDMETHOD(GetTypedefFinalBaseType)( + THIS_ + _Out_ IDebugHostType2** finalBaseType + ) PURE; + + //************************************************* + // Extended Function Information: + // + // The following methods indicate additional information about function types that is only available through + // IDebugHostType2. + // + + // GetFunctionVarArgsKind(): + // + // Indicates whether and what kind of variable arguments a function takes. + // + STDMETHOD(GetFunctionVarArgsKind)( + THIS_ + _Out_ VarArgsKind* varArgsKind + ) PURE; + + // GetFunctionInstancePointerType(): + // + // Indicates what the type of the instance ("this") pointer passed to the function is. This method will fail + // if the function is not an instance method on a class. + // + STDMETHOD(GetFunctionInstancePointerType)( + THIS_ + _Out_ IDebugHostType2** instancePointerType + ) PURE; + +}; + +// +// IDebugHostType3: +// +// Additional type information capabilities provided in addition to those of IDebugHostType. +// +#undef INTERFACE +#define INTERFACE IDebugHostType3 +DECLARE_INTERFACE_(IDebugHostType3, IDebugHostType2) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostType: + + STDMETHOD(GetTypeKind)( + THIS_ + _Out_ TypeKind *kind + ) PURE; + + STDMETHOD(GetSize)( + THIS_ + _Out_ ULONG64* size + ) PURE; + + STDMETHOD(GetBaseType)( + THIS_ + _Out_ IDebugHostType** baseType + ) PURE; + + STDMETHOD(GetHashCode)( + THIS_ + _Out_ ULONG* hashCode + ) PURE; + + STDMETHOD(GetIntrinsicType)( + THIS_ + _Out_opt_ IntrinsicKind *intrinsicKind, + _Out_opt_ VARTYPE *carrierType + ) PURE; + + //************************************************* + // Bitfield Information: + // + // The following methods only apply to types which are bitfields: + // + + STDMETHOD(GetBitField)( + THIS_ + _Out_ ULONG* lsbOfField, + _Out_ ULONG* lengthOfField + ) PURE; + + //************************************************* + // Pointer Information (GetKind returns TypePointer): + // + // The following methods only apply to types which are pointers (or create + // derivative types which are pointers) + // + + STDMETHOD(GetPointerKind)( + THIS_ + _Out_ PointerKind* pointerKind + ) PURE; + + STDMETHOD(GetMemberType)( + THIS_ + _Out_ IDebugHostType** memberType + ) PURE; + + STDMETHOD(CreatePointerTo)( + THIS_ + _In_ PointerKind kind, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Array Information (GetKind returns TypeArray): + // + // The following methods only apply to types which are arrays (or create + // derivative types which are arrays) + // + + STDMETHOD(GetArrayDimensionality)( + THIS_ + _Out_ ULONG64* arrayDimensionality + ) PURE; + + STDMETHOD(GetArrayDimensions)( + THIS_ + _In_ ULONG64 dimensions, + _Out_writes_(dimensions) ArrayDimension *pDimensions + ) PURE; + + STDMETHOD(CreateArrayOf)( + THIS_ + _In_ ULONG64 dimensions, + _In_reads_(dimensions) ArrayDimension *pDimensions, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Function Information (GetKind returns TypeFunction): + // + // The following methods only apply to types which are functions (or create + // derivative types which are functions) + // + + STDMETHOD(GetFunctionCallingConvention)( + THIS_ + _Out_ CallingConventionKind* conventionKind + ) PURE; + + STDMETHOD(GetFunctionReturnType)( + THIS_ + _COM_Outptr_ IDebugHostType** returnType + ) PURE; + + STDMETHOD(GetFunctionParameterTypeCount)( + THIS_ + _Out_ ULONG64* count + ) PURE; + + STDMETHOD(GetFunctionParameterTypeAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostType** parameterType + ) PURE; + + //************************************************* + // Template Information: + // + // The following methods only apply to types which are templates or generics (or create + // derivative types which are templates or generics) + // + + STDMETHOD(IsGeneric)( + THIS_ + _Out_ bool* isGeneric + ) PURE; + + STDMETHOD(GetGenericArgumentCount)( + THIS_ + _Out_ ULONG64* argCount + ) PURE; + + STDMETHOD(GetGenericArgumentAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostSymbol** argument + ) PURE; + + //************************************************************************** + // IDebugHostType2: + // + // The following methods are only available in the v2 IDebugHostType interface. + + //************************************************* + // Typedef Information: + // + // Typedef types are, for the vast majority of calls, indistinguishable from the types they are definitions + // against. In the event that the true typedef information needs to be known, the following APIs + // apply. + // + + // IsTypedef(): + // + // Returns whether the type is a typedef for another type or not. + // + STDMETHOD(IsTypedef)( + THIS_ + _Out_ bool* isTypedef + ) PURE; + + // GetTypedefBaseType(): + // + // If IsTypedef returns true, this will return the type that a typedef refers to. Note that the base + // type may be another typedef. It is entirely possible to have a chain of definitions. If the caller + // wishes to acquire the first non-typedef type of a chain, GetTypedefFinalBaseType is the appropriate call. + // + STDMETHOD(GetTypedefBaseType)( + THIS_ + _Out_ IDebugHostType2** baseType + ) PURE; + + // GetTypedefFinalBaseType(): + // + // If IsTypedef returns true, this will return the bottom-most type of a typedef chain. That is, the first + // type in the chain which is NOT a typedef. This is the type which is implicitly used for most + // non-typedef IDebugHostType::* methods on a typedef type. + // + STDMETHOD(GetTypedefFinalBaseType)( + THIS_ + _Out_ IDebugHostType2** finalBaseType + ) PURE; + + //************************************************* + // Extended Function Information: + // + // The following methods indicate additional information about function types that is only available through + // IDebugHostType2. + // + + // GetFunctionVarArgsKind(): + // + // Indicates whether and what kind of variable arguments a function takes. + // + STDMETHOD(GetFunctionVarArgsKind)( + THIS_ + _Out_ VarArgsKind* varArgsKind + ) PURE; + + // GetFunctionInstancePointerType(): + // + // Indicates what the type of the instance ("this") pointer passed to the function is. This method will fail + // if the function is not an instance method on a class. + // + STDMETHOD(GetFunctionInstancePointerType)( + THIS_ + _Out_ IDebugHostType2** instancePointerType + ) PURE; + + //************************************************************************** + // IDebugHostType3: + // + // The following methods are only available in the IDebugHostType3 interface. + + // GetContainingType(): + // + // Returns the type of the containing parent (containing this symbol) + // + STDMETHOD(GetContainingType)( + THIS_ + _Out_ IDebugHostType3** containingParentType + ) PURE; + + +}; + +// ExtendedArrayDimension: +// +// Defines the memory layout of one dimension of an extended array. This must be sufficient to describe +// the array layout of a CLI (ECMA-335) array. +// +enum ExtendedArrayDimensionFlags +{ + // + // Indicates that the "Length" field of the array dimension is an offset from the base address of the array + // as to where to find a dynamic size + // + ExtendedArrayLengthIsOffset32 = 0x00000001, + ExtendedArrayLengthIsOffset64 = 0x00000002, + ExtendedArrayLengthIsOffset = 0x00000003, + + // + // Indicates that the "LowerBound" field of the array dimension is an offset from the base address of the + // array as to where to find a dynamic bound. + // + ExtendedArrayLowerBoundIsOffset32 = 0x00000004, + ExtendedArrayLowerBoundIsOffset64 = 0x00000008, + ExtendedArrayLowerBoundIsOffset = 0x0000000C, + + // + // Indicates that the "Stride" field of the array dimension is an offset from the base address of the + // array as to where to find a dynamic stride + // + ExtendedArrayStrideIsOffset32 = 0x00000010, + ExtendedArrayStrideIsOffset64 = 0x00000020, + ExtendedArrayStrideIsOffset = 0x00000030, + + // + // Indicates that the "Stride" field is computed from the element size and the computed sizes of each + // dimension as indicated by other fields. + // + // Next indicates that the stride of this dimension is based on the stride of the next (e.g.: dim[0] is the largest) + // Previous indicates that the stride of this dimension is based on the stride of the previous (e.g.: dim[0] is the smallest) + // + ExtendedArrayStrideIsComputedByNextRank = 0x00000040, + ExtendedArrayStrideIsComputedByPreviousRank = 0x00000080, + ExtendedArrayStrideIsComputed = 0x000000C0 + +}; + +struct ExtendedArrayDimension +{ + // Information about how to interpret the remainder of the information in the array dimension + ULONG64 DimensionFlags; + + // The lower bounds of the array. For C style zero based arrays, this will always be zero. There is no + // uniform restriction that all arrays represented by these interfaces are zero based. + LONG64 LowerBound; + + // Defines the length of the dimension. The dimension is considered to be of the form [LowerBound, LowerBound + Length) + ULONG64 Length; + + // Defines how many bytes to move forward in memory to walk from index N of the dimension to index N + 1 + ULONG64 Stride; +}; + +// UDTKind: +// +// Defines the nature of the UDT in question. +// +enum UDTKind +{ + // UDT is a structure + UDTStruct, + + // UDT is a class + UDTClass, + + // UDT is a union + UDTUnion, + + // UDT is an interface + UDTInterface, + + // UDT is a tagged union + UDTTaggedUnion +}; + +// +// IDebugHostType4: +// +// Additional type information capabilities provided in addition to those of IDebugHostType. +// +#undef INTERFACE +#define INTERFACE IDebugHostType4 +DECLARE_INTERFACE_(IDebugHostType4, IDebugHostType3) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostType: + + STDMETHOD(GetTypeKind)( + THIS_ + _Out_ TypeKind *kind + ) PURE; + + STDMETHOD(GetSize)( + THIS_ + _Out_ ULONG64* size + ) PURE; + + STDMETHOD(GetBaseType)( + THIS_ + _Out_ IDebugHostType** baseType + ) PURE; + + STDMETHOD(GetHashCode)( + THIS_ + _Out_ ULONG* hashCode + ) PURE; + + STDMETHOD(GetIntrinsicType)( + THIS_ + _Out_opt_ IntrinsicKind *intrinsicKind, + _Out_opt_ VARTYPE *carrierType + ) PURE; + + //************************************************* + // Bitfield Information: + // + // The following methods only apply to types which are bitfields: + // + + STDMETHOD(GetBitField)( + THIS_ + _Out_ ULONG* lsbOfField, + _Out_ ULONG* lengthOfField + ) PURE; + + //************************************************* + // Pointer Information (GetKind returns TypePointer): + // + // The following methods only apply to types which are pointers (or create + // derivative types which are pointers) + // + + STDMETHOD(GetPointerKind)( + THIS_ + _Out_ PointerKind* pointerKind + ) PURE; + + STDMETHOD(GetMemberType)( + THIS_ + _Out_ IDebugHostType** memberType + ) PURE; + + STDMETHOD(CreatePointerTo)( + THIS_ + _In_ PointerKind kind, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Array Information (GetKind returns TypeArray): + // + // The following methods only apply to types which are arrays (or create + // derivative types which are arrays) + // + + STDMETHOD(GetArrayDimensionality)( + THIS_ + _Out_ ULONG64* arrayDimensionality + ) PURE; + + STDMETHOD(GetArrayDimensions)( + THIS_ + _In_ ULONG64 dimensions, + _Out_writes_(dimensions) ArrayDimension *pDimensions + ) PURE; + + STDMETHOD(CreateArrayOf)( + THIS_ + _In_ ULONG64 dimensions, + _In_reads_(dimensions) ArrayDimension *pDimensions, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Function Information (GetKind returns TypeFunction): + // + // The following methods only apply to types which are functions (or create + // derivative types which are functions) + // + + STDMETHOD(GetFunctionCallingConvention)( + THIS_ + _Out_ CallingConventionKind* conventionKind + ) PURE; + + STDMETHOD(GetFunctionReturnType)( + THIS_ + _COM_Outptr_ IDebugHostType** returnType + ) PURE; + + STDMETHOD(GetFunctionParameterTypeCount)( + THIS_ + _Out_ ULONG64* count + ) PURE; + + STDMETHOD(GetFunctionParameterTypeAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostType** parameterType + ) PURE; + + //************************************************* + // Template Information: + // + // The following methods only apply to types which are templates or generics (or create + // derivative types which are templates or generics) + // + + STDMETHOD(IsGeneric)( + THIS_ + _Out_ bool* isGeneric + ) PURE; + + STDMETHOD(GetGenericArgumentCount)( + THIS_ + _Out_ ULONG64* argCount + ) PURE; + + STDMETHOD(GetGenericArgumentAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostSymbol** argument + ) PURE; + + //************************************************************************** + // IDebugHostType2: + // + // The following methods are only available in the v2 IDebugHostType interface. + + //************************************************* + // Typedef Information: + // + // Typedef types are, for the vast majority of calls, indistinguishable from the types they are definitions + // against. In the event that the true typedef information needs to be known, the following APIs + // apply. + // + + // IsTypedef(): + // + // Returns whether the type is a typedef for another type or not. + // + STDMETHOD(IsTypedef)( + THIS_ + _Out_ bool* isTypedef + ) PURE; + + // GetTypedefBaseType(): + // + // If IsTypedef returns true, this will return the type that a typedef refers to. Note that the base + // type may be another typedef. It is entirely possible to have a chain of definitions. If the caller + // wishes to acquire the first non-typedef type of a chain, GetTypedefFinalBaseType is the appropriate call. + // + STDMETHOD(GetTypedefBaseType)( + THIS_ + _Out_ IDebugHostType2** baseType + ) PURE; + + // GetTypedefFinalBaseType(): + // + // If IsTypedef returns true, this will return the bottom-most type of a typedef chain. That is, the first + // type in the chain which is NOT a typedef. This is the type which is implicitly used for most + // non-typedef IDebugHostType::* methods on a typedef type. + // + STDMETHOD(GetTypedefFinalBaseType)( + THIS_ + _Out_ IDebugHostType2** finalBaseType + ) PURE; + + //************************************************* + // Extended Function Information: + // + // The following methods indicate additional information about function types that is only available through + // IDebugHostType2. + // + + // GetFunctionVarArgsKind(): + // + // Indicates whether and what kind of variable arguments a function takes. + // + STDMETHOD(GetFunctionVarArgsKind)( + THIS_ + _Out_ VarArgsKind* varArgsKind + ) PURE; + + // GetFunctionInstancePointerType(): + // + // Indicates what the type of the instance ("this") pointer passed to the function is. This method will fail + // if the function is not an instance method on a class. + // + STDMETHOD(GetFunctionInstancePointerType)( + THIS_ + _Out_ IDebugHostType2** instancePointerType + ) PURE; + + //************************************************************************** + // IDebugHostType3: + // + // The following methods are only available in the IDebugHostTyp3 interface. + + // GetContainingType(): + // + // Returns the type of the containing parent (containing this symbol) + // + STDMETHOD(GetContainingType)( + THIS_ + _Out_ IDebugHostType3** containingParentType + ) PURE; + + //************************************************************************** + // IDebugHostType4: + // + // The following methods are only available in the IDebugHostType4 interface. + // + + // GetExtendedArrayHeaderSize(): + // + // If the array has a header including layout information, this returns the size of such header. This + // is the offset from the start of the array to the first element in the array as described by the + // extended array dimensions. + // + STDMETHOD(GetExtendedArrayHeaderSize)( + THIS_ + _Out_ ULONG64* headerSize + ) PURE; + + // GetExtendedArrayDimensions(): + // + // Fills in information about each dimension of the array including its lower bound, length, and stride. + // This method should not be called on TypeExtendedArray. Methods in IDebugHostType3 should be utilized. + // + STDMETHOD(GetExtendedArrayDimensions)( + THIS_ + _In_ ULONG64 dimensions, + _Out_writes_(dimensions) ExtendedArrayDimension *pDimensions + ) PURE; + + //************************************************* + // UDT Information (GetKind returns TypeUDT): + // + // The following methods only apply to types which are user-defined types: + // + + // GetUDTKind(): + // + // Returns a value indicating whether the UDT is a struct, union, class, interface or tagged union. + // + STDMETHOD(GetUDTKind)( + THIS_ + _Out_ UDTKind* udtKind + ) PURE; +}; + +// +// IDebugHostType5: +// +// Additional type information capabilities provided in addition to those of IDebugHostType. +// +#undef INTERFACE +#define INTERFACE IDebugHostType5 +DECLARE_INTERFACE_(IDebugHostType5, IDebugHostType4) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostType: + + STDMETHOD(GetTypeKind)( + THIS_ + _Out_ TypeKind *kind + ) PURE; + + STDMETHOD(GetSize)( + THIS_ + _Out_ ULONG64* size + ) PURE; + + STDMETHOD(GetBaseType)( + THIS_ + _Out_ IDebugHostType** baseType + ) PURE; + + STDMETHOD(GetHashCode)( + THIS_ + _Out_ ULONG* hashCode + ) PURE; + + STDMETHOD(GetIntrinsicType)( + THIS_ + _Out_opt_ IntrinsicKind *intrinsicKind, + _Out_opt_ VARTYPE *carrierType + ) PURE; + + //************************************************* + // Bitfield Information: + // + // The following methods only apply to types which are bitfields: + // + + STDMETHOD(GetBitField)( + THIS_ + _Out_ ULONG* lsbOfField, + _Out_ ULONG* lengthOfField + ) PURE; + + //************************************************* + // Pointer Information (GetKind returns TypePointer): + // + // The following methods only apply to types which are pointers (or create + // derivative types which are pointers) + // + + STDMETHOD(GetPointerKind)( + THIS_ + _Out_ PointerKind* pointerKind + ) PURE; + + STDMETHOD(GetMemberType)( + THIS_ + _Out_ IDebugHostType** memberType + ) PURE; + + STDMETHOD(CreatePointerTo)( + THIS_ + _In_ PointerKind kind, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Array Information (GetKind returns TypeArray): + // + // The following methods only apply to types which are arrays (or create + // derivative types which are arrays) + // + + STDMETHOD(GetArrayDimensionality)( + THIS_ + _Out_ ULONG64* arrayDimensionality + ) PURE; + + STDMETHOD(GetArrayDimensions)( + THIS_ + _In_ ULONG64 dimensions, + _Out_writes_(dimensions) ArrayDimension *pDimensions + ) PURE; + + STDMETHOD(CreateArrayOf)( + THIS_ + _In_ ULONG64 dimensions, + _In_reads_(dimensions) ArrayDimension *pDimensions, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Function Information (GetKind returns TypeFunction): + // + // The following methods only apply to types which are functions (or create + // derivative types which are functions) + // + + STDMETHOD(GetFunctionCallingConvention)( + THIS_ + _Out_ CallingConventionKind* conventionKind + ) PURE; + + STDMETHOD(GetFunctionReturnType)( + THIS_ + _COM_Outptr_ IDebugHostType** returnType + ) PURE; + + STDMETHOD(GetFunctionParameterTypeCount)( + THIS_ + _Out_ ULONG64* count + ) PURE; + + STDMETHOD(GetFunctionParameterTypeAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostType** parameterType + ) PURE; + + //************************************************* + // Template Information: + // + // The following methods only apply to types which are templates or generics (or create + // derivative types which are templates or generics) + // + + STDMETHOD(IsGeneric)( + THIS_ + _Out_ bool* isGeneric + ) PURE; + + STDMETHOD(GetGenericArgumentCount)( + THIS_ + _Out_ ULONG64* argCount + ) PURE; + + STDMETHOD(GetGenericArgumentAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostSymbol** argument + ) PURE; + + //************************************************************************** + // IDebugHostType2: + // + // The following methods are only available in the v2 IDebugHostType interface. + + //************************************************* + // Typedef Information: + // + // Typedef types are, for the vast majority of calls, indistinguishable from the types they are definitions + // against. In the event that the true typedef information needs to be known, the following APIs + // apply. + // + + // IsTypedef(): + // + // Returns whether the type is a typedef for another type or not. + // + STDMETHOD(IsTypedef)( + THIS_ + _Out_ bool* isTypedef + ) PURE; + + // GetTypedefBaseType(): + // + // If IsTypedef returns true, this will return the type that a typedef refers to. Note that the base + // type may be another typedef. It is entirely possible to have a chain of definitions. If the caller + // wishes to acquire the first non-typedef type of a chain, GetTypedefFinalBaseType is the appropriate call. + // + STDMETHOD(GetTypedefBaseType)( + THIS_ + _Out_ IDebugHostType2** baseType + ) PURE; + + // GetTypedefFinalBaseType(): + // + // If IsTypedef returns true, this will return the bottom-most type of a typedef chain. That is, the first + // type in the chain which is NOT a typedef. This is the type which is implicitly used for most + // non-typedef IDebugHostType::* methods on a typedef type. + // + STDMETHOD(GetTypedefFinalBaseType)( + THIS_ + _Out_ IDebugHostType2** finalBaseType + ) PURE; + + //************************************************* + // Extended Function Information: + // + // The following methods indicate additional information about function types that is only available through + // IDebugHostType2. + // + + // GetFunctionVarArgsKind(): + // + // Indicates whether and what kind of variable arguments a function takes. + // + STDMETHOD(GetFunctionVarArgsKind)( + THIS_ + _Out_ VarArgsKind* varArgsKind + ) PURE; + + // GetFunctionInstancePointerType(): + // + // Indicates what the type of the instance ("this") pointer passed to the function is. This method will fail + // if the function is not an instance method on a class. + // + STDMETHOD(GetFunctionInstancePointerType)( + THIS_ + _Out_ IDebugHostType2** instancePointerType + ) PURE; + + //************************************************************************** + // IDebugHostType3: + // + // The following methods are only available in the IDebugHostTyp3 interface. + + // GetContainingType(): + // + // Returns the type of the containing parent (containing this symbol) + // + STDMETHOD(GetContainingType)( + THIS_ + _Out_ IDebugHostType3** containingParentType + ) PURE; + + //************************************************************************** + // IDebugHostType4: + // + // The following methods are only available in the IDebugHostType4 interface. + // + + // GetExtendedArrayHeaderSize(): + // + // If the array has a header including layout information, this returns the size of such header. This + // is the offset from the start of the array to the first element in the array as described by the + // extended array dimensions. + // + STDMETHOD(GetExtendedArrayHeaderSize)( + THIS_ + _Out_ ULONG64* headerSize + ) PURE; + + // GetExtendedArrayDimensions(): + // + // Fills in information about each dimension of the array including its lower bound, length, and stride. + // This method should not be called on TypeExtendedArray. Methods in IDebugHostType3 should be utilized. + // + STDMETHOD(GetExtendedArrayDimensions)( + THIS_ + _In_ ULONG64 dimensions, + _Out_writes_(dimensions) ExtendedArrayDimension *pDimensions + ) PURE; + + //************************************************* + // UDT Information (GetKind returns TypeUDT): + // + // The following methods only apply to types which are user-defined types: + // + + // GetUDTKind(): + // + // Returns a value indicating whether the UDT is a struct, union, class, or interface. + // + STDMETHOD(GetUDTKind)( + THIS_ + _Out_ UDTKind* udtKind + ) PURE; + + //************************************************************************** + // IDebugHostType5: + // + // The following methods are only available in the IDebugHostType5 interface. + // + + // IsBaseTypeOf(): + // + // Returns whether this type is a base type of another type. + // + STDMETHOD(IsBaseTypeOf)( + THIS_ + _In_ IDebugHostType* pOtherType, + _Out_ bool* pIsBase + ) PURE; +}; + +// +// IDebugHostType6: +// +// Additional type information capabilities provided in addition to those of IDebugHostType. +// +#undef INTERFACE +#define INTERFACE IDebugHostType6 +DECLARE_INTERFACE_(IDebugHostType6, IDebugHostType5) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostType: + + STDMETHOD(GetTypeKind)( + THIS_ + _Out_ TypeKind *kind + ) PURE; + + STDMETHOD(GetSize)( + THIS_ + _Out_ ULONG64* size + ) PURE; + + STDMETHOD(GetBaseType)( + THIS_ + _Out_ IDebugHostType** baseType + ) PURE; + + STDMETHOD(GetHashCode)( + THIS_ + _Out_ ULONG* hashCode + ) PURE; + + STDMETHOD(GetIntrinsicType)( + THIS_ + _Out_opt_ IntrinsicKind *intrinsicKind, + _Out_opt_ VARTYPE *carrierType + ) PURE; + + //************************************************* + // Bitfield Information: + // + // The following methods only apply to types which are bitfields: + // + + STDMETHOD(GetBitField)( + THIS_ + _Out_ ULONG* lsbOfField, + _Out_ ULONG* lengthOfField + ) PURE; + + //************************************************* + // Pointer Information (GetKind returns TypePointer): + // + // The following methods only apply to types which are pointers (or create + // derivative types which are pointers) + // + + STDMETHOD(GetPointerKind)( + THIS_ + _Out_ PointerKind* pointerKind + ) PURE; + + STDMETHOD(GetMemberType)( + THIS_ + _Out_ IDebugHostType** memberType + ) PURE; + + STDMETHOD(CreatePointerTo)( + THIS_ + _In_ PointerKind kind, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Array Information (GetKind returns TypeArray): + // + // The following methods only apply to types which are arrays (or create + // derivative types which are arrays) + // + + STDMETHOD(GetArrayDimensionality)( + THIS_ + _Out_ ULONG64* arrayDimensionality + ) PURE; + + STDMETHOD(GetArrayDimensions)( + THIS_ + _In_ ULONG64 dimensions, + _Out_writes_(dimensions) ArrayDimension *pDimensions + ) PURE; + + STDMETHOD(CreateArrayOf)( + THIS_ + _In_ ULONG64 dimensions, + _In_reads_(dimensions) ArrayDimension *pDimensions, + _COM_Outptr_ IDebugHostType** newType + ) PURE; + + //************************************************* + // Function Information (GetKind returns TypeFunction): + // + // The following methods only apply to types which are functions (or create + // derivative types which are functions) + // + + STDMETHOD(GetFunctionCallingConvention)( + THIS_ + _Out_ CallingConventionKind* conventionKind + ) PURE; + + STDMETHOD(GetFunctionReturnType)( + THIS_ + _COM_Outptr_ IDebugHostType** returnType + ) PURE; + + STDMETHOD(GetFunctionParameterTypeCount)( + THIS_ + _Out_ ULONG64* count + ) PURE; + + STDMETHOD(GetFunctionParameterTypeAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostType** parameterType + ) PURE; + + //************************************************* + // Template Information: + // + // The following methods only apply to types which are templates or generics (or create + // derivative types which are templates or generics) + // + + STDMETHOD(IsGeneric)( + THIS_ + _Out_ bool* isGeneric + ) PURE; + + STDMETHOD(GetGenericArgumentCount)( + THIS_ + _Out_ ULONG64* argCount + ) PURE; + + STDMETHOD(GetGenericArgumentAt)( + THIS_ + _In_ ULONG64 i, + _Out_ IDebugHostSymbol** argument + ) PURE; + + //************************************************************************** + // IDebugHostType2: + // + // The following methods are only available in the v2 IDebugHostType interface. + + //************************************************* + // Typedef Information: + // + // Typedef types are, for the vast majority of calls, indistinguishable from the types they are definitions + // against. In the event that the true typedef information needs to be known, the following APIs + // apply. + // + + // IsTypedef(): + // + // Returns whether the type is a typedef for another type or not. + // + STDMETHOD(IsTypedef)( + THIS_ + _Out_ bool* isTypedef + ) PURE; + + // GetTypedefBaseType(): + // + // If IsTypedef returns true, this will return the type that a typedef refers to. Note that the base + // type may be another typedef. It is entirely possible to have a chain of definitions. If the caller + // wishes to acquire the first non-typedef type of a chain, GetTypedefFinalBaseType is the appropriate call. + // + STDMETHOD(GetTypedefBaseType)( + THIS_ + _Out_ IDebugHostType2** baseType + ) PURE; + + // GetTypedefFinalBaseType(): + // + // If IsTypedef returns true, this will return the bottom-most type of a typedef chain. That is, the first + // type in the chain which is NOT a typedef. This is the type which is implicitly used for most + // non-typedef IDebugHostType::* methods on a typedef type. + // + STDMETHOD(GetTypedefFinalBaseType)( + THIS_ + _Out_ IDebugHostType2** finalBaseType + ) PURE; + + //************************************************* + // Extended Function Information: + // + // The following methods indicate additional information about function types that is only available through + // IDebugHostType2. + // + + // GetFunctionVarArgsKind(): + // + // Indicates whether and what kind of variable arguments a function takes. + // + STDMETHOD(GetFunctionVarArgsKind)( + THIS_ + _Out_ VarArgsKind* varArgsKind + ) PURE; + + // GetFunctionInstancePointerType(): + // + // Indicates what the type of the instance ("this") pointer passed to the function is. This method will fail + // if the function is not an instance method on a class. + // + STDMETHOD(GetFunctionInstancePointerType)( + THIS_ + _Out_ IDebugHostType2** instancePointerType + ) PURE; + + //************************************************************************** + // IDebugHostType3: + // + // The following methods are only available in the IDebugHostTyp3 interface. + + // GetContainingType(): + // + // Returns the type of the containing parent (containing this symbol) + // + STDMETHOD(GetContainingType)( + THIS_ + _Out_ IDebugHostType3** containingParentType + ) PURE; + + //************************************************************************** + // IDebugHostType4: + // + // The following methods are only available in the IDebugHostType4 interface. + // + + // GetExtendedArrayHeaderSize(): + // + // If the array has a header including layout information, this returns the size of such header. This + // is the offset from the start of the array to the first element in the array as described by the + // extended array dimensions. + // + STDMETHOD(GetExtendedArrayHeaderSize)( + THIS_ + _Out_ ULONG64* headerSize + ) PURE; + + // GetExtendedArrayDimensions(): + // + // Fills in information about each dimension of the array including its lower bound, length, and stride. + // This method should not be called on TypeExtendedArray. Methods in IDebugHostType3 should be utilized. + // + STDMETHOD(GetExtendedArrayDimensions)( + THIS_ + _In_ ULONG64 dimensions, + _Out_writes_(dimensions) ExtendedArrayDimension *pDimensions + ) PURE; + + //************************************************* + // UDT Information (GetKind returns TypeUDT): + // + // The following methods only apply to types which are user-defined types: + // + + // GetUDTKind(): + // + // Returns a value indicating whether the UDT is a struct, union, class, or interface. + // + STDMETHOD(GetUDTKind)( + THIS_ + _Out_ UDTKind* udtKind + ) PURE; + + //************************************************************************** + // IDebugHostType5: + // + // The following methods are only available in the IDebugHostType5 interface. + // + + // IsBaseTypeOf(): + // + // Returns whether this type is a base type of another type. + // + STDMETHOD(IsBaseTypeOf)( + THIS_ + _In_ IDebugHostType* pOtherType, + _Out_ bool* pIsBase + ) PURE; + + //************************************************************************** + // IDebugHostType6: + // + // The following methods are only available in the IDebugHostType6 interface. + // + + // GetTaggedUnionTag(): + // + // For cases within a tagged union type, this returns the type and offset of the tag + // as well as any mask value that should be applied to the tag before comparison. + // + STDMETHOD(GetTaggedUnionTag)( + THIS_ + _Out_ IDebugHostType** pTagType, + _Out_ ULONG* pTagOffset, + _Out_ VARIANT* pTagMask + ) PURE; + + // GetTaggedUnionTagRanges(): + // + // For cases within a tagged union type, this returns an enumerator over the tag ranges. + // + STDMETHOD(GetTaggedUnionTagRanges)( + THIS_ + _Out_ IDebugHostTaggedUnionRangeEnumerator** pTagRangeEnumerator + ) PURE; + + // UpcastToTaggedUnionType(): + // + // For cases within a tagged union type, this will return a type that is conceptually + // the same as the tagged union type but narrowed to this case such that enumerating + // children of the type will return children of this case. + STDMETHOD(UpcastToTaggedUnionType)( + THIS_ + _In_ IDebugHostType* pTaggedUnionType, + _Out_ IDebugHostType** pUpcastedCaseType + ) PURE; +}; + +// +// IDebugHostTaggedUnionRangeEnumerator: +// +// This enumerates a set of tag ranges for a tagged union case. This can be acquired by calling +// IDebugHostType6::GetTaggedUnionTagRanges() on a tagged union case type. +// +#undef INTERFACE +#define INTERFACE IDebugHostTaggedUnionRangeEnumerator +DECLARE_INTERFACE_(IDebugHostTaggedUnionRangeEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostTaggedUnionRangeEnumerator: + + // Reset(): + // + // Resets the enumerator to its initial state. A subsequent GetNext call will return + // the first low/high tag pair in the set in enumerator order. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Moves the iterator forward and fetches the next low/high tag pair in the set. + // + // E_BOUNDS will be returned when the enumerator hits the end of the set. + // + STDMETHOD(GetNext)( + THIS_ + _Out_ VARIANT* pLow, + _Out_ VARIANT* pHigh + ) PURE; + + // GetCount(): + // + // Returns the total number of tag values (not pairs) that will be returned from GetNext(). + // + STDMETHOD(GetCount)( + THIS_ + _Out_ ULONG* pCount + ) PURE; +}; + + +// +// IDebugHostConstant: +// +// A specialization of IDebugHostSymbol which represents a constant symbol. +// Such may be returned as the literal value for some symbol. +// +#undef INTERFACE +#define INTERFACE IDebugHostConstant +DECLARE_INTERFACE_(IDebugHostConstant, IDebugHostSymbol) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostConstant: + + // GetValue(): + // + // Returns the value of the constant in a VARIANT data structure. + // + STDMETHOD(GetValue)( + THIS_ + _Out_ VARIANT* value + ) PURE; + +}; + +// +// IDebugHostField: +// +// A specialization of IDebugHostSymbol which represents a field of a class or struct. +// +#undef INTERFACE +#define INTERFACE IDebugHostField +DECLARE_INTERFACE_(IDebugHostField, IDebugHostSymbol) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostField: + + // GetLocationKind(): + // + // Returns the kind of location the field is at. Such location may be static, member, constant, + // etc... + // + STDMETHOD(GetLocationKind)( + THIS_ + _Out_ LocationKind *locationKind + ) PURE; + + // GetOffset(): + // + // If the location kind indicates that the field is a member, this returns the offset into the class + // or struct of which the field is a member. + // + STDMETHOD(GetOffset)( + THIS_ + _Out_ ULONG64* offset + ) PURE; + + // GetLocation(): + // + // If the location kind indicates that the field is static, this returns the location of the field in + // the address space of the debug target. + // + STDMETHOD(GetLocation)( + THIS_ + _Out_ Location* location + ) PURE; + + // GetValue(): + // + // If the location kind indicates that the field is constant, this returns the constant value of the field. + // + STDMETHOD(GetValue)( + THIS_ + _Out_ VARIANT* value + ) PURE; + +}; + +// +// IDebugHostField: +// +// A specialization of IDebugHostSymbol which represents a field of a class or struct. +// +#undef INTERFACE +#define INTERFACE IDebugHostField2 +DECLARE_INTERFACE_(IDebugHostField2, IDebugHostField) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostField: + + // GetLocationKind(): + // + // Returns the kind of location the field is at. Such location may be static, member, constant, + // etc... + // + STDMETHOD(GetLocationKind)( + THIS_ + _Out_ LocationKind *locationKind + ) PURE; + + // GetOffset(): + // + // If the location kind indicates that the field is a member, this returns the offset into the class + // or struct of which the field is a member. + // + STDMETHOD(GetOffset)( + THIS_ + _Out_ ULONG64* offset + ) PURE; + + // GetLocation(): + // + // If the location kind indicates that the field is static, this returns the location of the field in + // the address space of the debug target. + // + STDMETHOD(GetLocation)( + THIS_ + _Out_ Location* location + ) PURE; + + // GetValue(): + // + // If the location kind indicates that the field is constant, this returns the constant value of the field. + // + STDMETHOD(GetValue)( + THIS_ + _Out_ VARIANT* value + ) PURE; + + //************************************************************************** + // IDebugHostField2: + // + // The following methods are only available in the IDebugHostField2 interface. + + // GetContainingType(): + // + // Returns the type of the containing parent (containing this symbol) + // + STDMETHOD(GetContainingType)( + THIS_ + _Out_ IDebugHostType3** containingParentType + ) PURE; +}; + +// +// IDebugHostData: +// +// A specialization of IDebugHostSymbol which represents data which is unattached to a class or struct +// (e.g.: a global variable) +// +#undef INTERFACE +#define INTERFACE IDebugHostData +DECLARE_INTERFACE_(IDebugHostData, IDebugHostSymbol) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostData: + + // GetLocationKind(): + // + // Returns the kind of location the data is at. Such location may be static, constant, etc... + // + STDMETHOD(GetLocationKind)( + THIS_ + _Out_ LocationKind *locationKind + ) PURE; + + // GetLocation(): + // + // If the location kind indicates that the data is static, this returns the location of the data in + // the address space of the debug target. + // + STDMETHOD(GetLocation)( + THIS_ + _Out_ Location* location + ) PURE; + + // GetValue(): + // + // If the location kind indicates that the data is constant, this returns the constant value of the data. + // + STDMETHOD(GetValue)( + THIS_ + _Out_ VARIANT* value + ) PURE; +}; + +// IDebugHostPublic: +// +// A specialization of IDebugHostSymbol which represents a public symbol entry. +// +#undef INTERFACE +#define INTERFACE IDebugHostPublic +DECLARE_INTERFACE_(IDebugHostPublic, IDebugHostSymbol) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostPublic: + + // GetLocationKind(): + // + // Returns the kind of location the data is at. Such location may be static, constant, etc... + // + STDMETHOD(GetLocationKind)( + THIS_ + _Out_ LocationKind *locationKind + ) PURE; + + // GetLocation(): + // + // If the location kind indicates that the data is static, this returns the location of the data in + // the address space of the debug target. + // + STDMETHOD(GetLocation)( + THIS_ + _Out_ Location* location + ) PURE; + +}; + +// +// IDebugHostBaseClass: +// +// A specialization of IDebugHostSymbol which represents a base class. +// +#undef INTERFACE +#define INTERFACE IDebugHostBaseClass +DECLARE_INTERFACE_(IDebugHostBaseClass, IDebugHostSymbol) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostBaseClass: + + // GetOffset(): + // + // This returns the offset of the base class within the class. + // + STDMETHOD(GetOffset)( + THIS_ + _Out_ ULONG64* offset + ) PURE; + +}; + +// +// IDebugHostBaseClass2: +// +// An extended specialization of IDebugHostSymbol which represents a base class. +// +#undef INTERFACE +#define INTERFACE IDebugHostBaseClass2 +DECLARE_INTERFACE_(IDebugHostBaseClass2, IDebugHostBaseClass) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + //************************************************* + // IDebugHostBaseClass: + + STDMETHOD(GetOffset)( + THIS_ + _Out_ ULONG64* offset + ) PURE; + + //************************************************* + // IDebugHostBaseClass2: + // + + // IsVirtual(): + // + // An indication of whether this particular base class is a virtual base class or not. If + // a given base class is virtual (and it's location cannot be described with a simple offset), GetOffset + // may fail with E_NOT_SET and a more complex location may be returned via methods on IDebugHostBaseClass2. + // + STDMETHOD(IsVirtual)( + THIS_ + _Out_ bool *pIsVirtual + ) PURE; + + // GetVirtualBaseOffsetLocation(): + // + // Gets the location of the "offset" of the base class relative to the parent class. In essence, the + // location of the vtbl/vbtbl is ( + *pTableOffset) and the location of the offset within that table + // is given as (v[b]tbl + pSlotOffset). + // + // The size of the slot is given as *pSlotSize and *pSlotIsSigned indicates whether or not such offset read + // from that slot should be considered a signed or unsigned value. + // + STDMETHOD(GetVirtualBaseOffsetLocation)( + THIS_ + _Out_ LONG64* pTableOffset, + _Out_ LONG64* pSlotOffset, + _Out_ ULONG64 *pSlotSize, + _Out_ bool *pSlotIsSigned + ) PURE; +}; + +// +// IDebugHostSymbols: +// +// The core symbols interface which a debug host presents. This interface can be QI'd from +// IDebugHost in order to access global symbols, the module list of the debug target, type +// signatures, etc... +// +#undef INTERFACE +#define INTERFACE IDebugHostSymbols +DECLARE_INTERFACE_(IDebugHostSymbols, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbols: + + // CreateModuleSignature() + // + // Creates a module signature for the given module name and version range. + // + STDMETHOD(CreateModuleSignature)( + THIS_ + _In_z_ PCWSTR pwszModuleName, + _In_opt_z_ PCWSTR pwszMinVersion, + _In_opt_z_ PCWSTR pwszMaxVersion, + _Out_ IDebugHostModuleSignature** ppModuleSignature + ) PURE; + + // CreateTypeSignature(): + // + // Creates a type signature object. A type signature is a generalization of a type which many + // specific instances can match. The format of type signatures is specific to the host and language + // to which they refer. + // + // For current hosts and C/C++, a type signature here is equivalent to a NatVis type specification. + // It is the name of a type with wildcards allowed for template arguments. + // + // If a specific IDebugHostModule is passed in the "module" argument, the type signature only applies + // to types within that specific module as defined by the host. + // + STDMETHOD(CreateTypeSignature)( + THIS_ + _In_z_ PCWSTR signatureSpecification, + _In_opt_ IDebugHostModule* module, + _Out_ IDebugHostTypeSignature** typeSignature + ) PURE; + + // CreateTypeSignatureForModuleRange(): + // + // Creates a type signature object. A type signature is a generalization of a type which many + // specific instances can match. The format of type signatures is specific to the host and language + // to which they refer. + // + // For current hosts and C/C++, a type signature here is equivalent to a NatVis type specification. + // It is the name of a type with wildcards allowed for template arguments. + // + // This method allows the type signature to apply to modules with a particular name and in a range + // of versions as defined by an "x", "x.y", "x.y.z", or "x.y.z.a" version string. + // + // moduleName only - The type signature is restricted to modules with the specified name + // moduleName, minVersion - The type signature is restricted to modules with the specified name of at least the specified version + // moduleName, maxVersion - The type signature is restricted to modules with the specified name of at most the specified version + // moduleName, minVersion, + // maxVersion - The type signature is restricted to modules with the specified name within the range of supplied version numbers + // + STDMETHOD(CreateTypeSignatureForModuleRange)( + THIS_ + _In_z_ PCWSTR signatureSpecification, + _In_z_ PCWSTR moduleName, + _In_opt_z_ PCWSTR minVersion, + _In_opt_z_ PCWSTR maxVersion, + _Out_ IDebugHostTypeSignature** typeSignature + ) PURE; + + // EnumerateModules(): + // + // Returns an enumerator which enumerates the module list for a given context. The context supplied + // here may be acquired from IDebugHost::GetCurrentContext or any of the various interfaces which have a + // GetContext(...) method. + // + STDMETHOD(EnumerateModules)( + THIS_ + _In_ IDebugHostContext* context, + _COM_Outptr_ IDebugHostSymbolEnumerator** moduleEnum + ) PURE; + + // FindModuleByName(): + // + // Finds a particular module by name within the given context. If such module cannot be found, an error occurs. + // It is legal to ask for the module with or without the extension. + // + STDMETHOD(FindModuleByName)( + THIS_ + _In_ IDebugHostContext* context, + _In_z_ PCWSTR moduleName, + _COM_Outptr_ IDebugHostModule **module + ) PURE; + + // FindModuleByLocation(): + // + // Given a location within the address space of the debug target as defined by the given context, this returns + // the module to which that location belongs. If that location is not within the address range of a mapped + // module, an error is returned. + // + STDMETHOD(FindModuleByLocation)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location moduleLocation, + _COM_Outptr_ IDebugHostModule **module + ) PURE; + + // GetMostDerivedObject(): + // + // For an object of a given type at a specified location within the address space of the debug target as defined + // by the given context, this will attempt to perform runtime type analysis to determine the runtime type of + // the object (as opposed to the passed static type). If such a runtime type can be found, the location of the + // runtime (most derived) type will be returned as well as its type. + // + // Note that analysis takes place at the type system level only and has nothing to do with the + // IPreferredRuntimeTypeConcept concept. + // + // Note that this method may fail for a variety of reasons. It may also return the same address and type which + // was input. + // + STDMETHOD(GetMostDerivedObject)( + THIS_ + _In_opt_ IDebugHostContext *pContext, + _In_ Location location, + _In_ IDebugHostType* objectType, + _Out_ Location* derivedLocation, + _Out_ IDebugHostType** derivedType + ) PURE; +}; + +// +// IDebugHostSymbols2: +// +// The core symbols interface which a debug host presents. This interface can be QI'd from +// IDebugHost in order to access global symbols, the module list of the debug target, type +// signatures, etc... +// +#undef INTERFACE +#define INTERFACE IDebugHostSymbols2 +DECLARE_INTERFACE_(IDebugHostSymbols2, IDebugHostSymbols) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbols: + + STDMETHOD(CreateModuleSignature)( + THIS_ + _In_z_ PCWSTR pwszModuleName, + _In_opt_z_ PCWSTR pwszMinVersion, + _In_opt_z_ PCWSTR pwszMaxVersion, + _Out_ IDebugHostModuleSignature** ppModuleSignature + ) PURE; + + STDMETHOD(CreateTypeSignature)( + THIS_ + _In_z_ PCWSTR signatureSpecification, + _In_opt_ IDebugHostModule* module, + _Out_ IDebugHostTypeSignature** typeSignature + ) PURE; + + STDMETHOD(CreateTypeSignatureForModuleRange)( + THIS_ + _In_z_ PCWSTR signatureSpecification, + _In_z_ PCWSTR moduleName, + _In_opt_z_ PCWSTR minVersion, + _In_opt_z_ PCWSTR maxVersion, + _Out_ IDebugHostTypeSignature** typeSignature + ) PURE; + + STDMETHOD(EnumerateModules)( + THIS_ + _In_ IDebugHostContext* context, + _COM_Outptr_ IDebugHostSymbolEnumerator** moduleEnum + ) PURE; + + STDMETHOD(FindModuleByName)( + THIS_ + _In_ IDebugHostContext* context, + _In_z_ PCWSTR moduleName, + _COM_Outptr_ IDebugHostModule **module + ) PURE; + + STDMETHOD(FindModuleByLocation)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location moduleLocation, + _COM_Outptr_ IDebugHostModule **module + ) PURE; + + STDMETHOD(GetMostDerivedObject)( + THIS_ + _In_opt_ IDebugHostContext *pContext, + _In_ Location location, + _In_ IDebugHostType* objectType, + _Out_ Location* derivedLocation, + _Out_ IDebugHostType** derivedType + ) PURE; + + //************************************************* + // IDebugHostSymbols2: + // + + // DemangleSymbolName(): + // + // Attempts to take the name of the given symbol, find an appropriate demangler for it based on what + // the host knows about the symbols, and returns a demangled form of the symbol name. + // + // If an appropriate demangler cannot be found (because we do not recognized the symbol format/language/ + // compiler, E_NOINTERFACE may be returned. Other errors may also be returned depending. + // + // Currently, flags are reserved and must be set to zero. + // + STDMETHOD(DemangleSymbolName)( + THIS_ + _In_ IDebugHostSymbol *pSymbol, + _In_ ULONG flags, + _Out_ BSTR *pDemangledSymbolName + ) PURE; +}; + +// +// IDebugHostMemory: +// +// The core memory access interface which a debug host presents. This interface can be QI'd from +// IDebugHost in order to access memory regions (be they virtual / physical / registers / etc...) +// +// Note that the combination of context and "location" in the methods of this interface +// need not necessarily refer to the virtual address space of the target. They can refer to the +// physical address space of the target, an I/O space of the target, a register space of the target, etc... +// +#undef INTERFACE +#define INTERFACE IDebugHostMemory +DECLARE_INTERFACE_(IDebugHostMemory, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostMemory: + + // ReadBytes(): + // + // Reads a number of bytes from the address space of the target as defined by the inpassed context and location. + // The number of bytes read is returned in "bytesRead" upon success. + // + STDMETHOD(ReadBytes)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_writes_bytes_(bufferSize) void* buffer, + _In_ ULONG64 bufferSize, + _Out_opt_ ULONG64* bytesRead + ) PURE; + + // WriteBytes(): + // + // Writes a number of bytes to the address space of the target as defined by the inpassed context and location. + // The number of bytes written is returned in "bytesWritten" upon success. + // + STDMETHOD(WriteBytes)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_reads_bytes_(bufferSize) void* buffer, + _In_ ULONG64 bufferSize, + _Out_opt_ ULONG64* bytesWritten + ) PURE; + + // ReadPointers(): + // + // Reads a number of pointer sized objects from the address space of the target as defined by the inpassed + // context and location. + // + // Each read pointer is, if necessary, zero extended to 64-bits and returned. + // + STDMETHOD(ReadPointers)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 count, + _Out_writes_(count) ULONG64* pointers + ) PURE; + + // WritePointers(): + // + // Takes a number of pointers as held in unsigned 64-bit values, truncates them to the native pointer size + // of the target, and writes them into the address space of the target as defined by the inpassed + // context and location. + // + STDMETHOD(WritePointers)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 count, + _In_reads_(count) ULONG64* pointers + ) PURE; + + // GetDisplayStringForLocation(): + // + // For a given location within the address space of the target as defined by context and location, + // convert the location to a displayable string (according to whatever format the host chooses). + // + // If the "verbose" argument is true, the string conversion may be "more verbose" + // + STDMETHOD(GetDisplayStringForLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ bool verbose, + _Out_ BSTR* locationName + ) PURE; +}; + +// +// IDebugHostMemory2: +// +// The second version of the core memory access interface which a debug host presents. +// This interface can be QI'd from IDebugHost in order to access memory regions (be they +// virtual / physical / registers / etc...) +// +// Note that the combination of context and "location" in the methods of this interface +// need not necessarily refer to the virtual address space of the target. They can refer to the +// physical address space of the target, an I/O space of the target, a register space of the target, etc... +// +#undef INTERFACE +#define INTERFACE IDebugHostMemory2 +DECLARE_INTERFACE_(IDebugHostMemory2, IDebugHostMemory) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostMemory: + + STDMETHOD(ReadBytes)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_writes_bytes_(bufferSize) void* buffer, + _In_ ULONG64 bufferSize, + _Out_opt_ ULONG64* bytesRead + ) PURE; + + STDMETHOD(WriteBytes)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_reads_bytes_(bufferSize) void* buffer, + _In_ ULONG64 bufferSize, + _Out_opt_ ULONG64* bytesWritten + ) PURE; + + STDMETHOD(ReadPointers)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 count, + _Out_writes_(count) ULONG64* pointers + ) PURE; + + STDMETHOD(WritePointers)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 count, + _In_reads_(count) ULONG64* pointers + ) PURE; + + STDMETHOD(GetDisplayStringForLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ bool verbose, + _Out_ BSTR* locationName + ) PURE; + + //************************************************* + // IDebugHostMemory2: + + // LinearizeLocation(): + // + // Takes a location which may represent something other than a virtual memory address and attempts + // to linearize the location into a virtual memory address within the given context. This operation may fail + // if the location cannot be represented by a virtual address (e.g.: it's a register). + // + STDMETHOD(LinearizeLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_ Location *pLinearizedLocation + ) PURE; + +}; + +#undef INTERFACE +#define INTERFACE IDebugHostMemory3 +DECLARE_INTERFACE_(IDebugHostMemory3, IDebugHostMemory2) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostMemory: + + STDMETHOD(ReadBytes)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_writes_bytes_(bufferSize) void* buffer, + _In_ ULONG64 bufferSize, + _Out_opt_ ULONG64* bytesRead + ) PURE; + + STDMETHOD(WriteBytes)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_reads_bytes_(bufferSize) void* buffer, + _In_ ULONG64 bufferSize, + _Out_opt_ ULONG64* bytesWritten + ) PURE; + + STDMETHOD(ReadPointers)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 count, + _Out_writes_(count) ULONG64* pointers + ) PURE; + + STDMETHOD(WritePointers)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 count, + _In_reads_(count) ULONG64* pointers + ) PURE; + + STDMETHOD(GetDisplayStringForLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ bool verbose, + _Out_ BSTR* locationName + ) PURE; + + //************************************************* + // IDebugHostMemory2: + + STDMETHOD(LinearizeLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_ Location *pLinearizedLocation + ) PURE; + + //************************************************* + // IDebugHostMemory3: + + // CanonicalizeLocation(): + // + // For a given type of location (virtual memory, register, etc...): if the location can be represented + // in more than one form, this will pick one such form as the "canonical representation" and transform + // the location to that canonical form. + // + // As an example: Debugging Tools for Windows (dbgeng) historically sign extends 32-bit addresses to 64-bits. + // This results in difficulty representing and distinguishing certain address regions in high address aware + // 32-bit processes. As such, the canonical form of any address in the debug host layer is *ZERO EXTENDED* + // to 64-bits. + // + // Comparing locations or addresses gathered from components which report sign extended addresses against zero + // extended ones will result in unexpected failures. Calling to canonicalize beforehand will guarantee + // no such error. + // + // This API will *NOT* transform the *type* of a location. Calling LinearizeLocation will perform such and + // guarantees the return of a canonical address. + // + STDMETHOD(CanonicalizeLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_ Location *pCanonicalizedLocation + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugHostMemory4 +DECLARE_INTERFACE_(IDebugHostMemory4, IDebugHostMemory3) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostMemory: + + STDMETHOD(ReadBytes)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_writes_bytes_(bufferSize) void* buffer, + _In_ ULONG64 bufferSize, + _Out_opt_ ULONG64* bytesRead + ) PURE; + + STDMETHOD(WriteBytes)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_reads_bytes_(bufferSize) void* buffer, + _In_ ULONG64 bufferSize, + _Out_opt_ ULONG64* bytesWritten + ) PURE; + + STDMETHOD(ReadPointers)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 count, + _Out_writes_(count) ULONG64* pointers + ) PURE; + + STDMETHOD(WritePointers)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 count, + _In_reads_(count) ULONG64* pointers + ) PURE; + + STDMETHOD(GetDisplayStringForLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ bool verbose, + _Out_ BSTR* locationName + ) PURE; + + //************************************************* + // IDebugHostMemory2: + + STDMETHOD(LinearizeLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_ Location *pLinearizedLocation + ) PURE; + + //************************************************* + // IDebugHostMemory3: + + STDMETHOD(CanonicalizeLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_ Location *pCanonicalizedLocation + ) PURE; + + //************************************************* + // IDebugHostMemory4: + // + + // GetPhysicalAddressLocation(): + // + // Create a location structure representing an offset as a physical memory address. + // Note that this MAY legally fail (E_NOTIMPL) on a debugger which does not support physical addressing. + // If the debugger supports physical addressing but a specific target does not, + // GetPhysicalAddressLocation will succeed but attempts to read from that location will fail. + // + // If this method succeeds, the location can be utilized with any method that takes + // a location (including the creation of typed objects at a physical address). + // + // Callers are free to manipulate the offset of the returned location on successful return + // of the method. + // + STDMETHOD(GetPhysicalAddressLocation)( + _In_ ULONG64 physAddr, + _Out_ Location *pPhysicalAddressLocation + ) PURE; + + // IsPhysicalAddressLocation(): + // + // Returns whether a given location represents a physical address or not. + // + STDMETHOD_(bool, IsPhysicalAddressLocation)( + _In_ Location *pLocation + ) PURE; + +}; + +#undef INTERFACE +#define INTERFACE IDebugHostMemory5 +DECLARE_INTERFACE_(IDebugHostMemory5, IDebugHostMemory4) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostMemory: + + STDMETHOD(ReadBytes)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_writes_bytes_(bufferSize) void* buffer, + _In_ ULONG64 bufferSize, + _Out_opt_ ULONG64* bytesRead + ) PURE; + + STDMETHOD(WriteBytes)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_reads_bytes_(bufferSize) void* buffer, + _In_ ULONG64 bufferSize, + _Out_opt_ ULONG64* bytesWritten + ) PURE; + + STDMETHOD(ReadPointers)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 count, + _Out_writes_(count) ULONG64* pointers + ) PURE; + + STDMETHOD(WritePointers)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 count, + _In_reads_(count) ULONG64* pointers + ) PURE; + + STDMETHOD(GetDisplayStringForLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ bool verbose, + _Out_ BSTR* locationName + ) PURE; + + //************************************************* + // IDebugHostMemory2: + + STDMETHOD(LinearizeLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_ Location *pLinearizedLocation + ) PURE; + + //************************************************* + // IDebugHostMemory3: + + STDMETHOD(CanonicalizeLocation)( + _In_ IDebugHostContext* context, + _In_ Location location, + _Out_ Location *pCanonicalizedLocation + ) PURE; + + //************************************************* + // IDebugHostMemory4: + // + + STDMETHOD(GetPhysicalAddressLocation)( + _In_ ULONG64 physAddr, + _Out_ Location *pPhysicalAddressLocation + ) PURE; + + STDMETHOD_(bool, IsPhysicalAddressLocation)( + _In_ Location *pLocation + ) PURE; + + //************************************************* + // IDebugHostMemory5: + // + + // ReadIntrinsics(): + // + // Reads one or more intrinsic values from the address space of the target as defined by the inpassed context + // and location. The number of intrinsics read is returned in the "intrinsicsRead" upon success. + // + // The type of intrinsics is given by the 'vt' value and can be one of: + // + // VT_I1 - VT_I8 : signed integers + // VT_UI1 - VT_UI1 : unsigned integers + // VT_R4 - VT_R8 : standard floating point (single/double precision) values + // + STDMETHOD(ReadIntrinsics)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ VARTYPE vt, + _In_ ULONG64 count, + _Out_writes_(count) VARIANT *vals, + _Out_ ULONG64 *intrinsicsRead + ) PURE; + + // ReadOrdinalIntrinsics(): + // + // Similar to ReadIntrinsics(), the type of intrinsic is given by an ordinal size and indication of the + // signed-ness of the intrinsics. This only supports 8-64 bit signed and unsigned ordinals. + // + STDMETHOD(ReadOrdinalIntrinsics)( + THIS_ + _In_ IDebugHostContext* context, + _In_ Location location, + _In_ ULONG64 ordinalSize, + _In_ bool ordinalIsSigned, + _In_ ULONG64 count, + _Out_writes_(count) VARIANT *vals, + _Out_ ULONG64 *intrinsicsRead + ) PURE; +}; + + +// +// IDebugHostEvaluator: +// +// The core expression evaluation interface which a debug host presents. This interface can be QI'd from +// IDebugHost in order to perform expression evaluation. +// +// NOTE: In order to be as compatible as possible across the hosts which support this interface, callers +// of expression evaluation should either restrict their usage to pure language level semantics or should +// be prepared to fall back to other means. Different hosts may extend expression valuation with non-language +// semantics as they see fit. Such semantics are not guaranteed to be cross compatible. Only pure language +// level semantics are. +// +#undef INTERFACE +#define INTERFACE IDebugHostEvaluator +DECLARE_INTERFACE_(IDebugHostEvaluator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostEvaluator: + + // EvaluateExpression(): + // + // Causes the host to evaluate an expression. The input expression will be evaluated with + // language syntax. The underlying expression evaluator will not offer any extensions which + // are private to a particular host. Such expressions can be evaluated via an intentional + // choice to call EvaluateExtendedExpression. + // + // The host context is passed in the "context" argument and + // defines what debug target, etc... the expression evaluation occurs in the context of. + // + // The "bindingContext" argument supplies an effective "this" pointer for the expression evaluation. + // An evaluation of "m_foo" with a bindingContext of "bar" is effectively evaluating "bar.m_foo". + // To remove a name in the expression from application of "this", it is necessary to qualify the name + // via some form of qualification (e.g.: a global '::', module qualification syntax, etc...) + // + // If the "bindingContext" argument is nullptr, all names will be bound as if the host were in the state + // described by the "context" argument. This may include local variables of a specified stack frame + // of a specified thread, globals (as determined by the host), etc... + // + // The result of the expression evaluation and, optionally any resultant metadata, are returned from + // this method. If an evaluation error occurs, it is possible for the method to return a failing HRESULT + // and still return an error object in the "result" output argument. + // + STDMETHOD(EvaluateExpression)( + THIS_ + _In_ IDebugHostContext* context, + _In_ PCWSTR expression, + _In_opt_ IModelObject* bindingContext, + _COM_Errorptr_ IModelObject** result, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // EvaluateExtendedExpression(): + // + // Evaluates an expression in a similar fashion to EvaluateExpression(). Calling this method turns + // on any features that the host's expression evaluator provides on top of language semantics. + // These features are host specific and are not generic amongst all hosts which support a particular + // language. + // + // Any extension which calls this method must handle failure of the method in a graceful manner. + // + STDMETHOD(EvaluateExtendedExpression)( + THIS_ + _In_ IDebugHostContext* context, + _In_ PCWSTR expression, + _In_opt_ IModelObject* bindingContext, + _COM_Errorptr_ IModelObject** result, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; +}; + +// +// SignatureComparison: +// +// Describes how a type or two signatures compare. +// +enum SignatureComparison +{ + // The two signatures/types being compared are unrelated. + Unrelated, + + // One signature/type compares ambiguously against the other. For instance, + // std::pair<*, int> versus std::pair are ambiguous. There are types that would + // match both of these equally well (e.g.: std::pair) + Ambiguous, + + // One signature/type is less specific than the other. For instance, a comparison of + // std::vector<*> against std::vector would yield LessSpecific. + LessSpecific, + + // One signature/type is more specific than the other. For instance, a comparison of + // std::vector against std::vector<*> would yield MoreSpecific. + MoreSpecific, + + // The signatures/types are identical. + Identical +}; + +// +// IDebugHostModuleSignature: +// +// The interface which represents a module signature: A module name with an optional version range. +// +#undef INTERFACE +#define INTERFACE IDebugHostModuleSignature +DECLARE_INTERFACE_(IDebugHostModuleSignature, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + )PURE; + + STDMETHOD_(ULONG, Release)( + THIS + )PURE; + + //************************************************* + // IDebugHostModuleSignature: + + STDMETHOD(IsMatch)( + THIS_ + _In_ IDebugHostModule* pModule, + _Out_ bool* isMatch + ) PURE; +}; + +// +// IDebugHostTypeSignature: +// +// The interface which represents a type signature: a wildcarded generalization of a set of types. +// Models can be registered against type signatures so that they are automatically attached to any +// object instance whose type instance matches the signature. +// +#undef INTERFACE +#define INTERFACE IDebugHostTypeSignature +DECLARE_INTERFACE_(IDebugHostTypeSignature, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostTypeSignature: + + // GetHashCode(): + // + // Gets a 32-bit hash code for this type signature. Note that any type instance which matches + // this particular signature (with the exception of global matches) *MUST* have the same hash code. + // + STDMETHOD(GetHashCode)( + THIS_ + _Out_ ULONG* hashCode + ) PURE; + + // IsMatch(): + // + // Returns whether or not a particular type instance matches this signature. If it does, true is returned + // from "isMatch" and the optional "wildcardMatches" argument will be set to an enumerator which enumerates + // all of the wildcard matches between the type instance and the type signature. + // + STDMETHOD(IsMatch)( + THIS_ + _In_ IDebugHostType* type, + _Out_ bool* isMatch, + _COM_Outptr_opt_ IDebugHostSymbolEnumerator** wildcardMatches + ) PURE; + + // CompareAgainst(): + // + // Evaluates the relationship between two type signatures and returns information about that relationship. + // One type signature can be unrelated, less specific, more specific, identical, or ambiguous as compared + // to another. + // + // It is illegal to have ambiguity between two type signatures registered with the data model manager. + // + STDMETHOD(CompareAgainst)( + THIS_ + _In_ IDebugHostTypeSignature* typeSignature, + _Out_ SignatureComparison* result + ) PURE; + +}; + +// SymbolSearchOptions: +// +enum SymbolSearchOptions +{ + // SymbolSearchNone: No options set + SymbolSearchNone = 0x00000000, + + // SymbolSearchCompletion: Search for symbols starting with the specified name rather than + // symbols of the exact specified name. + SymbolSearchCompletion = 0x00000001, + + // SymbolSearchCaseInsensitive: Search for symbols using case-insensitive rules. + SymbolSearchCaseInsensitive = 0x00000002 +}; + +// SymbolSearchInfo: +// +// The search record passed to EnumerateChildrenEx in order to restrict symbol searches. +// A given kind of symbol (as indicated by the SymbolKind enumeration) searched may have its own derived type. +// +struct SymbolSearchInfo +{ +#ifdef __cplusplus +protected: + SymbolSearchInfo(_In_ ULONG derivedSize) : + HeaderSize(sizeof(SymbolSearchInfo)), + InfoSize(derivedSize), + SearchOptions(0) + { + } + +public: + SymbolSearchInfo() : + HeaderSize(sizeof(SymbolSearchInfo)), + InfoSize(sizeof(SymbolSearchInfo)), + SearchOptions(0) + { + } +#endif // __cplusplus + + ULONG HeaderSize; // sizeof(SymbolSearchInfo) + ULONG InfoSize; // sizeof(* by SymbolKind *) + + ULONG SearchOptions; + + // + // What follows is per SymbolKind: + // +}; + +// TypeSearchInfo: +// +// The search record passed to EnumerateChildrenEx specifically for SymbolType searches. +// +struct TypeSearchInfo : public SymbolSearchInfo +{ +#ifdef __cplusplus + TypeSearchInfo() : + SymbolSearchInfo(sizeof(TypeSearchInfo)) + { + } + + TypeSearchInfo(_In_ TypeKind searchType) : + SymbolSearchInfo(sizeof(TypeSearchInfo)), + SearchType(searchType) + { + } +#endif // __cplusplus + + // Defines the type being searched for. + TypeKind SearchType; +}; + +// LanguageKind: +// +// Identifies the language of the compiland containing a given symbol. +// +enum LanguageKind +{ + // LanguageUnknown: Indicates that the language cannot be identified + LanguageUnknown, + + // LanguageC: Indicates the C language + LanguageC, + + // LanguageCPP: Indicates the C++ language + LanguageCPP, + + // LanguageAssembly: Indicates assembly + LanguageAssembly, + + // LanguageRust: Indicates Rust + LanguageRust +}; + +#undef INTERFACE +#define INTERFACE IDebugHostSymbol2 +DECLARE_INTERFACE_(IDebugHostSymbol2, IDebugHostSymbol) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + STDMETHOD(CompareAgainst)( + THIS_ + _In_ IDebugHostSymbol *pComparisonSymbol, + _In_ ULONG comparisonFlags, + _Out_ bool *pMatches + ) PURE; + + //************************************************* + // IDebugHostSymbol2 + + // EnumerateChildrenEx(): + // + // Enumerates all child symbols of the given type, name, and extended information which is present. + // This behaves identically to EnumerateChildren when searchInfo is nullptr. SymbolType::Symbol + // can be used to search to search for any kind of child. + // + // Note that if name is nullptr, children of any name will be produced by the resulting enumerator. + // + STDMETHOD(EnumerateChildrenEx)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _In_opt_ SymbolSearchInfo* searchInfo, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + // GetLanguage(): + // + // If the symbol can identify the language for which it applies, this returns an identifier for such. + // Many symbols will *NOT* be able to make this determination. In such cases, this method will fail. + // It is also possible that the host does not understand the language or there is no defined LanguageKind. + // In such cases, LanguageUnknown will be returned and the method will succeed. + // + STDMETHOD(GetLanguage)( + THIS_ + _Out_ LanguageKind *pKind + ) PURE; + +}; + +#undef INTERFACE +#define INTERFACE IDebugHostSymbol3 +DECLARE_INTERFACE_(IDebugHostSymbol3, IDebugHostSymbol2) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostSymbol: + + STDMETHOD(GetContext)( + THIS_ + _COM_Outptr_ IDebugHostContext** context + ) PURE; + + STDMETHOD(EnumerateChildren)( + THIS_ + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetSymbolKind)( + THIS_ + _Out_ SymbolKind *kind + ) PURE; + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* symbolName + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** type + ) PURE; + + STDMETHOD(GetContainingModule)( + THIS_ + _Out_ IDebugHostModule **containingModule + ) PURE; + + STDMETHOD(CompareAgainst)( + THIS_ + _In_ IDebugHostSymbol *pComparisonSymbol, + _In_ ULONG comparisonFlags, + _Out_ bool *pMatches + ) PURE; + + //************************************************* + // IDebugHostSymbol2 + + STDMETHOD(EnumerateChildrenEx)( + _In_ SymbolKind kind, + _In_opt_z_ PCWSTR name, + _In_opt_ SymbolSearchInfo* searchInfo, + _Out_ IDebugHostSymbolEnumerator **ppEnum + ) PURE; + + STDMETHOD(GetLanguage)( + THIS_ + _Out_ LanguageKind *pKind + ) PURE; + + //************************************************* + // IDebugHostSymbol3: + // + + // GetCompilerInformation(): + // + // If the symbol can identify the compiler which produced it, this will return information + // about that compiler. + // + // Note that the "compiler string" returned may be a compiler name or may include additional information + // (e.g.: command line arguments, etc...). That depends on the underlying implementation. + // + // It is legal for a debug host to E_NOTIMPL this. + // + STDMETHOD(GetCompilerInformation)( + THIS_ + _Out_ KnownCompiler *pCompilerId, + _Out_opt_ BSTR *pCompilerString + ) PURE; + +}; + +// +// IDebugHostStatus +// +// This interface exposes the status of the underlying IDebugHost. +// +#undef INTERFACE +#define INTERFACE IDebugHostStatus +DECLARE_INTERFACE_(IDebugHostStatus, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostStatus: + + // PollUserInterrupt(): + // + // Returns whether a user interrupt has been set. Ie: Ctrl+Break + // + STDMETHOD(PollUserInterrupt)( + THIS_ + _Out_ bool* interruptRequested + ) PURE; +}; + +// +// IDebugHostStatus2 +// +// This interface exposes the status of the underlying IDebugHost. +// +#undef INTERFACE +#define INTERFACE IDebugHostStatus2 +DECLARE_INTERFACE_(IDebugHostStatus2, IDebugHostStatus) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostStatus: + + STDMETHOD(PollUserInterrupt)( + THIS_ + _Out_ bool* interruptRequested + ) PURE; + + //************************************************* + // IDebugHostStatus2: + + // SetUserInterrupt(): + // + // Effect a "break" triggered by the user. + // + STDMETHOD(SetUserInterrupt)( + THIS_ + ) PURE; + + // ClearUserInterrupt(): + // + // Clear the flag indicating that a "break" triggered by the user has been handled. + // + STDMETHOD(ClearUserInterrupt)( + THIS_ + ) PURE; +}; + +//************************************************************************** +// Script Provider and Scripting Interfaces: +// + +// IDataModelScriptClient: +// +// A host or other client which wishes to interface with a scripting extension must have one +// or more implementations of IDataModelScriptClient in order to receive messages from the script +// provider. +// +#undef INTERFACE +#define INTERFACE IDataModelScriptClient +DECLARE_INTERFACE_(IDataModelScriptClient, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptClient: + + // ReportError(): + // + // Called from the provider when there is an error in the execution of the script. The class of error, + // error code, error message, and position of the error within the script are passed. The client + // decides what to do with the error information. + // + STDMETHOD(ReportError)( + THIS_ + _In_ ErrorClass errClass, + _In_ HRESULT hrFail, + _In_opt_ PCWSTR message, + _In_ ULONG line, + _In_ ULONG position + ) PURE; + +}; + +// IDataModelScriptTemplate: +// +// If a script provider has template content that it wishes to advertise to the host, it implements +// this interface. +// +#undef INTERFACE +#define INTERFACE IDataModelScriptTemplate +DECLARE_INTERFACE_(IDataModelScriptTemplate, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptTemplate: + + // GetName(): + // + // Gets the name of the template content. This may fail with E_NOTIMPL if the template does not + // have a name. A default template is not required to have a name. All other templates must. + // + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR *templateName + ) PURE; + + // GetDescription(): + // + // Gets the description for this template content. This may fail with E_NOTIMPL if the template does + // not have a description. + // + STDMETHOD(GetDescription)( + THIS_ + _Out_ BSTR *templateDescription + ) PURE; + + // GetContent(): + // + // Returns a stream over the template content. + // + STDMETHOD(GetContent)( + THIS_ + _COM_Outptr_ IStream **contentStream + ) PURE; + + +}; + +// IDataModelScript: +// +// The interface which represents an individual script managed by a script provider. Each script provider +// must be capable of creating and managing multiple scripts. +// +#undef INTERFACE +#define INTERFACE IDataModelScript +DECLARE_INTERFACE_(IDataModelScript, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScript: + + // GetName(): + // + // Gets the present "name" of the script. + // + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR *scriptName + ) PURE; + + // Rename(): + // + // Renames the script and, in so doing, may alter where the host projects the contents of the script + // into the debugger namespace. + // + STDMETHOD(Rename)( + THIS_ + _In_ PCWSTR scriptName + ) PURE; + + // Populate(): + // + // Called by the host (or client) in order to change/synchronize the "content" of the script. This does *NOT* + // cause execution of the script of any objects that the script manipulates. It merely tells the script provider + // that the content of the script has changed so that it may synchronize its own internal state. + // + // The implementer of the Populate method may not hold the content stream between the Populate and Execute calls. + // It *MUST* synchronize any internal state and data structures during a Populate. + // + STDMETHOD(Populate)( + THIS_ + _In_ IStream *contentStream + ) PURE; + + // Execute(): + // + // Executes the content of the script. Note taht execution of the script is a two way communcation between the + // script provider and the script client. Errors, debugging control, and other semantics are passed across the + // communication channel between IDataModelScript and IDataModelScriptClient. + // + // After a successful return, the script provider's projection of the script should be active. Note that if the + // script fails to execute (e.g.: syntax errors, etc...), the prior contents of the projection should *not* + // disappear. + // + // For a properly written script provider and script environment, calling Execute multiple times without an + // intervening Populate() or Unlink() call should be idempotent. Execution of a script should create a bridge + // between the object model of the debugger and that of the script. It should not produce side effecting results + // on the state of the debug target. Utilizing properties, methods, or events on the bridge produced via + // Execute may indeed produce side effecting results. + // + STDMETHOD(Execute)( + THIS_ + _In_ IDataModelScriptClient *client + ) PURE; + + // Unlink(): + // + // Undoes the Execute operation. Any links which were made between the script and the object model are unlinked. + // After an Unlink operation, the script may be re-executed via a call to Execute or it may be released. + // + // It is expected that this is called, for instance, upon the closing of a script window by a UI client. + // + STDMETHOD(Unlink)( + THIS + ) PURE; + + // IsInvocable(): + // + // Returns whether or not the script is invocable (e.g.: it has some semblance of a main function as defined by + // its provider). This method may only be called after a successful Execute. + // + // If this method returns true in its argument, InvokeMain() may be called. + // + STDMETHOD(IsInvocable)( + THIS_ + _Out_ bool *isInvocable + ) PURE; + + // InvokeMain(): + // + // If the script has a main function which is intended to execute from a UI invocation, the provider can indicate + // such in metadata and the call to this method will "invoke" the script. Note that this is distinct from *Execute* + // which runs all root code and bridges the script to the namespace of the underlying host. + // + // This method may fail with E_NOTIMPL if the script does not contain a "named main function" or the provider does + // not define a "main" method. + // + STDMETHOD(InvokeMain)( + THIS_ + _In_ IDataModelScriptClient *client + ) PURE; + +}; + +// +// IDataModelScript2: +// +// This is the second version of the core script interface. +// +#undef INTERFACE +#define INTERFACE IDataModelScript2 +DECLARE_INTERFACE_(IDataModelScript2, IDataModelScript) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScript: + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR *scriptName + ) PURE; + + STDMETHOD(Rename)( + THIS_ + _In_ PCWSTR scriptName + ) PURE; + + STDMETHOD(Populate)( + THIS_ + _In_ IStream *contentStream + ) PURE; + + STDMETHOD(Execute)( + THIS_ + _In_ IDataModelScriptClient *client + ) PURE; + + STDMETHOD(Unlink)( + THIS + ) PURE; + + STDMETHOD(IsInvocable)( + THIS_ + _Out_ bool *isInvocable + ) PURE; + + STDMETHOD(InvokeMain)( + THIS_ + _In_ IDataModelScriptClient *client + ) PURE; + + //************************************************* + // IDataModelScript2: + + // GetScriptFullFilePathName(): + // + // Gets the script full file path name. + // + STDMETHOD(GetScriptFullFilePathName)( + THIS_ + _Out_ BSTR *scriptFullPathName + ) PURE; + + // SetScriptFullFilePathName(): + // + // Sets the script full file path name. The method can be executed only once. + // + STDMETHOD(SetScriptFullFilePathName)( + THIS_ + _In_ PCWSTR scriptFullPathName + ) PURE; +}; + +// +// IDataModelScriptTemplateEnumerator: +// +// Core interface which enumerates any and all template content available from the provider for +// the creation of new prepopulated scripts. +// +#undef INTERFACE +#define INTERFACE IDataModelScriptTemplateEnumerator +DECLARE_INTERFACE_(IDataModelScriptTemplateEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptTemplateEnumerator: + + // Reset(): + // + // Resets the enumerator to the first element. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Gets the next script template which is being enumerated and moves the enumerator + // to the next position. E_BOUNDS will be returned at the end of enumeration. + // + STDMETHOD(GetNext)( + THIS_ + _COM_Outptr_ IDataModelScriptTemplate **templateContent + ) PURE; +}; + +// +// IDataModelScriptProvider: +// +// The core interface that any extension which wishes to act as a script provider to the underlying host must +// implement. +// +#undef INTERFACE +#define INTERFACE IDataModelScriptProvider +DECLARE_INTERFACE_(IDataModelScriptProvider, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptProvider: + + // GetName(): + // + // Returns the name (type) of the script provider (e.g.: "JavaScript", "Python", "NatVis", etc...) + // + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR *name + ) PURE; + + // GetExtension(): + // + // Returns the extension which the script provider supports (e.g.: "js", "py", "NatVis", etc...). Loads + // of scripts with this extension will automatically be directed to the appropriately registered script + // provider. + // + STDMETHOD(GetExtension)( + THIS_ + _Out_ BSTR *extension + ) PURE; + + // CreateScript(): + // + // When the host wishes to create a script based on the provider, it calls this method. + // + STDMETHOD(CreateScript)( + THIS_ + _COM_Outptr_ IDataModelScript **script + ) PURE; + + // GetDefaultTemplateContent(): + // + // Returns an object which represents the "default template" content for the scrtipt. If the script + // provider does not have any default template content, E_NOTIMPL may be returned from this interface. + // + STDMETHOD(GetDefaultTemplateContent)( + THIS_ + _COM_Outptr_ IDataModelScriptTemplate **templateContent + ) PURE; + + // EnumerateTemplates(): + // + // Enumerates all varying templates that are available from the provider. The default template + // will enumerate in this set. In addition, the provider may enumerate an arbitrary number of "named" + // templates which have varying content prepopulated for differing purposes. + // + STDMETHOD(EnumerateTemplates)( + THIS_ + _COM_Outptr_ IDataModelScriptTemplateEnumerator **enumerator + ) PURE; + +}; + +#undef INTERFACE +#define INTERFACE IDataModelScriptProviderEnumerator +DECLARE_INTERFACE_(IDataModelScriptProviderEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptProviderEnumerator: + + // Reset(): + // + // Resets the enumerator to the first element. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Gets the next script provider which is being enumerated and moves the enumerator + // to the next position. E_BOUNDS will be returned at the end of enumeration. + // + STDMETHOD(GetNext)( + THIS_ + _COM_Outptr_ IDataModelScriptProvider **provider + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDataModelScriptManager +DECLARE_INTERFACE_(IDataModelScriptManager, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptManager: + + // GetDefaultNameBinder(): + // + // Gets the default name binder for script providers. This returns an object which + // can bind a name in the context of an object and does so according to a default set + // of rules. Script providers can make use of this provider to provide consistency + // in name resolution across providers. + // + STDMETHOD(GetDefaultNameBinder)( + THIS_ + _COM_Outptr_ IDataModelNameBinder **ppNameBinder + ) PURE; + + // RegisterScriptProvider(): + // + // An extension which wishes to register itself as a provider of scripting functionality to + // the host calls this method in order to register itself. Once registered, the provider + // should work in all contexts that general scripting works in the underlying debugger host. + // + // Such registration may fail if there is already a provider registered under a particular name + // or for a particular script extension. + // + STDMETHOD(RegisterScriptProvider)( + THIS_ + _In_ IDataModelScriptProvider *provider + ) PURE; + + // UnregisterScriptProvider(): + // + // Called by an extension which wishes to remove its registration of being a script provider. Note + // that if scripts are still loaded that reference the provider, they will continue to function. + // + // This only prevents the creation or loading of new scripts. + // + STDMETHOD(UnregisterScriptProvider)( + THIS_ + _In_ IDataModelScriptProvider *provider + ) PURE; + + // FindProviderForScriptType(): + // + // Finds a provider by its registered name (e.g.: "JavaScript", "Python", "NatVis", etc...). + // If no such provider can be found, E_BOUNDS is returned. + // + // Note that the comparison on 'scriptType' is case insensitive. + // + STDMETHOD(FindProviderForScriptType)( + THIS_ + _In_ PCWSTR scriptType, + _COM_Outptr_ IDataModelScriptProvider **provider + ) PURE; + + // FindProviderForScriptExtension(): + // + // Finds a provider by its script extension registration (e.g.: "js", "py", "NatVis", etc...). + // If no such provider can be found, E_BOUNDS is returned. + // + // Note that the comparison on 'scriptExtension' is case insensitive. + // + STDMETHOD(FindProviderForScriptExtension)( + THIS_ + _In_ PCWSTR scriptExtension, + _COM_Outptr_ IDataModelScriptProvider **provider + ) PURE; + + // EnumerateScriptProviders(): + // + // Returns an enumerator for all registered script providers in the system. A client + // which wishes to have UI to allow for the creation of arbitrary language scripts can + // utilize this to determine which providers are present in the system. + // + STDMETHOD(EnumerateScriptProviders)( + THIS_ + _COM_Outptr_ IDataModelScriptProviderEnumerator **enumerator + ) PURE; + +}; + +// +// IDynamicKeyProviderConcept +// +// Any object which provides a dynamic set of keys and values (e.g.: a bridge to a dynamic scripting language) +// can be a key provider. +// +// Unlike most concepts, a client should not GetConcept(IID_IDynamicKeyProviderConcept). Doing so returns the **FIRST** +// dynamic key provider on the object. The data model will internally use this concept on each model as it enumerates +// keys. +// +#undef INTERFACE +#define INTERFACE IDynamicKeyProviderConcept +DECLARE_INTERFACE_(IDynamicKeyProviderConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDynamicKeyProviderConcept: + + // GetKey(): + // + // Returns the key from the dynamic key provider and any metadata associated with that + // key. In the event that key is not present (but no other error occurs), the provider + // must return *hasKey = false / S_OK. A failure of this call is considered a failure + // to fetch a key and will explicitly halt the search for the key. Returning *hasKey = false / S_OK + // will not stop the search. + // + // It is perfectly legal for GetKey to return a boxed property accessor as the key. This would + // be semantically identical to an IModelObject::GetKey returning a property accessor. + // + STDMETHOD(GetKey)( + THIS_ + _In_ IModelObject *contextObject, + _In_ PCWSTR key, + _COM_Outptr_opt_result_maybenull_ IModelObject** keyValue, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata, + _Out_opt_ bool *hasKey + ) PURE; + + // SetKey(): + // + // Sets a key in the dynamic provider. This is considered the creation of a new property on the + // provider. Note that a provider which does not support any notion of something like the creation + // of expand properties should return E_NOTIMPL here. + // + STDMETHOD(SetKey)( + THIS_ + _In_ IModelObject *contextObject, + _In_ PCWSTR key, + _In_ IModelObject *keyValue, + _In_ IKeyStore *metadata + ) PURE; + + // EnumerateKeys(): + // + // Enumerates the keys within the dynamic key provider. The returned enumerator must behave as per an + // EnumerateKeys(...) call on IModelObject and not as EnumerateKeyValues or any of the other enumeration + // variants. + // + // Note that from the perspective of a single dynamic key provider, it is illegal to enumerate multiple keys + // of the same name that are physically distinct keys. + // + STDMETHOD(EnumerateKeys)( + THIS_ + _In_ IModelObject *contextObject, + _COM_Outptr_ IKeyEnumerator **ppEnumerator + ) PURE; + +}; + +// +// IDynamicConceptProviderConcept +// +// Any object which provides a dynamic set of concepts and implementations (e.g.: a bridge to a dynamic scripting language) +// can be a concept provider. There are consequences and limitations of being a dynamic concept provider: +// +// - An object can only be declared to be a dynamic concept provider **BEFORE** any other non IDynamic* concepts are +// added to the object. +// +// - Once you declare that an object is a dynamic concept provider, that fact can *NEVER* be changed! +// +// - An object which is a dynamic concept provider only has a single parent model. That parent model is presented +// to the dynamic concept provider to utilize. All calls to query/change parents affect this single parent model +// and *NOT* the object itself. +// +// - The provider must decide how to deal with parent models that are added dynamically based on concepts. +// +// Unlike most concepts, a client should not GetConcept(IID_IDynamicConceptProviderConcept). Doing so returns the **FIRST** +// dynamic concept provider on the object. The data model will internally use this concept on each model as it looks up +// concepts. +// +// A dynamic concept provider can **NEVER** return any IDynamic*Concept interface! You cannot have a dynamic concept provider +// say that it is a dynamic key provider, for instance. +// +#undef INTERFACE +#define INTERFACE IDynamicConceptProviderConcept +DECLARE_INTERFACE_(IDynamicConceptProviderConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDynamicConceptProviderConcept: + + // GetConcept(): + // + // Returns the concept from the dynamic concept provider and any metadata associated with that + // concept. In the event that the concept is not present (but no other error occurs), the provider + // must return *hasConcept = false / S_OK. A failure of this call is considered a failure + // to fetch a concept and will explicitly halt the search for the concept. Returning *hasConcept = false / S_OK + // will not stop the search. + // + STDMETHOD(GetConcept)( + THIS_ + _In_ IModelObject *contextObject, + _In_ REFIID conceptId, + _COM_Outptr_result_maybenull_ IUnknown **conceptInterface, + _COM_Outptr_opt_result_maybenull_ IKeyStore **conceptMetadata, + _Out_ bool *hasConcept + ) PURE; + + // SetConcept(): + // + // Sets a concept in the dynamic provider. Note that a provider which does not allow the creation + // of the concept shoiuld return E_NOTIMPL here. + // + STDMETHOD(SetConcept)( + THIS_ + _In_ IModelObject *contextObject, + _In_ REFIID conceptId, + _In_ IUnknown *conceptInterface, + _In_opt_ IKeyStore *conceptMetadata + ) PURE; + + // NotifyParent(): + // + // Notifies the concept provider of the **SINGLE** parent model which is present on the provider. + // + STDMETHOD(NotifyParent)( + THIS_ + _In_ IModelObject *parentModel + ) PURE; + + // NotifyParentChange(): + // + // Notifies the concept provider that a static change has been made to the set of parents. + // + STDMETHOD(NotifyParentChange)( + THIS_ + _In_ IModelObject *parentModel + ) PURE; + + // NotifyDestruct(): + // + // Notifies that the object which houses the dynamic concept provider is destructing. This allows + // a dynamic concept provider to clear caches if need be. + // + STDMETHOD(NotifyDestruct)( + THIS + ) PURE; + +}; + +// ScriptChangeKind: +// +// Indicates the type of notification firing to the host. +// +enum ScriptChangeKind +{ + // The script has been renamed + ScriptRename +}; + +// IDataModelScriptHostContext: +// +// A host context for a given script. +// +#undef INTERFACE +#define INTERFACE IDataModelScriptHostContext +DECLARE_INTERFACE_(IDataModelScriptHostContext, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptHostContext: + + // NotifyScriptChange(): + // + // Notifies the host of a change to the script. + // + STDMETHOD(NotifyScriptChange)( + THIS_ + _In_ IDataModelScript* script, + _In_ ScriptChangeKind changeKind + ) PURE; + + // GetNamespaceObject(): + // + // Gets the namespace object that the host has provided for the script. + // + STDMETHOD(GetNamespaceObject)( + THIS_ + _COM_Outptr_ IModelObject** namespaceObject + ) PURE; + +}; + +// +// IDebugHostScriptHost: +// +// Any host which supports the data model's notion of scripting must provide an implementation of this interface. +// Script providers utilize this to bridge to the namespace of the host. +// +#undef INTERFACE +#define INTERFACE IDebugHostScripthost +DECLARE_INTERFACE_(IDebugHostScriptHost, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostScriptHost: + + // CreateContext(): + // + // Called in order to create a context for a script. A context from the host includes + // a namespace object where the contents of the script can be bridged. + // + STDMETHOD(CreateContext)( + THIS_ + _In_ IDataModelScript* script, + _COM_Outptr_ IDataModelScriptHostContext** scriptContext + ) PURE; + +}; + +// +// IDataModelNameBinder: +// +// The default name binder for script providers. +// +#undef INTERFACE +#define INTERFACE IDataModelNameBinder +DECLARE_INTERFACE_(IDataModelNameBinder, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelNameBinder: + + // BindValue(): + // + // Performs the equivalent of "contextObject . 'name'" on the given object according + // to a default set of binding rules. Such a default binder provides consistency between + // script providers. + // + // The binding result is the result by value. + // + STDMETHOD(BindValue)( + THIS_ + _In_ IModelObject* contextObject, + _In_ PCWSTR name, + _COM_Errorptr_ IModelObject** value, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // BindReference(): + // + // Performs the equivalent of "contextObject . 'name'" on the given object according + // to a default set of binding rules. Such a default binder provides consistency between + // script providers. + // + // The binding result is the result by reference. + // + STDMETHOD(BindReference)( + THIS_ + _In_ IModelObject* contextObject, + _In_ PCWSTR name, + _COM_Errorptr_ IModelObject** reference, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + // EnumerateValues(): + // + // Enumerates the set of names and values which will bind against the object according + // to BindValue(...). + // + // Unlike the standard "EnumerateKeys" and "EnumerateRawValues" and the like which may + // return multiple names with the same value (for base classes, parent models, and the like), + // this enumerator will *ONLY* return the specific set of names which will bind with + // BindValue and BindReference. Names will never be duplicated. + // + // There is a significantly higher cost in providing this functionality. + // + STDMETHOD(EnumerateValues)( + THIS_ + _In_ IModelObject* contextObject, + _COM_Outptr_ IKeyEnumerator** enumerator + ) PURE; + + // EnumerateReferences(): + // + // Enumerates the set of names and values which will bind against the object according + // to BindReference(...). + // + // Unlike the standard "EnumerateKeys" and "EnumerateRawValues" and the like which may + // return multiple names with the same value (for base classes, parent models, and the like), + // this enumerator will *ONLY* return the specific set of names which will bind with + // BindValue and BindReference. Names will never be duplicated. + // + // There is a significantly higher cost in providing this functionality. + // + STDMETHOD(EnumerateReferences)( + THIS_ + _In_ IModelObject* contextObject, + _COM_Outptr_ IKeyEnumerator** enumerator + ) PURE; + +}; + +// +// IModelKeyReference2: +// +// Second version of IModelKeyReference +// Represents a reference to a key which can be resolved (dereferenced) to get the underlying key. +// +// This interface is never directly implemented by a client. +// +#undef INTERFACE +#define INTERFACE IModelKeyReference2 +DECLARE_INTERFACE_(IModelKeyReference2, IModelKeyReference) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IModelKeyReference: + + STDMETHOD(GetKeyName)( + THIS_ + _Out_ BSTR* keyName + ) PURE; + + STDMETHOD(GetOriginalObject)( + THIS_ + _COM_Outptr_ IModelObject** originalObject + ) PURE; + + STDMETHOD(GetContextObject)( + THIS_ + _COM_Outptr_ IModelObject** containingObject + ) PURE; + + //************************************************* + // Accessors: + // + + STDMETHOD(GetKey)( + THIS_ + _COM_Errorptr_opt_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + STDMETHOD(GetKeyValue)( + THIS_ + _COM_Errorptr_opt_ IModelObject** object, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + STDMETHOD(SetKey)( + THIS_ + _In_opt_ IModelObject* object, + _In_opt_ IKeyStore* metadata + ) PURE; + + STDMETHOD(SetKeyValue)( + THIS_ + _In_ IModelObject* object + ) PURE; + + //************************************************* + // IModelKeyReference2: + + // OverrideContextObject: + // + // Changes the context object which is used to resolve the key reference. If the key reference + // refers to a key which is a property (or to a dynamic key provider), 'newContextObject' as indicated + // by a call to this method will be passed to the property getter or the dynamic key provider in + // lieu of the context object from the key fetch. + // + // This is useful to certain script providers when building cross-language inheritence chains. + // + STDMETHOD(OverrideContextObject)( + THIS_ + _In_ IModelObject* newContextObject + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugHostEvaluator2 +DECLARE_INTERFACE_(IDebugHostEvaluator2, IDebugHostEvaluator) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostEvaluator: + + STDMETHOD(EvaluateExpression)( + THIS_ + _In_ IDebugHostContext* context, + _In_ PCWSTR expression, + _In_opt_ IModelObject* bindingContext, + _COM_Errorptr_ IModelObject** result, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + STDMETHOD(EvaluateExtendedExpression)( + THIS_ + _In_ IDebugHostContext* context, + _In_ PCWSTR expression, + _In_opt_ IModelObject* bindingContext, + _COM_Errorptr_ IModelObject** result, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + //************************************************* + // IDebugHostEvaluator2: + + // AssignTo(): + // + // For a caller which has a model based reference to a *language* value, evaluate + // (assignmentReference = assignmentValue) and return the result of the assignment + // according to the underlying language semantics. + // + STDMETHOD(AssignTo)( + THIS_ + _In_ IModelObject* assignmentReference, + _In_ IModelObject* assignmentValue, + _COM_Errorptr_ IModelObject** assignmentResult, + _COM_Outptr_opt_result_maybenull_ IKeyStore** assignmentMetadata + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugHostEvaluator3 +DECLARE_INTERFACE_(IDebugHostEvaluator3, IDebugHostEvaluator2) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostEvaluator: + + STDMETHOD(EvaluateExpression)( + THIS_ + _In_ IDebugHostContext* context, + _In_ PCWSTR expression, + _In_opt_ IModelObject* bindingContext, + _COM_Errorptr_ IModelObject** result, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + STDMETHOD(EvaluateExtendedExpression)( + THIS_ + _In_ IDebugHostContext* context, + _In_ PCWSTR expression, + _In_opt_ IModelObject* bindingContext, + _COM_Errorptr_ IModelObject** result, + _COM_Outptr_opt_result_maybenull_ IKeyStore** metadata + ) PURE; + + //************************************************* + // IDebugHostEvaluator2: + + STDMETHOD(AssignTo)( + THIS_ + _In_ IModelObject* assignmentReference, + _In_ IModelObject* assignmentValue, + _COM_Errorptr_ IModelObject** assignmentResult, + _COM_Outptr_opt_result_maybenull_ IKeyStore** assignmentMetadata + ) PURE; + + //************************************************* + // IDebugHostEvaluator3: + + // Compare(): + // + // For a caller which wants to compare two model based objects for equality + // linguistically, check if the two objects are equal. Handles pointers and + // pointer coercion equality if necessary. + STDMETHOD(Compare)( + THIS_ + _In_ IModelObject *pLeft, + _In_ IModelObject *pRight, + _COM_Outptr_ IModelObject **ppResult + ) PURE; +}; + +// IDebugHostExtensibility: +// +// An interface which allows the callers to extend capabilities of the host based on the data model. +// This interface and all its methods are optional for the host to implement. +// +#undef INTERFACE +#define INTERFACE IDebugHostExtensibility +DECLARE_INTERFACE_(IDebugHostExtensibility, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostExtensibility: + + // CreateFunctionAlias(): + // + // For a function that the script wants to make a "quick alias" for, allow the host to create + // such an alias. The meaning of such an alias is host specific. It may, for instance, mean + // that the alias name is available as a root function in the host's expression evaluator. It + // may mean that calling the function can be done through "!alias" at a command line. + // + STDMETHOD(CreateFunctionAlias)( + THIS_ + _In_ PCWSTR aliasName, + _In_ IModelObject *functionObject + ) PURE; + + // DestroyFunctionAlias(): + // + // Destroys a previously created function alias. + // + STDMETHOD(DestroyFunctionAlias)( + THIS_ + _In_ PCWSTR aliasName + ) PURE; + +}; + +// IDebugHostExtensibility2 +// +// An interface which allows the callers to extend capabilities of the host based on the data model. +// This interface and all its methods are optional for the host to implement. +// +#undef INTERFACE +#define INTERFACE IDebugHostExtensibility2 +DECLARE_INTERFACE_(IDebugHostExtensibility2, IDebugHostExtensibility) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostExtensibility: + + // CreateFunctionAlias(): + // + STDMETHOD(CreateFunctionAlias)( + THIS_ + _In_ PCWSTR aliasName, + _In_ IModelObject *functionObject + ) PURE; + + // DestroyFunctionAlias(): + // + STDMETHOD(DestroyFunctionAlias)( + THIS_ + _In_ PCWSTR aliasName + ) PURE; + + + //************************************************* + // IDebugHostExtensibility2: + + // CreateFunctionAliasWithMetadata(): + // + // Same as CreateFunctionAlias but allows passing metadata information about the function. + // + STDMETHOD(CreateFunctionAliasWithMetadata)( + THIS_ + _In_ PCWSTR aliasName, + _In_ IModelObject *functionObject, + _In_opt_ IKeyStore* metadata + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugHostExtensibility3 +DECLARE_INTERFACE_(IDebugHostExtensibility3, IDebugHostExtensibility2) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostExtensibility: + + // CreateFunctionAlias(): + // + STDMETHOD(CreateFunctionAlias)( + THIS_ + _In_ PCWSTR aliasName, + _In_ IModelObject *functionObject + ) PURE; + + // DestroyFunctionAlias(): + // + STDMETHOD(DestroyFunctionAlias)( + THIS_ + _In_ PCWSTR aliasName + ) PURE; + + + //************************************************* + // IDebugHostExtensibility2: + + // CreateFunctionAliasWithMetadata(): + // + STDMETHOD(CreateFunctionAliasWithMetadata)( + THIS_ + _In_ PCWSTR aliasName, + _In_ IModelObject *functionObject, + _In_opt_ IKeyStore* metadata + ) PURE; + + //************************************************* + // IDebugHostExtensibility3: + + // ExtendHostContext(): + // + // For hosts which support placing arbitrary POD data inside a host context, this method extends the + // notion of a host context with a specific size of POD data. The data stored inside a host context must + // be plain intrinsic data: it cannot be a COM interface; it cannot be anything which requires destruction; + // it should be as small as possible. + // + // This method will return a unique identifier which can be used to set and retrieve such data on any + // host context object. Unless it is explicitly added via IDebugHostContextExtensibility, no host context + // will contain such data. + // + STDMETHOD(ExtendHostContext)( + THIS_ + _In_ ULONG blobSize, + _In_ REFGUID identifier, + _Out_ ULONG *blobId + ) PURE; + + // QueryHostContextExtension(): + // + // This looks up a context extension and its information by the identifier GUID. + // + STDMETHOD(QueryHostContextExtension)( + THIS_ + _In_ REFGUID identifier, + _Out_ ULONG *blobId, + _Out_ ULONG *blobSize + ) PURE; + + // ReleaseHostContextExtension(): + // + // Releases the reservation of a host context blob as acquired from ExtendHostContext. + // + STDMETHOD(ReleaseHostContextExtension)( + THIS_ + _In_ ULONG blobId + ) PURE; +}; + +// enum ScriptDebugState: +// +// Defines the current debugging state of a script +// +enum ScriptDebugState +{ + // ScriptDebugNoDebugger: indicates that debugging is not active on the script + ScriptDebugNoDebugger, + + // ScriptDebugNotExecuting: indicates that no code within the script is actively executing + ScriptDebugNotExecuting, + + // ScriptDebugExecuting: indicates that the script is executing code + ScriptDebugExecuting, + + // ScriptDebugBreak: the script status is that it is broken into the script debugger + ScriptDebugBreak +}; + +// enum ScriptDebugEventFilter: +// +// Defines the set of debug events / exceptions which the script debugger can (potentially) auto-break +// on +// +enum ScriptDebugEventFilter +{ + // ScriptDebugEventFilterEntry: Indicates that a break on *EVERY ENTRY* into the script from outside should break into the debugger + ScriptDebugEventFilterEntry, + + // ScriptDebugEventFilterException: Indicates that any first chance exception should immediately break into the debugger + ScriptDebugEventFilterException, + + // ScriptDebugEventFilterUnhandledException: Indicates that unhandled exceptions should immediately break into the debugger + ScriptDebugEventFilterUnhandledException, + + // ScriptDebugEventFilterAbort: Indicates that an abort (core debugger BREAK/STOP this action) should break into the script + // debugger rather than aborting the script execution + ScriptDebugEventFilterAbort +}; + +// enum ScriptDebugEvent: +// +// Defines what debug event occurred. +// +enum ScriptDebugEvent +{ + // ScriptDebugBreakpoint: indicates that a breakpoint was hit + ScriptDebugBreakpoint, + + // ScriptDebugStep: indicates that a step event occurred + ScriptDebugStep, + + // ScriptDebugException: indicates that an exception occurred. The ScriptDebugEventInformation will fill in .u.ExceptionInformation + // and the outpassed object is a data model conversion of the actual exception + ScriptDebugException, + + // ScriptDebugAsyncBreak: indicates that a break into the script occurred (either because of something like break on entry, break on abort, + // etc...) + ScriptDebugAsyncBreak + +}; + +// enum ScriptExecutionKind +// +// Defines the kind of execution to do. +// +enum ScriptExecutionKind +{ + // ScriptExecutionNormal: indicates that you would like the script to execute normally + ScriptExecutionNormal, + + // ScriptExecutionStepIn: indicates that you want to perform a "step in" operation + ScriptExecutionStepIn, + + // ScriptExecutionStepOut: indicates that you want to perform a "step out" operation + ScriptExecutionStepOut, + + // ScriptExecutionStepOver: indicates that you want to perform a "step over" operation + ScriptExecutionStepOver, + +}; + +// ScriptDebugPosition: +// +// Defines a position within a script. +// +struct ScriptDebugPosition +{ + ULONG Line; // A zero value indicates that the line cannot be determined + ULONG Column; // A zero value indicates that the column cannot be determined +}; + +// ScriptDebugEventInformation: +// +// A simple struct containing information about a particular debug event. +// +struct ScriptDebugEventInformation +{ + ScriptDebugEvent DebugEvent; + ScriptDebugPosition EventPosition; // The line/column of script at which the debug event occurred (0 values : cannot determine) + ScriptDebugPosition EventSpanEnd; // The ending line/column of script at which the debug event occurred (0 values : cannot determine) + + union + { + struct + { + bool IsUncaught; + } ExceptionInformation; + + struct + { + ULONG64 BreakpointId; + } BreakpointInformation; + + } u; +}; + +// IDataModelScriptDebugClient: +// +// Any client utilizing the debugger for a particular script must implement this interface. The interface +// will be called back to process any debug events. Such callback will happen synchronously during the execution +// of any script content. +// +#undef INTERFACE +#define INTERFACE IDataModelScriptDebugClient +DECLARE_INTERFACE_(IDataModelScriptDebugClient, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptDebugClient + + // + // The debug client gets notified about any debug event which occurs. The resume kind is normally + // a ScriptExecutionNormal but it can be changed by returning a different resume kind. + // + STDMETHOD(NotifyDebugEvent)( + _In_ ScriptDebugEventInformation *pEventInfo, + _In_ IDataModelScript *pScript, + _In_opt_ IModelObject *pEventDataObject, + _Inout_ ScriptExecutionKind *resumeEventKind + ) PURE; + +}; + +// IDataModelScriptDebugVariableSetEnumerator: +// +// Enumerates a set of variables (arguments, parameters, locals, etc...) +// +#undef INTERFACE +#define INTERFACE IDataModelScriptDebugVariableSetEnumerator +DECLARE_INTERFACE_(IDataModelScriptDebugVariableSetEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptDebugVariableSetEnumerator: + + // Reset(): + // + // Resets the enumerator to the first variable in the set. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Gets the next element in the set. In certain cases, the variable "name" may be null + // on output (e.g.: for arguments which are not named) + // + STDMETHOD(GetNext)( + THIS_ + _Out_ BSTR *variableName, + _COM_Outptr_opt_ IModelObject **variableValue, + _COM_Outptr_opt_result_maybenull_ IKeyStore **variableMetadata + ) PURE; + +}; + +// IDataModelScriptDebugStackFrame: +// +// Represents a stack frame from the script provider. +// +#undef INTERFACE +#define INTERFACE IDataModelScriptDebugStackFrame +DECLARE_INTERFACE_(IDataModelScriptDebugStackFrame, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptDebugStackFrame: + + // GetName(): + // + // Gets the display name (e.g.: function name) of the frame. + // + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR *name + ) PURE; + + // GetPosition(): + // + // Gets the position of the execution within this frame in the script. This may **ONLY** be called when the script is within a break + // represented by this stack. + // + // The position of the execution within this frame is always returned. If the particular debugger is capable of returning the span + // of the "execution position" within the script, an ending position can be returned in positionSpanEnd. If the debugger + // is not capable of this, the line and column values in the span end (if requested) should be set to zero. + // + // The line text can optionally be passed back by debug engines which support it. There is no requirement that a script + // debugger be able to return more than line and column position. If this is not supported, nullptr can be returned. + // + STDMETHOD(GetPosition)( + THIS_ + _Out_ ScriptDebugPosition *position, + _Out_opt_ ScriptDebugPosition *positionSpanEnd, + _Out_opt_ BSTR *lineText + ) PURE; + + // IsTransitionPoint(): + // + // Returns whether this stack frame is a transition point into another script. It is perfectly legal to E_NOTIMPL this + // particular method. + // + STDMETHOD(IsTransitionPoint)( + THIS_ + _Out_ bool *isTransitionPoint + ) PURE; + + // GetTransition(): + // + // Returns the script that this frame was transitioned into from. Note that a particular script debugger may not be able to + // detect discontinuity outside its own context. + // + // If the script debugger can detect whether the call came from the script passed, isTransitionContiguous should be set to true. + // If it is not (or cannot detect), isTransitionContiguous should be set to false. + // + // It is perfectly legal to E_NOTIMPL this particular method. + // + STDMETHOD(GetTransition)( + THIS_ + _COM_Outptr_ IDataModelScript **transitionScript, + _Out_ bool *isTransitionContiguous + ) PURE; + + // Evaluate(): + // + // Evaluates an expression in the context of this stack frame and returns the result as a model object. + // + STDMETHOD(Evaluate)( + THIS_ + _In_ PCWSTR pwszExpression, + _COM_Outptr_ IModelObject **ppResult + ) PURE; + + // EnumerateLocals(): + // + // Enumerates locals in the frame. + // + STDMETHOD(EnumerateLocals)( + THIS_ + _COM_Outptr_ IDataModelScriptDebugVariableSetEnumerator **variablesEnum + ) PURE; + + // EnumerateArguments(): + // + // Enumerates arguments to the function in this frame. + // + STDMETHOD(EnumerateArguments)( + THIS_ + _COM_Outptr_ IDataModelScriptDebugVariableSetEnumerator **variablesEnum + ) PURE; +}; + +// IDataModelScriptDebugStack: +// +// Represents a stack from the script provider. +// +#undef INTERFACE +#define INTERFACE IDataModelScriptDebugStack +DECLARE_INTERFACE_(IDataModelScriptDebugStack, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptDebugStack: + + // GetFrameCount(): + // + // Gets the number of stack frames within this stack. + // + STDMETHOD_(ULONG64, GetFrameCount)( + THIS + ) PURE; + + // GetStackFrame(): + // + // Gets a stack frame within the stack. + // + STDMETHOD(GetStackFrame)( + THIS_ + _In_ ULONG64 frameNumber, + _COM_Outptr_ IDataModelScriptDebugStackFrame **stackFrame + ) PURE; +}; + +// IDataModelScriptDebugBreakpoint: +// +// Represents a breakpoint within the script. +// +#undef INTERFACE +#define INTERFACE IDataModelScriptDebugBreakpoint +DECLARE_INTERFACE_(IDataModelScriptDebugBreakpoint, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptDebugBreakpoint: + + // GetId(): + // + // Gets a unique identifier for this breakpoint **WITHIN THE CONTEXT** of this script. The breakpoint ID may + // be unique beyond that depending on the provider but the only requirement is that it be unique within + // its script. + // + STDMETHOD_(ULONG64, GetId)( + THIS + ) PURE; + + // IsEnabled(): + // + // Indicates whether or not the breakpoint is enabled. + // + STDMETHOD_(bool, IsEnabled)( + THIS + ) PURE; + + // Enable(): + // + // Enables the breakpoint. + // + STDMETHOD_(void, Enable)( + THIS + ) PURE; + + // Disable(): + // + // Disables the breakpoint. + // + STDMETHOD_(void, Disable)( + THIS + ) PURE; + + // Remove(): + // + // Removes the breakpoint from its containing list. + // + STDMETHOD_(void, Remove)( + THIS + ) PURE; + + // GetPosition(): + // + // Gets the position of the breakpoint within the script. + // + STDMETHOD(GetPosition)( + _Out_ ScriptDebugPosition *position, + _Out_opt_ ScriptDebugPosition *positionSpanEnd, + _Out_opt_ BSTR *lineText + ) PURE; + +}; + +// IDataModelScriptDebugBreakpointEnumerator: +// +// An enumeration of a set of breakpoints. +// +#undef INTERFACE +#define INTERFACE IDataModelScriptDebugBreakpointEnumerator +DECLARE_INTERFACE_(IDataModelScriptDebugBreakpointEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptDebugBreakpointEnumerator: + + // Reset(): + // + // Resets the enumerator + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Gets the next breakpoint. + // + STDMETHOD(GetNext)( + THIS_ + _COM_Outptr_ IDataModelScriptDebugBreakpoint **breakpoint + ) PURE; + +}; + +// IDataModelScriptDebug: +// +// An optional interface on scripts (objects which implement IDataModelScript). If this interface is supported, +// the script provider has a debug engine capable of some limited form of 'script debugging'. This may include +// stepping, setting breakpoints, inspecting data, etc... +// +#undef INTERFACE +#define INTERFACE IDataModelScriptDebug +DECLARE_INTERFACE_(IDataModelScriptDebug, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptDebug: + + // GetDebugState(): + // + // + STDMETHOD_(ScriptDebugState, GetDebugState)( + THIS + ) PURE; + + // GetCurrentPosition(): + // + // Gets the current position of the script. This may **ONLY** be called when the script is broken into the debugger. + // A call otherwise will fail. + // + // The current position of the script is always returned. If the particular debugger is capable of returning the span + // of the "current position" within the script, an ending position can be returned in positionSpanEnd. If the debugger + // is not capable of this, the line and column values in the span end (if requested) should be set to zero. + // + // The line text can optionally be passed back by debug engines which support it. There is no requirement that a script + // debugger be able to return more than line and column position. If this is not supported, nullptr can be returned. + // + STDMETHOD(GetCurrentPosition)( + THIS_ + _Out_ ScriptDebugPosition *currentPosition, + _Out_opt_ ScriptDebugPosition *positionSpanEnd, + _Out_opt_ BSTR *lineText + ) PURE; + + // GetStack(): + // + // Gets the current stack at the break position. This may **ONLY** be called when the script is broken into the debugger. + // + STDMETHOD(GetStack)( + THIS_ + _COM_Outptr_ IDataModelScriptDebugStack **stack + ) PURE; + + // SetBreakpoint(): + // + // Sets a breakpoint within the script. + // + STDMETHOD(SetBreakpoint)( + THIS_ + _In_ ULONG linePosition, + _In_ ULONG columnPosition, + _COM_Outptr_ IDataModelScriptDebugBreakpoint **breakpoint + ) PURE; + + // FindBreakpointById(): + // + // Finds a breakpoint by its identifier. + // + STDMETHOD(FindBreakpointById)( + THIS_ + _In_ ULONG64 breakpointId, + _COM_Outptr_ IDataModelScriptDebugBreakpoint **breakpoint + ) PURE; + + // EnumerateBreakpoints(): + // + // Enumerates all breakpoints on the script in question. + // + STDMETHOD(EnumerateBreakpoints)( + THIS_ + _COM_Outptr_ IDataModelScriptDebugBreakpointEnumerator **breakpointEnum + ) PURE; + + // GetEventFilter(): + // + // Gets the event filter (break on event) status for a particular event. + // + STDMETHOD(GetEventFilter)( + THIS_ + _In_ ScriptDebugEventFilter eventFilter, + _Out_ bool *isBreakEnabled + ) PURE; + + // SetEventFilter(): + // + // Sets the current event filter (break on event) status for a particular event. Some script engines may return + // E_NOTIMPL for particular events to indicate that the particular debug engine does not support the particular + // event. + // + STDMETHOD(SetEventFilter)( + THIS_ + _In_ ScriptDebugEventFilter eventFilter, + _In_ bool isBreakEnabled + ) PURE; + + // StartDebugging(): + // + // Called by a client which wishes to start debugging a script. The act of starting debugging does not actively + // cause any execution break or stepping. It merely makes the script debuggable and provides a set of interfaces + // for the client to communicate with the script debugger. + // + STDMETHOD(StartDebugging)( + THIS_ + _In_ IDataModelScriptDebugClient *debugClient + ) PURE; + + // StopDebugging(): + // + // Called by a client which wishes to stop debugging a script. This may be called from a break status or + // a running status of the script. It immediately ceases all debugging activity and resets the state back to before + // StartDebugging was called. + // + STDMETHOD(StopDebugging)( + THIS_ + _In_ IDataModelScriptDebugClient *debugClient + ) PURE; + +}; + +// IDataModelScriptDebug2: +// +// An optional interface on scripts (objects which implement IDataModelScript). If this interface is supported, +// the script provider has a debug engine capable of some limited form of 'script debugging'. This may include +// stepping, setting breakpoints, inspecting data, etc... +// +#undef INTERFACE +#define INTERFACE IDataModelScriptDebug2 +DECLARE_INTERFACE_(IDataModelScriptDebug2, IDataModelScriptDebug) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDataModelScriptDebug: + + STDMETHOD_(ScriptDebugState, GetDebugState)( + THIS + ) PURE; + + STDMETHOD(GetCurrentPosition)( + THIS_ + _Out_ ScriptDebugPosition *currentPosition, + _Out_opt_ ScriptDebugPosition *positionSpanEnd, + _Out_opt_ BSTR *lineText + ) PURE; + + STDMETHOD(GetStack)( + THIS_ + _COM_Outptr_ IDataModelScriptDebugStack **stack + ) PURE; + + STDMETHOD(SetBreakpoint)( + THIS_ + _In_ ULONG linePosition, + _In_ ULONG columnPosition, + _COM_Outptr_ IDataModelScriptDebugBreakpoint **breakpoint + ) PURE; + + STDMETHOD(FindBreakpointById)( + THIS_ + _In_ ULONG64 breakpointId, + _COM_Outptr_ IDataModelScriptDebugBreakpoint **breakpoint + ) PURE; + + STDMETHOD(EnumerateBreakpoints)( + THIS_ + _COM_Outptr_ IDataModelScriptDebugBreakpointEnumerator **breakpointEnum + ) PURE; + + STDMETHOD(GetEventFilter)( + THIS_ + _In_ ScriptDebugEventFilter eventFilter, + _Out_ bool *isBreakEnabled + ) PURE; + + STDMETHOD(SetEventFilter)( + THIS_ + _In_ ScriptDebugEventFilter eventFilter, + _In_ bool isBreakEnabled + ) PURE; + + STDMETHOD(StartDebugging)( + THIS_ + _In_ IDataModelScriptDebugClient *debugClient + ) PURE; + + STDMETHOD(StopDebugging)( + THIS_ + _In_ IDataModelScriptDebugClient *debugClient + ) PURE; + + //************************************************* + // IDataModelScriptDebug2 + + // SetBreakpointAtFunction(): + // + // Sets a breakpoint on the function given by the supplied name. + // + STDMETHOD(SetBreakpointAtFunction)( + THIS_ + _In_ PCWSTR functionName, + _COM_Outptr_ IDataModelScriptDebugBreakpoint **breakpoint + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IComparableConcept +DECLARE_INTERFACE_(IComparableConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IComparableConcept: + + // CompareObjects(): + // + // Compares this object to another (of arbitrary type). If the comparison + // cannot be performed, E_NOT_SET should be returned. + // + // The return value passed in comparison result has the following meaning: + // + // < 0 : contextObject < otherObject + // 0 : contextObject == otherObject + // > 0 : contextObject > otherObject + // + STDMETHOD(CompareObjects)( + THIS_ + _In_ IModelObject *contextObject, + _In_ IModelObject *otherObject, + _Out_ int *comparisonResult + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IEquatableConcept +DECLARE_INTERFACE_(IEquatableConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IEquatableConcept: + + // AreObjectsEqual(): + // + // Compares this object to another (of arbitrary type) for equality. If + // the comparison cannot be performed, E_NOT_SET should be returned. + // + STDMETHOD(AreObjectsEqual)( + THIS_ + _In_ IModelObject *contextObject, + _In_ IModelObject *otherObject, + _Out_ bool *isEqual + ) PURE; +}; + +// IActionEnumerator: +// +// An enumerator for actions on an object. +// +#undef INTERFACE +#define INTERFACE IActionEnumerator +DECLARE_INTERFACE_(IActionEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IActionEnumerator: + + // Reset(): + // + // Resets the enumerator to the first action. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Gets the next action on the object. + // + STDMETHOD(GetNext)( + THIS_ + _Out_ BSTR *keyName, + _Out_ BSTR *actionName, + _Out_ BSTR *actionDescription, + _Out_ bool *actionIsDefault, + _COM_Outptr_opt_ IModelObject **actionMethod, + _COM_Outptr_opt_ IKeyStore **metadta + ) PURE; +}; + +// IActionableConcept: +// +// A concept mechanism for implementing actions. Clients may choose to either implement this interface or place +// appropriate metadata on effective void(void) methods. +// +// While this concept may be implemented, clients wishing to enumerate actions should not directly query for this +// concept. Rather, they should query for IActionQueryConcept +// +#undef INTERFACE +#define INTERFACE IActionableConcept +DECLARE_INTERFACE_(IActionableConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IActionableConcept: + + // EnumerateActions(): + // + // Returns an enumerator to all actions on this object. + // + STDMETHOD(EnumerateActions)( + THIS_ + _In_ IModelObject *contextObject, + _COM_Outptr_ IActionEnumerator **actionEnumerator + ) PURE; +}; + +// IActionQueryConcept: +// +// A concept which is automatically implemented by the data model for any object which has (or can have) actions +// on it. The enumerator returned from this concept will aggregate all actions implemented via metadata keys on +// methods and those implemented via direct support of IActionableConcept anywhere on the object. +// +// Clients should *NEVER* implement this concept -- only query for it. +// +#undef INTERFACE +#define INTERFACE IActionQueryConcept +DECLARE_INTERFACE_(IActionQueryConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IActionQueryConcept: + + // EnumerateActions(): + // + // Returns an enumerator to all actions on this object. + // + STDMETHOD(EnumerateActions)( + THIS_ + _In_ IModelObject *contextObject, + _COM_Outptr_ IActionEnumerator **actionEnumerator + ) PURE; +}; + +// IConstructableConcept: +// +// A concept that a data model can support in order to allow for construction of the object. +// Such a data model *MUST* support IDataModelConcept and *MUST* be registered under a name +// that is returned from IDataModelConcept::GetName. +// +#undef INTERFACE +#define INTERFACE IConstructableConcept +DECLARE_INTERFACE_(IConstructableConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IConstructableConcept: + // + + // CreateInstance(): + // + // Calls to create an instance of this object/model. + // + STDMETHOD(CreateInstance)( + THIS_ + _In_ ULONG64 argCount, + _In_reads_(argCount) IModelObject **ppArguments, + _COM_Errorptr_ IModelObject **ppInstance + ) PURE; +}; + +// IDeconstructableConcept: +// +// A concept that a data model can support in order to decompose an object into a set +// of arguments which can be passed to the constructable concept in order to create a new +// identical instance of the object (short any extensions which were manually attached) +// +// An object which is indexable via a custom "value type" can support the deconstructable +// concept on object in order to allow a debugger engine to "serialize" enough information to +// get the indexer back in a subsequent invocation. +// +// Any object which supports the deconstructable concept should have a parent model attached +// which supports the constructable concept. That model should be registered under the name +// returned from the GetConstructableModelName method on this interface. The inverse is not necessarily true. +// +#undef INTERFACE +#define INTERFACE IDeconstructableConcept +DECLARE_INTERFACE_(IDeconstructableConcept, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDeconstructableConcept: + // + + // GetConstructableModelName(): + // + // Returns the name of a registered data model which supports the constructable concept. Invocation + // of the CreateInstance method on that constructable concept passing the arguments returned from + // GetConstructorArguments here should "recreate" the an equivalent object (short any extensions + // which were made after the fact). + // + STDMETHOD(GetConstructableModelName)( + THIS_ + _In_ IModelObject* contextObject, + _Out_ BSTR* constructableModelName + ) PURE; + + // GetConstructorArgumentCount(): + // + // Returns the number of constructor arguments that the object decomposes to. + // + STDMETHOD(GetConstructorArgumentCount)( + THIS_ + _In_ IModelObject* contextObject, + _Out_ ULONG64* argCount + ) PURE; + + // GetConstructorArguments(): + // + // Returns a set of arguments which, if passed back to the constructable concept, will + // create an equivalent instance of the object (short any extensions which have been + // attached after the fact). + // + STDMETHOD(GetConstructorArguments)( + THIS_ + _In_ IModelObject* contextObject, + _In_ ULONG64 argCount, + _Out_writes_(argCount) IModelObject** constructorArguments + ) PURE; +}; + + +//************************************************************************** +// Optional Introspection Interfaces: +// + +// StorageKind: +// +// Defines where a local is stored. +// +enum StorageKind +{ + StorageUnknown, + StorageRegister, + StorageRegisterRelative, + StorageRegisterRelativeIndirect +}; + +#undef INTERFACE +#define INTERFACE IDebugHostFunctionLocalStorage +DECLARE_INTERFACE_(IDebugHostFunctionLocalStorage, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostFunctionLocalStorage: + + // GetValidRange(): + // + // Gets a set of (module) relative addresses for which this storage is valid and + // whether it is guaranteed within said range. + // + STDMETHOD(GetValidRange)( + THIS_ + _Out_ ULONG64 *start, + _Out_ ULONG64 *end, + _Out_ bool *guaranteed + ) PURE; + + // GetStorageKind(): + // + // Gets the storage kind of the local. + // + STDMETHOD(GetStorageKind)( + THIS_ + _Out_ StorageKind *kind + ) PURE; + + // GetRegister(): + // + // Gets the register that the local is stored within (or what register it is relative to). + // The value returned here is architecture specific. + // + STDMETHOD(GetRegister)( + THIS_ + _Out_ ULONG *registerId + ) PURE; + + // GetOffset(): + // + // Gets the offset from the register that the local is stored. + // + STDMETHOD(GetOffset)( + THIS_ + _Out_ LONG64 *offset + ) PURE; + +}; + +#undef INTERFACE +#define INTERFACE IDebugHostFunctionLocalStorage2 +DECLARE_INTERFACE_(IDebugHostFunctionLocalStorage2, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostFunctionLocalStorage2: + + + // GetExtendedRegisterAddressInfo(): + // + // Gets the register address information that the local is stored within (or what register it is relative to). + // The values returned here are architecture specific. + // + STDMETHOD(GetExtendedRegisterAddressInfo)( + THIS_ + _Out_ ULONG *registerId, + _Out_ LONG64 *offset, + _Out_ bool *isIndirectAccess, + _Out_ LONG *indirectOffset + ) PURE; +}; + +// +// IDebugHostFunctionLocalStorageEnumerator +// +#undef INTERFACE +#define INTERFACE IDebugHostFunctionLocalStorageEnumerator +DECLARE_INTERFACE_(IDebugHostFunctionLocalStorageEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostFunctionLocalStorageEnumerator: + + // Reset(): + // + // Resets the enumerator. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Gets information about the next local variable within the function. Note + // that this is "scopeless". Two locals may be enumerated with the same name + // because they are in different scopes. + // + STDMETHOD(GetNext)( + THIS_ + _Out_ IDebugHostFunctionLocalStorage** storage + ) PURE; +}; + +// LocalKind: +// +// Defines the kind of local that a particular name is (whether an argument to the function or a local +// variable) +// +enum LocalKind +{ + LocalArgument, + LocalVariable +}; + +// +// IDebugHostFunctionLocalDetails: +// +// A host optional interface which provides details about a function local +// variable. +// +#undef INTERFACE +#define INTERFACE IDebugHostFunctionLocalDetails +DECLARE_INTERFACE_(IDebugHostFunctionLocalDetails, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostFunctionLocalDetails: + + // GetName(): + // + // Gets the name of the local + // + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* name + ) PURE; + + // GetType(): + // + // Gets the type of the local + // + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** localType + ) PURE; + + // EnumerateStorage(): + // + // Enumerates the storage for the local (what registers or memory locations + // it may be in within the function) + // + STDMETHOD(EnumerateStorage)( + THIS_ + _Out_ IDebugHostFunctionLocalStorageEnumerator** storageEnum + ) PURE; + + // GetLocalKind(): + // + // Gets the kind of local that has been enumerated. + // + STDMETHOD(GetLocalKind)( + THIS_ + _Out_ LocalKind* kind + ) PURE; + + // GetArgumentPosition(): + // + // Gets the position of a function argument within the argument list. This method will fail on any + // local which does not return LocalArgument from GetLocalKind(). + // + STDMETHOD(GetArgumentPosition)( + THIS_ + _Out_ ULONG64* argPosition + ) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDebugHostFunctionLocalDetails2 +DECLARE_INTERFACE_(IDebugHostFunctionLocalDetails2, IDebugHostFunctionLocalDetails) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostFunctionLocalDetails: + + STDMETHOD(GetName)( + THIS_ + _Out_ BSTR* name + ) PURE; + + STDMETHOD(GetType)( + THIS_ + _Out_ IDebugHostType** localType + ) PURE; + + STDMETHOD(EnumerateStorage)( + THIS_ + _Out_ IDebugHostFunctionLocalStorageEnumerator** storageEnum + ) PURE; + + STDMETHOD(GetLocalKind)( + THIS_ + _Out_ LocalKind* kind + ) PURE; + + STDMETHOD(GetArgumentPosition)( + THIS_ + _Out_ ULONG64* argPosition + ) PURE; + + //************************************************* + // IDebugHostFunctionLocalDetails2: + + // IsInlineScope(): + // + // Is this local within an inlined scope. This will always return false unless + // IDebugHostFunctionLocalDetailsEnumerator::EnumerateLocalsDetailsEx is called with + // 'enumerateInlinedLocals' set to true. + // + STDMETHOD_(bool, IsInlineScope)( + THIS + ) PURE; + + // GetInlinedFunction(): + // + // If IsInlineScope() returns true, this will return a symbol for the inlined function that the + // local is contained within. + // + // This would be one of the symbols returned from a call to EnumerateInlineFunctionsByRVA within + // IDebugHostFunctionLocalDetailsEnumerator. + // + // Note that if the local is not within an inline scope, this will return E_FAIL. + // + STDMETHOD(GetInlinedFunction)( + THIS_ + _COM_Outptr_ IDebugHostSymbol** inlineFunction + ) PURE; +}; + +// +// IDebugHostFunctionLocalDetailsEnumerator: +// +// A host optional interface which enumerates locals & arguments of a function and +// provides details about their backing storage and types. +// +#undef INTERFACE +#define INTERFACE IDebugHostFunctionLocalDetailsEnumerator +DECLARE_INTERFACE_(IDebugHostFunctionLocalDetailsEnumerator, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostFunctionLocalsDetailEnumerator: + + // Reset(): + // + // Resets the enumerator. + // + STDMETHOD(Reset)( + THIS + ) PURE; + + // GetNext(): + // + // Gets information about the next local variable within the function. Note + // that this is "scopeless". Two locals may be enumerated with the same name + // because they are in different scopes. + // + STDMETHOD(GetNext)( + THIS_ + _Out_ IDebugHostFunctionLocalDetails** localDetails + ) PURE; +}; + +// +// IDebugHostFunctionIntrospection: +// +// A host optional interface which provides detailed information about a function. +// +#undef INTERFACE +#define INTERFACE IDebugHostFunctionIntrospection +DECLARE_INTERFACE_(IDebugHostFunctionIntrospection, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostFunctionIntrospection: + + // EnumerateLocalsDetails(): + // + // Enumerates a set of information about all locals and arguments within a function. This will *NOT* + // enumerate any locals and arguments of functions inlined within the given function. EnumerateLocalsDetailsEx + // on IDebugHostFunctionIntrospection2 can be used for such. + // + STDMETHOD(EnumerateLocalsDetails)( + THIS_ + _Out_ IDebugHostFunctionLocalDetailsEnumerator** localsEnum + ) PURE; + + // EnumerateInlineFunctionsByRVA(): + // + // Enumerates the functions inlined at a particular RVA. The functions will be + // enumerated from the innermost containing inline function to the outermost. Thus, + // the following: + // + // void Function1() {...}; + // void Function2() + // { + // ... + // Function1(); // inlined + // ... + // } + // void Function3() + // { + // ... + // Function2(); // inlined + // ... + // } + // + // will result in this method emuerating Function1, followed by Function2, when called + // on an inlined RVA for Function1, and will enumerate only Function2 when called on an + // RVA inlined for Function2. + // + STDMETHOD(EnumerateInlineFunctionsByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbolEnumerator** inlinesEnum + ) PURE; + + // FindCodeRangeForRVA(): + // + // Returns the sub-range of instructions that contains a given address. For single- + // block functions, this will simply be the start and end of the function body. For + // multi-block functions, this will be the start and end of the block containing the + // specified RVA. + // + STDMETHOD(FindContainingCodeRangeByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ Location* rangeStart, + _Out_ Location* rangeEnd + ) PURE; + + // FindSourceInformationByRVA(): + // + // Returns the source file name and line number for a particular RVA. + // + STDMETHOD(FindSourceLocationByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ BSTR* sourceFile, + _Out_ ULONG64* sourceLine + ) PURE; +}; + +// +// IDebugHostFunctionIntrospection2: +// +// A host optional interface which provides detailed information about a function. +// +#undef INTERFACE +#define INTERFACE IDebugHostFunctionIntrospection2 +DECLARE_INTERFACE_(IDebugHostFunctionIntrospection2, IDebugHostFunctionIntrospection) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostFunctionIntrospection: + + STDMETHOD(EnumerateLocalsDetails)( + THIS_ + _Out_ IDebugHostFunctionLocalDetailsEnumerator** localsEnum + ) PURE; + + STDMETHOD(EnumerateInlineFunctionsByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbolEnumerator** inlinesEnum + ) PURE; + + STDMETHOD(FindContainingCodeRangeByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ Location* rangeStart, + _Out_ Location* rangeEnd + ) PURE; + + STDMETHOD(FindSourceLocationByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ BSTR* sourceFile, + _Out_ ULONG64* sourceLine + ) PURE; + + //************************************************* + // IDebugHostFunctionIntrospection2: + // + + // EnumerateLocalsDetailsEx(): + // + // Enumerates a set of information about all locals and arguments within a function. This can also optionally + // enumerate all locals and arguments of functions inlined within the given function if 'enumerateInlinedLocals' + // is true. If such argument is false, this method behaves as EnumerateLocalsDetails. + // + STDMETHOD(EnumerateLocalsDetailsEx)( + THIS_ + _In_ bool enumerateInlinedLocals, + _Out_ IDebugHostFunctionLocalDetailsEnumerator** localsEnum + ) PURE; +}; + +// +// IDebugHostFunctionIntrospection3: +// +// A host optional interface which provides detailed information about a function. +// +#undef INTERFACE +#define INTERFACE IDebugHostFunctionIntrospection3 +DECLARE_INTERFACE_(IDebugHostFunctionIntrospection3, IDebugHostFunctionIntrospection2) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IDebugHostFunctionIntrospection: + + STDMETHOD(EnumerateLocalsDetails)( + THIS_ + _Out_ IDebugHostFunctionLocalDetailsEnumerator** localsEnum + ) PURE; + + STDMETHOD(EnumerateInlineFunctionsByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ IDebugHostSymbolEnumerator** inlinesEnum + ) PURE; + + STDMETHOD(FindContainingCodeRangeByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ Location* rangeStart, + _Out_ Location* rangeEnd + ) PURE; + + STDMETHOD(FindSourceLocationByRVA)( + THIS_ + _In_ ULONG64 rva, + _Out_ BSTR* sourceFile, + _Out_ ULONG64* sourceLine + ) PURE; + + //************************************************* + // IDebugHostFunctionIntrospection2: + // + + STDMETHOD(EnumerateLocalsDetailsEx)( + THIS_ + _In_ bool enumerateInlinedLocals, + _Out_ IDebugHostFunctionLocalDetailsEnumerator** localsEnum + ) PURE; + + //************************************************* + // IDebugHostFunctionIntrospection3: + // + + // IsNoReturnFunction(): + // + // Indicates whether or not the function is a non-returning function. + // + STDMETHOD(IsNoReturnFunction)( + THIS_ + _Out_ bool *pIsNoReturnFunction + ) PURE; + +}; + +// +// IFilteredNamespacePropertyToken: +// +// Provides extension to data model functionality for manipulating namespaces +// + +#undef INTERFACE +#define INTERFACE IFilteredNamespacePropertyToken +DECLARE_INTERFACE_(IFilteredNamespacePropertyToken, IUnknown) +{ + //************************************************* + // IUnknown: + + STDMETHOD(QueryInterface)( + THIS_ + _In_ REFIID iid, + _COM_Outptr_ PVOID* iface + ) PURE; + + STDMETHOD_(ULONG, AddRef)( + THIS + ) PURE; + + STDMETHOD_(ULONG, Release)( + THIS + ) PURE; + + //************************************************* + // IFilteredNamespacePropertyToken: + + // RemoveFilter(): + // + // Removes (irreversable) the filter from the namespace property + // + STDMETHOD(RemoveFilter)( + THIS_ + ) PURE; + + // GetFilter(): + // + // Gets the filter (if any) + // + STDMETHOD(GetFilter)( + THIS_ + _COM_Outptr_result_maybenull_ IModelMethod **ppFilter + ) PURE; + + // TrySetFilter(): + // + // Sets a new filter if the previous filter is nullptr + // + STDMETHOD(TrySetFilter)( + THIS_ + _In_ IModelMethod *pFilter + ) PURE; +}; + + +//************************************************************************** +// Bridge Interfaces to Target Composition Interfaces: +// +// These are optional. A debug host which only supports the data model layer need not support any of these +// interfaces. A debug host which supports both the data model layer and target composition layer of extensibility +// supports these to bridge between the two layers. +// + +// {3D06878F-97AB-4c5b-955E-FA647D3B137C} +DEFINE_GUID(IID_IDebugHostContextTargetComposition, 0x3d06878f, 0x97ab, 0x4c5b, 0x95, 0x5e, 0xfa, 0x64, 0x7d, 0x3b, 0x13, 0x7c); + +// {3C4B6ADD-80E1-4c2b-AFE1-9A1132586DD0} +DEFINE_GUID(IID_IDebugHostSymbolsTargetComposition, 0x3c4b6add, 0x80e1, 0x4c2b, 0xaf, 0xe1, 0x9a, 0x11, 0x32, 0x58, 0x6d, 0xd0); + +struct DECLSPEC_UUID("3C4B6ADD-80E1-4c2b-AFE1-9A1132586DD0") IDebugHostSymbolsTargetComposition; +struct DECLSPEC_UUID("3D06878F-97AB-4c5b-955E-FA647D3B137C") IDebugHostContextTargetComposition; + +// +// IDebugHostContextTargetComposition +// +// An interface which bridges the extensibility of the upper edge interfaces (the data model) with those of the +// lower edge (target composition) for a particular host context. +// +// For a debug host which supports both layers, this interface can be QI'd off any host context. +// +#undef INTERFACE +#define INTERFACE IDebugHostContextTargetComposition +DECLARE_INTERFACE_(IDebugHostContextTargetComposition, IUnknown) +{ + //************************************************* + // IDebugHostContextTargetComposition + // + + // GetServiceManager(): + // + // For this particular host context, get the service manager container that is associated with the context. + // If the context refers to something "debugger centric" above the level of a specific debug target, this + // method will return an E_FAIL. + // + IFACEMETHOD(GetServiceManager)( + THIS_ + _COM_Outptr_ IDebugServiceManager **ppServiceManager + ) PURE; + + // GetServiceProcess(): + // + // For this particular host context, get the process that is associated with the context. If the context + // refers to something above the level of a specific process, this method will return an E_FAIL. + // + IFACEMETHOD(GetServiceProcess)( + THIS_ + _COM_Outptr_ ISvcProcess **ppProcess + ) PURE; + + // GetServiceThread(): + // + // For this particular host context, get the thread that is associated with the context. If the context + // refers to something above the level of a specific thread (most contexts do), this method will return + // an E_FAIL. + // + IFACEMETHOD(GetServiceThread)( + THIS_ + _COM_Outptr_ ISvcThread **ppThread + ) PURE; + + // @TODO: There are a number more specific things which should be bridged between these two worlds + +}; + +// +// IDebugHostSymbolsTargetComposition: +// +// An interfaces which bridges the extensibility of the upper edge interfaces (the data model) with those of the +// lower edge (target composition) for symbols. +// +#undef INTERFACE +#define INTERFACE IDebugHostSymbolsTargetComposition +DECLARE_INTERFACE_(IDebugHostSymbolsTargetComposition, IUnknown) +{ + //************************************************* + // IDebugHostSymbolsTargetComposition: + // + + // GetTypeForServiceType(): + // + // From an ISvcSymbolType which is a symbol associated with a given ISvcModule, return the IDebugHostType + // representing such at the data model level. + // + IFACEMETHOD(GetTypeForServiceType)( + THIS_ + _In_ IDebugServiceManager *pServiceManager, + _In_ ISvcModule *pModule, + _In_ ISvcSymbolType *pType, + _COM_Outptr_ IDebugHostType **ppHostType + ) PURE; +}; + +//************************************************************************** +// Public APIs: +// + +// +// CreateDataModelManager(): +// +// The initial call a host performs to create and initialize the data model. +// +STDAPI CreateDataModelManager( + _In_ IDebugHost* debugHost, + _COM_Outptr_ IDataModelManager** manager + ); + +//************************************************* +// C++ Specific API Helpers + +#if defined(__cplusplus) +}; // extern "C" + +namespace Debugger +{ +namespace DataModel +{ + +// +// ConvertException(): +// +// Trap and convert all exceptions coming out of a functor to an appropriate HRESULT +// +template +HRESULT ConvertException(const FN& fn) +{ + HRESULT hr; + try + { + hr = fn(); + } + catch(const std::bad_alloc&) + { + hr = E_OUTOFMEMORY; + } + catch(...) + { + hr = E_FAIL; + } + + return hr; +} + +#ifdef _WRL_CLIENT_H_ + +// +// BindProperty: +// +// A binder which converts two instance methods on a class to a read/write property accessor. The class must be IUnknown derived. +// The returned binder will hold reference on the class object. +// +// Usage: BindProperty(this, &MyClass::GetMyProperty, &MyClass::SetMyProperty) +// +template +Microsoft::WRL::ComPtr +BindProperty( + T* classObject, + HRESULT (T::* getMethod)(PCWSTR key, IModelObject* contextObject, IModelObject** value), + HRESULT (T::* setMethod)(PCWSTR key, IModelObject* contextObject, IModelObject** value) + ) +{ + // + // PropertyAccessor: + // + + struct PropertyAccessor : Microsoft::WRL::RuntimeClass, IModelPropertyAccessor> + { + PropertyAccessor( + T* classObject, + HRESULT(T::* getMethod)(PCWSTR, IModelObject*, IModelObject**), + HRESULT(T::* setMethod)(PCWSTR, IModelObject*, IModelObject**) + ) : + _classObject(classObject), + _getMethod(getMethod), + _setMethod(setMethod) + { + } + + //************************************************* + // IModelPropertyAccessor: + + STDMETHOD(GetValue)( + _In_ PCWSTR key, + _In_opt_ IModelObject* contextObject, + _COM_Outptr_opt_ IModelObject** value + ) + { + return ConvertException( [&](){ + return (_classObject->*_getMethod)(key, contextObject, value); + }); + } + + STDMETHOD(SetValue)( + _In_ PCWSTR key, + _In_opt_ IModelObject* contextObject, + _In_ IModelObject* value + ) + { + return ConvertException( [&](){ + if (_setMethod != nullptr) + { + return (_classObject->*_setMethod)(key, contextObject, value); + } + + // + // It's a read-only property. + // + return E_NOTIMPL; + }); + } + + Microsoft::WRL::ComPtr _classObject; + HRESULT(T::* _getMethod)(PCWSTR, IModelObject*, IModelObject**); + HRESULT(T::* _setMethod)(PCWSTR, IModelObject*, IModelObject**); + + }; + + Microsoft::WRL::ComPtr spPropertyAccessor = Microsoft::WRL::Make(classObject, getMethod, setMethod); + return spPropertyAccessor.Detach(); +} + +// +// BindProperty: +// +// A binder which converts two lambdas to a read/write property accessor. The lambdas must hold reference on outer objects they +// reference through a by value capture. +// +// Usage: BindProperty(get_lambda, set_lambda) +// +template +Microsoft::WRL::ComPtr +BindProperty( + const TGet& getFunctor, + const TSet& setFunctor + ) +{ + // + // PropertyAccessor: + // + + struct PropertyAccessor : Microsoft::WRL::RuntimeClass, IModelPropertyAccessor> + { + PropertyAccessor( + const TGet& getFunctor, + const TSet& setFunctor + ) : + _getFunctor(getFunctor), + _setFunctor(setFunctor) + { + } + + //************************************************* + // IModelPropertyAccessor: + + STDMETHOD(GetValue)( + _In_ PCWSTR key, + _In_opt_ IModelObject* contextObject, + _COM_Outptr_opt_ IModelObject** value + ) + { + return ConvertException( [&](){ + return _getFunctor(key, contextObject, value); + }); + } + + STDMETHOD(SetValue)( + _In_ PCWSTR key, + _In_opt_ IModelObject* contextObject, + _In_ IModelObject* value + ) + { + return ConvertException( [&](){ + return _setFunctor(key, contextObject, value); + }); + } + + TGet _getFunctor; + TSet _setFunctor; + }; + + Microsoft::WRL::ComPtr spPropertyAccessor = Microsoft::WRL::Make(getFunctor, setFunctor); + return spPropertyAccessor; +} + +// +// BindReadOnlyProperty: +// +// A binder which converts one instance method on a class to a read-only property accessor. The class must be IUnknown derived. +// The returned binder will hold reference on the class object. +// +template +Microsoft::WRL::ComPtr +BindReadOnlyProperty( + T* classObject, + HRESULT (T::* getMethod)(PCWSTR key, IModelObject* contextObject, IModelObject** value) + ) +{ + return BindProperty(classObject, getMethod, nullptr); +} + +// +// BindReadOnlyProperty: +// +// A binder which converts one lambda to a read-only property accessor. The lambda must hold reference on outer objects through +// a by value capture. +// +// Usage: BindProperty(get_lambda) +// +template +Microsoft::WRL::ComPtr +BindReadOnlyProperty( + const TGet& getFunctor + ) +{ + // + // PropertyAccessor: + // + + struct PropertyAccessor : Microsoft::WRL::RuntimeClass, IModelPropertyAccessor> + { + PropertyAccessor( + const TGet& getFunctor + ) : + _getFunctor(getFunctor) + { + } + + //************************************************* + // IModelPropertyAccessor: + + STDMETHOD(GetValue)( + _In_ PCWSTR key, + _In_opt_ IModelObject* contextObject, + _COM_Outptr_opt_ IModelObject** value + ) + { + return ConvertException( [&](){ + return _getFunctor(key, contextObject, value); + }); + } + + STDMETHOD(SetValue)( + _In_ PCWSTR /*key*/, + _In_opt_ IModelObject* /*contextObject*/, + _In_ IModelObject* /*value*/ + ) + { + return E_NOTIMPL; + } + + TGet _getFunctor; + }; + + Microsoft::WRL::ComPtr spPropertyAccessor = Microsoft::WRL::Make(getFunctor); + return spPropertyAccessor; +} + +#endif // _WRL_CLIENT_H_ + +} // namespace: DataModel + +} // namespace: Debugger + +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_WER) */ +#pragma endregion + +#endif // __DBGMODEL_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgProp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgProp.h new file mode 100644 index 0000000000000000000000000000000000000000..1b756711f23282785d7e1d59eaff5c1ccb9d2b91 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgProp.h @@ -0,0 +1,1494 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dbgprop_h__ +#define __dbgprop_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDebugProperty_FWD_DEFINED__ +#define __IDebugProperty_FWD_DEFINED__ +typedef interface IDebugProperty IDebugProperty; + +#endif /* __IDebugProperty_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugPropertyInfo_FWD_DEFINED__ +#define __IEnumDebugPropertyInfo_FWD_DEFINED__ +typedef interface IEnumDebugPropertyInfo IEnumDebugPropertyInfo; + +#endif /* __IEnumDebugPropertyInfo_FWD_DEFINED__ */ + + +#ifndef __IDebugExtendedProperty_FWD_DEFINED__ +#define __IDebugExtendedProperty_FWD_DEFINED__ +typedef interface IDebugExtendedProperty IDebugExtendedProperty; + +#endif /* __IDebugExtendedProperty_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugExtendedPropertyInfo_FWD_DEFINED__ +#define __IEnumDebugExtendedPropertyInfo_FWD_DEFINED__ +typedef interface IEnumDebugExtendedPropertyInfo IEnumDebugExtendedPropertyInfo; + +#endif /* __IEnumDebugExtendedPropertyInfo_FWD_DEFINED__ */ + + +#ifndef __IPerPropertyBrowsing2_FWD_DEFINED__ +#define __IPerPropertyBrowsing2_FWD_DEFINED__ +typedef interface IPerPropertyBrowsing2 IPerPropertyBrowsing2; + +#endif /* __IPerPropertyBrowsing2_FWD_DEFINED__ */ + + +#ifndef __IDebugPropertyEnumType_All_FWD_DEFINED__ +#define __IDebugPropertyEnumType_All_FWD_DEFINED__ +typedef interface IDebugPropertyEnumType_All IDebugPropertyEnumType_All; + +#endif /* __IDebugPropertyEnumType_All_FWD_DEFINED__ */ + + +#ifndef __IDebugPropertyEnumType_Locals_FWD_DEFINED__ +#define __IDebugPropertyEnumType_Locals_FWD_DEFINED__ +typedef interface IDebugPropertyEnumType_Locals IDebugPropertyEnumType_Locals; + +#endif /* __IDebugPropertyEnumType_Locals_FWD_DEFINED__ */ + + +#ifndef __IDebugPropertyEnumType_Arguments_FWD_DEFINED__ +#define __IDebugPropertyEnumType_Arguments_FWD_DEFINED__ +typedef interface IDebugPropertyEnumType_Arguments IDebugPropertyEnumType_Arguments; + +#endif /* __IDebugPropertyEnumType_Arguments_FWD_DEFINED__ */ + + +#ifndef __IDebugPropertyEnumType_LocalsPlusArgs_FWD_DEFINED__ +#define __IDebugPropertyEnumType_LocalsPlusArgs_FWD_DEFINED__ +typedef interface IDebugPropertyEnumType_LocalsPlusArgs IDebugPropertyEnumType_LocalsPlusArgs; + +#endif /* __IDebugPropertyEnumType_LocalsPlusArgs_FWD_DEFINED__ */ + + +#ifndef __IDebugPropertyEnumType_Registers_FWD_DEFINED__ +#define __IDebugPropertyEnumType_Registers_FWD_DEFINED__ +typedef interface IDebugPropertyEnumType_Registers IDebugPropertyEnumType_Registers; + +#endif /* __IDebugPropertyEnumType_Registers_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dbgprop_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + +// GUIDs for IDebugProperty::GetExtendedInfo +extern GUID guidDocument; +extern GUID guidCodeContext; + +enum __MIDL___MIDL_itf_dbgprop_0000_0000_0001 + { + DBGPROP_ATTRIB_NO_ATTRIB = 0, + DBGPROP_ATTRIB_VALUE_IS_INVALID = 0x8, + DBGPROP_ATTRIB_VALUE_IS_EXPANDABLE = 0x10, + DBGPROP_ATTRIB_VALUE_IS_FAKE = 0x20, + DBGPROP_ATTRIB_VALUE_IS_METHOD = 0x100, + DBGPROP_ATTRIB_VALUE_IS_EVENT = 0x200, + DBGPROP_ATTRIB_VALUE_IS_RAW_STRING = 0x400, + DBGPROP_ATTRIB_VALUE_READONLY = 0x800, + DBGPROP_ATTRIB_ACCESS_PUBLIC = 0x1000, + DBGPROP_ATTRIB_ACCESS_PRIVATE = 0x2000, + DBGPROP_ATTRIB_ACCESS_PROTECTED = 0x4000, + DBGPROP_ATTRIB_ACCESS_FINAL = 0x8000, + DBGPROP_ATTRIB_STORAGE_GLOBAL = 0x10000, + DBGPROP_ATTRIB_STORAGE_STATIC = 0x20000, + DBGPROP_ATTRIB_STORAGE_FIELD = 0x40000, + DBGPROP_ATTRIB_STORAGE_VIRTUAL = 0x80000, + DBGPROP_ATTRIB_TYPE_IS_CONSTANT = 0x100000, + DBGPROP_ATTRIB_TYPE_IS_SYNCHRONIZED = 0x200000, + DBGPROP_ATTRIB_TYPE_IS_VOLATILE = 0x400000, + DBGPROP_ATTRIB_HAS_EXTENDED_ATTRIBS = 0x800000, + DBGPROP_ATTRIB_FRAME_INTRYBLOCK = 0x1000000, + DBGPROP_ATTRIB_FRAME_INCATCHBLOCK = 0x2000000, + DBGPROP_ATTRIB_FRAME_INFINALLYBLOCK = 0x4000000, + DBGPROP_ATTRIB_VALUE_IS_RETURN_VALUE = 0x8000000, + DBGPROP_ATTRIB_VALUE_PENDING_MUTATION = 0x10000000 + } ; +typedef DWORD DBGPROP_ATTRIB_FLAGS; + + +enum __MIDL___MIDL_itf_dbgprop_0000_0000_0002 + { + DBGPROP_INFO_NAME = 0x1, + DBGPROP_INFO_TYPE = 0x2, + DBGPROP_INFO_VALUE = 0x4, + DBGPROP_INFO_FULLNAME = 0x20, + DBGPROP_INFO_ATTRIBUTES = 0x8, + DBGPROP_INFO_DEBUGPROP = 0x10, + DBGPROP_INFO_BEAUTIFY = 0x2000000, + DBGPROP_INFO_CALLTOSTRING = 0x4000000, + DBGPROP_INFO_AUTOEXPAND = 0x8000000 + } ; +typedef DWORD DBGPROP_INFO_FLAGS; + +#define DBGPROP_INFO_STANDARD ( ( ( ( DBGPROP_INFO_NAME | DBGPROP_INFO_TYPE ) | DBGPROP_INFO_VALUE ) | DBGPROP_INFO_ATTRIBUTES ) ) + +#define DBGPROP_INFO_ALL ( ( ( ( ( ( DBGPROP_INFO_NAME | DBGPROP_INFO_TYPE ) | DBGPROP_INFO_VALUE ) | DBGPROP_INFO_FULLNAME ) | DBGPROP_INFO_ATTRIBUTES ) | DBGPROP_INFO_DEBUGPROP ) ) + +// DO NOT USE OBJECT_ATTRIB_FLAGS or PROP_INFO_FLAGS, USE DBGPROP_ATTRIB_FLAGS and DBGPROP_INFO_FLAGS instead +typedef +enum tagOBJECT_ATTRIB_FLAG + { + OBJECT_ATTRIB_NO_ATTRIB = 0, + OBJECT_ATTRIB_NO_NAME = 0x1, + OBJECT_ATTRIB_NO_TYPE = 0x2, + OBJECT_ATTRIB_NO_VALUE = 0x4, + OBJECT_ATTRIB_VALUE_IS_INVALID = 0x8, + OBJECT_ATTRIB_VALUE_IS_OBJECT = 0x10, + OBJECT_ATTRIB_VALUE_IS_ENUM = 0x20, + OBJECT_ATTRIB_VALUE_IS_CUSTOM = 0x40, + OBJECT_ATTRIB_OBJECT_IS_EXPANDABLE = 0x70, + OBJECT_ATTRIB_VALUE_HAS_CODE = 0x80, + OBJECT_ATTRIB_TYPE_IS_OBJECT = 0x100, + OBJECT_ATTRIB_TYPE_HAS_CODE = 0x200, + OBJECT_ATTRIB_TYPE_IS_EXPANDABLE = 0x100, + OBJECT_ATTRIB_SLOT_IS_CATEGORY = 0x400, + OBJECT_ATTRIB_VALUE_READONLY = 0x800, + OBJECT_ATTRIB_ACCESS_PUBLIC = 0x1000, + OBJECT_ATTRIB_ACCESS_PRIVATE = 0x2000, + OBJECT_ATTRIB_ACCESS_PROTECTED = 0x4000, + OBJECT_ATTRIB_ACCESS_FINAL = 0x8000, + OBJECT_ATTRIB_STORAGE_GLOBAL = 0x10000, + OBJECT_ATTRIB_STORAGE_STATIC = 0x20000, + OBJECT_ATTRIB_STORAGE_FIELD = 0x40000, + OBJECT_ATTRIB_STORAGE_VIRTUAL = 0x80000, + OBJECT_ATTRIB_TYPE_IS_CONSTANT = 0x100000, + OBJECT_ATTRIB_TYPE_IS_SYNCHRONIZED = 0x200000, + OBJECT_ATTRIB_TYPE_IS_VOLATILE = 0x400000, + OBJECT_ATTRIB_HAS_EXTENDED_ATTRIBS = 0x800000, + OBJECT_ATTRIB_IS_CLASS = 0x1000000, + OBJECT_ATTRIB_IS_FUNCTION = 0x2000000, + OBJECT_ATTRIB_IS_VARIABLE = 0x4000000, + OBJECT_ATTRIB_IS_PROPERTY = 0x8000000, + OBJECT_ATTRIB_IS_MACRO = 0x10000000, + OBJECT_ATTRIB_IS_TYPE = 0x20000000, + OBJECT_ATTRIB_IS_INHERITED = 0x40000000, + OBJECT_ATTRIB_IS_INTERFACE = 0x80000000 + } OBJECT_ATTRIB_FLAGS; + +typedef +enum tagPROP_INFO_FLAGS + { + PROP_INFO_NAME = 0x1, + PROP_INFO_TYPE = 0x2, + PROP_INFO_VALUE = 0x4, + PROP_INFO_FULLNAME = 0x20, + PROP_INFO_ATTRIBUTES = 0x8, + PROP_INFO_DEBUGPROP = 0x10, + PROP_INFO_AUTOEXPAND = 0x8000000 + } PROP_INFO_FLAGS; + +#define PROP_INFO_STANDARD ( ( ( ( PROP_INFO_NAME | PROP_INFO_TYPE ) | PROP_INFO_VALUE ) | PROP_INFO_ATTRIBUTES ) ) + +#define PROP_INFO_ALL ( ( ( ( ( ( PROP_INFO_NAME | PROP_INFO_TYPE ) | PROP_INFO_VALUE ) | PROP_INFO_FULLNAME ) | PROP_INFO_ATTRIBUTES ) | PROP_INFO_DEBUGPROP ) ) + +typedef struct tagDebugPropertyInfo + { + DWORD m_dwValidFields; + BSTR m_bstrName; + BSTR m_bstrType; + BSTR m_bstrValue; + BSTR m_bstrFullName; + DWORD m_dwAttrib; + IDebugProperty *m_pDebugProp; + } DebugPropertyInfo; + +typedef +enum tagEX_PROP_INFO_FLAGS + { + EX_PROP_INFO_ID = 0x100, + EX_PROP_INFO_NTYPE = 0x200, + EX_PROP_INFO_NVALUE = 0x400, + EX_PROP_INFO_LOCKBYTES = 0x800, + EX_PROP_INFO_DEBUGEXTPROP = 0x1000 + } EX_PROP_INFO_FLAGS; + +typedef struct tagExtendedDebugPropertyInfo + { + DWORD dwValidFields; + LPOLESTR pszName; + LPOLESTR pszType; + LPOLESTR pszValue; + LPOLESTR pszFullName; + DWORD dwAttrib; + IDebugProperty *pDebugProp; + DWORD nDISPID; + DWORD nType; + VARIANT varValue; + ILockBytes *plbValue; + IDebugExtendedProperty *pDebugExtProp; + } ExtendedDebugPropertyInfo; + + + +extern RPC_IF_HANDLE __MIDL_itf_dbgprop_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dbgprop_0000_0000_v0_0_s_ifspec; + +#ifndef __IDebugProperty_INTERFACE_DEFINED__ +#define __IDebugProperty_INTERFACE_DEFINED__ + +/* interface IDebugProperty */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C50-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugProperty : public IUnknown + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetPropertyInfo( + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [out] */ DebugPropertyInfo *pPropertyInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExtendedInfo( + /* [in] */ ULONG cInfos, + /* [size_is][in] */ __RPC__in_ecount_full(cInfos) GUID *rgguidExtendedInfo, + /* [size_is][out] */ __RPC__out_ecount_full(cInfos) VARIANT *rgvar) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetValueAsString( + /* [in] */ __RPC__in LPCOLESTR pszValue, + /* [in] */ UINT nRadix) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumMembers( + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [in] */ __RPC__in REFIID refiid, + /* [out] */ __RPC__deref_out_opt IEnumDebugPropertyInfo **ppepi) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParent( + /* [out] */ __RPC__deref_out_opt IDebugProperty **ppDebugProp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugProperty * This); + + DECLSPEC_XFGVIRT(IDebugProperty, GetPropertyInfo) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetPropertyInfo )( + IDebugProperty * This, + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [out] */ DebugPropertyInfo *pPropertyInfo); + + DECLSPEC_XFGVIRT(IDebugProperty, GetExtendedInfo) + HRESULT ( STDMETHODCALLTYPE *GetExtendedInfo )( + __RPC__in IDebugProperty * This, + /* [in] */ ULONG cInfos, + /* [size_is][in] */ __RPC__in_ecount_full(cInfos) GUID *rgguidExtendedInfo, + /* [size_is][out] */ __RPC__out_ecount_full(cInfos) VARIANT *rgvar); + + DECLSPEC_XFGVIRT(IDebugProperty, SetValueAsString) + HRESULT ( STDMETHODCALLTYPE *SetValueAsString )( + __RPC__in IDebugProperty * This, + /* [in] */ __RPC__in LPCOLESTR pszValue, + /* [in] */ UINT nRadix); + + DECLSPEC_XFGVIRT(IDebugProperty, EnumMembers) + HRESULT ( STDMETHODCALLTYPE *EnumMembers )( + __RPC__in IDebugProperty * This, + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [in] */ __RPC__in REFIID refiid, + /* [out] */ __RPC__deref_out_opt IEnumDebugPropertyInfo **ppepi); + + DECLSPEC_XFGVIRT(IDebugProperty, GetParent) + HRESULT ( STDMETHODCALLTYPE *GetParent )( + __RPC__in IDebugProperty * This, + /* [out] */ __RPC__deref_out_opt IDebugProperty **ppDebugProp); + + END_INTERFACE + } IDebugPropertyVtbl; + + interface IDebugProperty + { + CONST_VTBL struct IDebugPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugProperty_GetPropertyInfo(This,dwFieldSpec,nRadix,pPropertyInfo) \ + ( (This)->lpVtbl -> GetPropertyInfo(This,dwFieldSpec,nRadix,pPropertyInfo) ) + +#define IDebugProperty_GetExtendedInfo(This,cInfos,rgguidExtendedInfo,rgvar) \ + ( (This)->lpVtbl -> GetExtendedInfo(This,cInfos,rgguidExtendedInfo,rgvar) ) + +#define IDebugProperty_SetValueAsString(This,pszValue,nRadix) \ + ( (This)->lpVtbl -> SetValueAsString(This,pszValue,nRadix) ) + +#define IDebugProperty_EnumMembers(This,dwFieldSpec,nRadix,refiid,ppepi) \ + ( (This)->lpVtbl -> EnumMembers(This,dwFieldSpec,nRadix,refiid,ppepi) ) + +#define IDebugProperty_GetParent(This,ppDebugProp) \ + ( (This)->lpVtbl -> GetParent(This,ppDebugProp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IDebugProperty_RemoteGetPropertyInfo_Proxy( + __RPC__in IDebugProperty * This, + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [out] */ __RPC__out DWORD *dwValidFields, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrType, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrValue, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrFullName, + /* [out] */ __RPC__out DWORD *pdwAttrib, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IDebugProperty **ppDebugProperty); + + +void __RPC_STUB IDebugProperty_RemoteGetPropertyInfo_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IDebugProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDebugPropertyInfo_INTERFACE_DEFINED__ +#define __IEnumDebugPropertyInfo_INTERFACE_DEFINED__ + +/* interface IEnumDebugPropertyInfo */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumDebugPropertyInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C51-CB0C-11d0-B5C9-00A0244A0E7A") + IEnumDebugPropertyInfo : public IUnknown + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [out] */ DebugPropertyInfo *pi, + /* [out] */ ULONG *pcEltsfetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDebugPropertyInfo **ppepi) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out ULONG *pcelt) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDebugPropertyInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDebugPropertyInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDebugPropertyInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDebugPropertyInfo * This); + + DECLSPEC_XFGVIRT(IEnumDebugPropertyInfo, Next) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumDebugPropertyInfo * This, + /* [in] */ ULONG celt, + /* [out] */ DebugPropertyInfo *pi, + /* [out] */ ULONG *pcEltsfetched); + + DECLSPEC_XFGVIRT(IEnumDebugPropertyInfo, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDebugPropertyInfo * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumDebugPropertyInfo, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDebugPropertyInfo * This); + + DECLSPEC_XFGVIRT(IEnumDebugPropertyInfo, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDebugPropertyInfo * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugPropertyInfo **ppepi); + + DECLSPEC_XFGVIRT(IEnumDebugPropertyInfo, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IEnumDebugPropertyInfo * This, + /* [out] */ __RPC__out ULONG *pcelt); + + END_INTERFACE + } IEnumDebugPropertyInfoVtbl; + + interface IEnumDebugPropertyInfo + { + CONST_VTBL struct IEnumDebugPropertyInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDebugPropertyInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDebugPropertyInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDebugPropertyInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDebugPropertyInfo_Next(This,celt,pi,pcEltsfetched) \ + ( (This)->lpVtbl -> Next(This,celt,pi,pcEltsfetched) ) + +#define IEnumDebugPropertyInfo_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumDebugPropertyInfo_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDebugPropertyInfo_Clone(This,ppepi) \ + ( (This)->lpVtbl -> Clone(This,ppepi) ) + +#define IEnumDebugPropertyInfo_GetCount(This,pcelt) \ + ( (This)->lpVtbl -> GetCount(This,pcelt) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT __stdcall IEnumDebugPropertyInfo_RemoteNext_Proxy( + __RPC__in IEnumDebugPropertyInfo * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][unique][out][in] */ __RPC__inout_ecount_part_opt(celt, *pcEltsfetched) DebugPropertyInfo *pinfo, + /* [out] */ __RPC__out ULONG *pcEltsfetched); + + +void __RPC_STUB IEnumDebugPropertyInfo_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumDebugPropertyInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugExtendedProperty_INTERFACE_DEFINED__ +#define __IDebugExtendedProperty_INTERFACE_DEFINED__ + +/* interface IDebugExtendedProperty */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugExtendedProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C52-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugExtendedProperty : public IDebugProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE GetExtendedPropertyInfo( + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [out] */ __RPC__out ExtendedDebugPropertyInfo *pExtendedPropertyInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumExtendedMembers( + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [out] */ __RPC__deref_out_opt IEnumDebugExtendedPropertyInfo **ppeepi) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugExtendedPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugExtendedProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugExtendedProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugExtendedProperty * This); + + DECLSPEC_XFGVIRT(IDebugProperty, GetPropertyInfo) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetPropertyInfo )( + IDebugExtendedProperty * This, + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [out] */ DebugPropertyInfo *pPropertyInfo); + + DECLSPEC_XFGVIRT(IDebugProperty, GetExtendedInfo) + HRESULT ( STDMETHODCALLTYPE *GetExtendedInfo )( + __RPC__in IDebugExtendedProperty * This, + /* [in] */ ULONG cInfos, + /* [size_is][in] */ __RPC__in_ecount_full(cInfos) GUID *rgguidExtendedInfo, + /* [size_is][out] */ __RPC__out_ecount_full(cInfos) VARIANT *rgvar); + + DECLSPEC_XFGVIRT(IDebugProperty, SetValueAsString) + HRESULT ( STDMETHODCALLTYPE *SetValueAsString )( + __RPC__in IDebugExtendedProperty * This, + /* [in] */ __RPC__in LPCOLESTR pszValue, + /* [in] */ UINT nRadix); + + DECLSPEC_XFGVIRT(IDebugProperty, EnumMembers) + HRESULT ( STDMETHODCALLTYPE *EnumMembers )( + __RPC__in IDebugExtendedProperty * This, + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [in] */ __RPC__in REFIID refiid, + /* [out] */ __RPC__deref_out_opt IEnumDebugPropertyInfo **ppepi); + + DECLSPEC_XFGVIRT(IDebugProperty, GetParent) + HRESULT ( STDMETHODCALLTYPE *GetParent )( + __RPC__in IDebugExtendedProperty * This, + /* [out] */ __RPC__deref_out_opt IDebugProperty **ppDebugProp); + + DECLSPEC_XFGVIRT(IDebugExtendedProperty, GetExtendedPropertyInfo) + HRESULT ( STDMETHODCALLTYPE *GetExtendedPropertyInfo )( + __RPC__in IDebugExtendedProperty * This, + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [out] */ __RPC__out ExtendedDebugPropertyInfo *pExtendedPropertyInfo); + + DECLSPEC_XFGVIRT(IDebugExtendedProperty, EnumExtendedMembers) + HRESULT ( STDMETHODCALLTYPE *EnumExtendedMembers )( + __RPC__in IDebugExtendedProperty * This, + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [out] */ __RPC__deref_out_opt IEnumDebugExtendedPropertyInfo **ppeepi); + + END_INTERFACE + } IDebugExtendedPropertyVtbl; + + interface IDebugExtendedProperty + { + CONST_VTBL struct IDebugExtendedPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugExtendedProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugExtendedProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugExtendedProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugExtendedProperty_GetPropertyInfo(This,dwFieldSpec,nRadix,pPropertyInfo) \ + ( (This)->lpVtbl -> GetPropertyInfo(This,dwFieldSpec,nRadix,pPropertyInfo) ) + +#define IDebugExtendedProperty_GetExtendedInfo(This,cInfos,rgguidExtendedInfo,rgvar) \ + ( (This)->lpVtbl -> GetExtendedInfo(This,cInfos,rgguidExtendedInfo,rgvar) ) + +#define IDebugExtendedProperty_SetValueAsString(This,pszValue,nRadix) \ + ( (This)->lpVtbl -> SetValueAsString(This,pszValue,nRadix) ) + +#define IDebugExtendedProperty_EnumMembers(This,dwFieldSpec,nRadix,refiid,ppepi) \ + ( (This)->lpVtbl -> EnumMembers(This,dwFieldSpec,nRadix,refiid,ppepi) ) + +#define IDebugExtendedProperty_GetParent(This,ppDebugProp) \ + ( (This)->lpVtbl -> GetParent(This,ppDebugProp) ) + + +#define IDebugExtendedProperty_GetExtendedPropertyInfo(This,dwFieldSpec,nRadix,pExtendedPropertyInfo) \ + ( (This)->lpVtbl -> GetExtendedPropertyInfo(This,dwFieldSpec,nRadix,pExtendedPropertyInfo) ) + +#define IDebugExtendedProperty_EnumExtendedMembers(This,dwFieldSpec,nRadix,ppeepi) \ + ( (This)->lpVtbl -> EnumExtendedMembers(This,dwFieldSpec,nRadix,ppeepi) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugExtendedProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDebugExtendedPropertyInfo_INTERFACE_DEFINED__ +#define __IEnumDebugExtendedPropertyInfo_INTERFACE_DEFINED__ + +/* interface IEnumDebugExtendedPropertyInfo */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumDebugExtendedPropertyInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C53-CB0C-11d0-B5C9-00A0244A0E7A") + IEnumDebugExtendedPropertyInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) ExtendedDebugPropertyInfo *rgExtendedPropertyInfo, + /* [out] */ __RPC__out ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDebugExtendedPropertyInfo **pedpe) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out ULONG *pcelt) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDebugExtendedPropertyInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDebugExtendedPropertyInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDebugExtendedPropertyInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDebugExtendedPropertyInfo * This); + + DECLSPEC_XFGVIRT(IEnumDebugExtendedPropertyInfo, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumDebugExtendedPropertyInfo * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) ExtendedDebugPropertyInfo *rgExtendedPropertyInfo, + /* [out] */ __RPC__out ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumDebugExtendedPropertyInfo, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDebugExtendedPropertyInfo * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumDebugExtendedPropertyInfo, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDebugExtendedPropertyInfo * This); + + DECLSPEC_XFGVIRT(IEnumDebugExtendedPropertyInfo, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDebugExtendedPropertyInfo * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugExtendedPropertyInfo **pedpe); + + DECLSPEC_XFGVIRT(IEnumDebugExtendedPropertyInfo, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IEnumDebugExtendedPropertyInfo * This, + /* [out] */ __RPC__out ULONG *pcelt); + + END_INTERFACE + } IEnumDebugExtendedPropertyInfoVtbl; + + interface IEnumDebugExtendedPropertyInfo + { + CONST_VTBL struct IEnumDebugExtendedPropertyInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDebugExtendedPropertyInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDebugExtendedPropertyInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDebugExtendedPropertyInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDebugExtendedPropertyInfo_Next(This,celt,rgExtendedPropertyInfo,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgExtendedPropertyInfo,pceltFetched) ) + +#define IEnumDebugExtendedPropertyInfo_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumDebugExtendedPropertyInfo_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDebugExtendedPropertyInfo_Clone(This,pedpe) \ + ( (This)->lpVtbl -> Clone(This,pedpe) ) + +#define IEnumDebugExtendedPropertyInfo_GetCount(This,pcelt) \ + ( (This)->lpVtbl -> GetCount(This,pcelt) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumDebugExtendedPropertyInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IPerPropertyBrowsing2_INTERFACE_DEFINED__ +#define __IPerPropertyBrowsing2_INTERFACE_DEFINED__ + +/* interface IPerPropertyBrowsing2 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IPerPropertyBrowsing2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C54-CB0C-11d0-B5C9-00A0244A0E7A") + IPerPropertyBrowsing2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDisplayString( + /* [in] */ DISPID dispid, + /* [out] */ __RPC__deref_out_opt BSTR *pBstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE MapPropertyToPage( + /* [in] */ DISPID dispid, + /* [out] */ __RPC__out CLSID *pClsidPropPage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPredefinedStrings( + /* [in] */ DISPID dispid, + /* [out] */ __RPC__out CALPOLESTR *pCaStrings, + /* [out] */ __RPC__out CADWORD *pCaCookies) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPredefinedValue( + /* [in] */ DISPID dispid, + /* [in] */ DWORD dwCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPerPropertyBrowsing2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPerPropertyBrowsing2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPerPropertyBrowsing2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPerPropertyBrowsing2 * This); + + DECLSPEC_XFGVIRT(IPerPropertyBrowsing2, GetDisplayString) + HRESULT ( STDMETHODCALLTYPE *GetDisplayString )( + __RPC__in IPerPropertyBrowsing2 * This, + /* [in] */ DISPID dispid, + /* [out] */ __RPC__deref_out_opt BSTR *pBstr); + + DECLSPEC_XFGVIRT(IPerPropertyBrowsing2, MapPropertyToPage) + HRESULT ( STDMETHODCALLTYPE *MapPropertyToPage )( + __RPC__in IPerPropertyBrowsing2 * This, + /* [in] */ DISPID dispid, + /* [out] */ __RPC__out CLSID *pClsidPropPage); + + DECLSPEC_XFGVIRT(IPerPropertyBrowsing2, GetPredefinedStrings) + HRESULT ( STDMETHODCALLTYPE *GetPredefinedStrings )( + __RPC__in IPerPropertyBrowsing2 * This, + /* [in] */ DISPID dispid, + /* [out] */ __RPC__out CALPOLESTR *pCaStrings, + /* [out] */ __RPC__out CADWORD *pCaCookies); + + DECLSPEC_XFGVIRT(IPerPropertyBrowsing2, SetPredefinedValue) + HRESULT ( STDMETHODCALLTYPE *SetPredefinedValue )( + __RPC__in IPerPropertyBrowsing2 * This, + /* [in] */ DISPID dispid, + /* [in] */ DWORD dwCookie); + + END_INTERFACE + } IPerPropertyBrowsing2Vtbl; + + interface IPerPropertyBrowsing2 + { + CONST_VTBL struct IPerPropertyBrowsing2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPerPropertyBrowsing2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPerPropertyBrowsing2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPerPropertyBrowsing2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPerPropertyBrowsing2_GetDisplayString(This,dispid,pBstr) \ + ( (This)->lpVtbl -> GetDisplayString(This,dispid,pBstr) ) + +#define IPerPropertyBrowsing2_MapPropertyToPage(This,dispid,pClsidPropPage) \ + ( (This)->lpVtbl -> MapPropertyToPage(This,dispid,pClsidPropPage) ) + +#define IPerPropertyBrowsing2_GetPredefinedStrings(This,dispid,pCaStrings,pCaCookies) \ + ( (This)->lpVtbl -> GetPredefinedStrings(This,dispid,pCaStrings,pCaCookies) ) + +#define IPerPropertyBrowsing2_SetPredefinedValue(This,dispid,dwCookie) \ + ( (This)->lpVtbl -> SetPredefinedValue(This,dispid,dwCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPerPropertyBrowsing2_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugPropertyEnumType_All_INTERFACE_DEFINED__ +#define __IDebugPropertyEnumType_All_INTERFACE_DEFINED__ + +/* interface IDebugPropertyEnumType_All */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugPropertyEnumType_All; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C55-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugPropertyEnumType_All : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [out] */ __RPC__deref_out_opt BSTR *__MIDL__IDebugPropertyEnumType_All0000) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugPropertyEnumType_AllVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugPropertyEnumType_All * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugPropertyEnumType_All * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugPropertyEnumType_All * This); + + DECLSPEC_XFGVIRT(IDebugPropertyEnumType_All, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugPropertyEnumType_All * This, + /* [out] */ __RPC__deref_out_opt BSTR *__MIDL__IDebugPropertyEnumType_All0000); + + END_INTERFACE + } IDebugPropertyEnumType_AllVtbl; + + interface IDebugPropertyEnumType_All + { + CONST_VTBL struct IDebugPropertyEnumType_AllVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugPropertyEnumType_All_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugPropertyEnumType_All_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugPropertyEnumType_All_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugPropertyEnumType_All_GetName(This,__MIDL__IDebugPropertyEnumType_All0000) \ + ( (This)->lpVtbl -> GetName(This,__MIDL__IDebugPropertyEnumType_All0000) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugPropertyEnumType_All_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugPropertyEnumType_Locals_INTERFACE_DEFINED__ +#define __IDebugPropertyEnumType_Locals_INTERFACE_DEFINED__ + +/* interface IDebugPropertyEnumType_Locals */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugPropertyEnumType_Locals; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C56-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugPropertyEnumType_Locals : public IDebugPropertyEnumType_All + { + public: + }; + + +#else /* C style interface */ + + typedef struct IDebugPropertyEnumType_LocalsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugPropertyEnumType_Locals * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugPropertyEnumType_Locals * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugPropertyEnumType_Locals * This); + + DECLSPEC_XFGVIRT(IDebugPropertyEnumType_All, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugPropertyEnumType_Locals * This, + /* [out] */ __RPC__deref_out_opt BSTR *__MIDL__IDebugPropertyEnumType_All0000); + + END_INTERFACE + } IDebugPropertyEnumType_LocalsVtbl; + + interface IDebugPropertyEnumType_Locals + { + CONST_VTBL struct IDebugPropertyEnumType_LocalsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugPropertyEnumType_Locals_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugPropertyEnumType_Locals_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugPropertyEnumType_Locals_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugPropertyEnumType_Locals_GetName(This,__MIDL__IDebugPropertyEnumType_All0000) \ + ( (This)->lpVtbl -> GetName(This,__MIDL__IDebugPropertyEnumType_All0000) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugPropertyEnumType_Locals_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugPropertyEnumType_Arguments_INTERFACE_DEFINED__ +#define __IDebugPropertyEnumType_Arguments_INTERFACE_DEFINED__ + +/* interface IDebugPropertyEnumType_Arguments */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugPropertyEnumType_Arguments; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C57-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugPropertyEnumType_Arguments : public IDebugPropertyEnumType_All + { + public: + }; + + +#else /* C style interface */ + + typedef struct IDebugPropertyEnumType_ArgumentsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugPropertyEnumType_Arguments * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugPropertyEnumType_Arguments * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugPropertyEnumType_Arguments * This); + + DECLSPEC_XFGVIRT(IDebugPropertyEnumType_All, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugPropertyEnumType_Arguments * This, + /* [out] */ __RPC__deref_out_opt BSTR *__MIDL__IDebugPropertyEnumType_All0000); + + END_INTERFACE + } IDebugPropertyEnumType_ArgumentsVtbl; + + interface IDebugPropertyEnumType_Arguments + { + CONST_VTBL struct IDebugPropertyEnumType_ArgumentsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugPropertyEnumType_Arguments_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugPropertyEnumType_Arguments_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugPropertyEnumType_Arguments_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugPropertyEnumType_Arguments_GetName(This,__MIDL__IDebugPropertyEnumType_All0000) \ + ( (This)->lpVtbl -> GetName(This,__MIDL__IDebugPropertyEnumType_All0000) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugPropertyEnumType_Arguments_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugPropertyEnumType_LocalsPlusArgs_INTERFACE_DEFINED__ +#define __IDebugPropertyEnumType_LocalsPlusArgs_INTERFACE_DEFINED__ + +/* interface IDebugPropertyEnumType_LocalsPlusArgs */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugPropertyEnumType_LocalsPlusArgs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C58-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugPropertyEnumType_LocalsPlusArgs : public IDebugPropertyEnumType_All + { + public: + }; + + +#else /* C style interface */ + + typedef struct IDebugPropertyEnumType_LocalsPlusArgsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugPropertyEnumType_LocalsPlusArgs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugPropertyEnumType_LocalsPlusArgs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugPropertyEnumType_LocalsPlusArgs * This); + + DECLSPEC_XFGVIRT(IDebugPropertyEnumType_All, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugPropertyEnumType_LocalsPlusArgs * This, + /* [out] */ __RPC__deref_out_opt BSTR *__MIDL__IDebugPropertyEnumType_All0000); + + END_INTERFACE + } IDebugPropertyEnumType_LocalsPlusArgsVtbl; + + interface IDebugPropertyEnumType_LocalsPlusArgs + { + CONST_VTBL struct IDebugPropertyEnumType_LocalsPlusArgsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugPropertyEnumType_LocalsPlusArgs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugPropertyEnumType_LocalsPlusArgs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugPropertyEnumType_LocalsPlusArgs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugPropertyEnumType_LocalsPlusArgs_GetName(This,__MIDL__IDebugPropertyEnumType_All0000) \ + ( (This)->lpVtbl -> GetName(This,__MIDL__IDebugPropertyEnumType_All0000) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugPropertyEnumType_LocalsPlusArgs_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugPropertyEnumType_Registers_INTERFACE_DEFINED__ +#define __IDebugPropertyEnumType_Registers_INTERFACE_DEFINED__ + +/* interface IDebugPropertyEnumType_Registers */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugPropertyEnumType_Registers; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C59-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugPropertyEnumType_Registers : public IDebugPropertyEnumType_All + { + public: + }; + + +#else /* C style interface */ + + typedef struct IDebugPropertyEnumType_RegistersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugPropertyEnumType_Registers * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugPropertyEnumType_Registers * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugPropertyEnumType_Registers * This); + + DECLSPEC_XFGVIRT(IDebugPropertyEnumType_All, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugPropertyEnumType_Registers * This, + /* [out] */ __RPC__deref_out_opt BSTR *__MIDL__IDebugPropertyEnumType_All0000); + + END_INTERFACE + } IDebugPropertyEnumType_RegistersVtbl; + + interface IDebugPropertyEnumType_Registers + { + CONST_VTBL struct IDebugPropertyEnumType_RegistersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugPropertyEnumType_Registers_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugPropertyEnumType_Registers_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugPropertyEnumType_Registers_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugPropertyEnumType_Registers_GetName(This,__MIDL__IDebugPropertyEnumType_All0000) \ + ( (This)->lpVtbl -> GetName(This,__MIDL__IDebugPropertyEnumType_All0000) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugPropertyEnumType_Registers_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dbgprop_0000_0010 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dbgprop_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dbgprop_0000_0010_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* [local] */ HRESULT STDMETHODCALLTYPE IDebugProperty_GetPropertyInfo_Proxy( + IDebugProperty * This, + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [out] */ DebugPropertyInfo *pPropertyInfo); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IDebugProperty_GetPropertyInfo_Stub( + __RPC__in IDebugProperty * This, + /* [in] */ DWORD dwFieldSpec, + /* [in] */ UINT nRadix, + /* [out] */ __RPC__out DWORD *dwValidFields, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrType, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrValue, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrFullName, + /* [out] */ __RPC__out DWORD *pdwAttrib, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IDebugProperty **ppDebugProperty); + +/* [local] */ HRESULT STDMETHODCALLTYPE IEnumDebugPropertyInfo_Next_Proxy( + IEnumDebugPropertyInfo * This, + /* [in] */ ULONG celt, + /* [out] */ DebugPropertyInfo *pi, + /* [out] */ ULONG *pcEltsfetched); + + +/* [call_as] */ HRESULT __stdcall IEnumDebugPropertyInfo_Next_Stub( + __RPC__in IEnumDebugPropertyInfo * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][unique][out][in] */ __RPC__inout_ecount_part_opt(celt, *pcEltsfetched) DebugPropertyInfo *pinfo, + /* [out] */ __RPC__out ULONG *pcEltsfetched); + + + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgProp.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgProp.idl new file mode 100644 index 0000000000000000000000000000000000000000..3a8845f80215cf31c163210fc1692255bad436d6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DbgProp.idl @@ -0,0 +1,502 @@ +// Debug Property + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "ocidl.idl"; +import "oleidl.idl"; + +interface IDebugProperty; +interface IDebugExtendedProperty; +interface IEnumDebugPropertyInfo; +interface IEnumDebugExtendedPropertyInfo; +interface IPerPropertyBrowsing2; + +/* IDebugProperty Intro + * + * The IDebugProperty interface provides a language-neutral way to browse entities such as: + * + * - object properties, methods, and events + * - interfaces + * - local variables + * -·etc. + * + * IDebugProperty is not intended to be a general replacement for ITypeInfo. + * For example, it does not include enough low-level information to construct vtable + * calls or implement IDispatch. + * + * Instead, IDebugProperty is intended to provide human-readable information to + * allow IDE users to browse and modify objects at design + * or run-time. Because of this more limited scope, IDebugProperty is much easier + * to use and to implement than ITypeInfo. + * + * INTERFACE NOTES: + * =============== + * 1) Run-time type vs. declared type + * The type of a DebugProperty can be determined via two methods. When the type + * is obtained via GetPropertyInfo, the type is the *run-time* type. However, + * when the type obtained via a GetMemberEnum on the parent, the type is the + * *declared* type. In other words, object 'A' will give you its run-time + * type, but A's parent will give you A's declared type. + * + * ISSUE: other guids? guidSuperClass, guidMostDerived? + * ISSUE: too many QIs to get IDebugExtendedProp + * ISSUE: out of attrib bits + * ISSUE: specify filters (thru guids?) + */ + +// GUIDs for IDebugProperty::GetExtendedInfo +cpp_quote("// GUIDs for IDebugProperty::GetExtendedInfo") +cpp_quote("extern GUID guidDocument;") +cpp_quote("extern GUID guidCodeContext;") + +enum +{ + // ----------------------------------------------------------------------- + // OBJECT ATTRIBUTES + + DBGPROP_ATTRIB_NO_ATTRIB = 0x00000000, + + // --------------------- + // Characteristics + DBGPROP_ATTRIB_VALUE_IS_INVALID = 0x00000008, // the value in this slot is invalid + DBGPROP_ATTRIB_VALUE_IS_EXPANDABLE =0x00000010, // the object has children + DBGPROP_ATTRIB_VALUE_IS_FAKE = 0x00000020, // the value is fake + DBGPROP_ATTRIB_VALUE_IS_METHOD = 0x00000100, // the value is a method + DBGPROP_ATTRIB_VALUE_IS_EVENT = 0x00000200, // the value is an event + DBGPROP_ATTRIB_VALUE_IS_RAW_STRING = 0x00000400, // the value is a raw string + DBGPROP_ATTRIB_VALUE_READONLY = 0x00000800, // the value is read-only + + // --------------------- + // Attributes about a slot's type + + // --------------------- + // Common attributes + + // field access control + DBGPROP_ATTRIB_ACCESS_PUBLIC = 0x00001000, + DBGPROP_ATTRIB_ACCESS_PRIVATE = 0x00002000, + DBGPROP_ATTRIB_ACCESS_PROTECTED = 0x00004000, + DBGPROP_ATTRIB_ACCESS_FINAL = 0x00008000, + // storage types + DBGPROP_ATTRIB_STORAGE_GLOBAL = 0x00010000, + DBGPROP_ATTRIB_STORAGE_STATIC = 0x00020000, + DBGPROP_ATTRIB_STORAGE_FIELD = 0x00040000, + // type modifiers + DBGPROP_ATTRIB_STORAGE_VIRTUAL = 0x00080000, // this slot is virtual (do we need pure virtual?) + DBGPROP_ATTRIB_TYPE_IS_CONSTANT = 0x00100000, // this slot is a constant value + DBGPROP_ATTRIB_TYPE_IS_SYNCHRONIZED =0x00200000, // this slot is thread synchronized + DBGPROP_ATTRIB_TYPE_IS_VOLATILE = 0x00400000, // this slot is volatile WRT persistent storage + DBGPROP_ATTRIB_HAS_EXTENDED_ATTRIBS =0x00800000, // has attributes above and beyond these predefined bits + // frame attributes + DBGPROP_ATTRIB_FRAME_INTRYBLOCK = 0x01000000, // this frame is in a try block + DBGPROP_ATTRIB_FRAME_INCATCHBLOCK = 0x02000000, // this frame is in a catch block + DBGPROP_ATTRIB_FRAME_INFINALLYBLOCK = 0x04000000, // this frame is in a finally block + + // Return value attributes + DBGPROP_ATTRIB_VALUE_IS_RETURN_VALUE = 0x08000000, // This object is a return value + // Used for Pending mutation pseudo node + DBGPROP_ATTRIB_VALUE_PENDING_MUTATION = 0x10000000, +}; +typedef DWORD DBGPROP_ATTRIB_FLAGS; + +// ----------------------------------------------------------------------- +// DebugPropertyInfo +// Basic info that all IDebugProperty implementations must support + +enum +{ + // Flags used to specify DebugPropertyInfo (and ExtendedDebugPropertyInfo) fields + DBGPROP_INFO_NAME = 0x001, // init the bstrName field + DBGPROP_INFO_TYPE = 0x002, // init the bstrType field + DBGPROP_INFO_VALUE = 0x004, // init the bstrValue field + DBGPROP_INFO_FULLNAME = 0x020, // init the full name field + DBGPROP_INFO_ATTRIBUTES = 0x008, // init the dwAttrib field + DBGPROP_INFO_DEBUGPROP = 0x010, // init the pDebugProp field + + DBGPROP_INFO_BEAUTIFY = 0x2000000, + DBGPROP_INFO_CALLTOSTRING = 0x4000000, + + DBGPROP_INFO_AUTOEXPAND = 0x8000000, // make the Value result auto-expand +}; +typedef DWORD DBGPROP_INFO_FLAGS; + +const DBGPROP_INFO_FLAGS DBGPROP_INFO_STANDARD = DBGPROP_INFO_NAME | DBGPROP_INFO_TYPE | DBGPROP_INFO_VALUE | DBGPROP_INFO_ATTRIBUTES; +const DBGPROP_INFO_FLAGS DBGPROP_INFO_ALL = DBGPROP_INFO_NAME | DBGPROP_INFO_TYPE | DBGPROP_INFO_VALUE | DBGPROP_INFO_FULLNAME | DBGPROP_INFO_ATTRIBUTES | DBGPROP_INFO_DEBUGPROP; + +// DO NOT use OBJECT_ATTRIB_FLAGS or PROP_INFO_FLAGS, USE DBGPROP_ATTRIB_FLAGS and DBGPROP_INFO_FLAGS instead +cpp_quote("// DO NOT USE OBJECT_ATTRIB_FLAGS or PROP_INFO_FLAGS, USE DBGPROP_ATTRIB_FLAGS and DBGPROP_INFO_FLAGS instead") + +typedef enum tagOBJECT_ATTRIB_FLAG +{ + // ----------------------------------------------------------------------- + // OBJECT ATTRIBUTES + // AD1 type was OBJECT_ATTRIB, enums were OBJECTATTRIB_foo, struct was PropertyInfo + // AD2 type is OBJECTATTRIB, enums are OBJECT_ATTRIB_foo,struct is DebugPropertyInfo + // confusing, oh yes indeed, please someone come up with a better solution + + // --------------------- + // Slot Characteristics + OBJECT_ATTRIB_NO_ATTRIB = 0x00000000, + OBJECT_ATTRIB_NO_NAME = 0x00000001, // this slot has no name + OBJECT_ATTRIB_NO_TYPE = 0x00000002, // this slot has no type + OBJECT_ATTRIB_NO_VALUE = 0x00000004, // this slot has no value + OBJECT_ATTRIB_VALUE_IS_INVALID = 0x00000008, // the value in this slot is invalid + OBJECT_ATTRIB_VALUE_IS_OBJECT = 0x00000010, // value is an object that can be expanded into a new object browser + OBJECT_ATTRIB_VALUE_IS_ENUM = 0x00000020, // value has enumerated values that might go into a drop down + OBJECT_ATTRIB_VALUE_IS_CUSTOM = 0x00000040, // value has a custom viewer (use custom view CLSID) + OBJECT_ATTRIB_OBJECT_IS_EXPANDABLE =0x00000070, // the object has children + OBJECT_ATTRIB_VALUE_HAS_CODE = 0x00000080, // the value has associated code + + // --------------------- + // Attributes about a slot's type + OBJECT_ATTRIB_TYPE_IS_OBJECT = 0x00000100, // the type has an object browser + OBJECT_ATTRIB_TYPE_HAS_CODE = 0x00000200, // the type has associated code + OBJECT_ATTRIB_TYPE_IS_EXPANDABLE = 0x00000100, // the type is expandable + OBJECT_ATTRIB_SLOT_IS_CATEGORY = 0x00000400, // indication that this slot is a category + OBJECT_ATTRIB_VALUE_READONLY = 0x00000800, // the value is read-only + + // --------------------- + // Common attributes + + // field access control + OBJECT_ATTRIB_ACCESS_PUBLIC = 0x00001000, + OBJECT_ATTRIB_ACCESS_PRIVATE = 0x00002000, + OBJECT_ATTRIB_ACCESS_PROTECTED = 0x00004000, + OBJECT_ATTRIB_ACCESS_FINAL = 0x00008000, + // storage types + OBJECT_ATTRIB_STORAGE_GLOBAL = 0x00010000, + OBJECT_ATTRIB_STORAGE_STATIC = 0x00020000, + OBJECT_ATTRIB_STORAGE_FIELD = 0x00040000, + // type modifiers + OBJECT_ATTRIB_STORAGE_VIRTUAL = 0x00080000, // this slot is virtual (do we need pure virtual?) + OBJECT_ATTRIB_TYPE_IS_CONSTANT = 0x00100000, // this slot is a constant value + OBJECT_ATTRIB_TYPE_IS_SYNCHRONIZED =0x00200000, // this slot is thread synchronized + OBJECT_ATTRIB_TYPE_IS_VOLATILE = 0x00400000, // this slot is volatile WRT persistent storage + OBJECT_ATTRIB_HAS_EXTENDED_ATTRIBS =0x00800000, // has attributes above and beyond these predefined bits + + // --------------------- + // Kind information (I'm not sure how useful these are) + OBJECT_ATTRIB_IS_CLASS = 0x01000000, + OBJECT_ATTRIB_IS_FUNCTION = 0x02000000, + OBJECT_ATTRIB_IS_VARIABLE = 0x04000000, + OBJECT_ATTRIB_IS_PROPERTY = 0x08000000, + OBJECT_ATTRIB_IS_MACRO = 0x10000000, + OBJECT_ATTRIB_IS_TYPE = 0x20000000, + OBJECT_ATTRIB_IS_INHERITED = 0x40000000, + OBJECT_ATTRIB_IS_INTERFACE = 0x80000000, +} OBJECT_ATTRIB_FLAGS; + +// ----------------------------------------------------------------------- +// DebugPropertyInfo +// Basic info that all IDebugProperty implementations must support + +typedef enum tagPROP_INFO_FLAGS +{ + // Flags used to specify DebugPropertyInfo (and ExtendedDebugPropertyInfo) fields + PROP_INFO_NAME = 0x001, // init the bstrName field + PROP_INFO_TYPE = 0x002, // init the bstrType field + PROP_INFO_VALUE = 0x004, // init the bstrValue field + PROP_INFO_FULLNAME = 0x020, // init the full name field + PROP_INFO_ATTRIBUTES = 0x008, // init the dwAttrib field + PROP_INFO_DEBUGPROP = 0x010, // init the pDebugProp field + + PROP_INFO_AUTOEXPAND = 0x8000000, // make the Value result auto-expand +} PROP_INFO_FLAGS; + +const DWORD PROP_INFO_STANDARD = PROP_INFO_NAME | PROP_INFO_TYPE | PROP_INFO_VALUE | PROP_INFO_ATTRIBUTES; +const DWORD PROP_INFO_ALL = PROP_INFO_NAME | PROP_INFO_TYPE | PROP_INFO_VALUE | PROP_INFO_FULLNAME | PROP_INFO_ATTRIBUTES | PROP_INFO_DEBUGPROP; + +typedef struct tagDebugPropertyInfo +{ + DWORD m_dwValidFields; // which DebugPropertyInfo fields were successfully initialized + BSTR m_bstrName; // property name + BSTR m_bstrType; // property type, as formatted string + BSTR m_bstrValue; // property value, as formatted string + BSTR m_bstrFullName; // property's full name, like pObject->m_fFlag + DWORD m_dwAttrib; // property attributes (ORed OBJECT_ATTRIB_* above) + IDebugProperty* m_pDebugProp; // IDebugProperty object corresponding to this DebugPropertyInfo +} DebugPropertyInfo; + +// ----------------------------------------------------------------------- +// Extended info that some IDebugProperty implementations support + +typedef enum tagEX_PROP_INFO_FLAGS +{ + // Flags used to specify ExtendedDebugPropertyInfo fields + EX_PROP_INFO_ID = 0x0100, // init the nDISPID field + EX_PROP_INFO_NTYPE = 0x0200, // init the nType field + EX_PROP_INFO_NVALUE = 0x0400, // init the varValue field + EX_PROP_INFO_LOCKBYTES = 0x0800, // init the plb field + EX_PROP_INFO_DEBUGEXTPROP = 0x1000, // init the pDebugExtProp field +} EX_PROP_INFO_FLAGS; + +typedef struct tagExtendedDebugPropertyInfo +{ + // members from DebugPropertyInfo + DWORD dwValidFields; // which ExtendedDebugPropertyInfo fields were successfully initialized + LPOLESTR pszName; // property name + LPOLESTR pszType; // property type, as formatted string + LPOLESTR pszValue; // property value, as formatted string + LPOLESTR pszFullName; // property's full name, like pObject->m_fFlag + DWORD dwAttrib; // property attributes (ORed OBJECT_ATTRIB_* above) + IDebugProperty* pDebugProp; // IDebugProperty object corresponding to this DebugPropertyInfo + // extra members + DWORD nDISPID; // DISPID of this child (DISPID_NIL, if n/a or none) + DWORD nType; // property type + VARIANT varValue; // property value (if value can physically fit in VARIANT) + ILockBytes* plbValue; // property value (actual data bytes) + IDebugExtendedProperty* pDebugExtProp; // IDebugExtendedProperty object corresponding to this DebugPropertyInfo +} ExtendedDebugPropertyInfo; + +// ----------------------------------------------------------------------- +// IDebugProperty +[ + object, + uuid(51973C50-CB0C-11d0-B5C9-00A0244A0E7A),, + pointer_default(unique) +] +interface IDebugProperty : IUnknown +{ + // Get Information for this object + // By setting various PROPERTY_INFO_FLAGS, any subset of the basic info + // contained in DebugPropertyInfo can be fetched + [local] + HRESULT GetPropertyInfo( + // OR together PROP_INFO_* defines + [in] DWORD dwFieldSpec, + [in] UINT nRadix, + [out] DebugPropertyInfo* pPropertyInfo); + + // The following custom marshaller works around a marshalling bug + [call_as(GetPropertyInfo)] + HRESULT RemoteGetPropertyInfo( + [in] DWORD dwFieldSpec, + [in] UINT nRadix, + [out] DWORD *dwValidFields, + [out] BSTR *pbstrName, + [out] BSTR *pbstrType, + [out] BSTR *pbstrValue, + [out] BSTR *pbstrFullName, + [out] DWORD *pdwAttrib, + [in, out, unique] IDebugProperty **ppDebugProperty); + + // Get ExtendedInfo for this object + // + // An array of GUIDs and result VARIANTs is passed so that multiple items + // of extended info can be fetched at the same time. If a variant cannot + // be initialized for some reason, the vt field should be set to VT_ERROR. + + // The currently defined extended info guids are described below. + // A QI is typically required to obtain interfaces on the right from + // IUnknowns in the variant. + + // GUID VALUE + // + // guidDefinitionContext IDebugDocumentContext2 + // ISSUE: Add additional GUIDS, such as: + // BSTR + // I4 + HRESULT GetExtendedInfo( + [in] ULONG cInfos, + [in, size_is(cInfos)] GUID* rgguidExtendedInfo, // this arg causes MIDL_CANT_COPE + [out, size_is(cInfos)] VARIANT* rgvar); + + // Set the value of this object as a string + HRESULT SetValueAsString( + [in] LPCOLESTR pszValue, + [in] UINT nRadix); + + // Get enumerator for props of members + HRESULT EnumMembers( + // OR together PROP_INFO_* defines + [in] DWORD dwFieldSpec, + [in] UINT nRadix, + [in] REFIID refiid, + [out] IEnumDebugPropertyInfo **ppepi); + + // Get the parent property + HRESULT GetParent( + [out] IDebugProperty **ppDebugProp); +}; + + +[ + object, + uuid(51973C51-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IEnumDebugPropertyInfo : IUnknown +{ + // Enumerate information for sub-objects + // get the next celt elements, if possible + + [local] + HRESULT Next( + [in] ULONG celt, + [out] DebugPropertyInfo *pi, + [out] ULONG *pcEltsfetched + ); + + [call_as(Next)] + HRESULT __stdcall RemoteNext( + [in] ULONG celt, + [in, out,unique,size_is(celt),length_is(*pcEltsfetched)] DebugPropertyInfo *pinfo, + [out] ULONG *pcEltsfetched + ); + + // skip the next celt slots + HRESULT Skip( + [in] ULONG celt); + + // restart from the beginning + HRESULT Reset(void); + + // clone this property browser at the current enumeration state + HRESULT Clone( + [out] IEnumDebugPropertyInfo **ppepi); + + HRESULT GetCount( + [out] ULONG* pcelt); +}; + + +[ + object, + uuid(51973C52-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugExtendedProperty : IDebugProperty +{ + // Get Information for this object + // By setting various EXPROPERTY_INFO_FLAGS and PROPERTY_INFO_FLAGS, + // any subset of the basic info contained in ExtendedDebugPropertyInfo + // can be fetched + HRESULT GetExtendedPropertyInfo( + // OR together EX_PROP_INFO_* defines + [in] DWORD dwFieldSpec, + [in] UINT nRadix, + [out] ExtendedDebugPropertyInfo *pExtendedPropertyInfo); // this arg is BAD + + // Get enumerator for props of members + HRESULT EnumExtendedMembers( + // OR together EX_PROP_INFO_* defines + [in] DWORD dwFieldSpec, + [in] UINT nRadix, + [out] IEnumDebugExtendedPropertyInfo **ppeepi); +}; + + +[ + object, + uuid(51973C53-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IEnumDebugExtendedPropertyInfo : IUnknown +{ + // Enumerate information for sub-objects + // get the next celt elements, if possible + HRESULT Next( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched)] ExtendedDebugPropertyInfo *rgExtendedPropertyInfo, + [out] ULONG *pceltFetched); + // skip the next celt slots + HRESULT Skip( + [in] ULONG celt); + // restart from the beginning + HRESULT Reset(void); + // clone this property browser at the current enumeration state + HRESULT Clone( + [out] IEnumDebugExtendedPropertyInfo **pedpe); + + HRESULT GetCount( + [out] ULONG* pcelt); +}; + +[ + object, + uuid(51973C54-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IPerPropertyBrowsing2 : IUnknown +{ + // Get a string to display for those types which are inheritly non-viewable + // Note: The returned string is *not* a legal value for the property, + // just an indication to the user of what the property is. + HRESULT GetDisplayString( + [in] DISPID dispid, + [out] BSTR *pBstr); + + // Return the CLSID of the property page which can be used to edit this + // property. + HRESULT MapPropertyToPage( + [in] DISPID dispid, + [out] CLSID *pClsidPropPage); + + // These methods allow the caller to fill a listbox with a set of strings + // which _represent_ potential values for this property. When an item + // is chosen, the cookie is passed back to the object, so that the object + // can set itself to the corresponding value. + HRESULT GetPredefinedStrings( + [in] DISPID dispid, + [out] CALPOLESTR *pCaStrings, + [out] CADWORD *pCaCookies); + + HRESULT SetPredefinedValue( + [in] DISPID dispid, + [in] DWORD dwCookie); +}; + +// the IDebugPropertyEnumType interfaces are really defined for their IIDs, +// we have no need currently to *implement* any of them, but we might one day +// These IIDs are passed to EnumMembers for filtering the enumerator. +[ + object, + uuid(51973C55-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugPropertyEnumType_All : IUnknown +{ + HRESULT GetName([out] BSTR *); +}; + +[ + object, + uuid(51973C56-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugPropertyEnumType_Locals : IDebugPropertyEnumType_All +{ +}; + +[ + object, + uuid(51973C57-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugPropertyEnumType_Arguments : IDebugPropertyEnumType_All +{ +}; + +[ + object, + uuid(51973C58-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugPropertyEnumType_LocalsPlusArgs : IDebugPropertyEnumType_All +{ +}; + +[ + object, + uuid(51973C59-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugPropertyEnumType_Registers : IDebugPropertyEnumType_All +{ +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dbt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dbt.h new file mode 100644 index 0000000000000000000000000000000000000000..188f6d20f68a8345e552bb6229373e1c3a4a4945 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dbt.h @@ -0,0 +1,498 @@ +/***************************************************************************** + * + * (C) Copyright MICROSOFT Corp., 1993-1999 + * + * Title: DBT.H - Equates for WM_DEVICECHANGE and BroadcastSystemMessage + * + * Version: 4.00 + * + * Date: 24-May-1993 + * + *---------------------------------------------------------------------------- + * + * Change log: + * + * DATE REV DESCRIPTION + * ----------- --- ---------------------------------------------------------- + * + *****************************************************************************/ + +#ifndef _DBT_H +#define _DBT_H + + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/* + * BroadcastSpecialMessage constants. + */ +#define WM_DEVICECHANGE 0x0219 + +/* XLATOFF */ +#ifdef IS_32 +#define DBTFAR +#else +#define DBTFAR far +#endif +/* XLATON */ + +#if !defined(_WCHAR_T_DEFINED) && !defined(_NATIVE_WCHAR_T_DEFINED) +typedef unsigned short wchar_t; +#define _WCHAR_T_DEFINED +#endif + +#ifndef GUID_DEFINED +#include +#endif // !defined(GUID_DEFINED) + +/* + * Broadcast message and receipient flags. + * + * Note that there is a third "flag". If the wParam has: + * + * bit 15 on: lparam is a pointer and bit 14 is meaningfull. + * bit 15 off: lparam is just a UNLONG data type. + * + * bit 14 on: lparam is a pointer to an ASCIIZ string. + * bit 14 off: lparam is a pointer to a binary struture starting with + * a dword describing the length of the structure. + */ +#define BSF_QUERY 0x00000001 +#define BSF_IGNORECURRENTTASK 0x00000002 /* Meaningless for VxDs */ +#define BSF_FLUSHDISK 0x00000004 /* Shouldn't be used by VxDs */ +#define BSF_NOHANG 0x00000008 +#define BSF_POSTMESSAGE 0x00000010 +#define BSF_FORCEIFHUNG 0x00000020 +#define BSF_NOTIMEOUTIFNOTHUNG 0x00000040 +#define BSF_MSGSRV32ISOK 0x80000000 /* Called synchronously from PM API */ +#define BSF_MSGSRV32ISOK_BIT 31 /* Called synchronously from PM API */ + +#define BSM_ALLCOMPONENTS 0x00000000 +#define BSM_VXDS 0x00000001 +#define BSM_NETDRIVER 0x00000002 +#define BSM_INSTALLABLEDRIVERS 0x00000004 +#define BSM_APPLICATIONS 0x00000008 + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_APPYBEGIN + * lParam = (not used) + * + * 'Appy-time is now available. This message is itself sent + * at 'Appy-time. + * + * Message = WM_DEVICECHANGE + * wParam = DBT_APPYEND + * lParam = (not used) + * + * 'Appy-time is no longer available. This message is *NOT* sent + * at 'Appy-time. (It cannot be, because 'Appy-time is gone.) + * + * NOTE! It is possible for DBT_APPYBEGIN and DBT_APPYEND to be sent + * multiple times during a single Windows session. Each appearance of + * 'Appy-time is bracketed by these two messages, but 'Appy-time may + * momentarily become unavailable during otherwise normal Windows + * processing. The current status of 'Appy-time availability can always + * be obtained from a call to _SHELL_QueryAppyTimeAvailable. + */ +#define DBT_APPYBEGIN 0x0000 +#define DBT_APPYEND 0x0001 + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_DEVNODES_CHANGED + * lParam = 0 + * + * send when configmg finished a process tree batch. Some devnodes + * may have been added or removed. This is used by ring3 people which + * need to be refreshed whenever any devnode changed occur (like + * device manager). People specific to certain devices should use + * DBT_DEVICE* instead. + */ + +#define DBT_DEVNODES_CHANGED 0x0007 + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_QUERYCHANGECONFIG + * lParam = 0 + * + * sent to ask if a config change is allowed + */ + +#define DBT_QUERYCHANGECONFIG 0x0017 + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_CONFIGCHANGED + * lParam = 0 + * + * sent when a config has changed + */ + +#define DBT_CONFIGCHANGED 0x0018 + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_CONFIGCHANGECANCELED + * lParam = 0 + * + * someone cancelled the config change + */ + +#define DBT_CONFIGCHANGECANCELED 0x0019 + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_MONITORCHANGE + * lParam = new resolution to use (LOWORD=x, HIWORD=y) + * if 0, use the default res for current config + * + * this message is sent when the display monitor has changed + * and the system should change the display mode to match it. + */ + +#define DBT_MONITORCHANGE 0x001B + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_SHELLLOGGEDON + * lParam = 0 + * + * The shell has finished login on: VxD can now do Shell_EXEC. + */ + +#define DBT_SHELLLOGGEDON 0x0020 + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_CONFIGMGAPI + * lParam = CONFIGMG API Packet + * + * CONFIGMG ring 3 call. + */ +#define DBT_CONFIGMGAPI32 0x0022 + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_VXDINITCOMPLETE + * lParam = 0 + * + * CONFIGMG ring 3 call. + */ +#define DBT_VXDINITCOMPLETE 0x0023 + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_VOLLOCK* + * lParam = pointer to VolLockBroadcast structure described below + * + * Messages issued by IFSMGR for volume locking purposes on WM_DEVICECHANGE. + * All these messages pass a pointer to a struct which has no pointers. + */ + +#define DBT_VOLLOCKQUERYLOCK 0x8041 +#define DBT_VOLLOCKLOCKTAKEN 0x8042 +#define DBT_VOLLOCKLOCKFAILED 0x8043 +#define DBT_VOLLOCKQUERYUNLOCK 0x8044 +#define DBT_VOLLOCKLOCKRELEASED 0x8045 +#define DBT_VOLLOCKUNLOCKFAILED 0x8046 + +/* + * Device broadcast header + */ + +struct _DEV_BROADCAST_HDR { /* */ + DWORD dbch_size; + DWORD dbch_devicetype; + DWORD dbch_reserved; +}; + +typedef struct _DEV_BROADCAST_HDR DEV_BROADCAST_HDR; +typedef DEV_BROADCAST_HDR DBTFAR *PDEV_BROADCAST_HDR; + +/* + * Structure for volume lock broadcast + */ + +typedef struct VolLockBroadcast VolLockBroadcast; +typedef VolLockBroadcast *pVolLockBroadcast; +struct VolLockBroadcast { + struct _DEV_BROADCAST_HDR vlb_dbh; + DWORD vlb_owner; // thread on which lock request is being issued + BYTE vlb_perms; // lock permission flags defined below + BYTE vlb_lockType; // type of lock + BYTE vlb_drive; // drive on which lock is issued + BYTE vlb_flags; // miscellaneous flags +}; + +/* + * Values for vlb_perms + */ +#define LOCKP_ALLOW_WRITES 0x01 // Bit 0 set - allow writes +#define LOCKP_FAIL_WRITES 0x00 // Bit 0 clear - fail writes +#define LOCKP_FAIL_MEM_MAPPING 0x02 // Bit 1 set - fail memory mappings +#define LOCKP_ALLOW_MEM_MAPPING 0x00 // Bit 1 clear - allow memory mappings +#define LOCKP_USER_MASK 0x03 // Mask for user lock flags +#define LOCKP_LOCK_FOR_FORMAT 0x04 // Level 0 lock for format + +/* + * Values for vlb_flags + */ +#define LOCKF_LOGICAL_LOCK 0x00 // Bit 0 clear - logical lock +#define LOCKF_PHYSICAL_LOCK 0x01 // Bit 0 set - physical lock + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_NODISKSPACE + * lParam = drive number of drive that is out of disk space (1-based) + * + * Message issued by IFS manager when it detects that a drive is run out of + * free space. + */ + +#define DBT_NO_DISK_SPACE 0x0047 + +/* + * Message = WM_DEVICECHANGE + * wParam = DBT_LOW_DISK_SPACE + * lParam = drive number of drive that is low on disk space (1-based) + * + * Message issued by VFAT when it detects that a drive it has mounted + * has the remaning free space below a threshold specified by the + * registry or by a disk space management application. + * The broadcast is issued by VFAT ONLY when space is either allocated + * or freed by VFAT. + */ + +#define DBT_LOW_DISK_SPACE 0x0048 + +#define DBT_CONFIGMGPRIVATE 0x7FFF + +/* + * The following messages are for WM_DEVICECHANGE. The immediate list + * is for the wParam. ALL THESE MESSAGES PASS A POINTER TO A STRUCT + * STARTING WITH A DWORD SIZE AND HAVING NO POINTER IN THE STRUCT. + * + */ +#define DBT_DEVICEARRIVAL 0x8000 // system detected a new device +#define DBT_DEVICEQUERYREMOVE 0x8001 // wants to remove, may fail +#define DBT_DEVICEQUERYREMOVEFAILED 0x8002 // removal aborted +#define DBT_DEVICEREMOVEPENDING 0x8003 // about to remove, still avail. +#define DBT_DEVICEREMOVECOMPLETE 0x8004 // device is gone +#define DBT_DEVICETYPESPECIFIC 0x8005 // type specific event + +#if(WINVER >= 0x040A) +#define DBT_CUSTOMEVENT 0x8006 // user-defined event +#endif /* WINVER >= 0x040A */ + + +#define DBT_DEVTYP_OEM 0x00000000 // oem-defined device type +#define DBT_DEVTYP_DEVNODE 0x00000001 // devnode number +#define DBT_DEVTYP_VOLUME 0x00000002 // logical volume +#define DBT_DEVTYP_PORT 0x00000003 // serial, parallel +#define DBT_DEVTYP_NET 0x00000004 // network resource + +#if(WINVER >= 0x040A) +#define DBT_DEVTYP_DEVICEINTERFACE 0x00000005 // device interface class +#define DBT_DEVTYP_HANDLE 0x00000006 // file system handle +#endif /* WINVER >= 0x040A */ + + +struct _DEV_BROADCAST_HEADER { /* */ + DWORD dbcd_size; + DWORD dbcd_devicetype; + DWORD dbcd_reserved; +}; + +struct _DEV_BROADCAST_OEM { /* */ + DWORD dbco_size; + DWORD dbco_devicetype; + DWORD dbco_reserved; + DWORD dbco_identifier; + DWORD dbco_suppfunc; +}; + +typedef struct _DEV_BROADCAST_OEM DEV_BROADCAST_OEM; +typedef DEV_BROADCAST_OEM DBTFAR *PDEV_BROADCAST_OEM; + +struct _DEV_BROADCAST_DEVNODE { /* */ + DWORD dbcd_size; + DWORD dbcd_devicetype; + DWORD dbcd_reserved; + DWORD dbcd_devnode; +}; + +typedef struct _DEV_BROADCAST_DEVNODE DEV_BROADCAST_DEVNODE; +typedef DEV_BROADCAST_DEVNODE DBTFAR *PDEV_BROADCAST_DEVNODE; + +struct _DEV_BROADCAST_VOLUME { /* */ + DWORD dbcv_size; + DWORD dbcv_devicetype; + DWORD dbcv_reserved; + DWORD dbcv_unitmask; + WORD dbcv_flags; +}; + +typedef struct _DEV_BROADCAST_VOLUME DEV_BROADCAST_VOLUME; +typedef DEV_BROADCAST_VOLUME DBTFAR *PDEV_BROADCAST_VOLUME; + +#define DBTF_MEDIA 0x0001 // media comings and goings +#define DBTF_NET 0x0002 // network volume + +typedef struct _DEV_BROADCAST_PORT_A { + DWORD dbcp_size; + DWORD dbcp_devicetype; + DWORD dbcp_reserved; + char dbcp_name[1]; +} DEV_BROADCAST_PORT_A, *PDEV_BROADCAST_PORT_A; + +typedef struct _DEV_BROADCAST_PORT_W { + DWORD dbcp_size; + DWORD dbcp_devicetype; + DWORD dbcp_reserved; + wchar_t dbcp_name[1]; +} DEV_BROADCAST_PORT_W, DBTFAR *PDEV_BROADCAST_PORT_W; + +#ifdef UNICODE +typedef DEV_BROADCAST_PORT_W DEV_BROADCAST_PORT; +typedef PDEV_BROADCAST_PORT_W PDEV_BROADCAST_PORT; +#else +typedef DEV_BROADCAST_PORT_A DEV_BROADCAST_PORT; +typedef PDEV_BROADCAST_PORT_A PDEV_BROADCAST_PORT; +#endif + +struct _DEV_BROADCAST_NET { /* */ + DWORD dbcn_size; + DWORD dbcn_devicetype; + DWORD dbcn_reserved; + DWORD dbcn_resource; + DWORD dbcn_flags; +}; + +typedef struct _DEV_BROADCAST_NET DEV_BROADCAST_NET; +typedef DEV_BROADCAST_NET DBTFAR *PDEV_BROADCAST_NET; + +#if(WINVER >= 0x040A) + +typedef struct _DEV_BROADCAST_DEVICEINTERFACE_A { + DWORD dbcc_size; + DWORD dbcc_devicetype; + DWORD dbcc_reserved; + GUID dbcc_classguid; + char dbcc_name[1]; +} DEV_BROADCAST_DEVICEINTERFACE_A, *PDEV_BROADCAST_DEVICEINTERFACE_A; + +typedef struct _DEV_BROADCAST_DEVICEINTERFACE_W { + DWORD dbcc_size; + DWORD dbcc_devicetype; + DWORD dbcc_reserved; + GUID dbcc_classguid; + wchar_t dbcc_name[1]; +} DEV_BROADCAST_DEVICEINTERFACE_W, *PDEV_BROADCAST_DEVICEINTERFACE_W; + +#ifdef UNICODE +typedef DEV_BROADCAST_DEVICEINTERFACE_W DEV_BROADCAST_DEVICEINTERFACE; +typedef PDEV_BROADCAST_DEVICEINTERFACE_W PDEV_BROADCAST_DEVICEINTERFACE; +#else +typedef DEV_BROADCAST_DEVICEINTERFACE_A DEV_BROADCAST_DEVICEINTERFACE; +typedef PDEV_BROADCAST_DEVICEINTERFACE_A PDEV_BROADCAST_DEVICEINTERFACE; +#endif + +typedef struct _DEV_BROADCAST_HANDLE { + DWORD dbch_size; + DWORD dbch_devicetype; + DWORD dbch_reserved; + HANDLE dbch_handle; // file handle used in call to RegisterDeviceNotification + HDEVNOTIFY dbch_hdevnotify; // returned from RegisterDeviceNotification + // + // The following 3 fields are only valid if wParam is DBT_CUSTOMEVENT. + // + GUID dbch_eventguid; + LONG dbch_nameoffset; // offset (bytes) of variable-length string buffer (-1 if none) + BYTE dbch_data[1]; // variable-sized buffer, potentially containing binary and/or text data +} DEV_BROADCAST_HANDLE, *PDEV_BROADCAST_HANDLE; + +#if(WINVER >= 0x0501) + +// +// Define 32-bit and 64-bit versions of the DEV_BROADCAST_HANDLE structure +// for WOW64. These must be kept in sync with the above structure. +// + +typedef struct _DEV_BROADCAST_HANDLE32 { + DWORD dbch_size; + DWORD dbch_devicetype; + DWORD dbch_reserved; + ULONG32 dbch_handle; + ULONG32 dbch_hdevnotify; + GUID dbch_eventguid; + LONG dbch_nameoffset; + BYTE dbch_data[1]; +} DEV_BROADCAST_HANDLE32, *PDEV_BROADCAST_HANDLE32; + +typedef struct _DEV_BROADCAST_HANDLE64 { + DWORD dbch_size; + DWORD dbch_devicetype; + DWORD dbch_reserved; + ULONG64 dbch_handle; + ULONG64 dbch_hdevnotify; + GUID dbch_eventguid; + LONG dbch_nameoffset; + BYTE dbch_data[1]; +} DEV_BROADCAST_HANDLE64, *PDEV_BROADCAST_HANDLE64; + +#endif /* WINVER >= 0x0501 */ + +#endif /* WINVER >= 0x040A */ + + +#define DBTF_RESOURCE 0x00000001 // network resource +#define DBTF_XPORT 0x00000002 // new transport coming or going +#define DBTF_SLOWNET 0x00000004 // new incoming transport is slow + // (dbcn_resource undefined for now) + +#define DBT_VPOWERDAPI 0x8100 // VPOWERD API for Win95 + +/* + * User-defined message types all use wParam = 0xFFFF with the + * lParam a pointer to the structure below. + * + * dbud_dbh - DEV_BROADCAST_HEADER must be filled in as usual. + * + * dbud_szName contains a case-sensitive ASCIIZ name which names the + * message. The message name consists of the vendor name, a backslash, + * then arbitrary user-defined ASCIIZ text. For example: + * + * "WidgetWare\QueryScannerShutdown" + * "WidgetWare\Video Q39S\AdapterReady" + * + * After the ASCIIZ name, arbitrary information may be provided. + * Make sure that dbud_dbh.dbch_size is big enough to encompass + * all the data. And remember that nothing in the structure may + * contain pointers. + */ + +#define DBT_USERDEFINED 0xFFFF + +struct _DEV_BROADCAST_USERDEFINED { /* */ + struct _DEV_BROADCAST_HDR dbud_dbh; + char dbud_szName[1]; /* ASCIIZ name */ +/* BYTE dbud_rgbUserDefined[];*/ /* User-defined contents */ +}; + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _DBT_H + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DefaultBrowserSyncSettings.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DefaultBrowserSyncSettings.h new file mode 100644 index 0000000000000000000000000000000000000000..9a87cdc58d85c8350986575234055f1bf3d8af86 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DefaultBrowserSyncSettings.h @@ -0,0 +1,210 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __defaultbrowsersyncsettings_h__ +#define __defaultbrowsersyncsettings_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDefaultBrowserSyncSettings_FWD_DEFINED__ +#define __IDefaultBrowserSyncSettings_FWD_DEFINED__ +typedef interface IDefaultBrowserSyncSettings IDefaultBrowserSyncSettings; + +#endif /* __IDefaultBrowserSyncSettings_FWD_DEFINED__ */ + + +#ifndef __DefaultBrowserSyncSettings_FWD_DEFINED__ +#define __DefaultBrowserSyncSettings_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DefaultBrowserSyncSettings DefaultBrowserSyncSettings; +#else +typedef struct DefaultBrowserSyncSettings DefaultBrowserSyncSettings; +#endif /* __cplusplus */ + +#endif /* __DefaultBrowserSyncSettings_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oleidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_defaultbrowsersyncsettings_0000_0000 */ +/* [local] */ + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_defaultbrowsersyncsettings_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_defaultbrowsersyncsettings_0000_0000_v0_0_s_ifspec; + +#ifndef __IDefaultBrowserSyncSettings_INTERFACE_DEFINED__ +#define __IDefaultBrowserSyncSettings_INTERFACE_DEFINED__ + +/* interface IDefaultBrowserSyncSettings */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDefaultBrowserSyncSettings; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7A27FAAD-5AE6-4255-9030-C530936292E3") + IDefaultBrowserSyncSettings : public IUnknown + { + public: + virtual BOOL STDMETHODCALLTYPE IsEnabled( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDefaultBrowserSyncSettingsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDefaultBrowserSyncSettings * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDefaultBrowserSyncSettings * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDefaultBrowserSyncSettings * This); + + DECLSPEC_XFGVIRT(IDefaultBrowserSyncSettings, IsEnabled) + BOOL ( STDMETHODCALLTYPE *IsEnabled )( + IDefaultBrowserSyncSettings * This); + + END_INTERFACE + } IDefaultBrowserSyncSettingsVtbl; + + interface IDefaultBrowserSyncSettings + { + CONST_VTBL struct IDefaultBrowserSyncSettingsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDefaultBrowserSyncSettings_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDefaultBrowserSyncSettings_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDefaultBrowserSyncSettings_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDefaultBrowserSyncSettings_IsEnabled(This) \ + ( (This)->lpVtbl -> IsEnabled(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDefaultBrowserSyncSettings_INTERFACE_DEFINED__ */ + + + +#ifndef __BrowserSyncSettings_LIBRARY_DEFINED__ +#define __BrowserSyncSettings_LIBRARY_DEFINED__ + +/* library BrowserSyncSettings */ +/* [uuid] */ + + +EXTERN_C const IID LIBID_BrowserSyncSettings; + +EXTERN_C const CLSID CLSID_DefaultBrowserSyncSettings; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3AC83423-3112-4AA6-9B5B-1FEB23D0C5F9") +DefaultBrowserSyncSettings; +#endif +#endif /* __BrowserSyncSettings_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_defaultbrowsersyncsettings_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif // (NTDDI_VERSION >= NTDDI_WINBLUE) + + +extern RPC_IF_HANDLE __MIDL_itf_defaultbrowsersyncsettings_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_defaultbrowsersyncsettings_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DefaultBrowserSyncSettings.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DefaultBrowserSyncSettings.idl new file mode 100644 index 0000000000000000000000000000000000000000..9fa729709841b44d0d9f6e33b6cfbc4375ed1767 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DefaultBrowserSyncSettings.idl @@ -0,0 +1,45 @@ +//**************************************************************************** +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: DefaultBrowserSyncSettings.idl +// +// Contents: Interface for determining default browser setting sync state +// +//**************************************************************************** + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WINBLUE)") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +import "oleidl.idl"; + +[ + object, + uuid(7A27FAAD-5AE6-4255-9030-C530936292E3), + pointer_default(unique), + local, +] +interface IDefaultBrowserSyncSettings : IUnknown +{ + // Returns TRUE if and only if Default browser Setting Sync is enabled. Checks Group Policy as well as user preference. + // Returns FALSE if an error is encountered or Browser Setting Sync is disabled. + BOOL IsEnabled(); +} + +[ + uuid(7D598D2D-DAEF-4A18-8B4A-4E314DCE21DC), +] +library BrowserSyncSettings +{ + // CLSID_DefaultBrowserSyncSettings + [ uuid(3AC83423-3112-4AA6-9B5B-1FEB23D0C5F9) ] coclass DefaultBrowserSyncSettings { interface IDefaultBrowserSyncSettings; } +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif // (NTDDI_VERSION >= NTDDI_WINBLUE)") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DeleteBrowsingHistory.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DeleteBrowsingHistory.h new file mode 100644 index 0000000000000000000000000000000000000000..96458958f7b8041ec845c0dde1d2cf39dce9c719 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DeleteBrowsingHistory.h @@ -0,0 +1,190 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __deletebrowsinghistory_h__ +#define __deletebrowsinghistory_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDeleteBrowsingHistory_FWD_DEFINED__ +#define __IDeleteBrowsingHistory_FWD_DEFINED__ +typedef interface IDeleteBrowsingHistory IDeleteBrowsingHistory; + +#endif /* __IDeleteBrowsingHistory_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_deletebrowsinghistory_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// {31caf6e4-d6aa-4090-a050-a5ac8972e9ef} +DEFINE_GUID( CATID_DeleteBrowsingHistory, 0x31caf6e4,0xd6aa,0x4090,0xa0,0x50,0xa5,0xac,0x89,0x72,0xe9,0xef); +EXTERN_C const GUID CATID_DeleteBrowsingHistory; +#define DELETE_BROWSING_HISTORY_HISTORY 0x0001 // Indicates that the History checkbox was selected. +#define DELETE_BROWSING_HISTORY_COOKIES 0x0002 // Indicates that the Cookies checkbox was selected. +#define DELETE_BROWSING_HISTORY_TIF 0x0004 // Indicates that the Temporary Internet Files checkbox was selected. +#define DELETE_BROWSING_HISTORY_FORMDATA 0x0008 // Indicates that the Form data checkbox was selected. +#define DELETE_BROWSING_HISTORY_PASSWORDS 0x0010 // Indicates that the Passwords checkbox was selected. +#define DELETE_BROWSING_HISTORY_PRESERVEFAVORITES 0x0020 // Indicates that the Preseve Favorite website data checkbox is selected. +#define DELETE_BROWSING_HISTORY_DOWNLOADHISTORY 0x0040 // Indicates that the Download History checkbox was selected. + + +extern RPC_IF_HANDLE __MIDL_itf_deletebrowsinghistory_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_deletebrowsinghistory_0000_0000_v0_0_s_ifspec; + +#ifndef __IDeleteBrowsingHistory_INTERFACE_DEFINED__ +#define __IDeleteBrowsingHistory_INTERFACE_DEFINED__ + +/* interface IDeleteBrowsingHistory */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IDeleteBrowsingHistory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cf38ed4b-2be7-4461-8b5e-9a466dc82ae3") + IDeleteBrowsingHistory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE DeleteBrowsingHistory( + DWORD dwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDeleteBrowsingHistoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDeleteBrowsingHistory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDeleteBrowsingHistory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDeleteBrowsingHistory * This); + + DECLSPEC_XFGVIRT(IDeleteBrowsingHistory, DeleteBrowsingHistory) + HRESULT ( STDMETHODCALLTYPE *DeleteBrowsingHistory )( + __RPC__in IDeleteBrowsingHistory * This, + DWORD dwFlags); + + END_INTERFACE + } IDeleteBrowsingHistoryVtbl; + + interface IDeleteBrowsingHistory + { + CONST_VTBL struct IDeleteBrowsingHistoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDeleteBrowsingHistory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDeleteBrowsingHistory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDeleteBrowsingHistory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDeleteBrowsingHistory_DeleteBrowsingHistory(This,dwFlags) \ + ( (This)->lpVtbl -> DeleteBrowsingHistory(This,dwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDeleteBrowsingHistory_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_deletebrowsinghistory_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_deletebrowsinghistory_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_deletebrowsinghistory_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DeleteBrowsingHistory.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DeleteBrowsingHistory.idl new file mode 100644 index 0000000000000000000000000000000000000000..84b5e21ba35b25c75c4a8656506254a20301308a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DeleteBrowsingHistory.idl @@ -0,0 +1,33 @@ +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include +import "ocidl.idl"; + +cpp_quote("// {31caf6e4-d6aa-4090-a050-a5ac8972e9ef} ") +cpp_quote("DEFINE_GUID( CATID_DeleteBrowsingHistory, 0x31caf6e4,0xd6aa,0x4090,0xa0,0x50,0xa5,0xac,0x89,0x72,0xe9,0xef);") +cpp_quote("EXTERN_C const GUID CATID_DeleteBrowsingHistory;") + + +cpp_quote("#define DELETE_BROWSING_HISTORY_HISTORY 0x0001 // Indicates that the History checkbox was selected.") +cpp_quote("#define DELETE_BROWSING_HISTORY_COOKIES 0x0002 // Indicates that the Cookies checkbox was selected.") +cpp_quote("#define DELETE_BROWSING_HISTORY_TIF 0x0004 // Indicates that the Temporary Internet Files checkbox was selected.") +cpp_quote("#define DELETE_BROWSING_HISTORY_FORMDATA 0x0008 // Indicates that the Form data checkbox was selected.") +cpp_quote("#define DELETE_BROWSING_HISTORY_PASSWORDS 0x0010 // Indicates that the Passwords checkbox was selected.") +cpp_quote("#define DELETE_BROWSING_HISTORY_PRESERVEFAVORITES 0x0020 // Indicates that the Preseve Favorite website data checkbox is selected.") +cpp_quote("#define DELETE_BROWSING_HISTORY_DOWNLOADHISTORY 0x0040 // Indicates that the Download History checkbox was selected.") + +[ + uuid(cf38ed4b-2be7-4461-8b5e-9a466dc82ae3), + helpstring("IDeleteBrowsingHistory Interface"), +] +interface IDeleteBrowsingHistory : IUnknown +{ + HRESULT DeleteBrowsingHistory(DWORD dwFlags); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DeviceCategories.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DeviceCategories.h new file mode 100644 index 0000000000000000000000000000000000000000..d44169cbf7f3d6d54b83f3e5b469a0927f262de6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DeviceCategories.h @@ -0,0 +1,300 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// Unknown +#define DEVICEDISPLAY_CATEGORY_UNKNOWN L"Unknown" + +// Other +#define DEVICEDISPLAY_CATEGORY_OTHER L"Other" + +// Audio +#define DEVICEDISPLAY_CATEGORY_AUDIO L"Audio" +#define DEVICEDISPLAY_CATEGORY_AUDIO_ADAPTER L"Audio.Adapter" +#define DEVICEDISPLAY_CATEGORY_AUDIO_EARBUDS L"Audio.Earbuds" +#define DEVICEDISPLAY_CATEGORY_AUDIO_HEADPHONE L"Audio.Headphone" +#define DEVICEDISPLAY_CATEGORY_AUDIO_HEARING_AID L"Audio.HearingAid" +#define DEVICEDISPLAY_CATEGORY_AUDIO_MICROPHONE L"Audio.Microphone" +#define DEVICEDISPLAY_CATEGORY_AUDIO_SPEAKERPHONE L"Audio.Speakerphone" +#define DEVICEDISPLAY_CATEGORY_AUDIO_SPEAKERS L"Audio.Speakers" +#define DEVICEDISPLAY_CATEGORY_AUDIO_SPEAKERS_WIRELESS L"Audio.Speakers.Wireless" +#define DEVICEDISPLAY_CATEGORY_AUDIO_SPEAKERS_USB L"Audio.Speakers.USB" + +// Communication +#define DEVICEDISPLAY_CATEGORY_COMMUNICATION L"Communication" +#define DEVICEDISPLAY_CATEGORY_COMMUNICATION_HEADSET L"Communication.Headset" +#define DEVICEDISPLAY_CATEGORY_COMMUNICATION_HEADSET_BLUETOOTH L"Communication.Headset.Bluetooth" +#define DEVICEDISPLAY_CATEGORY_COMMUNICATION_PHONE L"Communication.Phone" +#define DEVICEDISPLAY_CATEGORY_COMMUNICATION_PHONE_CELL L"Communication.Phone.Cell" +#define DEVICEDISPLAY_CATEGORY_COMMUNICATION_PHONE_IP L"Communication.Phone.IP" +#define DEVICEDISPLAY_CATEGORY_COMMUNICATION_PHONE_SPEAKER L"Communication.Phone.Speaker" + +// Computer +#define DEVICEDISPLAY_CATEGORY_COMPUTER L"Computer" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_ALLINONE L"Computer.AllInOne" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_CONVERTIBLE L"Computer.Convertible" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_DESKTOP L"Computer.Desktop" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_DESKTOP_LOWPROFILE L"Computer.Desktop.LowProfile" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_DESKTOP_PIZZABOX L"Computer.Desktop.Pizzabox" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_DETACHABLE L"Computer.Detachable" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_HANDHELD L"Computer.Handheld" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_HANDHELD_WINDOWS L"Computer.Handheld.Windows" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_LAPTOP L"Computer.Laptop" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_LUNCHBOX L"Computer.Lunchbox" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_NETBOOK L"Computer.Netbook" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_NOTEBOOK L"Computer.Notebook" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_NOTEBOOK_SUB L"Computer.Notebook.Sub" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_PORTABLE L"Computer.Portable" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_RACKMOUNT L"Computer.Rackmount" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_SEALED L"Computer.Sealed" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_SERVER L"Computer.Server" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_SPACESAVING L"Computer.SpaceSaving" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_TABLET L"Computer.Tablet" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_THINCLIENT L"Computer.ThinClient" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_TOWER L"Computer.Tower" +#define DEVICEDISPLAY_CATEGORY_COMPUTER_TOWER_MINI L"Computer.Tower.Mini" + +// Display +#define DEVICEDISPLAY_CATEGORY_DISPLAY L"Display" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_HEADMOUNTED L"Display.Headmounted" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_MONITOR L"Display.Monitor" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_MONITOR_CRT L"Display.Monitor.CRT" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_MONITOR_LCD L"Display.Monitor.LCD" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_MONITOR_PLASMA L"Display.Monitor.Plasma" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_PICTUREFRAME L"Display.PictureFrame" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_PROJECTOR L"Display.Projector" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_SIDESHOW L"Display.SideShow" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_TV L"Display.TV" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_TV_CRT L"Display.TV.CRT" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_TV_LCD L"Display.TV.LCD" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_TV_PLASMA L"Display.TV.Plasma" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_TV_DLP L"Display.TV.DLP" +#define DEVICEDISPLAY_CATEGORY_DISPLAY_DOCK L"Display.Dock" + +// Component +#define DEVICEDISPLAY_CATEGORY_COMPONENT L"Component" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_AUDIOADAPTER L"Component.AudioAdapter" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_BATTERY L"Component.Battery" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_BRIDGE L"Component.Bridge" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_BRIDGE_NETWORK L"Component.Bridge.Network" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_BRIDGE_STORAGE L"Component.Bridge.Storage" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CABLE L"Component.Cable" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CABLE_TRANSFER L"Component.Cable.Transfer" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CABLE_TRANSFER_USB L"Component.Cable.Transfer.USB" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CAPTURE L"Component.Capture" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CAPTURE_VIDEO L"Component.Capture.Video" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER L"Component.Controller" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_1394 L"Component.Controller.1394" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_BLUETOOTH L"Component.Controller.Bluetooth" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_CARDBUS L"Component.Controller.CardBus" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_IR L"Component.Controller.IR" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_IR_MCE L"Component.Controller.IR.MCE" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_SDH L"Component.Controller.SDH" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_SERIAL L"Component.Controller.Serial" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_STORAGE L"Component.Controller.Storage" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_STORAGE_IDE L"Component.Controller.Storage.IDE" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_STORAGE_ISCSI L"Component.Controller.Storage.iSCSI" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_STORAGE_SATA L"Component.Controller.Storage.SATA" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_STORAGE_SCSI L"Component.Controller.Storage.SCSI" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_STORAGE_RAID L"Component.Controller.Storage.Raid" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_USB L"Component.Controller.USB" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_CONTROLLER_WUSB L"Component.Controller.WUSB" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_GRAPHICSCARD L"Component.GraphicsCard" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_HUB L"Component.Hub" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_HUB_1394 L"Component.Hub.1394" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_HUB_USB L"Component.Hub.USB" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_KVM L"Component.KVM" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_NIC L"Component.NIC" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_SMARTCARDREADER L"Component.SmartCardReader" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_SYSTEM L"Component.System" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_SYSTEM_BOARD L"Component.System.Board" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_SYSTEM_MEMORY L"Component.System.Memory" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_SYSTEM_PROCESSOR L"Component.System.Processor" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER L"Component.Tuner" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV L"Component.Tuner.TV" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_ATSC L"Component.Tuner.TV.ATSC" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_DCB_S L"Component.Tuner.TV.DCB-S" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_DVB_C L"Component.Tuner.TV.DVB-C" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_DVB_T L"Component.Tuner.TV.DVB-T" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_ISDB_T L"Component.Tuner.TV.ISDB-T" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_NTSC L"Component.Tuner.TV.NTSC" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_NTSCMJ L"Component.Tuner.TV.NTSCMJ" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_OPENCABLE L"Component.Tuner.TV.OpenCable" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_PAL L"Component.Tuner.TV.PAL" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_PROPRIETARY L"Component.Tuner.TV.Proprietary" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_QAM L"Component.Tuner.TV.QAM" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_TV_SECAM L"Component.Tuner.TV.SECAM" +#define DEVICEDISPLAY_CATEGORY_COMPONENT_TUNER_RADIO L"Component.Tuner.Radio" + +// Input +#define DEVICEDISPLAY_CATEGORY_INPUT L"Input" +#define DEVICEDISPLAY_CATEGORY_INPUT_DIGITIZER L"Input.Digitizer" +#define DEVICEDISPLAY_CATEGORY_INPUT_DIGITIZER_MULTITOUCH L"Input.Digitizer.Multitouch" +#define DEVICEDISPLAY_CATEGORY_INPUT_DIGITIZER_PEN L"Input.Digitizer.Pen" +#define DEVICEDISPLAY_CATEGORY_INPUT_DIGITIZER_TOUCHPAD L"Input.Digitizer.Touchpad" +#define DEVICEDISPLAY_CATEGORY_INPUT_DIGITIZER_TOUCHSCREEN L"Input.Digitizer.Touchscreen" +#define DEVICEDISPLAY_CATEGORY_INPUT_GAMING L"Input.Gaming" +#define DEVICEDISPLAY_CATEGORY_INPUT_GAMING_COMMON L"Input.Gaming.Common" +#define DEVICEDISPLAY_CATEGORY_INPUT_GAMING_CONTROLLER L"Input.Gaming.Controller" +#define DEVICEDISPLAY_CATEGORY_INPUT_GAMING_GAMEPAD L"Input.Gaming.Gamepad" +#define DEVICEDISPLAY_CATEGORY_INPUT_GAMING_GENERIC L"Input.Gaming.Generic" +#define DEVICEDISPLAY_CATEGORY_INPUT_GAMING_STEERING L"Input.Gaming.Steering" +#define DEVICEDISPLAY_CATEGORY_INPUT_KEYBOARD L"Input.Keyboard" +#define DEVICEDISPLAY_CATEGORY_INPUT_KVM L"Input.KVM" +#define DEVICEDISPLAY_CATEGORY_INPUT_MOUSE L"Input.Mouse" +#define DEVICEDISPLAY_CATEGORY_INPUT_TRACKBALL L"Input.Trackball" +#define DEVICEDISPLAY_CATEGORY_INPUT_REMOTE L"Input.Remote" +#define DEVICEDISPLAY_CATEGORY_INPUT_REMOTE_MCE L"Input.Remote.MCE" + +// Health +#define DEVICEDISPLAY_CATEGORY_HEALTH L"Health" +#define DEVICEDISPLAY_CATEGORY_HEALTH_BLOODGLUCOSE L"Health.BloodGlucose" +#define DEVICEDISPLAY_CATEGORY_HEALTH_BLOODPRESSURE L"Health.BloodPressure" +#define DEVICEDISPLAY_CATEGORY_HEALTH_HEARTRATE L"Health.HeartRate" +#define DEVICEDISPLAY_CATEGORY_HEALTH_PEDOMETER L"Health.Pedometer" + +// Media +#define DEVICEDISPLAY_CATEGORY_MEDIA L"Media" +#define DEVICEDISPLAY_CATEGORY_MEDIA_SMARTCARD L"Media.SmartCard" +#define DEVICEDISPLAY_CATEGORY_MEDIA_SMARTCARD_VIRTUAL L"Media.SmartCard.Virtual" +#define DEVICEDISPLAY_CATEGORY_MEDIA_STORAGE L"Media.Storage" +#define DEVICEDISPLAY_CATEGORY_MEDIA_STORAGE_FLASH L"Media.Storage.Flash" +#define DEVICEDISPLAY_CATEGORY_MEDIA_STORAGE_FLASH_COMPACTFLASH L"Media.Storage.Flash.CompactFlash" +#define DEVICEDISPLAY_CATEGORY_MEDIA_STORAGE_FLASH_MEMORYSTICK L"Media.Storage.Flash.MemoryStick" +#define DEVICEDISPLAY_CATEGORY_MEDIA_STORAGE_FLASH_SD L"Media.Storage.Flash.SD" +#define DEVICEDISPLAY_CATEGORY_MEDIA_STORAGE_OPTICAL L"Media.Storage.Optical" +#define DEVICEDISPLAY_CATEGORY_MEDIA_STORAGE_OPTICAL_CD L"Media.Storage.Optical.CD" +#define DEVICEDISPLAY_CATEGORY_MEDIA_STORAGE_OPTICAL_DVD L"Media.Storage.Optical.DVD" +#define DEVICEDISPLAY_CATEGORY_MEDIA_STORAGE_OPTICAL_BLURAY L"Media.Storage.Optical.BluRay" + +// Multimedia +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA L"Multimedia" +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA_DMC L"Multimedia.DMC" +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA_DMP L"Multimedia.DMP" +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA_DMR L"Multimedia.DMR" +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA_DMR_MCX L"Multimedia.DMR.MCX" +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA_DMS L"Multimedia.DMS" +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA_DVR L"Multimedia.DVR" +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA_GAMECONSOLE L"Multimedia.GameConsole" +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA_PMP L"Multimedia.PMP" +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA_VOICERECORDER L"Multimedia.VoiceRecorder" +#define DEVICEDISPLAY_CATEGORY_MULTIMEDIA_APPLICATIONLAUNCHER_DIAL L"Multimedia.ApplicationLauncher.DIAL" + +// Network +#define DEVICEDISPLAY_CATEGORY_NETWORK L"Network" +#define DEVICEDISPLAY_CATEGORY_NETWORK_ACCESSPOINT L"Network.AccessPoint" +#define DEVICEDISPLAY_CATEGORY_NETWORK_BLUETOOTH L"Network.Bluetooth" +#define DEVICEDISPLAY_CATEGORY_NETWORK_BRIDGE L"Network.Bridge" +#define DEVICEDISPLAY_CATEGORY_NETWORK_BRIDGE_WIFI2ETHER L"Network.Bridge.Wifi2Ether" +#define DEVICEDISPLAY_CATEGORY_NETWORK_HOMEAUTOMATION L"Network.HomeAutomation" +#define DEVICEDISPLAY_CATEGORY_NETWORK_MOBILEBROADBAND L"Network.MobileBroadband" +#define DEVICEDISPLAY_CATEGORY_NETWORK_MODEM L"Network.Modem" +#define DEVICEDISPLAY_CATEGORY_NETWORK_NIC L"Network.NIC" +#define DEVICEDISPLAY_CATEGORY_NETWORK_NIC_ETHERNET L"Network.NIC.Ethernet" +#define DEVICEDISPLAY_CATEGORY_NETWORK_NIC_IR L"Network.NIC.IR" +#define DEVICEDISPLAY_CATEGORY_NETWORK_NIC_PLC L"Network.NIC.PLC" +#define DEVICEDISPLAY_CATEGORY_NETWORK_NIC_WIRELESS L"Network.NIC.Wireless" +#define DEVICEDISPLAY_CATEGORY_NETWORK_PRINTSERVER L"Network.PrintServer" +#define DEVICEDISPLAY_CATEGORY_NETWORK_ROUTER L"Network.Router" +#define DEVICEDISPLAY_CATEGORY_NETWORK_ROUTER_WIRELESS L"Network.Router.Wireless" +#define DEVICEDISPLAY_CATEGORY_NETWORK_SWITCH L"Network.Switch" +#define DEVICEDISPLAY_CATEGORY_NETWORK_UWB L"Network.UWB" +#define DEVICEDISPLAY_CATEGORY_NETWORK_WUSB L"Network.WUSB" +#define DEVICEDISPLAY_CATEGORY_NETWORK_WUSB_DWA L"Network.WUSB.DWA" + +//Pos +#define DEVICEDISPLAY_CATEGORY_POS_BARCODESCANNER L"Pos.BarcodeScanner" +#define DEVICEDISPLAY_CATEGORY_POS_CASHDRAWER L"Pos.CashDrawer" +#define DEVICEDISPLAY_CATEGORY_POS_LINEDISPLAY L"Pos.LineDisplay" +#define DEVICEDISPLAY_CATEGORY_POS_MAGNETICSTRIPEREADER L"Pos.MagneticStripeReader" +#define DEVICEDISPLAY_CATEGORY_POS_PAYMENTDEVICE L"Pos.PaymentDevice" +#define DEVICEDISPLAY_CATEGORY_POS_PRINTER L"Pos.Printer" + +// PrintFax +#define DEVICEDISPLAY_CATEGORY_PRINTFAX L"PrintFax" +#define DEVICEDISPLAY_CATEGORY_PRINTFAX_FAX L"PrintFax.FAX" +#define DEVICEDISPLAY_CATEGORY_PRINTFAX_MFP L"PrintFax.MFP" +#define DEVICEDISPLAY_CATEGORY_PRINTFAX_PRINTER L"PrintFax.Printer" +#define DEVICEDISPLAY_CATEGORY_PRINTFAX_PRINTER_INKJET L"PrintFax.Printer.Inkjet" +#define DEVICEDISPLAY_CATEGORY_PRINTFAX_PRINTER_LASER L"PrintFax.Printer.Laser" +#define DEVICEDISPLAY_CATEGORY_PRINTFAX_PRINTER_FILE L"PrintFax.Printer.File" +#define DEVICEDISPLAY_CATEGORY_PRINTFAX_PRINTER_VIRTUAL L"PrintFax.Printer.Virtual" +#define DEVICEDISPLAY_CATEGORY_PRINTFAX_PRINTER_SERVICE L"PrintFax.Printer.Service" +#define DEVICEDISPLAY_CATEGORY_PRINTFAX_PRINTER_3D L"PrintFax.Printer.3D" +#define DEVICEDISPLAY_CATEGORY_PRINTFAX_PRINTER_CLOUD L"PrintFax.Printer.Cloud" + +// Sensor +#define DEVICEDISPLAY_CATEGORY_SENSOR L"Sensor" +#define DEVICEDISPLAY_CATEGORY_SENSOR_ELECTRICAL L"Sensor.Electrical" +#define DEVICEDISPLAY_CATEGORY_SENSOR_ENVIRONMENTAL L"Sensor.Environmental" +#define DEVICEDISPLAY_CATEGORY_SENSOR_ENVIRONMENTAL_TEMP L"Sensor.Environmental.Temp" +#define DEVICEDISPLAY_CATEGORY_SENSOR_LIGHT L"Sensor.Light" +#define DEVICEDISPLAY_CATEGORY_SENSOR_LOCATON L"Sensor.Location" +#define DEVICEDISPLAY_CATEGORY_SENSOR_LOCATON_GPS L"Sensor.Location.GPS" +#define DEVICEDISPLAY_CATEGORY_SENSOR_MECHANICAL L"Sensor.Mechanical" +#define DEVICEDISPLAY_CATEGORY_SENSOR_MOTION L"Sensor.Motion" +#define DEVICEDISPLAY_CATEGORY_SENSOR_ORIENTATION L"Sensor.Orientation" +#define DEVICEDISPLAY_CATEGORY_SENSOR_PROXIMITY L"Sensor.Proximity" +#define DEVICEDISPLAY_CATEGORY_SENSOR_PROXIMITY_NFC L"Sensor.Proximity.NFC" +#define DEVICEDISPLAY_CATEGORY_SENSOR_PROXIMITY_RFID L"Sensor.Proximity.RFID" + +// Storage +#define DEVICEDISPLAY_CATEGORY_STORAGE L"Storage" +#define DEVICEDISPLAY_CATEGORY_STORAGE_CARDREADER L"Storage.CardReader" +#define DEVICEDISPLAY_CATEGORY_STORAGE_CARDREADER_COMBO L"Storage.CardReader.Combo" +#define DEVICEDISPLAY_CATEGORY_STORAGE_CHANGER L"Storage.Changer" +#define DEVICEDISPLAY_CATEGORY_STORAGE_CHANGER_OPTICAL L"Storage.Changer.Optical" +#define DEVICEDISPLAY_CATEGORY_STORAGE_FDD L"Storage.FDD" +#define DEVICEDISPLAY_CATEGORY_STORAGE_HDD L"Storage.HDD" +#define DEVICEDISPLAY_CATEGORY_STORAGE_HDD_SOLIDSTATE L"Storage.HDD.SolidState" +#define DEVICEDISPLAY_CATEGORY_STORAGE_NETWORK L"Storage.Network" +#define DEVICEDISPLAY_CATEGORY_STORAGE_NETWORK_WIRELESS L"Storage.Network.Wireless" +#define DEVICEDISPLAY_CATEGORY_STORAGE_OPTICAL L"Storage.Optical" +#define DEVICEDISPLAY_CATEGORY_STORAGE_OPTICAL_BLURAY L"Storage.Optical.BluRay" +#define DEVICEDISPLAY_CATEGORY_STORAGE_OPTICAL_CD L"Storage.Optical.CD" +#define DEVICEDISPLAY_CATEGORY_STORAGE_OPTICAL_DVD L"Storage.Optical.DVD" +#define DEVICEDISPLAY_CATEGORY_STORAGE_TAPE L"Storage.Tape" +#define DEVICEDISPLAY_CATEGORY_STORAGE_UFD L"Storage.UFD" + +// Imaging +#define DEVICEDISPLAY_CATEGORY_IMAGING L"Imaging" +#define DEVICEDISPLAY_CATEGORY_IMAGING_CAMCORDER L"Imaging.Camcorder" +#define DEVICEDISPLAY_CATEGORY_IMAGING_CAMERA L"Imaging.Camera" +#define DEVICEDISPLAY_CATEGORY_IMAGING_SCANNER L"Imaging.Scanner" +#define DEVICEDISPLAY_CATEGORY_IMAGING_WEBCAM L"Imaging.Webcam" + +// Personal Identity +#define DEVICEDISPLAY_CATEGORY_PERSONALIDENTITY L"PersonalIdentity" +#define DEVICEDISPLAY_CATEGORY_PERSONALIDENTITY_FACESCANNER L"PersonalIdentity.FaceScanner" +#define DEVICEDISPLAY_CATEGORY_PERSONALIDENTITY_FINGERPRINTREADER L"PersonalIdentity.FingerprintReader" +#define DEVICEDISPLAY_CATEGORY_PERSONALIDENTITY_RETINALSCANNER L"PersonalIdentity.RetinalScanner" +#define DEVICEDISPLAY_CATEGORY_PERSONALIDENTITY_SMARTCARD L"PersonalIdentity.Smartcard" +#define DEVICEDISPLAY_CATEGORY_PERSONALIDENTITY_SMARTCARDREADER L"PersonalIdentity.SmartcardReader" + +// Wearable +#define DEVICEDISPLAY_CATEGORY_WEARABLE L"Wearable" +#define DEVICEDISPLAY_CATEGORY_WEARABLE_HEADSET L"Wearable.Headset" +#define DEVICEDISPLAY_CATEGORY_WEARABLE_HEADSET_HOLOGRAPHIC L"Wearable.Headset.Holographic" +#define DEVICEDISPLAY_CATEGORY_WEARABLE_HEADSET_VIRTUALREALITY L"Wearable.Headset.VirtualReality" + +// Gaming +#define DEVICEDISPLAY_CATEGORY_GAMING_DEVICES L"GamingDevices" +#define DEVICEDISPLAY_CATEGORY_GAMING_DEVICES_XBOX L"GamingDevices.Xbox" +#define DEVICEDISPLAY_CATEGORY_GAMING_DEVICES_XBOX360 L"GamingDevices.Xbox360" +#define DEVICEDISPLAY_CATEGORY_GAMING_DEVICES_XBOXONE L"GamingDevices.XboxOne" +#define DEVICEDISPLAY_CATEGORY_GAMING_DEVICES_PLAYSTATION L"GamingDevices.Playstation" +#define DEVICEDISPLAY_CATEGORY_GAMING_DEVICES_PLAYSTATION3 L"GamingDevices.Playstation3" +#define DEVICEDISPLAY_CATEGORY_GAMING_DEVICES_PLAYSTATION4 L"GamingDevices.Playstation4" +#define DEVICEDISPLAY_CATEGORY_GAMING_DEVICES_CONSOLE L"GamingDevices.GameConsole" +#define DEVICEDISPLAY_CATEGORY_GAMING_DEVICES_PORTABLE L"GamingDevices.Portable" + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DhcpCSdk.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DhcpCSdk.h new file mode 100644 index 0000000000000000000000000000000000000000..d044f5d1599ebb1437bcd5d8fe2d2652116e5298 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DhcpCSdk.h @@ -0,0 +1,304 @@ +#include + +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + dhcpcsdk.h + +Abstract: + + These are the exported dhcpv6 client api function definitions + +Author: + + Achint Setia (asetia) July-1-2005 + +Environment: + + User Mode - Win32 + +Revision History: + + +--*/ + +//================================================================================ +// Copyright (C) 1997-1999 Microsoft Corporation +// Description: these are the exported dhcp client api function definitions +//================================================================================ +#ifndef _DHCPCSDK_ +#define _DHCPCSDK_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef DHCP_OPTIONS_DEFINED +#define DHCP_OPTIONS_DEFINED + +#if _MSC_VER > 1000 +#pragma once +#endif + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +// +// DHCP Standard Options. +// + +#define OPTION_PAD 0 +#define OPTION_SUBNET_MASK 1 +#define OPTION_TIME_OFFSET 2 +#define OPTION_ROUTER_ADDRESS 3 +#define OPTION_TIME_SERVERS 4 +#define OPTION_IEN116_NAME_SERVERS 5 +#define OPTION_DOMAIN_NAME_SERVERS 6 +#define OPTION_LOG_SERVERS 7 +#define OPTION_COOKIE_SERVERS 8 +#define OPTION_LPR_SERVERS 9 +#define OPTION_IMPRESS_SERVERS 10 +#define OPTION_RLP_SERVERS 11 +#define OPTION_HOST_NAME 12 +#define OPTION_BOOT_FILE_SIZE 13 +#define OPTION_MERIT_DUMP_FILE 14 +#define OPTION_DOMAIN_NAME 15 +#define OPTION_SWAP_SERVER 16 +#define OPTION_ROOT_DISK 17 +#define OPTION_EXTENSIONS_PATH 18 + +// +// IP layer parameters - per host +// + +#define OPTION_BE_A_ROUTER 19 +#define OPTION_NON_LOCAL_SOURCE_ROUTING 20 +#define OPTION_POLICY_FILTER_FOR_NLSR 21 +#define OPTION_MAX_REASSEMBLY_SIZE 22 +#define OPTION_DEFAULT_TTL 23 +#define OPTION_PMTU_AGING_TIMEOUT 24 +#define OPTION_PMTU_PLATEAU_TABLE 25 + +// +// Link layer parameters - per interface. +// + +#define OPTION_MTU 26 +#define OPTION_ALL_SUBNETS_MTU 27 +#define OPTION_BROADCAST_ADDRESS 28 +#define OPTION_PERFORM_MASK_DISCOVERY 29 +#define OPTION_BE_A_MASK_SUPPLIER 30 +#define OPTION_PERFORM_ROUTER_DISCOVERY 31 +#define OPTION_ROUTER_SOLICITATION_ADDR 32 +#define OPTION_STATIC_ROUTES 33 +#define OPTION_TRAILERS 34 +#define OPTION_ARP_CACHE_TIMEOUT 35 +#define OPTION_ETHERNET_ENCAPSULATION 36 + +// +// TCP Paramters - per host +// + +#define OPTION_TTL 37 +#define OPTION_KEEP_ALIVE_INTERVAL 38 +#define OPTION_KEEP_ALIVE_DATA_SIZE 39 + +// +// Application Layer Parameters +// + +#define OPTION_NETWORK_INFO_SERVICE_DOM 40 +#define OPTION_NETWORK_INFO_SERVERS 41 +#define OPTION_NETWORK_TIME_SERVERS 42 + +// +// Vender specific information option +// + +#define OPTION_VENDOR_SPEC_INFO 43 + +// +// NetBIOS over TCP/IP Name server option +// + +#define OPTION_NETBIOS_NAME_SERVER 44 +#define OPTION_NETBIOS_DATAGRAM_SERVER 45 +#define OPTION_NETBIOS_NODE_TYPE 46 +#define OPTION_NETBIOS_SCOPE_OPTION 47 + +// +// X Window System Options. +// + +#define OPTION_XWINDOW_FONT_SERVER 48 +#define OPTION_XWINDOW_DISPLAY_MANAGER 49 + +// +// Other extensions +// + +#define OPTION_REQUESTED_ADDRESS 50 +#define OPTION_LEASE_TIME 51 +#define OPTION_OK_TO_OVERLAY 52 +#define OPTION_MESSAGE_TYPE 53 +#define OPTION_SERVER_IDENTIFIER 54 +#define OPTION_PARAMETER_REQUEST_LIST 55 +#define OPTION_MESSAGE 56 +#define OPTION_MESSAGE_LENGTH 57 +#define OPTION_RENEWAL_TIME 58 // T1 +#define OPTION_REBIND_TIME 59 // T2 +#define OPTION_CLIENT_CLASS_INFO 60 +#define OPTION_CLIENT_ID 61 + +#define OPTION_TFTP_SERVER_NAME 66 +#define OPTION_BOOTFILE_NAME 67 + +#define OPTION_IPV6_ONLY_PREFERRED 108 + +#define OPTION_DNR 162 + +#define OPTION_MSFT_IE_PROXY 252 +#define OPTION_END 255 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // DHCP_OPTIONS_DEFINED + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +#ifndef DHCPAPI_PARAMS_DEFINED +#define DHCPAPI_PARAMS_DEFINED +typedef struct _DHCPAPI_PARAMS { // use this structure to request params + ULONG Flags; // for future use + ULONG OptionId; // what option is this? + BOOL IsVendor; // is this vendor specific? + #ifdef __midl + [size_is(nBytesData)] LPBYTE Data; // the actual data + #else + _Field_size_bytes_(nBytesData) LPBYTE Data; + #endif + DWORD nBytesData; // how many bytes of data are there in Data? +} DHCPAPI_PARAMS, *PDHCPAPI_PARAMS, *LPDHCPAPI_PARAMS; +#endif // DHCPAPI_PARAMS_DEFINED + +typedef struct _DHCPAPI_PARAMS +DHCPCAPI_PARAMS, *PDHCPCAPI_PARAMS, *LPDHCPCAPI_PARAMS; + +typedef struct _DHCPCAPI_PARAMS_ARARAY { // array of params.. + ULONG nParams; // size of array + #ifdef __midl + [size_is(nParams)] LPDHCPCAPI_PARAMS Params; // actual array + #else + _Field_size_(nParams) LPDHCPCAPI_PARAMS Params; + #endif +} DHCPCAPI_PARAMS_ARRAY, *PDHCPCAPI_PARAMS_ARRAY, *LPDHCPCAPI_PARAMS_ARRAY; + +typedef struct _DHCPCAPI_CLASSID { // defines a client class id. + ULONG Flags; // must be zero currently. + #ifdef __midl + [size_is(nBytesData)] LPBYTE Data; // classid binary data. + #else + _Field_size_bytes_(nBytesData) LPBYTE Data; + #endif + ULONG nBytesData; // how many bytes of data are there? +} DHCPCAPI_CLASSID, *PDHCPCAPI_CLASSID, *LPDHCPCAPI_CLASSID; + + +#define DHCPCAPI_REQUEST_PERSISTENT 0x01 // request this options "permanently" +#define DHCPCAPI_REQUEST_SYNCHRONOUS 0x02 // request and block on it +#define DHCPCAPI_REQUEST_ASYNCHRONOUS 0x04 // request and return, set event on completion +#define DHCPCAPI_REQUEST_CANCEL 0x08 // cancel request +#define DHCPCAPI_REQUEST_MASK 0x0F // allowed flags.. + +DWORD +APIENTRY +DhcpCApiInitialize( + OUT LPDWORD Version +); + +VOID +APIENTRY +DhcpCApiCleanup( + VOID +); + +DWORD // win32 status +APIENTRY +DhcpRequestParams( // request parameters of client + IN DWORD Flags, // must be DHCPCAPI_REQUEST_SYNCHRONOUS + IN LPVOID Reserved, // this parameter is reserved + _In_ LPWSTR AdapterName, // adapter name to request for + IN LPDHCPCAPI_CLASSID ClassId, // reserved must be NULL + IN DHCPCAPI_PARAMS_ARRAY SendParams, // parameters to send. + IN OUT DHCPCAPI_PARAMS_ARRAY RecdParams, // parameters that are to be requested.. + _Out_writes_bytes_to_(*pSize, *pSize) LPBYTE Buffer, // a buffer to hold data for RecdParams + _Inout_ LPDWORD pSize, // i/p: size of above in BYTES, o/p required bytes.. + _In_ LPWSTR RequestIdStr // needed for persistent requests +); // returns ERROR_MORE_DATA if o/p buffer is of insufficient size, and fills in reqd size in # of bytes + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +DWORD // win32 status +APIENTRY +DhcpUndoRequestParams( // undo the effect of a persistent request -- currently undo from registry + _Reserved_ DWORD Flags, // must be zero, reserved + _Reserved_ LPVOID Reserved, // this parameter is reserved + _In_ LPWSTR AdapterName, // the name of the adpater to delete for + _In_ LPWSTR RequestIdStr // needed for persistent requests.. +); + +#define DHCPCAPI_REGISTER_HANDLE_EVENT 0x01 // handle returned is to an event +DWORD // win32 status +APIENTRY +DhcpRegisterParamChange( // notify if a parameter has changed + IN DWORD Flags, // must be zero, reserved + _Reserved_ LPVOID Reserved, // this parameter is reserved + _In_ LPWSTR AdapterName, // adapter of interest + IN LPDHCPCAPI_CLASSID ClassId, // reserved must be NULL + IN DHCPCAPI_PARAMS_ARRAY Params, // parameters of interest + IN OUT LPVOID Handle // handle to event that will be SetEvent'ed in case of param change +); + +#define DHCPCAPI_DEREGISTER_HANDLE_EVENT 0x01 // de-register handle that is an event +DWORD +APIENTRY +DhcpDeRegisterParamChange( // undo the registration + IN DWORD Flags, // MUST BE ZERO --> No flags yet. + IN LPVOID Reserved, // MUST BE NULL --> Reserved + IN LPVOID Event // handle to event returned by DhcpRegisterParamChange. +); + +DWORD +APIENTRY +DhcpRemoveDNSRegistrations( + VOID + ); + +DWORD +APIENTRY +DhcpGetOriginalSubnetMask( + IN LPCWSTR sAdapterName, + OUT DWORD *dwSubnetMask +); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +//================================================================================ +// end of file +//================================================================================ +#endif // _DHCPCSDK_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DhcpSSdk.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DhcpSSdk.h new file mode 100644 index 0000000000000000000000000000000000000000..e1f737c146999cfc29f57996f11a689eac89414a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DhcpSSdk.h @@ -0,0 +1,503 @@ +/*++ + +Copyright (C) 1997-1999 Microsoft Corporation + +Module Name: + + dhcpssdk.h + +Abstract: + + Header for writing a DHCP Callout DLL. + +--*/ + +#ifndef _CALLOUT_H_ +#define _CALLOUT_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#if _MSC_VER > 1000 +#pragma once +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// This structure could change any day. This will be accurate only for version 0 -- which +// has to be checked for by any CalloutDLL that is hooking onto the DhcpHandleOptionsHook. + + +typedef DWORD DHCP_IP_ADDRESS; +typedef struct _DHCP_SERVER_OPTIONS { + BYTE *MessageType; + DHCP_IP_ADDRESS UNALIGNED *SubnetMask; + DHCP_IP_ADDRESS UNALIGNED *RequestedAddress; + DWORD UNALIGNED *RequestLeaseTime; + BYTE *OverlayFields; + DHCP_IP_ADDRESS UNALIGNED *RouterAddress; + DHCP_IP_ADDRESS UNALIGNED *Server; + BYTE *ParameterRequestList; + DWORD ParameterRequestListLength; + CHAR *MachineName; + DWORD MachineNameLength; + BYTE ClientHardwareAddressType; + BYTE ClientHardwareAddressLength; + BYTE *ClientHardwareAddress; + CHAR *ClassIdentifier; + DWORD ClassIdentifierLength; + BYTE *VendorClass; + DWORD VendorClassLength; + DWORD DNSFlags; + DWORD DNSNameLength; + LPBYTE DNSName; + BOOLEAN DSDomainNameRequested; + CHAR *DSDomainName; + DWORD DSDomainNameLen; + DWORD UNALIGNED *ScopeId; +} DHCP_SERVER_OPTIONS, *LPDHCP_SERVER_OPTIONS; + +// +// The location in registry where the REG_MULTI_SZ list of callout DLLs +// that the DHCP Server will try to load. +// + +#define DHCP_CALLOUT_LIST_KEY L"System\\CurrentControlSet\\Services\\DHCPServer\\Parameters" +#define DHCP_CALLOUT_LIST_VALUE L"CalloutDlls" +#define DHCP_CALLOUT_LIST_TYPE REG_MULTI_SZ +#define DHCP_CALLOUT_ENTRY_POINT "DhcpServerCalloutEntry" + +// +// Control CODES used by DHCP Server to notify server state change. +// + +#define DHCP_CONTROL_START 0x00000001 +#define DHCP_CONTROL_STOP 0x00000002 +#define DHCP_CONTROL_PAUSE 0x00000003 +#define DHCP_CONTROL_CONTINUE 0x00000004 + +// +// Other ControlCodes used by various Callout HOOKS. +// + +#define DHCP_DROP_DUPLICATE 0x00000001 // duplicate of pkt being processed +#define DHCP_DROP_NOMEM 0x00000002 // not enough server mem in queues +#define DHCP_DROP_INTERNAL_ERROR 0x00000003 // ooops? +#define DHCP_DROP_TIMEOUT 0x00000004 // too late, pkt is too old +#define DHCP_DROP_UNAUTH 0x00000005 // server is not authorized to run +#define DHCP_DROP_PAUSED 0x00000006 // service is paused +#define DHCP_DROP_NO_SUBNETS 0x00000007 // no subnets configured on server +#define DHCP_DROP_INVALID 0x00000008 // invalid packet or client +#define DHCP_DROP_WRONG_SERVER 0x00000009 // client in different DS enterprise +#define DHCP_DROP_NOADDRESS 0x0000000A // no address available to offer +#define DHCP_DROP_PROCESSED 0x0000000B // packet has been processed +#define DHCP_DROP_GEN_FAILURE 0x00000100 // catch-all error +#define DHCP_SEND_PACKET 0x10000000 // send the packet on wire +#define DHCP_PROB_CONFLICT 0x20000001 // address conflicted.. +#define DHCP_PROB_DECLINE 0x20000002 // an addr got declined +#define DHCP_PROB_RELEASE 0x20000003 // an addr got released +#define DHCP_PROB_NACKED 0x20000004 // a client is being nacked. +#define DHCP_GIVE_ADDRESS_NEW 0x30000001 // give client a "new" address +#define DHCP_GIVE_ADDRESS_OLD 0x30000002 // renew client's "old" address +#define DHCP_CLIENT_BOOTP 0x30000003 // client is a BOOTP client +#define DHCP_CLIENT_DHCP 0x30000004 // client is a DHCP client + + + +typedef +DWORD +(APIENTRY *LPDHCP_CONTROL)( + IN DWORD dwControlCode, + IN LPVOID lpReserved +) +/*++ + +Routine Description: + + This routine is called whenever the DHCP Server service is + started, stopped, paused or continued as defined by the values of + the dwControlCode parameter. The lpReserved parameter is reserved + for future use and it should not be interpreted in any way. This + routine should not block. + +Arguments: + + dwControlCode - one of the DHCP_CONTROL_* values + lpReserved - reserved for future use. + +--*/ +; + +typedef +DWORD +(APIENTRY *LPDHCP_NEWPKT)( + IN OUT LPBYTE *Packet, + IN OUT DWORD *PacketSize, + IN DWORD IpAddress, + IN LPVOID Reserved, + IN OUT LPVOID *PktContext, + OUT LPBOOL ProcessIt +) +/*++ + +Routine Description: + + This routine is called soon after the DHCP Server receives a + packet that it attempts to process. This routine is in the + critical path of server execution and should return very fast, as + otherwise server performance will be impacted. The Callout DLL + can modify the buffer or return a new buffer via the Packet, + PacketSize arguments. Also, if the callout DLL has internal + structures to keep track of the packet and its progress, it can + then return a context to this packet in the PktContext parameter. + This context will be passed to almost all other hooks to indicate + the packet being referred to. Also, if the Callout DLL is + planning on processing the packet or for some other reason the + DHCP server is not expected to process this packet, then it can + set the ProcessIt flag to FALSE to indicate that the packet is to + be dropped. + +Arguments: + + Packet - This parameter points to a character buffer that holds + the actual packet received by the DHCP Server. + + PacketSize - This parameter points to a variable that holds the + size of the above buffer. + + IpAddress - This parameter points to an IPV4 host order IP address + of the socket that this packet was received on. + + Reserved -Reserved for future use. + + PktContect - This is an opaque pointer used by the DHCP Server for + future references to this packet. It is expected that the callout + DLL will provide this pointer if it is interested in keeping track + of the packet. (See the descriptions for the hooks below for + other usage of this Context). + + ProcessIt - This is a BOOL flag that the CalloutDll can set to + TRUE or reset to indicate if the DHCP Server should continue + processing this packet or not, respectively. + +--*/ +; + +typedef +DWORD +(APIENTRY *LPDHCP_DROP_SEND)( + IN OUT LPBYTE *Packet, + IN OUT DWORD *PacketSize, + IN DWORD ControlCode, + IN DWORD IpAddress, + IN LPVOID Reserved, + IN LPVOID PktContext +) +/*++ + +Routine Description: + + This hook is called if a packet is (DropPktHook) dropped for some + reason or if the packet is completely processed. (If a packet is + dropped, the hook is called twice as it is called once again to + note that the packet has been completely processed). The callout + DLL should be prepared to handle this hook multiple times for a + packet. This routine should not block. The ControlCode parameter + defines the reasons for the packet being dropped: + + * DHCP_DROP_DUPLICATE - This packet is a duplicate of another + received by the server. + * DHCP_DROP_NOMEM - Not enough memory to process the packet. + * DHCP_DROP_INTERNAL_ERROR - Unexpected nternal error occurred. + * DHCP_DROP_TIMEOUT - The packet is too old to process. + * DHCP_DROP_UNAUTH - The server is not authorized. + * DHCP_DROP_PAUSED - The server is paused. + * DHCP_DROP_NO_SUBNETS - There are no subnets configured. + * DHCP_DROP_INVALID - The packet is invalid or it came on an + invalid socket .. + * DHCP_DROP_WRONG_SERVER - The packet was sent to the wrong DHCP Server. + * DHCP_DROP_NOADDRESS - There is no address to offer. + * DHCP_DROP_PROCESSED - The packet has been processed. + * DHCP_DROP_GEN_FAILURE - An unknown error occurred. + + This routine is also called right before a response is sent down + the wire (SendPktHook) and in this case the ControlCode has a + value of DHCP_SEND_PACKET. + +Arguments: + + Packet - This parameter points to a character buffer that holds + the packet being processed by the DHCP Server. + + PacketSize - This parameter points to a variable that holds the + size of the above buffer. + + ControlCode - See description for various control codes. + + IpAddress - This parameter points to an IPV4 host order IP address + of the socket that this packet was received on. + + Reserved - Reserved for future use. + + PktContext - This parameter is the packet context that the Callout + DLL NewPkt Hook returned for this packet. This can be used to + track a packet. + +--*/ +; + +typedef +DWORD +(APIENTRY *LPDHCP_PROB)( + IN LPBYTE Packet, + IN DWORD PacketSize, + IN DWORD ControlCode, + IN DWORD IpAddress, + IN DWORD AltAddress, + IN LPVOID Reserved, + IN LPVOID PktContext +) +/*++ + +Routine Description: + + This routine is called whenever special events occur that cause + the packet to be dropped etc. The possible ControlCodes and their + meanings are as follows: + + * DHCP_PROB_CONFLICT - The address attempted to be offered + (AltAddress) is in use in the network already. + * DHCP_PROB_DECLINE - The packet was a DECLINE message for the + address specified in AltAddress. + * DHCP_PROB_RELEASE - The packet was a RELEASE message for the + address specified in AltAddress. + * DHCP_PROB_NACKED - The packet was a REQUEST message for address + specified in AltAddress and it was NACKed by the server. + + This routine should not block. + +Arguments: + + Packet - This parameter is the buffer of the packet being + processed. + + PacketSize - This is the size of the above buffer. + + ControlCode - Specifies the event. See description below for + control codes and meanings. + + IpAddress - IpV4 address of socket this packet was received on. + + AltAddress - Request IpV4 Address or Ip address that is in + conflict. + + Reserved - Reserve for future use. + + PktContext - This is the context returned by the NewPkt hook for + this packet. + +--*/ +; + +typedef +DWORD +(APIENTRY *LPDHCP_GIVE_ADDRESS)( + IN LPBYTE Packet, + IN DWORD PacketSize, + IN DWORD ControlCode, + IN DWORD IpAddress, + IN DWORD AltAddress, + IN DWORD AddrType, + IN DWORD LeaseTime, + IN LPVOID Reserved, + IN LPVOID PktContext +) +/*++ + +Routine Description: + + This routine is called when the server is about to send an ACK to + a REQUEST message. The ControlCode specifies if the address is a + totally new address or if it an renewal of an old address (with + values DHCP_GIVE_ADDRESS_NEW and DHCP_GIVE_ADDRESS_OLD + respectively). The address being offered is passed as the + AltAddress parameter and the AddrType parameter can be one of + DHCP_CLIENT_BOOTP or DHCP_CLIENT_DHCP indicating whether the + client is using BOOTP or DHCP respectively. This call should not + block. + +Arguments: + + Packet - This parameter is the buffer of the packet being + processed. + + PacketSize - This is the size of the above buffer. + + ControlCode - See description above for control codes and + meanings. + + IpAddress - IpV4 address of socket this packet was received on. + + AltAddress - IpV4 address being ACKed to the client. + + AddrType - Is this a DHCP or BOOTP address? + + LeaseTime - Lease duration being passed. + + Reserved - Reserve for future use. + + PktContext - This is the context returned by the NewPkt hook for + this packet. + +--*/ +; + +typedef +DWORD +(APIENTRY *LPDHCP_HANDLE_OPTIONS)( + IN LPBYTE Packet, + IN DWORD PacketSize, + IN LPVOID Reserved, + IN LPVOID PktContext, + IN OUT LPDHCP_SERVER_OPTIONS ServerOptions +) +/*++ + +Routine Description: + + This routine can be utilized by the CalloutDLL to avoid parsing + the whole packet. The packet is parsed by the server and some + commonly used options are returned in the parsed pointers + structure (see header for definition of DHCP_SERVER_OPTIONS). The + hook is expected to make a copy of the structure pointed to by + ServerOptions if it needs it beyond this function call. This + routine may be called several times for a single packet. This + routine should not block. + +Arguments: + + Packet - This parameter is the buffer of the packet being + processed. + + PacketSize - This is the size of the above buffer. + + Reserved - Reserve for future use. + + PktContext - This is the context returned by the NewPkt hook for + this packet. + + ServerOptions - This parameter is the structure that contains a + bunch of pointers that represent corresponding options. + +--*/ +; + +typedef +DWORD +(APIENTRY *LPDHCP_DELETE_CLIENT)( + IN DWORD IpAddress, + IN LPBYTE HwAddress, + IN ULONG HwAddressLength, + IN DWORD Reserved, + IN DWORD ClientType +) +/*++ + +Routine Description: + + This routine is called before a client lease is deleted off the + active leases database. The ClientType field is currently not + provided and this should not be used. This routine should not + block. + +Arguments: + + IpAddress - IpV4 address of the client lease being deleted. + + HwAddress - Buffer holding the Hardware address of the client (MAC). + + HwAddressLength - This specifies the length of the above buffer. + + Reserved - Reserved for future use. + + ClientType - Reserved for future use. +--*/ +; + +typedef +struct _DHCP_CALLOUT_TABLE { + LPDHCP_CONTROL DhcpControlHook; + LPDHCP_NEWPKT DhcpNewPktHook; + LPDHCP_DROP_SEND DhcpPktDropHook; + LPDHCP_DROP_SEND DhcpPktSendHook; + LPDHCP_PROB DhcpAddressDelHook; + LPDHCP_GIVE_ADDRESS DhcpAddressOfferHook; + LPDHCP_HANDLE_OPTIONS DhcpHandleOptionsHook; + LPDHCP_DELETE_CLIENT DhcpDeleteClientHook; + LPVOID DhcpExtensionHook; + LPVOID DhcpReservedHook; +} DHCP_CALLOUT_TABLE, *LPDHCP_CALLOUT_TABLE; + +typedef +DWORD +(APIENTRY *LPDHCP_ENTRY_POINT_FUNC) ( + IN LPWSTR ChainDlls, + IN DWORD CalloutVersion, + IN OUT LPDHCP_CALLOUT_TABLE CalloutTbl +) +/*++ + +Routine Description: + + This is the routine that is called by the DHCP Server when it + successfully loads a DLL. If the routine succeeds, then the + DHCP Server does not attempt to load any of the DLLs specified in + the ChainDlls list of DLLs. If this function fails for some + reason, then the DHCP Server proceeds to the next DLL in the + ChainDlls structure. + + Note that for version negotiation, the server may call this + routine several times until a compatible version is found. + + It is expected that the entrypoint routine would walk through the + names of the dlls and attempt to load each of them and when it + succeeds in retrieving the entry point, it attempts to get the + cumulative set of hooks by repeating the above procedure (as done + by the DHCP Server). + +Arguments: + + ChainDlls - This is a set of DLL names in REG_MULTI_SZ format (as + returned by Registry function calls). This does not contain the + name of the current DLL itself, but only the names of all DLLs + that follow the current DLL. + + CalloutVersion - This is the version that the Callout DLL is + expected to support. The current version number is 0. + + CalloutTbl - This is the cumulative set of Hooks that is needed by + the current DLLs as well as all the DLLs in ChainDlls. It is the + responsibility of the current DLL to retrive the cumulative set of + Hooks and merge that with its own set of hooks and return that in + this table structure. The table structure is defined above. + +--*/ +; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _CALLOUT_H_ + +//======================================================================== +// end of file +//======================================================================== diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dhcpv6cSdk.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dhcpv6cSdk.h new file mode 100644 index 0000000000000000000000000000000000000000..6de24f3b0b66f8b9a60410341363041973014112 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dhcpv6cSdk.h @@ -0,0 +1,222 @@ +#include + +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + dhcpv6csdk.h + +Abstract: + + These are the exported dhcpv6 client api function definitions + +Author: + + Achint Setia (asetia) July-1-2005 + +Environment: + + User Mode - Win32 + +Revision History: + + +--*/ + +#ifndef _DHCPV6CSDK_ +#define _DHCPV6CSDK_ +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef DHCPV6_OPTIONS_DEFINED +#define DHCPV6_OPTIONS_DEFINED + +#if _MSC_VER > 1000 +#pragma once +#endif + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +// +// DHCPv6 Standard Options(non-encapsulated). +// + + + +#define DHCPV6_OPTION_CLIENTID 1 +#define DHCPV6_OPTION_SERVERID 2 +#define DHCPV6_OPTION_IA_NA 3 +#define DHCPV6_OPTION_IA_TA 4 +#define DHCPV6_OPTION_ORO 6 +#define DHCPV6_OPTION_PREFERENCE 7 +#define DHCPV6_OPTION_UNICAST 12 +#define DHCPV6_OPTION_RAPID_COMMIT 14 +#define DHCPV6_OPTION_USER_CLASS 15 +#define DHCPV6_OPTION_VENDOR_CLASS 16 +#define DHCPV6_OPTION_VENDOR_OPTS 17 +#define DHCPV6_OPTION_RECONF_MSG 19 + +#define DHCPV6_OPTION_SIP_SERVERS_NAMES 21 +#define DHCPV6_OPTION_SIP_SERVERS_ADDRS 22 +#define DHCPV6_OPTION_DNS_SERVERS 23 +#define DHCPV6_OPTION_DOMAIN_LIST 24 +#define DHCPV6_OPTION_IA_PD 25 +#define DHCPV6_OPTION_NIS_SERVERS 27 +#define DHCPV6_OPTION_NISP_SERVERS 28 +#define DHCPV6_OPTION_NIS_DOMAIN_NAME 29 +#define DHCPV6_OPTION_NISP_DOMAIN_NAME 30 + +#define DHCPV6_OPTION_DNR 144 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // DHCPV6_OPTIONS_DEFINED + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +#ifndef DHCPV6API_PARAMS_DEFINED +#define DHCPV6API_PARAMS_DEFINED + +typedef struct _DHCPV6CAPI_PARAMS { // use this structure to request params + ULONG Flags; // for future use + ULONG OptionId; // what option is this? + BOOL IsVendor; // is this vendor specific? + LPBYTE Data; // the actual data + DWORD nBytesData; // how many bytes of data are there in Data? +} DHCPV6CAPI_PARAMS, *PDHCPV6CAPI_PARAMS, *LPDHCPV6CAPI_PARAMS; + +#endif // DHCPV6API_PARAMS_DEFINED + +typedef struct _DHCPV6CAPI_PARAMS_ARRAY { // array of params.. + ULONG nParams; // size of array + LPDHCPV6CAPI_PARAMS Params; // actual array +} DHCPV6CAPI_PARAMS_ARRAY, *PDHCPV6CAPI_PARAMS_ARRAY, *LPDHCPV6CAPI_PARAMS_ARRAY; + +typedef struct _DHCPV6CAPI_CLASSID { // defines a client class id. + ULONG Flags; // must be zero currently. + #ifdef __midl + [size_is(nBytesData)] LPBYTE Data; + #else + _Field_size_bytes_(nBytesData) LPBYTE Data; // classid binary data. + #endif + ULONG nBytesData; // how many bytes of data are there? +} DHCPV6CAPI_CLASSID, *PDHCPV6CAPI_CLASSID, *LPDHCPV6CAPI_CLASSID; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +typedef +enum +{ + STATUS_NO_ERROR, //Prefix successfully leased, renewed. + STATUS_UNSPECIFIED_FAILURE, //Some unspecified failure occurred while trying to process the prefix. + STATUS_NO_BINDING = 3, //The server doesn't have binding for the prefix. + STATUS_NOPREFIX_AVAIL = 6 //The server doesn't have prefix to offer to the requesting client. +}StatusCode; + +typedef struct _DHCPV6Prefix{ + UCHAR prefix[16]; //128 bit prefix + DWORD prefixLength; //(48-64 bits) + DWORD preferredLifeTime; //The Preferred Lifetime of the Prefix returned or requested in seconds + DWORD validLifeTime; //The Valid Lifetime of the Prefix returned or requested in seconds + StatusCode status; //The status code returned by the server for the prefix +}DHCPV6Prefix, *PDHCPV6Prefix, *LPDHCPV6Prefix; + +typedef struct _DHCPV6PrefixLeaseInformation { + DWORD nPrefixes; // number of prefixes. + _Field_size_(nPrefixes) LPDHCPV6Prefix prefixArray; // Array of prefixes + DWORD iaid; //The 32 bit Identity Association identifier for the prefix option. + time_t T1; //The absolute renewal time for the prefixes in seconds + time_t T2; //The absolute rebind time for the prefixes in seconds + time_t MaxLeaseExpirationTime; //The absolute maximum lease expiration time of all the prefix leases in this structure. + time_t LastRenewalTime; // The absolute time at which the last renewal for the prefixes happened. + StatusCode status; //The status code returned by the server for the IAPD + _Field_size_bytes_(ServerIdLen) LPBYTE ServerId; // The server DUID from which the prefix is received. This is used in subsequent Renews. + DWORD ServerIdLen; // The length of the above DUID data. +} DHCPV6PrefixLeaseInformation, *PDHCPV6PrefixLeaseInformation, *LPDHCPV6PrefixLeaseInformation; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +VOID +APIENTRY +Dhcpv6CApiInitialize( + OUT LPDWORD Version +); + +VOID +APIENTRY +Dhcpv6CApiCleanup( + VOID +); + +DWORD // win32 status +APIENTRY +Dhcpv6RequestParams( // request parameters of client +IN BOOL forceNewInform, +IN LPVOID reserved, +_In_ IN LPWSTR adapterName, +IN LPDHCPV6CAPI_CLASSID classId, +IN OUT DHCPV6CAPI_PARAMS_ARRAY recdParams, +IN LPBYTE buffer, +IN OUT LPDWORD pSize +); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +DWORD +APIENTRY +Dhcpv6RequestPrefix( +IN _In_ LPWSTR adapterName, +IN LPDHCPV6CAPI_CLASSID pclassId, +IN OUT LPDHCPV6PrefixLeaseInformation prefixleaseInfo, +_Out_ DWORD* pdwTimeToWait +); + +DWORD +APIENTRY +Dhcpv6RenewPrefix( +IN _In_ LPWSTR adapterName, +IN LPDHCPV6CAPI_CLASSID pclassId, +IN OUT LPDHCPV6PrefixLeaseInformation prefixleaseInfo, +_Out_ DWORD* pdwTimeToWait, +IN DWORD bValidatePrefix +); + +DWORD +APIENTRY +Dhcpv6ReleasePrefix( +_In_ IN LPWSTR adapterName, +IN LPDHCPV6CAPI_CLASSID classId, +IN LPDHCPV6PrefixLeaseInformation leaseInfo +); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +//================================================================================ +// end of file +//================================================================================ +#endif // _DHCPV6CSDK_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DiagnosticDataQuery.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DiagnosticDataQuery.h new file mode 100644 index 0000000000000000000000000000000000000000..9179f744d9a56df716cc25a90f3835737bde6e00 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DiagnosticDataQuery.h @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation + +#pragma once + +#include + +DECLARE_HANDLE(HDIAGNOSTIC_DATA_QUERY_SESSION); +DECLARE_HANDLE(HDIAGNOSTIC_REPORT); +DECLARE_HANDLE(HDIAGNOSTIC_EVENT_TAG_DESCRIPTION); +DECLARE_HANDLE(HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION); +DECLARE_HANDLE(HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION); +DECLARE_HANDLE(HDIAGNOSTIC_RECORD); + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// Caller is expected to destroy hSession with DdqCloseSession +STDAPI DdqCreateSession( + _In_ DdqAccessLevel accessLevel, + _Out_ HDIAGNOSTIC_DATA_QUERY_SESSION* hSession); + +STDAPI DdqCloseSession( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession); + +STDAPI DdqGetSessionAccessLevel( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _Out_ DdqAccessLevel* accessLevel); + +STDAPI DdqGetDiagnosticDataAccessLevelAllowed( + _Out_ DdqAccessLevel* accessLevel); + +STDAPI DdqGetDiagnosticRecordStats( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_ DIAGNOSTIC_DATA_SEARCH_CRITERIA const* searchCriteria, + _Out_ UINT32* recordCount, + _Out_ INT64* minRowId, + _Out_ INT64* maxRowId); + +// Caller is expected to free payload with CoTaskMemFree() +STDAPI DdqGetDiagnosticRecordPayload( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_ INT64 rowId, + _Out_ PCWSTR* payload); + +// Invoke DdqFreeDiagnosticRecordLocaleTags() to free tagDescription +STDAPI DdqGetDiagnosticRecordLocaleTags( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_ PCWSTR locale, + _Out_ HDIAGNOSTIC_EVENT_TAG_DESCRIPTION* hTagDescription); + +STDAPI DdqFreeDiagnosticRecordLocaleTags( + _In_ HDIAGNOSTIC_EVENT_TAG_DESCRIPTION hTagDescription); + +STDAPI DdqGetDiagnosticRecordLocaleTagAtIndex( + _In_ HDIAGNOSTIC_EVENT_TAG_DESCRIPTION hTagDescription, + _In_ UINT32 index, + _Out_ DIAGNOSTIC_DATA_EVENT_TAG_DESCRIPTION* tagDescription); + +STDAPI DdqGetDiagnosticRecordLocaleTagCount( + _In_ HDIAGNOSTIC_EVENT_TAG_DESCRIPTION hTagDescription, + _Out_ UINT32* tagDescriptionCount); + +// Invoke DdqFreeDiagnosticRecordProducers() to free producerDescription +STDAPI DdqGetDiagnosticRecordProducers( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _Out_ HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION* hProducerDescription); + +STDAPI DdqFreeDiagnosticRecordProducers( + _In_ HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION hProducerDescription); + +STDAPI DdqGetDiagnosticRecordProducerAtIndex( + _In_ HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION hProducerDescription, + _In_ UINT32 index, + _Out_ DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION* producerDescription); + +STDAPI DdqGetDiagnosticRecordProducerCount( + _In_ HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION hProducerDescription, + _Out_ UINT32* producerDescriptionCount); + +// Invoke DdqFreeDiagnosticRecordProducerCategories() to free categoryDescription +STDAPI DdqGetDiagnosticRecordProducerCategories( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_ PCWSTR producerName, + _Out_ HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION* hCategoryDescription); + +STDAPI DdqFreeDiagnosticRecordProducerCategories( + _In_ HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION hCategoryDescription); + +STDAPI DdqGetDiagnosticRecordCategoryAtIndex( + _In_ HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION hCategoryDescription, + _In_ UINT32 index, + _Out_ DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION* categoryDescription); + +STDAPI DdqGetDiagnosticRecordCategoryCount( + _In_ HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION hCategoryDescription, + _Out_ UINT32* categoryDescriptionCount); + +STDAPI DdqIsDiagnosticRecordSampledIn( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_ const GUID* providerGroup, + _In_opt_ const GUID* providerId, + _In_ PCWSTR providerName, + _In_opt_ const UINT32* eventId, + _In_ PCWSTR eventName, + _In_opt_ const UINT32* eventVersion, + _In_opt_ const UINT64* eventKeywords, + _Out_ BOOL* isSampledIn); + +// Invoke DdqFreeDiagnosticRecordPage() to free record +STDAPI DdqGetDiagnosticRecordPage( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_ DIAGNOSTIC_DATA_SEARCH_CRITERIA* const searchCriteria, + _In_ UINT32 offset, + _In_ UINT32 pageRecordCount, + _In_ INT64 baseRowId, + _Out_ HDIAGNOSTIC_RECORD* hRecord); + +STDAPI DdqFreeDiagnosticRecordPage( + _In_ HDIAGNOSTIC_RECORD hRecord); + +STDAPI DdqGetDiagnosticRecordAtIndex( + _In_ HDIAGNOSTIC_RECORD hRecord, + _In_ UINT32 index, + _Out_ DIAGNOSTIC_DATA_RECORD* record); + +STDAPI DdqGetDiagnosticRecordCount( + _In_ HDIAGNOSTIC_RECORD hRecord, + _Out_ UINT32* recordCount); + +STDAPI DdqGetDiagnosticReportStoreReportCount( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_ UINT32 reportStoreType, + _Out_ UINT32* reportCount); + +STDAPI DdqCancelDiagnosticRecordOperation( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession); + +// Invoke DdqFreeDiagnosticReport() to free report +STDAPI DdqGetDiagnosticReport( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_ UINT32 reportStoreType, + _Out_ HDIAGNOSTIC_REPORT* hReport); + +STDAPI DdqFreeDiagnosticReport( + _In_ HDIAGNOSTIC_REPORT hReport); + +STDAPI DdqGetDiagnosticReportAtIndex( + _In_ HDIAGNOSTIC_REPORT hReport, + _In_ UINT32 index, + _Out_ DIAGNOSTIC_REPORT_DATA* report); + +STDAPI DdqGetDiagnosticReportCount( + _In_ HDIAGNOSTIC_REPORT hReport, + _Out_ UINT32* reportCount); + +STDAPI DdqExtractDiagnosticReport( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_ UINT32 reportStoreType, + _In_ PCWSTR reportKey, + _In_ PCWSTR destinationPath); + +// Caller is expected to free tagStats with CoTaskMemFree() +STDAPI DdqGetDiagnosticRecordTagDistribution( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_reads_(producerNameCount) PCWSTR* producerNames, + _In_ UINT32 producerNameCount, + _Outptr_result_buffer_all_(*statCount) DIAGNOSTIC_DATA_EVENT_TAG_STATS** tagStats, + _Out_ UINT32* statCount); + +// Caller is expected to free binaryStats with CoTaskMemFree() +STDAPI DdqGetDiagnosticRecordBinaryDistribution( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_reads_(producerNameCount) PCWSTR* producerNames, + _In_ UINT32 producerNameCount, + _In_ UINT32 topNBinaries, + _Outptr_result_buffer_all_(*statCount) DIAGNOSTIC_DATA_EVENT_BINARY_STATS** binaryStats, + _Out_ UINT32* statCount); + +STDAPI DdqGetDiagnosticRecordSummary( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_reads_(producerNameCount) const PCWSTR* producerNames, + _In_ UINT32 producerNameCount, + _Out_ DIAGNOSTIC_DATA_GENERAL_STATS* generalStats); + +STDAPI DdqSetTranscriptConfiguration( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _In_ const DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION* desiredConfig); + +STDAPI DdqGetTranscriptConfiguration( + _In_ HDIAGNOSTIC_DATA_QUERY_SESSION hSession, + _Out_ DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION* currentConfig); + +#ifdef __cplusplus +} +#endif //__cplusplus diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DiagnosticDataQueryTypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DiagnosticDataQueryTypes.h new file mode 100644 index 0000000000000000000000000000000000000000..5bad92868a3063471f0ad86b5a5abbeb554046a0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DiagnosticDataQueryTypes.h @@ -0,0 +1,220 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __diagnosticdataquerytypes_h__ +#define __diagnosticdataquerytypes_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +/* header files for imported files */ +#include "wtypes.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_diagnosticdataquerytypes_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation +// +//-------------------------------------------------------------------------- +// +// IDL for defining Diagnostic API structures necessary for public consumption. This, along with +// DiagnosticDataQueryTypes.h, are the only headers that should be necessary for consuming the Diagnostic Data Query APIs. +// New function definition must be added at the end of the file. +// +//-------------------------------------------------------------------------- + + +extern RPC_IF_HANDLE RpcClient___MIDL_itf_diagnosticdataquerytypes_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_diagnosticdataquerytypes_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_diagnosticdataquerytypes_0000_0000_v0_0_s_ifspec; + +#ifndef __DiagnosticDataQueryTypes_INTERFACE_DEFINED__ +#define __DiagnosticDataQueryTypes_INTERFACE_DEFINED__ + +/* interface DiagnosticDataQueryTypes */ +/* [version][uuid] */ + +typedef +enum tagDdqAccessLevel + { + NoData = 0, + CurrentUserData = 1, + AllUserData = 2 + } DdqAccessLevel; + +typedef struct tagDIAGNOSTIC_DATA_RECORD + { + INT64 rowId; + UINT64 timestamp; + UINT64 eventKeywords; + LPWSTR fullEventName; + LPWSTR providerGroupGuid; + LPWSTR producerName; + /* [size_is] */ INT32 *privacyTags; + UINT32 privacyTagCount; + /* [size_is] */ INT32 *categoryIds; + UINT32 categoryIdCount; + BOOL isCoreData; + LPWSTR extra1; + LPWSTR extra2; + LPWSTR extra3; + } DIAGNOSTIC_DATA_RECORD; + +typedef struct tagDIAGNOSTIC_DATA_SEARCH_CRITERIA + { + /* [size_is] */ LPCWSTR *producerNames; + UINT32 producerNameCount; + LPCWSTR textToMatch; + /* [size_is] */ const INT32 *categoryIds; + UINT32 categoryIdCount; + /* [size_is] */ const INT32 *privacyTags; + UINT32 privacyTagCount; + BOOL coreDataOnly; + } DIAGNOSTIC_DATA_SEARCH_CRITERIA; + +typedef struct tagDIAGNOSTIC_DATA_EVENT_TAG_DESCRIPTION + { + INT32 privacyTag; + LPWSTR name; + LPWSTR description; + } DIAGNOSTIC_DATA_EVENT_TAG_DESCRIPTION; + +typedef struct tagDIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION + { + LPWSTR name; + } DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION; + +typedef struct tagDIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION + { + INT32 id; + LPWSTR name; + } DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION; + +typedef struct tagDIAGNOSTIC_DATA_EVENT_TAG_STATS + { + INT32 privacyTag; + UINT32 eventCount; + } DIAGNOSTIC_DATA_EVENT_TAG_STATS; + +typedef struct tagDIAGNOSTIC_DATA_EVENT_BINARY_STATS + { + LPWSTR moduleName; + LPWSTR friendlyModuleName; + UINT32 eventCount; + UINT64 uploadSizeBytes; + } DIAGNOSTIC_DATA_EVENT_BINARY_STATS; + +typedef struct tagDIAGNOSTIC_DATA_GENERAL_STATS + { + UINT32 optInLevel; + UINT64 transcriptSizeBytes; + UINT64 oldestEventTimestamp; + UINT32 totalEventCountLast24Hours; + FLOAT averageDailyEvents; + } DIAGNOSTIC_DATA_GENERAL_STATS; + +typedef struct tagDIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION + { + UINT32 hoursOfHistoryToKeep; + UINT32 maxStoreMegabytes; + UINT32 requestedMaxStoreMegabytes; + } DIAGNOSTIC_DATA_EVENT_TRANSCRIPT_CONFIGURATION; + +typedef struct tagDIAGNOSTIC_REPORT_PARAMETER + { + WCHAR name[ 129 ]; + WCHAR value[ 260 ]; + } DIAGNOSTIC_REPORT_PARAMETER; + +typedef struct tagDIAGNOSTIC_REPORT_SIGNATURE + { + WCHAR eventName[ 65 ]; + DIAGNOSTIC_REPORT_PARAMETER parameters[ 10 ]; + } DIAGNOSTIC_REPORT_SIGNATURE; + +typedef struct tagDIAGNOSTIC_REPORT_DATA + { + DIAGNOSTIC_REPORT_SIGNATURE signature; + GUID bucketId; + GUID reportId; + FILETIME creationTime; + ULONGLONG sizeInBytes; + LPWSTR cabId; + DWORD reportStatus; + GUID reportIntegratorId; + /* [size_is] */ LPWSTR *fileNames; + DWORD fileCount; + LPWSTR friendlyEventName; + LPWSTR applicationName; + LPWSTR applicationPath; + LPWSTR description; + LPWSTR bucketIdString; + UINT64 legacyBucketId; + LPWSTR reportKey; + } DIAGNOSTIC_REPORT_DATA; + +typedef /* [context_handle] */ void *DIAGNOSTIC_DATA_QUERY_SESSION; + +typedef /* [ref] */ __RPC_ref_pointer DIAGNOSTIC_DATA_QUERY_SESSION *PDIAGNOSTIC_DATA_QUERY_SESSION; + + + +extern RPC_IF_HANDLE RpcClient_DiagnosticDataQueryTypes_v1_0_c_ifspec; +extern RPC_IF_HANDLE DiagnosticDataQueryTypes_v1_0_c_ifspec; +extern RPC_IF_HANDLE DiagnosticDataQueryTypes_v1_0_s_ifspec; +#endif /* __DiagnosticDataQueryTypes_INTERFACE_DEFINED__ */ + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Digitalv.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Digitalv.h new file mode 100644 index 0000000000000000000000000000000000000000..2da791bcfcbdc97362ec652d3591f68b2282f339 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Digitalv.h @@ -0,0 +1,1114 @@ +/****************************************************************************/ +/* */ +/* DIGITALV.H - Include file for the MCI Digital Video Command Set */ +/* */ +/* Version 1.0 */ +/* */ +/* Copyright (c) 1995-1998, Microsoft Corp. All rights reserved. */ +/* */ +/* Date Modification */ +/* ------------ ------------ */ +/* Aug 19, 1992 -Version 1.0 Release */ +/* */ +/****************************************************************************/ + +#include + +#ifndef _INC_DIGITALV +#define _INC_DIGITALV 100 + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef _WIN32 +#include +#else +#ifndef RC_INVOKED +#pragma pack(1) +#endif +#endif + +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++ */ +#endif /* __cplusplus */ + +#define MCI_TEST 0x00000020L + +/* Message values */ + +#define MCI_CAPTURE 0x0870 +#define MCI_MONITOR 0x0871 +#define MCI_RESERVE 0x0872 +#define MCI_SETAUDIO 0x0873 +#define MCI_SIGNAL 0x0875 +#define MCI_SETVIDEO 0x0876 +#define MCI_QUALITY 0x0877 +#define MCI_LIST 0x0878 +#define MCI_UNDO 0x0879 +#define MCI_CONFIGURE 0x087a +#define MCI_RESTORE 0x087b + +/* Return and string constant values */ + +#define MCI_ON 1 +#define MCI_OFF 0 + +#define MCI_DGV_FILE_MODE_SAVING 0x0001 +#define MCI_DGV_FILE_MODE_LOADING 0x0002 +#define MCI_DGV_FILE_MODE_EDITING 0x0003 +#define MCI_DGV_FILE_MODE_IDLE 0x0004 + +/* These identifiers are used only by device drivers */ + +#define MCI_ON_S 0x00008000L +#define MCI_OFF_S 0x00008001L +#define MCI_DGV_FILE_S 0x00008002L +#define MCI_DGV_INPUT_S 0x00008003L + +#define MCI_DGV_FILE_MODE_SAVING_S 0x00008004L +#define MCI_DGV_FILE_MODE_LOADING_S 0x00008005L +#define MCI_DGV_FILE_MODE_EDITING_S 0x00008006L +#define MCI_DGV_FILE_MODE_IDLE_S 0x00008007L + +#define MCI_DGV_SETVIDEO_SRC_NTSC_S 0x00008010L +#define MCI_DGV_SETVIDEO_SRC_RGB_S 0x00008011L +#define MCI_DGV_SETVIDEO_SRC_SVIDEO_S 0x00008012L +#define MCI_DGV_SETVIDEO_SRC_PAL_S 0x00008013L +#define MCI_DGV_SETVIDEO_SRC_SECAM_S 0x00008014L +#define MCI_DGV_SETVIDEO_SRC_GENERIC_S 0x00008015L + +#define MCI_DGV_SETAUDIO_SRC_LEFT_S 0x00008020L +#define MCI_DGV_SETAUDIO_SRC_RIGHT_S 0x00008021L +#define MCI_DGV_SETAUDIO_SRC_AVERAGE_S 0x00008022L +#define MCI_DGV_SETAUDIO_SRC_STEREO_S 0x00008023L + +/* Window message for signal notification */ + +#define MM_MCISIGNAL 0x3CB + +/* error values */ + +#define MCIERR_DGV_DEVICE_LIMIT (MCIERR_CUSTOM_DRIVER_BASE+0) +#define MCIERR_DGV_IOERR (MCIERR_CUSTOM_DRIVER_BASE+1) +#define MCIERR_DGV_WORKSPACE_EMPTY (MCIERR_CUSTOM_DRIVER_BASE+2) +#define MCIERR_DGV_DISK_FULL (MCIERR_CUSTOM_DRIVER_BASE+3) +#define MCIERR_DGV_DEVICE_MEMORY_FULL (MCIERR_CUSTOM_DRIVER_BASE+4) +#define MCIERR_DGV_BAD_CLIPBOARD_RANGE (MCIERR_CUSTOM_DRIVER_BASE+5) + +/* defines for monitor methods */ + +#define MCI_DGV_METHOD_PRE 0x0000a000L +#define MCI_DGV_METHOD_POST 0x0000a001L +#define MCI_DGV_METHOD_DIRECT 0x0000a002L + +/* defines for known file formats */ + +#define MCI_DGV_FF_AVSS 0x00004000L +#define MCI_DGV_FF_AVI 0x00004001L +#define MCI_DGV_FF_DIB 0x00004002L +#define MCI_DGV_FF_RDIB 0x00004003L +#define MCI_DGV_FF_JPEG 0x00004004L +#define MCI_DGV_FF_RJPEG 0x00004005L +#define MCI_DGV_FF_JFIF 0x00004006L +#define MCI_DGV_FF_MPEG 0x00004007L + +/* values for dwItem field of MCI_CAPABILITY_PARMS structure */ + +#define MCI_DGV_GETDEVCAPS_CAN_LOCK 0x00004000L +#define MCI_DGV_GETDEVCAPS_CAN_STRETCH 0x00004001L +#define MCI_DGV_GETDEVCAPS_CAN_FREEZE 0x00004002L +#define MCI_DGV_GETDEVCAPS_MAX_WINDOWS 0x00004003L +#define MCI_DGV_GETDEVCAPS_CAN_REVERSE 0x00004004L +#define MCI_DGV_GETDEVCAPS_HAS_STILL 0x00004005L +#define MCI_DGV_GETDEVCAPS_PALETTES 0x00004006L +#define MCI_DGV_GETDEVCAPS_CAN_STR_IN 0x00004008L +#define MCI_DGV_GETDEVCAPS_CAN_TEST 0x00004009L +#define MCI_DGV_GETDEVCAPS_MAXIMUM_RATE 0x0000400aL +#define MCI_DGV_GETDEVCAPS_MINIMUM_RATE 0x0000400bL + +/* flags for dwFlags parameter of MCI_CAPTURE command message */ + +#define MCI_DGV_CAPTURE_AS 0x00010000L +#define MCI_DGV_CAPTURE_AT 0x00020000L + +/* flags for dwFlags parameter of MCI_COPY command message */ + +#define MCI_DGV_COPY_AT 0x00010000L +#define MCI_DGV_COPY_AUDIO_STREAM 0x00020000L +#define MCI_DGV_COPY_VIDEO_STREAM 0x00040000L + +/* flags for dwFlags parameter of MCI_CUE command message */ + +#define MCI_DGV_CUE_INPUT 0x00010000L +#define MCI_DGV_CUE_OUTPUT 0x00020000L +#define MCI_DGV_CUE_NOSHOW 0x00040000L + +/* flags for dwFlags parameter of MCI_CUT command message */ + +#define MCI_DGV_CUT_AT 0x00010000L +#define MCI_DGV_CUT_AUDIO_STREAM 0x00020000L +#define MCI_DGV_CUT_VIDEO_STREAM 0x00040000L + +/* flags for dwFlags parameter of MCI_DELETE command message */ + +#define MCI_DGV_DELETE_AT 0x00010000L +#define MCI_DGV_DELETE_AUDIO_STREAM 0x00020000L +#define MCI_DGV_DELETE_VIDEO_STREAM 0x00040000L + +/* flags for dwFlags parameter of MCI_FREEZE command message */ + +#define MCI_DGV_FREEZE_AT 0x00010000L +#define MCI_DGV_FREEZE_OUTSIDE 0x00020000L + +/* flags for dwFlags parameter of MCI_INFO command message */ + +#define MCI_DGV_INFO_TEXT 0x00010000L +#define MCI_DGV_INFO_ITEM 0X00020000L + +/* values for dwItem field of MCI_DGV_INFO_PARMS structure */ + +#define MCI_INFO_VERSION 0x00000400L + +#define MCI_DGV_INFO_USAGE 0x00004000L +#define MCI_DGV_INFO_AUDIO_QUALITY 0x00004001L +#define MCI_DGV_INFO_STILL_QUALITY 0x00004002L +#define MCI_DGV_INFO_VIDEO_QUALITY 0x00004003L +#define MCI_DGV_INFO_AUDIO_ALG 0x00004004L +#define MCI_DGV_INFO_STILL_ALG 0x00004005L +#define MCI_DGV_INFO_VIDEO_ALG 0x00004006L + +/* flags for dwFlags parameter of MCI_LIST command message */ + +#define MCI_DGV_LIST_ITEM 0x00010000L +#define MCI_DGV_LIST_COUNT 0x00020000L +#define MCI_DGV_LIST_NUMBER 0x00040000L +#define MCI_DGV_LIST_ALG 0x00080000L + +/* values for dwItem field of MCI_DGV_LIST_PARMS structure */ + +#define MCI_DGV_LIST_AUDIO_ALG 0x00004000L +#define MCI_DGV_LIST_AUDIO_QUALITY 0x00004001L +#define MCI_DGV_LIST_AUDIO_STREAM 0x00004002L +#define MCI_DGV_LIST_STILL_ALG 0x00004003L +#define MCI_DGV_LIST_STILL_QUALITY 0x00004004L +#define MCI_DGV_LIST_VIDEO_ALG 0x00004005L +#define MCI_DGV_LIST_VIDEO_QUALITY 0x00004006L +#define MCI_DGV_LIST_VIDEO_STREAM 0x00004007L +#define MCI_DGV_LIST_VIDEO_SOURCE 0x00004008L + + +/* flags for dwFlags parameter of MCI_MONITOR command message */ + +#define MCI_DGV_MONITOR_METHOD 0x00010000L +#define MCI_DGV_MONITOR_SOURCE 0x00020000L + +/* values for dwSource parameter of the MCI_DGV_MONITOR_PARMS struture */ + +#define MCI_DGV_MONITOR_INPUT 0x00004000L +#define MCI_DGV_MONITOR_FILE 0x00004001L + +/* flags for dwFlags parameter of MCI_OPEN command message */ + +#define MCI_DGV_OPEN_WS 0x00010000L +#define MCI_DGV_OPEN_PARENT 0x00020000L +#define MCI_DGV_OPEN_NOSTATIC 0x00040000L +#define MCI_DGV_OPEN_16BIT 0x00080000L +#define MCI_DGV_OPEN_32BIT 0x00100000L + +/* flags for dwFlags parameter of MCI_PASTE command message */ + +#define MCI_DGV_PASTE_AT 0x00010000L +#define MCI_DGV_PASTE_AUDIO_STREAM 0x00020000L +#define MCI_DGV_PASTE_VIDEO_STREAM 0x00040000L +#define MCI_DGV_PASTE_INSERT 0x00080000L +#define MCI_DGV_PASTE_OVERWRITE 0x00100000L + +/* flags for dwFlags parameter of MCI_PLAY command message */ + +#define MCI_DGV_PLAY_REPEAT 0x00010000L +#define MCI_DGV_PLAY_REVERSE 0x00020000L + +/* flags for dwFlags parameter of MCI_PUT command message */ + +#define MCI_DGV_RECT 0x00010000L +#define MCI_DGV_PUT_SOURCE 0x00020000L +#define MCI_DGV_PUT_DESTINATION 0x00040000L +#define MCI_DGV_PUT_FRAME 0x00080000L +#define MCI_DGV_PUT_VIDEO 0x00100000L +#define MCI_DGV_PUT_WINDOW 0x00200000L +#define MCI_DGV_PUT_CLIENT 0x00400000L + +/* flags for dwFlags parameter of MCI_QUALITY command message */ + +#define MCI_QUALITY_ITEM 0x00010000L +#define MCI_QUALITY_NAME 0x00020000L +#define MCI_QUALITY_ALG 0x00040000L +#define MCI_QUALITY_DIALOG 0x00080000L +#define MCI_QUALITY_HANDLE 0x00100000L + +/* values for dwItem field of MCI_QUALITY_PARMS structure */ + +#define MCI_QUALITY_ITEM_AUDIO 0x00004000L +#define MCI_QUALITY_ITEM_STILL 0x00004001L +#define MCI_QUALITY_ITEM_VIDEO 0x00004002L + +/* flags for dwFlags parameter of MCI_REALIZE command message */ + +#define MCI_DGV_REALIZE_NORM 0x00010000L +#define MCI_DGV_REALIZE_BKGD 0x00020000L + +/* flags for dwFlags parameter of MCI_RECORD command message */ + +#define MCI_DGV_RECORD_HOLD 0x00020000L +#define MCI_DGV_RECORD_AUDIO_STREAM 0x00040000L +#define MCI_DGV_RECORD_VIDEO_STREAM 0x00080000L + +/* flags for dwFlags parameters of MCI_RESERVE command message */ + +#define MCI_DGV_RESERVE_IN 0x00010000L +#define MCI_DGV_RESERVE_SIZE 0x00020000L + +/* flags for dwFlags parameter of MCI_RESTORE command message */ + +#define MCI_DGV_RESTORE_FROM 0x00010000L +#define MCI_DGV_RESTORE_AT 0x00020000L + +/* flags for dwFlags parameters of MCI_SAVE command message */ + +#define MCI_DGV_SAVE_ABORT 0x00020000L +#define MCI_DGV_SAVE_KEEPRESERVE 0x00040000L + +/* flags for dwFlags parameters of MCI_SET command message */ + +#define MCI_DGV_SET_SEEK_EXACTLY 0x00010000L +#define MCI_DGV_SET_SPEED 0x00020000L +#define MCI_DGV_SET_STILL 0x00040000L +#define MCI_DGV_SET_FILEFORMAT 0x00080000L + +/* flags for the dwFlags parameter of MCI_SETAUDIO command message */ + +#define MCI_DGV_SETAUDIO_OVER 0x00010000L +#define MCI_DGV_SETAUDIO_CLOCKTIME 0x00020000L +#define MCI_DGV_SETAUDIO_ALG 0x00040000L +#define MCI_DGV_SETAUDIO_QUALITY 0x00080000L +#define MCI_DGV_SETAUDIO_RECORD 0x00100000L +#define MCI_DGV_SETAUDIO_LEFT 0x00200000L +#define MCI_DGV_SETAUDIO_RIGHT 0x00400000L +#define MCI_DGV_SETAUDIO_ITEM 0x00800000L +#define MCI_DGV_SETAUDIO_VALUE 0x01000000L +#define MCI_DGV_SETAUDIO_INPUT 0x02000000L +#define MCI_DGV_SETAUDIO_OUTPUT 0x04000000L + +/* values for the dwItem parameter of MCI_DGV_SETAUDIO_PARMS */ + +#define MCI_DGV_SETAUDIO_TREBLE 0x00004000L +#define MCI_DGV_SETAUDIO_BASS 0x00004001L +#define MCI_DGV_SETAUDIO_VOLUME 0x00004002L +#define MCI_DGV_SETAUDIO_STREAM 0x00004003L +#define MCI_DGV_SETAUDIO_SOURCE 0x00004004L +#define MCI_DGV_SETAUDIO_SAMPLESPERSEC 0x00004005L +#define MCI_DGV_SETAUDIO_AVGBYTESPERSEC 0x00004006L +#define MCI_DGV_SETAUDIO_BLOCKALIGN 0x00004007L +#define MCI_DGV_SETAUDIO_BITSPERSAMPLE 0x00004008L + +/* values for the dwValue parameter of MCI_DGV_SETAUDIO_PARMS + used with MCI_DGV_SETAUDIO_SOURCE */ + +#define MCI_DGV_SETAUDIO_SOURCE_STEREO 0x00000000L +#define MCI_DGV_SETAUDIO_SOURCE_LEFT 0x00000001L +#define MCI_DGV_SETAUDIO_SOURCE_RIGHT 0x00000002L +#define MCI_DGV_SETAUDIO_SOURCE_AVERAGE 0x00004000L + +/* flags for the dwFlags parameter of MCI_SETVIDEO command */ + +#define MCI_DGV_SETVIDEO_QUALITY 0x00010000L +#define MCI_DGV_SETVIDEO_ALG 0x00020000L +#define MCI_DGV_SETVIDEO_CLOCKTIME 0x00040000L +#define MCI_DGV_SETVIDEO_SRC_NUMBER 0x00080000L +#define MCI_DGV_SETVIDEO_ITEM 0x00100000L +#define MCI_DGV_SETVIDEO_OVER 0x00200000L +#define MCI_DGV_SETVIDEO_RECORD 0x00400000L +#define MCI_DGV_SETVIDEO_STILL 0x00800000L +#define MCI_DGV_SETVIDEO_VALUE 0x01000000L +#define MCI_DGV_SETVIDEO_INPUT 0x02000000L +#define MCI_DGV_SETVIDEO_OUTPUT 0x04000000L + +/* values for the dwTo field of MCI_SETVIDEO_PARMS + used with MCI_DGV_SETVIDEO_SOURCE */ + +#define MCI_DGV_SETVIDEO_SRC_NTSC 0x00004000L +#define MCI_DGV_SETVIDEO_SRC_RGB 0x00004001L +#define MCI_DGV_SETVIDEO_SRC_SVIDEO 0x00004002L +#define MCI_DGV_SETVIDEO_SRC_PAL 0x00004003L +#define MCI_DGV_SETVIDEO_SRC_SECAM 0x00004004L +#define MCI_DGV_SETVIDEO_SRC_GENERIC 0x00004005L + +/* values for the dwItem field of MCI_SETVIDEO_PARMS */ + +#define MCI_DGV_SETVIDEO_BRIGHTNESS 0x00004000L +#define MCI_DGV_SETVIDEO_COLOR 0x00004001L +#define MCI_DGV_SETVIDEO_CONTRAST 0x00004002L +#define MCI_DGV_SETVIDEO_TINT 0x00004003L +#define MCI_DGV_SETVIDEO_SHARPNESS 0x00004004L +#define MCI_DGV_SETVIDEO_GAMMA 0x00004005L +#define MCI_DGV_SETVIDEO_STREAM 0x00004006L +#define MCI_DGV_SETVIDEO_PALHANDLE 0x00004007L +#define MCI_DGV_SETVIDEO_FRAME_RATE 0x00004008L +#define MCI_DGV_SETVIDEO_SOURCE 0x00004009L +#define MCI_DGV_SETVIDEO_KEY_INDEX 0x0000400aL +#define MCI_DGV_SETVIDEO_KEY_COLOR 0x0000400bL +#define MCI_DGV_SETVIDEO_BITSPERPEL 0x0000400cL + +/* flags for the dwFlags parameter of MCI_SIGNAL */ + +#define MCI_DGV_SIGNAL_AT 0x00010000L +#define MCI_DGV_SIGNAL_EVERY 0x00020000L +#define MCI_DGV_SIGNAL_USERVAL 0x00040000L +#define MCI_DGV_SIGNAL_CANCEL 0x00080000L +#define MCI_DGV_SIGNAL_POSITION 0x00100000L + +/* The following is the function digitalvideo drivers must use + * to signal when a frame marked by the SIGNAL command has been rendered: + * + * SEND_DGVSIGNAL(dwFlags, dwCallback, hDriver, wDeviceID, dwUser, dwPos ) + * + * The following is a description of the parameters: + * + * dwFlags - the dwFlags parameter passed when the signal was set + * dwCallback - the dwCallback value from the MCI_DGV_SIGNAL_PARMS struct + * used to set the signal + * hDriver - the handle assigned to the driver by MMSYSTEM when the + * device was opened + * wDeviceID - the device ID + * dwUser - the dwUserParm value from the MCI_DGV_SIGNAL_PARMS struct + * used to set the signal + * dwPos - the position at which the signal was sent, in the current + * time format. + * + * The window indicated by the handle in the dwCallback field is notified + * by means of a Windows message with the following form: + * + * msg = MM_MCISIGNAL + * wParam = wDeviceID of the sending driver + * lParam = the uservalue specified or the position the signal was sent + * at; the latter if the MCI_DGV_SIGNAL_POSITION flag was set + * in the dwFlags parameter when the signal was created. + */ + +#define SEND_DGVSIGNAL(dwFlags, dwCallback, hDriver, wDeviceID, dwUser, dwPos ) \ + DriverCallback( (dwCallback), DCB_WINDOW, (HANDLE)(wDeviceID), MM_MCISIGNAL,\ + hDriver, ((dwFlags) & MCI_DGV_SIGNAL_POSITION) ? (dwPos):(dwUser),\ + ((dwFlags) & MCI_DGV_SIGNAL_POSITION) ? (dwUser):(dwPos)) + +/* flags for the dwFlags parameter of MCI_STATUS command */ + +#define MCI_DGV_STATUS_NOMINAL 0x00020000L +#define MCI_DGV_STATUS_REFERENCE 0x00040000L +#define MCI_DGV_STATUS_LEFT 0x00080000L +#define MCI_DGV_STATUS_RIGHT 0x00100000L +#define MCI_DGV_STATUS_DISKSPACE 0x00200000L +#define MCI_DGV_STATUS_INPUT 0x00400000L +#define MCI_DGV_STATUS_OUTPUT 0x00800000L +#define MCI_DGV_STATUS_RECORD 0x01000000L + +/* values for dwItem field of MCI_STATUS_PARMS structure */ + +#define MCI_DGV_STATUS_AUDIO_INPUT 0x00004000L +#define MCI_DGV_STATUS_HWND 0x00004001L +#define MCI_DGV_STATUS_SPEED 0x00004003L +#define MCI_DGV_STATUS_HPAL 0x00004004L +#define MCI_DGV_STATUS_BRIGHTNESS 0x00004005L +#define MCI_DGV_STATUS_COLOR 0x00004006L +#define MCI_DGV_STATUS_CONTRAST 0x00004007L +#define MCI_DGV_STATUS_FILEFORMAT 0x00004008L +#define MCI_DGV_STATUS_AUDIO_SOURCE 0x00004009L +#define MCI_DGV_STATUS_GAMMA 0x0000400aL +#define MCI_DGV_STATUS_MONITOR 0x0000400bL +#define MCI_DGV_STATUS_MONITOR_METHOD 0x0000400cL +#define MCI_DGV_STATUS_FRAME_RATE 0x0000400eL +#define MCI_DGV_STATUS_BASS 0x0000400fL +#define MCI_DGV_STATUS_SIZE 0x00004010L +#define MCI_DGV_STATUS_SEEK_EXACTLY 0x00004011L +#define MCI_DGV_STATUS_SHARPNESS 0x00004012L +#define MCI_DGV_STATUS_SMPTE 0x00004013L +#define MCI_DGV_STATUS_AUDIO 0x00004014L +#define MCI_DGV_STATUS_TINT 0x00004015L +#define MCI_DGV_STATUS_TREBLE 0x00004016L +#define MCI_DGV_STATUS_UNSAVED 0x00004017L +#define MCI_DGV_STATUS_VIDEO 0x00004018L +#define MCI_DGV_STATUS_VOLUME 0x00004019L +#define MCI_DGV_STATUS_AUDIO_RECORD 0x0000401aL +#define MCI_DGV_STATUS_VIDEO_SOURCE 0x0000401bL +#define MCI_DGV_STATUS_VIDEO_RECORD 0x0000401cL +#define MCI_DGV_STATUS_STILL_FILEFORMAT 0x0000401dL +#define MCI_DGV_STATUS_VIDEO_SRC_NUM 0x0000401eL +#define MCI_DGV_STATUS_FILE_MODE 0x0000401fL +#define MCI_DGV_STATUS_FILE_COMPLETION 0x00004020L +#define MCI_DGV_STATUS_WINDOW_VISIBLE 0x00004021L +#define MCI_DGV_STATUS_WINDOW_MINIMIZED 0x00004022L +#define MCI_DGV_STATUS_WINDOW_MAXIMIZED 0x00004023L +#define MCI_DGV_STATUS_KEY_INDEX 0x00004024L +#define MCI_DGV_STATUS_KEY_COLOR 0x00004025L +#define MCI_DGV_STATUS_PAUSE_MODE 0x00004026L +#define MCI_DGV_STATUS_SAMPLESPERSEC 0x00004027L +#define MCI_DGV_STATUS_AVGBYTESPERSEC 0x00004028L +#define MCI_DGV_STATUS_BLOCKALIGN 0x00004029L +#define MCI_DGV_STATUS_BITSPERSAMPLE 0x0000402aL +#define MCI_DGV_STATUS_BITSPERPEL 0x0000402bL +#define MCI_DGV_STATUS_FORWARD 0x0000402cL +#define MCI_DGV_STATUS_AUDIO_STREAM 0x0000402dL +#define MCI_DGV_STATUS_VIDEO_STREAM 0x0000402eL + +/* flags for dwFlags parameter of MCI_STEP command message */ + +#define MCI_DGV_STEP_REVERSE 0x00010000L +#define MCI_DGV_STEP_FRAMES 0x00020000L + +/* flags for dwFlags parameter of MCI_STOP command message */ + +#define MCI_DGV_STOP_HOLD 0x00010000L + +/* flags for dwFlags parameter of MCI_UPDATE command message */ + +#define MCI_DGV_UPDATE_HDC 0x00020000L +#define MCI_DGV_UPDATE_PAINT 0x00040000L + +/* flags for dwFlags parameter of MCI_WHERE command message */ + +#define MCI_DGV_WHERE_SOURCE 0x00020000L +#define MCI_DGV_WHERE_DESTINATION 0x00040000L +#define MCI_DGV_WHERE_FRAME 0x00080000L +#define MCI_DGV_WHERE_VIDEO 0x00100000L +#define MCI_DGV_WHERE_WINDOW 0x00200000L +#define MCI_DGV_WHERE_MAX 0x00400000L + +/* flags for dwFlags parameter of MCI_WINDOW command message */ + +#define MCI_DGV_WINDOW_HWND 0x00010000L +#define MCI_DGV_WINDOW_STATE 0x00040000L +#define MCI_DGV_WINDOW_TEXT 0x00080000L + +/* flags for hWnd parameter of MCI_DGV_WINDOW_PARMS parameter block */ + +#define MCI_DGV_WINDOW_DEFAULT 0x00000000L + +/* parameter block for MCI_WHERE, MCI_PUT, MCI_FREEZE, MCI_UNFREEZE cmds */ + +typedef struct { + DWORD_PTR dwCallback; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif +} MCI_DGV_RECT_PARMS; +typedef MCI_DGV_RECT_PARMS FAR * LPMCI_DGV_RECT_PARMS; + +/* parameter block for MCI_CAPTURE command message */ + +typedef struct { + DWORD_PTR dwCallback; + LPSTR lpstrFileName; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif +} MCI_DGV_CAPTURE_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + LPWSTR lpstrFileName; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif +} MCI_DGV_CAPTURE_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_CAPTURE_PARMSW MCI_DGV_CAPTURE_PARMS; +#else +typedef MCI_DGV_CAPTURE_PARMSA MCI_DGV_CAPTURE_PARMS; +#endif // UNICODE +typedef MCI_DGV_CAPTURE_PARMSA FAR * LPMCI_DGV_CAPTURE_PARMSA; +typedef MCI_DGV_CAPTURE_PARMSW FAR * LPMCI_DGV_CAPTURE_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_CAPTURE_PARMSW LPMCI_DGV_CAPTURE_PARMS; +#else +typedef LPMCI_DGV_CAPTURE_PARMSA LPMCI_DGV_CAPTURE_PARMS; +#endif // UNICODE + +/* parameter block for MCI_CLOSE command message */ + +typedef MCI_GENERIC_PARMS MCI_CLOSE_PARMS; +typedef MCI_CLOSE_PARMS FAR * LPMCI_CLOSE_PARMS; + +/* parameter block for MCI_COPY command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwFrom; + DWORD dwTo; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif + DWORD dwAudioStream; + DWORD dwVideoStream; +} MCI_DGV_COPY_PARMS; +typedef MCI_DGV_COPY_PARMS FAR * LPMCI_DGV_COPY_PARMS; + +/* parameter block for MCI_CUE command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwTo; +} MCI_DGV_CUE_PARMS; +typedef MCI_DGV_CUE_PARMS FAR * LPMCI_DGV_CUE_PARMS; + +/* parameter block for MCI_CUT command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwFrom; + DWORD dwTo; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif + DWORD dwAudioStream; + DWORD dwVideoStream; +} MCI_DGV_CUT_PARMS; +typedef MCI_DGV_CUT_PARMS FAR * LPMCI_DGV_CUT_PARMS; + +/* parameter block for MCI_DELETE command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwFrom; + DWORD dwTo; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif + DWORD dwAudioStream; + DWORD dwVideoStream; +} MCI_DGV_DELETE_PARMS; +typedef MCI_DGV_DELETE_PARMS FAR * LPMCI_DGV_DELETE_PARMS; + +/* parameter block for MCI_FREEZE command message */ + +typedef MCI_DGV_RECT_PARMS MCI_DGV_FREEZE_PARMS; +typedef MCI_DGV_FREEZE_PARMS FAR * LPMCI_DGV_FREEZE_PARMS; + +/* parameter block for MCI_INFO command message */ + +typedef struct { + DWORD_PTR dwCallback; + LPSTR lpstrReturn; + DWORD dwRetSize; + DWORD dwItem; +} MCI_DGV_INFO_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + LPWSTR lpstrReturn; + DWORD dwRetSize; + DWORD dwItem; +} MCI_DGV_INFO_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_INFO_PARMSW MCI_DGV_INFO_PARMS; +#else +typedef MCI_DGV_INFO_PARMSA MCI_DGV_INFO_PARMS; +#endif // UNICODE +//? already typedef'd? //typedef MCI_INFO_PARMS FAR * LPMCI_INFO_PARMS; +typedef MCI_DGV_INFO_PARMSA FAR * LPMCI_DGV_INFO_PARMSA; +typedef MCI_DGV_INFO_PARMSW FAR * LPMCI_DGV_INFO_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_INFO_PARMSW LPMCI_DGV_INFO_PARMS; +#else +typedef LPMCI_DGV_INFO_PARMSA LPMCI_DGV_INFO_PARMS; +#endif // UNICODE + +/* parameter block for MCI_LIST command message */ + +typedef struct { + DWORD_PTR dwCallback; + LPSTR lpstrReturn; + DWORD dwLength; + DWORD dwNumber; + DWORD dwItem; + LPSTR lpstrAlgorithm; +} MCI_DGV_LIST_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + LPWSTR lpstrReturn; + DWORD dwLength; + DWORD dwNumber; + DWORD dwItem; + LPWSTR lpstrAlgorithm; +} MCI_DGV_LIST_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_LIST_PARMSW MCI_DGV_LIST_PARMS; +#else +typedef MCI_DGV_LIST_PARMSA MCI_DGV_LIST_PARMS; +#endif // UNICODE +typedef MCI_DGV_LIST_PARMSA FAR * LPMCI_DGV_LIST_PARMSA; +typedef MCI_DGV_LIST_PARMSW FAR * LPMCI_DGV_LIST_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_LIST_PARMSW LPMCI_DGV_LIST_PARMS; +#else +typedef LPMCI_DGV_LIST_PARMSA LPMCI_DGV_LIST_PARMS; +#endif // UNICODE + +/* parameter block for MCI_LOAD command message */ + +typedef MCI_LOAD_PARMS MCI_DGV_LOAD_PARMS; +typedef MCI_DGV_LOAD_PARMS FAR * LPMCI_DGV_LOAD_PARMS; + +/* parameter block for MCI_MONITOR command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwSource; + DWORD dwMethod; +} MCI_DGV_MONITOR_PARMS; +typedef MCI_DGV_MONITOR_PARMS FAR * LPMCI_DGV_MONITOR_PARMS; + +/* parameter block for MCI_OPEN command message */ + +typedef struct { + DWORD_PTR dwCallback; + UINT wDeviceID; +#ifndef _WIN32 + WORD wReserved0; +#endif + LPSTR lpstrDeviceType; + LPSTR lpstrElementName; + LPSTR lpstrAlias; + DWORD dwStyle; + HWND hWndParent; +#ifndef _WIN32 + WORD wReserved1; +#endif +} MCI_DGV_OPEN_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + UINT wDeviceID; +#ifndef _WIN32 + WORD wReserved0; +#endif + LPWSTR lpstrDeviceType; + LPWSTR lpstrElementName; + LPWSTR lpstrAlias; + DWORD dwStyle; + HWND hWndParent; +#ifndef _WIN32 + WORD wReserved1; +#endif +} MCI_DGV_OPEN_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_OPEN_PARMSW MCI_DGV_OPEN_PARMS; +#else +typedef MCI_DGV_OPEN_PARMSA MCI_DGV_OPEN_PARMS; +#endif // UNICODE +typedef MCI_DGV_OPEN_PARMSA FAR * LPMCI_DGV_OPEN_PARMSA; +typedef MCI_DGV_OPEN_PARMSW FAR * LPMCI_DGV_OPEN_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_OPEN_PARMSW LPMCI_DGV_OPEN_PARMS; +#else +typedef LPMCI_DGV_OPEN_PARMSA LPMCI_DGV_OPEN_PARMS; +#endif // UNICODE + +/* parameter block for MCI_PAUSE command message */ + +typedef MCI_GENERIC_PARMS MCI_DGV_PAUSE_PARMS; +typedef MCI_DGV_PAUSE_PARMS FAR * LPMCI_DGV_PAUSE_PARMS; + +/* parameter block for MCI_PASTE command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwTo; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif + DWORD dwAudioStream; + DWORD dwVideoStream; +} MCI_DGV_PASTE_PARMS; +typedef MCI_DGV_PASTE_PARMS FAR * LPMCI_DGV_PASTE_PARMS; + +/* parameter block for MCI_PLAY command message */ + +typedef MCI_PLAY_PARMS MCI_DGV_PLAY_PARMS; +typedef MCI_DGV_PLAY_PARMS FAR * LPMCI_DGV_PLAY_PARMS; + +/* parameter block for MCI_PUT command message */ + +typedef MCI_DGV_RECT_PARMS MCI_DGV_PUT_PARMS; +typedef MCI_DGV_PUT_PARMS FAR * LPMCI_DGV_PUT_PARMS; + +/* parameter block for MCI_QUALITY command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwItem; + LPSTR lpstrName; + DWORD lpstrAlgorithm; + DWORD dwHandle; +} MCI_DGV_QUALITY_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + DWORD dwItem; + LPWSTR lpstrName; + DWORD lpstrAlgorithm; + DWORD dwHandle; +} MCI_DGV_QUALITY_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_QUALITY_PARMSW MCI_DGV_QUALITY_PARMS; +#else +typedef MCI_DGV_QUALITY_PARMSA MCI_DGV_QUALITY_PARMS; +#endif // UNICODE +typedef MCI_DGV_QUALITY_PARMSA FAR * LPMCI_DGV_QUALITY_PARMSA; +typedef MCI_DGV_QUALITY_PARMSW FAR * LPMCI_DGV_QUALITY_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_QUALITY_PARMSW LPMCI_DGV_QUALITY_PARMS; +#else +typedef LPMCI_DGV_QUALITY_PARMSA LPMCI_DGV_QUALITY_PARMS; +#endif // UNICODE + +/* parameter block for MCI_REALIZE command message */ + +typedef MCI_GENERIC_PARMS MCI_REALIZE_PARMS; +typedef MCI_REALIZE_PARMS FAR * LPMCI_REALIZE_PARMS; + +/* parameter block for MCI_RECORD command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwFrom; + DWORD dwTo; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif + DWORD dwAudioStream; + DWORD dwVideoStream; +} MCI_DGV_RECORD_PARMS; +typedef MCI_DGV_RECORD_PARMS FAR * LPMCI_DGV_RECORD_PARMS; + +/* parameter block for MCI_RESERVE command message */ + +typedef struct { + DWORD_PTR dwCallback; + LPSTR lpstrPath; + DWORD dwSize; +} MCI_DGV_RESERVE_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + LPWSTR lpstrPath; + DWORD dwSize; +} MCI_DGV_RESERVE_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_RESERVE_PARMSW MCI_DGV_RESERVE_PARMS; +#else +typedef MCI_DGV_RESERVE_PARMSA MCI_DGV_RESERVE_PARMS; +#endif // UNICODE +typedef MCI_DGV_RESERVE_PARMSA FAR * LPMCI_DGV_RESERVE_PARMSA; +typedef MCI_DGV_RESERVE_PARMSW FAR * LPMCI_DGV_RESERVE_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_RESERVE_PARMSW LPMCI_DGV_RESERVE_PARMS; +#else +typedef LPMCI_DGV_RESERVE_PARMSA LPMCI_DGV_RESERVE_PARMS; +#endif // UNICODE + +/* parameter block for MCI_RESTORE command message */ + +typedef struct { + DWORD_PTR dwCallback; + LPSTR lpstrFileName; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif +} MCI_DGV_RESTORE_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + LPWSTR lpstrFileName; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif +} MCI_DGV_RESTORE_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_RESTORE_PARMSW MCI_DGV_RESTORE_PARMS; +#else +typedef MCI_DGV_RESTORE_PARMSA MCI_DGV_RESTORE_PARMS; +#endif // UNICODE +typedef MCI_DGV_RESTORE_PARMSA FAR * LPMCI_DGV_RESTORE_PARMSA; +typedef MCI_DGV_RESTORE_PARMSW FAR * LPMCI_DGV_RESTORE_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_RESTORE_PARMSW LPMCI_DGV_RESTORE_PARMS; +#else +typedef LPMCI_DGV_RESTORE_PARMSA LPMCI_DGV_RESTORE_PARMS; +#endif // UNICODE + +/* parameter block for MCI_RESUME command message */ + +typedef MCI_GENERIC_PARMS MCI_DGV_RESUME_PARMS; +typedef MCI_DGV_RESUME_PARMS FAR * LPMCI_DGV_RESUME_PARMS; + +/* parameter block for MCI_SAVE command message */ + +typedef struct { + DWORD_PTR dwCallback; + LPSTR lpstrFileName; + RECT rc; +} MCI_DGV_SAVE_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + LPWSTR lpstrFileName; + RECT rc; +} MCI_DGV_SAVE_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_SAVE_PARMSW MCI_DGV_SAVE_PARMS; +#else +typedef MCI_DGV_SAVE_PARMSA MCI_DGV_SAVE_PARMS; +#endif // UNICODE +typedef MCI_DGV_SAVE_PARMSA FAR * LPMCI_DGV_SAVE_PARMSA; +typedef MCI_DGV_SAVE_PARMSW FAR * LPMCI_DGV_SAVE_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_SAVE_PARMSW LPMCI_DGV_SAVE_PARMS; +#else +typedef LPMCI_DGV_SAVE_PARMSA LPMCI_DGV_SAVE_PARMS; +#endif // UNICODE + +/* parameter block for MCI_SET command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwTimeFormat; + DWORD dwAudio; + DWORD dwFileFormat; + DWORD dwSpeed; +} MCI_DGV_SET_PARMS; +typedef MCI_DGV_SET_PARMS FAR * LPMCI_DGV_SET_PARMS; + +/* parameter block for MCI_SETAUDIO command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwItem; + DWORD dwValue; + DWORD dwOver; + LPSTR lpstrAlgorithm; + LPSTR lpstrQuality; +} MCI_DGV_SETAUDIO_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + DWORD dwItem; + DWORD dwValue; + DWORD dwOver; + LPWSTR lpstrAlgorithm; + LPWSTR lpstrQuality; +} MCI_DGV_SETAUDIO_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_SETAUDIO_PARMSW MCI_DGV_SETAUDIO_PARMS; +#else +typedef MCI_DGV_SETAUDIO_PARMSA MCI_DGV_SETAUDIO_PARMS; +#endif // UNICODE +typedef MCI_DGV_SETAUDIO_PARMSA FAR * LPMCI_DGV_SETAUDIO_PARMSA; +typedef MCI_DGV_SETAUDIO_PARMSW FAR * LPMCI_DGV_SETAUDIO_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_SETAUDIO_PARMSW LPMCI_DGV_SETAUDIO_PARMS; +#else +typedef LPMCI_DGV_SETAUDIO_PARMSA LPMCI_DGV_SETAUDIO_PARMS; +#endif // UNICODE + +/* parameter block for MCI_SIGNAL command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwPosition; + DWORD dwPeriod; + DWORD dwUserParm; +} MCI_DGV_SIGNAL_PARMS; +typedef MCI_DGV_SIGNAL_PARMS FAR * LPMCI_DGV_SIGNAL_PARMS; + +/* parameter block for MCI_SETVIDEO command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwItem; + DWORD dwValue; + DWORD dwOver; + LPSTR lpstrAlgorithm; + LPSTR lpstrQuality; + DWORD dwSourceNumber; +} MCI_DGV_SETVIDEO_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + DWORD dwItem; + DWORD dwValue; + DWORD dwOver; + LPWSTR lpstrAlgorithm; + LPWSTR lpstrQuality; + DWORD dwSourceNumber; +} MCI_DGV_SETVIDEO_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_SETVIDEO_PARMSW MCI_DGV_SETVIDEO_PARMS; +#else +typedef MCI_DGV_SETVIDEO_PARMSA MCI_DGV_SETVIDEO_PARMS; +#endif // UNICODE +typedef MCI_DGV_SETVIDEO_PARMSA FAR * LPMCI_DGV_SETVIDEO_PARMSA; +typedef MCI_DGV_SETVIDEO_PARMSW FAR * LPMCI_DGV_SETVIDEO_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_SETVIDEO_PARMSW LPMCI_DGV_SETVIDEO_PARMS; +#else +typedef LPMCI_DGV_SETVIDEO_PARMSA LPMCI_DGV_SETVIDEO_PARMS; +#endif // UNICODE + +/* parameter block for MCI_STATUS command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD_PTR dwReturn; + DWORD dwItem; + DWORD dwTrack; + LPSTR lpstrDrive; + DWORD dwReference; +} MCI_DGV_STATUS_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + DWORD_PTR dwReturn; + DWORD dwItem; + DWORD dwTrack; + LPWSTR lpstrDrive; + DWORD dwReference; +} MCI_DGV_STATUS_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_STATUS_PARMSW MCI_DGV_STATUS_PARMS; +#else +typedef MCI_DGV_STATUS_PARMSA MCI_DGV_STATUS_PARMS; +#endif // UNICODE +typedef MCI_DGV_STATUS_PARMSA FAR * LPMCI_DGV_STATUS_PARMSA; +typedef MCI_DGV_STATUS_PARMSW FAR * LPMCI_DGV_STATUS_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_STATUS_PARMSW LPMCI_DGV_STATUS_PARMS; +#else +typedef LPMCI_DGV_STATUS_PARMSA LPMCI_DGV_STATUS_PARMS; +#endif // UNICODE + +/* parameter block for MCI_STEP command message */ + +typedef struct { + DWORD_PTR dwCallback; + DWORD dwFrames; +} MCI_DGV_STEP_PARMS; +typedef MCI_DGV_STEP_PARMS FAR *LPMCI_DGV_STEP_PARMS; + +/* parameter block for MCI_STOP command message */ + +typedef MCI_GENERIC_PARMS MCI_DGV_STOP_PARMS; +typedef MCI_DGV_STOP_PARMS FAR * LPMCI_DGV_STOP_PARMS; + +/* parameter block for MCI_UNFREEZE command message */ + +typedef MCI_DGV_RECT_PARMS MCI_DGV_UNFREEZE_PARMS; +typedef MCI_DGV_UNFREEZE_PARMS FAR * LPMCI_DGV_UNFREEZE_PARMS; + +/* parameter block for MCI_UPDATE command message */ + +typedef struct { + DWORD_PTR dwCallback; +#ifdef MCI_USE_OFFEXT + POINT ptOffset; + POINT ptExtent; +#else + RECT rc; +#endif + HDC hDC; + +#ifndef _WIN32 + WORD wReserved0; +#endif +} MCI_DGV_UPDATE_PARMS; +typedef MCI_DGV_UPDATE_PARMS FAR * LPMCI_DGV_UPDATE_PARMS; + +/* parameter block for MCI_WHERE command message */ + +typedef MCI_DGV_RECT_PARMS MCI_DGV_WHERE_PARMS; +typedef MCI_DGV_WHERE_PARMS FAR * LPMCI_DGV_WHERE_PARMS; + +/* parameter block for MCI_WINDOW command message */ + +typedef struct { + DWORD_PTR dwCallback; + HWND hWnd; +#ifndef _WIN32 + WORD wReserved1; +#endif + UINT nCmdShow; +#ifndef _WIN32 + WORD wReserved2; +#endif + LPSTR lpstrText; +} MCI_DGV_WINDOW_PARMSA; +typedef struct { + DWORD_PTR dwCallback; + HWND hWnd; +#ifndef _WIN32 + WORD wReserved1; +#endif + UINT nCmdShow; +#ifndef _WIN32 + WORD wReserved2; +#endif + LPWSTR lpstrText; +} MCI_DGV_WINDOW_PARMSW; +#ifdef UNICODE +typedef MCI_DGV_WINDOW_PARMSW MCI_DGV_WINDOW_PARMS; +#else +typedef MCI_DGV_WINDOW_PARMSA MCI_DGV_WINDOW_PARMS; +#endif // UNICODE +typedef MCI_DGV_WINDOW_PARMSA FAR * LPMCI_DGV_WINDOW_PARMSA; +typedef MCI_DGV_WINDOW_PARMSW FAR * LPMCI_DGV_WINDOW_PARMSW; +#ifdef UNICODE +typedef LPMCI_DGV_WINDOW_PARMSW LPMCI_DGV_WINDOW_PARMS; +#else +typedef LPMCI_DGV_WINDOW_PARMSA LPMCI_DGV_WINDOW_PARMS; +#endif // UNICODE + +#ifdef __cplusplus +} /* End of extern "C" { */ +#endif /* __cplusplus */ + +#ifdef _WIN32 +#include +#else +#ifndef RC_INVOKED +#pragma pack() +#endif +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* !_INC_DIGITALV */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dimm.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dimm.Idl new file mode 100644 index 0000000000000000000000000000000000000000..4350234e0236afe658832d17c77bf39e95102e8c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dimm.Idl @@ -0,0 +1,549 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: dimm.idl +// +// Contents: ActiveIMM interface definitions +// +// +//-------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// dimm.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("// IActiveIMM Interfaces.") +cpp_quote("") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +/* +Disable a warning about lack of polymorphic type support for the following reasons +- the only reason to have library block in the file is to make midl accept coclass + statement and generate CLSID for CActiveIMM. +- the generated dimm_i.c has the clsid and that file is used to have clsid available +- the dimm.tlb is not used at all +- on top of it, there is no plans to port the app using dimm.idl to 64b platform. +*/ +midl_pragma warning( disable: 2395) // polymorphic types not supported in the TLB + + +#ifndef DO_NO_IMPORTS +import "unknwn.idl"; +#endif + +[ + uuid(4955DD30-B159-11d0-8FCF-00AA006BCC59), + helpstring("ActiveIMM"), + lcid(0x0000), + version(0.1) +] +library ActiveIMM +{ + importlib("stdole2.tlb"); + + cpp_quote("#include ") + + cpp_quote("#if 0") + + typedef WORD LANGID; + + typedef struct + { + LPSTR lpReading; + LPSTR lpWord; + } REGISTERWORDA; + + typedef struct + { + LPWSTR lpReading; + LPWSTR lpWord; + } REGISTERWORDW; + + #define LF_FACESIZE 32 + + typedef struct + { + LONG lfHeight; + LONG lfWidth; + LONG lfEscapement; + LONG lfOrientation; + LONG lfWeight; + BYTE lfItalic; + BYTE lfUnderline; + BYTE lfStrikeOut; + BYTE lfCharSet; + BYTE lfOutPrecision; + BYTE lfClipPrecision; + BYTE lfQuality; + BYTE lfPitchAndFamily; + CHAR lfFaceName[LF_FACESIZE]; + } LOGFONTA; + + typedef struct + { + LONG lfHeight; + LONG lfWidth; + LONG lfEscapement; + LONG lfOrientation; + LONG lfWeight; + BYTE lfItalic; + BYTE lfUnderline; + BYTE lfStrikeOut; + BYTE lfCharSet; + BYTE lfOutPrecision; + BYTE lfClipPrecision; + BYTE lfQuality; + BYTE lfPitchAndFamily; + WCHAR lfFaceName[LF_FACESIZE]; + } LOGFONTW; + + typedef DWORD HIMC; + typedef DWORD HIMCC; + + typedef struct + { + DWORD dwIndex; + DWORD dwStyle; + POINT ptCurrentPos; + RECT rcArea; + } CANDIDATEFORM; + + typedef struct + { + DWORD dwStyle; + POINT ptCurrentPos; + RECT rcArea; + } COMPOSITIONFORM; + + typedef struct + { + DWORD dwSize; + DWORD dwStyle; + DWORD dwCount; + DWORD dwSelection; + DWORD dwPageStart; + DWORD dwPageSize; + DWORD dwOffset[1]; + } CANDIDATELIST; + + #define STYLE_DESCRIPTION_SIZE 32 + + typedef struct + { + DWORD dwStyle; + CHAR szDescription[STYLE_DESCRIPTION_SIZE]; + } STYLEBUFA; + + typedef struct + { + DWORD dwStyle; + WCHAR szDescription[STYLE_DESCRIPTION_SIZE]; + } STYLEBUFW; + + typedef WORD ATOM; + + + cpp_quote("#endif") + + cpp_quote("#if (WINVER < 0x040A)") + + #define IMEMENUITEM_STRING_SIZE 80 + + typedef struct + { + UINT cbSize; + UINT fType; + UINT fState; + UINT wID; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + DWORD dwItemData; + CHAR szString[IMEMENUITEM_STRING_SIZE]; + HBITMAP hbmpItem; + } IMEMENUITEMINFOA; + + typedef struct + { + UINT cbSize; + UINT fType; + UINT fState; + UINT wID; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + DWORD dwItemData; + WCHAR szString[IMEMENUITEM_STRING_SIZE]; + HBITMAP hbmpItem; + } IMEMENUITEMINFOW; + + + cpp_quote("#endif") + + cpp_quote("#ifndef _DDKIMM_H_") + + typedef struct + { + HWND hWnd; + BOOL fOpen; + POINT ptStatusWndPos; + POINT ptSoftKbdPos; + DWORD fdwConversion; + DWORD fdwSentence; + union + { + LOGFONTA A; + LOGFONTW W; + } lfFont; + COMPOSITIONFORM cfCompForm; + CANDIDATEFORM cfCandForm[4]; + HIMCC hCompStr; + HIMCC hCandInfo; + HIMCC hGuideLine; + HIMCC hPrivate; + DWORD dwNumMsgBuf; + HIMCC hMsgBuf; + DWORD fdwInit; + DWORD dwReserve[3]; + } INPUTCONTEXT; + + typedef struct + { + DWORD dwPrivateDataSize; + DWORD fdwProperty; + DWORD fdwConversionCaps; + DWORD fdwSentenceCaps; + DWORD fdwUICaps; + DWORD fdwSCSCaps; + DWORD fdwSelectCaps; + } IMEINFO; + + cpp_quote("#endif") + + [ + object, + uuid(08C03412-F96B-11d0-A475-00AA006BCC59), + pointer_default(unique) + ] + interface IEnumRegisterWordA : IUnknown + { + HRESULT Clone([out] IEnumRegisterWordA **ppEnum); + HRESULT Next([in] ULONG ulCount, [out] REGISTERWORDA *rgRegisterWord, [out] ULONG *pcFetched); + HRESULT Reset(); + HRESULT Skip([in] ULONG ulCount); + }; + + [ + object, + uuid(4955DD31-B159-11d0-8FCF-00AA006BCC59), + pointer_default(unique) + ] + interface IEnumRegisterWordW : IUnknown + { + HRESULT Clone([out] IEnumRegisterWordW **ppEnum); + HRESULT Next([in] ULONG ulCount, [out] REGISTERWORDW *rgRegisterWord, [out] ULONG *pcFetched); + HRESULT Reset(); + HRESULT Skip([in] ULONG ulCount); + }; + + + [ + object, + uuid(09b5eab0-f997-11d1-93d4-0060b067b86e), + pointer_default(unique) + ] + interface IEnumInputContext : IUnknown + { + HRESULT Clone([out] IEnumInputContext **ppEnum); + HRESULT Next([in] ULONG ulCount, [out] HIMC *rgInputContext, [out] ULONG *pcFetched); + HRESULT Reset(); + HRESULT Skip([in] ULONG ulCount); + }; + + + [ + object, + uuid(b3458082-bd00-11d1-939b-0060b067b86e), + pointer_default(unique) + ] + interface IActiveIMMRegistrar : IUnknown + { + HRESULT RegisterIME([in] REFCLSID rclsid, [in] LANGID lgid, [in] LPCWSTR pszIconFile, [in] LPCWSTR pszDesc); + HRESULT UnregisterIME([in] REFCLSID rclsid); + }; + + [ + object, + uuid(b5cf2cfa-8aeb-11d1-9364-0060b067b86e), + pointer_default(unique) + ] + interface IActiveIMMMessagePumpOwner : IUnknown + { + HRESULT Start(); + HRESULT End(); + HRESULT OnTranslateMessage([in] const MSG *pMsg); + HRESULT Pause([out] DWORD *pdwCookie); + HRESULT Resume([in] DWORD dwCookie); + } + + [ + object, + uuid(08c0e040-62d1-11d1-9326-0060b067b86e), + pointer_default(unique) + ] + interface IActiveIMMApp : IUnknown + { + HRESULT AssociateContext([in] HWND hWnd, [in] HIMC hIME, [out] HIMC *phPrev); + HRESULT ConfigureIMEA([in] HKL hKL, [in] HWND hWnd, [in] DWORD dwMode, [in] REGISTERWORDA *pData); + HRESULT ConfigureIMEW([in] HKL hKL, [in] HWND hWnd, [in] DWORD dwMode, [in] REGISTERWORDW *pData); + HRESULT CreateContext([out] HIMC *phIMC); + HRESULT DestroyContext([in] HIMC hIME); + HRESULT EnumRegisterWordA([in] HKL hKL, [in] LPSTR szReading, [in] DWORD dwStyle, [in] LPSTR szRegister, [in] LPVOID pData, [out] IEnumRegisterWordA **pEnum); + HRESULT EnumRegisterWordW([in] HKL hKL, [in] LPWSTR szReading, [in] DWORD dwStyle, [in] LPWSTR szRegister, [in] LPVOID pData, [out] IEnumRegisterWordW **pEnum); + HRESULT EscapeA([in] HKL hKL, [in] HIMC hIMC, [in] UINT uEscape, [in, out] LPVOID pData, [out] LRESULT *plResult); + HRESULT EscapeW([in] HKL hKL, [in] HIMC hIMC, [in] UINT uEscape, [in, out] LPVOID pData, [out] LRESULT *plResult); + HRESULT GetCandidateListA([in] HIMC hIMC, [in] DWORD dwIndex, [in] UINT uBufLen, [out] CANDIDATELIST *pCandList, [out] UINT *puCopied); + HRESULT GetCandidateListW([in] HIMC hIMC, [in] DWORD dwIndex, [in] UINT uBufLen, [out] CANDIDATELIST *pCandList, [out] UINT *puCopied); + HRESULT GetCandidateListCountA([in] HIMC hIMC, [out] DWORD *pdwListSize, [out] DWORD *pdwBufLen); + HRESULT GetCandidateListCountW([in] HIMC hIMC, [out] DWORD *pdwListSize, [out] DWORD *pdwBufLen); + HRESULT GetCandidateWindow([in] HIMC hIMC, [in] DWORD dwIndex, [out] CANDIDATEFORM *pCandidate); + HRESULT GetCompositionFontA([in] HIMC hIMC, [out] LOGFONTA *plf); + HRESULT GetCompositionFontW([in] HIMC hIMC, [out] LOGFONTW *plf); + HRESULT GetCompositionStringA([in] HIMC hIMC, [in] DWORD dwIndex, [in] DWORD dwBufLen, [out] LONG *plCopied, [out] LPVOID pBuf); + HRESULT GetCompositionStringW([in] HIMC hIMC, [in] DWORD dwIndex, [in] DWORD dwBufLen, [out] LONG *plCopied, [out] LPVOID pBuf); + HRESULT GetCompositionWindow([in] HIMC hIMC, [out] COMPOSITIONFORM *pCompForm); + HRESULT GetContext([in] HWND hWnd, [out] HIMC *phIMC); + HRESULT GetConversionListA([in] HKL hKL, [in] HIMC hIMC, [in] LPSTR pSrc, [in] UINT uBufLen, [in] UINT uFlag, [out] CANDIDATELIST *pDst, [out] UINT *puCopied); + HRESULT GetConversionListW([in] HKL hKL, [in] HIMC hIMC, [in] LPWSTR pSrc, [in] UINT uBufLen, [in] UINT uFlag, [out] CANDIDATELIST *pDst, [out] UINT *puCopied); + HRESULT GetConversionStatus([in] HIMC hIMC, [out] DWORD *pfdwConversion, [out] DWORD *pfdwSentence); + HRESULT GetDefaultIMEWnd([in] HWND hWnd, [out] HWND *phDefWnd); + HRESULT GetDescriptionA([in] HKL hKL, [in] UINT uBufLen, [out] LPSTR szDescription, [out] UINT *puCopied); + HRESULT GetDescriptionW([in] HKL hKL, [in] UINT uBufLen, [out] LPWSTR szDescription, [out] UINT *puCopied); + HRESULT GetGuideLineA([in] HIMC hIMC, [in] DWORD dwIndex, [in] DWORD dwBufLen, [out] LPSTR pBuf, [out] DWORD *pdwResult); + HRESULT GetGuideLineW([in] HIMC hIMC, [in] DWORD dwIndex, [in] DWORD dwBufLen, [out] LPWSTR pBuf, [out] DWORD *pdwResult); + HRESULT GetIMEFileNameA([in] HKL hKL, [in] UINT uBufLen, [out] LPSTR szFileName, [out] UINT *puCopied); + HRESULT GetIMEFileNameW([in] HKL hKL, [in] UINT uBufLen, [out] LPWSTR szFileName, [out] UINT *puCopied); + HRESULT GetOpenStatus([in] HIMC hIMC); + HRESULT GetProperty([in] HKL hKL, [in] DWORD fdwIndex, [out] DWORD *pdwProperty); + HRESULT GetRegisterWordStyleA([in] HKL hKL, [in] UINT nItem, [out] STYLEBUFA *pStyleBuf, [out] UINT *puCopied); + HRESULT GetRegisterWordStyleW([in] HKL hKL, [in] UINT nItem, [out] STYLEBUFW *pStyleBuf, [out] UINT *puCopied); + HRESULT GetStatusWindowPos([in] HIMC hIMC, [out] POINT *pptPos); + HRESULT GetVirtualKey([in] HWND hWnd, [out] UINT *puVirtualKey); + HRESULT InstallIMEA([in] LPSTR szIMEFileName, [in] LPSTR szLayoutText, [out] HKL *phKL); + HRESULT InstallIMEW([in] LPWSTR szIMEFileName, [in] LPWSTR szLayoutText, [out] HKL *phKL); + HRESULT IsIME([in] HKL hKL); + HRESULT IsUIMessageA([in] HWND hWndIME, [in] UINT msg, [in] WPARAM wParam, [in] LPARAM lParam); + HRESULT IsUIMessageW([in] HWND hWndIME, [in] UINT msg, [in] WPARAM wParam, [in] LPARAM lParam); + HRESULT NotifyIME([in] HIMC hIMC, [in] DWORD dwAction, [in] DWORD dwIndex, [in] DWORD dwValue); + HRESULT RegisterWordA([in] HKL hKL, [in] LPSTR szReading, [in] DWORD dwStyle, [in] LPSTR szRegister); + HRESULT RegisterWordW([in] HKL hKL, [in] LPWSTR szReading, [in] DWORD dwStyle, [in] LPWSTR szRegister); + HRESULT ReleaseContext([in] HWND hWnd, [in] HIMC hIMC); + HRESULT SetCandidateWindow([in] HIMC hIMC, [in] CANDIDATEFORM *pCandidate); + HRESULT SetCompositionFontA([in] HIMC hIMC, [in] LOGFONTA *plf); + HRESULT SetCompositionFontW([in] HIMC hIMC, [in] LOGFONTW *plf); + HRESULT SetCompositionStringA([in] HIMC hIMC, [in] DWORD dwIndex, [in] LPVOID pComp, [in] DWORD dwCompLen, [in] LPVOID pRead, [in] DWORD dwReadLen); + HRESULT SetCompositionStringW([in] HIMC hIMC, [in] DWORD dwIndex, [in] LPVOID pComp, [in] DWORD dwCompLen, [in] LPVOID pRead, [in] DWORD dwReadLen); + HRESULT SetCompositionWindow([in] HIMC hIMC, [in] COMPOSITIONFORM *pCompForm); + HRESULT SetConversionStatus([in] HIMC hIMC, [in] DWORD fdwConversion, [in] DWORD fdwSentence); + HRESULT SetOpenStatus([in] HIMC hIMC, [in] BOOL fOpen); + HRESULT SetStatusWindowPos([in] HIMC hIMC, [in] POINT *pptPos); + HRESULT SimulateHotKey([in] HWND hWnd, [in] DWORD dwHotKeyID); + HRESULT UnregisterWordA([in] HKL hKL, [in] LPSTR szReading, [in] DWORD dwStyle, [in] LPSTR szUnregister); + HRESULT UnregisterWordW([in] HKL hKL, [in] LPWSTR szReading, [in] DWORD dwStyle, [in] LPWSTR szUnregister); + + HRESULT Activate([in] BOOL fRestoreLayout); + HRESULT Deactivate(); + + HRESULT OnDefWindowProc([in] HWND hWnd, [in] UINT Msg, [in] WPARAM wParam, [in] LPARAM lParam, [out] LRESULT *plResult); + + HRESULT FilterClientWindows([in] ATOM *aaClassList, [in] UINT uSize); + + HRESULT GetCodePageA([in] HKL hKL, [out] UINT *uCodePage); + HRESULT GetLangId([in] HKL hKL, [out] LANGID *plid); + + // win98/nt5 apis + HRESULT AssociateContextEx([in] HWND hWnd, [in] HIMC hIMC, [in] DWORD dwFlags); + HRESULT DisableIME([in] DWORD idThread); + HRESULT GetImeMenuItemsA([in] HIMC hIMC, [in] DWORD dwFlags, [in] DWORD dwType, [in] IMEMENUITEMINFOA *pImeParentMenu, [out] IMEMENUITEMINFOA *pImeMenu, [in] DWORD dwSize, [out] DWORD *pdwResult); + HRESULT GetImeMenuItemsW([in] HIMC hIMC, [in] DWORD dwFlags, [in] DWORD dwType, [in] IMEMENUITEMINFOW *pImeParentMenu, [out] IMEMENUITEMINFOW *pImeMenu, [in] DWORD dwSize, [out] DWORD *pdwResult); + HRESULT EnumInputContext([in] DWORD idThread, [out] IEnumInputContext **ppEnum); + }; + + [ + object, + uuid(08C03411-F96B-11d0-A475-00AA006BCC59), + pointer_default(unique) + ] + interface IActiveIMMIME : IUnknown + { + HRESULT AssociateContext([in] HWND hWnd, [in] HIMC hIME, [out] HIMC *phPrev); + HRESULT ConfigureIMEA([in] HKL hKL, [in] HWND hWnd, [in] DWORD dwMode, [in] REGISTERWORDA *pData); + HRESULT ConfigureIMEW([in] HKL hKL, [in] HWND hWnd, [in] DWORD dwMode, [in] REGISTERWORDW *pData); + HRESULT CreateContext([out] HIMC *phIMC); + HRESULT DestroyContext([in] HIMC hIME); + HRESULT EnumRegisterWordA([in] HKL hKL, [in] LPSTR szReading, [in] DWORD dwStyle, [in] LPSTR szRegister, [in] LPVOID pData, [out] IEnumRegisterWordA **pEnum); + HRESULT EnumRegisterWordW([in] HKL hKL, [in] LPWSTR szReading, [in] DWORD dwStyle, [in] LPWSTR szRegister, [in] LPVOID pData, [out] IEnumRegisterWordW **pEnum); + HRESULT EscapeA([in] HKL hKL, [in] HIMC hIMC, [in] UINT uEscape, [in, out] LPVOID pData, [out] LRESULT *plResult); + HRESULT EscapeW([in] HKL hKL, [in] HIMC hIMC, [in] UINT uEscape, [in, out] LPVOID pData, [out] LRESULT *plResult); + HRESULT GetCandidateListA([in] HIMC hIMC, [in] DWORD dwIndex, [in] UINT uBufLen, [out] CANDIDATELIST *pCandList, [out] UINT *puCopied); + HRESULT GetCandidateListW([in] HIMC hIMC, [in] DWORD dwIndex, [in] UINT uBufLen, [out] CANDIDATELIST *pCandList, [out] UINT *puCopied); + HRESULT GetCandidateListCountA([in] HIMC hIMC, [out] DWORD *pdwListSize, [out] DWORD *pdwBufLen); + HRESULT GetCandidateListCountW([in] HIMC hIMC, [out] DWORD *pdwListSize, [out] DWORD *pdwBufLen); + HRESULT GetCandidateWindow([in] HIMC hIMC, [in] DWORD dwIndex, [out] CANDIDATEFORM *pCandidate); + HRESULT GetCompositionFontA([in] HIMC hIMC, [out] LOGFONTA *plf); + HRESULT GetCompositionFontW([in] HIMC hIMC, [out] LOGFONTW *plf); + HRESULT GetCompositionStringA([in] HIMC hIMC, [in] DWORD dwIndex, [in] DWORD dwBufLen, [out] LONG *plCopied, [out] LPVOID pBuf); + HRESULT GetCompositionStringW([in] HIMC hIMC, [in] DWORD dwIndex, [in] DWORD dwBufLen, [out] LONG *plCopied, [out] LPVOID pBuf); + HRESULT GetCompositionWindow([in] HIMC hIMC, [out] COMPOSITIONFORM *pCompForm); + HRESULT GetContext([in] HWND hWnd, [out] HIMC *phIMC); + HRESULT GetConversionListA([in] HKL hKL, [in] HIMC hIMC, [in] LPSTR pSrc, [in] UINT uBufLen, [in] UINT uFlag, [out] CANDIDATELIST *pDst, [out] UINT *puCopied); + HRESULT GetConversionListW([in] HKL hKL, [in] HIMC hIMC, [in] LPWSTR pSrc, [in] UINT uBufLen, [in] UINT uFlag, [out] CANDIDATELIST *pDst, [out] UINT *puCopied); + HRESULT GetConversionStatus([in] HIMC hIMC, [out] DWORD *pfdwConversion, [out] DWORD *pfdwSentence); + HRESULT GetDefaultIMEWnd([in] HWND hWnd, [out] HWND *phDefWnd); + HRESULT GetDescriptionA([in] HKL hKL, [in] UINT uBufLen, [out] LPSTR szDescription, [out] UINT *puCopied); + HRESULT GetDescriptionW([in] HKL hKL, [in] UINT uBufLen, [out] LPWSTR szDescription, [out] UINT *puCopied); + HRESULT GetGuideLineA([in] HIMC hIMC, [in] DWORD dwIndex, [in] DWORD dwBufLen, [out] LPSTR pBuf, [out] DWORD *pdwResult); + HRESULT GetGuideLineW([in] HIMC hIMC, [in] DWORD dwIndex, [in] DWORD dwBufLen, [out] LPWSTR pBuf, [out] DWORD *pdwResult); + HRESULT GetIMEFileNameA([in] HKL hKL, [in] UINT uBufLen, [out] LPSTR szFileName, [out] UINT *puCopied); + HRESULT GetIMEFileNameW([in] HKL hKL, [in] UINT uBufLen, [out] LPWSTR szFileName, [out] UINT *puCopied); + HRESULT GetOpenStatus([in] HIMC hIMC); + HRESULT GetProperty([in] HKL hKL, [in] DWORD fdwIndex, [out] DWORD *pdwProperty); + HRESULT GetRegisterWordStyleA([in] HKL hKL, [in] UINT nItem, [out] STYLEBUFA *pStyleBuf, [out] UINT *puCopied); + HRESULT GetRegisterWordStyleW([in] HKL hKL, [in] UINT nItem, [out] STYLEBUFW *pStyleBuf, [out] UINT *puCopied); + HRESULT GetStatusWindowPos([in] HIMC hIMC, [out] POINT *pptPos); + HRESULT GetVirtualKey([in] HWND hWnd, [out] UINT *puVirtualKey); + HRESULT InstallIMEA([in] LPSTR szIMEFileName, [in] LPSTR szLayoutText, [out] HKL *phKL); + HRESULT InstallIMEW([in] LPWSTR szIMEFileName, [in] LPWSTR szLayoutText, [out] HKL *phKL); + HRESULT IsIME([in] HKL hKL); + HRESULT IsUIMessageA([in] HWND hWndIME, [in] UINT msg, [in] WPARAM wParam, [in] LPARAM lParam); + HRESULT IsUIMessageW([in] HWND hWndIME, [in] UINT msg, [in] WPARAM wParam, [in] LPARAM lParam); + HRESULT NotifyIME([in] HIMC hIMC, [in] DWORD dwAction, [in] DWORD dwIndex, [in] DWORD dwValue); + HRESULT RegisterWordA([in] HKL hKL, [in] LPSTR szReading, [in] DWORD dwStyle, [in] LPSTR szRegister); + HRESULT RegisterWordW([in] HKL hKL, [in] LPWSTR szReading, [in] DWORD dwStyle, [in] LPWSTR szRegister); + HRESULT ReleaseContext([in] HWND hWnd, [in] HIMC hIMC); + HRESULT SetCandidateWindow([in] HIMC hIMC, [in] CANDIDATEFORM *pCandidate); + HRESULT SetCompositionFontA([in] HIMC hIMC, [in] LOGFONTA *plf); + HRESULT SetCompositionFontW([in] HIMC hIMC, [in] LOGFONTW *plf); + HRESULT SetCompositionStringA([in] HIMC hIMC, [in] DWORD dwIndex, [in] LPVOID pComp, [in] DWORD dwCompLen, [in] LPVOID pRead, [in] DWORD dwReadLen); + HRESULT SetCompositionStringW([in] HIMC hIMC, [in] DWORD dwIndex, [in] LPVOID pComp, [in] DWORD dwCompLen, [in] LPVOID pRead, [in] DWORD dwReadLen); + HRESULT SetCompositionWindow([in] HIMC hIMC, [in] COMPOSITIONFORM *pCompForm); + HRESULT SetConversionStatus([in] HIMC hIMC, [in] DWORD fdwConversion, [in] DWORD fdwSentence); + HRESULT SetOpenStatus([in] HIMC hIMC, [in] BOOL fOpen); + HRESULT SetStatusWindowPos([in] HIMC hIMC, [in] POINT *pptPos); + HRESULT SimulateHotKey([in] HWND hWnd, [in] DWORD dwHotKeyID); + HRESULT UnregisterWordA([in] HKL hKL, [in] LPSTR szReading, [in] DWORD dwStyle, [in] LPSTR szUnregister); + HRESULT UnregisterWordW([in] HKL hKL, [in] LPWSTR szReading, [in] DWORD dwStyle, [in] LPWSTR szUnregister); + + // ime helper methods + HRESULT GenerateMessage([in] HIMC hIMC); + + // HIMC and HIMCC management api's + HRESULT LockIMC([in] HIMC hIMC, [out] INPUTCONTEXT **ppIMC); + HRESULT UnlockIMC([in] HIMC hIMC); + HRESULT GetIMCLockCount([in] HIMC hIMC, [out] DWORD *pdwLockCount); + HRESULT CreateIMCC([in] DWORD dwSize, [out] HIMCC *phIMCC); + HRESULT DestroyIMCC([in] HIMCC hIMCC); + HRESULT LockIMCC([in] HIMCC hIMCC, [out] void **ppv); + HRESULT UnlockIMCC([in] HIMCC hIMCC); + HRESULT ReSizeIMCC([in] HIMCC hIMCC, [in] DWORD dwSize, [out] HIMCC *phIMCC); + HRESULT GetIMCCSize([in] HIMCC hIMCC, [out] DWORD *pdwSize); + HRESULT GetIMCCLockCount([in] HIMCC hIMCC, [out] DWORD *pdwLockCount); + + // hot key manipulation api's + HRESULT GetHotKey([in] DWORD dwHotKeyID, [out] UINT *puModifiers, [out] UINT *puVKey, [out] HKL *phKL); + HRESULT SetHotKey([in] DWORD dwHotKeyID, [in] UINT uModifiers, [in] UINT uVKey, [in] HKL hKL); + + // soft keyboard api's + HRESULT CreateSoftKeyboard([in] UINT uType, [in] HWND hOwner, [in] int x, [in] int y, [out] HWND *phSoftKbdWnd); + HRESULT DestroySoftKeyboard([in] HWND hSoftKbdWnd); + HRESULT ShowSoftKeyboard([in] HWND hSoftKbdWnd, [in] int nCmdShow); + + HRESULT GetCodePageA([in] HKL hKL, [out] UINT *uCodePage); + HRESULT GetLangId([in] HKL hKL, [out] LANGID *plid); + + HRESULT KeybdEvent([in] LANGID lgidIME, [in] BYTE bVk, [in] BYTE bScan, [in] DWORD dwFlags, [in] DWORD dwExtraInfo); + + HRESULT LockModal(); + HRESULT UnlockModal(); + + // win98/nt5 apis + HRESULT AssociateContextEx([in] HWND hWnd, [in] HIMC hIMC, [in] DWORD dwFlags); + HRESULT DisableIME([in] DWORD idThread); + HRESULT GetImeMenuItemsA([in] HIMC hIMC, [in] DWORD dwFlags, [in] DWORD dwType, [in] IMEMENUITEMINFOA *pImeParentMenu, [out] IMEMENUITEMINFOA *pImeMenu, [in] DWORD dwSize, [out] DWORD *pdwResult); + HRESULT GetImeMenuItemsW([in] HIMC hIMC, [in] DWORD dwFlags, [in] DWORD dwType, [in] IMEMENUITEMINFOW *pImeParentMenu, [out] IMEMENUITEMINFOW *pImeMenu, [in] DWORD dwSize, [out] DWORD *pdwResult); + HRESULT EnumInputContext([in] DWORD idThread, [out] IEnumInputContext **ppEnum); + HRESULT RequestMessageA([in] HIMC hIMC, [in] WPARAM wParam, [in] LPARAM lParam, [out] LRESULT *plResult); + HRESULT RequestMessageW([in] HIMC hIMC, [in] WPARAM wParam, [in] LPARAM lParam, [out] LRESULT *plResult); + + HRESULT SendIMCA([in] HWND hWnd, [in] UINT uMsg, [in] WPARAM wParam, [in] LPARAM lParam, [out] LRESULT *plResult); + HRESULT SendIMCW([in] HWND hWnd, [in] UINT uMsg, [in] WPARAM wParam, [in] LPARAM lParam, [out] LRESULT *plResult); + + HRESULT IsSleeping(); + }; + + [ + object, + uuid(6FE20962-D077-11d0-8FE7-00AA006BCC59), + pointer_default(unique) + ] + interface IActiveIME : IUnknown + { + HRESULT Inquire([in] DWORD dwSystemInfoFlags, [out] IMEINFO *pIMEInfo, [out] LPWSTR szWndClass, [out] DWORD *pdwPrivate); + HRESULT ConversionList([in] HIMC hIMC, [in] LPWSTR szSource, [in] UINT uFlag, [in] UINT uBufLen, [out] CANDIDATELIST *pDest, [out] UINT *puCopied); + HRESULT Configure([in] HKL hKL, [in] HWND hWnd, [in] DWORD dwMode, [in] REGISTERWORDW *pRegisterWord); + HRESULT Destroy([in] UINT uReserved); + HRESULT Escape([in] HIMC hIMC, [in] UINT uEscape, [in, out] void *pData, [out] LRESULT *plResult); + HRESULT SetActiveContext([in] HIMC hIMC, [in] BOOL fFlag); + HRESULT ProcessKey([in] HIMC hIMC, [in] UINT uVirKey, [in] DWORD lParam, [in] BYTE *pbKeyState); + HRESULT Notify([in] HIMC hIMC, [in] DWORD dwAction, [in] DWORD dwIndex, [in] DWORD dwValue); + HRESULT Select([in] HIMC hIMC, [in] BOOL fSelect); + HRESULT SetCompositionString([in] HIMC hIMC, [in] DWORD dwIndex, [in] void *pComp, [in] DWORD dwCompLen, [in] void *pRead, [in] DWORD dwReadLen); + HRESULT ToAsciiEx([in] UINT uVirKey, [in] UINT uScanCode, [in] BYTE *pbKeyState, [in] UINT fuState, [in] HIMC hIMC, [out] DWORD *pdwTransBuf, [out] UINT *puSize); + HRESULT RegisterWord([in] LPWSTR szReading, [in] DWORD dwStyle, [in] LPWSTR szString); + HRESULT UnregisterWord([in] LPWSTR szReading, [in] DWORD dwStyle, [in] LPWSTR szString); + HRESULT GetRegisterWordStyle([in] UINT nItem, [out] STYLEBUFW *pStyleBuf, [out] UINT *puBufSize); + HRESULT EnumRegisterWord([in] LPWSTR szReading, [in] DWORD dwStyle, [in] LPWSTR szRegister, [in] LPVOID pData, [out] IEnumRegisterWordW **ppEnum); + HRESULT GetCodePageA([out] UINT *uCodePage); + HRESULT GetLangId([out] LANGID *plid); + }; + + [ + object, + uuid(e1c4bf0e-2d53-11d2-93e1-0060b067b86e), + pointer_default(unique) + ] + interface IActiveIME2 : IActiveIME + { + HRESULT Sleep(); + HRESULT Unsleep([in] BOOL fDead); + }; + + [ + uuid(4955DD33-B159-11d0-8FCF-00AA006BCC59), + ] + coclass CActiveIMM + { + [default] interface IActiveIMMApp; + interface IActiveIMMIME; + interface IActiveIMMRegistrar; + interface IActiveIMMMessagePumpOwner; + }; +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dimm.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dimm.h new file mode 100644 index 0000000000000000000000000000000000000000..1aef17347a19f35f5e6c1804868e84eaff324e0f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dimm.h @@ -0,0 +1,4134 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __dimm_h__ +#define __dimm_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEnumRegisterWordA_FWD_DEFINED__ +#define __IEnumRegisterWordA_FWD_DEFINED__ +typedef interface IEnumRegisterWordA IEnumRegisterWordA; + +#endif /* __IEnumRegisterWordA_FWD_DEFINED__ */ + + +#ifndef __IEnumRegisterWordW_FWD_DEFINED__ +#define __IEnumRegisterWordW_FWD_DEFINED__ +typedef interface IEnumRegisterWordW IEnumRegisterWordW; + +#endif /* __IEnumRegisterWordW_FWD_DEFINED__ */ + + +#ifndef __IEnumInputContext_FWD_DEFINED__ +#define __IEnumInputContext_FWD_DEFINED__ +typedef interface IEnumInputContext IEnumInputContext; + +#endif /* __IEnumInputContext_FWD_DEFINED__ */ + + +#ifndef __IActiveIMMRegistrar_FWD_DEFINED__ +#define __IActiveIMMRegistrar_FWD_DEFINED__ +typedef interface IActiveIMMRegistrar IActiveIMMRegistrar; + +#endif /* __IActiveIMMRegistrar_FWD_DEFINED__ */ + + +#ifndef __IActiveIMMMessagePumpOwner_FWD_DEFINED__ +#define __IActiveIMMMessagePumpOwner_FWD_DEFINED__ +typedef interface IActiveIMMMessagePumpOwner IActiveIMMMessagePumpOwner; + +#endif /* __IActiveIMMMessagePumpOwner_FWD_DEFINED__ */ + + +#ifndef __IActiveIMMApp_FWD_DEFINED__ +#define __IActiveIMMApp_FWD_DEFINED__ +typedef interface IActiveIMMApp IActiveIMMApp; + +#endif /* __IActiveIMMApp_FWD_DEFINED__ */ + + +#ifndef __IActiveIMMIME_FWD_DEFINED__ +#define __IActiveIMMIME_FWD_DEFINED__ +typedef interface IActiveIMMIME IActiveIMMIME; + +#endif /* __IActiveIMMIME_FWD_DEFINED__ */ + + +#ifndef __IActiveIME_FWD_DEFINED__ +#define __IActiveIME_FWD_DEFINED__ +typedef interface IActiveIME IActiveIME; + +#endif /* __IActiveIME_FWD_DEFINED__ */ + + +#ifndef __IActiveIME2_FWD_DEFINED__ +#define __IActiveIME2_FWD_DEFINED__ +typedef interface IActiveIME2 IActiveIME2; + +#endif /* __IActiveIME2_FWD_DEFINED__ */ + + +#ifndef __CActiveIMM_FWD_DEFINED__ +#define __CActiveIMM_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CActiveIMM CActiveIMM; +#else +typedef struct CActiveIMM CActiveIMM; +#endif /* __cplusplus */ + +#endif /* __CActiveIMM_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dimm_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// dimm.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#pragma comment(lib,"uuid.lib") + +//-------------------------------------------------------------------------- +// IActiveIMM Interfaces. + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +extern RPC_IF_HANDLE __MIDL_itf_dimm_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dimm_0000_0000_v0_0_s_ifspec; + + +#ifndef __ActiveIMM_LIBRARY_DEFINED__ +#define __ActiveIMM_LIBRARY_DEFINED__ + +/* library ActiveIMM */ +/* [version][lcid][helpstring][uuid] */ + +#include +#if 0 +typedef WORD LANGID; + +typedef /* [public][public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0001 + { + LPSTR lpReading; + LPSTR lpWord; + } REGISTERWORDA; + +typedef /* [public][public][public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0002 + { + LPWSTR lpReading; + LPWSTR lpWord; + } REGISTERWORDW; + +typedef /* [public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0003 + { + LONG lfHeight; + LONG lfWidth; + LONG lfEscapement; + LONG lfOrientation; + LONG lfWeight; + BYTE lfItalic; + BYTE lfUnderline; + BYTE lfStrikeOut; + BYTE lfCharSet; + BYTE lfOutPrecision; + BYTE lfClipPrecision; + BYTE lfQuality; + BYTE lfPitchAndFamily; + CHAR lfFaceName[ 32 ]; + } LOGFONTA; + +typedef /* [public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0004 + { + LONG lfHeight; + LONG lfWidth; + LONG lfEscapement; + LONG lfOrientation; + LONG lfWeight; + BYTE lfItalic; + BYTE lfUnderline; + BYTE lfStrikeOut; + BYTE lfCharSet; + BYTE lfOutPrecision; + BYTE lfClipPrecision; + BYTE lfQuality; + BYTE lfPitchAndFamily; + WCHAR lfFaceName[ 32 ]; + } LOGFONTW; + +typedef DWORD HIMC; + +typedef DWORD HIMCC; + +typedef /* [public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0005 + { + DWORD dwIndex; + DWORD dwStyle; + POINT ptCurrentPos; + RECT rcArea; + } CANDIDATEFORM; + +typedef /* [public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0006 + { + DWORD dwStyle; + POINT ptCurrentPos; + RECT rcArea; + } COMPOSITIONFORM; + +typedef /* [public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0007 + { + DWORD dwSize; + DWORD dwStyle; + DWORD dwCount; + DWORD dwSelection; + DWORD dwPageStart; + DWORD dwPageSize; + DWORD dwOffset[ 1 ]; + } CANDIDATELIST; + +typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0008 + { + DWORD dwStyle; + CHAR szDescription[ 32 ]; + } STYLEBUFA; + +typedef /* [public][public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0009 + { + DWORD dwStyle; + WCHAR szDescription[ 32 ]; + } STYLEBUFW; + +typedef WORD ATOM; + +#endif +#if (WINVER < 0x040A) +typedef /* [public][public][public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0010 + { + UINT cbSize; + UINT fType; + UINT fState; + UINT wID; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + DWORD dwItemData; + CHAR szString[ 80 ]; + HBITMAP hbmpItem; + } IMEMENUITEMINFOA; + +typedef /* [public][public][public][public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0011 + { + UINT cbSize; + UINT fType; + UINT fState; + UINT wID; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + DWORD dwItemData; + WCHAR szString[ 80 ]; + HBITMAP hbmpItem; + } IMEMENUITEMINFOW; + +#endif +#ifndef _DDKIMM_H_ +typedef /* [public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0012 + { + HWND hWnd; + BOOL fOpen; + POINT ptStatusWndPos; + POINT ptSoftKbdPos; + DWORD fdwConversion; + DWORD fdwSentence; + union + { + LOGFONTA A; + LOGFONTW W; + } lfFont; + COMPOSITIONFORM cfCompForm; + CANDIDATEFORM cfCandForm[ 4 ]; + HIMCC hCompStr; + HIMCC hCandInfo; + HIMCC hGuideLine; + HIMCC hPrivate; + DWORD dwNumMsgBuf; + HIMCC hMsgBuf; + DWORD fdwInit; + DWORD dwReserve[ 3 ]; + } INPUTCONTEXT; + +typedef /* [public][public] */ struct __MIDL___MIDL_itf_dimm_0000_0000_0014 + { + DWORD dwPrivateDataSize; + DWORD fdwProperty; + DWORD fdwConversionCaps; + DWORD fdwSentenceCaps; + DWORD fdwUICaps; + DWORD fdwSCSCaps; + DWORD fdwSelectCaps; + } IMEINFO; + +#endif + +EXTERN_C const IID LIBID_ActiveIMM; + +#ifndef __IEnumRegisterWordA_INTERFACE_DEFINED__ +#define __IEnumRegisterWordA_INTERFACE_DEFINED__ + +/* interface IEnumRegisterWordA */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumRegisterWordA; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("08C03412-F96B-11d0-A475-00AA006BCC59") + IEnumRegisterWordA : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordA **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG ulCount, + /* [out] */ __RPC__out REGISTERWORDA *rgRegisterWord, + /* [out] */ __RPC__out ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG ulCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumRegisterWordAVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumRegisterWordA * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumRegisterWordA * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumRegisterWordA * This); + + DECLSPEC_XFGVIRT(IEnumRegisterWordA, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumRegisterWordA * This, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordA **ppEnum); + + DECLSPEC_XFGVIRT(IEnumRegisterWordA, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumRegisterWordA * This, + /* [in] */ ULONG ulCount, + /* [out] */ __RPC__out REGISTERWORDA *rgRegisterWord, + /* [out] */ __RPC__out ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumRegisterWordA, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumRegisterWordA * This); + + DECLSPEC_XFGVIRT(IEnumRegisterWordA, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumRegisterWordA * This, + /* [in] */ ULONG ulCount); + + END_INTERFACE + } IEnumRegisterWordAVtbl; + + interface IEnumRegisterWordA + { + CONST_VTBL struct IEnumRegisterWordAVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumRegisterWordA_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumRegisterWordA_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumRegisterWordA_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumRegisterWordA_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#define IEnumRegisterWordA_Next(This,ulCount,rgRegisterWord,pcFetched) \ + ( (This)->lpVtbl -> Next(This,ulCount,rgRegisterWord,pcFetched) ) + +#define IEnumRegisterWordA_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumRegisterWordA_Skip(This,ulCount) \ + ( (This)->lpVtbl -> Skip(This,ulCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumRegisterWordA_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumRegisterWordW_INTERFACE_DEFINED__ +#define __IEnumRegisterWordW_INTERFACE_DEFINED__ + +/* interface IEnumRegisterWordW */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumRegisterWordW; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4955DD31-B159-11d0-8FCF-00AA006BCC59") + IEnumRegisterWordW : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordW **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG ulCount, + /* [out] */ __RPC__out REGISTERWORDW *rgRegisterWord, + /* [out] */ __RPC__out ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG ulCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumRegisterWordWVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumRegisterWordW * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumRegisterWordW * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumRegisterWordW * This); + + DECLSPEC_XFGVIRT(IEnumRegisterWordW, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumRegisterWordW * This, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordW **ppEnum); + + DECLSPEC_XFGVIRT(IEnumRegisterWordW, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumRegisterWordW * This, + /* [in] */ ULONG ulCount, + /* [out] */ __RPC__out REGISTERWORDW *rgRegisterWord, + /* [out] */ __RPC__out ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumRegisterWordW, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumRegisterWordW * This); + + DECLSPEC_XFGVIRT(IEnumRegisterWordW, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumRegisterWordW * This, + /* [in] */ ULONG ulCount); + + END_INTERFACE + } IEnumRegisterWordWVtbl; + + interface IEnumRegisterWordW + { + CONST_VTBL struct IEnumRegisterWordWVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumRegisterWordW_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumRegisterWordW_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumRegisterWordW_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumRegisterWordW_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#define IEnumRegisterWordW_Next(This,ulCount,rgRegisterWord,pcFetched) \ + ( (This)->lpVtbl -> Next(This,ulCount,rgRegisterWord,pcFetched) ) + +#define IEnumRegisterWordW_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumRegisterWordW_Skip(This,ulCount) \ + ( (This)->lpVtbl -> Skip(This,ulCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumRegisterWordW_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumInputContext_INTERFACE_DEFINED__ +#define __IEnumInputContext_INTERFACE_DEFINED__ + +/* interface IEnumInputContext */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumInputContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("09b5eab0-f997-11d1-93d4-0060b067b86e") + IEnumInputContext : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumInputContext **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG ulCount, + /* [out] */ __RPC__out HIMC *rgInputContext, + /* [out] */ __RPC__out ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG ulCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumInputContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumInputContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumInputContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumInputContext * This); + + DECLSPEC_XFGVIRT(IEnumInputContext, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumInputContext * This, + /* [out] */ __RPC__deref_out_opt IEnumInputContext **ppEnum); + + DECLSPEC_XFGVIRT(IEnumInputContext, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumInputContext * This, + /* [in] */ ULONG ulCount, + /* [out] */ __RPC__out HIMC *rgInputContext, + /* [out] */ __RPC__out ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumInputContext, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumInputContext * This); + + DECLSPEC_XFGVIRT(IEnumInputContext, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumInputContext * This, + /* [in] */ ULONG ulCount); + + END_INTERFACE + } IEnumInputContextVtbl; + + interface IEnumInputContext + { + CONST_VTBL struct IEnumInputContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumInputContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumInputContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumInputContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumInputContext_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#define IEnumInputContext_Next(This,ulCount,rgInputContext,pcFetched) \ + ( (This)->lpVtbl -> Next(This,ulCount,rgInputContext,pcFetched) ) + +#define IEnumInputContext_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumInputContext_Skip(This,ulCount) \ + ( (This)->lpVtbl -> Skip(This,ulCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumInputContext_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveIMMRegistrar_INTERFACE_DEFINED__ +#define __IActiveIMMRegistrar_INTERFACE_DEFINED__ + +/* interface IActiveIMMRegistrar */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveIMMRegistrar; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b3458082-bd00-11d1-939b-0060b067b86e") + IActiveIMMRegistrar : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterIME( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ LANGID lgid, + /* [in] */ __RPC__in LPCWSTR pszIconFile, + /* [in] */ __RPC__in LPCWSTR pszDesc) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterIME( + /* [in] */ __RPC__in REFCLSID rclsid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveIMMRegistrarVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveIMMRegistrar * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveIMMRegistrar * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveIMMRegistrar * This); + + DECLSPEC_XFGVIRT(IActiveIMMRegistrar, RegisterIME) + HRESULT ( STDMETHODCALLTYPE *RegisterIME )( + __RPC__in IActiveIMMRegistrar * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ LANGID lgid, + /* [in] */ __RPC__in LPCWSTR pszIconFile, + /* [in] */ __RPC__in LPCWSTR pszDesc); + + DECLSPEC_XFGVIRT(IActiveIMMRegistrar, UnregisterIME) + HRESULT ( STDMETHODCALLTYPE *UnregisterIME )( + __RPC__in IActiveIMMRegistrar * This, + /* [in] */ __RPC__in REFCLSID rclsid); + + END_INTERFACE + } IActiveIMMRegistrarVtbl; + + interface IActiveIMMRegistrar + { + CONST_VTBL struct IActiveIMMRegistrarVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveIMMRegistrar_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveIMMRegistrar_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveIMMRegistrar_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveIMMRegistrar_RegisterIME(This,rclsid,lgid,pszIconFile,pszDesc) \ + ( (This)->lpVtbl -> RegisterIME(This,rclsid,lgid,pszIconFile,pszDesc) ) + +#define IActiveIMMRegistrar_UnregisterIME(This,rclsid) \ + ( (This)->lpVtbl -> UnregisterIME(This,rclsid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveIMMRegistrar_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveIMMMessagePumpOwner_INTERFACE_DEFINED__ +#define __IActiveIMMMessagePumpOwner_INTERFACE_DEFINED__ + +/* interface IActiveIMMMessagePumpOwner */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveIMMMessagePumpOwner; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b5cf2cfa-8aeb-11d1-9364-0060b067b86e") + IActiveIMMMessagePumpOwner : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Start( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE End( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnTranslateMessage( + /* [in] */ __RPC__in const MSG *pMsg) = 0; + + virtual HRESULT STDMETHODCALLTYPE Pause( + /* [out] */ __RPC__out DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE Resume( + /* [in] */ DWORD dwCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveIMMMessagePumpOwnerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveIMMMessagePumpOwner * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveIMMMessagePumpOwner * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveIMMMessagePumpOwner * This); + + DECLSPEC_XFGVIRT(IActiveIMMMessagePumpOwner, Start) + HRESULT ( STDMETHODCALLTYPE *Start )( + __RPC__in IActiveIMMMessagePumpOwner * This); + + DECLSPEC_XFGVIRT(IActiveIMMMessagePumpOwner, End) + HRESULT ( STDMETHODCALLTYPE *End )( + __RPC__in IActiveIMMMessagePumpOwner * This); + + DECLSPEC_XFGVIRT(IActiveIMMMessagePumpOwner, OnTranslateMessage) + HRESULT ( STDMETHODCALLTYPE *OnTranslateMessage )( + __RPC__in IActiveIMMMessagePumpOwner * This, + /* [in] */ __RPC__in const MSG *pMsg); + + DECLSPEC_XFGVIRT(IActiveIMMMessagePumpOwner, Pause) + HRESULT ( STDMETHODCALLTYPE *Pause )( + __RPC__in IActiveIMMMessagePumpOwner * This, + /* [out] */ __RPC__out DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(IActiveIMMMessagePumpOwner, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IActiveIMMMessagePumpOwner * This, + /* [in] */ DWORD dwCookie); + + END_INTERFACE + } IActiveIMMMessagePumpOwnerVtbl; + + interface IActiveIMMMessagePumpOwner + { + CONST_VTBL struct IActiveIMMMessagePumpOwnerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveIMMMessagePumpOwner_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveIMMMessagePumpOwner_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveIMMMessagePumpOwner_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveIMMMessagePumpOwner_Start(This) \ + ( (This)->lpVtbl -> Start(This) ) + +#define IActiveIMMMessagePumpOwner_End(This) \ + ( (This)->lpVtbl -> End(This) ) + +#define IActiveIMMMessagePumpOwner_OnTranslateMessage(This,pMsg) \ + ( (This)->lpVtbl -> OnTranslateMessage(This,pMsg) ) + +#define IActiveIMMMessagePumpOwner_Pause(This,pdwCookie) \ + ( (This)->lpVtbl -> Pause(This,pdwCookie) ) + +#define IActiveIMMMessagePumpOwner_Resume(This,dwCookie) \ + ( (This)->lpVtbl -> Resume(This,dwCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveIMMMessagePumpOwner_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveIMMApp_INTERFACE_DEFINED__ +#define __IActiveIMMApp_INTERFACE_DEFINED__ + +/* interface IActiveIMMApp */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveIMMApp; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("08c0e040-62d1-11d1-9326-0060b067b86e") + IActiveIMMApp : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AssociateContext( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIME, + /* [out] */ __RPC__out HIMC *phPrev) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConfigureIMEA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDA *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConfigureIMEW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDW *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateContext( + /* [out] */ __RPC__out HIMC *phIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE DestroyContext( + /* [in] */ HIMC hIME) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumRegisterWordA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordA **pEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumRegisterWordW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordW **pEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE EscapeA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout LPVOID pData, + /* [out] */ __RPC__out LRESULT *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE EscapeW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout LPVOID pData, + /* [out] */ __RPC__out LRESULT *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateListA( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pCandList, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateListW( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pCandList, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateListCountA( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwListSize, + /* [out] */ __RPC__out DWORD *pdwBufLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateListCountW( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwListSize, + /* [out] */ __RPC__out DWORD *pdwBufLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateWindow( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__out CANDIDATEFORM *pCandidate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompositionFontA( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out LOGFONTA *plf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompositionFontW( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out LOGFONTW *plf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompositionStringA( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LONG *plCopied, + /* [out] */ __RPC__out LPVOID pBuf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompositionStringW( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LONG *plCopied, + /* [out] */ __RPC__out LPVOID pBuf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompositionWindow( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out COMPOSITIONFORM *pCompForm) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContext( + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__out HIMC *phIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConversionListA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPSTR pSrc, + /* [in] */ UINT uBufLen, + /* [in] */ UINT uFlag, + /* [out] */ __RPC__out CANDIDATELIST *pDst, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConversionListW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPWSTR pSrc, + /* [in] */ UINT uBufLen, + /* [in] */ UINT uFlag, + /* [out] */ __RPC__out CANDIDATELIST *pDst, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConversionStatus( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pfdwConversion, + /* [out] */ __RPC__out DWORD *pfdwSentence) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefaultIMEWnd( + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__deref_out_opt HWND *phDefWnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescriptionA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPSTR szDescription, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescriptionW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPWSTR szDescription, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGuideLineA( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LPSTR pBuf, + /* [out] */ __RPC__out DWORD *pdwResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGuideLineW( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LPWSTR pBuf, + /* [out] */ __RPC__out DWORD *pdwResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIMEFileNameA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPSTR szFileName, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIMEFileNameW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPWSTR szFileName, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOpenStatus( + /* [in] */ HIMC hIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ DWORD fdwIndex, + /* [out] */ __RPC__out DWORD *pdwProperty) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRegisterWordStyleA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFA *pStyleBuf, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRegisterWordStyleW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFW *pStyleBuf, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatusWindowPos( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out POINT *pptPos) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVirtualKey( + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__out UINT *puVirtualKey) = 0; + + virtual HRESULT STDMETHODCALLTYPE InstallIMEA( + /* [in] */ __RPC__in LPSTR szIMEFileName, + /* [in] */ __RPC__in LPSTR szLayoutText, + /* [out] */ __RPC__deref_out_opt HKL *phKL) = 0; + + virtual HRESULT STDMETHODCALLTYPE InstallIMEW( + /* [in] */ __RPC__in LPWSTR szIMEFileName, + /* [in] */ __RPC__in LPWSTR szLayoutText, + /* [out] */ __RPC__deref_out_opt HKL *phKL) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsIME( + /* [in] */ __RPC__in HKL hKL) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsUIMessageA( + /* [in] */ __RPC__in HWND hWndIME, + /* [in] */ UINT msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsUIMessageW( + /* [in] */ __RPC__in HWND hWndIME, + /* [in] */ UINT msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE NotifyIME( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwAction, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterWordA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szRegister) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterWordW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseContext( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCandidateWindow( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in CANDIDATEFORM *pCandidate) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionFontA( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LOGFONTA *plf) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionFontW( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LOGFONTW *plf) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionStringA( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in LPVOID pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in LPVOID pRead, + /* [in] */ DWORD dwReadLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionStringW( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in LPVOID pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in LPVOID pRead, + /* [in] */ DWORD dwReadLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionWindow( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in COMPOSITIONFORM *pCompForm) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetConversionStatus( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD fdwConversion, + /* [in] */ DWORD fdwSentence) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetOpenStatus( + /* [in] */ HIMC hIMC, + /* [in] */ BOOL fOpen) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStatusWindowPos( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in POINT *pptPos) = 0; + + virtual HRESULT STDMETHODCALLTYPE SimulateHotKey( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwHotKeyID) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterWordA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szUnregister) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterWordW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szUnregister) = 0; + + virtual HRESULT STDMETHODCALLTYPE Activate( + /* [in] */ BOOL fRestoreLayout) = 0; + + virtual HRESULT STDMETHODCALLTYPE Deactivate( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnDefWindowProc( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ UINT Msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out LRESULT *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE FilterClientWindows( + /* [in] */ __RPC__in ATOM *aaClassList, + /* [in] */ UINT uSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodePageA( + /* [in] */ __RPC__in HKL hKL, + /* [out] */ __RPC__out UINT *uCodePage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLangId( + /* [in] */ __RPC__in HKL hKL, + /* [out] */ __RPC__out LANGID *plid) = 0; + + virtual HRESULT STDMETHODCALLTYPE AssociateContextEx( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisableIME( + /* [in] */ DWORD idThread) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetImeMenuItemsA( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwType, + /* [in] */ __RPC__in IMEMENUITEMINFOA *pImeParentMenu, + /* [out] */ __RPC__out IMEMENUITEMINFOA *pImeMenu, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out DWORD *pdwResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetImeMenuItemsW( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwType, + /* [in] */ __RPC__in IMEMENUITEMINFOW *pImeParentMenu, + /* [out] */ __RPC__out IMEMENUITEMINFOW *pImeMenu, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out DWORD *pdwResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumInputContext( + /* [in] */ DWORD idThread, + /* [out] */ __RPC__deref_out_opt IEnumInputContext **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveIMMAppVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveIMMApp * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveIMMApp * This); + + DECLSPEC_XFGVIRT(IActiveIMMApp, AssociateContext) + HRESULT ( STDMETHODCALLTYPE *AssociateContext )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIME, + /* [out] */ __RPC__out HIMC *phPrev); + + DECLSPEC_XFGVIRT(IActiveIMMApp, ConfigureIMEA) + HRESULT ( STDMETHODCALLTYPE *ConfigureIMEA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDA *pData); + + DECLSPEC_XFGVIRT(IActiveIMMApp, ConfigureIMEW) + HRESULT ( STDMETHODCALLTYPE *ConfigureIMEW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDW *pData); + + DECLSPEC_XFGVIRT(IActiveIMMApp, CreateContext) + HRESULT ( STDMETHODCALLTYPE *CreateContext )( + __RPC__in IActiveIMMApp * This, + /* [out] */ __RPC__out HIMC *phIMC); + + DECLSPEC_XFGVIRT(IActiveIMMApp, DestroyContext) + HRESULT ( STDMETHODCALLTYPE *DestroyContext )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIME); + + DECLSPEC_XFGVIRT(IActiveIMMApp, EnumRegisterWordA) + HRESULT ( STDMETHODCALLTYPE *EnumRegisterWordA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordA **pEnum); + + DECLSPEC_XFGVIRT(IActiveIMMApp, EnumRegisterWordW) + HRESULT ( STDMETHODCALLTYPE *EnumRegisterWordW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordW **pEnum); + + DECLSPEC_XFGVIRT(IActiveIMMApp, EscapeA) + HRESULT ( STDMETHODCALLTYPE *EscapeA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout LPVOID pData, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIMMApp, EscapeW) + HRESULT ( STDMETHODCALLTYPE *EscapeW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout LPVOID pData, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCandidateListA) + HRESULT ( STDMETHODCALLTYPE *GetCandidateListA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pCandList, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCandidateListW) + HRESULT ( STDMETHODCALLTYPE *GetCandidateListW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pCandList, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCandidateListCountA) + HRESULT ( STDMETHODCALLTYPE *GetCandidateListCountA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwListSize, + /* [out] */ __RPC__out DWORD *pdwBufLen); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCandidateListCountW) + HRESULT ( STDMETHODCALLTYPE *GetCandidateListCountW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwListSize, + /* [out] */ __RPC__out DWORD *pdwBufLen); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCandidateWindow) + HRESULT ( STDMETHODCALLTYPE *GetCandidateWindow )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__out CANDIDATEFORM *pCandidate); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCompositionFontA) + HRESULT ( STDMETHODCALLTYPE *GetCompositionFontA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out LOGFONTA *plf); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCompositionFontW) + HRESULT ( STDMETHODCALLTYPE *GetCompositionFontW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out LOGFONTW *plf); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCompositionStringA) + HRESULT ( STDMETHODCALLTYPE *GetCompositionStringA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LONG *plCopied, + /* [out] */ __RPC__out LPVOID pBuf); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCompositionStringW) + HRESULT ( STDMETHODCALLTYPE *GetCompositionStringW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LONG *plCopied, + /* [out] */ __RPC__out LPVOID pBuf); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCompositionWindow) + HRESULT ( STDMETHODCALLTYPE *GetCompositionWindow )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out COMPOSITIONFORM *pCompForm); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetContext) + HRESULT ( STDMETHODCALLTYPE *GetContext )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__out HIMC *phIMC); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetConversionListA) + HRESULT ( STDMETHODCALLTYPE *GetConversionListA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPSTR pSrc, + /* [in] */ UINT uBufLen, + /* [in] */ UINT uFlag, + /* [out] */ __RPC__out CANDIDATELIST *pDst, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetConversionListW) + HRESULT ( STDMETHODCALLTYPE *GetConversionListW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPWSTR pSrc, + /* [in] */ UINT uBufLen, + /* [in] */ UINT uFlag, + /* [out] */ __RPC__out CANDIDATELIST *pDst, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetConversionStatus) + HRESULT ( STDMETHODCALLTYPE *GetConversionStatus )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pfdwConversion, + /* [out] */ __RPC__out DWORD *pfdwSentence); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetDefaultIMEWnd) + HRESULT ( STDMETHODCALLTYPE *GetDefaultIMEWnd )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__deref_out_opt HWND *phDefWnd); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetDescriptionA) + HRESULT ( STDMETHODCALLTYPE *GetDescriptionA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPSTR szDescription, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetDescriptionW) + HRESULT ( STDMETHODCALLTYPE *GetDescriptionW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPWSTR szDescription, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetGuideLineA) + HRESULT ( STDMETHODCALLTYPE *GetGuideLineA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LPSTR pBuf, + /* [out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetGuideLineW) + HRESULT ( STDMETHODCALLTYPE *GetGuideLineW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LPWSTR pBuf, + /* [out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetIMEFileNameA) + HRESULT ( STDMETHODCALLTYPE *GetIMEFileNameA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPSTR szFileName, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetIMEFileNameW) + HRESULT ( STDMETHODCALLTYPE *GetIMEFileNameW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPWSTR szFileName, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetOpenStatus) + HRESULT ( STDMETHODCALLTYPE *GetOpenStatus )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ DWORD fdwIndex, + /* [out] */ __RPC__out DWORD *pdwProperty); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetRegisterWordStyleA) + HRESULT ( STDMETHODCALLTYPE *GetRegisterWordStyleA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFA *pStyleBuf, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetRegisterWordStyleW) + HRESULT ( STDMETHODCALLTYPE *GetRegisterWordStyleW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFW *pStyleBuf, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetStatusWindowPos) + HRESULT ( STDMETHODCALLTYPE *GetStatusWindowPos )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out POINT *pptPos); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetVirtualKey) + HRESULT ( STDMETHODCALLTYPE *GetVirtualKey )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__out UINT *puVirtualKey); + + DECLSPEC_XFGVIRT(IActiveIMMApp, InstallIMEA) + HRESULT ( STDMETHODCALLTYPE *InstallIMEA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in LPSTR szIMEFileName, + /* [in] */ __RPC__in LPSTR szLayoutText, + /* [out] */ __RPC__deref_out_opt HKL *phKL); + + DECLSPEC_XFGVIRT(IActiveIMMApp, InstallIMEW) + HRESULT ( STDMETHODCALLTYPE *InstallIMEW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in LPWSTR szIMEFileName, + /* [in] */ __RPC__in LPWSTR szLayoutText, + /* [out] */ __RPC__deref_out_opt HKL *phKL); + + DECLSPEC_XFGVIRT(IActiveIMMApp, IsIME) + HRESULT ( STDMETHODCALLTYPE *IsIME )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL); + + DECLSPEC_XFGVIRT(IActiveIMMApp, IsUIMessageA) + HRESULT ( STDMETHODCALLTYPE *IsUIMessageA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HWND hWndIME, + /* [in] */ UINT msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam); + + DECLSPEC_XFGVIRT(IActiveIMMApp, IsUIMessageW) + HRESULT ( STDMETHODCALLTYPE *IsUIMessageW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HWND hWndIME, + /* [in] */ UINT msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam); + + DECLSPEC_XFGVIRT(IActiveIMMApp, NotifyIME) + HRESULT ( STDMETHODCALLTYPE *NotifyIME )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwAction, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwValue); + + DECLSPEC_XFGVIRT(IActiveIMMApp, RegisterWordA) + HRESULT ( STDMETHODCALLTYPE *RegisterWordA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szRegister); + + DECLSPEC_XFGVIRT(IActiveIMMApp, RegisterWordW) + HRESULT ( STDMETHODCALLTYPE *RegisterWordW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister); + + DECLSPEC_XFGVIRT(IActiveIMMApp, ReleaseContext) + HRESULT ( STDMETHODCALLTYPE *ReleaseContext )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIMC); + + DECLSPEC_XFGVIRT(IActiveIMMApp, SetCandidateWindow) + HRESULT ( STDMETHODCALLTYPE *SetCandidateWindow )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in CANDIDATEFORM *pCandidate); + + DECLSPEC_XFGVIRT(IActiveIMMApp, SetCompositionFontA) + HRESULT ( STDMETHODCALLTYPE *SetCompositionFontA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LOGFONTA *plf); + + DECLSPEC_XFGVIRT(IActiveIMMApp, SetCompositionFontW) + HRESULT ( STDMETHODCALLTYPE *SetCompositionFontW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LOGFONTW *plf); + + DECLSPEC_XFGVIRT(IActiveIMMApp, SetCompositionStringA) + HRESULT ( STDMETHODCALLTYPE *SetCompositionStringA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in LPVOID pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in LPVOID pRead, + /* [in] */ DWORD dwReadLen); + + DECLSPEC_XFGVIRT(IActiveIMMApp, SetCompositionStringW) + HRESULT ( STDMETHODCALLTYPE *SetCompositionStringW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in LPVOID pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in LPVOID pRead, + /* [in] */ DWORD dwReadLen); + + DECLSPEC_XFGVIRT(IActiveIMMApp, SetCompositionWindow) + HRESULT ( STDMETHODCALLTYPE *SetCompositionWindow )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in COMPOSITIONFORM *pCompForm); + + DECLSPEC_XFGVIRT(IActiveIMMApp, SetConversionStatus) + HRESULT ( STDMETHODCALLTYPE *SetConversionStatus )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD fdwConversion, + /* [in] */ DWORD fdwSentence); + + DECLSPEC_XFGVIRT(IActiveIMMApp, SetOpenStatus) + HRESULT ( STDMETHODCALLTYPE *SetOpenStatus )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ BOOL fOpen); + + DECLSPEC_XFGVIRT(IActiveIMMApp, SetStatusWindowPos) + HRESULT ( STDMETHODCALLTYPE *SetStatusWindowPos )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in POINT *pptPos); + + DECLSPEC_XFGVIRT(IActiveIMMApp, SimulateHotKey) + HRESULT ( STDMETHODCALLTYPE *SimulateHotKey )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwHotKeyID); + + DECLSPEC_XFGVIRT(IActiveIMMApp, UnregisterWordA) + HRESULT ( STDMETHODCALLTYPE *UnregisterWordA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szUnregister); + + DECLSPEC_XFGVIRT(IActiveIMMApp, UnregisterWordW) + HRESULT ( STDMETHODCALLTYPE *UnregisterWordW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szUnregister); + + DECLSPEC_XFGVIRT(IActiveIMMApp, Activate) + HRESULT ( STDMETHODCALLTYPE *Activate )( + __RPC__in IActiveIMMApp * This, + /* [in] */ BOOL fRestoreLayout); + + DECLSPEC_XFGVIRT(IActiveIMMApp, Deactivate) + HRESULT ( STDMETHODCALLTYPE *Deactivate )( + __RPC__in IActiveIMMApp * This); + + DECLSPEC_XFGVIRT(IActiveIMMApp, OnDefWindowProc) + HRESULT ( STDMETHODCALLTYPE *OnDefWindowProc )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ UINT Msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIMMApp, FilterClientWindows) + HRESULT ( STDMETHODCALLTYPE *FilterClientWindows )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in ATOM *aaClassList, + /* [in] */ UINT uSize); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetCodePageA) + HRESULT ( STDMETHODCALLTYPE *GetCodePageA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [out] */ __RPC__out UINT *uCodePage); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetLangId) + HRESULT ( STDMETHODCALLTYPE *GetLangId )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HKL hKL, + /* [out] */ __RPC__out LANGID *plid); + + DECLSPEC_XFGVIRT(IActiveIMMApp, AssociateContextEx) + HRESULT ( STDMETHODCALLTYPE *AssociateContextEx )( + __RPC__in IActiveIMMApp * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IActiveIMMApp, DisableIME) + HRESULT ( STDMETHODCALLTYPE *DisableIME )( + __RPC__in IActiveIMMApp * This, + /* [in] */ DWORD idThread); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetImeMenuItemsA) + HRESULT ( STDMETHODCALLTYPE *GetImeMenuItemsA )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwType, + /* [in] */ __RPC__in IMEMENUITEMINFOA *pImeParentMenu, + /* [out] */ __RPC__out IMEMENUITEMINFOA *pImeMenu, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IActiveIMMApp, GetImeMenuItemsW) + HRESULT ( STDMETHODCALLTYPE *GetImeMenuItemsW )( + __RPC__in IActiveIMMApp * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwType, + /* [in] */ __RPC__in IMEMENUITEMINFOW *pImeParentMenu, + /* [out] */ __RPC__out IMEMENUITEMINFOW *pImeMenu, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IActiveIMMApp, EnumInputContext) + HRESULT ( STDMETHODCALLTYPE *EnumInputContext )( + __RPC__in IActiveIMMApp * This, + /* [in] */ DWORD idThread, + /* [out] */ __RPC__deref_out_opt IEnumInputContext **ppEnum); + + END_INTERFACE + } IActiveIMMAppVtbl; + + interface IActiveIMMApp + { + CONST_VTBL struct IActiveIMMAppVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveIMMApp_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveIMMApp_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveIMMApp_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveIMMApp_AssociateContext(This,hWnd,hIME,phPrev) \ + ( (This)->lpVtbl -> AssociateContext(This,hWnd,hIME,phPrev) ) + +#define IActiveIMMApp_ConfigureIMEA(This,hKL,hWnd,dwMode,pData) \ + ( (This)->lpVtbl -> ConfigureIMEA(This,hKL,hWnd,dwMode,pData) ) + +#define IActiveIMMApp_ConfigureIMEW(This,hKL,hWnd,dwMode,pData) \ + ( (This)->lpVtbl -> ConfigureIMEW(This,hKL,hWnd,dwMode,pData) ) + +#define IActiveIMMApp_CreateContext(This,phIMC) \ + ( (This)->lpVtbl -> CreateContext(This,phIMC) ) + +#define IActiveIMMApp_DestroyContext(This,hIME) \ + ( (This)->lpVtbl -> DestroyContext(This,hIME) ) + +#define IActiveIMMApp_EnumRegisterWordA(This,hKL,szReading,dwStyle,szRegister,pData,pEnum) \ + ( (This)->lpVtbl -> EnumRegisterWordA(This,hKL,szReading,dwStyle,szRegister,pData,pEnum) ) + +#define IActiveIMMApp_EnumRegisterWordW(This,hKL,szReading,dwStyle,szRegister,pData,pEnum) \ + ( (This)->lpVtbl -> EnumRegisterWordW(This,hKL,szReading,dwStyle,szRegister,pData,pEnum) ) + +#define IActiveIMMApp_EscapeA(This,hKL,hIMC,uEscape,pData,plResult) \ + ( (This)->lpVtbl -> EscapeA(This,hKL,hIMC,uEscape,pData,plResult) ) + +#define IActiveIMMApp_EscapeW(This,hKL,hIMC,uEscape,pData,plResult) \ + ( (This)->lpVtbl -> EscapeW(This,hKL,hIMC,uEscape,pData,plResult) ) + +#define IActiveIMMApp_GetCandidateListA(This,hIMC,dwIndex,uBufLen,pCandList,puCopied) \ + ( (This)->lpVtbl -> GetCandidateListA(This,hIMC,dwIndex,uBufLen,pCandList,puCopied) ) + +#define IActiveIMMApp_GetCandidateListW(This,hIMC,dwIndex,uBufLen,pCandList,puCopied) \ + ( (This)->lpVtbl -> GetCandidateListW(This,hIMC,dwIndex,uBufLen,pCandList,puCopied) ) + +#define IActiveIMMApp_GetCandidateListCountA(This,hIMC,pdwListSize,pdwBufLen) \ + ( (This)->lpVtbl -> GetCandidateListCountA(This,hIMC,pdwListSize,pdwBufLen) ) + +#define IActiveIMMApp_GetCandidateListCountW(This,hIMC,pdwListSize,pdwBufLen) \ + ( (This)->lpVtbl -> GetCandidateListCountW(This,hIMC,pdwListSize,pdwBufLen) ) + +#define IActiveIMMApp_GetCandidateWindow(This,hIMC,dwIndex,pCandidate) \ + ( (This)->lpVtbl -> GetCandidateWindow(This,hIMC,dwIndex,pCandidate) ) + +#define IActiveIMMApp_GetCompositionFontA(This,hIMC,plf) \ + ( (This)->lpVtbl -> GetCompositionFontA(This,hIMC,plf) ) + +#define IActiveIMMApp_GetCompositionFontW(This,hIMC,plf) \ + ( (This)->lpVtbl -> GetCompositionFontW(This,hIMC,plf) ) + +#define IActiveIMMApp_GetCompositionStringA(This,hIMC,dwIndex,dwBufLen,plCopied,pBuf) \ + ( (This)->lpVtbl -> GetCompositionStringA(This,hIMC,dwIndex,dwBufLen,plCopied,pBuf) ) + +#define IActiveIMMApp_GetCompositionStringW(This,hIMC,dwIndex,dwBufLen,plCopied,pBuf) \ + ( (This)->lpVtbl -> GetCompositionStringW(This,hIMC,dwIndex,dwBufLen,plCopied,pBuf) ) + +#define IActiveIMMApp_GetCompositionWindow(This,hIMC,pCompForm) \ + ( (This)->lpVtbl -> GetCompositionWindow(This,hIMC,pCompForm) ) + +#define IActiveIMMApp_GetContext(This,hWnd,phIMC) \ + ( (This)->lpVtbl -> GetContext(This,hWnd,phIMC) ) + +#define IActiveIMMApp_GetConversionListA(This,hKL,hIMC,pSrc,uBufLen,uFlag,pDst,puCopied) \ + ( (This)->lpVtbl -> GetConversionListA(This,hKL,hIMC,pSrc,uBufLen,uFlag,pDst,puCopied) ) + +#define IActiveIMMApp_GetConversionListW(This,hKL,hIMC,pSrc,uBufLen,uFlag,pDst,puCopied) \ + ( (This)->lpVtbl -> GetConversionListW(This,hKL,hIMC,pSrc,uBufLen,uFlag,pDst,puCopied) ) + +#define IActiveIMMApp_GetConversionStatus(This,hIMC,pfdwConversion,pfdwSentence) \ + ( (This)->lpVtbl -> GetConversionStatus(This,hIMC,pfdwConversion,pfdwSentence) ) + +#define IActiveIMMApp_GetDefaultIMEWnd(This,hWnd,phDefWnd) \ + ( (This)->lpVtbl -> GetDefaultIMEWnd(This,hWnd,phDefWnd) ) + +#define IActiveIMMApp_GetDescriptionA(This,hKL,uBufLen,szDescription,puCopied) \ + ( (This)->lpVtbl -> GetDescriptionA(This,hKL,uBufLen,szDescription,puCopied) ) + +#define IActiveIMMApp_GetDescriptionW(This,hKL,uBufLen,szDescription,puCopied) \ + ( (This)->lpVtbl -> GetDescriptionW(This,hKL,uBufLen,szDescription,puCopied) ) + +#define IActiveIMMApp_GetGuideLineA(This,hIMC,dwIndex,dwBufLen,pBuf,pdwResult) \ + ( (This)->lpVtbl -> GetGuideLineA(This,hIMC,dwIndex,dwBufLen,pBuf,pdwResult) ) + +#define IActiveIMMApp_GetGuideLineW(This,hIMC,dwIndex,dwBufLen,pBuf,pdwResult) \ + ( (This)->lpVtbl -> GetGuideLineW(This,hIMC,dwIndex,dwBufLen,pBuf,pdwResult) ) + +#define IActiveIMMApp_GetIMEFileNameA(This,hKL,uBufLen,szFileName,puCopied) \ + ( (This)->lpVtbl -> GetIMEFileNameA(This,hKL,uBufLen,szFileName,puCopied) ) + +#define IActiveIMMApp_GetIMEFileNameW(This,hKL,uBufLen,szFileName,puCopied) \ + ( (This)->lpVtbl -> GetIMEFileNameW(This,hKL,uBufLen,szFileName,puCopied) ) + +#define IActiveIMMApp_GetOpenStatus(This,hIMC) \ + ( (This)->lpVtbl -> GetOpenStatus(This,hIMC) ) + +#define IActiveIMMApp_GetProperty(This,hKL,fdwIndex,pdwProperty) \ + ( (This)->lpVtbl -> GetProperty(This,hKL,fdwIndex,pdwProperty) ) + +#define IActiveIMMApp_GetRegisterWordStyleA(This,hKL,nItem,pStyleBuf,puCopied) \ + ( (This)->lpVtbl -> GetRegisterWordStyleA(This,hKL,nItem,pStyleBuf,puCopied) ) + +#define IActiveIMMApp_GetRegisterWordStyleW(This,hKL,nItem,pStyleBuf,puCopied) \ + ( (This)->lpVtbl -> GetRegisterWordStyleW(This,hKL,nItem,pStyleBuf,puCopied) ) + +#define IActiveIMMApp_GetStatusWindowPos(This,hIMC,pptPos) \ + ( (This)->lpVtbl -> GetStatusWindowPos(This,hIMC,pptPos) ) + +#define IActiveIMMApp_GetVirtualKey(This,hWnd,puVirtualKey) \ + ( (This)->lpVtbl -> GetVirtualKey(This,hWnd,puVirtualKey) ) + +#define IActiveIMMApp_InstallIMEA(This,szIMEFileName,szLayoutText,phKL) \ + ( (This)->lpVtbl -> InstallIMEA(This,szIMEFileName,szLayoutText,phKL) ) + +#define IActiveIMMApp_InstallIMEW(This,szIMEFileName,szLayoutText,phKL) \ + ( (This)->lpVtbl -> InstallIMEW(This,szIMEFileName,szLayoutText,phKL) ) + +#define IActiveIMMApp_IsIME(This,hKL) \ + ( (This)->lpVtbl -> IsIME(This,hKL) ) + +#define IActiveIMMApp_IsUIMessageA(This,hWndIME,msg,wParam,lParam) \ + ( (This)->lpVtbl -> IsUIMessageA(This,hWndIME,msg,wParam,lParam) ) + +#define IActiveIMMApp_IsUIMessageW(This,hWndIME,msg,wParam,lParam) \ + ( (This)->lpVtbl -> IsUIMessageW(This,hWndIME,msg,wParam,lParam) ) + +#define IActiveIMMApp_NotifyIME(This,hIMC,dwAction,dwIndex,dwValue) \ + ( (This)->lpVtbl -> NotifyIME(This,hIMC,dwAction,dwIndex,dwValue) ) + +#define IActiveIMMApp_RegisterWordA(This,hKL,szReading,dwStyle,szRegister) \ + ( (This)->lpVtbl -> RegisterWordA(This,hKL,szReading,dwStyle,szRegister) ) + +#define IActiveIMMApp_RegisterWordW(This,hKL,szReading,dwStyle,szRegister) \ + ( (This)->lpVtbl -> RegisterWordW(This,hKL,szReading,dwStyle,szRegister) ) + +#define IActiveIMMApp_ReleaseContext(This,hWnd,hIMC) \ + ( (This)->lpVtbl -> ReleaseContext(This,hWnd,hIMC) ) + +#define IActiveIMMApp_SetCandidateWindow(This,hIMC,pCandidate) \ + ( (This)->lpVtbl -> SetCandidateWindow(This,hIMC,pCandidate) ) + +#define IActiveIMMApp_SetCompositionFontA(This,hIMC,plf) \ + ( (This)->lpVtbl -> SetCompositionFontA(This,hIMC,plf) ) + +#define IActiveIMMApp_SetCompositionFontW(This,hIMC,plf) \ + ( (This)->lpVtbl -> SetCompositionFontW(This,hIMC,plf) ) + +#define IActiveIMMApp_SetCompositionStringA(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) \ + ( (This)->lpVtbl -> SetCompositionStringA(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) ) + +#define IActiveIMMApp_SetCompositionStringW(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) \ + ( (This)->lpVtbl -> SetCompositionStringW(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) ) + +#define IActiveIMMApp_SetCompositionWindow(This,hIMC,pCompForm) \ + ( (This)->lpVtbl -> SetCompositionWindow(This,hIMC,pCompForm) ) + +#define IActiveIMMApp_SetConversionStatus(This,hIMC,fdwConversion,fdwSentence) \ + ( (This)->lpVtbl -> SetConversionStatus(This,hIMC,fdwConversion,fdwSentence) ) + +#define IActiveIMMApp_SetOpenStatus(This,hIMC,fOpen) \ + ( (This)->lpVtbl -> SetOpenStatus(This,hIMC,fOpen) ) + +#define IActiveIMMApp_SetStatusWindowPos(This,hIMC,pptPos) \ + ( (This)->lpVtbl -> SetStatusWindowPos(This,hIMC,pptPos) ) + +#define IActiveIMMApp_SimulateHotKey(This,hWnd,dwHotKeyID) \ + ( (This)->lpVtbl -> SimulateHotKey(This,hWnd,dwHotKeyID) ) + +#define IActiveIMMApp_UnregisterWordA(This,hKL,szReading,dwStyle,szUnregister) \ + ( (This)->lpVtbl -> UnregisterWordA(This,hKL,szReading,dwStyle,szUnregister) ) + +#define IActiveIMMApp_UnregisterWordW(This,hKL,szReading,dwStyle,szUnregister) \ + ( (This)->lpVtbl -> UnregisterWordW(This,hKL,szReading,dwStyle,szUnregister) ) + +#define IActiveIMMApp_Activate(This,fRestoreLayout) \ + ( (This)->lpVtbl -> Activate(This,fRestoreLayout) ) + +#define IActiveIMMApp_Deactivate(This) \ + ( (This)->lpVtbl -> Deactivate(This) ) + +#define IActiveIMMApp_OnDefWindowProc(This,hWnd,Msg,wParam,lParam,plResult) \ + ( (This)->lpVtbl -> OnDefWindowProc(This,hWnd,Msg,wParam,lParam,plResult) ) + +#define IActiveIMMApp_FilterClientWindows(This,aaClassList,uSize) \ + ( (This)->lpVtbl -> FilterClientWindows(This,aaClassList,uSize) ) + +#define IActiveIMMApp_GetCodePageA(This,hKL,uCodePage) \ + ( (This)->lpVtbl -> GetCodePageA(This,hKL,uCodePage) ) + +#define IActiveIMMApp_GetLangId(This,hKL,plid) \ + ( (This)->lpVtbl -> GetLangId(This,hKL,plid) ) + +#define IActiveIMMApp_AssociateContextEx(This,hWnd,hIMC,dwFlags) \ + ( (This)->lpVtbl -> AssociateContextEx(This,hWnd,hIMC,dwFlags) ) + +#define IActiveIMMApp_DisableIME(This,idThread) \ + ( (This)->lpVtbl -> DisableIME(This,idThread) ) + +#define IActiveIMMApp_GetImeMenuItemsA(This,hIMC,dwFlags,dwType,pImeParentMenu,pImeMenu,dwSize,pdwResult) \ + ( (This)->lpVtbl -> GetImeMenuItemsA(This,hIMC,dwFlags,dwType,pImeParentMenu,pImeMenu,dwSize,pdwResult) ) + +#define IActiveIMMApp_GetImeMenuItemsW(This,hIMC,dwFlags,dwType,pImeParentMenu,pImeMenu,dwSize,pdwResult) \ + ( (This)->lpVtbl -> GetImeMenuItemsW(This,hIMC,dwFlags,dwType,pImeParentMenu,pImeMenu,dwSize,pdwResult) ) + +#define IActiveIMMApp_EnumInputContext(This,idThread,ppEnum) \ + ( (This)->lpVtbl -> EnumInputContext(This,idThread,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveIMMApp_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveIMMIME_INTERFACE_DEFINED__ +#define __IActiveIMMIME_INTERFACE_DEFINED__ + +/* interface IActiveIMMIME */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveIMMIME; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("08C03411-F96B-11d0-A475-00AA006BCC59") + IActiveIMMIME : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AssociateContext( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIME, + /* [out] */ __RPC__out HIMC *phPrev) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConfigureIMEA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDA *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConfigureIMEW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDW *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateContext( + /* [out] */ __RPC__out HIMC *phIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE DestroyContext( + /* [in] */ HIMC hIME) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumRegisterWordA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordA **pEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumRegisterWordW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordW **pEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE EscapeA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout LPVOID pData, + /* [out] */ __RPC__out LRESULT *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE EscapeW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout LPVOID pData, + /* [out] */ __RPC__out LRESULT *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateListA( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pCandList, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateListW( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pCandList, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateListCountA( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwListSize, + /* [out] */ __RPC__out DWORD *pdwBufLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateListCountW( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwListSize, + /* [out] */ __RPC__out DWORD *pdwBufLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateWindow( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__out CANDIDATEFORM *pCandidate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompositionFontA( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out LOGFONTA *plf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompositionFontW( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out LOGFONTW *plf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompositionStringA( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LONG *plCopied, + /* [out] */ __RPC__out LPVOID pBuf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompositionStringW( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LONG *plCopied, + /* [out] */ __RPC__out LPVOID pBuf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompositionWindow( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out COMPOSITIONFORM *pCompForm) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContext( + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__out HIMC *phIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConversionListA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPSTR pSrc, + /* [in] */ UINT uBufLen, + /* [in] */ UINT uFlag, + /* [out] */ __RPC__out CANDIDATELIST *pDst, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConversionListW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPWSTR pSrc, + /* [in] */ UINT uBufLen, + /* [in] */ UINT uFlag, + /* [out] */ __RPC__out CANDIDATELIST *pDst, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConversionStatus( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pfdwConversion, + /* [out] */ __RPC__out DWORD *pfdwSentence) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefaultIMEWnd( + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__deref_out_opt HWND *phDefWnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescriptionA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPSTR szDescription, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescriptionW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPWSTR szDescription, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGuideLineA( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LPSTR pBuf, + /* [out] */ __RPC__out DWORD *pdwResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGuideLineW( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LPWSTR pBuf, + /* [out] */ __RPC__out DWORD *pdwResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIMEFileNameA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPSTR szFileName, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIMEFileNameW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPWSTR szFileName, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOpenStatus( + /* [in] */ HIMC hIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ DWORD fdwIndex, + /* [out] */ __RPC__out DWORD *pdwProperty) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRegisterWordStyleA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFA *pStyleBuf, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRegisterWordStyleW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFW *pStyleBuf, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatusWindowPos( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out POINT *pptPos) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVirtualKey( + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__out UINT *puVirtualKey) = 0; + + virtual HRESULT STDMETHODCALLTYPE InstallIMEA( + /* [in] */ __RPC__in LPSTR szIMEFileName, + /* [in] */ __RPC__in LPSTR szLayoutText, + /* [out] */ __RPC__deref_out_opt HKL *phKL) = 0; + + virtual HRESULT STDMETHODCALLTYPE InstallIMEW( + /* [in] */ __RPC__in LPWSTR szIMEFileName, + /* [in] */ __RPC__in LPWSTR szLayoutText, + /* [out] */ __RPC__deref_out_opt HKL *phKL) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsIME( + /* [in] */ __RPC__in HKL hKL) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsUIMessageA( + /* [in] */ __RPC__in HWND hWndIME, + /* [in] */ UINT msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsUIMessageW( + /* [in] */ __RPC__in HWND hWndIME, + /* [in] */ UINT msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE NotifyIME( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwAction, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterWordA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szRegister) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterWordW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseContext( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCandidateWindow( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in CANDIDATEFORM *pCandidate) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionFontA( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LOGFONTA *plf) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionFontW( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LOGFONTW *plf) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionStringA( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in LPVOID pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in LPVOID pRead, + /* [in] */ DWORD dwReadLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionStringW( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in LPVOID pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in LPVOID pRead, + /* [in] */ DWORD dwReadLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionWindow( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in COMPOSITIONFORM *pCompForm) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetConversionStatus( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD fdwConversion, + /* [in] */ DWORD fdwSentence) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetOpenStatus( + /* [in] */ HIMC hIMC, + /* [in] */ BOOL fOpen) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStatusWindowPos( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in POINT *pptPos) = 0; + + virtual HRESULT STDMETHODCALLTYPE SimulateHotKey( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwHotKeyID) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterWordA( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szUnregister) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterWordW( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szUnregister) = 0; + + virtual HRESULT STDMETHODCALLTYPE GenerateMessage( + /* [in] */ HIMC hIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE LockIMC( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__deref_out_opt INPUTCONTEXT **ppIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnlockIMC( + /* [in] */ HIMC hIMC) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIMCLockCount( + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwLockCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateIMCC( + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out HIMCC *phIMCC) = 0; + + virtual HRESULT STDMETHODCALLTYPE DestroyIMCC( + /* [in] */ HIMCC hIMCC) = 0; + + virtual HRESULT STDMETHODCALLTYPE LockIMCC( + /* [in] */ HIMCC hIMCC, + /* [out] */ __RPC__deref_out_opt void **ppv) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnlockIMCC( + /* [in] */ HIMCC hIMCC) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReSizeIMCC( + /* [in] */ HIMCC hIMCC, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out HIMCC *phIMCC) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIMCCSize( + /* [in] */ HIMCC hIMCC, + /* [out] */ __RPC__out DWORD *pdwSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIMCCLockCount( + /* [in] */ HIMCC hIMCC, + /* [out] */ __RPC__out DWORD *pdwLockCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHotKey( + /* [in] */ DWORD dwHotKeyID, + /* [out] */ __RPC__out UINT *puModifiers, + /* [out] */ __RPC__out UINT *puVKey, + /* [out] */ __RPC__deref_out_opt HKL *phKL) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetHotKey( + /* [in] */ DWORD dwHotKeyID, + /* [in] */ UINT uModifiers, + /* [in] */ UINT uVKey, + /* [in] */ __RPC__in HKL hKL) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSoftKeyboard( + /* [in] */ UINT uType, + /* [in] */ __RPC__in HWND hOwner, + /* [in] */ int x, + /* [in] */ int y, + /* [out] */ __RPC__deref_out_opt HWND *phSoftKbdWnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE DestroySoftKeyboard( + /* [in] */ __RPC__in HWND hSoftKbdWnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowSoftKeyboard( + /* [in] */ __RPC__in HWND hSoftKbdWnd, + /* [in] */ int nCmdShow) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodePageA( + /* [in] */ __RPC__in HKL hKL, + /* [out] */ __RPC__out UINT *uCodePage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLangId( + /* [in] */ __RPC__in HKL hKL, + /* [out] */ __RPC__out LANGID *plid) = 0; + + virtual HRESULT STDMETHODCALLTYPE KeybdEvent( + /* [in] */ LANGID lgidIME, + /* [in] */ BYTE bVk, + /* [in] */ BYTE bScan, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwExtraInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE LockModal( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnlockModal( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AssociateContextEx( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisableIME( + /* [in] */ DWORD idThread) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetImeMenuItemsA( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwType, + /* [in] */ __RPC__in IMEMENUITEMINFOA *pImeParentMenu, + /* [out] */ __RPC__out IMEMENUITEMINFOA *pImeMenu, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out DWORD *pdwResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetImeMenuItemsW( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwType, + /* [in] */ __RPC__in IMEMENUITEMINFOW *pImeParentMenu, + /* [out] */ __RPC__out IMEMENUITEMINFOW *pImeMenu, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out DWORD *pdwResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumInputContext( + /* [in] */ DWORD idThread, + /* [out] */ __RPC__deref_out_opt IEnumInputContext **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestMessageA( + /* [in] */ HIMC hIMC, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out LRESULT *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestMessageW( + /* [in] */ HIMC hIMC, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out LRESULT *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendIMCA( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ UINT uMsg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out LRESULT *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendIMCW( + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ UINT uMsg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out LRESULT *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsSleeping( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveIMMIMEVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveIMMIME * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveIMMIME * This); + + DECLSPEC_XFGVIRT(IActiveIMMIME, AssociateContext) + HRESULT ( STDMETHODCALLTYPE *AssociateContext )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIME, + /* [out] */ __RPC__out HIMC *phPrev); + + DECLSPEC_XFGVIRT(IActiveIMMIME, ConfigureIMEA) + HRESULT ( STDMETHODCALLTYPE *ConfigureIMEA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDA *pData); + + DECLSPEC_XFGVIRT(IActiveIMMIME, ConfigureIMEW) + HRESULT ( STDMETHODCALLTYPE *ConfigureIMEW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDW *pData); + + DECLSPEC_XFGVIRT(IActiveIMMIME, CreateContext) + HRESULT ( STDMETHODCALLTYPE *CreateContext )( + __RPC__in IActiveIMMIME * This, + /* [out] */ __RPC__out HIMC *phIMC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, DestroyContext) + HRESULT ( STDMETHODCALLTYPE *DestroyContext )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIME); + + DECLSPEC_XFGVIRT(IActiveIMMIME, EnumRegisterWordA) + HRESULT ( STDMETHODCALLTYPE *EnumRegisterWordA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordA **pEnum); + + DECLSPEC_XFGVIRT(IActiveIMMIME, EnumRegisterWordW) + HRESULT ( STDMETHODCALLTYPE *EnumRegisterWordW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordW **pEnum); + + DECLSPEC_XFGVIRT(IActiveIMMIME, EscapeA) + HRESULT ( STDMETHODCALLTYPE *EscapeA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout LPVOID pData, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIMMIME, EscapeW) + HRESULT ( STDMETHODCALLTYPE *EscapeW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout LPVOID pData, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCandidateListA) + HRESULT ( STDMETHODCALLTYPE *GetCandidateListA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pCandList, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCandidateListW) + HRESULT ( STDMETHODCALLTYPE *GetCandidateListW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pCandList, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCandidateListCountA) + HRESULT ( STDMETHODCALLTYPE *GetCandidateListCountA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwListSize, + /* [out] */ __RPC__out DWORD *pdwBufLen); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCandidateListCountW) + HRESULT ( STDMETHODCALLTYPE *GetCandidateListCountW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwListSize, + /* [out] */ __RPC__out DWORD *pdwBufLen); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCandidateWindow) + HRESULT ( STDMETHODCALLTYPE *GetCandidateWindow )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__out CANDIDATEFORM *pCandidate); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCompositionFontA) + HRESULT ( STDMETHODCALLTYPE *GetCompositionFontA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out LOGFONTA *plf); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCompositionFontW) + HRESULT ( STDMETHODCALLTYPE *GetCompositionFontW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out LOGFONTW *plf); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCompositionStringA) + HRESULT ( STDMETHODCALLTYPE *GetCompositionStringA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LONG *plCopied, + /* [out] */ __RPC__out LPVOID pBuf); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCompositionStringW) + HRESULT ( STDMETHODCALLTYPE *GetCompositionStringW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LONG *plCopied, + /* [out] */ __RPC__out LPVOID pBuf); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCompositionWindow) + HRESULT ( STDMETHODCALLTYPE *GetCompositionWindow )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out COMPOSITIONFORM *pCompForm); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetContext) + HRESULT ( STDMETHODCALLTYPE *GetContext )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__out HIMC *phIMC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetConversionListA) + HRESULT ( STDMETHODCALLTYPE *GetConversionListA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPSTR pSrc, + /* [in] */ UINT uBufLen, + /* [in] */ UINT uFlag, + /* [out] */ __RPC__out CANDIDATELIST *pDst, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetConversionListW) + HRESULT ( STDMETHODCALLTYPE *GetConversionListW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPWSTR pSrc, + /* [in] */ UINT uBufLen, + /* [in] */ UINT uFlag, + /* [out] */ __RPC__out CANDIDATELIST *pDst, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetConversionStatus) + HRESULT ( STDMETHODCALLTYPE *GetConversionStatus )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pfdwConversion, + /* [out] */ __RPC__out DWORD *pfdwSentence); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetDefaultIMEWnd) + HRESULT ( STDMETHODCALLTYPE *GetDefaultIMEWnd )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__deref_out_opt HWND *phDefWnd); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetDescriptionA) + HRESULT ( STDMETHODCALLTYPE *GetDescriptionA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPSTR szDescription, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetDescriptionW) + HRESULT ( STDMETHODCALLTYPE *GetDescriptionW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPWSTR szDescription, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetGuideLineA) + HRESULT ( STDMETHODCALLTYPE *GetGuideLineA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LPSTR pBuf, + /* [out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetGuideLineW) + HRESULT ( STDMETHODCALLTYPE *GetGuideLineW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwBufLen, + /* [out] */ __RPC__out LPWSTR pBuf, + /* [out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetIMEFileNameA) + HRESULT ( STDMETHODCALLTYPE *GetIMEFileNameA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPSTR szFileName, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetIMEFileNameW) + HRESULT ( STDMETHODCALLTYPE *GetIMEFileNameW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out LPWSTR szFileName, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetOpenStatus) + HRESULT ( STDMETHODCALLTYPE *GetOpenStatus )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ DWORD fdwIndex, + /* [out] */ __RPC__out DWORD *pdwProperty); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetRegisterWordStyleA) + HRESULT ( STDMETHODCALLTYPE *GetRegisterWordStyleA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFA *pStyleBuf, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetRegisterWordStyleW) + HRESULT ( STDMETHODCALLTYPE *GetRegisterWordStyleW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFW *pStyleBuf, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetStatusWindowPos) + HRESULT ( STDMETHODCALLTYPE *GetStatusWindowPos )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out POINT *pptPos); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetVirtualKey) + HRESULT ( STDMETHODCALLTYPE *GetVirtualKey )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWnd, + /* [out] */ __RPC__out UINT *puVirtualKey); + + DECLSPEC_XFGVIRT(IActiveIMMIME, InstallIMEA) + HRESULT ( STDMETHODCALLTYPE *InstallIMEA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in LPSTR szIMEFileName, + /* [in] */ __RPC__in LPSTR szLayoutText, + /* [out] */ __RPC__deref_out_opt HKL *phKL); + + DECLSPEC_XFGVIRT(IActiveIMMIME, InstallIMEW) + HRESULT ( STDMETHODCALLTYPE *InstallIMEW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in LPWSTR szIMEFileName, + /* [in] */ __RPC__in LPWSTR szLayoutText, + /* [out] */ __RPC__deref_out_opt HKL *phKL); + + DECLSPEC_XFGVIRT(IActiveIMMIME, IsIME) + HRESULT ( STDMETHODCALLTYPE *IsIME )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL); + + DECLSPEC_XFGVIRT(IActiveIMMIME, IsUIMessageA) + HRESULT ( STDMETHODCALLTYPE *IsUIMessageA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWndIME, + /* [in] */ UINT msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam); + + DECLSPEC_XFGVIRT(IActiveIMMIME, IsUIMessageW) + HRESULT ( STDMETHODCALLTYPE *IsUIMessageW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWndIME, + /* [in] */ UINT msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam); + + DECLSPEC_XFGVIRT(IActiveIMMIME, NotifyIME) + HRESULT ( STDMETHODCALLTYPE *NotifyIME )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwAction, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwValue); + + DECLSPEC_XFGVIRT(IActiveIMMIME, RegisterWordA) + HRESULT ( STDMETHODCALLTYPE *RegisterWordA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szRegister); + + DECLSPEC_XFGVIRT(IActiveIMMIME, RegisterWordW) + HRESULT ( STDMETHODCALLTYPE *RegisterWordW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister); + + DECLSPEC_XFGVIRT(IActiveIMMIME, ReleaseContext) + HRESULT ( STDMETHODCALLTYPE *ReleaseContext )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIMC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SetCandidateWindow) + HRESULT ( STDMETHODCALLTYPE *SetCandidateWindow )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in CANDIDATEFORM *pCandidate); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SetCompositionFontA) + HRESULT ( STDMETHODCALLTYPE *SetCompositionFontA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LOGFONTA *plf); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SetCompositionFontW) + HRESULT ( STDMETHODCALLTYPE *SetCompositionFontW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LOGFONTW *plf); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SetCompositionStringA) + HRESULT ( STDMETHODCALLTYPE *SetCompositionStringA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in LPVOID pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in LPVOID pRead, + /* [in] */ DWORD dwReadLen); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SetCompositionStringW) + HRESULT ( STDMETHODCALLTYPE *SetCompositionStringW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in LPVOID pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in LPVOID pRead, + /* [in] */ DWORD dwReadLen); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SetCompositionWindow) + HRESULT ( STDMETHODCALLTYPE *SetCompositionWindow )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in COMPOSITIONFORM *pCompForm); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SetConversionStatus) + HRESULT ( STDMETHODCALLTYPE *SetConversionStatus )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD fdwConversion, + /* [in] */ DWORD fdwSentence); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SetOpenStatus) + HRESULT ( STDMETHODCALLTYPE *SetOpenStatus )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ BOOL fOpen); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SetStatusWindowPos) + HRESULT ( STDMETHODCALLTYPE *SetStatusWindowPos )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in POINT *pptPos); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SimulateHotKey) + HRESULT ( STDMETHODCALLTYPE *SimulateHotKey )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwHotKeyID); + + DECLSPEC_XFGVIRT(IActiveIMMIME, UnregisterWordA) + HRESULT ( STDMETHODCALLTYPE *UnregisterWordA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPSTR szUnregister); + + DECLSPEC_XFGVIRT(IActiveIMMIME, UnregisterWordW) + HRESULT ( STDMETHODCALLTYPE *UnregisterWordW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szUnregister); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GenerateMessage) + HRESULT ( STDMETHODCALLTYPE *GenerateMessage )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, LockIMC) + HRESULT ( STDMETHODCALLTYPE *LockIMC )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__deref_out_opt INPUTCONTEXT **ppIMC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, UnlockIMC) + HRESULT ( STDMETHODCALLTYPE *UnlockIMC )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetIMCLockCount) + HRESULT ( STDMETHODCALLTYPE *GetIMCLockCount )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwLockCount); + + DECLSPEC_XFGVIRT(IActiveIMMIME, CreateIMCC) + HRESULT ( STDMETHODCALLTYPE *CreateIMCC )( + __RPC__in IActiveIMMIME * This, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out HIMCC *phIMCC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, DestroyIMCC) + HRESULT ( STDMETHODCALLTYPE *DestroyIMCC )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMCC hIMCC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, LockIMCC) + HRESULT ( STDMETHODCALLTYPE *LockIMCC )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMCC hIMCC, + /* [out] */ __RPC__deref_out_opt void **ppv); + + DECLSPEC_XFGVIRT(IActiveIMMIME, UnlockIMCC) + HRESULT ( STDMETHODCALLTYPE *UnlockIMCC )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMCC hIMCC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, ReSizeIMCC) + HRESULT ( STDMETHODCALLTYPE *ReSizeIMCC )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMCC hIMCC, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out HIMCC *phIMCC); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetIMCCSize) + HRESULT ( STDMETHODCALLTYPE *GetIMCCSize )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMCC hIMCC, + /* [out] */ __RPC__out DWORD *pdwSize); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetIMCCLockCount) + HRESULT ( STDMETHODCALLTYPE *GetIMCCLockCount )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMCC hIMCC, + /* [out] */ __RPC__out DWORD *pdwLockCount); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetHotKey) + HRESULT ( STDMETHODCALLTYPE *GetHotKey )( + __RPC__in IActiveIMMIME * This, + /* [in] */ DWORD dwHotKeyID, + /* [out] */ __RPC__out UINT *puModifiers, + /* [out] */ __RPC__out UINT *puVKey, + /* [out] */ __RPC__deref_out_opt HKL *phKL); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SetHotKey) + HRESULT ( STDMETHODCALLTYPE *SetHotKey )( + __RPC__in IActiveIMMIME * This, + /* [in] */ DWORD dwHotKeyID, + /* [in] */ UINT uModifiers, + /* [in] */ UINT uVKey, + /* [in] */ __RPC__in HKL hKL); + + DECLSPEC_XFGVIRT(IActiveIMMIME, CreateSoftKeyboard) + HRESULT ( STDMETHODCALLTYPE *CreateSoftKeyboard )( + __RPC__in IActiveIMMIME * This, + /* [in] */ UINT uType, + /* [in] */ __RPC__in HWND hOwner, + /* [in] */ int x, + /* [in] */ int y, + /* [out] */ __RPC__deref_out_opt HWND *phSoftKbdWnd); + + DECLSPEC_XFGVIRT(IActiveIMMIME, DestroySoftKeyboard) + HRESULT ( STDMETHODCALLTYPE *DestroySoftKeyboard )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hSoftKbdWnd); + + DECLSPEC_XFGVIRT(IActiveIMMIME, ShowSoftKeyboard) + HRESULT ( STDMETHODCALLTYPE *ShowSoftKeyboard )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hSoftKbdWnd, + /* [in] */ int nCmdShow); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetCodePageA) + HRESULT ( STDMETHODCALLTYPE *GetCodePageA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [out] */ __RPC__out UINT *uCodePage); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetLangId) + HRESULT ( STDMETHODCALLTYPE *GetLangId )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [out] */ __RPC__out LANGID *plid); + + DECLSPEC_XFGVIRT(IActiveIMMIME, KeybdEvent) + HRESULT ( STDMETHODCALLTYPE *KeybdEvent )( + __RPC__in IActiveIMMIME * This, + /* [in] */ LANGID lgidIME, + /* [in] */ BYTE bVk, + /* [in] */ BYTE bScan, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwExtraInfo); + + DECLSPEC_XFGVIRT(IActiveIMMIME, LockModal) + HRESULT ( STDMETHODCALLTYPE *LockModal )( + __RPC__in IActiveIMMIME * This); + + DECLSPEC_XFGVIRT(IActiveIMMIME, UnlockModal) + HRESULT ( STDMETHODCALLTYPE *UnlockModal )( + __RPC__in IActiveIMMIME * This); + + DECLSPEC_XFGVIRT(IActiveIMMIME, AssociateContextEx) + HRESULT ( STDMETHODCALLTYPE *AssociateContextEx )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IActiveIMMIME, DisableIME) + HRESULT ( STDMETHODCALLTYPE *DisableIME )( + __RPC__in IActiveIMMIME * This, + /* [in] */ DWORD idThread); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetImeMenuItemsA) + HRESULT ( STDMETHODCALLTYPE *GetImeMenuItemsA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwType, + /* [in] */ __RPC__in IMEMENUITEMINFOA *pImeParentMenu, + /* [out] */ __RPC__out IMEMENUITEMINFOA *pImeMenu, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IActiveIMMIME, GetImeMenuItemsW) + HRESULT ( STDMETHODCALLTYPE *GetImeMenuItemsW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwType, + /* [in] */ __RPC__in IMEMENUITEMINFOW *pImeParentMenu, + /* [out] */ __RPC__out IMEMENUITEMINFOW *pImeMenu, + /* [in] */ DWORD dwSize, + /* [out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IActiveIMMIME, EnumInputContext) + HRESULT ( STDMETHODCALLTYPE *EnumInputContext )( + __RPC__in IActiveIMMIME * This, + /* [in] */ DWORD idThread, + /* [out] */ __RPC__deref_out_opt IEnumInputContext **ppEnum); + + DECLSPEC_XFGVIRT(IActiveIMMIME, RequestMessageA) + HRESULT ( STDMETHODCALLTYPE *RequestMessageA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIMMIME, RequestMessageW) + HRESULT ( STDMETHODCALLTYPE *RequestMessageW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SendIMCA) + HRESULT ( STDMETHODCALLTYPE *SendIMCA )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ UINT uMsg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIMMIME, SendIMCW) + HRESULT ( STDMETHODCALLTYPE *SendIMCW )( + __RPC__in IActiveIMMIME * This, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ UINT uMsg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIMMIME, IsSleeping) + HRESULT ( STDMETHODCALLTYPE *IsSleeping )( + __RPC__in IActiveIMMIME * This); + + END_INTERFACE + } IActiveIMMIMEVtbl; + + interface IActiveIMMIME + { + CONST_VTBL struct IActiveIMMIMEVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveIMMIME_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveIMMIME_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveIMMIME_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveIMMIME_AssociateContext(This,hWnd,hIME,phPrev) \ + ( (This)->lpVtbl -> AssociateContext(This,hWnd,hIME,phPrev) ) + +#define IActiveIMMIME_ConfigureIMEA(This,hKL,hWnd,dwMode,pData) \ + ( (This)->lpVtbl -> ConfigureIMEA(This,hKL,hWnd,dwMode,pData) ) + +#define IActiveIMMIME_ConfigureIMEW(This,hKL,hWnd,dwMode,pData) \ + ( (This)->lpVtbl -> ConfigureIMEW(This,hKL,hWnd,dwMode,pData) ) + +#define IActiveIMMIME_CreateContext(This,phIMC) \ + ( (This)->lpVtbl -> CreateContext(This,phIMC) ) + +#define IActiveIMMIME_DestroyContext(This,hIME) \ + ( (This)->lpVtbl -> DestroyContext(This,hIME) ) + +#define IActiveIMMIME_EnumRegisterWordA(This,hKL,szReading,dwStyle,szRegister,pData,pEnum) \ + ( (This)->lpVtbl -> EnumRegisterWordA(This,hKL,szReading,dwStyle,szRegister,pData,pEnum) ) + +#define IActiveIMMIME_EnumRegisterWordW(This,hKL,szReading,dwStyle,szRegister,pData,pEnum) \ + ( (This)->lpVtbl -> EnumRegisterWordW(This,hKL,szReading,dwStyle,szRegister,pData,pEnum) ) + +#define IActiveIMMIME_EscapeA(This,hKL,hIMC,uEscape,pData,plResult) \ + ( (This)->lpVtbl -> EscapeA(This,hKL,hIMC,uEscape,pData,plResult) ) + +#define IActiveIMMIME_EscapeW(This,hKL,hIMC,uEscape,pData,plResult) \ + ( (This)->lpVtbl -> EscapeW(This,hKL,hIMC,uEscape,pData,plResult) ) + +#define IActiveIMMIME_GetCandidateListA(This,hIMC,dwIndex,uBufLen,pCandList,puCopied) \ + ( (This)->lpVtbl -> GetCandidateListA(This,hIMC,dwIndex,uBufLen,pCandList,puCopied) ) + +#define IActiveIMMIME_GetCandidateListW(This,hIMC,dwIndex,uBufLen,pCandList,puCopied) \ + ( (This)->lpVtbl -> GetCandidateListW(This,hIMC,dwIndex,uBufLen,pCandList,puCopied) ) + +#define IActiveIMMIME_GetCandidateListCountA(This,hIMC,pdwListSize,pdwBufLen) \ + ( (This)->lpVtbl -> GetCandidateListCountA(This,hIMC,pdwListSize,pdwBufLen) ) + +#define IActiveIMMIME_GetCandidateListCountW(This,hIMC,pdwListSize,pdwBufLen) \ + ( (This)->lpVtbl -> GetCandidateListCountW(This,hIMC,pdwListSize,pdwBufLen) ) + +#define IActiveIMMIME_GetCandidateWindow(This,hIMC,dwIndex,pCandidate) \ + ( (This)->lpVtbl -> GetCandidateWindow(This,hIMC,dwIndex,pCandidate) ) + +#define IActiveIMMIME_GetCompositionFontA(This,hIMC,plf) \ + ( (This)->lpVtbl -> GetCompositionFontA(This,hIMC,plf) ) + +#define IActiveIMMIME_GetCompositionFontW(This,hIMC,plf) \ + ( (This)->lpVtbl -> GetCompositionFontW(This,hIMC,plf) ) + +#define IActiveIMMIME_GetCompositionStringA(This,hIMC,dwIndex,dwBufLen,plCopied,pBuf) \ + ( (This)->lpVtbl -> GetCompositionStringA(This,hIMC,dwIndex,dwBufLen,plCopied,pBuf) ) + +#define IActiveIMMIME_GetCompositionStringW(This,hIMC,dwIndex,dwBufLen,plCopied,pBuf) \ + ( (This)->lpVtbl -> GetCompositionStringW(This,hIMC,dwIndex,dwBufLen,plCopied,pBuf) ) + +#define IActiveIMMIME_GetCompositionWindow(This,hIMC,pCompForm) \ + ( (This)->lpVtbl -> GetCompositionWindow(This,hIMC,pCompForm) ) + +#define IActiveIMMIME_GetContext(This,hWnd,phIMC) \ + ( (This)->lpVtbl -> GetContext(This,hWnd,phIMC) ) + +#define IActiveIMMIME_GetConversionListA(This,hKL,hIMC,pSrc,uBufLen,uFlag,pDst,puCopied) \ + ( (This)->lpVtbl -> GetConversionListA(This,hKL,hIMC,pSrc,uBufLen,uFlag,pDst,puCopied) ) + +#define IActiveIMMIME_GetConversionListW(This,hKL,hIMC,pSrc,uBufLen,uFlag,pDst,puCopied) \ + ( (This)->lpVtbl -> GetConversionListW(This,hKL,hIMC,pSrc,uBufLen,uFlag,pDst,puCopied) ) + +#define IActiveIMMIME_GetConversionStatus(This,hIMC,pfdwConversion,pfdwSentence) \ + ( (This)->lpVtbl -> GetConversionStatus(This,hIMC,pfdwConversion,pfdwSentence) ) + +#define IActiveIMMIME_GetDefaultIMEWnd(This,hWnd,phDefWnd) \ + ( (This)->lpVtbl -> GetDefaultIMEWnd(This,hWnd,phDefWnd) ) + +#define IActiveIMMIME_GetDescriptionA(This,hKL,uBufLen,szDescription,puCopied) \ + ( (This)->lpVtbl -> GetDescriptionA(This,hKL,uBufLen,szDescription,puCopied) ) + +#define IActiveIMMIME_GetDescriptionW(This,hKL,uBufLen,szDescription,puCopied) \ + ( (This)->lpVtbl -> GetDescriptionW(This,hKL,uBufLen,szDescription,puCopied) ) + +#define IActiveIMMIME_GetGuideLineA(This,hIMC,dwIndex,dwBufLen,pBuf,pdwResult) \ + ( (This)->lpVtbl -> GetGuideLineA(This,hIMC,dwIndex,dwBufLen,pBuf,pdwResult) ) + +#define IActiveIMMIME_GetGuideLineW(This,hIMC,dwIndex,dwBufLen,pBuf,pdwResult) \ + ( (This)->lpVtbl -> GetGuideLineW(This,hIMC,dwIndex,dwBufLen,pBuf,pdwResult) ) + +#define IActiveIMMIME_GetIMEFileNameA(This,hKL,uBufLen,szFileName,puCopied) \ + ( (This)->lpVtbl -> GetIMEFileNameA(This,hKL,uBufLen,szFileName,puCopied) ) + +#define IActiveIMMIME_GetIMEFileNameW(This,hKL,uBufLen,szFileName,puCopied) \ + ( (This)->lpVtbl -> GetIMEFileNameW(This,hKL,uBufLen,szFileName,puCopied) ) + +#define IActiveIMMIME_GetOpenStatus(This,hIMC) \ + ( (This)->lpVtbl -> GetOpenStatus(This,hIMC) ) + +#define IActiveIMMIME_GetProperty(This,hKL,fdwIndex,pdwProperty) \ + ( (This)->lpVtbl -> GetProperty(This,hKL,fdwIndex,pdwProperty) ) + +#define IActiveIMMIME_GetRegisterWordStyleA(This,hKL,nItem,pStyleBuf,puCopied) \ + ( (This)->lpVtbl -> GetRegisterWordStyleA(This,hKL,nItem,pStyleBuf,puCopied) ) + +#define IActiveIMMIME_GetRegisterWordStyleW(This,hKL,nItem,pStyleBuf,puCopied) \ + ( (This)->lpVtbl -> GetRegisterWordStyleW(This,hKL,nItem,pStyleBuf,puCopied) ) + +#define IActiveIMMIME_GetStatusWindowPos(This,hIMC,pptPos) \ + ( (This)->lpVtbl -> GetStatusWindowPos(This,hIMC,pptPos) ) + +#define IActiveIMMIME_GetVirtualKey(This,hWnd,puVirtualKey) \ + ( (This)->lpVtbl -> GetVirtualKey(This,hWnd,puVirtualKey) ) + +#define IActiveIMMIME_InstallIMEA(This,szIMEFileName,szLayoutText,phKL) \ + ( (This)->lpVtbl -> InstallIMEA(This,szIMEFileName,szLayoutText,phKL) ) + +#define IActiveIMMIME_InstallIMEW(This,szIMEFileName,szLayoutText,phKL) \ + ( (This)->lpVtbl -> InstallIMEW(This,szIMEFileName,szLayoutText,phKL) ) + +#define IActiveIMMIME_IsIME(This,hKL) \ + ( (This)->lpVtbl -> IsIME(This,hKL) ) + +#define IActiveIMMIME_IsUIMessageA(This,hWndIME,msg,wParam,lParam) \ + ( (This)->lpVtbl -> IsUIMessageA(This,hWndIME,msg,wParam,lParam) ) + +#define IActiveIMMIME_IsUIMessageW(This,hWndIME,msg,wParam,lParam) \ + ( (This)->lpVtbl -> IsUIMessageW(This,hWndIME,msg,wParam,lParam) ) + +#define IActiveIMMIME_NotifyIME(This,hIMC,dwAction,dwIndex,dwValue) \ + ( (This)->lpVtbl -> NotifyIME(This,hIMC,dwAction,dwIndex,dwValue) ) + +#define IActiveIMMIME_RegisterWordA(This,hKL,szReading,dwStyle,szRegister) \ + ( (This)->lpVtbl -> RegisterWordA(This,hKL,szReading,dwStyle,szRegister) ) + +#define IActiveIMMIME_RegisterWordW(This,hKL,szReading,dwStyle,szRegister) \ + ( (This)->lpVtbl -> RegisterWordW(This,hKL,szReading,dwStyle,szRegister) ) + +#define IActiveIMMIME_ReleaseContext(This,hWnd,hIMC) \ + ( (This)->lpVtbl -> ReleaseContext(This,hWnd,hIMC) ) + +#define IActiveIMMIME_SetCandidateWindow(This,hIMC,pCandidate) \ + ( (This)->lpVtbl -> SetCandidateWindow(This,hIMC,pCandidate) ) + +#define IActiveIMMIME_SetCompositionFontA(This,hIMC,plf) \ + ( (This)->lpVtbl -> SetCompositionFontA(This,hIMC,plf) ) + +#define IActiveIMMIME_SetCompositionFontW(This,hIMC,plf) \ + ( (This)->lpVtbl -> SetCompositionFontW(This,hIMC,plf) ) + +#define IActiveIMMIME_SetCompositionStringA(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) \ + ( (This)->lpVtbl -> SetCompositionStringA(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) ) + +#define IActiveIMMIME_SetCompositionStringW(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) \ + ( (This)->lpVtbl -> SetCompositionStringW(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) ) + +#define IActiveIMMIME_SetCompositionWindow(This,hIMC,pCompForm) \ + ( (This)->lpVtbl -> SetCompositionWindow(This,hIMC,pCompForm) ) + +#define IActiveIMMIME_SetConversionStatus(This,hIMC,fdwConversion,fdwSentence) \ + ( (This)->lpVtbl -> SetConversionStatus(This,hIMC,fdwConversion,fdwSentence) ) + +#define IActiveIMMIME_SetOpenStatus(This,hIMC,fOpen) \ + ( (This)->lpVtbl -> SetOpenStatus(This,hIMC,fOpen) ) + +#define IActiveIMMIME_SetStatusWindowPos(This,hIMC,pptPos) \ + ( (This)->lpVtbl -> SetStatusWindowPos(This,hIMC,pptPos) ) + +#define IActiveIMMIME_SimulateHotKey(This,hWnd,dwHotKeyID) \ + ( (This)->lpVtbl -> SimulateHotKey(This,hWnd,dwHotKeyID) ) + +#define IActiveIMMIME_UnregisterWordA(This,hKL,szReading,dwStyle,szUnregister) \ + ( (This)->lpVtbl -> UnregisterWordA(This,hKL,szReading,dwStyle,szUnregister) ) + +#define IActiveIMMIME_UnregisterWordW(This,hKL,szReading,dwStyle,szUnregister) \ + ( (This)->lpVtbl -> UnregisterWordW(This,hKL,szReading,dwStyle,szUnregister) ) + +#define IActiveIMMIME_GenerateMessage(This,hIMC) \ + ( (This)->lpVtbl -> GenerateMessage(This,hIMC) ) + +#define IActiveIMMIME_LockIMC(This,hIMC,ppIMC) \ + ( (This)->lpVtbl -> LockIMC(This,hIMC,ppIMC) ) + +#define IActiveIMMIME_UnlockIMC(This,hIMC) \ + ( (This)->lpVtbl -> UnlockIMC(This,hIMC) ) + +#define IActiveIMMIME_GetIMCLockCount(This,hIMC,pdwLockCount) \ + ( (This)->lpVtbl -> GetIMCLockCount(This,hIMC,pdwLockCount) ) + +#define IActiveIMMIME_CreateIMCC(This,dwSize,phIMCC) \ + ( (This)->lpVtbl -> CreateIMCC(This,dwSize,phIMCC) ) + +#define IActiveIMMIME_DestroyIMCC(This,hIMCC) \ + ( (This)->lpVtbl -> DestroyIMCC(This,hIMCC) ) + +#define IActiveIMMIME_LockIMCC(This,hIMCC,ppv) \ + ( (This)->lpVtbl -> LockIMCC(This,hIMCC,ppv) ) + +#define IActiveIMMIME_UnlockIMCC(This,hIMCC) \ + ( (This)->lpVtbl -> UnlockIMCC(This,hIMCC) ) + +#define IActiveIMMIME_ReSizeIMCC(This,hIMCC,dwSize,phIMCC) \ + ( (This)->lpVtbl -> ReSizeIMCC(This,hIMCC,dwSize,phIMCC) ) + +#define IActiveIMMIME_GetIMCCSize(This,hIMCC,pdwSize) \ + ( (This)->lpVtbl -> GetIMCCSize(This,hIMCC,pdwSize) ) + +#define IActiveIMMIME_GetIMCCLockCount(This,hIMCC,pdwLockCount) \ + ( (This)->lpVtbl -> GetIMCCLockCount(This,hIMCC,pdwLockCount) ) + +#define IActiveIMMIME_GetHotKey(This,dwHotKeyID,puModifiers,puVKey,phKL) \ + ( (This)->lpVtbl -> GetHotKey(This,dwHotKeyID,puModifiers,puVKey,phKL) ) + +#define IActiveIMMIME_SetHotKey(This,dwHotKeyID,uModifiers,uVKey,hKL) \ + ( (This)->lpVtbl -> SetHotKey(This,dwHotKeyID,uModifiers,uVKey,hKL) ) + +#define IActiveIMMIME_CreateSoftKeyboard(This,uType,hOwner,x,y,phSoftKbdWnd) \ + ( (This)->lpVtbl -> CreateSoftKeyboard(This,uType,hOwner,x,y,phSoftKbdWnd) ) + +#define IActiveIMMIME_DestroySoftKeyboard(This,hSoftKbdWnd) \ + ( (This)->lpVtbl -> DestroySoftKeyboard(This,hSoftKbdWnd) ) + +#define IActiveIMMIME_ShowSoftKeyboard(This,hSoftKbdWnd,nCmdShow) \ + ( (This)->lpVtbl -> ShowSoftKeyboard(This,hSoftKbdWnd,nCmdShow) ) + +#define IActiveIMMIME_GetCodePageA(This,hKL,uCodePage) \ + ( (This)->lpVtbl -> GetCodePageA(This,hKL,uCodePage) ) + +#define IActiveIMMIME_GetLangId(This,hKL,plid) \ + ( (This)->lpVtbl -> GetLangId(This,hKL,plid) ) + +#define IActiveIMMIME_KeybdEvent(This,lgidIME,bVk,bScan,dwFlags,dwExtraInfo) \ + ( (This)->lpVtbl -> KeybdEvent(This,lgidIME,bVk,bScan,dwFlags,dwExtraInfo) ) + +#define IActiveIMMIME_LockModal(This) \ + ( (This)->lpVtbl -> LockModal(This) ) + +#define IActiveIMMIME_UnlockModal(This) \ + ( (This)->lpVtbl -> UnlockModal(This) ) + +#define IActiveIMMIME_AssociateContextEx(This,hWnd,hIMC,dwFlags) \ + ( (This)->lpVtbl -> AssociateContextEx(This,hWnd,hIMC,dwFlags) ) + +#define IActiveIMMIME_DisableIME(This,idThread) \ + ( (This)->lpVtbl -> DisableIME(This,idThread) ) + +#define IActiveIMMIME_GetImeMenuItemsA(This,hIMC,dwFlags,dwType,pImeParentMenu,pImeMenu,dwSize,pdwResult) \ + ( (This)->lpVtbl -> GetImeMenuItemsA(This,hIMC,dwFlags,dwType,pImeParentMenu,pImeMenu,dwSize,pdwResult) ) + +#define IActiveIMMIME_GetImeMenuItemsW(This,hIMC,dwFlags,dwType,pImeParentMenu,pImeMenu,dwSize,pdwResult) \ + ( (This)->lpVtbl -> GetImeMenuItemsW(This,hIMC,dwFlags,dwType,pImeParentMenu,pImeMenu,dwSize,pdwResult) ) + +#define IActiveIMMIME_EnumInputContext(This,idThread,ppEnum) \ + ( (This)->lpVtbl -> EnumInputContext(This,idThread,ppEnum) ) + +#define IActiveIMMIME_RequestMessageA(This,hIMC,wParam,lParam,plResult) \ + ( (This)->lpVtbl -> RequestMessageA(This,hIMC,wParam,lParam,plResult) ) + +#define IActiveIMMIME_RequestMessageW(This,hIMC,wParam,lParam,plResult) \ + ( (This)->lpVtbl -> RequestMessageW(This,hIMC,wParam,lParam,plResult) ) + +#define IActiveIMMIME_SendIMCA(This,hWnd,uMsg,wParam,lParam,plResult) \ + ( (This)->lpVtbl -> SendIMCA(This,hWnd,uMsg,wParam,lParam,plResult) ) + +#define IActiveIMMIME_SendIMCW(This,hWnd,uMsg,wParam,lParam,plResult) \ + ( (This)->lpVtbl -> SendIMCW(This,hWnd,uMsg,wParam,lParam,plResult) ) + +#define IActiveIMMIME_IsSleeping(This) \ + ( (This)->lpVtbl -> IsSleeping(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveIMMIME_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveIME_INTERFACE_DEFINED__ +#define __IActiveIME_INTERFACE_DEFINED__ + +/* interface IActiveIME */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveIME; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6FE20962-D077-11d0-8FE7-00AA006BCC59") + IActiveIME : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Inquire( + /* [in] */ DWORD dwSystemInfoFlags, + /* [out] */ __RPC__out IMEINFO *pIMEInfo, + /* [out] */ __RPC__out LPWSTR szWndClass, + /* [out] */ __RPC__out DWORD *pdwPrivate) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConversionList( + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPWSTR szSource, + /* [in] */ UINT uFlag, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pDest, + /* [out] */ __RPC__out UINT *puCopied) = 0; + + virtual HRESULT STDMETHODCALLTYPE Configure( + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDW *pRegisterWord) = 0; + + virtual HRESULT STDMETHODCALLTYPE Destroy( + /* [in] */ UINT uReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Escape( + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout void *pData, + /* [out] */ __RPC__out LRESULT *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetActiveContext( + /* [in] */ HIMC hIMC, + /* [in] */ BOOL fFlag) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessKey( + /* [in] */ HIMC hIMC, + /* [in] */ UINT uVirKey, + /* [in] */ DWORD lParam, + /* [in] */ __RPC__in BYTE *pbKeyState) = 0; + + virtual HRESULT STDMETHODCALLTYPE Notify( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwAction, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Select( + /* [in] */ HIMC hIMC, + /* [in] */ BOOL fSelect) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompositionString( + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in void *pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in void *pRead, + /* [in] */ DWORD dwReadLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE ToAsciiEx( + /* [in] */ UINT uVirKey, + /* [in] */ UINT uScanCode, + /* [in] */ __RPC__in BYTE *pbKeyState, + /* [in] */ UINT fuState, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwTransBuf, + /* [out] */ __RPC__out UINT *puSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterWord( + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szString) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterWord( + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szString) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRegisterWordStyle( + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFW *pStyleBuf, + /* [out] */ __RPC__out UINT *puBufSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumRegisterWord( + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordW **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodePageA( + /* [out] */ __RPC__out UINT *uCodePage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLangId( + /* [out] */ __RPC__out LANGID *plid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveIMEVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveIME * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveIME * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveIME * This); + + DECLSPEC_XFGVIRT(IActiveIME, Inquire) + HRESULT ( STDMETHODCALLTYPE *Inquire )( + __RPC__in IActiveIME * This, + /* [in] */ DWORD dwSystemInfoFlags, + /* [out] */ __RPC__out IMEINFO *pIMEInfo, + /* [out] */ __RPC__out LPWSTR szWndClass, + /* [out] */ __RPC__out DWORD *pdwPrivate); + + DECLSPEC_XFGVIRT(IActiveIME, ConversionList) + HRESULT ( STDMETHODCALLTYPE *ConversionList )( + __RPC__in IActiveIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPWSTR szSource, + /* [in] */ UINT uFlag, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pDest, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIME, Configure) + HRESULT ( STDMETHODCALLTYPE *Configure )( + __RPC__in IActiveIME * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDW *pRegisterWord); + + DECLSPEC_XFGVIRT(IActiveIME, Destroy) + HRESULT ( STDMETHODCALLTYPE *Destroy )( + __RPC__in IActiveIME * This, + /* [in] */ UINT uReserved); + + DECLSPEC_XFGVIRT(IActiveIME, Escape) + HRESULT ( STDMETHODCALLTYPE *Escape )( + __RPC__in IActiveIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout void *pData, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIME, SetActiveContext) + HRESULT ( STDMETHODCALLTYPE *SetActiveContext )( + __RPC__in IActiveIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ BOOL fFlag); + + DECLSPEC_XFGVIRT(IActiveIME, ProcessKey) + HRESULT ( STDMETHODCALLTYPE *ProcessKey )( + __RPC__in IActiveIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uVirKey, + /* [in] */ DWORD lParam, + /* [in] */ __RPC__in BYTE *pbKeyState); + + DECLSPEC_XFGVIRT(IActiveIME, Notify) + HRESULT ( STDMETHODCALLTYPE *Notify )( + __RPC__in IActiveIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwAction, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwValue); + + DECLSPEC_XFGVIRT(IActiveIME, Select) + HRESULT ( STDMETHODCALLTYPE *Select )( + __RPC__in IActiveIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ BOOL fSelect); + + DECLSPEC_XFGVIRT(IActiveIME, SetCompositionString) + HRESULT ( STDMETHODCALLTYPE *SetCompositionString )( + __RPC__in IActiveIME * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in void *pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in void *pRead, + /* [in] */ DWORD dwReadLen); + + DECLSPEC_XFGVIRT(IActiveIME, ToAsciiEx) + HRESULT ( STDMETHODCALLTYPE *ToAsciiEx )( + __RPC__in IActiveIME * This, + /* [in] */ UINT uVirKey, + /* [in] */ UINT uScanCode, + /* [in] */ __RPC__in BYTE *pbKeyState, + /* [in] */ UINT fuState, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwTransBuf, + /* [out] */ __RPC__out UINT *puSize); + + DECLSPEC_XFGVIRT(IActiveIME, RegisterWord) + HRESULT ( STDMETHODCALLTYPE *RegisterWord )( + __RPC__in IActiveIME * This, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szString); + + DECLSPEC_XFGVIRT(IActiveIME, UnregisterWord) + HRESULT ( STDMETHODCALLTYPE *UnregisterWord )( + __RPC__in IActiveIME * This, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szString); + + DECLSPEC_XFGVIRT(IActiveIME, GetRegisterWordStyle) + HRESULT ( STDMETHODCALLTYPE *GetRegisterWordStyle )( + __RPC__in IActiveIME * This, + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFW *pStyleBuf, + /* [out] */ __RPC__out UINT *puBufSize); + + DECLSPEC_XFGVIRT(IActiveIME, EnumRegisterWord) + HRESULT ( STDMETHODCALLTYPE *EnumRegisterWord )( + __RPC__in IActiveIME * This, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordW **ppEnum); + + DECLSPEC_XFGVIRT(IActiveIME, GetCodePageA) + HRESULT ( STDMETHODCALLTYPE *GetCodePageA )( + __RPC__in IActiveIME * This, + /* [out] */ __RPC__out UINT *uCodePage); + + DECLSPEC_XFGVIRT(IActiveIME, GetLangId) + HRESULT ( STDMETHODCALLTYPE *GetLangId )( + __RPC__in IActiveIME * This, + /* [out] */ __RPC__out LANGID *plid); + + END_INTERFACE + } IActiveIMEVtbl; + + interface IActiveIME + { + CONST_VTBL struct IActiveIMEVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveIME_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveIME_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveIME_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveIME_Inquire(This,dwSystemInfoFlags,pIMEInfo,szWndClass,pdwPrivate) \ + ( (This)->lpVtbl -> Inquire(This,dwSystemInfoFlags,pIMEInfo,szWndClass,pdwPrivate) ) + +#define IActiveIME_ConversionList(This,hIMC,szSource,uFlag,uBufLen,pDest,puCopied) \ + ( (This)->lpVtbl -> ConversionList(This,hIMC,szSource,uFlag,uBufLen,pDest,puCopied) ) + +#define IActiveIME_Configure(This,hKL,hWnd,dwMode,pRegisterWord) \ + ( (This)->lpVtbl -> Configure(This,hKL,hWnd,dwMode,pRegisterWord) ) + +#define IActiveIME_Destroy(This,uReserved) \ + ( (This)->lpVtbl -> Destroy(This,uReserved) ) + +#define IActiveIME_Escape(This,hIMC,uEscape,pData,plResult) \ + ( (This)->lpVtbl -> Escape(This,hIMC,uEscape,pData,plResult) ) + +#define IActiveIME_SetActiveContext(This,hIMC,fFlag) \ + ( (This)->lpVtbl -> SetActiveContext(This,hIMC,fFlag) ) + +#define IActiveIME_ProcessKey(This,hIMC,uVirKey,lParam,pbKeyState) \ + ( (This)->lpVtbl -> ProcessKey(This,hIMC,uVirKey,lParam,pbKeyState) ) + +#define IActiveIME_Notify(This,hIMC,dwAction,dwIndex,dwValue) \ + ( (This)->lpVtbl -> Notify(This,hIMC,dwAction,dwIndex,dwValue) ) + +#define IActiveIME_Select(This,hIMC,fSelect) \ + ( (This)->lpVtbl -> Select(This,hIMC,fSelect) ) + +#define IActiveIME_SetCompositionString(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) \ + ( (This)->lpVtbl -> SetCompositionString(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) ) + +#define IActiveIME_ToAsciiEx(This,uVirKey,uScanCode,pbKeyState,fuState,hIMC,pdwTransBuf,puSize) \ + ( (This)->lpVtbl -> ToAsciiEx(This,uVirKey,uScanCode,pbKeyState,fuState,hIMC,pdwTransBuf,puSize) ) + +#define IActiveIME_RegisterWord(This,szReading,dwStyle,szString) \ + ( (This)->lpVtbl -> RegisterWord(This,szReading,dwStyle,szString) ) + +#define IActiveIME_UnregisterWord(This,szReading,dwStyle,szString) \ + ( (This)->lpVtbl -> UnregisterWord(This,szReading,dwStyle,szString) ) + +#define IActiveIME_GetRegisterWordStyle(This,nItem,pStyleBuf,puBufSize) \ + ( (This)->lpVtbl -> GetRegisterWordStyle(This,nItem,pStyleBuf,puBufSize) ) + +#define IActiveIME_EnumRegisterWord(This,szReading,dwStyle,szRegister,pData,ppEnum) \ + ( (This)->lpVtbl -> EnumRegisterWord(This,szReading,dwStyle,szRegister,pData,ppEnum) ) + +#define IActiveIME_GetCodePageA(This,uCodePage) \ + ( (This)->lpVtbl -> GetCodePageA(This,uCodePage) ) + +#define IActiveIME_GetLangId(This,plid) \ + ( (This)->lpVtbl -> GetLangId(This,plid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveIME_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveIME2_INTERFACE_DEFINED__ +#define __IActiveIME2_INTERFACE_DEFINED__ + +/* interface IActiveIME2 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveIME2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e1c4bf0e-2d53-11d2-93e1-0060b067b86e") + IActiveIME2 : public IActiveIME + { + public: + virtual HRESULT STDMETHODCALLTYPE Sleep( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Unsleep( + /* [in] */ BOOL fDead) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveIME2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveIME2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveIME2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveIME2 * This); + + DECLSPEC_XFGVIRT(IActiveIME, Inquire) + HRESULT ( STDMETHODCALLTYPE *Inquire )( + __RPC__in IActiveIME2 * This, + /* [in] */ DWORD dwSystemInfoFlags, + /* [out] */ __RPC__out IMEINFO *pIMEInfo, + /* [out] */ __RPC__out LPWSTR szWndClass, + /* [out] */ __RPC__out DWORD *pdwPrivate); + + DECLSPEC_XFGVIRT(IActiveIME, ConversionList) + HRESULT ( STDMETHODCALLTYPE *ConversionList )( + __RPC__in IActiveIME2 * This, + /* [in] */ HIMC hIMC, + /* [in] */ __RPC__in LPWSTR szSource, + /* [in] */ UINT uFlag, + /* [in] */ UINT uBufLen, + /* [out] */ __RPC__out CANDIDATELIST *pDest, + /* [out] */ __RPC__out UINT *puCopied); + + DECLSPEC_XFGVIRT(IActiveIME, Configure) + HRESULT ( STDMETHODCALLTYPE *Configure )( + __RPC__in IActiveIME2 * This, + /* [in] */ __RPC__in HKL hKL, + /* [in] */ __RPC__in HWND hWnd, + /* [in] */ DWORD dwMode, + /* [in] */ __RPC__in REGISTERWORDW *pRegisterWord); + + DECLSPEC_XFGVIRT(IActiveIME, Destroy) + HRESULT ( STDMETHODCALLTYPE *Destroy )( + __RPC__in IActiveIME2 * This, + /* [in] */ UINT uReserved); + + DECLSPEC_XFGVIRT(IActiveIME, Escape) + HRESULT ( STDMETHODCALLTYPE *Escape )( + __RPC__in IActiveIME2 * This, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uEscape, + /* [out][in] */ __RPC__inout void *pData, + /* [out] */ __RPC__out LRESULT *plResult); + + DECLSPEC_XFGVIRT(IActiveIME, SetActiveContext) + HRESULT ( STDMETHODCALLTYPE *SetActiveContext )( + __RPC__in IActiveIME2 * This, + /* [in] */ HIMC hIMC, + /* [in] */ BOOL fFlag); + + DECLSPEC_XFGVIRT(IActiveIME, ProcessKey) + HRESULT ( STDMETHODCALLTYPE *ProcessKey )( + __RPC__in IActiveIME2 * This, + /* [in] */ HIMC hIMC, + /* [in] */ UINT uVirKey, + /* [in] */ DWORD lParam, + /* [in] */ __RPC__in BYTE *pbKeyState); + + DECLSPEC_XFGVIRT(IActiveIME, Notify) + HRESULT ( STDMETHODCALLTYPE *Notify )( + __RPC__in IActiveIME2 * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwAction, + /* [in] */ DWORD dwIndex, + /* [in] */ DWORD dwValue); + + DECLSPEC_XFGVIRT(IActiveIME, Select) + HRESULT ( STDMETHODCALLTYPE *Select )( + __RPC__in IActiveIME2 * This, + /* [in] */ HIMC hIMC, + /* [in] */ BOOL fSelect); + + DECLSPEC_XFGVIRT(IActiveIME, SetCompositionString) + HRESULT ( STDMETHODCALLTYPE *SetCompositionString )( + __RPC__in IActiveIME2 * This, + /* [in] */ HIMC hIMC, + /* [in] */ DWORD dwIndex, + /* [in] */ __RPC__in void *pComp, + /* [in] */ DWORD dwCompLen, + /* [in] */ __RPC__in void *pRead, + /* [in] */ DWORD dwReadLen); + + DECLSPEC_XFGVIRT(IActiveIME, ToAsciiEx) + HRESULT ( STDMETHODCALLTYPE *ToAsciiEx )( + __RPC__in IActiveIME2 * This, + /* [in] */ UINT uVirKey, + /* [in] */ UINT uScanCode, + /* [in] */ __RPC__in BYTE *pbKeyState, + /* [in] */ UINT fuState, + /* [in] */ HIMC hIMC, + /* [out] */ __RPC__out DWORD *pdwTransBuf, + /* [out] */ __RPC__out UINT *puSize); + + DECLSPEC_XFGVIRT(IActiveIME, RegisterWord) + HRESULT ( STDMETHODCALLTYPE *RegisterWord )( + __RPC__in IActiveIME2 * This, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szString); + + DECLSPEC_XFGVIRT(IActiveIME, UnregisterWord) + HRESULT ( STDMETHODCALLTYPE *UnregisterWord )( + __RPC__in IActiveIME2 * This, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szString); + + DECLSPEC_XFGVIRT(IActiveIME, GetRegisterWordStyle) + HRESULT ( STDMETHODCALLTYPE *GetRegisterWordStyle )( + __RPC__in IActiveIME2 * This, + /* [in] */ UINT nItem, + /* [out] */ __RPC__out STYLEBUFW *pStyleBuf, + /* [out] */ __RPC__out UINT *puBufSize); + + DECLSPEC_XFGVIRT(IActiveIME, EnumRegisterWord) + HRESULT ( STDMETHODCALLTYPE *EnumRegisterWord )( + __RPC__in IActiveIME2 * This, + /* [in] */ __RPC__in LPWSTR szReading, + /* [in] */ DWORD dwStyle, + /* [in] */ __RPC__in LPWSTR szRegister, + /* [in] */ __RPC__in LPVOID pData, + /* [out] */ __RPC__deref_out_opt IEnumRegisterWordW **ppEnum); + + DECLSPEC_XFGVIRT(IActiveIME, GetCodePageA) + HRESULT ( STDMETHODCALLTYPE *GetCodePageA )( + __RPC__in IActiveIME2 * This, + /* [out] */ __RPC__out UINT *uCodePage); + + DECLSPEC_XFGVIRT(IActiveIME, GetLangId) + HRESULT ( STDMETHODCALLTYPE *GetLangId )( + __RPC__in IActiveIME2 * This, + /* [out] */ __RPC__out LANGID *plid); + + DECLSPEC_XFGVIRT(IActiveIME2, Sleep) + HRESULT ( STDMETHODCALLTYPE *Sleep )( + __RPC__in IActiveIME2 * This); + + DECLSPEC_XFGVIRT(IActiveIME2, Unsleep) + HRESULT ( STDMETHODCALLTYPE *Unsleep )( + __RPC__in IActiveIME2 * This, + /* [in] */ BOOL fDead); + + END_INTERFACE + } IActiveIME2Vtbl; + + interface IActiveIME2 + { + CONST_VTBL struct IActiveIME2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveIME2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveIME2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveIME2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveIME2_Inquire(This,dwSystemInfoFlags,pIMEInfo,szWndClass,pdwPrivate) \ + ( (This)->lpVtbl -> Inquire(This,dwSystemInfoFlags,pIMEInfo,szWndClass,pdwPrivate) ) + +#define IActiveIME2_ConversionList(This,hIMC,szSource,uFlag,uBufLen,pDest,puCopied) \ + ( (This)->lpVtbl -> ConversionList(This,hIMC,szSource,uFlag,uBufLen,pDest,puCopied) ) + +#define IActiveIME2_Configure(This,hKL,hWnd,dwMode,pRegisterWord) \ + ( (This)->lpVtbl -> Configure(This,hKL,hWnd,dwMode,pRegisterWord) ) + +#define IActiveIME2_Destroy(This,uReserved) \ + ( (This)->lpVtbl -> Destroy(This,uReserved) ) + +#define IActiveIME2_Escape(This,hIMC,uEscape,pData,plResult) \ + ( (This)->lpVtbl -> Escape(This,hIMC,uEscape,pData,plResult) ) + +#define IActiveIME2_SetActiveContext(This,hIMC,fFlag) \ + ( (This)->lpVtbl -> SetActiveContext(This,hIMC,fFlag) ) + +#define IActiveIME2_ProcessKey(This,hIMC,uVirKey,lParam,pbKeyState) \ + ( (This)->lpVtbl -> ProcessKey(This,hIMC,uVirKey,lParam,pbKeyState) ) + +#define IActiveIME2_Notify(This,hIMC,dwAction,dwIndex,dwValue) \ + ( (This)->lpVtbl -> Notify(This,hIMC,dwAction,dwIndex,dwValue) ) + +#define IActiveIME2_Select(This,hIMC,fSelect) \ + ( (This)->lpVtbl -> Select(This,hIMC,fSelect) ) + +#define IActiveIME2_SetCompositionString(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) \ + ( (This)->lpVtbl -> SetCompositionString(This,hIMC,dwIndex,pComp,dwCompLen,pRead,dwReadLen) ) + +#define IActiveIME2_ToAsciiEx(This,uVirKey,uScanCode,pbKeyState,fuState,hIMC,pdwTransBuf,puSize) \ + ( (This)->lpVtbl -> ToAsciiEx(This,uVirKey,uScanCode,pbKeyState,fuState,hIMC,pdwTransBuf,puSize) ) + +#define IActiveIME2_RegisterWord(This,szReading,dwStyle,szString) \ + ( (This)->lpVtbl -> RegisterWord(This,szReading,dwStyle,szString) ) + +#define IActiveIME2_UnregisterWord(This,szReading,dwStyle,szString) \ + ( (This)->lpVtbl -> UnregisterWord(This,szReading,dwStyle,szString) ) + +#define IActiveIME2_GetRegisterWordStyle(This,nItem,pStyleBuf,puBufSize) \ + ( (This)->lpVtbl -> GetRegisterWordStyle(This,nItem,pStyleBuf,puBufSize) ) + +#define IActiveIME2_EnumRegisterWord(This,szReading,dwStyle,szRegister,pData,ppEnum) \ + ( (This)->lpVtbl -> EnumRegisterWord(This,szReading,dwStyle,szRegister,pData,ppEnum) ) + +#define IActiveIME2_GetCodePageA(This,uCodePage) \ + ( (This)->lpVtbl -> GetCodePageA(This,uCodePage) ) + +#define IActiveIME2_GetLangId(This,plid) \ + ( (This)->lpVtbl -> GetLangId(This,plid) ) + + +#define IActiveIME2_Sleep(This) \ + ( (This)->lpVtbl -> Sleep(This) ) + +#define IActiveIME2_Unsleep(This,fDead) \ + ( (This)->lpVtbl -> Unsleep(This,fDead) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveIME2_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_CActiveIMM; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4955DD33-B159-11d0-8FCF-00AA006BCC59") +CActiveIMM; +#endif +#endif /* __ActiveIMM_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_dimm_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dimm_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dimm_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectML.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectML.h new file mode 100644 index 0000000000000000000000000000000000000000..b8b6603644f4cf85da5fa90cd11e388f48bd06a0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectML.h @@ -0,0 +1,2651 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. + +#ifndef DIRECTML_H +#define DIRECTML_H +#pragma once + +#ifdef _GAMING_XBOX_SCARLETT +#include "d3d12_xs.h" +#elif _GAMING_XBOX_XBOXONE +#include "d3d12_x.h" +#else +#include "d3d12.h" +#endif + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) + +#ifndef DML_DECLARE_INTERFACE +#define DML_DECLARE_INTERFACE(iid) DECLSPEC_UUID(iid) DECLSPEC_NOVTABLE +#endif + +#ifndef DML_TARGET_VERSION + +#if !defined(NTDDI_VERSION) || defined(DML_TARGET_VERSION_USE_LATEST) // Use the latest if using redist or no Windows target set. +#define DML_TARGET_VERSION 0x6400 +#elif defined(NTDDI_WIN10_ZN) && NTDDI_VERSION >= NTDDI_WIN10_ZN +#define DML_TARGET_VERSION 0x6000 +#elif defined(NTDDI_WIN10_NI) && NTDDI_VERSION >= NTDDI_WIN10_NI +#define DML_TARGET_VERSION 0x5000 +#elif defined(NTDDI_WIN10_CO) && NTDDI_VERSION >= NTDDI_WIN10_CO +#define DML_TARGET_VERSION 0x4000 +#elif defined(NTDDI_WIN10_FE) && NTDDI_VERSION >= NTDDI_WIN10_FE +#define DML_TARGET_VERSION 0x3000 +#elif defined(NTDDI_WIN10_VB) && NTDDI_VERSION >= NTDDI_WIN10_VB // Windows 10 2004 Update +#define DML_TARGET_VERSION 0x2000 +#else // defined(NTDDI_WIN10_19H1) && NTDDI_VERSION >= NTDDI_WIN10_19H1 // Windows 10 1903 Update +#define DML_TARGET_VERSION 0x1000 +#endif + +#endif // !defined(DML_TARGET_VERSION) + +// =================================================================================================================== +// DirectML constants +// =================================================================================================================== + +static const UINT DML_TENSOR_DIMENSION_COUNT_MAX = 5; +#if DML_TARGET_VERSION >= 0x3000 +static const UINT DML_TENSOR_DIMENSION_COUNT_MAX1 = 8; +#endif + +static const UINT DML_TEMPORARY_BUFFER_ALIGNMENT = 256; +static const UINT DML_PERSISTENT_BUFFER_ALIGNMENT = 256; + +static const UINT DML_MINIMUM_BUFFER_TENSOR_ALIGNMENT = 16; + + +// =================================================================================================================== +// Interface declarations +// =================================================================================================================== + +interface IDMLObject; +interface IDMLDevice; +interface IDMLDeviceChild; +interface IDMLPageable; +interface IDMLDispatchable; +interface IDMLOperator; +interface IDMLCompiledOperator; +interface IDMLOperatorInitializer; +interface IDMLBindingTable; +interface IDMLCommandRecorder; + + +// =================================================================================================================== +// Tensor descriptions +// =================================================================================================================== + +enum DML_TENSOR_DATA_TYPE +{ + DML_TENSOR_DATA_TYPE_UNKNOWN, + DML_TENSOR_DATA_TYPE_FLOAT32, + DML_TENSOR_DATA_TYPE_FLOAT16, + DML_TENSOR_DATA_TYPE_UINT32, + DML_TENSOR_DATA_TYPE_UINT16, + DML_TENSOR_DATA_TYPE_UINT8, + DML_TENSOR_DATA_TYPE_INT32, + DML_TENSOR_DATA_TYPE_INT16, + DML_TENSOR_DATA_TYPE_INT8, + DML_TENSOR_DATA_TYPE_FLOAT64, + DML_TENSOR_DATA_TYPE_UINT64, + DML_TENSOR_DATA_TYPE_INT64, +#if DML_TARGET_VERSION >= 0x6300 + DML_TENSOR_DATA_TYPE_UINT4, + DML_TENSOR_DATA_TYPE_INT4, +#endif // DML_TARGET_VERSION >= 0x6300 +}; + +enum DML_TENSOR_TYPE +{ + DML_TENSOR_TYPE_INVALID, + + DML_TENSOR_TYPE_BUFFER, +}; + +enum DML_TENSOR_FLAGS +{ + DML_TENSOR_FLAG_NONE = 0x0, + DML_TENSOR_FLAG_OWNED_BY_DML = 0x1, +}; + +DEFINE_ENUM_FLAG_OPERATORS(DML_TENSOR_FLAGS) + +struct DML_BUFFER_TENSOR_DESC +{ + DML_TENSOR_DATA_TYPE DataType; + DML_TENSOR_FLAGS Flags; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Sizes; + _Field_size_opt_(DimensionCount) const UINT* Strides; + UINT64 TotalTensorSizeInBytes; + UINT GuaranteedBaseOffsetAlignment; +}; + +struct DML_TENSOR_DESC +{ + DML_TENSOR_TYPE Type; + _Field_size_(_Inexpressible_("Dependent on tensor type")) const void* Desc; +}; + + +// =================================================================================================================== +// Operator types +// =================================================================================================================== + +enum DML_OPERATOR_TYPE +{ + DML_OPERATOR_INVALID, + + DML_OPERATOR_ELEMENT_WISE_IDENTITY, + DML_OPERATOR_ELEMENT_WISE_ABS, + DML_OPERATOR_ELEMENT_WISE_ACOS, + DML_OPERATOR_ELEMENT_WISE_ADD, + DML_OPERATOR_ELEMENT_WISE_ASIN, + DML_OPERATOR_ELEMENT_WISE_ATAN, + DML_OPERATOR_ELEMENT_WISE_CEIL, + DML_OPERATOR_ELEMENT_WISE_CLIP, + DML_OPERATOR_ELEMENT_WISE_COS, + DML_OPERATOR_ELEMENT_WISE_DIVIDE, + DML_OPERATOR_ELEMENT_WISE_EXP, + DML_OPERATOR_ELEMENT_WISE_FLOOR, + DML_OPERATOR_ELEMENT_WISE_LOG, + DML_OPERATOR_ELEMENT_WISE_LOGICAL_AND, + DML_OPERATOR_ELEMENT_WISE_LOGICAL_EQUALS, + DML_OPERATOR_ELEMENT_WISE_LOGICAL_GREATER_THAN, + DML_OPERATOR_ELEMENT_WISE_LOGICAL_LESS_THAN, + DML_OPERATOR_ELEMENT_WISE_LOGICAL_NOT, + DML_OPERATOR_ELEMENT_WISE_LOGICAL_OR, + DML_OPERATOR_ELEMENT_WISE_LOGICAL_XOR, + DML_OPERATOR_ELEMENT_WISE_MAX, + DML_OPERATOR_ELEMENT_WISE_MEAN, + DML_OPERATOR_ELEMENT_WISE_MIN, + DML_OPERATOR_ELEMENT_WISE_MULTIPLY, + DML_OPERATOR_ELEMENT_WISE_POW, + DML_OPERATOR_ELEMENT_WISE_CONSTANT_POW, + DML_OPERATOR_ELEMENT_WISE_RECIP, + DML_OPERATOR_ELEMENT_WISE_SIN, + DML_OPERATOR_ELEMENT_WISE_SQRT, + DML_OPERATOR_ELEMENT_WISE_SUBTRACT, + DML_OPERATOR_ELEMENT_WISE_TAN, + DML_OPERATOR_ELEMENT_WISE_THRESHOLD, + DML_OPERATOR_ELEMENT_WISE_QUANTIZE_LINEAR, + DML_OPERATOR_ELEMENT_WISE_DEQUANTIZE_LINEAR, + DML_OPERATOR_ACTIVATION_ELU, + DML_OPERATOR_ACTIVATION_HARDMAX, + DML_OPERATOR_ACTIVATION_HARD_SIGMOID, + DML_OPERATOR_ACTIVATION_IDENTITY, + DML_OPERATOR_ACTIVATION_LEAKY_RELU, + DML_OPERATOR_ACTIVATION_LINEAR, + DML_OPERATOR_ACTIVATION_LOG_SOFTMAX, + DML_OPERATOR_ACTIVATION_PARAMETERIZED_RELU, + DML_OPERATOR_ACTIVATION_PARAMETRIC_SOFTPLUS, + DML_OPERATOR_ACTIVATION_RELU, + DML_OPERATOR_ACTIVATION_SCALED_ELU, + DML_OPERATOR_ACTIVATION_SCALED_TANH, + DML_OPERATOR_ACTIVATION_SIGMOID, + DML_OPERATOR_ACTIVATION_SOFTMAX, + DML_OPERATOR_ACTIVATION_SOFTPLUS, + DML_OPERATOR_ACTIVATION_SOFTSIGN, + DML_OPERATOR_ACTIVATION_TANH, + DML_OPERATOR_ACTIVATION_THRESHOLDED_RELU, + DML_OPERATOR_CONVOLUTION, + DML_OPERATOR_GEMM, + DML_OPERATOR_REDUCE, + DML_OPERATOR_AVERAGE_POOLING, + DML_OPERATOR_LP_POOLING, + DML_OPERATOR_MAX_POOLING, + DML_OPERATOR_ROI_POOLING, + DML_OPERATOR_SLICE, + DML_OPERATOR_CAST, + DML_OPERATOR_SPLIT, + DML_OPERATOR_JOIN, + DML_OPERATOR_PADDING, + DML_OPERATOR_VALUE_SCALE_2D, + DML_OPERATOR_UPSAMPLE_2D, + DML_OPERATOR_GATHER, + DML_OPERATOR_SPACE_TO_DEPTH, + DML_OPERATOR_DEPTH_TO_SPACE, + DML_OPERATOR_TILE, + DML_OPERATOR_TOP_K, + DML_OPERATOR_BATCH_NORMALIZATION, + DML_OPERATOR_MEAN_VARIANCE_NORMALIZATION, + DML_OPERATOR_LOCAL_RESPONSE_NORMALIZATION, + DML_OPERATOR_LP_NORMALIZATION, + DML_OPERATOR_RNN, + DML_OPERATOR_LSTM, + DML_OPERATOR_GRU, + +#if DML_TARGET_VERSION >= 0x2000 + DML_OPERATOR_ELEMENT_WISE_SIGN, + DML_OPERATOR_ELEMENT_WISE_IS_NAN, + DML_OPERATOR_ELEMENT_WISE_ERF, + DML_OPERATOR_ELEMENT_WISE_SINH, + DML_OPERATOR_ELEMENT_WISE_COSH, + DML_OPERATOR_ELEMENT_WISE_TANH, + DML_OPERATOR_ELEMENT_WISE_ASINH, + DML_OPERATOR_ELEMENT_WISE_ACOSH, + DML_OPERATOR_ELEMENT_WISE_ATANH, + DML_OPERATOR_ELEMENT_WISE_IF, + DML_OPERATOR_ELEMENT_WISE_ADD1, + DML_OPERATOR_ACTIVATION_SHRINK, + DML_OPERATOR_MAX_POOLING1, + DML_OPERATOR_MAX_UNPOOLING, + DML_OPERATOR_DIAGONAL_MATRIX, + DML_OPERATOR_SCATTER_ELEMENTS, + DML_OPERATOR_SCATTER = DML_OPERATOR_SCATTER_ELEMENTS, // Alias name for backwards compatibility. + DML_OPERATOR_ONE_HOT, + DML_OPERATOR_RESAMPLE, +#endif // DML_TARGET_VERSION >= 0x2000 + +#if DML_TARGET_VERSION >= 0x2100 + DML_OPERATOR_ELEMENT_WISE_BIT_SHIFT_LEFT, + DML_OPERATOR_ELEMENT_WISE_BIT_SHIFT_RIGHT, + DML_OPERATOR_ELEMENT_WISE_ROUND, + DML_OPERATOR_ELEMENT_WISE_IS_INFINITY, + DML_OPERATOR_ELEMENT_WISE_MODULUS_TRUNCATE, + DML_OPERATOR_ELEMENT_WISE_MODULUS_FLOOR, + DML_OPERATOR_FILL_VALUE_CONSTANT, + DML_OPERATOR_FILL_VALUE_SEQUENCE, + DML_OPERATOR_CUMULATIVE_SUMMATION, + DML_OPERATOR_REVERSE_SUBSEQUENCES, + DML_OPERATOR_GATHER_ELEMENTS, + DML_OPERATOR_GATHER_ND, + DML_OPERATOR_SCATTER_ND, + DML_OPERATOR_MAX_POOLING2, + DML_OPERATOR_SLICE1, + DML_OPERATOR_TOP_K1, + DML_OPERATOR_DEPTH_TO_SPACE1, + DML_OPERATOR_SPACE_TO_DEPTH1, + DML_OPERATOR_MEAN_VARIANCE_NORMALIZATION1, + DML_OPERATOR_RESAMPLE1, + DML_OPERATOR_MATRIX_MULTIPLY_INTEGER, + DML_OPERATOR_QUANTIZED_LINEAR_MATRIX_MULTIPLY, + DML_OPERATOR_CONVOLUTION_INTEGER, + DML_OPERATOR_QUANTIZED_LINEAR_CONVOLUTION, +#endif // DML_TARGET_VERSION >= 0x2100 + +#if DML_TARGET_VERSION >= 0x3000 + DML_OPERATOR_ELEMENT_WISE_BIT_AND, + DML_OPERATOR_ELEMENT_WISE_BIT_OR, + DML_OPERATOR_ELEMENT_WISE_BIT_XOR, + DML_OPERATOR_ELEMENT_WISE_BIT_NOT, + DML_OPERATOR_ELEMENT_WISE_BIT_COUNT, + DML_OPERATOR_ELEMENT_WISE_LOGICAL_GREATER_THAN_OR_EQUAL, + DML_OPERATOR_ELEMENT_WISE_LOGICAL_LESS_THAN_OR_EQUAL, + DML_OPERATOR_ACTIVATION_CELU, + DML_OPERATOR_ACTIVATION_RELU_GRAD, + DML_OPERATOR_AVERAGE_POOLING_GRAD, + DML_OPERATOR_MAX_POOLING_GRAD, + DML_OPERATOR_RANDOM_GENERATOR, + DML_OPERATOR_NONZERO_COORDINATES, + DML_OPERATOR_RESAMPLE_GRAD, + DML_OPERATOR_SLICE_GRAD, + DML_OPERATOR_ADAM_OPTIMIZER, + DML_OPERATOR_ARGMIN, + DML_OPERATOR_ARGMAX, + DML_OPERATOR_ROI_ALIGN, + DML_OPERATOR_GATHER_ND1, +#endif // DML_TARGET_VERSION >= 0x3000 + +#if DML_TARGET_VERSION >= 0x3100 + DML_OPERATOR_ELEMENT_WISE_ATAN_YX, + DML_OPERATOR_ELEMENT_WISE_CLIP_GRAD, + DML_OPERATOR_ELEMENT_WISE_DIFFERENCE_SQUARE, + DML_OPERATOR_LOCAL_RESPONSE_NORMALIZATION_GRAD, + DML_OPERATOR_CUMULATIVE_PRODUCT, + DML_OPERATOR_BATCH_NORMALIZATION_GRAD, +#endif // DML_TARGET_VERSION >= 0x3100 + +#if DML_TARGET_VERSION >= 0x4000 + DML_OPERATOR_ELEMENT_WISE_QUANTIZED_LINEAR_ADD, + DML_OPERATOR_DYNAMIC_QUANTIZE_LINEAR, + DML_OPERATOR_ROI_ALIGN1, +#endif // DML_TARGET_VERSION >= 0x4000 + +#if DML_TARGET_VERSION >= 0x4100 + DML_OPERATOR_ROI_ALIGN_GRAD, + DML_OPERATOR_BATCH_NORMALIZATION_TRAINING, + DML_OPERATOR_BATCH_NORMALIZATION_TRAINING_GRAD, +#endif // DML_TARGET_VERSION >= 0x4100 + +#if DML_TARGET_VERSION >= 0x5000 + DML_OPERATOR_ELEMENT_WISE_CLIP1, + DML_OPERATOR_ELEMENT_WISE_CLIP_GRAD1, + DML_OPERATOR_PADDING1, + DML_OPERATOR_ELEMENT_WISE_NEGATE, +#endif // DML_TARGET_VERSION >= 0x5000 + +#if DML_TARGET_VERSION >= 0x5100 + DML_OPERATOR_ACTIVATION_GELU, + DML_OPERATOR_ACTIVATION_SOFTMAX1, + DML_OPERATOR_ACTIVATION_LOG_SOFTMAX1, + DML_OPERATOR_ACTIVATION_HARDMAX1, + DML_OPERATOR_RESAMPLE2, + DML_OPERATOR_RESAMPLE_GRAD1, + DML_OPERATOR_DIAGONAL_MATRIX1, +#endif // DML_TARGET_VERSION >= 0x5100 + +#if DML_TARGET_VERSION >= 0x6100 + DML_OPERATOR_MULTIHEAD_ATTENTION, +#endif // DML_TARGET_VERSION >= 0x6100 + +#if DML_TARGET_VERSION >= 0x6200 + DML_OPERATOR_LP_POOLING1, + DML_OPERATOR_AVERAGE_POOLING1, + DML_OPERATOR_ACTIVATION_SWISH, + DML_OPERATOR_ACTIVATION_HARD_SWISH, + DML_OPERATOR_QUANTIZED_LINEAR_AVERAGE_POOLING, + DML_OPERATOR_MATRIX_MULTIPLY_INTEGER_TO_FLOAT, +#endif // DML_TARGET_VERSION >= 0x6200 + +#if DML_TARGET_VERSION >= 0x6300 + DML_OPERATOR_MEAN_VARIANCE_NORMALIZATION2, + DML_OPERATOR_MULTIHEAD_ATTENTION1, + DML_OPERATOR_QUANTIZE, + DML_OPERATOR_DEQUANTIZE, +#endif // DML_TARGET_VERSION >= 0x6300 + +#if DML_TARGET_VERSION >= 0x6400 + DML_OPERATOR_RESAMPLE3, + DML_OPERATOR_FOLD, + DML_OPERATOR_UNFOLD, +#endif // DML_TARGET_VERSION >= 0x6400 +}; + +// =================================================================================================================== +// Operator enumerations and structures +// =================================================================================================================== + +enum DML_REDUCE_FUNCTION +{ + DML_REDUCE_FUNCTION_ARGMAX, + DML_REDUCE_FUNCTION_ARGMIN, + DML_REDUCE_FUNCTION_AVERAGE, + DML_REDUCE_FUNCTION_L1, + DML_REDUCE_FUNCTION_L2, + DML_REDUCE_FUNCTION_LOG_SUM, + DML_REDUCE_FUNCTION_LOG_SUM_EXP, + DML_REDUCE_FUNCTION_MAX, + DML_REDUCE_FUNCTION_MIN, + DML_REDUCE_FUNCTION_MULTIPLY, + DML_REDUCE_FUNCTION_SUM, + DML_REDUCE_FUNCTION_SUM_SQUARE, +}; + +enum DML_MATRIX_TRANSFORM +{ + DML_MATRIX_TRANSFORM_NONE, + DML_MATRIX_TRANSFORM_TRANSPOSE, +}; + +enum DML_CONVOLUTION_MODE +{ + DML_CONVOLUTION_MODE_CONVOLUTION, + DML_CONVOLUTION_MODE_CROSS_CORRELATION, +}; + +enum DML_CONVOLUTION_DIRECTION +{ + DML_CONVOLUTION_DIRECTION_FORWARD, + DML_CONVOLUTION_DIRECTION_BACKWARD, +}; + +enum DML_PADDING_MODE +{ + DML_PADDING_MODE_CONSTANT, + DML_PADDING_MODE_EDGE, + DML_PADDING_MODE_REFLECTION, + +#if DML_TARGET_VERSION >= 0x3000 + DML_PADDING_MODE_SYMMETRIC, +#endif + +#if DML_TARGET_VERSION >= 0x6400 + DML_PADDING_MODE_WRAP, +#endif +}; + +enum DML_INTERPOLATION_MODE +{ + DML_INTERPOLATION_MODE_NEAREST_NEIGHBOR, + DML_INTERPOLATION_MODE_LINEAR, +}; + +struct DML_SCALE_BIAS +{ + FLOAT Scale; + FLOAT Bias; +}; + +struct DML_SIZE_2D +{ + UINT Width; + UINT Height; +}; + +enum DML_RECURRENT_NETWORK_DIRECTION +{ + DML_RECURRENT_NETWORK_DIRECTION_FORWARD, + DML_RECURRENT_NETWORK_DIRECTION_BACKWARD, + DML_RECURRENT_NETWORK_DIRECTION_BIDIRECTIONAL, +}; + +#if DML_TARGET_VERSION >= 0x2100 + +enum DML_ROUNDING_MODE +{ + DML_ROUNDING_MODE_HALVES_TO_NEAREST_EVEN, + DML_ROUNDING_MODE_TOWARD_ZERO, + DML_ROUNDING_MODE_TOWARD_INFINITY, +}; + +enum DML_IS_INFINITY_MODE +{ + DML_IS_INFINITY_MODE_EITHER = 0, + DML_IS_INFINITY_MODE_POSITIVE = 1, + DML_IS_INFINITY_MODE_NEGATIVE = 2, +}; + +enum DML_AXIS_DIRECTION +{ + DML_AXIS_DIRECTION_INCREASING = 0, + DML_AXIS_DIRECTION_DECREASING = 1, +}; + +enum DML_DEPTH_SPACE_ORDER +{ + DML_DEPTH_SPACE_ORDER_DEPTH_COLUMN_ROW, + DML_DEPTH_SPACE_ORDER_COLUMN_ROW_DEPTH, +}; + +union DML_SCALAR_UNION +{ + BYTE Bytes[8]; + INT8 Int8; + UINT8 UInt8; + INT16 Int16; + UINT16 UInt16; + INT32 Int32; + UINT32 UInt32; + INT64 Int64; + UINT64 UInt64; + FLOAT Float32; + DOUBLE Float64; +}; + +#endif // DML_TARGET_VERSION >= 0x2100 + +#if DML_TARGET_VERSION >= 0x3000 + +enum DML_RANDOM_GENERATOR_TYPE +{ + DML_RANDOM_GENERATOR_TYPE_PHILOX_4X32_10 +}; + +#endif // DML_TARGET_VERSION >= 0x3000 + +#if DML_TARGET_VERSION >= 0x6100 + +enum DML_MULTIHEAD_ATTENTION_MASK_TYPE +{ + DML_MULTIHEAD_ATTENTION_MASK_TYPE_NONE, + DML_MULTIHEAD_ATTENTION_MASK_TYPE_KEY_SEQUENCE_LENGTH, + DML_MULTIHEAD_ATTENTION_MASK_TYPE_KEY_SEQUENCE_END_START, + DML_MULTIHEAD_ATTENTION_MASK_TYPE_KEY_QUERY_SEQUENCE_LENGTH_START_END, + DML_MULTIHEAD_ATTENTION_MASK_TYPE_BOOLEAN, +}; + +#endif // DML_TARGET_VERSION >= 0x6100 + +#if DML_TARGET_VERSION >= 0x6300 + +enum DML_QUANTIZATION_TYPE +{ + DML_QUANTIZATION_TYPE_NONE, + DML_QUANTIZATION_TYPE_SCALE, + DML_QUANTIZATION_TYPE_SCALE_ZERO_POINT, +}; + +#endif // DML_TARGET_VERSION >= 0x6300 + +// =================================================================================================================== +// Operator descriptions +// =================================================================================================================== + +struct DML_OPERATOR_DESC +{ + DML_OPERATOR_TYPE Type; + _Field_size_(_Inexpressible_("Dependent on operator type")) const void* Desc; +}; + +struct DML_ELEMENT_WISE_IDENTITY_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_ABS_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_ACOS_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_ADD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_ADD1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_OPERATOR_DESC* FusedActivation; +}; + +struct DML_ELEMENT_WISE_ASIN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_ATAN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_CEIL_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_CLIP_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; + FLOAT Min; + FLOAT Max; +}; + +struct DML_ELEMENT_WISE_COS_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_DIVIDE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_EXP_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_FLOOR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_LOG_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_LOGICAL_AND_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_LOGICAL_EQUALS_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_LOGICAL_GREATER_THAN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_LOGICAL_LESS_THAN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_LOGICAL_NOT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_LOGICAL_OR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_LOGICAL_XOR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_MAX_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_MEAN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_MIN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_MULTIPLY_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_POW_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* ExponentTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_CONSTANT_POW_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; + FLOAT Exponent; +}; + +struct DML_ELEMENT_WISE_RECIP_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_SIN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_SQRT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_SUBTRACT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_TAN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_THRESHOLD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; + FLOAT Min; +}; + +struct DML_ELEMENT_WISE_QUANTIZE_LINEAR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* ScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* ZeroPointTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_DEQUANTIZE_LINEAR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* ScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* ZeroPointTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_ELU_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Alpha; +}; + +struct DML_ACTIVATION_HARDMAX_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_HARD_SIGMOID_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Alpha; + FLOAT Beta; +}; + +struct DML_ACTIVATION_IDENTITY_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_LEAKY_RELU_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Alpha; +}; + +struct DML_ACTIVATION_LINEAR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Alpha; + FLOAT Beta; +}; + +struct DML_ACTIVATION_LOG_SOFTMAX_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_PARAMETERIZED_RELU_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* SlopeTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_PARAMETRIC_SOFTPLUS_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Alpha; + FLOAT Beta; +}; + +struct DML_ACTIVATION_RELU_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_SCALED_ELU_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Alpha; + FLOAT Gamma; +}; + +struct DML_ACTIVATION_SCALED_TANH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Alpha; + FLOAT Beta; +}; + +struct DML_ACTIVATION_SIGMOID_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_SOFTMAX_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Steepness; +}; + +struct DML_ACTIVATION_SOFTSIGN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_TANH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_THRESHOLDED_RELU_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Alpha; +}; + +struct DML_CONVOLUTION_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* FilterTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_CONVOLUTION_MODE Mode; + DML_CONVOLUTION_DIRECTION Direction; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* Dilations; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + _Field_size_(DimensionCount) const UINT* OutputPadding; + UINT GroupCount; + _Maybenull_ const DML_OPERATOR_DESC* FusedActivation; +}; + +struct DML_GEMM_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + _Maybenull_ const DML_TENSOR_DESC* CTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_MATRIX_TRANSFORM TransA; + DML_MATRIX_TRANSFORM TransB; + FLOAT Alpha; + FLOAT Beta; + _Maybenull_ const DML_OPERATOR_DESC* FusedActivation; +}; + +struct DML_REDUCE_OPERATOR_DESC +{ + DML_REDUCE_FUNCTION Function; + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT AxisCount; + _Field_size_(AxisCount) const UINT* Axes; +}; + +struct DML_AVERAGE_POOLING_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* WindowSize; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + BOOL IncludePadding; +}; + +struct DML_LP_POOLING_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* WindowSize; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + UINT P; +}; + +struct DML_MAX_POOLING_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* WindowSize; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; +}; + +struct DML_ROI_POOLING_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* ROITensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT SpatialScale; + DML_SIZE_2D PooledSize; +}; + +struct DML_SLICE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Offsets; + _Field_size_(DimensionCount) const UINT* Sizes; + _Field_size_(DimensionCount) const UINT* Strides; +}; + +struct DML_CAST_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_SPLIT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + UINT OutputCount; + _Field_size_(OutputCount) const DML_TENSOR_DESC* OutputTensors; + UINT Axis; +}; + +struct DML_JOIN_OPERATOR_DESC +{ + UINT InputCount; + _Field_size_(InputCount) const DML_TENSOR_DESC* InputTensors; + const DML_TENSOR_DESC* OutputTensor; + UINT Axis; +}; + +struct DML_PADDING_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_PADDING_MODE PaddingMode; + FLOAT PaddingValue; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; +}; + +struct DML_VALUE_SCALE_2D_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Scale; + UINT ChannelCount; + _Field_size_(ChannelCount) const FLOAT* Bias; +}; + +struct DML_UPSAMPLE_2D_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_SIZE_2D ScaleSize; + DML_INTERPOLATION_MODE InterpolationMode; +}; + +struct DML_GATHER_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* IndicesTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT Axis; + UINT IndexDimensions; +}; + +struct DML_SPACE_TO_DEPTH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT BlockSize; +}; + +struct DML_DEPTH_TO_SPACE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT BlockSize; +}; + +struct DML_TILE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT RepeatsCount; + _Field_size_(RepeatsCount) const UINT* Repeats; +}; + +struct DML_TOP_K_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputValueTensor; + const DML_TENSOR_DESC* OutputIndexTensor; + UINT Axis; + UINT K; +}; + +struct DML_BATCH_NORMALIZATION_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* MeanTensor; + const DML_TENSOR_DESC* VarianceTensor; + const DML_TENSOR_DESC* ScaleTensor; + const DML_TENSOR_DESC* BiasTensor; + const DML_TENSOR_DESC* OutputTensor; + BOOL Spatial; + FLOAT Epsilon; + _Maybenull_ const DML_OPERATOR_DESC* FusedActivation; +}; + +struct DML_MEAN_VARIANCE_NORMALIZATION_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + _Maybenull_ const DML_TENSOR_DESC* ScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + const DML_TENSOR_DESC* OutputTensor; + BOOL CrossChannel; + BOOL NormalizeVariance; + FLOAT Epsilon; + _Maybenull_ const DML_OPERATOR_DESC* FusedActivation; +}; + +struct DML_LOCAL_RESPONSE_NORMALIZATION_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + BOOL CrossChannel; + UINT LocalSize; + FLOAT Alpha; + FLOAT Beta; + FLOAT Bias; +}; + +struct DML_LP_NORMALIZATION_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT Axis; + FLOAT Epsilon; + UINT P; +}; + +struct DML_RNN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* WeightTensor; + const DML_TENSOR_DESC* RecurrenceTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + _Maybenull_ const DML_TENSOR_DESC* HiddenInitTensor; + _Maybenull_ const DML_TENSOR_DESC* SequenceLengthsTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputSequenceTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputSingleTensor; + UINT ActivationDescCount; + _Field_size_(ActivationDescCount) const DML_OPERATOR_DESC* ActivationDescs; + DML_RECURRENT_NETWORK_DIRECTION Direction; +}; + +struct DML_LSTM_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* WeightTensor; + const DML_TENSOR_DESC* RecurrenceTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + _Maybenull_ const DML_TENSOR_DESC* HiddenInitTensor; + _Maybenull_ const DML_TENSOR_DESC* CellMemInitTensor; + _Maybenull_ const DML_TENSOR_DESC* SequenceLengthsTensor; + _Maybenull_ const DML_TENSOR_DESC* PeepholeTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputSequenceTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputSingleTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputCellSingleTensor; + UINT ActivationDescCount; + _Field_size_(ActivationDescCount) const DML_OPERATOR_DESC* ActivationDescs; + DML_RECURRENT_NETWORK_DIRECTION Direction; + float ClipThreshold; + BOOL UseClipThreshold; + BOOL CoupleInputForget; +}; + +struct DML_GRU_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* WeightTensor; + const DML_TENSOR_DESC* RecurrenceTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + _Maybenull_ const DML_TENSOR_DESC* HiddenInitTensor; + _Maybenull_ const DML_TENSOR_DESC* SequenceLengthsTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputSequenceTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputSingleTensor; + UINT ActivationDescCount; + _Field_size_(ActivationDescCount) const DML_OPERATOR_DESC* ActivationDescs; + DML_RECURRENT_NETWORK_DIRECTION Direction; + BOOL LinearBeforeReset; +}; + +#if DML_TARGET_VERSION >= 0x2000 + +struct DML_ELEMENT_WISE_SIGN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_IS_NAN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_ERF_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_SINH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_COSH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_TANH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_ASINH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_ACOSH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_ATANH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; +}; + +struct DML_ELEMENT_WISE_IF_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ConditionTensor; + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_SHRINK_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Bias; + FLOAT Threshold; +}; + +struct DML_MAX_POOLING1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputIndicesTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* WindowSize; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; +}; + +struct DML_MAX_UNPOOLING_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* IndicesTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_DIAGONAL_MATRIX_OPERATOR_DESC +{ + const DML_TENSOR_DESC* OutputTensor; + INT Offset; + FLOAT Value; +}; + +struct DML_SCATTER_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* IndicesTensor; + const DML_TENSOR_DESC* UpdatesTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT Axis; +}; + +struct DML_ONE_HOT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* IndicesTensor; + const DML_TENSOR_DESC* ValuesTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT Axis; +}; + +struct DML_RESAMPLE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_INTERPOLATION_MODE InterpolationMode; + UINT ScaleCount; + _Field_size_(ScaleCount) const FLOAT* Scales; +}; + +#endif // DML_TARGET_VERSION >= 0x2000 + +#if DML_TARGET_VERSION >= 0x2100 + +struct DML_ELEMENT_WISE_BIT_SHIFT_LEFT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_BIT_SHIFT_RIGHT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_ROUND_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_ROUNDING_MODE RoundingMode; +}; + +struct DML_ELEMENT_WISE_IS_INFINITY_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_IS_INFINITY_MODE InfinityMode; +}; + +struct DML_ELEMENT_WISE_MODULUS_TRUNCATE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_MODULUS_FLOOR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_FILL_VALUE_CONSTANT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* OutputTensor; + DML_TENSOR_DATA_TYPE ValueDataType; + DML_SCALAR_UNION Value; +}; + +struct DML_FILL_VALUE_SEQUENCE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* OutputTensor; + DML_TENSOR_DATA_TYPE ValueDataType; + DML_SCALAR_UNION ValueStart; + DML_SCALAR_UNION ValueDelta; +}; + +struct DML_CUMULATIVE_SUMMATION_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT Axis; + DML_AXIS_DIRECTION AxisDirection; + BOOL HasExclusiveSum; +}; + +struct DML_REVERSE_SUBSEQUENCES_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* SequenceLengthsTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT Axis; +}; + +struct DML_GATHER_ELEMENTS_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* IndicesTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT Axis; +}; + +// Alias existing operator, symmetric with DML_GATHER_ELEMENTS_OPERATOR_DESC. +using DML_SCATTER_ELEMENTS_OPERATOR_DESC = DML_SCATTER_OPERATOR_DESC; + +struct DML_GATHER_ND_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* IndicesTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT InputDimensionCount; + UINT IndicesDimensionCount; +}; + +struct DML_SCATTER_ND_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* IndicesTensor; + const DML_TENSOR_DESC* UpdatesTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT InputDimensionCount; + UINT IndicesDimensionCount; +}; + +struct DML_MAX_POOLING2_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputIndicesTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* WindowSize; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + _Field_size_(DimensionCount) const UINT* Dilations; +}; + +struct DML_SLICE1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* InputWindowOffsets; + _Field_size_(DimensionCount) const UINT* InputWindowSizes; + _Field_size_(DimensionCount) const INT* InputWindowStrides; +}; + +struct DML_TOP_K1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputValueTensor; + const DML_TENSOR_DESC* OutputIndexTensor; + UINT Axis; + UINT K; + DML_AXIS_DIRECTION AxisDirection; +}; + +struct DML_DEPTH_TO_SPACE1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT BlockSize; + DML_DEPTH_SPACE_ORDER Order; +}; + +struct DML_SPACE_TO_DEPTH1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT BlockSize; + DML_DEPTH_SPACE_ORDER Order; +}; + +struct DML_MEAN_VARIANCE_NORMALIZATION1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + _Maybenull_ const DML_TENSOR_DESC* ScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT AxisCount; + _Field_size_(AxisCount) const UINT* Axes; + BOOL NormalizeVariance; + FLOAT Epsilon; + _Maybenull_ const DML_OPERATOR_DESC* FusedActivation; +}; + +struct DML_RESAMPLE1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_INTERPOLATION_MODE InterpolationMode; + UINT DimensionCount; + _Field_size_(DimensionCount) const FLOAT* Scales; + _Field_size_(DimensionCount) const FLOAT* InputPixelOffsets; + _Field_size_(DimensionCount) const FLOAT* OutputPixelOffsets; +}; + +struct DML_MATRIX_MULTIPLY_INTEGER_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + _Maybenull_ const DML_TENSOR_DESC* AZeroPointTensor; + const DML_TENSOR_DESC* BTensor; + _Maybenull_ const DML_TENSOR_DESC* BZeroPointTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_QUANTIZED_LINEAR_MATRIX_MULTIPLY_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* AScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* AZeroPointTensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* BScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* BZeroPointTensor; + const DML_TENSOR_DESC* OutputScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputZeroPointTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_CONVOLUTION_INTEGER_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + _Maybenull_ const DML_TENSOR_DESC* InputZeroPointTensor; + const DML_TENSOR_DESC* FilterTensor; + _Maybenull_ const DML_TENSOR_DESC* FilterZeroPointTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* Dilations; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + UINT GroupCount; +}; + +struct DML_QUANTIZED_LINEAR_CONVOLUTION_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* InputScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* InputZeroPointTensor; + const DML_TENSOR_DESC* FilterTensor; + const DML_TENSOR_DESC* FilterScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* FilterZeroPointTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + const DML_TENSOR_DESC* OutputScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputZeroPointTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* Dilations; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + UINT GroupCount; +}; + +#endif // DML_TARGET_VERSION >= 0x2100 + +#if DML_TARGET_VERSION >= 0x3000 + +struct DML_ELEMENT_WISE_BIT_AND_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_BIT_OR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_BIT_XOR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_BIT_NOT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_BIT_COUNT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_LOGICAL_GREATER_THAN_OR_EQUAL_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_LOGICAL_LESS_THAN_OR_EQUAL_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_CELU_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Alpha; +}; + +struct DML_ACTIVATION_RELU_GRAD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* OutputGradientTensor; +}; + +struct DML_AVERAGE_POOLING_GRAD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* OutputGradientTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* WindowSize; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + BOOL IncludePadding; +}; + +struct DML_MAX_POOLING_GRAD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* OutputGradientTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* WindowSize; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + _Field_size_(DimensionCount) const UINT* Dilations; +}; + +struct DML_RANDOM_GENERATOR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputStateTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputStateTensor; + DML_RANDOM_GENERATOR_TYPE Type; +}; + +struct DML_NONZERO_COORDINATES_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputCountTensor; + const DML_TENSOR_DESC* OutputCoordinatesTensor; +}; + +struct DML_RESAMPLE_GRAD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* OutputGradientTensor; + DML_INTERPOLATION_MODE InterpolationMode; + UINT DimensionCount; + _Field_size_(DimensionCount) const FLOAT* Scales; + _Field_size_(DimensionCount) const FLOAT* InputPixelOffsets; + _Field_size_(DimensionCount) const FLOAT* OutputPixelOffsets; +}; + +struct DML_SLICE_GRAD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* OutputGradientTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* InputWindowOffsets; + _Field_size_(DimensionCount) const UINT* InputWindowSizes; + _Field_size_(DimensionCount) const INT* InputWindowStrides; +}; + +struct DML_ADAM_OPTIMIZER_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputParametersTensor; + const DML_TENSOR_DESC* InputFirstMomentTensor; + const DML_TENSOR_DESC* InputSecondMomentTensor; + const DML_TENSOR_DESC* GradientTensor; + const DML_TENSOR_DESC* TrainingStepTensor; + const DML_TENSOR_DESC* OutputParametersTensor; + const DML_TENSOR_DESC* OutputFirstMomentTensor; + const DML_TENSOR_DESC* OutputSecondMomentTensor; + FLOAT LearningRate; + FLOAT Beta1; + FLOAT Beta2; + FLOAT Epsilon; +}; + +struct DML_ARGMIN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT AxisCount; + _Field_size_(AxisCount) const UINT* Axes; + DML_AXIS_DIRECTION AxisDirection; +}; + +struct DML_ARGMAX_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT AxisCount; + _Field_size_(AxisCount) const UINT* Axes; + DML_AXIS_DIRECTION AxisDirection; +}; + +struct DML_ROI_ALIGN_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* ROITensor; + const DML_TENSOR_DESC* BatchIndicesTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_REDUCE_FUNCTION ReductionFunction; + DML_INTERPOLATION_MODE InterpolationMode; + FLOAT SpatialScaleX; + FLOAT SpatialScaleY; + FLOAT OutOfBoundsInputValue; + UINT MinimumSamplesPerOutput; + UINT MaximumSamplesPerOutput; +}; + +struct DML_GATHER_ND1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* IndicesTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT InputDimensionCount; + UINT IndicesDimensionCount; + UINT BatchDimensionCount; +}; + +#endif // DML_TARGET_VERSION >= 0x3000 + +#if DML_TARGET_VERSION >= 0x3100 + +struct DML_ELEMENT_WISE_ATAN_YX_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ELEMENT_WISE_CLIP_GRAD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* OutputGradientTensor; + FLOAT Min; + FLOAT Max; +}; + +struct DML_ELEMENT_WISE_DIFFERENCE_SQUARE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_LOCAL_RESPONSE_NORMALIZATION_GRAD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* OutputGradientTensor; + BOOL CrossChannel; + UINT LocalSize; + FLOAT Alpha; + FLOAT Beta; + FLOAT Bias; +}; + +struct DML_CUMULATIVE_PRODUCT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT Axis; + DML_AXIS_DIRECTION AxisDirection; + BOOL HasExclusiveProduct; +}; + +struct DML_BATCH_NORMALIZATION_GRAD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* MeanTensor; + const DML_TENSOR_DESC* VarianceTensor; + const DML_TENSOR_DESC* ScaleTensor; + + const DML_TENSOR_DESC* OutputGradientTensor; + const DML_TENSOR_DESC* OutputScaleGradientTensor; + const DML_TENSOR_DESC* OutputBiasGradientTensor; + + FLOAT Epsilon; +}; + +#endif // DML_TARGET_VERSION >= 0x3100 + +#if DML_TARGET_VERSION >= 0x4000 +struct DML_ELEMENT_WISE_QUANTIZED_LINEAR_ADD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* AScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* AZeroPointTensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* BScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* BZeroPointTensor; + const DML_TENSOR_DESC* OutputScaleTensor; // This is an input tensor + _Maybenull_ const DML_TENSOR_DESC* OutputZeroPointTensor; // This is an input tensor + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_DYNAMIC_QUANTIZE_LINEAR_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + const DML_TENSOR_DESC* OutputScaleTensor; // This is an output tensor + const DML_TENSOR_DESC* OutputZeroPointTensor; // This is an output tensor +}; + +struct DML_ROI_ALIGN1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* ROITensor; + const DML_TENSOR_DESC* BatchIndicesTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_REDUCE_FUNCTION ReductionFunction; + DML_INTERPOLATION_MODE InterpolationMode; + FLOAT SpatialScaleX; + FLOAT SpatialScaleY; + FLOAT InputPixelOffset; + FLOAT OutputPixelOffset; + FLOAT OutOfBoundsInputValue; + UINT MinimumSamplesPerOutput; + UINT MaximumSamplesPerOutput; + BOOL AlignRegionsToCorners; +}; + +#endif // DML_TARGET_VERSION >= 0x4000 + +#if DML_TARGET_VERSION >= 0x4100 + +struct DML_ROI_ALIGN_GRAD_OPERATOR_DESC +{ + _Maybenull_ const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* ROITensor; + const DML_TENSOR_DESC* BatchIndicesTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputGradientTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputROIGradientTensor; + DML_REDUCE_FUNCTION ReductionFunction; + DML_INTERPOLATION_MODE InterpolationMode; + FLOAT SpatialScaleX; + FLOAT SpatialScaleY; + FLOAT InputPixelOffset; + FLOAT OutputPixelOffset; + UINT MinimumSamplesPerOutput; + UINT MaximumSamplesPerOutput; + BOOL AlignRegionsToCorners; +}; + +struct DML_BATCH_NORMALIZATION_TRAINING_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* ScaleTensor; + const DML_TENSOR_DESC* BiasTensor; + _Maybenull_ const DML_TENSOR_DESC* FusedAddTensor; + const DML_TENSOR_DESC* OutputTensor; + const DML_TENSOR_DESC* OutputMeanTensor; + const DML_TENSOR_DESC* OutputVarianceTensor; + FLOAT Epsilon; + _Maybenull_ const DML_OPERATOR_DESC* FusedActivation; +}; + +struct DML_BATCH_NORMALIZATION_TRAINING_GRAD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* MeanTensor; + const DML_TENSOR_DESC* VarianceTensor; + const DML_TENSOR_DESC* ScaleTensor; + const DML_TENSOR_DESC* OutputGradientTensor; + const DML_TENSOR_DESC* OutputScaleGradientTensor; + const DML_TENSOR_DESC* OutputBiasGradientTensor; + FLOAT Epsilon; +}; + +#endif // DML_TARGET_VERSION >= 0x4100 + +#if DML_TARGET_VERSION >= 0x5000 + +struct DML_ELEMENT_WISE_CLIP1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_SCALE_BIAS* ScaleBias; + DML_TENSOR_DATA_TYPE MinMaxDataType; + DML_SCALAR_UNION Min; + DML_SCALAR_UNION Max; +}; + +struct DML_ELEMENT_WISE_CLIP_GRAD1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* OutputGradientTensor; + DML_TENSOR_DATA_TYPE MinMaxDataType; + DML_SCALAR_UNION Min; + DML_SCALAR_UNION Max; +}; + +struct DML_PADDING1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_PADDING_MODE PaddingMode; + DML_TENSOR_DATA_TYPE PaddingValueDataType; + DML_SCALAR_UNION PaddingValue; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; +}; + +struct DML_ELEMENT_WISE_NEGATE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +#endif // DML_TARGET_VERSION >= 0x5000 + +#if DML_TARGET_VERSION >= 0x5100 + +struct DML_ACTIVATION_GELU_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_ACTIVATION_SOFTMAX1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT AxisCount; + _Field_size_(AxisCount) const UINT* Axes; +}; + +struct DML_ACTIVATION_LOG_SOFTMAX1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT AxisCount; + _Field_size_(AxisCount) const UINT* Axes; +}; + +struct DML_ACTIVATION_HARDMAX1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT AxisCount; + _Field_size_(AxisCount) const UINT* Axes; +}; + +struct DML_RESAMPLE2_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_INTERPOLATION_MODE InterpolationMode; + DML_AXIS_DIRECTION RoundingDirection; + UINT DimensionCount; + _Field_size_(DimensionCount) const FLOAT* Scales; + _Field_size_(DimensionCount) const FLOAT* InputPixelOffsets; + _Field_size_(DimensionCount) const FLOAT* OutputPixelOffsets; +}; + +struct DML_RESAMPLE_GRAD1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputGradientTensor; + const DML_TENSOR_DESC* OutputGradientTensor; + DML_INTERPOLATION_MODE InterpolationMode; + DML_AXIS_DIRECTION RoundingDirection; + UINT DimensionCount; + _Field_size_(DimensionCount) const FLOAT* Scales; + _Field_size_(DimensionCount) const FLOAT* InputPixelOffsets; + _Field_size_(DimensionCount) const FLOAT* OutputPixelOffsets; +}; + +struct DML_DIAGONAL_MATRIX1_OPERATOR_DESC +{ + _Maybenull_ const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_TENSOR_DATA_TYPE ValueDataType; + DML_SCALAR_UNION Value; + INT DiagonalFillBegin; + INT DiagonalFillEnd; +}; + +#endif // DML_TARGET_VERSION >= 0x5100 + +#if DML_TARGET_VERSION >= 0x6100 + +struct DML_MULTIHEAD_ATTENTION_OPERATOR_DESC +{ + _Maybenull_ const DML_TENSOR_DESC* QueryTensor; + _Maybenull_ const DML_TENSOR_DESC* KeyTensor; + _Maybenull_ const DML_TENSOR_DESC* ValueTensor; + _Maybenull_ const DML_TENSOR_DESC* StackedQueryKeyTensor; + _Maybenull_ const DML_TENSOR_DESC* StackedKeyValueTensor; + _Maybenull_ const DML_TENSOR_DESC* StackedQueryKeyValueTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + _Maybenull_ const DML_TENSOR_DESC* MaskTensor; + _Maybenull_ const DML_TENSOR_DESC* RelativePositionBiasTensor; + _Maybenull_ const DML_TENSOR_DESC* PastKeyTensor; + _Maybenull_ const DML_TENSOR_DESC* PastValueTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputPresentKeyTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputPresentValueTensor; + FLOAT Scale; + FLOAT MaskFilterValue; + UINT HeadCount; + DML_MULTIHEAD_ATTENTION_MASK_TYPE MaskType; +}; + +#endif // DML_TARGET_VERSION >= 0x6100 + +#if DML_TARGET_VERSION >= 0x6200 + +struct DML_LP_POOLING1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* WindowSize; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + _Field_size_(DimensionCount) const UINT* Dilations; + UINT P; +}; + +struct DML_AVERAGE_POOLING1_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* WindowSize; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + _Field_size_(DimensionCount) const UINT* Dilations; + BOOL IncludePadding; +}; + +struct DML_ACTIVATION_SWISH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT SigmoidInputScale; +}; + +struct DML_ACTIVATION_HARD_SWISH_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + FLOAT Alpha; + FLOAT Beta; +}; + +struct DML_QUANTIZED_LINEAR_AVERAGE_POOLING_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* InputScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* InputZeroPointTensor; + const DML_TENSOR_DESC* OutputScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputZeroPointTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* Strides; + _Field_size_(DimensionCount) const UINT* WindowSize; + _Field_size_(DimensionCount) const UINT* StartPadding; + _Field_size_(DimensionCount) const UINT* EndPadding; + _Field_size_(DimensionCount) const UINT* Dilations; + BOOL IncludePadding; +}; + +struct DML_MATRIX_MULTIPLY_INTEGER_TO_FLOAT_OPERATOR_DESC +{ + const DML_TENSOR_DESC* ATensor; + const DML_TENSOR_DESC* AScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* AZeroPointTensor; + const DML_TENSOR_DESC* BTensor; + const DML_TENSOR_DESC* BScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* BZeroPointTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + const DML_TENSOR_DESC* OutputTensor; +}; + +#endif // DML_TARGET_VERSION >= 0x6200 + +#if DML_TARGET_VERSION >= 0x6300 + +struct DML_MEAN_VARIANCE_NORMALIZATION2_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + _Maybenull_ const DML_TENSOR_DESC* ScaleTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT AxisCount; + _Field_size_(AxisCount) const UINT* Axes; + BOOL UseMean; + BOOL UseVariance; + FLOAT Epsilon; + _Maybenull_ const DML_OPERATOR_DESC* FusedActivation; +}; + +struct DML_MULTIHEAD_ATTENTION1_OPERATOR_DESC +{ + _Maybenull_ const DML_TENSOR_DESC* QueryTensor; + _Maybenull_ const DML_TENSOR_DESC* KeyTensor; + _Maybenull_ const DML_TENSOR_DESC* ValueTensor; + _Maybenull_ const DML_TENSOR_DESC* StackedQueryKeyTensor; + _Maybenull_ const DML_TENSOR_DESC* StackedKeyValueTensor; + _Maybenull_ const DML_TENSOR_DESC* StackedQueryKeyValueTensor; + _Maybenull_ const DML_TENSOR_DESC* BiasTensor; + _Maybenull_ const DML_TENSOR_DESC* MaskTensor; + _Maybenull_ const DML_TENSOR_DESC* RelativePositionBiasTensor; + _Maybenull_ const DML_TENSOR_DESC* PastKeyTensor; + _Maybenull_ const DML_TENSOR_DESC* PastValueTensor; + _Maybenull_ const DML_TENSOR_DESC* PastSequenceLengthsTensor; + const DML_TENSOR_DESC* OutputTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputPresentKeyTensor; + _Maybenull_ const DML_TENSOR_DESC* OutputPresentValueTensor; + FLOAT Scale; + FLOAT MaskFilterValue; + UINT QueryHeadCount; + UINT KeyValueHeadCount; + DML_MULTIHEAD_ATTENTION_MASK_TYPE MaskType; +}; + +struct DML_QUANTIZE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + DML_QUANTIZATION_TYPE QuantizationType; + UINT QuantizationTensorCount; + _Field_size_(QuantizationTensorCount) const DML_TENSOR_DESC* QuantizationTensors; + const DML_TENSOR_DESC* OutputTensor; +}; + +struct DML_DEQUANTIZE_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + DML_QUANTIZATION_TYPE QuantizationType; + UINT QuantizationTensorCount; + _Field_size_(QuantizationTensorCount) const DML_TENSOR_DESC* QuantizationTensors; + const DML_TENSOR_DESC* OutputTensor; +}; + +#endif // DML_TARGET_VERSION >= 0x6300 + +#if DML_TARGET_VERSION >= 0x6400 + +struct DML_RESAMPLE3_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + DML_INTERPOLATION_MODE InterpolationMode; + DML_AXIS_DIRECTION RoundingDirection; + UINT DimensionCount; + _Field_size_(DimensionCount) const FLOAT* Scales; + _Field_size_(DimensionCount) const FLOAT* InputPixelOffsets; + _Field_size_(DimensionCount) const FLOAT* OutputPixelOffsets; + BOOL Antialiased; +}; + +struct DML_FOLD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* WindowSizes; // Size of the extracted patch + _Field_size_(DimensionCount) const UINT* Strides; // Step size of the extracted patches + _Field_size_(DimensionCount) const UINT* Dilations; // Dialations of the extracted patch + _Field_size_(DimensionCount) const UINT* StartPadding; // Start padding of the "source tensor" + _Field_size_(DimensionCount) const UINT* EndPadding; // End padding of the "source tensor" +}; + +struct DML_UNFOLD_OPERATOR_DESC +{ + const DML_TENSOR_DESC* InputTensor; + const DML_TENSOR_DESC* OutputTensor; + UINT DimensionCount; + _Field_size_(DimensionCount) const UINT* WindowSizes; // Size of the extracted patch + _Field_size_(DimensionCount) const UINT* Strides; // Step size of the extracted patches + _Field_size_(DimensionCount) const UINT* Dilations; // Dialations of the extracted patch + _Field_size_(DimensionCount) const UINT* StartPadding; // Start padding of the "source tensor" + _Field_size_(DimensionCount) const UINT* EndPadding; // End padding of the "source tensor" +}; + +#endif // DML_TARGET_VERSION >= 0x6400 + +// =================================================================================================================== +// DML feature support queries +// =================================================================================================================== + +#if DML_TARGET_VERSION >= 0x2000 + +enum DML_FEATURE_LEVEL +{ + DML_FEATURE_LEVEL_1_0 = 0x1000, + DML_FEATURE_LEVEL_2_0 = 0x2000, + DML_FEATURE_LEVEL_2_1 = 0x2100, + DML_FEATURE_LEVEL_3_0 = 0x3000, + DML_FEATURE_LEVEL_3_1 = 0x3100, + DML_FEATURE_LEVEL_4_0 = 0x4000, + DML_FEATURE_LEVEL_4_1 = 0x4100, + DML_FEATURE_LEVEL_5_0 = 0x5000, + DML_FEATURE_LEVEL_5_1 = 0x5100, + DML_FEATURE_LEVEL_5_2 = 0x5200, + DML_FEATURE_LEVEL_6_0 = 0x6000, + DML_FEATURE_LEVEL_6_1 = 0x6100, + DML_FEATURE_LEVEL_6_2 = 0x6200, + DML_FEATURE_LEVEL_6_3 = 0x6300, + DML_FEATURE_LEVEL_6_4 = 0x6400, +}; + +#endif // DML_TARGET_VERSION >= 0x2000 + +enum DML_FEATURE +{ + DML_FEATURE_TENSOR_DATA_TYPE_SUPPORT, + +#if DML_TARGET_VERSION >= 0x2000 + DML_FEATURE_FEATURE_LEVELS, +#endif // DML_TARGET_VERSION >= 0x2000 +}; + +struct DML_FEATURE_QUERY_TENSOR_DATA_TYPE_SUPPORT +{ + DML_TENSOR_DATA_TYPE DataType; +}; + +struct DML_FEATURE_DATA_TENSOR_DATA_TYPE_SUPPORT +{ + BOOL IsSupported; +}; + +#if DML_TARGET_VERSION >= 0x2000 + +struct DML_FEATURE_QUERY_FEATURE_LEVELS +{ + UINT RequestedFeatureLevelCount; + _Field_size_(RequestedFeatureLevelCount) const DML_FEATURE_LEVEL* RequestedFeatureLevels; +}; + +struct DML_FEATURE_DATA_FEATURE_LEVELS +{ + DML_FEATURE_LEVEL MaxSupportedFeatureLevel; +}; + +#endif // DML_TARGET_VERSION >= 0x2000 + +// =================================================================================================================== +// DML device functions, enumerations, and structures +// =================================================================================================================== + +struct DML_BINDING_TABLE_DESC +{ + IDMLDispatchable* Dispatchable; + D3D12_CPU_DESCRIPTOR_HANDLE CPUDescriptorHandle; + D3D12_GPU_DESCRIPTOR_HANDLE GPUDescriptorHandle; + UINT SizeInDescriptors; +}; + +enum DML_EXECUTION_FLAGS +{ + DML_EXECUTION_FLAG_NONE = 0, + DML_EXECUTION_FLAG_ALLOW_HALF_PRECISION_COMPUTATION = 0x1, + DML_EXECUTION_FLAG_DISABLE_META_COMMANDS = 0x2, + DML_EXECUTION_FLAG_DESCRIPTORS_VOLATILE = 0x4, +}; + +DEFINE_ENUM_FLAG_OPERATORS(DML_EXECUTION_FLAGS) + +enum DML_CREATE_DEVICE_FLAGS +{ + DML_CREATE_DEVICE_FLAG_NONE = 0, + DML_CREATE_DEVICE_FLAG_DEBUG = 0x1, +}; + +DEFINE_ENUM_FLAG_OPERATORS(DML_CREATE_DEVICE_FLAGS) + +STDAPI DMLCreateDevice( + ID3D12Device* d3d12Device, + DML_CREATE_DEVICE_FLAGS flags, + REFIID riid, // Expected: IDMLDevice + _COM_Outptr_opt_ void** ppv + ); + +#if DML_TARGET_VERSION >= 0x2000 + +STDAPI DMLCreateDevice1( + ID3D12Device* d3d12Device, + DML_CREATE_DEVICE_FLAGS flags, + DML_FEATURE_LEVEL minimumFeatureLevel, + REFIID riid, // Expected: IDMLDevice + _COM_Outptr_opt_ void** ppv + ); + +#endif // DML_TARGET_VERSION >= 0x2000 + +// =================================================================================================================== +// DML object +// =================================================================================================================== + +interface DML_DECLARE_INTERFACE("c8263aac-9e0c-4a2d-9b8e-007521a3317c") IDMLObject : IUnknown +{ + IFACEMETHOD(GetPrivateData)( + REFGUID guid, + _Inout_ UINT* dataSize, + _Out_writes_bytes_opt_(*dataSize) void* data + ) = 0; + + IFACEMETHOD(SetPrivateData)( + REFGUID guid, + UINT dataSize, + _In_reads_bytes_opt_(dataSize) const void* data + ) = 0; + + IFACEMETHOD(SetPrivateDataInterface)( + REFGUID guid, + _In_opt_ IUnknown* data + ) = 0; + + IFACEMETHOD(SetName)( + PCWSTR name + ) = 0; +}; + +// =================================================================================================================== +// DML device +// =================================================================================================================== + +interface DML_DECLARE_INTERFACE("6dbd6437-96fd-423f-a98c-ae5e7c2a573f") IDMLDevice : IDMLObject +{ + IFACEMETHOD(CheckFeatureSupport)( + DML_FEATURE feature, + UINT featureQueryDataSize, + _In_reads_bytes_opt_(featureQueryDataSize) const void* featureQueryData, + UINT featureSupportDataSize, + _Out_writes_bytes_(featureSupportDataSize) void* featureSupportData + ) = 0; + + IFACEMETHOD(CreateOperator)( + const DML_OPERATOR_DESC* desc, + REFIID riid, // expected: IDMLOperator + _COM_Outptr_opt_ void** ppv + ) = 0; + + IFACEMETHOD(CompileOperator)( + IDMLOperator* op, + DML_EXECUTION_FLAGS flags, + REFIID riid, // expected: IDMLCompiledOperator + _COM_Outptr_opt_ void** ppv + ) = 0; + + IFACEMETHOD(CreateOperatorInitializer)( + UINT operatorCount, + _In_reads_opt_(operatorCount) IDMLCompiledOperator* const* operators, + REFIID riid, // expected: IDMLOperatorInitializer + _COM_Outptr_ void** ppv + ) = 0; + + IFACEMETHOD(CreateCommandRecorder)( + REFIID riid, // expected: IDMLCommandRecorder + _COM_Outptr_ void** ppv + ) = 0; + + IFACEMETHOD(CreateBindingTable)( + _In_opt_ const DML_BINDING_TABLE_DESC* desc, + REFIID riid, // expected: IDMLBindingTable + _COM_Outptr_ void** ppv + ) = 0; + + IFACEMETHOD(Evict)( + UINT count, + _In_reads_(count) IDMLPageable* const* ppObjects + ) = 0; + + IFACEMETHOD(MakeResident)( + UINT count, + _In_reads_(count) IDMLPageable* const* ppObjects + ) = 0; + + IFACEMETHOD(GetDeviceRemovedReason)( + ) = 0; + + IFACEMETHOD(GetParentDevice)( + REFIID riid, + _COM_Outptr_ void** ppv + ) = 0; +}; + + +// =================================================================================================================== +// DML device children +// =================================================================================================================== + +interface DML_DECLARE_INTERFACE("27e83142-8165-49e3-974e-2fd66e4cb69d") IDMLDeviceChild : IDMLObject +{ + IFACEMETHOD(GetDevice)( + REFIID riid, // expected: IDMLDevice + _COM_Outptr_ void** ppv + ) = 0; +}; + +interface DML_DECLARE_INTERFACE("b1ab0825-4542-4a4b-8617-6dde6e8f6201") IDMLPageable : IDMLDeviceChild +{ +}; + + +// =================================================================================================================== +// DML operator +// =================================================================================================================== + +interface DML_DECLARE_INTERFACE("26caae7a-3081-4633-9581-226fbe57695d") IDMLOperator : IDMLDeviceChild +{ +}; + + +// =================================================================================================================== +// DML dispatchable +// =================================================================================================================== + +struct DML_BINDING_PROPERTIES +{ + UINT RequiredDescriptorCount; + UINT64 TemporaryResourceSize; + UINT64 PersistentResourceSize; +}; + +interface DML_DECLARE_INTERFACE("dcb821a8-1039-441e-9f1c-b1759c2f3cec") IDMLDispatchable : IDMLPageable +{ + IFACEMETHOD_(DML_BINDING_PROPERTIES, GetBindingProperties)() = 0; +}; + + +// =================================================================================================================== +// DML compiled operator +// =================================================================================================================== + +interface DML_DECLARE_INTERFACE("6b15e56a-bf5c-4902-92d8-da3a650afea4") IDMLCompiledOperator : IDMLDispatchable +{ +}; + + +// =================================================================================================================== +// DML operator initializer +// =================================================================================================================== + +interface DML_DECLARE_INTERFACE("427c1113-435c-469c-8676-4d5dd072f813") IDMLOperatorInitializer : IDMLDispatchable +{ + IFACEMETHOD(Reset)( + UINT operatorCount, + _In_reads_opt_(operatorCount) IDMLCompiledOperator* const* operators + ) = 0; +}; + +// =================================================================================================================== +// DML binding table +// =================================================================================================================== + +enum DML_BINDING_TYPE +{ + DML_BINDING_TYPE_NONE, + DML_BINDING_TYPE_BUFFER, + DML_BINDING_TYPE_BUFFER_ARRAY, +}; + +struct DML_BINDING_DESC +{ + DML_BINDING_TYPE Type; + _Field_size_opt_(_Inexpressible_("Dependent on binding type")) const void* Desc; +}; + +struct DML_BUFFER_BINDING +{ + _Maybenull_ ID3D12Resource* Buffer; + UINT64 Offset; + UINT64 SizeInBytes; +}; + +struct DML_BUFFER_ARRAY_BINDING +{ + UINT BindingCount; + _Field_size_(BindingCount) const DML_BUFFER_BINDING* Bindings; +}; + +interface DML_DECLARE_INTERFACE("29c687dc-de74-4e3b-ab00-1168f2fc3cfc") IDMLBindingTable : IDMLDeviceChild +{ + IFACEMETHOD_(void, BindInputs)( + UINT bindingCount, + _In_reads_opt_(bindingCount) const DML_BINDING_DESC* bindings + ) = 0; + + IFACEMETHOD_(void, BindOutputs)( + UINT bindingCount, + _In_reads_opt_(bindingCount) const DML_BINDING_DESC* bindings + ) = 0; + + IFACEMETHOD_(void, BindTemporaryResource)( + _In_opt_ const DML_BINDING_DESC* binding + ) = 0; + + IFACEMETHOD_(void, BindPersistentResource)( + _In_opt_ const DML_BINDING_DESC* binding + ) = 0; + + IFACEMETHOD(Reset)( + _In_opt_ const DML_BINDING_TABLE_DESC* desc + ) = 0; +}; + + +// =================================================================================================================== +// DML command recorder +// =================================================================================================================== + +interface DML_DECLARE_INTERFACE("e6857a76-2e3e-4fdd-bff4-5d2ba10fb453") IDMLCommandRecorder : IDMLDeviceChild +{ + IFACEMETHOD_(void, RecordDispatch)( + ID3D12CommandList* commandList, + IDMLDispatchable* dispatchable, + IDMLBindingTable* bindings + ) = 0; +}; + + +// =================================================================================================================== +// DML debug +// =================================================================================================================== + +interface DML_DECLARE_INTERFACE("7d6f3ac9-394a-4ac3-92a7-390cc57a8217") IDMLDebugDevice : IUnknown +{ + IFACEMETHOD_(void, SetMuteDebugOutput)( + BOOL mute + ) = 0; +}; + + +// =================================================================================================================== +// DML graph +// =================================================================================================================== + +#if DML_TARGET_VERSION >= 0x2100 + +enum DML_GRAPH_EDGE_TYPE +{ + DML_GRAPH_EDGE_TYPE_INVALID, + DML_GRAPH_EDGE_TYPE_INPUT, + DML_GRAPH_EDGE_TYPE_OUTPUT, + DML_GRAPH_EDGE_TYPE_INTERMEDIATE, +}; + +struct DML_GRAPH_EDGE_DESC +{ + DML_GRAPH_EDGE_TYPE Type; + _Field_size_(_Inexpressible_("Dependent on edge type")) const void* Desc; +}; + +struct DML_INPUT_GRAPH_EDGE_DESC +{ + UINT GraphInputIndex; + UINT ToNodeIndex; + UINT ToNodeInputIndex; + _Field_z_ _Maybenull_ const char* Name; +}; + +struct DML_OUTPUT_GRAPH_EDGE_DESC +{ + UINT FromNodeIndex; + UINT FromNodeOutputIndex; + UINT GraphOutputIndex; + _Field_z_ _Maybenull_ const char* Name; +}; + +struct DML_INTERMEDIATE_GRAPH_EDGE_DESC +{ + UINT FromNodeIndex; + UINT FromNodeOutputIndex; + UINT ToNodeIndex; + UINT ToNodeInputIndex; + _Field_z_ _Maybenull_ const char* Name; +}; + +enum DML_GRAPH_NODE_TYPE +{ + DML_GRAPH_NODE_TYPE_INVALID, + DML_GRAPH_NODE_TYPE_OPERATOR, +#if DML_TARGET_VERSION >= 0x6200 + DML_GRAPH_NODE_TYPE_CONSTANT +#endif // DML_TARGET_VERSION >= 0x6200 +}; + +struct DML_GRAPH_NODE_DESC +{ + DML_GRAPH_NODE_TYPE Type; + _Field_size_(_Inexpressible_("Dependent on node type")) const void* Desc; +}; + +struct DML_OPERATOR_GRAPH_NODE_DESC +{ + IDMLOperator* Operator; + _Field_z_ _Maybenull_ const char* Name; +}; + +#if DML_TARGET_VERSION >= 0x6200 +struct DML_CONSTANT_DATA_GRAPH_NODE_DESC +{ + _Field_size_bytes_(DataSize) const void* Data; + SIZE_T DataSize; + _Field_z_ _Maybenull_ const char* Name; +}; +#endif // DML_TARGET_VERSION >= 0x6200 + +struct DML_GRAPH_DESC +{ + UINT InputCount; + UINT OutputCount; + + UINT NodeCount; + _Field_size_(NodeCount) const DML_GRAPH_NODE_DESC* Nodes; + + UINT InputEdgeCount; + _Field_size_opt_(InputEdgeCount) const DML_GRAPH_EDGE_DESC* InputEdges; + + UINT OutputEdgeCount; + _Field_size_(OutputEdgeCount) const DML_GRAPH_EDGE_DESC* OutputEdges; + + UINT IntermediateEdgeCount; + _Field_size_opt_(IntermediateEdgeCount) const DML_GRAPH_EDGE_DESC* IntermediateEdges; +}; + +interface DML_DECLARE_INTERFACE("a0884f9a-d2be-4355-aa5d-5901281ad1d2") IDMLDevice1 : IDMLDevice +{ + IFACEMETHOD(CompileGraph)( + const DML_GRAPH_DESC* desc, + DML_EXECUTION_FLAGS flags, + REFIID riid, // expected: IDMLCompiledOperator + _COM_Outptr_opt_ void** ppv + ) = 0; +}; + +#endif // DML_TARGET_VERSION >= 0x2100 + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) +#endif // DIRECTML_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXCollision.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXCollision.h new file mode 100644 index 0000000000000000000000000000000000000000..f5c0a4f00065020c4a3741af905234e982f46acf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXCollision.h @@ -0,0 +1,370 @@ +//------------------------------------------------------------------------------------- +// DirectXCollision.h -- C++ Collision Math library +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// +// http://go.microsoft.com/fwlink/?LinkID=615560 +//------------------------------------------------------------------------------------- + +#pragma once + +#include "DirectXMath.h" + +namespace DirectX +{ + + enum ContainmentType + { + DISJOINT = 0, + INTERSECTS = 1, + CONTAINS = 2 + }; + + enum PlaneIntersectionType + { + FRONT = 0, + INTERSECTING = 1, + BACK = 2 + }; + + struct BoundingBox; + struct BoundingOrientedBox; + struct BoundingFrustum; + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4324 4820) + // C4324: alignment padding warnings + // C4820: Off by default noise +#endif + + //------------------------------------------------------------------------------------- + // Bounding sphere + //------------------------------------------------------------------------------------- + struct BoundingSphere + { + XMFLOAT3 Center; // Center of the sphere. + float Radius; // Radius of the sphere. + + // Creators + BoundingSphere() noexcept : Center(0, 0, 0), Radius(1.f) {} + + BoundingSphere(const BoundingSphere&) = default; + BoundingSphere& operator=(const BoundingSphere&) = default; + + BoundingSphere(BoundingSphere&&) = default; + BoundingSphere& operator=(BoundingSphere&&) = default; + + constexpr BoundingSphere(_In_ const XMFLOAT3& center, _In_ float radius) noexcept + : Center(center), Radius(radius) {} + + // Methods + void XM_CALLCONV Transform(_Out_ BoundingSphere& Out, _In_ FXMMATRIX M) const noexcept; + void XM_CALLCONV Transform(_Out_ BoundingSphere& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation) const noexcept; + // Transform the sphere + + ContainmentType XM_CALLCONV Contains(_In_ FXMVECTOR Point) const noexcept; + ContainmentType XM_CALLCONV Contains(_In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) const noexcept; + ContainmentType Contains(_In_ const BoundingSphere& sh) const noexcept; + ContainmentType Contains(_In_ const BoundingBox& box) const noexcept; + ContainmentType Contains(_In_ const BoundingOrientedBox& box) const noexcept; + ContainmentType Contains(_In_ const BoundingFrustum& fr) const noexcept; + + bool Intersects(_In_ const BoundingSphere& sh) const noexcept; + bool Intersects(_In_ const BoundingBox& box) const noexcept; + bool Intersects(_In_ const BoundingOrientedBox& box) const noexcept; + bool Intersects(_In_ const BoundingFrustum& fr) const noexcept; + + bool XM_CALLCONV Intersects(_In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) const noexcept; + // Triangle-sphere test + + PlaneIntersectionType XM_CALLCONV Intersects(_In_ FXMVECTOR Plane) const noexcept; + // Plane-sphere test + + bool XM_CALLCONV Intersects(_In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float& Dist) const noexcept; + // Ray-sphere test + + ContainmentType XM_CALLCONV ContainedBy(_In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2, + _In_ GXMVECTOR Plane3, _In_ HXMVECTOR Plane4, _In_ HXMVECTOR Plane5) const noexcept; + // Test sphere against six planes (see BoundingFrustum::GetPlanes) + + // Static methods + static void CreateMerged(_Out_ BoundingSphere& Out, _In_ const BoundingSphere& S1, _In_ const BoundingSphere& S2) noexcept; + + static void CreateFromBoundingBox(_Out_ BoundingSphere& Out, _In_ const BoundingBox& box) noexcept; + static void CreateFromBoundingBox(_Out_ BoundingSphere& Out, _In_ const BoundingOrientedBox& box) noexcept; + + static void CreateFromPoints(_Out_ BoundingSphere& Out, _In_ size_t Count, + _In_reads_bytes_(sizeof(XMFLOAT3) + Stride * (Count - 1)) const XMFLOAT3* pPoints, _In_ size_t Stride) noexcept; + + static void CreateFromFrustum(_Out_ BoundingSphere& Out, _In_ const BoundingFrustum& fr) noexcept; + }; + + //------------------------------------------------------------------------------------- + // Axis-aligned bounding box + //------------------------------------------------------------------------------------- + struct BoundingBox + { + static constexpr size_t CORNER_COUNT = 8; + + XMFLOAT3 Center; // Center of the box. + XMFLOAT3 Extents; // Distance from the center to each side. + + // Creators + BoundingBox() noexcept : Center(0, 0, 0), Extents(1.f, 1.f, 1.f) {} + + BoundingBox(const BoundingBox&) = default; + BoundingBox& operator=(const BoundingBox&) = default; + + BoundingBox(BoundingBox&&) = default; + BoundingBox& operator=(BoundingBox&&) = default; + + constexpr BoundingBox(_In_ const XMFLOAT3& center, _In_ const XMFLOAT3& extents) noexcept + : Center(center), Extents(extents) {} + + // Methods + void XM_CALLCONV Transform(_Out_ BoundingBox& Out, _In_ FXMMATRIX M) const noexcept; + void XM_CALLCONV Transform(_Out_ BoundingBox& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation) const noexcept; + + void GetCorners(_Out_writes_(8) XMFLOAT3* Corners) const noexcept; + // Gets the 8 corners of the box + + ContainmentType XM_CALLCONV Contains(_In_ FXMVECTOR Point) const noexcept; + ContainmentType XM_CALLCONV Contains(_In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) const noexcept; + ContainmentType Contains(_In_ const BoundingSphere& sh) const noexcept; + ContainmentType Contains(_In_ const BoundingBox& box) const noexcept; + ContainmentType Contains(_In_ const BoundingOrientedBox& box) const noexcept; + ContainmentType Contains(_In_ const BoundingFrustum& fr) const noexcept; + + bool Intersects(_In_ const BoundingSphere& sh) const noexcept; + bool Intersects(_In_ const BoundingBox& box) const noexcept; + bool Intersects(_In_ const BoundingOrientedBox& box) const noexcept; + bool Intersects(_In_ const BoundingFrustum& fr) const noexcept; + + bool XM_CALLCONV Intersects(_In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) const noexcept; + // Triangle-Box test + + PlaneIntersectionType XM_CALLCONV Intersects(_In_ FXMVECTOR Plane) const noexcept; + // Plane-box test + + bool XM_CALLCONV Intersects(_In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float& Dist) const noexcept; + // Ray-Box test + + ContainmentType XM_CALLCONV ContainedBy(_In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2, + _In_ GXMVECTOR Plane3, _In_ HXMVECTOR Plane4, _In_ HXMVECTOR Plane5) const noexcept; + // Test box against six planes (see BoundingFrustum::GetPlanes) + + // Static methods + static void CreateMerged(_Out_ BoundingBox& Out, _In_ const BoundingBox& b1, _In_ const BoundingBox& b2) noexcept; + + static void CreateFromSphere(_Out_ BoundingBox& Out, _In_ const BoundingSphere& sh) noexcept; + + static void XM_CALLCONV CreateFromPoints(_Out_ BoundingBox& Out, _In_ FXMVECTOR pt1, _In_ FXMVECTOR pt2) noexcept; + static void CreateFromPoints(_Out_ BoundingBox& Out, _In_ size_t Count, + _In_reads_bytes_(sizeof(XMFLOAT3) + Stride * (Count - 1)) const XMFLOAT3* pPoints, _In_ size_t Stride) noexcept; + }; + + //------------------------------------------------------------------------------------- + // Oriented bounding box + //------------------------------------------------------------------------------------- + struct BoundingOrientedBox + { + static constexpr size_t CORNER_COUNT = 8; + + XMFLOAT3 Center; // Center of the box. + XMFLOAT3 Extents; // Distance from the center to each side. + XMFLOAT4 Orientation; // Unit quaternion representing rotation (box -> world). + + // Creators + BoundingOrientedBox() noexcept : Center(0, 0, 0), Extents(1.f, 1.f, 1.f), Orientation(0, 0, 0, 1.f) {} + + BoundingOrientedBox(const BoundingOrientedBox&) = default; + BoundingOrientedBox& operator=(const BoundingOrientedBox&) = default; + + BoundingOrientedBox(BoundingOrientedBox&&) = default; + BoundingOrientedBox& operator=(BoundingOrientedBox&&) = default; + + constexpr BoundingOrientedBox(_In_ const XMFLOAT3& center, _In_ const XMFLOAT3& extents, _In_ const XMFLOAT4& orientation) noexcept + : Center(center), Extents(extents), Orientation(orientation) {} + + // Methods + void XM_CALLCONV Transform(_Out_ BoundingOrientedBox& Out, _In_ FXMMATRIX M) const noexcept; + void XM_CALLCONV Transform(_Out_ BoundingOrientedBox& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation) const noexcept; + + void GetCorners(_Out_writes_(8) XMFLOAT3* Corners) const noexcept; + // Gets the 8 corners of the box + + ContainmentType XM_CALLCONV Contains(_In_ FXMVECTOR Point) const noexcept; + ContainmentType XM_CALLCONV Contains(_In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) const noexcept; + ContainmentType Contains(_In_ const BoundingSphere& sh) const noexcept; + ContainmentType Contains(_In_ const BoundingBox& box) const noexcept; + ContainmentType Contains(_In_ const BoundingOrientedBox& box) const noexcept; + ContainmentType Contains(_In_ const BoundingFrustum& fr) const noexcept; + + bool Intersects(_In_ const BoundingSphere& sh) const noexcept; + bool Intersects(_In_ const BoundingBox& box) const noexcept; + bool Intersects(_In_ const BoundingOrientedBox& box) const noexcept; + bool Intersects(_In_ const BoundingFrustum& fr) const noexcept; + + bool XM_CALLCONV Intersects(_In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) const noexcept; + // Triangle-OrientedBox test + + PlaneIntersectionType XM_CALLCONV Intersects(_In_ FXMVECTOR Plane) const noexcept; + // Plane-OrientedBox test + + bool XM_CALLCONV Intersects(_In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float& Dist) const noexcept; + // Ray-OrientedBox test + + ContainmentType XM_CALLCONV ContainedBy(_In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2, + _In_ GXMVECTOR Plane3, _In_ HXMVECTOR Plane4, _In_ HXMVECTOR Plane5) const noexcept; + // Test OrientedBox against six planes (see BoundingFrustum::GetPlanes) + + // Static methods + static void CreateFromBoundingBox(_Out_ BoundingOrientedBox& Out, _In_ const BoundingBox& box) noexcept; + + static void CreateFromPoints(_Out_ BoundingOrientedBox& Out, _In_ size_t Count, + _In_reads_bytes_(sizeof(XMFLOAT3) + Stride * (Count - 1)) const XMFLOAT3* pPoints, _In_ size_t Stride) noexcept; + }; + + //------------------------------------------------------------------------------------- + // Bounding frustum + //------------------------------------------------------------------------------------- + struct BoundingFrustum + { + static constexpr size_t CORNER_COUNT = 8; + + XMFLOAT3 Origin; // Origin of the frustum (and projection). + XMFLOAT4 Orientation; // Quaternion representing rotation. + + float RightSlope; // Positive X (X/Z) + float LeftSlope; // Negative X + float TopSlope; // Positive Y (Y/Z) + float BottomSlope; // Negative Y + float Near, Far; // Z of the near plane and far plane. + + // Creators + BoundingFrustum() noexcept : + Origin(0, 0, 0), Orientation(0, 0, 0, 1.f), RightSlope(1.f), LeftSlope(-1.f), + TopSlope(1.f), BottomSlope(-1.f), Near(0), Far(1.f) {} + + BoundingFrustum(const BoundingFrustum&) = default; + BoundingFrustum& operator=(const BoundingFrustum&) = default; + + BoundingFrustum(BoundingFrustum&&) = default; + BoundingFrustum& operator=(BoundingFrustum&&) = default; + + constexpr BoundingFrustum(_In_ const XMFLOAT3& origin, _In_ const XMFLOAT4& orientation, + _In_ float rightSlope, _In_ float leftSlope, _In_ float topSlope, _In_ float bottomSlope, + _In_ float nearPlane, _In_ float farPlane) noexcept + : Origin(origin), Orientation(orientation), + RightSlope(rightSlope), LeftSlope(leftSlope), TopSlope(topSlope), BottomSlope(bottomSlope), + Near(nearPlane), Far(farPlane) {} + BoundingFrustum(_In_ CXMMATRIX Projection, bool rhcoords = false) noexcept; + + // Methods + void XM_CALLCONV Transform(_Out_ BoundingFrustum& Out, _In_ FXMMATRIX M) const noexcept; + void XM_CALLCONV Transform(_Out_ BoundingFrustum& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation) const noexcept; + + void GetCorners(_Out_writes_(8) XMFLOAT3* Corners) const noexcept; + // Gets the 8 corners of the frustum + + ContainmentType XM_CALLCONV Contains(_In_ FXMVECTOR Point) const noexcept; + ContainmentType XM_CALLCONV Contains(_In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) const noexcept; + ContainmentType Contains(_In_ const BoundingSphere& sp) const noexcept; + ContainmentType Contains(_In_ const BoundingBox& box) const noexcept; + ContainmentType Contains(_In_ const BoundingOrientedBox& box) const noexcept; + ContainmentType Contains(_In_ const BoundingFrustum& fr) const noexcept; + // Frustum-Frustum test + + bool Intersects(_In_ const BoundingSphere& sh) const noexcept; + bool Intersects(_In_ const BoundingBox& box) const noexcept; + bool Intersects(_In_ const BoundingOrientedBox& box) const noexcept; + bool Intersects(_In_ const BoundingFrustum& fr) const noexcept; + + bool XM_CALLCONV Intersects(_In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) const noexcept; + // Triangle-Frustum test + + PlaneIntersectionType XM_CALLCONV Intersects(_In_ FXMVECTOR Plane) const noexcept; + // Plane-Frustum test + + bool XM_CALLCONV Intersects(_In_ FXMVECTOR rayOrigin, _In_ FXMVECTOR Direction, _Out_ float& Dist) const noexcept; + // Ray-Frustum test + + ContainmentType XM_CALLCONV ContainedBy(_In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2, + _In_ GXMVECTOR Plane3, _In_ HXMVECTOR Plane4, _In_ HXMVECTOR Plane5) const noexcept; + // Test frustum against six planes (see BoundingFrustum::GetPlanes) + + void GetPlanes(_Out_opt_ XMVECTOR* NearPlane, _Out_opt_ XMVECTOR* FarPlane, _Out_opt_ XMVECTOR* RightPlane, + _Out_opt_ XMVECTOR* LeftPlane, _Out_opt_ XMVECTOR* TopPlane, _Out_opt_ XMVECTOR* BottomPlane) const noexcept; + // Create 6 Planes representation of Frustum + + // Static methods + static void XM_CALLCONV CreateFromMatrix(_Out_ BoundingFrustum& Out, _In_ FXMMATRIX Projection, bool rhcoords = false) noexcept; + }; + + //----------------------------------------------------------------------------- + // Triangle intersection testing routines. + //----------------------------------------------------------------------------- + namespace TriangleTests + { + bool XM_CALLCONV Intersects(_In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _In_ FXMVECTOR V0, _In_ GXMVECTOR V1, _In_ HXMVECTOR V2, _Out_ float& Dist) noexcept; + // Ray-Triangle + + bool XM_CALLCONV Intersects(_In_ FXMVECTOR A0, _In_ FXMVECTOR A1, _In_ FXMVECTOR A2, _In_ GXMVECTOR B0, _In_ HXMVECTOR B1, _In_ HXMVECTOR B2) noexcept; + // Triangle-Triangle + + PlaneIntersectionType XM_CALLCONV Intersects(_In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2, _In_ GXMVECTOR Plane) noexcept; + // Plane-Triangle + + ContainmentType XM_CALLCONV ContainedBy(_In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2, + _In_ GXMVECTOR Plane0, _In_ HXMVECTOR Plane1, _In_ HXMVECTOR Plane2, + _In_ CXMVECTOR Plane3, _In_ CXMVECTOR Plane4, _In_ CXMVECTOR Plane5) noexcept; + // Test a triangle against six planes at once (see BoundingFrustum::GetPlanes) + } + +#ifdef _MSC_VER +#pragma warning(pop) +#endif + + /**************************************************************************** + * + * Implementation + * + ****************************************************************************/ + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4068 4365 4616 6001) + // C4068/4616: ignore unknown pragmas + // C4365: Off by default noise + // C6001: False positives +#endif + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes") +#pragma prefast(disable : 26495, "Union initialization confuses /analyze") +#endif + +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wfloat-equal" +#pragma clang diagnostic ignored "-Wunknown-warning-option" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" +#endif + +#include "DirectXCollision.inl" + +#ifdef __clang__ +#pragma clang diagnostic pop +#endif +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +} // namespace DirectX + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXCollision.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXCollision.inl new file mode 100644 index 0000000000000000000000000000000000000000..41b7a00001bac07177e262701ee9330807517d32 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXCollision.inl @@ -0,0 +1,4816 @@ +//------------------------------------------------------------------------------------- +// DirectXCollision.inl -- C++ Collision Math library +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// +// http://go.microsoft.com/fwlink/?LinkID=615560 +//------------------------------------------------------------------------------------- + +#pragma once + +XMGLOBALCONST XMVECTORF32 g_BoxOffset[8] = +{ + { { { -1.0f, -1.0f, 1.0f, 0.0f } } }, + { { { 1.0f, -1.0f, 1.0f, 0.0f } } }, + { { { 1.0f, 1.0f, 1.0f, 0.0f } } }, + { { { -1.0f, 1.0f, 1.0f, 0.0f } } }, + { { { -1.0f, -1.0f, -1.0f, 0.0f } } }, + { { { 1.0f, -1.0f, -1.0f, 0.0f } } }, + { { { 1.0f, 1.0f, -1.0f, 0.0f } } }, + { { { -1.0f, 1.0f, -1.0f, 0.0f } } }, +}; + +XMGLOBALCONST XMVECTORF32 g_RayEpsilon = { { { 1e-20f, 1e-20f, 1e-20f, 1e-20f } } }; +XMGLOBALCONST XMVECTORF32 g_RayNegEpsilon = { { { -1e-20f, -1e-20f, -1e-20f, -1e-20f } } }; +XMGLOBALCONST XMVECTORF32 g_FltMin = { { { -FLT_MAX, -FLT_MAX, -FLT_MAX, -FLT_MAX } } }; +XMGLOBALCONST XMVECTORF32 g_FltMax = { { { FLT_MAX, FLT_MAX, FLT_MAX, FLT_MAX } } }; + +namespace Internal +{ + + //----------------------------------------------------------------------------- + // Return true if any of the elements of a 3 vector are equal to 0xffffffff. + // Slightly more efficient than using XMVector3EqualInt. + //----------------------------------------------------------------------------- + inline bool XMVector3AnyTrue(_In_ FXMVECTOR V) noexcept + { + // Duplicate the fourth element from the first element. + XMVECTOR C = XMVectorSwizzle(V); + + return XMComparisonAnyTrue(XMVector4EqualIntR(C, XMVectorTrueInt())); + } + + + //----------------------------------------------------------------------------- + // Return true if all of the elements of a 3 vector are equal to 0xffffffff. + // Slightly more efficient than using XMVector3EqualInt. + //----------------------------------------------------------------------------- + inline bool XMVector3AllTrue(_In_ FXMVECTOR V) noexcept + { + // Duplicate the fourth element from the first element. + XMVECTOR C = XMVectorSwizzle(V); + + return XMComparisonAllTrue(XMVector4EqualIntR(C, XMVectorTrueInt())); + } + +#if defined(_PREFAST_) || !defined(NDEBUG) + + XMGLOBALCONST XMVECTORF32 g_UnitVectorEpsilon = { { { 1.0e-4f, 1.0e-4f, 1.0e-4f, 1.0e-4f } } }; + XMGLOBALCONST XMVECTORF32 g_UnitQuaternionEpsilon = { { { 1.0e-4f, 1.0e-4f, 1.0e-4f, 1.0e-4f } } }; + XMGLOBALCONST XMVECTORF32 g_UnitPlaneEpsilon = { { { 1.0e-4f, 1.0e-4f, 1.0e-4f, 1.0e-4f } } }; + + //----------------------------------------------------------------------------- + // Return true if the vector is a unit vector (length == 1). + //----------------------------------------------------------------------------- + inline bool XMVector3IsUnit(_In_ FXMVECTOR V) noexcept + { + XMVECTOR Difference = XMVectorSubtract(XMVector3Length(V), XMVectorSplatOne()); + return XMVector4Less(XMVectorAbs(Difference), g_UnitVectorEpsilon); + } + + //----------------------------------------------------------------------------- + // Return true if the quaterion is a unit quaternion. + //----------------------------------------------------------------------------- + inline bool XMQuaternionIsUnit(_In_ FXMVECTOR Q) noexcept + { + XMVECTOR Difference = XMVectorSubtract(XMVector4Length(Q), XMVectorSplatOne()); + return XMVector4Less(XMVectorAbs(Difference), g_UnitQuaternionEpsilon); + } + + //----------------------------------------------------------------------------- + // Return true if the plane is a unit plane. + //----------------------------------------------------------------------------- + inline bool XMPlaneIsUnit(_In_ FXMVECTOR Plane) noexcept + { + XMVECTOR Difference = XMVectorSubtract(XMVector3Length(Plane), XMVectorSplatOne()); + return XMVector4Less(XMVectorAbs(Difference), g_UnitPlaneEpsilon); + } + +#endif // _PREFAST_ || !NDEBUG + + //----------------------------------------------------------------------------- + inline XMVECTOR XMPlaneTransform(_In_ FXMVECTOR Plane, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation) noexcept + { + XMVECTOR vNormal = XMVector3Rotate(Plane, Rotation); + XMVECTOR vD = XMVectorSubtract(XMVectorSplatW(Plane), XMVector3Dot(vNormal, Translation)); + + return XMVectorInsert<0, 0, 0, 0, 1>(vNormal, vD); + } + + //----------------------------------------------------------------------------- + // Return the point on the line segement (S1, S2) nearest the point P. + //----------------------------------------------------------------------------- + inline XMVECTOR PointOnLineSegmentNearestPoint(_In_ FXMVECTOR S1, _In_ FXMVECTOR S2, _In_ FXMVECTOR P) noexcept + { + XMVECTOR Dir = XMVectorSubtract(S2, S1); + XMVECTOR Projection = XMVectorSubtract(XMVector3Dot(P, Dir), XMVector3Dot(S1, Dir)); + XMVECTOR LengthSq = XMVector3Dot(Dir, Dir); + + XMVECTOR t = XMVectorMultiply(Projection, XMVectorReciprocal(LengthSq)); + XMVECTOR Point = XMVectorMultiplyAdd(t, Dir, S1); + + // t < 0 + XMVECTOR SelectS1 = XMVectorLess(Projection, XMVectorZero()); + Point = XMVectorSelect(Point, S1, SelectS1); + + // t > 1 + XMVECTOR SelectS2 = XMVectorGreater(Projection, LengthSq); + Point = XMVectorSelect(Point, S2, SelectS2); + + return Point; + } + + //----------------------------------------------------------------------------- + // Test if the point (P) on the plane of the triangle is inside the triangle + // (V0, V1, V2). + //----------------------------------------------------------------------------- + inline XMVECTOR XM_CALLCONV PointOnPlaneInsideTriangle(_In_ FXMVECTOR P, _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ GXMVECTOR V2) noexcept + { + // Compute the triangle normal. + XMVECTOR N = XMVector3Cross(XMVectorSubtract(V2, V0), XMVectorSubtract(V1, V0)); + + // Compute the cross products of the vector from the base of each edge to + // the point with each edge vector. + XMVECTOR C0 = XMVector3Cross(XMVectorSubtract(P, V0), XMVectorSubtract(V1, V0)); + XMVECTOR C1 = XMVector3Cross(XMVectorSubtract(P, V1), XMVectorSubtract(V2, V1)); + XMVECTOR C2 = XMVector3Cross(XMVectorSubtract(P, V2), XMVectorSubtract(V0, V2)); + + // If the cross product points in the same direction as the normal the the + // point is inside the edge (it is zero if is on the edge). + XMVECTOR Zero = XMVectorZero(); + XMVECTOR Inside0 = XMVectorGreaterOrEqual(XMVector3Dot(C0, N), Zero); + XMVECTOR Inside1 = XMVectorGreaterOrEqual(XMVector3Dot(C1, N), Zero); + XMVECTOR Inside2 = XMVectorGreaterOrEqual(XMVector3Dot(C2, N), Zero); + + // If the point inside all of the edges it is inside. + return XMVectorAndInt(XMVectorAndInt(Inside0, Inside1), Inside2); + } + + //----------------------------------------------------------------------------- + inline bool SolveCubic(_In_ float e, _In_ float f, _In_ float g, _Out_ float* t, _Out_ float* u, _Out_ float* v) noexcept + { + float p, q, h, rc, d, theta, costh3, sinth3; + + p = f - e * e / 3.0f; + q = g - e * f / 3.0f + e * e * e * 2.0f / 27.0f; + h = q * q / 4.0f + p * p * p / 27.0f; + + if (h > 0) + { + *t = *u = *v = 0.f; + return false; // only one real root + } + + if ((h == 0) && (q == 0)) // all the same root + { + *t = -e / 3; + *u = -e / 3; + *v = -e / 3; + + return true; + } + + d = sqrtf(q * q / 4.0f - h); + if (d < 0) + rc = -powf(-d, 1.0f / 3.0f); + else + rc = powf(d, 1.0f / 3.0f); + + theta = XMScalarACos(-q / (2.0f * d)); + costh3 = XMScalarCos(theta / 3.0f); + sinth3 = sqrtf(3.0f) * XMScalarSin(theta / 3.0f); + *t = 2.0f * rc * costh3 - e / 3.0f; + *u = -rc * (costh3 + sinth3) - e / 3.0f; + *v = -rc * (costh3 - sinth3) - e / 3.0f; + + return true; + } + + //----------------------------------------------------------------------------- + inline XMVECTOR CalculateEigenVector(_In_ float m11, _In_ float m12, _In_ float m13, + _In_ float m22, _In_ float m23, _In_ float m33, _In_ float e) noexcept + { + float fTmp[3]; + fTmp[0] = m12 * m23 - m13 * (m22 - e); + fTmp[1] = m13 * m12 - m23 * (m11 - e); + fTmp[2] = (m11 - e) * (m22 - e) - m12 * m12; + + XMVECTOR vTmp = XMLoadFloat3(reinterpret_cast(fTmp)); + + if (XMVector3Equal(vTmp, XMVectorZero())) // planar or linear + { + float f1, f2, f3; + + // we only have one equation - find a valid one + if ((m11 - e != 0) || (m12 != 0) || (m13 != 0)) + { + f1 = m11 - e; f2 = m12; f3 = m13; + } + else if ((m12 != 0) || (m22 - e != 0) || (m23 != 0)) + { + f1 = m12; f2 = m22 - e; f3 = m23; + } + else if ((m13 != 0) || (m23 != 0) || (m33 - e != 0)) + { + f1 = m13; f2 = m23; f3 = m33 - e; + } + else + { + // error, we'll just make something up - we have NO context + f1 = 1.0f; f2 = 0.0f; f3 = 0.0f; + } + + if (f1 == 0) + vTmp = XMVectorSetX(vTmp, 0.0f); + else + vTmp = XMVectorSetX(vTmp, 1.0f); + + if (f2 == 0) + vTmp = XMVectorSetY(vTmp, 0.0f); + else + vTmp = XMVectorSetY(vTmp, 1.0f); + + if (f3 == 0) + { + vTmp = XMVectorSetZ(vTmp, 0.0f); + // recalculate y to make equation work + if (m12 != 0) + vTmp = XMVectorSetY(vTmp, -f1 / f2); + } + else + { + vTmp = XMVectorSetZ(vTmp, (f2 - f1) / f3); + } + } + + if (XMVectorGetX(XMVector3LengthSq(vTmp)) > 1e-5f) + { + return XMVector3Normalize(vTmp); + } + else + { + // Multiply by a value large enough to make the vector non-zero. + vTmp = XMVectorScale(vTmp, 1e5f); + return XMVector3Normalize(vTmp); + } + } + + //----------------------------------------------------------------------------- + inline bool CalculateEigenVectors(_In_ float m11, _In_ float m12, _In_ float m13, + _In_ float m22, _In_ float m23, _In_ float m33, + _In_ float e1, _In_ float e2, _In_ float e3, + _Out_ XMVECTOR* pV1, _Out_ XMVECTOR* pV2, _Out_ XMVECTOR* pV3) noexcept + { + *pV1 = DirectX::Internal::CalculateEigenVector(m11, m12, m13, m22, m23, m33, e1); + *pV2 = DirectX::Internal::CalculateEigenVector(m11, m12, m13, m22, m23, m33, e2); + *pV3 = DirectX::Internal::CalculateEigenVector(m11, m12, m13, m22, m23, m33, e3); + + bool v1z = false; + bool v2z = false; + bool v3z = false; + + XMVECTOR Zero = XMVectorZero(); + + if (XMVector3Equal(*pV1, Zero)) + v1z = true; + + if (XMVector3Equal(*pV2, Zero)) + v2z = true; + + if (XMVector3Equal(*pV3, Zero)) + v3z = true; + + bool e12 = (fabsf(XMVectorGetX(XMVector3Dot(*pV1, *pV2))) > 0.1f); // check for non-orthogonal vectors + bool e13 = (fabsf(XMVectorGetX(XMVector3Dot(*pV1, *pV3))) > 0.1f); + bool e23 = (fabsf(XMVectorGetX(XMVector3Dot(*pV2, *pV3))) > 0.1f); + + if ((v1z && v2z && v3z) || (e12 && e13 && e23) || + (e12 && v3z) || (e13 && v2z) || (e23 && v1z)) // all eigenvectors are 0- any basis set + { + *pV1 = g_XMIdentityR0.v; + *pV2 = g_XMIdentityR1.v; + *pV3 = g_XMIdentityR2.v; + return true; + } + + if (v1z && v2z) + { + XMVECTOR vTmp = XMVector3Cross(g_XMIdentityR1, *pV3); + if (XMVectorGetX(XMVector3LengthSq(vTmp)) < 1e-5f) + { + vTmp = XMVector3Cross(g_XMIdentityR0, *pV3); + } + *pV1 = XMVector3Normalize(vTmp); + *pV2 = XMVector3Cross(*pV3, *pV1); + return true; + } + + if (v3z && v1z) + { + XMVECTOR vTmp = XMVector3Cross(g_XMIdentityR1, *pV2); + if (XMVectorGetX(XMVector3LengthSq(vTmp)) < 1e-5f) + { + vTmp = XMVector3Cross(g_XMIdentityR0, *pV2); + } + *pV3 = XMVector3Normalize(vTmp); + *pV1 = XMVector3Cross(*pV2, *pV3); + return true; + } + + if (v2z && v3z) + { + XMVECTOR vTmp = XMVector3Cross(g_XMIdentityR1, *pV1); + if (XMVectorGetX(XMVector3LengthSq(vTmp)) < 1e-5f) + { + vTmp = XMVector3Cross(g_XMIdentityR0, *pV1); + } + *pV2 = XMVector3Normalize(vTmp); + *pV3 = XMVector3Cross(*pV1, *pV2); + return true; + } + + if ((v1z) || e12) + { + *pV1 = XMVector3Cross(*pV2, *pV3); + return true; + } + + if ((v2z) || e23) + { + *pV2 = XMVector3Cross(*pV3, *pV1); + return true; + } + + if ((v3z) || e13) + { + *pV3 = XMVector3Cross(*pV1, *pV2); + return true; + } + + return true; + } + + //----------------------------------------------------------------------------- + inline bool CalculateEigenVectorsFromCovarianceMatrix(_In_ float Cxx, _In_ float Cyy, _In_ float Czz, + _In_ float Cxy, _In_ float Cxz, _In_ float Cyz, + _Out_ XMVECTOR* pV1, _Out_ XMVECTOR* pV2, _Out_ XMVECTOR* pV3) noexcept + { + // Calculate the eigenvalues by solving a cubic equation. + float e = -(Cxx + Cyy + Czz); + float f = Cxx * Cyy + Cyy * Czz + Czz * Cxx - Cxy * Cxy - Cxz * Cxz - Cyz * Cyz; + float g = Cxy * Cxy * Czz + Cxz * Cxz * Cyy + Cyz * Cyz * Cxx - Cxy * Cyz * Cxz * 2.0f - Cxx * Cyy * Czz; + + float ev1, ev2, ev3; + if (!DirectX::Internal::SolveCubic(e, f, g, &ev1, &ev2, &ev3)) + { + // set them to arbitrary orthonormal basis set + *pV1 = g_XMIdentityR0.v; + *pV2 = g_XMIdentityR1.v; + *pV3 = g_XMIdentityR2.v; + return false; + } + + return DirectX::Internal::CalculateEigenVectors(Cxx, Cxy, Cxz, Cyy, Cyz, Czz, ev1, ev2, ev3, pV1, pV2, pV3); + } + + //----------------------------------------------------------------------------- + inline void XM_CALLCONV FastIntersectTrianglePlane( + FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2, + GXMVECTOR Plane, + XMVECTOR& Outside, XMVECTOR& Inside) noexcept + { + // Plane0 + XMVECTOR Dist0 = XMVector4Dot(V0, Plane); + XMVECTOR Dist1 = XMVector4Dot(V1, Plane); + XMVECTOR Dist2 = XMVector4Dot(V2, Plane); + + XMVECTOR MinDist = XMVectorMin(Dist0, Dist1); + MinDist = XMVectorMin(MinDist, Dist2); + + XMVECTOR MaxDist = XMVectorMax(Dist0, Dist1); + MaxDist = XMVectorMax(MaxDist, Dist2); + + XMVECTOR Zero = XMVectorZero(); + + // Outside the plane? + Outside = XMVectorGreater(MinDist, Zero); + + // Fully inside the plane? + Inside = XMVectorLess(MaxDist, Zero); + } + + //----------------------------------------------------------------------------- + inline void FastIntersectSpherePlane(_In_ FXMVECTOR Center, _In_ FXMVECTOR Radius, _In_ FXMVECTOR Plane, + _Out_ XMVECTOR& Outside, _Out_ XMVECTOR& Inside) noexcept + { + XMVECTOR Dist = XMVector4Dot(Center, Plane); + + // Outside the plane? + Outside = XMVectorGreater(Dist, Radius); + + // Fully inside the plane? + Inside = XMVectorLess(Dist, XMVectorNegate(Radius)); + } + + //----------------------------------------------------------------------------- + inline void FastIntersectAxisAlignedBoxPlane(_In_ FXMVECTOR Center, _In_ FXMVECTOR Extents, _In_ FXMVECTOR Plane, + _Out_ XMVECTOR& Outside, _Out_ XMVECTOR& Inside) noexcept + { + // Compute the distance to the center of the box. + XMVECTOR Dist = XMVector4Dot(Center, Plane); + + // Project the axes of the box onto the normal of the plane. Half the + // length of the projection (sometime called the "radius") is equal to + // h(u) * abs(n dot b(u))) + h(v) * abs(n dot b(v)) + h(w) * abs(n dot b(w)) + // where h(i) are extents of the box, n is the plane normal, and b(i) are the + // axes of the box. In this case b(i) = [(1,0,0), (0,1,0), (0,0,1)]. + XMVECTOR Radius = XMVector3Dot(Extents, XMVectorAbs(Plane)); + + // Outside the plane? + Outside = XMVectorGreater(Dist, Radius); + + // Fully inside the plane? + Inside = XMVectorLess(Dist, XMVectorNegate(Radius)); + } + + //----------------------------------------------------------------------------- + inline void XM_CALLCONV FastIntersectOrientedBoxPlane( + _In_ FXMVECTOR Center, _In_ FXMVECTOR Extents, _In_ FXMVECTOR Axis0, + _In_ GXMVECTOR Axis1, + _In_ HXMVECTOR Axis2, _In_ HXMVECTOR Plane, + _Out_ XMVECTOR& Outside, _Out_ XMVECTOR& Inside) noexcept + { + // Compute the distance to the center of the box. + XMVECTOR Dist = XMVector4Dot(Center, Plane); + + // Project the axes of the box onto the normal of the plane. Half the + // length of the projection (sometime called the "radius") is equal to + // h(u) * abs(n dot b(u))) + h(v) * abs(n dot b(v)) + h(w) * abs(n dot b(w)) + // where h(i) are extents of the box, n is the plane normal, and b(i) are the + // axes of the box. + XMVECTOR Radius = XMVector3Dot(Plane, Axis0); + Radius = XMVectorInsert<0, 0, 1, 0, 0>(Radius, XMVector3Dot(Plane, Axis1)); + Radius = XMVectorInsert<0, 0, 0, 1, 0>(Radius, XMVector3Dot(Plane, Axis2)); + Radius = XMVector3Dot(Extents, XMVectorAbs(Radius)); + + // Outside the plane? + Outside = XMVectorGreater(Dist, Radius); + + // Fully inside the plane? + Inside = XMVectorLess(Dist, XMVectorNegate(Radius)); + } + + //----------------------------------------------------------------------------- + inline void XM_CALLCONV FastIntersectFrustumPlane( + _In_ FXMVECTOR Point0, _In_ FXMVECTOR Point1, _In_ FXMVECTOR Point2, + _In_ GXMVECTOR Point3, + _In_ HXMVECTOR Point4, _In_ HXMVECTOR Point5, + _In_ CXMVECTOR Point6, _In_ CXMVECTOR Point7, _In_ CXMVECTOR Plane, + _Out_ XMVECTOR& Outside, _Out_ XMVECTOR& Inside) noexcept + { + // Find the min/max projection of the frustum onto the plane normal. + XMVECTOR Min, Max, Dist; + + Min = Max = XMVector3Dot(Plane, Point0); + + Dist = XMVector3Dot(Plane, Point1); + Min = XMVectorMin(Min, Dist); + Max = XMVectorMax(Max, Dist); + + Dist = XMVector3Dot(Plane, Point2); + Min = XMVectorMin(Min, Dist); + Max = XMVectorMax(Max, Dist); + + Dist = XMVector3Dot(Plane, Point3); + Min = XMVectorMin(Min, Dist); + Max = XMVectorMax(Max, Dist); + + Dist = XMVector3Dot(Plane, Point4); + Min = XMVectorMin(Min, Dist); + Max = XMVectorMax(Max, Dist); + + Dist = XMVector3Dot(Plane, Point5); + Min = XMVectorMin(Min, Dist); + Max = XMVectorMax(Max, Dist); + + Dist = XMVector3Dot(Plane, Point6); + Min = XMVectorMin(Min, Dist); + Max = XMVectorMax(Max, Dist); + + Dist = XMVector3Dot(Plane, Point7); + Min = XMVectorMin(Min, Dist); + Max = XMVectorMax(Max, Dist); + + XMVECTOR PlaneDist = XMVectorNegate(XMVectorSplatW(Plane)); + + // Outside the plane? + Outside = XMVectorGreater(Min, PlaneDist); + + // Fully inside the plane? + Inside = XMVectorLess(Max, PlaneDist); + } + +} // namespace Internal + + +/**************************************************************************** + * + * BoundingSphere + * + ****************************************************************************/ + + //----------------------------------------------------------------------------- + // Transform a sphere by an angle preserving transform. + //----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void XM_CALLCONV BoundingSphere::Transform(BoundingSphere& Out, FXMMATRIX M) const noexcept +{ + // Load the center of the sphere. + XMVECTOR vCenter = XMLoadFloat3(&Center); + + // Transform the center of the sphere. + XMVECTOR C = XMVector3Transform(vCenter, M); + + XMVECTOR dX = XMVector3Dot(M.r[0], M.r[0]); + XMVECTOR dY = XMVector3Dot(M.r[1], M.r[1]); + XMVECTOR dZ = XMVector3Dot(M.r[2], M.r[2]); + + XMVECTOR d = XMVectorMax(dX, XMVectorMax(dY, dZ)); + + // Store the center sphere. + XMStoreFloat3(&Out.Center, C); + + // Scale the radius of the pshere. + float Scale = sqrtf(XMVectorGetX(d)); + Out.Radius = Radius * Scale; +} + +_Use_decl_annotations_ +inline void XM_CALLCONV BoundingSphere::Transform(BoundingSphere& Out, float Scale, FXMVECTOR Rotation, FXMVECTOR Translation) const noexcept +{ + // Load the center of the sphere. + XMVECTOR vCenter = XMLoadFloat3(&Center); + + // Transform the center of the sphere. + vCenter = XMVectorAdd(XMVector3Rotate(XMVectorScale(vCenter, Scale), Rotation), Translation); + + // Store the center sphere. + XMStoreFloat3(&Out.Center, vCenter); + + // Scale the radius of the pshere. + Out.Radius = Radius * Scale; +} + + +//----------------------------------------------------------------------------- +// Point in sphere test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingSphere::Contains(FXMVECTOR Point) const noexcept +{ + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vRadius = XMVectorReplicatePtr(&Radius); + + XMVECTOR DistanceSquared = XMVector3LengthSq(XMVectorSubtract(Point, vCenter)); + XMVECTOR RadiusSquared = XMVectorMultiply(vRadius, vRadius); + + return XMVector3LessOrEqual(DistanceSquared, RadiusSquared) ? CONTAINS : DISJOINT; +} + + +//----------------------------------------------------------------------------- +// Triangle in sphere test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingSphere::Contains(FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) const noexcept +{ + if (!Intersects(V0, V1, V2)) + return DISJOINT; + + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vRadius = XMVectorReplicatePtr(&Radius); + XMVECTOR RadiusSquared = XMVectorMultiply(vRadius, vRadius); + + XMVECTOR DistanceSquared = XMVector3LengthSq(XMVectorSubtract(V0, vCenter)); + XMVECTOR Inside = XMVectorLessOrEqual(DistanceSquared, RadiusSquared); + + DistanceSquared = XMVector3LengthSq(XMVectorSubtract(V1, vCenter)); + Inside = XMVectorAndInt(Inside, XMVectorLessOrEqual(DistanceSquared, RadiusSquared)); + + DistanceSquared = XMVector3LengthSq(XMVectorSubtract(V2, vCenter)); + Inside = XMVectorAndInt(Inside, XMVectorLessOrEqual(DistanceSquared, RadiusSquared)); + + return (XMVector3EqualInt(Inside, XMVectorTrueInt())) ? CONTAINS : INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Sphere in sphere test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingSphere::Contains(const BoundingSphere& sh) const noexcept +{ + XMVECTOR Center1 = XMLoadFloat3(&Center); + float r1 = Radius; + + XMVECTOR Center2 = XMLoadFloat3(&sh.Center); + float r2 = sh.Radius; + + XMVECTOR V = XMVectorSubtract(Center2, Center1); + + XMVECTOR Dist = XMVector3Length(V); + + float d = XMVectorGetX(Dist); + + return (r1 + r2 >= d) ? ((r1 - r2 >= d) ? CONTAINS : INTERSECTS) : DISJOINT; +} + + +//----------------------------------------------------------------------------- +// Axis-aligned box in sphere test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingSphere::Contains(const BoundingBox& box) const noexcept +{ + if (!box.Intersects(*this)) + return DISJOINT; + + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vRadius = XMVectorReplicatePtr(&Radius); + XMVECTOR RadiusSq = XMVectorMultiply(vRadius, vRadius); + + XMVECTOR boxCenter = XMLoadFloat3(&box.Center); + XMVECTOR boxExtents = XMLoadFloat3(&box.Extents); + + XMVECTOR InsideAll = XMVectorTrueInt(); + + XMVECTOR offset = XMVectorSubtract(boxCenter, vCenter); + + for (size_t i = 0; i < BoundingBox::CORNER_COUNT; ++i) + { + XMVECTOR C = XMVectorMultiplyAdd(boxExtents, g_BoxOffset[i], offset); + XMVECTOR d = XMVector3LengthSq(C); + InsideAll = XMVectorAndInt(InsideAll, XMVectorLessOrEqual(d, RadiusSq)); + } + + return (XMVector3EqualInt(InsideAll, XMVectorTrueInt())) ? CONTAINS : INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Oriented box in sphere test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingSphere::Contains(const BoundingOrientedBox& box) const noexcept +{ + if (!box.Intersects(*this)) + return DISJOINT; + + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vRadius = XMVectorReplicatePtr(&Radius); + XMVECTOR RadiusSq = XMVectorMultiply(vRadius, vRadius); + + XMVECTOR boxCenter = XMLoadFloat3(&box.Center); + XMVECTOR boxExtents = XMLoadFloat3(&box.Extents); + XMVECTOR boxOrientation = XMLoadFloat4(&box.Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(boxOrientation)); + + XMVECTOR InsideAll = XMVectorTrueInt(); + + for (size_t i = 0; i < BoundingOrientedBox::CORNER_COUNT; ++i) + { + XMVECTOR C = XMVectorAdd(XMVector3Rotate(XMVectorMultiply(boxExtents, g_BoxOffset[i]), boxOrientation), boxCenter); + XMVECTOR d = XMVector3LengthSq(XMVectorSubtract(vCenter, C)); + InsideAll = XMVectorAndInt(InsideAll, XMVectorLessOrEqual(d, RadiusSq)); + } + + return (XMVector3EqualInt(InsideAll, XMVectorTrueInt())) ? CONTAINS : INTERSECTS; + +} + + +//----------------------------------------------------------------------------- +// Frustum in sphere test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingSphere::Contains(const BoundingFrustum& fr) const noexcept +{ + if (!fr.Intersects(*this)) + return DISJOINT; + + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vRadius = XMVectorReplicatePtr(&Radius); + XMVECTOR RadiusSq = XMVectorMultiply(vRadius, vRadius); + + XMVECTOR vOrigin = XMLoadFloat3(&fr.Origin); + XMVECTOR vOrientation = XMLoadFloat4(&fr.Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Build the corners of the frustum. + XMVECTOR vRightTop = XMVectorSet(fr.RightSlope, fr.TopSlope, 1.0f, 0.0f); + XMVECTOR vRightBottom = XMVectorSet(fr.RightSlope, fr.BottomSlope, 1.0f, 0.0f); + XMVECTOR vLeftTop = XMVectorSet(fr.LeftSlope, fr.TopSlope, 1.0f, 0.0f); + XMVECTOR vLeftBottom = XMVectorSet(fr.LeftSlope, fr.BottomSlope, 1.0f, 0.0f); + XMVECTOR vNear = XMVectorReplicatePtr(&fr.Near); + XMVECTOR vFar = XMVectorReplicatePtr(&fr.Far); + + XMVECTOR Corners[BoundingFrustum::CORNER_COUNT]; + Corners[0] = XMVectorMultiply(vRightTop, vNear); + Corners[1] = XMVectorMultiply(vRightBottom, vNear); + Corners[2] = XMVectorMultiply(vLeftTop, vNear); + Corners[3] = XMVectorMultiply(vLeftBottom, vNear); + Corners[4] = XMVectorMultiply(vRightTop, vFar); + Corners[5] = XMVectorMultiply(vRightBottom, vFar); + Corners[6] = XMVectorMultiply(vLeftTop, vFar); + Corners[7] = XMVectorMultiply(vLeftBottom, vFar); + + XMVECTOR InsideAll = XMVectorTrueInt(); + for (size_t i = 0; i < BoundingFrustum::CORNER_COUNT; ++i) + { + XMVECTOR C = XMVectorAdd(XMVector3Rotate(Corners[i], vOrientation), vOrigin); + XMVECTOR d = XMVector3LengthSq(XMVectorSubtract(vCenter, C)); + InsideAll = XMVectorAndInt(InsideAll, XMVectorLessOrEqual(d, RadiusSq)); + } + + return (XMVector3EqualInt(InsideAll, XMVectorTrueInt())) ? CONTAINS : INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Sphere vs. sphere test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingSphere::Intersects(const BoundingSphere& sh) const noexcept +{ + // Load A. + XMVECTOR vCenterA = XMLoadFloat3(&Center); + XMVECTOR vRadiusA = XMVectorReplicatePtr(&Radius); + + // Load B. + XMVECTOR vCenterB = XMLoadFloat3(&sh.Center); + XMVECTOR vRadiusB = XMVectorReplicatePtr(&sh.Radius); + + // Distance squared between centers. + XMVECTOR Delta = XMVectorSubtract(vCenterB, vCenterA); + XMVECTOR DistanceSquared = XMVector3LengthSq(Delta); + + // Sum of the radii squared. + XMVECTOR RadiusSquared = XMVectorAdd(vRadiusA, vRadiusB); + RadiusSquared = XMVectorMultiply(RadiusSquared, RadiusSquared); + + return XMVector3LessOrEqual(DistanceSquared, RadiusSquared); +} + + +//----------------------------------------------------------------------------- +// Box vs. sphere test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingSphere::Intersects(const BoundingBox& box) const noexcept +{ + return box.Intersects(*this); +} + +_Use_decl_annotations_ +inline bool BoundingSphere::Intersects(const BoundingOrientedBox& box) const noexcept +{ + return box.Intersects(*this); +} + + +//----------------------------------------------------------------------------- +// Frustum vs. sphere test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingSphere::Intersects(const BoundingFrustum& fr) const noexcept +{ + return fr.Intersects(*this); +} + + +//----------------------------------------------------------------------------- +// Triangle vs sphere test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool XM_CALLCONV BoundingSphere::Intersects(FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) const noexcept +{ + // Load the sphere. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vRadius = XMVectorReplicatePtr(&Radius); + + // Compute the plane of the triangle (has to be normalized). + XMVECTOR N = XMVector3Normalize(XMVector3Cross(XMVectorSubtract(V1, V0), XMVectorSubtract(V2, V0))); + + // Assert that the triangle is not degenerate. + assert(!XMVector3Equal(N, XMVectorZero())); + + // Find the nearest feature on the triangle to the sphere. + XMVECTOR Dist = XMVector3Dot(XMVectorSubtract(vCenter, V0), N); + + // If the center of the sphere is farther from the plane of the triangle than + // the radius of the sphere, then there cannot be an intersection. + XMVECTOR NoIntersection = XMVectorLess(Dist, XMVectorNegate(vRadius)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(Dist, vRadius)); + + // Project the center of the sphere onto the plane of the triangle. + XMVECTOR Point = XMVectorNegativeMultiplySubtract(N, Dist, vCenter); + + // Is it inside all the edges? If so we intersect because the distance + // to the plane is less than the radius. + XMVECTOR Intersection = DirectX::Internal::PointOnPlaneInsideTriangle(Point, V0, V1, V2); + + // Find the nearest point on each edge. + XMVECTOR RadiusSq = XMVectorMultiply(vRadius, vRadius); + + // Edge 0,1 + Point = DirectX::Internal::PointOnLineSegmentNearestPoint(V0, V1, vCenter); + + // If the distance to the center of the sphere to the point is less than + // the radius of the sphere then it must intersect. + Intersection = XMVectorOrInt(Intersection, XMVectorLessOrEqual(XMVector3LengthSq(XMVectorSubtract(vCenter, Point)), RadiusSq)); + + // Edge 1,2 + Point = DirectX::Internal::PointOnLineSegmentNearestPoint(V1, V2, vCenter); + + // If the distance to the center of the sphere to the point is less than + // the radius of the sphere then it must intersect. + Intersection = XMVectorOrInt(Intersection, XMVectorLessOrEqual(XMVector3LengthSq(XMVectorSubtract(vCenter, Point)), RadiusSq)); + + // Edge 2,0 + Point = DirectX::Internal::PointOnLineSegmentNearestPoint(V2, V0, vCenter); + + // If the distance to the center of the sphere to the point is less than + // the radius of the sphere then it must intersect. + Intersection = XMVectorOrInt(Intersection, XMVectorLessOrEqual(XMVector3LengthSq(XMVectorSubtract(vCenter, Point)), RadiusSq)); + + return XMVector4EqualInt(XMVectorAndCInt(Intersection, NoIntersection), XMVectorTrueInt()); +} + + +//----------------------------------------------------------------------------- +// Sphere-plane intersection +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline PlaneIntersectionType XM_CALLCONV BoundingSphere::Intersects(FXMVECTOR Plane) const noexcept +{ + assert(DirectX::Internal::XMPlaneIsUnit(Plane)); + + // Load the sphere. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vRadius = XMVectorReplicatePtr(&Radius); + + // Set w of the center to one so we can dot4 with a plane. + vCenter = XMVectorInsert<0, 0, 0, 0, 1>(vCenter, XMVectorSplatOne()); + + XMVECTOR Outside, Inside; + DirectX::Internal::FastIntersectSpherePlane(vCenter, vRadius, Plane, Outside, Inside); + + // If the sphere is outside any plane it is outside. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return FRONT; + + // If the sphere is inside all planes it is inside. + if (XMVector4EqualInt(Inside, XMVectorTrueInt())) + return BACK; + + // The sphere is not inside all planes or outside a plane it intersects. + return INTERSECTING; +} + + +//----------------------------------------------------------------------------- +// Compute the intersection of a ray (Origin, Direction) with a sphere. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool XM_CALLCONV BoundingSphere::Intersects(FXMVECTOR Origin, FXMVECTOR Direction, float& Dist) const noexcept +{ + assert(DirectX::Internal::XMVector3IsUnit(Direction)); + + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vRadius = XMVectorReplicatePtr(&Radius); + + // l is the vector from the ray origin to the center of the sphere. + XMVECTOR l = XMVectorSubtract(vCenter, Origin); + + // s is the projection of the l onto the ray direction. + XMVECTOR s = XMVector3Dot(l, Direction); + + XMVECTOR l2 = XMVector3Dot(l, l); + + XMVECTOR r2 = XMVectorMultiply(vRadius, vRadius); + + // m2 is squared distance from the center of the sphere to the projection. + XMVECTOR m2 = XMVectorNegativeMultiplySubtract(s, s, l2); + + XMVECTOR NoIntersection; + + // If the ray origin is outside the sphere and the center of the sphere is + // behind the ray origin there is no intersection. + NoIntersection = XMVectorAndInt(XMVectorLess(s, XMVectorZero()), XMVectorGreater(l2, r2)); + + // If the squared distance from the center of the sphere to the projection + // is greater than the radius squared the ray will miss the sphere. + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(m2, r2)); + + // The ray hits the sphere, compute the nearest intersection point. + XMVECTOR q = XMVectorSqrt(XMVectorSubtract(r2, m2)); + XMVECTOR t1 = XMVectorSubtract(s, q); + XMVECTOR t2 = XMVectorAdd(s, q); + + XMVECTOR OriginInside = XMVectorLessOrEqual(l2, r2); + XMVECTOR t = XMVectorSelect(t1, t2, OriginInside); + + if (XMVector4NotEqualInt(NoIntersection, XMVectorTrueInt())) + { + // Store the x-component to *pDist. + XMStoreFloat(&Dist, t); + return true; + } + + Dist = 0.f; + return false; +} + + +//----------------------------------------------------------------------------- +// Test a sphere vs 6 planes (typically forming a frustum). +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingSphere::ContainedBy( + FXMVECTOR Plane0, FXMVECTOR Plane1, FXMVECTOR Plane2, + GXMVECTOR Plane3, + HXMVECTOR Plane4, HXMVECTOR Plane5) const noexcept +{ + // Load the sphere. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vRadius = XMVectorReplicatePtr(&Radius); + + // Set w of the center to one so we can dot4 with a plane. + vCenter = XMVectorInsert<0, 0, 0, 0, 1>(vCenter, XMVectorSplatOne()); + + XMVECTOR Outside, Inside; + + // Test against each plane. + DirectX::Internal::FastIntersectSpherePlane(vCenter, vRadius, Plane0, Outside, Inside); + + XMVECTOR AnyOutside = Outside; + XMVECTOR AllInside = Inside; + + DirectX::Internal::FastIntersectSpherePlane(vCenter, vRadius, Plane1, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectSpherePlane(vCenter, vRadius, Plane2, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectSpherePlane(vCenter, vRadius, Plane3, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectSpherePlane(vCenter, vRadius, Plane4, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectSpherePlane(vCenter, vRadius, Plane5, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + // If the sphere is outside any plane it is outside. + if (XMVector4EqualInt(AnyOutside, XMVectorTrueInt())) + return DISJOINT; + + // If the sphere is inside all planes it is inside. + if (XMVector4EqualInt(AllInside, XMVectorTrueInt())) + return CONTAINS; + + // The sphere is not inside all planes or outside a plane, it may intersect. + return INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Creates a bounding sphere that contains two other bounding spheres +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingSphere::CreateMerged(BoundingSphere& Out, const BoundingSphere& S1, const BoundingSphere& S2) noexcept +{ + XMVECTOR Center1 = XMLoadFloat3(&S1.Center); + float r1 = S1.Radius; + + XMVECTOR Center2 = XMLoadFloat3(&S2.Center); + float r2 = S2.Radius; + + XMVECTOR V = XMVectorSubtract(Center2, Center1); + + XMVECTOR Dist = XMVector3Length(V); + + float d = XMVectorGetX(Dist); + + if (r1 + r2 >= d) + { + if (r1 - r2 >= d) + { + Out = S1; + return; + } + else if (r2 - r1 >= d) + { + Out = S2; + return; + } + } + + XMVECTOR N = XMVectorDivide(V, Dist); + + float t1 = XMMin(-r1, d - r2); + float t2 = XMMax(r1, d + r2); + float t_5 = (t2 - t1) * 0.5f; + + XMVECTOR NCenter = XMVectorAdd(Center1, XMVectorMultiply(N, XMVectorReplicate(t_5 + t1))); + + XMStoreFloat3(&Out.Center, NCenter); + Out.Radius = t_5; +} + + +//----------------------------------------------------------------------------- +// Create sphere enscribing bounding box +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingSphere::CreateFromBoundingBox(BoundingSphere& Out, const BoundingBox& box) noexcept +{ + Out.Center = box.Center; + XMVECTOR vExtents = XMLoadFloat3(&box.Extents); + Out.Radius = XMVectorGetX(XMVector3Length(vExtents)); +} + +_Use_decl_annotations_ +inline void BoundingSphere::CreateFromBoundingBox(BoundingSphere& Out, const BoundingOrientedBox& box) noexcept +{ + // Bounding box orientation is irrelevant because a sphere is rotationally invariant + Out.Center = box.Center; + XMVECTOR vExtents = XMLoadFloat3(&box.Extents); + Out.Radius = XMVectorGetX(XMVector3Length(vExtents)); +} + + +//----------------------------------------------------------------------------- +// Find the approximate smallest enclosing bounding sphere for a set of +// points. Exact computation of the smallest enclosing bounding sphere is +// possible but is slower and requires a more complex algorithm. +// The algorithm is based on Jack Ritter, "An Efficient Bounding Sphere", +// Graphics Gems. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingSphere::CreateFromPoints(BoundingSphere& Out, size_t Count, const XMFLOAT3* pPoints, size_t Stride) noexcept +{ + assert(Count > 0); + assert(pPoints); + + // Find the points with minimum and maximum x, y, and z + XMVECTOR MinX, MaxX, MinY, MaxY, MinZ, MaxZ; + + MinX = MaxX = MinY = MaxY = MinZ = MaxZ = XMLoadFloat3(pPoints); + + for (size_t i = 1; i < Count; ++i) + { + XMVECTOR Point = XMLoadFloat3(reinterpret_cast(reinterpret_cast(pPoints) + i * Stride)); + + float px = XMVectorGetX(Point); + float py = XMVectorGetY(Point); + float pz = XMVectorGetZ(Point); + + if (px < XMVectorGetX(MinX)) + MinX = Point; + + if (px > XMVectorGetX(MaxX)) + MaxX = Point; + + if (py < XMVectorGetY(MinY)) + MinY = Point; + + if (py > XMVectorGetY(MaxY)) + MaxY = Point; + + if (pz < XMVectorGetZ(MinZ)) + MinZ = Point; + + if (pz > XMVectorGetZ(MaxZ)) + MaxZ = Point; + } + + // Use the min/max pair that are farthest apart to form the initial sphere. + XMVECTOR DeltaX = XMVectorSubtract(MaxX, MinX); + XMVECTOR DistX = XMVector3Length(DeltaX); + + XMVECTOR DeltaY = XMVectorSubtract(MaxY, MinY); + XMVECTOR DistY = XMVector3Length(DeltaY); + + XMVECTOR DeltaZ = XMVectorSubtract(MaxZ, MinZ); + XMVECTOR DistZ = XMVector3Length(DeltaZ); + + XMVECTOR vCenter; + XMVECTOR vRadius; + + if (XMVector3Greater(DistX, DistY)) + { + if (XMVector3Greater(DistX, DistZ)) + { + // Use min/max x. + vCenter = XMVectorLerp(MaxX, MinX, 0.5f); + vRadius = XMVectorScale(DistX, 0.5f); + } + else + { + // Use min/max z. + vCenter = XMVectorLerp(MaxZ, MinZ, 0.5f); + vRadius = XMVectorScale(DistZ, 0.5f); + } + } + else // Y >= X + { + if (XMVector3Greater(DistY, DistZ)) + { + // Use min/max y. + vCenter = XMVectorLerp(MaxY, MinY, 0.5f); + vRadius = XMVectorScale(DistY, 0.5f); + } + else + { + // Use min/max z. + vCenter = XMVectorLerp(MaxZ, MinZ, 0.5f); + vRadius = XMVectorScale(DistZ, 0.5f); + } + } + + // Add any points not inside the sphere. + for (size_t i = 0; i < Count; ++i) + { + XMVECTOR Point = XMLoadFloat3(reinterpret_cast(reinterpret_cast(pPoints) + i * Stride)); + + XMVECTOR Delta = XMVectorSubtract(Point, vCenter); + + XMVECTOR Dist = XMVector3Length(Delta); + + if (XMVector3Greater(Dist, vRadius)) + { + // Adjust sphere to include the new point. + vRadius = XMVectorScale(XMVectorAdd(vRadius, Dist), 0.5f); + vCenter = XMVectorAdd(vCenter, XMVectorMultiply(XMVectorSubtract(XMVectorReplicate(1.0f), XMVectorDivide(vRadius, Dist)), Delta)); + } + } + + XMStoreFloat3(&Out.Center, vCenter); + XMStoreFloat(&Out.Radius, vRadius); +} + + +//----------------------------------------------------------------------------- +// Create sphere containing frustum +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingSphere::CreateFromFrustum(BoundingSphere& Out, const BoundingFrustum& fr) noexcept +{ + XMFLOAT3 Corners[BoundingFrustum::CORNER_COUNT]; + fr.GetCorners(Corners); + CreateFromPoints(Out, BoundingFrustum::CORNER_COUNT, Corners, sizeof(XMFLOAT3)); +} + + +/**************************************************************************** + * + * BoundingBox + * + ****************************************************************************/ + + //----------------------------------------------------------------------------- + // Transform an axis aligned box by an angle preserving transform. + //----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void XM_CALLCONV BoundingBox::Transform(BoundingBox& Out, FXMMATRIX M) const noexcept +{ + // Load center and extents. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + // Compute and transform the corners and find new min/max bounds. + XMVECTOR Corner = XMVectorMultiplyAdd(vExtents, g_BoxOffset[0], vCenter); + Corner = XMVector3Transform(Corner, M); + + XMVECTOR Min, Max; + Min = Max = Corner; + + for (size_t i = 1; i < CORNER_COUNT; ++i) + { + Corner = XMVectorMultiplyAdd(vExtents, g_BoxOffset[i], vCenter); + Corner = XMVector3Transform(Corner, M); + + Min = XMVectorMin(Min, Corner); + Max = XMVectorMax(Max, Corner); + } + + // Store center and extents. + XMStoreFloat3(&Out.Center, XMVectorScale(XMVectorAdd(Min, Max), 0.5f)); + XMStoreFloat3(&Out.Extents, XMVectorScale(XMVectorSubtract(Max, Min), 0.5f)); +} + +_Use_decl_annotations_ +inline void XM_CALLCONV BoundingBox::Transform(BoundingBox& Out, float Scale, FXMVECTOR Rotation, FXMVECTOR Translation) const noexcept +{ + assert(DirectX::Internal::XMQuaternionIsUnit(Rotation)); + + // Load center and extents. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + XMVECTOR VectorScale = XMVectorReplicate(Scale); + + // Compute and transform the corners and find new min/max bounds. + XMVECTOR Corner = XMVectorMultiplyAdd(vExtents, g_BoxOffset[0], vCenter); + Corner = XMVectorAdd(XMVector3Rotate(XMVectorMultiply(Corner, VectorScale), Rotation), Translation); + + XMVECTOR Min, Max; + Min = Max = Corner; + + for (size_t i = 1; i < CORNER_COUNT; ++i) + { + Corner = XMVectorMultiplyAdd(vExtents, g_BoxOffset[i], vCenter); + Corner = XMVectorAdd(XMVector3Rotate(XMVectorMultiply(Corner, VectorScale), Rotation), Translation); + + Min = XMVectorMin(Min, Corner); + Max = XMVectorMax(Max, Corner); + } + + // Store center and extents. + XMStoreFloat3(&Out.Center, XMVectorScale(XMVectorAdd(Min, Max), 0.5f)); + XMStoreFloat3(&Out.Extents, XMVectorScale(XMVectorSubtract(Max, Min), 0.5f)); +} + + +//----------------------------------------------------------------------------- +// Get the corner points of the box +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingBox::GetCorners(XMFLOAT3* Corners) const noexcept +{ + assert(Corners != nullptr); + + // Load the box + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + for (size_t i = 0; i < CORNER_COUNT; ++i) + { + XMVECTOR C = XMVectorMultiplyAdd(vExtents, g_BoxOffset[i], vCenter); + XMStoreFloat3(&Corners[i], C); + } +} + + +//----------------------------------------------------------------------------- +// Point in axis-aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingBox::Contains(FXMVECTOR Point) const noexcept +{ + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + return XMVector3InBounds(XMVectorSubtract(Point, vCenter), vExtents) ? CONTAINS : DISJOINT; +} + + +//----------------------------------------------------------------------------- +// Triangle in axis-aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingBox::Contains(FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) const noexcept +{ + if (!Intersects(V0, V1, V2)) + return DISJOINT; + + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + XMVECTOR d = XMVectorAbs(XMVectorSubtract(V0, vCenter)); + XMVECTOR Inside = XMVectorLessOrEqual(d, vExtents); + + d = XMVectorAbs(XMVectorSubtract(V1, vCenter)); + Inside = XMVectorAndInt(Inside, XMVectorLessOrEqual(d, vExtents)); + + d = XMVectorAbs(XMVectorSubtract(V2, vCenter)); + Inside = XMVectorAndInt(Inside, XMVectorLessOrEqual(d, vExtents)); + + return (XMVector3EqualInt(Inside, XMVectorTrueInt())) ? CONTAINS : INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Sphere in axis-aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingBox::Contains(const BoundingSphere& sh) const noexcept +{ + XMVECTOR SphereCenter = XMLoadFloat3(&sh.Center); + XMVECTOR SphereRadius = XMVectorReplicatePtr(&sh.Radius); + + XMVECTOR BoxCenter = XMLoadFloat3(&Center); + XMVECTOR BoxExtents = XMLoadFloat3(&Extents); + + XMVECTOR BoxMin = XMVectorSubtract(BoxCenter, BoxExtents); + XMVECTOR BoxMax = XMVectorAdd(BoxCenter, BoxExtents); + + // Find the distance to the nearest point on the box. + // for each i in (x, y, z) + // if (SphereCenter(i) < BoxMin(i)) d2 += (SphereCenter(i) - BoxMin(i)) ^ 2 + // else if (SphereCenter(i) > BoxMax(i)) d2 += (SphereCenter(i) - BoxMax(i)) ^ 2 + + XMVECTOR d = XMVectorZero(); + + // Compute d for each dimension. + XMVECTOR LessThanMin = XMVectorLess(SphereCenter, BoxMin); + XMVECTOR GreaterThanMax = XMVectorGreater(SphereCenter, BoxMax); + + XMVECTOR MinDelta = XMVectorSubtract(SphereCenter, BoxMin); + XMVECTOR MaxDelta = XMVectorSubtract(SphereCenter, BoxMax); + + // Choose value for each dimension based on the comparison. + d = XMVectorSelect(d, MinDelta, LessThanMin); + d = XMVectorSelect(d, MaxDelta, GreaterThanMax); + + // Use a dot-product to square them and sum them together. + XMVECTOR d2 = XMVector3Dot(d, d); + + if (XMVector3Greater(d2, XMVectorMultiply(SphereRadius, SphereRadius))) + return DISJOINT; + + XMVECTOR InsideAll = XMVectorLessOrEqual(XMVectorAdd(BoxMin, SphereRadius), SphereCenter); + InsideAll = XMVectorAndInt(InsideAll, XMVectorLessOrEqual(SphereCenter, XMVectorSubtract(BoxMax, SphereRadius))); + InsideAll = XMVectorAndInt(InsideAll, XMVectorGreater(XMVectorSubtract(BoxMax, BoxMin), SphereRadius)); + + return (XMVector3EqualInt(InsideAll, XMVectorTrueInt())) ? CONTAINS : INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Axis-aligned box in axis-aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingBox::Contains(const BoundingBox& box) const noexcept +{ + XMVECTOR CenterA = XMLoadFloat3(&Center); + XMVECTOR ExtentsA = XMLoadFloat3(&Extents); + + XMVECTOR CenterB = XMLoadFloat3(&box.Center); + XMVECTOR ExtentsB = XMLoadFloat3(&box.Extents); + + XMVECTOR MinA = XMVectorSubtract(CenterA, ExtentsA); + XMVECTOR MaxA = XMVectorAdd(CenterA, ExtentsA); + + XMVECTOR MinB = XMVectorSubtract(CenterB, ExtentsB); + XMVECTOR MaxB = XMVectorAdd(CenterB, ExtentsB); + + // for each i in (x, y, z) if a_min(i) > b_max(i) or b_min(i) > a_max(i) then return false + XMVECTOR Disjoint = XMVectorOrInt(XMVectorGreater(MinA, MaxB), XMVectorGreater(MinB, MaxA)); + + if (DirectX::Internal::XMVector3AnyTrue(Disjoint)) + return DISJOINT; + + // for each i in (x, y, z) if a_min(i) <= b_min(i) and b_max(i) <= a_max(i) then A contains B + XMVECTOR Inside = XMVectorAndInt(XMVectorLessOrEqual(MinA, MinB), XMVectorLessOrEqual(MaxB, MaxA)); + + return DirectX::Internal::XMVector3AllTrue(Inside) ? CONTAINS : INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Oriented box in axis-aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingBox::Contains(const BoundingOrientedBox& box) const noexcept +{ + if (!box.Intersects(*this)) + return DISJOINT; + + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + // Subtract off the AABB center to remove a subtract below + XMVECTOR oCenter = XMVectorSubtract(XMLoadFloat3(&box.Center), vCenter); + + XMVECTOR oExtents = XMLoadFloat3(&box.Extents); + XMVECTOR oOrientation = XMLoadFloat4(&box.Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(oOrientation)); + + XMVECTOR Inside = XMVectorTrueInt(); + + for (size_t i = 0; i < BoundingOrientedBox::CORNER_COUNT; ++i) + { + XMVECTOR C = XMVectorAdd(XMVector3Rotate(XMVectorMultiply(oExtents, g_BoxOffset[i]), oOrientation), oCenter); + XMVECTOR d = XMVectorAbs(C); + Inside = XMVectorAndInt(Inside, XMVectorLessOrEqual(d, vExtents)); + } + + return (XMVector3EqualInt(Inside, XMVectorTrueInt())) ? CONTAINS : INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Frustum in axis-aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingBox::Contains(const BoundingFrustum& fr) const noexcept +{ + if (!fr.Intersects(*this)) + return DISJOINT; + + XMFLOAT3 Corners[BoundingFrustum::CORNER_COUNT]; + fr.GetCorners(Corners); + + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + XMVECTOR Inside = XMVectorTrueInt(); + + for (size_t i = 0; i < BoundingFrustum::CORNER_COUNT; ++i) + { + XMVECTOR Point = XMLoadFloat3(&Corners[i]); + XMVECTOR d = XMVectorAbs(XMVectorSubtract(Point, vCenter)); + Inside = XMVectorAndInt(Inside, XMVectorLessOrEqual(d, vExtents)); + } + + return (XMVector3EqualInt(Inside, XMVectorTrueInt())) ? CONTAINS : INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Sphere vs axis-aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingBox::Intersects(const BoundingSphere& sh) const noexcept +{ + XMVECTOR SphereCenter = XMLoadFloat3(&sh.Center); + XMVECTOR SphereRadius = XMVectorReplicatePtr(&sh.Radius); + + XMVECTOR BoxCenter = XMLoadFloat3(&Center); + XMVECTOR BoxExtents = XMLoadFloat3(&Extents); + + XMVECTOR BoxMin = XMVectorSubtract(BoxCenter, BoxExtents); + XMVECTOR BoxMax = XMVectorAdd(BoxCenter, BoxExtents); + + // Find the distance to the nearest point on the box. + // for each i in (x, y, z) + // if (SphereCenter(i) < BoxMin(i)) d2 += (SphereCenter(i) - BoxMin(i)) ^ 2 + // else if (SphereCenter(i) > BoxMax(i)) d2 += (SphereCenter(i) - BoxMax(i)) ^ 2 + + XMVECTOR d = XMVectorZero(); + + // Compute d for each dimension. + XMVECTOR LessThanMin = XMVectorLess(SphereCenter, BoxMin); + XMVECTOR GreaterThanMax = XMVectorGreater(SphereCenter, BoxMax); + + XMVECTOR MinDelta = XMVectorSubtract(SphereCenter, BoxMin); + XMVECTOR MaxDelta = XMVectorSubtract(SphereCenter, BoxMax); + + // Choose value for each dimension based on the comparison. + d = XMVectorSelect(d, MinDelta, LessThanMin); + d = XMVectorSelect(d, MaxDelta, GreaterThanMax); + + // Use a dot-product to square them and sum them together. + XMVECTOR d2 = XMVector3Dot(d, d); + + return XMVector3LessOrEqual(d2, XMVectorMultiply(SphereRadius, SphereRadius)); +} + + +//----------------------------------------------------------------------------- +// Axis-aligned box vs. axis-aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingBox::Intersects(const BoundingBox& box) const noexcept +{ + XMVECTOR CenterA = XMLoadFloat3(&Center); + XMVECTOR ExtentsA = XMLoadFloat3(&Extents); + + XMVECTOR CenterB = XMLoadFloat3(&box.Center); + XMVECTOR ExtentsB = XMLoadFloat3(&box.Extents); + + XMVECTOR MinA = XMVectorSubtract(CenterA, ExtentsA); + XMVECTOR MaxA = XMVectorAdd(CenterA, ExtentsA); + + XMVECTOR MinB = XMVectorSubtract(CenterB, ExtentsB); + XMVECTOR MaxB = XMVectorAdd(CenterB, ExtentsB); + + // for each i in (x, y, z) if a_min(i) > b_max(i) or b_min(i) > a_max(i) then return false + XMVECTOR Disjoint = XMVectorOrInt(XMVectorGreater(MinA, MaxB), XMVectorGreater(MinB, MaxA)); + + return !DirectX::Internal::XMVector3AnyTrue(Disjoint); +} + + +//----------------------------------------------------------------------------- +// Oriented box vs. axis-aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingBox::Intersects(const BoundingOrientedBox& box) const noexcept +{ + return box.Intersects(*this); +} + + +//----------------------------------------------------------------------------- +// Frustum vs. axis-aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingBox::Intersects(const BoundingFrustum& fr) const noexcept +{ + return fr.Intersects(*this); +} + + +//----------------------------------------------------------------------------- +// Triangle vs. axis aligned box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool XM_CALLCONV BoundingBox::Intersects(FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) const noexcept +{ + XMVECTOR Zero = XMVectorZero(); + + // Load the box. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + XMVECTOR BoxMin = XMVectorSubtract(vCenter, vExtents); + XMVECTOR BoxMax = XMVectorAdd(vCenter, vExtents); + + // Test the axes of the box (in effect test the AAB against the minimal AAB + // around the triangle). + XMVECTOR TriMin = XMVectorMin(XMVectorMin(V0, V1), V2); + XMVECTOR TriMax = XMVectorMax(XMVectorMax(V0, V1), V2); + + // for each i in (x, y, z) if a_min(i) > b_max(i) or b_min(i) > a_max(i) then disjoint + XMVECTOR Disjoint = XMVectorOrInt(XMVectorGreater(TriMin, BoxMax), XMVectorGreater(BoxMin, TriMax)); + if (DirectX::Internal::XMVector3AnyTrue(Disjoint)) + return false; + + // Test the plane of the triangle. + XMVECTOR Normal = XMVector3Cross(XMVectorSubtract(V1, V0), XMVectorSubtract(V2, V0)); + XMVECTOR Dist = XMVector3Dot(Normal, V0); + + // Assert that the triangle is not degenerate. + assert(!XMVector3Equal(Normal, Zero)); + + // for each i in (x, y, z) if n(i) >= 0 then v_min(i)=b_min(i), v_max(i)=b_max(i) + // else v_min(i)=b_max(i), v_max(i)=b_min(i) + XMVECTOR NormalSelect = XMVectorGreater(Normal, Zero); + XMVECTOR V_Min = XMVectorSelect(BoxMax, BoxMin, NormalSelect); + XMVECTOR V_Max = XMVectorSelect(BoxMin, BoxMax, NormalSelect); + + // if n dot v_min + d > 0 || n dot v_max + d < 0 then disjoint + XMVECTOR MinDist = XMVector3Dot(V_Min, Normal); + XMVECTOR MaxDist = XMVector3Dot(V_Max, Normal); + + XMVECTOR NoIntersection = XMVectorGreater(MinDist, Dist); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(MaxDist, Dist)); + + // Move the box center to zero to simplify the following tests. + XMVECTOR TV0 = XMVectorSubtract(V0, vCenter); + XMVECTOR TV1 = XMVectorSubtract(V1, vCenter); + XMVECTOR TV2 = XMVectorSubtract(V2, vCenter); + + // Test the edge/edge axes (3*3). + XMVECTOR e0 = XMVectorSubtract(TV1, TV0); + XMVECTOR e1 = XMVectorSubtract(TV2, TV1); + XMVECTOR e2 = XMVectorSubtract(TV0, TV2); + + // Make w zero. + e0 = XMVectorInsert<0, 0, 0, 0, 1>(e0, Zero); + e1 = XMVectorInsert<0, 0, 0, 0, 1>(e1, Zero); + e2 = XMVectorInsert<0, 0, 0, 0, 1>(e2, Zero); + + XMVECTOR Axis; + XMVECTOR p0, p1, p2; + XMVECTOR Min, Max; + XMVECTOR Radius; + + // Axis == (1,0,0) x e0 = (0, -e0.z, e0.y) + Axis = XMVectorPermute(e0, XMVectorNegate(e0)); + p0 = XMVector3Dot(TV0, Axis); + // p1 = XMVector3Dot( V1, Axis ); // p1 = p0; + p2 = XMVector3Dot(TV2, Axis); + Min = XMVectorMin(p0, p2); + Max = XMVectorMax(p0, p2); + Radius = XMVector3Dot(vExtents, XMVectorAbs(Axis)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(Min, Radius)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(Max, XMVectorNegate(Radius))); + + // Axis == (1,0,0) x e1 = (0, -e1.z, e1.y) + Axis = XMVectorPermute(e1, XMVectorNegate(e1)); + p0 = XMVector3Dot(TV0, Axis); + p1 = XMVector3Dot(TV1, Axis); + // p2 = XMVector3Dot( V2, Axis ); // p2 = p1; + Min = XMVectorMin(p0, p1); + Max = XMVectorMax(p0, p1); + Radius = XMVector3Dot(vExtents, XMVectorAbs(Axis)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(Min, Radius)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(Max, XMVectorNegate(Radius))); + + // Axis == (1,0,0) x e2 = (0, -e2.z, e2.y) + Axis = XMVectorPermute(e2, XMVectorNegate(e2)); + p0 = XMVector3Dot(TV0, Axis); + p1 = XMVector3Dot(TV1, Axis); + // p2 = XMVector3Dot( V2, Axis ); // p2 = p0; + Min = XMVectorMin(p0, p1); + Max = XMVectorMax(p0, p1); + Radius = XMVector3Dot(vExtents, XMVectorAbs(Axis)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(Min, Radius)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(Max, XMVectorNegate(Radius))); + + // Axis == (0,1,0) x e0 = (e0.z, 0, -e0.x) + Axis = XMVectorPermute(e0, XMVectorNegate(e0)); + p0 = XMVector3Dot(TV0, Axis); + // p1 = XMVector3Dot( V1, Axis ); // p1 = p0; + p2 = XMVector3Dot(TV2, Axis); + Min = XMVectorMin(p0, p2); + Max = XMVectorMax(p0, p2); + Radius = XMVector3Dot(vExtents, XMVectorAbs(Axis)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(Min, Radius)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(Max, XMVectorNegate(Radius))); + + // Axis == (0,1,0) x e1 = (e1.z, 0, -e1.x) + Axis = XMVectorPermute(e1, XMVectorNegate(e1)); + p0 = XMVector3Dot(TV0, Axis); + p1 = XMVector3Dot(TV1, Axis); + // p2 = XMVector3Dot( V2, Axis ); // p2 = p1; + Min = XMVectorMin(p0, p1); + Max = XMVectorMax(p0, p1); + Radius = XMVector3Dot(vExtents, XMVectorAbs(Axis)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(Min, Radius)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(Max, XMVectorNegate(Radius))); + + // Axis == (0,0,1) x e2 = (e2.z, 0, -e2.x) + Axis = XMVectorPermute(e2, XMVectorNegate(e2)); + p0 = XMVector3Dot(TV0, Axis); + p1 = XMVector3Dot(TV1, Axis); + // p2 = XMVector3Dot( V2, Axis ); // p2 = p0; + Min = XMVectorMin(p0, p1); + Max = XMVectorMax(p0, p1); + Radius = XMVector3Dot(vExtents, XMVectorAbs(Axis)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(Min, Radius)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(Max, XMVectorNegate(Radius))); + + // Axis == (0,0,1) x e0 = (-e0.y, e0.x, 0) + Axis = XMVectorPermute(e0, XMVectorNegate(e0)); + p0 = XMVector3Dot(TV0, Axis); + // p1 = XMVector3Dot( V1, Axis ); // p1 = p0; + p2 = XMVector3Dot(TV2, Axis); + Min = XMVectorMin(p0, p2); + Max = XMVectorMax(p0, p2); + Radius = XMVector3Dot(vExtents, XMVectorAbs(Axis)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(Min, Radius)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(Max, XMVectorNegate(Radius))); + + // Axis == (0,0,1) x e1 = (-e1.y, e1.x, 0) + Axis = XMVectorPermute(e1, XMVectorNegate(e1)); + p0 = XMVector3Dot(TV0, Axis); + p1 = XMVector3Dot(TV1, Axis); + // p2 = XMVector3Dot( V2, Axis ); // p2 = p1; + Min = XMVectorMin(p0, p1); + Max = XMVectorMax(p0, p1); + Radius = XMVector3Dot(vExtents, XMVectorAbs(Axis)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(Min, Radius)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(Max, XMVectorNegate(Radius))); + + // Axis == (0,0,1) x e2 = (-e2.y, e2.x, 0) + Axis = XMVectorPermute(e2, XMVectorNegate(e2)); + p0 = XMVector3Dot(TV0, Axis); + p1 = XMVector3Dot(TV1, Axis); + // p2 = XMVector3Dot( V2, Axis ); // p2 = p0; + Min = XMVectorMin(p0, p1); + Max = XMVectorMax(p0, p1); + Radius = XMVector3Dot(vExtents, XMVectorAbs(Axis)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(Min, Radius)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(Max, XMVectorNegate(Radius))); + + return XMVector4NotEqualInt(NoIntersection, XMVectorTrueInt()); +} + + +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline PlaneIntersectionType XM_CALLCONV BoundingBox::Intersects(FXMVECTOR Plane) const noexcept +{ + assert(DirectX::Internal::XMPlaneIsUnit(Plane)); + + // Load the box. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + // Set w of the center to one so we can dot4 with a plane. + vCenter = XMVectorInsert<0, 0, 0, 0, 1>(vCenter, XMVectorSplatOne()); + + XMVECTOR Outside, Inside; + DirectX::Internal::FastIntersectAxisAlignedBoxPlane(vCenter, vExtents, Plane, Outside, Inside); + + // If the box is outside any plane it is outside. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return FRONT; + + // If the box is inside all planes it is inside. + if (XMVector4EqualInt(Inside, XMVectorTrueInt())) + return BACK; + + // The box is not inside all planes or outside a plane it intersects. + return INTERSECTING; +} + + +//----------------------------------------------------------------------------- +// Compute the intersection of a ray (Origin, Direction) with an axis aligned +// box using the slabs method. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool XM_CALLCONV BoundingBox::Intersects(FXMVECTOR Origin, FXMVECTOR Direction, float& Dist) const noexcept +{ + assert(DirectX::Internal::XMVector3IsUnit(Direction)); + + // Load the box. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + // Adjust ray origin to be relative to center of the box. + XMVECTOR TOrigin = XMVectorSubtract(vCenter, Origin); + + // Compute the dot product againt each axis of the box. + // Since the axii are (1,0,0), (0,1,0), (0,0,1) no computation is necessary. + XMVECTOR AxisDotOrigin = TOrigin; + XMVECTOR AxisDotDirection = Direction; + + // if (fabs(AxisDotDirection) <= Epsilon) the ray is nearly parallel to the slab. + XMVECTOR IsParallel = XMVectorLessOrEqual(XMVectorAbs(AxisDotDirection), g_RayEpsilon); + + // Test against all three axii simultaneously. + XMVECTOR InverseAxisDotDirection = XMVectorReciprocal(AxisDotDirection); + XMVECTOR t1 = XMVectorMultiply(XMVectorSubtract(AxisDotOrigin, vExtents), InverseAxisDotDirection); + XMVECTOR t2 = XMVectorMultiply(XMVectorAdd(AxisDotOrigin, vExtents), InverseAxisDotDirection); + + // Compute the max of min(t1,t2) and the min of max(t1,t2) ensuring we don't + // use the results from any directions parallel to the slab. + XMVECTOR t_min = XMVectorSelect(XMVectorMin(t1, t2), g_FltMin, IsParallel); + XMVECTOR t_max = XMVectorSelect(XMVectorMax(t1, t2), g_FltMax, IsParallel); + + // t_min.x = maximum( t_min.x, t_min.y, t_min.z ); + // t_max.x = minimum( t_max.x, t_max.y, t_max.z ); + t_min = XMVectorMax(t_min, XMVectorSplatY(t_min)); // x = max(x,y) + t_min = XMVectorMax(t_min, XMVectorSplatZ(t_min)); // x = max(max(x,y),z) + t_max = XMVectorMin(t_max, XMVectorSplatY(t_max)); // x = min(x,y) + t_max = XMVectorMin(t_max, XMVectorSplatZ(t_max)); // x = min(min(x,y),z) + + // if ( t_min > t_max ) return false; + XMVECTOR NoIntersection = XMVectorGreater(XMVectorSplatX(t_min), XMVectorSplatX(t_max)); + + // if ( t_max < 0.0f ) return false; + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(XMVectorSplatX(t_max), XMVectorZero())); + + // if (IsParallel && (-Extents > AxisDotOrigin || Extents < AxisDotOrigin)) return false; + XMVECTOR ParallelOverlap = XMVectorInBounds(AxisDotOrigin, vExtents); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorAndCInt(IsParallel, ParallelOverlap)); + + if (!DirectX::Internal::XMVector3AnyTrue(NoIntersection)) + { + // Store the x-component to *pDist + XMStoreFloat(&Dist, t_min); + return true; + } + + Dist = 0.f; + return false; +} + + +//----------------------------------------------------------------------------- +// Test an axis alinged box vs 6 planes (typically forming a frustum). +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingBox::ContainedBy( + FXMVECTOR Plane0, FXMVECTOR Plane1, FXMVECTOR Plane2, + GXMVECTOR Plane3, + HXMVECTOR Plane4, HXMVECTOR Plane5) const noexcept +{ + // Load the box. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + + // Set w of the center to one so we can dot4 with a plane. + vCenter = XMVectorInsert<0, 0, 0, 0, 1>(vCenter, XMVectorSplatOne()); + + XMVECTOR Outside, Inside; + + // Test against each plane. + DirectX::Internal::FastIntersectAxisAlignedBoxPlane(vCenter, vExtents, Plane0, Outside, Inside); + + XMVECTOR AnyOutside = Outside; + XMVECTOR AllInside = Inside; + + DirectX::Internal::FastIntersectAxisAlignedBoxPlane(vCenter, vExtents, Plane1, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectAxisAlignedBoxPlane(vCenter, vExtents, Plane2, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectAxisAlignedBoxPlane(vCenter, vExtents, Plane3, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectAxisAlignedBoxPlane(vCenter, vExtents, Plane4, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectAxisAlignedBoxPlane(vCenter, vExtents, Plane5, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + // If the box is outside any plane it is outside. + if (XMVector4EqualInt(AnyOutside, XMVectorTrueInt())) + return DISJOINT; + + // If the box is inside all planes it is inside. + if (XMVector4EqualInt(AllInside, XMVectorTrueInt())) + return CONTAINS; + + // The box is not inside all planes or outside a plane, it may intersect. + return INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Create axis-aligned box that contains two other bounding boxes +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingBox::CreateMerged(BoundingBox& Out, const BoundingBox& b1, const BoundingBox& b2) noexcept +{ + XMVECTOR b1Center = XMLoadFloat3(&b1.Center); + XMVECTOR b1Extents = XMLoadFloat3(&b1.Extents); + + XMVECTOR b2Center = XMLoadFloat3(&b2.Center); + XMVECTOR b2Extents = XMLoadFloat3(&b2.Extents); + + XMVECTOR Min = XMVectorSubtract(b1Center, b1Extents); + Min = XMVectorMin(Min, XMVectorSubtract(b2Center, b2Extents)); + + XMVECTOR Max = XMVectorAdd(b1Center, b1Extents); + Max = XMVectorMax(Max, XMVectorAdd(b2Center, b2Extents)); + + assert(XMVector3LessOrEqual(Min, Max)); + + XMStoreFloat3(&Out.Center, XMVectorScale(XMVectorAdd(Min, Max), 0.5f)); + XMStoreFloat3(&Out.Extents, XMVectorScale(XMVectorSubtract(Max, Min), 0.5f)); +} + + +//----------------------------------------------------------------------------- +// Create axis-aligned box that contains a bounding sphere +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingBox::CreateFromSphere(BoundingBox& Out, const BoundingSphere& sh) noexcept +{ + XMVECTOR spCenter = XMLoadFloat3(&sh.Center); + XMVECTOR shRadius = XMVectorReplicatePtr(&sh.Radius); + + XMVECTOR Min = XMVectorSubtract(spCenter, shRadius); + XMVECTOR Max = XMVectorAdd(spCenter, shRadius); + + assert(XMVector3LessOrEqual(Min, Max)); + + XMStoreFloat3(&Out.Center, XMVectorScale(XMVectorAdd(Min, Max), 0.5f)); + XMStoreFloat3(&Out.Extents, XMVectorScale(XMVectorSubtract(Max, Min), 0.5f)); +} + + +//----------------------------------------------------------------------------- +// Create axis-aligned box from min/max points +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void XM_CALLCONV BoundingBox::CreateFromPoints(BoundingBox& Out, FXMVECTOR pt1, FXMVECTOR pt2) noexcept +{ + XMVECTOR Min = XMVectorMin(pt1, pt2); + XMVECTOR Max = XMVectorMax(pt1, pt2); + + // Store center and extents. + XMStoreFloat3(&Out.Center, XMVectorScale(XMVectorAdd(Min, Max), 0.5f)); + XMStoreFloat3(&Out.Extents, XMVectorScale(XMVectorSubtract(Max, Min), 0.5f)); +} + + +//----------------------------------------------------------------------------- +// Find the minimum axis aligned bounding box containing a set of points. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingBox::CreateFromPoints(BoundingBox& Out, size_t Count, const XMFLOAT3* pPoints, size_t Stride) noexcept +{ + assert(Count > 0); + assert(pPoints); + + // Find the minimum and maximum x, y, and z + XMVECTOR vMin, vMax; + + vMin = vMax = XMLoadFloat3(pPoints); + + for (size_t i = 1; i < Count; ++i) + { + XMVECTOR Point = XMLoadFloat3(reinterpret_cast(reinterpret_cast(pPoints) + i * Stride)); + + vMin = XMVectorMin(vMin, Point); + vMax = XMVectorMax(vMax, Point); + } + + // Store center and extents. + XMStoreFloat3(&Out.Center, XMVectorScale(XMVectorAdd(vMin, vMax), 0.5f)); + XMStoreFloat3(&Out.Extents, XMVectorScale(XMVectorSubtract(vMax, vMin), 0.5f)); +} + + +/**************************************************************************** + * + * BoundingOrientedBox + * + ****************************************************************************/ + + //----------------------------------------------------------------------------- + // Transform an oriented box by an angle preserving transform. + //----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void XM_CALLCONV BoundingOrientedBox::Transform(BoundingOrientedBox& Out, FXMMATRIX M) const noexcept +{ + // Load the box. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Composite the box rotation and the transform rotation. + XMMATRIX nM; + nM.r[0] = XMVector3Normalize(M.r[0]); + nM.r[1] = XMVector3Normalize(M.r[1]); + nM.r[2] = XMVector3Normalize(M.r[2]); + nM.r[3] = g_XMIdentityR3; + XMVECTOR Rotation = XMQuaternionRotationMatrix(nM); + vOrientation = XMQuaternionMultiply(vOrientation, Rotation); + + // Transform the center. + vCenter = XMVector3Transform(vCenter, M); + + // Scale the box extents. + XMVECTOR dX = XMVector3Length(M.r[0]); + XMVECTOR dY = XMVector3Length(M.r[1]); + XMVECTOR dZ = XMVector3Length(M.r[2]); + + XMVECTOR VectorScale = XMVectorSelect(dY, dX, g_XMSelect1000); + VectorScale = XMVectorSelect(dZ, VectorScale, g_XMSelect1100); + vExtents = XMVectorMultiply(vExtents, VectorScale); + + // Store the box. + XMStoreFloat3(&Out.Center, vCenter); + XMStoreFloat3(&Out.Extents, vExtents); + XMStoreFloat4(&Out.Orientation, vOrientation); +} + +_Use_decl_annotations_ +inline void XM_CALLCONV BoundingOrientedBox::Transform(BoundingOrientedBox& Out, float Scale, FXMVECTOR Rotation, FXMVECTOR Translation) const noexcept +{ + assert(DirectX::Internal::XMQuaternionIsUnit(Rotation)); + + // Load the box. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Composite the box rotation and the transform rotation. + vOrientation = XMQuaternionMultiply(vOrientation, Rotation); + + // Transform the center. + XMVECTOR VectorScale = XMVectorReplicate(Scale); + vCenter = XMVectorAdd(XMVector3Rotate(XMVectorMultiply(vCenter, VectorScale), Rotation), Translation); + + // Scale the box extents. + vExtents = XMVectorMultiply(vExtents, VectorScale); + + // Store the box. + XMStoreFloat3(&Out.Center, vCenter); + XMStoreFloat3(&Out.Extents, vExtents); + XMStoreFloat4(&Out.Orientation, vOrientation); +} + + +//----------------------------------------------------------------------------- +// Get the corner points of the box +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingOrientedBox::GetCorners(XMFLOAT3* Corners) const noexcept +{ + assert(Corners != nullptr); + + // Load the box + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + for (size_t i = 0; i < CORNER_COUNT; ++i) + { + XMVECTOR C = XMVectorAdd(XMVector3Rotate(XMVectorMultiply(vExtents, g_BoxOffset[i]), vOrientation), vCenter); + XMStoreFloat3(&Corners[i], C); + } +} + + +//----------------------------------------------------------------------------- +// Point in oriented box test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingOrientedBox::Contains(FXMVECTOR Point) const noexcept +{ + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + // Transform the point to be local to the box. + XMVECTOR TPoint = XMVector3InverseRotate(XMVectorSubtract(Point, vCenter), vOrientation); + + return XMVector3InBounds(TPoint, vExtents) ? CONTAINS : DISJOINT; +} + + +//----------------------------------------------------------------------------- +// Triangle in oriented bounding box +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingOrientedBox::Contains(FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) const noexcept +{ + // Load the box center & orientation. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + // Transform the triangle vertices into the space of the box. + XMVECTOR TV0 = XMVector3InverseRotate(XMVectorSubtract(V0, vCenter), vOrientation); + XMVECTOR TV1 = XMVector3InverseRotate(XMVectorSubtract(V1, vCenter), vOrientation); + XMVECTOR TV2 = XMVector3InverseRotate(XMVectorSubtract(V2, vCenter), vOrientation); + + BoundingBox box; + box.Center = XMFLOAT3(0.0f, 0.0f, 0.0f); + box.Extents = Extents; + + // Use the triangle vs axis aligned box intersection routine. + return box.Contains(TV0, TV1, TV2); +} + + +//----------------------------------------------------------------------------- +// Sphere in oriented bounding box +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingOrientedBox::Contains(const BoundingSphere& sh) const noexcept +{ + XMVECTOR SphereCenter = XMLoadFloat3(&sh.Center); + XMVECTOR SphereRadius = XMVectorReplicatePtr(&sh.Radius); + + XMVECTOR BoxCenter = XMLoadFloat3(&Center); + XMVECTOR BoxExtents = XMLoadFloat3(&Extents); + XMVECTOR BoxOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(BoxOrientation)); + + // Transform the center of the sphere to be local to the box. + // BoxMin = -BoxExtents + // BoxMax = +BoxExtents + SphereCenter = XMVector3InverseRotate(XMVectorSubtract(SphereCenter, BoxCenter), BoxOrientation); + + // Find the distance to the nearest point on the box. + // for each i in (x, y, z) + // if (SphereCenter(i) < BoxMin(i)) d2 += (SphereCenter(i) - BoxMin(i)) ^ 2 + // else if (SphereCenter(i) > BoxMax(i)) d2 += (SphereCenter(i) - BoxMax(i)) ^ 2 + + XMVECTOR d = XMVectorZero(); + + // Compute d for each dimension. + XMVECTOR LessThanMin = XMVectorLess(SphereCenter, XMVectorNegate(BoxExtents)); + XMVECTOR GreaterThanMax = XMVectorGreater(SphereCenter, BoxExtents); + + XMVECTOR MinDelta = XMVectorAdd(SphereCenter, BoxExtents); + XMVECTOR MaxDelta = XMVectorSubtract(SphereCenter, BoxExtents); + + // Choose value for each dimension based on the comparison. + d = XMVectorSelect(d, MinDelta, LessThanMin); + d = XMVectorSelect(d, MaxDelta, GreaterThanMax); + + // Use a dot-product to square them and sum them together. + XMVECTOR d2 = XMVector3Dot(d, d); + XMVECTOR SphereRadiusSq = XMVectorMultiply(SphereRadius, SphereRadius); + + if (XMVector4Greater(d2, SphereRadiusSq)) + return DISJOINT; + + // See if we are completely inside the box + XMVECTOR SMin = XMVectorSubtract(SphereCenter, SphereRadius); + XMVECTOR SMax = XMVectorAdd(SphereCenter, SphereRadius); + + return (XMVector3InBounds(SMin, BoxExtents) && XMVector3InBounds(SMax, BoxExtents)) ? CONTAINS : INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Axis aligned box vs. oriented box. Constructs an oriented box and uses +// the oriented box vs. oriented box test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingOrientedBox::Contains(const BoundingBox& box) const noexcept +{ + // Make the axis aligned box oriented and do an OBB vs OBB test. + BoundingOrientedBox obox(box.Center, box.Extents, XMFLOAT4(0.f, 0.f, 0.f, 1.f)); + return Contains(obox); +} + + +//----------------------------------------------------------------------------- +// Oriented bounding box in oriented bounding box +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingOrientedBox::Contains(const BoundingOrientedBox& box) const noexcept +{ + if (!Intersects(box)) + return DISJOINT; + + // Load the boxes + XMVECTOR aCenter = XMLoadFloat3(&Center); + XMVECTOR aExtents = XMLoadFloat3(&Extents); + XMVECTOR aOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(aOrientation)); + + XMVECTOR bCenter = XMLoadFloat3(&box.Center); + XMVECTOR bExtents = XMLoadFloat3(&box.Extents); + XMVECTOR bOrientation = XMLoadFloat4(&box.Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(bOrientation)); + + XMVECTOR offset = XMVectorSubtract(bCenter, aCenter); + + for (size_t i = 0; i < CORNER_COUNT; ++i) + { + // Cb = rotate( bExtents * corneroffset[i], bOrientation ) + bcenter + // Ca = invrotate( Cb - aCenter, aOrientation ) + + XMVECTOR C = XMVectorAdd(XMVector3Rotate(XMVectorMultiply(bExtents, g_BoxOffset[i]), bOrientation), offset); + C = XMVector3InverseRotate(C, aOrientation); + + if (!XMVector3InBounds(C, aExtents)) + return INTERSECTS; + } + + return CONTAINS; +} + + +//----------------------------------------------------------------------------- +// Frustum in oriented bounding box +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingOrientedBox::Contains(const BoundingFrustum& fr) const noexcept +{ + if (!fr.Intersects(*this)) + return DISJOINT; + + XMFLOAT3 Corners[BoundingFrustum::CORNER_COUNT]; + fr.GetCorners(Corners); + + // Load the box + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + for (size_t i = 0; i < BoundingFrustum::CORNER_COUNT; ++i) + { + XMVECTOR C = XMVector3InverseRotate(XMVectorSubtract(XMLoadFloat3(&Corners[i]), vCenter), vOrientation); + + if (!XMVector3InBounds(C, vExtents)) + return INTERSECTS; + } + + return CONTAINS; +} + + +//----------------------------------------------------------------------------- +// Sphere vs. oriented box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingOrientedBox::Intersects(const BoundingSphere& sh) const noexcept +{ + XMVECTOR SphereCenter = XMLoadFloat3(&sh.Center); + XMVECTOR SphereRadius = XMVectorReplicatePtr(&sh.Radius); + + XMVECTOR BoxCenter = XMLoadFloat3(&Center); + XMVECTOR BoxExtents = XMLoadFloat3(&Extents); + XMVECTOR BoxOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(BoxOrientation)); + + // Transform the center of the sphere to be local to the box. + // BoxMin = -BoxExtents + // BoxMax = +BoxExtents + SphereCenter = XMVector3InverseRotate(XMVectorSubtract(SphereCenter, BoxCenter), BoxOrientation); + + // Find the distance to the nearest point on the box. + // for each i in (x, y, z) + // if (SphereCenter(i) < BoxMin(i)) d2 += (SphereCenter(i) - BoxMin(i)) ^ 2 + // else if (SphereCenter(i) > BoxMax(i)) d2 += (SphereCenter(i) - BoxMax(i)) ^ 2 + + XMVECTOR d = XMVectorZero(); + + // Compute d for each dimension. + XMVECTOR LessThanMin = XMVectorLess(SphereCenter, XMVectorNegate(BoxExtents)); + XMVECTOR GreaterThanMax = XMVectorGreater(SphereCenter, BoxExtents); + + XMVECTOR MinDelta = XMVectorAdd(SphereCenter, BoxExtents); + XMVECTOR MaxDelta = XMVectorSubtract(SphereCenter, BoxExtents); + + // Choose value for each dimension based on the comparison. + d = XMVectorSelect(d, MinDelta, LessThanMin); + d = XMVectorSelect(d, MaxDelta, GreaterThanMax); + + // Use a dot-product to square them and sum them together. + XMVECTOR d2 = XMVector3Dot(d, d); + + return XMVector4LessOrEqual(d2, XMVectorMultiply(SphereRadius, SphereRadius)) ? true : false; +} + + +//----------------------------------------------------------------------------- +// Axis aligned box vs. oriented box. Constructs an oriented box and uses +// the oriented box vs. oriented box test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingOrientedBox::Intersects(const BoundingBox& box) const noexcept +{ + // Make the axis aligned box oriented and do an OBB vs OBB test. + BoundingOrientedBox obox(box.Center, box.Extents, XMFLOAT4(0.f, 0.f, 0.f, 1.f)); + return Intersects(obox); +} + + +//----------------------------------------------------------------------------- +// Fast oriented box / oriented box intersection test using the separating axis +// theorem. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingOrientedBox::Intersects(const BoundingOrientedBox& box) const noexcept +{ + // Build the 3x3 rotation matrix that defines the orientation of B relative to A. + XMVECTOR A_quat = XMLoadFloat4(&Orientation); + XMVECTOR B_quat = XMLoadFloat4(&box.Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(A_quat)); + assert(DirectX::Internal::XMQuaternionIsUnit(B_quat)); + + XMVECTOR Q = XMQuaternionMultiply(A_quat, XMQuaternionConjugate(B_quat)); + XMMATRIX R = XMMatrixRotationQuaternion(Q); + + // Compute the translation of B relative to A. + XMVECTOR A_cent = XMLoadFloat3(&Center); + XMVECTOR B_cent = XMLoadFloat3(&box.Center); + XMVECTOR t = XMVector3InverseRotate(XMVectorSubtract(B_cent, A_cent), A_quat); + + // + // h(A) = extents of A. + // h(B) = extents of B. + // + // a(u) = axes of A = (1,0,0), (0,1,0), (0,0,1) + // b(u) = axes of B relative to A = (r00,r10,r20), (r01,r11,r21), (r02,r12,r22) + // + // For each possible separating axis l: + // d(A) = sum (for i = u,v,w) h(A)(i) * abs( a(i) dot l ) + // d(B) = sum (for i = u,v,w) h(B)(i) * abs( b(i) dot l ) + // if abs( t dot l ) > d(A) + d(B) then disjoint + // + + // Load extents of A and B. + XMVECTOR h_A = XMLoadFloat3(&Extents); + XMVECTOR h_B = XMLoadFloat3(&box.Extents); + + // Rows. Note R[0,1,2]X.w = 0. + XMVECTOR R0X = R.r[0]; + XMVECTOR R1X = R.r[1]; + XMVECTOR R2X = R.r[2]; + + R = XMMatrixTranspose(R); + + // Columns. Note RX[0,1,2].w = 0. + XMVECTOR RX0 = R.r[0]; + XMVECTOR RX1 = R.r[1]; + XMVECTOR RX2 = R.r[2]; + + // Absolute value of rows. + XMVECTOR AR0X = XMVectorAbs(R0X); + XMVECTOR AR1X = XMVectorAbs(R1X); + XMVECTOR AR2X = XMVectorAbs(R2X); + + // Absolute value of columns. + XMVECTOR ARX0 = XMVectorAbs(RX0); + XMVECTOR ARX1 = XMVectorAbs(RX1); + XMVECTOR ARX2 = XMVectorAbs(RX2); + + // Test each of the 15 possible seperating axii. + XMVECTOR d, d_A, d_B; + + // l = a(u) = (1, 0, 0) + // t dot l = t.x + // d(A) = h(A).x + // d(B) = h(B) dot abs(r00, r01, r02) + d = XMVectorSplatX(t); + d_A = XMVectorSplatX(h_A); + d_B = XMVector3Dot(h_B, AR0X); + XMVECTOR NoIntersection = XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B)); + + // l = a(v) = (0, 1, 0) + // t dot l = t.y + // d(A) = h(A).y + // d(B) = h(B) dot abs(r10, r11, r12) + d = XMVectorSplatY(t); + d_A = XMVectorSplatY(h_A); + d_B = XMVector3Dot(h_B, AR1X); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = a(w) = (0, 0, 1) + // t dot l = t.z + // d(A) = h(A).z + // d(B) = h(B) dot abs(r20, r21, r22) + d = XMVectorSplatZ(t); + d_A = XMVectorSplatZ(h_A); + d_B = XMVector3Dot(h_B, AR2X); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = b(u) = (r00, r10, r20) + // d(A) = h(A) dot abs(r00, r10, r20) + // d(B) = h(B).x + d = XMVector3Dot(t, RX0); + d_A = XMVector3Dot(h_A, ARX0); + d_B = XMVectorSplatX(h_B); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = b(v) = (r01, r11, r21) + // d(A) = h(A) dot abs(r01, r11, r21) + // d(B) = h(B).y + d = XMVector3Dot(t, RX1); + d_A = XMVector3Dot(h_A, ARX1); + d_B = XMVectorSplatY(h_B); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = b(w) = (r02, r12, r22) + // d(A) = h(A) dot abs(r02, r12, r22) + // d(B) = h(B).z + d = XMVector3Dot(t, RX2); + d_A = XMVector3Dot(h_A, ARX2); + d_B = XMVectorSplatZ(h_B); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = a(u) x b(u) = (0, -r20, r10) + // d(A) = h(A) dot abs(0, r20, r10) + // d(B) = h(B) dot abs(0, r02, r01) + d = XMVector3Dot(t, XMVectorPermute(RX0, XMVectorNegate(RX0))); + d_A = XMVector3Dot(h_A, XMVectorSwizzle(ARX0)); + d_B = XMVector3Dot(h_B, XMVectorSwizzle(AR0X)); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = a(u) x b(v) = (0, -r21, r11) + // d(A) = h(A) dot abs(0, r21, r11) + // d(B) = h(B) dot abs(r02, 0, r00) + d = XMVector3Dot(t, XMVectorPermute(RX1, XMVectorNegate(RX1))); + d_A = XMVector3Dot(h_A, XMVectorSwizzle(ARX1)); + d_B = XMVector3Dot(h_B, XMVectorSwizzle(AR0X)); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = a(u) x b(w) = (0, -r22, r12) + // d(A) = h(A) dot abs(0, r22, r12) + // d(B) = h(B) dot abs(r01, r00, 0) + d = XMVector3Dot(t, XMVectorPermute(RX2, XMVectorNegate(RX2))); + d_A = XMVector3Dot(h_A, XMVectorSwizzle(ARX2)); + d_B = XMVector3Dot(h_B, XMVectorSwizzle(AR0X)); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = a(v) x b(u) = (r20, 0, -r00) + // d(A) = h(A) dot abs(r20, 0, r00) + // d(B) = h(B) dot abs(0, r12, r11) + d = XMVector3Dot(t, XMVectorPermute(RX0, XMVectorNegate(RX0))); + d_A = XMVector3Dot(h_A, XMVectorSwizzle(ARX0)); + d_B = XMVector3Dot(h_B, XMVectorSwizzle(AR1X)); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = a(v) x b(v) = (r21, 0, -r01) + // d(A) = h(A) dot abs(r21, 0, r01) + // d(B) = h(B) dot abs(r12, 0, r10) + d = XMVector3Dot(t, XMVectorPermute(RX1, XMVectorNegate(RX1))); + d_A = XMVector3Dot(h_A, XMVectorSwizzle(ARX1)); + d_B = XMVector3Dot(h_B, XMVectorSwizzle(AR1X)); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = a(v) x b(w) = (r22, 0, -r02) + // d(A) = h(A) dot abs(r22, 0, r02) + // d(B) = h(B) dot abs(r11, r10, 0) + d = XMVector3Dot(t, XMVectorPermute(RX2, XMVectorNegate(RX2))); + d_A = XMVector3Dot(h_A, XMVectorSwizzle(ARX2)); + d_B = XMVector3Dot(h_B, XMVectorSwizzle(AR1X)); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = a(w) x b(u) = (-r10, r00, 0) + // d(A) = h(A) dot abs(r10, r00, 0) + // d(B) = h(B) dot abs(0, r22, r21) + d = XMVector3Dot(t, XMVectorPermute(RX0, XMVectorNegate(RX0))); + d_A = XMVector3Dot(h_A, XMVectorSwizzle(ARX0)); + d_B = XMVector3Dot(h_B, XMVectorSwizzle(AR2X)); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = a(w) x b(v) = (-r11, r01, 0) + // d(A) = h(A) dot abs(r11, r01, 0) + // d(B) = h(B) dot abs(r22, 0, r20) + d = XMVector3Dot(t, XMVectorPermute(RX1, XMVectorNegate(RX1))); + d_A = XMVector3Dot(h_A, XMVectorSwizzle(ARX1)); + d_B = XMVector3Dot(h_B, XMVectorSwizzle(AR2X)); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // l = a(w) x b(w) = (-r12, r02, 0) + // d(A) = h(A) dot abs(r12, r02, 0) + // d(B) = h(B) dot abs(r21, r20, 0) + d = XMVector3Dot(t, XMVectorPermute(RX2, XMVectorNegate(RX2))); + d_A = XMVector3Dot(h_A, XMVectorSwizzle(ARX2)); + d_B = XMVector3Dot(h_B, XMVectorSwizzle(AR2X)); + NoIntersection = XMVectorOrInt(NoIntersection, + XMVectorGreater(XMVectorAbs(d), XMVectorAdd(d_A, d_B))); + + // No seperating axis found, boxes must intersect. + return XMVector4NotEqualInt(NoIntersection, XMVectorTrueInt()) ? true : false; +} + + +//----------------------------------------------------------------------------- +// Frustum vs. oriented box test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingOrientedBox::Intersects(const BoundingFrustum& fr) const noexcept +{ + return fr.Intersects(*this); +} + + +//----------------------------------------------------------------------------- +// Triangle vs. oriented box test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool XM_CALLCONV BoundingOrientedBox::Intersects(FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) const noexcept +{ + // Load the box center & orientation. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + // Transform the triangle vertices into the space of the box. + XMVECTOR TV0 = XMVector3InverseRotate(XMVectorSubtract(V0, vCenter), vOrientation); + XMVECTOR TV1 = XMVector3InverseRotate(XMVectorSubtract(V1, vCenter), vOrientation); + XMVECTOR TV2 = XMVector3InverseRotate(XMVectorSubtract(V2, vCenter), vOrientation); + + BoundingBox box; + box.Center = XMFLOAT3(0.0f, 0.0f, 0.0f); + box.Extents = Extents; + + // Use the triangle vs axis aligned box intersection routine. + return box.Intersects(TV0, TV1, TV2); +} + + +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline PlaneIntersectionType XM_CALLCONV BoundingOrientedBox::Intersects(FXMVECTOR Plane) const noexcept +{ + assert(DirectX::Internal::XMPlaneIsUnit(Plane)); + + // Load the box. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + XMVECTOR BoxOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(BoxOrientation)); + + // Set w of the center to one so we can dot4 with a plane. + vCenter = XMVectorInsert<0, 0, 0, 0, 1>(vCenter, XMVectorSplatOne()); + + // Build the 3x3 rotation matrix that defines the box axes. + XMMATRIX R = XMMatrixRotationQuaternion(BoxOrientation); + + XMVECTOR Outside, Inside; + DirectX::Internal::FastIntersectOrientedBoxPlane(vCenter, vExtents, R.r[0], R.r[1], R.r[2], Plane, Outside, Inside); + + // If the box is outside any plane it is outside. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return FRONT; + + // If the box is inside all planes it is inside. + if (XMVector4EqualInt(Inside, XMVectorTrueInt())) + return BACK; + + // The box is not inside all planes or outside a plane it intersects. + return INTERSECTING; +} + + +//----------------------------------------------------------------------------- +// Compute the intersection of a ray (Origin, Direction) with an oriented box +// using the slabs method. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool XM_CALLCONV BoundingOrientedBox::Intersects(FXMVECTOR Origin, FXMVECTOR Direction, float& Dist) const noexcept +{ + assert(DirectX::Internal::XMVector3IsUnit(Direction)); + + static const XMVECTORU32 SelectY = { { { XM_SELECT_0, XM_SELECT_1, XM_SELECT_0, XM_SELECT_0 } } }; + static const XMVECTORU32 SelectZ = { { { XM_SELECT_0, XM_SELECT_0, XM_SELECT_1, XM_SELECT_0 } } }; + + // Load the box. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Get the boxes normalized side directions. + XMMATRIX R = XMMatrixRotationQuaternion(vOrientation); + + // Adjust ray origin to be relative to center of the box. + XMVECTOR TOrigin = XMVectorSubtract(vCenter, Origin); + + // Compute the dot product againt each axis of the box. + XMVECTOR AxisDotOrigin = XMVector3Dot(R.r[0], TOrigin); + AxisDotOrigin = XMVectorSelect(AxisDotOrigin, XMVector3Dot(R.r[1], TOrigin), SelectY); + AxisDotOrigin = XMVectorSelect(AxisDotOrigin, XMVector3Dot(R.r[2], TOrigin), SelectZ); + + XMVECTOR AxisDotDirection = XMVector3Dot(R.r[0], Direction); + AxisDotDirection = XMVectorSelect(AxisDotDirection, XMVector3Dot(R.r[1], Direction), SelectY); + AxisDotDirection = XMVectorSelect(AxisDotDirection, XMVector3Dot(R.r[2], Direction), SelectZ); + + // if (fabs(AxisDotDirection) <= Epsilon) the ray is nearly parallel to the slab. + XMVECTOR IsParallel = XMVectorLessOrEqual(XMVectorAbs(AxisDotDirection), g_RayEpsilon); + + // Test against all three axes simultaneously. + XMVECTOR InverseAxisDotDirection = XMVectorReciprocal(AxisDotDirection); + XMVECTOR t1 = XMVectorMultiply(XMVectorSubtract(AxisDotOrigin, vExtents), InverseAxisDotDirection); + XMVECTOR t2 = XMVectorMultiply(XMVectorAdd(AxisDotOrigin, vExtents), InverseAxisDotDirection); + + // Compute the max of min(t1,t2) and the min of max(t1,t2) ensuring we don't + // use the results from any directions parallel to the slab. + XMVECTOR t_min = XMVectorSelect(XMVectorMin(t1, t2), g_FltMin, IsParallel); + XMVECTOR t_max = XMVectorSelect(XMVectorMax(t1, t2), g_FltMax, IsParallel); + + // t_min.x = maximum( t_min.x, t_min.y, t_min.z ); + // t_max.x = minimum( t_max.x, t_max.y, t_max.z ); + t_min = XMVectorMax(t_min, XMVectorSplatY(t_min)); // x = max(x,y) + t_min = XMVectorMax(t_min, XMVectorSplatZ(t_min)); // x = max(max(x,y),z) + t_max = XMVectorMin(t_max, XMVectorSplatY(t_max)); // x = min(x,y) + t_max = XMVectorMin(t_max, XMVectorSplatZ(t_max)); // x = min(min(x,y),z) + + // if ( t_min > t_max ) return false; + XMVECTOR NoIntersection = XMVectorGreater(XMVectorSplatX(t_min), XMVectorSplatX(t_max)); + + // if ( t_max < 0.0f ) return false; + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(XMVectorSplatX(t_max), XMVectorZero())); + + // if (IsParallel && (-Extents > AxisDotOrigin || Extents < AxisDotOrigin)) return false; + XMVECTOR ParallelOverlap = XMVectorInBounds(AxisDotOrigin, vExtents); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorAndCInt(IsParallel, ParallelOverlap)); + + if (!DirectX::Internal::XMVector3AnyTrue(NoIntersection)) + { + // Store the x-component to *pDist + XMStoreFloat(&Dist, t_min); + return true; + } + + Dist = 0.f; + return false; +} + + +//----------------------------------------------------------------------------- +// Test an oriented box vs 6 planes (typically forming a frustum). +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingOrientedBox::ContainedBy( + FXMVECTOR Plane0, FXMVECTOR Plane1, FXMVECTOR Plane2, + GXMVECTOR Plane3, + HXMVECTOR Plane4, HXMVECTOR Plane5) const noexcept +{ + // Load the box. + XMVECTOR vCenter = XMLoadFloat3(&Center); + XMVECTOR vExtents = XMLoadFloat3(&Extents); + XMVECTOR BoxOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(BoxOrientation)); + + // Set w of the center to one so we can dot4 with a plane. + vCenter = XMVectorInsert<0, 0, 0, 0, 1>(vCenter, XMVectorSplatOne()); + + // Build the 3x3 rotation matrix that defines the box axes. + XMMATRIX R = XMMatrixRotationQuaternion(BoxOrientation); + + XMVECTOR Outside, Inside; + + // Test against each plane. + DirectX::Internal::FastIntersectOrientedBoxPlane(vCenter, vExtents, R.r[0], R.r[1], R.r[2], Plane0, Outside, Inside); + + XMVECTOR AnyOutside = Outside; + XMVECTOR AllInside = Inside; + + DirectX::Internal::FastIntersectOrientedBoxPlane(vCenter, vExtents, R.r[0], R.r[1], R.r[2], Plane1, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectOrientedBoxPlane(vCenter, vExtents, R.r[0], R.r[1], R.r[2], Plane2, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectOrientedBoxPlane(vCenter, vExtents, R.r[0], R.r[1], R.r[2], Plane3, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectOrientedBoxPlane(vCenter, vExtents, R.r[0], R.r[1], R.r[2], Plane4, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectOrientedBoxPlane(vCenter, vExtents, R.r[0], R.r[1], R.r[2], Plane5, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + // If the box is outside any plane it is outside. + if (XMVector4EqualInt(AnyOutside, XMVectorTrueInt())) + return DISJOINT; + + // If the box is inside all planes it is inside. + if (XMVector4EqualInt(AllInside, XMVectorTrueInt())) + return CONTAINS; + + // The box is not inside all planes or outside a plane, it may intersect. + return INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Create oriented bounding box from axis-aligned bounding box +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingOrientedBox::CreateFromBoundingBox(BoundingOrientedBox& Out, const BoundingBox& box) noexcept +{ + Out.Center = box.Center; + Out.Extents = box.Extents; + Out.Orientation = XMFLOAT4(0.f, 0.f, 0.f, 1.f); +} + + +//----------------------------------------------------------------------------- +// Find the approximate minimum oriented bounding box containing a set of +// points. Exact computation of minimum oriented bounding box is possible but +// is slower and requires a more complex algorithm. +// The algorithm works by computing the inertia tensor of the points and then +// using the eigenvectors of the intertia tensor as the axes of the box. +// Computing the intertia tensor of the convex hull of the points will usually +// result in better bounding box but the computation is more complex. +// Exact computation of the minimum oriented bounding box is possible but the +// best know algorithm is O(N^3) and is significanly more complex to implement. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingOrientedBox::CreateFromPoints(BoundingOrientedBox& Out, size_t Count, const XMFLOAT3* pPoints, size_t Stride) noexcept +{ + assert(Count > 0); + assert(pPoints != nullptr); + + XMVECTOR CenterOfMass = XMVectorZero(); + + // Compute the center of mass and inertia tensor of the points. + for (size_t i = 0; i < Count; ++i) + { + XMVECTOR Point = XMLoadFloat3(reinterpret_cast(reinterpret_cast(pPoints) + i * Stride)); + + CenterOfMass = XMVectorAdd(CenterOfMass, Point); + } + + CenterOfMass = XMVectorMultiply(CenterOfMass, XMVectorReciprocal(XMVectorReplicate(float(Count)))); + + // Compute the inertia tensor of the points around the center of mass. + // Using the center of mass is not strictly necessary, but will hopefully + // improve the stability of finding the eigenvectors. + XMVECTOR XX_YY_ZZ = XMVectorZero(); + XMVECTOR XY_XZ_YZ = XMVectorZero(); + + for (size_t i = 0; i < Count; ++i) + { + XMVECTOR Point = XMVectorSubtract(XMLoadFloat3(reinterpret_cast(reinterpret_cast(pPoints) + i * Stride)), CenterOfMass); + + XX_YY_ZZ = XMVectorAdd(XX_YY_ZZ, XMVectorMultiply(Point, Point)); + + XMVECTOR XXY = XMVectorSwizzle(Point); + XMVECTOR YZZ = XMVectorSwizzle(Point); + + XY_XZ_YZ = XMVectorAdd(XY_XZ_YZ, XMVectorMultiply(XXY, YZZ)); + } + + XMVECTOR v1, v2, v3; + + // Compute the eigenvectors of the inertia tensor. + DirectX::Internal::CalculateEigenVectorsFromCovarianceMatrix(XMVectorGetX(XX_YY_ZZ), XMVectorGetY(XX_YY_ZZ), + XMVectorGetZ(XX_YY_ZZ), + XMVectorGetX(XY_XZ_YZ), XMVectorGetY(XY_XZ_YZ), + XMVectorGetZ(XY_XZ_YZ), + &v1, &v2, &v3); + + // Put them in a matrix. + XMMATRIX R; + + R.r[0] = XMVectorSetW(v1, 0.f); + R.r[1] = XMVectorSetW(v2, 0.f); + R.r[2] = XMVectorSetW(v3, 0.f); + R.r[3] = g_XMIdentityR3.v; + + // Multiply by -1 to convert the matrix into a right handed coordinate + // system (Det ~= 1) in case the eigenvectors form a left handed + // coordinate system (Det ~= -1) because XMQuaternionRotationMatrix only + // works on right handed matrices. + XMVECTOR Det = XMMatrixDeterminant(R); + + if (XMVector4Less(Det, XMVectorZero())) + { + R.r[0] = XMVectorMultiply(R.r[0], g_XMNegativeOne.v); + R.r[1] = XMVectorMultiply(R.r[1], g_XMNegativeOne.v); + R.r[2] = XMVectorMultiply(R.r[2], g_XMNegativeOne.v); + } + + // Get the rotation quaternion from the matrix. + XMVECTOR vOrientation = XMQuaternionRotationMatrix(R); + + // Make sure it is normal (in case the vectors are slightly non-orthogonal). + vOrientation = XMQuaternionNormalize(vOrientation); + + // Rebuild the rotation matrix from the quaternion. + R = XMMatrixRotationQuaternion(vOrientation); + + // Build the rotation into the rotated space. + XMMATRIX InverseR = XMMatrixTranspose(R); + + // Find the minimum OBB using the eigenvectors as the axes. + XMVECTOR vMin, vMax; + + vMin = vMax = XMVector3TransformNormal(XMLoadFloat3(pPoints), InverseR); + + for (size_t i = 1; i < Count; ++i) + { + XMVECTOR Point = XMVector3TransformNormal(XMLoadFloat3(reinterpret_cast(reinterpret_cast(pPoints) + i * Stride)), + InverseR); + + vMin = XMVectorMin(vMin, Point); + vMax = XMVectorMax(vMax, Point); + } + + // Rotate the center into world space. + XMVECTOR vCenter = XMVectorScale(XMVectorAdd(vMin, vMax), 0.5f); + vCenter = XMVector3TransformNormal(vCenter, R); + + // Store center, extents, and orientation. + XMStoreFloat3(&Out.Center, vCenter); + XMStoreFloat3(&Out.Extents, XMVectorScale(XMVectorSubtract(vMax, vMin), 0.5f)); + XMStoreFloat4(&Out.Orientation, vOrientation); +} + + +/**************************************************************************** + * + * BoundingFrustum + * + ****************************************************************************/ + +_Use_decl_annotations_ +inline BoundingFrustum::BoundingFrustum(CXMMATRIX Projection, bool rhcoords) noexcept +{ + CreateFromMatrix(*this, Projection, rhcoords); +} + + +//----------------------------------------------------------------------------- +// Transform a frustum by an angle preserving transform. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void XM_CALLCONV BoundingFrustum::Transform(BoundingFrustum& Out, FXMMATRIX M) const noexcept +{ + // Load the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Composite the frustum rotation and the transform rotation + XMMATRIX nM; + nM.r[0] = XMVector3Normalize(M.r[0]); + nM.r[1] = XMVector3Normalize(M.r[1]); + nM.r[2] = XMVector3Normalize(M.r[2]); + nM.r[3] = g_XMIdentityR3; + XMVECTOR Rotation = XMQuaternionRotationMatrix(nM); + vOrientation = XMQuaternionMultiply(vOrientation, Rotation); + + // Transform the center. + vOrigin = XMVector3Transform(vOrigin, M); + + // Store the frustum. + XMStoreFloat3(&Out.Origin, vOrigin); + XMStoreFloat4(&Out.Orientation, vOrientation); + + // Scale the near and far distances (the slopes remain the same). + XMVECTOR dX = XMVector3Dot(M.r[0], M.r[0]); + XMVECTOR dY = XMVector3Dot(M.r[1], M.r[1]); + XMVECTOR dZ = XMVector3Dot(M.r[2], M.r[2]); + + XMVECTOR d = XMVectorMax(dX, XMVectorMax(dY, dZ)); + float Scale = sqrtf(XMVectorGetX(d)); + + Out.Near = Near * Scale; + Out.Far = Far * Scale; + + // Copy the slopes. + Out.RightSlope = RightSlope; + Out.LeftSlope = LeftSlope; + Out.TopSlope = TopSlope; + Out.BottomSlope = BottomSlope; +} + +_Use_decl_annotations_ +inline void XM_CALLCONV BoundingFrustum::Transform(BoundingFrustum& Out, float Scale, FXMVECTOR Rotation, FXMVECTOR Translation) const noexcept +{ + assert(DirectX::Internal::XMQuaternionIsUnit(Rotation)); + + // Load the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Composite the frustum rotation and the transform rotation. + vOrientation = XMQuaternionMultiply(vOrientation, Rotation); + + // Transform the origin. + vOrigin = XMVectorAdd(XMVector3Rotate(XMVectorScale(vOrigin, Scale), Rotation), Translation); + + // Store the frustum. + XMStoreFloat3(&Out.Origin, vOrigin); + XMStoreFloat4(&Out.Orientation, vOrientation); + + // Scale the near and far distances (the slopes remain the same). + Out.Near = Near * Scale; + Out.Far = Far * Scale; + + // Copy the slopes. + Out.RightSlope = RightSlope; + Out.LeftSlope = LeftSlope; + Out.TopSlope = TopSlope; + Out.BottomSlope = BottomSlope; +} + + +//----------------------------------------------------------------------------- +// Get the corner points of the frustum +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingFrustum::GetCorners(XMFLOAT3* Corners) const noexcept +{ + assert(Corners != nullptr); + + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Build the corners of the frustum. + XMVECTOR vRightTop = XMVectorSet(RightSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR vRightBottom = XMVectorSet(RightSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR vLeftTop = XMVectorSet(LeftSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR vLeftBottom = XMVectorSet(LeftSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR vNear = XMVectorReplicatePtr(&Near); + XMVECTOR vFar = XMVectorReplicatePtr(&Far); + + // Returns 8 corners position of bounding frustum. + // Near Far + // 0----1 4----5 + // | | | | + // | | | | + // 3----2 7----6 + + XMVECTOR vCorners[CORNER_COUNT]; + vCorners[0] = XMVectorMultiply(vLeftTop, vNear); + vCorners[1] = XMVectorMultiply(vRightTop, vNear); + vCorners[2] = XMVectorMultiply(vRightBottom, vNear); + vCorners[3] = XMVectorMultiply(vLeftBottom, vNear); + vCorners[4] = XMVectorMultiply(vLeftTop, vFar); + vCorners[5] = XMVectorMultiply(vRightTop, vFar); + vCorners[6] = XMVectorMultiply(vRightBottom, vFar); + vCorners[7] = XMVectorMultiply(vLeftBottom, vFar); + + for (size_t i = 0; i < CORNER_COUNT; ++i) + { + XMVECTOR C = XMVectorAdd(XMVector3Rotate(vCorners[i], vOrientation), vOrigin); + XMStoreFloat3(&Corners[i], C); + } +} + + +//----------------------------------------------------------------------------- +// Point in frustum test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingFrustum::Contains(FXMVECTOR Point) const noexcept +{ + // Build frustum planes. + XMVECTOR Planes[6]; + Planes[0] = XMVectorSet(0.0f, 0.0f, -1.0f, Near); + Planes[1] = XMVectorSet(0.0f, 0.0f, 1.0f, -Far); + Planes[2] = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + Planes[3] = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + Planes[4] = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + Planes[5] = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + + // Load origin and orientation. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Transform point into local space of frustum. + XMVECTOR TPoint = XMVector3InverseRotate(XMVectorSubtract(Point, vOrigin), vOrientation); + + // Set w to one. + TPoint = XMVectorInsert<0, 0, 0, 0, 1>(TPoint, XMVectorSplatOne()); + + XMVECTOR Zero = XMVectorZero(); + XMVECTOR Outside = Zero; + + // Test point against each plane of the frustum. + for (size_t i = 0; i < 6; ++i) + { + XMVECTOR Dot = XMVector4Dot(TPoint, Planes[i]); + Outside = XMVectorOrInt(Outside, XMVectorGreater(Dot, Zero)); + } + + return XMVector4NotEqualInt(Outside, XMVectorTrueInt()) ? CONTAINS : DISJOINT; +} + + +//----------------------------------------------------------------------------- +// Triangle vs frustum test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingFrustum::Contains(FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) const noexcept +{ + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + // Create 6 planes (do it inline to encourage use of registers) + XMVECTOR NearPlane = XMVectorSet(0.0f, 0.0f, -1.0f, Near); + NearPlane = DirectX::Internal::XMPlaneTransform(NearPlane, vOrientation, vOrigin); + NearPlane = XMPlaneNormalize(NearPlane); + + XMVECTOR FarPlane = XMVectorSet(0.0f, 0.0f, 1.0f, -Far); + FarPlane = DirectX::Internal::XMPlaneTransform(FarPlane, vOrientation, vOrigin); + FarPlane = XMPlaneNormalize(FarPlane); + + XMVECTOR RightPlane = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + RightPlane = DirectX::Internal::XMPlaneTransform(RightPlane, vOrientation, vOrigin); + RightPlane = XMPlaneNormalize(RightPlane); + + XMVECTOR LeftPlane = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + LeftPlane = DirectX::Internal::XMPlaneTransform(LeftPlane, vOrientation, vOrigin); + LeftPlane = XMPlaneNormalize(LeftPlane); + + XMVECTOR TopPlane = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + TopPlane = DirectX::Internal::XMPlaneTransform(TopPlane, vOrientation, vOrigin); + TopPlane = XMPlaneNormalize(TopPlane); + + XMVECTOR BottomPlane = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + BottomPlane = DirectX::Internal::XMPlaneTransform(BottomPlane, vOrientation, vOrigin); + BottomPlane = XMPlaneNormalize(BottomPlane); + + return TriangleTests::ContainedBy(V0, V1, V2, NearPlane, FarPlane, RightPlane, LeftPlane, TopPlane, BottomPlane); +} + + +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingFrustum::Contains(const BoundingSphere& sh) const noexcept +{ + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + // Create 6 planes (do it inline to encourage use of registers) + XMVECTOR NearPlane = XMVectorSet(0.0f, 0.0f, -1.0f, Near); + NearPlane = DirectX::Internal::XMPlaneTransform(NearPlane, vOrientation, vOrigin); + NearPlane = XMPlaneNormalize(NearPlane); + + XMVECTOR FarPlane = XMVectorSet(0.0f, 0.0f, 1.0f, -Far); + FarPlane = DirectX::Internal::XMPlaneTransform(FarPlane, vOrientation, vOrigin); + FarPlane = XMPlaneNormalize(FarPlane); + + XMVECTOR RightPlane = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + RightPlane = DirectX::Internal::XMPlaneTransform(RightPlane, vOrientation, vOrigin); + RightPlane = XMPlaneNormalize(RightPlane); + + XMVECTOR LeftPlane = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + LeftPlane = DirectX::Internal::XMPlaneTransform(LeftPlane, vOrientation, vOrigin); + LeftPlane = XMPlaneNormalize(LeftPlane); + + XMVECTOR TopPlane = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + TopPlane = DirectX::Internal::XMPlaneTransform(TopPlane, vOrientation, vOrigin); + TopPlane = XMPlaneNormalize(TopPlane); + + XMVECTOR BottomPlane = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + BottomPlane = DirectX::Internal::XMPlaneTransform(BottomPlane, vOrientation, vOrigin); + BottomPlane = XMPlaneNormalize(BottomPlane); + + return sh.ContainedBy(NearPlane, FarPlane, RightPlane, LeftPlane, TopPlane, BottomPlane); +} + + +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingFrustum::Contains(const BoundingBox& box) const noexcept +{ + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + // Create 6 planes (do it inline to encourage use of registers) + XMVECTOR NearPlane = XMVectorSet(0.0f, 0.0f, -1.0f, Near); + NearPlane = DirectX::Internal::XMPlaneTransform(NearPlane, vOrientation, vOrigin); + NearPlane = XMPlaneNormalize(NearPlane); + + XMVECTOR FarPlane = XMVectorSet(0.0f, 0.0f, 1.0f, -Far); + FarPlane = DirectX::Internal::XMPlaneTransform(FarPlane, vOrientation, vOrigin); + FarPlane = XMPlaneNormalize(FarPlane); + + XMVECTOR RightPlane = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + RightPlane = DirectX::Internal::XMPlaneTransform(RightPlane, vOrientation, vOrigin); + RightPlane = XMPlaneNormalize(RightPlane); + + XMVECTOR LeftPlane = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + LeftPlane = DirectX::Internal::XMPlaneTransform(LeftPlane, vOrientation, vOrigin); + LeftPlane = XMPlaneNormalize(LeftPlane); + + XMVECTOR TopPlane = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + TopPlane = DirectX::Internal::XMPlaneTransform(TopPlane, vOrientation, vOrigin); + TopPlane = XMPlaneNormalize(TopPlane); + + XMVECTOR BottomPlane = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + BottomPlane = DirectX::Internal::XMPlaneTransform(BottomPlane, vOrientation, vOrigin); + BottomPlane = XMPlaneNormalize(BottomPlane); + + return box.ContainedBy(NearPlane, FarPlane, RightPlane, LeftPlane, TopPlane, BottomPlane); +} + + +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingFrustum::Contains(const BoundingOrientedBox& box) const noexcept +{ + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + // Create 6 planes (do it inline to encourage use of registers) + XMVECTOR NearPlane = XMVectorSet(0.0f, 0.0f, -1.0f, Near); + NearPlane = DirectX::Internal::XMPlaneTransform(NearPlane, vOrientation, vOrigin); + NearPlane = XMPlaneNormalize(NearPlane); + + XMVECTOR FarPlane = XMVectorSet(0.0f, 0.0f, 1.0f, -Far); + FarPlane = DirectX::Internal::XMPlaneTransform(FarPlane, vOrientation, vOrigin); + FarPlane = XMPlaneNormalize(FarPlane); + + XMVECTOR RightPlane = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + RightPlane = DirectX::Internal::XMPlaneTransform(RightPlane, vOrientation, vOrigin); + RightPlane = XMPlaneNormalize(RightPlane); + + XMVECTOR LeftPlane = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + LeftPlane = DirectX::Internal::XMPlaneTransform(LeftPlane, vOrientation, vOrigin); + LeftPlane = XMPlaneNormalize(LeftPlane); + + XMVECTOR TopPlane = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + TopPlane = DirectX::Internal::XMPlaneTransform(TopPlane, vOrientation, vOrigin); + TopPlane = XMPlaneNormalize(TopPlane); + + XMVECTOR BottomPlane = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + BottomPlane = DirectX::Internal::XMPlaneTransform(BottomPlane, vOrientation, vOrigin); + BottomPlane = XMPlaneNormalize(BottomPlane); + + return box.ContainedBy(NearPlane, FarPlane, RightPlane, LeftPlane, TopPlane, BottomPlane); +} + + +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType BoundingFrustum::Contains(const BoundingFrustum& fr) const noexcept +{ + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + // Create 6 planes (do it inline to encourage use of registers) + XMVECTOR NearPlane = XMVectorSet(0.0f, 0.0f, -1.0f, Near); + NearPlane = DirectX::Internal::XMPlaneTransform(NearPlane, vOrientation, vOrigin); + NearPlane = XMPlaneNormalize(NearPlane); + + XMVECTOR FarPlane = XMVectorSet(0.0f, 0.0f, 1.0f, -Far); + FarPlane = DirectX::Internal::XMPlaneTransform(FarPlane, vOrientation, vOrigin); + FarPlane = XMPlaneNormalize(FarPlane); + + XMVECTOR RightPlane = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + RightPlane = DirectX::Internal::XMPlaneTransform(RightPlane, vOrientation, vOrigin); + RightPlane = XMPlaneNormalize(RightPlane); + + XMVECTOR LeftPlane = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + LeftPlane = DirectX::Internal::XMPlaneTransform(LeftPlane, vOrientation, vOrigin); + LeftPlane = XMPlaneNormalize(LeftPlane); + + XMVECTOR TopPlane = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + TopPlane = DirectX::Internal::XMPlaneTransform(TopPlane, vOrientation, vOrigin); + TopPlane = XMPlaneNormalize(TopPlane); + + XMVECTOR BottomPlane = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + BottomPlane = DirectX::Internal::XMPlaneTransform(BottomPlane, vOrientation, vOrigin); + BottomPlane = XMPlaneNormalize(BottomPlane); + + return fr.ContainedBy(NearPlane, FarPlane, RightPlane, LeftPlane, TopPlane, BottomPlane); +} + + +//----------------------------------------------------------------------------- +// Exact sphere vs frustum test. The algorithm first checks the sphere against +// the planes of the frustum, then if the plane checks were indeterminate finds +// the nearest feature (plane, line, point) on the frustum to the center of the +// sphere and compares the distance to the nearest feature to the radius of the +// sphere +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingFrustum::Intersects(const BoundingSphere& sh) const noexcept +{ + XMVECTOR Zero = XMVectorZero(); + + // Build the frustum planes. + XMVECTOR Planes[6]; + Planes[0] = XMVectorSet(0.0f, 0.0f, -1.0f, Near); + Planes[1] = XMVectorSet(0.0f, 0.0f, 1.0f, -Far); + Planes[2] = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + Planes[3] = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + Planes[4] = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + Planes[5] = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + + // Normalize the planes so we can compare to the sphere radius. + Planes[2] = XMVector3Normalize(Planes[2]); + Planes[3] = XMVector3Normalize(Planes[3]); + Planes[4] = XMVector3Normalize(Planes[4]); + Planes[5] = XMVector3Normalize(Planes[5]); + + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Load the sphere. + XMVECTOR vCenter = XMLoadFloat3(&sh.Center); + XMVECTOR vRadius = XMVectorReplicatePtr(&sh.Radius); + + // Transform the center of the sphere into the local space of frustum. + vCenter = XMVector3InverseRotate(XMVectorSubtract(vCenter, vOrigin), vOrientation); + + // Set w of the center to one so we can dot4 with the plane. + vCenter = XMVectorInsert<0, 0, 0, 0, 1>(vCenter, XMVectorSplatOne()); + + // Check against each plane of the frustum. + XMVECTOR Outside = XMVectorFalseInt(); + XMVECTOR InsideAll = XMVectorTrueInt(); + XMVECTOR CenterInsideAll = XMVectorTrueInt(); + + XMVECTOR Dist[6]; + + for (size_t i = 0; i < 6; ++i) + { + Dist[i] = XMVector4Dot(vCenter, Planes[i]); + + // Outside the plane? + Outside = XMVectorOrInt(Outside, XMVectorGreater(Dist[i], vRadius)); + + // Fully inside the plane? + InsideAll = XMVectorAndInt(InsideAll, XMVectorLessOrEqual(Dist[i], XMVectorNegate(vRadius))); + + // Check if the center is inside the plane. + CenterInsideAll = XMVectorAndInt(CenterInsideAll, XMVectorLessOrEqual(Dist[i], Zero)); + } + + // If the sphere is outside any of the planes it is outside. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return false; + + // If the sphere is inside all planes it is fully inside. + if (XMVector4EqualInt(InsideAll, XMVectorTrueInt())) + return true; + + // If the center of the sphere is inside all planes and the sphere intersects + // one or more planes then it must intersect. + if (XMVector4EqualInt(CenterInsideAll, XMVectorTrueInt())) + return true; + + // The sphere may be outside the frustum or intersecting the frustum. + // Find the nearest feature (face, edge, or corner) on the frustum + // to the sphere. + + // The faces adjacent to each face are: + static const size_t adjacent_faces[6][4] = + { + { 2, 3, 4, 5 }, // 0 + { 2, 3, 4, 5 }, // 1 + { 0, 1, 4, 5 }, // 2 + { 0, 1, 4, 5 }, // 3 + { 0, 1, 2, 3 }, // 4 + { 0, 1, 2, 3 } + }; // 5 + + XMVECTOR Intersects = XMVectorFalseInt(); + + // Check to see if the nearest feature is one of the planes. + for (size_t i = 0; i < 6; ++i) + { + // Find the nearest point on the plane to the center of the sphere. + XMVECTOR Point = XMVectorNegativeMultiplySubtract(Planes[i], Dist[i], vCenter); + + // Set w of the point to one. + Point = XMVectorInsert<0, 0, 0, 0, 1>(Point, XMVectorSplatOne()); + + // If the point is inside the face (inside the adjacent planes) then + // this plane is the nearest feature. + XMVECTOR InsideFace = XMVectorTrueInt(); + + for (size_t j = 0; j < 4; j++) + { + size_t plane_index = adjacent_faces[i][j]; + + InsideFace = XMVectorAndInt(InsideFace, + XMVectorLessOrEqual(XMVector4Dot(Point, Planes[plane_index]), Zero)); + } + + // Since we have already checked distance from the plane we know that the + // sphere must intersect if this plane is the nearest feature. + Intersects = XMVectorOrInt(Intersects, + XMVectorAndInt(XMVectorGreater(Dist[i], Zero), InsideFace)); + } + + if (XMVector4EqualInt(Intersects, XMVectorTrueInt())) + return true; + + // Build the corners of the frustum. + XMVECTOR vRightTop = XMVectorSet(RightSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR vRightBottom = XMVectorSet(RightSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR vLeftTop = XMVectorSet(LeftSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR vLeftBottom = XMVectorSet(LeftSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR vNear = XMVectorReplicatePtr(&Near); + XMVECTOR vFar = XMVectorReplicatePtr(&Far); + + XMVECTOR Corners[CORNER_COUNT]; + Corners[0] = XMVectorMultiply(vRightTop, vNear); + Corners[1] = XMVectorMultiply(vRightBottom, vNear); + Corners[2] = XMVectorMultiply(vLeftTop, vNear); + Corners[3] = XMVectorMultiply(vLeftBottom, vNear); + Corners[4] = XMVectorMultiply(vRightTop, vFar); + Corners[5] = XMVectorMultiply(vRightBottom, vFar); + Corners[6] = XMVectorMultiply(vLeftTop, vFar); + Corners[7] = XMVectorMultiply(vLeftBottom, vFar); + + // The Edges are: + static const size_t edges[12][2] = + { + { 0, 1 }, { 2, 3 }, { 0, 2 }, { 1, 3 }, // Near plane + { 4, 5 }, { 6, 7 }, { 4, 6 }, { 5, 7 }, // Far plane + { 0, 4 }, { 1, 5 }, { 2, 6 }, { 3, 7 }, + }; // Near to far + + XMVECTOR RadiusSq = XMVectorMultiply(vRadius, vRadius); + + // Check to see if the nearest feature is one of the edges (or corners). + for (size_t i = 0; i < 12; ++i) + { + size_t ei0 = edges[i][0]; + size_t ei1 = edges[i][1]; + + // Find the nearest point on the edge to the center of the sphere. + // The corners of the frustum are included as the endpoints of the edges. + XMVECTOR Point = DirectX::Internal::PointOnLineSegmentNearestPoint(Corners[ei0], Corners[ei1], vCenter); + + XMVECTOR Delta = XMVectorSubtract(vCenter, Point); + + XMVECTOR DistSq = XMVector3Dot(Delta, Delta); + + // If the distance to the center of the sphere to the point is less than + // the radius of the sphere then it must intersect. + Intersects = XMVectorOrInt(Intersects, XMVectorLessOrEqual(DistSq, RadiusSq)); + } + + if (XMVector4EqualInt(Intersects, XMVectorTrueInt())) + return true; + + // The sphere must be outside the frustum. + return false; +} + + +//----------------------------------------------------------------------------- +// Exact axis aligned box vs frustum test. Constructs an oriented box and uses +// the oriented box vs frustum test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingFrustum::Intersects(const BoundingBox& box) const noexcept +{ + // Make the axis aligned box oriented and do an OBB vs frustum test. + BoundingOrientedBox obox(box.Center, box.Extents, XMFLOAT4(0.f, 0.f, 0.f, 1.f)); + return Intersects(obox); +} + + +//----------------------------------------------------------------------------- +// Exact oriented box vs frustum test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingFrustum::Intersects(const BoundingOrientedBox& box) const noexcept +{ + static const XMVECTORU32 SelectY = { { { XM_SELECT_0, XM_SELECT_1, XM_SELECT_0, XM_SELECT_0 } } }; + static const XMVECTORU32 SelectZ = { { { XM_SELECT_0, XM_SELECT_0, XM_SELECT_1, XM_SELECT_0 } } }; + + XMVECTOR Zero = XMVectorZero(); + + // Build the frustum planes. + XMVECTOR Planes[6]; + Planes[0] = XMVectorSet(0.0f, 0.0f, -1.0f, Near); + Planes[1] = XMVectorSet(0.0f, 0.0f, 1.0f, -Far); + Planes[2] = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + Planes[3] = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + Planes[4] = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + Planes[5] = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR FrustumOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(FrustumOrientation)); + + // Load the box. + XMVECTOR Center = XMLoadFloat3(&box.Center); + XMVECTOR Extents = XMLoadFloat3(&box.Extents); + XMVECTOR BoxOrientation = XMLoadFloat4(&box.Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(BoxOrientation)); + + // Transform the oriented box into the space of the frustum in order to + // minimize the number of transforms we have to do. + Center = XMVector3InverseRotate(XMVectorSubtract(Center, vOrigin), FrustumOrientation); + BoxOrientation = XMQuaternionMultiply(BoxOrientation, XMQuaternionConjugate(FrustumOrientation)); + + // Set w of the center to one so we can dot4 with the plane. + Center = XMVectorInsert<0, 0, 0, 0, 1>(Center, XMVectorSplatOne()); + + // Build the 3x3 rotation matrix that defines the box axes. + XMMATRIX R = XMMatrixRotationQuaternion(BoxOrientation); + + // Check against each plane of the frustum. + XMVECTOR Outside = XMVectorFalseInt(); + XMVECTOR InsideAll = XMVectorTrueInt(); + XMVECTOR CenterInsideAll = XMVectorTrueInt(); + + for (size_t i = 0; i < 6; ++i) + { + // Compute the distance to the center of the box. + XMVECTOR Dist = XMVector4Dot(Center, Planes[i]); + + // Project the axes of the box onto the normal of the plane. Half the + // length of the projection (sometime called the "radius") is equal to + // h(u) * abs(n dot b(u))) + h(v) * abs(n dot b(v)) + h(w) * abs(n dot b(w)) + // where h(i) are extents of the box, n is the plane normal, and b(i) are the + // axes of the box. + XMVECTOR Radius = XMVector3Dot(Planes[i], R.r[0]); + Radius = XMVectorSelect(Radius, XMVector3Dot(Planes[i], R.r[1]), SelectY); + Radius = XMVectorSelect(Radius, XMVector3Dot(Planes[i], R.r[2]), SelectZ); + Radius = XMVector3Dot(Extents, XMVectorAbs(Radius)); + + // Outside the plane? + Outside = XMVectorOrInt(Outside, XMVectorGreater(Dist, Radius)); + + // Fully inside the plane? + InsideAll = XMVectorAndInt(InsideAll, XMVectorLessOrEqual(Dist, XMVectorNegate(Radius))); + + // Check if the center is inside the plane. + CenterInsideAll = XMVectorAndInt(CenterInsideAll, XMVectorLessOrEqual(Dist, Zero)); + } + + // If the box is outside any of the planes it is outside. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return false; + + // If the box is inside all planes it is fully inside. + if (XMVector4EqualInt(InsideAll, XMVectorTrueInt())) + return true; + + // If the center of the box is inside all planes and the box intersects + // one or more planes then it must intersect. + if (XMVector4EqualInt(CenterInsideAll, XMVectorTrueInt())) + return true; + + // Build the corners of the frustum. + XMVECTOR vRightTop = XMVectorSet(RightSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR vRightBottom = XMVectorSet(RightSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR vLeftTop = XMVectorSet(LeftSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR vLeftBottom = XMVectorSet(LeftSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR vNear = XMVectorReplicatePtr(&Near); + XMVECTOR vFar = XMVectorReplicatePtr(&Far); + + XMVECTOR Corners[CORNER_COUNT]; + Corners[0] = XMVectorMultiply(vRightTop, vNear); + Corners[1] = XMVectorMultiply(vRightBottom, vNear); + Corners[2] = XMVectorMultiply(vLeftTop, vNear); + Corners[3] = XMVectorMultiply(vLeftBottom, vNear); + Corners[4] = XMVectorMultiply(vRightTop, vFar); + Corners[5] = XMVectorMultiply(vRightBottom, vFar); + Corners[6] = XMVectorMultiply(vLeftTop, vFar); + Corners[7] = XMVectorMultiply(vLeftBottom, vFar); + + // Test against box axes (3) + { + // Find the min/max values of the projection of the frustum onto each axis. + XMVECTOR FrustumMin, FrustumMax; + + FrustumMin = XMVector3Dot(Corners[0], R.r[0]); + FrustumMin = XMVectorSelect(FrustumMin, XMVector3Dot(Corners[0], R.r[1]), SelectY); + FrustumMin = XMVectorSelect(FrustumMin, XMVector3Dot(Corners[0], R.r[2]), SelectZ); + FrustumMax = FrustumMin; + + for (size_t i = 1; i < BoundingOrientedBox::CORNER_COUNT; ++i) + { + XMVECTOR Temp = XMVector3Dot(Corners[i], R.r[0]); + Temp = XMVectorSelect(Temp, XMVector3Dot(Corners[i], R.r[1]), SelectY); + Temp = XMVectorSelect(Temp, XMVector3Dot(Corners[i], R.r[2]), SelectZ); + + FrustumMin = XMVectorMin(FrustumMin, Temp); + FrustumMax = XMVectorMax(FrustumMax, Temp); + } + + // Project the center of the box onto the axes. + XMVECTOR BoxDist = XMVector3Dot(Center, R.r[0]); + BoxDist = XMVectorSelect(BoxDist, XMVector3Dot(Center, R.r[1]), SelectY); + BoxDist = XMVectorSelect(BoxDist, XMVector3Dot(Center, R.r[2]), SelectZ); + + // The projection of the box onto the axis is just its Center and Extents. + // if (min > box_max || max < box_min) reject; + XMVECTOR Result = XMVectorOrInt(XMVectorGreater(FrustumMin, XMVectorAdd(BoxDist, Extents)), + XMVectorLess(FrustumMax, XMVectorSubtract(BoxDist, Extents))); + + if (DirectX::Internal::XMVector3AnyTrue(Result)) + return false; + } + + // Test against edge/edge axes (3*6). + XMVECTOR FrustumEdgeAxis[6]; + + FrustumEdgeAxis[0] = vRightTop; + FrustumEdgeAxis[1] = vRightBottom; + FrustumEdgeAxis[2] = vLeftTop; + FrustumEdgeAxis[3] = vLeftBottom; + FrustumEdgeAxis[4] = XMVectorSubtract(vRightTop, vLeftTop); + FrustumEdgeAxis[5] = XMVectorSubtract(vLeftBottom, vLeftTop); + + for (size_t i = 0; i < 3; ++i) + { + for (size_t j = 0; j < 6; j++) + { + // Compute the axis we are going to test. + XMVECTOR Axis = XMVector3Cross(R.r[i], FrustumEdgeAxis[j]); + + // Find the min/max values of the projection of the frustum onto the axis. + XMVECTOR FrustumMin, FrustumMax; + + FrustumMin = FrustumMax = XMVector3Dot(Axis, Corners[0]); + + for (size_t k = 1; k < CORNER_COUNT; k++) + { + XMVECTOR Temp = XMVector3Dot(Axis, Corners[k]); + FrustumMin = XMVectorMin(FrustumMin, Temp); + FrustumMax = XMVectorMax(FrustumMax, Temp); + } + + // Project the center of the box onto the axis. + XMVECTOR Dist = XMVector3Dot(Center, Axis); + + // Project the axes of the box onto the axis to find the "radius" of the box. + XMVECTOR Radius = XMVector3Dot(Axis, R.r[0]); + Radius = XMVectorSelect(Radius, XMVector3Dot(Axis, R.r[1]), SelectY); + Radius = XMVectorSelect(Radius, XMVector3Dot(Axis, R.r[2]), SelectZ); + Radius = XMVector3Dot(Extents, XMVectorAbs(Radius)); + + // if (center > max + radius || center < min - radius) reject; + Outside = XMVectorOrInt(Outside, XMVectorGreater(Dist, XMVectorAdd(FrustumMax, Radius))); + Outside = XMVectorOrInt(Outside, XMVectorLess(Dist, XMVectorSubtract(FrustumMin, Radius))); + } + } + + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return false; + + // If we did not find a separating plane then the box must intersect the frustum. + return true; +} + + +//----------------------------------------------------------------------------- +// Exact frustum vs frustum test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool BoundingFrustum::Intersects(const BoundingFrustum& fr) const noexcept +{ + // Load origin and orientation of frustum B. + XMVECTOR OriginB = XMLoadFloat3(&Origin); + XMVECTOR OrientationB = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(OrientationB)); + + // Build the planes of frustum B. + XMVECTOR AxisB[6]; + AxisB[0] = XMVectorSet(0.0f, 0.0f, -1.0f, 0.0f); + AxisB[1] = XMVectorSet(0.0f, 0.0f, 1.0f, 0.0f); + AxisB[2] = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + AxisB[3] = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + AxisB[4] = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + AxisB[5] = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + + XMVECTOR PlaneDistB[6]; + PlaneDistB[0] = XMVectorNegate(XMVectorReplicatePtr(&Near)); + PlaneDistB[1] = XMVectorReplicatePtr(&Far); + PlaneDistB[2] = XMVectorZero(); + PlaneDistB[3] = XMVectorZero(); + PlaneDistB[4] = XMVectorZero(); + PlaneDistB[5] = XMVectorZero(); + + // Load origin and orientation of frustum A. + XMVECTOR OriginA = XMLoadFloat3(&fr.Origin); + XMVECTOR OrientationA = XMLoadFloat4(&fr.Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(OrientationA)); + + // Transform frustum A into the space of the frustum B in order to + // minimize the number of transforms we have to do. + OriginA = XMVector3InverseRotate(XMVectorSubtract(OriginA, OriginB), OrientationB); + OrientationA = XMQuaternionMultiply(OrientationA, XMQuaternionConjugate(OrientationB)); + + // Build the corners of frustum A (in the local space of B). + XMVECTOR RightTopA = XMVectorSet(fr.RightSlope, fr.TopSlope, 1.0f, 0.0f); + XMVECTOR RightBottomA = XMVectorSet(fr.RightSlope, fr.BottomSlope, 1.0f, 0.0f); + XMVECTOR LeftTopA = XMVectorSet(fr.LeftSlope, fr.TopSlope, 1.0f, 0.0f); + XMVECTOR LeftBottomA = XMVectorSet(fr.LeftSlope, fr.BottomSlope, 1.0f, 0.0f); + XMVECTOR NearA = XMVectorReplicatePtr(&fr.Near); + XMVECTOR FarA = XMVectorReplicatePtr(&fr.Far); + + RightTopA = XMVector3Rotate(RightTopA, OrientationA); + RightBottomA = XMVector3Rotate(RightBottomA, OrientationA); + LeftTopA = XMVector3Rotate(LeftTopA, OrientationA); + LeftBottomA = XMVector3Rotate(LeftBottomA, OrientationA); + + XMVECTOR CornersA[CORNER_COUNT]; + CornersA[0] = XMVectorMultiplyAdd(RightTopA, NearA, OriginA); + CornersA[1] = XMVectorMultiplyAdd(RightBottomA, NearA, OriginA); + CornersA[2] = XMVectorMultiplyAdd(LeftTopA, NearA, OriginA); + CornersA[3] = XMVectorMultiplyAdd(LeftBottomA, NearA, OriginA); + CornersA[4] = XMVectorMultiplyAdd(RightTopA, FarA, OriginA); + CornersA[5] = XMVectorMultiplyAdd(RightBottomA, FarA, OriginA); + CornersA[6] = XMVectorMultiplyAdd(LeftTopA, FarA, OriginA); + CornersA[7] = XMVectorMultiplyAdd(LeftBottomA, FarA, OriginA); + + // Check frustum A against each plane of frustum B. + XMVECTOR Outside = XMVectorFalseInt(); + XMVECTOR InsideAll = XMVectorTrueInt(); + + for (size_t i = 0; i < 6; ++i) + { + // Find the min/max projection of the frustum onto the plane normal. + XMVECTOR Min, Max; + + Min = Max = XMVector3Dot(AxisB[i], CornersA[0]); + + for (size_t j = 1; j < CORNER_COUNT; j++) + { + XMVECTOR Temp = XMVector3Dot(AxisB[i], CornersA[j]); + Min = XMVectorMin(Min, Temp); + Max = XMVectorMax(Max, Temp); + } + + // Outside the plane? + Outside = XMVectorOrInt(Outside, XMVectorGreater(Min, PlaneDistB[i])); + + // Fully inside the plane? + InsideAll = XMVectorAndInt(InsideAll, XMVectorLessOrEqual(Max, PlaneDistB[i])); + } + + // If the frustum A is outside any of the planes of frustum B it is outside. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return false; + + // If frustum A is inside all planes of frustum B it is fully inside. + if (XMVector4EqualInt(InsideAll, XMVectorTrueInt())) + return true; + + // Build the corners of frustum B. + XMVECTOR RightTopB = XMVectorSet(RightSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR RightBottomB = XMVectorSet(RightSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR LeftTopB = XMVectorSet(LeftSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR LeftBottomB = XMVectorSet(LeftSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR NearB = XMVectorReplicatePtr(&Near); + XMVECTOR FarB = XMVectorReplicatePtr(&Far); + + XMVECTOR CornersB[BoundingFrustum::CORNER_COUNT]; + CornersB[0] = XMVectorMultiply(RightTopB, NearB); + CornersB[1] = XMVectorMultiply(RightBottomB, NearB); + CornersB[2] = XMVectorMultiply(LeftTopB, NearB); + CornersB[3] = XMVectorMultiply(LeftBottomB, NearB); + CornersB[4] = XMVectorMultiply(RightTopB, FarB); + CornersB[5] = XMVectorMultiply(RightBottomB, FarB); + CornersB[6] = XMVectorMultiply(LeftTopB, FarB); + CornersB[7] = XMVectorMultiply(LeftBottomB, FarB); + + // Build the planes of frustum A (in the local space of B). + XMVECTOR AxisA[6]; + XMVECTOR PlaneDistA[6]; + + AxisA[0] = XMVectorSet(0.0f, 0.0f, -1.0f, 0.0f); + AxisA[1] = XMVectorSet(0.0f, 0.0f, 1.0f, 0.0f); + AxisA[2] = XMVectorSet(1.0f, 0.0f, -fr.RightSlope, 0.0f); + AxisA[3] = XMVectorSet(-1.0f, 0.0f, fr.LeftSlope, 0.0f); + AxisA[4] = XMVectorSet(0.0f, 1.0f, -fr.TopSlope, 0.0f); + AxisA[5] = XMVectorSet(0.0f, -1.0f, fr.BottomSlope, 0.0f); + + AxisA[0] = XMVector3Rotate(AxisA[0], OrientationA); + AxisA[1] = XMVectorNegate(AxisA[0]); + AxisA[2] = XMVector3Rotate(AxisA[2], OrientationA); + AxisA[3] = XMVector3Rotate(AxisA[3], OrientationA); + AxisA[4] = XMVector3Rotate(AxisA[4], OrientationA); + AxisA[5] = XMVector3Rotate(AxisA[5], OrientationA); + + PlaneDistA[0] = XMVector3Dot(AxisA[0], CornersA[0]); // Re-use corner on near plane. + PlaneDistA[1] = XMVector3Dot(AxisA[1], CornersA[4]); // Re-use corner on far plane. + PlaneDistA[2] = XMVector3Dot(AxisA[2], OriginA); + PlaneDistA[3] = XMVector3Dot(AxisA[3], OriginA); + PlaneDistA[4] = XMVector3Dot(AxisA[4], OriginA); + PlaneDistA[5] = XMVector3Dot(AxisA[5], OriginA); + + // Check each axis of frustum A for a seperating plane (5). + for (size_t i = 0; i < 6; ++i) + { + // Find the minimum projection of the frustum onto the plane normal. + XMVECTOR Min; + + Min = XMVector3Dot(AxisA[i], CornersB[0]); + + for (size_t j = 1; j < CORNER_COUNT; j++) + { + XMVECTOR Temp = XMVector3Dot(AxisA[i], CornersB[j]); + Min = XMVectorMin(Min, Temp); + } + + // Outside the plane? + Outside = XMVectorOrInt(Outside, XMVectorGreater(Min, PlaneDistA[i])); + } + + // If the frustum B is outside any of the planes of frustum A it is outside. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return false; + + // Check edge/edge axes (6 * 6). + XMVECTOR FrustumEdgeAxisA[6]; + FrustumEdgeAxisA[0] = RightTopA; + FrustumEdgeAxisA[1] = RightBottomA; + FrustumEdgeAxisA[2] = LeftTopA; + FrustumEdgeAxisA[3] = LeftBottomA; + FrustumEdgeAxisA[4] = XMVectorSubtract(RightTopA, LeftTopA); + FrustumEdgeAxisA[5] = XMVectorSubtract(LeftBottomA, LeftTopA); + + XMVECTOR FrustumEdgeAxisB[6]; + FrustumEdgeAxisB[0] = RightTopB; + FrustumEdgeAxisB[1] = RightBottomB; + FrustumEdgeAxisB[2] = LeftTopB; + FrustumEdgeAxisB[3] = LeftBottomB; + FrustumEdgeAxisB[4] = XMVectorSubtract(RightTopB, LeftTopB); + FrustumEdgeAxisB[5] = XMVectorSubtract(LeftBottomB, LeftTopB); + + for (size_t i = 0; i < 6; ++i) + { + for (size_t j = 0; j < 6; j++) + { + // Compute the axis we are going to test. + XMVECTOR Axis = XMVector3Cross(FrustumEdgeAxisA[i], FrustumEdgeAxisB[j]); + + // Find the min/max values of the projection of both frustums onto the axis. + XMVECTOR MinA, MaxA; + XMVECTOR MinB, MaxB; + + MinA = MaxA = XMVector3Dot(Axis, CornersA[0]); + MinB = MaxB = XMVector3Dot(Axis, CornersB[0]); + + for (size_t k = 1; k < CORNER_COUNT; k++) + { + XMVECTOR TempA = XMVector3Dot(Axis, CornersA[k]); + MinA = XMVectorMin(MinA, TempA); + MaxA = XMVectorMax(MaxA, TempA); + + XMVECTOR TempB = XMVector3Dot(Axis, CornersB[k]); + MinB = XMVectorMin(MinB, TempB); + MaxB = XMVectorMax(MaxB, TempB); + } + + // if (MinA > MaxB || MinB > MaxA) reject + Outside = XMVectorOrInt(Outside, XMVectorGreater(MinA, MaxB)); + Outside = XMVectorOrInt(Outside, XMVectorGreater(MinB, MaxA)); + } + } + + // If there is a seperating plane, then the frustums do not intersect. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return false; + + // If we did not find a separating plane then the frustums intersect. + return true; +} + + +//----------------------------------------------------------------------------- +// Triangle vs frustum test. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool XM_CALLCONV BoundingFrustum::Intersects(FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2) const noexcept +{ + // Build the frustum planes (NOTE: D is negated from the usual). + XMVECTOR Planes[6]; + Planes[0] = XMVectorSet(0.0f, 0.0f, -1.0f, -Near); + Planes[1] = XMVectorSet(0.0f, 0.0f, 1.0f, Far); + Planes[2] = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + Planes[3] = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + Planes[4] = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + Planes[5] = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Transform triangle into the local space of frustum. + XMVECTOR TV0 = XMVector3InverseRotate(XMVectorSubtract(V0, vOrigin), vOrientation); + XMVECTOR TV1 = XMVector3InverseRotate(XMVectorSubtract(V1, vOrigin), vOrientation); + XMVECTOR TV2 = XMVector3InverseRotate(XMVectorSubtract(V2, vOrigin), vOrientation); + + // Test each vertex of the triangle against the frustum planes. + XMVECTOR Outside = XMVectorFalseInt(); + XMVECTOR InsideAll = XMVectorTrueInt(); + + for (size_t i = 0; i < 6; ++i) + { + XMVECTOR Dist0 = XMVector3Dot(TV0, Planes[i]); + XMVECTOR Dist1 = XMVector3Dot(TV1, Planes[i]); + XMVECTOR Dist2 = XMVector3Dot(TV2, Planes[i]); + + XMVECTOR MinDist = XMVectorMin(Dist0, Dist1); + MinDist = XMVectorMin(MinDist, Dist2); + XMVECTOR MaxDist = XMVectorMax(Dist0, Dist1); + MaxDist = XMVectorMax(MaxDist, Dist2); + + XMVECTOR PlaneDist = XMVectorSplatW(Planes[i]); + + // Outside the plane? + Outside = XMVectorOrInt(Outside, XMVectorGreater(MinDist, PlaneDist)); + + // Fully inside the plane? + InsideAll = XMVectorAndInt(InsideAll, XMVectorLessOrEqual(MaxDist, PlaneDist)); + } + + // If the triangle is outside any of the planes it is outside. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return false; + + // If the triangle is inside all planes it is fully inside. + if (XMVector4EqualInt(InsideAll, XMVectorTrueInt())) + return true; + + // Build the corners of the frustum. + XMVECTOR vRightTop = XMVectorSet(RightSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR vRightBottom = XMVectorSet(RightSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR vLeftTop = XMVectorSet(LeftSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR vLeftBottom = XMVectorSet(LeftSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR vNear = XMVectorReplicatePtr(&Near); + XMVECTOR vFar = XMVectorReplicatePtr(&Far); + + XMVECTOR Corners[CORNER_COUNT]; + Corners[0] = XMVectorMultiply(vRightTop, vNear); + Corners[1] = XMVectorMultiply(vRightBottom, vNear); + Corners[2] = XMVectorMultiply(vLeftTop, vNear); + Corners[3] = XMVectorMultiply(vLeftBottom, vNear); + Corners[4] = XMVectorMultiply(vRightTop, vFar); + Corners[5] = XMVectorMultiply(vRightBottom, vFar); + Corners[6] = XMVectorMultiply(vLeftTop, vFar); + Corners[7] = XMVectorMultiply(vLeftBottom, vFar); + + // Test the plane of the triangle. + XMVECTOR Normal = XMVector3Cross(XMVectorSubtract(V1, V0), XMVectorSubtract(V2, V0)); + XMVECTOR Dist = XMVector3Dot(Normal, V0); + + XMVECTOR MinDist, MaxDist; + MinDist = MaxDist = XMVector3Dot(Corners[0], Normal); + for (size_t i = 1; i < CORNER_COUNT; ++i) + { + XMVECTOR Temp = XMVector3Dot(Corners[i], Normal); + MinDist = XMVectorMin(MinDist, Temp); + MaxDist = XMVectorMax(MaxDist, Temp); + } + + Outside = XMVectorOrInt(XMVectorGreater(MinDist, Dist), XMVectorLess(MaxDist, Dist)); + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return false; + + // Check the edge/edge axes (3*6). + XMVECTOR TriangleEdgeAxis[3]; + TriangleEdgeAxis[0] = XMVectorSubtract(V1, V0); + TriangleEdgeAxis[1] = XMVectorSubtract(V2, V1); + TriangleEdgeAxis[2] = XMVectorSubtract(V0, V2); + + XMVECTOR FrustumEdgeAxis[6]; + FrustumEdgeAxis[0] = vRightTop; + FrustumEdgeAxis[1] = vRightBottom; + FrustumEdgeAxis[2] = vLeftTop; + FrustumEdgeAxis[3] = vLeftBottom; + FrustumEdgeAxis[4] = XMVectorSubtract(vRightTop, vLeftTop); + FrustumEdgeAxis[5] = XMVectorSubtract(vLeftBottom, vLeftTop); + + for (size_t i = 0; i < 3; ++i) + { + for (size_t j = 0; j < 6; j++) + { + // Compute the axis we are going to test. + XMVECTOR Axis = XMVector3Cross(TriangleEdgeAxis[i], FrustumEdgeAxis[j]); + + // Find the min/max of the projection of the triangle onto the axis. + XMVECTOR MinA, MaxA; + + XMVECTOR Dist0 = XMVector3Dot(V0, Axis); + XMVECTOR Dist1 = XMVector3Dot(V1, Axis); + XMVECTOR Dist2 = XMVector3Dot(V2, Axis); + + MinA = XMVectorMin(Dist0, Dist1); + MinA = XMVectorMin(MinA, Dist2); + MaxA = XMVectorMax(Dist0, Dist1); + MaxA = XMVectorMax(MaxA, Dist2); + + // Find the min/max of the projection of the frustum onto the axis. + XMVECTOR MinB, MaxB; + + MinB = MaxB = XMVector3Dot(Axis, Corners[0]); + + for (size_t k = 1; k < CORNER_COUNT; k++) + { + XMVECTOR Temp = XMVector3Dot(Axis, Corners[k]); + MinB = XMVectorMin(MinB, Temp); + MaxB = XMVectorMax(MaxB, Temp); + } + + // if (MinA > MaxB || MinB > MaxA) reject; + Outside = XMVectorOrInt(Outside, XMVectorGreater(MinA, MaxB)); + Outside = XMVectorOrInt(Outside, XMVectorGreater(MinB, MaxA)); + } + } + + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return false; + + // If we did not find a separating plane then the triangle must intersect the frustum. + return true; +} + + +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline PlaneIntersectionType XM_CALLCONV BoundingFrustum::Intersects(FXMVECTOR Plane) const noexcept +{ + assert(DirectX::Internal::XMPlaneIsUnit(Plane)); + + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Set w of the origin to one so we can dot4 with a plane. + vOrigin = XMVectorInsert<0, 0, 0, 0, 1>(vOrigin, XMVectorSplatOne()); + + // Build the corners of the frustum (in world space). + XMVECTOR RightTop = XMVectorSet(RightSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR RightBottom = XMVectorSet(RightSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR LeftTop = XMVectorSet(LeftSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR LeftBottom = XMVectorSet(LeftSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR vNear = XMVectorReplicatePtr(&Near); + XMVECTOR vFar = XMVectorReplicatePtr(&Far); + + RightTop = XMVector3Rotate(RightTop, vOrientation); + RightBottom = XMVector3Rotate(RightBottom, vOrientation); + LeftTop = XMVector3Rotate(LeftTop, vOrientation); + LeftBottom = XMVector3Rotate(LeftBottom, vOrientation); + + XMVECTOR Corners0 = XMVectorMultiplyAdd(RightTop, vNear, vOrigin); + XMVECTOR Corners1 = XMVectorMultiplyAdd(RightBottom, vNear, vOrigin); + XMVECTOR Corners2 = XMVectorMultiplyAdd(LeftTop, vNear, vOrigin); + XMVECTOR Corners3 = XMVectorMultiplyAdd(LeftBottom, vNear, vOrigin); + XMVECTOR Corners4 = XMVectorMultiplyAdd(RightTop, vFar, vOrigin); + XMVECTOR Corners5 = XMVectorMultiplyAdd(RightBottom, vFar, vOrigin); + XMVECTOR Corners6 = XMVectorMultiplyAdd(LeftTop, vFar, vOrigin); + XMVECTOR Corners7 = XMVectorMultiplyAdd(LeftBottom, vFar, vOrigin); + + XMVECTOR Outside, Inside; + DirectX::Internal::FastIntersectFrustumPlane(Corners0, Corners1, Corners2, Corners3, + Corners4, Corners5, Corners6, Corners7, + Plane, Outside, Inside); + + // If the frustum is outside any plane it is outside. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return FRONT; + + // If the frustum is inside all planes it is inside. + if (XMVector4EqualInt(Inside, XMVectorTrueInt())) + return BACK; + + // The frustum is not inside all planes or outside a plane it intersects. + return INTERSECTING; +} + + +//----------------------------------------------------------------------------- +// Ray vs. frustum test +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline bool XM_CALLCONV BoundingFrustum::Intersects(FXMVECTOR rayOrigin, FXMVECTOR Direction, float& Dist) const noexcept +{ + // If ray starts inside the frustum, return a distance of 0 for the hit + if (Contains(rayOrigin) == CONTAINS) + { + Dist = 0.0f; + return true; + } + + // Build the frustum planes. + XMVECTOR Planes[6]; + Planes[0] = XMVectorSet(0.0f, 0.0f, -1.0f, Near); + Planes[1] = XMVectorSet(0.0f, 0.0f, 1.0f, -Far); + Planes[2] = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + Planes[3] = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + Planes[4] = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + Planes[5] = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + + // Load origin and orientation of the frustum. + XMVECTOR frOrigin = XMLoadFloat3(&Origin); + XMVECTOR frOrientation = XMLoadFloat4(&Orientation); + + // This algorithm based on "Fast Ray-Convex Polyhedron Intersectin," in James Arvo, ed., Graphics Gems II pp. 247-250 + float tnear = -FLT_MAX; + float tfar = FLT_MAX; + + for (size_t i = 0; i < 6; ++i) + { + XMVECTOR Plane = DirectX::Internal::XMPlaneTransform(Planes[i], frOrientation, frOrigin); + Plane = XMPlaneNormalize(Plane); + + XMVECTOR AxisDotOrigin = XMPlaneDotCoord(Plane, rayOrigin); + XMVECTOR AxisDotDirection = XMVector3Dot(Plane, Direction); + + if (XMVector3LessOrEqual(XMVectorAbs(AxisDotDirection), g_RayEpsilon)) + { + // Ray is parallel to plane - check if ray origin is inside plane's + if (XMVector3Greater(AxisDotOrigin, g_XMZero)) + { + // Ray origin is outside half-space. + Dist = 0.f; + return false; + } + } + else + { + // Ray not parallel - get distance to plane. + float vd = XMVectorGetX(AxisDotDirection); + float vn = XMVectorGetX(AxisDotOrigin); + float t = -vn / vd; + if (vd < 0.0f) + { + // Front face - T is a near point. + if (t > tfar) + { + Dist = 0.f; + return false; + } + if (t > tnear) + { + // Hit near face. + tnear = t; + } + } + else + { + // back face - T is far point. + if (t < tnear) + { + Dist = 0.f; + return false; + } + if (t < tfar) + { + // Hit far face. + tfar = t; + } + } + } + } + + // Survived all tests. + // Note: if ray originates on polyhedron, may want to change 0.0f to some + // epsilon to avoid intersecting the originating face. + float distance = (tnear >= 0.0f) ? tnear : tfar; + if (distance >= 0.0f) + { + Dist = distance; + return true; + } + + Dist = 0.f; + return false; +} + + +//----------------------------------------------------------------------------- +// Test a frustum vs 6 planes (typically forming another frustum). +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline ContainmentType XM_CALLCONV BoundingFrustum::ContainedBy( + FXMVECTOR Plane0, FXMVECTOR Plane1, FXMVECTOR Plane2, + GXMVECTOR Plane3, + HXMVECTOR Plane4, HXMVECTOR Plane5) const noexcept +{ + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + assert(DirectX::Internal::XMQuaternionIsUnit(vOrientation)); + + // Set w of the origin to one so we can dot4 with a plane. + vOrigin = XMVectorInsert<0, 0, 0, 0, 1>(vOrigin, XMVectorSplatOne()); + + // Build the corners of the frustum (in world space). + XMVECTOR RightTop = XMVectorSet(RightSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR RightBottom = XMVectorSet(RightSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR LeftTop = XMVectorSet(LeftSlope, TopSlope, 1.0f, 0.0f); + XMVECTOR LeftBottom = XMVectorSet(LeftSlope, BottomSlope, 1.0f, 0.0f); + XMVECTOR vNear = XMVectorReplicatePtr(&Near); + XMVECTOR vFar = XMVectorReplicatePtr(&Far); + + RightTop = XMVector3Rotate(RightTop, vOrientation); + RightBottom = XMVector3Rotate(RightBottom, vOrientation); + LeftTop = XMVector3Rotate(LeftTop, vOrientation); + LeftBottom = XMVector3Rotate(LeftBottom, vOrientation); + + XMVECTOR Corners0 = XMVectorMultiplyAdd(RightTop, vNear, vOrigin); + XMVECTOR Corners1 = XMVectorMultiplyAdd(RightBottom, vNear, vOrigin); + XMVECTOR Corners2 = XMVectorMultiplyAdd(LeftTop, vNear, vOrigin); + XMVECTOR Corners3 = XMVectorMultiplyAdd(LeftBottom, vNear, vOrigin); + XMVECTOR Corners4 = XMVectorMultiplyAdd(RightTop, vFar, vOrigin); + XMVECTOR Corners5 = XMVectorMultiplyAdd(RightBottom, vFar, vOrigin); + XMVECTOR Corners6 = XMVectorMultiplyAdd(LeftTop, vFar, vOrigin); + XMVECTOR Corners7 = XMVectorMultiplyAdd(LeftBottom, vFar, vOrigin); + + XMVECTOR Outside, Inside; + + // Test against each plane. + DirectX::Internal::FastIntersectFrustumPlane(Corners0, Corners1, Corners2, Corners3, + Corners4, Corners5, Corners6, Corners7, + Plane0, Outside, Inside); + + XMVECTOR AnyOutside = Outside; + XMVECTOR AllInside = Inside; + + DirectX::Internal::FastIntersectFrustumPlane(Corners0, Corners1, Corners2, Corners3, + Corners4, Corners5, Corners6, Corners7, + Plane1, Outside, Inside); + + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectFrustumPlane(Corners0, Corners1, Corners2, Corners3, + Corners4, Corners5, Corners6, Corners7, + Plane2, Outside, Inside); + + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectFrustumPlane(Corners0, Corners1, Corners2, Corners3, + Corners4, Corners5, Corners6, Corners7, + Plane3, Outside, Inside); + + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectFrustumPlane(Corners0, Corners1, Corners2, Corners3, + Corners4, Corners5, Corners6, Corners7, + Plane4, Outside, Inside); + + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectFrustumPlane(Corners0, Corners1, Corners2, Corners3, + Corners4, Corners5, Corners6, Corners7, + Plane5, Outside, Inside); + + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + // If the frustum is outside any plane it is outside. + if (XMVector4EqualInt(AnyOutside, XMVectorTrueInt())) + return DISJOINT; + + // If the frustum is inside all planes it is inside. + if (XMVector4EqualInt(AllInside, XMVectorTrueInt())) + return CONTAINS; + + // The frustum is not inside all planes or outside a plane, it may intersect. + return INTERSECTS; +} + + +//----------------------------------------------------------------------------- +// Build the 6 frustum planes from a frustum. +// +// The intended use for these routines is for fast culling to a view frustum. +// When the volume being tested against a view frustum is small relative to the +// view frustum it is usually either inside all six planes of the frustum +// (CONTAINS) or outside one of the planes of the frustum (DISJOINT). If neither +// of these cases is true then it may or may not be intersecting the frustum +// (INTERSECTS) +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void BoundingFrustum::GetPlanes(XMVECTOR* NearPlane, XMVECTOR* FarPlane, XMVECTOR* RightPlane, + XMVECTOR* LeftPlane, XMVECTOR* TopPlane, XMVECTOR* BottomPlane) const noexcept +{ + // Load origin and orientation of the frustum. + XMVECTOR vOrigin = XMLoadFloat3(&Origin); + XMVECTOR vOrientation = XMLoadFloat4(&Orientation); + + if (NearPlane) + { + XMVECTOR vNearPlane = XMVectorSet(0.0f, 0.0f, -1.0f, Near); + vNearPlane = DirectX::Internal::XMPlaneTransform(vNearPlane, vOrientation, vOrigin); + *NearPlane = XMPlaneNormalize(vNearPlane); + } + + if (FarPlane) + { + XMVECTOR vFarPlane = XMVectorSet(0.0f, 0.0f, 1.0f, -Far); + vFarPlane = DirectX::Internal::XMPlaneTransform(vFarPlane, vOrientation, vOrigin); + *FarPlane = XMPlaneNormalize(vFarPlane); + } + + if (RightPlane) + { + XMVECTOR vRightPlane = XMVectorSet(1.0f, 0.0f, -RightSlope, 0.0f); + vRightPlane = DirectX::Internal::XMPlaneTransform(vRightPlane, vOrientation, vOrigin); + *RightPlane = XMPlaneNormalize(vRightPlane); + } + + if (LeftPlane) + { + XMVECTOR vLeftPlane = XMVectorSet(-1.0f, 0.0f, LeftSlope, 0.0f); + vLeftPlane = DirectX::Internal::XMPlaneTransform(vLeftPlane, vOrientation, vOrigin); + *LeftPlane = XMPlaneNormalize(vLeftPlane); + } + + if (TopPlane) + { + XMVECTOR vTopPlane = XMVectorSet(0.0f, 1.0f, -TopSlope, 0.0f); + vTopPlane = DirectX::Internal::XMPlaneTransform(vTopPlane, vOrientation, vOrigin); + *TopPlane = XMPlaneNormalize(vTopPlane); + } + + if (BottomPlane) + { + XMVECTOR vBottomPlane = XMVectorSet(0.0f, -1.0f, BottomSlope, 0.0f); + vBottomPlane = DirectX::Internal::XMPlaneTransform(vBottomPlane, vOrientation, vOrigin); + *BottomPlane = XMPlaneNormalize(vBottomPlane); + } +} + + +//----------------------------------------------------------------------------- +// Build a frustum from a persepective projection matrix. The matrix may only +// contain a projection; any rotation, translation or scale will cause the +// constructed frustum to be incorrect. +//----------------------------------------------------------------------------- +_Use_decl_annotations_ +inline void XM_CALLCONV BoundingFrustum::CreateFromMatrix(BoundingFrustum& Out, FXMMATRIX Projection, bool rhcoords) noexcept +{ + // Corners of the projection frustum in NDC space. + static XMVECTORF32 NDCPoints[6] = + { + { { { 1.0f, 0.0f, 1.0f, 1.0f } } }, // right (at far plane) + { { { -1.0f, 0.0f, 1.0f, 1.0f } } }, // left + { { { 0.0f, 1.0f, 1.0f, 1.0f } } }, // top + { { { 0.0f, -1.0f, 1.0f, 1.0f } } }, // bottom + + { { { 0.0f, 0.0f, 0.0f, 1.0f } } }, // near + { { { 0.0f, 0.0f, 1.0f, 1.0f } } } // far + }; + + XMVECTOR Determinant; + XMMATRIX matInverse = XMMatrixInverse(&Determinant, Projection); + + // Compute the frustum corners in world space. + XMVECTOR Points[6]; + + for (size_t i = 0; i < 6; ++i) + { + // Transform point. + Points[i] = XMVector4Transform(NDCPoints[i], matInverse); + } + + Out.Origin = XMFLOAT3(0.0f, 0.0f, 0.0f); + Out.Orientation = XMFLOAT4(0.0f, 0.0f, 0.0f, 1.0f); + + // Compute the slopes. + Points[0] = XMVectorMultiply(Points[0], XMVectorReciprocal(XMVectorSplatZ(Points[0]))); + Points[1] = XMVectorMultiply(Points[1], XMVectorReciprocal(XMVectorSplatZ(Points[1]))); + Points[2] = XMVectorMultiply(Points[2], XMVectorReciprocal(XMVectorSplatZ(Points[2]))); + Points[3] = XMVectorMultiply(Points[3], XMVectorReciprocal(XMVectorSplatZ(Points[3]))); + + Out.RightSlope = XMVectorGetX(Points[0]); + Out.LeftSlope = XMVectorGetX(Points[1]); + Out.TopSlope = XMVectorGetY(Points[2]); + Out.BottomSlope = XMVectorGetY(Points[3]); + + // Compute near and far. + Points[4] = XMVectorMultiply(Points[4], XMVectorReciprocal(XMVectorSplatW(Points[4]))); + Points[5] = XMVectorMultiply(Points[5], XMVectorReciprocal(XMVectorSplatW(Points[5]))); + + if (rhcoords) + { + Out.Near = XMVectorGetZ(Points[5]); + Out.Far = XMVectorGetZ(Points[4]); + } + else + { + Out.Near = XMVectorGetZ(Points[4]); + Out.Far = XMVectorGetZ(Points[5]); + } +} + + +/**************************************************************************** + * + * TriangleTests + * + ****************************************************************************/ + +namespace TriangleTests +{ + + //----------------------------------------------------------------------------- + // Compute the intersection of a ray (Origin, Direction) with a triangle + // (V0, V1, V2). Return true if there is an intersection and also set *pDist + // to the distance along the ray to the intersection. + // + // The algorithm is based on Moller, Tomas and Trumbore, "Fast, Minimum Storage + // Ray-Triangle Intersection", Journal of Graphics Tools, vol. 2, no. 1, + // pp 21-28, 1997. + //----------------------------------------------------------------------------- + _Use_decl_annotations_ + inline bool XM_CALLCONV Intersects( + FXMVECTOR Origin, FXMVECTOR Direction, FXMVECTOR V0, + GXMVECTOR V1, + HXMVECTOR V2, float& Dist) noexcept + { + assert(DirectX::Internal::XMVector3IsUnit(Direction)); + + XMVECTOR Zero = XMVectorZero(); + + XMVECTOR e1 = XMVectorSubtract(V1, V0); + XMVECTOR e2 = XMVectorSubtract(V2, V0); + + // p = Direction ^ e2; + XMVECTOR p = XMVector3Cross(Direction, e2); + + // det = e1 * p; + XMVECTOR det = XMVector3Dot(e1, p); + + XMVECTOR u, v, t; + + if (XMVector3GreaterOrEqual(det, g_RayEpsilon)) + { + // Determinate is positive (front side of the triangle). + XMVECTOR s = XMVectorSubtract(Origin, V0); + + // u = s * p; + u = XMVector3Dot(s, p); + + XMVECTOR NoIntersection = XMVectorLess(u, Zero); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(u, det)); + + // q = s ^ e1; + XMVECTOR q = XMVector3Cross(s, e1); + + // v = Direction * q; + v = XMVector3Dot(Direction, q); + + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(v, Zero)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(XMVectorAdd(u, v), det)); + + // t = e2 * q; + t = XMVector3Dot(e2, q); + + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(t, Zero)); + + if (XMVector4EqualInt(NoIntersection, XMVectorTrueInt())) + { + Dist = 0.f; + return false; + } + } + else if (XMVector3LessOrEqual(det, g_RayNegEpsilon)) + { + // Determinate is negative (back side of the triangle). + XMVECTOR s = XMVectorSubtract(Origin, V0); + + // u = s * p; + u = XMVector3Dot(s, p); + + XMVECTOR NoIntersection = XMVectorGreater(u, Zero); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(u, det)); + + // q = s ^ e1; + XMVECTOR q = XMVector3Cross(s, e1); + + // v = Direction * q; + v = XMVector3Dot(Direction, q); + + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(v, Zero)); + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorLess(XMVectorAdd(u, v), det)); + + // t = e2 * q; + t = XMVector3Dot(e2, q); + + NoIntersection = XMVectorOrInt(NoIntersection, XMVectorGreater(t, Zero)); + + if (XMVector4EqualInt(NoIntersection, XMVectorTrueInt())) + { + Dist = 0.f; + return false; + } + } + else + { + // Parallel ray. + Dist = 0.f; + return false; + } + + t = XMVectorDivide(t, det); + + // (u / det) and (v / dev) are the barycentric cooridinates of the intersection. + + // Store the x-component to *pDist + XMStoreFloat(&Dist, t); + + return true; + } + + + //----------------------------------------------------------------------------- + // Test if two triangles intersect. + // + // The final test of algorithm is based on Shen, Heng, and Tang, "A Fast + // Triangle-Triangle Overlap Test Using Signed Distances", Journal of Graphics + // Tools, vol. 8, no. 1, pp 17-23, 2003 and Guigue and Devillers, "Fast and + // Robust Triangle-Triangle Overlap Test Using Orientation Predicates", Journal + // of Graphics Tools, vol. 8, no. 1, pp 25-32, 2003. + // + // The final test could be considered an edge-edge separating plane test with + // the 9 possible cases narrowed down to the only two pairs of edges that can + // actaully result in a seperation. + //----------------------------------------------------------------------------- + _Use_decl_annotations_ + inline bool XM_CALLCONV Intersects(FXMVECTOR A0, FXMVECTOR A1, FXMVECTOR A2, GXMVECTOR B0, HXMVECTOR B1, HXMVECTOR B2) noexcept + { + static const XMVECTORU32 SelectY = { { { XM_SELECT_0, XM_SELECT_1, XM_SELECT_0, XM_SELECT_0 } } }; + static const XMVECTORU32 SelectZ = { { { XM_SELECT_0, XM_SELECT_0, XM_SELECT_1, XM_SELECT_0 } } }; + static const XMVECTORU32 Select0111 = { { { XM_SELECT_0, XM_SELECT_1, XM_SELECT_1, XM_SELECT_1 } } }; + static const XMVECTORU32 Select1011 = { { { XM_SELECT_1, XM_SELECT_0, XM_SELECT_1, XM_SELECT_1 } } }; + static const XMVECTORU32 Select1101 = { { { XM_SELECT_1, XM_SELECT_1, XM_SELECT_0, XM_SELECT_1 } } }; + + XMVECTOR Zero = XMVectorZero(); + + // Compute the normal of triangle A. + XMVECTOR N1 = XMVector3Cross(XMVectorSubtract(A1, A0), XMVectorSubtract(A2, A0)); + + // Assert that the triangle is not degenerate. + assert(!XMVector3Equal(N1, Zero)); + + // Test points of B against the plane of A. + XMVECTOR BDist = XMVector3Dot(N1, XMVectorSubtract(B0, A0)); + BDist = XMVectorSelect(BDist, XMVector3Dot(N1, XMVectorSubtract(B1, A0)), SelectY); + BDist = XMVectorSelect(BDist, XMVector3Dot(N1, XMVectorSubtract(B2, A0)), SelectZ); + + // Ensure robustness with co-planar triangles by zeroing small distances. + uint32_t BDistIsZeroCR; + XMVECTOR BDistIsZero = XMVectorGreaterR(&BDistIsZeroCR, g_RayEpsilon, XMVectorAbs(BDist)); + BDist = XMVectorSelect(BDist, Zero, BDistIsZero); + + uint32_t BDistIsLessCR; + XMVECTOR BDistIsLess = XMVectorGreaterR(&BDistIsLessCR, Zero, BDist); + + uint32_t BDistIsGreaterCR; + XMVECTOR BDistIsGreater = XMVectorGreaterR(&BDistIsGreaterCR, BDist, Zero); + + // If all the points are on the same side we don't intersect. + if (XMComparisonAllTrue(BDistIsLessCR) || XMComparisonAllTrue(BDistIsGreaterCR)) + return false; + + // Compute the normal of triangle B. + XMVECTOR N2 = XMVector3Cross(XMVectorSubtract(B1, B0), XMVectorSubtract(B2, B0)); + + // Assert that the triangle is not degenerate. + assert(!XMVector3Equal(N2, Zero)); + + // Test points of A against the plane of B. + XMVECTOR ADist = XMVector3Dot(N2, XMVectorSubtract(A0, B0)); + ADist = XMVectorSelect(ADist, XMVector3Dot(N2, XMVectorSubtract(A1, B0)), SelectY); + ADist = XMVectorSelect(ADist, XMVector3Dot(N2, XMVectorSubtract(A2, B0)), SelectZ); + + // Ensure robustness with co-planar triangles by zeroing small distances. + uint32_t ADistIsZeroCR; + XMVECTOR ADistIsZero = XMVectorGreaterR(&ADistIsZeroCR, g_RayEpsilon, XMVectorAbs(BDist)); + ADist = XMVectorSelect(ADist, Zero, ADistIsZero); + + uint32_t ADistIsLessCR; + XMVECTOR ADistIsLess = XMVectorGreaterR(&ADistIsLessCR, Zero, ADist); + + uint32_t ADistIsGreaterCR; + XMVECTOR ADistIsGreater = XMVectorGreaterR(&ADistIsGreaterCR, ADist, Zero); + + // If all the points are on the same side we don't intersect. + if (XMComparisonAllTrue(ADistIsLessCR) || XMComparisonAllTrue(ADistIsGreaterCR)) + return false; + + // Special case for co-planar triangles. + if (XMComparisonAllTrue(ADistIsZeroCR) || XMComparisonAllTrue(BDistIsZeroCR)) + { + XMVECTOR Axis, Dist, MinDist; + + // Compute an axis perpindicular to the edge (points out). + Axis = XMVector3Cross(N1, XMVectorSubtract(A1, A0)); + Dist = XMVector3Dot(Axis, A0); + + // Test points of B against the axis. + MinDist = XMVector3Dot(B0, Axis); + MinDist = XMVectorMin(MinDist, XMVector3Dot(B1, Axis)); + MinDist = XMVectorMin(MinDist, XMVector3Dot(B2, Axis)); + if (XMVector4GreaterOrEqual(MinDist, Dist)) + return false; + + // Edge (A1, A2) + Axis = XMVector3Cross(N1, XMVectorSubtract(A2, A1)); + Dist = XMVector3Dot(Axis, A1); + + MinDist = XMVector3Dot(B0, Axis); + MinDist = XMVectorMin(MinDist, XMVector3Dot(B1, Axis)); + MinDist = XMVectorMin(MinDist, XMVector3Dot(B2, Axis)); + if (XMVector4GreaterOrEqual(MinDist, Dist)) + return false; + + // Edge (A2, A0) + Axis = XMVector3Cross(N1, XMVectorSubtract(A0, A2)); + Dist = XMVector3Dot(Axis, A2); + + MinDist = XMVector3Dot(B0, Axis); + MinDist = XMVectorMin(MinDist, XMVector3Dot(B1, Axis)); + MinDist = XMVectorMin(MinDist, XMVector3Dot(B2, Axis)); + if (XMVector4GreaterOrEqual(MinDist, Dist)) + return false; + + // Edge (B0, B1) + Axis = XMVector3Cross(N2, XMVectorSubtract(B1, B0)); + Dist = XMVector3Dot(Axis, B0); + + MinDist = XMVector3Dot(A0, Axis); + MinDist = XMVectorMin(MinDist, XMVector3Dot(A1, Axis)); + MinDist = XMVectorMin(MinDist, XMVector3Dot(A2, Axis)); + if (XMVector4GreaterOrEqual(MinDist, Dist)) + return false; + + // Edge (B1, B2) + Axis = XMVector3Cross(N2, XMVectorSubtract(B2, B1)); + Dist = XMVector3Dot(Axis, B1); + + MinDist = XMVector3Dot(A0, Axis); + MinDist = XMVectorMin(MinDist, XMVector3Dot(A1, Axis)); + MinDist = XMVectorMin(MinDist, XMVector3Dot(A2, Axis)); + if (XMVector4GreaterOrEqual(MinDist, Dist)) + return false; + + // Edge (B2,B0) + Axis = XMVector3Cross(N2, XMVectorSubtract(B0, B2)); + Dist = XMVector3Dot(Axis, B2); + + MinDist = XMVector3Dot(A0, Axis); + MinDist = XMVectorMin(MinDist, XMVector3Dot(A1, Axis)); + MinDist = XMVectorMin(MinDist, XMVector3Dot(A2, Axis)); + if (XMVector4GreaterOrEqual(MinDist, Dist)) + return false; + + return true; + } + + // + // Find the single vertex of A and B (ie the vertex on the opposite side + // of the plane from the other two) and reorder the edges so we can compute + // the signed edge/edge distances. + // + // if ( (V0 >= 0 && V1 < 0 && V2 < 0) || + // (V0 > 0 && V1 <= 0 && V2 <= 0) || + // (V0 <= 0 && V1 > 0 && V2 > 0) || + // (V0 < 0 && V1 >= 0 && V2 >= 0) ) then V0 is singular; + // + // If our singular vertex is not on the positive side of the plane we reverse + // the triangle winding so that the overlap comparisons will compare the + // correct edges with the correct signs. + // + XMVECTOR ADistIsLessEqual = XMVectorOrInt(ADistIsLess, ADistIsZero); + XMVECTOR ADistIsGreaterEqual = XMVectorOrInt(ADistIsGreater, ADistIsZero); + + XMVECTOR AA0, AA1, AA2; + bool bPositiveA; + + if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsGreaterEqual, ADistIsLess, Select0111)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsGreater, ADistIsLessEqual, Select0111))) + { + // A0 is singular, crossing from positive to negative. + AA0 = A0; AA1 = A1; AA2 = A2; + bPositiveA = true; + } + else if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsLessEqual, ADistIsGreater, Select0111)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsLess, ADistIsGreaterEqual, Select0111))) + { + // A0 is singular, crossing from negative to positive. + AA0 = A0; AA1 = A2; AA2 = A1; + bPositiveA = false; + } + else if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsGreaterEqual, ADistIsLess, Select1011)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsGreater, ADistIsLessEqual, Select1011))) + { + // A1 is singular, crossing from positive to negative. + AA0 = A1; AA1 = A2; AA2 = A0; + bPositiveA = true; + } + else if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsLessEqual, ADistIsGreater, Select1011)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsLess, ADistIsGreaterEqual, Select1011))) + { + // A1 is singular, crossing from negative to positive. + AA0 = A1; AA1 = A0; AA2 = A2; + bPositiveA = false; + } + else if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsGreaterEqual, ADistIsLess, Select1101)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsGreater, ADistIsLessEqual, Select1101))) + { + // A2 is singular, crossing from positive to negative. + AA0 = A2; AA1 = A0; AA2 = A1; + bPositiveA = true; + } + else if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsLessEqual, ADistIsGreater, Select1101)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(ADistIsLess, ADistIsGreaterEqual, Select1101))) + { + // A2 is singular, crossing from negative to positive. + AA0 = A2; AA1 = A1; AA2 = A0; + bPositiveA = false; + } + else + { + assert(false); + return false; + } + + XMVECTOR BDistIsLessEqual = XMVectorOrInt(BDistIsLess, BDistIsZero); + XMVECTOR BDistIsGreaterEqual = XMVectorOrInt(BDistIsGreater, BDistIsZero); + + XMVECTOR BB0, BB1, BB2; + bool bPositiveB; + + if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsGreaterEqual, BDistIsLess, Select0111)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsGreater, BDistIsLessEqual, Select0111))) + { + // B0 is singular, crossing from positive to negative. + BB0 = B0; BB1 = B1; BB2 = B2; + bPositiveB = true; + } + else if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsLessEqual, BDistIsGreater, Select0111)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsLess, BDistIsGreaterEqual, Select0111))) + { + // B0 is singular, crossing from negative to positive. + BB0 = B0; BB1 = B2; BB2 = B1; + bPositiveB = false; + } + else if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsGreaterEqual, BDistIsLess, Select1011)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsGreater, BDistIsLessEqual, Select1011))) + { + // B1 is singular, crossing from positive to negative. + BB0 = B1; BB1 = B2; BB2 = B0; + bPositiveB = true; + } + else if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsLessEqual, BDistIsGreater, Select1011)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsLess, BDistIsGreaterEqual, Select1011))) + { + // B1 is singular, crossing from negative to positive. + BB0 = B1; BB1 = B0; BB2 = B2; + bPositiveB = false; + } + else if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsGreaterEqual, BDistIsLess, Select1101)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsGreater, BDistIsLessEqual, Select1101))) + { + // B2 is singular, crossing from positive to negative. + BB0 = B2; BB1 = B0; BB2 = B1; + bPositiveB = true; + } + else if (DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsLessEqual, BDistIsGreater, Select1101)) || + DirectX::Internal::XMVector3AllTrue(XMVectorSelect(BDistIsLess, BDistIsGreaterEqual, Select1101))) + { + // B2 is singular, crossing from negative to positive. + BB0 = B2; BB1 = B1; BB2 = B0; + bPositiveB = false; + } + else + { + assert(false); + return false; + } + + XMVECTOR Delta0, Delta1; + + // Reverse the direction of the test depending on whether the singular vertices are + // the same sign or different signs. + if (bPositiveA ^ bPositiveB) + { + Delta0 = XMVectorSubtract(BB0, AA0); + Delta1 = XMVectorSubtract(AA0, BB0); + } + else + { + Delta0 = XMVectorSubtract(AA0, BB0); + Delta1 = XMVectorSubtract(BB0, AA0); + } + + // Check if the triangles overlap on the line of intersection between the + // planes of the two triangles by finding the signed line distances. + XMVECTOR Dist0 = XMVector3Dot(Delta0, XMVector3Cross(XMVectorSubtract(BB2, BB0), XMVectorSubtract(AA2, AA0))); + if (XMVector4Greater(Dist0, Zero)) + return false; + + XMVECTOR Dist1 = XMVector3Dot(Delta1, XMVector3Cross(XMVectorSubtract(BB1, BB0), XMVectorSubtract(AA1, AA0))); + if (XMVector4Greater(Dist1, Zero)) + return false; + + return true; + } + + + //----------------------------------------------------------------------------- + // Ray-triangle test + //----------------------------------------------------------------------------- + _Use_decl_annotations_ + inline PlaneIntersectionType XM_CALLCONV Intersects(FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2, GXMVECTOR Plane) noexcept + { + XMVECTOR One = XMVectorSplatOne(); + + assert(DirectX::Internal::XMPlaneIsUnit(Plane)); + + // Set w of the points to one so we can dot4 with a plane. + XMVECTOR TV0 = XMVectorInsert<0, 0, 0, 0, 1>(V0, One); + XMVECTOR TV1 = XMVectorInsert<0, 0, 0, 0, 1>(V1, One); + XMVECTOR TV2 = XMVectorInsert<0, 0, 0, 0, 1>(V2, One); + + XMVECTOR Outside, Inside; + DirectX::Internal::FastIntersectTrianglePlane(TV0, TV1, TV2, Plane, Outside, Inside); + + // If the triangle is outside any plane it is outside. + if (XMVector4EqualInt(Outside, XMVectorTrueInt())) + return FRONT; + + // If the triangle is inside all planes it is inside. + if (XMVector4EqualInt(Inside, XMVectorTrueInt())) + return BACK; + + // The triangle is not inside all planes or outside a plane it intersects. + return INTERSECTING; + } + + + //----------------------------------------------------------------------------- + // Test a triangle vs 6 planes (typically forming a frustum). + //----------------------------------------------------------------------------- + _Use_decl_annotations_ + inline ContainmentType XM_CALLCONV ContainedBy( + FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR V2, + GXMVECTOR Plane0, + HXMVECTOR Plane1, HXMVECTOR Plane2, + CXMVECTOR Plane3, CXMVECTOR Plane4, CXMVECTOR Plane5) noexcept + { + XMVECTOR One = XMVectorSplatOne(); + + // Set w of the points to one so we can dot4 with a plane. + XMVECTOR TV0 = XMVectorInsert<0, 0, 0, 0, 1>(V0, One); + XMVECTOR TV1 = XMVectorInsert<0, 0, 0, 0, 1>(V1, One); + XMVECTOR TV2 = XMVectorInsert<0, 0, 0, 0, 1>(V2, One); + + XMVECTOR Outside, Inside; + + // Test against each plane. + DirectX::Internal::FastIntersectTrianglePlane(TV0, TV1, TV2, Plane0, Outside, Inside); + + XMVECTOR AnyOutside = Outside; + XMVECTOR AllInside = Inside; + + DirectX::Internal::FastIntersectTrianglePlane(TV0, TV1, TV2, Plane1, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectTrianglePlane(TV0, TV1, TV2, Plane2, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectTrianglePlane(TV0, TV1, TV2, Plane3, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectTrianglePlane(TV0, TV1, TV2, Plane4, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + DirectX::Internal::FastIntersectTrianglePlane(TV0, TV1, TV2, Plane5, Outside, Inside); + AnyOutside = XMVectorOrInt(AnyOutside, Outside); + AllInside = XMVectorAndInt(AllInside, Inside); + + // If the triangle is outside any plane it is outside. + if (XMVector4EqualInt(AnyOutside, XMVectorTrueInt())) + return DISJOINT; + + // If the triangle is inside all planes it is inside. + if (XMVector4EqualInt(AllInside, XMVectorTrueInt())) + return CONTAINS; + + // The triangle is not inside all planes or outside a plane, it may intersect. + return INTERSECTS; + } + +} // namespace TriangleTests + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXColors.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXColors.h new file mode 100644 index 0000000000000000000000000000000000000000..962971e39efb2e285f1c68526bcf540911b59dd2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXColors.h @@ -0,0 +1,312 @@ +//------------------------------------------------------------------------------------- +// DirectXColors.h -- C++ Color Math library +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// +// http://go.microsoft.com/fwlink/?LinkID=615560 +//------------------------------------------------------------------------------------- + +#pragma once + +#include "DirectXMath.h" + +namespace DirectX +{ + + namespace Colors + { + // Standard colors (Red/Green/Blue/Alpha) in sRGB colorspace + XMGLOBALCONST XMVECTORF32 AliceBlue = { { { 0.941176534f, 0.972549081f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 AntiqueWhite = { { { 0.980392218f, 0.921568692f, 0.843137324f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Aqua = { { { 0.f, 1.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Aquamarine = { { { 0.498039246f, 1.f, 0.831372619f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Azure = { { { 0.941176534f, 1.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Beige = { { { 0.960784376f, 0.960784376f, 0.862745166f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Bisque = { { { 1.f, 0.894117713f, 0.768627524f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Black = { { { 0.f, 0.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 BlanchedAlmond = { { { 1.f, 0.921568692f, 0.803921640f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Blue = { { { 0.f, 0.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 BlueViolet = { { { 0.541176498f, 0.168627456f, 0.886274576f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Brown = { { { 0.647058845f, 0.164705887f, 0.164705887f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 BurlyWood = { { { 0.870588303f, 0.721568644f, 0.529411793f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 CadetBlue = { { { 0.372549027f, 0.619607866f, 0.627451003f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Chartreuse = { { { 0.498039246f, 1.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Chocolate = { { { 0.823529482f, 0.411764741f, 0.117647067f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Coral = { { { 1.f, 0.498039246f, 0.313725501f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 CornflowerBlue = { { { 0.392156899f, 0.584313750f, 0.929411829f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Cornsilk = { { { 1.f, 0.972549081f, 0.862745166f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Crimson = { { { 0.862745166f, 0.078431375f, 0.235294133f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Cyan = { { { 0.f, 1.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkBlue = { { { 0.f, 0.f, 0.545098066f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkCyan = { { { 0.f, 0.545098066f, 0.545098066f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkGoldenrod = { { { 0.721568644f, 0.525490224f, 0.043137256f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkGray = { { { 0.662745118f, 0.662745118f, 0.662745118f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkGreen = { { { 0.f, 0.392156899f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkKhaki = { { { 0.741176486f, 0.717647076f, 0.419607878f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkMagenta = { { { 0.545098066f, 0.f, 0.545098066f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkOliveGreen = { { { 0.333333343f, 0.419607878f, 0.184313729f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkOrange = { { { 1.f, 0.549019635f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkOrchid = { { { 0.600000024f, 0.196078449f, 0.800000072f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkRed = { { { 0.545098066f, 0.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkSalmon = { { { 0.913725555f, 0.588235319f, 0.478431404f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkSeaGreen = { { { 0.560784340f, 0.737254918f, 0.545098066f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkSlateBlue = { { { 0.282352954f, 0.239215702f, 0.545098066f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkSlateGray = { { { 0.184313729f, 0.309803933f, 0.309803933f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkTurquoise = { { { 0.f, 0.807843208f, 0.819607913f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkViolet = { { { 0.580392182f, 0.f, 0.827451050f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DeepPink = { { { 1.f, 0.078431375f, 0.576470613f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DeepSkyBlue = { { { 0.f, 0.749019623f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DimGray = { { { 0.411764741f, 0.411764741f, 0.411764741f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DodgerBlue = { { { 0.117647067f, 0.564705908f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Firebrick = { { { 0.698039234f, 0.133333340f, 0.133333340f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 FloralWhite = { { { 1.f, 0.980392218f, 0.941176534f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 ForestGreen = { { { 0.133333340f, 0.545098066f, 0.133333340f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Fuchsia = { { { 1.f, 0.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Gainsboro = { { { 0.862745166f, 0.862745166f, 0.862745166f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 GhostWhite = { { { 0.972549081f, 0.972549081f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Gold = { { { 1.f, 0.843137324f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Goldenrod = { { { 0.854902029f, 0.647058845f, 0.125490203f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Gray = { { { 0.501960814f, 0.501960814f, 0.501960814f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Green = { { { 0.f, 0.501960814f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 GreenYellow = { { { 0.678431392f, 1.f, 0.184313729f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Honeydew = { { { 0.941176534f, 1.f, 0.941176534f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 HotPink = { { { 1.f, 0.411764741f, 0.705882370f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 IndianRed = { { { 0.803921640f, 0.360784322f, 0.360784322f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Indigo = { { { 0.294117659f, 0.f, 0.509803951f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Ivory = { { { 1.f, 1.f, 0.941176534f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Khaki = { { { 0.941176534f, 0.901960850f, 0.549019635f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Lavender = { { { 0.901960850f, 0.901960850f, 0.980392218f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LavenderBlush = { { { 1.f, 0.941176534f, 0.960784376f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LawnGreen = { { { 0.486274540f, 0.988235354f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LemonChiffon = { { { 1.f, 0.980392218f, 0.803921640f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightBlue = { { { 0.678431392f, 0.847058892f, 0.901960850f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightCoral = { { { 0.941176534f, 0.501960814f, 0.501960814f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightCyan = { { { 0.878431439f, 1.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightGoldenrodYellow = { { { 0.980392218f, 0.980392218f, 0.823529482f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightGray = { { { 0.827451050f, 0.827451050f, 0.827451050f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightGreen = { { { 0.564705908f, 0.933333397f, 0.564705908f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightPink = { { { 1.f, 0.713725507f, 0.756862819f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightSalmon = { { { 1.f, 0.627451003f, 0.478431404f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightSeaGreen = { { { 0.125490203f, 0.698039234f, 0.666666687f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightSkyBlue = { { { 0.529411793f, 0.807843208f, 0.980392218f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightSlateGray = { { { 0.466666698f, 0.533333361f, 0.600000024f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightSteelBlue = { { { 0.690196097f, 0.768627524f, 0.870588303f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightYellow = { { { 1.f, 1.f, 0.878431439f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Lime = { { { 0.f, 1.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LimeGreen = { { { 0.196078449f, 0.803921640f, 0.196078449f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Linen = { { { 0.980392218f, 0.941176534f, 0.901960850f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Magenta = { { { 1.f, 0.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Maroon = { { { 0.501960814f, 0.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumAquamarine = { { { 0.400000036f, 0.803921640f, 0.666666687f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumBlue = { { { 0.f, 0.f, 0.803921640f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumOrchid = { { { 0.729411781f, 0.333333343f, 0.827451050f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumPurple = { { { 0.576470613f, 0.439215720f, 0.858823597f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumSeaGreen = { { { 0.235294133f, 0.701960802f, 0.443137288f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumSlateBlue = { { { 0.482352972f, 0.407843173f, 0.933333397f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumSpringGreen = { { { 0.f, 0.980392218f, 0.603921592f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumTurquoise = { { { 0.282352954f, 0.819607913f, 0.800000072f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumVioletRed = { { { 0.780392230f, 0.082352944f, 0.521568656f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MidnightBlue = { { { 0.098039225f, 0.098039225f, 0.439215720f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MintCream = { { { 0.960784376f, 1.f, 0.980392218f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MistyRose = { { { 1.f, 0.894117713f, 0.882353008f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Moccasin = { { { 1.f, 0.894117713f, 0.709803939f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 NavajoWhite = { { { 1.f, 0.870588303f, 0.678431392f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Navy = { { { 0.f, 0.f, 0.501960814f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 OldLace = { { { 0.992156923f, 0.960784376f, 0.901960850f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Olive = { { { 0.501960814f, 0.501960814f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 OliveDrab = { { { 0.419607878f, 0.556862772f, 0.137254909f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Orange = { { { 1.f, 0.647058845f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 OrangeRed = { { { 1.f, 0.270588249f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Orchid = { { { 0.854902029f, 0.439215720f, 0.839215755f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PaleGoldenrod = { { { 0.933333397f, 0.909803987f, 0.666666687f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PaleGreen = { { { 0.596078455f, 0.984313786f, 0.596078455f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PaleTurquoise = { { { 0.686274529f, 0.933333397f, 0.933333397f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PaleVioletRed = { { { 0.858823597f, 0.439215720f, 0.576470613f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PapayaWhip = { { { 1.f, 0.937254965f, 0.835294187f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PeachPuff = { { { 1.f, 0.854902029f, 0.725490212f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Peru = { { { 0.803921640f, 0.521568656f, 0.247058839f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Pink = { { { 1.f, 0.752941251f, 0.796078503f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Plum = { { { 0.866666734f, 0.627451003f, 0.866666734f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PowderBlue = { { { 0.690196097f, 0.878431439f, 0.901960850f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Purple = { { { 0.501960814f, 0.f, 0.501960814f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Red = { { { 1.f, 0.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 RosyBrown = { { { 0.737254918f, 0.560784340f, 0.560784340f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 RoyalBlue = { { { 0.254901975f, 0.411764741f, 0.882353008f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SaddleBrown = { { { 0.545098066f, 0.270588249f, 0.074509807f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Salmon = { { { 0.980392218f, 0.501960814f, 0.447058856f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SandyBrown = { { { 0.956862807f, 0.643137276f, 0.376470625f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SeaGreen = { { { 0.180392161f, 0.545098066f, 0.341176480f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SeaShell = { { { 1.f, 0.960784376f, 0.933333397f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Sienna = { { { 0.627451003f, 0.321568638f, 0.176470593f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Silver = { { { 0.752941251f, 0.752941251f, 0.752941251f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SkyBlue = { { { 0.529411793f, 0.807843208f, 0.921568692f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SlateBlue = { { { 0.415686309f, 0.352941185f, 0.803921640f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SlateGray = { { { 0.439215720f, 0.501960814f, 0.564705908f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Snow = { { { 1.f, 0.980392218f, 0.980392218f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SpringGreen = { { { 0.f, 1.f, 0.498039246f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SteelBlue = { { { 0.274509817f, 0.509803951f, 0.705882370f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Tan = { { { 0.823529482f, 0.705882370f, 0.549019635f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Teal = { { { 0.f, 0.501960814f, 0.501960814f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Thistle = { { { 0.847058892f, 0.749019623f, 0.847058892f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Tomato = { { { 1.f, 0.388235331f, 0.278431386f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Transparent = { { { 0.f, 0.f, 0.f, 0.f } } }; + XMGLOBALCONST XMVECTORF32 Turquoise = { { { 0.250980407f, 0.878431439f, 0.815686345f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Violet = { { { 0.933333397f, 0.509803951f, 0.933333397f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Wheat = { { { 0.960784376f, 0.870588303f, 0.701960802f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 White = { { { 1.f, 1.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 WhiteSmoke = { { { 0.960784376f, 0.960784376f, 0.960784376f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Yellow = { { { 1.f, 1.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 YellowGreen = { { { 0.603921592f, 0.803921640f, 0.196078449f, 1.f } } }; + + } // namespace Colors + + namespace ColorsLinear + { + // Standard colors (Red/Green/Blue/Alpha) in linear colorspace + XMGLOBALCONST XMVECTORF32 AliceBlue = { { { 0.871367335f, 0.938685894f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 AntiqueWhite = { { { 0.955973506f, 0.830770075f, 0.679542601f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Aqua = { { { 0.f, 1.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Aquamarine = { { { 0.212230787f, 1.f, 0.658374965f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Azure = { { { 0.871367335f, 1.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Beige = { { { 0.913098991f, 0.913098991f, 0.715693772f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Bisque = { { { 1.f, 0.775822461f, 0.552011609f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Black = { { { 0.f, 0.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 BlanchedAlmond = { { { 1.f, 0.830770075f, 0.610495746f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Blue = { { { 0.f, 0.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 BlueViolet = { { { 0.254152179f, 0.024157630f, 0.760524750f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Brown = { { { 0.376262218f, 0.023153365f, 0.023153365f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 BurlyWood = { { { 0.730461001f, 0.479320228f, 0.242281199f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 CadetBlue = { { { 0.114435382f, 0.341914445f, 0.351532698f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Chartreuse = { { { 0.212230787f, 1.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Chocolate = { { { 0.644479871f, 0.141263321f, 0.012983031f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Coral = { { { 1.f, 0.212230787f, 0.080219828f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 CornflowerBlue = { { { 0.127437726f, 0.300543845f, 0.846873462f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Cornsilk = { { { 1.f, 0.938685894f, 0.715693772f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Crimson = { { { 0.715693772f, 0.006995410f, 0.045186214f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Cyan = { { { 0.f, 1.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkBlue = { { { 0.f, 0.f, 0.258182913f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkCyan = { { { 0.f, 0.258182913f, 0.258182913f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkGoldenrod = { { { 0.479320228f, 0.238397658f, 0.003346536f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkGray = { { { 0.396755308f, 0.396755308f, 0.396755308f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkGreen = { { { 0.f, 0.127437726f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkKhaki = { { { 0.508881450f, 0.473531544f, 0.147027299f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkMagenta = { { { 0.258182913f, 0.f, 0.258182913f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkOliveGreen = { { { 0.090841733f, 0.147027299f, 0.028426038f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkOrange = { { { 1.f, 0.262250721f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkOrchid = { { { 0.318546832f, 0.031896040f, 0.603827536f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkRed = { { { 0.258182913f, 0.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkSalmon = { { { 0.814846814f, 0.304987371f, 0.194617867f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkSeaGreen = { { { 0.274677366f, 0.502886593f, 0.258182913f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkSlateBlue = { { { 0.064803280f, 0.046665095f, 0.258182913f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkSlateGray = { { { 0.028426038f, 0.078187428f, 0.078187428f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkTurquoise = { { { 0.f, 0.617206752f, 0.637597024f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DarkViolet = { { { 0.296138316f, 0.f, 0.651405811f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DeepPink = { { { 1.f, 0.006995410f, 0.291770697f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DeepSkyBlue = { { { 0.f, 0.520995677f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DimGray = { { { 0.141263321f, 0.141263321f, 0.141263321f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 DodgerBlue = { { { 0.012983031f, 0.278894335f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Firebrick = { { { 0.445201248f, 0.015996292f, 0.015996292f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 FloralWhite = { { { 1.f, 0.955973506f, 0.871367335f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 ForestGreen = { { { 0.015996292f, 0.258182913f, 0.015996292f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Fuchsia = { { { 1.f, 0.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Gainsboro = { { { 0.715693772f, 0.715693772f, 0.715693772f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 GhostWhite = { { { 0.938685894f, 0.938685894f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Gold = { { { 1.f, 0.679542601f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Goldenrod = { { { 0.701102138f, 0.376262218f, 0.014443844f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Gray = { { { 0.215860531f, 0.215860531f, 0.215860531f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Green = { { { 0.f, 0.215860531f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 GreenYellow = { { { 0.417885154f, 1.f, 0.028426038f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Honeydew = { { { 0.871367335f, 1.f, 0.871367335f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 HotPink = { { { 1.f, 0.141263321f, 0.456411064f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 IndianRed = { { { 0.610495746f, 0.107023112f, 0.107023112f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Indigo = { { { 0.070360109f, 0.f, 0.223227978f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Ivory = { { { 1.f, 1.f, 0.871367335f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Khaki = { { { 0.871367335f, 0.791298151f, 0.262250721f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Lavender = { { { 0.791298151f, 0.791298151f, 0.955973506f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LavenderBlush = { { { 1.f, 0.871367335f, 0.913098991f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LawnGreen = { { { 0.201556295f, 0.973445475f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LemonChiffon = { { { 1.f, 0.955973506f, 0.610495746f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightBlue = { { { 0.417885154f, 0.686685443f, 0.791298151f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightCoral = { { { 0.871367335f, 0.215860531f, 0.215860531f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightCyan = { { { 0.745404482f, 1.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightGoldenrodYellow = { { { 0.955973506f, 0.955973506f, 0.644479871f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightGray = { { { 0.651405811f, 0.651405811f, 0.651405811f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightGreen = { { { 0.278894335f, 0.854992807f, 0.278894335f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightPink = { { { 1.f, 0.467783839f, 0.533276618f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightSalmon = { { { 1.f, 0.351532698f, 0.194617867f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightSeaGreen = { { { 0.014443844f, 0.445201248f, 0.401977867f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightSkyBlue = { { { 0.242281199f, 0.617206752f, 0.955973506f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightSlateGray = { { { 0.184475034f, 0.246201396f, 0.318546832f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightSteelBlue = { { { 0.434153706f, 0.552011609f, 0.730461001f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LightYellow = { { { 1.f, 1.f, 0.745404482f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Lime = { { { 0.f, 1.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 LimeGreen = { { { 0.031896040f, 0.610495746f, 0.031896040f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Linen = { { { 0.955973506f, 0.871367335f, 0.791298151f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Magenta = { { { 1.f, 0.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Maroon = { { { 0.215860531f, 0.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumAquamarine = { { { 0.132868364f, 0.610495746f, 0.401977867f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumBlue = { { { 0.f, 0.f, 0.610495746f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumOrchid = { { { 0.491020888f, 0.090841733f, 0.651405811f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumPurple = { { { 0.291770697f, 0.162029430f, 0.708376050f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumSeaGreen = { { { 0.045186214f, 0.450785846f, 0.165132239f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumSlateBlue = { { { 0.198069349f, 0.138431653f, 0.854992807f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumSpringGreen = { { { 0.f, 0.955973506f, 0.323143244f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumTurquoise = { { { 0.064803280f, 0.637597024f, 0.603827536f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MediumVioletRed = { { { 0.571125031f, 0.007499032f, 0.234550655f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MidnightBlue = { { { 0.009721218f, 0.009721218f, 0.162029430f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MintCream = { { { 0.913098991f, 1.f, 0.955973506f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 MistyRose = { { { 1.f, 0.775822461f, 0.752942443f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Moccasin = { { { 1.f, 0.775822461f, 0.462077051f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 NavajoWhite = { { { 1.f, 0.730461001f, 0.417885154f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Navy = { { { 0.f, 0.f, 0.215860531f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 OldLace = { { { 0.982250869f, 0.913098991f, 0.791298151f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Olive = { { { 0.215860531f, 0.215860531f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 OliveDrab = { { { 0.147027299f, 0.270497859f, 0.016807375f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Orange = { { { 1.f, 0.376262218f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 OrangeRed = { { { 1.f, 0.059511241f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Orchid = { { { 0.701102138f, 0.162029430f, 0.672443330f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PaleGoldenrod = { { { 0.854992807f, 0.806952477f, 0.401977867f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PaleGreen = { { { 0.313988745f, 0.964686573f, 0.313988745f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PaleTurquoise = { { { 0.428690553f, 0.854992807f, 0.854992807f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PaleVioletRed = { { { 0.708376050f, 0.162029430f, 0.291770697f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PapayaWhip = { { { 1.f, 0.863157392f, 0.665387452f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PeachPuff = { { { 1.f, 0.701102138f, 0.485149980f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Peru = { { { 0.610495746f, 0.234550655f, 0.049706575f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Pink = { { { 1.f, 0.527115345f, 0.597202003f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Plum = { { { 0.723055363f, 0.351532698f, 0.723055363f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 PowderBlue = { { { 0.434153706f, 0.745404482f, 0.791298151f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Purple = { { { 0.215860531f, 0.f, 0.215860531f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Red = { { { 1.f, 0.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 RosyBrown = { { { 0.502886593f, 0.274677366f, 0.274677366f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 RoyalBlue = { { { 0.052860655f, 0.141263321f, 0.752942443f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SaddleBrown = { { { 0.258182913f, 0.059511241f, 0.006512091f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Salmon = { { { 0.955973506f, 0.215860531f, 0.168269455f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SandyBrown = { { { 0.904661357f, 0.371237785f, 0.116970696f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SeaGreen = { { { 0.027320892f, 0.258182913f, 0.095307484f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SeaShell = { { { 1.f, 0.913098991f, 0.854992807f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Sienna = { { { 0.351532698f, 0.084376216f, 0.026241222f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Silver = { { { 0.527115345f, 0.527115345f, 0.527115345f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SkyBlue = { { { 0.242281199f, 0.617206752f, 0.830770075f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SlateBlue = { { { 0.144128501f, 0.102241747f, 0.610495746f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SlateGray = { { { 0.162029430f, 0.215860531f, 0.278894335f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Snow = { { { 1.f, 0.955973506f, 0.955973506f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SpringGreen = { { { 0.f, 1.f, 0.212230787f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 SteelBlue = { { { 0.061246071f, 0.223227978f, 0.456411064f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Tan = { { { 0.644479871f, 0.456411064f, 0.262250721f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Teal = { { { 0.f, 0.215860531f, 0.215860531f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Thistle = { { { 0.686685443f, 0.520995677f, 0.686685443f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Tomato = { { { 1.f, 0.124771863f, 0.063010029f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Transparent = { { { 0.f, 0.f, 0.f, 0.f } } }; + XMGLOBALCONST XMVECTORF32 Turquoise = { { { 0.051269468f, 0.745404482f, 0.630757332f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Violet = { { { 0.854992807f, 0.223227978f, 0.854992807f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Wheat = { { { 0.913098991f, 0.730461001f, 0.450785846f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 White = { { { 1.f, 1.f, 1.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 WhiteSmoke = { { { 0.913098991f, 0.913098991f, 0.913098991f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 Yellow = { { { 1.f, 1.f, 0.f, 1.f } } }; + XMGLOBALCONST XMVECTORF32 YellowGreen = { { { 0.323143244f, 0.610495746f, 0.031896040f, 1.f } } }; + + } // namespace ColorsLinear + +} // namespace DirectX + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMath.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMath.h new file mode 100644 index 0000000000000000000000000000000000000000..4c59b3f8dea4eda5afe3776aaf1b2bbcd8638ba2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMath.h @@ -0,0 +1,2282 @@ +//------------------------------------------------------------------------------------- +// DirectXMath.h -- SIMD C++ Math library +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// +// http://go.microsoft.com/fwlink/?LinkID=615560 +//------------------------------------------------------------------------------------- + +#pragma once + +#ifndef __cplusplus +#error DirectX Math requires C++ +#endif + +#define DIRECTX_MATH_VERSION 319 + +#if defined(_MSC_VER) && defined(_GAMING_XBOX) && defined(_M_X64) && !defined(_XM_F16C_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) +#define _XM_F16C_INTRINSICS_ +#endif + +#if defined(_MSC_VER) && !defined(_M_ARM) && !defined(_M_ARM64) && !defined(_M_HYBRID_X86_ARM64) && !defined(_M_ARM64EC) && (!_MANAGED) && (!_M_CEE) && (!defined(_M_IX86_FP) || (_M_IX86_FP > 1)) && !defined(_XM_NO_INTRINSICS_) && !defined(_XM_VECTORCALL_) +#define _XM_VECTORCALL_ 1 +#endif + +#if _XM_VECTORCALL_ +#define XM_CALLCONV __vectorcall +#elif defined(__GNUC__) +#define XM_CALLCONV +#else +#define XM_CALLCONV __fastcall +#endif + +#ifndef XM_DEPRECATED +#ifdef __GNUC__ +#define XM_DEPRECATED __attribute__ ((deprecated)) +#else +#define XM_DEPRECATED __declspec(deprecated("This is deprecated and will be removed in a future version.")) +#endif +#endif + +#if !defined(_XM_AVX2_INTRINSICS_) && defined(__AVX2__) && !defined(_XM_NO_INTRINSICS_) +#define _XM_AVX2_INTRINSICS_ +#endif + +#if !defined(_XM_FMA3_INTRINSICS_) && defined(_XM_AVX2_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) +#define _XM_FMA3_INTRINSICS_ +#endif + +#if !defined(_XM_F16C_INTRINSICS_) && defined(_XM_AVX2_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) +#define _XM_F16C_INTRINSICS_ +#endif + +#if !defined(_XM_F16C_INTRINSICS_) && defined(__F16C__) && !defined(_XM_NO_INTRINSICS_) +#define _XM_F16C_INTRINSICS_ +#endif + +#if defined(_XM_FMA3_INTRINSICS_) && !defined(_XM_AVX_INTRINSICS_) +#define _XM_AVX_INTRINSICS_ +#endif + +#if defined(_XM_F16C_INTRINSICS_) && !defined(_XM_AVX_INTRINSICS_) +#define _XM_AVX_INTRINSICS_ +#endif + +#if !defined(_XM_AVX_INTRINSICS_) && defined(__AVX__) && !defined(_XM_NO_INTRINSICS_) +#define _XM_AVX_INTRINSICS_ +#endif + +#if defined(_XM_AVX_INTRINSICS_) && !defined(_XM_SSE4_INTRINSICS_) +#define _XM_SSE4_INTRINSICS_ +#endif + +#if defined(_XM_SSE4_INTRINSICS_) && !defined(_XM_SSE3_INTRINSICS_) +#define _XM_SSE3_INTRINSICS_ +#endif + +#if defined(_XM_SSE3_INTRINSICS_) && !defined(_XM_SSE_INTRINSICS_) +#define _XM_SSE_INTRINSICS_ +#endif + +#if !defined(_XM_ARM_NEON_INTRINSICS_) && !defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) +#if (defined(_M_IX86) || defined(_M_X64) || __i386__ || __x86_64__) && !defined(_M_HYBRID_X86_ARM64) && !defined(_M_ARM64EC) +#define _XM_SSE_INTRINSICS_ +#elif defined(_M_ARM) || defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __arm__ || __aarch64__ +#define _XM_ARM_NEON_INTRINSICS_ +#elif !defined(_XM_NO_INTRINSICS_) +#error DirectX Math does not support this target +#endif +#endif // !_XM_ARM_NEON_INTRINSICS_ && !_XM_SSE_INTRINSICS_ && !_XM_NO_INTRINSICS_ + + +#if !defined(_XM_NO_XMVECTOR_OVERLOADS_) && (defined(__clang__) || defined(__GNUC__)) && !defined(_XM_NO_INTRINSICS_) +#define _XM_NO_XMVECTOR_OVERLOADS_ +#endif + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4514 4820) +// C4514/4820: Off by default noise +#endif +#include +#include +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +#ifndef _XM_NO_INTRINSICS_ + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4987) +// C4987: Off by default noise +#endif +#if defined(_MSC_VER) || defined(__MINGW32__) +#include +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +#if (defined(__clang__) || defined(__GNUC__)) && (__x86_64__ || __i386__) && !defined(__MINGW32__) +#include +#endif + +#ifdef _XM_SSE_INTRINSICS_ +#include +#include + +#ifdef _XM_SSE3_INTRINSICS_ +#include +#endif + +#ifdef _XM_SSE4_INTRINSICS_ +#include +#endif + +#ifdef _XM_AVX_INTRINSICS_ +#include +#endif + +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && (defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC)) +#include +#else +#include +#endif +#endif +#endif // !_XM_NO_INTRINSICS_ + +#include "sal.h" +#include + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4005 4668) +// C4005/4668: Old header issue +#endif +#include +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +#if __cplusplus >= 201703L +#define XM_ALIGNED_DATA(x) alignas(x) +#define XM_ALIGNED_STRUCT(x) struct alignas(x) +#elif defined(__GNUC__) +#define XM_ALIGNED_DATA(x) __attribute__ ((aligned(x))) +#define XM_ALIGNED_STRUCT(x) struct __attribute__ ((aligned(x))) +#else +#define XM_ALIGNED_DATA(x) __declspec(align(x)) +#define XM_ALIGNED_STRUCT(x) __declspec(align(x)) struct +#endif + +#if (__cplusplus >= 202002L) +#include +#endif + +/**************************************************************************** + * + * Conditional intrinsics + * + ****************************************************************************/ + +#if defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + +#if defined(_XM_NO_MOVNT_) +#define XM_STREAM_PS( p, a ) _mm_store_ps((p), (a)) +#define XM256_STREAM_PS( p, a ) _mm256_store_ps((p), (a)) +#define XM_SFENCE() +#else +#define XM_STREAM_PS( p, a ) _mm_stream_ps((p), (a)) +#define XM256_STREAM_PS( p, a ) _mm256_stream_ps((p), (a)) +#define XM_SFENCE() _mm_sfence() +#endif + +#if defined(_XM_FMA3_INTRINSICS_) +#define XM_FMADD_PS( a, b, c ) _mm_fmadd_ps((a), (b), (c)) +#define XM_FNMADD_PS( a, b, c ) _mm_fnmadd_ps((a), (b), (c)) +#else +#define XM_FMADD_PS( a, b, c ) _mm_add_ps(_mm_mul_ps((a), (b)), (c)) +#define XM_FNMADD_PS( a, b, c ) _mm_sub_ps((c), _mm_mul_ps((a), (b))) +#endif + +#if defined(_XM_AVX_INTRINSICS_) && defined(_XM_FAVOR_INTEL_) +#define XM_PERMUTE_PS( v, c ) _mm_permute_ps((v), c ) +#else +#define XM_PERMUTE_PS( v, c ) _mm_shuffle_ps((v), (v), c ) +#endif + +#define XM_LOADU_SI16( p ) _mm_cvtsi32_si128(*reinterpret_cast(p)) + +#endif // _XM_SSE_INTRINSICS_ && !_XM_NO_INTRINSICS_ + +#if defined(_XM_ARM_NEON_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + +#if defined(__clang__) || defined(__GNUC__) +#define XM_PREFETCH( a ) __builtin_prefetch(a) +#elif defined(_MSC_VER) +#define XM_PREFETCH( a ) __prefetch(a) +#else +#define XM_PREFETCH( a ) +#endif + +#endif // _XM_ARM_NEON_INTRINSICS_ && !_XM_NO_INTRINSICS_ + +namespace DirectX +{ + + /**************************************************************************** + * + * Constant definitions + * + ****************************************************************************/ + +#if defined(__XNAMATH_H__) && defined(XM_PI) +#undef XM_PI +#undef XM_2PI +#undef XM_1DIVPI +#undef XM_1DIV2PI +#undef XM_PIDIV2 +#undef XM_PIDIV4 +#undef XM_SELECT_0 +#undef XM_SELECT_1 +#undef XM_PERMUTE_0X +#undef XM_PERMUTE_0Y +#undef XM_PERMUTE_0Z +#undef XM_PERMUTE_0W +#undef XM_PERMUTE_1X +#undef XM_PERMUTE_1Y +#undef XM_PERMUTE_1Z +#undef XM_PERMUTE_1W +#undef XM_CRMASK_CR6 +#undef XM_CRMASK_CR6TRUE +#undef XM_CRMASK_CR6FALSE +#undef XM_CRMASK_CR6BOUNDS +#undef XM_CACHE_LINE_SIZE +#endif + + constexpr float XM_PI = 3.141592654f; + constexpr float XM_2PI = 6.283185307f; + constexpr float XM_1DIVPI = 0.318309886f; + constexpr float XM_1DIV2PI = 0.159154943f; + constexpr float XM_PIDIV2 = 1.570796327f; + constexpr float XM_PIDIV4 = 0.785398163f; + + constexpr uint32_t XM_SELECT_0 = 0x00000000; + constexpr uint32_t XM_SELECT_1 = 0xFFFFFFFF; + + constexpr uint32_t XM_PERMUTE_0X = 0; + constexpr uint32_t XM_PERMUTE_0Y = 1; + constexpr uint32_t XM_PERMUTE_0Z = 2; + constexpr uint32_t XM_PERMUTE_0W = 3; + constexpr uint32_t XM_PERMUTE_1X = 4; + constexpr uint32_t XM_PERMUTE_1Y = 5; + constexpr uint32_t XM_PERMUTE_1Z = 6; + constexpr uint32_t XM_PERMUTE_1W = 7; + + constexpr uint32_t XM_SWIZZLE_X = 0; + constexpr uint32_t XM_SWIZZLE_Y = 1; + constexpr uint32_t XM_SWIZZLE_Z = 2; + constexpr uint32_t XM_SWIZZLE_W = 3; + + constexpr uint32_t XM_CRMASK_CR6 = 0x000000F0; + constexpr uint32_t XM_CRMASK_CR6TRUE = 0x00000080; + constexpr uint32_t XM_CRMASK_CR6FALSE = 0x00000020; + constexpr uint32_t XM_CRMASK_CR6BOUNDS = XM_CRMASK_CR6FALSE; + +#if defined(_M_ARM) || defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __arm__ || __aarch64__ + constexpr size_t XM_CACHE_LINE_SIZE = 128; +#else + constexpr size_t XM_CACHE_LINE_SIZE = 64; +#endif + + + /**************************************************************************** + * + * Macros + * + ****************************************************************************/ + +#if defined(__XNAMATH_H__) && defined(XMComparisonAllTrue) +#undef XMComparisonAllTrue +#undef XMComparisonAnyTrue +#undef XMComparisonAllFalse +#undef XMComparisonAnyFalse +#undef XMComparisonMixed +#undef XMComparisonAllInBounds +#undef XMComparisonAnyOutOfBounds +#endif + + // Unit conversion + + constexpr float XMConvertToRadians(float fDegrees) noexcept { return fDegrees * (XM_PI / 180.0f); } + constexpr float XMConvertToDegrees(float fRadians) noexcept { return fRadians * (180.0f / XM_PI); } + + // Condition register evaluation proceeding a recording (R) comparison + + constexpr bool XMComparisonAllTrue(uint32_t CR) noexcept { return (CR & XM_CRMASK_CR6TRUE) == XM_CRMASK_CR6TRUE; } + constexpr bool XMComparisonAnyTrue(uint32_t CR) noexcept { return (CR & XM_CRMASK_CR6FALSE) != XM_CRMASK_CR6FALSE; } + constexpr bool XMComparisonAllFalse(uint32_t CR) noexcept { return (CR & XM_CRMASK_CR6FALSE) == XM_CRMASK_CR6FALSE; } + constexpr bool XMComparisonAnyFalse(uint32_t CR) noexcept { return (CR & XM_CRMASK_CR6TRUE) != XM_CRMASK_CR6TRUE; } + constexpr bool XMComparisonMixed(uint32_t CR) noexcept { return (CR & XM_CRMASK_CR6) == 0; } + constexpr bool XMComparisonAllInBounds(uint32_t CR) noexcept { return (CR & XM_CRMASK_CR6BOUNDS) == XM_CRMASK_CR6BOUNDS; } + constexpr bool XMComparisonAnyOutOfBounds(uint32_t CR) noexcept { return (CR & XM_CRMASK_CR6BOUNDS) != XM_CRMASK_CR6BOUNDS; } + + + /**************************************************************************** + * + * Data types + * + ****************************************************************************/ + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4068 4201 4365 4324 4820) + // C4068: ignore unknown pragmas + // C4201: nonstandard extension used : nameless struct/union + // C4365: Off by default noise + // C4324/4820: padding warnings +#endif + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes") +#endif + +//------------------------------------------------------------------------------ +#if defined(_XM_NO_INTRINSICS_) + struct __vector4 + { + union + { + float vector4_f32[4]; + uint32_t vector4_u32[4]; + }; + }; +#endif // _XM_NO_INTRINSICS_ + + //------------------------------------------------------------------------------ + // Vector intrinsic: Four 32 bit floating point components aligned on a 16 byte + // boundary and mapped to hardware vector registers +#if defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + using XMVECTOR = __m128; +#elif defined(_XM_ARM_NEON_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + using XMVECTOR = float32x4_t; +#else + using XMVECTOR = __vector4; +#endif + + // Fix-up for (1st-3rd) XMVECTOR parameters that are pass-in-register for x86, ARM, ARM64, and vector call; by reference otherwise +#if ( defined(_M_IX86) || defined(_M_ARM) || defined(_M_ARM64) || _XM_VECTORCALL_ || __i386__ || __arm__ || __aarch64__ ) && !defined(_XM_NO_INTRINSICS_) + typedef const XMVECTOR FXMVECTOR; +#else + typedef const XMVECTOR& FXMVECTOR; +#endif + + // Fix-up for (4th) XMVECTOR parameter to pass in-register for ARM, ARM64, and vector call; by reference otherwise +#if ( defined(_M_ARM) || defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || _XM_VECTORCALL_ || __arm__ || __aarch64__ ) && !defined(_XM_NO_INTRINSICS_) + typedef const XMVECTOR GXMVECTOR; +#else + typedef const XMVECTOR& GXMVECTOR; +#endif + + // Fix-up for (5th & 6th) XMVECTOR parameter to pass in-register for ARM64 and vector call; by reference otherwise +#if ( defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || _XM_VECTORCALL_ || __aarch64__ ) && !defined(_XM_NO_INTRINSICS_) + typedef const XMVECTOR HXMVECTOR; +#else + typedef const XMVECTOR& HXMVECTOR; +#endif + + // Fix-up for (7th+) XMVECTOR parameters to pass by reference + typedef const XMVECTOR& CXMVECTOR; + + //------------------------------------------------------------------------------ + // Conversion types for constants + XM_ALIGNED_STRUCT(16) XMVECTORF32 + { + union + { + float f[4]; + XMVECTOR v; + }; + + inline operator XMVECTOR() const noexcept { return v; } + inline operator const float* () const noexcept { return f; } +#ifdef _XM_NO_INTRINSICS_ +#elif defined(_XM_SSE_INTRINSICS_) + inline operator __m128i() const noexcept { return _mm_castps_si128(v); } + inline operator __m128d() const noexcept { return _mm_castps_pd(v); } +#elif defined(_XM_ARM_NEON_INTRINSICS_) && (defined(__GNUC__) || defined(_ARM64_DISTINCT_NEON_TYPES)) + inline operator int32x4_t() const noexcept { return vreinterpretq_s32_f32(v); } + inline operator uint32x4_t() const noexcept { return vreinterpretq_u32_f32(v); } +#endif + }; + + XM_ALIGNED_STRUCT(16) XMVECTORI32 + { + union + { + int32_t i[4]; + XMVECTOR v; + }; + + inline operator XMVECTOR() const noexcept { return v; } +#ifdef _XM_NO_INTRINSICS_ +#elif defined(_XM_SSE_INTRINSICS_) + inline operator __m128i() const noexcept { return _mm_castps_si128(v); } + inline operator __m128d() const noexcept { return _mm_castps_pd(v); } +#elif defined(_XM_ARM_NEON_INTRINSICS_) && (defined(__GNUC__) || defined(_ARM64_DISTINCT_NEON_TYPES)) + inline operator int32x4_t() const noexcept { return vreinterpretq_s32_f32(v); } + inline operator uint32x4_t() const noexcept { return vreinterpretq_u32_f32(v); } +#endif + }; + + XM_ALIGNED_STRUCT(16) XMVECTORU8 + { + union + { + uint8_t u[16]; + XMVECTOR v; + }; + + inline operator XMVECTOR() const noexcept { return v; } +#ifdef _XM_NO_INTRINSICS_ +#elif defined(_XM_SSE_INTRINSICS_) + inline operator __m128i() const noexcept { return _mm_castps_si128(v); } + inline operator __m128d() const noexcept { return _mm_castps_pd(v); } +#elif defined(_XM_ARM_NEON_INTRINSICS_) && (defined(__GNUC__) || defined(_ARM64_DISTINCT_NEON_TYPES)) + inline operator int32x4_t() const noexcept { return vreinterpretq_s32_f32(v); } + inline operator uint32x4_t() const noexcept { return vreinterpretq_u32_f32(v); } +#endif + }; + + XM_ALIGNED_STRUCT(16) XMVECTORU32 + { + union + { + uint32_t u[4]; + XMVECTOR v; + }; + + inline operator XMVECTOR() const noexcept { return v; } +#ifdef _XM_NO_INTRINSICS_ +#elif defined(_XM_SSE_INTRINSICS_) + inline operator __m128i() const noexcept { return _mm_castps_si128(v); } + inline operator __m128d() const noexcept { return _mm_castps_pd(v); } +#elif defined(_XM_ARM_NEON_INTRINSICS_) && (defined(__GNUC__) || defined(_ARM64_DISTINCT_NEON_TYPES)) + inline operator int32x4_t() const noexcept { return vreinterpretq_s32_f32(v); } + inline operator uint32x4_t() const noexcept { return vreinterpretq_u32_f32(v); } +#endif + }; + + //------------------------------------------------------------------------------ + // Vector operators + +#ifndef _XM_NO_XMVECTOR_OVERLOADS_ + XMVECTOR XM_CALLCONV operator+ (FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV operator- (FXMVECTOR V) noexcept; + + XMVECTOR& XM_CALLCONV operator+= (XMVECTOR& V1, FXMVECTOR V2) noexcept; + XMVECTOR& XM_CALLCONV operator-= (XMVECTOR& V1, FXMVECTOR V2) noexcept; + XMVECTOR& XM_CALLCONV operator*= (XMVECTOR& V1, FXMVECTOR V2) noexcept; + XMVECTOR& XM_CALLCONV operator/= (XMVECTOR& V1, FXMVECTOR V2) noexcept; + + XMVECTOR& operator*= (XMVECTOR& V, float S) noexcept; + XMVECTOR& operator/= (XMVECTOR& V, float S) noexcept; + + XMVECTOR XM_CALLCONV operator+ (FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV operator- (FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV operator* (FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV operator/ (FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV operator* (FXMVECTOR V, float S) noexcept; + XMVECTOR XM_CALLCONV operator* (float S, FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV operator/ (FXMVECTOR V, float S) noexcept; +#endif /* !_XM_NO_XMVECTOR_OVERLOADS_ */ + + //------------------------------------------------------------------------------ + // Matrix type: Sixteen 32 bit floating point components aligned on a + // 16 byte boundary and mapped to four hardware vector registers + + struct XMMATRIX; + + // Fix-up for (1st) XMMATRIX parameter to pass in-register for ARM64 and vector call; by reference otherwise +#if ( defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || _XM_VECTORCALL_ || __aarch64__ ) && !defined(_XM_NO_INTRINSICS_) + typedef const XMMATRIX FXMMATRIX; +#else + typedef const XMMATRIX& FXMMATRIX; +#endif + + // Fix-up for (2nd+) XMMATRIX parameters to pass by reference + typedef const XMMATRIX& CXMMATRIX; + +#ifdef _XM_NO_INTRINSICS_ + struct XMMATRIX +#else + XM_ALIGNED_STRUCT(16) XMMATRIX +#endif + { +#ifdef _XM_NO_INTRINSICS_ + union + { + XMVECTOR r[4]; + struct + { + float _11, _12, _13, _14; + float _21, _22, _23, _24; + float _31, _32, _33, _34; + float _41, _42, _43, _44; + }; + float m[4][4]; + }; +#else + XMVECTOR r[4]; +#endif + + XMMATRIX() = default; + + XMMATRIX(const XMMATRIX&) = default; + +#if defined(_MSC_VER) && (_MSC_FULL_VER < 191426431) + XMMATRIX& operator= (const XMMATRIX& M) noexcept { r[0] = M.r[0]; r[1] = M.r[1]; r[2] = M.r[2]; r[3] = M.r[3]; return *this; } +#else + XMMATRIX& operator=(const XMMATRIX&) = default; + + XMMATRIX(XMMATRIX&&) = default; + XMMATRIX& operator=(XMMATRIX&&) = default; +#endif + + constexpr XMMATRIX(FXMVECTOR R0, FXMVECTOR R1, FXMVECTOR R2, CXMVECTOR R3) noexcept : r{ R0,R1,R2,R3 } {} + XMMATRIX(float m00, float m01, float m02, float m03, + float m10, float m11, float m12, float m13, + float m20, float m21, float m22, float m23, + float m30, float m31, float m32, float m33) noexcept; + explicit XMMATRIX(_In_reads_(16) const float* pArray) noexcept; + +#ifdef _XM_NO_INTRINSICS_ + float operator() (size_t Row, size_t Column) const noexcept { return m[Row][Column]; } + float& operator() (size_t Row, size_t Column) noexcept { return m[Row][Column]; } +#endif + + XMMATRIX operator+ () const noexcept { return *this; } + XMMATRIX operator- () const noexcept; + + XMMATRIX& XM_CALLCONV operator+= (FXMMATRIX M) noexcept; + XMMATRIX& XM_CALLCONV operator-= (FXMMATRIX M) noexcept; + XMMATRIX& XM_CALLCONV operator*= (FXMMATRIX M) noexcept; + XMMATRIX& operator*= (float S) noexcept; + XMMATRIX& operator/= (float S) noexcept; + + XMMATRIX XM_CALLCONV operator+ (FXMMATRIX M) const noexcept; + XMMATRIX XM_CALLCONV operator- (FXMMATRIX M) const noexcept; + XMMATRIX XM_CALLCONV operator* (FXMMATRIX M) const noexcept; + XMMATRIX operator* (float S) const noexcept; + XMMATRIX operator/ (float S) const noexcept; + + friend XMMATRIX XM_CALLCONV operator* (float S, FXMMATRIX M) noexcept; + }; + + //------------------------------------------------------------------------------ + // 2D Vector; 32 bit floating point components + struct XMFLOAT2 + { + float x; + float y; + + XMFLOAT2() = default; + + XMFLOAT2(const XMFLOAT2&) = default; + XMFLOAT2& operator=(const XMFLOAT2&) = default; + + XMFLOAT2(XMFLOAT2&&) = default; + XMFLOAT2& operator=(XMFLOAT2&&) = default; + + constexpr XMFLOAT2(float _x, float _y) noexcept : x(_x), y(_y) {} + explicit XMFLOAT2(_In_reads_(2) const float* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + +#if (__cplusplus >= 202002L) + bool operator == (const XMFLOAT2&) const = default; + auto operator <=> (const XMFLOAT2&) const = default; +#endif + }; + + // 2D Vector; 32 bit floating point components aligned on a 16 byte boundary + XM_ALIGNED_STRUCT(16) XMFLOAT2A : public XMFLOAT2 + { + using XMFLOAT2::XMFLOAT2; + }; + + //------------------------------------------------------------------------------ + // 2D Vector; 32 bit signed integer components + struct XMINT2 + { + int32_t x; + int32_t y; + + XMINT2() = default; + + XMINT2(const XMINT2&) = default; + XMINT2& operator=(const XMINT2&) = default; + + XMINT2(XMINT2&&) = default; + XMINT2& operator=(XMINT2&&) = default; + + constexpr XMINT2(int32_t _x, int32_t _y) noexcept : x(_x), y(_y) {} + explicit XMINT2(_In_reads_(2) const int32_t* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + +#if (__cplusplus >= 202002L) + bool operator == (const XMINT2&) const = default; + auto operator <=> (const XMINT2&) const = default; +#endif + }; + + // 2D Vector; 32 bit unsigned integer components + struct XMUINT2 + { + uint32_t x; + uint32_t y; + + XMUINT2() = default; + + XMUINT2(const XMUINT2&) = default; + XMUINT2& operator=(const XMUINT2&) = default; + + XMUINT2(XMUINT2&&) = default; + XMUINT2& operator=(XMUINT2&&) = default; + + constexpr XMUINT2(uint32_t _x, uint32_t _y) noexcept : x(_x), y(_y) {} + explicit XMUINT2(_In_reads_(2) const uint32_t* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + +#if (__cplusplus >= 202002L) + bool operator == (const XMUINT2&) const = default; + auto operator <=> (const XMUINT2&) const = default; +#endif + }; + + //------------------------------------------------------------------------------ + // 3D Vector; 32 bit floating point components + struct XMFLOAT3 + { + float x; + float y; + float z; + + XMFLOAT3() = default; + + XMFLOAT3(const XMFLOAT3&) = default; + XMFLOAT3& operator=(const XMFLOAT3&) = default; + + XMFLOAT3(XMFLOAT3&&) = default; + XMFLOAT3& operator=(XMFLOAT3&&) = default; + + constexpr XMFLOAT3(float _x, float _y, float _z) noexcept : x(_x), y(_y), z(_z) {} + explicit XMFLOAT3(_In_reads_(3) const float* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]) {} + }; + + // 3D Vector; 32 bit floating point components aligned on a 16 byte boundary + XM_ALIGNED_STRUCT(16) XMFLOAT3A : public XMFLOAT3 + { + using XMFLOAT3::XMFLOAT3; + }; + + //------------------------------------------------------------------------------ + // 3D Vector; 32 bit signed integer components + struct XMINT3 + { + int32_t x; + int32_t y; + int32_t z; + + XMINT3() = default; + + XMINT3(const XMINT3&) = default; + XMINT3& operator=(const XMINT3&) = default; + + XMINT3(XMINT3&&) = default; + XMINT3& operator=(XMINT3&&) = default; + + constexpr XMINT3(int32_t _x, int32_t _y, int32_t _z) noexcept : x(_x), y(_y), z(_z) {} + explicit XMINT3(_In_reads_(3) const int32_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]) {} + +#if (__cplusplus >= 202002L) + bool operator == (const XMINT3&) const = default; + auto operator <=> (const XMINT3&) const = default; +#endif + }; + + // 3D Vector; 32 bit unsigned integer components + struct XMUINT3 + { + uint32_t x; + uint32_t y; + uint32_t z; + + XMUINT3() = default; + + XMUINT3(const XMUINT3&) = default; + XMUINT3& operator=(const XMUINT3&) = default; + + XMUINT3(XMUINT3&&) = default; + XMUINT3& operator=(XMUINT3&&) = default; + + constexpr XMUINT3(uint32_t _x, uint32_t _y, uint32_t _z) noexcept : x(_x), y(_y), z(_z) {} + explicit XMUINT3(_In_reads_(3) const uint32_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]) {} + +#if (__cplusplus >= 202002L) + bool operator == (const XMUINT3&) const = default; + auto operator <=> (const XMUINT3&) const = default; +#endif + }; + + //------------------------------------------------------------------------------ + // 4D Vector; 32 bit floating point components + struct XMFLOAT4 + { + float x; + float y; + float z; + float w; + + XMFLOAT4() = default; + + XMFLOAT4(const XMFLOAT4&) = default; + XMFLOAT4& operator=(const XMFLOAT4&) = default; + + XMFLOAT4(XMFLOAT4&&) = default; + XMFLOAT4& operator=(XMFLOAT4&&) = default; + + constexpr XMFLOAT4(float _x, float _y, float _z, float _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit XMFLOAT4(_In_reads_(4) const float* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + +#if (__cplusplus >= 202002L) + bool operator == (const XMFLOAT4&) const = default; + auto operator <=> (const XMFLOAT4&) const = default; +#endif + }; + + // 4D Vector; 32 bit floating point components aligned on a 16 byte boundary + XM_ALIGNED_STRUCT(16) XMFLOAT4A : public XMFLOAT4 + { + using XMFLOAT4::XMFLOAT4; + }; + + //------------------------------------------------------------------------------ + // 4D Vector; 32 bit signed integer components + struct XMINT4 + { + int32_t x; + int32_t y; + int32_t z; + int32_t w; + + XMINT4() = default; + + XMINT4(const XMINT4&) = default; + XMINT4& operator=(const XMINT4&) = default; + + XMINT4(XMINT4&&) = default; + XMINT4& operator=(XMINT4&&) = default; + + constexpr XMINT4(int32_t _x, int32_t _y, int32_t _z, int32_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit XMINT4(_In_reads_(4) const int32_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + +#if (__cplusplus >= 202002L) + bool operator == (const XMINT4&) const = default; + auto operator <=> (const XMINT4&) const = default; +#endif + }; + + // 4D Vector; 32 bit unsigned integer components + struct XMUINT4 + { + uint32_t x; + uint32_t y; + uint32_t z; + uint32_t w; + + XMUINT4() = default; + + XMUINT4(const XMUINT4&) = default; + XMUINT4& operator=(const XMUINT4&) = default; + + XMUINT4(XMUINT4&&) = default; + XMUINT4& operator=(XMUINT4&&) = default; + + constexpr XMUINT4(uint32_t _x, uint32_t _y, uint32_t _z, uint32_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit XMUINT4(_In_reads_(4) const uint32_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + +#if (__cplusplus >= 202002L) + bool operator == (const XMUINT4&) const = default; + auto operator <=> (const XMUINT4&) const = default; +#endif + }; + +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgnu-anonymous-struct" +#pragma clang diagnostic ignored "-Wnested-anon-types" +#pragma clang diagnostic ignored "-Wunknown-warning-option" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" +#endif + + //------------------------------------------------------------------------------ + // 3x3 Matrix: 32 bit floating point components + struct XMFLOAT3X3 + { + union + { + struct + { + float _11, _12, _13; + float _21, _22, _23; + float _31, _32, _33; + }; + float m[3][3]; + }; + + XMFLOAT3X3() = default; + + XMFLOAT3X3(const XMFLOAT3X3&) = default; + XMFLOAT3X3& operator=(const XMFLOAT3X3&) = default; + + XMFLOAT3X3(XMFLOAT3X3&&) = default; + XMFLOAT3X3& operator=(XMFLOAT3X3&&) = default; + + constexpr XMFLOAT3X3(float m00, float m01, float m02, + float m10, float m11, float m12, + float m20, float m21, float m22) noexcept + : _11(m00), _12(m01), _13(m02), + _21(m10), _22(m11), _23(m12), + _31(m20), _32(m21), _33(m22) {} + explicit XMFLOAT3X3(_In_reads_(9) const float* pArray) noexcept; + + float operator() (size_t Row, size_t Column) const noexcept { return m[Row][Column]; } + float& operator() (size_t Row, size_t Column) noexcept { return m[Row][Column]; } + +#if (__cplusplus >= 202002L) + bool operator == (const XMFLOAT3X3&) const = default; + auto operator <=> (const XMFLOAT3X3&) const = default; +#endif + }; + + //------------------------------------------------------------------------------ + // 4x3 Row-major Matrix: 32 bit floating point components + struct XMFLOAT4X3 + { + union + { + struct + { + float _11, _12, _13; + float _21, _22, _23; + float _31, _32, _33; + float _41, _42, _43; + }; + float m[4][3]; + float f[12]; + }; + + XMFLOAT4X3() = default; + + XMFLOAT4X3(const XMFLOAT4X3&) = default; + XMFLOAT4X3& operator=(const XMFLOAT4X3&) = default; + + XMFLOAT4X3(XMFLOAT4X3&&) = default; + XMFLOAT4X3& operator=(XMFLOAT4X3&&) = default; + + constexpr XMFLOAT4X3(float m00, float m01, float m02, + float m10, float m11, float m12, + float m20, float m21, float m22, + float m30, float m31, float m32) noexcept + : _11(m00), _12(m01), _13(m02), + _21(m10), _22(m11), _23(m12), + _31(m20), _32(m21), _33(m22), + _41(m30), _42(m31), _43(m32) {} + explicit XMFLOAT4X3(_In_reads_(12) const float* pArray) noexcept; + + float operator() (size_t Row, size_t Column) const noexcept { return m[Row][Column]; } + float& operator() (size_t Row, size_t Column) noexcept { return m[Row][Column]; } + +#if (__cplusplus >= 202002L) + bool operator == (const XMFLOAT4X3&) const = default; + auto operator <=> (const XMFLOAT4X3&) const = default; +#endif + }; + + // 4x3 Row-major Matrix: 32 bit floating point components aligned on a 16 byte boundary + XM_ALIGNED_STRUCT(16) XMFLOAT4X3A : public XMFLOAT4X3 + { + using XMFLOAT4X3::XMFLOAT4X3; + }; + + //------------------------------------------------------------------------------ + // 3x4 Column-major Matrix: 32 bit floating point components + struct XMFLOAT3X4 + { + union + { + struct + { + float _11, _12, _13, _14; + float _21, _22, _23, _24; + float _31, _32, _33, _34; + }; + float m[3][4]; + float f[12]; + }; + + XMFLOAT3X4() = default; + + XMFLOAT3X4(const XMFLOAT3X4&) = default; + XMFLOAT3X4& operator=(const XMFLOAT3X4&) = default; + + XMFLOAT3X4(XMFLOAT3X4&&) = default; + XMFLOAT3X4& operator=(XMFLOAT3X4&&) = default; + + constexpr XMFLOAT3X4(float m00, float m01, float m02, float m03, + float m10, float m11, float m12, float m13, + float m20, float m21, float m22, float m23) noexcept + : _11(m00), _12(m01), _13(m02), _14(m03), + _21(m10), _22(m11), _23(m12), _24(m13), + _31(m20), _32(m21), _33(m22), _34(m23) {} + explicit XMFLOAT3X4(_In_reads_(12) const float* pArray) noexcept; + + float operator() (size_t Row, size_t Column) const noexcept { return m[Row][Column]; } + float& operator() (size_t Row, size_t Column) noexcept { return m[Row][Column]; } + +#if (__cplusplus >= 202002L) + bool operator == (const XMFLOAT3X4&) const = default; + auto operator <=> (const XMFLOAT3X4&) const = default; +#endif + }; + + // 3x4 Column-major Matrix: 32 bit floating point components aligned on a 16 byte boundary + XM_ALIGNED_STRUCT(16) XMFLOAT3X4A : public XMFLOAT3X4 + { + using XMFLOAT3X4::XMFLOAT3X4; + }; + + //------------------------------------------------------------------------------ + // 4x4 Matrix: 32 bit floating point components + struct XMFLOAT4X4 + { + union + { + struct + { + float _11, _12, _13, _14; + float _21, _22, _23, _24; + float _31, _32, _33, _34; + float _41, _42, _43, _44; + }; + float m[4][4]; + }; + + XMFLOAT4X4() = default; + + XMFLOAT4X4(const XMFLOAT4X4&) = default; + XMFLOAT4X4& operator=(const XMFLOAT4X4&) = default; + + XMFLOAT4X4(XMFLOAT4X4&&) = default; + XMFLOAT4X4& operator=(XMFLOAT4X4&&) = default; + + constexpr XMFLOAT4X4(float m00, float m01, float m02, float m03, + float m10, float m11, float m12, float m13, + float m20, float m21, float m22, float m23, + float m30, float m31, float m32, float m33) noexcept + : _11(m00), _12(m01), _13(m02), _14(m03), + _21(m10), _22(m11), _23(m12), _24(m13), + _31(m20), _32(m21), _33(m22), _34(m23), + _41(m30), _42(m31), _43(m32), _44(m33) {} + explicit XMFLOAT4X4(_In_reads_(16) const float* pArray) noexcept; + + float operator() (size_t Row, size_t Column) const noexcept { return m[Row][Column]; } + float& operator() (size_t Row, size_t Column) noexcept { return m[Row][Column]; } + +#if (__cplusplus >= 202002L) + bool operator == (const XMFLOAT4X4&) const = default; + auto operator <=> (const XMFLOAT4X4&) const = default; +#endif + }; + + // 4x4 Matrix: 32 bit floating point components aligned on a 16 byte boundary + XM_ALIGNED_STRUCT(16) XMFLOAT4X4A : public XMFLOAT4X4 + { + using XMFLOAT4X4::XMFLOAT4X4; + }; + + //////////////////////////////////////////////////////////////////////////////// + +#ifdef __clang__ +#pragma clang diagnostic pop +#endif +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +/**************************************************************************** + * + * Data conversion operations + * + ****************************************************************************/ + + XMVECTOR XM_CALLCONV XMConvertVectorIntToFloat(FXMVECTOR VInt, uint32_t DivExponent) noexcept; + XMVECTOR XM_CALLCONV XMConvertVectorFloatToInt(FXMVECTOR VFloat, uint32_t MulExponent) noexcept; + XMVECTOR XM_CALLCONV XMConvertVectorUIntToFloat(FXMVECTOR VUInt, uint32_t DivExponent) noexcept; + XMVECTOR XM_CALLCONV XMConvertVectorFloatToUInt(FXMVECTOR VFloat, uint32_t MulExponent) noexcept; + +#if defined(__XNAMATH_H__) && defined(XMVectorSetBinaryConstant) +#undef XMVectorSetBinaryConstant +#undef XMVectorSplatConstant +#undef XMVectorSplatConstantInt +#endif + + XMVECTOR XM_CALLCONV XMVectorSetBinaryConstant(uint32_t C0, uint32_t C1, uint32_t C2, uint32_t C3) noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatConstant(int32_t IntConstant, uint32_t DivExponent) noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatConstantInt(int32_t IntConstant) noexcept; + + /**************************************************************************** + * + * Load operations + * + ****************************************************************************/ + + XMVECTOR XM_CALLCONV XMLoadInt(_In_ const uint32_t* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadFloat(_In_ const float* pSource) noexcept; + + XMVECTOR XM_CALLCONV XMLoadInt2(_In_reads_(2) const uint32_t* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadInt2A(_In_reads_(2) const uint32_t* PSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadFloat2(_In_ const XMFLOAT2* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadFloat2A(_In_ const XMFLOAT2A* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadSInt2(_In_ const XMINT2* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUInt2(_In_ const XMUINT2* pSource) noexcept; + + XMVECTOR XM_CALLCONV XMLoadInt3(_In_reads_(3) const uint32_t* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadInt3A(_In_reads_(3) const uint32_t* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadFloat3(_In_ const XMFLOAT3* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadFloat3A(_In_ const XMFLOAT3A* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadSInt3(_In_ const XMINT3* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUInt3(_In_ const XMUINT3* pSource) noexcept; + + XMVECTOR XM_CALLCONV XMLoadInt4(_In_reads_(4) const uint32_t* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadInt4A(_In_reads_(4) const uint32_t* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadFloat4(_In_ const XMFLOAT4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadFloat4A(_In_ const XMFLOAT4A* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadSInt4(_In_ const XMINT4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUInt4(_In_ const XMUINT4* pSource) noexcept; + + XMMATRIX XM_CALLCONV XMLoadFloat3x3(_In_ const XMFLOAT3X3* pSource) noexcept; + XMMATRIX XM_CALLCONV XMLoadFloat4x3(_In_ const XMFLOAT4X3* pSource) noexcept; + XMMATRIX XM_CALLCONV XMLoadFloat4x3A(_In_ const XMFLOAT4X3A* pSource) noexcept; + XMMATRIX XM_CALLCONV XMLoadFloat3x4(_In_ const XMFLOAT3X4* pSource) noexcept; + XMMATRIX XM_CALLCONV XMLoadFloat3x4A(_In_ const XMFLOAT3X4A* pSource) noexcept; + XMMATRIX XM_CALLCONV XMLoadFloat4x4(_In_ const XMFLOAT4X4* pSource) noexcept; + XMMATRIX XM_CALLCONV XMLoadFloat4x4A(_In_ const XMFLOAT4X4A* pSource) noexcept; + + /**************************************************************************** + * + * Store operations + * + ****************************************************************************/ + + void XM_CALLCONV XMStoreInt(_Out_ uint32_t* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreFloat(_Out_ float* pDestination, _In_ FXMVECTOR V) noexcept; + + void XM_CALLCONV XMStoreInt2(_Out_writes_(2) uint32_t* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreInt2A(_Out_writes_(2) uint32_t* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreFloat2(_Out_ XMFLOAT2* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreFloat2A(_Out_ XMFLOAT2A* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreSInt2(_Out_ XMINT2* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUInt2(_Out_ XMUINT2* pDestination, _In_ FXMVECTOR V) noexcept; + + void XM_CALLCONV XMStoreInt3(_Out_writes_(3) uint32_t* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreInt3A(_Out_writes_(3) uint32_t* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreFloat3(_Out_ XMFLOAT3* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreFloat3A(_Out_ XMFLOAT3A* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreSInt3(_Out_ XMINT3* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUInt3(_Out_ XMUINT3* pDestination, _In_ FXMVECTOR V) noexcept; + + void XM_CALLCONV XMStoreInt4(_Out_writes_(4) uint32_t* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreInt4A(_Out_writes_(4) uint32_t* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreFloat4(_Out_ XMFLOAT4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreFloat4A(_Out_ XMFLOAT4A* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreSInt4(_Out_ XMINT4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUInt4(_Out_ XMUINT4* pDestination, _In_ FXMVECTOR V) noexcept; + + void XM_CALLCONV XMStoreFloat3x3(_Out_ XMFLOAT3X3* pDestination, _In_ FXMMATRIX M) noexcept; + void XM_CALLCONV XMStoreFloat4x3(_Out_ XMFLOAT4X3* pDestination, _In_ FXMMATRIX M) noexcept; + void XM_CALLCONV XMStoreFloat4x3A(_Out_ XMFLOAT4X3A* pDestination, _In_ FXMMATRIX M) noexcept; + void XM_CALLCONV XMStoreFloat3x4(_Out_ XMFLOAT3X4* pDestination, _In_ FXMMATRIX M) noexcept; + void XM_CALLCONV XMStoreFloat3x4A(_Out_ XMFLOAT3X4A* pDestination, _In_ FXMMATRIX M) noexcept; + void XM_CALLCONV XMStoreFloat4x4(_Out_ XMFLOAT4X4* pDestination, _In_ FXMMATRIX M) noexcept; + void XM_CALLCONV XMStoreFloat4x4A(_Out_ XMFLOAT4X4A* pDestination, _In_ FXMMATRIX M) noexcept; + + /**************************************************************************** + * + * General vector operations + * + ****************************************************************************/ + + XMVECTOR XM_CALLCONV XMVectorZero() noexcept; + XMVECTOR XM_CALLCONV XMVectorSet(float x, float y, float z, float w) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetInt(uint32_t x, uint32_t y, uint32_t z, uint32_t w) noexcept; + XMVECTOR XM_CALLCONV XMVectorReplicate(float Value) noexcept; + XMVECTOR XM_CALLCONV XMVectorReplicatePtr(_In_ const float* pValue) noexcept; + XMVECTOR XM_CALLCONV XMVectorReplicateInt(uint32_t Value) noexcept; + XMVECTOR XM_CALLCONV XMVectorReplicateIntPtr(_In_ const uint32_t* pValue) noexcept; + XMVECTOR XM_CALLCONV XMVectorTrueInt() noexcept; + XMVECTOR XM_CALLCONV XMVectorFalseInt() noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatX(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatY(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatZ(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatW(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatOne() noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatInfinity() noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatQNaN() noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatEpsilon() noexcept; + XMVECTOR XM_CALLCONV XMVectorSplatSignMask() noexcept; + + float XM_CALLCONV XMVectorGetByIndex(FXMVECTOR V, size_t i) noexcept; + float XM_CALLCONV XMVectorGetX(FXMVECTOR V) noexcept; + float XM_CALLCONV XMVectorGetY(FXMVECTOR V) noexcept; + float XM_CALLCONV XMVectorGetZ(FXMVECTOR V) noexcept; + float XM_CALLCONV XMVectorGetW(FXMVECTOR V) noexcept; + + void XM_CALLCONV XMVectorGetByIndexPtr(_Out_ float* f, _In_ FXMVECTOR V, _In_ size_t i) noexcept; + void XM_CALLCONV XMVectorGetXPtr(_Out_ float* x, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMVectorGetYPtr(_Out_ float* y, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMVectorGetZPtr(_Out_ float* z, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMVectorGetWPtr(_Out_ float* w, _In_ FXMVECTOR V) noexcept; + + uint32_t XM_CALLCONV XMVectorGetIntByIndex(FXMVECTOR V, size_t i) noexcept; + uint32_t XM_CALLCONV XMVectorGetIntX(FXMVECTOR V) noexcept; + uint32_t XM_CALLCONV XMVectorGetIntY(FXMVECTOR V) noexcept; + uint32_t XM_CALLCONV XMVectorGetIntZ(FXMVECTOR V) noexcept; + uint32_t XM_CALLCONV XMVectorGetIntW(FXMVECTOR V) noexcept; + + void XM_CALLCONV XMVectorGetIntByIndexPtr(_Out_ uint32_t* x, _In_ FXMVECTOR V, _In_ size_t i) noexcept; + void XM_CALLCONV XMVectorGetIntXPtr(_Out_ uint32_t* x, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMVectorGetIntYPtr(_Out_ uint32_t* y, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMVectorGetIntZPtr(_Out_ uint32_t* z, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMVectorGetIntWPtr(_Out_ uint32_t* w, _In_ FXMVECTOR V) noexcept; + + XMVECTOR XM_CALLCONV XMVectorSetByIndex(FXMVECTOR V, float f, size_t i) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetX(FXMVECTOR V, float x) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetY(FXMVECTOR V, float y) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetZ(FXMVECTOR V, float z) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetW(FXMVECTOR V, float w) noexcept; + + XMVECTOR XM_CALLCONV XMVectorSetByIndexPtr(_In_ FXMVECTOR V, _In_ const float* f, _In_ size_t i) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetXPtr(_In_ FXMVECTOR V, _In_ const float* x) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetYPtr(_In_ FXMVECTOR V, _In_ const float* y) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetZPtr(_In_ FXMVECTOR V, _In_ const float* z) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetWPtr(_In_ FXMVECTOR V, _In_ const float* w) noexcept; + + XMVECTOR XM_CALLCONV XMVectorSetIntByIndex(FXMVECTOR V, uint32_t x, size_t i) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetIntX(FXMVECTOR V, uint32_t x) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetIntY(FXMVECTOR V, uint32_t y) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetIntZ(FXMVECTOR V, uint32_t z) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetIntW(FXMVECTOR V, uint32_t w) noexcept; + + XMVECTOR XM_CALLCONV XMVectorSetIntByIndexPtr(_In_ FXMVECTOR V, _In_ const uint32_t* x, _In_ size_t i) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetIntXPtr(_In_ FXMVECTOR V, _In_ const uint32_t* x) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetIntYPtr(_In_ FXMVECTOR V, _In_ const uint32_t* y) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetIntZPtr(_In_ FXMVECTOR V, _In_ const uint32_t* z) noexcept; + XMVECTOR XM_CALLCONV XMVectorSetIntWPtr(_In_ FXMVECTOR V, _In_ const uint32_t* w) noexcept; + +#if defined(__XNAMATH_H__) && defined(XMVectorSwizzle) +#undef XMVectorSwizzle +#endif + + XMVECTOR XM_CALLCONV XMVectorSwizzle(FXMVECTOR V, uint32_t E0, uint32_t E1, uint32_t E2, uint32_t E3) noexcept; + XMVECTOR XM_CALLCONV XMVectorPermute(FXMVECTOR V1, FXMVECTOR V2, uint32_t PermuteX, uint32_t PermuteY, uint32_t PermuteZ, uint32_t PermuteW) noexcept; + XMVECTOR XM_CALLCONV XMVectorSelectControl(uint32_t VectorIndex0, uint32_t VectorIndex1, uint32_t VectorIndex2, uint32_t VectorIndex3) noexcept; + XMVECTOR XM_CALLCONV XMVectorSelect(FXMVECTOR V1, FXMVECTOR V2, FXMVECTOR Control) noexcept; + XMVECTOR XM_CALLCONV XMVectorMergeXY(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorMergeZW(FXMVECTOR V1, FXMVECTOR V2) noexcept; + +#if defined(__XNAMATH_H__) && defined(XMVectorShiftLeft) +#undef XMVectorShiftLeft +#undef XMVectorRotateLeft +#undef XMVectorRotateRight +#undef XMVectorInsert +#endif + + XMVECTOR XM_CALLCONV XMVectorShiftLeft(FXMVECTOR V1, FXMVECTOR V2, uint32_t Elements) noexcept; + XMVECTOR XM_CALLCONV XMVectorRotateLeft(FXMVECTOR V, uint32_t Elements) noexcept; + XMVECTOR XM_CALLCONV XMVectorRotateRight(FXMVECTOR V, uint32_t Elements) noexcept; + XMVECTOR XM_CALLCONV XMVectorInsert(FXMVECTOR VD, FXMVECTOR VS, uint32_t VSLeftRotateElements, + uint32_t Select0, uint32_t Select1, uint32_t Select2, uint32_t Select3) noexcept; + + XMVECTOR XM_CALLCONV XMVectorEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorEqualR(_Out_ uint32_t* pCR, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorEqualInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorEqualIntR(_Out_ uint32_t* pCR, _In_ FXMVECTOR V, _In_ FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorNearEqual(FXMVECTOR V1, FXMVECTOR V2, FXMVECTOR Epsilon) noexcept; + XMVECTOR XM_CALLCONV XMVectorNotEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorNotEqualInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorGreater(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorGreaterR(_Out_ uint32_t* pCR, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorGreaterOrEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorGreaterOrEqualR(_Out_ uint32_t* pCR, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorLess(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorLessOrEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorInBounds(FXMVECTOR V, FXMVECTOR Bounds) noexcept; + XMVECTOR XM_CALLCONV XMVectorInBoundsR(_Out_ uint32_t* pCR, _In_ FXMVECTOR V, _In_ FXMVECTOR Bounds) noexcept; + + XMVECTOR XM_CALLCONV XMVectorIsNaN(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorIsInfinite(FXMVECTOR V) noexcept; + + XMVECTOR XM_CALLCONV XMVectorMin(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorMax(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorRound(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorTruncate(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorFloor(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorCeiling(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorClamp(FXMVECTOR V, FXMVECTOR Min, FXMVECTOR Max) noexcept; + XMVECTOR XM_CALLCONV XMVectorSaturate(FXMVECTOR V) noexcept; + + XMVECTOR XM_CALLCONV XMVectorAndInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorAndCInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorOrInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorNorInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorXorInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + + XMVECTOR XM_CALLCONV XMVectorNegate(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorAdd(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorSum(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorAddAngles(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorSubtract(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorSubtractAngles(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorMultiply(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorMultiplyAdd(FXMVECTOR V1, FXMVECTOR V2, FXMVECTOR V3) noexcept; + XMVECTOR XM_CALLCONV XMVectorDivide(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorNegativeMultiplySubtract(FXMVECTOR V1, FXMVECTOR V2, FXMVECTOR V3) noexcept; + XMVECTOR XM_CALLCONV XMVectorScale(FXMVECTOR V, float ScaleFactor) noexcept; + XMVECTOR XM_CALLCONV XMVectorReciprocalEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorReciprocal(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorSqrtEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorSqrt(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorReciprocalSqrtEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorReciprocalSqrt(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorExp2(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorExp10(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorExpE(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorExp(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorLog2(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorLog10(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorLogE(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorLog(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorPow(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorAbs(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorMod(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVectorModAngles(FXMVECTOR Angles) noexcept; + XMVECTOR XM_CALLCONV XMVectorSin(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorSinEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorCos(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorCosEst(FXMVECTOR V) noexcept; + void XM_CALLCONV XMVectorSinCos(_Out_ XMVECTOR* pSin, _Out_ XMVECTOR* pCos, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMVectorSinCosEst(_Out_ XMVECTOR* pSin, _Out_ XMVECTOR* pCos, _In_ FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorTan(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorTanEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorSinH(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorCosH(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorTanH(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorASin(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorASinEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorACos(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorACosEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorATan(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorATanEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVectorATan2(FXMVECTOR Y, FXMVECTOR X) noexcept; + XMVECTOR XM_CALLCONV XMVectorATan2Est(FXMVECTOR Y, FXMVECTOR X) noexcept; + XMVECTOR XM_CALLCONV XMVectorLerp(FXMVECTOR V0, FXMVECTOR V1, float t) noexcept; + XMVECTOR XM_CALLCONV XMVectorLerpV(FXMVECTOR V0, FXMVECTOR V1, FXMVECTOR T) noexcept; + XMVECTOR XM_CALLCONV XMVectorHermite(FXMVECTOR Position0, FXMVECTOR Tangent0, FXMVECTOR Position1, GXMVECTOR Tangent1, float t) noexcept; + XMVECTOR XM_CALLCONV XMVectorHermiteV(FXMVECTOR Position0, FXMVECTOR Tangent0, FXMVECTOR Position1, GXMVECTOR Tangent1, HXMVECTOR T) noexcept; + XMVECTOR XM_CALLCONV XMVectorCatmullRom(FXMVECTOR Position0, FXMVECTOR Position1, FXMVECTOR Position2, GXMVECTOR Position3, float t) noexcept; + XMVECTOR XM_CALLCONV XMVectorCatmullRomV(FXMVECTOR Position0, FXMVECTOR Position1, FXMVECTOR Position2, GXMVECTOR Position3, HXMVECTOR T) noexcept; + XMVECTOR XM_CALLCONV XMVectorBaryCentric(FXMVECTOR Position0, FXMVECTOR Position1, FXMVECTOR Position2, float f, float g) noexcept; + XMVECTOR XM_CALLCONV XMVectorBaryCentricV(FXMVECTOR Position0, FXMVECTOR Position1, FXMVECTOR Position2, GXMVECTOR F, HXMVECTOR G) noexcept; + + /**************************************************************************** + * + * 2D vector operations + * + ****************************************************************************/ + + bool XM_CALLCONV XMVector2Equal(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector2EqualR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector2EqualInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector2EqualIntR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector2NearEqual(FXMVECTOR V1, FXMVECTOR V2, FXMVECTOR Epsilon) noexcept; + bool XM_CALLCONV XMVector2NotEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector2NotEqualInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector2Greater(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector2GreaterR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector2GreaterOrEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector2GreaterOrEqualR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector2Less(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector2LessOrEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector2InBounds(FXMVECTOR V, FXMVECTOR Bounds) noexcept; + + bool XM_CALLCONV XMVector2IsNaN(FXMVECTOR V) noexcept; + bool XM_CALLCONV XMVector2IsInfinite(FXMVECTOR V) noexcept; + + XMVECTOR XM_CALLCONV XMVector2Dot(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVector2Cross(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVector2LengthSq(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector2ReciprocalLengthEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector2ReciprocalLength(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector2LengthEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector2Length(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector2NormalizeEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector2Normalize(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector2ClampLength(FXMVECTOR V, float LengthMin, float LengthMax) noexcept; + XMVECTOR XM_CALLCONV XMVector2ClampLengthV(FXMVECTOR V, FXMVECTOR LengthMin, FXMVECTOR LengthMax) noexcept; + XMVECTOR XM_CALLCONV XMVector2Reflect(FXMVECTOR Incident, FXMVECTOR Normal) noexcept; + XMVECTOR XM_CALLCONV XMVector2Refract(FXMVECTOR Incident, FXMVECTOR Normal, float RefractionIndex) noexcept; + XMVECTOR XM_CALLCONV XMVector2RefractV(FXMVECTOR Incident, FXMVECTOR Normal, FXMVECTOR RefractionIndex) noexcept; + XMVECTOR XM_CALLCONV XMVector2Orthogonal(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector2AngleBetweenNormalsEst(FXMVECTOR N1, FXMVECTOR N2) noexcept; + XMVECTOR XM_CALLCONV XMVector2AngleBetweenNormals(FXMVECTOR N1, FXMVECTOR N2) noexcept; + XMVECTOR XM_CALLCONV XMVector2AngleBetweenVectors(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVector2LinePointDistance(FXMVECTOR LinePoint1, FXMVECTOR LinePoint2, FXMVECTOR Point) noexcept; + XMVECTOR XM_CALLCONV XMVector2IntersectLine(FXMVECTOR Line1Point1, FXMVECTOR Line1Point2, FXMVECTOR Line2Point1, GXMVECTOR Line2Point2) noexcept; + XMVECTOR XM_CALLCONV XMVector2Transform(FXMVECTOR V, FXMMATRIX M) noexcept; + XMFLOAT4* XM_CALLCONV XMVector2TransformStream(_Out_writes_bytes_(sizeof(XMFLOAT4) + OutputStride * (VectorCount - 1)) XMFLOAT4* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(XMFLOAT2) + InputStride * (VectorCount - 1)) const XMFLOAT2* pInputStream, + _In_ size_t InputStride, _In_ size_t VectorCount, _In_ FXMMATRIX M) noexcept; + XMVECTOR XM_CALLCONV XMVector2TransformCoord(FXMVECTOR V, FXMMATRIX M) noexcept; + XMFLOAT2* XM_CALLCONV XMVector2TransformCoordStream(_Out_writes_bytes_(sizeof(XMFLOAT2) + OutputStride * (VectorCount - 1)) XMFLOAT2* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(XMFLOAT2) + InputStride * (VectorCount - 1)) const XMFLOAT2* pInputStream, + _In_ size_t InputStride, _In_ size_t VectorCount, _In_ FXMMATRIX M) noexcept; + XMVECTOR XM_CALLCONV XMVector2TransformNormal(FXMVECTOR V, FXMMATRIX M) noexcept; + XMFLOAT2* XM_CALLCONV XMVector2TransformNormalStream(_Out_writes_bytes_(sizeof(XMFLOAT2) + OutputStride * (VectorCount - 1)) XMFLOAT2* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(XMFLOAT2) + InputStride * (VectorCount - 1)) const XMFLOAT2* pInputStream, + _In_ size_t InputStride, _In_ size_t VectorCount, _In_ FXMMATRIX M) noexcept; + + /**************************************************************************** + * + * 3D vector operations + * + ****************************************************************************/ + + bool XM_CALLCONV XMVector3Equal(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector3EqualR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector3EqualInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector3EqualIntR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector3NearEqual(FXMVECTOR V1, FXMVECTOR V2, FXMVECTOR Epsilon) noexcept; + bool XM_CALLCONV XMVector3NotEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector3NotEqualInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector3Greater(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector3GreaterR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector3GreaterOrEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector3GreaterOrEqualR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector3Less(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector3LessOrEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector3InBounds(FXMVECTOR V, FXMVECTOR Bounds) noexcept; + + bool XM_CALLCONV XMVector3IsNaN(FXMVECTOR V) noexcept; + bool XM_CALLCONV XMVector3IsInfinite(FXMVECTOR V) noexcept; + + XMVECTOR XM_CALLCONV XMVector3Dot(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVector3Cross(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVector3LengthSq(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector3ReciprocalLengthEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector3ReciprocalLength(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector3LengthEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector3Length(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector3NormalizeEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector3Normalize(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector3ClampLength(FXMVECTOR V, float LengthMin, float LengthMax) noexcept; + XMVECTOR XM_CALLCONV XMVector3ClampLengthV(FXMVECTOR V, FXMVECTOR LengthMin, FXMVECTOR LengthMax) noexcept; + XMVECTOR XM_CALLCONV XMVector3Reflect(FXMVECTOR Incident, FXMVECTOR Normal) noexcept; + XMVECTOR XM_CALLCONV XMVector3Refract(FXMVECTOR Incident, FXMVECTOR Normal, float RefractionIndex) noexcept; + XMVECTOR XM_CALLCONV XMVector3RefractV(FXMVECTOR Incident, FXMVECTOR Normal, FXMVECTOR RefractionIndex) noexcept; + XMVECTOR XM_CALLCONV XMVector3Orthogonal(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector3AngleBetweenNormalsEst(FXMVECTOR N1, FXMVECTOR N2) noexcept; + XMVECTOR XM_CALLCONV XMVector3AngleBetweenNormals(FXMVECTOR N1, FXMVECTOR N2) noexcept; + XMVECTOR XM_CALLCONV XMVector3AngleBetweenVectors(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVector3LinePointDistance(FXMVECTOR LinePoint1, FXMVECTOR LinePoint2, FXMVECTOR Point) noexcept; + void XM_CALLCONV XMVector3ComponentsFromNormal(_Out_ XMVECTOR* pParallel, _Out_ XMVECTOR* pPerpendicular, _In_ FXMVECTOR V, _In_ FXMVECTOR Normal) noexcept; + XMVECTOR XM_CALLCONV XMVector3Rotate(FXMVECTOR V, FXMVECTOR RotationQuaternion) noexcept; + XMVECTOR XM_CALLCONV XMVector3InverseRotate(FXMVECTOR V, FXMVECTOR RotationQuaternion) noexcept; + XMVECTOR XM_CALLCONV XMVector3Transform(FXMVECTOR V, FXMMATRIX M) noexcept; + XMFLOAT4* XM_CALLCONV XMVector3TransformStream(_Out_writes_bytes_(sizeof(XMFLOAT4) + OutputStride * (VectorCount - 1)) XMFLOAT4* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(XMFLOAT3) + InputStride * (VectorCount - 1)) const XMFLOAT3* pInputStream, + _In_ size_t InputStride, _In_ size_t VectorCount, _In_ FXMMATRIX M) noexcept; + XMVECTOR XM_CALLCONV XMVector3TransformCoord(FXMVECTOR V, FXMMATRIX M) noexcept; + XMFLOAT3* XM_CALLCONV XMVector3TransformCoordStream(_Out_writes_bytes_(sizeof(XMFLOAT3) + OutputStride * (VectorCount - 1)) XMFLOAT3* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(XMFLOAT3) + InputStride * (VectorCount - 1)) const XMFLOAT3* pInputStream, + _In_ size_t InputStride, _In_ size_t VectorCount, _In_ FXMMATRIX M) noexcept; + XMVECTOR XM_CALLCONV XMVector3TransformNormal(FXMVECTOR V, FXMMATRIX M) noexcept; + XMFLOAT3* XM_CALLCONV XMVector3TransformNormalStream(_Out_writes_bytes_(sizeof(XMFLOAT3) + OutputStride * (VectorCount - 1)) XMFLOAT3* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(XMFLOAT3) + InputStride * (VectorCount - 1)) const XMFLOAT3* pInputStream, + _In_ size_t InputStride, _In_ size_t VectorCount, _In_ FXMMATRIX M) noexcept; + XMVECTOR XM_CALLCONV XMVector3Project(FXMVECTOR V, float ViewportX, float ViewportY, float ViewportWidth, float ViewportHeight, float ViewportMinZ, float ViewportMaxZ, + FXMMATRIX Projection, CXMMATRIX View, CXMMATRIX World) noexcept; + XMFLOAT3* XM_CALLCONV XMVector3ProjectStream(_Out_writes_bytes_(sizeof(XMFLOAT3) + OutputStride * (VectorCount - 1)) XMFLOAT3* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(XMFLOAT3) + InputStride * (VectorCount - 1)) const XMFLOAT3* pInputStream, + _In_ size_t InputStride, _In_ size_t VectorCount, + _In_ float ViewportX, _In_ float ViewportY, _In_ float ViewportWidth, _In_ float ViewportHeight, _In_ float ViewportMinZ, _In_ float ViewportMaxZ, + _In_ FXMMATRIX Projection, _In_ CXMMATRIX View, _In_ CXMMATRIX World) noexcept; + XMVECTOR XM_CALLCONV XMVector3Unproject(FXMVECTOR V, float ViewportX, float ViewportY, float ViewportWidth, float ViewportHeight, float ViewportMinZ, float ViewportMaxZ, + FXMMATRIX Projection, CXMMATRIX View, CXMMATRIX World) noexcept; + XMFLOAT3* XM_CALLCONV XMVector3UnprojectStream(_Out_writes_bytes_(sizeof(XMFLOAT3) + OutputStride * (VectorCount - 1)) XMFLOAT3* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(XMFLOAT3) + InputStride * (VectorCount - 1)) const XMFLOAT3* pInputStream, + _In_ size_t InputStride, _In_ size_t VectorCount, + _In_ float ViewportX, _In_ float ViewportY, _In_ float ViewportWidth, _In_ float ViewportHeight, _In_ float ViewportMinZ, _In_ float ViewportMaxZ, + _In_ FXMMATRIX Projection, _In_ CXMMATRIX View, _In_ CXMMATRIX World) noexcept; + + /**************************************************************************** + * + * 4D vector operations + * + ****************************************************************************/ + + bool XM_CALLCONV XMVector4Equal(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector4EqualR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector4EqualInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector4EqualIntR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector4NearEqual(FXMVECTOR V1, FXMVECTOR V2, FXMVECTOR Epsilon) noexcept; + bool XM_CALLCONV XMVector4NotEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector4NotEqualInt(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector4Greater(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector4GreaterR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector4GreaterOrEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + uint32_t XM_CALLCONV XMVector4GreaterOrEqualR(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector4Less(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector4LessOrEqual(FXMVECTOR V1, FXMVECTOR V2) noexcept; + bool XM_CALLCONV XMVector4InBounds(FXMVECTOR V, FXMVECTOR Bounds) noexcept; + + bool XM_CALLCONV XMVector4IsNaN(FXMVECTOR V) noexcept; + bool XM_CALLCONV XMVector4IsInfinite(FXMVECTOR V) noexcept; + + XMVECTOR XM_CALLCONV XMVector4Dot(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVector4Cross(FXMVECTOR V1, FXMVECTOR V2, FXMVECTOR V3) noexcept; + XMVECTOR XM_CALLCONV XMVector4LengthSq(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector4ReciprocalLengthEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector4ReciprocalLength(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector4LengthEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector4Length(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector4NormalizeEst(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector4Normalize(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector4ClampLength(FXMVECTOR V, float LengthMin, float LengthMax) noexcept; + XMVECTOR XM_CALLCONV XMVector4ClampLengthV(FXMVECTOR V, FXMVECTOR LengthMin, FXMVECTOR LengthMax) noexcept; + XMVECTOR XM_CALLCONV XMVector4Reflect(FXMVECTOR Incident, FXMVECTOR Normal) noexcept; + XMVECTOR XM_CALLCONV XMVector4Refract(FXMVECTOR Incident, FXMVECTOR Normal, float RefractionIndex) noexcept; + XMVECTOR XM_CALLCONV XMVector4RefractV(FXMVECTOR Incident, FXMVECTOR Normal, FXMVECTOR RefractionIndex) noexcept; + XMVECTOR XM_CALLCONV XMVector4Orthogonal(FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMVector4AngleBetweenNormalsEst(FXMVECTOR N1, FXMVECTOR N2) noexcept; + XMVECTOR XM_CALLCONV XMVector4AngleBetweenNormals(FXMVECTOR N1, FXMVECTOR N2) noexcept; + XMVECTOR XM_CALLCONV XMVector4AngleBetweenVectors(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMVector4Transform(FXMVECTOR V, FXMMATRIX M) noexcept; + XMFLOAT4* XM_CALLCONV XMVector4TransformStream(_Out_writes_bytes_(sizeof(XMFLOAT4) + OutputStride * (VectorCount - 1)) XMFLOAT4* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(XMFLOAT4) + InputStride * (VectorCount - 1)) const XMFLOAT4* pInputStream, + _In_ size_t InputStride, _In_ size_t VectorCount, _In_ FXMMATRIX M) noexcept; + + /**************************************************************************** + * + * Matrix operations + * + ****************************************************************************/ + + bool XM_CALLCONV XMMatrixIsNaN(FXMMATRIX M) noexcept; + bool XM_CALLCONV XMMatrixIsInfinite(FXMMATRIX M) noexcept; + bool XM_CALLCONV XMMatrixIsIdentity(FXMMATRIX M) noexcept; + + XMMATRIX XM_CALLCONV XMMatrixMultiply(FXMMATRIX M1, CXMMATRIX M2) noexcept; + XMMATRIX XM_CALLCONV XMMatrixMultiplyTranspose(FXMMATRIX M1, CXMMATRIX M2) noexcept; + XMMATRIX XM_CALLCONV XMMatrixTranspose(FXMMATRIX M) noexcept; + XMMATRIX XM_CALLCONV XMMatrixInverse(_Out_opt_ XMVECTOR* pDeterminant, _In_ FXMMATRIX M) noexcept; + XMMATRIX XM_CALLCONV XMMatrixVectorTensorProduct(FXMVECTOR V1, FXMVECTOR V2) noexcept; + XMVECTOR XM_CALLCONV XMMatrixDeterminant(FXMMATRIX M) noexcept; + + _Success_(return) + bool XM_CALLCONV XMMatrixDecompose(_Out_ XMVECTOR* outScale, _Out_ XMVECTOR* outRotQuat, _Out_ XMVECTOR* outTrans, _In_ FXMMATRIX M) noexcept; + + XMMATRIX XM_CALLCONV XMMatrixIdentity() noexcept; + XMMATRIX XM_CALLCONV XMMatrixSet(float m00, float m01, float m02, float m03, + float m10, float m11, float m12, float m13, + float m20, float m21, float m22, float m23, + float m30, float m31, float m32, float m33) noexcept; + XMMATRIX XM_CALLCONV XMMatrixTranslation(float OffsetX, float OffsetY, float OffsetZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixTranslationFromVector(FXMVECTOR Offset) noexcept; + XMMATRIX XM_CALLCONV XMMatrixScaling(float ScaleX, float ScaleY, float ScaleZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixScalingFromVector(FXMVECTOR Scale) noexcept; + XMMATRIX XM_CALLCONV XMMatrixRotationX(float Angle) noexcept; + XMMATRIX XM_CALLCONV XMMatrixRotationY(float Angle) noexcept; + XMMATRIX XM_CALLCONV XMMatrixRotationZ(float Angle) noexcept; + + // Rotates about y-axis (Yaw), then x-axis (Pitch), then z-axis (Roll) + XMMATRIX XM_CALLCONV XMMatrixRotationRollPitchYaw(float Pitch, float Yaw, float Roll) noexcept; + + // Rotates about y-axis (Angles.y), then x-axis (Angles.x), then z-axis (Angles.z) + XMMATRIX XM_CALLCONV XMMatrixRotationRollPitchYawFromVector(FXMVECTOR Angles) noexcept; + + XMMATRIX XM_CALLCONV XMMatrixRotationNormal(FXMVECTOR NormalAxis, float Angle) noexcept; + XMMATRIX XM_CALLCONV XMMatrixRotationAxis(FXMVECTOR Axis, float Angle) noexcept; + XMMATRIX XM_CALLCONV XMMatrixRotationQuaternion(FXMVECTOR Quaternion) noexcept; + XMMATRIX XM_CALLCONV XMMatrixTransformation2D(FXMVECTOR ScalingOrigin, float ScalingOrientation, FXMVECTOR Scaling, + FXMVECTOR RotationOrigin, float Rotation, GXMVECTOR Translation) noexcept; + XMMATRIX XM_CALLCONV XMMatrixTransformation(FXMVECTOR ScalingOrigin, FXMVECTOR ScalingOrientationQuaternion, FXMVECTOR Scaling, + GXMVECTOR RotationOrigin, HXMVECTOR RotationQuaternion, HXMVECTOR Translation) noexcept; + XMMATRIX XM_CALLCONV XMMatrixAffineTransformation2D(FXMVECTOR Scaling, FXMVECTOR RotationOrigin, float Rotation, FXMVECTOR Translation) noexcept; + XMMATRIX XM_CALLCONV XMMatrixAffineTransformation(FXMVECTOR Scaling, FXMVECTOR RotationOrigin, FXMVECTOR RotationQuaternion, GXMVECTOR Translation) noexcept; + XMMATRIX XM_CALLCONV XMMatrixReflect(FXMVECTOR ReflectionPlane) noexcept; + XMMATRIX XM_CALLCONV XMMatrixShadow(FXMVECTOR ShadowPlane, FXMVECTOR LightPosition) noexcept; + + XMMATRIX XM_CALLCONV XMMatrixLookAtLH(FXMVECTOR EyePosition, FXMVECTOR FocusPosition, FXMVECTOR UpDirection) noexcept; + XMMATRIX XM_CALLCONV XMMatrixLookAtRH(FXMVECTOR EyePosition, FXMVECTOR FocusPosition, FXMVECTOR UpDirection) noexcept; + XMMATRIX XM_CALLCONV XMMatrixLookToLH(FXMVECTOR EyePosition, FXMVECTOR EyeDirection, FXMVECTOR UpDirection) noexcept; + XMMATRIX XM_CALLCONV XMMatrixLookToRH(FXMVECTOR EyePosition, FXMVECTOR EyeDirection, FXMVECTOR UpDirection) noexcept; + XMMATRIX XM_CALLCONV XMMatrixPerspectiveLH(float ViewWidth, float ViewHeight, float NearZ, float FarZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixPerspectiveRH(float ViewWidth, float ViewHeight, float NearZ, float FarZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixPerspectiveFovLH(float FovAngleY, float AspectRatio, float NearZ, float FarZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixPerspectiveFovRH(float FovAngleY, float AspectRatio, float NearZ, float FarZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixPerspectiveOffCenterLH(float ViewLeft, float ViewRight, float ViewBottom, float ViewTop, float NearZ, float FarZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixPerspectiveOffCenterRH(float ViewLeft, float ViewRight, float ViewBottom, float ViewTop, float NearZ, float FarZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixOrthographicLH(float ViewWidth, float ViewHeight, float NearZ, float FarZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixOrthographicRH(float ViewWidth, float ViewHeight, float NearZ, float FarZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixOrthographicOffCenterLH(float ViewLeft, float ViewRight, float ViewBottom, float ViewTop, float NearZ, float FarZ) noexcept; + XMMATRIX XM_CALLCONV XMMatrixOrthographicOffCenterRH(float ViewLeft, float ViewRight, float ViewBottom, float ViewTop, float NearZ, float FarZ) noexcept; + + + /**************************************************************************** + * + * Quaternion operations + * + ****************************************************************************/ + + bool XM_CALLCONV XMQuaternionEqual(FXMVECTOR Q1, FXMVECTOR Q2) noexcept; + bool XM_CALLCONV XMQuaternionNotEqual(FXMVECTOR Q1, FXMVECTOR Q2) noexcept; + + bool XM_CALLCONV XMQuaternionIsNaN(FXMVECTOR Q) noexcept; + bool XM_CALLCONV XMQuaternionIsInfinite(FXMVECTOR Q) noexcept; + bool XM_CALLCONV XMQuaternionIsIdentity(FXMVECTOR Q) noexcept; + + XMVECTOR XM_CALLCONV XMQuaternionDot(FXMVECTOR Q1, FXMVECTOR Q2) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionMultiply(FXMVECTOR Q1, FXMVECTOR Q2) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionLengthSq(FXMVECTOR Q) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionReciprocalLength(FXMVECTOR Q) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionLength(FXMVECTOR Q) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionNormalizeEst(FXMVECTOR Q) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionNormalize(FXMVECTOR Q) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionConjugate(FXMVECTOR Q) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionInverse(FXMVECTOR Q) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionLn(FXMVECTOR Q) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionExp(FXMVECTOR Q) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionSlerp(FXMVECTOR Q0, FXMVECTOR Q1, float t) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionSlerpV(FXMVECTOR Q0, FXMVECTOR Q1, FXMVECTOR T) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionSquad(FXMVECTOR Q0, FXMVECTOR Q1, FXMVECTOR Q2, GXMVECTOR Q3, float t) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionSquadV(FXMVECTOR Q0, FXMVECTOR Q1, FXMVECTOR Q2, GXMVECTOR Q3, HXMVECTOR T) noexcept; + void XM_CALLCONV XMQuaternionSquadSetup(_Out_ XMVECTOR* pA, _Out_ XMVECTOR* pB, _Out_ XMVECTOR* pC, _In_ FXMVECTOR Q0, _In_ FXMVECTOR Q1, _In_ FXMVECTOR Q2, _In_ GXMVECTOR Q3) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionBaryCentric(FXMVECTOR Q0, FXMVECTOR Q1, FXMVECTOR Q2, float f, float g) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionBaryCentricV(FXMVECTOR Q0, FXMVECTOR Q1, FXMVECTOR Q2, GXMVECTOR F, HXMVECTOR G) noexcept; + + XMVECTOR XM_CALLCONV XMQuaternionIdentity() noexcept; + + // Rotates about y-axis (Yaw), then x-axis (Pitch), then z-axis (Roll) + XMVECTOR XM_CALLCONV XMQuaternionRotationRollPitchYaw(float Pitch, float Yaw, float Roll) noexcept; + + // Rotates about y-axis (Angles.y), then x-axis (Angles.x), then z-axis (Angles.z) + XMVECTOR XM_CALLCONV XMQuaternionRotationRollPitchYawFromVector(FXMVECTOR Angles) noexcept; + + XMVECTOR XM_CALLCONV XMQuaternionRotationNormal(FXMVECTOR NormalAxis, float Angle) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionRotationAxis(FXMVECTOR Axis, float Angle) noexcept; + XMVECTOR XM_CALLCONV XMQuaternionRotationMatrix(FXMMATRIX M) noexcept; + + void XM_CALLCONV XMQuaternionToAxisAngle(_Out_ XMVECTOR* pAxis, _Out_ float* pAngle, _In_ FXMVECTOR Q) noexcept; + + /**************************************************************************** + * + * Plane operations + * + ****************************************************************************/ + + bool XM_CALLCONV XMPlaneEqual(FXMVECTOR P1, FXMVECTOR P2) noexcept; + bool XM_CALLCONV XMPlaneNearEqual(FXMVECTOR P1, FXMVECTOR P2, FXMVECTOR Epsilon) noexcept; + bool XM_CALLCONV XMPlaneNotEqual(FXMVECTOR P1, FXMVECTOR P2) noexcept; + + bool XM_CALLCONV XMPlaneIsNaN(FXMVECTOR P) noexcept; + bool XM_CALLCONV XMPlaneIsInfinite(FXMVECTOR P) noexcept; + + XMVECTOR XM_CALLCONV XMPlaneDot(FXMVECTOR P, FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMPlaneDotCoord(FXMVECTOR P, FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMPlaneDotNormal(FXMVECTOR P, FXMVECTOR V) noexcept; + XMVECTOR XM_CALLCONV XMPlaneNormalizeEst(FXMVECTOR P) noexcept; + XMVECTOR XM_CALLCONV XMPlaneNormalize(FXMVECTOR P) noexcept; + XMVECTOR XM_CALLCONV XMPlaneIntersectLine(FXMVECTOR P, FXMVECTOR LinePoint1, FXMVECTOR LinePoint2) noexcept; + void XM_CALLCONV XMPlaneIntersectPlane(_Out_ XMVECTOR* pLinePoint1, _Out_ XMVECTOR* pLinePoint2, _In_ FXMVECTOR P1, _In_ FXMVECTOR P2) noexcept; + + // Transforms a plane given an inverse transpose matrix + XMVECTOR XM_CALLCONV XMPlaneTransform(FXMVECTOR P, FXMMATRIX ITM) noexcept; + + // Transforms an array of planes given an inverse transpose matrix + XMFLOAT4* XM_CALLCONV XMPlaneTransformStream(_Out_writes_bytes_(sizeof(XMFLOAT4) + OutputStride * (PlaneCount - 1)) XMFLOAT4* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(XMFLOAT4) + InputStride * (PlaneCount - 1)) const XMFLOAT4* pInputStream, + _In_ size_t InputStride, _In_ size_t PlaneCount, _In_ FXMMATRIX ITM) noexcept; + + XMVECTOR XM_CALLCONV XMPlaneFromPointNormal(FXMVECTOR Point, FXMVECTOR Normal) noexcept; + XMVECTOR XM_CALLCONV XMPlaneFromPoints(FXMVECTOR Point1, FXMVECTOR Point2, FXMVECTOR Point3) noexcept; + + /**************************************************************************** + * + * Color operations + * + ****************************************************************************/ + + bool XM_CALLCONV XMColorEqual(FXMVECTOR C1, FXMVECTOR C2) noexcept; + bool XM_CALLCONV XMColorNotEqual(FXMVECTOR C1, FXMVECTOR C2) noexcept; + bool XM_CALLCONV XMColorGreater(FXMVECTOR C1, FXMVECTOR C2) noexcept; + bool XM_CALLCONV XMColorGreaterOrEqual(FXMVECTOR C1, FXMVECTOR C2) noexcept; + bool XM_CALLCONV XMColorLess(FXMVECTOR C1, FXMVECTOR C2) noexcept; + bool XM_CALLCONV XMColorLessOrEqual(FXMVECTOR C1, FXMVECTOR C2) noexcept; + + bool XM_CALLCONV XMColorIsNaN(FXMVECTOR C) noexcept; + bool XM_CALLCONV XMColorIsInfinite(FXMVECTOR C) noexcept; + + XMVECTOR XM_CALLCONV XMColorNegative(FXMVECTOR C) noexcept; + XMVECTOR XM_CALLCONV XMColorModulate(FXMVECTOR C1, FXMVECTOR C2) noexcept; + XMVECTOR XM_CALLCONV XMColorAdjustSaturation(FXMVECTOR C, float Saturation) noexcept; + XMVECTOR XM_CALLCONV XMColorAdjustContrast(FXMVECTOR C, float Contrast) noexcept; + + XMVECTOR XM_CALLCONV XMColorRGBToHSL(FXMVECTOR rgb) noexcept; + XMVECTOR XM_CALLCONV XMColorHSLToRGB(FXMVECTOR hsl) noexcept; + + XMVECTOR XM_CALLCONV XMColorRGBToHSV(FXMVECTOR rgb) noexcept; + XMVECTOR XM_CALLCONV XMColorHSVToRGB(FXMVECTOR hsv) noexcept; + + XMVECTOR XM_CALLCONV XMColorRGBToYUV(FXMVECTOR rgb) noexcept; + XMVECTOR XM_CALLCONV XMColorYUVToRGB(FXMVECTOR yuv) noexcept; + + XMVECTOR XM_CALLCONV XMColorRGBToYUV_HD(FXMVECTOR rgb) noexcept; + XMVECTOR XM_CALLCONV XMColorYUVToRGB_HD(FXMVECTOR yuv) noexcept; + + XMVECTOR XM_CALLCONV XMColorRGBToYUV_UHD(FXMVECTOR rgb) noexcept; + XMVECTOR XM_CALLCONV XMColorYUVToRGB_UHD(FXMVECTOR yuv) noexcept; + + XMVECTOR XM_CALLCONV XMColorRGBToXYZ(FXMVECTOR rgb) noexcept; + XMVECTOR XM_CALLCONV XMColorXYZToRGB(FXMVECTOR xyz) noexcept; + + XMVECTOR XM_CALLCONV XMColorXYZToSRGB(FXMVECTOR xyz) noexcept; + XMVECTOR XM_CALLCONV XMColorSRGBToXYZ(FXMVECTOR srgb) noexcept; + + XMVECTOR XM_CALLCONV XMColorRGBToSRGB(FXMVECTOR rgb) noexcept; + XMVECTOR XM_CALLCONV XMColorSRGBToRGB(FXMVECTOR srgb) noexcept; + + + /**************************************************************************** + * + * Miscellaneous operations + * + ****************************************************************************/ + + bool XMVerifyCPUSupport() noexcept; + + XMVECTOR XM_CALLCONV XMFresnelTerm(FXMVECTOR CosIncidentAngle, FXMVECTOR RefractionIndex) noexcept; + + bool XMScalarNearEqual(float S1, float S2, float Epsilon) noexcept; + float XMScalarModAngle(float Value) noexcept; + + float XMScalarSin(float Value) noexcept; + float XMScalarSinEst(float Value) noexcept; + + float XMScalarCos(float Value) noexcept; + float XMScalarCosEst(float Value) noexcept; + + void XMScalarSinCos(_Out_ float* pSin, _Out_ float* pCos, float Value) noexcept; + void XMScalarSinCosEst(_Out_ float* pSin, _Out_ float* pCos, float Value) noexcept; + + float XMScalarASin(float Value) noexcept; + float XMScalarASinEst(float Value) noexcept; + + float XMScalarACos(float Value) noexcept; + float XMScalarACosEst(float Value) noexcept; + + /**************************************************************************** + * + * Templates + * + ****************************************************************************/ + +#if defined(__XNAMATH_H__) && defined(XMMin) +#undef XMMin +#undef XMMax +#endif + + template inline T XMMin(T a, T b) noexcept { return (a < b) ? a : b; } + template inline T XMMax(T a, T b) noexcept { return (a > b) ? a : b; } + + //------------------------------------------------------------------------------ + +#if defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + +// PermuteHelper internal template (SSE only) + namespace Internal + { + // Slow path fallback for permutes that do not map to a single SSE shuffle opcode. + template struct PermuteHelper + { + static XMVECTOR XM_CALLCONV Permute(FXMVECTOR v1, FXMVECTOR v2) noexcept + { + static const XMVECTORU32 selectMask = + { { { + WhichX ? 0xFFFFFFFF : 0, + WhichY ? 0xFFFFFFFF : 0, + WhichZ ? 0xFFFFFFFF : 0, + WhichW ? 0xFFFFFFFF : 0, + } } }; + + XMVECTOR shuffled1 = XM_PERMUTE_PS(v1, Shuffle); + XMVECTOR shuffled2 = XM_PERMUTE_PS(v2, Shuffle); + + XMVECTOR masked1 = _mm_andnot_ps(selectMask, shuffled1); + XMVECTOR masked2 = _mm_and_ps(selectMask, shuffled2); + + return _mm_or_ps(masked1, masked2); + } + }; + + // Fast path for permutes that only read from the first vector. + template struct PermuteHelper + { + static XMVECTOR XM_CALLCONV Permute(FXMVECTOR v1, FXMVECTOR) noexcept { return XM_PERMUTE_PS(v1, Shuffle); } + }; + + // Fast path for permutes that only read from the second vector. + template struct PermuteHelper + { + static XMVECTOR XM_CALLCONV Permute(FXMVECTOR, FXMVECTOR v2) noexcept { return XM_PERMUTE_PS(v2, Shuffle); } + }; + + // Fast path for permutes that read XY from the first vector, ZW from the second. + template struct PermuteHelper + { + static XMVECTOR XM_CALLCONV Permute(FXMVECTOR v1, FXMVECTOR v2) noexcept { return _mm_shuffle_ps(v1, v2, Shuffle); } + }; + + // Fast path for permutes that read XY from the second vector, ZW from the first. + template struct PermuteHelper + { + static XMVECTOR XM_CALLCONV Permute(FXMVECTOR v1, FXMVECTOR v2) noexcept { return _mm_shuffle_ps(v2, v1, Shuffle); } + }; + } + +#endif // _XM_SSE_INTRINSICS_ && !_XM_NO_INTRINSICS_ + + // General permute template + template + inline XMVECTOR XM_CALLCONV XMVectorPermute(FXMVECTOR V1, FXMVECTOR V2) noexcept + { + static_assert(PermuteX <= 7, "PermuteX template parameter out of range"); + static_assert(PermuteY <= 7, "PermuteY template parameter out of range"); + static_assert(PermuteZ <= 7, "PermuteZ template parameter out of range"); + static_assert(PermuteW <= 7, "PermuteW template parameter out of range"); + +#if defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + constexpr uint32_t Shuffle = _MM_SHUFFLE(PermuteW & 3, PermuteZ & 3, PermuteY & 3, PermuteX & 3); + + constexpr bool WhichX = PermuteX > 3; + constexpr bool WhichY = PermuteY > 3; + constexpr bool WhichZ = PermuteZ > 3; + constexpr bool WhichW = PermuteW > 3; + + return Internal::PermuteHelper::Permute(V1, V2); +#else + + return XMVectorPermute(V1, V2, PermuteX, PermuteY, PermuteZ, PermuteW); + +#endif + } + + // Special-case permute templates + template<> constexpr XMVECTOR XM_CALLCONV XMVectorPermute<0, 1, 2, 3>(FXMVECTOR V1, FXMVECTOR) noexcept { return V1; } + template<> constexpr XMVECTOR XM_CALLCONV XMVectorPermute<4, 5, 6, 7>(FXMVECTOR, FXMVECTOR V2) noexcept { return V2; } + +#if defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 1, 4, 5>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_movelh_ps(V1, V2); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<6, 7, 2, 3>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_movehl_ps(V1, V2); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 4, 1, 5>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_unpacklo_ps(V1, V2); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<2, 6, 3, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_unpackhi_ps(V1, V2); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<2, 3, 6, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_castpd_ps(_mm_unpackhi_pd(_mm_castps_pd(V1), _mm_castps_pd(V2))); } +#endif + +#if defined(_XM_SSE4_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<4, 1, 2, 3>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0x1); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 5, 2, 3>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0x2); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<4, 5, 2, 3>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0x3); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 1, 6, 3>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0x4); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<4, 1, 6, 3>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0x5); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 5, 6, 3>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0x6); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<4, 5, 6, 3>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0x7); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 1, 2, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0x8); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<4, 1, 2, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0x9); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 5, 2, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0xA); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<4, 5, 2, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0xB); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 1, 6, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0xC); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<4, 1, 6, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0xD); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 5, 6, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return _mm_blend_ps(V1, V2, 0xE); } +#endif + +#if defined(_XM_ARM_NEON_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + + // If the indices are all in the range 0-3 or 4-7, then use XMVectorSwizzle instead + // The mirror cases are not spelled out here as the programmer can always swap the arguments + // (i.e. prefer permutes where the X element comes from the V1 vector instead of the V2 vector) + + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 1, 4, 5>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vget_low_f32(V1), vget_low_f32(V2)); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<1, 0, 4, 5>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vrev64_f32(vget_low_f32(V1)), vget_low_f32(V2)); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 1, 5, 4>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vget_low_f32(V1), vrev64_f32(vget_low_f32(V2))); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<1, 0, 5, 4>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vrev64_f32(vget_low_f32(V1)), vrev64_f32(vget_low_f32(V2))); } + + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<2, 3, 6, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vget_high_f32(V1), vget_high_f32(V2)); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<3, 2, 6, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vrev64_f32(vget_high_f32(V1)), vget_high_f32(V2)); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<2, 3, 7, 6>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vget_high_f32(V1), vrev64_f32(vget_high_f32(V2))); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<3, 2, 7, 6>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vrev64_f32(vget_high_f32(V1)), vrev64_f32(vget_high_f32(V2))); } + + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 1, 6, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vget_low_f32(V1), vget_high_f32(V2)); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<1, 0, 6, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vrev64_f32(vget_low_f32(V1)), vget_high_f32(V2)); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 1, 7, 6>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vget_low_f32(V1), vrev64_f32(vget_high_f32(V2))); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<1, 0, 7, 6>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vrev64_f32(vget_low_f32(V1)), vrev64_f32(vget_high_f32(V2))); } + + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<3, 2, 4, 5>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vrev64_f32(vget_high_f32(V1)), vget_low_f32(V2)); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<2, 3, 5, 4>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vget_high_f32(V1), vrev64_f32(vget_low_f32(V2))); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<3, 2, 5, 4>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vcombine_f32(vrev64_f32(vget_high_f32(V1)), vrev64_f32(vget_low_f32(V2))); } + + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 4, 2, 6>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vtrnq_f32(V1, V2).val[0]; } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<1, 5, 3, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vtrnq_f32(V1, V2).val[1]; } + + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 4, 1, 5>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vzipq_f32(V1, V2).val[0]; } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<2, 6, 3, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vzipq_f32(V1, V2).val[1]; } + + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<0, 2, 4, 6>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vuzpq_f32(V1, V2).val[0]; } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<1, 3, 5, 7>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vuzpq_f32(V1, V2).val[1]; } + + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<1, 2, 3, 4>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vextq_f32(V1, V2, 1); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<2, 3, 4, 5>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vextq_f32(V1, V2, 2); } + template<> inline XMVECTOR XM_CALLCONV XMVectorPermute<3, 4, 5, 6>(FXMVECTOR V1, FXMVECTOR V2) noexcept { return vextq_f32(V1, V2, 3); } + +#endif // _XM_ARM_NEON_INTRINSICS_ && !_XM_NO_INTRINSICS_ + + //------------------------------------------------------------------------------ + + // General swizzle template + template + inline XMVECTOR XM_CALLCONV XMVectorSwizzle(FXMVECTOR V) noexcept + { + static_assert(SwizzleX <= 3, "SwizzleX template parameter out of range"); + static_assert(SwizzleY <= 3, "SwizzleY template parameter out of range"); + static_assert(SwizzleZ <= 3, "SwizzleZ template parameter out of range"); + static_assert(SwizzleW <= 3, "SwizzleW template parameter out of range"); + +#if defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + return XM_PERMUTE_PS(V, _MM_SHUFFLE(SwizzleW, SwizzleZ, SwizzleY, SwizzleX)); +#else + + return XMVectorSwizzle(V, SwizzleX, SwizzleY, SwizzleZ, SwizzleW); + +#endif + } + + // Specialized swizzles + template<> constexpr XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 1, 2, 3>(FXMVECTOR V) noexcept { return V; } + +#if defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 1, 0, 1>(FXMVECTOR V) noexcept { return _mm_movelh_ps(V, V); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<2, 3, 2, 3>(FXMVECTOR V) noexcept { return _mm_movehl_ps(V, V); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 0, 1, 1>(FXMVECTOR V) noexcept { return _mm_unpacklo_ps(V, V); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<2, 2, 3, 3>(FXMVECTOR V) noexcept { return _mm_unpackhi_ps(V, V); } +#endif + +#if defined(_XM_SSE3_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 0, 2, 2>(FXMVECTOR V) noexcept { return _mm_moveldup_ps(V); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<1, 1, 3, 3>(FXMVECTOR V) noexcept { return _mm_movehdup_ps(V); } +#endif + +#if defined(_XM_AVX2_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) && defined(_XM_FAVOR_INTEL_) + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 0, 0, 0>(FXMVECTOR V) noexcept { return _mm_broadcastss_ps(V); } +#endif + +#if defined(_XM_ARM_NEON_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 0, 0, 0>(FXMVECTOR V) noexcept { return vdupq_lane_f32(vget_low_f32(V), 0); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<1, 1, 1, 1>(FXMVECTOR V) noexcept { return vdupq_lane_f32(vget_low_f32(V), 1); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<2, 2, 2, 2>(FXMVECTOR V) noexcept { return vdupq_lane_f32(vget_high_f32(V), 0); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<3, 3, 3, 3>(FXMVECTOR V) noexcept { return vdupq_lane_f32(vget_high_f32(V), 1); } + + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<1, 0, 3, 2>(FXMVECTOR V) noexcept { return vrev64q_f32(V); } + + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 1, 0, 1>(FXMVECTOR V) noexcept { float32x2_t vt = vget_low_f32(V); return vcombine_f32(vt, vt); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<2, 3, 2, 3>(FXMVECTOR V) noexcept { float32x2_t vt = vget_high_f32(V); return vcombine_f32(vt, vt); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<1, 0, 1, 0>(FXMVECTOR V) noexcept { float32x2_t vt = vrev64_f32(vget_low_f32(V)); return vcombine_f32(vt, vt); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<3, 2, 3, 2>(FXMVECTOR V) noexcept { float32x2_t vt = vrev64_f32(vget_high_f32(V)); return vcombine_f32(vt, vt); } + + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 1, 3, 2>(FXMVECTOR V) noexcept { return vcombine_f32(vget_low_f32(V), vrev64_f32(vget_high_f32(V))); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<1, 0, 2, 3>(FXMVECTOR V) noexcept { return vcombine_f32(vrev64_f32(vget_low_f32(V)), vget_high_f32(V)); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<2, 3, 1, 0>(FXMVECTOR V) noexcept { return vcombine_f32(vget_high_f32(V), vrev64_f32(vget_low_f32(V))); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<3, 2, 0, 1>(FXMVECTOR V) noexcept { return vcombine_f32(vrev64_f32(vget_high_f32(V)), vget_low_f32(V)); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<3, 2, 1, 0>(FXMVECTOR V) noexcept { return vcombine_f32(vrev64_f32(vget_high_f32(V)), vrev64_f32(vget_low_f32(V))); } + + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 0, 2, 2>(FXMVECTOR V) noexcept { return vtrnq_f32(V, V).val[0]; } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<1, 1, 3, 3>(FXMVECTOR V) noexcept { return vtrnq_f32(V, V).val[1]; } + + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 0, 1, 1>(FXMVECTOR V) noexcept { return vzipq_f32(V, V).val[0]; } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<2, 2, 3, 3>(FXMVECTOR V) noexcept { return vzipq_f32(V, V).val[1]; } + + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<0, 2, 0, 2>(FXMVECTOR V) noexcept { return vuzpq_f32(V, V).val[0]; } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<1, 3, 1, 3>(FXMVECTOR V) noexcept { return vuzpq_f32(V, V).val[1]; } + + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<1, 2, 3, 0>(FXMVECTOR V) noexcept { return vextq_f32(V, V, 1); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<2, 3, 0, 1>(FXMVECTOR V) noexcept { return vextq_f32(V, V, 2); } + template<> inline XMVECTOR XM_CALLCONV XMVectorSwizzle<3, 0, 1, 2>(FXMVECTOR V) noexcept { return vextq_f32(V, V, 3); } + +#endif // _XM_ARM_NEON_INTRINSICS_ && !_XM_NO_INTRINSICS_ + + //------------------------------------------------------------------------------ + + template + inline XMVECTOR XM_CALLCONV XMVectorShiftLeft(FXMVECTOR V1, FXMVECTOR V2) noexcept + { + static_assert(Elements < 4, "Elements template parameter out of range"); + return XMVectorPermute(V1, V2); + } + + template + inline XMVECTOR XM_CALLCONV XMVectorRotateLeft(FXMVECTOR V) noexcept + { + static_assert(Elements < 4, "Elements template parameter out of range"); + return XMVectorSwizzle(V); + } + + template + inline XMVECTOR XM_CALLCONV XMVectorRotateRight(FXMVECTOR V) noexcept + { + static_assert(Elements < 4, "Elements template parameter out of range"); + return XMVectorSwizzle<(4 - Elements) & 3, (5 - Elements) & 3, (6 - Elements) & 3, (7 - Elements) & 3>(V); + } + + template + inline XMVECTOR XM_CALLCONV XMVectorInsert(FXMVECTOR VD, FXMVECTOR VS) noexcept + { + XMVECTOR Control = XMVectorSelectControl(Select0 & 1, Select1 & 1, Select2 & 1, Select3 & 1); + return XMVectorSelect(VD, XMVectorRotateLeft(VS), Control); + } + + /**************************************************************************** + * + * Globals + * + ****************************************************************************/ + + // The purpose of the following global constants is to prevent redundant + // reloading of the constants when they are referenced by more than one + // separate inline math routine called within the same function. Declaring + // a constant locally within a routine is sufficient to prevent redundant + // reloads of that constant when that single routine is called multiple + // times in a function, but if the constant is used (and declared) in a + // separate math routine it would be reloaded. + +#ifndef XMGLOBALCONST +#if defined(__GNUC__) && !defined(__MINGW32__) +#define XMGLOBALCONST extern const __attribute__((weak)) +#else +#define XMGLOBALCONST extern const __declspec(selectany) +#endif +#endif + + XMGLOBALCONST XMVECTORF32 g_XMSinCoefficients0 = { { { -0.16666667f, +0.0083333310f, -0.00019840874f, +2.7525562e-06f } } }; + XMGLOBALCONST XMVECTORF32 g_XMSinCoefficients1 = { { { -2.3889859e-08f, -0.16665852f /*Est1*/, +0.0083139502f /*Est2*/, -0.00018524670f /*Est3*/ } } }; + XMGLOBALCONST XMVECTORF32 g_XMCosCoefficients0 = { { { -0.5f, +0.041666638f, -0.0013888378f, +2.4760495e-05f } } }; + XMGLOBALCONST XMVECTORF32 g_XMCosCoefficients1 = { { { -2.6051615e-07f, -0.49992746f /*Est1*/, +0.041493919f /*Est2*/, -0.0012712436f /*Est3*/ } } }; + XMGLOBALCONST XMVECTORF32 g_XMTanCoefficients0 = { { { 1.0f, 0.333333333f, 0.133333333f, 5.396825397e-2f } } }; + XMGLOBALCONST XMVECTORF32 g_XMTanCoefficients1 = { { { 2.186948854e-2f, 8.863235530e-3f, 3.592128167e-3f, 1.455834485e-3f } } }; + XMGLOBALCONST XMVECTORF32 g_XMTanCoefficients2 = { { { 5.900274264e-4f, 2.391290764e-4f, 9.691537707e-5f, 3.927832950e-5f } } }; + XMGLOBALCONST XMVECTORF32 g_XMArcCoefficients0 = { { { +1.5707963050f, -0.2145988016f, +0.0889789874f, -0.0501743046f } } }; + XMGLOBALCONST XMVECTORF32 g_XMArcCoefficients1 = { { { +0.0308918810f, -0.0170881256f, +0.0066700901f, -0.0012624911f } } }; + XMGLOBALCONST XMVECTORF32 g_XMATanCoefficients0 = { { { -0.3333314528f, +0.1999355085f, -0.1420889944f, +0.1065626393f } } }; + XMGLOBALCONST XMVECTORF32 g_XMATanCoefficients1 = { { { -0.0752896400f, +0.0429096138f, -0.0161657367f, +0.0028662257f } } }; + XMGLOBALCONST XMVECTORF32 g_XMATanEstCoefficients0 = { { { +0.999866f, +0.999866f, +0.999866f, +0.999866f } } }; + XMGLOBALCONST XMVECTORF32 g_XMATanEstCoefficients1 = { { { -0.3302995f, +0.180141f, -0.085133f, +0.0208351f } } }; + XMGLOBALCONST XMVECTORF32 g_XMTanEstCoefficients = { { { 2.484f, -1.954923183e-1f, 2.467401101f, XM_1DIVPI } } }; + XMGLOBALCONST XMVECTORF32 g_XMArcEstCoefficients = { { { +1.5707288f, -0.2121144f, +0.0742610f, -0.0187293f } } }; + XMGLOBALCONST XMVECTORF32 g_XMPiConstants0 = { { { XM_PI, XM_2PI, XM_1DIVPI, XM_1DIV2PI } } }; + XMGLOBALCONST XMVECTORF32 g_XMIdentityR0 = { { { 1.0f, 0.0f, 0.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMIdentityR1 = { { { 0.0f, 1.0f, 0.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMIdentityR2 = { { { 0.0f, 0.0f, 1.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMIdentityR3 = { { { 0.0f, 0.0f, 0.0f, 1.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegIdentityR0 = { { { -1.0f, 0.0f, 0.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegIdentityR1 = { { { 0.0f, -1.0f, 0.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegIdentityR2 = { { { 0.0f, 0.0f, -1.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegIdentityR3 = { { { 0.0f, 0.0f, 0.0f, -1.0f } } }; + XMGLOBALCONST XMVECTORU32 g_XMNegativeZero = { { { 0x80000000, 0x80000000, 0x80000000, 0x80000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMNegate3 = { { { 0x80000000, 0x80000000, 0x80000000, 0x00000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMMaskXY = { { { 0xFFFFFFFF, 0xFFFFFFFF, 0x00000000, 0x00000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMMask3 = { { { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMMaskX = { { { 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMMaskY = { { { 0x00000000, 0xFFFFFFFF, 0x00000000, 0x00000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMMaskZ = { { { 0x00000000, 0x00000000, 0xFFFFFFFF, 0x00000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMMaskW = { { { 0x00000000, 0x00000000, 0x00000000, 0xFFFFFFFF } } }; + XMGLOBALCONST XMVECTORF32 g_XMOne = { { { 1.0f, 1.0f, 1.0f, 1.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMOne3 = { { { 1.0f, 1.0f, 1.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMZero = { { { 0.0f, 0.0f, 0.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMTwo = { { { 2.f, 2.f, 2.f, 2.f } } }; + XMGLOBALCONST XMVECTORF32 g_XMFour = { { { 4.f, 4.f, 4.f, 4.f } } }; + XMGLOBALCONST XMVECTORF32 g_XMSix = { { { 6.f, 6.f, 6.f, 6.f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegativeOne = { { { -1.0f, -1.0f, -1.0f, -1.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMOneHalf = { { { 0.5f, 0.5f, 0.5f, 0.5f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegativeOneHalf = { { { -0.5f, -0.5f, -0.5f, -0.5f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegativeTwoPi = { { { -XM_2PI, -XM_2PI, -XM_2PI, -XM_2PI } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegativePi = { { { -XM_PI, -XM_PI, -XM_PI, -XM_PI } } }; + XMGLOBALCONST XMVECTORF32 g_XMHalfPi = { { { XM_PIDIV2, XM_PIDIV2, XM_PIDIV2, XM_PIDIV2 } } }; + XMGLOBALCONST XMVECTORF32 g_XMPi = { { { XM_PI, XM_PI, XM_PI, XM_PI } } }; + XMGLOBALCONST XMVECTORF32 g_XMReciprocalPi = { { { XM_1DIVPI, XM_1DIVPI, XM_1DIVPI, XM_1DIVPI } } }; + XMGLOBALCONST XMVECTORF32 g_XMTwoPi = { { { XM_2PI, XM_2PI, XM_2PI, XM_2PI } } }; + XMGLOBALCONST XMVECTORF32 g_XMReciprocalTwoPi = { { { XM_1DIV2PI, XM_1DIV2PI, XM_1DIV2PI, XM_1DIV2PI } } }; + XMGLOBALCONST XMVECTORF32 g_XMEpsilon = { { { 1.192092896e-7f, 1.192092896e-7f, 1.192092896e-7f, 1.192092896e-7f } } }; + XMGLOBALCONST XMVECTORI32 g_XMInfinity = { { { 0x7F800000, 0x7F800000, 0x7F800000, 0x7F800000 } } }; + XMGLOBALCONST XMVECTORI32 g_XMQNaN = { { { 0x7FC00000, 0x7FC00000, 0x7FC00000, 0x7FC00000 } } }; + XMGLOBALCONST XMVECTORI32 g_XMQNaNTest = { { { 0x007FFFFF, 0x007FFFFF, 0x007FFFFF, 0x007FFFFF } } }; + XMGLOBALCONST XMVECTORI32 g_XMAbsMask = { { { 0x7FFFFFFF, 0x7FFFFFFF, 0x7FFFFFFF, 0x7FFFFFFF } } }; + XMGLOBALCONST XMVECTORI32 g_XMFltMin = { { { 0x00800000, 0x00800000, 0x00800000, 0x00800000 } } }; + XMGLOBALCONST XMVECTORI32 g_XMFltMax = { { { 0x7F7FFFFF, 0x7F7FFFFF, 0x7F7FFFFF, 0x7F7FFFFF } } }; + XMGLOBALCONST XMVECTORU32 g_XMNegOneMask = { { { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF } } }; + XMGLOBALCONST XMVECTORU32 g_XMMaskA8R8G8B8 = { { { 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMFlipA8R8G8B8 = { { { 0x00000000, 0x00000000, 0x00000000, 0x80000000 } } }; + XMGLOBALCONST XMVECTORF32 g_XMFixAA8R8G8B8 = { { { 0.0f, 0.0f, 0.0f, float(0x80000000U) } } }; + XMGLOBALCONST XMVECTORF32 g_XMNormalizeA8R8G8B8 = { { { 1.0f / (255.0f * float(0x10000)), 1.0f / (255.0f * float(0x100)), 1.0f / 255.0f, 1.0f / (255.0f * float(0x1000000)) } } }; + XMGLOBALCONST XMVECTORU32 g_XMMaskA2B10G10R10 = { { { 0x000003FF, 0x000FFC00, 0x3FF00000, 0xC0000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMFlipA2B10G10R10 = { { { 0x00000200, 0x00080000, 0x20000000, 0x80000000 } } }; + XMGLOBALCONST XMVECTORF32 g_XMFixAA2B10G10R10 = { { { -512.0f, -512.0f * float(0x400), -512.0f * float(0x100000), float(0x80000000U) } } }; + XMGLOBALCONST XMVECTORF32 g_XMNormalizeA2B10G10R10 = { { { 1.0f / 511.0f, 1.0f / (511.0f * float(0x400)), 1.0f / (511.0f * float(0x100000)), 1.0f / (3.0f * float(0x40000000)) } } }; + XMGLOBALCONST XMVECTORU32 g_XMMaskX16Y16 = { { { 0x0000FFFF, 0xFFFF0000, 0x00000000, 0x00000000 } } }; + XMGLOBALCONST XMVECTORI32 g_XMFlipX16Y16 = { { { 0x00008000, 0x00000000, 0x00000000, 0x00000000 } } }; + XMGLOBALCONST XMVECTORF32 g_XMFixX16Y16 = { { { -32768.0f, 0.0f, 0.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNormalizeX16Y16 = { { { 1.0f / 32767.0f, 1.0f / (32767.0f * 65536.0f), 0.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORU32 g_XMMaskX16Y16Z16W16 = { { { 0x0000FFFF, 0x0000FFFF, 0xFFFF0000, 0xFFFF0000 } } }; + XMGLOBALCONST XMVECTORI32 g_XMFlipX16Y16Z16W16 = { { { 0x00008000, 0x00008000, 0x00000000, 0x00000000 } } }; + XMGLOBALCONST XMVECTORF32 g_XMFixX16Y16Z16W16 = { { { -32768.0f, -32768.0f, 0.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNormalizeX16Y16Z16W16 = { { { 1.0f / 32767.0f, 1.0f / 32767.0f, 1.0f / (32767.0f * 65536.0f), 1.0f / (32767.0f * 65536.0f) } } }; + XMGLOBALCONST XMVECTORF32 g_XMNoFraction = { { { 8388608.0f, 8388608.0f, 8388608.0f, 8388608.0f } } }; + XMGLOBALCONST XMVECTORI32 g_XMMaskByte = { { { 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegateX = { { { -1.0f, 1.0f, 1.0f, 1.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegateY = { { { 1.0f, -1.0f, 1.0f, 1.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegateZ = { { { 1.0f, 1.0f, -1.0f, 1.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMNegateW = { { { 1.0f, 1.0f, 1.0f, -1.0f } } }; + XMGLOBALCONST XMVECTORU32 g_XMSelect0101 = { { { XM_SELECT_0, XM_SELECT_1, XM_SELECT_0, XM_SELECT_1 } } }; + XMGLOBALCONST XMVECTORU32 g_XMSelect1010 = { { { XM_SELECT_1, XM_SELECT_0, XM_SELECT_1, XM_SELECT_0 } } }; + XMGLOBALCONST XMVECTORI32 g_XMOneHalfMinusEpsilon = { { { 0x3EFFFFFD, 0x3EFFFFFD, 0x3EFFFFFD, 0x3EFFFFFD } } }; + XMGLOBALCONST XMVECTORU32 g_XMSelect1000 = { { { XM_SELECT_1, XM_SELECT_0, XM_SELECT_0, XM_SELECT_0 } } }; + XMGLOBALCONST XMVECTORU32 g_XMSelect1100 = { { { XM_SELECT_1, XM_SELECT_1, XM_SELECT_0, XM_SELECT_0 } } }; + XMGLOBALCONST XMVECTORU32 g_XMSelect1110 = { { { XM_SELECT_1, XM_SELECT_1, XM_SELECT_1, XM_SELECT_0 } } }; + XMGLOBALCONST XMVECTORU32 g_XMSelect1011 = { { { XM_SELECT_1, XM_SELECT_0, XM_SELECT_1, XM_SELECT_1 } } }; + XMGLOBALCONST XMVECTORF32 g_XMFixupY16 = { { { 1.0f, 1.0f / 65536.0f, 0.0f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMFixupY16W16 = { { { 1.0f, 1.0f, 1.0f / 65536.0f, 1.0f / 65536.0f } } }; + XMGLOBALCONST XMVECTORU32 g_XMFlipY = { { { 0, 0x80000000, 0, 0 } } }; + XMGLOBALCONST XMVECTORU32 g_XMFlipZ = { { { 0, 0, 0x80000000, 0 } } }; + XMGLOBALCONST XMVECTORU32 g_XMFlipW = { { { 0, 0, 0, 0x80000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMFlipYZ = { { { 0, 0x80000000, 0x80000000, 0 } } }; + XMGLOBALCONST XMVECTORU32 g_XMFlipZW = { { { 0, 0, 0x80000000, 0x80000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMFlipYW = { { { 0, 0x80000000, 0, 0x80000000 } } }; + XMGLOBALCONST XMVECTORI32 g_XMMaskDec4 = { { { 0x3FF, 0x3FF << 10, 0x3FF << 20, static_cast(0xC0000000) } } }; + XMGLOBALCONST XMVECTORI32 g_XMXorDec4 = { { { 0x200, 0x200 << 10, 0x200 << 20, 0 } } }; + XMGLOBALCONST XMVECTORF32 g_XMAddUDec4 = { { { 0, 0, 0, 32768.0f * 65536.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMAddDec4 = { { { -512.0f, -512.0f * 1024.0f, -512.0f * 1024.0f * 1024.0f, 0 } } }; + XMGLOBALCONST XMVECTORF32 g_XMMulDec4 = { { { 1.0f, 1.0f / 1024.0f, 1.0f / (1024.0f * 1024.0f), 1.0f / (1024.0f * 1024.0f * 1024.0f) } } }; + XMGLOBALCONST XMVECTORU32 g_XMMaskByte4 = { { { 0xFF, 0xFF00, 0xFF0000, 0xFF000000 } } }; + XMGLOBALCONST XMVECTORI32 g_XMXorByte4 = { { { 0x80, 0x8000, 0x800000, 0x00000000 } } }; + XMGLOBALCONST XMVECTORF32 g_XMAddByte4 = { { { -128.0f, -128.0f * 256.0f, -128.0f * 65536.0f, 0 } } }; + XMGLOBALCONST XMVECTORF32 g_XMFixUnsigned = { { { 32768.0f * 65536.0f, 32768.0f * 65536.0f, 32768.0f * 65536.0f, 32768.0f * 65536.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMMaxInt = { { { 65536.0f * 32768.0f - 128.0f, 65536.0f * 32768.0f - 128.0f, 65536.0f * 32768.0f - 128.0f, 65536.0f * 32768.0f - 128.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMMaxUInt = { { { 65536.0f * 65536.0f - 256.0f, 65536.0f * 65536.0f - 256.0f, 65536.0f * 65536.0f - 256.0f, 65536.0f * 65536.0f - 256.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMUnsignedFix = { { { 32768.0f * 65536.0f, 32768.0f * 65536.0f, 32768.0f * 65536.0f, 32768.0f * 65536.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMsrgbScale = { { { 12.92f, 12.92f, 12.92f, 1.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMsrgbA = { { { 0.055f, 0.055f, 0.055f, 0.0f } } }; + XMGLOBALCONST XMVECTORF32 g_XMsrgbA1 = { { { 1.055f, 1.055f, 1.055f, 1.0f } } }; + XMGLOBALCONST XMVECTORI32 g_XMExponentBias = { { { 127, 127, 127, 127 } } }; + XMGLOBALCONST XMVECTORI32 g_XMSubnormalExponent = { { { -126, -126, -126, -126 } } }; + XMGLOBALCONST XMVECTORI32 g_XMNumTrailing = { { { 23, 23, 23, 23 } } }; + XMGLOBALCONST XMVECTORI32 g_XMMinNormal = { { { 0x00800000, 0x00800000, 0x00800000, 0x00800000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMNegInfinity = { { { 0xFF800000, 0xFF800000, 0xFF800000, 0xFF800000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMNegQNaN = { { { 0xFFC00000, 0xFFC00000, 0xFFC00000, 0xFFC00000 } } }; + XMGLOBALCONST XMVECTORI32 g_XMBin128 = { { { 0x43000000, 0x43000000, 0x43000000, 0x43000000 } } }; + XMGLOBALCONST XMVECTORU32 g_XMBinNeg150 = { { { 0xC3160000, 0xC3160000, 0xC3160000, 0xC3160000 } } }; + XMGLOBALCONST XMVECTORI32 g_XM253 = { { { 253, 253, 253, 253 } } }; + XMGLOBALCONST XMVECTORF32 g_XMExpEst1 = { { { -6.93147182e-1f, -6.93147182e-1f, -6.93147182e-1f, -6.93147182e-1f } } }; + XMGLOBALCONST XMVECTORF32 g_XMExpEst2 = { { { +2.40226462e-1f, +2.40226462e-1f, +2.40226462e-1f, +2.40226462e-1f } } }; + XMGLOBALCONST XMVECTORF32 g_XMExpEst3 = { { { -5.55036440e-2f, -5.55036440e-2f, -5.55036440e-2f, -5.55036440e-2f } } }; + XMGLOBALCONST XMVECTORF32 g_XMExpEst4 = { { { +9.61597636e-3f, +9.61597636e-3f, +9.61597636e-3f, +9.61597636e-3f } } }; + XMGLOBALCONST XMVECTORF32 g_XMExpEst5 = { { { -1.32823968e-3f, -1.32823968e-3f, -1.32823968e-3f, -1.32823968e-3f } } }; + XMGLOBALCONST XMVECTORF32 g_XMExpEst6 = { { { +1.47491097e-4f, +1.47491097e-4f, +1.47491097e-4f, +1.47491097e-4f } } }; + XMGLOBALCONST XMVECTORF32 g_XMExpEst7 = { { { -1.08635004e-5f, -1.08635004e-5f, -1.08635004e-5f, -1.08635004e-5f } } }; + XMGLOBALCONST XMVECTORF32 g_XMLogEst0 = { { { +1.442693f, +1.442693f, +1.442693f, +1.442693f } } }; + XMGLOBALCONST XMVECTORF32 g_XMLogEst1 = { { { -0.721242f, -0.721242f, -0.721242f, -0.721242f } } }; + XMGLOBALCONST XMVECTORF32 g_XMLogEst2 = { { { +0.479384f, +0.479384f, +0.479384f, +0.479384f } } }; + XMGLOBALCONST XMVECTORF32 g_XMLogEst3 = { { { -0.350295f, -0.350295f, -0.350295f, -0.350295f } } }; + XMGLOBALCONST XMVECTORF32 g_XMLogEst4 = { { { +0.248590f, +0.248590f, +0.248590f, +0.248590f } } }; + XMGLOBALCONST XMVECTORF32 g_XMLogEst5 = { { { -0.145700f, -0.145700f, -0.145700f, -0.145700f } } }; + XMGLOBALCONST XMVECTORF32 g_XMLogEst6 = { { { +0.057148f, +0.057148f, +0.057148f, +0.057148f } } }; + XMGLOBALCONST XMVECTORF32 g_XMLogEst7 = { { { -0.010578f, -0.010578f, -0.010578f, -0.010578f } } }; + XMGLOBALCONST XMVECTORF32 g_XMLgE = { { { +1.442695f, +1.442695f, +1.442695f, +1.442695f } } }; + XMGLOBALCONST XMVECTORF32 g_XMInvLgE = { { { +6.93147182e-1f, +6.93147182e-1f, +6.93147182e-1f, +6.93147182e-1f } } }; + XMGLOBALCONST XMVECTORF32 g_XMLg10 = { { { +3.321928f, +3.321928f, +3.321928f, +3.321928f } } }; + XMGLOBALCONST XMVECTORF32 g_XMInvLg10 = { { { +3.010299956e-1f, +3.010299956e-1f, +3.010299956e-1f, +3.010299956e-1f } } }; + XMGLOBALCONST XMVECTORF32 g_UByteMax = { { { 255.0f, 255.0f, 255.0f, 255.0f } } }; + XMGLOBALCONST XMVECTORF32 g_ByteMin = { { { -127.0f, -127.0f, -127.0f, -127.0f } } }; + XMGLOBALCONST XMVECTORF32 g_ByteMax = { { { 127.0f, 127.0f, 127.0f, 127.0f } } }; + XMGLOBALCONST XMVECTORF32 g_ShortMin = { { { -32767.0f, -32767.0f, -32767.0f, -32767.0f } } }; + XMGLOBALCONST XMVECTORF32 g_ShortMax = { { { 32767.0f, 32767.0f, 32767.0f, 32767.0f } } }; + XMGLOBALCONST XMVECTORF32 g_UShortMax = { { { 65535.0f, 65535.0f, 65535.0f, 65535.0f } } }; + + /**************************************************************************** + * + * Implementation + * + ****************************************************************************/ + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4068 4214 4204 4365 4616 4640 6001 6101) + // C4068/4616: ignore unknown pragmas + // C4214/4204: nonstandard extension used + // C4365/4640: Off by default noise + // C6001/6101: False positives +#endif + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes") +#pragma prefast(disable : 26495, "Union initialization confuses /analyze") +#endif + +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wfloat-equal" +#pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" +#pragma clang diagnostic ignored "-Wunknown-warning-option" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" +#endif + +//------------------------------------------------------------------------------ + + inline XMVECTOR XM_CALLCONV XMVectorSetBinaryConstant(uint32_t C0, uint32_t C1, uint32_t C2, uint32_t C3) noexcept + { +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 vResult; + vResult.u[0] = (0 - (C0 & 1)) & 0x3F800000; + vResult.u[1] = (0 - (C1 & 1)) & 0x3F800000; + vResult.u[2] = (0 - (C2 & 1)) & 0x3F800000; + vResult.u[3] = (0 - (C3 & 1)) & 0x3F800000; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTORU32 vResult; + vResult.u[0] = (0 - (C0 & 1)) & 0x3F800000; + vResult.u[1] = (0 - (C1 & 1)) & 0x3F800000; + vResult.u[2] = (0 - (C2 & 1)) & 0x3F800000; + vResult.u[3] = (0 - (C3 & 1)) & 0x3F800000; + return vResult.v; +#else // XM_SSE_INTRINSICS_ + static const XMVECTORU32 g_vMask1 = { { { 1, 1, 1, 1 } } }; + // Move the parms to a vector + __m128i vTemp = _mm_set_epi32(static_cast(C3), static_cast(C2), static_cast(C1), static_cast(C0)); + // Mask off the low bits + vTemp = _mm_and_si128(vTemp, g_vMask1); + // 0xFFFFFFFF on true bits + vTemp = _mm_cmpeq_epi32(vTemp, g_vMask1); + // 0xFFFFFFFF -> 1.0f, 0x00000000 -> 0.0f + vTemp = _mm_and_si128(vTemp, g_XMOne); + return _mm_castsi128_ps(vTemp); +#endif + } + + //------------------------------------------------------------------------------ + + inline XMVECTOR XM_CALLCONV XMVectorSplatConstant(int32_t IntConstant, uint32_t DivExponent) noexcept + { + assert(IntConstant >= -16 && IntConstant <= 15); + assert(DivExponent < 32); +#if defined(_XM_NO_INTRINSICS_) + + using DirectX::XMConvertVectorIntToFloat; + + XMVECTORI32 V = { { { IntConstant, IntConstant, IntConstant, IntConstant } } }; + return XMConvertVectorIntToFloat(V.v, DivExponent); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Splat the int + int32x4_t vScale = vdupq_n_s32(IntConstant); + // Convert to a float + XMVECTOR vResult = vcvtq_f32_s32(vScale); + // Convert DivExponent into 1.0f/(1<(&vScale)[0]); + return vResult; +#else // XM_SSE_INTRINSICS_ + // Splat the int + __m128i vScale = _mm_set1_epi32(IntConstant); + // Convert to a float + XMVECTOR vResult = _mm_cvtepi32_ps(vScale); + // Convert DivExponent into 1.0f/(1<(uScale)); + // Multiply by the reciprocal (Perform a right shift by DivExponent) + vResult = _mm_mul_ps(vResult, _mm_castsi128_ps(vScale)); + return vResult; +#endif + } + + //------------------------------------------------------------------------------ + + inline XMVECTOR XM_CALLCONV XMVectorSplatConstantInt(int32_t IntConstant) noexcept + { + assert(IntConstant >= -16 && IntConstant <= 15); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORI32 V = { { { IntConstant, IntConstant, IntConstant, IntConstant } } }; + return V.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int32x4_t V = vdupq_n_s32(IntConstant); + return reinterpret_cast(&V)[0]; +#else // XM_SSE_INTRINSICS_ + __m128i V = _mm_set1_epi32(IntConstant); + return _mm_castsi128_ps(V); +#endif + } + +#include "DirectXMathConvert.inl" +#include "DirectXMathVector.inl" +#include "DirectXMathMatrix.inl" +#include "DirectXMathMisc.inl" + +#ifdef __clang__ +#pragma clang diagnostic pop +#endif +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +} // namespace DirectX + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathConvert.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathConvert.inl new file mode 100644 index 0000000000000000000000000000000000000000..21305cca7caee92cb008b9977fb42511e854f610 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathConvert.inl @@ -0,0 +1,2191 @@ +//------------------------------------------------------------------------------------- +// DirectXMathConvert.inl -- SIMD C++ Math library +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// +// http://go.microsoft.com/fwlink/?LinkID=615560 +//------------------------------------------------------------------------------------- + +#pragma once + +/**************************************************************************** + * + * Data conversion + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4701) +// C4701: false positives +#endif + +inline XMVECTOR XM_CALLCONV XMConvertVectorIntToFloat +( + FXMVECTOR VInt, + uint32_t DivExponent +) noexcept +{ + assert(DivExponent < 32); +#if defined(_XM_NO_INTRINSICS_) + float fScale = 1.0f / static_cast(1U << DivExponent); + uint32_t ElementIndex = 0; + XMVECTOR Result; + do { + auto iTemp = static_cast(VInt.vector4_u32[ElementIndex]); + Result.vector4_f32[ElementIndex] = static_cast(iTemp)* fScale; + } while (++ElementIndex < 4); + return Result; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float fScale = 1.0f / static_cast(1U << DivExponent); + float32x4_t vResult = vcvtq_f32_s32(vreinterpretq_s32_f32(VInt)); + return vmulq_n_f32(vResult, fScale); +#else // _XM_SSE_INTRINSICS_ + // Convert to floats + XMVECTOR vResult = _mm_cvtepi32_ps(_mm_castps_si128(VInt)); + // Convert DivExponent into 1.0f/(1<(uScale)); + vResult = _mm_mul_ps(vResult, _mm_castsi128_ps(vScale)); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMConvertVectorFloatToInt +( + FXMVECTOR VFloat, + uint32_t MulExponent +) noexcept +{ + assert(MulExponent < 32); +#if defined(_XM_NO_INTRINSICS_) + // Get the scalar factor. + auto fScale = static_cast(1U << MulExponent); + uint32_t ElementIndex = 0; + XMVECTOR Result; + do { + int32_t iResult; + float fTemp = VFloat.vector4_f32[ElementIndex] * fScale; + if (fTemp <= -(65536.0f * 32768.0f)) + { + iResult = (-0x7FFFFFFF) - 1; + } + else if (fTemp > (65536.0f * 32768.0f) - 128.0f) + { + iResult = 0x7FFFFFFF; + } + else { + iResult = static_cast(fTemp); + } + Result.vector4_u32[ElementIndex] = static_cast(iResult); + } while (++ElementIndex < 4); + return Result; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vResult = vmulq_n_f32(VFloat, static_cast(1U << MulExponent)); + // In case of positive overflow, detect it + uint32x4_t vOverflow = vcgtq_f32(vResult, g_XMMaxInt); + // Float to int conversion + int32x4_t vResulti = vcvtq_s32_f32(vResult); + // If there was positive overflow, set to 0x7FFFFFFF + vResult = vreinterpretq_f32_u32(vandq_u32(vOverflow, g_XMAbsMask)); + vOverflow = vbicq_u32(vreinterpretq_u32_s32(vResulti), vOverflow); + vOverflow = vorrq_u32(vOverflow, vreinterpretq_u32_f32(vResult)); + return vreinterpretq_f32_u32(vOverflow); +#else // _XM_SSE_INTRINSICS_ + XMVECTOR vResult = _mm_set_ps1(static_cast(1U << MulExponent)); + vResult = _mm_mul_ps(vResult, VFloat); + // In case of positive overflow, detect it + XMVECTOR vOverflow = _mm_cmpgt_ps(vResult, g_XMMaxInt); + // Float to int conversion + __m128i vResulti = _mm_cvttps_epi32(vResult); + // If there was positive overflow, set to 0x7FFFFFFF + vResult = _mm_and_ps(vOverflow, g_XMAbsMask); + vOverflow = _mm_andnot_ps(vOverflow, _mm_castsi128_ps(vResulti)); + vOverflow = _mm_or_ps(vOverflow, vResult); + return vOverflow; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMConvertVectorUIntToFloat +( + FXMVECTOR VUInt, + uint32_t DivExponent +) noexcept +{ + assert(DivExponent < 32); +#if defined(_XM_NO_INTRINSICS_) + float fScale = 1.0f / static_cast(1U << DivExponent); + uint32_t ElementIndex = 0; + XMVECTOR Result; + do { + Result.vector4_f32[ElementIndex] = static_cast(VUInt.vector4_u32[ElementIndex])* fScale; + } while (++ElementIndex < 4); + return Result; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float fScale = 1.0f / static_cast(1U << DivExponent); + float32x4_t vResult = vcvtq_f32_u32(vreinterpretq_u32_f32(VUInt)); + return vmulq_n_f32(vResult, fScale); +#else // _XM_SSE_INTRINSICS_ + // For the values that are higher than 0x7FFFFFFF, a fixup is needed + // Determine which ones need the fix. + XMVECTOR vMask = _mm_and_ps(VUInt, g_XMNegativeZero); + // Force all values positive + XMVECTOR vResult = _mm_xor_ps(VUInt, vMask); + // Convert to floats + vResult = _mm_cvtepi32_ps(_mm_castps_si128(vResult)); + // Convert 0x80000000 -> 0xFFFFFFFF + __m128i iMask = _mm_srai_epi32(_mm_castps_si128(vMask), 31); + // For only the ones that are too big, add the fixup + vMask = _mm_and_ps(_mm_castsi128_ps(iMask), g_XMFixUnsigned); + vResult = _mm_add_ps(vResult, vMask); + // Convert DivExponent into 1.0f/(1<(uScale)); + vResult = _mm_mul_ps(vResult, _mm_castsi128_ps(iMask)); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMConvertVectorFloatToUInt +( + FXMVECTOR VFloat, + uint32_t MulExponent +) noexcept +{ + assert(MulExponent < 32); +#if defined(_XM_NO_INTRINSICS_) + // Get the scalar factor. + auto fScale = static_cast(1U << MulExponent); + uint32_t ElementIndex = 0; + XMVECTOR Result; + do { + uint32_t uResult; + float fTemp = VFloat.vector4_f32[ElementIndex] * fScale; + if (fTemp <= 0.0f) + { + uResult = 0; + } + else if (fTemp >= (65536.0f * 65536.0f)) + { + uResult = 0xFFFFFFFFU; + } + else { + uResult = static_cast(fTemp); + } + Result.vector4_u32[ElementIndex] = uResult; + } while (++ElementIndex < 4); + return Result; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vResult = vmulq_n_f32(VFloat, static_cast(1U << MulExponent)); + // In case of overflow, detect it + uint32x4_t vOverflow = vcgtq_f32(vResult, g_XMMaxUInt); + // Float to int conversion + uint32x4_t vResulti = vcvtq_u32_f32(vResult); + // If there was overflow, set to 0xFFFFFFFFU + vResult = vreinterpretq_f32_u32(vbicq_u32(vResulti, vOverflow)); + vOverflow = vorrq_u32(vOverflow, vreinterpretq_u32_f32(vResult)); + return vreinterpretq_f32_u32(vOverflow); +#else // _XM_SSE_INTRINSICS_ + XMVECTOR vResult = _mm_set_ps1(static_cast(1U << MulExponent)); + vResult = _mm_mul_ps(vResult, VFloat); + // Clamp to >=0 + vResult = _mm_max_ps(vResult, g_XMZero); + // Any numbers that are too big, set to 0xFFFFFFFFU + XMVECTOR vOverflow = _mm_cmpgt_ps(vResult, g_XMMaxUInt); + XMVECTOR vValue = g_XMUnsignedFix; + // Too large for a signed integer? + XMVECTOR vMask = _mm_cmpge_ps(vResult, vValue); + // Zero for number's lower than 0x80000000, 32768.0f*65536.0f otherwise + vValue = _mm_and_ps(vValue, vMask); + // Perform fixup only on numbers too large (Keeps low bit precision) + vResult = _mm_sub_ps(vResult, vValue); + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Convert from signed to unsigned pnly if greater than 0x80000000 + vMask = _mm_and_ps(vMask, g_XMNegativeZero); + vResult = _mm_xor_ps(_mm_castsi128_ps(vResulti), vMask); + // On those that are too large, set to 0xFFFFFFFF + vResult = _mm_or_ps(vResult, vOverflow); + return vResult; +#endif +} + +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +/**************************************************************************** + * + * Vector and matrix load operations + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadInt(const uint32_t* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_u32[0] = *pSource; + V.vector4_u32[1] = 0; + V.vector4_u32[2] = 0; + V.vector4_u32[3] = 0; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t zero = vdupq_n_u32(0); + return vreinterpretq_f32_u32(vld1q_lane_u32(pSource, zero, 0)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_load_ss(reinterpret_cast(pSource)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadFloat(const float* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = *pSource; + V.vector4_f32[1] = 0.f; + V.vector4_f32[2] = 0.f; + V.vector4_f32[3] = 0.f; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t zero = vdupq_n_f32(0); + return vld1q_lane_f32(pSource, zero, 0); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_load_ss(pSource); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadInt2(const uint32_t* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_u32[0] = pSource[0]; + V.vector4_u32[1] = pSource[1]; + V.vector4_u32[2] = 0; + V.vector4_u32[3] = 0; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t x = vld1_u32(pSource); + uint32x2_t zero = vdup_n_u32(0); + return vreinterpretq_f32_u32(vcombine_u32(x, zero)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadInt2A(const uint32_t* pSource) noexcept +{ + assert(pSource); + assert((reinterpret_cast(pSource) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_u32[0] = pSource[0]; + V.vector4_u32[1] = pSource[1]; + V.vector4_u32[2] = 0; + V.vector4_u32[3] = 0; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + uint32x2_t x = vld1_u32_ex(pSource, 64); +#else + uint32x2_t x = vld1_u32(pSource); +#endif + uint32x2_t zero = vdup_n_u32(0); + return vreinterpretq_f32_u32(vcombine_u32(x, zero)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadFloat2(const XMFLOAT2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = pSource->x; + V.vector4_f32[1] = pSource->y; + V.vector4_f32[2] = 0.f; + V.vector4_f32[3] = 0.f; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t x = vld1_f32(reinterpret_cast(pSource)); + float32x2_t zero = vdup_n_f32(0); + return vcombine_f32(x, zero); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadFloat2A(const XMFLOAT2A* pSource) noexcept +{ + assert(pSource); + assert((reinterpret_cast(pSource) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = pSource->x; + V.vector4_f32[1] = pSource->y; + V.vector4_f32[2] = 0.f; + V.vector4_f32[3] = 0.f; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + float32x2_t x = vld1_f32_ex(reinterpret_cast(pSource), 64); +#else + float32x2_t x = vld1_f32(reinterpret_cast(pSource)); +#endif + float32x2_t zero = vdup_n_f32(0); + return vcombine_f32(x, zero); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadSInt2(const XMINT2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = static_cast(pSource->x); + V.vector4_f32[1] = static_cast(pSource->y); + V.vector4_f32[2] = 0.f; + V.vector4_f32[3] = 0.f; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int32x2_t x = vld1_s32(reinterpret_cast(pSource)); + float32x2_t v = vcvt_f32_s32(x); + float32x2_t zero = vdup_n_f32(0); + return vcombine_f32(v, zero); +#elif defined(_XM_SSE_INTRINSICS_) + __m128 V = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); + return _mm_cvtepi32_ps(_mm_castps_si128(V)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUInt2(const XMUINT2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = static_cast(pSource->x); + V.vector4_f32[1] = static_cast(pSource->y); + V.vector4_f32[2] = 0.f; + V.vector4_f32[3] = 0.f; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t x = vld1_u32(reinterpret_cast(pSource)); + float32x2_t v = vcvt_f32_u32(x); + float32x2_t zero = vdup_n_f32(0); + return vcombine_f32(v, zero); +#elif defined(_XM_SSE_INTRINSICS_) + __m128 V = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); + // For the values that are higher than 0x7FFFFFFF, a fixup is needed + // Determine which ones need the fix. + XMVECTOR vMask = _mm_and_ps(V, g_XMNegativeZero); + // Force all values positive + XMVECTOR vResult = _mm_xor_ps(V, vMask); + // Convert to floats + vResult = _mm_cvtepi32_ps(_mm_castps_si128(vResult)); + // Convert 0x80000000 -> 0xFFFFFFFF + __m128i iMask = _mm_srai_epi32(_mm_castps_si128(vMask), 31); + // For only the ones that are too big, add the fixup + vMask = _mm_and_ps(_mm_castsi128_ps(iMask), g_XMFixUnsigned); + vResult = _mm_add_ps(vResult, vMask); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadInt3(const uint32_t* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_u32[0] = pSource[0]; + V.vector4_u32[1] = pSource[1]; + V.vector4_u32[2] = pSource[2]; + V.vector4_u32[3] = 0; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t x = vld1_u32(pSource); + uint32x2_t zero = vdup_n_u32(0); + uint32x2_t y = vld1_lane_u32(pSource + 2, zero, 0); + return vreinterpretq_f32_u32(vcombine_u32(x, y)); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); + __m128 z = _mm_load_ss(reinterpret_cast(pSource + 2)); + return _mm_insert_ps(xy, z, 0x20); +#elif defined(_XM_SSE_INTRINSICS_) + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); + __m128 z = _mm_load_ss(reinterpret_cast(pSource + 2)); + return _mm_movelh_ps(xy, z); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadInt3A(const uint32_t* pSource) noexcept +{ + assert(pSource); + assert((reinterpret_cast(pSource) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_u32[0] = pSource[0]; + V.vector4_u32[1] = pSource[1]; + V.vector4_u32[2] = pSource[2]; + V.vector4_u32[3] = 0; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Reads an extra integer which is zero'd +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + uint32x4_t V = vld1q_u32_ex(pSource, 128); +#else + uint32x4_t V = vld1q_u32(pSource); +#endif + return vreinterpretq_f32_u32(vsetq_lane_u32(0, V, 3)); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); + __m128 z = _mm_load_ss(reinterpret_cast(pSource + 2)); + return _mm_insert_ps(xy, z, 0x20); +#elif defined(_XM_SSE_INTRINSICS_) + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); + __m128 z = _mm_load_ss(reinterpret_cast(pSource + 2)); + return _mm_movelh_ps(xy, z); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadFloat3(const XMFLOAT3* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = pSource->x; + V.vector4_f32[1] = pSource->y; + V.vector4_f32[2] = pSource->z; + V.vector4_f32[3] = 0.f; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t x = vld1_f32(reinterpret_cast(pSource)); + float32x2_t zero = vdup_n_f32(0); + float32x2_t y = vld1_lane_f32(reinterpret_cast(pSource) + 2, zero, 0); + return vcombine_f32(x, y); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); + __m128 z = _mm_load_ss(&pSource->z); + return _mm_insert_ps(xy, z, 0x20); +#elif defined(_XM_SSE_INTRINSICS_) + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); + __m128 z = _mm_load_ss(&pSource->z); + return _mm_movelh_ps(xy, z); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadFloat3A(const XMFLOAT3A* pSource) noexcept +{ + assert(pSource); + assert((reinterpret_cast(pSource) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = pSource->x; + V.vector4_f32[1] = pSource->y; + V.vector4_f32[2] = pSource->z; + V.vector4_f32[3] = 0.f; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Reads an extra float which is zero'd +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + float32x4_t V = vld1q_f32_ex(reinterpret_cast(pSource), 128); +#else + float32x4_t V = vld1q_f32(reinterpret_cast(pSource)); +#endif + return vsetq_lane_f32(0, V, 3); +#elif defined(_XM_SSE_INTRINSICS_) + // Reads an extra float which is zero'd + __m128 V = _mm_load_ps(&pSource->x); + return _mm_and_ps(V, g_XMMask3); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadSInt3(const XMINT3* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR V; + V.vector4_f32[0] = static_cast(pSource->x); + V.vector4_f32[1] = static_cast(pSource->y); + V.vector4_f32[2] = static_cast(pSource->z); + V.vector4_f32[3] = 0.f; + return V; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int32x2_t x = vld1_s32(reinterpret_cast(pSource)); + int32x2_t zero = vdup_n_s32(0); + int32x2_t y = vld1_lane_s32(reinterpret_cast(pSource) + 2, zero, 0); + int32x4_t v = vcombine_s32(x, y); + return vcvtq_f32_s32(v); +#elif defined(_XM_SSE_INTRINSICS_) + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); + __m128 z = _mm_load_ss(reinterpret_cast(&pSource->z)); + __m128 V = _mm_movelh_ps(xy, z); + return _mm_cvtepi32_ps(_mm_castps_si128(V)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUInt3(const XMUINT3* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = static_cast(pSource->x); + V.vector4_f32[1] = static_cast(pSource->y); + V.vector4_f32[2] = static_cast(pSource->z); + V.vector4_f32[3] = 0.f; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t x = vld1_u32(reinterpret_cast(pSource)); + uint32x2_t zero = vdup_n_u32(0); + uint32x2_t y = vld1_lane_u32(reinterpret_cast(pSource) + 2, zero, 0); + uint32x4_t v = vcombine_u32(x, y); + return vcvtq_f32_u32(v); +#elif defined(_XM_SSE_INTRINSICS_) + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pSource))); + __m128 z = _mm_load_ss(reinterpret_cast(&pSource->z)); + __m128 V = _mm_movelh_ps(xy, z); + // For the values that are higher than 0x7FFFFFFF, a fixup is needed + // Determine which ones need the fix. + XMVECTOR vMask = _mm_and_ps(V, g_XMNegativeZero); + // Force all values positive + XMVECTOR vResult = _mm_xor_ps(V, vMask); + // Convert to floats + vResult = _mm_cvtepi32_ps(_mm_castps_si128(vResult)); + // Convert 0x80000000 -> 0xFFFFFFFF + __m128i iMask = _mm_srai_epi32(_mm_castps_si128(vMask), 31); + // For only the ones that are too big, add the fixup + vMask = _mm_and_ps(_mm_castsi128_ps(iMask), g_XMFixUnsigned); + vResult = _mm_add_ps(vResult, vMask); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadInt4(const uint32_t* pSource) noexcept +{ + assert(pSource); + +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_u32[0] = pSource[0]; + V.vector4_u32[1] = pSource[1]; + V.vector4_u32[2] = pSource[2]; + V.vector4_u32[3] = pSource[3]; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vld1q_u32(pSource)); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_loadu_si128(reinterpret_cast(pSource)); + return _mm_castsi128_ps(V); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadInt4A(const uint32_t* pSource) noexcept +{ + assert(pSource); + assert((reinterpret_cast(pSource) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_u32[0] = pSource[0]; + V.vector4_u32[1] = pSource[1]; + V.vector4_u32[2] = pSource[2]; + V.vector4_u32[3] = pSource[3]; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + return vld1q_u32_ex(pSource, 128); +#else + return vreinterpretq_f32_u32(vld1q_u32(pSource)); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_load_si128(reinterpret_cast(pSource)); + return _mm_castsi128_ps(V); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadFloat4(const XMFLOAT4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = pSource->x; + V.vector4_f32[1] = pSource->y; + V.vector4_f32[2] = pSource->z; + V.vector4_f32[3] = pSource->w; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vld1q_f32(reinterpret_cast(pSource)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_loadu_ps(&pSource->x); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadFloat4A(const XMFLOAT4A* pSource) noexcept +{ + assert(pSource); + assert((reinterpret_cast(pSource) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = pSource->x; + V.vector4_f32[1] = pSource->y; + V.vector4_f32[2] = pSource->z; + V.vector4_f32[3] = pSource->w; + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + return vld1q_f32_ex(reinterpret_cast(pSource), 128); +#else + return vld1q_f32(reinterpret_cast(pSource)); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_load_ps(&pSource->x); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadSInt4(const XMINT4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR V; + V.vector4_f32[0] = static_cast(pSource->x); + V.vector4_f32[1] = static_cast(pSource->y); + V.vector4_f32[2] = static_cast(pSource->z); + V.vector4_f32[3] = static_cast(pSource->w); + return V; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int32x4_t v = vld1q_s32(reinterpret_cast(pSource)); + return vcvtq_f32_s32(v); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_loadu_si128(reinterpret_cast(pSource)); + return _mm_cvtepi32_ps(V); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUInt4(const XMUINT4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR V; + V.vector4_f32[0] = static_cast(pSource->x); + V.vector4_f32[1] = static_cast(pSource->y); + V.vector4_f32[2] = static_cast(pSource->z); + V.vector4_f32[3] = static_cast(pSource->w); + return V; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t v = vld1q_u32(reinterpret_cast(pSource)); + return vcvtq_f32_u32(v); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_loadu_si128(reinterpret_cast(pSource)); + // For the values that are higher than 0x7FFFFFFF, a fixup is needed + // Determine which ones need the fix. + XMVECTOR vMask = _mm_and_ps(_mm_castsi128_ps(V), g_XMNegativeZero); + // Force all values positive + XMVECTOR vResult = _mm_xor_ps(_mm_castsi128_ps(V), vMask); + // Convert to floats + vResult = _mm_cvtepi32_ps(_mm_castps_si128(vResult)); + // Convert 0x80000000 -> 0xFFFFFFFF + __m128i iMask = _mm_srai_epi32(_mm_castps_si128(vMask), 31); + // For only the ones that are too big, add the fixup + vMask = _mm_and_ps(_mm_castsi128_ps(iMask), g_XMFixUnsigned); + vResult = _mm_add_ps(vResult, vMask); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMMATRIX XM_CALLCONV XMLoadFloat3x3(const XMFLOAT3X3* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.r[0].vector4_f32[0] = pSource->m[0][0]; + M.r[0].vector4_f32[1] = pSource->m[0][1]; + M.r[0].vector4_f32[2] = pSource->m[0][2]; + M.r[0].vector4_f32[3] = 0.0f; + + M.r[1].vector4_f32[0] = pSource->m[1][0]; + M.r[1].vector4_f32[1] = pSource->m[1][1]; + M.r[1].vector4_f32[2] = pSource->m[1][2]; + M.r[1].vector4_f32[3] = 0.0f; + + M.r[2].vector4_f32[0] = pSource->m[2][0]; + M.r[2].vector4_f32[1] = pSource->m[2][1]; + M.r[2].vector4_f32[2] = pSource->m[2][2]; + M.r[2].vector4_f32[3] = 0.0f; + M.r[3].vector4_f32[0] = 0.0f; + M.r[3].vector4_f32[1] = 0.0f; + M.r[3].vector4_f32[2] = 0.0f; + M.r[3].vector4_f32[3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t v0 = vld1q_f32(&pSource->m[0][0]); + float32x4_t v1 = vld1q_f32(&pSource->m[1][1]); + float32x2_t v2 = vcreate_f32(static_cast(*reinterpret_cast(&pSource->m[2][2]))); + float32x4_t T = vextq_f32(v0, v1, 3); + + XMMATRIX M; + M.r[0] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(v0), g_XMMask3)); + M.r[1] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T), g_XMMask3)); + M.r[2] = vcombine_f32(vget_high_f32(v1), v2); + M.r[3] = g_XMIdentityR3; + return M; +#elif defined(_XM_SSE_INTRINSICS_) + __m128 Z = _mm_setzero_ps(); + + __m128 V1 = _mm_loadu_ps(&pSource->m[0][0]); + __m128 V2 = _mm_loadu_ps(&pSource->m[1][1]); + __m128 V3 = _mm_load_ss(&pSource->m[2][2]); + + __m128 T1 = _mm_unpackhi_ps(V1, Z); + __m128 T2 = _mm_unpacklo_ps(V2, Z); + __m128 T3 = _mm_shuffle_ps(V3, T2, _MM_SHUFFLE(0, 1, 0, 0)); + __m128 T4 = _mm_movehl_ps(T2, T3); + __m128 T5 = _mm_movehl_ps(Z, T1); + + XMMATRIX M; + M.r[0] = _mm_movelh_ps(V1, T1); + M.r[1] = _mm_add_ps(T4, T5); + M.r[2] = _mm_shuffle_ps(V2, V3, _MM_SHUFFLE(1, 0, 3, 2)); + M.r[3] = g_XMIdentityR3; + return M; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMMATRIX XM_CALLCONV XMLoadFloat4x3(const XMFLOAT4X3* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.r[0].vector4_f32[0] = pSource->m[0][0]; + M.r[0].vector4_f32[1] = pSource->m[0][1]; + M.r[0].vector4_f32[2] = pSource->m[0][2]; + M.r[0].vector4_f32[3] = 0.0f; + + M.r[1].vector4_f32[0] = pSource->m[1][0]; + M.r[1].vector4_f32[1] = pSource->m[1][1]; + M.r[1].vector4_f32[2] = pSource->m[1][2]; + M.r[1].vector4_f32[3] = 0.0f; + + M.r[2].vector4_f32[0] = pSource->m[2][0]; + M.r[2].vector4_f32[1] = pSource->m[2][1]; + M.r[2].vector4_f32[2] = pSource->m[2][2]; + M.r[2].vector4_f32[3] = 0.0f; + + M.r[3].vector4_f32[0] = pSource->m[3][0]; + M.r[3].vector4_f32[1] = pSource->m[3][1]; + M.r[3].vector4_f32[2] = pSource->m[3][2]; + M.r[3].vector4_f32[3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t v0 = vld1q_f32(&pSource->m[0][0]); + float32x4_t v1 = vld1q_f32(&pSource->m[1][1]); + float32x4_t v2 = vld1q_f32(&pSource->m[2][2]); + + float32x4_t T1 = vextq_f32(v0, v1, 3); + float32x4_t T2 = vcombine_f32(vget_high_f32(v1), vget_low_f32(v2)); + float32x4_t T3 = vextq_f32(v2, v2, 1); + + XMMATRIX M; + M.r[0] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(v0), g_XMMask3)); + M.r[1] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T1), g_XMMask3)); + M.r[2] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T2), g_XMMask3)); + M.r[3] = vsetq_lane_f32(1.f, T3, 3); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + // Use unaligned load instructions to + // load the 12 floats + // vTemp1 = x1,y1,z1,x2 + XMVECTOR vTemp1 = _mm_loadu_ps(&pSource->m[0][0]); + // vTemp2 = y2,z2,x3,y3 + XMVECTOR vTemp2 = _mm_loadu_ps(&pSource->m[1][1]); + // vTemp4 = z3,x4,y4,z4 + XMVECTOR vTemp4 = _mm_loadu_ps(&pSource->m[2][2]); + // vTemp3 = x3,y3,z3,z3 + XMVECTOR vTemp3 = _mm_shuffle_ps(vTemp2, vTemp4, _MM_SHUFFLE(0, 0, 3, 2)); + // vTemp2 = y2,z2,x2,x2 + vTemp2 = _mm_shuffle_ps(vTemp2, vTemp1, _MM_SHUFFLE(3, 3, 1, 0)); + // vTemp2 = x2,y2,z2,z2 + vTemp2 = XM_PERMUTE_PS(vTemp2, _MM_SHUFFLE(1, 1, 0, 2)); + // vTemp1 = x1,y1,z1,0 + vTemp1 = _mm_and_ps(vTemp1, g_XMMask3); + // vTemp2 = x2,y2,z2,0 + vTemp2 = _mm_and_ps(vTemp2, g_XMMask3); + // vTemp3 = x3,y3,z3,0 + vTemp3 = _mm_and_ps(vTemp3, g_XMMask3); + // vTemp4i = x4,y4,z4,0 + __m128i vTemp4i = _mm_srli_si128(_mm_castps_si128(vTemp4), 32 / 8); + // vTemp4i = x4,y4,z4,1.0f + vTemp4i = _mm_or_si128(vTemp4i, g_XMIdentityR3); + XMMATRIX M(vTemp1, + vTemp2, + vTemp3, + _mm_castsi128_ps(vTemp4i)); + return M; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMMATRIX XM_CALLCONV XMLoadFloat4x3A(const XMFLOAT4X3A* pSource) noexcept +{ + assert(pSource); + assert((reinterpret_cast(pSource) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.r[0].vector4_f32[0] = pSource->m[0][0]; + M.r[0].vector4_f32[1] = pSource->m[0][1]; + M.r[0].vector4_f32[2] = pSource->m[0][2]; + M.r[0].vector4_f32[3] = 0.0f; + + M.r[1].vector4_f32[0] = pSource->m[1][0]; + M.r[1].vector4_f32[1] = pSource->m[1][1]; + M.r[1].vector4_f32[2] = pSource->m[1][2]; + M.r[1].vector4_f32[3] = 0.0f; + + M.r[2].vector4_f32[0] = pSource->m[2][0]; + M.r[2].vector4_f32[1] = pSource->m[2][1]; + M.r[2].vector4_f32[2] = pSource->m[2][2]; + M.r[2].vector4_f32[3] = 0.0f; + + M.r[3].vector4_f32[0] = pSource->m[3][0]; + M.r[3].vector4_f32[1] = pSource->m[3][1]; + M.r[3].vector4_f32[2] = pSource->m[3][2]; + M.r[3].vector4_f32[3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + float32x4_t v0 = vld1q_f32_ex(&pSource->m[0][0], 128); + float32x4_t v1 = vld1q_f32_ex(&pSource->m[1][1], 128); + float32x4_t v2 = vld1q_f32_ex(&pSource->m[2][2], 128); +#else + float32x4_t v0 = vld1q_f32(&pSource->m[0][0]); + float32x4_t v1 = vld1q_f32(&pSource->m[1][1]); + float32x4_t v2 = vld1q_f32(&pSource->m[2][2]); +#endif + + float32x4_t T1 = vextq_f32(v0, v1, 3); + float32x4_t T2 = vcombine_f32(vget_high_f32(v1), vget_low_f32(v2)); + float32x4_t T3 = vextq_f32(v2, v2, 1); + + XMMATRIX M; + M.r[0] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(v0), g_XMMask3)); + M.r[1] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T1), g_XMMask3)); + M.r[2] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T2), g_XMMask3)); + M.r[3] = vsetq_lane_f32(1.f, T3, 3); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + // Use aligned load instructions to + // load the 12 floats + // vTemp1 = x1,y1,z1,x2 + XMVECTOR vTemp1 = _mm_load_ps(&pSource->m[0][0]); + // vTemp2 = y2,z2,x3,y3 + XMVECTOR vTemp2 = _mm_load_ps(&pSource->m[1][1]); + // vTemp4 = z3,x4,y4,z4 + XMVECTOR vTemp4 = _mm_load_ps(&pSource->m[2][2]); + // vTemp3 = x3,y3,z3,z3 + XMVECTOR vTemp3 = _mm_shuffle_ps(vTemp2, vTemp4, _MM_SHUFFLE(0, 0, 3, 2)); + // vTemp2 = y2,z2,x2,x2 + vTemp2 = _mm_shuffle_ps(vTemp2, vTemp1, _MM_SHUFFLE(3, 3, 1, 0)); + // vTemp2 = x2,y2,z2,z2 + vTemp2 = XM_PERMUTE_PS(vTemp2, _MM_SHUFFLE(1, 1, 0, 2)); + // vTemp1 = x1,y1,z1,0 + vTemp1 = _mm_and_ps(vTemp1, g_XMMask3); + // vTemp2 = x2,y2,z2,0 + vTemp2 = _mm_and_ps(vTemp2, g_XMMask3); + // vTemp3 = x3,y3,z3,0 + vTemp3 = _mm_and_ps(vTemp3, g_XMMask3); + // vTemp4i = x4,y4,z4,0 + __m128i vTemp4i = _mm_srli_si128(_mm_castps_si128(vTemp4), 32 / 8); + // vTemp4i = x4,y4,z4,1.0f + vTemp4i = _mm_or_si128(vTemp4i, g_XMIdentityR3); + XMMATRIX M(vTemp1, + vTemp2, + vTemp3, + _mm_castsi128_ps(vTemp4i)); + return M; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMMATRIX XM_CALLCONV XMLoadFloat3x4(const XMFLOAT3X4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.r[0].vector4_f32[0] = pSource->m[0][0]; + M.r[0].vector4_f32[1] = pSource->m[1][0]; + M.r[0].vector4_f32[2] = pSource->m[2][0]; + M.r[0].vector4_f32[3] = 0.0f; + + M.r[1].vector4_f32[0] = pSource->m[0][1]; + M.r[1].vector4_f32[1] = pSource->m[1][1]; + M.r[1].vector4_f32[2] = pSource->m[2][1]; + M.r[1].vector4_f32[3] = 0.0f; + + M.r[2].vector4_f32[0] = pSource->m[0][2]; + M.r[2].vector4_f32[1] = pSource->m[1][2]; + M.r[2].vector4_f32[2] = pSource->m[2][2]; + M.r[2].vector4_f32[3] = 0.0f; + + M.r[3].vector4_f32[0] = pSource->m[0][3]; + M.r[3].vector4_f32[1] = pSource->m[1][3]; + M.r[3].vector4_f32[2] = pSource->m[2][3]; + M.r[3].vector4_f32[3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2x4_t vTemp0 = vld4_f32(&pSource->_11); + float32x4_t vTemp1 = vld1q_f32(&pSource->_31); + + float32x2_t l = vget_low_f32(vTemp1); + float32x4_t T0 = vcombine_f32(vTemp0.val[0], l); + float32x2_t rl = vrev64_f32(l); + float32x4_t T1 = vcombine_f32(vTemp0.val[1], rl); + + float32x2_t h = vget_high_f32(vTemp1); + float32x4_t T2 = vcombine_f32(vTemp0.val[2], h); + float32x2_t rh = vrev64_f32(h); + float32x4_t T3 = vcombine_f32(vTemp0.val[3], rh); + + XMMATRIX M = {}; + M.r[0] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T0), g_XMMask3)); + M.r[1] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T1), g_XMMask3)); + M.r[2] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T2), g_XMMask3)); + M.r[3] = vsetq_lane_f32(1.f, T3, 3); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + M.r[0] = _mm_loadu_ps(&pSource->_11); + M.r[1] = _mm_loadu_ps(&pSource->_21); + M.r[2] = _mm_loadu_ps(&pSource->_31); + M.r[3] = g_XMIdentityR3; + + // x.x,x.y,y.x,y.y + XMVECTOR vTemp1 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(1, 0, 1, 0)); + // x.z,x.w,y.z,y.w + XMVECTOR vTemp3 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(3, 2, 3, 2)); + // z.x,z.y,w.x,w.y + XMVECTOR vTemp2 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(1, 0, 1, 0)); + // z.z,z.w,w.z,w.w + XMVECTOR vTemp4 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(3, 2, 3, 2)); + XMMATRIX mResult; + + // x.x,y.x,z.x,w.x + mResult.r[0] = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(2, 0, 2, 0)); + // x.y,y.y,z.y,w.y + mResult.r[1] = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(3, 1, 3, 1)); + // x.z,y.z,z.z,w.z + mResult.r[2] = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(2, 0, 2, 0)); + // x.w,y.w,z.w,w.w + mResult.r[3] = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(3, 1, 3, 1)); + return mResult; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMMATRIX XM_CALLCONV XMLoadFloat3x4A(const XMFLOAT3X4A* pSource) noexcept +{ + assert(pSource); + assert((reinterpret_cast(pSource) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.r[0].vector4_f32[0] = pSource->m[0][0]; + M.r[0].vector4_f32[1] = pSource->m[1][0]; + M.r[0].vector4_f32[2] = pSource->m[2][0]; + M.r[0].vector4_f32[3] = 0.0f; + + M.r[1].vector4_f32[0] = pSource->m[0][1]; + M.r[1].vector4_f32[1] = pSource->m[1][1]; + M.r[1].vector4_f32[2] = pSource->m[2][1]; + M.r[1].vector4_f32[3] = 0.0f; + + M.r[2].vector4_f32[0] = pSource->m[0][2]; + M.r[2].vector4_f32[1] = pSource->m[1][2]; + M.r[2].vector4_f32[2] = pSource->m[2][2]; + M.r[2].vector4_f32[3] = 0.0f; + + M.r[3].vector4_f32[0] = pSource->m[0][3]; + M.r[3].vector4_f32[1] = pSource->m[1][3]; + M.r[3].vector4_f32[2] = pSource->m[2][3]; + M.r[3].vector4_f32[3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + float32x2x4_t vTemp0 = vld4_f32_ex(&pSource->_11, 128); + float32x4_t vTemp1 = vld1q_f32_ex(&pSource->_31, 128); +#else + float32x2x4_t vTemp0 = vld4_f32(&pSource->_11); + float32x4_t vTemp1 = vld1q_f32(&pSource->_31); +#endif + + float32x2_t l = vget_low_f32(vTemp1); + float32x4_t T0 = vcombine_f32(vTemp0.val[0], l); + float32x2_t rl = vrev64_f32(l); + float32x4_t T1 = vcombine_f32(vTemp0.val[1], rl); + + float32x2_t h = vget_high_f32(vTemp1); + float32x4_t T2 = vcombine_f32(vTemp0.val[2], h); + float32x2_t rh = vrev64_f32(h); + float32x4_t T3 = vcombine_f32(vTemp0.val[3], rh); + + XMMATRIX M = {}; + M.r[0] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T0), g_XMMask3)); + M.r[1] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T1), g_XMMask3)); + M.r[2] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T2), g_XMMask3)); + M.r[3] = vsetq_lane_f32(1.f, T3, 3); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + M.r[0] = _mm_load_ps(&pSource->_11); + M.r[1] = _mm_load_ps(&pSource->_21); + M.r[2] = _mm_load_ps(&pSource->_31); + M.r[3] = g_XMIdentityR3; + + // x.x,x.y,y.x,y.y + XMVECTOR vTemp1 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(1, 0, 1, 0)); + // x.z,x.w,y.z,y.w + XMVECTOR vTemp3 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(3, 2, 3, 2)); + // z.x,z.y,w.x,w.y + XMVECTOR vTemp2 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(1, 0, 1, 0)); + // z.z,z.w,w.z,w.w + XMVECTOR vTemp4 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(3, 2, 3, 2)); + XMMATRIX mResult; + + // x.x,y.x,z.x,w.x + mResult.r[0] = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(2, 0, 2, 0)); + // x.y,y.y,z.y,w.y + mResult.r[1] = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(3, 1, 3, 1)); + // x.z,y.z,z.z,w.z + mResult.r[2] = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(2, 0, 2, 0)); + // x.w,y.w,z.w,w.w + mResult.r[3] = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(3, 1, 3, 1)); + return mResult; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMMATRIX XM_CALLCONV XMLoadFloat4x4(const XMFLOAT4X4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.r[0].vector4_f32[0] = pSource->m[0][0]; + M.r[0].vector4_f32[1] = pSource->m[0][1]; + M.r[0].vector4_f32[2] = pSource->m[0][2]; + M.r[0].vector4_f32[3] = pSource->m[0][3]; + + M.r[1].vector4_f32[0] = pSource->m[1][0]; + M.r[1].vector4_f32[1] = pSource->m[1][1]; + M.r[1].vector4_f32[2] = pSource->m[1][2]; + M.r[1].vector4_f32[3] = pSource->m[1][3]; + + M.r[2].vector4_f32[0] = pSource->m[2][0]; + M.r[2].vector4_f32[1] = pSource->m[2][1]; + M.r[2].vector4_f32[2] = pSource->m[2][2]; + M.r[2].vector4_f32[3] = pSource->m[2][3]; + + M.r[3].vector4_f32[0] = pSource->m[3][0]; + M.r[3].vector4_f32[1] = pSource->m[3][1]; + M.r[3].vector4_f32[2] = pSource->m[3][2]; + M.r[3].vector4_f32[3] = pSource->m[3][3]; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMMATRIX M; + M.r[0] = vld1q_f32(reinterpret_cast(&pSource->_11)); + M.r[1] = vld1q_f32(reinterpret_cast(&pSource->_21)); + M.r[2] = vld1q_f32(reinterpret_cast(&pSource->_31)); + M.r[3] = vld1q_f32(reinterpret_cast(&pSource->_41)); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + M.r[0] = _mm_loadu_ps(&pSource->_11); + M.r[1] = _mm_loadu_ps(&pSource->_21); + M.r[2] = _mm_loadu_ps(&pSource->_31); + M.r[3] = _mm_loadu_ps(&pSource->_41); + return M; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMMATRIX XM_CALLCONV XMLoadFloat4x4A(const XMFLOAT4X4A* pSource) noexcept +{ + assert(pSource); + assert((reinterpret_cast(pSource) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.r[0].vector4_f32[0] = pSource->m[0][0]; + M.r[0].vector4_f32[1] = pSource->m[0][1]; + M.r[0].vector4_f32[2] = pSource->m[0][2]; + M.r[0].vector4_f32[3] = pSource->m[0][3]; + + M.r[1].vector4_f32[0] = pSource->m[1][0]; + M.r[1].vector4_f32[1] = pSource->m[1][1]; + M.r[1].vector4_f32[2] = pSource->m[1][2]; + M.r[1].vector4_f32[3] = pSource->m[1][3]; + + M.r[2].vector4_f32[0] = pSource->m[2][0]; + M.r[2].vector4_f32[1] = pSource->m[2][1]; + M.r[2].vector4_f32[2] = pSource->m[2][2]; + M.r[2].vector4_f32[3] = pSource->m[2][3]; + + M.r[3].vector4_f32[0] = pSource->m[3][0]; + M.r[3].vector4_f32[1] = pSource->m[3][1]; + M.r[3].vector4_f32[2] = pSource->m[3][2]; + M.r[3].vector4_f32[3] = pSource->m[3][3]; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMMATRIX M; +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + M.r[0] = vld1q_f32_ex(reinterpret_cast(&pSource->_11), 128); + M.r[1] = vld1q_f32_ex(reinterpret_cast(&pSource->_21), 128); + M.r[2] = vld1q_f32_ex(reinterpret_cast(&pSource->_31), 128); + M.r[3] = vld1q_f32_ex(reinterpret_cast(&pSource->_41), 128); +#else + M.r[0] = vld1q_f32(reinterpret_cast(&pSource->_11)); + M.r[1] = vld1q_f32(reinterpret_cast(&pSource->_21)); + M.r[2] = vld1q_f32(reinterpret_cast(&pSource->_31)); + M.r[3] = vld1q_f32(reinterpret_cast(&pSource->_41)); +#endif + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + M.r[0] = _mm_load_ps(&pSource->_11); + M.r[1] = _mm_load_ps(&pSource->_21); + M.r[2] = _mm_load_ps(&pSource->_31); + M.r[3] = _mm_load_ps(&pSource->_41); + return M; +#endif +} + +/**************************************************************************** + * + * Vector and matrix store operations + * + ****************************************************************************/ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreInt +( + uint32_t* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + *pDestination = XMVectorGetIntX(V); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_lane_u32(pDestination, *reinterpret_cast(&V), 0); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_ss(reinterpret_cast(pDestination), V); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat +( + float* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + *pDestination = XMVectorGetX(V); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_lane_f32(pDestination, V, 0); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_ss(pDestination, V); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreInt2 +( + uint32_t* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination[0] = V.vector4_u32[0]; + pDestination[1] = V.vector4_u32[1]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t VL = vget_low_u32(vreinterpretq_u32_f32(V)); + vst1_u32(pDestination, VL); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(V)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreInt2A +( + uint32_t* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + assert((reinterpret_cast(pDestination) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + pDestination[0] = V.vector4_u32[0]; + pDestination[1] = V.vector4_u32[1]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t VL = vget_low_u32(vreinterpretq_u32_f32(V)); +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + vst1_u32_ex(pDestination, VL, 64); +#else + vst1_u32(pDestination, VL); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(V)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat2 +( + XMFLOAT2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = V.vector4_f32[0]; + pDestination->y = V.vector4_f32[1]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + vst1_f32(reinterpret_cast(pDestination), VL); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(V)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat2A +( + XMFLOAT2A* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + assert((reinterpret_cast(pDestination) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = V.vector4_f32[0]; + pDestination->y = V.vector4_f32[1]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + vst1_f32_ex(reinterpret_cast(pDestination), VL, 64); +#else + vst1_f32(reinterpret_cast(pDestination), VL); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(V)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreSInt2 +( + XMINT2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = static_cast(V.vector4_f32[0]); + pDestination->y = static_cast(V.vector4_f32[1]); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t v = vget_low_f32(V); + int32x2_t iv = vcvt_s32_f32(v); + vst1_s32(reinterpret_cast(pDestination), iv); +#elif defined(_XM_SSE_INTRINSICS_) + // In case of positive overflow, detect it + XMVECTOR vOverflow = _mm_cmpgt_ps(V, g_XMMaxInt); + // Float to int conversion + __m128i vResulti = _mm_cvttps_epi32(V); + // If there was positive overflow, set to 0x7FFFFFFF + XMVECTOR vResult = _mm_and_ps(vOverflow, g_XMAbsMask); + vOverflow = _mm_andnot_ps(vOverflow, _mm_castsi128_ps(vResulti)); + vOverflow = _mm_or_ps(vOverflow, vResult); + // Write two ints + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(vOverflow)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUInt2 +( + XMUINT2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = static_cast(V.vector4_f32[0]); + pDestination->y = static_cast(V.vector4_f32[1]); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t v = vget_low_f32(V); + uint32x2_t iv = vcvt_u32_f32(v); + vst1_u32(reinterpret_cast(pDestination), iv); +#elif defined(_XM_SSE_INTRINSICS_) + // Clamp to >=0 + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + // Any numbers that are too big, set to 0xFFFFFFFFU + XMVECTOR vOverflow = _mm_cmpgt_ps(vResult, g_XMMaxUInt); + XMVECTOR vValue = g_XMUnsignedFix; + // Too large for a signed integer? + XMVECTOR vMask = _mm_cmpge_ps(vResult, vValue); + // Zero for number's lower than 0x80000000, 32768.0f*65536.0f otherwise + vValue = _mm_and_ps(vValue, vMask); + // Perform fixup only on numbers too large (Keeps low bit precision) + vResult = _mm_sub_ps(vResult, vValue); + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Convert from signed to unsigned pnly if greater than 0x80000000 + vMask = _mm_and_ps(vMask, g_XMNegativeZero); + vResult = _mm_xor_ps(_mm_castsi128_ps(vResulti), vMask); + // On those that are too large, set to 0xFFFFFFFF + vResult = _mm_or_ps(vResult, vOverflow); + // Write two uints + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(vResult)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreInt3 +( + uint32_t* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination[0] = V.vector4_u32[0]; + pDestination[1] = V.vector4_u32[1]; + pDestination[2] = V.vector4_u32[2]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t VL = vget_low_u32(vreinterpretq_u32_f32(V)); + vst1_u32(pDestination, VL); + vst1q_lane_u32(pDestination + 2, *reinterpret_cast(&V), 2); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(V)); + __m128 z = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + _mm_store_ss(reinterpret_cast(&pDestination[2]), z); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreInt3A +( + uint32_t* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + assert((reinterpret_cast(pDestination) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + pDestination[0] = V.vector4_u32[0]; + pDestination[1] = V.vector4_u32[1]; + pDestination[2] = V.vector4_u32[2]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t VL = vget_low_u32(vreinterpretq_u32_f32(V)); +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + vst1_u32_ex(pDestination, VL, 64); +#else + vst1_u32(pDestination, VL); +#endif + vst1q_lane_u32(pDestination + 2, *reinterpret_cast(&V), 2); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(V)); + __m128 z = _mm_movehl_ps(V, V); + _mm_store_ss(reinterpret_cast(&pDestination[2]), z); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat3 +( + XMFLOAT3* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = V.vector4_f32[0]; + pDestination->y = V.vector4_f32[1]; + pDestination->z = V.vector4_f32[2]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + vst1_f32(reinterpret_cast(pDestination), VL); + vst1q_lane_f32(reinterpret_cast(pDestination) + 2, V, 2); +#elif defined(_XM_SSE4_INTRINSICS_) + * reinterpret_cast(&pDestination->x) = _mm_extract_ps(V, 0); + *reinterpret_cast(&pDestination->y) = _mm_extract_ps(V, 1); + *reinterpret_cast(&pDestination->z) = _mm_extract_ps(V, 2); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(V)); + __m128 z = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + _mm_store_ss(&pDestination->z, z); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat3A +( + XMFLOAT3A* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + assert((reinterpret_cast(pDestination) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = V.vector4_f32[0]; + pDestination->y = V.vector4_f32[1]; + pDestination->z = V.vector4_f32[2]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + vst1_f32_ex(reinterpret_cast(pDestination), VL, 64); +#else + vst1_f32(reinterpret_cast(pDestination), VL); +#endif + vst1q_lane_f32(reinterpret_cast(pDestination) + 2, V, 2); +#elif defined(_XM_SSE4_INTRINSICS_) + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(V)); + *reinterpret_cast(&pDestination->z) = _mm_extract_ps(V, 2); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(V)); + __m128 z = _mm_movehl_ps(V, V); + _mm_store_ss(&pDestination->z, z); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreSInt3 +( + XMINT3* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = static_cast(V.vector4_f32[0]); + pDestination->y = static_cast(V.vector4_f32[1]); + pDestination->z = static_cast(V.vector4_f32[2]); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int32x4_t v = vcvtq_s32_f32(V); + int32x2_t vL = vget_low_s32(v); + vst1_s32(reinterpret_cast(pDestination), vL); + vst1q_lane_s32(reinterpret_cast(pDestination) + 2, v, 2); +#elif defined(_XM_SSE_INTRINSICS_) + // In case of positive overflow, detect it + XMVECTOR vOverflow = _mm_cmpgt_ps(V, g_XMMaxInt); + // Float to int conversion + __m128i vResulti = _mm_cvttps_epi32(V); + // If there was positive overflow, set to 0x7FFFFFFF + XMVECTOR vResult = _mm_and_ps(vOverflow, g_XMAbsMask); + vOverflow = _mm_andnot_ps(vOverflow, _mm_castsi128_ps(vResulti)); + vOverflow = _mm_or_ps(vOverflow, vResult); + // Write 3 uints + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(vOverflow)); + __m128 z = XM_PERMUTE_PS(vOverflow, _MM_SHUFFLE(2, 2, 2, 2)); + _mm_store_ss(reinterpret_cast(&pDestination->z), z); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUInt3 +( + XMUINT3* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = static_cast(V.vector4_f32[0]); + pDestination->y = static_cast(V.vector4_f32[1]); + pDestination->z = static_cast(V.vector4_f32[2]); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t v = vcvtq_u32_f32(V); + uint32x2_t vL = vget_low_u32(v); + vst1_u32(reinterpret_cast(pDestination), vL); + vst1q_lane_u32(reinterpret_cast(pDestination) + 2, v, 2); +#elif defined(_XM_SSE_INTRINSICS_) + // Clamp to >=0 + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + // Any numbers that are too big, set to 0xFFFFFFFFU + XMVECTOR vOverflow = _mm_cmpgt_ps(vResult, g_XMMaxUInt); + XMVECTOR vValue = g_XMUnsignedFix; + // Too large for a signed integer? + XMVECTOR vMask = _mm_cmpge_ps(vResult, vValue); + // Zero for number's lower than 0x80000000, 32768.0f*65536.0f otherwise + vValue = _mm_and_ps(vValue, vMask); + // Perform fixup only on numbers too large (Keeps low bit precision) + vResult = _mm_sub_ps(vResult, vValue); + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Convert from signed to unsigned pnly if greater than 0x80000000 + vMask = _mm_and_ps(vMask, g_XMNegativeZero); + vResult = _mm_xor_ps(_mm_castsi128_ps(vResulti), vMask); + // On those that are too large, set to 0xFFFFFFFF + vResult = _mm_or_ps(vResult, vOverflow); + // Write 3 uints + _mm_store_sd(reinterpret_cast(pDestination), _mm_castps_pd(vResult)); + __m128 z = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(2, 2, 2, 2)); + _mm_store_ss(reinterpret_cast(&pDestination->z), z); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreInt4 +( + uint32_t* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination[0] = V.vector4_u32[0]; + pDestination[1] = V.vector4_u32[1]; + pDestination[2] = V.vector4_u32[2]; + pDestination[3] = V.vector4_u32[3]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_u32(pDestination, vreinterpretq_u32_f32(V)); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_storeu_si128(reinterpret_cast<__m128i*>(pDestination), _mm_castps_si128(V)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreInt4A +( + uint32_t* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + assert((reinterpret_cast(pDestination) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + pDestination[0] = V.vector4_u32[0]; + pDestination[1] = V.vector4_u32[1]; + pDestination[2] = V.vector4_u32[2]; + pDestination[3] = V.vector4_u32[3]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + vst1q_u32_ex(pDestination, V, 128); +#else + vst1q_u32(pDestination, vreinterpretq_u32_f32(V)); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_si128(reinterpret_cast<__m128i*>(pDestination), _mm_castps_si128(V)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat4 +( + XMFLOAT4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = V.vector4_f32[0]; + pDestination->y = V.vector4_f32[1]; + pDestination->z = V.vector4_f32[2]; + pDestination->w = V.vector4_f32[3]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_f32(reinterpret_cast(pDestination), V); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_storeu_ps(&pDestination->x, V); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat4A +( + XMFLOAT4A* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + assert((reinterpret_cast(pDestination) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = V.vector4_f32[0]; + pDestination->y = V.vector4_f32[1]; + pDestination->z = V.vector4_f32[2]; + pDestination->w = V.vector4_f32[3]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + vst1q_f32_ex(reinterpret_cast(pDestination), V, 128); +#else + vst1q_f32(reinterpret_cast(pDestination), V); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_ps(&pDestination->x, V); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreSInt4 +( + XMINT4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = static_cast(V.vector4_f32[0]); + pDestination->y = static_cast(V.vector4_f32[1]); + pDestination->z = static_cast(V.vector4_f32[2]); + pDestination->w = static_cast(V.vector4_f32[3]); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int32x4_t v = vcvtq_s32_f32(V); + vst1q_s32(reinterpret_cast(pDestination), v); +#elif defined(_XM_SSE_INTRINSICS_) + // In case of positive overflow, detect it + XMVECTOR vOverflow = _mm_cmpgt_ps(V, g_XMMaxInt); + // Float to int conversion + __m128i vResulti = _mm_cvttps_epi32(V); + // If there was positive overflow, set to 0x7FFFFFFF + XMVECTOR vResult = _mm_and_ps(vOverflow, g_XMAbsMask); + vOverflow = _mm_andnot_ps(vOverflow, _mm_castsi128_ps(vResulti)); + vOverflow = _mm_or_ps(vOverflow, vResult); + _mm_storeu_si128(reinterpret_cast<__m128i*>(pDestination), _mm_castps_si128(vOverflow)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUInt4 +( + XMUINT4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + pDestination->x = static_cast(V.vector4_f32[0]); + pDestination->y = static_cast(V.vector4_f32[1]); + pDestination->z = static_cast(V.vector4_f32[2]); + pDestination->w = static_cast(V.vector4_f32[3]); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t v = vcvtq_u32_f32(V); + vst1q_u32(reinterpret_cast(pDestination), v); +#elif defined(_XM_SSE_INTRINSICS_) + // Clamp to >=0 + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + // Any numbers that are too big, set to 0xFFFFFFFFU + XMVECTOR vOverflow = _mm_cmpgt_ps(vResult, g_XMMaxUInt); + XMVECTOR vValue = g_XMUnsignedFix; + // Too large for a signed integer? + XMVECTOR vMask = _mm_cmpge_ps(vResult, vValue); + // Zero for number's lower than 0x80000000, 32768.0f*65536.0f otherwise + vValue = _mm_and_ps(vValue, vMask); + // Perform fixup only on numbers too large (Keeps low bit precision) + vResult = _mm_sub_ps(vResult, vValue); + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Convert from signed to unsigned pnly if greater than 0x80000000 + vMask = _mm_and_ps(vMask, g_XMNegativeZero); + vResult = _mm_xor_ps(_mm_castsi128_ps(vResulti), vMask); + // On those that are too large, set to 0xFFFFFFFF + vResult = _mm_or_ps(vResult, vOverflow); + _mm_storeu_si128(reinterpret_cast<__m128i*>(pDestination), _mm_castps_si128(vResult)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat3x3 +( + XMFLOAT3X3* pDestination, + FXMMATRIX M +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + pDestination->m[0][0] = M.r[0].vector4_f32[0]; + pDestination->m[0][1] = M.r[0].vector4_f32[1]; + pDestination->m[0][2] = M.r[0].vector4_f32[2]; + + pDestination->m[1][0] = M.r[1].vector4_f32[0]; + pDestination->m[1][1] = M.r[1].vector4_f32[1]; + pDestination->m[1][2] = M.r[1].vector4_f32[2]; + + pDestination->m[2][0] = M.r[2].vector4_f32[0]; + pDestination->m[2][1] = M.r[2].vector4_f32[1]; + pDestination->m[2][2] = M.r[2].vector4_f32[2]; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t T1 = vextq_f32(M.r[0], M.r[1], 1); + float32x4_t T2 = vbslq_f32(g_XMMask3, M.r[0], T1); + vst1q_f32(&pDestination->m[0][0], T2); + + T1 = vextq_f32(M.r[1], M.r[1], 1); + T2 = vcombine_f32(vget_low_f32(T1), vget_low_f32(M.r[2])); + vst1q_f32(&pDestination->m[1][1], T2); + + vst1q_lane_f32(&pDestination->m[2][2], M.r[2], 2); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp1 = M.r[0]; + XMVECTOR vTemp2 = M.r[1]; + XMVECTOR vTemp3 = M.r[2]; + XMVECTOR vWork = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(0, 0, 2, 2)); + vTemp1 = _mm_shuffle_ps(vTemp1, vWork, _MM_SHUFFLE(2, 0, 1, 0)); + _mm_storeu_ps(&pDestination->m[0][0], vTemp1); + vTemp2 = _mm_shuffle_ps(vTemp2, vTemp3, _MM_SHUFFLE(1, 0, 2, 1)); + _mm_storeu_ps(&pDestination->m[1][1], vTemp2); + vTemp3 = XM_PERMUTE_PS(vTemp3, _MM_SHUFFLE(2, 2, 2, 2)); + _mm_store_ss(&pDestination->m[2][2], vTemp3); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat4x3 +( + XMFLOAT4X3* pDestination, + FXMMATRIX M +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + pDestination->m[0][0] = M.r[0].vector4_f32[0]; + pDestination->m[0][1] = M.r[0].vector4_f32[1]; + pDestination->m[0][2] = M.r[0].vector4_f32[2]; + + pDestination->m[1][0] = M.r[1].vector4_f32[0]; + pDestination->m[1][1] = M.r[1].vector4_f32[1]; + pDestination->m[1][2] = M.r[1].vector4_f32[2]; + + pDestination->m[2][0] = M.r[2].vector4_f32[0]; + pDestination->m[2][1] = M.r[2].vector4_f32[1]; + pDestination->m[2][2] = M.r[2].vector4_f32[2]; + + pDestination->m[3][0] = M.r[3].vector4_f32[0]; + pDestination->m[3][1] = M.r[3].vector4_f32[1]; + pDestination->m[3][2] = M.r[3].vector4_f32[2]; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t T1 = vextq_f32(M.r[0], M.r[1], 1); + float32x4_t T2 = vbslq_f32(g_XMMask3, M.r[0], T1); + vst1q_f32(&pDestination->m[0][0], T2); + + T1 = vextq_f32(M.r[1], M.r[1], 1); + T2 = vcombine_f32(vget_low_f32(T1), vget_low_f32(M.r[2])); + vst1q_f32(&pDestination->m[1][1], T2); + + T1 = vdupq_lane_f32(vget_high_f32(M.r[2]), 0); + T2 = vextq_f32(T1, M.r[3], 3); + vst1q_f32(&pDestination->m[2][2], T2); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp1 = M.r[0]; + XMVECTOR vTemp2 = M.r[1]; + XMVECTOR vTemp3 = M.r[2]; + XMVECTOR vTemp4 = M.r[3]; + XMVECTOR vTemp2x = _mm_shuffle_ps(vTemp2, vTemp3, _MM_SHUFFLE(1, 0, 2, 1)); + vTemp2 = _mm_shuffle_ps(vTemp2, vTemp1, _MM_SHUFFLE(2, 2, 0, 0)); + vTemp1 = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(0, 2, 1, 0)); + vTemp3 = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(0, 0, 2, 2)); + vTemp3 = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(2, 1, 2, 0)); + _mm_storeu_ps(&pDestination->m[0][0], vTemp1); + _mm_storeu_ps(&pDestination->m[1][1], vTemp2x); + _mm_storeu_ps(&pDestination->m[2][2], vTemp3); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat4x3A +( + XMFLOAT4X3A* pDestination, + FXMMATRIX M +) noexcept +{ + assert(pDestination); + assert((reinterpret_cast(pDestination) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + + pDestination->m[0][0] = M.r[0].vector4_f32[0]; + pDestination->m[0][1] = M.r[0].vector4_f32[1]; + pDestination->m[0][2] = M.r[0].vector4_f32[2]; + + pDestination->m[1][0] = M.r[1].vector4_f32[0]; + pDestination->m[1][1] = M.r[1].vector4_f32[1]; + pDestination->m[1][2] = M.r[1].vector4_f32[2]; + + pDestination->m[2][0] = M.r[2].vector4_f32[0]; + pDestination->m[2][1] = M.r[2].vector4_f32[1]; + pDestination->m[2][2] = M.r[2].vector4_f32[2]; + + pDestination->m[3][0] = M.r[3].vector4_f32[0]; + pDestination->m[3][1] = M.r[3].vector4_f32[1]; + pDestination->m[3][2] = M.r[3].vector4_f32[2]; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + float32x4_t T1 = vextq_f32(M.r[0], M.r[1], 1); + float32x4_t T2 = vbslq_f32(g_XMMask3, M.r[0], T1); + vst1q_f32_ex(&pDestination->m[0][0], T2, 128); + + T1 = vextq_f32(M.r[1], M.r[1], 1); + T2 = vcombine_f32(vget_low_f32(T1), vget_low_f32(M.r[2])); + vst1q_f32_ex(&pDestination->m[1][1], T2, 128); + + T1 = vdupq_lane_f32(vget_high_f32(M.r[2]), 0); + T2 = vextq_f32(T1, M.r[3], 3); + vst1q_f32_ex(&pDestination->m[2][2], T2, 128); +#else + float32x4_t T1 = vextq_f32(M.r[0], M.r[1], 1); + float32x4_t T2 = vbslq_f32(g_XMMask3, M.r[0], T1); + vst1q_f32(&pDestination->m[0][0], T2); + + T1 = vextq_f32(M.r[1], M.r[1], 1); + T2 = vcombine_f32(vget_low_f32(T1), vget_low_f32(M.r[2])); + vst1q_f32(&pDestination->m[1][1], T2); + + T1 = vdupq_lane_f32(vget_high_f32(M.r[2]), 0); + T2 = vextq_f32(T1, M.r[3], 3); + vst1q_f32(&pDestination->m[2][2], T2); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + // x1,y1,z1,w1 + XMVECTOR vTemp1 = M.r[0]; + // x2,y2,z2,w2 + XMVECTOR vTemp2 = M.r[1]; + // x3,y3,z3,w3 + XMVECTOR vTemp3 = M.r[2]; + // x4,y4,z4,w4 + XMVECTOR vTemp4 = M.r[3]; + // z1,z1,x2,y2 + XMVECTOR vTemp = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(1, 0, 2, 2)); + // y2,z2,x3,y3 (Final) + vTemp2 = _mm_shuffle_ps(vTemp2, vTemp3, _MM_SHUFFLE(1, 0, 2, 1)); + // x1,y1,z1,x2 (Final) + vTemp1 = _mm_shuffle_ps(vTemp1, vTemp, _MM_SHUFFLE(2, 0, 1, 0)); + // z3,z3,x4,x4 + vTemp3 = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(0, 0, 2, 2)); + // z3,x4,y4,z4 (Final) + vTemp3 = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(2, 1, 2, 0)); + // Store in 3 operations + _mm_store_ps(&pDestination->m[0][0], vTemp1); + _mm_store_ps(&pDestination->m[1][1], vTemp2); + _mm_store_ps(&pDestination->m[2][2], vTemp3); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat3x4 +( + XMFLOAT3X4* pDestination, + FXMMATRIX M +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + pDestination->m[0][0] = M.r[0].vector4_f32[0]; + pDestination->m[0][1] = M.r[1].vector4_f32[0]; + pDestination->m[0][2] = M.r[2].vector4_f32[0]; + pDestination->m[0][3] = M.r[3].vector4_f32[0]; + + pDestination->m[1][0] = M.r[0].vector4_f32[1]; + pDestination->m[1][1] = M.r[1].vector4_f32[1]; + pDestination->m[1][2] = M.r[2].vector4_f32[1]; + pDestination->m[1][3] = M.r[3].vector4_f32[1]; + + pDestination->m[2][0] = M.r[0].vector4_f32[2]; + pDestination->m[2][1] = M.r[1].vector4_f32[2]; + pDestination->m[2][2] = M.r[2].vector4_f32[2]; + pDestination->m[2][3] = M.r[3].vector4_f32[2]; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4x2_t P0 = vzipq_f32(M.r[0], M.r[2]); + float32x4x2_t P1 = vzipq_f32(M.r[1], M.r[3]); + + float32x4x2_t T0 = vzipq_f32(P0.val[0], P1.val[0]); + float32x4x2_t T1 = vzipq_f32(P0.val[1], P1.val[1]); + + vst1q_f32(&pDestination->m[0][0], T0.val[0]); + vst1q_f32(&pDestination->m[1][0], T0.val[1]); + vst1q_f32(&pDestination->m[2][0], T1.val[0]); +#elif defined(_XM_SSE_INTRINSICS_) + // x.x,x.y,y.x,y.y + XMVECTOR vTemp1 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(1, 0, 1, 0)); + // x.z,x.w,y.z,y.w + XMVECTOR vTemp3 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(3, 2, 3, 2)); + // z.x,z.y,w.x,w.y + XMVECTOR vTemp2 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(1, 0, 1, 0)); + // z.z,z.w,w.z,w.w + XMVECTOR vTemp4 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(3, 2, 3, 2)); + + // x.x,y.x,z.x,w.x + XMVECTOR r0 = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(2, 0, 2, 0)); + // x.y,y.y,z.y,w.y + XMVECTOR r1 = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(3, 1, 3, 1)); + // x.z,y.z,z.z,w.z + XMVECTOR r2 = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(2, 0, 2, 0)); + + _mm_storeu_ps(&pDestination->m[0][0], r0); + _mm_storeu_ps(&pDestination->m[1][0], r1); + _mm_storeu_ps(&pDestination->m[2][0], r2); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat3x4A +( + XMFLOAT3X4A* pDestination, + FXMMATRIX M +) noexcept +{ + assert(pDestination); + assert((reinterpret_cast(pDestination) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + + pDestination->m[0][0] = M.r[0].vector4_f32[0]; + pDestination->m[0][1] = M.r[1].vector4_f32[0]; + pDestination->m[0][2] = M.r[2].vector4_f32[0]; + pDestination->m[0][3] = M.r[3].vector4_f32[0]; + + pDestination->m[1][0] = M.r[0].vector4_f32[1]; + pDestination->m[1][1] = M.r[1].vector4_f32[1]; + pDestination->m[1][2] = M.r[2].vector4_f32[1]; + pDestination->m[1][3] = M.r[3].vector4_f32[1]; + + pDestination->m[2][0] = M.r[0].vector4_f32[2]; + pDestination->m[2][1] = M.r[1].vector4_f32[2]; + pDestination->m[2][2] = M.r[2].vector4_f32[2]; + pDestination->m[2][3] = M.r[3].vector4_f32[2]; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4x2_t P0 = vzipq_f32(M.r[0], M.r[2]); + float32x4x2_t P1 = vzipq_f32(M.r[1], M.r[3]); + + float32x4x2_t T0 = vzipq_f32(P0.val[0], P1.val[0]); + float32x4x2_t T1 = vzipq_f32(P0.val[1], P1.val[1]); + +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + vst1q_f32_ex(&pDestination->m[0][0], T0.val[0], 128); + vst1q_f32_ex(&pDestination->m[1][0], T0.val[1], 128); + vst1q_f32_ex(&pDestination->m[2][0], T1.val[0], 128); +#else + vst1q_f32(&pDestination->m[0][0], T0.val[0]); + vst1q_f32(&pDestination->m[1][0], T0.val[1]); + vst1q_f32(&pDestination->m[2][0], T1.val[0]); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + // x.x,x.y,y.x,y.y + XMVECTOR vTemp1 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(1, 0, 1, 0)); + // x.z,x.w,y.z,y.w + XMVECTOR vTemp3 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(3, 2, 3, 2)); + // z.x,z.y,w.x,w.y + XMVECTOR vTemp2 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(1, 0, 1, 0)); + // z.z,z.w,w.z,w.w + XMVECTOR vTemp4 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(3, 2, 3, 2)); + + // x.x,y.x,z.x,w.x + XMVECTOR r0 = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(2, 0, 2, 0)); + // x.y,y.y,z.y,w.y + XMVECTOR r1 = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(3, 1, 3, 1)); + // x.z,y.z,z.z,w.z + XMVECTOR r2 = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(2, 0, 2, 0)); + + _mm_store_ps(&pDestination->m[0][0], r0); + _mm_store_ps(&pDestination->m[1][0], r1); + _mm_store_ps(&pDestination->m[2][0], r2); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat4x4 +( + XMFLOAT4X4* pDestination, + FXMMATRIX M +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + pDestination->m[0][0] = M.r[0].vector4_f32[0]; + pDestination->m[0][1] = M.r[0].vector4_f32[1]; + pDestination->m[0][2] = M.r[0].vector4_f32[2]; + pDestination->m[0][3] = M.r[0].vector4_f32[3]; + + pDestination->m[1][0] = M.r[1].vector4_f32[0]; + pDestination->m[1][1] = M.r[1].vector4_f32[1]; + pDestination->m[1][2] = M.r[1].vector4_f32[2]; + pDestination->m[1][3] = M.r[1].vector4_f32[3]; + + pDestination->m[2][0] = M.r[2].vector4_f32[0]; + pDestination->m[2][1] = M.r[2].vector4_f32[1]; + pDestination->m[2][2] = M.r[2].vector4_f32[2]; + pDestination->m[2][3] = M.r[2].vector4_f32[3]; + + pDestination->m[3][0] = M.r[3].vector4_f32[0]; + pDestination->m[3][1] = M.r[3].vector4_f32[1]; + pDestination->m[3][2] = M.r[3].vector4_f32[2]; + pDestination->m[3][3] = M.r[3].vector4_f32[3]; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_f32(reinterpret_cast(&pDestination->_11), M.r[0]); + vst1q_f32(reinterpret_cast(&pDestination->_21), M.r[1]); + vst1q_f32(reinterpret_cast(&pDestination->_31), M.r[2]); + vst1q_f32(reinterpret_cast(&pDestination->_41), M.r[3]); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_storeu_ps(&pDestination->_11, M.r[0]); + _mm_storeu_ps(&pDestination->_21, M.r[1]); + _mm_storeu_ps(&pDestination->_31, M.r[2]); + _mm_storeu_ps(&pDestination->_41, M.r[3]); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat4x4A +( + XMFLOAT4X4A* pDestination, + FXMMATRIX M +) noexcept +{ + assert(pDestination); + assert((reinterpret_cast(pDestination) & 0xF) == 0); +#if defined(_XM_NO_INTRINSICS_) + + pDestination->m[0][0] = M.r[0].vector4_f32[0]; + pDestination->m[0][1] = M.r[0].vector4_f32[1]; + pDestination->m[0][2] = M.r[0].vector4_f32[2]; + pDestination->m[0][3] = M.r[0].vector4_f32[3]; + + pDestination->m[1][0] = M.r[1].vector4_f32[0]; + pDestination->m[1][1] = M.r[1].vector4_f32[1]; + pDestination->m[1][2] = M.r[1].vector4_f32[2]; + pDestination->m[1][3] = M.r[1].vector4_f32[3]; + + pDestination->m[2][0] = M.r[2].vector4_f32[0]; + pDestination->m[2][1] = M.r[2].vector4_f32[1]; + pDestination->m[2][2] = M.r[2].vector4_f32[2]; + pDestination->m[2][3] = M.r[2].vector4_f32[3]; + + pDestination->m[3][0] = M.r[3].vector4_f32[0]; + pDestination->m[3][1] = M.r[3].vector4_f32[1]; + pDestination->m[3][2] = M.r[3].vector4_f32[2]; + pDestination->m[3][3] = M.r[3].vector4_f32[3]; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + vst1q_f32_ex(reinterpret_cast(&pDestination->_11), M.r[0], 128); + vst1q_f32_ex(reinterpret_cast(&pDestination->_21), M.r[1], 128); + vst1q_f32_ex(reinterpret_cast(&pDestination->_31), M.r[2], 128); + vst1q_f32_ex(reinterpret_cast(&pDestination->_41), M.r[3], 128); +#else + vst1q_f32(reinterpret_cast(&pDestination->_11), M.r[0]); + vst1q_f32(reinterpret_cast(&pDestination->_21), M.r[1]); + vst1q_f32(reinterpret_cast(&pDestination->_31), M.r[2]); + vst1q_f32(reinterpret_cast(&pDestination->_41), M.r[3]); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_ps(&pDestination->_11, M.r[0]); + _mm_store_ps(&pDestination->_21, M.r[1]); + _mm_store_ps(&pDestination->_31, M.r[2]); + _mm_store_ps(&pDestination->_41, M.r[3]); +#endif +} + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathMatrix.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathMatrix.inl new file mode 100644 index 0000000000000000000000000000000000000000..34ff5bb5347738ad5743ce7fde7e57c73a00c102 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathMatrix.inl @@ -0,0 +1,3550 @@ +//------------------------------------------------------------------------------------- +// DirectXMathMatrix.inl -- SIMD C++ Math library +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// +// http://go.microsoft.com/fwlink/?LinkID=615560 +//------------------------------------------------------------------------------------- + +#pragma once + +/**************************************************************************** + * + * Matrix + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + // Comparison operations + //------------------------------------------------------------------------------ + + //------------------------------------------------------------------------------ + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(push) +#pragma float_control(precise, on) +#endif + +// Return true if any entry in the matrix is NaN +inline bool XM_CALLCONV XMMatrixIsNaN(FXMMATRIX M) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + size_t i = 16; + auto pWork = reinterpret_cast(&M.m[0][0]); + do { + // Fetch value into integer unit + uint32_t uTest = pWork[0]; + // Remove sign + uTest &= 0x7FFFFFFFU; + // NaN is 0x7F800001 through 0x7FFFFFFF inclusive + uTest -= 0x7F800001U; + if (uTest < 0x007FFFFFU) + { + break; // NaN found + } + ++pWork; // Next entry + } while (--i); + return (i != 0); // i == 0 if nothing matched +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Load in registers + float32x4_t vX = M.r[0]; + float32x4_t vY = M.r[1]; + float32x4_t vZ = M.r[2]; + float32x4_t vW = M.r[3]; + // Test themselves to check for NaN + uint32x4_t xmask = vmvnq_u32(vceqq_f32(vX, vX)); + uint32x4_t ymask = vmvnq_u32(vceqq_f32(vY, vY)); + uint32x4_t zmask = vmvnq_u32(vceqq_f32(vZ, vZ)); + uint32x4_t wmask = vmvnq_u32(vceqq_f32(vW, vW)); + // Or all the results + xmask = vorrq_u32(xmask, zmask); + ymask = vorrq_u32(ymask, wmask); + xmask = vorrq_u32(xmask, ymask); + // If any tested true, return true + uint8x8x2_t vTemp = vzip_u8( + vget_low_u8(vreinterpretq_u8_u32(xmask)), + vget_high_u8(vreinterpretq_u8_u32(xmask))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + return (r != 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Load in registers + XMVECTOR vX = M.r[0]; + XMVECTOR vY = M.r[1]; + XMVECTOR vZ = M.r[2]; + XMVECTOR vW = M.r[3]; + // Test themselves to check for NaN + vX = _mm_cmpneq_ps(vX, vX); + vY = _mm_cmpneq_ps(vY, vY); + vZ = _mm_cmpneq_ps(vZ, vZ); + vW = _mm_cmpneq_ps(vW, vW); + // Or all the results + vX = _mm_or_ps(vX, vZ); + vY = _mm_or_ps(vY, vW); + vX = _mm_or_ps(vX, vY); + // If any tested true, return true + return (_mm_movemask_ps(vX) != 0); +#else +#endif +} + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(pop) +#endif + +//------------------------------------------------------------------------------ + +// Return true if any entry in the matrix is +/-INF +inline bool XM_CALLCONV XMMatrixIsInfinite(FXMMATRIX M) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + size_t i = 16; + auto pWork = reinterpret_cast(&M.m[0][0]); + do { + // Fetch value into integer unit + uint32_t uTest = pWork[0]; + // Remove sign + uTest &= 0x7FFFFFFFU; + // INF is 0x7F800000 + if (uTest == 0x7F800000U) + { + break; // INF found + } + ++pWork; // Next entry + } while (--i); + return (i != 0); // i == 0 if nothing matched +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Load in registers + float32x4_t vX = M.r[0]; + float32x4_t vY = M.r[1]; + float32x4_t vZ = M.r[2]; + float32x4_t vW = M.r[3]; + // Mask off the sign bits + vX = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(vX), g_XMAbsMask)); + vY = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(vY), g_XMAbsMask)); + vZ = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(vZ), g_XMAbsMask)); + vW = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(vW), g_XMAbsMask)); + // Compare to infinity + uint32x4_t xmask = vceqq_f32(vX, g_XMInfinity); + uint32x4_t ymask = vceqq_f32(vY, g_XMInfinity); + uint32x4_t zmask = vceqq_f32(vZ, g_XMInfinity); + uint32x4_t wmask = vceqq_f32(vW, g_XMInfinity); + // Or the answers together + xmask = vorrq_u32(xmask, zmask); + ymask = vorrq_u32(ymask, wmask); + xmask = vorrq_u32(xmask, ymask); + // If any tested true, return true + uint8x8x2_t vTemp = vzip_u8( + vget_low_u8(vreinterpretq_u8_u32(xmask)), + vget_high_u8(vreinterpretq_u8_u32(xmask))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + return (r != 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Mask off the sign bits + XMVECTOR vTemp1 = _mm_and_ps(M.r[0], g_XMAbsMask); + XMVECTOR vTemp2 = _mm_and_ps(M.r[1], g_XMAbsMask); + XMVECTOR vTemp3 = _mm_and_ps(M.r[2], g_XMAbsMask); + XMVECTOR vTemp4 = _mm_and_ps(M.r[3], g_XMAbsMask); + // Compare to infinity + vTemp1 = _mm_cmpeq_ps(vTemp1, g_XMInfinity); + vTemp2 = _mm_cmpeq_ps(vTemp2, g_XMInfinity); + vTemp3 = _mm_cmpeq_ps(vTemp3, g_XMInfinity); + vTemp4 = _mm_cmpeq_ps(vTemp4, g_XMInfinity); + // Or the answers together + vTemp1 = _mm_or_ps(vTemp1, vTemp2); + vTemp3 = _mm_or_ps(vTemp3, vTemp4); + vTemp1 = _mm_or_ps(vTemp1, vTemp3); + // If any are infinity, the signs are true. + return (_mm_movemask_ps(vTemp1) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +// Return true if the XMMatrix is equal to identity +inline bool XM_CALLCONV XMMatrixIsIdentity(FXMMATRIX M) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + // Use the integer pipeline to reduce branching to a minimum + auto pWork = reinterpret_cast(&M.m[0][0]); + // Convert 1.0f to zero and or them together + uint32_t uOne = pWork[0] ^ 0x3F800000U; + // Or all the 0.0f entries together + uint32_t uZero = pWork[1]; + uZero |= pWork[2]; + uZero |= pWork[3]; + // 2nd row + uZero |= pWork[4]; + uOne |= pWork[5] ^ 0x3F800000U; + uZero |= pWork[6]; + uZero |= pWork[7]; + // 3rd row + uZero |= pWork[8]; + uZero |= pWork[9]; + uOne |= pWork[10] ^ 0x3F800000U; + uZero |= pWork[11]; + // 4th row + uZero |= pWork[12]; + uZero |= pWork[13]; + uZero |= pWork[14]; + uOne |= pWork[15] ^ 0x3F800000U; + // If all zero entries are zero, the uZero==0 + uZero &= 0x7FFFFFFF; // Allow -0.0f + // If all 1.0f entries are 1.0f, then uOne==0 + uOne |= uZero; + return (uOne == 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t xmask = vceqq_f32(M.r[0], g_XMIdentityR0); + uint32x4_t ymask = vceqq_f32(M.r[1], g_XMIdentityR1); + uint32x4_t zmask = vceqq_f32(M.r[2], g_XMIdentityR2); + uint32x4_t wmask = vceqq_f32(M.r[3], g_XMIdentityR3); + xmask = vandq_u32(xmask, zmask); + ymask = vandq_u32(ymask, wmask); + xmask = vandq_u32(xmask, ymask); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(xmask)), vget_high_u8(vreinterpretq_u8_u32(xmask))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + return (r == 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp1 = _mm_cmpeq_ps(M.r[0], g_XMIdentityR0); + XMVECTOR vTemp2 = _mm_cmpeq_ps(M.r[1], g_XMIdentityR1); + XMVECTOR vTemp3 = _mm_cmpeq_ps(M.r[2], g_XMIdentityR2); + XMVECTOR vTemp4 = _mm_cmpeq_ps(M.r[3], g_XMIdentityR3); + vTemp1 = _mm_and_ps(vTemp1, vTemp2); + vTemp3 = _mm_and_ps(vTemp3, vTemp4); + vTemp1 = _mm_and_ps(vTemp1, vTemp3); + return (_mm_movemask_ps(vTemp1) == 0x0f); +#endif +} + +//------------------------------------------------------------------------------ +// Computation operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +// Perform a 4x4 matrix multiply by a 4x4 matrix +inline XMMATRIX XM_CALLCONV XMMatrixMultiply +( + FXMMATRIX M1, + CXMMATRIX M2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMMATRIX mResult; + // Cache the invariants in registers + float x = M1.m[0][0]; + float y = M1.m[0][1]; + float z = M1.m[0][2]; + float w = M1.m[0][3]; + // Perform the operation on the first row + mResult.m[0][0] = (M2.m[0][0] * x) + (M2.m[1][0] * y) + (M2.m[2][0] * z) + (M2.m[3][0] * w); + mResult.m[0][1] = (M2.m[0][1] * x) + (M2.m[1][1] * y) + (M2.m[2][1] * z) + (M2.m[3][1] * w); + mResult.m[0][2] = (M2.m[0][2] * x) + (M2.m[1][2] * y) + (M2.m[2][2] * z) + (M2.m[3][2] * w); + mResult.m[0][3] = (M2.m[0][3] * x) + (M2.m[1][3] * y) + (M2.m[2][3] * z) + (M2.m[3][3] * w); + // Repeat for all the other rows + x = M1.m[1][0]; + y = M1.m[1][1]; + z = M1.m[1][2]; + w = M1.m[1][3]; + mResult.m[1][0] = (M2.m[0][0] * x) + (M2.m[1][0] * y) + (M2.m[2][0] * z) + (M2.m[3][0] * w); + mResult.m[1][1] = (M2.m[0][1] * x) + (M2.m[1][1] * y) + (M2.m[2][1] * z) + (M2.m[3][1] * w); + mResult.m[1][2] = (M2.m[0][2] * x) + (M2.m[1][2] * y) + (M2.m[2][2] * z) + (M2.m[3][2] * w); + mResult.m[1][3] = (M2.m[0][3] * x) + (M2.m[1][3] * y) + (M2.m[2][3] * z) + (M2.m[3][3] * w); + x = M1.m[2][0]; + y = M1.m[2][1]; + z = M1.m[2][2]; + w = M1.m[2][3]; + mResult.m[2][0] = (M2.m[0][0] * x) + (M2.m[1][0] * y) + (M2.m[2][0] * z) + (M2.m[3][0] * w); + mResult.m[2][1] = (M2.m[0][1] * x) + (M2.m[1][1] * y) + (M2.m[2][1] * z) + (M2.m[3][1] * w); + mResult.m[2][2] = (M2.m[0][2] * x) + (M2.m[1][2] * y) + (M2.m[2][2] * z) + (M2.m[3][2] * w); + mResult.m[2][3] = (M2.m[0][3] * x) + (M2.m[1][3] * y) + (M2.m[2][3] * z) + (M2.m[3][3] * w); + x = M1.m[3][0]; + y = M1.m[3][1]; + z = M1.m[3][2]; + w = M1.m[3][3]; + mResult.m[3][0] = (M2.m[0][0] * x) + (M2.m[1][0] * y) + (M2.m[2][0] * z) + (M2.m[3][0] * w); + mResult.m[3][1] = (M2.m[0][1] * x) + (M2.m[1][1] * y) + (M2.m[2][1] * z) + (M2.m[3][1] * w); + mResult.m[3][2] = (M2.m[0][2] * x) + (M2.m[1][2] * y) + (M2.m[2][2] * z) + (M2.m[3][2] * w); + mResult.m[3][3] = (M2.m[0][3] * x) + (M2.m[1][3] * y) + (M2.m[2][3] * z) + (M2.m[3][3] * w); + return mResult; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMMATRIX mResult; + float32x2_t VL = vget_low_f32(M1.r[0]); + float32x2_t VH = vget_high_f32(M1.r[0]); + // Perform the operation on the first row + float32x4_t vX = vmulq_lane_f32(M2.r[0], VL, 0); + float32x4_t vY = vmulq_lane_f32(M2.r[1], VL, 1); + float32x4_t vZ = vmlaq_lane_f32(vX, M2.r[2], VH, 0); + float32x4_t vW = vmlaq_lane_f32(vY, M2.r[3], VH, 1); + mResult.r[0] = vaddq_f32(vZ, vW); + // Repeat for the other 3 rows + VL = vget_low_f32(M1.r[1]); + VH = vget_high_f32(M1.r[1]); + vX = vmulq_lane_f32(M2.r[0], VL, 0); + vY = vmulq_lane_f32(M2.r[1], VL, 1); + vZ = vmlaq_lane_f32(vX, M2.r[2], VH, 0); + vW = vmlaq_lane_f32(vY, M2.r[3], VH, 1); + mResult.r[1] = vaddq_f32(vZ, vW); + VL = vget_low_f32(M1.r[2]); + VH = vget_high_f32(M1.r[2]); + vX = vmulq_lane_f32(M2.r[0], VL, 0); + vY = vmulq_lane_f32(M2.r[1], VL, 1); + vZ = vmlaq_lane_f32(vX, M2.r[2], VH, 0); + vW = vmlaq_lane_f32(vY, M2.r[3], VH, 1); + mResult.r[2] = vaddq_f32(vZ, vW); + VL = vget_low_f32(M1.r[3]); + VH = vget_high_f32(M1.r[3]); + vX = vmulq_lane_f32(M2.r[0], VL, 0); + vY = vmulq_lane_f32(M2.r[1], VL, 1); + vZ = vmlaq_lane_f32(vX, M2.r[2], VH, 0); + vW = vmlaq_lane_f32(vY, M2.r[3], VH, 1); + mResult.r[3] = vaddq_f32(vZ, vW); + return mResult; +#elif defined(_XM_AVX2_INTRINSICS_) + __m256 t0 = _mm256_castps128_ps256(M1.r[0]); + t0 = _mm256_insertf128_ps(t0, M1.r[1], 1); + __m256 t1 = _mm256_castps128_ps256(M1.r[2]); + t1 = _mm256_insertf128_ps(t1, M1.r[3], 1); + + __m256 u0 = _mm256_castps128_ps256(M2.r[0]); + u0 = _mm256_insertf128_ps(u0, M2.r[1], 1); + __m256 u1 = _mm256_castps128_ps256(M2.r[2]); + u1 = _mm256_insertf128_ps(u1, M2.r[3], 1); + + __m256 a0 = _mm256_shuffle_ps(t0, t0, _MM_SHUFFLE(0, 0, 0, 0)); + __m256 a1 = _mm256_shuffle_ps(t1, t1, _MM_SHUFFLE(0, 0, 0, 0)); + __m256 b0 = _mm256_permute2f128_ps(u0, u0, 0x00); + __m256 c0 = _mm256_mul_ps(a0, b0); + __m256 c1 = _mm256_mul_ps(a1, b0); + + a0 = _mm256_shuffle_ps(t0, t0, _MM_SHUFFLE(1, 1, 1, 1)); + a1 = _mm256_shuffle_ps(t1, t1, _MM_SHUFFLE(1, 1, 1, 1)); + b0 = _mm256_permute2f128_ps(u0, u0, 0x11); + __m256 c2 = _mm256_fmadd_ps(a0, b0, c0); + __m256 c3 = _mm256_fmadd_ps(a1, b0, c1); + + a0 = _mm256_shuffle_ps(t0, t0, _MM_SHUFFLE(2, 2, 2, 2)); + a1 = _mm256_shuffle_ps(t1, t1, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 b1 = _mm256_permute2f128_ps(u1, u1, 0x00); + __m256 c4 = _mm256_mul_ps(a0, b1); + __m256 c5 = _mm256_mul_ps(a1, b1); + + a0 = _mm256_shuffle_ps(t0, t0, _MM_SHUFFLE(3, 3, 3, 3)); + a1 = _mm256_shuffle_ps(t1, t1, _MM_SHUFFLE(3, 3, 3, 3)); + b1 = _mm256_permute2f128_ps(u1, u1, 0x11); + __m256 c6 = _mm256_fmadd_ps(a0, b1, c4); + __m256 c7 = _mm256_fmadd_ps(a1, b1, c5); + + t0 = _mm256_add_ps(c2, c6); + t1 = _mm256_add_ps(c3, c7); + + XMMATRIX mResult; + mResult.r[0] = _mm256_castps256_ps128(t0); + mResult.r[1] = _mm256_extractf128_ps(t0, 1); + mResult.r[2] = _mm256_castps256_ps128(t1); + mResult.r[3] = _mm256_extractf128_ps(t1, 1); + return mResult; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX mResult; + // Splat the component X,Y,Z then W +#if defined(_XM_AVX_INTRINSICS_) + XMVECTOR vX = _mm_broadcast_ss(reinterpret_cast(&M1.r[0]) + 0); + XMVECTOR vY = _mm_broadcast_ss(reinterpret_cast(&M1.r[0]) + 1); + XMVECTOR vZ = _mm_broadcast_ss(reinterpret_cast(&M1.r[0]) + 2); + XMVECTOR vW = _mm_broadcast_ss(reinterpret_cast(&M1.r[0]) + 3); +#else + // Use vW to hold the original row + XMVECTOR vW = M1.r[0]; + XMVECTOR vX = XM_PERMUTE_PS(vW, _MM_SHUFFLE(0, 0, 0, 0)); + XMVECTOR vY = XM_PERMUTE_PS(vW, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR vZ = XM_PERMUTE_PS(vW, _MM_SHUFFLE(2, 2, 2, 2)); + vW = XM_PERMUTE_PS(vW, _MM_SHUFFLE(3, 3, 3, 3)); +#endif + // Perform the operation on the first row + vX = _mm_mul_ps(vX, M2.r[0]); + vY = _mm_mul_ps(vY, M2.r[1]); + vZ = _mm_mul_ps(vZ, M2.r[2]); + vW = _mm_mul_ps(vW, M2.r[3]); + // Perform a binary add to reduce cumulative errors + vX = _mm_add_ps(vX, vZ); + vY = _mm_add_ps(vY, vW); + vX = _mm_add_ps(vX, vY); + mResult.r[0] = vX; + // Repeat for the other 3 rows +#if defined(_XM_AVX_INTRINSICS_) + vX = _mm_broadcast_ss(reinterpret_cast(&M1.r[1]) + 0); + vY = _mm_broadcast_ss(reinterpret_cast(&M1.r[1]) + 1); + vZ = _mm_broadcast_ss(reinterpret_cast(&M1.r[1]) + 2); + vW = _mm_broadcast_ss(reinterpret_cast(&M1.r[1]) + 3); +#else + vW = M1.r[1]; + vX = XM_PERMUTE_PS(vW, _MM_SHUFFLE(0, 0, 0, 0)); + vY = XM_PERMUTE_PS(vW, _MM_SHUFFLE(1, 1, 1, 1)); + vZ = XM_PERMUTE_PS(vW, _MM_SHUFFLE(2, 2, 2, 2)); + vW = XM_PERMUTE_PS(vW, _MM_SHUFFLE(3, 3, 3, 3)); +#endif + vX = _mm_mul_ps(vX, M2.r[0]); + vY = _mm_mul_ps(vY, M2.r[1]); + vZ = _mm_mul_ps(vZ, M2.r[2]); + vW = _mm_mul_ps(vW, M2.r[3]); + vX = _mm_add_ps(vX, vZ); + vY = _mm_add_ps(vY, vW); + vX = _mm_add_ps(vX, vY); + mResult.r[1] = vX; +#if defined(_XM_AVX_INTRINSICS_) + vX = _mm_broadcast_ss(reinterpret_cast(&M1.r[2]) + 0); + vY = _mm_broadcast_ss(reinterpret_cast(&M1.r[2]) + 1); + vZ = _mm_broadcast_ss(reinterpret_cast(&M1.r[2]) + 2); + vW = _mm_broadcast_ss(reinterpret_cast(&M1.r[2]) + 3); +#else + vW = M1.r[2]; + vX = XM_PERMUTE_PS(vW, _MM_SHUFFLE(0, 0, 0, 0)); + vY = XM_PERMUTE_PS(vW, _MM_SHUFFLE(1, 1, 1, 1)); + vZ = XM_PERMUTE_PS(vW, _MM_SHUFFLE(2, 2, 2, 2)); + vW = XM_PERMUTE_PS(vW, _MM_SHUFFLE(3, 3, 3, 3)); +#endif + vX = _mm_mul_ps(vX, M2.r[0]); + vY = _mm_mul_ps(vY, M2.r[1]); + vZ = _mm_mul_ps(vZ, M2.r[2]); + vW = _mm_mul_ps(vW, M2.r[3]); + vX = _mm_add_ps(vX, vZ); + vY = _mm_add_ps(vY, vW); + vX = _mm_add_ps(vX, vY); + mResult.r[2] = vX; +#if defined(_XM_AVX_INTRINSICS_) + vX = _mm_broadcast_ss(reinterpret_cast(&M1.r[3]) + 0); + vY = _mm_broadcast_ss(reinterpret_cast(&M1.r[3]) + 1); + vZ = _mm_broadcast_ss(reinterpret_cast(&M1.r[3]) + 2); + vW = _mm_broadcast_ss(reinterpret_cast(&M1.r[3]) + 3); +#else + vW = M1.r[3]; + vX = XM_PERMUTE_PS(vW, _MM_SHUFFLE(0, 0, 0, 0)); + vY = XM_PERMUTE_PS(vW, _MM_SHUFFLE(1, 1, 1, 1)); + vZ = XM_PERMUTE_PS(vW, _MM_SHUFFLE(2, 2, 2, 2)); + vW = XM_PERMUTE_PS(vW, _MM_SHUFFLE(3, 3, 3, 3)); +#endif + vX = _mm_mul_ps(vX, M2.r[0]); + vY = _mm_mul_ps(vY, M2.r[1]); + vZ = _mm_mul_ps(vZ, M2.r[2]); + vW = _mm_mul_ps(vW, M2.r[3]); + vX = _mm_add_ps(vX, vZ); + vY = _mm_add_ps(vY, vW); + vX = _mm_add_ps(vX, vY); + mResult.r[3] = vX; + return mResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixMultiplyTranspose +( + FXMMATRIX M1, + CXMMATRIX M2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMMATRIX mResult; + // Cache the invariants in registers + float x = M2.m[0][0]; + float y = M2.m[1][0]; + float z = M2.m[2][0]; + float w = M2.m[3][0]; + // Perform the operation on the first row + mResult.m[0][0] = (M1.m[0][0] * x) + (M1.m[0][1] * y) + (M1.m[0][2] * z) + (M1.m[0][3] * w); + mResult.m[0][1] = (M1.m[1][0] * x) + (M1.m[1][1] * y) + (M1.m[1][2] * z) + (M1.m[1][3] * w); + mResult.m[0][2] = (M1.m[2][0] * x) + (M1.m[2][1] * y) + (M1.m[2][2] * z) + (M1.m[2][3] * w); + mResult.m[0][3] = (M1.m[3][0] * x) + (M1.m[3][1] * y) + (M1.m[3][2] * z) + (M1.m[3][3] * w); + // Repeat for all the other rows + x = M2.m[0][1]; + y = M2.m[1][1]; + z = M2.m[2][1]; + w = M2.m[3][1]; + mResult.m[1][0] = (M1.m[0][0] * x) + (M1.m[0][1] * y) + (M1.m[0][2] * z) + (M1.m[0][3] * w); + mResult.m[1][1] = (M1.m[1][0] * x) + (M1.m[1][1] * y) + (M1.m[1][2] * z) + (M1.m[1][3] * w); + mResult.m[1][2] = (M1.m[2][0] * x) + (M1.m[2][1] * y) + (M1.m[2][2] * z) + (M1.m[2][3] * w); + mResult.m[1][3] = (M1.m[3][0] * x) + (M1.m[3][1] * y) + (M1.m[3][2] * z) + (M1.m[3][3] * w); + x = M2.m[0][2]; + y = M2.m[1][2]; + z = M2.m[2][2]; + w = M2.m[3][2]; + mResult.m[2][0] = (M1.m[0][0] * x) + (M1.m[0][1] * y) + (M1.m[0][2] * z) + (M1.m[0][3] * w); + mResult.m[2][1] = (M1.m[1][0] * x) + (M1.m[1][1] * y) + (M1.m[1][2] * z) + (M1.m[1][3] * w); + mResult.m[2][2] = (M1.m[2][0] * x) + (M1.m[2][1] * y) + (M1.m[2][2] * z) + (M1.m[2][3] * w); + mResult.m[2][3] = (M1.m[3][0] * x) + (M1.m[3][1] * y) + (M1.m[3][2] * z) + (M1.m[3][3] * w); + x = M2.m[0][3]; + y = M2.m[1][3]; + z = M2.m[2][3]; + w = M2.m[3][3]; + mResult.m[3][0] = (M1.m[0][0] * x) + (M1.m[0][1] * y) + (M1.m[0][2] * z) + (M1.m[0][3] * w); + mResult.m[3][1] = (M1.m[1][0] * x) + (M1.m[1][1] * y) + (M1.m[1][2] * z) + (M1.m[1][3] * w); + mResult.m[3][2] = (M1.m[2][0] * x) + (M1.m[2][1] * y) + (M1.m[2][2] * z) + (M1.m[2][3] * w); + mResult.m[3][3] = (M1.m[3][0] * x) + (M1.m[3][1] * y) + (M1.m[3][2] * z) + (M1.m[3][3] * w); + return mResult; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(M1.r[0]); + float32x2_t VH = vget_high_f32(M1.r[0]); + // Perform the operation on the first row + float32x4_t vX = vmulq_lane_f32(M2.r[0], VL, 0); + float32x4_t vY = vmulq_lane_f32(M2.r[1], VL, 1); + float32x4_t vZ = vmlaq_lane_f32(vX, M2.r[2], VH, 0); + float32x4_t vW = vmlaq_lane_f32(vY, M2.r[3], VH, 1); + float32x4_t r0 = vaddq_f32(vZ, vW); + // Repeat for the other 3 rows + VL = vget_low_f32(M1.r[1]); + VH = vget_high_f32(M1.r[1]); + vX = vmulq_lane_f32(M2.r[0], VL, 0); + vY = vmulq_lane_f32(M2.r[1], VL, 1); + vZ = vmlaq_lane_f32(vX, M2.r[2], VH, 0); + vW = vmlaq_lane_f32(vY, M2.r[3], VH, 1); + float32x4_t r1 = vaddq_f32(vZ, vW); + VL = vget_low_f32(M1.r[2]); + VH = vget_high_f32(M1.r[2]); + vX = vmulq_lane_f32(M2.r[0], VL, 0); + vY = vmulq_lane_f32(M2.r[1], VL, 1); + vZ = vmlaq_lane_f32(vX, M2.r[2], VH, 0); + vW = vmlaq_lane_f32(vY, M2.r[3], VH, 1); + float32x4_t r2 = vaddq_f32(vZ, vW); + VL = vget_low_f32(M1.r[3]); + VH = vget_high_f32(M1.r[3]); + vX = vmulq_lane_f32(M2.r[0], VL, 0); + vY = vmulq_lane_f32(M2.r[1], VL, 1); + vZ = vmlaq_lane_f32(vX, M2.r[2], VH, 0); + vW = vmlaq_lane_f32(vY, M2.r[3], VH, 1); + float32x4_t r3 = vaddq_f32(vZ, vW); + + // Transpose result + float32x4x2_t P0 = vzipq_f32(r0, r2); + float32x4x2_t P1 = vzipq_f32(r1, r3); + + float32x4x2_t T0 = vzipq_f32(P0.val[0], P1.val[0]); + float32x4x2_t T1 = vzipq_f32(P0.val[1], P1.val[1]); + + XMMATRIX mResult; + mResult.r[0] = T0.val[0]; + mResult.r[1] = T0.val[1]; + mResult.r[2] = T1.val[0]; + mResult.r[3] = T1.val[1]; + return mResult; +#elif defined(_XM_AVX2_INTRINSICS_) + __m256 t0 = _mm256_castps128_ps256(M1.r[0]); + t0 = _mm256_insertf128_ps(t0, M1.r[1], 1); + __m256 t1 = _mm256_castps128_ps256(M1.r[2]); + t1 = _mm256_insertf128_ps(t1, M1.r[3], 1); + + __m256 u0 = _mm256_castps128_ps256(M2.r[0]); + u0 = _mm256_insertf128_ps(u0, M2.r[1], 1); + __m256 u1 = _mm256_castps128_ps256(M2.r[2]); + u1 = _mm256_insertf128_ps(u1, M2.r[3], 1); + + __m256 a0 = _mm256_shuffle_ps(t0, t0, _MM_SHUFFLE(0, 0, 0, 0)); + __m256 a1 = _mm256_shuffle_ps(t1, t1, _MM_SHUFFLE(0, 0, 0, 0)); + __m256 b0 = _mm256_permute2f128_ps(u0, u0, 0x00); + __m256 c0 = _mm256_mul_ps(a0, b0); + __m256 c1 = _mm256_mul_ps(a1, b0); + + a0 = _mm256_shuffle_ps(t0, t0, _MM_SHUFFLE(1, 1, 1, 1)); + a1 = _mm256_shuffle_ps(t1, t1, _MM_SHUFFLE(1, 1, 1, 1)); + b0 = _mm256_permute2f128_ps(u0, u0, 0x11); + __m256 c2 = _mm256_fmadd_ps(a0, b0, c0); + __m256 c3 = _mm256_fmadd_ps(a1, b0, c1); + + a0 = _mm256_shuffle_ps(t0, t0, _MM_SHUFFLE(2, 2, 2, 2)); + a1 = _mm256_shuffle_ps(t1, t1, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 b1 = _mm256_permute2f128_ps(u1, u1, 0x00); + __m256 c4 = _mm256_mul_ps(a0, b1); + __m256 c5 = _mm256_mul_ps(a1, b1); + + a0 = _mm256_shuffle_ps(t0, t0, _MM_SHUFFLE(3, 3, 3, 3)); + a1 = _mm256_shuffle_ps(t1, t1, _MM_SHUFFLE(3, 3, 3, 3)); + b1 = _mm256_permute2f128_ps(u1, u1, 0x11); + __m256 c6 = _mm256_fmadd_ps(a0, b1, c4); + __m256 c7 = _mm256_fmadd_ps(a1, b1, c5); + + t0 = _mm256_add_ps(c2, c6); + t1 = _mm256_add_ps(c3, c7); + + // Transpose result + __m256 vTemp = _mm256_unpacklo_ps(t0, t1); + __m256 vTemp2 = _mm256_unpackhi_ps(t0, t1); + __m256 vTemp3 = _mm256_permute2f128_ps(vTemp, vTemp2, 0x20); + __m256 vTemp4 = _mm256_permute2f128_ps(vTemp, vTemp2, 0x31); + vTemp = _mm256_unpacklo_ps(vTemp3, vTemp4); + vTemp2 = _mm256_unpackhi_ps(vTemp3, vTemp4); + t0 = _mm256_permute2f128_ps(vTemp, vTemp2, 0x20); + t1 = _mm256_permute2f128_ps(vTemp, vTemp2, 0x31); + + XMMATRIX mResult; + mResult.r[0] = _mm256_castps256_ps128(t0); + mResult.r[1] = _mm256_extractf128_ps(t0, 1); + mResult.r[2] = _mm256_castps256_ps128(t1); + mResult.r[3] = _mm256_extractf128_ps(t1, 1); + return mResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Splat the component X,Y,Z then W +#if defined(_XM_AVX_INTRINSICS_) + XMVECTOR vX = _mm_broadcast_ss(reinterpret_cast(&M1.r[0]) + 0); + XMVECTOR vY = _mm_broadcast_ss(reinterpret_cast(&M1.r[0]) + 1); + XMVECTOR vZ = _mm_broadcast_ss(reinterpret_cast(&M1.r[0]) + 2); + XMVECTOR vW = _mm_broadcast_ss(reinterpret_cast(&M1.r[0]) + 3); +#else + // Use vW to hold the original row + XMVECTOR vW = M1.r[0]; + XMVECTOR vX = XM_PERMUTE_PS(vW, _MM_SHUFFLE(0, 0, 0, 0)); + XMVECTOR vY = XM_PERMUTE_PS(vW, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR vZ = XM_PERMUTE_PS(vW, _MM_SHUFFLE(2, 2, 2, 2)); + vW = XM_PERMUTE_PS(vW, _MM_SHUFFLE(3, 3, 3, 3)); +#endif + // Perform the operation on the first row + vX = _mm_mul_ps(vX, M2.r[0]); + vY = _mm_mul_ps(vY, M2.r[1]); + vZ = _mm_mul_ps(vZ, M2.r[2]); + vW = _mm_mul_ps(vW, M2.r[3]); + // Perform a binary add to reduce cumulative errors + vX = _mm_add_ps(vX, vZ); + vY = _mm_add_ps(vY, vW); + vX = _mm_add_ps(vX, vY); + XMVECTOR r0 = vX; + // Repeat for the other 3 rows +#if defined(_XM_AVX_INTRINSICS_) + vX = _mm_broadcast_ss(reinterpret_cast(&M1.r[1]) + 0); + vY = _mm_broadcast_ss(reinterpret_cast(&M1.r[1]) + 1); + vZ = _mm_broadcast_ss(reinterpret_cast(&M1.r[1]) + 2); + vW = _mm_broadcast_ss(reinterpret_cast(&M1.r[1]) + 3); +#else + vW = M1.r[1]; + vX = XM_PERMUTE_PS(vW, _MM_SHUFFLE(0, 0, 0, 0)); + vY = XM_PERMUTE_PS(vW, _MM_SHUFFLE(1, 1, 1, 1)); + vZ = XM_PERMUTE_PS(vW, _MM_SHUFFLE(2, 2, 2, 2)); + vW = XM_PERMUTE_PS(vW, _MM_SHUFFLE(3, 3, 3, 3)); +#endif + vX = _mm_mul_ps(vX, M2.r[0]); + vY = _mm_mul_ps(vY, M2.r[1]); + vZ = _mm_mul_ps(vZ, M2.r[2]); + vW = _mm_mul_ps(vW, M2.r[3]); + vX = _mm_add_ps(vX, vZ); + vY = _mm_add_ps(vY, vW); + vX = _mm_add_ps(vX, vY); + XMVECTOR r1 = vX; +#if defined(_XM_AVX_INTRINSICS_) + vX = _mm_broadcast_ss(reinterpret_cast(&M1.r[2]) + 0); + vY = _mm_broadcast_ss(reinterpret_cast(&M1.r[2]) + 1); + vZ = _mm_broadcast_ss(reinterpret_cast(&M1.r[2]) + 2); + vW = _mm_broadcast_ss(reinterpret_cast(&M1.r[2]) + 3); +#else + vW = M1.r[2]; + vX = XM_PERMUTE_PS(vW, _MM_SHUFFLE(0, 0, 0, 0)); + vY = XM_PERMUTE_PS(vW, _MM_SHUFFLE(1, 1, 1, 1)); + vZ = XM_PERMUTE_PS(vW, _MM_SHUFFLE(2, 2, 2, 2)); + vW = XM_PERMUTE_PS(vW, _MM_SHUFFLE(3, 3, 3, 3)); +#endif + vX = _mm_mul_ps(vX, M2.r[0]); + vY = _mm_mul_ps(vY, M2.r[1]); + vZ = _mm_mul_ps(vZ, M2.r[2]); + vW = _mm_mul_ps(vW, M2.r[3]); + vX = _mm_add_ps(vX, vZ); + vY = _mm_add_ps(vY, vW); + vX = _mm_add_ps(vX, vY); + XMVECTOR r2 = vX; +#if defined(_XM_AVX_INTRINSICS_) + vX = _mm_broadcast_ss(reinterpret_cast(&M1.r[3]) + 0); + vY = _mm_broadcast_ss(reinterpret_cast(&M1.r[3]) + 1); + vZ = _mm_broadcast_ss(reinterpret_cast(&M1.r[3]) + 2); + vW = _mm_broadcast_ss(reinterpret_cast(&M1.r[3]) + 3); +#else + vW = M1.r[3]; + vX = XM_PERMUTE_PS(vW, _MM_SHUFFLE(0, 0, 0, 0)); + vY = XM_PERMUTE_PS(vW, _MM_SHUFFLE(1, 1, 1, 1)); + vZ = XM_PERMUTE_PS(vW, _MM_SHUFFLE(2, 2, 2, 2)); + vW = XM_PERMUTE_PS(vW, _MM_SHUFFLE(3, 3, 3, 3)); +#endif + vX = _mm_mul_ps(vX, M2.r[0]); + vY = _mm_mul_ps(vY, M2.r[1]); + vZ = _mm_mul_ps(vZ, M2.r[2]); + vW = _mm_mul_ps(vW, M2.r[3]); + vX = _mm_add_ps(vX, vZ); + vY = _mm_add_ps(vY, vW); + vX = _mm_add_ps(vX, vY); + XMVECTOR r3 = vX; + + // Transpose result + // x.x,x.y,y.x,y.y + XMVECTOR vTemp1 = _mm_shuffle_ps(r0, r1, _MM_SHUFFLE(1, 0, 1, 0)); + // x.z,x.w,y.z,y.w + XMVECTOR vTemp3 = _mm_shuffle_ps(r0, r1, _MM_SHUFFLE(3, 2, 3, 2)); + // z.x,z.y,w.x,w.y + XMVECTOR vTemp2 = _mm_shuffle_ps(r2, r3, _MM_SHUFFLE(1, 0, 1, 0)); + // z.z,z.w,w.z,w.w + XMVECTOR vTemp4 = _mm_shuffle_ps(r2, r3, _MM_SHUFFLE(3, 2, 3, 2)); + + XMMATRIX mResult; + // x.x,y.x,z.x,w.x + mResult.r[0] = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(2, 0, 2, 0)); + // x.y,y.y,z.y,w.y + mResult.r[1] = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(3, 1, 3, 1)); + // x.z,y.z,z.z,w.z + mResult.r[2] = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(2, 0, 2, 0)); + // x.w,y.w,z.w,w.w + mResult.r[3] = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(3, 1, 3, 1)); + return mResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixTranspose(FXMMATRIX M) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + // Original matrix: + // + // m00m01m02m03 + // m10m11m12m13 + // m20m21m22m23 + // m30m31m32m33 + + XMMATRIX P; + P.r[0] = XMVectorMergeXY(M.r[0], M.r[2]); // m00m20m01m21 + P.r[1] = XMVectorMergeXY(M.r[1], M.r[3]); // m10m30m11m31 + P.r[2] = XMVectorMergeZW(M.r[0], M.r[2]); // m02m22m03m23 + P.r[3] = XMVectorMergeZW(M.r[1], M.r[3]); // m12m32m13m33 + + XMMATRIX MT; + MT.r[0] = XMVectorMergeXY(P.r[0], P.r[1]); // m00m10m20m30 + MT.r[1] = XMVectorMergeZW(P.r[0], P.r[1]); // m01m11m21m31 + MT.r[2] = XMVectorMergeXY(P.r[2], P.r[3]); // m02m12m22m32 + MT.r[3] = XMVectorMergeZW(P.r[2], P.r[3]); // m03m13m23m33 + return MT; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4x2_t P0 = vzipq_f32(M.r[0], M.r[2]); + float32x4x2_t P1 = vzipq_f32(M.r[1], M.r[3]); + + float32x4x2_t T0 = vzipq_f32(P0.val[0], P1.val[0]); + float32x4x2_t T1 = vzipq_f32(P0.val[1], P1.val[1]); + + XMMATRIX mResult; + mResult.r[0] = T0.val[0]; + mResult.r[1] = T0.val[1]; + mResult.r[2] = T1.val[0]; + mResult.r[3] = T1.val[1]; + return mResult; +#elif defined(_XM_AVX2_INTRINSICS_) + __m256 t0 = _mm256_castps128_ps256(M.r[0]); + t0 = _mm256_insertf128_ps(t0, M.r[1], 1); + __m256 t1 = _mm256_castps128_ps256(M.r[2]); + t1 = _mm256_insertf128_ps(t1, M.r[3], 1); + + __m256 vTemp = _mm256_unpacklo_ps(t0, t1); + __m256 vTemp2 = _mm256_unpackhi_ps(t0, t1); + __m256 vTemp3 = _mm256_permute2f128_ps(vTemp, vTemp2, 0x20); + __m256 vTemp4 = _mm256_permute2f128_ps(vTemp, vTemp2, 0x31); + vTemp = _mm256_unpacklo_ps(vTemp3, vTemp4); + vTemp2 = _mm256_unpackhi_ps(vTemp3, vTemp4); + t0 = _mm256_permute2f128_ps(vTemp, vTemp2, 0x20); + t1 = _mm256_permute2f128_ps(vTemp, vTemp2, 0x31); + + XMMATRIX mResult; + mResult.r[0] = _mm256_castps256_ps128(t0); + mResult.r[1] = _mm256_extractf128_ps(t0, 1); + mResult.r[2] = _mm256_castps256_ps128(t1); + mResult.r[3] = _mm256_extractf128_ps(t1, 1); + return mResult; +#elif defined(_XM_SSE_INTRINSICS_) + // x.x,x.y,y.x,y.y + XMVECTOR vTemp1 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(1, 0, 1, 0)); + // x.z,x.w,y.z,y.w + XMVECTOR vTemp3 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(3, 2, 3, 2)); + // z.x,z.y,w.x,w.y + XMVECTOR vTemp2 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(1, 0, 1, 0)); + // z.z,z.w,w.z,w.w + XMVECTOR vTemp4 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(3, 2, 3, 2)); + + XMMATRIX mResult; + // x.x,y.x,z.x,w.x + mResult.r[0] = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(2, 0, 2, 0)); + // x.y,y.y,z.y,w.y + mResult.r[1] = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(3, 1, 3, 1)); + // x.z,y.z,z.z,w.z + mResult.r[2] = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(2, 0, 2, 0)); + // x.w,y.w,z.w,w.w + mResult.r[3] = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(3, 1, 3, 1)); + return mResult; +#endif +} + +//------------------------------------------------------------------------------ +// Return the inverse and the determinant of a 4x4 matrix +_Use_decl_annotations_ +inline XMMATRIX XM_CALLCONV XMMatrixInverse +( + XMVECTOR* pDeterminant, + FXMMATRIX M +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) || defined(_XM_ARM_NEON_INTRINSICS_) + + XMMATRIX MT = XMMatrixTranspose(M); + + XMVECTOR V0[4], V1[4]; + V0[0] = XMVectorSwizzle(MT.r[2]); + V1[0] = XMVectorSwizzle(MT.r[3]); + V0[1] = XMVectorSwizzle(MT.r[0]); + V1[1] = XMVectorSwizzle(MT.r[1]); + V0[2] = XMVectorPermute(MT.r[2], MT.r[0]); + V1[2] = XMVectorPermute(MT.r[3], MT.r[1]); + + XMVECTOR D0 = XMVectorMultiply(V0[0], V1[0]); + XMVECTOR D1 = XMVectorMultiply(V0[1], V1[1]); + XMVECTOR D2 = XMVectorMultiply(V0[2], V1[2]); + + V0[0] = XMVectorSwizzle(MT.r[2]); + V1[0] = XMVectorSwizzle(MT.r[3]); + V0[1] = XMVectorSwizzle(MT.r[0]); + V1[1] = XMVectorSwizzle(MT.r[1]); + V0[2] = XMVectorPermute(MT.r[2], MT.r[0]); + V1[2] = XMVectorPermute(MT.r[3], MT.r[1]); + + D0 = XMVectorNegativeMultiplySubtract(V0[0], V1[0], D0); + D1 = XMVectorNegativeMultiplySubtract(V0[1], V1[1], D1); + D2 = XMVectorNegativeMultiplySubtract(V0[2], V1[2], D2); + + V0[0] = XMVectorSwizzle(MT.r[1]); + V1[0] = XMVectorPermute(D0, D2); + V0[1] = XMVectorSwizzle(MT.r[0]); + V1[1] = XMVectorPermute(D0, D2); + V0[2] = XMVectorSwizzle(MT.r[3]); + V1[2] = XMVectorPermute(D1, D2); + V0[3] = XMVectorSwizzle(MT.r[2]); + V1[3] = XMVectorPermute(D1, D2); + + XMVECTOR C0 = XMVectorMultiply(V0[0], V1[0]); + XMVECTOR C2 = XMVectorMultiply(V0[1], V1[1]); + XMVECTOR C4 = XMVectorMultiply(V0[2], V1[2]); + XMVECTOR C6 = XMVectorMultiply(V0[3], V1[3]); + + V0[0] = XMVectorSwizzle(MT.r[1]); + V1[0] = XMVectorPermute(D0, D2); + V0[1] = XMVectorSwizzle(MT.r[0]); + V1[1] = XMVectorPermute(D0, D2); + V0[2] = XMVectorSwizzle(MT.r[3]); + V1[2] = XMVectorPermute(D1, D2); + V0[3] = XMVectorSwizzle(MT.r[2]); + V1[3] = XMVectorPermute(D1, D2); + + C0 = XMVectorNegativeMultiplySubtract(V0[0], V1[0], C0); + C2 = XMVectorNegativeMultiplySubtract(V0[1], V1[1], C2); + C4 = XMVectorNegativeMultiplySubtract(V0[2], V1[2], C4); + C6 = XMVectorNegativeMultiplySubtract(V0[3], V1[3], C6); + + V0[0] = XMVectorSwizzle(MT.r[1]); + V1[0] = XMVectorPermute(D0, D2); + V0[1] = XMVectorSwizzle(MT.r[0]); + V1[1] = XMVectorPermute(D0, D2); + V0[2] = XMVectorSwizzle(MT.r[3]); + V1[2] = XMVectorPermute(D1, D2); + V0[3] = XMVectorSwizzle(MT.r[2]); + V1[3] = XMVectorPermute(D1, D2); + + XMVECTOR C1 = XMVectorNegativeMultiplySubtract(V0[0], V1[0], C0); + C0 = XMVectorMultiplyAdd(V0[0], V1[0], C0); + XMVECTOR C3 = XMVectorMultiplyAdd(V0[1], V1[1], C2); + C2 = XMVectorNegativeMultiplySubtract(V0[1], V1[1], C2); + XMVECTOR C5 = XMVectorNegativeMultiplySubtract(V0[2], V1[2], C4); + C4 = XMVectorMultiplyAdd(V0[2], V1[2], C4); + XMVECTOR C7 = XMVectorMultiplyAdd(V0[3], V1[3], C6); + C6 = XMVectorNegativeMultiplySubtract(V0[3], V1[3], C6); + + XMMATRIX R; + R.r[0] = XMVectorSelect(C0, C1, g_XMSelect0101.v); + R.r[1] = XMVectorSelect(C2, C3, g_XMSelect0101.v); + R.r[2] = XMVectorSelect(C4, C5, g_XMSelect0101.v); + R.r[3] = XMVectorSelect(C6, C7, g_XMSelect0101.v); + + XMVECTOR Determinant = XMVector4Dot(R.r[0], MT.r[0]); + + if (pDeterminant != nullptr) + *pDeterminant = Determinant; + + XMVECTOR Reciprocal = XMVectorReciprocal(Determinant); + + XMMATRIX Result; + Result.r[0] = XMVectorMultiply(R.r[0], Reciprocal); + Result.r[1] = XMVectorMultiply(R.r[1], Reciprocal); + Result.r[2] = XMVectorMultiply(R.r[2], Reciprocal); + Result.r[3] = XMVectorMultiply(R.r[3], Reciprocal); + return Result; + +#elif defined(_XM_SSE_INTRINSICS_) + // Transpose matrix + XMVECTOR vTemp1 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(1, 0, 1, 0)); + XMVECTOR vTemp3 = _mm_shuffle_ps(M.r[0], M.r[1], _MM_SHUFFLE(3, 2, 3, 2)); + XMVECTOR vTemp2 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(1, 0, 1, 0)); + XMVECTOR vTemp4 = _mm_shuffle_ps(M.r[2], M.r[3], _MM_SHUFFLE(3, 2, 3, 2)); + + XMMATRIX MT; + MT.r[0] = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(2, 0, 2, 0)); + MT.r[1] = _mm_shuffle_ps(vTemp1, vTemp2, _MM_SHUFFLE(3, 1, 3, 1)); + MT.r[2] = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(2, 0, 2, 0)); + MT.r[3] = _mm_shuffle_ps(vTemp3, vTemp4, _MM_SHUFFLE(3, 1, 3, 1)); + + XMVECTOR V00 = XM_PERMUTE_PS(MT.r[2], _MM_SHUFFLE(1, 1, 0, 0)); + XMVECTOR V10 = XM_PERMUTE_PS(MT.r[3], _MM_SHUFFLE(3, 2, 3, 2)); + XMVECTOR V01 = XM_PERMUTE_PS(MT.r[0], _MM_SHUFFLE(1, 1, 0, 0)); + XMVECTOR V11 = XM_PERMUTE_PS(MT.r[1], _MM_SHUFFLE(3, 2, 3, 2)); + XMVECTOR V02 = _mm_shuffle_ps(MT.r[2], MT.r[0], _MM_SHUFFLE(2, 0, 2, 0)); + XMVECTOR V12 = _mm_shuffle_ps(MT.r[3], MT.r[1], _MM_SHUFFLE(3, 1, 3, 1)); + + XMVECTOR D0 = _mm_mul_ps(V00, V10); + XMVECTOR D1 = _mm_mul_ps(V01, V11); + XMVECTOR D2 = _mm_mul_ps(V02, V12); + + V00 = XM_PERMUTE_PS(MT.r[2], _MM_SHUFFLE(3, 2, 3, 2)); + V10 = XM_PERMUTE_PS(MT.r[3], _MM_SHUFFLE(1, 1, 0, 0)); + V01 = XM_PERMUTE_PS(MT.r[0], _MM_SHUFFLE(3, 2, 3, 2)); + V11 = XM_PERMUTE_PS(MT.r[1], _MM_SHUFFLE(1, 1, 0, 0)); + V02 = _mm_shuffle_ps(MT.r[2], MT.r[0], _MM_SHUFFLE(3, 1, 3, 1)); + V12 = _mm_shuffle_ps(MT.r[3], MT.r[1], _MM_SHUFFLE(2, 0, 2, 0)); + + D0 = XM_FNMADD_PS(V00, V10, D0); + D1 = XM_FNMADD_PS(V01, V11, D1); + D2 = XM_FNMADD_PS(V02, V12, D2); + // V11 = D0Y,D0W,D2Y,D2Y + V11 = _mm_shuffle_ps(D0, D2, _MM_SHUFFLE(1, 1, 3, 1)); + V00 = XM_PERMUTE_PS(MT.r[1], _MM_SHUFFLE(1, 0, 2, 1)); + V10 = _mm_shuffle_ps(V11, D0, _MM_SHUFFLE(0, 3, 0, 2)); + V01 = XM_PERMUTE_PS(MT.r[0], _MM_SHUFFLE(0, 1, 0, 2)); + V11 = _mm_shuffle_ps(V11, D0, _MM_SHUFFLE(2, 1, 2, 1)); + // V13 = D1Y,D1W,D2W,D2W + XMVECTOR V13 = _mm_shuffle_ps(D1, D2, _MM_SHUFFLE(3, 3, 3, 1)); + V02 = XM_PERMUTE_PS(MT.r[3], _MM_SHUFFLE(1, 0, 2, 1)); + V12 = _mm_shuffle_ps(V13, D1, _MM_SHUFFLE(0, 3, 0, 2)); + XMVECTOR V03 = XM_PERMUTE_PS(MT.r[2], _MM_SHUFFLE(0, 1, 0, 2)); + V13 = _mm_shuffle_ps(V13, D1, _MM_SHUFFLE(2, 1, 2, 1)); + + XMVECTOR C0 = _mm_mul_ps(V00, V10); + XMVECTOR C2 = _mm_mul_ps(V01, V11); + XMVECTOR C4 = _mm_mul_ps(V02, V12); + XMVECTOR C6 = _mm_mul_ps(V03, V13); + + // V11 = D0X,D0Y,D2X,D2X + V11 = _mm_shuffle_ps(D0, D2, _MM_SHUFFLE(0, 0, 1, 0)); + V00 = XM_PERMUTE_PS(MT.r[1], _MM_SHUFFLE(2, 1, 3, 2)); + V10 = _mm_shuffle_ps(D0, V11, _MM_SHUFFLE(2, 1, 0, 3)); + V01 = XM_PERMUTE_PS(MT.r[0], _MM_SHUFFLE(1, 3, 2, 3)); + V11 = _mm_shuffle_ps(D0, V11, _MM_SHUFFLE(0, 2, 1, 2)); + // V13 = D1X,D1Y,D2Z,D2Z + V13 = _mm_shuffle_ps(D1, D2, _MM_SHUFFLE(2, 2, 1, 0)); + V02 = XM_PERMUTE_PS(MT.r[3], _MM_SHUFFLE(2, 1, 3, 2)); + V12 = _mm_shuffle_ps(D1, V13, _MM_SHUFFLE(2, 1, 0, 3)); + V03 = XM_PERMUTE_PS(MT.r[2], _MM_SHUFFLE(1, 3, 2, 3)); + V13 = _mm_shuffle_ps(D1, V13, _MM_SHUFFLE(0, 2, 1, 2)); + + C0 = XM_FNMADD_PS(V00, V10, C0); + C2 = XM_FNMADD_PS(V01, V11, C2); + C4 = XM_FNMADD_PS(V02, V12, C4); + C6 = XM_FNMADD_PS(V03, V13, C6); + + V00 = XM_PERMUTE_PS(MT.r[1], _MM_SHUFFLE(0, 3, 0, 3)); + // V10 = D0Z,D0Z,D2X,D2Y + V10 = _mm_shuffle_ps(D0, D2, _MM_SHUFFLE(1, 0, 2, 2)); + V10 = XM_PERMUTE_PS(V10, _MM_SHUFFLE(0, 2, 3, 0)); + V01 = XM_PERMUTE_PS(MT.r[0], _MM_SHUFFLE(2, 0, 3, 1)); + // V11 = D0X,D0W,D2X,D2Y + V11 = _mm_shuffle_ps(D0, D2, _MM_SHUFFLE(1, 0, 3, 0)); + V11 = XM_PERMUTE_PS(V11, _MM_SHUFFLE(2, 1, 0, 3)); + V02 = XM_PERMUTE_PS(MT.r[3], _MM_SHUFFLE(0, 3, 0, 3)); + // V12 = D1Z,D1Z,D2Z,D2W + V12 = _mm_shuffle_ps(D1, D2, _MM_SHUFFLE(3, 2, 2, 2)); + V12 = XM_PERMUTE_PS(V12, _MM_SHUFFLE(0, 2, 3, 0)); + V03 = XM_PERMUTE_PS(MT.r[2], _MM_SHUFFLE(2, 0, 3, 1)); + // V13 = D1X,D1W,D2Z,D2W + V13 = _mm_shuffle_ps(D1, D2, _MM_SHUFFLE(3, 2, 3, 0)); + V13 = XM_PERMUTE_PS(V13, _MM_SHUFFLE(2, 1, 0, 3)); + + V00 = _mm_mul_ps(V00, V10); + V01 = _mm_mul_ps(V01, V11); + V02 = _mm_mul_ps(V02, V12); + V03 = _mm_mul_ps(V03, V13); + XMVECTOR C1 = _mm_sub_ps(C0, V00); + C0 = _mm_add_ps(C0, V00); + XMVECTOR C3 = _mm_add_ps(C2, V01); + C2 = _mm_sub_ps(C2, V01); + XMVECTOR C5 = _mm_sub_ps(C4, V02); + C4 = _mm_add_ps(C4, V02); + XMVECTOR C7 = _mm_add_ps(C6, V03); + C6 = _mm_sub_ps(C6, V03); + + C0 = _mm_shuffle_ps(C0, C1, _MM_SHUFFLE(3, 1, 2, 0)); + C2 = _mm_shuffle_ps(C2, C3, _MM_SHUFFLE(3, 1, 2, 0)); + C4 = _mm_shuffle_ps(C4, C5, _MM_SHUFFLE(3, 1, 2, 0)); + C6 = _mm_shuffle_ps(C6, C7, _MM_SHUFFLE(3, 1, 2, 0)); + C0 = XM_PERMUTE_PS(C0, _MM_SHUFFLE(3, 1, 2, 0)); + C2 = XM_PERMUTE_PS(C2, _MM_SHUFFLE(3, 1, 2, 0)); + C4 = XM_PERMUTE_PS(C4, _MM_SHUFFLE(3, 1, 2, 0)); + C6 = XM_PERMUTE_PS(C6, _MM_SHUFFLE(3, 1, 2, 0)); + // Get the determinant + XMVECTOR vTemp = XMVector4Dot(C0, MT.r[0]); + if (pDeterminant != nullptr) + *pDeterminant = vTemp; + vTemp = _mm_div_ps(g_XMOne, vTemp); + XMMATRIX mResult; + mResult.r[0] = _mm_mul_ps(C0, vTemp); + mResult.r[1] = _mm_mul_ps(C2, vTemp); + mResult.r[2] = _mm_mul_ps(C4, vTemp); + mResult.r[3] = _mm_mul_ps(C6, vTemp); + return mResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixVectorTensorProduct +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + XMMATRIX mResult; + mResult.r[0] = XMVectorMultiply(XMVectorSwizzle<0, 0, 0, 0>(V1), V2); + mResult.r[1] = XMVectorMultiply(XMVectorSwizzle<1, 1, 1, 1>(V1), V2); + mResult.r[2] = XMVectorMultiply(XMVectorSwizzle<2, 2, 2, 2>(V1), V2); + mResult.r[3] = XMVectorMultiply(XMVectorSwizzle<3, 3, 3, 3>(V1), V2); + return mResult; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMMatrixDeterminant(FXMMATRIX M) noexcept +{ + static const XMVECTORF32 Sign = { { { 1.0f, -1.0f, 1.0f, -1.0f } } }; + + XMVECTOR V0 = XMVectorSwizzle(M.r[2]); + XMVECTOR V1 = XMVectorSwizzle(M.r[3]); + XMVECTOR V2 = XMVectorSwizzle(M.r[2]); + XMVECTOR V3 = XMVectorSwizzle(M.r[3]); + XMVECTOR V4 = XMVectorSwizzle(M.r[2]); + XMVECTOR V5 = XMVectorSwizzle(M.r[3]); + + XMVECTOR P0 = XMVectorMultiply(V0, V1); + XMVECTOR P1 = XMVectorMultiply(V2, V3); + XMVECTOR P2 = XMVectorMultiply(V4, V5); + + V0 = XMVectorSwizzle(M.r[2]); + V1 = XMVectorSwizzle(M.r[3]); + V2 = XMVectorSwizzle(M.r[2]); + V3 = XMVectorSwizzle(M.r[3]); + V4 = XMVectorSwizzle(M.r[2]); + V5 = XMVectorSwizzle(M.r[3]); + + P0 = XMVectorNegativeMultiplySubtract(V0, V1, P0); + P1 = XMVectorNegativeMultiplySubtract(V2, V3, P1); + P2 = XMVectorNegativeMultiplySubtract(V4, V5, P2); + + V0 = XMVectorSwizzle(M.r[1]); + V1 = XMVectorSwizzle(M.r[1]); + V2 = XMVectorSwizzle(M.r[1]); + + XMVECTOR S = XMVectorMultiply(M.r[0], Sign.v); + XMVECTOR R = XMVectorMultiply(V0, P0); + R = XMVectorNegativeMultiplySubtract(V1, P1, R); + R = XMVectorMultiplyAdd(V2, P2, R); + + return XMVector4Dot(S, R); +} + +#define XM3RANKDECOMPOSE(a, b, c, x, y, z) \ + if((x) < (y)) \ + { \ + if((y) < (z)) \ + { \ + (a) = 2; \ + (b) = 1; \ + (c) = 0; \ + } \ + else \ + { \ + (a) = 1; \ + \ + if((x) < (z)) \ + { \ + (b) = 2; \ + (c) = 0; \ + } \ + else \ + { \ + (b) = 0; \ + (c) = 2; \ + } \ + } \ + } \ + else \ + { \ + if((x) < (z)) \ + { \ + (a) = 2; \ + (b) = 0; \ + (c) = 1; \ + } \ + else \ + { \ + (a) = 0; \ + \ + if((y) < (z)) \ + { \ + (b) = 2; \ + (c) = 1; \ + } \ + else \ + { \ + (b) = 1; \ + (c) = 2; \ + } \ + } \ + } + +#define XM3_DECOMP_EPSILON 0.0001f + +_Use_decl_annotations_ +inline bool XM_CALLCONV XMMatrixDecompose +( + XMVECTOR* outScale, + XMVECTOR* outRotQuat, + XMVECTOR* outTrans, + FXMMATRIX M +) noexcept +{ + static const XMVECTOR* pvCanonicalBasis[3] = { + &g_XMIdentityR0.v, + &g_XMIdentityR1.v, + &g_XMIdentityR2.v + }; + + assert(outScale != nullptr); + assert(outRotQuat != nullptr); + assert(outTrans != nullptr); + + // Get the translation + outTrans[0] = M.r[3]; + + XMVECTOR* ppvBasis[3]; + XMMATRIX matTemp; + ppvBasis[0] = &matTemp.r[0]; + ppvBasis[1] = &matTemp.r[1]; + ppvBasis[2] = &matTemp.r[2]; + + matTemp.r[0] = M.r[0]; + matTemp.r[1] = M.r[1]; + matTemp.r[2] = M.r[2]; + matTemp.r[3] = g_XMIdentityR3.v; + + auto pfScales = reinterpret_cast(outScale); + + size_t a, b, c; + XMVectorGetXPtr(&pfScales[0], XMVector3Length(ppvBasis[0][0])); + XMVectorGetXPtr(&pfScales[1], XMVector3Length(ppvBasis[1][0])); + XMVectorGetXPtr(&pfScales[2], XMVector3Length(ppvBasis[2][0])); + pfScales[3] = 0.f; + + XM3RANKDECOMPOSE(a, b, c, pfScales[0], pfScales[1], pfScales[2]) + + if (pfScales[a] < XM3_DECOMP_EPSILON) + { + ppvBasis[a][0] = pvCanonicalBasis[a][0]; + } + ppvBasis[a][0] = XMVector3Normalize(ppvBasis[a][0]); + + if (pfScales[b] < XM3_DECOMP_EPSILON) + { + size_t aa, bb, cc; + float fAbsX, fAbsY, fAbsZ; + + fAbsX = fabsf(XMVectorGetX(ppvBasis[a][0])); + fAbsY = fabsf(XMVectorGetY(ppvBasis[a][0])); + fAbsZ = fabsf(XMVectorGetZ(ppvBasis[a][0])); + + XM3RANKDECOMPOSE(aa, bb, cc, fAbsX, fAbsY, fAbsZ) + + ppvBasis[b][0] = XMVector3Cross(ppvBasis[a][0], pvCanonicalBasis[cc][0]); + } + + ppvBasis[b][0] = XMVector3Normalize(ppvBasis[b][0]); + + if (pfScales[c] < XM3_DECOMP_EPSILON) + { + ppvBasis[c][0] = XMVector3Cross(ppvBasis[a][0], ppvBasis[b][0]); + } + + ppvBasis[c][0] = XMVector3Normalize(ppvBasis[c][0]); + + float fDet = XMVectorGetX(XMMatrixDeterminant(matTemp)); + + // use Kramer's rule to check for handedness of coordinate system + if (fDet < 0.0f) + { + // switch coordinate system by negating the scale and inverting the basis vector on the x-axis + pfScales[a] = -pfScales[a]; + ppvBasis[a][0] = XMVectorNegate(ppvBasis[a][0]); + + fDet = -fDet; + } + + fDet -= 1.0f; + fDet *= fDet; + + if (XM3_DECOMP_EPSILON < fDet) + { + // Non-SRT matrix encountered + return false; + } + + // generate the quaternion from the matrix + outRotQuat[0] = XMQuaternionRotationMatrix(matTemp); + return true; +} + +#undef XM3_DECOMP_EPSILON +#undef XM3RANKDECOMPOSE + +//------------------------------------------------------------------------------ +// Transformation operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixIdentity() noexcept +{ + XMMATRIX M; + M.r[0] = g_XMIdentityR0.v; + M.r[1] = g_XMIdentityR1.v; + M.r[2] = g_XMIdentityR2.v; + M.r[3] = g_XMIdentityR3.v; + return M; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixSet +( + float m00, float m01, float m02, float m03, + float m10, float m11, float m12, float m13, + float m20, float m21, float m22, float m23, + float m30, float m31, float m32, float m33 +) noexcept +{ + XMMATRIX M; +#if defined(_XM_NO_INTRINSICS_) + M.m[0][0] = m00; M.m[0][1] = m01; M.m[0][2] = m02; M.m[0][3] = m03; + M.m[1][0] = m10; M.m[1][1] = m11; M.m[1][2] = m12; M.m[1][3] = m13; + M.m[2][0] = m20; M.m[2][1] = m21; M.m[2][2] = m22; M.m[2][3] = m23; + M.m[3][0] = m30; M.m[3][1] = m31; M.m[3][2] = m32; M.m[3][3] = m33; +#else + M.r[0] = XMVectorSet(m00, m01, m02, m03); + M.r[1] = XMVectorSet(m10, m11, m12, m13); + M.r[2] = XMVectorSet(m20, m21, m22, m23); + M.r[3] = XMVectorSet(m30, m31, m32, m33); +#endif + return M; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixTranslation +( + float OffsetX, + float OffsetY, + float OffsetZ +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.m[0][0] = 1.0f; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = 1.0f; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = 1.0f; + M.m[2][3] = 0.0f; + + M.m[3][0] = OffsetX; + M.m[3][1] = OffsetY; + M.m[3][2] = OffsetZ; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_SSE_INTRINSICS_) || defined(_XM_ARM_NEON_INTRINSICS_) + XMMATRIX M; + M.r[0] = g_XMIdentityR0.v; + M.r[1] = g_XMIdentityR1.v; + M.r[2] = g_XMIdentityR2.v; + M.r[3] = XMVectorSet(OffsetX, OffsetY, OffsetZ, 1.f); + return M; +#endif +} + + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixTranslationFromVector(FXMVECTOR Offset) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.m[0][0] = 1.0f; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = 1.0f; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = 1.0f; + M.m[2][3] = 0.0f; + + M.m[3][0] = Offset.vector4_f32[0]; + M.m[3][1] = Offset.vector4_f32[1]; + M.m[3][2] = Offset.vector4_f32[2]; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_SSE_INTRINSICS_) || defined(_XM_ARM_NEON_INTRINSICS_) + XMMATRIX M; + M.r[0] = g_XMIdentityR0.v; + M.r[1] = g_XMIdentityR1.v; + M.r[2] = g_XMIdentityR2.v; + M.r[3] = XMVectorSelect(g_XMIdentityR3.v, Offset, g_XMSelect1110.v); + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixScaling +( + float ScaleX, + float ScaleY, + float ScaleZ +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.m[0][0] = ScaleX; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = ScaleY; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = ScaleZ; + M.m[2][3] = 0.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = 0.0f; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + const XMVECTOR Zero = vdupq_n_f32(0); + XMMATRIX M; + M.r[0] = vsetq_lane_f32(ScaleX, Zero, 0); + M.r[1] = vsetq_lane_f32(ScaleY, Zero, 1); + M.r[2] = vsetq_lane_f32(ScaleZ, Zero, 2); + M.r[3] = g_XMIdentityR3.v; + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + M.r[0] = _mm_set_ps(0, 0, 0, ScaleX); + M.r[1] = _mm_set_ps(0, 0, ScaleY, 0); + M.r[2] = _mm_set_ps(0, ScaleZ, 0, 0); + M.r[3] = g_XMIdentityR3.v; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixScalingFromVector(FXMVECTOR Scale) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMMATRIX M; + M.m[0][0] = Scale.vector4_f32[0]; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = Scale.vector4_f32[1]; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = Scale.vector4_f32[2]; + M.m[2][3] = 0.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = 0.0f; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMMATRIX M; + M.r[0] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(Scale), g_XMMaskX)); + M.r[1] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(Scale), g_XMMaskY)); + M.r[2] = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(Scale), g_XMMaskZ)); + M.r[3] = g_XMIdentityR3.v; + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + M.r[0] = _mm_and_ps(Scale, g_XMMaskX); + M.r[1] = _mm_and_ps(Scale, g_XMMaskY); + M.r[2] = _mm_and_ps(Scale, g_XMMaskZ); + M.r[3] = g_XMIdentityR3.v; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixRotationX(float Angle) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + float fSinAngle; + float fCosAngle; + XMScalarSinCos(&fSinAngle, &fCosAngle, Angle); + + XMMATRIX M; + M.m[0][0] = 1.0f; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = fCosAngle; + M.m[1][2] = fSinAngle; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = -fSinAngle; + M.m[2][2] = fCosAngle; + M.m[2][3] = 0.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = 0.0f; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float fSinAngle; + float fCosAngle; + XMScalarSinCos(&fSinAngle, &fCosAngle, Angle); + + const float32x4_t Zero = vdupq_n_f32(0); + + float32x4_t T1 = vsetq_lane_f32(fCosAngle, Zero, 1); + T1 = vsetq_lane_f32(fSinAngle, T1, 2); + + float32x4_t T2 = vsetq_lane_f32(-fSinAngle, Zero, 1); + T2 = vsetq_lane_f32(fCosAngle, T2, 2); + + XMMATRIX M; + M.r[0] = g_XMIdentityR0.v; + M.r[1] = T1; + M.r[2] = T2; + M.r[3] = g_XMIdentityR3.v; + return M; +#elif defined(_XM_SSE_INTRINSICS_) + float SinAngle; + float CosAngle; + XMScalarSinCos(&SinAngle, &CosAngle, Angle); + + XMVECTOR vSin = _mm_set_ss(SinAngle); + XMVECTOR vCos = _mm_set_ss(CosAngle); + // x = 0,y = cos,z = sin, w = 0 + vCos = _mm_shuffle_ps(vCos, vSin, _MM_SHUFFLE(3, 0, 0, 3)); + XMMATRIX M; + M.r[0] = g_XMIdentityR0; + M.r[1] = vCos; + // x = 0,y = sin,z = cos, w = 0 + vCos = XM_PERMUTE_PS(vCos, _MM_SHUFFLE(3, 1, 2, 0)); + // x = 0,y = -sin,z = cos, w = 0 + vCos = _mm_mul_ps(vCos, g_XMNegateY); + M.r[2] = vCos; + M.r[3] = g_XMIdentityR3; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixRotationY(float Angle) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + float fSinAngle; + float fCosAngle; + XMScalarSinCos(&fSinAngle, &fCosAngle, Angle); + + XMMATRIX M; + M.m[0][0] = fCosAngle; + M.m[0][1] = 0.0f; + M.m[0][2] = -fSinAngle; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = 1.0f; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = fSinAngle; + M.m[2][1] = 0.0f; + M.m[2][2] = fCosAngle; + M.m[2][3] = 0.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = 0.0f; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float fSinAngle; + float fCosAngle; + XMScalarSinCos(&fSinAngle, &fCosAngle, Angle); + + const float32x4_t Zero = vdupq_n_f32(0); + + float32x4_t T0 = vsetq_lane_f32(fCosAngle, Zero, 0); + T0 = vsetq_lane_f32(-fSinAngle, T0, 2); + + float32x4_t T2 = vsetq_lane_f32(fSinAngle, Zero, 0); + T2 = vsetq_lane_f32(fCosAngle, T2, 2); + + XMMATRIX M; + M.r[0] = T0; + M.r[1] = g_XMIdentityR1.v; + M.r[2] = T2; + M.r[3] = g_XMIdentityR3.v; + return M; +#elif defined(_XM_SSE_INTRINSICS_) + float SinAngle; + float CosAngle; + XMScalarSinCos(&SinAngle, &CosAngle, Angle); + + XMVECTOR vSin = _mm_set_ss(SinAngle); + XMVECTOR vCos = _mm_set_ss(CosAngle); + // x = sin,y = 0,z = cos, w = 0 + vSin = _mm_shuffle_ps(vSin, vCos, _MM_SHUFFLE(3, 0, 3, 0)); + XMMATRIX M; + M.r[2] = vSin; + M.r[1] = g_XMIdentityR1; + // x = cos,y = 0,z = sin, w = 0 + vSin = XM_PERMUTE_PS(vSin, _MM_SHUFFLE(3, 0, 1, 2)); + // x = cos,y = 0,z = -sin, w = 0 + vSin = _mm_mul_ps(vSin, g_XMNegateZ); + M.r[0] = vSin; + M.r[3] = g_XMIdentityR3; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixRotationZ(float Angle) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + float fSinAngle; + float fCosAngle; + XMScalarSinCos(&fSinAngle, &fCosAngle, Angle); + + XMMATRIX M; + M.m[0][0] = fCosAngle; + M.m[0][1] = fSinAngle; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = -fSinAngle; + M.m[1][1] = fCosAngle; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = 1.0f; + M.m[2][3] = 0.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = 0.0f; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float fSinAngle; + float fCosAngle; + XMScalarSinCos(&fSinAngle, &fCosAngle, Angle); + + const float32x4_t Zero = vdupq_n_f32(0); + + float32x4_t T0 = vsetq_lane_f32(fCosAngle, Zero, 0); + T0 = vsetq_lane_f32(fSinAngle, T0, 1); + + float32x4_t T1 = vsetq_lane_f32(-fSinAngle, Zero, 0); + T1 = vsetq_lane_f32(fCosAngle, T1, 1); + + XMMATRIX M; + M.r[0] = T0; + M.r[1] = T1; + M.r[2] = g_XMIdentityR2.v; + M.r[3] = g_XMIdentityR3.v; + return M; +#elif defined(_XM_SSE_INTRINSICS_) + float SinAngle; + float CosAngle; + XMScalarSinCos(&SinAngle, &CosAngle, Angle); + + XMVECTOR vSin = _mm_set_ss(SinAngle); + XMVECTOR vCos = _mm_set_ss(CosAngle); + // x = cos,y = sin,z = 0, w = 0 + vCos = _mm_unpacklo_ps(vCos, vSin); + XMMATRIX M; + M.r[0] = vCos; + // x = sin,y = cos,z = 0, w = 0 + vCos = XM_PERMUTE_PS(vCos, _MM_SHUFFLE(3, 2, 0, 1)); + // x = cos,y = -sin,z = 0, w = 0 + vCos = _mm_mul_ps(vCos, g_XMNegateX); + M.r[1] = vCos; + M.r[2] = g_XMIdentityR2; + M.r[3] = g_XMIdentityR3; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixRotationRollPitchYaw +( + float Pitch, + float Yaw, + float Roll +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float cp = cosf(Pitch); + float sp = sinf(Pitch); + + float cy = cosf(Yaw); + float sy = sinf(Yaw); + + float cr = cosf(Roll); + float sr = sinf(Roll); + + XMMATRIX M; + M.m[0][0] = cr * cy + sr * sp * sy; + M.m[0][1] = sr * cp; + M.m[0][2] = sr * sp * cy - cr * sy; + M.m[0][3] = 0.0f; + + M.m[1][0] = cr * sp * sy - sr * cy; + M.m[1][1] = cr * cp; + M.m[1][2] = sr * sy + cr * sp * cy; + M.m[1][3] = 0.0f; + + M.m[2][0] = cp * sy; + M.m[2][1] = -sp; + M.m[2][2] = cp * cy; + M.m[2][3] = 0.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = 0.0f; + M.m[3][3] = 1.0f; + return M; +#else + XMVECTOR Angles = XMVectorSet(Pitch, Yaw, Roll, 0.0f); + return XMMatrixRotationRollPitchYawFromVector(Angles); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixRotationRollPitchYawFromVector +( + FXMVECTOR Angles // +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float cp = cosf(Angles.vector4_f32[0]); + float sp = sinf(Angles.vector4_f32[0]); + + float cy = cosf(Angles.vector4_f32[1]); + float sy = sinf(Angles.vector4_f32[1]); + + float cr = cosf(Angles.vector4_f32[2]); + float sr = sinf(Angles.vector4_f32[2]); + + XMMATRIX M; + M.m[0][0] = cr * cy + sr * sp * sy; + M.m[0][1] = sr * cp; + M.m[0][2] = sr * sp * cy - cr * sy; + M.m[0][3] = 0.0f; + + M.m[1][0] = cr * sp * sy - sr * cy; + M.m[1][1] = cr * cp; + M.m[1][2] = sr * sy + cr * sp * cy; + M.m[1][3] = 0.0f; + + M.m[2][0] = cp * sy; + M.m[2][1] = -sp; + M.m[2][2] = cp * cy; + M.m[2][3] = 0.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = 0.0f; + M.m[3][3] = 1.0f; + return M; +#else + static const XMVECTORF32 Sign = { { { 1.0f, -1.0f, -1.0f, 1.0f } } }; + + XMVECTOR SinAngles, CosAngles; + XMVectorSinCos(&SinAngles, &CosAngles, Angles); + + XMVECTOR P0 = XMVectorPermute(SinAngles, CosAngles); + XMVECTOR Y0 = XMVectorPermute(SinAngles, CosAngles); + XMVECTOR P1 = XMVectorPermute(SinAngles, CosAngles); + XMVECTOR Y1 = XMVectorPermute(SinAngles, CosAngles); + XMVECTOR P2 = XMVectorPermute(SinAngles, CosAngles); + XMVECTOR P3 = XMVectorPermute(SinAngles, CosAngles); + XMVECTOR Y2 = XMVectorSplatX(SinAngles); + XMVECTOR NS = XMVectorNegate(SinAngles); + + XMVECTOR Q0 = XMVectorMultiply(P0, Y0); + XMVECTOR Q1 = XMVectorMultiply(P1, Sign.v); + Q1 = XMVectorMultiply(Q1, Y1); + XMVECTOR Q2 = XMVectorMultiply(P2, Y2); + Q2 = XMVectorMultiplyAdd(Q2, P3, Q1); + + XMVECTOR V0 = XMVectorPermute(Q0, Q2); + XMVECTOR V1 = XMVectorPermute(Q0, Q2); + XMVECTOR V2 = XMVectorPermute(Q0, NS); + + XMMATRIX M; + M.r[0] = XMVectorSelect(g_XMZero, V0, g_XMSelect1110.v); + M.r[1] = XMVectorSelect(g_XMZero, V1, g_XMSelect1110.v); + M.r[2] = XMVectorSelect(g_XMZero, V2, g_XMSelect1110.v); + M.r[3] = g_XMIdentityR3; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixRotationNormal +( + FXMVECTOR NormalAxis, + float Angle +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) || defined(_XM_ARM_NEON_INTRINSICS_) + + float fSinAngle; + float fCosAngle; + XMScalarSinCos(&fSinAngle, &fCosAngle, Angle); + + XMVECTOR A = XMVectorSet(fSinAngle, fCosAngle, 1.0f - fCosAngle, 0.0f); + + XMVECTOR C2 = XMVectorSplatZ(A); + XMVECTOR C1 = XMVectorSplatY(A); + XMVECTOR C0 = XMVectorSplatX(A); + + XMVECTOR N0 = XMVectorSwizzle(NormalAxis); + XMVECTOR N1 = XMVectorSwizzle(NormalAxis); + + XMVECTOR V0 = XMVectorMultiply(C2, N0); + V0 = XMVectorMultiply(V0, N1); + + XMVECTOR R0 = XMVectorMultiply(C2, NormalAxis); + R0 = XMVectorMultiplyAdd(R0, NormalAxis, C1); + + XMVECTOR R1 = XMVectorMultiplyAdd(C0, NormalAxis, V0); + XMVECTOR R2 = XMVectorNegativeMultiplySubtract(C0, NormalAxis, V0); + + V0 = XMVectorSelect(A, R0, g_XMSelect1110.v); + XMVECTOR V1 = XMVectorPermute(R1, R2); + XMVECTOR V2 = XMVectorPermute(R1, R2); + + XMMATRIX M; + M.r[0] = XMVectorPermute(V0, V1); + M.r[1] = XMVectorPermute(V0, V1); + M.r[2] = XMVectorPermute(V0, V2); + M.r[3] = g_XMIdentityR3.v; + return M; + +#elif defined(_XM_SSE_INTRINSICS_) + float fSinAngle; + float fCosAngle; + XMScalarSinCos(&fSinAngle, &fCosAngle, Angle); + + XMVECTOR C2 = _mm_set_ps1(1.0f - fCosAngle); + XMVECTOR C1 = _mm_set_ps1(fCosAngle); + XMVECTOR C0 = _mm_set_ps1(fSinAngle); + + XMVECTOR N0 = XM_PERMUTE_PS(NormalAxis, _MM_SHUFFLE(3, 0, 2, 1)); + XMVECTOR N1 = XM_PERMUTE_PS(NormalAxis, _MM_SHUFFLE(3, 1, 0, 2)); + + XMVECTOR V0 = _mm_mul_ps(C2, N0); + V0 = _mm_mul_ps(V0, N1); + + XMVECTOR R0 = _mm_mul_ps(C2, NormalAxis); + R0 = _mm_mul_ps(R0, NormalAxis); + R0 = _mm_add_ps(R0, C1); + + XMVECTOR R1 = _mm_mul_ps(C0, NormalAxis); + R1 = _mm_add_ps(R1, V0); + XMVECTOR R2 = _mm_mul_ps(C0, NormalAxis); + R2 = _mm_sub_ps(V0, R2); + + V0 = _mm_and_ps(R0, g_XMMask3); + XMVECTOR V1 = _mm_shuffle_ps(R1, R2, _MM_SHUFFLE(2, 1, 2, 0)); + V1 = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 3, 2, 1)); + XMVECTOR V2 = _mm_shuffle_ps(R1, R2, _MM_SHUFFLE(0, 0, 1, 1)); + V2 = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 0, 2, 0)); + + R2 = _mm_shuffle_ps(V0, V1, _MM_SHUFFLE(1, 0, 3, 0)); + R2 = XM_PERMUTE_PS(R2, _MM_SHUFFLE(1, 3, 2, 0)); + + XMMATRIX M; + M.r[0] = R2; + + R2 = _mm_shuffle_ps(V0, V1, _MM_SHUFFLE(3, 2, 3, 1)); + R2 = XM_PERMUTE_PS(R2, _MM_SHUFFLE(1, 3, 0, 2)); + M.r[1] = R2; + + V2 = _mm_shuffle_ps(V2, V0, _MM_SHUFFLE(3, 2, 1, 0)); + M.r[2] = V2; + M.r[3] = g_XMIdentityR3.v; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixRotationAxis +( + FXMVECTOR Axis, + float Angle +) noexcept +{ + assert(!XMVector3Equal(Axis, XMVectorZero())); + assert(!XMVector3IsInfinite(Axis)); + + XMVECTOR Normal = XMVector3Normalize(Axis); + return XMMatrixRotationNormal(Normal, Angle); +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixRotationQuaternion(FXMVECTOR Quaternion) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + float qx = Quaternion.vector4_f32[0]; + float qxx = qx * qx; + + float qy = Quaternion.vector4_f32[1]; + float qyy = qy * qy; + + float qz = Quaternion.vector4_f32[2]; + float qzz = qz * qz; + + float qw = Quaternion.vector4_f32[3]; + + XMMATRIX M; + M.m[0][0] = 1.f - 2.f * qyy - 2.f * qzz; + M.m[0][1] = 2.f * qx * qy + 2.f * qz * qw; + M.m[0][2] = 2.f * qx * qz - 2.f * qy * qw; + M.m[0][3] = 0.f; + + M.m[1][0] = 2.f * qx * qy - 2.f * qz * qw; + M.m[1][1] = 1.f - 2.f * qxx - 2.f * qzz; + M.m[1][2] = 2.f * qy * qz + 2.f * qx * qw; + M.m[1][3] = 0.f; + + M.m[2][0] = 2.f * qx * qz + 2.f * qy * qw; + M.m[2][1] = 2.f * qy * qz - 2.f * qx * qw; + M.m[2][2] = 1.f - 2.f * qxx - 2.f * qyy; + M.m[2][3] = 0.f; + + M.m[3][0] = 0.f; + M.m[3][1] = 0.f; + M.m[3][2] = 0.f; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Constant1110 = { { { 1.0f, 1.0f, 1.0f, 0.0f } } }; + + XMVECTOR Q0 = XMVectorAdd(Quaternion, Quaternion); + XMVECTOR Q1 = XMVectorMultiply(Quaternion, Q0); + + XMVECTOR V0 = XMVectorPermute(Q1, Constant1110.v); + XMVECTOR V1 = XMVectorPermute(Q1, Constant1110.v); + XMVECTOR R0 = XMVectorSubtract(Constant1110, V0); + R0 = XMVectorSubtract(R0, V1); + + V0 = XMVectorSwizzle(Quaternion); + V1 = XMVectorSwizzle(Q0); + V0 = XMVectorMultiply(V0, V1); + + V1 = XMVectorSplatW(Quaternion); + XMVECTOR V2 = XMVectorSwizzle(Q0); + V1 = XMVectorMultiply(V1, V2); + + XMVECTOR R1 = XMVectorAdd(V0, V1); + XMVECTOR R2 = XMVectorSubtract(V0, V1); + + V0 = XMVectorPermute(R1, R2); + V1 = XMVectorPermute(R1, R2); + + XMMATRIX M; + M.r[0] = XMVectorPermute(R0, V0); + M.r[1] = XMVectorPermute(R0, V0); + M.r[2] = XMVectorPermute(R0, V1); + M.r[3] = g_XMIdentityR3.v; + return M; + +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Constant1110 = { { { 1.0f, 1.0f, 1.0f, 0.0f } } }; + + XMVECTOR Q0 = _mm_add_ps(Quaternion, Quaternion); + XMVECTOR Q1 = _mm_mul_ps(Quaternion, Q0); + + XMVECTOR V0 = XM_PERMUTE_PS(Q1, _MM_SHUFFLE(3, 0, 0, 1)); + V0 = _mm_and_ps(V0, g_XMMask3); + XMVECTOR V1 = XM_PERMUTE_PS(Q1, _MM_SHUFFLE(3, 1, 2, 2)); + V1 = _mm_and_ps(V1, g_XMMask3); + XMVECTOR R0 = _mm_sub_ps(Constant1110, V0); + R0 = _mm_sub_ps(R0, V1); + + V0 = XM_PERMUTE_PS(Quaternion, _MM_SHUFFLE(3, 1, 0, 0)); + V1 = XM_PERMUTE_PS(Q0, _MM_SHUFFLE(3, 2, 1, 2)); + V0 = _mm_mul_ps(V0, V1); + + V1 = XM_PERMUTE_PS(Quaternion, _MM_SHUFFLE(3, 3, 3, 3)); + XMVECTOR V2 = XM_PERMUTE_PS(Q0, _MM_SHUFFLE(3, 0, 2, 1)); + V1 = _mm_mul_ps(V1, V2); + + XMVECTOR R1 = _mm_add_ps(V0, V1); + XMVECTOR R2 = _mm_sub_ps(V0, V1); + + V0 = _mm_shuffle_ps(R1, R2, _MM_SHUFFLE(1, 0, 2, 1)); + V0 = XM_PERMUTE_PS(V0, _MM_SHUFFLE(1, 3, 2, 0)); + V1 = _mm_shuffle_ps(R1, R2, _MM_SHUFFLE(2, 2, 0, 0)); + V1 = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 0, 2, 0)); + + Q1 = _mm_shuffle_ps(R0, V0, _MM_SHUFFLE(1, 0, 3, 0)); + Q1 = XM_PERMUTE_PS(Q1, _MM_SHUFFLE(1, 3, 2, 0)); + + XMMATRIX M; + M.r[0] = Q1; + + Q1 = _mm_shuffle_ps(R0, V0, _MM_SHUFFLE(3, 2, 3, 1)); + Q1 = XM_PERMUTE_PS(Q1, _MM_SHUFFLE(1, 3, 0, 2)); + M.r[1] = Q1; + + Q1 = _mm_shuffle_ps(V1, R0, _MM_SHUFFLE(3, 2, 1, 0)); + M.r[2] = Q1; + M.r[3] = g_XMIdentityR3; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixTransformation2D +( + FXMVECTOR ScalingOrigin, + float ScalingOrientation, + FXMVECTOR Scaling, + FXMVECTOR RotationOrigin, + float Rotation, + GXMVECTOR Translation +) noexcept +{ + // M = Inverse(MScalingOrigin) * Transpose(MScalingOrientation) * MScaling * MScalingOrientation * + // MScalingOrigin * Inverse(MRotationOrigin) * MRotation * MRotationOrigin * MTranslation; + + XMVECTOR VScalingOrigin = XMVectorSelect(g_XMSelect1100.v, ScalingOrigin, g_XMSelect1100.v); + XMVECTOR NegScalingOrigin = XMVectorNegate(VScalingOrigin); + + XMMATRIX MScalingOriginI = XMMatrixTranslationFromVector(NegScalingOrigin); + XMMATRIX MScalingOrientation = XMMatrixRotationZ(ScalingOrientation); + XMMATRIX MScalingOrientationT = XMMatrixTranspose(MScalingOrientation); + XMVECTOR VScaling = XMVectorSelect(g_XMOne.v, Scaling, g_XMSelect1100.v); + XMMATRIX MScaling = XMMatrixScalingFromVector(VScaling); + XMVECTOR VRotationOrigin = XMVectorSelect(g_XMSelect1100.v, RotationOrigin, g_XMSelect1100.v); + XMMATRIX MRotation = XMMatrixRotationZ(Rotation); + XMVECTOR VTranslation = XMVectorSelect(g_XMSelect1100.v, Translation, g_XMSelect1100.v); + + XMMATRIX M = XMMatrixMultiply(MScalingOriginI, MScalingOrientationT); + M = XMMatrixMultiply(M, MScaling); + M = XMMatrixMultiply(M, MScalingOrientation); + M.r[3] = XMVectorAdd(M.r[3], VScalingOrigin); + M.r[3] = XMVectorSubtract(M.r[3], VRotationOrigin); + M = XMMatrixMultiply(M, MRotation); + M.r[3] = XMVectorAdd(M.r[3], VRotationOrigin); + M.r[3] = XMVectorAdd(M.r[3], VTranslation); + + return M; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixTransformation +( + FXMVECTOR ScalingOrigin, + FXMVECTOR ScalingOrientationQuaternion, + FXMVECTOR Scaling, + GXMVECTOR RotationOrigin, + HXMVECTOR RotationQuaternion, + HXMVECTOR Translation +) noexcept +{ + // M = Inverse(MScalingOrigin) * Transpose(MScalingOrientation) * MScaling * MScalingOrientation * + // MScalingOrigin * Inverse(MRotationOrigin) * MRotation * MRotationOrigin * MTranslation; + + XMVECTOR VScalingOrigin = XMVectorSelect(g_XMSelect1110.v, ScalingOrigin, g_XMSelect1110.v); + XMVECTOR NegScalingOrigin = XMVectorNegate(ScalingOrigin); + + XMMATRIX MScalingOriginI = XMMatrixTranslationFromVector(NegScalingOrigin); + XMMATRIX MScalingOrientation = XMMatrixRotationQuaternion(ScalingOrientationQuaternion); + XMMATRIX MScalingOrientationT = XMMatrixTranspose(MScalingOrientation); + XMMATRIX MScaling = XMMatrixScalingFromVector(Scaling); + XMVECTOR VRotationOrigin = XMVectorSelect(g_XMSelect1110.v, RotationOrigin, g_XMSelect1110.v); + XMMATRIX MRotation = XMMatrixRotationQuaternion(RotationQuaternion); + XMVECTOR VTranslation = XMVectorSelect(g_XMSelect1110.v, Translation, g_XMSelect1110.v); + + XMMATRIX M; + M = XMMatrixMultiply(MScalingOriginI, MScalingOrientationT); + M = XMMatrixMultiply(M, MScaling); + M = XMMatrixMultiply(M, MScalingOrientation); + M.r[3] = XMVectorAdd(M.r[3], VScalingOrigin); + M.r[3] = XMVectorSubtract(M.r[3], VRotationOrigin); + M = XMMatrixMultiply(M, MRotation); + M.r[3] = XMVectorAdd(M.r[3], VRotationOrigin); + M.r[3] = XMVectorAdd(M.r[3], VTranslation); + return M; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixAffineTransformation2D +( + FXMVECTOR Scaling, + FXMVECTOR RotationOrigin, + float Rotation, + FXMVECTOR Translation +) noexcept +{ + // M = MScaling * Inverse(MRotationOrigin) * MRotation * MRotationOrigin * MTranslation; + + XMVECTOR VScaling = XMVectorSelect(g_XMOne.v, Scaling, g_XMSelect1100.v); + XMMATRIX MScaling = XMMatrixScalingFromVector(VScaling); + XMVECTOR VRotationOrigin = XMVectorSelect(g_XMSelect1100.v, RotationOrigin, g_XMSelect1100.v); + XMMATRIX MRotation = XMMatrixRotationZ(Rotation); + XMVECTOR VTranslation = XMVectorSelect(g_XMSelect1100.v, Translation, g_XMSelect1100.v); + + XMMATRIX M; + M = MScaling; + M.r[3] = XMVectorSubtract(M.r[3], VRotationOrigin); + M = XMMatrixMultiply(M, MRotation); + M.r[3] = XMVectorAdd(M.r[3], VRotationOrigin); + M.r[3] = XMVectorAdd(M.r[3], VTranslation); + return M; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixAffineTransformation +( + FXMVECTOR Scaling, + FXMVECTOR RotationOrigin, + FXMVECTOR RotationQuaternion, + GXMVECTOR Translation +) noexcept +{ + // M = MScaling * Inverse(MRotationOrigin) * MRotation * MRotationOrigin * MTranslation; + + XMMATRIX MScaling = XMMatrixScalingFromVector(Scaling); + XMVECTOR VRotationOrigin = XMVectorSelect(g_XMSelect1110.v, RotationOrigin, g_XMSelect1110.v); + XMMATRIX MRotation = XMMatrixRotationQuaternion(RotationQuaternion); + XMVECTOR VTranslation = XMVectorSelect(g_XMSelect1110.v, Translation, g_XMSelect1110.v); + + XMMATRIX M; + M = MScaling; + M.r[3] = XMVectorSubtract(M.r[3], VRotationOrigin); + M = XMMatrixMultiply(M, MRotation); + M.r[3] = XMVectorAdd(M.r[3], VRotationOrigin); + M.r[3] = XMVectorAdd(M.r[3], VTranslation); + return M; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixReflect(FXMVECTOR ReflectionPlane) noexcept +{ + assert(!XMVector3Equal(ReflectionPlane, XMVectorZero())); + assert(!XMPlaneIsInfinite(ReflectionPlane)); + + static const XMVECTORF32 NegativeTwo = { { { -2.0f, -2.0f, -2.0f, 0.0f } } }; + + XMVECTOR P = XMPlaneNormalize(ReflectionPlane); + XMVECTOR S = XMVectorMultiply(P, NegativeTwo); + + XMVECTOR A = XMVectorSplatX(P); + XMVECTOR B = XMVectorSplatY(P); + XMVECTOR C = XMVectorSplatZ(P); + XMVECTOR D = XMVectorSplatW(P); + + XMMATRIX M; + M.r[0] = XMVectorMultiplyAdd(A, S, g_XMIdentityR0.v); + M.r[1] = XMVectorMultiplyAdd(B, S, g_XMIdentityR1.v); + M.r[2] = XMVectorMultiplyAdd(C, S, g_XMIdentityR2.v); + M.r[3] = XMVectorMultiplyAdd(D, S, g_XMIdentityR3.v); + return M; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixShadow +( + FXMVECTOR ShadowPlane, + FXMVECTOR LightPosition +) noexcept +{ + static const XMVECTORU32 Select0001 = { { { XM_SELECT_0, XM_SELECT_0, XM_SELECT_0, XM_SELECT_1 } } }; + + assert(!XMVector3Equal(ShadowPlane, XMVectorZero())); + assert(!XMPlaneIsInfinite(ShadowPlane)); + + XMVECTOR P = XMPlaneNormalize(ShadowPlane); + XMVECTOR Dot = XMPlaneDot(P, LightPosition); + P = XMVectorNegate(P); + XMVECTOR D = XMVectorSplatW(P); + XMVECTOR C = XMVectorSplatZ(P); + XMVECTOR B = XMVectorSplatY(P); + XMVECTOR A = XMVectorSplatX(P); + Dot = XMVectorSelect(Select0001.v, Dot, Select0001.v); + + XMMATRIX M; + M.r[3] = XMVectorMultiplyAdd(D, LightPosition, Dot); + Dot = XMVectorRotateLeft(Dot, 1); + M.r[2] = XMVectorMultiplyAdd(C, LightPosition, Dot); + Dot = XMVectorRotateLeft(Dot, 1); + M.r[1] = XMVectorMultiplyAdd(B, LightPosition, Dot); + Dot = XMVectorRotateLeft(Dot, 1); + M.r[0] = XMVectorMultiplyAdd(A, LightPosition, Dot); + return M; +} + +//------------------------------------------------------------------------------ +// View and projection initialization operations +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixLookAtLH +( + FXMVECTOR EyePosition, + FXMVECTOR FocusPosition, + FXMVECTOR UpDirection +) noexcept +{ + XMVECTOR EyeDirection = XMVectorSubtract(FocusPosition, EyePosition); + return XMMatrixLookToLH(EyePosition, EyeDirection, UpDirection); +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixLookAtRH +( + FXMVECTOR EyePosition, + FXMVECTOR FocusPosition, + FXMVECTOR UpDirection +) noexcept +{ + XMVECTOR NegEyeDirection = XMVectorSubtract(EyePosition, FocusPosition); + return XMMatrixLookToLH(EyePosition, NegEyeDirection, UpDirection); +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixLookToLH +( + FXMVECTOR EyePosition, + FXMVECTOR EyeDirection, + FXMVECTOR UpDirection +) noexcept +{ + assert(!XMVector3Equal(EyeDirection, XMVectorZero())); + assert(!XMVector3IsInfinite(EyeDirection)); + assert(!XMVector3Equal(UpDirection, XMVectorZero())); + assert(!XMVector3IsInfinite(UpDirection)); + + XMVECTOR R2 = XMVector3Normalize(EyeDirection); + + XMVECTOR R0 = XMVector3Cross(UpDirection, R2); + R0 = XMVector3Normalize(R0); + + XMVECTOR R1 = XMVector3Cross(R2, R0); + + XMVECTOR NegEyePosition = XMVectorNegate(EyePosition); + + XMVECTOR D0 = XMVector3Dot(R0, NegEyePosition); + XMVECTOR D1 = XMVector3Dot(R1, NegEyePosition); + XMVECTOR D2 = XMVector3Dot(R2, NegEyePosition); + + XMMATRIX M; + M.r[0] = XMVectorSelect(D0, R0, g_XMSelect1110.v); + M.r[1] = XMVectorSelect(D1, R1, g_XMSelect1110.v); + M.r[2] = XMVectorSelect(D2, R2, g_XMSelect1110.v); + M.r[3] = g_XMIdentityR3.v; + + M = XMMatrixTranspose(M); + + return M; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixLookToRH +( + FXMVECTOR EyePosition, + FXMVECTOR EyeDirection, + FXMVECTOR UpDirection +) noexcept +{ + XMVECTOR NegEyeDirection = XMVectorNegate(EyeDirection); + return XMMatrixLookToLH(EyePosition, NegEyeDirection, UpDirection); +} + +//------------------------------------------------------------------------------ + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable:28931, "PREfast noise: Esp:1266") +#endif + +inline XMMATRIX XM_CALLCONV XMMatrixPerspectiveLH +( + float ViewWidth, + float ViewHeight, + float NearZ, + float FarZ +) noexcept +{ + assert(NearZ > 0.f && FarZ > 0.f); + assert(!XMScalarNearEqual(ViewWidth, 0.0f, 0.00001f)); + assert(!XMScalarNearEqual(ViewHeight, 0.0f, 0.00001f)); + assert(!XMScalarNearEqual(FarZ, NearZ, 0.00001f)); + +#if defined(_XM_NO_INTRINSICS_) + + float TwoNearZ = NearZ + NearZ; + float fRange = FarZ / (FarZ - NearZ); + + XMMATRIX M; + M.m[0][0] = TwoNearZ / ViewWidth; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = TwoNearZ / ViewHeight; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = fRange; + M.m[2][3] = 1.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = -fRange * NearZ; + M.m[3][3] = 0.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float TwoNearZ = NearZ + NearZ; + float fRange = FarZ / (FarZ - NearZ); + const float32x4_t Zero = vdupq_n_f32(0); + XMMATRIX M; + M.r[0] = vsetq_lane_f32(TwoNearZ / ViewWidth, Zero, 0); + M.r[1] = vsetq_lane_f32(TwoNearZ / ViewHeight, Zero, 1); + M.r[2] = vsetq_lane_f32(fRange, g_XMIdentityR3.v, 2); + M.r[3] = vsetq_lane_f32(-fRange * NearZ, Zero, 2); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + float TwoNearZ = NearZ + NearZ; + float fRange = FarZ / (FarZ - NearZ); + // Note: This is recorded on the stack + XMVECTOR rMem = { + TwoNearZ / ViewWidth, + TwoNearZ / ViewHeight, + fRange, + -fRange * NearZ + }; + // Copy from memory to SSE register + XMVECTOR vValues = rMem; + XMVECTOR vTemp = _mm_setzero_ps(); + // Copy x only + vTemp = _mm_move_ss(vTemp, vValues); + // TwoNearZ / ViewWidth,0,0,0 + M.r[0] = vTemp; + // 0,TwoNearZ / ViewHeight,0,0 + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskY); + M.r[1] = vTemp; + // x=fRange,y=-fRange * NearZ,0,1.0f + vValues = _mm_shuffle_ps(vValues, g_XMIdentityR3, _MM_SHUFFLE(3, 2, 3, 2)); + // 0,0,fRange,1.0f + vTemp = _mm_setzero_ps(); + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(3, 0, 0, 0)); + M.r[2] = vTemp; + // 0,0,-fRange * NearZ,0 + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(2, 1, 0, 0)); + M.r[3] = vTemp; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixPerspectiveRH +( + float ViewWidth, + float ViewHeight, + float NearZ, + float FarZ +) noexcept +{ + assert(NearZ > 0.f && FarZ > 0.f); + assert(!XMScalarNearEqual(ViewWidth, 0.0f, 0.00001f)); + assert(!XMScalarNearEqual(ViewHeight, 0.0f, 0.00001f)); + assert(!XMScalarNearEqual(FarZ, NearZ, 0.00001f)); + +#if defined(_XM_NO_INTRINSICS_) + + float TwoNearZ = NearZ + NearZ; + float fRange = FarZ / (NearZ - FarZ); + + XMMATRIX M; + M.m[0][0] = TwoNearZ / ViewWidth; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = TwoNearZ / ViewHeight; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = fRange; + M.m[2][3] = -1.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = fRange * NearZ; + M.m[3][3] = 0.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float TwoNearZ = NearZ + NearZ; + float fRange = FarZ / (NearZ - FarZ); + const float32x4_t Zero = vdupq_n_f32(0); + + XMMATRIX M; + M.r[0] = vsetq_lane_f32(TwoNearZ / ViewWidth, Zero, 0); + M.r[1] = vsetq_lane_f32(TwoNearZ / ViewHeight, Zero, 1); + M.r[2] = vsetq_lane_f32(fRange, g_XMNegIdentityR3.v, 2); + M.r[3] = vsetq_lane_f32(fRange * NearZ, Zero, 2); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + float TwoNearZ = NearZ + NearZ; + float fRange = FarZ / (NearZ - FarZ); + // Note: This is recorded on the stack + XMVECTOR rMem = { + TwoNearZ / ViewWidth, + TwoNearZ / ViewHeight, + fRange, + fRange * NearZ + }; + // Copy from memory to SSE register + XMVECTOR vValues = rMem; + XMVECTOR vTemp = _mm_setzero_ps(); + // Copy x only + vTemp = _mm_move_ss(vTemp, vValues); + // TwoNearZ / ViewWidth,0,0,0 + M.r[0] = vTemp; + // 0,TwoNearZ / ViewHeight,0,0 + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskY); + M.r[1] = vTemp; + // x=fRange,y=-fRange * NearZ,0,-1.0f + vValues = _mm_shuffle_ps(vValues, g_XMNegIdentityR3, _MM_SHUFFLE(3, 2, 3, 2)); + // 0,0,fRange,-1.0f + vTemp = _mm_setzero_ps(); + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(3, 0, 0, 0)); + M.r[2] = vTemp; + // 0,0,-fRange * NearZ,0 + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(2, 1, 0, 0)); + M.r[3] = vTemp; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixPerspectiveFovLH +( + float FovAngleY, + float AspectRatio, + float NearZ, + float FarZ +) noexcept +{ + assert(NearZ > 0.f && FarZ > 0.f); + assert(!XMScalarNearEqual(FovAngleY, 0.0f, 0.00001f * 2.0f)); + assert(!XMScalarNearEqual(AspectRatio, 0.0f, 0.00001f)); + assert(!XMScalarNearEqual(FarZ, NearZ, 0.00001f)); + +#if defined(_XM_NO_INTRINSICS_) + + float SinFov; + float CosFov; + XMScalarSinCos(&SinFov, &CosFov, 0.5f * FovAngleY); + + float Height = CosFov / SinFov; + float Width = Height / AspectRatio; + float fRange = FarZ / (FarZ - NearZ); + + XMMATRIX M; + M.m[0][0] = Width; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = Height; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = fRange; + M.m[2][3] = 1.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = -fRange * NearZ; + M.m[3][3] = 0.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float SinFov; + float CosFov; + XMScalarSinCos(&SinFov, &CosFov, 0.5f * FovAngleY); + + float fRange = FarZ / (FarZ - NearZ); + float Height = CosFov / SinFov; + float Width = Height / AspectRatio; + const float32x4_t Zero = vdupq_n_f32(0); + + XMMATRIX M; + M.r[0] = vsetq_lane_f32(Width, Zero, 0); + M.r[1] = vsetq_lane_f32(Height, Zero, 1); + M.r[2] = vsetq_lane_f32(fRange, g_XMIdentityR3.v, 2); + M.r[3] = vsetq_lane_f32(-fRange * NearZ, Zero, 2); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + float SinFov; + float CosFov; + XMScalarSinCos(&SinFov, &CosFov, 0.5f * FovAngleY); + + float fRange = FarZ / (FarZ - NearZ); + // Note: This is recorded on the stack + float Height = CosFov / SinFov; + XMVECTOR rMem = { + Height / AspectRatio, + Height, + fRange, + -fRange * NearZ + }; + // Copy from memory to SSE register + XMVECTOR vValues = rMem; + XMVECTOR vTemp = _mm_setzero_ps(); + // Copy x only + vTemp = _mm_move_ss(vTemp, vValues); + // Height / AspectRatio,0,0,0 + XMMATRIX M; + M.r[0] = vTemp; + // 0,Height,0,0 + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskY); + M.r[1] = vTemp; + // x=fRange,y=-fRange * NearZ,0,1.0f + vTemp = _mm_setzero_ps(); + vValues = _mm_shuffle_ps(vValues, g_XMIdentityR3, _MM_SHUFFLE(3, 2, 3, 2)); + // 0,0,fRange,1.0f + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(3, 0, 0, 0)); + M.r[2] = vTemp; + // 0,0,-fRange * NearZ,0.0f + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(2, 1, 0, 0)); + M.r[3] = vTemp; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixPerspectiveFovRH +( + float FovAngleY, + float AspectRatio, + float NearZ, + float FarZ +) noexcept +{ + assert(NearZ > 0.f && FarZ > 0.f); + assert(!XMScalarNearEqual(FovAngleY, 0.0f, 0.00001f * 2.0f)); + assert(!XMScalarNearEqual(AspectRatio, 0.0f, 0.00001f)); + assert(!XMScalarNearEqual(FarZ, NearZ, 0.00001f)); + +#if defined(_XM_NO_INTRINSICS_) + + float SinFov; + float CosFov; + XMScalarSinCos(&SinFov, &CosFov, 0.5f * FovAngleY); + + float Height = CosFov / SinFov; + float Width = Height / AspectRatio; + float fRange = FarZ / (NearZ - FarZ); + + XMMATRIX M; + M.m[0][0] = Width; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = Height; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = fRange; + M.m[2][3] = -1.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = fRange * NearZ; + M.m[3][3] = 0.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float SinFov; + float CosFov; + XMScalarSinCos(&SinFov, &CosFov, 0.5f * FovAngleY); + float fRange = FarZ / (NearZ - FarZ); + float Height = CosFov / SinFov; + float Width = Height / AspectRatio; + const float32x4_t Zero = vdupq_n_f32(0); + + XMMATRIX M; + M.r[0] = vsetq_lane_f32(Width, Zero, 0); + M.r[1] = vsetq_lane_f32(Height, Zero, 1); + M.r[2] = vsetq_lane_f32(fRange, g_XMNegIdentityR3.v, 2); + M.r[3] = vsetq_lane_f32(fRange * NearZ, Zero, 2); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + float SinFov; + float CosFov; + XMScalarSinCos(&SinFov, &CosFov, 0.5f * FovAngleY); + float fRange = FarZ / (NearZ - FarZ); + // Note: This is recorded on the stack + float Height = CosFov / SinFov; + XMVECTOR rMem = { + Height / AspectRatio, + Height, + fRange, + fRange * NearZ + }; + // Copy from memory to SSE register + XMVECTOR vValues = rMem; + XMVECTOR vTemp = _mm_setzero_ps(); + // Copy x only + vTemp = _mm_move_ss(vTemp, vValues); + // Height / AspectRatio,0,0,0 + XMMATRIX M; + M.r[0] = vTemp; + // 0,Height,0,0 + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskY); + M.r[1] = vTemp; + // x=fRange,y=-fRange * NearZ,0,-1.0f + vTemp = _mm_setzero_ps(); + vValues = _mm_shuffle_ps(vValues, g_XMNegIdentityR3, _MM_SHUFFLE(3, 2, 3, 2)); + // 0,0,fRange,-1.0f + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(3, 0, 0, 0)); + M.r[2] = vTemp; + // 0,0,fRange * NearZ,0.0f + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(2, 1, 0, 0)); + M.r[3] = vTemp; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixPerspectiveOffCenterLH +( + float ViewLeft, + float ViewRight, + float ViewBottom, + float ViewTop, + float NearZ, + float FarZ +) noexcept +{ + assert(NearZ > 0.f && FarZ > 0.f); + assert(!XMScalarNearEqual(ViewRight, ViewLeft, 0.00001f)); + assert(!XMScalarNearEqual(ViewTop, ViewBottom, 0.00001f)); + assert(!XMScalarNearEqual(FarZ, NearZ, 0.00001f)); + +#if defined(_XM_NO_INTRINSICS_) + + float TwoNearZ = NearZ + NearZ; + float ReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float ReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = FarZ / (FarZ - NearZ); + + XMMATRIX M; + M.m[0][0] = TwoNearZ * ReciprocalWidth; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = TwoNearZ * ReciprocalHeight; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = -(ViewLeft + ViewRight) * ReciprocalWidth; + M.m[2][1] = -(ViewTop + ViewBottom) * ReciprocalHeight; + M.m[2][2] = fRange; + M.m[2][3] = 1.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = -fRange * NearZ; + M.m[3][3] = 0.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float TwoNearZ = NearZ + NearZ; + float ReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float ReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = FarZ / (FarZ - NearZ); + const float32x4_t Zero = vdupq_n_f32(0); + + XMMATRIX M; + M.r[0] = vsetq_lane_f32(TwoNearZ * ReciprocalWidth, Zero, 0); + M.r[1] = vsetq_lane_f32(TwoNearZ * ReciprocalHeight, Zero, 1); + M.r[2] = XMVectorSet(-(ViewLeft + ViewRight) * ReciprocalWidth, + -(ViewTop + ViewBottom) * ReciprocalHeight, + fRange, + 1.0f); + M.r[3] = vsetq_lane_f32(-fRange * NearZ, Zero, 2); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + float TwoNearZ = NearZ + NearZ; + float ReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float ReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = FarZ / (FarZ - NearZ); + // Note: This is recorded on the stack + XMVECTOR rMem = { + TwoNearZ * ReciprocalWidth, + TwoNearZ * ReciprocalHeight, + -fRange * NearZ, + 0 + }; + // Copy from memory to SSE register + XMVECTOR vValues = rMem; + XMVECTOR vTemp = _mm_setzero_ps(); + // Copy x only + vTemp = _mm_move_ss(vTemp, vValues); + // TwoNearZ*ReciprocalWidth,0,0,0 + M.r[0] = vTemp; + // 0,TwoNearZ*ReciprocalHeight,0,0 + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskY); + M.r[1] = vTemp; + // 0,0,fRange,1.0f + M.r[2] = XMVectorSet(-(ViewLeft + ViewRight) * ReciprocalWidth, + -(ViewTop + ViewBottom) * ReciprocalHeight, + fRange, + 1.0f); + // 0,0,-fRange * NearZ,0.0f + vValues = _mm_and_ps(vValues, g_XMMaskZ); + M.r[3] = vValues; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixPerspectiveOffCenterRH +( + float ViewLeft, + float ViewRight, + float ViewBottom, + float ViewTop, + float NearZ, + float FarZ +) noexcept +{ + assert(NearZ > 0.f && FarZ > 0.f); + assert(!XMScalarNearEqual(ViewRight, ViewLeft, 0.00001f)); + assert(!XMScalarNearEqual(ViewTop, ViewBottom, 0.00001f)); + assert(!XMScalarNearEqual(FarZ, NearZ, 0.00001f)); + +#if defined(_XM_NO_INTRINSICS_) + + float TwoNearZ = NearZ + NearZ; + float ReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float ReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = FarZ / (NearZ - FarZ); + + XMMATRIX M; + M.m[0][0] = TwoNearZ * ReciprocalWidth; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = TwoNearZ * ReciprocalHeight; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = (ViewLeft + ViewRight) * ReciprocalWidth; + M.m[2][1] = (ViewTop + ViewBottom) * ReciprocalHeight; + M.m[2][2] = fRange; + M.m[2][3] = -1.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = fRange * NearZ; + M.m[3][3] = 0.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float TwoNearZ = NearZ + NearZ; + float ReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float ReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = FarZ / (NearZ - FarZ); + const float32x4_t Zero = vdupq_n_f32(0); + + XMMATRIX M; + M.r[0] = vsetq_lane_f32(TwoNearZ * ReciprocalWidth, Zero, 0); + M.r[1] = vsetq_lane_f32(TwoNearZ * ReciprocalHeight, Zero, 1); + M.r[2] = XMVectorSet((ViewLeft + ViewRight) * ReciprocalWidth, + (ViewTop + ViewBottom) * ReciprocalHeight, + fRange, + -1.0f); + M.r[3] = vsetq_lane_f32(fRange * NearZ, Zero, 2); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + float TwoNearZ = NearZ + NearZ; + float ReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float ReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = FarZ / (NearZ - FarZ); + // Note: This is recorded on the stack + XMVECTOR rMem = { + TwoNearZ * ReciprocalWidth, + TwoNearZ * ReciprocalHeight, + fRange * NearZ, + 0 + }; + // Copy from memory to SSE register + XMVECTOR vValues = rMem; + XMVECTOR vTemp = _mm_setzero_ps(); + // Copy x only + vTemp = _mm_move_ss(vTemp, vValues); + // TwoNearZ*ReciprocalWidth,0,0,0 + M.r[0] = vTemp; + // 0,TwoNearZ*ReciprocalHeight,0,0 + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskY); + M.r[1] = vTemp; + // 0,0,fRange,1.0f + M.r[2] = XMVectorSet((ViewLeft + ViewRight) * ReciprocalWidth, + (ViewTop + ViewBottom) * ReciprocalHeight, + fRange, + -1.0f); + // 0,0,-fRange * NearZ,0.0f + vValues = _mm_and_ps(vValues, g_XMMaskZ); + M.r[3] = vValues; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixOrthographicLH +( + float ViewWidth, + float ViewHeight, + float NearZ, + float FarZ +) noexcept +{ + assert(!XMScalarNearEqual(ViewWidth, 0.0f, 0.00001f)); + assert(!XMScalarNearEqual(ViewHeight, 0.0f, 0.00001f)); + assert(!XMScalarNearEqual(FarZ, NearZ, 0.00001f)); + +#if defined(_XM_NO_INTRINSICS_) + + float fRange = 1.0f / (FarZ - NearZ); + + XMMATRIX M; + M.m[0][0] = 2.0f / ViewWidth; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = 2.0f / ViewHeight; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = fRange; + M.m[2][3] = 0.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = -fRange * NearZ; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float fRange = 1.0f / (FarZ - NearZ); + + const float32x4_t Zero = vdupq_n_f32(0); + XMMATRIX M; + M.r[0] = vsetq_lane_f32(2.0f / ViewWidth, Zero, 0); + M.r[1] = vsetq_lane_f32(2.0f / ViewHeight, Zero, 1); + M.r[2] = vsetq_lane_f32(fRange, Zero, 2); + M.r[3] = vsetq_lane_f32(-fRange * NearZ, g_XMIdentityR3.v, 2); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + float fRange = 1.0f / (FarZ - NearZ); + // Note: This is recorded on the stack + XMVECTOR rMem = { + 2.0f / ViewWidth, + 2.0f / ViewHeight, + fRange, + -fRange * NearZ + }; + // Copy from memory to SSE register + XMVECTOR vValues = rMem; + XMVECTOR vTemp = _mm_setzero_ps(); + // Copy x only + vTemp = _mm_move_ss(vTemp, vValues); + // 2.0f / ViewWidth,0,0,0 + M.r[0] = vTemp; + // 0,2.0f / ViewHeight,0,0 + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskY); + M.r[1] = vTemp; + // x=fRange,y=-fRange * NearZ,0,1.0f + vTemp = _mm_setzero_ps(); + vValues = _mm_shuffle_ps(vValues, g_XMIdentityR3, _MM_SHUFFLE(3, 2, 3, 2)); + // 0,0,fRange,0.0f + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(2, 0, 0, 0)); + M.r[2] = vTemp; + // 0,0,-fRange * NearZ,1.0f + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(3, 1, 0, 0)); + M.r[3] = vTemp; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixOrthographicRH +( + float ViewWidth, + float ViewHeight, + float NearZ, + float FarZ +) noexcept +{ + assert(!XMScalarNearEqual(ViewWidth, 0.0f, 0.00001f)); + assert(!XMScalarNearEqual(ViewHeight, 0.0f, 0.00001f)); + assert(!XMScalarNearEqual(FarZ, NearZ, 0.00001f)); + +#if defined(_XM_NO_INTRINSICS_) + + float fRange = 1.0f / (NearZ - FarZ); + + XMMATRIX M; + M.m[0][0] = 2.0f / ViewWidth; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = 2.0f / ViewHeight; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = fRange; + M.m[2][3] = 0.0f; + + M.m[3][0] = 0.0f; + M.m[3][1] = 0.0f; + M.m[3][2] = fRange * NearZ; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float fRange = 1.0f / (NearZ - FarZ); + + const float32x4_t Zero = vdupq_n_f32(0); + XMMATRIX M; + M.r[0] = vsetq_lane_f32(2.0f / ViewWidth, Zero, 0); + M.r[1] = vsetq_lane_f32(2.0f / ViewHeight, Zero, 1); + M.r[2] = vsetq_lane_f32(fRange, Zero, 2); + M.r[3] = vsetq_lane_f32(fRange * NearZ, g_XMIdentityR3.v, 2); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + float fRange = 1.0f / (NearZ - FarZ); + // Note: This is recorded on the stack + XMVECTOR rMem = { + 2.0f / ViewWidth, + 2.0f / ViewHeight, + fRange, + fRange * NearZ + }; + // Copy from memory to SSE register + XMVECTOR vValues = rMem; + XMVECTOR vTemp = _mm_setzero_ps(); + // Copy x only + vTemp = _mm_move_ss(vTemp, vValues); + // 2.0f / ViewWidth,0,0,0 + M.r[0] = vTemp; + // 0,2.0f / ViewHeight,0,0 + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskY); + M.r[1] = vTemp; + // x=fRange,y=fRange * NearZ,0,1.0f + vTemp = _mm_setzero_ps(); + vValues = _mm_shuffle_ps(vValues, g_XMIdentityR3, _MM_SHUFFLE(3, 2, 3, 2)); + // 0,0,fRange,0.0f + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(2, 0, 0, 0)); + M.r[2] = vTemp; + // 0,0,fRange * NearZ,1.0f + vTemp = _mm_shuffle_ps(vTemp, vValues, _MM_SHUFFLE(3, 1, 0, 0)); + M.r[3] = vTemp; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixOrthographicOffCenterLH +( + float ViewLeft, + float ViewRight, + float ViewBottom, + float ViewTop, + float NearZ, + float FarZ +) noexcept +{ + assert(!XMScalarNearEqual(ViewRight, ViewLeft, 0.00001f)); + assert(!XMScalarNearEqual(ViewTop, ViewBottom, 0.00001f)); + assert(!XMScalarNearEqual(FarZ, NearZ, 0.00001f)); + +#if defined(_XM_NO_INTRINSICS_) + + float ReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float ReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = 1.0f / (FarZ - NearZ); + + XMMATRIX M; + M.m[0][0] = ReciprocalWidth + ReciprocalWidth; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = ReciprocalHeight + ReciprocalHeight; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = fRange; + M.m[2][3] = 0.0f; + + M.m[3][0] = -(ViewLeft + ViewRight) * ReciprocalWidth; + M.m[3][1] = -(ViewTop + ViewBottom) * ReciprocalHeight; + M.m[3][2] = -fRange * NearZ; + M.m[3][3] = 1.0f; + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float ReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float ReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = 1.0f / (FarZ - NearZ); + const float32x4_t Zero = vdupq_n_f32(0); + XMMATRIX M; + M.r[0] = vsetq_lane_f32(ReciprocalWidth + ReciprocalWidth, Zero, 0); + M.r[1] = vsetq_lane_f32(ReciprocalHeight + ReciprocalHeight, Zero, 1); + M.r[2] = vsetq_lane_f32(fRange, Zero, 2); + M.r[3] = XMVectorSet(-(ViewLeft + ViewRight) * ReciprocalWidth, + -(ViewTop + ViewBottom) * ReciprocalHeight, + -fRange * NearZ, + 1.0f); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + float fReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float fReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = 1.0f / (FarZ - NearZ); + // Note: This is recorded on the stack + XMVECTOR rMem = { + fReciprocalWidth, + fReciprocalHeight, + fRange, + 1.0f + }; + XMVECTOR rMem2 = { + -(ViewLeft + ViewRight), + -(ViewTop + ViewBottom), + -NearZ, + 1.0f + }; + // Copy from memory to SSE register + XMVECTOR vValues = rMem; + XMVECTOR vTemp = _mm_setzero_ps(); + // Copy x only + vTemp = _mm_move_ss(vTemp, vValues); + // fReciprocalWidth*2,0,0,0 + vTemp = _mm_add_ss(vTemp, vTemp); + M.r[0] = vTemp; + // 0,fReciprocalHeight*2,0,0 + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskY); + vTemp = _mm_add_ps(vTemp, vTemp); + M.r[1] = vTemp; + // 0,0,fRange,0.0f + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskZ); + M.r[2] = vTemp; + // -(ViewLeft + ViewRight)*fReciprocalWidth,-(ViewTop + ViewBottom)*fReciprocalHeight,fRange*-NearZ,1.0f + vValues = _mm_mul_ps(vValues, rMem2); + M.r[3] = vValues; + return M; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMatrixOrthographicOffCenterRH +( + float ViewLeft, + float ViewRight, + float ViewBottom, + float ViewTop, + float NearZ, + float FarZ +) noexcept +{ + assert(!XMScalarNearEqual(ViewRight, ViewLeft, 0.00001f)); + assert(!XMScalarNearEqual(ViewTop, ViewBottom, 0.00001f)); + assert(!XMScalarNearEqual(FarZ, NearZ, 0.00001f)); + +#if defined(_XM_NO_INTRINSICS_) + + float ReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float ReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = 1.0f / (NearZ - FarZ); + + XMMATRIX M; + M.m[0][0] = ReciprocalWidth + ReciprocalWidth; + M.m[0][1] = 0.0f; + M.m[0][2] = 0.0f; + M.m[0][3] = 0.0f; + + M.m[1][0] = 0.0f; + M.m[1][1] = ReciprocalHeight + ReciprocalHeight; + M.m[1][2] = 0.0f; + M.m[1][3] = 0.0f; + + M.m[2][0] = 0.0f; + M.m[2][1] = 0.0f; + M.m[2][2] = fRange; + M.m[2][3] = 0.0f; + + M.r[3] = XMVectorSet(-(ViewLeft + ViewRight) * ReciprocalWidth, + -(ViewTop + ViewBottom) * ReciprocalHeight, + fRange * NearZ, + 1.0f); + return M; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float ReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float ReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = 1.0f / (NearZ - FarZ); + const float32x4_t Zero = vdupq_n_f32(0); + XMMATRIX M; + M.r[0] = vsetq_lane_f32(ReciprocalWidth + ReciprocalWidth, Zero, 0); + M.r[1] = vsetq_lane_f32(ReciprocalHeight + ReciprocalHeight, Zero, 1); + M.r[2] = vsetq_lane_f32(fRange, Zero, 2); + M.r[3] = XMVectorSet(-(ViewLeft + ViewRight) * ReciprocalWidth, + -(ViewTop + ViewBottom) * ReciprocalHeight, + fRange * NearZ, + 1.0f); + return M; +#elif defined(_XM_SSE_INTRINSICS_) + XMMATRIX M; + float fReciprocalWidth = 1.0f / (ViewRight - ViewLeft); + float fReciprocalHeight = 1.0f / (ViewTop - ViewBottom); + float fRange = 1.0f / (NearZ - FarZ); + // Note: This is recorded on the stack + XMVECTOR rMem = { + fReciprocalWidth, + fReciprocalHeight, + fRange, + 1.0f + }; + XMVECTOR rMem2 = { + -(ViewLeft + ViewRight), + -(ViewTop + ViewBottom), + NearZ, + 1.0f + }; + // Copy from memory to SSE register + XMVECTOR vValues = rMem; + XMVECTOR vTemp = _mm_setzero_ps(); + // Copy x only + vTemp = _mm_move_ss(vTemp, vValues); + // fReciprocalWidth*2,0,0,0 + vTemp = _mm_add_ss(vTemp, vTemp); + M.r[0] = vTemp; + // 0,fReciprocalHeight*2,0,0 + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskY); + vTemp = _mm_add_ps(vTemp, vTemp); + M.r[1] = vTemp; + // 0,0,fRange,0.0f + vTemp = vValues; + vTemp = _mm_and_ps(vTemp, g_XMMaskZ); + M.r[2] = vTemp; + // -(ViewLeft + ViewRight)*fReciprocalWidth,-(ViewTop + ViewBottom)*fReciprocalHeight,fRange*-NearZ,1.0f + vValues = _mm_mul_ps(vValues, rMem2); + M.r[3] = vValues; + return M; +#endif +} + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + +/**************************************************************************** + * + * XMMATRIX operators and methods + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMMATRIX::XMMATRIX +( + float m00, float m01, float m02, float m03, + float m10, float m11, float m12, float m13, + float m20, float m21, float m22, float m23, + float m30, float m31, float m32, float m33 +) noexcept +{ + r[0] = XMVectorSet(m00, m01, m02, m03); + r[1] = XMVectorSet(m10, m11, m12, m13); + r[2] = XMVectorSet(m20, m21, m22, m23); + r[3] = XMVectorSet(m30, m31, m32, m33); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMMATRIX::XMMATRIX(const float* pArray) noexcept +{ + assert(pArray != nullptr); + r[0] = XMLoadFloat4(reinterpret_cast(pArray)); + r[1] = XMLoadFloat4(reinterpret_cast(pArray + 4)); + r[2] = XMLoadFloat4(reinterpret_cast(pArray + 8)); + r[3] = XMLoadFloat4(reinterpret_cast(pArray + 12)); +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XMMATRIX::operator- () const noexcept +{ + XMMATRIX R; + R.r[0] = XMVectorNegate(r[0]); + R.r[1] = XMVectorNegate(r[1]); + R.r[2] = XMVectorNegate(r[2]); + R.r[3] = XMVectorNegate(r[3]); + return R; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX& XM_CALLCONV XMMATRIX::operator+= (FXMMATRIX M) noexcept +{ + r[0] = XMVectorAdd(r[0], M.r[0]); + r[1] = XMVectorAdd(r[1], M.r[1]); + r[2] = XMVectorAdd(r[2], M.r[2]); + r[3] = XMVectorAdd(r[3], M.r[3]); + return *this; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX& XM_CALLCONV XMMATRIX::operator-= (FXMMATRIX M) noexcept +{ + r[0] = XMVectorSubtract(r[0], M.r[0]); + r[1] = XMVectorSubtract(r[1], M.r[1]); + r[2] = XMVectorSubtract(r[2], M.r[2]); + r[3] = XMVectorSubtract(r[3], M.r[3]); + return *this; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX& XM_CALLCONV XMMATRIX::operator*=(FXMMATRIX M) noexcept +{ + *this = XMMatrixMultiply(*this, M); + return *this; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX& XMMATRIX::operator*= (float S) noexcept +{ + r[0] = XMVectorScale(r[0], S); + r[1] = XMVectorScale(r[1], S); + r[2] = XMVectorScale(r[2], S); + r[3] = XMVectorScale(r[3], S); + return *this; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX& XMMATRIX::operator/= (float S) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR vS = XMVectorReplicate(S); + r[0] = XMVectorDivide(r[0], vS); + r[1] = XMVectorDivide(r[1], vS); + r[2] = XMVectorDivide(r[2], vS); + r[3] = XMVectorDivide(r[3], vS); + return *this; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + float32x4_t vS = vdupq_n_f32(S); + r[0] = vdivq_f32(r[0], vS); + r[1] = vdivq_f32(r[1], vS); + r[2] = vdivq_f32(r[2], vS); + r[3] = vdivq_f32(r[3], vS); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal + float32x2_t vS = vdup_n_f32(S); + float32x2_t R0 = vrecpe_f32(vS); + float32x2_t S0 = vrecps_f32(R0, vS); + R0 = vmul_f32(S0, R0); + S0 = vrecps_f32(R0, vS); + R0 = vmul_f32(S0, R0); + float32x4_t Reciprocal = vcombine_f32(R0, R0); + r[0] = vmulq_f32(r[0], Reciprocal); + r[1] = vmulq_f32(r[1], Reciprocal); + r[2] = vmulq_f32(r[2], Reciprocal); + r[3] = vmulq_f32(r[3], Reciprocal); +#endif + return *this; +#elif defined(_XM_SSE_INTRINSICS_) + __m128 vS = _mm_set_ps1(S); + r[0] = _mm_div_ps(r[0], vS); + r[1] = _mm_div_ps(r[1], vS); + r[2] = _mm_div_ps(r[2], vS); + r[3] = _mm_div_ps(r[3], vS); + return *this; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMATRIX::operator+ (FXMMATRIX M) const noexcept +{ + XMMATRIX R; + R.r[0] = XMVectorAdd(r[0], M.r[0]); + R.r[1] = XMVectorAdd(r[1], M.r[1]); + R.r[2] = XMVectorAdd(r[2], M.r[2]); + R.r[3] = XMVectorAdd(r[3], M.r[3]); + return R; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMATRIX::operator- (FXMMATRIX M) const noexcept +{ + XMMATRIX R; + R.r[0] = XMVectorSubtract(r[0], M.r[0]); + R.r[1] = XMVectorSubtract(r[1], M.r[1]); + R.r[2] = XMVectorSubtract(r[2], M.r[2]); + R.r[3] = XMVectorSubtract(r[3], M.r[3]); + return R; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV XMMATRIX::operator*(FXMMATRIX M) const noexcept +{ + return XMMatrixMultiply(*this, M); +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XMMATRIX::operator* (float S) const noexcept +{ + XMMATRIX R; + R.r[0] = XMVectorScale(r[0], S); + R.r[1] = XMVectorScale(r[1], S); + R.r[2] = XMVectorScale(r[2], S); + R.r[3] = XMVectorScale(r[3], S); + return R; +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XMMATRIX::operator/ (float S) const noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR vS = XMVectorReplicate(S); + XMMATRIX R; + R.r[0] = XMVectorDivide(r[0], vS); + R.r[1] = XMVectorDivide(r[1], vS); + R.r[2] = XMVectorDivide(r[2], vS); + R.r[3] = XMVectorDivide(r[3], vS); + return R; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + float32x4_t vS = vdupq_n_f32(S); + XMMATRIX R; + R.r[0] = vdivq_f32(r[0], vS); + R.r[1] = vdivq_f32(r[1], vS); + R.r[2] = vdivq_f32(r[2], vS); + R.r[3] = vdivq_f32(r[3], vS); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal + float32x2_t vS = vdup_n_f32(S); + float32x2_t R0 = vrecpe_f32(vS); + float32x2_t S0 = vrecps_f32(R0, vS); + R0 = vmul_f32(S0, R0); + S0 = vrecps_f32(R0, vS); + R0 = vmul_f32(S0, R0); + float32x4_t Reciprocal = vcombine_f32(R0, R0); + XMMATRIX R; + R.r[0] = vmulq_f32(r[0], Reciprocal); + R.r[1] = vmulq_f32(r[1], Reciprocal); + R.r[2] = vmulq_f32(r[2], Reciprocal); + R.r[3] = vmulq_f32(r[3], Reciprocal); +#endif + return R; +#elif defined(_XM_SSE_INTRINSICS_) + __m128 vS = _mm_set_ps1(S); + XMMATRIX R; + R.r[0] = _mm_div_ps(r[0], vS); + R.r[1] = _mm_div_ps(r[1], vS); + R.r[2] = _mm_div_ps(r[2], vS); + R.r[3] = _mm_div_ps(r[3], vS); + return R; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMMATRIX XM_CALLCONV operator* +( + float S, + FXMMATRIX M +) noexcept +{ + XMMATRIX R; + R.r[0] = XMVectorScale(M.r[0], S); + R.r[1] = XMVectorScale(M.r[1], S); + R.r[2] = XMVectorScale(M.r[2], S); + R.r[3] = XMVectorScale(M.r[3], S); + return R; +} + +/**************************************************************************** + * + * XMFLOAT3X3 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMFLOAT3X3::XMFLOAT3X3(const float* pArray) noexcept +{ + assert(pArray != nullptr); + for (size_t Row = 0; Row < 3; Row++) + { + for (size_t Column = 0; Column < 3; Column++) + { + m[Row][Column] = pArray[Row * 3 + Column]; + } + } +} + +/**************************************************************************** + * + * XMFLOAT4X3 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMFLOAT4X3::XMFLOAT4X3(const float* pArray) noexcept +{ + assert(pArray != nullptr); + + m[0][0] = pArray[0]; + m[0][1] = pArray[1]; + m[0][2] = pArray[2]; + + m[1][0] = pArray[3]; + m[1][1] = pArray[4]; + m[1][2] = pArray[5]; + + m[2][0] = pArray[6]; + m[2][1] = pArray[7]; + m[2][2] = pArray[8]; + + m[3][0] = pArray[9]; + m[3][1] = pArray[10]; + m[3][2] = pArray[11]; +} + +/**************************************************************************** +* +* XMFLOAT3X4 operators +* +****************************************************************************/ + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMFLOAT3X4::XMFLOAT3X4(const float* pArray) noexcept +{ + assert(pArray != nullptr); + + m[0][0] = pArray[0]; + m[0][1] = pArray[1]; + m[0][2] = pArray[2]; + m[0][3] = pArray[3]; + + m[1][0] = pArray[4]; + m[1][1] = pArray[5]; + m[1][2] = pArray[6]; + m[1][3] = pArray[7]; + + m[2][0] = pArray[8]; + m[2][1] = pArray[9]; + m[2][2] = pArray[10]; + m[2][3] = pArray[11]; +} + +/**************************************************************************** + * + * XMFLOAT4X4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMFLOAT4X4::XMFLOAT4X4(const float* pArray) noexcept +{ + assert(pArray != nullptr); + + m[0][0] = pArray[0]; + m[0][1] = pArray[1]; + m[0][2] = pArray[2]; + m[0][3] = pArray[3]; + + m[1][0] = pArray[4]; + m[1][1] = pArray[5]; + m[1][2] = pArray[6]; + m[1][3] = pArray[7]; + + m[2][0] = pArray[8]; + m[2][1] = pArray[9]; + m[2][2] = pArray[10]; + m[2][3] = pArray[11]; + + m[3][0] = pArray[12]; + m[3][1] = pArray[13]; + m[3][2] = pArray[14]; + m[3][3] = pArray[15]; +} + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathMisc.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathMisc.inl new file mode 100644 index 0000000000000000000000000000000000000000..3fd5e6b6f0391d5b7266efaab10efc35bd8064a6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathMisc.inl @@ -0,0 +1,2493 @@ +//------------------------------------------------------------------------------------- +// DirectXMathMisc.inl -- SIMD C++ Math library +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// +// http://go.microsoft.com/fwlink/?LinkID=615560 +//------------------------------------------------------------------------------------- + +#pragma once + +/**************************************************************************** + * + * Quaternion + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + // Comparison operations + //------------------------------------------------------------------------------ + + //------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMQuaternionEqual +( + FXMVECTOR Q1, + FXMVECTOR Q2 +) noexcept +{ + return XMVector4Equal(Q1, Q2); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMQuaternionNotEqual +( + FXMVECTOR Q1, + FXMVECTOR Q2 +) noexcept +{ + return XMVector4NotEqual(Q1, Q2); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMQuaternionIsNaN(FXMVECTOR Q) noexcept +{ + return XMVector4IsNaN(Q); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMQuaternionIsInfinite(FXMVECTOR Q) noexcept +{ + return XMVector4IsInfinite(Q); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMQuaternionIsIdentity(FXMVECTOR Q) noexcept +{ + return XMVector4Equal(Q, g_XMIdentityR3.v); +} + +//------------------------------------------------------------------------------ +// Computation operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionDot +( + FXMVECTOR Q1, + FXMVECTOR Q2 +) noexcept +{ + return XMVector4Dot(Q1, Q2); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionMultiply +( + FXMVECTOR Q1, + FXMVECTOR Q2 +) noexcept +{ + // Returns the product Q2*Q1 (which is the concatenation of a rotation Q1 followed by the rotation Q2) + + // [ (Q2.w * Q1.x) + (Q2.x * Q1.w) + (Q2.y * Q1.z) - (Q2.z * Q1.y), + // (Q2.w * Q1.y) - (Q2.x * Q1.z) + (Q2.y * Q1.w) + (Q2.z * Q1.x), + // (Q2.w * Q1.z) + (Q2.x * Q1.y) - (Q2.y * Q1.x) + (Q2.z * Q1.w), + // (Q2.w * Q1.w) - (Q2.x * Q1.x) - (Q2.y * Q1.y) - (Q2.z * Q1.z) ] + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + (Q2.vector4_f32[3] * Q1.vector4_f32[0]) + (Q2.vector4_f32[0] * Q1.vector4_f32[3]) + (Q2.vector4_f32[1] * Q1.vector4_f32[2]) - (Q2.vector4_f32[2] * Q1.vector4_f32[1]), + (Q2.vector4_f32[3] * Q1.vector4_f32[1]) - (Q2.vector4_f32[0] * Q1.vector4_f32[2]) + (Q2.vector4_f32[1] * Q1.vector4_f32[3]) + (Q2.vector4_f32[2] * Q1.vector4_f32[0]), + (Q2.vector4_f32[3] * Q1.vector4_f32[2]) + (Q2.vector4_f32[0] * Q1.vector4_f32[1]) - (Q2.vector4_f32[1] * Q1.vector4_f32[0]) + (Q2.vector4_f32[2] * Q1.vector4_f32[3]), + (Q2.vector4_f32[3] * Q1.vector4_f32[3]) - (Q2.vector4_f32[0] * Q1.vector4_f32[0]) - (Q2.vector4_f32[1] * Q1.vector4_f32[1]) - (Q2.vector4_f32[2] * Q1.vector4_f32[2]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 ControlWZYX = { { { 1.0f, -1.0f, 1.0f, -1.0f } } }; + static const XMVECTORF32 ControlZWXY = { { { 1.0f, 1.0f, -1.0f, -1.0f } } }; + static const XMVECTORF32 ControlYXWZ = { { { -1.0f, 1.0f, 1.0f, -1.0f } } }; + + float32x2_t Q2L = vget_low_f32(Q2); + float32x2_t Q2H = vget_high_f32(Q2); + + float32x4_t Q2X = vdupq_lane_f32(Q2L, 0); + float32x4_t Q2Y = vdupq_lane_f32(Q2L, 1); + float32x4_t Q2Z = vdupq_lane_f32(Q2H, 0); + XMVECTOR vResult = vmulq_lane_f32(Q1, Q2H, 1); + + // Mul by Q1WZYX + float32x4_t vTemp = vrev64q_f32(Q1); + vTemp = vcombine_f32(vget_high_f32(vTemp), vget_low_f32(vTemp)); + Q2X = vmulq_f32(Q2X, vTemp); + vResult = vmlaq_f32(vResult, Q2X, ControlWZYX); + + // Mul by Q1ZWXY + vTemp = vreinterpretq_f32_u32(vrev64q_u32(vreinterpretq_u32_f32(vTemp))); + Q2Y = vmulq_f32(Q2Y, vTemp); + vResult = vmlaq_f32(vResult, Q2Y, ControlZWXY); + + // Mul by Q1YXWZ + vTemp = vreinterpretq_f32_u32(vrev64q_u32(vreinterpretq_u32_f32(vTemp))); + vTemp = vcombine_f32(vget_high_f32(vTemp), vget_low_f32(vTemp)); + Q2Z = vmulq_f32(Q2Z, vTemp); + vResult = vmlaq_f32(vResult, Q2Z, ControlYXWZ); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 ControlWZYX = { { { 1.0f, -1.0f, 1.0f, -1.0f } } }; + static const XMVECTORF32 ControlZWXY = { { { 1.0f, 1.0f, -1.0f, -1.0f } } }; + static const XMVECTORF32 ControlYXWZ = { { { -1.0f, 1.0f, 1.0f, -1.0f } } }; + // Copy to SSE registers and use as few as possible for x86 + XMVECTOR Q2X = Q2; + XMVECTOR Q2Y = Q2; + XMVECTOR Q2Z = Q2; + XMVECTOR vResult = Q2; + // Splat with one instruction + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(3, 3, 3, 3)); + Q2X = XM_PERMUTE_PS(Q2X, _MM_SHUFFLE(0, 0, 0, 0)); + Q2Y = XM_PERMUTE_PS(Q2Y, _MM_SHUFFLE(1, 1, 1, 1)); + Q2Z = XM_PERMUTE_PS(Q2Z, _MM_SHUFFLE(2, 2, 2, 2)); + // Retire Q1 and perform Q1*Q2W + vResult = _mm_mul_ps(vResult, Q1); + XMVECTOR Q1Shuffle = Q1; + // Shuffle the copies of Q1 + Q1Shuffle = XM_PERMUTE_PS(Q1Shuffle, _MM_SHUFFLE(0, 1, 2, 3)); + // Mul by Q1WZYX + Q2X = _mm_mul_ps(Q2X, Q1Shuffle); + Q1Shuffle = XM_PERMUTE_PS(Q1Shuffle, _MM_SHUFFLE(2, 3, 0, 1)); + // Flip the signs on y and z + vResult = XM_FMADD_PS(Q2X, ControlWZYX, vResult); + // Mul by Q1ZWXY + Q2Y = _mm_mul_ps(Q2Y, Q1Shuffle); + Q1Shuffle = XM_PERMUTE_PS(Q1Shuffle, _MM_SHUFFLE(0, 1, 2, 3)); + // Flip the signs on z and w + Q2Y = _mm_mul_ps(Q2Y, ControlZWXY); + // Mul by Q1YXWZ + Q2Z = _mm_mul_ps(Q2Z, Q1Shuffle); + // Flip the signs on x and w + Q2Y = XM_FMADD_PS(Q2Z, ControlYXWZ, Q2Y); + vResult = _mm_add_ps(vResult, Q2Y); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionLengthSq(FXMVECTOR Q) noexcept +{ + return XMVector4LengthSq(Q); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionReciprocalLength(FXMVECTOR Q) noexcept +{ + return XMVector4ReciprocalLength(Q); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionLength(FXMVECTOR Q) noexcept +{ + return XMVector4Length(Q); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionNormalizeEst(FXMVECTOR Q) noexcept +{ + return XMVector4NormalizeEst(Q); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionNormalize(FXMVECTOR Q) noexcept +{ + return XMVector4Normalize(Q); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionConjugate(FXMVECTOR Q) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + -Q.vector4_f32[0], + -Q.vector4_f32[1], + -Q.vector4_f32[2], + Q.vector4_f32[3] + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 NegativeOne3 = { { { -1.0f, -1.0f, -1.0f, 1.0f } } }; + return vmulq_f32(Q, NegativeOne3.v); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 NegativeOne3 = { { { -1.0f, -1.0f, -1.0f, 1.0f } } }; + return _mm_mul_ps(Q, NegativeOne3); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionInverse(FXMVECTOR Q) noexcept +{ + XMVECTOR L = XMVector4LengthSq(Q); + XMVECTOR Conjugate = XMQuaternionConjugate(Q); + + XMVECTOR Control = XMVectorLessOrEqual(L, g_XMEpsilon.v); + + XMVECTOR Result = XMVectorDivide(Conjugate, L); + + Result = XMVectorSelect(Result, g_XMZero, Control); + + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionLn(FXMVECTOR Q) noexcept +{ + static const XMVECTORF32 OneMinusEpsilon = { { { 1.0f - 0.00001f, 1.0f - 0.00001f, 1.0f - 0.00001f, 1.0f - 0.00001f } } }; + + XMVECTOR QW = XMVectorSplatW(Q); + XMVECTOR Q0 = XMVectorSelect(g_XMSelect1110.v, Q, g_XMSelect1110.v); + + XMVECTOR ControlW = XMVectorInBounds(QW, OneMinusEpsilon.v); + + XMVECTOR Theta = XMVectorACos(QW); + XMVECTOR SinTheta = XMVectorSin(Theta); + + XMVECTOR S = XMVectorDivide(Theta, SinTheta); + + XMVECTOR Result = XMVectorMultiply(Q0, S); + Result = XMVectorSelect(Q0, Result, ControlW); + + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionExp(FXMVECTOR Q) noexcept +{ + XMVECTOR Theta = XMVector3Length(Q); + + XMVECTOR SinTheta, CosTheta; + XMVectorSinCos(&SinTheta, &CosTheta, Theta); + + XMVECTOR S = XMVectorDivide(SinTheta, Theta); + + XMVECTOR Result = XMVectorMultiply(Q, S); + + const XMVECTOR Zero = XMVectorZero(); + XMVECTOR Control = XMVectorNearEqual(Theta, Zero, g_XMEpsilon.v); + Result = XMVectorSelect(Result, Q, Control); + + Result = XMVectorSelect(CosTheta, Result, g_XMSelect1110.v); + + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionSlerp +( + FXMVECTOR Q0, + FXMVECTOR Q1, + float t +) noexcept +{ + XMVECTOR T = XMVectorReplicate(t); + return XMQuaternionSlerpV(Q0, Q1, T); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionSlerpV +( + FXMVECTOR Q0, + FXMVECTOR Q1, + FXMVECTOR T +) noexcept +{ + assert((XMVectorGetY(T) == XMVectorGetX(T)) && (XMVectorGetZ(T) == XMVectorGetX(T)) && (XMVectorGetW(T) == XMVectorGetX(T))); + + // Result = Q0 * sin((1.0 - t) * Omega) / sin(Omega) + Q1 * sin(t * Omega) / sin(Omega) + +#if defined(_XM_NO_INTRINSICS_) || defined(_XM_ARM_NEON_INTRINSICS_) + + const XMVECTORF32 OneMinusEpsilon = { { { 1.0f - 0.00001f, 1.0f - 0.00001f, 1.0f - 0.00001f, 1.0f - 0.00001f } } }; + + XMVECTOR CosOmega = XMQuaternionDot(Q0, Q1); + + const XMVECTOR Zero = XMVectorZero(); + XMVECTOR Control = XMVectorLess(CosOmega, Zero); + XMVECTOR Sign = XMVectorSelect(g_XMOne.v, g_XMNegativeOne.v, Control); + + CosOmega = XMVectorMultiply(CosOmega, Sign); + + Control = XMVectorLess(CosOmega, OneMinusEpsilon); + + XMVECTOR SinOmega = XMVectorNegativeMultiplySubtract(CosOmega, CosOmega, g_XMOne.v); + SinOmega = XMVectorSqrt(SinOmega); + + XMVECTOR Omega = XMVectorATan2(SinOmega, CosOmega); + + XMVECTOR SignMask = XMVectorSplatSignMask(); + XMVECTOR V01 = XMVectorShiftLeft(T, Zero, 2); + SignMask = XMVectorShiftLeft(SignMask, Zero, 3); + V01 = XMVectorXorInt(V01, SignMask); + V01 = XMVectorAdd(g_XMIdentityR0.v, V01); + + XMVECTOR InvSinOmega = XMVectorReciprocal(SinOmega); + + XMVECTOR S0 = XMVectorMultiply(V01, Omega); + S0 = XMVectorSin(S0); + S0 = XMVectorMultiply(S0, InvSinOmega); + + S0 = XMVectorSelect(V01, S0, Control); + + XMVECTOR S1 = XMVectorSplatY(S0); + S0 = XMVectorSplatX(S0); + + S1 = XMVectorMultiply(S1, Sign); + + XMVECTOR Result = XMVectorMultiply(Q0, S0); + Result = XMVectorMultiplyAdd(Q1, S1, Result); + + return Result; + +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 OneMinusEpsilon = { { { 1.0f - 0.00001f, 1.0f - 0.00001f, 1.0f - 0.00001f, 1.0f - 0.00001f } } }; + static const XMVECTORU32 SignMask2 = { { { 0x80000000, 0x00000000, 0x00000000, 0x00000000 } } }; + + XMVECTOR CosOmega = XMQuaternionDot(Q0, Q1); + + const XMVECTOR Zero = XMVectorZero(); + XMVECTOR Control = XMVectorLess(CosOmega, Zero); + XMVECTOR Sign = XMVectorSelect(g_XMOne, g_XMNegativeOne, Control); + + CosOmega = _mm_mul_ps(CosOmega, Sign); + + Control = XMVectorLess(CosOmega, OneMinusEpsilon); + + XMVECTOR SinOmega = _mm_mul_ps(CosOmega, CosOmega); + SinOmega = _mm_sub_ps(g_XMOne, SinOmega); + SinOmega = _mm_sqrt_ps(SinOmega); + + XMVECTOR Omega = XMVectorATan2(SinOmega, CosOmega); + + XMVECTOR V01 = XM_PERMUTE_PS(T, _MM_SHUFFLE(2, 3, 0, 1)); + V01 = _mm_and_ps(V01, g_XMMaskXY); + V01 = _mm_xor_ps(V01, SignMask2); + V01 = _mm_add_ps(g_XMIdentityR0, V01); + + XMVECTOR S0 = _mm_mul_ps(V01, Omega); + S0 = XMVectorSin(S0); + S0 = _mm_div_ps(S0, SinOmega); + + S0 = XMVectorSelect(V01, S0, Control); + + XMVECTOR S1 = XMVectorSplatY(S0); + S0 = XMVectorSplatX(S0); + + S1 = _mm_mul_ps(S1, Sign); + XMVECTOR Result = _mm_mul_ps(Q0, S0); + S1 = _mm_mul_ps(S1, Q1); + Result = _mm_add_ps(Result, S1); + return Result; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionSquad +( + FXMVECTOR Q0, + FXMVECTOR Q1, + FXMVECTOR Q2, + GXMVECTOR Q3, + float t +) noexcept +{ + XMVECTOR T = XMVectorReplicate(t); + return XMQuaternionSquadV(Q0, Q1, Q2, Q3, T); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionSquadV +( + FXMVECTOR Q0, + FXMVECTOR Q1, + FXMVECTOR Q2, + GXMVECTOR Q3, + HXMVECTOR T +) noexcept +{ + assert((XMVectorGetY(T) == XMVectorGetX(T)) && (XMVectorGetZ(T) == XMVectorGetX(T)) && (XMVectorGetW(T) == XMVectorGetX(T))); + + XMVECTOR TP = T; + const XMVECTOR Two = XMVectorSplatConstant(2, 0); + + XMVECTOR Q03 = XMQuaternionSlerpV(Q0, Q3, T); + XMVECTOR Q12 = XMQuaternionSlerpV(Q1, Q2, T); + + TP = XMVectorNegativeMultiplySubtract(TP, TP, TP); + TP = XMVectorMultiply(TP, Two); + + XMVECTOR Result = XMQuaternionSlerpV(Q03, Q12, TP); + + return Result; +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMQuaternionSquadSetup +( + XMVECTOR* pA, + XMVECTOR* pB, + XMVECTOR* pC, + FXMVECTOR Q0, + FXMVECTOR Q1, + FXMVECTOR Q2, + GXMVECTOR Q3 +) noexcept +{ + assert(pA); + assert(pB); + assert(pC); + + XMVECTOR LS12 = XMQuaternionLengthSq(XMVectorAdd(Q1, Q2)); + XMVECTOR LD12 = XMQuaternionLengthSq(XMVectorSubtract(Q1, Q2)); + XMVECTOR SQ2 = XMVectorNegate(Q2); + + XMVECTOR Control1 = XMVectorLess(LS12, LD12); + SQ2 = XMVectorSelect(Q2, SQ2, Control1); + + XMVECTOR LS01 = XMQuaternionLengthSq(XMVectorAdd(Q0, Q1)); + XMVECTOR LD01 = XMQuaternionLengthSq(XMVectorSubtract(Q0, Q1)); + XMVECTOR SQ0 = XMVectorNegate(Q0); + + XMVECTOR LS23 = XMQuaternionLengthSq(XMVectorAdd(SQ2, Q3)); + XMVECTOR LD23 = XMQuaternionLengthSq(XMVectorSubtract(SQ2, Q3)); + XMVECTOR SQ3 = XMVectorNegate(Q3); + + XMVECTOR Control0 = XMVectorLess(LS01, LD01); + XMVECTOR Control2 = XMVectorLess(LS23, LD23); + + SQ0 = XMVectorSelect(Q0, SQ0, Control0); + SQ3 = XMVectorSelect(Q3, SQ3, Control2); + + XMVECTOR InvQ1 = XMQuaternionInverse(Q1); + XMVECTOR InvQ2 = XMQuaternionInverse(SQ2); + + XMVECTOR LnQ0 = XMQuaternionLn(XMQuaternionMultiply(InvQ1, SQ0)); + XMVECTOR LnQ2 = XMQuaternionLn(XMQuaternionMultiply(InvQ1, SQ2)); + XMVECTOR LnQ1 = XMQuaternionLn(XMQuaternionMultiply(InvQ2, Q1)); + XMVECTOR LnQ3 = XMQuaternionLn(XMQuaternionMultiply(InvQ2, SQ3)); + + const XMVECTOR NegativeOneQuarter = XMVectorSplatConstant(-1, 2); + + XMVECTOR ExpQ02 = XMVectorMultiply(XMVectorAdd(LnQ0, LnQ2), NegativeOneQuarter); + XMVECTOR ExpQ13 = XMVectorMultiply(XMVectorAdd(LnQ1, LnQ3), NegativeOneQuarter); + ExpQ02 = XMQuaternionExp(ExpQ02); + ExpQ13 = XMQuaternionExp(ExpQ13); + + *pA = XMQuaternionMultiply(Q1, ExpQ02); + *pB = XMQuaternionMultiply(SQ2, ExpQ13); + *pC = SQ2; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionBaryCentric +( + FXMVECTOR Q0, + FXMVECTOR Q1, + FXMVECTOR Q2, + float f, + float g +) noexcept +{ + float s = f + g; + + XMVECTOR Result; + if ((s < 0.00001f) && (s > -0.00001f)) + { + Result = Q0; + } + else + { + XMVECTOR Q01 = XMQuaternionSlerp(Q0, Q1, s); + XMVECTOR Q02 = XMQuaternionSlerp(Q0, Q2, s); + + Result = XMQuaternionSlerp(Q01, Q02, g / s); + } + + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionBaryCentricV +( + FXMVECTOR Q0, + FXMVECTOR Q1, + FXMVECTOR Q2, + GXMVECTOR F, + HXMVECTOR G +) noexcept +{ + assert((XMVectorGetY(F) == XMVectorGetX(F)) && (XMVectorGetZ(F) == XMVectorGetX(F)) && (XMVectorGetW(F) == XMVectorGetX(F))); + assert((XMVectorGetY(G) == XMVectorGetX(G)) && (XMVectorGetZ(G) == XMVectorGetX(G)) && (XMVectorGetW(G) == XMVectorGetX(G))); + + const XMVECTOR Epsilon = XMVectorSplatConstant(1, 16); + + XMVECTOR S = XMVectorAdd(F, G); + + XMVECTOR Result; + if (XMVector4InBounds(S, Epsilon)) + { + Result = Q0; + } + else + { + XMVECTOR Q01 = XMQuaternionSlerpV(Q0, Q1, S); + XMVECTOR Q02 = XMQuaternionSlerpV(Q0, Q2, S); + XMVECTOR GS = XMVectorReciprocal(S); + GS = XMVectorMultiply(G, GS); + + Result = XMQuaternionSlerpV(Q01, Q02, GS); + } + + return Result; +} + +//------------------------------------------------------------------------------ +// Transformation operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionIdentity() noexcept +{ + return g_XMIdentityR3.v; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionRotationRollPitchYaw +( + float Pitch, + float Yaw, + float Roll +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + const float halfpitch = Pitch * 0.5f; + float cp = cosf(halfpitch); + float sp = sinf(halfpitch); + + const float halfyaw = Yaw * 0.5f; + float cy = cosf(halfyaw); + float sy = sinf(halfyaw); + + const float halfroll = Roll * 0.5f; + float cr = cosf(halfroll); + float sr = sinf(halfroll); + + XMVECTORF32 vResult = { { { + cr * sp * cy + sr * cp * sy, + cr * cp * sy - sr * sp * cy, + sr * cp * cy - cr * sp * sy, + cr * cp * cy + sr * sp * sy + } } }; + return vResult; +#else + XMVECTOR Angles = XMVectorSet(Pitch, Yaw, Roll, 0.0f); + return XMQuaternionRotationRollPitchYawFromVector(Angles); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionRotationRollPitchYawFromVector +( + FXMVECTOR Angles // +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + const float halfpitch = Angles.vector4_f32[0] * 0.5f; + float cp = cosf(halfpitch); + float sp = sinf(halfpitch); + + const float halfyaw = Angles.vector4_f32[1] * 0.5f; + float cy = cosf(halfyaw); + float sy = sinf(halfyaw); + + const float halfroll = Angles.vector4_f32[2] * 0.5f; + float cr = cosf(halfroll); + float sr = sinf(halfroll); + + XMVECTORF32 vResult = { { { + cr * sp * cy + sr * cp * sy, + cr * cp * sy - sr * sp * cy, + sr * cp * cy - cr * sp * sy, + cr * cp * cy + sr * sp * sy + } } }; + return vResult; +#else + static const XMVECTORF32 Sign = { { { 1.0f, -1.0f, -1.0f, 1.0f } } }; + + XMVECTOR HalfAngles = XMVectorMultiply(Angles, g_XMOneHalf.v); + + XMVECTOR SinAngles, CosAngles; + XMVectorSinCos(&SinAngles, &CosAngles, HalfAngles); + + XMVECTOR P0 = XMVectorPermute(SinAngles, CosAngles); + XMVECTOR Y0 = XMVectorPermute(SinAngles, CosAngles); + XMVECTOR R0 = XMVectorPermute(SinAngles, CosAngles); + XMVECTOR P1 = XMVectorPermute(CosAngles, SinAngles); + XMVECTOR Y1 = XMVectorPermute(CosAngles, SinAngles); + XMVECTOR R1 = XMVectorPermute(CosAngles, SinAngles); + + XMVECTOR Q1 = XMVectorMultiply(P1, Sign.v); + XMVECTOR Q0 = XMVectorMultiply(P0, Y0); + Q1 = XMVectorMultiply(Q1, Y1); + Q0 = XMVectorMultiply(Q0, R0); + XMVECTOR Q = XMVectorMultiplyAdd(Q1, R1, Q0); + + return Q; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionRotationNormal +( + FXMVECTOR NormalAxis, + float Angle +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) || defined(_XM_ARM_NEON_INTRINSICS_) + + XMVECTOR N = XMVectorSelect(g_XMOne.v, NormalAxis, g_XMSelect1110.v); + + float SinV, CosV; + XMScalarSinCos(&SinV, &CosV, 0.5f * Angle); + + XMVECTOR Scale = XMVectorSet(SinV, SinV, SinV, CosV); + return XMVectorMultiply(N, Scale); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR N = _mm_and_ps(NormalAxis, g_XMMask3); + N = _mm_or_ps(N, g_XMIdentityR3); + XMVECTOR Scale = _mm_set_ps1(0.5f * Angle); + XMVECTOR vSine; + XMVECTOR vCosine; + XMVectorSinCos(&vSine, &vCosine, Scale); + Scale = _mm_and_ps(vSine, g_XMMask3); + vCosine = _mm_and_ps(vCosine, g_XMMaskW); + Scale = _mm_or_ps(Scale, vCosine); + N = _mm_mul_ps(N, Scale); + return N; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionRotationAxis +( + FXMVECTOR Axis, + float Angle +) noexcept +{ + assert(!XMVector3Equal(Axis, XMVectorZero())); + assert(!XMVector3IsInfinite(Axis)); + + XMVECTOR Normal = XMVector3Normalize(Axis); + XMVECTOR Q = XMQuaternionRotationNormal(Normal, Angle); + return Q; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMQuaternionRotationMatrix(FXMMATRIX M) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 q; + float r22 = M.m[2][2]; + if (r22 <= 0.f) // x^2 + y^2 >= z^2 + w^2 + { + float dif10 = M.m[1][1] - M.m[0][0]; + float omr22 = 1.f - r22; + if (dif10 <= 0.f) // x^2 >= y^2 + { + float fourXSqr = omr22 - dif10; + float inv4x = 0.5f / sqrtf(fourXSqr); + q.f[0] = fourXSqr * inv4x; + q.f[1] = (M.m[0][1] + M.m[1][0]) * inv4x; + q.f[2] = (M.m[0][2] + M.m[2][0]) * inv4x; + q.f[3] = (M.m[1][2] - M.m[2][1]) * inv4x; + } + else // y^2 >= x^2 + { + float fourYSqr = omr22 + dif10; + float inv4y = 0.5f / sqrtf(fourYSqr); + q.f[0] = (M.m[0][1] + M.m[1][0]) * inv4y; + q.f[1] = fourYSqr * inv4y; + q.f[2] = (M.m[1][2] + M.m[2][1]) * inv4y; + q.f[3] = (M.m[2][0] - M.m[0][2]) * inv4y; + } + } + else // z^2 + w^2 >= x^2 + y^2 + { + float sum10 = M.m[1][1] + M.m[0][0]; + float opr22 = 1.f + r22; + if (sum10 <= 0.f) // z^2 >= w^2 + { + float fourZSqr = opr22 - sum10; + float inv4z = 0.5f / sqrtf(fourZSqr); + q.f[0] = (M.m[0][2] + M.m[2][0]) * inv4z; + q.f[1] = (M.m[1][2] + M.m[2][1]) * inv4z; + q.f[2] = fourZSqr * inv4z; + q.f[3] = (M.m[0][1] - M.m[1][0]) * inv4z; + } + else // w^2 >= z^2 + { + float fourWSqr = opr22 + sum10; + float inv4w = 0.5f / sqrtf(fourWSqr); + q.f[0] = (M.m[1][2] - M.m[2][1]) * inv4w; + q.f[1] = (M.m[2][0] - M.m[0][2]) * inv4w; + q.f[2] = (M.m[0][1] - M.m[1][0]) * inv4w; + q.f[3] = fourWSqr * inv4w; + } + } + return q.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 XMPMMP = { { { +1.0f, -1.0f, -1.0f, +1.0f } } }; + static const XMVECTORF32 XMMPMP = { { { -1.0f, +1.0f, -1.0f, +1.0f } } }; + static const XMVECTORF32 XMMMPP = { { { -1.0f, -1.0f, +1.0f, +1.0f } } }; + static const XMVECTORU32 Select0110 = { { { XM_SELECT_0, XM_SELECT_1, XM_SELECT_1, XM_SELECT_0 } } }; + static const XMVECTORU32 Select0010 = { { { XM_SELECT_0, XM_SELECT_0, XM_SELECT_1, XM_SELECT_0 } } }; + + float32x4_t r0 = M.r[0]; + float32x4_t r1 = M.r[1]; + float32x4_t r2 = M.r[2]; + + float32x4_t r00 = vdupq_lane_f32(vget_low_f32(r0), 0); + float32x4_t r11 = vdupq_lane_f32(vget_low_f32(r1), 1); + float32x4_t r22 = vdupq_lane_f32(vget_high_f32(r2), 0); + + // x^2 >= y^2 equivalent to r11 - r00 <= 0 + float32x4_t r11mr00 = vsubq_f32(r11, r00); + uint32x4_t x2gey2 = vcleq_f32(r11mr00, g_XMZero); + + // z^2 >= w^2 equivalent to r11 + r00 <= 0 + float32x4_t r11pr00 = vaddq_f32(r11, r00); + uint32x4_t z2gew2 = vcleq_f32(r11pr00, g_XMZero); + + // x^2 + y^2 >= z^2 + w^2 equivalent to r22 <= 0 + uint32x4_t x2py2gez2pw2 = vcleq_f32(r22, g_XMZero); + + // (4*x^2, 4*y^2, 4*z^2, 4*w^2) + float32x4_t t0 = vmulq_f32(XMPMMP, r00); + float32x4_t x2y2z2w2 = vmlaq_f32(t0, XMMPMP, r11); + x2y2z2w2 = vmlaq_f32(x2y2z2w2, XMMMPP, r22); + x2y2z2w2 = vaddq_f32(x2y2z2w2, g_XMOne); + + // (r01, r02, r12, r11) + t0 = vextq_f32(r0, r0, 1); + float32x4_t t1 = vextq_f32(r1, r1, 1); + t0 = vcombine_f32(vget_low_f32(t0), vrev64_f32(vget_low_f32(t1))); + + // (r10, r20, r21, r10) + t1 = vextq_f32(r2, r2, 3); + float32x4_t r10 = vdupq_lane_f32(vget_low_f32(r1), 0); + t1 = vbslq_f32(Select0110, t1, r10); + + // (4*x*y, 4*x*z, 4*y*z, unused) + float32x4_t xyxzyz = vaddq_f32(t0, t1); + + // (r21, r20, r10, r10) + t0 = vcombine_f32(vrev64_f32(vget_low_f32(r2)), vget_low_f32(r10)); + + // (r12, r02, r01, r12) + float32x4_t t2 = vcombine_f32(vrev64_f32(vget_high_f32(r0)), vrev64_f32(vget_low_f32(r0))); + float32x4_t t3 = vdupq_lane_f32(vget_high_f32(r1), 0); + t1 = vbslq_f32(Select0110, t2, t3); + + // (4*x*w, 4*y*w, 4*z*w, unused) + float32x4_t xwywzw = vsubq_f32(t0, t1); + xwywzw = vmulq_f32(XMMPMP, xwywzw); + + // (4*x*x, 4*x*y, 4*x*z, 4*x*w) + t0 = vextq_f32(xyxzyz, xyxzyz, 3); + t1 = vbslq_f32(Select0110, t0, x2y2z2w2); + t2 = vdupq_lane_f32(vget_low_f32(xwywzw), 0); + float32x4_t tensor0 = vbslq_f32(g_XMSelect1110, t1, t2); + + // (4*y*x, 4*y*y, 4*y*z, 4*y*w) + t0 = vbslq_f32(g_XMSelect1011, xyxzyz, x2y2z2w2); + t1 = vdupq_lane_f32(vget_low_f32(xwywzw), 1); + float32x4_t tensor1 = vbslq_f32(g_XMSelect1110, t0, t1); + + // (4*z*x, 4*z*y, 4*z*z, 4*z*w) + t0 = vextq_f32(xyxzyz, xyxzyz, 1); + t1 = vcombine_f32(vget_low_f32(t0), vrev64_f32(vget_high_f32(xwywzw))); + float32x4_t tensor2 = vbslq_f32(Select0010, x2y2z2w2, t1); + + // (4*w*x, 4*w*y, 4*w*z, 4*w*w) + float32x4_t tensor3 = vbslq_f32(g_XMSelect1110, xwywzw, x2y2z2w2); + + // Select the row of the tensor-product matrix that has the largest + // magnitude. + t0 = vbslq_f32(x2gey2, tensor0, tensor1); + t1 = vbslq_f32(z2gew2, tensor2, tensor3); + t2 = vbslq_f32(x2py2gez2pw2, t0, t1); + + // Normalize the row. No division by zero is possible because the + // quaternion is unit-length (and the row is a nonzero multiple of + // the quaternion). + t0 = XMVector4Length(t2); + return XMVectorDivide(t2, t0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 XMPMMP = { { { +1.0f, -1.0f, -1.0f, +1.0f } } }; + static const XMVECTORF32 XMMPMP = { { { -1.0f, +1.0f, -1.0f, +1.0f } } }; + static const XMVECTORF32 XMMMPP = { { { -1.0f, -1.0f, +1.0f, +1.0f } } }; + + XMVECTOR r0 = M.r[0]; // (r00, r01, r02, 0) + XMVECTOR r1 = M.r[1]; // (r10, r11, r12, 0) + XMVECTOR r2 = M.r[2]; // (r20, r21, r22, 0) + + // (r00, r00, r00, r00) + XMVECTOR r00 = XM_PERMUTE_PS(r0, _MM_SHUFFLE(0, 0, 0, 0)); + // (r11, r11, r11, r11) + XMVECTOR r11 = XM_PERMUTE_PS(r1, _MM_SHUFFLE(1, 1, 1, 1)); + // (r22, r22, r22, r22) + XMVECTOR r22 = XM_PERMUTE_PS(r2, _MM_SHUFFLE(2, 2, 2, 2)); + + // x^2 >= y^2 equivalent to r11 - r00 <= 0 + // (r11 - r00, r11 - r00, r11 - r00, r11 - r00) + XMVECTOR r11mr00 = _mm_sub_ps(r11, r00); + XMVECTOR x2gey2 = _mm_cmple_ps(r11mr00, g_XMZero); + + // z^2 >= w^2 equivalent to r11 + r00 <= 0 + // (r11 + r00, r11 + r00, r11 + r00, r11 + r00) + XMVECTOR r11pr00 = _mm_add_ps(r11, r00); + XMVECTOR z2gew2 = _mm_cmple_ps(r11pr00, g_XMZero); + + // x^2 + y^2 >= z^2 + w^2 equivalent to r22 <= 0 + XMVECTOR x2py2gez2pw2 = _mm_cmple_ps(r22, g_XMZero); + + // (4*x^2, 4*y^2, 4*z^2, 4*w^2) + XMVECTOR t0 = XM_FMADD_PS(XMPMMP, r00, g_XMOne); + XMVECTOR t1 = _mm_mul_ps(XMMPMP, r11); + XMVECTOR t2 = XM_FMADD_PS(XMMMPP, r22, t0); + XMVECTOR x2y2z2w2 = _mm_add_ps(t1, t2); + + // (r01, r02, r12, r11) + t0 = _mm_shuffle_ps(r0, r1, _MM_SHUFFLE(1, 2, 2, 1)); + // (r10, r10, r20, r21) + t1 = _mm_shuffle_ps(r1, r2, _MM_SHUFFLE(1, 0, 0, 0)); + // (r10, r20, r21, r10) + t1 = XM_PERMUTE_PS(t1, _MM_SHUFFLE(1, 3, 2, 0)); + // (4*x*y, 4*x*z, 4*y*z, unused) + XMVECTOR xyxzyz = _mm_add_ps(t0, t1); + + // (r21, r20, r10, r10) + t0 = _mm_shuffle_ps(r2, r1, _MM_SHUFFLE(0, 0, 0, 1)); + // (r12, r12, r02, r01) + t1 = _mm_shuffle_ps(r1, r0, _MM_SHUFFLE(1, 2, 2, 2)); + // (r12, r02, r01, r12) + t1 = XM_PERMUTE_PS(t1, _MM_SHUFFLE(1, 3, 2, 0)); + // (4*x*w, 4*y*w, 4*z*w, unused) + XMVECTOR xwywzw = _mm_sub_ps(t0, t1); + xwywzw = _mm_mul_ps(XMMPMP, xwywzw); + + // (4*x^2, 4*y^2, 4*x*y, unused) + t0 = _mm_shuffle_ps(x2y2z2w2, xyxzyz, _MM_SHUFFLE(0, 0, 1, 0)); + // (4*z^2, 4*w^2, 4*z*w, unused) + t1 = _mm_shuffle_ps(x2y2z2w2, xwywzw, _MM_SHUFFLE(0, 2, 3, 2)); + // (4*x*z, 4*y*z, 4*x*w, 4*y*w) + t2 = _mm_shuffle_ps(xyxzyz, xwywzw, _MM_SHUFFLE(1, 0, 2, 1)); + + // (4*x*x, 4*x*y, 4*x*z, 4*x*w) + XMVECTOR tensor0 = _mm_shuffle_ps(t0, t2, _MM_SHUFFLE(2, 0, 2, 0)); + // (4*y*x, 4*y*y, 4*y*z, 4*y*w) + XMVECTOR tensor1 = _mm_shuffle_ps(t0, t2, _MM_SHUFFLE(3, 1, 1, 2)); + // (4*z*x, 4*z*y, 4*z*z, 4*z*w) + XMVECTOR tensor2 = _mm_shuffle_ps(t2, t1, _MM_SHUFFLE(2, 0, 1, 0)); + // (4*w*x, 4*w*y, 4*w*z, 4*w*w) + XMVECTOR tensor3 = _mm_shuffle_ps(t2, t1, _MM_SHUFFLE(1, 2, 3, 2)); + + // Select the row of the tensor-product matrix that has the largest + // magnitude. + t0 = _mm_and_ps(x2gey2, tensor0); + t1 = _mm_andnot_ps(x2gey2, tensor1); + t0 = _mm_or_ps(t0, t1); + t1 = _mm_and_ps(z2gew2, tensor2); + t2 = _mm_andnot_ps(z2gew2, tensor3); + t1 = _mm_or_ps(t1, t2); + t0 = _mm_and_ps(x2py2gez2pw2, t0); + t1 = _mm_andnot_ps(x2py2gez2pw2, t1); + t2 = _mm_or_ps(t0, t1); + + // Normalize the row. No division by zero is possible because the + // quaternion is unit-length (and the row is a nonzero multiple of + // the quaternion). + t0 = XMVector4Length(t2); + return _mm_div_ps(t2, t0); +#endif +} + +//------------------------------------------------------------------------------ +// Conversion operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMQuaternionToAxisAngle +( + XMVECTOR* pAxis, + float* pAngle, + FXMVECTOR Q +) noexcept +{ + assert(pAxis); + assert(pAngle); + + *pAxis = Q; + + *pAngle = 2.0f * XMScalarACos(XMVectorGetW(Q)); +} + +/**************************************************************************** + * + * Plane + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + // Comparison operations + //------------------------------------------------------------------------------ + + //------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMPlaneEqual +( + FXMVECTOR P1, + FXMVECTOR P2 +) noexcept +{ + return XMVector4Equal(P1, P2); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMPlaneNearEqual +( + FXMVECTOR P1, + FXMVECTOR P2, + FXMVECTOR Epsilon +) noexcept +{ + XMVECTOR NP1 = XMPlaneNormalize(P1); + XMVECTOR NP2 = XMPlaneNormalize(P2); + return XMVector4NearEqual(NP1, NP2, Epsilon); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMPlaneNotEqual +( + FXMVECTOR P1, + FXMVECTOR P2 +) noexcept +{ + return XMVector4NotEqual(P1, P2); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMPlaneIsNaN(FXMVECTOR P) noexcept +{ + return XMVector4IsNaN(P); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMPlaneIsInfinite(FXMVECTOR P) noexcept +{ + return XMVector4IsInfinite(P); +} + +//------------------------------------------------------------------------------ +// Computation operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMPlaneDot +( + FXMVECTOR P, + FXMVECTOR V +) noexcept +{ + return XMVector4Dot(P, V); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMPlaneDotCoord +( + FXMVECTOR P, + FXMVECTOR V +) noexcept +{ + // Result = P[0] * V[0] + P[1] * V[1] + P[2] * V[2] + P[3] + + XMVECTOR V3 = XMVectorSelect(g_XMOne.v, V, g_XMSelect1110.v); + XMVECTOR Result = XMVector4Dot(P, V3); + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMPlaneDotNormal +( + FXMVECTOR P, + FXMVECTOR V +) noexcept +{ + return XMVector3Dot(P, V); +} + +//------------------------------------------------------------------------------ +// XMPlaneNormalizeEst uses a reciprocal estimate and +// returns QNaN on zero and infinite vectors. + +inline XMVECTOR XM_CALLCONV XMPlaneNormalizeEst(FXMVECTOR P) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) || defined(_XM_ARM_NEON_INTRINSICS_) + + XMVECTOR Result = XMVector3ReciprocalLengthEst(P); + return XMVectorMultiply(P, Result); + +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(P, P, 0x7f); + XMVECTOR vResult = _mm_rsqrt_ps(vTemp); + return _mm_mul_ps(vResult, P); +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product + XMVECTOR vDot = _mm_mul_ps(P, P); + // x=Dot.y, y=Dot.z + XMVECTOR vTemp = XM_PERMUTE_PS(vDot, _MM_SHUFFLE(2, 1, 2, 1)); + // Result.x = x+y + vDot = _mm_add_ss(vDot, vTemp); + // x=Dot.z + vTemp = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(1, 1, 1, 1)); + // Result.x = (x+y)+z + vDot = _mm_add_ss(vDot, vTemp); + // Splat x + vDot = XM_PERMUTE_PS(vDot, _MM_SHUFFLE(0, 0, 0, 0)); + // Get the reciprocal + vDot = _mm_rsqrt_ps(vDot); + // Get the reciprocal + vDot = _mm_mul_ps(vDot, P); + return vDot; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMPlaneNormalize(FXMVECTOR P) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float fLengthSq = sqrtf((P.vector4_f32[0] * P.vector4_f32[0]) + (P.vector4_f32[1] * P.vector4_f32[1]) + (P.vector4_f32[2] * P.vector4_f32[2])); + // Prevent divide by zero + if (fLengthSq > 0) + { + fLengthSq = 1.0f / fLengthSq; + } + XMVECTORF32 vResult = { { { + P.vector4_f32[0] * fLengthSq, + P.vector4_f32[1] * fLengthSq, + P.vector4_f32[2] * fLengthSq, + P.vector4_f32[3] * fLengthSq + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTOR vLength = XMVector3ReciprocalLength(P); + return XMVectorMultiply(P, vLength); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vLengthSq = _mm_dp_ps(P, P, 0x7f); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Reciprocal mul to perform the normalization + vResult = _mm_div_ps(P, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vLengthSq); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y and z only + XMVECTOR vLengthSq = _mm_mul_ps(P, P); + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(2, 1, 2, 1)); + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vTemp = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(1, 1, 1, 1)); + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Reciprocal mul to perform the normalization + vResult = _mm_div_ps(P, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vLengthSq); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMPlaneIntersectLine +( + FXMVECTOR P, + FXMVECTOR LinePoint1, + FXMVECTOR LinePoint2 +) noexcept +{ + XMVECTOR V1 = XMVector3Dot(P, LinePoint1); + XMVECTOR V2 = XMVector3Dot(P, LinePoint2); + XMVECTOR D = XMVectorSubtract(V1, V2); + + XMVECTOR VT = XMPlaneDotCoord(P, LinePoint1); + VT = XMVectorDivide(VT, D); + + XMVECTOR Point = XMVectorSubtract(LinePoint2, LinePoint1); + Point = XMVectorMultiplyAdd(Point, VT, LinePoint1); + + const XMVECTOR Zero = XMVectorZero(); + XMVECTOR Control = XMVectorNearEqual(D, Zero, g_XMEpsilon.v); + + return XMVectorSelect(Point, g_XMQNaN.v, Control); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMPlaneIntersectPlane +( + XMVECTOR* pLinePoint1, + XMVECTOR* pLinePoint2, + FXMVECTOR P1, + FXMVECTOR P2 +) noexcept +{ + assert(pLinePoint1); + assert(pLinePoint2); + + XMVECTOR V1 = XMVector3Cross(P2, P1); + + XMVECTOR LengthSq = XMVector3LengthSq(V1); + + XMVECTOR V2 = XMVector3Cross(P2, V1); + + XMVECTOR P1W = XMVectorSplatW(P1); + XMVECTOR Point = XMVectorMultiply(V2, P1W); + + XMVECTOR V3 = XMVector3Cross(V1, P1); + + XMVECTOR P2W = XMVectorSplatW(P2); + Point = XMVectorMultiplyAdd(V3, P2W, Point); + + XMVECTOR LinePoint1 = XMVectorDivide(Point, LengthSq); + + XMVECTOR LinePoint2 = XMVectorAdd(LinePoint1, V1); + + XMVECTOR Control = XMVectorLessOrEqual(LengthSq, g_XMEpsilon.v); + *pLinePoint1 = XMVectorSelect(LinePoint1, g_XMQNaN.v, Control); + *pLinePoint2 = XMVectorSelect(LinePoint2, g_XMQNaN.v, Control); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMPlaneTransform +( + FXMVECTOR P, + FXMMATRIX ITM +) noexcept +{ + XMVECTOR W = XMVectorSplatW(P); + XMVECTOR Z = XMVectorSplatZ(P); + XMVECTOR Y = XMVectorSplatY(P); + XMVECTOR X = XMVectorSplatX(P); + + XMVECTOR Result = XMVectorMultiply(W, ITM.r[3]); + Result = XMVectorMultiplyAdd(Z, ITM.r[2], Result); + Result = XMVectorMultiplyAdd(Y, ITM.r[1], Result); + Result = XMVectorMultiplyAdd(X, ITM.r[0], Result); + return Result; +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMFLOAT4* XM_CALLCONV XMPlaneTransformStream +( + XMFLOAT4* pOutputStream, + size_t OutputStride, + const XMFLOAT4* pInputStream, + size_t InputStride, + size_t PlaneCount, + FXMMATRIX ITM +) noexcept +{ + return XMVector4TransformStream(pOutputStream, + OutputStride, + pInputStream, + InputStride, + PlaneCount, + ITM); +} + +//------------------------------------------------------------------------------ +// Conversion operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMPlaneFromPointNormal +( + FXMVECTOR Point, + FXMVECTOR Normal +) noexcept +{ + XMVECTOR W = XMVector3Dot(Point, Normal); + W = XMVectorNegate(W); + return XMVectorSelect(W, Normal, g_XMSelect1110.v); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMPlaneFromPoints +( + FXMVECTOR Point1, + FXMVECTOR Point2, + FXMVECTOR Point3 +) noexcept +{ + XMVECTOR V21 = XMVectorSubtract(Point1, Point2); + XMVECTOR V31 = XMVectorSubtract(Point1, Point3); + + XMVECTOR N = XMVector3Cross(V21, V31); + N = XMVector3Normalize(N); + + XMVECTOR D = XMPlaneDotNormal(N, Point1); + D = XMVectorNegate(D); + + XMVECTOR Result = XMVectorSelect(D, N, g_XMSelect1110.v); + + return Result; +} + +/**************************************************************************** + * + * Color + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + // Comparison operations + //------------------------------------------------------------------------------ + + //------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMColorEqual +( + FXMVECTOR C1, + FXMVECTOR C2 +) noexcept +{ + return XMVector4Equal(C1, C2); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMColorNotEqual +( + FXMVECTOR C1, + FXMVECTOR C2 +) noexcept +{ + return XMVector4NotEqual(C1, C2); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMColorGreater +( + FXMVECTOR C1, + FXMVECTOR C2 +) noexcept +{ + return XMVector4Greater(C1, C2); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMColorGreaterOrEqual +( + FXMVECTOR C1, + FXMVECTOR C2 +) noexcept +{ + return XMVector4GreaterOrEqual(C1, C2); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMColorLess +( + FXMVECTOR C1, + FXMVECTOR C2 +) noexcept +{ + return XMVector4Less(C1, C2); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMColorLessOrEqual +( + FXMVECTOR C1, + FXMVECTOR C2 +) noexcept +{ + return XMVector4LessOrEqual(C1, C2); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMColorIsNaN(FXMVECTOR C) noexcept +{ + return XMVector4IsNaN(C); +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMColorIsInfinite(FXMVECTOR C) noexcept +{ + return XMVector4IsInfinite(C); +} + +//------------------------------------------------------------------------------ +// Computation operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorNegative(FXMVECTOR vColor) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + 1.0f - vColor.vector4_f32[0], + 1.0f - vColor.vector4_f32[1], + 1.0f - vColor.vector4_f32[2], + vColor.vector4_f32[3] + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vTemp = veorq_u32(vreinterpretq_u32_f32(vColor), g_XMNegate3); + return vaddq_f32(vreinterpretq_f32_u32(vTemp), g_XMOne3); +#elif defined(_XM_SSE_INTRINSICS_) + // Negate only x,y and z. + XMVECTOR vTemp = _mm_xor_ps(vColor, g_XMNegate3); + // Add 1,1,1,0 to -x,-y,-z,w + return _mm_add_ps(vTemp, g_XMOne3); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorModulate +( + FXMVECTOR C1, + FXMVECTOR C2 +) noexcept +{ + return XMVectorMultiply(C1, C2); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorAdjustSaturation +( + FXMVECTOR vColor, + float fSaturation +) noexcept +{ + // Luminance = 0.2125f * C[0] + 0.7154f * C[1] + 0.0721f * C[2]; + // Result = (C - Luminance) * Saturation + Luminance; + + const XMVECTORF32 gvLuminance = { { { 0.2125f, 0.7154f, 0.0721f, 0.0f } } }; +#if defined(_XM_NO_INTRINSICS_) + float fLuminance = (vColor.vector4_f32[0] * gvLuminance.f[0]) + (vColor.vector4_f32[1] * gvLuminance.f[1]) + (vColor.vector4_f32[2] * gvLuminance.f[2]); + XMVECTOR vResult; + vResult.vector4_f32[0] = ((vColor.vector4_f32[0] - fLuminance) * fSaturation) + fLuminance; + vResult.vector4_f32[1] = ((vColor.vector4_f32[1] - fLuminance) * fSaturation) + fLuminance; + vResult.vector4_f32[2] = ((vColor.vector4_f32[2] - fLuminance) * fSaturation) + fLuminance; + vResult.vector4_f32[3] = vColor.vector4_f32[3]; + return vResult; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTOR vLuminance = XMVector3Dot(vColor, gvLuminance); + XMVECTOR vResult = vsubq_f32(vColor, vLuminance); + vResult = vmlaq_n_f32(vLuminance, vResult, fSaturation); + return vbslq_f32(g_XMSelect1110, vResult, vColor); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vLuminance = XMVector3Dot(vColor, gvLuminance); + // Splat fSaturation + XMVECTOR vSaturation = _mm_set_ps1(fSaturation); + // vResult = ((vColor-vLuminance)*vSaturation)+vLuminance; + XMVECTOR vResult = _mm_sub_ps(vColor, vLuminance); + vResult = XM_FMADD_PS(vResult, vSaturation, vLuminance); + // Retain w from the source color + vLuminance = _mm_shuffle_ps(vResult, vColor, _MM_SHUFFLE(3, 2, 2, 2)); // x = vResult.z,y = vResult.z,z = vColor.z,w=vColor.w + vResult = _mm_shuffle_ps(vResult, vLuminance, _MM_SHUFFLE(3, 0, 1, 0)); // x = vResult.x,y = vResult.y,z = vResult.z,w=vColor.w + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorAdjustContrast +( + FXMVECTOR vColor, + float fContrast +) noexcept +{ + // Result = (vColor - 0.5f) * fContrast + 0.5f; + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + ((vColor.vector4_f32[0] - 0.5f) * fContrast) + 0.5f, + ((vColor.vector4_f32[1] - 0.5f) * fContrast) + 0.5f, + ((vColor.vector4_f32[2] - 0.5f) * fContrast) + 0.5f, + vColor.vector4_f32[3] // Leave W untouched + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTOR vResult = vsubq_f32(vColor, g_XMOneHalf.v); + vResult = vmlaq_n_f32(g_XMOneHalf.v, vResult, fContrast); + return vbslq_f32(g_XMSelect1110, vResult, vColor); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vScale = _mm_set_ps1(fContrast); // Splat the scale + XMVECTOR vResult = _mm_sub_ps(vColor, g_XMOneHalf); // Subtract 0.5f from the source (Saving source) + vResult = XM_FMADD_PS(vResult, vScale, g_XMOneHalf); +// Retain w from the source color + vScale = _mm_shuffle_ps(vResult, vColor, _MM_SHUFFLE(3, 2, 2, 2)); // x = vResult.z,y = vResult.z,z = vColor.z,w=vColor.w + vResult = _mm_shuffle_ps(vResult, vScale, _MM_SHUFFLE(3, 0, 1, 0)); // x = vResult.x,y = vResult.y,z = vResult.z,w=vColor.w + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorRGBToHSL(FXMVECTOR rgb) noexcept +{ + XMVECTOR r = XMVectorSplatX(rgb); + XMVECTOR g = XMVectorSplatY(rgb); + XMVECTOR b = XMVectorSplatZ(rgb); + + XMVECTOR min = XMVectorMin(r, XMVectorMin(g, b)); + XMVECTOR max = XMVectorMax(r, XMVectorMax(g, b)); + + XMVECTOR l = XMVectorMultiply(XMVectorAdd(min, max), g_XMOneHalf); + + XMVECTOR d = XMVectorSubtract(max, min); + + XMVECTOR la = XMVectorSelect(rgb, l, g_XMSelect1110); + + if (XMVector3Less(d, g_XMEpsilon)) + { + // Achromatic, assume H and S of 0 + return XMVectorSelect(la, g_XMZero, g_XMSelect1100); + } + else + { + XMVECTOR s, h; + + XMVECTOR d2 = XMVectorAdd(min, max); + + if (XMVector3Greater(l, g_XMOneHalf)) + { + // d / (2-max-min) + s = XMVectorDivide(d, XMVectorSubtract(g_XMTwo, d2)); + } + else + { + // d / (max+min) + s = XMVectorDivide(d, d2); + } + + if (XMVector3Equal(r, max)) + { + // Red is max + h = XMVectorDivide(XMVectorSubtract(g, b), d); + } + else if (XMVector3Equal(g, max)) + { + // Green is max + h = XMVectorDivide(XMVectorSubtract(b, r), d); + h = XMVectorAdd(h, g_XMTwo); + } + else + { + // Blue is max + h = XMVectorDivide(XMVectorSubtract(r, g), d); + h = XMVectorAdd(h, g_XMFour); + } + + h = XMVectorDivide(h, g_XMSix); + + if (XMVector3Less(h, g_XMZero)) + h = XMVectorAdd(h, g_XMOne); + + XMVECTOR lha = XMVectorSelect(la, h, g_XMSelect1100); + return XMVectorSelect(s, lha, g_XMSelect1011); + } +} + +//------------------------------------------------------------------------------ + +namespace Internal +{ + + inline XMVECTOR XM_CALLCONV XMColorHue2Clr(FXMVECTOR p, FXMVECTOR q, FXMVECTOR h) noexcept + { + static const XMVECTORF32 oneSixth = { { { 1.0f / 6.0f, 1.0f / 6.0f, 1.0f / 6.0f, 1.0f / 6.0f } } }; + static const XMVECTORF32 twoThirds = { { { 2.0f / 3.0f, 2.0f / 3.0f, 2.0f / 3.0f, 2.0f / 3.0f } } }; + + XMVECTOR t = h; + + if (XMVector3Less(t, g_XMZero)) + t = XMVectorAdd(t, g_XMOne); + + if (XMVector3Greater(t, g_XMOne)) + t = XMVectorSubtract(t, g_XMOne); + + if (XMVector3Less(t, oneSixth)) + { + // p + (q - p) * 6 * t + XMVECTOR t1 = XMVectorSubtract(q, p); + XMVECTOR t2 = XMVectorMultiply(g_XMSix, t); + return XMVectorMultiplyAdd(t1, t2, p); + } + + if (XMVector3Less(t, g_XMOneHalf)) + return q; + + if (XMVector3Less(t, twoThirds)) + { + // p + (q - p) * 6 * (2/3 - t) + XMVECTOR t1 = XMVectorSubtract(q, p); + XMVECTOR t2 = XMVectorMultiply(g_XMSix, XMVectorSubtract(twoThirds, t)); + return XMVectorMultiplyAdd(t1, t2, p); + } + + return p; + } + +} // namespace Internal + +inline XMVECTOR XM_CALLCONV XMColorHSLToRGB(FXMVECTOR hsl) noexcept +{ + static const XMVECTORF32 oneThird = { { { 1.0f / 3.0f, 1.0f / 3.0f, 1.0f / 3.0f, 1.0f / 3.0f } } }; + + XMVECTOR s = XMVectorSplatY(hsl); + XMVECTOR l = XMVectorSplatZ(hsl); + + if (XMVector3NearEqual(s, g_XMZero, g_XMEpsilon)) + { + // Achromatic + return XMVectorSelect(hsl, l, g_XMSelect1110); + } + else + { + XMVECTOR h = XMVectorSplatX(hsl); + + XMVECTOR q; + if (XMVector3Less(l, g_XMOneHalf)) + { + q = XMVectorMultiply(l, XMVectorAdd(g_XMOne, s)); + } + else + { + q = XMVectorSubtract(XMVectorAdd(l, s), XMVectorMultiply(l, s)); + } + + XMVECTOR p = XMVectorSubtract(XMVectorMultiply(g_XMTwo, l), q); + + XMVECTOR r = DirectX::Internal::XMColorHue2Clr(p, q, XMVectorAdd(h, oneThird)); + XMVECTOR g = DirectX::Internal::XMColorHue2Clr(p, q, h); + XMVECTOR b = DirectX::Internal::XMColorHue2Clr(p, q, XMVectorSubtract(h, oneThird)); + + XMVECTOR rg = XMVectorSelect(g, r, g_XMSelect1000); + XMVECTOR ba = XMVectorSelect(hsl, b, g_XMSelect1110); + + return XMVectorSelect(ba, rg, g_XMSelect1100); + } +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorRGBToHSV(FXMVECTOR rgb) noexcept +{ + XMVECTOR r = XMVectorSplatX(rgb); + XMVECTOR g = XMVectorSplatY(rgb); + XMVECTOR b = XMVectorSplatZ(rgb); + + XMVECTOR min = XMVectorMin(r, XMVectorMin(g, b)); + XMVECTOR v = XMVectorMax(r, XMVectorMax(g, b)); + + XMVECTOR d = XMVectorSubtract(v, min); + + XMVECTOR s = (XMVector3NearEqual(v, g_XMZero, g_XMEpsilon)) ? g_XMZero : XMVectorDivide(d, v); + + if (XMVector3Less(d, g_XMEpsilon)) + { + // Achromatic, assume H of 0 + XMVECTOR hv = XMVectorSelect(v, g_XMZero, g_XMSelect1000); + XMVECTOR hva = XMVectorSelect(rgb, hv, g_XMSelect1110); + return XMVectorSelect(s, hva, g_XMSelect1011); + } + else + { + XMVECTOR h; + + if (XMVector3Equal(r, v)) + { + // Red is max + h = XMVectorDivide(XMVectorSubtract(g, b), d); + + if (XMVector3Less(g, b)) + h = XMVectorAdd(h, g_XMSix); + } + else if (XMVector3Equal(g, v)) + { + // Green is max + h = XMVectorDivide(XMVectorSubtract(b, r), d); + h = XMVectorAdd(h, g_XMTwo); + } + else + { + // Blue is max + h = XMVectorDivide(XMVectorSubtract(r, g), d); + h = XMVectorAdd(h, g_XMFour); + } + + h = XMVectorDivide(h, g_XMSix); + + XMVECTOR hv = XMVectorSelect(v, h, g_XMSelect1000); + XMVECTOR hva = XMVectorSelect(rgb, hv, g_XMSelect1110); + return XMVectorSelect(s, hva, g_XMSelect1011); + } +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorHSVToRGB(FXMVECTOR hsv) noexcept +{ + XMVECTOR h = XMVectorSplatX(hsv); + XMVECTOR s = XMVectorSplatY(hsv); + XMVECTOR v = XMVectorSplatZ(hsv); + + XMVECTOR h6 = XMVectorMultiply(h, g_XMSix); + + XMVECTOR i = XMVectorFloor(h6); + XMVECTOR f = XMVectorSubtract(h6, i); + + // p = v* (1-s) + XMVECTOR p = XMVectorMultiply(v, XMVectorSubtract(g_XMOne, s)); + + // q = v*(1-f*s) + XMVECTOR q = XMVectorMultiply(v, XMVectorSubtract(g_XMOne, XMVectorMultiply(f, s))); + + // t = v*(1 - (1-f)*s) + XMVECTOR t = XMVectorMultiply(v, XMVectorSubtract(g_XMOne, XMVectorMultiply(XMVectorSubtract(g_XMOne, f), s))); + + auto ii = static_cast(XMVectorGetX(XMVectorMod(i, g_XMSix))); + + XMVECTOR _rgb; + + switch (ii) + { + case 0: // rgb = vtp + { + XMVECTOR vt = XMVectorSelect(t, v, g_XMSelect1000); + _rgb = XMVectorSelect(p, vt, g_XMSelect1100); + } + break; + case 1: // rgb = qvp + { + XMVECTOR qv = XMVectorSelect(v, q, g_XMSelect1000); + _rgb = XMVectorSelect(p, qv, g_XMSelect1100); + } + break; + case 2: // rgb = pvt + { + XMVECTOR pv = XMVectorSelect(v, p, g_XMSelect1000); + _rgb = XMVectorSelect(t, pv, g_XMSelect1100); + } + break; + case 3: // rgb = pqv + { + XMVECTOR pq = XMVectorSelect(q, p, g_XMSelect1000); + _rgb = XMVectorSelect(v, pq, g_XMSelect1100); + } + break; + case 4: // rgb = tpv + { + XMVECTOR tp = XMVectorSelect(p, t, g_XMSelect1000); + _rgb = XMVectorSelect(v, tp, g_XMSelect1100); + } + break; + default: // rgb = vpq + { + XMVECTOR vp = XMVectorSelect(p, v, g_XMSelect1000); + _rgb = XMVectorSelect(q, vp, g_XMSelect1100); + } + break; + } + + return XMVectorSelect(hsv, _rgb, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorRGBToYUV(FXMVECTOR rgb) noexcept +{ + static const XMVECTORF32 Scale0 = { { { 0.299f, -0.147f, 0.615f, 0.0f } } }; + static const XMVECTORF32 Scale1 = { { { 0.587f, -0.289f, -0.515f, 0.0f } } }; + static const XMVECTORF32 Scale2 = { { { 0.114f, 0.436f, -0.100f, 0.0f } } }; + + XMMATRIX M(Scale0, Scale1, Scale2, g_XMZero); + XMVECTOR clr = XMVector3Transform(rgb, M); + + return XMVectorSelect(rgb, clr, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorYUVToRGB(FXMVECTOR yuv) noexcept +{ + static const XMVECTORF32 Scale1 = { { { 0.0f, -0.395f, 2.032f, 0.0f } } }; + static const XMVECTORF32 Scale2 = { { { 1.140f, -0.581f, 0.0f, 0.0f } } }; + + XMMATRIX M(g_XMOne, Scale1, Scale2, g_XMZero); + XMVECTOR clr = XMVector3Transform(yuv, M); + + return XMVectorSelect(yuv, clr, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorRGBToYUV_HD(FXMVECTOR rgb) noexcept +{ + static const XMVECTORF32 Scale0 = { { { 0.2126f, -0.0997f, 0.6150f, 0.0f } } }; + static const XMVECTORF32 Scale1 = { { { 0.7152f, -0.3354f, -0.5586f, 0.0f } } }; + static const XMVECTORF32 Scale2 = { { { 0.0722f, 0.4351f, -0.0564f, 0.0f } } }; + + XMMATRIX M(Scale0, Scale1, Scale2, g_XMZero); + XMVECTOR clr = XMVector3Transform(rgb, M); + + return XMVectorSelect(rgb, clr, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorYUVToRGB_HD(FXMVECTOR yuv) noexcept +{ + static const XMVECTORF32 Scale1 = { { { 0.0f, -0.2153f, 2.1324f, 0.0f } } }; + static const XMVECTORF32 Scale2 = { { { 1.2803f, -0.3806f, 0.0f, 0.0f } } }; + + XMMATRIX M(g_XMOne, Scale1, Scale2, g_XMZero); + XMVECTOR clr = XMVector3Transform(yuv, M); + + return XMVectorSelect(yuv, clr, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorRGBToYUV_UHD(FXMVECTOR rgb) noexcept +{ + static const XMVECTORF32 Scale0 = { { { 0.2627f, -0.1215f, 0.6150f, 0.0f } } }; + static const XMVECTORF32 Scale1 = { { { 0.6780f, -0.3136f, -0.5655f, 0.0f } } }; + static const XMVECTORF32 Scale2 = { { { 0.0593f, 0.4351f, -0.0495f, 0.0f } } }; + + XMMATRIX M(Scale0, Scale1, Scale2, g_XMZero); + XMVECTOR clr = XMVector3Transform(rgb, M); + + return XMVectorSelect(rgb, clr, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorYUVToRGB_UHD(FXMVECTOR yuv) noexcept +{ + static const XMVECTORF32 Scale1 = { { { 0.0f, -0.1891f, 2.1620f, 0.0f } } }; + static const XMVECTORF32 Scale2 = { { { 1.1989f, -0.4645f, 0.0f, 0.0f } } }; + + XMMATRIX M(g_XMOne, Scale1, Scale2, g_XMZero); + XMVECTOR clr = XMVector3Transform(yuv, M); + + return XMVectorSelect(yuv, clr, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorRGBToXYZ(FXMVECTOR rgb) noexcept +{ + static const XMVECTORF32 Scale0 = { { { 0.4887180f, 0.1762044f, 0.0000000f, 0.0f } } }; + static const XMVECTORF32 Scale1 = { { { 0.3106803f, 0.8129847f, 0.0102048f, 0.0f } } }; + static const XMVECTORF32 Scale2 = { { { 0.2006017f, 0.0108109f, 0.9897952f, 0.0f } } }; + static const XMVECTORF32 Scale = { { { 1.f / 0.17697f, 1.f / 0.17697f, 1.f / 0.17697f, 0.0f } } }; + + XMMATRIX M(Scale0, Scale1, Scale2, g_XMZero); + XMVECTOR clr = XMVectorMultiply(XMVector3Transform(rgb, M), Scale); + + return XMVectorSelect(rgb, clr, g_XMSelect1110); +} + +inline XMVECTOR XM_CALLCONV XMColorXYZToRGB(FXMVECTOR xyz) noexcept +{ + static const XMVECTORF32 Scale0 = { { { 2.3706743f, -0.5138850f, 0.0052982f, 0.0f } } }; + static const XMVECTORF32 Scale1 = { { { -0.9000405f, 1.4253036f, -0.0146949f, 0.0f } } }; + static const XMVECTORF32 Scale2 = { { { -0.4706338f, 0.0885814f, 1.0093968f, 0.0f } } }; + static const XMVECTORF32 Scale = { { { 0.17697f, 0.17697f, 0.17697f, 0.0f } } }; + + XMMATRIX M(Scale0, Scale1, Scale2, g_XMZero); + XMVECTOR clr = XMVector3Transform(XMVectorMultiply(xyz, Scale), M); + + return XMVectorSelect(xyz, clr, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorXYZToSRGB(FXMVECTOR xyz) noexcept +{ + static const XMVECTORF32 Scale0 = { { { 3.2406f, -0.9689f, 0.0557f, 0.0f } } }; + static const XMVECTORF32 Scale1 = { { { -1.5372f, 1.8758f, -0.2040f, 0.0f } } }; + static const XMVECTORF32 Scale2 = { { { -0.4986f, 0.0415f, 1.0570f, 0.0f } } }; + static const XMVECTORF32 Cutoff = { { { 0.0031308f, 0.0031308f, 0.0031308f, 0.0f } } }; + static const XMVECTORF32 Exp = { { { 1.0f / 2.4f, 1.0f / 2.4f, 1.0f / 2.4f, 1.0f } } }; + + XMMATRIX M(Scale0, Scale1, Scale2, g_XMZero); + XMVECTOR lclr = XMVector3Transform(xyz, M); + + XMVECTOR sel = XMVectorGreater(lclr, Cutoff); + + // clr = 12.92 * lclr for lclr <= 0.0031308f + XMVECTOR smallC = XMVectorMultiply(lclr, g_XMsrgbScale); + + // clr = (1+a)*pow(lclr, 1/2.4) - a for lclr > 0.0031308 (where a = 0.055) + XMVECTOR largeC = XMVectorSubtract(XMVectorMultiply(g_XMsrgbA1, XMVectorPow(lclr, Exp)), g_XMsrgbA); + + XMVECTOR clr = XMVectorSelect(smallC, largeC, sel); + + return XMVectorSelect(xyz, clr, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorSRGBToXYZ(FXMVECTOR srgb) noexcept +{ + static const XMVECTORF32 Scale0 = { { { 0.4124f, 0.2126f, 0.0193f, 0.0f } } }; + static const XMVECTORF32 Scale1 = { { { 0.3576f, 0.7152f, 0.1192f, 0.0f } } }; + static const XMVECTORF32 Scale2 = { { { 0.1805f, 0.0722f, 0.9505f, 0.0f } } }; + static const XMVECTORF32 Cutoff = { { { 0.04045f, 0.04045f, 0.04045f, 0.0f } } }; + static const XMVECTORF32 Exp = { { { 2.4f, 2.4f, 2.4f, 1.0f } } }; + + XMVECTOR sel = XMVectorGreater(srgb, Cutoff); + + // lclr = clr / 12.92 + XMVECTOR smallC = XMVectorDivide(srgb, g_XMsrgbScale); + + // lclr = pow( (clr + a) / (1+a), 2.4 ) + XMVECTOR largeC = XMVectorPow(XMVectorDivide(XMVectorAdd(srgb, g_XMsrgbA), g_XMsrgbA1), Exp); + + XMVECTOR lclr = XMVectorSelect(smallC, largeC, sel); + + XMMATRIX M(Scale0, Scale1, Scale2, g_XMZero); + XMVECTOR clr = XMVector3Transform(lclr, M); + + return XMVectorSelect(srgb, clr, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorRGBToSRGB(FXMVECTOR rgb) noexcept +{ + static const XMVECTORF32 Cutoff = { { { 0.0031308f, 0.0031308f, 0.0031308f, 1.f } } }; + static const XMVECTORF32 Linear = { { { 12.92f, 12.92f, 12.92f, 1.f } } }; + static const XMVECTORF32 Scale = { { { 1.055f, 1.055f, 1.055f, 1.f } } }; + static const XMVECTORF32 Bias = { { { 0.055f, 0.055f, 0.055f, 0.f } } }; + static const XMVECTORF32 InvGamma = { { { 1.0f / 2.4f, 1.0f / 2.4f, 1.0f / 2.4f, 1.f } } }; + + XMVECTOR V = XMVectorSaturate(rgb); + XMVECTOR V0 = XMVectorMultiply(V, Linear); + XMVECTOR V1 = XMVectorSubtract(XMVectorMultiply(Scale, XMVectorPow(V, InvGamma)), Bias); + XMVECTOR select = XMVectorLess(V, Cutoff); + V = XMVectorSelect(V1, V0, select); + return XMVectorSelect(rgb, V, g_XMSelect1110); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMColorSRGBToRGB(FXMVECTOR srgb) noexcept +{ + static const XMVECTORF32 Cutoff = { { { 0.04045f, 0.04045f, 0.04045f, 1.f } } }; + static const XMVECTORF32 ILinear = { { { 1.f / 12.92f, 1.f / 12.92f, 1.f / 12.92f, 1.f } } }; + static const XMVECTORF32 Scale = { { { 1.f / 1.055f, 1.f / 1.055f, 1.f / 1.055f, 1.f } } }; + static const XMVECTORF32 Bias = { { { 0.055f, 0.055f, 0.055f, 0.f } } }; + static const XMVECTORF32 Gamma = { { { 2.4f, 2.4f, 2.4f, 1.f } } }; + + XMVECTOR V = XMVectorSaturate(srgb); + XMVECTOR V0 = XMVectorMultiply(V, ILinear); + XMVECTOR V1 = XMVectorPow(XMVectorMultiply(XMVectorAdd(V, Bias), Scale), Gamma); + XMVECTOR select = XMVectorGreater(V, Cutoff); + V = XMVectorSelect(V0, V1, select); + return XMVectorSelect(srgb, V, g_XMSelect1110); +} + +/**************************************************************************** + * + * Miscellaneous + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline bool XMVerifyCPUSupport() noexcept +{ +#if defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + int CPUInfo[4] = { -1 }; +#if (defined(__clang__) || defined(__GNUC__)) && defined(__cpuid) + __cpuid(0, CPUInfo[0], CPUInfo[1], CPUInfo[2], CPUInfo[3]); +#else + __cpuid(CPUInfo, 0); +#endif + +#ifdef __AVX2__ + if (CPUInfo[0] < 7) + return false; +#else + if (CPUInfo[0] < 1) + return false; +#endif + +#if (defined(__clang__) || defined(__GNUC__)) && defined(__cpuid) + __cpuid(1, CPUInfo[0], CPUInfo[1], CPUInfo[2], CPUInfo[3]); +#else + __cpuid(CPUInfo, 1); +#endif + +#if defined(__AVX2__) || defined(_XM_AVX2_INTRINSICS_) + // The compiler can emit FMA3 instructions even without explicit intrinsics use + if ((CPUInfo[2] & 0x38081001) != 0x38081001) + return false; // No F16C/AVX/OSXSAVE/SSE4.1/FMA3/SSE3 support +#elif defined(_XM_FMA3_INTRINSICS_) && defined(_XM_F16C_INTRINSICS_) + if ((CPUInfo[2] & 0x38081001) != 0x38081001) + return false; // No F16C/AVX/OSXSAVE/SSE4.1/FMA3/SSE3 support +#elif defined(_XM_FMA3_INTRINSICS_) + if ((CPUInfo[2] & 0x18081001) != 0x18081001) + return false; // No AVX/OSXSAVE/SSE4.1/FMA3/SSE3 support +#elif defined(_XM_F16C_INTRINSICS_) + if ((CPUInfo[2] & 0x38080001) != 0x38080001) + return false; // No F16C/AVX/OSXSAVE/SSE4.1/SSE3 support +#elif defined(__AVX__) || defined(_XM_AVX_INTRINSICS_) + if ((CPUInfo[2] & 0x18080001) != 0x18080001) + return false; // No AVX/OSXSAVE/SSE4.1/SSE3 support +#elif defined(_XM_SSE4_INTRINSICS_) + if ((CPUInfo[2] & 0x80001) != 0x80001) + return false; // No SSE3/SSE4.1 support +#elif defined(_XM_SSE3_INTRINSICS_) + if (!(CPUInfo[2] & 0x1)) + return false; // No SSE3 support +#endif + + // The x64 processor model requires SSE2 support, but no harm in checking + if ((CPUInfo[3] & 0x6000000) != 0x6000000) + return false; // No SSE2/SSE support + +#if defined(__AVX2__) || defined(_XM_AVX2_INTRINSICS_) +#if defined(__clang__) || defined(__GNUC__) + __cpuid_count(7, 0, CPUInfo[0], CPUInfo[1], CPUInfo[2], CPUInfo[3]); +#else + __cpuidex(CPUInfo, 7, 0); +#endif + if (!(CPUInfo[1] & 0x20)) + return false; // No AVX2 support +#endif + + return true; +#elif defined(_XM_ARM_NEON_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + // ARM-NEON support is required for the Windows on ARM platform + return true; +#else + // No intrinsics path always supported + return true; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMFresnelTerm +( + FXMVECTOR CosIncidentAngle, + FXMVECTOR RefractionIndex +) noexcept +{ + assert(!XMVector4IsInfinite(CosIncidentAngle)); + + // Result = 0.5f * (g - c)^2 / (g + c)^2 * ((c * (g + c) - 1)^2 / (c * (g - c) + 1)^2 + 1) where + // c = CosIncidentAngle + // g = sqrt(c^2 + RefractionIndex^2 - 1) + +#if defined(_XM_NO_INTRINSICS_) || defined(_XM_ARM_NEON_INTRINSICS_) + + XMVECTOR G = XMVectorMultiplyAdd(RefractionIndex, RefractionIndex, g_XMNegativeOne.v); + G = XMVectorMultiplyAdd(CosIncidentAngle, CosIncidentAngle, G); + G = XMVectorAbs(G); + G = XMVectorSqrt(G); + + XMVECTOR S = XMVectorAdd(G, CosIncidentAngle); + XMVECTOR D = XMVectorSubtract(G, CosIncidentAngle); + + XMVECTOR V0 = XMVectorMultiply(D, D); + XMVECTOR V1 = XMVectorMultiply(S, S); + V1 = XMVectorReciprocal(V1); + V0 = XMVectorMultiply(g_XMOneHalf.v, V0); + V0 = XMVectorMultiply(V0, V1); + + XMVECTOR V2 = XMVectorMultiplyAdd(CosIncidentAngle, S, g_XMNegativeOne.v); + XMVECTOR V3 = XMVectorMultiplyAdd(CosIncidentAngle, D, g_XMOne.v); + V2 = XMVectorMultiply(V2, V2); + V3 = XMVectorMultiply(V3, V3); + V3 = XMVectorReciprocal(V3); + V2 = XMVectorMultiplyAdd(V2, V3, g_XMOne.v); + + XMVECTOR Result = XMVectorMultiply(V0, V2); + + Result = XMVectorSaturate(Result); + + return Result; + +#elif defined(_XM_SSE_INTRINSICS_) + // G = sqrt(abs((RefractionIndex^2-1) + CosIncidentAngle^2)) + XMVECTOR G = _mm_mul_ps(RefractionIndex, RefractionIndex); + XMVECTOR vTemp = _mm_mul_ps(CosIncidentAngle, CosIncidentAngle); + G = _mm_sub_ps(G, g_XMOne); + vTemp = _mm_add_ps(vTemp, G); + // max((0-vTemp),vTemp) == abs(vTemp) + // The abs is needed to deal with refraction and cosine being zero + G = _mm_setzero_ps(); + G = _mm_sub_ps(G, vTemp); + G = _mm_max_ps(G, vTemp); + // Last operation, the sqrt() + G = _mm_sqrt_ps(G); + + // Calc G-C and G+C + XMVECTOR GAddC = _mm_add_ps(G, CosIncidentAngle); + XMVECTOR GSubC = _mm_sub_ps(G, CosIncidentAngle); + // Perform the term (0.5f *(g - c)^2) / (g + c)^2 + XMVECTOR vResult = _mm_mul_ps(GSubC, GSubC); + vTemp = _mm_mul_ps(GAddC, GAddC); + vResult = _mm_mul_ps(vResult, g_XMOneHalf); + vResult = _mm_div_ps(vResult, vTemp); + // Perform the term ((c * (g + c) - 1)^2 / (c * (g - c) + 1)^2 + 1) + GAddC = _mm_mul_ps(GAddC, CosIncidentAngle); + GSubC = _mm_mul_ps(GSubC, CosIncidentAngle); + GAddC = _mm_sub_ps(GAddC, g_XMOne); + GSubC = _mm_add_ps(GSubC, g_XMOne); + GAddC = _mm_mul_ps(GAddC, GAddC); + GSubC = _mm_mul_ps(GSubC, GSubC); + GAddC = _mm_div_ps(GAddC, GSubC); + GAddC = _mm_add_ps(GAddC, g_XMOne); + // Multiply the two term parts + vResult = _mm_mul_ps(vResult, GAddC); + // Clamp to 0.0 - 1.0f + vResult = _mm_max_ps(vResult, g_XMZero); + vResult = _mm_min_ps(vResult, g_XMOne); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XMScalarNearEqual +( + float S1, + float S2, + float Epsilon +) noexcept +{ + float Delta = S1 - S2; + return (fabsf(Delta) <= Epsilon); +} + +//------------------------------------------------------------------------------ +// Modulo the range of the given angle such that -XM_PI <= Angle < XM_PI +inline float XMScalarModAngle(float Angle) noexcept +{ + // Note: The modulo is performed with unsigned math only to work + // around a precision error on numbers that are close to PI + + // Normalize the range from 0.0f to XM_2PI + Angle = Angle + XM_PI; + // Perform the modulo, unsigned + float fTemp = fabsf(Angle); + fTemp = fTemp - (XM_2PI * static_cast(static_cast(fTemp / XM_2PI))); + // Restore the number to the range of -XM_PI to XM_PI-epsilon + fTemp = fTemp - XM_PI; + // If the modulo'd value was negative, restore negation + if (Angle < 0.0f) + { + fTemp = -fTemp; + } + return fTemp; +} + +//------------------------------------------------------------------------------ + +inline float XMScalarSin(float Value) noexcept +{ + // Map Value to y in [-pi,pi], x = 2*pi*quotient + remainder. + float quotient = XM_1DIV2PI * Value; + if (Value >= 0.0f) + { + quotient = static_cast(static_cast(quotient + 0.5f)); + } + else + { + quotient = static_cast(static_cast(quotient - 0.5f)); + } + float y = Value - XM_2PI * quotient; + + // Map y to [-pi/2,pi/2] with sin(y) = sin(Value). + if (y > XM_PIDIV2) + { + y = XM_PI - y; + } + else if (y < -XM_PIDIV2) + { + y = -XM_PI - y; + } + + // 11-degree minimax approximation + float y2 = y * y; + return (((((-2.3889859e-08f * y2 + 2.7525562e-06f) * y2 - 0.00019840874f) * y2 + 0.0083333310f) * y2 - 0.16666667f) * y2 + 1.0f) * y; +} + +//------------------------------------------------------------------------------ + +inline float XMScalarSinEst(float Value) noexcept +{ + // Map Value to y in [-pi,pi], x = 2*pi*quotient + remainder. + float quotient = XM_1DIV2PI * Value; + if (Value >= 0.0f) + { + quotient = static_cast(static_cast(quotient + 0.5f)); + } + else + { + quotient = static_cast(static_cast(quotient - 0.5f)); + } + float y = Value - XM_2PI * quotient; + + // Map y to [-pi/2,pi/2] with sin(y) = sin(Value). + if (y > XM_PIDIV2) + { + y = XM_PI - y; + } + else if (y < -XM_PIDIV2) + { + y = -XM_PI - y; + } + + // 7-degree minimax approximation + float y2 = y * y; + return (((-0.00018524670f * y2 + 0.0083139502f) * y2 - 0.16665852f) * y2 + 1.0f) * y; +} + +//------------------------------------------------------------------------------ + +inline float XMScalarCos(float Value) noexcept +{ + // Map Value to y in [-pi,pi], x = 2*pi*quotient + remainder. + float quotient = XM_1DIV2PI * Value; + if (Value >= 0.0f) + { + quotient = static_cast(static_cast(quotient + 0.5f)); + } + else + { + quotient = static_cast(static_cast(quotient - 0.5f)); + } + float y = Value - XM_2PI * quotient; + + // Map y to [-pi/2,pi/2] with cos(y) = sign*cos(x). + float sign; + if (y > XM_PIDIV2) + { + y = XM_PI - y; + sign = -1.0f; + } + else if (y < -XM_PIDIV2) + { + y = -XM_PI - y; + sign = -1.0f; + } + else + { + sign = +1.0f; + } + + // 10-degree minimax approximation + float y2 = y * y; + float p = ((((-2.6051615e-07f * y2 + 2.4760495e-05f) * y2 - 0.0013888378f) * y2 + 0.041666638f) * y2 - 0.5f) * y2 + 1.0f; + return sign * p; +} + +//------------------------------------------------------------------------------ + +inline float XMScalarCosEst(float Value) noexcept +{ + // Map Value to y in [-pi,pi], x = 2*pi*quotient + remainder. + float quotient = XM_1DIV2PI * Value; + if (Value >= 0.0f) + { + quotient = static_cast(static_cast(quotient + 0.5f)); + } + else + { + quotient = static_cast(static_cast(quotient - 0.5f)); + } + float y = Value - XM_2PI * quotient; + + // Map y to [-pi/2,pi/2] with cos(y) = sign*cos(x). + float sign; + if (y > XM_PIDIV2) + { + y = XM_PI - y; + sign = -1.0f; + } + else if (y < -XM_PIDIV2) + { + y = -XM_PI - y; + sign = -1.0f; + } + else + { + sign = +1.0f; + } + + // 6-degree minimax approximation + float y2 = y * y; + float p = ((-0.0012712436f * y2 + 0.041493919f) * y2 - 0.49992746f) * y2 + 1.0f; + return sign * p; +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline void XMScalarSinCos +( + float* pSin, + float* pCos, + float Value +) noexcept +{ + assert(pSin); + assert(pCos); + + // Map Value to y in [-pi,pi], x = 2*pi*quotient + remainder. + float quotient = XM_1DIV2PI * Value; + if (Value >= 0.0f) + { + quotient = static_cast(static_cast(quotient + 0.5f)); + } + else + { + quotient = static_cast(static_cast(quotient - 0.5f)); + } + float y = Value - XM_2PI * quotient; + + // Map y to [-pi/2,pi/2] with sin(y) = sin(Value). + float sign; + if (y > XM_PIDIV2) + { + y = XM_PI - y; + sign = -1.0f; + } + else if (y < -XM_PIDIV2) + { + y = -XM_PI - y; + sign = -1.0f; + } + else + { + sign = +1.0f; + } + + float y2 = y * y; + + // 11-degree minimax approximation + *pSin = (((((-2.3889859e-08f * y2 + 2.7525562e-06f) * y2 - 0.00019840874f) * y2 + 0.0083333310f) * y2 - 0.16666667f) * y2 + 1.0f) * y; + + // 10-degree minimax approximation + float p = ((((-2.6051615e-07f * y2 + 2.4760495e-05f) * y2 - 0.0013888378f) * y2 + 0.041666638f) * y2 - 0.5f) * y2 + 1.0f; + *pCos = sign * p; +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline void XMScalarSinCosEst +( + float* pSin, + float* pCos, + float Value +) noexcept +{ + assert(pSin); + assert(pCos); + + // Map Value to y in [-pi,pi], x = 2*pi*quotient + remainder. + float quotient = XM_1DIV2PI * Value; + if (Value >= 0.0f) + { + quotient = static_cast(static_cast(quotient + 0.5f)); + } + else + { + quotient = static_cast(static_cast(quotient - 0.5f)); + } + float y = Value - XM_2PI * quotient; + + // Map y to [-pi/2,pi/2] with sin(y) = sin(Value). + float sign; + if (y > XM_PIDIV2) + { + y = XM_PI - y; + sign = -1.0f; + } + else if (y < -XM_PIDIV2) + { + y = -XM_PI - y; + sign = -1.0f; + } + else + { + sign = +1.0f; + } + + float y2 = y * y; + + // 7-degree minimax approximation + *pSin = (((-0.00018524670f * y2 + 0.0083139502f) * y2 - 0.16665852f) * y2 + 1.0f) * y; + + // 6-degree minimax approximation + float p = ((-0.0012712436f * y2 + 0.041493919f) * y2 - 0.49992746f) * y2 + 1.0f; + *pCos = sign * p; +} + +//------------------------------------------------------------------------------ + +inline float XMScalarASin(float Value) noexcept +{ + // Clamp input to [-1,1]. + bool nonnegative = (Value >= 0.0f); + float x = fabsf(Value); + float omx = 1.0f - x; + if (omx < 0.0f) + { + omx = 0.0f; + } + float root = sqrtf(omx); + + // 7-degree minimax approximation + float result = ((((((-0.0012624911f * x + 0.0066700901f) * x - 0.0170881256f) * x + 0.0308918810f) * x - 0.0501743046f) * x + 0.0889789874f) * x - 0.2145988016f) * x + 1.5707963050f; + result *= root; // acos(|x|) + + // acos(x) = pi - acos(-x) when x < 0, asin(x) = pi/2 - acos(x) + return (nonnegative ? XM_PIDIV2 - result : result - XM_PIDIV2); +} + +//------------------------------------------------------------------------------ + +inline float XMScalarASinEst(float Value) noexcept +{ + // Clamp input to [-1,1]. + bool nonnegative = (Value >= 0.0f); + float x = fabsf(Value); + float omx = 1.0f - x; + if (omx < 0.0f) + { + omx = 0.0f; + } + float root = sqrtf(omx); + + // 3-degree minimax approximation + float result = ((-0.0187293f * x + 0.0742610f) * x - 0.2121144f) * x + 1.5707288f; + result *= root; // acos(|x|) + + // acos(x) = pi - acos(-x) when x < 0, asin(x) = pi/2 - acos(x) + return (nonnegative ? XM_PIDIV2 - result : result - XM_PIDIV2); +} + +//------------------------------------------------------------------------------ + +inline float XMScalarACos(float Value) noexcept +{ + // Clamp input to [-1,1]. + bool nonnegative = (Value >= 0.0f); + float x = fabsf(Value); + float omx = 1.0f - x; + if (omx < 0.0f) + { + omx = 0.0f; + } + float root = sqrtf(omx); + + // 7-degree minimax approximation + float result = ((((((-0.0012624911f * x + 0.0066700901f) * x - 0.0170881256f) * x + 0.0308918810f) * x - 0.0501743046f) * x + 0.0889789874f) * x - 0.2145988016f) * x + 1.5707963050f; + result *= root; + + // acos(x) = pi - acos(-x) when x < 0 + return (nonnegative ? result : XM_PI - result); +} + +//------------------------------------------------------------------------------ + +inline float XMScalarACosEst(float Value) noexcept +{ + // Clamp input to [-1,1]. + bool nonnegative = (Value >= 0.0f); + float x = fabsf(Value); + float omx = 1.0f - x; + if (omx < 0.0f) + { + omx = 0.0f; + } + float root = sqrtf(omx); + + // 3-degree minimax approximation + float result = ((-0.0187293f * x + 0.0742610f) * x - 0.2121144f) * x + 1.5707288f; + result *= root; + + // acos(x) = pi - acos(-x) when x < 0 + return (nonnegative ? result : XM_PI - result); +} + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathVector.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathVector.inl new file mode 100644 index 0000000000000000000000000000000000000000..e4eec897a457426552afa062d1ce5c21f7a60001 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXMathVector.inl @@ -0,0 +1,14871 @@ +//------------------------------------------------------------------------------------- +// DirectXMathVector.inl -- SIMD C++ Math library +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// +// http://go.microsoft.com/fwlink/?LinkID=615560 +//------------------------------------------------------------------------------------- + +#pragma once + +#if defined(_XM_NO_INTRINSICS_) +#define XMISNAN(x) ((*(const uint32_t*)&(x) & 0x7F800000) == 0x7F800000 && (*(const uint32_t*)&(x) & 0x7FFFFF) != 0) +#define XMISINF(x) ((*(const uint32_t*)&(x) & 0x7FFFFFFF) == 0x7F800000) +#endif + +#if defined(_XM_SSE_INTRINSICS_) + +#define XM3UNPACK3INTO4(l1, l2, l3) \ + XMVECTOR V3 = _mm_shuffle_ps(l2, l3, _MM_SHUFFLE(0, 0, 3, 2));\ + XMVECTOR V2 = _mm_shuffle_ps(l2, l1, _MM_SHUFFLE(3, 3, 1, 0));\ + V2 = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 0, 2));\ + XMVECTOR V4 = _mm_castsi128_ps(_mm_srli_si128(_mm_castps_si128(L3), 32 / 8)) + +#define XM3PACK4INTO3(v2x) \ + v2x = _mm_shuffle_ps(V2, V3, _MM_SHUFFLE(1, 0, 2, 1));\ + V2 = _mm_shuffle_ps(V2, V1, _MM_SHUFFLE(2, 2, 0, 0));\ + V1 = _mm_shuffle_ps(V1, V2, _MM_SHUFFLE(0, 2, 1, 0));\ + V3 = _mm_shuffle_ps(V3, V4, _MM_SHUFFLE(0, 0, 2, 2));\ + V3 = _mm_shuffle_ps(V3, V4, _MM_SHUFFLE(2, 1, 2, 0)) + +#endif + +/**************************************************************************** + * + * General Vector + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + // Assignment operations + //------------------------------------------------------------------------------ + + //------------------------------------------------------------------------------ + // Return a vector with all elements equaling zero +inline XMVECTOR XM_CALLCONV XMVectorZero() noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { 0.0f, 0.0f, 0.0f, 0.0f } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vdupq_n_f32(0); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_setzero_ps(); +#endif +} + +//------------------------------------------------------------------------------ +// Initialize a vector with four floating point values +inline XMVECTOR XM_CALLCONV XMVectorSet +( + float x, + float y, + float z, + float w +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { x, y, z, w } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t V0 = vcreate_f32( + static_cast(*reinterpret_cast(&x)) + | (static_cast(*reinterpret_cast(&y)) << 32)); + float32x2_t V1 = vcreate_f32( + static_cast(*reinterpret_cast(&z)) + | (static_cast(*reinterpret_cast(&w)) << 32)); + return vcombine_f32(V0, V1); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_set_ps(w, z, y, x); +#endif +} + +//------------------------------------------------------------------------------ +// Initialize a vector with four integer values +inline XMVECTOR XM_CALLCONV XMVectorSetInt +( + uint32_t x, + uint32_t y, + uint32_t z, + uint32_t w +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 vResult = { { { x, y, z, w } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t V0 = vcreate_u32(static_cast(x) | (static_cast(y) << 32)); + uint32x2_t V1 = vcreate_u32(static_cast(z) | (static_cast(w) << 32)); + return vreinterpretq_f32_u32(vcombine_u32(V0, V1)); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_set_epi32(static_cast(w), static_cast(z), static_cast(y), static_cast(x)); + return _mm_castsi128_ps(V); +#endif +} + +//------------------------------------------------------------------------------ +// Initialize a vector with a replicated floating point value +inline XMVECTOR XM_CALLCONV XMVectorReplicate(float Value) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult; + vResult.f[0] = + vResult.f[1] = + vResult.f[2] = + vResult.f[3] = Value; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vdupq_n_f32(Value); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_set_ps1(Value); +#endif +} + +//------------------------------------------------------------------------------ +// Initialize a vector with a replicated floating point value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorReplicatePtr(const float* pValue) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float Value = pValue[0]; + XMVECTORF32 vResult; + vResult.f[0] = + vResult.f[1] = + vResult.f[2] = + vResult.f[3] = Value; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vld1q_dup_f32(pValue); +#elif defined(_XM_AVX_INTRINSICS_) + return _mm_broadcast_ss(pValue); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_load_ps1(pValue); +#endif +} + +//------------------------------------------------------------------------------ +// Initialize a vector with a replicated integer value +inline XMVECTOR XM_CALLCONV XMVectorReplicateInt(uint32_t Value) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 vResult; + vResult.u[0] = + vResult.u[1] = + vResult.u[2] = + vResult.u[3] = Value; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vdupq_n_u32(Value)); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_set1_epi32(static_cast(Value)); + return _mm_castsi128_ps(vTemp); +#endif +} + +//------------------------------------------------------------------------------ +// Initialize a vector with a replicated integer value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorReplicateIntPtr(const uint32_t* pValue) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + uint32_t Value = pValue[0]; + XMVECTORU32 vResult; + vResult.u[0] = + vResult.u[1] = + vResult.u[2] = + vResult.u[3] = Value; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vld1q_dup_u32(pValue)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_load_ps1(reinterpret_cast(pValue)); +#endif +} + +//------------------------------------------------------------------------------ +// Initialize a vector with all bits set (true mask) +inline XMVECTOR XM_CALLCONV XMVectorTrueInt() noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 vResult = { { { 0xFFFFFFFFU, 0xFFFFFFFFU, 0xFFFFFFFFU, 0xFFFFFFFFU } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_s32(vdupq_n_s32(-1)); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_set1_epi32(-1); + return _mm_castsi128_ps(V); +#endif +} + +//------------------------------------------------------------------------------ +// Initialize a vector with all bits clear (false mask) +inline XMVECTOR XM_CALLCONV XMVectorFalseInt() noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { 0.0f, 0.0f, 0.0f, 0.0f } } }; + return vResult; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vdupq_n_u32(0)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_setzero_ps(); +#endif +} + +//------------------------------------------------------------------------------ +// Replicate the x component of the vector +inline XMVECTOR XM_CALLCONV XMVectorSplatX(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult; + vResult.f[0] = + vResult.f[1] = + vResult.f[2] = + vResult.f[3] = V.vector4_f32[0]; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vdupq_lane_f32(vget_low_f32(V), 0); +#elif defined(_XM_AVX2_INTRINSICS_) && defined(_XM_FAVOR_INTEL_) + return _mm_broadcastss_ps(V); +#elif defined(_XM_SSE_INTRINSICS_) + return XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); +#endif +} + +//------------------------------------------------------------------------------ +// Replicate the y component of the vector +inline XMVECTOR XM_CALLCONV XMVectorSplatY(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult; + vResult.f[0] = + vResult.f[1] = + vResult.f[2] = + vResult.f[3] = V.vector4_f32[1]; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vdupq_lane_f32(vget_low_f32(V), 1); +#elif defined(_XM_SSE_INTRINSICS_) + return XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); +#endif +} + +//------------------------------------------------------------------------------ +// Replicate the z component of the vector +inline XMVECTOR XM_CALLCONV XMVectorSplatZ(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult; + vResult.f[0] = + vResult.f[1] = + vResult.f[2] = + vResult.f[3] = V.vector4_f32[2]; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vdupq_lane_f32(vget_high_f32(V), 0); +#elif defined(_XM_SSE_INTRINSICS_) + return XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); +#endif +} + +//------------------------------------------------------------------------------ +// Replicate the w component of the vector +inline XMVECTOR XM_CALLCONV XMVectorSplatW(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult; + vResult.f[0] = + vResult.f[1] = + vResult.f[2] = + vResult.f[3] = V.vector4_f32[3]; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vdupq_lane_f32(vget_high_f32(V), 1); +#elif defined(_XM_SSE_INTRINSICS_) + return XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); +#endif +} + +//------------------------------------------------------------------------------ +// Return a vector of 1.0f,1.0f,1.0f,1.0f +inline XMVECTOR XM_CALLCONV XMVectorSplatOne() noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult; + vResult.f[0] = + vResult.f[1] = + vResult.f[2] = + vResult.f[3] = 1.0f; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vdupq_n_f32(1.0f); +#elif defined(_XM_SSE_INTRINSICS_) + return g_XMOne; +#endif +} + +//------------------------------------------------------------------------------ +// Return a vector of INF,INF,INF,INF +inline XMVECTOR XM_CALLCONV XMVectorSplatInfinity() noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 vResult; + vResult.u[0] = + vResult.u[1] = + vResult.u[2] = + vResult.u[3] = 0x7F800000; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vdupq_n_u32(0x7F800000)); +#elif defined(_XM_SSE_INTRINSICS_) + return g_XMInfinity; +#endif +} + +//------------------------------------------------------------------------------ +// Return a vector of Q_NAN,Q_NAN,Q_NAN,Q_NAN +inline XMVECTOR XM_CALLCONV XMVectorSplatQNaN() noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 vResult; + vResult.u[0] = + vResult.u[1] = + vResult.u[2] = + vResult.u[3] = 0x7FC00000; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vdupq_n_u32(0x7FC00000)); +#elif defined(_XM_SSE_INTRINSICS_) + return g_XMQNaN; +#endif +} + +//------------------------------------------------------------------------------ +// Return a vector of 1.192092896e-7f,1.192092896e-7f,1.192092896e-7f,1.192092896e-7f +inline XMVECTOR XM_CALLCONV XMVectorSplatEpsilon() noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 vResult; + vResult.u[0] = + vResult.u[1] = + vResult.u[2] = + vResult.u[3] = 0x34000000; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vdupq_n_u32(0x34000000)); +#elif defined(_XM_SSE_INTRINSICS_) + return g_XMEpsilon; +#endif +} + +//------------------------------------------------------------------------------ +// Return a vector of -0.0f (0x80000000),-0.0f,-0.0f,-0.0f +inline XMVECTOR XM_CALLCONV XMVectorSplatSignMask() noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 vResult; + vResult.u[0] = + vResult.u[1] = + vResult.u[2] = + vResult.u[3] = 0x80000000U; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vdupq_n_u32(0x80000000U)); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_set1_epi32(static_cast(0x80000000)); + return _mm_castsi128_ps(V); +#endif +} + +//------------------------------------------------------------------------------ +// Return a floating point value via an index. This is not a recommended +// function to use due to performance loss. +inline float XM_CALLCONV XMVectorGetByIndex(FXMVECTOR V, size_t i) noexcept +{ + assert(i < 4); + _Analysis_assume_(i < 4); +#if defined(_XM_NO_INTRINSICS_) + return V.vector4_f32[i]; +#else + XMVECTORF32 U; + U.v = V; + return U.f[i]; +#endif +} + +//------------------------------------------------------------------------------ +// Return the X component in an FPU register. +inline float XM_CALLCONV XMVectorGetX(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return V.vector4_f32[0]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vgetq_lane_f32(V, 0); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_cvtss_f32(V); +#endif +} + +// Return the Y component in an FPU register. +inline float XM_CALLCONV XMVectorGetY(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return V.vector4_f32[1]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vgetq_lane_f32(V, 1); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + return _mm_cvtss_f32(vTemp); +#endif +} + +// Return the Z component in an FPU register. +inline float XM_CALLCONV XMVectorGetZ(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return V.vector4_f32[2]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vgetq_lane_f32(V, 2); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + return _mm_cvtss_f32(vTemp); +#endif +} + +// Return the W component in an FPU register. +inline float XM_CALLCONV XMVectorGetW(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return V.vector4_f32[3]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vgetq_lane_f32(V, 3); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + return _mm_cvtss_f32(vTemp); +#endif +} + +//------------------------------------------------------------------------------ + +// Store a component indexed by i into a 32 bit float location in memory. +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorGetByIndexPtr(float* f, FXMVECTOR V, size_t i) noexcept +{ + assert(f != nullptr); + assert(i < 4); + _Analysis_assume_(i < 4); +#if defined(_XM_NO_INTRINSICS_) + *f = V.vector4_f32[i]; +#else + XMVECTORF32 U; + U.v = V; + *f = U.f[i]; +#endif +} + +//------------------------------------------------------------------------------ + +// Store the X component into a 32 bit float location in memory. +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorGetXPtr(float* x, FXMVECTOR V) noexcept +{ + assert(x != nullptr); +#if defined(_XM_NO_INTRINSICS_) + *x = V.vector4_f32[0]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_lane_f32(x, V, 0); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_ss(x, V); +#endif +} + +// Store the Y component into a 32 bit float location in memory. +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorGetYPtr(float* y, FXMVECTOR V) noexcept +{ + assert(y != nullptr); +#if defined(_XM_NO_INTRINSICS_) + *y = V.vector4_f32[1]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_lane_f32(y, V, 1); +#elif defined(_XM_SSE4_INTRINSICS_) + * (reinterpret_cast(y)) = _mm_extract_ps(V, 1); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + _mm_store_ss(y, vResult); +#endif +} + +// Store the Z component into a 32 bit float location in memory. +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorGetZPtr(float* z, FXMVECTOR V) noexcept +{ + assert(z != nullptr); +#if defined(_XM_NO_INTRINSICS_) + *z = V.vector4_f32[2]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_lane_f32(z, V, 2); +#elif defined(_XM_SSE4_INTRINSICS_) + * (reinterpret_cast(z)) = _mm_extract_ps(V, 2); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + _mm_store_ss(z, vResult); +#endif +} + +// Store the W component into a 32 bit float location in memory. +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorGetWPtr(float* w, FXMVECTOR V) noexcept +{ + assert(w != nullptr); +#if defined(_XM_NO_INTRINSICS_) + *w = V.vector4_f32[3]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_lane_f32(w, V, 3); +#elif defined(_XM_SSE4_INTRINSICS_) + * (reinterpret_cast(w)) = _mm_extract_ps(V, 3); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + _mm_store_ss(w, vResult); +#endif +} + +//------------------------------------------------------------------------------ + +// Return an integer value via an index. This is not a recommended +// function to use due to performance loss. +inline uint32_t XM_CALLCONV XMVectorGetIntByIndex(FXMVECTOR V, size_t i) noexcept +{ + assert(i < 4); + _Analysis_assume_(i < 4); +#if defined(_XM_NO_INTRINSICS_) + return V.vector4_u32[i]; +#else + XMVECTORU32 U; + U.v = V; + return U.u[i]; +#endif +} + +//------------------------------------------------------------------------------ + +// Return the X component in an integer register. +inline uint32_t XM_CALLCONV XMVectorGetIntX(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return V.vector4_u32[0]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vgetq_lane_u32(vreinterpretq_u32_f32(V), 0); +#elif defined(_XM_SSE_INTRINSICS_) + return static_cast(_mm_cvtsi128_si32(_mm_castps_si128(V))); +#endif +} + +// Return the Y component in an integer register. +inline uint32_t XM_CALLCONV XMVectorGetIntY(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return V.vector4_u32[1]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vgetq_lane_u32(vreinterpretq_u32_f32(V), 1); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128i V1 = _mm_castps_si128(V); + return static_cast(_mm_extract_epi32(V1, 1)); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vResulti = _mm_shuffle_epi32(_mm_castps_si128(V), _MM_SHUFFLE(1, 1, 1, 1)); + return static_cast(_mm_cvtsi128_si32(vResulti)); +#endif +} + +// Return the Z component in an integer register. +inline uint32_t XM_CALLCONV XMVectorGetIntZ(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return V.vector4_u32[2]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vgetq_lane_u32(vreinterpretq_u32_f32(V), 2); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128i V1 = _mm_castps_si128(V); + return static_cast(_mm_extract_epi32(V1, 2)); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vResulti = _mm_shuffle_epi32(_mm_castps_si128(V), _MM_SHUFFLE(2, 2, 2, 2)); + return static_cast(_mm_cvtsi128_si32(vResulti)); +#endif +} + +// Return the W component in an integer register. +inline uint32_t XM_CALLCONV XMVectorGetIntW(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return V.vector4_u32[3]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vgetq_lane_u32(vreinterpretq_u32_f32(V), 3); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128i V1 = _mm_castps_si128(V); + return static_cast(_mm_extract_epi32(V1, 3)); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vResulti = _mm_shuffle_epi32(_mm_castps_si128(V), _MM_SHUFFLE(3, 3, 3, 3)); + return static_cast(_mm_cvtsi128_si32(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ + +// Store a component indexed by i into a 32 bit integer location in memory. +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorGetIntByIndexPtr(uint32_t* x, FXMVECTOR V, size_t i) noexcept +{ + assert(x != nullptr); + assert(i < 4); + _Analysis_assume_(i < 4); +#if defined(_XM_NO_INTRINSICS_) + *x = V.vector4_u32[i]; +#else + XMVECTORU32 U; + U.v = V; + *x = U.u[i]; +#endif +} + +//------------------------------------------------------------------------------ + +// Store the X component into a 32 bit integer location in memory. +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorGetIntXPtr(uint32_t* x, FXMVECTOR V) noexcept +{ + assert(x != nullptr); +#if defined(_XM_NO_INTRINSICS_) + *x = V.vector4_u32[0]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_lane_u32(x, *reinterpret_cast(&V), 0); +#elif defined(_XM_SSE_INTRINSICS_) + _mm_store_ss(reinterpret_cast(x), V); +#endif +} + +// Store the Y component into a 32 bit integer location in memory. +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorGetIntYPtr(uint32_t* y, FXMVECTOR V) noexcept +{ + assert(y != nullptr); +#if defined(_XM_NO_INTRINSICS_) + *y = V.vector4_u32[1]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_lane_u32(y, *reinterpret_cast(&V), 1); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128i V1 = _mm_castps_si128(V); + *y = static_cast(_mm_extract_epi32(V1, 1)); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + _mm_store_ss(reinterpret_cast(y), vResult); +#endif +} + +// Store the Z component into a 32 bit integer locaCantion in memory. +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorGetIntZPtr(uint32_t* z, FXMVECTOR V) noexcept +{ + assert(z != nullptr); +#if defined(_XM_NO_INTRINSICS_) + *z = V.vector4_u32[2]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_lane_u32(z, *reinterpret_cast(&V), 2); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128i V1 = _mm_castps_si128(V); + *z = static_cast(_mm_extract_epi32(V1, 2)); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + _mm_store_ss(reinterpret_cast(z), vResult); +#endif +} + +// Store the W component into a 32 bit integer location in memory. +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorGetIntWPtr(uint32_t* w, FXMVECTOR V) noexcept +{ + assert(w != nullptr); +#if defined(_XM_NO_INTRINSICS_) + *w = V.vector4_u32[3]; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + vst1q_lane_u32(w, *reinterpret_cast(&V), 3); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128i V1 = _mm_castps_si128(V); + *w = static_cast(_mm_extract_epi32(V1, 3)); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + _mm_store_ss(reinterpret_cast(w), vResult); +#endif +} + +//------------------------------------------------------------------------------ + +// Set a single indexed floating point component +inline XMVECTOR XM_CALLCONV XMVectorSetByIndex(FXMVECTOR V, float f, size_t i) noexcept +{ + assert(i < 4); + _Analysis_assume_(i < 4); + XMVECTORF32 U; + U.v = V; + U.f[i] = f; + return U.v; +} + +//------------------------------------------------------------------------------ + +// Sets the X component of a vector to a passed floating point value +inline XMVECTOR XM_CALLCONV XMVectorSetX(FXMVECTOR V, float x) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 U = { { { + x, + V.vector4_f32[1], + V.vector4_f32[2], + V.vector4_f32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vsetq_lane_f32(x, V, 0); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = _mm_set_ss(x); + vResult = _mm_move_ss(V, vResult); + return vResult; +#endif +} + +// Sets the Y component of a vector to a passed floating point value +inline XMVECTOR XM_CALLCONV XMVectorSetY(FXMVECTOR V, float y) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 U = { { { + V.vector4_f32[0], + y, + V.vector4_f32[2], + V.vector4_f32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vsetq_lane_f32(y, V, 1); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vResult = _mm_set_ss(y); + vResult = _mm_insert_ps(V, vResult, 0x10); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Swap y and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 2, 0, 1)); + // Convert input to vector + XMVECTOR vTemp = _mm_set_ss(y); + // Replace the x component + vResult = _mm_move_ss(vResult, vTemp); + // Swap y and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(3, 2, 0, 1)); + return vResult; +#endif +} +// Sets the Z component of a vector to a passed floating point value +inline XMVECTOR XM_CALLCONV XMVectorSetZ(FXMVECTOR V, float z) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 U = { { { + V.vector4_f32[0], + V.vector4_f32[1], + z, + V.vector4_f32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vsetq_lane_f32(z, V, 2); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vResult = _mm_set_ss(z); + vResult = _mm_insert_ps(V, vResult, 0x20); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Swap z and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 0, 1, 2)); + // Convert input to vector + XMVECTOR vTemp = _mm_set_ss(z); + // Replace the x component + vResult = _mm_move_ss(vResult, vTemp); + // Swap z and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(3, 0, 1, 2)); + return vResult; +#endif +} + +// Sets the W component of a vector to a passed floating point value +inline XMVECTOR XM_CALLCONV XMVectorSetW(FXMVECTOR V, float w) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 U = { { { + V.vector4_f32[0], + V.vector4_f32[1], + V.vector4_f32[2], + w + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vsetq_lane_f32(w, V, 3); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vResult = _mm_set_ss(w); + vResult = _mm_insert_ps(V, vResult, 0x30); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Swap w and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 2, 1, 3)); + // Convert input to vector + XMVECTOR vTemp = _mm_set_ss(w); + // Replace the x component + vResult = _mm_move_ss(vResult, vTemp); + // Swap w and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(0, 2, 1, 3)); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +// Sets a component of a vector to a floating point value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorSetByIndexPtr(FXMVECTOR V, const float* f, size_t i) noexcept +{ + assert(f != nullptr); + assert(i < 4); + _Analysis_assume_(i < 4); + XMVECTORF32 U; + U.v = V; + U.f[i] = *f; + return U.v; +} + +//------------------------------------------------------------------------------ + +// Sets the X component of a vector to a floating point value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorSetXPtr(FXMVECTOR V, const float* x) noexcept +{ + assert(x != nullptr); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 U = { { { + *x, + V.vector4_f32[1], + V.vector4_f32[2], + V.vector4_f32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vld1q_lane_f32(x, V, 0); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = _mm_load_ss(x); + vResult = _mm_move_ss(V, vResult); + return vResult; +#endif +} + +// Sets the Y component of a vector to a floating point value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorSetYPtr(FXMVECTOR V, const float* y) noexcept +{ + assert(y != nullptr); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 U = { { { + V.vector4_f32[0], + *y, + V.vector4_f32[2], + V.vector4_f32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vld1q_lane_f32(y, V, 1); +#elif defined(_XM_SSE_INTRINSICS_) + // Swap y and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 2, 0, 1)); + // Convert input to vector + XMVECTOR vTemp = _mm_load_ss(y); + // Replace the x component + vResult = _mm_move_ss(vResult, vTemp); + // Swap y and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(3, 2, 0, 1)); + return vResult; +#endif +} + +// Sets the Z component of a vector to a floating point value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorSetZPtr(FXMVECTOR V, const float* z) noexcept +{ + assert(z != nullptr); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 U = { { { + V.vector4_f32[0], + V.vector4_f32[1], + *z, + V.vector4_f32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vld1q_lane_f32(z, V, 2); +#elif defined(_XM_SSE_INTRINSICS_) + // Swap z and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 0, 1, 2)); + // Convert input to vector + XMVECTOR vTemp = _mm_load_ss(z); + // Replace the x component + vResult = _mm_move_ss(vResult, vTemp); + // Swap z and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(3, 0, 1, 2)); + return vResult; +#endif +} + +// Sets the W component of a vector to a floating point value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorSetWPtr(FXMVECTOR V, const float* w) noexcept +{ + assert(w != nullptr); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 U = { { { + V.vector4_f32[0], + V.vector4_f32[1], + V.vector4_f32[2], + *w + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vld1q_lane_f32(w, V, 3); +#elif defined(_XM_SSE_INTRINSICS_) + // Swap w and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 2, 1, 3)); + // Convert input to vector + XMVECTOR vTemp = _mm_load_ss(w); + // Replace the x component + vResult = _mm_move_ss(vResult, vTemp); + // Swap w and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(0, 2, 1, 3)); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +// Sets a component of a vector to an integer passed by value +inline XMVECTOR XM_CALLCONV XMVectorSetIntByIndex(FXMVECTOR V, uint32_t x, size_t i) noexcept +{ + assert(i < 4); + _Analysis_assume_(i < 4); + XMVECTORU32 tmp; + tmp.v = V; + tmp.u[i] = x; + return tmp; +} + +//------------------------------------------------------------------------------ + +// Sets the X component of a vector to an integer passed by value +inline XMVECTOR XM_CALLCONV XMVectorSetIntX(FXMVECTOR V, uint32_t x) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 U = { { { + x, + V.vector4_u32[1], + V.vector4_u32[2], + V.vector4_u32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vsetq_lane_u32(x, vreinterpretq_u32_f32(V), 0)); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_cvtsi32_si128(static_cast(x)); + XMVECTOR vResult = _mm_move_ss(V, _mm_castsi128_ps(vTemp)); + return vResult; +#endif +} + +// Sets the Y component of a vector to an integer passed by value +inline XMVECTOR XM_CALLCONV XMVectorSetIntY(FXMVECTOR V, uint32_t y) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 U = { { { + V.vector4_u32[0], + y, + V.vector4_u32[2], + V.vector4_u32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vsetq_lane_u32(y, vreinterpretq_u32_f32(V), 1)); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128i vResult = _mm_castps_si128(V); + vResult = _mm_insert_epi32(vResult, static_cast(y), 1); + return _mm_castsi128_ps(vResult); +#elif defined(_XM_SSE_INTRINSICS_) + // Swap y and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 2, 0, 1)); + // Convert input to vector + __m128i vTemp = _mm_cvtsi32_si128(static_cast(y)); + // Replace the x component + vResult = _mm_move_ss(vResult, _mm_castsi128_ps(vTemp)); + // Swap y and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(3, 2, 0, 1)); + return vResult; +#endif +} + +// Sets the Z component of a vector to an integer passed by value +inline XMVECTOR XM_CALLCONV XMVectorSetIntZ(FXMVECTOR V, uint32_t z) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 U = { { { + V.vector4_u32[0], + V.vector4_u32[1], + z, + V.vector4_u32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vsetq_lane_u32(z, vreinterpretq_u32_f32(V), 2)); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128i vResult = _mm_castps_si128(V); + vResult = _mm_insert_epi32(vResult, static_cast(z), 2); + return _mm_castsi128_ps(vResult); +#elif defined(_XM_SSE_INTRINSICS_) + // Swap z and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 0, 1, 2)); + // Convert input to vector + __m128i vTemp = _mm_cvtsi32_si128(static_cast(z)); + // Replace the x component + vResult = _mm_move_ss(vResult, _mm_castsi128_ps(vTemp)); + // Swap z and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(3, 0, 1, 2)); + return vResult; +#endif +} + +// Sets the W component of a vector to an integer passed by value +inline XMVECTOR XM_CALLCONV XMVectorSetIntW(FXMVECTOR V, uint32_t w) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 U = { { { + V.vector4_u32[0], + V.vector4_u32[1], + V.vector4_u32[2], + w + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vsetq_lane_u32(w, vreinterpretq_u32_f32(V), 3)); +#elif defined(_XM_SSE4_INTRINSICS_) + __m128i vResult = _mm_castps_si128(V); + vResult = _mm_insert_epi32(vResult, static_cast(w), 3); + return _mm_castsi128_ps(vResult); +#elif defined(_XM_SSE_INTRINSICS_) + // Swap w and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 2, 1, 3)); + // Convert input to vector + __m128i vTemp = _mm_cvtsi32_si128(static_cast(w)); + // Replace the x component + vResult = _mm_move_ss(vResult, _mm_castsi128_ps(vTemp)); + // Swap w and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(0, 2, 1, 3)); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +// Sets a component of a vector to an integer value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorSetIntByIndexPtr(FXMVECTOR V, const uint32_t* x, size_t i) noexcept +{ + assert(x != nullptr); + assert(i < 4); + _Analysis_assume_(i < 4); + XMVECTORU32 tmp; + tmp.v = V; + tmp.u[i] = *x; + return tmp; +} + +//------------------------------------------------------------------------------ + +// Sets the X component of a vector to an integer value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorSetIntXPtr(FXMVECTOR V, const uint32_t* x) noexcept +{ + assert(x != nullptr); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 U = { { { + *x, + V.vector4_u32[1], + V.vector4_u32[2], + V.vector4_u32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vld1q_lane_u32(x, *reinterpret_cast(&V), 0)); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_load_ss(reinterpret_cast(x)); + XMVECTOR vResult = _mm_move_ss(V, vTemp); + return vResult; +#endif +} + +// Sets the Y component of a vector to an integer value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorSetIntYPtr(FXMVECTOR V, const uint32_t* y) noexcept +{ + assert(y != nullptr); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 U = { { { + V.vector4_u32[0], + *y, + V.vector4_u32[2], + V.vector4_u32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vld1q_lane_u32(y, *reinterpret_cast(&V), 1)); +#elif defined(_XM_SSE_INTRINSICS_) + // Swap y and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 2, 0, 1)); + // Convert input to vector + XMVECTOR vTemp = _mm_load_ss(reinterpret_cast(y)); + // Replace the x component + vResult = _mm_move_ss(vResult, vTemp); + // Swap y and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(3, 2, 0, 1)); + return vResult; +#endif +} + +// Sets the Z component of a vector to an integer value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorSetIntZPtr(FXMVECTOR V, const uint32_t* z) noexcept +{ + assert(z != nullptr); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 U = { { { + V.vector4_u32[0], + V.vector4_u32[1], + *z, + V.vector4_u32[3] + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vld1q_lane_u32(z, *reinterpret_cast(&V), 2)); +#elif defined(_XM_SSE_INTRINSICS_) + // Swap z and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 0, 1, 2)); + // Convert input to vector + XMVECTOR vTemp = _mm_load_ss(reinterpret_cast(z)); + // Replace the x component + vResult = _mm_move_ss(vResult, vTemp); + // Swap z and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(3, 0, 1, 2)); + return vResult; +#endif +} + +// Sets the W component of a vector to an integer value passed by pointer +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorSetIntWPtr(FXMVECTOR V, const uint32_t* w) noexcept +{ + assert(w != nullptr); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORU32 U = { { { + V.vector4_u32[0], + V.vector4_u32[1], + V.vector4_u32[2], + *w + } } }; + return U.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vld1q_lane_u32(w, *reinterpret_cast(&V), 3)); +#elif defined(_XM_SSE_INTRINSICS_) + // Swap w and x + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 2, 1, 3)); + // Convert input to vector + XMVECTOR vTemp = _mm_load_ss(reinterpret_cast(w)); + // Replace the x component + vResult = _mm_move_ss(vResult, vTemp); + // Swap w and x again + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(0, 2, 1, 3)); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorSwizzle +( + FXMVECTOR V, + uint32_t E0, + uint32_t E1, + uint32_t E2, + uint32_t E3 +) noexcept +{ + assert((E0 < 4) && (E1 < 4) && (E2 < 4) && (E3 < 4)); + _Analysis_assume_((E0 < 4) && (E1 < 4) && (E2 < 4) && (E3 < 4)); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + V.vector4_f32[E0], + V.vector4_f32[E1], + V.vector4_f32[E2], + V.vector4_f32[E3] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const uint32_t ControlElement[4] = + { + 0x03020100, // XM_SWIZZLE_X + 0x07060504, // XM_SWIZZLE_Y + 0x0B0A0908, // XM_SWIZZLE_Z + 0x0F0E0D0C, // XM_SWIZZLE_W + }; + + uint8x8x2_t tbl; + tbl.val[0] = vreinterpret_u8_f32(vget_low_f32(V)); + tbl.val[1] = vreinterpret_u8_f32(vget_high_f32(V)); + + uint32x2_t idx = vcreate_u32(static_cast(ControlElement[E0]) | (static_cast(ControlElement[E1]) << 32)); + const uint8x8_t rL = vtbl2_u8(tbl, vreinterpret_u8_u32(idx)); + + idx = vcreate_u32(static_cast(ControlElement[E2]) | (static_cast(ControlElement[E3]) << 32)); + const uint8x8_t rH = vtbl2_u8(tbl, vreinterpret_u8_u32(idx)); + + return vcombine_f32(vreinterpret_f32_u8(rL), vreinterpret_f32_u8(rH)); +#elif defined(_XM_AVX_INTRINSICS_) + unsigned int elem[4] = { E0, E1, E2, E3 }; + __m128i vControl = _mm_loadu_si128(reinterpret_cast(&elem[0])); + return _mm_permutevar_ps(V, vControl); +#else + auto aPtr = reinterpret_cast(&V); + + XMVECTOR Result; + auto pWork = reinterpret_cast(&Result); + + pWork[0] = aPtr[E0]; + pWork[1] = aPtr[E1]; + pWork[2] = aPtr[E2]; + pWork[3] = aPtr[E3]; + + return Result; +#endif +} + +//------------------------------------------------------------------------------ +inline XMVECTOR XM_CALLCONV XMVectorPermute +( + FXMVECTOR V1, + FXMVECTOR V2, + uint32_t PermuteX, + uint32_t PermuteY, + uint32_t PermuteZ, + uint32_t PermuteW +) noexcept +{ + assert(PermuteX <= 7 && PermuteY <= 7 && PermuteZ <= 7 && PermuteW <= 7); + _Analysis_assume_(PermuteX <= 7 && PermuteY <= 7 && PermuteZ <= 7 && PermuteW <= 7); + +#if defined(_XM_ARM_NEON_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + static const uint32_t ControlElement[8] = + { + 0x03020100, // XM_PERMUTE_0X + 0x07060504, // XM_PERMUTE_0Y + 0x0B0A0908, // XM_PERMUTE_0Z + 0x0F0E0D0C, // XM_PERMUTE_0W + 0x13121110, // XM_PERMUTE_1X + 0x17161514, // XM_PERMUTE_1Y + 0x1B1A1918, // XM_PERMUTE_1Z + 0x1F1E1D1C, // XM_PERMUTE_1W + }; + + uint8x8x4_t tbl; + tbl.val[0] = vreinterpret_u8_f32(vget_low_f32(V1)); + tbl.val[1] = vreinterpret_u8_f32(vget_high_f32(V1)); + tbl.val[2] = vreinterpret_u8_f32(vget_low_f32(V2)); + tbl.val[3] = vreinterpret_u8_f32(vget_high_f32(V2)); + + uint32x2_t idx = vcreate_u32(static_cast(ControlElement[PermuteX]) | (static_cast(ControlElement[PermuteY]) << 32)); + const uint8x8_t rL = vtbl4_u8(tbl, vreinterpret_u8_u32(idx)); + + idx = vcreate_u32(static_cast(ControlElement[PermuteZ]) | (static_cast(ControlElement[PermuteW]) << 32)); + const uint8x8_t rH = vtbl4_u8(tbl, vreinterpret_u8_u32(idx)); + + return vcombine_f32(vreinterpret_f32_u8(rL), vreinterpret_f32_u8(rH)); +#elif defined(_XM_AVX_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + static const XMVECTORU32 three = { { { 3, 3, 3, 3 } } }; + + XM_ALIGNED_DATA(16) unsigned int elem[4] = { PermuteX, PermuteY, PermuteZ, PermuteW }; + __m128i vControl = _mm_load_si128(reinterpret_cast(&elem[0])); + + __m128i vSelect = _mm_cmpgt_epi32(vControl, three); + vControl = _mm_castps_si128(_mm_and_ps(_mm_castsi128_ps(vControl), three)); + + __m128 shuffled1 = _mm_permutevar_ps(V1, vControl); + __m128 shuffled2 = _mm_permutevar_ps(V2, vControl); + + __m128 masked1 = _mm_andnot_ps(_mm_castsi128_ps(vSelect), shuffled1); + __m128 masked2 = _mm_and_ps(_mm_castsi128_ps(vSelect), shuffled2); + + return _mm_or_ps(masked1, masked2); +#else + + const uint32_t* aPtr[2]; + aPtr[0] = reinterpret_cast(&V1); + aPtr[1] = reinterpret_cast(&V2); + + XMVECTOR Result; + auto pWork = reinterpret_cast(&Result); + + const uint32_t i0 = PermuteX & 3; + const uint32_t vi0 = PermuteX >> 2; + pWork[0] = aPtr[vi0][i0]; + + const uint32_t i1 = PermuteY & 3; + const uint32_t vi1 = PermuteY >> 2; + pWork[1] = aPtr[vi1][i1]; + + const uint32_t i2 = PermuteZ & 3; + const uint32_t vi2 = PermuteZ >> 2; + pWork[2] = aPtr[vi2][i2]; + + const uint32_t i3 = PermuteW & 3; + const uint32_t vi3 = PermuteW >> 2; + pWork[3] = aPtr[vi3][i3]; + + return Result; +#endif +} + +//------------------------------------------------------------------------------ +// Define a control vector to be used in XMVectorSelect +// operations. The four integers specified in XMVectorSelectControl +// serve as indices to select between components in two vectors. +// The first index controls selection for the first component of +// the vectors involved in a select operation, the second index +// controls selection for the second component etc. A value of +// zero for an index causes the corresponding component from the first +// vector to be selected whereas a one causes the component from the +// second vector to be selected instead. + +inline XMVECTOR XM_CALLCONV XMVectorSelectControl +( + uint32_t VectorIndex0, + uint32_t VectorIndex1, + uint32_t VectorIndex2, + uint32_t VectorIndex3 +) noexcept +{ +#if defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + // x=Index0,y=Index1,z=Index2,w=Index3 + __m128i vTemp = _mm_set_epi32(static_cast(VectorIndex3), static_cast(VectorIndex2), static_cast(VectorIndex1), static_cast(VectorIndex0)); + // Any non-zero entries become 0xFFFFFFFF else 0 + vTemp = _mm_cmpgt_epi32(vTemp, g_XMZero); + return _mm_castsi128_ps(vTemp); +#elif defined(_XM_ARM_NEON_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + int32x2_t V0 = vcreate_s32(static_cast(VectorIndex0) | (static_cast(VectorIndex1) << 32)); + int32x2_t V1 = vcreate_s32(static_cast(VectorIndex2) | (static_cast(VectorIndex3) << 32)); + int32x4_t vTemp = vcombine_s32(V0, V1); + // Any non-zero entries become 0xFFFFFFFF else 0 + return vreinterpretq_f32_u32(vcgtq_s32(vTemp, g_XMZero)); +#else + XMVECTOR ControlVector; + const uint32_t ControlElement[] = + { + XM_SELECT_0, + XM_SELECT_1 + }; + + assert(VectorIndex0 < 2); + assert(VectorIndex1 < 2); + assert(VectorIndex2 < 2); + assert(VectorIndex3 < 2); + _Analysis_assume_(VectorIndex0 < 2); + _Analysis_assume_(VectorIndex1 < 2); + _Analysis_assume_(VectorIndex2 < 2); + _Analysis_assume_(VectorIndex3 < 2); + + ControlVector.vector4_u32[0] = ControlElement[VectorIndex0]; + ControlVector.vector4_u32[1] = ControlElement[VectorIndex1]; + ControlVector.vector4_u32[2] = ControlElement[VectorIndex2]; + ControlVector.vector4_u32[3] = ControlElement[VectorIndex3]; + + return ControlVector; + +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorSelect +( + FXMVECTOR V1, + FXMVECTOR V2, + FXMVECTOR Control +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Result = { { { + (V1.vector4_u32[0] & ~Control.vector4_u32[0]) | (V2.vector4_u32[0] & Control.vector4_u32[0]), + (V1.vector4_u32[1] & ~Control.vector4_u32[1]) | (V2.vector4_u32[1] & Control.vector4_u32[1]), + (V1.vector4_u32[2] & ~Control.vector4_u32[2]) | (V2.vector4_u32[2] & Control.vector4_u32[2]), + (V1.vector4_u32[3] & ~Control.vector4_u32[3]) | (V2.vector4_u32[3] & Control.vector4_u32[3]), + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vbslq_f32(vreinterpretq_u32_f32(Control), V2, V1); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp1 = _mm_andnot_ps(Control, V1); + XMVECTOR vTemp2 = _mm_and_ps(V2, Control); + return _mm_or_ps(vTemp1, vTemp2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorMergeXY +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Result = { { { + V1.vector4_u32[0], + V2.vector4_u32[0], + V1.vector4_u32[1], + V2.vector4_u32[1], + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vzipq_f32(V1, V2).val[0]; +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_unpacklo_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorMergeZW +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Result = { { { + V1.vector4_u32[2], + V2.vector4_u32[2], + V1.vector4_u32[3], + V2.vector4_u32[3] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vzipq_f32(V1, V2).val[1]; +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_unpackhi_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorShiftLeft(FXMVECTOR V1, FXMVECTOR V2, uint32_t Elements) noexcept +{ + assert(Elements < 4); + _Analysis_assume_(Elements < 4); + return XMVectorPermute(V1, V2, Elements, ((Elements)+1), ((Elements)+2), ((Elements)+3)); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorRotateLeft(FXMVECTOR V, uint32_t Elements) noexcept +{ + assert(Elements < 4); + _Analysis_assume_(Elements < 4); + return XMVectorSwizzle(V, Elements & 3, (Elements + 1) & 3, (Elements + 2) & 3, (Elements + 3) & 3); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorRotateRight(FXMVECTOR V, uint32_t Elements) noexcept +{ + assert(Elements < 4); + _Analysis_assume_(Elements < 4); + return XMVectorSwizzle(V, (4 - (Elements)) & 3, (5 - (Elements)) & 3, (6 - (Elements)) & 3, (7 - (Elements)) & 3); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorInsert( + FXMVECTOR VD, FXMVECTOR VS, + uint32_t VSLeftRotateElements, + uint32_t Select0, uint32_t Select1, uint32_t Select2, uint32_t Select3) noexcept +{ + XMVECTOR Control = XMVectorSelectControl(Select0 & 1, Select1 & 1, Select2 & 1, Select3 & 1); + return XMVectorSelect(VD, XMVectorRotateLeft(VS, VSLeftRotateElements), Control); +} + +//------------------------------------------------------------------------------ +// Comparison operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + (V1.vector4_f32[0] == V2.vector4_f32[0]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[1] == V2.vector4_f32[1]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[2] == V2.vector4_f32[2]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[3] == V2.vector4_f32[3]) ? 0xFFFFFFFF : 0, + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vceqq_f32(V1, V2)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_cmpeq_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorEqualR +( + uint32_t* pCR, + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + assert(pCR != nullptr); +#if defined(_XM_NO_INTRINSICS_) + uint32_t ux = (V1.vector4_f32[0] == V2.vector4_f32[0]) ? 0xFFFFFFFFU : 0; + uint32_t uy = (V1.vector4_f32[1] == V2.vector4_f32[1]) ? 0xFFFFFFFFU : 0; + uint32_t uz = (V1.vector4_f32[2] == V2.vector4_f32[2]) ? 0xFFFFFFFFU : 0; + uint32_t uw = (V1.vector4_f32[3] == V2.vector4_f32[3]) ? 0xFFFFFFFFU : 0; + uint32_t CR = 0; + if (ux & uy & uz & uw) + { + // All elements are greater + CR = XM_CRMASK_CR6TRUE; + } + else if (!(ux | uy | uz | uw)) + { + // All elements are not greater + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + + XMVECTORU32 Control = { { { ux, uy, uz, uw } } }; + return Control; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vreinterpret_u8_u32(vget_low_u32(vResult)), vreinterpret_u8_u32(vget_high_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + uint32_t CR = 0; + if (r == 0xFFFFFFFFU) + { + // All elements are equal + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + // All elements are not equal + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + return vreinterpretq_f32_u32(vResult); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpeq_ps(V1, V2); + uint32_t CR = 0; + int iTest = _mm_movemask_ps(vTemp); + if (iTest == 0xf) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + // All elements are not greater + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ +// Treat the components of the vectors as unsigned integers and +// compare individual bits between the two. This is useful for +// comparing control vectors and result vectors returned from +// other comparison operations. + +inline XMVECTOR XM_CALLCONV XMVectorEqualInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + (V1.vector4_u32[0] == V2.vector4_u32[0]) ? 0xFFFFFFFF : 0, + (V1.vector4_u32[1] == V2.vector4_u32[1]) ? 0xFFFFFFFF : 0, + (V1.vector4_u32[2] == V2.vector4_u32[2]) ? 0xFFFFFFFF : 0, + (V1.vector4_u32[3] == V2.vector4_u32[3]) ? 0xFFFFFFFF : 0, + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vceqq_s32(vreinterpretq_s32_f32(V1), vreinterpretq_s32_f32(V2))); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + return _mm_castsi128_ps(V); +#endif +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorEqualIntR +( + uint32_t* pCR, + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + assert(pCR != nullptr); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Control = XMVectorEqualInt(V1, V2); + + *pCR = 0; + if (XMVector4EqualInt(Control, XMVectorTrueInt())) + { + // All elements are equal + *pCR |= XM_CRMASK_CR6TRUE; + } + else if (XMVector4EqualInt(Control, XMVectorFalseInt())) + { + // All elements are not equal + *pCR |= XM_CRMASK_CR6FALSE; + } + return Control; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2)); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + uint32_t CR = 0; + if (r == 0xFFFFFFFFU) + { + // All elements are equal + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + // All elements are not equal + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + return vreinterpretq_f32_u32(vResult); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + int iTemp = _mm_movemask_ps(_mm_castsi128_ps(V)); + uint32_t CR = 0; + if (iTemp == 0x0F) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTemp) + { + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + return _mm_castsi128_ps(V); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorNearEqual +( + FXMVECTOR V1, + FXMVECTOR V2, + FXMVECTOR Epsilon +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + float fDeltax = V1.vector4_f32[0] - V2.vector4_f32[0]; + float fDeltay = V1.vector4_f32[1] - V2.vector4_f32[1]; + float fDeltaz = V1.vector4_f32[2] - V2.vector4_f32[2]; + float fDeltaw = V1.vector4_f32[3] - V2.vector4_f32[3]; + + fDeltax = fabsf(fDeltax); + fDeltay = fabsf(fDeltay); + fDeltaz = fabsf(fDeltaz); + fDeltaw = fabsf(fDeltaw); + + XMVECTORU32 Control = { { { + (fDeltax <= Epsilon.vector4_f32[0]) ? 0xFFFFFFFFU : 0, + (fDeltay <= Epsilon.vector4_f32[1]) ? 0xFFFFFFFFU : 0, + (fDeltaz <= Epsilon.vector4_f32[2]) ? 0xFFFFFFFFU : 0, + (fDeltaw <= Epsilon.vector4_f32[3]) ? 0xFFFFFFFFU : 0, + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vDelta = vsubq_f32(V1, V2); +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + return vacleq_f32(vDelta, Epsilon); +#else + return vreinterpretq_f32_u32(vcleq_f32(vabsq_f32(vDelta), Epsilon)); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + // Get the difference + XMVECTOR vDelta = _mm_sub_ps(V1, V2); + // Get the absolute value of the difference + XMVECTOR vTemp = _mm_setzero_ps(); + vTemp = _mm_sub_ps(vTemp, vDelta); + vTemp = _mm_max_ps(vTemp, vDelta); + vTemp = _mm_cmple_ps(vTemp, Epsilon); + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorNotEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + (V1.vector4_f32[0] != V2.vector4_f32[0]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[1] != V2.vector4_f32[1]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[2] != V2.vector4_f32[2]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[3] != V2.vector4_f32[3]) ? 0xFFFFFFFF : 0, + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vmvnq_u32(vceqq_f32(V1, V2))); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_cmpneq_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorNotEqualInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + (V1.vector4_u32[0] != V2.vector4_u32[0]) ? 0xFFFFFFFFU : 0, + (V1.vector4_u32[1] != V2.vector4_u32[1]) ? 0xFFFFFFFFU : 0, + (V1.vector4_u32[2] != V2.vector4_u32[2]) ? 0xFFFFFFFFU : 0, + (V1.vector4_u32[3] != V2.vector4_u32[3]) ? 0xFFFFFFFFU : 0 + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vmvnq_u32( + vceqq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2)))); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + return _mm_xor_ps(_mm_castsi128_ps(V), g_XMNegOneMask); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorGreater +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + (V1.vector4_f32[0] > V2.vector4_f32[0]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[1] > V2.vector4_f32[1]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[2] > V2.vector4_f32[2]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[3] > V2.vector4_f32[3]) ? 0xFFFFFFFF : 0 + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vcgtq_f32(V1, V2)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_cmpgt_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorGreaterR +( + uint32_t* pCR, + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + assert(pCR != nullptr); +#if defined(_XM_NO_INTRINSICS_) + + uint32_t ux = (V1.vector4_f32[0] > V2.vector4_f32[0]) ? 0xFFFFFFFFU : 0; + uint32_t uy = (V1.vector4_f32[1] > V2.vector4_f32[1]) ? 0xFFFFFFFFU : 0; + uint32_t uz = (V1.vector4_f32[2] > V2.vector4_f32[2]) ? 0xFFFFFFFFU : 0; + uint32_t uw = (V1.vector4_f32[3] > V2.vector4_f32[3]) ? 0xFFFFFFFFU : 0; + uint32_t CR = 0; + if (ux & uy & uz & uw) + { + // All elements are greater + CR = XM_CRMASK_CR6TRUE; + } + else if (!(ux | uy | uz | uw)) + { + // All elements are not greater + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + + XMVECTORU32 Control = { { { ux, uy, uz, uw } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcgtq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + uint32_t CR = 0; + if (r == 0xFFFFFFFFU) + { + // All elements are greater + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + // All elements are not greater + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + return vreinterpretq_f32_u32(vResult); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpgt_ps(V1, V2); + uint32_t CR = 0; + int iTest = _mm_movemask_ps(vTemp); + if (iTest == 0xf) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + // All elements are not greater + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorGreaterOrEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + (V1.vector4_f32[0] >= V2.vector4_f32[0]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[1] >= V2.vector4_f32[1]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[2] >= V2.vector4_f32[2]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[3] >= V2.vector4_f32[3]) ? 0xFFFFFFFF : 0 + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vcgeq_f32(V1, V2)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_cmpge_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorGreaterOrEqualR +( + uint32_t* pCR, + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + assert(pCR != nullptr); +#if defined(_XM_NO_INTRINSICS_) + + uint32_t ux = (V1.vector4_f32[0] >= V2.vector4_f32[0]) ? 0xFFFFFFFFU : 0; + uint32_t uy = (V1.vector4_f32[1] >= V2.vector4_f32[1]) ? 0xFFFFFFFFU : 0; + uint32_t uz = (V1.vector4_f32[2] >= V2.vector4_f32[2]) ? 0xFFFFFFFFU : 0; + uint32_t uw = (V1.vector4_f32[3] >= V2.vector4_f32[3]) ? 0xFFFFFFFFU : 0; + uint32_t CR = 0; + if (ux & uy & uz & uw) + { + // All elements are greater + CR = XM_CRMASK_CR6TRUE; + } + else if (!(ux | uy | uz | uw)) + { + // All elements are not greater + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + + XMVECTORU32 Control = { { { ux, uy, uz, uw } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcgeq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + uint32_t CR = 0; + if (r == 0xFFFFFFFFU) + { + // All elements are greater or equal + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + // All elements are not greater or equal + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + return vreinterpretq_f32_u32(vResult); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpge_ps(V1, V2); + uint32_t CR = 0; + int iTest = _mm_movemask_ps(vTemp); + if (iTest == 0xf) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + // All elements are not greater + CR = XM_CRMASK_CR6FALSE; + } + *pCR = CR; + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorLess +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + (V1.vector4_f32[0] < V2.vector4_f32[0]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[1] < V2.vector4_f32[1]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[2] < V2.vector4_f32[2]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[3] < V2.vector4_f32[3]) ? 0xFFFFFFFF : 0 + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vcltq_f32(V1, V2)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_cmplt_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorLessOrEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + (V1.vector4_f32[0] <= V2.vector4_f32[0]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[1] <= V2.vector4_f32[1]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[2] <= V2.vector4_f32[2]) ? 0xFFFFFFFF : 0, + (V1.vector4_f32[3] <= V2.vector4_f32[3]) ? 0xFFFFFFFF : 0 + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vcleq_f32(V1, V2)); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_cmple_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorInBounds +( + FXMVECTOR V, + FXMVECTOR Bounds +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + (V.vector4_f32[0] <= Bounds.vector4_f32[0] && V.vector4_f32[0] >= -Bounds.vector4_f32[0]) ? 0xFFFFFFFF : 0, + (V.vector4_f32[1] <= Bounds.vector4_f32[1] && V.vector4_f32[1] >= -Bounds.vector4_f32[1]) ? 0xFFFFFFFF : 0, + (V.vector4_f32[2] <= Bounds.vector4_f32[2] && V.vector4_f32[2] >= -Bounds.vector4_f32[2]) ? 0xFFFFFFFF : 0, + (V.vector4_f32[3] <= Bounds.vector4_f32[3] && V.vector4_f32[3] >= -Bounds.vector4_f32[3]) ? 0xFFFFFFFF : 0 + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Test if less than or equal + uint32x4_t vTemp1 = vcleq_f32(V, Bounds); + // Negate the bounds + uint32x4_t vTemp2 = vreinterpretq_u32_f32(vnegq_f32(Bounds)); + // Test if greater or equal (Reversed) + vTemp2 = vcleq_f32(vreinterpretq_f32_u32(vTemp2), V); + // Blend answers + vTemp1 = vandq_u32(vTemp1, vTemp2); + return vreinterpretq_f32_u32(vTemp1); +#elif defined(_XM_SSE_INTRINSICS_) + // Test if less than or equal + XMVECTOR vTemp1 = _mm_cmple_ps(V, Bounds); + // Negate the bounds + XMVECTOR vTemp2 = _mm_mul_ps(Bounds, g_XMNegativeOne); + // Test if greater or equal (Reversed) + vTemp2 = _mm_cmple_ps(vTemp2, V); + // Blend answers + vTemp1 = _mm_and_ps(vTemp1, vTemp2); + return vTemp1; +#endif +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMVectorInBoundsR +( + uint32_t* pCR, + FXMVECTOR V, + FXMVECTOR Bounds +) noexcept +{ + assert(pCR != nullptr); +#if defined(_XM_NO_INTRINSICS_) + + uint32_t ux = (V.vector4_f32[0] <= Bounds.vector4_f32[0] && V.vector4_f32[0] >= -Bounds.vector4_f32[0]) ? 0xFFFFFFFFU : 0; + uint32_t uy = (V.vector4_f32[1] <= Bounds.vector4_f32[1] && V.vector4_f32[1] >= -Bounds.vector4_f32[1]) ? 0xFFFFFFFFU : 0; + uint32_t uz = (V.vector4_f32[2] <= Bounds.vector4_f32[2] && V.vector4_f32[2] >= -Bounds.vector4_f32[2]) ? 0xFFFFFFFFU : 0; + uint32_t uw = (V.vector4_f32[3] <= Bounds.vector4_f32[3] && V.vector4_f32[3] >= -Bounds.vector4_f32[3]) ? 0xFFFFFFFFU : 0; + + uint32_t CR = 0; + if (ux & uy & uz & uw) + { + // All elements are in bounds + CR = XM_CRMASK_CR6BOUNDS; + } + *pCR = CR; + + XMVECTORU32 Control = { { { ux, uy, uz, uw } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Test if less than or equal + uint32x4_t vTemp1 = vcleq_f32(V, Bounds); + // Negate the bounds + uint32x4_t vTemp2 = vreinterpretq_u32_f32(vnegq_f32(Bounds)); + // Test if greater or equal (Reversed) + vTemp2 = vcleq_f32(vreinterpretq_f32_u32(vTemp2), V); + // Blend answers + vTemp1 = vandq_u32(vTemp1, vTemp2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vTemp1)), vget_high_u8(vreinterpretq_u8_u32(vTemp1))); + uint16x4x2_t vTemp3 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp3.val[1]), 1); + uint32_t CR = 0; + if (r == 0xFFFFFFFFU) + { + // All elements are in bounds + CR = XM_CRMASK_CR6BOUNDS; + } + *pCR = CR; + return vreinterpretq_f32_u32(vTemp1); +#elif defined(_XM_SSE_INTRINSICS_) + // Test if less than or equal + XMVECTOR vTemp1 = _mm_cmple_ps(V, Bounds); + // Negate the bounds + XMVECTOR vTemp2 = _mm_mul_ps(Bounds, g_XMNegativeOne); + // Test if greater or equal (Reversed) + vTemp2 = _mm_cmple_ps(vTemp2, V); + // Blend answers + vTemp1 = _mm_and_ps(vTemp1, vTemp2); + + uint32_t CR = 0; + if (_mm_movemask_ps(vTemp1) == 0xf) + { + // All elements are in bounds + CR = XM_CRMASK_CR6BOUNDS; + } + *pCR = CR; + return vTemp1; +#endif +} + +//------------------------------------------------------------------------------ + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(push) +#pragma float_control(precise, on) +#endif + +inline XMVECTOR XM_CALLCONV XMVectorIsNaN(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + XMISNAN(V.vector4_f32[0]) ? 0xFFFFFFFFU : 0, + XMISNAN(V.vector4_f32[1]) ? 0xFFFFFFFFU : 0, + XMISNAN(V.vector4_f32[2]) ? 0xFFFFFFFFU : 0, + XMISNAN(V.vector4_f32[3]) ? 0xFFFFFFFFU : 0 + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + #if defined(__clang__) && defined(__FINITE_MATH_ONLY__) + XMVECTORU32 vResult = { { { + isnan(vgetq_lane_f32(V, 0)) ? 0xFFFFFFFFU : 0, + isnan(vgetq_lane_f32(V, 1)) ? 0xFFFFFFFFU : 0, + isnan(vgetq_lane_f32(V, 2)) ? 0xFFFFFFFFU : 0, + isnan(vgetq_lane_f32(V, 3)) ? 0xFFFFFFFFU : 0 } } }; + return vResult.v; + #else + // Test against itself. NaN is always not equal + uint32x4_t vTempNan = vceqq_f32(V, V); + // Flip results + return vreinterpretq_f32_u32(vmvnq_u32(vTempNan)); + #endif +#elif defined(_XM_SSE_INTRINSICS_) + #if defined(__clang__) && defined(__FINITE_MATH_ONLY__) + XM_ALIGNED_DATA(16) float tmp[4]; + _mm_store_ps(tmp, V); + XMVECTORU32 vResult = { { { + isnan(tmp[0]) ? 0xFFFFFFFFU : 0, + isnan(tmp[1]) ? 0xFFFFFFFFU : 0, + isnan(tmp[2]) ? 0xFFFFFFFFU : 0, + isnan(tmp[3]) ? 0xFFFFFFFFU : 0 } } }; + return vResult.v; + #else + // Test against itself. NaN is always not equal + return _mm_cmpneq_ps(V, V); + #endif +#endif +} + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(pop) +#endif + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorIsInfinite(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Control = { { { + XMISINF(V.vector4_f32[0]) ? 0xFFFFFFFFU : 0, + XMISINF(V.vector4_f32[1]) ? 0xFFFFFFFFU : 0, + XMISINF(V.vector4_f32[2]) ? 0xFFFFFFFFU : 0, + XMISINF(V.vector4_f32[3]) ? 0xFFFFFFFFU : 0 + } } }; + return Control.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Mask off the sign bit + uint32x4_t vTemp = vandq_u32(vreinterpretq_u32_f32(V), g_XMAbsMask); + // Compare to infinity + vTemp = vceqq_f32(vreinterpretq_f32_u32(vTemp), g_XMInfinity); + // If any are infinity, the signs are true. + return vreinterpretq_f32_u32(vTemp); +#elif defined(_XM_SSE_INTRINSICS_) + // Mask off the sign bit + __m128 vTemp = _mm_and_ps(V, g_XMAbsMask); + // Compare to infinity + vTemp = _mm_cmpeq_ps(vTemp, g_XMInfinity); + // If any are infinity, the signs are true. + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ +// Rounding and clamping operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorMin +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + (V1.vector4_f32[0] < V2.vector4_f32[0]) ? V1.vector4_f32[0] : V2.vector4_f32[0], + (V1.vector4_f32[1] < V2.vector4_f32[1]) ? V1.vector4_f32[1] : V2.vector4_f32[1], + (V1.vector4_f32[2] < V2.vector4_f32[2]) ? V1.vector4_f32[2] : V2.vector4_f32[2], + (V1.vector4_f32[3] < V2.vector4_f32[3]) ? V1.vector4_f32[3] : V2.vector4_f32[3] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vminq_f32(V1, V2); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_min_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorMax +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + (V1.vector4_f32[0] > V2.vector4_f32[0]) ? V1.vector4_f32[0] : V2.vector4_f32[0], + (V1.vector4_f32[1] > V2.vector4_f32[1]) ? V1.vector4_f32[1] : V2.vector4_f32[1], + (V1.vector4_f32[2] > V2.vector4_f32[2]) ? V1.vector4_f32[2] : V2.vector4_f32[2], + (V1.vector4_f32[3] > V2.vector4_f32[3]) ? V1.vector4_f32[3] : V2.vector4_f32[3] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vmaxq_f32(V1, V2); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_max_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +namespace Internal +{ + // Round to nearest (even) a.k.a. banker's rounding + inline float round_to_nearest(float x) noexcept + { + float i = floorf(x); + x -= i; + if (x < 0.5f) + return i; + if (x > 0.5f) + return i + 1.f; + + float int_part; + (void)modff(i / 2.f, &int_part); + if ((2.f * int_part) == i) + { + return i; + } + + return i + 1.f; + } +} + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(push) +#pragma float_control(precise, on) +#endif + +inline XMVECTOR XM_CALLCONV XMVectorRound(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + Internal::round_to_nearest(V.vector4_f32[0]), + Internal::round_to_nearest(V.vector4_f32[1]), + Internal::round_to_nearest(V.vector4_f32[2]), + Internal::round_to_nearest(V.vector4_f32[3]) + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + return vrndnq_f32(V); +#else + uint32x4_t sign = vandq_u32(vreinterpretq_u32_f32(V), g_XMNegativeZero); + float32x4_t sMagic = vreinterpretq_f32_u32(vorrq_u32(g_XMNoFraction, sign)); + float32x4_t R1 = vaddq_f32(V, sMagic); + R1 = vsubq_f32(R1, sMagic); + float32x4_t R2 = vabsq_f32(V); + uint32x4_t mask = vcleq_f32(R2, g_XMNoFraction); + return vbslq_f32(mask, R1, V); +#endif +#elif defined(_XM_SSE4_INTRINSICS_) + return _mm_round_ps(V, _MM_FROUND_TO_NEAREST_INT | _MM_FROUND_NO_EXC); +#elif defined(_XM_SSE_INTRINSICS_) + __m128 sign = _mm_and_ps(V, g_XMNegativeZero); + __m128 sMagic = _mm_or_ps(g_XMNoFraction, sign); + __m128 R1 = _mm_add_ps(V, sMagic); + R1 = _mm_sub_ps(R1, sMagic); + __m128 R2 = _mm_and_ps(V, g_XMAbsMask); + __m128 mask = _mm_cmple_ps(R2, g_XMNoFraction); + R2 = _mm_andnot_ps(mask, V); + R1 = _mm_and_ps(R1, mask); + XMVECTOR vResult = _mm_xor_ps(R1, R2); + return vResult; +#endif +} + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(pop) +#endif + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorTruncate(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR Result; + uint32_t i; + + // Avoid C4701 + Result.vector4_f32[0] = 0.0f; + + for (i = 0; i < 4; i++) + { + if (XMISNAN(V.vector4_f32[i])) + { + Result.vector4_u32[i] = 0x7FC00000; + } + else if (fabsf(V.vector4_f32[i]) < 8388608.0f) + { + Result.vector4_f32[i] = static_cast(static_cast(V.vector4_f32[i])); + } + else + { + Result.vector4_f32[i] = V.vector4_f32[i]; + } + } + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + return vrndq_f32(V); +#else + float32x4_t vTest = vabsq_f32(V); + vTest = vreinterpretq_f32_u32(vcltq_f32(vTest, g_XMNoFraction)); + + int32x4_t vInt = vcvtq_s32_f32(V); + float32x4_t vResult = vcvtq_f32_s32(vInt); + + // All numbers less than 8388608 will use the round to int + // All others, use the ORIGINAL value + return vbslq_f32(vreinterpretq_u32_f32(vTest), vResult, V); +#endif +#elif defined(_XM_SSE4_INTRINSICS_) + return _mm_round_ps(V, _MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC); +#elif defined(_XM_SSE_INTRINSICS_) + // To handle NAN, INF and numbers greater than 8388608, use masking + // Get the abs value + __m128i vTest = _mm_and_si128(_mm_castps_si128(V), g_XMAbsMask); + // Test for greater than 8388608 (All floats with NO fractionals, NAN and INF + vTest = _mm_cmplt_epi32(vTest, g_XMNoFraction); + // Convert to int and back to float for rounding with truncation + __m128i vInt = _mm_cvttps_epi32(V); + // Convert back to floats + XMVECTOR vResult = _mm_cvtepi32_ps(vInt); + // All numbers less than 8388608 will use the round to int + vResult = _mm_and_ps(vResult, _mm_castsi128_ps(vTest)); + // All others, use the ORIGINAL value + vTest = _mm_andnot_si128(vTest, _mm_castps_si128(V)); + vResult = _mm_or_ps(vResult, _mm_castsi128_ps(vTest)); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorFloor(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + floorf(V.vector4_f32[0]), + floorf(V.vector4_f32[1]), + floorf(V.vector4_f32[2]), + floorf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + return vrndmq_f32(V); +#else + float32x4_t vTest = vabsq_f32(V); + vTest = vreinterpretq_f32_u32(vcltq_f32(vTest, g_XMNoFraction)); + // Truncate + int32x4_t vInt = vcvtq_s32_f32(V); + float32x4_t vResult = vcvtq_f32_s32(vInt); + uint32x4_t vLargerMask = vcgtq_f32(vResult, V); + // 0 -> 0, 0xffffffff -> -1.0f + float32x4_t vLarger = vcvtq_f32_s32(vreinterpretq_s32_u32(vLargerMask)); + vResult = vaddq_f32(vResult, vLarger); + // All numbers less than 8388608 will use the round to int + // All others, use the ORIGINAL value + return vbslq_f32(vreinterpretq_u32_f32(vTest), vResult, V); +#endif +#elif defined(_XM_SSE4_INTRINSICS_) + return _mm_floor_ps(V); +#elif defined(_XM_SSE_INTRINSICS_) + // To handle NAN, INF and numbers greater than 8388608, use masking + __m128i vTest = _mm_and_si128(_mm_castps_si128(V), g_XMAbsMask); + vTest = _mm_cmplt_epi32(vTest, g_XMNoFraction); + // Truncate + __m128i vInt = _mm_cvttps_epi32(V); + XMVECTOR vResult = _mm_cvtepi32_ps(vInt); + __m128 vLarger = _mm_cmpgt_ps(vResult, V); + // 0 -> 0, 0xffffffff -> -1.0f + vLarger = _mm_cvtepi32_ps(_mm_castps_si128(vLarger)); + vResult = _mm_add_ps(vResult, vLarger); + // All numbers less than 8388608 will use the round to int + vResult = _mm_and_ps(vResult, _mm_castsi128_ps(vTest)); + // All others, use the ORIGINAL value + vTest = _mm_andnot_si128(vTest, _mm_castps_si128(V)); + vResult = _mm_or_ps(vResult, _mm_castsi128_ps(vTest)); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorCeiling(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + ceilf(V.vector4_f32[0]), + ceilf(V.vector4_f32[1]), + ceilf(V.vector4_f32[2]), + ceilf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + return vrndpq_f32(V); +#else + float32x4_t vTest = vabsq_f32(V); + vTest = vreinterpretq_f32_u32(vcltq_f32(vTest, g_XMNoFraction)); + // Truncate + int32x4_t vInt = vcvtq_s32_f32(V); + float32x4_t vResult = vcvtq_f32_s32(vInt); + uint32x4_t vSmallerMask = vcltq_f32(vResult, V); + // 0 -> 0, 0xffffffff -> -1.0f + float32x4_t vSmaller = vcvtq_f32_s32(vreinterpretq_s32_u32(vSmallerMask)); + vResult = vsubq_f32(vResult, vSmaller); + // All numbers less than 8388608 will use the round to int + // All others, use the ORIGINAL value + return vbslq_f32(vreinterpretq_u32_f32(vTest), vResult, V); +#endif +#elif defined(_XM_SSE4_INTRINSICS_) + return _mm_ceil_ps(V); +#elif defined(_XM_SSE_INTRINSICS_) + // To handle NAN, INF and numbers greater than 8388608, use masking + __m128i vTest = _mm_and_si128(_mm_castps_si128(V), g_XMAbsMask); + vTest = _mm_cmplt_epi32(vTest, g_XMNoFraction); + // Truncate + __m128i vInt = _mm_cvttps_epi32(V); + XMVECTOR vResult = _mm_cvtepi32_ps(vInt); + __m128 vSmaller = _mm_cmplt_ps(vResult, V); + // 0 -> 0, 0xffffffff -> -1.0f + vSmaller = _mm_cvtepi32_ps(_mm_castps_si128(vSmaller)); + vResult = _mm_sub_ps(vResult, vSmaller); + // All numbers less than 8388608 will use the round to int + vResult = _mm_and_ps(vResult, _mm_castsi128_ps(vTest)); + // All others, use the ORIGINAL value + vTest = _mm_andnot_si128(vTest, _mm_castps_si128(V)); + vResult = _mm_or_ps(vResult, _mm_castsi128_ps(vTest)); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorClamp +( + FXMVECTOR V, + FXMVECTOR Min, + FXMVECTOR Max +) noexcept +{ + assert(XMVector4LessOrEqual(Min, Max)); + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + Result = XMVectorMax(Min, V); + Result = XMVectorMin(Max, Result); + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vResult = vmaxq_f32(Min, V); + vResult = vminq_f32(Max, vResult); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult; + vResult = _mm_max_ps(Min, V); + vResult = _mm_min_ps(Max, vResult); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorSaturate(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + const XMVECTOR Zero = XMVectorZero(); + + return XMVectorClamp(V, Zero, g_XMOne.v); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Set <0 to 0 + float32x4_t vResult = vmaxq_f32(V, vdupq_n_f32(0)); + // Set>1 to 1 + return vminq_f32(vResult, vdupq_n_f32(1.0f)); +#elif defined(_XM_SSE_INTRINSICS_) + // Set <0 to 0 + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + // Set>1 to 1 + return _mm_min_ps(vResult, g_XMOne); +#endif +} + +//------------------------------------------------------------------------------ +// Bitwise logical operations +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorAndInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Result = { { { + V1.vector4_u32[0] & V2.vector4_u32[0], + V1.vector4_u32[1] & V2.vector4_u32[1], + V1.vector4_u32[2] & V2.vector4_u32[2], + V1.vector4_u32[3] & V2.vector4_u32[3] + } } }; + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2))); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_and_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorAndCInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Result = { { { + V1.vector4_u32[0] & ~V2.vector4_u32[0], + V1.vector4_u32[1] & ~V2.vector4_u32[1], + V1.vector4_u32[2] & ~V2.vector4_u32[2], + V1.vector4_u32[3] & ~V2.vector4_u32[3] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vbicq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2))); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_andnot_si128(_mm_castps_si128(V2), _mm_castps_si128(V1)); + return _mm_castsi128_ps(V); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorOrInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Result = { { { + V1.vector4_u32[0] | V2.vector4_u32[0], + V1.vector4_u32[1] | V2.vector4_u32[1], + V1.vector4_u32[2] | V2.vector4_u32[2], + V1.vector4_u32[3] | V2.vector4_u32[3] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(vorrq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2))); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_or_si128(_mm_castps_si128(V1), _mm_castps_si128(V2)); + return _mm_castsi128_ps(V); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorNorInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Result = { { { + ~(V1.vector4_u32[0] | V2.vector4_u32[0]), + ~(V1.vector4_u32[1] | V2.vector4_u32[1]), + ~(V1.vector4_u32[2] | V2.vector4_u32[2]), + ~(V1.vector4_u32[3] | V2.vector4_u32[3]) + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t Result = vorrq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2)); + return vreinterpretq_f32_u32(vbicq_u32(g_XMNegOneMask, Result)); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i Result; + Result = _mm_or_si128(_mm_castps_si128(V1), _mm_castps_si128(V2)); + Result = _mm_andnot_si128(Result, g_XMNegOneMask); + return _mm_castsi128_ps(Result); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorXorInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORU32 Result = { { { + V1.vector4_u32[0] ^ V2.vector4_u32[0], + V1.vector4_u32[1] ^ V2.vector4_u32[1], + V1.vector4_u32[2] ^ V2.vector4_u32[2], + V1.vector4_u32[3] ^ V2.vector4_u32[3] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vreinterpretq_f32_u32(veorq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2))); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i V = _mm_xor_si128(_mm_castps_si128(V1), _mm_castps_si128(V2)); + return _mm_castsi128_ps(V); +#endif +} + +//------------------------------------------------------------------------------ +// Computation operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorNegate(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + -V.vector4_f32[0], + -V.vector4_f32[1], + -V.vector4_f32[2], + -V.vector4_f32[3] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vnegq_f32(V); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR Z; + + Z = _mm_setzero_ps(); + + return _mm_sub_ps(Z, V); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorAdd +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + V1.vector4_f32[0] + V2.vector4_f32[0], + V1.vector4_f32[1] + V2.vector4_f32[1], + V1.vector4_f32[2] + V2.vector4_f32[2], + V1.vector4_f32[3] + V2.vector4_f32[3] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vaddq_f32(V1, V2); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_add_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorSum(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result; + Result.f[0] = + Result.f[1] = + Result.f[2] = + Result.f[3] = V.vector4_f32[0] + V.vector4_f32[1] + V.vector4_f32[2] + V.vector4_f32[3]; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + float32x4_t vTemp = vpaddq_f32(V, V); + return vpaddq_f32(vTemp, vTemp); +#else + float32x2_t v1 = vget_low_f32(V); + float32x2_t v2 = vget_high_f32(V); + v1 = vadd_f32(v1, v2); + v1 = vpadd_f32(v1, v1); + return vcombine_f32(v1, v1); +#endif +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vTemp = _mm_hadd_ps(V, V); + return _mm_hadd_ps(vTemp, vTemp); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 3, 0, 1)); + XMVECTOR vTemp2 = _mm_add_ps(V, vTemp); + vTemp = XM_PERMUTE_PS(vTemp2, _MM_SHUFFLE(1, 0, 3, 2)); + return _mm_add_ps(vTemp, vTemp2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorAddAngles +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + const XMVECTOR Zero = XMVectorZero(); + + // Add the given angles together. If the range of V1 is such + // that -Pi <= V1 < Pi and the range of V2 is such that + // -2Pi <= V2 <= 2Pi, then the range of the resulting angle + // will be -Pi <= Result < Pi. + XMVECTOR Result = XMVectorAdd(V1, V2); + + XMVECTOR Mask = XMVectorLess(Result, g_XMNegativePi.v); + XMVECTOR Offset = XMVectorSelect(Zero, g_XMTwoPi.v, Mask); + + Mask = XMVectorGreaterOrEqual(Result, g_XMPi.v); + Offset = XMVectorSelect(Offset, g_XMNegativeTwoPi.v, Mask); + + Result = XMVectorAdd(Result, Offset); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Adjust the angles + float32x4_t vResult = vaddq_f32(V1, V2); + // Less than Pi? + uint32x4_t vOffset = vcltq_f32(vResult, g_XMNegativePi); + vOffset = vandq_u32(vOffset, g_XMTwoPi); + // Add 2Pi to all entries less than -Pi + vResult = vaddq_f32(vResult, vreinterpretq_f32_u32(vOffset)); + // Greater than or equal to Pi? + vOffset = vcgeq_f32(vResult, g_XMPi); + vOffset = vandq_u32(vOffset, g_XMTwoPi); + // Sub 2Pi to all entries greater than Pi + vResult = vsubq_f32(vResult, vreinterpretq_f32_u32(vOffset)); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Adjust the angles + XMVECTOR vResult = _mm_add_ps(V1, V2); + // Less than Pi? + XMVECTOR vOffset = _mm_cmplt_ps(vResult, g_XMNegativePi); + vOffset = _mm_and_ps(vOffset, g_XMTwoPi); + // Add 2Pi to all entries less than -Pi + vResult = _mm_add_ps(vResult, vOffset); + // Greater than or equal to Pi? + vOffset = _mm_cmpge_ps(vResult, g_XMPi); + vOffset = _mm_and_ps(vOffset, g_XMTwoPi); + // Sub 2Pi to all entries greater than Pi + vResult = _mm_sub_ps(vResult, vOffset); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorSubtract +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + V1.vector4_f32[0] - V2.vector4_f32[0], + V1.vector4_f32[1] - V2.vector4_f32[1], + V1.vector4_f32[2] - V2.vector4_f32[2], + V1.vector4_f32[3] - V2.vector4_f32[3] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vsubq_f32(V1, V2); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_sub_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorSubtractAngles +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + const XMVECTOR Zero = XMVectorZero(); + + // Subtract the given angles. If the range of V1 is such + // that -Pi <= V1 < Pi and the range of V2 is such that + // -2Pi <= V2 <= 2Pi, then the range of the resulting angle + // will be -Pi <= Result < Pi. + XMVECTOR Result = XMVectorSubtract(V1, V2); + + XMVECTOR Mask = XMVectorLess(Result, g_XMNegativePi.v); + XMVECTOR Offset = XMVectorSelect(Zero, g_XMTwoPi.v, Mask); + + Mask = XMVectorGreaterOrEqual(Result, g_XMPi.v); + Offset = XMVectorSelect(Offset, g_XMNegativeTwoPi.v, Mask); + + Result = XMVectorAdd(Result, Offset); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Adjust the angles + XMVECTOR vResult = vsubq_f32(V1, V2); + // Less than Pi? + uint32x4_t vOffset = vcltq_f32(vResult, g_XMNegativePi); + vOffset = vandq_u32(vOffset, g_XMTwoPi); + // Add 2Pi to all entries less than -Pi + vResult = vaddq_f32(vResult, vreinterpretq_f32_u32(vOffset)); + // Greater than or equal to Pi? + vOffset = vcgeq_f32(vResult, g_XMPi); + vOffset = vandq_u32(vOffset, g_XMTwoPi); + // Sub 2Pi to all entries greater than Pi + vResult = vsubq_f32(vResult, vreinterpretq_f32_u32(vOffset)); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Adjust the angles + XMVECTOR vResult = _mm_sub_ps(V1, V2); + // Less than Pi? + XMVECTOR vOffset = _mm_cmplt_ps(vResult, g_XMNegativePi); + vOffset = _mm_and_ps(vOffset, g_XMTwoPi); + // Add 2Pi to all entries less than -Pi + vResult = _mm_add_ps(vResult, vOffset); + // Greater than or equal to Pi? + vOffset = _mm_cmpge_ps(vResult, g_XMPi); + vOffset = _mm_and_ps(vOffset, g_XMTwoPi); + // Sub 2Pi to all entries greater than Pi + vResult = _mm_sub_ps(vResult, vOffset); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorMultiply +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + V1.vector4_f32[0] * V2.vector4_f32[0], + V1.vector4_f32[1] * V2.vector4_f32[1], + V1.vector4_f32[2] * V2.vector4_f32[2], + V1.vector4_f32[3] * V2.vector4_f32[3] + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vmulq_f32(V1, V2); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_mul_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorMultiplyAdd +( + FXMVECTOR V1, + FXMVECTOR V2, + FXMVECTOR V3 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + V1.vector4_f32[0] * V2.vector4_f32[0] + V3.vector4_f32[0], + V1.vector4_f32[1] * V2.vector4_f32[1] + V3.vector4_f32[1], + V1.vector4_f32[2] * V2.vector4_f32[2] + V3.vector4_f32[2], + V1.vector4_f32[3] * V2.vector4_f32[3] + V3.vector4_f32[3] + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + return vfmaq_f32(V3, V1, V2); +#else + return vmlaq_f32(V3, V1, V2); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + return XM_FMADD_PS(V1, V2, V3); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorDivide +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + V1.vector4_f32[0] / V2.vector4_f32[0], + V1.vector4_f32[1] / V2.vector4_f32[1], + V1.vector4_f32[2] / V2.vector4_f32[2], + V1.vector4_f32[3] / V2.vector4_f32[3] + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + return vdivq_f32(V1, V2); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal + float32x4_t Reciprocal = vrecpeq_f32(V2); + float32x4_t S = vrecpsq_f32(Reciprocal, V2); + Reciprocal = vmulq_f32(S, Reciprocal); + S = vrecpsq_f32(Reciprocal, V2); + Reciprocal = vmulq_f32(S, Reciprocal); + return vmulq_f32(V1, Reciprocal); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_div_ps(V1, V2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorNegativeMultiplySubtract +( + FXMVECTOR V1, + FXMVECTOR V2, + FXMVECTOR V3 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + V3.vector4_f32[0] - (V1.vector4_f32[0] * V2.vector4_f32[0]), + V3.vector4_f32[1] - (V1.vector4_f32[1] * V2.vector4_f32[1]), + V3.vector4_f32[2] - (V1.vector4_f32[2] * V2.vector4_f32[2]), + V3.vector4_f32[3] - (V1.vector4_f32[3] * V2.vector4_f32[3]) + } } }; + return Result; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + return vfmsq_f32(V3, V1, V2); +#else + return vmlsq_f32(V3, V1, V2); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + return XM_FNMADD_PS(V1, V2, V3); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorScale +( + FXMVECTOR V, + float ScaleFactor +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + V.vector4_f32[0] * ScaleFactor, + V.vector4_f32[1] * ScaleFactor, + V.vector4_f32[2] * ScaleFactor, + V.vector4_f32[3] * ScaleFactor + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vmulq_n_f32(V, ScaleFactor); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = _mm_set_ps1(ScaleFactor); + return _mm_mul_ps(vResult, V); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorReciprocalEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + 1.f / V.vector4_f32[0], + 1.f / V.vector4_f32[1], + 1.f / V.vector4_f32[2], + 1.f / V.vector4_f32[3] + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vrecpeq_f32(V); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_rcp_ps(V); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorReciprocal(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + 1.f / V.vector4_f32[0], + 1.f / V.vector4_f32[1], + 1.f / V.vector4_f32[2], + 1.f / V.vector4_f32[3] + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + float32x4_t one = vdupq_n_f32(1.0f); + return vdivq_f32(one, V); +#else + // 2 iterations of Newton-Raphson refinement + float32x4_t Reciprocal = vrecpeq_f32(V); + float32x4_t S = vrecpsq_f32(Reciprocal, V); + Reciprocal = vmulq_f32(S, Reciprocal); + S = vrecpsq_f32(Reciprocal, V); + return vmulq_f32(S, Reciprocal); +#endif +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_div_ps(g_XMOne, V); +#endif +} + +//------------------------------------------------------------------------------ +// Return an estimated square root +inline XMVECTOR XM_CALLCONV XMVectorSqrtEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + sqrtf(V.vector4_f32[0]), + sqrtf(V.vector4_f32[1]), + sqrtf(V.vector4_f32[2]), + sqrtf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // 1 iteration of Newton-Raphson refinment of sqrt + float32x4_t S0 = vrsqrteq_f32(V); + float32x4_t P0 = vmulq_f32(V, S0); + float32x4_t R0 = vrsqrtsq_f32(P0, S0); + float32x4_t S1 = vmulq_f32(S0, R0); + + XMVECTOR VEqualsInfinity = XMVectorEqualInt(V, g_XMInfinity.v); + XMVECTOR VEqualsZero = XMVectorEqual(V, vdupq_n_f32(0)); + XMVECTOR Result = vmulq_f32(V, S1); + XMVECTOR Select = XMVectorEqualInt(VEqualsInfinity, VEqualsZero); + return XMVectorSelect(V, Result, Select); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_sqrt_ps(V); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorSqrt(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + sqrtf(V.vector4_f32[0]), + sqrtf(V.vector4_f32[1]), + sqrtf(V.vector4_f32[2]), + sqrtf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // 3 iterations of Newton-Raphson refinment of sqrt + float32x4_t S0 = vrsqrteq_f32(V); + float32x4_t P0 = vmulq_f32(V, S0); + float32x4_t R0 = vrsqrtsq_f32(P0, S0); + float32x4_t S1 = vmulq_f32(S0, R0); + float32x4_t P1 = vmulq_f32(V, S1); + float32x4_t R1 = vrsqrtsq_f32(P1, S1); + float32x4_t S2 = vmulq_f32(S1, R1); + float32x4_t P2 = vmulq_f32(V, S2); + float32x4_t R2 = vrsqrtsq_f32(P2, S2); + float32x4_t S3 = vmulq_f32(S2, R2); + + XMVECTOR VEqualsInfinity = XMVectorEqualInt(V, g_XMInfinity.v); + XMVECTOR VEqualsZero = XMVectorEqual(V, vdupq_n_f32(0)); + XMVECTOR Result = vmulq_f32(V, S3); + XMVECTOR Select = XMVectorEqualInt(VEqualsInfinity, VEqualsZero); + return XMVectorSelect(V, Result, Select); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_sqrt_ps(V); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorReciprocalSqrtEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + 1.f / sqrtf(V.vector4_f32[0]), + 1.f / sqrtf(V.vector4_f32[1]), + 1.f / sqrtf(V.vector4_f32[2]), + 1.f / sqrtf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vrsqrteq_f32(V); +#elif defined(_XM_SSE_INTRINSICS_) + return _mm_rsqrt_ps(V); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorReciprocalSqrt(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + 1.f / sqrtf(V.vector4_f32[0]), + 1.f / sqrtf(V.vector4_f32[1]), + 1.f / sqrtf(V.vector4_f32[2]), + 1.f / sqrtf(V.vector4_f32[3]) + } } }; + return Result; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // 2 iterations of Newton-Raphson refinement of reciprocal + float32x4_t S0 = vrsqrteq_f32(V); + + float32x4_t P0 = vmulq_f32(V, S0); + float32x4_t R0 = vrsqrtsq_f32(P0, S0); + + float32x4_t S1 = vmulq_f32(S0, R0); + float32x4_t P1 = vmulq_f32(V, S1); + float32x4_t R1 = vrsqrtsq_f32(P1, S1); + + return vmulq_f32(S1, R1); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = _mm_sqrt_ps(V); + vResult = _mm_div_ps(g_XMOne, vResult); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorExp2(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + powf(2.0f, V.vector4_f32[0]), + powf(2.0f, V.vector4_f32[1]), + powf(2.0f, V.vector4_f32[2]), + powf(2.0f, V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int32x4_t itrunc = vcvtq_s32_f32(V); + float32x4_t ftrunc = vcvtq_f32_s32(itrunc); + float32x4_t y = vsubq_f32(V, ftrunc); + + float32x4_t poly = vmlaq_f32(g_XMExpEst6, g_XMExpEst7, y); + poly = vmlaq_f32(g_XMExpEst5, poly, y); + poly = vmlaq_f32(g_XMExpEst4, poly, y); + poly = vmlaq_f32(g_XMExpEst3, poly, y); + poly = vmlaq_f32(g_XMExpEst2, poly, y); + poly = vmlaq_f32(g_XMExpEst1, poly, y); + poly = vmlaq_f32(g_XMOne, poly, y); + + int32x4_t biased = vaddq_s32(itrunc, g_XMExponentBias); + biased = vshlq_n_s32(biased, 23); + float32x4_t result0 = XMVectorDivide(vreinterpretq_f32_s32(biased), poly); + + biased = vaddq_s32(itrunc, g_XM253); + biased = vshlq_n_s32(biased, 23); + float32x4_t result1 = XMVectorDivide(vreinterpretq_f32_s32(biased), poly); + result1 = vmulq_f32(g_XMMinNormal.v, result1); + + // Use selection to handle the cases + // if (V is NaN) -> QNaN; + // else if (V sign bit set) + // if (V > -150) + // if (V.exponent < -126) -> result1 + // else -> result0 + // else -> +0 + // else + // if (V < 128) -> result0 + // else -> +inf + + uint32x4_t comp = vcltq_s32(vreinterpretq_s32_f32(V), g_XMBin128); + float32x4_t result2 = vbslq_f32(comp, result0, g_XMInfinity); + + comp = vcltq_s32(itrunc, g_XMSubnormalExponent); + float32x4_t result3 = vbslq_f32(comp, result1, result0); + + comp = vcltq_s32(vreinterpretq_s32_f32(V), g_XMBinNeg150); + float32x4_t result4 = vbslq_f32(comp, result3, g_XMZero); + + int32x4_t sign = vandq_s32(vreinterpretq_s32_f32(V), g_XMNegativeZero); + comp = vceqq_s32(sign, g_XMNegativeZero); + float32x4_t result5 = vbslq_f32(comp, result4, result2); + + int32x4_t t0 = vandq_s32(vreinterpretq_s32_f32(V), g_XMQNaNTest); + int32x4_t t1 = vandq_s32(vreinterpretq_s32_f32(V), g_XMInfinity); + t0 = vreinterpretq_s32_u32(vceqq_s32(t0, g_XMZero)); + t1 = vreinterpretq_s32_u32(vceqq_s32(t1, g_XMInfinity)); + int32x4_t isNaN = vbicq_s32(t1, t0); + + float32x4_t vResult = vbslq_f32(vreinterpretq_u32_s32(isNaN), g_XMQNaN, result5); + return vResult; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_exp2_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + __m128i itrunc = _mm_cvttps_epi32(V); + __m128 ftrunc = _mm_cvtepi32_ps(itrunc); + __m128 y = _mm_sub_ps(V, ftrunc); + + __m128 poly = XM_FMADD_PS(g_XMExpEst7, y, g_XMExpEst6); + poly = XM_FMADD_PS(poly, y, g_XMExpEst5); + poly = XM_FMADD_PS(poly, y, g_XMExpEst4); + poly = XM_FMADD_PS(poly, y, g_XMExpEst3); + poly = XM_FMADD_PS(poly, y, g_XMExpEst2); + poly = XM_FMADD_PS(poly, y, g_XMExpEst1); + poly = XM_FMADD_PS(poly, y, g_XMOne); + + __m128i biased = _mm_add_epi32(itrunc, g_XMExponentBias); + biased = _mm_slli_epi32(biased, 23); + __m128 result0 = _mm_div_ps(_mm_castsi128_ps(biased), poly); + + biased = _mm_add_epi32(itrunc, g_XM253); + biased = _mm_slli_epi32(biased, 23); + __m128 result1 = _mm_div_ps(_mm_castsi128_ps(biased), poly); + result1 = _mm_mul_ps(g_XMMinNormal.v, result1); + + // Use selection to handle the cases + // if (V is NaN) -> QNaN; + // else if (V sign bit set) + // if (V > -150) + // if (V.exponent < -126) -> result1 + // else -> result0 + // else -> +0 + // else + // if (V < 128) -> result0 + // else -> +inf + + __m128i comp = _mm_cmplt_epi32(_mm_castps_si128(V), g_XMBin128); + __m128i select0 = _mm_and_si128(comp, _mm_castps_si128(result0)); + __m128i select1 = _mm_andnot_si128(comp, g_XMInfinity); + __m128i result2 = _mm_or_si128(select0, select1); + + comp = _mm_cmplt_epi32(itrunc, g_XMSubnormalExponent); + select1 = _mm_and_si128(comp, _mm_castps_si128(result1)); + select0 = _mm_andnot_si128(comp, _mm_castps_si128(result0)); + __m128i result3 = _mm_or_si128(select0, select1); + + comp = _mm_cmplt_epi32(_mm_castps_si128(V), g_XMBinNeg150); + select0 = _mm_and_si128(comp, result3); + select1 = _mm_andnot_si128(comp, g_XMZero); + __m128i result4 = _mm_or_si128(select0, select1); + + __m128i sign = _mm_and_si128(_mm_castps_si128(V), g_XMNegativeZero); + comp = _mm_cmpeq_epi32(sign, g_XMNegativeZero); + select0 = _mm_and_si128(comp, result4); + select1 = _mm_andnot_si128(comp, result2); + __m128i result5 = _mm_or_si128(select0, select1); + + __m128i t0 = _mm_and_si128(_mm_castps_si128(V), g_XMQNaNTest); + __m128i t1 = _mm_and_si128(_mm_castps_si128(V), g_XMInfinity); + t0 = _mm_cmpeq_epi32(t0, g_XMZero); + t1 = _mm_cmpeq_epi32(t1, g_XMInfinity); + __m128i isNaN = _mm_andnot_si128(t0, t1); + + select0 = _mm_and_si128(isNaN, g_XMQNaN); + select1 = _mm_andnot_si128(isNaN, result5); + __m128i vResult = _mm_or_si128(select0, select1); + + return _mm_castsi128_ps(vResult); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorExp10(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + powf(10.0f, V.vector4_f32[0]), + powf(10.0f, V.vector4_f32[1]), + powf(10.0f, V.vector4_f32[2]), + powf(10.0f, V.vector4_f32[3]) + } } }; + return Result.v; + +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_exp10_ps(V); + return Result; +#else + // exp10(V) = exp2(vin*log2(10)) + XMVECTOR Vten = XMVectorMultiply(g_XMLg10, V); + return XMVectorExp2(Vten); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorExpE(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + expf(V.vector4_f32[0]), + expf(V.vector4_f32[1]), + expf(V.vector4_f32[2]), + expf(V.vector4_f32[3]) + } } }; + return Result.v; + +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_exp_ps(V); + return Result; +#else + // expE(V) = exp2(vin*log2(e)) + XMVECTOR Ve = XMVectorMultiply(g_XMLgE, V); + return XMVectorExp2(Ve); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorExp(FXMVECTOR V) noexcept +{ + return XMVectorExp2(V); +} + +//------------------------------------------------------------------------------ + +#if defined(_XM_SSE_INTRINSICS_) + +namespace Internal +{ + inline __m128i multi_sll_epi32(__m128i value, __m128i count) noexcept + { + __m128i v = _mm_shuffle_epi32(value, _MM_SHUFFLE(0, 0, 0, 0)); + __m128i c = _mm_shuffle_epi32(count, _MM_SHUFFLE(0, 0, 0, 0)); + c = _mm_and_si128(c, g_XMMaskX); + __m128i r0 = _mm_sll_epi32(v, c); + + v = _mm_shuffle_epi32(value, _MM_SHUFFLE(1, 1, 1, 1)); + c = _mm_shuffle_epi32(count, _MM_SHUFFLE(1, 1, 1, 1)); + c = _mm_and_si128(c, g_XMMaskX); + __m128i r1 = _mm_sll_epi32(v, c); + + v = _mm_shuffle_epi32(value, _MM_SHUFFLE(2, 2, 2, 2)); + c = _mm_shuffle_epi32(count, _MM_SHUFFLE(2, 2, 2, 2)); + c = _mm_and_si128(c, g_XMMaskX); + __m128i r2 = _mm_sll_epi32(v, c); + + v = _mm_shuffle_epi32(value, _MM_SHUFFLE(3, 3, 3, 3)); + c = _mm_shuffle_epi32(count, _MM_SHUFFLE(3, 3, 3, 3)); + c = _mm_and_si128(c, g_XMMaskX); + __m128i r3 = _mm_sll_epi32(v, c); + + // (r0,r0,r1,r1) + __m128 r01 = _mm_shuffle_ps(_mm_castsi128_ps(r0), _mm_castsi128_ps(r1), _MM_SHUFFLE(0, 0, 0, 0)); + // (r2,r2,r3,r3) + __m128 r23 = _mm_shuffle_ps(_mm_castsi128_ps(r2), _mm_castsi128_ps(r3), _MM_SHUFFLE(0, 0, 0, 0)); + // (r0,r1,r2,r3) + __m128 result = _mm_shuffle_ps(r01, r23, _MM_SHUFFLE(2, 0, 2, 0)); + return _mm_castps_si128(result); + } + + inline __m128i multi_srl_epi32(__m128i value, __m128i count) noexcept + { + __m128i v = _mm_shuffle_epi32(value, _MM_SHUFFLE(0, 0, 0, 0)); + __m128i c = _mm_shuffle_epi32(count, _MM_SHUFFLE(0, 0, 0, 0)); + c = _mm_and_si128(c, g_XMMaskX); + __m128i r0 = _mm_srl_epi32(v, c); + + v = _mm_shuffle_epi32(value, _MM_SHUFFLE(1, 1, 1, 1)); + c = _mm_shuffle_epi32(count, _MM_SHUFFLE(1, 1, 1, 1)); + c = _mm_and_si128(c, g_XMMaskX); + __m128i r1 = _mm_srl_epi32(v, c); + + v = _mm_shuffle_epi32(value, _MM_SHUFFLE(2, 2, 2, 2)); + c = _mm_shuffle_epi32(count, _MM_SHUFFLE(2, 2, 2, 2)); + c = _mm_and_si128(c, g_XMMaskX); + __m128i r2 = _mm_srl_epi32(v, c); + + v = _mm_shuffle_epi32(value, _MM_SHUFFLE(3, 3, 3, 3)); + c = _mm_shuffle_epi32(count, _MM_SHUFFLE(3, 3, 3, 3)); + c = _mm_and_si128(c, g_XMMaskX); + __m128i r3 = _mm_srl_epi32(v, c); + + // (r0,r0,r1,r1) + __m128 r01 = _mm_shuffle_ps(_mm_castsi128_ps(r0), _mm_castsi128_ps(r1), _MM_SHUFFLE(0, 0, 0, 0)); + // (r2,r2,r3,r3) + __m128 r23 = _mm_shuffle_ps(_mm_castsi128_ps(r2), _mm_castsi128_ps(r3), _MM_SHUFFLE(0, 0, 0, 0)); + // (r0,r1,r2,r3) + __m128 result = _mm_shuffle_ps(r01, r23, _MM_SHUFFLE(2, 0, 2, 0)); + return _mm_castps_si128(result); + } + + inline __m128i GetLeadingBit(const __m128i value) noexcept + { + static const XMVECTORI32 g_XM0000FFFF = { { { 0x0000FFFF, 0x0000FFFF, 0x0000FFFF, 0x0000FFFF } } }; + static const XMVECTORI32 g_XM000000FF = { { { 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF } } }; + static const XMVECTORI32 g_XM0000000F = { { { 0x0000000F, 0x0000000F, 0x0000000F, 0x0000000F } } }; + static const XMVECTORI32 g_XM00000003 = { { { 0x00000003, 0x00000003, 0x00000003, 0x00000003 } } }; + + __m128i v = value, r, c, b, s; + + c = _mm_cmpgt_epi32(v, g_XM0000FFFF); // c = (v > 0xFFFF) + b = _mm_srli_epi32(c, 31); // b = (c ? 1 : 0) + r = _mm_slli_epi32(b, 4); // r = (b << 4) + v = multi_srl_epi32(v, r); // v = (v >> r) + + c = _mm_cmpgt_epi32(v, g_XM000000FF); // c = (v > 0xFF) + b = _mm_srli_epi32(c, 31); // b = (c ? 1 : 0) + s = _mm_slli_epi32(b, 3); // s = (b << 3) + v = multi_srl_epi32(v, s); // v = (v >> s) + r = _mm_or_si128(r, s); // r = (r | s) + + c = _mm_cmpgt_epi32(v, g_XM0000000F); // c = (v > 0xF) + b = _mm_srli_epi32(c, 31); // b = (c ? 1 : 0) + s = _mm_slli_epi32(b, 2); // s = (b << 2) + v = multi_srl_epi32(v, s); // v = (v >> s) + r = _mm_or_si128(r, s); // r = (r | s) + + c = _mm_cmpgt_epi32(v, g_XM00000003); // c = (v > 0x3) + b = _mm_srli_epi32(c, 31); // b = (c ? 1 : 0) + s = _mm_slli_epi32(b, 1); // s = (b << 1) + v = multi_srl_epi32(v, s); // v = (v >> s) + r = _mm_or_si128(r, s); // r = (r | s) + + s = _mm_srli_epi32(v, 1); + r = _mm_or_si128(r, s); + return r; + } +} // namespace Internal + +#endif // _XM_SSE_INTRINSICS_ + +#if defined(_XM_ARM_NEON_INTRINSICS_) + +namespace Internal +{ + inline int32x4_t GetLeadingBit(const int32x4_t value) noexcept + { + static const XMVECTORI32 g_XM0000FFFF = { { { 0x0000FFFF, 0x0000FFFF, 0x0000FFFF, 0x0000FFFF } } }; + static const XMVECTORI32 g_XM000000FF = { { { 0x000000FF, 0x000000FF, 0x000000FF, 0x000000FF } } }; + static const XMVECTORI32 g_XM0000000F = { { { 0x0000000F, 0x0000000F, 0x0000000F, 0x0000000F } } }; + static const XMVECTORI32 g_XM00000003 = { { { 0x00000003, 0x00000003, 0x00000003, 0x00000003 } } }; + + uint32x4_t c = vcgtq_s32(value, g_XM0000FFFF); // c = (v > 0xFFFF) + int32x4_t b = vshrq_n_s32(vreinterpretq_s32_u32(c), 31); // b = (c ? 1 : 0) + int32x4_t r = vshlq_n_s32(b, 4); // r = (b << 4) + r = vnegq_s32(r); + int32x4_t v = vshlq_s32(value, r); // v = (v >> r) + + c = vcgtq_s32(v, g_XM000000FF); // c = (v > 0xFF) + b = vshrq_n_s32(vreinterpretq_s32_u32(c), 31); // b = (c ? 1 : 0) + int32x4_t s = vshlq_n_s32(b, 3); // s = (b << 3) + s = vnegq_s32(s); + v = vshlq_s32(v, s); // v = (v >> s) + r = vorrq_s32(r, s); // r = (r | s) + + c = vcgtq_s32(v, g_XM0000000F); // c = (v > 0xF) + b = vshrq_n_s32(vreinterpretq_s32_u32(c), 31); // b = (c ? 1 : 0) + s = vshlq_n_s32(b, 2); // s = (b << 2) + s = vnegq_s32(s); + v = vshlq_s32(v, s); // v = (v >> s) + r = vorrq_s32(r, s); // r = (r | s) + + c = vcgtq_s32(v, g_XM00000003); // c = (v > 0x3) + b = vshrq_n_s32(vreinterpretq_s32_u32(c), 31); // b = (c ? 1 : 0) + s = vshlq_n_s32(b, 1); // s = (b << 1) + s = vnegq_s32(s); + v = vshlq_s32(v, s); // v = (v >> s) + r = vorrq_s32(r, s); // r = (r | s) + + s = vshrq_n_s32(v, 1); + r = vorrq_s32(r, s); + return r; + } + +} // namespace Internal + +#endif + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorLog2(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + const float fScale = 1.4426950f; // (1.0f / logf(2.0f)); + + XMVECTORF32 Result = { { { + logf(V.vector4_f32[0]) * fScale, + logf(V.vector4_f32[1]) * fScale, + logf(V.vector4_f32[2]) * fScale, + logf(V.vector4_f32[3]) * fScale + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int32x4_t rawBiased = vandq_s32(vreinterpretq_s32_f32(V), g_XMInfinity); + int32x4_t trailing = vandq_s32(vreinterpretq_s32_f32(V), g_XMQNaNTest); + uint32x4_t isExponentZero = vceqq_s32(vreinterpretq_s32_f32(g_XMZero), rawBiased); + + // Compute exponent and significand for normals. + int32x4_t biased = vshrq_n_s32(rawBiased, 23); + int32x4_t exponentNor = vsubq_s32(biased, g_XMExponentBias); + int32x4_t trailingNor = trailing; + + // Compute exponent and significand for subnormals. + int32x4_t leading = Internal::GetLeadingBit(trailing); + int32x4_t shift = vsubq_s32(g_XMNumTrailing, leading); + int32x4_t exponentSub = vsubq_s32(g_XMSubnormalExponent, shift); + int32x4_t trailingSub = vshlq_s32(trailing, shift); + trailingSub = vandq_s32(trailingSub, g_XMQNaNTest); + int32x4_t e = vbslq_s32(isExponentZero, exponentSub, exponentNor); + int32x4_t t = vbslq_s32(isExponentZero, trailingSub, trailingNor); + + // Compute the approximation. + int32x4_t tmp = vorrq_s32(vreinterpretq_s32_f32(g_XMOne), t); + float32x4_t y = vsubq_f32(vreinterpretq_f32_s32(tmp), g_XMOne); + + float32x4_t log2 = vmlaq_f32(g_XMLogEst6, g_XMLogEst7, y); + log2 = vmlaq_f32(g_XMLogEst5, log2, y); + log2 = vmlaq_f32(g_XMLogEst4, log2, y); + log2 = vmlaq_f32(g_XMLogEst3, log2, y); + log2 = vmlaq_f32(g_XMLogEst2, log2, y); + log2 = vmlaq_f32(g_XMLogEst1, log2, y); + log2 = vmlaq_f32(g_XMLogEst0, log2, y); + log2 = vmlaq_f32(vcvtq_f32_s32(e), log2, y); + + // if (x is NaN) -> QNaN + // else if (V is positive) + // if (V is infinite) -> +inf + // else -> log2(V) + // else + // if (V is zero) -> -inf + // else -> -QNaN + + uint32x4_t isInfinite = vandq_u32(vreinterpretq_u32_f32(V), g_XMAbsMask); + isInfinite = vceqq_u32(isInfinite, g_XMInfinity); + + uint32x4_t isGreaterZero = vcgtq_f32(V, g_XMZero); + uint32x4_t isNotFinite = vcgtq_f32(V, g_XMInfinity); + uint32x4_t isPositive = vbicq_u32(isGreaterZero, isNotFinite); + + uint32x4_t isZero = vandq_u32(vreinterpretq_u32_f32(V), g_XMAbsMask); + isZero = vceqq_u32(isZero, g_XMZero); + + uint32x4_t t0 = vandq_u32(vreinterpretq_u32_f32(V), g_XMQNaNTest); + uint32x4_t t1 = vandq_u32(vreinterpretq_u32_f32(V), g_XMInfinity); + t0 = vceqq_u32(t0, g_XMZero); + t1 = vceqq_u32(t1, g_XMInfinity); + uint32x4_t isNaN = vbicq_u32(t1, t0); + + float32x4_t result = vbslq_f32(isInfinite, g_XMInfinity, log2); + float32x4_t tmp2 = vbslq_f32(isZero, g_XMNegInfinity, g_XMNegQNaN); + result = vbslq_f32(isPositive, result, tmp2); + result = vbslq_f32(isNaN, g_XMQNaN, result); + return result; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_log2_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + __m128i rawBiased = _mm_and_si128(_mm_castps_si128(V), g_XMInfinity); + __m128i trailing = _mm_and_si128(_mm_castps_si128(V), g_XMQNaNTest); + __m128i isExponentZero = _mm_cmpeq_epi32(g_XMZero, rawBiased); + + // Compute exponent and significand for normals. + __m128i biased = _mm_srli_epi32(rawBiased, 23); + __m128i exponentNor = _mm_sub_epi32(biased, g_XMExponentBias); + __m128i trailingNor = trailing; + + // Compute exponent and significand for subnormals. + __m128i leading = Internal::GetLeadingBit(trailing); + __m128i shift = _mm_sub_epi32(g_XMNumTrailing, leading); + __m128i exponentSub = _mm_sub_epi32(g_XMSubnormalExponent, shift); + __m128i trailingSub = Internal::multi_sll_epi32(trailing, shift); + trailingSub = _mm_and_si128(trailingSub, g_XMQNaNTest); + + __m128i select0 = _mm_and_si128(isExponentZero, exponentSub); + __m128i select1 = _mm_andnot_si128(isExponentZero, exponentNor); + __m128i e = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isExponentZero, trailingSub); + select1 = _mm_andnot_si128(isExponentZero, trailingNor); + __m128i t = _mm_or_si128(select0, select1); + + // Compute the approximation. + __m128i tmp = _mm_or_si128(g_XMOne, t); + __m128 y = _mm_sub_ps(_mm_castsi128_ps(tmp), g_XMOne); + + __m128 log2 = XM_FMADD_PS(g_XMLogEst7, y, g_XMLogEst6); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst5); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst4); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst3); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst2); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst1); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst0); + log2 = XM_FMADD_PS(log2, y, _mm_cvtepi32_ps(e)); + + // if (x is NaN) -> QNaN + // else if (V is positive) + // if (V is infinite) -> +inf + // else -> log2(V) + // else + // if (V is zero) -> -inf + // else -> -QNaN + + __m128i isInfinite = _mm_and_si128(_mm_castps_si128(V), g_XMAbsMask); + isInfinite = _mm_cmpeq_epi32(isInfinite, g_XMInfinity); + + __m128i isGreaterZero = _mm_cmpgt_epi32(_mm_castps_si128(V), g_XMZero); + __m128i isNotFinite = _mm_cmpgt_epi32(_mm_castps_si128(V), g_XMInfinity); + __m128i isPositive = _mm_andnot_si128(isNotFinite, isGreaterZero); + + __m128i isZero = _mm_and_si128(_mm_castps_si128(V), g_XMAbsMask); + isZero = _mm_cmpeq_epi32(isZero, g_XMZero); + + __m128i t0 = _mm_and_si128(_mm_castps_si128(V), g_XMQNaNTest); + __m128i t1 = _mm_and_si128(_mm_castps_si128(V), g_XMInfinity); + t0 = _mm_cmpeq_epi32(t0, g_XMZero); + t1 = _mm_cmpeq_epi32(t1, g_XMInfinity); + __m128i isNaN = _mm_andnot_si128(t0, t1); + + select0 = _mm_and_si128(isInfinite, g_XMInfinity); + select1 = _mm_andnot_si128(isInfinite, _mm_castps_si128(log2)); + __m128i result = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isZero, g_XMNegInfinity); + select1 = _mm_andnot_si128(isZero, g_XMNegQNaN); + tmp = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isPositive, result); + select1 = _mm_andnot_si128(isPositive, tmp); + result = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isNaN, g_XMQNaN); + select1 = _mm_andnot_si128(isNaN, result); + result = _mm_or_si128(select0, select1); + + return _mm_castsi128_ps(result); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorLog10(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + log10f(V.vector4_f32[0]), + log10f(V.vector4_f32[1]), + log10f(V.vector4_f32[2]), + log10f(V.vector4_f32[3]) + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int32x4_t rawBiased = vandq_s32(vreinterpretq_s32_f32(V), g_XMInfinity); + int32x4_t trailing = vandq_s32(vreinterpretq_s32_f32(V), g_XMQNaNTest); + uint32x4_t isExponentZero = vceqq_s32(g_XMZero, rawBiased); + + // Compute exponent and significand for normals. + int32x4_t biased = vshrq_n_s32(rawBiased, 23); + int32x4_t exponentNor = vsubq_s32(biased, g_XMExponentBias); + int32x4_t trailingNor = trailing; + + // Compute exponent and significand for subnormals. + int32x4_t leading = Internal::GetLeadingBit(trailing); + int32x4_t shift = vsubq_s32(g_XMNumTrailing, leading); + int32x4_t exponentSub = vsubq_s32(g_XMSubnormalExponent, shift); + int32x4_t trailingSub = vshlq_s32(trailing, shift); + trailingSub = vandq_s32(trailingSub, g_XMQNaNTest); + int32x4_t e = vbslq_s32(isExponentZero, exponentSub, exponentNor); + int32x4_t t = vbslq_s32(isExponentZero, trailingSub, trailingNor); + + // Compute the approximation. + int32x4_t tmp = vorrq_s32(g_XMOne, t); + float32x4_t y = vsubq_f32(vreinterpretq_f32_s32(tmp), g_XMOne); + + float32x4_t log2 = vmlaq_f32(g_XMLogEst6, g_XMLogEst7, y); + log2 = vmlaq_f32(g_XMLogEst5, log2, y); + log2 = vmlaq_f32(g_XMLogEst4, log2, y); + log2 = vmlaq_f32(g_XMLogEst3, log2, y); + log2 = vmlaq_f32(g_XMLogEst2, log2, y); + log2 = vmlaq_f32(g_XMLogEst1, log2, y); + log2 = vmlaq_f32(g_XMLogEst0, log2, y); + log2 = vmlaq_f32(vcvtq_f32_s32(e), log2, y); + + log2 = vmulq_f32(g_XMInvLg10, log2); + + // if (x is NaN) -> QNaN + // else if (V is positive) + // if (V is infinite) -> +inf + // else -> log2(V) + // else + // if (V is zero) -> -inf + // else -> -QNaN + + uint32x4_t isInfinite = vandq_u32(vreinterpretq_u32_f32(V), g_XMAbsMask); + isInfinite = vceqq_u32(isInfinite, g_XMInfinity); + + uint32x4_t isGreaterZero = vcgtq_s32(vreinterpretq_s32_f32(V), g_XMZero); + uint32x4_t isNotFinite = vcgtq_s32(vreinterpretq_s32_f32(V), g_XMInfinity); + uint32x4_t isPositive = vbicq_u32(isGreaterZero, isNotFinite); + + uint32x4_t isZero = vandq_u32(vreinterpretq_u32_f32(V), g_XMAbsMask); + isZero = vceqq_u32(isZero, g_XMZero); + + uint32x4_t t0 = vandq_u32(vreinterpretq_u32_f32(V), g_XMQNaNTest); + uint32x4_t t1 = vandq_u32(vreinterpretq_u32_f32(V), g_XMInfinity); + t0 = vceqq_u32(t0, g_XMZero); + t1 = vceqq_u32(t1, g_XMInfinity); + uint32x4_t isNaN = vbicq_u32(t1, t0); + + float32x4_t result = vbslq_f32(isInfinite, g_XMInfinity, log2); + float32x4_t tmp2 = vbslq_f32(isZero, g_XMNegInfinity, g_XMNegQNaN); + result = vbslq_f32(isPositive, result, tmp2); + result = vbslq_f32(isNaN, g_XMQNaN, result); + return result; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_log10_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + __m128i rawBiased = _mm_and_si128(_mm_castps_si128(V), g_XMInfinity); + __m128i trailing = _mm_and_si128(_mm_castps_si128(V), g_XMQNaNTest); + __m128i isExponentZero = _mm_cmpeq_epi32(g_XMZero, rawBiased); + + // Compute exponent and significand for normals. + __m128i biased = _mm_srli_epi32(rawBiased, 23); + __m128i exponentNor = _mm_sub_epi32(biased, g_XMExponentBias); + __m128i trailingNor = trailing; + + // Compute exponent and significand for subnormals. + __m128i leading = Internal::GetLeadingBit(trailing); + __m128i shift = _mm_sub_epi32(g_XMNumTrailing, leading); + __m128i exponentSub = _mm_sub_epi32(g_XMSubnormalExponent, shift); + __m128i trailingSub = Internal::multi_sll_epi32(trailing, shift); + trailingSub = _mm_and_si128(trailingSub, g_XMQNaNTest); + + __m128i select0 = _mm_and_si128(isExponentZero, exponentSub); + __m128i select1 = _mm_andnot_si128(isExponentZero, exponentNor); + __m128i e = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isExponentZero, trailingSub); + select1 = _mm_andnot_si128(isExponentZero, trailingNor); + __m128i t = _mm_or_si128(select0, select1); + + // Compute the approximation. + __m128i tmp = _mm_or_si128(g_XMOne, t); + __m128 y = _mm_sub_ps(_mm_castsi128_ps(tmp), g_XMOne); + + __m128 log2 = XM_FMADD_PS(g_XMLogEst7, y, g_XMLogEst6); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst5); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst4); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst3); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst2); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst1); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst0); + log2 = XM_FMADD_PS(log2, y, _mm_cvtepi32_ps(e)); + + log2 = _mm_mul_ps(g_XMInvLg10, log2); + + // if (x is NaN) -> QNaN + // else if (V is positive) + // if (V is infinite) -> +inf + // else -> log2(V) + // else + // if (V is zero) -> -inf + // else -> -QNaN + + __m128i isInfinite = _mm_and_si128(_mm_castps_si128(V), g_XMAbsMask); + isInfinite = _mm_cmpeq_epi32(isInfinite, g_XMInfinity); + + __m128i isGreaterZero = _mm_cmpgt_epi32(_mm_castps_si128(V), g_XMZero); + __m128i isNotFinite = _mm_cmpgt_epi32(_mm_castps_si128(V), g_XMInfinity); + __m128i isPositive = _mm_andnot_si128(isNotFinite, isGreaterZero); + + __m128i isZero = _mm_and_si128(_mm_castps_si128(V), g_XMAbsMask); + isZero = _mm_cmpeq_epi32(isZero, g_XMZero); + + __m128i t0 = _mm_and_si128(_mm_castps_si128(V), g_XMQNaNTest); + __m128i t1 = _mm_and_si128(_mm_castps_si128(V), g_XMInfinity); + t0 = _mm_cmpeq_epi32(t0, g_XMZero); + t1 = _mm_cmpeq_epi32(t1, g_XMInfinity); + __m128i isNaN = _mm_andnot_si128(t0, t1); + + select0 = _mm_and_si128(isInfinite, g_XMInfinity); + select1 = _mm_andnot_si128(isInfinite, _mm_castps_si128(log2)); + __m128i result = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isZero, g_XMNegInfinity); + select1 = _mm_andnot_si128(isZero, g_XMNegQNaN); + tmp = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isPositive, result); + select1 = _mm_andnot_si128(isPositive, tmp); + result = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isNaN, g_XMQNaN); + select1 = _mm_andnot_si128(isNaN, result); + result = _mm_or_si128(select0, select1); + + return _mm_castsi128_ps(result); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorLogE(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + logf(V.vector4_f32[0]), + logf(V.vector4_f32[1]), + logf(V.vector4_f32[2]), + logf(V.vector4_f32[3]) + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int32x4_t rawBiased = vandq_s32(vreinterpretq_s32_f32(V), g_XMInfinity); + int32x4_t trailing = vandq_s32(vreinterpretq_s32_f32(V), g_XMQNaNTest); + uint32x4_t isExponentZero = vceqq_s32(g_XMZero, rawBiased); + + // Compute exponent and significand for normals. + int32x4_t biased = vshrq_n_s32(rawBiased, 23); + int32x4_t exponentNor = vsubq_s32(biased, g_XMExponentBias); + int32x4_t trailingNor = trailing; + + // Compute exponent and significand for subnormals. + int32x4_t leading = Internal::GetLeadingBit(trailing); + int32x4_t shift = vsubq_s32(g_XMNumTrailing, leading); + int32x4_t exponentSub = vsubq_s32(g_XMSubnormalExponent, shift); + int32x4_t trailingSub = vshlq_s32(trailing, shift); + trailingSub = vandq_s32(trailingSub, g_XMQNaNTest); + int32x4_t e = vbslq_s32(isExponentZero, exponentSub, exponentNor); + int32x4_t t = vbslq_s32(isExponentZero, trailingSub, trailingNor); + + // Compute the approximation. + int32x4_t tmp = vorrq_s32(g_XMOne, t); + float32x4_t y = vsubq_f32(vreinterpretq_f32_s32(tmp), g_XMOne); + + float32x4_t log2 = vmlaq_f32(g_XMLogEst6, g_XMLogEst7, y); + log2 = vmlaq_f32(g_XMLogEst5, log2, y); + log2 = vmlaq_f32(g_XMLogEst4, log2, y); + log2 = vmlaq_f32(g_XMLogEst3, log2, y); + log2 = vmlaq_f32(g_XMLogEst2, log2, y); + log2 = vmlaq_f32(g_XMLogEst1, log2, y); + log2 = vmlaq_f32(g_XMLogEst0, log2, y); + log2 = vmlaq_f32(vcvtq_f32_s32(e), log2, y); + + log2 = vmulq_f32(g_XMInvLgE, log2); + + // if (x is NaN) -> QNaN + // else if (V is positive) + // if (V is infinite) -> +inf + // else -> log2(V) + // else + // if (V is zero) -> -inf + // else -> -QNaN + + uint32x4_t isInfinite = vandq_u32(vreinterpretq_u32_f32(V), g_XMAbsMask); + isInfinite = vceqq_u32(isInfinite, g_XMInfinity); + + uint32x4_t isGreaterZero = vcgtq_s32(vreinterpretq_s32_f32(V), g_XMZero); + uint32x4_t isNotFinite = vcgtq_s32(vreinterpretq_s32_f32(V), g_XMInfinity); + uint32x4_t isPositive = vbicq_u32(isGreaterZero, isNotFinite); + + uint32x4_t isZero = vandq_u32(vreinterpretq_u32_f32(V), g_XMAbsMask); + isZero = vceqq_u32(isZero, g_XMZero); + + uint32x4_t t0 = vandq_u32(vreinterpretq_u32_f32(V), g_XMQNaNTest); + uint32x4_t t1 = vandq_u32(vreinterpretq_u32_f32(V), g_XMInfinity); + t0 = vceqq_u32(t0, g_XMZero); + t1 = vceqq_u32(t1, g_XMInfinity); + uint32x4_t isNaN = vbicq_u32(t1, t0); + + float32x4_t result = vbslq_f32(isInfinite, g_XMInfinity, log2); + float32x4_t tmp2 = vbslq_f32(isZero, g_XMNegInfinity, g_XMNegQNaN); + result = vbslq_f32(isPositive, result, tmp2); + result = vbslq_f32(isNaN, g_XMQNaN, result); + return result; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_log_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + __m128i rawBiased = _mm_and_si128(_mm_castps_si128(V), g_XMInfinity); + __m128i trailing = _mm_and_si128(_mm_castps_si128(V), g_XMQNaNTest); + __m128i isExponentZero = _mm_cmpeq_epi32(g_XMZero, rawBiased); + + // Compute exponent and significand for normals. + __m128i biased = _mm_srli_epi32(rawBiased, 23); + __m128i exponentNor = _mm_sub_epi32(biased, g_XMExponentBias); + __m128i trailingNor = trailing; + + // Compute exponent and significand for subnormals. + __m128i leading = Internal::GetLeadingBit(trailing); + __m128i shift = _mm_sub_epi32(g_XMNumTrailing, leading); + __m128i exponentSub = _mm_sub_epi32(g_XMSubnormalExponent, shift); + __m128i trailingSub = Internal::multi_sll_epi32(trailing, shift); + trailingSub = _mm_and_si128(trailingSub, g_XMQNaNTest); + + __m128i select0 = _mm_and_si128(isExponentZero, exponentSub); + __m128i select1 = _mm_andnot_si128(isExponentZero, exponentNor); + __m128i e = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isExponentZero, trailingSub); + select1 = _mm_andnot_si128(isExponentZero, trailingNor); + __m128i t = _mm_or_si128(select0, select1); + + // Compute the approximation. + __m128i tmp = _mm_or_si128(g_XMOne, t); + __m128 y = _mm_sub_ps(_mm_castsi128_ps(tmp), g_XMOne); + + __m128 log2 = XM_FMADD_PS(g_XMLogEst7, y, g_XMLogEst6); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst5); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst4); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst3); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst2); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst1); + log2 = XM_FMADD_PS(log2, y, g_XMLogEst0); + log2 = XM_FMADD_PS(log2, y, _mm_cvtepi32_ps(e)); + + log2 = _mm_mul_ps(g_XMInvLgE, log2); + + // if (x is NaN) -> QNaN + // else if (V is positive) + // if (V is infinite) -> +inf + // else -> log2(V) + // else + // if (V is zero) -> -inf + // else -> -QNaN + + __m128i isInfinite = _mm_and_si128(_mm_castps_si128(V), g_XMAbsMask); + isInfinite = _mm_cmpeq_epi32(isInfinite, g_XMInfinity); + + __m128i isGreaterZero = _mm_cmpgt_epi32(_mm_castps_si128(V), g_XMZero); + __m128i isNotFinite = _mm_cmpgt_epi32(_mm_castps_si128(V), g_XMInfinity); + __m128i isPositive = _mm_andnot_si128(isNotFinite, isGreaterZero); + + __m128i isZero = _mm_and_si128(_mm_castps_si128(V), g_XMAbsMask); + isZero = _mm_cmpeq_epi32(isZero, g_XMZero); + + __m128i t0 = _mm_and_si128(_mm_castps_si128(V), g_XMQNaNTest); + __m128i t1 = _mm_and_si128(_mm_castps_si128(V), g_XMInfinity); + t0 = _mm_cmpeq_epi32(t0, g_XMZero); + t1 = _mm_cmpeq_epi32(t1, g_XMInfinity); + __m128i isNaN = _mm_andnot_si128(t0, t1); + + select0 = _mm_and_si128(isInfinite, g_XMInfinity); + select1 = _mm_andnot_si128(isInfinite, _mm_castps_si128(log2)); + __m128i result = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isZero, g_XMNegInfinity); + select1 = _mm_andnot_si128(isZero, g_XMNegQNaN); + tmp = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isPositive, result); + select1 = _mm_andnot_si128(isPositive, tmp); + result = _mm_or_si128(select0, select1); + + select0 = _mm_and_si128(isNaN, g_XMQNaN); + select1 = _mm_andnot_si128(isNaN, result); + result = _mm_or_si128(select0, select1); + + return _mm_castsi128_ps(result); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorLog(FXMVECTOR V) noexcept +{ + return XMVectorLog2(V); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorPow +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + powf(V1.vector4_f32[0], V2.vector4_f32[0]), + powf(V1.vector4_f32[1], V2.vector4_f32[1]), + powf(V1.vector4_f32[2], V2.vector4_f32[2]), + powf(V1.vector4_f32[3], V2.vector4_f32[3]) + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTORF32 vResult = { { { + powf(vgetq_lane_f32(V1, 0), vgetq_lane_f32(V2, 0)), + powf(vgetq_lane_f32(V1, 1), vgetq_lane_f32(V2, 1)), + powf(vgetq_lane_f32(V1, 2), vgetq_lane_f32(V2, 2)), + powf(vgetq_lane_f32(V1, 3), vgetq_lane_f32(V2, 3)) + } } }; + return vResult.v; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_pow_ps(V1, V2); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + XM_ALIGNED_DATA(16) float a[4]; + XM_ALIGNED_DATA(16) float b[4]; + _mm_store_ps(a, V1); + _mm_store_ps(b, V2); + XMVECTOR vResult = _mm_setr_ps( + powf(a[0], b[0]), + powf(a[1], b[1]), + powf(a[2], b[2]), + powf(a[3], b[3])); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorAbs(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + fabsf(V.vector4_f32[0]), + fabsf(V.vector4_f32[1]), + fabsf(V.vector4_f32[2]), + fabsf(V.vector4_f32[3]) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + return vabsq_f32(V); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = _mm_setzero_ps(); + vResult = _mm_sub_ps(vResult, V); + vResult = _mm_max_ps(vResult, V); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorMod +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + // V1 % V2 = V1 - V2 * truncate(V1 / V2) + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Quotient = XMVectorDivide(V1, V2); + Quotient = XMVectorTruncate(Quotient); + XMVECTOR Result = XMVectorNegativeMultiplySubtract(V2, Quotient, V1); + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTOR vResult = XMVectorDivide(V1, V2); + vResult = XMVectorTruncate(vResult); + return vmlsq_f32(V1, vResult, V2); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = _mm_div_ps(V1, V2); + vResult = XMVectorTruncate(vResult); + return XM_FNMADD_PS(vResult, V2, V1); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorModAngles(FXMVECTOR Angles) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR V; + XMVECTOR Result; + + // Modulo the range of the given angles such that -XM_PI <= Angles < XM_PI + V = XMVectorMultiply(Angles, g_XMReciprocalTwoPi.v); + V = XMVectorRound(V); + Result = XMVectorNegativeMultiplySubtract(g_XMTwoPi.v, V, Angles); + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Modulo the range of the given angles such that -XM_PI <= Angles < XM_PI + XMVECTOR vResult = vmulq_f32(Angles, g_XMReciprocalTwoPi); + // Use the inline function due to complexity for rounding + vResult = XMVectorRound(vResult); + return vmlsq_f32(Angles, vResult, g_XMTwoPi); +#elif defined(_XM_SSE_INTRINSICS_) + // Modulo the range of the given angles such that -XM_PI <= Angles < XM_PI + XMVECTOR vResult = _mm_mul_ps(Angles, g_XMReciprocalTwoPi); + // Use the inline function due to complexity for rounding + vResult = XMVectorRound(vResult); + return XM_FNMADD_PS(vResult, g_XMTwoPi, Angles); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorSin(FXMVECTOR V) noexcept +{ + // 11-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + sinf(V.vector4_f32[0]), + sinf(V.vector4_f32[1]), + sinf(V.vector4_f32[2]), + sinf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Force the value within the bounds of pi + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with sin(y) = sin(x). + uint32x4_t sign = vandq_u32(vreinterpretq_u32_f32(x), g_XMNegativeZero); + uint32x4_t c = vorrq_u32(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + float32x4_t absx = vabsq_f32(x); + float32x4_t rflx = vsubq_f32(vreinterpretq_f32_u32(c), x); + uint32x4_t comp = vcleq_f32(absx, g_XMHalfPi); + x = vbslq_f32(comp, x, rflx); + + float32x4_t x2 = vmulq_f32(x, x); + + // Compute polynomial approximation + const XMVECTOR SC1 = g_XMSinCoefficients1; + const XMVECTOR SC0 = g_XMSinCoefficients0; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(SC0), 1); + XMVECTOR Result = vmlaq_lane_f32(vConstants, x2, vget_low_f32(SC1), 0); + + vConstants = vdupq_lane_f32(vget_high_f32(SC0), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(SC0), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(SC0), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + Result = vmlaq_f32(g_XMOne, Result, x2); + Result = vmulq_f32(Result, x); + return Result; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_sin_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + // Force the value within the bounds of pi + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with sin(y) = sin(x). + __m128 sign = _mm_and_ps(x, g_XMNegativeZero); + __m128 c = _mm_or_ps(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + __m128 absx = _mm_andnot_ps(sign, x); // |x| + __m128 rflx = _mm_sub_ps(c, x); + __m128 comp = _mm_cmple_ps(absx, g_XMHalfPi); + __m128 select0 = _mm_and_ps(comp, x); + __m128 select1 = _mm_andnot_ps(comp, rflx); + x = _mm_or_ps(select0, select1); + + __m128 x2 = _mm_mul_ps(x, x); + + // Compute polynomial approximation + const XMVECTOR SC1 = g_XMSinCoefficients1; + __m128 vConstantsB = XM_PERMUTE_PS(SC1, _MM_SHUFFLE(0, 0, 0, 0)); + const XMVECTOR SC0 = g_XMSinCoefficients0; + __m128 vConstants = XM_PERMUTE_PS(SC0, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 Result = XM_FMADD_PS(vConstantsB, x2, vConstants); + + vConstants = XM_PERMUTE_PS(SC0, _MM_SHUFFLE(2, 2, 2, 2)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(SC0, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(SC0, _MM_SHUFFLE(0, 0, 0, 0)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + Result = XM_FMADD_PS(Result, x2, g_XMOne); + Result = _mm_mul_ps(Result, x); + return Result; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorCos(FXMVECTOR V) noexcept +{ + // 10-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + cosf(V.vector4_f32[0]), + cosf(V.vector4_f32[1]), + cosf(V.vector4_f32[2]), + cosf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Map V to x in [-pi,pi]. + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with cos(y) = sign*cos(x). + uint32x4_t sign = vandq_u32(vreinterpretq_u32_f32(x), g_XMNegativeZero); + uint32x4_t c = vorrq_u32(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + float32x4_t absx = vabsq_f32(x); + float32x4_t rflx = vsubq_f32(vreinterpretq_f32_u32(c), x); + uint32x4_t comp = vcleq_f32(absx, g_XMHalfPi); + x = vbslq_f32(comp, x, rflx); + float32x4_t fsign = vbslq_f32(comp, g_XMOne, g_XMNegativeOne); + + float32x4_t x2 = vmulq_f32(x, x); + + // Compute polynomial approximation + const XMVECTOR CC1 = g_XMCosCoefficients1; + const XMVECTOR CC0 = g_XMCosCoefficients0; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(CC0), 1); + XMVECTOR Result = vmlaq_lane_f32(vConstants, x2, vget_low_f32(CC1), 0); + + vConstants = vdupq_lane_f32(vget_high_f32(CC0), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(CC0), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(CC0), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + Result = vmlaq_f32(g_XMOne, Result, x2); + Result = vmulq_f32(Result, fsign); + return Result; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_cos_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + // Map V to x in [-pi,pi]. + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with cos(y) = sign*cos(x). + XMVECTOR sign = _mm_and_ps(x, g_XMNegativeZero); + __m128 c = _mm_or_ps(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + __m128 absx = _mm_andnot_ps(sign, x); // |x| + __m128 rflx = _mm_sub_ps(c, x); + __m128 comp = _mm_cmple_ps(absx, g_XMHalfPi); + __m128 select0 = _mm_and_ps(comp, x); + __m128 select1 = _mm_andnot_ps(comp, rflx); + x = _mm_or_ps(select0, select1); + select0 = _mm_and_ps(comp, g_XMOne); + select1 = _mm_andnot_ps(comp, g_XMNegativeOne); + sign = _mm_or_ps(select0, select1); + + __m128 x2 = _mm_mul_ps(x, x); + + // Compute polynomial approximation + const XMVECTOR CC1 = g_XMCosCoefficients1; + __m128 vConstantsB = XM_PERMUTE_PS(CC1, _MM_SHUFFLE(0, 0, 0, 0)); + const XMVECTOR CC0 = g_XMCosCoefficients0; + __m128 vConstants = XM_PERMUTE_PS(CC0, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 Result = XM_FMADD_PS(vConstantsB, x2, vConstants); + + vConstants = XM_PERMUTE_PS(CC0, _MM_SHUFFLE(2, 2, 2, 2)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(CC0, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(CC0, _MM_SHUFFLE(0, 0, 0, 0)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + Result = XM_FMADD_PS(Result, x2, g_XMOne); + Result = _mm_mul_ps(Result, sign); + return Result; +#endif +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorSinCos +( + XMVECTOR* pSin, + XMVECTOR* pCos, + FXMVECTOR V +) noexcept +{ + assert(pSin != nullptr); + assert(pCos != nullptr); + + // 11/10-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Sin = { { { + sinf(V.vector4_f32[0]), + sinf(V.vector4_f32[1]), + sinf(V.vector4_f32[2]), + sinf(V.vector4_f32[3]) + } } }; + + XMVECTORF32 Cos = { { { + cosf(V.vector4_f32[0]), + cosf(V.vector4_f32[1]), + cosf(V.vector4_f32[2]), + cosf(V.vector4_f32[3]) + } } }; + + *pSin = Sin.v; + *pCos = Cos.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Force the value within the bounds of pi + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with cos(y) = sign*cos(x). + uint32x4_t sign = vandq_u32(vreinterpretq_u32_f32(x), g_XMNegativeZero); + uint32x4_t c = vorrq_u32(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + float32x4_t absx = vabsq_f32(x); + float32x4_t rflx = vsubq_f32(vreinterpretq_f32_u32(c), x); + uint32x4_t comp = vcleq_f32(absx, g_XMHalfPi); + x = vbslq_f32(comp, x, rflx); + float32x4_t fsign = vbslq_f32(comp, g_XMOne, g_XMNegativeOne); + + float32x4_t x2 = vmulq_f32(x, x); + + // Compute polynomial approximation for sine + const XMVECTOR SC1 = g_XMSinCoefficients1; + const XMVECTOR SC0 = g_XMSinCoefficients0; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(SC0), 1); + XMVECTOR Result = vmlaq_lane_f32(vConstants, x2, vget_low_f32(SC1), 0); + + vConstants = vdupq_lane_f32(vget_high_f32(SC0), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(SC0), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(SC0), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + Result = vmlaq_f32(g_XMOne, Result, x2); + *pSin = vmulq_f32(Result, x); + + // Compute polynomial approximation for cosine + const XMVECTOR CC1 = g_XMCosCoefficients1; + const XMVECTOR CC0 = g_XMCosCoefficients0; + vConstants = vdupq_lane_f32(vget_high_f32(CC0), 1); + Result = vmlaq_lane_f32(vConstants, x2, vget_low_f32(CC1), 0); + + vConstants = vdupq_lane_f32(vget_high_f32(CC0), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(CC0), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(CC0), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + Result = vmlaq_f32(g_XMOne, Result, x2); + *pCos = vmulq_f32(Result, fsign); +#elif defined(_XM_SVML_INTRINSICS_) + *pSin = _mm_sincos_ps(pCos, V); +#elif defined(_XM_SSE_INTRINSICS_) + // Force the value within the bounds of pi + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with sin(y) = sin(x), cos(y) = sign*cos(x). + XMVECTOR sign = _mm_and_ps(x, g_XMNegativeZero); + __m128 c = _mm_or_ps(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + __m128 absx = _mm_andnot_ps(sign, x); // |x| + __m128 rflx = _mm_sub_ps(c, x); + __m128 comp = _mm_cmple_ps(absx, g_XMHalfPi); + __m128 select0 = _mm_and_ps(comp, x); + __m128 select1 = _mm_andnot_ps(comp, rflx); + x = _mm_or_ps(select0, select1); + select0 = _mm_and_ps(comp, g_XMOne); + select1 = _mm_andnot_ps(comp, g_XMNegativeOne); + sign = _mm_or_ps(select0, select1); + + __m128 x2 = _mm_mul_ps(x, x); + + // Compute polynomial approximation of sine + const XMVECTOR SC1 = g_XMSinCoefficients1; + __m128 vConstantsB = XM_PERMUTE_PS(SC1, _MM_SHUFFLE(0, 0, 0, 0)); + const XMVECTOR SC0 = g_XMSinCoefficients0; + __m128 vConstants = XM_PERMUTE_PS(SC0, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 Result = XM_FMADD_PS(vConstantsB, x2, vConstants); + + vConstants = XM_PERMUTE_PS(SC0, _MM_SHUFFLE(2, 2, 2, 2)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(SC0, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(SC0, _MM_SHUFFLE(0, 0, 0, 0)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + Result = XM_FMADD_PS(Result, x2, g_XMOne); + Result = _mm_mul_ps(Result, x); + *pSin = Result; + + // Compute polynomial approximation of cosine + const XMVECTOR CC1 = g_XMCosCoefficients1; + vConstantsB = XM_PERMUTE_PS(CC1, _MM_SHUFFLE(0, 0, 0, 0)); + const XMVECTOR CC0 = g_XMCosCoefficients0; + vConstants = XM_PERMUTE_PS(CC0, _MM_SHUFFLE(3, 3, 3, 3)); + Result = XM_FMADD_PS(vConstantsB, x2, vConstants); + + vConstants = XM_PERMUTE_PS(CC0, _MM_SHUFFLE(2, 2, 2, 2)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(CC0, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(CC0, _MM_SHUFFLE(0, 0, 0, 0)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + Result = XM_FMADD_PS(Result, x2, g_XMOne); + Result = _mm_mul_ps(Result, sign); + *pCos = Result; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorTan(FXMVECTOR V) noexcept +{ + // Cody and Waite algorithm to compute tangent. + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + tanf(V.vector4_f32[0]), + tanf(V.vector4_f32[1]), + tanf(V.vector4_f32[2]), + tanf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_tan_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) || defined(_XM_ARM_NEON_INTRINSICS_) + + static const XMVECTORF32 TanCoefficients0 = { { { 1.0f, -4.667168334e-1f, 2.566383229e-2f, -3.118153191e-4f } } }; + static const XMVECTORF32 TanCoefficients1 = { { { 4.981943399e-7f, -1.333835001e-1f, 3.424887824e-3f, -1.786170734e-5f } } }; + static const XMVECTORF32 TanConstants = { { { 1.570796371f, 6.077100628e-11f, 0.000244140625f, 0.63661977228f /*2 / Pi*/ } } }; + static const XMVECTORU32 Mask = { { { 0x1, 0x1, 0x1, 0x1 } } }; + + XMVECTOR TwoDivPi = XMVectorSplatW(TanConstants.v); + + XMVECTOR Zero = XMVectorZero(); + + XMVECTOR C0 = XMVectorSplatX(TanConstants.v); + XMVECTOR C1 = XMVectorSplatY(TanConstants.v); + XMVECTOR Epsilon = XMVectorSplatZ(TanConstants.v); + + XMVECTOR VA = XMVectorMultiply(V, TwoDivPi); + + VA = XMVectorRound(VA); + + XMVECTOR VC = XMVectorNegativeMultiplySubtract(VA, C0, V); + + XMVECTOR VB = XMVectorAbs(VA); + + VC = XMVectorNegativeMultiplySubtract(VA, C1, VC); + +#if defined(_XM_ARM_NEON_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + VB = vreinterpretq_f32_u32(vcvtq_u32_f32(VB)); +#elif defined(_XM_SSE_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + reinterpret_cast<__m128i*>(&VB)[0] = _mm_cvttps_epi32(VB); +#else + for (size_t i = 0; i < 4; i++) + { + VB.vector4_u32[i] = static_cast(VB.vector4_f32[i]); + } +#endif + + XMVECTOR VC2 = XMVectorMultiply(VC, VC); + + XMVECTOR T7 = XMVectorSplatW(TanCoefficients1.v); + XMVECTOR T6 = XMVectorSplatZ(TanCoefficients1.v); + XMVECTOR T4 = XMVectorSplatX(TanCoefficients1.v); + XMVECTOR T3 = XMVectorSplatW(TanCoefficients0.v); + XMVECTOR T5 = XMVectorSplatY(TanCoefficients1.v); + XMVECTOR T2 = XMVectorSplatZ(TanCoefficients0.v); + XMVECTOR T1 = XMVectorSplatY(TanCoefficients0.v); + XMVECTOR T0 = XMVectorSplatX(TanCoefficients0.v); + + XMVECTOR VBIsEven = XMVectorAndInt(VB, Mask.v); + VBIsEven = XMVectorEqualInt(VBIsEven, Zero); + + XMVECTOR N = XMVectorMultiplyAdd(VC2, T7, T6); + XMVECTOR D = XMVectorMultiplyAdd(VC2, T4, T3); + N = XMVectorMultiplyAdd(VC2, N, T5); + D = XMVectorMultiplyAdd(VC2, D, T2); + N = XMVectorMultiply(VC2, N); + D = XMVectorMultiplyAdd(VC2, D, T1); + N = XMVectorMultiplyAdd(VC, N, VC); + XMVECTOR VCNearZero = XMVectorInBounds(VC, Epsilon); + D = XMVectorMultiplyAdd(VC2, D, T0); + + N = XMVectorSelect(N, VC, VCNearZero); + D = XMVectorSelect(D, g_XMOne.v, VCNearZero); + + XMVECTOR R0 = XMVectorNegate(N); + XMVECTOR R1 = XMVectorDivide(N, D); + R0 = XMVectorDivide(D, R0); + + XMVECTOR VIsZero = XMVectorEqual(V, Zero); + + XMVECTOR Result = XMVectorSelect(R0, R1, VBIsEven); + + Result = XMVectorSelect(Result, Zero, VIsZero); + + return Result; + +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorSinH(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + sinhf(V.vector4_f32[0]), + sinhf(V.vector4_f32[1]), + sinhf(V.vector4_f32[2]), + sinhf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.442695040888963f, 1.442695040888963f, 1.442695040888963f, 1.442695040888963f } } }; // 1.0f / ln(2.0f) + + XMVECTOR V1 = vmlaq_f32(g_XMNegativeOne.v, V, Scale.v); + XMVECTOR V2 = vmlsq_f32(g_XMNegativeOne.v, V, Scale.v); + XMVECTOR E1 = XMVectorExp(V1); + XMVECTOR E2 = XMVectorExp(V2); + + return vsubq_f32(E1, E2); +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_sinh_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.442695040888963f, 1.442695040888963f, 1.442695040888963f, 1.442695040888963f } } }; // 1.0f / ln(2.0f) + + XMVECTOR V1 = XM_FMADD_PS(V, Scale, g_XMNegativeOne); + XMVECTOR V2 = XM_FNMADD_PS(V, Scale, g_XMNegativeOne); + XMVECTOR E1 = XMVectorExp(V1); + XMVECTOR E2 = XMVectorExp(V2); + + return _mm_sub_ps(E1, E2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorCosH(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + coshf(V.vector4_f32[0]), + coshf(V.vector4_f32[1]), + coshf(V.vector4_f32[2]), + coshf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.442695040888963f, 1.442695040888963f, 1.442695040888963f, 1.442695040888963f } } }; // 1.0f / ln(2.0f) + + XMVECTOR V1 = vmlaq_f32(g_XMNegativeOne.v, V, Scale.v); + XMVECTOR V2 = vmlsq_f32(g_XMNegativeOne.v, V, Scale.v); + XMVECTOR E1 = XMVectorExp(V1); + XMVECTOR E2 = XMVectorExp(V2); + return vaddq_f32(E1, E2); +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_cosh_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.442695040888963f, 1.442695040888963f, 1.442695040888963f, 1.442695040888963f } } }; // 1.0f / ln(2.0f) + + XMVECTOR V1 = XM_FMADD_PS(V, Scale.v, g_XMNegativeOne.v); + XMVECTOR V2 = XM_FNMADD_PS(V, Scale.v, g_XMNegativeOne.v); + XMVECTOR E1 = XMVectorExp(V1); + XMVECTOR E2 = XMVectorExp(V2); + return _mm_add_ps(E1, E2); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorTanH(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + tanhf(V.vector4_f32[0]), + tanhf(V.vector4_f32[1]), + tanhf(V.vector4_f32[2]), + tanhf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 2.8853900817779268f, 2.8853900817779268f, 2.8853900817779268f, 2.8853900817779268f } } }; // 2.0f / ln(2.0f) + + XMVECTOR E = vmulq_f32(V, Scale.v); + E = XMVectorExp(E); + E = vmlaq_f32(g_XMOneHalf.v, E, g_XMOneHalf.v); + E = XMVectorReciprocal(E); + return vsubq_f32(g_XMOne.v, E); +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_tanh_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 2.8853900817779268f, 2.8853900817779268f, 2.8853900817779268f, 2.8853900817779268f } } }; // 2.0f / ln(2.0f) + + XMVECTOR E = _mm_mul_ps(V, Scale.v); + E = XMVectorExp(E); + E = XM_FMADD_PS(E, g_XMOneHalf.v, g_XMOneHalf.v); + E = _mm_div_ps(g_XMOne.v, E); + return _mm_sub_ps(g_XMOne.v, E); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorASin(FXMVECTOR V) noexcept +{ + // 7-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + asinf(V.vector4_f32[0]), + asinf(V.vector4_f32[1]), + asinf(V.vector4_f32[2]), + asinf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t nonnegative = vcgeq_f32(V, g_XMZero); + float32x4_t x = vabsq_f32(V); + + // Compute (1-|V|), clamp to zero to avoid sqrt of negative number. + float32x4_t oneMValue = vsubq_f32(g_XMOne, x); + float32x4_t clampOneMValue = vmaxq_f32(g_XMZero, oneMValue); + float32x4_t root = XMVectorSqrt(clampOneMValue); + + // Compute polynomial approximation + const XMVECTOR AC1 = g_XMArcCoefficients1; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(AC1), 0); + XMVECTOR t0 = vmlaq_lane_f32(vConstants, x, vget_high_f32(AC1), 1); + + vConstants = vdupq_lane_f32(vget_low_f32(AC1), 1); + t0 = vmlaq_f32(vConstants, t0, x); + + vConstants = vdupq_lane_f32(vget_low_f32(AC1), 0); + t0 = vmlaq_f32(vConstants, t0, x); + + const XMVECTOR AC0 = g_XMArcCoefficients0; + vConstants = vdupq_lane_f32(vget_high_f32(AC0), 1); + t0 = vmlaq_f32(vConstants, t0, x); + + vConstants = vdupq_lane_f32(vget_high_f32(AC0), 0); + t0 = vmlaq_f32(vConstants, t0, x); + + vConstants = vdupq_lane_f32(vget_low_f32(AC0), 1); + t0 = vmlaq_f32(vConstants, t0, x); + + vConstants = vdupq_lane_f32(vget_low_f32(AC0), 0); + t0 = vmlaq_f32(vConstants, t0, x); + t0 = vmulq_f32(t0, root); + + float32x4_t t1 = vsubq_f32(g_XMPi, t0); + t0 = vbslq_f32(nonnegative, t0, t1); + t0 = vsubq_f32(g_XMHalfPi, t0); + return t0; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_asin_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + __m128 nonnegative = _mm_cmpge_ps(V, g_XMZero); + __m128 mvalue = _mm_sub_ps(g_XMZero, V); + __m128 x = _mm_max_ps(V, mvalue); // |V| + + // Compute (1-|V|), clamp to zero to avoid sqrt of negative number. + __m128 oneMValue = _mm_sub_ps(g_XMOne, x); + __m128 clampOneMValue = _mm_max_ps(g_XMZero, oneMValue); + __m128 root = _mm_sqrt_ps(clampOneMValue); // sqrt(1-|V|) + + // Compute polynomial approximation + const XMVECTOR AC1 = g_XMArcCoefficients1; + __m128 vConstantsB = XM_PERMUTE_PS(AC1, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 vConstants = XM_PERMUTE_PS(AC1, _MM_SHUFFLE(2, 2, 2, 2)); + __m128 t0 = XM_FMADD_PS(vConstantsB, x, vConstants); + + vConstants = XM_PERMUTE_PS(AC1, _MM_SHUFFLE(1, 1, 1, 1)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + vConstants = XM_PERMUTE_PS(AC1, _MM_SHUFFLE(0, 0, 0, 0)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + const XMVECTOR AC0 = g_XMArcCoefficients0; + vConstants = XM_PERMUTE_PS(AC0, _MM_SHUFFLE(3, 3, 3, 3)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + vConstants = XM_PERMUTE_PS(AC0, _MM_SHUFFLE(2, 2, 2, 2)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + vConstants = XM_PERMUTE_PS(AC0, _MM_SHUFFLE(1, 1, 1, 1)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + vConstants = XM_PERMUTE_PS(AC0, _MM_SHUFFLE(0, 0, 0, 0)); + t0 = XM_FMADD_PS(t0, x, vConstants); + t0 = _mm_mul_ps(t0, root); + + __m128 t1 = _mm_sub_ps(g_XMPi, t0); + t0 = _mm_and_ps(nonnegative, t0); + t1 = _mm_andnot_ps(nonnegative, t1); + t0 = _mm_or_ps(t0, t1); + t0 = _mm_sub_ps(g_XMHalfPi, t0); + return t0; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorACos(FXMVECTOR V) noexcept +{ + // 7-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + acosf(V.vector4_f32[0]), + acosf(V.vector4_f32[1]), + acosf(V.vector4_f32[2]), + acosf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t nonnegative = vcgeq_f32(V, g_XMZero); + float32x4_t x = vabsq_f32(V); + + // Compute (1-|V|), clamp to zero to avoid sqrt of negative number. + float32x4_t oneMValue = vsubq_f32(g_XMOne, x); + float32x4_t clampOneMValue = vmaxq_f32(g_XMZero, oneMValue); + float32x4_t root = XMVectorSqrt(clampOneMValue); + + // Compute polynomial approximation + const XMVECTOR AC1 = g_XMArcCoefficients1; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(AC1), 0); + XMVECTOR t0 = vmlaq_lane_f32(vConstants, x, vget_high_f32(AC1), 1); + + vConstants = vdupq_lane_f32(vget_low_f32(AC1), 1); + t0 = vmlaq_f32(vConstants, t0, x); + + vConstants = vdupq_lane_f32(vget_low_f32(AC1), 0); + t0 = vmlaq_f32(vConstants, t0, x); + + const XMVECTOR AC0 = g_XMArcCoefficients0; + vConstants = vdupq_lane_f32(vget_high_f32(AC0), 1); + t0 = vmlaq_f32(vConstants, t0, x); + + vConstants = vdupq_lane_f32(vget_high_f32(AC0), 0); + t0 = vmlaq_f32(vConstants, t0, x); + + vConstants = vdupq_lane_f32(vget_low_f32(AC0), 1); + t0 = vmlaq_f32(vConstants, t0, x); + + vConstants = vdupq_lane_f32(vget_low_f32(AC0), 0); + t0 = vmlaq_f32(vConstants, t0, x); + t0 = vmulq_f32(t0, root); + + float32x4_t t1 = vsubq_f32(g_XMPi, t0); + t0 = vbslq_f32(nonnegative, t0, t1); + return t0; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_acos_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + __m128 nonnegative = _mm_cmpge_ps(V, g_XMZero); + __m128 mvalue = _mm_sub_ps(g_XMZero, V); + __m128 x = _mm_max_ps(V, mvalue); // |V| + + // Compute (1-|V|), clamp to zero to avoid sqrt of negative number. + __m128 oneMValue = _mm_sub_ps(g_XMOne, x); + __m128 clampOneMValue = _mm_max_ps(g_XMZero, oneMValue); + __m128 root = _mm_sqrt_ps(clampOneMValue); // sqrt(1-|V|) + + // Compute polynomial approximation + const XMVECTOR AC1 = g_XMArcCoefficients1; + __m128 vConstantsB = XM_PERMUTE_PS(AC1, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 vConstants = XM_PERMUTE_PS(AC1, _MM_SHUFFLE(2, 2, 2, 2)); + __m128 t0 = XM_FMADD_PS(vConstantsB, x, vConstants); + + vConstants = XM_PERMUTE_PS(AC1, _MM_SHUFFLE(1, 1, 1, 1)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + vConstants = XM_PERMUTE_PS(AC1, _MM_SHUFFLE(0, 0, 0, 0)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + const XMVECTOR AC0 = g_XMArcCoefficients0; + vConstants = XM_PERMUTE_PS(AC0, _MM_SHUFFLE(3, 3, 3, 3)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + vConstants = XM_PERMUTE_PS(AC0, _MM_SHUFFLE(2, 2, 2, 2)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + vConstants = XM_PERMUTE_PS(AC0, _MM_SHUFFLE(1, 1, 1, 1)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + vConstants = XM_PERMUTE_PS(AC0, _MM_SHUFFLE(0, 0, 0, 0)); + t0 = XM_FMADD_PS(t0, x, vConstants); + t0 = _mm_mul_ps(t0, root); + + __m128 t1 = _mm_sub_ps(g_XMPi, t0); + t0 = _mm_and_ps(nonnegative, t0); + t1 = _mm_andnot_ps(nonnegative, t1); + t0 = _mm_or_ps(t0, t1); + return t0; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorATan(FXMVECTOR V) noexcept +{ + // 17-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + atanf(V.vector4_f32[0]), + atanf(V.vector4_f32[1]), + atanf(V.vector4_f32[2]), + atanf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t absV = vabsq_f32(V); + float32x4_t invV = XMVectorReciprocal(V); + uint32x4_t comp = vcgtq_f32(V, g_XMOne); + float32x4_t sign = vbslq_f32(comp, g_XMOne, g_XMNegativeOne); + comp = vcleq_f32(absV, g_XMOne); + sign = vbslq_f32(comp, g_XMZero, sign); + float32x4_t x = vbslq_f32(comp, V, invV); + + float32x4_t x2 = vmulq_f32(x, x); + + // Compute polynomial approximation + const XMVECTOR TC1 = g_XMATanCoefficients1; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(TC1), 0); + XMVECTOR Result = vmlaq_lane_f32(vConstants, x2, vget_high_f32(TC1), 1); + + vConstants = vdupq_lane_f32(vget_low_f32(TC1), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(TC1), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + const XMVECTOR TC0 = g_XMATanCoefficients0; + vConstants = vdupq_lane_f32(vget_high_f32(TC0), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_high_f32(TC0), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(TC0), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(TC0), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + Result = vmlaq_f32(g_XMOne, Result, x2); + Result = vmulq_f32(Result, x); + + float32x4_t result1 = vmulq_f32(sign, g_XMHalfPi); + result1 = vsubq_f32(result1, Result); + + comp = vceqq_f32(sign, g_XMZero); + Result = vbslq_f32(comp, Result, result1); + return Result; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_atan_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + __m128 absV = XMVectorAbs(V); + __m128 invV = _mm_div_ps(g_XMOne, V); + __m128 comp = _mm_cmpgt_ps(V, g_XMOne); + __m128 select0 = _mm_and_ps(comp, g_XMOne); + __m128 select1 = _mm_andnot_ps(comp, g_XMNegativeOne); + __m128 sign = _mm_or_ps(select0, select1); + comp = _mm_cmple_ps(absV, g_XMOne); + select0 = _mm_and_ps(comp, g_XMZero); + select1 = _mm_andnot_ps(comp, sign); + sign = _mm_or_ps(select0, select1); + select0 = _mm_and_ps(comp, V); + select1 = _mm_andnot_ps(comp, invV); + __m128 x = _mm_or_ps(select0, select1); + + __m128 x2 = _mm_mul_ps(x, x); + + // Compute polynomial approximation + const XMVECTOR TC1 = g_XMATanCoefficients1; + __m128 vConstantsB = XM_PERMUTE_PS(TC1, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 vConstants = XM_PERMUTE_PS(TC1, _MM_SHUFFLE(2, 2, 2, 2)); + __m128 Result = XM_FMADD_PS(vConstantsB, x2, vConstants); + + vConstants = XM_PERMUTE_PS(TC1, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(TC1, _MM_SHUFFLE(0, 0, 0, 0)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + const XMVECTOR TC0 = g_XMATanCoefficients0; + vConstants = XM_PERMUTE_PS(TC0, _MM_SHUFFLE(3, 3, 3, 3)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(TC0, _MM_SHUFFLE(2, 2, 2, 2)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(TC0, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(TC0, _MM_SHUFFLE(0, 0, 0, 0)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + Result = XM_FMADD_PS(Result, x2, g_XMOne); + + Result = _mm_mul_ps(Result, x); + __m128 result1 = _mm_mul_ps(sign, g_XMHalfPi); + result1 = _mm_sub_ps(result1, Result); + + comp = _mm_cmpeq_ps(sign, g_XMZero); + select0 = _mm_and_ps(comp, Result); + select1 = _mm_andnot_ps(comp, result1); + Result = _mm_or_ps(select0, select1); + return Result; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorATan2 +( + FXMVECTOR Y, + FXMVECTOR X +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + atan2f(Y.vector4_f32[0], X.vector4_f32[0]), + atan2f(Y.vector4_f32[1], X.vector4_f32[1]), + atan2f(Y.vector4_f32[2], X.vector4_f32[2]), + atan2f(Y.vector4_f32[3], X.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_atan2_ps(Y, X); + return Result; +#else + + // Return the inverse tangent of Y / X in the range of -Pi to Pi with the following exceptions: + + // Y == 0 and X is Negative -> Pi with the sign of Y + // y == 0 and x is positive -> 0 with the sign of y + // Y != 0 and X == 0 -> Pi / 2 with the sign of Y + // Y != 0 and X is Negative -> atan(y/x) + (PI with the sign of Y) + // X == -Infinity and Finite Y -> Pi with the sign of Y + // X == +Infinity and Finite Y -> 0 with the sign of Y + // Y == Infinity and X is Finite -> Pi / 2 with the sign of Y + // Y == Infinity and X == -Infinity -> 3Pi / 4 with the sign of Y + // Y == Infinity and X == +Infinity -> Pi / 4 with the sign of Y + + static const XMVECTORF32 ATan2Constants = { { { XM_PI, XM_PIDIV2, XM_PIDIV4, XM_PI * 3.0f / 4.0f } } }; + + XMVECTOR Zero = XMVectorZero(); + XMVECTOR ATanResultValid = XMVectorTrueInt(); + + XMVECTOR Pi = XMVectorSplatX(ATan2Constants); + XMVECTOR PiOverTwo = XMVectorSplatY(ATan2Constants); + XMVECTOR PiOverFour = XMVectorSplatZ(ATan2Constants); + XMVECTOR ThreePiOverFour = XMVectorSplatW(ATan2Constants); + + XMVECTOR YEqualsZero = XMVectorEqual(Y, Zero); + XMVECTOR XEqualsZero = XMVectorEqual(X, Zero); + XMVECTOR XIsPositive = XMVectorAndInt(X, g_XMNegativeZero.v); + XIsPositive = XMVectorEqualInt(XIsPositive, Zero); + XMVECTOR YEqualsInfinity = XMVectorIsInfinite(Y); + XMVECTOR XEqualsInfinity = XMVectorIsInfinite(X); + + XMVECTOR YSign = XMVectorAndInt(Y, g_XMNegativeZero.v); + Pi = XMVectorOrInt(Pi, YSign); + PiOverTwo = XMVectorOrInt(PiOverTwo, YSign); + PiOverFour = XMVectorOrInt(PiOverFour, YSign); + ThreePiOverFour = XMVectorOrInt(ThreePiOverFour, YSign); + + XMVECTOR R1 = XMVectorSelect(Pi, YSign, XIsPositive); + XMVECTOR R2 = XMVectorSelect(ATanResultValid, PiOverTwo, XEqualsZero); + XMVECTOR R3 = XMVectorSelect(R2, R1, YEqualsZero); + XMVECTOR R4 = XMVectorSelect(ThreePiOverFour, PiOverFour, XIsPositive); + XMVECTOR R5 = XMVectorSelect(PiOverTwo, R4, XEqualsInfinity); + XMVECTOR Result = XMVectorSelect(R3, R5, YEqualsInfinity); + ATanResultValid = XMVectorEqualInt(Result, ATanResultValid); + + XMVECTOR V = XMVectorDivide(Y, X); + + XMVECTOR R0 = XMVectorATan(V); + + R1 = XMVectorSelect(Pi, g_XMNegativeZero, XIsPositive); + R2 = XMVectorAdd(R0, R1); + + return XMVectorSelect(Result, R2, ATanResultValid); + +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorSinEst(FXMVECTOR V) noexcept +{ + // 7-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + sinf(V.vector4_f32[0]), + sinf(V.vector4_f32[1]), + sinf(V.vector4_f32[2]), + sinf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Force the value within the bounds of pi + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with sin(y) = sin(x). + uint32x4_t sign = vandq_u32(vreinterpretq_u32_f32(x), g_XMNegativeZero); + uint32x4_t c = vorrq_u32(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + float32x4_t absx = vabsq_f32(x); + float32x4_t rflx = vsubq_f32(vreinterpretq_f32_u32(c), x); + uint32x4_t comp = vcleq_f32(absx, g_XMHalfPi); + x = vbslq_f32(comp, x, rflx); + + float32x4_t x2 = vmulq_f32(x, x); + + // Compute polynomial approximation + const XMVECTOR SEC = g_XMSinCoefficients1; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(SEC), 0); + XMVECTOR Result = vmlaq_lane_f32(vConstants, x2, vget_high_f32(SEC), 1); + + vConstants = vdupq_lane_f32(vget_low_f32(SEC), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + Result = vmlaq_f32(g_XMOne, Result, x2); + Result = vmulq_f32(Result, x); + return Result; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_sin_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + // Force the value within the bounds of pi + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with sin(y) = sin(x). + __m128 sign = _mm_and_ps(x, g_XMNegativeZero); + __m128 c = _mm_or_ps(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + __m128 absx = _mm_andnot_ps(sign, x); // |x| + __m128 rflx = _mm_sub_ps(c, x); + __m128 comp = _mm_cmple_ps(absx, g_XMHalfPi); + __m128 select0 = _mm_and_ps(comp, x); + __m128 select1 = _mm_andnot_ps(comp, rflx); + x = _mm_or_ps(select0, select1); + + __m128 x2 = _mm_mul_ps(x, x); + + // Compute polynomial approximation + const XMVECTOR SEC = g_XMSinCoefficients1; + __m128 vConstantsB = XM_PERMUTE_PS(SEC, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 vConstants = XM_PERMUTE_PS(SEC, _MM_SHUFFLE(2, 2, 2, 2)); + __m128 Result = XM_FMADD_PS(vConstantsB, x2, vConstants); + + vConstants = XM_PERMUTE_PS(SEC, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + Result = XM_FMADD_PS(Result, x2, g_XMOne); + Result = _mm_mul_ps(Result, x); + return Result; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorCosEst(FXMVECTOR V) noexcept +{ + // 6-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + cosf(V.vector4_f32[0]), + cosf(V.vector4_f32[1]), + cosf(V.vector4_f32[2]), + cosf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Map V to x in [-pi,pi]. + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with cos(y) = sign*cos(x). + uint32x4_t sign = vandq_u32(vreinterpretq_u32_f32(x), g_XMNegativeZero); + uint32x4_t c = vorrq_u32(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + float32x4_t absx = vabsq_f32(x); + float32x4_t rflx = vsubq_f32(vreinterpretq_f32_u32(c), x); + uint32x4_t comp = vcleq_f32(absx, g_XMHalfPi); + x = vbslq_f32(comp, x, rflx); + float32x4_t fsign = vbslq_f32(comp, g_XMOne, g_XMNegativeOne); + + float32x4_t x2 = vmulq_f32(x, x); + + // Compute polynomial approximation + const XMVECTOR CEC = g_XMCosCoefficients1; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(CEC), 0); + XMVECTOR Result = vmlaq_lane_f32(vConstants, x2, vget_high_f32(CEC), 1); + + vConstants = vdupq_lane_f32(vget_low_f32(CEC), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + Result = vmlaq_f32(g_XMOne, Result, x2); + Result = vmulq_f32(Result, fsign); + return Result; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_cos_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + // Map V to x in [-pi,pi]. + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with cos(y) = sign*cos(x). + XMVECTOR sign = _mm_and_ps(x, g_XMNegativeZero); + __m128 c = _mm_or_ps(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + __m128 absx = _mm_andnot_ps(sign, x); // |x| + __m128 rflx = _mm_sub_ps(c, x); + __m128 comp = _mm_cmple_ps(absx, g_XMHalfPi); + __m128 select0 = _mm_and_ps(comp, x); + __m128 select1 = _mm_andnot_ps(comp, rflx); + x = _mm_or_ps(select0, select1); + select0 = _mm_and_ps(comp, g_XMOne); + select1 = _mm_andnot_ps(comp, g_XMNegativeOne); + sign = _mm_or_ps(select0, select1); + + __m128 x2 = _mm_mul_ps(x, x); + + // Compute polynomial approximation + const XMVECTOR CEC = g_XMCosCoefficients1; + __m128 vConstantsB = XM_PERMUTE_PS(CEC, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 vConstants = XM_PERMUTE_PS(CEC, _MM_SHUFFLE(2, 2, 2, 2)); + __m128 Result = XM_FMADD_PS(vConstantsB, x2, vConstants); + + vConstants = XM_PERMUTE_PS(CEC, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + Result = XM_FMADD_PS(Result, x2, g_XMOne); + Result = _mm_mul_ps(Result, sign); + return Result; +#endif +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline void XM_CALLCONV XMVectorSinCosEst +( + XMVECTOR* pSin, + XMVECTOR* pCos, + FXMVECTOR V +) noexcept +{ + assert(pSin != nullptr); + assert(pCos != nullptr); + + // 7/6-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Sin = { { { + sinf(V.vector4_f32[0]), + sinf(V.vector4_f32[1]), + sinf(V.vector4_f32[2]), + sinf(V.vector4_f32[3]) + } } }; + + XMVECTORF32 Cos = { { { + cosf(V.vector4_f32[0]), + cosf(V.vector4_f32[1]), + cosf(V.vector4_f32[2]), + cosf(V.vector4_f32[3]) + } } }; + + *pSin = Sin.v; + *pCos = Cos.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Force the value within the bounds of pi + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with cos(y) = sign*cos(x). + uint32x4_t sign = vandq_u32(vreinterpretq_u32_f32(x), g_XMNegativeZero); + uint32x4_t c = vorrq_u32(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + float32x4_t absx = vabsq_f32(x); + float32x4_t rflx = vsubq_f32(vreinterpretq_f32_u32(c), x); + uint32x4_t comp = vcleq_f32(absx, g_XMHalfPi); + x = vbslq_f32(comp, x, rflx); + float32x4_t fsign = vbslq_f32(comp, g_XMOne, g_XMNegativeOne); + + float32x4_t x2 = vmulq_f32(x, x); + + // Compute polynomial approximation for sine + const XMVECTOR SEC = g_XMSinCoefficients1; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(SEC), 0); + XMVECTOR Result = vmlaq_lane_f32(vConstants, x2, vget_high_f32(SEC), 1); + + vConstants = vdupq_lane_f32(vget_low_f32(SEC), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + Result = vmlaq_f32(g_XMOne, Result, x2); + *pSin = vmulq_f32(Result, x); + + // Compute polynomial approximation + const XMVECTOR CEC = g_XMCosCoefficients1; + vConstants = vdupq_lane_f32(vget_high_f32(CEC), 0); + Result = vmlaq_lane_f32(vConstants, x2, vget_high_f32(CEC), 1); + + vConstants = vdupq_lane_f32(vget_low_f32(CEC), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + Result = vmlaq_f32(g_XMOne, Result, x2); + *pCos = vmulq_f32(Result, fsign); +#elif defined(_XM_SSE_INTRINSICS_) + // Force the value within the bounds of pi + XMVECTOR x = XMVectorModAngles(V); + + // Map in [-pi/2,pi/2] with sin(y) = sin(x), cos(y) = sign*cos(x). + XMVECTOR sign = _mm_and_ps(x, g_XMNegativeZero); + __m128 c = _mm_or_ps(g_XMPi, sign); // pi when x >= 0, -pi when x < 0 + __m128 absx = _mm_andnot_ps(sign, x); // |x| + __m128 rflx = _mm_sub_ps(c, x); + __m128 comp = _mm_cmple_ps(absx, g_XMHalfPi); + __m128 select0 = _mm_and_ps(comp, x); + __m128 select1 = _mm_andnot_ps(comp, rflx); + x = _mm_or_ps(select0, select1); + select0 = _mm_and_ps(comp, g_XMOne); + select1 = _mm_andnot_ps(comp, g_XMNegativeOne); + sign = _mm_or_ps(select0, select1); + + __m128 x2 = _mm_mul_ps(x, x); + + // Compute polynomial approximation for sine + const XMVECTOR SEC = g_XMSinCoefficients1; + __m128 vConstantsB = XM_PERMUTE_PS(SEC, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 vConstants = XM_PERMUTE_PS(SEC, _MM_SHUFFLE(2, 2, 2, 2)); + __m128 Result = XM_FMADD_PS(vConstantsB, x2, vConstants); + + vConstants = XM_PERMUTE_PS(SEC, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + Result = XM_FMADD_PS(Result, x2, g_XMOne); + Result = _mm_mul_ps(Result, x); + *pSin = Result; + + // Compute polynomial approximation for cosine + const XMVECTOR CEC = g_XMCosCoefficients1; + vConstantsB = XM_PERMUTE_PS(CEC, _MM_SHUFFLE(3, 3, 3, 3)); + vConstants = XM_PERMUTE_PS(CEC, _MM_SHUFFLE(2, 2, 2, 2)); + Result = XM_FMADD_PS(vConstantsB, x2, vConstants); + + vConstants = XM_PERMUTE_PS(CEC, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + Result = XM_FMADD_PS(Result, x2, g_XMOne); + Result = _mm_mul_ps(Result, sign); + *pCos = Result; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorTanEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + tanf(V.vector4_f32[0]), + tanf(V.vector4_f32[1]), + tanf(V.vector4_f32[2]), + tanf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_tan_ps(V); + return Result; +#else + + XMVECTOR OneOverPi = XMVectorSplatW(g_XMTanEstCoefficients.v); + + XMVECTOR V1 = XMVectorMultiply(V, OneOverPi); + V1 = XMVectorRound(V1); + + V1 = XMVectorNegativeMultiplySubtract(g_XMPi.v, V1, V); + + XMVECTOR T0 = XMVectorSplatX(g_XMTanEstCoefficients.v); + XMVECTOR T1 = XMVectorSplatY(g_XMTanEstCoefficients.v); + XMVECTOR T2 = XMVectorSplatZ(g_XMTanEstCoefficients.v); + + XMVECTOR V2T2 = XMVectorNegativeMultiplySubtract(V1, V1, T2); + XMVECTOR V2 = XMVectorMultiply(V1, V1); + XMVECTOR V1T0 = XMVectorMultiply(V1, T0); + XMVECTOR V1T1 = XMVectorMultiply(V1, T1); + + XMVECTOR D = XMVectorReciprocalEst(V2T2); + XMVECTOR N = XMVectorMultiplyAdd(V2, V1T1, V1T0); + + return XMVectorMultiply(N, D); + +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorASinEst(FXMVECTOR V) noexcept +{ + // 3-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result; + Result.f[0] = asinf(V.vector4_f32[0]); + Result.f[1] = asinf(V.vector4_f32[1]); + Result.f[2] = asinf(V.vector4_f32[2]); + Result.f[3] = asinf(V.vector4_f32[3]); + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t nonnegative = vcgeq_f32(V, g_XMZero); + float32x4_t x = vabsq_f32(V); + + // Compute (1-|V|), clamp to zero to avoid sqrt of negative number. + float32x4_t oneMValue = vsubq_f32(g_XMOne, x); + float32x4_t clampOneMValue = vmaxq_f32(g_XMZero, oneMValue); + float32x4_t root = XMVectorSqrt(clampOneMValue); + + // Compute polynomial approximation + const XMVECTOR AEC = g_XMArcEstCoefficients; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(AEC), 0); + XMVECTOR t0 = vmlaq_lane_f32(vConstants, x, vget_high_f32(AEC), 1); + + vConstants = vdupq_lane_f32(vget_low_f32(AEC), 1); + t0 = vmlaq_f32(vConstants, t0, x); + + vConstants = vdupq_lane_f32(vget_low_f32(AEC), 0); + t0 = vmlaq_f32(vConstants, t0, x); + t0 = vmulq_f32(t0, root); + + float32x4_t t1 = vsubq_f32(g_XMPi, t0); + t0 = vbslq_f32(nonnegative, t0, t1); + t0 = vsubq_f32(g_XMHalfPi, t0); + return t0; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_asin_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + __m128 nonnegative = _mm_cmpge_ps(V, g_XMZero); + __m128 mvalue = _mm_sub_ps(g_XMZero, V); + __m128 x = _mm_max_ps(V, mvalue); // |V| + + // Compute (1-|V|), clamp to zero to avoid sqrt of negative number. + __m128 oneMValue = _mm_sub_ps(g_XMOne, x); + __m128 clampOneMValue = _mm_max_ps(g_XMZero, oneMValue); + __m128 root = _mm_sqrt_ps(clampOneMValue); // sqrt(1-|V|) + + // Compute polynomial approximation + const XMVECTOR AEC = g_XMArcEstCoefficients; + __m128 vConstantsB = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 vConstants = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(2, 2, 2, 2)); + __m128 t0 = XM_FMADD_PS(vConstantsB, x, vConstants); + + vConstants = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(1, 1, 1, 1)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + vConstants = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(0, 0, 0, 0)); + t0 = XM_FMADD_PS(t0, x, vConstants); + t0 = _mm_mul_ps(t0, root); + + __m128 t1 = _mm_sub_ps(g_XMPi, t0); + t0 = _mm_and_ps(nonnegative, t0); + t1 = _mm_andnot_ps(nonnegative, t1); + t0 = _mm_or_ps(t0, t1); + t0 = _mm_sub_ps(g_XMHalfPi, t0); + return t0; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorACosEst(FXMVECTOR V) noexcept +{ + // 3-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + acosf(V.vector4_f32[0]), + acosf(V.vector4_f32[1]), + acosf(V.vector4_f32[2]), + acosf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t nonnegative = vcgeq_f32(V, g_XMZero); + float32x4_t x = vabsq_f32(V); + + // Compute (1-|V|), clamp to zero to avoid sqrt of negative number. + float32x4_t oneMValue = vsubq_f32(g_XMOne, x); + float32x4_t clampOneMValue = vmaxq_f32(g_XMZero, oneMValue); + float32x4_t root = XMVectorSqrt(clampOneMValue); + + // Compute polynomial approximation + const XMVECTOR AEC = g_XMArcEstCoefficients; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(AEC), 0); + XMVECTOR t0 = vmlaq_lane_f32(vConstants, x, vget_high_f32(AEC), 1); + + vConstants = vdupq_lane_f32(vget_low_f32(AEC), 1); + t0 = vmlaq_f32(vConstants, t0, x); + + vConstants = vdupq_lane_f32(vget_low_f32(AEC), 0); + t0 = vmlaq_f32(vConstants, t0, x); + t0 = vmulq_f32(t0, root); + + float32x4_t t1 = vsubq_f32(g_XMPi, t0); + t0 = vbslq_f32(nonnegative, t0, t1); + return t0; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_acos_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + __m128 nonnegative = _mm_cmpge_ps(V, g_XMZero); + __m128 mvalue = _mm_sub_ps(g_XMZero, V); + __m128 x = _mm_max_ps(V, mvalue); // |V| + + // Compute (1-|V|), clamp to zero to avoid sqrt of negative number. + __m128 oneMValue = _mm_sub_ps(g_XMOne, x); + __m128 clampOneMValue = _mm_max_ps(g_XMZero, oneMValue); + __m128 root = _mm_sqrt_ps(clampOneMValue); // sqrt(1-|V|) + + // Compute polynomial approximation + const XMVECTOR AEC = g_XMArcEstCoefficients; + __m128 vConstantsB = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 vConstants = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(2, 2, 2, 2)); + __m128 t0 = XM_FMADD_PS(vConstantsB, x, vConstants); + + vConstants = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(1, 1, 1, 1)); + t0 = XM_FMADD_PS(t0, x, vConstants); + + vConstants = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(0, 0, 0, 0)); + t0 = XM_FMADD_PS(t0, x, vConstants); + t0 = _mm_mul_ps(t0, root); + + __m128 t1 = _mm_sub_ps(g_XMPi, t0); + t0 = _mm_and_ps(nonnegative, t0); + t1 = _mm_andnot_ps(nonnegative, t1); + t0 = _mm_or_ps(t0, t1); + return t0; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorATanEst(FXMVECTOR V) noexcept +{ + // 9-degree minimax approximation + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + atanf(V.vector4_f32[0]), + atanf(V.vector4_f32[1]), + atanf(V.vector4_f32[2]), + atanf(V.vector4_f32[3]) + } } }; + return Result.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t absV = vabsq_f32(V); + float32x4_t invV = XMVectorReciprocalEst(V); + uint32x4_t comp = vcgtq_f32(V, g_XMOne); + float32x4_t sign = vbslq_f32(comp, g_XMOne, g_XMNegativeOne); + comp = vcleq_f32(absV, g_XMOne); + sign = vbslq_f32(comp, g_XMZero, sign); + float32x4_t x = vbslq_f32(comp, V, invV); + + float32x4_t x2 = vmulq_f32(x, x); + + // Compute polynomial approximation + const XMVECTOR AEC = g_XMATanEstCoefficients1; + XMVECTOR vConstants = vdupq_lane_f32(vget_high_f32(AEC), 0); + XMVECTOR Result = vmlaq_lane_f32(vConstants, x2, vget_high_f32(AEC), 1); + + vConstants = vdupq_lane_f32(vget_low_f32(AEC), 1); + Result = vmlaq_f32(vConstants, Result, x2); + + vConstants = vdupq_lane_f32(vget_low_f32(AEC), 0); + Result = vmlaq_f32(vConstants, Result, x2); + + // ATanEstCoefficients0 is already splatted + Result = vmlaq_f32(g_XMATanEstCoefficients0, Result, x2); + Result = vmulq_f32(Result, x); + + float32x4_t result1 = vmulq_f32(sign, g_XMHalfPi); + result1 = vsubq_f32(result1, Result); + + comp = vceqq_f32(sign, g_XMZero); + Result = vbslq_f32(comp, Result, result1); + return Result; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_atan_ps(V); + return Result; +#elif defined(_XM_SSE_INTRINSICS_) + __m128 absV = XMVectorAbs(V); + __m128 invV = _mm_div_ps(g_XMOne, V); + __m128 comp = _mm_cmpgt_ps(V, g_XMOne); + __m128 select0 = _mm_and_ps(comp, g_XMOne); + __m128 select1 = _mm_andnot_ps(comp, g_XMNegativeOne); + __m128 sign = _mm_or_ps(select0, select1); + comp = _mm_cmple_ps(absV, g_XMOne); + select0 = _mm_and_ps(comp, g_XMZero); + select1 = _mm_andnot_ps(comp, sign); + sign = _mm_or_ps(select0, select1); + select0 = _mm_and_ps(comp, V); + select1 = _mm_andnot_ps(comp, invV); + __m128 x = _mm_or_ps(select0, select1); + + __m128 x2 = _mm_mul_ps(x, x); + + // Compute polynomial approximation + const XMVECTOR AEC = g_XMATanEstCoefficients1; + __m128 vConstantsB = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(3, 3, 3, 3)); + __m128 vConstants = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(2, 2, 2, 2)); + __m128 Result = XM_FMADD_PS(vConstantsB, x2, vConstants); + + vConstants = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(1, 1, 1, 1)); + Result = XM_FMADD_PS(Result, x2, vConstants); + + vConstants = XM_PERMUTE_PS(AEC, _MM_SHUFFLE(0, 0, 0, 0)); + Result = XM_FMADD_PS(Result, x2, vConstants); + // ATanEstCoefficients0 is already splatted + Result = XM_FMADD_PS(Result, x2, g_XMATanEstCoefficients0); + Result = _mm_mul_ps(Result, x); + __m128 result1 = _mm_mul_ps(sign, g_XMHalfPi); + result1 = _mm_sub_ps(result1, Result); + + comp = _mm_cmpeq_ps(sign, g_XMZero); + select0 = _mm_and_ps(comp, Result); + select1 = _mm_andnot_ps(comp, result1); + Result = _mm_or_ps(select0, select1); + return Result; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorATan2Est +( + FXMVECTOR Y, + FXMVECTOR X +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 Result = { { { + atan2f(Y.vector4_f32[0], X.vector4_f32[0]), + atan2f(Y.vector4_f32[1], X.vector4_f32[1]), + atan2f(Y.vector4_f32[2], X.vector4_f32[2]), + atan2f(Y.vector4_f32[3], X.vector4_f32[3]), + } } }; + return Result.v; +#elif defined(_XM_SVML_INTRINSICS_) + XMVECTOR Result = _mm_atan2_ps(Y, X); + return Result; +#else + + static const XMVECTORF32 ATan2Constants = { { { XM_PI, XM_PIDIV2, XM_PIDIV4, 2.3561944905f /* Pi*3/4 */ } } }; + + const XMVECTOR Zero = XMVectorZero(); + XMVECTOR ATanResultValid = XMVectorTrueInt(); + + XMVECTOR Pi = XMVectorSplatX(ATan2Constants); + XMVECTOR PiOverTwo = XMVectorSplatY(ATan2Constants); + XMVECTOR PiOverFour = XMVectorSplatZ(ATan2Constants); + XMVECTOR ThreePiOverFour = XMVectorSplatW(ATan2Constants); + + XMVECTOR YEqualsZero = XMVectorEqual(Y, Zero); + XMVECTOR XEqualsZero = XMVectorEqual(X, Zero); + XMVECTOR XIsPositive = XMVectorAndInt(X, g_XMNegativeZero.v); + XIsPositive = XMVectorEqualInt(XIsPositive, Zero); + XMVECTOR YEqualsInfinity = XMVectorIsInfinite(Y); + XMVECTOR XEqualsInfinity = XMVectorIsInfinite(X); + + XMVECTOR YSign = XMVectorAndInt(Y, g_XMNegativeZero.v); + Pi = XMVectorOrInt(Pi, YSign); + PiOverTwo = XMVectorOrInt(PiOverTwo, YSign); + PiOverFour = XMVectorOrInt(PiOverFour, YSign); + ThreePiOverFour = XMVectorOrInt(ThreePiOverFour, YSign); + + XMVECTOR R1 = XMVectorSelect(Pi, YSign, XIsPositive); + XMVECTOR R2 = XMVectorSelect(ATanResultValid, PiOverTwo, XEqualsZero); + XMVECTOR R3 = XMVectorSelect(R2, R1, YEqualsZero); + XMVECTOR R4 = XMVectorSelect(ThreePiOverFour, PiOverFour, XIsPositive); + XMVECTOR R5 = XMVectorSelect(PiOverTwo, R4, XEqualsInfinity); + XMVECTOR Result = XMVectorSelect(R3, R5, YEqualsInfinity); + ATanResultValid = XMVectorEqualInt(Result, ATanResultValid); + + XMVECTOR Reciprocal = XMVectorReciprocalEst(X); + XMVECTOR V = XMVectorMultiply(Y, Reciprocal); + XMVECTOR R0 = XMVectorATanEst(V); + + R1 = XMVectorSelect(Pi, g_XMNegativeZero, XIsPositive); + R2 = XMVectorAdd(R0, R1); + + Result = XMVectorSelect(Result, R2, ATanResultValid); + + return Result; + +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorLerp +( + FXMVECTOR V0, + FXMVECTOR V1, + float t +) noexcept +{ + // V0 + t * (V1 - V0) + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Scale = XMVectorReplicate(t); + XMVECTOR Length = XMVectorSubtract(V1, V0); + return XMVectorMultiplyAdd(Length, Scale, V0); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTOR L = vsubq_f32(V1, V0); + return vmlaq_n_f32(V0, L, t); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR L = _mm_sub_ps(V1, V0); + XMVECTOR S = _mm_set_ps1(t); + return XM_FMADD_PS(L, S, V0); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorLerpV +( + FXMVECTOR V0, + FXMVECTOR V1, + FXMVECTOR T +) noexcept +{ + // V0 + T * (V1 - V0) + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Length = XMVectorSubtract(V1, V0); + return XMVectorMultiplyAdd(Length, T, V0); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTOR L = vsubq_f32(V1, V0); + return vmlaq_f32(V0, L, T); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR Length = _mm_sub_ps(V1, V0); + return XM_FMADD_PS(Length, T, V0); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorHermite +( + FXMVECTOR Position0, + FXMVECTOR Tangent0, + FXMVECTOR Position1, + GXMVECTOR Tangent1, + float t +) noexcept +{ + // Result = (2 * t^3 - 3 * t^2 + 1) * Position0 + + // (t^3 - 2 * t^2 + t) * Tangent0 + + // (-2 * t^3 + 3 * t^2) * Position1 + + // (t^3 - t^2) * Tangent1 + +#if defined(_XM_NO_INTRINSICS_) + + float t2 = t * t; + float t3 = t * t2; + + XMVECTOR P0 = XMVectorReplicate(2.0f * t3 - 3.0f * t2 + 1.0f); + XMVECTOR T0 = XMVectorReplicate(t3 - 2.0f * t2 + t); + XMVECTOR P1 = XMVectorReplicate(-2.0f * t3 + 3.0f * t2); + XMVECTOR T1 = XMVectorReplicate(t3 - t2); + + XMVECTOR Result = XMVectorMultiply(P0, Position0); + Result = XMVectorMultiplyAdd(T0, Tangent0, Result); + Result = XMVectorMultiplyAdd(P1, Position1, Result); + Result = XMVectorMultiplyAdd(T1, Tangent1, Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float t2 = t * t; + float t3 = t * t2; + + float p0 = 2.0f * t3 - 3.0f * t2 + 1.0f; + float t0 = t3 - 2.0f * t2 + t; + float p1 = -2.0f * t3 + 3.0f * t2; + float t1 = t3 - t2; + + XMVECTOR vResult = vmulq_n_f32(Position0, p0); + vResult = vmlaq_n_f32(vResult, Tangent0, t0); + vResult = vmlaq_n_f32(vResult, Position1, p1); + vResult = vmlaq_n_f32(vResult, Tangent1, t1); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + float t2 = t * t; + float t3 = t * t2; + + XMVECTOR P0 = _mm_set_ps1(2.0f * t3 - 3.0f * t2 + 1.0f); + XMVECTOR T0 = _mm_set_ps1(t3 - 2.0f * t2 + t); + XMVECTOR P1 = _mm_set_ps1(-2.0f * t3 + 3.0f * t2); + XMVECTOR T1 = _mm_set_ps1(t3 - t2); + + XMVECTOR vResult = _mm_mul_ps(P0, Position0); + vResult = XM_FMADD_PS(Tangent0, T0, vResult); + vResult = XM_FMADD_PS(Position1, P1, vResult); + vResult = XM_FMADD_PS(Tangent1, T1, vResult); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorHermiteV +( + FXMVECTOR Position0, + FXMVECTOR Tangent0, + FXMVECTOR Position1, + GXMVECTOR Tangent1, + HXMVECTOR T +) noexcept +{ + // Result = (2 * t^3 - 3 * t^2 + 1) * Position0 + + // (t^3 - 2 * t^2 + t) * Tangent0 + + // (-2 * t^3 + 3 * t^2) * Position1 + + // (t^3 - t^2) * Tangent1 + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR T2 = XMVectorMultiply(T, T); + XMVECTOR T3 = XMVectorMultiply(T, T2); + + XMVECTOR P0 = XMVectorReplicate(2.0f * T3.vector4_f32[0] - 3.0f * T2.vector4_f32[0] + 1.0f); + XMVECTOR T0 = XMVectorReplicate(T3.vector4_f32[1] - 2.0f * T2.vector4_f32[1] + T.vector4_f32[1]); + XMVECTOR P1 = XMVectorReplicate(-2.0f * T3.vector4_f32[2] + 3.0f * T2.vector4_f32[2]); + XMVECTOR T1 = XMVectorReplicate(T3.vector4_f32[3] - T2.vector4_f32[3]); + + XMVECTOR Result = XMVectorMultiply(P0, Position0); + Result = XMVectorMultiplyAdd(T0, Tangent0, Result); + Result = XMVectorMultiplyAdd(P1, Position1, Result); + Result = XMVectorMultiplyAdd(T1, Tangent1, Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 CatMulT2 = { { { -3.0f, -2.0f, 3.0f, -1.0f } } }; + static const XMVECTORF32 CatMulT3 = { { { 2.0f, 1.0f, -2.0f, 1.0f } } }; + + XMVECTOR T2 = vmulq_f32(T, T); + XMVECTOR T3 = vmulq_f32(T, T2); + // Mul by the constants against t^2 + T2 = vmulq_f32(T2, CatMulT2); + // Mul by the constants against t^3 + T3 = vmlaq_f32(T2, T3, CatMulT3); + // T3 now has the pre-result. + // I need to add t.y only + T2 = vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(T), g_XMMaskY)); + T3 = vaddq_f32(T3, T2); + // Add 1.0f to x + T3 = vaddq_f32(T3, g_XMIdentityR0); + // Now, I have the constants created + // Mul the x constant to Position0 + XMVECTOR vResult = vmulq_lane_f32(Position0, vget_low_f32(T3), 0); // T3[0] + // Mul the y constant to Tangent0 + vResult = vmlaq_lane_f32(vResult, Tangent0, vget_low_f32(T3), 1); // T3[1] + // Mul the z constant to Position1 + vResult = vmlaq_lane_f32(vResult, Position1, vget_high_f32(T3), 0); // T3[2] + // Mul the w constant to Tangent1 + vResult = vmlaq_lane_f32(vResult, Tangent1, vget_high_f32(T3), 1); // T3[3] + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 CatMulT2 = { { { -3.0f, -2.0f, 3.0f, -1.0f } } }; + static const XMVECTORF32 CatMulT3 = { { { 2.0f, 1.0f, -2.0f, 1.0f } } }; + + XMVECTOR T2 = _mm_mul_ps(T, T); + XMVECTOR T3 = _mm_mul_ps(T, T2); + // Mul by the constants against t^2 + T2 = _mm_mul_ps(T2, CatMulT2); + // Mul by the constants against t^3 + T3 = XM_FMADD_PS(T3, CatMulT3, T2); + // T3 now has the pre-result. + // I need to add t.y only + T2 = _mm_and_ps(T, g_XMMaskY); + T3 = _mm_add_ps(T3, T2); + // Add 1.0f to x + T3 = _mm_add_ps(T3, g_XMIdentityR0); + // Now, I have the constants created + // Mul the x constant to Position0 + XMVECTOR vResult = XM_PERMUTE_PS(T3, _MM_SHUFFLE(0, 0, 0, 0)); + vResult = _mm_mul_ps(vResult, Position0); + // Mul the y constant to Tangent0 + T2 = XM_PERMUTE_PS(T3, _MM_SHUFFLE(1, 1, 1, 1)); + vResult = XM_FMADD_PS(T2, Tangent0, vResult); + // Mul the z constant to Position1 + T2 = XM_PERMUTE_PS(T3, _MM_SHUFFLE(2, 2, 2, 2)); + vResult = XM_FMADD_PS(T2, Position1, vResult); + // Mul the w constant to Tangent1 + T3 = XM_PERMUTE_PS(T3, _MM_SHUFFLE(3, 3, 3, 3)); + vResult = XM_FMADD_PS(T3, Tangent1, vResult); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorCatmullRom +( + FXMVECTOR Position0, + FXMVECTOR Position1, + FXMVECTOR Position2, + GXMVECTOR Position3, + float t +) noexcept +{ + // Result = ((-t^3 + 2 * t^2 - t) * Position0 + + // (3 * t^3 - 5 * t^2 + 2) * Position1 + + // (-3 * t^3 + 4 * t^2 + t) * Position2 + + // (t^3 - t^2) * Position3) * 0.5 + +#if defined(_XM_NO_INTRINSICS_) + + float t2 = t * t; + float t3 = t * t2; + + XMVECTOR P0 = XMVectorReplicate((-t3 + 2.0f * t2 - t) * 0.5f); + XMVECTOR P1 = XMVectorReplicate((3.0f * t3 - 5.0f * t2 + 2.0f) * 0.5f); + XMVECTOR P2 = XMVectorReplicate((-3.0f * t3 + 4.0f * t2 + t) * 0.5f); + XMVECTOR P3 = XMVectorReplicate((t3 - t2) * 0.5f); + + XMVECTOR Result = XMVectorMultiply(P0, Position0); + Result = XMVectorMultiplyAdd(P1, Position1, Result); + Result = XMVectorMultiplyAdd(P2, Position2, Result); + Result = XMVectorMultiplyAdd(P3, Position3, Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float t2 = t * t; + float t3 = t * t2; + + float p0 = (-t3 + 2.0f * t2 - t) * 0.5f; + float p1 = (3.0f * t3 - 5.0f * t2 + 2.0f) * 0.5f; + float p2 = (-3.0f * t3 + 4.0f * t2 + t) * 0.5f; + float p3 = (t3 - t2) * 0.5f; + + XMVECTOR P1 = vmulq_n_f32(Position1, p1); + XMVECTOR P0 = vmlaq_n_f32(P1, Position0, p0); + XMVECTOR P3 = vmulq_n_f32(Position3, p3); + XMVECTOR P2 = vmlaq_n_f32(P3, Position2, p2); + P0 = vaddq_f32(P0, P2); + return P0; +#elif defined(_XM_SSE_INTRINSICS_) + float t2 = t * t; + float t3 = t * t2; + + XMVECTOR P0 = _mm_set_ps1((-t3 + 2.0f * t2 - t) * 0.5f); + XMVECTOR P1 = _mm_set_ps1((3.0f * t3 - 5.0f * t2 + 2.0f) * 0.5f); + XMVECTOR P2 = _mm_set_ps1((-3.0f * t3 + 4.0f * t2 + t) * 0.5f); + XMVECTOR P3 = _mm_set_ps1((t3 - t2) * 0.5f); + + P1 = _mm_mul_ps(Position1, P1); + P0 = XM_FMADD_PS(Position0, P0, P1); + P3 = _mm_mul_ps(Position3, P3); + P2 = XM_FMADD_PS(Position2, P2, P3); + P0 = _mm_add_ps(P0, P2); + return P0; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorCatmullRomV +( + FXMVECTOR Position0, + FXMVECTOR Position1, + FXMVECTOR Position2, + GXMVECTOR Position3, + HXMVECTOR T +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float fx = T.vector4_f32[0]; + float fy = T.vector4_f32[1]; + float fz = T.vector4_f32[2]; + float fw = T.vector4_f32[3]; + XMVECTORF32 vResult = { { { + 0.5f * ((-fx * fx * fx + 2 * fx * fx - fx) * Position0.vector4_f32[0] + + (3 * fx * fx * fx - 5 * fx * fx + 2) * Position1.vector4_f32[0] + + (-3 * fx * fx * fx + 4 * fx * fx + fx) * Position2.vector4_f32[0] + + (fx * fx * fx - fx * fx) * Position3.vector4_f32[0]), + + 0.5f * ((-fy * fy * fy + 2 * fy * fy - fy) * Position0.vector4_f32[1] + + (3 * fy * fy * fy - 5 * fy * fy + 2) * Position1.vector4_f32[1] + + (-3 * fy * fy * fy + 4 * fy * fy + fy) * Position2.vector4_f32[1] + + (fy * fy * fy - fy * fy) * Position3.vector4_f32[1]), + + 0.5f * ((-fz * fz * fz + 2 * fz * fz - fz) * Position0.vector4_f32[2] + + (3 * fz * fz * fz - 5 * fz * fz + 2) * Position1.vector4_f32[2] + + (-3 * fz * fz * fz + 4 * fz * fz + fz) * Position2.vector4_f32[2] + + (fz * fz * fz - fz * fz) * Position3.vector4_f32[2]), + + 0.5f * ((-fw * fw * fw + 2 * fw * fw - fw) * Position0.vector4_f32[3] + + (3 * fw * fw * fw - 5 * fw * fw + 2) * Position1.vector4_f32[3] + + (-3 * fw * fw * fw + 4 * fw * fw + fw) * Position2.vector4_f32[3] + + (fw * fw * fw - fw * fw) * Position3.vector4_f32[3]) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Catmul2 = { { { 2.0f, 2.0f, 2.0f, 2.0f } } }; + static const XMVECTORF32 Catmul3 = { { { 3.0f, 3.0f, 3.0f, 3.0f } } }; + static const XMVECTORF32 Catmul4 = { { { 4.0f, 4.0f, 4.0f, 4.0f } } }; + static const XMVECTORF32 Catmul5 = { { { 5.0f, 5.0f, 5.0f, 5.0f } } }; + // Cache T^2 and T^3 + XMVECTOR T2 = vmulq_f32(T, T); + XMVECTOR T3 = vmulq_f32(T, T2); + // Perform the Position0 term + XMVECTOR vResult = vaddq_f32(T2, T2); + vResult = vsubq_f32(vResult, T); + vResult = vsubq_f32(vResult, T3); + vResult = vmulq_f32(vResult, Position0); + // Perform the Position1 term and add + XMVECTOR vTemp = vmulq_f32(T3, Catmul3); + vTemp = vmlsq_f32(vTemp, T2, Catmul5); + vTemp = vaddq_f32(vTemp, Catmul2); + vResult = vmlaq_f32(vResult, vTemp, Position1); + // Perform the Position2 term and add + vTemp = vmulq_f32(T2, Catmul4); + vTemp = vmlsq_f32(vTemp, T3, Catmul3); + vTemp = vaddq_f32(vTemp, T); + vResult = vmlaq_f32(vResult, vTemp, Position2); + // Position3 is the last term + T3 = vsubq_f32(T3, T2); + vResult = vmlaq_f32(vResult, T3, Position3); + // Multiply by 0.5f and exit + vResult = vmulq_f32(vResult, g_XMOneHalf); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Catmul2 = { { { 2.0f, 2.0f, 2.0f, 2.0f } } }; + static const XMVECTORF32 Catmul3 = { { { 3.0f, 3.0f, 3.0f, 3.0f } } }; + static const XMVECTORF32 Catmul4 = { { { 4.0f, 4.0f, 4.0f, 4.0f } } }; + static const XMVECTORF32 Catmul5 = { { { 5.0f, 5.0f, 5.0f, 5.0f } } }; + // Cache T^2 and T^3 + XMVECTOR T2 = _mm_mul_ps(T, T); + XMVECTOR T3 = _mm_mul_ps(T, T2); + // Perform the Position0 term + XMVECTOR vResult = _mm_add_ps(T2, T2); + vResult = _mm_sub_ps(vResult, T); + vResult = _mm_sub_ps(vResult, T3); + vResult = _mm_mul_ps(vResult, Position0); + // Perform the Position1 term and add + XMVECTOR vTemp = _mm_mul_ps(T3, Catmul3); + vTemp = XM_FNMADD_PS(T2, Catmul5, vTemp); + vTemp = _mm_add_ps(vTemp, Catmul2); + vResult = XM_FMADD_PS(vTemp, Position1, vResult); + // Perform the Position2 term and add + vTemp = _mm_mul_ps(T2, Catmul4); + vTemp = XM_FNMADD_PS(T3, Catmul3, vTemp); + vTemp = _mm_add_ps(vTemp, T); + vResult = XM_FMADD_PS(vTemp, Position2, vResult); + // Position3 is the last term + T3 = _mm_sub_ps(T3, T2); + vResult = XM_FMADD_PS(T3, Position3, vResult); + // Multiply by 0.5f and exit + vResult = _mm_mul_ps(vResult, g_XMOneHalf); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorBaryCentric +( + FXMVECTOR Position0, + FXMVECTOR Position1, + FXMVECTOR Position2, + float f, + float g +) noexcept +{ + // Result = Position0 + f * (Position1 - Position0) + g * (Position2 - Position0) + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR P10 = XMVectorSubtract(Position1, Position0); + XMVECTOR ScaleF = XMVectorReplicate(f); + + XMVECTOR P20 = XMVectorSubtract(Position2, Position0); + XMVECTOR ScaleG = XMVectorReplicate(g); + + XMVECTOR Result = XMVectorMultiplyAdd(P10, ScaleF, Position0); + Result = XMVectorMultiplyAdd(P20, ScaleG, Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTOR R1 = vsubq_f32(Position1, Position0); + XMVECTOR R2 = vsubq_f32(Position2, Position0); + R1 = vmlaq_n_f32(Position0, R1, f); + return vmlaq_n_f32(R1, R2, g); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR R1 = _mm_sub_ps(Position1, Position0); + XMVECTOR R2 = _mm_sub_ps(Position2, Position0); + XMVECTOR SF = _mm_set_ps1(f); + R1 = XM_FMADD_PS(R1, SF, Position0); + XMVECTOR SG = _mm_set_ps1(g); + return XM_FMADD_PS(R2, SG, R1); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVectorBaryCentricV +( + FXMVECTOR Position0, + FXMVECTOR Position1, + FXMVECTOR Position2, + GXMVECTOR F, + HXMVECTOR G +) noexcept +{ + // Result = Position0 + f * (Position1 - Position0) + g * (Position2 - Position0) + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR P10 = XMVectorSubtract(Position1, Position0); + XMVECTOR P20 = XMVectorSubtract(Position2, Position0); + + XMVECTOR Result = XMVectorMultiplyAdd(P10, F, Position0); + Result = XMVectorMultiplyAdd(P20, G, Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTOR R1 = vsubq_f32(Position1, Position0); + XMVECTOR R2 = vsubq_f32(Position2, Position0); + R1 = vmlaq_f32(Position0, R1, F); + return vmlaq_f32(R1, R2, G); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR R1 = _mm_sub_ps(Position1, Position0); + XMVECTOR R2 = _mm_sub_ps(Position2, Position0); + R1 = XM_FMADD_PS(R1, F, Position0); + return XM_FMADD_PS(R2, G, R1); +#endif +} + +/**************************************************************************** + * + * 2D Vector + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + // Comparison operations + //------------------------------------------------------------------------------ + + //------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2Equal +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] == V2.vector4_f32[0]) && (V1.vector4_f32[1] == V2.vector4_f32[1])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vceq_f32(vget_low_f32(V1), vget_low_f32(V2)); + return (vget_lane_u64(vreinterpret_u64_u32(vTemp), 0) == 0xFFFFFFFFFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpeq_ps(V1, V2); + // z and w are don't care + return (((_mm_movemask_ps(vTemp) & 3) == 3) != 0); +#endif +} + + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector2EqualR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + uint32_t CR = 0; + if ((V1.vector4_f32[0] == V2.vector4_f32[0]) && + (V1.vector4_f32[1] == V2.vector4_f32[1])) + { + CR = XM_CRMASK_CR6TRUE; + } + else if ((V1.vector4_f32[0] != V2.vector4_f32[0]) && + (V1.vector4_f32[1] != V2.vector4_f32[1])) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vceq_f32(vget_low_f32(V1), vget_low_f32(V2)); + uint64_t r = vget_lane_u64(vreinterpret_u64_u32(vTemp), 0); + uint32_t CR = 0; + if (r == 0xFFFFFFFFFFFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpeq_ps(V1, V2); + // z and w are don't care + int iTest = _mm_movemask_ps(vTemp) & 3; + uint32_t CR = 0; + if (iTest == 3) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2EqualInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_u32[0] == V2.vector4_u32[0]) && (V1.vector4_u32[1] == V2.vector4_u32[1])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vceq_u32(vget_low_u32(vreinterpretq_u32_f32(V1)), vget_low_u32(vreinterpretq_u32_f32(V2))); + return (vget_lane_u64(vreinterpret_u64_u32(vTemp), 0) == 0xFFFFFFFFFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + return (((_mm_movemask_ps(_mm_castsi128_ps(vTemp)) & 3) == 3) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector2EqualIntR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + uint32_t CR = 0; + if ((V1.vector4_u32[0] == V2.vector4_u32[0]) && + (V1.vector4_u32[1] == V2.vector4_u32[1])) + { + CR = XM_CRMASK_CR6TRUE; + } + else if ((V1.vector4_u32[0] != V2.vector4_u32[0]) && + (V1.vector4_u32[1] != V2.vector4_u32[1])) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vceq_u32(vget_low_u32(vreinterpretq_u32_f32(V1)), vget_low_u32(vreinterpretq_u32_f32(V2))); + uint64_t r = vget_lane_u64(vreinterpret_u64_u32(vTemp), 0); + uint32_t CR = 0; + if (r == 0xFFFFFFFFFFFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + int iTest = _mm_movemask_ps(_mm_castsi128_ps(vTemp)) & 3; + uint32_t CR = 0; + if (iTest == 3) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2NearEqual +( + FXMVECTOR V1, + FXMVECTOR V2, + FXMVECTOR Epsilon +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float dx = fabsf(V1.vector4_f32[0] - V2.vector4_f32[0]); + float dy = fabsf(V1.vector4_f32[1] - V2.vector4_f32[1]); + return ((dx <= Epsilon.vector4_f32[0]) && + (dy <= Epsilon.vector4_f32[1])); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t vDelta = vsub_f32(vget_low_f32(V1), vget_low_f32(V2)); +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + uint32x2_t vTemp = vacle_f32(vDelta, vget_low_u32(Epsilon)); +#else + uint32x2_t vTemp = vcle_f32(vabs_f32(vDelta), vget_low_f32(Epsilon)); +#endif + uint64_t r = vget_lane_u64(vreinterpret_u64_u32(vTemp), 0); + return (r == 0xFFFFFFFFFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + // Get the difference + XMVECTOR vDelta = _mm_sub_ps(V1, V2); + // Get the absolute value of the difference + XMVECTOR vTemp = _mm_setzero_ps(); + vTemp = _mm_sub_ps(vTemp, vDelta); + vTemp = _mm_max_ps(vTemp, vDelta); + vTemp = _mm_cmple_ps(vTemp, Epsilon); + // z and w are don't care + return (((_mm_movemask_ps(vTemp) & 3) == 0x3) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2NotEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] != V2.vector4_f32[0]) || (V1.vector4_f32[1] != V2.vector4_f32[1])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vceq_f32(vget_low_f32(V1), vget_low_f32(V2)); + return (vget_lane_u64(vreinterpret_u64_u32(vTemp), 0) != 0xFFFFFFFFFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpeq_ps(V1, V2); + // z and w are don't care + return (((_mm_movemask_ps(vTemp) & 3) != 3) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2NotEqualInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_u32[0] != V2.vector4_u32[0]) || (V1.vector4_u32[1] != V2.vector4_u32[1])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vceq_u32(vget_low_u32(vreinterpretq_u32_f32(V1)), vget_low_u32(vreinterpretq_u32_f32(V2))); + return (vget_lane_u64(vreinterpret_u64_u32(vTemp), 0) != 0xFFFFFFFFFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + return (((_mm_movemask_ps(_mm_castsi128_ps(vTemp)) & 3) != 3) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2Greater +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] > V2.vector4_f32[0]) && (V1.vector4_f32[1] > V2.vector4_f32[1])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vcgt_f32(vget_low_f32(V1), vget_low_f32(V2)); + return (vget_lane_u64(vreinterpret_u64_u32(vTemp), 0) == 0xFFFFFFFFFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpgt_ps(V1, V2); + // z and w are don't care + return (((_mm_movemask_ps(vTemp) & 3) == 3) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector2GreaterR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + uint32_t CR = 0; + if ((V1.vector4_f32[0] > V2.vector4_f32[0]) && + (V1.vector4_f32[1] > V2.vector4_f32[1])) + { + CR = XM_CRMASK_CR6TRUE; + } + else if ((V1.vector4_f32[0] <= V2.vector4_f32[0]) && + (V1.vector4_f32[1] <= V2.vector4_f32[1])) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vcgt_f32(vget_low_f32(V1), vget_low_f32(V2)); + uint64_t r = vget_lane_u64(vreinterpret_u64_u32(vTemp), 0); + uint32_t CR = 0; + if (r == 0xFFFFFFFFFFFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpgt_ps(V1, V2); + int iTest = _mm_movemask_ps(vTemp) & 3; + uint32_t CR = 0; + if (iTest == 3) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2GreaterOrEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] >= V2.vector4_f32[0]) && (V1.vector4_f32[1] >= V2.vector4_f32[1])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vcge_f32(vget_low_f32(V1), vget_low_f32(V2)); + return (vget_lane_u64(vreinterpret_u64_u32(vTemp), 0) == 0xFFFFFFFFFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpge_ps(V1, V2); + return (((_mm_movemask_ps(vTemp) & 3) == 3) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector2GreaterOrEqualR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + uint32_t CR = 0; + if ((V1.vector4_f32[0] >= V2.vector4_f32[0]) && + (V1.vector4_f32[1] >= V2.vector4_f32[1])) + { + CR = XM_CRMASK_CR6TRUE; + } + else if ((V1.vector4_f32[0] < V2.vector4_f32[0]) && + (V1.vector4_f32[1] < V2.vector4_f32[1])) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vcge_f32(vget_low_f32(V1), vget_low_f32(V2)); + uint64_t r = vget_lane_u64(vreinterpret_u64_u32(vTemp), 0); + uint32_t CR = 0; + if (r == 0xFFFFFFFFFFFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpge_ps(V1, V2); + int iTest = _mm_movemask_ps(vTemp) & 3; + uint32_t CR = 0; + if (iTest == 3) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2Less +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] < V2.vector4_f32[0]) && (V1.vector4_f32[1] < V2.vector4_f32[1])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vclt_f32(vget_low_f32(V1), vget_low_f32(V2)); + return (vget_lane_u64(vreinterpret_u64_u32(vTemp), 0) == 0xFFFFFFFFFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmplt_ps(V1, V2); + return (((_mm_movemask_ps(vTemp) & 3) == 3) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2LessOrEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] <= V2.vector4_f32[0]) && (V1.vector4_f32[1] <= V2.vector4_f32[1])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vTemp = vcle_f32(vget_low_f32(V1), vget_low_f32(V2)); + return (vget_lane_u64(vreinterpret_u64_u32(vTemp), 0) == 0xFFFFFFFFFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmple_ps(V1, V2); + return (((_mm_movemask_ps(vTemp) & 3) == 3) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2InBounds +( + FXMVECTOR V, + FXMVECTOR Bounds +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V.vector4_f32[0] <= Bounds.vector4_f32[0] && V.vector4_f32[0] >= -Bounds.vector4_f32[0]) && + (V.vector4_f32[1] <= Bounds.vector4_f32[1] && V.vector4_f32[1] >= -Bounds.vector4_f32[1])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + float32x2_t B = vget_low_f32(Bounds); + // Test if less than or equal + uint32x2_t ivTemp1 = vcle_f32(VL, B); + // Negate the bounds + float32x2_t vTemp2 = vneg_f32(B); + // Test if greater or equal (Reversed) + uint32x2_t ivTemp2 = vcle_f32(vTemp2, VL); + // Blend answers + ivTemp1 = vand_u32(ivTemp1, ivTemp2); + // x and y in bounds? + return (vget_lane_u64(vreinterpret_u64_u32(ivTemp1), 0) == 0xFFFFFFFFFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + // Test if less than or equal + XMVECTOR vTemp1 = _mm_cmple_ps(V, Bounds); + // Negate the bounds + XMVECTOR vTemp2 = _mm_mul_ps(Bounds, g_XMNegativeOne); + // Test if greater or equal (Reversed) + vTemp2 = _mm_cmple_ps(vTemp2, V); + // Blend answers + vTemp1 = _mm_and_ps(vTemp1, vTemp2); + // x and y in bounds? (z and w are don't care) + return (((_mm_movemask_ps(vTemp1) & 0x3) == 0x3) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(push) +#pragma float_control(precise, on) +#endif + +inline bool XM_CALLCONV XMVector2IsNaN(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (XMISNAN(V.vector4_f32[0]) || + XMISNAN(V.vector4_f32[1])); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + #if defined(__clang__) && defined(__FINITE_MATH_ONLY__) + return isnan(vgetq_lane_f32(V, 0)) || isnan(vgetq_lane_f32(V, 1)); + #else + float32x2_t VL = vget_low_f32(V); + // Test against itself. NaN is always not equal + uint32x2_t vTempNan = vceq_f32(VL, VL); + // If x or y are NaN, the mask is zero + return (vget_lane_u64(vreinterpret_u64_u32(vTempNan), 0) != 0xFFFFFFFFFFFFFFFFU); + #endif +#elif defined(_XM_SSE_INTRINSICS_) + #if defined(__clang__) && defined(__FINITE_MATH_ONLY__) + XM_ALIGNED_DATA(16) float tmp[4]; + _mm_store_ps(tmp, V); + return isnan(tmp[0]) || isnan(tmp[1]); + #else + // Test against itself. NaN is always not equal + XMVECTOR vTempNan = _mm_cmpneq_ps(V, V); + // If x or y are NaN, the mask is non-zero + return ((_mm_movemask_ps(vTempNan) & 3) != 0); + #endif +#endif +} + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(pop) +#endif + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector2IsInfinite(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + return (XMISINF(V.vector4_f32[0]) || + XMISINF(V.vector4_f32[1])); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Mask off the sign bit + uint32x2_t vTemp = vand_u32(vget_low_u32(vreinterpretq_u32_f32(V)), vget_low_u32(g_XMAbsMask)); + // Compare to infinity + vTemp = vceq_f32(vreinterpret_f32_u32(vTemp), vget_low_f32(g_XMInfinity)); + // If any are infinity, the signs are true. + return vget_lane_u64(vreinterpret_u64_u32(vTemp), 0) != 0; +#elif defined(_XM_SSE_INTRINSICS_) + // Mask off the sign bit + __m128 vTemp = _mm_and_ps(V, g_XMAbsMask); + // Compare to infinity + vTemp = _mm_cmpeq_ps(vTemp, g_XMInfinity); + // If x or z are infinity, the signs are true. + return ((_mm_movemask_ps(vTemp) & 3) != 0); +#endif +} + +//------------------------------------------------------------------------------ +// Computation operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2Dot +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result; + Result.f[0] = + Result.f[1] = + Result.f[2] = + Result.f[3] = V1.vector4_f32[0] * V2.vector4_f32[0] + V1.vector4_f32[1] * V2.vector4_f32[1]; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Perform the dot product on x and y + float32x2_t vTemp = vmul_f32(vget_low_f32(V1), vget_low_f32(V2)); + vTemp = vpadd_f32(vTemp, vTemp); + return vcombine_f32(vTemp, vTemp); +#elif defined(_XM_SSE4_INTRINSICS_) + return _mm_dp_ps(V1, V2, 0x3f); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vDot = _mm_mul_ps(V1, V2); + vDot = _mm_hadd_ps(vDot, vDot); + vDot = _mm_moveldup_ps(vDot); + return vDot; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x and y + XMVECTOR vLengthSq = _mm_mul_ps(V1, V2); + // vTemp has y splatted + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 1, 1, 1)); + // x+y + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2Cross +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + // [ V1.x*V2.y - V1.y*V2.x, V1.x*V2.y - V1.y*V2.x ] + +#if defined(_XM_NO_INTRINSICS_) + float fCross = (V1.vector4_f32[0] * V2.vector4_f32[1]) - (V1.vector4_f32[1] * V2.vector4_f32[0]); + XMVECTORF32 vResult; + vResult.f[0] = + vResult.f[1] = + vResult.f[2] = + vResult.f[3] = fCross; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Negate = { { { 1.f, -1.f, 0, 0 } } }; + + float32x2_t vTemp = vmul_f32(vget_low_f32(V1), vrev64_f32(vget_low_f32(V2))); + vTemp = vmul_f32(vTemp, vget_low_f32(Negate)); + vTemp = vpadd_f32(vTemp, vTemp); + return vcombine_f32(vTemp, vTemp); +#elif defined(_XM_SSE_INTRINSICS_) + // Swap x and y + XMVECTOR vResult = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 1, 0, 1)); + // Perform the muls + vResult = _mm_mul_ps(vResult, V1); + // Splat y + XMVECTOR vTemp = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(1, 1, 1, 1)); + // Sub the values + vResult = _mm_sub_ss(vResult, vTemp); + // Splat the cross product + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(0, 0, 0, 0)); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2LengthSq(FXMVECTOR V) noexcept +{ + return XMVector2Dot(V, V); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2ReciprocalLengthEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + Result = XMVector2LengthSq(V); + Result = XMVectorReciprocalSqrtEst(Result); + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + // Dot2 + float32x2_t vTemp = vmul_f32(VL, VL); + vTemp = vpadd_f32(vTemp, vTemp); + // Reciprocal sqrt (estimate) + vTemp = vrsqrte_f32(vTemp); + return vcombine_f32(vTemp, vTemp); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0x3f); + return _mm_rsqrt_ps(vTemp); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + XMVECTOR vTemp = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_rsqrt_ss(vTemp); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x and y + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has y splatted + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 1, 1, 1)); + // x+y + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vLengthSq = _mm_rsqrt_ss(vLengthSq); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2ReciprocalLength(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + Result = XMVector2LengthSq(V); + Result = XMVectorReciprocalSqrt(Result); + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + // Dot2 + float32x2_t vTemp = vmul_f32(VL, VL); + vTemp = vpadd_f32(vTemp, vTemp); + // Reciprocal sqrt + float32x2_t S0 = vrsqrte_f32(vTemp); + float32x2_t P0 = vmul_f32(vTemp, S0); + float32x2_t R0 = vrsqrts_f32(P0, S0); + float32x2_t S1 = vmul_f32(S0, R0); + float32x2_t P1 = vmul_f32(vTemp, S1); + float32x2_t R1 = vrsqrts_f32(P1, S1); + float32x2_t Result = vmul_f32(S1, R1); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0x3f); + XMVECTOR vLengthSq = _mm_sqrt_ps(vTemp); + return _mm_div_ps(g_XMOne, vLengthSq); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + XMVECTOR vTemp = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_sqrt_ss(vTemp); + vLengthSq = _mm_div_ss(g_XMOne, vLengthSq); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x and y + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has y splatted + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 1, 1, 1)); + // x+y + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vLengthSq = _mm_sqrt_ss(vLengthSq); + vLengthSq = _mm_div_ss(g_XMOne, vLengthSq); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2LengthEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + Result = XMVector2LengthSq(V); + Result = XMVectorSqrtEst(Result); + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + // Dot2 + float32x2_t vTemp = vmul_f32(VL, VL); + vTemp = vpadd_f32(vTemp, vTemp); + const float32x2_t zero = vdup_n_f32(0); + uint32x2_t VEqualsZero = vceq_f32(vTemp, zero); + // Sqrt (estimate) + float32x2_t Result = vrsqrte_f32(vTemp); + Result = vmul_f32(vTemp, Result); + Result = vbsl_f32(VEqualsZero, zero, Result); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0x3f); + return _mm_sqrt_ps(vTemp); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + XMVECTOR vTemp = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_sqrt_ss(vTemp); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x and y + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has y splatted + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 1, 1, 1)); + // x+y + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vLengthSq = _mm_sqrt_ss(vLengthSq); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2Length(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + Result = XMVector2LengthSq(V); + Result = XMVectorSqrt(Result); + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + // Dot2 + float32x2_t vTemp = vmul_f32(VL, VL); + vTemp = vpadd_f32(vTemp, vTemp); + const float32x2_t zero = vdup_n_f32(0); + uint32x2_t VEqualsZero = vceq_f32(vTemp, zero); + // Sqrt + float32x2_t S0 = vrsqrte_f32(vTemp); + float32x2_t P0 = vmul_f32(vTemp, S0); + float32x2_t R0 = vrsqrts_f32(P0, S0); + float32x2_t S1 = vmul_f32(S0, R0); + float32x2_t P1 = vmul_f32(vTemp, S1); + float32x2_t R1 = vrsqrts_f32(P1, S1); + float32x2_t Result = vmul_f32(S1, R1); + Result = vmul_f32(vTemp, Result); + Result = vbsl_f32(VEqualsZero, zero, Result); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0x3f); + return _mm_sqrt_ps(vTemp); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + XMVECTOR vTemp = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_sqrt_ss(vTemp); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x and y + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has y splatted + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 1, 1, 1)); + // x+y + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + vLengthSq = _mm_sqrt_ps(vLengthSq); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ +// XMVector2NormalizeEst uses a reciprocal estimate and +// returns QNaN on zero and infinite vectors. + +inline XMVECTOR XM_CALLCONV XMVector2NormalizeEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + Result = XMVector2ReciprocalLength(V); + Result = XMVectorMultiply(V, Result); + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + // Dot2 + float32x2_t vTemp = vmul_f32(VL, VL); + vTemp = vpadd_f32(vTemp, vTemp); + // Reciprocal sqrt (estimate) + vTemp = vrsqrte_f32(vTemp); + // Normalize + float32x2_t Result = vmul_f32(VL, vTemp); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0x3f); + XMVECTOR vResult = _mm_rsqrt_ps(vTemp); + return _mm_mul_ps(vResult, V); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_rsqrt_ss(vLengthSq); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + vLengthSq = _mm_mul_ps(vLengthSq, V); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x and y + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has y splatted + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 1, 1, 1)); + // x+y + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vLengthSq = _mm_rsqrt_ss(vLengthSq); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + vLengthSq = _mm_mul_ps(vLengthSq, V); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2Normalize(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR vResult = XMVector2Length(V); + float fLength = vResult.vector4_f32[0]; + + // Prevent divide by zero + if (fLength > 0) + { + fLength = 1.0f / fLength; + } + + vResult.vector4_f32[0] = V.vector4_f32[0] * fLength; + vResult.vector4_f32[1] = V.vector4_f32[1] * fLength; + vResult.vector4_f32[2] = V.vector4_f32[2] * fLength; + vResult.vector4_f32[3] = V.vector4_f32[3] * fLength; + return vResult; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + // Dot2 + float32x2_t vTemp = vmul_f32(VL, VL); + vTemp = vpadd_f32(vTemp, vTemp); + uint32x2_t VEqualsZero = vceq_f32(vTemp, vdup_n_f32(0)); + uint32x2_t VEqualsInf = vceq_f32(vTemp, vget_low_f32(g_XMInfinity)); + // Reciprocal sqrt (2 iterations of Newton-Raphson) + float32x2_t S0 = vrsqrte_f32(vTemp); + float32x2_t P0 = vmul_f32(vTemp, S0); + float32x2_t R0 = vrsqrts_f32(P0, S0); + float32x2_t S1 = vmul_f32(S0, R0); + float32x2_t P1 = vmul_f32(vTemp, S1); + float32x2_t R1 = vrsqrts_f32(P1, S1); + vTemp = vmul_f32(S1, R1); + // Normalize + float32x2_t Result = vmul_f32(VL, vTemp); + Result = vbsl_f32(VEqualsZero, vdup_n_f32(0), Result); + Result = vbsl_f32(VEqualsInf, vget_low_f32(g_XMQNaN), Result); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vLengthSq = _mm_dp_ps(V, V, 0x3f); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Create zero with a single instruction + XMVECTOR vZeroMask = _mm_setzero_ps(); + // Test for a divide by zero (Must be FP to detect -0.0) + vZeroMask = _mm_cmpneq_ps(vZeroMask, vResult); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Reciprocal mul to perform the normalization + vResult = _mm_div_ps(V, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vZeroMask); + // Select qnan or result based on infinite length + XMVECTOR vTemp1 = _mm_andnot_ps(vLengthSq, g_XMQNaN); + XMVECTOR vTemp2 = _mm_and_ps(vResult, vLengthSq); + vResult = _mm_or_ps(vTemp1, vTemp2); + return vResult; +#elif defined(_XM_SSE3_INTRINSICS_) + // Perform the dot product on x and y only + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_moveldup_ps(vLengthSq); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Create zero with a single instruction + XMVECTOR vZeroMask = _mm_setzero_ps(); + // Test for a divide by zero (Must be FP to detect -0.0) + vZeroMask = _mm_cmpneq_ps(vZeroMask, vResult); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Reciprocal mul to perform the normalization + vResult = _mm_div_ps(V, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vZeroMask); + // Select qnan or result based on infinite length + XMVECTOR vTemp1 = _mm_andnot_ps(vLengthSq, g_XMQNaN); + XMVECTOR vTemp2 = _mm_and_ps(vResult, vLengthSq); + vResult = _mm_or_ps(vTemp1, vTemp2); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x and y only + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 1, 1, 1)); + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Create zero with a single instruction + XMVECTOR vZeroMask = _mm_setzero_ps(); + // Test for a divide by zero (Must be FP to detect -0.0) + vZeroMask = _mm_cmpneq_ps(vZeroMask, vResult); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Reciprocal mul to perform the normalization + vResult = _mm_div_ps(V, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vZeroMask); + // Select qnan or result based on infinite length + XMVECTOR vTemp1 = _mm_andnot_ps(vLengthSq, g_XMQNaN); + XMVECTOR vTemp2 = _mm_and_ps(vResult, vLengthSq); + vResult = _mm_or_ps(vTemp1, vTemp2); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2ClampLength +( + FXMVECTOR V, + float LengthMin, + float LengthMax +) noexcept +{ + XMVECTOR ClampMax = XMVectorReplicate(LengthMax); + XMVECTOR ClampMin = XMVectorReplicate(LengthMin); + return XMVector2ClampLengthV(V, ClampMin, ClampMax); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2ClampLengthV +( + FXMVECTOR V, + FXMVECTOR LengthMin, + FXMVECTOR LengthMax +) noexcept +{ + assert((XMVectorGetY(LengthMin) == XMVectorGetX(LengthMin))); + assert((XMVectorGetY(LengthMax) == XMVectorGetX(LengthMax))); + assert(XMVector2GreaterOrEqual(LengthMin, g_XMZero)); + assert(XMVector2GreaterOrEqual(LengthMax, g_XMZero)); + assert(XMVector2GreaterOrEqual(LengthMax, LengthMin)); + + XMVECTOR LengthSq = XMVector2LengthSq(V); + + const XMVECTOR Zero = XMVectorZero(); + + XMVECTOR RcpLength = XMVectorReciprocalSqrt(LengthSq); + + XMVECTOR InfiniteLength = XMVectorEqualInt(LengthSq, g_XMInfinity.v); + XMVECTOR ZeroLength = XMVectorEqual(LengthSq, Zero); + + XMVECTOR Length = XMVectorMultiply(LengthSq, RcpLength); + + XMVECTOR Normal = XMVectorMultiply(V, RcpLength); + + XMVECTOR Select = XMVectorEqualInt(InfiniteLength, ZeroLength); + Length = XMVectorSelect(LengthSq, Length, Select); + Normal = XMVectorSelect(LengthSq, Normal, Select); + + XMVECTOR ControlMax = XMVectorGreater(Length, LengthMax); + XMVECTOR ControlMin = XMVectorLess(Length, LengthMin); + + XMVECTOR ClampLength = XMVectorSelect(Length, LengthMax, ControlMax); + ClampLength = XMVectorSelect(ClampLength, LengthMin, ControlMin); + + XMVECTOR Result = XMVectorMultiply(Normal, ClampLength); + + // Preserve the original vector (with no precision loss) if the length falls within the given range + XMVECTOR Control = XMVectorEqualInt(ControlMax, ControlMin); + Result = XMVectorSelect(Result, V, Control); + + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2Reflect +( + FXMVECTOR Incident, + FXMVECTOR Normal +) noexcept +{ + // Result = Incident - (2 * dot(Incident, Normal)) * Normal + + XMVECTOR Result; + Result = XMVector2Dot(Incident, Normal); + Result = XMVectorAdd(Result, Result); + Result = XMVectorNegativeMultiplySubtract(Result, Normal, Incident); + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2Refract +( + FXMVECTOR Incident, + FXMVECTOR Normal, + float RefractionIndex +) noexcept +{ + XMVECTOR Index = XMVectorReplicate(RefractionIndex); + return XMVector2RefractV(Incident, Normal, Index); +} + +//------------------------------------------------------------------------------ + +// Return the refraction of a 2D vector +inline XMVECTOR XM_CALLCONV XMVector2RefractV +( + FXMVECTOR Incident, + FXMVECTOR Normal, + FXMVECTOR RefractionIndex +) noexcept +{ + // Result = RefractionIndex * Incident - Normal * (RefractionIndex * dot(Incident, Normal) + + // sqrt(1 - RefractionIndex * RefractionIndex * (1 - dot(Incident, Normal) * dot(Incident, Normal)))) + +#if defined(_XM_NO_INTRINSICS_) + + float IDotN = (Incident.vector4_f32[0] * Normal.vector4_f32[0]) + (Incident.vector4_f32[1] * Normal.vector4_f32[1]); + // R = 1.0f - RefractionIndex * RefractionIndex * (1.0f - IDotN * IDotN) + float RY = 1.0f - (IDotN * IDotN); + float RX = 1.0f - (RY * RefractionIndex.vector4_f32[0] * RefractionIndex.vector4_f32[0]); + RY = 1.0f - (RY * RefractionIndex.vector4_f32[1] * RefractionIndex.vector4_f32[1]); + if (RX >= 0.0f) + { + RX = (RefractionIndex.vector4_f32[0] * Incident.vector4_f32[0]) - (Normal.vector4_f32[0] * ((RefractionIndex.vector4_f32[0] * IDotN) + sqrtf(RX))); + } + else + { + RX = 0.0f; + } + if (RY >= 0.0f) + { + RY = (RefractionIndex.vector4_f32[1] * Incident.vector4_f32[1]) - (Normal.vector4_f32[1] * ((RefractionIndex.vector4_f32[1] * IDotN) + sqrtf(RY))); + } + else + { + RY = 0.0f; + } + + XMVECTOR vResult; + vResult.vector4_f32[0] = RX; + vResult.vector4_f32[1] = RY; + vResult.vector4_f32[2] = 0.0f; + vResult.vector4_f32[3] = 0.0f; + return vResult; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t IL = vget_low_f32(Incident); + float32x2_t NL = vget_low_f32(Normal); + float32x2_t RIL = vget_low_f32(RefractionIndex); + // Get the 2D Dot product of Incident-Normal + float32x2_t vTemp = vmul_f32(IL, NL); + float32x2_t IDotN = vpadd_f32(vTemp, vTemp); + // vTemp = 1.0f - RefractionIndex * RefractionIndex * (1.0f - IDotN * IDotN) + vTemp = vmls_f32(vget_low_f32(g_XMOne), IDotN, IDotN); + vTemp = vmul_f32(vTemp, RIL); + vTemp = vmls_f32(vget_low_f32(g_XMOne), vTemp, RIL); + // If any terms are <=0, sqrt() will fail, punt to zero + uint32x2_t vMask = vcgt_f32(vTemp, vget_low_f32(g_XMZero)); + // Sqrt(vTemp) + float32x2_t S0 = vrsqrte_f32(vTemp); + float32x2_t P0 = vmul_f32(vTemp, S0); + float32x2_t R0 = vrsqrts_f32(P0, S0); + float32x2_t S1 = vmul_f32(S0, R0); + float32x2_t P1 = vmul_f32(vTemp, S1); + float32x2_t R1 = vrsqrts_f32(P1, S1); + float32x2_t S2 = vmul_f32(S1, R1); + vTemp = vmul_f32(vTemp, S2); + // R = RefractionIndex * IDotN + sqrt(R) + vTemp = vmla_f32(vTemp, RIL, IDotN); + // Result = RefractionIndex * Incident - Normal * R + float32x2_t vResult = vmul_f32(RIL, IL); + vResult = vmls_f32(vResult, vTemp, NL); + vResult = vreinterpret_f32_u32(vand_u32(vreinterpret_u32_f32(vResult), vMask)); + return vcombine_f32(vResult, vResult); +#elif defined(_XM_SSE_INTRINSICS_) + // Result = RefractionIndex * Incident - Normal * (RefractionIndex * dot(Incident, Normal) + + // sqrt(1 - RefractionIndex * RefractionIndex * (1 - dot(Incident, Normal) * dot(Incident, Normal)))) + // Get the 2D Dot product of Incident-Normal + XMVECTOR IDotN = XMVector2Dot(Incident, Normal); + // vTemp = 1.0f - RefractionIndex * RefractionIndex * (1.0f - IDotN * IDotN) + XMVECTOR vTemp = XM_FNMADD_PS(IDotN, IDotN, g_XMOne); + vTemp = _mm_mul_ps(vTemp, RefractionIndex); + vTemp = XM_FNMADD_PS(vTemp, RefractionIndex, g_XMOne); + // If any terms are <=0, sqrt() will fail, punt to zero + XMVECTOR vMask = _mm_cmpgt_ps(vTemp, g_XMZero); + // R = RefractionIndex * IDotN + sqrt(R) + vTemp = _mm_sqrt_ps(vTemp); + vTemp = XM_FMADD_PS(RefractionIndex, IDotN, vTemp); + // Result = RefractionIndex * Incident - Normal * R + XMVECTOR vResult = _mm_mul_ps(RefractionIndex, Incident); + vResult = XM_FNMADD_PS(vTemp, Normal, vResult); + vResult = _mm_and_ps(vResult, vMask); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2Orthogonal(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + -V.vector4_f32[1], + V.vector4_f32[0], + 0.f, + 0.f + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Negate = { { { -1.f, 1.f, 0, 0 } } }; + const float32x2_t zero = vdup_n_f32(0); + + float32x2_t VL = vget_low_f32(V); + float32x2_t Result = vmul_f32(vrev64_f32(VL), vget_low_f32(Negate)); + return vcombine_f32(Result, zero); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 2, 0, 1)); + vResult = _mm_mul_ps(vResult, g_XMNegateX); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2AngleBetweenNormalsEst +( + FXMVECTOR N1, + FXMVECTOR N2 +) noexcept +{ + XMVECTOR Result = XMVector2Dot(N1, N2); + Result = XMVectorClamp(Result, g_XMNegativeOne.v, g_XMOne.v); + Result = XMVectorACosEst(Result); + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2AngleBetweenNormals +( + FXMVECTOR N1, + FXMVECTOR N2 +) noexcept +{ + XMVECTOR Result = XMVector2Dot(N1, N2); + Result = XMVectorClamp(Result, g_XMNegativeOne, g_XMOne); + Result = XMVectorACos(Result); + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2AngleBetweenVectors +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + XMVECTOR L1 = XMVector2ReciprocalLength(V1); + XMVECTOR L2 = XMVector2ReciprocalLength(V2); + + XMVECTOR Dot = XMVector2Dot(V1, V2); + + L1 = XMVectorMultiply(L1, L2); + + XMVECTOR CosAngle = XMVectorMultiply(Dot, L1); + CosAngle = XMVectorClamp(CosAngle, g_XMNegativeOne.v, g_XMOne.v); + + return XMVectorACos(CosAngle); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2LinePointDistance +( + FXMVECTOR LinePoint1, + FXMVECTOR LinePoint2, + FXMVECTOR Point +) noexcept +{ + // Given a vector PointVector from LinePoint1 to Point and a vector + // LineVector from LinePoint1 to LinePoint2, the scaled distance + // PointProjectionScale from LinePoint1 to the perpendicular projection + // of PointVector onto the line is defined as: + // + // PointProjectionScale = dot(PointVector, LineVector) / LengthSq(LineVector) + + XMVECTOR PointVector = XMVectorSubtract(Point, LinePoint1); + XMVECTOR LineVector = XMVectorSubtract(LinePoint2, LinePoint1); + + XMVECTOR LengthSq = XMVector2LengthSq(LineVector); + + XMVECTOR PointProjectionScale = XMVector2Dot(PointVector, LineVector); + PointProjectionScale = XMVectorDivide(PointProjectionScale, LengthSq); + + XMVECTOR DistanceVector = XMVectorMultiply(LineVector, PointProjectionScale); + DistanceVector = XMVectorSubtract(PointVector, DistanceVector); + + return XMVector2Length(DistanceVector); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2IntersectLine +( + FXMVECTOR Line1Point1, + FXMVECTOR Line1Point2, + FXMVECTOR Line2Point1, + GXMVECTOR Line2Point2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) || defined(_XM_ARM_NEON_INTRINSICS_) + + XMVECTOR V1 = XMVectorSubtract(Line1Point2, Line1Point1); + XMVECTOR V2 = XMVectorSubtract(Line2Point2, Line2Point1); + XMVECTOR V3 = XMVectorSubtract(Line1Point1, Line2Point1); + + XMVECTOR C1 = XMVector2Cross(V1, V2); + XMVECTOR C2 = XMVector2Cross(V2, V3); + + XMVECTOR Result; + const XMVECTOR Zero = XMVectorZero(); + if (XMVector2NearEqual(C1, Zero, g_XMEpsilon.v)) + { + if (XMVector2NearEqual(C2, Zero, g_XMEpsilon.v)) + { + // Coincident + Result = g_XMInfinity.v; + } + else + { + // Parallel + Result = g_XMQNaN.v; + } + } + else + { + // Intersection point = Line1Point1 + V1 * (C2 / C1) + XMVECTOR Scale = XMVectorReciprocal(C1); + Scale = XMVectorMultiply(C2, Scale); + Result = XMVectorMultiplyAdd(V1, Scale, Line1Point1); + } + + return Result; + +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR V1 = _mm_sub_ps(Line1Point2, Line1Point1); + XMVECTOR V2 = _mm_sub_ps(Line2Point2, Line2Point1); + XMVECTOR V3 = _mm_sub_ps(Line1Point1, Line2Point1); + // Generate the cross products + XMVECTOR C1 = XMVector2Cross(V1, V2); + XMVECTOR C2 = XMVector2Cross(V2, V3); + // If C1 is not close to epsilon, use the calculated value + XMVECTOR vResultMask = _mm_setzero_ps(); + vResultMask = _mm_sub_ps(vResultMask, C1); + vResultMask = _mm_max_ps(vResultMask, C1); + // 0xFFFFFFFF if the calculated value is to be used + vResultMask = _mm_cmpgt_ps(vResultMask, g_XMEpsilon); + // If C1 is close to epsilon, which fail type is it? INFINITY or NAN? + XMVECTOR vFailMask = _mm_setzero_ps(); + vFailMask = _mm_sub_ps(vFailMask, C2); + vFailMask = _mm_max_ps(vFailMask, C2); + vFailMask = _mm_cmple_ps(vFailMask, g_XMEpsilon); + XMVECTOR vFail = _mm_and_ps(vFailMask, g_XMInfinity); + vFailMask = _mm_andnot_ps(vFailMask, g_XMQNaN); + // vFail is NAN or INF + vFail = _mm_or_ps(vFail, vFailMask); + // Intersection point = Line1Point1 + V1 * (C2 / C1) + XMVECTOR vResult = _mm_div_ps(C2, C1); + vResult = XM_FMADD_PS(vResult, V1, Line1Point1); + // Use result, or failure value + vResult = _mm_and_ps(vResult, vResultMask); + vResultMask = _mm_andnot_ps(vResultMask, vFail); + vResult = _mm_or_ps(vResult, vResultMask); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2Transform +( + FXMVECTOR V, + FXMMATRIX M +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiplyAdd(Y, M.r[1], M.r[3]); + Result = XMVectorMultiplyAdd(X, M.r[0], Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + float32x4_t Result = vmlaq_lane_f32(M.r[3], M.r[1], VL, 1); // Y + return vmlaq_lane_f32(Result, M.r[0], VL, 0); // X +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); // Y + vResult = XM_FMADD_PS(vResult, M.r[1], M.r[3]); + XMVECTOR vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); // X + vResult = XM_FMADD_PS(vTemp, M.r[0], vResult); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline XMFLOAT4* XM_CALLCONV XMVector2TransformStream +( + XMFLOAT4* pOutputStream, + size_t OutputStride, + const XMFLOAT2* pInputStream, + size_t InputStride, + size_t VectorCount, + FXMMATRIX M +) noexcept +{ + assert(pOutputStream != nullptr); + assert(pInputStream != nullptr); + + assert(InputStride >= sizeof(XMFLOAT2)); + _Analysis_assume_(InputStride >= sizeof(XMFLOAT2)); + + assert(OutputStride >= sizeof(XMFLOAT4)); + _Analysis_assume_(OutputStride >= sizeof(XMFLOAT4)); + +#if defined(_XM_NO_INTRINSICS_) + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row3 = M.r[3]; + + for (size_t i = 0; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat2(reinterpret_cast(pInputVector)); + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiplyAdd(Y, row1, row3); + Result = XMVectorMultiplyAdd(X, row0, Result); + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 26015, "PREfast noise: Esp:1307" ) +#endif + + XMStoreFloat4(reinterpret_cast(pOutputVector), Result); + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + + pInputVector += InputStride; + pOutputVector += OutputStride; + } + + return pOutputStream; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row3 = M.r[3]; + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if ((InputStride == sizeof(XMFLOAT2)) && (OutputStride == sizeof(XMFLOAT4))) + { + for (size_t j = 0; j < four; ++j) + { + float32x4x2_t V = vld2q_f32(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + float32x2_t r3 = vget_low_f32(row3); + float32x2_t r = vget_low_f32(row0); + XMVECTOR vResult0 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), V.val[0], r, 0); // Ax+M + XMVECTOR vResult1 = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), V.val[0], r, 1); // Bx+N + + XM_PREFETCH(pInputVector); + + r3 = vget_high_f32(row3); + r = vget_high_f32(row0); + XMVECTOR vResult2 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), V.val[0], r, 0); // Cx+O + XMVECTOR vResult3 = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), V.val[0], r, 1); // Dx+P + + XM_PREFETCH(pInputVector + XM_CACHE_LINE_SIZE); + + r = vget_low_f32(row1); + vResult0 = vmlaq_lane_f32(vResult0, V.val[1], r, 0); // Ax+Ey+M + vResult1 = vmlaq_lane_f32(vResult1, V.val[1], r, 1); // Bx+Fy+N + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 2)); + + r = vget_high_f32(row1); + vResult2 = vmlaq_lane_f32(vResult2, V.val[1], r, 0); // Cx+Gy+O + vResult3 = vmlaq_lane_f32(vResult3, V.val[1], r, 1); // Dx+Hy+P + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 3)); + + float32x4x4_t R; + R.val[0] = vResult0; + R.val[1] = vResult1; + R.val[2] = vResult2; + R.val[3] = vResult3; + + vst4q_f32(reinterpret_cast(pOutputVector), R); + pOutputVector += sizeof(XMFLOAT4) * 4; + + i += 4; + } + } + } + + for (; i < VectorCount; i++) + { + float32x2_t V = vld1_f32(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR vResult = vmlaq_lane_f32(row3, row0, V, 0); // X + vResult = vmlaq_lane_f32(vResult, row1, V, 1); // Y + + vst1q_f32(reinterpret_cast(pOutputVector), vResult); + pOutputVector += OutputStride; + } + + return pOutputStream; +#elif defined(_XM_AVX2_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + __m256 row0 = _mm256_broadcast_ps(&M.r[0]); + __m256 row1 = _mm256_broadcast_ps(&M.r[1]); + __m256 row3 = _mm256_broadcast_ps(&M.r[3]); + + if (InputStride == sizeof(XMFLOAT2)) + { + if (OutputStride == sizeof(XMFLOAT4)) + { + if (!(reinterpret_cast(pOutputStream) & 0x1F)) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + __m256 Y2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + __m256 X2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 Y1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 X1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + + __m256 vTempB = _mm256_fmadd_ps(Y1, row1, row3); + __m256 vTempB2 = _mm256_fmadd_ps(Y2, row1, row3); + __m256 vTempA = _mm256_mul_ps(X1, row0); + __m256 vTempA2 = _mm256_mul_ps(X2, row0); + vTempA = _mm256_add_ps(vTempA, vTempB); + vTempA2 = _mm256_add_ps(vTempA2, vTempB2); + + X1 = _mm256_insertf128_ps(vTempA, _mm256_castps256_ps128(vTempA2), 1); + XM256_STREAM_PS(reinterpret_cast(pOutputVector), X1); + pOutputVector += sizeof(XMFLOAT4) * 2; + + X2 = _mm256_insertf128_ps(vTempA2, _mm256_extractf128_ps(vTempA, 1), 0); + XM256_STREAM_PS(reinterpret_cast(pOutputVector), X2); + pOutputVector += sizeof(XMFLOAT4) * 2; + + i += 4; + } + } + else + { + // Packed input, packed output + for (size_t j = 0; j < four; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + __m256 Y2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + __m256 X2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 Y1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 X1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + + __m256 vTempB = _mm256_fmadd_ps(Y1, row1, row3); + __m256 vTempB2 = _mm256_fmadd_ps(Y2, row1, row3); + __m256 vTempA = _mm256_mul_ps(X1, row0); + __m256 vTempA2 = _mm256_mul_ps(X2, row0); + vTempA = _mm256_add_ps(vTempA, vTempB); + vTempA2 = _mm256_add_ps(vTempA2, vTempB2); + + X1 = _mm256_insertf128_ps(vTempA, _mm256_castps256_ps128(vTempA2), 1); + _mm256_storeu_ps(reinterpret_cast(pOutputVector), X1); + pOutputVector += sizeof(XMFLOAT4) * 2; + + X2 = _mm256_insertf128_ps(vTempA2, _mm256_extractf128_ps(vTempA, 1), 0); + _mm256_storeu_ps(reinterpret_cast(pOutputVector), X2); + pOutputVector += sizeof(XMFLOAT4) * 2; + + i += 4; + } + } + } + else + { + // Packed input, unpacked output + for (size_t j = 0; j < four; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + __m256 Y2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + __m256 X2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 Y1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 X1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + + __m256 vTempB = _mm256_fmadd_ps(Y1, row1, row3); + __m256 vTempB2 = _mm256_fmadd_ps(Y2, row1, row3); + __m256 vTempA = _mm256_mul_ps(X1, row0); + __m256 vTempA2 = _mm256_mul_ps(X2, row0); + vTempA = _mm256_add_ps(vTempA, vTempB); + vTempA2 = _mm256_add_ps(vTempA2, vTempB2); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), _mm256_castps256_ps128(vTempA)); + pOutputVector += OutputStride; + + _mm_storeu_ps(reinterpret_cast(pOutputVector), _mm256_castps256_ps128(vTempA2)); + pOutputVector += OutputStride; + + _mm_storeu_ps(reinterpret_cast(pOutputVector), _mm256_extractf128_ps(vTempA, 1)); + pOutputVector += OutputStride; + + _mm_storeu_ps(reinterpret_cast(pOutputVector), _mm256_extractf128_ps(vTempA2, 1)); + pOutputVector += OutputStride; + + i += 4; + } + } + } + } + + if (i < VectorCount) + { + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row3 = M.r[3]; + + for (; i < VectorCount; i++) + { + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pInputVector))); + pInputVector += InputStride; + + XMVECTOR Y = XM_PERMUTE_PS(xy, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(xy, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + } + } + + XM_SFENCE(); + + return pOutputStream; +#elif defined(_XM_SSE_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row3 = M.r[3]; + + size_t i = 0; + size_t two = VectorCount >> 1; + if (two > 0) + { + if (InputStride == sizeof(XMFLOAT2)) + { + if (!(reinterpret_cast(pOutputStream) & 0xF) && !(OutputStride & 0xF)) + { + // Packed input, aligned output + for (size_t j = 0; j < two; ++j) + { + XMVECTOR V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 2; + + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + X = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + + vTemp = XM_FMADD_PS(Y, row1, row3); + vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + i += 2; + } + } + else + { + // Packed input, unaligned output + for (size_t j = 0; j < two; ++j) + { + XMVECTOR V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 2; + + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + X = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + + vTemp = XM_FMADD_PS(Y, row1, row3); + vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + i += 2; + } + } + } + } + + if (!(reinterpret_cast(pInputVector) & 0xF) && !(InputStride & 0xF)) + { + if (!(reinterpret_cast(pOutputStream) & 0xF) && !(OutputStride & 0xF)) + { + // Aligned input, aligned output + for (; i < VectorCount; i++) + { + XMVECTOR V = _mm_castsi128_ps(_mm_loadl_epi64(reinterpret_cast(pInputVector))); + pInputVector += InputStride; + + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + } + } + else + { + // Aligned input, unaligned output + for (; i < VectorCount; i++) + { + XMVECTOR V = _mm_castsi128_ps(_mm_loadl_epi64(reinterpret_cast(pInputVector))); + pInputVector += InputStride; + + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + } + } + } + else + { + // Unaligned input + for (; i < VectorCount; i++) + { + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pInputVector))); + pInputVector += InputStride; + + XMVECTOR Y = XM_PERMUTE_PS(xy, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(xy, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + } + } + + XM_SFENCE(); + + return pOutputStream; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2TransformCoord +( + FXMVECTOR V, + FXMMATRIX M +) noexcept +{ + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiplyAdd(Y, M.r[1], M.r[3]); + Result = XMVectorMultiplyAdd(X, M.r[0], Result); + + XMVECTOR W = XMVectorSplatW(Result); + return XMVectorDivide(Result, W); +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline XMFLOAT2* XM_CALLCONV XMVector2TransformCoordStream +( + XMFLOAT2* pOutputStream, + size_t OutputStride, + const XMFLOAT2* pInputStream, + size_t InputStride, + size_t VectorCount, + FXMMATRIX M +) noexcept +{ + assert(pOutputStream != nullptr); + assert(pInputStream != nullptr); + + assert(InputStride >= sizeof(XMFLOAT2)); + _Analysis_assume_(InputStride >= sizeof(XMFLOAT2)); + + assert(OutputStride >= sizeof(XMFLOAT2)); + _Analysis_assume_(OutputStride >= sizeof(XMFLOAT2)); + +#if defined(_XM_NO_INTRINSICS_) + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row3 = M.r[3]; + + for (size_t i = 0; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat2(reinterpret_cast(pInputVector)); + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiplyAdd(Y, row1, row3); + Result = XMVectorMultiplyAdd(X, row0, Result); + + XMVECTOR W = XMVectorSplatW(Result); + + Result = XMVectorDivide(Result, W); + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 26015, "PREfast noise: Esp:1307" ) +#endif + + XMStoreFloat2(reinterpret_cast(pOutputVector), Result); + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + + pInputVector += InputStride; + pOutputVector += OutputStride; + } + + return pOutputStream; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row3 = M.r[3]; + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if ((InputStride == sizeof(XMFLOAT2)) && (OutputStride == sizeof(XMFLOAT2))) + { + for (size_t j = 0; j < four; ++j) + { + float32x4x2_t V = vld2q_f32(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + float32x2_t r3 = vget_low_f32(row3); + float32x2_t r = vget_low_f32(row0); + XMVECTOR vResult0 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), V.val[0], r, 0); // Ax+M + XMVECTOR vResult1 = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), V.val[0], r, 1); // Bx+N + + XM_PREFETCH(pInputVector); + + r3 = vget_high_f32(row3); + r = vget_high_f32(row0); + XMVECTOR W = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), V.val[0], r, 1); // Dx+P + + XM_PREFETCH(pInputVector + XM_CACHE_LINE_SIZE); + + r = vget_low_f32(row1); + vResult0 = vmlaq_lane_f32(vResult0, V.val[1], r, 0); // Ax+Ey+M + vResult1 = vmlaq_lane_f32(vResult1, V.val[1], r, 1); // Bx+Fy+N + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 2)); + + r = vget_high_f32(row1); + W = vmlaq_lane_f32(W, V.val[1], r, 1); // Dx+Hy+P + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 3)); + +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + V.val[0] = vdivq_f32(vResult0, W); + V.val[1] = vdivq_f32(vResult1, W); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal + float32x4_t Reciprocal = vrecpeq_f32(W); + float32x4_t S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + + V.val[0] = vmulq_f32(vResult0, Reciprocal); + V.val[1] = vmulq_f32(vResult1, Reciprocal); +#endif + + vst2q_f32(reinterpret_cast(pOutputVector), V); + pOutputVector += sizeof(XMFLOAT2) * 4; + + i += 4; + } + } + } + + for (; i < VectorCount; i++) + { + float32x2_t V = vld1_f32(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR vResult = vmlaq_lane_f32(row3, row0, V, 0); // X + vResult = vmlaq_lane_f32(vResult, row1, V, 1); // Y + + V = vget_high_f32(vResult); + float32x2_t W = vdup_lane_f32(V, 1); + +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + V = vget_low_f32(vResult); + V = vdiv_f32(V, W); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal for W + float32x2_t Reciprocal = vrecpe_f32(W); + float32x2_t S = vrecps_f32(Reciprocal, W); + Reciprocal = vmul_f32(S, Reciprocal); + S = vrecps_f32(Reciprocal, W); + Reciprocal = vmul_f32(S, Reciprocal); + + V = vget_low_f32(vResult); + V = vmul_f32(V, Reciprocal); +#endif + + vst1_f32(reinterpret_cast(pOutputVector), V); + pOutputVector += OutputStride; + } + + return pOutputStream; +#elif defined(_XM_AVX2_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + __m256 row0 = _mm256_broadcast_ps(&M.r[0]); + __m256 row1 = _mm256_broadcast_ps(&M.r[1]); + __m256 row3 = _mm256_broadcast_ps(&M.r[3]); + + if (InputStride == sizeof(XMFLOAT2)) + { + if (OutputStride == sizeof(XMFLOAT2)) + { + if (!(reinterpret_cast(pOutputStream) & 0x1F)) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + __m256 Y2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + __m256 X2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 Y1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 X1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + + __m256 vTempB = _mm256_fmadd_ps(Y1, row1, row3); + __m256 vTempB2 = _mm256_fmadd_ps(Y2, row1, row3); + __m256 vTempA = _mm256_mul_ps(X1, row0); + __m256 vTempA2 = _mm256_mul_ps(X2, row0); + vTempA = _mm256_add_ps(vTempA, vTempB); + vTempA2 = _mm256_add_ps(vTempA2, vTempB2); + + __m256 W = _mm256_shuffle_ps(vTempA, vTempA, _MM_SHUFFLE(3, 3, 3, 3)); + vTempA = _mm256_div_ps(vTempA, W); + + W = _mm256_shuffle_ps(vTempA2, vTempA2, _MM_SHUFFLE(3, 3, 3, 3)); + vTempA2 = _mm256_div_ps(vTempA2, W); + + X1 = _mm256_shuffle_ps(vTempA, vTempA2, 0x44); + XM256_STREAM_PS(reinterpret_cast(pOutputVector), X1); + pOutputVector += sizeof(XMFLOAT2) * 4; + + i += 4; + } + } + else + { + // Packed input, packed output + for (size_t j = 0; j < four; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + __m256 Y2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + __m256 X2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 Y1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 X1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + + __m256 vTempB = _mm256_fmadd_ps(Y1, row1, row3); + __m256 vTempB2 = _mm256_fmadd_ps(Y2, row1, row3); + __m256 vTempA = _mm256_mul_ps(X1, row0); + __m256 vTempA2 = _mm256_mul_ps(X2, row0); + vTempA = _mm256_add_ps(vTempA, vTempB); + vTempA2 = _mm256_add_ps(vTempA2, vTempB2); + + __m256 W = _mm256_shuffle_ps(vTempA, vTempA, _MM_SHUFFLE(3, 3, 3, 3)); + vTempA = _mm256_div_ps(vTempA, W); + + W = _mm256_shuffle_ps(vTempA2, vTempA2, _MM_SHUFFLE(3, 3, 3, 3)); + vTempA2 = _mm256_div_ps(vTempA2, W); + + X1 = _mm256_shuffle_ps(vTempA, vTempA2, 0x44); + _mm256_storeu_ps(reinterpret_cast(pOutputVector), X1); + pOutputVector += sizeof(XMFLOAT2) * 4; + + i += 4; + } + } + } + else + { + // Packed input, unpacked output + for (size_t j = 0; j < four; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + __m256 Y2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + __m256 X2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 Y1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 X1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + + __m256 vTempB = _mm256_fmadd_ps(Y1, row1, row3); + __m256 vTempB2 = _mm256_fmadd_ps(Y2, row1, row3); + __m256 vTempA = _mm256_mul_ps(X1, row0); + __m256 vTempA2 = _mm256_mul_ps(X2, row0); + vTempA = _mm256_add_ps(vTempA, vTempB); + vTempA2 = _mm256_add_ps(vTempA2, vTempB2); + + __m256 W = _mm256_shuffle_ps(vTempA, vTempA, _MM_SHUFFLE(3, 3, 3, 3)); + vTempA = _mm256_div_ps(vTempA, W); + + W = _mm256_shuffle_ps(vTempA2, vTempA2, _MM_SHUFFLE(3, 3, 3, 3)); + vTempA2 = _mm256_div_ps(vTempA2, W); + + _mm_store_sd(reinterpret_cast(pOutputVector), + _mm_castps_pd(_mm256_castps256_ps128(vTempA))); + pOutputVector += OutputStride; + + _mm_store_sd(reinterpret_cast(pOutputVector), + _mm_castps_pd(_mm256_castps256_ps128(vTempA2))); + pOutputVector += OutputStride; + + _mm_store_sd(reinterpret_cast(pOutputVector), + _mm_castps_pd(_mm256_extractf128_ps(vTempA, 1))); + pOutputVector += OutputStride; + + _mm_store_sd(reinterpret_cast(pOutputVector), + _mm_castps_pd(_mm256_extractf128_ps(vTempA2, 1))); + pOutputVector += OutputStride; + + i += 4; + } + } + } + } + + if (i < VectorCount) + { + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row3 = M.r[3]; + + for (; i < VectorCount; i++) + { + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pInputVector))); + pInputVector += InputStride; + + XMVECTOR Y = XM_PERMUTE_PS(xy, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(xy, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + + _mm_store_sd(reinterpret_cast(pOutputVector), _mm_castps_pd(vTemp)); + pOutputVector += OutputStride; + } + } + + XM_SFENCE(); + + return pOutputStream; +#elif defined(_XM_SSE_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row3 = M.r[3]; + + size_t i = 0; + size_t two = VectorCount >> 1; + if (two > 0) + { + if (InputStride == sizeof(XMFLOAT2)) + { + if (OutputStride == sizeof(XMFLOAT2)) + { + if (!(reinterpret_cast(pOutputStream) & 0xF)) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < two; ++j) + { + XMVECTOR V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 2; + + // Result 1 + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + XMVECTOR V1 = _mm_div_ps(vTemp, W); + + // Result 2 + Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + X = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + + vTemp = XM_FMADD_PS(Y, row1, row3); + vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + XMVECTOR V2 = _mm_div_ps(vTemp, W); + + vTemp = _mm_movelh_ps(V1, V2); + + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += sizeof(XMFLOAT2) * 2; + + i += 2; + } + } + else + { + // Packed input, unaligned & packed output + for (size_t j = 0; j < two; ++j) + { + XMVECTOR V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 2; + + // Result 1 + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + XMVECTOR V1 = _mm_div_ps(vTemp, W); + + // Result 2 + Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + X = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + + vTemp = XM_FMADD_PS(Y, row1, row3); + vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + XMVECTOR V2 = _mm_div_ps(vTemp, W); + + vTemp = _mm_movelh_ps(V1, V2); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += sizeof(XMFLOAT2) * 2; + + i += 2; + } + } + } + else + { + // Packed input, unpacked output + for (size_t j = 0; j < two; ++j) + { + XMVECTOR V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 2; + + // Result 1 + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + vTemp = _mm_div_ps(vTemp, W); + + _mm_store_sd(reinterpret_cast(pOutputVector), _mm_castps_pd(vTemp)); + pOutputVector += OutputStride; + + // Result 2 + Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + X = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + + vTemp = XM_FMADD_PS(Y, row1, row3); + vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + vTemp = _mm_div_ps(vTemp, W); + + _mm_store_sd(reinterpret_cast(pOutputVector), _mm_castps_pd(vTemp)); + pOutputVector += OutputStride; + + i += 2; + } + } + } + } + + if (!(reinterpret_cast(pInputVector) & 0xF) && !(InputStride & 0xF)) + { + // Aligned input + for (; i < VectorCount; i++) + { + XMVECTOR V = _mm_castsi128_ps(_mm_loadl_epi64(reinterpret_cast(pInputVector))); + pInputVector += InputStride; + + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + vTemp = _mm_div_ps(vTemp, W); + + _mm_store_sd(reinterpret_cast(pOutputVector), _mm_castps_pd(vTemp)); + pOutputVector += OutputStride; + } + } + else + { + // Unaligned input + for (; i < VectorCount; i++) + { + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pInputVector))); + pInputVector += InputStride; + + XMVECTOR Y = XM_PERMUTE_PS(xy, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(xy, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Y, row1, row3); + XMVECTOR vTemp2 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + vTemp = _mm_div_ps(vTemp, W); + + _mm_store_sd(reinterpret_cast(pOutputVector), _mm_castps_pd(vTemp)); + pOutputVector += OutputStride; + } + } + + XM_SFENCE(); + + return pOutputStream; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector2TransformNormal +( + FXMVECTOR V, + FXMMATRIX M +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiply(Y, M.r[1]); + Result = XMVectorMultiplyAdd(X, M.r[0], Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + float32x4_t Result = vmulq_lane_f32(M.r[1], VL, 1); // Y + return vmlaq_lane_f32(Result, M.r[0], VL, 0); // X +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); // Y + vResult = _mm_mul_ps(vResult, M.r[1]); + XMVECTOR vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); // X + vResult = XM_FMADD_PS(vTemp, M.r[0], vResult); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline XMFLOAT2* XM_CALLCONV XMVector2TransformNormalStream +( + XMFLOAT2* pOutputStream, + size_t OutputStride, + const XMFLOAT2* pInputStream, + size_t InputStride, + size_t VectorCount, + FXMMATRIX M +) noexcept +{ + assert(pOutputStream != nullptr); + assert(pInputStream != nullptr); + + assert(InputStride >= sizeof(XMFLOAT2)); + _Analysis_assume_(InputStride >= sizeof(XMFLOAT2)); + + assert(OutputStride >= sizeof(XMFLOAT2)); + _Analysis_assume_(OutputStride >= sizeof(XMFLOAT2)); + +#if defined(_XM_NO_INTRINSICS_) + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + + for (size_t i = 0; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat2(reinterpret_cast(pInputVector)); + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiply(Y, row1); + Result = XMVectorMultiplyAdd(X, row0, Result); + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 26015, "PREfast noise: Esp:1307" ) +#endif + + XMStoreFloat2(reinterpret_cast(pOutputVector), Result); + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + + pInputVector += InputStride; + pOutputVector += OutputStride; + } + + return pOutputStream; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if ((InputStride == sizeof(XMFLOAT2)) && (OutputStride == sizeof(XMFLOAT2))) + { + for (size_t j = 0; j < four; ++j) + { + float32x4x2_t V = vld2q_f32(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + float32x2_t r = vget_low_f32(row0); + XMVECTOR vResult0 = vmulq_lane_f32(V.val[0], r, 0); // Ax + XMVECTOR vResult1 = vmulq_lane_f32(V.val[0], r, 1); // Bx + + XM_PREFETCH(pInputVector); + XM_PREFETCH(pInputVector + XM_CACHE_LINE_SIZE); + + r = vget_low_f32(row1); + vResult0 = vmlaq_lane_f32(vResult0, V.val[1], r, 0); // Ax+Ey + vResult1 = vmlaq_lane_f32(vResult1, V.val[1], r, 1); // Bx+Fy + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 2)); + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 3)); + + V.val[0] = vResult0; + V.val[1] = vResult1; + + vst2q_f32(reinterpret_cast(pOutputVector), V); + pOutputVector += sizeof(XMFLOAT2) * 4; + + i += 4; + } + } + } + + for (; i < VectorCount; i++) + { + float32x2_t V = vld1_f32(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR vResult = vmulq_lane_f32(row0, V, 0); // X + vResult = vmlaq_lane_f32(vResult, row1, V, 1); // Y + + V = vget_low_f32(vResult); + vst1_f32(reinterpret_cast(pOutputVector), V); + pOutputVector += OutputStride; + } + + return pOutputStream; +#elif defined(_XM_AVX2_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + __m256 row0 = _mm256_broadcast_ps(&M.r[0]); + __m256 row1 = _mm256_broadcast_ps(&M.r[1]); + + if (InputStride == sizeof(XMFLOAT2)) + { + if (OutputStride == sizeof(XMFLOAT2)) + { + if (!(reinterpret_cast(pOutputStream) & 0x1F)) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + __m256 Y2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + __m256 X2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 Y1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 X1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + + __m256 vTempA = _mm256_mul_ps(Y1, row1); + __m256 vTempB = _mm256_mul_ps(Y2, row1); + vTempA = _mm256_fmadd_ps(X1, row0, vTempA); + vTempB = _mm256_fmadd_ps(X2, row0, vTempB); + + X1 = _mm256_shuffle_ps(vTempA, vTempB, 0x44); + XM256_STREAM_PS(reinterpret_cast(pOutputVector), X1); + pOutputVector += sizeof(XMFLOAT2) * 4; + + i += 4; + } + } + else + { + // Packed input, packed output + for (size_t j = 0; j < four; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + __m256 Y2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + __m256 X2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 Y1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 X1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + + __m256 vTempA = _mm256_mul_ps(Y1, row1); + __m256 vTempB = _mm256_mul_ps(Y2, row1); + vTempA = _mm256_fmadd_ps(X1, row0, vTempA); + vTempB = _mm256_fmadd_ps(X2, row0, vTempB); + + X1 = _mm256_shuffle_ps(vTempA, vTempB, 0x44); + _mm256_storeu_ps(reinterpret_cast(pOutputVector), X1); + pOutputVector += sizeof(XMFLOAT2) * 4; + + i += 4; + } + } + } + else + { + // Packed input, unpacked output + for (size_t j = 0; j < four; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 4; + + __m256 Y2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + __m256 X2 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 Y1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 X1 = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + + __m256 vTempA = _mm256_mul_ps(Y1, row1); + __m256 vTempB = _mm256_mul_ps(Y2, row1); + vTempA = _mm256_fmadd_ps(X1, row0, vTempA); + vTempB = _mm256_fmadd_ps(X2, row0, vTempB); + + _mm_store_sd(reinterpret_cast(pOutputVector), + _mm_castps_pd(_mm256_castps256_ps128(vTempA))); + pOutputVector += OutputStride; + + _mm_store_sd(reinterpret_cast(pOutputVector), + _mm_castps_pd(_mm256_castps256_ps128(vTempB))); + pOutputVector += OutputStride; + + _mm_store_sd(reinterpret_cast(pOutputVector), + _mm_castps_pd(_mm256_extractf128_ps(vTempA, 1))); + pOutputVector += OutputStride; + + _mm_store_sd(reinterpret_cast(pOutputVector), + _mm_castps_pd(_mm256_extractf128_ps(vTempB, 1))); + pOutputVector += OutputStride; + + i += 4; + } + } + } + } + + if (i < VectorCount) + { + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + + for (; i < VectorCount; i++) + { + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pInputVector))); + pInputVector += InputStride; + + XMVECTOR Y = XM_PERMUTE_PS(xy, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(xy, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = _mm_mul_ps(Y, row1); + vTemp = XM_FMADD_PS(X, row0, vTemp); + + _mm_store_sd(reinterpret_cast(pOutputVector), _mm_castps_pd(vTemp)); + pOutputVector += OutputStride; + } + } + + XM_SFENCE(); + + return pOutputStream; +#elif defined(_XM_SSE_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + + size_t i = 0; + size_t two = VectorCount >> 1; + if (two > 0) + { + if (InputStride == sizeof(XMFLOAT2)) + { + if (OutputStride == sizeof(XMFLOAT2)) + { + if (!(reinterpret_cast(pOutputStream) & 0xF)) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < two; ++j) + { + XMVECTOR V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 2; + + // Result 1 + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = _mm_mul_ps(Y, row1); + XMVECTOR V1 = XM_FMADD_PS(X, row0, vTemp); + + // Result 2 + Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + X = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + + vTemp = _mm_mul_ps(Y, row1); + XMVECTOR V2 = XM_FMADD_PS(X, row0, vTemp); + + vTemp = _mm_movelh_ps(V1, V2); + + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += sizeof(XMFLOAT2) * 2; + + i += 2; + } + } + else + { + // Packed input, unaligned & packed output + for (size_t j = 0; j < two; ++j) + { + XMVECTOR V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 2; + + // Result 1 + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = _mm_mul_ps(Y, row1); + XMVECTOR V1 = XM_FMADD_PS(X, row0, vTemp); + + // Result 2 + Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + X = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + + vTemp = _mm_mul_ps(Y, row1); + XMVECTOR V2 = XM_FMADD_PS(X, row0, vTemp); + + vTemp = _mm_movelh_ps(V1, V2); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += sizeof(XMFLOAT2) * 2; + + i += 2; + } + } + } + else + { + // Packed input, unpacked output + for (size_t j = 0; j < two; ++j) + { + XMVECTOR V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT2) * 2; + + // Result 1 + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = _mm_mul_ps(Y, row1); + vTemp = XM_FMADD_PS(X, row0, vTemp); + + _mm_store_sd(reinterpret_cast(pOutputVector), _mm_castps_pd(vTemp)); + pOutputVector += OutputStride; + + // Result 2 + Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + X = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + + vTemp = _mm_mul_ps(Y, row1); + vTemp = XM_FMADD_PS(X, row0, vTemp); + + _mm_store_sd(reinterpret_cast(pOutputVector), _mm_castps_pd(vTemp)); + pOutputVector += OutputStride; + + i += 2; + } + } + } + } + + if (!(reinterpret_cast(pInputVector) & 0xF) && !(InputStride & 0xF)) + { + // Aligned input + for (; i < VectorCount; i++) + { + XMVECTOR V = _mm_castsi128_ps(_mm_loadl_epi64(reinterpret_cast(pInputVector))); + pInputVector += InputStride; + + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = _mm_mul_ps(Y, row1); + vTemp = XM_FMADD_PS(X, row0, vTemp); + + _mm_store_sd(reinterpret_cast(pOutputVector), _mm_castps_pd(vTemp)); + pOutputVector += OutputStride; + } + } + else + { + // Unaligned input + for (; i < VectorCount; i++) + { + __m128 xy = _mm_castpd_ps(_mm_load_sd(reinterpret_cast(pInputVector))); + pInputVector += InputStride; + + XMVECTOR Y = XM_PERMUTE_PS(xy, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(xy, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = _mm_mul_ps(Y, row1); + vTemp = XM_FMADD_PS(X, row0, vTemp); + + _mm_store_sd(reinterpret_cast(pOutputVector), _mm_castps_pd(vTemp)); + pOutputVector += OutputStride; + } + } + + XM_SFENCE(); + + return pOutputStream; +#endif +} + +/**************************************************************************** + * + * 3D Vector + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + // Comparison operations + //------------------------------------------------------------------------------ + + //------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3Equal +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] == V2.vector4_f32[0]) && (V1.vector4_f32[1] == V2.vector4_f32[1]) && (V1.vector4_f32[2] == V2.vector4_f32[2])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) == 0xFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpeq_ps(V1, V2); + return (((_mm_movemask_ps(vTemp) & 7) == 7) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector3EqualR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + uint32_t CR = 0; + if ((V1.vector4_f32[0] == V2.vector4_f32[0]) && + (V1.vector4_f32[1] == V2.vector4_f32[1]) && + (V1.vector4_f32[2] == V2.vector4_f32[2])) + { + CR = XM_CRMASK_CR6TRUE; + } + else if ((V1.vector4_f32[0] != V2.vector4_f32[0]) && + (V1.vector4_f32[1] != V2.vector4_f32[1]) && + (V1.vector4_f32[2] != V2.vector4_f32[2])) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU; + + uint32_t CR = 0; + if (r == 0xFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpeq_ps(V1, V2); + int iTest = _mm_movemask_ps(vTemp) & 7; + uint32_t CR = 0; + if (iTest == 7) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3EqualInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_u32[0] == V2.vector4_u32[0]) && (V1.vector4_u32[1] == V2.vector4_u32[1]) && (V1.vector4_u32[2] == V2.vector4_u32[2])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2)); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) == 0xFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + return (((_mm_movemask_ps(_mm_castsi128_ps(vTemp)) & 7) == 7) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector3EqualIntR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + uint32_t CR = 0; + if ((V1.vector4_u32[0] == V2.vector4_u32[0]) && + (V1.vector4_u32[1] == V2.vector4_u32[1]) && + (V1.vector4_u32[2] == V2.vector4_u32[2])) + { + CR = XM_CRMASK_CR6TRUE; + } + else if ((V1.vector4_u32[0] != V2.vector4_u32[0]) && + (V1.vector4_u32[1] != V2.vector4_u32[1]) && + (V1.vector4_u32[2] != V2.vector4_u32[2])) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2)); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU; + + uint32_t CR = 0; + if (r == 0xFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + int iTemp = _mm_movemask_ps(_mm_castsi128_ps(vTemp)) & 7; + uint32_t CR = 0; + if (iTemp == 7) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTemp) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3NearEqual +( + FXMVECTOR V1, + FXMVECTOR V2, + FXMVECTOR Epsilon +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float dx, dy, dz; + + dx = fabsf(V1.vector4_f32[0] - V2.vector4_f32[0]); + dy = fabsf(V1.vector4_f32[1] - V2.vector4_f32[1]); + dz = fabsf(V1.vector4_f32[2] - V2.vector4_f32[2]); + return (((dx <= Epsilon.vector4_f32[0]) && + (dy <= Epsilon.vector4_f32[1]) && + (dz <= Epsilon.vector4_f32[2])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vDelta = vsubq_f32(V1, V2); +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + uint32x4_t vResult = vacleq_f32(vDelta, Epsilon); +#else + uint32x4_t vResult = vcleq_f32(vabsq_f32(vDelta), Epsilon); +#endif + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) == 0xFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + // Get the difference + XMVECTOR vDelta = _mm_sub_ps(V1, V2); + // Get the absolute value of the difference + XMVECTOR vTemp = _mm_setzero_ps(); + vTemp = _mm_sub_ps(vTemp, vDelta); + vTemp = _mm_max_ps(vTemp, vDelta); + vTemp = _mm_cmple_ps(vTemp, Epsilon); + // w is don't care + return (((_mm_movemask_ps(vTemp) & 7) == 0x7) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3NotEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] != V2.vector4_f32[0]) || (V1.vector4_f32[1] != V2.vector4_f32[1]) || (V1.vector4_f32[2] != V2.vector4_f32[2])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) != 0xFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpeq_ps(V1, V2); + return (((_mm_movemask_ps(vTemp) & 7) != 7) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3NotEqualInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_u32[0] != V2.vector4_u32[0]) || (V1.vector4_u32[1] != V2.vector4_u32[1]) || (V1.vector4_u32[2] != V2.vector4_u32[2])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2)); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) != 0xFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + return (((_mm_movemask_ps(_mm_castsi128_ps(vTemp)) & 7) != 7) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3Greater +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] > V2.vector4_f32[0]) && (V1.vector4_f32[1] > V2.vector4_f32[1]) && (V1.vector4_f32[2] > V2.vector4_f32[2])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcgtq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) == 0xFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpgt_ps(V1, V2); + return (((_mm_movemask_ps(vTemp) & 7) == 7) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector3GreaterR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + uint32_t CR = 0; + if ((V1.vector4_f32[0] > V2.vector4_f32[0]) && + (V1.vector4_f32[1] > V2.vector4_f32[1]) && + (V1.vector4_f32[2] > V2.vector4_f32[2])) + { + CR = XM_CRMASK_CR6TRUE; + } + else if ((V1.vector4_f32[0] <= V2.vector4_f32[0]) && + (V1.vector4_f32[1] <= V2.vector4_f32[1]) && + (V1.vector4_f32[2] <= V2.vector4_f32[2])) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcgtq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU; + + uint32_t CR = 0; + if (r == 0xFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpgt_ps(V1, V2); + uint32_t CR = 0; + int iTest = _mm_movemask_ps(vTemp) & 7; + if (iTest == 7) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3GreaterOrEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] >= V2.vector4_f32[0]) && (V1.vector4_f32[1] >= V2.vector4_f32[1]) && (V1.vector4_f32[2] >= V2.vector4_f32[2])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcgeq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) == 0xFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpge_ps(V1, V2); + return (((_mm_movemask_ps(vTemp) & 7) == 7) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector3GreaterOrEqualR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + uint32_t CR = 0; + if ((V1.vector4_f32[0] >= V2.vector4_f32[0]) && + (V1.vector4_f32[1] >= V2.vector4_f32[1]) && + (V1.vector4_f32[2] >= V2.vector4_f32[2])) + { + CR = XM_CRMASK_CR6TRUE; + } + else if ((V1.vector4_f32[0] < V2.vector4_f32[0]) && + (V1.vector4_f32[1] < V2.vector4_f32[1]) && + (V1.vector4_f32[2] < V2.vector4_f32[2])) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcgeq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU; + + uint32_t CR = 0; + if (r == 0xFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpge_ps(V1, V2); + uint32_t CR = 0; + int iTest = _mm_movemask_ps(vTemp) & 7; + if (iTest == 7) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3Less +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] < V2.vector4_f32[0]) && (V1.vector4_f32[1] < V2.vector4_f32[1]) && (V1.vector4_f32[2] < V2.vector4_f32[2])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcltq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) == 0xFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmplt_ps(V1, V2); + return (((_mm_movemask_ps(vTemp) & 7) == 7) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3LessOrEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] <= V2.vector4_f32[0]) && (V1.vector4_f32[1] <= V2.vector4_f32[1]) && (V1.vector4_f32[2] <= V2.vector4_f32[2])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcleq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) == 0xFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmple_ps(V1, V2); + return (((_mm_movemask_ps(vTemp) & 7) == 7) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3InBounds +( + FXMVECTOR V, + FXMVECTOR Bounds +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V.vector4_f32[0] <= Bounds.vector4_f32[0] && V.vector4_f32[0] >= -Bounds.vector4_f32[0]) && + (V.vector4_f32[1] <= Bounds.vector4_f32[1] && V.vector4_f32[1] >= -Bounds.vector4_f32[1]) && + (V.vector4_f32[2] <= Bounds.vector4_f32[2] && V.vector4_f32[2] >= -Bounds.vector4_f32[2])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Test if less than or equal + uint32x4_t ivTemp1 = vcleq_f32(V, Bounds); + // Negate the bounds + float32x4_t vTemp2 = vnegq_f32(Bounds); + // Test if greater or equal (Reversed) + uint32x4_t ivTemp2 = vcleq_f32(vTemp2, V); + // Blend answers + ivTemp1 = vandq_u32(ivTemp1, ivTemp2); + // in bounds? + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(ivTemp1)), vget_high_u8(vreinterpretq_u8_u32(ivTemp1))); + uint16x4x2_t vTemp3 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp3.val[1]), 1) & 0xFFFFFFU) == 0xFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + // Test if less than or equal + XMVECTOR vTemp1 = _mm_cmple_ps(V, Bounds); + // Negate the bounds + XMVECTOR vTemp2 = _mm_mul_ps(Bounds, g_XMNegativeOne); + // Test if greater or equal (Reversed) + vTemp2 = _mm_cmple_ps(vTemp2, V); + // Blend answers + vTemp1 = _mm_and_ps(vTemp1, vTemp2); + // x,y and z in bounds? (w is don't care) + return (((_mm_movemask_ps(vTemp1) & 0x7) == 0x7) != 0); +#else + return XMComparisonAllInBounds(XMVector3InBoundsR(V, Bounds)); +#endif +} + +//------------------------------------------------------------------------------ + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(push) +#pragma float_control(precise, on) +#endif + +inline bool XM_CALLCONV XMVector3IsNaN(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + return (XMISNAN(V.vector4_f32[0]) || + XMISNAN(V.vector4_f32[1]) || + XMISNAN(V.vector4_f32[2])); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + #if defined(__clang__) && defined(__FINITE_MATH_ONLY__) + return isnan(vgetq_lane_f32(V, 0)) || isnan(vgetq_lane_f32(V, 1)) || isnan(vgetq_lane_f32(V, 2)); + #else + // Test against itself. NaN is always not equal + uint32x4_t vTempNan = vceqq_f32(V, V); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vTempNan)), vget_high_u8(vreinterpretq_u8_u32(vTempNan))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + // If x or y or z are NaN, the mask is zero + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) != 0xFFFFFFU); + #endif +#elif defined(_XM_SSE_INTRINSICS_) + #if defined(__clang__) && defined(__FINITE_MATH_ONLY__) + XM_ALIGNED_DATA(16) float tmp[4]; + _mm_store_ps(tmp, V); + return isnan(tmp[0]) || isnan(tmp[1]) || isnan(tmp[2]); + #else + // Test against itself. NaN is always not equal + XMVECTOR vTempNan = _mm_cmpneq_ps(V, V); + // If x or y or z are NaN, the mask is non-zero + return ((_mm_movemask_ps(vTempNan) & 7) != 0); + #endif +#endif +} + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(pop) +#endif + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector3IsInfinite(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (XMISINF(V.vector4_f32[0]) || + XMISINF(V.vector4_f32[1]) || + XMISINF(V.vector4_f32[2])); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Mask off the sign bit + uint32x4_t vTempInf = vandq_u32(vreinterpretq_u32_f32(V), g_XMAbsMask); + // Compare to infinity + vTempInf = vceqq_f32(vreinterpretq_f32_u32(vTempInf), g_XMInfinity); + // If any are infinity, the signs are true. + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vTempInf)), vget_high_u8(vreinterpretq_u8_u32(vTempInf))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return ((vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) & 0xFFFFFFU) != 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Mask off the sign bit + __m128 vTemp = _mm_and_ps(V, g_XMAbsMask); + // Compare to infinity + vTemp = _mm_cmpeq_ps(vTemp, g_XMInfinity); + // If x,y or z are infinity, the signs are true. + return ((_mm_movemask_ps(vTemp) & 7) != 0); +#endif +} + +//------------------------------------------------------------------------------ +// Computation operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3Dot +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float fValue = V1.vector4_f32[0] * V2.vector4_f32[0] + V1.vector4_f32[1] * V2.vector4_f32[1] + V1.vector4_f32[2] * V2.vector4_f32[2]; + XMVECTORF32 vResult; + vResult.f[0] = + vResult.f[1] = + vResult.f[2] = + vResult.f[3] = fValue; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vTemp = vmulq_f32(V1, V2); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vpadd_f32(v1, v1); + v2 = vdup_lane_f32(v2, 0); + v1 = vadd_f32(v1, v2); + return vcombine_f32(v1, v1); +#elif defined(_XM_SSE4_INTRINSICS_) + return _mm_dp_ps(V1, V2, 0x7f); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vTemp = _mm_mul_ps(V1, V2); + vTemp = _mm_and_ps(vTemp, g_XMMask3); + vTemp = _mm_hadd_ps(vTemp, vTemp); + return _mm_hadd_ps(vTemp, vTemp); +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product + XMVECTOR vDot = _mm_mul_ps(V1, V2); + // x=Dot.vector4_f32[1], y=Dot.vector4_f32[2] + XMVECTOR vTemp = XM_PERMUTE_PS(vDot, _MM_SHUFFLE(2, 1, 2, 1)); + // Result.vector4_f32[0] = x+y + vDot = _mm_add_ss(vDot, vTemp); + // x=Dot.vector4_f32[2] + vTemp = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(1, 1, 1, 1)); + // Result.vector4_f32[0] = (x+y)+z + vDot = _mm_add_ss(vDot, vTemp); + // Splat x + return XM_PERMUTE_PS(vDot, _MM_SHUFFLE(0, 0, 0, 0)); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3Cross +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + // [ V1.y*V2.z - V1.z*V2.y, V1.z*V2.x - V1.x*V2.z, V1.x*V2.y - V1.y*V2.x ] + +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + (V1.vector4_f32[1] * V2.vector4_f32[2]) - (V1.vector4_f32[2] * V2.vector4_f32[1]), + (V1.vector4_f32[2] * V2.vector4_f32[0]) - (V1.vector4_f32[0] * V2.vector4_f32[2]), + (V1.vector4_f32[0] * V2.vector4_f32[1]) - (V1.vector4_f32[1] * V2.vector4_f32[0]), + 0.0f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t v1xy = vget_low_f32(V1); + float32x2_t v2xy = vget_low_f32(V2); + + float32x2_t v1yx = vrev64_f32(v1xy); + float32x2_t v2yx = vrev64_f32(v2xy); + + float32x2_t v1zz = vdup_lane_f32(vget_high_f32(V1), 0); + float32x2_t v2zz = vdup_lane_f32(vget_high_f32(V2), 0); + + XMVECTOR vResult = vmulq_f32(vcombine_f32(v1yx, v1xy), vcombine_f32(v2zz, v2yx)); + vResult = vmlsq_f32(vResult, vcombine_f32(v1zz, v1yx), vcombine_f32(v2yx, v2xy)); + vResult = vreinterpretq_f32_u32(veorq_u32(vreinterpretq_u32_f32(vResult), g_XMFlipY)); + return vreinterpretq_f32_u32(vandq_u32(vreinterpretq_u32_f32(vResult), g_XMMask3)); +#elif defined(_XM_SSE_INTRINSICS_) + // y1,z1,x1,w1 + XMVECTOR vTemp1 = XM_PERMUTE_PS(V1, _MM_SHUFFLE(3, 0, 2, 1)); + // z2,x2,y2,w2 + XMVECTOR vTemp2 = XM_PERMUTE_PS(V2, _MM_SHUFFLE(3, 1, 0, 2)); + // Perform the left operation + XMVECTOR vResult = _mm_mul_ps(vTemp1, vTemp2); + // z1,x1,y1,w1 + vTemp1 = XM_PERMUTE_PS(vTemp1, _MM_SHUFFLE(3, 0, 2, 1)); + // y2,z2,x2,w2 + vTemp2 = XM_PERMUTE_PS(vTemp2, _MM_SHUFFLE(3, 1, 0, 2)); + // Perform the right operation + vResult = XM_FNMADD_PS(vTemp1, vTemp2, vResult); + // Set w to zero + return _mm_and_ps(vResult, g_XMMask3); +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3LengthSq(FXMVECTOR V) noexcept +{ + return XMVector3Dot(V, V); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3ReciprocalLengthEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + + Result = XMVector3LengthSq(V); + Result = XMVectorReciprocalSqrtEst(Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot3 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vpadd_f32(v1, v1); + v2 = vdup_lane_f32(v2, 0); + v1 = vadd_f32(v1, v2); + // Reciprocal sqrt (estimate) + v2 = vrsqrte_f32(v1); + return vcombine_f32(v2, v2); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0x7f); + return _mm_rsqrt_ps(vTemp); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_and_ps(vLengthSq, g_XMMask3); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_rsqrt_ps(vLengthSq); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y and z + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has z and y + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 2, 1, 2)); + // x+z, y + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + // y,y,y,y + vTemp = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(1, 1, 1, 1)); + // x+z+y,??,??,?? + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + // Splat the length squared + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + // Get the reciprocal + vLengthSq = _mm_rsqrt_ps(vLengthSq); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3ReciprocalLength(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + + Result = XMVector3LengthSq(V); + Result = XMVectorReciprocalSqrt(Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot3 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vpadd_f32(v1, v1); + v2 = vdup_lane_f32(v2, 0); + v1 = vadd_f32(v1, v2); + // Reciprocal sqrt + float32x2_t S0 = vrsqrte_f32(v1); + float32x2_t P0 = vmul_f32(v1, S0); + float32x2_t R0 = vrsqrts_f32(P0, S0); + float32x2_t S1 = vmul_f32(S0, R0); + float32x2_t P1 = vmul_f32(v1, S1); + float32x2_t R1 = vrsqrts_f32(P1, S1); + float32x2_t Result = vmul_f32(S1, R1); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0x7f); + XMVECTOR vLengthSq = _mm_sqrt_ps(vTemp); + return _mm_div_ps(g_XMOne, vLengthSq); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vDot = _mm_mul_ps(V, V); + vDot = _mm_and_ps(vDot, g_XMMask3); + vDot = _mm_hadd_ps(vDot, vDot); + vDot = _mm_hadd_ps(vDot, vDot); + vDot = _mm_sqrt_ps(vDot); + vDot = _mm_div_ps(g_XMOne, vDot); + return vDot; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product + XMVECTOR vDot = _mm_mul_ps(V, V); + // x=Dot.y, y=Dot.z + XMVECTOR vTemp = XM_PERMUTE_PS(vDot, _MM_SHUFFLE(2, 1, 2, 1)); + // Result.x = x+y + vDot = _mm_add_ss(vDot, vTemp); + // x=Dot.z + vTemp = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(1, 1, 1, 1)); + // Result.x = (x+y)+z + vDot = _mm_add_ss(vDot, vTemp); + // Splat x + vDot = XM_PERMUTE_PS(vDot, _MM_SHUFFLE(0, 0, 0, 0)); + // Get the reciprocal + vDot = _mm_sqrt_ps(vDot); + // Get the reciprocal + vDot = _mm_div_ps(g_XMOne, vDot); + return vDot; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3LengthEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + + Result = XMVector3LengthSq(V); + Result = XMVectorSqrtEst(Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot3 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vpadd_f32(v1, v1); + v2 = vdup_lane_f32(v2, 0); + v1 = vadd_f32(v1, v2); + const float32x2_t zero = vdup_n_f32(0); + uint32x2_t VEqualsZero = vceq_f32(v1, zero); + // Sqrt (estimate) + float32x2_t Result = vrsqrte_f32(v1); + Result = vmul_f32(v1, Result); + Result = vbsl_f32(VEqualsZero, zero, Result); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0x7f); + return _mm_sqrt_ps(vTemp); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_and_ps(vLengthSq, g_XMMask3); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_sqrt_ps(vLengthSq); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y and z + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has z and y + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 2, 1, 2)); + // x+z, y + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + // y,y,y,y + vTemp = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(1, 1, 1, 1)); + // x+z+y,??,??,?? + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + // Splat the length squared + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + // Get the length + vLengthSq = _mm_sqrt_ps(vLengthSq); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3Length(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + + Result = XMVector3LengthSq(V); + Result = XMVectorSqrt(Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot3 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vpadd_f32(v1, v1); + v2 = vdup_lane_f32(v2, 0); + v1 = vadd_f32(v1, v2); + const float32x2_t zero = vdup_n_f32(0); + uint32x2_t VEqualsZero = vceq_f32(v1, zero); + // Sqrt + float32x2_t S0 = vrsqrte_f32(v1); + float32x2_t P0 = vmul_f32(v1, S0); + float32x2_t R0 = vrsqrts_f32(P0, S0); + float32x2_t S1 = vmul_f32(S0, R0); + float32x2_t P1 = vmul_f32(v1, S1); + float32x2_t R1 = vrsqrts_f32(P1, S1); + float32x2_t Result = vmul_f32(S1, R1); + Result = vmul_f32(v1, Result); + Result = vbsl_f32(VEqualsZero, zero, Result); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0x7f); + return _mm_sqrt_ps(vTemp); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_and_ps(vLengthSq, g_XMMask3); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_sqrt_ps(vLengthSq); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y and z + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has z and y + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 2, 1, 2)); + // x+z, y + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + // y,y,y,y + vTemp = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(1, 1, 1, 1)); + // x+z+y,??,??,?? + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + // Splat the length squared + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + // Get the length + vLengthSq = _mm_sqrt_ps(vLengthSq); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ +// XMVector3NormalizeEst uses a reciprocal estimate and +// returns QNaN on zero and infinite vectors. + +inline XMVECTOR XM_CALLCONV XMVector3NormalizeEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + Result = XMVector3ReciprocalLength(V); + Result = XMVectorMultiply(V, Result); + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot3 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vpadd_f32(v1, v1); + v2 = vdup_lane_f32(v2, 0); + v1 = vadd_f32(v1, v2); + // Reciprocal sqrt (estimate) + v2 = vrsqrte_f32(v1); + // Normalize + return vmulq_f32(V, vcombine_f32(v2, v2)); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0x7f); + XMVECTOR vResult = _mm_rsqrt_ps(vTemp); + return _mm_mul_ps(vResult, V); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vDot = _mm_mul_ps(V, V); + vDot = _mm_and_ps(vDot, g_XMMask3); + vDot = _mm_hadd_ps(vDot, vDot); + vDot = _mm_hadd_ps(vDot, vDot); + vDot = _mm_rsqrt_ps(vDot); + vDot = _mm_mul_ps(vDot, V); + return vDot; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product + XMVECTOR vDot = _mm_mul_ps(V, V); + // x=Dot.y, y=Dot.z + XMVECTOR vTemp = XM_PERMUTE_PS(vDot, _MM_SHUFFLE(2, 1, 2, 1)); + // Result.x = x+y + vDot = _mm_add_ss(vDot, vTemp); + // x=Dot.z + vTemp = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(1, 1, 1, 1)); + // Result.x = (x+y)+z + vDot = _mm_add_ss(vDot, vTemp); + // Splat x + vDot = XM_PERMUTE_PS(vDot, _MM_SHUFFLE(0, 0, 0, 0)); + // Get the reciprocal + vDot = _mm_rsqrt_ps(vDot); + // Perform the normalization + vDot = _mm_mul_ps(vDot, V); + return vDot; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3Normalize(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float fLength; + XMVECTOR vResult; + + vResult = XMVector3Length(V); + fLength = vResult.vector4_f32[0]; + + // Prevent divide by zero + if (fLength > 0) + { + fLength = 1.0f / fLength; + } + + vResult.vector4_f32[0] = V.vector4_f32[0] * fLength; + vResult.vector4_f32[1] = V.vector4_f32[1] * fLength; + vResult.vector4_f32[2] = V.vector4_f32[2] * fLength; + vResult.vector4_f32[3] = V.vector4_f32[3] * fLength; + return vResult; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot3 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vpadd_f32(v1, v1); + v2 = vdup_lane_f32(v2, 0); + v1 = vadd_f32(v1, v2); + uint32x2_t VEqualsZero = vceq_f32(v1, vdup_n_f32(0)); + uint32x2_t VEqualsInf = vceq_f32(v1, vget_low_f32(g_XMInfinity)); + // Reciprocal sqrt (2 iterations of Newton-Raphson) + float32x2_t S0 = vrsqrte_f32(v1); + float32x2_t P0 = vmul_f32(v1, S0); + float32x2_t R0 = vrsqrts_f32(P0, S0); + float32x2_t S1 = vmul_f32(S0, R0); + float32x2_t P1 = vmul_f32(v1, S1); + float32x2_t R1 = vrsqrts_f32(P1, S1); + v2 = vmul_f32(S1, R1); + // Normalize + XMVECTOR vResult = vmulq_f32(V, vcombine_f32(v2, v2)); + vResult = vbslq_f32(vcombine_u32(VEqualsZero, VEqualsZero), vdupq_n_f32(0), vResult); + return vbslq_f32(vcombine_u32(VEqualsInf, VEqualsInf), g_XMQNaN, vResult); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vLengthSq = _mm_dp_ps(V, V, 0x7f); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Create zero with a single instruction + XMVECTOR vZeroMask = _mm_setzero_ps(); + // Test for a divide by zero (Must be FP to detect -0.0) + vZeroMask = _mm_cmpneq_ps(vZeroMask, vResult); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Divide to perform the normalization + vResult = _mm_div_ps(V, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vZeroMask); + // Select qnan or result based on infinite length + XMVECTOR vTemp1 = _mm_andnot_ps(vLengthSq, g_XMQNaN); + XMVECTOR vTemp2 = _mm_and_ps(vResult, vLengthSq); + vResult = _mm_or_ps(vTemp1, vTemp2); + return vResult; +#elif defined(_XM_SSE3_INTRINSICS_) + // Perform the dot product on x,y and z only + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_and_ps(vLengthSq, g_XMMask3); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Create zero with a single instruction + XMVECTOR vZeroMask = _mm_setzero_ps(); + // Test for a divide by zero (Must be FP to detect -0.0) + vZeroMask = _mm_cmpneq_ps(vZeroMask, vResult); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Divide to perform the normalization + vResult = _mm_div_ps(V, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vZeroMask); + // Select qnan or result based on infinite length + XMVECTOR vTemp1 = _mm_andnot_ps(vLengthSq, g_XMQNaN); + XMVECTOR vTemp2 = _mm_and_ps(vResult, vLengthSq); + vResult = _mm_or_ps(vTemp1, vTemp2); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y and z only + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(2, 1, 2, 1)); + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vTemp = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(1, 1, 1, 1)); + vLengthSq = _mm_add_ss(vLengthSq, vTemp); + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(0, 0, 0, 0)); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Create zero with a single instruction + XMVECTOR vZeroMask = _mm_setzero_ps(); + // Test for a divide by zero (Must be FP to detect -0.0) + vZeroMask = _mm_cmpneq_ps(vZeroMask, vResult); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Divide to perform the normalization + vResult = _mm_div_ps(V, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vZeroMask); + // Select qnan or result based on infinite length + XMVECTOR vTemp1 = _mm_andnot_ps(vLengthSq, g_XMQNaN); + XMVECTOR vTemp2 = _mm_and_ps(vResult, vLengthSq); + vResult = _mm_or_ps(vTemp1, vTemp2); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3ClampLength +( + FXMVECTOR V, + float LengthMin, + float LengthMax +) noexcept +{ + XMVECTOR ClampMax = XMVectorReplicate(LengthMax); + XMVECTOR ClampMin = XMVectorReplicate(LengthMin); + + return XMVector3ClampLengthV(V, ClampMin, ClampMax); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3ClampLengthV +( + FXMVECTOR V, + FXMVECTOR LengthMin, + FXMVECTOR LengthMax +) noexcept +{ + assert((XMVectorGetY(LengthMin) == XMVectorGetX(LengthMin)) && (XMVectorGetZ(LengthMin) == XMVectorGetX(LengthMin))); + assert((XMVectorGetY(LengthMax) == XMVectorGetX(LengthMax)) && (XMVectorGetZ(LengthMax) == XMVectorGetX(LengthMax))); + assert(XMVector3GreaterOrEqual(LengthMin, XMVectorZero())); + assert(XMVector3GreaterOrEqual(LengthMax, XMVectorZero())); + assert(XMVector3GreaterOrEqual(LengthMax, LengthMin)); + + XMVECTOR LengthSq = XMVector3LengthSq(V); + + const XMVECTOR Zero = XMVectorZero(); + + XMVECTOR RcpLength = XMVectorReciprocalSqrt(LengthSq); + + XMVECTOR InfiniteLength = XMVectorEqualInt(LengthSq, g_XMInfinity.v); + XMVECTOR ZeroLength = XMVectorEqual(LengthSq, Zero); + + XMVECTOR Normal = XMVectorMultiply(V, RcpLength); + + XMVECTOR Length = XMVectorMultiply(LengthSq, RcpLength); + + XMVECTOR Select = XMVectorEqualInt(InfiniteLength, ZeroLength); + Length = XMVectorSelect(LengthSq, Length, Select); + Normal = XMVectorSelect(LengthSq, Normal, Select); + + XMVECTOR ControlMax = XMVectorGreater(Length, LengthMax); + XMVECTOR ControlMin = XMVectorLess(Length, LengthMin); + + XMVECTOR ClampLength = XMVectorSelect(Length, LengthMax, ControlMax); + ClampLength = XMVectorSelect(ClampLength, LengthMin, ControlMin); + + XMVECTOR Result = XMVectorMultiply(Normal, ClampLength); + + // Preserve the original vector (with no precision loss) if the length falls within the given range + XMVECTOR Control = XMVectorEqualInt(ControlMax, ControlMin); + Result = XMVectorSelect(Result, V, Control); + + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3Reflect +( + FXMVECTOR Incident, + FXMVECTOR Normal +) noexcept +{ + // Result = Incident - (2 * dot(Incident, Normal)) * Normal + + XMVECTOR Result = XMVector3Dot(Incident, Normal); + Result = XMVectorAdd(Result, Result); + Result = XMVectorNegativeMultiplySubtract(Result, Normal, Incident); + + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3Refract +( + FXMVECTOR Incident, + FXMVECTOR Normal, + float RefractionIndex +) noexcept +{ + XMVECTOR Index = XMVectorReplicate(RefractionIndex); + return XMVector3RefractV(Incident, Normal, Index); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3RefractV +( + FXMVECTOR Incident, + FXMVECTOR Normal, + FXMVECTOR RefractionIndex +) noexcept +{ + // Result = RefractionIndex * Incident - Normal * (RefractionIndex * dot(Incident, Normal) + + // sqrt(1 - RefractionIndex * RefractionIndex * (1 - dot(Incident, Normal) * dot(Incident, Normal)))) + +#if defined(_XM_NO_INTRINSICS_) + + const XMVECTOR Zero = XMVectorZero(); + + XMVECTOR IDotN = XMVector3Dot(Incident, Normal); + + // R = 1.0f - RefractionIndex * RefractionIndex * (1.0f - IDotN * IDotN) + XMVECTOR R = XMVectorNegativeMultiplySubtract(IDotN, IDotN, g_XMOne.v); + R = XMVectorMultiply(R, RefractionIndex); + R = XMVectorNegativeMultiplySubtract(R, RefractionIndex, g_XMOne.v); + + if (XMVector4LessOrEqual(R, Zero)) + { + // Total internal reflection + return Zero; + } + else + { + // R = RefractionIndex * IDotN + sqrt(R) + R = XMVectorSqrt(R); + R = XMVectorMultiplyAdd(RefractionIndex, IDotN, R); + + // Result = RefractionIndex * Incident - Normal * R + XMVECTOR Result = XMVectorMultiply(RefractionIndex, Incident); + Result = XMVectorNegativeMultiplySubtract(Normal, R, Result); + + return Result; + } + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTOR IDotN = XMVector3Dot(Incident, Normal); + + // R = 1.0f - RefractionIndex * RefractionIndex * (1.0f - IDotN * IDotN) + float32x4_t R = vmlsq_f32(g_XMOne, IDotN, IDotN); + R = vmulq_f32(R, RefractionIndex); + R = vmlsq_f32(g_XMOne, R, RefractionIndex); + + uint32x4_t isrzero = vcleq_f32(R, g_XMZero); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(isrzero)), vget_high_u8(vreinterpretq_u8_u32(isrzero))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + + float32x4_t vResult; + if (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) == 0xFFFFFFFFU) + { + // Total internal reflection + vResult = g_XMZero; + } + else + { + // Sqrt(R) + float32x4_t S0 = vrsqrteq_f32(R); + float32x4_t P0 = vmulq_f32(R, S0); + float32x4_t R0 = vrsqrtsq_f32(P0, S0); + float32x4_t S1 = vmulq_f32(S0, R0); + float32x4_t P1 = vmulq_f32(R, S1); + float32x4_t R1 = vrsqrtsq_f32(P1, S1); + float32x4_t S2 = vmulq_f32(S1, R1); + R = vmulq_f32(R, S2); + // R = RefractionIndex * IDotN + sqrt(R) + R = vmlaq_f32(R, RefractionIndex, IDotN); + // Result = RefractionIndex * Incident - Normal * R + vResult = vmulq_f32(RefractionIndex, Incident); + vResult = vmlsq_f32(vResult, R, Normal); + } + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Result = RefractionIndex * Incident - Normal * (RefractionIndex * dot(Incident, Normal) + + // sqrt(1 - RefractionIndex * RefractionIndex * (1 - dot(Incident, Normal) * dot(Incident, Normal)))) + XMVECTOR IDotN = XMVector3Dot(Incident, Normal); + // R = 1.0f - RefractionIndex * RefractionIndex * (1.0f - IDotN * IDotN) + XMVECTOR R = XM_FNMADD_PS(IDotN, IDotN, g_XMOne); + XMVECTOR R2 = _mm_mul_ps(RefractionIndex, RefractionIndex); + R = XM_FNMADD_PS(R, R2, g_XMOne); + + XMVECTOR vResult = _mm_cmple_ps(R, g_XMZero); + if (_mm_movemask_ps(vResult) == 0x0f) + { + // Total internal reflection + vResult = g_XMZero; + } + else + { + // R = RefractionIndex * IDotN + sqrt(R) + R = _mm_sqrt_ps(R); + R = XM_FMADD_PS(RefractionIndex, IDotN, R); + // Result = RefractionIndex * Incident - Normal * R + vResult = _mm_mul_ps(RefractionIndex, Incident); + vResult = XM_FNMADD_PS(R, Normal, vResult); + } + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3Orthogonal(FXMVECTOR V) noexcept +{ + XMVECTOR Zero = XMVectorZero(); + XMVECTOR Z = XMVectorSplatZ(V); + XMVECTOR YZYY = XMVectorSwizzle(V); + + XMVECTOR NegativeV = XMVectorSubtract(Zero, V); + + XMVECTOR ZIsNegative = XMVectorLess(Z, Zero); + XMVECTOR YZYYIsNegative = XMVectorLess(YZYY, Zero); + + XMVECTOR S = XMVectorAdd(YZYY, Z); + XMVECTOR D = XMVectorSubtract(YZYY, Z); + + XMVECTOR Select = XMVectorEqualInt(ZIsNegative, YZYYIsNegative); + + XMVECTOR R0 = XMVectorPermute(NegativeV, S); + XMVECTOR R1 = XMVectorPermute(V, D); + + return XMVectorSelect(R1, R0, Select); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3AngleBetweenNormalsEst +( + FXMVECTOR N1, + FXMVECTOR N2 +) noexcept +{ + XMVECTOR Result = XMVector3Dot(N1, N2); + Result = XMVectorClamp(Result, g_XMNegativeOne.v, g_XMOne.v); + Result = XMVectorACosEst(Result); + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3AngleBetweenNormals +( + FXMVECTOR N1, + FXMVECTOR N2 +) noexcept +{ + XMVECTOR Result = XMVector3Dot(N1, N2); + Result = XMVectorClamp(Result, g_XMNegativeOne.v, g_XMOne.v); + Result = XMVectorACos(Result); + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3AngleBetweenVectors +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + XMVECTOR L1 = XMVector3ReciprocalLength(V1); + XMVECTOR L2 = XMVector3ReciprocalLength(V2); + + XMVECTOR Dot = XMVector3Dot(V1, V2); + + L1 = XMVectorMultiply(L1, L2); + + XMVECTOR CosAngle = XMVectorMultiply(Dot, L1); + CosAngle = XMVectorClamp(CosAngle, g_XMNegativeOne.v, g_XMOne.v); + + return XMVectorACos(CosAngle); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3LinePointDistance +( + FXMVECTOR LinePoint1, + FXMVECTOR LinePoint2, + FXMVECTOR Point +) noexcept +{ + // Given a vector PointVector from LinePoint1 to Point and a vector + // LineVector from LinePoint1 to LinePoint2, the scaled distance + // PointProjectionScale from LinePoint1 to the perpendicular projection + // of PointVector onto the line is defined as: + // + // PointProjectionScale = dot(PointVector, LineVector) / LengthSq(LineVector) + + XMVECTOR PointVector = XMVectorSubtract(Point, LinePoint1); + XMVECTOR LineVector = XMVectorSubtract(LinePoint2, LinePoint1); + + XMVECTOR LengthSq = XMVector3LengthSq(LineVector); + + XMVECTOR PointProjectionScale = XMVector3Dot(PointVector, LineVector); + PointProjectionScale = XMVectorDivide(PointProjectionScale, LengthSq); + + XMVECTOR DistanceVector = XMVectorMultiply(LineVector, PointProjectionScale); + DistanceVector = XMVectorSubtract(PointVector, DistanceVector); + + return XMVector3Length(DistanceVector); +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline void XM_CALLCONV XMVector3ComponentsFromNormal +( + XMVECTOR* pParallel, + XMVECTOR* pPerpendicular, + FXMVECTOR V, + FXMVECTOR Normal +) noexcept +{ + assert(pParallel != nullptr); + assert(pPerpendicular != nullptr); + + XMVECTOR Scale = XMVector3Dot(V, Normal); + + XMVECTOR Parallel = XMVectorMultiply(Normal, Scale); + + *pParallel = Parallel; + *pPerpendicular = XMVectorSubtract(V, Parallel); +} + +//------------------------------------------------------------------------------ +// Transform a vector using a rotation expressed as a unit quaternion + +inline XMVECTOR XM_CALLCONV XMVector3Rotate +( + FXMVECTOR V, + FXMVECTOR RotationQuaternion +) noexcept +{ + XMVECTOR A = XMVectorSelect(g_XMSelect1110.v, V, g_XMSelect1110.v); + XMVECTOR Q = XMQuaternionConjugate(RotationQuaternion); + XMVECTOR Result = XMQuaternionMultiply(Q, A); + return XMQuaternionMultiply(Result, RotationQuaternion); +} + +//------------------------------------------------------------------------------ +// Transform a vector using the inverse of a rotation expressed as a unit quaternion + +inline XMVECTOR XM_CALLCONV XMVector3InverseRotate +( + FXMVECTOR V, + FXMVECTOR RotationQuaternion +) noexcept +{ + XMVECTOR A = XMVectorSelect(g_XMSelect1110.v, V, g_XMSelect1110.v); + XMVECTOR Result = XMQuaternionMultiply(RotationQuaternion, A); + XMVECTOR Q = XMQuaternionConjugate(RotationQuaternion); + return XMQuaternionMultiply(Result, Q); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3Transform +( + FXMVECTOR V, + FXMMATRIX M +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Z = XMVectorSplatZ(V); + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiplyAdd(Z, M.r[2], M.r[3]); + Result = XMVectorMultiplyAdd(Y, M.r[1], Result); + Result = XMVectorMultiplyAdd(X, M.r[0], Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + XMVECTOR vResult = vmlaq_lane_f32(M.r[3], M.r[0], VL, 0); // X + vResult = vmlaq_lane_f32(vResult, M.r[1], VL, 1); // Y + return vmlaq_lane_f32(vResult, M.r[2], vget_high_f32(V), 0); // Z +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); // Z + vResult = XM_FMADD_PS(vResult, M.r[2], M.r[3]); + XMVECTOR vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); // Y + vResult = XM_FMADD_PS(vTemp, M.r[1], vResult); + vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); // X + vResult = XM_FMADD_PS(vTemp, M.r[0], vResult); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 26015 26019, "PREfast noise: Esp:1307" ) +#endif + +_Use_decl_annotations_ +inline XMFLOAT4* XM_CALLCONV XMVector3TransformStream +( + XMFLOAT4* pOutputStream, + size_t OutputStride, + const XMFLOAT3* pInputStream, + size_t InputStride, + size_t VectorCount, + FXMMATRIX M +) noexcept +{ + assert(pOutputStream != nullptr); + assert(pInputStream != nullptr); + + assert(InputStride >= sizeof(XMFLOAT3)); + _Analysis_assume_(InputStride >= sizeof(XMFLOAT3)); + + assert(OutputStride >= sizeof(XMFLOAT4)); + _Analysis_assume_(OutputStride >= sizeof(XMFLOAT4)); + +#if defined(_XM_NO_INTRINSICS_) + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + const XMVECTOR row3 = M.r[3]; + + for (size_t i = 0; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + XMVECTOR Z = XMVectorSplatZ(V); + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiplyAdd(Z, row2, row3); + Result = XMVectorMultiplyAdd(Y, row1, Result); + Result = XMVectorMultiplyAdd(X, row0, Result); + + XMStoreFloat4(reinterpret_cast(pOutputVector), Result); + + pInputVector += InputStride; + pOutputVector += OutputStride; + } + + return pOutputStream; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + const XMVECTOR row3 = M.r[3]; + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if ((InputStride == sizeof(XMFLOAT3)) && (OutputStride == sizeof(XMFLOAT4))) + { + for (size_t j = 0; j < four; ++j) + { + float32x4x3_t V = vld3q_f32(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT3) * 4; + + float32x2_t r3 = vget_low_f32(row3); + float32x2_t r = vget_low_f32(row0); + XMVECTOR vResult0 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), V.val[0], r, 0); // Ax+M + XMVECTOR vResult1 = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), V.val[0], r, 1); // Bx+N + + XM_PREFETCH(pInputVector); + + r3 = vget_high_f32(row3); + r = vget_high_f32(row0); + XMVECTOR vResult2 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), V.val[0], r, 0); // Cx+O + XMVECTOR vResult3 = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), V.val[0], r, 1); // Dx+P + + XM_PREFETCH(pInputVector + XM_CACHE_LINE_SIZE); + + r = vget_low_f32(row1); + vResult0 = vmlaq_lane_f32(vResult0, V.val[1], r, 0); // Ax+Ey+M + vResult1 = vmlaq_lane_f32(vResult1, V.val[1], r, 1); // Bx+Fy+N + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 2)); + + r = vget_high_f32(row1); + vResult2 = vmlaq_lane_f32(vResult2, V.val[1], r, 0); // Cx+Gy+O + vResult3 = vmlaq_lane_f32(vResult3, V.val[1], r, 1); // Dx+Hy+P + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 3)); + + r = vget_low_f32(row2); + vResult0 = vmlaq_lane_f32(vResult0, V.val[2], r, 0); // Ax+Ey+Iz+M + vResult1 = vmlaq_lane_f32(vResult1, V.val[2], r, 1); // Bx+Fy+Jz+N + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 4)); + + r = vget_high_f32(row2); + vResult2 = vmlaq_lane_f32(vResult2, V.val[2], r, 0); // Cx+Gy+Kz+O + vResult3 = vmlaq_lane_f32(vResult3, V.val[2], r, 1); // Dx+Hy+Lz+P + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 5)); + + float32x4x4_t R; + R.val[0] = vResult0; + R.val[1] = vResult1; + R.val[2] = vResult2; + R.val[3] = vResult3; + + vst4q_f32(reinterpret_cast(pOutputVector), R); + pOutputVector += sizeof(XMFLOAT4) * 4; + + i += 4; + } + } + } + + for (; i < VectorCount; i++) + { + float32x2_t VL = vld1_f32(reinterpret_cast(pInputVector)); + float32x2_t zero = vdup_n_f32(0); + float32x2_t VH = vld1_lane_f32(reinterpret_cast(pInputVector) + 2, zero, 0); + pInputVector += InputStride; + + XMVECTOR vResult = vmlaq_lane_f32(row3, row0, VL, 0); // X + vResult = vmlaq_lane_f32(vResult, row1, VL, 1); // Y + vResult = vmlaq_lane_f32(vResult, row2, VH, 0); // Z + + vst1q_f32(reinterpret_cast(pOutputVector), vResult); + pOutputVector += OutputStride; + } + + return pOutputStream; +#elif defined(_XM_SSE_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + const XMVECTOR row3 = M.r[3]; + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if (InputStride == sizeof(XMFLOAT3)) + { + if (!(reinterpret_cast(pOutputStream) & 0xF) && !(OutputStride & 0xF)) + { + // Packed input, aligned output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, row2, row3); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + i += 4; + } + } + else + { + // Packed input, unaligned output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, row2, row3); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + i += 4; + } + } + } + } + + if (!(reinterpret_cast(pOutputStream) & 0xF) && !(OutputStride & 0xF)) + { + // Aligned output + for (; i < VectorCount; ++i) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR Z = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, row2, row3); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + } + } + else + { + // Unaligned output + for (; i < VectorCount; ++i) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR Z = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, row2, row3); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + } + } + + XM_SFENCE(); + + return pOutputStream; +#endif +} + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3TransformCoord +( + FXMVECTOR V, + FXMMATRIX M +) noexcept +{ + XMVECTOR Z = XMVectorSplatZ(V); + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiplyAdd(Z, M.r[2], M.r[3]); + Result = XMVectorMultiplyAdd(Y, M.r[1], Result); + Result = XMVectorMultiplyAdd(X, M.r[0], Result); + + XMVECTOR W = XMVectorSplatW(Result); + return XMVectorDivide(Result, W); +} + +//------------------------------------------------------------------------------ + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 26015 26019, "PREfast noise: Esp:1307" ) +#endif + +_Use_decl_annotations_ +inline XMFLOAT3* XM_CALLCONV XMVector3TransformCoordStream +( + XMFLOAT3* pOutputStream, + size_t OutputStride, + const XMFLOAT3* pInputStream, + size_t InputStride, + size_t VectorCount, + FXMMATRIX M +) noexcept +{ + assert(pOutputStream != nullptr); + assert(pInputStream != nullptr); + + assert(InputStride >= sizeof(XMFLOAT3)); + _Analysis_assume_(InputStride >= sizeof(XMFLOAT3)); + + assert(OutputStride >= sizeof(XMFLOAT3)); + _Analysis_assume_(OutputStride >= sizeof(XMFLOAT3)); + +#if defined(_XM_NO_INTRINSICS_) + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + const XMVECTOR row3 = M.r[3]; + + for (size_t i = 0; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + XMVECTOR Z = XMVectorSplatZ(V); + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiplyAdd(Z, row2, row3); + Result = XMVectorMultiplyAdd(Y, row1, Result); + Result = XMVectorMultiplyAdd(X, row0, Result); + + XMVECTOR W = XMVectorSplatW(Result); + + Result = XMVectorDivide(Result, W); + + XMStoreFloat3(reinterpret_cast(pOutputVector), Result); + + pInputVector += InputStride; + pOutputVector += OutputStride; + } + + return pOutputStream; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + const XMVECTOR row3 = M.r[3]; + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if ((InputStride == sizeof(XMFLOAT3)) && (OutputStride == sizeof(XMFLOAT3))) + { + for (size_t j = 0; j < four; ++j) + { + float32x4x3_t V = vld3q_f32(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT3) * 4; + + float32x2_t r3 = vget_low_f32(row3); + float32x2_t r = vget_low_f32(row0); + XMVECTOR vResult0 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), V.val[0], r, 0); // Ax+M + XMVECTOR vResult1 = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), V.val[0], r, 1); // Bx+N + + XM_PREFETCH(pInputVector); + + r3 = vget_high_f32(row3); + r = vget_high_f32(row0); + XMVECTOR vResult2 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), V.val[0], r, 0); // Cx+O + XMVECTOR W = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), V.val[0], r, 1); // Dx+P + + XM_PREFETCH(pInputVector + XM_CACHE_LINE_SIZE); + + r = vget_low_f32(row1); + vResult0 = vmlaq_lane_f32(vResult0, V.val[1], r, 0); // Ax+Ey+M + vResult1 = vmlaq_lane_f32(vResult1, V.val[1], r, 1); // Bx+Fy+N + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 2)); + + r = vget_high_f32(row1); + vResult2 = vmlaq_lane_f32(vResult2, V.val[1], r, 0); // Cx+Gy+O + W = vmlaq_lane_f32(W, V.val[1], r, 1); // Dx+Hy+P + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 3)); + + r = vget_low_f32(row2); + vResult0 = vmlaq_lane_f32(vResult0, V.val[2], r, 0); // Ax+Ey+Iz+M + vResult1 = vmlaq_lane_f32(vResult1, V.val[2], r, 1); // Bx+Fy+Jz+N + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 4)); + + r = vget_high_f32(row2); + vResult2 = vmlaq_lane_f32(vResult2, V.val[2], r, 0); // Cx+Gy+Kz+O + W = vmlaq_lane_f32(W, V.val[2], r, 1); // Dx+Hy+Lz+P + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 5)); + +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + V.val[0] = vdivq_f32(vResult0, W); + V.val[1] = vdivq_f32(vResult1, W); + V.val[2] = vdivq_f32(vResult2, W); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal + float32x4_t Reciprocal = vrecpeq_f32(W); + float32x4_t S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + + V.val[0] = vmulq_f32(vResult0, Reciprocal); + V.val[1] = vmulq_f32(vResult1, Reciprocal); + V.val[2] = vmulq_f32(vResult2, Reciprocal); +#endif + + vst3q_f32(reinterpret_cast(pOutputVector), V); + pOutputVector += sizeof(XMFLOAT3) * 4; + + i += 4; + } + } + } + + for (; i < VectorCount; i++) + { + float32x2_t VL = vld1_f32(reinterpret_cast(pInputVector)); + float32x2_t zero = vdup_n_f32(0); + float32x2_t VH = vld1_lane_f32(reinterpret_cast(pInputVector) + 2, zero, 0); + pInputVector += InputStride; + + XMVECTOR vResult = vmlaq_lane_f32(row3, row0, VL, 0); // X + vResult = vmlaq_lane_f32(vResult, row1, VL, 1); // Y + vResult = vmlaq_lane_f32(vResult, row2, VH, 0); // Z + + VH = vget_high_f32(vResult); + XMVECTOR W = vdupq_lane_f32(VH, 1); + +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + vResult = vdivq_f32(vResult, W); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal for W + float32x4_t Reciprocal = vrecpeq_f32(W); + float32x4_t S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + + vResult = vmulq_f32(vResult, Reciprocal); +#endif + + VL = vget_low_f32(vResult); + vst1_f32(reinterpret_cast(pOutputVector), VL); + vst1q_lane_f32(reinterpret_cast(pOutputVector) + 2, vResult, 2); + pOutputVector += OutputStride; + } + + return pOutputStream; +#elif defined(_XM_SSE_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + const XMVECTOR row3 = M.r[3]; + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if (InputStride == sizeof(XMFLOAT3)) + { + if (OutputStride == sizeof(XMFLOAT3)) + { + if (!(reinterpret_cast(pOutputStream) & 0xF)) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, row2, row3); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + V1 = _mm_div_ps(vTemp, W); + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + V2 = _mm_div_ps(vTemp, W); + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + V3 = _mm_div_ps(vTemp, W); + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + V4 = _mm_div_ps(vTemp, W); + + // Pack and store the vectors + XM3PACK4INTO3(vTemp); + XM_STREAM_PS(reinterpret_cast(pOutputVector), V1); + XM_STREAM_PS(reinterpret_cast(pOutputVector + 16), vTemp); + XM_STREAM_PS(reinterpret_cast(pOutputVector + 32), V3); + pOutputVector += sizeof(XMFLOAT3) * 4; + i += 4; + } + } + else + { + // Packed input, unaligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, row2, row3); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + V1 = _mm_div_ps(vTemp, W); + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + V2 = _mm_div_ps(vTemp, W); + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + V3 = _mm_div_ps(vTemp, W); + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + V4 = _mm_div_ps(vTemp, W); + + // Pack and store the vectors + XM3PACK4INTO3(vTemp); + _mm_storeu_ps(reinterpret_cast(pOutputVector), V1); + _mm_storeu_ps(reinterpret_cast(pOutputVector + 16), vTemp); + _mm_storeu_ps(reinterpret_cast(pOutputVector + 32), V3); + pOutputVector += sizeof(XMFLOAT3) * 4; + i += 4; + } + } + } + else + { + // Packed input, unpacked output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, row2, row3); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + vTemp = _mm_div_ps(vTemp, W); + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + vTemp = _mm_div_ps(vTemp, W); + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + vTemp = _mm_div_ps(vTemp, W); + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, row2, row3); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + vTemp = _mm_div_ps(vTemp, W); + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + i += 4; + } + } + } + } + + for (; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR Z = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, row2, row3); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + + vTemp = _mm_div_ps(vTemp, W); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + } + + XM_SFENCE(); + + return pOutputStream; +#endif +} + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3TransformNormal +( + FXMVECTOR V, + FXMMATRIX M +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Z = XMVectorSplatZ(V); + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiply(Z, M.r[2]); + Result = XMVectorMultiplyAdd(Y, M.r[1], Result); + Result = XMVectorMultiplyAdd(X, M.r[0], Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + XMVECTOR vResult = vmulq_lane_f32(M.r[0], VL, 0); // X + vResult = vmlaq_lane_f32(vResult, M.r[1], VL, 1); // Y + return vmlaq_lane_f32(vResult, M.r[2], vget_high_f32(V), 0); // Z +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); // Z + vResult = _mm_mul_ps(vResult, M.r[2]); + XMVECTOR vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); // Y + vResult = XM_FMADD_PS(vTemp, M.r[1], vResult); + vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); // X + vResult = XM_FMADD_PS(vTemp, M.r[0], vResult); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 26015 26019, "PREfast noise: Esp:1307" ) +#endif + +_Use_decl_annotations_ +inline XMFLOAT3* XM_CALLCONV XMVector3TransformNormalStream +( + XMFLOAT3* pOutputStream, + size_t OutputStride, + const XMFLOAT3* pInputStream, + size_t InputStride, + size_t VectorCount, + FXMMATRIX M +) noexcept +{ + assert(pOutputStream != nullptr); + assert(pInputStream != nullptr); + + assert(InputStride >= sizeof(XMFLOAT3)); + _Analysis_assume_(InputStride >= sizeof(XMFLOAT3)); + + assert(OutputStride >= sizeof(XMFLOAT3)); + _Analysis_assume_(OutputStride >= sizeof(XMFLOAT3)); + +#if defined(_XM_NO_INTRINSICS_) + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + + for (size_t i = 0; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + XMVECTOR Z = XMVectorSplatZ(V); + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiply(Z, row2); + Result = XMVectorMultiplyAdd(Y, row1, Result); + Result = XMVectorMultiplyAdd(X, row0, Result); + + XMStoreFloat3(reinterpret_cast(pOutputVector), Result); + + pInputVector += InputStride; + pOutputVector += OutputStride; + } + + return pOutputStream; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if ((InputStride == sizeof(XMFLOAT3)) && (OutputStride == sizeof(XMFLOAT3))) + { + for (size_t j = 0; j < four; ++j) + { + float32x4x3_t V = vld3q_f32(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT3) * 4; + + float32x2_t r = vget_low_f32(row0); + XMVECTOR vResult0 = vmulq_lane_f32(V.val[0], r, 0); // Ax + XMVECTOR vResult1 = vmulq_lane_f32(V.val[0], r, 1); // Bx + + XM_PREFETCH(pInputVector); + + r = vget_high_f32(row0); + XMVECTOR vResult2 = vmulq_lane_f32(V.val[0], r, 0); // Cx + + XM_PREFETCH(pInputVector + XM_CACHE_LINE_SIZE); + + r = vget_low_f32(row1); + vResult0 = vmlaq_lane_f32(vResult0, V.val[1], r, 0); // Ax+Ey + vResult1 = vmlaq_lane_f32(vResult1, V.val[1], r, 1); // Bx+Fy + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 2)); + + r = vget_high_f32(row1); + vResult2 = vmlaq_lane_f32(vResult2, V.val[1], r, 0); // Cx+Gy + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 3)); + + r = vget_low_f32(row2); + vResult0 = vmlaq_lane_f32(vResult0, V.val[2], r, 0); // Ax+Ey+Iz + vResult1 = vmlaq_lane_f32(vResult1, V.val[2], r, 1); // Bx+Fy+Jz + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 4)); + + r = vget_high_f32(row2); + vResult2 = vmlaq_lane_f32(vResult2, V.val[2], r, 0); // Cx+Gy+Kz + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 5)); + + V.val[0] = vResult0; + V.val[1] = vResult1; + V.val[2] = vResult2; + + vst3q_f32(reinterpret_cast(pOutputVector), V); + pOutputVector += sizeof(XMFLOAT3) * 4; + + i += 4; + } + } + } + + for (; i < VectorCount; i++) + { + float32x2_t VL = vld1_f32(reinterpret_cast(pInputVector)); + float32x2_t zero = vdup_n_f32(0); + float32x2_t VH = vld1_lane_f32(reinterpret_cast(pInputVector) + 2, zero, 0); + pInputVector += InputStride; + + XMVECTOR vResult = vmulq_lane_f32(row0, VL, 0); // X + vResult = vmlaq_lane_f32(vResult, row1, VL, 1); // Y + vResult = vmlaq_lane_f32(vResult, row2, VH, 0); // Z + + VL = vget_low_f32(vResult); + vst1_f32(reinterpret_cast(pOutputVector), VL); + vst1q_lane_f32(reinterpret_cast(pOutputVector) + 2, vResult, 2); + pOutputVector += OutputStride; + } + + return pOutputStream; +#elif defined(_XM_SSE_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if (InputStride == sizeof(XMFLOAT3)) + { + if (OutputStride == sizeof(XMFLOAT3)) + { + if (!(reinterpret_cast(pOutputStream) & 0xF)) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = _mm_mul_ps(Z, row2); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + V1 = _mm_add_ps(vTemp, vTemp3); + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = _mm_mul_ps(Z, row2); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + V2 = _mm_add_ps(vTemp, vTemp3); + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = _mm_mul_ps(Z, row2); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + V3 = _mm_add_ps(vTemp, vTemp3); + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = _mm_mul_ps(Z, row2); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + V4 = _mm_add_ps(vTemp, vTemp3); + + // Pack and store the vectors + XM3PACK4INTO3(vTemp); + XM_STREAM_PS(reinterpret_cast(pOutputVector), V1); + XM_STREAM_PS(reinterpret_cast(pOutputVector + 16), vTemp); + XM_STREAM_PS(reinterpret_cast(pOutputVector + 32), V3); + pOutputVector += sizeof(XMFLOAT3) * 4; + i += 4; + } + } + else + { + // Packed input, unaligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = _mm_mul_ps(Z, row2); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + V1 = _mm_add_ps(vTemp, vTemp3); + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = _mm_mul_ps(Z, row2); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + V2 = _mm_add_ps(vTemp, vTemp3); + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = _mm_mul_ps(Z, row2); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + V3 = _mm_add_ps(vTemp, vTemp3); + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = _mm_mul_ps(Z, row2); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + V4 = _mm_add_ps(vTemp, vTemp3); + + // Pack and store the vectors + XM3PACK4INTO3(vTemp); + _mm_storeu_ps(reinterpret_cast(pOutputVector), V1); + _mm_storeu_ps(reinterpret_cast(pOutputVector + 16), vTemp); + _mm_storeu_ps(reinterpret_cast(pOutputVector + 32), V3); + pOutputVector += sizeof(XMFLOAT3) * 4; + i += 4; + } + } + } + else + { + // Packed input, unpacked output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = _mm_mul_ps(Z, row2); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = _mm_mul_ps(Z, row2); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = _mm_mul_ps(Z, row2); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = _mm_mul_ps(Z, row2); + vTemp2 = _mm_mul_ps(Y, row1); + vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + i += 4; + } + } + } + } + + for (; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR Z = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = _mm_mul_ps(Z, row2); + XMVECTOR vTemp2 = _mm_mul_ps(Y, row1); + XMVECTOR vTemp3 = _mm_mul_ps(X, row0); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + } + + XM_SFENCE(); + + return pOutputStream; +#endif +} + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3Project +( + FXMVECTOR V, + float ViewportX, + float ViewportY, + float ViewportWidth, + float ViewportHeight, + float ViewportMinZ, + float ViewportMaxZ, + FXMMATRIX Projection, + CXMMATRIX View, + CXMMATRIX World +) noexcept +{ + const float HalfViewportWidth = ViewportWidth * 0.5f; + const float HalfViewportHeight = ViewportHeight * 0.5f; + + XMVECTOR Scale = XMVectorSet(HalfViewportWidth, -HalfViewportHeight, ViewportMaxZ - ViewportMinZ, 0.0f); + XMVECTOR Offset = XMVectorSet(ViewportX + HalfViewportWidth, ViewportY + HalfViewportHeight, ViewportMinZ, 0.0f); + + XMMATRIX Transform = XMMatrixMultiply(World, View); + Transform = XMMatrixMultiply(Transform, Projection); + + XMVECTOR Result = XMVector3TransformCoord(V, Transform); + + Result = XMVectorMultiplyAdd(Result, Scale, Offset); + + return Result; +} + +//------------------------------------------------------------------------------ + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 26015 26019, "PREfast noise: Esp:1307" ) +#endif + +_Use_decl_annotations_ +inline XMFLOAT3* XM_CALLCONV XMVector3ProjectStream +( + XMFLOAT3* pOutputStream, + size_t OutputStride, + const XMFLOAT3* pInputStream, + size_t InputStride, + size_t VectorCount, + float ViewportX, + float ViewportY, + float ViewportWidth, + float ViewportHeight, + float ViewportMinZ, + float ViewportMaxZ, + FXMMATRIX Projection, + CXMMATRIX View, + CXMMATRIX World +) noexcept +{ + assert(pOutputStream != nullptr); + assert(pInputStream != nullptr); + + assert(InputStride >= sizeof(XMFLOAT3)); + _Analysis_assume_(InputStride >= sizeof(XMFLOAT3)); + + assert(OutputStride >= sizeof(XMFLOAT3)); + _Analysis_assume_(OutputStride >= sizeof(XMFLOAT3)); + +#if defined(_XM_NO_INTRINSICS_) + + const float HalfViewportWidth = ViewportWidth * 0.5f; + const float HalfViewportHeight = ViewportHeight * 0.5f; + + XMVECTOR Scale = XMVectorSet(HalfViewportWidth, -HalfViewportHeight, ViewportMaxZ - ViewportMinZ, 1.0f); + XMVECTOR Offset = XMVectorSet(ViewportX + HalfViewportWidth, ViewportY + HalfViewportHeight, ViewportMinZ, 0.0f); + + XMMATRIX Transform = XMMatrixMultiply(World, View); + Transform = XMMatrixMultiply(Transform, Projection); + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + for (size_t i = 0; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + + XMVECTOR Result = XMVector3TransformCoord(V, Transform); + Result = XMVectorMultiplyAdd(Result, Scale, Offset); + + XMStoreFloat3(reinterpret_cast(pOutputVector), Result); + + pInputVector += InputStride; + pOutputVector += OutputStride; + } + + return pOutputStream; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + const float HalfViewportWidth = ViewportWidth * 0.5f; + const float HalfViewportHeight = ViewportHeight * 0.5f; + + XMMATRIX Transform = XMMatrixMultiply(World, View); + Transform = XMMatrixMultiply(Transform, Projection); + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if ((InputStride == sizeof(XMFLOAT3)) && (OutputStride == sizeof(XMFLOAT3))) + { + XMVECTOR ScaleX = vdupq_n_f32(HalfViewportWidth); + XMVECTOR ScaleY = vdupq_n_f32(-HalfViewportHeight); + XMVECTOR ScaleZ = vdupq_n_f32(ViewportMaxZ - ViewportMinZ); + + XMVECTOR OffsetX = vdupq_n_f32(ViewportX + HalfViewportWidth); + XMVECTOR OffsetY = vdupq_n_f32(ViewportY + HalfViewportHeight); + XMVECTOR OffsetZ = vdupq_n_f32(ViewportMinZ); + + for (size_t j = 0; j < four; ++j) + { + float32x4x3_t V = vld3q_f32(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT3) * 4; + + float32x2_t r3 = vget_low_f32(Transform.r[3]); + float32x2_t r = vget_low_f32(Transform.r[0]); + XMVECTOR vResult0 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), V.val[0], r, 0); // Ax+M + XMVECTOR vResult1 = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), V.val[0], r, 1); // Bx+N + + XM_PREFETCH(pInputVector); + + r3 = vget_high_f32(Transform.r[3]); + r = vget_high_f32(Transform.r[0]); + XMVECTOR vResult2 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), V.val[0], r, 0); // Cx+O + XMVECTOR W = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), V.val[0], r, 1); // Dx+P + + XM_PREFETCH(pInputVector + XM_CACHE_LINE_SIZE); + + r = vget_low_f32(Transform.r[1]); + vResult0 = vmlaq_lane_f32(vResult0, V.val[1], r, 0); // Ax+Ey+M + vResult1 = vmlaq_lane_f32(vResult1, V.val[1], r, 1); // Bx+Fy+N + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 2)); + + r = vget_high_f32(Transform.r[1]); + vResult2 = vmlaq_lane_f32(vResult2, V.val[1], r, 0); // Cx+Gy+O + W = vmlaq_lane_f32(W, V.val[1], r, 1); // Dx+Hy+P + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 3)); + + r = vget_low_f32(Transform.r[2]); + vResult0 = vmlaq_lane_f32(vResult0, V.val[2], r, 0); // Ax+Ey+Iz+M + vResult1 = vmlaq_lane_f32(vResult1, V.val[2], r, 1); // Bx+Fy+Jz+N + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 4)); + + r = vget_high_f32(Transform.r[2]); + vResult2 = vmlaq_lane_f32(vResult2, V.val[2], r, 0); // Cx+Gy+Kz+O + W = vmlaq_lane_f32(W, V.val[2], r, 1); // Dx+Hy+Lz+P + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 5)); + +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + vResult0 = vdivq_f32(vResult0, W); + vResult1 = vdivq_f32(vResult1, W); + vResult2 = vdivq_f32(vResult2, W); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal + float32x4_t Reciprocal = vrecpeq_f32(W); + float32x4_t S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + + vResult0 = vmulq_f32(vResult0, Reciprocal); + vResult1 = vmulq_f32(vResult1, Reciprocal); + vResult2 = vmulq_f32(vResult2, Reciprocal); +#endif + + V.val[0] = vmlaq_f32(OffsetX, vResult0, ScaleX); + V.val[1] = vmlaq_f32(OffsetY, vResult1, ScaleY); + V.val[2] = vmlaq_f32(OffsetZ, vResult2, ScaleZ); + + vst3q_f32(reinterpret_cast(pOutputVector), V); + pOutputVector += sizeof(XMFLOAT3) * 4; + + i += 4; + } + } + } + + if (i < VectorCount) + { + XMVECTOR Scale = XMVectorSet(HalfViewportWidth, -HalfViewportHeight, ViewportMaxZ - ViewportMinZ, 1.0f); + XMVECTOR Offset = XMVectorSet(ViewportX + HalfViewportWidth, ViewportY + HalfViewportHeight, ViewportMinZ, 0.0f); + + for (; i < VectorCount; i++) + { + float32x2_t VL = vld1_f32(reinterpret_cast(pInputVector)); + float32x2_t zero = vdup_n_f32(0); + float32x2_t VH = vld1_lane_f32(reinterpret_cast(pInputVector) + 2, zero, 0); + pInputVector += InputStride; + + XMVECTOR vResult = vmlaq_lane_f32(Transform.r[3], Transform.r[0], VL, 0); // X + vResult = vmlaq_lane_f32(vResult, Transform.r[1], VL, 1); // Y + vResult = vmlaq_lane_f32(vResult, Transform.r[2], VH, 0); // Z + + VH = vget_high_f32(vResult); + XMVECTOR W = vdupq_lane_f32(VH, 1); + +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + vResult = vdivq_f32(vResult, W); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal for W + float32x4_t Reciprocal = vrecpeq_f32(W); + float32x4_t S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + + vResult = vmulq_f32(vResult, Reciprocal); +#endif + + vResult = vmlaq_f32(Offset, vResult, Scale); + + VL = vget_low_f32(vResult); + vst1_f32(reinterpret_cast(pOutputVector), VL); + vst1q_lane_f32(reinterpret_cast(pOutputVector) + 2, vResult, 2); + pOutputVector += OutputStride; + } + } + + return pOutputStream; +#elif defined(_XM_SSE_INTRINSICS_) + const float HalfViewportWidth = ViewportWidth * 0.5f; + const float HalfViewportHeight = ViewportHeight * 0.5f; + + XMVECTOR Scale = XMVectorSet(HalfViewportWidth, -HalfViewportHeight, ViewportMaxZ - ViewportMinZ, 1.0f); + XMVECTOR Offset = XMVectorSet(ViewportX + HalfViewportWidth, ViewportY + HalfViewportHeight, ViewportMinZ, 0.0f); + + XMMATRIX Transform = XMMatrixMultiply(World, View); + Transform = XMMatrixMultiply(Transform, Projection); + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if (InputStride == sizeof(XMFLOAT3)) + { + if (OutputStride == sizeof(XMFLOAT3)) + { + if (!(reinterpret_cast(pOutputStream) & 0xF)) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + XMVECTOR vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + XMVECTOR vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + V1 = XM_FMADD_PS(vTemp, Scale, Offset); + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + V2 = XM_FMADD_PS(vTemp, Scale, Offset); + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + V3 = XM_FMADD_PS(vTemp, Scale, Offset); + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + V4 = XM_FMADD_PS(vTemp, Scale, Offset); + + // Pack and store the vectors + XM3PACK4INTO3(vTemp); + XM_STREAM_PS(reinterpret_cast(pOutputVector), V1); + XM_STREAM_PS(reinterpret_cast(pOutputVector + 16), vTemp); + XM_STREAM_PS(reinterpret_cast(pOutputVector + 32), V3); + pOutputVector += sizeof(XMFLOAT3) * 4; + i += 4; + } + } + else + { + // Packed input, unaligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + XMVECTOR vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + XMVECTOR vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + V1 = XM_FMADD_PS(vTemp, Scale, Offset); + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + V2 = XM_FMADD_PS(vTemp, Scale, Offset); + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + V3 = XM_FMADD_PS(vTemp, Scale, Offset); + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + V4 = XM_FMADD_PS(vTemp, Scale, Offset); + + // Pack and store the vectors + XM3PACK4INTO3(vTemp); + _mm_storeu_ps(reinterpret_cast(pOutputVector), V1); + _mm_storeu_ps(reinterpret_cast(pOutputVector + 16), vTemp); + _mm_storeu_ps(reinterpret_cast(pOutputVector + 32), V3); + pOutputVector += sizeof(XMFLOAT3) * 4; + i += 4; + } + } + } + else + { + // Packed input, unpacked output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + XMVECTOR vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + XMVECTOR vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + vTemp = XM_FMADD_PS(vTemp, Scale, Offset); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 2 + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + vTemp = XM_FMADD_PS(vTemp, Scale, Offset); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 3 + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + vTemp = XM_FMADD_PS(vTemp, Scale, Offset); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 4 + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + vTemp = XM_FMADD_PS(vTemp, Scale, Offset); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + i += 4; + } + } + } + } + + for (; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR Z = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + XMVECTOR vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + XMVECTOR vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + vTemp = XM_FMADD_PS(vTemp, Scale, Offset); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + } + + XM_SFENCE(); + + return pOutputStream; +#endif +} + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector3Unproject +( + FXMVECTOR V, + float ViewportX, + float ViewportY, + float ViewportWidth, + float ViewportHeight, + float ViewportMinZ, + float ViewportMaxZ, + FXMMATRIX Projection, + CXMMATRIX View, + CXMMATRIX World +) noexcept +{ + static const XMVECTORF32 D = { { { -1.0f, 1.0f, 0.0f, 0.0f } } }; + + XMVECTOR Scale = XMVectorSet(ViewportWidth * 0.5f, -ViewportHeight * 0.5f, ViewportMaxZ - ViewportMinZ, 1.0f); + Scale = XMVectorReciprocal(Scale); + + XMVECTOR Offset = XMVectorSet(-ViewportX, -ViewportY, -ViewportMinZ, 0.0f); + Offset = XMVectorMultiplyAdd(Scale, Offset, D.v); + + XMMATRIX Transform = XMMatrixMultiply(World, View); + Transform = XMMatrixMultiply(Transform, Projection); + Transform = XMMatrixInverse(nullptr, Transform); + + XMVECTOR Result = XMVectorMultiplyAdd(V, Scale, Offset); + + return XMVector3TransformCoord(Result, Transform); +} + +//------------------------------------------------------------------------------ + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 26015 26019, "PREfast noise: Esp:1307" ) +#endif + +_Use_decl_annotations_ +inline XMFLOAT3* XM_CALLCONV XMVector3UnprojectStream +( + XMFLOAT3* pOutputStream, + size_t OutputStride, + const XMFLOAT3* pInputStream, + size_t InputStride, + size_t VectorCount, + float ViewportX, + float ViewportY, + float ViewportWidth, + float ViewportHeight, + float ViewportMinZ, + float ViewportMaxZ, + FXMMATRIX Projection, + CXMMATRIX View, + CXMMATRIX World +) noexcept +{ + assert(pOutputStream != nullptr); + assert(pInputStream != nullptr); + + assert(InputStride >= sizeof(XMFLOAT3)); + _Analysis_assume_(InputStride >= sizeof(XMFLOAT3)); + + assert(OutputStride >= sizeof(XMFLOAT3)); + _Analysis_assume_(OutputStride >= sizeof(XMFLOAT3)); + +#if defined(_XM_NO_INTRINSICS_) + + static const XMVECTORF32 D = { { { -1.0f, 1.0f, 0.0f, 0.0f } } }; + + XMVECTOR Scale = XMVectorSet(ViewportWidth * 0.5f, -ViewportHeight * 0.5f, ViewportMaxZ - ViewportMinZ, 1.0f); + Scale = XMVectorReciprocal(Scale); + + XMVECTOR Offset = XMVectorSet(-ViewportX, -ViewportY, -ViewportMinZ, 0.0f); + Offset = XMVectorMultiplyAdd(Scale, Offset, D.v); + + XMMATRIX Transform = XMMatrixMultiply(World, View); + Transform = XMMatrixMultiply(Transform, Projection); + Transform = XMMatrixInverse(nullptr, Transform); + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + for (size_t i = 0; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + + XMVECTOR Result = XMVectorMultiplyAdd(V, Scale, Offset); + + Result = XMVector3TransformCoord(Result, Transform); + + XMStoreFloat3(reinterpret_cast(pOutputVector), Result); + + pInputVector += InputStride; + pOutputVector += OutputStride; + } + + return pOutputStream; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMMATRIX Transform = XMMatrixMultiply(World, View); + Transform = XMMatrixMultiply(Transform, Projection); + Transform = XMMatrixInverse(nullptr, Transform); + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + float sx = 1.f / (ViewportWidth * 0.5f); + float sy = 1.f / (-ViewportHeight * 0.5f); + float sz = 1.f / (ViewportMaxZ - ViewportMinZ); + + float ox = (-ViewportX * sx) - 1.f; + float oy = (-ViewportY * sy) + 1.f; + float oz = (-ViewportMinZ * sz); + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if ((InputStride == sizeof(XMFLOAT3)) && (OutputStride == sizeof(XMFLOAT3))) + { + for (size_t j = 0; j < four; ++j) + { + float32x4x3_t V = vld3q_f32(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT3) * 4; + + XMVECTOR ScaleX = vdupq_n_f32(sx); + XMVECTOR OffsetX = vdupq_n_f32(ox); + XMVECTOR VX = vmlaq_f32(OffsetX, ScaleX, V.val[0]); + + float32x2_t r3 = vget_low_f32(Transform.r[3]); + float32x2_t r = vget_low_f32(Transform.r[0]); + XMVECTOR vResult0 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), VX, r, 0); // Ax+M + XMVECTOR vResult1 = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), VX, r, 1); // Bx+N + + XM_PREFETCH(pInputVector); + + r3 = vget_high_f32(Transform.r[3]); + r = vget_high_f32(Transform.r[0]); + XMVECTOR vResult2 = vmlaq_lane_f32(vdupq_lane_f32(r3, 0), VX, r, 0); // Cx+O + XMVECTOR W = vmlaq_lane_f32(vdupq_lane_f32(r3, 1), VX, r, 1); // Dx+P + + XM_PREFETCH(pInputVector + XM_CACHE_LINE_SIZE); + + XMVECTOR ScaleY = vdupq_n_f32(sy); + XMVECTOR OffsetY = vdupq_n_f32(oy); + XMVECTOR VY = vmlaq_f32(OffsetY, ScaleY, V.val[1]); + + r = vget_low_f32(Transform.r[1]); + vResult0 = vmlaq_lane_f32(vResult0, VY, r, 0); // Ax+Ey+M + vResult1 = vmlaq_lane_f32(vResult1, VY, r, 1); // Bx+Fy+N + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 2)); + + r = vget_high_f32(Transform.r[1]); + vResult2 = vmlaq_lane_f32(vResult2, VY, r, 0); // Cx+Gy+O + W = vmlaq_lane_f32(W, VY, r, 1); // Dx+Hy+P + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 3)); + + XMVECTOR ScaleZ = vdupq_n_f32(sz); + XMVECTOR OffsetZ = vdupq_n_f32(oz); + XMVECTOR VZ = vmlaq_f32(OffsetZ, ScaleZ, V.val[2]); + + r = vget_low_f32(Transform.r[2]); + vResult0 = vmlaq_lane_f32(vResult0, VZ, r, 0); // Ax+Ey+Iz+M + vResult1 = vmlaq_lane_f32(vResult1, VZ, r, 1); // Bx+Fy+Jz+N + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 4)); + + r = vget_high_f32(Transform.r[2]); + vResult2 = vmlaq_lane_f32(vResult2, VZ, r, 0); // Cx+Gy+Kz+O + W = vmlaq_lane_f32(W, VZ, r, 1); // Dx+Hy+Lz+P + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 5)); + +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + V.val[0] = vdivq_f32(vResult0, W); + V.val[1] = vdivq_f32(vResult1, W); + V.val[2] = vdivq_f32(vResult2, W); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal + float32x4_t Reciprocal = vrecpeq_f32(W); + float32x4_t S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + + V.val[0] = vmulq_f32(vResult0, Reciprocal); + V.val[1] = vmulq_f32(vResult1, Reciprocal); + V.val[2] = vmulq_f32(vResult2, Reciprocal); +#endif + + vst3q_f32(reinterpret_cast(pOutputVector), V); + pOutputVector += sizeof(XMFLOAT3) * 4; + + i += 4; + } + } + } + + if (i < VectorCount) + { + float32x2_t ScaleL = vcreate_f32( + static_cast(*reinterpret_cast(&sx)) + | (static_cast(*reinterpret_cast(&sy)) << 32)); + float32x2_t ScaleH = vcreate_f32(static_cast(*reinterpret_cast(&sz))); + + float32x2_t OffsetL = vcreate_f32( + static_cast(*reinterpret_cast(&ox)) + | (static_cast(*reinterpret_cast(&oy)) << 32)); + float32x2_t OffsetH = vcreate_f32(static_cast(*reinterpret_cast(&oz))); + + for (; i < VectorCount; i++) + { + float32x2_t VL = vld1_f32(reinterpret_cast(pInputVector)); + float32x2_t zero = vdup_n_f32(0); + float32x2_t VH = vld1_lane_f32(reinterpret_cast(pInputVector) + 2, zero, 0); + pInputVector += InputStride; + + VL = vmla_f32(OffsetL, VL, ScaleL); + VH = vmla_f32(OffsetH, VH, ScaleH); + + XMVECTOR vResult = vmlaq_lane_f32(Transform.r[3], Transform.r[0], VL, 0); // X + vResult = vmlaq_lane_f32(vResult, Transform.r[1], VL, 1); // Y + vResult = vmlaq_lane_f32(vResult, Transform.r[2], VH, 0); // Z + + VH = vget_high_f32(vResult); + XMVECTOR W = vdupq_lane_f32(VH, 1); + +#if defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__ + vResult = vdivq_f32(vResult, W); +#else + // 2 iterations of Newton-Raphson refinement of reciprocal for W + float32x4_t Reciprocal = vrecpeq_f32(W); + float32x4_t S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + S = vrecpsq_f32(Reciprocal, W); + Reciprocal = vmulq_f32(S, Reciprocal); + + vResult = vmulq_f32(vResult, Reciprocal); +#endif + + VL = vget_low_f32(vResult); + vst1_f32(reinterpret_cast(pOutputVector), VL); + vst1q_lane_f32(reinterpret_cast(pOutputVector) + 2, vResult, 2); + pOutputVector += OutputStride; + } + } + + return pOutputStream; +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 D = { { { -1.0f, 1.0f, 0.0f, 0.0f } } }; + + XMVECTOR Scale = XMVectorSet(ViewportWidth * 0.5f, -ViewportHeight * 0.5f, ViewportMaxZ - ViewportMinZ, 1.0f); + Scale = XMVectorReciprocal(Scale); + + XMVECTOR Offset = XMVectorSet(-ViewportX, -ViewportY, -ViewportMinZ, 0.0f); + Offset = _mm_mul_ps(Scale, Offset); + Offset = _mm_add_ps(Offset, D); + + XMMATRIX Transform = XMMatrixMultiply(World, View); + Transform = XMMatrixMultiply(Transform, Projection); + Transform = XMMatrixInverse(nullptr, Transform); + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if (InputStride == sizeof(XMFLOAT3)) + { + if (OutputStride == sizeof(XMFLOAT3)) + { + if (!(reinterpret_cast(pOutputStream) & 0xF)) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + V1 = XM_FMADD_PS(V1, Scale, Offset); + + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + XMVECTOR vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + XMVECTOR vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + V1 = _mm_div_ps(vTemp, W); + + // Result 2 + V2 = XM_FMADD_PS(V2, Scale, Offset); + + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + V2 = _mm_div_ps(vTemp, W); + + // Result 3 + V3 = XM_FMADD_PS(V3, Scale, Offset); + + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + V3 = _mm_div_ps(vTemp, W); + + // Result 4 + V4 = XM_FMADD_PS(V4, Scale, Offset); + + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + V4 = _mm_div_ps(vTemp, W); + + // Pack and store the vectors + XM3PACK4INTO3(vTemp); + XM_STREAM_PS(reinterpret_cast(pOutputVector), V1); + XM_STREAM_PS(reinterpret_cast(pOutputVector + 16), vTemp); + XM_STREAM_PS(reinterpret_cast(pOutputVector + 32), V3); + pOutputVector += sizeof(XMFLOAT3) * 4; + i += 4; + } + } + else + { + // Packed input, unaligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + V1 = XM_FMADD_PS(V1, Scale, Offset); + + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + XMVECTOR vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + XMVECTOR vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + V1 = _mm_div_ps(vTemp, W); + + // Result 2 + V2 = XM_FMADD_PS(V2, Scale, Offset); + + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + V2 = _mm_div_ps(vTemp, W); + + // Result 3 + V3 = XM_FMADD_PS(V3, Scale, Offset); + + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + V3 = _mm_div_ps(vTemp, W); + + // Result 4 + V4 = XM_FMADD_PS(V4, Scale, Offset); + + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + V4 = _mm_div_ps(vTemp, W); + + // Pack and store the vectors + XM3PACK4INTO3(vTemp); + _mm_storeu_ps(reinterpret_cast(pOutputVector), V1); + _mm_storeu_ps(reinterpret_cast(pOutputVector + 16), vTemp); + _mm_storeu_ps(reinterpret_cast(pOutputVector + 32), V3); + pOutputVector += sizeof(XMFLOAT3) * 4; + i += 4; + } + } + } + else + { + // Packed input, unpacked output + for (size_t j = 0; j < four; ++j) + { + __m128 V1 = _mm_loadu_ps(reinterpret_cast(pInputVector)); + __m128 L2 = _mm_loadu_ps(reinterpret_cast(pInputVector + 16)); + __m128 L3 = _mm_loadu_ps(reinterpret_cast(pInputVector + 32)); + pInputVector += sizeof(XMFLOAT3) * 4; + + // Unpack the 4 vectors (.w components are junk) + XM3UNPACK3INTO4(V1, L2, L3); + + // Result 1 + V1 = XM_FMADD_PS(V1, Scale, Offset); + + XMVECTOR Z = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + XMVECTOR vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + XMVECTOR vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 2 + V2 = XM_FMADD_PS(V2, Scale, Offset); + + Z = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V2, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 3 + V3 = XM_FMADD_PS(V3, Scale, Offset); + + Z = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + // Result 4 + V4 = XM_FMADD_PS(V4, Scale, Offset); + + Z = XM_PERMUTE_PS(V4, _MM_SHUFFLE(2, 2, 2, 2)); + Y = XM_PERMUTE_PS(V4, _MM_SHUFFLE(1, 1, 1, 1)); + X = XM_PERMUTE_PS(V4, _MM_SHUFFLE(0, 0, 0, 0)); + + vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + + i += 4; + } + } + } + } + + for (; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + V = _mm_mul_ps(V, Scale); + V = _mm_add_ps(V, Offset); + + XMVECTOR Z = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR Y = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR X = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + + XMVECTOR vTemp = XM_FMADD_PS(Z, Transform.r[2], Transform.r[3]); + XMVECTOR vTemp2 = _mm_mul_ps(Y, Transform.r[1]); + XMVECTOR vTemp3 = _mm_mul_ps(X, Transform.r[0]); + vTemp = _mm_add_ps(vTemp, vTemp2); + vTemp = _mm_add_ps(vTemp, vTemp3); + + XMVECTOR W = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 3, 3, 3)); + vTemp = _mm_div_ps(vTemp, W); + + XMStoreFloat3(reinterpret_cast(pOutputVector), vTemp); + pOutputVector += OutputStride; + } + + XM_SFENCE(); + + return pOutputStream; +#endif +} + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + +/**************************************************************************** + * + * 4D Vector + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + // Comparison operations + //------------------------------------------------------------------------------ + + //------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector4Equal +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] == V2.vector4_f32[0]) && (V1.vector4_f32[1] == V2.vector4_f32[1]) && (V1.vector4_f32[2] == V2.vector4_f32[2]) && (V1.vector4_f32[3] == V2.vector4_f32[3])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) == 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpeq_ps(V1, V2); + return ((_mm_movemask_ps(vTemp) == 0x0f) != 0); +#else + return XMComparisonAllTrue(XMVector4EqualR(V1, V2)); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector4EqualR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + uint32_t CR = 0; + + if ((V1.vector4_f32[0] == V2.vector4_f32[0]) && + (V1.vector4_f32[1] == V2.vector4_f32[1]) && + (V1.vector4_f32[2] == V2.vector4_f32[2]) && + (V1.vector4_f32[3] == V2.vector4_f32[3])) + { + CR = XM_CRMASK_CR6TRUE; + } + else if ((V1.vector4_f32[0] != V2.vector4_f32[0]) && + (V1.vector4_f32[1] != V2.vector4_f32[1]) && + (V1.vector4_f32[2] != V2.vector4_f32[2]) && + (V1.vector4_f32[3] != V2.vector4_f32[3])) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + + uint32_t CR = 0; + if (r == 0xFFFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpeq_ps(V1, V2); + int iTest = _mm_movemask_ps(vTemp); + uint32_t CR = 0; + if (iTest == 0xf) // All equal? + { + CR = XM_CRMASK_CR6TRUE; + } + else if (iTest == 0) // All not equal? + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector4EqualInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_u32[0] == V2.vector4_u32[0]) && (V1.vector4_u32[1] == V2.vector4_u32[1]) && (V1.vector4_u32[2] == V2.vector4_u32[2]) && (V1.vector4_u32[3] == V2.vector4_u32[3])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2)); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) == 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + return ((_mm_movemask_ps(_mm_castsi128_ps(vTemp)) == 0xf) != 0); +#else + return XMComparisonAllTrue(XMVector4EqualIntR(V1, V2)); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector4EqualIntR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + uint32_t CR = 0; + if (V1.vector4_u32[0] == V2.vector4_u32[0] && + V1.vector4_u32[1] == V2.vector4_u32[1] && + V1.vector4_u32[2] == V2.vector4_u32[2] && + V1.vector4_u32[3] == V2.vector4_u32[3]) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (V1.vector4_u32[0] != V2.vector4_u32[0] && + V1.vector4_u32[1] != V2.vector4_u32[1] && + V1.vector4_u32[2] != V2.vector4_u32[2] && + V1.vector4_u32[3] != V2.vector4_u32[3]) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2)); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + + uint32_t CR = 0; + if (r == 0xFFFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + int iTest = _mm_movemask_ps(_mm_castsi128_ps(vTemp)); + uint32_t CR = 0; + if (iTest == 0xf) // All equal? + { + CR = XM_CRMASK_CR6TRUE; + } + else if (iTest == 0) // All not equal? + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +inline bool XM_CALLCONV XMVector4NearEqual +( + FXMVECTOR V1, + FXMVECTOR V2, + FXMVECTOR Epsilon +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float dx, dy, dz, dw; + + dx = fabsf(V1.vector4_f32[0] - V2.vector4_f32[0]); + dy = fabsf(V1.vector4_f32[1] - V2.vector4_f32[1]); + dz = fabsf(V1.vector4_f32[2] - V2.vector4_f32[2]); + dw = fabsf(V1.vector4_f32[3] - V2.vector4_f32[3]); + return (((dx <= Epsilon.vector4_f32[0]) && + (dy <= Epsilon.vector4_f32[1]) && + (dz <= Epsilon.vector4_f32[2]) && + (dw <= Epsilon.vector4_f32[3])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vDelta = vsubq_f32(V1, V2); +#if defined(_MSC_VER) && !defined(__clang__) && !defined(_ARM64_DISTINCT_NEON_TYPES) + uint32x4_t vResult = vacleq_f32(vDelta, Epsilon); +#else + uint32x4_t vResult = vcleq_f32(vabsq_f32(vDelta), Epsilon); +#endif + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) == 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + // Get the difference + XMVECTOR vDelta = _mm_sub_ps(V1, V2); + // Get the absolute value of the difference + XMVECTOR vTemp = _mm_setzero_ps(); + vTemp = _mm_sub_ps(vTemp, vDelta); + vTemp = _mm_max_ps(vTemp, vDelta); + vTemp = _mm_cmple_ps(vTemp, Epsilon); + return ((_mm_movemask_ps(vTemp) == 0xf) != 0); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector4NotEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] != V2.vector4_f32[0]) || (V1.vector4_f32[1] != V2.vector4_f32[1]) || (V1.vector4_f32[2] != V2.vector4_f32[2]) || (V1.vector4_f32[3] != V2.vector4_f32[3])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) != 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpneq_ps(V1, V2); + return ((_mm_movemask_ps(vTemp)) != 0); +#else + return XMComparisonAnyFalse(XMVector4EqualR(V1, V2)); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector4NotEqualInt +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_u32[0] != V2.vector4_u32[0]) || (V1.vector4_u32[1] != V2.vector4_u32[1]) || (V1.vector4_u32[2] != V2.vector4_u32[2]) || (V1.vector4_u32[3] != V2.vector4_u32[3])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vceqq_u32(vreinterpretq_u32_f32(V1), vreinterpretq_u32_f32(V2)); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) != 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + __m128i vTemp = _mm_cmpeq_epi32(_mm_castps_si128(V1), _mm_castps_si128(V2)); + return ((_mm_movemask_ps(_mm_castsi128_ps(vTemp)) != 0xF) != 0); +#else + return XMComparisonAnyFalse(XMVector4EqualIntR(V1, V2)); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector4Greater +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] > V2.vector4_f32[0]) && (V1.vector4_f32[1] > V2.vector4_f32[1]) && (V1.vector4_f32[2] > V2.vector4_f32[2]) && (V1.vector4_f32[3] > V2.vector4_f32[3])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcgtq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) == 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpgt_ps(V1, V2); + return ((_mm_movemask_ps(vTemp) == 0x0f) != 0); +#else + return XMComparisonAllTrue(XMVector4GreaterR(V1, V2)); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector4GreaterR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + uint32_t CR = 0; + if (V1.vector4_f32[0] > V2.vector4_f32[0] && + V1.vector4_f32[1] > V2.vector4_f32[1] && + V1.vector4_f32[2] > V2.vector4_f32[2] && + V1.vector4_f32[3] > V2.vector4_f32[3]) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (V1.vector4_f32[0] <= V2.vector4_f32[0] && + V1.vector4_f32[1] <= V2.vector4_f32[1] && + V1.vector4_f32[2] <= V2.vector4_f32[2] && + V1.vector4_f32[3] <= V2.vector4_f32[3]) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcgtq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + + uint32_t CR = 0; + if (r == 0xFFFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + uint32_t CR = 0; + XMVECTOR vTemp = _mm_cmpgt_ps(V1, V2); + int iTest = _mm_movemask_ps(vTemp); + if (iTest == 0xf) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector4GreaterOrEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] >= V2.vector4_f32[0]) && (V1.vector4_f32[1] >= V2.vector4_f32[1]) && (V1.vector4_f32[2] >= V2.vector4_f32[2]) && (V1.vector4_f32[3] >= V2.vector4_f32[3])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcgeq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) == 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmpge_ps(V1, V2); + return ((_mm_movemask_ps(vTemp) == 0x0f) != 0); +#else + return XMComparisonAllTrue(XMVector4GreaterOrEqualR(V1, V2)); +#endif +} + +//------------------------------------------------------------------------------ + +inline uint32_t XM_CALLCONV XMVector4GreaterOrEqualR +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + uint32_t CR = 0; + if ((V1.vector4_f32[0] >= V2.vector4_f32[0]) && + (V1.vector4_f32[1] >= V2.vector4_f32[1]) && + (V1.vector4_f32[2] >= V2.vector4_f32[2]) && + (V1.vector4_f32[3] >= V2.vector4_f32[3])) + { + CR = XM_CRMASK_CR6TRUE; + } + else if ((V1.vector4_f32[0] < V2.vector4_f32[0]) && + (V1.vector4_f32[1] < V2.vector4_f32[1]) && + (V1.vector4_f32[2] < V2.vector4_f32[2]) && + (V1.vector4_f32[3] < V2.vector4_f32[3])) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcgeq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + uint32_t r = vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1); + + uint32_t CR = 0; + if (r == 0xFFFFFFFFU) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!r) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#elif defined(_XM_SSE_INTRINSICS_) + uint32_t CR = 0; + XMVECTOR vTemp = _mm_cmpge_ps(V1, V2); + int iTest = _mm_movemask_ps(vTemp); + if (iTest == 0x0f) + { + CR = XM_CRMASK_CR6TRUE; + } + else if (!iTest) + { + CR = XM_CRMASK_CR6FALSE; + } + return CR; +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector4Less +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] < V2.vector4_f32[0]) && (V1.vector4_f32[1] < V2.vector4_f32[1]) && (V1.vector4_f32[2] < V2.vector4_f32[2]) && (V1.vector4_f32[3] < V2.vector4_f32[3])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcltq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) == 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmplt_ps(V1, V2); + return ((_mm_movemask_ps(vTemp) == 0x0f) != 0); +#else + return XMComparisonAllTrue(XMVector4GreaterR(V2, V1)); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector4LessOrEqual +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V1.vector4_f32[0] <= V2.vector4_f32[0]) && (V1.vector4_f32[1] <= V2.vector4_f32[1]) && (V1.vector4_f32[2] <= V2.vector4_f32[2]) && (V1.vector4_f32[3] <= V2.vector4_f32[3])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vResult = vcleq_f32(V1, V2); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vResult)), vget_high_u8(vreinterpretq_u8_u32(vResult))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) == 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp = _mm_cmple_ps(V1, V2); + return ((_mm_movemask_ps(vTemp) == 0x0f) != 0); +#else + return XMComparisonAllTrue(XMVector4GreaterOrEqualR(V2, V1)); +#endif +} + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector4InBounds +( + FXMVECTOR V, + FXMVECTOR Bounds +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (((V.vector4_f32[0] <= Bounds.vector4_f32[0] && V.vector4_f32[0] >= -Bounds.vector4_f32[0]) && + (V.vector4_f32[1] <= Bounds.vector4_f32[1] && V.vector4_f32[1] >= -Bounds.vector4_f32[1]) && + (V.vector4_f32[2] <= Bounds.vector4_f32[2] && V.vector4_f32[2] >= -Bounds.vector4_f32[2]) && + (V.vector4_f32[3] <= Bounds.vector4_f32[3] && V.vector4_f32[3] >= -Bounds.vector4_f32[3])) != 0); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Test if less than or equal + uint32x4_t ivTemp1 = vcleq_f32(V, Bounds); + // Negate the bounds + float32x4_t vTemp2 = vnegq_f32(Bounds); + // Test if greater or equal (Reversed) + uint32x4_t ivTemp2 = vcleq_f32(vTemp2, V); + // Blend answers + ivTemp1 = vandq_u32(ivTemp1, ivTemp2); + // in bounds? + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(ivTemp1)), vget_high_u8(vreinterpretq_u8_u32(ivTemp1))); + uint16x4x2_t vTemp3 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp3.val[1]), 1) == 0xFFFFFFFFU); +#elif defined(_XM_SSE_INTRINSICS_) + // Test if less than or equal + XMVECTOR vTemp1 = _mm_cmple_ps(V, Bounds); + // Negate the bounds + XMVECTOR vTemp2 = _mm_mul_ps(Bounds, g_XMNegativeOne); + // Test if greater or equal (Reversed) + vTemp2 = _mm_cmple_ps(vTemp2, V); + // Blend answers + vTemp1 = _mm_and_ps(vTemp1, vTemp2); + // All in bounds? + return ((_mm_movemask_ps(vTemp1) == 0x0f) != 0); +#else + return XMComparisonAllInBounds(XMVector4InBoundsR(V, Bounds)); +#endif +} + +//------------------------------------------------------------------------------ + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(push) +#pragma float_control(precise, on) +#endif + +inline bool XM_CALLCONV XMVector4IsNaN(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + return (XMISNAN(V.vector4_f32[0]) || + XMISNAN(V.vector4_f32[1]) || + XMISNAN(V.vector4_f32[2]) || + XMISNAN(V.vector4_f32[3])); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + #if defined(__clang__) && defined(__FINITE_MATH_ONLY__) + return isnan(vgetq_lane_f32(V, 0)) || isnan(vgetq_lane_f32(V, 1)) || isnan(vgetq_lane_f32(V, 2)) || isnan(vgetq_lane_f32(V, 3)); + #else + // Test against itself. NaN is always not equal + uint32x4_t vTempNan = vceqq_f32(V, V); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vTempNan)), vget_high_u8(vreinterpretq_u8_u32(vTempNan))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + // If any are NaN, the mask is zero + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) != 0xFFFFFFFFU); + #endif +#elif defined(_XM_SSE_INTRINSICS_) + #if defined(__clang__) && defined(__FINITE_MATH_ONLY__) + XM_ALIGNED_DATA(16) float tmp[4]; + _mm_store_ps(tmp, V); + return isnan(tmp[0]) || isnan(tmp[1]) || isnan(tmp[2]) || isnan(tmp[3]); + #else + // Test against itself. NaN is always not equal + XMVECTOR vTempNan = _mm_cmpneq_ps(V, V); + // If any are NaN, the mask is non-zero + return (_mm_movemask_ps(vTempNan) != 0); + #endif +#endif +} + +#if !defined(_XM_NO_INTRINSICS_) && defined(_MSC_VER) && !defined(__INTEL_COMPILER) +#pragma float_control(pop) +#endif + +//------------------------------------------------------------------------------ + +inline bool XM_CALLCONV XMVector4IsInfinite(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + return (XMISINF(V.vector4_f32[0]) || + XMISINF(V.vector4_f32[1]) || + XMISINF(V.vector4_f32[2]) || + XMISINF(V.vector4_f32[3])); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Mask off the sign bit + uint32x4_t vTempInf = vandq_u32(vreinterpretq_u32_f32(V), g_XMAbsMask); + // Compare to infinity + vTempInf = vceqq_f32(vreinterpretq_f32_u32(vTempInf), g_XMInfinity); + // If any are infinity, the signs are true. + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(vTempInf)), vget_high_u8(vreinterpretq_u8_u32(vTempInf))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + return (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) != 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Mask off the sign bit + XMVECTOR vTemp = _mm_and_ps(V, g_XMAbsMask); + // Compare to infinity + vTemp = _mm_cmpeq_ps(vTemp, g_XMInfinity); + // If any are infinity, the signs are true. + return (_mm_movemask_ps(vTemp) != 0); +#endif +} + +//------------------------------------------------------------------------------ +// Computation operations +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4Dot +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result; + Result.f[0] = + Result.f[1] = + Result.f[2] = + Result.f[3] = V1.vector4_f32[0] * V2.vector4_f32[0] + V1.vector4_f32[1] * V2.vector4_f32[1] + V1.vector4_f32[2] * V2.vector4_f32[2] + V1.vector4_f32[3] * V2.vector4_f32[3]; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vTemp = vmulq_f32(V1, V2); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vadd_f32(v1, v2); + v1 = vpadd_f32(v1, v1); + return vcombine_f32(v1, v1); +#elif defined(_XM_SSE4_INTRINSICS_) + return _mm_dp_ps(V1, V2, 0xff); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vTemp = _mm_mul_ps(V1, V2); + vTemp = _mm_hadd_ps(vTemp, vTemp); + return _mm_hadd_ps(vTemp, vTemp); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vTemp2 = V2; + XMVECTOR vTemp = _mm_mul_ps(V1, vTemp2); + vTemp2 = _mm_shuffle_ps(vTemp2, vTemp, _MM_SHUFFLE(1, 0, 0, 0)); // Copy X to the Z position and Y to the W position + vTemp2 = _mm_add_ps(vTemp2, vTemp); // Add Z = X+Z; W = Y+W; + vTemp = _mm_shuffle_ps(vTemp, vTemp2, _MM_SHUFFLE(0, 3, 0, 0)); // Copy W to the Z position + vTemp = _mm_add_ps(vTemp, vTemp2); // Add Z and W together + return XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(2, 2, 2, 2)); // Splat Z and return +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4Cross +( + FXMVECTOR V1, + FXMVECTOR V2, + FXMVECTOR V3 +) noexcept +{ + // [ ((v2.z*v3.w-v2.w*v3.z)*v1.y)-((v2.y*v3.w-v2.w*v3.y)*v1.z)+((v2.y*v3.z-v2.z*v3.y)*v1.w), + // ((v2.w*v3.z-v2.z*v3.w)*v1.x)-((v2.w*v3.x-v2.x*v3.w)*v1.z)+((v2.z*v3.x-v2.x*v3.z)*v1.w), + // ((v2.y*v3.w-v2.w*v3.y)*v1.x)-((v2.x*v3.w-v2.w*v3.x)*v1.y)+((v2.x*v3.y-v2.y*v3.x)*v1.w), + // ((v2.z*v3.y-v2.y*v3.z)*v1.x)-((v2.z*v3.x-v2.x*v3.z)*v1.y)+((v2.y*v3.x-v2.x*v3.y)*v1.z) ] + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + (((V2.vector4_f32[2] * V3.vector4_f32[3]) - (V2.vector4_f32[3] * V3.vector4_f32[2])) * V1.vector4_f32[1]) - (((V2.vector4_f32[1] * V3.vector4_f32[3]) - (V2.vector4_f32[3] * V3.vector4_f32[1])) * V1.vector4_f32[2]) + (((V2.vector4_f32[1] * V3.vector4_f32[2]) - (V2.vector4_f32[2] * V3.vector4_f32[1])) * V1.vector4_f32[3]), + (((V2.vector4_f32[3] * V3.vector4_f32[2]) - (V2.vector4_f32[2] * V3.vector4_f32[3])) * V1.vector4_f32[0]) - (((V2.vector4_f32[3] * V3.vector4_f32[0]) - (V2.vector4_f32[0] * V3.vector4_f32[3])) * V1.vector4_f32[2]) + (((V2.vector4_f32[2] * V3.vector4_f32[0]) - (V2.vector4_f32[0] * V3.vector4_f32[2])) * V1.vector4_f32[3]), + (((V2.vector4_f32[1] * V3.vector4_f32[3]) - (V2.vector4_f32[3] * V3.vector4_f32[1])) * V1.vector4_f32[0]) - (((V2.vector4_f32[0] * V3.vector4_f32[3]) - (V2.vector4_f32[3] * V3.vector4_f32[0])) * V1.vector4_f32[1]) + (((V2.vector4_f32[0] * V3.vector4_f32[1]) - (V2.vector4_f32[1] * V3.vector4_f32[0])) * V1.vector4_f32[3]), + (((V2.vector4_f32[2] * V3.vector4_f32[1]) - (V2.vector4_f32[1] * V3.vector4_f32[2])) * V1.vector4_f32[0]) - (((V2.vector4_f32[2] * V3.vector4_f32[0]) - (V2.vector4_f32[0] * V3.vector4_f32[2])) * V1.vector4_f32[1]) + (((V2.vector4_f32[1] * V3.vector4_f32[0]) - (V2.vector4_f32[0] * V3.vector4_f32[1])) * V1.vector4_f32[2]), + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + const uint32x2_t select = vget_low_u32(g_XMMaskX); + + // Term1: V2zwyz * V3wzwy + const float32x2_t v2xy = vget_low_f32(V2); + const float32x2_t v2zw = vget_high_f32(V2); + const float32x2_t v2yx = vrev64_f32(v2xy); + const float32x2_t v2wz = vrev64_f32(v2zw); + const float32x2_t v2yz = vbsl_f32(select, v2yx, v2wz); + + const float32x2_t v3zw = vget_high_f32(V3); + const float32x2_t v3wz = vrev64_f32(v3zw); + const float32x2_t v3xy = vget_low_f32(V3); + const float32x2_t v3wy = vbsl_f32(select, v3wz, v3xy); + + float32x4_t vTemp1 = vcombine_f32(v2zw, v2yz); + float32x4_t vTemp2 = vcombine_f32(v3wz, v3wy); + XMVECTOR vResult = vmulq_f32(vTemp1, vTemp2); + + // - V2wzwy * V3zwyz + const float32x2_t v2wy = vbsl_f32(select, v2wz, v2xy); + + const float32x2_t v3yx = vrev64_f32(v3xy); + const float32x2_t v3yz = vbsl_f32(select, v3yx, v3wz); + + vTemp1 = vcombine_f32(v2wz, v2wy); + vTemp2 = vcombine_f32(v3zw, v3yz); + vResult = vmlsq_f32(vResult, vTemp1, vTemp2); + + // term1 * V1yxxx + const float32x2_t v1xy = vget_low_f32(V1); + const float32x2_t v1yx = vrev64_f32(v1xy); + + vTemp1 = vcombine_f32(v1yx, vdup_lane_f32(v1yx, 1)); + vResult = vmulq_f32(vResult, vTemp1); + + // Term2: V2ywxz * V3wxwx + const float32x2_t v2yw = vrev64_f32(v2wy); + const float32x2_t v2xz = vbsl_f32(select, v2xy, v2wz); + + const float32x2_t v3wx = vbsl_f32(select, v3wz, v3yx); + + vTemp1 = vcombine_f32(v2yw, v2xz); + vTemp2 = vcombine_f32(v3wx, v3wx); + float32x4_t vTerm = vmulq_f32(vTemp1, vTemp2); + + // - V2wxwx * V3ywxz + const float32x2_t v2wx = vbsl_f32(select, v2wz, v2yx); + + const float32x2_t v3yw = vrev64_f32(v3wy); + const float32x2_t v3xz = vbsl_f32(select, v3xy, v3wz); + + vTemp1 = vcombine_f32(v2wx, v2wx); + vTemp2 = vcombine_f32(v3yw, v3xz); + vTerm = vmlsq_f32(vTerm, vTemp1, vTemp2); + + // vResult - term2 * V1zzyy + const float32x2_t v1zw = vget_high_f32(V1); + + vTemp1 = vcombine_f32(vdup_lane_f32(v1zw, 0), vdup_lane_f32(v1yx, 0)); + vResult = vmlsq_f32(vResult, vTerm, vTemp1); + + // Term3: V2yzxy * V3zxyx + const float32x2_t v3zx = vrev64_f32(v3xz); + + vTemp1 = vcombine_f32(v2yz, v2xy); + vTemp2 = vcombine_f32(v3zx, v3yx); + vTerm = vmulq_f32(vTemp1, vTemp2); + + // - V2zxyx * V3yzxy + const float32x2_t v2zx = vrev64_f32(v2xz); + + vTemp1 = vcombine_f32(v2zx, v2yx); + vTemp2 = vcombine_f32(v3yz, v3xy); + vTerm = vmlsq_f32(vTerm, vTemp1, vTemp2); + + // vResult + term3 * V1wwwz + const float32x2_t v1wz = vrev64_f32(v1zw); + + vTemp1 = vcombine_f32(vdup_lane_f32(v1wz, 0), v1wz); + return vmlaq_f32(vResult, vTerm, vTemp1); +#elif defined(_XM_SSE_INTRINSICS_) + // V2zwyz * V3wzwy + XMVECTOR vResult = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 1, 3, 2)); + XMVECTOR vTemp3 = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 3, 2, 3)); + vResult = _mm_mul_ps(vResult, vTemp3); + // - V2wzwy * V3zwyz + XMVECTOR vTemp2 = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 3, 2, 3)); + vTemp3 = XM_PERMUTE_PS(vTemp3, _MM_SHUFFLE(1, 3, 0, 1)); + vResult = XM_FNMADD_PS(vTemp2, vTemp3, vResult); + // term1 * V1yxxx + XMVECTOR vTemp1 = XM_PERMUTE_PS(V1, _MM_SHUFFLE(0, 0, 0, 1)); + vResult = _mm_mul_ps(vResult, vTemp1); + + // V2ywxz * V3wxwx + vTemp2 = XM_PERMUTE_PS(V2, _MM_SHUFFLE(2, 0, 3, 1)); + vTemp3 = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 3, 0, 3)); + vTemp3 = _mm_mul_ps(vTemp3, vTemp2); + // - V2wxwx * V3ywxz + vTemp2 = XM_PERMUTE_PS(vTemp2, _MM_SHUFFLE(2, 1, 2, 1)); + vTemp1 = XM_PERMUTE_PS(V3, _MM_SHUFFLE(2, 0, 3, 1)); + vTemp3 = XM_FNMADD_PS(vTemp2, vTemp1, vTemp3); + // vResult - temp * V1zzyy + vTemp1 = XM_PERMUTE_PS(V1, _MM_SHUFFLE(1, 1, 2, 2)); + vResult = XM_FNMADD_PS(vTemp1, vTemp3, vResult); + + // V2yzxy * V3zxyx + vTemp2 = XM_PERMUTE_PS(V2, _MM_SHUFFLE(1, 0, 2, 1)); + vTemp3 = XM_PERMUTE_PS(V3, _MM_SHUFFLE(0, 1, 0, 2)); + vTemp3 = _mm_mul_ps(vTemp3, vTemp2); + // - V2zxyx * V3yzxy + vTemp2 = XM_PERMUTE_PS(vTemp2, _MM_SHUFFLE(2, 0, 2, 1)); + vTemp1 = XM_PERMUTE_PS(V3, _MM_SHUFFLE(1, 0, 2, 1)); + vTemp3 = XM_FNMADD_PS(vTemp1, vTemp2, vTemp3); + // vResult + term * V1wwwz + vTemp1 = XM_PERMUTE_PS(V1, _MM_SHUFFLE(2, 3, 3, 3)); + vResult = XM_FMADD_PS(vTemp3, vTemp1, vResult); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4LengthSq(FXMVECTOR V) noexcept +{ + return XMVector4Dot(V, V); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4ReciprocalLengthEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + + Result = XMVector4LengthSq(V); + Result = XMVectorReciprocalSqrtEst(Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot4 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vadd_f32(v1, v2); + v1 = vpadd_f32(v1, v1); + // Reciprocal sqrt (estimate) + v2 = vrsqrte_f32(v1); + return vcombine_f32(v2, v2); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0xff); + return _mm_rsqrt_ps(vTemp); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_rsqrt_ps(vLengthSq); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y,z and w + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has z and w + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(3, 2, 3, 2)); + // x+z, y+w + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // x+z,x+z,x+z,y+w + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 0, 0, 0)); + // ??,??,y+w,y+w + vTemp = _mm_shuffle_ps(vTemp, vLengthSq, _MM_SHUFFLE(3, 3, 0, 0)); + // ??,??,x+z+y+w,?? + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // Splat the length + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(2, 2, 2, 2)); + // Get the reciprocal + vLengthSq = _mm_rsqrt_ps(vLengthSq); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4ReciprocalLength(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + + Result = XMVector4LengthSq(V); + Result = XMVectorReciprocalSqrt(Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot4 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vadd_f32(v1, v2); + v1 = vpadd_f32(v1, v1); + // Reciprocal sqrt + float32x2_t S0 = vrsqrte_f32(v1); + float32x2_t P0 = vmul_f32(v1, S0); + float32x2_t R0 = vrsqrts_f32(P0, S0); + float32x2_t S1 = vmul_f32(S0, R0); + float32x2_t P1 = vmul_f32(v1, S1); + float32x2_t R1 = vrsqrts_f32(P1, S1); + float32x2_t Result = vmul_f32(S1, R1); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0xff); + XMVECTOR vLengthSq = _mm_sqrt_ps(vTemp); + return _mm_div_ps(g_XMOne, vLengthSq); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_sqrt_ps(vLengthSq); + vLengthSq = _mm_div_ps(g_XMOne, vLengthSq); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y,z and w + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has z and w + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(3, 2, 3, 2)); + // x+z, y+w + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // x+z,x+z,x+z,y+w + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 0, 0, 0)); + // ??,??,y+w,y+w + vTemp = _mm_shuffle_ps(vTemp, vLengthSq, _MM_SHUFFLE(3, 3, 0, 0)); + // ??,??,x+z+y+w,?? + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // Splat the length + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(2, 2, 2, 2)); + // Get the reciprocal + vLengthSq = _mm_sqrt_ps(vLengthSq); + // Accurate! + vLengthSq = _mm_div_ps(g_XMOne, vLengthSq); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4LengthEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + + Result = XMVector4LengthSq(V); + Result = XMVectorSqrtEst(Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot4 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vadd_f32(v1, v2); + v1 = vpadd_f32(v1, v1); + const float32x2_t zero = vdup_n_f32(0); + uint32x2_t VEqualsZero = vceq_f32(v1, zero); + // Sqrt (estimate) + float32x2_t Result = vrsqrte_f32(v1); + Result = vmul_f32(v1, Result); + Result = vbsl_f32(VEqualsZero, zero, Result); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0xff); + return _mm_sqrt_ps(vTemp); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_sqrt_ps(vLengthSq); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y,z and w + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has z and w + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(3, 2, 3, 2)); + // x+z, y+w + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // x+z,x+z,x+z,y+w + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 0, 0, 0)); + // ??,??,y+w,y+w + vTemp = _mm_shuffle_ps(vTemp, vLengthSq, _MM_SHUFFLE(3, 3, 0, 0)); + // ??,??,x+z+y+w,?? + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // Splat the length + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(2, 2, 2, 2)); + // Get the length + vLengthSq = _mm_sqrt_ps(vLengthSq); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4Length(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + + Result = XMVector4LengthSq(V); + Result = XMVectorSqrt(Result); + + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot4 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vadd_f32(v1, v2); + v1 = vpadd_f32(v1, v1); + const float32x2_t zero = vdup_n_f32(0); + uint32x2_t VEqualsZero = vceq_f32(v1, zero); + // Sqrt + float32x2_t S0 = vrsqrte_f32(v1); + float32x2_t P0 = vmul_f32(v1, S0); + float32x2_t R0 = vrsqrts_f32(P0, S0); + float32x2_t S1 = vmul_f32(S0, R0); + float32x2_t P1 = vmul_f32(v1, S1); + float32x2_t R1 = vrsqrts_f32(P1, S1); + float32x2_t Result = vmul_f32(S1, R1); + Result = vmul_f32(v1, Result); + Result = vbsl_f32(VEqualsZero, zero, Result); + return vcombine_f32(Result, Result); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0xff); + return _mm_sqrt_ps(vTemp); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_sqrt_ps(vLengthSq); + return vLengthSq; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y,z and w + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has z and w + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(3, 2, 3, 2)); + // x+z, y+w + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // x+z,x+z,x+z,y+w + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 0, 0, 0)); + // ??,??,y+w,y+w + vTemp = _mm_shuffle_ps(vTemp, vLengthSq, _MM_SHUFFLE(3, 3, 0, 0)); + // ??,??,x+z+y+w,?? + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // Splat the length + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(2, 2, 2, 2)); + // Get the length + vLengthSq = _mm_sqrt_ps(vLengthSq); + return vLengthSq; +#endif +} + +//------------------------------------------------------------------------------ +// XMVector4NormalizeEst uses a reciprocal estimate and +// returns QNaN on zero and infinite vectors. + +inline XMVECTOR XM_CALLCONV XMVector4NormalizeEst(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR Result; + Result = XMVector4ReciprocalLength(V); + Result = XMVectorMultiply(V, Result); + return Result; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot4 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vadd_f32(v1, v2); + v1 = vpadd_f32(v1, v1); + // Reciprocal sqrt (estimate) + v2 = vrsqrte_f32(v1); + // Normalize + return vmulq_f32(V, vcombine_f32(v2, v2)); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vTemp = _mm_dp_ps(V, V, 0xff); + XMVECTOR vResult = _mm_rsqrt_ps(vTemp); + return _mm_mul_ps(vResult, V); +#elif defined(_XM_SSE3_INTRINSICS_) + XMVECTOR vDot = _mm_mul_ps(V, V); + vDot = _mm_hadd_ps(vDot, vDot); + vDot = _mm_hadd_ps(vDot, vDot); + vDot = _mm_rsqrt_ps(vDot); + vDot = _mm_mul_ps(vDot, V); + return vDot; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y,z and w + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has z and w + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(3, 2, 3, 2)); + // x+z, y+w + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // x+z,x+z,x+z,y+w + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 0, 0, 0)); + // ??,??,y+w,y+w + vTemp = _mm_shuffle_ps(vTemp, vLengthSq, _MM_SHUFFLE(3, 3, 0, 0)); + // ??,??,x+z+y+w,?? + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // Splat the length + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(2, 2, 2, 2)); + // Get the reciprocal + XMVECTOR vResult = _mm_rsqrt_ps(vLengthSq); + // Reciprocal mul to perform the normalization + vResult = _mm_mul_ps(vResult, V); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4Normalize(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + float fLength; + XMVECTOR vResult; + + vResult = XMVector4Length(V); + fLength = vResult.vector4_f32[0]; + + // Prevent divide by zero + if (fLength > 0) + { + fLength = 1.0f / fLength; + } + + vResult.vector4_f32[0] = V.vector4_f32[0] * fLength; + vResult.vector4_f32[1] = V.vector4_f32[1] * fLength; + vResult.vector4_f32[2] = V.vector4_f32[2] * fLength; + vResult.vector4_f32[3] = V.vector4_f32[3] * fLength; + return vResult; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + // Dot4 + float32x4_t vTemp = vmulq_f32(V, V); + float32x2_t v1 = vget_low_f32(vTemp); + float32x2_t v2 = vget_high_f32(vTemp); + v1 = vadd_f32(v1, v2); + v1 = vpadd_f32(v1, v1); + uint32x2_t VEqualsZero = vceq_f32(v1, vdup_n_f32(0)); + uint32x2_t VEqualsInf = vceq_f32(v1, vget_low_f32(g_XMInfinity)); + // Reciprocal sqrt (2 iterations of Newton-Raphson) + float32x2_t S0 = vrsqrte_f32(v1); + float32x2_t P0 = vmul_f32(v1, S0); + float32x2_t R0 = vrsqrts_f32(P0, S0); + float32x2_t S1 = vmul_f32(S0, R0); + float32x2_t P1 = vmul_f32(v1, S1); + float32x2_t R1 = vrsqrts_f32(P1, S1); + v2 = vmul_f32(S1, R1); + // Normalize + XMVECTOR vResult = vmulq_f32(V, vcombine_f32(v2, v2)); + vResult = vbslq_f32(vcombine_u32(VEqualsZero, VEqualsZero), vdupq_n_f32(0), vResult); + return vbslq_f32(vcombine_u32(VEqualsInf, VEqualsInf), g_XMQNaN, vResult); +#elif defined(_XM_SSE4_INTRINSICS_) + XMVECTOR vLengthSq = _mm_dp_ps(V, V, 0xff); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Create zero with a single instruction + XMVECTOR vZeroMask = _mm_setzero_ps(); + // Test for a divide by zero (Must be FP to detect -0.0) + vZeroMask = _mm_cmpneq_ps(vZeroMask, vResult); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Divide to perform the normalization + vResult = _mm_div_ps(V, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vZeroMask); + // Select qnan or result based on infinite length + XMVECTOR vTemp1 = _mm_andnot_ps(vLengthSq, g_XMQNaN); + XMVECTOR vTemp2 = _mm_and_ps(vResult, vLengthSq); + vResult = _mm_or_ps(vTemp1, vTemp2); + return vResult; +#elif defined(_XM_SSE3_INTRINSICS_) + // Perform the dot product on x,y,z and w + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + vLengthSq = _mm_hadd_ps(vLengthSq, vLengthSq); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Create zero with a single instruction + XMVECTOR vZeroMask = _mm_setzero_ps(); + // Test for a divide by zero (Must be FP to detect -0.0) + vZeroMask = _mm_cmpneq_ps(vZeroMask, vResult); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Divide to perform the normalization + vResult = _mm_div_ps(V, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vZeroMask); + // Select qnan or result based on infinite length + XMVECTOR vTemp1 = _mm_andnot_ps(vLengthSq, g_XMQNaN); + XMVECTOR vTemp2 = _mm_and_ps(vResult, vLengthSq); + vResult = _mm_or_ps(vTemp1, vTemp2); + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + // Perform the dot product on x,y,z and w + XMVECTOR vLengthSq = _mm_mul_ps(V, V); + // vTemp has z and w + XMVECTOR vTemp = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(3, 2, 3, 2)); + // x+z, y+w + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // x+z,x+z,x+z,y+w + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(1, 0, 0, 0)); + // ??,??,y+w,y+w + vTemp = _mm_shuffle_ps(vTemp, vLengthSq, _MM_SHUFFLE(3, 3, 0, 0)); + // ??,??,x+z+y+w,?? + vLengthSq = _mm_add_ps(vLengthSq, vTemp); + // Splat the length + vLengthSq = XM_PERMUTE_PS(vLengthSq, _MM_SHUFFLE(2, 2, 2, 2)); + // Prepare for the division + XMVECTOR vResult = _mm_sqrt_ps(vLengthSq); + // Create zero with a single instruction + XMVECTOR vZeroMask = _mm_setzero_ps(); + // Test for a divide by zero (Must be FP to detect -0.0) + vZeroMask = _mm_cmpneq_ps(vZeroMask, vResult); + // Failsafe on zero (Or epsilon) length planes + // If the length is infinity, set the elements to zero + vLengthSq = _mm_cmpneq_ps(vLengthSq, g_XMInfinity); + // Divide to perform the normalization + vResult = _mm_div_ps(V, vResult); + // Any that are infinity, set to zero + vResult = _mm_and_ps(vResult, vZeroMask); + // Select qnan or result based on infinite length + XMVECTOR vTemp1 = _mm_andnot_ps(vLengthSq, g_XMQNaN); + XMVECTOR vTemp2 = _mm_and_ps(vResult, vLengthSq); + vResult = _mm_or_ps(vTemp1, vTemp2); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4ClampLength +( + FXMVECTOR V, + float LengthMin, + float LengthMax +) noexcept +{ + XMVECTOR ClampMax = XMVectorReplicate(LengthMax); + XMVECTOR ClampMin = XMVectorReplicate(LengthMin); + + return XMVector4ClampLengthV(V, ClampMin, ClampMax); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4ClampLengthV +( + FXMVECTOR V, + FXMVECTOR LengthMin, + FXMVECTOR LengthMax +) noexcept +{ + assert((XMVectorGetY(LengthMin) == XMVectorGetX(LengthMin)) && (XMVectorGetZ(LengthMin) == XMVectorGetX(LengthMin)) && (XMVectorGetW(LengthMin) == XMVectorGetX(LengthMin))); + assert((XMVectorGetY(LengthMax) == XMVectorGetX(LengthMax)) && (XMVectorGetZ(LengthMax) == XMVectorGetX(LengthMax)) && (XMVectorGetW(LengthMax) == XMVectorGetX(LengthMax))); + assert(XMVector4GreaterOrEqual(LengthMin, XMVectorZero())); + assert(XMVector4GreaterOrEqual(LengthMax, XMVectorZero())); + assert(XMVector4GreaterOrEqual(LengthMax, LengthMin)); + + XMVECTOR LengthSq = XMVector4LengthSq(V); + + const XMVECTOR Zero = XMVectorZero(); + + XMVECTOR RcpLength = XMVectorReciprocalSqrt(LengthSq); + + XMVECTOR InfiniteLength = XMVectorEqualInt(LengthSq, g_XMInfinity.v); + XMVECTOR ZeroLength = XMVectorEqual(LengthSq, Zero); + + XMVECTOR Normal = XMVectorMultiply(V, RcpLength); + + XMVECTOR Length = XMVectorMultiply(LengthSq, RcpLength); + + XMVECTOR Select = XMVectorEqualInt(InfiniteLength, ZeroLength); + Length = XMVectorSelect(LengthSq, Length, Select); + Normal = XMVectorSelect(LengthSq, Normal, Select); + + XMVECTOR ControlMax = XMVectorGreater(Length, LengthMax); + XMVECTOR ControlMin = XMVectorLess(Length, LengthMin); + + XMVECTOR ClampLength = XMVectorSelect(Length, LengthMax, ControlMax); + ClampLength = XMVectorSelect(ClampLength, LengthMin, ControlMin); + + XMVECTOR Result = XMVectorMultiply(Normal, ClampLength); + + // Preserve the original vector (with no precision loss) if the length falls within the given range + XMVECTOR Control = XMVectorEqualInt(ControlMax, ControlMin); + Result = XMVectorSelect(Result, V, Control); + + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4Reflect +( + FXMVECTOR Incident, + FXMVECTOR Normal +) noexcept +{ + // Result = Incident - (2 * dot(Incident, Normal)) * Normal + + XMVECTOR Result = XMVector4Dot(Incident, Normal); + Result = XMVectorAdd(Result, Result); + Result = XMVectorNegativeMultiplySubtract(Result, Normal, Incident); + + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4Refract +( + FXMVECTOR Incident, + FXMVECTOR Normal, + float RefractionIndex +) noexcept +{ + XMVECTOR Index = XMVectorReplicate(RefractionIndex); + return XMVector4RefractV(Incident, Normal, Index); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4RefractV +( + FXMVECTOR Incident, + FXMVECTOR Normal, + FXMVECTOR RefractionIndex +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR IDotN; + XMVECTOR R; + const XMVECTOR Zero = XMVectorZero(); + + // Result = RefractionIndex * Incident - Normal * (RefractionIndex * dot(Incident, Normal) + + // sqrt(1 - RefractionIndex * RefractionIndex * (1 - dot(Incident, Normal) * dot(Incident, Normal)))) + + IDotN = XMVector4Dot(Incident, Normal); + + // R = 1.0f - RefractionIndex * RefractionIndex * (1.0f - IDotN * IDotN) + R = XMVectorNegativeMultiplySubtract(IDotN, IDotN, g_XMOne.v); + R = XMVectorMultiply(R, RefractionIndex); + R = XMVectorNegativeMultiplySubtract(R, RefractionIndex, g_XMOne.v); + + if (XMVector4LessOrEqual(R, Zero)) + { + // Total internal reflection + return Zero; + } + else + { + XMVECTOR Result; + + // R = RefractionIndex * IDotN + sqrt(R) + R = XMVectorSqrt(R); + R = XMVectorMultiplyAdd(RefractionIndex, IDotN, R); + + // Result = RefractionIndex * Incident - Normal * R + Result = XMVectorMultiply(RefractionIndex, Incident); + Result = XMVectorNegativeMultiplySubtract(Normal, R, Result); + + return Result; + } + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + XMVECTOR IDotN = XMVector4Dot(Incident, Normal); + + // R = 1.0f - RefractionIndex * RefractionIndex * (1.0f - IDotN * IDotN) + float32x4_t R = vmlsq_f32(g_XMOne, IDotN, IDotN); + R = vmulq_f32(R, RefractionIndex); + R = vmlsq_f32(g_XMOne, R, RefractionIndex); + + uint32x4_t isrzero = vcleq_f32(R, g_XMZero); + uint8x8x2_t vTemp = vzip_u8(vget_low_u8(vreinterpretq_u8_u32(isrzero)), vget_high_u8(vreinterpretq_u8_u32(isrzero))); + uint16x4x2_t vTemp2 = vzip_u16(vreinterpret_u16_u8(vTemp.val[0]), vreinterpret_u16_u8(vTemp.val[1])); + + float32x4_t vResult; + if (vget_lane_u32(vreinterpret_u32_u16(vTemp2.val[1]), 1) == 0xFFFFFFFFU) + { + // Total internal reflection + vResult = g_XMZero; + } + else + { + // Sqrt(R) + float32x4_t S0 = vrsqrteq_f32(R); + float32x4_t P0 = vmulq_f32(R, S0); + float32x4_t R0 = vrsqrtsq_f32(P0, S0); + float32x4_t S1 = vmulq_f32(S0, R0); + float32x4_t P1 = vmulq_f32(R, S1); + float32x4_t R1 = vrsqrtsq_f32(P1, S1); + float32x4_t S2 = vmulq_f32(S1, R1); + R = vmulq_f32(R, S2); + // R = RefractionIndex * IDotN + sqrt(R) + R = vmlaq_f32(R, RefractionIndex, IDotN); + // Result = RefractionIndex * Incident - Normal * R + vResult = vmulq_f32(RefractionIndex, Incident); + vResult = vmlsq_f32(vResult, R, Normal); + } + return vResult; +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR IDotN = XMVector4Dot(Incident, Normal); + + // R = 1.0f - RefractionIndex * RefractionIndex * (1.0f - IDotN * IDotN) + XMVECTOR R = XM_FNMADD_PS(IDotN, IDotN, g_XMOne); + XMVECTOR R2 = _mm_mul_ps(RefractionIndex, RefractionIndex); + R = XM_FNMADD_PS(R, R2, g_XMOne); + + XMVECTOR vResult = _mm_cmple_ps(R, g_XMZero); + if (_mm_movemask_ps(vResult) == 0x0f) + { + // Total internal reflection + vResult = g_XMZero; + } + else + { + // R = RefractionIndex * IDotN + sqrt(R) + R = _mm_sqrt_ps(R); + R = XM_FMADD_PS(RefractionIndex, IDotN, R); + // Result = RefractionIndex * Incident - Normal * R + vResult = _mm_mul_ps(RefractionIndex, Incident); + vResult = XM_FNMADD_PS(R, Normal, vResult); + } + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4Orthogonal(FXMVECTOR V) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + XMVECTORF32 Result = { { { + V.vector4_f32[2], + V.vector4_f32[3], + -V.vector4_f32[0], + -V.vector4_f32[1] + } } }; + return Result.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Negate = { { { 1.f, 1.f, -1.f, -1.f } } }; + + float32x4_t Result = vcombine_f32(vget_high_f32(V), vget_low_f32(V)); + return vmulq_f32(Result, Negate); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 FlipZW = { { { 1.0f, 1.0f, -1.0f, -1.0f } } }; + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 0, 3, 2)); + vResult = _mm_mul_ps(vResult, FlipZW); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4AngleBetweenNormalsEst +( + FXMVECTOR N1, + FXMVECTOR N2 +) noexcept +{ + XMVECTOR Result = XMVector4Dot(N1, N2); + Result = XMVectorClamp(Result, g_XMNegativeOne.v, g_XMOne.v); + Result = XMVectorACosEst(Result); + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4AngleBetweenNormals +( + FXMVECTOR N1, + FXMVECTOR N2 +) noexcept +{ + XMVECTOR Result = XMVector4Dot(N1, N2); + Result = XMVectorClamp(Result, g_XMNegativeOne.v, g_XMOne.v); + Result = XMVectorACos(Result); + return Result; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4AngleBetweenVectors +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + XMVECTOR L1 = XMVector4ReciprocalLength(V1); + XMVECTOR L2 = XMVector4ReciprocalLength(V2); + + XMVECTOR Dot = XMVector4Dot(V1, V2); + + L1 = XMVectorMultiply(L1, L2); + + XMVECTOR CosAngle = XMVectorMultiply(Dot, L1); + CosAngle = XMVectorClamp(CosAngle, g_XMNegativeOne.v, g_XMOne.v); + + return XMVectorACos(CosAngle); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV XMVector4Transform +( + FXMVECTOR V, + FXMMATRIX M +) noexcept +{ +#if defined(_XM_NO_INTRINSICS_) + + float fX = (M.m[0][0] * V.vector4_f32[0]) + (M.m[1][0] * V.vector4_f32[1]) + (M.m[2][0] * V.vector4_f32[2]) + (M.m[3][0] * V.vector4_f32[3]); + float fY = (M.m[0][1] * V.vector4_f32[0]) + (M.m[1][1] * V.vector4_f32[1]) + (M.m[2][1] * V.vector4_f32[2]) + (M.m[3][1] * V.vector4_f32[3]); + float fZ = (M.m[0][2] * V.vector4_f32[0]) + (M.m[1][2] * V.vector4_f32[1]) + (M.m[2][2] * V.vector4_f32[2]) + (M.m[3][2] * V.vector4_f32[3]); + float fW = (M.m[0][3] * V.vector4_f32[0]) + (M.m[1][3] * V.vector4_f32[1]) + (M.m[2][3] * V.vector4_f32[2]) + (M.m[3][3] * V.vector4_f32[3]); + XMVECTORF32 vResult = { { { fX, fY, fZ, fW } } }; + return vResult.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x2_t VL = vget_low_f32(V); + XMVECTOR vResult = vmulq_lane_f32(M.r[0], VL, 0); // X + vResult = vmlaq_lane_f32(vResult, M.r[1], VL, 1); // Y + float32x2_t VH = vget_high_f32(V); + vResult = vmlaq_lane_f32(vResult, M.r[2], VH, 0); // Z + return vmlaq_lane_f32(vResult, M.r[3], VH, 1); // W +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); // W + vResult = _mm_mul_ps(vResult, M.r[3]); + XMVECTOR vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); // Z + vResult = XM_FMADD_PS(vTemp, M.r[2], vResult); + vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); // Y + vResult = XM_FMADD_PS(vTemp, M.r[1], vResult); + vTemp = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); // X + vResult = XM_FMADD_PS(vTemp, M.r[0], vResult); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMFLOAT4* XM_CALLCONV XMVector4TransformStream +( + XMFLOAT4* pOutputStream, + size_t OutputStride, + const XMFLOAT4* pInputStream, + size_t InputStride, + size_t VectorCount, + FXMMATRIX M +) noexcept +{ + assert(pOutputStream != nullptr); + assert(pInputStream != nullptr); + + assert(InputStride >= sizeof(XMFLOAT4)); + _Analysis_assume_(InputStride >= sizeof(XMFLOAT4)); + + assert(OutputStride >= sizeof(XMFLOAT4)); + _Analysis_assume_(OutputStride >= sizeof(XMFLOAT4)); + +#if defined(_XM_NO_INTRINSICS_) + + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + const XMVECTOR row3 = M.r[3]; + + for (size_t i = 0; i < VectorCount; i++) + { + XMVECTOR V = XMLoadFloat4(reinterpret_cast(pInputVector)); + XMVECTOR W = XMVectorSplatW(V); + XMVECTOR Z = XMVectorSplatZ(V); + XMVECTOR Y = XMVectorSplatY(V); + XMVECTOR X = XMVectorSplatX(V); + + XMVECTOR Result = XMVectorMultiply(W, row3); + Result = XMVectorMultiplyAdd(Z, row2, Result); + Result = XMVectorMultiplyAdd(Y, row1, Result); + Result = XMVectorMultiplyAdd(X, row0, Result); + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 26015, "PREfast noise: Esp:1307" ) +#endif + + XMStoreFloat4(reinterpret_cast(pOutputVector), Result); + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + + pInputVector += InputStride; + pOutputVector += OutputStride; + } + + return pOutputStream; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + const XMVECTOR row3 = M.r[3]; + + size_t i = 0; + size_t four = VectorCount >> 2; + if (four > 0) + { + if ((InputStride == sizeof(XMFLOAT4)) && (OutputStride == sizeof(XMFLOAT4))) + { + for (size_t j = 0; j < four; ++j) + { + float32x4x4_t V = vld4q_f32(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT4) * 4; + + float32x2_t r = vget_low_f32(row0); + XMVECTOR vResult0 = vmulq_lane_f32(V.val[0], r, 0); // Ax + XMVECTOR vResult1 = vmulq_lane_f32(V.val[0], r, 1); // Bx + + XM_PREFETCH(pInputVector); + + r = vget_high_f32(row0); + XMVECTOR vResult2 = vmulq_lane_f32(V.val[0], r, 0); // Cx + XMVECTOR vResult3 = vmulq_lane_f32(V.val[0], r, 1); // Dx + + XM_PREFETCH(pInputVector + XM_CACHE_LINE_SIZE); + + r = vget_low_f32(row1); + vResult0 = vmlaq_lane_f32(vResult0, V.val[1], r, 0); // Ax+Ey + vResult1 = vmlaq_lane_f32(vResult1, V.val[1], r, 1); // Bx+Fy + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 2)); + + r = vget_high_f32(row1); + vResult2 = vmlaq_lane_f32(vResult2, V.val[1], r, 0); // Cx+Gy + vResult3 = vmlaq_lane_f32(vResult3, V.val[1], r, 1); // Dx+Hy + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 3)); + + r = vget_low_f32(row2); + vResult0 = vmlaq_lane_f32(vResult0, V.val[2], r, 0); // Ax+Ey+Iz + vResult1 = vmlaq_lane_f32(vResult1, V.val[2], r, 1); // Bx+Fy+Jz + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 4)); + + r = vget_high_f32(row2); + vResult2 = vmlaq_lane_f32(vResult2, V.val[2], r, 0); // Cx+Gy+Kz + vResult3 = vmlaq_lane_f32(vResult3, V.val[2], r, 1); // Dx+Hy+Lz + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 5)); + + r = vget_low_f32(row3); + vResult0 = vmlaq_lane_f32(vResult0, V.val[3], r, 0); // Ax+Ey+Iz+Mw + vResult1 = vmlaq_lane_f32(vResult1, V.val[3], r, 1); // Bx+Fy+Jz+Nw + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 6)); + + r = vget_high_f32(row3); + vResult2 = vmlaq_lane_f32(vResult2, V.val[3], r, 0); // Cx+Gy+Kz+Ow + vResult3 = vmlaq_lane_f32(vResult3, V.val[3], r, 1); // Dx+Hy+Lz+Pw + + XM_PREFETCH(pInputVector + (XM_CACHE_LINE_SIZE * 7)); + + V.val[0] = vResult0; + V.val[1] = vResult1; + V.val[2] = vResult2; + V.val[3] = vResult3; + + vst4q_f32(reinterpret_cast(pOutputVector), V); + pOutputVector += sizeof(XMFLOAT4) * 4; + + i += 4; + } + } + } + + for (; i < VectorCount; i++) + { + XMVECTOR V = vld1q_f32(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + float32x2_t VL = vget_low_f32(V); + XMVECTOR vResult = vmulq_lane_f32(row0, VL, 0); // X + vResult = vmlaq_lane_f32(vResult, row1, VL, 1); // Y + float32x2_t VH = vget_high_f32(V); + vResult = vmlaq_lane_f32(vResult, row2, VH, 0); // Z + vResult = vmlaq_lane_f32(vResult, row3, VH, 1); // W + + vst1q_f32(reinterpret_cast(pOutputVector), vResult); + pOutputVector += OutputStride; + } + + return pOutputStream; +#elif defined(_XM_AVX2_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t two = VectorCount >> 1; + if (two > 0) + { + __m256 row0 = _mm256_broadcast_ps(&M.r[0]); + __m256 row1 = _mm256_broadcast_ps(&M.r[1]); + __m256 row2 = _mm256_broadcast_ps(&M.r[2]); + __m256 row3 = _mm256_broadcast_ps(&M.r[3]); + + if (InputStride == sizeof(XMFLOAT4)) + { + if (OutputStride == sizeof(XMFLOAT4)) + { + if (!(reinterpret_cast(pOutputStream) & 0x1F)) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < two; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT4) * 2; + + __m256 vTempX = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + __m256 vTempY = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 vTempZ = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 vTempW = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + + vTempX = _mm256_mul_ps(vTempX, row0); + vTempY = _mm256_mul_ps(vTempY, row1); + vTempZ = _mm256_fmadd_ps(vTempZ, row2, vTempX); + vTempW = _mm256_fmadd_ps(vTempW, row3, vTempY); + vTempX = _mm256_add_ps(vTempZ, vTempW); + + XM256_STREAM_PS(reinterpret_cast(pOutputVector), vTempX); + pOutputVector += sizeof(XMFLOAT4) * 2; + + i += 2; + } + } + else + { + // Packed input, packed output + for (size_t j = 0; j < two; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT4) * 2; + + __m256 vTempX = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + __m256 vTempY = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 vTempZ = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 vTempW = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + + vTempX = _mm256_mul_ps(vTempX, row0); + vTempY = _mm256_mul_ps(vTempY, row1); + vTempZ = _mm256_fmadd_ps(vTempZ, row2, vTempX); + vTempW = _mm256_fmadd_ps(vTempW, row3, vTempY); + vTempX = _mm256_add_ps(vTempZ, vTempW); + + _mm256_storeu_ps(reinterpret_cast(pOutputVector), vTempX); + pOutputVector += sizeof(XMFLOAT4) * 2; + + i += 2; + } + } + } + else + { + // Packed input, unpacked output + for (size_t j = 0; j < two; ++j) + { + __m256 VV = _mm256_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += sizeof(XMFLOAT4) * 2; + + __m256 vTempX = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(0, 0, 0, 0)); + __m256 vTempY = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(1, 1, 1, 1)); + __m256 vTempZ = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(2, 2, 2, 2)); + __m256 vTempW = _mm256_shuffle_ps(VV, VV, _MM_SHUFFLE(3, 3, 3, 3)); + + vTempX = _mm256_mul_ps(vTempX, row0); + vTempY = _mm256_mul_ps(vTempY, row1); + vTempZ = _mm256_fmadd_ps(vTempZ, row2, vTempX); + vTempW = _mm256_fmadd_ps(vTempW, row3, vTempY); + vTempX = _mm256_add_ps(vTempZ, vTempW); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), _mm256_castps256_ps128(vTempX)); + pOutputVector += OutputStride; + + _mm_storeu_ps(reinterpret_cast(pOutputVector), _mm256_extractf128_ps(vTempX, 1)); + pOutputVector += OutputStride; + i += 2; + } + } + } + } + + if (i < VectorCount) + { + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + const XMVECTOR row3 = M.r[3]; + + for (; i < VectorCount; i++) + { + __m128 V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR vTempX = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + XMVECTOR vTempY = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR vTempZ = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR vTempW = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + + vTempX = _mm_mul_ps(vTempX, row0); + vTempY = _mm_mul_ps(vTempY, row1); + vTempZ = XM_FMADD_PS(vTempZ, row2, vTempX); + vTempW = XM_FMADD_PS(vTempW, row3, vTempY); + vTempX = _mm_add_ps(vTempZ, vTempW); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTempX); + pOutputVector += OutputStride; + } + } + + XM_SFENCE(); + + return pOutputStream; +#elif defined(_XM_SSE_INTRINSICS_) + auto pInputVector = reinterpret_cast(pInputStream); + auto pOutputVector = reinterpret_cast(pOutputStream); + + const XMVECTOR row0 = M.r[0]; + const XMVECTOR row1 = M.r[1]; + const XMVECTOR row2 = M.r[2]; + const XMVECTOR row3 = M.r[3]; + + if (!(reinterpret_cast(pOutputStream) & 0xF) && !(OutputStride & 0xF)) + { + if (!(reinterpret_cast(pInputStream) & 0xF) && !(InputStride & 0xF)) + { + // Aligned input, aligned output + for (size_t i = 0; i < VectorCount; i++) + { + __m128 V = _mm_load_ps(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR vTempX = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + XMVECTOR vTempY = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR vTempZ = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR vTempW = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + + vTempX = _mm_mul_ps(vTempX, row0); + vTempY = _mm_mul_ps(vTempY, row1); + vTempZ = XM_FMADD_PS(vTempZ, row2, vTempX); + vTempW = XM_FMADD_PS(vTempW, row3, vTempY); + vTempX = _mm_add_ps(vTempZ, vTempW); + + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTempX); + pOutputVector += OutputStride; + } + } + else + { + // Unaligned input, aligned output + for (size_t i = 0; i < VectorCount; i++) + { + __m128 V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR vTempX = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + XMVECTOR vTempY = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR vTempZ = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR vTempW = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + + vTempX = _mm_mul_ps(vTempX, row0); + vTempY = _mm_mul_ps(vTempY, row1); + vTempZ = XM_FMADD_PS(vTempZ, row2, vTempX); + vTempW = XM_FMADD_PS(vTempW, row3, vTempY); + vTempX = _mm_add_ps(vTempZ, vTempW); + + XM_STREAM_PS(reinterpret_cast(pOutputVector), vTempX); + pOutputVector += OutputStride; + } + } + } + else + { + if (!(reinterpret_cast(pInputStream) & 0xF) && !(InputStride & 0xF)) + { + // Aligned input, unaligned output + for (size_t i = 0; i < VectorCount; i++) + { + __m128 V = _mm_load_ps(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR vTempX = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + XMVECTOR vTempY = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR vTempZ = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR vTempW = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + + vTempX = _mm_mul_ps(vTempX, row0); + vTempY = _mm_mul_ps(vTempY, row1); + vTempZ = XM_FMADD_PS(vTempZ, row2, vTempX); + vTempW = XM_FMADD_PS(vTempW, row3, vTempY); + vTempX = _mm_add_ps(vTempZ, vTempW); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTempX); + pOutputVector += OutputStride; + } + } + else + { + // Unaligned input, unaligned output + for (size_t i = 0; i < VectorCount; i++) + { + __m128 V = _mm_loadu_ps(reinterpret_cast(pInputVector)); + pInputVector += InputStride; + + XMVECTOR vTempX = XM_PERMUTE_PS(V, _MM_SHUFFLE(0, 0, 0, 0)); + XMVECTOR vTempY = XM_PERMUTE_PS(V, _MM_SHUFFLE(1, 1, 1, 1)); + XMVECTOR vTempZ = XM_PERMUTE_PS(V, _MM_SHUFFLE(2, 2, 2, 2)); + XMVECTOR vTempW = XM_PERMUTE_PS(V, _MM_SHUFFLE(3, 3, 3, 3)); + + vTempX = _mm_mul_ps(vTempX, row0); + vTempY = _mm_mul_ps(vTempY, row1); + vTempZ = XM_FMADD_PS(vTempZ, row2, vTempX); + vTempW = XM_FMADD_PS(vTempW, row3, vTempY); + vTempX = _mm_add_ps(vTempZ, vTempW); + + _mm_storeu_ps(reinterpret_cast(pOutputVector), vTempX); + pOutputVector += OutputStride; + } + } + } + + XM_SFENCE(); + + return pOutputStream; +#endif +} + +/**************************************************************************** + * + * XMVECTOR operators + * + ****************************************************************************/ + +#ifndef _XM_NO_XMVECTOR_OVERLOADS_ + + //------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV operator+ (FXMVECTOR V) noexcept +{ + return V; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV operator- (FXMVECTOR V) noexcept +{ + return XMVectorNegate(V); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR& XM_CALLCONV operator+= +( + XMVECTOR& V1, + FXMVECTOR V2 +) noexcept +{ + V1 = XMVectorAdd(V1, V2); + return V1; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR& XM_CALLCONV operator-= +( + XMVECTOR& V1, + FXMVECTOR V2 +) noexcept +{ + V1 = XMVectorSubtract(V1, V2); + return V1; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR& XM_CALLCONV operator*= +( + XMVECTOR& V1, + FXMVECTOR V2 +) noexcept +{ + V1 = XMVectorMultiply(V1, V2); + return V1; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR& XM_CALLCONV operator/= +( + XMVECTOR& V1, + FXMVECTOR V2 +) noexcept +{ + V1 = XMVectorDivide(V1, V2); + return V1; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR& operator*= +( + XMVECTOR& V, + const float S +) noexcept +{ + V = XMVectorScale(V, S); + return V; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR& operator/= +( + XMVECTOR& V, + const float S +) noexcept +{ + XMVECTOR vS = XMVectorReplicate(S); + V = XMVectorDivide(V, vS); + return V; +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV operator+ +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + return XMVectorAdd(V1, V2); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV operator- +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + return XMVectorSubtract(V1, V2); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV operator* +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + return XMVectorMultiply(V1, V2); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV operator/ +( + FXMVECTOR V1, + FXMVECTOR V2 +) noexcept +{ + return XMVectorDivide(V1, V2); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV operator* +( + FXMVECTOR V, + const float S +) noexcept +{ + return XMVectorScale(V, S); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV operator/ +( + FXMVECTOR V, + const float S +) noexcept +{ + XMVECTOR vS = XMVectorReplicate(S); + return XMVectorDivide(V, vS); +} + +//------------------------------------------------------------------------------ + +inline XMVECTOR XM_CALLCONV operator* +( + float S, + FXMVECTOR V +) noexcept +{ + return XMVectorScale(V, S); +} + +#endif /* !_XM_NO_XMVECTOR_OVERLOADS_ */ + +#if defined(_XM_NO_INTRINSICS_) +#undef XMISNAN +#undef XMISINF +#endif + +#if defined(_XM_SSE_INTRINSICS_) +#undef XM3UNPACK3INTO4 +#undef XM3PACK4INTO3 +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXPackedVector.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXPackedVector.h new file mode 100644 index 0000000000000000000000000000000000000000..f8e31d349e599af9c10636463dcae82d83cc1bb1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXPackedVector.h @@ -0,0 +1,1233 @@ +//------------------------------------------------------------------------------------- +// DirectXPackedVector.h -- SIMD C++ Math library +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// +// http://go.microsoft.com/fwlink/?LinkID=615560 +//------------------------------------------------------------------------------------- + +#pragma once + +#include "DirectXMath.h" + +namespace DirectX +{ + + namespace PackedVector + { +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4201 4365 4324 4996) + // C4201: nonstandard extension used + // C4365: Off by default noise + // C4324: alignment padding warnings + // C4996: deprecation warnings +#endif + +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgnu-anonymous-struct" +#pragma clang diagnostic ignored "-Wnested-anon-types" +#endif + + //------------------------------------------------------------------------------ + // ARGB Color; 8-8-8-8 bit unsigned normalized integer components packed into + // a 32 bit integer. The normalized color is packed into 32 bits using 8 bit + // unsigned, normalized integers for the alpha, red, green, and blue components. + // The alpha component is stored in the most significant bits and the blue + // component in the least significant bits (A8R8G8B8): + // [32] aaaaaaaa rrrrrrrr gggggggg bbbbbbbb [0] + struct XMCOLOR + { + union + { + struct + { + uint8_t b; // Blue: 0/255 to 255/255 + uint8_t g; // Green: 0/255 to 255/255 + uint8_t r; // Red: 0/255 to 255/255 + uint8_t a; // Alpha: 0/255 to 255/255 + }; + uint32_t c; + }; + + XMCOLOR() = default; + + XMCOLOR(const XMCOLOR&) = default; + XMCOLOR& operator=(const XMCOLOR&) = default; + + XMCOLOR(XMCOLOR&&) = default; + XMCOLOR& operator=(XMCOLOR&&) = default; + + constexpr XMCOLOR(uint32_t Color) noexcept : c(Color) {} + XMCOLOR(float _r, float _g, float _b, float _a) noexcept; + explicit XMCOLOR(_In_reads_(4) const float* pArray) noexcept; + + operator uint32_t () const noexcept { return c; } + + XMCOLOR& operator= (const uint32_t Color) noexcept { c = Color; return *this; } + }; + + //------------------------------------------------------------------------------ + // 16 bit floating point number consisting of a sign bit, a 5 bit biased + // exponent, and a 10 bit mantissa + using HALF = uint16_t; + + //------------------------------------------------------------------------------ + // 2D Vector; 16 bit floating point components + struct XMHALF2 + { + union + { + struct + { + HALF x; + HALF y; + }; + uint32_t v; + }; + + XMHALF2() = default; + + XMHALF2(const XMHALF2&) = default; + XMHALF2& operator=(const XMHALF2&) = default; + + XMHALF2(XMHALF2&&) = default; + XMHALF2& operator=(XMHALF2&&) = default; + + explicit constexpr XMHALF2(uint32_t Packed) noexcept : v(Packed) {} + constexpr XMHALF2(HALF _x, HALF _y) noexcept : x(_x), y(_y) {} + explicit XMHALF2(_In_reads_(2) const HALF* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + XMHALF2(float _x, float _y) noexcept; + explicit XMHALF2(_In_reads_(2) const float* pArray) noexcept; + + XMHALF2& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 2D Vector; 16 bit signed normalized integer components + struct XMSHORTN2 + { + union + { + struct + { + int16_t x; + int16_t y; + }; + uint32_t v; + }; + + XMSHORTN2() = default; + + XMSHORTN2(const XMSHORTN2&) = default; + XMSHORTN2& operator=(const XMSHORTN2&) = default; + + XMSHORTN2(XMSHORTN2&&) = default; + XMSHORTN2& operator=(XMSHORTN2&&) = default; + + explicit constexpr XMSHORTN2(uint32_t Packed) noexcept : v(Packed) {} + constexpr XMSHORTN2(int16_t _x, int16_t _y) noexcept : x(_x), y(_y) {} + explicit XMSHORTN2(_In_reads_(2) const int16_t* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + XMSHORTN2(float _x, float _y) noexcept; + explicit XMSHORTN2(_In_reads_(2) const float* pArray) noexcept; + + XMSHORTN2& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 2D Vector; 16 bit signed integer components + struct XMSHORT2 + { + union + { + struct + { + int16_t x; + int16_t y; + }; + uint32_t v; + }; + + XMSHORT2() = default; + + XMSHORT2(const XMSHORT2&) = default; + XMSHORT2& operator=(const XMSHORT2&) = default; + + XMSHORT2(XMSHORT2&&) = default; + XMSHORT2& operator=(XMSHORT2&&) = default; + + explicit constexpr XMSHORT2(uint32_t Packed) noexcept : v(Packed) {} + constexpr XMSHORT2(int16_t _x, int16_t _y) noexcept : x(_x), y(_y) {} + explicit XMSHORT2(_In_reads_(2) const int16_t* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + XMSHORT2(float _x, float _y) noexcept; + explicit XMSHORT2(_In_reads_(2) const float* pArray) noexcept; + + XMSHORT2& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 2D Vector; 16 bit unsigned normalized integer components + struct XMUSHORTN2 + { + union + { + struct + { + uint16_t x; + uint16_t y; + }; + uint32_t v; + }; + + XMUSHORTN2() = default; + + XMUSHORTN2(const XMUSHORTN2&) = default; + XMUSHORTN2& operator=(const XMUSHORTN2&) = default; + + XMUSHORTN2(XMUSHORTN2&&) = default; + XMUSHORTN2& operator=(XMUSHORTN2&&) = default; + + explicit constexpr XMUSHORTN2(uint32_t Packed) noexcept : v(Packed) {} + constexpr XMUSHORTN2(uint16_t _x, uint16_t _y) noexcept : x(_x), y(_y) {} + explicit XMUSHORTN2(_In_reads_(2) const uint16_t* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + XMUSHORTN2(float _x, float _y) noexcept; + explicit XMUSHORTN2(_In_reads_(2) const float* pArray) noexcept; + + XMUSHORTN2& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 2D Vector; 16 bit unsigned integer components + struct XMUSHORT2 + { + union + { + struct + { + uint16_t x; + uint16_t y; + }; + uint32_t v; + }; + + XMUSHORT2() = default; + + XMUSHORT2(const XMUSHORT2&) = default; + XMUSHORT2& operator=(const XMUSHORT2&) = default; + + XMUSHORT2(XMUSHORT2&&) = default; + XMUSHORT2& operator=(XMUSHORT2&&) = default; + + explicit constexpr XMUSHORT2(uint32_t Packed) noexcept : v(Packed) {} + constexpr XMUSHORT2(uint16_t _x, uint16_t _y) noexcept : x(_x), y(_y) {} + explicit XMUSHORT2(_In_reads_(2) const uint16_t* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + XMUSHORT2(float _x, float _y) noexcept; + explicit XMUSHORT2(_In_reads_(2) const float* pArray) noexcept; + + XMUSHORT2& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 2D Vector; 8 bit signed normalized integer components + struct XMBYTEN2 + { + union + { + struct + { + int8_t x; + int8_t y; + }; + uint16_t v; + }; + + XMBYTEN2() = default; + + XMBYTEN2(const XMBYTEN2&) = default; + XMBYTEN2& operator=(const XMBYTEN2&) = default; + + XMBYTEN2(XMBYTEN2&&) = default; + XMBYTEN2& operator=(XMBYTEN2&&) = default; + + explicit constexpr XMBYTEN2(uint16_t Packed) noexcept : v(Packed) {} + constexpr XMBYTEN2(int8_t _x, int8_t _y) noexcept : x(_x), y(_y) {} + explicit XMBYTEN2(_In_reads_(2) const int8_t* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + XMBYTEN2(float _x, float _y) noexcept; + explicit XMBYTEN2(_In_reads_(2) const float* pArray) noexcept; + + XMBYTEN2& operator= (uint16_t Packed) noexcept { v = Packed; return *this; } + }; + + // 2D Vector; 8 bit signed integer components + struct XMBYTE2 + { + union + { + struct + { + int8_t x; + int8_t y; + }; + uint16_t v; + }; + + XMBYTE2() = default; + + XMBYTE2(const XMBYTE2&) = default; + XMBYTE2& operator=(const XMBYTE2&) = default; + + XMBYTE2(XMBYTE2&&) = default; + XMBYTE2& operator=(XMBYTE2&&) = default; + + explicit constexpr XMBYTE2(uint16_t Packed) noexcept : v(Packed) {} + constexpr XMBYTE2(int8_t _x, int8_t _y) noexcept : x(_x), y(_y) {} + explicit XMBYTE2(_In_reads_(2) const int8_t* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + XMBYTE2(float _x, float _y) noexcept; + explicit XMBYTE2(_In_reads_(2) const float* pArray) noexcept; + + XMBYTE2& operator= (uint16_t Packed) noexcept { v = Packed; return *this; } + }; + + // 2D Vector; 8 bit unsigned normalized integer components + struct XMUBYTEN2 + { + union + { + struct + { + uint8_t x; + uint8_t y; + }; + uint16_t v; + }; + + XMUBYTEN2() = default; + + XMUBYTEN2(const XMUBYTEN2&) = default; + XMUBYTEN2& operator=(const XMUBYTEN2&) = default; + + XMUBYTEN2(XMUBYTEN2&&) = default; + XMUBYTEN2& operator=(XMUBYTEN2&&) = default; + + explicit constexpr XMUBYTEN2(uint16_t Packed) noexcept : v(Packed) {} + constexpr XMUBYTEN2(uint8_t _x, uint8_t _y) noexcept : x(_x), y(_y) {} + explicit XMUBYTEN2(_In_reads_(2) const uint8_t* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + XMUBYTEN2(float _x, float _y) noexcept; + explicit XMUBYTEN2(_In_reads_(2) const float* pArray) noexcept; + + XMUBYTEN2& operator= (uint16_t Packed) noexcept { v = Packed; return *this; } + }; + + // 2D Vector; 8 bit unsigned integer components + struct XMUBYTE2 + { + union + { + struct + { + uint8_t x; + uint8_t y; + }; + uint16_t v; + }; + + XMUBYTE2() = default; + + XMUBYTE2(const XMUBYTE2&) = default; + XMUBYTE2& operator=(const XMUBYTE2&) = default; + + XMUBYTE2(XMUBYTE2&&) = default; + XMUBYTE2& operator=(XMUBYTE2&&) = default; + + explicit constexpr XMUBYTE2(uint16_t Packed) noexcept : v(Packed) {} + constexpr XMUBYTE2(uint8_t _x, uint8_t _y) noexcept : x(_x), y(_y) {} + explicit XMUBYTE2(_In_reads_(2) const uint8_t* pArray) noexcept : x(pArray[0]), y(pArray[1]) {} + XMUBYTE2(float _x, float _y) noexcept; + explicit XMUBYTE2(_In_reads_(2) const float* pArray) noexcept; + + XMUBYTE2& operator= (uint16_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 3D vector: 5/6/5 unsigned integer components + struct XMU565 + { + union + { + struct + { + uint16_t x : 5; // 0 to 31 + uint16_t y : 6; // 0 to 63 + uint16_t z : 5; // 0 to 31 + }; + uint16_t v; + }; + + XMU565() = default; + + XMU565(const XMU565&) = default; + XMU565& operator=(const XMU565&) = default; + + XMU565(XMU565&&) = default; + XMU565& operator=(XMU565&&) = default; + + explicit constexpr XMU565(uint16_t Packed) noexcept : v(Packed) {} + constexpr XMU565(uint8_t _x, uint8_t _y, uint8_t _z) noexcept : x(_x), y(_y), z(_z) {} + explicit XMU565(_In_reads_(3) const uint8_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]) {} + XMU565(float _x, float _y, float _z) noexcept; + explicit XMU565(_In_reads_(3) const float* pArray) noexcept; + + operator uint16_t () const noexcept { return v; } + + XMU565& operator= (uint16_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 3D vector: 11/11/10 floating-point components + // The 3D vector is packed into 32 bits as follows: a 5-bit biased exponent + // and 6-bit mantissa for x component, a 5-bit biased exponent and + // 6-bit mantissa for y component, a 5-bit biased exponent and a 5-bit + // mantissa for z. The z component is stored in the most significant bits + // and the x component in the least significant bits. No sign bits so + // all partial-precision numbers are positive. + // (Z10Y11X11): [32] ZZZZZzzz zzzYYYYY yyyyyyXX XXXxxxxx [0] + struct XMFLOAT3PK + { + union + { + struct + { + uint32_t xm : 6; // x-mantissa + uint32_t xe : 5; // x-exponent + uint32_t ym : 6; // y-mantissa + uint32_t ye : 5; // y-exponent + uint32_t zm : 5; // z-mantissa + uint32_t ze : 5; // z-exponent + }; + uint32_t v; + }; + + XMFLOAT3PK() = default; + + XMFLOAT3PK(const XMFLOAT3PK&) = default; + XMFLOAT3PK& operator=(const XMFLOAT3PK&) = default; + + XMFLOAT3PK(XMFLOAT3PK&&) = default; + XMFLOAT3PK& operator=(XMFLOAT3PK&&) = default; + + explicit constexpr XMFLOAT3PK(uint32_t Packed) noexcept : v(Packed) {} + XMFLOAT3PK(float _x, float _y, float _z) noexcept; + explicit XMFLOAT3PK(_In_reads_(3) const float* pArray) noexcept; + + operator uint32_t () const noexcept { return v; } + + XMFLOAT3PK& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 3D vector: 9/9/9 floating-point components with shared 5-bit exponent + // The 3D vector is packed into 32 bits as follows: a 5-bit biased exponent + // with 9-bit mantissa for the x, y, and z component. The shared exponent + // is stored in the most significant bits and the x component mantissa is in + // the least significant bits. No sign bits so all partial-precision numbers + // are positive. + // (E5Z9Y9X9): [32] EEEEEzzz zzzzzzyy yyyyyyyx xxxxxxxx [0] + struct XMFLOAT3SE + { + union + { + struct + { + uint32_t xm : 9; // x-mantissa + uint32_t ym : 9; // y-mantissa + uint32_t zm : 9; // z-mantissa + uint32_t e : 5; // shared exponent + }; + uint32_t v; + }; + + XMFLOAT3SE() = default; + + XMFLOAT3SE(const XMFLOAT3SE&) = default; + XMFLOAT3SE& operator=(const XMFLOAT3SE&) = default; + + XMFLOAT3SE(XMFLOAT3SE&&) = default; + XMFLOAT3SE& operator=(XMFLOAT3SE&&) = default; + + explicit constexpr XMFLOAT3SE(uint32_t Packed) noexcept : v(Packed) {} + XMFLOAT3SE(float _x, float _y, float _z) noexcept; + explicit XMFLOAT3SE(_In_reads_(3) const float* pArray) noexcept; + + operator uint32_t () const noexcept { return v; } + + XMFLOAT3SE& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 4D Vector; 16 bit floating point components + struct XMHALF4 + { + union + { + struct + { + HALF x; + HALF y; + HALF z; + HALF w; + }; + uint64_t v; + }; + + XMHALF4() = default; + + XMHALF4(const XMHALF4&) = default; + XMHALF4& operator=(const XMHALF4&) = default; + + XMHALF4(XMHALF4&&) = default; + XMHALF4& operator=(XMHALF4&&) = default; + + explicit constexpr XMHALF4(uint64_t Packed) noexcept : v(Packed) {} + constexpr XMHALF4(HALF _x, HALF _y, HALF _z, HALF _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit XMHALF4(_In_reads_(4) const HALF* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + XMHALF4(float _x, float _y, float _z, float _w) noexcept; + explicit XMHALF4(_In_reads_(4) const float* pArray) noexcept; + + XMHALF4& operator= (uint64_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 4D Vector; 16 bit signed normalized integer components + struct XMSHORTN4 + { + union + { + struct + { + int16_t x; + int16_t y; + int16_t z; + int16_t w; + }; + uint64_t v; + }; + + XMSHORTN4() = default; + + XMSHORTN4(const XMSHORTN4&) = default; + XMSHORTN4& operator=(const XMSHORTN4&) = default; + + XMSHORTN4(XMSHORTN4&&) = default; + XMSHORTN4& operator=(XMSHORTN4&&) = default; + + explicit constexpr XMSHORTN4(uint64_t Packed) noexcept : v(Packed) {} + constexpr XMSHORTN4(int16_t _x, int16_t _y, int16_t _z, int16_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit XMSHORTN4(_In_reads_(4) const int16_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + XMSHORTN4(float _x, float _y, float _z, float _w) noexcept; + explicit XMSHORTN4(_In_reads_(4) const float* pArray) noexcept; + + XMSHORTN4& operator= (uint64_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 16 bit signed integer components + struct XMSHORT4 + { + union + { + struct + { + int16_t x; + int16_t y; + int16_t z; + int16_t w; + }; + uint64_t v; + }; + + XMSHORT4() = default; + + XMSHORT4(const XMSHORT4&) = default; + XMSHORT4& operator=(const XMSHORT4&) = default; + + XMSHORT4(XMSHORT4&&) = default; + XMSHORT4& operator=(XMSHORT4&&) = default; + + explicit constexpr XMSHORT4(uint64_t Packed) noexcept : v(Packed) {} + constexpr XMSHORT4(int16_t _x, int16_t _y, int16_t _z, int16_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit XMSHORT4(_In_reads_(4) const int16_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + XMSHORT4(float _x, float _y, float _z, float _w) noexcept; + explicit XMSHORT4(_In_reads_(4) const float* pArray) noexcept; + + XMSHORT4& operator= (uint64_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 16 bit unsigned normalized integer components + struct XMUSHORTN4 + { + union + { + struct + { + uint16_t x; + uint16_t y; + uint16_t z; + uint16_t w; + }; + uint64_t v; + }; + + XMUSHORTN4() = default; + + XMUSHORTN4(const XMUSHORTN4&) = default; + XMUSHORTN4& operator=(const XMUSHORTN4&) = default; + + XMUSHORTN4(XMUSHORTN4&&) = default; + XMUSHORTN4& operator=(XMUSHORTN4&&) = default; + + explicit constexpr XMUSHORTN4(uint64_t Packed) noexcept : v(Packed) {} + constexpr XMUSHORTN4(uint16_t _x, uint16_t _y, uint16_t _z, uint16_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit XMUSHORTN4(_In_reads_(4) const uint16_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + XMUSHORTN4(float _x, float _y, float _z, float _w) noexcept; + explicit XMUSHORTN4(_In_reads_(4) const float* pArray) noexcept; + + XMUSHORTN4& operator= (uint64_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 16 bit unsigned integer components + struct XMUSHORT4 + { + union + { + struct + { + uint16_t x; + uint16_t y; + uint16_t z; + uint16_t w; + }; + uint64_t v; + }; + + XMUSHORT4() = default; + + XMUSHORT4(const XMUSHORT4&) = default; + XMUSHORT4& operator=(const XMUSHORT4&) = default; + + XMUSHORT4(XMUSHORT4&&) = default; + XMUSHORT4& operator=(XMUSHORT4&&) = default; + + explicit constexpr XMUSHORT4(uint64_t Packed) noexcept : v(Packed) {} + constexpr XMUSHORT4(uint16_t _x, uint16_t _y, uint16_t _z, uint16_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit XMUSHORT4(_In_reads_(4) const uint16_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + XMUSHORT4(float _x, float _y, float _z, float _w) noexcept; + explicit XMUSHORT4(_In_reads_(4) const float* pArray) noexcept; + + XMUSHORT4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 4D Vector; 10-10-10-2 bit normalized components packed into a 32 bit integer + // The normalized 4D Vector is packed into 32 bits as follows: a 2 bit unsigned, + // normalized integer for the w component and 10 bit signed, normalized + // integers for the z, y, and x components. The w component is stored in the + // most significant bits and the x component in the least significant bits + // (W2Z10Y10X10): [32] wwzzzzzz zzzzyyyy yyyyyyxx xxxxxxxx [0] + struct XMXDECN4 + { + union + { + struct + { + int32_t x : 10; // -511/511 to 511/511 + int32_t y : 10; // -511/511 to 511/511 + int32_t z : 10; // -511/511 to 511/511 + uint32_t w : 2; // 0/3 to 3/3 + }; + uint32_t v; + }; + + XMXDECN4() = default; + + XMXDECN4(const XMXDECN4&) = default; + XMXDECN4& operator=(const XMXDECN4&) = default; + + XMXDECN4(XMXDECN4&&) = default; + XMXDECN4& operator=(XMXDECN4&&) = default; + + explicit constexpr XMXDECN4(uint32_t Packed) : v(Packed) {} + XMXDECN4(float _x, float _y, float _z, float _w) noexcept; + explicit XMXDECN4(_In_reads_(4) const float* pArray) noexcept; + + operator uint32_t () const noexcept { return v; } + + XMXDECN4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 10-10-10-2 bit components packed into a 32 bit integer + // The normalized 4D Vector is packed into 32 bits as follows: a 2 bit unsigned + // integer for the w component and 10 bit signed integers for the + // z, y, and x components. The w component is stored in the + // most significant bits and the x component in the least significant bits + // (W2Z10Y10X10): [32] wwzzzzzz zzzzyyyy yyyyyyxx xxxxxxxx [0] + struct XM_DEPRECATED XMXDEC4 + { + union + { + struct + { + int32_t x : 10; // -511 to 511 + int32_t y : 10; // -511 to 511 + int32_t z : 10; // -511 to 511 + uint32_t w : 2; // 0 to 3 + }; + uint32_t v; + }; + + XMXDEC4() = default; + + XMXDEC4(const XMXDEC4&) = default; + XMXDEC4& operator=(const XMXDEC4&) = default; + + XMXDEC4(XMXDEC4&&) = default; + XMXDEC4& operator=(XMXDEC4&&) = default; + + explicit constexpr XMXDEC4(uint32_t Packed) noexcept : v(Packed) {} + XMXDEC4(float _x, float _y, float _z, float _w) noexcept; + explicit XMXDEC4(_In_reads_(4) const float* pArray) noexcept; + + operator uint32_t () const noexcept { return v; } + + XMXDEC4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 10-10-10-2 bit normalized components packed into a 32 bit integer + // The normalized 4D Vector is packed into 32 bits as follows: a 2 bit signed, + // normalized integer for the w component and 10 bit signed, normalized + // integers for the z, y, and x components. The w component is stored in the + // most significant bits and the x component in the least significant bits + // (W2Z10Y10X10): [32] wwzzzzzz zzzzyyyy yyyyyyxx xxxxxxxx [0] + struct XM_DEPRECATED XMDECN4 + { + union + { + struct + { + int32_t x : 10; // -511/511 to 511/511 + int32_t y : 10; // -511/511 to 511/511 + int32_t z : 10; // -511/511 to 511/511 + int32_t w : 2; // -1/1 to 1/1 + }; + uint32_t v; + }; + + XMDECN4() = default; + + XMDECN4(const XMDECN4&) = default; + XMDECN4& operator=(const XMDECN4&) = default; + + XMDECN4(XMDECN4&&) = default; + XMDECN4& operator=(XMDECN4&&) = default; + + explicit constexpr XMDECN4(uint32_t Packed) noexcept : v(Packed) {} + XMDECN4(float _x, float _y, float _z, float _w) noexcept; + explicit XMDECN4(_In_reads_(4) const float* pArray) noexcept; + + operator uint32_t () const noexcept { return v; } + + XMDECN4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 10-10-10-2 bit components packed into a 32 bit integer + // The 4D Vector is packed into 32 bits as follows: a 2 bit signed, + // integer for the w component and 10 bit signed integers for the + // z, y, and x components. The w component is stored in the + // most significant bits and the x component in the least significant bits + // (W2Z10Y10X10): [32] wwzzzzzz zzzzyyyy yyyyyyxx xxxxxxxx [0] + struct XM_DEPRECATED XMDEC4 + { + union + { + struct + { + int32_t x : 10; // -511 to 511 + int32_t y : 10; // -511 to 511 + int32_t z : 10; // -511 to 511 + int32_t w : 2; // -1 to 1 + }; + uint32_t v; + }; + + XMDEC4() = default; + + XMDEC4(const XMDEC4&) = default; + XMDEC4& operator=(const XMDEC4&) = default; + + XMDEC4(XMDEC4&&) = default; + XMDEC4& operator=(XMDEC4&&) = default; + + explicit constexpr XMDEC4(uint32_t Packed) noexcept : v(Packed) {} + XMDEC4(float _x, float _y, float _z, float _w) noexcept; + explicit XMDEC4(_In_reads_(4) const float* pArray) noexcept; + + operator uint32_t () const noexcept { return v; } + + XMDEC4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 10-10-10-2 bit normalized components packed into a 32 bit integer + // The normalized 4D Vector is packed into 32 bits as follows: a 2 bit unsigned, + // normalized integer for the w component and 10 bit unsigned, normalized + // integers for the z, y, and x components. The w component is stored in the + // most significant bits and the x component in the least significant bits + // (W2Z10Y10X10): [32] wwzzzzzz zzzzyyyy yyyyyyxx xxxxxxxx [0] + struct XMUDECN4 + { + union + { + struct + { + uint32_t x : 10; // 0/1023 to 1023/1023 + uint32_t y : 10; // 0/1023 to 1023/1023 + uint32_t z : 10; // 0/1023 to 1023/1023 + uint32_t w : 2; // 0/3 to 3/3 + }; + uint32_t v; + }; + + XMUDECN4() = default; + + XMUDECN4(const XMUDECN4&) = default; + XMUDECN4& operator=(const XMUDECN4&) = default; + + XMUDECN4(XMUDECN4&&) = default; + XMUDECN4& operator=(XMUDECN4&&) = default; + + explicit constexpr XMUDECN4(uint32_t Packed) noexcept : v(Packed) {} + XMUDECN4(float _x, float _y, float _z, float _w) noexcept; + explicit XMUDECN4(_In_reads_(4) const float* pArray) noexcept; + + operator uint32_t () const noexcept { return v; } + + XMUDECN4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 10-10-10-2 bit components packed into a 32 bit integer + // The 4D Vector is packed into 32 bits as follows: a 2 bit unsigned, + // integer for the w component and 10 bit unsigned integers + // for the z, y, and x components. The w component is stored in the + // most significant bits and the x component in the least significant bits + // (W2Z10Y10X10): [32] wwzzzzzz zzzzyyyy yyyyyyxx xxxxxxxx [0] + struct XMUDEC4 + { + union + { + struct + { + uint32_t x : 10; // 0 to 1023 + uint32_t y : 10; // 0 to 1023 + uint32_t z : 10; // 0 to 1023 + uint32_t w : 2; // 0 to 3 + }; + uint32_t v; + }; + + XMUDEC4() = default; + + XMUDEC4(const XMUDEC4&) = default; + XMUDEC4& operator=(const XMUDEC4&) = default; + + XMUDEC4(XMUDEC4&&) = default; + XMUDEC4& operator=(XMUDEC4&&) = default; + + explicit constexpr XMUDEC4(uint32_t Packed) noexcept : v(Packed) {} + XMUDEC4(float _x, float _y, float _z, float _w) noexcept; + explicit XMUDEC4(_In_reads_(4) const float* pArray) noexcept; + + operator uint32_t () const noexcept { return v; } + + XMUDEC4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 4D Vector; 8 bit signed normalized integer components + struct XMBYTEN4 + { + union + { + struct + { + int8_t x; + int8_t y; + int8_t z; + int8_t w; + }; + uint32_t v; + }; + + XMBYTEN4() = default; + + XMBYTEN4(const XMBYTEN4&) = default; + XMBYTEN4& operator=(const XMBYTEN4&) = default; + + XMBYTEN4(XMBYTEN4&&) = default; + XMBYTEN4& operator=(XMBYTEN4&&) = default; + + constexpr XMBYTEN4(int8_t _x, int8_t _y, int8_t _z, int8_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit constexpr XMBYTEN4(uint32_t Packed) noexcept : v(Packed) {} + explicit XMBYTEN4(_In_reads_(4) const int8_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + XMBYTEN4(float _x, float _y, float _z, float _w) noexcept; + explicit XMBYTEN4(_In_reads_(4) const float* pArray) noexcept; + + XMBYTEN4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 8 bit signed integer components + struct XMBYTE4 + { + union + { + struct + { + int8_t x; + int8_t y; + int8_t z; + int8_t w; + }; + uint32_t v; + }; + + XMBYTE4() = default; + + XMBYTE4(const XMBYTE4&) = default; + XMBYTE4& operator=(const XMBYTE4&) = default; + + XMBYTE4(XMBYTE4&&) = default; + XMBYTE4& operator=(XMBYTE4&&) = default; + + constexpr XMBYTE4(int8_t _x, int8_t _y, int8_t _z, int8_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit constexpr XMBYTE4(uint32_t Packed) noexcept : v(Packed) {} + explicit XMBYTE4(_In_reads_(4) const int8_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + XMBYTE4(float _x, float _y, float _z, float _w) noexcept; + explicit XMBYTE4(_In_reads_(4) const float* pArray) noexcept; + + XMBYTE4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 8 bit unsigned normalized integer components + struct XMUBYTEN4 + { + union + { + struct + { + uint8_t x; + uint8_t y; + uint8_t z; + uint8_t w; + }; + uint32_t v; + }; + + XMUBYTEN4() = default; + + XMUBYTEN4(const XMUBYTEN4&) = default; + XMUBYTEN4& operator=(const XMUBYTEN4&) = default; + + XMUBYTEN4(XMUBYTEN4&&) = default; + XMUBYTEN4& operator=(XMUBYTEN4&&) = default; + + constexpr XMUBYTEN4(uint8_t _x, uint8_t _y, uint8_t _z, uint8_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit constexpr XMUBYTEN4(uint32_t Packed) noexcept : v(Packed) {} + explicit XMUBYTEN4(_In_reads_(4) const uint8_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + XMUBYTEN4(float _x, float _y, float _z, float _w) noexcept; + explicit XMUBYTEN4(_In_reads_(4) const float* pArray) noexcept; + + XMUBYTEN4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + // 4D Vector; 8 bit unsigned integer components + struct XMUBYTE4 + { + union + { + struct + { + uint8_t x; + uint8_t y; + uint8_t z; + uint8_t w; + }; + uint32_t v; + }; + + XMUBYTE4() = default; + + XMUBYTE4(const XMUBYTE4&) = default; + XMUBYTE4& operator=(const XMUBYTE4&) = default; + + XMUBYTE4(XMUBYTE4&&) = default; + XMUBYTE4& operator=(XMUBYTE4&&) = default; + + constexpr XMUBYTE4(uint8_t _x, uint8_t _y, uint8_t _z, uint8_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit constexpr XMUBYTE4(uint32_t Packed) noexcept : v(Packed) {} + explicit XMUBYTE4(_In_reads_(4) const uint8_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + XMUBYTE4(float _x, float _y, float _z, float _w) noexcept; + explicit XMUBYTE4(_In_reads_(4) const float* pArray) noexcept; + + XMUBYTE4& operator= (uint32_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 4D vector; 4 bit unsigned integer components + struct XMUNIBBLE4 + { + union + { + struct + { + uint16_t x : 4; // 0 to 15 + uint16_t y : 4; // 0 to 15 + uint16_t z : 4; // 0 to 15 + uint16_t w : 4; // 0 to 15 + }; + uint16_t v; + }; + + XMUNIBBLE4() = default; + + XMUNIBBLE4(const XMUNIBBLE4&) = default; + XMUNIBBLE4& operator=(const XMUNIBBLE4&) = default; + + XMUNIBBLE4(XMUNIBBLE4&&) = default; + XMUNIBBLE4& operator=(XMUNIBBLE4&&) = default; + + explicit constexpr XMUNIBBLE4(uint16_t Packed) noexcept : v(Packed) {} + constexpr XMUNIBBLE4(uint8_t _x, uint8_t _y, uint8_t _z, uint8_t _w) noexcept : x(_x), y(_y), z(_z), w(_w) {} + explicit XMUNIBBLE4(_In_reads_(4) const uint8_t* pArray) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(pArray[3]) {} + XMUNIBBLE4(float _x, float _y, float _z, float _w) noexcept; + explicit XMUNIBBLE4(_In_reads_(4) const float* pArray) noexcept; + + operator uint16_t () const noexcept { return v; } + + XMUNIBBLE4& operator= (uint16_t Packed) noexcept { v = Packed; return *this; } + }; + + //------------------------------------------------------------------------------ + // 4D vector: 5/5/5/1 unsigned integer components + struct XMU555 + { + union + { + struct + { + uint16_t x : 5; // 0 to 31 + uint16_t y : 5; // 0 to 31 + uint16_t z : 5; // 0 to 31 + uint16_t w : 1; // 0 or 1 + }; + uint16_t v; + }; + + XMU555() = default; + + XMU555(const XMU555&) = default; + XMU555& operator=(const XMU555&) = default; + + XMU555(XMU555&&) = default; + XMU555& operator=(XMU555&&) = default; + + explicit constexpr XMU555(uint16_t Packed) noexcept : v(Packed) {} + constexpr XMU555(uint8_t _x, uint8_t _y, uint8_t _z, bool _w) noexcept : x(_x), y(_y), z(_z), w(_w ? 0x1 : 0) {} + XMU555(_In_reads_(3) const uint8_t* pArray, _In_ bool _w) noexcept : x(pArray[0]), y(pArray[1]), z(pArray[2]), w(_w ? 0x1 : 0) {} + XMU555(float _x, float _y, float _z, bool _w) noexcept; + XMU555(_In_reads_(3) const float* pArray, _In_ bool _w) noexcept; + + operator uint16_t () const noexcept { return v; } + + XMU555& operator= (uint16_t Packed) noexcept { v = Packed; return *this; } + }; + +#ifdef __clang__ +#pragma clang diagnostic pop +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + + /**************************************************************************** + * + * Data conversion operations + * + ****************************************************************************/ + + float XMConvertHalfToFloat(HALF Value) noexcept; + float* XMConvertHalfToFloatStream(_Out_writes_bytes_(sizeof(float) + OutputStride * (HalfCount - 1)) float* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(HALF) + InputStride * (HalfCount - 1)) const HALF* pInputStream, + _In_ size_t InputStride, _In_ size_t HalfCount) noexcept; + HALF XMConvertFloatToHalf(float Value) noexcept; + HALF* XMConvertFloatToHalfStream(_Out_writes_bytes_(sizeof(HALF) + OutputStride * (FloatCount - 1)) HALF* pOutputStream, + _In_ size_t OutputStride, + _In_reads_bytes_(sizeof(float) + InputStride * (FloatCount - 1)) const float* pInputStream, + _In_ size_t InputStride, _In_ size_t FloatCount) noexcept; + + /**************************************************************************** + * + * Load operations + * + ****************************************************************************/ + + XMVECTOR XM_CALLCONV XMLoadColor(_In_ const XMCOLOR* pSource) noexcept; + + XMVECTOR XM_CALLCONV XMLoadHalf2(_In_ const XMHALF2* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadShortN2(_In_ const XMSHORTN2* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadShort2(_In_ const XMSHORT2* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUShortN2(_In_ const XMUSHORTN2* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUShort2(_In_ const XMUSHORT2* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadByteN2(_In_ const XMBYTEN2* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadByte2(_In_ const XMBYTE2* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUByteN2(_In_ const XMUBYTEN2* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUByte2(_In_ const XMUBYTE2* pSource) noexcept; + + XMVECTOR XM_CALLCONV XMLoadU565(_In_ const XMU565* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadFloat3PK(_In_ const XMFLOAT3PK* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadFloat3SE(_In_ const XMFLOAT3SE* pSource) noexcept; + + XMVECTOR XM_CALLCONV XMLoadHalf4(_In_ const XMHALF4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadShortN4(_In_ const XMSHORTN4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadShort4(_In_ const XMSHORT4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUShortN4(_In_ const XMUSHORTN4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUShort4(_In_ const XMUSHORT4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadXDecN4(_In_ const XMXDECN4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUDecN4(_In_ const XMUDECN4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUDecN4_XR(_In_ const XMUDECN4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUDec4(_In_ const XMUDEC4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadByteN4(_In_ const XMBYTEN4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadByte4(_In_ const XMBYTE4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUByteN4(_In_ const XMUBYTEN4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUByte4(_In_ const XMUBYTE4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadUNibble4(_In_ const XMUNIBBLE4* pSource) noexcept; + XMVECTOR XM_CALLCONV XMLoadU555(_In_ const XMU555* pSource) noexcept; + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4996) + // C4996: ignore deprecation warning +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + + XMVECTOR XM_DEPRECATED XM_CALLCONV XMLoadDecN4(_In_ const XMDECN4* pSource) noexcept; + XMVECTOR XM_DEPRECATED XM_CALLCONV XMLoadDec4(_In_ const XMDEC4* pSource) noexcept; + XMVECTOR XM_DEPRECATED XM_CALLCONV XMLoadXDec4(_In_ const XMXDEC4* pSource) noexcept; + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + + /**************************************************************************** + * + * Store operations + * + ****************************************************************************/ + + void XM_CALLCONV XMStoreColor(_Out_ XMCOLOR* pDestination, _In_ FXMVECTOR V) noexcept; + + void XM_CALLCONV XMStoreHalf2(_Out_ XMHALF2* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreShortN2(_Out_ XMSHORTN2* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreShort2(_Out_ XMSHORT2* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUShortN2(_Out_ XMUSHORTN2* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUShort2(_Out_ XMUSHORT2* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreByteN2(_Out_ XMBYTEN2* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreByte2(_Out_ XMBYTE2* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUByteN2(_Out_ XMUBYTEN2* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUByte2(_Out_ XMUBYTE2* pDestination, _In_ FXMVECTOR V) noexcept; + + void XM_CALLCONV XMStoreU565(_Out_ XMU565* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreFloat3PK(_Out_ XMFLOAT3PK* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreFloat3SE(_Out_ XMFLOAT3SE* pDestination, _In_ FXMVECTOR V) noexcept; + + void XM_CALLCONV XMStoreHalf4(_Out_ XMHALF4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreShortN4(_Out_ XMSHORTN4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreShort4(_Out_ XMSHORT4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUShortN4(_Out_ XMUSHORTN4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUShort4(_Out_ XMUSHORT4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreXDecN4(_Out_ XMXDECN4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUDecN4(_Out_ XMUDECN4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUDecN4_XR(_Out_ XMUDECN4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUDec4(_Out_ XMUDEC4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreByteN4(_Out_ XMBYTEN4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreByte4(_Out_ XMBYTE4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUByteN4(_Out_ XMUBYTEN4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUByte4(_Out_ XMUBYTE4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreUNibble4(_Out_ XMUNIBBLE4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_CALLCONV XMStoreU555(_Out_ XMU555* pDestination, _In_ FXMVECTOR V) noexcept; + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4996) + // C4996: ignore deprecation warning +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + + void XM_DEPRECATED XM_CALLCONV XMStoreDecN4(_Out_ XMDECN4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_DEPRECATED XM_CALLCONV XMStoreDec4(_Out_ XMDEC4* pDestination, _In_ FXMVECTOR V) noexcept; + void XM_DEPRECATED XM_CALLCONV XMStoreXDec4(_Out_ XMXDEC4* pDestination, _In_ FXMVECTOR V) noexcept; + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + + /**************************************************************************** + * + * Implementation + * + ****************************************************************************/ +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4068 4214 4204 4365 4616 6001 6101) + // C4068/4616: ignore unknown pragmas + // C4214/4204: nonstandard extension used + // C4365: Off by default noise + // C6001/6101: False positives +#endif + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes") +#pragma prefast(disable : 26495, "Union initialization confuses /analyze") +#endif + +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-warning-option" +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" +#endif + +#include "DirectXPackedVector.inl" + +#ifdef __clang__ +#pragma clang diagnostic pop +#endif +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + } // namespace PackedVector + +} // namespace DirectX + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXPackedVector.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXPackedVector.inl new file mode 100644 index 0000000000000000000000000000000000000000..68ee526871a5813e8655e69c8936ac6dce905029 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DirectXPackedVector.inl @@ -0,0 +1,4459 @@ +//------------------------------------------------------------------------------------- +// DirectXPackedVector.inl -- SIMD C++ Math library +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +// +// http://go.microsoft.com/fwlink/?LinkID=615560 +//------------------------------------------------------------------------------------- + +#pragma once + +/**************************************************************************** + * + * Data conversion + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline float XMConvertHalfToFloat(HALF Value) noexcept +{ +#if defined(_XM_F16C_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + __m128i V1 = _mm_cvtsi32_si128(static_cast(Value)); + __m128 V2 = _mm_cvtph_ps(V1); + return _mm_cvtss_f32(V2); +#elif defined(_XM_ARM_NEON_INTRINSICS_) && (defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__) && !defined(_XM_NO_INTRINSICS_) && (!defined(__GNUC__) || (__ARM_FP & 2)) + uint16x4_t vHalf = vdup_n_u16(Value); + float32x4_t vFloat = vcvt_f32_f16(vreinterpret_f16_u16(vHalf)); + return vgetq_lane_f32(vFloat, 0); +#else + auto Mantissa = static_cast(Value & 0x03FF); + + uint32_t Exponent = (Value & 0x7C00); + if (Exponent == 0x7C00) // INF/NAN + { + Exponent = 0x8f; + } + else if (Exponent != 0) // The value is normalized + { + Exponent = static_cast((static_cast(Value) >> 10) & 0x1F); + } + else if (Mantissa != 0) // The value is denormalized + { + // Normalize the value in the resulting float + Exponent = 1; + + do + { + Exponent--; + Mantissa <<= 1; + } while ((Mantissa & 0x0400) == 0); + + Mantissa &= 0x03FF; + } + else // The value is zero + { + Exponent = static_cast(-112); + } + + uint32_t Result = + ((static_cast(Value) & 0x8000) << 16) // Sign + | ((Exponent + 112) << 23) // Exponent + | (Mantissa << 13); // Mantissa + + return reinterpret_cast(&Result)[0]; +#endif // !_XM_F16C_INTRINSICS_ +} + +//------------------------------------------------------------------------------ +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable : 26015 26019, "PREfast noise: Esp:1307" ) +#endif + +_Use_decl_annotations_ +inline float* XMConvertHalfToFloatStream +( + float* pOutputStream, + size_t OutputStride, + const HALF* pInputStream, + size_t InputStride, + size_t HalfCount +) noexcept +{ + assert(pOutputStream); + assert(pInputStream); + + assert(InputStride >= sizeof(HALF)); + _Analysis_assume_(InputStride >= sizeof(HALF)); + + assert(OutputStride >= sizeof(float)); + _Analysis_assume_(OutputStride >= sizeof(float)); + +#if defined(_XM_F16C_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + auto pHalf = reinterpret_cast(pInputStream); + auto pFloat = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t four = HalfCount >> 2; + if (four > 0) + { + if (InputStride == sizeof(HALF)) + { + if (OutputStride == sizeof(float)) + { + if ((reinterpret_cast(pFloat) & 0xF) == 0) + { + // Packed input, aligned & packed output + for (size_t j = 0; j < four; ++j) + { + __m128i HV = _mm_loadl_epi64(reinterpret_cast(pHalf)); + pHalf += InputStride * 4; + + __m128 FV = _mm_cvtph_ps(HV); + + XM_STREAM_PS(reinterpret_cast(pFloat), FV); + pFloat += OutputStride * 4; + i += 4; + } + } + else + { + // Packed input, packed output + for (size_t j = 0; j < four; ++j) + { + __m128i HV = _mm_loadl_epi64(reinterpret_cast(pHalf)); + pHalf += InputStride * 4; + + __m128 FV = _mm_cvtph_ps(HV); + + _mm_storeu_ps(reinterpret_cast(pFloat), FV); + pFloat += OutputStride * 4; + i += 4; + } + } + } + else + { + // Packed input, scattered output + for (size_t j = 0; j < four; ++j) + { + __m128i HV = _mm_loadl_epi64(reinterpret_cast(pHalf)); + pHalf += InputStride * 4; + + __m128 FV = _mm_cvtph_ps(HV); + + _mm_store_ss(reinterpret_cast(pFloat), FV); + pFloat += OutputStride; + *reinterpret_cast(pFloat) = _mm_extract_ps(FV, 1); + pFloat += OutputStride; + *reinterpret_cast(pFloat) = _mm_extract_ps(FV, 2); + pFloat += OutputStride; + *reinterpret_cast(pFloat) = _mm_extract_ps(FV, 3); + pFloat += OutputStride; + i += 4; + } + } + } + else if (OutputStride == sizeof(float)) + { + if ((reinterpret_cast(pFloat) & 0xF) == 0) + { + // Scattered input, aligned & packed output + for (size_t j = 0; j < four; ++j) + { + uint16_t H1 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H2 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H3 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H4 = *reinterpret_cast(pHalf); + pHalf += InputStride; + + __m128i HV = _mm_setzero_si128(); + HV = _mm_insert_epi16(HV, H1, 0); + HV = _mm_insert_epi16(HV, H2, 1); + HV = _mm_insert_epi16(HV, H3, 2); + HV = _mm_insert_epi16(HV, H4, 3); + __m128 FV = _mm_cvtph_ps(HV); + + XM_STREAM_PS(reinterpret_cast(pFloat), FV); + pFloat += OutputStride * 4; + i += 4; + } + } + else + { + // Scattered input, packed output + for (size_t j = 0; j < four; ++j) + { + uint16_t H1 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H2 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H3 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H4 = *reinterpret_cast(pHalf); + pHalf += InputStride; + + __m128i HV = _mm_setzero_si128(); + HV = _mm_insert_epi16(HV, H1, 0); + HV = _mm_insert_epi16(HV, H2, 1); + HV = _mm_insert_epi16(HV, H3, 2); + HV = _mm_insert_epi16(HV, H4, 3); + __m128 FV = _mm_cvtph_ps(HV); + + _mm_storeu_ps(reinterpret_cast(pFloat), FV); + pFloat += OutputStride * 4; + i += 4; + } + } + } + else + { + // Scattered input, scattered output + for (size_t j = 0; j < four; ++j) + { + uint16_t H1 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H2 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H3 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H4 = *reinterpret_cast(pHalf); + pHalf += InputStride; + + __m128i HV = _mm_setzero_si128(); + HV = _mm_insert_epi16(HV, H1, 0); + HV = _mm_insert_epi16(HV, H2, 1); + HV = _mm_insert_epi16(HV, H3, 2); + HV = _mm_insert_epi16(HV, H4, 3); + __m128 FV = _mm_cvtph_ps(HV); + + _mm_store_ss(reinterpret_cast(pFloat), FV); + pFloat += OutputStride; + *reinterpret_cast(pFloat) = _mm_extract_ps(FV, 1); + pFloat += OutputStride; + *reinterpret_cast(pFloat) = _mm_extract_ps(FV, 2); + pFloat += OutputStride; + *reinterpret_cast(pFloat) = _mm_extract_ps(FV, 3); + pFloat += OutputStride; + i += 4; + } + } + } + + for (; i < HalfCount; ++i) + { + *reinterpret_cast(pFloat) = XMConvertHalfToFloat(reinterpret_cast(pHalf)[0]); + pHalf += InputStride; + pFloat += OutputStride; + } + + XM_SFENCE(); + + return pOutputStream; +#elif defined(_XM_ARM_NEON_INTRINSICS_) && (defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) ||__aarch64__) && !defined(_XM_NO_INTRINSICS_) && (!defined(__GNUC__) || (__ARM_FP & 2)) + auto pHalf = reinterpret_cast(pInputStream); + auto pFloat = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t four = HalfCount >> 2; + if (four > 0) + { + if (InputStride == sizeof(HALF)) + { + if (OutputStride == sizeof(float)) + { + // Packed input, packed output + for (size_t j = 0; j < four; ++j) + { + uint16x4_t vHalf = vld1_u16(reinterpret_cast(pHalf)); + pHalf += InputStride * 4; + + float32x4_t vFloat = vcvt_f32_f16(vreinterpret_f16_u16(vHalf)); + + vst1q_f32(reinterpret_cast(pFloat), vFloat); + pFloat += OutputStride * 4; + i += 4; + } + } + else + { + // Packed input, scattered output + for (size_t j = 0; j < four; ++j) + { + uint16x4_t vHalf = vld1_u16(reinterpret_cast(pHalf)); + pHalf += InputStride * 4; + + float32x4_t vFloat = vcvt_f32_f16(vreinterpret_f16_u16(vHalf)); + + vst1q_lane_f32(reinterpret_cast(pFloat), vFloat, 0); + pFloat += OutputStride; + vst1q_lane_f32(reinterpret_cast(pFloat), vFloat, 1); + pFloat += OutputStride; + vst1q_lane_f32(reinterpret_cast(pFloat), vFloat, 2); + pFloat += OutputStride; + vst1q_lane_f32(reinterpret_cast(pFloat), vFloat, 3); + pFloat += OutputStride; + i += 4; + } + } + } + else if (OutputStride == sizeof(float)) + { + // Scattered input, packed output + for (size_t j = 0; j < four; ++j) + { + uint16_t H1 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H2 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H3 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H4 = *reinterpret_cast(pHalf); + pHalf += InputStride; + + uint64_t iHalf = uint64_t(H1) | (uint64_t(H2) << 16) | (uint64_t(H3) << 32) | (uint64_t(H4) << 48); + uint16x4_t vHalf = vcreate_u16(iHalf); + + float32x4_t vFloat = vcvt_f32_f16(vreinterpret_f16_u16(vHalf)); + + vst1q_f32(reinterpret_cast(pFloat), vFloat); + pFloat += OutputStride * 4; + i += 4; + } + } + else + { + // Scattered input, scattered output + for (size_t j = 0; j < four; ++j) + { + uint16_t H1 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H2 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H3 = *reinterpret_cast(pHalf); + pHalf += InputStride; + uint16_t H4 = *reinterpret_cast(pHalf); + pHalf += InputStride; + + uint64_t iHalf = uint64_t(H1) | (uint64_t(H2) << 16) | (uint64_t(H3) << 32) | (uint64_t(H4) << 48); + uint16x4_t vHalf = vcreate_u16(iHalf); + + float32x4_t vFloat = vcvt_f32_f16(vreinterpret_f16_u16(vHalf)); + + vst1q_lane_f32(reinterpret_cast(pFloat), vFloat, 0); + pFloat += OutputStride; + vst1q_lane_f32(reinterpret_cast(pFloat), vFloat, 1); + pFloat += OutputStride; + vst1q_lane_f32(reinterpret_cast(pFloat), vFloat, 2); + pFloat += OutputStride; + vst1q_lane_f32(reinterpret_cast(pFloat), vFloat, 3); + pFloat += OutputStride; + i += 4; + } + } + } + + for (; i < HalfCount; ++i) + { + *reinterpret_cast(pFloat) = XMConvertHalfToFloat(reinterpret_cast(pHalf)[0]); + pHalf += InputStride; + pFloat += OutputStride; + } + + return pOutputStream; +#else + auto pHalf = reinterpret_cast(pInputStream); + auto pFloat = reinterpret_cast(pOutputStream); + + for (size_t i = 0; i < HalfCount; i++) + { + *reinterpret_cast(pFloat) = XMConvertHalfToFloat(reinterpret_cast(pHalf)[0]); + pHalf += InputStride; + pFloat += OutputStride; + } + + return pOutputStream; +#endif // !_XM_F16C_INTRINSICS_ +} + +//------------------------------------------------------------------------------ + +inline HALF XMConvertFloatToHalf(float Value) noexcept +{ +#if defined(_XM_F16C_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + __m128 V1 = _mm_set_ss(Value); + __m128i V2 = _mm_cvtps_ph(V1, _MM_FROUND_TO_NEAREST_INT); + return static_cast(_mm_extract_epi16(V2, 0)); +#elif defined(_XM_ARM_NEON_INTRINSICS_) && (defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__) && !defined(_XM_NO_INTRINSICS_) && (!defined(__GNUC__) || (__ARM_FP & 2)) + float32x4_t vFloat = vdupq_n_f32(Value); + float16x4_t vHalf = vcvt_f16_f32(vFloat); + return vget_lane_u16(vreinterpret_u16_f16(vHalf), 0); +#else + uint32_t Result; + + auto IValue = reinterpret_cast(&Value)[0]; + uint32_t Sign = (IValue & 0x80000000U) >> 16U; + IValue = IValue & 0x7FFFFFFFU; // Hack off the sign + if (IValue >= 0x47800000 /*e+16*/) + { + // The number is too large to be represented as a half. Return infinity or NaN + Result = 0x7C00U | ((IValue > 0x7F800000) ? (0x200 | ((IValue >> 13U) & 0x3FFU)) : 0U); + } + else if (IValue <= 0x33000000U /*e-25*/) + { + Result = 0; + } + else if (IValue < 0x38800000U /*e-14*/) + { + // The number is too small to be represented as a normalized half. + // Convert it to a denormalized value. + uint32_t Shift = 125U - (IValue >> 23U); + IValue = 0x800000U | (IValue & 0x7FFFFFU); + Result = IValue >> (Shift + 1); + uint32_t s = (IValue & ((1U << Shift) - 1)) != 0; + Result += (Result | s) & ((IValue >> Shift) & 1U); + } + else + { + // Rebias the exponent to represent the value as a normalized half. + IValue += 0xC8000000U; + Result = ((IValue + 0x0FFFU + ((IValue >> 13U) & 1U)) >> 13U) & 0x7FFFU; + } + return static_cast(Result | Sign); +#endif // !_XM_F16C_INTRINSICS_ +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline HALF* XMConvertFloatToHalfStream +( + HALF* pOutputStream, + size_t OutputStride, + const float* pInputStream, + size_t InputStride, + size_t FloatCount +) noexcept +{ + assert(pOutputStream); + assert(pInputStream); + + assert(InputStride >= sizeof(float)); + _Analysis_assume_(InputStride >= sizeof(float)); + + assert(OutputStride >= sizeof(HALF)); + _Analysis_assume_(OutputStride >= sizeof(HALF)); + +#if defined(_XM_F16C_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + auto pFloat = reinterpret_cast(pInputStream); + auto pHalf = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t four = FloatCount >> 2; + if (four > 0) + { + if (InputStride == sizeof(float)) + { + if (OutputStride == sizeof(HALF)) + { + if ((reinterpret_cast(pFloat) & 0xF) == 0) + { + // Aligned and packed input, packed output + for (size_t j = 0; j < four; ++j) + { + __m128 FV = _mm_load_ps(reinterpret_cast(pFloat)); + pFloat += InputStride * 4; + + __m128i HV = _mm_cvtps_ph(FV, _MM_FROUND_TO_NEAREST_INT); + + _mm_storel_epi64(reinterpret_cast<__m128i*>(pHalf), HV); + pHalf += OutputStride * 4; + i += 4; + } + } + else + { + // Packed input, packed output + for (size_t j = 0; j < four; ++j) + { + __m128 FV = _mm_loadu_ps(reinterpret_cast(pFloat)); + pFloat += InputStride * 4; + + __m128i HV = _mm_cvtps_ph(FV, _MM_FROUND_TO_NEAREST_INT); + + _mm_storel_epi64(reinterpret_cast<__m128i*>(pHalf), HV); + pHalf += OutputStride * 4; + i += 4; + } + } + } + else + { + if ((reinterpret_cast(pFloat) & 0xF) == 0) + { + // Aligned & packed input, scattered output + for (size_t j = 0; j < four; ++j) + { + __m128 FV = _mm_load_ps(reinterpret_cast(pFloat)); + pFloat += InputStride * 4; + + __m128i HV = _mm_cvtps_ph(FV, _MM_FROUND_TO_NEAREST_INT); + + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 0)); + pHalf += OutputStride; + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 1)); + pHalf += OutputStride; + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 2)); + pHalf += OutputStride; + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 3)); + pHalf += OutputStride; + i += 4; + } + } + else + { + // Packed input, scattered output + for (size_t j = 0; j < four; ++j) + { + __m128 FV = _mm_loadu_ps(reinterpret_cast(pFloat)); + pFloat += InputStride * 4; + + __m128i HV = _mm_cvtps_ph(FV, _MM_FROUND_TO_NEAREST_INT); + + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 0)); + pHalf += OutputStride; + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 1)); + pHalf += OutputStride; + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 2)); + pHalf += OutputStride; + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 3)); + pHalf += OutputStride; + i += 4; + } + } + } + } + else if (OutputStride == sizeof(HALF)) + { + // Scattered input, packed output + for (size_t j = 0; j < four; ++j) + { + __m128 FV1 = _mm_load_ss(reinterpret_cast(pFloat)); + pFloat += InputStride; + + __m128 FV2 = _mm_broadcast_ss(reinterpret_cast(pFloat)); + pFloat += InputStride; + + __m128 FV3 = _mm_broadcast_ss(reinterpret_cast(pFloat)); + pFloat += InputStride; + + __m128 FV4 = _mm_broadcast_ss(reinterpret_cast(pFloat)); + pFloat += InputStride; + + __m128 FV = _mm_blend_ps(FV1, FV2, 0x2); + __m128 FT = _mm_blend_ps(FV3, FV4, 0x8); + FV = _mm_blend_ps(FV, FT, 0xC); + + __m128i HV = _mm_cvtps_ph(FV, _MM_FROUND_TO_NEAREST_INT); + + _mm_storel_epi64(reinterpret_cast<__m128i*>(pHalf), HV); + pHalf += OutputStride * 4; + i += 4; + } + } + else + { + // Scattered input, scattered output + for (size_t j = 0; j < four; ++j) + { + __m128 FV1 = _mm_load_ss(reinterpret_cast(pFloat)); + pFloat += InputStride; + + __m128 FV2 = _mm_broadcast_ss(reinterpret_cast(pFloat)); + pFloat += InputStride; + + __m128 FV3 = _mm_broadcast_ss(reinterpret_cast(pFloat)); + pFloat += InputStride; + + __m128 FV4 = _mm_broadcast_ss(reinterpret_cast(pFloat)); + pFloat += InputStride; + + __m128 FV = _mm_blend_ps(FV1, FV2, 0x2); + __m128 FT = _mm_blend_ps(FV3, FV4, 0x8); + FV = _mm_blend_ps(FV, FT, 0xC); + + __m128i HV = _mm_cvtps_ph(FV, _MM_FROUND_TO_NEAREST_INT); + + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 0)); + pHalf += OutputStride; + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 1)); + pHalf += OutputStride; + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 2)); + pHalf += OutputStride; + *reinterpret_cast(pHalf) = static_cast(_mm_extract_epi16(HV, 3)); + pHalf += OutputStride; + i += 4; + } + } + } + + for (; i < FloatCount; ++i) + { + *reinterpret_cast(pHalf) = XMConvertFloatToHalf(reinterpret_cast(pFloat)[0]); + pFloat += InputStride; + pHalf += OutputStride; + } + + return pOutputStream; +#elif defined(_XM_ARM_NEON_INTRINSICS_) && (defined(_M_ARM64) || defined(_M_HYBRID_X86_ARM64) || defined(_M_ARM64EC) || __aarch64__) && !defined(_XM_NO_INTRINSICS_) && (!defined(__GNUC__) || (__ARM_FP & 2)) + auto pFloat = reinterpret_cast(pInputStream); + auto pHalf = reinterpret_cast(pOutputStream); + + size_t i = 0; + size_t four = FloatCount >> 2; + if (four > 0) + { + if (InputStride == sizeof(float)) + { + if (OutputStride == sizeof(HALF)) + { + // Packed input, packed output + for (size_t j = 0; j < four; ++j) + { + float32x4_t vFloat = vld1q_f32(reinterpret_cast(pFloat)); + pFloat += InputStride * 4; + + uint16x4_t vHalf = vreinterpret_u16_f16(vcvt_f16_f32(vFloat)); + + vst1_u16(reinterpret_cast(pHalf), vHalf); + pHalf += OutputStride * 4; + i += 4; + } + } + else + { + // Packed input, scattered output + for (size_t j = 0; j < four; ++j) + { + float32x4_t vFloat = vld1q_f32(reinterpret_cast(pFloat)); + pFloat += InputStride * 4; + + uint16x4_t vHalf = vreinterpret_u16_f16(vcvt_f16_f32(vFloat)); + + vst1_lane_u16(reinterpret_cast(pHalf), vHalf, 0); + pHalf += OutputStride; + vst1_lane_u16(reinterpret_cast(pHalf), vHalf, 1); + pHalf += OutputStride; + vst1_lane_u16(reinterpret_cast(pHalf), vHalf, 2); + pHalf += OutputStride; + vst1_lane_u16(reinterpret_cast(pHalf), vHalf, 3); + pHalf += OutputStride; + i += 4; + } + } + } + else if (OutputStride == sizeof(HALF)) + { + // Scattered input, packed output + for (size_t j = 0; j < four; ++j) + { + float32x4_t vFloat = vdupq_n_f32(0); + vFloat = vld1q_lane_f32(reinterpret_cast(pFloat), vFloat, 0); + pFloat += InputStride; + + vFloat = vld1q_lane_f32(reinterpret_cast(pFloat), vFloat, 1); + pFloat += InputStride; + + vFloat = vld1q_lane_f32(reinterpret_cast(pFloat), vFloat, 2); + pFloat += InputStride; + + vFloat = vld1q_lane_f32(reinterpret_cast(pFloat), vFloat, 3); + pFloat += InputStride; + + uint16x4_t vHalf = vreinterpret_u16_f16(vcvt_f16_f32(vFloat)); + + vst1_u16(reinterpret_cast(pHalf), vHalf); + pHalf += OutputStride * 4; + i += 4; + } + } + else + { + // Scattered input, scattered output + for (size_t j = 0; j < four; ++j) + { + float32x4_t vFloat = vdupq_n_f32(0); + vFloat = vld1q_lane_f32(reinterpret_cast(pFloat), vFloat, 0); + pFloat += InputStride; + + vFloat = vld1q_lane_f32(reinterpret_cast(pFloat), vFloat, 1); + pFloat += InputStride; + + vFloat = vld1q_lane_f32(reinterpret_cast(pFloat), vFloat, 2); + pFloat += InputStride; + + vFloat = vld1q_lane_f32(reinterpret_cast(pFloat), vFloat, 3); + pFloat += InputStride; + + uint16x4_t vHalf = vreinterpret_u16_f16(vcvt_f16_f32(vFloat)); + + vst1_lane_u16(reinterpret_cast(pHalf), vHalf, 0); + pHalf += OutputStride; + vst1_lane_u16(reinterpret_cast(pHalf), vHalf, 1); + pHalf += OutputStride; + vst1_lane_u16(reinterpret_cast(pHalf), vHalf, 2); + pHalf += OutputStride; + vst1_lane_u16(reinterpret_cast(pHalf), vHalf, 3); + pHalf += OutputStride; + i += 4; + } + } + } + + for (; i < FloatCount; ++i) + { + *reinterpret_cast(pHalf) = XMConvertFloatToHalf(reinterpret_cast(pFloat)[0]); + pFloat += InputStride; + pHalf += OutputStride; + } + + return pOutputStream; +#else + auto pFloat = reinterpret_cast(pInputStream); + auto pHalf = reinterpret_cast(pOutputStream); + + for (size_t i = 0; i < FloatCount; i++) + { + *reinterpret_cast(pHalf) = XMConvertFloatToHalf(reinterpret_cast(pFloat)[0]); + pFloat += InputStride; + pHalf += OutputStride; + } + return pOutputStream; +#endif // !_XM_F16C_INTRINSICS_ +} + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + +/**************************************************************************** + * + * Vector and matrix load operations + * + ****************************************************************************/ + +#ifdef _PREFAST_ +#pragma prefast(push) +#pragma prefast(disable:28931, "PREfast noise: Esp:1266") +#endif + +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadColor(const XMCOLOR* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + // int32_t -> Float conversions are done in one instruction. + // uint32_t -> Float calls a runtime function. Keep in int32_t + auto iColor = static_cast(pSource->c); + XMVECTORF32 vColor = { { { + static_cast((iColor >> 16) & 0xFF)* (1.0f / 255.0f), + static_cast((iColor >> 8) & 0xFF)* (1.0f / 255.0f), + static_cast(iColor & 0xFF)* (1.0f / 255.0f), + static_cast((iColor >> 24) & 0xFF)* (1.0f / 255.0f) + } } }; + return vColor.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32_t bgra = pSource->c; + uint32_t rgba = (bgra & 0xFF00FF00) | ((bgra >> 16) & 0xFF) | ((bgra << 16) & 0xFF0000); + uint32x2_t vInt8 = vdup_n_u32(rgba); + uint16x8_t vInt16 = vmovl_u8(vreinterpret_u8_u32(vInt8)); + uint32x4_t vInt = vmovl_u16(vget_low_u16(vInt16)); + float32x4_t R = vcvtq_f32_u32(vInt); + return vmulq_n_f32(R, 1.0f / 255.0f); +#elif defined(_XM_SSE_INTRINSICS_) + // Splat the color in all four entries + __m128i vInt = _mm_set1_epi32(static_cast(pSource->c)); + // Shift R&0xFF0000, G&0xFF00, B&0xFF, A&0xFF000000 + vInt = _mm_and_si128(vInt, g_XMMaskA8R8G8B8); + // a is unsigned! Flip the bit to convert the order to signed + vInt = _mm_xor_si128(vInt, g_XMFlipA8R8G8B8); + // Convert to floating point numbers + XMVECTOR vTemp = _mm_cvtepi32_ps(vInt); + // RGB + 0, A + 0x80000000.f to undo the signed order. + vTemp = _mm_add_ps(vTemp, g_XMFixAA8R8G8B8); + // Convert 0-255 to 0.0f-1.0f + return _mm_mul_ps(vTemp, g_XMNormalizeA8R8G8B8); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadHalf2(const XMHALF2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_F16C_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + __m128 V = _mm_load_ss(reinterpret_cast(pSource)); + return _mm_cvtph_ps(_mm_castps_si128(V)); +#else + XMVECTORF32 vResult = { { { + XMConvertHalfToFloat(pSource->x), + XMConvertHalfToFloat(pSource->y), + 0.0f, + 0.0f + } } }; + return vResult.v; +#endif // !_XM_F16C_INTRINSICS_ +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadShortN2(const XMSHORTN2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + (pSource->x == -32768) ? -1.f : (static_cast(pSource->x)* (1.0f / 32767.0f)), + (pSource->y == -32768) ? -1.f : (static_cast(pSource->y)* (1.0f / 32767.0f)), + 0.0f, + 0.0f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vInt16 = vld1_dup_u32(reinterpret_cast(pSource)); + int32x4_t vInt = vmovl_s16(vreinterpret_s16_u32(vInt16)); + vInt = vandq_s32(vInt, g_XMMaskXY); + float32x4_t R = vcvtq_f32_s32(vInt); + R = vmulq_n_f32(R, 1.0f / 32767.0f); + return vmaxq_f32(R, vdupq_n_f32(-1.f)); +#elif defined(_XM_SSE_INTRINSICS_) + // Splat the two shorts in all four entries (WORD alignment okay, + // DWORD alignment preferred) + __m128 vTemp = _mm_load_ps1(reinterpret_cast(&pSource->x)); + // Mask x&0xFFFF, y&0xFFFF0000,z&0,w&0 + vTemp = _mm_and_ps(vTemp, g_XMMaskX16Y16); + // x needs to be sign extended + vTemp = _mm_xor_ps(vTemp, g_XMFlipX16Y16); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // x - 0x8000 to undo the signed order. + vTemp = _mm_add_ps(vTemp, g_XMFixX16Y16); + // Convert -1.0f - 1.0f + vTemp = _mm_mul_ps(vTemp, g_XMNormalizeX16Y16); + // Clamp result (for case of -32768) + return _mm_max_ps(vTemp, g_XMNegativeOne); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadShort2(const XMSHORT2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x), + static_cast(pSource->y), + 0.f, + 0.f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vInt16 = vld1_dup_u32(reinterpret_cast(pSource)); + int32x4_t vInt = vmovl_s16(vreinterpret_s16_u32(vInt16)); + vInt = vandq_s32(vInt, g_XMMaskXY); + return vcvtq_f32_s32(vInt); +#elif defined(_XM_SSE_INTRINSICS_) + // Splat the two shorts in all four entries (WORD alignment okay, + // DWORD alignment preferred) + __m128 vTemp = _mm_load_ps1(reinterpret_cast(&pSource->x)); + // Mask x&0xFFFF, y&0xFFFF0000,z&0,w&0 + vTemp = _mm_and_ps(vTemp, g_XMMaskX16Y16); + // x needs to be sign extended + vTemp = _mm_xor_ps(vTemp, g_XMFlipX16Y16); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // x - 0x8000 to undo the signed order. + vTemp = _mm_add_ps(vTemp, g_XMFixX16Y16); + // Y is 65536 too large + return _mm_mul_ps(vTemp, g_XMFixupY16); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUShortN2(const XMUSHORTN2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x) / 65535.0f, + static_cast(pSource->y) / 65535.0f, + 0.f, + 0.f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vInt16 = vld1_dup_u32(reinterpret_cast(pSource)); + uint32x4_t vInt = vmovl_u16(vreinterpret_u16_u32(vInt16)); + vInt = vandq_u32(vInt, g_XMMaskXY); + float32x4_t R = vcvtq_f32_u32(vInt); + R = vmulq_n_f32(R, 1.0f / 65535.0f); + return vmaxq_f32(R, vdupq_n_f32(-1.f)); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 FixupY16 = { { { 1.0f / 65535.0f, 1.0f / (65535.0f * 65536.0f), 0.0f, 0.0f } } }; + static const XMVECTORF32 FixaddY16 = { { { 0, 32768.0f * 65536.0f, 0, 0 } } }; + // Splat the two shorts in all four entries (WORD alignment okay, + // DWORD alignment preferred) + __m128 vTemp = _mm_load_ps1(reinterpret_cast(&pSource->x)); + // Mask x&0xFFFF, y&0xFFFF0000,z&0,w&0 + vTemp = _mm_and_ps(vTemp, g_XMMaskX16Y16); + // y needs to be sign flipped + vTemp = _mm_xor_ps(vTemp, g_XMFlipY); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // y + 0x8000 to undo the signed order. + vTemp = _mm_add_ps(vTemp, FixaddY16); + // Y is 65536 times too large + vTemp = _mm_mul_ps(vTemp, FixupY16); + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUShort2(const XMUSHORT2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x), + static_cast(pSource->y), + 0.f, + 0.f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vInt16 = vld1_dup_u32(reinterpret_cast(pSource)); + uint32x4_t vInt = vmovl_u16(vreinterpret_u16_u32(vInt16)); + vInt = vandq_u32(vInt, g_XMMaskXY); + return vcvtq_f32_u32(vInt); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 FixaddY16 = { { { 0, 32768.0f, 0, 0 } } }; + // Splat the two shorts in all four entries (WORD alignment okay, + // DWORD alignment preferred) + __m128 vTemp = _mm_load_ps1(reinterpret_cast(&pSource->x)); + // Mask x&0xFFFF, y&0xFFFF0000,z&0,w&0 + vTemp = _mm_and_ps(vTemp, g_XMMaskX16Y16); + // y needs to be sign flipped + vTemp = _mm_xor_ps(vTemp, g_XMFlipY); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // Y is 65536 times too large + vTemp = _mm_mul_ps(vTemp, g_XMFixupY16); + // y + 0x8000 to undo the signed order. + vTemp = _mm_add_ps(vTemp, FixaddY16); + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadByteN2(const XMBYTEN2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + (pSource->x == -128) ? -1.f : (static_cast(pSource->x)* (1.0f / 127.0f)), + (pSource->y == -128) ? -1.f : (static_cast(pSource->y)* (1.0f / 127.0f)), + 0.0f, + 0.0f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint16x4_t vInt8 = vld1_dup_u16(reinterpret_cast(pSource)); + int16x8_t vInt16 = vmovl_s8(vreinterpret_s8_u16(vInt8)); + int32x4_t vInt = vmovl_s16(vget_low_s16(vInt16)); + vInt = vandq_s32(vInt, g_XMMaskXY); + float32x4_t R = vcvtq_f32_s32(vInt); + R = vmulq_n_f32(R, 1.0f / 127.0f); + return vmaxq_f32(R, vdupq_n_f32(-1.f)); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.0f / 127.0f, 1.0f / (127.0f * 256.0f), 0, 0 } } }; + static const XMVECTORU32 Mask = { { { 0xFF, 0xFF00, 0, 0 } } }; + // Splat the color in all four entries (x,z,y,w) + __m128i vInt = XM_LOADU_SI16(&pSource->v); + XMVECTOR vTemp = XM_PERMUTE_PS(_mm_castsi128_ps(vInt), _MM_SHUFFLE(0, 0, 0, 0)); + // Mask + vTemp = _mm_and_ps(vTemp, Mask); + // x,y and z are unsigned! Flip the bits to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMXorByte4); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // x, y and z - 0x80 to complete the conversion + vTemp = _mm_add_ps(vTemp, g_XMAddByte4); + // Fix y, z and w because they are too large + vTemp = _mm_mul_ps(vTemp, Scale); + // Clamp result (for case of -128) + return _mm_max_ps(vTemp, g_XMNegativeOne); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadByte2(const XMBYTE2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x), + static_cast(pSource->y), + 0.0f, + 0.0f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint16x4_t vInt8 = vld1_dup_u16(reinterpret_cast(pSource)); + int16x8_t vInt16 = vmovl_s8(vreinterpret_s8_u16(vInt8)); + int32x4_t vInt = vmovl_s16(vget_low_s16(vInt16)); + vInt = vandq_s32(vInt, g_XMMaskXY); + return vcvtq_f32_s32(vInt); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.0f, 1.0f / 256.0f, 1.0f / 65536.0f, 1.0f / (65536.0f * 256.0f) } } }; + static const XMVECTORU32 Mask = { { { 0xFF, 0xFF00, 0, 0 } } }; + // Splat the color in all four entries (x,z,y,w) + __m128i vInt = XM_LOADU_SI16(&pSource->v); + XMVECTOR vTemp = XM_PERMUTE_PS(_mm_castsi128_ps(vInt), _MM_SHUFFLE(0, 0, 0, 0)); + // Mask + vTemp = _mm_and_ps(vTemp, Mask); + // x,y and z are unsigned! Flip the bits to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMXorByte4); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // x, y and z - 0x80 to complete the conversion + vTemp = _mm_add_ps(vTemp, g_XMAddByte4); + // Fix y, z and w because they are too large + return _mm_mul_ps(vTemp, Scale); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUByteN2(const XMUBYTEN2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x)* (1.0f / 255.0f), + static_cast(pSource->y)* (1.0f / 255.0f), + 0.0f, + 0.0f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint16x4_t vInt8 = vld1_dup_u16(reinterpret_cast(pSource)); + uint16x8_t vInt16 = vmovl_u8(vreinterpret_u8_u16(vInt8)); + uint32x4_t vInt = vmovl_u16(vget_low_u16(vInt16)); + vInt = vandq_u32(vInt, g_XMMaskXY); + float32x4_t R = vcvtq_f32_u32(vInt); + return vmulq_n_f32(R, 1.0f / 255.0f); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.0f / 255.0f, 1.0f / (255.0f * 256.0f), 0, 0 } } }; + static const XMVECTORU32 Mask = { { { 0xFF, 0xFF00, 0, 0 } } }; + // Splat the color in all four entries (x,z,y,w) + __m128i vInt = XM_LOADU_SI16(&pSource->v); + XMVECTOR vTemp = XM_PERMUTE_PS(_mm_castsi128_ps(vInt), _MM_SHUFFLE(0, 0, 0, 0)); + // Mask + vTemp = _mm_and_ps(vTemp, Mask); + // w is signed! Flip the bits to convert the order to unsigned + vTemp = _mm_xor_ps(vTemp, g_XMFlipW); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // w + 0x80 to complete the conversion + vTemp = _mm_add_ps(vTemp, g_XMAddUDec4); + // Fix y, z and w because they are too large + return _mm_mul_ps(vTemp, Scale); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUByte2(const XMUBYTE2* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x), + static_cast(pSource->y), + 0.0f, + 0.0f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint16x4_t vInt8 = vld1_dup_u16(reinterpret_cast(pSource)); + uint16x8_t vInt16 = vmovl_u8(vreinterpret_u8_u16(vInt8)); + uint32x4_t vInt = vmovl_u16(vget_low_u16(vInt16)); + vInt = vandq_u32(vInt, g_XMMaskXY); + return vcvtq_f32_u32(vInt); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.0f, 1.0f / 256.0f, 0, 0 } } }; + static const XMVECTORU32 Mask = { { { 0xFF, 0xFF00, 0, 0 } } }; + // Splat the color in all four entries (x,z,y,w) + __m128i vInt = XM_LOADU_SI16(&pSource->v); + XMVECTOR vTemp = XM_PERMUTE_PS(_mm_castsi128_ps(vInt), _MM_SHUFFLE(0, 0, 0, 0)); + // Mask + vTemp = _mm_and_ps(vTemp, Mask); + // w is signed! Flip the bits to convert the order to unsigned + vTemp = _mm_xor_ps(vTemp, g_XMFlipW); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // w + 0x80 to complete the conversion + vTemp = _mm_add_ps(vTemp, g_XMAddUDec4); + // Fix y, z and w because they are too large + return _mm_mul_ps(vTemp, Scale); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadU565(const XMU565* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + float(pSource->v & 0x1F), + float((pSource->v >> 5) & 0x3F), + float((pSource->v >> 11) & 0x1F), + 0.f, + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORI32 U565And = { { { 0x1F, 0x3F << 5, 0x1F << 11, 0 } } }; + static const XMVECTORF32 U565Mul = { { { 1.0f, 1.0f / 32.0f, 1.0f / 2048.f, 0 } } }; + uint16x4_t vInt16 = vld1_dup_u16(reinterpret_cast(pSource)); + uint32x4_t vInt = vmovl_u16(vInt16); + vInt = vandq_u32(vInt, U565And); + float32x4_t R = vcvtq_f32_u32(vInt); + return vmulq_f32(R, U565Mul); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORI32 U565And = { { { 0x1F, 0x3F << 5, 0x1F << 11, 0 } } }; + static const XMVECTORF32 U565Mul = { { { 1.0f, 1.0f / 32.0f, 1.0f / 2048.f, 0 } } }; + // Get the 16 bit value and splat it + __m128i vInt = XM_LOADU_SI16(&pSource->v); + XMVECTOR vResult = XM_PERMUTE_PS(_mm_castsi128_ps(vInt), _MM_SHUFFLE(0, 0, 0, 0)); + // Mask off x, y and z + vResult = _mm_and_ps(vResult, U565And); + // Convert to float + vResult = _mm_cvtepi32_ps(_mm_castps_si128(vResult)); + // Normalize x, y, and z + vResult = _mm_mul_ps(vResult, U565Mul); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadFloat3PK(const XMFLOAT3PK* pSource) noexcept +{ + assert(pSource); + + XM_ALIGNED_DATA(16) uint32_t Result[4]; + uint32_t Mantissa; + uint32_t Exponent; + + // X Channel (6-bit mantissa) + Mantissa = pSource->xm; + + if (pSource->xe == 0x1f) // INF or NAN + { + Result[0] = static_cast(0x7f800000 | (static_cast(pSource->xm) << 17)); + } + else + { + if (pSource->xe != 0) // The value is normalized + { + Exponent = pSource->xe; + } + else if (Mantissa != 0) // The value is denormalized + { + // Normalize the value in the resulting float + Exponent = 1; + + do + { + Exponent--; + Mantissa <<= 1; + } while ((Mantissa & 0x40) == 0); + + Mantissa &= 0x3F; + } + else // The value is zero + { + Exponent = static_cast(-112); + } + + Result[0] = ((Exponent + 112) << 23) | (Mantissa << 17); + } + + // Y Channel (6-bit mantissa) + Mantissa = pSource->ym; + + if (pSource->ye == 0x1f) // INF or NAN + { + Result[1] = static_cast(0x7f800000 | (static_cast(pSource->ym) << 17)); + } + else + { + if (pSource->ye != 0) // The value is normalized + { + Exponent = pSource->ye; + } + else if (Mantissa != 0) // The value is denormalized + { + // Normalize the value in the resulting float + Exponent = 1; + + do + { + Exponent--; + Mantissa <<= 1; + } while ((Mantissa & 0x40) == 0); + + Mantissa &= 0x3F; + } + else // The value is zero + { + Exponent = static_cast(-112); + } + + Result[1] = ((Exponent + 112) << 23) | (Mantissa << 17); + } + + // Z Channel (5-bit mantissa) + Mantissa = pSource->zm; + + if (pSource->ze == 0x1f) // INF or NAN + { + Result[2] = static_cast(0x7f800000 | (static_cast(pSource->zm) << 17)); + } + else + { + if (pSource->ze != 0) // The value is normalized + { + Exponent = pSource->ze; + } + else if (Mantissa != 0) // The value is denormalized + { + // Normalize the value in the resulting float + Exponent = 1; + + do + { + Exponent--; + Mantissa <<= 1; + } while ((Mantissa & 0x20) == 0); + + Mantissa &= 0x1F; + } + else // The value is zero + { + Exponent = static_cast(-112); + } + + Result[2] = ((Exponent + 112) << 23) | (Mantissa << 18); + } + + return XMLoadFloat3A(reinterpret_cast(&Result)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadFloat3SE(const XMFLOAT3SE* pSource) noexcept +{ + assert(pSource); + + union { float f; int32_t i; } fi; + fi.i = 0x33800000 + (pSource->e << 23); + float Scale = fi.f; + + XMVECTORF32 v = { { { + Scale * float(pSource->xm), + Scale * float(pSource->ym), + Scale * float(pSource->zm), + 1.0f } } }; + return v; +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadHalf4(const XMHALF4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_F16C_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + __m128i V = _mm_loadl_epi64(reinterpret_cast(pSource)); + return _mm_cvtph_ps(V); +#else + XMVECTORF32 vResult = { { { + XMConvertHalfToFloat(pSource->x), + XMConvertHalfToFloat(pSource->y), + XMConvertHalfToFloat(pSource->z), + XMConvertHalfToFloat(pSource->w) + } } }; + return vResult.v; +#endif // !_XM_F16C_INTRINSICS_ +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadShortN4(const XMSHORTN4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + (pSource->x == -32768) ? -1.f : (static_cast(pSource->x)* (1.0f / 32767.0f)), + (pSource->y == -32768) ? -1.f : (static_cast(pSource->y)* (1.0f / 32767.0f)), + (pSource->z == -32768) ? -1.f : (static_cast(pSource->z)* (1.0f / 32767.0f)), + (pSource->w == -32768) ? -1.f : (static_cast(pSource->w)* (1.0f / 32767.0f)) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int16x4_t vInt = vld1_s16(reinterpret_cast(pSource)); + int32x4_t V = vmovl_s16(vInt); + float32x4_t vResult = vcvtq_f32_s32(V); + vResult = vmulq_n_f32(vResult, 1.0f / 32767.0f); + return vmaxq_f32(vResult, vdupq_n_f32(-1.f)); +#elif defined(_XM_SSE_INTRINSICS_) + // Splat the color in all four entries (x,z,y,w) + __m128d vIntd = _mm_load1_pd(reinterpret_cast(&pSource->x)); + // Shift x&0ffff,z&0xffff,y&0xffff0000,w&0xffff0000 + __m128 vTemp = _mm_and_ps(_mm_castpd_ps(vIntd), g_XMMaskX16Y16Z16W16); + // x and z are unsigned! Flip the bits to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMFlipX16Y16Z16W16); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // x and z - 0x8000 to complete the conversion + vTemp = _mm_add_ps(vTemp, g_XMFixX16Y16Z16W16); + // Convert to -1.0f - 1.0f + vTemp = _mm_mul_ps(vTemp, g_XMNormalizeX16Y16Z16W16); + // Very important! The entries are x,z,y,w, flip it to x,y,z,w + vTemp = XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 1, 2, 0)); + // Clamp result (for case of -32768) + return _mm_max_ps(vTemp, g_XMNegativeOne); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadShort4(const XMSHORT4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x), + static_cast(pSource->y), + static_cast(pSource->z), + static_cast(pSource->w) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + int16x4_t vInt = vld1_s16(reinterpret_cast(pSource)); + int32x4_t V = vmovl_s16(vInt); + return vcvtq_f32_s32(V); +#elif defined(_XM_SSE_INTRINSICS_) + // Splat the color in all four entries (x,z,y,w) + __m128d vIntd = _mm_load1_pd(reinterpret_cast(&pSource->x)); + // Shift x&0ffff,z&0xffff,y&0xffff0000,w&0xffff0000 + __m128 vTemp = _mm_and_ps(_mm_castpd_ps(vIntd), g_XMMaskX16Y16Z16W16); + // x and z are unsigned! Flip the bits to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMFlipX16Y16Z16W16); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // x and z - 0x8000 to complete the conversion + vTemp = _mm_add_ps(vTemp, g_XMFixX16Y16Z16W16); + // Fix y and w because they are 65536 too large + vTemp = _mm_mul_ps(vTemp, g_XMFixupY16W16); + // Very important! The entries are x,z,y,w, flip it to x,y,z,w + return XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 1, 2, 0)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUShortN4(const XMUSHORTN4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x) / 65535.0f, + static_cast(pSource->y) / 65535.0f, + static_cast(pSource->z) / 65535.0f, + static_cast(pSource->w) / 65535.0f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint16x4_t vInt = vld1_u16(reinterpret_cast(pSource)); + uint32x4_t V = vmovl_u16(vInt); + float32x4_t vResult = vcvtq_f32_u32(V); + return vmulq_n_f32(vResult, 1.0f / 65535.0f); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 FixupY16W16 = { { { 1.0f / 65535.0f, 1.0f / 65535.0f, 1.0f / (65535.0f * 65536.0f), 1.0f / (65535.0f * 65536.0f) } } }; + static const XMVECTORF32 FixaddY16W16 = { { { 0, 0, 32768.0f * 65536.0f, 32768.0f * 65536.0f } } }; + // Splat the color in all four entries (x,z,y,w) + __m128d vIntd = _mm_load1_pd(reinterpret_cast(&pSource->x)); + // Shift x&0ffff,z&0xffff,y&0xffff0000,w&0xffff0000 + __m128 vTemp = _mm_and_ps(_mm_castpd_ps(vIntd), g_XMMaskX16Y16Z16W16); + // y and w are signed! Flip the bits to convert the order to unsigned + vTemp = _mm_xor_ps(vTemp, g_XMFlipZW); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // y and w + 0x8000 to complete the conversion + vTemp = _mm_add_ps(vTemp, FixaddY16W16); + // Fix y and w because they are 65536 too large + vTemp = _mm_mul_ps(vTemp, FixupY16W16); + // Very important! The entries are x,z,y,w, flip it to x,y,z,w + return XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 1, 2, 0)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUShort4(const XMUSHORT4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x), + static_cast(pSource->y), + static_cast(pSource->z), + static_cast(pSource->w) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint16x4_t vInt = vld1_u16(reinterpret_cast(pSource)); + uint32x4_t V = vmovl_u16(vInt); + return vcvtq_f32_u32(V); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 FixaddY16W16 = { { { 0, 0, 32768.0f, 32768.0f } } }; + // Splat the color in all four entries (x,z,y,w) + __m128d vIntd = _mm_load1_pd(reinterpret_cast(&pSource->x)); + // Shift x&0ffff,z&0xffff,y&0xffff0000,w&0xffff0000 + __m128 vTemp = _mm_and_ps(_mm_castpd_ps(vIntd), g_XMMaskX16Y16Z16W16); + // y and w are signed! Flip the bits to convert the order to unsigned + vTemp = _mm_xor_ps(vTemp, g_XMFlipZW); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // Fix y and w because they are 65536 too large + vTemp = _mm_mul_ps(vTemp, g_XMFixupY16W16); + // y and w + 0x8000 to complete the conversion + vTemp = _mm_add_ps(vTemp, FixaddY16W16); + // Very important! The entries are x,z,y,w, flip it to x,y,z,w + return XM_PERMUTE_PS(vTemp, _MM_SHUFFLE(3, 1, 2, 0)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadXDecN4(const XMXDECN4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + static const uint32_t SignExtend[] = { 0x00000000, 0xFFFFFC00 }; + + uint32_t ElementX = pSource->v & 0x3FF; + uint32_t ElementY = (pSource->v >> 10) & 0x3FF; + uint32_t ElementZ = (pSource->v >> 20) & 0x3FF; + + XMVECTORF32 vResult = { { { + (ElementX == 0x200) ? -1.f : (static_cast(static_cast(ElementX | SignExtend[ElementX >> 9])) / 511.0f), + (ElementY == 0x200) ? -1.f : (static_cast(static_cast(ElementY | SignExtend[ElementY >> 9])) / 511.0f), + (ElementZ == 0x200) ? -1.f : (static_cast(static_cast(ElementZ | SignExtend[ElementZ >> 9])) / 511.0f), + static_cast(pSource->v >> 30) / 3.0f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vInt = vld1q_dup_u32(reinterpret_cast(pSource)); + vInt = vandq_u32(vInt, g_XMMaskA2B10G10R10); + vInt = veorq_u32(vInt, g_XMFlipA2B10G10R10); + float32x4_t R = vcvtq_f32_s32(vreinterpretq_s32_u32(vInt)); + R = vaddq_f32(R, g_XMFixAA2B10G10R10); + R = vmulq_f32(R, g_XMNormalizeA2B10G10R10); + return vmaxq_f32(R, vdupq_n_f32(-1.0f)); +#elif defined(_XM_SSE_INTRINSICS_) + // Splat the color in all four entries + __m128 vTemp = _mm_load_ps1(reinterpret_cast(&pSource->v)); + // Shift R&0xFF0000, G&0xFF00, B&0xFF, A&0xFF000000 + vTemp = _mm_and_ps(vTemp, g_XMMaskA2B10G10R10); + // a is unsigned! Flip the bit to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMFlipA2B10G10R10); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // RGB + 0, A + 0x80000000.f to undo the signed order. + vTemp = _mm_add_ps(vTemp, g_XMFixAA2B10G10R10); + // Convert 0-255 to 0.0f-1.0f + vTemp = _mm_mul_ps(vTemp, g_XMNormalizeA2B10G10R10); + // Clamp result (for case of -512) + return _mm_max_ps(vTemp, g_XMNegativeOne); +#endif +} + +//------------------------------------------------------------------------------ +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4996) +// C4996: ignore deprecation warning +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadXDec4(const XMXDEC4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + static const uint32_t SignExtend[] = { 0x00000000, 0xFFFFFC00 }; + + uint32_t ElementX = pSource->v & 0x3FF; + uint32_t ElementY = (pSource->v >> 10) & 0x3FF; + uint32_t ElementZ = (pSource->v >> 20) & 0x3FF; + + XMVECTORF32 vResult = { { { + static_cast(static_cast(ElementX | SignExtend[ElementX >> 9])), + static_cast(static_cast(ElementY | SignExtend[ElementY >> 9])), + static_cast(static_cast(ElementZ | SignExtend[ElementZ >> 9])), + static_cast(pSource->v >> 30) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORU32 XDec4Xor = { { { 0x200, 0x200 << 10, 0x200 << 20, 0x80000000 } } }; + static const XMVECTORF32 XDec4Add = { { { -512.0f, -512.0f * 1024.0f, -512.0f * 1024.0f * 1024.0f, 32768 * 65536.0f } } }; + uint32x4_t vInt = vld1q_dup_u32(reinterpret_cast(pSource)); + vInt = vandq_u32(vInt, g_XMMaskDec4); + vInt = veorq_u32(vInt, XDec4Xor); + float32x4_t R = vcvtq_f32_s32(vreinterpretq_s32_u32(vInt)); + R = vaddq_f32(R, XDec4Add); + return vmulq_f32(R, g_XMMulDec4); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORU32 XDec4Xor = { { { 0x200, 0x200 << 10, 0x200 << 20, 0x80000000 } } }; + static const XMVECTORF32 XDec4Add = { { { -512.0f, -512.0f * 1024.0f, -512.0f * 1024.0f * 1024.0f, 32768 * 65536.0f } } }; + // Splat the color in all four entries + XMVECTOR vTemp = _mm_load_ps1(reinterpret_cast(&pSource->v)); + // Shift R&0xFF0000, G&0xFF00, B&0xFF, A&0xFF000000 + vTemp = _mm_and_ps(vTemp, g_XMMaskDec4); + // a is unsigned! Flip the bit to convert the order to signed + vTemp = _mm_xor_ps(vTemp, XDec4Xor); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // RGB + 0, A + 0x80000000.f to undo the signed order. + vTemp = _mm_add_ps(vTemp, XDec4Add); + // Convert 0-255 to 0.0f-1.0f + vTemp = _mm_mul_ps(vTemp, g_XMMulDec4); + return vTemp; +#endif +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUDecN4(const XMUDECN4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + + uint32_t ElementX = pSource->v & 0x3FF; + uint32_t ElementY = (pSource->v >> 10) & 0x3FF; + uint32_t ElementZ = (pSource->v >> 20) & 0x3FF; + + XMVECTORF32 vResult = { { { + static_cast(ElementX) / 1023.0f, + static_cast(ElementY) / 1023.0f, + static_cast(ElementZ) / 1023.0f, + static_cast(pSource->v >> 30) / 3.0f + } } }; + return vResult.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 UDecN4Mul = { { { 1.0f / 1023.0f, 1.0f / (1023.0f * 1024.0f), 1.0f / (1023.0f * 1024.0f * 1024.0f), 1.0f / (3.0f * 1024.0f * 1024.0f * 1024.0f) } } }; + uint32x4_t vInt = vld1q_dup_u32(reinterpret_cast(pSource)); + vInt = vandq_u32(vInt, g_XMMaskDec4); + float32x4_t R = vcvtq_f32_u32(vInt); + return vmulq_f32(R, UDecN4Mul); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 UDecN4Mul = { { { 1.0f / 1023.0f, 1.0f / (1023.0f * 1024.0f), 1.0f / (1023.0f * 1024.0f * 1024.0f), 1.0f / (3.0f * 1024.0f * 1024.0f * 1024.0f) } } }; + // Splat the color in all four entries + XMVECTOR vTemp = _mm_load_ps1(reinterpret_cast(&pSource->v)); + // Shift R&0xFF0000, G&0xFF00, B&0xFF, A&0xFF000000 + vTemp = _mm_and_ps(vTemp, g_XMMaskDec4); + // a is unsigned! Flip the bit to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMFlipW); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // RGB + 0, A + 0x80000000.f to undo the signed order. + vTemp = _mm_add_ps(vTemp, g_XMAddUDec4); + // Convert 0-255 to 0.0f-1.0f + vTemp = _mm_mul_ps(vTemp, UDecN4Mul); + return vTemp; +#endif +} + + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUDecN4_XR(const XMUDECN4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + + int32_t ElementX = pSource->v & 0x3FF; + int32_t ElementY = (pSource->v >> 10) & 0x3FF; + int32_t ElementZ = (pSource->v >> 20) & 0x3FF; + + XMVECTORF32 vResult = { { { + static_cast(ElementX - 0x180) / 510.0f, + static_cast(ElementY - 0x180) / 510.0f, + static_cast(ElementZ - 0x180) / 510.0f, + static_cast(pSource->v >> 30) / 3.0f + } } }; + + return vResult.v; + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 XRMul = { { { 1.0f / 510.0f, 1.0f / (510.0f * 1024.0f), 1.0f / (510.0f * 1024.0f * 1024.0f), 1.0f / (3.0f * 1024.0f * 1024.0f * 1024.0f) } } }; + static const XMVECTORI32 XRBias = { { { 0x180, 0x180 * 1024, 0x180 * 1024 * 1024, 0 } } }; + uint32x4_t vInt = vld1q_dup_u32(reinterpret_cast(pSource)); + vInt = vandq_u32(vInt, g_XMMaskDec4); + int32x4_t vTemp = vsubq_s32(vreinterpretq_s32_u32(vInt), XRBias); + vTemp = veorq_s32(vTemp, g_XMFlipW); + float32x4_t R = vcvtq_f32_s32(vTemp); + R = vaddq_f32(R, g_XMAddUDec4); + return vmulq_f32(R, XRMul); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 XRMul = { { { 1.0f / 510.0f, 1.0f / (510.0f * 1024.0f), 1.0f / (510.0f * 1024.0f * 1024.0f), 1.0f / (3.0f * 1024.0f * 1024.0f * 1024.0f) } } }; + static const XMVECTORI32 XRBias = { { { 0x180, 0x180 * 1024, 0x180 * 1024 * 1024, 0 } } }; + // Splat the color in all four entries + XMVECTOR vTemp = _mm_load_ps1(reinterpret_cast(&pSource->v)); + // Mask channels + vTemp = _mm_and_ps(vTemp, g_XMMaskDec4); + // Subtract bias + vTemp = _mm_castsi128_ps(_mm_sub_epi32(_mm_castps_si128(vTemp), XRBias)); + // a is unsigned! Flip the bit to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMFlipW); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // RGB + 0, A + 0x80000000.f to undo the signed order. + vTemp = _mm_add_ps(vTemp, g_XMAddUDec4); + // Convert to 0.0f-1.0f + return _mm_mul_ps(vTemp, XRMul); +#endif +} + + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUDec4(const XMUDEC4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + uint32_t ElementX = pSource->v & 0x3FF; + uint32_t ElementY = (pSource->v >> 10) & 0x3FF; + uint32_t ElementZ = (pSource->v >> 20) & 0x3FF; + + XMVECTORF32 vResult = { { { + static_cast(ElementX), + static_cast(ElementY), + static_cast(ElementZ), + static_cast(pSource->v >> 30) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vInt = vld1q_dup_u32(reinterpret_cast(pSource)); + vInt = vandq_u32(vInt, g_XMMaskDec4); + float32x4_t R = vcvtq_f32_u32(vInt); + return vmulq_f32(R, g_XMMulDec4); +#elif defined(_XM_SSE_INTRINSICS_) + // Splat the color in all four entries + XMVECTOR vTemp = _mm_load_ps1(reinterpret_cast(&pSource->v)); + // Shift R&0xFF0000, G&0xFF00, B&0xFF, A&0xFF000000 + vTemp = _mm_and_ps(vTemp, g_XMMaskDec4); + // a is unsigned! Flip the bit to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMFlipW); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // RGB + 0, A + 0x80000000.f to undo the signed order. + vTemp = _mm_add_ps(vTemp, g_XMAddUDec4); + // Convert 0-255 to 0.0f-1.0f + vTemp = _mm_mul_ps(vTemp, g_XMMulDec4); + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4996) +// C4996: ignore deprecation warning +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadDecN4(const XMDECN4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + static const uint32_t SignExtend[] = { 0x00000000, 0xFFFFFC00 }; + static const uint32_t SignExtendW[] = { 0x00000000, 0xFFFFFFFC }; + + uint32_t ElementX = pSource->v & 0x3FF; + uint32_t ElementY = (pSource->v >> 10) & 0x3FF; + uint32_t ElementZ = (pSource->v >> 20) & 0x3FF; + uint32_t ElementW = pSource->v >> 30; + + XMVECTORF32 vResult = { { { + (ElementX == 0x200) ? -1.f : (static_cast(static_cast(ElementX | SignExtend[ElementX >> 9])) / 511.0f), + (ElementY == 0x200) ? -1.f : (static_cast(static_cast(ElementY | SignExtend[ElementY >> 9])) / 511.0f), + (ElementZ == 0x200) ? -1.f : (static_cast(static_cast(ElementZ | SignExtend[ElementZ >> 9])) / 511.0f), + (ElementW == 0x2) ? -1.f : static_cast(static_cast(ElementW | SignExtendW[(ElementW >> 1) & 1])) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 DecN4Mul = { { { 1.0f / 511.0f, 1.0f / (511.0f * 1024.0f), 1.0f / (511.0f * 1024.0f * 1024.0f), 1.0f / (1024.0f * 1024.0f * 1024.0f) } } }; + uint32x4_t vInt = vld1q_dup_u32(reinterpret_cast(pSource)); + vInt = vandq_u32(vInt, g_XMMaskDec4); + vInt = veorq_u32(vInt, g_XMXorDec4); + float32x4_t R = vcvtq_f32_s32(vreinterpretq_s32_u32(vInt)); + R = vaddq_f32(R, g_XMAddDec4); + R = vmulq_f32(R, DecN4Mul); + return vmaxq_f32(R, vdupq_n_f32(-1.0f)); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 DecN4Mul = { { { 1.0f / 511.0f, 1.0f / (511.0f * 1024.0f), 1.0f / (511.0f * 1024.0f * 1024.0f), 1.0f / (1024.0f * 1024.0f * 1024.0f) } } }; + // Splat the color in all four entries + XMVECTOR vTemp = _mm_load_ps1(reinterpret_cast(&pSource->v)); + // Shift R&0xFF0000, G&0xFF00, B&0xFF, A&0xFF000000 + vTemp = _mm_and_ps(vTemp, g_XMMaskDec4); + // a is unsigned! Flip the bit to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMXorDec4); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // RGB + 0, A + 0x80000000.f to undo the signed order. + vTemp = _mm_add_ps(vTemp, g_XMAddDec4); + // Convert 0-255 to 0.0f-1.0f + vTemp = _mm_mul_ps(vTemp, DecN4Mul); + // Clamp result (for case of -512/-1) + return _mm_max_ps(vTemp, g_XMNegativeOne); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadDec4(const XMDEC4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + static const uint32_t SignExtend[] = { 0x00000000, 0xFFFFFC00 }; + static const uint32_t SignExtendW[] = { 0x00000000, 0xFFFFFFFC }; + + uint32_t ElementX = pSource->v & 0x3FF; + uint32_t ElementY = (pSource->v >> 10) & 0x3FF; + uint32_t ElementZ = (pSource->v >> 20) & 0x3FF; + uint32_t ElementW = pSource->v >> 30; + + XMVECTORF32 vResult = { { { + static_cast(static_cast(ElementX | SignExtend[ElementX >> 9])), + static_cast(static_cast(ElementY | SignExtend[ElementY >> 9])), + static_cast(static_cast(ElementZ | SignExtend[ElementZ >> 9])), + static_cast(static_cast(ElementW | SignExtendW[ElementW >> 1])) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x4_t vInt = vld1q_dup_u32(reinterpret_cast(pSource)); + vInt = vandq_u32(vInt, g_XMMaskDec4); + vInt = veorq_u32(vInt, g_XMXorDec4); + float32x4_t R = vcvtq_f32_s32(vreinterpretq_s32_u32(vInt)); + R = vaddq_f32(R, g_XMAddDec4); + return vmulq_f32(R, g_XMMulDec4); +#elif defined(_XM_SSE_INTRINSICS_) + // Splat the color in all four entries + XMVECTOR vTemp = _mm_load_ps1(reinterpret_cast(&pSource->v)); + // Shift R&0xFF0000, G&0xFF00, B&0xFF, A&0xFF000000 + vTemp = _mm_and_ps(vTemp, g_XMMaskDec4); + // a is unsigned! Flip the bit to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMXorDec4); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // RGB + 0, A + 0x80000000.f to undo the signed order. + vTemp = _mm_add_ps(vTemp, g_XMAddDec4); + // Convert 0-255 to 0.0f-1.0f + vTemp = _mm_mul_ps(vTemp, g_XMMulDec4); + return vTemp; +#endif +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUByteN4(const XMUBYTEN4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x) / 255.0f, + static_cast(pSource->y) / 255.0f, + static_cast(pSource->z) / 255.0f, + static_cast(pSource->w) / 255.0f + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vInt8 = vld1_dup_u32(reinterpret_cast(pSource)); + uint16x8_t vInt16 = vmovl_u8(vreinterpret_u8_u32(vInt8)); + uint32x4_t vInt = vmovl_u16(vget_low_u16(vInt16)); + float32x4_t R = vcvtq_f32_u32(vInt); + return vmulq_n_f32(R, 1.0f / 255.0f); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 LoadUByteN4Mul = { { { 1.0f / 255.0f, 1.0f / (255.0f * 256.0f), 1.0f / (255.0f * 65536.0f), 1.0f / (255.0f * 65536.0f * 256.0f) } } }; + // Splat the color in all four entries (x,z,y,w) + XMVECTOR vTemp = _mm_load1_ps(reinterpret_cast(&pSource->x)); + // Mask x&0ff,y&0xff00,z&0xff0000,w&0xff000000 + vTemp = _mm_and_ps(vTemp, g_XMMaskByte4); + // w is signed! Flip the bits to convert the order to unsigned + vTemp = _mm_xor_ps(vTemp, g_XMFlipW); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // w + 0x80 to complete the conversion + vTemp = _mm_add_ps(vTemp, g_XMAddUDec4); + // Fix y, z and w because they are too large + vTemp = _mm_mul_ps(vTemp, LoadUByteN4Mul); + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUByte4(const XMUBYTE4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x), + static_cast(pSource->y), + static_cast(pSource->z), + static_cast(pSource->w) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vInt8 = vld1_dup_u32(reinterpret_cast(pSource)); + uint16x8_t vInt16 = vmovl_u8(vreinterpret_u8_u32(vInt8)); + uint32x4_t vInt = vmovl_u16(vget_low_u16(vInt16)); + return vcvtq_f32_u32(vInt); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 LoadUByte4Mul = { { { 1.0f, 1.0f / 256.0f, 1.0f / 65536.0f, 1.0f / (65536.0f * 256.0f) } } }; + // Splat the color in all four entries (x,z,y,w) + XMVECTOR vTemp = _mm_load1_ps(reinterpret_cast(&pSource->x)); + // Mask x&0ff,y&0xff00,z&0xff0000,w&0xff000000 + vTemp = _mm_and_ps(vTemp, g_XMMaskByte4); + // w is signed! Flip the bits to convert the order to unsigned + vTemp = _mm_xor_ps(vTemp, g_XMFlipW); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // w + 0x80 to complete the conversion + vTemp = _mm_add_ps(vTemp, g_XMAddUDec4); + // Fix y, z and w because they are too large + vTemp = _mm_mul_ps(vTemp, LoadUByte4Mul); + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadByteN4(const XMBYTEN4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + (pSource->x == -128) ? -1.f : (static_cast(pSource->x) / 127.0f), + (pSource->y == -128) ? -1.f : (static_cast(pSource->y) / 127.0f), + (pSource->z == -128) ? -1.f : (static_cast(pSource->z) / 127.0f), + (pSource->w == -128) ? -1.f : (static_cast(pSource->w) / 127.0f) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vInt8 = vld1_dup_u32(reinterpret_cast(pSource)); + int16x8_t vInt16 = vmovl_s8(vreinterpret_s8_u32(vInt8)); + int32x4_t vInt = vmovl_s16(vget_low_s16(vInt16)); + float32x4_t R = vcvtq_f32_s32(vInt); + R = vmulq_n_f32(R, 1.0f / 127.0f); + return vmaxq_f32(R, vdupq_n_f32(-1.f)); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 LoadByteN4Mul = { { { 1.0f / 127.0f, 1.0f / (127.0f * 256.0f), 1.0f / (127.0f * 65536.0f), 1.0f / (127.0f * 65536.0f * 256.0f) } } }; + // Splat the color in all four entries (x,z,y,w) + XMVECTOR vTemp = _mm_load1_ps(reinterpret_cast(&pSource->x)); + // Mask x&0ff,y&0xff00,z&0xff0000,w&0xff000000 + vTemp = _mm_and_ps(vTemp, g_XMMaskByte4); + // x,y and z are unsigned! Flip the bits to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMXorByte4); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // x, y and z - 0x80 to complete the conversion + vTemp = _mm_add_ps(vTemp, g_XMAddByte4); + // Fix y, z and w because they are too large + vTemp = _mm_mul_ps(vTemp, LoadByteN4Mul); + // Clamp result (for case of -128) + return _mm_max_ps(vTemp, g_XMNegativeOne); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadByte4(const XMBYTE4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + static_cast(pSource->x), + static_cast(pSource->y), + static_cast(pSource->z), + static_cast(pSource->w) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + uint32x2_t vInt8 = vld1_dup_u32(reinterpret_cast(pSource)); + int16x8_t vInt16 = vmovl_s8(vreinterpret_s8_u32(vInt8)); + int32x4_t vInt = vmovl_s16(vget_low_s16(vInt16)); + return vcvtq_f32_s32(vInt); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 LoadByte4Mul = { { { 1.0f, 1.0f / 256.0f, 1.0f / 65536.0f, 1.0f / (65536.0f * 256.0f) } } }; + // Splat the color in all four entries (x,z,y,w) + XMVECTOR vTemp = _mm_load1_ps(reinterpret_cast(&pSource->x)); + // Mask x&0ff,y&0xff00,z&0xff0000,w&0xff000000 + vTemp = _mm_and_ps(vTemp, g_XMMaskByte4); + // x,y and z are unsigned! Flip the bits to convert the order to signed + vTemp = _mm_xor_ps(vTemp, g_XMXorByte4); + // Convert to floating point numbers + vTemp = _mm_cvtepi32_ps(_mm_castps_si128(vTemp)); + // x, y and z - 0x80 to complete the conversion + vTemp = _mm_add_ps(vTemp, g_XMAddByte4); + // Fix y, z and w because they are too large + vTemp = _mm_mul_ps(vTemp, LoadByte4Mul); + return vTemp; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadUNibble4(const XMUNIBBLE4* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + float(pSource->v & 0xF), + float((pSource->v >> 4) & 0xF), + float((pSource->v >> 8) & 0xF), + float((pSource->v >> 12) & 0xF) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORI32 UNibble4And = { { { 0xF, 0xF0, 0xF00, 0xF000 } } }; + static const XMVECTORF32 UNibble4Mul = { { { 1.0f, 1.0f / 16.f, 1.0f / 256.f, 1.0f / 4096.f } } }; + uint16x4_t vInt16 = vld1_dup_u16(reinterpret_cast(pSource)); + uint32x4_t vInt = vmovl_u16(vInt16); + vInt = vandq_u32(vInt, UNibble4And); + float32x4_t R = vcvtq_f32_u32(vInt); + return vmulq_f32(R, UNibble4Mul); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORI32 UNibble4And = { { { 0xF, 0xF0, 0xF00, 0xF000 } } }; + static const XMVECTORF32 UNibble4Mul = { { { 1.0f, 1.0f / 16.f, 1.0f / 256.f, 1.0f / 4096.f } } }; + // Get the 16 bit value and splat it + __m128i vInt = XM_LOADU_SI16(&pSource->v); + XMVECTOR vResult = XM_PERMUTE_PS(_mm_castsi128_ps(vInt), _MM_SHUFFLE(0,0,0,0)); + // Mask off x, y and z + vResult = _mm_and_ps(vResult, UNibble4And); + // Convert to float + vResult = _mm_cvtepi32_ps(_mm_castps_si128(vResult)); + // Normalize x, y, and z + vResult = _mm_mul_ps(vResult, UNibble4Mul); + return vResult; +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMVECTOR XM_CALLCONV XMLoadU555(const XMU555* pSource) noexcept +{ + assert(pSource); +#if defined(_XM_NO_INTRINSICS_) + XMVECTORF32 vResult = { { { + float(pSource->v & 0x1F), + float((pSource->v >> 5) & 0x1F), + float((pSource->v >> 10) & 0x1F), + float((pSource->v >> 15) & 0x1) + } } }; + return vResult.v; +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORI32 U555And = { { { 0x1F, 0x1F << 5, 0x1F << 10, 0x8000 } } }; + static const XMVECTORF32 U555Mul = { { { 1.0f, 1.0f / 32.f, 1.0f / 1024.f, 1.0f / 32768.f } } }; + uint16x4_t vInt16 = vld1_dup_u16(reinterpret_cast(pSource)); + uint32x4_t vInt = vmovl_u16(vInt16); + vInt = vandq_u32(vInt, U555And); + float32x4_t R = vcvtq_f32_u32(vInt); + return vmulq_f32(R, U555Mul); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORI32 U555And = { { { 0x1F, 0x1F << 5, 0x1F << 10, 0x8000 } } }; + static const XMVECTORF32 U555Mul = { { { 1.0f, 1.0f / 32.f, 1.0f / 1024.f, 1.0f / 32768.f } } }; + // Get the 16bit value and splat it + __m128i vInt = XM_LOADU_SI16(&pSource->v); + XMVECTOR vResult = XM_PERMUTE_PS(_mm_castsi128_ps(vInt), _MM_SHUFFLE(0, 0, 0, 0)); + // Mask off x, y and z + vResult = _mm_and_ps(vResult, U555And); + // Convert to float + vResult = _mm_cvtepi32_ps(_mm_castps_si128(vResult)); + // Normalize x, y, and z + vResult = _mm_mul_ps(vResult, U555Mul); + return vResult; +#endif +} + +#ifdef _PREFAST_ +#pragma prefast(pop) +#endif + +/**************************************************************************** + * + * Vector and matrix store operations + * + ****************************************************************************/ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreColor +( + XMCOLOR* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorSaturate(V); + N = XMVectorMultiply(N, g_UByteMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->c = (static_cast(tmp.w) << 24) | + (static_cast(tmp.x) << 16) | + (static_cast(tmp.y) << 8) | + static_cast(tmp.z); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(0)); + R = vminq_f32(R, vdupq_n_f32(1.0f)); + R = vmulq_n_f32(R, 255.0f); + R = XMVectorRound(R); + uint32x4_t vInt32 = vcvtq_u32_f32(R); + uint16x4_t vInt16 = vqmovn_u32(vInt32); + uint8x8_t vInt8 = vqmovn_u16(vcombine_u16(vInt16, vInt16)); + uint32_t rgba = vget_lane_u32(vreinterpret_u32_u8(vInt8), 0); + pDestination->c = (rgba & 0xFF00FF00) | ((rgba >> 16) & 0xFF) | ((rgba << 16) & 0xFF0000); +#elif defined(_XM_SSE_INTRINSICS_) + // Set <0 to 0 + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + // Set>1 to 1 + vResult = _mm_min_ps(vResult, g_XMOne); + // Convert to 0-255 + vResult = _mm_mul_ps(vResult, g_UByteMax); + // Shuffle RGBA to ARGB + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(3, 0, 1, 2)); + // Convert to int + __m128i vInt = _mm_cvtps_epi32(vResult); + // Mash to shorts + vInt = _mm_packs_epi32(vInt, vInt); + // Mash to bytes + vInt = _mm_packus_epi16(vInt, vInt); + // Store the color + _mm_store_ss(reinterpret_cast(&pDestination->c), _mm_castsi128_ps(vInt)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreHalf2 +( + XMHALF2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_F16C_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + __m128i V1 = _mm_cvtps_ph(V, _MM_FROUND_TO_NEAREST_INT); + _mm_store_ss(reinterpret_cast(pDestination), _mm_castsi128_ps(V1)); +#else + pDestination->x = XMConvertFloatToHalf(XMVectorGetX(V)); + pDestination->y = XMConvertFloatToHalf(XMVectorGetY(V)); +#endif // !_XM_F16C_INTRINSICS_ +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreShortN2 +( + XMSHORTN2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, g_XMNegativeOne.v, g_XMOne.v); + N = XMVectorMultiply(N, g_ShortMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(-1.f)); + R = vminq_f32(R, vdupq_n_f32(1.0f)); + R = vmulq_n_f32(R, 32767.0f); + int32x4_t vInt32 = vcvtq_s32_f32(R); + int16x4_t vInt16 = vqmovn_s32(vInt32); + vst1_lane_u32(&pDestination->v, vreinterpret_u32_s16(vInt16), 0); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = _mm_max_ps(V, g_XMNegativeOne); + vResult = _mm_min_ps(vResult, g_XMOne); + vResult = _mm_mul_ps(vResult, g_ShortMax); + __m128i vResulti = _mm_cvtps_epi32(vResult); + vResulti = _mm_packs_epi32(vResulti, vResulti); + _mm_store_ss(reinterpret_cast(&pDestination->x), _mm_castsi128_ps(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreShort2 +( + XMSHORT2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, g_ShortMin, g_ShortMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(-32767.f)); + R = vminq_f32(R, vdupq_n_f32(32767.0f)); + int32x4_t vInt32 = vcvtq_s32_f32(R); + int16x4_t vInt16 = vqmovn_s32(vInt32); + vst1_lane_u32(&pDestination->v, vreinterpret_u32_s16(vInt16), 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Bounds check + XMVECTOR vResult = _mm_max_ps(V, g_ShortMin); + vResult = _mm_min_ps(vResult, g_ShortMax); + // Convert to int with rounding + __m128i vInt = _mm_cvtps_epi32(vResult); + // Pack the ints into shorts + vInt = _mm_packs_epi32(vInt, vInt); + _mm_store_ss(reinterpret_cast(&pDestination->x), _mm_castsi128_ps(vInt)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUShortN2 +( + XMUSHORTN2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorSaturate(V); + N = XMVectorMultiplyAdd(N, g_UShortMax, g_XMOneHalf.v); + N = XMVectorTruncate(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(0.f)); + R = vminq_f32(R, vdupq_n_f32(1.0f)); + R = vmulq_n_f32(R, 65535.0f); + R = vaddq_f32(R, g_XMOneHalf); + uint32x4_t vInt32 = vcvtq_u32_f32(R); + uint16x4_t vInt16 = vqmovn_u32(vInt32); + vst1_lane_u32(&pDestination->v, vreinterpret_u32_u16(vInt16), 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Bounds check + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, g_XMOne); + vResult = _mm_mul_ps(vResult, g_UShortMax); + vResult = _mm_add_ps(vResult, g_XMOneHalf); + // Convert to int + __m128i vInt = _mm_cvttps_epi32(vResult); + // Since the SSE pack instruction clamps using signed rules, + // manually extract the values to store them to memory + pDestination->x = static_cast(_mm_extract_epi16(vInt, 0)); + pDestination->y = static_cast(_mm_extract_epi16(vInt, 2)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUShort2 +( + XMUSHORT2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, XMVectorZero(), g_UShortMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(0.f)); + R = vminq_f32(R, vdupq_n_f32(65535.0f)); + uint32x4_t vInt32 = vcvtq_u32_f32(R); + uint16x4_t vInt16 = vqmovn_u32(vInt32); + vst1_lane_u32(&pDestination->v, vreinterpret_u32_u16(vInt16), 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Bounds check + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, g_UShortMax); + // Convert to int with rounding + __m128i vInt = _mm_cvtps_epi32(vResult); + // Since the SSE pack instruction clamps using signed rules, + // manually extract the values to store them to memory + pDestination->x = static_cast(_mm_extract_epi16(vInt, 0)); + pDestination->y = static_cast(_mm_extract_epi16(vInt, 2)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreByteN2 +( + XMBYTEN2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, g_XMNegativeOne.v, g_XMOne.v); + N = XMVectorMultiply(N, g_ByteMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(-1.f)); + R = vminq_f32(R, vdupq_n_f32(1.0f)); + R = vmulq_n_f32(R, 127.0f); + int32x4_t vInt32 = vcvtq_s32_f32(R); + int16x4_t vInt16 = vqmovn_s32(vInt32); + int8x8_t vInt8 = vqmovn_s16(vcombine_s16(vInt16, vInt16)); + vst1_lane_u16(reinterpret_cast(pDestination), vreinterpret_u16_s8(vInt8), 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_XMNegativeOne); + vResult = _mm_min_ps(vResult, g_XMOne); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, g_ByteMax); + // Convert to int by rounding + __m128i vInt = _mm_cvtps_epi32(vResult); + // No SSE operations will write to 16-bit values, so we have to extract them manually + auto x = static_cast(_mm_extract_epi16(vInt, 0)); + auto y = static_cast(_mm_extract_epi16(vInt, 2)); + pDestination->v = static_cast(((static_cast(y) & 0xFF) << 8) | (static_cast(x) & 0xFF)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreByte2 +( + XMBYTE2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, g_ByteMin, g_ByteMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(-127.f)); + R = vminq_f32(R, vdupq_n_f32(127.0f)); + int32x4_t vInt32 = vcvtq_s32_f32(R); + int16x4_t vInt16 = vqmovn_s32(vInt32); + int8x8_t vInt8 = vqmovn_s16(vcombine_s16(vInt16, vInt16)); + vst1_lane_u16(reinterpret_cast(pDestination), vreinterpret_u16_s8(vInt8), 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_ByteMin); + vResult = _mm_min_ps(vResult, g_ByteMax); + // Convert to int by rounding + __m128i vInt = _mm_cvtps_epi32(vResult); + // No SSE operations will write to 16-bit values, so we have to extract them manually + auto x = static_cast(_mm_extract_epi16(vInt, 0)); + auto y = static_cast(_mm_extract_epi16(vInt, 2)); + pDestination->v = static_cast(((static_cast(y) & 0xFF) << 8) | (static_cast(x) & 0xFF)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUByteN2 +( + XMUBYTEN2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorSaturate(V); + N = XMVectorMultiplyAdd(N, g_UByteMax, g_XMOneHalf.v); + N = XMVectorTruncate(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(0.f)); + R = vminq_f32(R, vdupq_n_f32(1.0f)); + R = vmulq_n_f32(R, 255.0f); + R = vaddq_f32(R, g_XMOneHalf); + uint32x4_t vInt32 = vcvtq_u32_f32(R); + uint16x4_t vInt16 = vqmovn_u32(vInt32); + uint8x8_t vInt8 = vqmovn_u16(vcombine_u16(vInt16, vInt16)); + vst1_lane_u16(reinterpret_cast(pDestination), vreinterpret_u16_u8(vInt8), 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, g_XMOne); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, g_UByteMax); + vResult = _mm_add_ps(vResult, g_XMOneHalf); + // Convert to int + __m128i vInt = _mm_cvttps_epi32(vResult); + // No SSE operations will write to 16-bit values, so we have to extract them manually + auto x = static_cast(_mm_extract_epi16(vInt, 0)); + auto y = static_cast(_mm_extract_epi16(vInt, 2)); + pDestination->v = static_cast(((static_cast(y) & 0xFF) << 8) | (static_cast(x) & 0xFF)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUByte2 +( + XMUBYTE2* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, XMVectorZero(), g_UByteMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(0.f)); + R = vminq_f32(R, vdupq_n_f32(255.0f)); + uint32x4_t vInt32 = vcvtq_u32_f32(R); + uint16x4_t vInt16 = vqmovn_u32(vInt32); + uint8x8_t vInt8 = vqmovn_u16(vcombine_u16(vInt16, vInt16)); + vst1_lane_u16(reinterpret_cast(pDestination), vreinterpret_u16_u8(vInt8), 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, g_UByteMax); + // Convert to int by rounding + __m128i vInt = _mm_cvtps_epi32(vResult); + // No SSE operations will write to 16-bit values, so we have to extract them manually + auto x = static_cast(_mm_extract_epi16(vInt, 0)); + auto y = static_cast(_mm_extract_epi16(vInt, 2)); + pDestination->v = static_cast(((static_cast(y) & 0xFF) << 8) | (static_cast(x) & 0xFF)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreU565 +( + XMU565* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + static const XMVECTORF32 Max = { { { 31.0f, 63.0f, 31.0f, 0.0f } } }; + +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR N = XMVectorClamp(V, XMVectorZero(), Max.v); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->v = static_cast( + ((static_cast(tmp.z) & 0x1F) << 11) + | ((static_cast(tmp.y) & 0x3F) << 5) + | ((static_cast(tmp.x) & 0x1F))); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.0f, 32.f, 32.f * 64.f, 0.f } } }; + static const XMVECTORU32 Mask = { { { 0x1F, 0x3F << 5, 0x1F << 11, 0 } } }; + float32x4_t vResult = vmaxq_f32(V, vdupq_n_f32(0)); + vResult = vminq_f32(vResult, Max); + vResult = vmulq_f32(vResult, Scale); + uint32x4_t vResulti = vcvtq_u32_f32(vResult); + vResulti = vandq_u32(vResulti, Mask); + // Do a horizontal or of 4 entries + uint32x2_t vTemp = vget_low_u32(vResulti); + uint32x2_t vhi = vget_high_u32(vResulti); + vTemp = vorr_u32(vTemp, vhi); + vTemp = vpadd_u32(vTemp, vTemp); + vst1_lane_u16(&pDestination->v, vreinterpret_u16_u32(vTemp), 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Bounds check + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, Max); + // Convert to int with rounding + __m128i vInt = _mm_cvtps_epi32(vResult); + // No SSE operations will write to 16-bit values, so we have to extract them manually + auto x = static_cast(_mm_extract_epi16(vInt, 0)); + auto y = static_cast(_mm_extract_epi16(vInt, 2)); + auto z = static_cast(_mm_extract_epi16(vInt, 4)); + pDestination->v = static_cast( + ((static_cast(z) & 0x1F) << 11) + | ((static_cast(y) & 0x3F) << 5) + | ((static_cast(x) & 0x1F))); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat3PK +( + XMFLOAT3PK* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + + XM_ALIGNED_DATA(16) uint32_t IValue[4]; + XMStoreFloat3A(reinterpret_cast(&IValue), V); + + uint32_t Result[3]; + + // X & Y Channels (5-bit exponent, 6-bit mantissa) + for (uint32_t j = 0; j < 2; ++j) + { + uint32_t Sign = IValue[j] & 0x80000000; + uint32_t I = IValue[j] & 0x7FFFFFFF; + + if ((I & 0x7F800000) == 0x7F800000) + { + // INF or NAN + Result[j] = 0x7C0U; + if ((I & 0x7FFFFF) != 0) + { + Result[j] = 0x7FFU; + } + else if (Sign) + { + // -INF is clamped to 0 since 3PK is positive only + Result[j] = 0; + } + } + else if (Sign || I < 0x35800000) + { + // 3PK is positive only, so clamp to zero + Result[j] = 0; + } + else if (I > 0x477E0000U) + { + // The number is too large to be represented as a float11, set to max + Result[j] = 0x7BFU; + } + else + { + if (I < 0x38800000U) + { + // The number is too small to be represented as a normalized float11 + // Convert it to a denormalized value. + uint32_t Shift = 113U - (I >> 23U); + I = (0x800000U | (I & 0x7FFFFFU)) >> Shift; + } + else + { + // Rebias the exponent to represent the value as a normalized float11 + I += 0xC8000000U; + } + + Result[j] = ((I + 0xFFFFU + ((I >> 17U) & 1U)) >> 17U) & 0x7ffU; + } + } + + // Z Channel (5-bit exponent, 5-bit mantissa) + uint32_t Sign = IValue[2] & 0x80000000; + uint32_t I = IValue[2] & 0x7FFFFFFF; + + if ((I & 0x7F800000) == 0x7F800000) + { + // INF or NAN + Result[2] = 0x3E0U; + if (I & 0x7FFFFF) + { + Result[2] = 0x3FFU; + } + else if (Sign || I < 0x36000000) + { + // -INF is clamped to 0 since 3PK is positive only + Result[2] = 0; + } + } + else if (Sign) + { + // 3PK is positive only, so clamp to zero + Result[2] = 0; + } + else if (I > 0x477C0000U) + { + // The number is too large to be represented as a float10, set to max + Result[2] = 0x3DFU; + } + else + { + if (I < 0x38800000U) + { + // The number is too small to be represented as a normalized float10 + // Convert it to a denormalized value. + uint32_t Shift = 113U - (I >> 23U); + I = (0x800000U | (I & 0x7FFFFFU)) >> Shift; + } + else + { + // Rebias the exponent to represent the value as a normalized float10 + I += 0xC8000000U; + } + + Result[2] = ((I + 0x1FFFFU + ((I >> 18U) & 1U)) >> 18U) & 0x3ffU; + } + + // Pack Result into memory + pDestination->v = (Result[0] & 0x7ff) + | ((Result[1] & 0x7ff) << 11) + | ((Result[2] & 0x3ff) << 22); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreFloat3SE +( + XMFLOAT3SE* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + + XMFLOAT3A tmp; + XMStoreFloat3A(&tmp, V); + + static constexpr float maxf9 = float(0x1FF << 7); + static constexpr float minf9 = float(1.f / (1 << 16)); + + float x = (tmp.x >= 0.f) ? ((tmp.x > maxf9) ? maxf9 : tmp.x) : 0.f; + float y = (tmp.y >= 0.f) ? ((tmp.y > maxf9) ? maxf9 : tmp.y) : 0.f; + float z = (tmp.z >= 0.f) ? ((tmp.z > maxf9) ? maxf9 : tmp.z) : 0.f; + + const float max_xy = (x > y) ? x : y; + const float max_xyz = (max_xy > z) ? max_xy : z; + + const float maxColor = (max_xyz > minf9) ? max_xyz : minf9; + + union { float f; int32_t i; } fi; + fi.f = maxColor; + fi.i += 0x00004000; // round up leaving 9 bits in fraction (including assumed 1) + + auto exp = static_cast(fi.i) >> 23; + pDestination->e = exp - 0x6f; + + fi.i = static_cast(0x83000000 - (exp << 23)); + float ScaleR = fi.f; + + pDestination->xm = static_cast(Internal::round_to_nearest(x * ScaleR)); + pDestination->ym = static_cast(Internal::round_to_nearest(y * ScaleR)); + pDestination->zm = static_cast(Internal::round_to_nearest(z * ScaleR)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreHalf4 +( + XMHALF4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_F16C_INTRINSICS_) && !defined(_XM_NO_INTRINSICS_) + __m128i V1 = _mm_cvtps_ph(V, _MM_FROUND_TO_NEAREST_INT); + _mm_storel_epi64(reinterpret_cast<__m128i*>(pDestination), V1); +#else + XMFLOAT4A t; + XMStoreFloat4A(&t, V); + + pDestination->x = XMConvertFloatToHalf(t.x); + pDestination->y = XMConvertFloatToHalf(t.y); + pDestination->z = XMConvertFloatToHalf(t.z); + pDestination->w = XMConvertFloatToHalf(t.w); +#endif // !_XM_F16C_INTRINSICS_ +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreShortN4 +( + XMSHORTN4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, g_XMNegativeOne.v, g_XMOne.v); + N = XMVectorMultiply(N, g_ShortMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + pDestination->z = static_cast(tmp.z); + pDestination->w = static_cast(tmp.w); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vResult = vmaxq_f32(V, vdupq_n_f32(-1.f)); + vResult = vminq_f32(vResult, vdupq_n_f32(1.0f)); + vResult = vmulq_n_f32(vResult, 32767.0f); + int16x4_t vInt = vmovn_s32(vcvtq_s32_f32(vResult)); + vst1_s16(reinterpret_cast(pDestination), vInt); +#elif defined(_XM_SSE_INTRINSICS_) + XMVECTOR vResult = _mm_max_ps(V, g_XMNegativeOne); + vResult = _mm_min_ps(vResult, g_XMOne); + vResult = _mm_mul_ps(vResult, g_ShortMax); + __m128i vResulti = _mm_cvtps_epi32(vResult); + vResulti = _mm_packs_epi32(vResulti, vResulti); + _mm_store_sd(reinterpret_cast(&pDestination->x), _mm_castsi128_pd(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreShort4 +( + XMSHORT4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, g_ShortMin, g_ShortMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + pDestination->z = static_cast(tmp.z); + pDestination->w = static_cast(tmp.w); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vResult = vmaxq_f32(V, g_ShortMin); + vResult = vminq_f32(vResult, g_ShortMax); + int16x4_t vInt = vmovn_s32(vcvtq_s32_f32(vResult)); + vst1_s16(reinterpret_cast(pDestination), vInt); +#elif defined(_XM_SSE_INTRINSICS_) + // Bounds check + XMVECTOR vResult = _mm_max_ps(V, g_ShortMin); + vResult = _mm_min_ps(vResult, g_ShortMax); + // Convert to int with rounding + __m128i vInt = _mm_cvtps_epi32(vResult); + // Pack the ints into shorts + vInt = _mm_packs_epi32(vInt, vInt); + _mm_store_sd(reinterpret_cast(&pDestination->x), _mm_castsi128_pd(vInt)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUShortN4 +( + XMUSHORTN4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorSaturate(V); + N = XMVectorMultiplyAdd(N, g_UShortMax, g_XMOneHalf.v); + N = XMVectorTruncate(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + pDestination->z = static_cast(tmp.z); + pDestination->w = static_cast(tmp.w); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vResult = vmaxq_f32(V, vdupq_n_f32(0)); + vResult = vminq_f32(vResult, vdupq_n_f32(1.0f)); + vResult = vmulq_n_f32(vResult, 65535.0f); + vResult = vaddq_f32(vResult, g_XMOneHalf); + uint16x4_t vInt = vmovn_u32(vcvtq_u32_f32(vResult)); + vst1_u16(reinterpret_cast(pDestination), vInt); +#elif defined(_XM_SSE_INTRINSICS_) + // Bounds check + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, g_XMOne); + vResult = _mm_mul_ps(vResult, g_UShortMax); + vResult = _mm_add_ps(vResult, g_XMOneHalf); + // Convert to int + __m128i vInt = _mm_cvttps_epi32(vResult); + // Since the SSE pack instruction clamps using signed rules, + // manually extract the values to store them to memory + pDestination->x = static_cast(_mm_extract_epi16(vInt, 0)); + pDestination->y = static_cast(_mm_extract_epi16(vInt, 2)); + pDestination->z = static_cast(_mm_extract_epi16(vInt, 4)); + pDestination->w = static_cast(_mm_extract_epi16(vInt, 6)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUShort4 +( + XMUSHORT4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, XMVectorZero(), g_UShortMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + pDestination->z = static_cast(tmp.z); + pDestination->w = static_cast(tmp.w); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t vResult = vmaxq_f32(V, vdupq_n_f32(0)); + vResult = vminq_f32(vResult, g_UShortMax); + uint16x4_t vInt = vmovn_u32(vcvtq_u32_f32(vResult)); + vst1_u16(reinterpret_cast(pDestination), vInt); +#elif defined(_XM_SSE_INTRINSICS_) + // Bounds check + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, g_UShortMax); + // Convert to int with rounding + __m128i vInt = _mm_cvtps_epi32(vResult); + // Since the SSE pack instruction clamps using signed rules, + // manually extract the values to store them to memory + pDestination->x = static_cast(_mm_extract_epi16(vInt, 0)); + pDestination->y = static_cast(_mm_extract_epi16(vInt, 2)); + pDestination->z = static_cast(_mm_extract_epi16(vInt, 4)); + pDestination->w = static_cast(_mm_extract_epi16(vInt, 6)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreXDecN4 +( + XMXDECN4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + static const XMVECTORF32 Min = { { { -1.0f, -1.0f, -1.0f, 0.0f } } }; + +#if defined(_XM_NO_INTRINSICS_) + + static const XMVECTORF32 Scale = { { { 511.0f, 511.0f, 511.0f, 3.0f } } }; + + XMVECTOR N = XMVectorClamp(V, Min.v, g_XMOne.v); + N = XMVectorMultiply(N, Scale.v); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->v = static_cast( + (static_cast(tmp.w) << 30) + | ((static_cast(tmp.z) & 0x3FF) << 20) + | ((static_cast(tmp.y) & 0x3FF) << 10) + | (static_cast(tmp.x) & 0x3FF)); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 511.0f, 511.0f * 1024.0f, 511.0f * 1048576.0f, 3.0f * 536870912.0f } } }; + static const XMVECTORI32 ScaleMask = { { { 0x3FF, 0x3FF << 10, 0x3FF << 20, 0x3 << 29 } } }; + float32x4_t vResult = vmaxq_f32(V, Min); + vResult = vminq_f32(vResult, vdupq_n_f32(1.0f)); + vResult = vmulq_f32(vResult, Scale); + int32x4_t vResulti = vcvtq_s32_f32(vResult); + vResulti = vandq_s32(vResulti, ScaleMask); + int32x4_t vResultw = vandq_s32(vResulti, g_XMMaskW); + vResulti = vaddq_s32(vResulti, vResultw); + // Do a horizontal or of all 4 entries + uint32x2_t vTemp = vget_low_u32(vreinterpretq_u32_s32(vResulti)); + uint32x2_t vhi = vget_high_u32(vreinterpretq_u32_s32(vResulti)); + vTemp = vorr_u32(vTemp, vhi); + vTemp = vpadd_u32(vTemp, vTemp); + vst1_lane_u32(&pDestination->v, vTemp, 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 511.0f, 511.0f * 1024.0f, 511.0f * 1048576.0f, 3.0f * 536870912.0f } } }; + static const XMVECTORI32 ScaleMask = { { { 0x3FF, 0x3FF << 10, 0x3FF << 20, 0x3 << 29 } } }; + XMVECTOR vResult = _mm_max_ps(V, Min); + vResult = _mm_min_ps(vResult, g_XMOne); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, Scale); + // Convert to int (W is unsigned) + __m128i vResulti = _mm_cvtps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, ScaleMask); + // To fix W, add itself to shift it up to <<30 instead of <<29 + __m128i vResultw = _mm_and_si128(vResulti, g_XMMaskW); + vResulti = _mm_add_epi32(vResulti, vResultw); + // Do a horizontal or of all 4 entries + vResult = XM_PERMUTE_PS(_mm_castsi128_ps(vResulti), _MM_SHUFFLE(0, 3, 2, 1)); + vResulti = _mm_or_si128(vResulti, _mm_castps_si128(vResult)); + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(0, 3, 2, 1)); + vResulti = _mm_or_si128(vResulti, _mm_castps_si128(vResult)); + vResult = XM_PERMUTE_PS(vResult, _MM_SHUFFLE(0, 3, 2, 1)); + vResulti = _mm_or_si128(vResulti, _mm_castps_si128(vResult)); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4996) +// C4996: ignore deprecation warning +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreXDec4 +( + XMXDEC4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + static const XMVECTORF32 MinXDec4 = { { { -511.0f, -511.0f, -511.0f, 0.0f } } }; + static const XMVECTORF32 MaxXDec4 = { { { 511.0f, 511.0f, 511.0f, 3.0f } } }; + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, MinXDec4, MaxXDec4); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->v = static_cast( + (static_cast(tmp.w) << 30) + | ((static_cast(tmp.z) & 0x3FF) << 20) + | ((static_cast(tmp.y) & 0x3FF) << 10) + | ((static_cast(tmp.x) & 0x3FF))); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 ScaleXDec4 = { { { 1.0f, 1024.0f / 2.0f, 1024.0f * 1024.0f, 1024.0f * 1024.0f * 1024.0f / 2.0f } } }; + static const XMVECTORI32 MaskXDec4 = { { { 0x3FF, 0x3FF << (10 - 1), 0x3FF << 20, 0x3 << (30 - 1) } } }; + float32x4_t vResult = vmaxq_f32(V, MinXDec4); + vResult = vminq_f32(vResult, MaxXDec4); + vResult = vmulq_f32(vResult, ScaleXDec4); + int32x4_t vResulti = vcvtq_s32_f32(vResult); + vResulti = vandq_s32(vResulti, MaskXDec4); + // Do a horizontal or of 4 entries + uint32x2_t vTemp = vget_low_u32(vreinterpretq_u32_s32(vResulti)); + uint32x2_t vTemp2 = vget_high_u32(vreinterpretq_u32_s32(vResulti)); + vTemp = vorr_u32(vTemp, vTemp2); + // Perform a single bit left shift on y|w + vTemp2 = vdup_lane_u32(vTemp, 1); + vTemp2 = vadd_u32(vTemp2, vTemp2); + vTemp = vorr_u32(vTemp, vTemp2); + vst1_lane_u32(&pDestination->v, vTemp, 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 ScaleXDec4 = { { { 1.0f, 1024.0f / 2.0f, 1024.0f * 1024.0f, 1024.0f * 1024.0f * 1024.0f / 2.0f } } }; + static const XMVECTORI32 MaskXDec4 = { { { 0x3FF, 0x3FF << (10 - 1), 0x3FF << 20, 0x3 << (30 - 1) } } }; + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, MinXDec4); + vResult = _mm_min_ps(vResult, MaxXDec4); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, ScaleXDec4); + // Convert to int + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, MaskXDec4); + // Do a horizontal or of 4 entries + __m128i vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(3, 2, 3, 2)); + // x = x|z, y = y|w + vResulti = _mm_or_si128(vResulti, vResulti2); + // Move Z to the x position + vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(1, 1, 1, 1)); + // Perform a single bit left shift on y|w + vResulti2 = _mm_add_epi32(vResulti2, vResulti2); + // i = x|y|z|w + vResulti = _mm_or_si128(vResulti, vResulti2); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUDecN4 +( + XMUDECN4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + static const XMVECTORF32 Scale = { { { 1023.0f, 1023.0f, 1023.0f, 3.0f } } }; + + XMVECTOR N = XMVectorSaturate(V); + N = XMVectorMultiply(N, Scale.v); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->v = static_cast( + (static_cast(tmp.w) << 30) + | ((static_cast(tmp.z) & 0x3FF) << 20) + | ((static_cast(tmp.y) & 0x3FF) << 10) + | ((static_cast(tmp.x) & 0x3FF))); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 ScaleUDecN4 = { { { 1023.0f, 1023.0f * 1024.0f * 0.5f, 1023.0f * 1024.0f * 1024.0f, 3.0f * 1024.0f * 1024.0f * 1024.0f * 0.5f } } }; + static const XMVECTORI32 MaskUDecN4 = { { { 0x3FF, 0x3FF << (10 - 1), 0x3FF << 20, 0x3 << (30 - 1) } } }; + float32x4_t vResult = vmaxq_f32(V, vdupq_n_f32(0.f)); + vResult = vminq_f32(vResult, vdupq_n_f32(1.f)); + vResult = vmulq_f32(vResult, ScaleUDecN4); + uint32x4_t vResulti = vcvtq_u32_f32(vResult); + vResulti = vandq_u32(vResulti, MaskUDecN4); + // Do a horizontal or of 4 entries + uint32x2_t vTemp = vget_low_u32(vResulti); + uint32x2_t vTemp2 = vget_high_u32(vResulti); + vTemp = vorr_u32(vTemp, vTemp2); + // Perform a single bit left shift on y|w + vTemp2 = vdup_lane_u32(vTemp, 1); + vTemp2 = vadd_u32(vTemp2, vTemp2); + vTemp = vorr_u32(vTemp, vTemp2); + vst1_lane_u32(&pDestination->v, vTemp, 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 ScaleUDecN4 = { { { 1023.0f, 1023.0f * 1024.0f * 0.5f, 1023.0f * 1024.0f * 1024.0f, 3.0f * 1024.0f * 1024.0f * 1024.0f * 0.5f } } }; + static const XMVECTORI32 MaskUDecN4 = { { { 0x3FF, 0x3FF << (10 - 1), 0x3FF << 20, 0x3 << (30 - 1) } } }; + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, g_XMOne); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, ScaleUDecN4); + // Convert to int + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, MaskUDecN4); + // Do a horizontal or of 4 entries + __m128i vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(3, 2, 3, 2)); + // x = x|z, y = y|w + vResulti = _mm_or_si128(vResulti, vResulti2); + // Move Z to the x position + vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(1, 1, 1, 1)); + // Perform a left shift by one bit on y|w + vResulti2 = _mm_add_epi32(vResulti2, vResulti2); + // i = x|y|z|w + vResulti = _mm_or_si128(vResulti, vResulti2); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUDecN4_XR +( + XMUDECN4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + static const XMVECTORF32 Scale = { { { 510.0f, 510.0f, 510.0f, 3.0f } } }; + static const XMVECTORF32 Bias = { { { 384.0f, 384.0f, 384.0f, 0.0f } } }; + static const XMVECTORF32 C = { { { 1023.f, 1023.f, 1023.f, 3.f } } }; + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorMultiplyAdd(V, Scale, Bias); + N = XMVectorClamp(N, g_XMZero, C); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->v = static_cast( + (static_cast(tmp.w) << 30) + | ((static_cast(tmp.z) & 0x3FF) << 20) + | ((static_cast(tmp.y) & 0x3FF) << 10) + | ((static_cast(tmp.x) & 0x3FF))); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Shift = { { { 1.0f, 1024.0f * 0.5f, 1024.0f * 1024.0f, 1024.0f * 1024.0f * 1024.0f * 0.5f } } }; + static const XMVECTORU32 MaskUDecN4 = { { { 0x3FF, 0x3FF << (10 - 1), 0x3FF << 20, 0x3 << (30 - 1) } } }; + float32x4_t vResult = vmlaq_f32(Bias, V, Scale); + vResult = vmaxq_f32(vResult, vdupq_n_f32(0.f)); + vResult = vminq_f32(vResult, C); + vResult = vmulq_f32(vResult, Shift); + uint32x4_t vResulti = vcvtq_u32_f32(vResult); + vResulti = vandq_u32(vResulti, MaskUDecN4); + // Do a horizontal or of 4 entries + uint32x2_t vTemp = vget_low_u32(vResulti); + uint32x2_t vTemp2 = vget_high_u32(vResulti); + vTemp = vorr_u32(vTemp, vTemp2); + // Perform a single bit left shift on y|w + vTemp2 = vdup_lane_u32(vTemp, 1); + vTemp2 = vadd_u32(vTemp2, vTemp2); + vTemp = vorr_u32(vTemp, vTemp2); + vst1_lane_u32(&pDestination->v, vTemp, 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 Shift = { { { 1.0f, 1024.0f * 0.5f, 1024.0f * 1024.0f, 1024.0f * 1024.0f * 1024.0f * 0.5f } } }; + static const XMVECTORU32 MaskUDecN4 = { { { 0x3FF, 0x3FF << (10 - 1), 0x3FF << 20, 0x3 << (30 - 1) } } }; + // Scale & bias + XMVECTOR vResult = XM_FMADD_PS(V, Scale, Bias); + // Clamp to bounds + vResult = _mm_max_ps(vResult, g_XMZero); + vResult = _mm_min_ps(vResult, C); + // Scale by shift values + vResult = _mm_mul_ps(vResult, Shift); + // Convert to int + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, MaskUDecN4); + // Do a horizontal or of 4 entries + __m128i vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(3, 2, 3, 2)); + // x = x|z, y = y|w + vResulti = _mm_or_si128(vResulti, vResulti2); + // Move Z to the x position + vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(1, 1, 1, 1)); + // Perform a left shift by one bit on y|w + vResulti2 = _mm_add_epi32(vResulti2, vResulti2); + // i = x|y|z|w + vResulti = _mm_or_si128(vResulti, vResulti2); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUDec4 +( + XMUDEC4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + static const XMVECTORF32 MaxUDec4 = { { { 1023.0f, 1023.0f, 1023.0f, 3.0f } } }; + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, XMVectorZero(), MaxUDec4); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->v = static_cast( + (static_cast(tmp.w) << 30) + | ((static_cast(tmp.z) & 0x3FF) << 20) + | ((static_cast(tmp.y) & 0x3FF) << 10) + | ((static_cast(tmp.x) & 0x3FF))); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 ScaleUDec4 = { { { 1.0f, 1024.0f / 2.0f, 1024.0f * 1024.0f, 1024.0f * 1024.0f * 1024.0f / 2.0f } } }; + static const XMVECTORI32 MaskUDec4 = { { { 0x3FF, 0x3FF << (10 - 1), 0x3FF << 20, 0x3 << (30 - 1) } } }; + float32x4_t vResult = vmaxq_f32(V, vdupq_n_f32(0.f)); + vResult = vminq_f32(vResult, MaxUDec4); + vResult = vmulq_f32(vResult, ScaleUDec4); + uint32x4_t vResulti = vcvtq_u32_f32(vResult); + vResulti = vandq_u32(vResulti, MaskUDec4); + // Do a horizontal or of 4 entries + uint32x2_t vTemp = vget_low_u32(vResulti); + uint32x2_t vTemp2 = vget_high_u32(vResulti); + vTemp = vorr_u32(vTemp, vTemp2); + // Perform a single bit left shift on y|w + vTemp2 = vdup_lane_u32(vTemp, 1); + vTemp2 = vadd_u32(vTemp2, vTemp2); + vTemp = vorr_u32(vTemp, vTemp2); + vst1_lane_u32(&pDestination->v, vTemp, 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 ScaleUDec4 = { { { 1.0f, 1024.0f / 2.0f, 1024.0f * 1024.0f, 1024.0f * 1024.0f * 1024.0f / 2.0f } } }; + static const XMVECTORI32 MaskUDec4 = { { { 0x3FF, 0x3FF << (10 - 1), 0x3FF << 20, 0x3 << (30 - 1) } } }; + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, MaxUDec4); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, ScaleUDec4); + // Convert to int + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, MaskUDec4); + // Do a horizontal or of 4 entries + __m128i vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(3, 2, 3, 2)); + // x = x|z, y = y|w + vResulti = _mm_or_si128(vResulti, vResulti2); + // Move Z to the x position + vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(1, 1, 1, 1)); + // Perform a left shift by one bit on y|w + vResulti2 = _mm_add_epi32(vResulti2, vResulti2); + // i = x|y|z|w + vResulti = _mm_or_si128(vResulti, vResulti2); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4996) +// C4996: ignore deprecation warning +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreDecN4 +( + XMDECN4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + static const XMVECTORF32 Scale = { { { 511.0f, 511.0f, 511.0f, 1.0f } } }; + + XMVECTOR N = XMVectorClamp(V, g_XMNegativeOne.v, g_XMOne.v); + N = XMVectorMultiply(N, Scale.v); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->v = static_cast( + (static_cast(tmp.w) << 30) + | ((static_cast(tmp.z) & 0x3FF) << 20) + | ((static_cast(tmp.y) & 0x3FF) << 10) + | ((static_cast(tmp.x) & 0x3FF))); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 ScaleDecN4 = { { { 511.0f, 511.0f * 1024.0f, 511.0f * 1024.0f * 1024.0f, 1.0f * 1024.0f * 1024.0f * 1024.0f } } }; + float32x4_t vResult = vmaxq_f32(V, vdupq_n_f32(-1.f)); + vResult = vminq_f32(vResult, vdupq_n_f32(1.f)); + vResult = vmulq_f32(vResult, ScaleDecN4); + int32x4_t vResulti = vcvtq_s32_f32(vResult); + vResulti = vandq_s32(vResulti, g_XMMaskDec4); + // Do a horizontal or of 4 entries + uint32x2_t vTemp = vget_low_u32(vreinterpretq_u32_s32(vResulti)); + uint32x2_t vhi = vget_high_u32(vreinterpretq_u32_s32(vResulti)); + vTemp = vorr_u32(vTemp, vhi); + vTemp = vpadd_u32(vTemp, vTemp); + vst1_lane_u32(&pDestination->v, vTemp, 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 ScaleDecN4 = { { { 511.0f, 511.0f * 1024.0f, 511.0f * 1024.0f * 1024.0f, 1.0f * 1024.0f * 1024.0f * 1024.0f } } }; + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_XMNegativeOne); + vResult = _mm_min_ps(vResult, g_XMOne); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, ScaleDecN4); + // Convert to int + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, g_XMMaskDec4); + // Do a horizontal or of 4 entries + __m128i vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(3, 2, 3, 2)); + // x = x|z, y = y|w + vResulti = _mm_or_si128(vResulti, vResulti2); + // Move Z to the x position + vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(1, 1, 1, 1)); + // i = x|y|z|w + vResulti = _mm_or_si128(vResulti, vResulti2); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreDec4 +( + XMDEC4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + static const XMVECTORF32 MinDec4 = { { { -511.0f, -511.0f, -511.0f, -1.0f } } }; + static const XMVECTORF32 MaxDec4 = { { { 511.0f, 511.0f, 511.0f, 1.0f } } }; + +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, MinDec4, MaxDec4); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->v = static_cast( + (static_cast(tmp.w) << 30) + | ((static_cast(tmp.z) & 0x3FF) << 20) + | ((static_cast(tmp.y) & 0x3FF) << 10) + | ((static_cast(tmp.x) & 0x3FF))); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 ScaleDec4 = { { { 1.0f, 1024.0f, 1024.0f * 1024.0f, 1024.0f * 1024.0f * 1024.0f } } }; + float32x4_t vResult = vmaxq_f32(V, MinDec4); + vResult = vminq_f32(vResult, MaxDec4); + vResult = vmulq_f32(vResult, ScaleDec4); + int32x4_t vResulti = vcvtq_s32_f32(vResult); + vResulti = vandq_s32(vResulti, g_XMMaskDec4); + // Do a horizontal or of all 4 entries + uint32x2_t vTemp = vget_low_u32(vreinterpretq_u32_s32(vResulti)); + uint32x2_t vhi = vget_high_u32(vreinterpretq_u32_s32(vResulti)); + vTemp = vorr_u32(vTemp, vhi); + vTemp = vpadd_u32(vTemp, vTemp); + vst1_lane_u32(&pDestination->v, vTemp, 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 ScaleDec4 = { { { 1.0f, 1024.0f, 1024.0f * 1024.0f, 1024.0f * 1024.0f * 1024.0f } } }; + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, MinDec4); + vResult = _mm_min_ps(vResult, MaxDec4); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, ScaleDec4); + // Convert to int + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, g_XMMaskDec4); + // Do a horizontal or of 4 entries + __m128i vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(3, 2, 3, 2)); + // x = x|z, y = y|w + vResulti = _mm_or_si128(vResulti, vResulti2); + // Move Z to the x position + vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(1, 1, 1, 1)); + // i = x|y|z|w + vResulti = _mm_or_si128(vResulti, vResulti2); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUByteN4 +( + XMUBYTEN4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorSaturate(V); + N = XMVectorMultiply(N, g_UByteMax); + N = XMVectorTruncate(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + pDestination->z = static_cast(tmp.z); + pDestination->w = static_cast(tmp.w); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(0)); + R = vminq_f32(R, vdupq_n_f32(1.0f)); + R = vmulq_n_f32(R, 255.0f); + uint32x4_t vInt32 = vcvtq_u32_f32(R); + uint16x4_t vInt16 = vqmovn_u32(vInt32); + uint8x8_t vInt8 = vqmovn_u16(vcombine_u16(vInt16, vInt16)); + vst1_lane_u32(&pDestination->v, vreinterpret_u32_u8(vInt8), 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 ScaleUByteN4 = { { { 255.0f, 255.0f * 256.0f * 0.5f, 255.0f * 256.0f * 256.0f, 255.0f * 256.0f * 256.0f * 256.0f * 0.5f } } }; + static const XMVECTORI32 MaskUByteN4 = { { { 0xFF, 0xFF << (8 - 1), 0xFF << 16, 0xFF << (24 - 1) } } }; + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, g_XMOne); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, ScaleUByteN4); + // Convert to int + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, MaskUByteN4); + // Do a horizontal or of 4 entries + __m128i vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(3, 2, 3, 2)); + // x = x|z, y = y|w + vResulti = _mm_or_si128(vResulti, vResulti2); + // Move Z to the x position + vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(1, 1, 1, 1)); + // Perform a single bit left shift to fix y|w + vResulti2 = _mm_add_epi32(vResulti2, vResulti2); + // i = x|y|z|w + vResulti = _mm_or_si128(vResulti, vResulti2); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUByte4 +( + XMUBYTE4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, XMVectorZero(), g_UByteMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + pDestination->z = static_cast(tmp.z); + pDestination->w = static_cast(tmp.w); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(0)); + R = vminq_f32(R, vdupq_n_f32(255.0f)); + uint32x4_t vInt32 = vcvtq_u32_f32(R); + uint16x4_t vInt16 = vqmovn_u32(vInt32); + uint8x8_t vInt8 = vqmovn_u16(vcombine_u16(vInt16, vInt16)); + vst1_lane_u32(&pDestination->v, vreinterpret_u32_u8(vInt8), 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 ScaleUByte4 = { { { 1.0f, 256.0f * 0.5f, 256.0f * 256.0f, 256.0f * 256.0f * 256.0f * 0.5f } } }; + static const XMVECTORI32 MaskUByte4 = { { { 0xFF, 0xFF << (8 - 1), 0xFF << 16, 0xFF << (24 - 1) } } }; + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, g_UByteMax); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, ScaleUByte4); + // Convert to int by rounding + __m128i vResulti = _mm_cvtps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, MaskUByte4); + // Do a horizontal or of 4 entries + __m128i vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(3, 2, 3, 2)); + // x = x|z, y = y|w + vResulti = _mm_or_si128(vResulti, vResulti2); + // Move Z to the x position + vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(1, 1, 1, 1)); + // Perform a single bit left shift to fix y|w + vResulti2 = _mm_add_epi32(vResulti2, vResulti2); + // i = x|y|z|w + vResulti = _mm_or_si128(vResulti, vResulti2); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreByteN4 +( + XMBYTEN4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, g_XMNegativeOne.v, g_XMOne.v); + N = XMVectorMultiply(N, g_ByteMax); + N = XMVectorTruncate(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + pDestination->z = static_cast(tmp.z); + pDestination->w = static_cast(tmp.w); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(-1.f)); + R = vminq_f32(R, vdupq_n_f32(1.0f)); + R = vmulq_n_f32(R, 127.0f); + int32x4_t vInt32 = vcvtq_s32_f32(R); + int16x4_t vInt16 = vqmovn_s32(vInt32); + int8x8_t vInt8 = vqmovn_s16(vcombine_s16(vInt16, vInt16)); + vst1_lane_u32(&pDestination->v, vreinterpret_u32_s8(vInt8), 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 ScaleByteN4 = { { { 127.0f, 127.0f * 256.0f, 127.0f * 256.0f * 256.0f, 127.0f * 256.0f * 256.0f * 256.0f } } }; + static const XMVECTORI32 MaskByteN4 = { { { 0xFF, 0xFF << 8, 0xFF << 16, static_cast(0xFF000000) } } }; + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_XMNegativeOne); + vResult = _mm_min_ps(vResult, g_XMOne); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, ScaleByteN4); + // Convert to int + __m128i vResulti = _mm_cvttps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, MaskByteN4); + // Do a horizontal or of 4 entries + __m128i vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(3, 2, 3, 2)); + // x = x|z, y = y|w + vResulti = _mm_or_si128(vResulti, vResulti2); + // Move Z to the x position + vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(1, 1, 1, 1)); + // i = x|y|z|w + vResulti = _mm_or_si128(vResulti, vResulti2); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreByte4 +( + XMBYTE4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, g_ByteMin, g_ByteMax); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->x = static_cast(tmp.x); + pDestination->y = static_cast(tmp.y); + pDestination->z = static_cast(tmp.z); + pDestination->w = static_cast(tmp.w); + +#elif defined(_XM_ARM_NEON_INTRINSICS_) + float32x4_t R = vmaxq_f32(V, vdupq_n_f32(-127.f)); + R = vminq_f32(R, vdupq_n_f32(127.f)); + int32x4_t vInt32 = vcvtq_s32_f32(R); + int16x4_t vInt16 = vqmovn_s32(vInt32); + int8x8_t vInt8 = vqmovn_s16(vcombine_s16(vInt16, vInt16)); + vst1_lane_u32(&pDestination->v, vreinterpret_u32_s8(vInt8), 0); +#elif defined(_XM_SSE_INTRINSICS_) + static const XMVECTORF32 ScaleByte4 = { { { 1.0f, 256.0f, 256.0f * 256.0f, 256.0f * 256.0f * 256.0f } } }; + static const XMVECTORI32 MaskByte4 = { { { 0xFF, 0xFF << 8, 0xFF << 16, static_cast(0xFF000000) } } }; + // Clamp to bounds + XMVECTOR vResult = _mm_max_ps(V, g_ByteMin); + vResult = _mm_min_ps(vResult, g_ByteMax); + // Scale by multiplication + vResult = _mm_mul_ps(vResult, ScaleByte4); + // Convert to int by rounding + __m128i vResulti = _mm_cvtps_epi32(vResult); + // Mask off any fraction + vResulti = _mm_and_si128(vResulti, MaskByte4); + // Do a horizontal or of 4 entries + __m128i vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(3, 2, 3, 2)); + // x = x|z, y = y|w + vResulti = _mm_or_si128(vResulti, vResulti2); + // Move Z to the x position + vResulti2 = _mm_shuffle_epi32(vResulti, _MM_SHUFFLE(1, 1, 1, 1)); + // i = x|y|z|w + vResulti = _mm_or_si128(vResulti, vResulti2); + _mm_store_ss(reinterpret_cast(&pDestination->v), _mm_castsi128_ps(vResulti)); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreUNibble4 +( + XMUNIBBLE4* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + static const XMVECTORF32 Max = { { { 15.0f, 15.0f, 15.0f, 15.0f } } }; +#if defined(_XM_NO_INTRINSICS_) + + XMVECTOR N = XMVectorClamp(V, XMVectorZero(), Max.v); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->v = static_cast( + ((static_cast(tmp.w) & 0xF) << 12) + | ((static_cast(tmp.z) & 0xF) << 8) + | ((static_cast(tmp.y) & 0xF) << 4) + | (static_cast(tmp.x) & 0xF)); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.0f, 16.f, 16.f * 16.f, 16.f * 16.f * 16.f } } }; + static const XMVECTORU32 Mask = { { { 0xF, 0xF << 4, 0xF << 8, 0xF << 12 } } }; + float32x4_t vResult = vmaxq_f32(V, vdupq_n_f32(0)); + vResult = vminq_f32(vResult, Max); + vResult = vmulq_f32(vResult, Scale); + uint32x4_t vResulti = vcvtq_u32_f32(vResult); + vResulti = vandq_u32(vResulti, Mask); + // Do a horizontal or of 4 entries + uint32x2_t vTemp = vget_low_u32(vResulti); + uint32x2_t vhi = vget_high_u32(vResulti); + vTemp = vorr_u32(vTemp, vhi); + vTemp = vpadd_u32(vTemp, vTemp); + vst1_lane_u16(&pDestination->v, vreinterpret_u16_u32(vTemp), 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Bounds check + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, Max); + // Convert to int with rounding + __m128i vInt = _mm_cvtps_epi32(vResult); + // No SSE operations will write to 16-bit values, so we have to extract them manually + auto x = static_cast(_mm_extract_epi16(vInt, 0)); + auto y = static_cast(_mm_extract_epi16(vInt, 2)); + auto z = static_cast(_mm_extract_epi16(vInt, 4)); + auto w = static_cast(_mm_extract_epi16(vInt, 6)); + pDestination->v = static_cast( + ((static_cast(w) & 0xF) << 12) + | ((static_cast(z) & 0xF) << 8) + | ((static_cast(y) & 0xF) << 4) + | ((static_cast(x) & 0xF))); +#endif +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline void XM_CALLCONV XMStoreU555 +( + XMU555* pDestination, + FXMVECTOR V +) noexcept +{ + assert(pDestination); + static const XMVECTORF32 Max = { { { 31.0f, 31.0f, 31.0f, 1.0f } } }; + +#if defined(_XM_NO_INTRINSICS_) + XMVECTOR N = XMVectorClamp(V, XMVectorZero(), Max.v); + N = XMVectorRound(N); + + XMFLOAT4A tmp; + XMStoreFloat4A(&tmp, N); + + pDestination->v = static_cast( + ((tmp.w > 0.f) ? 0x8000 : 0) + | ((static_cast(tmp.z) & 0x1F) << 10) + | ((static_cast(tmp.y) & 0x1F) << 5) + | (static_cast(tmp.x) & 0x1F)); +#elif defined(_XM_ARM_NEON_INTRINSICS_) + static const XMVECTORF32 Scale = { { { 1.0f, 32.f / 2.f, 32.f * 32.f, 32.f * 32.f * 32.f / 2.f } } }; + static const XMVECTORU32 Mask = { { { 0x1F, 0x1F << (5 - 1), 0x1F << 10, 0x1 << (15 - 1) } } }; + float32x4_t vResult = vmaxq_f32(V, vdupq_n_f32(0)); + vResult = vminq_f32(vResult, Max); + vResult = vmulq_f32(vResult, Scale); + uint32x4_t vResulti = vcvtq_u32_f32(vResult); + vResulti = vandq_u32(vResulti, Mask); + // Do a horizontal or of 4 entries + uint32x2_t vTemp = vget_low_u32(vResulti); + uint32x2_t vTemp2 = vget_high_u32(vResulti); + vTemp = vorr_u32(vTemp, vTemp2); + // Perform a single bit left shift on y|w + vTemp2 = vdup_lane_u32(vTemp, 1); + vTemp2 = vadd_u32(vTemp2, vTemp2); + vTemp = vorr_u32(vTemp, vTemp2); + vst1_lane_u16(&pDestination->v, vreinterpret_u16_u32(vTemp), 0); +#elif defined(_XM_SSE_INTRINSICS_) + // Bounds check + XMVECTOR vResult = _mm_max_ps(V, g_XMZero); + vResult = _mm_min_ps(vResult, Max); + // Convert to int with rounding + __m128i vInt = _mm_cvtps_epi32(vResult); + // No SSE operations will write to 16-bit values, so we have to extract them manually + auto x = static_cast(_mm_extract_epi16(vInt, 0)); + auto y = static_cast(_mm_extract_epi16(vInt, 2)); + auto z = static_cast(_mm_extract_epi16(vInt, 4)); + auto w = static_cast(_mm_extract_epi16(vInt, 6)); + pDestination->v = static_cast( + (static_cast(w) ? 0x8000 : 0) + | ((static_cast(z) & 0x1F) << 10) + | ((static_cast(y) & 0x1F) << 5) + | ((static_cast(x) & 0x1F))); +#endif +} + + +/**************************************************************************** + * + * XMCOLOR operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMCOLOR::XMCOLOR +( + float _r, + float _g, + float _b, + float _a +) noexcept +{ + XMStoreColor(this, XMVectorSet(_r, _g, _b, _a)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMCOLOR::XMCOLOR(const float* pArray) noexcept +{ + XMStoreColor(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMHALF2 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMHALF2::XMHALF2 +( + float _x, + float _y +) noexcept +{ + x = XMConvertFloatToHalf(_x); + y = XMConvertFloatToHalf(_y); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMHALF2::XMHALF2(const float* pArray) noexcept +{ + assert(pArray != nullptr); + x = XMConvertFloatToHalf(pArray[0]); + y = XMConvertFloatToHalf(pArray[1]); +} + +/**************************************************************************** + * + * XMSHORTN2 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMSHORTN2::XMSHORTN2 +( + float _x, + float _y +) noexcept +{ + XMStoreShortN2(this, XMVectorSet(_x, _y, 0.0f, 0.0f)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMSHORTN2::XMSHORTN2(const float* pArray) noexcept +{ + XMStoreShortN2(this, XMLoadFloat2(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMSHORT2 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMSHORT2::XMSHORT2 +( + float _x, + float _y +) noexcept +{ + XMStoreShort2(this, XMVectorSet(_x, _y, 0.0f, 0.0f)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMSHORT2::XMSHORT2(const float* pArray) noexcept +{ + XMStoreShort2(this, XMLoadFloat2(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMUSHORTN2 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUSHORTN2::XMUSHORTN2 +( + float _x, + float _y +) noexcept +{ + XMStoreUShortN2(this, XMVectorSet(_x, _y, 0.0f, 0.0f)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUSHORTN2::XMUSHORTN2(const float* pArray) noexcept +{ + XMStoreUShortN2(this, XMLoadFloat2(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMUSHORT2 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUSHORT2::XMUSHORT2 +( + float _x, + float _y +) noexcept +{ + XMStoreUShort2(this, XMVectorSet(_x, _y, 0.0f, 0.0f)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUSHORT2::XMUSHORT2(const float* pArray) noexcept +{ + XMStoreUShort2(this, XMLoadFloat2(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMBYTEN2 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMBYTEN2::XMBYTEN2 +( + float _x, + float _y +) noexcept +{ + XMStoreByteN2(this, XMVectorSet(_x, _y, 0.0f, 0.0f)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMBYTEN2::XMBYTEN2(const float* pArray) noexcept +{ + XMStoreByteN2(this, XMLoadFloat2(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMBYTE2 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMBYTE2::XMBYTE2 +( + float _x, + float _y +) noexcept +{ + XMStoreByte2(this, XMVectorSet(_x, _y, 0.0f, 0.0f)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMBYTE2::XMBYTE2(const float* pArray) noexcept +{ + XMStoreByte2(this, XMLoadFloat2(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMUBYTEN2 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUBYTEN2::XMUBYTEN2 +( + float _x, + float _y +) noexcept +{ + XMStoreUByteN2(this, XMVectorSet(_x, _y, 0.0f, 0.0f)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUBYTEN2::XMUBYTEN2(const float* pArray) noexcept +{ + XMStoreUByteN2(this, XMLoadFloat2(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMUBYTE2 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUBYTE2::XMUBYTE2 +( + float _x, + float _y +) noexcept +{ + XMStoreUByte2(this, XMVectorSet(_x, _y, 0.0f, 0.0f)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUBYTE2::XMUBYTE2(const float* pArray) noexcept +{ + XMStoreUByte2(this, XMLoadFloat2(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMU565 operators + * + ****************************************************************************/ + +inline XMU565::XMU565 +( + float _x, + float _y, + float _z +) noexcept +{ + XMStoreU565(this, XMVectorSet(_x, _y, _z, 0.0f)); +} + +_Use_decl_annotations_ +inline XMU565::XMU565(const float* pArray) noexcept +{ + XMStoreU565(this, XMLoadFloat3(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMFLOAT3PK operators + * + ****************************************************************************/ + +inline XMFLOAT3PK::XMFLOAT3PK +( + float _x, + float _y, + float _z +) noexcept +{ + XMStoreFloat3PK(this, XMVectorSet(_x, _y, _z, 0.0f)); +} + +_Use_decl_annotations_ +inline XMFLOAT3PK::XMFLOAT3PK(const float* pArray) noexcept +{ + XMStoreFloat3PK(this, XMLoadFloat3(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMFLOAT3SE operators + * + ****************************************************************************/ + +inline XMFLOAT3SE::XMFLOAT3SE +( + float _x, + float _y, + float _z +) noexcept +{ + XMStoreFloat3SE(this, XMVectorSet(_x, _y, _z, 0.0f)); +} + +_Use_decl_annotations_ +inline XMFLOAT3SE::XMFLOAT3SE(const float* pArray) noexcept +{ + XMStoreFloat3SE(this, XMLoadFloat3(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMHALF4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMHALF4::XMHALF4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + x = XMConvertFloatToHalf(_x); + y = XMConvertFloatToHalf(_y); + z = XMConvertFloatToHalf(_z); + w = XMConvertFloatToHalf(_w); +} + +//------------------------------------------------------------------------------ + +_Use_decl_annotations_ +inline XMHALF4::XMHALF4(const float* pArray) noexcept +{ + XMConvertFloatToHalfStream(&x, sizeof(HALF), pArray, sizeof(float), 4); +} + +/**************************************************************************** + * + * XMSHORTN4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMSHORTN4::XMSHORTN4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreShortN4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMSHORTN4::XMSHORTN4(const float* pArray) noexcept +{ + XMStoreShortN4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMSHORT4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMSHORT4::XMSHORT4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreShort4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMSHORT4::XMSHORT4(const float* pArray) noexcept +{ + XMStoreShort4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMUSHORTN4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUSHORTN4::XMUSHORTN4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreUShortN4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUSHORTN4::XMUSHORTN4(const float* pArray) noexcept +{ + XMStoreUShortN4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMUSHORT4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUSHORT4::XMUSHORT4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreUShort4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUSHORT4::XMUSHORT4(const float* pArray) noexcept +{ + XMStoreUShort4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMXDECN4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMXDECN4::XMXDECN4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreXDecN4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMXDECN4::XMXDECN4(const float* pArray) noexcept +{ + XMStoreXDecN4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMXDEC4 operators + * + ****************************************************************************/ +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4996) + // C4996: ignore deprecation warning +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + + //------------------------------------------------------------------------------ + +inline XMXDEC4::XMXDEC4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreXDec4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMXDEC4::XMXDEC4(const float* pArray) noexcept +{ + XMStoreXDec4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMDECN4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMDECN4::XMDECN4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreDecN4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMDECN4::XMDECN4(const float* pArray) noexcept +{ + XMStoreDecN4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMDEC4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMDEC4::XMDEC4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreDec4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMDEC4::XMDEC4(const float* pArray) noexcept +{ + XMStoreDec4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +/**************************************************************************** + * + * XMUDECN4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUDECN4::XMUDECN4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreUDecN4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUDECN4::XMUDECN4(const float* pArray) noexcept +{ + XMStoreUDecN4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMUDEC4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUDEC4::XMUDEC4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreUDec4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUDEC4::XMUDEC4(const float* pArray) noexcept +{ + XMStoreUDec4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMBYTEN4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMBYTEN4::XMBYTEN4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreByteN4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMBYTEN4::XMBYTEN4(const float* pArray) noexcept +{ + XMStoreByteN4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMBYTE4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMBYTE4::XMBYTE4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreByte4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMBYTE4::XMBYTE4(const float* pArray) noexcept +{ + XMStoreByte4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMUBYTEN4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUBYTEN4::XMUBYTEN4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreUByteN4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUBYTEN4::XMUBYTEN4(const float* pArray) noexcept +{ + XMStoreUByteN4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMUBYTE4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUBYTE4::XMUBYTE4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreUByte4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUBYTE4::XMUBYTE4(const float* pArray) noexcept +{ + XMStoreUByte4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMUNIBBLE4 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMUNIBBLE4::XMUNIBBLE4 +( + float _x, + float _y, + float _z, + float _w +) noexcept +{ + XMStoreUNibble4(this, XMVectorSet(_x, _y, _z, _w)); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMUNIBBLE4::XMUNIBBLE4(const float* pArray) noexcept +{ + XMStoreUNibble4(this, XMLoadFloat4(reinterpret_cast(pArray))); +} + +/**************************************************************************** + * + * XMU555 operators + * + ****************************************************************************/ + + //------------------------------------------------------------------------------ + +inline XMU555::XMU555 +( + float _x, + float _y, + float _z, + bool _w +) noexcept +{ + XMStoreU555(this, XMVectorSet(_x, _y, _z, ((_w) ? 1.0f : 0.0f))); +} + +//------------------------------------------------------------------------------ +_Use_decl_annotations_ +inline XMU555::XMU555 +( + const float* pArray, + bool _w +) noexcept +{ + XMVECTOR V = XMLoadFloat3(reinterpret_cast(pArray)); + XMStoreU555(this, XMVectorSetW(V, ((_w) ? 1.0f : 0.0f))); +} + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DispEx.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DispEx.h new file mode 100644 index 0000000000000000000000000000000000000000..848da90a66fd35b1d4b68045c5ed3845bffe1390 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DispEx.h @@ -0,0 +1,1064 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dispex_h__ +#define __dispex_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDispatchEx_FWD_DEFINED__ +#define __IDispatchEx_FWD_DEFINED__ +typedef interface IDispatchEx IDispatchEx; + +#endif /* __IDispatchEx_FWD_DEFINED__ */ + + +#ifndef __IDispError_FWD_DEFINED__ +#define __IDispError_FWD_DEFINED__ +typedef interface IDispError IDispError; + +#endif /* __IDispError_FWD_DEFINED__ */ + + +#ifndef __IVariantChangeType_FWD_DEFINED__ +#define __IVariantChangeType_FWD_DEFINED__ +typedef interface IVariantChangeType IVariantChangeType; + +#endif /* __IVariantChangeType_FWD_DEFINED__ */ + + +#ifndef __IObjectIdentity_FWD_DEFINED__ +#define __IObjectIdentity_FWD_DEFINED__ +typedef interface IObjectIdentity IObjectIdentity; + +#endif /* __IObjectIdentity_FWD_DEFINED__ */ + + +#ifndef __ICanHandleException_FWD_DEFINED__ +#define __ICanHandleException_FWD_DEFINED__ +typedef interface ICanHandleException ICanHandleException; + +#endif /* __ICanHandleException_FWD_DEFINED__ */ + + +#ifndef __IProvideRuntimeContext_FWD_DEFINED__ +#define __IProvideRuntimeContext_FWD_DEFINED__ +typedef interface IProvideRuntimeContext IProvideRuntimeContext; + +#endif /* __IProvideRuntimeContext_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dispex_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// DispEx.h +//=--------------------------------------------------------------------------= +// (C) Copyright 1997 Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#pragma comment(lib,"uuid.lib") + +//---------------------------------------------------------------------------= +// IDispatchEx Interfaces. +// + +#ifndef DISPEX_H_ +#define DISPEX_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + +#include "servprov.h" + +#ifndef _NO_DISPATCHEX_GUIDS + +// {A6EF9860-C720-11d0-9337-00A0C90DCAA9} +DEFINE_GUID(IID_IDispatchEx, 0xa6ef9860, 0xc720, 0x11d0, 0x93, 0x37, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9); + +// {A6EF9861-C720-11d0-9337-00A0C90DCAA9} +DEFINE_GUID(IID_IDispError, 0xa6ef9861, 0xc720, 0x11d0, 0x93, 0x37, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9); + +// {A6EF9862-C720-11d0-9337-00A0C90DCAA9} +DEFINE_GUID(IID_IVariantChangeType, 0xa6ef9862, 0xc720, 0x11d0, 0x93, 0x37, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9); + +// {1F101481-BCCD-11d0-9336-00A0C90DCAA9} +DEFINE_GUID(SID_VariantConversion, 0x1f101481, 0xbccd, 0x11d0, 0x93, 0x36, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9); + +// {4717CC40-BCB9-11d0-9336-00A0C90DCAA9} +DEFINE_GUID(SID_GetCaller, 0x4717cc40, 0xbcb9, 0x11d0, 0x93, 0x36, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9); + +// {74A5040C-DD0C-48f0-AC85-194C3259180A} +DEFINE_GUID(SID_ProvideRuntimeContext, 0x74a5040c, 0xdd0c, 0x48f0, 0xac, 0x85, 0x19, 0x4c, 0x32, 0x59, 0x18, 0xa); + +// {10E2414A-EC59-49d2-BC51-5ADD2C36FEBC} +DEFINE_GUID(IID_IProvideRuntimeContext, 0x10e2414a, 0xec59, 0x49d2, 0xbc, 0x51, 0x5a, 0xdd, 0x2c, 0x36, 0xfe, 0xbc); + +// {CA04B7E6-0D21-11d1-8CC5-00C04FC2B085} +DEFINE_GUID(IID_IObjectIdentity, 0xca04b7e6, 0xd21, 0x11d1, 0x8c, 0xc5, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85); + +// {c5598e60-b307-11d1-b27d-006008c3fbfb} +DEFINE_GUID(IID_ICanHandleException, 0xc5598e60, 0xb307, 0x11d1, 0xb2, 0x7d, 0x0, 0x60, 0x08, 0xc3, 0xfb, 0xfb); + +#define SID_GetScriptSite IID_IActiveScriptSite + +#endif // _NO_DISPATCHEX_GUIDS + + +#ifndef _NO_DISPATCHEX_CONSTS + +// Input flags for GetDispID +#define fdexNameCaseSensitive 0x00000001L +#define fdexNameEnsure 0x00000002L +#define fdexNameImplicit 0x00000004L +#define fdexNameCaseInsensitive 0x00000008L +#define fdexNameInternal 0x00000010L +#define fdexNameNoDynamicProperties 0x00000020L + +// Output flags for GetMemberProperties +#define fdexPropCanGet 0x00000001L +#define fdexPropCannotGet 0x00000002L +#define fdexPropCanPut 0x00000004L +#define fdexPropCannotPut 0x00000008L +#define fdexPropCanPutRef 0x00000010L +#define fdexPropCannotPutRef 0x00000020L +#define fdexPropNoSideEffects 0x00000040L +#define fdexPropDynamicType 0x00000080L +#define fdexPropCanCall 0x00000100L +#define fdexPropCannotCall 0x00000200L +#define fdexPropCanConstruct 0x00000400L +#define fdexPropCannotConstruct 0x00000800L +#define fdexPropCanSourceEvents 0x00001000L +#define fdexPropCannotSourceEvents 0x00002000L + +#define grfdexPropCanAll \ + (fdexPropCanGet | fdexPropCanPut | fdexPropCanPutRef | \ + fdexPropCanCall | fdexPropCanConstruct | fdexPropCanSourceEvents) +#define grfdexPropCannotAll \ + (fdexPropCannotGet | fdexPropCannotPut | fdexPropCannotPutRef | \ + fdexPropCannotCall | fdexPropCannotConstruct | fdexPropCannotSourceEvents) +#define grfdexPropExtraAll \ + (fdexPropNoSideEffects | fdexPropDynamicType) +#define grfdexPropAll \ + (grfdexPropCanAll | grfdexPropCannotAll | grfdexPropExtraAll) + +// Input flags for GetNextDispID +#define fdexEnumDefault 0x00000001L +#define fdexEnumAll 0x00000002L + +// Additional flags for Invoke - when object member is +// used as a constructor. +#define DISPATCH_CONSTRUCT 0x4000 + +// Standard DISPIDs +#define DISPID_THIS (-613) +#define DISPID_STARTENUM DISPID_UNKNOWN + +#endif //_NO_DISPATCHEX_CONSTS + + + +extern RPC_IF_HANDLE __MIDL_itf_dispex_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dispex_0000_0000_v0_0_s_ifspec; + +#ifndef __IDispatchEx_INTERFACE_DEFINED__ +#define __IDispatchEx_INTERFACE_DEFINED__ + +/* interface IDispatchEx */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDispatchEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A6EF9860-C720-11d0-9337-00A0C90DCAA9") + IDispatchEx : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDispID( + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ DWORD grfdex, + /* [out] */ __RPC__out DISPID *pid) = 0; + + virtual /* [local] */ HRESULT STDMETHODCALLTYPE InvokeEx( + /* [annotation][in] */ + _In_ DISPID id, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][in] */ + _In_ DISPPARAMS *pdp, + /* [annotation][out] */ + _Out_opt_ VARIANT *pvarRes, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pei, + /* [annotation][unique][in] */ + _In_opt_ IServiceProvider *pspCaller) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteMemberByName( + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ DWORD grfdex) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteMemberByDispID( + /* [in] */ DISPID id) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMemberProperties( + /* [in] */ DISPID id, + /* [in] */ DWORD grfdexFetch, + /* [out] */ __RPC__out DWORD *pgrfdex) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMemberName( + /* [in] */ DISPID id, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextDispID( + /* [in] */ DWORD grfdex, + /* [in] */ DISPID id, + /* [out] */ __RPC__out DISPID *pid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNameSpaceParent( + /* [out] */ __RPC__deref_out_opt IUnknown **ppunk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDispatchExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDispatchEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDispatchEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDispatchEx * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDispatchEx * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDispatchEx * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDispatchEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDispatchEx * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDispatchEx, GetDispID) + HRESULT ( STDMETHODCALLTYPE *GetDispID )( + __RPC__in IDispatchEx * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ DWORD grfdex, + /* [out] */ __RPC__out DISPID *pid); + + DECLSPEC_XFGVIRT(IDispatchEx, InvokeEx) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *InvokeEx )( + IDispatchEx * This, + /* [annotation][in] */ + _In_ DISPID id, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][in] */ + _In_ DISPPARAMS *pdp, + /* [annotation][out] */ + _Out_opt_ VARIANT *pvarRes, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pei, + /* [annotation][unique][in] */ + _In_opt_ IServiceProvider *pspCaller); + + DECLSPEC_XFGVIRT(IDispatchEx, DeleteMemberByName) + HRESULT ( STDMETHODCALLTYPE *DeleteMemberByName )( + __RPC__in IDispatchEx * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ DWORD grfdex); + + DECLSPEC_XFGVIRT(IDispatchEx, DeleteMemberByDispID) + HRESULT ( STDMETHODCALLTYPE *DeleteMemberByDispID )( + __RPC__in IDispatchEx * This, + /* [in] */ DISPID id); + + DECLSPEC_XFGVIRT(IDispatchEx, GetMemberProperties) + HRESULT ( STDMETHODCALLTYPE *GetMemberProperties )( + __RPC__in IDispatchEx * This, + /* [in] */ DISPID id, + /* [in] */ DWORD grfdexFetch, + /* [out] */ __RPC__out DWORD *pgrfdex); + + DECLSPEC_XFGVIRT(IDispatchEx, GetMemberName) + HRESULT ( STDMETHODCALLTYPE *GetMemberName )( + __RPC__in IDispatchEx * This, + /* [in] */ DISPID id, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDispatchEx, GetNextDispID) + HRESULT ( STDMETHODCALLTYPE *GetNextDispID )( + __RPC__in IDispatchEx * This, + /* [in] */ DWORD grfdex, + /* [in] */ DISPID id, + /* [out] */ __RPC__out DISPID *pid); + + DECLSPEC_XFGVIRT(IDispatchEx, GetNameSpaceParent) + HRESULT ( STDMETHODCALLTYPE *GetNameSpaceParent )( + __RPC__in IDispatchEx * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunk); + + END_INTERFACE + } IDispatchExVtbl; + + interface IDispatchEx + { + CONST_VTBL struct IDispatchExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDispatchEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDispatchEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDispatchEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDispatchEx_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDispatchEx_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDispatchEx_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDispatchEx_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDispatchEx_GetDispID(This,bstrName,grfdex,pid) \ + ( (This)->lpVtbl -> GetDispID(This,bstrName,grfdex,pid) ) + +#define IDispatchEx_InvokeEx(This,id,lcid,wFlags,pdp,pvarRes,pei,pspCaller) \ + ( (This)->lpVtbl -> InvokeEx(This,id,lcid,wFlags,pdp,pvarRes,pei,pspCaller) ) + +#define IDispatchEx_DeleteMemberByName(This,bstrName,grfdex) \ + ( (This)->lpVtbl -> DeleteMemberByName(This,bstrName,grfdex) ) + +#define IDispatchEx_DeleteMemberByDispID(This,id) \ + ( (This)->lpVtbl -> DeleteMemberByDispID(This,id) ) + +#define IDispatchEx_GetMemberProperties(This,id,grfdexFetch,pgrfdex) \ + ( (This)->lpVtbl -> GetMemberProperties(This,id,grfdexFetch,pgrfdex) ) + +#define IDispatchEx_GetMemberName(This,id,pbstrName) \ + ( (This)->lpVtbl -> GetMemberName(This,id,pbstrName) ) + +#define IDispatchEx_GetNextDispID(This,grfdex,id,pid) \ + ( (This)->lpVtbl -> GetNextDispID(This,grfdex,id,pid) ) + +#define IDispatchEx_GetNameSpaceParent(This,ppunk) \ + ( (This)->lpVtbl -> GetNameSpaceParent(This,ppunk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IDispatchEx_RemoteInvokeEx_Proxy( + __RPC__in IDispatchEx * This, + /* [in] */ DISPID id, + /* [in] */ LCID lcid, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in DISPPARAMS *pdp, + /* [out] */ __RPC__out VARIANT *pvarRes, + /* [out] */ __RPC__out EXCEPINFO *pei, + /* [unique][in] */ __RPC__in_opt IServiceProvider *pspCaller, + /* [in] */ UINT cvarRefArg, + /* [size_is][in] */ __RPC__in_ecount_full(cvarRefArg) UINT *rgiRefArg, + /* [size_is][out][in] */ __RPC__inout_ecount_full(cvarRefArg) VARIANT *rgvarRefArg); + + +void __RPC_STUB IDispatchEx_RemoteInvokeEx_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IDispatchEx_INTERFACE_DEFINED__ */ + + +#ifndef __IDispError_INTERFACE_DEFINED__ +#define __IDispError_INTERFACE_DEFINED__ + +/* interface IDispError */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDispError; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A6EF9861-C720-11d0-9337-00A0C90DCAA9") + IDispError : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE QueryErrorInfo( + /* [in] */ GUID guidErrorType, + /* [out] */ __RPC__deref_out_opt IDispError **ppde) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNext( + /* [out] */ __RPC__deref_out_opt IDispError **ppde) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHresult( + /* [out] */ __RPC__out HRESULT *phr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSource( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSource) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHelpInfo( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrFileName, + /* [out] */ __RPC__out DWORD *pdwContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescription( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDispErrorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDispError * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDispError * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDispError * This); + + DECLSPEC_XFGVIRT(IDispError, QueryErrorInfo) + HRESULT ( STDMETHODCALLTYPE *QueryErrorInfo )( + __RPC__in IDispError * This, + /* [in] */ GUID guidErrorType, + /* [out] */ __RPC__deref_out_opt IDispError **ppde); + + DECLSPEC_XFGVIRT(IDispError, GetNext) + HRESULT ( STDMETHODCALLTYPE *GetNext )( + __RPC__in IDispError * This, + /* [out] */ __RPC__deref_out_opt IDispError **ppde); + + DECLSPEC_XFGVIRT(IDispError, GetHresult) + HRESULT ( STDMETHODCALLTYPE *GetHresult )( + __RPC__in IDispError * This, + /* [out] */ __RPC__out HRESULT *phr); + + DECLSPEC_XFGVIRT(IDispError, GetSource) + HRESULT ( STDMETHODCALLTYPE *GetSource )( + __RPC__in IDispError * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSource); + + DECLSPEC_XFGVIRT(IDispError, GetHelpInfo) + HRESULT ( STDMETHODCALLTYPE *GetHelpInfo )( + __RPC__in IDispError * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrFileName, + /* [out] */ __RPC__out DWORD *pdwContext); + + DECLSPEC_XFGVIRT(IDispError, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in IDispError * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + END_INTERFACE + } IDispErrorVtbl; + + interface IDispError + { + CONST_VTBL struct IDispErrorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDispError_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDispError_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDispError_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDispError_QueryErrorInfo(This,guidErrorType,ppde) \ + ( (This)->lpVtbl -> QueryErrorInfo(This,guidErrorType,ppde) ) + +#define IDispError_GetNext(This,ppde) \ + ( (This)->lpVtbl -> GetNext(This,ppde) ) + +#define IDispError_GetHresult(This,phr) \ + ( (This)->lpVtbl -> GetHresult(This,phr) ) + +#define IDispError_GetSource(This,pbstrSource) \ + ( (This)->lpVtbl -> GetSource(This,pbstrSource) ) + +#define IDispError_GetHelpInfo(This,pbstrFileName,pdwContext) \ + ( (This)->lpVtbl -> GetHelpInfo(This,pbstrFileName,pdwContext) ) + +#define IDispError_GetDescription(This,pbstrDescription) \ + ( (This)->lpVtbl -> GetDescription(This,pbstrDescription) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDispError_INTERFACE_DEFINED__ */ + + +#ifndef __IVariantChangeType_INTERFACE_DEFINED__ +#define __IVariantChangeType_INTERFACE_DEFINED__ + +/* interface IVariantChangeType */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IVariantChangeType; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A6EF9862-C720-11d0-9337-00A0C90DCAA9") + IVariantChangeType : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ChangeType( + /* [unique][out][in] */ __RPC__inout_opt VARIANT *pvarDst, + /* [unique][in] */ __RPC__in_opt VARIANT *pvarSrc, + /* [in] */ LCID lcid, + /* [in] */ VARTYPE vtNew) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IVariantChangeTypeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IVariantChangeType * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IVariantChangeType * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IVariantChangeType * This); + + DECLSPEC_XFGVIRT(IVariantChangeType, ChangeType) + HRESULT ( STDMETHODCALLTYPE *ChangeType )( + __RPC__in IVariantChangeType * This, + /* [unique][out][in] */ __RPC__inout_opt VARIANT *pvarDst, + /* [unique][in] */ __RPC__in_opt VARIANT *pvarSrc, + /* [in] */ LCID lcid, + /* [in] */ VARTYPE vtNew); + + END_INTERFACE + } IVariantChangeTypeVtbl; + + interface IVariantChangeType + { + CONST_VTBL struct IVariantChangeTypeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IVariantChangeType_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IVariantChangeType_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IVariantChangeType_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IVariantChangeType_ChangeType(This,pvarDst,pvarSrc,lcid,vtNew) \ + ( (This)->lpVtbl -> ChangeType(This,pvarDst,pvarSrc,lcid,vtNew) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IVariantChangeType_INTERFACE_DEFINED__ */ + + +#ifndef __IObjectIdentity_INTERFACE_DEFINED__ +#define __IObjectIdentity_INTERFACE_DEFINED__ + +/* interface IObjectIdentity */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IObjectIdentity; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CA04B7E6-0D21-11d1-8CC5-00C04FC2B085") + IObjectIdentity : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsEqualObject( + /* [in] */ __RPC__in_opt IUnknown *punk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectIdentityVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IObjectIdentity * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IObjectIdentity * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IObjectIdentity * This); + + DECLSPEC_XFGVIRT(IObjectIdentity, IsEqualObject) + HRESULT ( STDMETHODCALLTYPE *IsEqualObject )( + __RPC__in IObjectIdentity * This, + /* [in] */ __RPC__in_opt IUnknown *punk); + + END_INTERFACE + } IObjectIdentityVtbl; + + interface IObjectIdentity + { + CONST_VTBL struct IObjectIdentityVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectIdentity_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectIdentity_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectIdentity_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectIdentity_IsEqualObject(This,punk) \ + ( (This)->lpVtbl -> IsEqualObject(This,punk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectIdentity_INTERFACE_DEFINED__ */ + + +#ifndef __ICanHandleException_INTERFACE_DEFINED__ +#define __ICanHandleException_INTERFACE_DEFINED__ + +/* interface ICanHandleException */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ICanHandleException; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c5598e60-b307-11d1-b27d-006008c3fbfb") + ICanHandleException : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CanHandleException( + /* [in] */ __RPC__in EXCEPINFO *pExcepInfo, + /* [in] */ __RPC__in VARIANT *pvar) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICanHandleExceptionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICanHandleException * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICanHandleException * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICanHandleException * This); + + DECLSPEC_XFGVIRT(ICanHandleException, CanHandleException) + HRESULT ( STDMETHODCALLTYPE *CanHandleException )( + __RPC__in ICanHandleException * This, + /* [in] */ __RPC__in EXCEPINFO *pExcepInfo, + /* [in] */ __RPC__in VARIANT *pvar); + + END_INTERFACE + } ICanHandleExceptionVtbl; + + interface ICanHandleException + { + CONST_VTBL struct ICanHandleExceptionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICanHandleException_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICanHandleException_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICanHandleException_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICanHandleException_CanHandleException(This,pExcepInfo,pvar) \ + ( (This)->lpVtbl -> CanHandleException(This,pExcepInfo,pvar) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICanHandleException_INTERFACE_DEFINED__ */ + + +#ifndef __IProvideRuntimeContext_INTERFACE_DEFINED__ +#define __IProvideRuntimeContext_INTERFACE_DEFINED__ + +/* interface IProvideRuntimeContext */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IProvideRuntimeContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("10E2414A-EC59-49d2-BC51-5ADD2C36FEBC") + IProvideRuntimeContext : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCurrentSourceContext( + /* [out] */ __RPC__out DWORD_PTR *pdwContext, + /* [out] */ __RPC__out VARIANT_BOOL *pfExecutingGlobalCode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProvideRuntimeContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProvideRuntimeContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProvideRuntimeContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProvideRuntimeContext * This); + + DECLSPEC_XFGVIRT(IProvideRuntimeContext, GetCurrentSourceContext) + HRESULT ( STDMETHODCALLTYPE *GetCurrentSourceContext )( + __RPC__in IProvideRuntimeContext * This, + /* [out] */ __RPC__out DWORD_PTR *pdwContext, + /* [out] */ __RPC__out VARIANT_BOOL *pfExecutingGlobalCode); + + END_INTERFACE + } IProvideRuntimeContextVtbl; + + interface IProvideRuntimeContext + { + CONST_VTBL struct IProvideRuntimeContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProvideRuntimeContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProvideRuntimeContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProvideRuntimeContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProvideRuntimeContext_GetCurrentSourceContext(This,pdwContext,pfExecutingGlobalCode) \ + ( (This)->lpVtbl -> GetCurrentSourceContext(This,pdwContext,pfExecutingGlobalCode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProvideRuntimeContext_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dispex_0000_0006 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif //DISPEX_H_ + + +extern RPC_IF_HANDLE __MIDL_itf_dispex_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dispex_0000_0006_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* [local] */ HRESULT STDMETHODCALLTYPE IDispatchEx_InvokeEx_Proxy( + IDispatchEx * This, + /* [annotation][in] */ + _In_ DISPID id, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][in] */ + _In_ DISPPARAMS *pdp, + /* [annotation][out] */ + _Out_opt_ VARIANT *pvarRes, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pei, + /* [annotation][unique][in] */ + _In_opt_ IServiceProvider *pspCaller); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IDispatchEx_InvokeEx_Stub( + __RPC__in IDispatchEx * This, + /* [in] */ DISPID id, + /* [in] */ LCID lcid, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in DISPPARAMS *pdp, + /* [out] */ __RPC__out VARIANT *pvarRes, + /* [out] */ __RPC__out EXCEPINFO *pei, + /* [unique][in] */ __RPC__in_opt IServiceProvider *pspCaller, + /* [in] */ UINT cvarRefArg, + /* [size_is][in] */ __RPC__in_ecount_full(cvarRefArg) UINT *rgiRefArg, + /* [size_is][out][in] */ __RPC__inout_ecount_full(cvarRefArg) VARIANT *rgvarRefArg); + + + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DispatcherQueue.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DispatcherQueue.h new file mode 100644 index 0000000000000000000000000000000000000000..18c93b51bc56e30802f265b3d5b367a1bd29cbdd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DispatcherQueue.h @@ -0,0 +1,98 @@ + +//---------------------------------------------------------------------------- +//---------------------------------------------------------------------------- +// +// DispatcherQueue.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contains DispatcherQueue declarations for Native C++ consumers. +// +//---------------------------------------------------------------------------- +//---------------------------------------------------------------------------- + +#pragma once + + +#include +typedef ABI::Windows::System::IDispatcherQueue * PDISPATCHERQUEUE; +typedef ABI::Windows::System::IDispatcherQueueController * PDISPATCHERQUEUECONTROLLER; + + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +enum DISPATCHERQUEUE_THREAD_APARTMENTTYPE +{ + DQTAT_COM_NONE = 0, + DQTAT_COM_ASTA = 1, + DQTAT_COM_STA = 2 +}; + + +enum DISPATCHERQUEUE_THREAD_TYPE +{ + DQTYPE_THREAD_DEDICATED = 1, + DQTYPE_THREAD_CURRENT = 2, +}; + + +struct DispatcherQueueOptions +{ + DWORD dwSize; // Size of the struct + DISPATCHERQUEUE_THREAD_TYPE threadType; // Thread affinity on which DispatcherQueueController is created. + DISPATCHERQUEUE_THREAD_APARTMENTTYPE apartmentType; // Initialize COM apartment on the new thread as ASTA or STA. Only relevant if threadType is DQTYPE_THREAD_DEDICATED +}; + + +//---------------------------------------------------------------------------- +// +// CreateDispatcherQueueController +// +// This is Win32 API to create a DispatcherQueueController instance. +// Passed in options will be required to configure the type of +// instance being created. +// +// If the options.threadType = DQTYPE_THREAD_DEDICATED then, +// DispatcherQueueController will be created on the dedicated thread. As part +// of the API we will also create the thread and create this object +// on it. It will also run the DispatcherQueue event loop on the new thread. +// +// PS: API will be blocked until it spawns a new thread and creates the +// DispatcherQueueController instance. Also specified COM apartment will +// be initialized on that thread. +// +// Event loop will be run on the background thread asynchronously to dispatch +// the pending task items on the new thread. +// +// +// if the options.threadType = DQTYPE_THREAD_CURRENT then, +// DispatcherQueueController instance is created on the current thread owned +// by the caller or some other module. API will throw if there already +// exists a DispatcherQueueController on this thread. +// +// It is the responsibility of the caller to run a NTUSER Message pump loop +// so as to dispatch DispatcherQueue's tasks onto this thread. +// +// Associated DispatcherQueue instance can be accessed as its property. +// +// Parameters: +// options - struct to configure the DispatcherQueueController initialization. +// +// dispatcherQueueController - An OUT parameter returning instance of +// DispatcherQueueController. +// +// Returns: +// HRESULT - S_OK on success, otherwise failure result. +// +//---------------------------------------------------------------------------- + +extern "C" HRESULT __declspec(dllexport) WINAPI +CreateDispatcherQueueController( + _In_ DispatcherQueueOptions options, + _Deref_out_ PDISPATCHERQUEUECONTROLLER * dispatcherQueueController); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dispex.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dispex.Idl new file mode 100644 index 0000000000000000000000000000000000000000..5f7cc1feda1eb438682ab49c81abd677d0ff4a8c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Dispex.Idl @@ -0,0 +1,315 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1997. +// +// Contents: IDispatchEx description +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// DispEx.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 1997 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//---------------------------------------------------------------------------=") +cpp_quote("// IDispatchEx Interfaces.") +cpp_quote("//") +cpp_quote("") +cpp_quote("#ifndef DISPEX_H_") +cpp_quote("#define DISPEX_H_") +cpp_quote("") +cpp_quote("#include ") +cpp_quote("") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +interface IDispatchEx; +interface IDispError; +interface IVariantChangeType; + +#ifndef DO_NO_IMPORTS +import "ocidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; +import "servprov.idl"; +#endif + +cpp_quote("") +cpp_quote("#include \"servprov.h\"") +cpp_quote("") +cpp_quote("#ifndef _NO_DISPATCHEX_GUIDS") +cpp_quote("") +cpp_quote("// {A6EF9860-C720-11d0-9337-00A0C90DCAA9}") +cpp_quote("DEFINE_GUID(IID_IDispatchEx, 0xa6ef9860, 0xc720, 0x11d0, 0x93, 0x37, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9);") +cpp_quote("") +cpp_quote("// {A6EF9861-C720-11d0-9337-00A0C90DCAA9}") +cpp_quote("DEFINE_GUID(IID_IDispError, 0xa6ef9861, 0xc720, 0x11d0, 0x93, 0x37, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9);") +cpp_quote("") +cpp_quote("// {A6EF9862-C720-11d0-9337-00A0C90DCAA9}") +cpp_quote("DEFINE_GUID(IID_IVariantChangeType, 0xa6ef9862, 0xc720, 0x11d0, 0x93, 0x37, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9);") +cpp_quote("") +cpp_quote("// {1F101481-BCCD-11d0-9336-00A0C90DCAA9}") +cpp_quote("DEFINE_GUID(SID_VariantConversion, 0x1f101481, 0xbccd, 0x11d0, 0x93, 0x36, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9);") +cpp_quote("") +cpp_quote("// {4717CC40-BCB9-11d0-9336-00A0C90DCAA9}") +cpp_quote("DEFINE_GUID(SID_GetCaller, 0x4717cc40, 0xbcb9, 0x11d0, 0x93, 0x36, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9);") +cpp_quote("") +cpp_quote("// {74A5040C-DD0C-48f0-AC85-194C3259180A}") +cpp_quote("DEFINE_GUID(SID_ProvideRuntimeContext, 0x74a5040c, 0xdd0c, 0x48f0, 0xac, 0x85, 0x19, 0x4c, 0x32, 0x59, 0x18, 0xa);") +cpp_quote("") +cpp_quote("// {10E2414A-EC59-49d2-BC51-5ADD2C36FEBC}") +cpp_quote("DEFINE_GUID(IID_IProvideRuntimeContext, 0x10e2414a, 0xec59, 0x49d2, 0xbc, 0x51, 0x5a, 0xdd, 0x2c, 0x36, 0xfe, 0xbc);") +cpp_quote("") +cpp_quote("// {CA04B7E6-0D21-11d1-8CC5-00C04FC2B085}") +cpp_quote("DEFINE_GUID(IID_IObjectIdentity, 0xca04b7e6, 0xd21, 0x11d1, 0x8c, 0xc5, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85);") +cpp_quote("") +cpp_quote("// {c5598e60-b307-11d1-b27d-006008c3fbfb}") +cpp_quote("DEFINE_GUID(IID_ICanHandleException, 0xc5598e60, 0xb307, 0x11d1, 0xb2, 0x7d, 0x0, 0x60, 0x08, 0xc3, 0xfb, 0xfb);") +cpp_quote("") +cpp_quote("#define SID_GetScriptSite IID_IActiveScriptSite") +cpp_quote("") +cpp_quote("#endif // _NO_DISPATCHEX_GUIDS") +cpp_quote("") + +cpp_quote("") +cpp_quote("#ifndef _NO_DISPATCHEX_CONSTS") +cpp_quote("") +cpp_quote("// Input flags for GetDispID") +cpp_quote("#define fdexNameCaseSensitive 0x00000001L") +cpp_quote("#define fdexNameEnsure 0x00000002L") +cpp_quote("#define fdexNameImplicit 0x00000004L") +cpp_quote("#define fdexNameCaseInsensitive 0x00000008L") +cpp_quote("#define fdexNameInternal 0x00000010L") +cpp_quote("#define fdexNameNoDynamicProperties 0x00000020L") +cpp_quote("") +cpp_quote("// Output flags for GetMemberProperties") +cpp_quote("#define fdexPropCanGet 0x00000001L") +cpp_quote("#define fdexPropCannotGet 0x00000002L") +cpp_quote("#define fdexPropCanPut 0x00000004L") +cpp_quote("#define fdexPropCannotPut 0x00000008L") +cpp_quote("#define fdexPropCanPutRef 0x00000010L") +cpp_quote("#define fdexPropCannotPutRef 0x00000020L") +cpp_quote("#define fdexPropNoSideEffects 0x00000040L") +cpp_quote("#define fdexPropDynamicType 0x00000080L") +cpp_quote("#define fdexPropCanCall 0x00000100L") +cpp_quote("#define fdexPropCannotCall 0x00000200L") +cpp_quote("#define fdexPropCanConstruct 0x00000400L") +cpp_quote("#define fdexPropCannotConstruct 0x00000800L") +cpp_quote("#define fdexPropCanSourceEvents 0x00001000L") +cpp_quote("#define fdexPropCannotSourceEvents 0x00002000L") +cpp_quote("") +cpp_quote("#define grfdexPropCanAll \\") +cpp_quote(" (fdexPropCanGet | fdexPropCanPut | fdexPropCanPutRef | \\") +cpp_quote(" fdexPropCanCall | fdexPropCanConstruct | fdexPropCanSourceEvents)") +cpp_quote("#define grfdexPropCannotAll \\") +cpp_quote(" (fdexPropCannotGet | fdexPropCannotPut | fdexPropCannotPutRef | \\") +cpp_quote(" fdexPropCannotCall | fdexPropCannotConstruct | fdexPropCannotSourceEvents)") +cpp_quote("#define grfdexPropExtraAll \\") +cpp_quote(" (fdexPropNoSideEffects | fdexPropDynamicType)") +cpp_quote("#define grfdexPropAll \\") +cpp_quote(" (grfdexPropCanAll | grfdexPropCannotAll | grfdexPropExtraAll)") +cpp_quote("") +cpp_quote("// Input flags for GetNextDispID") +cpp_quote("#define fdexEnumDefault 0x00000001L") +cpp_quote("#define fdexEnumAll 0x00000002L") +cpp_quote("") +cpp_quote("// Additional flags for Invoke - when object member is") +cpp_quote("// used as a constructor.") +cpp_quote("#define DISPATCH_CONSTRUCT 0x4000") +cpp_quote("") +cpp_quote("// Standard DISPIDs") +cpp_quote("#define DISPID_THIS (-613)") +cpp_quote("#define DISPID_STARTENUM DISPID_UNKNOWN") +cpp_quote("") +cpp_quote("#endif //_NO_DISPATCHEX_CONSTS") +cpp_quote("") + +[ + object, + uuid(A6EF9860-C720-11d0-9337-00A0C90DCAA9), + pointer_default(unique) +] +interface IDispatchEx : IDispatch + { + // NOTES: + // (*) grfdex can contain any subset of the bits + // { fdexNameCaseSensitive, fdexNameEnsure, fdexNameImplicit, fdexNameCaseSensitive }. + HRESULT GetDispID( + [in] BSTR bstrName, + [in] DWORD grfdex, + [out] DISPID *pid); + + // NOTES: + // (*) pvarRes, pei and pspCaller may be NULL. + // (*) When DISPATCH_METHOD is set in wFlags, there may be a "named + // parameter" for the "this" value. The dispID will be DISPID_THIS and + // it must be the first named parameter. + // (*) There is a new value for wFlags: DISPATCH_CONSTRUCT. This indicates + // that the item is being used as a constructor. + // (*) The legal values for wFlags are: + // DISPATCH_PROPERTYGET + // DISPATCH_METHOD + // DISPATCH_PROPERTYGET | DISPATCH_METHOD + // DISPATCH_PROPERTYPUT + // DISPATCH_PROPERTYPUTREF + // DISPATCH_PROPERTYPUT | DISPATCH_PROPERTYPUTREF + // DISPATCH_CONSTRUCT + // (*) IDispatchEx::Invoke should support the same values that + // IDispatchEx::InvokeEx supports (eg, DISPID_THIS, DISPATCH_CONSTRUCT). + [local] + HRESULT InvokeEx( + [in, annotation("_In_")] DISPID id, + [in, annotation("_In_")] LCID lcid, + [in, annotation("_In_")] WORD wFlags, + [in, annotation("_In_")] DISPPARAMS *pdp, + [out, annotation("_Out_opt_")] VARIANT *pvarRes, // Can be NULL. + [out, annotation("_Out_opt_")] EXCEPINFO *pei, // Can be NULL. + [in, unique, annotation("_In_opt_")] IServiceProvider *pspCaller); // Can be NULL. + + [call_as(InvokeEx)] + HRESULT RemoteInvokeEx( + [in] DISPID id, + [in] LCID lcid, + [in] DWORD dwFlags, // Hiword used for private marshalling flags. + [in] DISPPARAMS *pdp, + [out] VARIANT *pvarRes, + [out] EXCEPINFO *pei, + [in, unique] IServiceProvider *pspCaller, + [in] UINT cvarRefArg, + [in, size_is(cvarRefArg)] UINT *rgiRefArg, + [in, out, size_is(cvarRefArg)] VARIANT *rgvarRefArg); + + // NOTES: + // (*) grfdex may contain fdexNameCaseSensitive or fdexNameCaseInsensitive + // (*) If the member doesn't exist, return S_OK. + // (*) If the member exists but can't be deleted, return S_FALSE. + // (*) If the member is deleted, the DISPID still needs to be valid for + // GetNextDispID and if a member of the same name is recreated, the + // dispID should be the same. + HRESULT DeleteMemberByName([in] BSTR bstrName, [in] DWORD grfdex); + + // NOTES: + // (*) If the member doesn't exist, return S_OK. + // (*) If the member exists but can't be deleted, return S_FALSE. + // (*) If the member is deleted, the DISPID still needs to be valid for + // GetNextDispID and if a member of the same name is recreated, the + // dispID should be the same. + HRESULT DeleteMemberByDispID([in] DISPID id); + + HRESULT GetMemberProperties( + [in] DISPID id, + [in] DWORD grfdexFetch, + [out] DWORD *pgrfdex); + + HRESULT GetMemberName( + [in] DISPID id, + [out] BSTR *pbstrName); + + HRESULT GetNextDispID( + [in] DWORD grfdex, + [in] DISPID id, + [out] DISPID *pid); + + HRESULT GetNameSpaceParent([out] IUnknown **ppunk); + }; + + +[ + object, + uuid(A6EF9861-C720-11d0-9337-00A0C90DCAA9), + pointer_default(unique) +] +interface IDispError : IUnknown + { + HRESULT QueryErrorInfo( + [in] GUID guidErrorType, + [out] IDispError **ppde); + + HRESULT GetNext([out] IDispError **ppde); + + // EXCEPINFO information + HRESULT GetHresult([out] HRESULT *phr); + HRESULT GetSource([out] BSTR *pbstrSource); + HRESULT GetHelpInfo([out] BSTR *pbstrFileName, [out] DWORD *pdwContext); + HRESULT GetDescription([out] BSTR *pbstrDescription); + }; + + +[ + object, + uuid(A6EF9862-C720-11d0-9337-00A0C90DCAA9), + pointer_default(unique) +] +interface IVariantChangeType : IUnknown + { + // NOTES: + // (*) pvarDst and pvarSrc may be equal. + // (*) pvarDst should be initialized to a valid variant value. + // VariantClear will be called on it. + HRESULT ChangeType( + [in, out, unique] VARIANT *pvarDst, + [in, unique] VARIANT *pvarSrc, + [in] LCID lcid, + [in] VARTYPE vtNew); + }; + + +[ + object, + uuid(CA04B7E6-0D21-11d1-8CC5-00C04FC2B085), + pointer_default(unique) +] +interface IObjectIdentity : IUnknown +{ + HRESULT IsEqualObject( + [in] IUnknown *punk + ); +}; + +[ + object, + uuid(c5598e60-b307-11d1-b27d-006008c3fbfb), + pointer_default(unique) +] +interface ICanHandleException : IUnknown + { + //If a call to InvokeEx, or similar, results in an exception, the + //called method can use this interface to determine if the caller + //is capable of dealing with the exception. The first parameter is + //an EXCEPINFO structure containing the information that will be reported + //to the host if no error handlers are found. The second + //parameter is a value associated with the exception, such as the value + //thrown by a throw statement. This parameter may be NULL. + + //These values can be used by the caller to decide whether or + //not it can handle the exception. If the caller can handle the exception + //the function returns S_OK. Otherwise it returns E_FAIL. + + HRESULT CanHandleException([in] EXCEPINFO *pExcepInfo, [in] VARIANT *pvar); + }; + + +[ + object, + uuid(10E2414A-EC59-49d2-BC51-5ADD2C36FEBC), + pointer_default(unique) +] +interface IProvideRuntimeContext : IUnknown +{ + HRESULT GetCurrentSourceContext([out] DWORD_PTR* pdwContext, [out] VARIANT_BOOL *pfExecutingGlobalCode); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif //DISPEX_H_") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocObj.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocObj.Idl new file mode 100644 index 0000000000000000000000000000000000000000..8a1ee2e564b68cac1e528a122d9270b148882e30 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocObj.Idl @@ -0,0 +1,807 @@ +//+--------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation. All Rights Reserved. +// +// Contents: OLE Document Object interfaces +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// DocObj.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("// OLE Document Object Interfaces.") + + +import "ocidl.idl"; +import "objidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; +import "servprov.idl"; + +/* +#define HWND UserHWND +#define HACCEL UserHACCEL +#define HDC UserHDC +#define HFONT UserHFONT +#define MSG UserMSG +#define BSTR UserBSTR +#define EXCEPINFO UserEXCEPINFO +#define VARIANT UserVARIANT +*/ + +interface IOleDocument; +interface IOleDocumentSite; +interface IOleDocumentView; +interface IEnumOleDocumentViews; +interface IContinueCallback; +interface IPrint; +interface IOleCommandTarget; +interface IProtectedModeMenuServices; + +cpp_quote("") +cpp_quote("////////////////////////////////////////////////////////////////////////////") +cpp_quote("// Interface Definitions") + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995-1998. +// +// Contents: IOleDocument interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPOLEDOCUMENT_DEFINED") +cpp_quote("#define _LPOLEDOCUMENT_DEFINED") +[ + object, + uuid(b722bcc5-4e68-101b-a2bc-00aa00404770), + pointer_default(unique) +] +interface IOleDocument : IUnknown +{ + typedef [unique] IOleDocument *LPOLEDOCUMENT; + + typedef enum { + DOCMISC_CANCREATEMULTIPLEVIEWS = 1, + DOCMISC_SUPPORTCOMPLEXRECTANGLES = 2, + DOCMISC_CANTOPENEDIT = 4, // fails the IOleDocumentView::Open method + DOCMISC_NOFILESUPPORT = 8, // does not support read/writing to a file + } DOCMISC; + + + HRESULT CreateView( + [in, unique] IOleInPlaceSite *pIPSite, + [in, unique] IStream *pstm, + [in] DWORD dwReserved, + [out] IOleDocumentView **ppView); + + HRESULT GetDocMiscStatus( + [out] DWORD *pdwStatus); + + HRESULT EnumViews( + [out] IEnumOleDocumentViews **ppEnum, + [out] IOleDocumentView **ppView); +} +cpp_quote("#endif") + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995-1998. +// +// Contents: IOleDocumentSite interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPOLEDOCUMENTSITE_DEFINED") +cpp_quote("#define _LPOLEDOCUMENTSITE_DEFINED") +[ + object, + uuid(b722bcc7-4e68-101b-a2bc-00aa00404770), + pointer_default(unique) +] +interface IOleDocumentSite : IUnknown +{ + typedef [unique] IOleDocumentSite *LPOLEDOCUMENTSITE; + + HRESULT ActivateMe( + [in] IOleDocumentView *pViewToActivate); +} +cpp_quote("#endif") + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995-1998. +// +// Contents: IOleDocumentView interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPOLEDOCUMENTVIEW_DEFINED") +cpp_quote("#define _LPOLEDOCUMENTVIEW_DEFINED") +[ + object, + uuid(b722bcc6-4e68-101b-a2bc-00aa00404770), + pointer_default(unique) +] +interface IOleDocumentView : IUnknown +{ + typedef [unique] IOleDocumentView *LPOLEDOCUMENTVIEW; + + HRESULT SetInPlaceSite( + [in, unique] IOleInPlaceSite *pIPSite); + + HRESULT GetInPlaceSite( + [out] IOleInPlaceSite **ppIPSite); + + HRESULT GetDocument( + [out] IUnknown **ppunk); + + [input_sync] + HRESULT SetRect( + [in] LPRECT prcView); + + HRESULT GetRect( + [out] LPRECT prcView); + + [input_sync] + HRESULT SetRectComplex( + [in, unique] LPRECT prcView, + [in, unique] LPRECT prcHScroll, + [in, unique] LPRECT prcVScroll, + [in, unique] LPRECT prcSizeBox); + + HRESULT Show( + [in] BOOL fShow); + + HRESULT UIActivate( + [in] BOOL fUIActivate); + + HRESULT Open(void); + + HRESULT CloseView([in] DWORD dwReserved); + + HRESULT SaveViewState( + [in] LPSTREAM pstm); + + HRESULT ApplyViewState( + [in] LPSTREAM pstm); + + HRESULT Clone( + [in] IOleInPlaceSite *pIPSiteNew, + [out] IOleDocumentView **ppViewNew); +} +cpp_quote("#endif") + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995-1998. +// +// Contents: IEnumOleDocumentViews interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPENUMOLEDOCUMENTVIEWS_DEFINED") +cpp_quote("#define _LPENUMOLEDOCUMENTVIEWS_DEFINED") +[ + object, + uuid(b722bcc8-4e68-101b-a2bc-00aa00404770), + pointer_default(unique) +] +interface IEnumOleDocumentViews : IUnknown +{ + + typedef [unique] IEnumOleDocumentViews *LPENUMOLEDOCUMENTVIEWS; + + [local] + HRESULT __stdcall Next( + [in] ULONG cViews, + [out] IOleDocumentView **rgpView, + [out] ULONG *pcFetched); + + [call_as(Next)] + HRESULT __stdcall RemoteNext( + [in] ULONG cViews, + [out, size_is(cViews), length_is(*pcFetched)] + IOleDocumentView **rgpView, + [out] ULONG *pcFetched); + + HRESULT Skip( + [in] ULONG cViews); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumOleDocumentViews **ppEnum); +} +cpp_quote("#endif") + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995-1998. +// +// Contents: IContinueCallback interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPCONTINUECALLBACK_DEFINED") +cpp_quote("#define _LPCONTINUECALLBACK_DEFINED") +[ + object, + uuid(b722bcca-4e68-101b-a2bc-00aa00404770), + pointer_default(unique) +] +interface IContinueCallback : IUnknown +{ + typedef [unique] IContinueCallback *LPCONTINUECALLBACK; + + HRESULT FContinue(); + + HRESULT FContinuePrinting( + [in] LONG nCntPrinted, + [in] LONG nCurPage, + [in, unique] wchar_t * pwszPrintStatus); +} +cpp_quote("#endif") + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995-1998. +// +// Contents: IPrint interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPPRINT_DEFINED") +cpp_quote("#define _LPPRINT_DEFINED") +[ + object, + uuid(b722bcc9-4e68-101b-a2bc-00aa00404770), + pointer_default(unique) +] +interface IPrint : IUnknown +{ + typedef [unique] IPrint *LPPRINT; + + typedef enum + { + PRINTFLAG_MAYBOTHERUSER = 1, + PRINTFLAG_PROMPTUSER = 2, + PRINTFLAG_USERMAYCHANGEPRINTER = 4, + PRINTFLAG_RECOMPOSETODEVICE = 8, + PRINTFLAG_DONTACTUALLYPRINT = 16, + PRINTFLAG_FORCEPROPERTIES = 32, + PRINTFLAG_PRINTTOFILE = 64 + } PRINTFLAG; + + typedef struct tagPAGERANGE + { + LONG nFromPage; + LONG nToPage; + } PAGERANGE; + + typedef struct tagPAGESET + { + ULONG cbStruct; + BOOL fOddPages; + BOOL fEvenPages; + ULONG cPageRange; + [size_is(cPageRange)] + PAGERANGE rgPages[]; + } PAGESET; + + cpp_quote("#define PAGESET_TOLASTPAGE ((WORD)(-1L))") + + HRESULT SetInitialPageNum( + [in] LONG nFirstPage); + + HRESULT GetPageInfo( + [out] LONG *pnFirstPage, + [out] LONG *pcPages); + + [local] + HRESULT __stdcall Print( + [in] DWORD grfFlags, + [in, out] DVTARGETDEVICE **pptd, + [in, out] PAGESET ** ppPageSet, + [in, out, unique] STGMEDIUM * pstgmOptions, + [in] IContinueCallback *pcallback, + [in] LONG nFirstPage, + [out] LONG *pcPagesPrinted, + [out] LONG *pnLastPage); + + [call_as(Print)] + HRESULT __stdcall RemotePrint( + [in] DWORD grfFlags, + [in, out] DVTARGETDEVICE **pptd, + [in, out] PAGESET ** pppageset, + [in, out, unique] RemSTGMEDIUM * pstgmOptions, + [in] IContinueCallback * pcallback, + [in] LONG nFirstPage, + [out] LONG * pcPagesPrinted, + [out] LONG * pnLastPage); +} +cpp_quote("#endif") + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995-1998. +// +// Contents: IOleCommandTarget interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPOLECOMMANDTARGET_DEFINED") +cpp_quote("#define _LPOLECOMMANDTARGET_DEFINED") +[ + //local, + object, + uuid(b722bccb-4e68-101b-a2bc-00aa00404770), + pointer_default(unique) +] +interface IOleCommandTarget : IUnknown +{ + typedef [unique] IOleCommandTarget *LPOLECOMMANDTARGET; + + typedef enum OLECMDF + { + OLECMDF_SUPPORTED = 0x00000001, + OLECMDF_ENABLED = 0x00000002, + OLECMDF_LATCHED = 0x00000004, + OLECMDF_NINCHED = 0x00000008, + OLECMDF_INVISIBLE = 0x00000010, + OLECMDF_DEFHIDEONCTXTMENU = 0x00000020, + } OLECMDF; + + + typedef struct _tagOLECMD { + ULONG cmdID; + DWORD cmdf; + } OLECMD; + + typedef struct _tagOLECMDTEXT{ + DWORD cmdtextf; + ULONG cwActual; + ULONG cwBuf; /* size in wide chars of the buffer for text */ + [size_is(cwBuf)] + wchar_t rgwz[]; /* Array into which callee writes the text */ + } OLECMDTEXT; + + typedef enum OLECMDTEXTF + { + OLECMDTEXTF_NONE = 0, + OLECMDTEXTF_NAME = 1, + OLECMDTEXTF_STATUS = 2, + } OLECMDTEXTF; + + typedef enum OLECMDEXECOPT + { + OLECMDEXECOPT_DODEFAULT = 0, + OLECMDEXECOPT_PROMPTUSER = 1, + OLECMDEXECOPT_DONTPROMPTUSER = 2, + OLECMDEXECOPT_SHOWHELP = 3 + } OLECMDEXECOPT; + +cpp_quote("/* OLECMDID_STOPDOWNLOAD and OLECMDID_ALLOWUILESSSAVEAS are supported for QueryStatus Only */") + + typedef enum OLECMDID { + OLECMDID_OPEN = 1, + OLECMDID_NEW = 2, + OLECMDID_SAVE = 3, + OLECMDID_SAVEAS = 4, + OLECMDID_SAVECOPYAS = 5, + OLECMDID_PRINT = 6, + OLECMDID_PRINTPREVIEW = 7, + OLECMDID_PAGESETUP = 8, + OLECMDID_SPELL = 9, + OLECMDID_PROPERTIES = 10, + OLECMDID_CUT = 11, + OLECMDID_COPY = 12, + OLECMDID_PASTE = 13, + OLECMDID_PASTESPECIAL = 14, + OLECMDID_UNDO = 15, + OLECMDID_REDO = 16, + OLECMDID_SELECTALL = 17, + OLECMDID_CLEARSELECTION = 18, + OLECMDID_ZOOM = 19, + OLECMDID_GETZOOMRANGE = 20, + OLECMDID_UPDATECOMMANDS = 21, + OLECMDID_REFRESH = 22, + OLECMDID_STOP = 23, + OLECMDID_HIDETOOLBARS = 24, + OLECMDID_SETPROGRESSMAX = 25, + OLECMDID_SETPROGRESSPOS = 26, + OLECMDID_SETPROGRESSTEXT = 27, + OLECMDID_SETTITLE = 28, + OLECMDID_SETDOWNLOADSTATE = 29, + OLECMDID_STOPDOWNLOAD = 30, + OLECMDID_ONTOOLBARACTIVATED = 31, + OLECMDID_FIND = 32, + OLECMDID_DELETE = 33, + OLECMDID_HTTPEQUIV = 34, + OLECMDID_HTTPEQUIV_DONE = 35, + OLECMDID_ENABLE_INTERACTION = 36, + OLECMDID_ONUNLOAD = 37, + OLECMDID_PROPERTYBAG2 = 38, + OLECMDID_PREREFRESH = 39, + OLECMDID_SHOWSCRIPTERROR = 40, + OLECMDID_SHOWMESSAGE = 41, + OLECMDID_SHOWFIND = 42, + OLECMDID_SHOWPAGESETUP = 43, + OLECMDID_SHOWPRINT = 44, + OLECMDID_CLOSE = 45, + OLECMDID_ALLOWUILESSSAVEAS = 46, + OLECMDID_DONTDOWNLOADCSS = 47, + OLECMDID_UPDATEPAGESTATUS = 48, + OLECMDID_PRINT2 = 49, + OLECMDID_PRINTPREVIEW2 = 50, + OLECMDID_SETPRINTTEMPLATE = 51, + OLECMDID_GETPRINTTEMPLATE = 52, + OLECMDID_PAGEACTIONBLOCKED = 55, + OLECMDID_PAGEACTIONUIQUERY = 56, + OLECMDID_FOCUSVIEWCONTROLS = 57, + OLECMDID_FOCUSVIEWCONTROLSQUERY = 58, + OLECMDID_SHOWPAGEACTIONMENU = 59, + OLECMDID_ADDTRAVELENTRY = 60, + OLECMDID_UPDATETRAVELENTRY = 61, + OLECMDID_UPDATEBACKFORWARDSTATE = 62, + OLECMDID_OPTICAL_ZOOM = 63, + OLECMDID_OPTICAL_GETZOOMRANGE = 64, + OLECMDID_WINDOWSTATECHANGED = 65, + OLECMDID_ACTIVEXINSTALLSCOPE = 66, + OLECMDID_UPDATETRAVELENTRY_DATARECOVERY = 67, + OLECMDID_SHOWTASKDLG = 68, + OLECMDID_POPSTATEEVENT = 69, + OLECMDID_VIEWPORT_MODE = 70, + OLECMDID_LAYOUT_VIEWPORT_WIDTH = 71, + OLECMDID_VISUAL_VIEWPORT_EXCLUDE_BOTTOM = 72, + OLECMDID_USER_OPTICAL_ZOOM = 73, + OLECMDID_PAGEAVAILABLE = 74, + OLECMDID_GETUSERSCALABLE = 75, + OLECMDID_UPDATE_CARET = 76, + OLECMDID_ENABLE_VISIBILITY = 77, + OLECMDID_MEDIA_PLAYBACK = 78, + OLECMDID_SETFAVICON = 79, + OLECMDID_SET_HOST_FULLSCREENMODE = 80, + OLECMDID_EXITFULLSCREEN = 81, + OLECMDID_SCROLLCOMPLETE = 82, + OLECMDID_ONBEFOREUNLOAD = 83, + OLECMDID_SHOWMESSAGE_BLOCKABLE = 84, + OLECMDID_SHOWTASKDLG_BLOCKABLE = 85, + } OLECMDID; + +typedef enum MEDIAPLAYBACK_STATE { + MEDIAPLAYBACK_RESUME = 0, + MEDIAPLAYBACK_PAUSE = 1, + MEDIAPLAYBACK_PAUSE_AND_SUSPEND = 2, + MEDIAPLAYBACK_RESUME_FROM_SUSPEND = 3, + } MEDIAPLAYBACK_STATE; + +/* error codes */ +cpp_quote("#define OLECMDERR_E_FIRST (OLE_E_LAST+1)") +cpp_quote("#define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST)") +cpp_quote("#define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST+1)") +cpp_quote("#define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST+2)") +cpp_quote("#define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST+3)") +cpp_quote("#define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST+4)") + +cpp_quote("#define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST") +cpp_quote("#define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED") +cpp_quote("#define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED") +cpp_quote("#define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP") +cpp_quote("#define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED") +cpp_quote("#define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP") + +/* taskdlg IDs */ +cpp_quote("#define OLECMD_TASKDLGID_ONBEFOREUNLOAD 1") + +/* indexes into SafeArray passed as pvarargIn */ +cpp_quote("#if(NTDDI_VERSION >= NTDDI_WINXPSP2)") +cpp_quote("#define OLECMDARGINDEX_SHOWPAGEACTIONMENU_HWND 0") +cpp_quote("#define OLECMDARGINDEX_SHOWPAGEACTIONMENU_X 1") +cpp_quote("#define OLECMDARGINDEX_SHOWPAGEACTIONMENU_Y 2") +cpp_quote("#define OLECMDARGINDEX_ACTIVEXINSTALL_PUBLISHER 0") +cpp_quote("#define OLECMDARGINDEX_ACTIVEXINSTALL_DISPLAYNAME 1") +cpp_quote("#define OLECMDARGINDEX_ACTIVEXINSTALL_CLSID 2") +cpp_quote("#define OLECMDARGINDEX_ACTIVEXINSTALL_INSTALLSCOPE 3") +cpp_quote("#define OLECMDARGINDEX_ACTIVEXINSTALL_SOURCEURL 4") + +/* Available install scopes */ +cpp_quote("#define INSTALL_SCOPE_INVALID 0") +cpp_quote("#define INSTALL_SCOPE_MACHINE 1") +cpp_quote("#define INSTALL_SCOPE_USER 2") + + + typedef enum IGNOREMIME { + IGNOREMIME_PROMPT = 0x00000001, + IGNOREMIME_TEXT = 0x00000002, + } IGNOREMIME; + + typedef enum WPCSETTING { + WPCSETTING_LOGGING_ENABLED = 0x00000001, + WPCSETTING_FILEDOWNLOAD_BLOCKED = 0x00000002, + } WPCSETTING; +cpp_quote("#endif") + + [input_sync] + HRESULT QueryStatus( + [in, unique] const GUID *pguidCmdGroup, + [in] ULONG cCmds, + [size_is(cCmds)] + [in, out] OLECMD prgCmds[], + [in, out, unique] OLECMDTEXT *pCmdText); + + + HRESULT Exec( + [in, unique] const GUID *pguidCmdGroup, + [in] DWORD nCmdID, + [in] DWORD nCmdexecopt, + [in, unique] VARIANT *pvaIn, + [in, out, unique] VARIANT *pvaOut); +} +cpp_quote("#endif") + +cpp_quote("typedef enum") +cpp_quote("{") +cpp_quote(" OLECMDIDF_REFRESH_NORMAL = 0,") +cpp_quote(" OLECMDIDF_REFRESH_IFEXPIRED = 1,") +cpp_quote(" OLECMDIDF_REFRESH_CONTINUE = 2,") +cpp_quote(" OLECMDIDF_REFRESH_COMPLETELY = 3,") +cpp_quote(" OLECMDIDF_REFRESH_NO_CACHE = 4,") +cpp_quote(" OLECMDIDF_REFRESH_RELOAD = 5,") +cpp_quote(" OLECMDIDF_REFRESH_LEVELMASK = 0x00FF,") +cpp_quote(" OLECMDIDF_REFRESH_CLEARUSERINPUT = 0x1000,") +cpp_quote("#if(NTDDI_VERSION >= NTDDI_WINXPSP2)") +cpp_quote(" OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000,") +cpp_quote(" OLECMDIDF_REFRESH_THROUGHSCRIPT = 0x4000,") +cpp_quote(" OLECMDIDF_REFRESH_SKIPBEFOREUNLOADEVENT = 0x8000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_ACTIVEXINSTALL = 0x00010000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_FILEDOWNLOAD = 0x00020000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_LOCALMACHINE = 0x00040000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_POPUPWINDOW = 0x00080000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNLOCALMACHINE = 0x00100000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNTRUSTED = 0x00200000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNINTRANET = 0x00400000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNINTERNET = 0x00800000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNRESTRICTED = 0x01000000,") +cpp_quote("#elif(NTDDI_VERSION >= NTDDI_WINXP)") +cpp_quote(" OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000,") +cpp_quote(" OLECMDIDF_REFRESH_THROUGHSCRIPT = 0x4000,") +cpp_quote("#else") +cpp_quote(" OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000,") +cpp_quote("#endif") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_MIXEDCONTENT = 0x02000000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_INVALID_CERT = 0x04000000,") +cpp_quote(" OLECMDIDF_REFRESH_PAGEACTION_ALLOW_VERSION = 0x08000000,") + +cpp_quote("} OLECMDID_REFRESHFLAG;") + +cpp_quote("#if(NTDDI_VERSION >= NTDDI_WINXPSP2)") +cpp_quote("typedef enum") +cpp_quote("{") +cpp_quote(" OLECMDIDF_PAGEACTION_FILEDOWNLOAD = 0x00000001,") // File download (e.g. exe) was attempted and blocked +cpp_quote(" OLECMDIDF_PAGEACTION_ACTIVEXINSTALL = 0x00000002,") // Blocked due to default handling of code downloads +cpp_quote(" OLECMDIDF_PAGEACTION_ACTIVEXTRUSTFAIL = 0x00000004,") // Blocked due to publisher being untrusted +cpp_quote(" OLECMDIDF_PAGEACTION_ACTIVEXUSERDISABLE = 0x00000008,") // Blocked due to explicit disabling of clsid by user +cpp_quote(" OLECMDIDF_PAGEACTION_ACTIVEXDISALLOW = 0x00000010,") // Blocked due to security settings disabling ActiveX +cpp_quote(" OLECMDIDF_PAGEACTION_ACTIVEXUNSAFE = 0x00000020,") // Blocked due to unsafe init or scripting +cpp_quote(" OLECMDIDF_PAGEACTION_POPUPWINDOW = 0x00000040,") // Popup window was blocked +cpp_quote(" OLECMDIDF_PAGEACTION_LOCALMACHINE = 0x00000080,") // Local machine zone action +cpp_quote(" OLECMDIDF_PAGEACTION_MIMETEXTPLAIN = 0x00000100,") // Mime text/plain action +cpp_quote(" OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE = 0x00000200,") // Site navigated after having blocked content +cpp_quote(" OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE_ACTIVEXINSTALL = 0x00000200,") // Site navigated after having blocked install +cpp_quote(" OLECMDIDF_PAGEACTION_PROTLOCKDOWNLOCALMACHINE = 0x00000400,") // Protocol Lockdown action for LocalMachine +cpp_quote(" OLECMDIDF_PAGEACTION_PROTLOCKDOWNTRUSTED = 0x00000800,") // Protocol Lockdown action for Intranet +cpp_quote(" OLECMDIDF_PAGEACTION_PROTLOCKDOWNINTRANET = 0x00001000,") // Protocol Lockdown action for Trusted +cpp_quote(" OLECMDIDF_PAGEACTION_PROTLOCKDOWNINTERNET = 0x00002000,") // Protocol Lockdown action for Internet +cpp_quote(" OLECMDIDF_PAGEACTION_PROTLOCKDOWNRESTRICTED = 0x00004000,") // Protocol Lockdown action for Untrusted +cpp_quote(" OLECMDIDF_PAGEACTION_PROTLOCKDOWNDENY = 0x00008000,") // Protocol Lockdown action was denied. +cpp_quote(" OLECMDIDF_PAGEACTION_POPUPALLOWED = 0x00010000,") // Popup windows are allowed +cpp_quote(" OLECMDIDF_PAGEACTION_SCRIPTPROMPT = 0x00020000,") // Blocked due to script prompting the user +cpp_quote(" OLECMDIDF_PAGEACTION_ACTIVEXUSERAPPROVAL = 0x00040000,") // Blocked due to user approval needed +cpp_quote(" OLECMDIDF_PAGEACTION_MIXEDCONTENT = 0x00080000,") // Blocked due to insecure content on a secure page +cpp_quote(" OLECMDIDF_PAGEACTION_INVALID_CERT = 0x00100000,") // Blocked due to certificate error +cpp_quote(" OLECMDIDF_PAGEACTION_INTRANETZONEREQUEST = 0x00200000,") // Attempted map to intranet when no intranet detected +cpp_quote(" OLECMDIDF_PAGEACTION_XSSFILTERED = 0x00400000,") // Notification that a XSS was detected and has been filtered +cpp_quote(" OLECMDIDF_PAGEACTION_SPOOFABLEIDNHOST = 0x00800000,") // Goldbar for IDN +cpp_quote(" OLECMDIDF_PAGEACTION_ACTIVEX_EPM_INCOMPATIBLE = 0x01000000,") // Blocked activex due to incompatibility to enhanced protected mode +cpp_quote(" OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE_ACTIVEXUSERAPPROVAL = 0x02000000,") // Site navigated after having blocked user approval +cpp_quote(" OLECMDIDF_PAGEACTION_WPCBLOCKED = 0x04000000,") // Blocked subcontent due to Parental Controls restrictions +cpp_quote(" OLECMDIDF_PAGEACTION_WPCBLOCKED_ACTIVEX = 0x08000000,") // Blocked activex due to Parental Controls restrictions +cpp_quote(" OLECMDIDF_PAGEACTION_EXTENSION_COMPAT_BLOCKED = 0x10000000,") // Blocked due to extension not being UIPI Compatible +cpp_quote(" OLECMDIDF_PAGEACTION_NORESETACTIVEX = 0x20000000,") // In a reset, don't reset ActiveX install/approve data +cpp_quote(" OLECMDIDF_PAGEACTION_GENERIC_STATE = 0x40000000,") // Flag contains state driven goldbar events as apposed to event driven +cpp_quote(" OLECMDIDF_PAGEACTION_RESET = (int) 0x80000000,") // Flags reset +cpp_quote("} OLECMDID_PAGEACTIONFLAG;") + +cpp_quote("typedef enum") +cpp_quote("{") +cpp_quote(" OLECMDIDF_BROWSERSTATE_EXTENSIONSOFF = 0x00000001,") // Extensions are Turned Off +cpp_quote(" OLECMDIDF_BROWSERSTATE_IESECURITY = 0x00000002,") // Note: this is just a warning that comes up if IE zone settings + // are considered "unsecure". +cpp_quote(" OLECMDIDF_BROWSERSTATE_PROTECTEDMODE_OFF = 0x00000004,") // Displays when user switches off protected mode +cpp_quote(" OLECMDIDF_BROWSERSTATE_RESET = 0x00000008,") // Flags reset +cpp_quote(" OLECMDIDF_BROWSERSTATE_REQUIRESACTIVEX = 0x00000010,") // Displays when a site requires blocked ActiveX in App-style IE +cpp_quote(" OLECMDIDF_BROWSERSTATE_DESKTOPHTMLDIALOG = 0x00000020,") // The site requires desktop IE to display its dialogs +cpp_quote(" OLECMDIDF_BROWSERSTATE_BLOCKEDVERSION = 0x00000040,") // The site attempted to load an outdated control +cpp_quote("} OLECMDID_BROWSERSTATEFLAG;") + +cpp_quote("typedef enum") +cpp_quote("{") +cpp_quote(" OLECMDIDF_OPTICAL_ZOOM_NOPERSIST = 0x00000001,") // Don't persist the zoom state being set +//;begin_internal +// COMPAT: Avoid adding new flag values that overlap with +// OLECMDEXECOPT_*. +//;end_internal +cpp_quote(" OLECMDIDF_OPTICAL_ZOOM_NOLAYOUT = 0x00000010,") // Pure optical, not layout +cpp_quote(" OLECMDIDF_OPTICAL_ZOOM_NOTRANSIENT = 0x00000020,") // Mark the zoom state as non-transient so that the zoom state does not get reset during navigation +cpp_quote(" OLECMDIDF_OPTICAL_ZOOM_RELOADFORNEWTAB = 0x00000040,") // Reload the zoom just as it would for a new tab +cpp_quote("} OLECMDID_OPTICAL_ZOOMFLAG;") + +cpp_quote("typedef enum") +cpp_quote("{") +cpp_quote(" PAGEACTION_UI_DEFAULT = 0,") +cpp_quote(" PAGEACTION_UI_MODAL = 1,") +cpp_quote(" PAGEACTION_UI_MODELESS = 2,") +cpp_quote(" PAGEACTION_UI_SILENT = 3,") +cpp_quote("} PAGEACTION_UI;") + + + +cpp_quote("#endif") +// The low order word contains the current state of the window. +// The mask in the high order word indicates which bits in the low order word have been initialized + +cpp_quote("typedef enum") +cpp_quote("{") +cpp_quote(" OLECMDIDF_WINDOWSTATE_USERVISIBLE = 0x00000001,") // The object is in the active tab and the top level window is not minimized +cpp_quote(" OLECMDIDF_WINDOWSTATE_ENABLED = 0x00000002,") // The top level window is enabled +cpp_quote(" OLECMDIDF_WINDOWSTATE_USERVISIBLE_VALID = 0x00010000,") +cpp_quote(" OLECMDIDF_WINDOWSTATE_ENABLED_VALID = 0x00020000,") +cpp_quote("} OLECMDID_WINDOWSTATE_FLAG;") + + +cpp_quote("typedef enum") +cpp_quote("{") +cpp_quote(" OLECMDIDF_VIEWPORTMODE_FIXED_LAYOUT_WIDTH = 0x00000001,") // The layout viewport has an explicitly set width, as opposed to matching the visual viewport width. +cpp_quote(" OLECMDIDF_VIEWPORTMODE_EXCLUDE_VISUAL_BOTTOM = 0x00000002,") // The visual viewport is shorter than the full view size by a fixed amount. +cpp_quote(" OLECMDIDF_VIEWPORTMODE_FIXED_LAYOUT_WIDTH_VALID = 0x00010000,") +cpp_quote(" OLECMDIDF_VIEWPORTMODE_EXCLUDE_VISUAL_BOTTOM_VALID = 0x00020000,") +cpp_quote("} OLECMDID_VIEWPORT_MODE_FLAG;") + + +cpp_quote("") +cpp_quote("////////////////////////////////////////////////////////////////////////////") +cpp_quote("// Aliases to original office-compatible names") +cpp_quote("#define IMsoDocument IOleDocument") +cpp_quote("#define IMsoDocumentSite IOleDocumentSite") +cpp_quote("#define IMsoView IOleDocumentView") +cpp_quote("#define IEnumMsoView IEnumOleDocumentViews") +cpp_quote("#define IMsoCommandTarget IOleCommandTarget") +cpp_quote("#define LPMSODOCUMENT LPOLEDOCUMENT") +cpp_quote("#define LPMSODOCUMENTSITE LPOLEDOCUMENTSITE") +cpp_quote("#define LPMSOVIEW LPOLEDOCUMENTVIEW") +cpp_quote("#define LPENUMMSOVIEW LPENUMOLEDOCUMENTVIEWS") +cpp_quote("#define LPMSOCOMMANDTARGET LPOLECOMMANDTARGET") +cpp_quote("#define MSOCMD OLECMD") +cpp_quote("#define MSOCMDTEXT OLECMDTEXT") +cpp_quote("#define IID_IMsoDocument IID_IOleDocument") +cpp_quote("#define IID_IMsoDocumentSite IID_IOleDocumentSite") +cpp_quote("#define IID_IMsoView IID_IOleDocumentView") +cpp_quote("#define IID_IEnumMsoView IID_IEnumOleDocumentViews") +cpp_quote("#define IID_IMsoCommandTarget IID_IOleCommandTarget") +cpp_quote("#define MSOCMDF_SUPPORTED OLECMDF_SUPPORTED") +cpp_quote("#define MSOCMDF_ENABLED OLECMDF_ENABLED") +cpp_quote("#define MSOCMDF_LATCHED OLECMDF_LATCHED") +cpp_quote("#define MSOCMDF_NINCHED OLECMDF_NINCHED") +cpp_quote("#define MSOCMDTEXTF_NONE OLECMDTEXTF_NONE") +cpp_quote("#define MSOCMDTEXTF_NAME OLECMDTEXTF_NAME") +cpp_quote("#define MSOCMDTEXTF_STATUS OLECMDTEXTF_STATUS") +cpp_quote("#define MSOCMDEXECOPT_DODEFAULT OLECMDEXECOPT_DODEFAULT") +cpp_quote("#define MSOCMDEXECOPT_PROMPTUSER OLECMDEXECOPT_PROMPTUSER") +cpp_quote("#define MSOCMDEXECOPT_DONTPROMPTUSER OLECMDEXECOPT_DONTPROMPTUSER") +cpp_quote("#define MSOCMDEXECOPT_SHOWHELP OLECMDEXECOPT_SHOWHELP") +cpp_quote("#define MSOCMDID_OPEN OLECMDID_OPEN") +cpp_quote("#define MSOCMDID_NEW OLECMDID_NEW") +cpp_quote("#define MSOCMDID_SAVE OLECMDID_SAVE") +cpp_quote("#define MSOCMDID_SAVEAS OLECMDID_SAVEAS") +cpp_quote("#define MSOCMDID_SAVECOPYAS OLECMDID_SAVECOPYAS") +cpp_quote("#define MSOCMDID_PRINT OLECMDID_PRINT") +cpp_quote("#define MSOCMDID_PRINTPREVIEW OLECMDID_PRINTPREVIEW") +cpp_quote("#define MSOCMDID_PAGESETUP OLECMDID_PAGESETUP") +cpp_quote("#define MSOCMDID_SPELL OLECMDID_SPELL") +cpp_quote("#define MSOCMDID_PROPERTIES OLECMDID_PROPERTIES") +cpp_quote("#define MSOCMDID_CUT OLECMDID_CUT") +cpp_quote("#define MSOCMDID_COPY OLECMDID_COPY") +cpp_quote("#define MSOCMDID_PASTE OLECMDID_PASTE") +cpp_quote("#define MSOCMDID_PASTESPECIAL OLECMDID_PASTESPECIAL") +cpp_quote("#define MSOCMDID_UNDO OLECMDID_UNDO") +cpp_quote("#define MSOCMDID_REDO OLECMDID_REDO") +cpp_quote("#define MSOCMDID_SELECTALL OLECMDID_SELECTALL") +cpp_quote("#define MSOCMDID_CLEARSELECTION OLECMDID_CLEARSELECTION") +cpp_quote("#define MSOCMDID_ZOOM OLECMDID_ZOOM") +cpp_quote("#define MSOCMDID_GETZOOMRANGE OLECMDID_GETZOOMRANGE") + +cpp_quote("EXTERN_C const GUID SID_SContainerDispatch;") + + +// +// IZoomEvents +// +// Notifies hosts of changes in the zoom state. Hosts should implement +// this interface on their IOleClientSite object +// +[ + object, + uuid(41B68150-904C-4e17-A0BA-A438182E359D), + pointer_default(unique) +] +interface IZoomEvents : IUnknown +{ + HRESULT OnZoomPercentChanged([in] ULONG ulZoomPercent); +}; + + +// +// IProtectFocus +// +// Queries for permission to grab the focus when loading the page +// or when script attempts to focus an element. Hosts should respond to +// a QueryService for SID_SProtectFocus +// +[ + object, + uuid(d81f90a3-8156-44f7-ad28-5abb87003274), + pointer_default(unique), +] +interface IProtectFocus : IUnknown +{ + HRESULT AllowFocusChange([out] BOOL *pfAllow); +}; + +cpp_quote("#define SID_SProtectFocus IID_IProtectFocus") + + + +cpp_quote("#ifndef _LPPROTECTEDMODEMENUSERVICES_DEFINED") +cpp_quote("#define _LPPROTECTEDMODEMENUSERVICES_DEFINED") +[ + object, + uuid(73c105ee-9dff-4a07-b83c-7eff290c266e), + pointer_default(unique) +] +interface IProtectedModeMenuServices : IUnknown +{ + HRESULT CreateMenu([out] HMENU *phMenu); + HRESULT LoadMenu([in, string] LPCWSTR pszModuleName, + [in, string] LPCWSTR pszMenuName, + [out] HMENU *phMenu); + HRESULT LoadMenuID([in, string] LPCWSTR pszModuleName, + [in] WORD wResourceID, + [out] HMENU *phMenu); +} + +cpp_quote("#endif") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") +cpp_quote("typedef struct tagPAGESET {} PAGESET;") +cpp_quote("#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocObj.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocObj.h new file mode 100644 index 0000000000000000000000000000000000000000..0a9a6fcf4d6e25bb5d6ba36dfa1d55df9441eacc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocObj.h @@ -0,0 +1,1909 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __docobj_h__ +#define __docobj_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IOleDocument_FWD_DEFINED__ +#define __IOleDocument_FWD_DEFINED__ +typedef interface IOleDocument IOleDocument; + +#endif /* __IOleDocument_FWD_DEFINED__ */ + + +#ifndef __IOleDocumentSite_FWD_DEFINED__ +#define __IOleDocumentSite_FWD_DEFINED__ +typedef interface IOleDocumentSite IOleDocumentSite; + +#endif /* __IOleDocumentSite_FWD_DEFINED__ */ + + +#ifndef __IOleDocumentView_FWD_DEFINED__ +#define __IOleDocumentView_FWD_DEFINED__ +typedef interface IOleDocumentView IOleDocumentView; + +#endif /* __IOleDocumentView_FWD_DEFINED__ */ + + +#ifndef __IEnumOleDocumentViews_FWD_DEFINED__ +#define __IEnumOleDocumentViews_FWD_DEFINED__ +typedef interface IEnumOleDocumentViews IEnumOleDocumentViews; + +#endif /* __IEnumOleDocumentViews_FWD_DEFINED__ */ + + +#ifndef __IContinueCallback_FWD_DEFINED__ +#define __IContinueCallback_FWD_DEFINED__ +typedef interface IContinueCallback IContinueCallback; + +#endif /* __IContinueCallback_FWD_DEFINED__ */ + + +#ifndef __IPrint_FWD_DEFINED__ +#define __IPrint_FWD_DEFINED__ +typedef interface IPrint IPrint; + +#endif /* __IPrint_FWD_DEFINED__ */ + + +#ifndef __IOleCommandTarget_FWD_DEFINED__ +#define __IOleCommandTarget_FWD_DEFINED__ +typedef interface IOleCommandTarget IOleCommandTarget; + +#endif /* __IOleCommandTarget_FWD_DEFINED__ */ + + +#ifndef __IZoomEvents_FWD_DEFINED__ +#define __IZoomEvents_FWD_DEFINED__ +typedef interface IZoomEvents IZoomEvents; + +#endif /* __IZoomEvents_FWD_DEFINED__ */ + + +#ifndef __IProtectFocus_FWD_DEFINED__ +#define __IProtectFocus_FWD_DEFINED__ +typedef interface IProtectFocus IProtectFocus; + +#endif /* __IProtectFocus_FWD_DEFINED__ */ + + +#ifndef __IProtectedModeMenuServices_FWD_DEFINED__ +#define __IProtectedModeMenuServices_FWD_DEFINED__ +typedef interface IProtectedModeMenuServices IProtectedModeMenuServices; + +#endif /* __IProtectedModeMenuServices_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_docobj_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// DocObj.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma comment(lib,"uuid.lib") + +//-------------------------------------------------------------------------- +// OLE Document Object Interfaces. + + + + + + + + + +//////////////////////////////////////////////////////////////////////////// +// Interface Definitions +#ifndef _LPOLEDOCUMENT_DEFINED +#define _LPOLEDOCUMENT_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0000_v0_0_s_ifspec; + +#ifndef __IOleDocument_INTERFACE_DEFINED__ +#define __IOleDocument_INTERFACE_DEFINED__ + +/* interface IOleDocument */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IOleDocument *LPOLEDOCUMENT; + +typedef /* [public] */ +enum __MIDL_IOleDocument_0001 + { + DOCMISC_CANCREATEMULTIPLEVIEWS = 1, + DOCMISC_SUPPORTCOMPLEXRECTANGLES = 2, + DOCMISC_CANTOPENEDIT = 4, + DOCMISC_NOFILESUPPORT = 8 + } DOCMISC; + + +EXTERN_C const IID IID_IOleDocument; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b722bcc5-4e68-101b-a2bc-00aa00404770") + IOleDocument : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateView( + /* [unique][in] */ __RPC__in_opt IOleInPlaceSite *pIPSite, + /* [unique][in] */ __RPC__in_opt IStream *pstm, + /* [in] */ DWORD dwReserved, + /* [out] */ __RPC__deref_out_opt IOleDocumentView **ppView) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDocMiscStatus( + /* [out] */ __RPC__out DWORD *pdwStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumViews( + /* [out] */ __RPC__deref_out_opt IEnumOleDocumentViews **ppEnum, + /* [out] */ __RPC__deref_out_opt IOleDocumentView **ppView) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOleDocumentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOleDocument * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOleDocument * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOleDocument * This); + + DECLSPEC_XFGVIRT(IOleDocument, CreateView) + HRESULT ( STDMETHODCALLTYPE *CreateView )( + __RPC__in IOleDocument * This, + /* [unique][in] */ __RPC__in_opt IOleInPlaceSite *pIPSite, + /* [unique][in] */ __RPC__in_opt IStream *pstm, + /* [in] */ DWORD dwReserved, + /* [out] */ __RPC__deref_out_opt IOleDocumentView **ppView); + + DECLSPEC_XFGVIRT(IOleDocument, GetDocMiscStatus) + HRESULT ( STDMETHODCALLTYPE *GetDocMiscStatus )( + __RPC__in IOleDocument * This, + /* [out] */ __RPC__out DWORD *pdwStatus); + + DECLSPEC_XFGVIRT(IOleDocument, EnumViews) + HRESULT ( STDMETHODCALLTYPE *EnumViews )( + __RPC__in IOleDocument * This, + /* [out] */ __RPC__deref_out_opt IEnumOleDocumentViews **ppEnum, + /* [out] */ __RPC__deref_out_opt IOleDocumentView **ppView); + + END_INTERFACE + } IOleDocumentVtbl; + + interface IOleDocument + { + CONST_VTBL struct IOleDocumentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOleDocument_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOleDocument_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOleDocument_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOleDocument_CreateView(This,pIPSite,pstm,dwReserved,ppView) \ + ( (This)->lpVtbl -> CreateView(This,pIPSite,pstm,dwReserved,ppView) ) + +#define IOleDocument_GetDocMiscStatus(This,pdwStatus) \ + ( (This)->lpVtbl -> GetDocMiscStatus(This,pdwStatus) ) + +#define IOleDocument_EnumViews(This,ppEnum,ppView) \ + ( (This)->lpVtbl -> EnumViews(This,ppEnum,ppView) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOleDocument_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_docobj_0000_0001 */ +/* [local] */ + +#endif +#ifndef _LPOLEDOCUMENTSITE_DEFINED +#define _LPOLEDOCUMENTSITE_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0001_v0_0_s_ifspec; + +#ifndef __IOleDocumentSite_INTERFACE_DEFINED__ +#define __IOleDocumentSite_INTERFACE_DEFINED__ + +/* interface IOleDocumentSite */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IOleDocumentSite *LPOLEDOCUMENTSITE; + + +EXTERN_C const IID IID_IOleDocumentSite; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b722bcc7-4e68-101b-a2bc-00aa00404770") + IOleDocumentSite : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ActivateMe( + /* [in] */ __RPC__in_opt IOleDocumentView *pViewToActivate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOleDocumentSiteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOleDocumentSite * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOleDocumentSite * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOleDocumentSite * This); + + DECLSPEC_XFGVIRT(IOleDocumentSite, ActivateMe) + HRESULT ( STDMETHODCALLTYPE *ActivateMe )( + __RPC__in IOleDocumentSite * This, + /* [in] */ __RPC__in_opt IOleDocumentView *pViewToActivate); + + END_INTERFACE + } IOleDocumentSiteVtbl; + + interface IOleDocumentSite + { + CONST_VTBL struct IOleDocumentSiteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOleDocumentSite_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOleDocumentSite_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOleDocumentSite_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOleDocumentSite_ActivateMe(This,pViewToActivate) \ + ( (This)->lpVtbl -> ActivateMe(This,pViewToActivate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOleDocumentSite_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_docobj_0000_0002 */ +/* [local] */ + +#endif +#ifndef _LPOLEDOCUMENTVIEW_DEFINED +#define _LPOLEDOCUMENTVIEW_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0002_v0_0_s_ifspec; + +#ifndef __IOleDocumentView_INTERFACE_DEFINED__ +#define __IOleDocumentView_INTERFACE_DEFINED__ + +/* interface IOleDocumentView */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IOleDocumentView *LPOLEDOCUMENTVIEW; + + +EXTERN_C const IID IID_IOleDocumentView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b722bcc6-4e68-101b-a2bc-00aa00404770") + IOleDocumentView : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetInPlaceSite( + /* [unique][in] */ __RPC__in_opt IOleInPlaceSite *pIPSite) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInPlaceSite( + /* [out] */ __RPC__deref_out_opt IOleInPlaceSite **ppIPSite) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDocument( + /* [out] */ __RPC__deref_out_opt IUnknown **ppunk) = 0; + + virtual /* [input_sync] */ HRESULT STDMETHODCALLTYPE SetRect( + /* [in] */ __RPC__in LPRECT prcView) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRect( + /* [out] */ __RPC__out LPRECT prcView) = 0; + + virtual /* [input_sync] */ HRESULT STDMETHODCALLTYPE SetRectComplex( + /* [unique][in] */ __RPC__in_opt LPRECT prcView, + /* [unique][in] */ __RPC__in_opt LPRECT prcHScroll, + /* [unique][in] */ __RPC__in_opt LPRECT prcVScroll, + /* [unique][in] */ __RPC__in_opt LPRECT prcSizeBox) = 0; + + virtual HRESULT STDMETHODCALLTYPE Show( + /* [in] */ BOOL fShow) = 0; + + virtual HRESULT STDMETHODCALLTYPE UIActivate( + /* [in] */ BOOL fUIActivate) = 0; + + virtual HRESULT STDMETHODCALLTYPE Open( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CloseView( + /* [in] */ DWORD dwReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE SaveViewState( + /* [in] */ __RPC__in_opt LPSTREAM pstm) = 0; + + virtual HRESULT STDMETHODCALLTYPE ApplyViewState( + /* [in] */ __RPC__in_opt LPSTREAM pstm) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [in] */ __RPC__in_opt IOleInPlaceSite *pIPSiteNew, + /* [out] */ __RPC__deref_out_opt IOleDocumentView **ppViewNew) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOleDocumentViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOleDocumentView * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOleDocumentView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOleDocumentView * This); + + DECLSPEC_XFGVIRT(IOleDocumentView, SetInPlaceSite) + HRESULT ( STDMETHODCALLTYPE *SetInPlaceSite )( + __RPC__in IOleDocumentView * This, + /* [unique][in] */ __RPC__in_opt IOleInPlaceSite *pIPSite); + + DECLSPEC_XFGVIRT(IOleDocumentView, GetInPlaceSite) + HRESULT ( STDMETHODCALLTYPE *GetInPlaceSite )( + __RPC__in IOleDocumentView * This, + /* [out] */ __RPC__deref_out_opt IOleInPlaceSite **ppIPSite); + + DECLSPEC_XFGVIRT(IOleDocumentView, GetDocument) + HRESULT ( STDMETHODCALLTYPE *GetDocument )( + __RPC__in IOleDocumentView * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunk); + + DECLSPEC_XFGVIRT(IOleDocumentView, SetRect) + /* [input_sync] */ HRESULT ( STDMETHODCALLTYPE *SetRect )( + __RPC__in IOleDocumentView * This, + /* [in] */ __RPC__in LPRECT prcView); + + DECLSPEC_XFGVIRT(IOleDocumentView, GetRect) + HRESULT ( STDMETHODCALLTYPE *GetRect )( + __RPC__in IOleDocumentView * This, + /* [out] */ __RPC__out LPRECT prcView); + + DECLSPEC_XFGVIRT(IOleDocumentView, SetRectComplex) + /* [input_sync] */ HRESULT ( STDMETHODCALLTYPE *SetRectComplex )( + __RPC__in IOleDocumentView * This, + /* [unique][in] */ __RPC__in_opt LPRECT prcView, + /* [unique][in] */ __RPC__in_opt LPRECT prcHScroll, + /* [unique][in] */ __RPC__in_opt LPRECT prcVScroll, + /* [unique][in] */ __RPC__in_opt LPRECT prcSizeBox); + + DECLSPEC_XFGVIRT(IOleDocumentView, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in IOleDocumentView * This, + /* [in] */ BOOL fShow); + + DECLSPEC_XFGVIRT(IOleDocumentView, UIActivate) + HRESULT ( STDMETHODCALLTYPE *UIActivate )( + __RPC__in IOleDocumentView * This, + /* [in] */ BOOL fUIActivate); + + DECLSPEC_XFGVIRT(IOleDocumentView, Open) + HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in IOleDocumentView * This); + + DECLSPEC_XFGVIRT(IOleDocumentView, CloseView) + HRESULT ( STDMETHODCALLTYPE *CloseView )( + __RPC__in IOleDocumentView * This, + /* [in] */ DWORD dwReserved); + + DECLSPEC_XFGVIRT(IOleDocumentView, SaveViewState) + HRESULT ( STDMETHODCALLTYPE *SaveViewState )( + __RPC__in IOleDocumentView * This, + /* [in] */ __RPC__in_opt LPSTREAM pstm); + + DECLSPEC_XFGVIRT(IOleDocumentView, ApplyViewState) + HRESULT ( STDMETHODCALLTYPE *ApplyViewState )( + __RPC__in IOleDocumentView * This, + /* [in] */ __RPC__in_opt LPSTREAM pstm); + + DECLSPEC_XFGVIRT(IOleDocumentView, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IOleDocumentView * This, + /* [in] */ __RPC__in_opt IOleInPlaceSite *pIPSiteNew, + /* [out] */ __RPC__deref_out_opt IOleDocumentView **ppViewNew); + + END_INTERFACE + } IOleDocumentViewVtbl; + + interface IOleDocumentView + { + CONST_VTBL struct IOleDocumentViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOleDocumentView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOleDocumentView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOleDocumentView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOleDocumentView_SetInPlaceSite(This,pIPSite) \ + ( (This)->lpVtbl -> SetInPlaceSite(This,pIPSite) ) + +#define IOleDocumentView_GetInPlaceSite(This,ppIPSite) \ + ( (This)->lpVtbl -> GetInPlaceSite(This,ppIPSite) ) + +#define IOleDocumentView_GetDocument(This,ppunk) \ + ( (This)->lpVtbl -> GetDocument(This,ppunk) ) + +#define IOleDocumentView_SetRect(This,prcView) \ + ( (This)->lpVtbl -> SetRect(This,prcView) ) + +#define IOleDocumentView_GetRect(This,prcView) \ + ( (This)->lpVtbl -> GetRect(This,prcView) ) + +#define IOleDocumentView_SetRectComplex(This,prcView,prcHScroll,prcVScroll,prcSizeBox) \ + ( (This)->lpVtbl -> SetRectComplex(This,prcView,prcHScroll,prcVScroll,prcSizeBox) ) + +#define IOleDocumentView_Show(This,fShow) \ + ( (This)->lpVtbl -> Show(This,fShow) ) + +#define IOleDocumentView_UIActivate(This,fUIActivate) \ + ( (This)->lpVtbl -> UIActivate(This,fUIActivate) ) + +#define IOleDocumentView_Open(This) \ + ( (This)->lpVtbl -> Open(This) ) + +#define IOleDocumentView_CloseView(This,dwReserved) \ + ( (This)->lpVtbl -> CloseView(This,dwReserved) ) + +#define IOleDocumentView_SaveViewState(This,pstm) \ + ( (This)->lpVtbl -> SaveViewState(This,pstm) ) + +#define IOleDocumentView_ApplyViewState(This,pstm) \ + ( (This)->lpVtbl -> ApplyViewState(This,pstm) ) + +#define IOleDocumentView_Clone(This,pIPSiteNew,ppViewNew) \ + ( (This)->lpVtbl -> Clone(This,pIPSiteNew,ppViewNew) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOleDocumentView_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_docobj_0000_0003 */ +/* [local] */ + +#endif +#ifndef _LPENUMOLEDOCUMENTVIEWS_DEFINED +#define _LPENUMOLEDOCUMENTVIEWS_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0003_v0_0_s_ifspec; + +#ifndef __IEnumOleDocumentViews_INTERFACE_DEFINED__ +#define __IEnumOleDocumentViews_INTERFACE_DEFINED__ + +/* interface IEnumOleDocumentViews */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IEnumOleDocumentViews *LPENUMOLEDOCUMENTVIEWS; + + +EXTERN_C const IID IID_IEnumOleDocumentViews; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b722bcc8-4e68-101b-a2bc-00aa00404770") + IEnumOleDocumentViews : public IUnknown + { + public: + virtual /* [local] */ HRESULT __stdcall Next( + /* [in] */ ULONG cViews, + /* [out] */ IOleDocumentView **rgpView, + /* [out] */ ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG cViews) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumOleDocumentViews **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumOleDocumentViewsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumOleDocumentViews * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumOleDocumentViews * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumOleDocumentViews * This); + + DECLSPEC_XFGVIRT(IEnumOleDocumentViews, Next) + /* [local] */ HRESULT ( __stdcall *Next )( + IEnumOleDocumentViews * This, + /* [in] */ ULONG cViews, + /* [out] */ IOleDocumentView **rgpView, + /* [out] */ ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumOleDocumentViews, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumOleDocumentViews * This, + /* [in] */ ULONG cViews); + + DECLSPEC_XFGVIRT(IEnumOleDocumentViews, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumOleDocumentViews * This); + + DECLSPEC_XFGVIRT(IEnumOleDocumentViews, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumOleDocumentViews * This, + /* [out] */ __RPC__deref_out_opt IEnumOleDocumentViews **ppEnum); + + END_INTERFACE + } IEnumOleDocumentViewsVtbl; + + interface IEnumOleDocumentViews + { + CONST_VTBL struct IEnumOleDocumentViewsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumOleDocumentViews_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumOleDocumentViews_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumOleDocumentViews_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumOleDocumentViews_Next(This,cViews,rgpView,pcFetched) \ + ( (This)->lpVtbl -> Next(This,cViews,rgpView,pcFetched) ) + +#define IEnumOleDocumentViews_Skip(This,cViews) \ + ( (This)->lpVtbl -> Skip(This,cViews) ) + +#define IEnumOleDocumentViews_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumOleDocumentViews_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT __stdcall IEnumOleDocumentViews_RemoteNext_Proxy( + __RPC__in IEnumOleDocumentViews * This, + /* [in] */ ULONG cViews, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cViews, *pcFetched) IOleDocumentView **rgpView, + /* [out] */ __RPC__out ULONG *pcFetched); + + +void __RPC_STUB IEnumOleDocumentViews_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumOleDocumentViews_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_docobj_0000_0004 */ +/* [local] */ + +#endif +#ifndef _LPCONTINUECALLBACK_DEFINED +#define _LPCONTINUECALLBACK_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0004_v0_0_s_ifspec; + +#ifndef __IContinueCallback_INTERFACE_DEFINED__ +#define __IContinueCallback_INTERFACE_DEFINED__ + +/* interface IContinueCallback */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IContinueCallback *LPCONTINUECALLBACK; + + +EXTERN_C const IID IID_IContinueCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b722bcca-4e68-101b-a2bc-00aa00404770") + IContinueCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FContinue( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE FContinuePrinting( + /* [in] */ LONG nCntPrinted, + /* [in] */ LONG nCurPage, + /* [unique][in] */ __RPC__in_opt wchar_t *pwszPrintStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContinueCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContinueCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContinueCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContinueCallback * This); + + DECLSPEC_XFGVIRT(IContinueCallback, FContinue) + HRESULT ( STDMETHODCALLTYPE *FContinue )( + __RPC__in IContinueCallback * This); + + DECLSPEC_XFGVIRT(IContinueCallback, FContinuePrinting) + HRESULT ( STDMETHODCALLTYPE *FContinuePrinting )( + __RPC__in IContinueCallback * This, + /* [in] */ LONG nCntPrinted, + /* [in] */ LONG nCurPage, + /* [unique][in] */ __RPC__in_opt wchar_t *pwszPrintStatus); + + END_INTERFACE + } IContinueCallbackVtbl; + + interface IContinueCallback + { + CONST_VTBL struct IContinueCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContinueCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContinueCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContinueCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContinueCallback_FContinue(This) \ + ( (This)->lpVtbl -> FContinue(This) ) + +#define IContinueCallback_FContinuePrinting(This,nCntPrinted,nCurPage,pwszPrintStatus) \ + ( (This)->lpVtbl -> FContinuePrinting(This,nCntPrinted,nCurPage,pwszPrintStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContinueCallback_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_docobj_0000_0005 */ +/* [local] */ + +#endif +#ifndef _LPPRINT_DEFINED +#define _LPPRINT_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0005_v0_0_s_ifspec; + +#ifndef __IPrint_INTERFACE_DEFINED__ +#define __IPrint_INTERFACE_DEFINED__ + +/* interface IPrint */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IPrint *LPPRINT; + +typedef /* [public] */ +enum __MIDL_IPrint_0001 + { + PRINTFLAG_MAYBOTHERUSER = 1, + PRINTFLAG_PROMPTUSER = 2, + PRINTFLAG_USERMAYCHANGEPRINTER = 4, + PRINTFLAG_RECOMPOSETODEVICE = 8, + PRINTFLAG_DONTACTUALLYPRINT = 16, + PRINTFLAG_FORCEPROPERTIES = 32, + PRINTFLAG_PRINTTOFILE = 64 + } PRINTFLAG; + +typedef struct tagPAGERANGE + { + LONG nFromPage; + LONG nToPage; + } PAGERANGE; + +typedef struct tagPAGESET + { + ULONG cbStruct; + BOOL fOddPages; + BOOL fEvenPages; + ULONG cPageRange; + /* [size_is] */ PAGERANGE rgPages[ 1 ]; + } PAGESET; + +#define PAGESET_TOLASTPAGE ((WORD)(-1L)) + +EXTERN_C const IID IID_IPrint; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b722bcc9-4e68-101b-a2bc-00aa00404770") + IPrint : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetInitialPageNum( + /* [in] */ LONG nFirstPage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPageInfo( + /* [out] */ __RPC__out LONG *pnFirstPage, + /* [out] */ __RPC__out LONG *pcPages) = 0; + + virtual /* [local] */ HRESULT __stdcall Print( + /* [in] */ DWORD grfFlags, + /* [out][in] */ DVTARGETDEVICE **pptd, + /* [out][in] */ PAGESET **ppPageSet, + /* [unique][out][in] */ STGMEDIUM *pstgmOptions, + /* [in] */ IContinueCallback *pcallback, + /* [in] */ LONG nFirstPage, + /* [out] */ LONG *pcPagesPrinted, + /* [out] */ LONG *pnLastPage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPrint * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPrint * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPrint * This); + + DECLSPEC_XFGVIRT(IPrint, SetInitialPageNum) + HRESULT ( STDMETHODCALLTYPE *SetInitialPageNum )( + __RPC__in IPrint * This, + /* [in] */ LONG nFirstPage); + + DECLSPEC_XFGVIRT(IPrint, GetPageInfo) + HRESULT ( STDMETHODCALLTYPE *GetPageInfo )( + __RPC__in IPrint * This, + /* [out] */ __RPC__out LONG *pnFirstPage, + /* [out] */ __RPC__out LONG *pcPages); + + DECLSPEC_XFGVIRT(IPrint, Print) + /* [local] */ HRESULT ( __stdcall *Print )( + IPrint * This, + /* [in] */ DWORD grfFlags, + /* [out][in] */ DVTARGETDEVICE **pptd, + /* [out][in] */ PAGESET **ppPageSet, + /* [unique][out][in] */ STGMEDIUM *pstgmOptions, + /* [in] */ IContinueCallback *pcallback, + /* [in] */ LONG nFirstPage, + /* [out] */ LONG *pcPagesPrinted, + /* [out] */ LONG *pnLastPage); + + END_INTERFACE + } IPrintVtbl; + + interface IPrint + { + CONST_VTBL struct IPrintVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrint_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrint_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrint_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrint_SetInitialPageNum(This,nFirstPage) \ + ( (This)->lpVtbl -> SetInitialPageNum(This,nFirstPage) ) + +#define IPrint_GetPageInfo(This,pnFirstPage,pcPages) \ + ( (This)->lpVtbl -> GetPageInfo(This,pnFirstPage,pcPages) ) + +#define IPrint_Print(This,grfFlags,pptd,ppPageSet,pstgmOptions,pcallback,nFirstPage,pcPagesPrinted,pnLastPage) \ + ( (This)->lpVtbl -> Print(This,grfFlags,pptd,ppPageSet,pstgmOptions,pcallback,nFirstPage,pcPagesPrinted,pnLastPage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT __stdcall IPrint_RemotePrint_Proxy( + __RPC__in IPrint * This, + /* [in] */ DWORD grfFlags, + /* [out][in] */ __RPC__deref_inout_opt DVTARGETDEVICE **pptd, + /* [out][in] */ __RPC__deref_inout_opt PAGESET **pppageset, + /* [unique][out][in] */ __RPC__inout_opt RemSTGMEDIUM *pstgmOptions, + /* [in] */ __RPC__in_opt IContinueCallback *pcallback, + /* [in] */ LONG nFirstPage, + /* [out] */ __RPC__out LONG *pcPagesPrinted, + /* [out] */ __RPC__out LONG *pnLastPage); + + +void __RPC_STUB IPrint_RemotePrint_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IPrint_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_docobj_0000_0006 */ +/* [local] */ + +#endif +#ifndef _LPOLECOMMANDTARGET_DEFINED +#define _LPOLECOMMANDTARGET_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0006_v0_0_s_ifspec; + +#ifndef __IOleCommandTarget_INTERFACE_DEFINED__ +#define __IOleCommandTarget_INTERFACE_DEFINED__ + +/* interface IOleCommandTarget */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IOleCommandTarget *LPOLECOMMANDTARGET; + +typedef +enum OLECMDF + { + OLECMDF_SUPPORTED = 0x1, + OLECMDF_ENABLED = 0x2, + OLECMDF_LATCHED = 0x4, + OLECMDF_NINCHED = 0x8, + OLECMDF_INVISIBLE = 0x10, + OLECMDF_DEFHIDEONCTXTMENU = 0x20 + } OLECMDF; + +typedef struct _tagOLECMD + { + ULONG cmdID; + DWORD cmdf; + } OLECMD; + +typedef struct _tagOLECMDTEXT + { + DWORD cmdtextf; + ULONG cwActual; + ULONG cwBuf; + /* [size_is] */ wchar_t rgwz[ 1 ]; + } OLECMDTEXT; + +typedef +enum OLECMDTEXTF + { + OLECMDTEXTF_NONE = 0, + OLECMDTEXTF_NAME = 1, + OLECMDTEXTF_STATUS = 2 + } OLECMDTEXTF; + +typedef +enum OLECMDEXECOPT + { + OLECMDEXECOPT_DODEFAULT = 0, + OLECMDEXECOPT_PROMPTUSER = 1, + OLECMDEXECOPT_DONTPROMPTUSER = 2, + OLECMDEXECOPT_SHOWHELP = 3 + } OLECMDEXECOPT; + +/* OLECMDID_STOPDOWNLOAD and OLECMDID_ALLOWUILESSSAVEAS are supported for QueryStatus Only */ +typedef +enum OLECMDID + { + OLECMDID_OPEN = 1, + OLECMDID_NEW = 2, + OLECMDID_SAVE = 3, + OLECMDID_SAVEAS = 4, + OLECMDID_SAVECOPYAS = 5, + OLECMDID_PRINT = 6, + OLECMDID_PRINTPREVIEW = 7, + OLECMDID_PAGESETUP = 8, + OLECMDID_SPELL = 9, + OLECMDID_PROPERTIES = 10, + OLECMDID_CUT = 11, + OLECMDID_COPY = 12, + OLECMDID_PASTE = 13, + OLECMDID_PASTESPECIAL = 14, + OLECMDID_UNDO = 15, + OLECMDID_REDO = 16, + OLECMDID_SELECTALL = 17, + OLECMDID_CLEARSELECTION = 18, + OLECMDID_ZOOM = 19, + OLECMDID_GETZOOMRANGE = 20, + OLECMDID_UPDATECOMMANDS = 21, + OLECMDID_REFRESH = 22, + OLECMDID_STOP = 23, + OLECMDID_HIDETOOLBARS = 24, + OLECMDID_SETPROGRESSMAX = 25, + OLECMDID_SETPROGRESSPOS = 26, + OLECMDID_SETPROGRESSTEXT = 27, + OLECMDID_SETTITLE = 28, + OLECMDID_SETDOWNLOADSTATE = 29, + OLECMDID_STOPDOWNLOAD = 30, + OLECMDID_ONTOOLBARACTIVATED = 31, + OLECMDID_FIND = 32, + OLECMDID_DELETE = 33, + OLECMDID_HTTPEQUIV = 34, + OLECMDID_HTTPEQUIV_DONE = 35, + OLECMDID_ENABLE_INTERACTION = 36, + OLECMDID_ONUNLOAD = 37, + OLECMDID_PROPERTYBAG2 = 38, + OLECMDID_PREREFRESH = 39, + OLECMDID_SHOWSCRIPTERROR = 40, + OLECMDID_SHOWMESSAGE = 41, + OLECMDID_SHOWFIND = 42, + OLECMDID_SHOWPAGESETUP = 43, + OLECMDID_SHOWPRINT = 44, + OLECMDID_CLOSE = 45, + OLECMDID_ALLOWUILESSSAVEAS = 46, + OLECMDID_DONTDOWNLOADCSS = 47, + OLECMDID_UPDATEPAGESTATUS = 48, + OLECMDID_PRINT2 = 49, + OLECMDID_PRINTPREVIEW2 = 50, + OLECMDID_SETPRINTTEMPLATE = 51, + OLECMDID_GETPRINTTEMPLATE = 52, + OLECMDID_PAGEACTIONBLOCKED = 55, + OLECMDID_PAGEACTIONUIQUERY = 56, + OLECMDID_FOCUSVIEWCONTROLS = 57, + OLECMDID_FOCUSVIEWCONTROLSQUERY = 58, + OLECMDID_SHOWPAGEACTIONMENU = 59, + OLECMDID_ADDTRAVELENTRY = 60, + OLECMDID_UPDATETRAVELENTRY = 61, + OLECMDID_UPDATEBACKFORWARDSTATE = 62, + OLECMDID_OPTICAL_ZOOM = 63, + OLECMDID_OPTICAL_GETZOOMRANGE = 64, + OLECMDID_WINDOWSTATECHANGED = 65, + OLECMDID_ACTIVEXINSTALLSCOPE = 66, + OLECMDID_UPDATETRAVELENTRY_DATARECOVERY = 67, + OLECMDID_SHOWTASKDLG = 68, + OLECMDID_POPSTATEEVENT = 69, + OLECMDID_VIEWPORT_MODE = 70, + OLECMDID_LAYOUT_VIEWPORT_WIDTH = 71, + OLECMDID_VISUAL_VIEWPORT_EXCLUDE_BOTTOM = 72, + OLECMDID_USER_OPTICAL_ZOOM = 73, + OLECMDID_PAGEAVAILABLE = 74, + OLECMDID_GETUSERSCALABLE = 75, + OLECMDID_UPDATE_CARET = 76, + OLECMDID_ENABLE_VISIBILITY = 77, + OLECMDID_MEDIA_PLAYBACK = 78, + OLECMDID_SETFAVICON = 79, + OLECMDID_SET_HOST_FULLSCREENMODE = 80, + OLECMDID_EXITFULLSCREEN = 81, + OLECMDID_SCROLLCOMPLETE = 82, + OLECMDID_ONBEFOREUNLOAD = 83, + OLECMDID_SHOWMESSAGE_BLOCKABLE = 84, + OLECMDID_SHOWTASKDLG_BLOCKABLE = 85 + } OLECMDID; + +typedef +enum MEDIAPLAYBACK_STATE + { + MEDIAPLAYBACK_RESUME = 0, + MEDIAPLAYBACK_PAUSE = 1, + MEDIAPLAYBACK_PAUSE_AND_SUSPEND = 2, + MEDIAPLAYBACK_RESUME_FROM_SUSPEND = 3 + } MEDIAPLAYBACK_STATE; + +#define OLECMDERR_E_FIRST (OLE_E_LAST+1) +#define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST) +#define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST+1) +#define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST+2) +#define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST+3) +#define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST+4) +#define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST +#define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED +#define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED +#define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP +#define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED +#define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP +#define OLECMD_TASKDLGID_ONBEFOREUNLOAD 1 +#if(NTDDI_VERSION >= NTDDI_WINXPSP2) +#define OLECMDARGINDEX_SHOWPAGEACTIONMENU_HWND 0 +#define OLECMDARGINDEX_SHOWPAGEACTIONMENU_X 1 +#define OLECMDARGINDEX_SHOWPAGEACTIONMENU_Y 2 +#define OLECMDARGINDEX_ACTIVEXINSTALL_PUBLISHER 0 +#define OLECMDARGINDEX_ACTIVEXINSTALL_DISPLAYNAME 1 +#define OLECMDARGINDEX_ACTIVEXINSTALL_CLSID 2 +#define OLECMDARGINDEX_ACTIVEXINSTALL_INSTALLSCOPE 3 +#define OLECMDARGINDEX_ACTIVEXINSTALL_SOURCEURL 4 +#define INSTALL_SCOPE_INVALID 0 +#define INSTALL_SCOPE_MACHINE 1 +#define INSTALL_SCOPE_USER 2 +typedef +enum IGNOREMIME + { + IGNOREMIME_PROMPT = 0x1, + IGNOREMIME_TEXT = 0x2 + } IGNOREMIME; + +typedef +enum WPCSETTING + { + WPCSETTING_LOGGING_ENABLED = 0x1, + WPCSETTING_FILEDOWNLOAD_BLOCKED = 0x2 + } WPCSETTING; + +#endif + +EXTERN_C const IID IID_IOleCommandTarget; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b722bccb-4e68-101b-a2bc-00aa00404770") + IOleCommandTarget : public IUnknown + { + public: + virtual /* [input_sync] */ HRESULT STDMETHODCALLTYPE QueryStatus( + /* [unique][in] */ __RPC__in_opt const GUID *pguidCmdGroup, + /* [in] */ ULONG cCmds, + /* [out][in][size_is] */ __RPC__inout_ecount_full(cCmds) OLECMD prgCmds[ ], + /* [unique][out][in] */ __RPC__inout_opt OLECMDTEXT *pCmdText) = 0; + + virtual HRESULT STDMETHODCALLTYPE Exec( + /* [unique][in] */ __RPC__in_opt const GUID *pguidCmdGroup, + /* [in] */ DWORD nCmdID, + /* [in] */ DWORD nCmdexecopt, + /* [unique][in] */ __RPC__in_opt VARIANT *pvaIn, + /* [unique][out][in] */ __RPC__inout_opt VARIANT *pvaOut) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOleCommandTargetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOleCommandTarget * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOleCommandTarget * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOleCommandTarget * This); + + DECLSPEC_XFGVIRT(IOleCommandTarget, QueryStatus) + /* [input_sync] */ HRESULT ( STDMETHODCALLTYPE *QueryStatus )( + __RPC__in IOleCommandTarget * This, + /* [unique][in] */ __RPC__in_opt const GUID *pguidCmdGroup, + /* [in] */ ULONG cCmds, + /* [out][in][size_is] */ __RPC__inout_ecount_full(cCmds) OLECMD prgCmds[ ], + /* [unique][out][in] */ __RPC__inout_opt OLECMDTEXT *pCmdText); + + DECLSPEC_XFGVIRT(IOleCommandTarget, Exec) + HRESULT ( STDMETHODCALLTYPE *Exec )( + __RPC__in IOleCommandTarget * This, + /* [unique][in] */ __RPC__in_opt const GUID *pguidCmdGroup, + /* [in] */ DWORD nCmdID, + /* [in] */ DWORD nCmdexecopt, + /* [unique][in] */ __RPC__in_opt VARIANT *pvaIn, + /* [unique][out][in] */ __RPC__inout_opt VARIANT *pvaOut); + + END_INTERFACE + } IOleCommandTargetVtbl; + + interface IOleCommandTarget + { + CONST_VTBL struct IOleCommandTargetVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOleCommandTarget_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOleCommandTarget_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOleCommandTarget_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOleCommandTarget_QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) \ + ( (This)->lpVtbl -> QueryStatus(This,pguidCmdGroup,cCmds,prgCmds,pCmdText) ) + +#define IOleCommandTarget_Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) \ + ( (This)->lpVtbl -> Exec(This,pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOleCommandTarget_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_docobj_0000_0007 */ +/* [local] */ + +#endif +typedef enum +{ + OLECMDIDF_REFRESH_NORMAL = 0, + OLECMDIDF_REFRESH_IFEXPIRED = 1, + OLECMDIDF_REFRESH_CONTINUE = 2, + OLECMDIDF_REFRESH_COMPLETELY = 3, + OLECMDIDF_REFRESH_NO_CACHE = 4, + OLECMDIDF_REFRESH_RELOAD = 5, + OLECMDIDF_REFRESH_LEVELMASK = 0x00FF, + OLECMDIDF_REFRESH_CLEARUSERINPUT = 0x1000, +#if(NTDDI_VERSION >= NTDDI_WINXPSP2) + OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000, + OLECMDIDF_REFRESH_THROUGHSCRIPT = 0x4000, + OLECMDIDF_REFRESH_SKIPBEFOREUNLOADEVENT = 0x8000, + OLECMDIDF_REFRESH_PAGEACTION_ACTIVEXINSTALL = 0x00010000, + OLECMDIDF_REFRESH_PAGEACTION_FILEDOWNLOAD = 0x00020000, + OLECMDIDF_REFRESH_PAGEACTION_LOCALMACHINE = 0x00040000, + OLECMDIDF_REFRESH_PAGEACTION_POPUPWINDOW = 0x00080000, + OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNLOCALMACHINE = 0x00100000, + OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNTRUSTED = 0x00200000, + OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNINTRANET = 0x00400000, + OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNINTERNET = 0x00800000, + OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNRESTRICTED = 0x01000000, +#elif(NTDDI_VERSION >= NTDDI_WINXP) + OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000, + OLECMDIDF_REFRESH_THROUGHSCRIPT = 0x4000, +#else + OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000, +#endif + OLECMDIDF_REFRESH_PAGEACTION_MIXEDCONTENT = 0x02000000, + OLECMDIDF_REFRESH_PAGEACTION_INVALID_CERT = 0x04000000, + OLECMDIDF_REFRESH_PAGEACTION_ALLOW_VERSION = 0x08000000, +} OLECMDID_REFRESHFLAG; +#if(NTDDI_VERSION >= NTDDI_WINXPSP2) +typedef enum +{ + OLECMDIDF_PAGEACTION_FILEDOWNLOAD = 0x00000001, + OLECMDIDF_PAGEACTION_ACTIVEXINSTALL = 0x00000002, + OLECMDIDF_PAGEACTION_ACTIVEXTRUSTFAIL = 0x00000004, + OLECMDIDF_PAGEACTION_ACTIVEXUSERDISABLE = 0x00000008, + OLECMDIDF_PAGEACTION_ACTIVEXDISALLOW = 0x00000010, + OLECMDIDF_PAGEACTION_ACTIVEXUNSAFE = 0x00000020, + OLECMDIDF_PAGEACTION_POPUPWINDOW = 0x00000040, + OLECMDIDF_PAGEACTION_LOCALMACHINE = 0x00000080, + OLECMDIDF_PAGEACTION_MIMETEXTPLAIN = 0x00000100, + OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE = 0x00000200, + OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE_ACTIVEXINSTALL = 0x00000200, + OLECMDIDF_PAGEACTION_PROTLOCKDOWNLOCALMACHINE = 0x00000400, + OLECMDIDF_PAGEACTION_PROTLOCKDOWNTRUSTED = 0x00000800, + OLECMDIDF_PAGEACTION_PROTLOCKDOWNINTRANET = 0x00001000, + OLECMDIDF_PAGEACTION_PROTLOCKDOWNINTERNET = 0x00002000, + OLECMDIDF_PAGEACTION_PROTLOCKDOWNRESTRICTED = 0x00004000, + OLECMDIDF_PAGEACTION_PROTLOCKDOWNDENY = 0x00008000, + OLECMDIDF_PAGEACTION_POPUPALLOWED = 0x00010000, + OLECMDIDF_PAGEACTION_SCRIPTPROMPT = 0x00020000, + OLECMDIDF_PAGEACTION_ACTIVEXUSERAPPROVAL = 0x00040000, + OLECMDIDF_PAGEACTION_MIXEDCONTENT = 0x00080000, + OLECMDIDF_PAGEACTION_INVALID_CERT = 0x00100000, + OLECMDIDF_PAGEACTION_INTRANETZONEREQUEST = 0x00200000, + OLECMDIDF_PAGEACTION_XSSFILTERED = 0x00400000, + OLECMDIDF_PAGEACTION_SPOOFABLEIDNHOST = 0x00800000, + OLECMDIDF_PAGEACTION_ACTIVEX_EPM_INCOMPATIBLE = 0x01000000, + OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE_ACTIVEXUSERAPPROVAL = 0x02000000, + OLECMDIDF_PAGEACTION_WPCBLOCKED = 0x04000000, + OLECMDIDF_PAGEACTION_WPCBLOCKED_ACTIVEX = 0x08000000, + OLECMDIDF_PAGEACTION_EXTENSION_COMPAT_BLOCKED = 0x10000000, + OLECMDIDF_PAGEACTION_NORESETACTIVEX = 0x20000000, + OLECMDIDF_PAGEACTION_GENERIC_STATE = 0x40000000, + OLECMDIDF_PAGEACTION_RESET = (int) 0x80000000, +} OLECMDID_PAGEACTIONFLAG; +typedef enum +{ + OLECMDIDF_BROWSERSTATE_EXTENSIONSOFF = 0x00000001, + OLECMDIDF_BROWSERSTATE_IESECURITY = 0x00000002, + OLECMDIDF_BROWSERSTATE_PROTECTEDMODE_OFF = 0x00000004, + OLECMDIDF_BROWSERSTATE_RESET = 0x00000008, + OLECMDIDF_BROWSERSTATE_REQUIRESACTIVEX = 0x00000010, + OLECMDIDF_BROWSERSTATE_DESKTOPHTMLDIALOG = 0x00000020, + OLECMDIDF_BROWSERSTATE_BLOCKEDVERSION = 0x00000040, +} OLECMDID_BROWSERSTATEFLAG; +typedef enum +{ + OLECMDIDF_OPTICAL_ZOOM_NOPERSIST = 0x00000001, + OLECMDIDF_OPTICAL_ZOOM_NOLAYOUT = 0x00000010, + OLECMDIDF_OPTICAL_ZOOM_NOTRANSIENT = 0x00000020, + OLECMDIDF_OPTICAL_ZOOM_RELOADFORNEWTAB = 0x00000040, +} OLECMDID_OPTICAL_ZOOMFLAG; +typedef enum +{ + PAGEACTION_UI_DEFAULT = 0, + PAGEACTION_UI_MODAL = 1, + PAGEACTION_UI_MODELESS = 2, + PAGEACTION_UI_SILENT = 3, +} PAGEACTION_UI; +#endif +typedef enum +{ + OLECMDIDF_WINDOWSTATE_USERVISIBLE = 0x00000001, + OLECMDIDF_WINDOWSTATE_ENABLED = 0x00000002, + OLECMDIDF_WINDOWSTATE_USERVISIBLE_VALID = 0x00010000, + OLECMDIDF_WINDOWSTATE_ENABLED_VALID = 0x00020000, +} OLECMDID_WINDOWSTATE_FLAG; +typedef enum +{ + OLECMDIDF_VIEWPORTMODE_FIXED_LAYOUT_WIDTH = 0x00000001, + OLECMDIDF_VIEWPORTMODE_EXCLUDE_VISUAL_BOTTOM = 0x00000002, + OLECMDIDF_VIEWPORTMODE_FIXED_LAYOUT_WIDTH_VALID = 0x00010000, + OLECMDIDF_VIEWPORTMODE_EXCLUDE_VISUAL_BOTTOM_VALID = 0x00020000, +} OLECMDID_VIEWPORT_MODE_FLAG; + +//////////////////////////////////////////////////////////////////////////// +// Aliases to original office-compatible names +#define IMsoDocument IOleDocument +#define IMsoDocumentSite IOleDocumentSite +#define IMsoView IOleDocumentView +#define IEnumMsoView IEnumOleDocumentViews +#define IMsoCommandTarget IOleCommandTarget +#define LPMSODOCUMENT LPOLEDOCUMENT +#define LPMSODOCUMENTSITE LPOLEDOCUMENTSITE +#define LPMSOVIEW LPOLEDOCUMENTVIEW +#define LPENUMMSOVIEW LPENUMOLEDOCUMENTVIEWS +#define LPMSOCOMMANDTARGET LPOLECOMMANDTARGET +#define MSOCMD OLECMD +#define MSOCMDTEXT OLECMDTEXT +#define IID_IMsoDocument IID_IOleDocument +#define IID_IMsoDocumentSite IID_IOleDocumentSite +#define IID_IMsoView IID_IOleDocumentView +#define IID_IEnumMsoView IID_IEnumOleDocumentViews +#define IID_IMsoCommandTarget IID_IOleCommandTarget +#define MSOCMDF_SUPPORTED OLECMDF_SUPPORTED +#define MSOCMDF_ENABLED OLECMDF_ENABLED +#define MSOCMDF_LATCHED OLECMDF_LATCHED +#define MSOCMDF_NINCHED OLECMDF_NINCHED +#define MSOCMDTEXTF_NONE OLECMDTEXTF_NONE +#define MSOCMDTEXTF_NAME OLECMDTEXTF_NAME +#define MSOCMDTEXTF_STATUS OLECMDTEXTF_STATUS +#define MSOCMDEXECOPT_DODEFAULT OLECMDEXECOPT_DODEFAULT +#define MSOCMDEXECOPT_PROMPTUSER OLECMDEXECOPT_PROMPTUSER +#define MSOCMDEXECOPT_DONTPROMPTUSER OLECMDEXECOPT_DONTPROMPTUSER +#define MSOCMDEXECOPT_SHOWHELP OLECMDEXECOPT_SHOWHELP +#define MSOCMDID_OPEN OLECMDID_OPEN +#define MSOCMDID_NEW OLECMDID_NEW +#define MSOCMDID_SAVE OLECMDID_SAVE +#define MSOCMDID_SAVEAS OLECMDID_SAVEAS +#define MSOCMDID_SAVECOPYAS OLECMDID_SAVECOPYAS +#define MSOCMDID_PRINT OLECMDID_PRINT +#define MSOCMDID_PRINTPREVIEW OLECMDID_PRINTPREVIEW +#define MSOCMDID_PAGESETUP OLECMDID_PAGESETUP +#define MSOCMDID_SPELL OLECMDID_SPELL +#define MSOCMDID_PROPERTIES OLECMDID_PROPERTIES +#define MSOCMDID_CUT OLECMDID_CUT +#define MSOCMDID_COPY OLECMDID_COPY +#define MSOCMDID_PASTE OLECMDID_PASTE +#define MSOCMDID_PASTESPECIAL OLECMDID_PASTESPECIAL +#define MSOCMDID_UNDO OLECMDID_UNDO +#define MSOCMDID_REDO OLECMDID_REDO +#define MSOCMDID_SELECTALL OLECMDID_SELECTALL +#define MSOCMDID_CLEARSELECTION OLECMDID_CLEARSELECTION +#define MSOCMDID_ZOOM OLECMDID_ZOOM +#define MSOCMDID_GETZOOMRANGE OLECMDID_GETZOOMRANGE +EXTERN_C const GUID SID_SContainerDispatch; + + +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0007_v0_0_s_ifspec; + +#ifndef __IZoomEvents_INTERFACE_DEFINED__ +#define __IZoomEvents_INTERFACE_DEFINED__ + +/* interface IZoomEvents */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IZoomEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("41B68150-904C-4e17-A0BA-A438182E359D") + IZoomEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnZoomPercentChanged( + /* [in] */ ULONG ulZoomPercent) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IZoomEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IZoomEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IZoomEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IZoomEvents * This); + + DECLSPEC_XFGVIRT(IZoomEvents, OnZoomPercentChanged) + HRESULT ( STDMETHODCALLTYPE *OnZoomPercentChanged )( + __RPC__in IZoomEvents * This, + /* [in] */ ULONG ulZoomPercent); + + END_INTERFACE + } IZoomEventsVtbl; + + interface IZoomEvents + { + CONST_VTBL struct IZoomEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IZoomEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IZoomEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IZoomEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IZoomEvents_OnZoomPercentChanged(This,ulZoomPercent) \ + ( (This)->lpVtbl -> OnZoomPercentChanged(This,ulZoomPercent) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IZoomEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IProtectFocus_INTERFACE_DEFINED__ +#define __IProtectFocus_INTERFACE_DEFINED__ + +/* interface IProtectFocus */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IProtectFocus; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d81f90a3-8156-44f7-ad28-5abb87003274") + IProtectFocus : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AllowFocusChange( + /* [out] */ __RPC__out BOOL *pfAllow) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProtectFocusVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProtectFocus * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProtectFocus * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProtectFocus * This); + + DECLSPEC_XFGVIRT(IProtectFocus, AllowFocusChange) + HRESULT ( STDMETHODCALLTYPE *AllowFocusChange )( + __RPC__in IProtectFocus * This, + /* [out] */ __RPC__out BOOL *pfAllow); + + END_INTERFACE + } IProtectFocusVtbl; + + interface IProtectFocus + { + CONST_VTBL struct IProtectFocusVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProtectFocus_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProtectFocus_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProtectFocus_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProtectFocus_AllowFocusChange(This,pfAllow) \ + ( (This)->lpVtbl -> AllowFocusChange(This,pfAllow) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProtectFocus_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_docobj_0000_0009 */ +/* [local] */ + +#define SID_SProtectFocus IID_IProtectFocus +#ifndef _LPPROTECTEDMODEMENUSERVICES_DEFINED +#define _LPPROTECTEDMODEMENUSERVICES_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0009_v0_0_s_ifspec; + +#ifndef __IProtectedModeMenuServices_INTERFACE_DEFINED__ +#define __IProtectedModeMenuServices_INTERFACE_DEFINED__ + +/* interface IProtectedModeMenuServices */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IProtectedModeMenuServices; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("73c105ee-9dff-4a07-b83c-7eff290c266e") + IProtectedModeMenuServices : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateMenu( + /* [out] */ __RPC__deref_out_opt HMENU *phMenu) = 0; + + virtual HRESULT STDMETHODCALLTYPE LoadMenu( + /* [string][in] */ __RPC__in_string LPCWSTR pszModuleName, + /* [string][in] */ __RPC__in_string LPCWSTR pszMenuName, + /* [out] */ __RPC__deref_out_opt HMENU *phMenu) = 0; + + virtual HRESULT STDMETHODCALLTYPE LoadMenuID( + /* [string][in] */ __RPC__in_string LPCWSTR pszModuleName, + /* [in] */ WORD wResourceID, + /* [out] */ __RPC__deref_out_opt HMENU *phMenu) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProtectedModeMenuServicesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProtectedModeMenuServices * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProtectedModeMenuServices * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProtectedModeMenuServices * This); + + DECLSPEC_XFGVIRT(IProtectedModeMenuServices, CreateMenu) + HRESULT ( STDMETHODCALLTYPE *CreateMenu )( + __RPC__in IProtectedModeMenuServices * This, + /* [out] */ __RPC__deref_out_opt HMENU *phMenu); + + DECLSPEC_XFGVIRT(IProtectedModeMenuServices, LoadMenu) + HRESULT ( STDMETHODCALLTYPE *LoadMenu )( + __RPC__in IProtectedModeMenuServices * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszModuleName, + /* [string][in] */ __RPC__in_string LPCWSTR pszMenuName, + /* [out] */ __RPC__deref_out_opt HMENU *phMenu); + + DECLSPEC_XFGVIRT(IProtectedModeMenuServices, LoadMenuID) + HRESULT ( STDMETHODCALLTYPE *LoadMenuID )( + __RPC__in IProtectedModeMenuServices * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszModuleName, + /* [in] */ WORD wResourceID, + /* [out] */ __RPC__deref_out_opt HMENU *phMenu); + + END_INTERFACE + } IProtectedModeMenuServicesVtbl; + + interface IProtectedModeMenuServices + { + CONST_VTBL struct IProtectedModeMenuServicesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProtectedModeMenuServices_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProtectedModeMenuServices_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProtectedModeMenuServices_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProtectedModeMenuServices_CreateMenu(This,phMenu) \ + ( (This)->lpVtbl -> CreateMenu(This,phMenu) ) + +#define IProtectedModeMenuServices_LoadMenu(This,pszModuleName,pszMenuName,phMenu) \ + ( (This)->lpVtbl -> LoadMenu(This,pszModuleName,pszMenuName,phMenu) ) + +#define IProtectedModeMenuServices_LoadMenuID(This,pszModuleName,wResourceID,phMenu) \ + ( (This)->lpVtbl -> LoadMenuID(This,pszModuleName,wResourceID,phMenu) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProtectedModeMenuServices_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_docobj_0000_0010 */ +/* [local] */ + +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef struct tagPAGESET {} PAGESET; +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobj_0000_0010_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HMENU_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HMENU * ); +unsigned char * __RPC_USER HMENU_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HMENU * ); +unsigned char * __RPC_USER HMENU_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HMENU * ); +void __RPC_USER HMENU_UserFree( __RPC__in unsigned long *, __RPC__in HMENU * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER HMENU_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HMENU * ); +unsigned char * __RPC_USER HMENU_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HMENU * ); +unsigned char * __RPC_USER HMENU_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HMENU * ); +void __RPC_USER HMENU_UserFree64( __RPC__in unsigned long *, __RPC__in HMENU * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* [local] */ HRESULT __stdcall IEnumOleDocumentViews_Next_Proxy( + IEnumOleDocumentViews * This, + /* [in] */ ULONG cViews, + /* [out] */ IOleDocumentView **rgpView, + /* [out] */ ULONG *pcFetched); + + +/* [call_as] */ HRESULT __stdcall IEnumOleDocumentViews_Next_Stub( + __RPC__in IEnumOleDocumentViews * This, + /* [in] */ ULONG cViews, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cViews, *pcFetched) IOleDocumentView **rgpView, + /* [out] */ __RPC__out ULONG *pcFetched); + +/* [local] */ HRESULT __stdcall IPrint_Print_Proxy( + IPrint * This, + /* [in] */ DWORD grfFlags, + /* [out][in] */ DVTARGETDEVICE **pptd, + /* [out][in] */ PAGESET **ppPageSet, + /* [unique][out][in] */ STGMEDIUM *pstgmOptions, + /* [in] */ IContinueCallback *pcallback, + /* [in] */ LONG nFirstPage, + /* [out] */ LONG *pcPagesPrinted, + /* [out] */ LONG *pnLastPage); + + +/* [call_as] */ HRESULT __stdcall IPrint_Print_Stub( + __RPC__in IPrint * This, + /* [in] */ DWORD grfFlags, + /* [out][in] */ __RPC__deref_inout_opt DVTARGETDEVICE **pptd, + /* [out][in] */ __RPC__deref_inout_opt PAGESET **pppageset, + /* [unique][out][in] */ __RPC__inout_opt RemSTGMEDIUM *pstgmOptions, + /* [in] */ __RPC__in_opt IContinueCallback *pcallback, + /* [in] */ LONG nFirstPage, + /* [out] */ __RPC__out LONG *pcPagesPrinted, + /* [out] */ __RPC__out LONG *pnLastPage); + + + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocObjectService.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocObjectService.h new file mode 100644 index 0000000000000000000000000000000000000000..b3d36e48711e2fa228f0083044a60a0d5f1dfa25 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocObjectService.h @@ -0,0 +1,319 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __docobjectservice_h__ +#define __docobjectservice_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDocObjectService_FWD_DEFINED__ +#define __IDocObjectService_FWD_DEFINED__ +typedef interface IDocObjectService IDocObjectService; + +#endif /* __IDocObjectService_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "objidl.h" +#include "mshtml.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_docobjectservice_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// DocObjectService.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_docobjectservice_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobjectservice_0000_0000_v0_0_s_ifspec; + +#ifndef __IDocObjectService_INTERFACE_DEFINED__ +#define __IDocObjectService_INTERFACE_DEFINED__ + +/* interface IDocObjectService */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDocObjectService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3050f801-98b5-11cf-bb82-00aa00bdce0b") + IDocObjectService : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FireBeforeNavigate2( + /* [in] */ __RPC__in_opt IDispatch *pDispatch, + /* [in] */ __RPC__in LPCWSTR lpszUrl, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in LPCWSTR lpszFrameName, + /* [in] */ __RPC__in BYTE *pPostData, + /* [in] */ DWORD cbPostData, + /* [in] */ __RPC__in LPCWSTR lpszHeaders, + /* [in] */ BOOL fPlayNavSound, + /* [out] */ __RPC__out BOOL *pfCancel) = 0; + + virtual HRESULT STDMETHODCALLTYPE FireNavigateComplete2( + /* [in] */ __RPC__in_opt IHTMLWindow2 *pHTMLWindow2, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE FireDownloadBegin( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE FireDownloadComplete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE FireDocumentComplete( + /* [in] */ __RPC__in_opt IHTMLWindow2 *pHTMLWindow, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateDesktopComponent( + /* [in] */ __RPC__in_opt IHTMLWindow2 *pHTMLWindow) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPendingUrl( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrPendingUrl) = 0; + + virtual HRESULT STDMETHODCALLTYPE ActiveElementChanged( + __RPC__in_opt IHTMLElement *pHTMLElement) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUrlSearchComponent( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSearch) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsErrorUrl( + /* [in] */ __RPC__in LPCWSTR lpszUrl, + /* [out] */ __RPC__out BOOL *pfIsError) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDocObjectServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDocObjectService * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDocObjectService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDocObjectService * This); + + DECLSPEC_XFGVIRT(IDocObjectService, FireBeforeNavigate2) + HRESULT ( STDMETHODCALLTYPE *FireBeforeNavigate2 )( + __RPC__in IDocObjectService * This, + /* [in] */ __RPC__in_opt IDispatch *pDispatch, + /* [in] */ __RPC__in LPCWSTR lpszUrl, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in LPCWSTR lpszFrameName, + /* [in] */ __RPC__in BYTE *pPostData, + /* [in] */ DWORD cbPostData, + /* [in] */ __RPC__in LPCWSTR lpszHeaders, + /* [in] */ BOOL fPlayNavSound, + /* [out] */ __RPC__out BOOL *pfCancel); + + DECLSPEC_XFGVIRT(IDocObjectService, FireNavigateComplete2) + HRESULT ( STDMETHODCALLTYPE *FireNavigateComplete2 )( + __RPC__in IDocObjectService * This, + /* [in] */ __RPC__in_opt IHTMLWindow2 *pHTMLWindow2, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IDocObjectService, FireDownloadBegin) + HRESULT ( STDMETHODCALLTYPE *FireDownloadBegin )( + __RPC__in IDocObjectService * This); + + DECLSPEC_XFGVIRT(IDocObjectService, FireDownloadComplete) + HRESULT ( STDMETHODCALLTYPE *FireDownloadComplete )( + __RPC__in IDocObjectService * This); + + DECLSPEC_XFGVIRT(IDocObjectService, FireDocumentComplete) + HRESULT ( STDMETHODCALLTYPE *FireDocumentComplete )( + __RPC__in IDocObjectService * This, + /* [in] */ __RPC__in_opt IHTMLWindow2 *pHTMLWindow, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IDocObjectService, UpdateDesktopComponent) + HRESULT ( STDMETHODCALLTYPE *UpdateDesktopComponent )( + __RPC__in IDocObjectService * This, + /* [in] */ __RPC__in_opt IHTMLWindow2 *pHTMLWindow); + + DECLSPEC_XFGVIRT(IDocObjectService, GetPendingUrl) + HRESULT ( STDMETHODCALLTYPE *GetPendingUrl )( + __RPC__in IDocObjectService * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrPendingUrl); + + DECLSPEC_XFGVIRT(IDocObjectService, ActiveElementChanged) + HRESULT ( STDMETHODCALLTYPE *ActiveElementChanged )( + __RPC__in IDocObjectService * This, + __RPC__in_opt IHTMLElement *pHTMLElement); + + DECLSPEC_XFGVIRT(IDocObjectService, GetUrlSearchComponent) + HRESULT ( STDMETHODCALLTYPE *GetUrlSearchComponent )( + __RPC__in IDocObjectService * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSearch); + + DECLSPEC_XFGVIRT(IDocObjectService, IsErrorUrl) + HRESULT ( STDMETHODCALLTYPE *IsErrorUrl )( + __RPC__in IDocObjectService * This, + /* [in] */ __RPC__in LPCWSTR lpszUrl, + /* [out] */ __RPC__out BOOL *pfIsError); + + END_INTERFACE + } IDocObjectServiceVtbl; + + interface IDocObjectService + { + CONST_VTBL struct IDocObjectServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDocObjectService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDocObjectService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDocObjectService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDocObjectService_FireBeforeNavigate2(This,pDispatch,lpszUrl,dwFlags,lpszFrameName,pPostData,cbPostData,lpszHeaders,fPlayNavSound,pfCancel) \ + ( (This)->lpVtbl -> FireBeforeNavigate2(This,pDispatch,lpszUrl,dwFlags,lpszFrameName,pPostData,cbPostData,lpszHeaders,fPlayNavSound,pfCancel) ) + +#define IDocObjectService_FireNavigateComplete2(This,pHTMLWindow2,dwFlags) \ + ( (This)->lpVtbl -> FireNavigateComplete2(This,pHTMLWindow2,dwFlags) ) + +#define IDocObjectService_FireDownloadBegin(This) \ + ( (This)->lpVtbl -> FireDownloadBegin(This) ) + +#define IDocObjectService_FireDownloadComplete(This) \ + ( (This)->lpVtbl -> FireDownloadComplete(This) ) + +#define IDocObjectService_FireDocumentComplete(This,pHTMLWindow,dwFlags) \ + ( (This)->lpVtbl -> FireDocumentComplete(This,pHTMLWindow,dwFlags) ) + +#define IDocObjectService_UpdateDesktopComponent(This,pHTMLWindow) \ + ( (This)->lpVtbl -> UpdateDesktopComponent(This,pHTMLWindow) ) + +#define IDocObjectService_GetPendingUrl(This,pbstrPendingUrl) \ + ( (This)->lpVtbl -> GetPendingUrl(This,pbstrPendingUrl) ) + +#define IDocObjectService_ActiveElementChanged(This,pHTMLElement) \ + ( (This)->lpVtbl -> ActiveElementChanged(This,pHTMLElement) ) + +#define IDocObjectService_GetUrlSearchComponent(This,pbstrSearch) \ + ( (This)->lpVtbl -> GetUrlSearchComponent(This,pbstrSearch) ) + +#define IDocObjectService_IsErrorUrl(This,lpszUrl,pfIsError) \ + ( (This)->lpVtbl -> IsErrorUrl(This,lpszUrl,pfIsError) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDocObjectService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_docobjectservice_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_docobjectservice_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_docobjectservice_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocumentTarget.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocumentTarget.h new file mode 100644 index 0000000000000000000000000000000000000000..7b87de08be599bdfd42607c33a67016a6edc1adc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocumentTarget.h @@ -0,0 +1,690 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __documenttarget_h__ +#define __documenttarget_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IPrintDocumentPackageTarget_FWD_DEFINED__ +#define __IPrintDocumentPackageTarget_FWD_DEFINED__ +typedef interface IPrintDocumentPackageTarget IPrintDocumentPackageTarget; + +#endif /* __IPrintDocumentPackageTarget_FWD_DEFINED__ */ + + +#ifndef __IPrintDocumentPackageTarget2_FWD_DEFINED__ +#define __IPrintDocumentPackageTarget2_FWD_DEFINED__ +typedef interface IPrintDocumentPackageTarget2 IPrintDocumentPackageTarget2; + +#endif /* __IPrintDocumentPackageTarget2_FWD_DEFINED__ */ + + +#ifndef __IPrintDocumentPackageStatusEvent_FWD_DEFINED__ +#define __IPrintDocumentPackageStatusEvent_FWD_DEFINED__ +typedef interface IPrintDocumentPackageStatusEvent IPrintDocumentPackageStatusEvent; + +#endif /* __IPrintDocumentPackageStatusEvent_FWD_DEFINED__ */ + + +#ifndef __IPrintDocumentPackageTargetFactory_FWD_DEFINED__ +#define __IPrintDocumentPackageTargetFactory_FWD_DEFINED__ +typedef interface IPrintDocumentPackageTargetFactory IPrintDocumentPackageTargetFactory; + +#endif /* __IPrintDocumentPackageTargetFactory_FWD_DEFINED__ */ + + +#ifndef __IPrintDocumentPackageTarget_FWD_DEFINED__ +#define __IPrintDocumentPackageTarget_FWD_DEFINED__ +typedef interface IPrintDocumentPackageTarget IPrintDocumentPackageTarget; + +#endif /* __IPrintDocumentPackageTarget_FWD_DEFINED__ */ + + +#ifndef __IPrintDocumentPackageStatusEvent_FWD_DEFINED__ +#define __IPrintDocumentPackageStatusEvent_FWD_DEFINED__ +typedef interface IPrintDocumentPackageStatusEvent IPrintDocumentPackageStatusEvent; + +#endif /* __IPrintDocumentPackageStatusEvent_FWD_DEFINED__ */ + + +#ifndef __IPrintDocumentPackageTargetFactory_FWD_DEFINED__ +#define __IPrintDocumentPackageTargetFactory_FWD_DEFINED__ +typedef interface IPrintDocumentPackageTargetFactory IPrintDocumentPackageTargetFactory; + +#endif /* __IPrintDocumentPackageTargetFactory_FWD_DEFINED__ */ + + +#ifndef __PrintDocumentPackageTarget_FWD_DEFINED__ +#define __PrintDocumentPackageTarget_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PrintDocumentPackageTarget PrintDocumentPackageTarget; +#else +typedef struct PrintDocumentPackageTarget PrintDocumentPackageTarget; +#endif /* __cplusplus */ + +#endif /* __PrintDocumentPackageTarget_FWD_DEFINED__ */ + + +#ifndef __PrintDocumentPackageTargetFactory_FWD_DEFINED__ +#define __PrintDocumentPackageTargetFactory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PrintDocumentPackageTargetFactory PrintDocumentPackageTargetFactory; +#else +typedef struct PrintDocumentPackageTargetFactory PrintDocumentPackageTargetFactory; +#endif /* __cplusplus */ + +#endif /* __PrintDocumentPackageTargetFactory_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_documenttarget_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#if (NTDDI_VERSION >= NTDDI_WIN7) +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_documenttarget_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_documenttarget_0000_0000_v0_0_s_ifspec; + +#ifndef __IPrintDocumentPackageTarget_INTERFACE_DEFINED__ +#define __IPrintDocumentPackageTarget_INTERFACE_DEFINED__ + +/* interface IPrintDocumentPackageTarget */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IPrintDocumentPackageTarget; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1b8efec4-3019-4c27-964e-367202156906") + IPrintDocumentPackageTarget : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPackageTargetTypes( + /* [out] */ __RPC__out UINT32 *targetCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*targetCount) GUID **targetTypes) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPackageTarget( + /* [in] */ __RPC__in REFGUID guidTargetType, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppvTarget) = 0; + + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintDocumentPackageTargetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPrintDocumentPackageTarget * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPrintDocumentPackageTarget * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPrintDocumentPackageTarget * This); + + DECLSPEC_XFGVIRT(IPrintDocumentPackageTarget, GetPackageTargetTypes) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPackageTargetTypes )( + __RPC__in IPrintDocumentPackageTarget * This, + /* [out] */ __RPC__out UINT32 *targetCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*targetCount) GUID **targetTypes); + + DECLSPEC_XFGVIRT(IPrintDocumentPackageTarget, GetPackageTarget) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPackageTarget )( + __RPC__in IPrintDocumentPackageTarget * This, + /* [in] */ __RPC__in REFGUID guidTargetType, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppvTarget); + + DECLSPEC_XFGVIRT(IPrintDocumentPackageTarget, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IPrintDocumentPackageTarget * This); + + END_INTERFACE + } IPrintDocumentPackageTargetVtbl; + + interface IPrintDocumentPackageTarget + { + CONST_VTBL struct IPrintDocumentPackageTargetVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintDocumentPackageTarget_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintDocumentPackageTarget_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintDocumentPackageTarget_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintDocumentPackageTarget_GetPackageTargetTypes(This,targetCount,targetTypes) \ + ( (This)->lpVtbl -> GetPackageTargetTypes(This,targetCount,targetTypes) ) + +#define IPrintDocumentPackageTarget_GetPackageTarget(This,guidTargetType,riid,ppvTarget) \ + ( (This)->lpVtbl -> GetPackageTarget(This,guidTargetType,riid,ppvTarget) ) + +#define IPrintDocumentPackageTarget_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintDocumentPackageTarget_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintDocumentPackageTarget2_INTERFACE_DEFINED__ +#define __IPrintDocumentPackageTarget2_INTERFACE_DEFINED__ + +/* interface IPrintDocumentPackageTarget2 */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IPrintDocumentPackageTarget2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c560298a-535c-48f9-866a-632540660cb4") + IPrintDocumentPackageTarget2 : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetIsTargetIppPrinter( + /* [out] */ __RPC__out BOOL *isIppPrinter) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTargetIppPrintDevice( + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppvTarget) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintDocumentPackageTarget2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPrintDocumentPackageTarget2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPrintDocumentPackageTarget2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPrintDocumentPackageTarget2 * This); + + DECLSPEC_XFGVIRT(IPrintDocumentPackageTarget2, GetIsTargetIppPrinter) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetIsTargetIppPrinter )( + __RPC__in IPrintDocumentPackageTarget2 * This, + /* [out] */ __RPC__out BOOL *isIppPrinter); + + DECLSPEC_XFGVIRT(IPrintDocumentPackageTarget2, GetTargetIppPrintDevice) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTargetIppPrintDevice )( + __RPC__in IPrintDocumentPackageTarget2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppvTarget); + + END_INTERFACE + } IPrintDocumentPackageTarget2Vtbl; + + interface IPrintDocumentPackageTarget2 + { + CONST_VTBL struct IPrintDocumentPackageTarget2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintDocumentPackageTarget2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintDocumentPackageTarget2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintDocumentPackageTarget2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintDocumentPackageTarget2_GetIsTargetIppPrinter(This,isIppPrinter) \ + ( (This)->lpVtbl -> GetIsTargetIppPrinter(This,isIppPrinter) ) + +#define IPrintDocumentPackageTarget2_GetTargetIppPrintDevice(This,riid,ppvTarget) \ + ( (This)->lpVtbl -> GetTargetIppPrintDevice(This,riid,ppvTarget) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintDocumentPackageTarget2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_documenttarget_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [v1_enum] */ +enum PrintDocumentPackageCompletion + { + PrintDocumentPackageCompletion_InProgress = 0, + PrintDocumentPackageCompletion_Completed = ( PrintDocumentPackageCompletion_InProgress + 1 ) , + PrintDocumentPackageCompletion_Canceled = ( PrintDocumentPackageCompletion_Completed + 1 ) , + PrintDocumentPackageCompletion_Failed = ( PrintDocumentPackageCompletion_Canceled + 1 ) + } PrintDocumentPackageCompletion; + +typedef /* [public][public] */ struct __MIDL___MIDL_itf_documenttarget_0000_0002_0001 + { + UINT32 JobId; + INT32 CurrentDocument; + INT32 CurrentPage; + INT32 CurrentPageTotal; + PrintDocumentPackageCompletion Completion; + HRESULT PackageStatus; + } PrintDocumentPackageStatus; + + + +extern RPC_IF_HANDLE __MIDL_itf_documenttarget_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_documenttarget_0000_0002_v0_0_s_ifspec; + +#ifndef __IPrintDocumentPackageStatusEvent_INTERFACE_DEFINED__ +#define __IPrintDocumentPackageStatusEvent_INTERFACE_DEFINED__ + +/* interface IPrintDocumentPackageStatusEvent */ +/* [nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IPrintDocumentPackageStatusEvent; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ed90c8ad-5c34-4d05-a1ec-0e8a9b3ad7af") + IPrintDocumentPackageStatusEvent : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PackageStatusUpdated( + /* [in] */ __RPC__in PrintDocumentPackageStatus *packageStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintDocumentPackageStatusEventVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPrintDocumentPackageStatusEvent * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPrintDocumentPackageStatusEvent * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPrintDocumentPackageStatusEvent * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IPrintDocumentPackageStatusEvent * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IPrintDocumentPackageStatusEvent * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IPrintDocumentPackageStatusEvent * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IPrintDocumentPackageStatusEvent * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IPrintDocumentPackageStatusEvent, PackageStatusUpdated) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PackageStatusUpdated )( + __RPC__in IPrintDocumentPackageStatusEvent * This, + /* [in] */ __RPC__in PrintDocumentPackageStatus *packageStatus); + + END_INTERFACE + } IPrintDocumentPackageStatusEventVtbl; + + interface IPrintDocumentPackageStatusEvent + { + CONST_VTBL struct IPrintDocumentPackageStatusEventVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintDocumentPackageStatusEvent_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintDocumentPackageStatusEvent_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintDocumentPackageStatusEvent_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintDocumentPackageStatusEvent_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IPrintDocumentPackageStatusEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IPrintDocumentPackageStatusEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IPrintDocumentPackageStatusEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IPrintDocumentPackageStatusEvent_PackageStatusUpdated(This,packageStatus) \ + ( (This)->lpVtbl -> PackageStatusUpdated(This,packageStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintDocumentPackageStatusEvent_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintDocumentPackageTargetFactory_INTERFACE_DEFINED__ +#define __IPrintDocumentPackageTargetFactory_INTERFACE_DEFINED__ + +/* interface IPrintDocumentPackageTargetFactory */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IPrintDocumentPackageTargetFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d2959bf7-b31b-4a3d-9600-712eb1335ba4") + IPrintDocumentPackageTargetFactory : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateDocumentPackageTargetForPrintJob( + /* [string][in] */ __RPC__in_string LPCWSTR printerName, + /* [string][in] */ __RPC__in_string LPCWSTR jobName, + /* [in] */ __RPC__in_opt IStream *jobOutputStream, + /* [in] */ __RPC__in_opt IStream *jobPrintTicketStream, + /* [out] */ __RPC__deref_out_opt IPrintDocumentPackageTarget **docPackageTarget) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintDocumentPackageTargetFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPrintDocumentPackageTargetFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPrintDocumentPackageTargetFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPrintDocumentPackageTargetFactory * This); + + DECLSPEC_XFGVIRT(IPrintDocumentPackageTargetFactory, CreateDocumentPackageTargetForPrintJob) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateDocumentPackageTargetForPrintJob )( + __RPC__in IPrintDocumentPackageTargetFactory * This, + /* [string][in] */ __RPC__in_string LPCWSTR printerName, + /* [string][in] */ __RPC__in_string LPCWSTR jobName, + /* [in] */ __RPC__in_opt IStream *jobOutputStream, + /* [in] */ __RPC__in_opt IStream *jobPrintTicketStream, + /* [out] */ __RPC__deref_out_opt IPrintDocumentPackageTarget **docPackageTarget); + + END_INTERFACE + } IPrintDocumentPackageTargetFactoryVtbl; + + interface IPrintDocumentPackageTargetFactory + { + CONST_VTBL struct IPrintDocumentPackageTargetFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintDocumentPackageTargetFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintDocumentPackageTargetFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintDocumentPackageTargetFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintDocumentPackageTargetFactory_CreateDocumentPackageTargetForPrintJob(This,printerName,jobName,jobOutputStream,jobPrintTicketStream,docPackageTarget) \ + ( (This)->lpVtbl -> CreateDocumentPackageTargetForPrintJob(This,printerName,jobName,jobOutputStream,jobPrintTicketStream,docPackageTarget) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintDocumentPackageTargetFactory_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_documenttarget_0000_0004 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_documenttarget_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_documenttarget_0000_0004_v0_0_s_ifspec; + + +#ifndef __PrintDocumentTargetLib_LIBRARY_DEFINED__ +#define __PrintDocumentTargetLib_LIBRARY_DEFINED__ + +/* library PrintDocumentTargetLib */ +/* [helpstring][version][uuid] */ + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +EXTERN_C const IID LIBID_PrintDocumentTargetLib; + +EXTERN_C const CLSID CLSID_PrintDocumentPackageTarget; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4842669e-9947-46ea-8ba2-d8cce432c2ca") +PrintDocumentPackageTarget; +#endif + +EXTERN_C const CLSID CLSID_PrintDocumentPackageTargetFactory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("348ef17d-6c81-4982-92b4-ee188a43867a") +PrintDocumentPackageTargetFactory; +#endif +#endif /* __PrintDocumentTargetLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_documenttarget_0000_0005 */ +/* [local] */ + +DEFINE_GUID(ID_DOCUMENTPACKAGETARGET_MSXPS, 0x9cae40a8, 0xded1, 0x41c9, 0xa9, 0xfd, 0xd7, 0x35, 0xef, 0x33, 0xae, 0xda); +DEFINE_GUID(ID_DOCUMENTPACKAGETARGET_OPENXPS, 0x0056bb72, 0x8c9c, 0x4612, 0xbd, 0x0f, 0x93, 0x01, 0x2a, 0x87, 0x09, 0x9d); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#if (NTDDI_VERSION >= NTDDI_WINBLUE) +DEFINE_GUID(ID_DOCUMENTPACKAGETARGET_OPENXPS_WITH_3D, 0x63dbd720, 0x8b14, 0x4577, 0xb0, 0x74, 0x7b, 0xb1, 0x1b, 0x59, 0x6d, 0x28); +#endif // (NTDDI_VERSION >= NTDDI_WINBLUE) + + +extern RPC_IF_HANDLE __MIDL_itf_documenttarget_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_documenttarget_0000_0005_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocumentTarget.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocumentTarget.idl new file mode 100644 index 0000000000000000000000000000000000000000..48f297002387451f68a6c00e898c9ec830aba2ea --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DocumentTarget.idl @@ -0,0 +1,192 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation +// All rights reserved +// +// Module Name: +// +// DocumentTarget.idl +// +// Abstract: +// +// IDL defines for document package target interfaces. +// +// + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") + +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN7)") + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +[ + object, + uuid(1b8efec4-3019-4c27-964e-367202156906), + helpstring("Document Target IPrintDocumentPackageTarget interface: allows user to enumerate supported package target types + and create one with type ID. It also supports tracking package printing progess and cancelling") +] +interface IPrintDocumentPackageTarget : IUnknown +{ + [helpstring("This method is called for enumerating supported target types. The first GUID is preferred type by target.")] + HRESULT GetPackageTargetTypes( + [out] UINT32* targetCount, + [out, size_is(, *targetCount)] GUID** targetTypes + ); + + [helpstring("This method is called for createing a target instance.")] + HRESULT GetPackageTarget( + [in] REFGUID guidTargetType, + [in] REFIID riid, + [out, iid_is(riid)] void** ppvTarget + ); + + HRESULT Cancel(); +} + +[ + object, + uuid(c560298a-535c-48f9-866a-632540660cb4), + helpstring("Document Target IPrintDocumentPackageTarget2 interface: allows users to see if the target printer is an Ipp Printer, + and returns IppPrinterDevice if the target is an Ipp Printer.") +] +interface IPrintDocumentPackageTarget2 : IUnknown +{ + [helpstring("This method returns true if the printer is an IppPrinter")] + HRESULT GetIsTargetIppPrinter( + [out] BOOL* isIppPrinter + ); + + [helpstring("This method returns IppPrinterDevice for the target printer.")] + HRESULT GetTargetIppPrintDevice( + [in] REFIID riid, + [out, iid_is(riid)] void** ppvTarget + ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +typedef [v1_enum] enum PrintDocumentPackageCompletion +{ + PrintDocumentPackageCompletion_InProgress = 0, + PrintDocumentPackageCompletion_Completed, + PrintDocumentPackageCompletion_Canceled, + PrintDocumentPackageCompletion_Failed +} PrintDocumentPackageCompletion; + +typedef struct +{ + UINT32 JobId; + INT32 CurrentDocument; + INT32 CurrentPage; + INT32 CurrentPageTotal; + PrintDocumentPackageCompletion Completion; + HRESULT PackageStatus; +} PrintDocumentPackageStatus; + +[ + object, + uuid(ed90c8ad-5c34-4d05-a1ec-0e8a9b3ad7af), + dual, + nonextensible +] +/// Com event implemented by clients, who want to listen print job progress. +interface IPrintDocumentPackageStatusEvent : IDispatch +{ + [id(1), helpstring("This method is called for updating package status when the progressive print job event signals or job completes.")] + HRESULT PackageStatusUpdated( + [in] PrintDocumentPackageStatus* packageStatus + ); +}; + +[ + object, + uuid(d2959bf7-b31b-4a3d-9600-712eb1335ba4), + helpstring("Document Target IPrintDocumentPackageTargetFactory interface for starting your print job on IPrintDocumentPackageTarget.") +] +interface IPrintDocumentPackageTargetFactory : IUnknown +{ + [helpstring("This method is the entry point for creating IPrintDocumentPackageTarget.")] + HRESULT CreateDocumentPackageTargetForPrintJob( + [in, string] LPCWSTR printerName, + [in, string] LPCWSTR jobName, + // application must set seek pointer to original before specifying the job output stream. + [in] IStream* jobOutputStream, + [in] IStream* jobPrintTicketStream, + [out] IPrintDocumentPackageTarget** docPackageTarget + ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +[ + uuid(410d76f7-8bb5-4a7d-9d37-9c71b1b14d14), + version(1.0), + helpstring("Document Target Interface Library") +] + +library PrintDocumentTargetLib +{ +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +interface IPrintDocumentPackageTarget; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +enum PrintDocumentPackageCompletion; +interface IPrintDocumentPackageStatusEvent; +interface IPrintDocumentPackageTargetFactory; + +[ + uuid(4842669e-9947-46ea-8ba2-d8cce432c2ca), + noncreatable +] +/// Declare a coclass for IPrintDocumentPackageTarget so that we can associate IPrintDocumentPackageTargetEvent with it. +coclass PrintDocumentPackageTarget +{ + [default] interface IPrintDocumentPackageTarget; + [source] dispinterface IPrintDocumentPackageStatusEvent; +}; + +[ + uuid(348ef17d-6c81-4982-92b4-ee188a43867a) +] +coclass PrintDocumentPackageTargetFactory +{ + [default] interface IPrintDocumentPackageTargetFactory; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +}; + +cpp_quote("DEFINE_GUID(ID_DOCUMENTPACKAGETARGET_MSXPS, 0x9cae40a8, 0xded1, 0x41c9, 0xa9, 0xfd, 0xd7, 0x35, 0xef, 0x33, 0xae, 0xda);") +cpp_quote("DEFINE_GUID(ID_DOCUMENTPACKAGETARGET_OPENXPS, 0x0056bb72, 0x8c9c, 0x4612, 0xbd, 0x0f, 0x93, 0x01, 0x2a, 0x87, 0x09, 0x9d);") + +cpp_quote("#endif // (NTDDI_VERSION >= NTDDI_WIN7)") + + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WINBLUE)") + +cpp_quote("DEFINE_GUID(ID_DOCUMENTPACKAGETARGET_OPENXPS_WITH_3D, 0x63dbd720, 0x8b14, 0x4577, 0xb0, 0x74, 0x7b, 0xb1, 0x1b, 0x59, 0x6d, 0x28);") + +cpp_quote("#endif // (NTDDI_VERSION >= NTDDI_WINBLUE)") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DownloadMgr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DownloadMgr.h new file mode 100644 index 0000000000000000000000000000000000000000..37ff418b6791c4b102b2e8152a3304691dd975a6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DownloadMgr.h @@ -0,0 +1,218 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __downloadmgr_h__ +#define __downloadmgr_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDownloadManager_FWD_DEFINED__ +#define __IDownloadManager_FWD_DEFINED__ +typedef interface IDownloadManager IDownloadManager; + +#endif /* __IDownloadManager_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_downloadmgr_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// downloadmgr.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma comment(lib,"uuid.lib") + +//---------------------------------------------------------------------------= +// Internet Explorer Download Manager Interfaces + +// -------------------------------------------------------------------------------- +// GUIDS +// -------------------------------------------------------------------------------- +// {988934A4-064B-11D3-BB80-00104B35E7F9} +DEFINE_GUID(IID_IDownloadManager, 0x988934a4, 0x064b, 0x11d3, 0xbb, 0x80, 0x0, 0x10, 0x4b, 0x35, 0xe7, 0xf9); +#define SID_SDownloadManager IID_IDownloadManager + + + +extern RPC_IF_HANDLE __MIDL_itf_downloadmgr_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_downloadmgr_0000_0000_v0_0_s_ifspec; + +#ifndef __IDownloadManager_INTERFACE_DEFINED__ +#define __IDownloadManager_INTERFACE_DEFINED__ + +/* interface IDownloadManager */ +/* [local][unique][uuid][object][helpstring] */ + + +EXTERN_C const IID IID_IDownloadManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("988934A4-064B-11D3-BB80-00104B35E7F9") + IDownloadManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Download( + /* [in] */ IMoniker *pmk, + /* [in] */ IBindCtx *pbc, + /* [in] */ DWORD dwBindVerb, + /* [in] */ LONG grfBINDF, + /* [in] */ BINDINFO *pBindInfo, + /* [in] */ LPCOLESTR pszHeaders, + /* [in] */ LPCOLESTR pszRedir, + /* [in] */ UINT uiCP) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDownloadManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDownloadManager * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDownloadManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDownloadManager * This); + + DECLSPEC_XFGVIRT(IDownloadManager, Download) + HRESULT ( STDMETHODCALLTYPE *Download )( + IDownloadManager * This, + /* [in] */ IMoniker *pmk, + /* [in] */ IBindCtx *pbc, + /* [in] */ DWORD dwBindVerb, + /* [in] */ LONG grfBINDF, + /* [in] */ BINDINFO *pBindInfo, + /* [in] */ LPCOLESTR pszHeaders, + /* [in] */ LPCOLESTR pszRedir, + /* [in] */ UINT uiCP); + + END_INTERFACE + } IDownloadManagerVtbl; + + interface IDownloadManager + { + CONST_VTBL struct IDownloadManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDownloadManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDownloadManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDownloadManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDownloadManager_Download(This,pmk,pbc,dwBindVerb,grfBINDF,pBindInfo,pszHeaders,pszRedir,uiCP) \ + ( (This)->lpVtbl -> Download(This,pmk,pbc,dwBindVerb,grfBINDF,pBindInfo,pszHeaders,pszRedir,uiCP) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDownloadManager_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_downloadmgr_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_downloadmgr_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_downloadmgr_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DownloadMgr.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DownloadMgr.idl new file mode 100644 index 0000000000000000000000000000000000000000..9fa934637d621648ed696f723308451680909c61 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DownloadMgr.idl @@ -0,0 +1,71 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +//-------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// downloadmgr.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//---------------------------------------------------------------------------=") +cpp_quote("// Internet Explorer Download Manager Interfaces") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// GUIDS") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// {988934A4-064B-11D3-BB80-00104B35E7F9}") +cpp_quote("DEFINE_GUID(IID_IDownloadManager, 0x988934a4, 0x064b, 0x11d3, 0xbb, 0x80, 0x0, 0x10, 0x4b, 0x35, 0xe7, 0xf9);") +cpp_quote("#define SID_SDownloadManager IID_IDownloadManager") + +#ifndef DO_NO_IMPORTS +import "unknwn.idl"; +import "ocidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; +#endif + + +interface IDownloadManager; +[ + helpstring("IDownloadManager interface"), + object, + uuid(988934A4-064B-11D3-BB80-00104B35E7F9), // IID_IDownloadManager + pointer_default(unique), + local +] +interface IDownloadManager : IUnknown +{ + HRESULT Download( + [in] IMoniker *pmk, // Identifies the object to be downloaded + [in] IBindCtx *pbc, // Stores information used by the moniker to bind + [in] DWORD dwBindVerb, // The action to be performed during the bind + [in] LONG grfBINDF, // Determines the use of URL encoding during the bind + [in] BINDINFO *pBindInfo, // Used to implement IBindStatusCallback::GetBindInfo + [in] LPCOLESTR pszHeaders, // Additional headers to use with IHttpNegotiate + [in] LPCOLESTR pszRedir, // The URL that the moniker is redirected to + [in] UINT uiCP // The code page of the object's display name + ); +}; + + + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DsGetDC.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DsGetDC.h new file mode 100644 index 0000000000000000000000000000000000000000..ec178be31a2ac36c3fb073dae20ffdeb0b73bc07 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DsGetDC.h @@ -0,0 +1,686 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1996-1999 Microsoft Corporation + +Module Name: + + dsgetdc.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for the DsGetDcName API. + +Environment: + + User Mode - Win32 + +Notes: + +--*/ + + +#ifndef _DSGETDC_ +#define _DSGETDC_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#if !defined(_DSGETDCAPI_) +#define DSGETDCAPI DECLSPEC_IMPORT +#else +#define DSGETDCAPI +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Structure definitions +// + +// +// Flags to passed to DsGetDcName +// + +#define DS_FORCE_REDISCOVERY 0x00000001 + +#define DS_DIRECTORY_SERVICE_REQUIRED 0x00000010 +#define DS_DIRECTORY_SERVICE_PREFERRED 0x00000020 +#define DS_GC_SERVER_REQUIRED 0x00000040 +#define DS_PDC_REQUIRED 0x00000080 +#define DS_BACKGROUND_ONLY 0x00000100 +#define DS_IP_REQUIRED 0x00000200 +#define DS_KDC_REQUIRED 0x00000400 +#define DS_TIMESERV_REQUIRED 0x00000800 +#define DS_WRITABLE_REQUIRED 0x00001000 +#define DS_GOOD_TIMESERV_PREFERRED 0x00002000 +#define DS_AVOID_SELF 0x00004000 +#define DS_ONLY_LDAP_NEEDED 0x00008000 + + +#define DS_IS_FLAT_NAME 0x00010000 +#define DS_IS_DNS_NAME 0x00020000 + +#define DS_TRY_NEXTCLOSEST_SITE 0x00040000 + +#define DS_DIRECTORY_SERVICE_6_REQUIRED 0x00080000 + +#define DS_WEB_SERVICE_REQUIRED 0x00100000 + +#define DS_DIRECTORY_SERVICE_8_REQUIRED 0x00200000 + +#define DS_DIRECTORY_SERVICE_9_REQUIRED 0x00400000 + +#define DS_DIRECTORY_SERVICE_10_REQUIRED 0x00800000 + +#define DS_KEY_LIST_SUPPORT_REQUIRED 0x01000000 + +#define DS_DIRECTORY_SERVICE_13_REQUIRED 0x02000000 + +#define DS_RETURN_DNS_NAME 0x40000000 +#define DS_RETURN_FLAT_NAME 0x80000000 + +#define DSGETDC_VALID_FLAGS ( \ + DS_FORCE_REDISCOVERY | \ + DS_DIRECTORY_SERVICE_REQUIRED | \ + DS_DIRECTORY_SERVICE_PREFERRED | \ + DS_GC_SERVER_REQUIRED | \ + DS_PDC_REQUIRED | \ + DS_BACKGROUND_ONLY | \ + DS_IP_REQUIRED | \ + DS_KDC_REQUIRED | \ + DS_TIMESERV_REQUIRED | \ + DS_WRITABLE_REQUIRED | \ + DS_GOOD_TIMESERV_PREFERRED | \ + DS_AVOID_SELF | \ + DS_ONLY_LDAP_NEEDED | \ + DS_IS_FLAT_NAME | \ + DS_IS_DNS_NAME | \ + DS_TRY_NEXTCLOSEST_SITE | \ + DS_DIRECTORY_SERVICE_6_REQUIRED | \ + DS_DIRECTORY_SERVICE_8_REQUIRED | \ + DS_DIRECTORY_SERVICE_9_REQUIRED | \ + DS_DIRECTORY_SERVICE_10_REQUIRED | \ + DS_KEY_LIST_SUPPORT_REQUIRED | \ + DS_DIRECTORY_SERVICE_13_REQUIRED | \ + DS_WEB_SERVICE_REQUIRED | \ + DS_RETURN_FLAT_NAME | \ + DS_RETURN_DNS_NAME ) + +#define DS_DIRECTORY_SERVICE_ALL_VERSIONS ( \ + DS_DIRECTORY_SERVICE_REQUIRED | \ + DS_DIRECTORY_SERVICE_6_REQUIRED | \ + DS_DIRECTORY_SERVICE_8_REQUIRED | \ + DS_DIRECTORY_SERVICE_9_REQUIRED | \ + DS_DIRECTORY_SERVICE_10_REQUIRED | \ + DS_DIRECTORY_SERVICE_13_REQUIRED ) + +// +// Structure returned from DsGetDcName +// + +typedef struct _DOMAIN_CONTROLLER_INFOA { + LPSTR DomainControllerName; + LPSTR DomainControllerAddress; + ULONG DomainControllerAddressType; + GUID DomainGuid; + LPSTR DomainName; + LPSTR DnsForestName; + ULONG Flags; + LPSTR DcSiteName; + LPSTR ClientSiteName; +} DOMAIN_CONTROLLER_INFOA, *PDOMAIN_CONTROLLER_INFOA; + +typedef struct _DOMAIN_CONTROLLER_INFOW { +#ifdef MIDL_PASS + [string,unique] wchar_t *DomainControllerName; +#else // MIDL_PASS + LPWSTR DomainControllerName; +#endif // MIDL_PASS +#ifdef MIDL_PASS + [string,unique] wchar_t *DomainControllerAddress; +#else // MIDL_PASS + LPWSTR DomainControllerAddress; +#endif // MIDL_PASS + ULONG DomainControllerAddressType; + GUID DomainGuid; +#ifdef MIDL_PASS + [string,unique] wchar_t *DomainName; +#else // MIDL_PASS + LPWSTR DomainName; +#endif // MIDL_PASS +#ifdef MIDL_PASS + [string,unique] wchar_t *DnsForestName; +#else // MIDL_PASS + LPWSTR DnsForestName; +#endif // MIDL_PASS + ULONG Flags; +#ifdef MIDL_PASS + [string,unique] wchar_t *DcSiteName; +#else // MIDL_PASS + LPWSTR DcSiteName; +#endif // MIDL_PASS +#ifdef MIDL_PASS + [string,unique] wchar_t *ClientSiteName; +#else // MIDL_PASS + LPWSTR ClientSiteName; +#endif // MIDL_PASS +} DOMAIN_CONTROLLER_INFOW, *PDOMAIN_CONTROLLER_INFOW; + +#ifdef UNICODE +#define DOMAIN_CONTROLLER_INFO DOMAIN_CONTROLLER_INFOW +#define PDOMAIN_CONTROLLER_INFO PDOMAIN_CONTROLLER_INFOW +#else +#define DOMAIN_CONTROLLER_INFO DOMAIN_CONTROLLER_INFOA +#define PDOMAIN_CONTROLLER_INFO PDOMAIN_CONTROLLER_INFOA +#endif // !UNICODE + +// +// Values for DomainControllerAddressType +// + +#define DS_INET_ADDRESS 1 +#define DS_NETBIOS_ADDRESS 2 + +// +// Values for returned Flags +// + +#define DS_PDC_FLAG 0x00000001 // DC is PDC of Domain +#define DS_GC_FLAG 0x00000004 // DC is a GC of forest +#define DS_LDAP_FLAG 0x00000008 // Server supports an LDAP server +#define DS_DS_FLAG 0x00000010 // DC supports a DS and is a Domain Controller +#define DS_KDC_FLAG 0x00000020 // DC is running KDC service +#define DS_TIMESERV_FLAG 0x00000040 // DC is running time service +#define DS_CLOSEST_FLAG 0x00000080 // DC is in closest site to client +#define DS_WRITABLE_FLAG 0x00000100 // DC has a writable DS +#define DS_GOOD_TIMESERV_FLAG 0x00000200 // DC is running time service (and has clock hardware) +#define DS_NDNC_FLAG 0x00000400 // DomainName is non-domain NC serviced by the LDAP server +#define DS_SELECT_SECRET_DOMAIN_6_FLAG 0x00000800 // DC has some secrets +#define DS_FULL_SECRET_DOMAIN_6_FLAG 0x00001000 // DC has all secrets +#define DS_WS_FLAG 0x00002000 // DC is running web service +#define DS_DS_8_FLAG 0x00004000 // DC is running Windows Server 2008 or later +#define DS_DS_9_FLAG 0x00008000 // DC is running Windows Server 2008R2 or later +#define DS_DS_10_FLAG 0x00010000 // DC is running Windows Server 2016 or later +#define DS_KEY_LIST_FLAG 0x00020000 // DC supports key list requests +#define DS_DS_13_FLAG 0x00040000 // DC is running Windows Server 2025 or later +#define DS_PING_FLAGS 0x000FFFFF // Flags returned on ping + +#define DS_DNS_CONTROLLER_FLAG 0x20000000 // DomainControllerName is a DNS name +#define DS_DNS_DOMAIN_FLAG 0x40000000 // DomainName is a DNS name +#define DS_DNS_FOREST_FLAG 0x80000000 // DnsForestName is a DNS name + + +// +// Function Prototypes +// + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsGetDcNameA( + _In_opt_ LPCSTR ComputerName, + _In_opt_ LPCSTR DomainName, + _In_opt_ GUID *DomainGuid, + _In_opt_ LPCSTR SiteName, + _In_ ULONG Flags, + _Outptr_result_nullonfailure_ PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo + ); + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsGetDcNameW( + _In_opt_ LPCWSTR ComputerName, + _In_opt_ LPCWSTR DomainName, + _In_opt_ GUID *DomainGuid, + _In_opt_ LPCWSTR SiteName, + _In_ ULONG Flags, + _Outptr_result_nullonfailure_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo + ); + +#ifdef UNICODE +#define DsGetDcName DsGetDcNameW +#else +#define DsGetDcName DsGetDcNameA +#endif // !UNICODE + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsGetSiteNameA( + _In_opt_ LPCSTR ComputerName, + _Outptr_result_nullonfailure_ LPSTR *SiteName + ); + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsGetSiteNameW( + _In_opt_ LPCWSTR ComputerName, + _Outptr_result_nullonfailure_ LPWSTR *SiteName + ); + +#ifdef UNICODE +#define DsGetSiteName DsGetSiteNameW +#else +#define DsGetSiteName DsGetSiteNameA +#endif // !UNICODE + +DSGETDCAPI +DWORD +WINAPI +DsValidateSubnetNameW( + _In_ LPCWSTR SubnetName + ); + +DSGETDCAPI +DWORD +WINAPI +DsValidateSubnetNameA( + _In_ LPCSTR SubnetName + ); + +#ifdef UNICODE +#define DsValidateSubnetName DsValidateSubnetNameW +#else +#define DsValidateSubnetName DsValidateSubnetNameA +#endif // !UNICODE + + +// +// Only include if winsock2.h has been included +// +#ifdef _WINSOCK2API_ + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsAddressToSiteNamesW( + _In_opt_ LPCWSTR ComputerName, + _In_ DWORD EntryCount, + _In_reads_(EntryCount) PSOCKET_ADDRESS SocketAddresses, + _Outptr_result_nullonfailure_ _Outptr_result_buffer_(EntryCount) LPWSTR **SiteNames + ); + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsAddressToSiteNamesA( + _In_opt_ LPCSTR ComputerName, + _In_ DWORD EntryCount, + _In_reads_(EntryCount) PSOCKET_ADDRESS SocketAddresses, + _Outptr_result_nullonfailure_ _Outptr_result_buffer_(EntryCount) LPSTR **SiteNames + ); + +#ifdef UNICODE +#define DsAddressToSiteNames DsAddressToSiteNamesW +#else +#define DsAddressToSiteNames DsAddressToSiteNamesA +#endif // !UNICODE + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsAddressToSiteNamesExW( + _In_opt_ LPCWSTR ComputerName, + _In_ DWORD EntryCount, + _In_reads_(EntryCount) PSOCKET_ADDRESS SocketAddresses, + _Outptr_result_nullonfailure_ _Outptr_result_buffer_(EntryCount) LPWSTR **SiteNames, + _Outptr_result_nullonfailure_ _Outptr_result_buffer_(EntryCount) LPWSTR **SubnetNames + ); + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsAddressToSiteNamesExA( + _In_opt_ LPCSTR ComputerName, + _In_ DWORD EntryCount, + _In_reads_(EntryCount) PSOCKET_ADDRESS SocketAddresses, + _Outptr_result_nullonfailure_ _Outptr_result_buffer_(EntryCount) LPSTR **SiteNames, + _Outptr_result_nullonfailure_ _Outptr_result_buffer_(EntryCount) LPSTR **SubnetNames + ); + +#ifdef UNICODE +#define DsAddressToSiteNamesEx DsAddressToSiteNamesExW +#else +#define DsAddressToSiteNamesEx DsAddressToSiteNamesExA +#endif // !UNICODE +#endif // _WINSOCK2API_ + +// +// API to enumerate trusted domains +// + +typedef struct _DS_DOMAIN_TRUSTSW { + + // + // Name of the trusted domain. + // +#ifdef MIDL_PASS + [string] wchar_t * NetbiosDomainName; + [string] wchar_t * DnsDomainName; +#else // MIDL_PASS + LPWSTR NetbiosDomainName; + LPWSTR DnsDomainName; +#endif // MIDL_PASS + + + // + // Flags defining attributes of the trust. + // + ULONG Flags; +#define DS_DOMAIN_IN_FOREST 0x0001 // Domain is a member of the forest +#define DS_DOMAIN_DIRECT_OUTBOUND 0x0002 // Domain is directly trusted +#define DS_DOMAIN_TREE_ROOT 0x0004 // Domain is root of a tree in the forest +#define DS_DOMAIN_PRIMARY 0x0008 // Domain is the primary domain of queried server +#define DS_DOMAIN_NATIVE_MODE 0x0010 // Primary domain is running in native mode +#define DS_DOMAIN_DIRECT_INBOUND 0x0020 // Domain is directly trusting +#define DS_DOMAIN_VALID_FLAGS ( \ + DS_DOMAIN_IN_FOREST | \ + DS_DOMAIN_DIRECT_OUTBOUND | \ + DS_DOMAIN_TREE_ROOT | \ + DS_DOMAIN_PRIMARY | \ + DS_DOMAIN_NATIVE_MODE | \ + DS_DOMAIN_DIRECT_INBOUND ) + + // + // Index to the domain that is the parent of this domain. + // Only defined if NETLOGON_DOMAIN_IN_FOREST is set and + // NETLOGON_DOMAIN_TREE_ROOT is not set. + // + ULONG ParentIndex; + + // + // The trust type and attributes of this trust. + // + // If NETLOGON_DOMAIN_DIRECTLY_TRUSTED is not set, + // these value are infered. + // + ULONG TrustType; + ULONG TrustAttributes; + + // + // The SID of the trusted domain. + // + // If NETLOGON_DOMAIN_DIRECTLY_TRUSTED is not set, + // this value will be NULL. + // +#if defined(MIDL_PASS) + PISID DomainSid; +#else + PSID DomainSid; +#endif + + // + // The GUID of the trusted domain. + // + + GUID DomainGuid; + +} DS_DOMAIN_TRUSTSW, *PDS_DOMAIN_TRUSTSW; + +// +// ANSI version of the above struct +// +typedef struct _DS_DOMAIN_TRUSTSA { + LPSTR NetbiosDomainName; + LPSTR DnsDomainName; + ULONG Flags; + ULONG ParentIndex; + ULONG TrustType; + ULONG TrustAttributes; + PSID DomainSid; + GUID DomainGuid; +} DS_DOMAIN_TRUSTSA, *PDS_DOMAIN_TRUSTSA; + +#ifdef UNICODE +#define DS_DOMAIN_TRUSTS DS_DOMAIN_TRUSTSW +#define PDS_DOMAIN_TRUSTS PDS_DOMAIN_TRUSTSW +#else +#define DS_DOMAIN_TRUSTS DS_DOMAIN_TRUSTSA +#define PDS_DOMAIN_TRUSTS PDS_DOMAIN_TRUSTSA +#endif // !UNICODE + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsEnumerateDomainTrustsW ( + _In_opt_ LPWSTR ServerName, + _In_ ULONG Flags, + _Outptr_result_nullonfailure_ _Outptr_result_buffer_(*DomainCount) PDS_DOMAIN_TRUSTSW *Domains, + _Out_ PULONG DomainCount + ); + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsEnumerateDomainTrustsA ( + _In_opt_ LPSTR ServerName, + _In_ ULONG Flags, + _Outptr_result_nullonfailure_ _Outptr_result_buffer_(*DomainCount) PDS_DOMAIN_TRUSTSA *Domains, + _Out_ PULONG DomainCount + ); + +#ifdef UNICODE +#define DsEnumerateDomainTrusts DsEnumerateDomainTrustsW +#else +#define DsEnumerateDomainTrusts DsEnumerateDomainTrustsA +#endif // !UNICODE + +// +// Only define this API if the caller has #included the pre-requisite +// ntlsa.h or ntsecapi.h +// + +#if defined(_NTLSA_) || defined(_NTSECAPI_) + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsGetForestTrustInformationW ( + _In_opt_ LPCWSTR ServerName, + _In_opt_ LPCWSTR TrustedDomainName, + _In_ DWORD Flags, + _Outptr_result_nullonfailure_ PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo + ); + +#define DS_GFTI_UPDATE_TDO 0x1 // Update TDO with information returned +#define DS_GFTI_VALID_FLAGS 0x1 // All valid flags to DsGetForestTrustInformation + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsMergeForestTrustInformationW( + _In_ LPCWSTR DomainName, + _In_ PLSA_FOREST_TRUST_INFORMATION NewForestTrustInfo, + _In_opt_ PLSA_FOREST_TRUST_INFORMATION OldForestTrustInfo, + _Outptr_result_nullonfailure_ PLSA_FOREST_TRUST_INFORMATION *MergedForestTrustInfo + ); + +#endif // _NTLSA_ || _NTSECAPI_ + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsGetDcSiteCoverageW( + _In_opt_ LPCWSTR ServerName, + _Out_ PULONG EntryCount, + _Outptr_result_nullonfailure_ _Outptr_result_buffer_(*EntryCount) LPWSTR **SiteNames + ); + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsGetDcSiteCoverageA( + _In_opt_ LPCSTR ServerName, + _Out_ PULONG EntryCount, + _Outptr_result_nullonfailure_ _Outptr_result_buffer_(*EntryCount) LPSTR **SiteNames + ); + +#ifdef UNICODE +#define DsGetDcSiteCoverage DsGetDcSiteCoverageW +#else +#define DsGetDcSiteCoverage DsGetDcSiteCoverageA +#endif // !UNICODE + +DSGETDCAPI +DWORD +WINAPI +DsDeregisterDnsHostRecordsW ( + _In_opt_ LPWSTR ServerName, + _In_opt_ LPWSTR DnsDomainName, + _In_opt_ GUID *DomainGuid, + _In_opt_ GUID *DsaGuid, + _In_ LPWSTR DnsHostName + ); + +DSGETDCAPI +DWORD +WINAPI +DsDeregisterDnsHostRecordsA ( + _In_opt_ LPSTR ServerName, + _In_opt_ LPSTR DnsDomainName, + _In_opt_ GUID *DomainGuid, + _In_opt_ GUID *DsaGuid, + _In_ LPSTR DnsHostName + ); + +#ifdef UNICODE +#define DsDeregisterDnsHostRecords DsDeregisterDnsHostRecordsW +#else +#define DsDeregisterDnsHostRecords DsDeregisterDnsHostRecordsA +#endif // !UNICODE + + +#ifdef _WINSOCK2API_ // DsGetDcOpen/Next/Close depend on winsock2.h be included + +// +// Option flags passed to DsGetDcOpen +// + +#define DS_ONLY_DO_SITE_NAME 0x01 // Non-site specific names should be avoided. +#define DS_NOTIFY_AFTER_SITE_RECORDS 0x02 // Return ERROR_FILEMARK_DETECTED after all + // site specific records have been processed. + +#define DS_OPEN_VALID_OPTION_FLAGS ( DS_ONLY_DO_SITE_NAME | DS_NOTIFY_AFTER_SITE_RECORDS ) + +// +// Valid DcFlags for DsGetDcOpen +// + +#define DS_OPEN_VALID_FLAGS ( \ + DS_FORCE_REDISCOVERY | \ + DS_ONLY_LDAP_NEEDED | \ + DS_KDC_REQUIRED | \ + DS_PDC_REQUIRED | \ + DS_GC_SERVER_REQUIRED | \ + DS_WRITABLE_REQUIRED ) + + +DSGETDCAPI +DWORD +WINAPI +DsGetDcOpenW( + _In_ LPCWSTR DnsName, + _In_ ULONG OptionFlags, + _In_opt_ LPCWSTR SiteName, + _In_opt_ GUID *DomainGuid, + _In_opt_ LPCWSTR DnsForestName, + _In_ ULONG DcFlags, + _Out_ PHANDLE RetGetDcContext + ); + +DSGETDCAPI +DWORD +WINAPI +DsGetDcOpenA( + _In_ LPCSTR DnsName, + _In_ ULONG OptionFlags, + _In_opt_ LPCSTR SiteName, + _In_opt_ GUID *DomainGuid, + _In_opt_ LPCSTR DnsForestName, + _In_ ULONG DcFlags, + _Out_ PHANDLE RetGetDcContext + ); + +#ifdef UNICODE +#define DsGetDcOpen DsGetDcOpenW +#else +#define DsGetDcOpen DsGetDcOpenA +#endif // !UNICODE + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsGetDcNextW( + _In_ HANDLE GetDcContextHandle, + _Out_opt_ PULONG SockAddressCount, + _Outptr_opt_result_buffer_(*SockAddressCount) LPSOCKET_ADDRESS *SockAddresses, + _Outptr_opt_result_nullonfailure_ LPWSTR *DnsHostName + ); + +_Success_(return == ERROR_SUCCESS) +DSGETDCAPI +DWORD +WINAPI +DsGetDcNextA( + _In_ HANDLE GetDcContextHandle, + _Out_opt_ PULONG SockAddressCount, + _Outptr_opt_result_buffer_(*SockAddressCount) LPSOCKET_ADDRESS *SockAddresses, + _Outptr_opt_result_nullonfailure_ LPSTR *DnsHostName + ); + +#ifdef UNICODE +#define DsGetDcNext DsGetDcNextW +#else +#define DsGetDcNext DsGetDcNextA +#endif // !UNICODE + +DSGETDCAPI +VOID +WINAPI +DsGetDcCloseW( + _In_ HANDLE GetDcContextHandle + ); + +#ifdef UNICODE +#define DsGetDcClose DsGetDcCloseW +#else +#define DsGetDcClose DsGetDcCloseW // same for ANSI +#endif // !UNICODE + +#endif // _WINSOCK2API_ + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _DSGETDC_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DskQuota.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DskQuota.h new file mode 100644 index 0000000000000000000000000000000000000000..bb349ec0bb3be8b04736669338ec9a31795980d4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DskQuota.h @@ -0,0 +1,390 @@ +/************************************************************************** +* * +* dskquota.h -- public header for Windows 2000 disk quota interfaces. * +* * +* Copyright (c) 1991-1999, Microsoft Corp. All rights reserved. * +* * +**************************************************************************/ +#ifndef __DSKQUOTA_H +#define __DSKQUOTA_H + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifndef _WINDOWS_ +#include +#endif + +#ifndef _OLE2_H_ +#include +#endif + +#ifndef _OLECTL_H_ +#include +#endif + +#ifdef INITGUIDS +#include +#endif + + +// +// Class IDs +// +// {7988B571-EC89-11cf-9C00-00AA00A14F56} +DEFINE_GUID(CLSID_DiskQuotaControl, +0x7988b571, 0xec89, 0x11cf, 0x9c, 0x0, 0x0, 0xaa, 0x0, 0xa1, 0x4f, 0x56); + +// +// Interface IDs +// +// {7988B572-EC89-11cf-9C00-00AA00A14F56} +DEFINE_GUID(IID_IDiskQuotaControl, +0x7988b572, 0xec89, 0x11cf, 0x9c, 0x0, 0x0, 0xaa, 0x0, 0xa1, 0x4f, 0x56); + +// {7988B574-EC89-11cf-9C00-00AA00A14F56} +DEFINE_GUID(IID_IDiskQuotaUser, +0x7988b574, 0xec89, 0x11cf, 0x9c, 0x0, 0x0, 0xaa, 0x0, 0xa1, 0x4f, 0x56); + +// {7988B576-EC89-11cf-9C00-00AA00A14F56} +DEFINE_GUID(IID_IDiskQuotaUserBatch, +0x7988b576, 0xec89, 0x11cf, 0x9c, 0x0, 0x0, 0xaa, 0x0, 0xa1, 0x4f, 0x56); + +// {7988B577-EC89-11cf-9C00-00AA00A14F56} +DEFINE_GUID(IID_IEnumDiskQuotaUsers, +0x7988b577, 0xec89, 0x11cf, 0x9c, 0x0, 0x0, 0xaa, 0x0, 0xa1, 0x4f, 0x56); + +// {7988B579-EC89-11cf-9C00-00AA00A14F56} +DEFINE_GUID(IID_IDiskQuotaEvents, +0x7988b579, 0xec89, 0x11cf, 0x9c, 0x0, 0x0, 0xaa, 0x0, 0xa1, 0x4f, 0x56); + + +// +// Definitions for value and bits in DWORD returned by +// IDiskQuotaControl::GetQuotaState. +// +#define DISKQUOTA_STATE_DISABLED 0x00000000 +#define DISKQUOTA_STATE_TRACK 0x00000001 +#define DISKQUOTA_STATE_ENFORCE 0x00000002 +#define DISKQUOTA_STATE_MASK 0x00000003 +#define DISKQUOTA_FILESTATE_INCOMPLETE 0x00000100 +#define DISKQUOTA_FILESTATE_REBUILDING 0x00000200 +#define DISKQUOTA_FILESTATE_MASK 0x00000300 + +// +// Helper macros for setting and testing state value. +// +#define DISKQUOTA_SET_DISABLED(s) \ + ((s) &= ~DISKQUOTA_STATE_MASK) + +#define DISKQUOTA_SET_TRACKED(s) \ + ((s) |= (DISKQUOTA_STATE_MASK & DISKQUOTA_STATE_TRACK)) + +#define DISKQUOTA_SET_ENFORCED(s) \ + ((s) |= (DISKQUOTA_STATE_ENFORCE & DISKQUOTA_STATE_ENFORCE)) + +#define DISKQUOTA_IS_DISABLED(s) \ + (DISKQUOTA_STATE_DISABLED == ((s) & DISKQUOTA_STATE_MASK)) + +#define DISKQUOTA_IS_TRACKED(s) \ + (DISKQUOTA_STATE_TRACK == ((s) & DISKQUOTA_STATE_MASK)) + +#define DISKQUOTA_IS_ENFORCED(s) \ + (DISKQUOTA_STATE_ENFORCE == ((s) & DISKQUOTA_STATE_MASK)) +// +// These file state flags are read-only. +// +#define DISKQUOTA_FILE_INCOMPLETE(s) \ + (0 != ((s) & DISKQUOTA_FILESTATE_INCOMPLETE)) + +#define DISKQUOTA_FILE_REBUILDING(s) \ + (0 != ((s) & DISKQUOTA_FILESTATE_REBUILDING)) + + +// +// Definitions for bits in DWORD returned by +// IDiskQuotaControl::GetQuotaLogFlags. +// +#define DISKQUOTA_LOGFLAG_USER_THRESHOLD 0x00000001 +#define DISKQUOTA_LOGFLAG_USER_LIMIT 0x00000002 + +// +// Helper macros to interrogate a log flags DWORD. +// +#define DISKQUOTA_IS_LOGGED_USER_THRESHOLD(f) \ + (0 != ((f) & DISKQUOTA_LOGFLAG_USER_THRESHOLD)) + +#define DISKQUOTA_IS_LOGGED_USER_LIMIT(f) \ + (0 != ((f) & DISKQUOTA_LOGFLAG_USER_LIMIT)) + +// +// Helper macros to set/clear bits in a log flags DWORD. +// +#define DISKQUOTA_SET_LOG_USER_THRESHOLD(f,yn) \ + ((f &= ~DISKQUOTA_LOGFLAG_USER_THRESHOLD) |= ((yn) ? DISKQUOTA_LOGFLAG_USER_THRESHOLD : 0)) + +#define DISKQUOTA_SET_LOG_USER_LIMIT(f,yn) \ + ((f &= ~DISKQUOTA_LOGFLAG_USER_LIMIT) |= ((yn) ? DISKQUOTA_LOGFLAG_USER_LIMIT : 0)) + +// +// Per-user quota information. +// +typedef struct DiskQuotaUserInformation { + LONGLONG QuotaUsed; + LONGLONG QuotaThreshold; + LONGLONG QuotaLimit; +} DISKQUOTA_USER_INFORMATION, *PDISKQUOTA_USER_INFORMATION; + + +// +// Values for fNameResolution argument to: +// +// IDiskQuotaControl::AddUserSid +// IDiskQuotaControl::AddUserName +// IDiskQuotaControl::FindUserSid +// IDiskQuotaControl::CreateEnumUsers +// +#define DISKQUOTA_USERNAME_RESOLVE_NONE 0 +#define DISKQUOTA_USERNAME_RESOLVE_SYNC 1 +#define DISKQUOTA_USERNAME_RESOLVE_ASYNC 2 + +// +// Values for status returned by IDiskQuotaUser::GetAccountStatus. +// +#define DISKQUOTA_USER_ACCOUNT_RESOLVED 0 +#define DISKQUOTA_USER_ACCOUNT_UNAVAILABLE 1 +#define DISKQUOTA_USER_ACCOUNT_DELETED 2 +#define DISKQUOTA_USER_ACCOUNT_INVALID 3 +#define DISKQUOTA_USER_ACCOUNT_UNKNOWN 4 +#define DISKQUOTA_USER_ACCOUNT_UNRESOLVED 5 + + +// +// IDiskQuotaUser represents a single user quota record on a particular +// NTFS volume. Objects using this interface are instantiated +// through several IDiskQuotaControl methods. +// +#undef INTERFACE +#define INTERFACE IDiskQuotaUser +DECLARE_INTERFACE_IID_(IDiskQuotaUser, IUnknown, "7988B574-EC89-11cf-9C00-00AA00A14F56") +{ + STDMETHOD(GetID)(THIS_ + ULONG *pulID) PURE; + + STDMETHOD(GetName)(THIS_ + LPWSTR pszAccountContainer, + DWORD cchAccountContainer, + LPWSTR pszLogonName, + DWORD cchLogonName, + LPWSTR pszDisplayName, + DWORD cchDisplayName) PURE; + + STDMETHOD(GetSidLength)(THIS_ + LPDWORD pdwLength) PURE; + + STDMETHOD(GetSid)(THIS_ + LPBYTE pbSidBuffer, + DWORD cbSidBuffer) PURE; + + STDMETHOD(GetQuotaThreshold)(THIS_ + PLONGLONG pllThreshold) PURE; + + STDMETHOD(GetQuotaThresholdText)(THIS_ + LPWSTR pszText, + DWORD cchText) PURE; + + STDMETHOD(GetQuotaLimit)(THIS_ + PLONGLONG pllLimit) PURE; + + STDMETHOD(GetQuotaLimitText)(THIS_ + LPWSTR pszText, + DWORD cchText) PURE; + + STDMETHOD(GetQuotaUsed)(THIS_ + PLONGLONG pllUsed) PURE; + + STDMETHOD(GetQuotaUsedText)(THIS_ + LPWSTR pszText, + DWORD cchText) PURE; + + STDMETHOD(GetQuotaInformation)(THIS_ + LPVOID pbQuotaInfo, + DWORD cbQuotaInfo) PURE; + + STDMETHOD(SetQuotaThreshold)(THIS_ + LONGLONG llThreshold, + BOOL fWriteThrough) PURE; + + STDMETHOD(SetQuotaLimit)(THIS_ + LONGLONG llLimit, + BOOL fWriteThrough) PURE; + + STDMETHOD(Invalidate)(THIS) PURE; + + STDMETHOD(GetAccountStatus)(THIS_ + LPDWORD pdwStatus) PURE; +}; + +typedef IDiskQuotaUser DISKQUOTA_USER, *PDISKQUOTA_USER; + + +// +// IEnumDiskQuotaUsers represents an enumerator created by +// IDiskQuotaControl for the purpose of enumerating individual user quota +// records on a particular volume. Each record is represented through +// the IDiskQuotaUser interface. +// +#undef INTERFACE +#define INTERFACE IEnumDiskQuotaUsers +DECLARE_INTERFACE_IID_(IEnumDiskQuotaUsers, IUnknown, "7988B577-EC89-11cf-9C00-00AA00A14F56") +{ + STDMETHOD(Next)(THIS_ + DWORD cUsers, + PDISKQUOTA_USER *rgUsers, + LPDWORD pcUsersFetched) PURE; + + STDMETHOD(Skip)(THIS_ + DWORD cUsers) PURE; + + STDMETHOD(Reset)(THIS) PURE; + + STDMETHOD(Clone)(THIS_ + IEnumDiskQuotaUsers **ppEnum) PURE; +}; + +typedef IEnumDiskQuotaUsers ENUM_DISKQUOTA_USERS, *PENUM_DISKQUOTA_USERS; + + +// +// IDiskQuotaUserBatch represents a collection of IDiskQuotaUser +// pointers for the purpose of grouping updates to quota information. +// +#undef INTERFACE +#define INTERFACE IDiskQuotaUserBatch +DECLARE_INTERFACE_IID_(IDiskQuotaUserBatch, IUnknown, "7988B576-EC89-11cf-9C00-00AA00A14F56") +{ + STDMETHOD(Add)(THIS_ + PDISKQUOTA_USER pUser) PURE; + + STDMETHOD(Remove)(THIS_ + PDISKQUOTA_USER pUser) PURE; + + STDMETHOD(RemoveAll)(THIS) PURE; + + STDMETHOD(FlushToDisk)(THIS) PURE; +}; + +typedef IDiskQuotaUserBatch DISKQUOTA_USER_BATCH, *PDISKQUOTA_USER_BATCH; + + +// +// IDiskQuotaControl represents a disk volume, providing query and +// control of that volume's quota information. +// +#undef INTERFACE +#define INTERFACE IDiskQuotaControl +DECLARE_INTERFACE_IID_(IDiskQuotaControl, IConnectionPointContainer, "7988B572-EC89-11cf-9C00-00AA00A14F56") +{ + STDMETHOD(Initialize)(THIS_ + LPCWSTR pszPath, + BOOL bReadWrite) PURE; + + STDMETHOD(SetQuotaState)(THIS_ + DWORD dwState) PURE; + + STDMETHOD(GetQuotaState)(THIS_ + LPDWORD pdwState) PURE; + + STDMETHOD(SetQuotaLogFlags)(THIS_ + DWORD dwFlags) PURE; + + STDMETHOD(GetQuotaLogFlags)(THIS_ + LPDWORD pdwFlags) PURE; + + STDMETHOD(SetDefaultQuotaThreshold)(THIS_ + LONGLONG llThreshold) PURE; + + STDMETHOD(GetDefaultQuotaThreshold)(THIS_ + PLONGLONG pllThreshold) PURE; + + STDMETHOD(GetDefaultQuotaThresholdText)(THIS_ + LPWSTR pszText, + DWORD cchText) PURE; + + STDMETHOD(SetDefaultQuotaLimit)(THIS_ + LONGLONG llLimit) PURE; + + STDMETHOD(GetDefaultQuotaLimit)(THIS_ + PLONGLONG pllLimit) PURE; + + STDMETHOD(GetDefaultQuotaLimitText)(THIS_ + LPWSTR pszText, + DWORD cchText) PURE; + + STDMETHOD(AddUserSid)(THIS_ + PSID pUserSid, + DWORD fNameResolution, + PDISKQUOTA_USER *ppUser) PURE; + + STDMETHOD(AddUserName)(THIS_ + LPCWSTR pszLogonName, + DWORD fNameResolution, + PDISKQUOTA_USER *ppUser) PURE; + + STDMETHOD(DeleteUser)(THIS_ + PDISKQUOTA_USER pUser) PURE; + + STDMETHOD(FindUserSid)(THIS_ + PSID pUserSid, + DWORD fNameResolution, + PDISKQUOTA_USER *ppUser) PURE; + + STDMETHOD(FindUserName)(THIS_ + LPCWSTR pszLogonName, + PDISKQUOTA_USER *ppUser) PURE; + + STDMETHOD(CreateEnumUsers)(THIS_ + PSID *rgpUserSids, + DWORD cpSids, + DWORD fNameResolution, + PENUM_DISKQUOTA_USERS *ppEnum) PURE; + + STDMETHOD(CreateUserBatch)(THIS_ + PDISKQUOTA_USER_BATCH *ppBatch) PURE; + + STDMETHOD(InvalidateSidNameCache)(THIS) PURE; + + STDMETHOD(GiveUserNameResolutionPriority)(THIS_ + PDISKQUOTA_USER pUser) PURE; + + STDMETHOD(ShutdownNameResolution)(THIS) PURE; +}; + +typedef IDiskQuotaControl DISKQUOTA_CONTROL, *PDISKQUOTA_CONTROL; + + + +#undef INTERFACE +#define INTERFACE IDiskQuotaEvents +DECLARE_INTERFACE_IID_(IDiskQuotaEvents, IUnknown, "7988B579-EC89-11cf-9C00-00AA00A14F56") +{ + STDMETHOD(OnUserNameChanged)(THIS_ + PDISKQUOTA_USER pUser) PURE; +}; + +typedef IDiskQuotaEvents DISKQUOTA_EVENTS, *PDISKQUOTA_EVENTS; + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __DSKQUOTA_H + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DtcHelp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DtcHelp.h new file mode 100644 index 0000000000000000000000000000000000000000..224e95ea27fe34949d570b5a2327c41170ac2e4c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DtcHelp.h @@ -0,0 +1,236 @@ +/* ---------------------------------------------------------------------------- +Microsoft D.T.C (Distributed Transaction Coordinator) + +Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved. + +@doc + +@module DTCHelp.h | + + contains helper API for loading the DTCHelper DLL + +------------------------------------------------------------------------------- +@rev 0 | 8th -Sep-1995 | GaganC | Created +----------------------------------------------------------------------------- */ +#ifndef __DTCHELP_H__ +#define __DTCHELP_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +//--------------------------------------------------------- +// ALL INCLUDE FILES GO HERE +//--------------------------------------------------------- +#include + + +//--------------------------------------------------------- +// constants / enums / typedefs / defines +//--------------------------------------------------------- +#ifndef DEFINED_DTC_STATUS +typedef enum DTC_STATUS_ +{ + DTC_STATUS_UNKNOWN = 0, // Status not known + DTC_STATUS_STARTING = 1, // DTC is starting + DTC_STATUS_STARTED = 2, // DTC has started + DTC_STATUS_PAUSING = 3, // DTC is being paused + DTC_STATUS_PAUSED = 4, // DTC has been paused + DTC_STATUS_CONTINUING = 5, // DTC is being continued + DTC_STATUS_STOPPING = 6, // DTC is stopping + DTC_STATUS_STOPPED = 7, // DTC has stopped + DTC_STATUS_E_CANTCONTROL = 8, // DTC cannot be controlled in its present state + DTC_STATUS_FAILED = 9 // DTC has failed. +} DTC_STATUS; +#define DEFINED_DTC_STATUS +#endif + +typedef HRESULT (__cdecl * DTC_GET_TRANSACTION_MANAGER)( + /* in */ char * pszHost, + /* in */ char * pszTmName, + /* in */ REFIID rid, + /* in */ DWORD dwReserved1, + /* in */ WORD wcbReserved2, + /* in */ void FAR * pvReserved2, + /*out */ void** ppvObject ) ; + +typedef HRESULT (__cdecl * DTC_GET_TRANSACTION_MANAGER_EX_A)( + /* in */ char * i_pszHost, + /* in */ char * i_pszTmName, + /* in */ REFIID i_riid, + /* in */ DWORD i_grfOptions, + /* in */ void * i_pvConfigParams, + /* out */ void ** o_ppvObject + ); + +typedef HRESULT (__cdecl * DTC_GET_TRANSACTION_MANAGER_EX_W)( + /* in */ WCHAR * i_pwszHost, + /* in */ WCHAR * i_pwszTmName, + /* in */ REFIID i_riid, + /* in */ DWORD i_grfOptions, + /* in */ void * i_pvConfigParams, + /* out */ void ** o_ppvObject + ); + +typedef HRESULT ( * DTC_INSTALL_CLIENT ) ( + LPTSTR i_pszRemoteTmHostName, + DWORD i_dwProtocol, + DWORD i_dwOverwrite ); + +#ifndef UNICODE + +#define DTC_GET_TRANSACTION_MANAGER_EX DTC_GET_TRANSACTION_MANAGER_EX_A +#define LoadDtcHelperEx LoadDtcHelperExA +#define GetDTCStatus GetDTCStatusA +#define StartDTC StartDTCA +#define StopDTC StopDTCA + +#else + +#define DTC_GET_TRANSACTION_MANAGER_EX DTC_GET_TRANSACTION_MANAGER_EX_W +#define LoadDtcHelperEx LoadDtcHelperExW +#define GetDTCStatus GetDTCStatusW +#define StartDTC StartDTCW +#define StopDTC StopDTCW + +#endif + + + +#define DTCINSTALL_E_CLIENT_ALREADY_INSTALLED 0x0000180L + +#define DTCINSTALL_E_SERVER_ALREADY_INSTALLED 0x0000181L + +//***** Install overwrite options +const DWORD DTC_INSTALL_OVERWRITE_CLIENT = 0x00000001; + // first bit from right, controls client overwrite + // 1=Overwrite existing client install + // 0=dont overwrite existing client install +const DWORD DTC_INSTALL_OVERWRITE_SERVER = 0x00000002; + // second bit from right, controls server overwrite + // 1=Overwrite existing server install + // 0=dont overwrite existing server install + +//--------------------------------------------------------- +// Function Prototypes +//--------------------------------------------------------- +#ifdef __cplusplus +extern "C" { +#endif + DTC_GET_TRANSACTION_MANAGER __cdecl LoadDtcHelper (void); + DTC_GET_TRANSACTION_MANAGER_EX_A __cdecl LoadDtcHelperExA (void); + DTC_GET_TRANSACTION_MANAGER_EX_W __cdecl LoadDtcHelperExW (void); + void __cdecl FreeDtcHelper (void); + + HMODULE __cdecl GetDtcLocaleResourceHandle(void); + + // Function: Initialize + // This function initialized all the function pointers needed to + // carry out other operations supported by this static library. + // It is optional to make this call. + // Returns - S_OK if all is fine, E_FAIL other wise. + // Note: this function is not thread safe + HRESULT __cdecl Initialize (void); + + // Function: Uninitialize + // This function unloads the dynamically loaded dlls. + // Returns - S_OK if all is fine, E_FAIL other wise. + // Note: this function is not thread safe + HRESULT __cdecl Uninitialize (void); + + // Function: GetDTCStatusW + // Unicode version of GetDTCStatus - used to get the status of the DTC service. + // The wszHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - the appropriate status from the enum DTC_STATUS + DTC_STATUS __cdecl GetDTCStatusW (_In_ LPWSTR wszHostName); + + // Function: GetDTCStatusA + // Ansi version of GetDTCStatus - used to get the status of the DTC service + // The szHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - the appropriate status from the enum DTC_STATUS + DTC_STATUS __cdecl GetDTCStatusA (_In_ LPSTR szHostName); + + // Function: StartDTCW + // Unicode version of StartDTC - used to start the DTC service. + // If the service is already started then the following is a no-op + // The wszHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - S_OK if all is ok + // E_FAIL if the operation failed for some reason. + // E_UNEXPECTED if an unexpected error occured. + HRESULT __cdecl StartDTCW (_In_ LPWSTR wszHostName); + + // Function: StartDTCA + // Ansi version of StartDTC - used to start the DTC service. + // If the service is already started then the following is a no-op + // The szHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - S_OK if all is ok + // E_FAIL if the operation failed for some reason. + // E_UNEXPECTED if an unexpected error occured. + HRESULT __cdecl StartDTCA (_In_ LPSTR szHostName); + + // Function: StopDTCW + // Unicode version of StopDTC - used to stop the DTC service. + // If the service is already stopped then the following is a no-op + // The wszHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - S_OK if all is ok + // E_FAIL if the operation failed for some reason. + // E_UNEXPECTED if an unexpected error occured. + HRESULT __cdecl StopDTCW (_In_ LPWSTR wszHostName); + + // Function: StopDTCA + // Ansi version of StopDTC - used to stop the DTC service. + // If the service is already stopped then the following is a no-op + // The szHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - S_OK if all is ok + // E_FAIL if the operation failed for some reason. + // E_UNEXPECTED if an unexpected error occured. + HRESULT __cdecl StopDTCA (_In_ LPSTR szHostName); + + + // Function: DtcInstallClient + // Installs the client version of DTC. + // Parameters: i_pszRemoteTmHostName - the name of the host tm, + // i_szProt - the protocol to use in string format + // 0x00000001 TCP/IP (1) + // 0x00000004 NetBEUI (4) + // + // i_dwOverwrite - overwrite previous install or not? + // DTC_INSTALL_OVERWRITE_CLIENT = 0x00000001; + // 0=Overwrite existing client install + // 1=dont overwrite existing client install + // DTC_INSTALL_OVERWRITE_SERVER = 0x00000002; + // 0=Overwrite existing server install + // 1=dont overwrite existing server install + // Returns - S_OK if all is ok + // E_FAIL if the operation failed for some reason + // E_UNEXPECTED if an unexpected error occured + HRESULT __cdecl DtcInstallClient(_In_ LPTSTR i_pszRemoteTmHostName, DWORD i_dwProtocol, DWORD i_dwOverwrite); +#ifdef __cplusplus +} +#endif + + +//--------------------------------------------------------- +// ALL ERRORS GO HERE +//--------------------------------------------------------- + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __DTCHELP_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.h new file mode 100644 index 0000000000000000000000000000000000000000..c89e6691edc430ed24e0ea587ae8955ce4197b95 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.h @@ -0,0 +1,13230 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dvbsiparser_h__ +#define __dvbsiparser_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDvbSiParser_FWD_DEFINED__ +#define __IDvbSiParser_FWD_DEFINED__ +typedef interface IDvbSiParser IDvbSiParser; + +#endif /* __IDvbSiParser_FWD_DEFINED__ */ + + +#ifndef __IDvbSiParser2_FWD_DEFINED__ +#define __IDvbSiParser2_FWD_DEFINED__ +typedef interface IDvbSiParser2 IDvbSiParser2; + +#endif /* __IDvbSiParser2_FWD_DEFINED__ */ + + +#ifndef __IIsdbSiParser2_FWD_DEFINED__ +#define __IIsdbSiParser2_FWD_DEFINED__ +typedef interface IIsdbSiParser2 IIsdbSiParser2; + +#endif /* __IIsdbSiParser2_FWD_DEFINED__ */ + + +#ifndef __IDVB_NIT_FWD_DEFINED__ +#define __IDVB_NIT_FWD_DEFINED__ +typedef interface IDVB_NIT IDVB_NIT; + +#endif /* __IDVB_NIT_FWD_DEFINED__ */ + + +#ifndef __IDVB_SDT_FWD_DEFINED__ +#define __IDVB_SDT_FWD_DEFINED__ +typedef interface IDVB_SDT IDVB_SDT; + +#endif /* __IDVB_SDT_FWD_DEFINED__ */ + + +#ifndef __IISDB_SDT_FWD_DEFINED__ +#define __IISDB_SDT_FWD_DEFINED__ +typedef interface IISDB_SDT IISDB_SDT; + +#endif /* __IISDB_SDT_FWD_DEFINED__ */ + + +#ifndef __IDVB_EIT_FWD_DEFINED__ +#define __IDVB_EIT_FWD_DEFINED__ +typedef interface IDVB_EIT IDVB_EIT; + +#endif /* __IDVB_EIT_FWD_DEFINED__ */ + + +#ifndef __IDVB_EIT2_FWD_DEFINED__ +#define __IDVB_EIT2_FWD_DEFINED__ +typedef interface IDVB_EIT2 IDVB_EIT2; + +#endif /* __IDVB_EIT2_FWD_DEFINED__ */ + + +#ifndef __IDVB_BAT_FWD_DEFINED__ +#define __IDVB_BAT_FWD_DEFINED__ +typedef interface IDVB_BAT IDVB_BAT; + +#endif /* __IDVB_BAT_FWD_DEFINED__ */ + + +#ifndef __IDVB_RST_FWD_DEFINED__ +#define __IDVB_RST_FWD_DEFINED__ +typedef interface IDVB_RST IDVB_RST; + +#endif /* __IDVB_RST_FWD_DEFINED__ */ + + +#ifndef __IDVB_ST_FWD_DEFINED__ +#define __IDVB_ST_FWD_DEFINED__ +typedef interface IDVB_ST IDVB_ST; + +#endif /* __IDVB_ST_FWD_DEFINED__ */ + + +#ifndef __IDVB_TDT_FWD_DEFINED__ +#define __IDVB_TDT_FWD_DEFINED__ +typedef interface IDVB_TDT IDVB_TDT; + +#endif /* __IDVB_TDT_FWD_DEFINED__ */ + + +#ifndef __IDVB_TOT_FWD_DEFINED__ +#define __IDVB_TOT_FWD_DEFINED__ +typedef interface IDVB_TOT IDVB_TOT; + +#endif /* __IDVB_TOT_FWD_DEFINED__ */ + + +#ifndef __IDVB_DIT_FWD_DEFINED__ +#define __IDVB_DIT_FWD_DEFINED__ +typedef interface IDVB_DIT IDVB_DIT; + +#endif /* __IDVB_DIT_FWD_DEFINED__ */ + + +#ifndef __IDVB_SIT_FWD_DEFINED__ +#define __IDVB_SIT_FWD_DEFINED__ +typedef interface IDVB_SIT IDVB_SIT; + +#endif /* __IDVB_SIT_FWD_DEFINED__ */ + + +#ifndef __IISDB_BIT_FWD_DEFINED__ +#define __IISDB_BIT_FWD_DEFINED__ +typedef interface IISDB_BIT IISDB_BIT; + +#endif /* __IISDB_BIT_FWD_DEFINED__ */ + + +#ifndef __IISDB_NBIT_FWD_DEFINED__ +#define __IISDB_NBIT_FWD_DEFINED__ +typedef interface IISDB_NBIT IISDB_NBIT; + +#endif /* __IISDB_NBIT_FWD_DEFINED__ */ + + +#ifndef __IISDB_LDT_FWD_DEFINED__ +#define __IISDB_LDT_FWD_DEFINED__ +typedef interface IISDB_LDT IISDB_LDT; + +#endif /* __IISDB_LDT_FWD_DEFINED__ */ + + +#ifndef __IISDB_SDTT_FWD_DEFINED__ +#define __IISDB_SDTT_FWD_DEFINED__ +typedef interface IISDB_SDTT IISDB_SDTT; + +#endif /* __IISDB_SDTT_FWD_DEFINED__ */ + + +#ifndef __IISDB_CDT_FWD_DEFINED__ +#define __IISDB_CDT_FWD_DEFINED__ +typedef interface IISDB_CDT IISDB_CDT; + +#endif /* __IISDB_CDT_FWD_DEFINED__ */ + + +#ifndef __IISDB_EMM_FWD_DEFINED__ +#define __IISDB_EMM_FWD_DEFINED__ +typedef interface IISDB_EMM IISDB_EMM; + +#endif /* __IISDB_EMM_FWD_DEFINED__ */ + + +#ifndef __IDvbServiceAttributeDescriptor_FWD_DEFINED__ +#define __IDvbServiceAttributeDescriptor_FWD_DEFINED__ +typedef interface IDvbServiceAttributeDescriptor IDvbServiceAttributeDescriptor; + +#endif /* __IDvbServiceAttributeDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbContentIdentifierDescriptor_FWD_DEFINED__ +#define __IDvbContentIdentifierDescriptor_FWD_DEFINED__ +typedef interface IDvbContentIdentifierDescriptor IDvbContentIdentifierDescriptor; + +#endif /* __IDvbContentIdentifierDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbDefaultAuthorityDescriptor_FWD_DEFINED__ +#define __IDvbDefaultAuthorityDescriptor_FWD_DEFINED__ +typedef interface IDvbDefaultAuthorityDescriptor IDvbDefaultAuthorityDescriptor; + +#endif /* __IDvbDefaultAuthorityDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbSatelliteDeliverySystemDescriptor_FWD_DEFINED__ +#define __IDvbSatelliteDeliverySystemDescriptor_FWD_DEFINED__ +typedef interface IDvbSatelliteDeliverySystemDescriptor IDvbSatelliteDeliverySystemDescriptor; + +#endif /* __IDvbSatelliteDeliverySystemDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbCableDeliverySystemDescriptor_FWD_DEFINED__ +#define __IDvbCableDeliverySystemDescriptor_FWD_DEFINED__ +typedef interface IDvbCableDeliverySystemDescriptor IDvbCableDeliverySystemDescriptor; + +#endif /* __IDvbCableDeliverySystemDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ +#define __IDvbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ +typedef interface IDvbTerrestrialDeliverySystemDescriptor IDvbTerrestrialDeliverySystemDescriptor; + +#endif /* __IDvbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbTerrestrial2DeliverySystemDescriptor_FWD_DEFINED__ +#define __IDvbTerrestrial2DeliverySystemDescriptor_FWD_DEFINED__ +typedef interface IDvbTerrestrial2DeliverySystemDescriptor IDvbTerrestrial2DeliverySystemDescriptor; + +#endif /* __IDvbTerrestrial2DeliverySystemDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbFrequencyListDescriptor_FWD_DEFINED__ +#define __IDvbFrequencyListDescriptor_FWD_DEFINED__ +typedef interface IDvbFrequencyListDescriptor IDvbFrequencyListDescriptor; + +#endif /* __IDvbFrequencyListDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbPrivateDataSpecifierDescriptor_FWD_DEFINED__ +#define __IDvbPrivateDataSpecifierDescriptor_FWD_DEFINED__ +typedef interface IDvbPrivateDataSpecifierDescriptor IDvbPrivateDataSpecifierDescriptor; + +#endif /* __IDvbPrivateDataSpecifierDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbLogicalChannelDescriptor_FWD_DEFINED__ +#define __IDvbLogicalChannelDescriptor_FWD_DEFINED__ +typedef interface IDvbLogicalChannelDescriptor IDvbLogicalChannelDescriptor; + +#endif /* __IDvbLogicalChannelDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbLogicalChannelDescriptor2_FWD_DEFINED__ +#define __IDvbLogicalChannelDescriptor2_FWD_DEFINED__ +typedef interface IDvbLogicalChannelDescriptor2 IDvbLogicalChannelDescriptor2; + +#endif /* __IDvbLogicalChannelDescriptor2_FWD_DEFINED__ */ + + +#ifndef __IDvbLogicalChannel2Descriptor_FWD_DEFINED__ +#define __IDvbLogicalChannel2Descriptor_FWD_DEFINED__ +typedef interface IDvbLogicalChannel2Descriptor IDvbLogicalChannel2Descriptor; + +#endif /* __IDvbLogicalChannel2Descriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbHDSimulcastLogicalChannelDescriptor_FWD_DEFINED__ +#define __IDvbHDSimulcastLogicalChannelDescriptor_FWD_DEFINED__ +typedef interface IDvbHDSimulcastLogicalChannelDescriptor IDvbHDSimulcastLogicalChannelDescriptor; + +#endif /* __IDvbHDSimulcastLogicalChannelDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbDataBroadcastIDDescriptor_FWD_DEFINED__ +#define __IDvbDataBroadcastIDDescriptor_FWD_DEFINED__ +typedef interface IDvbDataBroadcastIDDescriptor IDvbDataBroadcastIDDescriptor; + +#endif /* __IDvbDataBroadcastIDDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbDataBroadcastDescriptor_FWD_DEFINED__ +#define __IDvbDataBroadcastDescriptor_FWD_DEFINED__ +typedef interface IDvbDataBroadcastDescriptor IDvbDataBroadcastDescriptor; + +#endif /* __IDvbDataBroadcastDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbLinkageDescriptor_FWD_DEFINED__ +#define __IDvbLinkageDescriptor_FWD_DEFINED__ +typedef interface IDvbLinkageDescriptor IDvbLinkageDescriptor; + +#endif /* __IDvbLinkageDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbTeletextDescriptor_FWD_DEFINED__ +#define __IDvbTeletextDescriptor_FWD_DEFINED__ +typedef interface IDvbTeletextDescriptor IDvbTeletextDescriptor; + +#endif /* __IDvbTeletextDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbSubtitlingDescriptor_FWD_DEFINED__ +#define __IDvbSubtitlingDescriptor_FWD_DEFINED__ +typedef interface IDvbSubtitlingDescriptor IDvbSubtitlingDescriptor; + +#endif /* __IDvbSubtitlingDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbServiceDescriptor_FWD_DEFINED__ +#define __IDvbServiceDescriptor_FWD_DEFINED__ +typedef interface IDvbServiceDescriptor IDvbServiceDescriptor; + +#endif /* __IDvbServiceDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbServiceDescriptor2_FWD_DEFINED__ +#define __IDvbServiceDescriptor2_FWD_DEFINED__ +typedef interface IDvbServiceDescriptor2 IDvbServiceDescriptor2; + +#endif /* __IDvbServiceDescriptor2_FWD_DEFINED__ */ + + +#ifndef __IDvbServiceListDescriptor_FWD_DEFINED__ +#define __IDvbServiceListDescriptor_FWD_DEFINED__ +typedef interface IDvbServiceListDescriptor IDvbServiceListDescriptor; + +#endif /* __IDvbServiceListDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbMultilingualServiceNameDescriptor_FWD_DEFINED__ +#define __IDvbMultilingualServiceNameDescriptor_FWD_DEFINED__ +typedef interface IDvbMultilingualServiceNameDescriptor IDvbMultilingualServiceNameDescriptor; + +#endif /* __IDvbMultilingualServiceNameDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbNetworkNameDescriptor_FWD_DEFINED__ +#define __IDvbNetworkNameDescriptor_FWD_DEFINED__ +typedef interface IDvbNetworkNameDescriptor IDvbNetworkNameDescriptor; + +#endif /* __IDvbNetworkNameDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbShortEventDescriptor_FWD_DEFINED__ +#define __IDvbShortEventDescriptor_FWD_DEFINED__ +typedef interface IDvbShortEventDescriptor IDvbShortEventDescriptor; + +#endif /* __IDvbShortEventDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbExtendedEventDescriptor_FWD_DEFINED__ +#define __IDvbExtendedEventDescriptor_FWD_DEFINED__ +typedef interface IDvbExtendedEventDescriptor IDvbExtendedEventDescriptor; + +#endif /* __IDvbExtendedEventDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbComponentDescriptor_FWD_DEFINED__ +#define __IDvbComponentDescriptor_FWD_DEFINED__ +typedef interface IDvbComponentDescriptor IDvbComponentDescriptor; + +#endif /* __IDvbComponentDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbContentDescriptor_FWD_DEFINED__ +#define __IDvbContentDescriptor_FWD_DEFINED__ +typedef interface IDvbContentDescriptor IDvbContentDescriptor; + +#endif /* __IDvbContentDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbParentalRatingDescriptor_FWD_DEFINED__ +#define __IDvbParentalRatingDescriptor_FWD_DEFINED__ +typedef interface IDvbParentalRatingDescriptor IDvbParentalRatingDescriptor; + +#endif /* __IDvbParentalRatingDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ +#define __IIsdbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ +typedef interface IIsdbTerrestrialDeliverySystemDescriptor IIsdbTerrestrialDeliverySystemDescriptor; + +#endif /* __IIsdbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbTSInformationDescriptor_FWD_DEFINED__ +#define __IIsdbTSInformationDescriptor_FWD_DEFINED__ +typedef interface IIsdbTSInformationDescriptor IIsdbTSInformationDescriptor; + +#endif /* __IIsdbTSInformationDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbDigitalCopyControlDescriptor_FWD_DEFINED__ +#define __IIsdbDigitalCopyControlDescriptor_FWD_DEFINED__ +typedef interface IIsdbDigitalCopyControlDescriptor IIsdbDigitalCopyControlDescriptor; + +#endif /* __IIsdbDigitalCopyControlDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbAudioComponentDescriptor_FWD_DEFINED__ +#define __IIsdbAudioComponentDescriptor_FWD_DEFINED__ +typedef interface IIsdbAudioComponentDescriptor IIsdbAudioComponentDescriptor; + +#endif /* __IIsdbAudioComponentDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbDataContentDescriptor_FWD_DEFINED__ +#define __IIsdbDataContentDescriptor_FWD_DEFINED__ +typedef interface IIsdbDataContentDescriptor IIsdbDataContentDescriptor; + +#endif /* __IIsdbDataContentDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbCAContractInformationDescriptor_FWD_DEFINED__ +#define __IIsdbCAContractInformationDescriptor_FWD_DEFINED__ +typedef interface IIsdbCAContractInformationDescriptor IIsdbCAContractInformationDescriptor; + +#endif /* __IIsdbCAContractInformationDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbEventGroupDescriptor_FWD_DEFINED__ +#define __IIsdbEventGroupDescriptor_FWD_DEFINED__ +typedef interface IIsdbEventGroupDescriptor IIsdbEventGroupDescriptor; + +#endif /* __IIsdbEventGroupDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbComponentGroupDescriptor_FWD_DEFINED__ +#define __IIsdbComponentGroupDescriptor_FWD_DEFINED__ +typedef interface IIsdbComponentGroupDescriptor IIsdbComponentGroupDescriptor; + +#endif /* __IIsdbComponentGroupDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbSeriesDescriptor_FWD_DEFINED__ +#define __IIsdbSeriesDescriptor_FWD_DEFINED__ +typedef interface IIsdbSeriesDescriptor IIsdbSeriesDescriptor; + +#endif /* __IIsdbSeriesDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbDownloadContentDescriptor_FWD_DEFINED__ +#define __IIsdbDownloadContentDescriptor_FWD_DEFINED__ +typedef interface IIsdbDownloadContentDescriptor IIsdbDownloadContentDescriptor; + +#endif /* __IIsdbDownloadContentDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbLogoTransmissionDescriptor_FWD_DEFINED__ +#define __IIsdbLogoTransmissionDescriptor_FWD_DEFINED__ +typedef interface IIsdbLogoTransmissionDescriptor IIsdbLogoTransmissionDescriptor; + +#endif /* __IIsdbLogoTransmissionDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbSIParameterDescriptor_FWD_DEFINED__ +#define __IIsdbSIParameterDescriptor_FWD_DEFINED__ +typedef interface IIsdbSIParameterDescriptor IIsdbSIParameterDescriptor; + +#endif /* __IIsdbSIParameterDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbEmergencyInformationDescriptor_FWD_DEFINED__ +#define __IIsdbEmergencyInformationDescriptor_FWD_DEFINED__ +typedef interface IIsdbEmergencyInformationDescriptor IIsdbEmergencyInformationDescriptor; + +#endif /* __IIsdbEmergencyInformationDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbCADescriptor_FWD_DEFINED__ +#define __IIsdbCADescriptor_FWD_DEFINED__ +typedef interface IIsdbCADescriptor IIsdbCADescriptor; + +#endif /* __IIsdbCADescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbCAServiceDescriptor_FWD_DEFINED__ +#define __IIsdbCAServiceDescriptor_FWD_DEFINED__ +typedef interface IIsdbCAServiceDescriptor IIsdbCAServiceDescriptor; + +#endif /* __IIsdbCAServiceDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbHierarchicalTransmissionDescriptor_FWD_DEFINED__ +#define __IIsdbHierarchicalTransmissionDescriptor_FWD_DEFINED__ +typedef interface IIsdbHierarchicalTransmissionDescriptor IIsdbHierarchicalTransmissionDescriptor; + +#endif /* __IIsdbHierarchicalTransmissionDescriptor_FWD_DEFINED__ */ + + +#ifndef __IPBDASiParser_FWD_DEFINED__ +#define __IPBDASiParser_FWD_DEFINED__ +typedef interface IPBDASiParser IPBDASiParser; + +#endif /* __IPBDASiParser_FWD_DEFINED__ */ + + +#ifndef __IPBDA_EIT_FWD_DEFINED__ +#define __IPBDA_EIT_FWD_DEFINED__ +typedef interface IPBDA_EIT IPBDA_EIT; + +#endif /* __IPBDA_EIT_FWD_DEFINED__ */ + + +#ifndef __IPBDA_Services_FWD_DEFINED__ +#define __IPBDA_Services_FWD_DEFINED__ +typedef interface IPBDA_Services IPBDA_Services; + +#endif /* __IPBDA_Services_FWD_DEFINED__ */ + + +#ifndef __IPBDAEntitlementDescriptor_FWD_DEFINED__ +#define __IPBDAEntitlementDescriptor_FWD_DEFINED__ +typedef interface IPBDAEntitlementDescriptor IPBDAEntitlementDescriptor; + +#endif /* __IPBDAEntitlementDescriptor_FWD_DEFINED__ */ + + +#ifndef __IPBDAAttributesDescriptor_FWD_DEFINED__ +#define __IPBDAAttributesDescriptor_FWD_DEFINED__ +typedef interface IPBDAAttributesDescriptor IPBDAAttributesDescriptor; + +#endif /* __IPBDAAttributesDescriptor_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "mpeg2structs.h" +#include "mpeg2data.h" +#include "mpeg2psiparser.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dvbsiparser_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_dvbsiparser_0000_0000_0001 + { + STRCONV_MODE_DVB = 0, + STRCONV_MODE_DVB_EMPHASIS = ( STRCONV_MODE_DVB + 1 ) , + STRCONV_MODE_DVB_WITHOUT_EMPHASIS = ( STRCONV_MODE_DVB_EMPHASIS + 1 ) , + STRCONV_MODE_ISDB = ( STRCONV_MODE_DVB_WITHOUT_EMPHASIS + 1 ) + } DVB_STRCONV_MODE; + + + + + + + + + + + + + + + + + + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0000_v0_0_s_ifspec; + +#ifndef __IDvbSiParser_INTERFACE_DEFINED__ +#define __IDvbSiParser_INTERFACE_DEFINED__ + +/* interface IDvbSiParser */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbSiParser; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B758A7BD-14DC-449d-B828-35909ACB3B1E") + IDvbSiParser : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ IUnknown *punkMpeg2Data) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPAT( + /* [out] */ IPAT **ppPAT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAT( + /* [in] */ DWORD dwTimeout, + /* [out] */ ICAT **ppCAT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPMT( + /* [in] */ PID pid, + /* [annotation][in] */ + _In_opt_ WORD *pwProgramNumber, + /* [out] */ IPMT **ppPMT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTSDT( + /* [out] */ ITSDT **ppTSDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNIT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwNetworkId, + /* [out] */ IDVB_NIT **ppNIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSDT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IDVB_SDT **ppSDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEIT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [out] */ IDVB_EIT **ppEIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBAT( + /* [annotation][in] */ + _In_opt_ WORD *pwBouquetId, + /* [out] */ IDVB_BAT **ppBAT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRST( + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_RST **ppRST) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetST( + /* [in] */ PID pid, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_ST **ppST) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTDT( + /* [out] */ IDVB_TDT **ppTDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTOT( + /* [out] */ IDVB_TOT **ppTOT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDIT( + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_DIT **ppDIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSIT( + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbSiParserVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbSiParser * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbSiParser * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbSiParser * This); + + DECLSPEC_XFGVIRT(IDvbSiParser, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDvbSiParser * This, + /* [in] */ IUnknown *punkMpeg2Data); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPAT) + HRESULT ( STDMETHODCALLTYPE *GetPAT )( + IDvbSiParser * This, + /* [out] */ IPAT **ppPAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetCAT) + HRESULT ( STDMETHODCALLTYPE *GetCAT )( + IDvbSiParser * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ ICAT **ppCAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPMT) + HRESULT ( STDMETHODCALLTYPE *GetPMT )( + IDvbSiParser * This, + /* [in] */ PID pid, + /* [annotation][in] */ + _In_opt_ WORD *pwProgramNumber, + /* [out] */ IPMT **ppPMT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTSDT) + HRESULT ( STDMETHODCALLTYPE *GetTSDT )( + IDvbSiParser * This, + /* [out] */ ITSDT **ppTSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetNIT) + HRESULT ( STDMETHODCALLTYPE *GetNIT )( + IDvbSiParser * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwNetworkId, + /* [out] */ IDVB_NIT **ppNIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSDT) + HRESULT ( STDMETHODCALLTYPE *GetSDT )( + IDvbSiParser * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IDVB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetEIT) + HRESULT ( STDMETHODCALLTYPE *GetEIT )( + IDvbSiParser * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [out] */ IDVB_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetBAT) + HRESULT ( STDMETHODCALLTYPE *GetBAT )( + IDvbSiParser * This, + /* [annotation][in] */ + _In_opt_ WORD *pwBouquetId, + /* [out] */ IDVB_BAT **ppBAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetRST) + HRESULT ( STDMETHODCALLTYPE *GetRST )( + IDvbSiParser * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_RST **ppRST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetST) + HRESULT ( STDMETHODCALLTYPE *GetST )( + IDvbSiParser * This, + /* [in] */ PID pid, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_ST **ppST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTDT) + HRESULT ( STDMETHODCALLTYPE *GetTDT )( + IDvbSiParser * This, + /* [out] */ IDVB_TDT **ppTDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTOT) + HRESULT ( STDMETHODCALLTYPE *GetTOT )( + IDvbSiParser * This, + /* [out] */ IDVB_TOT **ppTOT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetDIT) + HRESULT ( STDMETHODCALLTYPE *GetDIT )( + IDvbSiParser * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_DIT **ppDIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSIT) + HRESULT ( STDMETHODCALLTYPE *GetSIT )( + IDvbSiParser * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT); + + END_INTERFACE + } IDvbSiParserVtbl; + + interface IDvbSiParser + { + CONST_VTBL struct IDvbSiParserVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbSiParser_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbSiParser_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbSiParser_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbSiParser_Initialize(This,punkMpeg2Data) \ + ( (This)->lpVtbl -> Initialize(This,punkMpeg2Data) ) + +#define IDvbSiParser_GetPAT(This,ppPAT) \ + ( (This)->lpVtbl -> GetPAT(This,ppPAT) ) + +#define IDvbSiParser_GetCAT(This,dwTimeout,ppCAT) \ + ( (This)->lpVtbl -> GetCAT(This,dwTimeout,ppCAT) ) + +#define IDvbSiParser_GetPMT(This,pid,pwProgramNumber,ppPMT) \ + ( (This)->lpVtbl -> GetPMT(This,pid,pwProgramNumber,ppPMT) ) + +#define IDvbSiParser_GetTSDT(This,ppTSDT) \ + ( (This)->lpVtbl -> GetTSDT(This,ppTSDT) ) + +#define IDvbSiParser_GetNIT(This,tableId,pwNetworkId,ppNIT) \ + ( (This)->lpVtbl -> GetNIT(This,tableId,pwNetworkId,ppNIT) ) + +#define IDvbSiParser_GetSDT(This,tableId,pwTransportStreamId,ppSDT) \ + ( (This)->lpVtbl -> GetSDT(This,tableId,pwTransportStreamId,ppSDT) ) + +#define IDvbSiParser_GetEIT(This,tableId,pwServiceId,ppEIT) \ + ( (This)->lpVtbl -> GetEIT(This,tableId,pwServiceId,ppEIT) ) + +#define IDvbSiParser_GetBAT(This,pwBouquetId,ppBAT) \ + ( (This)->lpVtbl -> GetBAT(This,pwBouquetId,ppBAT) ) + +#define IDvbSiParser_GetRST(This,dwTimeout,ppRST) \ + ( (This)->lpVtbl -> GetRST(This,dwTimeout,ppRST) ) + +#define IDvbSiParser_GetST(This,pid,dwTimeout,ppST) \ + ( (This)->lpVtbl -> GetST(This,pid,dwTimeout,ppST) ) + +#define IDvbSiParser_GetTDT(This,ppTDT) \ + ( (This)->lpVtbl -> GetTDT(This,ppTDT) ) + +#define IDvbSiParser_GetTOT(This,ppTOT) \ + ( (This)->lpVtbl -> GetTOT(This,ppTOT) ) + +#define IDvbSiParser_GetDIT(This,dwTimeout,ppDIT) \ + ( (This)->lpVtbl -> GetDIT(This,dwTimeout,ppDIT) ) + +#define IDvbSiParser_GetSIT(This,dwTimeout,ppSIT) \ + ( (This)->lpVtbl -> GetSIT(This,dwTimeout,ppSIT) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbSiParser_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbSiParser2_INTERFACE_DEFINED__ +#define __IDvbSiParser2_INTERFACE_DEFINED__ + +/* interface IDvbSiParser2 */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbSiParser2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0AC5525F-F816-42F4-93BA-4C0F32F46E54") + IDvbSiParser2 : public IDvbSiParser + { + public: + virtual HRESULT STDMETHODCALLTYPE GetEIT2( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [annotation][in] */ + _In_opt_ BYTE *pbSegment, + /* [out] */ IDVB_EIT2 **ppEIT) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbSiParser2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbSiParser2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbSiParser2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbSiParser2 * This); + + DECLSPEC_XFGVIRT(IDvbSiParser, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDvbSiParser2 * This, + /* [in] */ IUnknown *punkMpeg2Data); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPAT) + HRESULT ( STDMETHODCALLTYPE *GetPAT )( + IDvbSiParser2 * This, + /* [out] */ IPAT **ppPAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetCAT) + HRESULT ( STDMETHODCALLTYPE *GetCAT )( + IDvbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ ICAT **ppCAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPMT) + HRESULT ( STDMETHODCALLTYPE *GetPMT )( + IDvbSiParser2 * This, + /* [in] */ PID pid, + /* [annotation][in] */ + _In_opt_ WORD *pwProgramNumber, + /* [out] */ IPMT **ppPMT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTSDT) + HRESULT ( STDMETHODCALLTYPE *GetTSDT )( + IDvbSiParser2 * This, + /* [out] */ ITSDT **ppTSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetNIT) + HRESULT ( STDMETHODCALLTYPE *GetNIT )( + IDvbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwNetworkId, + /* [out] */ IDVB_NIT **ppNIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSDT) + HRESULT ( STDMETHODCALLTYPE *GetSDT )( + IDvbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IDVB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetEIT) + HRESULT ( STDMETHODCALLTYPE *GetEIT )( + IDvbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [out] */ IDVB_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetBAT) + HRESULT ( STDMETHODCALLTYPE *GetBAT )( + IDvbSiParser2 * This, + /* [annotation][in] */ + _In_opt_ WORD *pwBouquetId, + /* [out] */ IDVB_BAT **ppBAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetRST) + HRESULT ( STDMETHODCALLTYPE *GetRST )( + IDvbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_RST **ppRST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetST) + HRESULT ( STDMETHODCALLTYPE *GetST )( + IDvbSiParser2 * This, + /* [in] */ PID pid, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_ST **ppST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTDT) + HRESULT ( STDMETHODCALLTYPE *GetTDT )( + IDvbSiParser2 * This, + /* [out] */ IDVB_TDT **ppTDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTOT) + HRESULT ( STDMETHODCALLTYPE *GetTOT )( + IDvbSiParser2 * This, + /* [out] */ IDVB_TOT **ppTOT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetDIT) + HRESULT ( STDMETHODCALLTYPE *GetDIT )( + IDvbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_DIT **ppDIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSIT) + HRESULT ( STDMETHODCALLTYPE *GetSIT )( + IDvbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT); + + DECLSPEC_XFGVIRT(IDvbSiParser2, GetEIT2) + HRESULT ( STDMETHODCALLTYPE *GetEIT2 )( + IDvbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [annotation][in] */ + _In_opt_ BYTE *pbSegment, + /* [out] */ IDVB_EIT2 **ppEIT); + + END_INTERFACE + } IDvbSiParser2Vtbl; + + interface IDvbSiParser2 + { + CONST_VTBL struct IDvbSiParser2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbSiParser2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbSiParser2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbSiParser2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbSiParser2_Initialize(This,punkMpeg2Data) \ + ( (This)->lpVtbl -> Initialize(This,punkMpeg2Data) ) + +#define IDvbSiParser2_GetPAT(This,ppPAT) \ + ( (This)->lpVtbl -> GetPAT(This,ppPAT) ) + +#define IDvbSiParser2_GetCAT(This,dwTimeout,ppCAT) \ + ( (This)->lpVtbl -> GetCAT(This,dwTimeout,ppCAT) ) + +#define IDvbSiParser2_GetPMT(This,pid,pwProgramNumber,ppPMT) \ + ( (This)->lpVtbl -> GetPMT(This,pid,pwProgramNumber,ppPMT) ) + +#define IDvbSiParser2_GetTSDT(This,ppTSDT) \ + ( (This)->lpVtbl -> GetTSDT(This,ppTSDT) ) + +#define IDvbSiParser2_GetNIT(This,tableId,pwNetworkId,ppNIT) \ + ( (This)->lpVtbl -> GetNIT(This,tableId,pwNetworkId,ppNIT) ) + +#define IDvbSiParser2_GetSDT(This,tableId,pwTransportStreamId,ppSDT) \ + ( (This)->lpVtbl -> GetSDT(This,tableId,pwTransportStreamId,ppSDT) ) + +#define IDvbSiParser2_GetEIT(This,tableId,pwServiceId,ppEIT) \ + ( (This)->lpVtbl -> GetEIT(This,tableId,pwServiceId,ppEIT) ) + +#define IDvbSiParser2_GetBAT(This,pwBouquetId,ppBAT) \ + ( (This)->lpVtbl -> GetBAT(This,pwBouquetId,ppBAT) ) + +#define IDvbSiParser2_GetRST(This,dwTimeout,ppRST) \ + ( (This)->lpVtbl -> GetRST(This,dwTimeout,ppRST) ) + +#define IDvbSiParser2_GetST(This,pid,dwTimeout,ppST) \ + ( (This)->lpVtbl -> GetST(This,pid,dwTimeout,ppST) ) + +#define IDvbSiParser2_GetTDT(This,ppTDT) \ + ( (This)->lpVtbl -> GetTDT(This,ppTDT) ) + +#define IDvbSiParser2_GetTOT(This,ppTOT) \ + ( (This)->lpVtbl -> GetTOT(This,ppTOT) ) + +#define IDvbSiParser2_GetDIT(This,dwTimeout,ppDIT) \ + ( (This)->lpVtbl -> GetDIT(This,dwTimeout,ppDIT) ) + +#define IDvbSiParser2_GetSIT(This,dwTimeout,ppSIT) \ + ( (This)->lpVtbl -> GetSIT(This,dwTimeout,ppSIT) ) + + +#define IDvbSiParser2_GetEIT2(This,tableId,pwServiceId,pbSegment,ppEIT) \ + ( (This)->lpVtbl -> GetEIT2(This,tableId,pwServiceId,pbSegment,ppEIT) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbSiParser2_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbSiParser2_INTERFACE_DEFINED__ +#define __IIsdbSiParser2_INTERFACE_DEFINED__ + +/* interface IIsdbSiParser2 */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbSiParser2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("900E4BB7-18CD-453F-98BE-3BE6AA211772") + IIsdbSiParser2 : public IDvbSiParser2 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSDT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IISDB_SDT **ppSDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBIT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalNetworkId, + /* [out] */ IISDB_BIT **ppBIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNBIT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalNetworkId, + /* [out] */ IISDB_NBIT **ppNBIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLDT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalServiceId, + /* [out] */ IISDB_LDT **ppLDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSDTT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTableIdExt, + /* [out] */ IISDB_SDTT **ppSDTT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCDT( + /* [in] */ TID tableId, + /* [in] */ BYTE bSectionNumber, + /* [annotation][in] */ + _In_opt_ WORD *pwDownloadDataId, + /* [out] */ IISDB_CDT **ppCDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEMM( + /* [in] */ PID pid, + /* [in] */ WORD wTableIdExt, + /* [out] */ IISDB_EMM **ppEMM) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbSiParser2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbSiParser2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbSiParser2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbSiParser2 * This); + + DECLSPEC_XFGVIRT(IDvbSiParser, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IIsdbSiParser2 * This, + /* [in] */ IUnknown *punkMpeg2Data); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPAT) + HRESULT ( STDMETHODCALLTYPE *GetPAT )( + IIsdbSiParser2 * This, + /* [out] */ IPAT **ppPAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetCAT) + HRESULT ( STDMETHODCALLTYPE *GetCAT )( + IIsdbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ ICAT **ppCAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPMT) + HRESULT ( STDMETHODCALLTYPE *GetPMT )( + IIsdbSiParser2 * This, + /* [in] */ PID pid, + /* [annotation][in] */ + _In_opt_ WORD *pwProgramNumber, + /* [out] */ IPMT **ppPMT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTSDT) + HRESULT ( STDMETHODCALLTYPE *GetTSDT )( + IIsdbSiParser2 * This, + /* [out] */ ITSDT **ppTSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetNIT) + HRESULT ( STDMETHODCALLTYPE *GetNIT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwNetworkId, + /* [out] */ IDVB_NIT **ppNIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSDT) + HRESULT ( STDMETHODCALLTYPE *GetSDT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IDVB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetEIT) + HRESULT ( STDMETHODCALLTYPE *GetEIT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [out] */ IDVB_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetBAT) + HRESULT ( STDMETHODCALLTYPE *GetBAT )( + IIsdbSiParser2 * This, + /* [annotation][in] */ + _In_opt_ WORD *pwBouquetId, + /* [out] */ IDVB_BAT **ppBAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetRST) + HRESULT ( STDMETHODCALLTYPE *GetRST )( + IIsdbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_RST **ppRST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetST) + HRESULT ( STDMETHODCALLTYPE *GetST )( + IIsdbSiParser2 * This, + /* [in] */ PID pid, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_ST **ppST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTDT) + HRESULT ( STDMETHODCALLTYPE *GetTDT )( + IIsdbSiParser2 * This, + /* [out] */ IDVB_TDT **ppTDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTOT) + HRESULT ( STDMETHODCALLTYPE *GetTOT )( + IIsdbSiParser2 * This, + /* [out] */ IDVB_TOT **ppTOT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetDIT) + HRESULT ( STDMETHODCALLTYPE *GetDIT )( + IIsdbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_DIT **ppDIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSIT) + HRESULT ( STDMETHODCALLTYPE *GetSIT )( + IIsdbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT); + + DECLSPEC_XFGVIRT(IDvbSiParser2, GetEIT2) + HRESULT ( STDMETHODCALLTYPE *GetEIT2 )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [annotation][in] */ + _In_opt_ BYTE *pbSegment, + /* [out] */ IDVB_EIT2 **ppEIT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetSDT) + HRESULT ( STDMETHODCALLTYPE *GetSDT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IISDB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetBIT) + HRESULT ( STDMETHODCALLTYPE *GetBIT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalNetworkId, + /* [out] */ IISDB_BIT **ppBIT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetNBIT) + HRESULT ( STDMETHODCALLTYPE *GetNBIT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalNetworkId, + /* [out] */ IISDB_NBIT **ppNBIT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetLDT) + HRESULT ( STDMETHODCALLTYPE *GetLDT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalServiceId, + /* [out] */ IISDB_LDT **ppLDT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetSDTT) + HRESULT ( STDMETHODCALLTYPE *GetSDTT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTableIdExt, + /* [out] */ IISDB_SDTT **ppSDTT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetCDT) + HRESULT ( STDMETHODCALLTYPE *GetCDT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [in] */ BYTE bSectionNumber, + /* [annotation][in] */ + _In_opt_ WORD *pwDownloadDataId, + /* [out] */ IISDB_CDT **ppCDT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetEMM) + HRESULT ( STDMETHODCALLTYPE *GetEMM )( + IIsdbSiParser2 * This, + /* [in] */ PID pid, + /* [in] */ WORD wTableIdExt, + /* [out] */ IISDB_EMM **ppEMM); + + END_INTERFACE + } IIsdbSiParser2Vtbl; + + interface IIsdbSiParser2 + { + CONST_VTBL struct IIsdbSiParser2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbSiParser2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbSiParser2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbSiParser2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbSiParser2_Initialize(This,punkMpeg2Data) \ + ( (This)->lpVtbl -> Initialize(This,punkMpeg2Data) ) + +#define IIsdbSiParser2_GetPAT(This,ppPAT) \ + ( (This)->lpVtbl -> GetPAT(This,ppPAT) ) + +#define IIsdbSiParser2_GetCAT(This,dwTimeout,ppCAT) \ + ( (This)->lpVtbl -> GetCAT(This,dwTimeout,ppCAT) ) + +#define IIsdbSiParser2_GetPMT(This,pid,pwProgramNumber,ppPMT) \ + ( (This)->lpVtbl -> GetPMT(This,pid,pwProgramNumber,ppPMT) ) + +#define IIsdbSiParser2_GetTSDT(This,ppTSDT) \ + ( (This)->lpVtbl -> GetTSDT(This,ppTSDT) ) + +#define IIsdbSiParser2_GetNIT(This,tableId,pwNetworkId,ppNIT) \ + ( (This)->lpVtbl -> GetNIT(This,tableId,pwNetworkId,ppNIT) ) + +#define IIsdbSiParser2_GetSDT(This,tableId,pwTransportStreamId,ppSDT) \ + ( (This)->lpVtbl -> GetSDT(This,tableId,pwTransportStreamId,ppSDT) ) + +#define IIsdbSiParser2_GetEIT(This,tableId,pwServiceId,ppEIT) \ + ( (This)->lpVtbl -> GetEIT(This,tableId,pwServiceId,ppEIT) ) + +#define IIsdbSiParser2_GetBAT(This,pwBouquetId,ppBAT) \ + ( (This)->lpVtbl -> GetBAT(This,pwBouquetId,ppBAT) ) + +#define IIsdbSiParser2_GetRST(This,dwTimeout,ppRST) \ + ( (This)->lpVtbl -> GetRST(This,dwTimeout,ppRST) ) + +#define IIsdbSiParser2_GetST(This,pid,dwTimeout,ppST) \ + ( (This)->lpVtbl -> GetST(This,pid,dwTimeout,ppST) ) + +#define IIsdbSiParser2_GetTDT(This,ppTDT) \ + ( (This)->lpVtbl -> GetTDT(This,ppTDT) ) + +#define IIsdbSiParser2_GetTOT(This,ppTOT) \ + ( (This)->lpVtbl -> GetTOT(This,ppTOT) ) + +#define IIsdbSiParser2_GetDIT(This,dwTimeout,ppDIT) \ + ( (This)->lpVtbl -> GetDIT(This,dwTimeout,ppDIT) ) + +#define IIsdbSiParser2_GetSIT(This,dwTimeout,ppSIT) \ + ( (This)->lpVtbl -> GetSIT(This,dwTimeout,ppSIT) ) + + +#define IIsdbSiParser2_GetEIT2(This,tableId,pwServiceId,pbSegment,ppEIT) \ + ( (This)->lpVtbl -> GetEIT2(This,tableId,pwServiceId,pbSegment,ppEIT) ) + + +#define IIsdbSiParser2_GetSDT(This,tableId,pwTransportStreamId,ppSDT) \ + ( (This)->lpVtbl -> GetSDT(This,tableId,pwTransportStreamId,ppSDT) ) + +#define IIsdbSiParser2_GetBIT(This,tableId,pwOriginalNetworkId,ppBIT) \ + ( (This)->lpVtbl -> GetBIT(This,tableId,pwOriginalNetworkId,ppBIT) ) + +#define IIsdbSiParser2_GetNBIT(This,tableId,pwOriginalNetworkId,ppNBIT) \ + ( (This)->lpVtbl -> GetNBIT(This,tableId,pwOriginalNetworkId,ppNBIT) ) + +#define IIsdbSiParser2_GetLDT(This,tableId,pwOriginalServiceId,ppLDT) \ + ( (This)->lpVtbl -> GetLDT(This,tableId,pwOriginalServiceId,ppLDT) ) + +#define IIsdbSiParser2_GetSDTT(This,tableId,pwTableIdExt,ppSDTT) \ + ( (This)->lpVtbl -> GetSDTT(This,tableId,pwTableIdExt,ppSDTT) ) + +#define IIsdbSiParser2_GetCDT(This,tableId,bSectionNumber,pwDownloadDataId,ppCDT) \ + ( (This)->lpVtbl -> GetCDT(This,tableId,bSectionNumber,pwDownloadDataId,ppCDT) ) + +#define IIsdbSiParser2_GetEMM(This,pid,wTableIdExt,ppEMM) \ + ( (This)->lpVtbl -> GetEMM(This,pid,wTableIdExt,ppEMM) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbSiParser2_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_NIT_INTERFACE_DEFINED__ +#define __IDVB_NIT_INTERFACE_DEFINED__ + +/* interface IDVB_NIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_NIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C64935F4-29E4-4e22-911A-63F7F55CB097") + IDVB_NIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTransportStreamId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordOriginalNetworkId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForNextTable( + /* [in] */ HANDLE hNextTableAvailable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextTable( + /* [out] */ IDVB_NIT **ppNIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForWhenCurrent( + /* [in] */ HANDLE hNextTableIsCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertNextToCurrent( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_NITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_NIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_NIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_NIT * This); + + DECLSPEC_XFGVIRT(IDVB_NIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_NIT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_NIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetNetworkId )( + IDVB_NIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IDVB_NIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IDVB_NIT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IDVB_NIT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_NIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetRecordTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetRecordTransportStreamId )( + IDVB_NIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetRecordOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetRecordOriginalNetworkId )( + IDVB_NIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_NIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_NIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_NIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_NIT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_NIT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_NIT * This, + /* [out] */ IDVB_NIT **ppNIT); + + DECLSPEC_XFGVIRT(IDVB_NIT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_NIT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_NIT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_NIT * This); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IDVB_NIT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IDVB_NITVtbl; + + interface IDVB_NIT + { + CONST_VTBL struct IDVB_NITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_NIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_NIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_NIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_NIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_NIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_NIT_GetNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetNetworkId(This,pwVal) ) + +#define IDVB_NIT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IDVB_NIT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IDVB_NIT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_NIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_NIT_GetRecordTransportStreamId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordTransportStreamId(This,dwRecordIndex,pwVal) ) + +#define IDVB_NIT_GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) ) + +#define IDVB_NIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_NIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_NIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_NIT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_NIT_GetNextTable(This,ppNIT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppNIT) ) + +#define IDVB_NIT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_NIT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#define IDVB_NIT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_NIT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_SDT_INTERFACE_DEFINED__ +#define __IDVB_SDT_INTERFACE_DEFINED__ + +/* interface IDVB_SDT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_SDT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("02CAD8D3-FE43-48e2-90BD-450ED9A8A5FD") + IDVB_SDT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransportStreamId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEITScheduleFlag( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEITPresentFollowingFlag( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRunningStatus( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordFreeCAMode( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForNextTable( + /* [in] */ HANDLE hNextTableAvailable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextTable( + /* [out] */ IDVB_SDT **ppSDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForWhenCurrent( + /* [in] */ HANDLE hNextTableIsCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertNextToCurrent( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_SDTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_SDT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_SDT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_SDT * This); + + DECLSPEC_XFGVIRT(IDVB_SDT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_SDT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_SDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IDVB_SDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IDVB_SDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_SDT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordEITScheduleFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordEITScheduleFlag )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordEITPresentFollowingFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordEITPresentFollowingFlag )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordFreeCAMode) + HRESULT ( STDMETHODCALLTYPE *GetRecordFreeCAMode )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SDT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_SDT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_SDT * This, + /* [out] */ IDVB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IDVB_SDT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_SDT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_SDT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_SDT * This); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IDVB_SDT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IDVB_SDTVtbl; + + interface IDVB_SDT + { + CONST_VTBL struct IDVB_SDTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_SDT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_SDT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_SDT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_SDT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_SDT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_SDT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IDVB_SDT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IDVB_SDT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_SDT_GetRecordServiceId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,dwRecordIndex,pwVal) ) + +#define IDVB_SDT_GetRecordEITScheduleFlag(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordEITScheduleFlag(This,dwRecordIndex,pfVal) ) + +#define IDVB_SDT_GetRecordEITPresentFollowingFlag(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordEITPresentFollowingFlag(This,dwRecordIndex,pfVal) ) + +#define IDVB_SDT_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#define IDVB_SDT_GetRecordFreeCAMode(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordFreeCAMode(This,dwRecordIndex,pfVal) ) + +#define IDVB_SDT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_SDT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_SDT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_SDT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_SDT_GetNextTable(This,ppSDT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppSDT) ) + +#define IDVB_SDT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_SDT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#define IDVB_SDT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_SDT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_SDT_INTERFACE_DEFINED__ +#define __IISDB_SDT_INTERFACE_DEFINED__ + +/* interface IISDB_SDT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_SDT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3F3DC9A2-BB32-4FB9-AE9E-D856848927A3") + IISDB_SDT : public IDVB_SDT + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRecordEITUserDefinedFlags( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_SDTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_SDT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_SDT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_SDT * This); + + DECLSPEC_XFGVIRT(IDVB_SDT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_SDT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_SDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IISDB_SDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_SDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IISDB_SDT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordEITScheduleFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordEITScheduleFlag )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordEITPresentFollowingFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordEITPresentFollowingFlag )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordFreeCAMode) + HRESULT ( STDMETHODCALLTYPE *GetRecordFreeCAMode )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SDT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IISDB_SDT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IISDB_SDT * This, + /* [out] */ IDVB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IDVB_SDT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IISDB_SDT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_SDT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IISDB_SDT * This); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_SDT * This, + /* [out] */ DWORD *pdwVersionHash); + + DECLSPEC_XFGVIRT(IISDB_SDT, GetRecordEITUserDefinedFlags) + HRESULT ( STDMETHODCALLTYPE *GetRecordEITUserDefinedFlags )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IISDB_SDTVtbl; + + interface IISDB_SDT + { + CONST_VTBL struct IISDB_SDTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_SDT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_SDT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_SDT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_SDT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_SDT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_SDT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IISDB_SDT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_SDT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IISDB_SDT_GetRecordServiceId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,dwRecordIndex,pwVal) ) + +#define IISDB_SDT_GetRecordEITScheduleFlag(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordEITScheduleFlag(This,dwRecordIndex,pfVal) ) + +#define IISDB_SDT_GetRecordEITPresentFollowingFlag(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordEITPresentFollowingFlag(This,dwRecordIndex,pfVal) ) + +#define IISDB_SDT_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#define IISDB_SDT_GetRecordFreeCAMode(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordFreeCAMode(This,dwRecordIndex,pfVal) ) + +#define IISDB_SDT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IISDB_SDT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IISDB_SDT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_SDT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IISDB_SDT_GetNextTable(This,ppSDT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppSDT) ) + +#define IISDB_SDT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IISDB_SDT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#define IISDB_SDT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + + +#define IISDB_SDT_GetRecordEITUserDefinedFlags(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordEITUserDefinedFlags(This,dwRecordIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_SDT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_EIT_INTERFACE_DEFINED__ +#define __IDVB_EIT_INTERFACE_DEFINED__ + +/* interface IDVB_EIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_EIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("442DB029-02CB-4495-8B92-1C13375BCE99") + IDVB_EIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransportStreamId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSegmentLastSectionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLastTableId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEventId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordStartTime( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDuration( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DURATION *pmdVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRunningStatus( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordFreeCAMode( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForNextTable( + /* [in] */ HANDLE hNextTableAvailable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextTable( + /* [out] */ IDVB_EIT **ppEIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForWhenCurrent( + /* [in] */ HANDLE hNextTableIsCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertNextToCurrent( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_EITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_EIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_EIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_EIT * This); + + DECLSPEC_XFGVIRT(IDVB_EIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_EIT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_EIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetServiceId) + HRESULT ( STDMETHODCALLTYPE *GetServiceId )( + IDVB_EIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IDVB_EIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IDVB_EIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetSegmentLastSectionNumber) + HRESULT ( STDMETHODCALLTYPE *GetSegmentLastSectionNumber )( + IDVB_EIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetLastTableId) + HRESULT ( STDMETHODCALLTYPE *GetLastTableId )( + IDVB_EIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_EIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordEventId) + HRESULT ( STDMETHODCALLTYPE *GetRecordEventId )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordStartTime) + HRESULT ( STDMETHODCALLTYPE *GetRecordStartTime )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDuration) + HRESULT ( STDMETHODCALLTYPE *GetRecordDuration )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DURATION *pmdVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordFreeCAMode) + HRESULT ( STDMETHODCALLTYPE *GetRecordFreeCAMode )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_EIT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_EIT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_EIT * This, + /* [out] */ IDVB_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IDVB_EIT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_EIT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_EIT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_EIT * This); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IDVB_EIT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IDVB_EITVtbl; + + interface IDVB_EIT + { + CONST_VTBL struct IDVB_EITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_EIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_EIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_EIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_EIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_EIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_EIT_GetServiceId(This,pwVal) \ + ( (This)->lpVtbl -> GetServiceId(This,pwVal) ) + +#define IDVB_EIT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IDVB_EIT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IDVB_EIT_GetSegmentLastSectionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetSegmentLastSectionNumber(This,pbVal) ) + +#define IDVB_EIT_GetLastTableId(This,pbVal) \ + ( (This)->lpVtbl -> GetLastTableId(This,pbVal) ) + +#define IDVB_EIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_EIT_GetRecordEventId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordEventId(This,dwRecordIndex,pwVal) ) + +#define IDVB_EIT_GetRecordStartTime(This,dwRecordIndex,pmdtVal) \ + ( (This)->lpVtbl -> GetRecordStartTime(This,dwRecordIndex,pmdtVal) ) + +#define IDVB_EIT_GetRecordDuration(This,dwRecordIndex,pmdVal) \ + ( (This)->lpVtbl -> GetRecordDuration(This,dwRecordIndex,pmdVal) ) + +#define IDVB_EIT_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#define IDVB_EIT_GetRecordFreeCAMode(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordFreeCAMode(This,dwRecordIndex,pfVal) ) + +#define IDVB_EIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_EIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_EIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_EIT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_EIT_GetNextTable(This,ppEIT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppEIT) ) + +#define IDVB_EIT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_EIT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#define IDVB_EIT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_EIT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_EIT2_INTERFACE_DEFINED__ +#define __IDVB_EIT2_INTERFACE_DEFINED__ + +/* interface IDVB_EIT2 */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_EIT2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("61A389E0-9B9E-4ba0-AEEA-5DDD159820EA") + IDVB_EIT2 : public IDVB_EIT + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSegmentInfo( + /* [out] */ BYTE *pbTid, + /* [out] */ BYTE *pbSegment) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordSection( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_EIT2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_EIT2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_EIT2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_EIT2 * This); + + DECLSPEC_XFGVIRT(IDVB_EIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_EIT2 * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_EIT2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetServiceId) + HRESULT ( STDMETHODCALLTYPE *GetServiceId )( + IDVB_EIT2 * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IDVB_EIT2 * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IDVB_EIT2 * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetSegmentLastSectionNumber) + HRESULT ( STDMETHODCALLTYPE *GetSegmentLastSectionNumber )( + IDVB_EIT2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetLastTableId) + HRESULT ( STDMETHODCALLTYPE *GetLastTableId )( + IDVB_EIT2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_EIT2 * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordEventId) + HRESULT ( STDMETHODCALLTYPE *GetRecordEventId )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordStartTime) + HRESULT ( STDMETHODCALLTYPE *GetRecordStartTime )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDuration) + HRESULT ( STDMETHODCALLTYPE *GetRecordDuration )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DURATION *pmdVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordFreeCAMode) + HRESULT ( STDMETHODCALLTYPE *GetRecordFreeCAMode )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_EIT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_EIT2 * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_EIT2 * This, + /* [out] */ IDVB_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IDVB_EIT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_EIT2 * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_EIT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_EIT2 * This); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IDVB_EIT2 * This, + /* [out] */ DWORD *pdwVersionHash); + + DECLSPEC_XFGVIRT(IDVB_EIT2, GetSegmentInfo) + HRESULT ( STDMETHODCALLTYPE *GetSegmentInfo )( + IDVB_EIT2 * This, + /* [out] */ BYTE *pbTid, + /* [out] */ BYTE *pbSegment); + + DECLSPEC_XFGVIRT(IDVB_EIT2, GetRecordSection) + HRESULT ( STDMETHODCALLTYPE *GetRecordSection )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDVB_EIT2Vtbl; + + interface IDVB_EIT2 + { + CONST_VTBL struct IDVB_EIT2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_EIT2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_EIT2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_EIT2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_EIT2_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_EIT2_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_EIT2_GetServiceId(This,pwVal) \ + ( (This)->lpVtbl -> GetServiceId(This,pwVal) ) + +#define IDVB_EIT2_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IDVB_EIT2_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IDVB_EIT2_GetSegmentLastSectionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetSegmentLastSectionNumber(This,pbVal) ) + +#define IDVB_EIT2_GetLastTableId(This,pbVal) \ + ( (This)->lpVtbl -> GetLastTableId(This,pbVal) ) + +#define IDVB_EIT2_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_EIT2_GetRecordEventId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordEventId(This,dwRecordIndex,pwVal) ) + +#define IDVB_EIT2_GetRecordStartTime(This,dwRecordIndex,pmdtVal) \ + ( (This)->lpVtbl -> GetRecordStartTime(This,dwRecordIndex,pmdtVal) ) + +#define IDVB_EIT2_GetRecordDuration(This,dwRecordIndex,pmdVal) \ + ( (This)->lpVtbl -> GetRecordDuration(This,dwRecordIndex,pmdVal) ) + +#define IDVB_EIT2_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#define IDVB_EIT2_GetRecordFreeCAMode(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordFreeCAMode(This,dwRecordIndex,pfVal) ) + +#define IDVB_EIT2_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_EIT2_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_EIT2_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_EIT2_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_EIT2_GetNextTable(This,ppEIT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppEIT) ) + +#define IDVB_EIT2_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_EIT2_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#define IDVB_EIT2_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + + +#define IDVB_EIT2_GetSegmentInfo(This,pbTid,pbSegment) \ + ( (This)->lpVtbl -> GetSegmentInfo(This,pbTid,pbSegment) ) + +#define IDVB_EIT2_GetRecordSection(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordSection(This,dwRecordIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_EIT2_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_BAT_INTERFACE_DEFINED__ +#define __IDVB_BAT_INTERFACE_DEFINED__ + +/* interface IDVB_BAT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_BAT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ECE9BB0C-43B6-4558-A0EC-1812C34CD6CA") + IDVB_BAT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBouquetId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [in] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTransportStreamId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordOriginalNetworkId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForNextTable( + /* [in] */ HANDLE hNextTableAvailable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextTable( + /* [out] */ IDVB_BAT **ppBAT) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForWhenCurrent( + /* [in] */ HANDLE hNextTableIsCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertNextToCurrent( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_BATVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_BAT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_BAT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_BAT * This); + + DECLSPEC_XFGVIRT(IDVB_BAT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_BAT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_BAT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetBouquetId) + HRESULT ( STDMETHODCALLTYPE *GetBouquetId )( + IDVB_BAT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IDVB_BAT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IDVB_BAT * This, + /* [in] */ DWORD dwIndex, + /* [in] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IDVB_BAT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_BAT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetRecordTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetRecordTransportStreamId )( + IDVB_BAT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetRecordOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetRecordOriginalNetworkId )( + IDVB_BAT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_BAT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_BAT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_BAT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_BAT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_BAT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_BAT * This, + /* [out] */ IDVB_BAT **ppBAT); + + DECLSPEC_XFGVIRT(IDVB_BAT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_BAT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_BAT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_BAT * This); + + END_INTERFACE + } IDVB_BATVtbl; + + interface IDVB_BAT + { + CONST_VTBL struct IDVB_BATVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_BAT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_BAT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_BAT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_BAT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_BAT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_BAT_GetBouquetId(This,pwVal) \ + ( (This)->lpVtbl -> GetBouquetId(This,pwVal) ) + +#define IDVB_BAT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IDVB_BAT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IDVB_BAT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_BAT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_BAT_GetRecordTransportStreamId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordTransportStreamId(This,dwRecordIndex,pwVal) ) + +#define IDVB_BAT_GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) ) + +#define IDVB_BAT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_BAT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_BAT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_BAT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_BAT_GetNextTable(This,ppBAT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppBAT) ) + +#define IDVB_BAT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_BAT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_BAT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_RST_INTERFACE_DEFINED__ +#define __IDVB_RST_INTERFACE_DEFINED__ + +/* interface IDVB_RST */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_RST; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F47DCD04-1E23-4fb7-9F96-B40EEAD10B2B") + IDVB_RST : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTransportStreamId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordOriginalNetworkId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEventId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRunningStatus( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_RSTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_RST * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_RST * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_RST * This); + + DECLSPEC_XFGVIRT(IDVB_RST, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_RST * This, + /* [in] */ ISectionList *pSectionList); + + DECLSPEC_XFGVIRT(IDVB_RST, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_RST * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_RST, GetRecordTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetRecordTransportStreamId )( + IDVB_RST * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_RST, GetRecordOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetRecordOriginalNetworkId )( + IDVB_RST * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_RST, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDVB_RST * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_RST, GetRecordEventId) + HRESULT ( STDMETHODCALLTYPE *GetRecordEventId )( + IDVB_RST * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_RST, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IDVB_RST * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDVB_RSTVtbl; + + interface IDVB_RST + { + CONST_VTBL struct IDVB_RSTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_RST_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_RST_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_RST_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_RST_Initialize(This,pSectionList) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList) ) + +#define IDVB_RST_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_RST_GetRecordTransportStreamId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordTransportStreamId(This,dwRecordIndex,pwVal) ) + +#define IDVB_RST_GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) ) + +#define IDVB_RST_GetRecordServiceId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,dwRecordIndex,pwVal) ) + +#define IDVB_RST_GetRecordEventId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordEventId(This,dwRecordIndex,pwVal) ) + +#define IDVB_RST_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_RST_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_ST_INTERFACE_DEFINED__ +#define __IDVB_ST_INTERFACE_DEFINED__ + +/* interface IDVB_ST */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_ST; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4D5B9F23-2A02-45de-BCDA-5D5DBFBFBE62") + IDVB_ST : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataLength( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetData( + /* [out] */ BYTE **ppData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_STVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_ST * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_ST * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_ST * This); + + DECLSPEC_XFGVIRT(IDVB_ST, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_ST * This, + /* [in] */ ISectionList *pSectionList); + + DECLSPEC_XFGVIRT(IDVB_ST, GetDataLength) + HRESULT ( STDMETHODCALLTYPE *GetDataLength )( + IDVB_ST * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_ST, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + IDVB_ST * This, + /* [out] */ BYTE **ppData); + + END_INTERFACE + } IDVB_STVtbl; + + interface IDVB_ST + { + CONST_VTBL struct IDVB_STVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_ST_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_ST_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_ST_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_ST_Initialize(This,pSectionList) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList) ) + +#define IDVB_ST_GetDataLength(This,pwVal) \ + ( (This)->lpVtbl -> GetDataLength(This,pwVal) ) + +#define IDVB_ST_GetData(This,ppData) \ + ( (This)->lpVtbl -> GetData(This,ppData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_ST_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_TDT_INTERFACE_DEFINED__ +#define __IDVB_TDT_INTERFACE_DEFINED__ + +/* interface IDVB_TDT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_TDT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0780DC7D-D55C-4aef-97E6-6B75906E2796") + IDVB_TDT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUTCTime( + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_TDTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_TDT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_TDT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_TDT * This); + + DECLSPEC_XFGVIRT(IDVB_TDT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_TDT * This, + /* [in] */ ISectionList *pSectionList); + + DECLSPEC_XFGVIRT(IDVB_TDT, GetUTCTime) + HRESULT ( STDMETHODCALLTYPE *GetUTCTime )( + IDVB_TDT * This, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + END_INTERFACE + } IDVB_TDTVtbl; + + interface IDVB_TDT + { + CONST_VTBL struct IDVB_TDTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_TDT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_TDT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_TDT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_TDT_Initialize(This,pSectionList) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList) ) + +#define IDVB_TDT_GetUTCTime(This,pmdtVal) \ + ( (This)->lpVtbl -> GetUTCTime(This,pmdtVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_TDT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_TOT_INTERFACE_DEFINED__ +#define __IDVB_TOT_INTERFACE_DEFINED__ + +/* interface IDVB_TOT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_TOT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("83295D6A-FABA-4ee1-9B15-8067696910AE") + IDVB_TOT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUTCTime( + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_TOTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_TOT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_TOT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_TOT * This); + + DECLSPEC_XFGVIRT(IDVB_TOT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_TOT * This, + /* [in] */ ISectionList *pSectionList); + + DECLSPEC_XFGVIRT(IDVB_TOT, GetUTCTime) + HRESULT ( STDMETHODCALLTYPE *GetUTCTime )( + IDVB_TOT * This, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IDVB_TOT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IDVB_TOT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_TOT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IDVB_TOT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_TOT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IDVB_TOT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + END_INTERFACE + } IDVB_TOTVtbl; + + interface IDVB_TOT + { + CONST_VTBL struct IDVB_TOTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_TOT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_TOT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_TOT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_TOT_Initialize(This,pSectionList) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList) ) + +#define IDVB_TOT_GetUTCTime(This,pmdtVal) \ + ( (This)->lpVtbl -> GetUTCTime(This,pmdtVal) ) + +#define IDVB_TOT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IDVB_TOT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IDVB_TOT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_TOT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_DIT_INTERFACE_DEFINED__ +#define __IDVB_DIT_INTERFACE_DEFINED__ + +/* interface IDVB_DIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_DIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("91BFFDF9-9432-410f-86EF-1C228ED0AD70") + IDVB_DIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransitionFlag( + /* [out] */ BOOL *pfVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_DITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_DIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_DIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_DIT * This); + + DECLSPEC_XFGVIRT(IDVB_DIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_DIT * This, + /* [in] */ ISectionList *pSectionList); + + DECLSPEC_XFGVIRT(IDVB_DIT, GetTransitionFlag) + HRESULT ( STDMETHODCALLTYPE *GetTransitionFlag )( + IDVB_DIT * This, + /* [out] */ BOOL *pfVal); + + END_INTERFACE + } IDVB_DITVtbl; + + interface IDVB_DIT + { + CONST_VTBL struct IDVB_DITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_DIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_DIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_DIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_DIT_Initialize(This,pSectionList) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList) ) + +#define IDVB_DIT_GetTransitionFlag(This,pfVal) \ + ( (This)->lpVtbl -> GetTransitionFlag(This,pfVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_DIT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_SIT_INTERFACE_DEFINED__ +#define __IDVB_SIT_INTERFACE_DEFINED__ + +/* interface IDVB_SIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_SIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("68CDCE53-8BEA-45c2-9D9D-ACF575A089B5") + IDVB_SIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRunningStatus( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForNextTable( + /* [in] */ HANDLE hNextTableAvailable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextTable( + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForWhenCurrent( + /* [in] */ HANDLE hNextTableIsCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertNextToCurrent( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_SITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_SIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_SIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_SIT * This); + + DECLSPEC_XFGVIRT(IDVB_SIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_SIT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_SIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IDVB_SIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IDVB_SIT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IDVB_SIT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_SIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDVB_SIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IDVB_SIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_SIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_SIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_SIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SIT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_SIT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_SIT * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT); + + DECLSPEC_XFGVIRT(IDVB_SIT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_SIT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_SIT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_SIT * This); + + END_INTERFACE + } IDVB_SITVtbl; + + interface IDVB_SIT + { + CONST_VTBL struct IDVB_SITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_SIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_SIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_SIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_SIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_SIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_SIT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IDVB_SIT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IDVB_SIT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_SIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_SIT_GetRecordServiceId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,dwRecordIndex,pwVal) ) + +#define IDVB_SIT_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#define IDVB_SIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_SIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_SIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_SIT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_SIT_GetNextTable(This,dwTimeout,ppSIT) \ + ( (This)->lpVtbl -> GetNextTable(This,dwTimeout,ppSIT) ) + +#define IDVB_SIT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_SIT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_SIT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_BIT_INTERFACE_DEFINED__ +#define __IISDB_BIT_INTERFACE_DEFINED__ + +/* interface IISDB_BIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_BIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("537CD71E-0E46-4173-9001-BA043F3E49E2") + IISDB_BIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBroadcastViewPropriety( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordBroadcasterId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_BITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_BIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_BIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_BIT * This); + + DECLSPEC_XFGVIRT(IISDB_BIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_BIT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_BIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_BIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetBroadcastViewPropriety) + HRESULT ( STDMETHODCALLTYPE *GetBroadcastViewPropriety )( + IISDB_BIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IISDB_BIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IISDB_BIT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IISDB_BIT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IISDB_BIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetRecordBroadcasterId) + HRESULT ( STDMETHODCALLTYPE *GetRecordBroadcasterId )( + IISDB_BIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IISDB_BIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IISDB_BIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IISDB_BIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_BIT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_BITVtbl; + + interface IISDB_BIT + { + CONST_VTBL struct IISDB_BITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_BIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_BIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_BIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_BIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_BIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_BIT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_BIT_GetBroadcastViewPropriety(This,pbVal) \ + ( (This)->lpVtbl -> GetBroadcastViewPropriety(This,pbVal) ) + +#define IISDB_BIT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IISDB_BIT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IISDB_BIT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_BIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IISDB_BIT_GetRecordBroadcasterId(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordBroadcasterId(This,dwRecordIndex,pbVal) ) + +#define IISDB_BIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IISDB_BIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IISDB_BIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_BIT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_BIT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_NBIT_INTERFACE_DEFINED__ +#define __IISDB_NBIT_INTERFACE_DEFINED__ + +/* interface IISDB_NBIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_NBIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1B1863EF-08F1-40B7-A559-3B1EFF8CAFA6") + IISDB_NBIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordInformationId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordInformationType( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptionBodyLocation( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordMessageSectionNumber( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordUserDefined( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNumberOfKeys( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordKeys( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE **pbKeys) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_NBITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_NBIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_NBIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_NBIT * This); + + DECLSPEC_XFGVIRT(IISDB_NBIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_NBIT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_NBIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_NBIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IISDB_NBIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordInformationId) + HRESULT ( STDMETHODCALLTYPE *GetRecordInformationId )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordInformationType) + HRESULT ( STDMETHODCALLTYPE *GetRecordInformationType )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordDescriptionBodyLocation) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptionBodyLocation )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordMessageSectionNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordMessageSectionNumber )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordUserDefined) + HRESULT ( STDMETHODCALLTYPE *GetRecordUserDefined )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordNumberOfKeys) + HRESULT ( STDMETHODCALLTYPE *GetRecordNumberOfKeys )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordKeys) + HRESULT ( STDMETHODCALLTYPE *GetRecordKeys )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE **pbKeys); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_NBIT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_NBITVtbl; + + interface IISDB_NBIT + { + CONST_VTBL struct IISDB_NBITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_NBIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_NBIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_NBIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_NBIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_NBIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_NBIT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_NBIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IISDB_NBIT_GetRecordInformationId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordInformationId(This,dwRecordIndex,pwVal) ) + +#define IISDB_NBIT_GetRecordInformationType(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordInformationType(This,dwRecordIndex,pbVal) ) + +#define IISDB_NBIT_GetRecordDescriptionBodyLocation(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordDescriptionBodyLocation(This,dwRecordIndex,pbVal) ) + +#define IISDB_NBIT_GetRecordMessageSectionNumber(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordMessageSectionNumber(This,dwRecordIndex,pbVal) ) + +#define IISDB_NBIT_GetRecordUserDefined(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordUserDefined(This,dwRecordIndex,pbVal) ) + +#define IISDB_NBIT_GetRecordNumberOfKeys(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordNumberOfKeys(This,dwRecordIndex,pbVal) ) + +#define IISDB_NBIT_GetRecordKeys(This,dwRecordIndex,pbKeys) \ + ( (This)->lpVtbl -> GetRecordKeys(This,dwRecordIndex,pbKeys) ) + +#define IISDB_NBIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IISDB_NBIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IISDB_NBIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_NBIT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_NBIT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_LDT_INTERFACE_DEFINED__ +#define __IISDB_LDT_INTERFACE_DEFINED__ + +/* interface IISDB_LDT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_LDT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("141A546B-02FF-4FB9-A3A3-2F074B74A9A9") + IISDB_LDT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalServiceId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransportStreamId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptionId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_LDTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_LDT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_LDT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_LDT * This); + + DECLSPEC_XFGVIRT(IISDB_LDT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_LDT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_LDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetOriginalServiceId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalServiceId )( + IISDB_LDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IISDB_LDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_LDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IISDB_LDT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetRecordDescriptionId) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptionId )( + IISDB_LDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IISDB_LDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IISDB_LDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IISDB_LDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_LDT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_LDTVtbl; + + interface IISDB_LDT + { + CONST_VTBL struct IISDB_LDTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_LDT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_LDT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_LDT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_LDT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_LDT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_LDT_GetOriginalServiceId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalServiceId(This,pwVal) ) + +#define IISDB_LDT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IISDB_LDT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_LDT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IISDB_LDT_GetRecordDescriptionId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordDescriptionId(This,dwRecordIndex,pwVal) ) + +#define IISDB_LDT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IISDB_LDT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IISDB_LDT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_LDT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_LDT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_SDTT_INTERFACE_DEFINED__ +#define __IISDB_SDTT_INTERFACE_DEFINED__ + +/* interface IISDB_SDTT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_SDTT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EE60EF2D-813A-4DC7-BF92-EA13DAC85313") + IISDB_SDTT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableIdExt( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransportStreamId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordGroup( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTargetVersion( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNewVersion( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDownloadLevel( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordVersionIndicator( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordScheduleTimeShiftInformation( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfSchedules( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordStartTimeByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDurationByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ MPEG_DURATION *pmdVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_SDTTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_SDTT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_SDTT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_SDTT * This); + + DECLSPEC_XFGVIRT(IISDB_SDTT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_SDTT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_SDTT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetTableIdExt) + HRESULT ( STDMETHODCALLTYPE *GetTableIdExt )( + IISDB_SDTT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IISDB_SDTT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_SDTT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetServiceId) + HRESULT ( STDMETHODCALLTYPE *GetServiceId )( + IISDB_SDTT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IISDB_SDTT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordGroup) + HRESULT ( STDMETHODCALLTYPE *GetRecordGroup )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordTargetVersion) + HRESULT ( STDMETHODCALLTYPE *GetRecordTargetVersion )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordNewVersion) + HRESULT ( STDMETHODCALLTYPE *GetRecordNewVersion )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordDownloadLevel) + HRESULT ( STDMETHODCALLTYPE *GetRecordDownloadLevel )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordVersionIndicator) + HRESULT ( STDMETHODCALLTYPE *GetRecordVersionIndicator )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordScheduleTimeShiftInformation) + HRESULT ( STDMETHODCALLTYPE *GetRecordScheduleTimeShiftInformation )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordCountOfSchedules) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfSchedules )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordStartTimeByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordStartTimeByIndex )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordDurationByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDurationByIndex )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ MPEG_DURATION *pmdVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_SDTT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_SDTTVtbl; + + interface IISDB_SDTT + { + CONST_VTBL struct IISDB_SDTTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_SDTT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_SDTT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_SDTT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_SDTT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_SDTT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_SDTT_GetTableIdExt(This,pwVal) \ + ( (This)->lpVtbl -> GetTableIdExt(This,pwVal) ) + +#define IISDB_SDTT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IISDB_SDTT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_SDTT_GetServiceId(This,pwVal) \ + ( (This)->lpVtbl -> GetServiceId(This,pwVal) ) + +#define IISDB_SDTT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IISDB_SDTT_GetRecordGroup(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordGroup(This,dwRecordIndex,pbVal) ) + +#define IISDB_SDTT_GetRecordTargetVersion(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordTargetVersion(This,dwRecordIndex,pwVal) ) + +#define IISDB_SDTT_GetRecordNewVersion(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordNewVersion(This,dwRecordIndex,pwVal) ) + +#define IISDB_SDTT_GetRecordDownloadLevel(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordDownloadLevel(This,dwRecordIndex,pbVal) ) + +#define IISDB_SDTT_GetRecordVersionIndicator(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordVersionIndicator(This,dwRecordIndex,pbVal) ) + +#define IISDB_SDTT_GetRecordScheduleTimeShiftInformation(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordScheduleTimeShiftInformation(This,dwRecordIndex,pbVal) ) + +#define IISDB_SDTT_GetRecordCountOfSchedules(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfSchedules(This,dwRecordIndex,pdwVal) ) + +#define IISDB_SDTT_GetRecordStartTimeByIndex(This,dwRecordIndex,dwIndex,pmdtVal) \ + ( (This)->lpVtbl -> GetRecordStartTimeByIndex(This,dwRecordIndex,dwIndex,pmdtVal) ) + +#define IISDB_SDTT_GetRecordDurationByIndex(This,dwRecordIndex,dwIndex,pmdVal) \ + ( (This)->lpVtbl -> GetRecordDurationByIndex(This,dwRecordIndex,dwIndex,pmdVal) ) + +#define IISDB_SDTT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IISDB_SDTT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IISDB_SDTT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_SDTT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_SDTT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_CDT_INTERFACE_DEFINED__ +#define __IISDB_CDT_INTERFACE_DEFINED__ + +/* interface IISDB_CDT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_CDT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("25FA92C2-8B80-4787-A841-3A0E8F17984B") + IISDB_CDT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData, + /* [in] */ BYTE bSectionNumber) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDownloadDataId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSectionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSizeOfDataModule( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataModule( + /* [out] */ BYTE **pbData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_CDTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_CDT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_CDT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_CDT * This); + + DECLSPEC_XFGVIRT(IISDB_CDT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_CDT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData, + /* [in] */ BYTE bSectionNumber); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_CDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetDownloadDataId) + HRESULT ( STDMETHODCALLTYPE *GetDownloadDataId )( + IISDB_CDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetSectionNumber) + HRESULT ( STDMETHODCALLTYPE *GetSectionNumber )( + IISDB_CDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_CDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetDataType) + HRESULT ( STDMETHODCALLTYPE *GetDataType )( + IISDB_CDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IISDB_CDT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IISDB_CDT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IISDB_CDT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetSizeOfDataModule) + HRESULT ( STDMETHODCALLTYPE *GetSizeOfDataModule )( + IISDB_CDT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetDataModule) + HRESULT ( STDMETHODCALLTYPE *GetDataModule )( + IISDB_CDT * This, + /* [out] */ BYTE **pbData); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_CDT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_CDTVtbl; + + interface IISDB_CDT + { + CONST_VTBL struct IISDB_CDTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_CDT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_CDT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_CDT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_CDT_Initialize(This,pSectionList,pMPEGData,bSectionNumber) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData,bSectionNumber) ) + +#define IISDB_CDT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_CDT_GetDownloadDataId(This,pwVal) \ + ( (This)->lpVtbl -> GetDownloadDataId(This,pwVal) ) + +#define IISDB_CDT_GetSectionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetSectionNumber(This,pbVal) ) + +#define IISDB_CDT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_CDT_GetDataType(This,pbVal) \ + ( (This)->lpVtbl -> GetDataType(This,pbVal) ) + +#define IISDB_CDT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IISDB_CDT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IISDB_CDT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_CDT_GetSizeOfDataModule(This,pdwVal) \ + ( (This)->lpVtbl -> GetSizeOfDataModule(This,pdwVal) ) + +#define IISDB_CDT_GetDataModule(This,pbData) \ + ( (This)->lpVtbl -> GetDataModule(This,pbData) ) + +#define IISDB_CDT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_CDT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_EMM_INTERFACE_DEFINED__ +#define __IISDB_EMM_INTERFACE_DEFINED__ + +/* interface IISDB_EMM */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_EMM; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0EDB556D-43AD-4938-9668-321B2FFECFD3") + IISDB_EMM : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableIdExtension( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataBytes( + /* [out][in] */ WORD *pwBufferLength, + /* [out] */ BYTE *pbBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSharedEmmMessage( + WORD *pwLength, + BYTE **ppbMessage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIndividualEmmMessage( + IUnknown *pUnknown, + WORD *pwLength, + BYTE **ppbMessage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_EMMVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_EMM * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_EMM * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_EMM * This); + + DECLSPEC_XFGVIRT(IISDB_EMM, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_EMM * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_EMM * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetTableIdExtension) + HRESULT ( STDMETHODCALLTYPE *GetTableIdExtension )( + IISDB_EMM * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetDataBytes) + HRESULT ( STDMETHODCALLTYPE *GetDataBytes )( + IISDB_EMM * This, + /* [out][in] */ WORD *pwBufferLength, + /* [out] */ BYTE *pbBuffer); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetSharedEmmMessage) + HRESULT ( STDMETHODCALLTYPE *GetSharedEmmMessage )( + IISDB_EMM * This, + WORD *pwLength, + BYTE **ppbMessage); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetIndividualEmmMessage) + HRESULT ( STDMETHODCALLTYPE *GetIndividualEmmMessage )( + IISDB_EMM * This, + IUnknown *pUnknown, + WORD *pwLength, + BYTE **ppbMessage); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_EMM * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_EMMVtbl; + + interface IISDB_EMM + { + CONST_VTBL struct IISDB_EMMVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_EMM_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_EMM_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_EMM_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_EMM_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_EMM_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_EMM_GetTableIdExtension(This,pwVal) \ + ( (This)->lpVtbl -> GetTableIdExtension(This,pwVal) ) + +#define IISDB_EMM_GetDataBytes(This,pwBufferLength,pbBuffer) \ + ( (This)->lpVtbl -> GetDataBytes(This,pwBufferLength,pbBuffer) ) + +#define IISDB_EMM_GetSharedEmmMessage(This,pwLength,ppbMessage) \ + ( (This)->lpVtbl -> GetSharedEmmMessage(This,pwLength,ppbMessage) ) + +#define IISDB_EMM_GetIndividualEmmMessage(This,pUnknown,pwLength,ppbMessage) \ + ( (This)->lpVtbl -> GetIndividualEmmMessage(This,pUnknown,pwLength,ppbMessage) ) + +#define IISDB_EMM_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_EMM_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbServiceAttributeDescriptor_INTERFACE_DEFINED__ +#define __IDvbServiceAttributeDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbServiceAttributeDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbServiceAttributeDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0F37BD92-D6A1-4854-B950-3A969D27F30E") + IDvbServiceAttributeDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNumericSelectionFlag( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordVisibleServiceFlag( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbServiceAttributeDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbServiceAttributeDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbServiceAttributeDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbServiceAttributeDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbServiceAttributeDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbServiceAttributeDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbServiceAttributeDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbServiceAttributeDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetRecordNumericSelectionFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordNumericSelectionFlag )( + IDvbServiceAttributeDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetRecordVisibleServiceFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordVisibleServiceFlag )( + IDvbServiceAttributeDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BOOL *pfVal); + + END_INTERFACE + } IDvbServiceAttributeDescriptorVtbl; + + interface IDvbServiceAttributeDescriptor + { + CONST_VTBL struct IDvbServiceAttributeDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbServiceAttributeDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbServiceAttributeDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbServiceAttributeDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbServiceAttributeDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbServiceAttributeDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbServiceAttributeDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbServiceAttributeDescriptor_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbServiceAttributeDescriptor_GetRecordNumericSelectionFlag(This,bRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordNumericSelectionFlag(This,bRecordIndex,pfVal) ) + +#define IDvbServiceAttributeDescriptor_GetRecordVisibleServiceFlag(This,bRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordVisibleServiceFlag(This,bRecordIndex,pfVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbServiceAttributeDescriptor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dvbsiparser_0000_0022 */ +/* [local] */ + +typedef /* [public] */ +enum __MIDL___MIDL_itf_dvbsiparser_0000_0022_0001 + { + CRID_LOCATION_IN_DESCRIPTOR = 0, + CRID_LOCATION_IN_CIT = 0x1, + CRID_LOCATION_DVB_RESERVED1 = 0x2, + CRID_LOCATION_DVB_RESERVED2 = 0x3 + } CRID_LOCATION; + + + +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0022_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0022_v0_0_s_ifspec; + +#ifndef __IDvbContentIdentifierDescriptor_INTERFACE_DEFINED__ +#define __IDvbContentIdentifierDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbContentIdentifierDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbContentIdentifierDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("05E0C1EA-F661-4053-9FBF-D93B28359838") + IDvbContentIdentifierDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCrid( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbType, + /* [out] */ BYTE *pbLocation, + /* [out] */ BYTE *pbLength, + /* [size_is][size_is][out] */ BYTE **ppbBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbContentIdentifierDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbContentIdentifierDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbContentIdentifierDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbContentIdentifierDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbContentIdentifierDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbContentIdentifierDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentIdentifierDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbContentIdentifierDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentIdentifierDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbContentIdentifierDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentIdentifierDescriptor, GetRecordCrid) + HRESULT ( STDMETHODCALLTYPE *GetRecordCrid )( + IDvbContentIdentifierDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbType, + /* [out] */ BYTE *pbLocation, + /* [out] */ BYTE *pbLength, + /* [size_is][size_is][out] */ BYTE **ppbBytes); + + END_INTERFACE + } IDvbContentIdentifierDescriptorVtbl; + + interface IDvbContentIdentifierDescriptor + { + CONST_VTBL struct IDvbContentIdentifierDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbContentIdentifierDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbContentIdentifierDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbContentIdentifierDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbContentIdentifierDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbContentIdentifierDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbContentIdentifierDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbContentIdentifierDescriptor_GetRecordCrid(This,bRecordIndex,pbType,pbLocation,pbLength,ppbBytes) \ + ( (This)->lpVtbl -> GetRecordCrid(This,bRecordIndex,pbType,pbLocation,pbLength,ppbBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbContentIdentifierDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbDefaultAuthorityDescriptor_INTERFACE_DEFINED__ +#define __IDvbDefaultAuthorityDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbDefaultAuthorityDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbDefaultAuthorityDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("05EC24D1-3A31-44e7-B408-67C60A352276") + IDvbDefaultAuthorityDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefaultAuthority( + /* [out] */ BYTE *pbLength, + /* [size_is][size_is][out] */ BYTE **ppbBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbDefaultAuthorityDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbDefaultAuthorityDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbDefaultAuthorityDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbDefaultAuthorityDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbDefaultAuthorityDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbDefaultAuthorityDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDefaultAuthorityDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbDefaultAuthorityDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDefaultAuthorityDescriptor, GetDefaultAuthority) + HRESULT ( STDMETHODCALLTYPE *GetDefaultAuthority )( + IDvbDefaultAuthorityDescriptor * This, + /* [out] */ BYTE *pbLength, + /* [size_is][size_is][out] */ BYTE **ppbBytes); + + END_INTERFACE + } IDvbDefaultAuthorityDescriptorVtbl; + + interface IDvbDefaultAuthorityDescriptor + { + CONST_VTBL struct IDvbDefaultAuthorityDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbDefaultAuthorityDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbDefaultAuthorityDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbDefaultAuthorityDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbDefaultAuthorityDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbDefaultAuthorityDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbDefaultAuthorityDescriptor_GetDefaultAuthority(This,pbLength,ppbBytes) \ + ( (This)->lpVtbl -> GetDefaultAuthority(This,pbLength,ppbBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbDefaultAuthorityDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbSatelliteDeliverySystemDescriptor_INTERFACE_DEFINED__ +#define __IDvbSatelliteDeliverySystemDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbSatelliteDeliverySystemDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbSatelliteDeliverySystemDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("02F2225A-805B-4ec5-A9A6-F9B5913CD470") + IDvbSatelliteDeliverySystemDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrequency( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOrbitalPosition( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetWestEastFlag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPolarization( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetModulation( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSymbolRate( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFECInner( + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbSatelliteDeliverySystemDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbSatelliteDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbSatelliteDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetFrequency) + HRESULT ( STDMETHODCALLTYPE *GetFrequency )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetOrbitalPosition) + HRESULT ( STDMETHODCALLTYPE *GetOrbitalPosition )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetWestEastFlag) + HRESULT ( STDMETHODCALLTYPE *GetWestEastFlag )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetPolarization) + HRESULT ( STDMETHODCALLTYPE *GetPolarization )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetModulation) + HRESULT ( STDMETHODCALLTYPE *GetModulation )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetSymbolRate) + HRESULT ( STDMETHODCALLTYPE *GetSymbolRate )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetFECInner) + HRESULT ( STDMETHODCALLTYPE *GetFECInner )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbSatelliteDeliverySystemDescriptorVtbl; + + interface IDvbSatelliteDeliverySystemDescriptor + { + CONST_VTBL struct IDvbSatelliteDeliverySystemDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbSatelliteDeliverySystemDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbSatelliteDeliverySystemDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbSatelliteDeliverySystemDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbSatelliteDeliverySystemDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetFrequency(This,pdwVal) \ + ( (This)->lpVtbl -> GetFrequency(This,pdwVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetOrbitalPosition(This,pwVal) \ + ( (This)->lpVtbl -> GetOrbitalPosition(This,pwVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetWestEastFlag(This,pbVal) \ + ( (This)->lpVtbl -> GetWestEastFlag(This,pbVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetPolarization(This,pbVal) \ + ( (This)->lpVtbl -> GetPolarization(This,pbVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetModulation(This,pbVal) \ + ( (This)->lpVtbl -> GetModulation(This,pbVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetSymbolRate(This,pdwVal) \ + ( (This)->lpVtbl -> GetSymbolRate(This,pdwVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetFECInner(This,pbVal) \ + ( (This)->lpVtbl -> GetFECInner(This,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbSatelliteDeliverySystemDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbCableDeliverySystemDescriptor_INTERFACE_DEFINED__ +#define __IDvbCableDeliverySystemDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbCableDeliverySystemDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbCableDeliverySystemDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DFB98E36-9E1A-4862-9946-993A4E59017B") + IDvbCableDeliverySystemDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrequency( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFECOuter( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetModulation( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSymbolRate( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFECInner( + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbCableDeliverySystemDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbCableDeliverySystemDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbCableDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbCableDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetFrequency) + HRESULT ( STDMETHODCALLTYPE *GetFrequency )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetFECOuter) + HRESULT ( STDMETHODCALLTYPE *GetFECOuter )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetModulation) + HRESULT ( STDMETHODCALLTYPE *GetModulation )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetSymbolRate) + HRESULT ( STDMETHODCALLTYPE *GetSymbolRate )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetFECInner) + HRESULT ( STDMETHODCALLTYPE *GetFECInner )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbCableDeliverySystemDescriptorVtbl; + + interface IDvbCableDeliverySystemDescriptor + { + CONST_VTBL struct IDvbCableDeliverySystemDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbCableDeliverySystemDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbCableDeliverySystemDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbCableDeliverySystemDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbCableDeliverySystemDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetFrequency(This,pdwVal) \ + ( (This)->lpVtbl -> GetFrequency(This,pdwVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetFECOuter(This,pbVal) \ + ( (This)->lpVtbl -> GetFECOuter(This,pbVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetModulation(This,pbVal) \ + ( (This)->lpVtbl -> GetModulation(This,pbVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetSymbolRate(This,pdwVal) \ + ( (This)->lpVtbl -> GetSymbolRate(This,pdwVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetFECInner(This,pbVal) \ + ( (This)->lpVtbl -> GetFECInner(This,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbCableDeliverySystemDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ +#define __IDvbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbTerrestrialDeliverySystemDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbTerrestrialDeliverySystemDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ED7E1B91-D12E-420c-B41D-A49D84FE1823") + IDvbTerrestrialDeliverySystemDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCentreFrequency( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBandwidth( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConstellation( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHierarchyInformation( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodeRateHPStream( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodeRateLPStream( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGuardInterval( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransmissionMode( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOtherFrequencyFlag( + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbTerrestrialDeliverySystemDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbTerrestrialDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbTerrestrialDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetCentreFrequency) + HRESULT ( STDMETHODCALLTYPE *GetCentreFrequency )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetBandwidth) + HRESULT ( STDMETHODCALLTYPE *GetBandwidth )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetConstellation) + HRESULT ( STDMETHODCALLTYPE *GetConstellation )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetHierarchyInformation) + HRESULT ( STDMETHODCALLTYPE *GetHierarchyInformation )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetCodeRateHPStream) + HRESULT ( STDMETHODCALLTYPE *GetCodeRateHPStream )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetCodeRateLPStream) + HRESULT ( STDMETHODCALLTYPE *GetCodeRateLPStream )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetGuardInterval) + HRESULT ( STDMETHODCALLTYPE *GetGuardInterval )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetTransmissionMode) + HRESULT ( STDMETHODCALLTYPE *GetTransmissionMode )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetOtherFrequencyFlag) + HRESULT ( STDMETHODCALLTYPE *GetOtherFrequencyFlag )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbTerrestrialDeliverySystemDescriptorVtbl; + + interface IDvbTerrestrialDeliverySystemDescriptor + { + CONST_VTBL struct IDvbTerrestrialDeliverySystemDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbTerrestrialDeliverySystemDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbTerrestrialDeliverySystemDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetCentreFrequency(This,pdwVal) \ + ( (This)->lpVtbl -> GetCentreFrequency(This,pdwVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetBandwidth(This,pbVal) \ + ( (This)->lpVtbl -> GetBandwidth(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetConstellation(This,pbVal) \ + ( (This)->lpVtbl -> GetConstellation(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetHierarchyInformation(This,pbVal) \ + ( (This)->lpVtbl -> GetHierarchyInformation(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetCodeRateHPStream(This,pbVal) \ + ( (This)->lpVtbl -> GetCodeRateHPStream(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetCodeRateLPStream(This,pbVal) \ + ( (This)->lpVtbl -> GetCodeRateLPStream(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetGuardInterval(This,pbVal) \ + ( (This)->lpVtbl -> GetGuardInterval(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetTransmissionMode(This,pbVal) \ + ( (This)->lpVtbl -> GetTransmissionMode(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetOtherFrequencyFlag(This,pbVal) \ + ( (This)->lpVtbl -> GetOtherFrequencyFlag(This,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbTerrestrial2DeliverySystemDescriptor_INTERFACE_DEFINED__ +#define __IDvbTerrestrial2DeliverySystemDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbTerrestrial2DeliverySystemDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbTerrestrial2DeliverySystemDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("20EE9BE9-CD57-49ab-8F6E-1D07AEB8E482") + IDvbTerrestrial2DeliverySystemDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTagExtension( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCentreFrequency( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPLPId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetT2SystemId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMultipleInputMode( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBandwidth( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGuardInterval( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransmissionMode( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCellId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOtherFrequencyFlag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTFSFlag( + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbTerrestrial2DeliverySystemDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbTerrestrial2DeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbTerrestrial2DeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetTagExtension) + HRESULT ( STDMETHODCALLTYPE *GetTagExtension )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetCentreFrequency) + HRESULT ( STDMETHODCALLTYPE *GetCentreFrequency )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetPLPId) + HRESULT ( STDMETHODCALLTYPE *GetPLPId )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetT2SystemId) + HRESULT ( STDMETHODCALLTYPE *GetT2SystemId )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetMultipleInputMode) + HRESULT ( STDMETHODCALLTYPE *GetMultipleInputMode )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetBandwidth) + HRESULT ( STDMETHODCALLTYPE *GetBandwidth )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetGuardInterval) + HRESULT ( STDMETHODCALLTYPE *GetGuardInterval )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetTransmissionMode) + HRESULT ( STDMETHODCALLTYPE *GetTransmissionMode )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetCellId) + HRESULT ( STDMETHODCALLTYPE *GetCellId )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetOtherFrequencyFlag) + HRESULT ( STDMETHODCALLTYPE *GetOtherFrequencyFlag )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetTFSFlag) + HRESULT ( STDMETHODCALLTYPE *GetTFSFlag )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbTerrestrial2DeliverySystemDescriptorVtbl; + + interface IDvbTerrestrial2DeliverySystemDescriptor + { + CONST_VTBL struct IDvbTerrestrial2DeliverySystemDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbTerrestrial2DeliverySystemDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetTagExtension(This,pbVal) \ + ( (This)->lpVtbl -> GetTagExtension(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetCentreFrequency(This,pdwVal) \ + ( (This)->lpVtbl -> GetCentreFrequency(This,pdwVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetPLPId(This,pbVal) \ + ( (This)->lpVtbl -> GetPLPId(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetT2SystemId(This,pwVal) \ + ( (This)->lpVtbl -> GetT2SystemId(This,pwVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetMultipleInputMode(This,pbVal) \ + ( (This)->lpVtbl -> GetMultipleInputMode(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetBandwidth(This,pbVal) \ + ( (This)->lpVtbl -> GetBandwidth(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetGuardInterval(This,pbVal) \ + ( (This)->lpVtbl -> GetGuardInterval(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetTransmissionMode(This,pbVal) \ + ( (This)->lpVtbl -> GetTransmissionMode(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetCellId(This,pwVal) \ + ( (This)->lpVtbl -> GetCellId(This,pwVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetOtherFrequencyFlag(This,pbVal) \ + ( (This)->lpVtbl -> GetOtherFrequencyFlag(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetTFSFlag(This,pbVal) \ + ( (This)->lpVtbl -> GetTFSFlag(This,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbTerrestrial2DeliverySystemDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbFrequencyListDescriptor_INTERFACE_DEFINED__ +#define __IDvbFrequencyListDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbFrequencyListDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbFrequencyListDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1CADB613-E1DD-4512-AFA8-BB7A007EF8B1") + IDvbFrequencyListDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodingType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCentreFrequency( + /* [in] */ BYTE bRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbFrequencyListDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbFrequencyListDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbFrequencyListDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbFrequencyListDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbFrequencyListDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbFrequencyListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbFrequencyListDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbFrequencyListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbFrequencyListDescriptor, GetCodingType) + HRESULT ( STDMETHODCALLTYPE *GetCodingType )( + IDvbFrequencyListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbFrequencyListDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbFrequencyListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbFrequencyListDescriptor, GetRecordCentreFrequency) + HRESULT ( STDMETHODCALLTYPE *GetRecordCentreFrequency )( + IDvbFrequencyListDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ DWORD *pdwVal); + + END_INTERFACE + } IDvbFrequencyListDescriptorVtbl; + + interface IDvbFrequencyListDescriptor + { + CONST_VTBL struct IDvbFrequencyListDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbFrequencyListDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbFrequencyListDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbFrequencyListDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbFrequencyListDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbFrequencyListDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbFrequencyListDescriptor_GetCodingType(This,pbVal) \ + ( (This)->lpVtbl -> GetCodingType(This,pbVal) ) + +#define IDvbFrequencyListDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbFrequencyListDescriptor_GetRecordCentreFrequency(This,bRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCentreFrequency(This,bRecordIndex,pdwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbFrequencyListDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbPrivateDataSpecifierDescriptor_INTERFACE_DEFINED__ +#define __IDvbPrivateDataSpecifierDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbPrivateDataSpecifierDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbPrivateDataSpecifierDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5660A019-E75A-4b82-9B4C-ED2256D165A2") + IDvbPrivateDataSpecifierDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateDataSpecifier( + /* [out] */ DWORD *pdwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbPrivateDataSpecifierDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbPrivateDataSpecifierDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbPrivateDataSpecifierDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbPrivateDataSpecifierDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbPrivateDataSpecifierDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbPrivateDataSpecifierDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbPrivateDataSpecifierDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbPrivateDataSpecifierDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbPrivateDataSpecifierDescriptor, GetPrivateDataSpecifier) + HRESULT ( STDMETHODCALLTYPE *GetPrivateDataSpecifier )( + IDvbPrivateDataSpecifierDescriptor * This, + /* [out] */ DWORD *pdwVal); + + END_INTERFACE + } IDvbPrivateDataSpecifierDescriptorVtbl; + + interface IDvbPrivateDataSpecifierDescriptor + { + CONST_VTBL struct IDvbPrivateDataSpecifierDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbPrivateDataSpecifierDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbPrivateDataSpecifierDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbPrivateDataSpecifierDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbPrivateDataSpecifierDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbPrivateDataSpecifierDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbPrivateDataSpecifierDescriptor_GetPrivateDataSpecifier(This,pdwVal) \ + ( (This)->lpVtbl -> GetPrivateDataSpecifier(This,pdwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbPrivateDataSpecifierDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbLogicalChannelDescriptor_INTERFACE_DEFINED__ +#define __IDvbLogicalChannelDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbLogicalChannelDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbLogicalChannelDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CF1EDAFF-3FFD-4cf7-8201-35756ACBF85F") + IDvbLogicalChannelDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordLogicalChannelNumber( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbLogicalChannelDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbLogicalChannelDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbLogicalChannelDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbLogicalChannelDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbLogicalChannelDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordLogicalChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelNumber )( + IDvbLogicalChannelDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IDvbLogicalChannelDescriptorVtbl; + + interface IDvbLogicalChannelDescriptor + { + CONST_VTBL struct IDvbLogicalChannelDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbLogicalChannelDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbLogicalChannelDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbLogicalChannelDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbLogicalChannelDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbLogicalChannelDescriptor_GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbLogicalChannelDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbLogicalChannelDescriptor2_INTERFACE_DEFINED__ +#define __IDvbLogicalChannelDescriptor2_INTERFACE_DEFINED__ + +/* interface IDvbLogicalChannelDescriptor2 */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbLogicalChannelDescriptor2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("43ACA974-4BE8-4b98-BC17-9EAFD788B1D7") + IDvbLogicalChannelDescriptor2 : public IDvbLogicalChannelDescriptor + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRecordLogicalChannelAndVisibility( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbLogicalChannelDescriptor2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbLogicalChannelDescriptor2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbLogicalChannelDescriptor2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbLogicalChannelDescriptor2 * This); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbLogicalChannelDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbLogicalChannelDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbLogicalChannelDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbLogicalChannelDescriptor2 * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordLogicalChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelNumber )( + IDvbLogicalChannelDescriptor2 * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor2, GetRecordLogicalChannelAndVisibility) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelAndVisibility )( + IDvbLogicalChannelDescriptor2 * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IDvbLogicalChannelDescriptor2Vtbl; + + interface IDvbLogicalChannelDescriptor2 + { + CONST_VTBL struct IDvbLogicalChannelDescriptor2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbLogicalChannelDescriptor2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbLogicalChannelDescriptor2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbLogicalChannelDescriptor2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbLogicalChannelDescriptor2_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor2_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor2_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor2_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbLogicalChannelDescriptor2_GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) ) + + +#define IDvbLogicalChannelDescriptor2_GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbLogicalChannelDescriptor2_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbLogicalChannel2Descriptor_INTERFACE_DEFINED__ +#define __IDvbLogicalChannel2Descriptor_INTERFACE_DEFINED__ + +/* interface IDvbLogicalChannel2Descriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbLogicalChannel2Descriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F69C3747-8A30-4980-998C-01FE7F0BA35A") + IDvbLogicalChannel2Descriptor : public IDvbLogicalChannelDescriptor2 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCountOfLists( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListId( + /* [in] */ BYTE bListIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListNameW( + /* [in] */ BYTE bListIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListCountryCode( + /* [in] */ BYTE bListIndex, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListCountOfRecords( + /* [in] */ BYTE bChannelListIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListRecordServiceId( + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListRecordLogicalChannelNumber( + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListRecordLogicalChannelAndVisibility( + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbLogicalChannel2DescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbLogicalChannel2Descriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbLogicalChannel2Descriptor * This); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbLogicalChannel2Descriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbLogicalChannel2Descriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbLogicalChannel2Descriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordLogicalChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelNumber )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor2, GetRecordLogicalChannelAndVisibility) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelAndVisibility )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetCountOfLists) + HRESULT ( STDMETHODCALLTYPE *GetCountOfLists )( + IDvbLogicalChannel2Descriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListId) + HRESULT ( STDMETHODCALLTYPE *GetListId )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListNameW) + HRESULT ( STDMETHODCALLTYPE *GetListNameW )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListCountryCode) + HRESULT ( STDMETHODCALLTYPE *GetListCountryCode )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetListCountOfRecords )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bChannelListIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetListRecordServiceId )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListRecordLogicalChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetListRecordLogicalChannelNumber )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListRecordLogicalChannelAndVisibility) + HRESULT ( STDMETHODCALLTYPE *GetListRecordLogicalChannelAndVisibility )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IDvbLogicalChannel2DescriptorVtbl; + + interface IDvbLogicalChannel2Descriptor + { + CONST_VTBL struct IDvbLogicalChannel2DescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbLogicalChannel2Descriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbLogicalChannel2Descriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbLogicalChannel2Descriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbLogicalChannel2Descriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbLogicalChannel2Descriptor_GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) ) + + +#define IDvbLogicalChannel2Descriptor_GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) ) + + +#define IDvbLogicalChannel2Descriptor_GetCountOfLists(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfLists(This,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetListId(This,bListIndex,pbVal) \ + ( (This)->lpVtbl -> GetListId(This,bListIndex,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetListNameW(This,bListIndex,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetListNameW(This,bListIndex,convMode,pbstrName) ) + +#define IDvbLogicalChannel2Descriptor_GetListCountryCode(This,bListIndex,pszCode) \ + ( (This)->lpVtbl -> GetListCountryCode(This,bListIndex,pszCode) ) + +#define IDvbLogicalChannel2Descriptor_GetListCountOfRecords(This,bChannelListIndex,pbVal) \ + ( (This)->lpVtbl -> GetListCountOfRecords(This,bChannelListIndex,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetListRecordServiceId(This,bListIndex,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetListRecordServiceId(This,bListIndex,bRecordIndex,pwVal) ) + +#define IDvbLogicalChannel2Descriptor_GetListRecordLogicalChannelNumber(This,bListIndex,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetListRecordLogicalChannelNumber(This,bListIndex,bRecordIndex,pwVal) ) + +#define IDvbLogicalChannel2Descriptor_GetListRecordLogicalChannelAndVisibility(This,bListIndex,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetListRecordLogicalChannelAndVisibility(This,bListIndex,bRecordIndex,pwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbLogicalChannel2Descriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbHDSimulcastLogicalChannelDescriptor_INTERFACE_DEFINED__ +#define __IDvbHDSimulcastLogicalChannelDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbHDSimulcastLogicalChannelDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbHDSimulcastLogicalChannelDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1EA8B738-A307-4680-9E26-D0A908C824F4") + IDvbHDSimulcastLogicalChannelDescriptor : public IDvbLogicalChannelDescriptor2 + { + public: + }; + + +#else /* C style interface */ + + typedef struct IDvbHDSimulcastLogicalChannelDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbHDSimulcastLogicalChannelDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbHDSimulcastLogicalChannelDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordLogicalChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelNumber )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor2, GetRecordLogicalChannelAndVisibility) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelAndVisibility )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IDvbHDSimulcastLogicalChannelDescriptorVtbl; + + interface IDvbHDSimulcastLogicalChannelDescriptor + { + CONST_VTBL struct IDvbHDSimulcastLogicalChannelDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbHDSimulcastLogicalChannelDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) ) + + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbHDSimulcastLogicalChannelDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbDataBroadcastIDDescriptor_INTERFACE_DEFINED__ +#define __IDvbDataBroadcastIDDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbDataBroadcastIDDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbDataBroadcastIDDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5F26F518-65C8-4048-91F2-9290F59F7B90") + IDvbDataBroadcastIDDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataBroadcastID( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIDSelectorBytes( + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbDataBroadcastIDDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbDataBroadcastIDDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbDataBroadcastIDDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbDataBroadcastIDDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastIDDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbDataBroadcastIDDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastIDDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbDataBroadcastIDDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastIDDescriptor, GetDataBroadcastID) + HRESULT ( STDMETHODCALLTYPE *GetDataBroadcastID )( + IDvbDataBroadcastIDDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastIDDescriptor, GetIDSelectorBytes) + HRESULT ( STDMETHODCALLTYPE *GetIDSelectorBytes )( + IDvbDataBroadcastIDDescriptor * This, + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbDataBroadcastIDDescriptorVtbl; + + interface IDvbDataBroadcastIDDescriptor + { + CONST_VTBL struct IDvbDataBroadcastIDDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbDataBroadcastIDDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbDataBroadcastIDDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbDataBroadcastIDDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbDataBroadcastIDDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbDataBroadcastIDDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbDataBroadcastIDDescriptor_GetDataBroadcastID(This,pwVal) \ + ( (This)->lpVtbl -> GetDataBroadcastID(This,pwVal) ) + +#define IDvbDataBroadcastIDDescriptor_GetIDSelectorBytes(This,pbLen,pbVal) \ + ( (This)->lpVtbl -> GetIDSelectorBytes(This,pbLen,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbDataBroadcastIDDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbDataBroadcastDescriptor_INTERFACE_DEFINED__ +#define __IDvbDataBroadcastDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbDataBroadcastDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbDataBroadcastDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D1EBC1D6-8B60-4c20-9CAF-E59382E7C400") + IDvbDataBroadcastDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataBroadcastID( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSelectorLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSelectorBytes( + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLangID( + /* [out] */ ULONG *pulVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetText( + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbDataBroadcastDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbDataBroadcastDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbDataBroadcastDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbDataBroadcastDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetDataBroadcastID) + HRESULT ( STDMETHODCALLTYPE *GetDataBroadcastID )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetComponentTag )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetSelectorLength) + HRESULT ( STDMETHODCALLTYPE *GetSelectorLength )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetSelectorBytes) + HRESULT ( STDMETHODCALLTYPE *GetSelectorBytes )( + IDvbDataBroadcastDescriptor * This, + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetLangID) + HRESULT ( STDMETHODCALLTYPE *GetLangID )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ ULONG *pulVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetTextLength) + HRESULT ( STDMETHODCALLTYPE *GetTextLength )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetText) + HRESULT ( STDMETHODCALLTYPE *GetText )( + IDvbDataBroadcastDescriptor * This, + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbDataBroadcastDescriptorVtbl; + + interface IDvbDataBroadcastDescriptor + { + CONST_VTBL struct IDvbDataBroadcastDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbDataBroadcastDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbDataBroadcastDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbDataBroadcastDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbDataBroadcastDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetDataBroadcastID(This,pwVal) \ + ( (This)->lpVtbl -> GetDataBroadcastID(This,pwVal) ) + +#define IDvbDataBroadcastDescriptor_GetComponentTag(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentTag(This,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetSelectorLength(This,pbVal) \ + ( (This)->lpVtbl -> GetSelectorLength(This,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetSelectorBytes(This,pbLen,pbVal) \ + ( (This)->lpVtbl -> GetSelectorBytes(This,pbLen,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetLangID(This,pulVal) \ + ( (This)->lpVtbl -> GetLangID(This,pulVal) ) + +#define IDvbDataBroadcastDescriptor_GetTextLength(This,pbVal) \ + ( (This)->lpVtbl -> GetTextLength(This,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetText(This,pbLen,pbVal) \ + ( (This)->lpVtbl -> GetText(This,pbLen,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbDataBroadcastDescriptor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dvbsiparser_0000_0036 */ +/* [local] */ + +typedef /* [public] */ +enum __MIDL___MIDL_itf_dvbsiparser_0000_0036_0001 + { + DESC_LINKAGE_RESERVED0 = 0, + DESC_LINKAGE_INFORMATION = ( DESC_LINKAGE_RESERVED0 + 1 ) , + DESC_LINKAGE_EPG = ( DESC_LINKAGE_INFORMATION + 1 ) , + DESC_LINKAGE_CA_REPLACEMENT = ( DESC_LINKAGE_EPG + 1 ) , + DESC_LINKAGE_COMPLETE_NET_BOUQUET_SI = ( DESC_LINKAGE_CA_REPLACEMENT + 1 ) , + DESC_LINKAGE_REPLACEMENT = ( DESC_LINKAGE_COMPLETE_NET_BOUQUET_SI + 1 ) , + DESC_LINKAGE_DATA = ( DESC_LINKAGE_REPLACEMENT + 1 ) , + DESC_LINKAGE_RESERVED1 = 0x7, + DESC_LINKAGE_USER = 0x8, + DESC_LINKAGE_RESERVED2 = 0xff + } DESC_LINKAGE_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0036_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0036_v0_0_s_ifspec; + +#ifndef __IDvbLinkageDescriptor_INTERFACE_DEFINED__ +#define __IDvbLinkageDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbLinkageDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbLinkageDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1CDF8B31-994A-46fc-ACFD-6A6BE8934DD5") + IDvbLinkageDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTSId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetONId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLinkageType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateDataLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateData( + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbLinkageDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbLinkageDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbLinkageDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbLinkageDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbLinkageDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbLinkageDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetTSId) + HRESULT ( STDMETHODCALLTYPE *GetTSId )( + IDvbLinkageDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetONId) + HRESULT ( STDMETHODCALLTYPE *GetONId )( + IDvbLinkageDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetServiceId) + HRESULT ( STDMETHODCALLTYPE *GetServiceId )( + IDvbLinkageDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetLinkageType) + HRESULT ( STDMETHODCALLTYPE *GetLinkageType )( + IDvbLinkageDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetPrivateDataLength) + HRESULT ( STDMETHODCALLTYPE *GetPrivateDataLength )( + IDvbLinkageDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + IDvbLinkageDescriptor * This, + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbData); + + END_INTERFACE + } IDvbLinkageDescriptorVtbl; + + interface IDvbLinkageDescriptor + { + CONST_VTBL struct IDvbLinkageDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbLinkageDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbLinkageDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbLinkageDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbLinkageDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbLinkageDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbLinkageDescriptor_GetTSId(This,pwVal) \ + ( (This)->lpVtbl -> GetTSId(This,pwVal) ) + +#define IDvbLinkageDescriptor_GetONId(This,pwVal) \ + ( (This)->lpVtbl -> GetONId(This,pwVal) ) + +#define IDvbLinkageDescriptor_GetServiceId(This,pwVal) \ + ( (This)->lpVtbl -> GetServiceId(This,pwVal) ) + +#define IDvbLinkageDescriptor_GetLinkageType(This,pbVal) \ + ( (This)->lpVtbl -> GetLinkageType(This,pbVal) ) + +#define IDvbLinkageDescriptor_GetPrivateDataLength(This,pbVal) \ + ( (This)->lpVtbl -> GetPrivateDataLength(This,pbVal) ) + +#define IDvbLinkageDescriptor_GetPrivateData(This,pbLen,pbData) \ + ( (This)->lpVtbl -> GetPrivateData(This,pbLen,pbData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbLinkageDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbTeletextDescriptor_INTERFACE_DEFINED__ +#define __IDvbTeletextDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbTeletextDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbTeletextDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9CD29D47-69C6-4f92-98A9-210AF1B7303A") + IDvbTeletextDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordLangId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *pulVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTeletextType( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordMagazineNumber( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordPageNumber( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbTeletextDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbTeletextDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbTeletextDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbTeletextDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbTeletextDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbTeletextDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbTeletextDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetRecordLangId) + HRESULT ( STDMETHODCALLTYPE *GetRecordLangId )( + IDvbTeletextDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *pulVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetRecordTeletextType) + HRESULT ( STDMETHODCALLTYPE *GetRecordTeletextType )( + IDvbTeletextDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetRecordMagazineNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordMagazineNumber )( + IDvbTeletextDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetRecordPageNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordPageNumber )( + IDvbTeletextDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbTeletextDescriptorVtbl; + + interface IDvbTeletextDescriptor + { + CONST_VTBL struct IDvbTeletextDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbTeletextDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbTeletextDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbTeletextDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbTeletextDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbTeletextDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbTeletextDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbTeletextDescriptor_GetRecordLangId(This,bRecordIndex,pulVal) \ + ( (This)->lpVtbl -> GetRecordLangId(This,bRecordIndex,pulVal) ) + +#define IDvbTeletextDescriptor_GetRecordTeletextType(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordTeletextType(This,bRecordIndex,pbVal) ) + +#define IDvbTeletextDescriptor_GetRecordMagazineNumber(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordMagazineNumber(This,bRecordIndex,pbVal) ) + +#define IDvbTeletextDescriptor_GetRecordPageNumber(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordPageNumber(This,bRecordIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbTeletextDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbSubtitlingDescriptor_INTERFACE_DEFINED__ +#define __IDvbSubtitlingDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbSubtitlingDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbSubtitlingDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B25FE1D-FA23-4e50-9784-6DF8B26F8A49") + IDvbSubtitlingDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordLangId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *pulVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordSubtitlingType( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCompositionPageID( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordAncillaryPageID( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbSubtitlingDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbSubtitlingDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbSubtitlingDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbSubtitlingDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbSubtitlingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbSubtitlingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbSubtitlingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetRecordLangId) + HRESULT ( STDMETHODCALLTYPE *GetRecordLangId )( + IDvbSubtitlingDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *pulVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetRecordSubtitlingType) + HRESULT ( STDMETHODCALLTYPE *GetRecordSubtitlingType )( + IDvbSubtitlingDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetRecordCompositionPageID) + HRESULT ( STDMETHODCALLTYPE *GetRecordCompositionPageID )( + IDvbSubtitlingDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetRecordAncillaryPageID) + HRESULT ( STDMETHODCALLTYPE *GetRecordAncillaryPageID )( + IDvbSubtitlingDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IDvbSubtitlingDescriptorVtbl; + + interface IDvbSubtitlingDescriptor + { + CONST_VTBL struct IDvbSubtitlingDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbSubtitlingDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbSubtitlingDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbSubtitlingDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbSubtitlingDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbSubtitlingDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbSubtitlingDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbSubtitlingDescriptor_GetRecordLangId(This,bRecordIndex,pulVal) \ + ( (This)->lpVtbl -> GetRecordLangId(This,bRecordIndex,pulVal) ) + +#define IDvbSubtitlingDescriptor_GetRecordSubtitlingType(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordSubtitlingType(This,bRecordIndex,pbVal) ) + +#define IDvbSubtitlingDescriptor_GetRecordCompositionPageID(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordCompositionPageID(This,bRecordIndex,pwVal) ) + +#define IDvbSubtitlingDescriptor_GetRecordAncillaryPageID(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordAncillaryPageID(This,bRecordIndex,pwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbSubtitlingDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbServiceDescriptor_INTERFACE_DEFINED__ +#define __IDvbServiceDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbServiceDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbServiceDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F9C7FBCF-E2D6-464d-B32D-2EF526E49290") + IDvbServiceDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceProviderName( + /* [annotation][out] */ + _Outptr_ char **pszName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceProviderNameW( + /* [annotation][out] */ + _Outptr_ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceName( + /* [annotation][out] */ + _Outptr_ char **pszName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProcessedServiceName( + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceNameEmphasized( + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbServiceDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbServiceDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbServiceDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbServiceDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceType) + HRESULT ( STDMETHODCALLTYPE *GetServiceType )( + IDvbServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceProviderName) + HRESULT ( STDMETHODCALLTYPE *GetServiceProviderName )( + IDvbServiceDescriptor * This, + /* [annotation][out] */ + _Outptr_ char **pszName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceProviderNameW) + HRESULT ( STDMETHODCALLTYPE *GetServiceProviderNameW )( + IDvbServiceDescriptor * This, + /* [annotation][out] */ + _Outptr_ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceName) + HRESULT ( STDMETHODCALLTYPE *GetServiceName )( + IDvbServiceDescriptor * This, + /* [annotation][out] */ + _Outptr_ char **pszName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetProcessedServiceName) + HRESULT ( STDMETHODCALLTYPE *GetProcessedServiceName )( + IDvbServiceDescriptor * This, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceNameEmphasized) + HRESULT ( STDMETHODCALLTYPE *GetServiceNameEmphasized )( + IDvbServiceDescriptor * This, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IDvbServiceDescriptorVtbl; + + interface IDvbServiceDescriptor + { + CONST_VTBL struct IDvbServiceDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbServiceDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbServiceDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbServiceDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbServiceDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbServiceDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbServiceDescriptor_GetServiceType(This,pbVal) \ + ( (This)->lpVtbl -> GetServiceType(This,pbVal) ) + +#define IDvbServiceDescriptor_GetServiceProviderName(This,pszName) \ + ( (This)->lpVtbl -> GetServiceProviderName(This,pszName) ) + +#define IDvbServiceDescriptor_GetServiceProviderNameW(This,pbstrName) \ + ( (This)->lpVtbl -> GetServiceProviderNameW(This,pbstrName) ) + +#define IDvbServiceDescriptor_GetServiceName(This,pszName) \ + ( (This)->lpVtbl -> GetServiceName(This,pszName) ) + +#define IDvbServiceDescriptor_GetProcessedServiceName(This,pbstrName) \ + ( (This)->lpVtbl -> GetProcessedServiceName(This,pbstrName) ) + +#define IDvbServiceDescriptor_GetServiceNameEmphasized(This,pbstrName) \ + ( (This)->lpVtbl -> GetServiceNameEmphasized(This,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbServiceDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbServiceDescriptor2_INTERFACE_DEFINED__ +#define __IDvbServiceDescriptor2_INTERFACE_DEFINED__ + +/* interface IDvbServiceDescriptor2 */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbServiceDescriptor2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D6C76506-85AB-487C-9B2B-36416511E4A2") + IDvbServiceDescriptor2 : public IDvbServiceDescriptor + { + public: + virtual HRESULT STDMETHODCALLTYPE GetServiceProviderNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbServiceDescriptor2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbServiceDescriptor2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbServiceDescriptor2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbServiceDescriptor2 * This); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbServiceDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbServiceDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceType) + HRESULT ( STDMETHODCALLTYPE *GetServiceType )( + IDvbServiceDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceProviderName) + HRESULT ( STDMETHODCALLTYPE *GetServiceProviderName )( + IDvbServiceDescriptor2 * This, + /* [annotation][out] */ + _Outptr_ char **pszName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceProviderNameW) + HRESULT ( STDMETHODCALLTYPE *GetServiceProviderNameW )( + IDvbServiceDescriptor2 * This, + /* [annotation][out] */ + _Outptr_ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceName) + HRESULT ( STDMETHODCALLTYPE *GetServiceName )( + IDvbServiceDescriptor2 * This, + /* [annotation][out] */ + _Outptr_ char **pszName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetProcessedServiceName) + HRESULT ( STDMETHODCALLTYPE *GetProcessedServiceName )( + IDvbServiceDescriptor2 * This, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceNameEmphasized) + HRESULT ( STDMETHODCALLTYPE *GetServiceNameEmphasized )( + IDvbServiceDescriptor2 * This, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor2, GetServiceProviderNameW) + HRESULT ( STDMETHODCALLTYPE *GetServiceProviderNameW )( + IDvbServiceDescriptor2 * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor2, GetServiceNameW) + HRESULT ( STDMETHODCALLTYPE *GetServiceNameW )( + IDvbServiceDescriptor2 * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IDvbServiceDescriptor2Vtbl; + + interface IDvbServiceDescriptor2 + { + CONST_VTBL struct IDvbServiceDescriptor2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbServiceDescriptor2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbServiceDescriptor2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbServiceDescriptor2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbServiceDescriptor2_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbServiceDescriptor2_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbServiceDescriptor2_GetServiceType(This,pbVal) \ + ( (This)->lpVtbl -> GetServiceType(This,pbVal) ) + +#define IDvbServiceDescriptor2_GetServiceProviderName(This,pszName) \ + ( (This)->lpVtbl -> GetServiceProviderName(This,pszName) ) + +#define IDvbServiceDescriptor2_GetServiceProviderNameW(This,pbstrName) \ + ( (This)->lpVtbl -> GetServiceProviderNameW(This,pbstrName) ) + +#define IDvbServiceDescriptor2_GetServiceName(This,pszName) \ + ( (This)->lpVtbl -> GetServiceName(This,pszName) ) + +#define IDvbServiceDescriptor2_GetProcessedServiceName(This,pbstrName) \ + ( (This)->lpVtbl -> GetProcessedServiceName(This,pbstrName) ) + +#define IDvbServiceDescriptor2_GetServiceNameEmphasized(This,pbstrName) \ + ( (This)->lpVtbl -> GetServiceNameEmphasized(This,pbstrName) ) + + +#define IDvbServiceDescriptor2_GetServiceProviderNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetServiceProviderNameW(This,convMode,pbstrName) ) + +#define IDvbServiceDescriptor2_GetServiceNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetServiceNameW(This,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbServiceDescriptor2_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbServiceListDescriptor_INTERFACE_DEFINED__ +#define __IDvbServiceListDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbServiceListDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbServiceListDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("05DB0D8F-6008-491a-ACD3-7090952707D0") + IDvbServiceListDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceType( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbServiceListDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbServiceListDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbServiceListDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbServiceListDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbServiceListDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbServiceListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceListDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbServiceListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceListDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbServiceListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceListDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbServiceListDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbServiceListDescriptor, GetRecordServiceType) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceType )( + IDvbServiceListDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbServiceListDescriptorVtbl; + + interface IDvbServiceListDescriptor + { + CONST_VTBL struct IDvbServiceListDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbServiceListDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbServiceListDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbServiceListDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbServiceListDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbServiceListDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbServiceListDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbServiceListDescriptor_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbServiceListDescriptor_GetRecordServiceType(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordServiceType(This,bRecordIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbServiceListDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbMultilingualServiceNameDescriptor_INTERFACE_DEFINED__ +#define __IDvbMultilingualServiceNameDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbMultilingualServiceNameDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbMultilingualServiceNameDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2D80433B-B32C-47ef-987F-E78EBB773E34") + IDvbMultilingualServiceNameDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordLangId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *ulVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceProviderNameW( + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceNameW( + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbMultilingualServiceNameDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbMultilingualServiceNameDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbMultilingualServiceNameDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbMultilingualServiceNameDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbMultilingualServiceNameDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbMultilingualServiceNameDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbMultilingualServiceNameDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetRecordLangId) + HRESULT ( STDMETHODCALLTYPE *GetRecordLangId )( + IDvbMultilingualServiceNameDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *ulVal); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetRecordServiceProviderNameW) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceProviderNameW )( + IDvbMultilingualServiceNameDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetRecordServiceNameW) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceNameW )( + IDvbMultilingualServiceNameDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IDvbMultilingualServiceNameDescriptorVtbl; + + interface IDvbMultilingualServiceNameDescriptor + { + CONST_VTBL struct IDvbMultilingualServiceNameDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbMultilingualServiceNameDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbMultilingualServiceNameDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbMultilingualServiceNameDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbMultilingualServiceNameDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbMultilingualServiceNameDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbMultilingualServiceNameDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbMultilingualServiceNameDescriptor_GetRecordLangId(This,bRecordIndex,ulVal) \ + ( (This)->lpVtbl -> GetRecordLangId(This,bRecordIndex,ulVal) ) + +#define IDvbMultilingualServiceNameDescriptor_GetRecordServiceProviderNameW(This,bRecordIndex,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetRecordServiceProviderNameW(This,bRecordIndex,convMode,pbstrName) ) + +#define IDvbMultilingualServiceNameDescriptor_GetRecordServiceNameW(This,bRecordIndex,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetRecordServiceNameW(This,bRecordIndex,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbMultilingualServiceNameDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbNetworkNameDescriptor_INTERFACE_DEFINED__ +#define __IDvbNetworkNameDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbNetworkNameDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbNetworkNameDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5B2A80CF-35B9-446C-B3E4-048B761DBC51") + IDvbNetworkNameDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNetworkName( + /* [annotation][out] */ + _Outptr_ char **pszName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNetworkNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbNetworkNameDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbNetworkNameDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbNetworkNameDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbNetworkNameDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbNetworkNameDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbNetworkNameDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbNetworkNameDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbNetworkNameDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbNetworkNameDescriptor, GetNetworkName) + HRESULT ( STDMETHODCALLTYPE *GetNetworkName )( + IDvbNetworkNameDescriptor * This, + /* [annotation][out] */ + _Outptr_ char **pszName); + + DECLSPEC_XFGVIRT(IDvbNetworkNameDescriptor, GetNetworkNameW) + HRESULT ( STDMETHODCALLTYPE *GetNetworkNameW )( + IDvbNetworkNameDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IDvbNetworkNameDescriptorVtbl; + + interface IDvbNetworkNameDescriptor + { + CONST_VTBL struct IDvbNetworkNameDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbNetworkNameDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbNetworkNameDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbNetworkNameDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbNetworkNameDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbNetworkNameDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbNetworkNameDescriptor_GetNetworkName(This,pszName) \ + ( (This)->lpVtbl -> GetNetworkName(This,pszName) ) + +#define IDvbNetworkNameDescriptor_GetNetworkNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetNetworkNameW(This,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbNetworkNameDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbShortEventDescriptor_INTERFACE_DEFINED__ +#define __IDvbShortEventDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbShortEventDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbShortEventDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B170BE92-5B75-458E-9C6E-B0008231491A") + IDvbShortEventDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEventNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbShortEventDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbShortEventDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbShortEventDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbShortEventDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbShortEventDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbShortEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbShortEventDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbShortEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbShortEventDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + IDvbShortEventDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IDvbShortEventDescriptor, GetEventNameW) + HRESULT ( STDMETHODCALLTYPE *GetEventNameW )( + IDvbShortEventDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbShortEventDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IDvbShortEventDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + END_INTERFACE + } IDvbShortEventDescriptorVtbl; + + interface IDvbShortEventDescriptor + { + CONST_VTBL struct IDvbShortEventDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbShortEventDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbShortEventDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbShortEventDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbShortEventDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbShortEventDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbShortEventDescriptor_GetLanguageCode(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,pszCode) ) + +#define IDvbShortEventDescriptor_GetEventNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetEventNameW(This,convMode,pbstrName) ) + +#define IDvbShortEventDescriptor_GetTextW(This,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbShortEventDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbExtendedEventDescriptor_INTERFACE_DEFINED__ +#define __IDvbExtendedEventDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbExtendedEventDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbExtendedEventDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C9B22ECA-85F4-499F-B1DB-EFA93A91EE57") + IDvbExtendedEventDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescriptorNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLastDescriptorNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordItemW( + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrDesc, + /* [out] */ BSTR *pbstrItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConcatenatedItemW( + /* [in] */ IDvbExtendedEventDescriptor *pFollowingDescriptor, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrDesc, + /* [out] */ BSTR *pbstrItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConcatenatedTextW( + /* [in] */ IDvbExtendedEventDescriptor *FollowingDescriptor, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordItemRawBytes( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE **ppbRawItem, + /* [out] */ BYTE *pbItemLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbExtendedEventDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbExtendedEventDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbExtendedEventDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbExtendedEventDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbExtendedEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbExtendedEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetDescriptorNumber) + HRESULT ( STDMETHODCALLTYPE *GetDescriptorNumber )( + IDvbExtendedEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetLastDescriptorNumber) + HRESULT ( STDMETHODCALLTYPE *GetLastDescriptorNumber )( + IDvbExtendedEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + IDvbExtendedEventDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbExtendedEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetRecordItemW) + HRESULT ( STDMETHODCALLTYPE *GetRecordItemW )( + IDvbExtendedEventDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrDesc, + /* [out] */ BSTR *pbstrItem); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetConcatenatedItemW) + HRESULT ( STDMETHODCALLTYPE *GetConcatenatedItemW )( + IDvbExtendedEventDescriptor * This, + /* [in] */ IDvbExtendedEventDescriptor *pFollowingDescriptor, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrDesc, + /* [out] */ BSTR *pbstrItem); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IDvbExtendedEventDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetConcatenatedTextW) + HRESULT ( STDMETHODCALLTYPE *GetConcatenatedTextW )( + IDvbExtendedEventDescriptor * This, + /* [in] */ IDvbExtendedEventDescriptor *FollowingDescriptor, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetRecordItemRawBytes) + HRESULT ( STDMETHODCALLTYPE *GetRecordItemRawBytes )( + IDvbExtendedEventDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE **ppbRawItem, + /* [out] */ BYTE *pbItemLength); + + END_INTERFACE + } IDvbExtendedEventDescriptorVtbl; + + interface IDvbExtendedEventDescriptor + { + CONST_VTBL struct IDvbExtendedEventDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbExtendedEventDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbExtendedEventDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbExtendedEventDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbExtendedEventDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbExtendedEventDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbExtendedEventDescriptor_GetDescriptorNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetDescriptorNumber(This,pbVal) ) + +#define IDvbExtendedEventDescriptor_GetLastDescriptorNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetLastDescriptorNumber(This,pbVal) ) + +#define IDvbExtendedEventDescriptor_GetLanguageCode(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,pszCode) ) + +#define IDvbExtendedEventDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbExtendedEventDescriptor_GetRecordItemW(This,bRecordIndex,convMode,pbstrDesc,pbstrItem) \ + ( (This)->lpVtbl -> GetRecordItemW(This,bRecordIndex,convMode,pbstrDesc,pbstrItem) ) + +#define IDvbExtendedEventDescriptor_GetConcatenatedItemW(This,pFollowingDescriptor,convMode,pbstrDesc,pbstrItem) \ + ( (This)->lpVtbl -> GetConcatenatedItemW(This,pFollowingDescriptor,convMode,pbstrDesc,pbstrItem) ) + +#define IDvbExtendedEventDescriptor_GetTextW(This,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrText) ) + +#define IDvbExtendedEventDescriptor_GetConcatenatedTextW(This,FollowingDescriptor,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetConcatenatedTextW(This,FollowingDescriptor,convMode,pbstrText) ) + +#define IDvbExtendedEventDescriptor_GetRecordItemRawBytes(This,bRecordIndex,ppbRawItem,pbItemLength) \ + ( (This)->lpVtbl -> GetRecordItemRawBytes(This,bRecordIndex,ppbRawItem,pbItemLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbExtendedEventDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbComponentDescriptor_INTERFACE_DEFINED__ +#define __IDvbComponentDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbComponentDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbComponentDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("91E405CF-80E7-457F-9096-1B9D1CE32141") + IDvbComponentDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamContent( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbComponentDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbComponentDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbComponentDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbComponentDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetStreamContent) + HRESULT ( STDMETHODCALLTYPE *GetStreamContent )( + IDvbComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetComponentType) + HRESULT ( STDMETHODCALLTYPE *GetComponentType )( + IDvbComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetComponentTag )( + IDvbComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + IDvbComponentDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IDvbComponentDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + END_INTERFACE + } IDvbComponentDescriptorVtbl; + + interface IDvbComponentDescriptor + { + CONST_VTBL struct IDvbComponentDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbComponentDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbComponentDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbComponentDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbComponentDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbComponentDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbComponentDescriptor_GetStreamContent(This,pbVal) \ + ( (This)->lpVtbl -> GetStreamContent(This,pbVal) ) + +#define IDvbComponentDescriptor_GetComponentType(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentType(This,pbVal) ) + +#define IDvbComponentDescriptor_GetComponentTag(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentTag(This,pbVal) ) + +#define IDvbComponentDescriptor_GetLanguageCode(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,pszCode) ) + +#define IDvbComponentDescriptor_GetTextW(This,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbComponentDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbContentDescriptor_INTERFACE_DEFINED__ +#define __IDvbContentDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbContentDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbContentDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2E883881-A467-412A-9D63-6F2B6DA05BF0") + IDvbContentDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordContentNibbles( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbValLevel1, + /* [out] */ BYTE *pbValLevel2) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordUserNibbles( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal1, + /* [out] */ BYTE *pbVal2) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbContentDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbContentDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbContentDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbContentDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbContentDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentDescriptor, GetRecordContentNibbles) + HRESULT ( STDMETHODCALLTYPE *GetRecordContentNibbles )( + IDvbContentDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbValLevel1, + /* [out] */ BYTE *pbValLevel2); + + DECLSPEC_XFGVIRT(IDvbContentDescriptor, GetRecordUserNibbles) + HRESULT ( STDMETHODCALLTYPE *GetRecordUserNibbles )( + IDvbContentDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal1, + /* [out] */ BYTE *pbVal2); + + END_INTERFACE + } IDvbContentDescriptorVtbl; + + interface IDvbContentDescriptor + { + CONST_VTBL struct IDvbContentDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbContentDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbContentDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbContentDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbContentDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbContentDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbContentDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbContentDescriptor_GetRecordContentNibbles(This,bRecordIndex,pbValLevel1,pbValLevel2) \ + ( (This)->lpVtbl -> GetRecordContentNibbles(This,bRecordIndex,pbValLevel1,pbValLevel2) ) + +#define IDvbContentDescriptor_GetRecordUserNibbles(This,bRecordIndex,pbVal1,pbVal2) \ + ( (This)->lpVtbl -> GetRecordUserNibbles(This,bRecordIndex,pbVal1,pbVal2) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbContentDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbParentalRatingDescriptor_INTERFACE_DEFINED__ +#define __IDvbParentalRatingDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbParentalRatingDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbParentalRatingDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3AD9DDE1-FB1B-4186-937F-22E6B5A72A10") + IDvbParentalRatingDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRating( + /* [in] */ BYTE bRecordIndex, + /* [annotation][out] */ + _Out_writes_(4) char *pszCountryCode, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbParentalRatingDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbParentalRatingDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbParentalRatingDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbParentalRatingDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbParentalRatingDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbParentalRatingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbParentalRatingDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbParentalRatingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbParentalRatingDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbParentalRatingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbParentalRatingDescriptor, GetRecordRating) + HRESULT ( STDMETHODCALLTYPE *GetRecordRating )( + IDvbParentalRatingDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [annotation][out] */ + _Out_writes_(4) char *pszCountryCode, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbParentalRatingDescriptorVtbl; + + interface IDvbParentalRatingDescriptor + { + CONST_VTBL struct IDvbParentalRatingDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbParentalRatingDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbParentalRatingDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbParentalRatingDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbParentalRatingDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbParentalRatingDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbParentalRatingDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbParentalRatingDescriptor_GetRecordRating(This,bRecordIndex,pszCountryCode,pbVal) \ + ( (This)->lpVtbl -> GetRecordRating(This,bRecordIndex,pszCountryCode,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbParentalRatingDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ +#define __IIsdbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbTerrestrialDeliverySystemDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbTerrestrialDeliverySystemDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("39FAE0A6-D151-44DD-A28A-765DE5991670") + IIsdbTerrestrialDeliverySystemDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAreaCode( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGuardInterval( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransmissionMode( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordFrequency( + /* [in] */ BYTE bRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbTerrestrialDeliverySystemDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbTerrestrialDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbTerrestrialDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetAreaCode) + HRESULT ( STDMETHODCALLTYPE *GetAreaCode )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetGuardInterval) + HRESULT ( STDMETHODCALLTYPE *GetGuardInterval )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetTransmissionMode) + HRESULT ( STDMETHODCALLTYPE *GetTransmissionMode )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetRecordFrequency) + HRESULT ( STDMETHODCALLTYPE *GetRecordFrequency )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ DWORD *pdwVal); + + END_INTERFACE + } IIsdbTerrestrialDeliverySystemDescriptorVtbl; + + interface IIsdbTerrestrialDeliverySystemDescriptor + { + CONST_VTBL struct IIsdbTerrestrialDeliverySystemDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbTerrestrialDeliverySystemDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetAreaCode(This,pwVal) \ + ( (This)->lpVtbl -> GetAreaCode(This,pwVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetGuardInterval(This,pbVal) \ + ( (This)->lpVtbl -> GetGuardInterval(This,pbVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetTransmissionMode(This,pbVal) \ + ( (This)->lpVtbl -> GetTransmissionMode(This,pbVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetRecordFrequency(This,bRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordFrequency(This,bRecordIndex,pdwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbTSInformationDescriptor_INTERFACE_DEFINED__ +#define __IIsdbTSInformationDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbTSInformationDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbTSInformationDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D7AD183E-38F5-4210-B55F-EC8D601BBD47") + IIsdbTSInformationDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRemoteControlKeyId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTSNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTransmissionTypeInfo( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNumberOfServices( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceIdByIndex( + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bServiceIndex, + /* [out] */ WORD *pdwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbTSInformationDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbTSInformationDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbTSInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbTSInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbTSInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbTSInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetRemoteControlKeyId) + HRESULT ( STDMETHODCALLTYPE *GetRemoteControlKeyId )( + IIsdbTSInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetTSNameW) + HRESULT ( STDMETHODCALLTYPE *GetTSNameW )( + IIsdbTSInformationDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbTSInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetRecordTransmissionTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetRecordTransmissionTypeInfo )( + IIsdbTSInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetRecordNumberOfServices) + HRESULT ( STDMETHODCALLTYPE *GetRecordNumberOfServices )( + IIsdbTSInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetRecordServiceIdByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceIdByIndex )( + IIsdbTSInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bServiceIndex, + /* [out] */ WORD *pdwVal); + + END_INTERFACE + } IIsdbTSInformationDescriptorVtbl; + + interface IIsdbTSInformationDescriptor + { + CONST_VTBL struct IIsdbTSInformationDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbTSInformationDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbTSInformationDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbTSInformationDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbTSInformationDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetRemoteControlKeyId(This,pbVal) \ + ( (This)->lpVtbl -> GetRemoteControlKeyId(This,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetTSNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetTSNameW(This,convMode,pbstrName) ) + +#define IIsdbTSInformationDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetRecordTransmissionTypeInfo(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordTransmissionTypeInfo(This,bRecordIndex,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetRecordNumberOfServices(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordNumberOfServices(This,bRecordIndex,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetRecordServiceIdByIndex(This,bRecordIndex,bServiceIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordServiceIdByIndex(This,bRecordIndex,bServiceIndex,pdwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbTSInformationDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbDigitalCopyControlDescriptor_INTERFACE_DEFINED__ +#define __IIsdbDigitalCopyControlDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbDigitalCopyControlDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbDigitalCopyControlDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1A28417E-266A-4BB8-A4BD-D782BCFB8161") + IIsdbDigitalCopyControlDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCopyControl( + /* [out] */ BYTE *pbDigitalRecordingControlData, + /* [out] */ BYTE *pbCopyControlType, + /* [out] */ BYTE *pbAPSControlData, + /* [out] */ BYTE *pbMaximumBitrate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCopyControl( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbComponentTag, + /* [out] */ BYTE *pbDigitalRecordingControlData, + /* [out] */ BYTE *pbCopyControlType, + /* [out] */ BYTE *pbAPSControlData, + /* [out] */ BYTE *pbMaximumBitrate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbDigitalCopyControlDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbDigitalCopyControlDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbDigitalCopyControlDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbDigitalCopyControlDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbDigitalCopyControlDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbDigitalCopyControlDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDigitalCopyControlDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbDigitalCopyControlDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDigitalCopyControlDescriptor, GetCopyControl) + HRESULT ( STDMETHODCALLTYPE *GetCopyControl )( + IIsdbDigitalCopyControlDescriptor * This, + /* [out] */ BYTE *pbDigitalRecordingControlData, + /* [out] */ BYTE *pbCopyControlType, + /* [out] */ BYTE *pbAPSControlData, + /* [out] */ BYTE *pbMaximumBitrate); + + DECLSPEC_XFGVIRT(IIsdbDigitalCopyControlDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbDigitalCopyControlDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDigitalCopyControlDescriptor, GetRecordCopyControl) + HRESULT ( STDMETHODCALLTYPE *GetRecordCopyControl )( + IIsdbDigitalCopyControlDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbComponentTag, + /* [out] */ BYTE *pbDigitalRecordingControlData, + /* [out] */ BYTE *pbCopyControlType, + /* [out] */ BYTE *pbAPSControlData, + /* [out] */ BYTE *pbMaximumBitrate); + + END_INTERFACE + } IIsdbDigitalCopyControlDescriptorVtbl; + + interface IIsdbDigitalCopyControlDescriptor + { + CONST_VTBL struct IIsdbDigitalCopyControlDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbDigitalCopyControlDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbDigitalCopyControlDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbDigitalCopyControlDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbDigitalCopyControlDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbDigitalCopyControlDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbDigitalCopyControlDescriptor_GetCopyControl(This,pbDigitalRecordingControlData,pbCopyControlType,pbAPSControlData,pbMaximumBitrate) \ + ( (This)->lpVtbl -> GetCopyControl(This,pbDigitalRecordingControlData,pbCopyControlType,pbAPSControlData,pbMaximumBitrate) ) + +#define IIsdbDigitalCopyControlDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbDigitalCopyControlDescriptor_GetRecordCopyControl(This,bRecordIndex,pbComponentTag,pbDigitalRecordingControlData,pbCopyControlType,pbAPSControlData,pbMaximumBitrate) \ + ( (This)->lpVtbl -> GetRecordCopyControl(This,bRecordIndex,pbComponentTag,pbDigitalRecordingControlData,pbCopyControlType,pbAPSControlData,pbMaximumBitrate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbDigitalCopyControlDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbAudioComponentDescriptor_INTERFACE_DEFINED__ +#define __IIsdbAudioComponentDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbAudioComponentDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbAudioComponentDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("679D2002-2425-4BE4-A4C7-D6632A574F4D") + IIsdbAudioComponentDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamContent( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSimulcastGroupTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetESMultiLingualFlag( + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMainComponentFlag( + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetQualityIndicator( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSamplingRate( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode2( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbAudioComponentDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbAudioComponentDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbAudioComponentDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbAudioComponentDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetStreamContent) + HRESULT ( STDMETHODCALLTYPE *GetStreamContent )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetComponentType) + HRESULT ( STDMETHODCALLTYPE *GetComponentType )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetComponentTag )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetStreamType) + HRESULT ( STDMETHODCALLTYPE *GetStreamType )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetSimulcastGroupTag) + HRESULT ( STDMETHODCALLTYPE *GetSimulcastGroupTag )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetESMultiLingualFlag) + HRESULT ( STDMETHODCALLTYPE *GetESMultiLingualFlag )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetMainComponentFlag) + HRESULT ( STDMETHODCALLTYPE *GetMainComponentFlag )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetQualityIndicator) + HRESULT ( STDMETHODCALLTYPE *GetQualityIndicator )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetSamplingRate) + HRESULT ( STDMETHODCALLTYPE *GetSamplingRate )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + IIsdbAudioComponentDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetLanguageCode2) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode2 )( + IIsdbAudioComponentDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IIsdbAudioComponentDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + END_INTERFACE + } IIsdbAudioComponentDescriptorVtbl; + + interface IIsdbAudioComponentDescriptor + { + CONST_VTBL struct IIsdbAudioComponentDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbAudioComponentDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbAudioComponentDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbAudioComponentDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbAudioComponentDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetStreamContent(This,pbVal) \ + ( (This)->lpVtbl -> GetStreamContent(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetComponentType(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentType(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetComponentTag(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentTag(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetStreamType(This,pbVal) \ + ( (This)->lpVtbl -> GetStreamType(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetSimulcastGroupTag(This,pbVal) \ + ( (This)->lpVtbl -> GetSimulcastGroupTag(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetESMultiLingualFlag(This,pfVal) \ + ( (This)->lpVtbl -> GetESMultiLingualFlag(This,pfVal) ) + +#define IIsdbAudioComponentDescriptor_GetMainComponentFlag(This,pfVal) \ + ( (This)->lpVtbl -> GetMainComponentFlag(This,pfVal) ) + +#define IIsdbAudioComponentDescriptor_GetQualityIndicator(This,pbVal) \ + ( (This)->lpVtbl -> GetQualityIndicator(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetSamplingRate(This,pbVal) \ + ( (This)->lpVtbl -> GetSamplingRate(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetLanguageCode(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,pszCode) ) + +#define IIsdbAudioComponentDescriptor_GetLanguageCode2(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode2(This,pszCode) ) + +#define IIsdbAudioComponentDescriptor_GetTextW(This,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbAudioComponentDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbDataContentDescriptor_INTERFACE_DEFINED__ +#define __IIsdbDataContentDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbDataContentDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbDataContentDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A428100A-E646-4BD6-AA14-6087BDC08CD5") + IIsdbDataContentDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataComponentId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEntryComponent( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSelectorLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSelectorBytes( + /* [in] */ BYTE bBufLength, + /* [out] */ BYTE *pbBuf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordComponentRef( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbDataContentDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbDataContentDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbDataContentDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbDataContentDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbDataContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbDataContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetDataComponentId) + HRESULT ( STDMETHODCALLTYPE *GetDataComponentId )( + IIsdbDataContentDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetEntryComponent) + HRESULT ( STDMETHODCALLTYPE *GetEntryComponent )( + IIsdbDataContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetSelectorLength) + HRESULT ( STDMETHODCALLTYPE *GetSelectorLength )( + IIsdbDataContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetSelectorBytes) + HRESULT ( STDMETHODCALLTYPE *GetSelectorBytes )( + IIsdbDataContentDescriptor * This, + /* [in] */ BYTE bBufLength, + /* [out] */ BYTE *pbBuf); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbDataContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetRecordComponentRef) + HRESULT ( STDMETHODCALLTYPE *GetRecordComponentRef )( + IIsdbDataContentDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + IIsdbDataContentDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IIsdbDataContentDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + END_INTERFACE + } IIsdbDataContentDescriptorVtbl; + + interface IIsdbDataContentDescriptor + { + CONST_VTBL struct IIsdbDataContentDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbDataContentDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbDataContentDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbDataContentDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbDataContentDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbDataContentDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbDataContentDescriptor_GetDataComponentId(This,pwVal) \ + ( (This)->lpVtbl -> GetDataComponentId(This,pwVal) ) + +#define IIsdbDataContentDescriptor_GetEntryComponent(This,pbVal) \ + ( (This)->lpVtbl -> GetEntryComponent(This,pbVal) ) + +#define IIsdbDataContentDescriptor_GetSelectorLength(This,pbVal) \ + ( (This)->lpVtbl -> GetSelectorLength(This,pbVal) ) + +#define IIsdbDataContentDescriptor_GetSelectorBytes(This,bBufLength,pbBuf) \ + ( (This)->lpVtbl -> GetSelectorBytes(This,bBufLength,pbBuf) ) + +#define IIsdbDataContentDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbDataContentDescriptor_GetRecordComponentRef(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordComponentRef(This,bRecordIndex,pbVal) ) + +#define IIsdbDataContentDescriptor_GetLanguageCode(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,pszCode) ) + +#define IIsdbDataContentDescriptor_GetTextW(This,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbDataContentDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbCAContractInformationDescriptor_INTERFACE_DEFINED__ +#define __IIsdbCAContractInformationDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbCAContractInformationDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbCAContractInformationDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("08E18B25-A28F-4E92-821E-4FCED5CC2291") + IIsdbCAContractInformationDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCASystemId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAUnitId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordComponentTag( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContractVerificationInfoLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContractVerificationInfo( + /* [in] */ BYTE bBufLength, + /* [out] */ BYTE *pbBuf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFeeNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbCAContractInformationDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbCAContractInformationDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbCAContractInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbCAContractInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetCASystemId) + HRESULT ( STDMETHODCALLTYPE *GetCASystemId )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetCAUnitId) + HRESULT ( STDMETHODCALLTYPE *GetCAUnitId )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetRecordComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordComponentTag )( + IIsdbCAContractInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetContractVerificationInfoLength) + HRESULT ( STDMETHODCALLTYPE *GetContractVerificationInfoLength )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetContractVerificationInfo) + HRESULT ( STDMETHODCALLTYPE *GetContractVerificationInfo )( + IIsdbCAContractInformationDescriptor * This, + /* [in] */ BYTE bBufLength, + /* [out] */ BYTE *pbBuf); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetFeeNameW) + HRESULT ( STDMETHODCALLTYPE *GetFeeNameW )( + IIsdbCAContractInformationDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IIsdbCAContractInformationDescriptorVtbl; + + interface IIsdbCAContractInformationDescriptor + { + CONST_VTBL struct IIsdbCAContractInformationDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbCAContractInformationDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbCAContractInformationDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbCAContractInformationDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbCAContractInformationDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetCASystemId(This,pwVal) \ + ( (This)->lpVtbl -> GetCASystemId(This,pwVal) ) + +#define IIsdbCAContractInformationDescriptor_GetCAUnitId(This,pbVal) \ + ( (This)->lpVtbl -> GetCAUnitId(This,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetRecordComponentTag(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordComponentTag(This,bRecordIndex,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetContractVerificationInfoLength(This,pbVal) \ + ( (This)->lpVtbl -> GetContractVerificationInfoLength(This,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetContractVerificationInfo(This,bBufLength,pbBuf) \ + ( (This)->lpVtbl -> GetContractVerificationInfo(This,bBufLength,pbBuf) ) + +#define IIsdbCAContractInformationDescriptor_GetFeeNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetFeeNameW(This,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbCAContractInformationDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbEventGroupDescriptor_INTERFACE_DEFINED__ +#define __IIsdbEventGroupDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbEventGroupDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbEventGroupDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("94B06780-2E2A-44DC-A966-CC56FDABC6C2") + IIsdbEventGroupDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGroupType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEvent( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwServiceId, + /* [out] */ WORD *pwEventId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRefRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRefRecordEvent( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwOriginalNetworkId, + /* [out] */ WORD *pwTransportStreamId, + /* [out] */ WORD *pwServiceId, + /* [out] */ WORD *pwEventId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbEventGroupDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbEventGroupDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbEventGroupDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbEventGroupDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbEventGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbEventGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetGroupType) + HRESULT ( STDMETHODCALLTYPE *GetGroupType )( + IIsdbEventGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbEventGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetRecordEvent) + HRESULT ( STDMETHODCALLTYPE *GetRecordEvent )( + IIsdbEventGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwServiceId, + /* [out] */ WORD *pwEventId); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetCountOfRefRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRefRecords )( + IIsdbEventGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetRefRecordEvent) + HRESULT ( STDMETHODCALLTYPE *GetRefRecordEvent )( + IIsdbEventGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwOriginalNetworkId, + /* [out] */ WORD *pwTransportStreamId, + /* [out] */ WORD *pwServiceId, + /* [out] */ WORD *pwEventId); + + END_INTERFACE + } IIsdbEventGroupDescriptorVtbl; + + interface IIsdbEventGroupDescriptor + { + CONST_VTBL struct IIsdbEventGroupDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbEventGroupDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbEventGroupDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbEventGroupDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbEventGroupDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbEventGroupDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbEventGroupDescriptor_GetGroupType(This,pbVal) \ + ( (This)->lpVtbl -> GetGroupType(This,pbVal) ) + +#define IIsdbEventGroupDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbEventGroupDescriptor_GetRecordEvent(This,bRecordIndex,pwServiceId,pwEventId) \ + ( (This)->lpVtbl -> GetRecordEvent(This,bRecordIndex,pwServiceId,pwEventId) ) + +#define IIsdbEventGroupDescriptor_GetCountOfRefRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRefRecords(This,pbVal) ) + +#define IIsdbEventGroupDescriptor_GetRefRecordEvent(This,bRecordIndex,pwOriginalNetworkId,pwTransportStreamId,pwServiceId,pwEventId) \ + ( (This)->lpVtbl -> GetRefRecordEvent(This,bRecordIndex,pwOriginalNetworkId,pwTransportStreamId,pwServiceId,pwEventId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbEventGroupDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbComponentGroupDescriptor_INTERFACE_DEFINED__ +#define __IIsdbComponentGroupDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbComponentGroupDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbComponentGroupDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A494F17F-C592-47D8-8943-64C9A34BE7B9") + IIsdbComponentGroupDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentGroupType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordGroupId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNumberOfCAUnit( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCAUnitCAUnitId( + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCAUnitNumberOfComponents( + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCAUnitComponentTag( + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [in] */ BYTE bComponentIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTotalBitRate( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTextW( + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbComponentGroupDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbComponentGroupDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbComponentGroupDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbComponentGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbComponentGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetComponentGroupType) + HRESULT ( STDMETHODCALLTYPE *GetComponentGroupType )( + IIsdbComponentGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbComponentGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordGroupId) + HRESULT ( STDMETHODCALLTYPE *GetRecordGroupId )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordNumberOfCAUnit) + HRESULT ( STDMETHODCALLTYPE *GetRecordNumberOfCAUnit )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordCAUnitCAUnitId) + HRESULT ( STDMETHODCALLTYPE *GetRecordCAUnitCAUnitId )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordCAUnitNumberOfComponents) + HRESULT ( STDMETHODCALLTYPE *GetRecordCAUnitNumberOfComponents )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordCAUnitComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordCAUnitComponentTag )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [in] */ BYTE bComponentIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordTotalBitRate) + HRESULT ( STDMETHODCALLTYPE *GetRecordTotalBitRate )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordTextW) + HRESULT ( STDMETHODCALLTYPE *GetRecordTextW )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + END_INTERFACE + } IIsdbComponentGroupDescriptorVtbl; + + interface IIsdbComponentGroupDescriptor + { + CONST_VTBL struct IIsdbComponentGroupDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbComponentGroupDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbComponentGroupDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbComponentGroupDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbComponentGroupDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetComponentGroupType(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentGroupType(This,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordGroupId(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordGroupId(This,bRecordIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordNumberOfCAUnit(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordNumberOfCAUnit(This,bRecordIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordCAUnitCAUnitId(This,bRecordIndex,bCAUnitIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordCAUnitCAUnitId(This,bRecordIndex,bCAUnitIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordCAUnitNumberOfComponents(This,bRecordIndex,bCAUnitIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordCAUnitNumberOfComponents(This,bRecordIndex,bCAUnitIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordCAUnitComponentTag(This,bRecordIndex,bCAUnitIndex,bComponentIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordCAUnitComponentTag(This,bRecordIndex,bCAUnitIndex,bComponentIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordTotalBitRate(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordTotalBitRate(This,bRecordIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordTextW(This,bRecordIndex,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetRecordTextW(This,bRecordIndex,convMode,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbComponentGroupDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbSeriesDescriptor_INTERFACE_DEFINED__ +#define __IIsdbSeriesDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbSeriesDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbSeriesDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("07EF6370-1660-4F26-87FC-614ADAB24B11") + IIsdbSeriesDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSeriesId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRepeatLabel( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProgramPattern( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExpireDate( + /* [out] */ BOOL *pfValid, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEpisodeNumber( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLastEpisodeNumber( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSeriesNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbSeriesDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbSeriesDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbSeriesDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbSeriesDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbSeriesDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbSeriesDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetSeriesId) + HRESULT ( STDMETHODCALLTYPE *GetSeriesId )( + IIsdbSeriesDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetRepeatLabel) + HRESULT ( STDMETHODCALLTYPE *GetRepeatLabel )( + IIsdbSeriesDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetProgramPattern) + HRESULT ( STDMETHODCALLTYPE *GetProgramPattern )( + IIsdbSeriesDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetExpireDate) + HRESULT ( STDMETHODCALLTYPE *GetExpireDate )( + IIsdbSeriesDescriptor * This, + /* [out] */ BOOL *pfValid, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetEpisodeNumber) + HRESULT ( STDMETHODCALLTYPE *GetEpisodeNumber )( + IIsdbSeriesDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetLastEpisodeNumber) + HRESULT ( STDMETHODCALLTYPE *GetLastEpisodeNumber )( + IIsdbSeriesDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetSeriesNameW) + HRESULT ( STDMETHODCALLTYPE *GetSeriesNameW )( + IIsdbSeriesDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IIsdbSeriesDescriptorVtbl; + + interface IIsdbSeriesDescriptor + { + CONST_VTBL struct IIsdbSeriesDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbSeriesDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbSeriesDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbSeriesDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbSeriesDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbSeriesDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbSeriesDescriptor_GetSeriesId(This,pwVal) \ + ( (This)->lpVtbl -> GetSeriesId(This,pwVal) ) + +#define IIsdbSeriesDescriptor_GetRepeatLabel(This,pbVal) \ + ( (This)->lpVtbl -> GetRepeatLabel(This,pbVal) ) + +#define IIsdbSeriesDescriptor_GetProgramPattern(This,pbVal) \ + ( (This)->lpVtbl -> GetProgramPattern(This,pbVal) ) + +#define IIsdbSeriesDescriptor_GetExpireDate(This,pfValid,pmdtVal) \ + ( (This)->lpVtbl -> GetExpireDate(This,pfValid,pmdtVal) ) + +#define IIsdbSeriesDescriptor_GetEpisodeNumber(This,pwVal) \ + ( (This)->lpVtbl -> GetEpisodeNumber(This,pwVal) ) + +#define IIsdbSeriesDescriptor_GetLastEpisodeNumber(This,pwVal) \ + ( (This)->lpVtbl -> GetLastEpisodeNumber(This,pwVal) ) + +#define IIsdbSeriesDescriptor_GetSeriesNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetSeriesNameW(This,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbSeriesDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbDownloadContentDescriptor_INTERFACE_DEFINED__ +#define __IIsdbDownloadContentDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbDownloadContentDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbDownloadContentDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5298661E-CB88-4F5F-A1DE-5F440C185B92") + IIsdbDownloadContentDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFlags( + /* [out] */ BOOL *pfReboot, + /* [out] */ BOOL *pfAddOn, + /* [out] */ BOOL *pfCompatibility, + /* [out] */ BOOL *pfModuleInfo, + /* [out] */ BOOL *pfTextInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentSize( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDownloadId( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTimeOutValueDII( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLeakRate( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompatiblityDescriptorLength( + /* [out] */ WORD *pwLength) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompatiblityDescriptor( + /* [out] */ BYTE **ppbData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordModuleId( + /* [in] */ WORD wRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordModuleSize( + /* [in] */ WORD wRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordModuleInfoLength( + /* [in] */ WORD wRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordModuleInfo( + /* [in] */ WORD wRecordIndex, + /* [out] */ BYTE **ppbData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *szCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbDownloadContentDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbDownloadContentDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbDownloadContentDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetFlags) + HRESULT ( STDMETHODCALLTYPE *GetFlags )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ BOOL *pfReboot, + /* [out] */ BOOL *pfAddOn, + /* [out] */ BOOL *pfCompatibility, + /* [out] */ BOOL *pfModuleInfo, + /* [out] */ BOOL *pfTextInfo); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetComponentSize) + HRESULT ( STDMETHODCALLTYPE *GetComponentSize )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetDownloadId) + HRESULT ( STDMETHODCALLTYPE *GetDownloadId )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetTimeOutValueDII) + HRESULT ( STDMETHODCALLTYPE *GetTimeOutValueDII )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetLeakRate) + HRESULT ( STDMETHODCALLTYPE *GetLeakRate )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetComponentTag )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetCompatiblityDescriptorLength) + HRESULT ( STDMETHODCALLTYPE *GetCompatiblityDescriptorLength )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ WORD *pwLength); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetCompatiblityDescriptor) + HRESULT ( STDMETHODCALLTYPE *GetCompatiblityDescriptor )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ BYTE **ppbData); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetRecordModuleId) + HRESULT ( STDMETHODCALLTYPE *GetRecordModuleId )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ WORD wRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetRecordModuleSize) + HRESULT ( STDMETHODCALLTYPE *GetRecordModuleSize )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ WORD wRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetRecordModuleInfoLength) + HRESULT ( STDMETHODCALLTYPE *GetRecordModuleInfoLength )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ WORD wRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetRecordModuleInfo) + HRESULT ( STDMETHODCALLTYPE *GetRecordModuleInfo )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ WORD wRecordIndex, + /* [out] */ BYTE **ppbData); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetTextLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetTextLanguageCode )( + IIsdbDownloadContentDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *szCode); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IIsdbDownloadContentDescriptorVtbl; + + interface IIsdbDownloadContentDescriptor + { + CONST_VTBL struct IIsdbDownloadContentDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbDownloadContentDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbDownloadContentDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbDownloadContentDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbDownloadContentDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbDownloadContentDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbDownloadContentDescriptor_GetFlags(This,pfReboot,pfAddOn,pfCompatibility,pfModuleInfo,pfTextInfo) \ + ( (This)->lpVtbl -> GetFlags(This,pfReboot,pfAddOn,pfCompatibility,pfModuleInfo,pfTextInfo) ) + +#define IIsdbDownloadContentDescriptor_GetComponentSize(This,pdwVal) \ + ( (This)->lpVtbl -> GetComponentSize(This,pdwVal) ) + +#define IIsdbDownloadContentDescriptor_GetDownloadId(This,pdwVal) \ + ( (This)->lpVtbl -> GetDownloadId(This,pdwVal) ) + +#define IIsdbDownloadContentDescriptor_GetTimeOutValueDII(This,pdwVal) \ + ( (This)->lpVtbl -> GetTimeOutValueDII(This,pdwVal) ) + +#define IIsdbDownloadContentDescriptor_GetLeakRate(This,pdwVal) \ + ( (This)->lpVtbl -> GetLeakRate(This,pdwVal) ) + +#define IIsdbDownloadContentDescriptor_GetComponentTag(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentTag(This,pbVal) ) + +#define IIsdbDownloadContentDescriptor_GetCompatiblityDescriptorLength(This,pwLength) \ + ( (This)->lpVtbl -> GetCompatiblityDescriptorLength(This,pwLength) ) + +#define IIsdbDownloadContentDescriptor_GetCompatiblityDescriptor(This,ppbData) \ + ( (This)->lpVtbl -> GetCompatiblityDescriptor(This,ppbData) ) + +#define IIsdbDownloadContentDescriptor_GetCountOfRecords(This,pwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pwVal) ) + +#define IIsdbDownloadContentDescriptor_GetRecordModuleId(This,wRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordModuleId(This,wRecordIndex,pwVal) ) + +#define IIsdbDownloadContentDescriptor_GetRecordModuleSize(This,wRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordModuleSize(This,wRecordIndex,pdwVal) ) + +#define IIsdbDownloadContentDescriptor_GetRecordModuleInfoLength(This,wRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordModuleInfoLength(This,wRecordIndex,pbVal) ) + +#define IIsdbDownloadContentDescriptor_GetRecordModuleInfo(This,wRecordIndex,ppbData) \ + ( (This)->lpVtbl -> GetRecordModuleInfo(This,wRecordIndex,ppbData) ) + +#define IIsdbDownloadContentDescriptor_GetTextLanguageCode(This,szCode) \ + ( (This)->lpVtbl -> GetTextLanguageCode(This,szCode) ) + +#define IIsdbDownloadContentDescriptor_GetTextW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbDownloadContentDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbLogoTransmissionDescriptor_INTERFACE_DEFINED__ +#define __IIsdbLogoTransmissionDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbLogoTransmissionDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbLogoTransmissionDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E0103F49-4AE1-4F07-9098-756DB1FA88CD") + IIsdbLogoTransmissionDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLogoTransmissionType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLogoId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLogoVersion( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDownloadDataId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLogoCharW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrChar) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbLogoTransmissionDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbLogoTransmissionDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbLogoTransmissionDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbLogoTransmissionDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetLogoTransmissionType) + HRESULT ( STDMETHODCALLTYPE *GetLogoTransmissionType )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetLogoId) + HRESULT ( STDMETHODCALLTYPE *GetLogoId )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetLogoVersion) + HRESULT ( STDMETHODCALLTYPE *GetLogoVersion )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetDownloadDataId) + HRESULT ( STDMETHODCALLTYPE *GetDownloadDataId )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetLogoCharW) + HRESULT ( STDMETHODCALLTYPE *GetLogoCharW )( + IIsdbLogoTransmissionDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrChar); + + END_INTERFACE + } IIsdbLogoTransmissionDescriptorVtbl; + + interface IIsdbLogoTransmissionDescriptor + { + CONST_VTBL struct IIsdbLogoTransmissionDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbLogoTransmissionDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbLogoTransmissionDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbLogoTransmissionDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbLogoTransmissionDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetLogoTransmissionType(This,pbVal) \ + ( (This)->lpVtbl -> GetLogoTransmissionType(This,pbVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetLogoId(This,pwVal) \ + ( (This)->lpVtbl -> GetLogoId(This,pwVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetLogoVersion(This,pwVal) \ + ( (This)->lpVtbl -> GetLogoVersion(This,pwVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetDownloadDataId(This,pwVal) \ + ( (This)->lpVtbl -> GetDownloadDataId(This,pwVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetLogoCharW(This,convMode,pbstrChar) \ + ( (This)->lpVtbl -> GetLogoCharW(This,convMode,pbstrChar) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbLogoTransmissionDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbSIParameterDescriptor_INTERFACE_DEFINED__ +#define __IIsdbSIParameterDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbSIParameterDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbSIParameterDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F837DC36-867C-426a-9111-F62093951A45") + IIsdbSIParameterDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParameterVersion( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUpdateTime( + /* [out] */ MPEG_DATE *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNumberOfTable( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptionLength( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptionBytes( + /* [in] */ BYTE bRecordIndex, + /* [out][in] */ BYTE *pbBufferLength, + /* [out] */ BYTE *pbBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbSIParameterDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbSIParameterDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbSIParameterDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbSIParameterDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbSIParameterDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbSIParameterDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetParameterVersion) + HRESULT ( STDMETHODCALLTYPE *GetParameterVersion )( + IIsdbSIParameterDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetUpdateTime) + HRESULT ( STDMETHODCALLTYPE *GetUpdateTime )( + IIsdbSIParameterDescriptor * This, + /* [out] */ MPEG_DATE *pVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetRecordNumberOfTable) + HRESULT ( STDMETHODCALLTYPE *GetRecordNumberOfTable )( + IIsdbSIParameterDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetTableId) + HRESULT ( STDMETHODCALLTYPE *GetTableId )( + IIsdbSIParameterDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetTableDescriptionLength) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptionLength )( + IIsdbSIParameterDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetTableDescriptionBytes) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptionBytes )( + IIsdbSIParameterDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out][in] */ BYTE *pbBufferLength, + /* [out] */ BYTE *pbBuffer); + + END_INTERFACE + } IIsdbSIParameterDescriptorVtbl; + + interface IIsdbSIParameterDescriptor + { + CONST_VTBL struct IIsdbSIParameterDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbSIParameterDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbSIParameterDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbSIParameterDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbSIParameterDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetParameterVersion(This,pbVal) \ + ( (This)->lpVtbl -> GetParameterVersion(This,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetUpdateTime(This,pVal) \ + ( (This)->lpVtbl -> GetUpdateTime(This,pVal) ) + +#define IIsdbSIParameterDescriptor_GetRecordNumberOfTable(This,pbVal) \ + ( (This)->lpVtbl -> GetRecordNumberOfTable(This,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetTableId(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetTableId(This,bRecordIndex,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetTableDescriptionLength(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetTableDescriptionLength(This,bRecordIndex,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetTableDescriptionBytes(This,bRecordIndex,pbBufferLength,pbBuffer) \ + ( (This)->lpVtbl -> GetTableDescriptionBytes(This,bRecordIndex,pbBufferLength,pbBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbSIParameterDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbEmergencyInformationDescriptor_INTERFACE_DEFINED__ +#define __IIsdbEmergencyInformationDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbEmergencyInformationDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbEmergencyInformationDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BA6FA681-B973-4da1-9207-AC3E7F0341EB") + IIsdbEmergencyInformationDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStartEndFlag( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSignalLevel( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAreaCode( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD **ppwVal, + /* [out] */ BYTE *pbNumAreaCodes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbEmergencyInformationDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbEmergencyInformationDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbEmergencyInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbEmergencyInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbEmergencyInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbEmergencyInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbEmergencyInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetServiceId) + HRESULT ( STDMETHODCALLTYPE *GetServiceId )( + IIsdbEmergencyInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetStartEndFlag) + HRESULT ( STDMETHODCALLTYPE *GetStartEndFlag )( + IIsdbEmergencyInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetSignalLevel) + HRESULT ( STDMETHODCALLTYPE *GetSignalLevel )( + IIsdbEmergencyInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetAreaCode) + HRESULT ( STDMETHODCALLTYPE *GetAreaCode )( + IIsdbEmergencyInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD **ppwVal, + /* [out] */ BYTE *pbNumAreaCodes); + + END_INTERFACE + } IIsdbEmergencyInformationDescriptorVtbl; + + interface IIsdbEmergencyInformationDescriptor + { + CONST_VTBL struct IIsdbEmergencyInformationDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbEmergencyInformationDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbEmergencyInformationDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbEmergencyInformationDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbEmergencyInformationDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetServiceId(This,bRecordIndex,pwVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetStartEndFlag(This,bRecordIndex,pVal) \ + ( (This)->lpVtbl -> GetStartEndFlag(This,bRecordIndex,pVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetSignalLevel(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetSignalLevel(This,bRecordIndex,pbVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetAreaCode(This,bRecordIndex,ppwVal,pbNumAreaCodes) \ + ( (This)->lpVtbl -> GetAreaCode(This,bRecordIndex,ppwVal,pbNumAreaCodes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbEmergencyInformationDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbCADescriptor_INTERFACE_DEFINED__ +#define __IIsdbCADescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbCADescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbCADescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0570AA47-52BC-42ae-8CA5-969F41E81AEA") + IIsdbCADescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCASystemId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReservedBits( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAPID( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateDataBytes( + /* [out][in] */ BYTE *pbBufferLength, + /* [out] */ BYTE *pbBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbCADescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbCADescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbCADescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbCADescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbCADescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbCADescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetCASystemId) + HRESULT ( STDMETHODCALLTYPE *GetCASystemId )( + IIsdbCADescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetReservedBits) + HRESULT ( STDMETHODCALLTYPE *GetReservedBits )( + IIsdbCADescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetCAPID) + HRESULT ( STDMETHODCALLTYPE *GetCAPID )( + IIsdbCADescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetPrivateDataBytes) + HRESULT ( STDMETHODCALLTYPE *GetPrivateDataBytes )( + IIsdbCADescriptor * This, + /* [out][in] */ BYTE *pbBufferLength, + /* [out] */ BYTE *pbBuffer); + + END_INTERFACE + } IIsdbCADescriptorVtbl; + + interface IIsdbCADescriptor + { + CONST_VTBL struct IIsdbCADescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbCADescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbCADescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbCADescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbCADescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbCADescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbCADescriptor_GetCASystemId(This,pwVal) \ + ( (This)->lpVtbl -> GetCASystemId(This,pwVal) ) + +#define IIsdbCADescriptor_GetReservedBits(This,pbVal) \ + ( (This)->lpVtbl -> GetReservedBits(This,pbVal) ) + +#define IIsdbCADescriptor_GetCAPID(This,pwVal) \ + ( (This)->lpVtbl -> GetCAPID(This,pwVal) ) + +#define IIsdbCADescriptor_GetPrivateDataBytes(This,pbBufferLength,pbBuffer) \ + ( (This)->lpVtbl -> GetPrivateDataBytes(This,pbBufferLength,pbBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbCADescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbCAServiceDescriptor_INTERFACE_DEFINED__ +#define __IIsdbCAServiceDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbCAServiceDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbCAServiceDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("39CBEB97-FF0B-42a7-9AB9-7B9CFE70A77A") + IIsdbCAServiceDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCASystemId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCABroadcasterGroupId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMessageControl( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceIds( + /* [out][in] */ BYTE *pbNumServiceIds, + /* [out] */ WORD *pwServiceIds) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbCAServiceDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbCAServiceDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbCAServiceDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbCAServiceDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbCAServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbCAServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetCASystemId) + HRESULT ( STDMETHODCALLTYPE *GetCASystemId )( + IIsdbCAServiceDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetCABroadcasterGroupId) + HRESULT ( STDMETHODCALLTYPE *GetCABroadcasterGroupId )( + IIsdbCAServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetMessageControl) + HRESULT ( STDMETHODCALLTYPE *GetMessageControl )( + IIsdbCAServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetServiceIds) + HRESULT ( STDMETHODCALLTYPE *GetServiceIds )( + IIsdbCAServiceDescriptor * This, + /* [out][in] */ BYTE *pbNumServiceIds, + /* [out] */ WORD *pwServiceIds); + + END_INTERFACE + } IIsdbCAServiceDescriptorVtbl; + + interface IIsdbCAServiceDescriptor + { + CONST_VTBL struct IIsdbCAServiceDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbCAServiceDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbCAServiceDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbCAServiceDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbCAServiceDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbCAServiceDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbCAServiceDescriptor_GetCASystemId(This,pwVal) \ + ( (This)->lpVtbl -> GetCASystemId(This,pwVal) ) + +#define IIsdbCAServiceDescriptor_GetCABroadcasterGroupId(This,pbVal) \ + ( (This)->lpVtbl -> GetCABroadcasterGroupId(This,pbVal) ) + +#define IIsdbCAServiceDescriptor_GetMessageControl(This,pbVal) \ + ( (This)->lpVtbl -> GetMessageControl(This,pbVal) ) + +#define IIsdbCAServiceDescriptor_GetServiceIds(This,pbNumServiceIds,pwServiceIds) \ + ( (This)->lpVtbl -> GetServiceIds(This,pbNumServiceIds,pwServiceIds) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbCAServiceDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbHierarchicalTransmissionDescriptor_INTERFACE_DEFINED__ +#define __IIsdbHierarchicalTransmissionDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbHierarchicalTransmissionDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbHierarchicalTransmissionDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B7B3AE90-EE0B-446d-8769-F7E2AA266AA6") + IIsdbHierarchicalTransmissionDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFutureUse1( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetQualityLevel( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFutureUse2( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReferencePid( + /* [out] */ WORD *pwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbHierarchicalTransmissionDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbHierarchicalTransmissionDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbHierarchicalTransmissionDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetFutureUse1) + HRESULT ( STDMETHODCALLTYPE *GetFutureUse1 )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetQualityLevel) + HRESULT ( STDMETHODCALLTYPE *GetQualityLevel )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetFutureUse2) + HRESULT ( STDMETHODCALLTYPE *GetFutureUse2 )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetReferencePid) + HRESULT ( STDMETHODCALLTYPE *GetReferencePid )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IIsdbHierarchicalTransmissionDescriptorVtbl; + + interface IIsdbHierarchicalTransmissionDescriptor + { + CONST_VTBL struct IIsdbHierarchicalTransmissionDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbHierarchicalTransmissionDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbHierarchicalTransmissionDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbHierarchicalTransmissionDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbHierarchicalTransmissionDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbHierarchicalTransmissionDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbHierarchicalTransmissionDescriptor_GetFutureUse1(This,pbVal) \ + ( (This)->lpVtbl -> GetFutureUse1(This,pbVal) ) + +#define IIsdbHierarchicalTransmissionDescriptor_GetQualityLevel(This,pbVal) \ + ( (This)->lpVtbl -> GetQualityLevel(This,pbVal) ) + +#define IIsdbHierarchicalTransmissionDescriptor_GetFutureUse2(This,pbVal) \ + ( (This)->lpVtbl -> GetFutureUse2(This,pbVal) ) + +#define IIsdbHierarchicalTransmissionDescriptor_GetReferencePid(This,pwVal) \ + ( (This)->lpVtbl -> GetReferencePid(This,pwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbHierarchicalTransmissionDescriptor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dvbsiparser_0000_0065 */ +/* [local] */ + +#define COMPONENT_TAG_CAPTION_MIN 0x30 +#define COMPONENT_TAG_CAPTION_MAX 0x37 +#define COMPONENT_TAG_SUPERIMPOSE_MIN 0x38 +#define COMPONENT_TAG_SUPERIMPOSE_MAX 0x3F + + + + +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0065_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0065_v0_0_s_ifspec; + +#ifndef __IPBDASiParser_INTERFACE_DEFINED__ +#define __IPBDASiParser_INTERFACE_DEFINED__ + +/* interface IPBDASiParser */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IPBDASiParser; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9DE49A74-ABA2-4a18-93E1-21F17F95C3C3") + IPBDASiParser : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ IUnknown *punk) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEIT( + /* [in] */ DWORD dwSize, + /* [in] */ BYTE *pBuffer, + /* [out] */ IPBDA_EIT **ppEIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServices( + /* [in] */ DWORD dwSize, + /* [in] */ const BYTE *pBuffer, + /* [out] */ IPBDA_Services **ppServices) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPBDASiParserVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPBDASiParser * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPBDASiParser * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPBDASiParser * This); + + DECLSPEC_XFGVIRT(IPBDASiParser, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IPBDASiParser * This, + /* [in] */ IUnknown *punk); + + DECLSPEC_XFGVIRT(IPBDASiParser, GetEIT) + HRESULT ( STDMETHODCALLTYPE *GetEIT )( + IPBDASiParser * This, + /* [in] */ DWORD dwSize, + /* [in] */ BYTE *pBuffer, + /* [out] */ IPBDA_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IPBDASiParser, GetServices) + HRESULT ( STDMETHODCALLTYPE *GetServices )( + IPBDASiParser * This, + /* [in] */ DWORD dwSize, + /* [in] */ const BYTE *pBuffer, + /* [out] */ IPBDA_Services **ppServices); + + END_INTERFACE + } IPBDASiParserVtbl; + + interface IPBDASiParser + { + CONST_VTBL struct IPBDASiParserVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPBDASiParser_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPBDASiParser_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPBDASiParser_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPBDASiParser_Initialize(This,punk) \ + ( (This)->lpVtbl -> Initialize(This,punk) ) + +#define IPBDASiParser_GetEIT(This,dwSize,pBuffer,ppEIT) \ + ( (This)->lpVtbl -> GetEIT(This,dwSize,pBuffer,ppEIT) ) + +#define IPBDASiParser_GetServices(This,dwSize,pBuffer,ppServices) \ + ( (This)->lpVtbl -> GetServices(This,dwSize,pBuffer,ppServices) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPBDASiParser_INTERFACE_DEFINED__ */ + + +#ifndef __IPBDA_EIT_INTERFACE_DEFINED__ +#define __IPBDA_EIT_INTERFACE_DEFINED__ + +/* interface IPBDA_EIT */ +/* [unique][helpstring][uuid][local][object] */ + + +EXTERN_C const IID IID_IPBDA_EIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A35F2DEA-098F-4ebd-984C-2BD4C3C8CE0A") + IPBDA_EIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ DWORD size, + /* [size_is][in] */ const BYTE *pBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceIdx( + /* [out] */ ULONG64 *plwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEventId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ ULONG64 *plwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordStartTime( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDuration( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DURATION *pmdVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [out][in] */ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPBDA_EITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPBDA_EIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPBDA_EIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPBDA_EIT * This); + + DECLSPEC_XFGVIRT(IPBDA_EIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IPBDA_EIT * This, + /* [in] */ DWORD size, + /* [size_is][in] */ const BYTE *pBuffer); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetTableId) + HRESULT ( STDMETHODCALLTYPE *GetTableId )( + IPBDA_EIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IPBDA_EIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetServiceIdx) + HRESULT ( STDMETHODCALLTYPE *GetServiceIdx )( + IPBDA_EIT * This, + /* [out] */ ULONG64 *plwVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IPBDA_EIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordEventId) + HRESULT ( STDMETHODCALLTYPE *GetRecordEventId )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ ULONG64 *plwVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordStartTime) + HRESULT ( STDMETHODCALLTYPE *GetRecordStartTime )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordDuration) + HRESULT ( STDMETHODCALLTYPE *GetRecordDuration )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DURATION *pmdVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [out][in] */ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + END_INTERFACE + } IPBDA_EITVtbl; + + interface IPBDA_EIT + { + CONST_VTBL struct IPBDA_EITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPBDA_EIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPBDA_EIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPBDA_EIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPBDA_EIT_Initialize(This,size,pBuffer) \ + ( (This)->lpVtbl -> Initialize(This,size,pBuffer) ) + +#define IPBDA_EIT_GetTableId(This,pbVal) \ + ( (This)->lpVtbl -> GetTableId(This,pbVal) ) + +#define IPBDA_EIT_GetVersionNumber(This,pwVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pwVal) ) + +#define IPBDA_EIT_GetServiceIdx(This,plwVal) \ + ( (This)->lpVtbl -> GetServiceIdx(This,plwVal) ) + +#define IPBDA_EIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IPBDA_EIT_GetRecordEventId(This,dwRecordIndex,plwVal) \ + ( (This)->lpVtbl -> GetRecordEventId(This,dwRecordIndex,plwVal) ) + +#define IPBDA_EIT_GetRecordStartTime(This,dwRecordIndex,pmdtVal) \ + ( (This)->lpVtbl -> GetRecordStartTime(This,dwRecordIndex,pmdtVal) ) + +#define IPBDA_EIT_GetRecordDuration(This,dwRecordIndex,pmdVal) \ + ( (This)->lpVtbl -> GetRecordDuration(This,dwRecordIndex,pmdVal) ) + +#define IPBDA_EIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IPBDA_EIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IPBDA_EIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPBDA_EIT_INTERFACE_DEFINED__ */ + + +#ifndef __IPBDA_Services_INTERFACE_DEFINED__ +#define __IPBDA_Services_INTERFACE_DEFINED__ + +/* interface IPBDA_Services */ +/* [unique][helpstring][uuid][local][object] */ + + +EXTERN_C const IID IID_IPBDA_Services; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("944EAB37-EED4-4850-AFD2-77E7EFEB4427") + IPBDA_Services : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ DWORD size, + /* [size_is][in] */ BYTE *pBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ ULONG64 *pul64ServiceIdx) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPBDA_ServicesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPBDA_Services * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPBDA_Services * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPBDA_Services * This); + + DECLSPEC_XFGVIRT(IPBDA_Services, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IPBDA_Services * This, + /* [in] */ DWORD size, + /* [size_is][in] */ BYTE *pBuffer); + + DECLSPEC_XFGVIRT(IPBDA_Services, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IPBDA_Services * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IPBDA_Services, GetRecordByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordByIndex )( + IPBDA_Services * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ ULONG64 *pul64ServiceIdx); + + END_INTERFACE + } IPBDA_ServicesVtbl; + + interface IPBDA_Services + { + CONST_VTBL struct IPBDA_ServicesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPBDA_Services_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPBDA_Services_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPBDA_Services_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPBDA_Services_Initialize(This,size,pBuffer) \ + ( (This)->lpVtbl -> Initialize(This,size,pBuffer) ) + +#define IPBDA_Services_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IPBDA_Services_GetRecordByIndex(This,dwRecordIndex,pul64ServiceIdx) \ + ( (This)->lpVtbl -> GetRecordByIndex(This,dwRecordIndex,pul64ServiceIdx) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPBDA_Services_INTERFACE_DEFINED__ */ + + +#ifndef __IPBDAEntitlementDescriptor_INTERFACE_DEFINED__ +#define __IPBDAEntitlementDescriptor_INTERFACE_DEFINED__ + +/* interface IPBDAEntitlementDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IPBDAEntitlementDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22632497-0DE3-4587-AADC-D8D99017E760") + IPBDAEntitlementDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetToken( + /* [out] */ BYTE **ppbTokenBuffer, + /* [out] */ DWORD *pdwTokenLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPBDAEntitlementDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPBDAEntitlementDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPBDAEntitlementDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPBDAEntitlementDescriptor * This); + + DECLSPEC_XFGVIRT(IPBDAEntitlementDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IPBDAEntitlementDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IPBDAEntitlementDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IPBDAEntitlementDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IPBDAEntitlementDescriptor, GetToken) + HRESULT ( STDMETHODCALLTYPE *GetToken )( + IPBDAEntitlementDescriptor * This, + /* [out] */ BYTE **ppbTokenBuffer, + /* [out] */ DWORD *pdwTokenLength); + + END_INTERFACE + } IPBDAEntitlementDescriptorVtbl; + + interface IPBDAEntitlementDescriptor + { + CONST_VTBL struct IPBDAEntitlementDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPBDAEntitlementDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPBDAEntitlementDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPBDAEntitlementDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPBDAEntitlementDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IPBDAEntitlementDescriptor_GetLength(This,pwVal) \ + ( (This)->lpVtbl -> GetLength(This,pwVal) ) + +#define IPBDAEntitlementDescriptor_GetToken(This,ppbTokenBuffer,pdwTokenLength) \ + ( (This)->lpVtbl -> GetToken(This,ppbTokenBuffer,pdwTokenLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPBDAEntitlementDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IPBDAAttributesDescriptor_INTERFACE_DEFINED__ +#define __IPBDAAttributesDescriptor_INTERFACE_DEFINED__ + +/* interface IPBDAAttributesDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IPBDAAttributesDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("313B3620-3263-45a6-9533-968BEFBEAC03") + IPBDAAttributesDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAttributePayload( + /* [out] */ BYTE **ppbAttributeBuffer, + /* [out] */ DWORD *pdwAttributeLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPBDAAttributesDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPBDAAttributesDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPBDAAttributesDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPBDAAttributesDescriptor * This); + + DECLSPEC_XFGVIRT(IPBDAAttributesDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IPBDAAttributesDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IPBDAAttributesDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IPBDAAttributesDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IPBDAAttributesDescriptor, GetAttributePayload) + HRESULT ( STDMETHODCALLTYPE *GetAttributePayload )( + IPBDAAttributesDescriptor * This, + /* [out] */ BYTE **ppbAttributeBuffer, + /* [out] */ DWORD *pdwAttributeLength); + + END_INTERFACE + } IPBDAAttributesDescriptorVtbl; + + interface IPBDAAttributesDescriptor + { + CONST_VTBL struct IPBDAAttributesDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPBDAAttributesDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPBDAAttributesDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPBDAAttributesDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPBDAAttributesDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IPBDAAttributesDescriptor_GetLength(This,pwVal) \ + ( (This)->lpVtbl -> GetLength(This,pwVal) ) + +#define IPBDAAttributesDescriptor_GetAttributePayload(This,ppbAttributeBuffer,pdwAttributeLength) \ + ( (This)->lpVtbl -> GetAttributePayload(This,ppbAttributeBuffer,pdwAttributeLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPBDAAttributesDescriptor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dvbsiparser_0000_0070 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0070_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0070_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.idl new file mode 100644 index 0000000000000000000000000000000000000000..bec5e557d1afcfd434c88b2b3287877b6d22e465 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.idl @@ -0,0 +1,2882 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Module Name: +// +// DvbSiParser.idl +// +// Abstract: +// +// Interface definitions for the DVB/ISDB SI parsing functionality +// +// Notes: +// +// This IDL file is not meant to be built independently, but to be +// included in a master IDL file with a unique coclass defined for +// IDvbSiParser. No coclasses need to be defined for the other +// interfaces. See DTVParse.idl for an example. +// +///////////////////////////////////////////////////////////////////////////// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#ifndef AM_LOCAL +#define AM_LOCAL local, +#define AM_ANNOTATION(_x_) ,annotation(_x_) +#endif + +import "oaidl.idl"; +import "ocidl.idl"; +import "wtypes.idl"; +import "mpeg2structs.idl"; +import "mpeg2data.idl"; +import "mpeg2psiparser.idl"; + + + // String conversion mode parameter +typedef enum +{ + STRCONV_MODE_DVB = 0, + STRCONV_MODE_DVB_EMPHASIS, + STRCONV_MODE_DVB_WITHOUT_EMPHASIS, + STRCONV_MODE_ISDB, +} DVB_STRCONV_MODE; + + + // Forward interface declarations +interface IPAT; +interface ICAT; +interface IPMT; +interface ITSDT; +interface IDVB_NIT; +interface IDVB_SDT; +interface IISDB_SDT; +interface IDVB_EIT; +interface IDVB_EIT2; +interface IDVB_BAT; +interface IDVB_RST; +interface IDVB_ST; +interface IDVB_TDT; +interface IDVB_TOT; +interface IDVB_DIT; +interface IDVB_SIT; +interface IISDB_BIT; +interface IISDB_NBIT; +interface IISDB_LDT; +interface IISDB_SDTT; +interface IISDB_CDT; +interface IISDB_EMM; + + + //////////////////////////////////// + // + // IDvbSiParser Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(B758A7BD-14DC-449d-B828-35909ACB3B1E), + pointer_default(unique) + ] + interface IDvbSiParser : IUnknown + { + HRESULT Initialize([in] IUnknown * punkMpeg2Data); + + HRESULT GetPAT([out] IPAT ** ppPAT); + + HRESULT GetCAT([in] DWORD dwTimeout, + [out] ICAT ** ppCAT); + + HRESULT GetPMT([in] PID pid, + [in AM_ANNOTATION("_In_opt_")] WORD * pwProgramNumber, + [out] IPMT ** ppPMT); + + HRESULT GetTSDT([out] ITSDT ** ppTSDT); + + HRESULT GetNIT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwNetworkId, + [out] IDVB_NIT ** ppNIT); + + HRESULT GetSDT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwTransportStreamId, + [out] IDVB_SDT ** ppSDT); + + HRESULT GetEIT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwServiceId, + [out] IDVB_EIT ** ppEIT); + + HRESULT GetBAT([in AM_ANNOTATION("_In_opt_")] WORD * pwBouquetId, + [out] IDVB_BAT ** ppBAT); + + HRESULT GetRST([in] DWORD dwTimeout, + [out] IDVB_RST ** ppRST); + + HRESULT GetST([in] PID pid, + [in] DWORD dwTimeout, + [out] IDVB_ST ** ppST); + + HRESULT GetTDT([out] IDVB_TDT ** ppTDT); + + HRESULT GetTOT([out] IDVB_TOT ** ppTOT); + + HRESULT GetDIT([in] DWORD dwTimeout, + [out] IDVB_DIT ** ppDIT); + + HRESULT GetSIT([in] DWORD dwTimeout, + [out] IDVB_SIT ** ppSIT); + + }; + + + + //////////////////////////////////// + // + // IDvbSiParser2 Interface + // + // Note: + // When this interface is updated, + // update also the corresponding + // inherited IIsdbSiParserX. + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(0AC5525F-F816-42F4-93BA-4C0F32F46E54), + pointer_default(unique) + ] + interface IDvbSiParser2 : IDvbSiParser + { + HRESULT GetEIT2([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwServiceId, + [in AM_ANNOTATION("_In_opt_")] BYTE * pbSegment, + [out] IDVB_EIT2 ** ppEIT); + }; + + + + //////////////////////////////////// + // + // IIsdbSiParser2 Interface + // + //////////////////////////////////// + [ + AM_LOCAL + object, + uuid(900E4BB7-18CD-453F-98BE-3BE6AA211772), + pointer_default(unique) + ] + interface IIsdbSiParser2 : IDvbSiParser2 + { + HRESULT GetSDT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwTransportStreamId, + [out] IISDB_SDT ** ppSDT); + + HRESULT GetBIT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwOriginalNetworkId, + [out] IISDB_BIT ** ppBIT); + + HRESULT GetNBIT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwOriginalNetworkId, + [out] IISDB_NBIT ** ppNBIT); + + HRESULT GetLDT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwOriginalServiceId, + [out] IISDB_LDT ** ppLDT); + + HRESULT GetSDTT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwTableIdExt, + [out] IISDB_SDTT ** ppSDTT); + + HRESULT GetCDT([in] TID tableId, + [in] BYTE bSectionNumber, + [in AM_ANNOTATION("_In_opt_")] WORD * pwDownloadDataId, + [out] IISDB_CDT ** ppCDT); + + HRESULT GetEMM([in] PID pid, + [in] WORD wTableIdExt, + [out] IISDB_EMM ** ppEMM); + }; + + + + //////////////////////////////////// + // + // IDVB_NIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(C64935F4-29E4-4e22-911A-63F7F55CB097), + pointer_default(unique) + ] + interface IDVB_NIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetNetworkId([out] WORD * pwVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordTransportStreamId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordOriginalNetworkId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable); + + HRESULT GetNextTable([out] IDVB_NIT ** ppNIT); + + HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent); + + HRESULT ConvertNextToCurrent(void); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IDVB_SDT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(02CAD8D3-FE43-48e2-90BD-450ED9A8A5FD), + pointer_default(unique) + ] + interface IDVB_SDT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetTransportStreamId([out] WORD * pwVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordServiceId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordEITScheduleFlag([in] DWORD dwRecordIndex, + [out] BOOL * pfVal); + + HRESULT GetRecordEITPresentFollowingFlag([in] DWORD dwRecordIndex, + [out] BOOL * pfVal); + + HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordFreeCAMode([in] DWORD dwRecordIndex, + [out] BOOL * pfVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable); + + HRESULT GetNextTable([out] IDVB_SDT ** ppSDT); + + HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent); + + HRESULT ConvertNextToCurrent(void); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + //////////////////////////////////// + // + // IISDB_SDT Interface + // Support user_defined_flags field + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(3F3DC9A2-BB32-4FB9-AE9E-D856848927A3), + pointer_default(unique) + ] + interface IISDB_SDT : IDVB_SDT + // Additional field for ISDB + { + HRESULT GetRecordEITUserDefinedFlags([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + } + + + //////////////////////////////////// + // + // IDVB_EIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(442DB029-02CB-4495-8B92-1C13375BCE99), + pointer_default(unique) + ] + interface IDVB_EIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetServiceId([out] WORD * pwVal); + + HRESULT GetTransportStreamId([out] WORD * pwVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetSegmentLastSectionNumber([out] BYTE * pbVal); + + HRESULT GetLastTableId([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordEventId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordStartTime([in] DWORD dwRecordIndex, + [out] MPEG_DATE_AND_TIME * pmdtVal); + + HRESULT GetRecordDuration([in] DWORD dwRecordIndex, + [out] MPEG_DURATION * pmdVal); + + HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordFreeCAMode([in] DWORD dwRecordIndex, + [out] BOOL * pfVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable); + + HRESULT GetNextTable([out] IDVB_EIT ** ppEIT); + + HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent); + + HRESULT ConvertNextToCurrent(void); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + //////////////////////////////////// + // + // IDVB_EIT2 Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(61A389E0-9B9E-4ba0-AEEA-5DDD159820EA), + pointer_default(unique) + ] + interface IDVB_EIT2 : IDVB_EIT + { + HRESULT GetSegmentInfo([out] BYTE * pbTid, + [out] BYTE * pbSegment); + + HRESULT GetRecordSection([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + }; + + + + //////////////////////////////////// + // + // IDVB_BAT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(ECE9BB0C-43B6-4558-A0EC-1812C34CD6CA), + pointer_default(unique) + ] + interface IDVB_BAT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetBouquetId([out] WORD * pwVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [in] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordTransportStreamId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordOriginalNetworkId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable); + + HRESULT GetNextTable([out] IDVB_BAT ** ppBAT); + + HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent); + + HRESULT ConvertNextToCurrent(void); + }; + + + + //////////////////////////////////// + // + // IDVB_RST Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(F47DCD04-1E23-4fb7-9F96-B40EEAD10B2B), + pointer_default(unique) + ] + interface IDVB_RST : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordTransportStreamId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordOriginalNetworkId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordServiceId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordEventId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + }; + + + + //////////////////////////////////// + // + // IDVB_ST Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(4D5B9F23-2A02-45de-BCDA-5D5DBFBFBE62), + pointer_default(unique) + ] + interface IDVB_ST : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList); + + HRESULT GetDataLength([out] WORD * pwVal); + + HRESULT GetData([out] BYTE ** ppData); + }; + + + + //////////////////////////////////// + // + // IDVB_TDT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(0780DC7D-D55C-4aef-97E6-6B75906E2796), + pointer_default(unique) + ] + interface IDVB_TDT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList); + + HRESULT GetUTCTime([out] MPEG_DATE_AND_TIME * pmdtVal); + }; + + + + //////////////////////////////////// + // + // IDVB_TOT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(83295D6A-FABA-4ee1-9B15-8067696910AE), + pointer_default(unique) + ] + interface IDVB_TOT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList); + + HRESULT GetUTCTime([out] MPEG_DATE_AND_TIME * pmdtVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + }; + + + + //////////////////////////////////// + // + // IDVB_DIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(91BFFDF9-9432-410f-86EF-1C228ED0AD70), + pointer_default(unique) + ] + interface IDVB_DIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList); + + HRESULT GetTransitionFlag([out] BOOL * pfVal); + }; + + + + //////////////////////////////////// + // + // IDVB_SIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(68CDCE53-8BEA-45c2-9D9D-ACF575A089B5), + pointer_default(unique) + ] + interface IDVB_SIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordServiceId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable); + + HRESULT GetNextTable([in] DWORD dwTimeout, + [out] IDVB_SIT ** ppSIT); + + HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent); + + HRESULT ConvertNextToCurrent(void); + }; + + + + //////////////////////////////////// + // + // IISDB_BIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(537CD71E-0E46-4173-9001-BA043F3E49E2), + pointer_default(unique) + ] + interface IISDB_BIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetBroadcastViewPropriety([out] BYTE * pbVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordBroadcasterId([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in,out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IISDB_NBIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(1B1863EF-08F1-40B7-A559-3B1EFF8CAFA6), + pointer_default(unique) + ] + interface IISDB_NBIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordInformationId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordInformationType([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordDescriptionBodyLocation([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordMessageSectionNumber([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordUserDefined([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordNumberOfKeys([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordKeys([in] DWORD dwRecordIndex, + [out] BYTE ** pbKeys); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IISDB_LDT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(141A546B-02FF-4FB9-A3A3-2F074B74A9A9), + pointer_default(unique) + ] + interface IISDB_LDT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetOriginalServiceId([out] WORD * pwVal); + + HRESULT GetTransportStreamId([out] WORD * pwVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordDescriptionId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IISDB_SDTT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(EE60EF2D-813A-4DC7-BF92-EA13DAC85313), + pointer_default(unique) + ] + interface IISDB_SDTT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetTableIdExt([out] WORD * pwVal); + + HRESULT GetTransportStreamId([out] WORD * pwVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetServiceId([out] WORD * pwVal); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordGroup([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordTargetVersion([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordNewVersion([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordDownloadLevel([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordVersionIndicator([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordScheduleTimeShiftInformation([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordCountOfSchedules([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordStartTimeByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] MPEG_DATE_AND_TIME * pmdtVal); + + HRESULT GetRecordDurationByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] MPEG_DURATION * pmdVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IISDB_CDT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(25FA92C2-8B80-4787-A841-3A0E8F17984B), + pointer_default(unique) + ] + interface IISDB_CDT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData, + [in] BYTE bSectionNumber); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetDownloadDataId([out] WORD * pwVal); + + HRESULT GetSectionNumber([out] BYTE * pbVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetDataType([out] BYTE * pbVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetSizeOfDataModule([out] DWORD * pdwVal); + + HRESULT GetDataModule([out] BYTE ** pbData); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IISDB_EMM Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(0EDB556D-43AD-4938-9668-321B2FFECFD3), + pointer_default(unique) + ] + interface IISDB_EMM : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetTableIdExtension([out] WORD * pwVal); + + HRESULT GetDataBytes( + [in, out] WORD * pwBufferLength, // retuen reqired buffer length if pbBuffer is null. + [out] BYTE * pbBuffer + ); + + HRESULT GetSharedEmmMessage( + /*[out]*/ WORD * pwLength, + /*[out]*/ BYTE ** ppbMessage); // If this method succeeds, the client must release by CoTaskMemFree + + HRESULT GetIndividualEmmMessage( + /*[in]*/ IUnknown * pUnknown, + /*[out]*/ WORD * pwLength, + /*[out]*/ BYTE ** ppbMessage); // If this method succeeds, the client must release by CoTaskMemFree + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IDvbServiceAttributeDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(0F37BD92-D6A1-4854-B950-3A969D27F30E), + pointer_default(unique) + ] + interface IDvbServiceAttributeDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordServiceId([in] BYTE bRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordNumericSelectionFlag([in] BYTE bRecordIndex, + [out] BOOL * pfVal); + + HRESULT GetRecordVisibleServiceFlag([in] BYTE bRecordIndex, + [out] BOOL * pfVal); + }; + + + + //////////////////////////////////// + // + // IDvbContentIdentifierDescriptor Interface + // + //////////////////////////////////// + + typedef enum + { + CRID_LOCATION_IN_DESCRIPTOR = 0x0, + CRID_LOCATION_IN_CIT = 0x1, + CRID_LOCATION_DVB_RESERVED1 = 0x2, + CRID_LOCATION_DVB_RESERVED2 = 0x3, + + } CRID_LOCATION; + + [ + AM_LOCAL + object, + uuid(05E0C1EA-F661-4053-9FBF-D93B28359838), + pointer_default(unique) + ] + interface IDvbContentIdentifierDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordCrid([in] BYTE bRecordIndex, + [out] BYTE * pbType, + [out] BYTE * pbLocation, + [out] BYTE * pbLength, + [out, size_is( , *pbLength)] BYTE ** ppbBytes); + }; + + + + //////////////////////////////////// + // + // IDvbDefaultAuthorityDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(05EC24D1-3A31-44e7-B408-67C60A352276), + pointer_default(unique) + ] + interface IDvbDefaultAuthorityDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetDefaultAuthority([out] BYTE * pbLength, + [out, size_is( , *pbLength)] BYTE ** ppbBytes); + }; + + + + //////////////////////////////////// + // + // IDvbSatelliteDeliverySystemDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(02F2225A-805B-4ec5-A9A6-F9B5913CD470), + pointer_default(unique) + ] + interface IDvbSatelliteDeliverySystemDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetFrequency([out] DWORD * pdwVal); + + HRESULT GetOrbitalPosition([out] WORD * pwVal); + + HRESULT GetWestEastFlag([out] BYTE * pbVal); + + HRESULT GetPolarization([out] BYTE * pbVal); + + HRESULT GetModulation([out] BYTE * pbVal); + + HRESULT GetSymbolRate([out] DWORD * pdwVal); + + HRESULT GetFECInner([out] BYTE * pbVal); + }; + + + + //////////////////////////////////// + // + // IDvbCableDeliverySystemDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(DFB98E36-9E1A-4862-9946-993A4E59017B), + pointer_default(unique) + ] + interface IDvbCableDeliverySystemDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetFrequency([out] DWORD * pdwVal); + + HRESULT GetFECOuter([out] BYTE * pbVal); + + HRESULT GetModulation([out] BYTE * pbVal); + + HRESULT GetSymbolRate([out] DWORD * pdwVal); + + HRESULT GetFECInner([out] BYTE * pbVal); + }; + + + + //////////////////////////////////// + // + // IDvbTerrestrialDeliverySystemDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(ED7E1B91-D12E-420c-B41D-A49D84FE1823), + pointer_default(unique) + ] + interface IDvbTerrestrialDeliverySystemDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCentreFrequency([out] DWORD * pdwVal); + + HRESULT GetBandwidth([out] BYTE * pbVal); + + HRESULT GetConstellation([out] BYTE * pbVal); + + HRESULT GetHierarchyInformation([out] BYTE * pbVal); + + HRESULT GetCodeRateHPStream([out] BYTE * pbVal); + + HRESULT GetCodeRateLPStream([out] BYTE * pbVal); + + HRESULT GetGuardInterval([out] BYTE * pbVal); + + HRESULT GetTransmissionMode([out] BYTE * pbVal); + + HRESULT GetOtherFrequencyFlag([out] BYTE * pbVal); + }; + + //////////////////////////////////// + // + // IDvbTerrestrial2DeliverySystemDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(20EE9BE9-CD57-49ab-8F6E-1D07AEB8E482), + pointer_default(unique) + ] + interface IDvbTerrestrial2DeliverySystemDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetTagExtension([out] BYTE * pbVal); + + HRESULT GetCentreFrequency([out] DWORD * pdwVal); + + HRESULT GetPLPId([out] BYTE * pbVal); + + HRESULT GetT2SystemId([out] WORD * pwVal); + + HRESULT GetMultipleInputMode([out] BYTE * pbVal); + + HRESULT GetBandwidth([out] BYTE * pbVal); + + HRESULT GetGuardInterval([out] BYTE * pbVal); + + HRESULT GetTransmissionMode([out] BYTE * pbVal); + + HRESULT GetCellId([out] WORD * pwVal); + + HRESULT GetOtherFrequencyFlag([out] BYTE * pbVal); + + HRESULT GetTFSFlag([out] BYTE * pbVal); + + }; + + + //////////////////////////////////// + // + // IDvbFrequencyListDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(1CADB613-E1DD-4512-AFA8-BB7A007EF8B1), + pointer_default(unique) + ] + interface IDvbFrequencyListDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCodingType([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordCentreFrequency([in] BYTE bRecordIndex, + [out] DWORD * pdwVal); + }; + + + + //////////////////////////////////// + // + // IDvbPrivateDataSpecifierDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(5660A019-E75A-4b82-9B4C-ED2256D165A2), + pointer_default(unique) + ] + interface IDvbPrivateDataSpecifierDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetPrivateDataSpecifier([out] DWORD * pdwVal); + }; + + + + //////////////////////////////////// + // + // IDvbLogicalChannelDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(CF1EDAFF-3FFD-4cf7-8201-35756ACBF85F), + pointer_default(unique) + ] + interface IDvbLogicalChannelDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordServiceId([in] BYTE bRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordLogicalChannelNumber([in] BYTE bRecordIndex, + [out] WORD * pwVal); + }; + + + + //////////////////////////////////// + // + // IDvbLogicalChannelDescriptor2 Interface. + // + // Extension to the IDvbLogicalChannelDescriptor + // interface to also return channel visibility + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(43ACA974-4BE8-4b98-BC17-9EAFD788B1D7), + pointer_default(unique) + ] + interface IDvbLogicalChannelDescriptor2 : IDvbLogicalChannelDescriptor + { + HRESULT GetRecordLogicalChannelAndVisibility([in] BYTE bRecordIndex, + [out] WORD * pwVal); + }; + + + + //////////////////////////////////// + // + // IDvbLogicalChannel2Descriptor Interface + // + // Extension to the IDvbLogicalChannelDescriptor2 to implement fields + // available in version 2 of the DVB Logical Channel descriptor. + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(F69C3747-8A30-4980-998C-01FE7F0BA35A), + pointer_default(unique) + ] + interface IDvbLogicalChannel2Descriptor : IDvbLogicalChannelDescriptor2 + { + HRESULT GetCountOfLists([out] BYTE * pbVal); + + HRESULT GetListId([in] BYTE bListIndex, + [out] BYTE * pbVal); + + HRESULT GetListNameW([in] BYTE bListIndex, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + + HRESULT GetListCountryCode([in] BYTE bListIndex, + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode); + + HRESULT GetListCountOfRecords([in] BYTE bChannelListIndex, + [out] BYTE * pbVal); + + HRESULT GetListRecordServiceId([in] BYTE bListIndex, + [in] BYTE bRecordIndex, + [out] WORD * pwVal); + + HRESULT GetListRecordLogicalChannelNumber([in] BYTE bListIndex, + [in] BYTE bRecordIndex, + [out] WORD * pwVal); + + HRESULT GetListRecordLogicalChannelAndVisibility([in] BYTE bListIndex, + [in] BYTE bRecordIndex, + [out] WORD * pwVal); + }; + + + + //////////////////////////////////// + // + // IDvbHDSimulcastLogicalChannelDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(1EA8B738-A307-4680-9E26-D0A908C824F4), + pointer_default(unique) + ] + interface IDvbHDSimulcastLogicalChannelDescriptor : IDvbLogicalChannelDescriptor2 + { + // Identical to IDvbLogicalChannelDescriptor2 + }; + + + + //////////////////////////////////// + // + // IDvbDataBroadcastIDDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(5F26F518-65C8-4048-91F2-9290F59F7B90), + pointer_default(unique) + ] + interface IDvbDataBroadcastIDDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetDataBroadcastID([out] WORD * pwVal); + + HRESULT GetIDSelectorBytes([in, out] BYTE * pbLen, [out] BYTE * pbVal); + }; + + //////////////////////////////////// + // + // IDvbDataBroadcastDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(D1EBC1D6-8B60-4c20-9CAF-E59382E7C400), + pointer_default(unique) + ] + interface IDvbDataBroadcastDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetDataBroadcastID([out] WORD * pwVal); + + HRESULT GetComponentTag([out] BYTE * pbVal); + + HRESULT GetSelectorLength([out] BYTE * pbVal); + + HRESULT GetSelectorBytes([in, out] BYTE *pbLen, [out] BYTE * pbVal); + + HRESULT GetLangID([out] ULONG * pulVal); + + HRESULT GetTextLength([out] BYTE * pbVal); + + HRESULT GetText([in, out] BYTE *pbLen, [out] BYTE * pbVal); + }; + +typedef enum +{ + DESC_LINKAGE_RESERVED0 = 0x00, + DESC_LINKAGE_INFORMATION, + DESC_LINKAGE_EPG, + DESC_LINKAGE_CA_REPLACEMENT, + DESC_LINKAGE_COMPLETE_NET_BOUQUET_SI, + DESC_LINKAGE_REPLACEMENT, + DESC_LINKAGE_DATA, + DESC_LINKAGE_RESERVED1 = 0x07, + DESC_LINKAGE_USER = 0x08, + DESC_LINKAGE_RESERVED2 = 0xFF + +} DESC_LINKAGE_TYPE; + + //////////////////////////////////// + // + // IDvbLinkageDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(1CDF8B31-994A-46fc-ACFD-6A6BE8934DD5), + pointer_default(unique) + ] + interface IDvbLinkageDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetTSId([out] WORD * pwVal); + + HRESULT GetONId([out] WORD * pwVal); + + HRESULT GetServiceId([out] WORD * pwVal); + + HRESULT GetLinkageType([out] BYTE * pbVal); + + HRESULT GetPrivateDataLength([out] BYTE * pbVal); + + HRESULT GetPrivateData([in, out] BYTE *pbLen, [out] BYTE * pbData); + }; + + //////////////////////////////////// + // + // IDvbTeletextDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(9CD29D47-69C6-4f92-98A9-210AF1B7303A), + pointer_default(unique) + ] + interface IDvbTeletextDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordLangId([in] BYTE bRecordIndex, + [out] ULONG * pulVal); + + HRESULT GetRecordTeletextType([in] BYTE bRecordIndex, + [out] BYTE * pbVal); + HRESULT GetRecordMagazineNumber([in] BYTE bRecordIndex, + [out] BYTE * pbVal); + HRESULT GetRecordPageNumber([in] BYTE bRecordIndex, + [out] BYTE * pbVal); + }; + + //////////////////////////////////// + // + // IDvbSubtitlingDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(9B25FE1D-FA23-4e50-9784-6DF8B26F8A49), + pointer_default(unique) + ] + interface IDvbSubtitlingDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordLangId([in] BYTE bRecordIndex, + [out] ULONG * pulVal); + + HRESULT GetRecordSubtitlingType([in] BYTE bRecordIndex, + [out] BYTE * pbVal); + HRESULT GetRecordCompositionPageID([in] BYTE bRecordIndex, + [out] WORD * pwVal); + HRESULT GetRecordAncillaryPageID([in] BYTE bRecordIndex, + [out] WORD * pwVal); + }; + + //////////////////////////////////// + // + // IDvbServiceDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(F9C7FBCF-E2D6-464d-B32D-2EF526E49290), + pointer_default(unique) + ] + interface IDvbServiceDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetServiceType([out] BYTE * pbVal); + + HRESULT GetServiceProviderName([out AM_ANNOTATION("_Outptr_")] char ** pszName); + + HRESULT GetServiceProviderNameW([out AM_ANNOTATION("_Outptr_")] BSTR* pbstrName); + + HRESULT GetServiceName([out AM_ANNOTATION("_Outptr_")] char ** pszName); + + HRESULT GetProcessedServiceName([out] BSTR *pbstrName); + + HRESULT GetServiceNameEmphasized([out] BSTR *pbstrName); + }; + + //////////////////////////////////// + // + // IDvbServiceDescriptor2 Interface + // Added generic string functions + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(D6C76506-85AB-487C-9B2B-36416511E4A2), + pointer_default(unique) + ] + interface IDvbServiceDescriptor2 : IDvbServiceDescriptor + { + HRESULT GetServiceProviderNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + + HRESULT GetServiceNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + }; + + + + //////////////////////////////////// + // + // IDvbServiceListDescriptor Interface + // for DVB/ISDB + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(05DB0D8F-6008-491a-ACD3-7090952707D0), + pointer_default(unique) + ] + interface IDvbServiceListDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordServiceId([in] BYTE bRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordServiceType([in] BYTE bRecordIndex, + [out] BYTE * pbVal); + }; + + ///////////////////////////////////////////////// + // + // IDvbMultilingualServiceNameDescriptor Interface + // + ///////////////////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(2D80433B-B32C-47ef-987F-E78EBB773E34), + pointer_default(unique) + ] + interface IDvbMultilingualServiceNameDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordLangId ([in] BYTE bRecordIndex, + [out] ULONG * ulVal); + + HRESULT GetRecordServiceProviderNameW( + [in] BYTE bRecordIndex, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + + HRESULT GetRecordServiceNameW( + [in] BYTE bRecordIndex, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + }; + + /////////////////////////////////////////////////////////// + // + // IDvbNetworkNameDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(5B2A80CF-35B9-446C-B3E4-048B761DBC51), + pointer_default(unique) + ] + interface IDvbNetworkNameDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetNetworkName( + [out AM_ANNOTATION("_Outptr_")] char ** pszName + ); + HRESULT GetNetworkNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + }; + + + + /////////////////////////////////////////////////////////// + // + // IDvbShortEventDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(B170BE92-5B75-458E-9C6E-B0008231491A), + pointer_default(unique) + ] + interface IDvbShortEventDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetEventNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IDvbExntededEventDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(C9B22ECA-85F4-499F-B1DB-EFA93A91EE57), + pointer_default(unique) + ] + interface IDvbExtendedEventDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetDescriptorNumber( + [out] BYTE * pbVal + ); + HRESULT GetLastDescriptorNumber( + [out] BYTE * pbVal + ); + HRESULT GetLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordItemW( + [in] BYTE bRecordIndex, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrDesc, + [out] BSTR * pbstrItem + ); + HRESULT GetConcatenatedItemW( + [in] IDvbExtendedEventDescriptor * pFollowingDescriptor, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrDesc, + [out] BSTR * pbstrItem + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + HRESULT GetConcatenatedTextW( + [in] IDvbExtendedEventDescriptor * FollowingDescriptor, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + HRESULT GetRecordItemRawBytes( + [in] BYTE bRecordIndex, + [out] BYTE ** ppbRawItem, + [out] BYTE * pbItemLength + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IDvbComponentDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(91E405CF-80E7-457F-9096-1B9D1CE32141), + pointer_default(unique) + ] + interface IDvbComponentDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetStreamContent( + [out] BYTE * pbVal + ); + HRESULT GetComponentType( + [out] BYTE * pbVal + ); + HRESULT GetComponentTag( + [out] BYTE * pbVal + ); + HRESULT GetLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IDvbContentDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(2E883881-A467-412A-9D63-6F2B6DA05BF0), + pointer_default(unique) + ] + interface IDvbContentDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordContentNibbles( + [in] BYTE bRecordIndex, + [out] BYTE * pbValLevel1, + [out] BYTE * pbValLevel2 + ); + HRESULT GetRecordUserNibbles( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal1, + [out] BYTE * pbVal2 + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IDvbParentalRatingDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(3AD9DDE1-FB1B-4186-937F-22E6B5A72A10), + pointer_default(unique) + ] + interface IDvbParentalRatingDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordRating( + [in] BYTE bRecordIndex, + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCountryCode, + [out] BYTE * pbVal + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbTerrestrialDeliverySystemDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(39FAE0A6-D151-44DD-A28A-765DE5991670), + pointer_default(unique) + ] + interface IIsdbTerrestrialDeliverySystemDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetAreaCode( + [out] WORD * pwVal + ); + HRESULT GetGuardInterval( + [out] BYTE * pbVal + ); + HRESULT GetTransmissionMode( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordFrequency( + [in] BYTE bRecordIndex, + [out] DWORD * pdwVal + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbTSInformationDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(D7AD183E-38F5-4210-B55F-EC8D601BBD47), + pointer_default(unique) + ] + interface IIsdbTSInformationDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetRemoteControlKeyId( + [out] BYTE * pbVal + ); + HRESULT GetTSNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordTransmissionTypeInfo( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordNumberOfServices( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordServiceIdByIndex( + [in] BYTE bRecordIndex, + [in] BYTE bServiceIndex, + [out] WORD * pdwVal + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbDigitalCopyControlDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(1A28417E-266A-4BB8-A4BD-D782BCFB8161), + pointer_default(unique) + ] + interface IIsdbDigitalCopyControlDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCopyControl( + [out] BYTE * pbDigitalRecordingControlData, + [out] BYTE * pbCopyControlType, + [out] BYTE * pbAPSControlData, + [out] BYTE * pbMaximumBitrate + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordCopyControl( + [in] BYTE bRecordIndex, + [out] BYTE * pbComponentTag, + [out] BYTE * pbDigitalRecordingControlData, + [out] BYTE * pbCopyControlType, + [out] BYTE * pbAPSControlData, + [out] BYTE * pbMaximumBitrate + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbAudioComponentDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(679D2002-2425-4BE4-A4C7-D6632A574F4D), + pointer_default(unique) + ] + interface IIsdbAudioComponentDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetStreamContent( + [out] BYTE * pbVal + ); + HRESULT GetComponentType( + [out] BYTE * pbVal + ); + HRESULT GetComponentTag( + [out] BYTE * pbVal + ); + HRESULT GetStreamType( + [out] BYTE * pbVal + ); + HRESULT GetSimulcastGroupTag( + [out] BYTE * pbVal + ); + HRESULT GetESMultiLingualFlag( + [out] BOOL * pfVal + ); + HRESULT GetMainComponentFlag( + [out] BOOL * pfVal + ); + HRESULT GetQualityIndicator( + [out] BYTE * pbVal + ); + HRESULT GetSamplingRate( + [out] BYTE * pbVal + ); + HRESULT GetLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetLanguageCode2( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbDataContentDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(A428100A-E646-4BD6-AA14-6087BDC08CD5), + pointer_default(unique) + ] + interface IIsdbDataContentDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetDataComponentId( + [out] WORD * pwVal + ); + HRESULT GetEntryComponent( + [out] BYTE * pbVal + ); + HRESULT GetSelectorLength( + [out] BYTE * pbVal + ); + HRESULT GetSelectorBytes( + [in] BYTE bBufLength, + [out] BYTE * pbBuf + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordComponentRef( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbCAContractInformationDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(08E18B25-A28F-4E92-821E-4FCED5CC2291), + pointer_default(unique) + ] + interface IIsdbCAContractInformationDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCASystemId( + [out] WORD * pwVal + ); + HRESULT GetCAUnitId( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordComponentTag( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetContractVerificationInfoLength( + [out] BYTE * pbVal + ); + HRESULT GetContractVerificationInfo( + [in] BYTE bBufLength, + [out] BYTE * pbBuf + ); + HRESULT GetFeeNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbEventGroupDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(94B06780-2E2A-44DC-A966-CC56FDABC6C2), + pointer_default(unique) + ] + interface IIsdbEventGroupDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetGroupType( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordEvent( + [in] BYTE bRecordIndex, + [out] WORD * pwServiceId, + [out] WORD * pwEventId + ); + HRESULT GetCountOfRefRecords( + [out] BYTE * pbVal + ); + HRESULT GetRefRecordEvent( + [in] BYTE bRecordIndex, + [out] WORD * pwOriginalNetworkId, + [out] WORD * pwTransportStreamId, + [out] WORD * pwServiceId, + [out] WORD * pwEventId + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbComponentGroupDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(A494F17F-C592-47D8-8943-64C9A34BE7B9), + pointer_default(unique) + ] + interface IIsdbComponentGroupDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetComponentGroupType( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordGroupId( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordNumberOfCAUnit( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordCAUnitCAUnitId( + [in] BYTE bRecordIndex, + [in] BYTE bCAUnitIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordCAUnitNumberOfComponents( + [in] BYTE bRecordIndex, + [in] BYTE bCAUnitIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordCAUnitComponentTag( + [in] BYTE bRecordIndex, + [in] BYTE bCAUnitIndex, + [in] BYTE bComponentIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordTotalBitRate( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordTextW( + [in] BYTE bRecordIndex, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbSeriesDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(07EF6370-1660-4F26-87FC-614ADAB24B11), + pointer_default(unique) + ] + interface IIsdbSeriesDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetSeriesId( + [out] WORD * pwVal + ); + HRESULT GetRepeatLabel( + [out] BYTE * pbVal + ); + HRESULT GetProgramPattern( + [out] BYTE * pbVal + ); + HRESULT GetExpireDate( + [out] BOOL * pfValid, + [out] MPEG_DATE_AND_TIME * pmdtVal + ); + HRESULT GetEpisodeNumber( + [out] WORD * pwVal + ); + HRESULT GetLastEpisodeNumber( + [out] WORD * pwVal + ); + HRESULT GetSeriesNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbDownloadContentDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(5298661E-CB88-4F5F-A1DE-5F440C185B92), + pointer_default(unique) + ] + interface IIsdbDownloadContentDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetFlags( + [out] BOOL * pfReboot, + [out] BOOL * pfAddOn, + [out] BOOL * pfCompatibility, + [out] BOOL * pfModuleInfo, + [out] BOOL * pfTextInfo + ); + HRESULT GetComponentSize( + [out] DWORD * pdwVal + ); + HRESULT GetDownloadId( + [out] DWORD * pdwVal + ); + HRESULT GetTimeOutValueDII( + [out] DWORD * pdwVal + ); + HRESULT GetLeakRate( + [out] DWORD * pdwVal + ); + HRESULT GetComponentTag( + [out] BYTE * pbVal + ); + HRESULT GetCompatiblityDescriptorLength( + [out] WORD * pwLength + ); + HRESULT GetCompatiblityDescriptor( + [out] BYTE ** ppbData + ); + HRESULT GetCountOfRecords( + [out] WORD * pwVal + ); + HRESULT GetRecordModuleId( + [in] WORD wRecordIndex, + [out] WORD * pwVal + ); + HRESULT GetRecordModuleSize( + [in] WORD wRecordIndex, + [out] DWORD * pdwVal + ); + HRESULT GetRecordModuleInfoLength( + [in] WORD wRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordModuleInfo( + [in] WORD wRecordIndex, + [out] BYTE ** ppbData + ); + HRESULT GetTextLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * szCode + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbLogoTransmissionDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(E0103F49-4AE1-4F07-9098-756DB1FA88CD), + pointer_default(unique) + ] + interface IIsdbLogoTransmissionDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetLogoTransmissionType( + [out] BYTE * pbVal + ); + HRESULT GetLogoId( + [out] WORD * pwVal + ); + HRESULT GetLogoVersion( + [out] WORD * pwVal + ); + HRESULT GetDownloadDataId( + [out] WORD * pwVal + ); + HRESULT GetLogoCharW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrChar + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbSIParameterDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(F837DC36-867C-426a-9111-F62093951A45), + pointer_default(unique) + ] + interface IIsdbSIParameterDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetParameterVersion( + [out] BYTE * pbVal + ); + HRESULT GetUpdateTime( + [out] MPEG_DATE * pVal + ); + HRESULT GetRecordNumberOfTable( + [out] BYTE * pbVal + ); + HRESULT GetTableId( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetTableDescriptionLength( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetTableDescriptionBytes( + [in] BYTE bRecordIndex, + [in, out] BYTE * pbBufferLength, + [out] BYTE * pbBuffer + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbEmergencyInformationDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(BA6FA681-B973-4da1-9207-AC3E7F0341EB), + pointer_default(unique) + ] + interface IIsdbEmergencyInformationDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetServiceId( + [in] BYTE bRecordIndex, + [out] WORD * pwVal + ); + HRESULT GetStartEndFlag( + [in] BYTE bRecordIndex, + [out] BYTE * pVal + ); + HRESULT GetSignalLevel( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetAreaCode( + [in] BYTE bRecordIndex, + [out] WORD ** ppwVal, // Upper 12-bits: area_code + [out] BYTE * pbNumAreaCodes + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbCADescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(0570AA47-52BC-42ae-8CA5-969F41E81AEA), + pointer_default(unique) + ] + interface IIsdbCADescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCASystemId( + [out] WORD * pwVal + ); + HRESULT GetReservedBits( + [out] BYTE * pbVal + ); + HRESULT GetCAPID( + [out] WORD * pwVal + ); + HRESULT GetPrivateDataBytes( + [in, out] BYTE * pbBufferLength, // retuen reqired buffer length if pbBuffer is null. + [out] BYTE * pbBuffer + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbCAServiceDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(39CBEB97-FF0B-42a7-9AB9-7B9CFE70A77A), + pointer_default(unique) + ] + interface IIsdbCAServiceDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCASystemId( + [out] WORD * pwVal + ); + HRESULT GetCABroadcasterGroupId( + [out] BYTE * pbVal + ); + HRESULT GetMessageControl( + [out] BYTE * pbVal + ); + HRESULT GetServiceIds( + [in, out] BYTE * pbNumServiceIds, // retuen reqired number of IDs if pwServiceIds is null. + [out] WORD * pwServiceIds + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbHierarchicalTransmissionDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(B7B3AE90-EE0B-446d-8769-F7E2AA266AA6), + pointer_default(unique) + ] + interface IIsdbHierarchicalTransmissionDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetFutureUse1( + [out] BYTE * pbVal // 7-bits + ); + HRESULT GetQualityLevel( + [out] BYTE * pbVal // 1-bits + ); + HRESULT GetFutureUse2( + [out] BYTE * pbVal // 3-bits + ); + HRESULT GetReferencePid( + [out] WORD * pwVal // 13-bits + ); + }; + + /////////////////////////////////////////////////////////// + // + // stream_identifier_descriptor + // It has only one byte body (component_tag). + // We will not define particular interface. + // + /////////////////////////////////////////////////////////// +cpp_quote("#define COMPONENT_TAG_CAPTION_MIN 0x30") +cpp_quote("#define COMPONENT_TAG_CAPTION_MAX 0x37") +cpp_quote("#define COMPONENT_TAG_SUPERIMPOSE_MIN 0x38") +cpp_quote("#define COMPONENT_TAG_SUPERIMPOSE_MAX 0x3F") + +interface IPBDA_EIT; +interface IPBDA_Services; + //////////////////////////////////// + // + // IPBDASiParser Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(9DE49A74-ABA2-4a18-93E1-21F17F95C3C3), + pointer_default(unique) + ] + interface IPBDASiParser : IUnknown + { + HRESULT Initialize([in] IUnknown * punk + ); + + + HRESULT GetEIT([in] DWORD dwSize , + [in] BYTE *pBuffer, + [out] IPBDA_EIT ** ppEIT + ); + + HRESULT GetServices ([in] DWORD dwSize , + [in] const BYTE *pBuffer, + [out] IPBDA_Services ** ppServices + ); + }; + + //////////////////////////////////// + // + // IPBDA_EIT Interface + // + //////////////////////////////////// + + [ + object, + local, + uuid(A35F2DEA-098F-4ebd-984C-2BD4C3C8CE0A), + helpstring("IPBDA_EIT Interface"), + pointer_default(unique) + ] + interface IPBDA_EIT : IUnknown + { + HRESULT Initialize( + [in] DWORD size, + [in] [size_is(size)] const BYTE *pBuffer + ); + + /* Table level data */ + HRESULT GetTableId( + [out] BYTE * pbVal + ); + + HRESULT GetVersionNumber( + [out] WORD * pwVal + ); + + HRESULT GetServiceIdx ( + [out] ULONG64 * plwVal + ); + + + /* Descriptors follow here */ + + HRESULT GetCountOfRecords( + [out] DWORD * pdwVal + ); + + HRESULT GetRecordEventId( + [in] DWORD dwRecordIndex, + [out] ULONG64 * plwVal + ); + + HRESULT GetRecordStartTime( + [in] DWORD dwRecordIndex, + [out] MPEG_DATE_AND_TIME * pmdtVal + ); + + HRESULT GetRecordDuration( + [in] DWORD dwRecordIndex, + [out] MPEG_DURATION * pmdVal + ); + + /* Descriptors follow here */ + + HRESULT GetRecordCountOfDescriptors( + [in] DWORD dwRecordIndex, + [out] DWORD * pdwVal + ); + + HRESULT GetRecordDescriptorByIndex( + [in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor + ); + + HRESULT GetRecordDescriptorByTag( + [in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out] DWORD * pdwCookie, // OPTIONAL + [out] IGenericDescriptor ** ppDescriptor + ); + + }; + + //////////////////////////////////// + // + // IPBDA_Services Interface + // + //////////////////////////////////// + + [ + object, + local, + uuid(944EAB37-EED4-4850-AFD2-77E7EFEB4427), + helpstring("IPBDA_Services Interface"), + pointer_default(unique) + ] + interface IPBDA_Services : IUnknown + { + HRESULT Initialize( + [in] DWORD size, + [in] [size_is(size)] BYTE *pBuffer + ); + + HRESULT GetCountOfRecords( + [out] DWORD * pdwVal + ); + + HRESULT GetRecordByIndex ( + [in] DWORD dwRecordIndex, + [out] ULONG64 *pul64ServiceIdx + ); + }; + + /////////////////////////////////////////////////////////// + // + // IPBDAEntitlementDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(22632497-0DE3-4587-AADC-D8D99017E760), + pointer_default(unique) + ] + interface IPBDAEntitlementDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + + HRESULT GetLength( + [out] WORD * pwVal + ); + + HRESULT GetToken ( + [out] BYTE ** ppbTokenBuffer, + [out] DWORD * pdwTokenLength + ); + + }; + + /////////////////////////////////////////////////////////// + // + // IPBDAAttributesDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(313B3620-3263-45a6-9533-968BEFBEAC03), + pointer_default(unique) + ] + interface IPBDAAttributesDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] WORD * pwVal + ); + HRESULT GetAttributePayload ( + [out] BYTE ** ppbAttributeBuffer, + [out] DWORD * pdwAttributeLength + ); + + }; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/EapAuthenticatorActionDefine.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EapAuthenticatorActionDefine.h new file mode 100644 index 0000000000000000000000000000000000000000..fe364331912c46f17d3d4789a6c8b898606bda0d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EapAuthenticatorActionDefine.h @@ -0,0 +1,104 @@ +//////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. +// +// SYNOPSIS +// +// IDL source for interaction with EAPHost supplicants. +// +//////////////////////////////////////////////////////////// + +#ifndef EAPAUTHENTICATORACTIONDEFINE_H +#define EAPAUTHENTICATORACTIONDEFINE_H + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +typedef +#ifdef __midl + [v1_enum] +#endif +enum _EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION +{ + // Discard the request as EAP cannot use it. + EAP_METHOD_AUTHENTICATOR_RESPONSE_DISCARD = 0, + // Send the packet to the authenticator + EAP_METHOD_AUTHENTICATOR_RESPONSE_SEND, + // Respond to EAP by acting on the returned attributes + EAP_METHOD_AUTHENTICATOR_RESPONSE_RESULT, + // The supplicant needs to take an action based on the context. + EAP_METHOD_AUTHENTICATOR_RESPONSE_RESPOND, + EAP_METHOD_AUTHENTICATOR_RESPONSE_AUTHENTICATE, + EAP_METHOD_AUTHENTICATOR_RESPONSE_HANDLE_IDENTITY + // The supplicant needs to take no action at all. + //EAP_METHOD_AUTHENTICATOR_RESPONSE_NONE +} EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION; + +typedef struct _EAP_METHOD_AUTHENTICATOR_RESULT +{ + BOOL fIsSuccess; + DWORD dwFailureReason; + EAP_ATTRIBUTES* pAuthAttribs; +} EAP_METHOD_AUTHENTICATOR_RESULT; + +typedef +#ifdef __midl + [v1_enum] +#endif +enum tagEapPeerMethodResponseAction +{ + // Discard the request as EAP cannot use it. + EapPeerMethodResponseActionDiscard = 0, + // Send the packet to the authenticator + EapPeerMethodResponseActionSend, + // Respond to EAP by acting on the returned attributes + EapPeerMethodResponseActionResult, + // Invoke appropriate UI based on the context + EapPeerMethodResponseActionInvokeUI, + // The supplicant needs to take an action based on the context. + EapPeerMethodResponseActionRespond, + // The supplicant needs to take no action at all. + EapPeerMethodResponseActionNone +} EapPeerMethodResponseAction; + +// Structures used by EAP methods on the peer to communicate with the host. + +typedef struct tagEapPeerMethodOuput +{ + //EapPeerMethodDecision decision; + //EapPeerMethodState state; + EapPeerMethodResponseAction action; + BOOL fAllowNotifications; +} EapPeerMethodOutput; + +// ENUMERATIONS USED by EAP methods on the peer to communicate their status to +// EapHost. + +typedef +#ifdef __midl + [v1_enum] +#endif +enum tagEapPeerMethodResultReason +{ + EapPeerMethodResultUnknown = 1, + EapPeerMethodResultSuccess, + EapPeerMethodResultFailure +} EapPeerMethodResultReason, EapPeerMethodResultReasonOle; + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAPAUTHENTICATORACTIONDEFINE_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/EapHostError.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EapHostError.h new file mode 100644 index 0000000000000000000000000000000000000000..abdbfa89fc9265f263bd5335ddd8c2831a4731dc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EapHostError.h @@ -0,0 +1,355 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Scenario-specific error codes, reported by EapHost and Eap Method DLLs. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAPHOSTERROR_H +#define EAPHOSTERROR_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#define FACILITY_EAP_MESSAGE 0x0842 // 66L + MessageId bit + + +// Errors common across different groups. +#define _EAP_CERT_FIRST (+ 0x0) +#define _EAP_CERT_LAST (+ 0xF) + +#define _EAP_CERT_NOT_FOUND (+ 0x1) +#define _EAP_CERT_INVALID (+ 0x2) +#define _EAP_CERT_EXPIRED (+ 0x3) +#define _EAP_CERT_REVOKED (+ 0x4) +#define _EAP_CERT_OTHER_ERROR (+ 0x5) +#define _EAP_CERT_REJECTED (+ 0x6) +#define _EAP_CERT_NAME_REQUIRED (+ 0x7) + +#define _EAP_GENERAL_FIRST (+ 0x10) // (+16) +#define _EAP_GENERAL_LAST (+ 0x3F) // (+31) + +// +// Individual groups of Eap-related Errors. +// + +#define EAP_GROUP_MASK 0x0000FF00L + + +#define EAP_E_EAPHOST_FIRST 0x80420000L +#define EAP_E_EAPHOST_LAST 0x804200FFL +#define EAP_I_EAPHOST_FIRST 0x80420000L +#define EAP_I_EAPHOST_LAST 0x804200FFL + +// Cert-Store can't be accessed on either authenticator or peer +#define EAP_E_CERT_STORE_INACCESSIBLE 0x80420010 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 0) + +// Requested EAP-method is not installed +#define EAP_E_EAPHOST_METHOD_NOT_INSTALLED 0x80420011 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 1) + +// +#define EAP_E_EAPHOST_THIRDPARTY_METHOD_HOST_RESET 0x80420012 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 2) + +// EAPHost not able to communicate with EAPQEC on a NAP enabled client +#define EAP_E_EAPHOST_EAPQEC_INACCESSIBLE 0x80420013 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 3) + +// EAPHost returns this error, if the authenticator fails the authentication after peer sent its identity +#define EAP_E_EAPHOST_IDENTITY_UNKNOWN 0x80420014 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 4) + +// EAPHost returns this error on authentication failure. +#define EAP_E_AUTHENTICATION_FAILED 0x80420015 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 5) + +// EAPHost returns this error, when the client & the server aren't configured with compatible EAP-types. +#define EAP_I_EAPHOST_EAP_NEGOTIATION_FAILED 0x40420016 // (EAP_I_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 6) + +// EAPMethod received an EAP packet that can not be processed +#define EAP_E_EAPHOST_METHOD_INVALID_PACKET 0x80420017 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 7) + +// EAPHost received a packet that can not be processed. +#define EAP_E_EAPHOST_REMOTE_INVALID_PACKET 0x80420018 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 8) + +// EAPHost ConfigSchema validation failed +#define EAP_E_EAPHOST_XML_MALFORMED 0x80420019 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 9) + +//Method doesn't support SSO for the provided config +#define EAP_E_METHOD_CONFIG_DOES_NOT_SUPPORT_SSO 0x8042001A // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + A) + +// EAPHost returns this error, when a configured EAP-method does not support a requested operation (procedure call) +#define EAP_E_EAPHOST_METHOD_OPERATION_NOT_SUPPORTED 0x80420020 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 10) + + +#define EAP_E_USER_FIRST 0x80420100L +#define EAP_E_USER_LAST 0x804201FFL +#define EAP_I_USER_FIRST 0x40420100L +#define EAP_I_USER_LAST 0x404201FFL + +// EAPHost could not find user-certificate for authentication +#define EAP_E_USER_CERT_NOT_FOUND 0x80420100 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND) + +// user-cert being user for authentication does not have proper usage (EKU) set +#define EAP_E_USER_CERT_INVALID 0x80420101 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID) + +// EAPhost found user-cert which has expired already +#define EAP_E_USER_CERT_EXPIRED 0x80420102 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_EXPIRED) + +// user-cert being used for authentication has been revoked +#define EAP_E_USER_CERT_REVOKED 0x80420103 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_REVOKED) + +// unknown error occured with user-cert being used for authentication +#define EAP_E_USER_CERT_OTHER_ERROR 0x80420104 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_OTHER_ERROR) + +// Authenticator rejected user-cert for authentication +#define EAP_E_USER_CERT_REJECTED 0x80420105 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_REJECTED) + +// Received EAP-Failure after Identity exchange: There is likely a problem with the authenticating user's account. +#define EAP_I_USER_ACCOUNT_OTHER_ERROR 0x40420110 // (EAP_I_USER_FIRST + _EAP_GENERAL_FIRST + 0 + +// Authenticator rejected user credentials for authentication +#define EAP_E_USER_CREDENTIALS_REJECTED 0x80420111 // (EAP_E_USER_FIRST + _EAP_GENERAL_FIRST + 1) + +// Authenticator rejected user credentials for authentication +#define EAP_E_USER_NAME_PASSWORD_REJECTED 0x80420112 // (EAP_E_USER_FIRST + _EAP_GENERAL_FIRST + 2) + +//No Smart Card Reader Present +#define EAP_E_NO_SMART_CARD_READER 0x80420113 // (EAP_E_USER_FIRST + _EAP_GENERAL_FIRST + 3) + + +#define EAP_E_SERVER_FIRST 0x80420200L +#define EAP_E_SERVER_LAST 0x804202FFL + +// EAPHost could not find server-certificate for authentication +#define EAP_E_SERVER_CERT_NOT_FOUND 0x80420200 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND) + +// server-cert being user for authentication does not have proper usage (EKU) set +#define EAP_E_SERVER_CERT_INVALID 0x80420201 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID) + +// EAPhost found server-cert which has expired already +#define EAP_E_SERVER_CERT_EXPIRED 0x80420202 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_EXPIRED) + +// server-cert being used for authentication has been revoked +#define EAP_E_SERVER_CERT_REVOKED 0x80420203 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_REVOKED) + +// unknown error occured with server-cert being used for authentication +#define EAP_E_SERVER_CERT_OTHER_ERROR 0x80420204 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_OTHER_ERROR) + + +#define EAP_E_USER_ROOT_CERT_FIRST 0x80420300L +#define EAP_E_USER_ROOT_CERT_LAST 0x804203FFL + + +// EAPHost could not find a certificate in trusted-root cert-store for user cert velidation +#define EAP_E_USER_ROOT_CERT_NOT_FOUND 0x80420300 // (EAP_E_USER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND) + +// The authentication failed because the root certificate used for this network is invalid +#define EAP_E_USER_ROOT_CERT_INVALID 0x80420301 // (EAP_E_USER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID) + +// Trusted root certificate needed for user-cert validation has been expired. +#define EAP_E_USER_ROOT_CERT_EXPIRED 0x80420302 // (EAP_E_USER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_EXPIRED) + +#define EAP_E_SERVER_ROOT_CERT_FIRST 0x80420400L +#define EAP_E_SERVER_ROOT_CERT_LAST 0x804204FFL + +// EAPHost could not find a Root certificate in trusted-root cert-store for server cert velidation +#define EAP_E_SERVER_ROOT_CERT_NOT_FOUND 0x80420400 // (EAP_E_SERVER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND) + +// The authentication failed because the server certificate required for this network on the server computer is invalid +#define EAP_E_SERVER_ROOT_CERT_INVALID 0x80420401 // (EAP_E_SERVER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID) + +// The authentication failed because the certificate on the server computer does not have a server name specified +#define EAP_E_SERVER_ROOT_CERT_NAME_REQUIRED 0x80420406 // (EAP_E_SERVER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NAME_REQUIRED) + +// The authentication failed because there is no valid SIM for authentication +#define EAP_E_SIM_NOT_VALID 0x80420500 + +// Alternate names for certain errors. +#define EAP_METHOD_INVALID_PACKET EAP_E_EAPHOST_METHOD_INVALID_PACKET +#define EAP_INVALID_PACKET EAP_E_EAPHOST_REMOTE_INVALID_PACKET + +// This is not a fixed GUID when it reaches supplicant, but 1st portion will be +// filled by Generic Win32/Ras error. This helps create unique GUID for every +// unique error that we don't understand. This helps collect SQM data. +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Default \ + = { 0x00000000, 0x0000, 0x0000, 0, 0, 0, 0, 0, 0, 0, 0 }; + + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_MethodDLLNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 1 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactSysadmin \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 2 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_CertStoreInaccessible \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 4 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Generic_AuthFailure \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 4 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_IdentityUnknown \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 2, 4 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_SimNotValid \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 3, 4 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertExpired \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 5 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertInvalid \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 6 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 7 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertRevoked \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 8 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertOtherError \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 8 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertExpired \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 9 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertInvalid \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xA } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xB } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertOtherError \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xC } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertRejected \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xD } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertRevoked \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xE } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Account_OtherProblem \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 0xE } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CredsRejected \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 2, 0xE } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Root_CertExpired \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xF } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Root_CertInvalid \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x10 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Root_CertNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x11 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_Root_CertNameRequired \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x12 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_Root_CertNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 0x12 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_ThirdPartyMethod_Host_Reset \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 2, 0x12 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_EapQecInaccessible \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 3, 0x12 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_Server_ClientSelectServerCert \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x18 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_User_AuthFailure \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x19 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_User_GetNewCert \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1A } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_User_SelectValidCert \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1B } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_Retry_Authentication \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 0x1B } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_EapNegotiationFailed \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1C } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_XmlMalformed \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1D } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_MethodDoesNotSupportOperation \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1E } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_AuthFailure \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1F } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_IdentityUnknown \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x20 }}; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_NegotiationFailed \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x21}}; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_MethodNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x22} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_RestartNap \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x23} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_CertStoreInaccessible \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x24} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_InvalidUserAccount \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x25} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_RootCertInvalid \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x26} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_RootCertNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x27} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_RootExpired \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x28} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_CertNameAbsent \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x29} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_NoSmartCardReader \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2A} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_No_SmartCardReader_Found \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2B }}; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_InvalidUserCert \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2C }}; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_Method_Not_Support_Sso \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2D }}; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_No_ValidSim_Found \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2E }}; + + EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Help_ObtainingCerts \ + = { 0xf535eea3, 0x1bdd, 0x46ca, { 0xa2, 0xfc, 0xa6, 0x65, 0x59, 0x39, 0xb7, 0xe8 } }; + +// This currently is a generic networking troubleshooting help page, not EAP specific. +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Help_Troubleshooting \ + = { 0x33307acf, 0x0698, 0x41ba, { 0xb0, 0x14, 0xea, 0x0a, 0x2e, 0xb8, 0xd0, 0xa8 } }; + +// This is used when the method does not supportSSO for provided config. +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Method_Config_Does_Not_Support_Sso \ + = { 0xda18bd32, 0x004F, 0x41fa, { 0xae, 0x08, 0x0b, 0xc8, 0x5e, 0x58, 0x45, 0xac } }; + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAPHOSTERROR_H + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/EapHostPeerTypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EapHostPeerTypes.h new file mode 100644 index 0000000000000000000000000000000000000000..db59999f75fc0b354a811c789ab94a47aab59416 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EapHostPeerTypes.h @@ -0,0 +1,158 @@ +//////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. +// +// SYNOPSIS +// +// IDL source for interaction with EAPHost supplicants. +// +//////////////////////////////////////////////////////////// + +#ifndef EAPHOSTPEERTYPES_H +#define EAPHOSTPEERTYPES_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// Request to provide guest access. +#define EAP_PEER_FLAG_GUEST_ACCESS 0x00000040 + +typedef +#ifdef __midl + [v1_enum] +#endif + + +// Possible reasons for which EAP-method can call getResult from EAPhost +enum tagEapHostPeerMethodResultReason +{ + // if method has obtained success from some + EapHostPeerMethodResultAltSuccessReceived = 1, + + // method timedout waiting for response + EapHostPeerMethodResultTimeout, + + // normal completion of authentication process + EapHostPeerMethodResultFromMethod +} EapHostPeerMethodResultReason; + + +typedef +#ifdef __midl + [v1_enum] +#endif +enum tagEapHostPeerResponseAction +{ + // Discard the request as EAP cannot use it. + EapHostPeerResponseDiscard = 0, + // Send the packet to the authenticator + EapHostPeerResponseSend, + // Respond to EAP by acting on the returned attributes + EapHostPeerResponseResult, + // Invoke appropriate UI based on the context + EapHostPeerResponseInvokeUi, + // Display a string to the user received as part of a notification + // request + // EapHostPeerResponseNotification, + // The supplicant needs to take an action based on the context. + EapHostPeerResponseRespond, + // The supplicant needs to restart authentication with the same session. + //EapHostPeerResponseResetAuthentication, + // The session could not be found. So the supplicant either needs to + // start session again with the same packet or discard the packet. + EapHostPeerResponseStartAuthentication, + // The supplicant needs to take no action at all. + EapHostPeerResponseNone +} EapHostPeerResponseAction; + + +typedef +#ifdef __midl + [v1_enum] +#endif +enum tagEapHostPeerAuthParams { + EapHostPeerAuthStatus = 1, // current auth status + EapHostPeerIdentity, // obtain the inner method id + EapHostPeerIdentityExtendedInfo, // obtained from Identity packet + // This includes NLA information for wireless + EapHostNapInfo //obtain the Nap details +} EapHostPeerAuthParams; + + +typedef +#ifdef __midl + [v1_enum] +#endif + +// possible values for EAP status during authentication process +enum _EAPHOST_AUTH_STATUS +{ + EapHostInvalidSession = 0, + EapHostAuthNotStarted, + EapHostAuthIdentityExchange, + EapHostAuthNegotiatingType, + EapHostAuthInProgress, + EapHostAuthSucceeded, + EapHostAuthFailed +} EAPHOST_AUTH_STATUS; + + +// describes the current authentication info through different stages +// of EAP authentication process. +typedef struct _EAPHOST_AUTH_INFO +{ + EAPHOST_AUTH_STATUS status; + DWORD dwErrorCode; + DWORD dwReasonCode; +} EAPHOST_AUTH_INFO; + + +// Describes the isolation state of a machine, i.e. +// whether connectivity is affected. +typedef +#ifdef __midl + [v1_enum] +#endif +enum _ISOLATION_STATE +{ + ISOLATION_STATE_UNKNOWN = 0, + ISOLATION_STATE_NOT_RESTRICTED = 1, + ISOLATION_STATE_IN_PROBATION = 2, + ISOLATION_STATE_RESTRICTED_ACCESS = 3 +} ISOLATION_STATE; + +// This carries the result information passed from EAPHost to EAP-method, +// when EAP-method calls GetResult +typedef struct tagEapHostPeerMethodResult +{ + BOOL fIsSuccess; + UINT32 dwFailureReasonCode; + BOOL fSaveConnectionData; + UINT32 dwSizeofConnectionData; +#ifdef __midl + [size_is(dwSizeofConnectionData)] BYTE* pConnectionData; +#else + BYTE* pConnectionData; +#endif + BOOL fSaveUserData; + UINT32 dwSizeofUserData; +#ifdef __midl + [size_is(dwSizeofUserData)] BYTE* pUserData; +#else + BYTE* pUserData; +#endif + EAP_ATTRIBUTES* pAttribArray; + ISOLATION_STATE isolationState; + EAP_METHOD_INFO* pEapMethodInfo; + EAP_ERROR* pEapError; +} EapHostPeerMethodResult; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //EAPHOSTPEERTYPES_IDL + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.h new file mode 100644 index 0000000000000000000000000000000000000000..f9f654c0968ba16a2c8a5af3bac4053fcc2ee676 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.h @@ -0,0 +1,776 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __editionupgradehelper_h__ +#define __editionupgradehelper_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEditionUpgradeHelper_FWD_DEFINED__ +#define __IEditionUpgradeHelper_FWD_DEFINED__ +typedef interface IEditionUpgradeHelper IEditionUpgradeHelper; + +#endif /* __IEditionUpgradeHelper_FWD_DEFINED__ */ + + +#ifndef __IWindowsLockModeHelper_FWD_DEFINED__ +#define __IWindowsLockModeHelper_FWD_DEFINED__ +typedef interface IWindowsLockModeHelper IWindowsLockModeHelper; + +#endif /* __IWindowsLockModeHelper_FWD_DEFINED__ */ + + +#ifndef __IEditionUpgradeBroker_FWD_DEFINED__ +#define __IEditionUpgradeBroker_FWD_DEFINED__ +typedef interface IEditionUpgradeBroker IEditionUpgradeBroker; + +#endif /* __IEditionUpgradeBroker_FWD_DEFINED__ */ + + +#ifndef __IContainerActivationHelper_FWD_DEFINED__ +#define __IContainerActivationHelper_FWD_DEFINED__ +typedef interface IContainerActivationHelper IContainerActivationHelper; + +#endif /* __IContainerActivationHelper_FWD_DEFINED__ */ + + +#ifndef __IClipServiceNotificationHelper_FWD_DEFINED__ +#define __IClipServiceNotificationHelper_FWD_DEFINED__ +typedef interface IClipServiceNotificationHelper IClipServiceNotificationHelper; + +#endif /* __IClipServiceNotificationHelper_FWD_DEFINED__ */ + + +#ifndef __IFClipNotificationHelper_FWD_DEFINED__ +#define __IFClipNotificationHelper_FWD_DEFINED__ +typedef interface IFClipNotificationHelper IFClipNotificationHelper; + +#endif /* __IFClipNotificationHelper_FWD_DEFINED__ */ + + +#ifndef __EditionUpgradeHelper_FWD_DEFINED__ +#define __EditionUpgradeHelper_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EditionUpgradeHelper EditionUpgradeHelper; +#else +typedef struct EditionUpgradeHelper EditionUpgradeHelper; +#endif /* __cplusplus */ + +#endif /* __EditionUpgradeHelper_FWD_DEFINED__ */ + + +#ifndef __EditionUpgradeBroker_FWD_DEFINED__ +#define __EditionUpgradeBroker_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EditionUpgradeBroker EditionUpgradeBroker; +#else +typedef struct EditionUpgradeBroker EditionUpgradeBroker; +#endif /* __cplusplus */ + +#endif /* __EditionUpgradeBroker_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_editionupgradehelper_0000_0000 */ +/* [local] */ + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0000_v0_0_s_ifspec; + +#ifndef __IEditionUpgradeHelper_INTERFACE_DEFINED__ +#define __IEditionUpgradeHelper_INTERFACE_DEFINED__ + +/* interface IEditionUpgradeHelper */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IEditionUpgradeHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D3E9E342-5DEB-43B6-849E-6913B85D503A") + IEditionUpgradeHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CanUpgrade( + /* [out] */ __RPC__out BOOL *isAllowed) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateOperatingSystem( + /* [string][in] */ __RPC__in_string LPCWSTR contentId) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowProductKeyUI( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOsProductContentId( + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *contentId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGenuineLocalStatus( + /* [out] */ __RPC__out BOOL *isGenuine) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEditionUpgradeHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEditionUpgradeHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEditionUpgradeHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEditionUpgradeHelper * This); + + DECLSPEC_XFGVIRT(IEditionUpgradeHelper, CanUpgrade) + HRESULT ( STDMETHODCALLTYPE *CanUpgrade )( + __RPC__in IEditionUpgradeHelper * This, + /* [out] */ __RPC__out BOOL *isAllowed); + + DECLSPEC_XFGVIRT(IEditionUpgradeHelper, UpdateOperatingSystem) + HRESULT ( STDMETHODCALLTYPE *UpdateOperatingSystem )( + __RPC__in IEditionUpgradeHelper * This, + /* [string][in] */ __RPC__in_string LPCWSTR contentId); + + DECLSPEC_XFGVIRT(IEditionUpgradeHelper, ShowProductKeyUI) + HRESULT ( STDMETHODCALLTYPE *ShowProductKeyUI )( + __RPC__in IEditionUpgradeHelper * This); + + DECLSPEC_XFGVIRT(IEditionUpgradeHelper, GetOsProductContentId) + HRESULT ( STDMETHODCALLTYPE *GetOsProductContentId )( + __RPC__in IEditionUpgradeHelper * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *contentId); + + DECLSPEC_XFGVIRT(IEditionUpgradeHelper, GetGenuineLocalStatus) + HRESULT ( STDMETHODCALLTYPE *GetGenuineLocalStatus )( + __RPC__in IEditionUpgradeHelper * This, + /* [out] */ __RPC__out BOOL *isGenuine); + + END_INTERFACE + } IEditionUpgradeHelperVtbl; + + interface IEditionUpgradeHelper + { + CONST_VTBL struct IEditionUpgradeHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEditionUpgradeHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEditionUpgradeHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEditionUpgradeHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEditionUpgradeHelper_CanUpgrade(This,isAllowed) \ + ( (This)->lpVtbl -> CanUpgrade(This,isAllowed) ) + +#define IEditionUpgradeHelper_UpdateOperatingSystem(This,contentId) \ + ( (This)->lpVtbl -> UpdateOperatingSystem(This,contentId) ) + +#define IEditionUpgradeHelper_ShowProductKeyUI(This) \ + ( (This)->lpVtbl -> ShowProductKeyUI(This) ) + +#define IEditionUpgradeHelper_GetOsProductContentId(This,contentId) \ + ( (This)->lpVtbl -> GetOsProductContentId(This,contentId) ) + +#define IEditionUpgradeHelper_GetGenuineLocalStatus(This,isGenuine) \ + ( (This)->lpVtbl -> GetGenuineLocalStatus(This,isGenuine) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEditionUpgradeHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IWindowsLockModeHelper_INTERFACE_DEFINED__ +#define __IWindowsLockModeHelper_INTERFACE_DEFINED__ + +/* interface IWindowsLockModeHelper */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IWindowsLockModeHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F342D19E-CC22-4648-BB5D-03CCF75B47C5") + IWindowsLockModeHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSMode( + /* [out] */ __RPC__out BOOL *isSmode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWindowsLockModeHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWindowsLockModeHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWindowsLockModeHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWindowsLockModeHelper * This); + + DECLSPEC_XFGVIRT(IWindowsLockModeHelper, GetSMode) + HRESULT ( STDMETHODCALLTYPE *GetSMode )( + __RPC__in IWindowsLockModeHelper * This, + /* [out] */ __RPC__out BOOL *isSmode); + + END_INTERFACE + } IWindowsLockModeHelperVtbl; + + interface IWindowsLockModeHelper + { + CONST_VTBL struct IWindowsLockModeHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWindowsLockModeHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWindowsLockModeHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWindowsLockModeHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWindowsLockModeHelper_GetSMode(This,isSmode) \ + ( (This)->lpVtbl -> GetSMode(This,isSmode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWindowsLockModeHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IEditionUpgradeBroker_INTERFACE_DEFINED__ +#define __IEditionUpgradeBroker_INTERFACE_DEFINED__ + +/* interface IEditionUpgradeBroker */ +/* [unique][helpstring][oleautomation][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEditionUpgradeBroker; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FF19CBCF-9455-4937-B872-6B7929A460AF") + IEditionUpgradeBroker : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeParentWindow( + /* [in] */ OLE_HANDLE parentHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateOperatingSystem( + /* [string][in] */ __RPC__in_string BSTR parameter) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowProductKeyUI( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CanUpgrade( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEditionUpgradeBrokerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEditionUpgradeBroker * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEditionUpgradeBroker * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEditionUpgradeBroker * This); + + DECLSPEC_XFGVIRT(IEditionUpgradeBroker, InitializeParentWindow) + HRESULT ( STDMETHODCALLTYPE *InitializeParentWindow )( + __RPC__in IEditionUpgradeBroker * This, + /* [in] */ OLE_HANDLE parentHandle); + + DECLSPEC_XFGVIRT(IEditionUpgradeBroker, UpdateOperatingSystem) + HRESULT ( STDMETHODCALLTYPE *UpdateOperatingSystem )( + __RPC__in IEditionUpgradeBroker * This, + /* [string][in] */ __RPC__in_string BSTR parameter); + + DECLSPEC_XFGVIRT(IEditionUpgradeBroker, ShowProductKeyUI) + HRESULT ( STDMETHODCALLTYPE *ShowProductKeyUI )( + __RPC__in IEditionUpgradeBroker * This); + + DECLSPEC_XFGVIRT(IEditionUpgradeBroker, CanUpgrade) + HRESULT ( STDMETHODCALLTYPE *CanUpgrade )( + __RPC__in IEditionUpgradeBroker * This); + + END_INTERFACE + } IEditionUpgradeBrokerVtbl; + + interface IEditionUpgradeBroker + { + CONST_VTBL struct IEditionUpgradeBrokerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEditionUpgradeBroker_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEditionUpgradeBroker_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEditionUpgradeBroker_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEditionUpgradeBroker_InitializeParentWindow(This,parentHandle) \ + ( (This)->lpVtbl -> InitializeParentWindow(This,parentHandle) ) + +#define IEditionUpgradeBroker_UpdateOperatingSystem(This,parameter) \ + ( (This)->lpVtbl -> UpdateOperatingSystem(This,parameter) ) + +#define IEditionUpgradeBroker_ShowProductKeyUI(This) \ + ( (This)->lpVtbl -> ShowProductKeyUI(This) ) + +#define IEditionUpgradeBroker_CanUpgrade(This) \ + ( (This)->lpVtbl -> CanUpgrade(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEditionUpgradeBroker_INTERFACE_DEFINED__ */ + + +#ifndef __IContainerActivationHelper_INTERFACE_DEFINED__ +#define __IContainerActivationHelper_INTERFACE_DEFINED__ + +/* interface IContainerActivationHelper */ +/* [uuid][nonextensible][oleautomation][dual][object] */ + + +EXTERN_C const IID IID_IContainerActivationHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B524F93F-80D5-4EC7-AE9E-D66E93ADE1FA") + IContainerActivationHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CanActivateClientVM( + /* [retval][out] */ __RPC__out VARIANT_BOOL *isAllowed) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContainerActivationHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContainerActivationHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContainerActivationHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContainerActivationHelper * This); + + DECLSPEC_XFGVIRT(IContainerActivationHelper, CanActivateClientVM) + HRESULT ( STDMETHODCALLTYPE *CanActivateClientVM )( + __RPC__in IContainerActivationHelper * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *isAllowed); + + END_INTERFACE + } IContainerActivationHelperVtbl; + + interface IContainerActivationHelper + { + CONST_VTBL struct IContainerActivationHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContainerActivationHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContainerActivationHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContainerActivationHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContainerActivationHelper_CanActivateClientVM(This,isAllowed) \ + ( (This)->lpVtbl -> CanActivateClientVM(This,isAllowed) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContainerActivationHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IClipServiceNotificationHelper_INTERFACE_DEFINED__ +#define __IClipServiceNotificationHelper_INTERFACE_DEFINED__ + +/* interface IClipServiceNotificationHelper */ +/* [uuid][nonextensible][oleautomation][dual][object] */ + + +EXTERN_C const IID IID_IClipServiceNotificationHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C39948F0-6142-44FD-98CA-E1681A8D68B5") + IClipServiceNotificationHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ShowToast( + /* [string][in] */ __RPC__in_string BSTR titleText, + /* [string][in] */ __RPC__in_string BSTR bodyText, + /* [string][in] */ __RPC__in_string BSTR packageName, + /* [string][in] */ __RPC__in_string BSTR appId, + /* [string][in] */ __RPC__in_string BSTR launchCommand) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IClipServiceNotificationHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IClipServiceNotificationHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IClipServiceNotificationHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IClipServiceNotificationHelper * This); + + DECLSPEC_XFGVIRT(IClipServiceNotificationHelper, ShowToast) + HRESULT ( STDMETHODCALLTYPE *ShowToast )( + __RPC__in IClipServiceNotificationHelper * This, + /* [string][in] */ __RPC__in_string BSTR titleText, + /* [string][in] */ __RPC__in_string BSTR bodyText, + /* [string][in] */ __RPC__in_string BSTR packageName, + /* [string][in] */ __RPC__in_string BSTR appId, + /* [string][in] */ __RPC__in_string BSTR launchCommand); + + END_INTERFACE + } IClipServiceNotificationHelperVtbl; + + interface IClipServiceNotificationHelper + { + CONST_VTBL struct IClipServiceNotificationHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IClipServiceNotificationHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IClipServiceNotificationHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IClipServiceNotificationHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IClipServiceNotificationHelper_ShowToast(This,titleText,bodyText,packageName,appId,launchCommand) \ + ( (This)->lpVtbl -> ShowToast(This,titleText,bodyText,packageName,appId,launchCommand) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IClipServiceNotificationHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IFClipNotificationHelper_INTERFACE_DEFINED__ +#define __IFClipNotificationHelper_INTERFACE_DEFINED__ + +/* interface IFClipNotificationHelper */ +/* [uuid][nonextensible][oleautomation][dual][object] */ + + +EXTERN_C const IID IID_IFClipNotificationHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3D5E3D21-BD41-4C2A-A669-B17CE87FB50B") + IFClipNotificationHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ShowSystemDialog( + /* [string][in] */ __RPC__in_string BSTR titleText, + /* [string][in] */ __RPC__in_string BSTR bodyText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFClipNotificationHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFClipNotificationHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFClipNotificationHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFClipNotificationHelper * This); + + DECLSPEC_XFGVIRT(IFClipNotificationHelper, ShowSystemDialog) + HRESULT ( STDMETHODCALLTYPE *ShowSystemDialog )( + __RPC__in IFClipNotificationHelper * This, + /* [string][in] */ __RPC__in_string BSTR titleText, + /* [string][in] */ __RPC__in_string BSTR bodyText); + + END_INTERFACE + } IFClipNotificationHelperVtbl; + + interface IFClipNotificationHelper + { + CONST_VTBL struct IFClipNotificationHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFClipNotificationHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFClipNotificationHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFClipNotificationHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFClipNotificationHelper_ShowSystemDialog(This,titleText,bodyText) \ + ( (This)->lpVtbl -> ShowSystemDialog(This,titleText,bodyText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFClipNotificationHelper_INTERFACE_DEFINED__ */ + + + +#ifndef __EditionUpgradeHelperLib_LIBRARY_DEFINED__ +#define __EditionUpgradeHelperLib_LIBRARY_DEFINED__ + +/* library EditionUpgradeHelperLib */ +/* [version][uuid] */ + + +EXTERN_C const IID LIBID_EditionUpgradeHelperLib; + +EXTERN_C const CLSID CLSID_EditionUpgradeHelper; + +#ifdef __cplusplus + +class DECLSPEC_UUID("01776DF3-B9AF-4E50-9B1C-56E93116D704") +EditionUpgradeHelper; +#endif + +EXTERN_C const CLSID CLSID_EditionUpgradeBroker; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4270827-4F39-45DF-9288-12FF6B85A921") +EditionUpgradeBroker; +#endif +#endif /* __EditionUpgradeHelperLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_editionupgradehelper_0000_0007 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.idl new file mode 100644 index 0000000000000000000000000000000000000000..1eee2925e2b6210dac98eb7dc0557c3ed9e75c64 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.idl @@ -0,0 +1,169 @@ +#pragma region Application Family + +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +import "ocidl.idl"; +import "objidl.idl"; +import "Oleidl.idl"; + +[ +object, +uuid(D3E9E342-5DEB-43B6-849E-6913B85D503A), +] +interface IEditionUpgradeHelper : IUnknown +{ + HRESULT + CanUpgrade( + [out] BOOL* isAllowed + ); + + HRESULT + UpdateOperatingSystem( + [in, string] LPCWSTR contentId + ); + + HRESULT + ShowProductKeyUI( + void + ); + + HRESULT + GetOsProductContentId( + [out, string] LPWSTR* contentId + ); + + HRESULT + GetGenuineLocalStatus( + [out] BOOL* isGenuine + ); +}; + +[ + object, + uuid(F342D19E-CC22-4648-BB5D-03CCF75B47C5) +] +interface IWindowsLockModeHelper: IUnknown +{ + + HRESULT + GetSMode( + [out] BOOL* isSmode + ); + +}; + + +[ + object, + uuid(FF19CBCF-9455-4937-B872-6B7929A460AF), + dual, + nonextensible, + oleautomation, + helpstring("IEditionUpgradeBroker Interface"), + pointer_default(unique) +] +interface IEditionUpgradeBroker: IUnknown +{ + HRESULT + InitializeParentWindow( + [in] OLE_HANDLE parentHandle + ); + + HRESULT + UpdateOperatingSystem( + [in, string] BSTR parameter + ); + + HRESULT + ShowProductKeyUI( + void + ); + + HRESULT + CanUpgrade( + void + ); + +}; + +[ +object, +dual, +oleautomation, +nonextensible, +uuid(B524F93F-80D5-4EC7-AE9E-D66E93ADE1FA) +] +interface IContainerActivationHelper: IUnknown +{ + HRESULT + CanActivateClientVM( + [out, retval] VARIANT_BOOL* isAllowed + ); +}; + +[ +object, +dual, +oleautomation, +nonextensible, +uuid(C39948F0-6142-44FD-98CA-E1681A8D68B5) +] +interface IClipServiceNotificationHelper: IUnknown +{ + HRESULT + ShowToast( + [in, string] BSTR titleText, + [in, string] BSTR bodyText, + [in, string] BSTR packageName, + [in, string] BSTR appId, + [in, string] BSTR launchCommand + ); +}; + +[ +object, +dual, +oleautomation, +nonextensible, +uuid(3D5E3D21-BD41-4C2A-A669-B17CE87FB50B) +] +interface IFClipNotificationHelper: IUnknown +{ + HRESULT + ShowSystemDialog( + [in, string] BSTR titleText, + [in, string] BSTR bodyText + ); +}; + +[ +uuid(09C6A793-92DC-4D27-A11D-3921C9314DED), +version(2.0), +] +library EditionUpgradeHelperLib +{ + [ + uuid(01776DF3-B9AF-4E50-9B1C-56E93116D704), + ] + coclass EditionUpgradeHelper + { + [default] interface IEditionUpgradeHelper; + interface IWindowsLockModeHelper; + } + + [ + uuid(C4270827-4F39-45DF-9288-12FF6B85A921), + version(2.0), + ] + coclass EditionUpgradeBroker + { + [default] interface IEditionUpgradeBroker; + interface IContainerActivationHelper; + interface IClipServiceNotificationHelper; + interface IFClipNotificationHelper; + } + +}; +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ElsCore.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ElsCore.h new file mode 100644 index 0000000000000000000000000000000000000000..3df390971e1b3b6f2713c9fd669c310e61cddfdc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ElsCore.h @@ -0,0 +1,212 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + ElsCore.h + +Abstract: + + This file contains macros/typedef/function prototypes that are common for ELS. + +--*/ + +#ifndef __ELS_CORE__ +#define __ELS_CORE__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +struct _MAPPING_PROPERTY_BAG; + +typedef void (CALLBACK* PFN_MAPPINGCALLBACKPROC)(struct _MAPPING_PROPERTY_BAG *pBag, LPVOID data, DWORD dwDataSize, HRESULT Result); + +// +// Service types constants used in MAPPING_ENUM_OPTIONS (ServiceType field) +// + +#define ALL_SERVICE_TYPES 0 +#define HIGHLEVEL_SERVICE_TYPES 1 +#define LOWLEVEL_SERVICE_TYPES 2 + +// +// Online service constants used in MAPPING_ENUM_OPTIONS (OnlineService field) +// +#define ALL_SERVICES 0 +#define ONLINE_SERVICES 1 +#define OFFLINE_SERVICES 2 + +// +// Public ELS structures +// + +typedef struct _MAPPING_SERVICE_INFO +{ + size_t Size; + LPWSTR pszCopyright; + WORD wMajorVersion; + WORD wMinorVersion; + WORD wBuildVersion; + WORD wStepVersion; + DWORD dwInputContentTypesCount; + LPWSTR *prgInputContentTypes; + DWORD dwOutputContentTypesCount; + LPWSTR *prgOutputContentTypes; + DWORD dwInputLanguagesCount; + LPWSTR *prgInputLanguages; + DWORD dwOutputLanguagesCount; + LPWSTR *prgOutputLanguages; + DWORD dwInputScriptsCount; + LPWSTR *prgInputScripts; + DWORD dwOutputScriptsCount; + LPWSTR *prgOutputScripts; + GUID guid; + LPWSTR pszCategory; + LPWSTR pszDescription; + DWORD dwPrivateDataSize; + LPVOID pPrivateData; + LPVOID pContext; + unsigned IsOneToOneLanguageMapping : 1; + unsigned HasSubservices : 1; + unsigned OnlineOnly : 1; + unsigned ServiceType : 2; +} MAPPING_SERVICE_INFO, *PMAPPING_SERVICE_INFO; + + +typedef struct _MAPPING_ENUM_OPTIONS +{ + size_t Size; + LPWSTR pszCategory; + LPWSTR pszInputLanguage; + LPWSTR pszOutputLanguage; + LPWSTR pszInputScript; + LPWSTR pszOutputScript; + LPWSTR pszInputContentType; + LPWSTR pszOutputContentType; + GUID *pGuid; + unsigned OnlineService : 2; + unsigned ServiceType : 2; +} MAPPING_ENUM_OPTIONS, *PMAPPING_ENUM_OPTIONS; + + +typedef struct _MAPPING_OPTIONS +{ + size_t Size; + LPWSTR pszInputLanguage; + LPWSTR pszOutputLanguage; + LPWSTR pszInputScript; + LPWSTR pszOutputScript; + LPWSTR pszInputContentType; + LPWSTR pszOutputContentType; + LPWSTR pszUILanguage; + PFN_MAPPINGCALLBACKPROC pfnRecognizeCallback; + LPVOID pRecognizeCallerData; + DWORD dwRecognizeCallerDataSize; + PFN_MAPPINGCALLBACKPROC pfnActionCallback; + LPVOID pActionCallerData; + DWORD dwActionCallerDataSize; + DWORD dwServiceFlag; + unsigned GetActionDisplayName : 1; +} MAPPING_OPTIONS, *PMAPPING_OPTIONS; + + +typedef struct _MAPPING_DATA_RANGE +{ + DWORD dwStartIndex; + DWORD dwEndIndex; + LPWSTR pszDescription; + DWORD dwDescriptionLength; + LPVOID pData; + DWORD dwDataSize; + LPWSTR pszContentType; + LPWSTR *prgActionIds; + DWORD dwActionsCount; + LPWSTR *prgActionDisplayNames; +} MAPPING_DATA_RANGE, *PMAPPING_DATA_RANGE; + + +typedef struct _MAPPING_PROPERTY_BAG +{ + size_t Size; + PMAPPING_DATA_RANGE prgResultRanges; + DWORD dwRangesCount; + LPVOID pServiceData; + DWORD dwServiceDataSize; + LPVOID pCallerData; + DWORD dwCallerDataSize; + LPVOID pContext; +} MAPPING_PROPERTY_BAG, *PMAPPING_PROPERTY_BAG; + + +// +// Public ELS APIs +// + +HRESULT +WINAPI +MappingGetServices( + _In_opt_ PMAPPING_ENUM_OPTIONS pOptions, + _Out_ PMAPPING_SERVICE_INFO *prgServices, + _Out_ DWORD *pdwServicesCount + ); + + +HRESULT +WINAPI +MappingFreeServices( + _In_ PMAPPING_SERVICE_INFO pServiceInfo + ); + + +HRESULT +WINAPI +MappingRecognizeText( + _In_ PMAPPING_SERVICE_INFO pServiceInfo, + _In_reads_(dwLength) LPCWSTR pszText, + _In_ DWORD dwLength, + _In_ DWORD dwIndex, + _In_opt_ PMAPPING_OPTIONS pOptions, + _Inout_ PMAPPING_PROPERTY_BAG pbag + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +HRESULT +WINAPI +MappingDoAction( + _Inout_ PMAPPING_PROPERTY_BAG pBag, + _In_ DWORD dwRangeIndex, + _In_ LPCWSTR pszActionId + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +HRESULT +WINAPI +MappingFreePropertyBag( + _In_ PMAPPING_PROPERTY_BAG pBag + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#ifdef __cplusplus +}; +#endif + +#endif // __ELS_CORE__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ElsSrvc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ElsSrvc.h new file mode 100644 index 0000000000000000000000000000000000000000..afaf784d88e0ad2114df81696e799a2a1f2a0272 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ElsSrvc.h @@ -0,0 +1,56 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + ElsCore.h + +Abstract: + + This file contains the GUIDs of the current ELS services and definitions for binary content. + +--*/ + +#ifndef __ELS_SRVC__ +#define __ELS_SRVC__ + +#include + +// {CF7E00B1-909B-4d95-A8F4-611F7C377702} +static const GUID ELS_GUID_LANGUAGE_DETECTION = + { 0xCF7E00B1, 0x909B, 0x4D95, { 0xA8, 0xF4, 0x61, 0x1F, 0x7C, 0x37, 0x77, 0x02 } }; + +// {2D64B439-6CAF-4f6b-B688-E5D0F4FAA7D7} +static const GUID ELS_GUID_SCRIPT_DETECTION = + { 0x2D64B439, 0x6CAF, 0x4F6B, { 0xB6, 0x88, 0xE5, 0xD0, 0xF4, 0xFA, 0xA7, 0xD7 } }; + +// {A3A8333B-F4FC-42f6-A0C4-0462FE7317CB} +static const GUID ELS_GUID_TRANSLITERATION_HANT_TO_HANS = + { 0xA3A8333B, 0xF4FC, 0x42f6, { 0xA0, 0xC4, 0x04, 0x62, 0xFE, 0x73, 0x17, 0xCB } }; + +// {3CACCDC8-5590-42dc-9A7B-B5A6B5B3B63B} +static const GUID ELS_GUID_TRANSLITERATION_HANS_TO_HANT = + { 0x3CACCDC8, 0x5590, 0x42dc, { 0x9A, 0x7B, 0xB5, 0xA6, 0xB5, 0xB3, 0xB6, 0x3B } }; + +// {D8B983B1-F8BF-4a2b-BCD5-5B5EA20613E1} +static const GUID ELS_GUID_TRANSLITERATION_MALAYALAM_TO_LATIN = + { 0xD8B983B1, 0xF8BF, 0x4a2b, { 0xBC, 0xD5, 0x5B, 0x5E, 0xA2, 0x06, 0x13, 0xE1 } }; + +// {C4A4DCFE-2661-4d02-9835-F48187109803} +static const GUID ELS_GUID_TRANSLITERATION_DEVANAGARI_TO_LATIN = + { 0xC4A4DCFE, 0x2661, 0x4d02, { 0x98, 0x35, 0xF4, 0x81, 0x87, 0x10, 0x98, 0x03 } }; + +// {3DD12A98-5AFD-4903-A13F-E17E6C0BFE01} +static const GUID ELS_GUID_TRANSLITERATION_CYRILLIC_TO_LATIN = + { 0x3DD12A98, 0x5AFD, 0x4903, { 0xA1, 0x3F, 0xE1, 0x7E, 0x6C, 0x0B, 0xFE, 0x01 } }; + +// {F4DFD825-91A4-489f-855E-9AD9BEE55727} +static const GUID ELS_GUID_TRANSLITERATION_BENGALI_TO_LATIN = + { 0xF4DFD825, 0x91A4, 0x489f, { 0x85, 0x5E, 0x9A, 0xD9, 0xBE, 0xE5, 0x57, 0x27 } }; + +// {4BA2A721-E43D-41b7-B330-536AE1E48863} +static const GUID ELS_GUID_TRANSLITERATION_HANGUL_DECOMPOSITION = + { 0x4BA2A721, 0xE43D, 0x41b7, { 0xB3, 0x30, 0x53, 0x6A, 0xE1, 0xE4, 0x88, 0x63 } }; + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/EmptyVC.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EmptyVC.h new file mode 100644 index 0000000000000000000000000000000000000000..f3a0ebb16297deae0323a1bf3fec0ff42eff28a6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EmptyVC.h @@ -0,0 +1,575 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __emptyvc_h__ +#define __emptyvc_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEmptyVolumeCacheCallBack_FWD_DEFINED__ +#define __IEmptyVolumeCacheCallBack_FWD_DEFINED__ +typedef interface IEmptyVolumeCacheCallBack IEmptyVolumeCacheCallBack; + +#endif /* __IEmptyVolumeCacheCallBack_FWD_DEFINED__ */ + + +#ifndef __IEmptyVolumeCache_FWD_DEFINED__ +#define __IEmptyVolumeCache_FWD_DEFINED__ +typedef interface IEmptyVolumeCache IEmptyVolumeCache; + +#endif /* __IEmptyVolumeCache_FWD_DEFINED__ */ + + +#ifndef __IEmptyVolumeCache2_FWD_DEFINED__ +#define __IEmptyVolumeCache2_FWD_DEFINED__ +typedef interface IEmptyVolumeCache2 IEmptyVolumeCache2; + +#endif /* __IEmptyVolumeCache2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "objidl.h" +#include "oleidl.h" +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_emptyvc_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// emptyvc.h +//=--------------------------------------------------------------------------= +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma comment(lib,"uuid.lib") + +//---------------------------------------------------------------------------= +// Empty Volume Cache Interfaces. + + + +// IEmptyVolumeCache Flags +#define EVCF_HASSETTINGS 0x0001 +#define EVCF_ENABLEBYDEFAULT 0x0002 +#define EVCF_REMOVEFROMLIST 0x0004 +#define EVCF_ENABLEBYDEFAULT_AUTO 0x0008 +#define EVCF_DONTSHOWIFZERO 0x0010 +#define EVCF_SETTINGSMODE 0x0020 +#define EVCF_OUTOFDISKSPACE 0x0040 +#define EVCF_USERCONSENTOBTAINED 0x0080 +#define EVCF_SYSTEMAUTORUN 0x0100 + +// IEmptyVolumeCacheCallBack Flags +#define EVCCBF_LASTNOTIFICATION 0x0001 + +//////////////////////////////////////////////////////////////////////////// +// Interface Definitions +#ifndef _LPEMPTYVOLUMECACHECALLBACK_DEFINED +#define _LPEMPTYVOLUMECACHECALLBACK_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0000_v0_0_s_ifspec; + +#ifndef __IEmptyVolumeCacheCallBack_INTERFACE_DEFINED__ +#define __IEmptyVolumeCacheCallBack_INTERFACE_DEFINED__ + +/* interface IEmptyVolumeCacheCallBack */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IEmptyVolumeCacheCallBack *LPEMPTYVOLUMECACHECALLBACK; + + +EXTERN_C const IID IID_IEmptyVolumeCacheCallBack; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6E793361-73C6-11D0-8469-00AA00442901") + IEmptyVolumeCacheCallBack : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ScanProgress( + /* [in] */ DWORDLONG dwlSpaceUsed, + /* [in] */ DWORD dwFlags, + /* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE PurgeProgress( + /* [in] */ DWORDLONG dwlSpaceFreed, + /* [in] */ DWORDLONG dwlSpaceToFree, + /* [in] */ DWORD dwFlags, + /* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEmptyVolumeCacheCallBackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEmptyVolumeCacheCallBack * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEmptyVolumeCacheCallBack * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEmptyVolumeCacheCallBack * This); + + DECLSPEC_XFGVIRT(IEmptyVolumeCacheCallBack, ScanProgress) + HRESULT ( STDMETHODCALLTYPE *ScanProgress )( + __RPC__in IEmptyVolumeCacheCallBack * This, + /* [in] */ DWORDLONG dwlSpaceUsed, + /* [in] */ DWORD dwFlags, + /* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus); + + DECLSPEC_XFGVIRT(IEmptyVolumeCacheCallBack, PurgeProgress) + HRESULT ( STDMETHODCALLTYPE *PurgeProgress )( + __RPC__in IEmptyVolumeCacheCallBack * This, + /* [in] */ DWORDLONG dwlSpaceFreed, + /* [in] */ DWORDLONG dwlSpaceToFree, + /* [in] */ DWORD dwFlags, + /* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus); + + END_INTERFACE + } IEmptyVolumeCacheCallBackVtbl; + + interface IEmptyVolumeCacheCallBack + { + CONST_VTBL struct IEmptyVolumeCacheCallBackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEmptyVolumeCacheCallBack_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEmptyVolumeCacheCallBack_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEmptyVolumeCacheCallBack_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEmptyVolumeCacheCallBack_ScanProgress(This,dwlSpaceUsed,dwFlags,pcwszStatus) \ + ( (This)->lpVtbl -> ScanProgress(This,dwlSpaceUsed,dwFlags,pcwszStatus) ) + +#define IEmptyVolumeCacheCallBack_PurgeProgress(This,dwlSpaceFreed,dwlSpaceToFree,dwFlags,pcwszStatus) \ + ( (This)->lpVtbl -> PurgeProgress(This,dwlSpaceFreed,dwlSpaceToFree,dwFlags,pcwszStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEmptyVolumeCacheCallBack_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_emptyvc_0000_0001 */ +/* [local] */ + +#endif +#ifndef _LPEMPTYVOLUMECACHE_DEFINED +#define _LPEMPTYVOLUMECACHE_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0001_v0_0_s_ifspec; + +#ifndef __IEmptyVolumeCache_INTERFACE_DEFINED__ +#define __IEmptyVolumeCache_INTERFACE_DEFINED__ + +/* interface IEmptyVolumeCache */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IEmptyVolumeCache *LPEMPTYVOLUMECACHE; + + +EXTERN_C const IID IID_IEmptyVolumeCache; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8FCE5227-04DA-11d1-A004-00805F8ABE06") + IEmptyVolumeCache : public IUnknown + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ HKEY hkRegKey, + /* [in] */ LPCWSTR pcwszVolume, + /* [out] */ LPWSTR *ppwszDisplayName, + /* [out] */ LPWSTR *ppwszDescription, + /* [out] */ DWORD *pdwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSpaceUsed( + /* [out] */ __RPC__out DWORDLONG *pdwlSpaceUsed, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb) = 0; + + virtual HRESULT STDMETHODCALLTYPE Purge( + /* [in] */ DWORDLONG dwlSpaceToFree, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowProperties( + /* [in] */ __RPC__in HWND hwnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE Deactivate( + /* [out] */ __RPC__out DWORD *pdwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEmptyVolumeCacheVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEmptyVolumeCache * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEmptyVolumeCache * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEmptyVolumeCache * This); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Initialize) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + IEmptyVolumeCache * This, + /* [in] */ HKEY hkRegKey, + /* [in] */ LPCWSTR pcwszVolume, + /* [out] */ LPWSTR *ppwszDisplayName, + /* [out] */ LPWSTR *ppwszDescription, + /* [out] */ DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, GetSpaceUsed) + HRESULT ( STDMETHODCALLTYPE *GetSpaceUsed )( + __RPC__in IEmptyVolumeCache * This, + /* [out] */ __RPC__out DWORDLONG *pdwlSpaceUsed, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Purge) + HRESULT ( STDMETHODCALLTYPE *Purge )( + __RPC__in IEmptyVolumeCache * This, + /* [in] */ DWORDLONG dwlSpaceToFree, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, ShowProperties) + HRESULT ( STDMETHODCALLTYPE *ShowProperties )( + __RPC__in IEmptyVolumeCache * This, + /* [in] */ __RPC__in HWND hwnd); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Deactivate) + HRESULT ( STDMETHODCALLTYPE *Deactivate )( + __RPC__in IEmptyVolumeCache * This, + /* [out] */ __RPC__out DWORD *pdwFlags); + + END_INTERFACE + } IEmptyVolumeCacheVtbl; + + interface IEmptyVolumeCache + { + CONST_VTBL struct IEmptyVolumeCacheVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEmptyVolumeCache_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEmptyVolumeCache_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEmptyVolumeCache_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEmptyVolumeCache_Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) \ + ( (This)->lpVtbl -> Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) ) + +#define IEmptyVolumeCache_GetSpaceUsed(This,pdwlSpaceUsed,picb) \ + ( (This)->lpVtbl -> GetSpaceUsed(This,pdwlSpaceUsed,picb) ) + +#define IEmptyVolumeCache_Purge(This,dwlSpaceToFree,picb) \ + ( (This)->lpVtbl -> Purge(This,dwlSpaceToFree,picb) ) + +#define IEmptyVolumeCache_ShowProperties(This,hwnd) \ + ( (This)->lpVtbl -> ShowProperties(This,hwnd) ) + +#define IEmptyVolumeCache_Deactivate(This,pdwFlags) \ + ( (This)->lpVtbl -> Deactivate(This,pdwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEmptyVolumeCache_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_emptyvc_0000_0002 */ +/* [local] */ + +#endif +#ifndef _LPEMPTYVOLUMECACHE2_DEFINED +#define _LPEMPTYVOLUMECACHE2_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0002_v0_0_s_ifspec; + +#ifndef __IEmptyVolumeCache2_INTERFACE_DEFINED__ +#define __IEmptyVolumeCache2_INTERFACE_DEFINED__ + +/* interface IEmptyVolumeCache2 */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IEmptyVolumeCache2 *LPEMPTYVOLUMECACHE2; + + +EXTERN_C const IID IID_IEmptyVolumeCache2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("02b7e3ba-4db3-11d2-b2d9-00c04f8eec8c") + IEmptyVolumeCache2 : public IEmptyVolumeCache + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE InitializeEx( + /* [in] */ HKEY hkRegKey, + /* [in] */ LPCWSTR pcwszVolume, + /* [in] */ LPCWSTR pcwszKeyName, + /* [out] */ LPWSTR *ppwszDisplayName, + /* [out] */ LPWSTR *ppwszDescription, + /* [out] */ LPWSTR *ppwszBtnText, + /* [out] */ DWORD *pdwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEmptyVolumeCache2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEmptyVolumeCache2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEmptyVolumeCache2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEmptyVolumeCache2 * This); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Initialize) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + IEmptyVolumeCache2 * This, + /* [in] */ HKEY hkRegKey, + /* [in] */ LPCWSTR pcwszVolume, + /* [out] */ LPWSTR *ppwszDisplayName, + /* [out] */ LPWSTR *ppwszDescription, + /* [out] */ DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, GetSpaceUsed) + HRESULT ( STDMETHODCALLTYPE *GetSpaceUsed )( + __RPC__in IEmptyVolumeCache2 * This, + /* [out] */ __RPC__out DWORDLONG *pdwlSpaceUsed, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Purge) + HRESULT ( STDMETHODCALLTYPE *Purge )( + __RPC__in IEmptyVolumeCache2 * This, + /* [in] */ DWORDLONG dwlSpaceToFree, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, ShowProperties) + HRESULT ( STDMETHODCALLTYPE *ShowProperties )( + __RPC__in IEmptyVolumeCache2 * This, + /* [in] */ __RPC__in HWND hwnd); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Deactivate) + HRESULT ( STDMETHODCALLTYPE *Deactivate )( + __RPC__in IEmptyVolumeCache2 * This, + /* [out] */ __RPC__out DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache2, InitializeEx) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *InitializeEx )( + IEmptyVolumeCache2 * This, + /* [in] */ HKEY hkRegKey, + /* [in] */ LPCWSTR pcwszVolume, + /* [in] */ LPCWSTR pcwszKeyName, + /* [out] */ LPWSTR *ppwszDisplayName, + /* [out] */ LPWSTR *ppwszDescription, + /* [out] */ LPWSTR *ppwszBtnText, + /* [out] */ DWORD *pdwFlags); + + END_INTERFACE + } IEmptyVolumeCache2Vtbl; + + interface IEmptyVolumeCache2 + { + CONST_VTBL struct IEmptyVolumeCache2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEmptyVolumeCache2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEmptyVolumeCache2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEmptyVolumeCache2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEmptyVolumeCache2_Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) \ + ( (This)->lpVtbl -> Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) ) + +#define IEmptyVolumeCache2_GetSpaceUsed(This,pdwlSpaceUsed,picb) \ + ( (This)->lpVtbl -> GetSpaceUsed(This,pdwlSpaceUsed,picb) ) + +#define IEmptyVolumeCache2_Purge(This,dwlSpaceToFree,picb) \ + ( (This)->lpVtbl -> Purge(This,dwlSpaceToFree,picb) ) + +#define IEmptyVolumeCache2_ShowProperties(This,hwnd) \ + ( (This)->lpVtbl -> ShowProperties(This,hwnd) ) + +#define IEmptyVolumeCache2_Deactivate(This,pdwFlags) \ + ( (This)->lpVtbl -> Deactivate(This,pdwFlags) ) + + +#define IEmptyVolumeCache2_InitializeEx(This,hkRegKey,pcwszVolume,pcwszKeyName,ppwszDisplayName,ppwszDescription,ppwszBtnText,pdwFlags) \ + ( (This)->lpVtbl -> InitializeEx(This,hkRegKey,pcwszVolume,pcwszKeyName,ppwszDisplayName,ppwszDescription,ppwszBtnText,pdwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEmptyVolumeCache2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_emptyvc_0000_0003 */ +/* [local] */ + +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ErrorRep.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ErrorRep.h new file mode 100644 index 0000000000000000000000000000000000000000..b3b706b1ccb20d7296aaeb39b3d57648a59b987d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ErrorRep.h @@ -0,0 +1,78 @@ +/****************************************************************************** + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + errorrep.h + +Abstract: + contains functions used to report errors to Microsoft + +******************************************************************************/ + +#ifndef __ERRORREP_H__ +#define __ERRORREP_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +typedef enum tagEFaultRepRetVal +{ + frrvOk = 0, + frrvOkManifest, + frrvOkQueued, + frrvErr, + frrvErrNoDW, + frrvErrTimeout, + frrvLaunchDebugger, + frrvOkHeadless, + frrvErrAnotherInstance, + frrvErrNoMemory, + frrvErrDoubleFault, +} EFaultRepRetVal; + +EFaultRepRetVal APIENTRY ReportFault(_In_ LPEXCEPTION_POINTERS pep, _In_ DWORD dwOpt); + +BOOL APIENTRY AddERExcludedApplicationA(_In_ LPCSTR szApplication); +BOOL APIENTRY AddERExcludedApplicationW(_In_ LPCWSTR wszApplication); + + +typedef EFaultRepRetVal (APIENTRY *pfn_REPORTFAULT)(_In_ LPEXCEPTION_POINTERS, _In_ DWORD); +typedef EFaultRepRetVal (APIENTRY *pfn_ADDEREXCLUDEDAPPLICATIONA)(_In_ LPCSTR); +typedef EFaultRepRetVal (APIENTRY *pfn_ADDEREXCLUDEDAPPLICATIONW)(_In_ LPCWSTR); + +#ifdef UNICODE +#define AddERExcludedApplication AddERExcludedApplicationW +#define pfn_ADDEREXCLUDEDAPPLICATION pfn_ADDEREXCLUDEDAPPLICATIONW +#else +#define AddERExcludedApplication AddERExcludedApplicationA +#define pfn_ADDEREXCLUDEDAPPLICATION pfn_ADDEREXCLUDEDAPPLICATIONA +#endif + +// +//+++++++++++++++++++++ Hang reporting api ++++++++++++++++++++++++++++++++ +// +HRESULT +WINAPI +WerReportHang( + _In_ HWND hwndHungApp, + _In_opt_ PCWSTR pwzHungApplicationName + ); + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/EvColl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EvColl.h new file mode 100644 index 0000000000000000000000000000000000000000..75c4bc628b6f2921039a83a55f83371111317cf4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EvColl.h @@ -0,0 +1,291 @@ +/*++ +Copyright (C) Microsoft Corporation. All rights reserved. + + +Module Name: + + evcoll.h + +Abstract: + + Event Collector API + +--*/ + + +#ifndef __EVCOLL_H__ +#define __EVCOLL_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" +{ +#endif + + +typedef HANDLE EC_HANDLE; +typedef HANDLE EC_OBJECT_ARRAY_PROPERTY_HANDLE; + + +// +// Access Control Permissions +// + +/*-------------------------------------------------------------------------- + Subscription Definitions + --------------------------------------------------------------------------*/ + +typedef enum _EC_SUBSCRIPTION_PROPERTY_ID +{ + EcSubscriptionEnabled = 0, // EcVarTypeBoolean + EcSubscriptionEventSources, // EcVarObjectArrayPropertyHandle + EcSubscriptionEventSourceAddress, // EcVarTypeString + EcSubscriptionEventSourceEnabled, // EcVarTypeBoolean + EcSubscriptionEventSourceUserName, // EcVarTypeString + EcSubscriptionEventSourcePassword, // EcVarTypeString + EcSubscriptionDescription, // EcVarTypeString + EcSubscriptionURI, // EcVarTypeString + EcSubscriptionConfigurationMode, // EcVarTypeUInt32, EC_SUBSCRIPTION_CONFIGURATION_MODE + EcSubscriptionExpires, // EcVarTypeDateTime + EcSubscriptionQuery, // EcVarTypeString + EcSubscriptionTransportName, // EcVarTypeString + EcSubscriptionTransportPort, // EcVarTypeUInt32 + EcSubscriptionDeliveryMode, // EcVarTypeUInt32, EC_SUBSCRIPTION_DELIVERY_MODE + EcSubscriptionDeliveryMaxItems, // EcVarTypeUInt32 + EcSubscriptionDeliveryMaxLatencyTime, // EcVarTypeUInt32 + EcSubscriptionHeartbeatInterval, // EcVarTypeUInt32 + EcSubscriptionLocale, // EcVarTypeString + EcSubscriptionContentFormat, // EcVarTypeUInt32, EC_SUBSCRIPTION_CONTENT_FORMAT + EcSubscriptionLogFile, // EcVarTypeString + EcSubscriptionPublisherName, // EcVarTypeString + EcSubscriptionCredentialsType, // EcVarTypeUInt32, EC_SUBSCRIPTION_CREDENTIALS_TYPE + EcSubscriptionCommonUserName, // EcVarTypeString + EcSubscriptionCommonPassword, // EcVarTypeString + EcSubscriptionHostName, // EcVarTypeString + EcSubscriptionReadExistingEvents, // EcVarTypeBoolean + EcSubscriptionDialect, // EcVarTypeString + EcSubscriptionType, // EcVarTypeUInt32, EC_SUBSCRIPTION_TYPE + EcSubscriptionAllowedIssuerCAs, // EcVarTypeString | EcArrayBitMask + EcSubscriptionAllowedSubjects, // EcVarTypeString | EcArrayBitMask + EcSubscriptionDeniedSubjects, // EcVarTypeString | EcArrayBitMask + EcSubscriptionAllowedSourceDomainComputers, // EcVarTypeString SDDL + EcSubscriptionPropertyIdEND +} EC_SUBSCRIPTION_PROPERTY_ID; + +typedef enum _EC_SUBSCRIPTION_CREDENTIALS_TYPE { + EcSubscriptionCredDefault = 0, + EcSubscriptionCredNegotiate, + EcSubscriptionCredDigest, + EcSubscriptionCredBasic, + EcSubscriptionCredLocalMachine +} EC_SUBSCRIPTION_CREDENTIALS_TYPE; + +typedef enum _EC_SUBSCRIPTION_TYPE { + EcSubscriptionTypeSourceInitiated = 0, + EcSubscriptionTypeCollectorInitiated = 1 +} EC_SUBSCRIPTION_TYPE; + +typedef enum _EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID +{ + EcSubscriptionRunTimeStatusActive = 0, // EcVarTypeUInt32, EC_SUBSCRIPTION_RUNTIME_STATUS_ACTIVE_STATUS + EcSubscriptionRunTimeStatusLastError, // EcVarTypeUInt32 + EcSubscriptionRunTimeStatusLastErrorMessage, // EcVarTypeString + EcSubscriptionRunTimeStatusLastErrorTime, // EcVarTypeDateTime + EcSubscriptionRunTimeStatusNextRetryTime, // EcVarTypeDateTime + EcSubscriptionRunTimeStatusEventSources, // EcVarTypeString | ArrayBitMask + EcSubscriptionRunTimeStatusLastHeartbeatTime, // EcVarTypeDateTime + EcSubscriptionRunTimeStatusInfoIdEND +} EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID; + +typedef enum _EC_VARIANT_TYPE +{ + EcVarTypeNull = 0, + EcVarTypeBoolean, + EcVarTypeUInt32, + EcVarTypeDateTime, + EcVarTypeString, + EcVarObjectArrayPropertyHandle +} EC_VARIANT_TYPE; + + +#define EC_VARIANT_TYPE_MASK 0x7f +#define EC_VARIANT_TYPE_ARRAY 128 + + +typedef struct _EC_VARIANT +{ + union + { + BOOL BooleanVal; + UINT32 UInt32Val; + ULONGLONG DateTimeVal; + LPCWSTR StringVal; + PBYTE BinaryVal; + BOOL* BooleanArr; + INT32* Int32Arr; + LPWSTR* StringArr; + EC_OBJECT_ARRAY_PROPERTY_HANDLE PropertyHandleVal; + }; + + DWORD Count; // number of elements not length in bytes. Used for arrays + // and binary/string types. + DWORD Type; + +} EC_VARIANT, *PEC_VARIANT; + + + +#define EC_READ_ACCESS 1 +#define EC_WRITE_ACCESS 2 + +#define EC_OPEN_ALWAYS 0 +#define EC_CREATE_NEW 1 +#define EC_OPEN_EXISTING 2 + +typedef enum _EC_SUBSCRIPTION_CONFIGURATION_MODE +{ + EcConfigurationModeNormal = 0, + EcConfigurationModeCustom, + EcConfigurationModeMinLatency, + EcConfigurationModeMinBandwidth + +} EC_SUBSCRIPTION_CONFIGURATION_MODE; + +typedef enum _EC_SUBSCRIPTION_DELIVERY_MODE +{ + EcDeliveryModePull = 1, + EcDeliveryModePush + +} EC_SUBSCRIPTION_DELIVERY_MODE; + + +typedef enum _EC_SUBSCRIPTION_CONTENT_FORMAT +{ + EcContentFormatEvents = 1, + EcContentFormatRenderedText +} EC_SUBSCRIPTION_CONTENT_FORMAT; + + +typedef enum _EC_SUBSCRIPTION_RUNTIME_STATUS_ACTIVE_STATUS +{ + EcRuntimeStatusActiveStatusDisabled = 1, + EcRuntimeStatusActiveStatusActive, + EcRuntimeStatusActiveStatusInactive, + EcRuntimeStatusActiveStatusTrying +} EC_SUBSCRIPTION_RUNTIME_STATUS_ACTIVE_STATUS; + + +EC_HANDLE WINAPI EcOpenSubscriptionEnum( + DWORD Flags + ); + +BOOL WINAPI EcEnumNextSubscription( + EC_HANDLE SubscriptionEnum, + DWORD SubscriptionNameBufferSize, + _Out_writes_to_opt_(SubscriptionNameBufferSize,*SubscriptionNameBufferUsed) + LPWSTR SubscriptionNameBuffer, + _Out_ PDWORD SubscriptionNameBufferUsed + ); + +EC_HANDLE WINAPI EcOpenSubscription( + LPCWSTR SubscriptionName, + DWORD AccessMask, + DWORD Flags + ); + +BOOL WINAPI EcSetSubscriptionProperty( + EC_HANDLE Subscription, + EC_SUBSCRIPTION_PROPERTY_ID PropertyId, + DWORD Flags, + PEC_VARIANT PropertyValue + ); + +BOOL WINAPI EcGetSubscriptionProperty( + EC_HANDLE Subscription, + EC_SUBSCRIPTION_PROPERTY_ID PropertyId, + DWORD Flags, + DWORD PropertyValueBufferSize, + PEC_VARIANT PropertyValueBuffer, + _Out_ PDWORD PropertyValueBufferUsed + ); + +BOOL WINAPI EcSaveSubscription( + EC_HANDLE Subscription, + DWORD Flags + ); + +BOOL WINAPI EcDeleteSubscription( + LPCWSTR SubscriptionName, + DWORD Flags + ); + +BOOL WINAPI EcGetObjectArraySize( + EC_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray, + _Out_ PDWORD ObjectArraySize + ); + +BOOL WINAPI EcSetObjectArrayProperty( + EC_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray, + EC_SUBSCRIPTION_PROPERTY_ID PropertyId, + DWORD ArrayIndex, + DWORD Flags, + PEC_VARIANT PropertyValue + ); + +BOOL WINAPI EcGetObjectArrayProperty( + EC_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray, + EC_SUBSCRIPTION_PROPERTY_ID PropertyId, + DWORD ArrayIndex, + DWORD Flags, + DWORD PropertyValueBufferSize, + PEC_VARIANT PropertyValueBuffer, + _Out_ PDWORD PropertyValueBufferUsed + ); + +BOOL WINAPI EcInsertObjectArrayElement( + EC_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray, + DWORD ArrayIndex + ); + +BOOL WINAPI EcRemoveObjectArrayElement( + EC_OBJECT_ARRAY_PROPERTY_HANDLE ObjectArray, + DWORD ArrayIndex + ); + +BOOL WINAPI EcGetSubscriptionRunTimeStatus( + LPCWSTR SubscriptionName, + EC_SUBSCRIPTION_RUNTIME_STATUS_INFO_ID StatusInfoId, + LPCWSTR EventSourceName, + DWORD Flags, + DWORD StatusValueBufferSize, + PEC_VARIANT StatusValueBuffer, + _Out_ PDWORD StatusValueBufferUsed + ); + +BOOL WINAPI EcRetrySubscription( + LPCWSTR SubscriptionName, + LPCWSTR EventSourceName, + DWORD Flags + ); + +BOOL WINAPI EcClose( + EC_HANDLE Object + ); + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __EC_H__ + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/EventSys.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EventSys.Idl new file mode 100644 index 0000000000000000000000000000000000000000..5af5a009043d92d109dc54c908a97598e353c117 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EventSys.Idl @@ -0,0 +1,729 @@ +////////////////////////////////// -*- C++ -*- ///////////////////////////////// +// +// EventSystem.idl : IDL source for EventSystem.dll +// +// Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved. +// This file will be processed by the MIDL tool to produce the type library +// (EventSystem.tlb) and marshalling code. +// +// -------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +// Event System ProgID's +cpp_quote ("#define PROGID_EventSystem OLESTR(\"EventSystem.EventSystem\")") +cpp_quote ("#define PROGID_EventPublisher OLESTR(\"EventSystem.EventPublisher\")") +cpp_quote ("#define PROGID_EventClass OLESTR(\"EventSystem.EventClass\")") +cpp_quote ("#define PROGID_EventSubscription OLESTR(\"EventSystem.EventSubscription\")") +cpp_quote ("#define PROGID_EventPublisherCollection OLESTR(\"EventSystem.EventPublisherCollection\")") +cpp_quote ("#define PROGID_EventClassCollection OLESTR(\"EventSystem.EventClassCollection\")") +cpp_quote ("#define PROGID_EventSubscriptionCollection OLESTR(\"EventSystem.EventSubscriptionCollection\")") +cpp_quote ("#define PROGID_EventSubsystem OLESTR(\"EventSystem.EventSubsystem\")") + +// Event System object change events +cpp_quote ("#define EVENTSYSTEM_PUBLISHER_ID OLESTR(\"{d0564c30-9df4-11d1-a281-00c04fca0aa7}\")") +cpp_quote ("#define EVENTSYSTEM_SUBSYSTEM_CLSID OLESTR(\"{503c1fd8-b605-11d2-a92d-006008c60e24}\")") + +//midl_pragma warning(disable: 2039) // oleautomation conformance + + +interface IEnumEventObject; +interface IEventObjectCollection; +interface IEventControl; +interface IMultiInterfaceEventControl; + +// -------------------------------------------------------------------------- +// +// IEventSystem - Deprecated interface - Use COMAdmin interfaces instead. +// +// -------------------------------------------------------------------------- + +[ + object, + uuid(4E14FB9F-2E22-11D1-9964-00C04FBBB345), + dual, + proxy, + helpstring("IEventSystem Interface"), + pointer_default(unique) +] +interface IEventSystem : IDispatch +{ + cpp_quote("// *****************************************************************") + cpp_quote("// This is a Deprecated interface - Use COMAdmin interfaces instead.") + cpp_quote("// *****************************************************************") + [id(1), helpstring("method Query")] + HRESULT Query([in] BSTR progID, + [in] BSTR queryCriteria, + [out] int* errorIndex, + [out,retval] IUnknown** ppInterface); + + [id(2), helpstring("method Store")] + HRESULT Store([in] BSTR ProgID, + [in] IUnknown* pInterface); + + [id(3), helpstring("method Remove")] + HRESULT Remove([in] BSTR progID, + [in] BSTR queryCriteria, + [out] int* errorIndex); + + [id(4), propget, helpstring("method get_EventObjectChangeEventClassID")] + HRESULT EventObjectChangeEventClassID([out,retval] BSTR* pbstrEventClassID); + + [id(5), helpstring("method QueryS")] + HRESULT QueryS([in] BSTR progID, + [in] BSTR queryCriteria, + [out,retval] IUnknown** ppInterface); + + [id(6), helpstring("method RemoveS")] + HRESULT RemoveS([in] BSTR progID, + [in] BSTR queryCriteria); +}; + + +// -------------------------------------------------------------------------- +// +// IEventPublisher -- Do Not Use. +// +// -------------------------------------------------------------------------- + +[ + object, + uuid(E341516B-2E32-11D1-9964-00C04FBBB345), + dual, + proxy, + helpstring("IEventPublisher Interface"), + pointer_default(unique) +] +interface IEventPublisher : IDispatch +{ + cpp_quote("// ********************************************") + cpp_quote("// This is a Deprecated interface - Do Not Use.") + cpp_quote("// ********************************************") + [propget, id(1), helpstring("property PublisherID")] + HRESULT PublisherID([out,retval] BSTR* pbstrPublisherID); + [propput, id(1), helpstring("property PublisherID")] + HRESULT PublisherID([in] BSTR bstrPublisherID); + + [propget, id(2), helpstring("property PublisherName")] + HRESULT PublisherName([out,retval] BSTR* pbstrPublisherName); + [propput, id(2), helpstring("property PublisherName")] + HRESULT PublisherName([in] BSTR bstrPublisherName); + + [propget, id(3), helpstring("property PublisherType")] + HRESULT PublisherType([out,retval] BSTR* pbstrPublisherType); + [propput, id(3), helpstring("property PublisherType")] + HRESULT PublisherType([in] BSTR bstrPublisherType); + + [propget, id(4), helpstring("property OwnerSID")] + HRESULT OwnerSID([out,retval] BSTR* pbstrOwnerSID); + [propput, id(4), helpstring("property OwnerSID")] + HRESULT OwnerSID([in] BSTR bstrOwnerSID); + + [propget, id(5), helpstring("property Description")] + HRESULT Description([out,retval] BSTR* pbstrDescription); + [propput, id(5), helpstring("property Description")] + HRESULT Description([in] BSTR bstrDescription); + + [id(6), helpstring("method GetDefaultProperty")] + HRESULT GetDefaultProperty([in] BSTR bstrPropertyName, + [out,retval] VARIANT* propertyValue); + [id(7), helpstring("method PutDefaultProperty")] + HRESULT PutDefaultProperty([in] BSTR bstrPropertyName, + [in] VARIANT* propertyValue); + [id(8), helpstring("method RemoveDefaultProperty")] + HRESULT RemoveDefaultProperty([in] BSTR bstrPropertyName); + [id(9), helpstring("method GetDefaultPropertyCollection")] + HRESULT GetDefaultPropertyCollection([out,retval] IEventObjectCollection** collection); +}; + + +// -------------------------------------------------------------------------- +// +// IEventClass -- event component +// +// -------------------------------------------------------------------------- + +[ + object, + uuid(fb2b72a0-7a68-11d1-88f9-0080c7d771bf), + dual, + proxy, + helpstring("IEventClass Interface"), + pointer_default(unique) +] +interface IEventClass : IDispatch +{ + [propget, id(1), helpstring("property EventClassID")] + HRESULT EventClassID([out,retval] BSTR* pbstrEventClassID); + [propput, id(1), helpstring("property EventClassID")] + HRESULT EventClassID([in] BSTR bstrEventClassID); + + [propget, id(2), helpstring("property EventClassName")] + HRESULT EventClassName([out,retval] BSTR* pbstrEventClassName); + [propput, id(2), helpstring("property EventClassName")] + HRESULT EventClassName([in] BSTR bstrEventClassName); + + [propget, id(3), helpstring("property OwnerSID")] + HRESULT OwnerSID([out,retval] BSTR* pbstrOwnerSID); + [propput, id(3), helpstring("property OwnerSID")] + HRESULT OwnerSID([in] BSTR bstrOwnerSID); + + [propget, id(4), helpstring("property FiringInterfaceID")] + HRESULT FiringInterfaceID([out,retval] BSTR* pbstrFiringInterfaceID); + [propput, id(4), helpstring("property FiringInterfaceID")] + HRESULT FiringInterfaceID([in] BSTR bstrFiringInterfaceID); + + [propget, id(5), helpstring("property Description")] + HRESULT Description([out,retval] BSTR* pbstrDescription); + [propput, id(5), helpstring("property Description")] + HRESULT Description([in] BSTR bstrDescription); + + [propget, id(6), helpstring("property CustomConfigCLSID")] + HRESULT CustomConfigCLSID([out,retval] BSTR* pbstrCustomConfigCLSID); + [propput, id(6), helpstring("property CustomConfigCLSID")] + HRESULT CustomConfigCLSID([in] BSTR bstrCustomConfigCLSID); + + [propget, id(7), helpstring("property TypeLib")] + HRESULT TypeLib([out,retval] BSTR* pbstrTypeLib); + [propput, id(7), helpstring("property TypeLib")] + HRESULT TypeLib([in] BSTR bstrTypeLib); +}; + +[ + object, + uuid(fb2b72a1-7a68-11d1-88f9-0080c7d771bf), + dual, + proxy, + helpstring("IEventClass2 Interface"), + pointer_default(unique) +] +interface IEventClass2 : IEventClass +{ + [id(8), propget, helpstring("property PublisherID")] + HRESULT PublisherID([out,retval] BSTR* pbstrPublisherID); + [id(8), propput, helpstring("property PublisherID")] + HRESULT PublisherID([in] BSTR bstrPublisherID); + + [id(9), propget, helpstring("property MultiInterfacePublisherFilterCLSID")] + HRESULT MultiInterfacePublisherFilterCLSID([out,retval] BSTR* pbstrPubFilCLSID); + [id(9), propput, helpstring("property MultiInterfacePublisherFilterCLSID")] + HRESULT MultiInterfacePublisherFilterCLSID([in] BSTR bstrPubFilCLSID); + + [id(10), propget, helpstring("property AllowInprocActivation")] + HRESULT AllowInprocActivation([out,retval]BOOL* pfAllowInprocActivation); + [id(10), propput, helpstring("property AllowInprocActivation")] + HRESULT AllowInprocActivation([in]BOOL fAllowInprocActivation); + + [id(11), propget, helpstring("property FireInParallel")] + HRESULT FireInParallel([out,retval]BOOL* pfFireInParallel); + [id(11), propput, helpstring("property FireInParallel")] + HRESULT FireInParallel([in]BOOL fFireInParallel); +} + +// -------------------------------------------------------------------------- +// +// IEventSubscription -- event system subscriptions +// +// -------------------------------------------------------------------------- + +[ + object, + uuid(4A6B0E15-2E38-11D1-9965-00C04FBBB345), + dual, + proxy, + helpstring("IEventSubscription Interface"), + pointer_default(unique) +] +interface IEventSubscription : IDispatch +{ + [propget, id(1), helpstring("property SubscriptionID")] + HRESULT SubscriptionID([out,retval] BSTR* pbstrSubscriptionID); + [propput, id(1), helpstring("property SubscriptionID")] + HRESULT SubscriptionID([in] BSTR bstrSubscriptionID); + + [propget, id(2), helpstring("property SubscriptionName")] + HRESULT SubscriptionName([out,retval] BSTR* pbstrSubscriptionName); + [propput, id(2), helpstring("property SubscriptionName")] + HRESULT SubscriptionName([in] BSTR bstrSubscriptionName); + + [propget, id(3), helpstring("property PublisherID")] + HRESULT PublisherID([out,retval] BSTR* pbstrPublisherID); + [propput, id(3), helpstring("property PublisherID")] + HRESULT PublisherID([in] BSTR bstrPublisherID); + + [propget, id(4), helpstring("property EventClassID")] + HRESULT EventClassID([out,retval] BSTR* pbstrEventClassID); + [propput, id(4), helpstring("property EventClassID")] + HRESULT EventClassID([in] BSTR bstrEventClassID); + + [propget, id(5), helpstring("property MethodName")] + HRESULT MethodName([out,retval] BSTR* pbstrMethodName); + [propput, id(5), helpstring("property MethodName")] + HRESULT MethodName([in] BSTR bstrMethodName); + + [propget, id(6), helpstring("property SubscriberCLSID")] + HRESULT SubscriberCLSID([out,retval] BSTR* pbstrSubscriberCLSID); + [propput, id(6), helpstring("property SubscriberCLSID")] + HRESULT SubscriberCLSID([in] BSTR bstrSubscriberCLSID); + + [propget, id(7), helpstring("property SubscriberInterface")] + HRESULT SubscriberInterface([out,retval] IUnknown** ppSubscriberInterface); + [propput, id(7), helpstring("property SubscriberInterface")] + HRESULT SubscriberInterface([in] IUnknown* pSubscriberInterface); + + [propget, id(8), helpstring("property PerUser")] + HRESULT PerUser([out,retval] BOOL* pfPerUser); + [propput, id(8), helpstring("property PerUser")] + HRESULT PerUser([in] BOOL fPerUser); + + [propget, id(9), helpstring("property OwnerSID")] + HRESULT OwnerSID([out,retval] BSTR* pbstrOwnerSID); + [propput, id(9), helpstring("property OwnerSID")] + HRESULT OwnerSID([in] BSTR bstrOwnerSID); + + [propget, id(10), helpstring("property Enabled")] + HRESULT Enabled([out,retval] BOOL* pfEnabled); + [propput, id(10), helpstring("property Enabled")] + HRESULT Enabled([in] BOOL fEnabled); + + [propget, id(11), helpstring("property Description")] + HRESULT Description([out,retval] BSTR* pbstrDescription); + [propput, id(11), helpstring("property Description")] + HRESULT Description([in] BSTR bstrDescription); + + [propget, id(12), helpstring("property MachineName")] + HRESULT MachineName([out,retval] BSTR* pbstrMachineName); + [propput, id(12), helpstring("property MachineName")] + HRESULT MachineName([in] BSTR bstrMachineName); + + [id(13), helpstring("method GetPublisherProperty")] + HRESULT GetPublisherProperty([in] BSTR bstrPropertyName, + [out,retval] VARIANT* propertyValue); + [id(14), helpstring("method PutPublisherProperty")] + HRESULT PutPublisherProperty([in] BSTR bstrPropertyName, + [in] VARIANT* propertyValue); + [id(15), helpstring("method RemovePublisherProperty")] + HRESULT RemovePublisherProperty([in] BSTR bstrPropertyName); + [id(16), helpstring("method GetPublisherPropertyCollection")] + HRESULT GetPublisherPropertyCollection([out,retval] IEventObjectCollection** collection); + + [id(17), helpstring("method GetSubscriberProperty")] + HRESULT GetSubscriberProperty([in] BSTR bstrPropertyName, + [out,retval] VARIANT* propertyValue); + [id(18), helpstring("method PutSubscriberProperty")] + HRESULT PutSubscriberProperty([in] BSTR bstrPropertyName, + [in] VARIANT* propertyValue); + [id(19), helpstring("method RemoveSubscriberProperty")] + HRESULT RemoveSubscriberProperty([in] BSTR bstrPropertyName); + [id(20), helpstring("method GetSubscriberPropertyCollection")] + HRESULT GetSubscriberPropertyCollection([out,retval] IEventObjectCollection** collection); + + [id(21), propget, helpstring("property InterfaceID")] + HRESULT InterfaceID([out,retval] BSTR* pbstrInterfaceID); + [id(21), propput, helpstring("property InterfaceID")] + HRESULT InterfaceID([in] BSTR bstrInterfaceID); +}; + + +[ + object, + uuid(e0498c93-4efe-11d1-9971-00c04fbbb345), + dual, + proxy, + helpstring("IFiringControl Interface"), + pointer_default(unique) +] +interface IFiringControl : IDispatch { + [id(1), helpstring("Fire a single subscription")] + HRESULT FireSubscription([in] IEventSubscription* subscription); +}; + + +// -------------------------------------------------------------------------- +// +// IPublisherFilter - Deprecated interface - Use IMultiInterfacePublisherFilter instead. +// +// -------------------------------------------------------------------------- + +[ + object, + uuid(465e5cc0-7b26-11d1-88fb-0080c7d771bf), + helpstring("IPublisherFilter Interface"), + pointer_default(unique) +] +interface IPublisherFilter : IUnknown +{ + cpp_quote("// ****************************************************************************") + cpp_quote("// This is a Deprecated interface - Use IMultiInterfacePublisherFilter instead.") + cpp_quote("// ****************************************************************************") + [helpstring("User-called method to initialize the publisher filter after it is installed")] + HRESULT Initialize([in] BSTR methodName, [in,unique] IDispatch* dispUserDefined); + + [helpstring("Prepare to fire all subscriptions in your collection")] + HRESULT PrepareToFire([in] BSTR methodName, [in] IFiringControl* firingControl); +}; + + +// -------------------------------------------------------------------------- +// +// IMultiInterfacePublisherFilter +// +// -------------------------------------------------------------------------- + +[ + object, + uuid(465e5cc1-7b26-11d1-88fb-0080c7d771bf), + helpstring("IMultiInterfacePublisherFilter Interface"), + pointer_default(unique) +] +interface IMultiInterfacePublisherFilter : IUnknown +{ + [helpstring("User-called method to initialize the publisher filter after it is installed")] + HRESULT Initialize([in] IMultiInterfaceEventControl* pEIC); + + [helpstring("Prepare to fire all subscriptions in your collection")] + HRESULT PrepareToFire([in] REFIID iid, + [in] BSTR methodName, + [in] IFiringControl* firingControl); +}; + + +// -------------------------------------------------------------------------- +// +// IEventObjectChange +// +// -------------------------------------------------------------------------- + +[ + object, + uuid(F4A07D70-2E25-11D1-9964-00C04FBBB345), + helpstring("IEventObjectChange Interface"), + pointer_default(unique) +] +interface IEventObjectChange : IUnknown +{ + typedef enum { + [helpstring("A new object was added")] + EOC_NewObject, + [helpstring("An existing object was modified")] + EOC_ModifiedObject, + [helpstring("An existing object was deleted")] + EOC_DeletedObject + } EOC_ChangeType; + + [helpstring("method ChangedSubscription")] + HRESULT ChangedSubscription([in] EOC_ChangeType changeType, + [in] BSTR bstrSubscriptionID); + + [helpstring("method ChangedEventClass")] + HRESULT ChangedEventClass([in] EOC_ChangeType changeType, + [in] BSTR bstrEventClassID); + + [helpstring("method ChangedPublisher")] + HRESULT ChangedPublisher([in] EOC_ChangeType changeType, + [in] BSTR bstrPublisherID); +}; + +// -------------------------------------------------------------------------- +// +// IEventObjectChange2 +// +// -------------------------------------------------------------------------- +cpp_quote( "#ifndef _COMEVENTSYSCHANGEINFO_" ) +cpp_quote( "#define _COMEVENTSYSCHANGEINFO_" ) + + +typedef [hidden] struct +{ + DWORD cbSize; // size of this struct + EOC_ChangeType changeType; // the type of change that was made + BSTR objectId; // the EventClassID or SubscriptionID affected. + BSTR partitionId; // the EventClassPartitionID or SubscriberPartitionID affected. + BSTR applicationId; // the EventClassApplicationID or SubscriberApplicationID affected. + GUID reserved [10]; +} COMEVENTSYSCHANGEINFO ; + +cpp_quote( "#endif // _COMEVENTSYSCHANGEINFO_" ) + +[ + object, + uuid(7701A9C3-BD68-438f-83E0-67BF4F53A422), + helpstring("IEventObjectChange2 Interface"), + pointer_default(unique) +] +interface IEventObjectChange2 : IUnknown +{ + [helpstring("method ChangedSubscription")] + HRESULT ChangedSubscription([in] COMEVENTSYSCHANGEINFO* pInfo); + + [helpstring("method ChangedEventClass")] + HRESULT ChangedEventClass([in] COMEVENTSYSCHANGEINFO* pInfo); + +}; + + +// -------------------------------------------------------------------------- +// +// IEnumEventObject -- An interface that provides an enumeration of an +// EventClass, Publisher, or Subscription object. +// +// -------------------------------------------------------------------------- + +[ + object, + uuid(F4A07D63-2E25-11D1-9964-00C04FBBB345), + helpstring("IEnumEventObject Interface"), + pointer_default(unique) +] +interface IEnumEventObject : IUnknown +{ + [id(1), helpstring("method Clone")] + HRESULT Clone([out] IEnumEventObject** ppInterface); + + [id(3), helpstring("method Next")] + HRESULT Next([in] ULONG cReqElem, + [out,size_is(cReqElem), length_is(*cRetElem)] IUnknown** ppInterface, + [out] ULONG* cRetElem); + + [id(4), helpstring("method Reset")] + HRESULT Reset(); + + [id(5), helpstring("method Skip")] + HRESULT Skip([in] ULONG cSkipElem); +}; + +[ + object, + uuid(f89ac270-d4eb-11d1-b682-00805fc79216), + dual, + proxy, + helpstring("IEventObjectCollection Interface"), + pointer_default(unique) +] +interface IEventObjectCollection : IDispatch +{ + [id(DISPID_NEWENUM), propget, restricted, helpstring("Create new IEnumVARIANT")] + HRESULT _NewEnum([out,retval] IUnknown** ppUnkEnum); + + [id(DISPID_VALUE), propget] + HRESULT Item([in] BSTR objectID, [out,retval] VARIANT* pItem); + + [id(1), propget, helpstring("Create new IEnumEventObject")] + HRESULT NewEnum([out,retval] IEnumEventObject** ppEnum); + + [id(2), propget, helpstring("Number of items in the collection")] + HRESULT Count([out,retval] long* pCount); + + [id(3), helpstring("Add an item to the collection")] + HRESULT Add([in] VARIANT* item, [in] BSTR objectID); + + [id(4), helpstring("Remove an item from the collection")] + HRESULT Remove([in] BSTR objectID); +} + + +// -------------------------------------------------------------------------- +// +// IEventProperty -- An interface that represents a name/property pair. +// +// -------------------------------------------------------------------------- + + +[ + object, + uuid(da538ee2-f4de-11d1-b6bb-00805fc79216), + dual, + proxy, + helpstring("IEventProperty Interface"), + pointer_default(unique) +] +interface IEventProperty : IDispatch +{ + [id(1), propget, helpstring("property Name")] + HRESULT Name([out,retval] BSTR* propertyName); + [id(1), propput, helpstring("property Name")] + HRESULT Name([in] BSTR propertyName); + + [id(2), propget, helpstring("property Value")] + HRESULT Value([out,retval] VARIANT* propertyValue); + [id(2), propput, helpstring("property Value")] + HRESULT Value([in] VARIANT* propertyValue); +}; + + +// -------------------------------------------------------------------------- +// +// IEventControl - Deprecated interface - Use IMultiInterfaceEventControl instead. +// +// -------------------------------------------------------------------------- + +[ + object, + uuid(0343e2f4-86f6-11d1-b760-00c04fb926af), + dual, + proxy, + helpstring("IEventControl Interface"), + pointer_default(unique) +] +interface IEventControl : IDispatch +{ + cpp_quote("// *************************************************************************") + cpp_quote("// This is a Deprecated interface - Use IMultiInterfaceEventControl instead.") + cpp_quote("// *************************************************************************") + [id(1), helpstring("method SetPublisherFilter")] + HRESULT SetPublisherFilter([in] BSTR methodName, + [in,unique] IPublisherFilter* pPublisherFilter); + + [propget, id(2), helpstring("property AllowInprocActivation")] + HRESULT AllowInprocActivation([out,retval] BOOL* pfAllowInprocActivation); + [propput, id(2), helpstring("property AllowInprocActivation")] + HRESULT AllowInprocActivation([in] BOOL fAllowInprocActivation); + + [id(3), helpstring("Get a self-updating collection of subscriptions to a given method")] + HRESULT GetSubscriptions([in,unique] BSTR methodName, + [in,unique] BSTR optionalCriteria, + [in,unique] int* optionalErrorIndex, + [out,retval] IEventObjectCollection** ppCollection); + [id(4), helpstring("Establish the default query to use when not filtering")] + HRESULT SetDefaultQuery([in] BSTR methodName, + [in] BSTR criteria, + [out,retval] int* errorIndex); +}; + + +[ + object, + uuid(0343e2f5-86f6-11d1-b760-00c04fb926af), + helpstring("IMultiInterfaceEventControl Interface"), + pointer_default(unique) +] +interface IMultiInterfaceEventControl : IUnknown +{ + [helpstring("method SetMultiInterfacePublisherFilter")] + HRESULT SetMultiInterfacePublisherFilter([in,unique] IMultiInterfacePublisherFilter* classFilter); + + [helpstring("Get a self-updating collection of subscriptions to an IID/method")] + HRESULT GetSubscriptions([in] REFIID eventIID, + [in,unique] BSTR bstrMethodName, + [in,unique] BSTR optionalCriteria, + [in,unique] int* optionalErrorIndex, + [out,retval] IEventObjectCollection** ppCollection); + + [helpstring("Establish the default query to use when not filtering.")] + HRESULT SetDefaultQuery([in] REFIID eventIID, + [in] BSTR bstrMethodName, + [in] BSTR bstrCriteria, + [out,retval] int* errorIndex); + + [propget, helpstring("property AllowInprocActivation")] + HRESULT AllowInprocActivation([out,retval] BOOL* pfAllowInprocActivation); + [propput, helpstring("property AllowInprocActivation")] + HRESULT AllowInprocActivation([in] BOOL fAllowInprocActivation); + + [propget, helpstring("property FireInParallel")] + HRESULT FireInParallel([out,retval] BOOL* pfFireInParallel); + [propput, helpstring("property FireInParallel")] + HRESULT FireInParallel([in] BOOL fFireInParallel); +} + +[ + object, + uuid(784121F1-62A6-4b89-855F-D65F296DE83A), + helpstring("IDontSupportEventSubscription Interface"), + pointer_default(unique) +] +interface IDontSupportEventSubscription : IUnknown +{ + // No methods (except IUnknown). This interface just serves to let an object indicate + // it does not wish to support event subscriptions. +}; + + +//////////////////////////////////////////////////////////////////////////////// +// +// Classes.... +// +//////////////////////////////////////////////////////////////////////////////// + + +[ + uuid(e81221dc-c4d8-11d1-b653-00805fc79216), + version(1.0), + helpstring("EventSystem 1.0 Type Library") +] +library DummyEventSystemLib +{ + importlib("stdole2.tlb"); + importlib("stdole32.tlb"); + + [ + uuid(4E14FBA2-2E22-11D1-9964-00C04FBBB345), + helpstring("CEventSystem Class") + ] + coclass CEventSystem + { + [default] interface IEventSystem; + }; + + [ + uuid(ab944620-79c6-11d1-88f9-0080c7d771bf), + version(1.0) + ] + coclass CEventPublisher + { + [default] interface IEventPublisher; + }; + + [ + uuid(cdbec9c0-7a68-11d1-88f9-0080c7d771bf), + version(1.0) + ] + coclass CEventClass + { + [default] interface IEventClass; + }; + + [ + uuid(7542e960-79c7-11d1-88f9-0080c7d771bf), + version(1.0) + ] + coclass CEventSubscription + { + [default] interface IEventSubscription; + }; + + // EventObjectChange is the EventClassID used by COM+ Events to + // publish IEventObjectChange notifications. + [ + uuid(d0565000-9df4-11d1-a281-00c04fca0aa7), + version(1.0) + ] + coclass EventObjectChange + { + [default] interface IEventObjectChange; + }; + + // EventObjectChange2 is the EventClassID used by COM+ Events to + // publish IEventObjectChange2 notifications. + [ + uuid(BB07BACD-CD56-4e63-A8FF-CBF0355FB9F4), + version(1.0) + ] + coclass EventObjectChange2 + { + [default] interface IEventObjectChange2; + }; + +} + +//midl_pragma warning(default: 2039) // oleautomation conformance + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/EventSys.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EventSys.h new file mode 100644 index 0000000000000000000000000000000000000000..35fb21d4f3a30efd50dcd65287ada50cc84a7ee4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/EventSys.h @@ -0,0 +1,3483 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __eventsys_h__ +#define __eventsys_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEventSystem_FWD_DEFINED__ +#define __IEventSystem_FWD_DEFINED__ +typedef interface IEventSystem IEventSystem; + +#endif /* __IEventSystem_FWD_DEFINED__ */ + + +#ifndef __IEventPublisher_FWD_DEFINED__ +#define __IEventPublisher_FWD_DEFINED__ +typedef interface IEventPublisher IEventPublisher; + +#endif /* __IEventPublisher_FWD_DEFINED__ */ + + +#ifndef __IEventClass_FWD_DEFINED__ +#define __IEventClass_FWD_DEFINED__ +typedef interface IEventClass IEventClass; + +#endif /* __IEventClass_FWD_DEFINED__ */ + + +#ifndef __IEventClass2_FWD_DEFINED__ +#define __IEventClass2_FWD_DEFINED__ +typedef interface IEventClass2 IEventClass2; + +#endif /* __IEventClass2_FWD_DEFINED__ */ + + +#ifndef __IEventSubscription_FWD_DEFINED__ +#define __IEventSubscription_FWD_DEFINED__ +typedef interface IEventSubscription IEventSubscription; + +#endif /* __IEventSubscription_FWD_DEFINED__ */ + + +#ifndef __IFiringControl_FWD_DEFINED__ +#define __IFiringControl_FWD_DEFINED__ +typedef interface IFiringControl IFiringControl; + +#endif /* __IFiringControl_FWD_DEFINED__ */ + + +#ifndef __IPublisherFilter_FWD_DEFINED__ +#define __IPublisherFilter_FWD_DEFINED__ +typedef interface IPublisherFilter IPublisherFilter; + +#endif /* __IPublisherFilter_FWD_DEFINED__ */ + + +#ifndef __IMultiInterfacePublisherFilter_FWD_DEFINED__ +#define __IMultiInterfacePublisherFilter_FWD_DEFINED__ +typedef interface IMultiInterfacePublisherFilter IMultiInterfacePublisherFilter; + +#endif /* __IMultiInterfacePublisherFilter_FWD_DEFINED__ */ + + +#ifndef __IEventObjectChange_FWD_DEFINED__ +#define __IEventObjectChange_FWD_DEFINED__ +typedef interface IEventObjectChange IEventObjectChange; + +#endif /* __IEventObjectChange_FWD_DEFINED__ */ + + +#ifndef __IEventObjectChange2_FWD_DEFINED__ +#define __IEventObjectChange2_FWD_DEFINED__ +typedef interface IEventObjectChange2 IEventObjectChange2; + +#endif /* __IEventObjectChange2_FWD_DEFINED__ */ + + +#ifndef __IEnumEventObject_FWD_DEFINED__ +#define __IEnumEventObject_FWD_DEFINED__ +typedef interface IEnumEventObject IEnumEventObject; + +#endif /* __IEnumEventObject_FWD_DEFINED__ */ + + +#ifndef __IEventObjectCollection_FWD_DEFINED__ +#define __IEventObjectCollection_FWD_DEFINED__ +typedef interface IEventObjectCollection IEventObjectCollection; + +#endif /* __IEventObjectCollection_FWD_DEFINED__ */ + + +#ifndef __IEventProperty_FWD_DEFINED__ +#define __IEventProperty_FWD_DEFINED__ +typedef interface IEventProperty IEventProperty; + +#endif /* __IEventProperty_FWD_DEFINED__ */ + + +#ifndef __IEventControl_FWD_DEFINED__ +#define __IEventControl_FWD_DEFINED__ +typedef interface IEventControl IEventControl; + +#endif /* __IEventControl_FWD_DEFINED__ */ + + +#ifndef __IMultiInterfaceEventControl_FWD_DEFINED__ +#define __IMultiInterfaceEventControl_FWD_DEFINED__ +typedef interface IMultiInterfaceEventControl IMultiInterfaceEventControl; + +#endif /* __IMultiInterfaceEventControl_FWD_DEFINED__ */ + + +#ifndef __IDontSupportEventSubscription_FWD_DEFINED__ +#define __IDontSupportEventSubscription_FWD_DEFINED__ +typedef interface IDontSupportEventSubscription IDontSupportEventSubscription; + +#endif /* __IDontSupportEventSubscription_FWD_DEFINED__ */ + + +#ifndef __CEventSystem_FWD_DEFINED__ +#define __CEventSystem_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CEventSystem CEventSystem; +#else +typedef struct CEventSystem CEventSystem; +#endif /* __cplusplus */ + +#endif /* __CEventSystem_FWD_DEFINED__ */ + + +#ifndef __CEventPublisher_FWD_DEFINED__ +#define __CEventPublisher_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CEventPublisher CEventPublisher; +#else +typedef struct CEventPublisher CEventPublisher; +#endif /* __cplusplus */ + +#endif /* __CEventPublisher_FWD_DEFINED__ */ + + +#ifndef __CEventClass_FWD_DEFINED__ +#define __CEventClass_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CEventClass CEventClass; +#else +typedef struct CEventClass CEventClass; +#endif /* __cplusplus */ + +#endif /* __CEventClass_FWD_DEFINED__ */ + + +#ifndef __CEventSubscription_FWD_DEFINED__ +#define __CEventSubscription_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CEventSubscription CEventSubscription; +#else +typedef struct CEventSubscription CEventSubscription; +#endif /* __cplusplus */ + +#endif /* __CEventSubscription_FWD_DEFINED__ */ + + +#ifndef __EventObjectChange_FWD_DEFINED__ +#define __EventObjectChange_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EventObjectChange EventObjectChange; +#else +typedef struct EventObjectChange EventObjectChange; +#endif /* __cplusplus */ + +#endif /* __EventObjectChange_FWD_DEFINED__ */ + + +#ifndef __EventObjectChange2_FWD_DEFINED__ +#define __EventObjectChange2_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EventObjectChange2 EventObjectChange2; +#else +typedef struct EventObjectChange2 EventObjectChange2; +#endif /* __cplusplus */ + +#endif /* __EventObjectChange2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_eventsys_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define PROGID_EventSystem OLESTR("EventSystem.EventSystem") +#define PROGID_EventPublisher OLESTR("EventSystem.EventPublisher") +#define PROGID_EventClass OLESTR("EventSystem.EventClass") +#define PROGID_EventSubscription OLESTR("EventSystem.EventSubscription") +#define PROGID_EventPublisherCollection OLESTR("EventSystem.EventPublisherCollection") +#define PROGID_EventClassCollection OLESTR("EventSystem.EventClassCollection") +#define PROGID_EventSubscriptionCollection OLESTR("EventSystem.EventSubscriptionCollection") +#define PROGID_EventSubsystem OLESTR("EventSystem.EventSubsystem") +#define EVENTSYSTEM_PUBLISHER_ID OLESTR("{d0564c30-9df4-11d1-a281-00c04fca0aa7}") +#define EVENTSYSTEM_SUBSYSTEM_CLSID OLESTR("{503c1fd8-b605-11d2-a92d-006008c60e24}") + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_eventsys_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_eventsys_0000_0000_v0_0_s_ifspec; + +#ifndef __IEventSystem_INTERFACE_DEFINED__ +#define __IEventSystem_INTERFACE_DEFINED__ + +/* interface IEventSystem */ +/* [unique][helpstring][proxy][dual][uuid][object] */ + +// ***************************************************************** +// This is a Deprecated interface - Use COMAdmin interfaces instead. +// ***************************************************************** + +EXTERN_C const IID IID_IEventSystem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4E14FB9F-2E22-11D1-9964-00C04FBBB345") + IEventSystem : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Query( + /* [in] */ __RPC__in BSTR progID, + /* [in] */ __RPC__in BSTR queryCriteria, + /* [out] */ __RPC__out int *errorIndex, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppInterface) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Store( + /* [in] */ __RPC__in BSTR ProgID, + /* [in] */ __RPC__in_opt IUnknown *pInterface) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ __RPC__in BSTR progID, + /* [in] */ __RPC__in BSTR queryCriteria, + /* [out] */ __RPC__out int *errorIndex) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_EventObjectChangeEventClassID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEventClassID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE QueryS( + /* [in] */ __RPC__in BSTR progID, + /* [in] */ __RPC__in BSTR queryCriteria, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppInterface) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveS( + /* [in] */ __RPC__in BSTR progID, + /* [in] */ __RPC__in BSTR queryCriteria) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventSystemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventSystem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventSystem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventSystem * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IEventSystem * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IEventSystem * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IEventSystem * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEventSystem * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEventSystem, Query) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Query )( + __RPC__in IEventSystem * This, + /* [in] */ __RPC__in BSTR progID, + /* [in] */ __RPC__in BSTR queryCriteria, + /* [out] */ __RPC__out int *errorIndex, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppInterface); + + DECLSPEC_XFGVIRT(IEventSystem, Store) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Store )( + __RPC__in IEventSystem * This, + /* [in] */ __RPC__in BSTR ProgID, + /* [in] */ __RPC__in_opt IUnknown *pInterface); + + DECLSPEC_XFGVIRT(IEventSystem, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IEventSystem * This, + /* [in] */ __RPC__in BSTR progID, + /* [in] */ __RPC__in BSTR queryCriteria, + /* [out] */ __RPC__out int *errorIndex); + + DECLSPEC_XFGVIRT(IEventSystem, get_EventObjectChangeEventClassID) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EventObjectChangeEventClassID )( + __RPC__in IEventSystem * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEventClassID); + + DECLSPEC_XFGVIRT(IEventSystem, QueryS) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *QueryS )( + __RPC__in IEventSystem * This, + /* [in] */ __RPC__in BSTR progID, + /* [in] */ __RPC__in BSTR queryCriteria, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppInterface); + + DECLSPEC_XFGVIRT(IEventSystem, RemoveS) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveS )( + __RPC__in IEventSystem * This, + /* [in] */ __RPC__in BSTR progID, + /* [in] */ __RPC__in BSTR queryCriteria); + + END_INTERFACE + } IEventSystemVtbl; + + interface IEventSystem + { + CONST_VTBL struct IEventSystemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventSystem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventSystem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventSystem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventSystem_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEventSystem_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEventSystem_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEventSystem_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEventSystem_Query(This,progID,queryCriteria,errorIndex,ppInterface) \ + ( (This)->lpVtbl -> Query(This,progID,queryCriteria,errorIndex,ppInterface) ) + +#define IEventSystem_Store(This,ProgID,pInterface) \ + ( (This)->lpVtbl -> Store(This,ProgID,pInterface) ) + +#define IEventSystem_Remove(This,progID,queryCriteria,errorIndex) \ + ( (This)->lpVtbl -> Remove(This,progID,queryCriteria,errorIndex) ) + +#define IEventSystem_get_EventObjectChangeEventClassID(This,pbstrEventClassID) \ + ( (This)->lpVtbl -> get_EventObjectChangeEventClassID(This,pbstrEventClassID) ) + +#define IEventSystem_QueryS(This,progID,queryCriteria,ppInterface) \ + ( (This)->lpVtbl -> QueryS(This,progID,queryCriteria,ppInterface) ) + +#define IEventSystem_RemoveS(This,progID,queryCriteria) \ + ( (This)->lpVtbl -> RemoveS(This,progID,queryCriteria) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventSystem_INTERFACE_DEFINED__ */ + + +#ifndef __IEventPublisher_INTERFACE_DEFINED__ +#define __IEventPublisher_INTERFACE_DEFINED__ + +/* interface IEventPublisher */ +/* [unique][helpstring][proxy][dual][uuid][object] */ + +// ******************************************** +// This is a Deprecated interface - Do Not Use. +// ******************************************** + +EXTERN_C const IID IID_IEventPublisher; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E341516B-2E32-11D1-9964-00C04FBBB345") + IEventPublisher : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PublisherID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPublisherID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PublisherID( + /* [in] */ __RPC__in BSTR bstrPublisherID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PublisherName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPublisherName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PublisherName( + /* [in] */ __RPC__in BSTR bstrPublisherName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PublisherType( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPublisherType) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PublisherType( + /* [in] */ __RPC__in BSTR bstrPublisherType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OwnerSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOwnerSID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OwnerSID( + /* [in] */ __RPC__in BSTR bstrOwnerSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDefaultProperty( + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [retval][out] */ __RPC__out VARIANT *propertyValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PutDefaultProperty( + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [in] */ __RPC__in VARIANT *propertyValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveDefaultProperty( + /* [in] */ __RPC__in BSTR bstrPropertyName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDefaultPropertyCollection( + /* [retval][out] */ __RPC__deref_out_opt IEventObjectCollection **collection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventPublisherVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventPublisher * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventPublisher * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventPublisher * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IEventPublisher * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IEventPublisher * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IEventPublisher * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEventPublisher * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEventPublisher, get_PublisherID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublisherID )( + __RPC__in IEventPublisher * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPublisherID); + + DECLSPEC_XFGVIRT(IEventPublisher, put_PublisherID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PublisherID )( + __RPC__in IEventPublisher * This, + /* [in] */ __RPC__in BSTR bstrPublisherID); + + DECLSPEC_XFGVIRT(IEventPublisher, get_PublisherName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublisherName )( + __RPC__in IEventPublisher * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPublisherName); + + DECLSPEC_XFGVIRT(IEventPublisher, put_PublisherName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PublisherName )( + __RPC__in IEventPublisher * This, + /* [in] */ __RPC__in BSTR bstrPublisherName); + + DECLSPEC_XFGVIRT(IEventPublisher, get_PublisherType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublisherType )( + __RPC__in IEventPublisher * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPublisherType); + + DECLSPEC_XFGVIRT(IEventPublisher, put_PublisherType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PublisherType )( + __RPC__in IEventPublisher * This, + /* [in] */ __RPC__in BSTR bstrPublisherType); + + DECLSPEC_XFGVIRT(IEventPublisher, get_OwnerSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OwnerSID )( + __RPC__in IEventPublisher * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOwnerSID); + + DECLSPEC_XFGVIRT(IEventPublisher, put_OwnerSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OwnerSID )( + __RPC__in IEventPublisher * This, + /* [in] */ __RPC__in BSTR bstrOwnerSID); + + DECLSPEC_XFGVIRT(IEventPublisher, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IEventPublisher * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IEventPublisher, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IEventPublisher * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IEventPublisher, GetDefaultProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDefaultProperty )( + __RPC__in IEventPublisher * This, + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [retval][out] */ __RPC__out VARIANT *propertyValue); + + DECLSPEC_XFGVIRT(IEventPublisher, PutDefaultProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PutDefaultProperty )( + __RPC__in IEventPublisher * This, + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [in] */ __RPC__in VARIANT *propertyValue); + + DECLSPEC_XFGVIRT(IEventPublisher, RemoveDefaultProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveDefaultProperty )( + __RPC__in IEventPublisher * This, + /* [in] */ __RPC__in BSTR bstrPropertyName); + + DECLSPEC_XFGVIRT(IEventPublisher, GetDefaultPropertyCollection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDefaultPropertyCollection )( + __RPC__in IEventPublisher * This, + /* [retval][out] */ __RPC__deref_out_opt IEventObjectCollection **collection); + + END_INTERFACE + } IEventPublisherVtbl; + + interface IEventPublisher + { + CONST_VTBL struct IEventPublisherVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventPublisher_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventPublisher_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventPublisher_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventPublisher_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEventPublisher_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEventPublisher_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEventPublisher_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEventPublisher_get_PublisherID(This,pbstrPublisherID) \ + ( (This)->lpVtbl -> get_PublisherID(This,pbstrPublisherID) ) + +#define IEventPublisher_put_PublisherID(This,bstrPublisherID) \ + ( (This)->lpVtbl -> put_PublisherID(This,bstrPublisherID) ) + +#define IEventPublisher_get_PublisherName(This,pbstrPublisherName) \ + ( (This)->lpVtbl -> get_PublisherName(This,pbstrPublisherName) ) + +#define IEventPublisher_put_PublisherName(This,bstrPublisherName) \ + ( (This)->lpVtbl -> put_PublisherName(This,bstrPublisherName) ) + +#define IEventPublisher_get_PublisherType(This,pbstrPublisherType) \ + ( (This)->lpVtbl -> get_PublisherType(This,pbstrPublisherType) ) + +#define IEventPublisher_put_PublisherType(This,bstrPublisherType) \ + ( (This)->lpVtbl -> put_PublisherType(This,bstrPublisherType) ) + +#define IEventPublisher_get_OwnerSID(This,pbstrOwnerSID) \ + ( (This)->lpVtbl -> get_OwnerSID(This,pbstrOwnerSID) ) + +#define IEventPublisher_put_OwnerSID(This,bstrOwnerSID) \ + ( (This)->lpVtbl -> put_OwnerSID(This,bstrOwnerSID) ) + +#define IEventPublisher_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IEventPublisher_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IEventPublisher_GetDefaultProperty(This,bstrPropertyName,propertyValue) \ + ( (This)->lpVtbl -> GetDefaultProperty(This,bstrPropertyName,propertyValue) ) + +#define IEventPublisher_PutDefaultProperty(This,bstrPropertyName,propertyValue) \ + ( (This)->lpVtbl -> PutDefaultProperty(This,bstrPropertyName,propertyValue) ) + +#define IEventPublisher_RemoveDefaultProperty(This,bstrPropertyName) \ + ( (This)->lpVtbl -> RemoveDefaultProperty(This,bstrPropertyName) ) + +#define IEventPublisher_GetDefaultPropertyCollection(This,collection) \ + ( (This)->lpVtbl -> GetDefaultPropertyCollection(This,collection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventPublisher_INTERFACE_DEFINED__ */ + + +#ifndef __IEventClass_INTERFACE_DEFINED__ +#define __IEventClass_INTERFACE_DEFINED__ + +/* interface IEventClass */ +/* [unique][helpstring][proxy][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEventClass; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fb2b72a0-7a68-11d1-88f9-0080c7d771bf") + IEventClass : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EventClassID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEventClassID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_EventClassID( + /* [in] */ __RPC__in BSTR bstrEventClassID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EventClassName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEventClassName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_EventClassName( + /* [in] */ __RPC__in BSTR bstrEventClassName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OwnerSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOwnerSID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OwnerSID( + /* [in] */ __RPC__in BSTR bstrOwnerSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FiringInterfaceID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFiringInterfaceID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FiringInterfaceID( + /* [in] */ __RPC__in BSTR bstrFiringInterfaceID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CustomConfigCLSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCustomConfigCLSID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CustomConfigCLSID( + /* [in] */ __RPC__in BSTR bstrCustomConfigCLSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TypeLib( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTypeLib) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_TypeLib( + /* [in] */ __RPC__in BSTR bstrTypeLib) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventClassVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventClass * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventClass * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventClass * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IEventClass * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IEventClass * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IEventClass * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEventClass * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEventClass, get_EventClassID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventClassID )( + __RPC__in IEventClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEventClassID); + + DECLSPEC_XFGVIRT(IEventClass, put_EventClassID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventClassID )( + __RPC__in IEventClass * This, + /* [in] */ __RPC__in BSTR bstrEventClassID); + + DECLSPEC_XFGVIRT(IEventClass, get_EventClassName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventClassName )( + __RPC__in IEventClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEventClassName); + + DECLSPEC_XFGVIRT(IEventClass, put_EventClassName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventClassName )( + __RPC__in IEventClass * This, + /* [in] */ __RPC__in BSTR bstrEventClassName); + + DECLSPEC_XFGVIRT(IEventClass, get_OwnerSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OwnerSID )( + __RPC__in IEventClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOwnerSID); + + DECLSPEC_XFGVIRT(IEventClass, put_OwnerSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OwnerSID )( + __RPC__in IEventClass * This, + /* [in] */ __RPC__in BSTR bstrOwnerSID); + + DECLSPEC_XFGVIRT(IEventClass, get_FiringInterfaceID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FiringInterfaceID )( + __RPC__in IEventClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFiringInterfaceID); + + DECLSPEC_XFGVIRT(IEventClass, put_FiringInterfaceID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FiringInterfaceID )( + __RPC__in IEventClass * This, + /* [in] */ __RPC__in BSTR bstrFiringInterfaceID); + + DECLSPEC_XFGVIRT(IEventClass, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IEventClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IEventClass, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IEventClass * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IEventClass, get_CustomConfigCLSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CustomConfigCLSID )( + __RPC__in IEventClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCustomConfigCLSID); + + DECLSPEC_XFGVIRT(IEventClass, put_CustomConfigCLSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CustomConfigCLSID )( + __RPC__in IEventClass * This, + /* [in] */ __RPC__in BSTR bstrCustomConfigCLSID); + + DECLSPEC_XFGVIRT(IEventClass, get_TypeLib) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TypeLib )( + __RPC__in IEventClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTypeLib); + + DECLSPEC_XFGVIRT(IEventClass, put_TypeLib) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TypeLib )( + __RPC__in IEventClass * This, + /* [in] */ __RPC__in BSTR bstrTypeLib); + + END_INTERFACE + } IEventClassVtbl; + + interface IEventClass + { + CONST_VTBL struct IEventClassVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventClass_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventClass_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventClass_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventClass_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEventClass_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEventClass_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEventClass_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEventClass_get_EventClassID(This,pbstrEventClassID) \ + ( (This)->lpVtbl -> get_EventClassID(This,pbstrEventClassID) ) + +#define IEventClass_put_EventClassID(This,bstrEventClassID) \ + ( (This)->lpVtbl -> put_EventClassID(This,bstrEventClassID) ) + +#define IEventClass_get_EventClassName(This,pbstrEventClassName) \ + ( (This)->lpVtbl -> get_EventClassName(This,pbstrEventClassName) ) + +#define IEventClass_put_EventClassName(This,bstrEventClassName) \ + ( (This)->lpVtbl -> put_EventClassName(This,bstrEventClassName) ) + +#define IEventClass_get_OwnerSID(This,pbstrOwnerSID) \ + ( (This)->lpVtbl -> get_OwnerSID(This,pbstrOwnerSID) ) + +#define IEventClass_put_OwnerSID(This,bstrOwnerSID) \ + ( (This)->lpVtbl -> put_OwnerSID(This,bstrOwnerSID) ) + +#define IEventClass_get_FiringInterfaceID(This,pbstrFiringInterfaceID) \ + ( (This)->lpVtbl -> get_FiringInterfaceID(This,pbstrFiringInterfaceID) ) + +#define IEventClass_put_FiringInterfaceID(This,bstrFiringInterfaceID) \ + ( (This)->lpVtbl -> put_FiringInterfaceID(This,bstrFiringInterfaceID) ) + +#define IEventClass_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IEventClass_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IEventClass_get_CustomConfigCLSID(This,pbstrCustomConfigCLSID) \ + ( (This)->lpVtbl -> get_CustomConfigCLSID(This,pbstrCustomConfigCLSID) ) + +#define IEventClass_put_CustomConfigCLSID(This,bstrCustomConfigCLSID) \ + ( (This)->lpVtbl -> put_CustomConfigCLSID(This,bstrCustomConfigCLSID) ) + +#define IEventClass_get_TypeLib(This,pbstrTypeLib) \ + ( (This)->lpVtbl -> get_TypeLib(This,pbstrTypeLib) ) + +#define IEventClass_put_TypeLib(This,bstrTypeLib) \ + ( (This)->lpVtbl -> put_TypeLib(This,bstrTypeLib) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventClass_INTERFACE_DEFINED__ */ + + +#ifndef __IEventClass2_INTERFACE_DEFINED__ +#define __IEventClass2_INTERFACE_DEFINED__ + +/* interface IEventClass2 */ +/* [unique][helpstring][proxy][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEventClass2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fb2b72a1-7a68-11d1-88f9-0080c7d771bf") + IEventClass2 : public IEventClass + { + public: + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_PublisherID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPublisherID) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_PublisherID( + /* [in] */ __RPC__in BSTR bstrPublisherID) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_MultiInterfacePublisherFilterCLSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPubFilCLSID) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MultiInterfacePublisherFilterCLSID( + /* [in] */ __RPC__in BSTR bstrPubFilCLSID) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_AllowInprocActivation( + /* [retval][out] */ __RPC__out BOOL *pfAllowInprocActivation) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_AllowInprocActivation( + /* [in] */ BOOL fAllowInprocActivation) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_FireInParallel( + /* [retval][out] */ __RPC__out BOOL *pfFireInParallel) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_FireInParallel( + /* [in] */ BOOL fFireInParallel) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventClass2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventClass2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventClass2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IEventClass2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IEventClass2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEventClass2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEventClass, get_EventClassID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventClassID )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEventClassID); + + DECLSPEC_XFGVIRT(IEventClass, put_EventClassID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventClassID )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in BSTR bstrEventClassID); + + DECLSPEC_XFGVIRT(IEventClass, get_EventClassName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventClassName )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEventClassName); + + DECLSPEC_XFGVIRT(IEventClass, put_EventClassName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventClassName )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in BSTR bstrEventClassName); + + DECLSPEC_XFGVIRT(IEventClass, get_OwnerSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OwnerSID )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOwnerSID); + + DECLSPEC_XFGVIRT(IEventClass, put_OwnerSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OwnerSID )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in BSTR bstrOwnerSID); + + DECLSPEC_XFGVIRT(IEventClass, get_FiringInterfaceID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FiringInterfaceID )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFiringInterfaceID); + + DECLSPEC_XFGVIRT(IEventClass, put_FiringInterfaceID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FiringInterfaceID )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in BSTR bstrFiringInterfaceID); + + DECLSPEC_XFGVIRT(IEventClass, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IEventClass, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IEventClass, get_CustomConfigCLSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CustomConfigCLSID )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCustomConfigCLSID); + + DECLSPEC_XFGVIRT(IEventClass, put_CustomConfigCLSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CustomConfigCLSID )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in BSTR bstrCustomConfigCLSID); + + DECLSPEC_XFGVIRT(IEventClass, get_TypeLib) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TypeLib )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTypeLib); + + DECLSPEC_XFGVIRT(IEventClass, put_TypeLib) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TypeLib )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in BSTR bstrTypeLib); + + DECLSPEC_XFGVIRT(IEventClass2, get_PublisherID) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PublisherID )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPublisherID); + + DECLSPEC_XFGVIRT(IEventClass2, put_PublisherID) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_PublisherID )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in BSTR bstrPublisherID); + + DECLSPEC_XFGVIRT(IEventClass2, get_MultiInterfacePublisherFilterCLSID) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MultiInterfacePublisherFilterCLSID )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPubFilCLSID); + + DECLSPEC_XFGVIRT(IEventClass2, put_MultiInterfacePublisherFilterCLSID) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MultiInterfacePublisherFilterCLSID )( + __RPC__in IEventClass2 * This, + /* [in] */ __RPC__in BSTR bstrPubFilCLSID); + + DECLSPEC_XFGVIRT(IEventClass2, get_AllowInprocActivation) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AllowInprocActivation )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__out BOOL *pfAllowInprocActivation); + + DECLSPEC_XFGVIRT(IEventClass2, put_AllowInprocActivation) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AllowInprocActivation )( + __RPC__in IEventClass2 * This, + /* [in] */ BOOL fAllowInprocActivation); + + DECLSPEC_XFGVIRT(IEventClass2, get_FireInParallel) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_FireInParallel )( + __RPC__in IEventClass2 * This, + /* [retval][out] */ __RPC__out BOOL *pfFireInParallel); + + DECLSPEC_XFGVIRT(IEventClass2, put_FireInParallel) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_FireInParallel )( + __RPC__in IEventClass2 * This, + /* [in] */ BOOL fFireInParallel); + + END_INTERFACE + } IEventClass2Vtbl; + + interface IEventClass2 + { + CONST_VTBL struct IEventClass2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventClass2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventClass2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventClass2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventClass2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEventClass2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEventClass2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEventClass2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEventClass2_get_EventClassID(This,pbstrEventClassID) \ + ( (This)->lpVtbl -> get_EventClassID(This,pbstrEventClassID) ) + +#define IEventClass2_put_EventClassID(This,bstrEventClassID) \ + ( (This)->lpVtbl -> put_EventClassID(This,bstrEventClassID) ) + +#define IEventClass2_get_EventClassName(This,pbstrEventClassName) \ + ( (This)->lpVtbl -> get_EventClassName(This,pbstrEventClassName) ) + +#define IEventClass2_put_EventClassName(This,bstrEventClassName) \ + ( (This)->lpVtbl -> put_EventClassName(This,bstrEventClassName) ) + +#define IEventClass2_get_OwnerSID(This,pbstrOwnerSID) \ + ( (This)->lpVtbl -> get_OwnerSID(This,pbstrOwnerSID) ) + +#define IEventClass2_put_OwnerSID(This,bstrOwnerSID) \ + ( (This)->lpVtbl -> put_OwnerSID(This,bstrOwnerSID) ) + +#define IEventClass2_get_FiringInterfaceID(This,pbstrFiringInterfaceID) \ + ( (This)->lpVtbl -> get_FiringInterfaceID(This,pbstrFiringInterfaceID) ) + +#define IEventClass2_put_FiringInterfaceID(This,bstrFiringInterfaceID) \ + ( (This)->lpVtbl -> put_FiringInterfaceID(This,bstrFiringInterfaceID) ) + +#define IEventClass2_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IEventClass2_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IEventClass2_get_CustomConfigCLSID(This,pbstrCustomConfigCLSID) \ + ( (This)->lpVtbl -> get_CustomConfigCLSID(This,pbstrCustomConfigCLSID) ) + +#define IEventClass2_put_CustomConfigCLSID(This,bstrCustomConfigCLSID) \ + ( (This)->lpVtbl -> put_CustomConfigCLSID(This,bstrCustomConfigCLSID) ) + +#define IEventClass2_get_TypeLib(This,pbstrTypeLib) \ + ( (This)->lpVtbl -> get_TypeLib(This,pbstrTypeLib) ) + +#define IEventClass2_put_TypeLib(This,bstrTypeLib) \ + ( (This)->lpVtbl -> put_TypeLib(This,bstrTypeLib) ) + + +#define IEventClass2_get_PublisherID(This,pbstrPublisherID) \ + ( (This)->lpVtbl -> get_PublisherID(This,pbstrPublisherID) ) + +#define IEventClass2_put_PublisherID(This,bstrPublisherID) \ + ( (This)->lpVtbl -> put_PublisherID(This,bstrPublisherID) ) + +#define IEventClass2_get_MultiInterfacePublisherFilterCLSID(This,pbstrPubFilCLSID) \ + ( (This)->lpVtbl -> get_MultiInterfacePublisherFilterCLSID(This,pbstrPubFilCLSID) ) + +#define IEventClass2_put_MultiInterfacePublisherFilterCLSID(This,bstrPubFilCLSID) \ + ( (This)->lpVtbl -> put_MultiInterfacePublisherFilterCLSID(This,bstrPubFilCLSID) ) + +#define IEventClass2_get_AllowInprocActivation(This,pfAllowInprocActivation) \ + ( (This)->lpVtbl -> get_AllowInprocActivation(This,pfAllowInprocActivation) ) + +#define IEventClass2_put_AllowInprocActivation(This,fAllowInprocActivation) \ + ( (This)->lpVtbl -> put_AllowInprocActivation(This,fAllowInprocActivation) ) + +#define IEventClass2_get_FireInParallel(This,pfFireInParallel) \ + ( (This)->lpVtbl -> get_FireInParallel(This,pfFireInParallel) ) + +#define IEventClass2_put_FireInParallel(This,fFireInParallel) \ + ( (This)->lpVtbl -> put_FireInParallel(This,fFireInParallel) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventClass2_INTERFACE_DEFINED__ */ + + +#ifndef __IEventSubscription_INTERFACE_DEFINED__ +#define __IEventSubscription_INTERFACE_DEFINED__ + +/* interface IEventSubscription */ +/* [unique][helpstring][proxy][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEventSubscription; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4A6B0E15-2E38-11D1-9965-00C04FBBB345") + IEventSubscription : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubscriptionID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubscriptionID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SubscriptionID( + /* [in] */ __RPC__in BSTR bstrSubscriptionID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubscriptionName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubscriptionName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SubscriptionName( + /* [in] */ __RPC__in BSTR bstrSubscriptionName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PublisherID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPublisherID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PublisherID( + /* [in] */ __RPC__in BSTR bstrPublisherID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EventClassID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEventClassID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_EventClassID( + /* [in] */ __RPC__in BSTR bstrEventClassID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MethodName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrMethodName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MethodName( + /* [in] */ __RPC__in BSTR bstrMethodName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubscriberCLSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubscriberCLSID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SubscriberCLSID( + /* [in] */ __RPC__in BSTR bstrSubscriberCLSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubscriberInterface( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppSubscriberInterface) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SubscriberInterface( + /* [in] */ __RPC__in_opt IUnknown *pSubscriberInterface) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PerUser( + /* [retval][out] */ __RPC__out BOOL *pfPerUser) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PerUser( + /* [in] */ BOOL fPerUser) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OwnerSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOwnerSID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OwnerSID( + /* [in] */ __RPC__in BSTR bstrOwnerSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Enabled( + /* [retval][out] */ __RPC__out BOOL *pfEnabled) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Enabled( + /* [in] */ BOOL fEnabled) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MachineName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrMachineName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MachineName( + /* [in] */ __RPC__in BSTR bstrMachineName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPublisherProperty( + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [retval][out] */ __RPC__out VARIANT *propertyValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PutPublisherProperty( + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [in] */ __RPC__in VARIANT *propertyValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemovePublisherProperty( + /* [in] */ __RPC__in BSTR bstrPropertyName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPublisherPropertyCollection( + /* [retval][out] */ __RPC__deref_out_opt IEventObjectCollection **collection) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSubscriberProperty( + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [retval][out] */ __RPC__out VARIANT *propertyValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PutSubscriberProperty( + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [in] */ __RPC__in VARIANT *propertyValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveSubscriberProperty( + /* [in] */ __RPC__in BSTR bstrPropertyName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSubscriberPropertyCollection( + /* [retval][out] */ __RPC__deref_out_opt IEventObjectCollection **collection) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_InterfaceID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrInterfaceID) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_InterfaceID( + /* [in] */ __RPC__in BSTR bstrInterfaceID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventSubscriptionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventSubscription * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventSubscription * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IEventSubscription * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IEventSubscription * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEventSubscription * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEventSubscription, get_SubscriptionID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubscriptionID )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubscriptionID); + + DECLSPEC_XFGVIRT(IEventSubscription, put_SubscriptionID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SubscriptionID )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrSubscriptionID); + + DECLSPEC_XFGVIRT(IEventSubscription, get_SubscriptionName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubscriptionName )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubscriptionName); + + DECLSPEC_XFGVIRT(IEventSubscription, put_SubscriptionName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SubscriptionName )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrSubscriptionName); + + DECLSPEC_XFGVIRT(IEventSubscription, get_PublisherID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublisherID )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPublisherID); + + DECLSPEC_XFGVIRT(IEventSubscription, put_PublisherID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PublisherID )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrPublisherID); + + DECLSPEC_XFGVIRT(IEventSubscription, get_EventClassID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventClassID )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEventClassID); + + DECLSPEC_XFGVIRT(IEventSubscription, put_EventClassID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventClassID )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrEventClassID); + + DECLSPEC_XFGVIRT(IEventSubscription, get_MethodName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MethodName )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrMethodName); + + DECLSPEC_XFGVIRT(IEventSubscription, put_MethodName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MethodName )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrMethodName); + + DECLSPEC_XFGVIRT(IEventSubscription, get_SubscriberCLSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubscriberCLSID )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubscriberCLSID); + + DECLSPEC_XFGVIRT(IEventSubscription, put_SubscriberCLSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SubscriberCLSID )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrSubscriberCLSID); + + DECLSPEC_XFGVIRT(IEventSubscription, get_SubscriberInterface) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubscriberInterface )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppSubscriberInterface); + + DECLSPEC_XFGVIRT(IEventSubscription, put_SubscriberInterface) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SubscriberInterface )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in_opt IUnknown *pSubscriberInterface); + + DECLSPEC_XFGVIRT(IEventSubscription, get_PerUser) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PerUser )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__out BOOL *pfPerUser); + + DECLSPEC_XFGVIRT(IEventSubscription, put_PerUser) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PerUser )( + __RPC__in IEventSubscription * This, + /* [in] */ BOOL fPerUser); + + DECLSPEC_XFGVIRT(IEventSubscription, get_OwnerSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OwnerSID )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOwnerSID); + + DECLSPEC_XFGVIRT(IEventSubscription, put_OwnerSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OwnerSID )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrOwnerSID); + + DECLSPEC_XFGVIRT(IEventSubscription, get_Enabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__out BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IEventSubscription, put_Enabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enabled )( + __RPC__in IEventSubscription * This, + /* [in] */ BOOL fEnabled); + + DECLSPEC_XFGVIRT(IEventSubscription, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IEventSubscription, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IEventSubscription, get_MachineName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MachineName )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrMachineName); + + DECLSPEC_XFGVIRT(IEventSubscription, put_MachineName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MachineName )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrMachineName); + + DECLSPEC_XFGVIRT(IEventSubscription, GetPublisherProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPublisherProperty )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [retval][out] */ __RPC__out VARIANT *propertyValue); + + DECLSPEC_XFGVIRT(IEventSubscription, PutPublisherProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PutPublisherProperty )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [in] */ __RPC__in VARIANT *propertyValue); + + DECLSPEC_XFGVIRT(IEventSubscription, RemovePublisherProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemovePublisherProperty )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrPropertyName); + + DECLSPEC_XFGVIRT(IEventSubscription, GetPublisherPropertyCollection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPublisherPropertyCollection )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt IEventObjectCollection **collection); + + DECLSPEC_XFGVIRT(IEventSubscription, GetSubscriberProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSubscriberProperty )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [retval][out] */ __RPC__out VARIANT *propertyValue); + + DECLSPEC_XFGVIRT(IEventSubscription, PutSubscriberProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PutSubscriberProperty )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrPropertyName, + /* [in] */ __RPC__in VARIANT *propertyValue); + + DECLSPEC_XFGVIRT(IEventSubscription, RemoveSubscriberProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveSubscriberProperty )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrPropertyName); + + DECLSPEC_XFGVIRT(IEventSubscription, GetSubscriberPropertyCollection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSubscriberPropertyCollection )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt IEventObjectCollection **collection); + + DECLSPEC_XFGVIRT(IEventSubscription, get_InterfaceID) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_InterfaceID )( + __RPC__in IEventSubscription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrInterfaceID); + + DECLSPEC_XFGVIRT(IEventSubscription, put_InterfaceID) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_InterfaceID )( + __RPC__in IEventSubscription * This, + /* [in] */ __RPC__in BSTR bstrInterfaceID); + + END_INTERFACE + } IEventSubscriptionVtbl; + + interface IEventSubscription + { + CONST_VTBL struct IEventSubscriptionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventSubscription_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventSubscription_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventSubscription_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventSubscription_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEventSubscription_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEventSubscription_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEventSubscription_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEventSubscription_get_SubscriptionID(This,pbstrSubscriptionID) \ + ( (This)->lpVtbl -> get_SubscriptionID(This,pbstrSubscriptionID) ) + +#define IEventSubscription_put_SubscriptionID(This,bstrSubscriptionID) \ + ( (This)->lpVtbl -> put_SubscriptionID(This,bstrSubscriptionID) ) + +#define IEventSubscription_get_SubscriptionName(This,pbstrSubscriptionName) \ + ( (This)->lpVtbl -> get_SubscriptionName(This,pbstrSubscriptionName) ) + +#define IEventSubscription_put_SubscriptionName(This,bstrSubscriptionName) \ + ( (This)->lpVtbl -> put_SubscriptionName(This,bstrSubscriptionName) ) + +#define IEventSubscription_get_PublisherID(This,pbstrPublisherID) \ + ( (This)->lpVtbl -> get_PublisherID(This,pbstrPublisherID) ) + +#define IEventSubscription_put_PublisherID(This,bstrPublisherID) \ + ( (This)->lpVtbl -> put_PublisherID(This,bstrPublisherID) ) + +#define IEventSubscription_get_EventClassID(This,pbstrEventClassID) \ + ( (This)->lpVtbl -> get_EventClassID(This,pbstrEventClassID) ) + +#define IEventSubscription_put_EventClassID(This,bstrEventClassID) \ + ( (This)->lpVtbl -> put_EventClassID(This,bstrEventClassID) ) + +#define IEventSubscription_get_MethodName(This,pbstrMethodName) \ + ( (This)->lpVtbl -> get_MethodName(This,pbstrMethodName) ) + +#define IEventSubscription_put_MethodName(This,bstrMethodName) \ + ( (This)->lpVtbl -> put_MethodName(This,bstrMethodName) ) + +#define IEventSubscription_get_SubscriberCLSID(This,pbstrSubscriberCLSID) \ + ( (This)->lpVtbl -> get_SubscriberCLSID(This,pbstrSubscriberCLSID) ) + +#define IEventSubscription_put_SubscriberCLSID(This,bstrSubscriberCLSID) \ + ( (This)->lpVtbl -> put_SubscriberCLSID(This,bstrSubscriberCLSID) ) + +#define IEventSubscription_get_SubscriberInterface(This,ppSubscriberInterface) \ + ( (This)->lpVtbl -> get_SubscriberInterface(This,ppSubscriberInterface) ) + +#define IEventSubscription_put_SubscriberInterface(This,pSubscriberInterface) \ + ( (This)->lpVtbl -> put_SubscriberInterface(This,pSubscriberInterface) ) + +#define IEventSubscription_get_PerUser(This,pfPerUser) \ + ( (This)->lpVtbl -> get_PerUser(This,pfPerUser) ) + +#define IEventSubscription_put_PerUser(This,fPerUser) \ + ( (This)->lpVtbl -> put_PerUser(This,fPerUser) ) + +#define IEventSubscription_get_OwnerSID(This,pbstrOwnerSID) \ + ( (This)->lpVtbl -> get_OwnerSID(This,pbstrOwnerSID) ) + +#define IEventSubscription_put_OwnerSID(This,bstrOwnerSID) \ + ( (This)->lpVtbl -> put_OwnerSID(This,bstrOwnerSID) ) + +#define IEventSubscription_get_Enabled(This,pfEnabled) \ + ( (This)->lpVtbl -> get_Enabled(This,pfEnabled) ) + +#define IEventSubscription_put_Enabled(This,fEnabled) \ + ( (This)->lpVtbl -> put_Enabled(This,fEnabled) ) + +#define IEventSubscription_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IEventSubscription_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IEventSubscription_get_MachineName(This,pbstrMachineName) \ + ( (This)->lpVtbl -> get_MachineName(This,pbstrMachineName) ) + +#define IEventSubscription_put_MachineName(This,bstrMachineName) \ + ( (This)->lpVtbl -> put_MachineName(This,bstrMachineName) ) + +#define IEventSubscription_GetPublisherProperty(This,bstrPropertyName,propertyValue) \ + ( (This)->lpVtbl -> GetPublisherProperty(This,bstrPropertyName,propertyValue) ) + +#define IEventSubscription_PutPublisherProperty(This,bstrPropertyName,propertyValue) \ + ( (This)->lpVtbl -> PutPublisherProperty(This,bstrPropertyName,propertyValue) ) + +#define IEventSubscription_RemovePublisherProperty(This,bstrPropertyName) \ + ( (This)->lpVtbl -> RemovePublisherProperty(This,bstrPropertyName) ) + +#define IEventSubscription_GetPublisherPropertyCollection(This,collection) \ + ( (This)->lpVtbl -> GetPublisherPropertyCollection(This,collection) ) + +#define IEventSubscription_GetSubscriberProperty(This,bstrPropertyName,propertyValue) \ + ( (This)->lpVtbl -> GetSubscriberProperty(This,bstrPropertyName,propertyValue) ) + +#define IEventSubscription_PutSubscriberProperty(This,bstrPropertyName,propertyValue) \ + ( (This)->lpVtbl -> PutSubscriberProperty(This,bstrPropertyName,propertyValue) ) + +#define IEventSubscription_RemoveSubscriberProperty(This,bstrPropertyName) \ + ( (This)->lpVtbl -> RemoveSubscriberProperty(This,bstrPropertyName) ) + +#define IEventSubscription_GetSubscriberPropertyCollection(This,collection) \ + ( (This)->lpVtbl -> GetSubscriberPropertyCollection(This,collection) ) + +#define IEventSubscription_get_InterfaceID(This,pbstrInterfaceID) \ + ( (This)->lpVtbl -> get_InterfaceID(This,pbstrInterfaceID) ) + +#define IEventSubscription_put_InterfaceID(This,bstrInterfaceID) \ + ( (This)->lpVtbl -> put_InterfaceID(This,bstrInterfaceID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventSubscription_INTERFACE_DEFINED__ */ + + +#ifndef __IFiringControl_INTERFACE_DEFINED__ +#define __IFiringControl_INTERFACE_DEFINED__ + +/* interface IFiringControl */ +/* [unique][helpstring][proxy][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFiringControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e0498c93-4efe-11d1-9971-00c04fbbb345") + IFiringControl : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE FireSubscription( + /* [in] */ __RPC__in_opt IEventSubscription *subscription) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFiringControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFiringControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFiringControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFiringControl * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFiringControl * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFiringControl * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFiringControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFiringControl * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFiringControl, FireSubscription) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FireSubscription )( + __RPC__in IFiringControl * This, + /* [in] */ __RPC__in_opt IEventSubscription *subscription); + + END_INTERFACE + } IFiringControlVtbl; + + interface IFiringControl + { + CONST_VTBL struct IFiringControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFiringControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFiringControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFiringControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFiringControl_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFiringControl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFiringControl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFiringControl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFiringControl_FireSubscription(This,subscription) \ + ( (This)->lpVtbl -> FireSubscription(This,subscription) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFiringControl_INTERFACE_DEFINED__ */ + + +#ifndef __IPublisherFilter_INTERFACE_DEFINED__ +#define __IPublisherFilter_INTERFACE_DEFINED__ + +/* interface IPublisherFilter */ +/* [unique][helpstring][uuid][object] */ + +// **************************************************************************** +// This is a Deprecated interface - Use IMultiInterfacePublisherFilter instead. +// **************************************************************************** + +EXTERN_C const IID IID_IPublisherFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("465e5cc0-7b26-11d1-88fb-0080c7d771bf") + IPublisherFilter : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in BSTR methodName, + /* [unique][in] */ __RPC__in_opt IDispatch *dispUserDefined) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PrepareToFire( + /* [in] */ __RPC__in BSTR methodName, + /* [in] */ __RPC__in_opt IFiringControl *firingControl) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPublisherFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPublisherFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPublisherFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPublisherFilter * This); + + DECLSPEC_XFGVIRT(IPublisherFilter, Initialize) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IPublisherFilter * This, + /* [in] */ __RPC__in BSTR methodName, + /* [unique][in] */ __RPC__in_opt IDispatch *dispUserDefined); + + DECLSPEC_XFGVIRT(IPublisherFilter, PrepareToFire) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *PrepareToFire )( + __RPC__in IPublisherFilter * This, + /* [in] */ __RPC__in BSTR methodName, + /* [in] */ __RPC__in_opt IFiringControl *firingControl); + + END_INTERFACE + } IPublisherFilterVtbl; + + interface IPublisherFilter + { + CONST_VTBL struct IPublisherFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPublisherFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPublisherFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPublisherFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPublisherFilter_Initialize(This,methodName,dispUserDefined) \ + ( (This)->lpVtbl -> Initialize(This,methodName,dispUserDefined) ) + +#define IPublisherFilter_PrepareToFire(This,methodName,firingControl) \ + ( (This)->lpVtbl -> PrepareToFire(This,methodName,firingControl) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPublisherFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IMultiInterfacePublisherFilter_INTERFACE_DEFINED__ +#define __IMultiInterfacePublisherFilter_INTERFACE_DEFINED__ + +/* interface IMultiInterfacePublisherFilter */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMultiInterfacePublisherFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("465e5cc1-7b26-11d1-88fb-0080c7d771bf") + IMultiInterfacePublisherFilter : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IMultiInterfaceEventControl *pEIC) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PrepareToFire( + /* [in] */ __RPC__in REFIID iid, + /* [in] */ __RPC__in BSTR methodName, + /* [in] */ __RPC__in_opt IFiringControl *firingControl) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMultiInterfacePublisherFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMultiInterfacePublisherFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMultiInterfacePublisherFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMultiInterfacePublisherFilter * This); + + DECLSPEC_XFGVIRT(IMultiInterfacePublisherFilter, Initialize) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IMultiInterfacePublisherFilter * This, + /* [in] */ __RPC__in_opt IMultiInterfaceEventControl *pEIC); + + DECLSPEC_XFGVIRT(IMultiInterfacePublisherFilter, PrepareToFire) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *PrepareToFire )( + __RPC__in IMultiInterfacePublisherFilter * This, + /* [in] */ __RPC__in REFIID iid, + /* [in] */ __RPC__in BSTR methodName, + /* [in] */ __RPC__in_opt IFiringControl *firingControl); + + END_INTERFACE + } IMultiInterfacePublisherFilterVtbl; + + interface IMultiInterfacePublisherFilter + { + CONST_VTBL struct IMultiInterfacePublisherFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMultiInterfacePublisherFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMultiInterfacePublisherFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMultiInterfacePublisherFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMultiInterfacePublisherFilter_Initialize(This,pEIC) \ + ( (This)->lpVtbl -> Initialize(This,pEIC) ) + +#define IMultiInterfacePublisherFilter_PrepareToFire(This,iid,methodName,firingControl) \ + ( (This)->lpVtbl -> PrepareToFire(This,iid,methodName,firingControl) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMultiInterfacePublisherFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IEventObjectChange_INTERFACE_DEFINED__ +#define __IEventObjectChange_INTERFACE_DEFINED__ + +/* interface IEventObjectChange */ +/* [unique][helpstring][uuid][object] */ + +typedef /* [public][public][public][public][public][public] */ +enum __MIDL_IEventObjectChange_0001 + { + EOC_NewObject = 0, + EOC_ModifiedObject = ( EOC_NewObject + 1 ) , + EOC_DeletedObject = ( EOC_ModifiedObject + 1 ) + } EOC_ChangeType; + + +EXTERN_C const IID IID_IEventObjectChange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F4A07D70-2E25-11D1-9964-00C04FBBB345") + IEventObjectChange : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ChangedSubscription( + /* [in] */ EOC_ChangeType changeType, + /* [in] */ __RPC__in BSTR bstrSubscriptionID) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ChangedEventClass( + /* [in] */ EOC_ChangeType changeType, + /* [in] */ __RPC__in BSTR bstrEventClassID) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ChangedPublisher( + /* [in] */ EOC_ChangeType changeType, + /* [in] */ __RPC__in BSTR bstrPublisherID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventObjectChangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventObjectChange * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventObjectChange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventObjectChange * This); + + DECLSPEC_XFGVIRT(IEventObjectChange, ChangedSubscription) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ChangedSubscription )( + __RPC__in IEventObjectChange * This, + /* [in] */ EOC_ChangeType changeType, + /* [in] */ __RPC__in BSTR bstrSubscriptionID); + + DECLSPEC_XFGVIRT(IEventObjectChange, ChangedEventClass) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ChangedEventClass )( + __RPC__in IEventObjectChange * This, + /* [in] */ EOC_ChangeType changeType, + /* [in] */ __RPC__in BSTR bstrEventClassID); + + DECLSPEC_XFGVIRT(IEventObjectChange, ChangedPublisher) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ChangedPublisher )( + __RPC__in IEventObjectChange * This, + /* [in] */ EOC_ChangeType changeType, + /* [in] */ __RPC__in BSTR bstrPublisherID); + + END_INTERFACE + } IEventObjectChangeVtbl; + + interface IEventObjectChange + { + CONST_VTBL struct IEventObjectChangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventObjectChange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventObjectChange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventObjectChange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventObjectChange_ChangedSubscription(This,changeType,bstrSubscriptionID) \ + ( (This)->lpVtbl -> ChangedSubscription(This,changeType,bstrSubscriptionID) ) + +#define IEventObjectChange_ChangedEventClass(This,changeType,bstrEventClassID) \ + ( (This)->lpVtbl -> ChangedEventClass(This,changeType,bstrEventClassID) ) + +#define IEventObjectChange_ChangedPublisher(This,changeType,bstrPublisherID) \ + ( (This)->lpVtbl -> ChangedPublisher(This,changeType,bstrPublisherID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventObjectChange_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_eventsys_0000_0009 */ +/* [local] */ + +#ifndef _COMEVENTSYSCHANGEINFO_ +#define _COMEVENTSYSCHANGEINFO_ +typedef /* [public][public][public][hidden] */ struct __MIDL___MIDL_itf_eventsys_0000_0009_0001 + { + DWORD cbSize; + EOC_ChangeType changeType; + BSTR objectId; + BSTR partitionId; + BSTR applicationId; + GUID reserved[ 10 ]; + } COMEVENTSYSCHANGEINFO; + +#endif // _COMEVENTSYSCHANGEINFO_ + + +extern RPC_IF_HANDLE __MIDL_itf_eventsys_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_eventsys_0000_0009_v0_0_s_ifspec; + +#ifndef __IEventObjectChange2_INTERFACE_DEFINED__ +#define __IEventObjectChange2_INTERFACE_DEFINED__ + +/* interface IEventObjectChange2 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEventObjectChange2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7701A9C3-BD68-438f-83E0-67BF4F53A422") + IEventObjectChange2 : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ChangedSubscription( + /* [in] */ __RPC__in COMEVENTSYSCHANGEINFO *pInfo) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ChangedEventClass( + /* [in] */ __RPC__in COMEVENTSYSCHANGEINFO *pInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventObjectChange2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventObjectChange2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventObjectChange2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventObjectChange2 * This); + + DECLSPEC_XFGVIRT(IEventObjectChange2, ChangedSubscription) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ChangedSubscription )( + __RPC__in IEventObjectChange2 * This, + /* [in] */ __RPC__in COMEVENTSYSCHANGEINFO *pInfo); + + DECLSPEC_XFGVIRT(IEventObjectChange2, ChangedEventClass) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ChangedEventClass )( + __RPC__in IEventObjectChange2 * This, + /* [in] */ __RPC__in COMEVENTSYSCHANGEINFO *pInfo); + + END_INTERFACE + } IEventObjectChange2Vtbl; + + interface IEventObjectChange2 + { + CONST_VTBL struct IEventObjectChange2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventObjectChange2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventObjectChange2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventObjectChange2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventObjectChange2_ChangedSubscription(This,pInfo) \ + ( (This)->lpVtbl -> ChangedSubscription(This,pInfo) ) + +#define IEventObjectChange2_ChangedEventClass(This,pInfo) \ + ( (This)->lpVtbl -> ChangedEventClass(This,pInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventObjectChange2_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumEventObject_INTERFACE_DEFINED__ +#define __IEnumEventObject_INTERFACE_DEFINED__ + +/* interface IEnumEventObject */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumEventObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F4A07D63-2E25-11D1-9964-00C04FBBB345") + IEnumEventObject : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumEventObject **ppInterface) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG cReqElem, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cReqElem, *cRetElem) IUnknown **ppInterface, + /* [out] */ __RPC__out ULONG *cRetElem) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG cSkipElem) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumEventObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumEventObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumEventObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumEventObject * This); + + DECLSPEC_XFGVIRT(IEnumEventObject, Clone) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumEventObject * This, + /* [out] */ __RPC__deref_out_opt IEnumEventObject **ppInterface); + + DECLSPEC_XFGVIRT(IEnumEventObject, Next) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumEventObject * This, + /* [in] */ ULONG cReqElem, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cReqElem, *cRetElem) IUnknown **ppInterface, + /* [out] */ __RPC__out ULONG *cRetElem); + + DECLSPEC_XFGVIRT(IEnumEventObject, Reset) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumEventObject * This); + + DECLSPEC_XFGVIRT(IEnumEventObject, Skip) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumEventObject * This, + /* [in] */ ULONG cSkipElem); + + END_INTERFACE + } IEnumEventObjectVtbl; + + interface IEnumEventObject + { + CONST_VTBL struct IEnumEventObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumEventObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumEventObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumEventObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumEventObject_Clone(This,ppInterface) \ + ( (This)->lpVtbl -> Clone(This,ppInterface) ) + +#define IEnumEventObject_Next(This,cReqElem,ppInterface,cRetElem) \ + ( (This)->lpVtbl -> Next(This,cReqElem,ppInterface,cRetElem) ) + +#define IEnumEventObject_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumEventObject_Skip(This,cSkipElem) \ + ( (This)->lpVtbl -> Skip(This,cSkipElem) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumEventObject_INTERFACE_DEFINED__ */ + + +#ifndef __IEventObjectCollection_INTERFACE_DEFINED__ +#define __IEventObjectCollection_INTERFACE_DEFINED__ + +/* interface IEventObjectCollection */ +/* [unique][helpstring][proxy][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEventObjectCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f89ac270-d4eb-11d1-b682-00805fc79216") + IEventObjectCollection : public IDispatch + { + public: + virtual /* [helpstring][restricted][propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnkEnum) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ __RPC__in BSTR objectID, + /* [retval][out] */ __RPC__out VARIANT *pItem) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumEventObject **ppEnum) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in VARIANT *item, + /* [in] */ __RPC__in BSTR objectID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ __RPC__in BSTR objectID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventObjectCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventObjectCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventObjectCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventObjectCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IEventObjectCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IEventObjectCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IEventObjectCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEventObjectCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEventObjectCollection, get__NewEnum) + /* [helpstring][restricted][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IEventObjectCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnkEnum); + + DECLSPEC_XFGVIRT(IEventObjectCollection, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IEventObjectCollection * This, + /* [in] */ __RPC__in BSTR objectID, + /* [retval][out] */ __RPC__out VARIANT *pItem); + + DECLSPEC_XFGVIRT(IEventObjectCollection, get_NewEnum) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NewEnum )( + __RPC__in IEventObjectCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumEventObject **ppEnum); + + DECLSPEC_XFGVIRT(IEventObjectCollection, get_Count) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IEventObjectCollection * This, + /* [retval][out] */ __RPC__out long *pCount); + + DECLSPEC_XFGVIRT(IEventObjectCollection, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IEventObjectCollection * This, + /* [in] */ __RPC__in VARIANT *item, + /* [in] */ __RPC__in BSTR objectID); + + DECLSPEC_XFGVIRT(IEventObjectCollection, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IEventObjectCollection * This, + /* [in] */ __RPC__in BSTR objectID); + + END_INTERFACE + } IEventObjectCollectionVtbl; + + interface IEventObjectCollection + { + CONST_VTBL struct IEventObjectCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventObjectCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventObjectCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventObjectCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventObjectCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEventObjectCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEventObjectCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEventObjectCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEventObjectCollection_get__NewEnum(This,ppUnkEnum) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnkEnum) ) + +#define IEventObjectCollection_get_Item(This,objectID,pItem) \ + ( (This)->lpVtbl -> get_Item(This,objectID,pItem) ) + +#define IEventObjectCollection_get_NewEnum(This,ppEnum) \ + ( (This)->lpVtbl -> get_NewEnum(This,ppEnum) ) + +#define IEventObjectCollection_get_Count(This,pCount) \ + ( (This)->lpVtbl -> get_Count(This,pCount) ) + +#define IEventObjectCollection_Add(This,item,objectID) \ + ( (This)->lpVtbl -> Add(This,item,objectID) ) + +#define IEventObjectCollection_Remove(This,objectID) \ + ( (This)->lpVtbl -> Remove(This,objectID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventObjectCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IEventProperty_INTERFACE_DEFINED__ +#define __IEventProperty_INTERFACE_DEFINED__ + +/* interface IEventProperty */ +/* [unique][helpstring][proxy][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEventProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("da538ee2-f4de-11d1-b6bb-00805fc79216") + IEventProperty : public IDispatch + { + public: + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *propertyName) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR propertyName) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *propertyValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ __RPC__in VARIANT *propertyValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventProperty * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IEventProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IEventProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IEventProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEventProperty * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEventProperty, get_Name) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IEventProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *propertyName); + + DECLSPEC_XFGVIRT(IEventProperty, put_Name) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IEventProperty * This, + /* [in] */ __RPC__in BSTR propertyName); + + DECLSPEC_XFGVIRT(IEventProperty, get_Value) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IEventProperty * This, + /* [retval][out] */ __RPC__out VARIANT *propertyValue); + + DECLSPEC_XFGVIRT(IEventProperty, put_Value) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in IEventProperty * This, + /* [in] */ __RPC__in VARIANT *propertyValue); + + END_INTERFACE + } IEventPropertyVtbl; + + interface IEventProperty + { + CONST_VTBL struct IEventPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventProperty_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEventProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEventProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEventProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEventProperty_get_Name(This,propertyName) \ + ( (This)->lpVtbl -> get_Name(This,propertyName) ) + +#define IEventProperty_put_Name(This,propertyName) \ + ( (This)->lpVtbl -> put_Name(This,propertyName) ) + +#define IEventProperty_get_Value(This,propertyValue) \ + ( (This)->lpVtbl -> get_Value(This,propertyValue) ) + +#define IEventProperty_put_Value(This,propertyValue) \ + ( (This)->lpVtbl -> put_Value(This,propertyValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IEventControl_INTERFACE_DEFINED__ +#define __IEventControl_INTERFACE_DEFINED__ + +/* interface IEventControl */ +/* [unique][helpstring][proxy][dual][uuid][object] */ + +// ************************************************************************* +// This is a Deprecated interface - Use IMultiInterfaceEventControl instead. +// ************************************************************************* + +EXTERN_C const IID IID_IEventControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0343e2f4-86f6-11d1-b760-00c04fb926af") + IEventControl : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetPublisherFilter( + /* [in] */ __RPC__in BSTR methodName, + /* [unique][in] */ __RPC__in_opt IPublisherFilter *pPublisherFilter) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AllowInprocActivation( + /* [retval][out] */ __RPC__out BOOL *pfAllowInprocActivation) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AllowInprocActivation( + /* [in] */ BOOL fAllowInprocActivation) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSubscriptions( + /* [unique][in] */ __RPC__in_opt BSTR methodName, + /* [unique][in] */ __RPC__in_opt BSTR optionalCriteria, + /* [unique][in] */ __RPC__in_opt int *optionalErrorIndex, + /* [retval][out] */ __RPC__deref_out_opt IEventObjectCollection **ppCollection) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetDefaultQuery( + /* [in] */ __RPC__in BSTR methodName, + /* [in] */ __RPC__in BSTR criteria, + /* [retval][out] */ __RPC__out int *errorIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEventControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEventControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEventControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEventControl * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IEventControl * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IEventControl * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IEventControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEventControl * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IEventControl, SetPublisherFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetPublisherFilter )( + __RPC__in IEventControl * This, + /* [in] */ __RPC__in BSTR methodName, + /* [unique][in] */ __RPC__in_opt IPublisherFilter *pPublisherFilter); + + DECLSPEC_XFGVIRT(IEventControl, get_AllowInprocActivation) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowInprocActivation )( + __RPC__in IEventControl * This, + /* [retval][out] */ __RPC__out BOOL *pfAllowInprocActivation); + + DECLSPEC_XFGVIRT(IEventControl, put_AllowInprocActivation) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowInprocActivation )( + __RPC__in IEventControl * This, + /* [in] */ BOOL fAllowInprocActivation); + + DECLSPEC_XFGVIRT(IEventControl, GetSubscriptions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSubscriptions )( + __RPC__in IEventControl * This, + /* [unique][in] */ __RPC__in_opt BSTR methodName, + /* [unique][in] */ __RPC__in_opt BSTR optionalCriteria, + /* [unique][in] */ __RPC__in_opt int *optionalErrorIndex, + /* [retval][out] */ __RPC__deref_out_opt IEventObjectCollection **ppCollection); + + DECLSPEC_XFGVIRT(IEventControl, SetDefaultQuery) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetDefaultQuery )( + __RPC__in IEventControl * This, + /* [in] */ __RPC__in BSTR methodName, + /* [in] */ __RPC__in BSTR criteria, + /* [retval][out] */ __RPC__out int *errorIndex); + + END_INTERFACE + } IEventControlVtbl; + + interface IEventControl + { + CONST_VTBL struct IEventControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEventControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEventControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEventControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEventControl_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IEventControl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IEventControl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IEventControl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IEventControl_SetPublisherFilter(This,methodName,pPublisherFilter) \ + ( (This)->lpVtbl -> SetPublisherFilter(This,methodName,pPublisherFilter) ) + +#define IEventControl_get_AllowInprocActivation(This,pfAllowInprocActivation) \ + ( (This)->lpVtbl -> get_AllowInprocActivation(This,pfAllowInprocActivation) ) + +#define IEventControl_put_AllowInprocActivation(This,fAllowInprocActivation) \ + ( (This)->lpVtbl -> put_AllowInprocActivation(This,fAllowInprocActivation) ) + +#define IEventControl_GetSubscriptions(This,methodName,optionalCriteria,optionalErrorIndex,ppCollection) \ + ( (This)->lpVtbl -> GetSubscriptions(This,methodName,optionalCriteria,optionalErrorIndex,ppCollection) ) + +#define IEventControl_SetDefaultQuery(This,methodName,criteria,errorIndex) \ + ( (This)->lpVtbl -> SetDefaultQuery(This,methodName,criteria,errorIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEventControl_INTERFACE_DEFINED__ */ + + +#ifndef __IMultiInterfaceEventControl_INTERFACE_DEFINED__ +#define __IMultiInterfaceEventControl_INTERFACE_DEFINED__ + +/* interface IMultiInterfaceEventControl */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMultiInterfaceEventControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0343e2f5-86f6-11d1-b760-00c04fb926af") + IMultiInterfaceEventControl : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMultiInterfacePublisherFilter( + /* [unique][in] */ __RPC__in_opt IMultiInterfacePublisherFilter *classFilter) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSubscriptions( + /* [in] */ __RPC__in REFIID eventIID, + /* [unique][in] */ __RPC__in_opt BSTR bstrMethodName, + /* [unique][in] */ __RPC__in_opt BSTR optionalCriteria, + /* [unique][in] */ __RPC__in_opt int *optionalErrorIndex, + /* [retval][out] */ __RPC__deref_out_opt IEventObjectCollection **ppCollection) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetDefaultQuery( + /* [in] */ __RPC__in REFIID eventIID, + /* [in] */ __RPC__in BSTR bstrMethodName, + /* [in] */ __RPC__in BSTR bstrCriteria, + /* [retval][out] */ __RPC__out int *errorIndex) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_AllowInprocActivation( + /* [retval][out] */ __RPC__out BOOL *pfAllowInprocActivation) = 0; + + virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_AllowInprocActivation( + /* [in] */ BOOL fAllowInprocActivation) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_FireInParallel( + /* [retval][out] */ __RPC__out BOOL *pfFireInParallel) = 0; + + virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_FireInParallel( + /* [in] */ BOOL fFireInParallel) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMultiInterfaceEventControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMultiInterfaceEventControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMultiInterfaceEventControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMultiInterfaceEventControl * This); + + DECLSPEC_XFGVIRT(IMultiInterfaceEventControl, SetMultiInterfacePublisherFilter) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMultiInterfacePublisherFilter )( + __RPC__in IMultiInterfaceEventControl * This, + /* [unique][in] */ __RPC__in_opt IMultiInterfacePublisherFilter *classFilter); + + DECLSPEC_XFGVIRT(IMultiInterfaceEventControl, GetSubscriptions) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSubscriptions )( + __RPC__in IMultiInterfaceEventControl * This, + /* [in] */ __RPC__in REFIID eventIID, + /* [unique][in] */ __RPC__in_opt BSTR bstrMethodName, + /* [unique][in] */ __RPC__in_opt BSTR optionalCriteria, + /* [unique][in] */ __RPC__in_opt int *optionalErrorIndex, + /* [retval][out] */ __RPC__deref_out_opt IEventObjectCollection **ppCollection); + + DECLSPEC_XFGVIRT(IMultiInterfaceEventControl, SetDefaultQuery) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetDefaultQuery )( + __RPC__in IMultiInterfaceEventControl * This, + /* [in] */ __RPC__in REFIID eventIID, + /* [in] */ __RPC__in BSTR bstrMethodName, + /* [in] */ __RPC__in BSTR bstrCriteria, + /* [retval][out] */ __RPC__out int *errorIndex); + + DECLSPEC_XFGVIRT(IMultiInterfaceEventControl, get_AllowInprocActivation) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowInprocActivation )( + __RPC__in IMultiInterfaceEventControl * This, + /* [retval][out] */ __RPC__out BOOL *pfAllowInprocActivation); + + DECLSPEC_XFGVIRT(IMultiInterfaceEventControl, put_AllowInprocActivation) + /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowInprocActivation )( + __RPC__in IMultiInterfaceEventControl * This, + /* [in] */ BOOL fAllowInprocActivation); + + DECLSPEC_XFGVIRT(IMultiInterfaceEventControl, get_FireInParallel) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FireInParallel )( + __RPC__in IMultiInterfaceEventControl * This, + /* [retval][out] */ __RPC__out BOOL *pfFireInParallel); + + DECLSPEC_XFGVIRT(IMultiInterfaceEventControl, put_FireInParallel) + /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FireInParallel )( + __RPC__in IMultiInterfaceEventControl * This, + /* [in] */ BOOL fFireInParallel); + + END_INTERFACE + } IMultiInterfaceEventControlVtbl; + + interface IMultiInterfaceEventControl + { + CONST_VTBL struct IMultiInterfaceEventControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMultiInterfaceEventControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMultiInterfaceEventControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMultiInterfaceEventControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMultiInterfaceEventControl_SetMultiInterfacePublisherFilter(This,classFilter) \ + ( (This)->lpVtbl -> SetMultiInterfacePublisherFilter(This,classFilter) ) + +#define IMultiInterfaceEventControl_GetSubscriptions(This,eventIID,bstrMethodName,optionalCriteria,optionalErrorIndex,ppCollection) \ + ( (This)->lpVtbl -> GetSubscriptions(This,eventIID,bstrMethodName,optionalCriteria,optionalErrorIndex,ppCollection) ) + +#define IMultiInterfaceEventControl_SetDefaultQuery(This,eventIID,bstrMethodName,bstrCriteria,errorIndex) \ + ( (This)->lpVtbl -> SetDefaultQuery(This,eventIID,bstrMethodName,bstrCriteria,errorIndex) ) + +#define IMultiInterfaceEventControl_get_AllowInprocActivation(This,pfAllowInprocActivation) \ + ( (This)->lpVtbl -> get_AllowInprocActivation(This,pfAllowInprocActivation) ) + +#define IMultiInterfaceEventControl_put_AllowInprocActivation(This,fAllowInprocActivation) \ + ( (This)->lpVtbl -> put_AllowInprocActivation(This,fAllowInprocActivation) ) + +#define IMultiInterfaceEventControl_get_FireInParallel(This,pfFireInParallel) \ + ( (This)->lpVtbl -> get_FireInParallel(This,pfFireInParallel) ) + +#define IMultiInterfaceEventControl_put_FireInParallel(This,fFireInParallel) \ + ( (This)->lpVtbl -> put_FireInParallel(This,fFireInParallel) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMultiInterfaceEventControl_INTERFACE_DEFINED__ */ + + +#ifndef __IDontSupportEventSubscription_INTERFACE_DEFINED__ +#define __IDontSupportEventSubscription_INTERFACE_DEFINED__ + +/* interface IDontSupportEventSubscription */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDontSupportEventSubscription; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("784121F1-62A6-4b89-855F-D65F296DE83A") + IDontSupportEventSubscription : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct IDontSupportEventSubscriptionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDontSupportEventSubscription * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDontSupportEventSubscription * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDontSupportEventSubscription * This); + + END_INTERFACE + } IDontSupportEventSubscriptionVtbl; + + interface IDontSupportEventSubscription + { + CONST_VTBL struct IDontSupportEventSubscriptionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDontSupportEventSubscription_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDontSupportEventSubscription_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDontSupportEventSubscription_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDontSupportEventSubscription_INTERFACE_DEFINED__ */ + + + +#ifndef __DummyEventSystemLib_LIBRARY_DEFINED__ +#define __DummyEventSystemLib_LIBRARY_DEFINED__ + +/* library DummyEventSystemLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_DummyEventSystemLib; + +EXTERN_C const CLSID CLSID_CEventSystem; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4E14FBA2-2E22-11D1-9964-00C04FBBB345") +CEventSystem; +#endif + +EXTERN_C const CLSID CLSID_CEventPublisher; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ab944620-79c6-11d1-88f9-0080c7d771bf") +CEventPublisher; +#endif + +EXTERN_C const CLSID CLSID_CEventClass; + +#ifdef __cplusplus + +class DECLSPEC_UUID("cdbec9c0-7a68-11d1-88f9-0080c7d771bf") +CEventClass; +#endif + +EXTERN_C const CLSID CLSID_CEventSubscription; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7542e960-79c7-11d1-88f9-0080c7d771bf") +CEventSubscription; +#endif + +EXTERN_C const CLSID CLSID_EventObjectChange; + +#ifdef __cplusplus + +class DECLSPEC_UUID("d0565000-9df4-11d1-a281-00c04fca0aa7") +EventObjectChange; +#endif + +EXTERN_C const CLSID CLSID_EventObjectChange2; + +#ifdef __cplusplus + +class DECLSPEC_UUID("BB07BACD-CD56-4e63-A8FF-CBF0355FB9F4") +EventObjectChange2; +#endif +#endif /* __DummyEventSystemLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_eventsys_0000_0017 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_eventsys_0000_0017_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_eventsys_0000_0017_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExDisp.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExDisp.Idl new file mode 100644 index 0000000000000000000000000000000000000000..903a321bfcd6b0bb1b784b8faed35f768e783c91 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExDisp.Idl @@ -0,0 +1,1115 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +//;begin_internal +// +// NOTE: exdisp's tlb is registered through ieframe.man. You MUST update +// ieframe.man to include any registration changes you cause here. +// +//;end_internal +// +//-------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// exdisp.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "ocidl.idl"; +import "docobj.idl"; + +#include +#include "exdispid.h" + +cpp_quote("#define SID_SkipHung IID_IEnumVARIANT") + +[ + uuid(EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B), // LIBID_ShDocVw + helpstring("Microsoft Internet Controls"), + lcid(0x0000), + version(1.1) +] +library SHDocVw { + + importlib("stdole2.tlb"); + + [ + uuid(EAB22AC1-30C1-11CF-A7EB-0000C05BAE0B), // IID_IWebBrowser + helpstring("Web Browser interface"), + helpcontext(0x0000), + hidden, + dual, + oleautomation, + odl + ] + interface IWebBrowser : IDispatch + { + [id(100), helpstring("Navigates to the previous item in the history list."), helpcontext(0x0000)] + HRESULT GoBack(); + [id(101), helpstring("Navigates to the next item in the history list."), helpcontext(0x0000)] + HRESULT GoForward(); + [id(102), helpstring("Go home/start page."), helpcontext(0x0000)] + HRESULT GoHome(); + [id(103), helpstring("Go Search Page."), helpcontext(0x0000)] + HRESULT GoSearch(); + + [id(104), helpstring("Navigates to a URL or file."), helpcontext(0x0000)] + HRESULT Navigate([in] BSTR URL, + [in, optional, unique] VARIANT * Flags, + [in, optional, unique] VARIANT * TargetFrameName, + [in, optional, unique] VARIANT * PostData, + [in, optional, unique] VARIANT * Headers); + typedef + [ + uuid(14EE5380-A378-11cf-A731-00A0C9082637), + helpstring("Constants for WebBrowser navigation flags") + ] + enum BrowserNavConstants { + [helpstring("Open in new window")] navOpenInNewWindow = 0x0001, + [helpstring("Exclude from history list")] navNoHistory = 0x0002, + [helpstring("Don't read from cache")] navNoReadFromCache = 0x0004, + [helpstring("Don't write from cache")] navNoWriteToCache = 0x0008, + [helpstring("Try other sites on failure")] navAllowAutosearch = 0x0010, + [helpstring("OpenBrowserBar")] navBrowserBar = 0x0020, + [helpstring("Hyperlink")] navHyperlink = 0x0040, + [helpstring("Enforce restricted zone")] navEnforceRestricted = 0x0080, + [helpstring("Apply new window management")] navNewWindowsManaged = 0x0100, + [helpstring("Untrusted download")] navUntrustedForDownload = 0x0200, + [helpstring("Trusted for ActiveX prompt")] navTrustedForActiveX = 0x0400, + [helpstring("Open in new tab")] navOpenInNewTab = 0x0800, + [helpstring("Open in a background tab")] navOpenInBackgroundTab = 0x1000, + [helpstring("Maintain the wordwheel text")] navKeepWordWheelText = 0x2000, + [helpstring("Virtual tab across MIC levels")] navVirtualTab = 0x4000, + [helpstring("Block x-domain redirects")] navBlockRedirectsXDomain = 0x8000, + [helpstring("Force open in foreground tab")] navOpenNewForegroundTab = 0x10000, + [helpstring("Travel Log nav with screenshot")] navTravelLogScreenshot = 0x20000, + [helpstring("Defer unload of virtual tab")] navDeferUnload = 0x40000, + [helpstring("Speculative navigate")] navSpeculative = 0x80000, + [helpstring("Suggest open in new window")] navSuggestNewWindow = 0x100000, + [helpstring("Suggest open in new tab")] navSuggestNewTab = 0x200000, + [helpstring("Reserved")] navReserved1 = 0x400000, + [helpstring("HP navigation")] navHomepageNavigate = 0x800000, + [helpstring("Treat nav as refresh")] navRefresh = 0x1000000, + [helpstring("Host initiated navigation")] navHostNavigation = 0x2000000, + [helpstring("Reserved")] navReserved2 = 0x4000000, + [helpstring("Reserved")] navReserved3 = 0x8000000, + [helpstring("Reserved")] navReserved4 = 0x10000000, + [helpstring("Reserved")] navReserved5 = 0x20000000, + [helpstring("Reserved")] navReserved6 = 0x40000000, + [helpstring("Reserved")] navReserved7 = 0x80000000, + } BrowserNavConstants; + +cpp_quote("//;begin_internal") +cpp_quote("#define navUserInitiatedAction navReserved1") +cpp_quote("#define navDisableDownloadSave navReserved2") +cpp_quote("#define navServerRedirectedVtabSwitch navReserved3") +cpp_quote("#define navVtabSwitchNotUserInitiatedAction navReserved4") +cpp_quote("#define navCheckDontShowNeedIE navReserved5") +cpp_quote("#define navCheckDontShowNeedHVSI navReserved6") +cpp_quote("#define navCheckDontShowHVSINeedHost navReserved7") +cpp_quote("//;end_internal") + + [id(DISPID_REFRESH), helpstring("Refresh the currently viewed page."), helpcontext(0x0000)] + HRESULT Refresh(); + + // The standard Refresh takes no parameters and we need some... use a new name + [id(105), helpstring("Refresh the currently viewed page."), helpcontext(0x0000)] + HRESULT Refresh2([in, optional, unique] VARIANT * Level); + + typedef + [ + uuid(C317C261-A991-11cf-A731-00A0C9082637), + helpstring("Constants for Refresh") + ] + enum RefreshConstants { // must map to these in sdk\inc\docobj.h + [helpstring("Refresh normal")] REFRESH_NORMAL = 0, //== OLECMDIDF_REFRESH_NORMAL + [helpstring("Refresh if expired")] REFRESH_IFEXPIRED = 1, //== OLECMDIDF_REFRESH_IFEXPIRED + [helpstring("Refresh completely")] REFRESH_COMPLETELY = 3 //== OLECMDIDF_REFRESH_COMPLETELY + } RefreshConstants; + + [id(106), helpstring("Stops opening a file."), helpcontext(0x0000)] + HRESULT Stop(); + + // Automation heirarchy... + [id(200), propget, helpstring("Returns the application automation object if accessible, this automation object otherwise.."), helpcontext(0x0000)] + HRESULT Application([out,retval] IDispatch** ppDisp); + + [id(201), propget, helpstring("Returns the automation object of the container/parent if one exists or this automation object."), helpcontext(0x0000)] + HRESULT Parent([out,retval] IDispatch** ppDisp); + + [id(202), propget, helpstring("Returns the container/parent automation object, if any."), helpcontext(0x0000)] + HRESULT Container([out,retval] IDispatch** ppDisp); + + [id(203), propget, helpstring("Returns the active Document automation object, if any."), helpcontext(0x0000)] + HRESULT Document([out,retval] IDispatch** ppDisp); + + [id(204), propget, helpstring("Returns True if this is the top level object."), helpcontext(0x0000)] + HRESULT TopLevelContainer([out, retval] VARIANT_BOOL* pBool); + + [id(205), propget, helpstring("Returns the type of the contained document object."), helpcontext(0x0000)] + HRESULT Type([out,retval] BSTR* Type); + + // Window stuff... + [id(206), propget, helpstring("The horizontal position (pixels) of the frame window relative to the screen/container."), helpcontext(0x0000)] + HRESULT Left([out, retval] long *pl); + [id(206), propput] + HRESULT Left([in] long Left); + [id(207), propget, helpstring("The vertical position (pixels) of the frame window relative to the screen/container."), helpcontext(0x0000)] + HRESULT Top([out, retval] long *pl); + [id(207), propput] + HRESULT Top([in] long Top); + [id(208), propget, helpstring("The horizontal dimension (pixels) of the frame window/object."), helpcontext(0x0000)] + HRESULT Width([out, retval] long *pl); + [id(208), propput] + HRESULT Width([in] long Width); + [id(209), propget, helpstring("The vertical dimension (pixels) of the frame window/object."), helpcontext(0x0000)] + HRESULT Height([out, retval] long *pl); + [id(209), propput] + HRESULT Height([in] long Height); + + // WebBrowser stuff... + [id(210), propget, helpstring("Gets the short (UI-friendly) name of the URL/file currently viewed."), helpcontext(0x0000)] + HRESULT LocationName([out,retval] BSTR *LocationName); + + [id(211), propget, helpstring("Gets the full URL/path currently viewed."), helpcontext(0x0000)] + HRESULT LocationURL([out,retval] BSTR * LocationURL); + + // Added a property to see if the viewer is currenly busy or not... + [id(212), propget, helpstring("Query to see if something is still in progress."), helpcontext(0x0000)] + HRESULT Busy([out,retval] VARIANT_BOOL *pBool); + } + + [ + uuid(EAB22AC2-30C1-11CF-A7EB-0000C05BAE0B), // DIID_DWebBrowserEvents + helpstring("Web Browser Control Events (old)"), + hidden + ] + dispinterface DWebBrowserEvents + { + properties: + methods: + [id(DISPID_BEFORENAVIGATE), helpstring("Fired when a new hyperlink is being navigated to."), helpcontext(0x0000)] + void BeforeNavigate([in] BSTR URL, long Flags, BSTR TargetFrameName, VARIANT * PostData, BSTR Headers, [in, out]VARIANT_BOOL * Cancel); + + [id(DISPID_NAVIGATECOMPLETE), helpstring("Fired when the document being navigated to becomes visible and enters the navigation stack."), helpcontext(0x0000)] + void NavigateComplete([in] BSTR URL ); + + [id(DISPID_STATUSTEXTCHANGE), helpstring("Statusbar text changed."), helpcontext(0x0000)] + void StatusTextChange([in]BSTR Text); + + [id(DISPID_PROGRESSCHANGE), helpstring("Fired when download progress is updated."), helpcontext(0x0000)] + void ProgressChange([in] long Progress, [in] long ProgressMax); + + [id(DISPID_DOWNLOADCOMPLETE), helpstring("Download of page complete."), helpcontext(0x0000)] + void DownloadComplete(); + + [id(DISPID_COMMANDSTATECHANGE), helpstring("The enabled state of a command changed"), helpcontext(0x0000)] + void CommandStateChange([in] long Command, [in] VARIANT_BOOL Enable); + + [id(DISPID_DOWNLOADBEGIN), helpstring("Download of a page started."), helpcontext(0x000)] + void DownloadBegin(); + + [id(DISPID_NEWWINDOW), helpstring("Fired when a new window should be created."), helpcontext(0x0000)] + void NewWindow([in] BSTR URL, [in] long Flags, [in] BSTR TargetFrameName, [in] VARIANT * PostData, [in] BSTR Headers, [in,out] VARIANT_BOOL * Processed); + + [id(DISPID_TITLECHANGE), helpstring("Document title changed."), helpcontext(0x0000)] + void TitleChange([in]BSTR Text); + + [id(DISPID_FRAMEBEFORENAVIGATE), helpstring("Fired when a new hyperlink is being navigated to in a frame."), helpcontext(0x0000)] + void FrameBeforeNavigate([in] BSTR URL, long Flags, BSTR TargetFrameName, VARIANT * PostData, BSTR Headers, [in, out]VARIANT_BOOL * Cancel); + + [id(DISPID_FRAMENAVIGATECOMPLETE), helpstring("Fired when a new hyperlink is being navigated to in a frame."), helpcontext(0x0000)] + void FrameNavigateComplete([in] BSTR URL ); + + [id(DISPID_FRAMENEWWINDOW), helpstring("Fired when a new window should be created."), helpcontext(0x0000)] + void FrameNewWindow([in] BSTR URL, [in] long Flags, [in] BSTR TargetFrameName, [in] VARIANT * PostData, [in] BSTR Headers, [in,out] VARIANT_BOOL * Processed); + + // The following are IWebBrowserApp specific: + // + [id(DISPID_QUIT), helpstring("Fired when application is quiting."), helpcontext(0x0000)] + void Quit([in, out] VARIANT_BOOL * Cancel); + + [id(DISPID_WINDOWMOVE), helpstring("Fired when window has been moved."), helpcontext(0x0000)] + void WindowMove(); + + [id(DISPID_WINDOWRESIZE), helpstring("Fired when window has been sized."), helpcontext(0x0000)] + void WindowResize(); + + [id(DISPID_WINDOWACTIVATE), helpstring("Fired when window has been activated."), helpcontext(0x0000)] + void WindowActivate(); + + [id(DISPID_PROPERTYCHANGE), helpstring("Fired when the PutProperty method has been called."), helpcontext(0x0000)] + void PropertyChange([in] BSTR Property); + } + + typedef + [ + uuid(34A226E0-DF30-11CF-89A9-00A0C9054129), + helpstring("Constants for WebBrowser CommandStateChange") + ] + enum CommandStateChangeConstants { + [helpstring("Command Change")] CSC_UPDATECOMMANDS = (int) 0xFFFFFFFF, + [helpstring("Navigate Forward")] CSC_NAVIGATEFORWARD = 0x00000001, + [helpstring("Navigate Back")] CSC_NAVIGATEBACK = 0x00000002, + } CommandStateChangeConstants; + + [ + uuid(0002DF05-0000-0000-C000-000000000046), // IID_IWebBrowserApp + helpstring("Web Browser Application Interface."), + helpcontext(0x0000), + hidden, + oleautomation, + dual + ] + interface IWebBrowserApp : IWebBrowser + { + [id(300), helpstring("Exits application and closes the open document."), helpcontext(0x0000)] + HRESULT Quit(); + + [id(301), helpstring("Converts client sizes into window sizes."), helpcontext(0x0000)] + HRESULT ClientToWindow([in,out] int* pcx, [in,out] int* pcy); + + [id(302), helpstring("Associates vtValue with the name szProperty in the context of the object."), helpcontext(0x0000)] + HRESULT PutProperty([in] BSTR Property, [in] VARIANT vtValue); + + [id(303), helpstring("Retrieve the Associated value for the property vtValue in the context of the object."), helpcontext(0x0000)] + HRESULT GetProperty([in] BSTR Property, [out, retval] VARIANT *pvtValue); + + [id(0), propget, helpstring("Returns name of the application."), helpcontext(0x0000)] + HRESULT Name([out,retval] BSTR* Name); + + [id(DISPID_HWND), propget, helpstring("Returns the HWND of the current IE window."), helpcontext(0x0000)] + HRESULT HWND([out,retval] SHANDLE_PTR * pHWND); + + [id(400), propget, helpstring("Returns file specification of the application, including path."), helpcontext(0x0000)] + HRESULT FullName([out,retval] BSTR* FullName); + + [id(401), propget, helpstring("Returns the path to the application."), helpcontext(0x0000)] + HRESULT Path([out,retval] BSTR* Path); + + [id(402), propget, helpstring("Determines whether the application is visible or hidden."), helpcontext(0x0000)] + HRESULT Visible([out, retval] VARIANT_BOOL* pBool); + [id(402), propput, helpstring("Determines whether the application is visible or hidden."), helpcontext(0x0000)] + HRESULT Visible([in] VARIANT_BOOL Value); + + [id(403), propget, helpstring("Turn on or off the statusbar."), helpcontext(0x0000)] + HRESULT StatusBar([out, retval] VARIANT_BOOL* pBool); + [id(403), propput, helpstring("Turn on or off the statusbar."), helpcontext(0x0000)] + HRESULT StatusBar([in] VARIANT_BOOL Value); + + [id(404), propget, helpstring("Text of Status window."), helpcontext(0x0000)] + HRESULT StatusText([out, retval] BSTR *StatusText); + [id(404), propput, helpstring("Text of Status window."), helpcontext(0x0000)] + HRESULT StatusText([in] BSTR StatusText); + + [id(405), propget, helpstring("Controls which toolbar is shown."), helpcontext(0x0000)] + HRESULT ToolBar([out, retval] int * Value); + [id(405), propput, helpstring("Controls which toolbar is shown."), helpcontext(0x0000)] + HRESULT ToolBar([in] int Value); + + [id(406), propget, helpstring("Controls whether menubar is shown."), helpcontext(0x0000)] + HRESULT MenuBar([out, retval] VARIANT_BOOL * Value); + [id(406), propput, helpstring("Controls whether menubar is shown."), helpcontext(0x0000)] + HRESULT MenuBar([in] VARIANT_BOOL Value); + + [id(407), propget, helpstring("Maximizes window and turns off statusbar, toolbar, menubar, and titlebar."), helpcontext(0x0000)] + HRESULT FullScreen([out, retval] VARIANT_BOOL * pbFullScreen); + [id(407), propput, helpstring("Maximizes window and turns off statusbar, toolbar, menubar, and titlebar."), helpcontext(0x0000)] + HRESULT FullScreen([in] VARIANT_BOOL bFullScreen); + } + + [ + uuid(D30C1661-CDAF-11d0-8A3E-00C04FC9E26E), // IID_IWebBrowser2 + helpstring("Web Browser Interface for IE4."), + helpcontext(0x0000), + hidden, + oleautomation, + dual + ] + interface IWebBrowser2 : IWebBrowserApp + { + [id(500), helpstring("Navigates to a URL or file or pidl."), helpcontext(0x0000)] + HRESULT Navigate2([in] VARIANT * URL, + [in, optional, unique] VARIANT * Flags, + [in, optional, unique] VARIANT * TargetFrameName, + [in, optional, unique] VARIANT * PostData, + [in, optional, unique] VARIANT * Headers); + + + [id(501), helpstring("IOleCommandTarget::QueryStatus"), helpcontext(0x0000)] + HRESULT QueryStatusWB([in] OLECMDID cmdID, [out, retval] OLECMDF * pcmdf); + [id(502), helpstring("IOleCommandTarget::Exec"), helpcontext(0x0000)] + HRESULT ExecWB([in] OLECMDID cmdID, [in] OLECMDEXECOPT cmdexecopt, [in, optional, unique] VARIANT * pvaIn, [in, out, optional, unique] VARIANT * pvaOut); + [id(503), helpstring("Set BrowserBar to Clsid"), helpcontext(0x0000)] + HRESULT ShowBrowserBar( [in] VARIANT * pvaClsid, + [in, optional, unique] VARIANT * pvarShow, + [in, optional, unique] VARIANT * pvarSize ); + + [id(DISPID_READYSTATE), propget, bindable] + HRESULT ReadyState([retval, out] READYSTATE * plReadyState); + + [id(550), propget, helpstring("Controls if the frame is offline (read from cache)"), helpcontext(0x0000)] + HRESULT Offline([out, retval] VARIANT_BOOL * pbOffline); + [id(550), propput, helpstring("Controls if the frame is offline (read from cache)"), helpcontext(0x0000)] + HRESULT Offline([in] VARIANT_BOOL bOffline); + + [id(551), propget, helpstring("Controls if any dialog boxes can be shown"), helpcontext(0x0000)] + HRESULT Silent([out, retval] VARIANT_BOOL * pbSilent); + [id(551), propput, helpstring("Controls if any dialog boxes can be shown"), helpcontext(0x0000)] + HRESULT Silent([in] VARIANT_BOOL bSilent); + + [id(552), propget, helpstring("Registers OC as a top-level browser (for target name resolution)"), helpcontext(0x0000)] + HRESULT RegisterAsBrowser([out, retval] VARIANT_BOOL * pbRegister); + [id(552), propput, helpstring("Registers OC as a top-level browser (for target name resolution)"), helpcontext(0x0000)] + HRESULT RegisterAsBrowser([in] VARIANT_BOOL bRegister); + + [id(553), propget, helpstring("Registers OC as a drop target for navigation"), helpcontext(0x0000)] + HRESULT RegisterAsDropTarget([out, retval] VARIANT_BOOL * pbRegister); + [id(553), propput, helpstring("Registers OC as a drop target for navigation"), helpcontext(0x0000)] + HRESULT RegisterAsDropTarget([in] VARIANT_BOOL bRegister); + + [id(554), propget, helpstring("Controls if the browser is in theater mode"), helpcontext(0x0000)] + HRESULT TheaterMode([out, retval] VARIANT_BOOL * pbRegister); + [id(554), propput, helpstring("Controls if the browser is in theater mode"), helpcontext(0x0000)] + HRESULT TheaterMode([in] VARIANT_BOOL bRegister); + + [id(555), propget, helpstring("Controls whether address bar is shown"), helpcontext(0x0000)] + HRESULT AddressBar([out, retval] VARIANT_BOOL * Value); + [id(555), propput, helpstring("Controls whether address bar is shown"), helpcontext(0x0000)] + HRESULT AddressBar([in] VARIANT_BOOL Value); + + [id(556), propget, helpstring("Controls whether the window is resizable"), helpcontext(0x0000)] + HRESULT Resizable([out, retval] VARIANT_BOOL * Value); + [id(556), propput, helpstring("Controls whether the window is resizable"), helpcontext(0x0000)] + HRESULT Resizable([in] VARIANT_BOOL Value); + } + + typedef + [ + uuid(65507BE0-91A8-11d3-A845-009027220E6D), + helpstring("Constants for WebBrowser security icon notification") + ] + enum SecureLockIconConstants { + secureLockIconUnsecure = 0x0000, + secureLockIconMixed = 0x0001, + secureLockIconSecureUnknownBits = 0x0002, + secureLockIconSecure40Bit = 0x0003, + secureLockIconSecure56Bit = 0x0004, + secureLockIconSecureFortezza = 0x0005, + secureLockIconSecure128Bit = 0x0006, + } SecureLockIconConstants; + + typedef + [ + uuid(a8317d46-03cb-4975-ae94-85e9f2e1d020), + helpstring("Constants for WebBrowser NewProcess notification") + ] + enum NewProcessCauseConstants { + ProtectedModeRedirect = 0x0001, + } NewProcessCauseConstants; + + [ + uuid(34A715A0-6587-11D0-924A-0020AFC7AC4D), // IID_DWebBrowserEvents2 + helpstring("Web Browser Control events interface"), + hidden + ] + dispinterface DWebBrowserEvents2 + { + properties: + methods: + [id(DISPID_STATUSTEXTCHANGE), helpstring("Statusbar text changed."), helpcontext(0x0000)] + void StatusTextChange([in]BSTR Text); + + [id(DISPID_PROGRESSCHANGE), helpstring("Fired when download progress is updated."), helpcontext(0x0000)] + void ProgressChange([in] long Progress, [in] long ProgressMax); + + [id(DISPID_COMMANDSTATECHANGE), helpstring("The enabled state of a command changed."), helpcontext(0x0000)] + void CommandStateChange([in] long Command, [in] VARIANT_BOOL Enable); + + [id(DISPID_DOWNLOADBEGIN), helpstring("Download of a page started."), helpcontext(0x000)] + void DownloadBegin(); + + [id(DISPID_DOWNLOADCOMPLETE), helpstring("Download of page complete."), helpcontext(0x0000)] + void DownloadComplete(); + + [id(DISPID_TITLECHANGE), helpstring("Document title changed."), helpcontext(0x0000)] + void TitleChange([in] BSTR Text); + + [id(DISPID_PROPERTYCHANGE), helpstring("Fired when the PutProperty method has been called."), helpcontext(0x0000)] + void PropertyChange([in] BSTR szProperty); + + // New events for IE40: + // + [id(DISPID_BEFORENAVIGATE2), helpstring("Fired before navigate occurs in the given WebBrowser (window or frameset element). The processing of this navigation may be modified."), helpcontext(0x0000)] + void BeforeNavigate2([in] IDispatch* pDisp, + [in] VARIANT * URL, [in] VARIANT * Flags, [in] VARIANT * TargetFrameName, [in] VARIANT * PostData, [in] VARIANT * Headers, + [in,out] VARIANT_BOOL * Cancel); + + [id(DISPID_NEWWINDOW2), helpstring("A new, hidden, non-navigated WebBrowser window is needed."), helpcontext(0x0000)] + void NewWindow2([in, out] IDispatch** ppDisp, [in, out] VARIANT_BOOL * Cancel); + + [id(DISPID_NAVIGATECOMPLETE2), helpstring("Fired when the document being navigated to becomes visible and enters the navigation stack."), helpcontext(0x0000)] + void NavigateComplete2([in] IDispatch* pDisp, [in] VARIANT * URL ); + + [id(DISPID_DOCUMENTCOMPLETE), helpstring("Fired when the document being navigated to reaches ReadyState_Complete."), helpcontext(0x0000)] + void DocumentComplete([in] IDispatch* pDisp, [in] VARIANT * URL ); + + [id(DISPID_ONQUIT), helpstring("Fired when application is quiting."), helpcontext(0x0000)] + void OnQuit(); + + [id(DISPID_ONVISIBLE), helpstring("Fired when the window should be shown/hidden"), helpcontext(0x0000)] + void OnVisible([in] VARIANT_BOOL Visible); + + [id(DISPID_ONTOOLBAR), helpstring("Fired when the toolbar should be shown/hidden"), helpcontext(0x0000)] + void OnToolBar([in] VARIANT_BOOL ToolBar); + + [id(DISPID_ONMENUBAR), helpstring("Fired when the menubar should be shown/hidden"), helpcontext(0x0000)] + void OnMenuBar([in] VARIANT_BOOL MenuBar); + + [id(DISPID_ONSTATUSBAR), helpstring("Fired when the statusbar should be shown/hidden"), helpcontext(0x0000)] + void OnStatusBar([in] VARIANT_BOOL StatusBar); + + [id(DISPID_ONFULLSCREEN), helpstring("Fired when fullscreen mode should be on/off"), helpcontext(0x0000)] + void OnFullScreen([in] VARIANT_BOOL FullScreen); + + [id(DISPID_ONTHEATERMODE), helpstring("Fired when theater mode should be on/off"), helpcontext(0x0000)] + void OnTheaterMode([in] VARIANT_BOOL TheaterMode); + + // New events for IE 5.5 + + [id(DISPID_WINDOWSETRESIZABLE), helpstring("Fired when the host window should allow/disallow resizing"), helpcontext(0x0000)] + void WindowSetResizable([in] VARIANT_BOOL Resizable); + + [id(DISPID_WINDOWSETLEFT), helpstring("Fired when the host window should change its Left coordinate"), helpcontext(0x0000)] + void WindowSetLeft([in] long Left); + + [id(DISPID_WINDOWSETTOP), helpstring("Fired when the host window should change its Top coordinate"), helpcontext(0x0000)] + void WindowSetTop([in] long Top); + + [id(DISPID_WINDOWSETWIDTH), helpstring("Fired when the host window should change its width"), helpcontext(0x0000)] + void WindowSetWidth([in] long Width); + + [id(DISPID_WINDOWSETHEIGHT), helpstring("Fired when the host window should change its height"), helpcontext(0x0000)] + void WindowSetHeight([in] long Height); + + [id(DISPID_WINDOWCLOSING), helpstring("Fired when the WebBrowser is about to be closed by script"), helpcontext(0x0000)] + void WindowClosing([in] VARIANT_BOOL IsChildWindow, [in, out] VARIANT_BOOL * Cancel); + + [id(DISPID_CLIENTTOHOSTWINDOW), helpstring("Fired to request client sizes be converted to host window sizes"), helpcontext(0x0000)] + void ClientToHostWindow([in, out] long* CX, [in, out] long* CY); + + [id(DISPID_SETSECURELOCKICON), helpstring("Fired to indicate the security level of the current web page contents"), helpcontext(0x0000)] + void SetSecureLockIcon([in] long SecureLockIcon); + + [id(DISPID_FILEDOWNLOAD), helpstring("Fired to indicate the File Download dialog is opening"), helpcontext(0x0000)] + void FileDownload([in] VARIANT_BOOL ActiveDocument, [in, out] VARIANT_BOOL * Cancel); + + // New events for IE 6.0 + + [id(DISPID_NAVIGATEERROR), helpstring("Fired when a binding error occurs (window or frameset element)."), helpcontext(0x0000)] + void NavigateError([in] IDispatch* pDisp, [in] VARIANT* URL, [in] VARIANT* Frame, [in] VARIANT* StatusCode, [in,out] VARIANT_BOOL* Cancel); + + [id(DISPID_PRINTTEMPLATEINSTANTIATION), helpstring("Fired when a print template is instantiated."), helpcontext(0x0000)] + void PrintTemplateInstantiation([in] IDispatch* pDisp); + + [id(DISPID_PRINTTEMPLATETEARDOWN), helpstring("Fired when a print template destroyed."), helpcontext(0x0000)] + void PrintTemplateTeardown([in] IDispatch* pDisp); + + [id(DISPID_UPDATEPAGESTATUS), helpstring("Fired when a page is spooled. When it is fired can be changed by a custom template."), helpcontext(0x0000)] + void UpdatePageStatus([in] IDispatch* pDisp, [in] VARIANT* nPage, [in] VARIANT* fDone); + + [id(DISPID_PRIVACYIMPACTEDSTATECHANGE), helpstring("Fired when the global privacy impacted state changes"), helpcontext(0x0000)] + void PrivacyImpactedStateChange([in] VARIANT_BOOL bImpacted); + + [id(DISPID_NEWWINDOW3), helpstring("A new, hidden, non-navigated WebBrowser window is needed."), helpcontext(0x0000)] + void NewWindow3([in, out] IDispatch** ppDisp, [in, out] VARIANT_BOOL * Cancel, [in] DWORD dwFlags, [in] BSTR bstrUrlContext, [in] BSTR bstrUrl); + + // New events for IE 7.0 + + [id(DISPID_SETPHISHINGFILTERSTATUS), helpstring("Fired to indicate the progress and status of the Phishing Filter analysis of the current web page"), helpcontext(0x0000)] + void SetPhishingFilterStatus([in] long PhishingFilterStatus); + + [id(DISPID_WINDOWSTATECHANGED), helpstring("Fired to indicate that the browser window's visibility or enabled state has changed."), helpcontext(0x0000)] + void WindowStateChanged([in] DWORD dwWindowStateFlags, [in] DWORD dwValidFlagsMask); + + // New Events for IE 8.0 + [id(DISPID_NEWPROCESS), helpstring("A new, hidden, non-navigated process is created to handle the navigation."), helpcontext(0x0000)] + void NewProcess([in] long lCauseFlag, [in] IDispatch* pWB2, [in, out] VARIANT_BOOL * Cancel); + + [id(DISPID_THIRDPARTYURLBLOCKED), helpstring("Fired when a third-party URL is blocked."), helpcontext(0x0000)] + void ThirdPartyUrlBlocked([in] VARIANT* URL, [in] DWORD dwCount); + + [id(DISPID_REDIRECTXDOMAINBLOCKED), helpstring("Fired when a x-domain redirect is blocked."), helpcontext(0x0000)] + void RedirectXDomainBlocked([in] IDispatch* pDisp, [in] VARIANT* StartURL, [in] VARIANT* RedirectURL, [in] VARIANT* Frame, [in] VARIANT* StatusCode); + + // New Events for IE 10.0 + [id(DISPID_BEFORESCRIPTEXECUTE), helpstring("Fired prior to the first script execution."), helpcontext(0x0000)] + void BeforeScriptExecute([in] IDispatch* pDispWindow); + + [id(DISPID_WEBWORKERSTARTED), helpstring("Fired after a Web Worker has been started."), helpcontext(0x0000)] + void WebWorkerStarted([in] DWORD dwUniqueID, [in] BSTR bstrWorkerLabel); + + [id(DISPID_WEBWORKERFINISHED), helpstring("Fired after a Web Worker has closed"), helpcontext(0x0000)] + void WebWorkerFinsihed([in] DWORD dwUniqueID); + } + + + + [ + uuid(EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B), // v.1 clsid CLSID_WebBrowser_V1 + control, + helpstring("WebBrowser Control") + ] + coclass WebBrowser_V1 + { + interface IWebBrowser2; + [default] interface IWebBrowser; + [source] dispinterface DWebBrowserEvents2; + [default, source] dispinterface DWebBrowserEvents; + } + + [ + uuid(8856F961-340A-11D0-A96B-00C04FD705A2), // v.2 clsid CLSID_WebBrowser + control, + helpstring("WebBrowser Control") + ] + coclass WebBrowser + { + [default] interface IWebBrowser2; + interface IWebBrowser; + [default, source] dispinterface DWebBrowserEvents2; + [source] dispinterface DWebBrowserEvents; + } + + [ + uuid(0002DF01-0000-0000-C000-000000000046), // CLSID_InternetExplorer + helpstring("Internet Explorer Application."), + ] + coclass InternetExplorer + { + [default] interface IWebBrowser2; + interface IWebBrowserApp; + [default, source] dispinterface DWebBrowserEvents2; + [source] dispinterface DWebBrowserEvents; + } + + [ + uuid(D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E), // CLSID_InternetExplorerMedium + helpstring("Internet Explorer Application with default integrity of Medium"), + ] + coclass InternetExplorerMedium + { + [default] interface IWebBrowser2; + interface IWebBrowserApp; + [default, source] dispinterface DWebBrowserEvents2; + [source] dispinterface DWebBrowserEvents; + } + + [ + uuid(c08afd90-f2a1-11d1-8455-00a0c91f3880), // CLSID_ShellBrowserWindow + helpstring("Shell Browser Window."), + hidden, + noncreatable, + ] + coclass ShellBrowserWindow + { + [default] interface IWebBrowser2; + interface IWebBrowserApp; + [default, source] dispinterface DWebBrowserEvents2; + [source] dispinterface DWebBrowserEvents; + } + + + typedef + [ + uuid(F41E6981-28E5-11d0-82B4-00A0C90C29C5), + helpstring("Constants for ShellWindows registration") + ] + enum ShellWindowTypeConstants { + [helpstring("Explorer")] SWC_EXPLORER = 0x0, + [helpstring("Various Browsing Windows")] SWC_BROWSER = 0x00000001, + [helpstring("3rd Party Browsers")] SWC_3RDPARTY = 0x00000002, + [helpstring("Creation Callback")] SWC_CALLBACK = 0x00000004, + [helpstring("The Windows Desktop")] SWC_DESKTOP = 0x00000008, + } ShellWindowTypeConstants; + + typedef + [ + uuid(7716a370-38ca-11d0-a48b-00a0c90a8f39), + helpstring("Options for ShellWindows FindWindow"), + hidden + ] + enum ShellWindowFindWindowOptions { + [helpstring("Need Dispatch")] SWFO_NEEDDISPATCH = 0x00000001, + [helpstring("Include Pending")] SWFO_INCLUDEPENDING = 0x00000002, + [helpstring("Cookie Passed")] SWFO_COOKIEPASSED = 0x00000004, + } ShellWindowFindWindowOptions; + + [ + uuid(fe4106e0-399a-11d0-a48c-00a0c90a8f39), // DIID_DShellWindowsEvents + helpstring("Event interface for IShellWindows"), + ] + dispinterface DShellWindowsEvents + { + properties: + methods: + [id(DISPID_WINDOWREGISTERED), helpstring("A new window was registered."), helpcontext(0x0000)] + void WindowRegistered([in] long lCookie); + + [id(DISPID_WINDOWREVOKED), helpstring("A new window was revoked."), helpcontext(0x0000)] + void WindowRevoked([in] long lCookie); + } + + [ + uuid(85CB6900-4D95-11CF-960C-0080C7F4EE85), // IID_IShellWindows + helpstring("Definition of interface IShellWindows"), + oleautomation, + dual, + odl, + ] + interface IShellWindows : IDispatch + { + //Properties + [propget, helpstring("Get count of open Shell windows")] + HRESULT Count([out, retval] long *Count); + + //Methods + [id(0), helpstring("Return the shell window for the given index")] + HRESULT Item([in,optional] VARIANT index, [out, retval]IDispatch **Folder); + + [id(-4), helpstring("Enumerates the figures")] + HRESULT _NewEnum([out, retval] IUnknown **ppunk); + + // Some private hidden members to allow shell windows to add and + // remove themself from the list. We mark them hidden to keep + // random VB apps from trying to Register... + [helpstring("Register a window with the list"), hidden] + HRESULT Register([in] IDispatch *pid, + [in] long hwnd, + [in] int swClass, + [out]long *plCookie); + + [helpstring("Register a pending open with the list"), hidden] + HRESULT RegisterPending([in] long lThreadId, + [in] VARIANT* pvarloc, // will hold pidl that is being opened. + [in] VARIANT* pvarlocRoot, // Optional root pidl + [in] int swClass, + [out]long *plCookie); + + [helpstring("Remove a window from the list"), hidden] + HRESULT Revoke([in]long lCookie); + // As an optimization, each window notifies the new location + // only when + // (1) it's being deactivated + // (2) getFullName is called (we overload it to force update) + [helpstring("Notifies the new location"), hidden] + HRESULT OnNavigate([in]long lCookie, [in] VARIANT* pvarLoc); + [helpstring("Notifies the activation"), hidden] + HRESULT OnActivated([in]long lCookie, [in] VARIANT_BOOL fActive); + [helpstring("Find the window based on the location"), hidden] + HRESULT FindWindowSW([in] VARIANT* pvarLoc, + [in] VARIANT* pvarLocRoot, /* unused */ + [in] int swClass, + [out] long * phwnd, + [in] int swfwOptions, + [out,retval] IDispatch** ppdispOut); + [helpstring("Notifies on creation and frame name set"), hidden] + HRESULT OnCreated([in]long lCookie,[in] IUnknown *punk); + + [helpstring("Used by IExplore to register different processes"), hidden] + HRESULT ProcessAttachDetach([in] VARIANT_BOOL fAttach); + } + + [ + uuid(9BA05972-F6A8-11CF-A442-00A0C90A8F39), // CLSID_ShellWindows + helpstring("ShellDispatch Load in Shell Context") + ] + coclass ShellWindows + { + [default] interface IShellWindows; + [default, source] dispinterface DShellWindowsEvents; + } + + [ + uuid(729FE2F8-1EA8-11d1-8F85-00C04FC2FBE1), // IID_IShellUIHelper + helpstring("Shell UI Helper Control Interface"), + oleautomation, dual + ] + interface IShellUIHelper : IDispatch + { + [hidden, id(DISPID_RESETFIRSTBOOTMODE)] HRESULT ResetFirstBootMode(); + [hidden, id(DISPID_RESETSAFEMODE)] HRESULT ResetSafeMode(); + [hidden, id(DISPID_REFRESHOFFLINEDESKTOP)] HRESULT RefreshOfflineDesktop(); + [id(DISPID_ADDFAVORITE)] HRESULT AddFavorite([in] BSTR URL, [in, optional, unique] VARIANT *Title); + [id(DISPID_ADDCHANNEL)] HRESULT AddChannel([in] BSTR URL); + [id(DISPID_ADDDESKTOPCOMPONENT)] HRESULT AddDesktopComponent([in] BSTR URL, [in] BSTR Type, + [in, optional, unique] VARIANT *Left, + [in, optional, unique] VARIANT *Top, + [in, optional, unique] VARIANT *Width, + [in, optional, unique] VARIANT *Height); + [id(DISPID_ISSUBSCRIBED)] HRESULT IsSubscribed([in] BSTR URL, [out,retval] VARIANT_BOOL* pBool); + [id(DISPID_NAVIGATEANDFIND)] HRESULT NavigateAndFind([in] BSTR URL, [in] BSTR strQuery, [in] VARIANT* varTargetFrame); + [id(DISPID_IMPORTEXPORTFAVORITES)] HRESULT ImportExportFavorites([in] VARIANT_BOOL fImport, [in] BSTR strImpExpPath); + [id(DISPID_AUTOCOMPLETESAVEFORM)] HRESULT AutoCompleteSaveForm([in, optional, unique] VARIANT *Form); + [id(DISPID_AUTOSCAN)] HRESULT AutoScan([in] BSTR strSearch, [in] BSTR strFailureUrl, [in, optional, unique] VARIANT* pvarTargetFrame); + [hidden, id(DISPID_AUTOCOMPLETEATTACH)] HRESULT AutoCompleteAttach([in, optional, unique] VARIANT *Reserved); + [id(DISPID_SHOWBROWSERUI)] HRESULT ShowBrowserUI([in] BSTR bstrName, [in] VARIANT *pvarIn, [out, retval] VARIANT *pvarOut); + } + + [ + uuid(a7fe6eda-1932-4281-b881-87b31b8bc52c), // IID_IShellUIHelper2 + helpstring("Shell UI Helper Control Interface 2"), + oleautomation, dual + ] + interface IShellUIHelper2 : IShellUIHelper + { + [id(DISPID_ADDSEARCHPROVIDER)] HRESULT AddSearchProvider([in] BSTR URL); + [id(DISPID_RUNONCESHOWN)] HRESULT RunOnceShown(); + [id(DISPID_SKIPRUNONCE)] HRESULT SkipRunOnce(); + [id(DISPID_CUSTOMIZESETTINGS)] HRESULT CustomizeSettings( + [in] VARIANT_BOOL fSQM, + [in] VARIANT_BOOL fPhishing, + [in] BSTR bstrLocale); + [id(DISPID_SQMENABLED)] HRESULT SqmEnabled([out, retval] VARIANT_BOOL* pfEnabled); + [id(DISPID_PHISHINGENABLED)] HRESULT PhishingEnabled([out, retval] VARIANT_BOOL* pfEnabled); + [id(DISPID_BRANDIMAGEURI)] HRESULT BrandImageUri([out, retval] BSTR* pbstrUri); + [id(DISPID_SKIPTABSWELCOME)] HRESULT SkipTabsWelcome(); + [id(DISPID_DIAGNOSECONNECTION)] HRESULT DiagnoseConnection(); + [id(DISPID_CUSTOMIZECLEARTYPE)] HRESULT CustomizeClearType([in] VARIANT_BOOL fSet); + [id(DISPID_ISSEARCHPROVIDERINSTALLED)] HRESULT IsSearchProviderInstalled([in] BSTR URL, [out, retval] DWORD *pdwResult); + [id(DISPID_ISSEARCHMIGRATED)] HRESULT IsSearchMigrated([out, retval] VARIANT_BOOL* pfMigrated); + [id(DISPID_DEFAULTSEARCHPROVIDER)] HRESULT DefaultSearchProvider([out, retval] BSTR* pbstrName); + [id(DISPID_RUNONCEREQUIREDSETTINGSCOMPLETE)] HRESULT RunOnceRequiredSettingsComplete([in] VARIANT_BOOL fComplete); + [id(DISPID_RUNONCEHASSHOWN)] HRESULT RunOnceHasShown([out, retval] VARIANT_BOOL* pfShown); + [id(DISPID_SEARCHGUIDEURL)] HRESULT SearchGuideUrl([out, retval] BSTR* pbstrUrl); + } + + [ + + uuid(528DF2EC-D419-40bc-9B6D-DCDBF9C1B25D), // IID_IShellUIHelper3 + + helpstring("Shell UI Helper Control Interface 3"), + oleautomation, dual + ] + interface IShellUIHelper3 : IShellUIHelper2 + { + [id(DISPID_ADDSERVICE)] HRESULT AddService([in] BSTR URL); + [id(DISPID_ISSERVICEINSTALLED)] HRESULT IsServiceInstalled([in] BSTR URL, [in] BSTR Verb, [out, retval] DWORD *pdwResult); + [id(DISPID_INPRIVATEFILTERINGENABLED)] HRESULT InPrivateFilteringEnabled([out, retval] VARIANT_BOOL *pfEnabled); + [id(DISPID_ADDTOFAVORITESBAR)] HRESULT AddToFavoritesBar([in] BSTR URL, [in] BSTR Title, [optional, in] VARIANT *Type); + [id(DISPID_BUILDNEWTABPAGE)] HRESULT BuildNewTabPage(); + [id(DISPID_SETRECENTLYCLOSEDVISIBLE)] HRESULT SetRecentlyClosedVisible([in] VARIANT_BOOL fVisible); + [id(DISPID_SETACTIVITIESVISIBLE)] HRESULT SetActivitiesVisible([in] VARIANT_BOOL fVisible); + [id(DISPID_CONTENTDISCOVERYRESET)] HRESULT ContentDiscoveryReset(); + [id(DISPID_SUGGESTEDSITESENABLED)] HRESULT IsSuggestedSitesEnabled([out, retval] VARIANT_BOOL* pfEnabled); + [id(DISPID_ENABLESUGGESTEDSITES)] HRESULT EnableSuggestedSites([in] VARIANT_BOOL fEnable); + [id(DISPID_NAVIGATETOSUGGESTEDSITES)] HRESULT NavigateToSuggestedSites([in] BSTR bstrRelativeUrl); + [id(DISPID_SHOWTABSHELP)] HRESULT ShowTabsHelp(); + [id(DISPID_SHOWINPRIVATEHELP)] HRESULT ShowInPrivateHelp(); + } + + [ + uuid(B36E6A53-8073-499E-824C-D776330A333E), // IID_IShellUIHelper4 + + helpstring("Shell UI Helper Control Interface 4"), + oleautomation, dual + ] + interface IShellUIHelper4 : IShellUIHelper3 + { + [id(DISPID_ISSITEMODE)] HRESULT msIsSiteMode([out, retval] VARIANT_BOOL *pfSiteMode); + [id(DISPID_SETTHUMBNAILBUTTONS)] HRESULT msSiteModeShowThumbBar(); + [id(DISPID_ADDTHUMBNAILBUTTONS)] HRESULT msSiteModeAddThumbBarButton([in] BSTR bstrIconURL, [in] BSTR bstrTooltip, [out, retval] VARIANT *pvarButtonID); + [id(DISPID_UPDATETHUMBNAILBUTTON)] HRESULT msSiteModeUpdateThumbBarButton([in] VARIANT ButtonID, [in] VARIANT_BOOL fEnabled, [in] VARIANT_BOOL fVisible); + [id(DISPID_SETSITEMODEICONOVERLAY)] HRESULT msSiteModeSetIconOverlay([in] BSTR IconUrl, [optional, in] VARIANT *pvarDescription); + [id(DISPID_CLEARSITEMODEICONOVERLAY)] HRESULT msSiteModeClearIconOverlay(); + [id(DISPID_ADDSITEMODE)] HRESULT msAddSiteMode(); + [id(DISPID_SITEMODECREATEJUMPLIST)] HRESULT msSiteModeCreateJumpList([in] BSTR bstrHeader); + [id(DISPID_SITEMODEADDJUMPLISTITEM)] HRESULT msSiteModeAddJumpListItem([in] BSTR bstrName, [in] BSTR bstrActionUri, [in] BSTR bstrIconUri, [optional, in] VARIANT *pvarWindowType); + [id(DISPID_SITEMODECLEARJUMPLIST)] HRESULT msSiteModeClearJumpList(); + [id(DISPID_SITEMODESHOWJUMPLIST)] HRESULT msSiteModeShowJumpList(); + [id(DISPID_SITEMODEADDBUTTONSTYLE)] HRESULT msSiteModeAddButtonStyle([in] VARIANT uiButtonID, [in] BSTR bstrIconUrl, [in] BSTR bstrTooltip, [out, retval] VARIANT *pvarStyleID); + [id(DISPID_SITEMODESHOWBUTTONSTYLE)] HRESULT msSiteModeShowButtonStyle([in] VARIANT uiButtonID, [in] VARIANT uiStyleID); + [id(DISPID_SITEMODEACTIVATE)] HRESULT msSiteModeActivate(); + [id(DISPID_ISSITEMODEFIRSTRUN)] HRESULT msIsSiteModeFirstRun([in] VARIANT_BOOL fPreserveState, [out, retval] VARIANT *puiFirstRun); + [id(DISPID_ADDTRACKINGPROTECTIONLIST)] HRESULT msAddTrackingProtectionList([in] BSTR URL, [in] BSTR bstrFilterName); + [id(DISPID_TRACKINGPROTECTIONENABLED)] HRESULT msTrackingProtectionEnabled([out, retval] VARIANT_BOOL *pfEnabled); + [id(DISPID_ACTIVEXFILTERINGENABLED)] HRESULT msActiveXFilteringEnabled([out, retval] VARIANT_BOOL *pfEnabled); + } + + [ + uuid(A2A08B09-103D-4D3F-B91C-EA455CA82EFA), // IID_IShellUIHelper5 + + helpstring("Shell UI Helper Control Interface 5"), + oleautomation, dual + ] + interface IShellUIHelper5 : IShellUIHelper4 + { + [id(DISPID_PROVISIONNETWORKS)] HRESULT msProvisionNetworks([in] BSTR bstrProvisioningXml, [out, retval] VARIANT *puiResult); + [id(DISPID_REPORTSAFEURL)] HRESULT msReportSafeUrl(); + [id(DISPID_SITEMODEREFRESHBADGE)] HRESULT msSiteModeRefreshBadge(); + [id(DISPID_SITEMODECLEARBADGE)] HRESULT msSiteModeClearBadge(); + [id(DISPID_DIAGNOSECONNECTIONUILESS)] HRESULT msDiagnoseConnectionUILess(); + [id(DISPID_LAUNCHNETWORKCLIENTHELP)] HRESULT msLaunchNetworkClientHelp(); + [id(DISPID_CHANGEDEFAULTBROWSER)] HRESULT msChangeDefaultBrowser([in] VARIANT_BOOL fChange); + } + + [ + uuid(987A573E-46EE-4E89-96AB-DDF7F8FDC98C), // IID_IShellUIHelper6 + + helpstring("Shell UI Helper Control Interface 6"), + oleautomation, dual + ] + interface IShellUIHelper6 : IShellUIHelper5 + { + [id(DISPID_STOPPERIODICUPDATE)] HRESULT msStopPeriodicTileUpdate(); + [id(DISPID_STARTPERIODICUPDATE)] HRESULT msStartPeriodicTileUpdate([in] VARIANT pollingUris, [optional, in] VARIANT startTime, [optional, in] VARIANT uiUpdateRecurrence); + [id(DISPID_STARTPERIODICUPDATEBATCH)] HRESULT msStartPeriodicTileUpdateBatch([in] VARIANT pollingUris, [optional, in] VARIANT startTime, [optional, in] VARIANT uiUpdateRecurrence); + [id(DISPID_CLEARNOTIFICATION)] HRESULT msClearTile(); + [id(DISPID_ENABLENOTIFICATIONQUEUE)] HRESULT msEnableTileNotificationQueue([in] VARIANT_BOOL fChange); + [id(DISPID_PINNEDSITESTATE)] HRESULT msPinnedSiteState([out, retval] VARIANT *pvarSiteState); + [id(DISPID_ENABLENOTIFICATIONQUEUESQUARE)] HRESULT msEnableTileNotificationQueueForSquare150x150([in] VARIANT_BOOL fChange); + [id(DISPID_ENABLENOTIFICATIONQUEUEWIDE)] HRESULT msEnableTileNotificationQueueForWide310x150([in] VARIANT_BOOL fChange); + [id(DISPID_ENABLENOTIFICATIONQUEUELARGE)] HRESULT msEnableTileNotificationQueueForSquare310x310([in] VARIANT_BOOL fChange); + [id(DISPID_SCHEDULEDTILENOTIFICATION)] HRESULT msScheduledTileNotification([in] BSTR bstrNotificationXml, [in] BSTR bstrNotificationId, [in] BSTR bstrNotificationTag, [optional, in] VARIANT startTime, [optional, in] VARIANT expirationTime); + [id(DISPID_REMOVESCHEDULEDTILENOTIFICATION)] HRESULT msRemoveScheduledTileNotification([in] BSTR bstrNotificationId); + [id(DISPID_STARTBADGEUPDATE)] HRESULT msStartPeriodicBadgeUpdate([in] BSTR pollingUri, [optional, in] VARIANT startTime, [optional, in] VARIANT uiUpdateRecurrence); + [id(DISPID_STOPBADGEUPDATE)] HRESULT msStopPeriodicBadgeUpdate(); + [id(DISPID_LAUNCHINTERNETOPTIONS)] HRESULT msLaunchInternetOptions(); + } + + [ + uuid(60E567C8-9573-4AB2-A264-637C6C161CB1), // IID_IShellUIHelper7 + + helpstring("Shell UI Helper Control Interface 7"), + oleautomation, dual + ] + interface IShellUIHelper7 : IShellUIHelper6 + { + [id(DISPID_GETEXPERIMENTALFLAG)] HRESULT SetExperimentalFlag([in] BSTR bstrFlagString, [in] VARIANT_BOOL vfFlag); + [id(DISPID_SETEXPERIMENTALFLAG)] HRESULT GetExperimentalFlag([in] BSTR bstrFlagString, [out, retval] VARIANT_BOOL* vfFlag); + [id(DISPID_SETEXPERIMENTALVALUE)] HRESULT SetExperimentalValue([in] BSTR bstrValueString, [in] DWORD dwValue); + [id(DISPID_GETEXPERIMENTALVALUE)] HRESULT GetExperimentalValue([in] BSTR bstrValueString, [out, retval] DWORD* pdwValue); + [id(DISPID_RESETEXPERIMENTALFLAGS)] HRESULT ResetAllExperimentalFlagsAndValues(); + [id(DISPID_GETNEEDIEAUTOLAUNCHFLAG)] HRESULT GetNeedIEAutoLaunchFlag([in] BSTR bstrUrl, [out, retval] VARIANT_BOOL* flag); + [id(DISPID_SETNEEDIEAUTOLAUNCHFLAG)] HRESULT SetNeedIEAutoLaunchFlag([in] BSTR bstrUrl, [in] VARIANT_BOOL flag); + [id(DISPID_HASNEEDIEAUTOLAUNCHFLAG)] HRESULT HasNeedIEAutoLaunchFlag([in] BSTR bstrUrl, [out, retval] VARIANT_BOOL* exists); + [id(DISPID_LAUNCHIE)] HRESULT LaunchIE([in] BSTR bstrUrl, [in] VARIANT_BOOL automated); + } + + [ + uuid(66DEBCF2-05B0-4F07-B49B-B96241A65DB2), // IID_IShellUIHelper8 + + helpstring("Shell UI Helper Control Interface 8"), + oleautomation, dual + ] + interface IShellUIHelper8 : IShellUIHelper7 + { + [id(DISPID_GETCVLISTDATA)] HRESULT GetCVListData([out, retval] BSTR* pbstrResult); + [id(DISPID_GETCVLISTLOCALDATA)] HRESULT GetCVListLocalData([out, retval] BSTR* pbstrResult); + [id(DISPID_GETEMIELISTDATA)] HRESULT GetEMIEListData([out, retval] BSTR* pbstrResult); + [id(DISPID_GETEMIELISTLOCALDATA)] HRESULT GetEMIEListLocalData([out, retval] BSTR* pbstrResult); + [id(DISPID_OPENFAVORITESPANE)] HRESULT OpenFavoritesPane(); + [id(DISPID_OPENFAVORITESSETTINGS)] HRESULT OpenFavoritesSettings(); + [id(DISPID_LAUNCHINHVSI)] HRESULT LaunchInHVSI([in] BSTR bstrUrl); + } + + [ + uuid(6cdf73b0-7f2f-451f-bc0f-63e0f3284e54), // IID_IShellUIHelper9 + + helpstring("Shell UI Helper Control Interface 9"), + oleautomation, dual + ] + interface IShellUIHelper9 : IShellUIHelper8 + { + [id(DISPID_GETOSSKU)] HRESULT GetOSSku([out, retval] DWORD* pdwResult); + } + + [ + uuid(64AB4BB7-111E-11d1-8F79-00C04FC2FBE1) // CLSID_ShellUIHelper + ] + coclass ShellUIHelper + { + [default] interface IShellUIHelper9; + } + + [ + uuid(55136806-B2DE-11D1-B9F2-00A0C98BC547) //DIID_DShellNameSpaceEvents + ] + dispinterface DShellNameSpaceEvents + { + properties: + methods: + [id(DISPID_FAVSELECTIONCHANGE)] + void FavoritesSelectionChange([in] long cItems, [in] long hItem, [in] BSTR strName, + [in] BSTR strUrl, [in] long cVisits, [in] BSTR strDate, + [in] BOOL fAvailableOffline); + [id(DISPID_SELECTIONCHANGE)] + void SelectionChange(); + [id(DISPID_DOUBLECLICK)] + void DoubleClick(); + [id(DISPID_INITIALIZED)] + void Initialized(); + } + + [ + object, + uuid(55136804-B2DE-11D1-B9F2-00A0C98BC547), //IID_IShellFavoritesNameSpace + dual, + helpstring("IShellFavoritesNameSpace Interface"), + pointer_default(unique), + hidden + ] + interface IShellFavoritesNameSpace : IDispatch + { + [id(DISPID_MOVESELECTIONUP), helpstring("method MoveSelectionUp")] + HRESULT MoveSelectionUp(); + [id(DISPID_MOVESELECTIONDOWN), helpstring("method MoveSelectionDown")] + HRESULT MoveSelectionDown(); + [id(DISPID_RESETSORT), helpstring("method ResetSort")] + HRESULT ResetSort(); + [id(DISPID_NEWFOLDER), helpstring("method NewFolder")] + HRESULT NewFolder(); + [id(DISPID_SYNCHRONIZE), helpstring("method Synchronize")] + HRESULT Synchronize(); + [id(DISPID_IMPORT), helpstring("method Import")] + HRESULT Import(); + [id(DISPID_EXPORT), helpstring("method Export")] + HRESULT Export(); + [id(DISPID_INVOKECONTEXTMENU), helpstring("method InvokeContextMenuCommand")] + HRESULT InvokeContextMenuCommand([in] BSTR strCommand); + [id(DISPID_MOVESELECTIONTO), helpstring("method MoveSelectionTo")] + HRESULT MoveSelectionTo(); + [propget, id(DISPID_SUBSCRIPTIONSENABLED), helpstring("Query to see if subscriptions are enabled")] + HRESULT SubscriptionsEnabled([out, retval] VARIANT_BOOL *pBool); + [id(DISPID_CREATESUBSCRIPTION), helpstring("method CreateSubscriptionForSelection")] + HRESULT CreateSubscriptionForSelection([out, retval] VARIANT_BOOL *pBool); + [id(DISPID_DELETESUBSCRIPTION), helpstring("method DeleteSubscriptionForSelection")] + HRESULT DeleteSubscriptionForSelection([out, retval] VARIANT_BOOL *pBool); + + [id(DISPID_SETROOT), helpstring("old, use put_Root() instead")] + HRESULT SetRoot([in] BSTR bstrFullPath); + } + + [ + object, + uuid(e572d3c9-37be-4ae2-825d-d521763e3108), // IID_IShellNameSpace + dual, + helpstring("IShellNameSpace Interface"), + pointer_default(unique), + hidden + ] + interface IShellNameSpace : IShellFavoritesNameSpace + { + [propget, id(DISPID_ENUMOPTIONS), helpstring("options ")] + HRESULT EnumOptions([out, retval] LONG *pgrfEnumFlags); + [propput, id(DISPID_ENUMOPTIONS), helpstring("options ")] + HRESULT EnumOptions([in] LONG lVal); + + [propget, id(DISPID_SELECTEDITEM), helpstring("get the selected item")] + HRESULT SelectedItem([out, retval] IDispatch **pItem); + [propput, id(DISPID_SELECTEDITEM), helpstring("select an item in the tree")] + HRESULT SelectedItem([in] IDispatch *pItem); + + [propget, id(DISPID_ROOT), helpstring("get the root item")] + HRESULT Root([out, retval] VARIANT *pvar); + [propput, id(DISPID_ROOT), helpstring("set the root")] + HRESULT Root([in] VARIANT var); + [propget, id(DISPID_DEPTH), helpstring("")] + HRESULT Depth([out, retval] int *piDepth); + [propput, id(DISPID_DEPTH), helpstring("")] + HRESULT Depth([in] int iDepth); + [propget, id(DISPID_MODE), helpstring("")] + HRESULT Mode([out, retval] UINT *puMode); + [propput, id(DISPID_MODE), helpstring("")] + HRESULT Mode([in] UINT uMode); + [propget, id(DISPID_FLAGS), helpstring("")] + HRESULT Flags([out, retval] DWORD *pdwFlags); + [propput, id(DISPID_FLAGS), helpstring("")] + HRESULT Flags([in] DWORD dwFlags); + [propput, id(DISPID_TVFLAGS), helpstring("")] + HRESULT TVFlags([in] DWORD dwFlags); + [propget, id(DISPID_TVFLAGS), helpstring("")] + HRESULT TVFlags([out, retval] DWORD *dwFlags); + [propget, id(DISPID_NSCOLUMNS), helpstring("")] + HRESULT Columns([out, retval] BSTR *bstrColumns); + [propput, id(DISPID_NSCOLUMNS), helpstring("")] + HRESULT Columns([in] BSTR bstrColumns); + [propget, id(DISPID_COUNTVIEWTYPES), helpstring("number of view types")] + HRESULT CountViewTypes([out, retval] int *piTypes); + [id(DISPID_SETVIEWTYPE), helpstring("set view type")] + HRESULT SetViewType([in] int iType); + [id(DISPID_SELECTEDITEMS), helpstring("collection of selected items")] + HRESULT SelectedItems([out, retval] IDispatch **ppid); + [id(DISPID_EXPAND), helpstring("expands item specified depth")] + HRESULT Expand([in] VARIANT var, int iDepth); + //[propget,id(DISPID_READYSTATE), helpstring("return ready state of the control")] + // HRESULT ReadyState([retval, out] READYSTATE * plReadyState); + [id(DISPID_UNSELECTALL), helpstring("unselects all items")] + HRESULT UnselectAll(); + } + + [ + uuid(55136805-B2DE-11D1-B9F2-00A0C98BC547) // CLSID_ShellNameSpace + ] + coclass ShellNameSpace + { + [default] interface IShellNameSpace; + [default, source] dispinterface DShellNameSpaceEvents; + }; + + [ + uuid(F3470F24-15FD-11d2-BB2E-00805FF7EFCA), // IID_IScriptErrorList + helpstring("Script Error List Interface"), + oleautomation, + hidden, + dual, + ] + interface IScriptErrorList : IDispatch + { + // navigation through list of errors + [id(DISPID_ADVANCEERROR)] HRESULT advanceError(); + [id(DISPID_RETREATERROR)] HRESULT retreatError(); + [id(DISPID_CANADVANCEERROR)] HRESULT canAdvanceError([out, retval] BOOL * pfCanAdvance); + [id(DISPID_CANRETREATERROR)] HRESULT canRetreatError([out, retval] BOOL * pfCanRetreat); + + // data access for the current error in the error list + [id(DISPID_GETERRORLINE)] HRESULT getErrorLine([out, retval] LONG * plLine); + [id(DISPID_GETERRORCHAR)] HRESULT getErrorChar([out, retval] LONG * plChar); + [id(DISPID_GETERRORCODE)] HRESULT getErrorCode([out, retval] LONG * plCode); + [id(DISPID_GETERRORMSG)] HRESULT getErrorMsg([out, retval] BSTR * pstr); + [id(DISPID_GETERRORURL)] HRESULT getErrorUrl([out, retval] BSTR * pstr); + + [id(DISPID_GETALWAYSSHOWLOCKSTATE)] HRESULT getAlwaysShowLockState([out, retval] BOOL * pfAlwaysShowLocked); + [id(DISPID_GETDETAILSSTATE)] HRESULT getDetailsPaneOpen([out, retval] BOOL * pfDetailsPaneOpen); + [id(DISPID_SETDETAILSSTATE)] HRESULT setDetailsPaneOpen(BOOL fDetailsPaneOpen); + [id(DISPID_GETPERERRSTATE)] HRESULT getPerErrorDisplay([out, retval] BOOL * pfPerErrorDisplay); + [id(DISPID_SETPERERRSTATE)] HRESULT setPerErrorDisplay(BOOL fPerErrorDisplay); + } + [ + uuid(EFD01300-160F-11d2-BB2E-00805FF7EFCA), // CLSID_ScriptErrorList + hidden, + noncreatable, + ] + coclass CScriptErrorList + { + [default] interface IScriptErrorList; + } + +}; // SHDocVw library + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExDisp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExDisp.h new file mode 100644 index 0000000000000000000000000000000000000000..11b2ea79d49a9184a8f56c460edc7b703a4ac51c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExDisp.h @@ -0,0 +1,10231 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __exdisp_h__ +#define __exdisp_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IWebBrowser_FWD_DEFINED__ +#define __IWebBrowser_FWD_DEFINED__ +typedef interface IWebBrowser IWebBrowser; + +#endif /* __IWebBrowser_FWD_DEFINED__ */ + + +#ifndef __DWebBrowserEvents_FWD_DEFINED__ +#define __DWebBrowserEvents_FWD_DEFINED__ +typedef interface DWebBrowserEvents DWebBrowserEvents; + +#endif /* __DWebBrowserEvents_FWD_DEFINED__ */ + + +#ifndef __IWebBrowserApp_FWD_DEFINED__ +#define __IWebBrowserApp_FWD_DEFINED__ +typedef interface IWebBrowserApp IWebBrowserApp; + +#endif /* __IWebBrowserApp_FWD_DEFINED__ */ + + +#ifndef __IWebBrowser2_FWD_DEFINED__ +#define __IWebBrowser2_FWD_DEFINED__ +typedef interface IWebBrowser2 IWebBrowser2; + +#endif /* __IWebBrowser2_FWD_DEFINED__ */ + + +#ifndef __DWebBrowserEvents2_FWD_DEFINED__ +#define __DWebBrowserEvents2_FWD_DEFINED__ +typedef interface DWebBrowserEvents2 DWebBrowserEvents2; + +#endif /* __DWebBrowserEvents2_FWD_DEFINED__ */ + + +#ifndef __WebBrowser_V1_FWD_DEFINED__ +#define __WebBrowser_V1_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class WebBrowser_V1 WebBrowser_V1; +#else +typedef struct WebBrowser_V1 WebBrowser_V1; +#endif /* __cplusplus */ + +#endif /* __WebBrowser_V1_FWD_DEFINED__ */ + + +#ifndef __WebBrowser_FWD_DEFINED__ +#define __WebBrowser_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class WebBrowser WebBrowser; +#else +typedef struct WebBrowser WebBrowser; +#endif /* __cplusplus */ + +#endif /* __WebBrowser_FWD_DEFINED__ */ + + +#ifndef __InternetExplorer_FWD_DEFINED__ +#define __InternetExplorer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class InternetExplorer InternetExplorer; +#else +typedef struct InternetExplorer InternetExplorer; +#endif /* __cplusplus */ + +#endif /* __InternetExplorer_FWD_DEFINED__ */ + + +#ifndef __InternetExplorerMedium_FWD_DEFINED__ +#define __InternetExplorerMedium_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class InternetExplorerMedium InternetExplorerMedium; +#else +typedef struct InternetExplorerMedium InternetExplorerMedium; +#endif /* __cplusplus */ + +#endif /* __InternetExplorerMedium_FWD_DEFINED__ */ + + +#ifndef __ShellBrowserWindow_FWD_DEFINED__ +#define __ShellBrowserWindow_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ShellBrowserWindow ShellBrowserWindow; +#else +typedef struct ShellBrowserWindow ShellBrowserWindow; +#endif /* __cplusplus */ + +#endif /* __ShellBrowserWindow_FWD_DEFINED__ */ + + +#ifndef __DShellWindowsEvents_FWD_DEFINED__ +#define __DShellWindowsEvents_FWD_DEFINED__ +typedef interface DShellWindowsEvents DShellWindowsEvents; + +#endif /* __DShellWindowsEvents_FWD_DEFINED__ */ + + +#ifndef __IShellWindows_FWD_DEFINED__ +#define __IShellWindows_FWD_DEFINED__ +typedef interface IShellWindows IShellWindows; + +#endif /* __IShellWindows_FWD_DEFINED__ */ + + +#ifndef __ShellWindows_FWD_DEFINED__ +#define __ShellWindows_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ShellWindows ShellWindows; +#else +typedef struct ShellWindows ShellWindows; +#endif /* __cplusplus */ + +#endif /* __ShellWindows_FWD_DEFINED__ */ + + +#ifndef __IShellUIHelper_FWD_DEFINED__ +#define __IShellUIHelper_FWD_DEFINED__ +typedef interface IShellUIHelper IShellUIHelper; + +#endif /* __IShellUIHelper_FWD_DEFINED__ */ + + +#ifndef __IShellUIHelper2_FWD_DEFINED__ +#define __IShellUIHelper2_FWD_DEFINED__ +typedef interface IShellUIHelper2 IShellUIHelper2; + +#endif /* __IShellUIHelper2_FWD_DEFINED__ */ + + +#ifndef __IShellUIHelper3_FWD_DEFINED__ +#define __IShellUIHelper3_FWD_DEFINED__ +typedef interface IShellUIHelper3 IShellUIHelper3; + +#endif /* __IShellUIHelper3_FWD_DEFINED__ */ + + +#ifndef __IShellUIHelper4_FWD_DEFINED__ +#define __IShellUIHelper4_FWD_DEFINED__ +typedef interface IShellUIHelper4 IShellUIHelper4; + +#endif /* __IShellUIHelper4_FWD_DEFINED__ */ + + +#ifndef __IShellUIHelper5_FWD_DEFINED__ +#define __IShellUIHelper5_FWD_DEFINED__ +typedef interface IShellUIHelper5 IShellUIHelper5; + +#endif /* __IShellUIHelper5_FWD_DEFINED__ */ + + +#ifndef __IShellUIHelper6_FWD_DEFINED__ +#define __IShellUIHelper6_FWD_DEFINED__ +typedef interface IShellUIHelper6 IShellUIHelper6; + +#endif /* __IShellUIHelper6_FWD_DEFINED__ */ + + +#ifndef __IShellUIHelper7_FWD_DEFINED__ +#define __IShellUIHelper7_FWD_DEFINED__ +typedef interface IShellUIHelper7 IShellUIHelper7; + +#endif /* __IShellUIHelper7_FWD_DEFINED__ */ + + +#ifndef __IShellUIHelper8_FWD_DEFINED__ +#define __IShellUIHelper8_FWD_DEFINED__ +typedef interface IShellUIHelper8 IShellUIHelper8; + +#endif /* __IShellUIHelper8_FWD_DEFINED__ */ + + +#ifndef __IShellUIHelper9_FWD_DEFINED__ +#define __IShellUIHelper9_FWD_DEFINED__ +typedef interface IShellUIHelper9 IShellUIHelper9; + +#endif /* __IShellUIHelper9_FWD_DEFINED__ */ + + +#ifndef __ShellUIHelper_FWD_DEFINED__ +#define __ShellUIHelper_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ShellUIHelper ShellUIHelper; +#else +typedef struct ShellUIHelper ShellUIHelper; +#endif /* __cplusplus */ + +#endif /* __ShellUIHelper_FWD_DEFINED__ */ + + +#ifndef __DShellNameSpaceEvents_FWD_DEFINED__ +#define __DShellNameSpaceEvents_FWD_DEFINED__ +typedef interface DShellNameSpaceEvents DShellNameSpaceEvents; + +#endif /* __DShellNameSpaceEvents_FWD_DEFINED__ */ + + +#ifndef __IShellFavoritesNameSpace_FWD_DEFINED__ +#define __IShellFavoritesNameSpace_FWD_DEFINED__ +typedef interface IShellFavoritesNameSpace IShellFavoritesNameSpace; + +#endif /* __IShellFavoritesNameSpace_FWD_DEFINED__ */ + + +#ifndef __IShellNameSpace_FWD_DEFINED__ +#define __IShellNameSpace_FWD_DEFINED__ +typedef interface IShellNameSpace IShellNameSpace; + +#endif /* __IShellNameSpace_FWD_DEFINED__ */ + + +#ifndef __ShellNameSpace_FWD_DEFINED__ +#define __ShellNameSpace_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ShellNameSpace ShellNameSpace; +#else +typedef struct ShellNameSpace ShellNameSpace; +#endif /* __cplusplus */ + +#endif /* __ShellNameSpace_FWD_DEFINED__ */ + + +#ifndef __IScriptErrorList_FWD_DEFINED__ +#define __IScriptErrorList_FWD_DEFINED__ +typedef interface IScriptErrorList IScriptErrorList; + +#endif /* __IScriptErrorList_FWD_DEFINED__ */ + + +#ifndef __CScriptErrorList_FWD_DEFINED__ +#define __CScriptErrorList_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CScriptErrorList CScriptErrorList; +#else +typedef struct CScriptErrorList CScriptErrorList; +#endif /* __cplusplus */ + +#endif /* __CScriptErrorList_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" +#include "docobj.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_exdisp_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// exdisp.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(pop) +#pragma warning(pop) +#pragma region Desktop Family +#pragma endregion +#define SID_SkipHung IID_IEnumVARIANT + + +extern RPC_IF_HANDLE __MIDL_itf_exdisp_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_exdisp_0000_0000_v0_0_s_ifspec; + + +#ifndef __SHDocVw_LIBRARY_DEFINED__ +#define __SHDocVw_LIBRARY_DEFINED__ + +/* library SHDocVw */ +/* [version][lcid][helpstring][uuid] */ + +typedef /* [helpstring][uuid] */ DECLSPEC_UUID("34A226E0-DF30-11CF-89A9-00A0C9054129") +enum CommandStateChangeConstants + { + CSC_UPDATECOMMANDS = ( int )0xffffffff, + CSC_NAVIGATEFORWARD = 0x1, + CSC_NAVIGATEBACK = 0x2 + } CommandStateChangeConstants; + +typedef /* [helpstring][uuid] */ DECLSPEC_UUID("65507BE0-91A8-11d3-A845-009027220E6D") +enum SecureLockIconConstants + { + secureLockIconUnsecure = 0, + secureLockIconMixed = 0x1, + secureLockIconSecureUnknownBits = 0x2, + secureLockIconSecure40Bit = 0x3, + secureLockIconSecure56Bit = 0x4, + secureLockIconSecureFortezza = 0x5, + secureLockIconSecure128Bit = 0x6 + } SecureLockIconConstants; + +typedef /* [helpstring][uuid] */ DECLSPEC_UUID("a8317d46-03cb-4975-ae94-85e9f2e1d020") +enum NewProcessCauseConstants + { + ProtectedModeRedirect = 0x1 + } NewProcessCauseConstants; + +typedef /* [helpstring][uuid] */ DECLSPEC_UUID("F41E6981-28E5-11d0-82B4-00A0C90C29C5") +enum ShellWindowTypeConstants + { + SWC_EXPLORER = 0, + SWC_BROWSER = 0x1, + SWC_3RDPARTY = 0x2, + SWC_CALLBACK = 0x4, + SWC_DESKTOP = 0x8 + } ShellWindowTypeConstants; + +typedef /* [hidden][helpstring][uuid] */ DECLSPEC_UUID("7716a370-38ca-11d0-a48b-00a0c90a8f39") +enum ShellWindowFindWindowOptions + { + SWFO_NEEDDISPATCH = 0x1, + SWFO_INCLUDEPENDING = 0x2, + SWFO_COOKIEPASSED = 0x4 + } ShellWindowFindWindowOptions; + + +EXTERN_C const IID LIBID_SHDocVw; + +#ifndef __IWebBrowser_INTERFACE_DEFINED__ +#define __IWebBrowser_INTERFACE_DEFINED__ + +/* interface IWebBrowser */ +/* [object][oleautomation][dual][hidden][helpcontext][helpstring][uuid] */ + +typedef /* [helpstring][uuid] */ DECLSPEC_UUID("14EE5380-A378-11cf-A731-00A0C9082637") +enum BrowserNavConstants + { + navOpenInNewWindow = 0x1, + navNoHistory = 0x2, + navNoReadFromCache = 0x4, + navNoWriteToCache = 0x8, + navAllowAutosearch = 0x10, + navBrowserBar = 0x20, + navHyperlink = 0x40, + navEnforceRestricted = 0x80, + navNewWindowsManaged = 0x100, + navUntrustedForDownload = 0x200, + navTrustedForActiveX = 0x400, + navOpenInNewTab = 0x800, + navOpenInBackgroundTab = 0x1000, + navKeepWordWheelText = 0x2000, + navVirtualTab = 0x4000, + navBlockRedirectsXDomain = 0x8000, + navOpenNewForegroundTab = 0x10000, + navTravelLogScreenshot = 0x20000, + navDeferUnload = 0x40000, + navSpeculative = 0x80000, + navSuggestNewWindow = 0x100000, + navSuggestNewTab = 0x200000, + navReserved1 = 0x400000, + navHomepageNavigate = 0x800000, + navRefresh = 0x1000000, + navHostNavigation = 0x2000000, + navReserved2 = 0x4000000, + navReserved3 = 0x8000000, + navReserved4 = 0x10000000, + navReserved5 = 0x20000000, + navReserved6 = 0x40000000, + navReserved7 = 0x80000000 + } BrowserNavConstants; + +//;begin_internal +#define navUserInitiatedAction navReserved1 +#define navDisableDownloadSave navReserved2 +#define navServerRedirectedVtabSwitch navReserved3 +#define navVtabSwitchNotUserInitiatedAction navReserved4 +#define navCheckDontShowNeedIE navReserved5 +#define navCheckDontShowNeedHVSI navReserved6 +#define navCheckDontShowHVSINeedHost navReserved7 +//;end_internal +typedef /* [helpstring][uuid] */ DECLSPEC_UUID("C317C261-A991-11cf-A731-00A0C9082637") +enum RefreshConstants + { + REFRESH_NORMAL = 0, + REFRESH_IFEXPIRED = 1, + REFRESH_COMPLETELY = 3 + } RefreshConstants; + + +EXTERN_C const IID IID_IWebBrowser; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EAB22AC1-30C1-11CF-A7EB-0000C05BAE0B") + IWebBrowser : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GoBack( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GoForward( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GoHome( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GoSearch( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Navigate( + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Flags, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *TargetFrameName, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *PostData, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Headers) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh2( + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Level) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Stop( void) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Application( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Parent( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Container( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Document( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_TopLevelContainer( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__deref_out_opt BSTR *Type) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Left( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Left( + /* [in] */ long Left) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Top( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Top( + /* [in] */ long Top) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Width( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Width( + /* [in] */ long Width) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Height( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Height( + /* [in] */ long Height) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_LocationName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *LocationName) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_LocationURL( + /* [retval][out] */ __RPC__deref_out_opt BSTR *LocationURL) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Busy( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWebBrowserVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWebBrowser * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWebBrowser * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWebBrowser * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWebBrowser * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWebBrowser * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWebBrowser * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWebBrowser * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWebBrowser, GoBack) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoBack )( + __RPC__in IWebBrowser * This); + + DECLSPEC_XFGVIRT(IWebBrowser, GoForward) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoForward )( + __RPC__in IWebBrowser * This); + + DECLSPEC_XFGVIRT(IWebBrowser, GoHome) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoHome )( + __RPC__in IWebBrowser * This); + + DECLSPEC_XFGVIRT(IWebBrowser, GoSearch) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoSearch )( + __RPC__in IWebBrowser * This); + + DECLSPEC_XFGVIRT(IWebBrowser, Navigate) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Navigate )( + __RPC__in IWebBrowser * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Flags, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *TargetFrameName, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *PostData, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Headers); + + DECLSPEC_XFGVIRT(IWebBrowser, Refresh) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IWebBrowser * This); + + DECLSPEC_XFGVIRT(IWebBrowser, Refresh2) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh2 )( + __RPC__in IWebBrowser * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Level); + + DECLSPEC_XFGVIRT(IWebBrowser, Stop) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IWebBrowser * This); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Application) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Application )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Parent) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Container) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Container )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Document) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Document )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_TopLevelContainer) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_TopLevelContainer )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Type) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Type); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Left) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Left )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Left) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Left )( + __RPC__in IWebBrowser * This, + /* [in] */ long Left); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Top) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Top )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Top) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Top )( + __RPC__in IWebBrowser * This, + /* [in] */ long Top); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Width) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Width )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Width) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Width )( + __RPC__in IWebBrowser * This, + /* [in] */ long Width); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Height) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Height )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Height) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Height )( + __RPC__in IWebBrowser * This, + /* [in] */ long Height); + + DECLSPEC_XFGVIRT(IWebBrowser, get_LocationName) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LocationName )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *LocationName); + + DECLSPEC_XFGVIRT(IWebBrowser, get_LocationURL) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LocationURL )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *LocationURL); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Busy) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Busy )( + __RPC__in IWebBrowser * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + END_INTERFACE + } IWebBrowserVtbl; + + interface IWebBrowser + { + CONST_VTBL struct IWebBrowserVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWebBrowser_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWebBrowser_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWebBrowser_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWebBrowser_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWebBrowser_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWebBrowser_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWebBrowser_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWebBrowser_GoBack(This) \ + ( (This)->lpVtbl -> GoBack(This) ) + +#define IWebBrowser_GoForward(This) \ + ( (This)->lpVtbl -> GoForward(This) ) + +#define IWebBrowser_GoHome(This) \ + ( (This)->lpVtbl -> GoHome(This) ) + +#define IWebBrowser_GoSearch(This) \ + ( (This)->lpVtbl -> GoSearch(This) ) + +#define IWebBrowser_Navigate(This,URL,Flags,TargetFrameName,PostData,Headers) \ + ( (This)->lpVtbl -> Navigate(This,URL,Flags,TargetFrameName,PostData,Headers) ) + +#define IWebBrowser_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IWebBrowser_Refresh2(This,Level) \ + ( (This)->lpVtbl -> Refresh2(This,Level) ) + +#define IWebBrowser_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IWebBrowser_get_Application(This,ppDisp) \ + ( (This)->lpVtbl -> get_Application(This,ppDisp) ) + +#define IWebBrowser_get_Parent(This,ppDisp) \ + ( (This)->lpVtbl -> get_Parent(This,ppDisp) ) + +#define IWebBrowser_get_Container(This,ppDisp) \ + ( (This)->lpVtbl -> get_Container(This,ppDisp) ) + +#define IWebBrowser_get_Document(This,ppDisp) \ + ( (This)->lpVtbl -> get_Document(This,ppDisp) ) + +#define IWebBrowser_get_TopLevelContainer(This,pBool) \ + ( (This)->lpVtbl -> get_TopLevelContainer(This,pBool) ) + +#define IWebBrowser_get_Type(This,Type) \ + ( (This)->lpVtbl -> get_Type(This,Type) ) + +#define IWebBrowser_get_Left(This,pl) \ + ( (This)->lpVtbl -> get_Left(This,pl) ) + +#define IWebBrowser_put_Left(This,Left) \ + ( (This)->lpVtbl -> put_Left(This,Left) ) + +#define IWebBrowser_get_Top(This,pl) \ + ( (This)->lpVtbl -> get_Top(This,pl) ) + +#define IWebBrowser_put_Top(This,Top) \ + ( (This)->lpVtbl -> put_Top(This,Top) ) + +#define IWebBrowser_get_Width(This,pl) \ + ( (This)->lpVtbl -> get_Width(This,pl) ) + +#define IWebBrowser_put_Width(This,Width) \ + ( (This)->lpVtbl -> put_Width(This,Width) ) + +#define IWebBrowser_get_Height(This,pl) \ + ( (This)->lpVtbl -> get_Height(This,pl) ) + +#define IWebBrowser_put_Height(This,Height) \ + ( (This)->lpVtbl -> put_Height(This,Height) ) + +#define IWebBrowser_get_LocationName(This,LocationName) \ + ( (This)->lpVtbl -> get_LocationName(This,LocationName) ) + +#define IWebBrowser_get_LocationURL(This,LocationURL) \ + ( (This)->lpVtbl -> get_LocationURL(This,LocationURL) ) + +#define IWebBrowser_get_Busy(This,pBool) \ + ( (This)->lpVtbl -> get_Busy(This,pBool) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWebBrowser_INTERFACE_DEFINED__ */ + + +#ifndef __DWebBrowserEvents_DISPINTERFACE_DEFINED__ +#define __DWebBrowserEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface DWebBrowserEvents */ +/* [hidden][helpstring][uuid] */ + + +EXTERN_C const IID DIID_DWebBrowserEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EAB22AC2-30C1-11CF-A7EB-0000C05BAE0B") + DWebBrowserEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct DWebBrowserEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DWebBrowserEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DWebBrowserEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DWebBrowserEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DWebBrowserEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DWebBrowserEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DWebBrowserEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DWebBrowserEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } DWebBrowserEventsVtbl; + + interface DWebBrowserEvents + { + CONST_VTBL struct DWebBrowserEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DWebBrowserEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DWebBrowserEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DWebBrowserEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DWebBrowserEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DWebBrowserEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DWebBrowserEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DWebBrowserEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __DWebBrowserEvents_DISPINTERFACE_DEFINED__ */ + + +#ifndef __IWebBrowserApp_INTERFACE_DEFINED__ +#define __IWebBrowserApp_INTERFACE_DEFINED__ + +/* interface IWebBrowserApp */ +/* [object][dual][oleautomation][hidden][helpcontext][helpstring][uuid] */ + + +EXTERN_C const IID IID_IWebBrowserApp; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0002DF05-0000-0000-C000-000000000046") + IWebBrowserApp : public IWebBrowser + { + public: + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Quit( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE ClientToWindow( + /* [out][in] */ __RPC__inout int *pcx, + /* [out][in] */ __RPC__inout int *pcy) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE PutProperty( + /* [in] */ __RPC__in BSTR Property, + /* [in] */ VARIANT vtValue) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ __RPC__in BSTR Property, + /* [retval][out] */ __RPC__out VARIANT *pvtValue) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *Name) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_HWND( + /* [retval][out] */ __RPC__out SHANDLE_PTR *pHWND) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_FullName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *FullName) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *Path) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Visible( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Visible( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_StatusBar( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_StatusBar( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_StatusText( + /* [retval][out] */ __RPC__deref_out_opt BSTR *StatusText) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_StatusText( + /* [in] */ __RPC__in BSTR StatusText) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ToolBar( + /* [retval][out] */ __RPC__out int *Value) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ToolBar( + /* [in] */ int Value) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_MenuBar( + /* [retval][out] */ __RPC__out VARIANT_BOOL *Value) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MenuBar( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_FullScreen( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbFullScreen) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_FullScreen( + /* [in] */ VARIANT_BOOL bFullScreen) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWebBrowserAppVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWebBrowserApp * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWebBrowserApp * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWebBrowserApp * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWebBrowserApp * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWebBrowserApp * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWebBrowserApp * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWebBrowserApp * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWebBrowser, GoBack) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoBack )( + __RPC__in IWebBrowserApp * This); + + DECLSPEC_XFGVIRT(IWebBrowser, GoForward) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoForward )( + __RPC__in IWebBrowserApp * This); + + DECLSPEC_XFGVIRT(IWebBrowser, GoHome) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoHome )( + __RPC__in IWebBrowserApp * This); + + DECLSPEC_XFGVIRT(IWebBrowser, GoSearch) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoSearch )( + __RPC__in IWebBrowserApp * This); + + DECLSPEC_XFGVIRT(IWebBrowser, Navigate) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Navigate )( + __RPC__in IWebBrowserApp * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Flags, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *TargetFrameName, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *PostData, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Headers); + + DECLSPEC_XFGVIRT(IWebBrowser, Refresh) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IWebBrowserApp * This); + + DECLSPEC_XFGVIRT(IWebBrowser, Refresh2) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh2 )( + __RPC__in IWebBrowserApp * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Level); + + DECLSPEC_XFGVIRT(IWebBrowser, Stop) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IWebBrowserApp * This); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Application) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Application )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Parent) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Container) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Container )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Document) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Document )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_TopLevelContainer) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_TopLevelContainer )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Type) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Type); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Left) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Left )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Left) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Left )( + __RPC__in IWebBrowserApp * This, + /* [in] */ long Left); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Top) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Top )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Top) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Top )( + __RPC__in IWebBrowserApp * This, + /* [in] */ long Top); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Width) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Width )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Width) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Width )( + __RPC__in IWebBrowserApp * This, + /* [in] */ long Width); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Height) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Height )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Height) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Height )( + __RPC__in IWebBrowserApp * This, + /* [in] */ long Height); + + DECLSPEC_XFGVIRT(IWebBrowser, get_LocationName) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LocationName )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *LocationName); + + DECLSPEC_XFGVIRT(IWebBrowser, get_LocationURL) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LocationURL )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *LocationURL); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Busy) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Busy )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IWebBrowserApp, Quit) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Quit )( + __RPC__in IWebBrowserApp * This); + + DECLSPEC_XFGVIRT(IWebBrowserApp, ClientToWindow) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ClientToWindow )( + __RPC__in IWebBrowserApp * This, + /* [out][in] */ __RPC__inout int *pcx, + /* [out][in] */ __RPC__inout int *pcy); + + DECLSPEC_XFGVIRT(IWebBrowserApp, PutProperty) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PutProperty )( + __RPC__in IWebBrowserApp * This, + /* [in] */ __RPC__in BSTR Property, + /* [in] */ VARIANT vtValue); + + DECLSPEC_XFGVIRT(IWebBrowserApp, GetProperty) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IWebBrowserApp * This, + /* [in] */ __RPC__in BSTR Property, + /* [retval][out] */ __RPC__out VARIANT *pvtValue); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_Name) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Name); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_HWND) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_HWND )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out SHANDLE_PTR *pHWND); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_FullName) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_FullName )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *FullName); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_Path) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Path); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_Visible) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Visible )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_Visible) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Visible )( + __RPC__in IWebBrowserApp * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_StatusBar) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_StatusBar )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_StatusBar) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_StatusBar )( + __RPC__in IWebBrowserApp * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_StatusText) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_StatusText )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *StatusText); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_StatusText) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_StatusText )( + __RPC__in IWebBrowserApp * This, + /* [in] */ __RPC__in BSTR StatusText); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_ToolBar) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ToolBar )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out int *Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_ToolBar) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ToolBar )( + __RPC__in IWebBrowserApp * This, + /* [in] */ int Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_MenuBar) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MenuBar )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_MenuBar) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MenuBar )( + __RPC__in IWebBrowserApp * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_FullScreen) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_FullScreen )( + __RPC__in IWebBrowserApp * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbFullScreen); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_FullScreen) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_FullScreen )( + __RPC__in IWebBrowserApp * This, + /* [in] */ VARIANT_BOOL bFullScreen); + + END_INTERFACE + } IWebBrowserAppVtbl; + + interface IWebBrowserApp + { + CONST_VTBL struct IWebBrowserAppVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWebBrowserApp_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWebBrowserApp_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWebBrowserApp_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWebBrowserApp_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWebBrowserApp_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWebBrowserApp_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWebBrowserApp_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWebBrowserApp_GoBack(This) \ + ( (This)->lpVtbl -> GoBack(This) ) + +#define IWebBrowserApp_GoForward(This) \ + ( (This)->lpVtbl -> GoForward(This) ) + +#define IWebBrowserApp_GoHome(This) \ + ( (This)->lpVtbl -> GoHome(This) ) + +#define IWebBrowserApp_GoSearch(This) \ + ( (This)->lpVtbl -> GoSearch(This) ) + +#define IWebBrowserApp_Navigate(This,URL,Flags,TargetFrameName,PostData,Headers) \ + ( (This)->lpVtbl -> Navigate(This,URL,Flags,TargetFrameName,PostData,Headers) ) + +#define IWebBrowserApp_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IWebBrowserApp_Refresh2(This,Level) \ + ( (This)->lpVtbl -> Refresh2(This,Level) ) + +#define IWebBrowserApp_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IWebBrowserApp_get_Application(This,ppDisp) \ + ( (This)->lpVtbl -> get_Application(This,ppDisp) ) + +#define IWebBrowserApp_get_Parent(This,ppDisp) \ + ( (This)->lpVtbl -> get_Parent(This,ppDisp) ) + +#define IWebBrowserApp_get_Container(This,ppDisp) \ + ( (This)->lpVtbl -> get_Container(This,ppDisp) ) + +#define IWebBrowserApp_get_Document(This,ppDisp) \ + ( (This)->lpVtbl -> get_Document(This,ppDisp) ) + +#define IWebBrowserApp_get_TopLevelContainer(This,pBool) \ + ( (This)->lpVtbl -> get_TopLevelContainer(This,pBool) ) + +#define IWebBrowserApp_get_Type(This,Type) \ + ( (This)->lpVtbl -> get_Type(This,Type) ) + +#define IWebBrowserApp_get_Left(This,pl) \ + ( (This)->lpVtbl -> get_Left(This,pl) ) + +#define IWebBrowserApp_put_Left(This,Left) \ + ( (This)->lpVtbl -> put_Left(This,Left) ) + +#define IWebBrowserApp_get_Top(This,pl) \ + ( (This)->lpVtbl -> get_Top(This,pl) ) + +#define IWebBrowserApp_put_Top(This,Top) \ + ( (This)->lpVtbl -> put_Top(This,Top) ) + +#define IWebBrowserApp_get_Width(This,pl) \ + ( (This)->lpVtbl -> get_Width(This,pl) ) + +#define IWebBrowserApp_put_Width(This,Width) \ + ( (This)->lpVtbl -> put_Width(This,Width) ) + +#define IWebBrowserApp_get_Height(This,pl) \ + ( (This)->lpVtbl -> get_Height(This,pl) ) + +#define IWebBrowserApp_put_Height(This,Height) \ + ( (This)->lpVtbl -> put_Height(This,Height) ) + +#define IWebBrowserApp_get_LocationName(This,LocationName) \ + ( (This)->lpVtbl -> get_LocationName(This,LocationName) ) + +#define IWebBrowserApp_get_LocationURL(This,LocationURL) \ + ( (This)->lpVtbl -> get_LocationURL(This,LocationURL) ) + +#define IWebBrowserApp_get_Busy(This,pBool) \ + ( (This)->lpVtbl -> get_Busy(This,pBool) ) + + +#define IWebBrowserApp_Quit(This) \ + ( (This)->lpVtbl -> Quit(This) ) + +#define IWebBrowserApp_ClientToWindow(This,pcx,pcy) \ + ( (This)->lpVtbl -> ClientToWindow(This,pcx,pcy) ) + +#define IWebBrowserApp_PutProperty(This,Property,vtValue) \ + ( (This)->lpVtbl -> PutProperty(This,Property,vtValue) ) + +#define IWebBrowserApp_GetProperty(This,Property,pvtValue) \ + ( (This)->lpVtbl -> GetProperty(This,Property,pvtValue) ) + +#define IWebBrowserApp_get_Name(This,Name) \ + ( (This)->lpVtbl -> get_Name(This,Name) ) + +#define IWebBrowserApp_get_HWND(This,pHWND) \ + ( (This)->lpVtbl -> get_HWND(This,pHWND) ) + +#define IWebBrowserApp_get_FullName(This,FullName) \ + ( (This)->lpVtbl -> get_FullName(This,FullName) ) + +#define IWebBrowserApp_get_Path(This,Path) \ + ( (This)->lpVtbl -> get_Path(This,Path) ) + +#define IWebBrowserApp_get_Visible(This,pBool) \ + ( (This)->lpVtbl -> get_Visible(This,pBool) ) + +#define IWebBrowserApp_put_Visible(This,Value) \ + ( (This)->lpVtbl -> put_Visible(This,Value) ) + +#define IWebBrowserApp_get_StatusBar(This,pBool) \ + ( (This)->lpVtbl -> get_StatusBar(This,pBool) ) + +#define IWebBrowserApp_put_StatusBar(This,Value) \ + ( (This)->lpVtbl -> put_StatusBar(This,Value) ) + +#define IWebBrowserApp_get_StatusText(This,StatusText) \ + ( (This)->lpVtbl -> get_StatusText(This,StatusText) ) + +#define IWebBrowserApp_put_StatusText(This,StatusText) \ + ( (This)->lpVtbl -> put_StatusText(This,StatusText) ) + +#define IWebBrowserApp_get_ToolBar(This,Value) \ + ( (This)->lpVtbl -> get_ToolBar(This,Value) ) + +#define IWebBrowserApp_put_ToolBar(This,Value) \ + ( (This)->lpVtbl -> put_ToolBar(This,Value) ) + +#define IWebBrowserApp_get_MenuBar(This,Value) \ + ( (This)->lpVtbl -> get_MenuBar(This,Value) ) + +#define IWebBrowserApp_put_MenuBar(This,Value) \ + ( (This)->lpVtbl -> put_MenuBar(This,Value) ) + +#define IWebBrowserApp_get_FullScreen(This,pbFullScreen) \ + ( (This)->lpVtbl -> get_FullScreen(This,pbFullScreen) ) + +#define IWebBrowserApp_put_FullScreen(This,bFullScreen) \ + ( (This)->lpVtbl -> put_FullScreen(This,bFullScreen) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWebBrowserApp_INTERFACE_DEFINED__ */ + + +#ifndef __IWebBrowser2_INTERFACE_DEFINED__ +#define __IWebBrowser2_INTERFACE_DEFINED__ + +/* interface IWebBrowser2 */ +/* [object][dual][oleautomation][hidden][helpcontext][helpstring][uuid] */ + + +EXTERN_C const IID IID_IWebBrowser2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D30C1661-CDAF-11d0-8A3E-00C04FC9E26E") + IWebBrowser2 : public IWebBrowserApp + { + public: + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Navigate2( + /* [in] */ __RPC__in VARIANT *URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Flags, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *TargetFrameName, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *PostData, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Headers) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE QueryStatusWB( + /* [in] */ OLECMDID cmdID, + /* [retval][out] */ __RPC__out OLECMDF *pcmdf) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE ExecWB( + /* [in] */ OLECMDID cmdID, + /* [in] */ OLECMDEXECOPT cmdexecopt, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvaIn, + /* [unique][optional][out][in] */ __RPC__inout_opt VARIANT *pvaOut) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE ShowBrowserBar( + /* [in] */ __RPC__in VARIANT *pvaClsid, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarShow, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarSize) = 0; + + virtual /* [bindable][propget][id] */ HRESULT STDMETHODCALLTYPE get_ReadyState( + /* [out][retval] */ __RPC__out READYSTATE *plReadyState) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Offline( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbOffline) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Offline( + /* [in] */ VARIANT_BOOL bOffline) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Silent( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSilent) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Silent( + /* [in] */ VARIANT_BOOL bSilent) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_RegisterAsBrowser( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRegister) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_RegisterAsBrowser( + /* [in] */ VARIANT_BOOL bRegister) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_RegisterAsDropTarget( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRegister) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_RegisterAsDropTarget( + /* [in] */ VARIANT_BOOL bRegister) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_TheaterMode( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRegister) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_TheaterMode( + /* [in] */ VARIANT_BOOL bRegister) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_AddressBar( + /* [retval][out] */ __RPC__out VARIANT_BOOL *Value) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_AddressBar( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Resizable( + /* [retval][out] */ __RPC__out VARIANT_BOOL *Value) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Resizable( + /* [in] */ VARIANT_BOOL Value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWebBrowser2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWebBrowser2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWebBrowser2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWebBrowser2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWebBrowser2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWebBrowser2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWebBrowser2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWebBrowser2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWebBrowser, GoBack) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoBack )( + __RPC__in IWebBrowser2 * This); + + DECLSPEC_XFGVIRT(IWebBrowser, GoForward) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoForward )( + __RPC__in IWebBrowser2 * This); + + DECLSPEC_XFGVIRT(IWebBrowser, GoHome) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoHome )( + __RPC__in IWebBrowser2 * This); + + DECLSPEC_XFGVIRT(IWebBrowser, GoSearch) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GoSearch )( + __RPC__in IWebBrowser2 * This); + + DECLSPEC_XFGVIRT(IWebBrowser, Navigate) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Navigate )( + __RPC__in IWebBrowser2 * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Flags, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *TargetFrameName, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *PostData, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Headers); + + DECLSPEC_XFGVIRT(IWebBrowser, Refresh) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IWebBrowser2 * This); + + DECLSPEC_XFGVIRT(IWebBrowser, Refresh2) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh2 )( + __RPC__in IWebBrowser2 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Level); + + DECLSPEC_XFGVIRT(IWebBrowser, Stop) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IWebBrowser2 * This); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Application) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Application )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Parent) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Container) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Container )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Document) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Document )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppDisp); + + DECLSPEC_XFGVIRT(IWebBrowser, get_TopLevelContainer) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_TopLevelContainer )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Type) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Type); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Left) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Left )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Left) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Left )( + __RPC__in IWebBrowser2 * This, + /* [in] */ long Left); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Top) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Top )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Top) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Top )( + __RPC__in IWebBrowser2 * This, + /* [in] */ long Top); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Width) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Width )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Width) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Width )( + __RPC__in IWebBrowser2 * This, + /* [in] */ long Width); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Height) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Height )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IWebBrowser, put_Height) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Height )( + __RPC__in IWebBrowser2 * This, + /* [in] */ long Height); + + DECLSPEC_XFGVIRT(IWebBrowser, get_LocationName) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LocationName )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *LocationName); + + DECLSPEC_XFGVIRT(IWebBrowser, get_LocationURL) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LocationURL )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *LocationURL); + + DECLSPEC_XFGVIRT(IWebBrowser, get_Busy) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Busy )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IWebBrowserApp, Quit) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Quit )( + __RPC__in IWebBrowser2 * This); + + DECLSPEC_XFGVIRT(IWebBrowserApp, ClientToWindow) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ClientToWindow )( + __RPC__in IWebBrowser2 * This, + /* [out][in] */ __RPC__inout int *pcx, + /* [out][in] */ __RPC__inout int *pcy); + + DECLSPEC_XFGVIRT(IWebBrowserApp, PutProperty) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PutProperty )( + __RPC__in IWebBrowser2 * This, + /* [in] */ __RPC__in BSTR Property, + /* [in] */ VARIANT vtValue); + + DECLSPEC_XFGVIRT(IWebBrowserApp, GetProperty) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IWebBrowser2 * This, + /* [in] */ __RPC__in BSTR Property, + /* [retval][out] */ __RPC__out VARIANT *pvtValue); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_Name) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Name); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_HWND) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_HWND )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out SHANDLE_PTR *pHWND); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_FullName) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_FullName )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *FullName); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_Path) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Path); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_Visible) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Visible )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_Visible) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Visible )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_StatusBar) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_StatusBar )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_StatusBar) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_StatusBar )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_StatusText) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_StatusText )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *StatusText); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_StatusText) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_StatusText )( + __RPC__in IWebBrowser2 * This, + /* [in] */ __RPC__in BSTR StatusText); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_ToolBar) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ToolBar )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out int *Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_ToolBar) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ToolBar )( + __RPC__in IWebBrowser2 * This, + /* [in] */ int Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_MenuBar) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MenuBar )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_MenuBar) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MenuBar )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IWebBrowserApp, get_FullScreen) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_FullScreen )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbFullScreen); + + DECLSPEC_XFGVIRT(IWebBrowserApp, put_FullScreen) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_FullScreen )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL bFullScreen); + + DECLSPEC_XFGVIRT(IWebBrowser2, Navigate2) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Navigate2 )( + __RPC__in IWebBrowser2 * This, + /* [in] */ __RPC__in VARIANT *URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Flags, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *TargetFrameName, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *PostData, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Headers); + + DECLSPEC_XFGVIRT(IWebBrowser2, QueryStatusWB) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *QueryStatusWB )( + __RPC__in IWebBrowser2 * This, + /* [in] */ OLECMDID cmdID, + /* [retval][out] */ __RPC__out OLECMDF *pcmdf); + + DECLSPEC_XFGVIRT(IWebBrowser2, ExecWB) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExecWB )( + __RPC__in IWebBrowser2 * This, + /* [in] */ OLECMDID cmdID, + /* [in] */ OLECMDEXECOPT cmdexecopt, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvaIn, + /* [unique][optional][out][in] */ __RPC__inout_opt VARIANT *pvaOut); + + DECLSPEC_XFGVIRT(IWebBrowser2, ShowBrowserBar) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ShowBrowserBar )( + __RPC__in IWebBrowser2 * This, + /* [in] */ __RPC__in VARIANT *pvaClsid, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarShow, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarSize); + + DECLSPEC_XFGVIRT(IWebBrowser2, get_ReadyState) + /* [bindable][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ReadyState )( + __RPC__in IWebBrowser2 * This, + /* [out][retval] */ __RPC__out READYSTATE *plReadyState); + + DECLSPEC_XFGVIRT(IWebBrowser2, get_Offline) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Offline )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbOffline); + + DECLSPEC_XFGVIRT(IWebBrowser2, put_Offline) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Offline )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL bOffline); + + DECLSPEC_XFGVIRT(IWebBrowser2, get_Silent) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSilent); + + DECLSPEC_XFGVIRT(IWebBrowser2, put_Silent) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL bSilent); + + DECLSPEC_XFGVIRT(IWebBrowser2, get_RegisterAsBrowser) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RegisterAsBrowser )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRegister); + + DECLSPEC_XFGVIRT(IWebBrowser2, put_RegisterAsBrowser) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_RegisterAsBrowser )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL bRegister); + + DECLSPEC_XFGVIRT(IWebBrowser2, get_RegisterAsDropTarget) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RegisterAsDropTarget )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRegister); + + DECLSPEC_XFGVIRT(IWebBrowser2, put_RegisterAsDropTarget) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_RegisterAsDropTarget )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL bRegister); + + DECLSPEC_XFGVIRT(IWebBrowser2, get_TheaterMode) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_TheaterMode )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRegister); + + DECLSPEC_XFGVIRT(IWebBrowser2, put_TheaterMode) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_TheaterMode )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL bRegister); + + DECLSPEC_XFGVIRT(IWebBrowser2, get_AddressBar) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AddressBar )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *Value); + + DECLSPEC_XFGVIRT(IWebBrowser2, put_AddressBar) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AddressBar )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IWebBrowser2, get_Resizable) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Resizable )( + __RPC__in IWebBrowser2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *Value); + + DECLSPEC_XFGVIRT(IWebBrowser2, put_Resizable) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Resizable )( + __RPC__in IWebBrowser2 * This, + /* [in] */ VARIANT_BOOL Value); + + END_INTERFACE + } IWebBrowser2Vtbl; + + interface IWebBrowser2 + { + CONST_VTBL struct IWebBrowser2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWebBrowser2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWebBrowser2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWebBrowser2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWebBrowser2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWebBrowser2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWebBrowser2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWebBrowser2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWebBrowser2_GoBack(This) \ + ( (This)->lpVtbl -> GoBack(This) ) + +#define IWebBrowser2_GoForward(This) \ + ( (This)->lpVtbl -> GoForward(This) ) + +#define IWebBrowser2_GoHome(This) \ + ( (This)->lpVtbl -> GoHome(This) ) + +#define IWebBrowser2_GoSearch(This) \ + ( (This)->lpVtbl -> GoSearch(This) ) + +#define IWebBrowser2_Navigate(This,URL,Flags,TargetFrameName,PostData,Headers) \ + ( (This)->lpVtbl -> Navigate(This,URL,Flags,TargetFrameName,PostData,Headers) ) + +#define IWebBrowser2_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IWebBrowser2_Refresh2(This,Level) \ + ( (This)->lpVtbl -> Refresh2(This,Level) ) + +#define IWebBrowser2_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IWebBrowser2_get_Application(This,ppDisp) \ + ( (This)->lpVtbl -> get_Application(This,ppDisp) ) + +#define IWebBrowser2_get_Parent(This,ppDisp) \ + ( (This)->lpVtbl -> get_Parent(This,ppDisp) ) + +#define IWebBrowser2_get_Container(This,ppDisp) \ + ( (This)->lpVtbl -> get_Container(This,ppDisp) ) + +#define IWebBrowser2_get_Document(This,ppDisp) \ + ( (This)->lpVtbl -> get_Document(This,ppDisp) ) + +#define IWebBrowser2_get_TopLevelContainer(This,pBool) \ + ( (This)->lpVtbl -> get_TopLevelContainer(This,pBool) ) + +#define IWebBrowser2_get_Type(This,Type) \ + ( (This)->lpVtbl -> get_Type(This,Type) ) + +#define IWebBrowser2_get_Left(This,pl) \ + ( (This)->lpVtbl -> get_Left(This,pl) ) + +#define IWebBrowser2_put_Left(This,Left) \ + ( (This)->lpVtbl -> put_Left(This,Left) ) + +#define IWebBrowser2_get_Top(This,pl) \ + ( (This)->lpVtbl -> get_Top(This,pl) ) + +#define IWebBrowser2_put_Top(This,Top) \ + ( (This)->lpVtbl -> put_Top(This,Top) ) + +#define IWebBrowser2_get_Width(This,pl) \ + ( (This)->lpVtbl -> get_Width(This,pl) ) + +#define IWebBrowser2_put_Width(This,Width) \ + ( (This)->lpVtbl -> put_Width(This,Width) ) + +#define IWebBrowser2_get_Height(This,pl) \ + ( (This)->lpVtbl -> get_Height(This,pl) ) + +#define IWebBrowser2_put_Height(This,Height) \ + ( (This)->lpVtbl -> put_Height(This,Height) ) + +#define IWebBrowser2_get_LocationName(This,LocationName) \ + ( (This)->lpVtbl -> get_LocationName(This,LocationName) ) + +#define IWebBrowser2_get_LocationURL(This,LocationURL) \ + ( (This)->lpVtbl -> get_LocationURL(This,LocationURL) ) + +#define IWebBrowser2_get_Busy(This,pBool) \ + ( (This)->lpVtbl -> get_Busy(This,pBool) ) + + +#define IWebBrowser2_Quit(This) \ + ( (This)->lpVtbl -> Quit(This) ) + +#define IWebBrowser2_ClientToWindow(This,pcx,pcy) \ + ( (This)->lpVtbl -> ClientToWindow(This,pcx,pcy) ) + +#define IWebBrowser2_PutProperty(This,Property,vtValue) \ + ( (This)->lpVtbl -> PutProperty(This,Property,vtValue) ) + +#define IWebBrowser2_GetProperty(This,Property,pvtValue) \ + ( (This)->lpVtbl -> GetProperty(This,Property,pvtValue) ) + +#define IWebBrowser2_get_Name(This,Name) \ + ( (This)->lpVtbl -> get_Name(This,Name) ) + +#define IWebBrowser2_get_HWND(This,pHWND) \ + ( (This)->lpVtbl -> get_HWND(This,pHWND) ) + +#define IWebBrowser2_get_FullName(This,FullName) \ + ( (This)->lpVtbl -> get_FullName(This,FullName) ) + +#define IWebBrowser2_get_Path(This,Path) \ + ( (This)->lpVtbl -> get_Path(This,Path) ) + +#define IWebBrowser2_get_Visible(This,pBool) \ + ( (This)->lpVtbl -> get_Visible(This,pBool) ) + +#define IWebBrowser2_put_Visible(This,Value) \ + ( (This)->lpVtbl -> put_Visible(This,Value) ) + +#define IWebBrowser2_get_StatusBar(This,pBool) \ + ( (This)->lpVtbl -> get_StatusBar(This,pBool) ) + +#define IWebBrowser2_put_StatusBar(This,Value) \ + ( (This)->lpVtbl -> put_StatusBar(This,Value) ) + +#define IWebBrowser2_get_StatusText(This,StatusText) \ + ( (This)->lpVtbl -> get_StatusText(This,StatusText) ) + +#define IWebBrowser2_put_StatusText(This,StatusText) \ + ( (This)->lpVtbl -> put_StatusText(This,StatusText) ) + +#define IWebBrowser2_get_ToolBar(This,Value) \ + ( (This)->lpVtbl -> get_ToolBar(This,Value) ) + +#define IWebBrowser2_put_ToolBar(This,Value) \ + ( (This)->lpVtbl -> put_ToolBar(This,Value) ) + +#define IWebBrowser2_get_MenuBar(This,Value) \ + ( (This)->lpVtbl -> get_MenuBar(This,Value) ) + +#define IWebBrowser2_put_MenuBar(This,Value) \ + ( (This)->lpVtbl -> put_MenuBar(This,Value) ) + +#define IWebBrowser2_get_FullScreen(This,pbFullScreen) \ + ( (This)->lpVtbl -> get_FullScreen(This,pbFullScreen) ) + +#define IWebBrowser2_put_FullScreen(This,bFullScreen) \ + ( (This)->lpVtbl -> put_FullScreen(This,bFullScreen) ) + + +#define IWebBrowser2_Navigate2(This,URL,Flags,TargetFrameName,PostData,Headers) \ + ( (This)->lpVtbl -> Navigate2(This,URL,Flags,TargetFrameName,PostData,Headers) ) + +#define IWebBrowser2_QueryStatusWB(This,cmdID,pcmdf) \ + ( (This)->lpVtbl -> QueryStatusWB(This,cmdID,pcmdf) ) + +#define IWebBrowser2_ExecWB(This,cmdID,cmdexecopt,pvaIn,pvaOut) \ + ( (This)->lpVtbl -> ExecWB(This,cmdID,cmdexecopt,pvaIn,pvaOut) ) + +#define IWebBrowser2_ShowBrowserBar(This,pvaClsid,pvarShow,pvarSize) \ + ( (This)->lpVtbl -> ShowBrowserBar(This,pvaClsid,pvarShow,pvarSize) ) + +#define IWebBrowser2_get_ReadyState(This,plReadyState) \ + ( (This)->lpVtbl -> get_ReadyState(This,plReadyState) ) + +#define IWebBrowser2_get_Offline(This,pbOffline) \ + ( (This)->lpVtbl -> get_Offline(This,pbOffline) ) + +#define IWebBrowser2_put_Offline(This,bOffline) \ + ( (This)->lpVtbl -> put_Offline(This,bOffline) ) + +#define IWebBrowser2_get_Silent(This,pbSilent) \ + ( (This)->lpVtbl -> get_Silent(This,pbSilent) ) + +#define IWebBrowser2_put_Silent(This,bSilent) \ + ( (This)->lpVtbl -> put_Silent(This,bSilent) ) + +#define IWebBrowser2_get_RegisterAsBrowser(This,pbRegister) \ + ( (This)->lpVtbl -> get_RegisterAsBrowser(This,pbRegister) ) + +#define IWebBrowser2_put_RegisterAsBrowser(This,bRegister) \ + ( (This)->lpVtbl -> put_RegisterAsBrowser(This,bRegister) ) + +#define IWebBrowser2_get_RegisterAsDropTarget(This,pbRegister) \ + ( (This)->lpVtbl -> get_RegisterAsDropTarget(This,pbRegister) ) + +#define IWebBrowser2_put_RegisterAsDropTarget(This,bRegister) \ + ( (This)->lpVtbl -> put_RegisterAsDropTarget(This,bRegister) ) + +#define IWebBrowser2_get_TheaterMode(This,pbRegister) \ + ( (This)->lpVtbl -> get_TheaterMode(This,pbRegister) ) + +#define IWebBrowser2_put_TheaterMode(This,bRegister) \ + ( (This)->lpVtbl -> put_TheaterMode(This,bRegister) ) + +#define IWebBrowser2_get_AddressBar(This,Value) \ + ( (This)->lpVtbl -> get_AddressBar(This,Value) ) + +#define IWebBrowser2_put_AddressBar(This,Value) \ + ( (This)->lpVtbl -> put_AddressBar(This,Value) ) + +#define IWebBrowser2_get_Resizable(This,Value) \ + ( (This)->lpVtbl -> get_Resizable(This,Value) ) + +#define IWebBrowser2_put_Resizable(This,Value) \ + ( (This)->lpVtbl -> put_Resizable(This,Value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWebBrowser2_INTERFACE_DEFINED__ */ + + +#ifndef __DWebBrowserEvents2_DISPINTERFACE_DEFINED__ +#define __DWebBrowserEvents2_DISPINTERFACE_DEFINED__ + +/* dispinterface DWebBrowserEvents2 */ +/* [hidden][helpstring][uuid] */ + + +EXTERN_C const IID DIID_DWebBrowserEvents2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("34A715A0-6587-11D0-924A-0020AFC7AC4D") + DWebBrowserEvents2 : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct DWebBrowserEvents2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DWebBrowserEvents2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DWebBrowserEvents2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DWebBrowserEvents2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DWebBrowserEvents2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DWebBrowserEvents2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DWebBrowserEvents2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DWebBrowserEvents2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } DWebBrowserEvents2Vtbl; + + interface DWebBrowserEvents2 + { + CONST_VTBL struct DWebBrowserEvents2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DWebBrowserEvents2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DWebBrowserEvents2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DWebBrowserEvents2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DWebBrowserEvents2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DWebBrowserEvents2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DWebBrowserEvents2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DWebBrowserEvents2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __DWebBrowserEvents2_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_WebBrowser_V1; + +#ifdef __cplusplus + +class DECLSPEC_UUID("EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B") +WebBrowser_V1; +#endif + +EXTERN_C const CLSID CLSID_WebBrowser; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8856F961-340A-11D0-A96B-00C04FD705A2") +WebBrowser; +#endif + +EXTERN_C const CLSID CLSID_InternetExplorer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("0002DF01-0000-0000-C000-000000000046") +InternetExplorer; +#endif + +EXTERN_C const CLSID CLSID_InternetExplorerMedium; + +#ifdef __cplusplus + +class DECLSPEC_UUID("D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E") +InternetExplorerMedium; +#endif + +EXTERN_C const CLSID CLSID_ShellBrowserWindow; + +#ifdef __cplusplus + +class DECLSPEC_UUID("c08afd90-f2a1-11d1-8455-00a0c91f3880") +ShellBrowserWindow; +#endif + +#ifndef __DShellWindowsEvents_DISPINTERFACE_DEFINED__ +#define __DShellWindowsEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface DShellWindowsEvents */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_DShellWindowsEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fe4106e0-399a-11d0-a48c-00a0c90a8f39") + DShellWindowsEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct DShellWindowsEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DShellWindowsEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DShellWindowsEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DShellWindowsEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DShellWindowsEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DShellWindowsEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DShellWindowsEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DShellWindowsEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } DShellWindowsEventsVtbl; + + interface DShellWindowsEvents + { + CONST_VTBL struct DShellWindowsEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DShellWindowsEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DShellWindowsEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DShellWindowsEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DShellWindowsEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DShellWindowsEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DShellWindowsEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DShellWindowsEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __DShellWindowsEvents_DISPINTERFACE_DEFINED__ */ + + +#ifndef __IShellWindows_INTERFACE_DEFINED__ +#define __IShellWindows_INTERFACE_DEFINED__ + +/* interface IShellWindows */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IShellWindows; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("85CB6900-4D95-11CF-960C-0080C7F4EE85") + IShellWindows : public IDispatch + { + public: + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *Count) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Item( + /* [optional][in] */ VARIANT index, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **Folder) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE _NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppunk) = 0; + + virtual /* [hidden][helpstring] */ HRESULT STDMETHODCALLTYPE Register( + /* [in] */ __RPC__in_opt IDispatch *pid, + /* [in] */ long hwnd, + /* [in] */ int swClass, + /* [out] */ __RPC__out long *plCookie) = 0; + + virtual /* [hidden][helpstring] */ HRESULT STDMETHODCALLTYPE RegisterPending( + /* [in] */ long lThreadId, + /* [in] */ __RPC__in VARIANT *pvarloc, + /* [in] */ __RPC__in VARIANT *pvarlocRoot, + /* [in] */ int swClass, + /* [out] */ __RPC__out long *plCookie) = 0; + + virtual /* [hidden][helpstring] */ HRESULT STDMETHODCALLTYPE Revoke( + /* [in] */ long lCookie) = 0; + + virtual /* [hidden][helpstring] */ HRESULT STDMETHODCALLTYPE OnNavigate( + /* [in] */ long lCookie, + /* [in] */ __RPC__in VARIANT *pvarLoc) = 0; + + virtual /* [hidden][helpstring] */ HRESULT STDMETHODCALLTYPE OnActivated( + /* [in] */ long lCookie, + /* [in] */ VARIANT_BOOL fActive) = 0; + + virtual /* [hidden][helpstring] */ HRESULT STDMETHODCALLTYPE FindWindowSW( + /* [in] */ __RPC__in VARIANT *pvarLoc, + /* [in] */ __RPC__in VARIANT *pvarLocRoot, + /* [in] */ int swClass, + /* [out] */ __RPC__out long *phwnd, + /* [in] */ int swfwOptions, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppdispOut) = 0; + + virtual /* [hidden][helpstring] */ HRESULT STDMETHODCALLTYPE OnCreated( + /* [in] */ long lCookie, + /* [in] */ __RPC__in_opt IUnknown *punk) = 0; + + virtual /* [hidden][helpstring] */ HRESULT STDMETHODCALLTYPE ProcessAttachDetach( + /* [in] */ VARIANT_BOOL fAttach) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellWindowsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellWindows * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellWindows * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellWindows * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellWindows * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellWindows * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellWindows * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellWindows * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellWindows, get_Count) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IShellWindows * This, + /* [retval][out] */ __RPC__out long *Count); + + DECLSPEC_XFGVIRT(IShellWindows, Item) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Item )( + __RPC__in IShellWindows * This, + /* [optional][in] */ VARIANT index, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **Folder); + + DECLSPEC_XFGVIRT(IShellWindows, _NewEnum) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in IShellWindows * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppunk); + + DECLSPEC_XFGVIRT(IShellWindows, Register) + /* [hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Register )( + __RPC__in IShellWindows * This, + /* [in] */ __RPC__in_opt IDispatch *pid, + /* [in] */ long hwnd, + /* [in] */ int swClass, + /* [out] */ __RPC__out long *plCookie); + + DECLSPEC_XFGVIRT(IShellWindows, RegisterPending) + /* [hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterPending )( + __RPC__in IShellWindows * This, + /* [in] */ long lThreadId, + /* [in] */ __RPC__in VARIANT *pvarloc, + /* [in] */ __RPC__in VARIANT *pvarlocRoot, + /* [in] */ int swClass, + /* [out] */ __RPC__out long *plCookie); + + DECLSPEC_XFGVIRT(IShellWindows, Revoke) + /* [hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *Revoke )( + __RPC__in IShellWindows * This, + /* [in] */ long lCookie); + + DECLSPEC_XFGVIRT(IShellWindows, OnNavigate) + /* [hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnNavigate )( + __RPC__in IShellWindows * This, + /* [in] */ long lCookie, + /* [in] */ __RPC__in VARIANT *pvarLoc); + + DECLSPEC_XFGVIRT(IShellWindows, OnActivated) + /* [hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnActivated )( + __RPC__in IShellWindows * This, + /* [in] */ long lCookie, + /* [in] */ VARIANT_BOOL fActive); + + DECLSPEC_XFGVIRT(IShellWindows, FindWindowSW) + /* [hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *FindWindowSW )( + __RPC__in IShellWindows * This, + /* [in] */ __RPC__in VARIANT *pvarLoc, + /* [in] */ __RPC__in VARIANT *pvarLocRoot, + /* [in] */ int swClass, + /* [out] */ __RPC__out long *phwnd, + /* [in] */ int swfwOptions, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppdispOut); + + DECLSPEC_XFGVIRT(IShellWindows, OnCreated) + /* [hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnCreated )( + __RPC__in IShellWindows * This, + /* [in] */ long lCookie, + /* [in] */ __RPC__in_opt IUnknown *punk); + + DECLSPEC_XFGVIRT(IShellWindows, ProcessAttachDetach) + /* [hidden][helpstring] */ HRESULT ( STDMETHODCALLTYPE *ProcessAttachDetach )( + __RPC__in IShellWindows * This, + /* [in] */ VARIANT_BOOL fAttach); + + END_INTERFACE + } IShellWindowsVtbl; + + interface IShellWindows + { + CONST_VTBL struct IShellWindowsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellWindows_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellWindows_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellWindows_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellWindows_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellWindows_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellWindows_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellWindows_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellWindows_get_Count(This,Count) \ + ( (This)->lpVtbl -> get_Count(This,Count) ) + +#define IShellWindows_Item(This,index,Folder) \ + ( (This)->lpVtbl -> Item(This,index,Folder) ) + +#define IShellWindows__NewEnum(This,ppunk) \ + ( (This)->lpVtbl -> _NewEnum(This,ppunk) ) + +#define IShellWindows_Register(This,pid,hwnd,swClass,plCookie) \ + ( (This)->lpVtbl -> Register(This,pid,hwnd,swClass,plCookie) ) + +#define IShellWindows_RegisterPending(This,lThreadId,pvarloc,pvarlocRoot,swClass,plCookie) \ + ( (This)->lpVtbl -> RegisterPending(This,lThreadId,pvarloc,pvarlocRoot,swClass,plCookie) ) + +#define IShellWindows_Revoke(This,lCookie) \ + ( (This)->lpVtbl -> Revoke(This,lCookie) ) + +#define IShellWindows_OnNavigate(This,lCookie,pvarLoc) \ + ( (This)->lpVtbl -> OnNavigate(This,lCookie,pvarLoc) ) + +#define IShellWindows_OnActivated(This,lCookie,fActive) \ + ( (This)->lpVtbl -> OnActivated(This,lCookie,fActive) ) + +#define IShellWindows_FindWindowSW(This,pvarLoc,pvarLocRoot,swClass,phwnd,swfwOptions,ppdispOut) \ + ( (This)->lpVtbl -> FindWindowSW(This,pvarLoc,pvarLocRoot,swClass,phwnd,swfwOptions,ppdispOut) ) + +#define IShellWindows_OnCreated(This,lCookie,punk) \ + ( (This)->lpVtbl -> OnCreated(This,lCookie,punk) ) + +#define IShellWindows_ProcessAttachDetach(This,fAttach) \ + ( (This)->lpVtbl -> ProcessAttachDetach(This,fAttach) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellWindows_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_ShellWindows; + +#ifdef __cplusplus + +class DECLSPEC_UUID("9BA05972-F6A8-11CF-A442-00A0C90A8F39") +ShellWindows; +#endif + +#ifndef __IShellUIHelper_INTERFACE_DEFINED__ +#define __IShellUIHelper_INTERFACE_DEFINED__ + +/* interface IShellUIHelper */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IShellUIHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("729FE2F8-1EA8-11d1-8F85-00C04FC2FBE1") + IShellUIHelper : public IDispatch + { + public: + virtual /* [id][hidden] */ HRESULT STDMETHODCALLTYPE ResetFirstBootMode( void) = 0; + + virtual /* [id][hidden] */ HRESULT STDMETHODCALLTYPE ResetSafeMode( void) = 0; + + virtual /* [id][hidden] */ HRESULT STDMETHODCALLTYPE RefreshOfflineDesktop( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AddFavorite( + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Title) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AddChannel( + /* [in] */ __RPC__in BSTR URL) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AddDesktopComponent( + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Type, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Left, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Top, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Width, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Height) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE IsSubscribed( + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE NavigateAndFind( + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR strQuery, + /* [in] */ __RPC__in VARIANT *varTargetFrame) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ImportExportFavorites( + /* [in] */ VARIANT_BOOL fImport, + /* [in] */ __RPC__in BSTR strImpExpPath) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AutoCompleteSaveForm( + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Form) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AutoScan( + /* [in] */ __RPC__in BSTR strSearch, + /* [in] */ __RPC__in BSTR strFailureUrl, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarTargetFrame) = 0; + + virtual /* [id][hidden] */ HRESULT STDMETHODCALLTYPE AutoCompleteAttach( + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Reserved) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ShowBrowserUI( + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in VARIANT *pvarIn, + /* [retval][out] */ __RPC__out VARIANT *pvarOut) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellUIHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellUIHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellUIHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellUIHelper * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellUIHelper * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellUIHelper * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellUIHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellUIHelper * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetFirstBootMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetFirstBootMode )( + __RPC__in IShellUIHelper * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetSafeMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetSafeMode )( + __RPC__in IShellUIHelper * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, RefreshOfflineDesktop) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *RefreshOfflineDesktop )( + __RPC__in IShellUIHelper * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddFavorite) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddFavorite )( + __RPC__in IShellUIHelper * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Title); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddChannel) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddChannel )( + __RPC__in IShellUIHelper * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddDesktopComponent) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddDesktopComponent )( + __RPC__in IShellUIHelper * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Type, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Left, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Top, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Width, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Height); + + DECLSPEC_XFGVIRT(IShellUIHelper, IsSubscribed) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSubscribed )( + __RPC__in IShellUIHelper * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellUIHelper, NavigateAndFind) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateAndFind )( + __RPC__in IShellUIHelper * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR strQuery, + /* [in] */ __RPC__in VARIANT *varTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, ImportExportFavorites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ImportExportFavorites )( + __RPC__in IShellUIHelper * This, + /* [in] */ VARIANT_BOOL fImport, + /* [in] */ __RPC__in BSTR strImpExpPath); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteSaveForm) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteSaveForm )( + __RPC__in IShellUIHelper * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Form); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoScan) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoScan )( + __RPC__in IShellUIHelper * This, + /* [in] */ __RPC__in BSTR strSearch, + /* [in] */ __RPC__in BSTR strFailureUrl, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteAttach) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteAttach )( + __RPC__in IShellUIHelper * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Reserved); + + DECLSPEC_XFGVIRT(IShellUIHelper, ShowBrowserUI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowBrowserUI )( + __RPC__in IShellUIHelper * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in VARIANT *pvarIn, + /* [retval][out] */ __RPC__out VARIANT *pvarOut); + + END_INTERFACE + } IShellUIHelperVtbl; + + interface IShellUIHelper + { + CONST_VTBL struct IShellUIHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellUIHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellUIHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellUIHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellUIHelper_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellUIHelper_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellUIHelper_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellUIHelper_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellUIHelper_ResetFirstBootMode(This) \ + ( (This)->lpVtbl -> ResetFirstBootMode(This) ) + +#define IShellUIHelper_ResetSafeMode(This) \ + ( (This)->lpVtbl -> ResetSafeMode(This) ) + +#define IShellUIHelper_RefreshOfflineDesktop(This) \ + ( (This)->lpVtbl -> RefreshOfflineDesktop(This) ) + +#define IShellUIHelper_AddFavorite(This,URL,Title) \ + ( (This)->lpVtbl -> AddFavorite(This,URL,Title) ) + +#define IShellUIHelper_AddChannel(This,URL) \ + ( (This)->lpVtbl -> AddChannel(This,URL) ) + +#define IShellUIHelper_AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) ) + +#define IShellUIHelper_IsSubscribed(This,URL,pBool) \ + ( (This)->lpVtbl -> IsSubscribed(This,URL,pBool) ) + +#define IShellUIHelper_NavigateAndFind(This,URL,strQuery,varTargetFrame) \ + ( (This)->lpVtbl -> NavigateAndFind(This,URL,strQuery,varTargetFrame) ) + +#define IShellUIHelper_ImportExportFavorites(This,fImport,strImpExpPath) \ + ( (This)->lpVtbl -> ImportExportFavorites(This,fImport,strImpExpPath) ) + +#define IShellUIHelper_AutoCompleteSaveForm(This,Form) \ + ( (This)->lpVtbl -> AutoCompleteSaveForm(This,Form) ) + +#define IShellUIHelper_AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) \ + ( (This)->lpVtbl -> AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) ) + +#define IShellUIHelper_AutoCompleteAttach(This,Reserved) \ + ( (This)->lpVtbl -> AutoCompleteAttach(This,Reserved) ) + +#define IShellUIHelper_ShowBrowserUI(This,bstrName,pvarIn,pvarOut) \ + ( (This)->lpVtbl -> ShowBrowserUI(This,bstrName,pvarIn,pvarOut) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellUIHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IShellUIHelper2_INTERFACE_DEFINED__ +#define __IShellUIHelper2_INTERFACE_DEFINED__ + +/* interface IShellUIHelper2 */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IShellUIHelper2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a7fe6eda-1932-4281-b881-87b31b8bc52c") + IShellUIHelper2 : public IShellUIHelper + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AddSearchProvider( + /* [in] */ __RPC__in BSTR URL) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE RunOnceShown( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SkipRunOnce( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE CustomizeSettings( + /* [in] */ VARIANT_BOOL fSQM, + /* [in] */ VARIANT_BOOL fPhishing, + /* [in] */ __RPC__in BSTR bstrLocale) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SqmEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE PhishingEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE BrandImageUri( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUri) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SkipTabsWelcome( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE DiagnoseConnection( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE CustomizeClearType( + /* [in] */ VARIANT_BOOL fSet) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE IsSearchProviderInstalled( + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out DWORD *pdwResult) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE IsSearchMigrated( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfMigrated) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE DefaultSearchProvider( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE RunOnceRequiredSettingsComplete( + /* [in] */ VARIANT_BOOL fComplete) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE RunOnceHasShown( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfShown) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SearchGuideUrl( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUrl) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellUIHelper2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellUIHelper2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellUIHelper2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellUIHelper2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellUIHelper2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetFirstBootMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetFirstBootMode )( + __RPC__in IShellUIHelper2 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetSafeMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetSafeMode )( + __RPC__in IShellUIHelper2 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, RefreshOfflineDesktop) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *RefreshOfflineDesktop )( + __RPC__in IShellUIHelper2 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddFavorite) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddFavorite )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Title); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddChannel) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddChannel )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddDesktopComponent) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddDesktopComponent )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Type, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Left, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Top, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Width, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Height); + + DECLSPEC_XFGVIRT(IShellUIHelper, IsSubscribed) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSubscribed )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellUIHelper, NavigateAndFind) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateAndFind )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR strQuery, + /* [in] */ __RPC__in VARIANT *varTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, ImportExportFavorites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ImportExportFavorites )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ VARIANT_BOOL fImport, + /* [in] */ __RPC__in BSTR strImpExpPath); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteSaveForm) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteSaveForm )( + __RPC__in IShellUIHelper2 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Form); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoScan) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoScan )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in BSTR strSearch, + /* [in] */ __RPC__in BSTR strFailureUrl, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteAttach) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteAttach )( + __RPC__in IShellUIHelper2 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Reserved); + + DECLSPEC_XFGVIRT(IShellUIHelper, ShowBrowserUI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowBrowserUI )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in VARIANT *pvarIn, + /* [retval][out] */ __RPC__out VARIANT *pvarOut); + + DECLSPEC_XFGVIRT(IShellUIHelper2, AddSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddSearchProvider )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceShown )( + __RPC__in IShellUIHelper2 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipRunOnce) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipRunOnce )( + __RPC__in IShellUIHelper2 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeSettings) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeSettings )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ VARIANT_BOOL fSQM, + /* [in] */ VARIANT_BOOL fPhishing, + /* [in] */ __RPC__in BSTR bstrLocale); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SqmEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SqmEnabled )( + __RPC__in IShellUIHelper2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, PhishingEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PhishingEnabled )( + __RPC__in IShellUIHelper2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, BrandImageUri) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BrandImageUri )( + __RPC__in IShellUIHelper2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUri); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipTabsWelcome) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipTabsWelcome )( + __RPC__in IShellUIHelper2 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DiagnoseConnection) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DiagnoseConnection )( + __RPC__in IShellUIHelper2 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeClearType) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeClearType )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ VARIANT_BOOL fSet); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchProviderInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchProviderInstalled )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchMigrated) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchMigrated )( + __RPC__in IShellUIHelper2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfMigrated); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DefaultSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DefaultSearchProvider )( + __RPC__in IShellUIHelper2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceRequiredSettingsComplete) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceRequiredSettingsComplete )( + __RPC__in IShellUIHelper2 * This, + /* [in] */ VARIANT_BOOL fComplete); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceHasShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceHasShown )( + __RPC__in IShellUIHelper2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfShown); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SearchGuideUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SearchGuideUrl )( + __RPC__in IShellUIHelper2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUrl); + + END_INTERFACE + } IShellUIHelper2Vtbl; + + interface IShellUIHelper2 + { + CONST_VTBL struct IShellUIHelper2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellUIHelper2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellUIHelper2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellUIHelper2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellUIHelper2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellUIHelper2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellUIHelper2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellUIHelper2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellUIHelper2_ResetFirstBootMode(This) \ + ( (This)->lpVtbl -> ResetFirstBootMode(This) ) + +#define IShellUIHelper2_ResetSafeMode(This) \ + ( (This)->lpVtbl -> ResetSafeMode(This) ) + +#define IShellUIHelper2_RefreshOfflineDesktop(This) \ + ( (This)->lpVtbl -> RefreshOfflineDesktop(This) ) + +#define IShellUIHelper2_AddFavorite(This,URL,Title) \ + ( (This)->lpVtbl -> AddFavorite(This,URL,Title) ) + +#define IShellUIHelper2_AddChannel(This,URL) \ + ( (This)->lpVtbl -> AddChannel(This,URL) ) + +#define IShellUIHelper2_AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) ) + +#define IShellUIHelper2_IsSubscribed(This,URL,pBool) \ + ( (This)->lpVtbl -> IsSubscribed(This,URL,pBool) ) + +#define IShellUIHelper2_NavigateAndFind(This,URL,strQuery,varTargetFrame) \ + ( (This)->lpVtbl -> NavigateAndFind(This,URL,strQuery,varTargetFrame) ) + +#define IShellUIHelper2_ImportExportFavorites(This,fImport,strImpExpPath) \ + ( (This)->lpVtbl -> ImportExportFavorites(This,fImport,strImpExpPath) ) + +#define IShellUIHelper2_AutoCompleteSaveForm(This,Form) \ + ( (This)->lpVtbl -> AutoCompleteSaveForm(This,Form) ) + +#define IShellUIHelper2_AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) \ + ( (This)->lpVtbl -> AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) ) + +#define IShellUIHelper2_AutoCompleteAttach(This,Reserved) \ + ( (This)->lpVtbl -> AutoCompleteAttach(This,Reserved) ) + +#define IShellUIHelper2_ShowBrowserUI(This,bstrName,pvarIn,pvarOut) \ + ( (This)->lpVtbl -> ShowBrowserUI(This,bstrName,pvarIn,pvarOut) ) + + +#define IShellUIHelper2_AddSearchProvider(This,URL) \ + ( (This)->lpVtbl -> AddSearchProvider(This,URL) ) + +#define IShellUIHelper2_RunOnceShown(This) \ + ( (This)->lpVtbl -> RunOnceShown(This) ) + +#define IShellUIHelper2_SkipRunOnce(This) \ + ( (This)->lpVtbl -> SkipRunOnce(This) ) + +#define IShellUIHelper2_CustomizeSettings(This,fSQM,fPhishing,bstrLocale) \ + ( (This)->lpVtbl -> CustomizeSettings(This,fSQM,fPhishing,bstrLocale) ) + +#define IShellUIHelper2_SqmEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> SqmEnabled(This,pfEnabled) ) + +#define IShellUIHelper2_PhishingEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> PhishingEnabled(This,pfEnabled) ) + +#define IShellUIHelper2_BrandImageUri(This,pbstrUri) \ + ( (This)->lpVtbl -> BrandImageUri(This,pbstrUri) ) + +#define IShellUIHelper2_SkipTabsWelcome(This) \ + ( (This)->lpVtbl -> SkipTabsWelcome(This) ) + +#define IShellUIHelper2_DiagnoseConnection(This) \ + ( (This)->lpVtbl -> DiagnoseConnection(This) ) + +#define IShellUIHelper2_CustomizeClearType(This,fSet) \ + ( (This)->lpVtbl -> CustomizeClearType(This,fSet) ) + +#define IShellUIHelper2_IsSearchProviderInstalled(This,URL,pdwResult) \ + ( (This)->lpVtbl -> IsSearchProviderInstalled(This,URL,pdwResult) ) + +#define IShellUIHelper2_IsSearchMigrated(This,pfMigrated) \ + ( (This)->lpVtbl -> IsSearchMigrated(This,pfMigrated) ) + +#define IShellUIHelper2_DefaultSearchProvider(This,pbstrName) \ + ( (This)->lpVtbl -> DefaultSearchProvider(This,pbstrName) ) + +#define IShellUIHelper2_RunOnceRequiredSettingsComplete(This,fComplete) \ + ( (This)->lpVtbl -> RunOnceRequiredSettingsComplete(This,fComplete) ) + +#define IShellUIHelper2_RunOnceHasShown(This,pfShown) \ + ( (This)->lpVtbl -> RunOnceHasShown(This,pfShown) ) + +#define IShellUIHelper2_SearchGuideUrl(This,pbstrUrl) \ + ( (This)->lpVtbl -> SearchGuideUrl(This,pbstrUrl) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellUIHelper2_INTERFACE_DEFINED__ */ + + +#ifndef __IShellUIHelper3_INTERFACE_DEFINED__ +#define __IShellUIHelper3_INTERFACE_DEFINED__ + +/* interface IShellUIHelper3 */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IShellUIHelper3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("528DF2EC-D419-40bc-9B6D-DCDBF9C1B25D") + IShellUIHelper3 : public IShellUIHelper2 + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AddService( + /* [in] */ __RPC__in BSTR URL) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE IsServiceInstalled( + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Verb, + /* [retval][out] */ __RPC__out DWORD *pdwResult) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE InPrivateFilteringEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AddToFavoritesBar( + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Title, + /* [in][optional] */ __RPC__in VARIANT *Type) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE BuildNewTabPage( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetRecentlyClosedVisible( + /* [in] */ VARIANT_BOOL fVisible) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetActivitiesVisible( + /* [in] */ VARIANT_BOOL fVisible) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ContentDiscoveryReset( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE IsSuggestedSitesEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE EnableSuggestedSites( + /* [in] */ VARIANT_BOOL fEnable) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE NavigateToSuggestedSites( + /* [in] */ __RPC__in BSTR bstrRelativeUrl) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ShowTabsHelp( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ShowInPrivateHelp( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellUIHelper3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellUIHelper3 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellUIHelper3 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetFirstBootMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetFirstBootMode )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetSafeMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetSafeMode )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, RefreshOfflineDesktop) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *RefreshOfflineDesktop )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddFavorite) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddFavorite )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Title); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddChannel) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddChannel )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddDesktopComponent) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddDesktopComponent )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Type, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Left, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Top, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Width, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Height); + + DECLSPEC_XFGVIRT(IShellUIHelper, IsSubscribed) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSubscribed )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellUIHelper, NavigateAndFind) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateAndFind )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR strQuery, + /* [in] */ __RPC__in VARIANT *varTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, ImportExportFavorites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ImportExportFavorites )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ VARIANT_BOOL fImport, + /* [in] */ __RPC__in BSTR strImpExpPath); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteSaveForm) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteSaveForm )( + __RPC__in IShellUIHelper3 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Form); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoScan) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoScan )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR strSearch, + /* [in] */ __RPC__in BSTR strFailureUrl, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteAttach) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteAttach )( + __RPC__in IShellUIHelper3 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Reserved); + + DECLSPEC_XFGVIRT(IShellUIHelper, ShowBrowserUI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowBrowserUI )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in VARIANT *pvarIn, + /* [retval][out] */ __RPC__out VARIANT *pvarOut); + + DECLSPEC_XFGVIRT(IShellUIHelper2, AddSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddSearchProvider )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceShown )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipRunOnce) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipRunOnce )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeSettings) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeSettings )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ VARIANT_BOOL fSQM, + /* [in] */ VARIANT_BOOL fPhishing, + /* [in] */ __RPC__in BSTR bstrLocale); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SqmEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SqmEnabled )( + __RPC__in IShellUIHelper3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, PhishingEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PhishingEnabled )( + __RPC__in IShellUIHelper3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, BrandImageUri) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BrandImageUri )( + __RPC__in IShellUIHelper3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUri); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipTabsWelcome) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipTabsWelcome )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DiagnoseConnection) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DiagnoseConnection )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeClearType) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeClearType )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ VARIANT_BOOL fSet); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchProviderInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchProviderInstalled )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchMigrated) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchMigrated )( + __RPC__in IShellUIHelper3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfMigrated); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DefaultSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DefaultSearchProvider )( + __RPC__in IShellUIHelper3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceRequiredSettingsComplete) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceRequiredSettingsComplete )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ VARIANT_BOOL fComplete); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceHasShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceHasShown )( + __RPC__in IShellUIHelper3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfShown); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SearchGuideUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SearchGuideUrl )( + __RPC__in IShellUIHelper3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddService) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddService )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsServiceInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsServiceInstalled )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Verb, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper3, InPrivateFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *InPrivateFilteringEnabled )( + __RPC__in IShellUIHelper3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddToFavoritesBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddToFavoritesBar )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Title, + /* [in][optional] */ __RPC__in VARIANT *Type); + + DECLSPEC_XFGVIRT(IShellUIHelper3, BuildNewTabPage) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BuildNewTabPage )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetRecentlyClosedVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetRecentlyClosedVisible )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetActivitiesVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetActivitiesVisible )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ContentDiscoveryReset) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ContentDiscoveryReset )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsSuggestedSitesEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSuggestedSitesEnabled )( + __RPC__in IShellUIHelper3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, EnableSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableSuggestedSites )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ VARIANT_BOOL fEnable); + + DECLSPEC_XFGVIRT(IShellUIHelper3, NavigateToSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateToSuggestedSites )( + __RPC__in IShellUIHelper3 * This, + /* [in] */ __RPC__in BSTR bstrRelativeUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowTabsHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowTabsHelp )( + __RPC__in IShellUIHelper3 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowInPrivateHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowInPrivateHelp )( + __RPC__in IShellUIHelper3 * This); + + END_INTERFACE + } IShellUIHelper3Vtbl; + + interface IShellUIHelper3 + { + CONST_VTBL struct IShellUIHelper3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellUIHelper3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellUIHelper3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellUIHelper3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellUIHelper3_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellUIHelper3_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellUIHelper3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellUIHelper3_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellUIHelper3_ResetFirstBootMode(This) \ + ( (This)->lpVtbl -> ResetFirstBootMode(This) ) + +#define IShellUIHelper3_ResetSafeMode(This) \ + ( (This)->lpVtbl -> ResetSafeMode(This) ) + +#define IShellUIHelper3_RefreshOfflineDesktop(This) \ + ( (This)->lpVtbl -> RefreshOfflineDesktop(This) ) + +#define IShellUIHelper3_AddFavorite(This,URL,Title) \ + ( (This)->lpVtbl -> AddFavorite(This,URL,Title) ) + +#define IShellUIHelper3_AddChannel(This,URL) \ + ( (This)->lpVtbl -> AddChannel(This,URL) ) + +#define IShellUIHelper3_AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) ) + +#define IShellUIHelper3_IsSubscribed(This,URL,pBool) \ + ( (This)->lpVtbl -> IsSubscribed(This,URL,pBool) ) + +#define IShellUIHelper3_NavigateAndFind(This,URL,strQuery,varTargetFrame) \ + ( (This)->lpVtbl -> NavigateAndFind(This,URL,strQuery,varTargetFrame) ) + +#define IShellUIHelper3_ImportExportFavorites(This,fImport,strImpExpPath) \ + ( (This)->lpVtbl -> ImportExportFavorites(This,fImport,strImpExpPath) ) + +#define IShellUIHelper3_AutoCompleteSaveForm(This,Form) \ + ( (This)->lpVtbl -> AutoCompleteSaveForm(This,Form) ) + +#define IShellUIHelper3_AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) \ + ( (This)->lpVtbl -> AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) ) + +#define IShellUIHelper3_AutoCompleteAttach(This,Reserved) \ + ( (This)->lpVtbl -> AutoCompleteAttach(This,Reserved) ) + +#define IShellUIHelper3_ShowBrowserUI(This,bstrName,pvarIn,pvarOut) \ + ( (This)->lpVtbl -> ShowBrowserUI(This,bstrName,pvarIn,pvarOut) ) + + +#define IShellUIHelper3_AddSearchProvider(This,URL) \ + ( (This)->lpVtbl -> AddSearchProvider(This,URL) ) + +#define IShellUIHelper3_RunOnceShown(This) \ + ( (This)->lpVtbl -> RunOnceShown(This) ) + +#define IShellUIHelper3_SkipRunOnce(This) \ + ( (This)->lpVtbl -> SkipRunOnce(This) ) + +#define IShellUIHelper3_CustomizeSettings(This,fSQM,fPhishing,bstrLocale) \ + ( (This)->lpVtbl -> CustomizeSettings(This,fSQM,fPhishing,bstrLocale) ) + +#define IShellUIHelper3_SqmEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> SqmEnabled(This,pfEnabled) ) + +#define IShellUIHelper3_PhishingEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> PhishingEnabled(This,pfEnabled) ) + +#define IShellUIHelper3_BrandImageUri(This,pbstrUri) \ + ( (This)->lpVtbl -> BrandImageUri(This,pbstrUri) ) + +#define IShellUIHelper3_SkipTabsWelcome(This) \ + ( (This)->lpVtbl -> SkipTabsWelcome(This) ) + +#define IShellUIHelper3_DiagnoseConnection(This) \ + ( (This)->lpVtbl -> DiagnoseConnection(This) ) + +#define IShellUIHelper3_CustomizeClearType(This,fSet) \ + ( (This)->lpVtbl -> CustomizeClearType(This,fSet) ) + +#define IShellUIHelper3_IsSearchProviderInstalled(This,URL,pdwResult) \ + ( (This)->lpVtbl -> IsSearchProviderInstalled(This,URL,pdwResult) ) + +#define IShellUIHelper3_IsSearchMigrated(This,pfMigrated) \ + ( (This)->lpVtbl -> IsSearchMigrated(This,pfMigrated) ) + +#define IShellUIHelper3_DefaultSearchProvider(This,pbstrName) \ + ( (This)->lpVtbl -> DefaultSearchProvider(This,pbstrName) ) + +#define IShellUIHelper3_RunOnceRequiredSettingsComplete(This,fComplete) \ + ( (This)->lpVtbl -> RunOnceRequiredSettingsComplete(This,fComplete) ) + +#define IShellUIHelper3_RunOnceHasShown(This,pfShown) \ + ( (This)->lpVtbl -> RunOnceHasShown(This,pfShown) ) + +#define IShellUIHelper3_SearchGuideUrl(This,pbstrUrl) \ + ( (This)->lpVtbl -> SearchGuideUrl(This,pbstrUrl) ) + + +#define IShellUIHelper3_AddService(This,URL) \ + ( (This)->lpVtbl -> AddService(This,URL) ) + +#define IShellUIHelper3_IsServiceInstalled(This,URL,Verb,pdwResult) \ + ( (This)->lpVtbl -> IsServiceInstalled(This,URL,Verb,pdwResult) ) + +#define IShellUIHelper3_InPrivateFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> InPrivateFilteringEnabled(This,pfEnabled) ) + +#define IShellUIHelper3_AddToFavoritesBar(This,URL,Title,Type) \ + ( (This)->lpVtbl -> AddToFavoritesBar(This,URL,Title,Type) ) + +#define IShellUIHelper3_BuildNewTabPage(This) \ + ( (This)->lpVtbl -> BuildNewTabPage(This) ) + +#define IShellUIHelper3_SetRecentlyClosedVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetRecentlyClosedVisible(This,fVisible) ) + +#define IShellUIHelper3_SetActivitiesVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetActivitiesVisible(This,fVisible) ) + +#define IShellUIHelper3_ContentDiscoveryReset(This) \ + ( (This)->lpVtbl -> ContentDiscoveryReset(This) ) + +#define IShellUIHelper3_IsSuggestedSitesEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> IsSuggestedSitesEnabled(This,pfEnabled) ) + +#define IShellUIHelper3_EnableSuggestedSites(This,fEnable) \ + ( (This)->lpVtbl -> EnableSuggestedSites(This,fEnable) ) + +#define IShellUIHelper3_NavigateToSuggestedSites(This,bstrRelativeUrl) \ + ( (This)->lpVtbl -> NavigateToSuggestedSites(This,bstrRelativeUrl) ) + +#define IShellUIHelper3_ShowTabsHelp(This) \ + ( (This)->lpVtbl -> ShowTabsHelp(This) ) + +#define IShellUIHelper3_ShowInPrivateHelp(This) \ + ( (This)->lpVtbl -> ShowInPrivateHelp(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellUIHelper3_INTERFACE_DEFINED__ */ + + +#ifndef __IShellUIHelper4_INTERFACE_DEFINED__ +#define __IShellUIHelper4_INTERFACE_DEFINED__ + +/* interface IShellUIHelper4 */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IShellUIHelper4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B36E6A53-8073-499E-824C-D776330A333E") + IShellUIHelper4 : public IShellUIHelper3 + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msIsSiteMode( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfSiteMode) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeShowThumbBar( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeAddThumbBarButton( + /* [in] */ __RPC__in BSTR bstrIconURL, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarButtonID) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeUpdateThumbBarButton( + /* [in] */ VARIANT ButtonID, + /* [in] */ VARIANT_BOOL fEnabled, + /* [in] */ VARIANT_BOOL fVisible) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeSetIconOverlay( + /* [in] */ __RPC__in BSTR IconUrl, + /* [in][optional] */ __RPC__in VARIANT *pvarDescription) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeClearIconOverlay( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msAddSiteMode( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeCreateJumpList( + /* [in] */ __RPC__in BSTR bstrHeader) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeAddJumpListItem( + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrActionUri, + /* [in] */ __RPC__in BSTR bstrIconUri, + /* [in][optional] */ __RPC__in VARIANT *pvarWindowType) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeClearJumpList( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeShowJumpList( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeAddButtonStyle( + /* [in] */ VARIANT uiButtonID, + /* [in] */ __RPC__in BSTR bstrIconUrl, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarStyleID) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeShowButtonStyle( + /* [in] */ VARIANT uiButtonID, + /* [in] */ VARIANT uiStyleID) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeActivate( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msIsSiteModeFirstRun( + /* [in] */ VARIANT_BOOL fPreserveState, + /* [retval][out] */ __RPC__out VARIANT *puiFirstRun) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msAddTrackingProtectionList( + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR bstrFilterName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msTrackingProtectionEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msActiveXFilteringEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellUIHelper4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellUIHelper4 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellUIHelper4 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetFirstBootMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetFirstBootMode )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetSafeMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetSafeMode )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, RefreshOfflineDesktop) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *RefreshOfflineDesktop )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddFavorite) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddFavorite )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Title); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddChannel) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddChannel )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddDesktopComponent) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddDesktopComponent )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Type, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Left, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Top, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Width, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Height); + + DECLSPEC_XFGVIRT(IShellUIHelper, IsSubscribed) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSubscribed )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellUIHelper, NavigateAndFind) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateAndFind )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR strQuery, + /* [in] */ __RPC__in VARIANT *varTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, ImportExportFavorites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ImportExportFavorites )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT_BOOL fImport, + /* [in] */ __RPC__in BSTR strImpExpPath); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteSaveForm) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteSaveForm )( + __RPC__in IShellUIHelper4 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Form); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoScan) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoScan )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR strSearch, + /* [in] */ __RPC__in BSTR strFailureUrl, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteAttach) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteAttach )( + __RPC__in IShellUIHelper4 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Reserved); + + DECLSPEC_XFGVIRT(IShellUIHelper, ShowBrowserUI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowBrowserUI )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in VARIANT *pvarIn, + /* [retval][out] */ __RPC__out VARIANT *pvarOut); + + DECLSPEC_XFGVIRT(IShellUIHelper2, AddSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddSearchProvider )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceShown )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipRunOnce) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipRunOnce )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeSettings) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeSettings )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT_BOOL fSQM, + /* [in] */ VARIANT_BOOL fPhishing, + /* [in] */ __RPC__in BSTR bstrLocale); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SqmEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SqmEnabled )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, PhishingEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PhishingEnabled )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, BrandImageUri) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BrandImageUri )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUri); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipTabsWelcome) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipTabsWelcome )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DiagnoseConnection) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DiagnoseConnection )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeClearType) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeClearType )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT_BOOL fSet); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchProviderInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchProviderInstalled )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchMigrated) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchMigrated )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfMigrated); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DefaultSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DefaultSearchProvider )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceRequiredSettingsComplete) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceRequiredSettingsComplete )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT_BOOL fComplete); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceHasShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceHasShown )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfShown); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SearchGuideUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SearchGuideUrl )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddService) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddService )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsServiceInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsServiceInstalled )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Verb, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper3, InPrivateFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *InPrivateFilteringEnabled )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddToFavoritesBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddToFavoritesBar )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Title, + /* [in][optional] */ __RPC__in VARIANT *Type); + + DECLSPEC_XFGVIRT(IShellUIHelper3, BuildNewTabPage) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BuildNewTabPage )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetRecentlyClosedVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetRecentlyClosedVisible )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetActivitiesVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetActivitiesVisible )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ContentDiscoveryReset) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ContentDiscoveryReset )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsSuggestedSitesEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSuggestedSitesEnabled )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, EnableSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableSuggestedSites )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT_BOOL fEnable); + + DECLSPEC_XFGVIRT(IShellUIHelper3, NavigateToSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateToSuggestedSites )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR bstrRelativeUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowTabsHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowTabsHelp )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowInPrivateHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowInPrivateHelp )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteMode )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfSiteMode); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowThumbBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowThumbBar )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddThumbBarButton )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR bstrIconURL, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarButtonID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeUpdateThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeUpdateThumbBarButton )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT ButtonID, + /* [in] */ VARIANT_BOOL fEnabled, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeSetIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeSetIconOverlay )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR IconUrl, + /* [in][optional] */ __RPC__in VARIANT *pvarDescription); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearIconOverlay )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddSiteMode )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeCreateJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeCreateJumpList )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR bstrHeader); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddJumpListItem) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddJumpListItem )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrActionUri, + /* [in] */ __RPC__in BSTR bstrIconUri, + /* [in][optional] */ __RPC__in VARIANT *pvarWindowType); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearJumpList )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowJumpList )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddButtonStyle )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ __RPC__in BSTR bstrIconUrl, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowButtonStyle )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ VARIANT uiStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeActivate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeActivate )( + __RPC__in IShellUIHelper4 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteModeFirstRun) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteModeFirstRun )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ VARIANT_BOOL fPreserveState, + /* [retval][out] */ __RPC__out VARIANT *puiFirstRun); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddTrackingProtectionList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddTrackingProtectionList )( + __RPC__in IShellUIHelper4 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR bstrFilterName); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msTrackingProtectionEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msTrackingProtectionEnabled )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msActiveXFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msActiveXFilteringEnabled )( + __RPC__in IShellUIHelper4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + END_INTERFACE + } IShellUIHelper4Vtbl; + + interface IShellUIHelper4 + { + CONST_VTBL struct IShellUIHelper4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellUIHelper4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellUIHelper4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellUIHelper4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellUIHelper4_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellUIHelper4_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellUIHelper4_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellUIHelper4_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellUIHelper4_ResetFirstBootMode(This) \ + ( (This)->lpVtbl -> ResetFirstBootMode(This) ) + +#define IShellUIHelper4_ResetSafeMode(This) \ + ( (This)->lpVtbl -> ResetSafeMode(This) ) + +#define IShellUIHelper4_RefreshOfflineDesktop(This) \ + ( (This)->lpVtbl -> RefreshOfflineDesktop(This) ) + +#define IShellUIHelper4_AddFavorite(This,URL,Title) \ + ( (This)->lpVtbl -> AddFavorite(This,URL,Title) ) + +#define IShellUIHelper4_AddChannel(This,URL) \ + ( (This)->lpVtbl -> AddChannel(This,URL) ) + +#define IShellUIHelper4_AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) ) + +#define IShellUIHelper4_IsSubscribed(This,URL,pBool) \ + ( (This)->lpVtbl -> IsSubscribed(This,URL,pBool) ) + +#define IShellUIHelper4_NavigateAndFind(This,URL,strQuery,varTargetFrame) \ + ( (This)->lpVtbl -> NavigateAndFind(This,URL,strQuery,varTargetFrame) ) + +#define IShellUIHelper4_ImportExportFavorites(This,fImport,strImpExpPath) \ + ( (This)->lpVtbl -> ImportExportFavorites(This,fImport,strImpExpPath) ) + +#define IShellUIHelper4_AutoCompleteSaveForm(This,Form) \ + ( (This)->lpVtbl -> AutoCompleteSaveForm(This,Form) ) + +#define IShellUIHelper4_AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) \ + ( (This)->lpVtbl -> AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) ) + +#define IShellUIHelper4_AutoCompleteAttach(This,Reserved) \ + ( (This)->lpVtbl -> AutoCompleteAttach(This,Reserved) ) + +#define IShellUIHelper4_ShowBrowserUI(This,bstrName,pvarIn,pvarOut) \ + ( (This)->lpVtbl -> ShowBrowserUI(This,bstrName,pvarIn,pvarOut) ) + + +#define IShellUIHelper4_AddSearchProvider(This,URL) \ + ( (This)->lpVtbl -> AddSearchProvider(This,URL) ) + +#define IShellUIHelper4_RunOnceShown(This) \ + ( (This)->lpVtbl -> RunOnceShown(This) ) + +#define IShellUIHelper4_SkipRunOnce(This) \ + ( (This)->lpVtbl -> SkipRunOnce(This) ) + +#define IShellUIHelper4_CustomizeSettings(This,fSQM,fPhishing,bstrLocale) \ + ( (This)->lpVtbl -> CustomizeSettings(This,fSQM,fPhishing,bstrLocale) ) + +#define IShellUIHelper4_SqmEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> SqmEnabled(This,pfEnabled) ) + +#define IShellUIHelper4_PhishingEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> PhishingEnabled(This,pfEnabled) ) + +#define IShellUIHelper4_BrandImageUri(This,pbstrUri) \ + ( (This)->lpVtbl -> BrandImageUri(This,pbstrUri) ) + +#define IShellUIHelper4_SkipTabsWelcome(This) \ + ( (This)->lpVtbl -> SkipTabsWelcome(This) ) + +#define IShellUIHelper4_DiagnoseConnection(This) \ + ( (This)->lpVtbl -> DiagnoseConnection(This) ) + +#define IShellUIHelper4_CustomizeClearType(This,fSet) \ + ( (This)->lpVtbl -> CustomizeClearType(This,fSet) ) + +#define IShellUIHelper4_IsSearchProviderInstalled(This,URL,pdwResult) \ + ( (This)->lpVtbl -> IsSearchProviderInstalled(This,URL,pdwResult) ) + +#define IShellUIHelper4_IsSearchMigrated(This,pfMigrated) \ + ( (This)->lpVtbl -> IsSearchMigrated(This,pfMigrated) ) + +#define IShellUIHelper4_DefaultSearchProvider(This,pbstrName) \ + ( (This)->lpVtbl -> DefaultSearchProvider(This,pbstrName) ) + +#define IShellUIHelper4_RunOnceRequiredSettingsComplete(This,fComplete) \ + ( (This)->lpVtbl -> RunOnceRequiredSettingsComplete(This,fComplete) ) + +#define IShellUIHelper4_RunOnceHasShown(This,pfShown) \ + ( (This)->lpVtbl -> RunOnceHasShown(This,pfShown) ) + +#define IShellUIHelper4_SearchGuideUrl(This,pbstrUrl) \ + ( (This)->lpVtbl -> SearchGuideUrl(This,pbstrUrl) ) + + +#define IShellUIHelper4_AddService(This,URL) \ + ( (This)->lpVtbl -> AddService(This,URL) ) + +#define IShellUIHelper4_IsServiceInstalled(This,URL,Verb,pdwResult) \ + ( (This)->lpVtbl -> IsServiceInstalled(This,URL,Verb,pdwResult) ) + +#define IShellUIHelper4_InPrivateFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> InPrivateFilteringEnabled(This,pfEnabled) ) + +#define IShellUIHelper4_AddToFavoritesBar(This,URL,Title,Type) \ + ( (This)->lpVtbl -> AddToFavoritesBar(This,URL,Title,Type) ) + +#define IShellUIHelper4_BuildNewTabPage(This) \ + ( (This)->lpVtbl -> BuildNewTabPage(This) ) + +#define IShellUIHelper4_SetRecentlyClosedVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetRecentlyClosedVisible(This,fVisible) ) + +#define IShellUIHelper4_SetActivitiesVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetActivitiesVisible(This,fVisible) ) + +#define IShellUIHelper4_ContentDiscoveryReset(This) \ + ( (This)->lpVtbl -> ContentDiscoveryReset(This) ) + +#define IShellUIHelper4_IsSuggestedSitesEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> IsSuggestedSitesEnabled(This,pfEnabled) ) + +#define IShellUIHelper4_EnableSuggestedSites(This,fEnable) \ + ( (This)->lpVtbl -> EnableSuggestedSites(This,fEnable) ) + +#define IShellUIHelper4_NavigateToSuggestedSites(This,bstrRelativeUrl) \ + ( (This)->lpVtbl -> NavigateToSuggestedSites(This,bstrRelativeUrl) ) + +#define IShellUIHelper4_ShowTabsHelp(This) \ + ( (This)->lpVtbl -> ShowTabsHelp(This) ) + +#define IShellUIHelper4_ShowInPrivateHelp(This) \ + ( (This)->lpVtbl -> ShowInPrivateHelp(This) ) + + +#define IShellUIHelper4_msIsSiteMode(This,pfSiteMode) \ + ( (This)->lpVtbl -> msIsSiteMode(This,pfSiteMode) ) + +#define IShellUIHelper4_msSiteModeShowThumbBar(This) \ + ( (This)->lpVtbl -> msSiteModeShowThumbBar(This) ) + +#define IShellUIHelper4_msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) \ + ( (This)->lpVtbl -> msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) ) + +#define IShellUIHelper4_msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) \ + ( (This)->lpVtbl -> msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) ) + +#define IShellUIHelper4_msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) \ + ( (This)->lpVtbl -> msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) ) + +#define IShellUIHelper4_msSiteModeClearIconOverlay(This) \ + ( (This)->lpVtbl -> msSiteModeClearIconOverlay(This) ) + +#define IShellUIHelper4_msAddSiteMode(This) \ + ( (This)->lpVtbl -> msAddSiteMode(This) ) + +#define IShellUIHelper4_msSiteModeCreateJumpList(This,bstrHeader) \ + ( (This)->lpVtbl -> msSiteModeCreateJumpList(This,bstrHeader) ) + +#define IShellUIHelper4_msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) \ + ( (This)->lpVtbl -> msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) ) + +#define IShellUIHelper4_msSiteModeClearJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeClearJumpList(This) ) + +#define IShellUIHelper4_msSiteModeShowJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeShowJumpList(This) ) + +#define IShellUIHelper4_msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) \ + ( (This)->lpVtbl -> msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) ) + +#define IShellUIHelper4_msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) \ + ( (This)->lpVtbl -> msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) ) + +#define IShellUIHelper4_msSiteModeActivate(This) \ + ( (This)->lpVtbl -> msSiteModeActivate(This) ) + +#define IShellUIHelper4_msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) \ + ( (This)->lpVtbl -> msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) ) + +#define IShellUIHelper4_msAddTrackingProtectionList(This,URL,bstrFilterName) \ + ( (This)->lpVtbl -> msAddTrackingProtectionList(This,URL,bstrFilterName) ) + +#define IShellUIHelper4_msTrackingProtectionEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msTrackingProtectionEnabled(This,pfEnabled) ) + +#define IShellUIHelper4_msActiveXFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msActiveXFilteringEnabled(This,pfEnabled) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellUIHelper4_INTERFACE_DEFINED__ */ + + +#ifndef __IShellUIHelper5_INTERFACE_DEFINED__ +#define __IShellUIHelper5_INTERFACE_DEFINED__ + +/* interface IShellUIHelper5 */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IShellUIHelper5; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A2A08B09-103D-4D3F-B91C-EA455CA82EFA") + IShellUIHelper5 : public IShellUIHelper4 + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msProvisionNetworks( + /* [in] */ __RPC__in BSTR bstrProvisioningXml, + /* [retval][out] */ __RPC__out VARIANT *puiResult) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msReportSafeUrl( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeRefreshBadge( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msSiteModeClearBadge( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msDiagnoseConnectionUILess( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msLaunchNetworkClientHelp( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msChangeDefaultBrowser( + /* [in] */ VARIANT_BOOL fChange) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellUIHelper5Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellUIHelper5 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellUIHelper5 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetFirstBootMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetFirstBootMode )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetSafeMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetSafeMode )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, RefreshOfflineDesktop) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *RefreshOfflineDesktop )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddFavorite) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddFavorite )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Title); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddChannel) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddChannel )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddDesktopComponent) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddDesktopComponent )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Type, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Left, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Top, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Width, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Height); + + DECLSPEC_XFGVIRT(IShellUIHelper, IsSubscribed) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSubscribed )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellUIHelper, NavigateAndFind) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateAndFind )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR strQuery, + /* [in] */ __RPC__in VARIANT *varTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, ImportExportFavorites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ImportExportFavorites )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT_BOOL fImport, + /* [in] */ __RPC__in BSTR strImpExpPath); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteSaveForm) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteSaveForm )( + __RPC__in IShellUIHelper5 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Form); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoScan) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoScan )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR strSearch, + /* [in] */ __RPC__in BSTR strFailureUrl, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteAttach) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteAttach )( + __RPC__in IShellUIHelper5 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Reserved); + + DECLSPEC_XFGVIRT(IShellUIHelper, ShowBrowserUI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowBrowserUI )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in VARIANT *pvarIn, + /* [retval][out] */ __RPC__out VARIANT *pvarOut); + + DECLSPEC_XFGVIRT(IShellUIHelper2, AddSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddSearchProvider )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceShown )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipRunOnce) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipRunOnce )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeSettings) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeSettings )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT_BOOL fSQM, + /* [in] */ VARIANT_BOOL fPhishing, + /* [in] */ __RPC__in BSTR bstrLocale); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SqmEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SqmEnabled )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, PhishingEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PhishingEnabled )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, BrandImageUri) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BrandImageUri )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUri); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipTabsWelcome) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipTabsWelcome )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DiagnoseConnection) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DiagnoseConnection )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeClearType) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeClearType )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT_BOOL fSet); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchProviderInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchProviderInstalled )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchMigrated) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchMigrated )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfMigrated); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DefaultSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DefaultSearchProvider )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceRequiredSettingsComplete) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceRequiredSettingsComplete )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT_BOOL fComplete); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceHasShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceHasShown )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfShown); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SearchGuideUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SearchGuideUrl )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddService) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddService )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsServiceInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsServiceInstalled )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Verb, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper3, InPrivateFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *InPrivateFilteringEnabled )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddToFavoritesBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddToFavoritesBar )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Title, + /* [in][optional] */ __RPC__in VARIANT *Type); + + DECLSPEC_XFGVIRT(IShellUIHelper3, BuildNewTabPage) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BuildNewTabPage )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetRecentlyClosedVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetRecentlyClosedVisible )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetActivitiesVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetActivitiesVisible )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ContentDiscoveryReset) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ContentDiscoveryReset )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsSuggestedSitesEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSuggestedSitesEnabled )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, EnableSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableSuggestedSites )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT_BOOL fEnable); + + DECLSPEC_XFGVIRT(IShellUIHelper3, NavigateToSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateToSuggestedSites )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR bstrRelativeUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowTabsHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowTabsHelp )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowInPrivateHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowInPrivateHelp )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteMode )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfSiteMode); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowThumbBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowThumbBar )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddThumbBarButton )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR bstrIconURL, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarButtonID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeUpdateThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeUpdateThumbBarButton )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT ButtonID, + /* [in] */ VARIANT_BOOL fEnabled, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeSetIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeSetIconOverlay )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR IconUrl, + /* [in][optional] */ __RPC__in VARIANT *pvarDescription); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearIconOverlay )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddSiteMode )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeCreateJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeCreateJumpList )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR bstrHeader); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddJumpListItem) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddJumpListItem )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrActionUri, + /* [in] */ __RPC__in BSTR bstrIconUri, + /* [in][optional] */ __RPC__in VARIANT *pvarWindowType); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearJumpList )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowJumpList )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddButtonStyle )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ __RPC__in BSTR bstrIconUrl, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowButtonStyle )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ VARIANT uiStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeActivate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeActivate )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteModeFirstRun) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteModeFirstRun )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT_BOOL fPreserveState, + /* [retval][out] */ __RPC__out VARIANT *puiFirstRun); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddTrackingProtectionList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddTrackingProtectionList )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR bstrFilterName); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msTrackingProtectionEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msTrackingProtectionEnabled )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msActiveXFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msActiveXFilteringEnabled )( + __RPC__in IShellUIHelper5 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msProvisionNetworks) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msProvisionNetworks )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ __RPC__in BSTR bstrProvisioningXml, + /* [retval][out] */ __RPC__out VARIANT *puiResult); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msReportSafeUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msReportSafeUrl )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msSiteModeRefreshBadge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeRefreshBadge )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msSiteModeClearBadge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearBadge )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msDiagnoseConnectionUILess) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msDiagnoseConnectionUILess )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msLaunchNetworkClientHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msLaunchNetworkClientHelp )( + __RPC__in IShellUIHelper5 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msChangeDefaultBrowser) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msChangeDefaultBrowser )( + __RPC__in IShellUIHelper5 * This, + /* [in] */ VARIANT_BOOL fChange); + + END_INTERFACE + } IShellUIHelper5Vtbl; + + interface IShellUIHelper5 + { + CONST_VTBL struct IShellUIHelper5Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellUIHelper5_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellUIHelper5_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellUIHelper5_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellUIHelper5_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellUIHelper5_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellUIHelper5_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellUIHelper5_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellUIHelper5_ResetFirstBootMode(This) \ + ( (This)->lpVtbl -> ResetFirstBootMode(This) ) + +#define IShellUIHelper5_ResetSafeMode(This) \ + ( (This)->lpVtbl -> ResetSafeMode(This) ) + +#define IShellUIHelper5_RefreshOfflineDesktop(This) \ + ( (This)->lpVtbl -> RefreshOfflineDesktop(This) ) + +#define IShellUIHelper5_AddFavorite(This,URL,Title) \ + ( (This)->lpVtbl -> AddFavorite(This,URL,Title) ) + +#define IShellUIHelper5_AddChannel(This,URL) \ + ( (This)->lpVtbl -> AddChannel(This,URL) ) + +#define IShellUIHelper5_AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) ) + +#define IShellUIHelper5_IsSubscribed(This,URL,pBool) \ + ( (This)->lpVtbl -> IsSubscribed(This,URL,pBool) ) + +#define IShellUIHelper5_NavigateAndFind(This,URL,strQuery,varTargetFrame) \ + ( (This)->lpVtbl -> NavigateAndFind(This,URL,strQuery,varTargetFrame) ) + +#define IShellUIHelper5_ImportExportFavorites(This,fImport,strImpExpPath) \ + ( (This)->lpVtbl -> ImportExportFavorites(This,fImport,strImpExpPath) ) + +#define IShellUIHelper5_AutoCompleteSaveForm(This,Form) \ + ( (This)->lpVtbl -> AutoCompleteSaveForm(This,Form) ) + +#define IShellUIHelper5_AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) \ + ( (This)->lpVtbl -> AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) ) + +#define IShellUIHelper5_AutoCompleteAttach(This,Reserved) \ + ( (This)->lpVtbl -> AutoCompleteAttach(This,Reserved) ) + +#define IShellUIHelper5_ShowBrowserUI(This,bstrName,pvarIn,pvarOut) \ + ( (This)->lpVtbl -> ShowBrowserUI(This,bstrName,pvarIn,pvarOut) ) + + +#define IShellUIHelper5_AddSearchProvider(This,URL) \ + ( (This)->lpVtbl -> AddSearchProvider(This,URL) ) + +#define IShellUIHelper5_RunOnceShown(This) \ + ( (This)->lpVtbl -> RunOnceShown(This) ) + +#define IShellUIHelper5_SkipRunOnce(This) \ + ( (This)->lpVtbl -> SkipRunOnce(This) ) + +#define IShellUIHelper5_CustomizeSettings(This,fSQM,fPhishing,bstrLocale) \ + ( (This)->lpVtbl -> CustomizeSettings(This,fSQM,fPhishing,bstrLocale) ) + +#define IShellUIHelper5_SqmEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> SqmEnabled(This,pfEnabled) ) + +#define IShellUIHelper5_PhishingEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> PhishingEnabled(This,pfEnabled) ) + +#define IShellUIHelper5_BrandImageUri(This,pbstrUri) \ + ( (This)->lpVtbl -> BrandImageUri(This,pbstrUri) ) + +#define IShellUIHelper5_SkipTabsWelcome(This) \ + ( (This)->lpVtbl -> SkipTabsWelcome(This) ) + +#define IShellUIHelper5_DiagnoseConnection(This) \ + ( (This)->lpVtbl -> DiagnoseConnection(This) ) + +#define IShellUIHelper5_CustomizeClearType(This,fSet) \ + ( (This)->lpVtbl -> CustomizeClearType(This,fSet) ) + +#define IShellUIHelper5_IsSearchProviderInstalled(This,URL,pdwResult) \ + ( (This)->lpVtbl -> IsSearchProviderInstalled(This,URL,pdwResult) ) + +#define IShellUIHelper5_IsSearchMigrated(This,pfMigrated) \ + ( (This)->lpVtbl -> IsSearchMigrated(This,pfMigrated) ) + +#define IShellUIHelper5_DefaultSearchProvider(This,pbstrName) \ + ( (This)->lpVtbl -> DefaultSearchProvider(This,pbstrName) ) + +#define IShellUIHelper5_RunOnceRequiredSettingsComplete(This,fComplete) \ + ( (This)->lpVtbl -> RunOnceRequiredSettingsComplete(This,fComplete) ) + +#define IShellUIHelper5_RunOnceHasShown(This,pfShown) \ + ( (This)->lpVtbl -> RunOnceHasShown(This,pfShown) ) + +#define IShellUIHelper5_SearchGuideUrl(This,pbstrUrl) \ + ( (This)->lpVtbl -> SearchGuideUrl(This,pbstrUrl) ) + + +#define IShellUIHelper5_AddService(This,URL) \ + ( (This)->lpVtbl -> AddService(This,URL) ) + +#define IShellUIHelper5_IsServiceInstalled(This,URL,Verb,pdwResult) \ + ( (This)->lpVtbl -> IsServiceInstalled(This,URL,Verb,pdwResult) ) + +#define IShellUIHelper5_InPrivateFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> InPrivateFilteringEnabled(This,pfEnabled) ) + +#define IShellUIHelper5_AddToFavoritesBar(This,URL,Title,Type) \ + ( (This)->lpVtbl -> AddToFavoritesBar(This,URL,Title,Type) ) + +#define IShellUIHelper5_BuildNewTabPage(This) \ + ( (This)->lpVtbl -> BuildNewTabPage(This) ) + +#define IShellUIHelper5_SetRecentlyClosedVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetRecentlyClosedVisible(This,fVisible) ) + +#define IShellUIHelper5_SetActivitiesVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetActivitiesVisible(This,fVisible) ) + +#define IShellUIHelper5_ContentDiscoveryReset(This) \ + ( (This)->lpVtbl -> ContentDiscoveryReset(This) ) + +#define IShellUIHelper5_IsSuggestedSitesEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> IsSuggestedSitesEnabled(This,pfEnabled) ) + +#define IShellUIHelper5_EnableSuggestedSites(This,fEnable) \ + ( (This)->lpVtbl -> EnableSuggestedSites(This,fEnable) ) + +#define IShellUIHelper5_NavigateToSuggestedSites(This,bstrRelativeUrl) \ + ( (This)->lpVtbl -> NavigateToSuggestedSites(This,bstrRelativeUrl) ) + +#define IShellUIHelper5_ShowTabsHelp(This) \ + ( (This)->lpVtbl -> ShowTabsHelp(This) ) + +#define IShellUIHelper5_ShowInPrivateHelp(This) \ + ( (This)->lpVtbl -> ShowInPrivateHelp(This) ) + + +#define IShellUIHelper5_msIsSiteMode(This,pfSiteMode) \ + ( (This)->lpVtbl -> msIsSiteMode(This,pfSiteMode) ) + +#define IShellUIHelper5_msSiteModeShowThumbBar(This) \ + ( (This)->lpVtbl -> msSiteModeShowThumbBar(This) ) + +#define IShellUIHelper5_msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) \ + ( (This)->lpVtbl -> msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) ) + +#define IShellUIHelper5_msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) \ + ( (This)->lpVtbl -> msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) ) + +#define IShellUIHelper5_msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) \ + ( (This)->lpVtbl -> msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) ) + +#define IShellUIHelper5_msSiteModeClearIconOverlay(This) \ + ( (This)->lpVtbl -> msSiteModeClearIconOverlay(This) ) + +#define IShellUIHelper5_msAddSiteMode(This) \ + ( (This)->lpVtbl -> msAddSiteMode(This) ) + +#define IShellUIHelper5_msSiteModeCreateJumpList(This,bstrHeader) \ + ( (This)->lpVtbl -> msSiteModeCreateJumpList(This,bstrHeader) ) + +#define IShellUIHelper5_msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) \ + ( (This)->lpVtbl -> msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) ) + +#define IShellUIHelper5_msSiteModeClearJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeClearJumpList(This) ) + +#define IShellUIHelper5_msSiteModeShowJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeShowJumpList(This) ) + +#define IShellUIHelper5_msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) \ + ( (This)->lpVtbl -> msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) ) + +#define IShellUIHelper5_msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) \ + ( (This)->lpVtbl -> msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) ) + +#define IShellUIHelper5_msSiteModeActivate(This) \ + ( (This)->lpVtbl -> msSiteModeActivate(This) ) + +#define IShellUIHelper5_msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) \ + ( (This)->lpVtbl -> msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) ) + +#define IShellUIHelper5_msAddTrackingProtectionList(This,URL,bstrFilterName) \ + ( (This)->lpVtbl -> msAddTrackingProtectionList(This,URL,bstrFilterName) ) + +#define IShellUIHelper5_msTrackingProtectionEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msTrackingProtectionEnabled(This,pfEnabled) ) + +#define IShellUIHelper5_msActiveXFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msActiveXFilteringEnabled(This,pfEnabled) ) + + +#define IShellUIHelper5_msProvisionNetworks(This,bstrProvisioningXml,puiResult) \ + ( (This)->lpVtbl -> msProvisionNetworks(This,bstrProvisioningXml,puiResult) ) + +#define IShellUIHelper5_msReportSafeUrl(This) \ + ( (This)->lpVtbl -> msReportSafeUrl(This) ) + +#define IShellUIHelper5_msSiteModeRefreshBadge(This) \ + ( (This)->lpVtbl -> msSiteModeRefreshBadge(This) ) + +#define IShellUIHelper5_msSiteModeClearBadge(This) \ + ( (This)->lpVtbl -> msSiteModeClearBadge(This) ) + +#define IShellUIHelper5_msDiagnoseConnectionUILess(This) \ + ( (This)->lpVtbl -> msDiagnoseConnectionUILess(This) ) + +#define IShellUIHelper5_msLaunchNetworkClientHelp(This) \ + ( (This)->lpVtbl -> msLaunchNetworkClientHelp(This) ) + +#define IShellUIHelper5_msChangeDefaultBrowser(This,fChange) \ + ( (This)->lpVtbl -> msChangeDefaultBrowser(This,fChange) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellUIHelper5_INTERFACE_DEFINED__ */ + + +#ifndef __IShellUIHelper6_INTERFACE_DEFINED__ +#define __IShellUIHelper6_INTERFACE_DEFINED__ + +/* interface IShellUIHelper6 */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IShellUIHelper6; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("987A573E-46EE-4E89-96AB-DDF7F8FDC98C") + IShellUIHelper6 : public IShellUIHelper5 + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msStopPeriodicTileUpdate( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msStartPeriodicTileUpdate( + /* [in] */ VARIANT pollingUris, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msStartPeriodicTileUpdateBatch( + /* [in] */ VARIANT pollingUris, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msClearTile( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msEnableTileNotificationQueue( + /* [in] */ VARIANT_BOOL fChange) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msPinnedSiteState( + /* [retval][out] */ __RPC__out VARIANT *pvarSiteState) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msEnableTileNotificationQueueForSquare150x150( + /* [in] */ VARIANT_BOOL fChange) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msEnableTileNotificationQueueForWide310x150( + /* [in] */ VARIANT_BOOL fChange) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msEnableTileNotificationQueueForSquare310x310( + /* [in] */ VARIANT_BOOL fChange) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msScheduledTileNotification( + /* [in] */ __RPC__in BSTR bstrNotificationXml, + /* [in] */ __RPC__in BSTR bstrNotificationId, + /* [in] */ __RPC__in BSTR bstrNotificationTag, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT expirationTime) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msRemoveScheduledTileNotification( + /* [in] */ __RPC__in BSTR bstrNotificationId) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msStartPeriodicBadgeUpdate( + /* [in] */ __RPC__in BSTR pollingUri, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msStopPeriodicBadgeUpdate( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE msLaunchInternetOptions( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellUIHelper6Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellUIHelper6 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellUIHelper6 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetFirstBootMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetFirstBootMode )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetSafeMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetSafeMode )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, RefreshOfflineDesktop) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *RefreshOfflineDesktop )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddFavorite) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddFavorite )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Title); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddChannel) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddChannel )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddDesktopComponent) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddDesktopComponent )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Type, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Left, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Top, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Width, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Height); + + DECLSPEC_XFGVIRT(IShellUIHelper, IsSubscribed) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSubscribed )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellUIHelper, NavigateAndFind) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateAndFind )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR strQuery, + /* [in] */ __RPC__in VARIANT *varTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, ImportExportFavorites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ImportExportFavorites )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fImport, + /* [in] */ __RPC__in BSTR strImpExpPath); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteSaveForm) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteSaveForm )( + __RPC__in IShellUIHelper6 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Form); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoScan) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoScan )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR strSearch, + /* [in] */ __RPC__in BSTR strFailureUrl, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteAttach) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteAttach )( + __RPC__in IShellUIHelper6 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Reserved); + + DECLSPEC_XFGVIRT(IShellUIHelper, ShowBrowserUI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowBrowserUI )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in VARIANT *pvarIn, + /* [retval][out] */ __RPC__out VARIANT *pvarOut); + + DECLSPEC_XFGVIRT(IShellUIHelper2, AddSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddSearchProvider )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceShown )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipRunOnce) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipRunOnce )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeSettings) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeSettings )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fSQM, + /* [in] */ VARIANT_BOOL fPhishing, + /* [in] */ __RPC__in BSTR bstrLocale); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SqmEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SqmEnabled )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, PhishingEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PhishingEnabled )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, BrandImageUri) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BrandImageUri )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUri); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipTabsWelcome) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipTabsWelcome )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DiagnoseConnection) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DiagnoseConnection )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeClearType) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeClearType )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fSet); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchProviderInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchProviderInstalled )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchMigrated) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchMigrated )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfMigrated); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DefaultSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DefaultSearchProvider )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceRequiredSettingsComplete) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceRequiredSettingsComplete )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fComplete); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceHasShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceHasShown )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfShown); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SearchGuideUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SearchGuideUrl )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddService) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddService )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsServiceInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsServiceInstalled )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Verb, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper3, InPrivateFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *InPrivateFilteringEnabled )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddToFavoritesBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddToFavoritesBar )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Title, + /* [in][optional] */ __RPC__in VARIANT *Type); + + DECLSPEC_XFGVIRT(IShellUIHelper3, BuildNewTabPage) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BuildNewTabPage )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetRecentlyClosedVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetRecentlyClosedVisible )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetActivitiesVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetActivitiesVisible )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ContentDiscoveryReset) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ContentDiscoveryReset )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsSuggestedSitesEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSuggestedSitesEnabled )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, EnableSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableSuggestedSites )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fEnable); + + DECLSPEC_XFGVIRT(IShellUIHelper3, NavigateToSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateToSuggestedSites )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR bstrRelativeUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowTabsHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowTabsHelp )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowInPrivateHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowInPrivateHelp )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteMode )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfSiteMode); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowThumbBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowThumbBar )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddThumbBarButton )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR bstrIconURL, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarButtonID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeUpdateThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeUpdateThumbBarButton )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT ButtonID, + /* [in] */ VARIANT_BOOL fEnabled, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeSetIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeSetIconOverlay )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR IconUrl, + /* [in][optional] */ __RPC__in VARIANT *pvarDescription); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearIconOverlay )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddSiteMode )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeCreateJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeCreateJumpList )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR bstrHeader); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddJumpListItem) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddJumpListItem )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrActionUri, + /* [in] */ __RPC__in BSTR bstrIconUri, + /* [in][optional] */ __RPC__in VARIANT *pvarWindowType); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearJumpList )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowJumpList )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddButtonStyle )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ __RPC__in BSTR bstrIconUrl, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowButtonStyle )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ VARIANT uiStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeActivate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeActivate )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteModeFirstRun) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteModeFirstRun )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fPreserveState, + /* [retval][out] */ __RPC__out VARIANT *puiFirstRun); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddTrackingProtectionList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddTrackingProtectionList )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR bstrFilterName); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msTrackingProtectionEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msTrackingProtectionEnabled )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msActiveXFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msActiveXFilteringEnabled )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msProvisionNetworks) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msProvisionNetworks )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR bstrProvisioningXml, + /* [retval][out] */ __RPC__out VARIANT *puiResult); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msReportSafeUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msReportSafeUrl )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msSiteModeRefreshBadge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeRefreshBadge )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msSiteModeClearBadge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearBadge )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msDiagnoseConnectionUILess) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msDiagnoseConnectionUILess )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msLaunchNetworkClientHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msLaunchNetworkClientHelp )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msChangeDefaultBrowser) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msChangeDefaultBrowser )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStopPeriodicTileUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStopPeriodicTileUpdate )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicTileUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicTileUpdate )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT pollingUris, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicTileUpdateBatch) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicTileUpdateBatch )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT pollingUris, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msClearTile) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msClearTile )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueue )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msPinnedSiteState) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msPinnedSiteState )( + __RPC__in IShellUIHelper6 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSiteState); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForSquare150x150) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForSquare150x150 )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForWide310x150) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForWide310x150 )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForSquare310x310) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForSquare310x310 )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msScheduledTileNotification) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msScheduledTileNotification )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR bstrNotificationXml, + /* [in] */ __RPC__in BSTR bstrNotificationId, + /* [in] */ __RPC__in BSTR bstrNotificationTag, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT expirationTime); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msRemoveScheduledTileNotification) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msRemoveScheduledTileNotification )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR bstrNotificationId); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicBadgeUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicBadgeUpdate )( + __RPC__in IShellUIHelper6 * This, + /* [in] */ __RPC__in BSTR pollingUri, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStopPeriodicBadgeUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStopPeriodicBadgeUpdate )( + __RPC__in IShellUIHelper6 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msLaunchInternetOptions) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msLaunchInternetOptions )( + __RPC__in IShellUIHelper6 * This); + + END_INTERFACE + } IShellUIHelper6Vtbl; + + interface IShellUIHelper6 + { + CONST_VTBL struct IShellUIHelper6Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellUIHelper6_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellUIHelper6_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellUIHelper6_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellUIHelper6_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellUIHelper6_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellUIHelper6_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellUIHelper6_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellUIHelper6_ResetFirstBootMode(This) \ + ( (This)->lpVtbl -> ResetFirstBootMode(This) ) + +#define IShellUIHelper6_ResetSafeMode(This) \ + ( (This)->lpVtbl -> ResetSafeMode(This) ) + +#define IShellUIHelper6_RefreshOfflineDesktop(This) \ + ( (This)->lpVtbl -> RefreshOfflineDesktop(This) ) + +#define IShellUIHelper6_AddFavorite(This,URL,Title) \ + ( (This)->lpVtbl -> AddFavorite(This,URL,Title) ) + +#define IShellUIHelper6_AddChannel(This,URL) \ + ( (This)->lpVtbl -> AddChannel(This,URL) ) + +#define IShellUIHelper6_AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) ) + +#define IShellUIHelper6_IsSubscribed(This,URL,pBool) \ + ( (This)->lpVtbl -> IsSubscribed(This,URL,pBool) ) + +#define IShellUIHelper6_NavigateAndFind(This,URL,strQuery,varTargetFrame) \ + ( (This)->lpVtbl -> NavigateAndFind(This,URL,strQuery,varTargetFrame) ) + +#define IShellUIHelper6_ImportExportFavorites(This,fImport,strImpExpPath) \ + ( (This)->lpVtbl -> ImportExportFavorites(This,fImport,strImpExpPath) ) + +#define IShellUIHelper6_AutoCompleteSaveForm(This,Form) \ + ( (This)->lpVtbl -> AutoCompleteSaveForm(This,Form) ) + +#define IShellUIHelper6_AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) \ + ( (This)->lpVtbl -> AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) ) + +#define IShellUIHelper6_AutoCompleteAttach(This,Reserved) \ + ( (This)->lpVtbl -> AutoCompleteAttach(This,Reserved) ) + +#define IShellUIHelper6_ShowBrowserUI(This,bstrName,pvarIn,pvarOut) \ + ( (This)->lpVtbl -> ShowBrowserUI(This,bstrName,pvarIn,pvarOut) ) + + +#define IShellUIHelper6_AddSearchProvider(This,URL) \ + ( (This)->lpVtbl -> AddSearchProvider(This,URL) ) + +#define IShellUIHelper6_RunOnceShown(This) \ + ( (This)->lpVtbl -> RunOnceShown(This) ) + +#define IShellUIHelper6_SkipRunOnce(This) \ + ( (This)->lpVtbl -> SkipRunOnce(This) ) + +#define IShellUIHelper6_CustomizeSettings(This,fSQM,fPhishing,bstrLocale) \ + ( (This)->lpVtbl -> CustomizeSettings(This,fSQM,fPhishing,bstrLocale) ) + +#define IShellUIHelper6_SqmEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> SqmEnabled(This,pfEnabled) ) + +#define IShellUIHelper6_PhishingEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> PhishingEnabled(This,pfEnabled) ) + +#define IShellUIHelper6_BrandImageUri(This,pbstrUri) \ + ( (This)->lpVtbl -> BrandImageUri(This,pbstrUri) ) + +#define IShellUIHelper6_SkipTabsWelcome(This) \ + ( (This)->lpVtbl -> SkipTabsWelcome(This) ) + +#define IShellUIHelper6_DiagnoseConnection(This) \ + ( (This)->lpVtbl -> DiagnoseConnection(This) ) + +#define IShellUIHelper6_CustomizeClearType(This,fSet) \ + ( (This)->lpVtbl -> CustomizeClearType(This,fSet) ) + +#define IShellUIHelper6_IsSearchProviderInstalled(This,URL,pdwResult) \ + ( (This)->lpVtbl -> IsSearchProviderInstalled(This,URL,pdwResult) ) + +#define IShellUIHelper6_IsSearchMigrated(This,pfMigrated) \ + ( (This)->lpVtbl -> IsSearchMigrated(This,pfMigrated) ) + +#define IShellUIHelper6_DefaultSearchProvider(This,pbstrName) \ + ( (This)->lpVtbl -> DefaultSearchProvider(This,pbstrName) ) + +#define IShellUIHelper6_RunOnceRequiredSettingsComplete(This,fComplete) \ + ( (This)->lpVtbl -> RunOnceRequiredSettingsComplete(This,fComplete) ) + +#define IShellUIHelper6_RunOnceHasShown(This,pfShown) \ + ( (This)->lpVtbl -> RunOnceHasShown(This,pfShown) ) + +#define IShellUIHelper6_SearchGuideUrl(This,pbstrUrl) \ + ( (This)->lpVtbl -> SearchGuideUrl(This,pbstrUrl) ) + + +#define IShellUIHelper6_AddService(This,URL) \ + ( (This)->lpVtbl -> AddService(This,URL) ) + +#define IShellUIHelper6_IsServiceInstalled(This,URL,Verb,pdwResult) \ + ( (This)->lpVtbl -> IsServiceInstalled(This,URL,Verb,pdwResult) ) + +#define IShellUIHelper6_InPrivateFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> InPrivateFilteringEnabled(This,pfEnabled) ) + +#define IShellUIHelper6_AddToFavoritesBar(This,URL,Title,Type) \ + ( (This)->lpVtbl -> AddToFavoritesBar(This,URL,Title,Type) ) + +#define IShellUIHelper6_BuildNewTabPage(This) \ + ( (This)->lpVtbl -> BuildNewTabPage(This) ) + +#define IShellUIHelper6_SetRecentlyClosedVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetRecentlyClosedVisible(This,fVisible) ) + +#define IShellUIHelper6_SetActivitiesVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetActivitiesVisible(This,fVisible) ) + +#define IShellUIHelper6_ContentDiscoveryReset(This) \ + ( (This)->lpVtbl -> ContentDiscoveryReset(This) ) + +#define IShellUIHelper6_IsSuggestedSitesEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> IsSuggestedSitesEnabled(This,pfEnabled) ) + +#define IShellUIHelper6_EnableSuggestedSites(This,fEnable) \ + ( (This)->lpVtbl -> EnableSuggestedSites(This,fEnable) ) + +#define IShellUIHelper6_NavigateToSuggestedSites(This,bstrRelativeUrl) \ + ( (This)->lpVtbl -> NavigateToSuggestedSites(This,bstrRelativeUrl) ) + +#define IShellUIHelper6_ShowTabsHelp(This) \ + ( (This)->lpVtbl -> ShowTabsHelp(This) ) + +#define IShellUIHelper6_ShowInPrivateHelp(This) \ + ( (This)->lpVtbl -> ShowInPrivateHelp(This) ) + + +#define IShellUIHelper6_msIsSiteMode(This,pfSiteMode) \ + ( (This)->lpVtbl -> msIsSiteMode(This,pfSiteMode) ) + +#define IShellUIHelper6_msSiteModeShowThumbBar(This) \ + ( (This)->lpVtbl -> msSiteModeShowThumbBar(This) ) + +#define IShellUIHelper6_msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) \ + ( (This)->lpVtbl -> msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) ) + +#define IShellUIHelper6_msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) \ + ( (This)->lpVtbl -> msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) ) + +#define IShellUIHelper6_msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) \ + ( (This)->lpVtbl -> msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) ) + +#define IShellUIHelper6_msSiteModeClearIconOverlay(This) \ + ( (This)->lpVtbl -> msSiteModeClearIconOverlay(This) ) + +#define IShellUIHelper6_msAddSiteMode(This) \ + ( (This)->lpVtbl -> msAddSiteMode(This) ) + +#define IShellUIHelper6_msSiteModeCreateJumpList(This,bstrHeader) \ + ( (This)->lpVtbl -> msSiteModeCreateJumpList(This,bstrHeader) ) + +#define IShellUIHelper6_msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) \ + ( (This)->lpVtbl -> msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) ) + +#define IShellUIHelper6_msSiteModeClearJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeClearJumpList(This) ) + +#define IShellUIHelper6_msSiteModeShowJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeShowJumpList(This) ) + +#define IShellUIHelper6_msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) \ + ( (This)->lpVtbl -> msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) ) + +#define IShellUIHelper6_msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) \ + ( (This)->lpVtbl -> msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) ) + +#define IShellUIHelper6_msSiteModeActivate(This) \ + ( (This)->lpVtbl -> msSiteModeActivate(This) ) + +#define IShellUIHelper6_msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) \ + ( (This)->lpVtbl -> msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) ) + +#define IShellUIHelper6_msAddTrackingProtectionList(This,URL,bstrFilterName) \ + ( (This)->lpVtbl -> msAddTrackingProtectionList(This,URL,bstrFilterName) ) + +#define IShellUIHelper6_msTrackingProtectionEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msTrackingProtectionEnabled(This,pfEnabled) ) + +#define IShellUIHelper6_msActiveXFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msActiveXFilteringEnabled(This,pfEnabled) ) + + +#define IShellUIHelper6_msProvisionNetworks(This,bstrProvisioningXml,puiResult) \ + ( (This)->lpVtbl -> msProvisionNetworks(This,bstrProvisioningXml,puiResult) ) + +#define IShellUIHelper6_msReportSafeUrl(This) \ + ( (This)->lpVtbl -> msReportSafeUrl(This) ) + +#define IShellUIHelper6_msSiteModeRefreshBadge(This) \ + ( (This)->lpVtbl -> msSiteModeRefreshBadge(This) ) + +#define IShellUIHelper6_msSiteModeClearBadge(This) \ + ( (This)->lpVtbl -> msSiteModeClearBadge(This) ) + +#define IShellUIHelper6_msDiagnoseConnectionUILess(This) \ + ( (This)->lpVtbl -> msDiagnoseConnectionUILess(This) ) + +#define IShellUIHelper6_msLaunchNetworkClientHelp(This) \ + ( (This)->lpVtbl -> msLaunchNetworkClientHelp(This) ) + +#define IShellUIHelper6_msChangeDefaultBrowser(This,fChange) \ + ( (This)->lpVtbl -> msChangeDefaultBrowser(This,fChange) ) + + +#define IShellUIHelper6_msStopPeriodicTileUpdate(This) \ + ( (This)->lpVtbl -> msStopPeriodicTileUpdate(This) ) + +#define IShellUIHelper6_msStartPeriodicTileUpdate(This,pollingUris,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicTileUpdate(This,pollingUris,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper6_msStartPeriodicTileUpdateBatch(This,pollingUris,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicTileUpdateBatch(This,pollingUris,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper6_msClearTile(This) \ + ( (This)->lpVtbl -> msClearTile(This) ) + +#define IShellUIHelper6_msEnableTileNotificationQueue(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueue(This,fChange) ) + +#define IShellUIHelper6_msPinnedSiteState(This,pvarSiteState) \ + ( (This)->lpVtbl -> msPinnedSiteState(This,pvarSiteState) ) + +#define IShellUIHelper6_msEnableTileNotificationQueueForSquare150x150(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForSquare150x150(This,fChange) ) + +#define IShellUIHelper6_msEnableTileNotificationQueueForWide310x150(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForWide310x150(This,fChange) ) + +#define IShellUIHelper6_msEnableTileNotificationQueueForSquare310x310(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForSquare310x310(This,fChange) ) + +#define IShellUIHelper6_msScheduledTileNotification(This,bstrNotificationXml,bstrNotificationId,bstrNotificationTag,startTime,expirationTime) \ + ( (This)->lpVtbl -> msScheduledTileNotification(This,bstrNotificationXml,bstrNotificationId,bstrNotificationTag,startTime,expirationTime) ) + +#define IShellUIHelper6_msRemoveScheduledTileNotification(This,bstrNotificationId) \ + ( (This)->lpVtbl -> msRemoveScheduledTileNotification(This,bstrNotificationId) ) + +#define IShellUIHelper6_msStartPeriodicBadgeUpdate(This,pollingUri,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicBadgeUpdate(This,pollingUri,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper6_msStopPeriodicBadgeUpdate(This) \ + ( (This)->lpVtbl -> msStopPeriodicBadgeUpdate(This) ) + +#define IShellUIHelper6_msLaunchInternetOptions(This) \ + ( (This)->lpVtbl -> msLaunchInternetOptions(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellUIHelper6_INTERFACE_DEFINED__ */ + + +#ifndef __IShellUIHelper7_INTERFACE_DEFINED__ +#define __IShellUIHelper7_INTERFACE_DEFINED__ + +/* interface IShellUIHelper7 */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IShellUIHelper7; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("60E567C8-9573-4AB2-A264-637C6C161CB1") + IShellUIHelper7 : public IShellUIHelper6 + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetExperimentalFlag( + /* [in] */ __RPC__in BSTR bstrFlagString, + /* [in] */ VARIANT_BOOL vfFlag) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetExperimentalFlag( + /* [in] */ __RPC__in BSTR bstrFlagString, + /* [retval][out] */ __RPC__out VARIANT_BOOL *vfFlag) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetExperimentalValue( + /* [in] */ __RPC__in BSTR bstrValueString, + /* [in] */ DWORD dwValue) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetExperimentalValue( + /* [in] */ __RPC__in BSTR bstrValueString, + /* [retval][out] */ __RPC__out DWORD *pdwValue) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ResetAllExperimentalFlagsAndValues( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetNeedIEAutoLaunchFlag( + /* [in] */ __RPC__in BSTR bstrUrl, + /* [retval][out] */ __RPC__out VARIANT_BOOL *flag) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetNeedIEAutoLaunchFlag( + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ VARIANT_BOOL flag) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE HasNeedIEAutoLaunchFlag( + /* [in] */ __RPC__in BSTR bstrUrl, + /* [retval][out] */ __RPC__out VARIANT_BOOL *exists) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE LaunchIE( + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ VARIANT_BOOL automated) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellUIHelper7Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellUIHelper7 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellUIHelper7 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetFirstBootMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetFirstBootMode )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetSafeMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetSafeMode )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, RefreshOfflineDesktop) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *RefreshOfflineDesktop )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddFavorite) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddFavorite )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Title); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddChannel) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddChannel )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddDesktopComponent) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddDesktopComponent )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Type, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Left, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Top, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Width, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Height); + + DECLSPEC_XFGVIRT(IShellUIHelper, IsSubscribed) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSubscribed )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellUIHelper, NavigateAndFind) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateAndFind )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR strQuery, + /* [in] */ __RPC__in VARIANT *varTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, ImportExportFavorites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ImportExportFavorites )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fImport, + /* [in] */ __RPC__in BSTR strImpExpPath); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteSaveForm) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteSaveForm )( + __RPC__in IShellUIHelper7 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Form); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoScan) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoScan )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR strSearch, + /* [in] */ __RPC__in BSTR strFailureUrl, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteAttach) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteAttach )( + __RPC__in IShellUIHelper7 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Reserved); + + DECLSPEC_XFGVIRT(IShellUIHelper, ShowBrowserUI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowBrowserUI )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in VARIANT *pvarIn, + /* [retval][out] */ __RPC__out VARIANT *pvarOut); + + DECLSPEC_XFGVIRT(IShellUIHelper2, AddSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddSearchProvider )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceShown )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipRunOnce) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipRunOnce )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeSettings) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeSettings )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fSQM, + /* [in] */ VARIANT_BOOL fPhishing, + /* [in] */ __RPC__in BSTR bstrLocale); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SqmEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SqmEnabled )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, PhishingEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PhishingEnabled )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, BrandImageUri) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BrandImageUri )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUri); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipTabsWelcome) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipTabsWelcome )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DiagnoseConnection) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DiagnoseConnection )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeClearType) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeClearType )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fSet); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchProviderInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchProviderInstalled )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchMigrated) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchMigrated )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfMigrated); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DefaultSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DefaultSearchProvider )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceRequiredSettingsComplete) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceRequiredSettingsComplete )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fComplete); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceHasShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceHasShown )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfShown); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SearchGuideUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SearchGuideUrl )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddService) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddService )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsServiceInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsServiceInstalled )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Verb, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper3, InPrivateFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *InPrivateFilteringEnabled )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddToFavoritesBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddToFavoritesBar )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Title, + /* [in][optional] */ __RPC__in VARIANT *Type); + + DECLSPEC_XFGVIRT(IShellUIHelper3, BuildNewTabPage) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BuildNewTabPage )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetRecentlyClosedVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetRecentlyClosedVisible )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetActivitiesVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetActivitiesVisible )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ContentDiscoveryReset) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ContentDiscoveryReset )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsSuggestedSitesEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSuggestedSitesEnabled )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, EnableSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableSuggestedSites )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fEnable); + + DECLSPEC_XFGVIRT(IShellUIHelper3, NavigateToSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateToSuggestedSites )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrRelativeUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowTabsHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowTabsHelp )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowInPrivateHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowInPrivateHelp )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteMode )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfSiteMode); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowThumbBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowThumbBar )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddThumbBarButton )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrIconURL, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarButtonID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeUpdateThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeUpdateThumbBarButton )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT ButtonID, + /* [in] */ VARIANT_BOOL fEnabled, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeSetIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeSetIconOverlay )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR IconUrl, + /* [in][optional] */ __RPC__in VARIANT *pvarDescription); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearIconOverlay )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddSiteMode )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeCreateJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeCreateJumpList )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrHeader); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddJumpListItem) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddJumpListItem )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrActionUri, + /* [in] */ __RPC__in BSTR bstrIconUri, + /* [in][optional] */ __RPC__in VARIANT *pvarWindowType); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearJumpList )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowJumpList )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddButtonStyle )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ __RPC__in BSTR bstrIconUrl, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowButtonStyle )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ VARIANT uiStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeActivate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeActivate )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteModeFirstRun) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteModeFirstRun )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fPreserveState, + /* [retval][out] */ __RPC__out VARIANT *puiFirstRun); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddTrackingProtectionList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddTrackingProtectionList )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR bstrFilterName); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msTrackingProtectionEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msTrackingProtectionEnabled )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msActiveXFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msActiveXFilteringEnabled )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msProvisionNetworks) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msProvisionNetworks )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrProvisioningXml, + /* [retval][out] */ __RPC__out VARIANT *puiResult); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msReportSafeUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msReportSafeUrl )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msSiteModeRefreshBadge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeRefreshBadge )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msSiteModeClearBadge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearBadge )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msDiagnoseConnectionUILess) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msDiagnoseConnectionUILess )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msLaunchNetworkClientHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msLaunchNetworkClientHelp )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msChangeDefaultBrowser) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msChangeDefaultBrowser )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStopPeriodicTileUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStopPeriodicTileUpdate )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicTileUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicTileUpdate )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT pollingUris, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicTileUpdateBatch) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicTileUpdateBatch )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT pollingUris, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msClearTile) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msClearTile )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueue )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msPinnedSiteState) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msPinnedSiteState )( + __RPC__in IShellUIHelper7 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSiteState); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForSquare150x150) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForSquare150x150 )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForWide310x150) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForWide310x150 )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForSquare310x310) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForSquare310x310 )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msScheduledTileNotification) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msScheduledTileNotification )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrNotificationXml, + /* [in] */ __RPC__in BSTR bstrNotificationId, + /* [in] */ __RPC__in BSTR bstrNotificationTag, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT expirationTime); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msRemoveScheduledTileNotification) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msRemoveScheduledTileNotification )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrNotificationId); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicBadgeUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicBadgeUpdate )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR pollingUri, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStopPeriodicBadgeUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStopPeriodicBadgeUpdate )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msLaunchInternetOptions) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msLaunchInternetOptions )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper7, SetExperimentalFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetExperimentalFlag )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrFlagString, + /* [in] */ VARIANT_BOOL vfFlag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, GetExperimentalFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetExperimentalFlag )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrFlagString, + /* [retval][out] */ __RPC__out VARIANT_BOOL *vfFlag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, SetExperimentalValue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetExperimentalValue )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrValueString, + /* [in] */ DWORD dwValue); + + DECLSPEC_XFGVIRT(IShellUIHelper7, GetExperimentalValue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetExperimentalValue )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrValueString, + /* [retval][out] */ __RPC__out DWORD *pdwValue); + + DECLSPEC_XFGVIRT(IShellUIHelper7, ResetAllExperimentalFlagsAndValues) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ResetAllExperimentalFlagsAndValues )( + __RPC__in IShellUIHelper7 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper7, GetNeedIEAutoLaunchFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetNeedIEAutoLaunchFlag )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [retval][out] */ __RPC__out VARIANT_BOOL *flag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, SetNeedIEAutoLaunchFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetNeedIEAutoLaunchFlag )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ VARIANT_BOOL flag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, HasNeedIEAutoLaunchFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *HasNeedIEAutoLaunchFlag )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [retval][out] */ __RPC__out VARIANT_BOOL *exists); + + DECLSPEC_XFGVIRT(IShellUIHelper7, LaunchIE) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *LaunchIE )( + __RPC__in IShellUIHelper7 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ VARIANT_BOOL automated); + + END_INTERFACE + } IShellUIHelper7Vtbl; + + interface IShellUIHelper7 + { + CONST_VTBL struct IShellUIHelper7Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellUIHelper7_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellUIHelper7_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellUIHelper7_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellUIHelper7_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellUIHelper7_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellUIHelper7_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellUIHelper7_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellUIHelper7_ResetFirstBootMode(This) \ + ( (This)->lpVtbl -> ResetFirstBootMode(This) ) + +#define IShellUIHelper7_ResetSafeMode(This) \ + ( (This)->lpVtbl -> ResetSafeMode(This) ) + +#define IShellUIHelper7_RefreshOfflineDesktop(This) \ + ( (This)->lpVtbl -> RefreshOfflineDesktop(This) ) + +#define IShellUIHelper7_AddFavorite(This,URL,Title) \ + ( (This)->lpVtbl -> AddFavorite(This,URL,Title) ) + +#define IShellUIHelper7_AddChannel(This,URL) \ + ( (This)->lpVtbl -> AddChannel(This,URL) ) + +#define IShellUIHelper7_AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) ) + +#define IShellUIHelper7_IsSubscribed(This,URL,pBool) \ + ( (This)->lpVtbl -> IsSubscribed(This,URL,pBool) ) + +#define IShellUIHelper7_NavigateAndFind(This,URL,strQuery,varTargetFrame) \ + ( (This)->lpVtbl -> NavigateAndFind(This,URL,strQuery,varTargetFrame) ) + +#define IShellUIHelper7_ImportExportFavorites(This,fImport,strImpExpPath) \ + ( (This)->lpVtbl -> ImportExportFavorites(This,fImport,strImpExpPath) ) + +#define IShellUIHelper7_AutoCompleteSaveForm(This,Form) \ + ( (This)->lpVtbl -> AutoCompleteSaveForm(This,Form) ) + +#define IShellUIHelper7_AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) \ + ( (This)->lpVtbl -> AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) ) + +#define IShellUIHelper7_AutoCompleteAttach(This,Reserved) \ + ( (This)->lpVtbl -> AutoCompleteAttach(This,Reserved) ) + +#define IShellUIHelper7_ShowBrowserUI(This,bstrName,pvarIn,pvarOut) \ + ( (This)->lpVtbl -> ShowBrowserUI(This,bstrName,pvarIn,pvarOut) ) + + +#define IShellUIHelper7_AddSearchProvider(This,URL) \ + ( (This)->lpVtbl -> AddSearchProvider(This,URL) ) + +#define IShellUIHelper7_RunOnceShown(This) \ + ( (This)->lpVtbl -> RunOnceShown(This) ) + +#define IShellUIHelper7_SkipRunOnce(This) \ + ( (This)->lpVtbl -> SkipRunOnce(This) ) + +#define IShellUIHelper7_CustomizeSettings(This,fSQM,fPhishing,bstrLocale) \ + ( (This)->lpVtbl -> CustomizeSettings(This,fSQM,fPhishing,bstrLocale) ) + +#define IShellUIHelper7_SqmEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> SqmEnabled(This,pfEnabled) ) + +#define IShellUIHelper7_PhishingEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> PhishingEnabled(This,pfEnabled) ) + +#define IShellUIHelper7_BrandImageUri(This,pbstrUri) \ + ( (This)->lpVtbl -> BrandImageUri(This,pbstrUri) ) + +#define IShellUIHelper7_SkipTabsWelcome(This) \ + ( (This)->lpVtbl -> SkipTabsWelcome(This) ) + +#define IShellUIHelper7_DiagnoseConnection(This) \ + ( (This)->lpVtbl -> DiagnoseConnection(This) ) + +#define IShellUIHelper7_CustomizeClearType(This,fSet) \ + ( (This)->lpVtbl -> CustomizeClearType(This,fSet) ) + +#define IShellUIHelper7_IsSearchProviderInstalled(This,URL,pdwResult) \ + ( (This)->lpVtbl -> IsSearchProviderInstalled(This,URL,pdwResult) ) + +#define IShellUIHelper7_IsSearchMigrated(This,pfMigrated) \ + ( (This)->lpVtbl -> IsSearchMigrated(This,pfMigrated) ) + +#define IShellUIHelper7_DefaultSearchProvider(This,pbstrName) \ + ( (This)->lpVtbl -> DefaultSearchProvider(This,pbstrName) ) + +#define IShellUIHelper7_RunOnceRequiredSettingsComplete(This,fComplete) \ + ( (This)->lpVtbl -> RunOnceRequiredSettingsComplete(This,fComplete) ) + +#define IShellUIHelper7_RunOnceHasShown(This,pfShown) \ + ( (This)->lpVtbl -> RunOnceHasShown(This,pfShown) ) + +#define IShellUIHelper7_SearchGuideUrl(This,pbstrUrl) \ + ( (This)->lpVtbl -> SearchGuideUrl(This,pbstrUrl) ) + + +#define IShellUIHelper7_AddService(This,URL) \ + ( (This)->lpVtbl -> AddService(This,URL) ) + +#define IShellUIHelper7_IsServiceInstalled(This,URL,Verb,pdwResult) \ + ( (This)->lpVtbl -> IsServiceInstalled(This,URL,Verb,pdwResult) ) + +#define IShellUIHelper7_InPrivateFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> InPrivateFilteringEnabled(This,pfEnabled) ) + +#define IShellUIHelper7_AddToFavoritesBar(This,URL,Title,Type) \ + ( (This)->lpVtbl -> AddToFavoritesBar(This,URL,Title,Type) ) + +#define IShellUIHelper7_BuildNewTabPage(This) \ + ( (This)->lpVtbl -> BuildNewTabPage(This) ) + +#define IShellUIHelper7_SetRecentlyClosedVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetRecentlyClosedVisible(This,fVisible) ) + +#define IShellUIHelper7_SetActivitiesVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetActivitiesVisible(This,fVisible) ) + +#define IShellUIHelper7_ContentDiscoveryReset(This) \ + ( (This)->lpVtbl -> ContentDiscoveryReset(This) ) + +#define IShellUIHelper7_IsSuggestedSitesEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> IsSuggestedSitesEnabled(This,pfEnabled) ) + +#define IShellUIHelper7_EnableSuggestedSites(This,fEnable) \ + ( (This)->lpVtbl -> EnableSuggestedSites(This,fEnable) ) + +#define IShellUIHelper7_NavigateToSuggestedSites(This,bstrRelativeUrl) \ + ( (This)->lpVtbl -> NavigateToSuggestedSites(This,bstrRelativeUrl) ) + +#define IShellUIHelper7_ShowTabsHelp(This) \ + ( (This)->lpVtbl -> ShowTabsHelp(This) ) + +#define IShellUIHelper7_ShowInPrivateHelp(This) \ + ( (This)->lpVtbl -> ShowInPrivateHelp(This) ) + + +#define IShellUIHelper7_msIsSiteMode(This,pfSiteMode) \ + ( (This)->lpVtbl -> msIsSiteMode(This,pfSiteMode) ) + +#define IShellUIHelper7_msSiteModeShowThumbBar(This) \ + ( (This)->lpVtbl -> msSiteModeShowThumbBar(This) ) + +#define IShellUIHelper7_msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) \ + ( (This)->lpVtbl -> msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) ) + +#define IShellUIHelper7_msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) \ + ( (This)->lpVtbl -> msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) ) + +#define IShellUIHelper7_msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) \ + ( (This)->lpVtbl -> msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) ) + +#define IShellUIHelper7_msSiteModeClearIconOverlay(This) \ + ( (This)->lpVtbl -> msSiteModeClearIconOverlay(This) ) + +#define IShellUIHelper7_msAddSiteMode(This) \ + ( (This)->lpVtbl -> msAddSiteMode(This) ) + +#define IShellUIHelper7_msSiteModeCreateJumpList(This,bstrHeader) \ + ( (This)->lpVtbl -> msSiteModeCreateJumpList(This,bstrHeader) ) + +#define IShellUIHelper7_msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) \ + ( (This)->lpVtbl -> msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) ) + +#define IShellUIHelper7_msSiteModeClearJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeClearJumpList(This) ) + +#define IShellUIHelper7_msSiteModeShowJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeShowJumpList(This) ) + +#define IShellUIHelper7_msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) \ + ( (This)->lpVtbl -> msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) ) + +#define IShellUIHelper7_msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) \ + ( (This)->lpVtbl -> msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) ) + +#define IShellUIHelper7_msSiteModeActivate(This) \ + ( (This)->lpVtbl -> msSiteModeActivate(This) ) + +#define IShellUIHelper7_msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) \ + ( (This)->lpVtbl -> msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) ) + +#define IShellUIHelper7_msAddTrackingProtectionList(This,URL,bstrFilterName) \ + ( (This)->lpVtbl -> msAddTrackingProtectionList(This,URL,bstrFilterName) ) + +#define IShellUIHelper7_msTrackingProtectionEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msTrackingProtectionEnabled(This,pfEnabled) ) + +#define IShellUIHelper7_msActiveXFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msActiveXFilteringEnabled(This,pfEnabled) ) + + +#define IShellUIHelper7_msProvisionNetworks(This,bstrProvisioningXml,puiResult) \ + ( (This)->lpVtbl -> msProvisionNetworks(This,bstrProvisioningXml,puiResult) ) + +#define IShellUIHelper7_msReportSafeUrl(This) \ + ( (This)->lpVtbl -> msReportSafeUrl(This) ) + +#define IShellUIHelper7_msSiteModeRefreshBadge(This) \ + ( (This)->lpVtbl -> msSiteModeRefreshBadge(This) ) + +#define IShellUIHelper7_msSiteModeClearBadge(This) \ + ( (This)->lpVtbl -> msSiteModeClearBadge(This) ) + +#define IShellUIHelper7_msDiagnoseConnectionUILess(This) \ + ( (This)->lpVtbl -> msDiagnoseConnectionUILess(This) ) + +#define IShellUIHelper7_msLaunchNetworkClientHelp(This) \ + ( (This)->lpVtbl -> msLaunchNetworkClientHelp(This) ) + +#define IShellUIHelper7_msChangeDefaultBrowser(This,fChange) \ + ( (This)->lpVtbl -> msChangeDefaultBrowser(This,fChange) ) + + +#define IShellUIHelper7_msStopPeriodicTileUpdate(This) \ + ( (This)->lpVtbl -> msStopPeriodicTileUpdate(This) ) + +#define IShellUIHelper7_msStartPeriodicTileUpdate(This,pollingUris,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicTileUpdate(This,pollingUris,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper7_msStartPeriodicTileUpdateBatch(This,pollingUris,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicTileUpdateBatch(This,pollingUris,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper7_msClearTile(This) \ + ( (This)->lpVtbl -> msClearTile(This) ) + +#define IShellUIHelper7_msEnableTileNotificationQueue(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueue(This,fChange) ) + +#define IShellUIHelper7_msPinnedSiteState(This,pvarSiteState) \ + ( (This)->lpVtbl -> msPinnedSiteState(This,pvarSiteState) ) + +#define IShellUIHelper7_msEnableTileNotificationQueueForSquare150x150(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForSquare150x150(This,fChange) ) + +#define IShellUIHelper7_msEnableTileNotificationQueueForWide310x150(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForWide310x150(This,fChange) ) + +#define IShellUIHelper7_msEnableTileNotificationQueueForSquare310x310(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForSquare310x310(This,fChange) ) + +#define IShellUIHelper7_msScheduledTileNotification(This,bstrNotificationXml,bstrNotificationId,bstrNotificationTag,startTime,expirationTime) \ + ( (This)->lpVtbl -> msScheduledTileNotification(This,bstrNotificationXml,bstrNotificationId,bstrNotificationTag,startTime,expirationTime) ) + +#define IShellUIHelper7_msRemoveScheduledTileNotification(This,bstrNotificationId) \ + ( (This)->lpVtbl -> msRemoveScheduledTileNotification(This,bstrNotificationId) ) + +#define IShellUIHelper7_msStartPeriodicBadgeUpdate(This,pollingUri,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicBadgeUpdate(This,pollingUri,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper7_msStopPeriodicBadgeUpdate(This) \ + ( (This)->lpVtbl -> msStopPeriodicBadgeUpdate(This) ) + +#define IShellUIHelper7_msLaunchInternetOptions(This) \ + ( (This)->lpVtbl -> msLaunchInternetOptions(This) ) + + +#define IShellUIHelper7_SetExperimentalFlag(This,bstrFlagString,vfFlag) \ + ( (This)->lpVtbl -> SetExperimentalFlag(This,bstrFlagString,vfFlag) ) + +#define IShellUIHelper7_GetExperimentalFlag(This,bstrFlagString,vfFlag) \ + ( (This)->lpVtbl -> GetExperimentalFlag(This,bstrFlagString,vfFlag) ) + +#define IShellUIHelper7_SetExperimentalValue(This,bstrValueString,dwValue) \ + ( (This)->lpVtbl -> SetExperimentalValue(This,bstrValueString,dwValue) ) + +#define IShellUIHelper7_GetExperimentalValue(This,bstrValueString,pdwValue) \ + ( (This)->lpVtbl -> GetExperimentalValue(This,bstrValueString,pdwValue) ) + +#define IShellUIHelper7_ResetAllExperimentalFlagsAndValues(This) \ + ( (This)->lpVtbl -> ResetAllExperimentalFlagsAndValues(This) ) + +#define IShellUIHelper7_GetNeedIEAutoLaunchFlag(This,bstrUrl,flag) \ + ( (This)->lpVtbl -> GetNeedIEAutoLaunchFlag(This,bstrUrl,flag) ) + +#define IShellUIHelper7_SetNeedIEAutoLaunchFlag(This,bstrUrl,flag) \ + ( (This)->lpVtbl -> SetNeedIEAutoLaunchFlag(This,bstrUrl,flag) ) + +#define IShellUIHelper7_HasNeedIEAutoLaunchFlag(This,bstrUrl,exists) \ + ( (This)->lpVtbl -> HasNeedIEAutoLaunchFlag(This,bstrUrl,exists) ) + +#define IShellUIHelper7_LaunchIE(This,bstrUrl,automated) \ + ( (This)->lpVtbl -> LaunchIE(This,bstrUrl,automated) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellUIHelper7_INTERFACE_DEFINED__ */ + + +#ifndef __IShellUIHelper8_INTERFACE_DEFINED__ +#define __IShellUIHelper8_INTERFACE_DEFINED__ + +/* interface IShellUIHelper8 */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IShellUIHelper8; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("66DEBCF2-05B0-4F07-B49B-B96241A65DB2") + IShellUIHelper8 : public IShellUIHelper7 + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetCVListData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetCVListLocalData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetEMIEListData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetEMIEListLocalData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE OpenFavoritesPane( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE OpenFavoritesSettings( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE LaunchInHVSI( + /* [in] */ __RPC__in BSTR bstrUrl) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellUIHelper8Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellUIHelper8 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellUIHelper8 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetFirstBootMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetFirstBootMode )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetSafeMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetSafeMode )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, RefreshOfflineDesktop) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *RefreshOfflineDesktop )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddFavorite) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddFavorite )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Title); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddChannel) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddChannel )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddDesktopComponent) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddDesktopComponent )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Type, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Left, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Top, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Width, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Height); + + DECLSPEC_XFGVIRT(IShellUIHelper, IsSubscribed) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSubscribed )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellUIHelper, NavigateAndFind) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateAndFind )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR strQuery, + /* [in] */ __RPC__in VARIANT *varTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, ImportExportFavorites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ImportExportFavorites )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fImport, + /* [in] */ __RPC__in BSTR strImpExpPath); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteSaveForm) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteSaveForm )( + __RPC__in IShellUIHelper8 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Form); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoScan) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoScan )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR strSearch, + /* [in] */ __RPC__in BSTR strFailureUrl, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteAttach) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteAttach )( + __RPC__in IShellUIHelper8 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Reserved); + + DECLSPEC_XFGVIRT(IShellUIHelper, ShowBrowserUI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowBrowserUI )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in VARIANT *pvarIn, + /* [retval][out] */ __RPC__out VARIANT *pvarOut); + + DECLSPEC_XFGVIRT(IShellUIHelper2, AddSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddSearchProvider )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceShown )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipRunOnce) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipRunOnce )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeSettings) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeSettings )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fSQM, + /* [in] */ VARIANT_BOOL fPhishing, + /* [in] */ __RPC__in BSTR bstrLocale); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SqmEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SqmEnabled )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, PhishingEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PhishingEnabled )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, BrandImageUri) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BrandImageUri )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUri); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipTabsWelcome) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipTabsWelcome )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DiagnoseConnection) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DiagnoseConnection )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeClearType) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeClearType )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fSet); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchProviderInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchProviderInstalled )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchMigrated) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchMigrated )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfMigrated); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DefaultSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DefaultSearchProvider )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceRequiredSettingsComplete) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceRequiredSettingsComplete )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fComplete); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceHasShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceHasShown )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfShown); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SearchGuideUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SearchGuideUrl )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddService) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddService )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsServiceInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsServiceInstalled )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Verb, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper3, InPrivateFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *InPrivateFilteringEnabled )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddToFavoritesBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddToFavoritesBar )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Title, + /* [in][optional] */ __RPC__in VARIANT *Type); + + DECLSPEC_XFGVIRT(IShellUIHelper3, BuildNewTabPage) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BuildNewTabPage )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetRecentlyClosedVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetRecentlyClosedVisible )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetActivitiesVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetActivitiesVisible )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ContentDiscoveryReset) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ContentDiscoveryReset )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsSuggestedSitesEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSuggestedSitesEnabled )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, EnableSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableSuggestedSites )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fEnable); + + DECLSPEC_XFGVIRT(IShellUIHelper3, NavigateToSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateToSuggestedSites )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrRelativeUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowTabsHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowTabsHelp )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowInPrivateHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowInPrivateHelp )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteMode )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfSiteMode); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowThumbBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowThumbBar )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddThumbBarButton )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrIconURL, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarButtonID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeUpdateThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeUpdateThumbBarButton )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT ButtonID, + /* [in] */ VARIANT_BOOL fEnabled, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeSetIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeSetIconOverlay )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR IconUrl, + /* [in][optional] */ __RPC__in VARIANT *pvarDescription); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearIconOverlay )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddSiteMode )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeCreateJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeCreateJumpList )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrHeader); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddJumpListItem) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddJumpListItem )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrActionUri, + /* [in] */ __RPC__in BSTR bstrIconUri, + /* [in][optional] */ __RPC__in VARIANT *pvarWindowType); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearJumpList )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowJumpList )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddButtonStyle )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ __RPC__in BSTR bstrIconUrl, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowButtonStyle )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ VARIANT uiStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeActivate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeActivate )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteModeFirstRun) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteModeFirstRun )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fPreserveState, + /* [retval][out] */ __RPC__out VARIANT *puiFirstRun); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddTrackingProtectionList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddTrackingProtectionList )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR bstrFilterName); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msTrackingProtectionEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msTrackingProtectionEnabled )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msActiveXFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msActiveXFilteringEnabled )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msProvisionNetworks) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msProvisionNetworks )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrProvisioningXml, + /* [retval][out] */ __RPC__out VARIANT *puiResult); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msReportSafeUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msReportSafeUrl )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msSiteModeRefreshBadge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeRefreshBadge )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msSiteModeClearBadge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearBadge )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msDiagnoseConnectionUILess) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msDiagnoseConnectionUILess )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msLaunchNetworkClientHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msLaunchNetworkClientHelp )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msChangeDefaultBrowser) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msChangeDefaultBrowser )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStopPeriodicTileUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStopPeriodicTileUpdate )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicTileUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicTileUpdate )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT pollingUris, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicTileUpdateBatch) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicTileUpdateBatch )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT pollingUris, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msClearTile) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msClearTile )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueue )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msPinnedSiteState) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msPinnedSiteState )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSiteState); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForSquare150x150) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForSquare150x150 )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForWide310x150) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForWide310x150 )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForSquare310x310) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForSquare310x310 )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msScheduledTileNotification) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msScheduledTileNotification )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrNotificationXml, + /* [in] */ __RPC__in BSTR bstrNotificationId, + /* [in] */ __RPC__in BSTR bstrNotificationTag, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT expirationTime); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msRemoveScheduledTileNotification) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msRemoveScheduledTileNotification )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrNotificationId); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicBadgeUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicBadgeUpdate )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR pollingUri, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStopPeriodicBadgeUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStopPeriodicBadgeUpdate )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msLaunchInternetOptions) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msLaunchInternetOptions )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper7, SetExperimentalFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetExperimentalFlag )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrFlagString, + /* [in] */ VARIANT_BOOL vfFlag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, GetExperimentalFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetExperimentalFlag )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrFlagString, + /* [retval][out] */ __RPC__out VARIANT_BOOL *vfFlag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, SetExperimentalValue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetExperimentalValue )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrValueString, + /* [in] */ DWORD dwValue); + + DECLSPEC_XFGVIRT(IShellUIHelper7, GetExperimentalValue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetExperimentalValue )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrValueString, + /* [retval][out] */ __RPC__out DWORD *pdwValue); + + DECLSPEC_XFGVIRT(IShellUIHelper7, ResetAllExperimentalFlagsAndValues) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ResetAllExperimentalFlagsAndValues )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper7, GetNeedIEAutoLaunchFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetNeedIEAutoLaunchFlag )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [retval][out] */ __RPC__out VARIANT_BOOL *flag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, SetNeedIEAutoLaunchFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetNeedIEAutoLaunchFlag )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ VARIANT_BOOL flag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, HasNeedIEAutoLaunchFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *HasNeedIEAutoLaunchFlag )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [retval][out] */ __RPC__out VARIANT_BOOL *exists); + + DECLSPEC_XFGVIRT(IShellUIHelper7, LaunchIE) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *LaunchIE )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ VARIANT_BOOL automated); + + DECLSPEC_XFGVIRT(IShellUIHelper8, GetCVListData) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetCVListData )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult); + + DECLSPEC_XFGVIRT(IShellUIHelper8, GetCVListLocalData) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetCVListLocalData )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult); + + DECLSPEC_XFGVIRT(IShellUIHelper8, GetEMIEListData) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEMIEListData )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult); + + DECLSPEC_XFGVIRT(IShellUIHelper8, GetEMIEListLocalData) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEMIEListLocalData )( + __RPC__in IShellUIHelper8 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult); + + DECLSPEC_XFGVIRT(IShellUIHelper8, OpenFavoritesPane) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *OpenFavoritesPane )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper8, OpenFavoritesSettings) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *OpenFavoritesSettings )( + __RPC__in IShellUIHelper8 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper8, LaunchInHVSI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *LaunchInHVSI )( + __RPC__in IShellUIHelper8 * This, + /* [in] */ __RPC__in BSTR bstrUrl); + + END_INTERFACE + } IShellUIHelper8Vtbl; + + interface IShellUIHelper8 + { + CONST_VTBL struct IShellUIHelper8Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellUIHelper8_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellUIHelper8_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellUIHelper8_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellUIHelper8_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellUIHelper8_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellUIHelper8_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellUIHelper8_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellUIHelper8_ResetFirstBootMode(This) \ + ( (This)->lpVtbl -> ResetFirstBootMode(This) ) + +#define IShellUIHelper8_ResetSafeMode(This) \ + ( (This)->lpVtbl -> ResetSafeMode(This) ) + +#define IShellUIHelper8_RefreshOfflineDesktop(This) \ + ( (This)->lpVtbl -> RefreshOfflineDesktop(This) ) + +#define IShellUIHelper8_AddFavorite(This,URL,Title) \ + ( (This)->lpVtbl -> AddFavorite(This,URL,Title) ) + +#define IShellUIHelper8_AddChannel(This,URL) \ + ( (This)->lpVtbl -> AddChannel(This,URL) ) + +#define IShellUIHelper8_AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) ) + +#define IShellUIHelper8_IsSubscribed(This,URL,pBool) \ + ( (This)->lpVtbl -> IsSubscribed(This,URL,pBool) ) + +#define IShellUIHelper8_NavigateAndFind(This,URL,strQuery,varTargetFrame) \ + ( (This)->lpVtbl -> NavigateAndFind(This,URL,strQuery,varTargetFrame) ) + +#define IShellUIHelper8_ImportExportFavorites(This,fImport,strImpExpPath) \ + ( (This)->lpVtbl -> ImportExportFavorites(This,fImport,strImpExpPath) ) + +#define IShellUIHelper8_AutoCompleteSaveForm(This,Form) \ + ( (This)->lpVtbl -> AutoCompleteSaveForm(This,Form) ) + +#define IShellUIHelper8_AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) \ + ( (This)->lpVtbl -> AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) ) + +#define IShellUIHelper8_AutoCompleteAttach(This,Reserved) \ + ( (This)->lpVtbl -> AutoCompleteAttach(This,Reserved) ) + +#define IShellUIHelper8_ShowBrowserUI(This,bstrName,pvarIn,pvarOut) \ + ( (This)->lpVtbl -> ShowBrowserUI(This,bstrName,pvarIn,pvarOut) ) + + +#define IShellUIHelper8_AddSearchProvider(This,URL) \ + ( (This)->lpVtbl -> AddSearchProvider(This,URL) ) + +#define IShellUIHelper8_RunOnceShown(This) \ + ( (This)->lpVtbl -> RunOnceShown(This) ) + +#define IShellUIHelper8_SkipRunOnce(This) \ + ( (This)->lpVtbl -> SkipRunOnce(This) ) + +#define IShellUIHelper8_CustomizeSettings(This,fSQM,fPhishing,bstrLocale) \ + ( (This)->lpVtbl -> CustomizeSettings(This,fSQM,fPhishing,bstrLocale) ) + +#define IShellUIHelper8_SqmEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> SqmEnabled(This,pfEnabled) ) + +#define IShellUIHelper8_PhishingEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> PhishingEnabled(This,pfEnabled) ) + +#define IShellUIHelper8_BrandImageUri(This,pbstrUri) \ + ( (This)->lpVtbl -> BrandImageUri(This,pbstrUri) ) + +#define IShellUIHelper8_SkipTabsWelcome(This) \ + ( (This)->lpVtbl -> SkipTabsWelcome(This) ) + +#define IShellUIHelper8_DiagnoseConnection(This) \ + ( (This)->lpVtbl -> DiagnoseConnection(This) ) + +#define IShellUIHelper8_CustomizeClearType(This,fSet) \ + ( (This)->lpVtbl -> CustomizeClearType(This,fSet) ) + +#define IShellUIHelper8_IsSearchProviderInstalled(This,URL,pdwResult) \ + ( (This)->lpVtbl -> IsSearchProviderInstalled(This,URL,pdwResult) ) + +#define IShellUIHelper8_IsSearchMigrated(This,pfMigrated) \ + ( (This)->lpVtbl -> IsSearchMigrated(This,pfMigrated) ) + +#define IShellUIHelper8_DefaultSearchProvider(This,pbstrName) \ + ( (This)->lpVtbl -> DefaultSearchProvider(This,pbstrName) ) + +#define IShellUIHelper8_RunOnceRequiredSettingsComplete(This,fComplete) \ + ( (This)->lpVtbl -> RunOnceRequiredSettingsComplete(This,fComplete) ) + +#define IShellUIHelper8_RunOnceHasShown(This,pfShown) \ + ( (This)->lpVtbl -> RunOnceHasShown(This,pfShown) ) + +#define IShellUIHelper8_SearchGuideUrl(This,pbstrUrl) \ + ( (This)->lpVtbl -> SearchGuideUrl(This,pbstrUrl) ) + + +#define IShellUIHelper8_AddService(This,URL) \ + ( (This)->lpVtbl -> AddService(This,URL) ) + +#define IShellUIHelper8_IsServiceInstalled(This,URL,Verb,pdwResult) \ + ( (This)->lpVtbl -> IsServiceInstalled(This,URL,Verb,pdwResult) ) + +#define IShellUIHelper8_InPrivateFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> InPrivateFilteringEnabled(This,pfEnabled) ) + +#define IShellUIHelper8_AddToFavoritesBar(This,URL,Title,Type) \ + ( (This)->lpVtbl -> AddToFavoritesBar(This,URL,Title,Type) ) + +#define IShellUIHelper8_BuildNewTabPage(This) \ + ( (This)->lpVtbl -> BuildNewTabPage(This) ) + +#define IShellUIHelper8_SetRecentlyClosedVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetRecentlyClosedVisible(This,fVisible) ) + +#define IShellUIHelper8_SetActivitiesVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetActivitiesVisible(This,fVisible) ) + +#define IShellUIHelper8_ContentDiscoveryReset(This) \ + ( (This)->lpVtbl -> ContentDiscoveryReset(This) ) + +#define IShellUIHelper8_IsSuggestedSitesEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> IsSuggestedSitesEnabled(This,pfEnabled) ) + +#define IShellUIHelper8_EnableSuggestedSites(This,fEnable) \ + ( (This)->lpVtbl -> EnableSuggestedSites(This,fEnable) ) + +#define IShellUIHelper8_NavigateToSuggestedSites(This,bstrRelativeUrl) \ + ( (This)->lpVtbl -> NavigateToSuggestedSites(This,bstrRelativeUrl) ) + +#define IShellUIHelper8_ShowTabsHelp(This) \ + ( (This)->lpVtbl -> ShowTabsHelp(This) ) + +#define IShellUIHelper8_ShowInPrivateHelp(This) \ + ( (This)->lpVtbl -> ShowInPrivateHelp(This) ) + + +#define IShellUIHelper8_msIsSiteMode(This,pfSiteMode) \ + ( (This)->lpVtbl -> msIsSiteMode(This,pfSiteMode) ) + +#define IShellUIHelper8_msSiteModeShowThumbBar(This) \ + ( (This)->lpVtbl -> msSiteModeShowThumbBar(This) ) + +#define IShellUIHelper8_msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) \ + ( (This)->lpVtbl -> msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) ) + +#define IShellUIHelper8_msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) \ + ( (This)->lpVtbl -> msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) ) + +#define IShellUIHelper8_msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) \ + ( (This)->lpVtbl -> msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) ) + +#define IShellUIHelper8_msSiteModeClearIconOverlay(This) \ + ( (This)->lpVtbl -> msSiteModeClearIconOverlay(This) ) + +#define IShellUIHelper8_msAddSiteMode(This) \ + ( (This)->lpVtbl -> msAddSiteMode(This) ) + +#define IShellUIHelper8_msSiteModeCreateJumpList(This,bstrHeader) \ + ( (This)->lpVtbl -> msSiteModeCreateJumpList(This,bstrHeader) ) + +#define IShellUIHelper8_msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) \ + ( (This)->lpVtbl -> msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) ) + +#define IShellUIHelper8_msSiteModeClearJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeClearJumpList(This) ) + +#define IShellUIHelper8_msSiteModeShowJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeShowJumpList(This) ) + +#define IShellUIHelper8_msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) \ + ( (This)->lpVtbl -> msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) ) + +#define IShellUIHelper8_msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) \ + ( (This)->lpVtbl -> msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) ) + +#define IShellUIHelper8_msSiteModeActivate(This) \ + ( (This)->lpVtbl -> msSiteModeActivate(This) ) + +#define IShellUIHelper8_msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) \ + ( (This)->lpVtbl -> msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) ) + +#define IShellUIHelper8_msAddTrackingProtectionList(This,URL,bstrFilterName) \ + ( (This)->lpVtbl -> msAddTrackingProtectionList(This,URL,bstrFilterName) ) + +#define IShellUIHelper8_msTrackingProtectionEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msTrackingProtectionEnabled(This,pfEnabled) ) + +#define IShellUIHelper8_msActiveXFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msActiveXFilteringEnabled(This,pfEnabled) ) + + +#define IShellUIHelper8_msProvisionNetworks(This,bstrProvisioningXml,puiResult) \ + ( (This)->lpVtbl -> msProvisionNetworks(This,bstrProvisioningXml,puiResult) ) + +#define IShellUIHelper8_msReportSafeUrl(This) \ + ( (This)->lpVtbl -> msReportSafeUrl(This) ) + +#define IShellUIHelper8_msSiteModeRefreshBadge(This) \ + ( (This)->lpVtbl -> msSiteModeRefreshBadge(This) ) + +#define IShellUIHelper8_msSiteModeClearBadge(This) \ + ( (This)->lpVtbl -> msSiteModeClearBadge(This) ) + +#define IShellUIHelper8_msDiagnoseConnectionUILess(This) \ + ( (This)->lpVtbl -> msDiagnoseConnectionUILess(This) ) + +#define IShellUIHelper8_msLaunchNetworkClientHelp(This) \ + ( (This)->lpVtbl -> msLaunchNetworkClientHelp(This) ) + +#define IShellUIHelper8_msChangeDefaultBrowser(This,fChange) \ + ( (This)->lpVtbl -> msChangeDefaultBrowser(This,fChange) ) + + +#define IShellUIHelper8_msStopPeriodicTileUpdate(This) \ + ( (This)->lpVtbl -> msStopPeriodicTileUpdate(This) ) + +#define IShellUIHelper8_msStartPeriodicTileUpdate(This,pollingUris,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicTileUpdate(This,pollingUris,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper8_msStartPeriodicTileUpdateBatch(This,pollingUris,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicTileUpdateBatch(This,pollingUris,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper8_msClearTile(This) \ + ( (This)->lpVtbl -> msClearTile(This) ) + +#define IShellUIHelper8_msEnableTileNotificationQueue(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueue(This,fChange) ) + +#define IShellUIHelper8_msPinnedSiteState(This,pvarSiteState) \ + ( (This)->lpVtbl -> msPinnedSiteState(This,pvarSiteState) ) + +#define IShellUIHelper8_msEnableTileNotificationQueueForSquare150x150(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForSquare150x150(This,fChange) ) + +#define IShellUIHelper8_msEnableTileNotificationQueueForWide310x150(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForWide310x150(This,fChange) ) + +#define IShellUIHelper8_msEnableTileNotificationQueueForSquare310x310(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForSquare310x310(This,fChange) ) + +#define IShellUIHelper8_msScheduledTileNotification(This,bstrNotificationXml,bstrNotificationId,bstrNotificationTag,startTime,expirationTime) \ + ( (This)->lpVtbl -> msScheduledTileNotification(This,bstrNotificationXml,bstrNotificationId,bstrNotificationTag,startTime,expirationTime) ) + +#define IShellUIHelper8_msRemoveScheduledTileNotification(This,bstrNotificationId) \ + ( (This)->lpVtbl -> msRemoveScheduledTileNotification(This,bstrNotificationId) ) + +#define IShellUIHelper8_msStartPeriodicBadgeUpdate(This,pollingUri,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicBadgeUpdate(This,pollingUri,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper8_msStopPeriodicBadgeUpdate(This) \ + ( (This)->lpVtbl -> msStopPeriodicBadgeUpdate(This) ) + +#define IShellUIHelper8_msLaunchInternetOptions(This) \ + ( (This)->lpVtbl -> msLaunchInternetOptions(This) ) + + +#define IShellUIHelper8_SetExperimentalFlag(This,bstrFlagString,vfFlag) \ + ( (This)->lpVtbl -> SetExperimentalFlag(This,bstrFlagString,vfFlag) ) + +#define IShellUIHelper8_GetExperimentalFlag(This,bstrFlagString,vfFlag) \ + ( (This)->lpVtbl -> GetExperimentalFlag(This,bstrFlagString,vfFlag) ) + +#define IShellUIHelper8_SetExperimentalValue(This,bstrValueString,dwValue) \ + ( (This)->lpVtbl -> SetExperimentalValue(This,bstrValueString,dwValue) ) + +#define IShellUIHelper8_GetExperimentalValue(This,bstrValueString,pdwValue) \ + ( (This)->lpVtbl -> GetExperimentalValue(This,bstrValueString,pdwValue) ) + +#define IShellUIHelper8_ResetAllExperimentalFlagsAndValues(This) \ + ( (This)->lpVtbl -> ResetAllExperimentalFlagsAndValues(This) ) + +#define IShellUIHelper8_GetNeedIEAutoLaunchFlag(This,bstrUrl,flag) \ + ( (This)->lpVtbl -> GetNeedIEAutoLaunchFlag(This,bstrUrl,flag) ) + +#define IShellUIHelper8_SetNeedIEAutoLaunchFlag(This,bstrUrl,flag) \ + ( (This)->lpVtbl -> SetNeedIEAutoLaunchFlag(This,bstrUrl,flag) ) + +#define IShellUIHelper8_HasNeedIEAutoLaunchFlag(This,bstrUrl,exists) \ + ( (This)->lpVtbl -> HasNeedIEAutoLaunchFlag(This,bstrUrl,exists) ) + +#define IShellUIHelper8_LaunchIE(This,bstrUrl,automated) \ + ( (This)->lpVtbl -> LaunchIE(This,bstrUrl,automated) ) + + +#define IShellUIHelper8_GetCVListData(This,pbstrResult) \ + ( (This)->lpVtbl -> GetCVListData(This,pbstrResult) ) + +#define IShellUIHelper8_GetCVListLocalData(This,pbstrResult) \ + ( (This)->lpVtbl -> GetCVListLocalData(This,pbstrResult) ) + +#define IShellUIHelper8_GetEMIEListData(This,pbstrResult) \ + ( (This)->lpVtbl -> GetEMIEListData(This,pbstrResult) ) + +#define IShellUIHelper8_GetEMIEListLocalData(This,pbstrResult) \ + ( (This)->lpVtbl -> GetEMIEListLocalData(This,pbstrResult) ) + +#define IShellUIHelper8_OpenFavoritesPane(This) \ + ( (This)->lpVtbl -> OpenFavoritesPane(This) ) + +#define IShellUIHelper8_OpenFavoritesSettings(This) \ + ( (This)->lpVtbl -> OpenFavoritesSettings(This) ) + +#define IShellUIHelper8_LaunchInHVSI(This,bstrUrl) \ + ( (This)->lpVtbl -> LaunchInHVSI(This,bstrUrl) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellUIHelper8_INTERFACE_DEFINED__ */ + + +#ifndef __IShellUIHelper9_INTERFACE_DEFINED__ +#define __IShellUIHelper9_INTERFACE_DEFINED__ + +/* interface IShellUIHelper9 */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IShellUIHelper9; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6cdf73b0-7f2f-451f-bc0f-63e0f3284e54") + IShellUIHelper9 : public IShellUIHelper8 + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetOSSku( + /* [retval][out] */ __RPC__out DWORD *pdwResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellUIHelper9Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellUIHelper9 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellUIHelper9 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetFirstBootMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetFirstBootMode )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, ResetSafeMode) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *ResetSafeMode )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, RefreshOfflineDesktop) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *RefreshOfflineDesktop )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddFavorite) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddFavorite )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Title); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddChannel) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddChannel )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper, AddDesktopComponent) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddDesktopComponent )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Type, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Left, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Top, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Width, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Height); + + DECLSPEC_XFGVIRT(IShellUIHelper, IsSubscribed) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSubscribed )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellUIHelper, NavigateAndFind) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateAndFind )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR strQuery, + /* [in] */ __RPC__in VARIANT *varTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, ImportExportFavorites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ImportExportFavorites )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fImport, + /* [in] */ __RPC__in BSTR strImpExpPath); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteSaveForm) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteSaveForm )( + __RPC__in IShellUIHelper9 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Form); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoScan) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AutoScan )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR strSearch, + /* [in] */ __RPC__in BSTR strFailureUrl, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *pvarTargetFrame); + + DECLSPEC_XFGVIRT(IShellUIHelper, AutoCompleteAttach) + /* [id][hidden] */ HRESULT ( STDMETHODCALLTYPE *AutoCompleteAttach )( + __RPC__in IShellUIHelper9 * This, + /* [unique][optional][in] */ __RPC__in_opt VARIANT *Reserved); + + DECLSPEC_XFGVIRT(IShellUIHelper, ShowBrowserUI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowBrowserUI )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in VARIANT *pvarIn, + /* [retval][out] */ __RPC__out VARIANT *pvarOut); + + DECLSPEC_XFGVIRT(IShellUIHelper2, AddSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddSearchProvider )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceShown )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipRunOnce) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipRunOnce )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeSettings) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeSettings )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fSQM, + /* [in] */ VARIANT_BOOL fPhishing, + /* [in] */ __RPC__in BSTR bstrLocale); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SqmEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SqmEnabled )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, PhishingEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PhishingEnabled )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper2, BrandImageUri) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BrandImageUri )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUri); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SkipTabsWelcome) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SkipTabsWelcome )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DiagnoseConnection) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DiagnoseConnection )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper2, CustomizeClearType) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CustomizeClearType )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fSet); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchProviderInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchProviderInstalled )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper2, IsSearchMigrated) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSearchMigrated )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfMigrated); + + DECLSPEC_XFGVIRT(IShellUIHelper2, DefaultSearchProvider) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DefaultSearchProvider )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceRequiredSettingsComplete) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceRequiredSettingsComplete )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fComplete); + + DECLSPEC_XFGVIRT(IShellUIHelper2, RunOnceHasShown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RunOnceHasShown )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfShown); + + DECLSPEC_XFGVIRT(IShellUIHelper2, SearchGuideUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SearchGuideUrl )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddService) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddService )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsServiceInstalled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsServiceInstalled )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Verb, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + DECLSPEC_XFGVIRT(IShellUIHelper3, InPrivateFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *InPrivateFilteringEnabled )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, AddToFavoritesBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddToFavoritesBar )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR Title, + /* [in][optional] */ __RPC__in VARIANT *Type); + + DECLSPEC_XFGVIRT(IShellUIHelper3, BuildNewTabPage) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BuildNewTabPage )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetRecentlyClosedVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetRecentlyClosedVisible )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, SetActivitiesVisible) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetActivitiesVisible )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ContentDiscoveryReset) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ContentDiscoveryReset )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, IsSuggestedSitesEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsSuggestedSitesEnabled )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper3, EnableSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableSuggestedSites )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fEnable); + + DECLSPEC_XFGVIRT(IShellUIHelper3, NavigateToSuggestedSites) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *NavigateToSuggestedSites )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrRelativeUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowTabsHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowTabsHelp )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper3, ShowInPrivateHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ShowInPrivateHelp )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteMode )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfSiteMode); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowThumbBar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowThumbBar )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddThumbBarButton )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrIconURL, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarButtonID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeUpdateThumbBarButton) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeUpdateThumbBarButton )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT ButtonID, + /* [in] */ VARIANT_BOOL fEnabled, + /* [in] */ VARIANT_BOOL fVisible); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeSetIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeSetIconOverlay )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR IconUrl, + /* [in][optional] */ __RPC__in VARIANT *pvarDescription); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearIconOverlay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearIconOverlay )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddSiteMode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddSiteMode )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeCreateJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeCreateJumpList )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrHeader); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddJumpListItem) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddJumpListItem )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrActionUri, + /* [in] */ __RPC__in BSTR bstrIconUri, + /* [in][optional] */ __RPC__in VARIANT *pvarWindowType); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeClearJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearJumpList )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowJumpList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowJumpList )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeAddButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeAddButtonStyle )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ __RPC__in BSTR bstrIconUrl, + /* [in] */ __RPC__in BSTR bstrTooltip, + /* [retval][out] */ __RPC__out VARIANT *pvarStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeShowButtonStyle) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeShowButtonStyle )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT uiButtonID, + /* [in] */ VARIANT uiStyleID); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msSiteModeActivate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeActivate )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msIsSiteModeFirstRun) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msIsSiteModeFirstRun )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fPreserveState, + /* [retval][out] */ __RPC__out VARIANT *puiFirstRun); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msAddTrackingProtectionList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msAddTrackingProtectionList )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR URL, + /* [in] */ __RPC__in BSTR bstrFilterName); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msTrackingProtectionEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msTrackingProtectionEnabled )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper4, msActiveXFilteringEnabled) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msActiveXFilteringEnabled )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfEnabled); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msProvisionNetworks) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msProvisionNetworks )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrProvisioningXml, + /* [retval][out] */ __RPC__out VARIANT *puiResult); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msReportSafeUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msReportSafeUrl )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msSiteModeRefreshBadge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeRefreshBadge )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msSiteModeClearBadge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msSiteModeClearBadge )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msDiagnoseConnectionUILess) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msDiagnoseConnectionUILess )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msLaunchNetworkClientHelp) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msLaunchNetworkClientHelp )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper5, msChangeDefaultBrowser) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msChangeDefaultBrowser )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStopPeriodicTileUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStopPeriodicTileUpdate )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicTileUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicTileUpdate )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT pollingUris, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicTileUpdateBatch) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicTileUpdateBatch )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT pollingUris, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msClearTile) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msClearTile )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueue )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msPinnedSiteState) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msPinnedSiteState )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSiteState); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForSquare150x150) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForSquare150x150 )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForWide310x150) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForWide310x150 )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msEnableTileNotificationQueueForSquare310x310) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msEnableTileNotificationQueueForSquare310x310 )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ VARIANT_BOOL fChange); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msScheduledTileNotification) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msScheduledTileNotification )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrNotificationXml, + /* [in] */ __RPC__in BSTR bstrNotificationId, + /* [in] */ __RPC__in BSTR bstrNotificationTag, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT expirationTime); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msRemoveScheduledTileNotification) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msRemoveScheduledTileNotification )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrNotificationId); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStartPeriodicBadgeUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStartPeriodicBadgeUpdate )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR pollingUri, + /* [in][optional] */ VARIANT startTime, + /* [in][optional] */ VARIANT uiUpdateRecurrence); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msStopPeriodicBadgeUpdate) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msStopPeriodicBadgeUpdate )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper6, msLaunchInternetOptions) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *msLaunchInternetOptions )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper7, SetExperimentalFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetExperimentalFlag )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrFlagString, + /* [in] */ VARIANT_BOOL vfFlag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, GetExperimentalFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetExperimentalFlag )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrFlagString, + /* [retval][out] */ __RPC__out VARIANT_BOOL *vfFlag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, SetExperimentalValue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetExperimentalValue )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrValueString, + /* [in] */ DWORD dwValue); + + DECLSPEC_XFGVIRT(IShellUIHelper7, GetExperimentalValue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetExperimentalValue )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrValueString, + /* [retval][out] */ __RPC__out DWORD *pdwValue); + + DECLSPEC_XFGVIRT(IShellUIHelper7, ResetAllExperimentalFlagsAndValues) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ResetAllExperimentalFlagsAndValues )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper7, GetNeedIEAutoLaunchFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetNeedIEAutoLaunchFlag )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [retval][out] */ __RPC__out VARIANT_BOOL *flag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, SetNeedIEAutoLaunchFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetNeedIEAutoLaunchFlag )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ VARIANT_BOOL flag); + + DECLSPEC_XFGVIRT(IShellUIHelper7, HasNeedIEAutoLaunchFlag) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *HasNeedIEAutoLaunchFlag )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [retval][out] */ __RPC__out VARIANT_BOOL *exists); + + DECLSPEC_XFGVIRT(IShellUIHelper7, LaunchIE) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *LaunchIE )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ VARIANT_BOOL automated); + + DECLSPEC_XFGVIRT(IShellUIHelper8, GetCVListData) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetCVListData )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult); + + DECLSPEC_XFGVIRT(IShellUIHelper8, GetCVListLocalData) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetCVListLocalData )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult); + + DECLSPEC_XFGVIRT(IShellUIHelper8, GetEMIEListData) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEMIEListData )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult); + + DECLSPEC_XFGVIRT(IShellUIHelper8, GetEMIEListLocalData) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEMIEListLocalData )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrResult); + + DECLSPEC_XFGVIRT(IShellUIHelper8, OpenFavoritesPane) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *OpenFavoritesPane )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper8, OpenFavoritesSettings) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *OpenFavoritesSettings )( + __RPC__in IShellUIHelper9 * This); + + DECLSPEC_XFGVIRT(IShellUIHelper8, LaunchInHVSI) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *LaunchInHVSI )( + __RPC__in IShellUIHelper9 * This, + /* [in] */ __RPC__in BSTR bstrUrl); + + DECLSPEC_XFGVIRT(IShellUIHelper9, GetOSSku) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetOSSku )( + __RPC__in IShellUIHelper9 * This, + /* [retval][out] */ __RPC__out DWORD *pdwResult); + + END_INTERFACE + } IShellUIHelper9Vtbl; + + interface IShellUIHelper9 + { + CONST_VTBL struct IShellUIHelper9Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellUIHelper9_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellUIHelper9_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellUIHelper9_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellUIHelper9_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellUIHelper9_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellUIHelper9_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellUIHelper9_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellUIHelper9_ResetFirstBootMode(This) \ + ( (This)->lpVtbl -> ResetFirstBootMode(This) ) + +#define IShellUIHelper9_ResetSafeMode(This) \ + ( (This)->lpVtbl -> ResetSafeMode(This) ) + +#define IShellUIHelper9_RefreshOfflineDesktop(This) \ + ( (This)->lpVtbl -> RefreshOfflineDesktop(This) ) + +#define IShellUIHelper9_AddFavorite(This,URL,Title) \ + ( (This)->lpVtbl -> AddFavorite(This,URL,Title) ) + +#define IShellUIHelper9_AddChannel(This,URL) \ + ( (This)->lpVtbl -> AddChannel(This,URL) ) + +#define IShellUIHelper9_AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> AddDesktopComponent(This,URL,Type,Left,Top,Width,Height) ) + +#define IShellUIHelper9_IsSubscribed(This,URL,pBool) \ + ( (This)->lpVtbl -> IsSubscribed(This,URL,pBool) ) + +#define IShellUIHelper9_NavigateAndFind(This,URL,strQuery,varTargetFrame) \ + ( (This)->lpVtbl -> NavigateAndFind(This,URL,strQuery,varTargetFrame) ) + +#define IShellUIHelper9_ImportExportFavorites(This,fImport,strImpExpPath) \ + ( (This)->lpVtbl -> ImportExportFavorites(This,fImport,strImpExpPath) ) + +#define IShellUIHelper9_AutoCompleteSaveForm(This,Form) \ + ( (This)->lpVtbl -> AutoCompleteSaveForm(This,Form) ) + +#define IShellUIHelper9_AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) \ + ( (This)->lpVtbl -> AutoScan(This,strSearch,strFailureUrl,pvarTargetFrame) ) + +#define IShellUIHelper9_AutoCompleteAttach(This,Reserved) \ + ( (This)->lpVtbl -> AutoCompleteAttach(This,Reserved) ) + +#define IShellUIHelper9_ShowBrowserUI(This,bstrName,pvarIn,pvarOut) \ + ( (This)->lpVtbl -> ShowBrowserUI(This,bstrName,pvarIn,pvarOut) ) + + +#define IShellUIHelper9_AddSearchProvider(This,URL) \ + ( (This)->lpVtbl -> AddSearchProvider(This,URL) ) + +#define IShellUIHelper9_RunOnceShown(This) \ + ( (This)->lpVtbl -> RunOnceShown(This) ) + +#define IShellUIHelper9_SkipRunOnce(This) \ + ( (This)->lpVtbl -> SkipRunOnce(This) ) + +#define IShellUIHelper9_CustomizeSettings(This,fSQM,fPhishing,bstrLocale) \ + ( (This)->lpVtbl -> CustomizeSettings(This,fSQM,fPhishing,bstrLocale) ) + +#define IShellUIHelper9_SqmEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> SqmEnabled(This,pfEnabled) ) + +#define IShellUIHelper9_PhishingEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> PhishingEnabled(This,pfEnabled) ) + +#define IShellUIHelper9_BrandImageUri(This,pbstrUri) \ + ( (This)->lpVtbl -> BrandImageUri(This,pbstrUri) ) + +#define IShellUIHelper9_SkipTabsWelcome(This) \ + ( (This)->lpVtbl -> SkipTabsWelcome(This) ) + +#define IShellUIHelper9_DiagnoseConnection(This) \ + ( (This)->lpVtbl -> DiagnoseConnection(This) ) + +#define IShellUIHelper9_CustomizeClearType(This,fSet) \ + ( (This)->lpVtbl -> CustomizeClearType(This,fSet) ) + +#define IShellUIHelper9_IsSearchProviderInstalled(This,URL,pdwResult) \ + ( (This)->lpVtbl -> IsSearchProviderInstalled(This,URL,pdwResult) ) + +#define IShellUIHelper9_IsSearchMigrated(This,pfMigrated) \ + ( (This)->lpVtbl -> IsSearchMigrated(This,pfMigrated) ) + +#define IShellUIHelper9_DefaultSearchProvider(This,pbstrName) \ + ( (This)->lpVtbl -> DefaultSearchProvider(This,pbstrName) ) + +#define IShellUIHelper9_RunOnceRequiredSettingsComplete(This,fComplete) \ + ( (This)->lpVtbl -> RunOnceRequiredSettingsComplete(This,fComplete) ) + +#define IShellUIHelper9_RunOnceHasShown(This,pfShown) \ + ( (This)->lpVtbl -> RunOnceHasShown(This,pfShown) ) + +#define IShellUIHelper9_SearchGuideUrl(This,pbstrUrl) \ + ( (This)->lpVtbl -> SearchGuideUrl(This,pbstrUrl) ) + + +#define IShellUIHelper9_AddService(This,URL) \ + ( (This)->lpVtbl -> AddService(This,URL) ) + +#define IShellUIHelper9_IsServiceInstalled(This,URL,Verb,pdwResult) \ + ( (This)->lpVtbl -> IsServiceInstalled(This,URL,Verb,pdwResult) ) + +#define IShellUIHelper9_InPrivateFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> InPrivateFilteringEnabled(This,pfEnabled) ) + +#define IShellUIHelper9_AddToFavoritesBar(This,URL,Title,Type) \ + ( (This)->lpVtbl -> AddToFavoritesBar(This,URL,Title,Type) ) + +#define IShellUIHelper9_BuildNewTabPage(This) \ + ( (This)->lpVtbl -> BuildNewTabPage(This) ) + +#define IShellUIHelper9_SetRecentlyClosedVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetRecentlyClosedVisible(This,fVisible) ) + +#define IShellUIHelper9_SetActivitiesVisible(This,fVisible) \ + ( (This)->lpVtbl -> SetActivitiesVisible(This,fVisible) ) + +#define IShellUIHelper9_ContentDiscoveryReset(This) \ + ( (This)->lpVtbl -> ContentDiscoveryReset(This) ) + +#define IShellUIHelper9_IsSuggestedSitesEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> IsSuggestedSitesEnabled(This,pfEnabled) ) + +#define IShellUIHelper9_EnableSuggestedSites(This,fEnable) \ + ( (This)->lpVtbl -> EnableSuggestedSites(This,fEnable) ) + +#define IShellUIHelper9_NavigateToSuggestedSites(This,bstrRelativeUrl) \ + ( (This)->lpVtbl -> NavigateToSuggestedSites(This,bstrRelativeUrl) ) + +#define IShellUIHelper9_ShowTabsHelp(This) \ + ( (This)->lpVtbl -> ShowTabsHelp(This) ) + +#define IShellUIHelper9_ShowInPrivateHelp(This) \ + ( (This)->lpVtbl -> ShowInPrivateHelp(This) ) + + +#define IShellUIHelper9_msIsSiteMode(This,pfSiteMode) \ + ( (This)->lpVtbl -> msIsSiteMode(This,pfSiteMode) ) + +#define IShellUIHelper9_msSiteModeShowThumbBar(This) \ + ( (This)->lpVtbl -> msSiteModeShowThumbBar(This) ) + +#define IShellUIHelper9_msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) \ + ( (This)->lpVtbl -> msSiteModeAddThumbBarButton(This,bstrIconURL,bstrTooltip,pvarButtonID) ) + +#define IShellUIHelper9_msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) \ + ( (This)->lpVtbl -> msSiteModeUpdateThumbBarButton(This,ButtonID,fEnabled,fVisible) ) + +#define IShellUIHelper9_msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) \ + ( (This)->lpVtbl -> msSiteModeSetIconOverlay(This,IconUrl,pvarDescription) ) + +#define IShellUIHelper9_msSiteModeClearIconOverlay(This) \ + ( (This)->lpVtbl -> msSiteModeClearIconOverlay(This) ) + +#define IShellUIHelper9_msAddSiteMode(This) \ + ( (This)->lpVtbl -> msAddSiteMode(This) ) + +#define IShellUIHelper9_msSiteModeCreateJumpList(This,bstrHeader) \ + ( (This)->lpVtbl -> msSiteModeCreateJumpList(This,bstrHeader) ) + +#define IShellUIHelper9_msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) \ + ( (This)->lpVtbl -> msSiteModeAddJumpListItem(This,bstrName,bstrActionUri,bstrIconUri,pvarWindowType) ) + +#define IShellUIHelper9_msSiteModeClearJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeClearJumpList(This) ) + +#define IShellUIHelper9_msSiteModeShowJumpList(This) \ + ( (This)->lpVtbl -> msSiteModeShowJumpList(This) ) + +#define IShellUIHelper9_msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) \ + ( (This)->lpVtbl -> msSiteModeAddButtonStyle(This,uiButtonID,bstrIconUrl,bstrTooltip,pvarStyleID) ) + +#define IShellUIHelper9_msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) \ + ( (This)->lpVtbl -> msSiteModeShowButtonStyle(This,uiButtonID,uiStyleID) ) + +#define IShellUIHelper9_msSiteModeActivate(This) \ + ( (This)->lpVtbl -> msSiteModeActivate(This) ) + +#define IShellUIHelper9_msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) \ + ( (This)->lpVtbl -> msIsSiteModeFirstRun(This,fPreserveState,puiFirstRun) ) + +#define IShellUIHelper9_msAddTrackingProtectionList(This,URL,bstrFilterName) \ + ( (This)->lpVtbl -> msAddTrackingProtectionList(This,URL,bstrFilterName) ) + +#define IShellUIHelper9_msTrackingProtectionEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msTrackingProtectionEnabled(This,pfEnabled) ) + +#define IShellUIHelper9_msActiveXFilteringEnabled(This,pfEnabled) \ + ( (This)->lpVtbl -> msActiveXFilteringEnabled(This,pfEnabled) ) + + +#define IShellUIHelper9_msProvisionNetworks(This,bstrProvisioningXml,puiResult) \ + ( (This)->lpVtbl -> msProvisionNetworks(This,bstrProvisioningXml,puiResult) ) + +#define IShellUIHelper9_msReportSafeUrl(This) \ + ( (This)->lpVtbl -> msReportSafeUrl(This) ) + +#define IShellUIHelper9_msSiteModeRefreshBadge(This) \ + ( (This)->lpVtbl -> msSiteModeRefreshBadge(This) ) + +#define IShellUIHelper9_msSiteModeClearBadge(This) \ + ( (This)->lpVtbl -> msSiteModeClearBadge(This) ) + +#define IShellUIHelper9_msDiagnoseConnectionUILess(This) \ + ( (This)->lpVtbl -> msDiagnoseConnectionUILess(This) ) + +#define IShellUIHelper9_msLaunchNetworkClientHelp(This) \ + ( (This)->lpVtbl -> msLaunchNetworkClientHelp(This) ) + +#define IShellUIHelper9_msChangeDefaultBrowser(This,fChange) \ + ( (This)->lpVtbl -> msChangeDefaultBrowser(This,fChange) ) + + +#define IShellUIHelper9_msStopPeriodicTileUpdate(This) \ + ( (This)->lpVtbl -> msStopPeriodicTileUpdate(This) ) + +#define IShellUIHelper9_msStartPeriodicTileUpdate(This,pollingUris,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicTileUpdate(This,pollingUris,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper9_msStartPeriodicTileUpdateBatch(This,pollingUris,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicTileUpdateBatch(This,pollingUris,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper9_msClearTile(This) \ + ( (This)->lpVtbl -> msClearTile(This) ) + +#define IShellUIHelper9_msEnableTileNotificationQueue(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueue(This,fChange) ) + +#define IShellUIHelper9_msPinnedSiteState(This,pvarSiteState) \ + ( (This)->lpVtbl -> msPinnedSiteState(This,pvarSiteState) ) + +#define IShellUIHelper9_msEnableTileNotificationQueueForSquare150x150(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForSquare150x150(This,fChange) ) + +#define IShellUIHelper9_msEnableTileNotificationQueueForWide310x150(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForWide310x150(This,fChange) ) + +#define IShellUIHelper9_msEnableTileNotificationQueueForSquare310x310(This,fChange) \ + ( (This)->lpVtbl -> msEnableTileNotificationQueueForSquare310x310(This,fChange) ) + +#define IShellUIHelper9_msScheduledTileNotification(This,bstrNotificationXml,bstrNotificationId,bstrNotificationTag,startTime,expirationTime) \ + ( (This)->lpVtbl -> msScheduledTileNotification(This,bstrNotificationXml,bstrNotificationId,bstrNotificationTag,startTime,expirationTime) ) + +#define IShellUIHelper9_msRemoveScheduledTileNotification(This,bstrNotificationId) \ + ( (This)->lpVtbl -> msRemoveScheduledTileNotification(This,bstrNotificationId) ) + +#define IShellUIHelper9_msStartPeriodicBadgeUpdate(This,pollingUri,startTime,uiUpdateRecurrence) \ + ( (This)->lpVtbl -> msStartPeriodicBadgeUpdate(This,pollingUri,startTime,uiUpdateRecurrence) ) + +#define IShellUIHelper9_msStopPeriodicBadgeUpdate(This) \ + ( (This)->lpVtbl -> msStopPeriodicBadgeUpdate(This) ) + +#define IShellUIHelper9_msLaunchInternetOptions(This) \ + ( (This)->lpVtbl -> msLaunchInternetOptions(This) ) + + +#define IShellUIHelper9_SetExperimentalFlag(This,bstrFlagString,vfFlag) \ + ( (This)->lpVtbl -> SetExperimentalFlag(This,bstrFlagString,vfFlag) ) + +#define IShellUIHelper9_GetExperimentalFlag(This,bstrFlagString,vfFlag) \ + ( (This)->lpVtbl -> GetExperimentalFlag(This,bstrFlagString,vfFlag) ) + +#define IShellUIHelper9_SetExperimentalValue(This,bstrValueString,dwValue) \ + ( (This)->lpVtbl -> SetExperimentalValue(This,bstrValueString,dwValue) ) + +#define IShellUIHelper9_GetExperimentalValue(This,bstrValueString,pdwValue) \ + ( (This)->lpVtbl -> GetExperimentalValue(This,bstrValueString,pdwValue) ) + +#define IShellUIHelper9_ResetAllExperimentalFlagsAndValues(This) \ + ( (This)->lpVtbl -> ResetAllExperimentalFlagsAndValues(This) ) + +#define IShellUIHelper9_GetNeedIEAutoLaunchFlag(This,bstrUrl,flag) \ + ( (This)->lpVtbl -> GetNeedIEAutoLaunchFlag(This,bstrUrl,flag) ) + +#define IShellUIHelper9_SetNeedIEAutoLaunchFlag(This,bstrUrl,flag) \ + ( (This)->lpVtbl -> SetNeedIEAutoLaunchFlag(This,bstrUrl,flag) ) + +#define IShellUIHelper9_HasNeedIEAutoLaunchFlag(This,bstrUrl,exists) \ + ( (This)->lpVtbl -> HasNeedIEAutoLaunchFlag(This,bstrUrl,exists) ) + +#define IShellUIHelper9_LaunchIE(This,bstrUrl,automated) \ + ( (This)->lpVtbl -> LaunchIE(This,bstrUrl,automated) ) + + +#define IShellUIHelper9_GetCVListData(This,pbstrResult) \ + ( (This)->lpVtbl -> GetCVListData(This,pbstrResult) ) + +#define IShellUIHelper9_GetCVListLocalData(This,pbstrResult) \ + ( (This)->lpVtbl -> GetCVListLocalData(This,pbstrResult) ) + +#define IShellUIHelper9_GetEMIEListData(This,pbstrResult) \ + ( (This)->lpVtbl -> GetEMIEListData(This,pbstrResult) ) + +#define IShellUIHelper9_GetEMIEListLocalData(This,pbstrResult) \ + ( (This)->lpVtbl -> GetEMIEListLocalData(This,pbstrResult) ) + +#define IShellUIHelper9_OpenFavoritesPane(This) \ + ( (This)->lpVtbl -> OpenFavoritesPane(This) ) + +#define IShellUIHelper9_OpenFavoritesSettings(This) \ + ( (This)->lpVtbl -> OpenFavoritesSettings(This) ) + +#define IShellUIHelper9_LaunchInHVSI(This,bstrUrl) \ + ( (This)->lpVtbl -> LaunchInHVSI(This,bstrUrl) ) + + +#define IShellUIHelper9_GetOSSku(This,pdwResult) \ + ( (This)->lpVtbl -> GetOSSku(This,pdwResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellUIHelper9_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_ShellUIHelper; + +#ifdef __cplusplus + +class DECLSPEC_UUID("64AB4BB7-111E-11d1-8F79-00C04FC2FBE1") +ShellUIHelper; +#endif + +#ifndef __DShellNameSpaceEvents_DISPINTERFACE_DEFINED__ +#define __DShellNameSpaceEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface DShellNameSpaceEvents */ +/* [uuid] */ + + +EXTERN_C const IID DIID_DShellNameSpaceEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("55136806-B2DE-11D1-B9F2-00A0C98BC547") + DShellNameSpaceEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct DShellNameSpaceEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DShellNameSpaceEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DShellNameSpaceEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DShellNameSpaceEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DShellNameSpaceEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DShellNameSpaceEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DShellNameSpaceEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DShellNameSpaceEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } DShellNameSpaceEventsVtbl; + + interface DShellNameSpaceEvents + { + CONST_VTBL struct DShellNameSpaceEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DShellNameSpaceEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DShellNameSpaceEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DShellNameSpaceEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DShellNameSpaceEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DShellNameSpaceEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DShellNameSpaceEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DShellNameSpaceEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __DShellNameSpaceEvents_DISPINTERFACE_DEFINED__ */ + + +#ifndef __IShellFavoritesNameSpace_INTERFACE_DEFINED__ +#define __IShellFavoritesNameSpace_INTERFACE_DEFINED__ + +/* interface IShellFavoritesNameSpace */ +/* [hidden][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IShellFavoritesNameSpace; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("55136804-B2DE-11D1-B9F2-00A0C98BC547") + IShellFavoritesNameSpace : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MoveSelectionUp( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MoveSelectionDown( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ResetSort( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NewFolder( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Synchronize( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Import( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Export( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InvokeContextMenuCommand( + /* [in] */ __RPC__in BSTR strCommand) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MoveSelectionTo( void) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubscriptionsEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateSubscriptionForSelection( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteSubscriptionForSelection( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetRoot( + /* [in] */ __RPC__in BSTR bstrFullPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellFavoritesNameSpaceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellFavoritesNameSpace * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellFavoritesNameSpace * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellFavoritesNameSpace * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellFavoritesNameSpace * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellFavoritesNameSpace * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellFavoritesNameSpace * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellFavoritesNameSpace * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, MoveSelectionUp) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveSelectionUp )( + __RPC__in IShellFavoritesNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, MoveSelectionDown) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveSelectionDown )( + __RPC__in IShellFavoritesNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, ResetSort) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ResetSort )( + __RPC__in IShellFavoritesNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, NewFolder) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NewFolder )( + __RPC__in IShellFavoritesNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, Synchronize) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Synchronize )( + __RPC__in IShellFavoritesNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, Import) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Import )( + __RPC__in IShellFavoritesNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, Export) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Export )( + __RPC__in IShellFavoritesNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, InvokeContextMenuCommand) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InvokeContextMenuCommand )( + __RPC__in IShellFavoritesNameSpace * This, + /* [in] */ __RPC__in BSTR strCommand); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, MoveSelectionTo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveSelectionTo )( + __RPC__in IShellFavoritesNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, get_SubscriptionsEnabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubscriptionsEnabled )( + __RPC__in IShellFavoritesNameSpace * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, CreateSubscriptionForSelection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateSubscriptionForSelection )( + __RPC__in IShellFavoritesNameSpace * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, DeleteSubscriptionForSelection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteSubscriptionForSelection )( + __RPC__in IShellFavoritesNameSpace * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, SetRoot) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetRoot )( + __RPC__in IShellFavoritesNameSpace * This, + /* [in] */ __RPC__in BSTR bstrFullPath); + + END_INTERFACE + } IShellFavoritesNameSpaceVtbl; + + interface IShellFavoritesNameSpace + { + CONST_VTBL struct IShellFavoritesNameSpaceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellFavoritesNameSpace_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellFavoritesNameSpace_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellFavoritesNameSpace_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellFavoritesNameSpace_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellFavoritesNameSpace_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellFavoritesNameSpace_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellFavoritesNameSpace_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellFavoritesNameSpace_MoveSelectionUp(This) \ + ( (This)->lpVtbl -> MoveSelectionUp(This) ) + +#define IShellFavoritesNameSpace_MoveSelectionDown(This) \ + ( (This)->lpVtbl -> MoveSelectionDown(This) ) + +#define IShellFavoritesNameSpace_ResetSort(This) \ + ( (This)->lpVtbl -> ResetSort(This) ) + +#define IShellFavoritesNameSpace_NewFolder(This) \ + ( (This)->lpVtbl -> NewFolder(This) ) + +#define IShellFavoritesNameSpace_Synchronize(This) \ + ( (This)->lpVtbl -> Synchronize(This) ) + +#define IShellFavoritesNameSpace_Import(This) \ + ( (This)->lpVtbl -> Import(This) ) + +#define IShellFavoritesNameSpace_Export(This) \ + ( (This)->lpVtbl -> Export(This) ) + +#define IShellFavoritesNameSpace_InvokeContextMenuCommand(This,strCommand) \ + ( (This)->lpVtbl -> InvokeContextMenuCommand(This,strCommand) ) + +#define IShellFavoritesNameSpace_MoveSelectionTo(This) \ + ( (This)->lpVtbl -> MoveSelectionTo(This) ) + +#define IShellFavoritesNameSpace_get_SubscriptionsEnabled(This,pBool) \ + ( (This)->lpVtbl -> get_SubscriptionsEnabled(This,pBool) ) + +#define IShellFavoritesNameSpace_CreateSubscriptionForSelection(This,pBool) \ + ( (This)->lpVtbl -> CreateSubscriptionForSelection(This,pBool) ) + +#define IShellFavoritesNameSpace_DeleteSubscriptionForSelection(This,pBool) \ + ( (This)->lpVtbl -> DeleteSubscriptionForSelection(This,pBool) ) + +#define IShellFavoritesNameSpace_SetRoot(This,bstrFullPath) \ + ( (This)->lpVtbl -> SetRoot(This,bstrFullPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellFavoritesNameSpace_INTERFACE_DEFINED__ */ + + +#ifndef __IShellNameSpace_INTERFACE_DEFINED__ +#define __IShellNameSpace_INTERFACE_DEFINED__ + +/* interface IShellNameSpace */ +/* [hidden][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IShellNameSpace; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e572d3c9-37be-4ae2-825d-d521763e3108") + IShellNameSpace : public IShellFavoritesNameSpace + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumOptions( + /* [retval][out] */ __RPC__out LONG *pgrfEnumFlags) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_EnumOptions( + /* [in] */ LONG lVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SelectedItem( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **pItem) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SelectedItem( + /* [in] */ __RPC__in_opt IDispatch *pItem) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Root( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Root( + /* [in] */ VARIANT var) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Depth( + /* [retval][out] */ __RPC__out int *piDepth) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Depth( + /* [in] */ int iDepth) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Mode( + /* [retval][out] */ __RPC__out UINT *puMode) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Mode( + /* [in] */ UINT uMode) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Flags( + /* [retval][out] */ __RPC__out DWORD *pdwFlags) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Flags( + /* [in] */ DWORD dwFlags) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_TVFlags( + /* [in] */ DWORD dwFlags) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TVFlags( + /* [retval][out] */ __RPC__out DWORD *dwFlags) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Columns( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrColumns) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Columns( + /* [in] */ __RPC__in BSTR bstrColumns) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CountViewTypes( + /* [retval][out] */ __RPC__out int *piTypes) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetViewType( + /* [in] */ int iType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SelectedItems( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppid) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Expand( + /* [in] */ VARIANT var, + int iDepth) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UnselectAll( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IShellNameSpaceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IShellNameSpace * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IShellNameSpace * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IShellNameSpace * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IShellNameSpace * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IShellNameSpace * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IShellNameSpace * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IShellNameSpace * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, MoveSelectionUp) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveSelectionUp )( + __RPC__in IShellNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, MoveSelectionDown) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveSelectionDown )( + __RPC__in IShellNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, ResetSort) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ResetSort )( + __RPC__in IShellNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, NewFolder) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NewFolder )( + __RPC__in IShellNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, Synchronize) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Synchronize )( + __RPC__in IShellNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, Import) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Import )( + __RPC__in IShellNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, Export) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Export )( + __RPC__in IShellNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, InvokeContextMenuCommand) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InvokeContextMenuCommand )( + __RPC__in IShellNameSpace * This, + /* [in] */ __RPC__in BSTR strCommand); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, MoveSelectionTo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveSelectionTo )( + __RPC__in IShellNameSpace * This); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, get_SubscriptionsEnabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubscriptionsEnabled )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, CreateSubscriptionForSelection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateSubscriptionForSelection )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, DeleteSubscriptionForSelection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteSubscriptionForSelection )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pBool); + + DECLSPEC_XFGVIRT(IShellFavoritesNameSpace, SetRoot) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetRoot )( + __RPC__in IShellNameSpace * This, + /* [in] */ __RPC__in BSTR bstrFullPath); + + DECLSPEC_XFGVIRT(IShellNameSpace, get_EnumOptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumOptions )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__out LONG *pgrfEnumFlags); + + DECLSPEC_XFGVIRT(IShellNameSpace, put_EnumOptions) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EnumOptions )( + __RPC__in IShellNameSpace * This, + /* [in] */ LONG lVal); + + DECLSPEC_XFGVIRT(IShellNameSpace, get_SelectedItem) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SelectedItem )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **pItem); + + DECLSPEC_XFGVIRT(IShellNameSpace, put_SelectedItem) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SelectedItem )( + __RPC__in IShellNameSpace * This, + /* [in] */ __RPC__in_opt IDispatch *pItem); + + DECLSPEC_XFGVIRT(IShellNameSpace, get_Root) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Root )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(IShellNameSpace, put_Root) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Root )( + __RPC__in IShellNameSpace * This, + /* [in] */ VARIANT var); + + DECLSPEC_XFGVIRT(IShellNameSpace, get_Depth) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Depth )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__out int *piDepth); + + DECLSPEC_XFGVIRT(IShellNameSpace, put_Depth) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Depth )( + __RPC__in IShellNameSpace * This, + /* [in] */ int iDepth); + + DECLSPEC_XFGVIRT(IShellNameSpace, get_Mode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__out UINT *puMode); + + DECLSPEC_XFGVIRT(IShellNameSpace, put_Mode) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Mode )( + __RPC__in IShellNameSpace * This, + /* [in] */ UINT uMode); + + DECLSPEC_XFGVIRT(IShellNameSpace, get_Flags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Flags )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__out DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(IShellNameSpace, put_Flags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Flags )( + __RPC__in IShellNameSpace * This, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IShellNameSpace, put_TVFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TVFlags )( + __RPC__in IShellNameSpace * This, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IShellNameSpace, get_TVFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TVFlags )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__out DWORD *dwFlags); + + DECLSPEC_XFGVIRT(IShellNameSpace, get_Columns) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Columns )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrColumns); + + DECLSPEC_XFGVIRT(IShellNameSpace, put_Columns) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Columns )( + __RPC__in IShellNameSpace * This, + /* [in] */ __RPC__in BSTR bstrColumns); + + DECLSPEC_XFGVIRT(IShellNameSpace, get_CountViewTypes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CountViewTypes )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__out int *piTypes); + + DECLSPEC_XFGVIRT(IShellNameSpace, SetViewType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetViewType )( + __RPC__in IShellNameSpace * This, + /* [in] */ int iType); + + DECLSPEC_XFGVIRT(IShellNameSpace, SelectedItems) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SelectedItems )( + __RPC__in IShellNameSpace * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppid); + + DECLSPEC_XFGVIRT(IShellNameSpace, Expand) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Expand )( + __RPC__in IShellNameSpace * This, + /* [in] */ VARIANT var, + int iDepth); + + DECLSPEC_XFGVIRT(IShellNameSpace, UnselectAll) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UnselectAll )( + __RPC__in IShellNameSpace * This); + + END_INTERFACE + } IShellNameSpaceVtbl; + + interface IShellNameSpace + { + CONST_VTBL struct IShellNameSpaceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IShellNameSpace_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IShellNameSpace_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IShellNameSpace_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IShellNameSpace_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IShellNameSpace_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IShellNameSpace_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IShellNameSpace_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IShellNameSpace_MoveSelectionUp(This) \ + ( (This)->lpVtbl -> MoveSelectionUp(This) ) + +#define IShellNameSpace_MoveSelectionDown(This) \ + ( (This)->lpVtbl -> MoveSelectionDown(This) ) + +#define IShellNameSpace_ResetSort(This) \ + ( (This)->lpVtbl -> ResetSort(This) ) + +#define IShellNameSpace_NewFolder(This) \ + ( (This)->lpVtbl -> NewFolder(This) ) + +#define IShellNameSpace_Synchronize(This) \ + ( (This)->lpVtbl -> Synchronize(This) ) + +#define IShellNameSpace_Import(This) \ + ( (This)->lpVtbl -> Import(This) ) + +#define IShellNameSpace_Export(This) \ + ( (This)->lpVtbl -> Export(This) ) + +#define IShellNameSpace_InvokeContextMenuCommand(This,strCommand) \ + ( (This)->lpVtbl -> InvokeContextMenuCommand(This,strCommand) ) + +#define IShellNameSpace_MoveSelectionTo(This) \ + ( (This)->lpVtbl -> MoveSelectionTo(This) ) + +#define IShellNameSpace_get_SubscriptionsEnabled(This,pBool) \ + ( (This)->lpVtbl -> get_SubscriptionsEnabled(This,pBool) ) + +#define IShellNameSpace_CreateSubscriptionForSelection(This,pBool) \ + ( (This)->lpVtbl -> CreateSubscriptionForSelection(This,pBool) ) + +#define IShellNameSpace_DeleteSubscriptionForSelection(This,pBool) \ + ( (This)->lpVtbl -> DeleteSubscriptionForSelection(This,pBool) ) + +#define IShellNameSpace_SetRoot(This,bstrFullPath) \ + ( (This)->lpVtbl -> SetRoot(This,bstrFullPath) ) + + +#define IShellNameSpace_get_EnumOptions(This,pgrfEnumFlags) \ + ( (This)->lpVtbl -> get_EnumOptions(This,pgrfEnumFlags) ) + +#define IShellNameSpace_put_EnumOptions(This,lVal) \ + ( (This)->lpVtbl -> put_EnumOptions(This,lVal) ) + +#define IShellNameSpace_get_SelectedItem(This,pItem) \ + ( (This)->lpVtbl -> get_SelectedItem(This,pItem) ) + +#define IShellNameSpace_put_SelectedItem(This,pItem) \ + ( (This)->lpVtbl -> put_SelectedItem(This,pItem) ) + +#define IShellNameSpace_get_Root(This,pvar) \ + ( (This)->lpVtbl -> get_Root(This,pvar) ) + +#define IShellNameSpace_put_Root(This,var) \ + ( (This)->lpVtbl -> put_Root(This,var) ) + +#define IShellNameSpace_get_Depth(This,piDepth) \ + ( (This)->lpVtbl -> get_Depth(This,piDepth) ) + +#define IShellNameSpace_put_Depth(This,iDepth) \ + ( (This)->lpVtbl -> put_Depth(This,iDepth) ) + +#define IShellNameSpace_get_Mode(This,puMode) \ + ( (This)->lpVtbl -> get_Mode(This,puMode) ) + +#define IShellNameSpace_put_Mode(This,uMode) \ + ( (This)->lpVtbl -> put_Mode(This,uMode) ) + +#define IShellNameSpace_get_Flags(This,pdwFlags) \ + ( (This)->lpVtbl -> get_Flags(This,pdwFlags) ) + +#define IShellNameSpace_put_Flags(This,dwFlags) \ + ( (This)->lpVtbl -> put_Flags(This,dwFlags) ) + +#define IShellNameSpace_put_TVFlags(This,dwFlags) \ + ( (This)->lpVtbl -> put_TVFlags(This,dwFlags) ) + +#define IShellNameSpace_get_TVFlags(This,dwFlags) \ + ( (This)->lpVtbl -> get_TVFlags(This,dwFlags) ) + +#define IShellNameSpace_get_Columns(This,bstrColumns) \ + ( (This)->lpVtbl -> get_Columns(This,bstrColumns) ) + +#define IShellNameSpace_put_Columns(This,bstrColumns) \ + ( (This)->lpVtbl -> put_Columns(This,bstrColumns) ) + +#define IShellNameSpace_get_CountViewTypes(This,piTypes) \ + ( (This)->lpVtbl -> get_CountViewTypes(This,piTypes) ) + +#define IShellNameSpace_SetViewType(This,iType) \ + ( (This)->lpVtbl -> SetViewType(This,iType) ) + +#define IShellNameSpace_SelectedItems(This,ppid) \ + ( (This)->lpVtbl -> SelectedItems(This,ppid) ) + +#define IShellNameSpace_Expand(This,var,iDepth) \ + ( (This)->lpVtbl -> Expand(This,var,iDepth) ) + +#define IShellNameSpace_UnselectAll(This) \ + ( (This)->lpVtbl -> UnselectAll(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IShellNameSpace_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_ShellNameSpace; + +#ifdef __cplusplus + +class DECLSPEC_UUID("55136805-B2DE-11D1-B9F2-00A0C98BC547") +ShellNameSpace; +#endif + +#ifndef __IScriptErrorList_INTERFACE_DEFINED__ +#define __IScriptErrorList_INTERFACE_DEFINED__ + +/* interface IScriptErrorList */ +/* [object][dual][hidden][oleautomation][helpstring][uuid] */ + + +EXTERN_C const IID IID_IScriptErrorList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F3470F24-15FD-11d2-BB2E-00805FF7EFCA") + IScriptErrorList : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE advanceError( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE retreatError( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE canAdvanceError( + /* [retval][out] */ __RPC__out BOOL *pfCanAdvance) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE canRetreatError( + /* [retval][out] */ __RPC__out BOOL *pfCanRetreat) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE getErrorLine( + /* [retval][out] */ __RPC__out LONG *plLine) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE getErrorChar( + /* [retval][out] */ __RPC__out LONG *plChar) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE getErrorCode( + /* [retval][out] */ __RPC__out LONG *plCode) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE getErrorMsg( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstr) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE getErrorUrl( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstr) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE getAlwaysShowLockState( + /* [retval][out] */ __RPC__out BOOL *pfAlwaysShowLocked) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE getDetailsPaneOpen( + /* [retval][out] */ __RPC__out BOOL *pfDetailsPaneOpen) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE setDetailsPaneOpen( + BOOL fDetailsPaneOpen) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE getPerErrorDisplay( + /* [retval][out] */ __RPC__out BOOL *pfPerErrorDisplay) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE setPerErrorDisplay( + BOOL fPerErrorDisplay) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IScriptErrorListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IScriptErrorList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IScriptErrorList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IScriptErrorList * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IScriptErrorList * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IScriptErrorList * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IScriptErrorList * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IScriptErrorList * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IScriptErrorList, advanceError) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *advanceError )( + __RPC__in IScriptErrorList * This); + + DECLSPEC_XFGVIRT(IScriptErrorList, retreatError) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *retreatError )( + __RPC__in IScriptErrorList * This); + + DECLSPEC_XFGVIRT(IScriptErrorList, canAdvanceError) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *canAdvanceError )( + __RPC__in IScriptErrorList * This, + /* [retval][out] */ __RPC__out BOOL *pfCanAdvance); + + DECLSPEC_XFGVIRT(IScriptErrorList, canRetreatError) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *canRetreatError )( + __RPC__in IScriptErrorList * This, + /* [retval][out] */ __RPC__out BOOL *pfCanRetreat); + + DECLSPEC_XFGVIRT(IScriptErrorList, getErrorLine) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *getErrorLine )( + __RPC__in IScriptErrorList * This, + /* [retval][out] */ __RPC__out LONG *plLine); + + DECLSPEC_XFGVIRT(IScriptErrorList, getErrorChar) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *getErrorChar )( + __RPC__in IScriptErrorList * This, + /* [retval][out] */ __RPC__out LONG *plChar); + + DECLSPEC_XFGVIRT(IScriptErrorList, getErrorCode) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *getErrorCode )( + __RPC__in IScriptErrorList * This, + /* [retval][out] */ __RPC__out LONG *plCode); + + DECLSPEC_XFGVIRT(IScriptErrorList, getErrorMsg) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *getErrorMsg )( + __RPC__in IScriptErrorList * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstr); + + DECLSPEC_XFGVIRT(IScriptErrorList, getErrorUrl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *getErrorUrl )( + __RPC__in IScriptErrorList * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstr); + + DECLSPEC_XFGVIRT(IScriptErrorList, getAlwaysShowLockState) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *getAlwaysShowLockState )( + __RPC__in IScriptErrorList * This, + /* [retval][out] */ __RPC__out BOOL *pfAlwaysShowLocked); + + DECLSPEC_XFGVIRT(IScriptErrorList, getDetailsPaneOpen) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *getDetailsPaneOpen )( + __RPC__in IScriptErrorList * This, + /* [retval][out] */ __RPC__out BOOL *pfDetailsPaneOpen); + + DECLSPEC_XFGVIRT(IScriptErrorList, setDetailsPaneOpen) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *setDetailsPaneOpen )( + __RPC__in IScriptErrorList * This, + BOOL fDetailsPaneOpen); + + DECLSPEC_XFGVIRT(IScriptErrorList, getPerErrorDisplay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *getPerErrorDisplay )( + __RPC__in IScriptErrorList * This, + /* [retval][out] */ __RPC__out BOOL *pfPerErrorDisplay); + + DECLSPEC_XFGVIRT(IScriptErrorList, setPerErrorDisplay) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *setPerErrorDisplay )( + __RPC__in IScriptErrorList * This, + BOOL fPerErrorDisplay); + + END_INTERFACE + } IScriptErrorListVtbl; + + interface IScriptErrorList + { + CONST_VTBL struct IScriptErrorListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IScriptErrorList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IScriptErrorList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IScriptErrorList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IScriptErrorList_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IScriptErrorList_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IScriptErrorList_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IScriptErrorList_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IScriptErrorList_advanceError(This) \ + ( (This)->lpVtbl -> advanceError(This) ) + +#define IScriptErrorList_retreatError(This) \ + ( (This)->lpVtbl -> retreatError(This) ) + +#define IScriptErrorList_canAdvanceError(This,pfCanAdvance) \ + ( (This)->lpVtbl -> canAdvanceError(This,pfCanAdvance) ) + +#define IScriptErrorList_canRetreatError(This,pfCanRetreat) \ + ( (This)->lpVtbl -> canRetreatError(This,pfCanRetreat) ) + +#define IScriptErrorList_getErrorLine(This,plLine) \ + ( (This)->lpVtbl -> getErrorLine(This,plLine) ) + +#define IScriptErrorList_getErrorChar(This,plChar) \ + ( (This)->lpVtbl -> getErrorChar(This,plChar) ) + +#define IScriptErrorList_getErrorCode(This,plCode) \ + ( (This)->lpVtbl -> getErrorCode(This,plCode) ) + +#define IScriptErrorList_getErrorMsg(This,pstr) \ + ( (This)->lpVtbl -> getErrorMsg(This,pstr) ) + +#define IScriptErrorList_getErrorUrl(This,pstr) \ + ( (This)->lpVtbl -> getErrorUrl(This,pstr) ) + +#define IScriptErrorList_getAlwaysShowLockState(This,pfAlwaysShowLocked) \ + ( (This)->lpVtbl -> getAlwaysShowLockState(This,pfAlwaysShowLocked) ) + +#define IScriptErrorList_getDetailsPaneOpen(This,pfDetailsPaneOpen) \ + ( (This)->lpVtbl -> getDetailsPaneOpen(This,pfDetailsPaneOpen) ) + +#define IScriptErrorList_setDetailsPaneOpen(This,fDetailsPaneOpen) \ + ( (This)->lpVtbl -> setDetailsPaneOpen(This,fDetailsPaneOpen) ) + +#define IScriptErrorList_getPerErrorDisplay(This,pfPerErrorDisplay) \ + ( (This)->lpVtbl -> getPerErrorDisplay(This,pfPerErrorDisplay) ) + +#define IScriptErrorList_setPerErrorDisplay(This,fPerErrorDisplay) \ + ( (This)->lpVtbl -> setPerErrorDisplay(This,fPerErrorDisplay) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IScriptErrorList_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_CScriptErrorList; + +#ifdef __cplusplus + +class DECLSPEC_UUID("EFD01300-160F-11d2-BB2E-00805FF7EFCA") +CScriptErrorList; +#endif +#endif /* __SHDocVw_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_exdisp_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_exdisp_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_exdisp_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExDispid.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExDispid.h new file mode 100644 index 0000000000000000000000000000000000000000..f0f3b95aa868892e3bdc7e836c942b17c2eb9f62 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExDispid.h @@ -0,0 +1,242 @@ +#ifndef EXDISPID_H_ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: exdispid.h +// +//-------------------------------------------------------------------------- + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// Dispatch IDS for IExplorer Dispatch Events. +// +#define DISPID_BEFORENAVIGATE 100 // this is sent before navigation to give a chance to abort +#define DISPID_NAVIGATECOMPLETE 101 // in async, this is sent when we have enough to show +#define DISPID_STATUSTEXTCHANGE 102 +#define DISPID_QUIT 103 +#define DISPID_DOWNLOADCOMPLETE 104 +#define DISPID_COMMANDSTATECHANGE 105 +#define DISPID_DOWNLOADBEGIN 106 +#define DISPID_NEWWINDOW 107 // sent when a new window should be created +#define DISPID_PROGRESSCHANGE 108 // sent when download progress is updated +#define DISPID_WINDOWMOVE 109 // sent when main window has been moved +#define DISPID_WINDOWRESIZE 110 // sent when main window has been sized +#define DISPID_WINDOWACTIVATE 111 // sent when main window has been activated +#define DISPID_PROPERTYCHANGE 112 // sent when the PutProperty method is called +#define DISPID_TITLECHANGE 113 // sent when the document title changes +#define DISPID_TITLEICONCHANGE 114 // sent when the top level window icon may have changed. + +#define DISPID_FRAMEBEFORENAVIGATE 200 +#define DISPID_FRAMENAVIGATECOMPLETE 201 +#define DISPID_FRAMENEWWINDOW 204 + +#define DISPID_BEFORENAVIGATE2 250 // hyperlink clicked on +#define DISPID_NEWWINDOW2 251 +#define DISPID_NAVIGATECOMPLETE2 252 // UIActivate new document +#define DISPID_ONQUIT 253 +#define DISPID_ONVISIBLE 254 // sent when the window goes visible/hidden +#define DISPID_ONTOOLBAR 255 // sent when the toolbar should be shown/hidden +#define DISPID_ONMENUBAR 256 // sent when the menubar should be shown/hidden +#define DISPID_ONSTATUSBAR 257 // sent when the statusbar should be shown/hidden +#define DISPID_ONFULLSCREEN 258 // sent when kiosk mode should be on/off +#define DISPID_DOCUMENTCOMPLETE 259 // new document goes ReadyState_Complete +#define DISPID_ONTHEATERMODE 260 // sent when theater mode should be on/off +#define DISPID_ONADDRESSBAR 261 // sent when the address bar should be shown/hidden +#define DISPID_WINDOWSETRESIZABLE 262 // sent to set the style of the host window frame +#define DISPID_WINDOWCLOSING 263 // sent before script window.close closes the window +#define DISPID_WINDOWSETLEFT 264 // sent when the put_left method is called on the WebOC +#define DISPID_WINDOWSETTOP 265 // sent when the put_top method is called on the WebOC +#define DISPID_WINDOWSETWIDTH 266 // sent when the put_width method is called on the WebOC +#define DISPID_WINDOWSETHEIGHT 267 // sent when the put_height method is called on the WebOC +#define DISPID_CLIENTTOHOSTWINDOW 268 // sent during window.open to request conversion of dimensions +#define DISPID_SETSECURELOCKICON 269 // sent to suggest the appropriate security icon to show +#define DISPID_FILEDOWNLOAD 270 // Fired to indicate the File Download dialog is opening +#define DISPID_NAVIGATEERROR 271 // Fired to indicate the a binding error has occured +#define DISPID_PRIVACYIMPACTEDSTATECHANGE 272 // Fired when the user's browsing experience is impacted +#define DISPID_NEWWINDOW3 273 +#define DISPID_VIEWUPDATE 281 // Fired when the contents of a shell browser window change +#define DISPID_SETPHISHINGFILTERSTATUS 282 // Fired by the Phishing Filter API to signal what state the analysis is in +#define DISPID_WINDOWSTATECHANGED 283 // Fired to indicate that the browser window's visibility or enabled state has changed +#define DISPID_NEWPROCESS 284 // Fired when a navigation must be redirected due to Protected Mode +#define DISPID_THIRDPARTYURLBLOCKED 285 // Fired when a third-party url is blocked due to Privacy Advisor +#define DISPID_REDIRECTXDOMAINBLOCKED 286 // Fired when a x-domain redirect is blocked due to browser nav constant +#define DISPID_WEBWORKERSTARTED 288 +#define DISPID_WEBWORKERFINISHED 289 +#define DISPID_BEFORESCRIPTEXECUTE 290 // Fired prior to any of a page's script is executed + +// Printing events +#define DISPID_PRINTTEMPLATEINSTANTIATION 225 // Fired to indicate that a print template is instantiated +#define DISPID_PRINTTEMPLATETEARDOWN 226 // Fired to indicate that a print templete is completely gone +#define DISPID_UPDATEPAGESTATUS 227 // Fired to indicate that the spooling status has changed + +// define the events for the shell window list +#define DISPID_WINDOWREGISTERED 200 // Window registered +#define DISPID_WINDOWREVOKED 201 // Window Revoked + +#define DISPID_RESETFIRSTBOOTMODE 1 +#define DISPID_RESETSAFEMODE 2 +#define DISPID_REFRESHOFFLINEDESKTOP 3 +#define DISPID_ADDFAVORITE 4 +#define DISPID_ADDCHANNEL 5 +#define DISPID_ADDDESKTOPCOMPONENT 6 +#define DISPID_ISSUBSCRIBED 7 +#define DISPID_NAVIGATEANDFIND 8 +#define DISPID_IMPORTEXPORTFAVORITES 9 +#define DISPID_AUTOCOMPLETESAVEFORM 10 +#define DISPID_AUTOSCAN 11 +#define DISPID_AUTOCOMPLETEATTACH 12 +#define DISPID_SHOWBROWSERUI 13 +#define DISPID_ADDSEARCHPROVIDER 14 +#define DISPID_RUNONCESHOWN 15 +#define DISPID_SKIPRUNONCE 16 +#define DISPID_CUSTOMIZESETTINGS 17 +#define DISPID_SQMENABLED 18 +#define DISPID_PHISHINGENABLED 19 +#define DISPID_BRANDIMAGEURI 20 +#define DISPID_SKIPTABSWELCOME 21 +#define DISPID_DIAGNOSECONNECTION 22 +#define DISPID_CUSTOMIZECLEARTYPE 23 +#define DISPID_ISSEARCHPROVIDERINSTALLED 24 +#define DISPID_ISSEARCHMIGRATED 25 +#define DISPID_DEFAULTSEARCHPROVIDER 26 +#define DISPID_RUNONCEREQUIREDSETTINGSCOMPLETE 27 +#define DISPID_RUNONCEHASSHOWN 28 +#define DISPID_SEARCHGUIDEURL 29 +#define DISPID_ADDSERVICE 30 +#define DISPID_ISSERVICEINSTALLED 31 +#define DISPID_ADDTOFAVORITESBAR 32 +#define DISPID_BUILDNEWTABPAGE 33 +#define DISPID_SETRECENTLYCLOSEDVISIBLE 34 +#define DISPID_SETACTIVITIESVISIBLE 35 +#define DISPID_CONTENTDISCOVERYRESET 36 +#define DISPID_INPRIVATEFILTERINGENABLED 37 +#define DISPID_SUGGESTEDSITESENABLED 38 +#define DISPID_ENABLESUGGESTEDSITES 39 +#define DISPID_NAVIGATETOSUGGESTEDSITES 40 +#define DISPID_SHOWTABSHELP 41 +#define DISPID_SHOWINPRIVATEHELP 42 +#define DISPID_ISSITEMODE 43 +#define DISPID_SETSITEMODEICONOVERLAY 44 +#define DISPID_CLEARSITEMODEICONOVERLAY 45 +#define DISPID_UPDATETHUMBNAILBUTTON 46 +#define DISPID_SETTHUMBNAILBUTTONS 47 +#define DISPID_ADDTHUMBNAILBUTTONS 48 +#define DISPID_ADDSITEMODE 49 +#define DISPID_SETSITEMODEPROPERTIES 50 +#define DISPID_SITEMODECREATEJUMPLIST 51 +#define DISPID_SITEMODEADDJUMPLISTITEM 52 +#define DISPID_SITEMODECLEARJUMPLIST 53 +#define DISPID_SITEMODEADDBUTTONSTYLE 54 +#define DISPID_SITEMODESHOWBUTTONSTYLE 55 +#define DISPID_SITEMODESHOWJUMPLIST 56 +#define DISPID_ADDTRACKINGPROTECTIONLIST 57 +#define DISPID_SITEMODEACTIVATE 58 +#define DISPID_ISSITEMODEFIRSTRUN 59 +#define DISPID_TRACKINGPROTECTIONENABLED 60 +#define DISPID_ACTIVEXFILTERINGENABLED 61 +#define DISPID_PROVISIONNETWORKS 62 +#define DISPID_REPORTSAFEURL 63 +#define DISPID_SITEMODEREFRESHBADGE 64 +#define DISPID_SITEMODECLEARBADGE 65 +#define DISPID_DIAGNOSECONNECTIONUILESS 66 +#define DISPID_LAUNCHNETWORKCLIENTHELP 67 +#define DISPID_CHANGEDEFAULTBROWSER 68 +#define DISPID_STOPPERIODICUPDATE 69 +#define DISPID_STARTPERIODICUPDATE 70 +#define DISPID_CLEARNOTIFICATION 71 +#define DISPID_ENABLENOTIFICATIONQUEUE 72 +#define DISPID_PINNEDSITESTATE 73 +#define DISPID_LAUNCHINTERNETOPTIONS 74 +#define DISPID_STARTPERIODICUPDATEBATCH 75 +#define DISPID_ENABLENOTIFICATIONQUEUESQUARE 76 +#define DISPID_ENABLENOTIFICATIONQUEUEWIDE 77 +#define DISPID_ENABLENOTIFICATIONQUEUELARGE 78 +#define DISPID_SCHEDULEDTILENOTIFICATION 79 +#define DISPID_REMOVESCHEDULEDTILENOTIFICATION 80 +#define DISPID_STARTBADGEUPDATE 81 +#define DISPID_STOPBADGEUPDATE 82 +#define DISPID_ISMETAREFERRERAVAILABLE 83 +#define DISPID_SETEXPERIMENTALFLAG 84 +#define DISPID_GETEXPERIMENTALFLAG 85 +#define DISPID_SETEXPERIMENTALVALUE 86 +#define DISPID_GETEXPERIMENTALVALUE 87 +#define DISPID_HASNEEDIEAUTOLAUNCHFLAG 88 +#define DISPID_GETNEEDIEAUTOLAUNCHFLAG 89 +#define DISPID_SETNEEDIEAUTOLAUNCHFLAG 90 +#define DISPID_LAUNCHIE 91 +#define DISPID_RESETEXPERIMENTALFLAGS 92 +#define DISPID_GETCVLISTDATA 93 +#define DISPID_GETCVLISTLOCALDATA 94 +#define DISPID_GETEMIELISTDATA 95 +#define DISPID_GETEMIELISTLOCALDATA 96 +#define DISPID_OPENFAVORITESPANE 97 +#define DISPID_OPENFAVORITESSETTINGS 98 +#define DISPID_LAUNCHINHVSI 99 +#define DISPID_GETNEEDHVSIAUTOLAUNCHFLAG 100 +#define DISPID_SETNEEDHVSIAUTOLAUNCHFLAG 101 +#define DISPID_HASNEEDHVSIAUTOLAUNCHFLAG 102 +#define DISPID_GETOSSKU 103 +#define DISPID_SETMSDEFAULTS 104 +#define DISPID_SHELLUIHELPERLAST 105 + +#define DISPID_ADVANCEERROR 10 +#define DISPID_RETREATERROR 11 +#define DISPID_CANADVANCEERROR 12 +#define DISPID_CANRETREATERROR 13 +#define DISPID_GETERRORLINE 14 +#define DISPID_GETERRORCHAR 15 +#define DISPID_GETERRORCODE 16 +#define DISPID_GETERRORMSG 17 +#define DISPID_GETERRORURL 18 +#define DISPID_GETDETAILSSTATE 19 +#define DISPID_SETDETAILSSTATE 20 +#define DISPID_GETPERERRSTATE 21 +#define DISPID_SETPERERRSTATE 22 +#define DISPID_GETALWAYSSHOWLOCKSTATE 23 + +// Dispatch IDS for ShellFavoritesNameSpace Dispatch Events. +// +#define DISPID_FAVSELECTIONCHANGE 1 +#define DISPID_SELECTIONCHANGE 2 +#define DISPID_DOUBLECLICK 3 +#define DISPID_INITIALIZED 4 + +#define DISPID_MOVESELECTIONUP 1 +#define DISPID_MOVESELECTIONDOWN 2 +#define DISPID_RESETSORT 3 +#define DISPID_NEWFOLDER 4 +#define DISPID_SYNCHRONIZE 5 +#define DISPID_IMPORT 6 +#define DISPID_EXPORT 7 +#define DISPID_INVOKECONTEXTMENU 8 +#define DISPID_MOVESELECTIONTO 9 +#define DISPID_SUBSCRIPTIONSENABLED 10 +#define DISPID_CREATESUBSCRIPTION 11 +#define DISPID_DELETESUBSCRIPTION 12 +#define DISPID_SETROOT 13 +#define DISPID_ENUMOPTIONS 14 +#define DISPID_SELECTEDITEM 15 +#define DISPID_ROOT 16 +#define DISPID_DEPTH 17 +#define DISPID_MODE 18 +#define DISPID_FLAGS 19 +#define DISPID_TVFLAGS 20 +#define DISPID_NSCOLUMNS 21 +#define DISPID_COUNTVIEWTYPES 22 +#define DISPID_SETVIEWTYPE 23 +#define DISPID_SELECTEDITEMS 24 +#define DISPID_EXPAND 25 +#define DISPID_UNSELECTALL 26 + +#define EXDISPID_H_ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EXDISPID_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExtensionValidation.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExtensionValidation.h new file mode 100644 index 0000000000000000000000000000000000000000..8f74e91c131bbb3f69b8feef9e7417cdd3b745af --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExtensionValidation.h @@ -0,0 +1,237 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __extensionvalidation_h__ +#define __extensionvalidation_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IExtensionValidation_FWD_DEFINED__ +#define __IExtensionValidation_FWD_DEFINED__ +typedef interface IExtensionValidation IExtensionValidation; + +#endif /* __IExtensionValidation_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "Mshtml.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_extensionvalidation_0000_0000 */ +/* [local] */ + +/******************************************************* + * * + * Copyright (C) Microsoft. All rights reserved. * + * * + *******************************************************/ +#ifdef _MSC_VER +#pragma once +#endif + +#pragma comment(lib,"uuid.lib") + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef +enum ExtensionValidationContexts + { + ExtensionValidationContextNone = 0, + ExtensionValidationContextDynamic = 0x1, + ExtensionValidationContextParsed = 0x2 + } ExtensionValidationContexts; + +typedef +enum ExtensionValidationResults + { + ExtensionValidationResultNone = 0, + ExtensionValidationResultDoNotInstantiate = 0x1, + ExtensionValidationResultArrestPageLoad = 0x2 + } ExtensionValidationResults; + + + +extern RPC_IF_HANDLE __MIDL_itf_extensionvalidation_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_extensionvalidation_0000_0000_v0_0_s_ifspec; + +#ifndef __IExtensionValidation_INTERFACE_DEFINED__ +#define __IExtensionValidation_INTERFACE_DEFINED__ + +/* interface IExtensionValidation */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IExtensionValidation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7d33f73d-8525-4e0f-87db-830288baff44") + IExtensionValidation : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Validate( + /* [in] */ REFGUID extensionGuid, + /* [string][in] */ LPWSTR extensionModulePath, + /* [in] */ DWORD extensionFileVersionMS, + /* [in] */ DWORD extensionFileVersionLS, + /* [in] */ IHTMLDocument2 *htmlDocumentTop, + /* [in] */ IHTMLDocument2 *htmlDocumentSubframe, + /* [in] */ IHTMLElement *htmlElement, + /* [in] */ ExtensionValidationContexts contexts, + /* [out] */ ExtensionValidationResults *results) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisplayName( + /* [string][out] */ LPWSTR *displayName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IExtensionValidationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IExtensionValidation * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IExtensionValidation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IExtensionValidation * This); + + DECLSPEC_XFGVIRT(IExtensionValidation, Validate) + HRESULT ( STDMETHODCALLTYPE *Validate )( + IExtensionValidation * This, + /* [in] */ REFGUID extensionGuid, + /* [string][in] */ LPWSTR extensionModulePath, + /* [in] */ DWORD extensionFileVersionMS, + /* [in] */ DWORD extensionFileVersionLS, + /* [in] */ IHTMLDocument2 *htmlDocumentTop, + /* [in] */ IHTMLDocument2 *htmlDocumentSubframe, + /* [in] */ IHTMLElement *htmlElement, + /* [in] */ ExtensionValidationContexts contexts, + /* [out] */ ExtensionValidationResults *results); + + DECLSPEC_XFGVIRT(IExtensionValidation, DisplayName) + HRESULT ( STDMETHODCALLTYPE *DisplayName )( + IExtensionValidation * This, + /* [string][out] */ LPWSTR *displayName); + + END_INTERFACE + } IExtensionValidationVtbl; + + interface IExtensionValidation + { + CONST_VTBL struct IExtensionValidationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IExtensionValidation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IExtensionValidation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IExtensionValidation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IExtensionValidation_Validate(This,extensionGuid,extensionModulePath,extensionFileVersionMS,extensionFileVersionLS,htmlDocumentTop,htmlDocumentSubframe,htmlElement,contexts,results) \ + ( (This)->lpVtbl -> Validate(This,extensionGuid,extensionModulePath,extensionFileVersionMS,extensionFileVersionLS,htmlDocumentTop,htmlDocumentSubframe,htmlElement,contexts,results) ) + +#define IExtensionValidation_DisplayName(This,displayName) \ + ( (This)->lpVtbl -> DisplayName(This,displayName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IExtensionValidation_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_extensionvalidation_0000_0001 */ +/* [local] */ + +EXTERN_C GUID CATID_ExtensionValidation; +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_extensionvalidation_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_extensionvalidation_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExtensionValidation.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExtensionValidation.idl new file mode 100644 index 0000000000000000000000000000000000000000..2c6d444332301dba4ef66dd9994df5433ce00a19 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ExtensionValidation.idl @@ -0,0 +1,69 @@ +/******************************************************* + * * + * Copyright (C) Microsoft. All rights reserved. * + * * + *******************************************************/ +cpp_quote("/*******************************************************") +cpp_quote(" * *") +cpp_quote(" * Copyright (C) Microsoft. All rights reserved. *") +cpp_quote(" * *") +cpp_quote(" *******************************************************/") +cpp_quote("#ifdef _MSC_VER") +cpp_quote("#pragma once") +cpp_quote("#endif") +cpp_quote("") +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("#include ") + +import "oaidl.idl"; +import "ocidl.idl"; +import "Mshtml.idl"; + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +typedef enum ExtensionValidationContexts +{ + ExtensionValidationContextNone = 0x00, + ExtensionValidationContextDynamic = 0x01, + ExtensionValidationContextParsed = 0x02, +} ExtensionValidationContexts; + +typedef enum ExtensionValidationResults +{ + ExtensionValidationResultNone = 0x00, + ExtensionValidationResultDoNotInstantiate = 0x01, + ExtensionValidationResultArrestPageLoad = 0x02, +} ExtensionValidationResults; + +//------------------------------------------------------------------------- +// +// IExtensionValidation +// +//------------------------------------------------------------------------- +[ + local, + object, + pointer_default(unique), + uuid(7d33f73d-8525-4e0f-87db-830288baff44) +] +interface IExtensionValidation : IUnknown +{ + HRESULT Validate([in] REFGUID extensionGuid, + [in, string] LPWSTR extensionModulePath, + [in] DWORD extensionFileVersionMS, + [in] DWORD extensionFileVersionLS, + [in] IHTMLDocument2* htmlDocumentTop, + [in] IHTMLDocument2* htmlDocumentSubframe, + [in] IHTMLElement* htmlElement, + [in] ExtensionValidationContexts contexts, + [out] ExtensionValidationResults* results); + + HRESULT DisplayName([out, string] LPWSTR* displayName); +}; + +cpp_quote("EXTERN_C GUID CATID_ExtensionValidation;") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxCom.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxCom.h new file mode 100644 index 0000000000000000000000000000000000000000..8d50e0dc68cba56cd822ffd1a7375a55bfe4ef49 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxCom.h @@ -0,0 +1,3700 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __faxcom_h__ +#define __faxcom_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFaxTiff_FWD_DEFINED__ +#define __IFaxTiff_FWD_DEFINED__ +typedef interface IFaxTiff IFaxTiff; + +#endif /* __IFaxTiff_FWD_DEFINED__ */ + + +#ifndef __IFaxServer_FWD_DEFINED__ +#define __IFaxServer_FWD_DEFINED__ +typedef interface IFaxServer IFaxServer; + +#endif /* __IFaxServer_FWD_DEFINED__ */ + + +#ifndef __IFaxPort_FWD_DEFINED__ +#define __IFaxPort_FWD_DEFINED__ +typedef interface IFaxPort IFaxPort; + +#endif /* __IFaxPort_FWD_DEFINED__ */ + + +#ifndef __IFaxPorts_FWD_DEFINED__ +#define __IFaxPorts_FWD_DEFINED__ +typedef interface IFaxPorts IFaxPorts; + +#endif /* __IFaxPorts_FWD_DEFINED__ */ + + +#ifndef __IFaxRoutingMethod_FWD_DEFINED__ +#define __IFaxRoutingMethod_FWD_DEFINED__ +typedef interface IFaxRoutingMethod IFaxRoutingMethod; + +#endif /* __IFaxRoutingMethod_FWD_DEFINED__ */ + + +#ifndef __IFaxRoutingMethods_FWD_DEFINED__ +#define __IFaxRoutingMethods_FWD_DEFINED__ +typedef interface IFaxRoutingMethods IFaxRoutingMethods; + +#endif /* __IFaxRoutingMethods_FWD_DEFINED__ */ + + +#ifndef __IFaxStatus_FWD_DEFINED__ +#define __IFaxStatus_FWD_DEFINED__ +typedef interface IFaxStatus IFaxStatus; + +#endif /* __IFaxStatus_FWD_DEFINED__ */ + + +#ifndef __IFaxDoc_FWD_DEFINED__ +#define __IFaxDoc_FWD_DEFINED__ +typedef interface IFaxDoc IFaxDoc; + +#endif /* __IFaxDoc_FWD_DEFINED__ */ + + +#ifndef __IFaxJobs_FWD_DEFINED__ +#define __IFaxJobs_FWD_DEFINED__ +typedef interface IFaxJobs IFaxJobs; + +#endif /* __IFaxJobs_FWD_DEFINED__ */ + + +#ifndef __IFaxJob_FWD_DEFINED__ +#define __IFaxJob_FWD_DEFINED__ +typedef interface IFaxJob IFaxJob; + +#endif /* __IFaxJob_FWD_DEFINED__ */ + + +#ifndef __FaxTiff_FWD_DEFINED__ +#define __FaxTiff_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxTiff FaxTiff; +#else +typedef struct FaxTiff FaxTiff; +#endif /* __cplusplus */ + +#endif /* __FaxTiff_FWD_DEFINED__ */ + + +#ifndef __FaxServer_FWD_DEFINED__ +#define __FaxServer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxServer FaxServer; +#else +typedef struct FaxServer FaxServer; +#endif /* __cplusplus */ + +#endif /* __FaxServer_FWD_DEFINED__ */ + + +#ifndef __FaxPort_FWD_DEFINED__ +#define __FaxPort_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxPort FaxPort; +#else +typedef struct FaxPort FaxPort; +#endif /* __cplusplus */ + +#endif /* __FaxPort_FWD_DEFINED__ */ + + +#ifndef __FaxPorts_FWD_DEFINED__ +#define __FaxPorts_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxPorts FaxPorts; +#else +typedef struct FaxPorts FaxPorts; +#endif /* __cplusplus */ + +#endif /* __FaxPorts_FWD_DEFINED__ */ + + +#ifndef __FaxRoutingMethod_FWD_DEFINED__ +#define __FaxRoutingMethod_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxRoutingMethod FaxRoutingMethod; +#else +typedef struct FaxRoutingMethod FaxRoutingMethod; +#endif /* __cplusplus */ + +#endif /* __FaxRoutingMethod_FWD_DEFINED__ */ + + +#ifndef __FaxRoutingMethods_FWD_DEFINED__ +#define __FaxRoutingMethods_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxRoutingMethods FaxRoutingMethods; +#else +typedef struct FaxRoutingMethods FaxRoutingMethods; +#endif /* __cplusplus */ + +#endif /* __FaxRoutingMethods_FWD_DEFINED__ */ + + +#ifndef __FaxStatus_FWD_DEFINED__ +#define __FaxStatus_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxStatus FaxStatus; +#else +typedef struct FaxStatus FaxStatus; +#endif /* __cplusplus */ + +#endif /* __FaxStatus_FWD_DEFINED__ */ + + +#ifndef __FaxDoc_FWD_DEFINED__ +#define __FaxDoc_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxDoc FaxDoc; +#else +typedef struct FaxDoc FaxDoc; +#endif /* __cplusplus */ + +#endif /* __FaxDoc_FWD_DEFINED__ */ + + +#ifndef __FaxJobs_FWD_DEFINED__ +#define __FaxJobs_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxJobs FaxJobs; +#else +typedef struct FaxJobs FaxJobs; +#endif /* __cplusplus */ + +#endif /* __FaxJobs_FWD_DEFINED__ */ + + +#ifndef __FaxJob_FWD_DEFINED__ +#define __FaxJob_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxJob FaxJob; +#else +typedef struct FaxJob FaxJob; +#endif /* __cplusplus */ + +#endif /* __FaxJob_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_faxcom_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_faxcom_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_faxcom_0000_0000_v0_0_s_ifspec; + +#ifndef __IFaxTiff_INTERFACE_DEFINED__ +#define __IFaxTiff_INTERFACE_DEFINED__ + +/* interface IFaxTiff */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxTiff; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b19bb45f-b91c-11d1-83e1-00c04fb6e984") + IFaxTiff : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReceiveTime( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Image( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Image( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Routing( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CallerId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Csid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Tsid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RawReceiveTime( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TiffTagString( + /* [in] */ int tagID, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxTiffVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxTiff * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxTiff * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxTiff * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxTiff * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxTiff * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxTiff * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxTiff * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxTiff, get_ReceiveTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiveTime )( + __RPC__in IFaxTiff * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxTiff, get_Image) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Image )( + __RPC__in IFaxTiff * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxTiff, put_Image) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Image )( + __RPC__in IFaxTiff * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxTiff, get_RecipientName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientName )( + __RPC__in IFaxTiff * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxTiff, get_SenderName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderName )( + __RPC__in IFaxTiff * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxTiff, get_Routing) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Routing )( + __RPC__in IFaxTiff * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxTiff, get_CallerId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CallerId )( + __RPC__in IFaxTiff * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxTiff, get_Csid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Csid )( + __RPC__in IFaxTiff * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxTiff, get_Tsid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tsid )( + __RPC__in IFaxTiff * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxTiff, get_RecipientNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientNumber )( + __RPC__in IFaxTiff * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxTiff, get_RawReceiveTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawReceiveTime )( + __RPC__in IFaxTiff * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IFaxTiff, get_TiffTagString) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TiffTagString )( + __RPC__in IFaxTiff * This, + /* [in] */ int tagID, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + END_INTERFACE + } IFaxTiffVtbl; + + interface IFaxTiff + { + CONST_VTBL struct IFaxTiffVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxTiff_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxTiff_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxTiff_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxTiff_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxTiff_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxTiff_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxTiff_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxTiff_get_ReceiveTime(This,pVal) \ + ( (This)->lpVtbl -> get_ReceiveTime(This,pVal) ) + +#define IFaxTiff_get_Image(This,pVal) \ + ( (This)->lpVtbl -> get_Image(This,pVal) ) + +#define IFaxTiff_put_Image(This,newVal) \ + ( (This)->lpVtbl -> put_Image(This,newVal) ) + +#define IFaxTiff_get_RecipientName(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientName(This,pVal) ) + +#define IFaxTiff_get_SenderName(This,pVal) \ + ( (This)->lpVtbl -> get_SenderName(This,pVal) ) + +#define IFaxTiff_get_Routing(This,pVal) \ + ( (This)->lpVtbl -> get_Routing(This,pVal) ) + +#define IFaxTiff_get_CallerId(This,pVal) \ + ( (This)->lpVtbl -> get_CallerId(This,pVal) ) + +#define IFaxTiff_get_Csid(This,pVal) \ + ( (This)->lpVtbl -> get_Csid(This,pVal) ) + +#define IFaxTiff_get_Tsid(This,pVal) \ + ( (This)->lpVtbl -> get_Tsid(This,pVal) ) + +#define IFaxTiff_get_RecipientNumber(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientNumber(This,pVal) ) + +#define IFaxTiff_get_RawReceiveTime(This,pVal) \ + ( (This)->lpVtbl -> get_RawReceiveTime(This,pVal) ) + +#define IFaxTiff_get_TiffTagString(This,tagID,pVal) \ + ( (This)->lpVtbl -> get_TiffTagString(This,tagID,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxTiff_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxServer_INTERFACE_DEFINED__ +#define __IFaxServer_INTERFACE_DEFINED__ + +/* interface IFaxServer */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxServer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D73733C7-CC80-11D0-B225-00C04FB6C2F5") + IFaxServer : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Connect( + __RPC__in BSTR ServerName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Disconnect( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPorts( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateDocument( + __RPC__in BSTR FileName, + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJobs( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Retries( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Retries( + /* [in] */ long newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RetryDelay( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RetryDelay( + /* [in] */ long newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DirtyDays( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DirtyDays( + /* [in] */ long newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Branding( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Branding( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseDeviceTsid( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseDeviceTsid( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ServerCoverpage( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ServerCoverpage( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PauseServerQueue( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PauseServerQueue( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ArchiveOutboundFaxes( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ArchiveOutboundFaxes( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ArchiveDirectory( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ArchiveDirectory( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ServerMapiProfile( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ServerMapiProfile( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscountRateStartHour( + /* [retval][out] */ __RPC__out short *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DiscountRateStartHour( + /* [in] */ short newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscountRateStartMinute( + /* [retval][out] */ __RPC__out short *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DiscountRateStartMinute( + /* [in] */ short newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscountRateEndHour( + /* [retval][out] */ __RPC__out short *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DiscountRateEndHour( + /* [in] */ short newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscountRateEndMinute( + /* [retval][out] */ __RPC__out short *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DiscountRateEndMinute( + /* [in] */ short newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxServerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxServer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxServer * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxServer * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxServer * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxServer * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxServer, Connect) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Connect )( + __RPC__in IFaxServer * This, + __RPC__in BSTR ServerName); + + DECLSPEC_XFGVIRT(IFaxServer, Disconnect) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Disconnect )( + __RPC__in IFaxServer * This); + + DECLSPEC_XFGVIRT(IFaxServer, GetPorts) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPorts )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IFaxServer, CreateDocument) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateDocument )( + __RPC__in IFaxServer * This, + __RPC__in BSTR FileName, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IFaxServer, GetJobs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJobs )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IFaxServer, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_Retries) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Retries )( + __RPC__in IFaxServer * This, + /* [in] */ long newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_RetryDelay) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetryDelay )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_RetryDelay) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RetryDelay )( + __RPC__in IFaxServer * This, + /* [in] */ long newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_DirtyDays) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DirtyDays )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_DirtyDays) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DirtyDays )( + __RPC__in IFaxServer * This, + /* [in] */ long newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_Branding) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Branding )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_Branding) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Branding )( + __RPC__in IFaxServer * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_UseDeviceTsid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseDeviceTsid )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_UseDeviceTsid) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseDeviceTsid )( + __RPC__in IFaxServer * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_ServerCoverpage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerCoverpage )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_ServerCoverpage) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServerCoverpage )( + __RPC__in IFaxServer * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_PauseServerQueue) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PauseServerQueue )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_PauseServerQueue) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PauseServerQueue )( + __RPC__in IFaxServer * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_ArchiveOutboundFaxes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchiveOutboundFaxes )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_ArchiveOutboundFaxes) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ArchiveOutboundFaxes )( + __RPC__in IFaxServer * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_ArchiveDirectory) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchiveDirectory )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_ArchiveDirectory) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ArchiveDirectory )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_ServerMapiProfile) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerMapiProfile )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_ServerMapiProfile) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServerMapiProfile )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_DiscountRateStartHour) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscountRateStartHour )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out short *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_DiscountRateStartHour) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DiscountRateStartHour )( + __RPC__in IFaxServer * This, + /* [in] */ short newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_DiscountRateStartMinute) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscountRateStartMinute )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out short *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_DiscountRateStartMinute) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DiscountRateStartMinute )( + __RPC__in IFaxServer * This, + /* [in] */ short newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_DiscountRateEndHour) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscountRateEndHour )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out short *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_DiscountRateEndHour) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DiscountRateEndHour )( + __RPC__in IFaxServer * This, + /* [in] */ short newVal); + + DECLSPEC_XFGVIRT(IFaxServer, get_DiscountRateEndMinute) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscountRateEndMinute )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out short *pVal); + + DECLSPEC_XFGVIRT(IFaxServer, put_DiscountRateEndMinute) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DiscountRateEndMinute )( + __RPC__in IFaxServer * This, + /* [in] */ short newVal); + + END_INTERFACE + } IFaxServerVtbl; + + interface IFaxServer + { + CONST_VTBL struct IFaxServerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxServer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxServer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxServer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxServer_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxServer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxServer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxServer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxServer_Connect(This,ServerName) \ + ( (This)->lpVtbl -> Connect(This,ServerName) ) + +#define IFaxServer_Disconnect(This) \ + ( (This)->lpVtbl -> Disconnect(This) ) + +#define IFaxServer_GetPorts(This,retval) \ + ( (This)->lpVtbl -> GetPorts(This,retval) ) + +#define IFaxServer_CreateDocument(This,FileName,retval) \ + ( (This)->lpVtbl -> CreateDocument(This,FileName,retval) ) + +#define IFaxServer_GetJobs(This,retval) \ + ( (This)->lpVtbl -> GetJobs(This,retval) ) + +#define IFaxServer_get_Retries(This,pVal) \ + ( (This)->lpVtbl -> get_Retries(This,pVal) ) + +#define IFaxServer_put_Retries(This,newVal) \ + ( (This)->lpVtbl -> put_Retries(This,newVal) ) + +#define IFaxServer_get_RetryDelay(This,pVal) \ + ( (This)->lpVtbl -> get_RetryDelay(This,pVal) ) + +#define IFaxServer_put_RetryDelay(This,newVal) \ + ( (This)->lpVtbl -> put_RetryDelay(This,newVal) ) + +#define IFaxServer_get_DirtyDays(This,pVal) \ + ( (This)->lpVtbl -> get_DirtyDays(This,pVal) ) + +#define IFaxServer_put_DirtyDays(This,newVal) \ + ( (This)->lpVtbl -> put_DirtyDays(This,newVal) ) + +#define IFaxServer_get_Branding(This,pVal) \ + ( (This)->lpVtbl -> get_Branding(This,pVal) ) + +#define IFaxServer_put_Branding(This,newVal) \ + ( (This)->lpVtbl -> put_Branding(This,newVal) ) + +#define IFaxServer_get_UseDeviceTsid(This,pVal) \ + ( (This)->lpVtbl -> get_UseDeviceTsid(This,pVal) ) + +#define IFaxServer_put_UseDeviceTsid(This,newVal) \ + ( (This)->lpVtbl -> put_UseDeviceTsid(This,newVal) ) + +#define IFaxServer_get_ServerCoverpage(This,pVal) \ + ( (This)->lpVtbl -> get_ServerCoverpage(This,pVal) ) + +#define IFaxServer_put_ServerCoverpage(This,newVal) \ + ( (This)->lpVtbl -> put_ServerCoverpage(This,newVal) ) + +#define IFaxServer_get_PauseServerQueue(This,pVal) \ + ( (This)->lpVtbl -> get_PauseServerQueue(This,pVal) ) + +#define IFaxServer_put_PauseServerQueue(This,newVal) \ + ( (This)->lpVtbl -> put_PauseServerQueue(This,newVal) ) + +#define IFaxServer_get_ArchiveOutboundFaxes(This,pVal) \ + ( (This)->lpVtbl -> get_ArchiveOutboundFaxes(This,pVal) ) + +#define IFaxServer_put_ArchiveOutboundFaxes(This,newVal) \ + ( (This)->lpVtbl -> put_ArchiveOutboundFaxes(This,newVal) ) + +#define IFaxServer_get_ArchiveDirectory(This,pVal) \ + ( (This)->lpVtbl -> get_ArchiveDirectory(This,pVal) ) + +#define IFaxServer_put_ArchiveDirectory(This,newVal) \ + ( (This)->lpVtbl -> put_ArchiveDirectory(This,newVal) ) + +#define IFaxServer_get_ServerMapiProfile(This,pVal) \ + ( (This)->lpVtbl -> get_ServerMapiProfile(This,pVal) ) + +#define IFaxServer_put_ServerMapiProfile(This,newVal) \ + ( (This)->lpVtbl -> put_ServerMapiProfile(This,newVal) ) + +#define IFaxServer_get_DiscountRateStartHour(This,pVal) \ + ( (This)->lpVtbl -> get_DiscountRateStartHour(This,pVal) ) + +#define IFaxServer_put_DiscountRateStartHour(This,newVal) \ + ( (This)->lpVtbl -> put_DiscountRateStartHour(This,newVal) ) + +#define IFaxServer_get_DiscountRateStartMinute(This,pVal) \ + ( (This)->lpVtbl -> get_DiscountRateStartMinute(This,pVal) ) + +#define IFaxServer_put_DiscountRateStartMinute(This,newVal) \ + ( (This)->lpVtbl -> put_DiscountRateStartMinute(This,newVal) ) + +#define IFaxServer_get_DiscountRateEndHour(This,pVal) \ + ( (This)->lpVtbl -> get_DiscountRateEndHour(This,pVal) ) + +#define IFaxServer_put_DiscountRateEndHour(This,newVal) \ + ( (This)->lpVtbl -> put_DiscountRateEndHour(This,newVal) ) + +#define IFaxServer_get_DiscountRateEndMinute(This,pVal) \ + ( (This)->lpVtbl -> get_DiscountRateEndMinute(This,pVal) ) + +#define IFaxServer_put_DiscountRateEndMinute(This,newVal) \ + ( (This)->lpVtbl -> put_DiscountRateEndMinute(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxServer_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxPort_INTERFACE_DEFINED__ +#define __IFaxPort_INTERFACE_DEFINED__ + +/* interface IFaxPort */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxPort; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D73733CC-CC80-11D0-B225-00C04FB6C2F5") + IFaxPort : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceId( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Rings( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Rings( + /* [in] */ long newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Csid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Csid( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Tsid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Tsid( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Send( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Send( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Receive( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Receive( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Priority( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Priority( + /* [in] */ long newVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetRoutingMethods( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CanModify( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetStatus( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxPortVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxPort * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxPort * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxPort * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxPort * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxPort * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxPort * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxPort * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxPort, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxPort, get_DeviceId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceId )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxPort, get_Rings) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rings )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxPort, put_Rings) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rings )( + __RPC__in IFaxPort * This, + /* [in] */ long newVal); + + DECLSPEC_XFGVIRT(IFaxPort, get_Csid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Csid )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxPort, put_Csid) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Csid )( + __RPC__in IFaxPort * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxPort, get_Tsid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tsid )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxPort, put_Tsid) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Tsid )( + __RPC__in IFaxPort * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxPort, get_Send) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Send )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxPort, put_Send) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Send )( + __RPC__in IFaxPort * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxPort, get_Receive) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Receive )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxPort, put_Receive) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Receive )( + __RPC__in IFaxPort * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxPort, get_Priority) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxPort, put_Priority) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Priority )( + __RPC__in IFaxPort * This, + /* [in] */ long newVal); + + DECLSPEC_XFGVIRT(IFaxPort, GetRoutingMethods) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetRoutingMethods )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IFaxPort, get_CanModify) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CanModify )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxPort, GetStatus) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in IFaxPort * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + END_INTERFACE + } IFaxPortVtbl; + + interface IFaxPort + { + CONST_VTBL struct IFaxPortVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxPort_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxPort_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxPort_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxPort_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxPort_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxPort_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxPort_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxPort_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) + +#define IFaxPort_get_DeviceId(This,pVal) \ + ( (This)->lpVtbl -> get_DeviceId(This,pVal) ) + +#define IFaxPort_get_Rings(This,pVal) \ + ( (This)->lpVtbl -> get_Rings(This,pVal) ) + +#define IFaxPort_put_Rings(This,newVal) \ + ( (This)->lpVtbl -> put_Rings(This,newVal) ) + +#define IFaxPort_get_Csid(This,pVal) \ + ( (This)->lpVtbl -> get_Csid(This,pVal) ) + +#define IFaxPort_put_Csid(This,newVal) \ + ( (This)->lpVtbl -> put_Csid(This,newVal) ) + +#define IFaxPort_get_Tsid(This,pVal) \ + ( (This)->lpVtbl -> get_Tsid(This,pVal) ) + +#define IFaxPort_put_Tsid(This,newVal) \ + ( (This)->lpVtbl -> put_Tsid(This,newVal) ) + +#define IFaxPort_get_Send(This,pVal) \ + ( (This)->lpVtbl -> get_Send(This,pVal) ) + +#define IFaxPort_put_Send(This,newVal) \ + ( (This)->lpVtbl -> put_Send(This,newVal) ) + +#define IFaxPort_get_Receive(This,pVal) \ + ( (This)->lpVtbl -> get_Receive(This,pVal) ) + +#define IFaxPort_put_Receive(This,newVal) \ + ( (This)->lpVtbl -> put_Receive(This,newVal) ) + +#define IFaxPort_get_Priority(This,pVal) \ + ( (This)->lpVtbl -> get_Priority(This,pVal) ) + +#define IFaxPort_put_Priority(This,newVal) \ + ( (This)->lpVtbl -> put_Priority(This,newVal) ) + +#define IFaxPort_GetRoutingMethods(This,retval) \ + ( (This)->lpVtbl -> GetRoutingMethods(This,retval) ) + +#define IFaxPort_get_CanModify(This,pVal) \ + ( (This)->lpVtbl -> get_CanModify(This,pVal) ) + +#define IFaxPort_GetStatus(This,retval) \ + ( (This)->lpVtbl -> GetStatus(This,retval) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxPort_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxPorts_INTERFACE_DEFINED__ +#define __IFaxPorts_INTERFACE_DEFINED__ + +/* interface IFaxPorts */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxPorts; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D73733D5-CC80-11D0-B225-00C04FB6C2F5") + IFaxPorts : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + long Index, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxPortsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxPorts * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxPorts * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxPorts * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxPorts * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxPorts * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxPorts * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxPorts * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxPorts, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxPorts * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxPorts, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxPorts * This, + long Index, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + END_INTERFACE + } IFaxPortsVtbl; + + interface IFaxPorts + { + CONST_VTBL struct IFaxPortsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxPorts_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxPorts_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxPorts_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxPorts_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxPorts_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxPorts_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxPorts_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxPorts_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IFaxPorts_get_Item(This,Index,pVal) \ + ( (This)->lpVtbl -> get_Item(This,Index,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxPorts_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxRoutingMethod_INTERFACE_DEFINED__ +#define __IFaxRoutingMethod_INTERFACE_DEFINED__ + +/* interface IFaxRoutingMethod */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxRoutingMethod; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2199F5F3-CEFC-11D0-A341-0000F800E68D") + IFaxRoutingMethod : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceId( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Enable( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Enable( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Guid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FunctionName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ImageName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExtensionName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RoutingData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxRoutingMethodVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxRoutingMethod * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxRoutingMethod * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxRoutingMethod * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxRoutingMethod * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxRoutingMethod * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxRoutingMethod * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxRoutingMethod * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxRoutingMethod, get_DeviceId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceId )( + __RPC__in IFaxRoutingMethod * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxRoutingMethod, get_Enable) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enable )( + __RPC__in IFaxRoutingMethod * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxRoutingMethod, put_Enable) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enable )( + __RPC__in IFaxRoutingMethod * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxRoutingMethod, get_DeviceName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceName )( + __RPC__in IFaxRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxRoutingMethod, get_Guid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Guid )( + __RPC__in IFaxRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxRoutingMethod, get_FunctionName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FunctionName )( + __RPC__in IFaxRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxRoutingMethod, get_ImageName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImageName )( + __RPC__in IFaxRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxRoutingMethod, get_FriendlyName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( + __RPC__in IFaxRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxRoutingMethod, get_ExtensionName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtensionName )( + __RPC__in IFaxRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxRoutingMethod, get_RoutingData) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoutingData )( + __RPC__in IFaxRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + END_INTERFACE + } IFaxRoutingMethodVtbl; + + interface IFaxRoutingMethod + { + CONST_VTBL struct IFaxRoutingMethodVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxRoutingMethod_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxRoutingMethod_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxRoutingMethod_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxRoutingMethod_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxRoutingMethod_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxRoutingMethod_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxRoutingMethod_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxRoutingMethod_get_DeviceId(This,pVal) \ + ( (This)->lpVtbl -> get_DeviceId(This,pVal) ) + +#define IFaxRoutingMethod_get_Enable(This,pVal) \ + ( (This)->lpVtbl -> get_Enable(This,pVal) ) + +#define IFaxRoutingMethod_put_Enable(This,newVal) \ + ( (This)->lpVtbl -> put_Enable(This,newVal) ) + +#define IFaxRoutingMethod_get_DeviceName(This,pVal) \ + ( (This)->lpVtbl -> get_DeviceName(This,pVal) ) + +#define IFaxRoutingMethod_get_Guid(This,pVal) \ + ( (This)->lpVtbl -> get_Guid(This,pVal) ) + +#define IFaxRoutingMethod_get_FunctionName(This,pVal) \ + ( (This)->lpVtbl -> get_FunctionName(This,pVal) ) + +#define IFaxRoutingMethod_get_ImageName(This,pVal) \ + ( (This)->lpVtbl -> get_ImageName(This,pVal) ) + +#define IFaxRoutingMethod_get_FriendlyName(This,pVal) \ + ( (This)->lpVtbl -> get_FriendlyName(This,pVal) ) + +#define IFaxRoutingMethod_get_ExtensionName(This,pVal) \ + ( (This)->lpVtbl -> get_ExtensionName(This,pVal) ) + +#define IFaxRoutingMethod_get_RoutingData(This,pVal) \ + ( (This)->lpVtbl -> get_RoutingData(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxRoutingMethod_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxRoutingMethods_INTERFACE_DEFINED__ +#define __IFaxRoutingMethods_INTERFACE_DEFINED__ + +/* interface IFaxRoutingMethods */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxRoutingMethods; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2199F5F5-CEFC-11D0-A341-0000F800E68D") + IFaxRoutingMethods : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long Index, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxRoutingMethodsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxRoutingMethods * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxRoutingMethods * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxRoutingMethods * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxRoutingMethods * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxRoutingMethods * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxRoutingMethods * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxRoutingMethods * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxRoutingMethods, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxRoutingMethods * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxRoutingMethods, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxRoutingMethods * This, + /* [in] */ long Index, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + END_INTERFACE + } IFaxRoutingMethodsVtbl; + + interface IFaxRoutingMethods + { + CONST_VTBL struct IFaxRoutingMethodsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxRoutingMethods_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxRoutingMethods_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxRoutingMethods_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxRoutingMethods_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxRoutingMethods_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxRoutingMethods_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxRoutingMethods_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxRoutingMethods_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IFaxRoutingMethods_get_Item(This,Index,pVal) \ + ( (This)->lpVtbl -> get_Item(This,Index,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxRoutingMethods_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxStatus_INTERFACE_DEFINED__ +#define __IFaxStatus_INTERFACE_DEFINED__ + +/* interface IFaxStatus */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxStatus; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8B97E605-D054-11D0-B226-00C04FB6C2F5") + IFaxStatus : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CallerId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Csid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPage( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceId( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DocumentName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Send( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Receive( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Address( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RoutingString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DocumentSize( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PageCount( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Tsid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartTime( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubmittedTime( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ElapsedTime( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxStatusVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxStatus * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxStatus * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxStatus * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxStatus * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxStatus * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxStatus * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxStatus * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxStatus, get_CallerId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CallerId )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_Csid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Csid )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_CurrentPage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPage )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_DeviceId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceId )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_DeviceName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceName )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_DocumentName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DocumentName )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_Send) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Send )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_Receive) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Receive )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_Address) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Address )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_RoutingString) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoutingString )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_SenderName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderName )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_RecipientName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientName )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_DocumentSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DocumentSize )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_PageCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PageCount )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_Tsid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tsid )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_StartTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartTime )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_SubmittedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubmittedTime )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, get_ElapsedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ElapsedTime )( + __RPC__in IFaxStatus * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFaxStatus, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxStatus * This); + + END_INTERFACE + } IFaxStatusVtbl; + + interface IFaxStatus + { + CONST_VTBL struct IFaxStatusVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxStatus_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxStatus_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxStatus_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxStatus_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxStatus_get_CallerId(This,pVal) \ + ( (This)->lpVtbl -> get_CallerId(This,pVal) ) + +#define IFaxStatus_get_Csid(This,pVal) \ + ( (This)->lpVtbl -> get_Csid(This,pVal) ) + +#define IFaxStatus_get_CurrentPage(This,pVal) \ + ( (This)->lpVtbl -> get_CurrentPage(This,pVal) ) + +#define IFaxStatus_get_DeviceId(This,pVal) \ + ( (This)->lpVtbl -> get_DeviceId(This,pVal) ) + +#define IFaxStatus_get_DeviceName(This,pVal) \ + ( (This)->lpVtbl -> get_DeviceName(This,pVal) ) + +#define IFaxStatus_get_DocumentName(This,pVal) \ + ( (This)->lpVtbl -> get_DocumentName(This,pVal) ) + +#define IFaxStatus_get_Send(This,pVal) \ + ( (This)->lpVtbl -> get_Send(This,pVal) ) + +#define IFaxStatus_get_Receive(This,pVal) \ + ( (This)->lpVtbl -> get_Receive(This,pVal) ) + +#define IFaxStatus_get_Address(This,pVal) \ + ( (This)->lpVtbl -> get_Address(This,pVal) ) + +#define IFaxStatus_get_RoutingString(This,pVal) \ + ( (This)->lpVtbl -> get_RoutingString(This,pVal) ) + +#define IFaxStatus_get_SenderName(This,pVal) \ + ( (This)->lpVtbl -> get_SenderName(This,pVal) ) + +#define IFaxStatus_get_RecipientName(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientName(This,pVal) ) + +#define IFaxStatus_get_DocumentSize(This,pVal) \ + ( (This)->lpVtbl -> get_DocumentSize(This,pVal) ) + +#define IFaxStatus_get_Description(This,pVal) \ + ( (This)->lpVtbl -> get_Description(This,pVal) ) + +#define IFaxStatus_get_PageCount(This,pVal) \ + ( (This)->lpVtbl -> get_PageCount(This,pVal) ) + +#define IFaxStatus_get_Tsid(This,pVal) \ + ( (This)->lpVtbl -> get_Tsid(This,pVal) ) + +#define IFaxStatus_get_StartTime(This,pVal) \ + ( (This)->lpVtbl -> get_StartTime(This,pVal) ) + +#define IFaxStatus_get_SubmittedTime(This,pVal) \ + ( (This)->lpVtbl -> get_SubmittedTime(This,pVal) ) + +#define IFaxStatus_get_ElapsedTime(This,pVal) \ + ( (This)->lpVtbl -> get_ElapsedTime(This,pVal) ) + +#define IFaxStatus_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxStatus_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxDoc_INTERFACE_DEFINED__ +#define __IFaxDoc_INTERFACE_DEFINED__ + +/* interface IFaxDoc */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxDoc; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FA21F4C5-5C4C-11D1-83CF-00C04FB6E984") + IFaxDoc : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FileName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FileName( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CoverpageName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CoverpageName( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SendCoverpage( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SendCoverpage( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ServerCoverpage( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ServerCoverpage( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscountSend( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DiscountSend( + /* [in] */ BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientName( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientCompany( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientCompany( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientAddress( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientCity( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientCity( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientState( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientState( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientZip( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientZip( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientCountry( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientCountry( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientTitle( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientTitle( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientDepartment( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientDepartment( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientOffice( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientOffice( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientHomePhone( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientHomePhone( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientOfficePhone( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RecipientOfficePhone( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderName( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderCompany( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderCompany( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderAddress( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderTitle( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderTitle( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderDepartment( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderDepartment( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderOffice( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderOffice( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderHomePhone( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderHomePhone( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderOfficePhone( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderOfficePhone( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CoverpageNote( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CoverpageNote( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CoverpageSubject( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CoverpageSubject( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Tsid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Tsid( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BillingCode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BillingCode( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EmailAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_EmailAddress( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DisplayName( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Send( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FaxNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FaxNumber( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propputref] */ HRESULT STDMETHODCALLTYPE putref_ConnectionObject( + /* [in] */ __RPC__in_opt IDispatch *newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CallHandle( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CallHandle( + /* [in] */ long newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderFax( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderFax( + /* [in] */ __RPC__in BSTR newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxDocVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxDoc * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxDoc * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxDoc * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxDoc * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxDoc * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxDoc, get_FileName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileName )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_FileName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileName )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_CoverpageName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CoverpageName )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_CoverpageName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CoverpageName )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_SendCoverpage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SendCoverpage )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_SendCoverpage) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SendCoverpage )( + __RPC__in IFaxDoc * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_ServerCoverpage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerCoverpage )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_ServerCoverpage) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServerCoverpage )( + __RPC__in IFaxDoc * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_DiscountSend) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscountSend )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_DiscountSend) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DiscountSend )( + __RPC__in IFaxDoc * This, + /* [in] */ BOOL newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientName )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientName )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientCompany) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientCompany )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientCompany) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientCompany )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientAddress )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientAddress) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientAddress )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientCity) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientCity )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientCity) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientCity )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientState) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientState )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientState) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientState )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientZip) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientZip )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientZip) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientZip )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientCountry) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientCountry )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientCountry) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientCountry )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientTitle) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientTitle )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientTitle) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientTitle )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientDepartment) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientDepartment )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientDepartment) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientDepartment )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientOffice) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientOffice )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientOffice) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientOffice )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientHomePhone) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientHomePhone )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientHomePhone) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientHomePhone )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_RecipientOfficePhone) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientOfficePhone )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_RecipientOfficePhone) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RecipientOfficePhone )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_SenderName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderName )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_SenderName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderName )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_SenderCompany) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderCompany )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_SenderCompany) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderCompany )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_SenderAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderAddress )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_SenderAddress) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderAddress )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_SenderTitle) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderTitle )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_SenderTitle) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderTitle )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_SenderDepartment) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderDepartment )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_SenderDepartment) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderDepartment )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_SenderOffice) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderOffice )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_SenderOffice) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderOffice )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_SenderHomePhone) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderHomePhone )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_SenderHomePhone) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderHomePhone )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_SenderOfficePhone) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderOfficePhone )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_SenderOfficePhone) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderOfficePhone )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_CoverpageNote) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CoverpageNote )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_CoverpageNote) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CoverpageNote )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_CoverpageSubject) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CoverpageSubject )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_CoverpageSubject) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CoverpageSubject )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_Tsid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tsid )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_Tsid) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Tsid )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_BillingCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BillingCode )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_BillingCode) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BillingCode )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_EmailAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EmailAddress )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_EmailAddress) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EmailAddress )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_DisplayName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayName )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, Send) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Send )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_FaxNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FaxNumber )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_FaxNumber) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FaxNumber )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, putref_ConnectionObject) + /* [helpstring][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_ConnectionObject )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in_opt IDispatch *newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_CallHandle) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CallHandle )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_CallHandle) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CallHandle )( + __RPC__in IFaxDoc * This, + /* [in] */ long newVal); + + DECLSPEC_XFGVIRT(IFaxDoc, get_SenderFax) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderFax )( + __RPC__in IFaxDoc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxDoc, put_SenderFax) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderFax )( + __RPC__in IFaxDoc * This, + /* [in] */ __RPC__in BSTR newVal); + + END_INTERFACE + } IFaxDocVtbl; + + interface IFaxDoc + { + CONST_VTBL struct IFaxDocVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxDoc_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxDoc_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxDoc_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxDoc_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxDoc_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxDoc_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxDoc_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxDoc_get_FileName(This,pVal) \ + ( (This)->lpVtbl -> get_FileName(This,pVal) ) + +#define IFaxDoc_put_FileName(This,newVal) \ + ( (This)->lpVtbl -> put_FileName(This,newVal) ) + +#define IFaxDoc_get_CoverpageName(This,pVal) \ + ( (This)->lpVtbl -> get_CoverpageName(This,pVal) ) + +#define IFaxDoc_put_CoverpageName(This,newVal) \ + ( (This)->lpVtbl -> put_CoverpageName(This,newVal) ) + +#define IFaxDoc_get_SendCoverpage(This,pVal) \ + ( (This)->lpVtbl -> get_SendCoverpage(This,pVal) ) + +#define IFaxDoc_put_SendCoverpage(This,newVal) \ + ( (This)->lpVtbl -> put_SendCoverpage(This,newVal) ) + +#define IFaxDoc_get_ServerCoverpage(This,pVal) \ + ( (This)->lpVtbl -> get_ServerCoverpage(This,pVal) ) + +#define IFaxDoc_put_ServerCoverpage(This,newVal) \ + ( (This)->lpVtbl -> put_ServerCoverpage(This,newVal) ) + +#define IFaxDoc_get_DiscountSend(This,pVal) \ + ( (This)->lpVtbl -> get_DiscountSend(This,pVal) ) + +#define IFaxDoc_put_DiscountSend(This,newVal) \ + ( (This)->lpVtbl -> put_DiscountSend(This,newVal) ) + +#define IFaxDoc_get_RecipientName(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientName(This,pVal) ) + +#define IFaxDoc_put_RecipientName(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientName(This,newVal) ) + +#define IFaxDoc_get_RecipientCompany(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientCompany(This,pVal) ) + +#define IFaxDoc_put_RecipientCompany(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientCompany(This,newVal) ) + +#define IFaxDoc_get_RecipientAddress(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientAddress(This,pVal) ) + +#define IFaxDoc_put_RecipientAddress(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientAddress(This,newVal) ) + +#define IFaxDoc_get_RecipientCity(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientCity(This,pVal) ) + +#define IFaxDoc_put_RecipientCity(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientCity(This,newVal) ) + +#define IFaxDoc_get_RecipientState(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientState(This,pVal) ) + +#define IFaxDoc_put_RecipientState(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientState(This,newVal) ) + +#define IFaxDoc_get_RecipientZip(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientZip(This,pVal) ) + +#define IFaxDoc_put_RecipientZip(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientZip(This,newVal) ) + +#define IFaxDoc_get_RecipientCountry(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientCountry(This,pVal) ) + +#define IFaxDoc_put_RecipientCountry(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientCountry(This,newVal) ) + +#define IFaxDoc_get_RecipientTitle(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientTitle(This,pVal) ) + +#define IFaxDoc_put_RecipientTitle(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientTitle(This,newVal) ) + +#define IFaxDoc_get_RecipientDepartment(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientDepartment(This,pVal) ) + +#define IFaxDoc_put_RecipientDepartment(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientDepartment(This,newVal) ) + +#define IFaxDoc_get_RecipientOffice(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientOffice(This,pVal) ) + +#define IFaxDoc_put_RecipientOffice(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientOffice(This,newVal) ) + +#define IFaxDoc_get_RecipientHomePhone(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientHomePhone(This,pVal) ) + +#define IFaxDoc_put_RecipientHomePhone(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientHomePhone(This,newVal) ) + +#define IFaxDoc_get_RecipientOfficePhone(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientOfficePhone(This,pVal) ) + +#define IFaxDoc_put_RecipientOfficePhone(This,newVal) \ + ( (This)->lpVtbl -> put_RecipientOfficePhone(This,newVal) ) + +#define IFaxDoc_get_SenderName(This,pVal) \ + ( (This)->lpVtbl -> get_SenderName(This,pVal) ) + +#define IFaxDoc_put_SenderName(This,newVal) \ + ( (This)->lpVtbl -> put_SenderName(This,newVal) ) + +#define IFaxDoc_get_SenderCompany(This,pVal) \ + ( (This)->lpVtbl -> get_SenderCompany(This,pVal) ) + +#define IFaxDoc_put_SenderCompany(This,newVal) \ + ( (This)->lpVtbl -> put_SenderCompany(This,newVal) ) + +#define IFaxDoc_get_SenderAddress(This,pVal) \ + ( (This)->lpVtbl -> get_SenderAddress(This,pVal) ) + +#define IFaxDoc_put_SenderAddress(This,newVal) \ + ( (This)->lpVtbl -> put_SenderAddress(This,newVal) ) + +#define IFaxDoc_get_SenderTitle(This,pVal) \ + ( (This)->lpVtbl -> get_SenderTitle(This,pVal) ) + +#define IFaxDoc_put_SenderTitle(This,newVal) \ + ( (This)->lpVtbl -> put_SenderTitle(This,newVal) ) + +#define IFaxDoc_get_SenderDepartment(This,pVal) \ + ( (This)->lpVtbl -> get_SenderDepartment(This,pVal) ) + +#define IFaxDoc_put_SenderDepartment(This,newVal) \ + ( (This)->lpVtbl -> put_SenderDepartment(This,newVal) ) + +#define IFaxDoc_get_SenderOffice(This,pVal) \ + ( (This)->lpVtbl -> get_SenderOffice(This,pVal) ) + +#define IFaxDoc_put_SenderOffice(This,newVal) \ + ( (This)->lpVtbl -> put_SenderOffice(This,newVal) ) + +#define IFaxDoc_get_SenderHomePhone(This,pVal) \ + ( (This)->lpVtbl -> get_SenderHomePhone(This,pVal) ) + +#define IFaxDoc_put_SenderHomePhone(This,newVal) \ + ( (This)->lpVtbl -> put_SenderHomePhone(This,newVal) ) + +#define IFaxDoc_get_SenderOfficePhone(This,pVal) \ + ( (This)->lpVtbl -> get_SenderOfficePhone(This,pVal) ) + +#define IFaxDoc_put_SenderOfficePhone(This,newVal) \ + ( (This)->lpVtbl -> put_SenderOfficePhone(This,newVal) ) + +#define IFaxDoc_get_CoverpageNote(This,pVal) \ + ( (This)->lpVtbl -> get_CoverpageNote(This,pVal) ) + +#define IFaxDoc_put_CoverpageNote(This,newVal) \ + ( (This)->lpVtbl -> put_CoverpageNote(This,newVal) ) + +#define IFaxDoc_get_CoverpageSubject(This,pVal) \ + ( (This)->lpVtbl -> get_CoverpageSubject(This,pVal) ) + +#define IFaxDoc_put_CoverpageSubject(This,newVal) \ + ( (This)->lpVtbl -> put_CoverpageSubject(This,newVal) ) + +#define IFaxDoc_get_Tsid(This,pVal) \ + ( (This)->lpVtbl -> get_Tsid(This,pVal) ) + +#define IFaxDoc_put_Tsid(This,newVal) \ + ( (This)->lpVtbl -> put_Tsid(This,newVal) ) + +#define IFaxDoc_get_BillingCode(This,pVal) \ + ( (This)->lpVtbl -> get_BillingCode(This,pVal) ) + +#define IFaxDoc_put_BillingCode(This,newVal) \ + ( (This)->lpVtbl -> put_BillingCode(This,newVal) ) + +#define IFaxDoc_get_EmailAddress(This,pVal) \ + ( (This)->lpVtbl -> get_EmailAddress(This,pVal) ) + +#define IFaxDoc_put_EmailAddress(This,newVal) \ + ( (This)->lpVtbl -> put_EmailAddress(This,newVal) ) + +#define IFaxDoc_get_DisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_DisplayName(This,pVal) ) + +#define IFaxDoc_put_DisplayName(This,newVal) \ + ( (This)->lpVtbl -> put_DisplayName(This,newVal) ) + +#define IFaxDoc_Send(This,pVal) \ + ( (This)->lpVtbl -> Send(This,pVal) ) + +#define IFaxDoc_get_FaxNumber(This,pVal) \ + ( (This)->lpVtbl -> get_FaxNumber(This,pVal) ) + +#define IFaxDoc_put_FaxNumber(This,newVal) \ + ( (This)->lpVtbl -> put_FaxNumber(This,newVal) ) + +#define IFaxDoc_putref_ConnectionObject(This,newVal) \ + ( (This)->lpVtbl -> putref_ConnectionObject(This,newVal) ) + +#define IFaxDoc_get_CallHandle(This,pVal) \ + ( (This)->lpVtbl -> get_CallHandle(This,pVal) ) + +#define IFaxDoc_put_CallHandle(This,newVal) \ + ( (This)->lpVtbl -> put_CallHandle(This,newVal) ) + +#define IFaxDoc_get_SenderFax(This,pVal) \ + ( (This)->lpVtbl -> get_SenderFax(This,pVal) ) + +#define IFaxDoc_put_SenderFax(This,newVal) \ + ( (This)->lpVtbl -> put_SenderFax(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxDoc_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxJobs_INTERFACE_DEFINED__ +#define __IFaxJobs_INTERFACE_DEFINED__ + +/* interface IFaxJobs */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxJobs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("55DABFD3-5C9E-11D1-B791-000000000000") + IFaxJobs : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + long Index, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxJobsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxJobs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxJobs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxJobs * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxJobs * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxJobs * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxJobs * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxJobs * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxJobs, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxJobs * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxJobs, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxJobs * This, + long Index, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + END_INTERFACE + } IFaxJobsVtbl; + + interface IFaxJobs + { + CONST_VTBL struct IFaxJobsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxJobs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxJobs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxJobs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxJobs_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxJobs_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxJobs_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxJobs_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxJobs_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IFaxJobs_get_Item(This,Index,pVal) \ + ( (This)->lpVtbl -> get_Item(This,Index,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxJobs_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxJob_INTERFACE_DEFINED__ +#define __IFaxJob_INTERFACE_DEFINED__ + +/* interface IFaxJob */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxJob; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("55DABFD5-5C9E-11D1-B791-000000000000") + IFaxJob : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_JobId( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UserName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_QueueStatus( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceStatus( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PageCount( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FaxNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RecipientName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Tsid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderCompany( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderDept( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BillingCode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscountSend( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetStatus( + long Command) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxJobVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxJob * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxJob * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxJob * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxJob * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxJob * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxJob, get_JobId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_JobId )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_Type) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_UserName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserName )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_QueueStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QueueStatus )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_DeviceStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceStatus )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_PageCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PageCount )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_FaxNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FaxNumber )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_RecipientName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RecipientName )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_Tsid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tsid )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_SenderName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderName )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_SenderCompany) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderCompany )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_SenderDept) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderDept )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_BillingCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BillingCode )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, get_DiscountSend) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscountSend )( + __RPC__in IFaxJob * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IFaxJob, SetStatus) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetStatus )( + __RPC__in IFaxJob * This, + long Command); + + DECLSPEC_XFGVIRT(IFaxJob, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxJob * This); + + END_INTERFACE + } IFaxJobVtbl; + + interface IFaxJob + { + CONST_VTBL struct IFaxJobVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxJob_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxJob_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxJob_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxJob_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxJob_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxJob_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxJob_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxJob_get_JobId(This,pVal) \ + ( (This)->lpVtbl -> get_JobId(This,pVal) ) + +#define IFaxJob_get_Type(This,pVal) \ + ( (This)->lpVtbl -> get_Type(This,pVal) ) + +#define IFaxJob_get_UserName(This,pVal) \ + ( (This)->lpVtbl -> get_UserName(This,pVal) ) + +#define IFaxJob_get_QueueStatus(This,pVal) \ + ( (This)->lpVtbl -> get_QueueStatus(This,pVal) ) + +#define IFaxJob_get_DeviceStatus(This,pVal) \ + ( (This)->lpVtbl -> get_DeviceStatus(This,pVal) ) + +#define IFaxJob_get_PageCount(This,pVal) \ + ( (This)->lpVtbl -> get_PageCount(This,pVal) ) + +#define IFaxJob_get_FaxNumber(This,pVal) \ + ( (This)->lpVtbl -> get_FaxNumber(This,pVal) ) + +#define IFaxJob_get_RecipientName(This,pVal) \ + ( (This)->lpVtbl -> get_RecipientName(This,pVal) ) + +#define IFaxJob_get_Tsid(This,pVal) \ + ( (This)->lpVtbl -> get_Tsid(This,pVal) ) + +#define IFaxJob_get_SenderName(This,pVal) \ + ( (This)->lpVtbl -> get_SenderName(This,pVal) ) + +#define IFaxJob_get_SenderCompany(This,pVal) \ + ( (This)->lpVtbl -> get_SenderCompany(This,pVal) ) + +#define IFaxJob_get_SenderDept(This,pVal) \ + ( (This)->lpVtbl -> get_SenderDept(This,pVal) ) + +#define IFaxJob_get_BillingCode(This,pVal) \ + ( (This)->lpVtbl -> get_BillingCode(This,pVal) ) + +#define IFaxJob_get_DisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_DisplayName(This,pVal) ) + +#define IFaxJob_get_DiscountSend(This,pVal) \ + ( (This)->lpVtbl -> get_DiscountSend(This,pVal) ) + +#define IFaxJob_SetStatus(This,Command) \ + ( (This)->lpVtbl -> SetStatus(This,Command) ) + +#define IFaxJob_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxJob_INTERFACE_DEFINED__ */ + + + +#ifndef __FAXCOMLib_LIBRARY_DEFINED__ +#define __FAXCOMLib_LIBRARY_DEFINED__ + +/* library FAXCOMLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_FAXCOMLib; + +EXTERN_C const CLSID CLSID_FaxTiff; + +#ifdef __cplusplus + +class DECLSPEC_UUID("87099231-C7AF-11D0-B225-00C04FB6C2F5") +FaxTiff; +#endif + +EXTERN_C const CLSID CLSID_FaxServer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("D73733C8-CC80-11D0-B225-00C04FB6C2F5") +FaxServer; +#endif + +EXTERN_C const CLSID CLSID_FaxPort; + +#ifdef __cplusplus + +class DECLSPEC_UUID("D73733CD-CC80-11D0-B225-00C04FB6C2F5") +FaxPort; +#endif + +EXTERN_C const CLSID CLSID_FaxPorts; + +#ifdef __cplusplus + +class DECLSPEC_UUID("D73733D6-CC80-11D0-B225-00C04FB6C2F5") +FaxPorts; +#endif + +EXTERN_C const CLSID CLSID_FaxRoutingMethod; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2199F5F4-CEFC-11D0-A341-0000F800E68D") +FaxRoutingMethod; +#endif + +EXTERN_C const CLSID CLSID_FaxRoutingMethods; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2199F5F6-CEFC-11D0-A341-0000F800E68D") +FaxRoutingMethods; +#endif + +EXTERN_C const CLSID CLSID_FaxStatus; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8B97E606-D054-11D0-B226-00C04FB6C2F5") +FaxStatus; +#endif + +EXTERN_C const CLSID CLSID_FaxDoc; + +#ifdef __cplusplus + +class DECLSPEC_UUID("FA21F4C6-5C4C-11D1-83CF-00C04FB6E984") +FaxDoc; +#endif + +EXTERN_C const CLSID CLSID_FaxJobs; + +#ifdef __cplusplus + +class DECLSPEC_UUID("55DABFD4-5C9E-11D1-B791-000000000000") +FaxJobs; +#endif + +EXTERN_C const CLSID CLSID_FaxJob; + +#ifdef __cplusplus + +class DECLSPEC_UUID("55DABFD6-5C9E-11D1-B791-000000000000") +FaxJob; +#endif +#endif /* __FAXCOMLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_faxcom_0000_0011 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_faxcom_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_faxcom_0000_0011_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxComEx.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxComEx.h new file mode 100644 index 0000000000000000000000000000000000000000..a292250693a26e58b0abe9a9c576a8f5e2ed7a33 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxComEx.h @@ -0,0 +1,17089 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __faxcomex_h__ +#define __faxcomex_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFaxJobStatus_FWD_DEFINED__ +#define __IFaxJobStatus_FWD_DEFINED__ +typedef interface IFaxJobStatus IFaxJobStatus; + +#endif /* __IFaxJobStatus_FWD_DEFINED__ */ + + +#ifndef __IFaxServer_FWD_DEFINED__ +#define __IFaxServer_FWD_DEFINED__ +typedef interface IFaxServer IFaxServer; + +#endif /* __IFaxServer_FWD_DEFINED__ */ + + +#ifndef __IFaxDeviceProviders_FWD_DEFINED__ +#define __IFaxDeviceProviders_FWD_DEFINED__ +typedef interface IFaxDeviceProviders IFaxDeviceProviders; + +#endif /* __IFaxDeviceProviders_FWD_DEFINED__ */ + + +#ifndef __IFaxDevices_FWD_DEFINED__ +#define __IFaxDevices_FWD_DEFINED__ +typedef interface IFaxDevices IFaxDevices; + +#endif /* __IFaxDevices_FWD_DEFINED__ */ + + +#ifndef __IFaxInboundRouting_FWD_DEFINED__ +#define __IFaxInboundRouting_FWD_DEFINED__ +typedef interface IFaxInboundRouting IFaxInboundRouting; + +#endif /* __IFaxInboundRouting_FWD_DEFINED__ */ + + +#ifndef __IFaxFolders_FWD_DEFINED__ +#define __IFaxFolders_FWD_DEFINED__ +typedef interface IFaxFolders IFaxFolders; + +#endif /* __IFaxFolders_FWD_DEFINED__ */ + + +#ifndef __IFaxLoggingOptions_FWD_DEFINED__ +#define __IFaxLoggingOptions_FWD_DEFINED__ +typedef interface IFaxLoggingOptions IFaxLoggingOptions; + +#endif /* __IFaxLoggingOptions_FWD_DEFINED__ */ + + +#ifndef __IFaxActivity_FWD_DEFINED__ +#define __IFaxActivity_FWD_DEFINED__ +typedef interface IFaxActivity IFaxActivity; + +#endif /* __IFaxActivity_FWD_DEFINED__ */ + + +#ifndef __IFaxOutboundRouting_FWD_DEFINED__ +#define __IFaxOutboundRouting_FWD_DEFINED__ +typedef interface IFaxOutboundRouting IFaxOutboundRouting; + +#endif /* __IFaxOutboundRouting_FWD_DEFINED__ */ + + +#ifndef __IFaxReceiptOptions_FWD_DEFINED__ +#define __IFaxReceiptOptions_FWD_DEFINED__ +typedef interface IFaxReceiptOptions IFaxReceiptOptions; + +#endif /* __IFaxReceiptOptions_FWD_DEFINED__ */ + + +#ifndef __IFaxSecurity_FWD_DEFINED__ +#define __IFaxSecurity_FWD_DEFINED__ +typedef interface IFaxSecurity IFaxSecurity; + +#endif /* __IFaxSecurity_FWD_DEFINED__ */ + + +#ifndef __IFaxDocument_FWD_DEFINED__ +#define __IFaxDocument_FWD_DEFINED__ +typedef interface IFaxDocument IFaxDocument; + +#endif /* __IFaxDocument_FWD_DEFINED__ */ + + +#ifndef __IFaxSender_FWD_DEFINED__ +#define __IFaxSender_FWD_DEFINED__ +typedef interface IFaxSender IFaxSender; + +#endif /* __IFaxSender_FWD_DEFINED__ */ + + +#ifndef __IFaxRecipient_FWD_DEFINED__ +#define __IFaxRecipient_FWD_DEFINED__ +typedef interface IFaxRecipient IFaxRecipient; + +#endif /* __IFaxRecipient_FWD_DEFINED__ */ + + +#ifndef __IFaxRecipients_FWD_DEFINED__ +#define __IFaxRecipients_FWD_DEFINED__ +typedef interface IFaxRecipients IFaxRecipients; + +#endif /* __IFaxRecipients_FWD_DEFINED__ */ + + +#ifndef __IFaxIncomingArchive_FWD_DEFINED__ +#define __IFaxIncomingArchive_FWD_DEFINED__ +typedef interface IFaxIncomingArchive IFaxIncomingArchive; + +#endif /* __IFaxIncomingArchive_FWD_DEFINED__ */ + + +#ifndef __IFaxIncomingQueue_FWD_DEFINED__ +#define __IFaxIncomingQueue_FWD_DEFINED__ +typedef interface IFaxIncomingQueue IFaxIncomingQueue; + +#endif /* __IFaxIncomingQueue_FWD_DEFINED__ */ + + +#ifndef __IFaxOutgoingArchive_FWD_DEFINED__ +#define __IFaxOutgoingArchive_FWD_DEFINED__ +typedef interface IFaxOutgoingArchive IFaxOutgoingArchive; + +#endif /* __IFaxOutgoingArchive_FWD_DEFINED__ */ + + +#ifndef __IFaxOutgoingQueue_FWD_DEFINED__ +#define __IFaxOutgoingQueue_FWD_DEFINED__ +typedef interface IFaxOutgoingQueue IFaxOutgoingQueue; + +#endif /* __IFaxOutgoingQueue_FWD_DEFINED__ */ + + +#ifndef __IFaxIncomingMessageIterator_FWD_DEFINED__ +#define __IFaxIncomingMessageIterator_FWD_DEFINED__ +typedef interface IFaxIncomingMessageIterator IFaxIncomingMessageIterator; + +#endif /* __IFaxIncomingMessageIterator_FWD_DEFINED__ */ + + +#ifndef __IFaxIncomingMessage_FWD_DEFINED__ +#define __IFaxIncomingMessage_FWD_DEFINED__ +typedef interface IFaxIncomingMessage IFaxIncomingMessage; + +#endif /* __IFaxIncomingMessage_FWD_DEFINED__ */ + + +#ifndef __IFaxOutgoingJobs_FWD_DEFINED__ +#define __IFaxOutgoingJobs_FWD_DEFINED__ +typedef interface IFaxOutgoingJobs IFaxOutgoingJobs; + +#endif /* __IFaxOutgoingJobs_FWD_DEFINED__ */ + + +#ifndef __IFaxOutgoingJob_FWD_DEFINED__ +#define __IFaxOutgoingJob_FWD_DEFINED__ +typedef interface IFaxOutgoingJob IFaxOutgoingJob; + +#endif /* __IFaxOutgoingJob_FWD_DEFINED__ */ + + +#ifndef __IFaxOutgoingMessageIterator_FWD_DEFINED__ +#define __IFaxOutgoingMessageIterator_FWD_DEFINED__ +typedef interface IFaxOutgoingMessageIterator IFaxOutgoingMessageIterator; + +#endif /* __IFaxOutgoingMessageIterator_FWD_DEFINED__ */ + + +#ifndef __IFaxOutgoingMessage_FWD_DEFINED__ +#define __IFaxOutgoingMessage_FWD_DEFINED__ +typedef interface IFaxOutgoingMessage IFaxOutgoingMessage; + +#endif /* __IFaxOutgoingMessage_FWD_DEFINED__ */ + + +#ifndef __IFaxIncomingJobs_FWD_DEFINED__ +#define __IFaxIncomingJobs_FWD_DEFINED__ +typedef interface IFaxIncomingJobs IFaxIncomingJobs; + +#endif /* __IFaxIncomingJobs_FWD_DEFINED__ */ + + +#ifndef __IFaxIncomingJob_FWD_DEFINED__ +#define __IFaxIncomingJob_FWD_DEFINED__ +typedef interface IFaxIncomingJob IFaxIncomingJob; + +#endif /* __IFaxIncomingJob_FWD_DEFINED__ */ + + +#ifndef __IFaxDeviceProvider_FWD_DEFINED__ +#define __IFaxDeviceProvider_FWD_DEFINED__ +typedef interface IFaxDeviceProvider IFaxDeviceProvider; + +#endif /* __IFaxDeviceProvider_FWD_DEFINED__ */ + + +#ifndef __IFaxDevice_FWD_DEFINED__ +#define __IFaxDevice_FWD_DEFINED__ +typedef interface IFaxDevice IFaxDevice; + +#endif /* __IFaxDevice_FWD_DEFINED__ */ + + +#ifndef __IFaxActivityLogging_FWD_DEFINED__ +#define __IFaxActivityLogging_FWD_DEFINED__ +typedef interface IFaxActivityLogging IFaxActivityLogging; + +#endif /* __IFaxActivityLogging_FWD_DEFINED__ */ + + +#ifndef __IFaxEventLogging_FWD_DEFINED__ +#define __IFaxEventLogging_FWD_DEFINED__ +typedef interface IFaxEventLogging IFaxEventLogging; + +#endif /* __IFaxEventLogging_FWD_DEFINED__ */ + + +#ifndef __IFaxOutboundRoutingGroups_FWD_DEFINED__ +#define __IFaxOutboundRoutingGroups_FWD_DEFINED__ +typedef interface IFaxOutboundRoutingGroups IFaxOutboundRoutingGroups; + +#endif /* __IFaxOutboundRoutingGroups_FWD_DEFINED__ */ + + +#ifndef __IFaxOutboundRoutingGroup_FWD_DEFINED__ +#define __IFaxOutboundRoutingGroup_FWD_DEFINED__ +typedef interface IFaxOutboundRoutingGroup IFaxOutboundRoutingGroup; + +#endif /* __IFaxOutboundRoutingGroup_FWD_DEFINED__ */ + + +#ifndef __IFaxDeviceIds_FWD_DEFINED__ +#define __IFaxDeviceIds_FWD_DEFINED__ +typedef interface IFaxDeviceIds IFaxDeviceIds; + +#endif /* __IFaxDeviceIds_FWD_DEFINED__ */ + + +#ifndef __IFaxOutboundRoutingRules_FWD_DEFINED__ +#define __IFaxOutboundRoutingRules_FWD_DEFINED__ +typedef interface IFaxOutboundRoutingRules IFaxOutboundRoutingRules; + +#endif /* __IFaxOutboundRoutingRules_FWD_DEFINED__ */ + + +#ifndef __IFaxOutboundRoutingRule_FWD_DEFINED__ +#define __IFaxOutboundRoutingRule_FWD_DEFINED__ +typedef interface IFaxOutboundRoutingRule IFaxOutboundRoutingRule; + +#endif /* __IFaxOutboundRoutingRule_FWD_DEFINED__ */ + + +#ifndef __IFaxInboundRoutingExtensions_FWD_DEFINED__ +#define __IFaxInboundRoutingExtensions_FWD_DEFINED__ +typedef interface IFaxInboundRoutingExtensions IFaxInboundRoutingExtensions; + +#endif /* __IFaxInboundRoutingExtensions_FWD_DEFINED__ */ + + +#ifndef __IFaxInboundRoutingExtension_FWD_DEFINED__ +#define __IFaxInboundRoutingExtension_FWD_DEFINED__ +typedef interface IFaxInboundRoutingExtension IFaxInboundRoutingExtension; + +#endif /* __IFaxInboundRoutingExtension_FWD_DEFINED__ */ + + +#ifndef __IFaxInboundRoutingMethods_FWD_DEFINED__ +#define __IFaxInboundRoutingMethods_FWD_DEFINED__ +typedef interface IFaxInboundRoutingMethods IFaxInboundRoutingMethods; + +#endif /* __IFaxInboundRoutingMethods_FWD_DEFINED__ */ + + +#ifndef __IFaxInboundRoutingMethod_FWD_DEFINED__ +#define __IFaxInboundRoutingMethod_FWD_DEFINED__ +typedef interface IFaxInboundRoutingMethod IFaxInboundRoutingMethod; + +#endif /* __IFaxInboundRoutingMethod_FWD_DEFINED__ */ + + +#ifndef __IFaxDocument2_FWD_DEFINED__ +#define __IFaxDocument2_FWD_DEFINED__ +typedef interface IFaxDocument2 IFaxDocument2; + +#endif /* __IFaxDocument2_FWD_DEFINED__ */ + + +#ifndef __IFaxConfiguration_FWD_DEFINED__ +#define __IFaxConfiguration_FWD_DEFINED__ +typedef interface IFaxConfiguration IFaxConfiguration; + +#endif /* __IFaxConfiguration_FWD_DEFINED__ */ + + +#ifndef __IFaxServer2_FWD_DEFINED__ +#define __IFaxServer2_FWD_DEFINED__ +typedef interface IFaxServer2 IFaxServer2; + +#endif /* __IFaxServer2_FWD_DEFINED__ */ + + +#ifndef __IFaxAccountSet_FWD_DEFINED__ +#define __IFaxAccountSet_FWD_DEFINED__ +typedef interface IFaxAccountSet IFaxAccountSet; + +#endif /* __IFaxAccountSet_FWD_DEFINED__ */ + + +#ifndef __IFaxAccounts_FWD_DEFINED__ +#define __IFaxAccounts_FWD_DEFINED__ +typedef interface IFaxAccounts IFaxAccounts; + +#endif /* __IFaxAccounts_FWD_DEFINED__ */ + + +#ifndef __IFaxAccount_FWD_DEFINED__ +#define __IFaxAccount_FWD_DEFINED__ +typedef interface IFaxAccount IFaxAccount; + +#endif /* __IFaxAccount_FWD_DEFINED__ */ + + +#ifndef __IFaxOutgoingJob2_FWD_DEFINED__ +#define __IFaxOutgoingJob2_FWD_DEFINED__ +typedef interface IFaxOutgoingJob2 IFaxOutgoingJob2; + +#endif /* __IFaxOutgoingJob2_FWD_DEFINED__ */ + + +#ifndef __IFaxAccountFolders_FWD_DEFINED__ +#define __IFaxAccountFolders_FWD_DEFINED__ +typedef interface IFaxAccountFolders IFaxAccountFolders; + +#endif /* __IFaxAccountFolders_FWD_DEFINED__ */ + + +#ifndef __IFaxAccountIncomingQueue_FWD_DEFINED__ +#define __IFaxAccountIncomingQueue_FWD_DEFINED__ +typedef interface IFaxAccountIncomingQueue IFaxAccountIncomingQueue; + +#endif /* __IFaxAccountIncomingQueue_FWD_DEFINED__ */ + + +#ifndef __IFaxAccountOutgoingQueue_FWD_DEFINED__ +#define __IFaxAccountOutgoingQueue_FWD_DEFINED__ +typedef interface IFaxAccountOutgoingQueue IFaxAccountOutgoingQueue; + +#endif /* __IFaxAccountOutgoingQueue_FWD_DEFINED__ */ + + +#ifndef __IFaxOutgoingMessage2_FWD_DEFINED__ +#define __IFaxOutgoingMessage2_FWD_DEFINED__ +typedef interface IFaxOutgoingMessage2 IFaxOutgoingMessage2; + +#endif /* __IFaxOutgoingMessage2_FWD_DEFINED__ */ + + +#ifndef __IFaxAccountIncomingArchive_FWD_DEFINED__ +#define __IFaxAccountIncomingArchive_FWD_DEFINED__ +typedef interface IFaxAccountIncomingArchive IFaxAccountIncomingArchive; + +#endif /* __IFaxAccountIncomingArchive_FWD_DEFINED__ */ + + +#ifndef __IFaxAccountOutgoingArchive_FWD_DEFINED__ +#define __IFaxAccountOutgoingArchive_FWD_DEFINED__ +typedef interface IFaxAccountOutgoingArchive IFaxAccountOutgoingArchive; + +#endif /* __IFaxAccountOutgoingArchive_FWD_DEFINED__ */ + + +#ifndef __IFaxSecurity2_FWD_DEFINED__ +#define __IFaxSecurity2_FWD_DEFINED__ +typedef interface IFaxSecurity2 IFaxSecurity2; + +#endif /* __IFaxSecurity2_FWD_DEFINED__ */ + + +#ifndef __IFaxIncomingMessage2_FWD_DEFINED__ +#define __IFaxIncomingMessage2_FWD_DEFINED__ +typedef interface IFaxIncomingMessage2 IFaxIncomingMessage2; + +#endif /* __IFaxIncomingMessage2_FWD_DEFINED__ */ + + +#ifndef __IFaxServerNotify_FWD_DEFINED__ +#define __IFaxServerNotify_FWD_DEFINED__ +typedef interface IFaxServerNotify IFaxServerNotify; + +#endif /* __IFaxServerNotify_FWD_DEFINED__ */ + + +#ifndef ___IFaxServerNotify2_FWD_DEFINED__ +#define ___IFaxServerNotify2_FWD_DEFINED__ +typedef interface _IFaxServerNotify2 _IFaxServerNotify2; + +#endif /* ___IFaxServerNotify2_FWD_DEFINED__ */ + + +#ifndef __IFaxServerNotify2_FWD_DEFINED__ +#define __IFaxServerNotify2_FWD_DEFINED__ +typedef interface IFaxServerNotify2 IFaxServerNotify2; + +#endif /* __IFaxServerNotify2_FWD_DEFINED__ */ + + +#ifndef ___IFaxAccountNotify_FWD_DEFINED__ +#define ___IFaxAccountNotify_FWD_DEFINED__ +typedef interface _IFaxAccountNotify _IFaxAccountNotify; + +#endif /* ___IFaxAccountNotify_FWD_DEFINED__ */ + + +#ifndef __IFaxAccountNotify_FWD_DEFINED__ +#define __IFaxAccountNotify_FWD_DEFINED__ +typedef interface IFaxAccountNotify IFaxAccountNotify; + +#endif /* __IFaxAccountNotify_FWD_DEFINED__ */ + + +#ifndef __FaxServer_FWD_DEFINED__ +#define __FaxServer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxServer FaxServer; +#else +typedef struct FaxServer FaxServer; +#endif /* __cplusplus */ + +#endif /* __FaxServer_FWD_DEFINED__ */ + + +#ifndef __FaxDeviceProviders_FWD_DEFINED__ +#define __FaxDeviceProviders_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxDeviceProviders FaxDeviceProviders; +#else +typedef struct FaxDeviceProviders FaxDeviceProviders; +#endif /* __cplusplus */ + +#endif /* __FaxDeviceProviders_FWD_DEFINED__ */ + + +#ifndef __FaxDevices_FWD_DEFINED__ +#define __FaxDevices_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxDevices FaxDevices; +#else +typedef struct FaxDevices FaxDevices; +#endif /* __cplusplus */ + +#endif /* __FaxDevices_FWD_DEFINED__ */ + + +#ifndef __FaxInboundRouting_FWD_DEFINED__ +#define __FaxInboundRouting_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxInboundRouting FaxInboundRouting; +#else +typedef struct FaxInboundRouting FaxInboundRouting; +#endif /* __cplusplus */ + +#endif /* __FaxInboundRouting_FWD_DEFINED__ */ + + +#ifndef __FaxFolders_FWD_DEFINED__ +#define __FaxFolders_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxFolders FaxFolders; +#else +typedef struct FaxFolders FaxFolders; +#endif /* __cplusplus */ + +#endif /* __FaxFolders_FWD_DEFINED__ */ + + +#ifndef __FaxLoggingOptions_FWD_DEFINED__ +#define __FaxLoggingOptions_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxLoggingOptions FaxLoggingOptions; +#else +typedef struct FaxLoggingOptions FaxLoggingOptions; +#endif /* __cplusplus */ + +#endif /* __FaxLoggingOptions_FWD_DEFINED__ */ + + +#ifndef __FaxActivity_FWD_DEFINED__ +#define __FaxActivity_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxActivity FaxActivity; +#else +typedef struct FaxActivity FaxActivity; +#endif /* __cplusplus */ + +#endif /* __FaxActivity_FWD_DEFINED__ */ + + +#ifndef __FaxOutboundRouting_FWD_DEFINED__ +#define __FaxOutboundRouting_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutboundRouting FaxOutboundRouting; +#else +typedef struct FaxOutboundRouting FaxOutboundRouting; +#endif /* __cplusplus */ + +#endif /* __FaxOutboundRouting_FWD_DEFINED__ */ + + +#ifndef __FaxReceiptOptions_FWD_DEFINED__ +#define __FaxReceiptOptions_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxReceiptOptions FaxReceiptOptions; +#else +typedef struct FaxReceiptOptions FaxReceiptOptions; +#endif /* __cplusplus */ + +#endif /* __FaxReceiptOptions_FWD_DEFINED__ */ + + +#ifndef __FaxSecurity_FWD_DEFINED__ +#define __FaxSecurity_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxSecurity FaxSecurity; +#else +typedef struct FaxSecurity FaxSecurity; +#endif /* __cplusplus */ + +#endif /* __FaxSecurity_FWD_DEFINED__ */ + + +#ifndef __FaxDocument_FWD_DEFINED__ +#define __FaxDocument_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxDocument FaxDocument; +#else +typedef struct FaxDocument FaxDocument; +#endif /* __cplusplus */ + +#endif /* __FaxDocument_FWD_DEFINED__ */ + + +#ifndef __FaxSender_FWD_DEFINED__ +#define __FaxSender_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxSender FaxSender; +#else +typedef struct FaxSender FaxSender; +#endif /* __cplusplus */ + +#endif /* __FaxSender_FWD_DEFINED__ */ + + +#ifndef __FaxRecipients_FWD_DEFINED__ +#define __FaxRecipients_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxRecipients FaxRecipients; +#else +typedef struct FaxRecipients FaxRecipients; +#endif /* __cplusplus */ + +#endif /* __FaxRecipients_FWD_DEFINED__ */ + + +#ifndef __FaxIncomingArchive_FWD_DEFINED__ +#define __FaxIncomingArchive_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxIncomingArchive FaxIncomingArchive; +#else +typedef struct FaxIncomingArchive FaxIncomingArchive; +#endif /* __cplusplus */ + +#endif /* __FaxIncomingArchive_FWD_DEFINED__ */ + + +#ifndef __FaxIncomingQueue_FWD_DEFINED__ +#define __FaxIncomingQueue_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxIncomingQueue FaxIncomingQueue; +#else +typedef struct FaxIncomingQueue FaxIncomingQueue; +#endif /* __cplusplus */ + +#endif /* __FaxIncomingQueue_FWD_DEFINED__ */ + + +#ifndef __FaxOutgoingArchive_FWD_DEFINED__ +#define __FaxOutgoingArchive_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutgoingArchive FaxOutgoingArchive; +#else +typedef struct FaxOutgoingArchive FaxOutgoingArchive; +#endif /* __cplusplus */ + +#endif /* __FaxOutgoingArchive_FWD_DEFINED__ */ + + +#ifndef __FaxOutgoingQueue_FWD_DEFINED__ +#define __FaxOutgoingQueue_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutgoingQueue FaxOutgoingQueue; +#else +typedef struct FaxOutgoingQueue FaxOutgoingQueue; +#endif /* __cplusplus */ + +#endif /* __FaxOutgoingQueue_FWD_DEFINED__ */ + + +#ifndef __FaxIncomingMessageIterator_FWD_DEFINED__ +#define __FaxIncomingMessageIterator_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxIncomingMessageIterator FaxIncomingMessageIterator; +#else +typedef struct FaxIncomingMessageIterator FaxIncomingMessageIterator; +#endif /* __cplusplus */ + +#endif /* __FaxIncomingMessageIterator_FWD_DEFINED__ */ + + +#ifndef __FaxIncomingMessage_FWD_DEFINED__ +#define __FaxIncomingMessage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxIncomingMessage FaxIncomingMessage; +#else +typedef struct FaxIncomingMessage FaxIncomingMessage; +#endif /* __cplusplus */ + +#endif /* __FaxIncomingMessage_FWD_DEFINED__ */ + + +#ifndef __FaxOutgoingJobs_FWD_DEFINED__ +#define __FaxOutgoingJobs_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutgoingJobs FaxOutgoingJobs; +#else +typedef struct FaxOutgoingJobs FaxOutgoingJobs; +#endif /* __cplusplus */ + +#endif /* __FaxOutgoingJobs_FWD_DEFINED__ */ + + +#ifndef __FaxOutgoingJob_FWD_DEFINED__ +#define __FaxOutgoingJob_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutgoingJob FaxOutgoingJob; +#else +typedef struct FaxOutgoingJob FaxOutgoingJob; +#endif /* __cplusplus */ + +#endif /* __FaxOutgoingJob_FWD_DEFINED__ */ + + +#ifndef __FaxOutgoingMessageIterator_FWD_DEFINED__ +#define __FaxOutgoingMessageIterator_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutgoingMessageIterator FaxOutgoingMessageIterator; +#else +typedef struct FaxOutgoingMessageIterator FaxOutgoingMessageIterator; +#endif /* __cplusplus */ + +#endif /* __FaxOutgoingMessageIterator_FWD_DEFINED__ */ + + +#ifndef __FaxOutgoingMessage_FWD_DEFINED__ +#define __FaxOutgoingMessage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutgoingMessage FaxOutgoingMessage; +#else +typedef struct FaxOutgoingMessage FaxOutgoingMessage; +#endif /* __cplusplus */ + +#endif /* __FaxOutgoingMessage_FWD_DEFINED__ */ + + +#ifndef __FaxIncomingJobs_FWD_DEFINED__ +#define __FaxIncomingJobs_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxIncomingJobs FaxIncomingJobs; +#else +typedef struct FaxIncomingJobs FaxIncomingJobs; +#endif /* __cplusplus */ + +#endif /* __FaxIncomingJobs_FWD_DEFINED__ */ + + +#ifndef __FaxIncomingJob_FWD_DEFINED__ +#define __FaxIncomingJob_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxIncomingJob FaxIncomingJob; +#else +typedef struct FaxIncomingJob FaxIncomingJob; +#endif /* __cplusplus */ + +#endif /* __FaxIncomingJob_FWD_DEFINED__ */ + + +#ifndef __FaxDeviceProvider_FWD_DEFINED__ +#define __FaxDeviceProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxDeviceProvider FaxDeviceProvider; +#else +typedef struct FaxDeviceProvider FaxDeviceProvider; +#endif /* __cplusplus */ + +#endif /* __FaxDeviceProvider_FWD_DEFINED__ */ + + +#ifndef __FaxDevice_FWD_DEFINED__ +#define __FaxDevice_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxDevice FaxDevice; +#else +typedef struct FaxDevice FaxDevice; +#endif /* __cplusplus */ + +#endif /* __FaxDevice_FWD_DEFINED__ */ + + +#ifndef __FaxActivityLogging_FWD_DEFINED__ +#define __FaxActivityLogging_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxActivityLogging FaxActivityLogging; +#else +typedef struct FaxActivityLogging FaxActivityLogging; +#endif /* __cplusplus */ + +#endif /* __FaxActivityLogging_FWD_DEFINED__ */ + + +#ifndef __FaxEventLogging_FWD_DEFINED__ +#define __FaxEventLogging_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxEventLogging FaxEventLogging; +#else +typedef struct FaxEventLogging FaxEventLogging; +#endif /* __cplusplus */ + +#endif /* __FaxEventLogging_FWD_DEFINED__ */ + + +#ifndef __FaxOutboundRoutingGroups_FWD_DEFINED__ +#define __FaxOutboundRoutingGroups_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutboundRoutingGroups FaxOutboundRoutingGroups; +#else +typedef struct FaxOutboundRoutingGroups FaxOutboundRoutingGroups; +#endif /* __cplusplus */ + +#endif /* __FaxOutboundRoutingGroups_FWD_DEFINED__ */ + + +#ifndef __FaxOutboundRoutingGroup_FWD_DEFINED__ +#define __FaxOutboundRoutingGroup_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutboundRoutingGroup FaxOutboundRoutingGroup; +#else +typedef struct FaxOutboundRoutingGroup FaxOutboundRoutingGroup; +#endif /* __cplusplus */ + +#endif /* __FaxOutboundRoutingGroup_FWD_DEFINED__ */ + + +#ifndef __FaxDeviceIds_FWD_DEFINED__ +#define __FaxDeviceIds_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxDeviceIds FaxDeviceIds; +#else +typedef struct FaxDeviceIds FaxDeviceIds; +#endif /* __cplusplus */ + +#endif /* __FaxDeviceIds_FWD_DEFINED__ */ + + +#ifndef __FaxOutboundRoutingRules_FWD_DEFINED__ +#define __FaxOutboundRoutingRules_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutboundRoutingRules FaxOutboundRoutingRules; +#else +typedef struct FaxOutboundRoutingRules FaxOutboundRoutingRules; +#endif /* __cplusplus */ + +#endif /* __FaxOutboundRoutingRules_FWD_DEFINED__ */ + + +#ifndef __FaxOutboundRoutingRule_FWD_DEFINED__ +#define __FaxOutboundRoutingRule_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxOutboundRoutingRule FaxOutboundRoutingRule; +#else +typedef struct FaxOutboundRoutingRule FaxOutboundRoutingRule; +#endif /* __cplusplus */ + +#endif /* __FaxOutboundRoutingRule_FWD_DEFINED__ */ + + +#ifndef __FaxInboundRoutingExtensions_FWD_DEFINED__ +#define __FaxInboundRoutingExtensions_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxInboundRoutingExtensions FaxInboundRoutingExtensions; +#else +typedef struct FaxInboundRoutingExtensions FaxInboundRoutingExtensions; +#endif /* __cplusplus */ + +#endif /* __FaxInboundRoutingExtensions_FWD_DEFINED__ */ + + +#ifndef __FaxInboundRoutingExtension_FWD_DEFINED__ +#define __FaxInboundRoutingExtension_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxInboundRoutingExtension FaxInboundRoutingExtension; +#else +typedef struct FaxInboundRoutingExtension FaxInboundRoutingExtension; +#endif /* __cplusplus */ + +#endif /* __FaxInboundRoutingExtension_FWD_DEFINED__ */ + + +#ifndef __FaxInboundRoutingMethods_FWD_DEFINED__ +#define __FaxInboundRoutingMethods_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxInboundRoutingMethods FaxInboundRoutingMethods; +#else +typedef struct FaxInboundRoutingMethods FaxInboundRoutingMethods; +#endif /* __cplusplus */ + +#endif /* __FaxInboundRoutingMethods_FWD_DEFINED__ */ + + +#ifndef __FaxInboundRoutingMethod_FWD_DEFINED__ +#define __FaxInboundRoutingMethod_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxInboundRoutingMethod FaxInboundRoutingMethod; +#else +typedef struct FaxInboundRoutingMethod FaxInboundRoutingMethod; +#endif /* __cplusplus */ + +#endif /* __FaxInboundRoutingMethod_FWD_DEFINED__ */ + + +#ifndef __FaxJobStatus_FWD_DEFINED__ +#define __FaxJobStatus_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxJobStatus FaxJobStatus; +#else +typedef struct FaxJobStatus FaxJobStatus; +#endif /* __cplusplus */ + +#endif /* __FaxJobStatus_FWD_DEFINED__ */ + + +#ifndef __FaxRecipient_FWD_DEFINED__ +#define __FaxRecipient_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxRecipient FaxRecipient; +#else +typedef struct FaxRecipient FaxRecipient; +#endif /* __cplusplus */ + +#endif /* __FaxRecipient_FWD_DEFINED__ */ + + +#ifndef __FaxConfiguration_FWD_DEFINED__ +#define __FaxConfiguration_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxConfiguration FaxConfiguration; +#else +typedef struct FaxConfiguration FaxConfiguration; +#endif /* __cplusplus */ + +#endif /* __FaxConfiguration_FWD_DEFINED__ */ + + +#ifndef __FaxAccountSet_FWD_DEFINED__ +#define __FaxAccountSet_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxAccountSet FaxAccountSet; +#else +typedef struct FaxAccountSet FaxAccountSet; +#endif /* __cplusplus */ + +#endif /* __FaxAccountSet_FWD_DEFINED__ */ + + +#ifndef __FaxAccounts_FWD_DEFINED__ +#define __FaxAccounts_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxAccounts FaxAccounts; +#else +typedef struct FaxAccounts FaxAccounts; +#endif /* __cplusplus */ + +#endif /* __FaxAccounts_FWD_DEFINED__ */ + + +#ifndef __FaxAccount_FWD_DEFINED__ +#define __FaxAccount_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxAccount FaxAccount; +#else +typedef struct FaxAccount FaxAccount; +#endif /* __cplusplus */ + +#endif /* __FaxAccount_FWD_DEFINED__ */ + + +#ifndef __FaxAccountFolders_FWD_DEFINED__ +#define __FaxAccountFolders_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxAccountFolders FaxAccountFolders; +#else +typedef struct FaxAccountFolders FaxAccountFolders; +#endif /* __cplusplus */ + +#endif /* __FaxAccountFolders_FWD_DEFINED__ */ + + +#ifndef __FaxAccountIncomingQueue_FWD_DEFINED__ +#define __FaxAccountIncomingQueue_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxAccountIncomingQueue FaxAccountIncomingQueue; +#else +typedef struct FaxAccountIncomingQueue FaxAccountIncomingQueue; +#endif /* __cplusplus */ + +#endif /* __FaxAccountIncomingQueue_FWD_DEFINED__ */ + + +#ifndef __FaxAccountOutgoingQueue_FWD_DEFINED__ +#define __FaxAccountOutgoingQueue_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxAccountOutgoingQueue FaxAccountOutgoingQueue; +#else +typedef struct FaxAccountOutgoingQueue FaxAccountOutgoingQueue; +#endif /* __cplusplus */ + +#endif /* __FaxAccountOutgoingQueue_FWD_DEFINED__ */ + + +#ifndef __FaxAccountIncomingArchive_FWD_DEFINED__ +#define __FaxAccountIncomingArchive_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxAccountIncomingArchive FaxAccountIncomingArchive; +#else +typedef struct FaxAccountIncomingArchive FaxAccountIncomingArchive; +#endif /* __cplusplus */ + +#endif /* __FaxAccountIncomingArchive_FWD_DEFINED__ */ + + +#ifndef __FaxAccountOutgoingArchive_FWD_DEFINED__ +#define __FaxAccountOutgoingArchive_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxAccountOutgoingArchive FaxAccountOutgoingArchive; +#else +typedef struct FaxAccountOutgoingArchive FaxAccountOutgoingArchive; +#endif /* __cplusplus */ + +#endif /* __FaxAccountOutgoingArchive_FWD_DEFINED__ */ + + +#ifndef __FaxSecurity2_FWD_DEFINED__ +#define __FaxSecurity2_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxSecurity2 FaxSecurity2; +#else +typedef struct FaxSecurity2 FaxSecurity2; +#endif /* __cplusplus */ + +#endif /* __FaxSecurity2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_faxcomex_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +#define prv_DEFAULT_PREFETCH_SIZE ( 100 ) + + + +extern RPC_IF_HANDLE __MIDL_itf_faxcomex_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_faxcomex_0000_0000_v0_0_s_ifspec; + +#ifndef __IFaxJobStatus_INTERFACE_DEFINED__ +#define __IFaxJobStatus_INTERFACE_DEFINED__ + +/* interface IFaxJobStatus */ +/* [unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_JOB_STATUS_ENUM + { + fjsPENDING = 0x1, + fjsINPROGRESS = 0x2, + fjsFAILED = 0x8, + fjsPAUSED = 0x10, + fjsNOLINE = 0x20, + fjsRETRYING = 0x40, + fjsRETRIES_EXCEEDED = 0x80, + fjsCOMPLETED = 0x100, + fjsCANCELED = 0x200, + fjsCANCELING = 0x400, + fjsROUTING = 0x800 + } FAX_JOB_STATUS_ENUM; + +typedef +enum FAX_JOB_EXTENDED_STATUS_ENUM + { + fjesNONE = 0, + fjesDISCONNECTED = ( fjesNONE + 1 ) , + fjesINITIALIZING = ( fjesDISCONNECTED + 1 ) , + fjesDIALING = ( fjesINITIALIZING + 1 ) , + fjesTRANSMITTING = ( fjesDIALING + 1 ) , + fjesANSWERED = ( fjesTRANSMITTING + 1 ) , + fjesRECEIVING = ( fjesANSWERED + 1 ) , + fjesLINE_UNAVAILABLE = ( fjesRECEIVING + 1 ) , + fjesBUSY = ( fjesLINE_UNAVAILABLE + 1 ) , + fjesNO_ANSWER = ( fjesBUSY + 1 ) , + fjesBAD_ADDRESS = ( fjesNO_ANSWER + 1 ) , + fjesNO_DIAL_TONE = ( fjesBAD_ADDRESS + 1 ) , + fjesFATAL_ERROR = ( fjesNO_DIAL_TONE + 1 ) , + fjesCALL_DELAYED = ( fjesFATAL_ERROR + 1 ) , + fjesCALL_BLACKLISTED = ( fjesCALL_DELAYED + 1 ) , + fjesNOT_FAX_CALL = ( fjesCALL_BLACKLISTED + 1 ) , + fjesPARTIALLY_RECEIVED = ( fjesNOT_FAX_CALL + 1 ) , + fjesHANDLED = ( fjesPARTIALLY_RECEIVED + 1 ) , + fjesCALL_COMPLETED = ( fjesHANDLED + 1 ) , + fjesCALL_ABORTED = ( fjesCALL_COMPLETED + 1 ) , + fjesPROPRIETARY = 0x1000000 + } FAX_JOB_EXTENDED_STATUS_ENUM; + +typedef +enum FAX_JOB_OPERATIONS_ENUM + { + fjoVIEW = 0x1, + fjoPAUSE = 0x2, + fjoRESUME = 0x4, + fjoRESTART = 0x8, + fjoDELETE = 0x10, + fjoRECIPIENT_INFO = 0x20, + fjoSENDER_INFO = 0x40 + } FAX_JOB_OPERATIONS_ENUM; + +typedef +enum FAX_JOB_TYPE_ENUM + { + fjtSEND = 0, + fjtRECEIVE = ( fjtSEND + 1 ) , + fjtROUTING = ( fjtRECEIVE + 1 ) + } FAX_JOB_TYPE_ENUM; + + +EXTERN_C const IID IID_IFaxJobStatus; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8B86F485-FD7F-4824-886B-40C5CAA617CC") + IFaxJobStatus : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out FAX_JOB_STATUS_ENUM *pStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Pages( + /* [retval][out] */ __RPC__out long *plPages) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out long *plSize) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPage( + /* [retval][out] */ __RPC__out long *plCurrentPage) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceId( + /* [retval][out] */ __RPC__out long *plDeviceId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExtendedStatusCode( + /* [retval][out] */ __RPC__out FAX_JOB_EXTENDED_STATUS_ENUM *pExtendedStatusCode) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExtendedStatus( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtendedStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AvailableOperations( + /* [retval][out] */ __RPC__out FAX_JOB_OPERATIONS_ENUM *pAvailableOperations) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Retries( + /* [retval][out] */ __RPC__out long *plRetries) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_JobType( + /* [retval][out] */ __RPC__out FAX_JOB_TYPE_ENUM *pJobType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ScheduledTime( + /* [retval][out] */ __RPC__out DATE *pdateScheduledTime) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransmissionStart( + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransmissionEnd( + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CallerId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCallerId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RoutingInformation( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRoutingInformation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxJobStatusVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxJobStatus * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxJobStatus * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxJobStatus * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxJobStatus * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxJobStatus * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxJobStatus * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxJobStatus * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_Status) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out FAX_JOB_STATUS_ENUM *pStatus); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_Pages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pages )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out long *plPages); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_Size) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out long *plSize); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_CurrentPage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPage )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out long *plCurrentPage); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_DeviceId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceId )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out long *plDeviceId); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_CSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CSID )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_TSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_ExtendedStatusCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtendedStatusCode )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out FAX_JOB_EXTENDED_STATUS_ENUM *pExtendedStatusCode); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_ExtendedStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtendedStatus )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtendedStatus); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_AvailableOperations) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AvailableOperations )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out FAX_JOB_OPERATIONS_ENUM *pAvailableOperations); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out long *plRetries); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_JobType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_JobType )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out FAX_JOB_TYPE_ENUM *pJobType); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_ScheduledTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScheduledTime )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out DATE *pdateScheduledTime); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_TransmissionStart) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionStart )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_TransmissionEnd) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionEnd )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_CallerId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CallerId )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCallerId); + + DECLSPEC_XFGVIRT(IFaxJobStatus, get_RoutingInformation) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoutingInformation )( + __RPC__in IFaxJobStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRoutingInformation); + + END_INTERFACE + } IFaxJobStatusVtbl; + + interface IFaxJobStatus + { + CONST_VTBL struct IFaxJobStatusVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxJobStatus_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxJobStatus_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxJobStatus_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxJobStatus_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxJobStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxJobStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxJobStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxJobStatus_get_Status(This,pStatus) \ + ( (This)->lpVtbl -> get_Status(This,pStatus) ) + +#define IFaxJobStatus_get_Pages(This,plPages) \ + ( (This)->lpVtbl -> get_Pages(This,plPages) ) + +#define IFaxJobStatus_get_Size(This,plSize) \ + ( (This)->lpVtbl -> get_Size(This,plSize) ) + +#define IFaxJobStatus_get_CurrentPage(This,plCurrentPage) \ + ( (This)->lpVtbl -> get_CurrentPage(This,plCurrentPage) ) + +#define IFaxJobStatus_get_DeviceId(This,plDeviceId) \ + ( (This)->lpVtbl -> get_DeviceId(This,plDeviceId) ) + +#define IFaxJobStatus_get_CSID(This,pbstrCSID) \ + ( (This)->lpVtbl -> get_CSID(This,pbstrCSID) ) + +#define IFaxJobStatus_get_TSID(This,pbstrTSID) \ + ( (This)->lpVtbl -> get_TSID(This,pbstrTSID) ) + +#define IFaxJobStatus_get_ExtendedStatusCode(This,pExtendedStatusCode) \ + ( (This)->lpVtbl -> get_ExtendedStatusCode(This,pExtendedStatusCode) ) + +#define IFaxJobStatus_get_ExtendedStatus(This,pbstrExtendedStatus) \ + ( (This)->lpVtbl -> get_ExtendedStatus(This,pbstrExtendedStatus) ) + +#define IFaxJobStatus_get_AvailableOperations(This,pAvailableOperations) \ + ( (This)->lpVtbl -> get_AvailableOperations(This,pAvailableOperations) ) + +#define IFaxJobStatus_get_Retries(This,plRetries) \ + ( (This)->lpVtbl -> get_Retries(This,plRetries) ) + +#define IFaxJobStatus_get_JobType(This,pJobType) \ + ( (This)->lpVtbl -> get_JobType(This,pJobType) ) + +#define IFaxJobStatus_get_ScheduledTime(This,pdateScheduledTime) \ + ( (This)->lpVtbl -> get_ScheduledTime(This,pdateScheduledTime) ) + +#define IFaxJobStatus_get_TransmissionStart(This,pdateTransmissionStart) \ + ( (This)->lpVtbl -> get_TransmissionStart(This,pdateTransmissionStart) ) + +#define IFaxJobStatus_get_TransmissionEnd(This,pdateTransmissionEnd) \ + ( (This)->lpVtbl -> get_TransmissionEnd(This,pdateTransmissionEnd) ) + +#define IFaxJobStatus_get_CallerId(This,pbstrCallerId) \ + ( (This)->lpVtbl -> get_CallerId(This,pbstrCallerId) ) + +#define IFaxJobStatus_get_RoutingInformation(This,pbstrRoutingInformation) \ + ( (This)->lpVtbl -> get_RoutingInformation(This,pbstrRoutingInformation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxJobStatus_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxServer_INTERFACE_DEFINED__ +#define __IFaxServer_INTERFACE_DEFINED__ + +/* interface IFaxServer */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_SERVER_EVENTS_TYPE_ENUM + { + fsetNONE = 0, + fsetIN_QUEUE = 0x1, + fsetOUT_QUEUE = 0x2, + fsetCONFIG = 0x4, + fsetACTIVITY = 0x8, + fsetQUEUE_STATE = 0x10, + fsetIN_ARCHIVE = 0x20, + fsetOUT_ARCHIVE = 0x40, + fsetFXSSVC_ENDED = 0x80, + fsetDEVICE_STATUS = 0x100, + fsetINCOMING_CALL = 0x200 + } FAX_SERVER_EVENTS_TYPE_ENUM; + +typedef +enum FAX_SERVER_APIVERSION_ENUM + { + fsAPI_VERSION_0 = 0, + fsAPI_VERSION_1 = 0x10000, + fsAPI_VERSION_2 = 0x20000, + fsAPI_VERSION_3 = 0x30000 + } FAX_SERVER_APIVERSION_ENUM; + + +EXTERN_C const IID IID_IFaxServer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("475B6469-90A5-4878-A577-17A86E8E3462") + IFaxServer : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Connect( + /* [in] */ __RPC__in BSTR bstrServerName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ServerName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrServerName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDeviceProviders( + /* [retval][out] */ __RPC__deref_out_opt IFaxDeviceProviders **ppFaxDeviceProviders) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDevices( + /* [retval][out] */ __RPC__deref_out_opt IFaxDevices **ppFaxDevices) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InboundRouting( + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRouting **ppFaxInboundRouting) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Folders( + /* [retval][out] */ __RPC__deref_out_opt IFaxFolders **pFaxFolders) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LoggingOptions( + /* [retval][out] */ __RPC__deref_out_opt IFaxLoggingOptions **ppFaxLoggingOptions) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MajorVersion( + /* [retval][out] */ __RPC__out long *plMajorVersion) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinorVersion( + /* [retval][out] */ __RPC__out long *plMinorVersion) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MajorBuild( + /* [retval][out] */ __RPC__out long *plMajorBuild) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinorBuild( + /* [retval][out] */ __RPC__out long *plMinorBuild) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Debug( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbDebug) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Activity( + /* [retval][out] */ __RPC__deref_out_opt IFaxActivity **ppFaxActivity) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutboundRouting( + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRouting **ppFaxOutboundRouting) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReceiptOptions( + /* [retval][out] */ __RPC__deref_out_opt IFaxReceiptOptions **ppFaxReceiptOptions) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Security( + /* [retval][out] */ __RPC__deref_out_opt IFaxSecurity **ppFaxSecurity) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Disconnect( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetExtensionProperty( + /* [in] */ __RPC__in BSTR bstrGUID, + /* [retval][out] */ __RPC__out VARIANT *pvProperty) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetExtensionProperty( + /* [in] */ __RPC__in BSTR bstrGUID, + /* [in] */ VARIANT vProperty) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ListenToServerEvents( + /* [in] */ FAX_SERVER_EVENTS_TYPE_ENUM EventTypes) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RegisterDeviceProvider( + /* [in] */ __RPC__in BSTR bstrGUID, + /* [in] */ __RPC__in BSTR bstrFriendlyName, + /* [in] */ __RPC__in BSTR bstrImageName, + /* [in] */ __RPC__in BSTR TspName, + /* [in] */ long lFSPIVersion) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UnregisterDeviceProvider( + /* [in] */ __RPC__in BSTR bstrUniqueName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RegisterInboundRoutingExtension( + /* [in] */ __RPC__in BSTR bstrExtensionName, + /* [in] */ __RPC__in BSTR bstrFriendlyName, + /* [in] */ __RPC__in BSTR bstrImageName, + /* [in] */ VARIANT vMethods) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UnregisterInboundRoutingExtension( + /* [in] */ __RPC__in BSTR bstrExtensionUniqueName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RegisteredEvents( + /* [retval][out] */ __RPC__out FAX_SERVER_EVENTS_TYPE_ENUM *pEventTypes) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_APIVersion( + /* [retval][out] */ __RPC__out FAX_SERVER_APIVERSION_ENUM *pAPIVersion) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxServerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxServer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxServer * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxServer * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxServer * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxServer * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxServer, Connect) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Connect )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in BSTR bstrServerName); + + DECLSPEC_XFGVIRT(IFaxServer, get_ServerName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerName )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrServerName); + + DECLSPEC_XFGVIRT(IFaxServer, GetDeviceProviders) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDeviceProviders )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxDeviceProviders **ppFaxDeviceProviders); + + DECLSPEC_XFGVIRT(IFaxServer, GetDevices) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDevices )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxDevices **ppFaxDevices); + + DECLSPEC_XFGVIRT(IFaxServer, get_InboundRouting) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InboundRouting )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRouting **ppFaxInboundRouting); + + DECLSPEC_XFGVIRT(IFaxServer, get_Folders) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Folders )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxFolders **pFaxFolders); + + DECLSPEC_XFGVIRT(IFaxServer, get_LoggingOptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LoggingOptions )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxLoggingOptions **ppFaxLoggingOptions); + + DECLSPEC_XFGVIRT(IFaxServer, get_MajorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorVersion )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out long *plMajorVersion); + + DECLSPEC_XFGVIRT(IFaxServer, get_MinorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorVersion )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out long *plMinorVersion); + + DECLSPEC_XFGVIRT(IFaxServer, get_MajorBuild) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorBuild )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out long *plMajorBuild); + + DECLSPEC_XFGVIRT(IFaxServer, get_MinorBuild) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorBuild )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out long *plMinorBuild); + + DECLSPEC_XFGVIRT(IFaxServer, get_Debug) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Debug )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbDebug); + + DECLSPEC_XFGVIRT(IFaxServer, get_Activity) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Activity )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxActivity **ppFaxActivity); + + DECLSPEC_XFGVIRT(IFaxServer, get_OutboundRouting) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutboundRouting )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRouting **ppFaxOutboundRouting); + + DECLSPEC_XFGVIRT(IFaxServer, get_ReceiptOptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptOptions )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxReceiptOptions **ppFaxReceiptOptions); + + DECLSPEC_XFGVIRT(IFaxServer, get_Security) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Security )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxSecurity **ppFaxSecurity); + + DECLSPEC_XFGVIRT(IFaxServer, Disconnect) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Disconnect )( + __RPC__in IFaxServer * This); + + DECLSPEC_XFGVIRT(IFaxServer, GetExtensionProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetExtensionProperty )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in BSTR bstrGUID, + /* [retval][out] */ __RPC__out VARIANT *pvProperty); + + DECLSPEC_XFGVIRT(IFaxServer, SetExtensionProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetExtensionProperty )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in BSTR bstrGUID, + /* [in] */ VARIANT vProperty); + + DECLSPEC_XFGVIRT(IFaxServer, ListenToServerEvents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ListenToServerEvents )( + __RPC__in IFaxServer * This, + /* [in] */ FAX_SERVER_EVENTS_TYPE_ENUM EventTypes); + + DECLSPEC_XFGVIRT(IFaxServer, RegisterDeviceProvider) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RegisterDeviceProvider )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in BSTR bstrGUID, + /* [in] */ __RPC__in BSTR bstrFriendlyName, + /* [in] */ __RPC__in BSTR bstrImageName, + /* [in] */ __RPC__in BSTR TspName, + /* [in] */ long lFSPIVersion); + + DECLSPEC_XFGVIRT(IFaxServer, UnregisterDeviceProvider) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UnregisterDeviceProvider )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in BSTR bstrUniqueName); + + DECLSPEC_XFGVIRT(IFaxServer, RegisterInboundRoutingExtension) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RegisterInboundRoutingExtension )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in BSTR bstrExtensionName, + /* [in] */ __RPC__in BSTR bstrFriendlyName, + /* [in] */ __RPC__in BSTR bstrImageName, + /* [in] */ VARIANT vMethods); + + DECLSPEC_XFGVIRT(IFaxServer, UnregisterInboundRoutingExtension) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UnregisterInboundRoutingExtension )( + __RPC__in IFaxServer * This, + /* [in] */ __RPC__in BSTR bstrExtensionUniqueName); + + DECLSPEC_XFGVIRT(IFaxServer, get_RegisteredEvents) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RegisteredEvents )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out FAX_SERVER_EVENTS_TYPE_ENUM *pEventTypes); + + DECLSPEC_XFGVIRT(IFaxServer, get_APIVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_APIVersion )( + __RPC__in IFaxServer * This, + /* [retval][out] */ __RPC__out FAX_SERVER_APIVERSION_ENUM *pAPIVersion); + + END_INTERFACE + } IFaxServerVtbl; + + interface IFaxServer + { + CONST_VTBL struct IFaxServerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxServer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxServer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxServer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxServer_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxServer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxServer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxServer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxServer_Connect(This,bstrServerName) \ + ( (This)->lpVtbl -> Connect(This,bstrServerName) ) + +#define IFaxServer_get_ServerName(This,pbstrServerName) \ + ( (This)->lpVtbl -> get_ServerName(This,pbstrServerName) ) + +#define IFaxServer_GetDeviceProviders(This,ppFaxDeviceProviders) \ + ( (This)->lpVtbl -> GetDeviceProviders(This,ppFaxDeviceProviders) ) + +#define IFaxServer_GetDevices(This,ppFaxDevices) \ + ( (This)->lpVtbl -> GetDevices(This,ppFaxDevices) ) + +#define IFaxServer_get_InboundRouting(This,ppFaxInboundRouting) \ + ( (This)->lpVtbl -> get_InboundRouting(This,ppFaxInboundRouting) ) + +#define IFaxServer_get_Folders(This,pFaxFolders) \ + ( (This)->lpVtbl -> get_Folders(This,pFaxFolders) ) + +#define IFaxServer_get_LoggingOptions(This,ppFaxLoggingOptions) \ + ( (This)->lpVtbl -> get_LoggingOptions(This,ppFaxLoggingOptions) ) + +#define IFaxServer_get_MajorVersion(This,plMajorVersion) \ + ( (This)->lpVtbl -> get_MajorVersion(This,plMajorVersion) ) + +#define IFaxServer_get_MinorVersion(This,plMinorVersion) \ + ( (This)->lpVtbl -> get_MinorVersion(This,plMinorVersion) ) + +#define IFaxServer_get_MajorBuild(This,plMajorBuild) \ + ( (This)->lpVtbl -> get_MajorBuild(This,plMajorBuild) ) + +#define IFaxServer_get_MinorBuild(This,plMinorBuild) \ + ( (This)->lpVtbl -> get_MinorBuild(This,plMinorBuild) ) + +#define IFaxServer_get_Debug(This,pbDebug) \ + ( (This)->lpVtbl -> get_Debug(This,pbDebug) ) + +#define IFaxServer_get_Activity(This,ppFaxActivity) \ + ( (This)->lpVtbl -> get_Activity(This,ppFaxActivity) ) + +#define IFaxServer_get_OutboundRouting(This,ppFaxOutboundRouting) \ + ( (This)->lpVtbl -> get_OutboundRouting(This,ppFaxOutboundRouting) ) + +#define IFaxServer_get_ReceiptOptions(This,ppFaxReceiptOptions) \ + ( (This)->lpVtbl -> get_ReceiptOptions(This,ppFaxReceiptOptions) ) + +#define IFaxServer_get_Security(This,ppFaxSecurity) \ + ( (This)->lpVtbl -> get_Security(This,ppFaxSecurity) ) + +#define IFaxServer_Disconnect(This) \ + ( (This)->lpVtbl -> Disconnect(This) ) + +#define IFaxServer_GetExtensionProperty(This,bstrGUID,pvProperty) \ + ( (This)->lpVtbl -> GetExtensionProperty(This,bstrGUID,pvProperty) ) + +#define IFaxServer_SetExtensionProperty(This,bstrGUID,vProperty) \ + ( (This)->lpVtbl -> SetExtensionProperty(This,bstrGUID,vProperty) ) + +#define IFaxServer_ListenToServerEvents(This,EventTypes) \ + ( (This)->lpVtbl -> ListenToServerEvents(This,EventTypes) ) + +#define IFaxServer_RegisterDeviceProvider(This,bstrGUID,bstrFriendlyName,bstrImageName,TspName,lFSPIVersion) \ + ( (This)->lpVtbl -> RegisterDeviceProvider(This,bstrGUID,bstrFriendlyName,bstrImageName,TspName,lFSPIVersion) ) + +#define IFaxServer_UnregisterDeviceProvider(This,bstrUniqueName) \ + ( (This)->lpVtbl -> UnregisterDeviceProvider(This,bstrUniqueName) ) + +#define IFaxServer_RegisterInboundRoutingExtension(This,bstrExtensionName,bstrFriendlyName,bstrImageName,vMethods) \ + ( (This)->lpVtbl -> RegisterInboundRoutingExtension(This,bstrExtensionName,bstrFriendlyName,bstrImageName,vMethods) ) + +#define IFaxServer_UnregisterInboundRoutingExtension(This,bstrExtensionUniqueName) \ + ( (This)->lpVtbl -> UnregisterInboundRoutingExtension(This,bstrExtensionUniqueName) ) + +#define IFaxServer_get_RegisteredEvents(This,pEventTypes) \ + ( (This)->lpVtbl -> get_RegisteredEvents(This,pEventTypes) ) + +#define IFaxServer_get_APIVersion(This,pAPIVersion) \ + ( (This)->lpVtbl -> get_APIVersion(This,pAPIVersion) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxServer_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxDeviceProviders_INTERFACE_DEFINED__ +#define __IFaxDeviceProviders_INTERFACE_DEFINED__ + +/* interface IFaxDeviceProviders */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxDeviceProviders; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9FB76F62-4C7E-43A5-B6FD-502893F7E13E") + IFaxDeviceProviders : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxDeviceProvider **pFaxDeviceProvider) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxDeviceProvidersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxDeviceProviders * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxDeviceProviders * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxDeviceProviders * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxDeviceProviders * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxDeviceProviders * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxDeviceProviders * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxDeviceProviders * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxDeviceProviders, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxDeviceProviders * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxDeviceProviders, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxDeviceProviders * This, + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxDeviceProvider **pFaxDeviceProvider); + + DECLSPEC_XFGVIRT(IFaxDeviceProviders, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxDeviceProviders * This, + /* [retval][out] */ __RPC__out long *plCount); + + END_INTERFACE + } IFaxDeviceProvidersVtbl; + + interface IFaxDeviceProviders + { + CONST_VTBL struct IFaxDeviceProvidersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxDeviceProviders_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxDeviceProviders_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxDeviceProviders_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxDeviceProviders_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxDeviceProviders_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxDeviceProviders_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxDeviceProviders_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxDeviceProviders_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxDeviceProviders_get_Item(This,vIndex,pFaxDeviceProvider) \ + ( (This)->lpVtbl -> get_Item(This,vIndex,pFaxDeviceProvider) ) + +#define IFaxDeviceProviders_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxDeviceProviders_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxDevices_INTERFACE_DEFINED__ +#define __IFaxDevices_INTERFACE_DEFINED__ + +/* interface IFaxDevices */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxDevices; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9E46783E-F34F-482E-A360-0416BECBBD96") + IFaxDevices : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxDevice **pFaxDevice) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [propget][helpstring][id] */ HRESULT STDMETHODCALLTYPE get_ItemById( + /* [in] */ long lId, + /* [retval][out] */ __RPC__deref_out_opt IFaxDevice **ppFaxDevice) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxDevicesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxDevices * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxDevices * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxDevices * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxDevices * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxDevices * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxDevices * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxDevices * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxDevices, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxDevices * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxDevices, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxDevices * This, + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxDevice **pFaxDevice); + + DECLSPEC_XFGVIRT(IFaxDevices, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxDevices * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(IFaxDevices, get_ItemById) + /* [propget][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *get_ItemById )( + __RPC__in IFaxDevices * This, + /* [in] */ long lId, + /* [retval][out] */ __RPC__deref_out_opt IFaxDevice **ppFaxDevice); + + END_INTERFACE + } IFaxDevicesVtbl; + + interface IFaxDevices + { + CONST_VTBL struct IFaxDevicesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxDevices_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxDevices_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxDevices_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxDevices_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxDevices_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxDevices_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxDevices_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxDevices_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxDevices_get_Item(This,vIndex,pFaxDevice) \ + ( (This)->lpVtbl -> get_Item(This,vIndex,pFaxDevice) ) + +#define IFaxDevices_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IFaxDevices_get_ItemById(This,lId,ppFaxDevice) \ + ( (This)->lpVtbl -> get_ItemById(This,lId,ppFaxDevice) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxDevices_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxInboundRouting_INTERFACE_DEFINED__ +#define __IFaxInboundRouting_INTERFACE_DEFINED__ + +/* interface IFaxInboundRouting */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxInboundRouting; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8148C20F-9D52-45B1-BF96-38FC12713527") + IFaxInboundRouting : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetExtensions( + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRoutingExtensions **pFaxInboundRoutingExtensions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMethods( + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRoutingMethods **pFaxInboundRoutingMethods) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxInboundRoutingVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxInboundRouting * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxInboundRouting * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxInboundRouting * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxInboundRouting * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxInboundRouting * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxInboundRouting * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxInboundRouting * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxInboundRouting, GetExtensions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetExtensions )( + __RPC__in IFaxInboundRouting * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRoutingExtensions **pFaxInboundRoutingExtensions); + + DECLSPEC_XFGVIRT(IFaxInboundRouting, GetMethods) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMethods )( + __RPC__in IFaxInboundRouting * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRoutingMethods **pFaxInboundRoutingMethods); + + END_INTERFACE + } IFaxInboundRoutingVtbl; + + interface IFaxInboundRouting + { + CONST_VTBL struct IFaxInboundRoutingVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxInboundRouting_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxInboundRouting_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxInboundRouting_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxInboundRouting_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxInboundRouting_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxInboundRouting_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxInboundRouting_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxInboundRouting_GetExtensions(This,pFaxInboundRoutingExtensions) \ + ( (This)->lpVtbl -> GetExtensions(This,pFaxInboundRoutingExtensions) ) + +#define IFaxInboundRouting_GetMethods(This,pFaxInboundRoutingMethods) \ + ( (This)->lpVtbl -> GetMethods(This,pFaxInboundRoutingMethods) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxInboundRouting_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxFolders_INTERFACE_DEFINED__ +#define __IFaxFolders_INTERFACE_DEFINED__ + +/* interface IFaxFolders */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxFolders; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DCE3B2A8-A7AB-42BC-9D0A-3149457261A0") + IFaxFolders : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutgoingQueue( + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingQueue **pFaxOutgoingQueue) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IncomingQueue( + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingQueue **pFaxIncomingQueue) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IncomingArchive( + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingArchive **pFaxIncomingArchive) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutgoingArchive( + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingArchive **pFaxOutgoingArchive) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxFoldersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxFolders * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxFolders * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxFolders * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxFolders * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxFolders * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxFolders * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxFolders * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxFolders, get_OutgoingQueue) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutgoingQueue )( + __RPC__in IFaxFolders * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingQueue **pFaxOutgoingQueue); + + DECLSPEC_XFGVIRT(IFaxFolders, get_IncomingQueue) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IncomingQueue )( + __RPC__in IFaxFolders * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingQueue **pFaxIncomingQueue); + + DECLSPEC_XFGVIRT(IFaxFolders, get_IncomingArchive) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IncomingArchive )( + __RPC__in IFaxFolders * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingArchive **pFaxIncomingArchive); + + DECLSPEC_XFGVIRT(IFaxFolders, get_OutgoingArchive) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutgoingArchive )( + __RPC__in IFaxFolders * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingArchive **pFaxOutgoingArchive); + + END_INTERFACE + } IFaxFoldersVtbl; + + interface IFaxFolders + { + CONST_VTBL struct IFaxFoldersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxFolders_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxFolders_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxFolders_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxFolders_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxFolders_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxFolders_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxFolders_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxFolders_get_OutgoingQueue(This,pFaxOutgoingQueue) \ + ( (This)->lpVtbl -> get_OutgoingQueue(This,pFaxOutgoingQueue) ) + +#define IFaxFolders_get_IncomingQueue(This,pFaxIncomingQueue) \ + ( (This)->lpVtbl -> get_IncomingQueue(This,pFaxIncomingQueue) ) + +#define IFaxFolders_get_IncomingArchive(This,pFaxIncomingArchive) \ + ( (This)->lpVtbl -> get_IncomingArchive(This,pFaxIncomingArchive) ) + +#define IFaxFolders_get_OutgoingArchive(This,pFaxOutgoingArchive) \ + ( (This)->lpVtbl -> get_OutgoingArchive(This,pFaxOutgoingArchive) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxFolders_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxLoggingOptions_INTERFACE_DEFINED__ +#define __IFaxLoggingOptions_INTERFACE_DEFINED__ + +/* interface IFaxLoggingOptions */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxLoggingOptions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("34E64FB9-6B31-4D32-8B27-D286C0C33606") + IFaxLoggingOptions : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EventLogging( + /* [retval][out] */ __RPC__deref_out_opt IFaxEventLogging **pFaxEventLogging) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActivityLogging( + /* [retval][out] */ __RPC__deref_out_opt IFaxActivityLogging **pFaxActivityLogging) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxLoggingOptionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxLoggingOptions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxLoggingOptions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxLoggingOptions * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxLoggingOptions * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxLoggingOptions * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxLoggingOptions * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxLoggingOptions * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxLoggingOptions, get_EventLogging) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventLogging )( + __RPC__in IFaxLoggingOptions * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxEventLogging **pFaxEventLogging); + + DECLSPEC_XFGVIRT(IFaxLoggingOptions, get_ActivityLogging) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActivityLogging )( + __RPC__in IFaxLoggingOptions * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxActivityLogging **pFaxActivityLogging); + + END_INTERFACE + } IFaxLoggingOptionsVtbl; + + interface IFaxLoggingOptions + { + CONST_VTBL struct IFaxLoggingOptionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxLoggingOptions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxLoggingOptions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxLoggingOptions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxLoggingOptions_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxLoggingOptions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxLoggingOptions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxLoggingOptions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxLoggingOptions_get_EventLogging(This,pFaxEventLogging) \ + ( (This)->lpVtbl -> get_EventLogging(This,pFaxEventLogging) ) + +#define IFaxLoggingOptions_get_ActivityLogging(This,pFaxActivityLogging) \ + ( (This)->lpVtbl -> get_ActivityLogging(This,pFaxActivityLogging) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxLoggingOptions_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxActivity_INTERFACE_DEFINED__ +#define __IFaxActivity_INTERFACE_DEFINED__ + +/* interface IFaxActivity */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxActivity; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4B106F97-3DF5-40F2-BC3C-44CB8115EBDF") + IFaxActivity : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IncomingMessages( + /* [retval][out] */ __RPC__out long *plIncomingMessages) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RoutingMessages( + /* [retval][out] */ __RPC__out long *plRoutingMessages) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutgoingMessages( + /* [retval][out] */ __RPC__out long *plOutgoingMessages) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_QueuedMessages( + /* [retval][out] */ __RPC__out long *plQueuedMessages) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxActivityVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxActivity * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxActivity * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxActivity * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxActivity * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxActivity * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxActivity * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxActivity * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxActivity, get_IncomingMessages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IncomingMessages )( + __RPC__in IFaxActivity * This, + /* [retval][out] */ __RPC__out long *plIncomingMessages); + + DECLSPEC_XFGVIRT(IFaxActivity, get_RoutingMessages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoutingMessages )( + __RPC__in IFaxActivity * This, + /* [retval][out] */ __RPC__out long *plRoutingMessages); + + DECLSPEC_XFGVIRT(IFaxActivity, get_OutgoingMessages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutgoingMessages )( + __RPC__in IFaxActivity * This, + /* [retval][out] */ __RPC__out long *plOutgoingMessages); + + DECLSPEC_XFGVIRT(IFaxActivity, get_QueuedMessages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QueuedMessages )( + __RPC__in IFaxActivity * This, + /* [retval][out] */ __RPC__out long *plQueuedMessages); + + DECLSPEC_XFGVIRT(IFaxActivity, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxActivity * This); + + END_INTERFACE + } IFaxActivityVtbl; + + interface IFaxActivity + { + CONST_VTBL struct IFaxActivityVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxActivity_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxActivity_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxActivity_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxActivity_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxActivity_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxActivity_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxActivity_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxActivity_get_IncomingMessages(This,plIncomingMessages) \ + ( (This)->lpVtbl -> get_IncomingMessages(This,plIncomingMessages) ) + +#define IFaxActivity_get_RoutingMessages(This,plRoutingMessages) \ + ( (This)->lpVtbl -> get_RoutingMessages(This,plRoutingMessages) ) + +#define IFaxActivity_get_OutgoingMessages(This,plOutgoingMessages) \ + ( (This)->lpVtbl -> get_OutgoingMessages(This,plOutgoingMessages) ) + +#define IFaxActivity_get_QueuedMessages(This,plQueuedMessages) \ + ( (This)->lpVtbl -> get_QueuedMessages(This,plQueuedMessages) ) + +#define IFaxActivity_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxActivity_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutboundRouting_INTERFACE_DEFINED__ +#define __IFaxOutboundRouting_INTERFACE_DEFINED__ + +/* interface IFaxOutboundRouting */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutboundRouting; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("25DC05A4-9909-41BD-A95B-7E5D1DEC1D43") + IFaxOutboundRouting : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetGroups( + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingGroups **pFaxOutboundRoutingGroups) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetRules( + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingRules **pFaxOutboundRoutingRules) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutboundRoutingVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutboundRouting * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutboundRouting * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutboundRouting * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutboundRouting * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutboundRouting * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutboundRouting * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutboundRouting * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutboundRouting, GetGroups) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetGroups )( + __RPC__in IFaxOutboundRouting * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingGroups **pFaxOutboundRoutingGroups); + + DECLSPEC_XFGVIRT(IFaxOutboundRouting, GetRules) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetRules )( + __RPC__in IFaxOutboundRouting * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingRules **pFaxOutboundRoutingRules); + + END_INTERFACE + } IFaxOutboundRoutingVtbl; + + interface IFaxOutboundRouting + { + CONST_VTBL struct IFaxOutboundRoutingVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutboundRouting_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutboundRouting_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutboundRouting_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutboundRouting_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutboundRouting_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutboundRouting_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutboundRouting_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutboundRouting_GetGroups(This,pFaxOutboundRoutingGroups) \ + ( (This)->lpVtbl -> GetGroups(This,pFaxOutboundRoutingGroups) ) + +#define IFaxOutboundRouting_GetRules(This,pFaxOutboundRoutingRules) \ + ( (This)->lpVtbl -> GetRules(This,pFaxOutboundRoutingRules) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutboundRouting_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxReceiptOptions_INTERFACE_DEFINED__ +#define __IFaxReceiptOptions_INTERFACE_DEFINED__ + +/* interface IFaxReceiptOptions */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_SMTP_AUTHENTICATION_TYPE_ENUM + { + fsatANONYMOUS = 0, + fsatBASIC = ( fsatANONYMOUS + 1 ) , + fsatNTLM = ( fsatBASIC + 1 ) + } FAX_SMTP_AUTHENTICATION_TYPE_ENUM; + +typedef +enum FAX_RECEIPT_TYPE_ENUM + { + frtNONE = 0, + frtMAIL = 0x1, + frtMSGBOX = 0x4 + } FAX_RECEIPT_TYPE_ENUM; + + +EXTERN_C const IID IID_IFaxReceiptOptions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("378EFAEB-5FCB-4AFB-B2EE-E16E80614487") + IFaxReceiptOptions : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AuthenticationType( + /* [retval][out] */ __RPC__out FAX_SMTP_AUTHENTICATION_TYPE_ENUM *pType) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AuthenticationType( + /* [in] */ FAX_SMTP_AUTHENTICATION_TYPE_ENUM Type) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SMTPServer( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSMTPServer) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SMTPServer( + /* [in] */ __RPC__in BSTR bstrSMTPServer) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SMTPPort( + /* [retval][out] */ __RPC__out long *plSMTPPort) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SMTPPort( + /* [in] */ long lSMTPPort) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SMTPSender( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSMTPSender) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SMTPSender( + /* [in] */ __RPC__in BSTR bstrSMTPSender) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SMTPUser( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSMTPUser) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SMTPUser( + /* [in] */ __RPC__in BSTR bstrSMTPUser) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AllowedReceipts( + /* [retval][out] */ __RPC__out FAX_RECEIPT_TYPE_ENUM *pAllowedReceipts) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AllowedReceipts( + /* [in] */ FAX_RECEIPT_TYPE_ENUM AllowedReceipts) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SMTPPassword( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSMTPPassword) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SMTPPassword( + /* [in] */ __RPC__in BSTR bstrSMTPPassword) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseForInboundRouting( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseForInboundRouting) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseForInboundRouting( + /* [in] */ VARIANT_BOOL bUseForInboundRouting) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxReceiptOptionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxReceiptOptions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxReceiptOptions * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxReceiptOptions * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxReceiptOptions * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, get_AuthenticationType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AuthenticationType )( + __RPC__in IFaxReceiptOptions * This, + /* [retval][out] */ __RPC__out FAX_SMTP_AUTHENTICATION_TYPE_ENUM *pType); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, put_AuthenticationType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AuthenticationType )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ FAX_SMTP_AUTHENTICATION_TYPE_ENUM Type); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, get_SMTPServer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SMTPServer )( + __RPC__in IFaxReceiptOptions * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSMTPServer); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, put_SMTPServer) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SMTPServer )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ __RPC__in BSTR bstrSMTPServer); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, get_SMTPPort) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SMTPPort )( + __RPC__in IFaxReceiptOptions * This, + /* [retval][out] */ __RPC__out long *plSMTPPort); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, put_SMTPPort) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SMTPPort )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ long lSMTPPort); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, get_SMTPSender) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SMTPSender )( + __RPC__in IFaxReceiptOptions * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSMTPSender); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, put_SMTPSender) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SMTPSender )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ __RPC__in BSTR bstrSMTPSender); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, get_SMTPUser) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SMTPUser )( + __RPC__in IFaxReceiptOptions * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSMTPUser); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, put_SMTPUser) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SMTPUser )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ __RPC__in BSTR bstrSMTPUser); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, get_AllowedReceipts) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowedReceipts )( + __RPC__in IFaxReceiptOptions * This, + /* [retval][out] */ __RPC__out FAX_RECEIPT_TYPE_ENUM *pAllowedReceipts); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, put_AllowedReceipts) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowedReceipts )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ FAX_RECEIPT_TYPE_ENUM AllowedReceipts); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, get_SMTPPassword) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SMTPPassword )( + __RPC__in IFaxReceiptOptions * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSMTPPassword); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, put_SMTPPassword) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SMTPPassword )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ __RPC__in BSTR bstrSMTPPassword); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxReceiptOptions * This); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxReceiptOptions * This); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, get_UseForInboundRouting) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseForInboundRouting )( + __RPC__in IFaxReceiptOptions * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseForInboundRouting); + + DECLSPEC_XFGVIRT(IFaxReceiptOptions, put_UseForInboundRouting) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseForInboundRouting )( + __RPC__in IFaxReceiptOptions * This, + /* [in] */ VARIANT_BOOL bUseForInboundRouting); + + END_INTERFACE + } IFaxReceiptOptionsVtbl; + + interface IFaxReceiptOptions + { + CONST_VTBL struct IFaxReceiptOptionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxReceiptOptions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxReceiptOptions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxReceiptOptions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxReceiptOptions_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxReceiptOptions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxReceiptOptions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxReceiptOptions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxReceiptOptions_get_AuthenticationType(This,pType) \ + ( (This)->lpVtbl -> get_AuthenticationType(This,pType) ) + +#define IFaxReceiptOptions_put_AuthenticationType(This,Type) \ + ( (This)->lpVtbl -> put_AuthenticationType(This,Type) ) + +#define IFaxReceiptOptions_get_SMTPServer(This,pbstrSMTPServer) \ + ( (This)->lpVtbl -> get_SMTPServer(This,pbstrSMTPServer) ) + +#define IFaxReceiptOptions_put_SMTPServer(This,bstrSMTPServer) \ + ( (This)->lpVtbl -> put_SMTPServer(This,bstrSMTPServer) ) + +#define IFaxReceiptOptions_get_SMTPPort(This,plSMTPPort) \ + ( (This)->lpVtbl -> get_SMTPPort(This,plSMTPPort) ) + +#define IFaxReceiptOptions_put_SMTPPort(This,lSMTPPort) \ + ( (This)->lpVtbl -> put_SMTPPort(This,lSMTPPort) ) + +#define IFaxReceiptOptions_get_SMTPSender(This,pbstrSMTPSender) \ + ( (This)->lpVtbl -> get_SMTPSender(This,pbstrSMTPSender) ) + +#define IFaxReceiptOptions_put_SMTPSender(This,bstrSMTPSender) \ + ( (This)->lpVtbl -> put_SMTPSender(This,bstrSMTPSender) ) + +#define IFaxReceiptOptions_get_SMTPUser(This,pbstrSMTPUser) \ + ( (This)->lpVtbl -> get_SMTPUser(This,pbstrSMTPUser) ) + +#define IFaxReceiptOptions_put_SMTPUser(This,bstrSMTPUser) \ + ( (This)->lpVtbl -> put_SMTPUser(This,bstrSMTPUser) ) + +#define IFaxReceiptOptions_get_AllowedReceipts(This,pAllowedReceipts) \ + ( (This)->lpVtbl -> get_AllowedReceipts(This,pAllowedReceipts) ) + +#define IFaxReceiptOptions_put_AllowedReceipts(This,AllowedReceipts) \ + ( (This)->lpVtbl -> put_AllowedReceipts(This,AllowedReceipts) ) + +#define IFaxReceiptOptions_get_SMTPPassword(This,pbstrSMTPPassword) \ + ( (This)->lpVtbl -> get_SMTPPassword(This,pbstrSMTPPassword) ) + +#define IFaxReceiptOptions_put_SMTPPassword(This,bstrSMTPPassword) \ + ( (This)->lpVtbl -> put_SMTPPassword(This,bstrSMTPPassword) ) + +#define IFaxReceiptOptions_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxReceiptOptions_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IFaxReceiptOptions_get_UseForInboundRouting(This,pbUseForInboundRouting) \ + ( (This)->lpVtbl -> get_UseForInboundRouting(This,pbUseForInboundRouting) ) + +#define IFaxReceiptOptions_put_UseForInboundRouting(This,bUseForInboundRouting) \ + ( (This)->lpVtbl -> put_UseForInboundRouting(This,bUseForInboundRouting) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxReceiptOptions_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxSecurity_INTERFACE_DEFINED__ +#define __IFaxSecurity_INTERFACE_DEFINED__ + +/* interface IFaxSecurity */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_ACCESS_RIGHTS_ENUM + { + farSUBMIT_LOW = 0x1, + farSUBMIT_NORMAL = 0x2, + farSUBMIT_HIGH = 0x4, + farQUERY_JOBS = 0x8, + farMANAGE_JOBS = 0x10, + farQUERY_CONFIG = 0x20, + farMANAGE_CONFIG = 0x40, + farQUERY_IN_ARCHIVE = 0x80, + farMANAGE_IN_ARCHIVE = 0x100, + farQUERY_OUT_ARCHIVE = 0x200, + farMANAGE_OUT_ARCHIVE = 0x400 + } FAX_ACCESS_RIGHTS_ENUM; + + +EXTERN_C const IID IID_IFaxSecurity; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("77B508C1-09C0-47A2-91EB-FCE7FDF2690E") + IFaxSecurity : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Descriptor( + /* [retval][out] */ __RPC__out VARIANT *pvDescriptor) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Descriptor( + /* [in] */ VARIANT vDescriptor) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GrantedRights( + /* [retval][out] */ __RPC__out FAX_ACCESS_RIGHTS_ENUM *pGrantedRights) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InformationType( + /* [retval][out] */ __RPC__out long *plInformationType) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InformationType( + /* [in] */ long lInformationType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxSecurityVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxSecurity * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxSecurity * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxSecurity * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxSecurity * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxSecurity * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxSecurity * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxSecurity * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxSecurity, get_Descriptor) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Descriptor )( + __RPC__in IFaxSecurity * This, + /* [retval][out] */ __RPC__out VARIANT *pvDescriptor); + + DECLSPEC_XFGVIRT(IFaxSecurity, put_Descriptor) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Descriptor )( + __RPC__in IFaxSecurity * This, + /* [in] */ VARIANT vDescriptor); + + DECLSPEC_XFGVIRT(IFaxSecurity, get_GrantedRights) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GrantedRights )( + __RPC__in IFaxSecurity * This, + /* [retval][out] */ __RPC__out FAX_ACCESS_RIGHTS_ENUM *pGrantedRights); + + DECLSPEC_XFGVIRT(IFaxSecurity, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxSecurity * This); + + DECLSPEC_XFGVIRT(IFaxSecurity, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxSecurity * This); + + DECLSPEC_XFGVIRT(IFaxSecurity, get_InformationType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InformationType )( + __RPC__in IFaxSecurity * This, + /* [retval][out] */ __RPC__out long *plInformationType); + + DECLSPEC_XFGVIRT(IFaxSecurity, put_InformationType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InformationType )( + __RPC__in IFaxSecurity * This, + /* [in] */ long lInformationType); + + END_INTERFACE + } IFaxSecurityVtbl; + + interface IFaxSecurity + { + CONST_VTBL struct IFaxSecurityVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxSecurity_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxSecurity_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxSecurity_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxSecurity_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxSecurity_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxSecurity_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxSecurity_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxSecurity_get_Descriptor(This,pvDescriptor) \ + ( (This)->lpVtbl -> get_Descriptor(This,pvDescriptor) ) + +#define IFaxSecurity_put_Descriptor(This,vDescriptor) \ + ( (This)->lpVtbl -> put_Descriptor(This,vDescriptor) ) + +#define IFaxSecurity_get_GrantedRights(This,pGrantedRights) \ + ( (This)->lpVtbl -> get_GrantedRights(This,pGrantedRights) ) + +#define IFaxSecurity_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxSecurity_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IFaxSecurity_get_InformationType(This,plInformationType) \ + ( (This)->lpVtbl -> get_InformationType(This,plInformationType) ) + +#define IFaxSecurity_put_InformationType(This,lInformationType) \ + ( (This)->lpVtbl -> put_InformationType(This,lInformationType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxSecurity_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxDocument_INTERFACE_DEFINED__ +#define __IFaxDocument_INTERFACE_DEFINED__ + +/* interface IFaxDocument */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_PRIORITY_TYPE_ENUM + { + fptLOW = 0, + fptNORMAL = ( fptLOW + 1 ) , + fptHIGH = ( fptNORMAL + 1 ) + } FAX_PRIORITY_TYPE_ENUM; + +typedef +enum FAX_COVERPAGE_TYPE_ENUM + { + fcptNONE = 0, + fcptLOCAL = ( fcptNONE + 1 ) , + fcptSERVER = ( fcptLOCAL + 1 ) + } FAX_COVERPAGE_TYPE_ENUM; + +typedef +enum FAX_SCHEDULE_TYPE_ENUM + { + fstNOW = 0, + fstSPECIFIC_TIME = ( fstNOW + 1 ) , + fstDISCOUNT_PERIOD = ( fstSPECIFIC_TIME + 1 ) + } FAX_SCHEDULE_TYPE_ENUM; + + +EXTERN_C const IID IID_IFaxDocument; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B207A246-09E3-4A4E-A7DC-FEA31D29458F") + IFaxDocument : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Body( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBody) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Body( + /* [in] */ __RPC__in BSTR bstrBody) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Sender( + /* [retval][out] */ __RPC__deref_out_opt IFaxSender **ppFaxSender) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Recipients( + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipients **ppFaxRecipients) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CoverPage( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCoverPage) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CoverPage( + /* [in] */ __RPC__in BSTR bstrCoverPage) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Subject( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Subject( + /* [in] */ __RPC__in BSTR bstrSubject) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Note( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNote) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Note( + /* [in] */ __RPC__in BSTR bstrNote) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ScheduleTime( + /* [retval][out] */ __RPC__out DATE *pdateScheduleTime) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ScheduleTime( + /* [in] */ DATE dateScheduleTime) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReceiptAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrReceiptAddress) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ReceiptAddress( + /* [in] */ __RPC__in BSTR bstrReceiptAddress) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DocumentName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDocumentName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DocumentName( + /* [in] */ __RPC__in BSTR bstrDocumentName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CallHandle( + /* [retval][out] */ __RPC__out long *plCallHandle) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CallHandle( + /* [in] */ long lCallHandle) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CoverPageType( + /* [retval][out] */ __RPC__out FAX_COVERPAGE_TYPE_ENUM *pCoverPageType) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CoverPageType( + /* [in] */ FAX_COVERPAGE_TYPE_ENUM CoverPageType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ScheduleType( + /* [retval][out] */ __RPC__out FAX_SCHEDULE_TYPE_ENUM *pScheduleType) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ScheduleType( + /* [in] */ FAX_SCHEDULE_TYPE_ENUM ScheduleType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReceiptType( + /* [retval][out] */ __RPC__out FAX_RECEIPT_TYPE_ENUM *pReceiptType) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ReceiptType( + /* [in] */ FAX_RECEIPT_TYPE_ENUM ReceiptType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GroupBroadcastReceipts( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseGrouping) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_GroupBroadcastReceipts( + /* [in] */ VARIANT_BOOL bUseGrouping) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Priority( + /* [retval][out] */ __RPC__out FAX_PRIORITY_TYPE_ENUM *pPriority) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Priority( + /* [in] */ FAX_PRIORITY_TYPE_ENUM Priority) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TapiConnection( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppTapiConnection) = 0; + + virtual /* [helpstring][id][propputref] */ HRESULT STDMETHODCALLTYPE putref_TapiConnection( + /* [in] */ __RPC__in_opt IDispatch *pTapiConnection) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Submit( + /* [in] */ __RPC__in BSTR bstrFaxServerName, + /* [retval][out] */ __RPC__out VARIANT *pvFaxOutgoingJobIDs) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectedSubmit( + /* [in] */ __RPC__in_opt IFaxServer *pFaxServer, + /* [retval][out] */ __RPC__out VARIANT *pvFaxOutgoingJobIDs) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AttachFaxToReceipt( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbAttachFax) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AttachFaxToReceipt( + /* [in] */ VARIANT_BOOL bAttachFax) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxDocumentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxDocument * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxDocument * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxDocument * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxDocument * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxDocument * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Body) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Body )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBody); + + DECLSPEC_XFGVIRT(IFaxDocument, put_Body) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Body )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in BSTR bstrBody); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Sender) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Sender )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxSender **ppFaxSender); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Recipients) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recipients )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipients **ppFaxRecipients); + + DECLSPEC_XFGVIRT(IFaxDocument, get_CoverPage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CoverPage )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCoverPage); + + DECLSPEC_XFGVIRT(IFaxDocument, put_CoverPage) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CoverPage )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in BSTR bstrCoverPage); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Subject) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject); + + DECLSPEC_XFGVIRT(IFaxDocument, put_Subject) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Subject )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in BSTR bstrSubject); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Note) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Note )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNote); + + DECLSPEC_XFGVIRT(IFaxDocument, put_Note) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Note )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in BSTR bstrNote); + + DECLSPEC_XFGVIRT(IFaxDocument, get_ScheduleTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScheduleTime )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__out DATE *pdateScheduleTime); + + DECLSPEC_XFGVIRT(IFaxDocument, put_ScheduleTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ScheduleTime )( + __RPC__in IFaxDocument * This, + /* [in] */ DATE dateScheduleTime); + + DECLSPEC_XFGVIRT(IFaxDocument, get_ReceiptAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptAddress )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrReceiptAddress); + + DECLSPEC_XFGVIRT(IFaxDocument, put_ReceiptAddress) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReceiptAddress )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in BSTR bstrReceiptAddress); + + DECLSPEC_XFGVIRT(IFaxDocument, get_DocumentName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DocumentName )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDocumentName); + + DECLSPEC_XFGVIRT(IFaxDocument, put_DocumentName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DocumentName )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in BSTR bstrDocumentName); + + DECLSPEC_XFGVIRT(IFaxDocument, get_CallHandle) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CallHandle )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__out long *plCallHandle); + + DECLSPEC_XFGVIRT(IFaxDocument, put_CallHandle) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CallHandle )( + __RPC__in IFaxDocument * This, + /* [in] */ long lCallHandle); + + DECLSPEC_XFGVIRT(IFaxDocument, get_CoverPageType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CoverPageType )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__out FAX_COVERPAGE_TYPE_ENUM *pCoverPageType); + + DECLSPEC_XFGVIRT(IFaxDocument, put_CoverPageType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CoverPageType )( + __RPC__in IFaxDocument * This, + /* [in] */ FAX_COVERPAGE_TYPE_ENUM CoverPageType); + + DECLSPEC_XFGVIRT(IFaxDocument, get_ScheduleType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScheduleType )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__out FAX_SCHEDULE_TYPE_ENUM *pScheduleType); + + DECLSPEC_XFGVIRT(IFaxDocument, put_ScheduleType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ScheduleType )( + __RPC__in IFaxDocument * This, + /* [in] */ FAX_SCHEDULE_TYPE_ENUM ScheduleType); + + DECLSPEC_XFGVIRT(IFaxDocument, get_ReceiptType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptType )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__out FAX_RECEIPT_TYPE_ENUM *pReceiptType); + + DECLSPEC_XFGVIRT(IFaxDocument, put_ReceiptType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReceiptType )( + __RPC__in IFaxDocument * This, + /* [in] */ FAX_RECEIPT_TYPE_ENUM ReceiptType); + + DECLSPEC_XFGVIRT(IFaxDocument, get_GroupBroadcastReceipts) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GroupBroadcastReceipts )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseGrouping); + + DECLSPEC_XFGVIRT(IFaxDocument, put_GroupBroadcastReceipts) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_GroupBroadcastReceipts )( + __RPC__in IFaxDocument * This, + /* [in] */ VARIANT_BOOL bUseGrouping); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Priority) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__out FAX_PRIORITY_TYPE_ENUM *pPriority); + + DECLSPEC_XFGVIRT(IFaxDocument, put_Priority) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Priority )( + __RPC__in IFaxDocument * This, + /* [in] */ FAX_PRIORITY_TYPE_ENUM Priority); + + DECLSPEC_XFGVIRT(IFaxDocument, get_TapiConnection) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TapiConnection )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppTapiConnection); + + DECLSPEC_XFGVIRT(IFaxDocument, putref_TapiConnection) + /* [helpstring][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_TapiConnection )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in_opt IDispatch *pTapiConnection); + + DECLSPEC_XFGVIRT(IFaxDocument, Submit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in BSTR bstrFaxServerName, + /* [retval][out] */ __RPC__out VARIANT *pvFaxOutgoingJobIDs); + + DECLSPEC_XFGVIRT(IFaxDocument, ConnectedSubmit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectedSubmit )( + __RPC__in IFaxDocument * This, + /* [in] */ __RPC__in_opt IFaxServer *pFaxServer, + /* [retval][out] */ __RPC__out VARIANT *pvFaxOutgoingJobIDs); + + DECLSPEC_XFGVIRT(IFaxDocument, get_AttachFaxToReceipt) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AttachFaxToReceipt )( + __RPC__in IFaxDocument * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbAttachFax); + + DECLSPEC_XFGVIRT(IFaxDocument, put_AttachFaxToReceipt) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AttachFaxToReceipt )( + __RPC__in IFaxDocument * This, + /* [in] */ VARIANT_BOOL bAttachFax); + + END_INTERFACE + } IFaxDocumentVtbl; + + interface IFaxDocument + { + CONST_VTBL struct IFaxDocumentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxDocument_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxDocument_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxDocument_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxDocument_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxDocument_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxDocument_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxDocument_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxDocument_get_Body(This,pbstrBody) \ + ( (This)->lpVtbl -> get_Body(This,pbstrBody) ) + +#define IFaxDocument_put_Body(This,bstrBody) \ + ( (This)->lpVtbl -> put_Body(This,bstrBody) ) + +#define IFaxDocument_get_Sender(This,ppFaxSender) \ + ( (This)->lpVtbl -> get_Sender(This,ppFaxSender) ) + +#define IFaxDocument_get_Recipients(This,ppFaxRecipients) \ + ( (This)->lpVtbl -> get_Recipients(This,ppFaxRecipients) ) + +#define IFaxDocument_get_CoverPage(This,pbstrCoverPage) \ + ( (This)->lpVtbl -> get_CoverPage(This,pbstrCoverPage) ) + +#define IFaxDocument_put_CoverPage(This,bstrCoverPage) \ + ( (This)->lpVtbl -> put_CoverPage(This,bstrCoverPage) ) + +#define IFaxDocument_get_Subject(This,pbstrSubject) \ + ( (This)->lpVtbl -> get_Subject(This,pbstrSubject) ) + +#define IFaxDocument_put_Subject(This,bstrSubject) \ + ( (This)->lpVtbl -> put_Subject(This,bstrSubject) ) + +#define IFaxDocument_get_Note(This,pbstrNote) \ + ( (This)->lpVtbl -> get_Note(This,pbstrNote) ) + +#define IFaxDocument_put_Note(This,bstrNote) \ + ( (This)->lpVtbl -> put_Note(This,bstrNote) ) + +#define IFaxDocument_get_ScheduleTime(This,pdateScheduleTime) \ + ( (This)->lpVtbl -> get_ScheduleTime(This,pdateScheduleTime) ) + +#define IFaxDocument_put_ScheduleTime(This,dateScheduleTime) \ + ( (This)->lpVtbl -> put_ScheduleTime(This,dateScheduleTime) ) + +#define IFaxDocument_get_ReceiptAddress(This,pbstrReceiptAddress) \ + ( (This)->lpVtbl -> get_ReceiptAddress(This,pbstrReceiptAddress) ) + +#define IFaxDocument_put_ReceiptAddress(This,bstrReceiptAddress) \ + ( (This)->lpVtbl -> put_ReceiptAddress(This,bstrReceiptAddress) ) + +#define IFaxDocument_get_DocumentName(This,pbstrDocumentName) \ + ( (This)->lpVtbl -> get_DocumentName(This,pbstrDocumentName) ) + +#define IFaxDocument_put_DocumentName(This,bstrDocumentName) \ + ( (This)->lpVtbl -> put_DocumentName(This,bstrDocumentName) ) + +#define IFaxDocument_get_CallHandle(This,plCallHandle) \ + ( (This)->lpVtbl -> get_CallHandle(This,plCallHandle) ) + +#define IFaxDocument_put_CallHandle(This,lCallHandle) \ + ( (This)->lpVtbl -> put_CallHandle(This,lCallHandle) ) + +#define IFaxDocument_get_CoverPageType(This,pCoverPageType) \ + ( (This)->lpVtbl -> get_CoverPageType(This,pCoverPageType) ) + +#define IFaxDocument_put_CoverPageType(This,CoverPageType) \ + ( (This)->lpVtbl -> put_CoverPageType(This,CoverPageType) ) + +#define IFaxDocument_get_ScheduleType(This,pScheduleType) \ + ( (This)->lpVtbl -> get_ScheduleType(This,pScheduleType) ) + +#define IFaxDocument_put_ScheduleType(This,ScheduleType) \ + ( (This)->lpVtbl -> put_ScheduleType(This,ScheduleType) ) + +#define IFaxDocument_get_ReceiptType(This,pReceiptType) \ + ( (This)->lpVtbl -> get_ReceiptType(This,pReceiptType) ) + +#define IFaxDocument_put_ReceiptType(This,ReceiptType) \ + ( (This)->lpVtbl -> put_ReceiptType(This,ReceiptType) ) + +#define IFaxDocument_get_GroupBroadcastReceipts(This,pbUseGrouping) \ + ( (This)->lpVtbl -> get_GroupBroadcastReceipts(This,pbUseGrouping) ) + +#define IFaxDocument_put_GroupBroadcastReceipts(This,bUseGrouping) \ + ( (This)->lpVtbl -> put_GroupBroadcastReceipts(This,bUseGrouping) ) + +#define IFaxDocument_get_Priority(This,pPriority) \ + ( (This)->lpVtbl -> get_Priority(This,pPriority) ) + +#define IFaxDocument_put_Priority(This,Priority) \ + ( (This)->lpVtbl -> put_Priority(This,Priority) ) + +#define IFaxDocument_get_TapiConnection(This,ppTapiConnection) \ + ( (This)->lpVtbl -> get_TapiConnection(This,ppTapiConnection) ) + +#define IFaxDocument_putref_TapiConnection(This,pTapiConnection) \ + ( (This)->lpVtbl -> putref_TapiConnection(This,pTapiConnection) ) + +#define IFaxDocument_Submit(This,bstrFaxServerName,pvFaxOutgoingJobIDs) \ + ( (This)->lpVtbl -> Submit(This,bstrFaxServerName,pvFaxOutgoingJobIDs) ) + +#define IFaxDocument_ConnectedSubmit(This,pFaxServer,pvFaxOutgoingJobIDs) \ + ( (This)->lpVtbl -> ConnectedSubmit(This,pFaxServer,pvFaxOutgoingJobIDs) ) + +#define IFaxDocument_get_AttachFaxToReceipt(This,pbAttachFax) \ + ( (This)->lpVtbl -> get_AttachFaxToReceipt(This,pbAttachFax) ) + +#define IFaxDocument_put_AttachFaxToReceipt(This,bAttachFax) \ + ( (This)->lpVtbl -> put_AttachFaxToReceipt(This,bAttachFax) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxDocument_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxSender_INTERFACE_DEFINED__ +#define __IFaxSender_INTERFACE_DEFINED__ + +/* interface IFaxSender */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxSender; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0D879D7D-F57A-4CC6-A6F9-3EE5D527B46A") + IFaxSender : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BillingCode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBillingCode) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BillingCode( + /* [in] */ __RPC__in BSTR bstrBillingCode) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_City( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCity) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_City( + /* [in] */ __RPC__in BSTR bstrCity) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Company( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCompany) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Company( + /* [in] */ __RPC__in BSTR bstrCompany) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Country( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCountry) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Country( + /* [in] */ __RPC__in BSTR bstrCountry) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Department( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDepartment) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Department( + /* [in] */ __RPC__in BSTR bstrDepartment) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Email( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEmail) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Email( + /* [in] */ __RPC__in BSTR bstrEmail) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FaxNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFaxNumber) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FaxNumber( + /* [in] */ __RPC__in BSTR bstrFaxNumber) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HomePhone( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrHomePhone) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HomePhone( + /* [in] */ __RPC__in BSTR bstrHomePhone) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_TSID( + /* [in] */ __RPC__in BSTR bstrTSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OfficePhone( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOfficePhone) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OfficePhone( + /* [in] */ __RPC__in BSTR bstrOfficePhone) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OfficeLocation( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOfficeLocation) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OfficeLocation( + /* [in] */ __RPC__in BSTR bstrOfficeLocation) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrState) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_State( + /* [in] */ __RPC__in BSTR bstrState) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StreetAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrStreetAddress) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StreetAddress( + /* [in] */ __RPC__in BSTR bstrStreetAddress) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Title( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTitle) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Title( + /* [in] */ __RPC__in BSTR bstrTitle) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ZipCode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrZipCode) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ZipCode( + /* [in] */ __RPC__in BSTR bstrZipCode) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LoadDefaultSender( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveDefaultSender( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxSenderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxSender * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxSender * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxSender * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxSender * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxSender * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxSender, get_BillingCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BillingCode )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBillingCode); + + DECLSPEC_XFGVIRT(IFaxSender, put_BillingCode) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BillingCode )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrBillingCode); + + DECLSPEC_XFGVIRT(IFaxSender, get_City) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_City )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCity); + + DECLSPEC_XFGVIRT(IFaxSender, put_City) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_City )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrCity); + + DECLSPEC_XFGVIRT(IFaxSender, get_Company) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Company )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCompany); + + DECLSPEC_XFGVIRT(IFaxSender, put_Company) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Company )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrCompany); + + DECLSPEC_XFGVIRT(IFaxSender, get_Country) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Country )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCountry); + + DECLSPEC_XFGVIRT(IFaxSender, put_Country) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Country )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrCountry); + + DECLSPEC_XFGVIRT(IFaxSender, get_Department) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Department )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDepartment); + + DECLSPEC_XFGVIRT(IFaxSender, put_Department) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Department )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrDepartment); + + DECLSPEC_XFGVIRT(IFaxSender, get_Email) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Email )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrEmail); + + DECLSPEC_XFGVIRT(IFaxSender, put_Email) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Email )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrEmail); + + DECLSPEC_XFGVIRT(IFaxSender, get_FaxNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FaxNumber )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFaxNumber); + + DECLSPEC_XFGVIRT(IFaxSender, put_FaxNumber) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FaxNumber )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrFaxNumber); + + DECLSPEC_XFGVIRT(IFaxSender, get_HomePhone) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HomePhone )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrHomePhone); + + DECLSPEC_XFGVIRT(IFaxSender, put_HomePhone) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HomePhone )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrHomePhone); + + DECLSPEC_XFGVIRT(IFaxSender, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IFaxSender, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IFaxSender, get_TSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID); + + DECLSPEC_XFGVIRT(IFaxSender, put_TSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TSID )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrTSID); + + DECLSPEC_XFGVIRT(IFaxSender, get_OfficePhone) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OfficePhone )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOfficePhone); + + DECLSPEC_XFGVIRT(IFaxSender, put_OfficePhone) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OfficePhone )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrOfficePhone); + + DECLSPEC_XFGVIRT(IFaxSender, get_OfficeLocation) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OfficeLocation )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOfficeLocation); + + DECLSPEC_XFGVIRT(IFaxSender, put_OfficeLocation) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OfficeLocation )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrOfficeLocation); + + DECLSPEC_XFGVIRT(IFaxSender, get_State) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrState); + + DECLSPEC_XFGVIRT(IFaxSender, put_State) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_State )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrState); + + DECLSPEC_XFGVIRT(IFaxSender, get_StreetAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StreetAddress )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrStreetAddress); + + DECLSPEC_XFGVIRT(IFaxSender, put_StreetAddress) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StreetAddress )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrStreetAddress); + + DECLSPEC_XFGVIRT(IFaxSender, get_Title) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Title )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTitle); + + DECLSPEC_XFGVIRT(IFaxSender, put_Title) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Title )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrTitle); + + DECLSPEC_XFGVIRT(IFaxSender, get_ZipCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ZipCode )( + __RPC__in IFaxSender * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrZipCode); + + DECLSPEC_XFGVIRT(IFaxSender, put_ZipCode) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ZipCode )( + __RPC__in IFaxSender * This, + /* [in] */ __RPC__in BSTR bstrZipCode); + + DECLSPEC_XFGVIRT(IFaxSender, LoadDefaultSender) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LoadDefaultSender )( + __RPC__in IFaxSender * This); + + DECLSPEC_XFGVIRT(IFaxSender, SaveDefaultSender) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveDefaultSender )( + __RPC__in IFaxSender * This); + + END_INTERFACE + } IFaxSenderVtbl; + + interface IFaxSender + { + CONST_VTBL struct IFaxSenderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxSender_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxSender_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxSender_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxSender_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxSender_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxSender_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxSender_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxSender_get_BillingCode(This,pbstrBillingCode) \ + ( (This)->lpVtbl -> get_BillingCode(This,pbstrBillingCode) ) + +#define IFaxSender_put_BillingCode(This,bstrBillingCode) \ + ( (This)->lpVtbl -> put_BillingCode(This,bstrBillingCode) ) + +#define IFaxSender_get_City(This,pbstrCity) \ + ( (This)->lpVtbl -> get_City(This,pbstrCity) ) + +#define IFaxSender_put_City(This,bstrCity) \ + ( (This)->lpVtbl -> put_City(This,bstrCity) ) + +#define IFaxSender_get_Company(This,pbstrCompany) \ + ( (This)->lpVtbl -> get_Company(This,pbstrCompany) ) + +#define IFaxSender_put_Company(This,bstrCompany) \ + ( (This)->lpVtbl -> put_Company(This,bstrCompany) ) + +#define IFaxSender_get_Country(This,pbstrCountry) \ + ( (This)->lpVtbl -> get_Country(This,pbstrCountry) ) + +#define IFaxSender_put_Country(This,bstrCountry) \ + ( (This)->lpVtbl -> put_Country(This,bstrCountry) ) + +#define IFaxSender_get_Department(This,pbstrDepartment) \ + ( (This)->lpVtbl -> get_Department(This,pbstrDepartment) ) + +#define IFaxSender_put_Department(This,bstrDepartment) \ + ( (This)->lpVtbl -> put_Department(This,bstrDepartment) ) + +#define IFaxSender_get_Email(This,pbstrEmail) \ + ( (This)->lpVtbl -> get_Email(This,pbstrEmail) ) + +#define IFaxSender_put_Email(This,bstrEmail) \ + ( (This)->lpVtbl -> put_Email(This,bstrEmail) ) + +#define IFaxSender_get_FaxNumber(This,pbstrFaxNumber) \ + ( (This)->lpVtbl -> get_FaxNumber(This,pbstrFaxNumber) ) + +#define IFaxSender_put_FaxNumber(This,bstrFaxNumber) \ + ( (This)->lpVtbl -> put_FaxNumber(This,bstrFaxNumber) ) + +#define IFaxSender_get_HomePhone(This,pbstrHomePhone) \ + ( (This)->lpVtbl -> get_HomePhone(This,pbstrHomePhone) ) + +#define IFaxSender_put_HomePhone(This,bstrHomePhone) \ + ( (This)->lpVtbl -> put_HomePhone(This,bstrHomePhone) ) + +#define IFaxSender_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IFaxSender_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IFaxSender_get_TSID(This,pbstrTSID) \ + ( (This)->lpVtbl -> get_TSID(This,pbstrTSID) ) + +#define IFaxSender_put_TSID(This,bstrTSID) \ + ( (This)->lpVtbl -> put_TSID(This,bstrTSID) ) + +#define IFaxSender_get_OfficePhone(This,pbstrOfficePhone) \ + ( (This)->lpVtbl -> get_OfficePhone(This,pbstrOfficePhone) ) + +#define IFaxSender_put_OfficePhone(This,bstrOfficePhone) \ + ( (This)->lpVtbl -> put_OfficePhone(This,bstrOfficePhone) ) + +#define IFaxSender_get_OfficeLocation(This,pbstrOfficeLocation) \ + ( (This)->lpVtbl -> get_OfficeLocation(This,pbstrOfficeLocation) ) + +#define IFaxSender_put_OfficeLocation(This,bstrOfficeLocation) \ + ( (This)->lpVtbl -> put_OfficeLocation(This,bstrOfficeLocation) ) + +#define IFaxSender_get_State(This,pbstrState) \ + ( (This)->lpVtbl -> get_State(This,pbstrState) ) + +#define IFaxSender_put_State(This,bstrState) \ + ( (This)->lpVtbl -> put_State(This,bstrState) ) + +#define IFaxSender_get_StreetAddress(This,pbstrStreetAddress) \ + ( (This)->lpVtbl -> get_StreetAddress(This,pbstrStreetAddress) ) + +#define IFaxSender_put_StreetAddress(This,bstrStreetAddress) \ + ( (This)->lpVtbl -> put_StreetAddress(This,bstrStreetAddress) ) + +#define IFaxSender_get_Title(This,pbstrTitle) \ + ( (This)->lpVtbl -> get_Title(This,pbstrTitle) ) + +#define IFaxSender_put_Title(This,bstrTitle) \ + ( (This)->lpVtbl -> put_Title(This,bstrTitle) ) + +#define IFaxSender_get_ZipCode(This,pbstrZipCode) \ + ( (This)->lpVtbl -> get_ZipCode(This,pbstrZipCode) ) + +#define IFaxSender_put_ZipCode(This,bstrZipCode) \ + ( (This)->lpVtbl -> put_ZipCode(This,bstrZipCode) ) + +#define IFaxSender_LoadDefaultSender(This) \ + ( (This)->lpVtbl -> LoadDefaultSender(This) ) + +#define IFaxSender_SaveDefaultSender(This) \ + ( (This)->lpVtbl -> SaveDefaultSender(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxSender_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxRecipient_INTERFACE_DEFINED__ +#define __IFaxRecipient_INTERFACE_DEFINED__ + +/* interface IFaxRecipient */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxRecipient; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9A3DA3A0-538D-42b6-9444-AAA57D0CE2BC") + IFaxRecipient : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FaxNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFaxNumber) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FaxNumber( + /* [in] */ __RPC__in BSTR bstrFaxNumber) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxRecipientVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxRecipient * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxRecipient * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxRecipient * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxRecipient * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxRecipient * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxRecipient * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxRecipient * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxRecipient, get_FaxNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FaxNumber )( + __RPC__in IFaxRecipient * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFaxNumber); + + DECLSPEC_XFGVIRT(IFaxRecipient, put_FaxNumber) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FaxNumber )( + __RPC__in IFaxRecipient * This, + /* [in] */ __RPC__in BSTR bstrFaxNumber); + + DECLSPEC_XFGVIRT(IFaxRecipient, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFaxRecipient * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IFaxRecipient, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFaxRecipient * This, + /* [in] */ __RPC__in BSTR bstrName); + + END_INTERFACE + } IFaxRecipientVtbl; + + interface IFaxRecipient + { + CONST_VTBL struct IFaxRecipientVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxRecipient_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxRecipient_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxRecipient_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxRecipient_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxRecipient_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxRecipient_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxRecipient_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxRecipient_get_FaxNumber(This,pbstrFaxNumber) \ + ( (This)->lpVtbl -> get_FaxNumber(This,pbstrFaxNumber) ) + +#define IFaxRecipient_put_FaxNumber(This,bstrFaxNumber) \ + ( (This)->lpVtbl -> put_FaxNumber(This,bstrFaxNumber) ) + +#define IFaxRecipient_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IFaxRecipient_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxRecipient_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxRecipients_INTERFACE_DEFINED__ +#define __IFaxRecipients_INTERFACE_DEFINED__ + +/* interface IFaxRecipients */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxRecipients; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B9C9DE5A-894E-4492-9FA3-08C627C11D5D") + IFaxRecipients : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipient **ppFaxRecipient) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in BSTR bstrFaxNumber, + /* [defaultvalue][in] */ __RPC__in BSTR bstrRecipientName, + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipient **ppFaxRecipient) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ long lIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxRecipientsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxRecipients * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxRecipients * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxRecipients * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxRecipients * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxRecipients * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxRecipients * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxRecipients * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxRecipients, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxRecipients * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxRecipients, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxRecipients * This, + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipient **ppFaxRecipient); + + DECLSPEC_XFGVIRT(IFaxRecipients, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxRecipients * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(IFaxRecipients, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IFaxRecipients * This, + /* [in] */ __RPC__in BSTR bstrFaxNumber, + /* [defaultvalue][in] */ __RPC__in BSTR bstrRecipientName, + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipient **ppFaxRecipient); + + DECLSPEC_XFGVIRT(IFaxRecipients, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IFaxRecipients * This, + /* [in] */ long lIndex); + + END_INTERFACE + } IFaxRecipientsVtbl; + + interface IFaxRecipients + { + CONST_VTBL struct IFaxRecipientsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxRecipients_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxRecipients_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxRecipients_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxRecipients_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxRecipients_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxRecipients_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxRecipients_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxRecipients_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxRecipients_get_Item(This,lIndex,ppFaxRecipient) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,ppFaxRecipient) ) + +#define IFaxRecipients_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IFaxRecipients_Add(This,bstrFaxNumber,bstrRecipientName,ppFaxRecipient) \ + ( (This)->lpVtbl -> Add(This,bstrFaxNumber,bstrRecipientName,ppFaxRecipient) ) + +#define IFaxRecipients_Remove(This,lIndex) \ + ( (This)->lpVtbl -> Remove(This,lIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxRecipients_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxIncomingArchive_INTERFACE_DEFINED__ +#define __IFaxIncomingArchive_INTERFACE_DEFINED__ + +/* interface IFaxIncomingArchive */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxIncomingArchive; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("76062CC7-F714-4FBD-AA06-ED6E4A4B70F3") + IFaxIncomingArchive : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseArchive( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseArchive) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseArchive( + /* [in] */ VARIANT_BOOL bUseArchive) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ArchiveFolder( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrArchiveFolder) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ArchiveFolder( + /* [in] */ __RPC__in BSTR bstrArchiveFolder) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeQuotaWarning( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSizeQuotaWarning) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SizeQuotaWarning( + /* [in] */ VARIANT_BOOL bSizeQuotaWarning) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HighQuotaWaterMark( + /* [retval][out] */ __RPC__out long *plHighQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HighQuotaWaterMark( + /* [in] */ long lHighQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LowQuotaWaterMark( + /* [retval][out] */ __RPC__out long *plLowQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LowQuotaWaterMark( + /* [in] */ long lLowQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AgeLimit( + /* [retval][out] */ __RPC__out long *plAgeLimit) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AgeLimit( + /* [in] */ long lAgeLimit) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeLow( + /* [retval][out] */ __RPC__out long *plSizeLow) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeHigh( + /* [retval][out] */ __RPC__out long *plSizeHigh) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMessages( + /* [defaultvalue][in] */ long lPrefetchSize, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingMessageIterator **pFaxIncomingMessageIterator) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMessage( + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingMessage **pFaxIncomingMessage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxIncomingArchiveVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxIncomingArchive * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxIncomingArchive * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxIncomingArchive * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxIncomingArchive * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxIncomingArchive * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxIncomingArchive * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxIncomingArchive * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, get_UseArchive) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseArchive )( + __RPC__in IFaxIncomingArchive * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseArchive); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, put_UseArchive) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseArchive )( + __RPC__in IFaxIncomingArchive * This, + /* [in] */ VARIANT_BOOL bUseArchive); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, get_ArchiveFolder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchiveFolder )( + __RPC__in IFaxIncomingArchive * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrArchiveFolder); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, put_ArchiveFolder) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ArchiveFolder )( + __RPC__in IFaxIncomingArchive * This, + /* [in] */ __RPC__in BSTR bstrArchiveFolder); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, get_SizeQuotaWarning) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeQuotaWarning )( + __RPC__in IFaxIncomingArchive * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSizeQuotaWarning); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, put_SizeQuotaWarning) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SizeQuotaWarning )( + __RPC__in IFaxIncomingArchive * This, + /* [in] */ VARIANT_BOOL bSizeQuotaWarning); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, get_HighQuotaWaterMark) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HighQuotaWaterMark )( + __RPC__in IFaxIncomingArchive * This, + /* [retval][out] */ __RPC__out long *plHighQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, put_HighQuotaWaterMark) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HighQuotaWaterMark )( + __RPC__in IFaxIncomingArchive * This, + /* [in] */ long lHighQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, get_LowQuotaWaterMark) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LowQuotaWaterMark )( + __RPC__in IFaxIncomingArchive * This, + /* [retval][out] */ __RPC__out long *plLowQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, put_LowQuotaWaterMark) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LowQuotaWaterMark )( + __RPC__in IFaxIncomingArchive * This, + /* [in] */ long lLowQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, get_AgeLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AgeLimit )( + __RPC__in IFaxIncomingArchive * This, + /* [retval][out] */ __RPC__out long *plAgeLimit); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, put_AgeLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AgeLimit )( + __RPC__in IFaxIncomingArchive * This, + /* [in] */ long lAgeLimit); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, get_SizeLow) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeLow )( + __RPC__in IFaxIncomingArchive * This, + /* [retval][out] */ __RPC__out long *plSizeLow); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, get_SizeHigh) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeHigh )( + __RPC__in IFaxIncomingArchive * This, + /* [retval][out] */ __RPC__out long *plSizeHigh); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxIncomingArchive * This); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxIncomingArchive * This); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, GetMessages) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMessages )( + __RPC__in IFaxIncomingArchive * This, + /* [defaultvalue][in] */ long lPrefetchSize, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingMessageIterator **pFaxIncomingMessageIterator); + + DECLSPEC_XFGVIRT(IFaxIncomingArchive, GetMessage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMessage )( + __RPC__in IFaxIncomingArchive * This, + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingMessage **pFaxIncomingMessage); + + END_INTERFACE + } IFaxIncomingArchiveVtbl; + + interface IFaxIncomingArchive + { + CONST_VTBL struct IFaxIncomingArchiveVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxIncomingArchive_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxIncomingArchive_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxIncomingArchive_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxIncomingArchive_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxIncomingArchive_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxIncomingArchive_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxIncomingArchive_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxIncomingArchive_get_UseArchive(This,pbUseArchive) \ + ( (This)->lpVtbl -> get_UseArchive(This,pbUseArchive) ) + +#define IFaxIncomingArchive_put_UseArchive(This,bUseArchive) \ + ( (This)->lpVtbl -> put_UseArchive(This,bUseArchive) ) + +#define IFaxIncomingArchive_get_ArchiveFolder(This,pbstrArchiveFolder) \ + ( (This)->lpVtbl -> get_ArchiveFolder(This,pbstrArchiveFolder) ) + +#define IFaxIncomingArchive_put_ArchiveFolder(This,bstrArchiveFolder) \ + ( (This)->lpVtbl -> put_ArchiveFolder(This,bstrArchiveFolder) ) + +#define IFaxIncomingArchive_get_SizeQuotaWarning(This,pbSizeQuotaWarning) \ + ( (This)->lpVtbl -> get_SizeQuotaWarning(This,pbSizeQuotaWarning) ) + +#define IFaxIncomingArchive_put_SizeQuotaWarning(This,bSizeQuotaWarning) \ + ( (This)->lpVtbl -> put_SizeQuotaWarning(This,bSizeQuotaWarning) ) + +#define IFaxIncomingArchive_get_HighQuotaWaterMark(This,plHighQuotaWaterMark) \ + ( (This)->lpVtbl -> get_HighQuotaWaterMark(This,plHighQuotaWaterMark) ) + +#define IFaxIncomingArchive_put_HighQuotaWaterMark(This,lHighQuotaWaterMark) \ + ( (This)->lpVtbl -> put_HighQuotaWaterMark(This,lHighQuotaWaterMark) ) + +#define IFaxIncomingArchive_get_LowQuotaWaterMark(This,plLowQuotaWaterMark) \ + ( (This)->lpVtbl -> get_LowQuotaWaterMark(This,plLowQuotaWaterMark) ) + +#define IFaxIncomingArchive_put_LowQuotaWaterMark(This,lLowQuotaWaterMark) \ + ( (This)->lpVtbl -> put_LowQuotaWaterMark(This,lLowQuotaWaterMark) ) + +#define IFaxIncomingArchive_get_AgeLimit(This,plAgeLimit) \ + ( (This)->lpVtbl -> get_AgeLimit(This,plAgeLimit) ) + +#define IFaxIncomingArchive_put_AgeLimit(This,lAgeLimit) \ + ( (This)->lpVtbl -> put_AgeLimit(This,lAgeLimit) ) + +#define IFaxIncomingArchive_get_SizeLow(This,plSizeLow) \ + ( (This)->lpVtbl -> get_SizeLow(This,plSizeLow) ) + +#define IFaxIncomingArchive_get_SizeHigh(This,plSizeHigh) \ + ( (This)->lpVtbl -> get_SizeHigh(This,plSizeHigh) ) + +#define IFaxIncomingArchive_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxIncomingArchive_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IFaxIncomingArchive_GetMessages(This,lPrefetchSize,pFaxIncomingMessageIterator) \ + ( (This)->lpVtbl -> GetMessages(This,lPrefetchSize,pFaxIncomingMessageIterator) ) + +#define IFaxIncomingArchive_GetMessage(This,bstrMessageId,pFaxIncomingMessage) \ + ( (This)->lpVtbl -> GetMessage(This,bstrMessageId,pFaxIncomingMessage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxIncomingArchive_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxIncomingQueue_INTERFACE_DEFINED__ +#define __IFaxIncomingQueue_INTERFACE_DEFINED__ + +/* interface IFaxIncomingQueue */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxIncomingQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("902E64EF-8FD8-4B75-9725-6014DF161545") + IFaxIncomingQueue : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Blocked( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbBlocked) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Blocked( + /* [in] */ VARIANT_BOOL bBlocked) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJobs( + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingJobs **pFaxIncomingJobs) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJob( + /* [in] */ __RPC__in BSTR bstrJobId, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingJob **pFaxIncomingJob) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxIncomingQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxIncomingQueue * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxIncomingQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxIncomingQueue * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxIncomingQueue * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxIncomingQueue * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxIncomingQueue * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxIncomingQueue * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxIncomingQueue, get_Blocked) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Blocked )( + __RPC__in IFaxIncomingQueue * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbBlocked); + + DECLSPEC_XFGVIRT(IFaxIncomingQueue, put_Blocked) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Blocked )( + __RPC__in IFaxIncomingQueue * This, + /* [in] */ VARIANT_BOOL bBlocked); + + DECLSPEC_XFGVIRT(IFaxIncomingQueue, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxIncomingQueue * This); + + DECLSPEC_XFGVIRT(IFaxIncomingQueue, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxIncomingQueue * This); + + DECLSPEC_XFGVIRT(IFaxIncomingQueue, GetJobs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJobs )( + __RPC__in IFaxIncomingQueue * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingJobs **pFaxIncomingJobs); + + DECLSPEC_XFGVIRT(IFaxIncomingQueue, GetJob) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJob )( + __RPC__in IFaxIncomingQueue * This, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingJob **pFaxIncomingJob); + + END_INTERFACE + } IFaxIncomingQueueVtbl; + + interface IFaxIncomingQueue + { + CONST_VTBL struct IFaxIncomingQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxIncomingQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxIncomingQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxIncomingQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxIncomingQueue_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxIncomingQueue_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxIncomingQueue_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxIncomingQueue_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxIncomingQueue_get_Blocked(This,pbBlocked) \ + ( (This)->lpVtbl -> get_Blocked(This,pbBlocked) ) + +#define IFaxIncomingQueue_put_Blocked(This,bBlocked) \ + ( (This)->lpVtbl -> put_Blocked(This,bBlocked) ) + +#define IFaxIncomingQueue_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxIncomingQueue_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IFaxIncomingQueue_GetJobs(This,pFaxIncomingJobs) \ + ( (This)->lpVtbl -> GetJobs(This,pFaxIncomingJobs) ) + +#define IFaxIncomingQueue_GetJob(This,bstrJobId,pFaxIncomingJob) \ + ( (This)->lpVtbl -> GetJob(This,bstrJobId,pFaxIncomingJob) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxIncomingQueue_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutgoingArchive_INTERFACE_DEFINED__ +#define __IFaxOutgoingArchive_INTERFACE_DEFINED__ + +/* interface IFaxOutgoingArchive */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutgoingArchive; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C9C28F40-8D80-4E53-810F-9A79919B49FD") + IFaxOutgoingArchive : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseArchive( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseArchive) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseArchive( + /* [in] */ VARIANT_BOOL bUseArchive) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ArchiveFolder( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrArchiveFolder) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ArchiveFolder( + /* [in] */ __RPC__in BSTR bstrArchiveFolder) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeQuotaWarning( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSizeQuotaWarning) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SizeQuotaWarning( + /* [in] */ VARIANT_BOOL bSizeQuotaWarning) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HighQuotaWaterMark( + /* [retval][out] */ __RPC__out long *plHighQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HighQuotaWaterMark( + /* [in] */ long lHighQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LowQuotaWaterMark( + /* [retval][out] */ __RPC__out long *plLowQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LowQuotaWaterMark( + /* [in] */ long lLowQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AgeLimit( + /* [retval][out] */ __RPC__out long *plAgeLimit) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AgeLimit( + /* [in] */ long lAgeLimit) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeLow( + /* [retval][out] */ __RPC__out long *plSizeLow) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeHigh( + /* [retval][out] */ __RPC__out long *plSizeHigh) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMessages( + /* [defaultvalue][in] */ long lPrefetchSize, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingMessageIterator **pFaxOutgoingMessageIterator) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMessage( + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingMessage **pFaxOutgoingMessage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutgoingArchiveVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutgoingArchive * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutgoingArchive * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutgoingArchive * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutgoingArchive * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutgoingArchive * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutgoingArchive * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutgoingArchive * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, get_UseArchive) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseArchive )( + __RPC__in IFaxOutgoingArchive * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseArchive); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, put_UseArchive) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseArchive )( + __RPC__in IFaxOutgoingArchive * This, + /* [in] */ VARIANT_BOOL bUseArchive); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, get_ArchiveFolder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchiveFolder )( + __RPC__in IFaxOutgoingArchive * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrArchiveFolder); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, put_ArchiveFolder) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ArchiveFolder )( + __RPC__in IFaxOutgoingArchive * This, + /* [in] */ __RPC__in BSTR bstrArchiveFolder); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, get_SizeQuotaWarning) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeQuotaWarning )( + __RPC__in IFaxOutgoingArchive * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSizeQuotaWarning); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, put_SizeQuotaWarning) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SizeQuotaWarning )( + __RPC__in IFaxOutgoingArchive * This, + /* [in] */ VARIANT_BOOL bSizeQuotaWarning); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, get_HighQuotaWaterMark) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HighQuotaWaterMark )( + __RPC__in IFaxOutgoingArchive * This, + /* [retval][out] */ __RPC__out long *plHighQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, put_HighQuotaWaterMark) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HighQuotaWaterMark )( + __RPC__in IFaxOutgoingArchive * This, + /* [in] */ long lHighQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, get_LowQuotaWaterMark) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LowQuotaWaterMark )( + __RPC__in IFaxOutgoingArchive * This, + /* [retval][out] */ __RPC__out long *plLowQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, put_LowQuotaWaterMark) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LowQuotaWaterMark )( + __RPC__in IFaxOutgoingArchive * This, + /* [in] */ long lLowQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, get_AgeLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AgeLimit )( + __RPC__in IFaxOutgoingArchive * This, + /* [retval][out] */ __RPC__out long *plAgeLimit); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, put_AgeLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AgeLimit )( + __RPC__in IFaxOutgoingArchive * This, + /* [in] */ long lAgeLimit); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, get_SizeLow) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeLow )( + __RPC__in IFaxOutgoingArchive * This, + /* [retval][out] */ __RPC__out long *plSizeLow); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, get_SizeHigh) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeHigh )( + __RPC__in IFaxOutgoingArchive * This, + /* [retval][out] */ __RPC__out long *plSizeHigh); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxOutgoingArchive * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxOutgoingArchive * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, GetMessages) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMessages )( + __RPC__in IFaxOutgoingArchive * This, + /* [defaultvalue][in] */ long lPrefetchSize, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingMessageIterator **pFaxOutgoingMessageIterator); + + DECLSPEC_XFGVIRT(IFaxOutgoingArchive, GetMessage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMessage )( + __RPC__in IFaxOutgoingArchive * This, + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingMessage **pFaxOutgoingMessage); + + END_INTERFACE + } IFaxOutgoingArchiveVtbl; + + interface IFaxOutgoingArchive + { + CONST_VTBL struct IFaxOutgoingArchiveVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutgoingArchive_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutgoingArchive_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutgoingArchive_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutgoingArchive_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutgoingArchive_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutgoingArchive_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutgoingArchive_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutgoingArchive_get_UseArchive(This,pbUseArchive) \ + ( (This)->lpVtbl -> get_UseArchive(This,pbUseArchive) ) + +#define IFaxOutgoingArchive_put_UseArchive(This,bUseArchive) \ + ( (This)->lpVtbl -> put_UseArchive(This,bUseArchive) ) + +#define IFaxOutgoingArchive_get_ArchiveFolder(This,pbstrArchiveFolder) \ + ( (This)->lpVtbl -> get_ArchiveFolder(This,pbstrArchiveFolder) ) + +#define IFaxOutgoingArchive_put_ArchiveFolder(This,bstrArchiveFolder) \ + ( (This)->lpVtbl -> put_ArchiveFolder(This,bstrArchiveFolder) ) + +#define IFaxOutgoingArchive_get_SizeQuotaWarning(This,pbSizeQuotaWarning) \ + ( (This)->lpVtbl -> get_SizeQuotaWarning(This,pbSizeQuotaWarning) ) + +#define IFaxOutgoingArchive_put_SizeQuotaWarning(This,bSizeQuotaWarning) \ + ( (This)->lpVtbl -> put_SizeQuotaWarning(This,bSizeQuotaWarning) ) + +#define IFaxOutgoingArchive_get_HighQuotaWaterMark(This,plHighQuotaWaterMark) \ + ( (This)->lpVtbl -> get_HighQuotaWaterMark(This,plHighQuotaWaterMark) ) + +#define IFaxOutgoingArchive_put_HighQuotaWaterMark(This,lHighQuotaWaterMark) \ + ( (This)->lpVtbl -> put_HighQuotaWaterMark(This,lHighQuotaWaterMark) ) + +#define IFaxOutgoingArchive_get_LowQuotaWaterMark(This,plLowQuotaWaterMark) \ + ( (This)->lpVtbl -> get_LowQuotaWaterMark(This,plLowQuotaWaterMark) ) + +#define IFaxOutgoingArchive_put_LowQuotaWaterMark(This,lLowQuotaWaterMark) \ + ( (This)->lpVtbl -> put_LowQuotaWaterMark(This,lLowQuotaWaterMark) ) + +#define IFaxOutgoingArchive_get_AgeLimit(This,plAgeLimit) \ + ( (This)->lpVtbl -> get_AgeLimit(This,plAgeLimit) ) + +#define IFaxOutgoingArchive_put_AgeLimit(This,lAgeLimit) \ + ( (This)->lpVtbl -> put_AgeLimit(This,lAgeLimit) ) + +#define IFaxOutgoingArchive_get_SizeLow(This,plSizeLow) \ + ( (This)->lpVtbl -> get_SizeLow(This,plSizeLow) ) + +#define IFaxOutgoingArchive_get_SizeHigh(This,plSizeHigh) \ + ( (This)->lpVtbl -> get_SizeHigh(This,plSizeHigh) ) + +#define IFaxOutgoingArchive_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxOutgoingArchive_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IFaxOutgoingArchive_GetMessages(This,lPrefetchSize,pFaxOutgoingMessageIterator) \ + ( (This)->lpVtbl -> GetMessages(This,lPrefetchSize,pFaxOutgoingMessageIterator) ) + +#define IFaxOutgoingArchive_GetMessage(This,bstrMessageId,pFaxOutgoingMessage) \ + ( (This)->lpVtbl -> GetMessage(This,bstrMessageId,pFaxOutgoingMessage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutgoingArchive_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutgoingQueue_INTERFACE_DEFINED__ +#define __IFaxOutgoingQueue_INTERFACE_DEFINED__ + +/* interface IFaxOutgoingQueue */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutgoingQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("80B1DF24-D9AC-4333-B373-487CEDC80CE5") + IFaxOutgoingQueue : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Blocked( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbBlocked) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Blocked( + /* [in] */ VARIANT_BOOL bBlocked) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Paused( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbPaused) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Paused( + /* [in] */ VARIANT_BOOL bPaused) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AllowPersonalCoverPages( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbAllowPersonalCoverPages) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AllowPersonalCoverPages( + /* [in] */ VARIANT_BOOL bAllowPersonalCoverPages) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseDeviceTSID( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseDeviceTSID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseDeviceTSID( + /* [in] */ VARIANT_BOOL bUseDeviceTSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Retries( + /* [retval][out] */ __RPC__out long *plRetries) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Retries( + /* [in] */ long lRetries) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RetryDelay( + /* [retval][out] */ __RPC__out long *plRetryDelay) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RetryDelay( + /* [in] */ long lRetryDelay) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscountRateStart( + /* [retval][out] */ __RPC__out DATE *pdateDiscountRateStart) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DiscountRateStart( + /* [in] */ DATE dateDiscountRateStart) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscountRateEnd( + /* [retval][out] */ __RPC__out DATE *pdateDiscountRateEnd) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DiscountRateEnd( + /* [in] */ DATE dateDiscountRateEnd) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AgeLimit( + /* [retval][out] */ __RPC__out long *plAgeLimit) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AgeLimit( + /* [in] */ long lAgeLimit) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Branding( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbBranding) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Branding( + /* [in] */ VARIANT_BOOL bBranding) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJobs( + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingJobs **pFaxOutgoingJobs) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJob( + /* [in] */ __RPC__in BSTR bstrJobId, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingJob **pFaxOutgoingJob) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutgoingQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutgoingQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutgoingQueue * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutgoingQueue * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutgoingQueue * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, get_Blocked) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Blocked )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbBlocked); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, put_Blocked) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Blocked )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ VARIANT_BOOL bBlocked); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, get_Paused) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Paused )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbPaused); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, put_Paused) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Paused )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ VARIANT_BOOL bPaused); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, get_AllowPersonalCoverPages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowPersonalCoverPages )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbAllowPersonalCoverPages); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, put_AllowPersonalCoverPages) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowPersonalCoverPages )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ VARIANT_BOOL bAllowPersonalCoverPages); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, get_UseDeviceTSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseDeviceTSID )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseDeviceTSID); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, put_UseDeviceTSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseDeviceTSID )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ VARIANT_BOOL bUseDeviceTSID); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__out long *plRetries); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, put_Retries) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Retries )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ long lRetries); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, get_RetryDelay) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetryDelay )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__out long *plRetryDelay); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, put_RetryDelay) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RetryDelay )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ long lRetryDelay); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, get_DiscountRateStart) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscountRateStart )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__out DATE *pdateDiscountRateStart); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, put_DiscountRateStart) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DiscountRateStart )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ DATE dateDiscountRateStart); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, get_DiscountRateEnd) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscountRateEnd )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__out DATE *pdateDiscountRateEnd); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, put_DiscountRateEnd) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DiscountRateEnd )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ DATE dateDiscountRateEnd); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, get_AgeLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AgeLimit )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__out long *plAgeLimit); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, put_AgeLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AgeLimit )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ long lAgeLimit); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, get_Branding) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Branding )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbBranding); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, put_Branding) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Branding )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ VARIANT_BOOL bBranding); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxOutgoingQueue * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxOutgoingQueue * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, GetJobs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJobs )( + __RPC__in IFaxOutgoingQueue * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingJobs **pFaxOutgoingJobs); + + DECLSPEC_XFGVIRT(IFaxOutgoingQueue, GetJob) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJob )( + __RPC__in IFaxOutgoingQueue * This, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingJob **pFaxOutgoingJob); + + END_INTERFACE + } IFaxOutgoingQueueVtbl; + + interface IFaxOutgoingQueue + { + CONST_VTBL struct IFaxOutgoingQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutgoingQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutgoingQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutgoingQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutgoingQueue_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutgoingQueue_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutgoingQueue_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutgoingQueue_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutgoingQueue_get_Blocked(This,pbBlocked) \ + ( (This)->lpVtbl -> get_Blocked(This,pbBlocked) ) + +#define IFaxOutgoingQueue_put_Blocked(This,bBlocked) \ + ( (This)->lpVtbl -> put_Blocked(This,bBlocked) ) + +#define IFaxOutgoingQueue_get_Paused(This,pbPaused) \ + ( (This)->lpVtbl -> get_Paused(This,pbPaused) ) + +#define IFaxOutgoingQueue_put_Paused(This,bPaused) \ + ( (This)->lpVtbl -> put_Paused(This,bPaused) ) + +#define IFaxOutgoingQueue_get_AllowPersonalCoverPages(This,pbAllowPersonalCoverPages) \ + ( (This)->lpVtbl -> get_AllowPersonalCoverPages(This,pbAllowPersonalCoverPages) ) + +#define IFaxOutgoingQueue_put_AllowPersonalCoverPages(This,bAllowPersonalCoverPages) \ + ( (This)->lpVtbl -> put_AllowPersonalCoverPages(This,bAllowPersonalCoverPages) ) + +#define IFaxOutgoingQueue_get_UseDeviceTSID(This,pbUseDeviceTSID) \ + ( (This)->lpVtbl -> get_UseDeviceTSID(This,pbUseDeviceTSID) ) + +#define IFaxOutgoingQueue_put_UseDeviceTSID(This,bUseDeviceTSID) \ + ( (This)->lpVtbl -> put_UseDeviceTSID(This,bUseDeviceTSID) ) + +#define IFaxOutgoingQueue_get_Retries(This,plRetries) \ + ( (This)->lpVtbl -> get_Retries(This,plRetries) ) + +#define IFaxOutgoingQueue_put_Retries(This,lRetries) \ + ( (This)->lpVtbl -> put_Retries(This,lRetries) ) + +#define IFaxOutgoingQueue_get_RetryDelay(This,plRetryDelay) \ + ( (This)->lpVtbl -> get_RetryDelay(This,plRetryDelay) ) + +#define IFaxOutgoingQueue_put_RetryDelay(This,lRetryDelay) \ + ( (This)->lpVtbl -> put_RetryDelay(This,lRetryDelay) ) + +#define IFaxOutgoingQueue_get_DiscountRateStart(This,pdateDiscountRateStart) \ + ( (This)->lpVtbl -> get_DiscountRateStart(This,pdateDiscountRateStart) ) + +#define IFaxOutgoingQueue_put_DiscountRateStart(This,dateDiscountRateStart) \ + ( (This)->lpVtbl -> put_DiscountRateStart(This,dateDiscountRateStart) ) + +#define IFaxOutgoingQueue_get_DiscountRateEnd(This,pdateDiscountRateEnd) \ + ( (This)->lpVtbl -> get_DiscountRateEnd(This,pdateDiscountRateEnd) ) + +#define IFaxOutgoingQueue_put_DiscountRateEnd(This,dateDiscountRateEnd) \ + ( (This)->lpVtbl -> put_DiscountRateEnd(This,dateDiscountRateEnd) ) + +#define IFaxOutgoingQueue_get_AgeLimit(This,plAgeLimit) \ + ( (This)->lpVtbl -> get_AgeLimit(This,plAgeLimit) ) + +#define IFaxOutgoingQueue_put_AgeLimit(This,lAgeLimit) \ + ( (This)->lpVtbl -> put_AgeLimit(This,lAgeLimit) ) + +#define IFaxOutgoingQueue_get_Branding(This,pbBranding) \ + ( (This)->lpVtbl -> get_Branding(This,pbBranding) ) + +#define IFaxOutgoingQueue_put_Branding(This,bBranding) \ + ( (This)->lpVtbl -> put_Branding(This,bBranding) ) + +#define IFaxOutgoingQueue_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxOutgoingQueue_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IFaxOutgoingQueue_GetJobs(This,pFaxOutgoingJobs) \ + ( (This)->lpVtbl -> GetJobs(This,pFaxOutgoingJobs) ) + +#define IFaxOutgoingQueue_GetJob(This,bstrJobId,pFaxOutgoingJob) \ + ( (This)->lpVtbl -> GetJob(This,bstrJobId,pFaxOutgoingJob) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutgoingQueue_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxIncomingMessageIterator_INTERFACE_DEFINED__ +#define __IFaxIncomingMessageIterator_INTERFACE_DEFINED__ + +/* interface IFaxIncomingMessageIterator */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxIncomingMessageIterator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FD73ECC4-6F06-4F52-82A8-F7BA06AE3108") + IFaxIncomingMessageIterator : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Message( + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingMessage **pFaxIncomingMessage) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PrefetchSize( + /* [retval][out] */ __RPC__out long *plPrefetchSize) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PrefetchSize( + /* [in] */ long lPrefetchSize) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AtEOF( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbEOF) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MoveFirst( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MoveNext( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxIncomingMessageIteratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxIncomingMessageIterator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxIncomingMessageIterator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxIncomingMessageIterator * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxIncomingMessageIterator * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxIncomingMessageIterator * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxIncomingMessageIterator * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxIncomingMessageIterator * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxIncomingMessageIterator, get_Message) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Message )( + __RPC__in IFaxIncomingMessageIterator * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingMessage **pFaxIncomingMessage); + + DECLSPEC_XFGVIRT(IFaxIncomingMessageIterator, get_PrefetchSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrefetchSize )( + __RPC__in IFaxIncomingMessageIterator * This, + /* [retval][out] */ __RPC__out long *plPrefetchSize); + + DECLSPEC_XFGVIRT(IFaxIncomingMessageIterator, put_PrefetchSize) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PrefetchSize )( + __RPC__in IFaxIncomingMessageIterator * This, + /* [in] */ long lPrefetchSize); + + DECLSPEC_XFGVIRT(IFaxIncomingMessageIterator, get_AtEOF) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AtEOF )( + __RPC__in IFaxIncomingMessageIterator * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbEOF); + + DECLSPEC_XFGVIRT(IFaxIncomingMessageIterator, MoveFirst) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveFirst )( + __RPC__in IFaxIncomingMessageIterator * This); + + DECLSPEC_XFGVIRT(IFaxIncomingMessageIterator, MoveNext) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IFaxIncomingMessageIterator * This); + + END_INTERFACE + } IFaxIncomingMessageIteratorVtbl; + + interface IFaxIncomingMessageIterator + { + CONST_VTBL struct IFaxIncomingMessageIteratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxIncomingMessageIterator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxIncomingMessageIterator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxIncomingMessageIterator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxIncomingMessageIterator_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxIncomingMessageIterator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxIncomingMessageIterator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxIncomingMessageIterator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxIncomingMessageIterator_get_Message(This,pFaxIncomingMessage) \ + ( (This)->lpVtbl -> get_Message(This,pFaxIncomingMessage) ) + +#define IFaxIncomingMessageIterator_get_PrefetchSize(This,plPrefetchSize) \ + ( (This)->lpVtbl -> get_PrefetchSize(This,plPrefetchSize) ) + +#define IFaxIncomingMessageIterator_put_PrefetchSize(This,lPrefetchSize) \ + ( (This)->lpVtbl -> put_PrefetchSize(This,lPrefetchSize) ) + +#define IFaxIncomingMessageIterator_get_AtEOF(This,pbEOF) \ + ( (This)->lpVtbl -> get_AtEOF(This,pbEOF) ) + +#define IFaxIncomingMessageIterator_MoveFirst(This) \ + ( (This)->lpVtbl -> MoveFirst(This) ) + +#define IFaxIncomingMessageIterator_MoveNext(This) \ + ( (This)->lpVtbl -> MoveNext(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxIncomingMessageIterator_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxIncomingMessage_INTERFACE_DEFINED__ +#define __IFaxIncomingMessage_INTERFACE_DEFINED__ + +/* interface IFaxIncomingMessage */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxIncomingMessage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7CAB88FA-2EF9-4851-B2F3-1D148FED8447") + IFaxIncomingMessage : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Pages( + /* [retval][out] */ __RPC__out long *plPages) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out long *plSize) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDeviceName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Retries( + /* [retval][out] */ __RPC__out long *plRetries) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransmissionStart( + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransmissionEnd( + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CallerId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCallerId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RoutingInformation( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRoutingInformation) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyTiff( + /* [in] */ __RPC__in BSTR bstrTiffPath) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxIncomingMessageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxIncomingMessage * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxIncomingMessage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxIncomingMessage * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxIncomingMessage * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxIncomingMessage * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxIncomingMessage * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxIncomingMessage * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_Pages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pages )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__out long *plPages); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_Size) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__out long *plSize); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_DeviceName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceName )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDeviceName); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__out long *plRetries); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_TransmissionStart) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionStart )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_TransmissionEnd) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionEnd )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_CSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CSID )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_TSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_CallerId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CallerId )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCallerId); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_RoutingInformation) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoutingInformation )( + __RPC__in IFaxIncomingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRoutingInformation); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, CopyTiff) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTiff )( + __RPC__in IFaxIncomingMessage * This, + /* [in] */ __RPC__in BSTR bstrTiffPath); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFaxIncomingMessage * This); + + END_INTERFACE + } IFaxIncomingMessageVtbl; + + interface IFaxIncomingMessage + { + CONST_VTBL struct IFaxIncomingMessageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxIncomingMessage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxIncomingMessage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxIncomingMessage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxIncomingMessage_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxIncomingMessage_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxIncomingMessage_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxIncomingMessage_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxIncomingMessage_get_Id(This,pbstrId) \ + ( (This)->lpVtbl -> get_Id(This,pbstrId) ) + +#define IFaxIncomingMessage_get_Pages(This,plPages) \ + ( (This)->lpVtbl -> get_Pages(This,plPages) ) + +#define IFaxIncomingMessage_get_Size(This,plSize) \ + ( (This)->lpVtbl -> get_Size(This,plSize) ) + +#define IFaxIncomingMessage_get_DeviceName(This,pbstrDeviceName) \ + ( (This)->lpVtbl -> get_DeviceName(This,pbstrDeviceName) ) + +#define IFaxIncomingMessage_get_Retries(This,plRetries) \ + ( (This)->lpVtbl -> get_Retries(This,plRetries) ) + +#define IFaxIncomingMessage_get_TransmissionStart(This,pdateTransmissionStart) \ + ( (This)->lpVtbl -> get_TransmissionStart(This,pdateTransmissionStart) ) + +#define IFaxIncomingMessage_get_TransmissionEnd(This,pdateTransmissionEnd) \ + ( (This)->lpVtbl -> get_TransmissionEnd(This,pdateTransmissionEnd) ) + +#define IFaxIncomingMessage_get_CSID(This,pbstrCSID) \ + ( (This)->lpVtbl -> get_CSID(This,pbstrCSID) ) + +#define IFaxIncomingMessage_get_TSID(This,pbstrTSID) \ + ( (This)->lpVtbl -> get_TSID(This,pbstrTSID) ) + +#define IFaxIncomingMessage_get_CallerId(This,pbstrCallerId) \ + ( (This)->lpVtbl -> get_CallerId(This,pbstrCallerId) ) + +#define IFaxIncomingMessage_get_RoutingInformation(This,pbstrRoutingInformation) \ + ( (This)->lpVtbl -> get_RoutingInformation(This,pbstrRoutingInformation) ) + +#define IFaxIncomingMessage_CopyTiff(This,bstrTiffPath) \ + ( (This)->lpVtbl -> CopyTiff(This,bstrTiffPath) ) + +#define IFaxIncomingMessage_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxIncomingMessage_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutgoingJobs_INTERFACE_DEFINED__ +#define __IFaxOutgoingJobs_INTERFACE_DEFINED__ + +/* interface IFaxOutgoingJobs */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutgoingJobs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C56D8E6-8C2F-4573-944C-E505F8F5AEED") + IFaxOutgoingJobs : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingJob **pFaxOutgoingJob) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutgoingJobsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutgoingJobs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutgoingJobs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutgoingJobs * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutgoingJobs * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutgoingJobs * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutgoingJobs * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutgoingJobs * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutgoingJobs, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxOutgoingJobs * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxOutgoingJobs, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxOutgoingJobs * This, + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingJob **pFaxOutgoingJob); + + DECLSPEC_XFGVIRT(IFaxOutgoingJobs, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxOutgoingJobs * This, + /* [retval][out] */ __RPC__out long *plCount); + + END_INTERFACE + } IFaxOutgoingJobsVtbl; + + interface IFaxOutgoingJobs + { + CONST_VTBL struct IFaxOutgoingJobsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutgoingJobs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutgoingJobs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutgoingJobs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutgoingJobs_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutgoingJobs_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutgoingJobs_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutgoingJobs_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutgoingJobs_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxOutgoingJobs_get_Item(This,vIndex,pFaxOutgoingJob) \ + ( (This)->lpVtbl -> get_Item(This,vIndex,pFaxOutgoingJob) ) + +#define IFaxOutgoingJobs_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutgoingJobs_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutgoingJob_INTERFACE_DEFINED__ +#define __IFaxOutgoingJob_INTERFACE_DEFINED__ + +/* interface IFaxOutgoingJob */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutgoingJob; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6356DAAD-6614-4583-BF7A-3AD67BBFC71C") + IFaxOutgoingJob : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Subject( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DocumentName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDocumentName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Pages( + /* [retval][out] */ __RPC__out long *plPages) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out long *plSize) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubmissionId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubmissionId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OriginalScheduledTime( + /* [retval][out] */ __RPC__out DATE *pdateOriginalScheduledTime) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubmissionTime( + /* [retval][out] */ __RPC__out DATE *pdateSubmissionTime) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReceiptType( + /* [retval][out] */ __RPC__out FAX_RECEIPT_TYPE_ENUM *pReceiptType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Priority( + /* [retval][out] */ __RPC__out FAX_PRIORITY_TYPE_ENUM *pPriority) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Sender( + /* [retval][out] */ __RPC__deref_out_opt IFaxSender **ppFaxSender) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Recipient( + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipient **ppFaxRecipient) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPage( + /* [retval][out] */ __RPC__out long *plCurrentPage) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceId( + /* [retval][out] */ __RPC__out long *plDeviceId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out FAX_JOB_STATUS_ENUM *pStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExtendedStatusCode( + /* [retval][out] */ __RPC__out FAX_JOB_EXTENDED_STATUS_ENUM *pExtendedStatusCode) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExtendedStatus( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtendedStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AvailableOperations( + /* [retval][out] */ __RPC__out FAX_JOB_OPERATIONS_ENUM *pAvailableOperations) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Retries( + /* [retval][out] */ __RPC__out long *plRetries) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ScheduledTime( + /* [retval][out] */ __RPC__out DATE *pdateScheduledTime) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransmissionStart( + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransmissionEnd( + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GroupBroadcastReceipts( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbGroupBroadcastReceipts) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Resume( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Restart( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyTiff( + /* [in] */ __RPC__in BSTR bstrTiffPath) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutgoingJobVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutgoingJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutgoingJob * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutgoingJob * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutgoingJob * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutgoingJob * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutgoingJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutgoingJob * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Subject) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_DocumentName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DocumentName )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDocumentName); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Pages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pages )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out long *plPages); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Size) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out long *plSize); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_SubmissionId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubmissionId )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubmissionId); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_OriginalScheduledTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OriginalScheduledTime )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out DATE *pdateOriginalScheduledTime); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_SubmissionTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubmissionTime )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out DATE *pdateSubmissionTime); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_ReceiptType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptType )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out FAX_RECEIPT_TYPE_ENUM *pReceiptType); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Priority) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out FAX_PRIORITY_TYPE_ENUM *pPriority); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Sender) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Sender )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxSender **ppFaxSender); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Recipient) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recipient )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipient **ppFaxRecipient); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_CurrentPage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPage )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out long *plCurrentPage); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_DeviceId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceId )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out long *plDeviceId); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Status) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out FAX_JOB_STATUS_ENUM *pStatus); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_ExtendedStatusCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtendedStatusCode )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out FAX_JOB_EXTENDED_STATUS_ENUM *pExtendedStatusCode); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_ExtendedStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtendedStatus )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtendedStatus); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_AvailableOperations) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AvailableOperations )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out FAX_JOB_OPERATIONS_ENUM *pAvailableOperations); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out long *plRetries); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_ScheduledTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScheduledTime )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out DATE *pdateScheduledTime); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_TransmissionStart) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionStart )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_TransmissionEnd) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionEnd )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_CSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CSID )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_TSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_GroupBroadcastReceipts) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GroupBroadcastReceipts )( + __RPC__in IFaxOutgoingJob * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbGroupBroadcastReceipts); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, Pause) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( + __RPC__in IFaxOutgoingJob * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, Resume) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IFaxOutgoingJob * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, Restart) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Restart )( + __RPC__in IFaxOutgoingJob * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, CopyTiff) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTiff )( + __RPC__in IFaxOutgoingJob * This, + /* [in] */ __RPC__in BSTR bstrTiffPath); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxOutgoingJob * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, Cancel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IFaxOutgoingJob * This); + + END_INTERFACE + } IFaxOutgoingJobVtbl; + + interface IFaxOutgoingJob + { + CONST_VTBL struct IFaxOutgoingJobVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutgoingJob_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutgoingJob_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutgoingJob_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutgoingJob_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutgoingJob_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutgoingJob_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutgoingJob_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutgoingJob_get_Subject(This,pbstrSubject) \ + ( (This)->lpVtbl -> get_Subject(This,pbstrSubject) ) + +#define IFaxOutgoingJob_get_DocumentName(This,pbstrDocumentName) \ + ( (This)->lpVtbl -> get_DocumentName(This,pbstrDocumentName) ) + +#define IFaxOutgoingJob_get_Pages(This,plPages) \ + ( (This)->lpVtbl -> get_Pages(This,plPages) ) + +#define IFaxOutgoingJob_get_Size(This,plSize) \ + ( (This)->lpVtbl -> get_Size(This,plSize) ) + +#define IFaxOutgoingJob_get_SubmissionId(This,pbstrSubmissionId) \ + ( (This)->lpVtbl -> get_SubmissionId(This,pbstrSubmissionId) ) + +#define IFaxOutgoingJob_get_Id(This,pbstrId) \ + ( (This)->lpVtbl -> get_Id(This,pbstrId) ) + +#define IFaxOutgoingJob_get_OriginalScheduledTime(This,pdateOriginalScheduledTime) \ + ( (This)->lpVtbl -> get_OriginalScheduledTime(This,pdateOriginalScheduledTime) ) + +#define IFaxOutgoingJob_get_SubmissionTime(This,pdateSubmissionTime) \ + ( (This)->lpVtbl -> get_SubmissionTime(This,pdateSubmissionTime) ) + +#define IFaxOutgoingJob_get_ReceiptType(This,pReceiptType) \ + ( (This)->lpVtbl -> get_ReceiptType(This,pReceiptType) ) + +#define IFaxOutgoingJob_get_Priority(This,pPriority) \ + ( (This)->lpVtbl -> get_Priority(This,pPriority) ) + +#define IFaxOutgoingJob_get_Sender(This,ppFaxSender) \ + ( (This)->lpVtbl -> get_Sender(This,ppFaxSender) ) + +#define IFaxOutgoingJob_get_Recipient(This,ppFaxRecipient) \ + ( (This)->lpVtbl -> get_Recipient(This,ppFaxRecipient) ) + +#define IFaxOutgoingJob_get_CurrentPage(This,plCurrentPage) \ + ( (This)->lpVtbl -> get_CurrentPage(This,plCurrentPage) ) + +#define IFaxOutgoingJob_get_DeviceId(This,plDeviceId) \ + ( (This)->lpVtbl -> get_DeviceId(This,plDeviceId) ) + +#define IFaxOutgoingJob_get_Status(This,pStatus) \ + ( (This)->lpVtbl -> get_Status(This,pStatus) ) + +#define IFaxOutgoingJob_get_ExtendedStatusCode(This,pExtendedStatusCode) \ + ( (This)->lpVtbl -> get_ExtendedStatusCode(This,pExtendedStatusCode) ) + +#define IFaxOutgoingJob_get_ExtendedStatus(This,pbstrExtendedStatus) \ + ( (This)->lpVtbl -> get_ExtendedStatus(This,pbstrExtendedStatus) ) + +#define IFaxOutgoingJob_get_AvailableOperations(This,pAvailableOperations) \ + ( (This)->lpVtbl -> get_AvailableOperations(This,pAvailableOperations) ) + +#define IFaxOutgoingJob_get_Retries(This,plRetries) \ + ( (This)->lpVtbl -> get_Retries(This,plRetries) ) + +#define IFaxOutgoingJob_get_ScheduledTime(This,pdateScheduledTime) \ + ( (This)->lpVtbl -> get_ScheduledTime(This,pdateScheduledTime) ) + +#define IFaxOutgoingJob_get_TransmissionStart(This,pdateTransmissionStart) \ + ( (This)->lpVtbl -> get_TransmissionStart(This,pdateTransmissionStart) ) + +#define IFaxOutgoingJob_get_TransmissionEnd(This,pdateTransmissionEnd) \ + ( (This)->lpVtbl -> get_TransmissionEnd(This,pdateTransmissionEnd) ) + +#define IFaxOutgoingJob_get_CSID(This,pbstrCSID) \ + ( (This)->lpVtbl -> get_CSID(This,pbstrCSID) ) + +#define IFaxOutgoingJob_get_TSID(This,pbstrTSID) \ + ( (This)->lpVtbl -> get_TSID(This,pbstrTSID) ) + +#define IFaxOutgoingJob_get_GroupBroadcastReceipts(This,pbGroupBroadcastReceipts) \ + ( (This)->lpVtbl -> get_GroupBroadcastReceipts(This,pbGroupBroadcastReceipts) ) + +#define IFaxOutgoingJob_Pause(This) \ + ( (This)->lpVtbl -> Pause(This) ) + +#define IFaxOutgoingJob_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#define IFaxOutgoingJob_Restart(This) \ + ( (This)->lpVtbl -> Restart(This) ) + +#define IFaxOutgoingJob_CopyTiff(This,bstrTiffPath) \ + ( (This)->lpVtbl -> CopyTiff(This,bstrTiffPath) ) + +#define IFaxOutgoingJob_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxOutgoingJob_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutgoingJob_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutgoingMessageIterator_INTERFACE_DEFINED__ +#define __IFaxOutgoingMessageIterator_INTERFACE_DEFINED__ + +/* interface IFaxOutgoingMessageIterator */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutgoingMessageIterator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F5EC5D4F-B840-432F-9980-112FE42A9B7A") + IFaxOutgoingMessageIterator : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Message( + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingMessage **pFaxOutgoingMessage) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AtEOF( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbEOF) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PrefetchSize( + /* [retval][out] */ __RPC__out long *plPrefetchSize) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PrefetchSize( + /* [in] */ long lPrefetchSize) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MoveFirst( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MoveNext( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutgoingMessageIteratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutgoingMessageIterator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutgoingMessageIterator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutgoingMessageIterator * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutgoingMessageIterator * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutgoingMessageIterator * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutgoingMessageIterator * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutgoingMessageIterator * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessageIterator, get_Message) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Message )( + __RPC__in IFaxOutgoingMessageIterator * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingMessage **pFaxOutgoingMessage); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessageIterator, get_AtEOF) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AtEOF )( + __RPC__in IFaxOutgoingMessageIterator * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbEOF); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessageIterator, get_PrefetchSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrefetchSize )( + __RPC__in IFaxOutgoingMessageIterator * This, + /* [retval][out] */ __RPC__out long *plPrefetchSize); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessageIterator, put_PrefetchSize) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PrefetchSize )( + __RPC__in IFaxOutgoingMessageIterator * This, + /* [in] */ long lPrefetchSize); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessageIterator, MoveFirst) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveFirst )( + __RPC__in IFaxOutgoingMessageIterator * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessageIterator, MoveNext) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in IFaxOutgoingMessageIterator * This); + + END_INTERFACE + } IFaxOutgoingMessageIteratorVtbl; + + interface IFaxOutgoingMessageIterator + { + CONST_VTBL struct IFaxOutgoingMessageIteratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutgoingMessageIterator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutgoingMessageIterator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutgoingMessageIterator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutgoingMessageIterator_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutgoingMessageIterator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutgoingMessageIterator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutgoingMessageIterator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutgoingMessageIterator_get_Message(This,pFaxOutgoingMessage) \ + ( (This)->lpVtbl -> get_Message(This,pFaxOutgoingMessage) ) + +#define IFaxOutgoingMessageIterator_get_AtEOF(This,pbEOF) \ + ( (This)->lpVtbl -> get_AtEOF(This,pbEOF) ) + +#define IFaxOutgoingMessageIterator_get_PrefetchSize(This,plPrefetchSize) \ + ( (This)->lpVtbl -> get_PrefetchSize(This,plPrefetchSize) ) + +#define IFaxOutgoingMessageIterator_put_PrefetchSize(This,lPrefetchSize) \ + ( (This)->lpVtbl -> put_PrefetchSize(This,lPrefetchSize) ) + +#define IFaxOutgoingMessageIterator_MoveFirst(This) \ + ( (This)->lpVtbl -> MoveFirst(This) ) + +#define IFaxOutgoingMessageIterator_MoveNext(This) \ + ( (This)->lpVtbl -> MoveNext(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutgoingMessageIterator_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutgoingMessage_INTERFACE_DEFINED__ +#define __IFaxOutgoingMessage_INTERFACE_DEFINED__ + +/* interface IFaxOutgoingMessage */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutgoingMessage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F0EA35DE-CAA5-4A7C-82C7-2B60BA5F2BE2") + IFaxOutgoingMessage : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubmissionId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubmissionId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Subject( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DocumentName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDocumentName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Retries( + /* [retval][out] */ __RPC__out long *plRetries) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Pages( + /* [retval][out] */ __RPC__out long *plPages) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out long *plSize) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OriginalScheduledTime( + /* [retval][out] */ __RPC__out DATE *pdateOriginalScheduledTime) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubmissionTime( + /* [retval][out] */ __RPC__out DATE *pdateSubmissionTime) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Priority( + /* [retval][out] */ __RPC__out FAX_PRIORITY_TYPE_ENUM *pPriority) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Sender( + /* [retval][out] */ __RPC__deref_out_opt IFaxSender **ppFaxSender) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Recipient( + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipient **ppFaxRecipient) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDeviceName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransmissionStart( + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransmissionEnd( + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyTiff( + /* [in] */ __RPC__in BSTR bstrTiffPath) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutgoingMessageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutgoingMessage * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutgoingMessage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutgoingMessage * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutgoingMessage * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutgoingMessage * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutgoingMessage * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutgoingMessage * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_SubmissionId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubmissionId )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubmissionId); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Subject) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_DocumentName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DocumentName )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDocumentName); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__out long *plRetries); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Pages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pages )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__out long *plPages); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Size) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__out long *plSize); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_OriginalScheduledTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OriginalScheduledTime )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__out DATE *pdateOriginalScheduledTime); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_SubmissionTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubmissionTime )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__out DATE *pdateSubmissionTime); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Priority) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__out FAX_PRIORITY_TYPE_ENUM *pPriority); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Sender) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Sender )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxSender **ppFaxSender); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Recipient) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recipient )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipient **ppFaxRecipient); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_DeviceName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceName )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDeviceName); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_TransmissionStart) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionStart )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_TransmissionEnd) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionEnd )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_CSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CSID )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_TSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( + __RPC__in IFaxOutgoingMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, CopyTiff) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTiff )( + __RPC__in IFaxOutgoingMessage * This, + /* [in] */ __RPC__in BSTR bstrTiffPath); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFaxOutgoingMessage * This); + + END_INTERFACE + } IFaxOutgoingMessageVtbl; + + interface IFaxOutgoingMessage + { + CONST_VTBL struct IFaxOutgoingMessageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutgoingMessage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutgoingMessage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutgoingMessage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutgoingMessage_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutgoingMessage_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutgoingMessage_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutgoingMessage_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutgoingMessage_get_SubmissionId(This,pbstrSubmissionId) \ + ( (This)->lpVtbl -> get_SubmissionId(This,pbstrSubmissionId) ) + +#define IFaxOutgoingMessage_get_Id(This,pbstrId) \ + ( (This)->lpVtbl -> get_Id(This,pbstrId) ) + +#define IFaxOutgoingMessage_get_Subject(This,pbstrSubject) \ + ( (This)->lpVtbl -> get_Subject(This,pbstrSubject) ) + +#define IFaxOutgoingMessage_get_DocumentName(This,pbstrDocumentName) \ + ( (This)->lpVtbl -> get_DocumentName(This,pbstrDocumentName) ) + +#define IFaxOutgoingMessage_get_Retries(This,plRetries) \ + ( (This)->lpVtbl -> get_Retries(This,plRetries) ) + +#define IFaxOutgoingMessage_get_Pages(This,plPages) \ + ( (This)->lpVtbl -> get_Pages(This,plPages) ) + +#define IFaxOutgoingMessage_get_Size(This,plSize) \ + ( (This)->lpVtbl -> get_Size(This,plSize) ) + +#define IFaxOutgoingMessage_get_OriginalScheduledTime(This,pdateOriginalScheduledTime) \ + ( (This)->lpVtbl -> get_OriginalScheduledTime(This,pdateOriginalScheduledTime) ) + +#define IFaxOutgoingMessage_get_SubmissionTime(This,pdateSubmissionTime) \ + ( (This)->lpVtbl -> get_SubmissionTime(This,pdateSubmissionTime) ) + +#define IFaxOutgoingMessage_get_Priority(This,pPriority) \ + ( (This)->lpVtbl -> get_Priority(This,pPriority) ) + +#define IFaxOutgoingMessage_get_Sender(This,ppFaxSender) \ + ( (This)->lpVtbl -> get_Sender(This,ppFaxSender) ) + +#define IFaxOutgoingMessage_get_Recipient(This,ppFaxRecipient) \ + ( (This)->lpVtbl -> get_Recipient(This,ppFaxRecipient) ) + +#define IFaxOutgoingMessage_get_DeviceName(This,pbstrDeviceName) \ + ( (This)->lpVtbl -> get_DeviceName(This,pbstrDeviceName) ) + +#define IFaxOutgoingMessage_get_TransmissionStart(This,pdateTransmissionStart) \ + ( (This)->lpVtbl -> get_TransmissionStart(This,pdateTransmissionStart) ) + +#define IFaxOutgoingMessage_get_TransmissionEnd(This,pdateTransmissionEnd) \ + ( (This)->lpVtbl -> get_TransmissionEnd(This,pdateTransmissionEnd) ) + +#define IFaxOutgoingMessage_get_CSID(This,pbstrCSID) \ + ( (This)->lpVtbl -> get_CSID(This,pbstrCSID) ) + +#define IFaxOutgoingMessage_get_TSID(This,pbstrTSID) \ + ( (This)->lpVtbl -> get_TSID(This,pbstrTSID) ) + +#define IFaxOutgoingMessage_CopyTiff(This,bstrTiffPath) \ + ( (This)->lpVtbl -> CopyTiff(This,bstrTiffPath) ) + +#define IFaxOutgoingMessage_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutgoingMessage_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxIncomingJobs_INTERFACE_DEFINED__ +#define __IFaxIncomingJobs_INTERFACE_DEFINED__ + +/* interface IFaxIncomingJobs */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxIncomingJobs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("011F04E9-4FD6-4C23-9513-B6B66BB26BE9") + IFaxIncomingJobs : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingJob **pFaxIncomingJob) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxIncomingJobsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxIncomingJobs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxIncomingJobs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxIncomingJobs * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxIncomingJobs * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxIncomingJobs * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxIncomingJobs * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxIncomingJobs * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxIncomingJobs, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxIncomingJobs * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxIncomingJobs, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxIncomingJobs * This, + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingJob **pFaxIncomingJob); + + DECLSPEC_XFGVIRT(IFaxIncomingJobs, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxIncomingJobs * This, + /* [retval][out] */ __RPC__out long *plCount); + + END_INTERFACE + } IFaxIncomingJobsVtbl; + + interface IFaxIncomingJobs + { + CONST_VTBL struct IFaxIncomingJobsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxIncomingJobs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxIncomingJobs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxIncomingJobs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxIncomingJobs_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxIncomingJobs_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxIncomingJobs_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxIncomingJobs_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxIncomingJobs_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxIncomingJobs_get_Item(This,vIndex,pFaxIncomingJob) \ + ( (This)->lpVtbl -> get_Item(This,vIndex,pFaxIncomingJob) ) + +#define IFaxIncomingJobs_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxIncomingJobs_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxIncomingJob_INTERFACE_DEFINED__ +#define __IFaxIncomingJob_INTERFACE_DEFINED__ + +/* interface IFaxIncomingJob */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxIncomingJob; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("207529E6-654A-4916-9F88-4D232EE8A107") + IFaxIncomingJob : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out long *plSize) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPage( + /* [retval][out] */ __RPC__out long *plCurrentPage) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceId( + /* [retval][out] */ __RPC__out long *plDeviceId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out FAX_JOB_STATUS_ENUM *pStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExtendedStatusCode( + /* [retval][out] */ __RPC__out FAX_JOB_EXTENDED_STATUS_ENUM *pExtendedStatusCode) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExtendedStatus( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtendedStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AvailableOperations( + /* [retval][out] */ __RPC__out FAX_JOB_OPERATIONS_ENUM *pAvailableOperations) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Retries( + /* [retval][out] */ __RPC__out long *plRetries) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransmissionStart( + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TransmissionEnd( + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CallerId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCallerId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RoutingInformation( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRoutingInformation) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_JobType( + /* [retval][out] */ __RPC__out FAX_JOB_TYPE_ENUM *pJobType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyTiff( + /* [in] */ __RPC__in BSTR bstrTiffPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxIncomingJobVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxIncomingJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxIncomingJob * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxIncomingJob * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxIncomingJob * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxIncomingJob * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxIncomingJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxIncomingJob * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_Size) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__out long *plSize); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_CurrentPage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPage )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__out long *plCurrentPage); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_DeviceId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceId )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__out long *plDeviceId); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_Status) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__out FAX_JOB_STATUS_ENUM *pStatus); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_ExtendedStatusCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtendedStatusCode )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__out FAX_JOB_EXTENDED_STATUS_ENUM *pExtendedStatusCode); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_ExtendedStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtendedStatus )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtendedStatus); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_AvailableOperations) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AvailableOperations )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__out FAX_JOB_OPERATIONS_ENUM *pAvailableOperations); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__out long *plRetries); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_TransmissionStart) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionStart )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_TransmissionEnd) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionEnd )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_CSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CSID )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_TSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_CallerId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CallerId )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCallerId); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_RoutingInformation) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoutingInformation )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRoutingInformation); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, get_JobType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_JobType )( + __RPC__in IFaxIncomingJob * This, + /* [retval][out] */ __RPC__out FAX_JOB_TYPE_ENUM *pJobType); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, Cancel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IFaxIncomingJob * This); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxIncomingJob * This); + + DECLSPEC_XFGVIRT(IFaxIncomingJob, CopyTiff) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTiff )( + __RPC__in IFaxIncomingJob * This, + /* [in] */ __RPC__in BSTR bstrTiffPath); + + END_INTERFACE + } IFaxIncomingJobVtbl; + + interface IFaxIncomingJob + { + CONST_VTBL struct IFaxIncomingJobVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxIncomingJob_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxIncomingJob_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxIncomingJob_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxIncomingJob_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxIncomingJob_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxIncomingJob_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxIncomingJob_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxIncomingJob_get_Size(This,plSize) \ + ( (This)->lpVtbl -> get_Size(This,plSize) ) + +#define IFaxIncomingJob_get_Id(This,pbstrId) \ + ( (This)->lpVtbl -> get_Id(This,pbstrId) ) + +#define IFaxIncomingJob_get_CurrentPage(This,plCurrentPage) \ + ( (This)->lpVtbl -> get_CurrentPage(This,plCurrentPage) ) + +#define IFaxIncomingJob_get_DeviceId(This,plDeviceId) \ + ( (This)->lpVtbl -> get_DeviceId(This,plDeviceId) ) + +#define IFaxIncomingJob_get_Status(This,pStatus) \ + ( (This)->lpVtbl -> get_Status(This,pStatus) ) + +#define IFaxIncomingJob_get_ExtendedStatusCode(This,pExtendedStatusCode) \ + ( (This)->lpVtbl -> get_ExtendedStatusCode(This,pExtendedStatusCode) ) + +#define IFaxIncomingJob_get_ExtendedStatus(This,pbstrExtendedStatus) \ + ( (This)->lpVtbl -> get_ExtendedStatus(This,pbstrExtendedStatus) ) + +#define IFaxIncomingJob_get_AvailableOperations(This,pAvailableOperations) \ + ( (This)->lpVtbl -> get_AvailableOperations(This,pAvailableOperations) ) + +#define IFaxIncomingJob_get_Retries(This,plRetries) \ + ( (This)->lpVtbl -> get_Retries(This,plRetries) ) + +#define IFaxIncomingJob_get_TransmissionStart(This,pdateTransmissionStart) \ + ( (This)->lpVtbl -> get_TransmissionStart(This,pdateTransmissionStart) ) + +#define IFaxIncomingJob_get_TransmissionEnd(This,pdateTransmissionEnd) \ + ( (This)->lpVtbl -> get_TransmissionEnd(This,pdateTransmissionEnd) ) + +#define IFaxIncomingJob_get_CSID(This,pbstrCSID) \ + ( (This)->lpVtbl -> get_CSID(This,pbstrCSID) ) + +#define IFaxIncomingJob_get_TSID(This,pbstrTSID) \ + ( (This)->lpVtbl -> get_TSID(This,pbstrTSID) ) + +#define IFaxIncomingJob_get_CallerId(This,pbstrCallerId) \ + ( (This)->lpVtbl -> get_CallerId(This,pbstrCallerId) ) + +#define IFaxIncomingJob_get_RoutingInformation(This,pbstrRoutingInformation) \ + ( (This)->lpVtbl -> get_RoutingInformation(This,pbstrRoutingInformation) ) + +#define IFaxIncomingJob_get_JobType(This,pJobType) \ + ( (This)->lpVtbl -> get_JobType(This,pJobType) ) + +#define IFaxIncomingJob_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IFaxIncomingJob_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxIncomingJob_CopyTiff(This,bstrTiffPath) \ + ( (This)->lpVtbl -> CopyTiff(This,bstrTiffPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxIncomingJob_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxDeviceProvider_INTERFACE_DEFINED__ +#define __IFaxDeviceProvider_INTERFACE_DEFINED__ + +/* interface IFaxDeviceProvider */ +/* [unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_PROVIDER_STATUS_ENUM + { + fpsSUCCESS = 0, + fpsSERVER_ERROR = ( fpsSUCCESS + 1 ) , + fpsBAD_GUID = ( fpsSERVER_ERROR + 1 ) , + fpsBAD_VERSION = ( fpsBAD_GUID + 1 ) , + fpsCANT_LOAD = ( fpsBAD_VERSION + 1 ) , + fpsCANT_LINK = ( fpsCANT_LOAD + 1 ) , + fpsCANT_INIT = ( fpsCANT_LINK + 1 ) + } FAX_PROVIDER_STATUS_ENUM; + + +EXTERN_C const IID IID_IFaxDeviceProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("290EAC63-83EC-449C-8417-F148DF8C682A") + IFaxDeviceProvider : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFriendlyName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ImageName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrImageName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UniqueName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUniqueName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TapiProviderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTapiProviderName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MajorVersion( + /* [retval][out] */ __RPC__out long *plMajorVersion) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinorVersion( + /* [retval][out] */ __RPC__out long *plMinorVersion) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MajorBuild( + /* [retval][out] */ __RPC__out long *plMajorBuild) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinorBuild( + /* [retval][out] */ __RPC__out long *plMinorBuild) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Debug( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbDebug) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out FAX_PROVIDER_STATUS_ENUM *pStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InitErrorCode( + /* [retval][out] */ __RPC__out long *plInitErrorCode) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceIds( + /* [retval][out] */ __RPC__out VARIANT *pvDeviceIds) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxDeviceProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxDeviceProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxDeviceProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxDeviceProvider * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxDeviceProvider * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxDeviceProvider * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxDeviceProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxDeviceProvider * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_FriendlyName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFriendlyName); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_ImageName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImageName )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrImageName); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_UniqueName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUniqueName); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_TapiProviderName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TapiProviderName )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTapiProviderName); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_MajorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorVersion )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__out long *plMajorVersion); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_MinorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorVersion )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__out long *plMinorVersion); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_MajorBuild) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorBuild )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__out long *plMajorBuild); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_MinorBuild) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorBuild )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__out long *plMinorBuild); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_Debug) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Debug )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbDebug); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_Status) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__out FAX_PROVIDER_STATUS_ENUM *pStatus); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_InitErrorCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InitErrorCode )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__out long *plInitErrorCode); + + DECLSPEC_XFGVIRT(IFaxDeviceProvider, get_DeviceIds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceIds )( + __RPC__in IFaxDeviceProvider * This, + /* [retval][out] */ __RPC__out VARIANT *pvDeviceIds); + + END_INTERFACE + } IFaxDeviceProviderVtbl; + + interface IFaxDeviceProvider + { + CONST_VTBL struct IFaxDeviceProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxDeviceProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxDeviceProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxDeviceProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxDeviceProvider_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxDeviceProvider_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxDeviceProvider_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxDeviceProvider_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxDeviceProvider_get_FriendlyName(This,pbstrFriendlyName) \ + ( (This)->lpVtbl -> get_FriendlyName(This,pbstrFriendlyName) ) + +#define IFaxDeviceProvider_get_ImageName(This,pbstrImageName) \ + ( (This)->lpVtbl -> get_ImageName(This,pbstrImageName) ) + +#define IFaxDeviceProvider_get_UniqueName(This,pbstrUniqueName) \ + ( (This)->lpVtbl -> get_UniqueName(This,pbstrUniqueName) ) + +#define IFaxDeviceProvider_get_TapiProviderName(This,pbstrTapiProviderName) \ + ( (This)->lpVtbl -> get_TapiProviderName(This,pbstrTapiProviderName) ) + +#define IFaxDeviceProvider_get_MajorVersion(This,plMajorVersion) \ + ( (This)->lpVtbl -> get_MajorVersion(This,plMajorVersion) ) + +#define IFaxDeviceProvider_get_MinorVersion(This,plMinorVersion) \ + ( (This)->lpVtbl -> get_MinorVersion(This,plMinorVersion) ) + +#define IFaxDeviceProvider_get_MajorBuild(This,plMajorBuild) \ + ( (This)->lpVtbl -> get_MajorBuild(This,plMajorBuild) ) + +#define IFaxDeviceProvider_get_MinorBuild(This,plMinorBuild) \ + ( (This)->lpVtbl -> get_MinorBuild(This,plMinorBuild) ) + +#define IFaxDeviceProvider_get_Debug(This,pbDebug) \ + ( (This)->lpVtbl -> get_Debug(This,pbDebug) ) + +#define IFaxDeviceProvider_get_Status(This,pStatus) \ + ( (This)->lpVtbl -> get_Status(This,pStatus) ) + +#define IFaxDeviceProvider_get_InitErrorCode(This,plInitErrorCode) \ + ( (This)->lpVtbl -> get_InitErrorCode(This,plInitErrorCode) ) + +#define IFaxDeviceProvider_get_DeviceIds(This,pvDeviceIds) \ + ( (This)->lpVtbl -> get_DeviceIds(This,pvDeviceIds) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxDeviceProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxDevice_INTERFACE_DEFINED__ +#define __IFaxDevice_INTERFACE_DEFINED__ + +/* interface IFaxDevice */ +/* [unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_DEVICE_RECEIVE_MODE_ENUM + { + fdrmNO_ANSWER = 0, + fdrmAUTO_ANSWER = ( fdrmNO_ANSWER + 1 ) , + fdrmMANUAL_ANSWER = ( fdrmAUTO_ANSWER + 1 ) + } FAX_DEVICE_RECEIVE_MODE_ENUM; + + +EXTERN_C const IID IID_IFaxDevice; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("49306C59-B52E-4867-9DF4-CA5841C956D0") + IFaxDevice : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__out long *plId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDeviceName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProviderUniqueName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProviderUniqueName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PoweredOff( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbPoweredOff) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReceivingNow( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbReceivingNow) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SendingNow( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSendingNow) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UsedRoutingMethods( + /* [retval][out] */ __RPC__out VARIANT *pvUsedRoutingMethods) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SendEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSendEnabled) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SendEnabled( + /* [in] */ VARIANT_BOOL bSendEnabled) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReceiveMode( + /* [retval][out] */ __RPC__out FAX_DEVICE_RECEIVE_MODE_ENUM *pReceiveMode) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ReceiveMode( + /* [in] */ FAX_DEVICE_RECEIVE_MODE_ENUM ReceiveMode) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RingsBeforeAnswer( + /* [retval][out] */ __RPC__out long *plRingsBeforeAnswer) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RingsBeforeAnswer( + /* [in] */ long lRingsBeforeAnswer) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CSID( + /* [in] */ __RPC__in BSTR bstrCSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_TSID( + /* [in] */ __RPC__in BSTR bstrTSID) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetExtensionProperty( + /* [in] */ __RPC__in BSTR bstrGUID, + /* [retval][out] */ __RPC__out VARIANT *pvProperty) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetExtensionProperty( + /* [in] */ __RPC__in BSTR bstrGUID, + /* [in] */ VARIANT vProperty) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UseRoutingMethod( + /* [in] */ __RPC__in BSTR bstrMethodGUID, + /* [in] */ VARIANT_BOOL bUse) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RingingNow( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRingingNow) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AnswerCall( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxDeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxDevice * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxDevice * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxDevice * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxDevice * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxDevice * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxDevice * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxDevice * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxDevice, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__out long *plId); + + DECLSPEC_XFGVIRT(IFaxDevice, get_DeviceName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceName )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDeviceName); + + DECLSPEC_XFGVIRT(IFaxDevice, get_ProviderUniqueName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProviderUniqueName )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProviderUniqueName); + + DECLSPEC_XFGVIRT(IFaxDevice, get_PoweredOff) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PoweredOff )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbPoweredOff); + + DECLSPEC_XFGVIRT(IFaxDevice, get_ReceivingNow) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceivingNow )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbReceivingNow); + + DECLSPEC_XFGVIRT(IFaxDevice, get_SendingNow) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SendingNow )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSendingNow); + + DECLSPEC_XFGVIRT(IFaxDevice, get_UsedRoutingMethods) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsedRoutingMethods )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__out VARIANT *pvUsedRoutingMethods); + + DECLSPEC_XFGVIRT(IFaxDevice, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IFaxDevice, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFaxDevice * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IFaxDevice, get_SendEnabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SendEnabled )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSendEnabled); + + DECLSPEC_XFGVIRT(IFaxDevice, put_SendEnabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SendEnabled )( + __RPC__in IFaxDevice * This, + /* [in] */ VARIANT_BOOL bSendEnabled); + + DECLSPEC_XFGVIRT(IFaxDevice, get_ReceiveMode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiveMode )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__out FAX_DEVICE_RECEIVE_MODE_ENUM *pReceiveMode); + + DECLSPEC_XFGVIRT(IFaxDevice, put_ReceiveMode) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReceiveMode )( + __RPC__in IFaxDevice * This, + /* [in] */ FAX_DEVICE_RECEIVE_MODE_ENUM ReceiveMode); + + DECLSPEC_XFGVIRT(IFaxDevice, get_RingsBeforeAnswer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RingsBeforeAnswer )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__out long *plRingsBeforeAnswer); + + DECLSPEC_XFGVIRT(IFaxDevice, put_RingsBeforeAnswer) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RingsBeforeAnswer )( + __RPC__in IFaxDevice * This, + /* [in] */ long lRingsBeforeAnswer); + + DECLSPEC_XFGVIRT(IFaxDevice, get_CSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CSID )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID); + + DECLSPEC_XFGVIRT(IFaxDevice, put_CSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CSID )( + __RPC__in IFaxDevice * This, + /* [in] */ __RPC__in BSTR bstrCSID); + + DECLSPEC_XFGVIRT(IFaxDevice, get_TSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID); + + DECLSPEC_XFGVIRT(IFaxDevice, put_TSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TSID )( + __RPC__in IFaxDevice * This, + /* [in] */ __RPC__in BSTR bstrTSID); + + DECLSPEC_XFGVIRT(IFaxDevice, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxDevice * This); + + DECLSPEC_XFGVIRT(IFaxDevice, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxDevice * This); + + DECLSPEC_XFGVIRT(IFaxDevice, GetExtensionProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetExtensionProperty )( + __RPC__in IFaxDevice * This, + /* [in] */ __RPC__in BSTR bstrGUID, + /* [retval][out] */ __RPC__out VARIANT *pvProperty); + + DECLSPEC_XFGVIRT(IFaxDevice, SetExtensionProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetExtensionProperty )( + __RPC__in IFaxDevice * This, + /* [in] */ __RPC__in BSTR bstrGUID, + /* [in] */ VARIANT vProperty); + + DECLSPEC_XFGVIRT(IFaxDevice, UseRoutingMethod) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UseRoutingMethod )( + __RPC__in IFaxDevice * This, + /* [in] */ __RPC__in BSTR bstrMethodGUID, + /* [in] */ VARIANT_BOOL bUse); + + DECLSPEC_XFGVIRT(IFaxDevice, get_RingingNow) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RingingNow )( + __RPC__in IFaxDevice * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRingingNow); + + DECLSPEC_XFGVIRT(IFaxDevice, AnswerCall) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AnswerCall )( + __RPC__in IFaxDevice * This); + + END_INTERFACE + } IFaxDeviceVtbl; + + interface IFaxDevice + { + CONST_VTBL struct IFaxDeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxDevice_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxDevice_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxDevice_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxDevice_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxDevice_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxDevice_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxDevice_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxDevice_get_Id(This,plId) \ + ( (This)->lpVtbl -> get_Id(This,plId) ) + +#define IFaxDevice_get_DeviceName(This,pbstrDeviceName) \ + ( (This)->lpVtbl -> get_DeviceName(This,pbstrDeviceName) ) + +#define IFaxDevice_get_ProviderUniqueName(This,pbstrProviderUniqueName) \ + ( (This)->lpVtbl -> get_ProviderUniqueName(This,pbstrProviderUniqueName) ) + +#define IFaxDevice_get_PoweredOff(This,pbPoweredOff) \ + ( (This)->lpVtbl -> get_PoweredOff(This,pbPoweredOff) ) + +#define IFaxDevice_get_ReceivingNow(This,pbReceivingNow) \ + ( (This)->lpVtbl -> get_ReceivingNow(This,pbReceivingNow) ) + +#define IFaxDevice_get_SendingNow(This,pbSendingNow) \ + ( (This)->lpVtbl -> get_SendingNow(This,pbSendingNow) ) + +#define IFaxDevice_get_UsedRoutingMethods(This,pvUsedRoutingMethods) \ + ( (This)->lpVtbl -> get_UsedRoutingMethods(This,pvUsedRoutingMethods) ) + +#define IFaxDevice_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IFaxDevice_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IFaxDevice_get_SendEnabled(This,pbSendEnabled) \ + ( (This)->lpVtbl -> get_SendEnabled(This,pbSendEnabled) ) + +#define IFaxDevice_put_SendEnabled(This,bSendEnabled) \ + ( (This)->lpVtbl -> put_SendEnabled(This,bSendEnabled) ) + +#define IFaxDevice_get_ReceiveMode(This,pReceiveMode) \ + ( (This)->lpVtbl -> get_ReceiveMode(This,pReceiveMode) ) + +#define IFaxDevice_put_ReceiveMode(This,ReceiveMode) \ + ( (This)->lpVtbl -> put_ReceiveMode(This,ReceiveMode) ) + +#define IFaxDevice_get_RingsBeforeAnswer(This,plRingsBeforeAnswer) \ + ( (This)->lpVtbl -> get_RingsBeforeAnswer(This,plRingsBeforeAnswer) ) + +#define IFaxDevice_put_RingsBeforeAnswer(This,lRingsBeforeAnswer) \ + ( (This)->lpVtbl -> put_RingsBeforeAnswer(This,lRingsBeforeAnswer) ) + +#define IFaxDevice_get_CSID(This,pbstrCSID) \ + ( (This)->lpVtbl -> get_CSID(This,pbstrCSID) ) + +#define IFaxDevice_put_CSID(This,bstrCSID) \ + ( (This)->lpVtbl -> put_CSID(This,bstrCSID) ) + +#define IFaxDevice_get_TSID(This,pbstrTSID) \ + ( (This)->lpVtbl -> get_TSID(This,pbstrTSID) ) + +#define IFaxDevice_put_TSID(This,bstrTSID) \ + ( (This)->lpVtbl -> put_TSID(This,bstrTSID) ) + +#define IFaxDevice_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxDevice_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IFaxDevice_GetExtensionProperty(This,bstrGUID,pvProperty) \ + ( (This)->lpVtbl -> GetExtensionProperty(This,bstrGUID,pvProperty) ) + +#define IFaxDevice_SetExtensionProperty(This,bstrGUID,vProperty) \ + ( (This)->lpVtbl -> SetExtensionProperty(This,bstrGUID,vProperty) ) + +#define IFaxDevice_UseRoutingMethod(This,bstrMethodGUID,bUse) \ + ( (This)->lpVtbl -> UseRoutingMethod(This,bstrMethodGUID,bUse) ) + +#define IFaxDevice_get_RingingNow(This,pbRingingNow) \ + ( (This)->lpVtbl -> get_RingingNow(This,pbRingingNow) ) + +#define IFaxDevice_AnswerCall(This) \ + ( (This)->lpVtbl -> AnswerCall(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxDevice_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxActivityLogging_INTERFACE_DEFINED__ +#define __IFaxActivityLogging_INTERFACE_DEFINED__ + +/* interface IFaxActivityLogging */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxActivityLogging; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1E29078B-5A69-497B-9592-49B7E7FADDB5") + IFaxActivityLogging : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LogIncoming( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbLogIncoming) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LogIncoming( + /* [in] */ VARIANT_BOOL bLogIncoming) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LogOutgoing( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbLogOutgoing) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LogOutgoing( + /* [in] */ VARIANT_BOOL bLogOutgoing) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DatabasePath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDatabasePath) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DatabasePath( + /* [in] */ __RPC__in BSTR bstrDatabasePath) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxActivityLoggingVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxActivityLogging * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxActivityLogging * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxActivityLogging * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxActivityLogging * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxActivityLogging * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxActivityLogging * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxActivityLogging * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxActivityLogging, get_LogIncoming) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LogIncoming )( + __RPC__in IFaxActivityLogging * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbLogIncoming); + + DECLSPEC_XFGVIRT(IFaxActivityLogging, put_LogIncoming) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LogIncoming )( + __RPC__in IFaxActivityLogging * This, + /* [in] */ VARIANT_BOOL bLogIncoming); + + DECLSPEC_XFGVIRT(IFaxActivityLogging, get_LogOutgoing) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LogOutgoing )( + __RPC__in IFaxActivityLogging * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbLogOutgoing); + + DECLSPEC_XFGVIRT(IFaxActivityLogging, put_LogOutgoing) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LogOutgoing )( + __RPC__in IFaxActivityLogging * This, + /* [in] */ VARIANT_BOOL bLogOutgoing); + + DECLSPEC_XFGVIRT(IFaxActivityLogging, get_DatabasePath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DatabasePath )( + __RPC__in IFaxActivityLogging * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDatabasePath); + + DECLSPEC_XFGVIRT(IFaxActivityLogging, put_DatabasePath) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DatabasePath )( + __RPC__in IFaxActivityLogging * This, + /* [in] */ __RPC__in BSTR bstrDatabasePath); + + DECLSPEC_XFGVIRT(IFaxActivityLogging, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxActivityLogging * This); + + DECLSPEC_XFGVIRT(IFaxActivityLogging, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxActivityLogging * This); + + END_INTERFACE + } IFaxActivityLoggingVtbl; + + interface IFaxActivityLogging + { + CONST_VTBL struct IFaxActivityLoggingVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxActivityLogging_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxActivityLogging_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxActivityLogging_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxActivityLogging_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxActivityLogging_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxActivityLogging_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxActivityLogging_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxActivityLogging_get_LogIncoming(This,pbLogIncoming) \ + ( (This)->lpVtbl -> get_LogIncoming(This,pbLogIncoming) ) + +#define IFaxActivityLogging_put_LogIncoming(This,bLogIncoming) \ + ( (This)->lpVtbl -> put_LogIncoming(This,bLogIncoming) ) + +#define IFaxActivityLogging_get_LogOutgoing(This,pbLogOutgoing) \ + ( (This)->lpVtbl -> get_LogOutgoing(This,pbLogOutgoing) ) + +#define IFaxActivityLogging_put_LogOutgoing(This,bLogOutgoing) \ + ( (This)->lpVtbl -> put_LogOutgoing(This,bLogOutgoing) ) + +#define IFaxActivityLogging_get_DatabasePath(This,pbstrDatabasePath) \ + ( (This)->lpVtbl -> get_DatabasePath(This,pbstrDatabasePath) ) + +#define IFaxActivityLogging_put_DatabasePath(This,bstrDatabasePath) \ + ( (This)->lpVtbl -> put_DatabasePath(This,bstrDatabasePath) ) + +#define IFaxActivityLogging_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxActivityLogging_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxActivityLogging_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxEventLogging_INTERFACE_DEFINED__ +#define __IFaxEventLogging_INTERFACE_DEFINED__ + +/* interface IFaxEventLogging */ +/* [unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_LOG_LEVEL_ENUM + { + fllNONE = 0, + fllMIN = ( fllNONE + 1 ) , + fllMED = ( fllMIN + 1 ) , + fllMAX = ( fllMED + 1 ) + } FAX_LOG_LEVEL_ENUM; + + +EXTERN_C const IID IID_IFaxEventLogging; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0880D965-20E8-42E4-8E17-944F192CAAD4") + IFaxEventLogging : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InitEventsLevel( + /* [retval][out] */ __RPC__out FAX_LOG_LEVEL_ENUM *pInitEventLevel) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InitEventsLevel( + /* [in] */ FAX_LOG_LEVEL_ENUM InitEventLevel) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InboundEventsLevel( + /* [retval][out] */ __RPC__out FAX_LOG_LEVEL_ENUM *pInboundEventLevel) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InboundEventsLevel( + /* [in] */ FAX_LOG_LEVEL_ENUM InboundEventLevel) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutboundEventsLevel( + /* [retval][out] */ __RPC__out FAX_LOG_LEVEL_ENUM *pOutboundEventLevel) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OutboundEventsLevel( + /* [in] */ FAX_LOG_LEVEL_ENUM OutboundEventLevel) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GeneralEventsLevel( + /* [retval][out] */ __RPC__out FAX_LOG_LEVEL_ENUM *pGeneralEventLevel) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_GeneralEventsLevel( + /* [in] */ FAX_LOG_LEVEL_ENUM GeneralEventLevel) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxEventLoggingVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxEventLogging * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxEventLogging * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxEventLogging * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxEventLogging * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxEventLogging * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxEventLogging * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxEventLogging * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxEventLogging, get_InitEventsLevel) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InitEventsLevel )( + __RPC__in IFaxEventLogging * This, + /* [retval][out] */ __RPC__out FAX_LOG_LEVEL_ENUM *pInitEventLevel); + + DECLSPEC_XFGVIRT(IFaxEventLogging, put_InitEventsLevel) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InitEventsLevel )( + __RPC__in IFaxEventLogging * This, + /* [in] */ FAX_LOG_LEVEL_ENUM InitEventLevel); + + DECLSPEC_XFGVIRT(IFaxEventLogging, get_InboundEventsLevel) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InboundEventsLevel )( + __RPC__in IFaxEventLogging * This, + /* [retval][out] */ __RPC__out FAX_LOG_LEVEL_ENUM *pInboundEventLevel); + + DECLSPEC_XFGVIRT(IFaxEventLogging, put_InboundEventsLevel) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InboundEventsLevel )( + __RPC__in IFaxEventLogging * This, + /* [in] */ FAX_LOG_LEVEL_ENUM InboundEventLevel); + + DECLSPEC_XFGVIRT(IFaxEventLogging, get_OutboundEventsLevel) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutboundEventsLevel )( + __RPC__in IFaxEventLogging * This, + /* [retval][out] */ __RPC__out FAX_LOG_LEVEL_ENUM *pOutboundEventLevel); + + DECLSPEC_XFGVIRT(IFaxEventLogging, put_OutboundEventsLevel) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OutboundEventsLevel )( + __RPC__in IFaxEventLogging * This, + /* [in] */ FAX_LOG_LEVEL_ENUM OutboundEventLevel); + + DECLSPEC_XFGVIRT(IFaxEventLogging, get_GeneralEventsLevel) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GeneralEventsLevel )( + __RPC__in IFaxEventLogging * This, + /* [retval][out] */ __RPC__out FAX_LOG_LEVEL_ENUM *pGeneralEventLevel); + + DECLSPEC_XFGVIRT(IFaxEventLogging, put_GeneralEventsLevel) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_GeneralEventsLevel )( + __RPC__in IFaxEventLogging * This, + /* [in] */ FAX_LOG_LEVEL_ENUM GeneralEventLevel); + + DECLSPEC_XFGVIRT(IFaxEventLogging, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxEventLogging * This); + + DECLSPEC_XFGVIRT(IFaxEventLogging, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxEventLogging * This); + + END_INTERFACE + } IFaxEventLoggingVtbl; + + interface IFaxEventLogging + { + CONST_VTBL struct IFaxEventLoggingVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxEventLogging_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxEventLogging_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxEventLogging_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxEventLogging_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxEventLogging_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxEventLogging_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxEventLogging_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxEventLogging_get_InitEventsLevel(This,pInitEventLevel) \ + ( (This)->lpVtbl -> get_InitEventsLevel(This,pInitEventLevel) ) + +#define IFaxEventLogging_put_InitEventsLevel(This,InitEventLevel) \ + ( (This)->lpVtbl -> put_InitEventsLevel(This,InitEventLevel) ) + +#define IFaxEventLogging_get_InboundEventsLevel(This,pInboundEventLevel) \ + ( (This)->lpVtbl -> get_InboundEventsLevel(This,pInboundEventLevel) ) + +#define IFaxEventLogging_put_InboundEventsLevel(This,InboundEventLevel) \ + ( (This)->lpVtbl -> put_InboundEventsLevel(This,InboundEventLevel) ) + +#define IFaxEventLogging_get_OutboundEventsLevel(This,pOutboundEventLevel) \ + ( (This)->lpVtbl -> get_OutboundEventsLevel(This,pOutboundEventLevel) ) + +#define IFaxEventLogging_put_OutboundEventsLevel(This,OutboundEventLevel) \ + ( (This)->lpVtbl -> put_OutboundEventsLevel(This,OutboundEventLevel) ) + +#define IFaxEventLogging_get_GeneralEventsLevel(This,pGeneralEventLevel) \ + ( (This)->lpVtbl -> get_GeneralEventsLevel(This,pGeneralEventLevel) ) + +#define IFaxEventLogging_put_GeneralEventsLevel(This,GeneralEventLevel) \ + ( (This)->lpVtbl -> put_GeneralEventsLevel(This,GeneralEventLevel) ) + +#define IFaxEventLogging_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxEventLogging_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxEventLogging_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutboundRoutingGroups_INTERFACE_DEFINED__ +#define __IFaxOutboundRoutingGroups_INTERFACE_DEFINED__ + +/* interface IFaxOutboundRoutingGroups */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutboundRoutingGroups; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("235CBEF7-C2DE-4BFD-B8DA-75097C82C87F") + IFaxOutboundRoutingGroups : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingGroup **pFaxOutboundRoutingGroup) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingGroup **pFaxOutboundRoutingGroup) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ VARIANT vIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutboundRoutingGroupsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutboundRoutingGroups * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutboundRoutingGroups * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutboundRoutingGroups * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutboundRoutingGroups * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutboundRoutingGroups * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutboundRoutingGroups * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutboundRoutingGroups * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingGroups, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxOutboundRoutingGroups * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingGroups, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxOutboundRoutingGroups * This, + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingGroup **pFaxOutboundRoutingGroup); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingGroups, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxOutboundRoutingGroups * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingGroups, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IFaxOutboundRoutingGroups * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingGroup **pFaxOutboundRoutingGroup); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingGroups, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IFaxOutboundRoutingGroups * This, + /* [in] */ VARIANT vIndex); + + END_INTERFACE + } IFaxOutboundRoutingGroupsVtbl; + + interface IFaxOutboundRoutingGroups + { + CONST_VTBL struct IFaxOutboundRoutingGroupsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutboundRoutingGroups_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutboundRoutingGroups_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutboundRoutingGroups_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutboundRoutingGroups_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutboundRoutingGroups_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutboundRoutingGroups_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutboundRoutingGroups_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutboundRoutingGroups_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxOutboundRoutingGroups_get_Item(This,vIndex,pFaxOutboundRoutingGroup) \ + ( (This)->lpVtbl -> get_Item(This,vIndex,pFaxOutboundRoutingGroup) ) + +#define IFaxOutboundRoutingGroups_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IFaxOutboundRoutingGroups_Add(This,bstrName,pFaxOutboundRoutingGroup) \ + ( (This)->lpVtbl -> Add(This,bstrName,pFaxOutboundRoutingGroup) ) + +#define IFaxOutboundRoutingGroups_Remove(This,vIndex) \ + ( (This)->lpVtbl -> Remove(This,vIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutboundRoutingGroups_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutboundRoutingGroup_INTERFACE_DEFINED__ +#define __IFaxOutboundRoutingGroup_INTERFACE_DEFINED__ + +/* interface IFaxOutboundRoutingGroup */ +/* [unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_GROUP_STATUS_ENUM + { + fgsALL_DEV_VALID = 0, + fgsEMPTY = ( fgsALL_DEV_VALID + 1 ) , + fgsALL_DEV_NOT_VALID = ( fgsEMPTY + 1 ) , + fgsSOME_DEV_NOT_VALID = ( fgsALL_DEV_NOT_VALID + 1 ) + } FAX_GROUP_STATUS_ENUM; + + +EXTERN_C const IID IID_IFaxOutboundRoutingGroup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CA6289A1-7E25-4F87-9A0B-93365734962C") + IFaxOutboundRoutingGroup : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out FAX_GROUP_STATUS_ENUM *pStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceIds( + /* [retval][out] */ __RPC__deref_out_opt IFaxDeviceIds **pFaxDeviceIds) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutboundRoutingGroupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutboundRoutingGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutboundRoutingGroup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutboundRoutingGroup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutboundRoutingGroup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutboundRoutingGroup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutboundRoutingGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutboundRoutingGroup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingGroup, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFaxOutboundRoutingGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingGroup, get_Status) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IFaxOutboundRoutingGroup * This, + /* [retval][out] */ __RPC__out FAX_GROUP_STATUS_ENUM *pStatus); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingGroup, get_DeviceIds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceIds )( + __RPC__in IFaxOutboundRoutingGroup * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxDeviceIds **pFaxDeviceIds); + + END_INTERFACE + } IFaxOutboundRoutingGroupVtbl; + + interface IFaxOutboundRoutingGroup + { + CONST_VTBL struct IFaxOutboundRoutingGroupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutboundRoutingGroup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutboundRoutingGroup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutboundRoutingGroup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutboundRoutingGroup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutboundRoutingGroup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutboundRoutingGroup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutboundRoutingGroup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutboundRoutingGroup_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IFaxOutboundRoutingGroup_get_Status(This,pStatus) \ + ( (This)->lpVtbl -> get_Status(This,pStatus) ) + +#define IFaxOutboundRoutingGroup_get_DeviceIds(This,pFaxDeviceIds) \ + ( (This)->lpVtbl -> get_DeviceIds(This,pFaxDeviceIds) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutboundRoutingGroup_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxDeviceIds_INTERFACE_DEFINED__ +#define __IFaxDeviceIds_INTERFACE_DEFINED__ + +/* interface IFaxDeviceIds */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxDeviceIds; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2F0F813F-4CE9-443E-8CA1-738CFAEEE149") + IFaxDeviceIds : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out long *plDeviceId) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ long lDeviceId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ long lIndex) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetOrder( + /* [in] */ long lDeviceId, + /* [in] */ long lNewOrder) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxDeviceIdsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxDeviceIds * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxDeviceIds * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxDeviceIds * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxDeviceIds * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxDeviceIds * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxDeviceIds * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxDeviceIds * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxDeviceIds, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxDeviceIds * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxDeviceIds, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxDeviceIds * This, + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out long *plDeviceId); + + DECLSPEC_XFGVIRT(IFaxDeviceIds, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxDeviceIds * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(IFaxDeviceIds, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IFaxDeviceIds * This, + /* [in] */ long lDeviceId); + + DECLSPEC_XFGVIRT(IFaxDeviceIds, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IFaxDeviceIds * This, + /* [in] */ long lIndex); + + DECLSPEC_XFGVIRT(IFaxDeviceIds, SetOrder) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetOrder )( + __RPC__in IFaxDeviceIds * This, + /* [in] */ long lDeviceId, + /* [in] */ long lNewOrder); + + END_INTERFACE + } IFaxDeviceIdsVtbl; + + interface IFaxDeviceIds + { + CONST_VTBL struct IFaxDeviceIdsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxDeviceIds_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxDeviceIds_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxDeviceIds_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxDeviceIds_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxDeviceIds_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxDeviceIds_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxDeviceIds_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxDeviceIds_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxDeviceIds_get_Item(This,lIndex,plDeviceId) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,plDeviceId) ) + +#define IFaxDeviceIds_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IFaxDeviceIds_Add(This,lDeviceId) \ + ( (This)->lpVtbl -> Add(This,lDeviceId) ) + +#define IFaxDeviceIds_Remove(This,lIndex) \ + ( (This)->lpVtbl -> Remove(This,lIndex) ) + +#define IFaxDeviceIds_SetOrder(This,lDeviceId,lNewOrder) \ + ( (This)->lpVtbl -> SetOrder(This,lDeviceId,lNewOrder) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxDeviceIds_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutboundRoutingRules_INTERFACE_DEFINED__ +#define __IFaxOutboundRoutingRules_INTERFACE_DEFINED__ + +/* interface IFaxOutboundRoutingRules */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutboundRoutingRules; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DCEFA1E7-AE7D-4ED6-8521-369EDCCA5120") + IFaxOutboundRoutingRules : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingRule **pFaxOutboundRoutingRule) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ItemByCountryAndArea( + /* [in] */ long lCountryCode, + /* [in] */ long lAreaCode, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingRule **pFaxOutboundRoutingRule) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveByCountryAndArea( + /* [in] */ long lCountryCode, + /* [in] */ long lAreaCode) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ long lIndex) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ long lCountryCode, + /* [in] */ long lAreaCode, + /* [in] */ VARIANT_BOOL bUseDevice, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [in] */ long lDeviceId, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingRule **pFaxOutboundRoutingRule) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutboundRoutingRulesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutboundRoutingRules * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutboundRoutingRules * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutboundRoutingRules * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRules, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRules, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingRule **pFaxOutboundRoutingRule); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRules, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRules, ItemByCountryAndArea) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ItemByCountryAndArea )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [in] */ long lCountryCode, + /* [in] */ long lAreaCode, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingRule **pFaxOutboundRoutingRule); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRules, RemoveByCountryAndArea) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveByCountryAndArea )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [in] */ long lCountryCode, + /* [in] */ long lAreaCode); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRules, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [in] */ long lIndex); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRules, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IFaxOutboundRoutingRules * This, + /* [in] */ long lCountryCode, + /* [in] */ long lAreaCode, + /* [in] */ VARIANT_BOOL bUseDevice, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [in] */ long lDeviceId, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRoutingRule **pFaxOutboundRoutingRule); + + END_INTERFACE + } IFaxOutboundRoutingRulesVtbl; + + interface IFaxOutboundRoutingRules + { + CONST_VTBL struct IFaxOutboundRoutingRulesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutboundRoutingRules_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutboundRoutingRules_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutboundRoutingRules_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutboundRoutingRules_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutboundRoutingRules_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutboundRoutingRules_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutboundRoutingRules_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutboundRoutingRules_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxOutboundRoutingRules_get_Item(This,lIndex,pFaxOutboundRoutingRule) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pFaxOutboundRoutingRule) ) + +#define IFaxOutboundRoutingRules_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IFaxOutboundRoutingRules_ItemByCountryAndArea(This,lCountryCode,lAreaCode,pFaxOutboundRoutingRule) \ + ( (This)->lpVtbl -> ItemByCountryAndArea(This,lCountryCode,lAreaCode,pFaxOutboundRoutingRule) ) + +#define IFaxOutboundRoutingRules_RemoveByCountryAndArea(This,lCountryCode,lAreaCode) \ + ( (This)->lpVtbl -> RemoveByCountryAndArea(This,lCountryCode,lAreaCode) ) + +#define IFaxOutboundRoutingRules_Remove(This,lIndex) \ + ( (This)->lpVtbl -> Remove(This,lIndex) ) + +#define IFaxOutboundRoutingRules_Add(This,lCountryCode,lAreaCode,bUseDevice,bstrGroupName,lDeviceId,pFaxOutboundRoutingRule) \ + ( (This)->lpVtbl -> Add(This,lCountryCode,lAreaCode,bUseDevice,bstrGroupName,lDeviceId,pFaxOutboundRoutingRule) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutboundRoutingRules_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutboundRoutingRule_INTERFACE_DEFINED__ +#define __IFaxOutboundRoutingRule_INTERFACE_DEFINED__ + +/* interface IFaxOutboundRoutingRule */ +/* [unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_RULE_STATUS_ENUM + { + frsVALID = 0, + frsEMPTY_GROUP = ( frsVALID + 1 ) , + frsALL_GROUP_DEV_NOT_VALID = ( frsEMPTY_GROUP + 1 ) , + frsSOME_GROUP_DEV_NOT_VALID = ( frsALL_GROUP_DEV_NOT_VALID + 1 ) , + frsBAD_DEVICE = ( frsSOME_GROUP_DEV_NOT_VALID + 1 ) + } FAX_RULE_STATUS_ENUM; + + +EXTERN_C const IID IID_IFaxOutboundRoutingRule; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E1F795D5-07C2-469F-B027-ACACC23219DA") + IFaxOutboundRoutingRule : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CountryCode( + /* [retval][out] */ __RPC__out long *plCountryCode) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AreaCode( + /* [retval][out] */ __RPC__out long *plAreaCode) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out FAX_RULE_STATUS_ENUM *pStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseDevice( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseDevice) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseDevice( + /* [in] */ VARIANT_BOOL bUseDevice) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceId( + /* [retval][out] */ __RPC__out long *plDeviceId) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DeviceId( + /* [in] */ long DeviceId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GroupName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrGroupName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_GroupName( + /* [in] */ __RPC__in BSTR bstrGroupName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutboundRoutingRuleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutboundRoutingRule * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutboundRoutingRule * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutboundRoutingRule * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, get_CountryCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CountryCode )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [retval][out] */ __RPC__out long *plCountryCode); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, get_AreaCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AreaCode )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [retval][out] */ __RPC__out long *plAreaCode); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, get_Status) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [retval][out] */ __RPC__out FAX_RULE_STATUS_ENUM *pStatus); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, get_UseDevice) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseDevice )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseDevice); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, put_UseDevice) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseDevice )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [in] */ VARIANT_BOOL bUseDevice); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, get_DeviceId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceId )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [retval][out] */ __RPC__out long *plDeviceId); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, put_DeviceId) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DeviceId )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [in] */ long DeviceId); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, get_GroupName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GroupName )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrGroupName); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, put_GroupName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_GroupName )( + __RPC__in IFaxOutboundRoutingRule * This, + /* [in] */ __RPC__in BSTR bstrGroupName); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxOutboundRoutingRule * This); + + DECLSPEC_XFGVIRT(IFaxOutboundRoutingRule, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxOutboundRoutingRule * This); + + END_INTERFACE + } IFaxOutboundRoutingRuleVtbl; + + interface IFaxOutboundRoutingRule + { + CONST_VTBL struct IFaxOutboundRoutingRuleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutboundRoutingRule_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutboundRoutingRule_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutboundRoutingRule_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutboundRoutingRule_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutboundRoutingRule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutboundRoutingRule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutboundRoutingRule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutboundRoutingRule_get_CountryCode(This,plCountryCode) \ + ( (This)->lpVtbl -> get_CountryCode(This,plCountryCode) ) + +#define IFaxOutboundRoutingRule_get_AreaCode(This,plAreaCode) \ + ( (This)->lpVtbl -> get_AreaCode(This,plAreaCode) ) + +#define IFaxOutboundRoutingRule_get_Status(This,pStatus) \ + ( (This)->lpVtbl -> get_Status(This,pStatus) ) + +#define IFaxOutboundRoutingRule_get_UseDevice(This,pbUseDevice) \ + ( (This)->lpVtbl -> get_UseDevice(This,pbUseDevice) ) + +#define IFaxOutboundRoutingRule_put_UseDevice(This,bUseDevice) \ + ( (This)->lpVtbl -> put_UseDevice(This,bUseDevice) ) + +#define IFaxOutboundRoutingRule_get_DeviceId(This,plDeviceId) \ + ( (This)->lpVtbl -> get_DeviceId(This,plDeviceId) ) + +#define IFaxOutboundRoutingRule_put_DeviceId(This,DeviceId) \ + ( (This)->lpVtbl -> put_DeviceId(This,DeviceId) ) + +#define IFaxOutboundRoutingRule_get_GroupName(This,pbstrGroupName) \ + ( (This)->lpVtbl -> get_GroupName(This,pbstrGroupName) ) + +#define IFaxOutboundRoutingRule_put_GroupName(This,bstrGroupName) \ + ( (This)->lpVtbl -> put_GroupName(This,bstrGroupName) ) + +#define IFaxOutboundRoutingRule_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxOutboundRoutingRule_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutboundRoutingRule_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxInboundRoutingExtensions_INTERFACE_DEFINED__ +#define __IFaxInboundRoutingExtensions_INTERFACE_DEFINED__ + +/* interface IFaxInboundRoutingExtensions */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxInboundRoutingExtensions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2F6C9673-7B26-42DE-8EB0-915DCD2A4F4C") + IFaxInboundRoutingExtensions : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRoutingExtension **pFaxInboundRoutingExtension) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxInboundRoutingExtensionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxInboundRoutingExtensions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxInboundRoutingExtensions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxInboundRoutingExtensions * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxInboundRoutingExtensions * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxInboundRoutingExtensions * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxInboundRoutingExtensions * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxInboundRoutingExtensions * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtensions, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxInboundRoutingExtensions * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtensions, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxInboundRoutingExtensions * This, + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRoutingExtension **pFaxInboundRoutingExtension); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtensions, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxInboundRoutingExtensions * This, + /* [retval][out] */ __RPC__out long *plCount); + + END_INTERFACE + } IFaxInboundRoutingExtensionsVtbl; + + interface IFaxInboundRoutingExtensions + { + CONST_VTBL struct IFaxInboundRoutingExtensionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxInboundRoutingExtensions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxInboundRoutingExtensions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxInboundRoutingExtensions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxInboundRoutingExtensions_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxInboundRoutingExtensions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxInboundRoutingExtensions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxInboundRoutingExtensions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxInboundRoutingExtensions_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxInboundRoutingExtensions_get_Item(This,vIndex,pFaxInboundRoutingExtension) \ + ( (This)->lpVtbl -> get_Item(This,vIndex,pFaxInboundRoutingExtension) ) + +#define IFaxInboundRoutingExtensions_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxInboundRoutingExtensions_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxInboundRoutingExtension_INTERFACE_DEFINED__ +#define __IFaxInboundRoutingExtension_INTERFACE_DEFINED__ + +/* interface IFaxInboundRoutingExtension */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxInboundRoutingExtension; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("885B5E08-C26C-4EF9-AF83-51580A750BE1") + IFaxInboundRoutingExtension : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFriendlyName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ImageName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrImageName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UniqueName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUniqueName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MajorVersion( + /* [retval][out] */ __RPC__out long *plMajorVersion) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinorVersion( + /* [retval][out] */ __RPC__out long *plMinorVersion) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MajorBuild( + /* [retval][out] */ __RPC__out long *plMajorBuild) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MinorBuild( + /* [retval][out] */ __RPC__out long *plMinorBuild) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Debug( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbDebug) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out FAX_PROVIDER_STATUS_ENUM *pStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InitErrorCode( + /* [retval][out] */ __RPC__out long *plInitErrorCode) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Methods( + /* [retval][out] */ __RPC__out VARIANT *pvMethods) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxInboundRoutingExtensionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxInboundRoutingExtension * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxInboundRoutingExtension * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxInboundRoutingExtension * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_FriendlyName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFriendlyName); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_ImageName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImageName )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrImageName); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_UniqueName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrUniqueName); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_MajorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorVersion )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__out long *plMajorVersion); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_MinorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorVersion )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__out long *plMinorVersion); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_MajorBuild) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorBuild )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__out long *plMajorBuild); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_MinorBuild) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorBuild )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__out long *plMinorBuild); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_Debug) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Debug )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbDebug); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_Status) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__out FAX_PROVIDER_STATUS_ENUM *pStatus); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_InitErrorCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InitErrorCode )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__out long *plInitErrorCode); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingExtension, get_Methods) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Methods )( + __RPC__in IFaxInboundRoutingExtension * This, + /* [retval][out] */ __RPC__out VARIANT *pvMethods); + + END_INTERFACE + } IFaxInboundRoutingExtensionVtbl; + + interface IFaxInboundRoutingExtension + { + CONST_VTBL struct IFaxInboundRoutingExtensionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxInboundRoutingExtension_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxInboundRoutingExtension_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxInboundRoutingExtension_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxInboundRoutingExtension_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxInboundRoutingExtension_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxInboundRoutingExtension_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxInboundRoutingExtension_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxInboundRoutingExtension_get_FriendlyName(This,pbstrFriendlyName) \ + ( (This)->lpVtbl -> get_FriendlyName(This,pbstrFriendlyName) ) + +#define IFaxInboundRoutingExtension_get_ImageName(This,pbstrImageName) \ + ( (This)->lpVtbl -> get_ImageName(This,pbstrImageName) ) + +#define IFaxInboundRoutingExtension_get_UniqueName(This,pbstrUniqueName) \ + ( (This)->lpVtbl -> get_UniqueName(This,pbstrUniqueName) ) + +#define IFaxInboundRoutingExtension_get_MajorVersion(This,plMajorVersion) \ + ( (This)->lpVtbl -> get_MajorVersion(This,plMajorVersion) ) + +#define IFaxInboundRoutingExtension_get_MinorVersion(This,plMinorVersion) \ + ( (This)->lpVtbl -> get_MinorVersion(This,plMinorVersion) ) + +#define IFaxInboundRoutingExtension_get_MajorBuild(This,plMajorBuild) \ + ( (This)->lpVtbl -> get_MajorBuild(This,plMajorBuild) ) + +#define IFaxInboundRoutingExtension_get_MinorBuild(This,plMinorBuild) \ + ( (This)->lpVtbl -> get_MinorBuild(This,plMinorBuild) ) + +#define IFaxInboundRoutingExtension_get_Debug(This,pbDebug) \ + ( (This)->lpVtbl -> get_Debug(This,pbDebug) ) + +#define IFaxInboundRoutingExtension_get_Status(This,pStatus) \ + ( (This)->lpVtbl -> get_Status(This,pStatus) ) + +#define IFaxInboundRoutingExtension_get_InitErrorCode(This,plInitErrorCode) \ + ( (This)->lpVtbl -> get_InitErrorCode(This,plInitErrorCode) ) + +#define IFaxInboundRoutingExtension_get_Methods(This,pvMethods) \ + ( (This)->lpVtbl -> get_Methods(This,pvMethods) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxInboundRoutingExtension_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxInboundRoutingMethods_INTERFACE_DEFINED__ +#define __IFaxInboundRoutingMethods_INTERFACE_DEFINED__ + +/* interface IFaxInboundRoutingMethods */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxInboundRoutingMethods; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("783FCA10-8908-4473-9D69-F67FBEA0C6B9") + IFaxInboundRoutingMethods : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRoutingMethod **pFaxInboundRoutingMethod) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxInboundRoutingMethodsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxInboundRoutingMethods * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxInboundRoutingMethods * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxInboundRoutingMethods * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxInboundRoutingMethods * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxInboundRoutingMethods * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxInboundRoutingMethods * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxInboundRoutingMethods * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethods, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxInboundRoutingMethods * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethods, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxInboundRoutingMethods * This, + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRoutingMethod **pFaxInboundRoutingMethod); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethods, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxInboundRoutingMethods * This, + /* [retval][out] */ __RPC__out long *plCount); + + END_INTERFACE + } IFaxInboundRoutingMethodsVtbl; + + interface IFaxInboundRoutingMethods + { + CONST_VTBL struct IFaxInboundRoutingMethodsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxInboundRoutingMethods_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxInboundRoutingMethods_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxInboundRoutingMethods_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxInboundRoutingMethods_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxInboundRoutingMethods_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxInboundRoutingMethods_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxInboundRoutingMethods_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxInboundRoutingMethods_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxInboundRoutingMethods_get_Item(This,vIndex,pFaxInboundRoutingMethod) \ + ( (This)->lpVtbl -> get_Item(This,vIndex,pFaxInboundRoutingMethod) ) + +#define IFaxInboundRoutingMethods_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxInboundRoutingMethods_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxInboundRoutingMethod_INTERFACE_DEFINED__ +#define __IFaxInboundRoutingMethod_INTERFACE_DEFINED__ + +/* interface IFaxInboundRoutingMethod */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxInboundRoutingMethod; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("45700061-AD9D-4776-A8C4-64065492CF4B") + IFaxInboundRoutingMethod : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GUID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrGUID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FunctionName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFunctionName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExtensionFriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtensionFriendlyName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExtensionImageName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtensionImageName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Priority( + /* [retval][out] */ __RPC__out long *plPriority) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Priority( + /* [in] */ long lPriority) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxInboundRoutingMethodVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxInboundRoutingMethod * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxInboundRoutingMethod * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxInboundRoutingMethod * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethod, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethod, get_GUID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrGUID); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethod, get_FunctionName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FunctionName )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFunctionName); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethod, get_ExtensionFriendlyName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtensionFriendlyName )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtensionFriendlyName); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethod, get_ExtensionImageName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtensionImageName )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtensionImageName); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethod, get_Priority) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [retval][out] */ __RPC__out long *plPriority); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethod, put_Priority) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Priority )( + __RPC__in IFaxInboundRoutingMethod * This, + /* [in] */ long lPriority); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethod, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxInboundRoutingMethod * This); + + DECLSPEC_XFGVIRT(IFaxInboundRoutingMethod, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxInboundRoutingMethod * This); + + END_INTERFACE + } IFaxInboundRoutingMethodVtbl; + + interface IFaxInboundRoutingMethod + { + CONST_VTBL struct IFaxInboundRoutingMethodVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxInboundRoutingMethod_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxInboundRoutingMethod_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxInboundRoutingMethod_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxInboundRoutingMethod_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxInboundRoutingMethod_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxInboundRoutingMethod_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxInboundRoutingMethod_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxInboundRoutingMethod_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IFaxInboundRoutingMethod_get_GUID(This,pbstrGUID) \ + ( (This)->lpVtbl -> get_GUID(This,pbstrGUID) ) + +#define IFaxInboundRoutingMethod_get_FunctionName(This,pbstrFunctionName) \ + ( (This)->lpVtbl -> get_FunctionName(This,pbstrFunctionName) ) + +#define IFaxInboundRoutingMethod_get_ExtensionFriendlyName(This,pbstrExtensionFriendlyName) \ + ( (This)->lpVtbl -> get_ExtensionFriendlyName(This,pbstrExtensionFriendlyName) ) + +#define IFaxInboundRoutingMethod_get_ExtensionImageName(This,pbstrExtensionImageName) \ + ( (This)->lpVtbl -> get_ExtensionImageName(This,pbstrExtensionImageName) ) + +#define IFaxInboundRoutingMethod_get_Priority(This,plPriority) \ + ( (This)->lpVtbl -> get_Priority(This,plPriority) ) + +#define IFaxInboundRoutingMethod_put_Priority(This,lPriority) \ + ( (This)->lpVtbl -> put_Priority(This,lPriority) ) + +#define IFaxInboundRoutingMethod_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxInboundRoutingMethod_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxInboundRoutingMethod_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxDocument2_INTERFACE_DEFINED__ +#define __IFaxDocument2_INTERFACE_DEFINED__ + +/* interface IFaxDocument2 */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxDocument2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e1347661-f9ef-4d6d-b4a5-c0a068b65cff") + IFaxDocument2 : public IFaxDocument + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SubmissionId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubmissionId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Bodies( + /* [retval][out] */ __RPC__out VARIANT *pvBodies) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Bodies( + /* [in] */ VARIANT vBodies) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Submit2( + /* [in] */ __RPC__in BSTR bstrFaxServerName, + /* [out] */ __RPC__out VARIANT *pvFaxOutgoingJobIDs, + /* [retval][out] */ __RPC__out long *plErrorBodyFile) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectedSubmit2( + /* [in] */ __RPC__in_opt IFaxServer *pFaxServer, + /* [out] */ __RPC__out VARIANT *pvFaxOutgoingJobIDs, + /* [retval][out] */ __RPC__out long *plErrorBodyFile) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxDocument2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxDocument2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxDocument2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxDocument2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxDocument2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxDocument2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Body) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Body )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBody); + + DECLSPEC_XFGVIRT(IFaxDocument, put_Body) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Body )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in BSTR bstrBody); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Sender) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Sender )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxSender **ppFaxSender); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Recipients) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recipients )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipients **ppFaxRecipients); + + DECLSPEC_XFGVIRT(IFaxDocument, get_CoverPage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CoverPage )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCoverPage); + + DECLSPEC_XFGVIRT(IFaxDocument, put_CoverPage) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CoverPage )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in BSTR bstrCoverPage); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Subject) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject); + + DECLSPEC_XFGVIRT(IFaxDocument, put_Subject) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Subject )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in BSTR bstrSubject); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Note) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Note )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNote); + + DECLSPEC_XFGVIRT(IFaxDocument, put_Note) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Note )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in BSTR bstrNote); + + DECLSPEC_XFGVIRT(IFaxDocument, get_ScheduleTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScheduleTime )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__out DATE *pdateScheduleTime); + + DECLSPEC_XFGVIRT(IFaxDocument, put_ScheduleTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ScheduleTime )( + __RPC__in IFaxDocument2 * This, + /* [in] */ DATE dateScheduleTime); + + DECLSPEC_XFGVIRT(IFaxDocument, get_ReceiptAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptAddress )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrReceiptAddress); + + DECLSPEC_XFGVIRT(IFaxDocument, put_ReceiptAddress) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReceiptAddress )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in BSTR bstrReceiptAddress); + + DECLSPEC_XFGVIRT(IFaxDocument, get_DocumentName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DocumentName )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDocumentName); + + DECLSPEC_XFGVIRT(IFaxDocument, put_DocumentName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DocumentName )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in BSTR bstrDocumentName); + + DECLSPEC_XFGVIRT(IFaxDocument, get_CallHandle) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CallHandle )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__out long *plCallHandle); + + DECLSPEC_XFGVIRT(IFaxDocument, put_CallHandle) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CallHandle )( + __RPC__in IFaxDocument2 * This, + /* [in] */ long lCallHandle); + + DECLSPEC_XFGVIRT(IFaxDocument, get_CoverPageType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CoverPageType )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__out FAX_COVERPAGE_TYPE_ENUM *pCoverPageType); + + DECLSPEC_XFGVIRT(IFaxDocument, put_CoverPageType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CoverPageType )( + __RPC__in IFaxDocument2 * This, + /* [in] */ FAX_COVERPAGE_TYPE_ENUM CoverPageType); + + DECLSPEC_XFGVIRT(IFaxDocument, get_ScheduleType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScheduleType )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__out FAX_SCHEDULE_TYPE_ENUM *pScheduleType); + + DECLSPEC_XFGVIRT(IFaxDocument, put_ScheduleType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ScheduleType )( + __RPC__in IFaxDocument2 * This, + /* [in] */ FAX_SCHEDULE_TYPE_ENUM ScheduleType); + + DECLSPEC_XFGVIRT(IFaxDocument, get_ReceiptType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptType )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__out FAX_RECEIPT_TYPE_ENUM *pReceiptType); + + DECLSPEC_XFGVIRT(IFaxDocument, put_ReceiptType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReceiptType )( + __RPC__in IFaxDocument2 * This, + /* [in] */ FAX_RECEIPT_TYPE_ENUM ReceiptType); + + DECLSPEC_XFGVIRT(IFaxDocument, get_GroupBroadcastReceipts) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GroupBroadcastReceipts )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseGrouping); + + DECLSPEC_XFGVIRT(IFaxDocument, put_GroupBroadcastReceipts) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_GroupBroadcastReceipts )( + __RPC__in IFaxDocument2 * This, + /* [in] */ VARIANT_BOOL bUseGrouping); + + DECLSPEC_XFGVIRT(IFaxDocument, get_Priority) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__out FAX_PRIORITY_TYPE_ENUM *pPriority); + + DECLSPEC_XFGVIRT(IFaxDocument, put_Priority) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Priority )( + __RPC__in IFaxDocument2 * This, + /* [in] */ FAX_PRIORITY_TYPE_ENUM Priority); + + DECLSPEC_XFGVIRT(IFaxDocument, get_TapiConnection) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TapiConnection )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppTapiConnection); + + DECLSPEC_XFGVIRT(IFaxDocument, putref_TapiConnection) + /* [helpstring][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_TapiConnection )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in_opt IDispatch *pTapiConnection); + + DECLSPEC_XFGVIRT(IFaxDocument, Submit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in BSTR bstrFaxServerName, + /* [retval][out] */ __RPC__out VARIANT *pvFaxOutgoingJobIDs); + + DECLSPEC_XFGVIRT(IFaxDocument, ConnectedSubmit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectedSubmit )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in_opt IFaxServer *pFaxServer, + /* [retval][out] */ __RPC__out VARIANT *pvFaxOutgoingJobIDs); + + DECLSPEC_XFGVIRT(IFaxDocument, get_AttachFaxToReceipt) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AttachFaxToReceipt )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbAttachFax); + + DECLSPEC_XFGVIRT(IFaxDocument, put_AttachFaxToReceipt) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AttachFaxToReceipt )( + __RPC__in IFaxDocument2 * This, + /* [in] */ VARIANT_BOOL bAttachFax); + + DECLSPEC_XFGVIRT(IFaxDocument2, get_SubmissionId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubmissionId )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubmissionId); + + DECLSPEC_XFGVIRT(IFaxDocument2, get_Bodies) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Bodies )( + __RPC__in IFaxDocument2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvBodies); + + DECLSPEC_XFGVIRT(IFaxDocument2, put_Bodies) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Bodies )( + __RPC__in IFaxDocument2 * This, + /* [in] */ VARIANT vBodies); + + DECLSPEC_XFGVIRT(IFaxDocument2, Submit2) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Submit2 )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in BSTR bstrFaxServerName, + /* [out] */ __RPC__out VARIANT *pvFaxOutgoingJobIDs, + /* [retval][out] */ __RPC__out long *plErrorBodyFile); + + DECLSPEC_XFGVIRT(IFaxDocument2, ConnectedSubmit2) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectedSubmit2 )( + __RPC__in IFaxDocument2 * This, + /* [in] */ __RPC__in_opt IFaxServer *pFaxServer, + /* [out] */ __RPC__out VARIANT *pvFaxOutgoingJobIDs, + /* [retval][out] */ __RPC__out long *plErrorBodyFile); + + END_INTERFACE + } IFaxDocument2Vtbl; + + interface IFaxDocument2 + { + CONST_VTBL struct IFaxDocument2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxDocument2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxDocument2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxDocument2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxDocument2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxDocument2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxDocument2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxDocument2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxDocument2_get_Body(This,pbstrBody) \ + ( (This)->lpVtbl -> get_Body(This,pbstrBody) ) + +#define IFaxDocument2_put_Body(This,bstrBody) \ + ( (This)->lpVtbl -> put_Body(This,bstrBody) ) + +#define IFaxDocument2_get_Sender(This,ppFaxSender) \ + ( (This)->lpVtbl -> get_Sender(This,ppFaxSender) ) + +#define IFaxDocument2_get_Recipients(This,ppFaxRecipients) \ + ( (This)->lpVtbl -> get_Recipients(This,ppFaxRecipients) ) + +#define IFaxDocument2_get_CoverPage(This,pbstrCoverPage) \ + ( (This)->lpVtbl -> get_CoverPage(This,pbstrCoverPage) ) + +#define IFaxDocument2_put_CoverPage(This,bstrCoverPage) \ + ( (This)->lpVtbl -> put_CoverPage(This,bstrCoverPage) ) + +#define IFaxDocument2_get_Subject(This,pbstrSubject) \ + ( (This)->lpVtbl -> get_Subject(This,pbstrSubject) ) + +#define IFaxDocument2_put_Subject(This,bstrSubject) \ + ( (This)->lpVtbl -> put_Subject(This,bstrSubject) ) + +#define IFaxDocument2_get_Note(This,pbstrNote) \ + ( (This)->lpVtbl -> get_Note(This,pbstrNote) ) + +#define IFaxDocument2_put_Note(This,bstrNote) \ + ( (This)->lpVtbl -> put_Note(This,bstrNote) ) + +#define IFaxDocument2_get_ScheduleTime(This,pdateScheduleTime) \ + ( (This)->lpVtbl -> get_ScheduleTime(This,pdateScheduleTime) ) + +#define IFaxDocument2_put_ScheduleTime(This,dateScheduleTime) \ + ( (This)->lpVtbl -> put_ScheduleTime(This,dateScheduleTime) ) + +#define IFaxDocument2_get_ReceiptAddress(This,pbstrReceiptAddress) \ + ( (This)->lpVtbl -> get_ReceiptAddress(This,pbstrReceiptAddress) ) + +#define IFaxDocument2_put_ReceiptAddress(This,bstrReceiptAddress) \ + ( (This)->lpVtbl -> put_ReceiptAddress(This,bstrReceiptAddress) ) + +#define IFaxDocument2_get_DocumentName(This,pbstrDocumentName) \ + ( (This)->lpVtbl -> get_DocumentName(This,pbstrDocumentName) ) + +#define IFaxDocument2_put_DocumentName(This,bstrDocumentName) \ + ( (This)->lpVtbl -> put_DocumentName(This,bstrDocumentName) ) + +#define IFaxDocument2_get_CallHandle(This,plCallHandle) \ + ( (This)->lpVtbl -> get_CallHandle(This,plCallHandle) ) + +#define IFaxDocument2_put_CallHandle(This,lCallHandle) \ + ( (This)->lpVtbl -> put_CallHandle(This,lCallHandle) ) + +#define IFaxDocument2_get_CoverPageType(This,pCoverPageType) \ + ( (This)->lpVtbl -> get_CoverPageType(This,pCoverPageType) ) + +#define IFaxDocument2_put_CoverPageType(This,CoverPageType) \ + ( (This)->lpVtbl -> put_CoverPageType(This,CoverPageType) ) + +#define IFaxDocument2_get_ScheduleType(This,pScheduleType) \ + ( (This)->lpVtbl -> get_ScheduleType(This,pScheduleType) ) + +#define IFaxDocument2_put_ScheduleType(This,ScheduleType) \ + ( (This)->lpVtbl -> put_ScheduleType(This,ScheduleType) ) + +#define IFaxDocument2_get_ReceiptType(This,pReceiptType) \ + ( (This)->lpVtbl -> get_ReceiptType(This,pReceiptType) ) + +#define IFaxDocument2_put_ReceiptType(This,ReceiptType) \ + ( (This)->lpVtbl -> put_ReceiptType(This,ReceiptType) ) + +#define IFaxDocument2_get_GroupBroadcastReceipts(This,pbUseGrouping) \ + ( (This)->lpVtbl -> get_GroupBroadcastReceipts(This,pbUseGrouping) ) + +#define IFaxDocument2_put_GroupBroadcastReceipts(This,bUseGrouping) \ + ( (This)->lpVtbl -> put_GroupBroadcastReceipts(This,bUseGrouping) ) + +#define IFaxDocument2_get_Priority(This,pPriority) \ + ( (This)->lpVtbl -> get_Priority(This,pPriority) ) + +#define IFaxDocument2_put_Priority(This,Priority) \ + ( (This)->lpVtbl -> put_Priority(This,Priority) ) + +#define IFaxDocument2_get_TapiConnection(This,ppTapiConnection) \ + ( (This)->lpVtbl -> get_TapiConnection(This,ppTapiConnection) ) + +#define IFaxDocument2_putref_TapiConnection(This,pTapiConnection) \ + ( (This)->lpVtbl -> putref_TapiConnection(This,pTapiConnection) ) + +#define IFaxDocument2_Submit(This,bstrFaxServerName,pvFaxOutgoingJobIDs) \ + ( (This)->lpVtbl -> Submit(This,bstrFaxServerName,pvFaxOutgoingJobIDs) ) + +#define IFaxDocument2_ConnectedSubmit(This,pFaxServer,pvFaxOutgoingJobIDs) \ + ( (This)->lpVtbl -> ConnectedSubmit(This,pFaxServer,pvFaxOutgoingJobIDs) ) + +#define IFaxDocument2_get_AttachFaxToReceipt(This,pbAttachFax) \ + ( (This)->lpVtbl -> get_AttachFaxToReceipt(This,pbAttachFax) ) + +#define IFaxDocument2_put_AttachFaxToReceipt(This,bAttachFax) \ + ( (This)->lpVtbl -> put_AttachFaxToReceipt(This,bAttachFax) ) + + +#define IFaxDocument2_get_SubmissionId(This,pbstrSubmissionId) \ + ( (This)->lpVtbl -> get_SubmissionId(This,pbstrSubmissionId) ) + +#define IFaxDocument2_get_Bodies(This,pvBodies) \ + ( (This)->lpVtbl -> get_Bodies(This,pvBodies) ) + +#define IFaxDocument2_put_Bodies(This,vBodies) \ + ( (This)->lpVtbl -> put_Bodies(This,vBodies) ) + +#define IFaxDocument2_Submit2(This,bstrFaxServerName,pvFaxOutgoingJobIDs,plErrorBodyFile) \ + ( (This)->lpVtbl -> Submit2(This,bstrFaxServerName,pvFaxOutgoingJobIDs,plErrorBodyFile) ) + +#define IFaxDocument2_ConnectedSubmit2(This,pFaxServer,pvFaxOutgoingJobIDs,plErrorBodyFile) \ + ( (This)->lpVtbl -> ConnectedSubmit2(This,pFaxServer,pvFaxOutgoingJobIDs,plErrorBodyFile) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxDocument2_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxConfiguration_INTERFACE_DEFINED__ +#define __IFaxConfiguration_INTERFACE_DEFINED__ + +/* interface IFaxConfiguration */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("10f4d0f7-0994-4543-ab6e-506949128c40") + IFaxConfiguration : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseArchive( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseArchive) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseArchive( + /* [in] */ VARIANT_BOOL bUseArchive) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ArchiveLocation( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrArchiveLocation) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ArchiveLocation( + /* [in] */ __RPC__in BSTR bstrArchiveLocation) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeQuotaWarning( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSizeQuotaWarning) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SizeQuotaWarning( + /* [in] */ VARIANT_BOOL bSizeQuotaWarning) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HighQuotaWaterMark( + /* [retval][out] */ __RPC__out long *plHighQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HighQuotaWaterMark( + /* [in] */ long lHighQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LowQuotaWaterMark( + /* [retval][out] */ __RPC__out long *plLowQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LowQuotaWaterMark( + /* [in] */ long lLowQuotaWaterMark) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ArchiveAgeLimit( + /* [retval][out] */ __RPC__out long *plArchiveAgeLimit) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ArchiveAgeLimit( + /* [in] */ long lArchiveAgeLimit) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ArchiveSizeLow( + /* [retval][out] */ __RPC__out long *plSizeLow) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ArchiveSizeHigh( + /* [retval][out] */ __RPC__out long *plSizeHigh) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutgoingQueueBlocked( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbOutgoingBlocked) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OutgoingQueueBlocked( + /* [in] */ VARIANT_BOOL bOutgoingBlocked) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutgoingQueuePaused( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbOutgoingPaused) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OutgoingQueuePaused( + /* [in] */ VARIANT_BOOL bOutgoingPaused) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AllowPersonalCoverPages( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbAllowPersonalCoverPages) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AllowPersonalCoverPages( + /* [in] */ VARIANT_BOOL bAllowPersonalCoverPages) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseDeviceTSID( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseDeviceTSID) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseDeviceTSID( + /* [in] */ VARIANT_BOOL bUseDeviceTSID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Retries( + /* [retval][out] */ __RPC__out long *plRetries) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Retries( + /* [in] */ long lRetries) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RetryDelay( + /* [retval][out] */ __RPC__out long *plRetryDelay) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RetryDelay( + /* [in] */ long lRetryDelay) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscountRateStart( + /* [retval][out] */ __RPC__out DATE *pdateDiscountRateStart) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DiscountRateStart( + /* [in] */ DATE dateDiscountRateStart) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscountRateEnd( + /* [retval][out] */ __RPC__out DATE *pdateDiscountRateEnd) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DiscountRateEnd( + /* [in] */ DATE dateDiscountRateEnd) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutgoingQueueAgeLimit( + /* [retval][out] */ __RPC__out long *plOutgoingQueueAgeLimit) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OutgoingQueueAgeLimit( + /* [in] */ long lOutgoingQueueAgeLimit) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Branding( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbBranding) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Branding( + /* [in] */ VARIANT_BOOL bBranding) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IncomingQueueBlocked( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIncomingBlocked) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_IncomingQueueBlocked( + /* [in] */ VARIANT_BOOL bIncomingBlocked) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AutoCreateAccountOnConnect( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbAutoCreateAccountOnConnect) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AutoCreateAccountOnConnect( + /* [in] */ VARIANT_BOOL bAutoCreateAccountOnConnect) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IncomingFaxesArePublic( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIncomingFaxesArePublic) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_IncomingFaxesArePublic( + /* [in] */ VARIANT_BOOL bIncomingFaxesArePublic) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxConfiguration * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxConfiguration * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxConfiguration * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxConfiguration * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxConfiguration * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxConfiguration * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_UseArchive) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseArchive )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseArchive); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_UseArchive) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseArchive )( + __RPC__in IFaxConfiguration * This, + /* [in] */ VARIANT_BOOL bUseArchive); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_ArchiveLocation) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchiveLocation )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrArchiveLocation); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_ArchiveLocation) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ArchiveLocation )( + __RPC__in IFaxConfiguration * This, + /* [in] */ __RPC__in BSTR bstrArchiveLocation); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_SizeQuotaWarning) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeQuotaWarning )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSizeQuotaWarning); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_SizeQuotaWarning) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SizeQuotaWarning )( + __RPC__in IFaxConfiguration * This, + /* [in] */ VARIANT_BOOL bSizeQuotaWarning); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_HighQuotaWaterMark) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HighQuotaWaterMark )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out long *plHighQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_HighQuotaWaterMark) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HighQuotaWaterMark )( + __RPC__in IFaxConfiguration * This, + /* [in] */ long lHighQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_LowQuotaWaterMark) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LowQuotaWaterMark )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out long *plLowQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_LowQuotaWaterMark) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LowQuotaWaterMark )( + __RPC__in IFaxConfiguration * This, + /* [in] */ long lLowQuotaWaterMark); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_ArchiveAgeLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchiveAgeLimit )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out long *plArchiveAgeLimit); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_ArchiveAgeLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ArchiveAgeLimit )( + __RPC__in IFaxConfiguration * This, + /* [in] */ long lArchiveAgeLimit); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_ArchiveSizeLow) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchiveSizeLow )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out long *plSizeLow); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_ArchiveSizeHigh) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchiveSizeHigh )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out long *plSizeHigh); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_OutgoingQueueBlocked) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutgoingQueueBlocked )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbOutgoingBlocked); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_OutgoingQueueBlocked) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OutgoingQueueBlocked )( + __RPC__in IFaxConfiguration * This, + /* [in] */ VARIANT_BOOL bOutgoingBlocked); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_OutgoingQueuePaused) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutgoingQueuePaused )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbOutgoingPaused); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_OutgoingQueuePaused) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OutgoingQueuePaused )( + __RPC__in IFaxConfiguration * This, + /* [in] */ VARIANT_BOOL bOutgoingPaused); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_AllowPersonalCoverPages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowPersonalCoverPages )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbAllowPersonalCoverPages); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_AllowPersonalCoverPages) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowPersonalCoverPages )( + __RPC__in IFaxConfiguration * This, + /* [in] */ VARIANT_BOOL bAllowPersonalCoverPages); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_UseDeviceTSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseDeviceTSID )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbUseDeviceTSID); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_UseDeviceTSID) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseDeviceTSID )( + __RPC__in IFaxConfiguration * This, + /* [in] */ VARIANT_BOOL bUseDeviceTSID); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out long *plRetries); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_Retries) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Retries )( + __RPC__in IFaxConfiguration * This, + /* [in] */ long lRetries); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_RetryDelay) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetryDelay )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out long *plRetryDelay); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_RetryDelay) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RetryDelay )( + __RPC__in IFaxConfiguration * This, + /* [in] */ long lRetryDelay); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_DiscountRateStart) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscountRateStart )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out DATE *pdateDiscountRateStart); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_DiscountRateStart) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DiscountRateStart )( + __RPC__in IFaxConfiguration * This, + /* [in] */ DATE dateDiscountRateStart); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_DiscountRateEnd) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscountRateEnd )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out DATE *pdateDiscountRateEnd); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_DiscountRateEnd) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DiscountRateEnd )( + __RPC__in IFaxConfiguration * This, + /* [in] */ DATE dateDiscountRateEnd); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_OutgoingQueueAgeLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutgoingQueueAgeLimit )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out long *plOutgoingQueueAgeLimit); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_OutgoingQueueAgeLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OutgoingQueueAgeLimit )( + __RPC__in IFaxConfiguration * This, + /* [in] */ long lOutgoingQueueAgeLimit); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_Branding) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Branding )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbBranding); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_Branding) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Branding )( + __RPC__in IFaxConfiguration * This, + /* [in] */ VARIANT_BOOL bBranding); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_IncomingQueueBlocked) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IncomingQueueBlocked )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIncomingBlocked); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_IncomingQueueBlocked) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IncomingQueueBlocked )( + __RPC__in IFaxConfiguration * This, + /* [in] */ VARIANT_BOOL bIncomingBlocked); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_AutoCreateAccountOnConnect) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AutoCreateAccountOnConnect )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbAutoCreateAccountOnConnect); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_AutoCreateAccountOnConnect) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AutoCreateAccountOnConnect )( + __RPC__in IFaxConfiguration * This, + /* [in] */ VARIANT_BOOL bAutoCreateAccountOnConnect); + + DECLSPEC_XFGVIRT(IFaxConfiguration, get_IncomingFaxesArePublic) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IncomingFaxesArePublic )( + __RPC__in IFaxConfiguration * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIncomingFaxesArePublic); + + DECLSPEC_XFGVIRT(IFaxConfiguration, put_IncomingFaxesArePublic) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IncomingFaxesArePublic )( + __RPC__in IFaxConfiguration * This, + /* [in] */ VARIANT_BOOL bIncomingFaxesArePublic); + + DECLSPEC_XFGVIRT(IFaxConfiguration, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxConfiguration * This); + + DECLSPEC_XFGVIRT(IFaxConfiguration, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxConfiguration * This); + + END_INTERFACE + } IFaxConfigurationVtbl; + + interface IFaxConfiguration + { + CONST_VTBL struct IFaxConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxConfiguration_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxConfiguration_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxConfiguration_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxConfiguration_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxConfiguration_get_UseArchive(This,pbUseArchive) \ + ( (This)->lpVtbl -> get_UseArchive(This,pbUseArchive) ) + +#define IFaxConfiguration_put_UseArchive(This,bUseArchive) \ + ( (This)->lpVtbl -> put_UseArchive(This,bUseArchive) ) + +#define IFaxConfiguration_get_ArchiveLocation(This,pbstrArchiveLocation) \ + ( (This)->lpVtbl -> get_ArchiveLocation(This,pbstrArchiveLocation) ) + +#define IFaxConfiguration_put_ArchiveLocation(This,bstrArchiveLocation) \ + ( (This)->lpVtbl -> put_ArchiveLocation(This,bstrArchiveLocation) ) + +#define IFaxConfiguration_get_SizeQuotaWarning(This,pbSizeQuotaWarning) \ + ( (This)->lpVtbl -> get_SizeQuotaWarning(This,pbSizeQuotaWarning) ) + +#define IFaxConfiguration_put_SizeQuotaWarning(This,bSizeQuotaWarning) \ + ( (This)->lpVtbl -> put_SizeQuotaWarning(This,bSizeQuotaWarning) ) + +#define IFaxConfiguration_get_HighQuotaWaterMark(This,plHighQuotaWaterMark) \ + ( (This)->lpVtbl -> get_HighQuotaWaterMark(This,plHighQuotaWaterMark) ) + +#define IFaxConfiguration_put_HighQuotaWaterMark(This,lHighQuotaWaterMark) \ + ( (This)->lpVtbl -> put_HighQuotaWaterMark(This,lHighQuotaWaterMark) ) + +#define IFaxConfiguration_get_LowQuotaWaterMark(This,plLowQuotaWaterMark) \ + ( (This)->lpVtbl -> get_LowQuotaWaterMark(This,plLowQuotaWaterMark) ) + +#define IFaxConfiguration_put_LowQuotaWaterMark(This,lLowQuotaWaterMark) \ + ( (This)->lpVtbl -> put_LowQuotaWaterMark(This,lLowQuotaWaterMark) ) + +#define IFaxConfiguration_get_ArchiveAgeLimit(This,plArchiveAgeLimit) \ + ( (This)->lpVtbl -> get_ArchiveAgeLimit(This,plArchiveAgeLimit) ) + +#define IFaxConfiguration_put_ArchiveAgeLimit(This,lArchiveAgeLimit) \ + ( (This)->lpVtbl -> put_ArchiveAgeLimit(This,lArchiveAgeLimit) ) + +#define IFaxConfiguration_get_ArchiveSizeLow(This,plSizeLow) \ + ( (This)->lpVtbl -> get_ArchiveSizeLow(This,plSizeLow) ) + +#define IFaxConfiguration_get_ArchiveSizeHigh(This,plSizeHigh) \ + ( (This)->lpVtbl -> get_ArchiveSizeHigh(This,plSizeHigh) ) + +#define IFaxConfiguration_get_OutgoingQueueBlocked(This,pbOutgoingBlocked) \ + ( (This)->lpVtbl -> get_OutgoingQueueBlocked(This,pbOutgoingBlocked) ) + +#define IFaxConfiguration_put_OutgoingQueueBlocked(This,bOutgoingBlocked) \ + ( (This)->lpVtbl -> put_OutgoingQueueBlocked(This,bOutgoingBlocked) ) + +#define IFaxConfiguration_get_OutgoingQueuePaused(This,pbOutgoingPaused) \ + ( (This)->lpVtbl -> get_OutgoingQueuePaused(This,pbOutgoingPaused) ) + +#define IFaxConfiguration_put_OutgoingQueuePaused(This,bOutgoingPaused) \ + ( (This)->lpVtbl -> put_OutgoingQueuePaused(This,bOutgoingPaused) ) + +#define IFaxConfiguration_get_AllowPersonalCoverPages(This,pbAllowPersonalCoverPages) \ + ( (This)->lpVtbl -> get_AllowPersonalCoverPages(This,pbAllowPersonalCoverPages) ) + +#define IFaxConfiguration_put_AllowPersonalCoverPages(This,bAllowPersonalCoverPages) \ + ( (This)->lpVtbl -> put_AllowPersonalCoverPages(This,bAllowPersonalCoverPages) ) + +#define IFaxConfiguration_get_UseDeviceTSID(This,pbUseDeviceTSID) \ + ( (This)->lpVtbl -> get_UseDeviceTSID(This,pbUseDeviceTSID) ) + +#define IFaxConfiguration_put_UseDeviceTSID(This,bUseDeviceTSID) \ + ( (This)->lpVtbl -> put_UseDeviceTSID(This,bUseDeviceTSID) ) + +#define IFaxConfiguration_get_Retries(This,plRetries) \ + ( (This)->lpVtbl -> get_Retries(This,plRetries) ) + +#define IFaxConfiguration_put_Retries(This,lRetries) \ + ( (This)->lpVtbl -> put_Retries(This,lRetries) ) + +#define IFaxConfiguration_get_RetryDelay(This,plRetryDelay) \ + ( (This)->lpVtbl -> get_RetryDelay(This,plRetryDelay) ) + +#define IFaxConfiguration_put_RetryDelay(This,lRetryDelay) \ + ( (This)->lpVtbl -> put_RetryDelay(This,lRetryDelay) ) + +#define IFaxConfiguration_get_DiscountRateStart(This,pdateDiscountRateStart) \ + ( (This)->lpVtbl -> get_DiscountRateStart(This,pdateDiscountRateStart) ) + +#define IFaxConfiguration_put_DiscountRateStart(This,dateDiscountRateStart) \ + ( (This)->lpVtbl -> put_DiscountRateStart(This,dateDiscountRateStart) ) + +#define IFaxConfiguration_get_DiscountRateEnd(This,pdateDiscountRateEnd) \ + ( (This)->lpVtbl -> get_DiscountRateEnd(This,pdateDiscountRateEnd) ) + +#define IFaxConfiguration_put_DiscountRateEnd(This,dateDiscountRateEnd) \ + ( (This)->lpVtbl -> put_DiscountRateEnd(This,dateDiscountRateEnd) ) + +#define IFaxConfiguration_get_OutgoingQueueAgeLimit(This,plOutgoingQueueAgeLimit) \ + ( (This)->lpVtbl -> get_OutgoingQueueAgeLimit(This,plOutgoingQueueAgeLimit) ) + +#define IFaxConfiguration_put_OutgoingQueueAgeLimit(This,lOutgoingQueueAgeLimit) \ + ( (This)->lpVtbl -> put_OutgoingQueueAgeLimit(This,lOutgoingQueueAgeLimit) ) + +#define IFaxConfiguration_get_Branding(This,pbBranding) \ + ( (This)->lpVtbl -> get_Branding(This,pbBranding) ) + +#define IFaxConfiguration_put_Branding(This,bBranding) \ + ( (This)->lpVtbl -> put_Branding(This,bBranding) ) + +#define IFaxConfiguration_get_IncomingQueueBlocked(This,pbIncomingBlocked) \ + ( (This)->lpVtbl -> get_IncomingQueueBlocked(This,pbIncomingBlocked) ) + +#define IFaxConfiguration_put_IncomingQueueBlocked(This,bIncomingBlocked) \ + ( (This)->lpVtbl -> put_IncomingQueueBlocked(This,bIncomingBlocked) ) + +#define IFaxConfiguration_get_AutoCreateAccountOnConnect(This,pbAutoCreateAccountOnConnect) \ + ( (This)->lpVtbl -> get_AutoCreateAccountOnConnect(This,pbAutoCreateAccountOnConnect) ) + +#define IFaxConfiguration_put_AutoCreateAccountOnConnect(This,bAutoCreateAccountOnConnect) \ + ( (This)->lpVtbl -> put_AutoCreateAccountOnConnect(This,bAutoCreateAccountOnConnect) ) + +#define IFaxConfiguration_get_IncomingFaxesArePublic(This,pbIncomingFaxesArePublic) \ + ( (This)->lpVtbl -> get_IncomingFaxesArePublic(This,pbIncomingFaxesArePublic) ) + +#define IFaxConfiguration_put_IncomingFaxesArePublic(This,bIncomingFaxesArePublic) \ + ( (This)->lpVtbl -> put_IncomingFaxesArePublic(This,bIncomingFaxesArePublic) ) + +#define IFaxConfiguration_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxConfiguration_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxConfiguration_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxServer2_INTERFACE_DEFINED__ +#define __IFaxServer2_INTERFACE_DEFINED__ + +/* interface IFaxServer2 */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxServer2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("571ced0f-5609-4f40-9176-547e3a72ca7c") + IFaxServer2 : public IFaxServer + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Configuration( + /* [retval][out] */ __RPC__deref_out_opt IFaxConfiguration **ppFaxConfiguration) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentAccount( + /* [retval][out] */ __RPC__deref_out_opt IFaxAccount **ppCurrentAccount) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FaxAccountSet( + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountSet **ppFaxAccountSet) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Security2( + /* [retval][out] */ __RPC__deref_out_opt IFaxSecurity2 **ppFaxSecurity2) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxServer2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxServer2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxServer2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxServer2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxServer2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxServer2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxServer2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxServer2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxServer, Connect) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Connect )( + __RPC__in IFaxServer2 * This, + /* [in] */ __RPC__in BSTR bstrServerName); + + DECLSPEC_XFGVIRT(IFaxServer, get_ServerName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerName )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrServerName); + + DECLSPEC_XFGVIRT(IFaxServer, GetDeviceProviders) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDeviceProviders )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxDeviceProviders **ppFaxDeviceProviders); + + DECLSPEC_XFGVIRT(IFaxServer, GetDevices) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDevices )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxDevices **ppFaxDevices); + + DECLSPEC_XFGVIRT(IFaxServer, get_InboundRouting) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InboundRouting )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxInboundRouting **ppFaxInboundRouting); + + DECLSPEC_XFGVIRT(IFaxServer, get_Folders) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Folders )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxFolders **pFaxFolders); + + DECLSPEC_XFGVIRT(IFaxServer, get_LoggingOptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LoggingOptions )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxLoggingOptions **ppFaxLoggingOptions); + + DECLSPEC_XFGVIRT(IFaxServer, get_MajorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorVersion )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__out long *plMajorVersion); + + DECLSPEC_XFGVIRT(IFaxServer, get_MinorVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorVersion )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__out long *plMinorVersion); + + DECLSPEC_XFGVIRT(IFaxServer, get_MajorBuild) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorBuild )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__out long *plMajorBuild); + + DECLSPEC_XFGVIRT(IFaxServer, get_MinorBuild) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorBuild )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__out long *plMinorBuild); + + DECLSPEC_XFGVIRT(IFaxServer, get_Debug) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Debug )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbDebug); + + DECLSPEC_XFGVIRT(IFaxServer, get_Activity) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Activity )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxActivity **ppFaxActivity); + + DECLSPEC_XFGVIRT(IFaxServer, get_OutboundRouting) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutboundRouting )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutboundRouting **ppFaxOutboundRouting); + + DECLSPEC_XFGVIRT(IFaxServer, get_ReceiptOptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptOptions )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxReceiptOptions **ppFaxReceiptOptions); + + DECLSPEC_XFGVIRT(IFaxServer, get_Security) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Security )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxSecurity **ppFaxSecurity); + + DECLSPEC_XFGVIRT(IFaxServer, Disconnect) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Disconnect )( + __RPC__in IFaxServer2 * This); + + DECLSPEC_XFGVIRT(IFaxServer, GetExtensionProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetExtensionProperty )( + __RPC__in IFaxServer2 * This, + /* [in] */ __RPC__in BSTR bstrGUID, + /* [retval][out] */ __RPC__out VARIANT *pvProperty); + + DECLSPEC_XFGVIRT(IFaxServer, SetExtensionProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetExtensionProperty )( + __RPC__in IFaxServer2 * This, + /* [in] */ __RPC__in BSTR bstrGUID, + /* [in] */ VARIANT vProperty); + + DECLSPEC_XFGVIRT(IFaxServer, ListenToServerEvents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ListenToServerEvents )( + __RPC__in IFaxServer2 * This, + /* [in] */ FAX_SERVER_EVENTS_TYPE_ENUM EventTypes); + + DECLSPEC_XFGVIRT(IFaxServer, RegisterDeviceProvider) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RegisterDeviceProvider )( + __RPC__in IFaxServer2 * This, + /* [in] */ __RPC__in BSTR bstrGUID, + /* [in] */ __RPC__in BSTR bstrFriendlyName, + /* [in] */ __RPC__in BSTR bstrImageName, + /* [in] */ __RPC__in BSTR TspName, + /* [in] */ long lFSPIVersion); + + DECLSPEC_XFGVIRT(IFaxServer, UnregisterDeviceProvider) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UnregisterDeviceProvider )( + __RPC__in IFaxServer2 * This, + /* [in] */ __RPC__in BSTR bstrUniqueName); + + DECLSPEC_XFGVIRT(IFaxServer, RegisterInboundRoutingExtension) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RegisterInboundRoutingExtension )( + __RPC__in IFaxServer2 * This, + /* [in] */ __RPC__in BSTR bstrExtensionName, + /* [in] */ __RPC__in BSTR bstrFriendlyName, + /* [in] */ __RPC__in BSTR bstrImageName, + /* [in] */ VARIANT vMethods); + + DECLSPEC_XFGVIRT(IFaxServer, UnregisterInboundRoutingExtension) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UnregisterInboundRoutingExtension )( + __RPC__in IFaxServer2 * This, + /* [in] */ __RPC__in BSTR bstrExtensionUniqueName); + + DECLSPEC_XFGVIRT(IFaxServer, get_RegisteredEvents) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RegisteredEvents )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__out FAX_SERVER_EVENTS_TYPE_ENUM *pEventTypes); + + DECLSPEC_XFGVIRT(IFaxServer, get_APIVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_APIVersion )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__out FAX_SERVER_APIVERSION_ENUM *pAPIVersion); + + DECLSPEC_XFGVIRT(IFaxServer2, get_Configuration) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Configuration )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxConfiguration **ppFaxConfiguration); + + DECLSPEC_XFGVIRT(IFaxServer2, get_CurrentAccount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentAccount )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccount **ppCurrentAccount); + + DECLSPEC_XFGVIRT(IFaxServer2, get_FaxAccountSet) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FaxAccountSet )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountSet **ppFaxAccountSet); + + DECLSPEC_XFGVIRT(IFaxServer2, get_Security2) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Security2 )( + __RPC__in IFaxServer2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxSecurity2 **ppFaxSecurity2); + + END_INTERFACE + } IFaxServer2Vtbl; + + interface IFaxServer2 + { + CONST_VTBL struct IFaxServer2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxServer2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxServer2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxServer2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxServer2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxServer2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxServer2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxServer2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxServer2_Connect(This,bstrServerName) \ + ( (This)->lpVtbl -> Connect(This,bstrServerName) ) + +#define IFaxServer2_get_ServerName(This,pbstrServerName) \ + ( (This)->lpVtbl -> get_ServerName(This,pbstrServerName) ) + +#define IFaxServer2_GetDeviceProviders(This,ppFaxDeviceProviders) \ + ( (This)->lpVtbl -> GetDeviceProviders(This,ppFaxDeviceProviders) ) + +#define IFaxServer2_GetDevices(This,ppFaxDevices) \ + ( (This)->lpVtbl -> GetDevices(This,ppFaxDevices) ) + +#define IFaxServer2_get_InboundRouting(This,ppFaxInboundRouting) \ + ( (This)->lpVtbl -> get_InboundRouting(This,ppFaxInboundRouting) ) + +#define IFaxServer2_get_Folders(This,pFaxFolders) \ + ( (This)->lpVtbl -> get_Folders(This,pFaxFolders) ) + +#define IFaxServer2_get_LoggingOptions(This,ppFaxLoggingOptions) \ + ( (This)->lpVtbl -> get_LoggingOptions(This,ppFaxLoggingOptions) ) + +#define IFaxServer2_get_MajorVersion(This,plMajorVersion) \ + ( (This)->lpVtbl -> get_MajorVersion(This,plMajorVersion) ) + +#define IFaxServer2_get_MinorVersion(This,plMinorVersion) \ + ( (This)->lpVtbl -> get_MinorVersion(This,plMinorVersion) ) + +#define IFaxServer2_get_MajorBuild(This,plMajorBuild) \ + ( (This)->lpVtbl -> get_MajorBuild(This,plMajorBuild) ) + +#define IFaxServer2_get_MinorBuild(This,plMinorBuild) \ + ( (This)->lpVtbl -> get_MinorBuild(This,plMinorBuild) ) + +#define IFaxServer2_get_Debug(This,pbDebug) \ + ( (This)->lpVtbl -> get_Debug(This,pbDebug) ) + +#define IFaxServer2_get_Activity(This,ppFaxActivity) \ + ( (This)->lpVtbl -> get_Activity(This,ppFaxActivity) ) + +#define IFaxServer2_get_OutboundRouting(This,ppFaxOutboundRouting) \ + ( (This)->lpVtbl -> get_OutboundRouting(This,ppFaxOutboundRouting) ) + +#define IFaxServer2_get_ReceiptOptions(This,ppFaxReceiptOptions) \ + ( (This)->lpVtbl -> get_ReceiptOptions(This,ppFaxReceiptOptions) ) + +#define IFaxServer2_get_Security(This,ppFaxSecurity) \ + ( (This)->lpVtbl -> get_Security(This,ppFaxSecurity) ) + +#define IFaxServer2_Disconnect(This) \ + ( (This)->lpVtbl -> Disconnect(This) ) + +#define IFaxServer2_GetExtensionProperty(This,bstrGUID,pvProperty) \ + ( (This)->lpVtbl -> GetExtensionProperty(This,bstrGUID,pvProperty) ) + +#define IFaxServer2_SetExtensionProperty(This,bstrGUID,vProperty) \ + ( (This)->lpVtbl -> SetExtensionProperty(This,bstrGUID,vProperty) ) + +#define IFaxServer2_ListenToServerEvents(This,EventTypes) \ + ( (This)->lpVtbl -> ListenToServerEvents(This,EventTypes) ) + +#define IFaxServer2_RegisterDeviceProvider(This,bstrGUID,bstrFriendlyName,bstrImageName,TspName,lFSPIVersion) \ + ( (This)->lpVtbl -> RegisterDeviceProvider(This,bstrGUID,bstrFriendlyName,bstrImageName,TspName,lFSPIVersion) ) + +#define IFaxServer2_UnregisterDeviceProvider(This,bstrUniqueName) \ + ( (This)->lpVtbl -> UnregisterDeviceProvider(This,bstrUniqueName) ) + +#define IFaxServer2_RegisterInboundRoutingExtension(This,bstrExtensionName,bstrFriendlyName,bstrImageName,vMethods) \ + ( (This)->lpVtbl -> RegisterInboundRoutingExtension(This,bstrExtensionName,bstrFriendlyName,bstrImageName,vMethods) ) + +#define IFaxServer2_UnregisterInboundRoutingExtension(This,bstrExtensionUniqueName) \ + ( (This)->lpVtbl -> UnregisterInboundRoutingExtension(This,bstrExtensionUniqueName) ) + +#define IFaxServer2_get_RegisteredEvents(This,pEventTypes) \ + ( (This)->lpVtbl -> get_RegisteredEvents(This,pEventTypes) ) + +#define IFaxServer2_get_APIVersion(This,pAPIVersion) \ + ( (This)->lpVtbl -> get_APIVersion(This,pAPIVersion) ) + + +#define IFaxServer2_get_Configuration(This,ppFaxConfiguration) \ + ( (This)->lpVtbl -> get_Configuration(This,ppFaxConfiguration) ) + +#define IFaxServer2_get_CurrentAccount(This,ppCurrentAccount) \ + ( (This)->lpVtbl -> get_CurrentAccount(This,ppCurrentAccount) ) + +#define IFaxServer2_get_FaxAccountSet(This,ppFaxAccountSet) \ + ( (This)->lpVtbl -> get_FaxAccountSet(This,ppFaxAccountSet) ) + +#define IFaxServer2_get_Security2(This,ppFaxSecurity2) \ + ( (This)->lpVtbl -> get_Security2(This,ppFaxSecurity2) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxServer2_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxAccountSet_INTERFACE_DEFINED__ +#define __IFaxAccountSet_INTERFACE_DEFINED__ + +/* interface IFaxAccountSet */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxAccountSet; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7428fbae-841e-47b8-86f4-2288946dca1b") + IFaxAccountSet : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetAccounts( + /* [retval][out] */ __RPC__deref_out_opt IFaxAccounts **ppFaxAccounts) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetAccount( + /* [in] */ __RPC__in BSTR bstrAccountName, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccount **pFaxAccount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddAccount( + /* [in] */ __RPC__in BSTR bstrAccountName, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccount **pFaxAccount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveAccount( + /* [in] */ __RPC__in BSTR bstrAccountName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxAccountSetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxAccountSet * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxAccountSet * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxAccountSet * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxAccountSet * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxAccountSet * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxAccountSet * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxAccountSet * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxAccountSet, GetAccounts) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetAccounts )( + __RPC__in IFaxAccountSet * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccounts **ppFaxAccounts); + + DECLSPEC_XFGVIRT(IFaxAccountSet, GetAccount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetAccount )( + __RPC__in IFaxAccountSet * This, + /* [in] */ __RPC__in BSTR bstrAccountName, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccount **pFaxAccount); + + DECLSPEC_XFGVIRT(IFaxAccountSet, AddAccount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddAccount )( + __RPC__in IFaxAccountSet * This, + /* [in] */ __RPC__in BSTR bstrAccountName, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccount **pFaxAccount); + + DECLSPEC_XFGVIRT(IFaxAccountSet, RemoveAccount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAccount )( + __RPC__in IFaxAccountSet * This, + /* [in] */ __RPC__in BSTR bstrAccountName); + + END_INTERFACE + } IFaxAccountSetVtbl; + + interface IFaxAccountSet + { + CONST_VTBL struct IFaxAccountSetVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxAccountSet_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxAccountSet_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxAccountSet_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxAccountSet_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxAccountSet_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxAccountSet_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxAccountSet_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxAccountSet_GetAccounts(This,ppFaxAccounts) \ + ( (This)->lpVtbl -> GetAccounts(This,ppFaxAccounts) ) + +#define IFaxAccountSet_GetAccount(This,bstrAccountName,pFaxAccount) \ + ( (This)->lpVtbl -> GetAccount(This,bstrAccountName,pFaxAccount) ) + +#define IFaxAccountSet_AddAccount(This,bstrAccountName,pFaxAccount) \ + ( (This)->lpVtbl -> AddAccount(This,bstrAccountName,pFaxAccount) ) + +#define IFaxAccountSet_RemoveAccount(This,bstrAccountName) \ + ( (This)->lpVtbl -> RemoveAccount(This,bstrAccountName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxAccountSet_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxAccounts_INTERFACE_DEFINED__ +#define __IFaxAccounts_INTERFACE_DEFINED__ + +/* interface IFaxAccounts */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxAccounts; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("93ea8162-8be7-42d1-ae7b-ec74e2d989da") + IFaxAccounts : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccount **pFaxAccount) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxAccountsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxAccounts * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxAccounts * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxAccounts * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxAccounts * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxAccounts * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxAccounts * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxAccounts * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxAccounts, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFaxAccounts * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFaxAccounts, get_Item) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFaxAccounts * This, + /* [in] */ VARIANT vIndex, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccount **pFaxAccount); + + DECLSPEC_XFGVIRT(IFaxAccounts, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFaxAccounts * This, + /* [retval][out] */ __RPC__out long *plCount); + + END_INTERFACE + } IFaxAccountsVtbl; + + interface IFaxAccounts + { + CONST_VTBL struct IFaxAccountsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxAccounts_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxAccounts_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxAccounts_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxAccounts_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxAccounts_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxAccounts_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxAccounts_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxAccounts_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#define IFaxAccounts_get_Item(This,vIndex,pFaxAccount) \ + ( (This)->lpVtbl -> get_Item(This,vIndex,pFaxAccount) ) + +#define IFaxAccounts_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxAccounts_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxAccount_INTERFACE_DEFINED__ +#define __IFaxAccount_INTERFACE_DEFINED__ + +/* interface IFaxAccount */ +/* [unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_ACCOUNT_EVENTS_TYPE_ENUM + { + faetNONE = 0, + faetIN_QUEUE = 0x1, + faetOUT_QUEUE = 0x2, + faetIN_ARCHIVE = 0x4, + faetOUT_ARCHIVE = 0x8, + faetFXSSVC_ENDED = 0x10 + } FAX_ACCOUNT_EVENTS_TYPE_ENUM; + + +EXTERN_C const IID IID_IFaxAccount; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("68535b33-5dc4-4086-be26-b76f9b711006") + IFaxAccount : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AccountName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrAccountName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Folders( + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountFolders **ppFolders) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ListenToAccountEvents( + /* [in] */ FAX_ACCOUNT_EVENTS_TYPE_ENUM EventTypes) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RegisteredEvents( + /* [retval][out] */ __RPC__out FAX_ACCOUNT_EVENTS_TYPE_ENUM *pRegisteredEvents) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxAccountVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxAccount * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxAccount * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxAccount * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxAccount * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxAccount * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxAccount * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxAccount * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxAccount, get_AccountName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AccountName )( + __RPC__in IFaxAccount * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrAccountName); + + DECLSPEC_XFGVIRT(IFaxAccount, get_Folders) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Folders )( + __RPC__in IFaxAccount * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountFolders **ppFolders); + + DECLSPEC_XFGVIRT(IFaxAccount, ListenToAccountEvents) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ListenToAccountEvents )( + __RPC__in IFaxAccount * This, + /* [in] */ FAX_ACCOUNT_EVENTS_TYPE_ENUM EventTypes); + + DECLSPEC_XFGVIRT(IFaxAccount, get_RegisteredEvents) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RegisteredEvents )( + __RPC__in IFaxAccount * This, + /* [retval][out] */ __RPC__out FAX_ACCOUNT_EVENTS_TYPE_ENUM *pRegisteredEvents); + + END_INTERFACE + } IFaxAccountVtbl; + + interface IFaxAccount + { + CONST_VTBL struct IFaxAccountVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxAccount_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxAccount_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxAccount_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxAccount_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxAccount_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxAccount_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxAccount_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxAccount_get_AccountName(This,pbstrAccountName) \ + ( (This)->lpVtbl -> get_AccountName(This,pbstrAccountName) ) + +#define IFaxAccount_get_Folders(This,ppFolders) \ + ( (This)->lpVtbl -> get_Folders(This,ppFolders) ) + +#define IFaxAccount_ListenToAccountEvents(This,EventTypes) \ + ( (This)->lpVtbl -> ListenToAccountEvents(This,EventTypes) ) + +#define IFaxAccount_get_RegisteredEvents(This,pRegisteredEvents) \ + ( (This)->lpVtbl -> get_RegisteredEvents(This,pRegisteredEvents) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxAccount_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutgoingJob2_INTERFACE_DEFINED__ +#define __IFaxOutgoingJob2_INTERFACE_DEFINED__ + +/* interface IFaxOutgoingJob2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutgoingJob2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("418a8d96-59a0-4789-b176-edf3dc8fa8f7") + IFaxOutgoingJob2 : public IFaxOutgoingJob + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HasCoverPage( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbHasCoverPage) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReceiptAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrReceiptAddress) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ScheduleType( + /* [retval][out] */ __RPC__out FAX_SCHEDULE_TYPE_ENUM *pScheduleType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutgoingJob2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutgoingJob2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutgoingJob2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutgoingJob2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutgoingJob2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutgoingJob2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutgoingJob2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutgoingJob2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Subject) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_DocumentName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DocumentName )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDocumentName); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Pages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pages )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out long *plPages); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Size) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out long *plSize); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_SubmissionId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubmissionId )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubmissionId); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_OriginalScheduledTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OriginalScheduledTime )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out DATE *pdateOriginalScheduledTime); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_SubmissionTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubmissionTime )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out DATE *pdateSubmissionTime); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_ReceiptType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptType )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out FAX_RECEIPT_TYPE_ENUM *pReceiptType); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Priority) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out FAX_PRIORITY_TYPE_ENUM *pPriority); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Sender) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Sender )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxSender **ppFaxSender); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Recipient) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recipient )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipient **ppFaxRecipient); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_CurrentPage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPage )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out long *plCurrentPage); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_DeviceId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceId )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out long *plDeviceId); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Status) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out FAX_JOB_STATUS_ENUM *pStatus); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_ExtendedStatusCode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtendedStatusCode )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out FAX_JOB_EXTENDED_STATUS_ENUM *pExtendedStatusCode); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_ExtendedStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtendedStatus )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrExtendedStatus); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_AvailableOperations) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AvailableOperations )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out FAX_JOB_OPERATIONS_ENUM *pAvailableOperations); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out long *plRetries); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_ScheduledTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScheduledTime )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out DATE *pdateScheduledTime); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_TransmissionStart) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionStart )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_TransmissionEnd) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionEnd )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_CSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CSID )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_TSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, get_GroupBroadcastReceipts) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GroupBroadcastReceipts )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbGroupBroadcastReceipts); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, Pause) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( + __RPC__in IFaxOutgoingJob2 * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, Resume) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IFaxOutgoingJob2 * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, Restart) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Restart )( + __RPC__in IFaxOutgoingJob2 * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, CopyTiff) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTiff )( + __RPC__in IFaxOutgoingJob2 * This, + /* [in] */ __RPC__in BSTR bstrTiffPath); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxOutgoingJob2 * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob, Cancel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IFaxOutgoingJob2 * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob2, get_HasCoverPage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HasCoverPage )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbHasCoverPage); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob2, get_ReceiptAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptAddress )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrReceiptAddress); + + DECLSPEC_XFGVIRT(IFaxOutgoingJob2, get_ScheduleType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScheduleType )( + __RPC__in IFaxOutgoingJob2 * This, + /* [retval][out] */ __RPC__out FAX_SCHEDULE_TYPE_ENUM *pScheduleType); + + END_INTERFACE + } IFaxOutgoingJob2Vtbl; + + interface IFaxOutgoingJob2 + { + CONST_VTBL struct IFaxOutgoingJob2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutgoingJob2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutgoingJob2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutgoingJob2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutgoingJob2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutgoingJob2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutgoingJob2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutgoingJob2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutgoingJob2_get_Subject(This,pbstrSubject) \ + ( (This)->lpVtbl -> get_Subject(This,pbstrSubject) ) + +#define IFaxOutgoingJob2_get_DocumentName(This,pbstrDocumentName) \ + ( (This)->lpVtbl -> get_DocumentName(This,pbstrDocumentName) ) + +#define IFaxOutgoingJob2_get_Pages(This,plPages) \ + ( (This)->lpVtbl -> get_Pages(This,plPages) ) + +#define IFaxOutgoingJob2_get_Size(This,plSize) \ + ( (This)->lpVtbl -> get_Size(This,plSize) ) + +#define IFaxOutgoingJob2_get_SubmissionId(This,pbstrSubmissionId) \ + ( (This)->lpVtbl -> get_SubmissionId(This,pbstrSubmissionId) ) + +#define IFaxOutgoingJob2_get_Id(This,pbstrId) \ + ( (This)->lpVtbl -> get_Id(This,pbstrId) ) + +#define IFaxOutgoingJob2_get_OriginalScheduledTime(This,pdateOriginalScheduledTime) \ + ( (This)->lpVtbl -> get_OriginalScheduledTime(This,pdateOriginalScheduledTime) ) + +#define IFaxOutgoingJob2_get_SubmissionTime(This,pdateSubmissionTime) \ + ( (This)->lpVtbl -> get_SubmissionTime(This,pdateSubmissionTime) ) + +#define IFaxOutgoingJob2_get_ReceiptType(This,pReceiptType) \ + ( (This)->lpVtbl -> get_ReceiptType(This,pReceiptType) ) + +#define IFaxOutgoingJob2_get_Priority(This,pPriority) \ + ( (This)->lpVtbl -> get_Priority(This,pPriority) ) + +#define IFaxOutgoingJob2_get_Sender(This,ppFaxSender) \ + ( (This)->lpVtbl -> get_Sender(This,ppFaxSender) ) + +#define IFaxOutgoingJob2_get_Recipient(This,ppFaxRecipient) \ + ( (This)->lpVtbl -> get_Recipient(This,ppFaxRecipient) ) + +#define IFaxOutgoingJob2_get_CurrentPage(This,plCurrentPage) \ + ( (This)->lpVtbl -> get_CurrentPage(This,plCurrentPage) ) + +#define IFaxOutgoingJob2_get_DeviceId(This,plDeviceId) \ + ( (This)->lpVtbl -> get_DeviceId(This,plDeviceId) ) + +#define IFaxOutgoingJob2_get_Status(This,pStatus) \ + ( (This)->lpVtbl -> get_Status(This,pStatus) ) + +#define IFaxOutgoingJob2_get_ExtendedStatusCode(This,pExtendedStatusCode) \ + ( (This)->lpVtbl -> get_ExtendedStatusCode(This,pExtendedStatusCode) ) + +#define IFaxOutgoingJob2_get_ExtendedStatus(This,pbstrExtendedStatus) \ + ( (This)->lpVtbl -> get_ExtendedStatus(This,pbstrExtendedStatus) ) + +#define IFaxOutgoingJob2_get_AvailableOperations(This,pAvailableOperations) \ + ( (This)->lpVtbl -> get_AvailableOperations(This,pAvailableOperations) ) + +#define IFaxOutgoingJob2_get_Retries(This,plRetries) \ + ( (This)->lpVtbl -> get_Retries(This,plRetries) ) + +#define IFaxOutgoingJob2_get_ScheduledTime(This,pdateScheduledTime) \ + ( (This)->lpVtbl -> get_ScheduledTime(This,pdateScheduledTime) ) + +#define IFaxOutgoingJob2_get_TransmissionStart(This,pdateTransmissionStart) \ + ( (This)->lpVtbl -> get_TransmissionStart(This,pdateTransmissionStart) ) + +#define IFaxOutgoingJob2_get_TransmissionEnd(This,pdateTransmissionEnd) \ + ( (This)->lpVtbl -> get_TransmissionEnd(This,pdateTransmissionEnd) ) + +#define IFaxOutgoingJob2_get_CSID(This,pbstrCSID) \ + ( (This)->lpVtbl -> get_CSID(This,pbstrCSID) ) + +#define IFaxOutgoingJob2_get_TSID(This,pbstrTSID) \ + ( (This)->lpVtbl -> get_TSID(This,pbstrTSID) ) + +#define IFaxOutgoingJob2_get_GroupBroadcastReceipts(This,pbGroupBroadcastReceipts) \ + ( (This)->lpVtbl -> get_GroupBroadcastReceipts(This,pbGroupBroadcastReceipts) ) + +#define IFaxOutgoingJob2_Pause(This) \ + ( (This)->lpVtbl -> Pause(This) ) + +#define IFaxOutgoingJob2_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#define IFaxOutgoingJob2_Restart(This) \ + ( (This)->lpVtbl -> Restart(This) ) + +#define IFaxOutgoingJob2_CopyTiff(This,bstrTiffPath) \ + ( (This)->lpVtbl -> CopyTiff(This,bstrTiffPath) ) + +#define IFaxOutgoingJob2_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxOutgoingJob2_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + + +#define IFaxOutgoingJob2_get_HasCoverPage(This,pbHasCoverPage) \ + ( (This)->lpVtbl -> get_HasCoverPage(This,pbHasCoverPage) ) + +#define IFaxOutgoingJob2_get_ReceiptAddress(This,pbstrReceiptAddress) \ + ( (This)->lpVtbl -> get_ReceiptAddress(This,pbstrReceiptAddress) ) + +#define IFaxOutgoingJob2_get_ScheduleType(This,pScheduleType) \ + ( (This)->lpVtbl -> get_ScheduleType(This,pScheduleType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutgoingJob2_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxAccountFolders_INTERFACE_DEFINED__ +#define __IFaxAccountFolders_INTERFACE_DEFINED__ + +/* interface IFaxAccountFolders */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxAccountFolders; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6463f89d-23d8-46a9-8f86-c47b77ca7926") + IFaxAccountFolders : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutgoingQueue( + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountOutgoingQueue **pFaxOutgoingQueue) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IncomingQueue( + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountIncomingQueue **pFaxIncomingQueue) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IncomingArchive( + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountIncomingArchive **pFaxIncomingArchive) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OutgoingArchive( + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountOutgoingArchive **pFaxOutgoingArchive) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxAccountFoldersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxAccountFolders * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxAccountFolders * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxAccountFolders * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxAccountFolders * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxAccountFolders * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxAccountFolders * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxAccountFolders * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxAccountFolders, get_OutgoingQueue) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutgoingQueue )( + __RPC__in IFaxAccountFolders * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountOutgoingQueue **pFaxOutgoingQueue); + + DECLSPEC_XFGVIRT(IFaxAccountFolders, get_IncomingQueue) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IncomingQueue )( + __RPC__in IFaxAccountFolders * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountIncomingQueue **pFaxIncomingQueue); + + DECLSPEC_XFGVIRT(IFaxAccountFolders, get_IncomingArchive) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IncomingArchive )( + __RPC__in IFaxAccountFolders * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountIncomingArchive **pFaxIncomingArchive); + + DECLSPEC_XFGVIRT(IFaxAccountFolders, get_OutgoingArchive) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutgoingArchive )( + __RPC__in IFaxAccountFolders * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxAccountOutgoingArchive **pFaxOutgoingArchive); + + END_INTERFACE + } IFaxAccountFoldersVtbl; + + interface IFaxAccountFolders + { + CONST_VTBL struct IFaxAccountFoldersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxAccountFolders_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxAccountFolders_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxAccountFolders_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxAccountFolders_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxAccountFolders_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxAccountFolders_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxAccountFolders_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxAccountFolders_get_OutgoingQueue(This,pFaxOutgoingQueue) \ + ( (This)->lpVtbl -> get_OutgoingQueue(This,pFaxOutgoingQueue) ) + +#define IFaxAccountFolders_get_IncomingQueue(This,pFaxIncomingQueue) \ + ( (This)->lpVtbl -> get_IncomingQueue(This,pFaxIncomingQueue) ) + +#define IFaxAccountFolders_get_IncomingArchive(This,pFaxIncomingArchive) \ + ( (This)->lpVtbl -> get_IncomingArchive(This,pFaxIncomingArchive) ) + +#define IFaxAccountFolders_get_OutgoingArchive(This,pFaxOutgoingArchive) \ + ( (This)->lpVtbl -> get_OutgoingArchive(This,pFaxOutgoingArchive) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxAccountFolders_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxAccountIncomingQueue_INTERFACE_DEFINED__ +#define __IFaxAccountIncomingQueue_INTERFACE_DEFINED__ + +/* interface IFaxAccountIncomingQueue */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxAccountIncomingQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("dd142d92-0186-4a95-a090-cbc3eadba6b4") + IFaxAccountIncomingQueue : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJobs( + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingJobs **pFaxIncomingJobs) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJob( + /* [in] */ __RPC__in BSTR bstrJobId, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingJob **pFaxIncomingJob) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxAccountIncomingQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxAccountIncomingQueue * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxAccountIncomingQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxAccountIncomingQueue * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxAccountIncomingQueue * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxAccountIncomingQueue * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxAccountIncomingQueue * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxAccountIncomingQueue * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxAccountIncomingQueue, GetJobs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJobs )( + __RPC__in IFaxAccountIncomingQueue * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingJobs **pFaxIncomingJobs); + + DECLSPEC_XFGVIRT(IFaxAccountIncomingQueue, GetJob) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJob )( + __RPC__in IFaxAccountIncomingQueue * This, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingJob **pFaxIncomingJob); + + END_INTERFACE + } IFaxAccountIncomingQueueVtbl; + + interface IFaxAccountIncomingQueue + { + CONST_VTBL struct IFaxAccountIncomingQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxAccountIncomingQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxAccountIncomingQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxAccountIncomingQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxAccountIncomingQueue_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxAccountIncomingQueue_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxAccountIncomingQueue_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxAccountIncomingQueue_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxAccountIncomingQueue_GetJobs(This,pFaxIncomingJobs) \ + ( (This)->lpVtbl -> GetJobs(This,pFaxIncomingJobs) ) + +#define IFaxAccountIncomingQueue_GetJob(This,bstrJobId,pFaxIncomingJob) \ + ( (This)->lpVtbl -> GetJob(This,bstrJobId,pFaxIncomingJob) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxAccountIncomingQueue_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxAccountOutgoingQueue_INTERFACE_DEFINED__ +#define __IFaxAccountOutgoingQueue_INTERFACE_DEFINED__ + +/* interface IFaxAccountOutgoingQueue */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxAccountOutgoingQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0f1424e9-f22d-4553-b7a5-0d24bd0d7e46") + IFaxAccountOutgoingQueue : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJobs( + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingJobs **pFaxOutgoingJobs) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJob( + /* [in] */ __RPC__in BSTR bstrJobId, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingJob **pFaxOutgoingJob) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxAccountOutgoingQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxAccountOutgoingQueue * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxAccountOutgoingQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxAccountOutgoingQueue * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxAccountOutgoingQueue * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxAccountOutgoingQueue * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxAccountOutgoingQueue * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxAccountOutgoingQueue * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxAccountOutgoingQueue, GetJobs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJobs )( + __RPC__in IFaxAccountOutgoingQueue * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingJobs **pFaxOutgoingJobs); + + DECLSPEC_XFGVIRT(IFaxAccountOutgoingQueue, GetJob) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJob )( + __RPC__in IFaxAccountOutgoingQueue * This, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingJob **pFaxOutgoingJob); + + END_INTERFACE + } IFaxAccountOutgoingQueueVtbl; + + interface IFaxAccountOutgoingQueue + { + CONST_VTBL struct IFaxAccountOutgoingQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxAccountOutgoingQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxAccountOutgoingQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxAccountOutgoingQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxAccountOutgoingQueue_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxAccountOutgoingQueue_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxAccountOutgoingQueue_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxAccountOutgoingQueue_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxAccountOutgoingQueue_GetJobs(This,pFaxOutgoingJobs) \ + ( (This)->lpVtbl -> GetJobs(This,pFaxOutgoingJobs) ) + +#define IFaxAccountOutgoingQueue_GetJob(This,bstrJobId,pFaxOutgoingJob) \ + ( (This)->lpVtbl -> GetJob(This,bstrJobId,pFaxOutgoingJob) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxAccountOutgoingQueue_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxOutgoingMessage2_INTERFACE_DEFINED__ +#define __IFaxOutgoingMessage2_INTERFACE_DEFINED__ + +/* interface IFaxOutgoingMessage2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxOutgoingMessage2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b37df687-bc88-4b46-b3be-b458b3ea9e7f") + IFaxOutgoingMessage2 : public IFaxOutgoingMessage + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HasCoverPage( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbHasCoverPage) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReceiptType( + /* [retval][out] */ __RPC__out FAX_RECEIPT_TYPE_ENUM *pReceiptType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReceiptAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrReceiptAddress) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Read( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRead) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Read( + /* [in] */ VARIANT_BOOL bRead) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxOutgoingMessage2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxOutgoingMessage2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxOutgoingMessage2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxOutgoingMessage2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_SubmissionId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubmissionId )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubmissionId); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Subject) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_DocumentName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DocumentName )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDocumentName); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out long *plRetries); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Pages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pages )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out long *plPages); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Size) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out long *plSize); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_OriginalScheduledTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OriginalScheduledTime )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out DATE *pdateOriginalScheduledTime); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_SubmissionTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubmissionTime )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out DATE *pdateSubmissionTime); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Priority) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out FAX_PRIORITY_TYPE_ENUM *pPriority); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Sender) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Sender )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxSender **ppFaxSender); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_Recipient) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recipient )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFaxRecipient **ppFaxRecipient); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_DeviceName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceName )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDeviceName); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_TransmissionStart) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionStart )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_TransmissionEnd) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionEnd )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_CSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CSID )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, get_TSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, CopyTiff) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTiff )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [in] */ __RPC__in BSTR bstrTiffPath); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFaxOutgoingMessage2 * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage2, get_HasCoverPage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HasCoverPage )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbHasCoverPage); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage2, get_ReceiptType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptType )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out FAX_RECEIPT_TYPE_ENUM *pReceiptType); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage2, get_ReceiptAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReceiptAddress )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrReceiptAddress); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage2, get_Read) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Read )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRead); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage2, put_Read) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Read )( + __RPC__in IFaxOutgoingMessage2 * This, + /* [in] */ VARIANT_BOOL bRead); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage2, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxOutgoingMessage2 * This); + + DECLSPEC_XFGVIRT(IFaxOutgoingMessage2, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxOutgoingMessage2 * This); + + END_INTERFACE + } IFaxOutgoingMessage2Vtbl; + + interface IFaxOutgoingMessage2 + { + CONST_VTBL struct IFaxOutgoingMessage2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxOutgoingMessage2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxOutgoingMessage2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxOutgoingMessage2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxOutgoingMessage2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxOutgoingMessage2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxOutgoingMessage2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxOutgoingMessage2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxOutgoingMessage2_get_SubmissionId(This,pbstrSubmissionId) \ + ( (This)->lpVtbl -> get_SubmissionId(This,pbstrSubmissionId) ) + +#define IFaxOutgoingMessage2_get_Id(This,pbstrId) \ + ( (This)->lpVtbl -> get_Id(This,pbstrId) ) + +#define IFaxOutgoingMessage2_get_Subject(This,pbstrSubject) \ + ( (This)->lpVtbl -> get_Subject(This,pbstrSubject) ) + +#define IFaxOutgoingMessage2_get_DocumentName(This,pbstrDocumentName) \ + ( (This)->lpVtbl -> get_DocumentName(This,pbstrDocumentName) ) + +#define IFaxOutgoingMessage2_get_Retries(This,plRetries) \ + ( (This)->lpVtbl -> get_Retries(This,plRetries) ) + +#define IFaxOutgoingMessage2_get_Pages(This,plPages) \ + ( (This)->lpVtbl -> get_Pages(This,plPages) ) + +#define IFaxOutgoingMessage2_get_Size(This,plSize) \ + ( (This)->lpVtbl -> get_Size(This,plSize) ) + +#define IFaxOutgoingMessage2_get_OriginalScheduledTime(This,pdateOriginalScheduledTime) \ + ( (This)->lpVtbl -> get_OriginalScheduledTime(This,pdateOriginalScheduledTime) ) + +#define IFaxOutgoingMessage2_get_SubmissionTime(This,pdateSubmissionTime) \ + ( (This)->lpVtbl -> get_SubmissionTime(This,pdateSubmissionTime) ) + +#define IFaxOutgoingMessage2_get_Priority(This,pPriority) \ + ( (This)->lpVtbl -> get_Priority(This,pPriority) ) + +#define IFaxOutgoingMessage2_get_Sender(This,ppFaxSender) \ + ( (This)->lpVtbl -> get_Sender(This,ppFaxSender) ) + +#define IFaxOutgoingMessage2_get_Recipient(This,ppFaxRecipient) \ + ( (This)->lpVtbl -> get_Recipient(This,ppFaxRecipient) ) + +#define IFaxOutgoingMessage2_get_DeviceName(This,pbstrDeviceName) \ + ( (This)->lpVtbl -> get_DeviceName(This,pbstrDeviceName) ) + +#define IFaxOutgoingMessage2_get_TransmissionStart(This,pdateTransmissionStart) \ + ( (This)->lpVtbl -> get_TransmissionStart(This,pdateTransmissionStart) ) + +#define IFaxOutgoingMessage2_get_TransmissionEnd(This,pdateTransmissionEnd) \ + ( (This)->lpVtbl -> get_TransmissionEnd(This,pdateTransmissionEnd) ) + +#define IFaxOutgoingMessage2_get_CSID(This,pbstrCSID) \ + ( (This)->lpVtbl -> get_CSID(This,pbstrCSID) ) + +#define IFaxOutgoingMessage2_get_TSID(This,pbstrTSID) \ + ( (This)->lpVtbl -> get_TSID(This,pbstrTSID) ) + +#define IFaxOutgoingMessage2_CopyTiff(This,bstrTiffPath) \ + ( (This)->lpVtbl -> CopyTiff(This,bstrTiffPath) ) + +#define IFaxOutgoingMessage2_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + + +#define IFaxOutgoingMessage2_get_HasCoverPage(This,pbHasCoverPage) \ + ( (This)->lpVtbl -> get_HasCoverPage(This,pbHasCoverPage) ) + +#define IFaxOutgoingMessage2_get_ReceiptType(This,pReceiptType) \ + ( (This)->lpVtbl -> get_ReceiptType(This,pReceiptType) ) + +#define IFaxOutgoingMessage2_get_ReceiptAddress(This,pbstrReceiptAddress) \ + ( (This)->lpVtbl -> get_ReceiptAddress(This,pbstrReceiptAddress) ) + +#define IFaxOutgoingMessage2_get_Read(This,pbRead) \ + ( (This)->lpVtbl -> get_Read(This,pbRead) ) + +#define IFaxOutgoingMessage2_put_Read(This,bRead) \ + ( (This)->lpVtbl -> put_Read(This,bRead) ) + +#define IFaxOutgoingMessage2_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IFaxOutgoingMessage2_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxOutgoingMessage2_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxAccountIncomingArchive_INTERFACE_DEFINED__ +#define __IFaxAccountIncomingArchive_INTERFACE_DEFINED__ + +/* interface IFaxAccountIncomingArchive */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxAccountIncomingArchive; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a8a5b6ef-e0d6-4aee-955c-91625bec9db4") + IFaxAccountIncomingArchive : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeLow( + /* [retval][out] */ __RPC__out long *plSizeLow) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeHigh( + /* [retval][out] */ __RPC__out long *plSizeHigh) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMessages( + /* [defaultvalue][in] */ long lPrefetchSize, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingMessageIterator **pFaxIncomingMessageIterator) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMessage( + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingMessage **pFaxIncomingMessage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxAccountIncomingArchiveVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxAccountIncomingArchive * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxAccountIncomingArchive * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxAccountIncomingArchive * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxAccountIncomingArchive * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxAccountIncomingArchive * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxAccountIncomingArchive * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxAccountIncomingArchive * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxAccountIncomingArchive, get_SizeLow) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeLow )( + __RPC__in IFaxAccountIncomingArchive * This, + /* [retval][out] */ __RPC__out long *plSizeLow); + + DECLSPEC_XFGVIRT(IFaxAccountIncomingArchive, get_SizeHigh) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeHigh )( + __RPC__in IFaxAccountIncomingArchive * This, + /* [retval][out] */ __RPC__out long *plSizeHigh); + + DECLSPEC_XFGVIRT(IFaxAccountIncomingArchive, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxAccountIncomingArchive * This); + + DECLSPEC_XFGVIRT(IFaxAccountIncomingArchive, GetMessages) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMessages )( + __RPC__in IFaxAccountIncomingArchive * This, + /* [defaultvalue][in] */ long lPrefetchSize, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingMessageIterator **pFaxIncomingMessageIterator); + + DECLSPEC_XFGVIRT(IFaxAccountIncomingArchive, GetMessage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMessage )( + __RPC__in IFaxAccountIncomingArchive * This, + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [retval][out] */ __RPC__deref_out_opt IFaxIncomingMessage **pFaxIncomingMessage); + + END_INTERFACE + } IFaxAccountIncomingArchiveVtbl; + + interface IFaxAccountIncomingArchive + { + CONST_VTBL struct IFaxAccountIncomingArchiveVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxAccountIncomingArchive_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxAccountIncomingArchive_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxAccountIncomingArchive_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxAccountIncomingArchive_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxAccountIncomingArchive_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxAccountIncomingArchive_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxAccountIncomingArchive_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxAccountIncomingArchive_get_SizeLow(This,plSizeLow) \ + ( (This)->lpVtbl -> get_SizeLow(This,plSizeLow) ) + +#define IFaxAccountIncomingArchive_get_SizeHigh(This,plSizeHigh) \ + ( (This)->lpVtbl -> get_SizeHigh(This,plSizeHigh) ) + +#define IFaxAccountIncomingArchive_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxAccountIncomingArchive_GetMessages(This,lPrefetchSize,pFaxIncomingMessageIterator) \ + ( (This)->lpVtbl -> GetMessages(This,lPrefetchSize,pFaxIncomingMessageIterator) ) + +#define IFaxAccountIncomingArchive_GetMessage(This,bstrMessageId,pFaxIncomingMessage) \ + ( (This)->lpVtbl -> GetMessage(This,bstrMessageId,pFaxIncomingMessage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxAccountIncomingArchive_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxAccountOutgoingArchive_INTERFACE_DEFINED__ +#define __IFaxAccountOutgoingArchive_INTERFACE_DEFINED__ + +/* interface IFaxAccountOutgoingArchive */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxAccountOutgoingArchive; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5463076d-ec14-491f-926e-b3ceda5e5662") + IFaxAccountOutgoingArchive : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeLow( + /* [retval][out] */ __RPC__out long *plSizeLow) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeHigh( + /* [retval][out] */ __RPC__out long *plSizeHigh) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMessages( + /* [defaultvalue][in] */ long lPrefetchSize, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingMessageIterator **pFaxOutgoingMessageIterator) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMessage( + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingMessage **pFaxOutgoingMessage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxAccountOutgoingArchiveVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxAccountOutgoingArchive * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxAccountOutgoingArchive * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxAccountOutgoingArchive * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxAccountOutgoingArchive * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxAccountOutgoingArchive * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxAccountOutgoingArchive * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxAccountOutgoingArchive * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxAccountOutgoingArchive, get_SizeLow) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeLow )( + __RPC__in IFaxAccountOutgoingArchive * This, + /* [retval][out] */ __RPC__out long *plSizeLow); + + DECLSPEC_XFGVIRT(IFaxAccountOutgoingArchive, get_SizeHigh) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeHigh )( + __RPC__in IFaxAccountOutgoingArchive * This, + /* [retval][out] */ __RPC__out long *plSizeHigh); + + DECLSPEC_XFGVIRT(IFaxAccountOutgoingArchive, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxAccountOutgoingArchive * This); + + DECLSPEC_XFGVIRT(IFaxAccountOutgoingArchive, GetMessages) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMessages )( + __RPC__in IFaxAccountOutgoingArchive * This, + /* [defaultvalue][in] */ long lPrefetchSize, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingMessageIterator **pFaxOutgoingMessageIterator); + + DECLSPEC_XFGVIRT(IFaxAccountOutgoingArchive, GetMessage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMessage )( + __RPC__in IFaxAccountOutgoingArchive * This, + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [retval][out] */ __RPC__deref_out_opt IFaxOutgoingMessage **pFaxOutgoingMessage); + + END_INTERFACE + } IFaxAccountOutgoingArchiveVtbl; + + interface IFaxAccountOutgoingArchive + { + CONST_VTBL struct IFaxAccountOutgoingArchiveVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxAccountOutgoingArchive_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxAccountOutgoingArchive_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxAccountOutgoingArchive_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxAccountOutgoingArchive_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxAccountOutgoingArchive_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxAccountOutgoingArchive_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxAccountOutgoingArchive_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxAccountOutgoingArchive_get_SizeLow(This,plSizeLow) \ + ( (This)->lpVtbl -> get_SizeLow(This,plSizeLow) ) + +#define IFaxAccountOutgoingArchive_get_SizeHigh(This,plSizeHigh) \ + ( (This)->lpVtbl -> get_SizeHigh(This,plSizeHigh) ) + +#define IFaxAccountOutgoingArchive_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxAccountOutgoingArchive_GetMessages(This,lPrefetchSize,pFaxOutgoingMessageIterator) \ + ( (This)->lpVtbl -> GetMessages(This,lPrefetchSize,pFaxOutgoingMessageIterator) ) + +#define IFaxAccountOutgoingArchive_GetMessage(This,bstrMessageId,pFaxOutgoingMessage) \ + ( (This)->lpVtbl -> GetMessage(This,bstrMessageId,pFaxOutgoingMessage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxAccountOutgoingArchive_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxSecurity2_INTERFACE_DEFINED__ +#define __IFaxSecurity2_INTERFACE_DEFINED__ + +/* interface IFaxSecurity2 */ +/* [nonextensible][unique][helpstring][dual][uuid][object] */ + +typedef +enum FAX_ACCESS_RIGHTS_ENUM_2 + { + far2SUBMIT_LOW = 0x1, + far2SUBMIT_NORMAL = 0x2, + far2SUBMIT_HIGH = 0x4, + far2QUERY_OUT_JOBS = 0x8, + far2MANAGE_OUT_JOBS = 0x10, + far2QUERY_CONFIG = 0x20, + far2MANAGE_CONFIG = 0x40, + far2QUERY_ARCHIVES = 0x80, + far2MANAGE_ARCHIVES = 0x100, + far2MANAGE_RECEIVE_FOLDER = 0x200 + } FAX_ACCESS_RIGHTS_ENUM_2; + + +EXTERN_C const IID IID_IFaxSecurity2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("17d851f4-d09b-48fc-99c9-8f24c4db9ab1") + IFaxSecurity2 : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Descriptor( + /* [retval][out] */ __RPC__out VARIANT *pvDescriptor) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Descriptor( + /* [in] */ VARIANT vDescriptor) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GrantedRights( + /* [retval][out] */ __RPC__out FAX_ACCESS_RIGHTS_ENUM_2 *pGrantedRights) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InformationType( + /* [retval][out] */ __RPC__out long *plInformationType) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InformationType( + /* [in] */ long lInformationType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxSecurity2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxSecurity2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxSecurity2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxSecurity2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxSecurity2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxSecurity2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxSecurity2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxSecurity2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxSecurity2, get_Descriptor) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Descriptor )( + __RPC__in IFaxSecurity2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvDescriptor); + + DECLSPEC_XFGVIRT(IFaxSecurity2, put_Descriptor) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Descriptor )( + __RPC__in IFaxSecurity2 * This, + /* [in] */ VARIANT vDescriptor); + + DECLSPEC_XFGVIRT(IFaxSecurity2, get_GrantedRights) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GrantedRights )( + __RPC__in IFaxSecurity2 * This, + /* [retval][out] */ __RPC__out FAX_ACCESS_RIGHTS_ENUM_2 *pGrantedRights); + + DECLSPEC_XFGVIRT(IFaxSecurity2, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxSecurity2 * This); + + DECLSPEC_XFGVIRT(IFaxSecurity2, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxSecurity2 * This); + + DECLSPEC_XFGVIRT(IFaxSecurity2, get_InformationType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InformationType )( + __RPC__in IFaxSecurity2 * This, + /* [retval][out] */ __RPC__out long *plInformationType); + + DECLSPEC_XFGVIRT(IFaxSecurity2, put_InformationType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InformationType )( + __RPC__in IFaxSecurity2 * This, + /* [in] */ long lInformationType); + + END_INTERFACE + } IFaxSecurity2Vtbl; + + interface IFaxSecurity2 + { + CONST_VTBL struct IFaxSecurity2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxSecurity2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxSecurity2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxSecurity2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxSecurity2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxSecurity2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxSecurity2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxSecurity2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxSecurity2_get_Descriptor(This,pvDescriptor) \ + ( (This)->lpVtbl -> get_Descriptor(This,pvDescriptor) ) + +#define IFaxSecurity2_put_Descriptor(This,vDescriptor) \ + ( (This)->lpVtbl -> put_Descriptor(This,vDescriptor) ) + +#define IFaxSecurity2_get_GrantedRights(This,pGrantedRights) \ + ( (This)->lpVtbl -> get_GrantedRights(This,pGrantedRights) ) + +#define IFaxSecurity2_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define IFaxSecurity2_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IFaxSecurity2_get_InformationType(This,plInformationType) \ + ( (This)->lpVtbl -> get_InformationType(This,plInformationType) ) + +#define IFaxSecurity2_put_InformationType(This,lInformationType) \ + ( (This)->lpVtbl -> put_InformationType(This,lInformationType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxSecurity2_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxIncomingMessage2_INTERFACE_DEFINED__ +#define __IFaxIncomingMessage2_INTERFACE_DEFINED__ + +/* interface IFaxIncomingMessage2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFaxIncomingMessage2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f9208503-e2bc-48f3-9ec0-e6236f9b509a") + IFaxIncomingMessage2 : public IFaxIncomingMessage + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Subject( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Subject( + /* [in] */ __RPC__in BSTR bstrSubject) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSenderName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderName( + /* [in] */ __RPC__in BSTR bstrSenderName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SenderFaxNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSenderFaxNumber) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SenderFaxNumber( + /* [in] */ __RPC__in BSTR bstrSenderFaxNumber) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HasCoverPage( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbHasCoverPage) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HasCoverPage( + /* [in] */ VARIANT_BOOL bHasCoverPage) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Recipients( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRecipients) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Recipients( + /* [in] */ __RPC__in BSTR bstrRecipients) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WasReAssigned( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbWasReAssigned) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Read( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRead) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Read( + /* [in] */ VARIANT_BOOL bRead) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReAssign( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFaxIncomingMessage2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxIncomingMessage2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxIncomingMessage2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxIncomingMessage2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxIncomingMessage2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxIncomingMessage2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxIncomingMessage2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxIncomingMessage2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrId); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_Pages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pages )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__out long *plPages); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_Size) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__out long *plSize); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_DeviceName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceName )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDeviceName); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_Retries) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Retries )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__out long *plRetries); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_TransmissionStart) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionStart )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionStart); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_TransmissionEnd) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransmissionEnd )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__out DATE *pdateTransmissionEnd); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_CSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CSID )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCSID); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_TSID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TSID )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTSID); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_CallerId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CallerId )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCallerId); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, get_RoutingInformation) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoutingInformation )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRoutingInformation); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, CopyTiff) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTiff )( + __RPC__in IFaxIncomingMessage2 * This, + /* [in] */ __RPC__in BSTR bstrTiffPath); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFaxIncomingMessage2 * This); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, get_Subject) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSubject); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, put_Subject) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Subject )( + __RPC__in IFaxIncomingMessage2 * This, + /* [in] */ __RPC__in BSTR bstrSubject); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, get_SenderName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderName )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSenderName); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, put_SenderName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderName )( + __RPC__in IFaxIncomingMessage2 * This, + /* [in] */ __RPC__in BSTR bstrSenderName); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, get_SenderFaxNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderFaxNumber )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSenderFaxNumber); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, put_SenderFaxNumber) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderFaxNumber )( + __RPC__in IFaxIncomingMessage2 * This, + /* [in] */ __RPC__in BSTR bstrSenderFaxNumber); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, get_HasCoverPage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HasCoverPage )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbHasCoverPage); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, put_HasCoverPage) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HasCoverPage )( + __RPC__in IFaxIncomingMessage2 * This, + /* [in] */ VARIANT_BOOL bHasCoverPage); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, get_Recipients) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recipients )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrRecipients); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, put_Recipients) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Recipients )( + __RPC__in IFaxIncomingMessage2 * This, + /* [in] */ __RPC__in BSTR bstrRecipients); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, get_WasReAssigned) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WasReAssigned )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbWasReAssigned); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, get_Read) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Read )( + __RPC__in IFaxIncomingMessage2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbRead); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, put_Read) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Read )( + __RPC__in IFaxIncomingMessage2 * This, + /* [in] */ VARIANT_BOOL bRead); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, ReAssign) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReAssign )( + __RPC__in IFaxIncomingMessage2 * This); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IFaxIncomingMessage2 * This); + + DECLSPEC_XFGVIRT(IFaxIncomingMessage2, Refresh) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IFaxIncomingMessage2 * This); + + END_INTERFACE + } IFaxIncomingMessage2Vtbl; + + interface IFaxIncomingMessage2 + { + CONST_VTBL struct IFaxIncomingMessage2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxIncomingMessage2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxIncomingMessage2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxIncomingMessage2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxIncomingMessage2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxIncomingMessage2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxIncomingMessage2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxIncomingMessage2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFaxIncomingMessage2_get_Id(This,pbstrId) \ + ( (This)->lpVtbl -> get_Id(This,pbstrId) ) + +#define IFaxIncomingMessage2_get_Pages(This,plPages) \ + ( (This)->lpVtbl -> get_Pages(This,plPages) ) + +#define IFaxIncomingMessage2_get_Size(This,plSize) \ + ( (This)->lpVtbl -> get_Size(This,plSize) ) + +#define IFaxIncomingMessage2_get_DeviceName(This,pbstrDeviceName) \ + ( (This)->lpVtbl -> get_DeviceName(This,pbstrDeviceName) ) + +#define IFaxIncomingMessage2_get_Retries(This,plRetries) \ + ( (This)->lpVtbl -> get_Retries(This,plRetries) ) + +#define IFaxIncomingMessage2_get_TransmissionStart(This,pdateTransmissionStart) \ + ( (This)->lpVtbl -> get_TransmissionStart(This,pdateTransmissionStart) ) + +#define IFaxIncomingMessage2_get_TransmissionEnd(This,pdateTransmissionEnd) \ + ( (This)->lpVtbl -> get_TransmissionEnd(This,pdateTransmissionEnd) ) + +#define IFaxIncomingMessage2_get_CSID(This,pbstrCSID) \ + ( (This)->lpVtbl -> get_CSID(This,pbstrCSID) ) + +#define IFaxIncomingMessage2_get_TSID(This,pbstrTSID) \ + ( (This)->lpVtbl -> get_TSID(This,pbstrTSID) ) + +#define IFaxIncomingMessage2_get_CallerId(This,pbstrCallerId) \ + ( (This)->lpVtbl -> get_CallerId(This,pbstrCallerId) ) + +#define IFaxIncomingMessage2_get_RoutingInformation(This,pbstrRoutingInformation) \ + ( (This)->lpVtbl -> get_RoutingInformation(This,pbstrRoutingInformation) ) + +#define IFaxIncomingMessage2_CopyTiff(This,bstrTiffPath) \ + ( (This)->lpVtbl -> CopyTiff(This,bstrTiffPath) ) + +#define IFaxIncomingMessage2_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + + +#define IFaxIncomingMessage2_get_Subject(This,pbstrSubject) \ + ( (This)->lpVtbl -> get_Subject(This,pbstrSubject) ) + +#define IFaxIncomingMessage2_put_Subject(This,bstrSubject) \ + ( (This)->lpVtbl -> put_Subject(This,bstrSubject) ) + +#define IFaxIncomingMessage2_get_SenderName(This,pbstrSenderName) \ + ( (This)->lpVtbl -> get_SenderName(This,pbstrSenderName) ) + +#define IFaxIncomingMessage2_put_SenderName(This,bstrSenderName) \ + ( (This)->lpVtbl -> put_SenderName(This,bstrSenderName) ) + +#define IFaxIncomingMessage2_get_SenderFaxNumber(This,pbstrSenderFaxNumber) \ + ( (This)->lpVtbl -> get_SenderFaxNumber(This,pbstrSenderFaxNumber) ) + +#define IFaxIncomingMessage2_put_SenderFaxNumber(This,bstrSenderFaxNumber) \ + ( (This)->lpVtbl -> put_SenderFaxNumber(This,bstrSenderFaxNumber) ) + +#define IFaxIncomingMessage2_get_HasCoverPage(This,pbHasCoverPage) \ + ( (This)->lpVtbl -> get_HasCoverPage(This,pbHasCoverPage) ) + +#define IFaxIncomingMessage2_put_HasCoverPage(This,bHasCoverPage) \ + ( (This)->lpVtbl -> put_HasCoverPage(This,bHasCoverPage) ) + +#define IFaxIncomingMessage2_get_Recipients(This,pbstrRecipients) \ + ( (This)->lpVtbl -> get_Recipients(This,pbstrRecipients) ) + +#define IFaxIncomingMessage2_put_Recipients(This,bstrRecipients) \ + ( (This)->lpVtbl -> put_Recipients(This,bstrRecipients) ) + +#define IFaxIncomingMessage2_get_WasReAssigned(This,pbWasReAssigned) \ + ( (This)->lpVtbl -> get_WasReAssigned(This,pbWasReAssigned) ) + +#define IFaxIncomingMessage2_get_Read(This,pbRead) \ + ( (This)->lpVtbl -> get_Read(This,pbRead) ) + +#define IFaxIncomingMessage2_put_Read(This,bRead) \ + ( (This)->lpVtbl -> put_Read(This,bRead) ) + +#define IFaxIncomingMessage2_ReAssign(This) \ + ( (This)->lpVtbl -> ReAssign(This) ) + +#define IFaxIncomingMessage2_Save(This) \ + ( (This)->lpVtbl -> Save(This) ) + +#define IFaxIncomingMessage2_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFaxIncomingMessage2_INTERFACE_DEFINED__ */ + + + +#ifndef __FAXCOMEXLib_LIBRARY_DEFINED__ +#define __FAXCOMEXLib_LIBRARY_DEFINED__ + +/* library FAXCOMEXLib */ +/* [helpstring][version][uuid] */ + +typedef +enum FAX_ROUTING_RULE_CODE_ENUM + { + frrcANY_CODE = 0 + } FAX_ROUTING_RULE_CODE_ENUM; + + +EXTERN_C const IID LIBID_FAXCOMEXLib; + +#ifndef __IFaxServerNotify_DISPINTERFACE_DEFINED__ +#define __IFaxServerNotify_DISPINTERFACE_DEFINED__ + +/* dispinterface IFaxServerNotify */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_IFaxServerNotify; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2E037B27-CF8A-4abd-B1E0-5704943BEA6F") + IFaxServerNotify : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct IFaxServerNotifyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxServerNotify * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxServerNotify * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxServerNotify * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxServerNotify * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxServerNotify * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxServerNotify * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxServerNotify * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } IFaxServerNotifyVtbl; + + interface IFaxServerNotify + { + CONST_VTBL struct IFaxServerNotifyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxServerNotify_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxServerNotify_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxServerNotify_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxServerNotify_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxServerNotify_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxServerNotify_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxServerNotify_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __IFaxServerNotify_DISPINTERFACE_DEFINED__ */ + + +#ifndef ___IFaxServerNotify2_INTERFACE_DEFINED__ +#define ___IFaxServerNotify2_INTERFACE_DEFINED__ + +/* interface _IFaxServerNotify2 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID__IFaxServerNotify2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ec9c69b9-5fe7-4805-9467-82fcd96af903") + _IFaxServerNotify2 : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingJobAdded( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingJobRemoved( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingJobChanged( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [in] */ __RPC__in_opt IFaxJobStatus *pJobStatus) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingJobAdded( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingJobRemoved( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingJobChanged( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [in] */ __RPC__in_opt IFaxJobStatus *pJobStatus) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingMessageAdded( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrMessageId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingMessageRemoved( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrMessageId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingMessageAdded( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrMessageId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingMessageRemoved( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrMessageId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnReceiptOptionsChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnActivityLoggingConfigChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnSecurityConfigChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnEventLoggingConfigChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingQueueConfigChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingArchiveConfigChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingArchiveConfigChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnDevicesConfigChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutboundRoutingGroupsConfigChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutboundRoutingRulesConfigChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnServerActivityChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ long lIncomingMessages, + /* [in] */ long lRoutingMessages, + /* [in] */ long lOutgoingMessages, + /* [in] */ long lQueuedMessages) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnQueuesStatusChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ VARIANT_BOOL bOutgoingQueueBlocked, + /* [in] */ VARIANT_BOOL bOutgoingQueuePaused, + /* [in] */ VARIANT_BOOL bIncomingQueueBlocked) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnNewCall( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ long lCallId, + /* [in] */ long lDeviceId, + /* [in] */ __RPC__in BSTR bstrCallerId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnServerShutDown( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnDeviceStatusChange( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ long lDeviceId, + /* [in] */ VARIANT_BOOL bPoweredOff, + /* [in] */ VARIANT_BOOL bSending, + /* [in] */ VARIANT_BOOL bReceiving, + /* [in] */ VARIANT_BOOL bRinging) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnGeneralServerConfigChanged( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct _IFaxServerNotify2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _IFaxServerNotify2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _IFaxServerNotify2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _IFaxServerNotify2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _IFaxServerNotify2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnIncomingJobAdded) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingJobAdded )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnIncomingJobRemoved) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingJobRemoved )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnIncomingJobChanged) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingJobChanged )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [in] */ __RPC__in_opt IFaxJobStatus *pJobStatus); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnOutgoingJobAdded) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingJobAdded )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnOutgoingJobRemoved) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingJobRemoved )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnOutgoingJobChanged) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingJobChanged )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [in] */ __RPC__in_opt IFaxJobStatus *pJobStatus); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnIncomingMessageAdded) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingMessageAdded )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrMessageId); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnIncomingMessageRemoved) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingMessageRemoved )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrMessageId); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnOutgoingMessageAdded) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingMessageAdded )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrMessageId); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnOutgoingMessageRemoved) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingMessageRemoved )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ __RPC__in BSTR bstrMessageId); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnReceiptOptionsChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnReceiptOptionsChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnActivityLoggingConfigChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnActivityLoggingConfigChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnSecurityConfigChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnSecurityConfigChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnEventLoggingConfigChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnEventLoggingConfigChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnOutgoingQueueConfigChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingQueueConfigChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnOutgoingArchiveConfigChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingArchiveConfigChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnIncomingArchiveConfigChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingArchiveConfigChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnDevicesConfigChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnDevicesConfigChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnOutboundRoutingGroupsConfigChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutboundRoutingGroupsConfigChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnOutboundRoutingRulesConfigChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutboundRoutingRulesConfigChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnServerActivityChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnServerActivityChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ long lIncomingMessages, + /* [in] */ long lRoutingMessages, + /* [in] */ long lOutgoingMessages, + /* [in] */ long lQueuedMessages); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnQueuesStatusChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnQueuesStatusChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ VARIANT_BOOL bOutgoingQueueBlocked, + /* [in] */ VARIANT_BOOL bOutgoingQueuePaused, + /* [in] */ VARIANT_BOOL bIncomingQueueBlocked); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnNewCall) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnNewCall )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ long lCallId, + /* [in] */ long lDeviceId, + /* [in] */ __RPC__in BSTR bstrCallerId); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnServerShutDown) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnServerShutDown )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnDeviceStatusChange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnDeviceStatusChange )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer, + /* [in] */ long lDeviceId, + /* [in] */ VARIANT_BOOL bPoweredOff, + /* [in] */ VARIANT_BOOL bSending, + /* [in] */ VARIANT_BOOL bReceiving, + /* [in] */ VARIANT_BOOL bRinging); + + DECLSPEC_XFGVIRT(_IFaxServerNotify2, OnGeneralServerConfigChanged) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnGeneralServerConfigChanged )( + __RPC__in _IFaxServerNotify2 * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + END_INTERFACE + } _IFaxServerNotify2Vtbl; + + interface _IFaxServerNotify2 + { + CONST_VTBL struct _IFaxServerNotify2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define _IFaxServerNotify2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define _IFaxServerNotify2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define _IFaxServerNotify2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define _IFaxServerNotify2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define _IFaxServerNotify2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define _IFaxServerNotify2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define _IFaxServerNotify2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define _IFaxServerNotify2_OnIncomingJobAdded(This,pFaxServer,bstrJobId) \ + ( (This)->lpVtbl -> OnIncomingJobAdded(This,pFaxServer,bstrJobId) ) + +#define _IFaxServerNotify2_OnIncomingJobRemoved(This,pFaxServer,bstrJobId) \ + ( (This)->lpVtbl -> OnIncomingJobRemoved(This,pFaxServer,bstrJobId) ) + +#define _IFaxServerNotify2_OnIncomingJobChanged(This,pFaxServer,bstrJobId,pJobStatus) \ + ( (This)->lpVtbl -> OnIncomingJobChanged(This,pFaxServer,bstrJobId,pJobStatus) ) + +#define _IFaxServerNotify2_OnOutgoingJobAdded(This,pFaxServer,bstrJobId) \ + ( (This)->lpVtbl -> OnOutgoingJobAdded(This,pFaxServer,bstrJobId) ) + +#define _IFaxServerNotify2_OnOutgoingJobRemoved(This,pFaxServer,bstrJobId) \ + ( (This)->lpVtbl -> OnOutgoingJobRemoved(This,pFaxServer,bstrJobId) ) + +#define _IFaxServerNotify2_OnOutgoingJobChanged(This,pFaxServer,bstrJobId,pJobStatus) \ + ( (This)->lpVtbl -> OnOutgoingJobChanged(This,pFaxServer,bstrJobId,pJobStatus) ) + +#define _IFaxServerNotify2_OnIncomingMessageAdded(This,pFaxServer,bstrMessageId) \ + ( (This)->lpVtbl -> OnIncomingMessageAdded(This,pFaxServer,bstrMessageId) ) + +#define _IFaxServerNotify2_OnIncomingMessageRemoved(This,pFaxServer,bstrMessageId) \ + ( (This)->lpVtbl -> OnIncomingMessageRemoved(This,pFaxServer,bstrMessageId) ) + +#define _IFaxServerNotify2_OnOutgoingMessageAdded(This,pFaxServer,bstrMessageId) \ + ( (This)->lpVtbl -> OnOutgoingMessageAdded(This,pFaxServer,bstrMessageId) ) + +#define _IFaxServerNotify2_OnOutgoingMessageRemoved(This,pFaxServer,bstrMessageId) \ + ( (This)->lpVtbl -> OnOutgoingMessageRemoved(This,pFaxServer,bstrMessageId) ) + +#define _IFaxServerNotify2_OnReceiptOptionsChange(This,pFaxServer) \ + ( (This)->lpVtbl -> OnReceiptOptionsChange(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnActivityLoggingConfigChange(This,pFaxServer) \ + ( (This)->lpVtbl -> OnActivityLoggingConfigChange(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnSecurityConfigChange(This,pFaxServer) \ + ( (This)->lpVtbl -> OnSecurityConfigChange(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnEventLoggingConfigChange(This,pFaxServer) \ + ( (This)->lpVtbl -> OnEventLoggingConfigChange(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnOutgoingQueueConfigChange(This,pFaxServer) \ + ( (This)->lpVtbl -> OnOutgoingQueueConfigChange(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnOutgoingArchiveConfigChange(This,pFaxServer) \ + ( (This)->lpVtbl -> OnOutgoingArchiveConfigChange(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnIncomingArchiveConfigChange(This,pFaxServer) \ + ( (This)->lpVtbl -> OnIncomingArchiveConfigChange(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnDevicesConfigChange(This,pFaxServer) \ + ( (This)->lpVtbl -> OnDevicesConfigChange(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnOutboundRoutingGroupsConfigChange(This,pFaxServer) \ + ( (This)->lpVtbl -> OnOutboundRoutingGroupsConfigChange(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnOutboundRoutingRulesConfigChange(This,pFaxServer) \ + ( (This)->lpVtbl -> OnOutboundRoutingRulesConfigChange(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnServerActivityChange(This,pFaxServer,lIncomingMessages,lRoutingMessages,lOutgoingMessages,lQueuedMessages) \ + ( (This)->lpVtbl -> OnServerActivityChange(This,pFaxServer,lIncomingMessages,lRoutingMessages,lOutgoingMessages,lQueuedMessages) ) + +#define _IFaxServerNotify2_OnQueuesStatusChange(This,pFaxServer,bOutgoingQueueBlocked,bOutgoingQueuePaused,bIncomingQueueBlocked) \ + ( (This)->lpVtbl -> OnQueuesStatusChange(This,pFaxServer,bOutgoingQueueBlocked,bOutgoingQueuePaused,bIncomingQueueBlocked) ) + +#define _IFaxServerNotify2_OnNewCall(This,pFaxServer,lCallId,lDeviceId,bstrCallerId) \ + ( (This)->lpVtbl -> OnNewCall(This,pFaxServer,lCallId,lDeviceId,bstrCallerId) ) + +#define _IFaxServerNotify2_OnServerShutDown(This,pFaxServer) \ + ( (This)->lpVtbl -> OnServerShutDown(This,pFaxServer) ) + +#define _IFaxServerNotify2_OnDeviceStatusChange(This,pFaxServer,lDeviceId,bPoweredOff,bSending,bReceiving,bRinging) \ + ( (This)->lpVtbl -> OnDeviceStatusChange(This,pFaxServer,lDeviceId,bPoweredOff,bSending,bReceiving,bRinging) ) + +#define _IFaxServerNotify2_OnGeneralServerConfigChanged(This,pFaxServer) \ + ( (This)->lpVtbl -> OnGeneralServerConfigChanged(This,pFaxServer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* ___IFaxServerNotify2_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxServerNotify2_DISPINTERFACE_DEFINED__ +#define __IFaxServerNotify2_DISPINTERFACE_DEFINED__ + +/* dispinterface IFaxServerNotify2 */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_IFaxServerNotify2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("616ca8d6-a77a-4062-abfd-0e471241c7aa") + IFaxServerNotify2 : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct IFaxServerNotify2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxServerNotify2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxServerNotify2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxServerNotify2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxServerNotify2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxServerNotify2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxServerNotify2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxServerNotify2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } IFaxServerNotify2Vtbl; + + interface IFaxServerNotify2 + { + CONST_VTBL struct IFaxServerNotify2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxServerNotify2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxServerNotify2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxServerNotify2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxServerNotify2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxServerNotify2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxServerNotify2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxServerNotify2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __IFaxServerNotify2_DISPINTERFACE_DEFINED__ */ + + +#ifndef ___IFaxAccountNotify_INTERFACE_DEFINED__ +#define ___IFaxAccountNotify_INTERFACE_DEFINED__ + +/* interface _IFaxAccountNotify */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID__IFaxAccountNotify; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b9b3bc81-ac1b-46f3-b39d-0adc30e1b788") + _IFaxAccountNotify : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingJobAdded( + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingJobRemoved( + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingJobChanged( + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [in] */ __RPC__in_opt IFaxJobStatus *pJobStatus) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingJobAdded( + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingJobRemoved( + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingJobChanged( + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [in] */ __RPC__in_opt IFaxJobStatus *pJobStatus) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingMessageAdded( + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [in] */ VARIANT_BOOL fAddedToReceiveFolder) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnIncomingMessageRemoved( + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [in] */ VARIANT_BOOL fRemovedFromReceiveFolder) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingMessageAdded( + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrMessageId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnOutgoingMessageRemoved( + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrMessageId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnServerShutDown( + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct _IFaxAccountNotifyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _IFaxAccountNotify * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _IFaxAccountNotify * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _IFaxAccountNotify * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _IFaxAccountNotify * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnIncomingJobAdded) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingJobAdded )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnIncomingJobRemoved) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingJobRemoved )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnIncomingJobChanged) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingJobChanged )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [in] */ __RPC__in_opt IFaxJobStatus *pJobStatus); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnOutgoingJobAdded) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingJobAdded )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnOutgoingJobRemoved) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingJobRemoved )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnOutgoingJobChanged) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingJobChanged )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrJobId, + /* [in] */ __RPC__in_opt IFaxJobStatus *pJobStatus); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnIncomingMessageAdded) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingMessageAdded )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [in] */ VARIANT_BOOL fAddedToReceiveFolder); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnIncomingMessageRemoved) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnIncomingMessageRemoved )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrMessageId, + /* [in] */ VARIANT_BOOL fRemovedFromReceiveFolder); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnOutgoingMessageAdded) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingMessageAdded )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrMessageId); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnOutgoingMessageRemoved) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnOutgoingMessageRemoved )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxAccount *pFaxAccount, + /* [in] */ __RPC__in BSTR bstrMessageId); + + DECLSPEC_XFGVIRT(_IFaxAccountNotify, OnServerShutDown) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnServerShutDown )( + __RPC__in _IFaxAccountNotify * This, + /* [in] */ __RPC__in_opt IFaxServer2 *pFaxServer); + + END_INTERFACE + } _IFaxAccountNotifyVtbl; + + interface _IFaxAccountNotify + { + CONST_VTBL struct _IFaxAccountNotifyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define _IFaxAccountNotify_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define _IFaxAccountNotify_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define _IFaxAccountNotify_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define _IFaxAccountNotify_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define _IFaxAccountNotify_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define _IFaxAccountNotify_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define _IFaxAccountNotify_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define _IFaxAccountNotify_OnIncomingJobAdded(This,pFaxAccount,bstrJobId) \ + ( (This)->lpVtbl -> OnIncomingJobAdded(This,pFaxAccount,bstrJobId) ) + +#define _IFaxAccountNotify_OnIncomingJobRemoved(This,pFaxAccount,bstrJobId) \ + ( (This)->lpVtbl -> OnIncomingJobRemoved(This,pFaxAccount,bstrJobId) ) + +#define _IFaxAccountNotify_OnIncomingJobChanged(This,pFaxAccount,bstrJobId,pJobStatus) \ + ( (This)->lpVtbl -> OnIncomingJobChanged(This,pFaxAccount,bstrJobId,pJobStatus) ) + +#define _IFaxAccountNotify_OnOutgoingJobAdded(This,pFaxAccount,bstrJobId) \ + ( (This)->lpVtbl -> OnOutgoingJobAdded(This,pFaxAccount,bstrJobId) ) + +#define _IFaxAccountNotify_OnOutgoingJobRemoved(This,pFaxAccount,bstrJobId) \ + ( (This)->lpVtbl -> OnOutgoingJobRemoved(This,pFaxAccount,bstrJobId) ) + +#define _IFaxAccountNotify_OnOutgoingJobChanged(This,pFaxAccount,bstrJobId,pJobStatus) \ + ( (This)->lpVtbl -> OnOutgoingJobChanged(This,pFaxAccount,bstrJobId,pJobStatus) ) + +#define _IFaxAccountNotify_OnIncomingMessageAdded(This,pFaxAccount,bstrMessageId,fAddedToReceiveFolder) \ + ( (This)->lpVtbl -> OnIncomingMessageAdded(This,pFaxAccount,bstrMessageId,fAddedToReceiveFolder) ) + +#define _IFaxAccountNotify_OnIncomingMessageRemoved(This,pFaxAccount,bstrMessageId,fRemovedFromReceiveFolder) \ + ( (This)->lpVtbl -> OnIncomingMessageRemoved(This,pFaxAccount,bstrMessageId,fRemovedFromReceiveFolder) ) + +#define _IFaxAccountNotify_OnOutgoingMessageAdded(This,pFaxAccount,bstrMessageId) \ + ( (This)->lpVtbl -> OnOutgoingMessageAdded(This,pFaxAccount,bstrMessageId) ) + +#define _IFaxAccountNotify_OnOutgoingMessageRemoved(This,pFaxAccount,bstrMessageId) \ + ( (This)->lpVtbl -> OnOutgoingMessageRemoved(This,pFaxAccount,bstrMessageId) ) + +#define _IFaxAccountNotify_OnServerShutDown(This,pFaxServer) \ + ( (This)->lpVtbl -> OnServerShutDown(This,pFaxServer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* ___IFaxAccountNotify_INTERFACE_DEFINED__ */ + + +#ifndef __IFaxAccountNotify_DISPINTERFACE_DEFINED__ +#define __IFaxAccountNotify_DISPINTERFACE_DEFINED__ + +/* dispinterface IFaxAccountNotify */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_IFaxAccountNotify; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0b5e5bd1-b8a9-47a0-a323-ef4a293ba06a") + IFaxAccountNotify : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct IFaxAccountNotifyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFaxAccountNotify * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFaxAccountNotify * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFaxAccountNotify * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFaxAccountNotify * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFaxAccountNotify * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFaxAccountNotify * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFaxAccountNotify * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } IFaxAccountNotifyVtbl; + + interface IFaxAccountNotify + { + CONST_VTBL struct IFaxAccountNotifyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFaxAccountNotify_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFaxAccountNotify_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFaxAccountNotify_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFaxAccountNotify_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFaxAccountNotify_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFaxAccountNotify_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFaxAccountNotify_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __IFaxAccountNotify_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_FaxServer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CDA8ACB0-8CF5-4F6C-9BA2-5931D40C8CAE") +FaxServer; +#endif + +EXTERN_C const CLSID CLSID_FaxDeviceProviders; + +#ifdef __cplusplus + +class DECLSPEC_UUID("EB8FE768-875A-4F5F-82C5-03F23AAC1BD7") +FaxDeviceProviders; +#endif + +EXTERN_C const CLSID CLSID_FaxDevices; + +#ifdef __cplusplus + +class DECLSPEC_UUID("5589E28E-23CB-4919-8808-E6101846E80D") +FaxDevices; +#endif + +EXTERN_C const CLSID CLSID_FaxInboundRouting; + +#ifdef __cplusplus + +class DECLSPEC_UUID("E80248ED-AD65-4218-8108-991924D4E7ED") +FaxInboundRouting; +#endif + +EXTERN_C const CLSID CLSID_FaxFolders; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C35211D7-5776-48CB-AF44-C31BE3B2CFE5") +FaxFolders; +#endif + +EXTERN_C const CLSID CLSID_FaxLoggingOptions; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1BF9EEA6-ECE0-4785-A18B-DE56E9EEF96A") +FaxLoggingOptions; +#endif + +EXTERN_C const CLSID CLSID_FaxActivity; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CFEF5D0E-E84D-462E-AABB-87D31EB04FEF") +FaxActivity; +#endif + +EXTERN_C const CLSID CLSID_FaxOutboundRouting; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C81B385E-B869-4AFD-86C0-616498ED9BE2") +FaxOutboundRouting; +#endif + +EXTERN_C const CLSID CLSID_FaxReceiptOptions; + +#ifdef __cplusplus + +class DECLSPEC_UUID("6982487B-227B-4C96-A61C-248348B05AB6") +FaxReceiptOptions; +#endif + +EXTERN_C const CLSID CLSID_FaxSecurity; + +#ifdef __cplusplus + +class DECLSPEC_UUID("10C4DDDE-ABF0-43DF-964F-7F3AC21A4C7B") +FaxSecurity; +#endif + +EXTERN_C const CLSID CLSID_FaxDocument; + +#ifdef __cplusplus + +class DECLSPEC_UUID("0F3F9F91-C838-415E-A4F3-3E828CA445E0") +FaxDocument; +#endif + +EXTERN_C const CLSID CLSID_FaxSender; + +#ifdef __cplusplus + +class DECLSPEC_UUID("265D84D0-1850-4360-B7C8-758BBB5F0B96") +FaxSender; +#endif + +EXTERN_C const CLSID CLSID_FaxRecipients; + +#ifdef __cplusplus + +class DECLSPEC_UUID("EA9BDF53-10A9-4D4F-A067-63C8F84F01B0") +FaxRecipients; +#endif + +EXTERN_C const CLSID CLSID_FaxIncomingArchive; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8426C56A-35A1-4C6F-AF93-FC952422E2C2") +FaxIncomingArchive; +#endif + +EXTERN_C const CLSID CLSID_FaxIncomingQueue; + +#ifdef __cplusplus + +class DECLSPEC_UUID("69131717-F3F1-40E3-809D-A6CBF7BD85E5") +FaxIncomingQueue; +#endif + +EXTERN_C const CLSID CLSID_FaxOutgoingArchive; + +#ifdef __cplusplus + +class DECLSPEC_UUID("43C28403-E04F-474D-990C-B94669148F59") +FaxOutgoingArchive; +#endif + +EXTERN_C const CLSID CLSID_FaxOutgoingQueue; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7421169E-8C43-4B0D-BB16-645C8FA40357") +FaxOutgoingQueue; +#endif + +EXTERN_C const CLSID CLSID_FaxIncomingMessageIterator; + +#ifdef __cplusplus + +class DECLSPEC_UUID("6088E1D8-3FC8-45C2-87B1-909A29607EA9") +FaxIncomingMessageIterator; +#endif + +EXTERN_C const CLSID CLSID_FaxIncomingMessage; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1932FCF7-9D43-4D5A-89FF-03861B321736") +FaxIncomingMessage; +#endif + +EXTERN_C const CLSID CLSID_FaxOutgoingJobs; + +#ifdef __cplusplus + +class DECLSPEC_UUID("92BF2A6C-37BE-43FA-A37D-CB0E5F753B35") +FaxOutgoingJobs; +#endif + +EXTERN_C const CLSID CLSID_FaxOutgoingJob; + +#ifdef __cplusplus + +class DECLSPEC_UUID("71BB429C-0EF9-4915-BEC5-A5D897A3E924") +FaxOutgoingJob; +#endif + +EXTERN_C const CLSID CLSID_FaxOutgoingMessageIterator; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8A3224D0-D30B-49DE-9813-CB385790FBBB") +FaxOutgoingMessageIterator; +#endif + +EXTERN_C const CLSID CLSID_FaxOutgoingMessage; + +#ifdef __cplusplus + +class DECLSPEC_UUID("91B4A378-4AD8-4AEF-A4DC-97D96E939A3A") +FaxOutgoingMessage; +#endif + +EXTERN_C const CLSID CLSID_FaxIncomingJobs; + +#ifdef __cplusplus + +class DECLSPEC_UUID("A1BB8A43-8866-4FB7-A15D-6266C875A5CC") +FaxIncomingJobs; +#endif + +EXTERN_C const CLSID CLSID_FaxIncomingJob; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C47311EC-AE32-41B8-AE4B-3EAE0629D0C9") +FaxIncomingJob; +#endif + +EXTERN_C const CLSID CLSID_FaxDeviceProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("17CF1AA3-F5EB-484A-9C9A-4440A5BAABFC") +FaxDeviceProvider; +#endif + +EXTERN_C const CLSID CLSID_FaxDevice; + +#ifdef __cplusplus + +class DECLSPEC_UUID("59E3A5B2-D676-484B-A6DE-720BFA89B5AF") +FaxDevice; +#endif + +EXTERN_C const CLSID CLSID_FaxActivityLogging; + +#ifdef __cplusplus + +class DECLSPEC_UUID("F0A0294E-3BBD-48B8-8F13-8C591A55BDBC") +FaxActivityLogging; +#endif + +EXTERN_C const CLSID CLSID_FaxEventLogging; + +#ifdef __cplusplus + +class DECLSPEC_UUID("A6850930-A0F6-4A6F-95B7-DB2EBF3D02E3") +FaxEventLogging; +#endif + +EXTERN_C const CLSID CLSID_FaxOutboundRoutingGroups; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CCBEA1A5-E2B4-4B57-9421-B04B6289464B") +FaxOutboundRoutingGroups; +#endif + +EXTERN_C const CLSID CLSID_FaxOutboundRoutingGroup; + +#ifdef __cplusplus + +class DECLSPEC_UUID("0213F3E0-6791-4D77-A271-04D2357C50D6") +FaxOutboundRoutingGroup; +#endif + +EXTERN_C const CLSID CLSID_FaxDeviceIds; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CDC539EA-7277-460E-8DE0-48A0A5760D1F") +FaxDeviceIds; +#endif + +EXTERN_C const CLSID CLSID_FaxOutboundRoutingRules; + +#ifdef __cplusplus + +class DECLSPEC_UUID("D385BECA-E624-4473-BFAA-9F4000831F54") +FaxOutboundRoutingRules; +#endif + +EXTERN_C const CLSID CLSID_FaxOutboundRoutingRule; + +#ifdef __cplusplus + +class DECLSPEC_UUID("6549EEBF-08D1-475A-828B-3BF105952FA0") +FaxOutboundRoutingRule; +#endif + +EXTERN_C const CLSID CLSID_FaxInboundRoutingExtensions; + +#ifdef __cplusplus + +class DECLSPEC_UUID("189A48ED-623C-4C0D-80F2-D66C7B9EFEC2") +FaxInboundRoutingExtensions; +#endif + +EXTERN_C const CLSID CLSID_FaxInboundRoutingExtension; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1D7DFB51-7207-4436-A0D9-24E32EE56988") +FaxInboundRoutingExtension; +#endif + +EXTERN_C const CLSID CLSID_FaxInboundRoutingMethods; + +#ifdef __cplusplus + +class DECLSPEC_UUID("25FCB76A-B750-4B82-9266-FBBBAE8922BA") +FaxInboundRoutingMethods; +#endif + +EXTERN_C const CLSID CLSID_FaxInboundRoutingMethod; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4B9FD75C-0194-4B72-9CE5-02A8205AC7D4") +FaxInboundRoutingMethod; +#endif + +EXTERN_C const CLSID CLSID_FaxJobStatus; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7BF222F4-BE8D-442f-841D-6132742423BB") +FaxJobStatus; +#endif + +EXTERN_C const CLSID CLSID_FaxRecipient; + +#ifdef __cplusplus + +class DECLSPEC_UUID("60BF3301-7DF8-4bd8-9148-7B5801F9EFDF") +FaxRecipient; +#endif + +EXTERN_C const CLSID CLSID_FaxConfiguration; + +#ifdef __cplusplus + +class DECLSPEC_UUID("5857326f-e7b3-41a7-9c19-a91b463e2d56") +FaxConfiguration; +#endif + +EXTERN_C const CLSID CLSID_FaxAccountSet; + +#ifdef __cplusplus + +class DECLSPEC_UUID("fbc23c4b-79e0-4291-bc56-c12e253bbf3a") +FaxAccountSet; +#endif + +EXTERN_C const CLSID CLSID_FaxAccounts; + +#ifdef __cplusplus + +class DECLSPEC_UUID("da1f94aa-ee2c-47c0-8f4f-2a217075b76e") +FaxAccounts; +#endif + +EXTERN_C const CLSID CLSID_FaxAccount; + +#ifdef __cplusplus + +class DECLSPEC_UUID("a7e0647f-4524-4464-a56d-b9fe666f715e") +FaxAccount; +#endif + +EXTERN_C const CLSID CLSID_FaxAccountFolders; + +#ifdef __cplusplus + +class DECLSPEC_UUID("85398f49-c034-4a3f-821c-db7d685e8129") +FaxAccountFolders; +#endif + +EXTERN_C const CLSID CLSID_FaxAccountIncomingQueue; + +#ifdef __cplusplus + +class DECLSPEC_UUID("9bcf6094-b4da-45f4-b8d6-ddeb2186652c") +FaxAccountIncomingQueue; +#endif + +EXTERN_C const CLSID CLSID_FaxAccountOutgoingQueue; + +#ifdef __cplusplus + +class DECLSPEC_UUID("feeceefb-c149-48ba-bab8-b791e101f62f") +FaxAccountOutgoingQueue; +#endif + +EXTERN_C const CLSID CLSID_FaxAccountIncomingArchive; + +#ifdef __cplusplus + +class DECLSPEC_UUID("14b33db5-4c40-4ecf-9ef8-a360cbe809ed") +FaxAccountIncomingArchive; +#endif + +EXTERN_C const CLSID CLSID_FaxAccountOutgoingArchive; + +#ifdef __cplusplus + +class DECLSPEC_UUID("851e7af5-433a-4739-a2df-ad245c2cb98e") +FaxAccountOutgoingArchive; +#endif + +EXTERN_C const CLSID CLSID_FaxSecurity2; + +#ifdef __cplusplus + +class DECLSPEC_UUID("735c1248-ec89-4c30-a127-656e92e3c4ea") +FaxSecurity2; +#endif + + +#ifndef __FaxConstants_MODULE_DEFINED__ +#define __FaxConstants_MODULE_DEFINED__ + + +/* module FaxConstants */ +/* [dllname] */ + +/* [helpstring] */ const long lDEFAULT_PREFETCH_SIZE = prv_DEFAULT_PREFETCH_SIZE; + +/* [helpstring] */ const BSTR bstrGROUPNAME_ALLDEVICES = ( BSTR )L""; + +/* [helpstring] */ const wchar_t wcharREASSIGN_RECIPIENTS_DELIMITER = L';'; + +#endif /* __FaxConstants_MODULE_DEFINED__ */ +#endif /* __FAXCOMEXLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_faxcomex_0000_0056 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_faxcomex_0000_0056_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_faxcomex_0000_0056_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxComEx_i.c b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxComEx_i.c new file mode 100644 index 0000000000000000000000000000000000000000..669fdee36294fa1f96d4dccf9574c8ddc44452bd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxComEx_i.c @@ -0,0 +1,398 @@ + + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + +/* link this file in with the server and any clients */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +#ifdef __cplusplus +extern "C"{ +#endif + + +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef struct _IID +{ + unsigned long x; + unsigned short s1; + unsigned short s2; + unsigned char c[8]; +} IID; + +#endif // __IID_DEFINED__ + +#ifndef CLSID_DEFINED +#define CLSID_DEFINED +typedef IID CLSID; +#endif // CLSID_DEFINED + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} + +#endif // !_MIDL_USE_GUIDDEF_ + +MIDL_DEFINE_GUID(IID, IID_IFaxJobStatus,0x8B86F485,0xFD7F,0x4824,0x88,0x6B,0x40,0xC5,0xCA,0xA6,0x17,0xCC); + + +MIDL_DEFINE_GUID(IID, IID_IFaxServer,0x475B6469,0x90A5,0x4878,0xA5,0x77,0x17,0xA8,0x6E,0x8E,0x34,0x62); + + +MIDL_DEFINE_GUID(IID, IID_IFaxDeviceProviders,0x9FB76F62,0x4C7E,0x43A5,0xB6,0xFD,0x50,0x28,0x93,0xF7,0xE1,0x3E); + + +MIDL_DEFINE_GUID(IID, IID_IFaxDevices,0x9E46783E,0xF34F,0x482E,0xA3,0x60,0x04,0x16,0xBE,0xCB,0xBD,0x96); + + +MIDL_DEFINE_GUID(IID, IID_IFaxInboundRouting,0x8148C20F,0x9D52,0x45B1,0xBF,0x96,0x38,0xFC,0x12,0x71,0x35,0x27); + + +MIDL_DEFINE_GUID(IID, IID_IFaxFolders,0xDCE3B2A8,0xA7AB,0x42BC,0x9D,0x0A,0x31,0x49,0x45,0x72,0x61,0xA0); + + +MIDL_DEFINE_GUID(IID, IID_IFaxLoggingOptions,0x34E64FB9,0x6B31,0x4D32,0x8B,0x27,0xD2,0x86,0xC0,0xC3,0x36,0x06); + + +MIDL_DEFINE_GUID(IID, IID_IFaxActivity,0x4B106F97,0x3DF5,0x40F2,0xBC,0x3C,0x44,0xCB,0x81,0x15,0xEB,0xDF); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutboundRouting,0x25DC05A4,0x9909,0x41BD,0xA9,0x5B,0x7E,0x5D,0x1D,0xEC,0x1D,0x43); + + +MIDL_DEFINE_GUID(IID, IID_IFaxReceiptOptions,0x378EFAEB,0x5FCB,0x4AFB,0xB2,0xEE,0xE1,0x6E,0x80,0x61,0x44,0x87); + + +MIDL_DEFINE_GUID(IID, IID_IFaxSecurity,0x77B508C1,0x09C0,0x47A2,0x91,0xEB,0xFC,0xE7,0xFD,0xF2,0x69,0x0E); + + +MIDL_DEFINE_GUID(IID, IID_IFaxDocument,0xB207A246,0x09E3,0x4A4E,0xA7,0xDC,0xFE,0xA3,0x1D,0x29,0x45,0x8F); + + +MIDL_DEFINE_GUID(IID, IID_IFaxSender,0x0D879D7D,0xF57A,0x4CC6,0xA6,0xF9,0x3E,0xE5,0xD5,0x27,0xB4,0x6A); + + +MIDL_DEFINE_GUID(IID, IID_IFaxRecipient,0x9A3DA3A0,0x538D,0x42b6,0x94,0x44,0xAA,0xA5,0x7D,0x0C,0xE2,0xBC); + + +MIDL_DEFINE_GUID(IID, IID_IFaxRecipients,0xB9C9DE5A,0x894E,0x4492,0x9F,0xA3,0x08,0xC6,0x27,0xC1,0x1D,0x5D); + + +MIDL_DEFINE_GUID(IID, IID_IFaxIncomingArchive,0x76062CC7,0xF714,0x4FBD,0xAA,0x06,0xED,0x6E,0x4A,0x4B,0x70,0xF3); + + +MIDL_DEFINE_GUID(IID, IID_IFaxIncomingQueue,0x902E64EF,0x8FD8,0x4B75,0x97,0x25,0x60,0x14,0xDF,0x16,0x15,0x45); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingArchive,0xC9C28F40,0x8D80,0x4E53,0x81,0x0F,0x9A,0x79,0x91,0x9B,0x49,0xFD); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingQueue,0x80B1DF24,0xD9AC,0x4333,0xB3,0x73,0x48,0x7C,0xED,0xC8,0x0C,0xE5); + + +MIDL_DEFINE_GUID(IID, IID_IFaxIncomingMessageIterator,0xFD73ECC4,0x6F06,0x4F52,0x82,0xA8,0xF7,0xBA,0x06,0xAE,0x31,0x08); + + +MIDL_DEFINE_GUID(IID, IID_IFaxIncomingMessage,0x7CAB88FA,0x2EF9,0x4851,0xB2,0xF3,0x1D,0x14,0x8F,0xED,0x84,0x47); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingJobs,0x2C56D8E6,0x8C2F,0x4573,0x94,0x4C,0xE5,0x05,0xF8,0xF5,0xAE,0xED); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingJob,0x6356DAAD,0x6614,0x4583,0xBF,0x7A,0x3A,0xD6,0x7B,0xBF,0xC7,0x1C); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingMessageIterator,0xF5EC5D4F,0xB840,0x432F,0x99,0x80,0x11,0x2F,0xE4,0x2A,0x9B,0x7A); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingMessage,0xF0EA35DE,0xCAA5,0x4A7C,0x82,0xC7,0x2B,0x60,0xBA,0x5F,0x2B,0xE2); + + +MIDL_DEFINE_GUID(IID, IID_IFaxIncomingJobs,0x011F04E9,0x4FD6,0x4C23,0x95,0x13,0xB6,0xB6,0x6B,0xB2,0x6B,0xE9); + + +MIDL_DEFINE_GUID(IID, IID_IFaxIncomingJob,0x207529E6,0x654A,0x4916,0x9F,0x88,0x4D,0x23,0x2E,0xE8,0xA1,0x07); + + +MIDL_DEFINE_GUID(IID, IID_IFaxDeviceProvider,0x290EAC63,0x83EC,0x449C,0x84,0x17,0xF1,0x48,0xDF,0x8C,0x68,0x2A); + + +MIDL_DEFINE_GUID(IID, IID_IFaxDevice,0x49306C59,0xB52E,0x4867,0x9D,0xF4,0xCA,0x58,0x41,0xC9,0x56,0xD0); + + +MIDL_DEFINE_GUID(IID, IID_IFaxActivityLogging,0x1E29078B,0x5A69,0x497B,0x95,0x92,0x49,0xB7,0xE7,0xFA,0xDD,0xB5); + + +MIDL_DEFINE_GUID(IID, IID_IFaxEventLogging,0x0880D965,0x20E8,0x42E4,0x8E,0x17,0x94,0x4F,0x19,0x2C,0xAA,0xD4); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutboundRoutingGroups,0x235CBEF7,0xC2DE,0x4BFD,0xB8,0xDA,0x75,0x09,0x7C,0x82,0xC8,0x7F); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutboundRoutingGroup,0xCA6289A1,0x7E25,0x4F87,0x9A,0x0B,0x93,0x36,0x57,0x34,0x96,0x2C); + + +MIDL_DEFINE_GUID(IID, IID_IFaxDeviceIds,0x2F0F813F,0x4CE9,0x443E,0x8C,0xA1,0x73,0x8C,0xFA,0xEE,0xE1,0x49); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutboundRoutingRules,0xDCEFA1E7,0xAE7D,0x4ED6,0x85,0x21,0x36,0x9E,0xDC,0xCA,0x51,0x20); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutboundRoutingRule,0xE1F795D5,0x07C2,0x469F,0xB0,0x27,0xAC,0xAC,0xC2,0x32,0x19,0xDA); + + +MIDL_DEFINE_GUID(IID, IID_IFaxInboundRoutingExtensions,0x2F6C9673,0x7B26,0x42DE,0x8E,0xB0,0x91,0x5D,0xCD,0x2A,0x4F,0x4C); + + +MIDL_DEFINE_GUID(IID, IID_IFaxInboundRoutingExtension,0x885B5E08,0xC26C,0x4EF9,0xAF,0x83,0x51,0x58,0x0A,0x75,0x0B,0xE1); + + +MIDL_DEFINE_GUID(IID, IID_IFaxInboundRoutingMethods,0x783FCA10,0x8908,0x4473,0x9D,0x69,0xF6,0x7F,0xBE,0xA0,0xC6,0xB9); + + +MIDL_DEFINE_GUID(IID, IID_IFaxInboundRoutingMethod,0x45700061,0xAD9D,0x4776,0xA8,0xC4,0x64,0x06,0x54,0x92,0xCF,0x4B); + + +MIDL_DEFINE_GUID(IID, IID_IFaxDocument2,0xe1347661,0xf9ef,0x4d6d,0xb4,0xa5,0xc0,0xa0,0x68,0xb6,0x5c,0xff); + + +MIDL_DEFINE_GUID(IID, IID_IFaxConfiguration,0x10f4d0f7,0x0994,0x4543,0xab,0x6e,0x50,0x69,0x49,0x12,0x8c,0x40); + + +MIDL_DEFINE_GUID(IID, IID_IFaxServer2,0x571ced0f,0x5609,0x4f40,0x91,0x76,0x54,0x7e,0x3a,0x72,0xca,0x7c); + + +MIDL_DEFINE_GUID(IID, IID_IFaxAccountSet,0x7428fbae,0x841e,0x47b8,0x86,0xf4,0x22,0x88,0x94,0x6d,0xca,0x1b); + + +MIDL_DEFINE_GUID(IID, IID_IFaxAccounts,0x93ea8162,0x8be7,0x42d1,0xae,0x7b,0xec,0x74,0xe2,0xd9,0x89,0xda); + + +MIDL_DEFINE_GUID(IID, IID_IFaxAccount,0x68535b33,0x5dc4,0x4086,0xbe,0x26,0xb7,0x6f,0x9b,0x71,0x10,0x06); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingJob2,0x418a8d96,0x59a0,0x4789,0xb1,0x76,0xed,0xf3,0xdc,0x8f,0xa8,0xf7); + + +MIDL_DEFINE_GUID(IID, IID_IFaxAccountFolders,0x6463f89d,0x23d8,0x46a9,0x8f,0x86,0xc4,0x7b,0x77,0xca,0x79,0x26); + + +MIDL_DEFINE_GUID(IID, IID_IFaxAccountIncomingQueue,0xdd142d92,0x0186,0x4a95,0xa0,0x90,0xcb,0xc3,0xea,0xdb,0xa6,0xb4); + + +MIDL_DEFINE_GUID(IID, IID_IFaxAccountOutgoingQueue,0x0f1424e9,0xf22d,0x4553,0xb7,0xa5,0x0d,0x24,0xbd,0x0d,0x7e,0x46); + + +MIDL_DEFINE_GUID(IID, IID_IFaxOutgoingMessage2,0xb37df687,0xbc88,0x4b46,0xb3,0xbe,0xb4,0x58,0xb3,0xea,0x9e,0x7f); + + +MIDL_DEFINE_GUID(IID, IID_IFaxAccountIncomingArchive,0xa8a5b6ef,0xe0d6,0x4aee,0x95,0x5c,0x91,0x62,0x5b,0xec,0x9d,0xb4); + + +MIDL_DEFINE_GUID(IID, IID_IFaxAccountOutgoingArchive,0x5463076d,0xec14,0x491f,0x92,0x6e,0xb3,0xce,0xda,0x5e,0x56,0x62); + + +MIDL_DEFINE_GUID(IID, IID_IFaxSecurity2,0x17d851f4,0xd09b,0x48fc,0x99,0xc9,0x8f,0x24,0xc4,0xdb,0x9a,0xb1); + + +MIDL_DEFINE_GUID(IID, IID_IFaxIncomingMessage2,0xf9208503,0xe2bc,0x48f3,0x9e,0xc0,0xe6,0x23,0x6f,0x9b,0x50,0x9a); + + +MIDL_DEFINE_GUID(IID, LIBID_FAXCOMEXLib,0x2BF34C1A,0x8CAC,0x419F,0x85,0x47,0x32,0xFD,0xF6,0x50,0x5D,0xB8); + + +MIDL_DEFINE_GUID(IID, DIID_IFaxServerNotify,0x2E037B27,0xCF8A,0x4abd,0xB1,0xE0,0x57,0x04,0x94,0x3B,0xEA,0x6F); + + +MIDL_DEFINE_GUID(IID, IID__IFaxServerNotify2,0xec9c69b9,0x5fe7,0x4805,0x94,0x67,0x82,0xfc,0xd9,0x6a,0xf9,0x03); + + +MIDL_DEFINE_GUID(IID, DIID_IFaxServerNotify2,0x616ca8d6,0xa77a,0x4062,0xab,0xfd,0x0e,0x47,0x12,0x41,0xc7,0xaa); + + +MIDL_DEFINE_GUID(IID, IID__IFaxAccountNotify,0xb9b3bc81,0xac1b,0x46f3,0xb3,0x9d,0x0a,0xdc,0x30,0xe1,0xb7,0x88); + + +MIDL_DEFINE_GUID(IID, DIID_IFaxAccountNotify,0x0b5e5bd1,0xb8a9,0x47a0,0xa3,0x23,0xef,0x4a,0x29,0x3b,0xa0,0x6a); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxServer,0xCDA8ACB0,0x8CF5,0x4F6C,0x9B,0xA2,0x59,0x31,0xD4,0x0C,0x8C,0xAE); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxDeviceProviders,0xEB8FE768,0x875A,0x4F5F,0x82,0xC5,0x03,0xF2,0x3A,0xAC,0x1B,0xD7); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxDevices,0x5589E28E,0x23CB,0x4919,0x88,0x08,0xE6,0x10,0x18,0x46,0xE8,0x0D); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxInboundRouting,0xE80248ED,0xAD65,0x4218,0x81,0x08,0x99,0x19,0x24,0xD4,0xE7,0xED); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxFolders,0xC35211D7,0x5776,0x48CB,0xAF,0x44,0xC3,0x1B,0xE3,0xB2,0xCF,0xE5); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxLoggingOptions,0x1BF9EEA6,0xECE0,0x4785,0xA1,0x8B,0xDE,0x56,0xE9,0xEE,0xF9,0x6A); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxActivity,0xCFEF5D0E,0xE84D,0x462E,0xAA,0xBB,0x87,0xD3,0x1E,0xB0,0x4F,0xEF); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutboundRouting,0xC81B385E,0xB869,0x4AFD,0x86,0xC0,0x61,0x64,0x98,0xED,0x9B,0xE2); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxReceiptOptions,0x6982487B,0x227B,0x4C96,0xA6,0x1C,0x24,0x83,0x48,0xB0,0x5A,0xB6); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxSecurity,0x10C4DDDE,0xABF0,0x43DF,0x96,0x4F,0x7F,0x3A,0xC2,0x1A,0x4C,0x7B); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxDocument,0x0F3F9F91,0xC838,0x415E,0xA4,0xF3,0x3E,0x82,0x8C,0xA4,0x45,0xE0); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxSender,0x265D84D0,0x1850,0x4360,0xB7,0xC8,0x75,0x8B,0xBB,0x5F,0x0B,0x96); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxRecipients,0xEA9BDF53,0x10A9,0x4D4F,0xA0,0x67,0x63,0xC8,0xF8,0x4F,0x01,0xB0); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingArchive,0x8426C56A,0x35A1,0x4C6F,0xAF,0x93,0xFC,0x95,0x24,0x22,0xE2,0xC2); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingQueue,0x69131717,0xF3F1,0x40E3,0x80,0x9D,0xA6,0xCB,0xF7,0xBD,0x85,0xE5); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingArchive,0x43C28403,0xE04F,0x474D,0x99,0x0C,0xB9,0x46,0x69,0x14,0x8F,0x59); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingQueue,0x7421169E,0x8C43,0x4B0D,0xBB,0x16,0x64,0x5C,0x8F,0xA4,0x03,0x57); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingMessageIterator,0x6088E1D8,0x3FC8,0x45C2,0x87,0xB1,0x90,0x9A,0x29,0x60,0x7E,0xA9); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingMessage,0x1932FCF7,0x9D43,0x4D5A,0x89,0xFF,0x03,0x86,0x1B,0x32,0x17,0x36); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingJobs,0x92BF2A6C,0x37BE,0x43FA,0xA3,0x7D,0xCB,0x0E,0x5F,0x75,0x3B,0x35); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingJob,0x71BB429C,0x0EF9,0x4915,0xBE,0xC5,0xA5,0xD8,0x97,0xA3,0xE9,0x24); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingMessageIterator,0x8A3224D0,0xD30B,0x49DE,0x98,0x13,0xCB,0x38,0x57,0x90,0xFB,0xBB); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutgoingMessage,0x91B4A378,0x4AD8,0x4AEF,0xA4,0xDC,0x97,0xD9,0x6E,0x93,0x9A,0x3A); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingJobs,0xA1BB8A43,0x8866,0x4FB7,0xA1,0x5D,0x62,0x66,0xC8,0x75,0xA5,0xCC); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxIncomingJob,0xC47311EC,0xAE32,0x41B8,0xAE,0x4B,0x3E,0xAE,0x06,0x29,0xD0,0xC9); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxDeviceProvider,0x17CF1AA3,0xF5EB,0x484A,0x9C,0x9A,0x44,0x40,0xA5,0xBA,0xAB,0xFC); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxDevice,0x59E3A5B2,0xD676,0x484B,0xA6,0xDE,0x72,0x0B,0xFA,0x89,0xB5,0xAF); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxActivityLogging,0xF0A0294E,0x3BBD,0x48B8,0x8F,0x13,0x8C,0x59,0x1A,0x55,0xBD,0xBC); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxEventLogging,0xA6850930,0xA0F6,0x4A6F,0x95,0xB7,0xDB,0x2E,0xBF,0x3D,0x02,0xE3); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutboundRoutingGroups,0xCCBEA1A5,0xE2B4,0x4B57,0x94,0x21,0xB0,0x4B,0x62,0x89,0x46,0x4B); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutboundRoutingGroup,0x0213F3E0,0x6791,0x4D77,0xA2,0x71,0x04,0xD2,0x35,0x7C,0x50,0xD6); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxDeviceIds,0xCDC539EA,0x7277,0x460E,0x8D,0xE0,0x48,0xA0,0xA5,0x76,0x0D,0x1F); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutboundRoutingRules,0xD385BECA,0xE624,0x4473,0xBF,0xAA,0x9F,0x40,0x00,0x83,0x1F,0x54); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxOutboundRoutingRule,0x6549EEBF,0x08D1,0x475A,0x82,0x8B,0x3B,0xF1,0x05,0x95,0x2F,0xA0); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxInboundRoutingExtensions,0x189A48ED,0x623C,0x4C0D,0x80,0xF2,0xD6,0x6C,0x7B,0x9E,0xFE,0xC2); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxInboundRoutingExtension,0x1D7DFB51,0x7207,0x4436,0xA0,0xD9,0x24,0xE3,0x2E,0xE5,0x69,0x88); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxInboundRoutingMethods,0x25FCB76A,0xB750,0x4B82,0x92,0x66,0xFB,0xBB,0xAE,0x89,0x22,0xBA); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxInboundRoutingMethod,0x4B9FD75C,0x0194,0x4B72,0x9C,0xE5,0x02,0xA8,0x20,0x5A,0xC7,0xD4); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxJobStatus,0x7BF222F4,0xBE8D,0x442f,0x84,0x1D,0x61,0x32,0x74,0x24,0x23,0xBB); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxRecipient,0x60BF3301,0x7DF8,0x4bd8,0x91,0x48,0x7B,0x58,0x01,0xF9,0xEF,0xDF); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxConfiguration,0x5857326f,0xe7b3,0x41a7,0x9c,0x19,0xa9,0x1b,0x46,0x3e,0x2d,0x56); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountSet,0xfbc23c4b,0x79e0,0x4291,0xbc,0x56,0xc1,0x2e,0x25,0x3b,0xbf,0x3a); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccounts,0xda1f94aa,0xee2c,0x47c0,0x8f,0x4f,0x2a,0x21,0x70,0x75,0xb7,0x6e); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccount,0xa7e0647f,0x4524,0x4464,0xa5,0x6d,0xb9,0xfe,0x66,0x6f,0x71,0x5e); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountFolders,0x85398f49,0xc034,0x4a3f,0x82,0x1c,0xdb,0x7d,0x68,0x5e,0x81,0x29); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountIncomingQueue,0x9bcf6094,0xb4da,0x45f4,0xb8,0xd6,0xdd,0xeb,0x21,0x86,0x65,0x2c); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountOutgoingQueue,0xfeeceefb,0xc149,0x48ba,0xba,0xb8,0xb7,0x91,0xe1,0x01,0xf6,0x2f); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountIncomingArchive,0x14b33db5,0x4c40,0x4ecf,0x9e,0xf8,0xa3,0x60,0xcb,0xe8,0x09,0xed); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxAccountOutgoingArchive,0x851e7af5,0x433a,0x4739,0xa2,0xdf,0xad,0x24,0x5c,0x2c,0xb9,0x8e); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxSecurity2,0x735c1248,0xec89,0x4c30,0xa1,0x27,0x65,0x6e,0x92,0xe3,0xc4,0xea); + +#undef MIDL_DEFINE_GUID + +#ifdef __cplusplus +} +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxCom_i.c b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxCom_i.c new file mode 100644 index 0000000000000000000000000000000000000000..fd3329d97045bc8630e9c439bb621d9e24db3610 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxCom_i.c @@ -0,0 +1,128 @@ + + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + +/* link this file in with the server and any clients */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +#ifdef __cplusplus +extern "C"{ +#endif + + +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef struct _IID +{ + unsigned long x; + unsigned short s1; + unsigned short s2; + unsigned char c[8]; +} IID; + +#endif // __IID_DEFINED__ + +#ifndef CLSID_DEFINED +#define CLSID_DEFINED +typedef IID CLSID; +#endif // CLSID_DEFINED + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} + +#endif // !_MIDL_USE_GUIDDEF_ + +MIDL_DEFINE_GUID(IID, IID_IFaxTiff,0xb19bb45f,0xb91c,0x11d1,0x83,0xe1,0x00,0xc0,0x4f,0xb6,0xe9,0x84); + + +MIDL_DEFINE_GUID(IID, IID_IFaxServer,0xD73733C7,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5); + + +MIDL_DEFINE_GUID(IID, IID_IFaxPort,0xD73733CC,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5); + + +MIDL_DEFINE_GUID(IID, IID_IFaxPorts,0xD73733D5,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5); + + +MIDL_DEFINE_GUID(IID, IID_IFaxRoutingMethod,0x2199F5F3,0xCEFC,0x11D0,0xA3,0x41,0x00,0x00,0xF8,0x00,0xE6,0x8D); + + +MIDL_DEFINE_GUID(IID, IID_IFaxRoutingMethods,0x2199F5F5,0xCEFC,0x11D0,0xA3,0x41,0x00,0x00,0xF8,0x00,0xE6,0x8D); + + +MIDL_DEFINE_GUID(IID, IID_IFaxStatus,0x8B97E605,0xD054,0x11D0,0xB2,0x26,0x00,0xC0,0x4F,0xB6,0xC2,0xF5); + + +MIDL_DEFINE_GUID(IID, IID_IFaxDoc,0xFA21F4C5,0x5C4C,0x11D1,0x83,0xCF,0x00,0xC0,0x4F,0xB6,0xE9,0x84); + + +MIDL_DEFINE_GUID(IID, IID_IFaxJobs,0x55DABFD3,0x5C9E,0x11D1,0xB7,0x91,0x00,0x00,0x00,0x00,0x00,0x00); + + +MIDL_DEFINE_GUID(IID, IID_IFaxJob,0x55DABFD5,0x5C9E,0x11D1,0xB7,0x91,0x00,0x00,0x00,0x00,0x00,0x00); + + +MIDL_DEFINE_GUID(IID, LIBID_FAXCOMLib,0x87099223,0xC7AF,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxTiff,0x87099231,0xC7AF,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxServer,0xD73733C8,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxPort,0xD73733CD,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxPorts,0xD73733D6,0xCC80,0x11D0,0xB2,0x25,0x00,0xC0,0x4F,0xB6,0xC2,0xF5); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxRoutingMethod,0x2199F5F4,0xCEFC,0x11D0,0xA3,0x41,0x00,0x00,0xF8,0x00,0xE6,0x8D); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxRoutingMethods,0x2199F5F6,0xCEFC,0x11D0,0xA3,0x41,0x00,0x00,0xF8,0x00,0xE6,0x8D); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxStatus,0x8B97E606,0xD054,0x11D0,0xB2,0x26,0x00,0xC0,0x4F,0xB6,0xC2,0xF5); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxDoc,0xFA21F4C6,0x5C4C,0x11D1,0x83,0xCF,0x00,0xC0,0x4F,0xB6,0xE9,0x84); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxJobs,0x55DABFD4,0x5C9E,0x11D1,0xB7,0x91,0x00,0x00,0x00,0x00,0x00,0x00); + + +MIDL_DEFINE_GUID(CLSID, CLSID_FaxJob,0x55DABFD6,0x5C9E,0x11D1,0xB7,0x91,0x00,0x00,0x00,0x00,0x00,0x00); + +#undef MIDL_DEFINE_GUID + +#ifdef __cplusplus +} +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxDev.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxDev.h new file mode 100644 index 0000000000000000000000000000000000000000..fb6079880684c5a024cfec6f7e302031173af2ae --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxDev.h @@ -0,0 +1,221 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + +Module Name: + + faxdev.h + +Abstract: + + This file contains the prototypes for the + FAX device provider API. + +--*/ + +#include + + +#ifndef _FAXDEV_ +#define _FAXDEV_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// FAX status constants +// + +#define FS_INITIALIZING 0x20000000 +#define FS_DIALING 0x20000001 +#define FS_TRANSMITTING 0x20000002 +#define FS_RECEIVING 0x20000004 +#define FS_COMPLETED 0x20000008 +#define FS_HANDLED 0x20000010 +#define FS_LINE_UNAVAILABLE 0x20000020 +#define FS_BUSY 0x20000040 +#define FS_NO_ANSWER 0x20000080 +#define FS_BAD_ADDRESS 0x20000100 +#define FS_NO_DIAL_TONE 0x20000200 +#define FS_DISCONNECTED 0x20000400 +#define FS_FATAL_ERROR 0x20000800 +#define FS_NOT_FAX_CALL 0x20001000 +#define FS_CALL_DELAYED 0x20002000 +#define FS_CALL_BLACKLISTED 0x20004000 +#define FS_USER_ABORT 0x20200000 +#define FS_ANSWERED 0x20800000 + + +// +// data structures +// + +typedef struct _FAX_SEND { + DWORD SizeOfStruct; + LPWSTR FileName; + LPWSTR CallerName; + LPWSTR CallerNumber; + LPWSTR ReceiverName; + LPWSTR ReceiverNumber; + BOOL Branding; + HCALL CallHandle; + DWORD Reserved[3]; +} FAX_SEND, *PFAX_SEND; + +typedef struct _FAX_RECEIVE { + DWORD SizeOfStruct; + LPWSTR FileName; + LPWSTR ReceiverName; + LPWSTR ReceiverNumber; + DWORD Reserved[4]; +} FAX_RECEIVE, *PFAX_RECEIVE; + +typedef _Struct_size_bytes_(SizeOfStruct) struct _FAX_DEV_STATUS { + DWORD SizeOfStruct; + DWORD StatusId; + DWORD StringId; + DWORD PageCount; + LPWSTR CSI; + LPWSTR CallerId; + LPWSTR RoutingInfo; + DWORD ErrorCode; + DWORD Reserved[3]; +} FAX_DEV_STATUS, *PFAX_DEV_STATUS; + +typedef BOOL +(CALLBACK *PFAX_SERVICE_CALLBACK)( + IN HANDLE FaxHandle, + IN DWORD DeviceId, + IN DWORD_PTR Param1, + IN DWORD_PTR Param2, + IN DWORD_PTR Param3 + ); + +typedef void +(CALLBACK *PFAX_LINECALLBACK)( + IN HANDLE FaxHandle, + IN DWORD hDevice, + IN DWORD dwMessage, + IN DWORD_PTR dwInstance, + IN DWORD_PTR dwParam1, + IN DWORD_PTR dwParam2, + IN DWORD_PTR dwParam3 + ); + +BOOL WINAPI +FaxDevInitialize( + IN HLINEAPP LineAppHandle, + IN HANDLE HeapHandle, + OUT PFAX_LINECALLBACK *LineCallbackFunction, + IN PFAX_SERVICE_CALLBACK FaxServiceCallback + ); + +HRESULT WINAPI FaxDevShutdown( + void +); + +BOOL WINAPI +FaxDevVirtualDeviceCreation( + OUT LPDWORD DeviceCount, + _Out_writes_(128) LPWSTR DeviceNamePrefix, + OUT LPDWORD DeviceIdPrefix, + IN HANDLE CompletionPort, + IN ULONG_PTR CompletionKey + ); + +BOOL WINAPI +FaxDevStartJob( + IN HLINE LineHandle, + IN DWORD DeviceId, + OUT PHANDLE FaxHandle, + IN HANDLE CompletionPortHandle, + IN ULONG_PTR CompletionKey + ); + +BOOL WINAPI +FaxDevEndJob( + IN HANDLE FaxHandle + ); + +typedef BOOL +(CALLBACK *PFAX_SEND_CALLBACK)( + IN HANDLE FaxHandle, + IN HCALL CallHandle, + IN DWORD Reserved1, + IN DWORD Reserved2 + ); + +BOOL WINAPI +FaxDevSend( + IN HANDLE FaxHandle, + IN PFAX_SEND FaxSend, + IN PFAX_SEND_CALLBACK FaxSendCallback + ); + +#define FAXDEVRECEIVE_SIZE 4096 + +BOOL WINAPI +FaxDevReceive( + IN HANDLE FaxHandle, + IN HCALL CallHandle, + IN OUT PFAX_RECEIVE FaxReceive + ); + +#define FAXDEVREPORTSTATUS_SIZE 4096 + +BOOL WINAPI +FaxDevReportStatus( + IN HANDLE FaxHandle OPTIONAL, + OUT PFAX_DEV_STATUS FaxStatus, + IN DWORD FaxStatusSize, + OUT LPDWORD FaxStatusSizeRequired + ); + +BOOL WINAPI +FaxDevAbortOperation( + IN HANDLE FaxHandle + ); + +BOOL WINAPI +FaxDevConfigure( + OUT HPROPSHEETPAGE *PropSheetPage + ); + +typedef BOOL (WINAPI *PFAXDEVINITIALIZE) (HLINEAPP,HANDLE,PFAX_LINECALLBACK*,PFAX_SERVICE_CALLBACK); +typedef BOOL (WINAPI *PFAXDEVVIRTUALDEVICECREATION) (LPDWORD DeviceCount, + _Out_writes_(128) LPWSTR DeviceNamePrefix, + LPDWORD DeviceIdPrefix, + HANDLE CompletionPort, + ULONG_PTR CompletionKey); +typedef BOOL (WINAPI *PFAXDEVSTARTJOB) (HLINE,DWORD,PHANDLE,HANDLE,ULONG_PTR); +typedef BOOL (WINAPI *PFAXDEVENDJOB) (HANDLE); +typedef BOOL (WINAPI *PFAXDEVSEND) (HANDLE,PFAX_SEND,PFAX_SEND_CALLBACK); +typedef BOOL (WINAPI *PFAXDEVRECEIVE) (HANDLE,HCALL,PFAX_RECEIVE); +typedef BOOL (WINAPI *PFAXDEVREPORTSTATUS) (HANDLE,PFAX_DEV_STATUS,DWORD,LPDWORD); +typedef BOOL (WINAPI *PFAXDEVABORTOPERATION) (HANDLE); +typedef BOOL (WINAPI *PFAXDEVCONFIGURE) (HPROPSHEETPAGE*); +typedef HRESULT (WINAPI * PFAXDEVSHUTDOWN) (void); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxExt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxExt.h new file mode 100644 index 0000000000000000000000000000000000000000..34bf0971a50c7d761e310662c1c019871bfeeccf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxExt.h @@ -0,0 +1,143 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + +Module Name: + + faxext.h + +Abstract: + + Declarations of fax extension configuration and notification functions. + +--*/ + + +#ifndef _FAX_EXT_H_ +#define _FAX_EXT_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +/************************************ +* * +* Extension configuration data * +* * +************************************/ + +typedef enum +{ + DEV_ID_SRC_FAX, // Device id is generated by the fax server + DEV_ID_SRC_TAPI // Device id is generated by a TAPI TSP (of FSP). +} FAX_ENUM_DEVICE_ID_SOURCE; + +// +// Prototype of FaxExtGetData +// +DWORD +WINAPI +FaxExtGetData ( + DWORD dwDeviceId, // Device id (0 = No device) + FAX_ENUM_DEVICE_ID_SOURCE DevIdSrc, // The source of the device id + LPCWSTR lpcwstrDataGUID,// GUID of data + LPBYTE *ppData, // (Out) Pointer to allocated data + LPDWORD lpdwDataSize // (Out) Pointer to data size +); +typedef DWORD (CALLBACK *PFAX_EXT_GET_DATA) (DWORD, FAX_ENUM_DEVICE_ID_SOURCE, LPCWSTR, LPBYTE *, LPDWORD); + +// +// Prototype of FaxExtSetData +// +DWORD +WINAPI +FaxExtSetData ( + HINSTANCE hInst, // Instance of calling extension + DWORD dwDeviceId, // Device id (0 = No device) + FAX_ENUM_DEVICE_ID_SOURCE DevIdSrc, // The source of the device id + LPCWSTR lpcwstrDataGUID,// GUID of data + LPBYTE pData, // Pointer to data + DWORD dwDataSize // Data size +); +typedef DWORD (CALLBACK *PFAX_EXT_SET_DATA) (HINSTANCE, DWORD, FAX_ENUM_DEVICE_ID_SOURCE, LPCWSTR, LPBYTE, DWORD); + +HRESULT +WINAPI +FaxExtConfigChange ( + DWORD dwDeviceId, // The device for which configuration has changed + LPCWSTR lpcwstrDataGUID, // Configuration name + LPBYTE lpData, // New configuration data + DWORD dwDataSize // Size of new configuration data +); +typedef HRESULT (WINAPI *PFAX_EXT_CONFIG_CHANGE) (DWORD, LPCWSTR, LPBYTE, DWORD); + +// +// Prototype of FaxExtRegisterForEvents +// +HANDLE +WINAPI +FaxExtRegisterForEvents ( + HINSTANCE hInst, // Instance of calling extension + DWORD dwDeviceId, // Device id (0 = No device) + FAX_ENUM_DEVICE_ID_SOURCE DevIdSrc, // The source of the device id + LPCWSTR lpcwstrDataGUID,// GUID of data + PFAX_EXT_CONFIG_CHANGE lpConfigChangeCallback +); +typedef HANDLE (CALLBACK *PFAX_EXT_REGISTER_FOR_EVENTS) (HINSTANCE, DWORD, FAX_ENUM_DEVICE_ID_SOURCE, LPCWSTR, PFAX_EXT_CONFIG_CHANGE); + +// +// Prototype of FaxExtUnregisterForEvents +// +DWORD +WINAPI +FaxExtUnregisterForEvents ( + HANDLE hNotification +); +typedef DWORD (CALLBACK *PFAX_EXT_UNREGISTER_FOR_EVENTS) (HANDLE); + +// +// Prototype of FaxExtFreeBuffer +// +VOID +WINAPI +FaxExtFreeBuffer ( + LPVOID lpvBuffer +); +typedef VOID (CALLBACK *PFAX_EXT_FREE_BUFFER) (LPVOID); + +// +// The extension should implement and export the following function: +// +HRESULT +WINAPI +FaxExtInitializeConfig ( + PFAX_EXT_GET_DATA, // Pointer to FaxExtGetExtensionData in service + PFAX_EXT_SET_DATA, // Pointer to FaxExtSetExtensionData in service + PFAX_EXT_REGISTER_FOR_EVENTS, // Pointer to FaxExtRegisterForExtensionEvents in service + PFAX_EXT_UNREGISTER_FOR_EVENTS, // Pointer to FaxExtUnregisterForExtensionEvents in service + PFAX_EXT_FREE_BUFFER // Pointer to FaxExtFreeBuffer in service +); +typedef HRESULT (WINAPI *PFAX_EXT_INITIALIZE_CONFIG) (PFAX_EXT_GET_DATA, PFAX_EXT_SET_DATA, PFAX_EXT_REGISTER_FOR_EVENTS, PFAX_EXT_UNREGISTER_FOR_EVENTS, PFAX_EXT_FREE_BUFFER); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _FAX_EXT_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxMmc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxMmc.h new file mode 100644 index 0000000000000000000000000000000000000000..013fd35beb6f103927546f8e71618f50a04ebf3e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxMmc.h @@ -0,0 +1,51 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + +Module Name: + + faxmmc.h + +Abstract: + + This header file contains public constants for extension of MMC components. + +--*/ + +#ifndef H_FXS_MMCEXT_H +#define H_FXS_MMCEXT_H + + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define FAXSRV_DEVICE_NODETYPE_GUID_STR OLESTR("{3115A19A-6251-46ac-9425-14782858B8C9}") +#define FAXSRV_DEVICE_NODETYPE_GUID { 0x3115a19a, 0x6251, 0x46ac, { 0x94, 0x25, 0x14, 0x78, 0x28, 0x58, 0xb8, 0xc9 } } + +#define FAXSRV_DEVICE_PROVIDER_NODETYPE_GUID_STR OLESTR("{BD38E2AC-B926-4161-8640-0F6956EE2BA3}") +#define FAXSRV_DEVICE_PROVIDER_NODETYPE_GUID { 0xbd38e2ac, 0xb926, 0x4161, { 0x86, 0x40, 0x0f, 0x69, 0x56, 0xee, 0x2b, 0xa3 } } + +#define FAXSRV_ROUTING_METHOD_NODETYPE_GUID_STR OLESTR("{220D2CB0-85A9-4a43-B6E8-9D66B44F1AF5}") +#define FAXSRV_ROUTING_METHOD_NODETYPE_GUID { 0x220d2cb0, 0x85a9, 0x4a43, { 0xb6, 0xe8, 0x9d, 0x66, 0xb4, 0x4f, 0x1a, 0xf5 } } + +#define FAXSRV_MAX_GUID_LEN sizeof(FAXSRV_DEVICE_NODETYPE_GUID_STR)/sizeof(WCHAR) +#define FAXSRV_MAX_SERVER_NAME MAX_PATH +#define FAXSRV_MAX_ROUTEEXT_NAME_LEN MAX_PATH + +#define CF_MSFAXSRV_DEVICE_ID TEXT("FAXSRV_DeviceID") +#define CF_MSFAXSRV_FSP_GUID TEXT("FAXSRV_FSPGuid") +#define CF_MSFAXSRV_SERVER_NAME TEXT("FAXSRV_ServerName") +#define CF_MSFAXSRV_ROUTEEXT_NAME TEXT("FAXSRV_RoutingExtName") +#define CF_MSFAXSRV_ROUTING_METHOD_GUID TEXT("FAXSRV_RoutingMethodGuid") + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //H_FXS_MMCEXT_H + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxRoute.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxRoute.h new file mode 100644 index 0000000000000000000000000000000000000000..539c7a02d5bb7fb486f03bdb3e7fa5f090cf2837 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FaxRoute.h @@ -0,0 +1,154 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + +Module Name: + + faxroute.h + +Abstract: + + This file contains the prototypes for the + FAX routing extension API. + + +--*/ + +#include + +#ifndef _FAXROUTE_ +#define _FAXROUTE_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + + +// +// microsoft routing guids +// + +#define MS_FAXROUTE_PRINTING_GUID TEXT("{aec1b37c-9af2-11d0-abf7-00c04fd91a4e}") +#define MS_FAXROUTE_FOLDER_GUID TEXT("{92041a90-9af2-11d0-abf7-00c04fd91a4e}") +#define MS_FAXROUTE_EMAIL_GUID TEXT("{6bbf7bfe-9af2-11d0-abf7-00c04fd91a4e}") + +// +// callback routines +// + +typedef LONG (WINAPI *PFAXROUTEADDFILE)(DWORD JobId, LPCWSTR FileName, GUID *Guid); +typedef LONG (WINAPI *PFAXROUTEDELETEFILE)(DWORD JobId, LPCWSTR FileName); +typedef BOOL (WINAPI *PFAXROUTEGETFILE)(DWORD JobId, DWORD Index, _Out_writes_bytes_opt_(*RequiredSize) LPWSTR FileNameBuffer, LPDWORD RequiredSize); +typedef BOOL (WINAPI *PFAXROUTEENUMFILE)(DWORD JobId, GUID *GuidOwner, GUID *GuidCaller, LPCWSTR FileName, PVOID Context); +typedef BOOL (WINAPI *PFAXROUTEENUMFILES)(DWORD JobId, GUID *Guid,PFAXROUTEENUMFILE FileEnumerator, PVOID Context); +typedef BOOL (WINAPI *PFAXROUTEMODIFYROUTINGDATA)(DWORD JobId, LPCWSTR RoutingGuid, LPBYTE RoutingData, DWORD RoutingDataSize ); + + +typedef struct _FAX_ROUTE_CALLBACKROUTINES { + DWORD SizeOfStruct; // size of the struct set by the fax service + PFAXROUTEADDFILE FaxRouteAddFile; + PFAXROUTEDELETEFILE FaxRouteDeleteFile; + PFAXROUTEGETFILE FaxRouteGetFile; + PFAXROUTEENUMFILES FaxRouteEnumFiles; + PFAXROUTEMODIFYROUTINGDATA FaxRouteModifyRoutingData; +} FAX_ROUTE_CALLBACKROUTINES, *PFAX_ROUTE_CALLBACKROUTINES; + + +// +// routing data structure +// + +typedef struct _FAX_ROUTE { + DWORD SizeOfStruct; // size of the struct set by the fax service + DWORD JobId; // Fax job identifier + DWORDLONG ElapsedTime; // Elapsed time for whole fax job in Coordinated Universal Time (UTC) + DWORDLONG ReceiveTime; // Starting time for fax job in Coordinated Universal Time (UTC) + DWORD PageCount; // Number of pages received + LPCWSTR Csid; // Called station identifier + LPCWSTR Tsid; // Transmitting station identifier + LPCWSTR CallerId; // Caller id + LPCWSTR RoutingInfo; // Routing info such as DID, T.30-subaddress, etc. + LPCWSTR ReceiverName; // Receiver's name + LPCWSTR ReceiverNumber; // Receiver's fax number + LPCWSTR DeviceName; // Device name for the line that received the fax + DWORD DeviceId; // Permenant line identifier for the receiving device + LPBYTE RoutingInfoData; // Routing infor data to override configured info + DWORD RoutingInfoDataSize;// Size of routing info data +} FAX_ROUTE, *PFAX_ROUTE; + +enum FAXROUTE_ENABLE { + QUERY_STATUS = -1, + STATUS_DISABLE = 0, + STATUS_ENABLE = 1 +}; + + +// +// prototypes +// + +BOOL WINAPI +FaxRouteInitialize( + IN HANDLE HeapHandle, + IN PFAX_ROUTE_CALLBACKROUTINES FaxRouteCallbackRoutines + ); + +BOOL WINAPI +FaxRouteDeviceEnable( + IN LPCWSTR RoutingGuid, + IN DWORD DeviceId, + IN LONG Enabled + ); + +BOOL WINAPI +FaxRouteDeviceChangeNotification( + IN DWORD DeviceId, + IN BOOL NewDevice + ); + +BOOL WINAPI +FaxRouteGetRoutingInfo( + IN LPCWSTR RoutingGuid, + IN DWORD DeviceId, + IN LPBYTE RoutingInfo, + OUT LPDWORD RoutingInfoSize + ); + +BOOL WINAPI +FaxRouteSetRoutingInfo( + IN LPCWSTR RoutingGuid, + IN DWORD DeviceId, + IN const BYTE *RoutingInfo, + IN DWORD RoutingInfoSize + ); + + +typedef BOOL (WINAPI *PFAXROUTEINITIALIZE) (HANDLE,PFAX_ROUTE_CALLBACKROUTINES); +typedef BOOL (WINAPI *PFAXROUTEMETHOD) (const FAX_ROUTE*,PVOID*,LPDWORD); +typedef BOOL (WINAPI *PFAXROUTEDEVICEENABLE) (LPCWSTR,DWORD,LONG); +typedef BOOL (WINAPI *PFAXROUTEDEVICECHANGENOTIFICATION) (DWORD,BOOL); +typedef BOOL (WINAPI *PFAXROUTEGETROUTINGINFO) (LPCWSTR,DWORD,LPBYTE,LPDWORD); +typedef BOOL (WINAPI *PFAXROUTESETROUTINGINFO) (LPCWSTR,DWORD,const BYTE*,DWORD); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhCfg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhCfg.h new file mode 100644 index 0000000000000000000000000000000000000000..d039904833513737312259cffccb007aa97ecfc3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhCfg.h @@ -0,0 +1,860 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dpcfg_h__ +#define __dpcfg_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFhTarget_FWD_DEFINED__ +#define __IFhTarget_FWD_DEFINED__ +typedef interface IFhTarget IFhTarget; + +#endif /* __IFhTarget_FWD_DEFINED__ */ + + +#ifndef __IFhScopeIterator_FWD_DEFINED__ +#define __IFhScopeIterator_FWD_DEFINED__ +typedef interface IFhScopeIterator IFhScopeIterator; + +#endif /* __IFhScopeIterator_FWD_DEFINED__ */ + + +#ifndef __IFhConfigMgr_FWD_DEFINED__ +#define __IFhConfigMgr_FWD_DEFINED__ +typedef interface IFhConfigMgr IFhConfigMgr; + +#endif /* __IFhConfigMgr_FWD_DEFINED__ */ + + +#ifndef __IFhReassociation_FWD_DEFINED__ +#define __IFhReassociation_FWD_DEFINED__ +typedef interface IFhReassociation IFhReassociation; + +#endif /* __IFhReassociation_FWD_DEFINED__ */ + + +#ifndef __FhConfigMgr_FWD_DEFINED__ +#define __FhConfigMgr_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FhConfigMgr FhConfigMgr; +#else +typedef struct FhConfigMgr FhConfigMgr; +#endif /* __cplusplus */ + +#endif /* __FhConfigMgr_FWD_DEFINED__ */ + + +#ifndef __FhReassociation_FWD_DEFINED__ +#define __FhReassociation_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FhReassociation FhReassociation; +#else +typedef struct FhReassociation FhReassociation; +#endif /* __cplusplus */ + +#endif /* __FhReassociation_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" +#include "shobjidl_core.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dpcfg_0000_0000 */ +/* [local] */ + +/*******************************************************************************/ +/* */ +/* Copyright (C) 2010 Microsoft Corporation. All rights reserved. */ +/* */ +/* IDL source for File History Configuration Manager COM API. */ +/* */ +/*******************************************************************************/ +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if NTDDI_VERSION >= NTDDI_WIN8 +typedef +enum _FH_TARGET_PROPERTY_TYPE + { + FH_TARGET_NAME = 0, + FH_TARGET_URL = ( FH_TARGET_NAME + 1 ) , + FH_TARGET_DRIVE_TYPE = ( FH_TARGET_URL + 1 ) , + MAX_TARGET_PROPERTY = ( FH_TARGET_DRIVE_TYPE + 1 ) + } FH_TARGET_PROPERTY_TYPE; + +typedef enum _FH_TARGET_PROPERTY_TYPE *PFH_TARGET_PROPERTY_TYPE; + +typedef +enum _FH_TARGET_DRIVE_TYPES + { + FH_DRIVE_UNKNOWN = 0, + FH_DRIVE_REMOVABLE = 2, + FH_DRIVE_FIXED = 3, + FH_DRIVE_REMOTE = 4 + } FH_TARGET_DRIVE_TYPES; + +#pragma deprecated(IFhTarget) + + +extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0000_v0_0_s_ifspec; + +#ifndef __IFhTarget_INTERFACE_DEFINED__ +#define __IFhTarget_INTERFACE_DEFINED__ + +/* interface IFhTarget */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IFhTarget; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D87965FD-2BAD-4657-BD3B-9567EB300CED") + IFhTarget : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStringProperty( + /* [in] */ FH_TARGET_PROPERTY_TYPE PropertyType, + /* [out] */ __RPC__deref_out_opt BSTR *PropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNumericalProperty( + /* [in] */ FH_TARGET_PROPERTY_TYPE PropertyType, + /* [out] */ __RPC__out ULONGLONG *PropertyValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFhTargetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFhTarget * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFhTarget * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFhTarget * This); + + DECLSPEC_XFGVIRT(IFhTarget, GetStringProperty) + HRESULT ( STDMETHODCALLTYPE *GetStringProperty )( + __RPC__in IFhTarget * This, + /* [in] */ FH_TARGET_PROPERTY_TYPE PropertyType, + /* [out] */ __RPC__deref_out_opt BSTR *PropertyValue); + + DECLSPEC_XFGVIRT(IFhTarget, GetNumericalProperty) + HRESULT ( STDMETHODCALLTYPE *GetNumericalProperty )( + __RPC__in IFhTarget * This, + /* [in] */ FH_TARGET_PROPERTY_TYPE PropertyType, + /* [out] */ __RPC__out ULONGLONG *PropertyValue); + + END_INTERFACE + } IFhTargetVtbl; + + interface IFhTarget + { + CONST_VTBL struct IFhTargetVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFhTarget_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFhTarget_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFhTarget_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFhTarget_GetStringProperty(This,PropertyType,PropertyValue) \ + ( (This)->lpVtbl -> GetStringProperty(This,PropertyType,PropertyValue) ) + +#define IFhTarget_GetNumericalProperty(This,PropertyType,PropertyValue) \ + ( (This)->lpVtbl -> GetNumericalProperty(This,PropertyType,PropertyValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFhTarget_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dpcfg_0000_0001 */ +/* [local] */ + +#pragma deprecated(IFhScopeIterator) + + +extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0001_v0_0_s_ifspec; + +#ifndef __IFhScopeIterator_INTERFACE_DEFINED__ +#define __IFhScopeIterator_INTERFACE_DEFINED__ + +/* interface IFhScopeIterator */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IFhScopeIterator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3197ABCE-532A-44C6-8615-F3666566A720") + IFhScopeIterator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE MoveToNextItem( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItem( + /* [out] */ __RPC__deref_out_opt BSTR *Item) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFhScopeIteratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFhScopeIterator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFhScopeIterator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFhScopeIterator * This); + + DECLSPEC_XFGVIRT(IFhScopeIterator, MoveToNextItem) + HRESULT ( STDMETHODCALLTYPE *MoveToNextItem )( + __RPC__in IFhScopeIterator * This); + + DECLSPEC_XFGVIRT(IFhScopeIterator, GetItem) + HRESULT ( STDMETHODCALLTYPE *GetItem )( + __RPC__in IFhScopeIterator * This, + /* [out] */ __RPC__deref_out_opt BSTR *Item); + + END_INTERFACE + } IFhScopeIteratorVtbl; + + interface IFhScopeIterator + { + CONST_VTBL struct IFhScopeIteratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFhScopeIterator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFhScopeIterator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFhScopeIterator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFhScopeIterator_MoveToNextItem(This) \ + ( (This)->lpVtbl -> MoveToNextItem(This) ) + +#define IFhScopeIterator_GetItem(This,Item) \ + ( (This)->lpVtbl -> GetItem(This,Item) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFhScopeIterator_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dpcfg_0000_0002 */ +/* [local] */ + +typedef +enum _FH_PROTECTED_ITEM_CATEGORY + { + FH_FOLDER = 0, + FH_LIBRARY = ( FH_FOLDER + 1 ) , + MAX_PROTECTED_ITEM_CATEGORY = ( FH_LIBRARY + 1 ) + } FH_PROTECTED_ITEM_CATEGORY; + +typedef enum _FH_PROTECTED_ITEM_CATEGORY *PFH_PROTECTED_ITEM_CATEGORY; + +typedef +enum _FH_LOCAL_POLICY_TYPE + { + FH_FREQUENCY = 0, + FH_RETENTION_TYPE = ( FH_FREQUENCY + 1 ) , + FH_RETENTION_AGE = ( FH_RETENTION_TYPE + 1 ) , + MAX_LOCAL_POLICY = ( FH_RETENTION_AGE + 1 ) + } FH_LOCAL_POLICY_TYPE; + +typedef enum _FH_LOCAL_POLICY_TYPE *PFH_LOCAL_POLICY_TYPE; + +typedef +enum _FH_RETENTION_TYPES + { + FH_RETENTION_DISABLED = 0, + FH_RETENTION_UNLIMITED = ( FH_RETENTION_DISABLED + 1 ) , + FH_RETENTION_AGE_BASED = ( FH_RETENTION_UNLIMITED + 1 ) , + MAX_RETENTION_TYPE = ( FH_RETENTION_AGE_BASED + 1 ) + } FH_RETENTION_TYPES; + +typedef +enum _FH_BACKUP_STATUS + { + FH_STATUS_DISABLED = 0, + FH_STATUS_DISABLED_BY_GP = ( FH_STATUS_DISABLED + 1 ) , + FH_STATUS_ENABLED = ( FH_STATUS_DISABLED_BY_GP + 1 ) , + FH_STATUS_REHYDRATING = ( FH_STATUS_ENABLED + 1 ) , + MAX_BACKUP_STATUS = ( FH_STATUS_REHYDRATING + 1 ) + } FH_BACKUP_STATUS; + +typedef +enum _FH_DEVICE_VALIDATION_RESULT + { + FH_ACCESS_DENIED = 0, + FH_INVALID_DRIVE_TYPE = ( FH_ACCESS_DENIED + 1 ) , + FH_READ_ONLY_PERMISSION = ( FH_INVALID_DRIVE_TYPE + 1 ) , + FH_CURRENT_DEFAULT = ( FH_READ_ONLY_PERMISSION + 1 ) , + FH_NAMESPACE_EXISTS = ( FH_CURRENT_DEFAULT + 1 ) , + FH_TARGET_PART_OF_LIBRARY = ( FH_NAMESPACE_EXISTS + 1 ) , + FH_VALID_TARGET = ( FH_TARGET_PART_OF_LIBRARY + 1 ) , + MAX_VALIDATION_RESULT = ( FH_VALID_TARGET + 1 ) + } FH_DEVICE_VALIDATION_RESULT; + +typedef enum _FH_DEVICE_VALIDATION_RESULT *PFH_DEVICE_VALIDATION_RESULT; + +#pragma deprecated(IFhConfigMgr) + + +extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0002_v0_0_s_ifspec; + +#ifndef __IFhConfigMgr_INTERFACE_DEFINED__ +#define __IFhConfigMgr_INTERFACE_DEFINED__ + +/* interface IFhConfigMgr */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IFhConfigMgr; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6A5FEA5B-BF8F-4EE5-B8C3-44D8A0D7331C") + IFhConfigMgr : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE LoadConfiguration( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDefaultConfiguration( + /* [in] */ BOOL OverwriteIfExists) = 0; + + virtual HRESULT STDMETHODCALLTYPE SaveConfiguration( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRemoveExcludeRule( + /* [in] */ BOOL Add, + /* [in] */ FH_PROTECTED_ITEM_CATEGORY Category, + /* [in] */ __RPC__in BSTR Item) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIncludeExcludeRules( + /* [in] */ BOOL Include, + /* [in] */ FH_PROTECTED_ITEM_CATEGORY Category, + /* [out] */ __RPC__deref_out_opt IFhScopeIterator **Iterator) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLocalPolicy( + /* [in] */ FH_LOCAL_POLICY_TYPE LocalPolicyType, + /* [out] */ __RPC__out ULONGLONG *PolicyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetLocalPolicy( + /* [in] */ FH_LOCAL_POLICY_TYPE LocalPolicyType, + /* [in] */ ULONGLONG PolicyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBackupStatus( + /* [out] */ __RPC__out FH_BACKUP_STATUS *BackupStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBackupStatus( + /* [in] */ FH_BACKUP_STATUS BackupStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefaultTarget( + /* [out] */ __RPC__deref_out_opt IFhTarget **DefaultTarget) = 0; + + virtual HRESULT STDMETHODCALLTYPE ValidateTarget( + /* [in] */ __RPC__in BSTR TargetUrl, + /* [out] */ __RPC__out PFH_DEVICE_VALIDATION_RESULT ValidationResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProvisionAndSetNewTarget( + /* [in] */ __RPC__in BSTR TargetUrl, + /* [in] */ __RPC__in BSTR TargetName) = 0; + + virtual HRESULT STDMETHODCALLTYPE ChangeDefaultTargetRecommendation( + /* [in] */ BOOL Recommend) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryProtectionStatus( + /* [out] */ __RPC__out DWORD *ProtectionState, + /* [out] */ __RPC__deref_out_opt BSTR *ProtectedUntilTime) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFhConfigMgrVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFhConfigMgr * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFhConfigMgr * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFhConfigMgr * This); + + DECLSPEC_XFGVIRT(IFhConfigMgr, LoadConfiguration) + HRESULT ( STDMETHODCALLTYPE *LoadConfiguration )( + __RPC__in IFhConfigMgr * This); + + DECLSPEC_XFGVIRT(IFhConfigMgr, CreateDefaultConfiguration) + HRESULT ( STDMETHODCALLTYPE *CreateDefaultConfiguration )( + __RPC__in IFhConfigMgr * This, + /* [in] */ BOOL OverwriteIfExists); + + DECLSPEC_XFGVIRT(IFhConfigMgr, SaveConfiguration) + HRESULT ( STDMETHODCALLTYPE *SaveConfiguration )( + __RPC__in IFhConfigMgr * This); + + DECLSPEC_XFGVIRT(IFhConfigMgr, AddRemoveExcludeRule) + HRESULT ( STDMETHODCALLTYPE *AddRemoveExcludeRule )( + __RPC__in IFhConfigMgr * This, + /* [in] */ BOOL Add, + /* [in] */ FH_PROTECTED_ITEM_CATEGORY Category, + /* [in] */ __RPC__in BSTR Item); + + DECLSPEC_XFGVIRT(IFhConfigMgr, GetIncludeExcludeRules) + HRESULT ( STDMETHODCALLTYPE *GetIncludeExcludeRules )( + __RPC__in IFhConfigMgr * This, + /* [in] */ BOOL Include, + /* [in] */ FH_PROTECTED_ITEM_CATEGORY Category, + /* [out] */ __RPC__deref_out_opt IFhScopeIterator **Iterator); + + DECLSPEC_XFGVIRT(IFhConfigMgr, GetLocalPolicy) + HRESULT ( STDMETHODCALLTYPE *GetLocalPolicy )( + __RPC__in IFhConfigMgr * This, + /* [in] */ FH_LOCAL_POLICY_TYPE LocalPolicyType, + /* [out] */ __RPC__out ULONGLONG *PolicyValue); + + DECLSPEC_XFGVIRT(IFhConfigMgr, SetLocalPolicy) + HRESULT ( STDMETHODCALLTYPE *SetLocalPolicy )( + __RPC__in IFhConfigMgr * This, + /* [in] */ FH_LOCAL_POLICY_TYPE LocalPolicyType, + /* [in] */ ULONGLONG PolicyValue); + + DECLSPEC_XFGVIRT(IFhConfigMgr, GetBackupStatus) + HRESULT ( STDMETHODCALLTYPE *GetBackupStatus )( + __RPC__in IFhConfigMgr * This, + /* [out] */ __RPC__out FH_BACKUP_STATUS *BackupStatus); + + DECLSPEC_XFGVIRT(IFhConfigMgr, SetBackupStatus) + HRESULT ( STDMETHODCALLTYPE *SetBackupStatus )( + __RPC__in IFhConfigMgr * This, + /* [in] */ FH_BACKUP_STATUS BackupStatus); + + DECLSPEC_XFGVIRT(IFhConfigMgr, GetDefaultTarget) + HRESULT ( STDMETHODCALLTYPE *GetDefaultTarget )( + __RPC__in IFhConfigMgr * This, + /* [out] */ __RPC__deref_out_opt IFhTarget **DefaultTarget); + + DECLSPEC_XFGVIRT(IFhConfigMgr, ValidateTarget) + HRESULT ( STDMETHODCALLTYPE *ValidateTarget )( + __RPC__in IFhConfigMgr * This, + /* [in] */ __RPC__in BSTR TargetUrl, + /* [out] */ __RPC__out PFH_DEVICE_VALIDATION_RESULT ValidationResult); + + DECLSPEC_XFGVIRT(IFhConfigMgr, ProvisionAndSetNewTarget) + HRESULT ( STDMETHODCALLTYPE *ProvisionAndSetNewTarget )( + __RPC__in IFhConfigMgr * This, + /* [in] */ __RPC__in BSTR TargetUrl, + /* [in] */ __RPC__in BSTR TargetName); + + DECLSPEC_XFGVIRT(IFhConfigMgr, ChangeDefaultTargetRecommendation) + HRESULT ( STDMETHODCALLTYPE *ChangeDefaultTargetRecommendation )( + __RPC__in IFhConfigMgr * This, + /* [in] */ BOOL Recommend); + + DECLSPEC_XFGVIRT(IFhConfigMgr, QueryProtectionStatus) + HRESULT ( STDMETHODCALLTYPE *QueryProtectionStatus )( + __RPC__in IFhConfigMgr * This, + /* [out] */ __RPC__out DWORD *ProtectionState, + /* [out] */ __RPC__deref_out_opt BSTR *ProtectedUntilTime); + + END_INTERFACE + } IFhConfigMgrVtbl; + + interface IFhConfigMgr + { + CONST_VTBL struct IFhConfigMgrVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFhConfigMgr_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFhConfigMgr_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFhConfigMgr_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFhConfigMgr_LoadConfiguration(This) \ + ( (This)->lpVtbl -> LoadConfiguration(This) ) + +#define IFhConfigMgr_CreateDefaultConfiguration(This,OverwriteIfExists) \ + ( (This)->lpVtbl -> CreateDefaultConfiguration(This,OverwriteIfExists) ) + +#define IFhConfigMgr_SaveConfiguration(This) \ + ( (This)->lpVtbl -> SaveConfiguration(This) ) + +#define IFhConfigMgr_AddRemoveExcludeRule(This,Add,Category,Item) \ + ( (This)->lpVtbl -> AddRemoveExcludeRule(This,Add,Category,Item) ) + +#define IFhConfigMgr_GetIncludeExcludeRules(This,Include,Category,Iterator) \ + ( (This)->lpVtbl -> GetIncludeExcludeRules(This,Include,Category,Iterator) ) + +#define IFhConfigMgr_GetLocalPolicy(This,LocalPolicyType,PolicyValue) \ + ( (This)->lpVtbl -> GetLocalPolicy(This,LocalPolicyType,PolicyValue) ) + +#define IFhConfigMgr_SetLocalPolicy(This,LocalPolicyType,PolicyValue) \ + ( (This)->lpVtbl -> SetLocalPolicy(This,LocalPolicyType,PolicyValue) ) + +#define IFhConfigMgr_GetBackupStatus(This,BackupStatus) \ + ( (This)->lpVtbl -> GetBackupStatus(This,BackupStatus) ) + +#define IFhConfigMgr_SetBackupStatus(This,BackupStatus) \ + ( (This)->lpVtbl -> SetBackupStatus(This,BackupStatus) ) + +#define IFhConfigMgr_GetDefaultTarget(This,DefaultTarget) \ + ( (This)->lpVtbl -> GetDefaultTarget(This,DefaultTarget) ) + +#define IFhConfigMgr_ValidateTarget(This,TargetUrl,ValidationResult) \ + ( (This)->lpVtbl -> ValidateTarget(This,TargetUrl,ValidationResult) ) + +#define IFhConfigMgr_ProvisionAndSetNewTarget(This,TargetUrl,TargetName) \ + ( (This)->lpVtbl -> ProvisionAndSetNewTarget(This,TargetUrl,TargetName) ) + +#define IFhConfigMgr_ChangeDefaultTargetRecommendation(This,Recommend) \ + ( (This)->lpVtbl -> ChangeDefaultTargetRecommendation(This,Recommend) ) + +#define IFhConfigMgr_QueryProtectionStatus(This,ProtectionState,ProtectedUntilTime) \ + ( (This)->lpVtbl -> QueryProtectionStatus(This,ProtectionState,ProtectedUntilTime) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFhConfigMgr_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dpcfg_0000_0003 */ +/* [local] */ + +#pragma deprecated(IFhReassociation) + + +extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0003_v0_0_s_ifspec; + +#ifndef __IFhReassociation_INTERFACE_DEFINED__ +#define __IFhReassociation_INTERFACE_DEFINED__ + +/* interface IFhReassociation */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IFhReassociation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6544A28A-F68D-47ac-91EF-16B2B36AA3EE") + IFhReassociation : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ValidateTarget( + /* [in] */ __RPC__in BSTR TargetUrl, + /* [out] */ __RPC__out PFH_DEVICE_VALIDATION_RESULT ValidationResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE ScanTargetForConfigurations( + /* [in] */ __RPC__in BSTR TargetUrl) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConfigurationDetails( + /* [in] */ DWORD Index, + /* [out] */ __RPC__deref_out_opt BSTR *UserName, + /* [out] */ __RPC__deref_out_opt BSTR *PcName, + /* [out] */ __RPC__out FILETIME *BackupTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE SelectConfiguration( + /* [in] */ DWORD Index) = 0; + + virtual HRESULT STDMETHODCALLTYPE PerformReassociation( + /* [in] */ BOOL OverwriteIfExists) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFhReassociationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFhReassociation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFhReassociation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFhReassociation * This); + + DECLSPEC_XFGVIRT(IFhReassociation, ValidateTarget) + HRESULT ( STDMETHODCALLTYPE *ValidateTarget )( + __RPC__in IFhReassociation * This, + /* [in] */ __RPC__in BSTR TargetUrl, + /* [out] */ __RPC__out PFH_DEVICE_VALIDATION_RESULT ValidationResult); + + DECLSPEC_XFGVIRT(IFhReassociation, ScanTargetForConfigurations) + HRESULT ( STDMETHODCALLTYPE *ScanTargetForConfigurations )( + __RPC__in IFhReassociation * This, + /* [in] */ __RPC__in BSTR TargetUrl); + + DECLSPEC_XFGVIRT(IFhReassociation, GetConfigurationDetails) + HRESULT ( STDMETHODCALLTYPE *GetConfigurationDetails )( + __RPC__in IFhReassociation * This, + /* [in] */ DWORD Index, + /* [out] */ __RPC__deref_out_opt BSTR *UserName, + /* [out] */ __RPC__deref_out_opt BSTR *PcName, + /* [out] */ __RPC__out FILETIME *BackupTime); + + DECLSPEC_XFGVIRT(IFhReassociation, SelectConfiguration) + HRESULT ( STDMETHODCALLTYPE *SelectConfiguration )( + __RPC__in IFhReassociation * This, + /* [in] */ DWORD Index); + + DECLSPEC_XFGVIRT(IFhReassociation, PerformReassociation) + HRESULT ( STDMETHODCALLTYPE *PerformReassociation )( + __RPC__in IFhReassociation * This, + /* [in] */ BOOL OverwriteIfExists); + + END_INTERFACE + } IFhReassociationVtbl; + + interface IFhReassociation + { + CONST_VTBL struct IFhReassociationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFhReassociation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFhReassociation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFhReassociation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFhReassociation_ValidateTarget(This,TargetUrl,ValidationResult) \ + ( (This)->lpVtbl -> ValidateTarget(This,TargetUrl,ValidationResult) ) + +#define IFhReassociation_ScanTargetForConfigurations(This,TargetUrl) \ + ( (This)->lpVtbl -> ScanTargetForConfigurations(This,TargetUrl) ) + +#define IFhReassociation_GetConfigurationDetails(This,Index,UserName,PcName,BackupTime) \ + ( (This)->lpVtbl -> GetConfigurationDetails(This,Index,UserName,PcName,BackupTime) ) + +#define IFhReassociation_SelectConfiguration(This,Index) \ + ( (This)->lpVtbl -> SelectConfiguration(This,Index) ) + +#define IFhReassociation_PerformReassociation(This,OverwriteIfExists) \ + ( (This)->lpVtbl -> PerformReassociation(This,OverwriteIfExists) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFhReassociation_INTERFACE_DEFINED__ */ + + + +#ifndef __FhConfigMgrLib_LIBRARY_DEFINED__ +#define __FhConfigMgrLib_LIBRARY_DEFINED__ + +/* library FhConfigMgrLib */ +/* [version][uuid] */ + + +EXTERN_C const IID LIBID_FhConfigMgrLib; + +EXTERN_C const CLSID CLSID_FhConfigMgr; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ED43BB3C-09E9-498a-9DF6-2177244C6DB4") +FhConfigMgr; +#endif + +EXTERN_C const CLSID CLSID_FhReassociation; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4D728E35-16FA-4320-9E8B-BFD7100A8846") +FhReassociation; +#endif +#endif /* __FhConfigMgrLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_dpcfg_0000_0005 */ +/* [local] */ + +#endif // if NTDDI_VERSION >= NTDDI_WIN8 +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dpcfg_0000_0005_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhCfg.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhCfg.idl new file mode 100644 index 0000000000000000000000000000000000000000..5a38677f1732784acfdb26185b2a77762e67799b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhCfg.idl @@ -0,0 +1,238 @@ +cpp_quote("/*******************************************************************************/" ) +cpp_quote("/* */" ) +cpp_quote("/* Copyright (C) 2010 Microsoft Corporation. All rights reserved. */" ) +cpp_quote("/* */" ) +cpp_quote("/* IDL source for File History Configuration Manager COM API. */" ) +cpp_quote("/* */" ) +cpp_quote("/*******************************************************************************/" ) + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "ocidl.idl"; +import "oaidl.idl"; +import "shobjidl_core.idl"; + +cpp_quote("#if NTDDI_VERSION >= NTDDI_WIN8") + +typedef enum _FH_TARGET_PROPERTY_TYPE { + FH_TARGET_NAME, + FH_TARGET_URL, + FH_TARGET_DRIVE_TYPE, + MAX_TARGET_PROPERTY +} FH_TARGET_PROPERTY_TYPE, *PFH_TARGET_PROPERTY_TYPE; + +typedef enum _FH_TARGET_DRIVE_TYPES { + FH_DRIVE_UNKNOWN = 0, + FH_DRIVE_REMOVABLE = 2, + FH_DRIVE_FIXED = 3, + FH_DRIVE_REMOTE = 4 +} FH_TARGET_DRIVE_TYPES; + +cpp_quote("#pragma deprecated(IFhTarget)") +[ + object, + uuid(D87965FD-2BAD-4657-BD3B-9567EB300CED) +] +interface IFhTarget : IUnknown +{ + HRESULT GetStringProperty( + [in] FH_TARGET_PROPERTY_TYPE PropertyType, + [out] BSTR* PropertyValue + ); + + HRESULT GetNumericalProperty( + [in] FH_TARGET_PROPERTY_TYPE PropertyType, + [out] ULONGLONG* PropertyValue + ); +}; + +cpp_quote("#pragma deprecated(IFhScopeIterator)") +[ + object, + uuid(3197ABCE-532A-44C6-8615-F3666566A720) +] +interface IFhScopeIterator : IUnknown +{ + HRESULT MoveToNextItem(void); + + HRESULT GetItem( + [out] BSTR* Item + ); +}; + +typedef enum _FH_PROTECTED_ITEM_CATEGORY { + FH_FOLDER, + FH_LIBRARY, + MAX_PROTECTED_ITEM_CATEGORY +} FH_PROTECTED_ITEM_CATEGORY, *PFH_PROTECTED_ITEM_CATEGORY; + +typedef enum _FH_LOCAL_POLICY_TYPE { + FH_FREQUENCY, + FH_RETENTION_TYPE, + FH_RETENTION_AGE, + MAX_LOCAL_POLICY +} FH_LOCAL_POLICY_TYPE, *PFH_LOCAL_POLICY_TYPE; + +typedef enum _FH_RETENTION_TYPES { + FH_RETENTION_DISABLED, + FH_RETENTION_UNLIMITED, + FH_RETENTION_AGE_BASED, + MAX_RETENTION_TYPE +} FH_RETENTION_TYPES; + +typedef enum _FH_BACKUP_STATUS { + FH_STATUS_DISABLED, + FH_STATUS_DISABLED_BY_GP, + FH_STATUS_ENABLED, + FH_STATUS_REHYDRATING, + MAX_BACKUP_STATUS +} FH_BACKUP_STATUS; + +typedef enum _FH_DEVICE_VALIDATION_RESULT { + FH_ACCESS_DENIED, + FH_INVALID_DRIVE_TYPE, + FH_READ_ONLY_PERMISSION, + FH_CURRENT_DEFAULT, + FH_NAMESPACE_EXISTS, + FH_TARGET_PART_OF_LIBRARY, + FH_VALID_TARGET, + MAX_VALIDATION_RESULT +} FH_DEVICE_VALIDATION_RESULT, *PFH_DEVICE_VALIDATION_RESULT; + +cpp_quote("#pragma deprecated(IFhConfigMgr)") +[ + object, + uuid(6A5FEA5B-BF8F-4EE5-B8C3-44D8A0D7331C), + pointer_default(unique) +] +interface IFhConfigMgr : IUnknown +{ + HRESULT LoadConfiguration(void); + + HRESULT CreateDefaultConfiguration( + [in] BOOL OverwriteIfExists + ); + + HRESULT SaveConfiguration(void); + + HRESULT AddRemoveExcludeRule( + [in] BOOL Add, + [in] FH_PROTECTED_ITEM_CATEGORY Category, + [in] BSTR Item + ); + + HRESULT GetIncludeExcludeRules( + [in] BOOL Include, + [in] FH_PROTECTED_ITEM_CATEGORY Category, + [out] IFhScopeIterator** Iterator + ); + + HRESULT GetLocalPolicy( + [in] FH_LOCAL_POLICY_TYPE LocalPolicyType, + [out] ULONGLONG* PolicyValue + ); + + HRESULT SetLocalPolicy( + [in] FH_LOCAL_POLICY_TYPE LocalPolicyType, + [in] ULONGLONG PolicyValue + ); + + HRESULT GetBackupStatus( + [out] FH_BACKUP_STATUS* BackupStatus + ); + + HRESULT SetBackupStatus( + [in] FH_BACKUP_STATUS BackupStatus + ); + + HRESULT GetDefaultTarget( + [out] IFhTarget** DefaultTarget + ); + + HRESULT ValidateTarget( + [in] BSTR TargetUrl, + [out] PFH_DEVICE_VALIDATION_RESULT ValidationResult + ); + + HRESULT ProvisionAndSetNewTarget( + [in] BSTR TargetUrl, + [in] BSTR TargetName + ); + + HRESULT ChangeDefaultTargetRecommendation( + [in] BOOL Recommend + ); + + HRESULT QueryProtectionStatus( + [out] DWORD* ProtectionState, + [out] BSTR* ProtectedUntilTime + ); +}; + +cpp_quote("#pragma deprecated(IFhReassociation)") +[ + object, + uuid(6544A28A-F68D-47ac-91EF-16B2B36AA3EE), + pointer_default(unique) +] +interface IFhReassociation : IUnknown +{ + HRESULT ValidateTarget( + [in] BSTR TargetUrl, + [out] PFH_DEVICE_VALIDATION_RESULT ValidationResult + ); + + HRESULT ScanTargetForConfigurations( + [in] BSTR TargetUrl + ); + + HRESULT GetConfigurationDetails( + [in] DWORD Index, + [out] BSTR* UserName, + [out] BSTR* PcName, + [out] FILETIME* BackupTime + ); + + HRESULT SelectConfiguration( + [in] DWORD Index + ); + + HRESULT PerformReassociation( + [in] BOOL OverwriteIfExists + ); +}; + +[ + uuid(A99C8501-F546-4871-96FD-6B0D9427A19B), + version(1.0) +] +library FhConfigMgrLib +{ + importlib("stdole2.tlb"); + + [ + uuid(ED43BB3C-09E9-498a-9DF6-2177244C6DB4) + ] + coclass FhConfigMgr + { + [default] interface IFhConfigMgr; + }; + + [ + uuid(4D728E35-16FA-4320-9E8B-BFD7100A8846) + ] + coclass FhReassociation + { + [default] interface IFhReassociation; + }; +}; + +cpp_quote("#endif // if NTDDI_VERSION >= NTDDI_WIN8") + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhErrors.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhErrors.h new file mode 100644 index 0000000000000000000000000000000000000000..e43448481477bfa7c6fc608b5c3ac349a51f4af4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhErrors.h @@ -0,0 +1,201 @@ +/*++ + +Microsoft Windows - File History +Copyright (c) 2010 Microsoft Corporation. All Rights Reserved. + +Module Name: + + FhErrors.h + +Abstract: + + This module contains the definitions of the error codes + returned by File History APIs and components. + +Environment: + + User mode. + +--*/ + +#ifndef _FHERRORS_ +#define _FHERRORS_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +#if NTDDI_VERSION >= NTDDI_WIN8 + + +/////////////////////////////////////////////////////////////////////// +// +// Error codes for the Configuration Manager. (0x0300 - 0x03ff) +// +/////////////////////////////////////////////////////////////////////// + +// +// The Config File is corrupted and hence invalid +// + +#define FHCFG_E_CORRUPT_CONFIG_FILE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0300) + +// +// The Config File not found +// + +#define FHCFG_E_CONFIG_FILE_NOT_FOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0301) + +// +// The Config File already exists +// + +#define FHCFG_E_CONFIG_ALREADY_EXISTS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0302) + +// +// A valid configuration has not been loaded +// + +#define FHCFG_E_NO_VALID_CONFIGURATION_LOADED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0303) + +// +// Target is not connected +// + +#define FHCFG_E_TARGET_NOT_CONNECTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0304) + +// +// Configuration has been loaded previously +// + +#define FHCFG_E_CONFIGURATION_PREVIOUSLY_LOADED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0305) + +// +// Default target verification failed +// + +#define FHCFG_E_TARGET_VERIFICATION_FAILED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0306) + +// +// Target is not configured +// + +#define FHCFG_E_TARGET_NOT_CONFIGURED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0307) + +// +// Target doesn't have enough free space +// + +#define FHCFG_E_TARGET_NOT_ENOUGH_FREE_SPACE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0308) + +// +// Target cannot be used for File History +// + +#define FHCFG_E_TARGET_CANNOT_BE_USED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0309) + +// +// Rehydration can't be performed in the current configuration state +// + +#define FHCFG_E_INVALID_REHYDRATION_STATE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x30A) + +// +// Changing target recommendation is not allowed +// + +#define FHCFG_E_RECOMMENDATION_CHANGE_NOT_ALLOWED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0310) + +// +// The target was rehydrated on another PC. +// + +#define FHCFG_E_TARGET_REHYDRATED_ELSEWHERE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0X0311) + +// +// The legacy backup target was not supported by FileHistory +// + +#define FHCFG_E_LEGACY_TARGET_UNSUPPORTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0X0312) + +// +// The validation result of the legacy backup target was not supported +// + +#define FHCFG_E_LEGACY_TARGET_VALIDATION_UNSUPPORTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0X0313) + +// +// The legacy backup user was fully excluded from backups +// + +#define FHCFG_E_LEGACY_BACKUP_USER_EXCLUDED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0X0314) + +// +// The legacy backup was not found +// + +#define FHCFG_E_LEGACY_BACKUP_NOT_FOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0X0315) + + +/////////////////////////////////////////////////////////////////////// +// +// Error codes for the File History Service. (0x0600 - 0x06ff) +// +/////////////////////////////////////////////////////////////////////// + +// +// Backups are blocked for the given configuration +// + +#define FHSVC_E_BACKUP_BLOCKED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0600) + +// +// File History is not configured for the user +// + +#define FHSVC_E_NOT_CONFIGURED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0601) + +// +// The specified configuration is disabled by the user +// + +#define FHSVC_E_CONFIG_DISABLED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0602) + +// +// The specified configuration is disabled via Group Policy +// + +#define FHSVC_E_CONFIG_DISABLED_GP MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0603) + +// +// There is a fatal error with the specified configuration, backup cannot be even started +// + +#define FHSVC_E_FATAL_CONFIG_ERROR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0604) + +// +// The specified configuration is undergoing rehydration +// + +#define FHSVC_E_CONFIG_REHYDRATING MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0605) + +#endif // NTDDI_VERSION >= NTDDI_WIN8 + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _FHERRORS_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhStatus.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhStatus.h new file mode 100644 index 0000000000000000000000000000000000000000..2875c5db2924f8de8795385c2375292688ad37b2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhStatus.h @@ -0,0 +1,78 @@ +/*++ + +Microsoft Windows - File History +Copyright (c) 2010 Microsoft Corporation. All Rights Reserved. + +Module Name: + + FhStatus.h + +Abstract: + + This module contains the definitions of codes reflecting the + File History status of a user account. + +Environment: + + User mode. + +--*/ + +#ifndef _FHSTATUS_ +#define _FHSTATUS_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +#if NTDDI_VERSION >= NTDDI_WIN8 + + +#define FH_STATE_NOT_TRACKED 0x00 +#define FH_STATE_OFF 0x01 +#define FH_STATE_DISABLED_BY_GP 0x02 +#define FH_STATE_FATAL_CONFIG_ERROR 0x03 +#define FH_STATE_MIGRATING 0x04 +#define FH_STATE_REHYDRATING 0x05 + + +#define FH_STATE_TARGET_FS_LIMITATION 0x0D +#define FH_STATE_TARGET_ACCESS_DENIED 0x0E +#define FH_STATE_TARGET_VOLUME_DIRTY 0x0F +#define FH_STATE_TARGET_FULL_RETENTION_MAX 0x10 +#define FH_STATE_TARGET_FULL 0x11 +#define FH_STATE_STAGING_FULL 0x12 +#define FH_STATE_TARGET_LOW_SPACE_RETENTION_MAX 0x13 +#define FH_STATE_TARGET_LOW_SPACE 0x14 +#define FH_STATE_TARGET_ABSENT 0x15 +#define FH_STATE_TOO_MUCH_BEHIND 0xF0 +#define FH_STATE_NO_ERROR 0xFF + +// Indicates that File History is in a depreciated state +// where backup is not supported. This is only applicable +// if the user has an existing backup configured. +#define FH_STATE_BACKUP_NOT_SUPPORTED 0x810 + +#define FH_STATE_RUNNING 0x100 + + +#endif // NTDDI_VERSION >= NTDDI_WIN8 + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _FHSTATUS_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhSvcCtl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhSvcCtl.h new file mode 100644 index 0000000000000000000000000000000000000000..9c81aab7216f82aea8a28e7a7504de09549f1bed --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FhSvcCtl.h @@ -0,0 +1,115 @@ +/*++ + +Microsoft Windows - File History +Copyright (c) Microsoft Corporation. All Rights Reserved. + +Module Name: + + FhSvcCtl.h + +Abstract: + + This module contains the definitions of the API provided + by the File History Service Control Library. + +Environment: + + User mode. + +--*/ + +#ifndef _FHSVCCTL_ +#define _FHSVCCTL_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if NTDDI_VERSION >= NTDDI_WIN8 + + +// Backup stop reason +// This will be used for telemetry purposes +typedef enum { + BackupInvalidStopReason = 0, + BackupLimitUserBusyMachineOnAC = 1, // Backup quota reached for user busy and machine on AC condition (100 MB) + BackupLimitUserIdleMachineOnDC = 2, // Backup quota reached for user idle and machine on DC condition (75 MB) + BackupLimitUserBusyMachineOnDC = 3, // Backup quota reached for user busy and machine on DC condition (50 MB) + BackupCancelled = 4 // Backup cancelled by the user initiated action +} FhBackupStopReason; + +DECLARE_HANDLE (FH_SERVICE_PIPE_HANDLE); + +__declspec(deprecated("FhServiceOpenPipe is deprecated and might not work on all platforms. For more info, see MSDN.")) +HRESULT +WINAPI +FhServiceOpenPipe( + _In_ BOOL StartServiceIfStopped, + _Out_ FH_SERVICE_PIPE_HANDLE *Pipe + ); + +__declspec(deprecated("FhServiceClosePipe is deprecated and might not work on all platforms. For more info, see MSDN.")) +HRESULT +WINAPI +FhServiceClosePipe( + _In_ FH_SERVICE_PIPE_HANDLE Pipe + ); + +__declspec(deprecated("FhServiceStartBackup is deprecated and might not work on all platforms. For more info, see MSDN.")) +HRESULT +WINAPI +FhServiceStartBackup( + _In_ FH_SERVICE_PIPE_HANDLE Pipe, + _In_ BOOL LowPriorityIo + ); + +__declspec(deprecated("FhServiceStopBackup is deprecated and might not work on all platforms. For more info, see MSDN.")) +HRESULT +WINAPI +FhServiceStopBackup( + _In_ FH_SERVICE_PIPE_HANDLE Pipe, + _In_ BOOL StopTracking + ); + +__declspec(deprecated("FhServiceReloadConfiguration is deprecated and might not work on all platforms. For more info, see MSDN.")) +HRESULT +WINAPI +FhServiceReloadConfiguration( + _In_ FH_SERVICE_PIPE_HANDLE Pipe + ); + +__declspec(deprecated("FhServiceBlockBackup is deprecated and might not work on all platforms. For more info, see MSDN.")) +HRESULT +WINAPI +FhServiceBlockBackup( + _In_ FH_SERVICE_PIPE_HANDLE Pipe + ); + +__declspec(deprecated("FhServiceUnblockBackup is deprecated and might not work on all platforms. For more info, see MSDN.")) +HRESULT +WINAPI +FhServiceUnblockBackup( + _In_ FH_SERVICE_PIPE_HANDLE Pipe + ); + + +#endif // NTDDI_VERSION >= NTDDI_WIN8 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _FHSVCCTL_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FileHC.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FileHC.h new file mode 100644 index 0000000000000000000000000000000000000000..d1db360332be797fd4f386fe0fd2e1083d9a7e3c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FileHC.h @@ -0,0 +1,904 @@ +/*++ + + Copyright (c) 2002 Microsoft Corporation + + Module Name: + + FILEHC.H + + Abstract: + + This file defines the public interfaces for issuing async + Reads/Writes to a file using the fcache wrapper library. + +--*/ + +#ifndef _FILEHC_H_ +#define _FILEHC_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +struct FIO_CONTEXT; +struct FH_OVERLAPPED; + +typedef VOID +(*PFN_IO_COMPLETION)( + IN struct FIO_CONTEXT* pContext, + IN struct FH_OVERLAPPED* lpo, + IN DWORD cb, + IN DWORD dwCompletionStatus + ); + + + +struct FH_OVERLAPPED { +/*++ + + This structure defines the extended OVERLAPPED structure + used by the File IO layer implemented in this module. + + The first 5 elements of this structure are identical to + NT's OVERLAPPED structure and have the exact same semantics. + + The final additional parameter is a pointer to a + function that will be called to complete the IO. + +--*/ + UINT_PTR Internal ; + UINT_PTR InternalHigh ; + DWORD Offset ; + DWORD OffsetHigh ; + HANDLE hEvent ; + PFN_IO_COMPLETION pfnCompletion ; + UINT_PTR Reserved1 ; + UINT_PTR Reserved2 ; + UINT_PTR Reserved3 ; + UINT_PTR Reserved4 ; +} ; + +typedef struct FH_OVERLAPPED* PFH_OVERLAPPED ; + +struct FIO_CONTEXT { +/*++ + + This structure defines the context object + that is used to represent file handles. + +--*/ + // + // Temporary hack - mailmsg object assumes it can put a NULL in us ! + // + DWORD m_dwTempHack ; + + // + // The context signature ! + // + DWORD m_dwSignature ; + + // + // The users file handle ! + // + HANDLE m_hFile ; + + // + // The offset to back fill Lines header - nntp aware only + // + DWORD m_dwLinesOffset; + + // + // Header length - nntp aware only + // + DWORD m_dwHeaderLength; +} ; + +typedef struct FIO_CONTEXT* PFIO_CONTEXT ; + + +#ifdef _FILEHC_IMPLEMENTATION_ +#define FILEHC_EXPORT __declspec( dllexport ) +#else +#define FILEHC_EXPORT __declspec( dllimport ) +#endif + + +// +// Initialize the DLL for Async IO - +// This is a counting initialize - for each call to FIOInitialize() +// there should be a matching call to FIOTerminate +// +FILEHC_EXPORT +BOOL __stdcall +FIOInitialize( + IN DWORD dwFlags + ); + +// +// Terminate the DLL's support for Async IO ! +// +FILEHC_EXPORT +BOOL __stdcall +FIOTerminate( + VOID + ); + +// +// Do an async read against the File ! +// +FILEHC_EXPORT +BOOL __stdcall +FIOReadFile( + IN PFIO_CONTEXT pContext, + _In_reads_bytes_(BytesToRead) IN LPVOID lpBuffer, + IN DWORD BytesToRead, + _Inout_ IN struct FH_OVERLAPPED * lpo + ); + +// +// Do an async read against the file - pass extra args +// so that if the FIO_CONTEXT is doing dot stuffing for the user +// it can do so efficiently ! +// +FILEHC_EXPORT +BOOL __stdcall +FIOReadFileEx( + IN PFIO_CONTEXT pContext, + _In_reads_bytes_(BytesToRead) IN LPVOID lpBuffer, + IN DWORD BytesToRead, + IN DWORD BytesAvailable, // must be >= BytesToWrite - number of bytes I can mess with. + _Inout_ IN struct FH_OVERLAPPED * lpo, + IN BOOL fFinalWrite, // Is this the final write ? + IN BOOL fIncludeTerminator // if TRUE contains CRLF.CRLF terminator which shouldn't be stuffed + ); + + +// +// Do an async write against the file ! +// +FILEHC_EXPORT +BOOL __stdcall +FIOWriteFile( + IN PFIO_CONTEXT pContext, + _Inout_updates_bytes_(BytesToWrite) IN LPCVOID lpBuffer, + IN DWORD BytesToWrite, + _Inout_ IN struct FH_OVERLAPPED * lpo + ); + +// +// Do an async write against the file - pass extra args +// so that if the FIO_CONTEXT is doing dot stuffing for the user +// it can do so efficiently ! +// +FILEHC_EXPORT +BOOL __stdcall +FIOWriteFileEx( + IN PFIO_CONTEXT pContext, + _Inout_updates_bytes_(BytesAvailable) IN LPVOID lpBuffer, + IN DWORD BytesToWrite, + IN DWORD BytesAvailable, // must be >= BytesToWrite - number of bytes I can mess with. + _Inout_ IN struct FH_OVERLAPPED* lpo, + IN BOOL fFinalWrite, // Is this the final write ? + IN BOOL fIncludeTerminator // if TRUE contains CRLF.CRLF terminator which shouldn't be stuffed + ) ; + +// +// Callback functions which create things in the cache ! +// +// NOTE: this is equivalent to FCACHE_RICHCREATE_CALLBACK where +// +// pfDidWeScanIt - returns FALSE +// pfIsStuffed - return FALSE +// pfStoredWithDots - return FALSE +// +typedef +HANDLE +(__stdcall *FCACHE_CREATE_CALLBACK) ( + IN LPSTR lpstrName, + IN LPVOID lpvData, + OUT DWORD* cbFileSize, + OUT DWORD* cbFileSizeHigh + ) ; + + +// +// Callback functions which create things in the cache ! +// +// This function will be called by CacheRichCreateFile(). +// +// lpstrName - the name of the file +// lpvData - User provided data, provided to CacheRichCreateFile +// cbFileSize - The function should return the size of the file through this +// cbFileSizeHigh - place to return the High DWORD of the file size +// pfDidWeScanIt - if THIS is true then at some point the created file has been +// scanned for DOTs appearing at the beginning of lines +// pfIsStuffed - This is only meaningfull if pfDidWeScanIt==TRUE, in which case +// if this is TRUE this indicates that there are DOTs at the beginning of lines +// pfStoredWithDots - If this is TRUE then it indicates that any DOTs that appear +// at the beginning of lines are stored with an extra dot as required in NNTP, +// SMTP and POP3 protocols. if this is FALSE then the message is stored without +// DOT stuffing. +// +typedef +HANDLE +(__stdcall *FCACHE_RICHCREATE_CALLBACK) ( + IN LPSTR lpstrName, + IN LPVOID lpvData, + OUT DWORD* cbFileSize, + OUT DWORD* cbFileSizeHigh, + OUT BOOL* pfDidWeScanIt, + OUT BOOL* pfIsStuffed, + OUT BOOL* pfStoredWithDots, + OUT BOOL* pfStoredWithTerminatingDot + ) ; + +// +// Initialize the File Handle Cache - +// +// NOTE : this will automatically initialize the DLL for async +// IO as well ! +// +FILEHC_EXPORT +BOOL __stdcall +InitializeCache() ; + +// +// Terminate the cache ! +// +// NOTE : this will terminate the DLL for async IO as well ! +// +FILEHC_EXPORT +BOOL __stdcall +TerminateCache() ; + +// +// Associate a file with an async context ! +// +FILEHC_EXPORT +PFIO_CONTEXT __stdcall +AssociateFile( _In_ HANDLE hFile ) ; + +// +// This allows the user to specify whether file stores content with extra DOTS +// added for RFC 822 protocols (i.e. NNTP and SMTP DATA commands). +// +// NOTE: AssociateFile() is the same as AssociateFileEx( hFile, FALSE ) ; +// +// hFile - The file that contains message content, or in which we will write message content +// fStoreWithDots - if TRUE then each period or DOT in the file which starts a line +// but is NOT part of the terminating CRLF.CRLF will be stored with an extra dot +// adjacent to it. This is the on the wire format for NNTP for instance. +// +FILEHC_EXPORT +PFIO_CONTEXT __stdcall +AssociateFileEx( _In_ HANDLE hFile, + BOOL fStoreWithDots, + BOOL fStoredWithTerminatingDot + ) ; + +// +// Add a reference to a context - +// +// Each call to AddRefContext() must be matched by a corresponding +// call to ReleaseContext(). Both AssociateFile and CacheCreateFile() +// also add a single reference which must be matched by a call to ReleaseContext(). +// +FILEHC_EXPORT +void __stdcall +AddRefContext( PFIO_CONTEXT ) ; + +// +// Release a Context ! +// +// FIO_CONTEXT's are reference counted - the user must call +// this for each successfull call to CacheCreateFile(), and +// each call to InsertFile() where fKeepReference is TRUE +// +FILEHC_EXPORT +void __stdcall +ReleaseContext( PFIO_CONTEXT ) ; + +// +// Close a handle associated with a non-cached FIO_CONTEXT +// +// This is used to Close the file handle within a context. +// This only succeeds if the FIO_CONTEXT is not cached ! +// +FILEHC_EXPORT +BOOL __stdcall +CloseNonCachedFile( PFIO_CONTEXT ) ; + +// +// Create a file in the cache, or find an existing one ! +// +// If the file is not in the cache, the cache will call +// pfnCallBack with lpv to do the actual work of calling +// CreateFile(). +// +FILEHC_EXPORT +struct FIO_CONTEXT* __stdcall +CacheCreateFile( _In_ IN LPSTR lpstrName, + IN FCACHE_CREATE_CALLBACK pfnCallBack, + _In_ IN LPVOID lpv, + IN BOOL fAsyncContext + ) ; + +// +// Create a file in the cache or find an existing one, +// if we create the file we can add properties onto it in +// the cache ! +// +FILEHC_EXPORT +struct FIO_CONTEXT* __stdcall +CacheRichCreateFile( _In_ IN LPSTR lpstrName, + IN FCACHE_RICHCREATE_CALLBACK pfnCallBack, + IN LPVOID lpv, + IN BOOL fAsyncContext + ) ; + +// +// This function allows a user to remove all files with the specified +// Name from the cache. if fAllPrefixes is TRUE, we will remove all files +// where the Name matches the beginning of the path ! +// If fAllPrefixes is FALSE then we will remove only the one file which +// exactly matches lpstrName ! +// +FILEHC_EXPORT +void __stdcall +CacheRemoveFiles( _In_ IN LPSTR lpstrName, + IN BOOL fAllPrefixes + ) ; +// +// Insert the file into the cache ! +// +// This function will add the file handle in the FIO_CONTEXT +// to the cache. All searches by lpstrName will find this +// item untill it expires from the cache. +// +// If fKeepReference is TRUE then the user must make a call to +// ReleaseContext() for the inserted FIO_CONTEXT ! +// +FILEHC_EXPORT +BOOL __stdcall +InsertFile( _In_ IN LPSTR lpstrName, + IN struct FIO_CONTEXT* pContext, + IN BOOL fKeepReference + ) ; + +// +// Report the file size that we've cached with the handle +// +FILEHC_EXPORT +DWORD __stdcall +GetFileSizeFromContext( IN struct FIO_CONTEXT* pContext, + _Out_ OUT DWORD* pcbFileSizeHigh + ) ; + +//---------------------------------------------------------------------- +// NAME CACHE NAME CACHE NAME CACHE - +// +// Name Cache API's +// +// + +// +// This is the function pointer provided by clients to compare +// keys. This must be provided on all calls. +// +// The function has memcmp() semantics, i.e. it must order the keys +// consistently, and return <0 if key1 is smaller then key2, ==0 if the +// keys match and >0 if key1 is greater then key2. +// +typedef +int +(__stdcall *CACHE_KEY_COMPARE)( IN DWORD cbKey1, + IN LPBYTE lpbKey1, + IN DWORD cbKey2, + IN LPBYTE lpbKey2 + ) ; + +// +// This is the function provided by clients to compute a hash +// value on Keys - NOTE: The Cache will provide a hash function +// IF the user does not, however the internally provided hash +// function is best only for things that appear to be regular strings. +// +typedef +DWORD +(__stdcall *CACHE_KEY_HASH)( IN LPBYTE lpbKey, + IN DWORD cbKey + ) ; + +// +// This is the generic callback function that is provided to the +// cache to help examine items within the cache. +// The BOOL return value is meaningfull to the Cache API's only +// on the following calls : +// +// +typedef +BOOL +(__stdcall *CACHE_READ_CALLBACK)( IN DWORD cb, + IN LPBYTE lpb, + IN LPVOID lpvContext + ) ; + +// +// This is a callback that is called whenever we destroy an entry in +// the name cache - this is called once for both key and data components, +// and gives the client a chance to track any relationships +// +// NOTE : if the client does not associate +// data with the name, the function will only be called for the Key data. +// +typedef +void +(__stdcall *CACHE_DESTROY_CALLBACK)( IN DWORD cb, + IN LPBYTE lpb + ) ; + +// +// This is a callback this is called whenever we evaluate a security descriptor. +// If it is not provided we will call the standard NT AccessCheck() call ! +// +// The function has the same signature as AccessCheck, however there are arguments +// we don't use - PrivilegeSet will always be NULL and PrivilegeSetLength will always be 0 ! +// +typedef +BOOL +(WINAPI *CACHE_ACCESS_CHECK)( IN PSECURITY_DESCRIPTOR pSecurityDescriptor, + IN HANDLE hClientToken, + IN DWORD dwDesiredAccess, + IN PGENERIC_MAPPING GenericMapping, + IN PRIVILEGE_SET* PrivilegeSet, + IN LPDWORD PrivilegeSetLength, + IN LPDWORD GrantedAccess, + IN LPBOOL AccessStatus + ) ; + + +// +// This is the externally exposed structure representing a Name Cache - +// it doesn't contain any fields usefull for a client, but must be passed +// back into all of the name cache API's +// +struct NAME_CACHE_CONTEXT { + // + // Signature DWORD ! - user must not touch this ! + // + DWORD m_dwSignature ; +} ; + +typedef struct NAME_CACHE_CONTEXT* PNAME_CACHE_CONTEXT ; + +// +// API's for creating/manging NAME CACHE's +// NOTE : Name Cache's are reference counted, and if this +// function is called twice with the same name we will +// Add a reference to an existing Name Cache. +// +FILEHC_EXPORT +PNAME_CACHE_CONTEXT __stdcall +FindOrCreateNameCache( + // + // Must not be NULL ! - this is CASE SENSITVE ! + // + _In_ LPSTR lpstrName, + // + // Must not be NULL ! + // + _In_ CACHE_KEY_COMPARE pfnKeyCompare, + // + // This may be NULL, in which case the cache will provide one ! + // + CACHE_KEY_HASH pfnKeyHash, + // + // The following two function pointers may be NULL ! + // + CACHE_DESTROY_CALLBACK pfnKeyDestroy, + CACHE_DESTROY_CALLBACK pfnDataDestroy + ) ; + +// +// API's for releasing the NAME CACHE ! +// +// The caller must guarantee the thread safety of this call - This function must not +// be called if any other thread is simultanesouly executing within +// CacheFindContectFromName(), AssociateContextWithName(), AssociateDataWithName(), or InvalidateName() +// +FILEHC_EXPORT +long __stdcall +ReleaseNameCache( + // + // Must not be NULL ! + // + _Inout_ PNAME_CACHE_CONTEXT pNameCache + ) ; + + +// +// API's for setting options on the name cache - this can be used to change +// how Security is evaluated ! +// +FILEHC_EXPORT +BOOL __stdcall +SetNameCacheSecurityFunction( + // + // Must not be NULL ! + // + _Out_opt_ PNAME_CACHE_CONTEXT pNameCache, + // + // This is the function pointer that will be used to evaluate security - + // this may be NULL - if it is we will use the Win32 Access Check ! + // + CACHE_ACCESS_CHECK pfnAccessCheck + ) ; + +// +// Find the FIO_CONTEXT that is associated with some user name. +// +// The function returns TRUE if the Name was found in the cache. +// FALSE if the name was not found in the cache. +// +// If the function returns FALSE then the pfnCallback function will not be +// called. +// +// If the function returns TRUE, ppFIOContext may return a NULL pointer, +// if the user passed a NULL FIO_CONTEXT to AssociateContextWithName() ! +// +// +FILEHC_EXPORT +BOOL __stdcall +FindContextFromName( + // + // The name cache the client wishes to use ! + // + PNAME_CACHE_CONTEXT pNameCache, + // + // User provides arbitrary bytes for Key to the cache item - pfnKeyCompare() used + // to compare keys ! + // + _In_reads_bytes_(cbName) IN LPBYTE lpbName, + _In_ IN DWORD cbName, + // + // User provides function which is called with the key once the key comparison + // matches the key. This lets the user do some extra checking that they're getting + // what they want. + // + IN CACHE_READ_CALLBACK pfnCallback, + IN LPVOID lpvClientContext, + // + // Ask the cache to evaluate the embedded security descriptor + // if hToken is 0 then we ignore and security descriptor data + // + IN HANDLE hToken, + IN ACCESS_MASK accessMask, + // + // We have a separate mechanism for returning the FIO_CONTEXT + // from the cache. + // + OUT struct FIO_CONTEXT** ppContext + ) ; + + +// +// Find the FIO_CONTEXT that is associated with some user name. +// +// The function returns TRUE if the Name was found in the cache. +// FALSE if the name was not found in the cache. +// +// If the function returns FALSE then the pfnCallback function will not be +// called. +// +// If the function returns TRUE, ppFIOContext may return a NULL pointer, +// if the user passed a NULL FIO_CONTEXT to AssociateContextWithName() ! +// +// +FILEHC_EXPORT +BOOL __stdcall +FindSyncContextFromName( + // + // The name cache the client wishes to use ! + // + PNAME_CACHE_CONTEXT pNameCache, + // + // User provides arbitrary bytes for Key to the cache item - pfnKeyCompare() used + // to compare keys ! + // + _In_reads_bytes_(cbName) IN LPBYTE lpbName, + IN DWORD cbName, + // + // User provides function which is called with the key once the key comparison + // matches the key. This lets the user do some extra checking that they're getting + // what they want. + // + IN CACHE_READ_CALLBACK pfnCallback, + IN LPVOID lpvClientContext, + // + // Ask the cache to evaluate the embedded security descriptor + // if hToken is 0 then we ignore and security descriptor data + // + IN HANDLE hToken, + IN ACCESS_MASK accessMask, + // + // We have a separate mechanism for returning the FIO_CONTEXT + // from the cache. + // + OUT struct FIO_CONTEXT** ppContext + ) ; + + +// +// Cache Associate context with name ! +// This insert a Name into the Name cache, that will find the specified FIO_CONTEXT ! +// +// If the name is already present in the cache, this will fail with GetLastError()==ERROR_DUP_NAME ! +// +FILEHC_EXPORT +BOOL __stdcall +AssociateContextWithName( + // + // The name cache the client wishes to use ! + // + _In_ PNAME_CACHE_CONTEXT pNameCache, + // + // User provides arbitrary bytes for the Name of the cache item. + // + _In_reads_bytes_(cbName) IN LPBYTE lpbName, + IN DWORD cbName, + // + // User may provide some arbitrary data to assoicate with the name ! + // + _In_ IN LPBYTE lpbData, + IN DWORD cbData, + // + // User may provide a self relative security descriptor to + // be associated with the name ! + // + IN PGENERIC_MAPPING pGenericMapping, + _In_opt_ IN PSECURITY_DESCRIPTOR pSecurityDescriptor, + // + // User provides the FIO_CONTEXT that the name should reference + // + _In_opt_ struct FIO_CONTEXT* pContext, + // + // User specifies whether they wish to keep their reference on the FIO_CONTEXT + // + BOOL fKeepReference + ) ; + +// +// This function allows the user to remove a single name and all associated data +// from the name cache. +// +FILEHC_EXPORT +BOOL +__stdcall +InvalidateName( + // + // The name cache the client wishes to use ! + // + PNAME_CACHE_CONTEXT pNameCache, + // + // User provides arbitrary bytes for the Name of the cache item. + // + _In_reads_bytes_(cbName) IN LPBYTE lpbName, + IN DWORD cbName + ) ; + + +// +// End of Name Cache API's +//---------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------- +// DOT STUFFING API's +// + +// +// This function gets an FIO_CONTEXT with the requested state. +// We may or may not create a new FIO_CONTEXT, if we do create one we'll stick +// it into the cache so it can be used again ! +// NOTE: if we have to do work, the user has the only reference to the resulting +// FIO_CONTEXT which will go away when they call ReleaseContext() ! +// +// pContext - the original FIO_CONTEXT +// lpstrName - the file name associated with pContext +// fWantItDotStuffed - if TRUE the resulting FIO_CONTEXT should be dot stuffed ! +// fTerminatorIncluded - if this is TRUE the source FIO_CONTEXT contains a terminating +// dot that we should be carefull not to stuff ! +// +// NOTE: We may return the same FIO_CONTEXT as the caller provided - in which case +// an extra reference has been added that needs to be dropped with ReleaseContext() ! +// +// +FILEHC_EXPORT +struct FIO_CONTEXT* __stdcall +ProduceDotStuffedContext( IN struct FIO_CONTEXT* pContext, + _In_ IN LPSTR lpstrName, + IN BOOL fWantItDotStuffed // if TRUE add dots, if FALSE remove dots + ) ; + +// +// This function takes a source FIO_CONTEXT (pContextSource) and copies +// the content into pContextDestination. +// +// The user specifies whether the Destination FIO_CONTEXT should be dot stuffed +// with fWantItDotStuffed, and whether the source FIO_CONTEXT includes the +// terminating CRLF.CRLF +// +// The out parameter pfModified is TRUE if there were modifications when +// Source was copied to Destination ! +// +// The function returns TRUE if successfull, FALSE otherwise ! +// +FILEHC_EXPORT +BOOL __stdcall +ProduceDotStuffedContextInContext( + IN struct FIO_CONTEXT* pContextSource, + IN struct FIO_CONTEXT* pContextDestination, + IN BOOL fWantItDotStuffed, + _Out_opt_ OUT BOOL* pfModified + ) ; + + + + +// +// Find out whether the file has a terminating 'CRLF.CRLF' sequence ! +// +FILEHC_EXPORT +BOOL __stdcall +GetIsFileDotTerminated( IN struct FIO_CONTEXT* pContext ) ; + +// +// Set whether the file has a terminating 'CRLF.CRLF' sequence ! +// +FILEHC_EXPORT +void __stdcall +SetIsFileDotTerminated( IN struct FIO_CONTEXT* pContext, + IN BOOL fIsDotTerminated + ) ; + +// +// Enable dot stuffing properties on the write path of the file +// handle cache of this message ! +// +// if fEnable is FALSE then all dot stuffing behaviour is turned +// off. +// +// if fStripDots is TRUE the File Handle Cache will convert +// occurrences of "\r\n." to "\r\n" within your message. +// +// if fStripDots is FALSE the FileHandle Cache will convert occurrences +// of "\r\n.." to "\r\n" within your message. +// +// +FILEHC_EXPORT +BOOL __stdcall +SetDotStuffingOnWrites( IN struct FIO_CONTEXT* pContext, + // + // fEnable == FALSE means ignore fStripDots, and writes are unmodified + // + IN BOOL fEnable, + // + // fStripDots == TRUE means we remove dots that are dot stuffed, + // fStripDots == FALSE means that we add dots to make the message dot stuffed + // + IN BOOL fStripDots + ) ; + +#if 0 +// +// This function temporarily disabled ! +// +FILEHC_EXPORT +BOOL __stdcall +SetDotStuffingOnReads( IN struct FIO_CONTEXT* pContext, + IN BOOL fEnable, + IN BOOL fStripDots + ) ; +#endif + +// +// Enable dot scanning properties on the write path +// of the file handle cache for this file ! +// +// if fEnable is TRUE the we will examine each write +// that goes through us to determine whether the +// message has any occurrences of "\r\n.". +// +FILEHC_EXPORT +BOOL __stdcall +SetDotScanningOnWrites( IN struct FIO_CONTEXT* pContext, + IN BOOL fEnable + ) ; + +// +// +// This function should be called when we have finished doing all writes to an FIO_CONTEXT +// This function should be paired with SetDotStuffingOnWrites() and the fStripDots +// parameter should be the same as when SetDotStuffingOnWrites() was called. +// +// We will update the Dot Stuffing State of the FIO_CONTEXT and discard +// all dot stuffing memory and stuff that may have been required ! +// +// If this function call is paired with a call to SetDotScanningOnWrites() fStripDots should be TRUE ! +// +FILEHC_EXPORT +void __stdcall +CompleteDotStuffingOnWrites( IN struct FIO_CONTEXT* pContext, + IN BOOL fStripDots + ) ; + +// +// This will cause us to examine each read for occurrences of +// "\r\n." +// +// NOTE : the user must use ASYNC Reads for this to work - we will assert +// if the user tries to pend any synchronous reads while we are in this state ! +// +FILEHC_EXPORT +BOOL __stdcall +SetDotScanningOnReads( IN struct FIO_CONTEXT* pContext, + IN BOOL fEnable + ) ; + + +// +// If any of the dot stuffing mechanism our turned on, +// this will get a count of the number of occurrences/modifications +// have occurred. +// +// if fReads is TRUE we get the count for occurrences on Read's +// if fReads is FALSE we get the count for occurrences on Write's +// +// if dot stuffing was turned off or not enabled somehow then +// GetDotStuffState() will return FALSE. +// +// NOTE: A NULL pfStuffed is not allowed ! +// +FILEHC_EXPORT +BOOL __stdcall +GetDotStuffState( IN struct FIO_CONTEXT* pContext, + IN BOOL fReads, + _Inout_ OUT BOOL* pfStuffed, + _Out_ OUT BOOL* pfStoredWithDots + ) ; + +// +// In this case we always assume that the FIO_CONTEXT is not going to be dot stuffed. +// fRequiresStuffing == TRUE indicates that it SHOULD BE stuffed. +// fRequiresStuffing == FALSE indicates that the message does not need dot stuffing. +// +FILEHC_EXPORT +void __stdcall +SetDotStuffState( IN struct FIO_CONTEXT* pContext, + // + // fIsStuffed is only relevant when fKnown == TRUE + // + IN BOOL fKnown, // We do know the dot stuff state + // + // if fKnown is TRUE then fIsStuffed is meaningfull, when thats the case + // if fIsStuffed is TRUE then the message + // + IN BOOL fRequiresStuffing// if fKnown is TRUE this arg is meaningfull + ) ; + + +#ifdef __cplusplus +} +#endif + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _FILEHC_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FileOpen.Dlg b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FileOpen.Dlg new file mode 100644 index 0000000000000000000000000000000000000000..b7e65ec5cf57f7e128cafb042ff4f03fc9b6997c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FileOpen.Dlg @@ -0,0 +1,197 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + fileopen.dlg + +Abstract: + + This module contains the resource descriptions for the Win32 + file open and save as common dialogs. + +Revision History: + +--*/ + + + +// +// Include Files. +// + +#include + + + + +// +// Constant Declarations. +// + +#define LBS_DISABLENOSCROLL 0x1000L + + + +// +// New File Open and Save As Dialogs. +// + +NEWFILEOPENV2ORD DIALOG DISCARDABLE 0, 0, 370, 237 +STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | + WS_SYSMENU | WS_CLIPCHILDREN +CAPTION "Open" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "Look &in:", stc4, 4, 7, 57, 8, SS_NOTIFY,WS_EX_RIGHT + COMBOBOX cmb2, 66, 4, 174, 300, + CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | + WS_VSCROLL | WS_TABSTOP + + LTEXT "", stc1, 248, 4, 80, 14, NOT WS_GROUP | NOT WS_VISIBLE, + CONTROL "", ctl1, TOOLBARCLASSNAME, WS_TABSTOP | + CCS_NODIVIDER |CCS_NOPARENTALIGN | CCS_NORESIZE | TBSTYLE_WRAPABLE | + TBSTYLE_FLAT | TBSTYLE_TOOLTIPS | TBSTYLE_CUSTOMERASE, + 4,22,58,208 , WS_EX_CLIENTEDGE + LISTBOX lst1, 66, 22, 300, 156, + LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN | + WS_HSCROLL | NOT WS_VISIBLE + + LTEXT "File &name:", stc3, 67, 187, 58, 8, SS_NOTIFY + + EDITTEXT edt1, 130, 184, 164, 12, WS_TABSTOP | ES_AUTOHSCROLL + + CONTROL "", cmb13, WC_COMBOBOXEX, WS_TABSTOP| WS_VSCROLL | + CBS_DROPDOWN | CBS_AUTOHSCROLL, + 130, 184, 164, 150 + + PUSHBUTTON "", psh5, 130, 184, 25, 14, WS_TABSTOP | BS_SPLITBUTTON | BS_BITMAP + + LTEXT "Files of &type:", stc2, 67, 203, 58, 8, SS_NOTIFY + COMBOBOX cmb1, 130, 201, 164, 100, + CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP + + AUTOCHECKBOX "Open as &read-only", chx1, 130, 217, 160, 8, WS_TABSTOP + + DEFPUSHBUTTON "&Open", IDOK, 316, 184, 50, 14, WS_GROUP + PUSHBUTTON "Cancel", IDCANCEL, 316, 200, 50, 14, WS_GROUP + PUSHBUTTON "&Help", pshHelp, 316, 218, 50, 14, WS_GROUP +END + + +NEWFILEOPENORD DIALOG DISCARDABLE 0, 0, 280, 164 +STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | + WS_SYSMENU | WS_CLIPCHILDREN +CAPTION "Open" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "Look &in:", stc4, 7, 6, 27, 8, SS_NOTIFY + COMBOBOX cmb2, 36, 3, 148, 300, + CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | + WS_VSCROLL | WS_TABSTOP + + LTEXT "", stc1, 186, 3, 88, 16, NOT WS_GROUP | NOT WS_VISIBLE + LISTBOX lst1, 4, 20, 272, 85, + LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN | + WS_HSCROLL | NOT WS_VISIBLE + + LTEXT "File &name:", stc3, 5, 112, 48, 8, SS_NOTIFY + EDITTEXT edt1, 54, 111, 155, 12, WS_TABSTOP | ES_AUTOHSCROLL + + CONTROL "", cmb13, WC_COMBOBOXEX, WS_TABSTOP| WS_VSCROLL | + CBS_DROPDOWN | CBS_AUTOHSCROLL, + 54, 111, 155, 150 + + PUSHBUTTON "", psh5, 54, 111, 25, 14, WS_TABSTOP | BS_SPLITBUTTON | BS_BITMAP + + LTEXT "Files of &type:", stc2, 5, 131, 48, 8, SS_NOTIFY + COMBOBOX cmb1, 54, 129, 155, 100, + CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP + + AUTOCHECKBOX "Open as &read-only", chx1, 54, 148, 74, 10, WS_TABSTOP + + DEFPUSHBUTTON "&Open", IDOK, 222, 110, 50, 14 + PUSHBUTTON "Cancel", IDCANCEL, 222, 128, 50, 14 + PUSHBUTTON "&Help", pshHelp, 222, 145, 50, 14 +END + +// +// Old File Open and Save As Dialogs. +// + +FILEOPENORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 268, 134 +STYLE WS_CAPTION | WS_SYSMENU | WS_POPUP | DS_MODALFRAME | + DS_3DLOOK +CAPTION "Open" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "File &name:", stc3, 6, 6, 76, 9 + EDITTEXT edt1, 6, 16, 90, 12, + ES_AUTOHSCROLL | WS_TABSTOP | ES_OEMCONVERT + LISTBOX lst1, 6, 32, 90, 68, + LBS_SORT | LBS_HASSTRINGS | LBS_NOTIFY | + LBS_DISABLENOSCROLL | WS_VSCROLL | + WS_TABSTOP | LBS_OWNERDRAWFIXED + + LTEXT "&Folders:", -1, 110, 6, 96, 9 + LTEXT "", stc1, 110, 16, 96, 9, SS_NOPREFIX + LISTBOX lst2, 110, 32, 96, 68, + LBS_SORT | LBS_HASSTRINGS | LBS_NOTIFY | + LBS_DISABLENOSCROLL | WS_VSCROLL | + WS_TABSTOP | LBS_OWNERDRAWFIXED + + LTEXT "List files of &type:", stc2, 6, 104, 90, 9 + COMBOBOX cmb1, 6, 114, 90, 96, + CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP + + LTEXT "Dri&ves:", stc4, 110, 104, 96, 9 + COMBOBOX cmb2, 110, 114, 96, 68, + CBS_SORT | CBS_HASSTRINGS | CBS_OWNERDRAWFIXED | + CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP + + DEFPUSHBUTTON "OK", IDOK, 212, 6, 50, 14, WS_GROUP + PUSHBUTTON "Cancel", IDCANCEL, 212, 24, 50, 14, WS_GROUP + + PUSHBUTTON "&Help", pshHelp, 212, 46, 50, 14, WS_GROUP + AUTOCHECKBOX "&Read only", chx1, 212, 68, 50, 12, WS_TABSTOP | WS_GROUP +END + + + +MULTIFILEOPENORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 268, 134 +STYLE WS_CAPTION | WS_SYSMENU | WS_POPUP | DS_MODALFRAME | + DS_3DLOOK +CAPTION "Open" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "File &name:", stc3, 6, 6, 76, 9 + EDITTEXT edt1, 6, 16, 90, 12, + ES_AUTOHSCROLL | WS_TABSTOP | ES_OEMCONVERT + LISTBOX lst1, 6, 32, 90, 68, + LBS_SORT | LBS_NOTIFY | LBS_DISABLENOSCROLL | WS_VSCROLL | + WS_TABSTOP | LBS_EXTENDEDSEL | LBS_HASSTRINGS | + LBS_OWNERDRAWFIXED + + LTEXT "&Folders:", -1, 110, 6, 96, 9 + LTEXT "", stc1, 110, 16, 96, 9, SS_NOPREFIX + LISTBOX lst2, 110, 32, 96, 68, + LBS_SORT | LBS_HASSTRINGS | LBS_NOTIFY | + LBS_DISABLENOSCROLL | WS_VSCROLL | + WS_TABSTOP | LBS_OWNERDRAWFIXED + + LTEXT "List files of &type:", stc2, 6, 104, 90, 9 + COMBOBOX cmb1, 6, 114, 90, 96, + CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP + + LTEXT "Dri&ves:", stc4, 110, 104, 96, 9 + COMBOBOX cmb2, 110, 114, 96, 68, + CBS_SORT | CBS_HASSTRINGS | CBS_OWNERDRAWFIXED | + CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP + + DEFPUSHBUTTON "OK", IDOK, 212, 6, 50, 14, WS_GROUP + PUSHBUTTON "Cancel", IDCANCEL, 212, 24, 50, 14, WS_GROUP + + PUSHBUTTON "&Help", pshHelp, 212, 46, 50, 14, WS_GROUP + AUTOCHECKBOX "&Read only", chx1, 212, 68, 50, 12, WS_TABSTOP | WS_GROUP +END diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Filter.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Filter.h new file mode 100644 index 0000000000000000000000000000000000000000..2e25bd3c7b7731ac0533055d6c1d3ec636b56cbc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Filter.h @@ -0,0 +1,509 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __filter_h__ +#define __filter_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFilter_FWD_DEFINED__ +#define __IFilter_FWD_DEFINED__ +typedef interface IFilter IFilter; + +#endif /* __IFilter_FWD_DEFINED__ */ + + +#ifndef __IPixelFilter_FWD_DEFINED__ +#define __IPixelFilter_FWD_DEFINED__ +typedef interface IPixelFilter IPixelFilter; + +#endif /* __IPixelFilter_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "objidl.h" +#include "propidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_filter_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1993-1998. +// +//-------------------------------------------------------------------------- +#if !defined(_TAGFULLPROPSPEC_DEFINED_) +#define _TAGFULLPROPSPEC_DEFINED_ +typedef struct tagFULLPROPSPEC + { + GUID guidPropSet; + PROPSPEC psProperty; + } FULLPROPSPEC; + +#endif // #if !defined(_TAGFULLPROPSPEC_DEFINED_) + + +extern RPC_IF_HANDLE __MIDL_itf_filter_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_filter_0000_0000_v0_0_s_ifspec; + +#ifndef __IFilter_INTERFACE_DEFINED__ +#define __IFilter_INTERFACE_DEFINED__ + +/* interface IFilter */ +/* [unique][uuid][object][local] */ + +#ifndef _tagIFILTER_INIT_DEFINED +typedef +enum tagIFILTER_INIT + { + IFILTER_INIT_CANON_PARAGRAPHS = 1, + IFILTER_INIT_HARD_LINE_BREAKS = 2, + IFILTER_INIT_CANON_HYPHENS = 4, + IFILTER_INIT_CANON_SPACES = 8, + IFILTER_INIT_APPLY_INDEX_ATTRIBUTES = 16, + IFILTER_INIT_APPLY_OTHER_ATTRIBUTES = 32, + IFILTER_INIT_APPLY_CRAWL_ATTRIBUTES = 256, + IFILTER_INIT_INDEXING_ONLY = 64, + IFILTER_INIT_SEARCH_LINKS = 128, + IFILTER_INIT_FILTER_OWNED_VALUE_OK = 512, + IFILTER_INIT_FILTER_AGGRESSIVE_BREAK = 1024, + IFILTER_INIT_DISABLE_EMBEDDED = 2048, + IFILTER_INIT_EMIT_FORMATTING = 4096 + } IFILTER_INIT; + +#define _tagIFILTER_INIT_DEFINED +#define _IFILTER_INIT_DEFINED +#endif +#ifndef _tagIFILTER_FLAGS_DEFINED +typedef +enum tagIFILTER_FLAGS + { + IFILTER_FLAGS_OLE_PROPERTIES = 1 + } IFILTER_FLAGS; + +#define _tagIFILTER_FLAGS_DEFINED +#define _IFILTER_FLAGS_DEFINED +#endif +#ifndef _tagCHUNKSTATE_DEFINED +typedef +enum tagCHUNKSTATE + { + CHUNK_TEXT = 0x1, + CHUNK_VALUE = 0x2, + CHUNK_FILTER_OWNED_VALUE = 0x4, + CHUNK_IMAGE = 0x8 + } CHUNKSTATE; + +#define _tagCHUNKSTATE_DEFINED +#define _CHUNKSTATE_DEFINED +#endif +#ifndef _tagCHUNK_BREAKTYPE_DEFINED +typedef +enum tagCHUNK_BREAKTYPE + { + CHUNK_NO_BREAK = 0, + CHUNK_EOW = 1, + CHUNK_EOS = 2, + CHUNK_EOP = 3, + CHUNK_EOC = 4 + } CHUNK_BREAKTYPE; + +#define _tagCHUNK_BREAKTYPE_DEFINED +#define _CHUNK_BREAKTYPE_DEFINED +#endif +#ifndef _tagFILTERREGION_DEFINED +typedef struct tagFILTERREGION + { + ULONG idChunk; + ULONG cwcStart; + ULONG cwcExtent; + } FILTERREGION; + +#define _tagFILTERREGION_DEFINED +#define _FILTERREGION_DEFINED +#endif +#ifndef _tagSTAT_CHUNK_DEFINED +typedef struct tagSTAT_CHUNK + { + ULONG idChunk; + CHUNK_BREAKTYPE breakType; + CHUNKSTATE flags; + LCID locale; + FULLPROPSPEC attribute; + ULONG idChunkSource; + ULONG cwcStartSource; + ULONG cwcLenSource; + } STAT_CHUNK; + +#define _tagSTAT_CHUNK_DEFINED +#define _STAT_CHUNK_DEFINED +#endif + +EXTERN_C const IID IID_IFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("89BCB740-6119-101A-BCB7-00DD010655AF") + IFilter : public IUnknown + { + public: + virtual SCODE STDMETHODCALLTYPE Init( + /* [in] */ ULONG grfFlags, + /* [in] */ ULONG cAttributes, + /* [size_is][in] */ const FULLPROPSPEC *aAttributes, + /* [out] */ ULONG *pFlags) = 0; + + virtual SCODE STDMETHODCALLTYPE GetChunk( + /* [out] */ STAT_CHUNK *pStat) = 0; + + virtual SCODE STDMETHODCALLTYPE GetText( + /* [out][in] */ ULONG *pcwcBuffer, + /* [size_is][out] */ WCHAR *awcBuffer) = 0; + + virtual SCODE STDMETHODCALLTYPE GetValue( + /* [out] */ PROPVARIANT **ppPropValue) = 0; + + virtual SCODE STDMETHODCALLTYPE BindRegion( + /* [in] */ FILTERREGION origPos, + /* [in] */ REFIID riid, + /* [out] */ void **ppunk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IFilter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IFilter * This); + + DECLSPEC_XFGVIRT(IFilter, Init) + SCODE ( STDMETHODCALLTYPE *Init )( + IFilter * This, + /* [in] */ ULONG grfFlags, + /* [in] */ ULONG cAttributes, + /* [size_is][in] */ const FULLPROPSPEC *aAttributes, + /* [out] */ ULONG *pFlags); + + DECLSPEC_XFGVIRT(IFilter, GetChunk) + SCODE ( STDMETHODCALLTYPE *GetChunk )( + IFilter * This, + /* [out] */ STAT_CHUNK *pStat); + + DECLSPEC_XFGVIRT(IFilter, GetText) + SCODE ( STDMETHODCALLTYPE *GetText )( + IFilter * This, + /* [out][in] */ ULONG *pcwcBuffer, + /* [size_is][out] */ WCHAR *awcBuffer); + + DECLSPEC_XFGVIRT(IFilter, GetValue) + SCODE ( STDMETHODCALLTYPE *GetValue )( + IFilter * This, + /* [out] */ PROPVARIANT **ppPropValue); + + DECLSPEC_XFGVIRT(IFilter, BindRegion) + SCODE ( STDMETHODCALLTYPE *BindRegion )( + IFilter * This, + /* [in] */ FILTERREGION origPos, + /* [in] */ REFIID riid, + /* [out] */ void **ppunk); + + END_INTERFACE + } IFilterVtbl; + + interface IFilter + { + CONST_VTBL struct IFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFilter_Init(This,grfFlags,cAttributes,aAttributes,pFlags) \ + ( (This)->lpVtbl -> Init(This,grfFlags,cAttributes,aAttributes,pFlags) ) + +#define IFilter_GetChunk(This,pStat) \ + ( (This)->lpVtbl -> GetChunk(This,pStat) ) + +#define IFilter_GetText(This,pcwcBuffer,awcBuffer) \ + ( (This)->lpVtbl -> GetText(This,pcwcBuffer,awcBuffer) ) + +#define IFilter_GetValue(This,ppPropValue) \ + ( (This)->lpVtbl -> GetValue(This,ppPropValue) ) + +#define IFilter_BindRegion(This,origPos,riid,ppunk) \ + ( (This)->lpVtbl -> BindRegion(This,origPos,riid,ppunk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IPixelFilter_INTERFACE_DEFINED__ +#define __IPixelFilter_INTERFACE_DEFINED__ + +/* interface IPixelFilter */ +/* [unique][uuid][object] */ + +typedef +enum IMAGE_PIXELFORMAT + { + FILTER_PIXELFORMAT_BGRA8 = 0, + FILTER_PIXELFORMAT_PBGRA8 = 1, + FILTER_PIXELFORMAT_BGR8 = 2 + } IMAGE_PIXELFORMAT; + +typedef struct IMAGE_INFO + { + UINT Width; + UINT Height; + IMAGE_PIXELFORMAT Format; + } IMAGE_INFO; + + +EXTERN_C const IID IID_IPixelFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3d7df9a7-8da6-4fbf-a45b-7592f06d93a9") + IPixelFilter : public IFilter + { + public: + virtual HRESULT STDMETHODCALLTYPE GetImageInfo( + /* [out] */ __RPC__out IMAGE_INFO *imageInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPixelsForImage( + /* [in] */ FLOAT scalingFactor, + /* [unique][in] */ __RPC__in_opt const RECT *sourceRect, + /* [in] */ ULONG pixelBufferSize, + /* [size_is][out] */ __RPC__out_ecount_full(pixelBufferSize) BYTE *pixelBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPixelFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPixelFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPixelFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPixelFilter * This); + + DECLSPEC_XFGVIRT(IFilter, Init) + SCODE ( STDMETHODCALLTYPE *Init )( + __RPC__in IPixelFilter * This, + /* [in] */ ULONG grfFlags, + /* [in] */ ULONG cAttributes, + /* [size_is][in] */ __RPC__in_ecount_full(cAttributes) const FULLPROPSPEC *aAttributes, + /* [out] */ __RPC__out ULONG *pFlags); + + DECLSPEC_XFGVIRT(IFilter, GetChunk) + SCODE ( STDMETHODCALLTYPE *GetChunk )( + __RPC__in IPixelFilter * This, + /* [out] */ __RPC__out STAT_CHUNK *pStat); + + DECLSPEC_XFGVIRT(IFilter, GetText) + SCODE ( STDMETHODCALLTYPE *GetText )( + __RPC__in IPixelFilter * This, + /* [out][in] */ __RPC__inout ULONG *pcwcBuffer, + /* [size_is][out] */ __RPC__out_ecount_full(*pcwcBuffer) WCHAR *awcBuffer); + + DECLSPEC_XFGVIRT(IFilter, GetValue) + SCODE ( STDMETHODCALLTYPE *GetValue )( + __RPC__in IPixelFilter * This, + /* [out] */ __RPC__deref_out_opt PROPVARIANT **ppPropValue); + + DECLSPEC_XFGVIRT(IFilter, BindRegion) + SCODE ( STDMETHODCALLTYPE *BindRegion )( + __RPC__in IPixelFilter * This, + /* [in] */ FILTERREGION origPos, + /* [in] */ __RPC__in REFIID riid, + /* [out] */ __RPC__deref_out_opt void **ppunk); + + DECLSPEC_XFGVIRT(IPixelFilter, GetImageInfo) + HRESULT ( STDMETHODCALLTYPE *GetImageInfo )( + __RPC__in IPixelFilter * This, + /* [out] */ __RPC__out IMAGE_INFO *imageInfo); + + DECLSPEC_XFGVIRT(IPixelFilter, GetPixelsForImage) + HRESULT ( STDMETHODCALLTYPE *GetPixelsForImage )( + __RPC__in IPixelFilter * This, + /* [in] */ FLOAT scalingFactor, + /* [unique][in] */ __RPC__in_opt const RECT *sourceRect, + /* [in] */ ULONG pixelBufferSize, + /* [size_is][out] */ __RPC__out_ecount_full(pixelBufferSize) BYTE *pixelBuffer); + + END_INTERFACE + } IPixelFilterVtbl; + + interface IPixelFilter + { + CONST_VTBL struct IPixelFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPixelFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPixelFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPixelFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPixelFilter_Init(This,grfFlags,cAttributes,aAttributes,pFlags) \ + ( (This)->lpVtbl -> Init(This,grfFlags,cAttributes,aAttributes,pFlags) ) + +#define IPixelFilter_GetChunk(This,pStat) \ + ( (This)->lpVtbl -> GetChunk(This,pStat) ) + +#define IPixelFilter_GetText(This,pcwcBuffer,awcBuffer) \ + ( (This)->lpVtbl -> GetText(This,pcwcBuffer,awcBuffer) ) + +#define IPixelFilter_GetValue(This,ppPropValue) \ + ( (This)->lpVtbl -> GetValue(This,ppPropValue) ) + +#define IPixelFilter_BindRegion(This,origPos,riid,ppunk) \ + ( (This)->lpVtbl -> BindRegion(This,origPos,riid,ppunk) ) + + +#define IPixelFilter_GetImageInfo(This,imageInfo) \ + ( (This)->lpVtbl -> GetImageInfo(This,imageInfo) ) + +#define IPixelFilter_GetPixelsForImage(This,scalingFactor,sourceRect,pixelBufferSize,pixelBuffer) \ + ( (This)->lpVtbl -> GetPixelsForImage(This,scalingFactor,sourceRect,pixelBufferSize,pixelBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPixelFilter_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_filter_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_filter_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_filter_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Filter.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Filter.idl new file mode 100644 index 0000000000000000000000000000000000000000..7c5ca1ea44a24f9e8966b091ebab54fb179f853a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Filter.idl @@ -0,0 +1,182 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992-1998 +// +// File: ifilt.idl +// +// Contents: IFilter interface definition +// +// History: 12-Jul-93 AmyA Created +// +//-------------------------------------------------------------------------- + +import "unknwn.idl"; +import "objidl.idl"; +import "propidl.idl"; + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (C) Microsoft Corporation, 1993-1998.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#if !defined(_TAGFULLPROPSPEC_DEFINED_)") +cpp_quote("#define _TAGFULLPROPSPEC_DEFINED_") +typedef struct tagFULLPROPSPEC +{ + GUID guidPropSet; + PROPSPEC psProperty; +} FULLPROPSPEC; +cpp_quote("#endif // #if !defined(_TAGFULLPROPSPEC_DEFINED_)") + +[ + object, + uuid(89BCB740-6119-101A-BCB7-00DD010655AF), + pointer_default(unique) +] + +interface IFilter : IUnknown +{ + cpp_quote("#ifndef _tagIFILTER_INIT_DEFINED") + typedef enum tagIFILTER_INIT + { + IFILTER_INIT_CANON_PARAGRAPHS = 1, + IFILTER_INIT_HARD_LINE_BREAKS = 2, + IFILTER_INIT_CANON_HYPHENS = 4, + IFILTER_INIT_CANON_SPACES = 8, + + IFILTER_INIT_APPLY_INDEX_ATTRIBUTES = 16, + IFILTER_INIT_APPLY_OTHER_ATTRIBUTES = 32, + IFILTER_INIT_APPLY_CRAWL_ATTRIBUTES = 256, + + IFILTER_INIT_INDEXING_ONLY = 64, + + IFILTER_INIT_SEARCH_LINKS = 128, + + IFILTER_INIT_FILTER_OWNED_VALUE_OK = 512, + + IFILTER_INIT_FILTER_AGGRESSIVE_BREAK = 1024, + + IFILTER_INIT_DISABLE_EMBEDDED = 2048, + + IFILTER_INIT_EMIT_FORMATTING = 4096 + + } IFILTER_INIT; + cpp_quote("#define _tagIFILTER_INIT_DEFINED") + cpp_quote("#define _IFILTER_INIT_DEFINED") + cpp_quote("#endif") + + cpp_quote("#ifndef _tagIFILTER_FLAGS_DEFINED") + typedef enum tagIFILTER_FLAGS + { + IFILTER_FLAGS_OLE_PROPERTIES = 1 + } IFILTER_FLAGS; + cpp_quote("#define _tagIFILTER_FLAGS_DEFINED") + cpp_quote("#define _IFILTER_FLAGS_DEFINED") + cpp_quote("#endif") + + cpp_quote("#ifndef _tagCHUNKSTATE_DEFINED") + typedef enum tagCHUNKSTATE + { + CHUNK_TEXT = 0x1, + CHUNK_VALUE = 0x2, + CHUNK_FILTER_OWNED_VALUE = 0x4, + CHUNK_IMAGE = 0x8 + + } CHUNKSTATE; + cpp_quote("#define _tagCHUNKSTATE_DEFINED") + cpp_quote("#define _CHUNKSTATE_DEFINED") + cpp_quote("#endif") + + cpp_quote("#ifndef _tagCHUNK_BREAKTYPE_DEFINED") + typedef enum tagCHUNK_BREAKTYPE + { + CHUNK_NO_BREAK = 0, + CHUNK_EOW = 1, + CHUNK_EOS = 2, + CHUNK_EOP = 3, + CHUNK_EOC = 4 + } CHUNK_BREAKTYPE; + cpp_quote("#define _tagCHUNK_BREAKTYPE_DEFINED") + cpp_quote("#define _CHUNK_BREAKTYPE_DEFINED") + cpp_quote("#endif") + + cpp_quote("#ifndef _tagFILTERREGION_DEFINED") + typedef struct tagFILTERREGION + { + ULONG idChunk; + ULONG cwcStart; + ULONG cwcExtent; + } FILTERREGION; + cpp_quote("#define _tagFILTERREGION_DEFINED") + cpp_quote("#define _FILTERREGION_DEFINED") + cpp_quote("#endif") + + cpp_quote("#ifndef _tagSTAT_CHUNK_DEFINED") + typedef struct tagSTAT_CHUNK + { + ULONG idChunk; + CHUNK_BREAKTYPE breakType; + CHUNKSTATE flags; + LCID locale; + FULLPROPSPEC attribute; + ULONG idChunkSource; + ULONG cwcStartSource; + ULONG cwcLenSource; + } STAT_CHUNK; + + cpp_quote("#define _tagSTAT_CHUNK_DEFINED") + cpp_quote("#define _STAT_CHUNK_DEFINED") + cpp_quote("#endif") + + SCODE Init([in] ULONG grfFlags, + [in] ULONG cAttributes, + [in, size_is(cAttributes), unique] FULLPROPSPEC const * aAttributes, + [out] ULONG * pFlags ); + + SCODE GetChunk([out] STAT_CHUNK * pStat ); + + SCODE GetText([in, out] ULONG * pcwcBuffer, + [out, size_is(*pcwcBuffer)] WCHAR * awcBuffer ); + + SCODE GetValue([out] PROPVARIANT ** ppPropValue ); + + [local] + SCODE BindRegion([in] FILTERREGION origPos, + [in] REFIID riid, + [out] void ** ppunk ); + +} + +[ + object, + uuid(3d7df9a7-8da6-4fbf-a45b-7592f06d93a9), + pointer_default(unique) +] +interface IPixelFilter : IFilter +{ + typedef enum IMAGE_PIXELFORMAT + { + FILTER_PIXELFORMAT_BGRA8 = 0, + FILTER_PIXELFORMAT_PBGRA8 = 1, + FILTER_PIXELFORMAT_BGR8 = 2 + } IMAGE_PIXELFORMAT; + typedef struct IMAGE_INFO + { + UINT Width; + UINT Height; + IMAGE_PIXELFORMAT Format; + } IMAGE_INFO; + HRESULT GetImageInfo([out] IMAGE_INFO* imageInfo); + HRESULT GetPixelsForImage([in] FLOAT scalingFactor, [in, unique] const RECT* sourceRect, [in] ULONG pixelBufferSize, [out, size_is(pixelBufferSize)] BYTE* pixelBuffer); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Filterr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Filterr.h new file mode 100644 index 0000000000000000000000000000000000000000..1610d7f2b61ee51d1e1ab241ac7579af6674efb6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Filterr.h @@ -0,0 +1,177 @@ +#ifndef _FILTERR_H_ +#define _FILTERR_H_ +#ifndef FACILITY_WINDOWS +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---+-+-+-----------------------+-------------------------------+ +// |Sev|C|R| Facility | Code | +// +---+-+-+-----------------------+-------------------------------+ +// +// where +// +// Sev - is the severity code +// +// 00 - Success +// 01 - Informational +// 10 - Warning +// 11 - Error +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_ITF 0x4 +#define FACILITY_WINDOWS 0x8 + + +// +// Define the severity codes +// +#define STATUS_SEVERITY_SUCCESS 0x0 +#define STATUS_SEVERITY_COERROR 0x2 +#define STATUS_SEVERITY_COFAIL 0x3 + + +// +// MessageId: NOT_AN_ERROR +// +// MessageText: +// +// NOTE: This dummy error message is necessary to force MC to output +// the above defines inside the FACILITY_WINDOWS guard instead +// of leaving it empty. +// +#define NOT_AN_ERROR ((HRESULT)0x00080000L) + +#endif // FACILITY_WINDOWS +// +// Codes 0x1700-0x172F are reserved for FILTER +// +// +// MessageId: FILTER_E_END_OF_CHUNKS +// +// MessageText: +// +// No more chunks of text available in object. +// +#define FILTER_E_END_OF_CHUNKS ((HRESULT)0x80041700L) + +// +// MessageId: FILTER_E_NO_MORE_TEXT +// +// MessageText: +// +// No more text available in chunk. +// +#define FILTER_E_NO_MORE_TEXT ((HRESULT)0x80041701L) + +// +// MessageId: FILTER_E_NO_MORE_VALUES +// +// MessageText: +// +// No more property values available in chunk. +// +#define FILTER_E_NO_MORE_VALUES ((HRESULT)0x80041702L) + +// +// MessageId: FILTER_E_ACCESS +// +// MessageText: +// +// Unable to access object. +// +#define FILTER_E_ACCESS ((HRESULT)0x80041703L) + +// +// MessageId: FILTER_W_MONIKER_CLIPPED +// +// MessageText: +// +// Moniker doesn't cover entire region. +// +#define FILTER_W_MONIKER_CLIPPED ((HRESULT)0x00041704L) + +// +// MessageId: FILTER_E_NO_TEXT +// +// MessageText: +// +// No text in current chunk. +// +#define FILTER_E_NO_TEXT ((HRESULT)0x80041705L) + +// +// MessageId: FILTER_E_NO_VALUES +// +// MessageText: +// +// No values in current chunk. +// +#define FILTER_E_NO_VALUES ((HRESULT)0x80041706L) + +// +// MessageId: FILTER_E_EMBEDDING_UNAVAILABLE +// +// MessageText: +// +// Unable to bind IFilter for embedded object. +// +#define FILTER_E_EMBEDDING_UNAVAILABLE ((HRESULT)0x80041707L) + +// +// MessageId: FILTER_E_LINK_UNAVAILABLE +// +// MessageText: +// +// Unable to bind IFilter for linked object. +// +#define FILTER_E_LINK_UNAVAILABLE ((HRESULT)0x80041708L) + +// +// MessageId: FILTER_S_LAST_TEXT +// +// MessageText: +// +// This is the last text in the current chunk. +// +#define FILTER_S_LAST_TEXT ((HRESULT)0x00041709L) + +// +// MessageId: FILTER_S_LAST_VALUES +// +// MessageText: +// +// This is the last value in the current chunk. +// +#define FILTER_S_LAST_VALUES ((HRESULT)0x0004170AL) + +// +// MessageId: FILTER_E_PASSWORD +// +// MessageText: +// +// File was not filtered due to password protection. +// +#define FILTER_E_PASSWORD ((HRESULT)0x8004170BL) + +// +// MessageId: FILTER_E_UNKNOWNFORMAT +// +// MessageText: +// +// The document format is not recognized by the flter. +// +#define FILTER_E_UNKNOWNFORMAT ((HRESULT)0x8004170CL) + +#endif // _FILTERR_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FindText.Dlg b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FindText.Dlg new file mode 100644 index 0000000000000000000000000000000000000000..2924b1b6902c08657d3dc2a14893f4d854000415 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FindText.Dlg @@ -0,0 +1,73 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + findtext.dlg + +Abstract: + + This module contains the resource descriptions for the Win32 + find and replace common dialogs. + +Revision History: + +--*/ + + + +// +// Find and Replace Dialogs. +// + +FINDDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 30, 73, 236, 74 +STYLE WS_BORDER | WS_CAPTION | DS_MODALFRAME | WS_POPUP | WS_SYSMENU | + DS_3DLOOK +CAPTION "Find" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "Fi&nd what:", -1, 4, 8, 42, 8 + EDITTEXT edt1, 47, 7, 128, 12, WS_GROUP | WS_TABSTOP | ES_AUTOHSCROLL + + AUTOCHECKBOX "Match &whole word only", chx1, 4, 26, 100, 12, WS_GROUP + AUTOCHECKBOX "Match &case", chx2, 4, 42, 64, 12 + AUTOCHECKBOX "W&rap around", chx3, 4, 58, 64, 12 + + GROUPBOX "Direction", grp1, 107, 26, 68, 28, WS_GROUP + AUTORADIOBUTTON "&Up", rad1, 111, 38, 25, 12, WS_GROUP + AUTORADIOBUTTON "&Down", rad2, 138, 38, 35, 12 + + DEFPUSHBUTTON "&Find Next", IDOK, 182, 5, 50, 14, WS_GROUP + PUSHBUTTON "Cancel", IDCANCEL, 182, 23, 50, 14 + PUSHBUTTON "&Help", pshHelp, 182, 45, 50, 14 + + LTEXT "", stc1, 4, 56, 1, 1, NOT WS_VISIBLE +END + + +REPLACEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 44, 230, 94 +STYLE WS_BORDER | WS_CAPTION | DS_MODALFRAME | WS_POPUP | WS_SYSMENU | + DS_3DLOOK +CAPTION "Replace" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "Fi&nd what:", -1, 4, 9, 48, 8 + EDITTEXT edt1, 54, 7, 114, 12, WS_GROUP | WS_TABSTOP | ES_AUTOHSCROLL + + LTEXT "Re&place with:", -1, 4, 26, 48, 8 + EDITTEXT edt2, 54, 24, 114, 12, WS_GROUP | WS_TABSTOP | ES_AUTOHSCROLL + + AUTOCHECKBOX "Match &whole word only", chx1, 4, 46, 104, 12, WS_GROUP + AUTOCHECKBOX "Match &case", chx2, 4, 62, 59, 12 + AUTOCHECKBOX "W&rap around", chx3, 4, 78, 64, 12 + + DEFPUSHBUTTON "&Find Next", IDOK, 174, 4, 50, 14, WS_GROUP + PUSHBUTTON "&Replace", psh1, 174, 21, 50, 14 + PUSHBUTTON "Replace &All", psh2, 174, 38, 50, 14 + PUSHBUTTON "Cancel", IDCANCEL, 174, 55, 50, 14 + PUSHBUTTON "&Help", pshHelp, 174, 75, 50, 14 + + LTEXT "", stc1, 4, 76, 1, 1, NOT WS_VISIBLE +END + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Font.Dlg b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Font.Dlg new file mode 100644 index 0000000000000000000000000000000000000000..e57879e7315f03466d8dd222e8b465178423bc69 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Font.Dlg @@ -0,0 +1,128 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + font.dlg + +Abstract: + + This module contains the resource descriptions for the Win32 + font common dialogs. + +Revision History: + +--*/ + + + +// +// Font Dialogs. +// + +FORMATDLGORD31 DIALOG 13, 54, 287, 196 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | + DS_3DLOOK +CAPTION "Font" +FONT 8, "MS Shell Dlg" +BEGIN + LTEXT "&Font:", stc1, 7, 7, 40, 9 + COMBOBOX cmb1, 7, 16, 98, 76, + CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL | + CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS | + CBS_OWNERDRAWFIXED + + LTEXT "Font st&yle:", stc2, 110, 7, 44, 9 + COMBOBOX cmb2, 110, 16, 74, 76, + CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL | + WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS | + CBS_OWNERDRAWFIXED + + LTEXT "&Size:", stc3, 189, 7, 30, 9 + COMBOBOX cmb3, 190, 16, 36, 76, + CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL | + CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS | + CBS_OWNERDRAWFIXED + + GROUPBOX "Effects", grp1, 7, 97, 98, 72, WS_GROUP + AUTOCHECKBOX "Stri&keout", chx1, 13, 110, 49, 10, WS_TABSTOP + AUTOCHECKBOX "&Underline", chx2, 13, 123, 51, 10 + + LTEXT "&Color:", stc4, 13, 136, 30, 9 + COMBOBOX cmb4, 13, 146, 82, 100, + CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | + CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + + GROUPBOX "Sample", grp2, 110, 97, 116, 43, WS_GROUP + CTEXT "AaBbYyZz", stc5, 118, 111, 100, 23, + SS_NOPREFIX | NOT WS_VISIBLE + LTEXT "", stc6, 7, 172, 219, 20, SS_NOPREFIX | NOT WS_GROUP + + LTEXT "Sc&ript:", stc7, 110, 147, 30, 9 + COMBOBOX cmb5, 110, 157, 116, 30, CBS_DROPDOWNLIST | + CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_HASSTRINGS | + WS_BORDER | WS_VSCROLL | WS_TABSTOP + + DEFPUSHBUTTON "OK", IDOK, 231, 16, 45, 14, WS_GROUP + PUSHBUTTON "Cancel", IDCANCEL, 231, 32, 45, 14, WS_GROUP + PUSHBUTTON "&Apply", psh3, 231, 48, 45, 14, WS_GROUP + PUSHBUTTON "&Help", pshHelp, 231, 64, 45, 14, WS_GROUP + +END + +// +// New Font Dialog with Syslink +// +NEWFORMATDLGWITHLINK DIALOG 13, 54, 243, 234 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | + DS_3DLOOK +CAPTION "Font" +FONT 9, "Segoe UI" +BEGIN + LTEXT "&Font:", stc1, 7, 7, 98, 9 + COMBOBOX cmb1, 7, 16, 98, 76, + CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL | + CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS | + CBS_OWNERDRAWFIXED + + LTEXT "Font st&yle:", stc2, 114, 7, 74, 9 + COMBOBOX cmb2, 114, 16, 74, 76, + CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL | + WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS | + CBS_OWNERDRAWFIXED + + LTEXT "&Size:", stc3, 198, 7, 36, 9 + COMBOBOX cmb3, 198, 16, 36, 76, + CBS_SIMPLE | CBS_AUTOHSCROLL | CBS_DISABLENOSCROLL | + CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_HASSTRINGS | + CBS_OWNERDRAWFIXED + + GROUPBOX "Effects", grp1, 7, 97, 98, 76, WS_GROUP + AUTOCHECKBOX "Stri&keout", chx1, 13, 111, 90, 10, WS_TABSTOP + AUTOCHECKBOX "&Underline", chx2, 13, 127, 90, 10 + + LTEXT "&Color:", stc4, 13, 144, 89, 9 + COMBOBOX cmb4, 13, 155, 85, 100, + CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | + CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + + GROUPBOX "Sample", grp2, 114, 97, 120, 43, WS_GROUP + CTEXT "AaBbYyZz", stc5, 116, 106, 117, 33, + SS_NOPREFIX | NOT WS_VISIBLE + LTEXT "", stc6, 7, 178, 227, 20, SS_NOPREFIX | NOT WS_GROUP + + LTEXT "Sc&ript:", stc7, 114, 145, 118, 9 + COMBOBOX cmb5, 114, 155, 120, 30, CBS_DROPDOWNLIST | + CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_HASSTRINGS | + WS_BORDER | WS_VSCROLL | WS_TABSTOP + + CONTROL "Show more fonts", IDC_MANAGE_LINK, "SysLink", + WS_TABSTOP, 7, 199, 227, 9 + + DEFPUSHBUTTON "OK", IDOK, 141, 215, 45, 14, WS_GROUP + PUSHBUTTON "Cancel", IDCANCEL, 190, 215, 45, 14, WS_GROUP + PUSHBUTTON "&Apply", psh3, 92, 215, 45, 14, WS_GROUP + PUSHBUTTON "&Help", pshHelp, 43, 215, 45, 14, WS_GROUP + +END diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FrQuery.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FrQuery.h new file mode 100644 index 0000000000000000000000000000000000000000..5adf90b32f5aeb6e4f3c145ce8e4e5840fc3f744 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FrQuery.h @@ -0,0 +1,128 @@ +//*************************************************************************** +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// FRQuery.h +// +// Purpose: query support classes +// +//*************************************************************************** + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifndef _FRAMEWORK_QUERY_H_ +#define _FRAMEWORK_QUERY_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include +#include +#include + +class POLARITY CFrameworkQuery +{ +public: + CFrameworkQuery(); + ~CFrameworkQuery(); + + // Finds out if a particular field was requested by the query in either + // the Select statement, or the Where statement. Only meaningful if we + // are in ExecQueryAsync and the query has been sucessfully parsed. + bool IsPropertyRequired(LPCWSTR propName); + + // Gets the class name from the query. Only meaningful if we are + // in ExecQueryAsync and the query has been sucessfully parsed. It + // is the responsibility of the caller to SysFreeString the returned + // string. + BSTR GetQueryClassName(void) { return SysAllocString(m_bstrtClassName); } + + // Given a property name, it will return all the values + // that the query requests in a CHStringArray. + // Select * from win32_directory where drive = "C:" GetValuesForProp(L"Drive") -> C: + // Where Drive = "C:" or Drive = "D:" GetValuesForProp(L"Drive") -> C:, D: + // Where Path = "\DOS" GetValuesForProp(L"Drive") -> (empty) + // Where Drive <> "C:" GetValuesForProp(L"Drive") -> (empty) + // Where Drive = "C:" or (Drive = "D:" and Mounted = true) GetValuesForProp(L"Drive") -> C:, D: + HRESULT GetValuesForProp(LPCWSTR wszPropName, CHStringArray& achNames); + + // Here's an overloaded version in case client wants to pass in a vector of _bstr_t's + HRESULT GetValuesForProp(LPCWSTR wszPropName, std::vector<_bstr_t>& vectorNames); + + // Returns a list of all the properties specified in the Select clause, plus. + // all the the properties from the Where clauses. If the returned array is empty, all + // properties are required. + void GetRequiredProperties(CHStringArray &saProperties); + + // Boolean indicating if all properties are being requested. + bool AllPropertiesAreRequired(void) { return (m_csaPropertiesRequired.GetSize() == 0); } + + // Boolean indicating if only the key properties are required. + bool KeysOnly(void) { return m_bKeysOnly; } + + // Accessor function to retrieve wql query + const CHString &GetQuery() ; + + // Moves the values into the member variables. Should never be called by users. + HRESULT Init( + + const BSTR bstrQueryFormat, + const BSTR bstrQuery, + long lFlags, + CHString &sNamespace + ); + + // Moves the values into the member variables. Should never be called by users. + HRESULT Init( + + ParsedObjectPath *pParsedObjectPath, + IWbemContext *pCtx, + LPCWSTR lpwszClassName, + CHString &sNamespace + ); + + // Initializes the KeysOnly data member. Should never be called by users. + void Init2(IWbemClassObject *IClass); + + +protected: + + /*****************************************************************************/ + /* The rest of these data members and functions are intended for Microsoft */ + /* internal use only. Use by third parties is unsupported and unrecommended. */ + /*****************************************************************************/ + + SQL_LEVEL_1_RPN_EXPRESSION *m_pLevel1RPNExpression; + CHStringArray m_csaPropertiesRequired; + enum QueryTypes{eUnknown, eWQLCommand, eContextObject} m_QueryType; + + DWORD IsInList(const CHStringArray &csaArray, LPCWSTR pwszValue); + + BOOL IsReference(LPCWSTR lpwszPropertyName); + const CHString &GetNamespace(); + +private: + + CHString m_sNamespace; + long m_lFlags; + IWbemClassObject *m_IClass; + CHString m_sQueryFormat; + + void Reset(void); + bool m_bKeysOnly; + bool m_AddKeys; + CHString m_sQuery; + bstr_t m_bstrtClassName; + +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/FwCommon.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FwCommon.h new file mode 100644 index 0000000000000000000000000000000000000000..9e19f77c6ef14335e38ec23d6e6f44472203fde7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/FwCommon.h @@ -0,0 +1,124 @@ +//*************************************************************************** +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// FWcommon.h +// +// Purpose: Definition of EventProvider class +// +//*************************************************************************** + +#if _MSC_VER > 1000 +#pragma once +#endif + +#define FRAMEWORK_ALLOW_DEPRECATED 0 + +// ALWAYS INCLUDE THIS FILE FIRST! + +#ifndef _FW_COMMON_H_ +#define _FW_COMMON_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// move warnings to level four +#pragma warning(4 : 4275 4800 4786 4251) +// C4275: non DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier' +// C4800: forcing bool variable to one or zero, possible performance loss +// C4786: 'identifier' : identifier was truncated to 'number' characters in the debug information +// C4251: 'identifier' : class 'type' needs to have dll-interface to export class 'type2' + + +#include "windows.h" + +// This function gets macro'ed to GetObjectW and GetObjectA based on the +// contents of UNICODE. However, we USE a function called GetObject. For +// single binary support, we can't have this being macro'ed. If the actual +// win32 api GetObject is needed, call the GetObjectW or GetObjectA directly. +#undef GetObject +#include +#include + +// If USE_POLARITY not defined, some Framedyn.dll symbols may not resolve correctly +// It's a declspec(dllimport/dllexport) issue. +#ifndef USE_POLARITY + +// For most users, this is the correct setting for POLARITY. +#define USE_POLARITY + +#endif + +// Required since TCHAR.H defines _ttoi64 -> atoi64, which requires oldnames.lib, which +// we don't use. +#define atoi64 _atoi64 + +#include + + +#ifndef EXPORT_LOCKIT + +#undef _CRTIMP +#define _CRTIMP +#include +#undef _CRTIMP + +#else + +#undef _CRTIMP +#define _CRTIMP POLARITY +#include +#undef _CRTIMP + +#endif + +#include +extern POLARITY CCritSec g_cs; + +#include "utillib.h" + +class CFramework_Exception +{ +private: + + CHString m_sErrorText; + HRESULT m_hr; + +public: + + CFramework_Exception ( LPCWSTR lpwszErrorText, HRESULT hr) : m_hr ( hr ) , m_sErrorText ( lpwszErrorText) {} + CFramework_Exception ( LPCWSTR lpwszErrorText) : m_hr ( WBEM_S_NO_ERROR ) , m_sErrorText ( lpwszErrorText) {} + ~CFramework_Exception () {} + + HRESULT GetHRESULT() { return m_hr ; } + CHString &GetErrorText() { return m_sErrorText; } +} ; + +#include "ThrdBase.h" +#include "RefPtrCo.h" +#include "MethodCo.h" +#include "FRQuery.h" +#include "wbemglue.h" +#include "instance.h" + +#ifndef _DBG_ASSERT + #ifdef DBG + #define _DBG_ASSERT(X) { if (!(X)) { DebugBreak(); } } + #else + #define _DBG_ASSERT(X) + #endif +#endif + +// MACRO for tracing the safe string return failure -- currently empty +#ifndef DoTraceHRFailureEmpty +#define DoTraceHRFailureEmpty(hr1, szTraceInfo, hr2) ; +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/GPEdit.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/GPEdit.h new file mode 100644 index 0000000000000000000000000000000000000000..e1a069eab85e3d4798496f43e3299a23fddbfb0a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/GPEdit.h @@ -0,0 +1,863 @@ +//----------------------------------------------------------------------------- +// +// GPEDIT.H - Definitions and prototypes for Group Policy +// +// Copyright 1997-2000, Microsoft Corporation +// +//----------------------------------------------------------------------------- + +// +// Terminology +// +// Group Policy Editor - The tool to view a Group Policy Object. +// +// Group Policy Object - A collection of administrator defined policies. +// Each Group Policy Object (GPO) has both file system +// and Active Directory storage available to it. +// +// IGPEInformation - The interface MMC Snapin Extensions use to +// talk to the Group Policy Editor. +// +// IGroupPolicyObject - The interface used to create/edit a GPO directly +// without going through the Group Policy Editor +// + + +// +// Group Policy Editor MMC SnapIn GUID +// +// {8FC0B734-A0E1-11d1-A7D3-0000F87571E3} + +DEFINE_GUID(CLSID_GPESnapIn, 0x8fc0b734, 0xa0e1, 0x11d1, 0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3); + + +// +// Group Policy Editor node ids +// + +// +// Computer Configuration\Windows Settings +// {8FC0B737-A0E1-11d1-A7D3-0000F87571E3} +// + +DEFINE_GUID(NODEID_Machine, 0x8fc0b737, 0xa0e1, 0x11d1, 0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3); + + +// +// Computer Configuration\Software Settings +// {8FC0B73A-A0E1-11d1-A7D3-0000F87571E3} +// + +DEFINE_GUID(NODEID_MachineSWSettings, 0x8fc0b73a, 0xa0e1, 0x11d1, 0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3); + + +// +// User Configuration\Windows Settings +// {8FC0B738-A0E1-11d1-A7D3-0000F87571E3} +// + +DEFINE_GUID(NODEID_User, 0x8fc0b738, 0xa0e1, 0x11d1, 0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3); + + +// +// User Configuration\Software Settings +// {8FC0B73C-A0E1-11d1-A7D3-0000F87571E3} +// + +DEFINE_GUID(NODEID_UserSWSettings, 0x8fc0b73c, 0xa0e1, 0x11d1, 0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3); + + +// +// IGPEInformation interface id +// +// {8FC0B735-A0E1-11d1-A7D3-0000F87571E3} + +DEFINE_GUID(IID_IGPEInformation, 0x8fc0b735, 0xa0e1, 0x11d1, 0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3); + + +// +// Group Policy Object class id +// +// {EA502722-A23D-11d1-A7D3-0000F87571E3} + +DEFINE_GUID(CLSID_GroupPolicyObject, 0xea502722, 0xa23d, 0x11d1, 0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3); + + +// +// Group Policy Object interface id +// +// {EA502723-A23D-11d1-A7D3-0000F87571E3} + +DEFINE_GUID(IID_IGroupPolicyObject, 0xea502723, 0xa23d, 0x11d1, 0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3); + + +// +// GUID that identifies the registry extension +// + +#define REGISTRY_EXTENSION_GUID { 0x35378EAC, 0x683F, 0x11D2, 0xA8, 0x9A, 0x00, 0xC0, 0x4F, 0xBB, 0xCF, 0xA2 } + + +// +// GUID that identifies the comments extension +// + +#define ADMXCOMMENTS_EXTENSION_GUID { 0x6C5A2A86, 0x9EB3, 0x42b9, 0xAA, 0x83, 0xA7, 0x37, 0x1B, 0xA0, 0x11, 0xB9 } + + +//======================================================================================== +// +// Resultant Set of Policy node ids +// +//======================================================================================== + +// +// Resultant Set of Policy MMC SnapIn GUID +// +// {6DC3804B-7212-458D-ADB0-9A07E2AE1FA2} + +DEFINE_GUID(CLSID_RSOPSnapIn, 0x6dc3804b, 0x7212, 0x458d, 0xad, 0xb0, 0x9a, 0x07, 0xe2, 0xae, 0x1f, 0xa2); + + +// +// Computer Configuration\Windows Settings +// {BD4C1A2E-0B7A-4A62-A6B0-C0577539C97E} +// + +DEFINE_GUID(NODEID_RSOPMachine, 0xbd4c1a2e, 0x0b7a, 0x4a62, 0xa6, 0xb0, 0xc0, 0x57, 0x75, 0x39, 0xc9, 0x7e); + + +// +// Computer Configuration\Software Settings +// {6A76273E-EB8E-45DB-94C5-25663A5f2C1A} +// + +DEFINE_GUID(NODEID_RSOPMachineSWSettings, 0x6a76273e, 0xeb8e, 0x45db, 0x94, 0xc5, 0x25, 0x66, 0x3a, 0x5f, 0x2c, 0x1a); + + +// +// User Configuration\Windows Settings +// {AB87364F-0CEC-4CD8-9BF8-898F34628FB8} +// + +DEFINE_GUID(NODEID_RSOPUser, 0xab87364f, 0x0cec, 0x4cd8, 0x9b, 0xf8, 0x89, 0x8f, 0x34, 0x62, 0x8f, 0xb8); + + +// +// User Configuration\Software Settings +// {E52C5CE3-FD27-4402-84DE-D9A5F2858910} +// + +DEFINE_GUID(NODEID_RSOPUserSWSettings, 0xe52c5ce3, 0xfd27, 0x4402, 0x84, 0xde, 0xd9, 0xa5, 0xf2, 0x85, 0x89, 0x10); + + +// +// IRSOPInformation interface id +// +// {9A5A81B5-D9C7-49EF-9D11-DDF50968C48D} + +DEFINE_GUID(IID_IRSOPInformation, 0x9a5a81b5, 0xd9c7, 0x49ef, 0x9d, 0x11, 0xdd, 0xf5, 0x09, 0x68, 0xc4, 0x8d); + + +#ifndef _GPEDIT_H_ +#define _GPEDIT_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +// +// Define API decoration for direct importing of DLL references. +// + +#if !defined(_GPEDIT_) +#define GPEDITAPI DECLSPEC_IMPORT +#else +#define GPEDITAPI +#endif + + +#ifdef __cplusplus +extern "C" { +#endif + + +#include + + +// +// Group Policy Object Section flags +// + +#define GPO_SECTION_ROOT 0 // Root +#define GPO_SECTION_USER 1 // User +#define GPO_SECTION_MACHINE 2 // Machine + + +// +// Group Policy Object types +// + +#ifndef GROUP_POLICY_OBJECT_TYPE_ENUM_DEFINED +#define GROUP_POLICY_OBJECT_TYPE_ENUM_DEFINED + +typedef enum _GROUP_POLICY_OBJECT_TYPE { + GPOTypeLocal = 0, // Default GPO on the local machine + GPOTypeRemote, // GPO on a remote machine + GPOTypeDS, // GPO in the Active Directory + GPOTypeLocalUser, // User-specific GPO on the local machine + GPOTypeLocalGroup // Group-specific GPO on the local machine +} GROUP_POLICY_OBJECT_TYPE, *PGROUP_POLICY_OBJECT_TYPE; + +#endif // GROUP_POLICY_OBJECT_TYPE_ENUM_DEFINED + +// +// Group Policy Hint types +// + +typedef enum _GROUP_POLICY_HINT_TYPE { + GPHintUnknown = 0, // No link information available + GPHintMachine, // GPO linked to a machine (local or remote) + GPHintSite, // GPO linked to a site + GPHintDomain, // GPO linked to a domain + GPHintOrganizationalUnit, // GPO linked to a organizational unit +} GROUP_POLICY_HINT_TYPE, *PGROUP_POLICY_HINT_TYPE; + + +#undef INTERFACE +#define INTERFACE IGPEInformation +DECLARE_INTERFACE_(IGPEInformation, IUnknown) +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + + // *** IGPEInformation methods *** + + // + // Returns the unique Group Policy Object name (a GUID) + // + // pszName contains the name on return + // cchMaxLength is the max number of characters that can be stored in pszName + // + + STDMETHOD(GetName) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszName, int cchMaxLength) PURE; + + + // + // Returns the friendly display name for this Group Policy Object + // + // pszName contains the name on return + // cchMaxLength is the max number of characters that can be stored in pszName + // + + STDMETHOD(GetDisplayName) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszName, int cchMaxLength) PURE; + + + // + // Returns a registry key handle for the requested section. The returned + // key is the root of the registry, not the Policies subkey. To set / read + // a value in the Policies subkey, you will need to call RegOpenKeyEx to + // open Software\Policies subkey first. + // + // The handle has been opened with ALL ACCESS rights. Call RegCloseKey + // on the handle when finished. + // + // dwSection is either GPO_SECTION_USER or GPO_SECTION_MACHINE + // hKey contains the registry key on return + // + + STDMETHOD(GetRegistryKey) (THIS_ DWORD dwSection, HKEY *hKey) PURE; + + + // + // Returns the Active Directory path to the root of the request section. + // The path is in ADSI name format. + // + // dwSection is one of the GPO_SECTION_* flags + // pszPath contains the path on return + // cchMaxPath is the max number of characters that can be stored in pszPath + // + + STDMETHOD(GetDSPath) (THIS_ DWORD dwSection, _Out_writes_(cchMaxPath) LPOLESTR pszPath, int cchMaxPath) PURE; + + + // + // Returns the UNC path to the root of the requested section. + // + // dwSection is one of the GPO_SECTION_* flags + // pszPath contains the path on return + // cchMaxPath is the number of characters that can be stored in pszPath. + // + + STDMETHOD(GetFileSysPath) (THIS_ DWORD dwSection, _Out_writes_(cchMaxPath) LPOLESTR pszPath, int cchMaxPath) PURE; + + + // + // Returns the user preferences (options) + // + // Currently, there are no options defined. This is reserved for future use. + // + // dwOptions receives a bitmask value + // + + STDMETHOD(GetOptions) (THIS_ DWORD *dwOptions) PURE; + + + // + // Returns the type of GPO being edited. + // + // The three types are: a GPO in the Active Directory, the GPO on the local machine, + // and the GPO on a remote machine. + // + // Machine GPOs only have file system storage (no Active Directory storage available). + // If GetDSPath is called for a machine GPO, the function will succeed + // and the returned buffer will be the empty string "" + // + // Active Directory GPOs have both file system and Active Directory storage available to them. + // + // gpoType receives one of the type flags listed above. + // + + STDMETHOD(GetType) (THIS_ GROUP_POLICY_OBJECT_TYPE *gpoType) PURE; + + + // + // Returns the type of Active Directory object (or machine) that could be linked to + // this GPO + // + // This is a hint api only. The GPE does not know which Active Directory objects are + // linked to a particular GPO, but it can offer a hint based upon how the + // user started the GPE. + // + // Use this method with great caution. Some extensions might want to + // customize their user interface based upon the scoping for this GPO, + // but it is easy to offer the wrong namespace. Best advice is to + // always offer your full user interface, but if you choose to use this + // method, always offer your full user interface if you recieve the + // unknown hint back. + // + // gpHint receives one of the hint flags listed above. + // + + STDMETHOD(GetHint) (THIS_ GROUP_POLICY_HINT_TYPE *gpHint) PURE; + + + // + // Informs the Group Policy Editor that policy settings have changed. + // Extensions MUST call this methold every time a change is made + // to a Group Policy Object. + // + // bMachine specifies if machine or user policy has changed. + // bAdd specifies whether this is an add or delete. + // pGuidExtension is the guid or unique name of extension that + // will process this GPO. + // pGuidSnapin is the guid or unique name of snapin that is making + // this call + // + + STDMETHOD(PolicyChanged) (THIS_ BOOL bMachine, BOOL bAdd, GUID *pGuidExtension, GUID *pGuidSnapin ) PURE; +}; +typedef IGPEInformation *LPGPEINFORMATION; + + +// +// Group Policy Object open / creation flags +// + +#define GPO_OPEN_LOAD_REGISTRY 0x00000001 // Load the registry files +#define GPO_OPEN_READ_ONLY 0x00000002 // Open the GPO as read only + + + +// +// Group Policy Object option flags +// + +#define GPO_OPTION_DISABLE_USER 0x00000001 // The user portion of this GPO is disabled +#define GPO_OPTION_DISABLE_MACHINE 0x00000002 // The machine portion of this GPO is disabled + + +#undef INTERFACE +#define INTERFACE IGroupPolicyObject +DECLARE_INTERFACE_(IGroupPolicyObject, IUnknown) +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + + // *** IGroupPolicyObject methods *** + + // + // Creates a new GPO in the Active Directory with the given friendly name + // and opens it via OpenDSGPO(). If pszDomainName contains a domain + // controller name, the GPO will be created on that DC. If it does not + // specify a domain controller name, the method will select a DC on + // the callers behalf. + // + // pszDomainName contains the ADSI path of the domain root + // pszDisplayName contains the friendly display name + // dwFlags is a bitmask of GPO open / creation flags listed above + // + + STDMETHOD(New) (THIS_ _In_ LPOLESTR pszDomainName, _In_opt_ LPOLESTR pszDisplayName, + DWORD dwFlags) PURE; + + + // + // Opens the specified Group Policy Object in the Active Directory + // based upon the passed in flags. If pszPath contains a domain + // controller name, the GPO will be opened on that DC. If it does + // not contain a domain controller name, the method will select a + // DC on the callers behalf. If the registry is not loaded, + // GetRegistryKey() will return E_FAIL. + // + // pszPath contains the ADSI path to the GPO to open + // dwFlags is a bitmask of GPO open / creation flags listed above + // + + STDMETHOD(OpenDSGPO) (THIS_ _In_ LPOLESTR pszPath, DWORD dwFlags) PURE; + + + // + // Opens the default Group Policy Object on this machine with the + // dwFlags options listed above. If the registry is not loaded, + // GetRegistryKey() will return E_FAIL. + // + // dwFlags is a bitmask of GPO open / creation flags listed above + // + + STDMETHOD(OpenLocalMachineGPO) (THIS_ DWORD dwFlags) PURE; + + + // + // Opens the default Group Policy Object on a remote machine with the + // dwFlags options listed above. If the registry is not loaded, + // GetRegistryKey() will return E_FAIL. + // + // pszComputerName contains the machine name in \\machine format + // dwFlags is a bitmask of GPO open / creation flags listed above + // + + STDMETHOD(OpenRemoteMachineGPO) (THIS_ _In_ LPOLESTR pszComputerName, DWORD dwFlags) PURE; + + + // + // Flushes the registry settings to disk and updates the revision + // number of the GPO. + // + // bMachine specifies if machine or user should be saved. + // bAdd specifies whether this is an add or delete. + // pGuidExtension is the guid or unique name of extension that + // will process this GPO. + // pGuid is a guid + // + + STDMETHOD(Save) (THIS_ BOOL bMachine, BOOL bAdd, GUID *pGuidExtension, GUID *pGuid ) PURE; + + + // + // Deletes this Group Policy Object. + // + // After calling this method, no other methods are valid to call + // since the data will have been deleted. + // + + STDMETHOD(Delete) (THIS) PURE; + + + // + // Returns the unique Group Policy Object name + // + // For Active Directory policy objects, this is a GUID + // For the local policy object, it is the string "Local" + // For remote policy objects, it is the computername + // + // pszName contains the name on return + // cchMaxLength is the max number of characters that can be stored in pszName + // + + STDMETHOD(GetName) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszName, int cchMaxLength) PURE; + + + // + // Returns the friendly display name for this Group Policy Object + // + // pszName contains the name on return + // cchMaxLength is the max number of characters that can be stored in pszName + // + + STDMETHOD(GetDisplayName) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszName, int cchMaxLength) PURE; + + + // + // Sets the friendly display name for this Group Policy Object + // + // pszName is the new display name + // + + STDMETHOD(SetDisplayName) (THIS_ _In_ LPOLESTR pszName) PURE; + + + // + // Returns the path to the Group Policy Object + // + // + // If the GPO is an Active Directory object, the path is in ADSI name format. + // If the GPO is a machine object, it is a file system path + // + // pszPath contains the path on return + // cchMaxPath is the max number of characters that can be stored in pszPath + // + + STDMETHOD(GetPath) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszPath, int cchMaxLength) PURE; + + + // + // Returns the Active Directory path to the root of the request section. + // The path is in DN name format. + // + // dwSection is one of the GPO_SECTION_* flags + // pszPath contains the path on return + // cchMaxPath is the max number of characters that can be stored in pszPath + // + + STDMETHOD(GetDSPath) (THIS_ DWORD dwSection, _Out_writes_(cchMaxPath) LPOLESTR pszPath, int cchMaxPath) PURE; + + + // + // Returns the UNC path to the root of the requested section. + // + // dwSection is one of the GPO_SECTION_* flags + // pszPath contains the path on return + // cchMaxPath is the number of characters that can be stored in pszPath. + // + + STDMETHOD(GetFileSysPath) (THIS_ DWORD dwSection, _Out_writes_(cchMaxPath) LPOLESTR pszPath, int cchMaxPath) PURE; + + + // + // Returns a registry key handle for the requested section. The returned + // key is the root of the registry, not the Policies subkey. To set / read + // a value in the Policies subkey, you will need to call RegOpenKeyEx to + // open Software\Policies subkey first. + // + // The handle has been opened with ALL ACCESS rights. Call RegCloseKey + // on the handle when finished. + // + // If the GPO was loaded / created without the registry being loaded + // this method will return E_FAIL. + // + // dwSection is either GPO_SECTION_USER or GPO_SECTION_MACHINE + // hKey contains the registry key on return + // + + STDMETHOD(GetRegistryKey) (THIS_ DWORD dwSection, HKEY *hKey) PURE; + + + // + // Returns any options for this Group Policy Object + // + // dwOptions receives the GPO_OPTION_* flags + // + + STDMETHOD(GetOptions) (THIS_ DWORD *dwOptions) PURE; + + + // + // Sets any options for this Group Policy Object + // + // This method sets any options for this GPO. To change + // an option, that flag must be set in the mask field. + // If the flag is in the mask field, then the dwOptions + // field is read for the current state. + // + // For example: to disable the GPO, make this call + // + // SetOptions (GPO_OPTION_DISABLED, GPO_OPTION_DISABLED); + // + // dwOptions specifies one or more GPO_OPTION_* flags + // dwMask specificies which of the dwOptions to change + // + + STDMETHOD(SetOptions) (THIS_ DWORD dwOptions, DWORD dwMask) PURE; + + + // + // Returns the type of GPO being edited. + // + // The three types are: a GPO in the Active Directory, the GPO on the local machine, + // and the GPO on a remote machine. + // + // Machine GPOs only have file system storage (no Active Directory storage available). + // If GetDSPath is called for a machine GPO, the function will succeed + // and the returned buffer will be the empty string "" + // + // Active Directory GPOs have both file system and Active Directory storage available to them. + // + // gpoType receives one of the type flags + // + + STDMETHOD(GetType) (THIS_ GROUP_POLICY_OBJECT_TYPE *gpoType) PURE; + + + // + // Returns the machine name of the remote GPO + // + // This method returns the name passed to OpenRemoteMachineGPO. + // + // pszName contains the name on return + // cchMaxLength is the max number of characters that can be stored in pszName + // + + STDMETHOD(GetMachineName) (THIS_ _Out_writes_(cchMaxLength) LPOLESTR pszName, int cchMaxLength) PURE; + + + // + // Returns an array of property sheet pages and the number of pages + // in the array + // + // Note, this method will allocate memory for the array with + // LocalAlloc. When finished, the caller should free the array + // with LocalFree + // + // hPages address of the pointer for the array of property sheet pages + // uPageCount receives the number of pages in the array + // + + STDMETHOD(GetPropertySheetPages) (THIS_ HPROPSHEETPAGE **hPages, UINT *uPageCount) PURE; +}; +typedef IGroupPolicyObject *LPGROUPPOLICYOBJECT; + + +// +// RSOP flags +// + +#define RSOP_INFO_FLAG_DIAGNOSTIC_MODE 0x00000001 // Running in diagnostic mode vs planning mode + +#undef INTERFACE +#define INTERFACE IRSOPInformation +DECLARE_INTERFACE_(IRSOPInformation, IUnknown) +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + + // *** IRSOPInformation methods *** + + // + // Returns the namespace for the RSOP data + // + // dwSection is either GPO_SECTION_USER or GPO_SECTION_MACHINE + // pszName contains the namespace on return + // cchMaxLength is the max number of characters that can be stored in pszName + // + + STDMETHOD(GetNamespace) (THIS_ DWORD dwSection, _Out_writes_(cchMaxLength) LPOLESTR pszName, int cchMaxLength) PURE; + + + // + // Returns information about the RSOP session + // + // pdwFlags points to a DWORD which contains the flags on return + // + + STDMETHOD(GetFlags) (THIS_ DWORD * pdwFlags) PURE; + + + // + // Returns the event log text for a specific entry + // + // lpEventSource - event log source name + // lpEventLogName - event log name + // lpEventTime - event log time in WMI datetime format + // dwEventID - event ID + // lpText - Receives a pointer to a buffer containing the text. + // The caller should free this buffer with CoTaskMemFree. + // + + STDMETHOD(GetEventLogEntryText) (THIS_ _In_ LPOLESTR pszEventSource, _In_ LPOLESTR pszEventLogName, + _In_ LPOLESTR pszEventTime, DWORD dwEventID, _Outptr_ LPOLESTR *ppszText) PURE; + +}; +typedef IRSOPInformation *LPRSOPINFORMATION; + + +//============================================================================= +// +// CreateGPOLink +// +// Creates a link to a GPO for the specified Site, Domain, or Organizational Unit +// +// lpGPO - ADSI path to the GPO +// lpContainer - ADSI path to the Site, Domain, or Organizational Unit +// fHighPriority - Create the link as the highest or lowest priority +// +// Returns: S_OK if successful +// +//============================================================================= + +GPEDITAPI +HRESULT +WINAPI +CreateGPOLink( + _In_ LPOLESTR lpGPO, + _In_ LPOLESTR lpContainer, + BOOL fHighPriority); + + +//============================================================================= +// +// DeleteGPOLink +// +// Deletes a link to a GPO for the specified Site, Domain, or Organizational Unit +// +// lpGPO - ADSI path to the GPO +// lpContainer - ADSI path to the Site, Domain, or Organizational Unit +// +// Returns: S_OK if successful +// +//============================================================================= + +GPEDITAPI +HRESULT +WINAPI +DeleteGPOLink( + _In_ LPOLESTR lpGPO, + _In_ LPOLESTR lpContainer); + + +//============================================================================= +// +// DeleteAllGPOLinks +// +// Deletes all GPO links for the specified Site, Domain, or Organizational Unit +// +// lpContainer - ADSI path to the Site, Domain, or Organizational Unit +// +// Returns: S_OK if successful +// +//============================================================================= + +GPEDITAPI +HRESULT +WINAPI +DeleteAllGPOLinks( + _In_ LPOLESTR lpContainer); + + +//============================================================================= +// +// BrowseForGPO +// +// Displays the GPO browser dialog +// +// lpBrowseInfo - Address of a GPOBROWSEINFO structure +// +// Returns: S_OK if successful +// +//============================================================================= + +// +// Flags passed in the dwFlags field of the GPOBROWSEINFO structure +// + +#define GPO_BROWSE_DISABLENEW 0x00000001 // Disables the New GPO functionality on all pages except "All" +#define GPO_BROWSE_NOCOMPUTERS 0x00000002 // Removes the Computers tab +#define GPO_BROWSE_NODSGPOS 0x00000004 // Removes the Domain/OU and Sites tabs +#define GPO_BROWSE_OPENBUTTON 0x00000008 // Change the Ok button to say Open +#define GPO_BROWSE_INITTOALL 0x00000010 // Initialize the dialog focused on the All pane +#define GPO_BROWSE_NOUSERGPOS 0x00000020 // Removes the Users tab +#define GPO_BROWSE_SENDAPPLYONEDIT 0x00000040 // Send the apply event if edit menu is selected + +typedef struct tag_GPOBROWSEINFO +{ + DWORD dwSize; // [in] Initialized to the size of this structure + DWORD dwFlags; // [in] Flags defined above + HWND hwndOwner; // [in] Parent window handle (can be NULL) + LPOLESTR lpTitle; // [in] Title bar text. If NULL, "Browse for a Group Policy Object" will be the default text + LPOLESTR lpInitialOU; // [in] Initial Domain/Organizational Unit to open focus on + _Field_size_(dwDSPathSize) LPOLESTR lpDSPath; // [in/out] Pointer to the buffer that receives the Active Directory GPO path + DWORD dwDSPathSize; // [in] Size in characters of buffer given in lpDSPath + _Field_size_bytes_( dwNameSize) LPOLESTR lpName; // [in/out] Pointer to a buffer that receives either the computer name or + // the friendly name of the GPO (can be NULL) + DWORD dwNameSize; // [in] Size in characters of buffer given in lpName + GROUP_POLICY_OBJECT_TYPE gpoType; // [out] Specifies the type of GPO + GROUP_POLICY_HINT_TYPE gpoHint; // [out] Specifies a hint of the GPO association +} GPOBROWSEINFO, *LPGPOBROWSEINFO; + + +GPEDITAPI +HRESULT +WINAPI +BrowseForGPO( + LPGPOBROWSEINFO lpBrowseInfo); + + +//============================================================================= +// +// ImportRSoPData +// +// Imports a data file generated by ExportRSoPData +// +// lpNameSpace - Namespace to place the data in +// lpFileName - Filename containing the data +// +// Returns: S_OK if successful +// +// Notes: The namespace specified in lpNameSpace must exist prior to calling +// this function. +// +//============================================================================= + +GPEDITAPI +HRESULT +WINAPI +ImportRSoPData( + _In_ LPOLESTR lpNameSpace, + _In_ LPOLESTR lpFileName); + + +//============================================================================= +// +// ExportRSoPData +// +// Exports a WBEM namespace containing RSoP information to a data file. +// This data file can be imported to a WBEM namespace using ImportRSoPData. +// +// lpNameSpace - Namespace to read the data from +// lpFileName - Filename to receive the data +// +// Returns: S_OK if successful +// +// Notes: This function should be called twice. Once for the user data +// and once for the computer data. +// +//============================================================================= + +GPEDITAPI +HRESULT +WINAPI +ExportRSoPData( + _In_ LPOLESTR lpNameSpace, + _In_ LPOLESTR lpFileName); + +#ifdef __cplusplus +} +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _GPEDIT_H_ */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/GPIOButtonTypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/GPIOButtonTypes.h new file mode 100644 index 0000000000000000000000000000000000000000..3aa828d0a9616bfc851cbb9a4842b3442e5e2822 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/GPIOButtonTypes.h @@ -0,0 +1,73 @@ +//---------------------------------------------------------------------------- +// +// File: GPIOButtonTypes.h (Shared with Button Injection Tool) +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//---------------------------------------------------------------------------- + + +#pragma once + +typedef enum +{ + GPIO_BUTTON_POWER = 0, + GPIO_BUTTON_WINDOWS = 1, + GPIO_BUTTON_VOLUME_UP = 2, + GPIO_BUTTON_VOLUME_DOWN = 3, + GPIO_BUTTON_ROTATION_LOCK = 4, + GPIO_BUTTON_BACK = 5, + GPIO_BUTTON_SEARCH = 6, + GPIO_BUTTON_CAMERA_FOCUS = 7, + GPIO_BUTTON_CAMERA_SHUTTER = 8, + GPIO_BUTTON_RINGER_TOGGLE = 9, + GPIO_BUTTON_HEADSET = 10, + GPIO_BUTTON_HWKB_DEPLOY = 11, + GPIO_BUTTON_CAMERA_LENS = 12, + GPIO_BUTTON_OEM_CUSTOM = 13, + GPIO_BUTTON_OEM_CUSTOM2 = 14, + GPIO_BUTTON_OEM_CUSTOM3 = 15, + + GPIO_BUTTON_COUNT_MIN = 5, + GPIO_BUTTON_COUNT = 16 +} GPIOBUTTONS_BUTTON_TYPE; + + +// +// Button Bits for reference. We can bitshift to get this based on the +// GPIOBUTTONS_BUTTON_TYPE. +// + +#define BUTTON_BIT_POWER 0x0001 +#define BUTTON_BIT_WINDOWS 0x0002 +#define BUTTON_BIT_VOLUMEUP 0x0004 +#define BUTTON_BIT_VOLUMEDOWN 0x0008 +#define BUTTON_BIT_ROTATION_LOCK 0x0010 +#define BUTTON_BIT_BACK 0x0020 +#define BUTTON_BIT_SEARCH 0x0040 +#define BUTTON_BIT_CAMERAFOCUS 0x0080 +#define BUTTON_BIT_CAMERASHUTTER 0x0100 +#define BUTTON_BIT_RINGERTOGGLE 0x0200 +#define BUTTON_BIT_HEADSET 0x0400 +#define BUTTON_BIT_HWKBDEPLOY 0x0800 +#define BUTTON_BIT_CAMERALENS 0x1000 +#define BUTTON_BIT_OEMCUSTOM 0x2000 +#define BUTTON_BIT_OEMCUSTOM2 0x4000 +#define BUTTON_BIT_OEMCUSTOM3 0x8000 +#define BUTTON_BIT_ALLBUTTONSMASK 0x3FFF + + +#define IOCTL_BUTTON_SET_ENABLED_ON_IDLE \ + CTL_CODE(FILE_DEVICE_KEYBOARD, 170, METHOD_BUFFERED, FILE_ANY_ACCESS) + +typedef struct _INPUT_BUTTON_ENABLE_INFO +{ + GPIOBUTTONS_BUTTON_TYPE ButtonType; + BOOLEAN Enabled; +} INPUT_BUTTON_ENABLE_INFO, *PINPUT_BUTTON_ENABLE_INFO; + + +#define IOCTL_BUTTON_GET_ENABLED_ON_IDLE \ + CTL_CODE(FILE_DEVICE_KEYBOARD, 171, METHOD_BUFFERED, FILE_ANY_ACCESS) + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/GameInput.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/GameInput.h new file mode 100644 index 0000000000000000000000000000000000000000..da08997b5e04771b7992067b51e278f60128d33f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/GameInput.h @@ -0,0 +1,1628 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. + +#if (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef __gameinput_h__ +#define __gameinput_h__ + +#include +#include + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum GameInputKind +{ + GameInputKindUnknown = 0x00000000, + GameInputKindRawDeviceReport = 0x00000001, + GameInputKindControllerAxis = 0x00000002, + GameInputKindControllerButton = 0x00000004, + GameInputKindControllerSwitch = 0x00000008, + GameInputKindController = 0x0000000E, + GameInputKindKeyboard = 0x00000010, + GameInputKindMouse = 0x00000020, + GameInputKindTouch = 0x00000100, + GameInputKindMotion = 0x00001000, + GameInputKindArcadeStick = 0x00010000, + GameInputKindFlightStick = 0x00020000, + GameInputKindGamepad = 0x00040000, + GameInputKindRacingWheel = 0x00080000, + GameInputKindUiNavigation = 0x01000000 +} GameInputKind; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputKind); + +typedef enum GameInputEnumerationKind +{ + GameInputNoEnumeration = 0, + GameInputAsyncEnumeration = 1, + GameInputBlockingEnumeration = 2 +} GameInputEnumerationKind; + +typedef enum GameInputFocusPolicy +{ + GameInputDefaultFocusPolicy = 0x00000000, + GameInputDisableBackgroundInput = 0x00000001, + GameInputExclusiveForegroundInput = 0x00000002, + GameInputDisableBackgroundGuideButton = 0x00000004, + GameInputExclusiveForegroundGuideButton = 0x00000008, + GameInputDisableBackgroundShareButton = 0x00000010, + GameInputExclusiveForegroundShareButton = 0x00000020 +} GameInputFocusPolicy; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputFocusPolicy); + +typedef enum GameInputSwitchKind +{ + GameInputUnknownSwitchKind = -1, + GameInput2WaySwitch = 0, + GameInput4WaySwitch = 1, + GameInput8WaySwitch = 2 +} GameInputSwitchKind; + +typedef enum GameInputSwitchPosition +{ + GameInputSwitchCenter = 0, + GameInputSwitchUp = 1, + GameInputSwitchUpRight = 2, + GameInputSwitchRight = 3, + GameInputSwitchDownRight = 4, + GameInputSwitchDown = 5, + GameInputSwitchDownLeft = 6, + GameInputSwitchLeft = 7, + GameInputSwitchUpLeft = 8 +} GameInputSwitchPosition; + +typedef enum GameInputKeyboardKind +{ + GameInputUnknownKeyboard = -1, + GameInputAnsiKeyboard = 0, + GameInputIsoKeyboard = 1, + GameInputKsKeyboard = 2, + GameInputAbntKeyboard = 3, + GameInputJisKeyboard = 4 +} GameInputKeyboardKind; + +typedef enum GameInputMouseButtons +{ + GameInputMouseNone = 0x00000000, + GameInputMouseLeftButton = 0x00000001, + GameInputMouseRightButton = 0x00000002, + GameInputMouseMiddleButton = 0x00000004, + GameInputMouseButton4 = 0x00000008, + GameInputMouseButton5 = 0x00000010, + GameInputMouseWheelTiltLeft = 0x00000020, + GameInputMouseWheelTiltRight = 0x00000040 +} GameInputMouseButtons; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputMouseButtons) + +typedef enum GameInputTouchShape +{ + GameInputTouchShapeUnknown = -1, + GameInputTouchShapePoint = 0, + GameInputTouchShape1DLinear = 1, + GameInputTouchShape1DRadial = 2, + GameInputTouchShape1DIrregular = 3, + GameInputTouchShape2DRectangular = 4, + GameInputTouchShape2DElliptical = 5, + GameInputTouchShape2DIrregular = 6 +} GameInputTouchShape; + +typedef enum GameInputMotionAccuracy +{ + GameInputMotionAccuracyUnknown = -1, + GameInputMotionUnavailable = 0, + GameInputMotionUnreliable = 1, + GameInputMotionApproximate = 2, + GameInputMotionAccurate = 3 +} GameInputMotionAccuracy; + +typedef enum GameInputArcadeStickButtons +{ + GameInputArcadeStickNone = 0x00000000, + GameInputArcadeStickMenu = 0x00000001, + GameInputArcadeStickView = 0x00000002, + GameInputArcadeStickUp = 0x00000004, + GameInputArcadeStickDown = 0x00000008, + GameInputArcadeStickLeft = 0x00000010, + GameInputArcadeStickRight = 0x00000020, + GameInputArcadeStickAction1 = 0x00000040, + GameInputArcadeStickAction2 = 0x00000080, + GameInputArcadeStickAction3 = 0x00000100, + GameInputArcadeStickAction4 = 0x00000200, + GameInputArcadeStickAction5 = 0x00000400, + GameInputArcadeStickAction6 = 0x00000800, + GameInputArcadeStickSpecial1 = 0x00001000, + GameInputArcadeStickSpecial2 = 0x00002000 +} GameInputArcadeStickButtons; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputArcadeStickButtons) + +typedef enum GameInputFlightStickButtons +{ + GameInputFlightStickNone = 0x00000000, + GameInputFlightStickMenu = 0x00000001, + GameInputFlightStickView = 0x00000002, + GameInputFlightStickFirePrimary = 0x00000004, + GameInputFlightStickFireSecondary = 0x00000008 +} GameInputFlightStickButtons; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputFlightStickButtons) + +typedef enum GameInputGamepadButtons +{ + GameInputGamepadNone = 0x00000000, + GameInputGamepadMenu = 0x00000001, + GameInputGamepadView = 0x00000002, + GameInputGamepadA = 0x00000004, + GameInputGamepadB = 0x00000008, + GameInputGamepadX = 0x00000010, + GameInputGamepadY = 0x00000020, + GameInputGamepadDPadUp = 0x00000040, + GameInputGamepadDPadDown = 0x00000080, + GameInputGamepadDPadLeft = 0x00000100, + GameInputGamepadDPadRight = 0x00000200, + GameInputGamepadLeftShoulder = 0x00000400, + GameInputGamepadRightShoulder = 0x00000800, + GameInputGamepadLeftThumbstick = 0x00001000, + GameInputGamepadRightThumbstick = 0x00002000 +} GameInputGamepadButtons; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputGamepadButtons) + +typedef enum GameInputRacingWheelButtons +{ + GameInputRacingWheelNone = 0x00000000, + GameInputRacingWheelMenu = 0x00000001, + GameInputRacingWheelView = 0x00000002, + GameInputRacingWheelPreviousGear = 0x00000004, + GameInputRacingWheelNextGear = 0x00000008, + GameInputRacingWheelDpadUp = 0x00000010, + GameInputRacingWheelDpadDown = 0x00000020, + GameInputRacingWheelDpadLeft = 0x00000040, + GameInputRacingWheelDpadRight = 0x00000080 +} GameInputRacingWheelButtons; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputRacingWheelButtons) + +typedef enum GameInputUiNavigationButtons +{ + GameInputUiNavigationNone = 0x00000000, + GameInputUiNavigationMenu = 0x00000001, + GameInputUiNavigationView = 0x00000002, + GameInputUiNavigationAccept = 0x00000004, + GameInputUiNavigationCancel = 0x00000008, + GameInputUiNavigationUp = 0x00000010, + GameInputUiNavigationDown = 0x00000020, + GameInputUiNavigationLeft = 0x00000040, + GameInputUiNavigationRight = 0x00000080, + GameInputUiNavigationContext1 = 0x00000100, + GameInputUiNavigationContext2 = 0x00000200, + GameInputUiNavigationContext3 = 0x00000400, + GameInputUiNavigationContext4 = 0x00000800, + GameInputUiNavigationPageUp = 0x00001000, + GameInputUiNavigationPageDown = 0x00002000, + GameInputUiNavigationPageLeft = 0x00004000, + GameInputUiNavigationPageRight = 0x00008000, + GameInputUiNavigationScrollUp = 0x00010000, + GameInputUiNavigationScrollDown = 0x00020000, + GameInputUiNavigationScrollLeft = 0x00040000, + GameInputUiNavigationScrollRight = 0x00080000 +} GameInputUiNavigationButtons; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputUiNavigationButtons) + +typedef enum GameInputSystemButtons +{ + GameInputSystemButtonNone = 0x00000000, + GameInputSystemButtonGuide = 0x00000001, + GameInputSystemButtonShare = 0x00000002 +} GameInputSystemButtons; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputSystemButtons) + +typedef enum GameInputDeviceStatus +{ + GameInputDeviceNoStatus = 0x00000000, + GameInputDeviceConnected = 0x00000001, + GameInputDeviceInputEnabled = 0x00000002, + GameInputDeviceOutputEnabled = 0x00000004, + GameInputDeviceRawIoEnabled = 0x00000008, + GameInputDeviceAudioCapture = 0x00000010, + GameInputDeviceAudioRender = 0x00000020, + GameInputDeviceSynchronized = 0x00000040, + GameInputDeviceWireless = 0x00000080, + GameInputDeviceUserIdle = 0x00100000, + GameInputDeviceAnyStatus = 0x00FFFFFF +} GameInputDeviceStatus; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputDeviceStatus); + +typedef enum GameInputBatteryStatus +{ + GameInputBatteryUnknown = -1, + GameInputBatteryNotPresent = 0, + GameInputBatteryDischarging = 1, + GameInputBatteryIdle = 2, + GameInputBatteryCharging = 3 +} GameInputBatteryStatus; + +typedef enum GameInputDeviceFamily +{ + GameInputFamilyVirtual = -1, + GameInputFamilyAggregate = 0, + GameInputFamilyXboxOne = 1, + GameInputFamilyXbox360 = 2, + GameInputFamilyHid = 3, + GameInputFamilyI8042 = 4 +} GameInputDeviceFamily; + +typedef enum GameInputDeviceCapabilities +{ + GameInputDeviceCapabilityNone = 0x00000000, + GameInputDeviceCapabilityAudio = 0x00000001, + GameInputDeviceCapabilityPluginModule = 0x00000002, + GameInputDeviceCapabilityPowerOff = 0x00000004, + GameInputDeviceCapabilitySynchronization = 0x00000008, + GameInputDeviceCapabilityWireless = 0x00000010 +} GameInputDeviceCapabilities; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputDeviceCapabilities) + +typedef enum GameInputRawDeviceReportKind +{ + GameInputRawInputReport = 0, + GameInputRawOutputReport = 1, + GameInputRawFeatureReport = 2 +} GameInputRawDeviceReportKind; + +typedef enum GameInputRawDeviceReportItemFlags +{ + GameInputDefaultItem = 0x00000000, + GameInputConstantItem = 0x00000001, + GameInputArrayItem = 0x00000002, + GameInputRelativeItem = 0x00000004, + GameInputWraparoundItem = 0x00000008, + GameInputNonlinearItem = 0x00000010, + GameInputStableItem = 0x00000020, + GameInputNullableItem = 0x00000040, + GameInputVolatileItem = 0x00000080, + GameInputBufferedItem = 0x00000100 +} GameInputRawDeviceReportItemFlags; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputRawDeviceReportItemFlags) + +typedef enum GameInputRawDeviceItemCollectionKind +{ + GameInputUnknownItemCollection = -1, + GameInputPhysicalItemCollection = 0, + GameInputApplicationItemCollection = 1, + GameInputLogicalItemCollection = 2, + GameInputReportItemCollection = 3, + GameInputNamedArrayItemCollection = 4, + GameInputUsageSwitchItemCollection = 5, + GameInputUsageModifierItemCollection = 6 +} GameInputRawDeviceItemCollectionKind; + +typedef enum GameInputRawDevicePhysicalUnitKind +{ + GameInputPhysicalUnitUnknown = -1, + GameInputPhysicalUnitNone = 0, + GameInputPhysicalUnitTime = 1, + GameInputPhysicalUnitFrequency = 2, + GameInputPhysicalUnitLength = 3, + GameInputPhysicalUnitVelocity = 4, + GameInputPhysicalUnitAcceleration = 5, + GameInputPhysicalUnitMass = 6, + GameInputPhysicalUnitMomentum = 7, + GameInputPhysicalUnitForce = 8, + GameInputPhysicalUnitPressure = 9, + GameInputPhysicalUnitAngle = 10, + GameInputPhysicalUnitAngularVelocity = 11, + GameInputPhysicalUnitAngularAcceleration = 12, + GameInputPhysicalUnitAngularMass = 13, + GameInputPhysicalUnitAngularMomentum = 14, + GameInputPhysicalUnitAngularTorque = 15, + GameInputPhysicalUnitElectricCurrent = 16, + GameInputPhysicalUnitElectricCharge = 17, + GameInputPhysicalUnitElectricPotential = 18, + GameInputPhysicalUnitEnergy = 19, + GameInputPhysicalUnitPower = 20, + GameInputPhysicalUnitTemperature = 21, + GameInputPhysicalUnitLuminousIntensity = 22, + GameInputPhysicalUnitLuminousFlux = 23, + GameInputPhysicalUnitIlluminance = 24 +} GameInputRawDevicePhysicalUnitKind; + +typedef enum GameInputLabel +{ + GameInputLabelUnknown = -1, + GameInputLabelNone = 0, + GameInputLabelXboxGuide = 1, + GameInputLabelXboxBack = 2, + GameInputLabelXboxStart = 3, + GameInputLabelXboxMenu = 4, + GameInputLabelXboxView = 5, + GameInputLabelXboxA = 7, + GameInputLabelXboxB = 8, + GameInputLabelXboxX = 9, + GameInputLabelXboxY = 10, + GameInputLabelXboxDPadUp = 11, + GameInputLabelXboxDPadDown = 12, + GameInputLabelXboxDPadLeft = 13, + GameInputLabelXboxDPadRight = 14, + GameInputLabelXboxLeftShoulder = 15, + GameInputLabelXboxLeftTrigger = 16, + GameInputLabelXboxLeftStickButton = 17, + GameInputLabelXboxRightShoulder = 18, + GameInputLabelXboxRightTrigger = 19, + GameInputLabelXboxRightStickButton = 20, + GameInputLabelXboxPaddle1 = 21, + GameInputLabelXboxPaddle2 = 22, + GameInputLabelXboxPaddle3 = 23, + GameInputLabelXboxPaddle4 = 24, + GameInputLabelLetterA = 25, + GameInputLabelLetterB = 26, + GameInputLabelLetterC = 27, + GameInputLabelLetterD = 28, + GameInputLabelLetterE = 29, + GameInputLabelLetterF = 30, + GameInputLabelLetterG = 31, + GameInputLabelLetterH = 32, + GameInputLabelLetterI = 33, + GameInputLabelLetterJ = 34, + GameInputLabelLetterK = 35, + GameInputLabelLetterL = 36, + GameInputLabelLetterM = 37, + GameInputLabelLetterN = 38, + GameInputLabelLetterO = 39, + GameInputLabelLetterP = 40, + GameInputLabelLetterQ = 41, + GameInputLabelLetterR = 42, + GameInputLabelLetterS = 43, + GameInputLabelLetterT = 44, + GameInputLabelLetterU = 45, + GameInputLabelLetterV = 46, + GameInputLabelLetterW = 47, + GameInputLabelLetterX = 48, + GameInputLabelLetterY = 49, + GameInputLabelLetterZ = 50, + GameInputLabelNumber0 = 51, + GameInputLabelNumber1 = 52, + GameInputLabelNumber2 = 53, + GameInputLabelNumber3 = 54, + GameInputLabelNumber4 = 55, + GameInputLabelNumber5 = 56, + GameInputLabelNumber6 = 57, + GameInputLabelNumber7 = 58, + GameInputLabelNumber8 = 59, + GameInputLabelNumber9 = 60, + GameInputLabelArrowUp = 61, + GameInputLabelArrowUpRight = 62, + GameInputLabelArrowRight = 63, + GameInputLabelArrowDownRight = 64, + GameInputLabelArrowDown = 65, + GameInputLabelArrowDownLLeft = 66, + GameInputLabelArrowLeft = 67, + GameInputLabelArrowUpLeft = 68, + GameInputLabelArrowUpDown = 69, + GameInputLabelArrowLeftRight = 70, + GameInputLabelArrowUpDownLeftRight = 71, + GameInputLabelArrowClockwise = 72, + GameInputLabelArrowCounterClockwise = 73, + GameInputLabelArrowReturn = 74, + GameInputLabelIconBranding = 75, + GameInputLabelIconHome = 76, + GameInputLabelIconMenu = 77, + GameInputLabelIconCross = 78, + GameInputLabelIconCircle = 79, + GameInputLabelIconSquare = 80, + GameInputLabelIconTriangle = 81, + GameInputLabelIconStar = 82, + GameInputLabelIconDPadUp = 83, + GameInputLabelIconDPadDown = 84, + GameInputLabelIconDPadLeft = 85, + GameInputLabelIconDPadRight = 86, + GameInputLabelIconDialClockwise = 87, + GameInputLabelIconDialCounterClockwise = 88, + GameInputLabelIconSliderLeftRight = 89, + GameInputLabelIconSliderUpDown = 90, + GameInputLabelIconWheelUpDown = 91, + GameInputLabelIconPlus = 92, + GameInputLabelIconMinus = 93, + GameInputLabelIconSuspension = 94, + GameInputLabelHome = 95, + GameInputLabelGuide = 96, + GameInputLabelMode = 97, + GameInputLabelSelect = 98, + GameInputLabelMenu = 99, + GameInputLabelView = 100, + GameInputLabelBack = 101, + GameInputLabelStart = 102, + GameInputLabelOptions = 103, + GameInputLabelShare = 104, + GameInputLabelUp = 105, + GameInputLabelDown = 106, + GameInputLabelLeft = 107, + GameInputLabelRight = 108, + GameInputLabelLB = 109, + GameInputLabelLT = 110, + GameInputLabelLSB = 111, + GameInputLabelL1 = 112, + GameInputLabelL2 = 113, + GameInputLabelL3 = 114, + GameInputLabelRB = 115, + GameInputLabelRT = 116, + GameInputLabelRSB = 117, + GameInputLabelR1 = 118, + GameInputLabelR2 = 119, + GameInputLabelR3 = 120, + GameInputLabelP1 = 121, + GameInputLabelP2 = 122, + GameInputLabelP3 = 123, + GameInputLabelP4 = 124 +} GameInputLabel; + +typedef enum GameInputLocation +{ + GameInputLocationUnknown = -1, + GameInputLocationChassis = 0, + GameInputLocationDisplay = 1, + GameInputLocationAxis = 2, + GameInputLocationButton = 3, + GameInputLocationSwitch = 4, + GameInputLocationKey = 5, + GameInputLocationTouchPad = 6 +} GameInputLocation; + +typedef enum GameInputFeedbackAxes +{ + GameInputFeedbackAxisNone = 0x00000000, + GameInputFeedbackAxisLinearX = 0x00000001, + GameInputFeedbackAxisLinearY = 0x00000002, + GameInputFeedbackAxisLinearZ = 0x00000004, + GameInputFeedbackAxisAngularX = 0x00000008, + GameInputFeedbackAxisAngularY = 0x00000010, + GameInputFeedbackAxisAngularZ = 0x00000020, + GameInputFeedbackAxisNormal = 0x00000040 +} GameInputFeedbackAxes; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputFeedbackAxes) + +typedef enum GameInputFeedbackEffectState +{ + GameInputFeedbackStopped = 0, + GameInputFeedbackRunning = 1, + GameInputFeedbackPaused = 2 +} GameInputFeedbackEffectState; + +typedef enum GameInputForceFeedbackEffectKind +{ + GameInputForceFeedbackConstant = 0, + GameInputForceFeedbackRamp = 1, + GameInputForceFeedbackSineWave = 2, + GameInputForceFeedbackSquareWave = 3, + GameInputForceFeedbackTriangleWave = 4, + GameInputForceFeedbackSawtoothUpWave = 5, + GameInputForceFeedbackSawtoothDownWave = 6, + GameInputForceFeedbackSpring = 7, + GameInputForceFeedbackFriction = 8, + GameInputForceFeedbackDamper = 9, + GameInputForceFeedbackInertia = 10 +} GameInputForceFeedbackEffectKind; + +typedef enum GameInputRumbleMotors +{ + GameInputRumbleNone = 0x00000000, + GameInputRumbleLowFrequency = 0x00000001, + GameInputRumbleHighFrequency = 0x00000002, + GameInputRumbleLeftTrigger = 0x00000004, + GameInputRumbleRightTrigger = 0x00000008 +} GameInputRumbleMotors; + +DEFINE_ENUM_FLAG_OPERATORS(GameInputRumbleMotors) + +typedef interface IGameInput IGameInput; +typedef interface IGameInputReading IGameInputReading; +typedef interface IGameInputDevice IGameInputDevice; +typedef interface IGameInputDispatcher IGameInputDispatcher; +typedef interface IGameInputForceFeedbackEffect IGameInputForceFeedbackEffect; +typedef interface IGameInputRawDeviceReport IGameInputRawDeviceReport; + +typedef uint64_t GameInputCallbackToken; + +#define GAMEINPUT_CURRENT_CALLBACK_TOKEN_VALUE 0xFFFFFFFFFFFFFFFFULL +#define GAMEINPUT_INVALID_CALLBACK_TOKEN_VALUE 0x0000000000000000ULL + +typedef void (CALLBACK * GameInputReadingCallback)( + _In_ GameInputCallbackToken callbackToken, + _In_ void * context, + _In_ IGameInputReading * reading, + _In_ bool hasOverrunOccurred); + +typedef void (CALLBACK * GameInputDeviceCallback)( + _In_ GameInputCallbackToken callbackToken, + _In_ void * context, + _In_ IGameInputDevice * device, + _In_ uint64_t timestamp, + _In_ GameInputDeviceStatus currentStatus, + _In_ GameInputDeviceStatus previousStatus); + +typedef void (CALLBACK * GameInputSystemButtonCallback)( + _In_ GameInputCallbackToken callbackToken, + _In_ void * context, + _In_ IGameInputDevice * device, + _In_ uint64_t timestamp, + _In_ GameInputSystemButtons currentButtons, + _In_ GameInputSystemButtons previousButtons); + +typedef void (CALLBACK * GameInputKeyboardLayoutCallback)( + _In_ GameInputCallbackToken callbackToken, + _In_ void * context, + _In_ IGameInputDevice * device, + _In_ uint64_t timestamp, + _In_ uint32_t currentLayout, + _In_ uint32_t previousLayout); + +typedef struct GameInputKeyState +{ + uint32_t scanCode; + uint32_t codePoint; + uint8_t virtualKey; + bool isDeadKey; +} GameInputKeyState; + +typedef struct GameInputMouseState +{ + GameInputMouseButtons buttons; + int64_t positionX; + int64_t positionY; + int64_t wheelX; + int64_t wheelY; +} GameInputMouseState; + +typedef struct GameInputTouchState +{ + uint64_t touchId; + uint32_t sensorIndex; + float positionX; + float positionY; + float pressure; + float proximity; + float contactRectTop; + float contactRectLeft; + float contactRectRight; + float contactRectBottom; +} GameInputTouchState; + +typedef struct GameInputMotionState +{ + float accelerationX; + float accelerationY; + float accelerationZ; + float angularVelocityX; + float angularVelocityY; + float angularVelocityZ; + float magneticFieldX; + float magneticFieldY; + float magneticFieldZ; + float orientationW; + float orientationX; + float orientationY; + float orientationZ; + GameInputMotionAccuracy accelerometerAccuracy; + GameInputMotionAccuracy gyroscopeAccuracy; + GameInputMotionAccuracy magnetometerAccuracy; + GameInputMotionAccuracy orientationAccuracy; +} GameInputMotionState; + +typedef struct GameInputArcadeStickState +{ + GameInputArcadeStickButtons buttons; +} GameInputArcadeStickState; + +typedef struct GameInputFlightStickState +{ + GameInputFlightStickButtons buttons; + GameInputSwitchPosition hatSwitch; + float roll; + float pitch; + float yaw; + float throttle; +} GameInputFlightStickState; + +typedef struct GameInputGamepadState +{ + GameInputGamepadButtons buttons; + float leftTrigger; + float rightTrigger; + float leftThumbstickX; + float leftThumbstickY; + float rightThumbstickX; + float rightThumbstickY; +} GameInputGamepadState; + +typedef struct GameInputRacingWheelState +{ + GameInputRacingWheelButtons buttons; + int32_t patternShifterGear; + float wheel; + float throttle; + float brake; + float clutch; + float handbrake; +} GameInputRacingWheelState; + +typedef struct GameInputUiNavigationState +{ + GameInputUiNavigationButtons buttons; +} GameInputUiNavigationState; + +typedef struct GameInputBatteryState +{ + float chargeRate; + float maxChargeRate; + float remainingCapacity; + float fullChargeCapacity; + GameInputBatteryStatus status; +} GameInputBatteryState; + +typedef struct GameInputString +{ + uint32_t sizeInBytes; + uint32_t codePointCount; + _Field_z_ char const * data; +} GameInputString; + +typedef struct GameInputUsage +{ + uint16_t page; + uint16_t id; +} GameInputUsage; + +typedef struct GameInputVersion +{ + uint16_t major; + uint16_t minor; + uint16_t build; + uint16_t revision; +} GameInputVersion; + +typedef struct GameInputRawDeviceItemCollectionInfo +{ + GameInputRawDeviceItemCollectionKind kind; + uint32_t childCount; + uint32_t siblingCount; + uint32_t usageCount; + _Field_size_full_(usageCount) GameInputUsage const * usages; + _Field_size_full_opt_(1) struct GameInputRawDeviceItemCollectionInfo const * parent; + _Field_size_full_opt_(1) struct GameInputRawDeviceItemCollectionInfo const * firstSibling; + _Field_size_full_opt_(1) struct GameInputRawDeviceItemCollectionInfo const * previousSibling; + _Field_size_full_opt_(1) struct GameInputRawDeviceItemCollectionInfo const * nextSibling; + _Field_size_full_opt_(1) struct GameInputRawDeviceItemCollectionInfo const * lastSibling; + _Field_size_full_opt_(1) struct GameInputRawDeviceItemCollectionInfo const * firstChild; + _Field_size_full_opt_(1) struct GameInputRawDeviceItemCollectionInfo const * lastChild; +} GameInputRawDeviceItemCollectionInfo; + +typedef struct GameInputRawDeviceReportItemInfo +{ + uint32_t bitOffset; + uint32_t bitSize; + int64_t logicalMin; + int64_t logicalMax; + double physicalMin; + double physicalMax; + GameInputRawDevicePhysicalUnitKind physicalUnits; + uint32_t rawPhysicalUnits; + int32_t rawPhysicalUnitsExponent; + GameInputRawDeviceReportItemFlags flags; + uint32_t usageCount; + _Field_size_full_(usageCount) GameInputUsage const * usages; + _Field_size_full_(1) GameInputRawDeviceItemCollectionInfo const * collection; + _Field_size_full_opt_(1) GameInputString const * itemString; +} GameInputRawDeviceReportItemInfo; + +typedef struct GameInputRawDeviceReportInfo +{ + GameInputRawDeviceReportKind kind; + uint32_t id; + uint32_t size; + uint32_t itemCount; + _Field_size_full_opt_(itemCount) GameInputRawDeviceReportItemInfo const * items; +} GameInputRawDeviceReportInfo; + +typedef struct GameInputControllerAxisInfo +{ + GameInputKind mappedInputKinds; + GameInputLabel label; + bool isContinuous; + bool isNonlinear; + bool isQuantized; + bool hasRestValue; + float restValue; + uint64_t resolution; + uint16_t legacyDInputIndex; + uint16_t legacyHidIndex; + uint32_t rawReportIndex; + _Field_size_full_(1) GameInputRawDeviceReportInfo const * inputReport; + _Field_size_full_(1) GameInputRawDeviceReportItemInfo const * inputReportItem; +} GameInputControllerAxisInfo; + +typedef struct GameInputControllerButtonInfo +{ + GameInputKind mappedInputKinds; + GameInputLabel label; + uint16_t legacyDInputIndex; + uint16_t legacyHidIndex; + uint32_t rawReportIndex; + _Field_size_full_(1) GameInputRawDeviceReportInfo const * inputReport; + _Field_size_full_(1) GameInputRawDeviceReportItemInfo const * inputReportItem; +} GameInputControllerButtonInfo; + +typedef struct GameInputControllerSwitchInfo +{ + GameInputKind mappedInputKinds; + GameInputLabel label; + GameInputLabel positionLabels[9]; + GameInputSwitchKind kind; + uint16_t legacyDInputIndex; + uint16_t legacyHidIndex; + uint32_t rawReportIndex; + _Field_size_full_(1) GameInputRawDeviceReportInfo const * inputReport; + _Field_size_full_(1) GameInputRawDeviceReportItemInfo const * inputReportItem; +} GameInputControllerSwitchInfo; + +typedef struct GameInputKeyboardInfo +{ + GameInputKeyboardKind kind; + uint32_t layout; + uint32_t keyCount; + uint32_t functionKeyCount; + uint32_t maxSimultaneousKeys; + uint32_t platformType; + uint32_t platformSubtype; + _Field_size_full_opt_(1) GameInputString const * nativeLanguage; +} GameInputKeyboardInfo; + +typedef struct GameInputMouseInfo +{ + GameInputMouseButtons supportedButtons; + uint32_t sampleRate; + uint32_t sensorDpi; + bool hasWheelX; + bool hasWheelY; +} GameInputMouseInfo; + +typedef struct GameInputTouchSensorInfo +{ + GameInputKind mappedInputKinds; + GameInputLabel label; + GameInputLocation location; + uint32_t locationId; + uint64_t resolutionX; + uint64_t resolutionY; + GameInputTouchShape shape; + float aspectRatio; + float orientation; + float physicalWidth; + float physicalHeight; + float maxPressure; + float maxProximity; + uint32_t maxTouchPoints; +} GameInputTouchSensorInfo; + +typedef struct GameInputMotionInfo +{ + float maxAcceleration; + float maxAngularVelocity; + float maxMagneticFieldStrength; +} GameInputMotionInfo; + +typedef struct GameInputArcadeStickInfo +{ + GameInputLabel menuButtonLabel; + GameInputLabel viewButtonLabel; + GameInputLabel stickUpLabel; + GameInputLabel stickDownLabel; + GameInputLabel stickLeftLabel; + GameInputLabel stickRightLabel; + GameInputLabel actionButton1Label; + GameInputLabel actionButton2Label; + GameInputLabel actionButton3Label; + GameInputLabel actionButton4Label; + GameInputLabel actionButton5Label; + GameInputLabel actionButton6Label; + GameInputLabel specialButton1Label; + GameInputLabel specialButton2Label; +} GameInputArcadeStickInfo; + +typedef struct GameInputFlightStickInfo +{ + GameInputLabel menuButtonLabel; + GameInputLabel viewButtonLabel; + GameInputLabel firePrimaryButtonLabel; + GameInputLabel fireSecondaryButtonLabel; + GameInputSwitchKind hatSwitchKind; +} GameInputFlightStickInfo; + +typedef struct GameInputGamepadInfo +{ + GameInputLabel menuButtonLabel; + GameInputLabel viewButtonLabel; + GameInputLabel aButtonLabel; + GameInputLabel bButtonLabel; + GameInputLabel xButtonLabel; + GameInputLabel yButtonLabel; + GameInputLabel dpadUpLabel; + GameInputLabel dpadDownLabel; + GameInputLabel dpadLeftLabel; + GameInputLabel dpadRightLabel; + GameInputLabel leftShoulderButtonLabel; + GameInputLabel rightShoulderButtonLabel; + GameInputLabel leftThumbstickButtonLabel; + GameInputLabel rightThumbstickButtonLabel; +} GameInputGamepadInfo; + +typedef struct GameInputRacingWheelInfo +{ + GameInputLabel menuButtonLabel; + GameInputLabel viewButtonLabel; + GameInputLabel previousGearButtonLabel; + GameInputLabel nextGearButtonLabel; + GameInputLabel dpadUpLabel; + GameInputLabel dpadDownLabel; + GameInputLabel dpadLeftLabel; + GameInputLabel dpadRightLabel; + bool hasClutch; + bool hasHandbrake; + bool hasPatternShifter; + int32_t minPatternShifterGear; + int32_t maxPatternShifterGear; + float maxWheelAngle; +} GameInputRacingWheelInfo; + +typedef struct GameInputUiNavigationInfo +{ + GameInputLabel menuButtonLabel; + GameInputLabel viewButtonLabel; + GameInputLabel acceptButtonLabel; + GameInputLabel cancelButtonLabel; + GameInputLabel upButtonLabel; + GameInputLabel downButtonLabel; + GameInputLabel leftButtonLabel; + GameInputLabel rightButtonLabel; + GameInputLabel contextButton1Label; + GameInputLabel contextButton2Label; + GameInputLabel contextButton3Label; + GameInputLabel contextButton4Label; + GameInputLabel pageUpButtonLabel; + GameInputLabel pageDownButtonLabel; + GameInputLabel pageLeftButtonLabel; + GameInputLabel pageRightButtonLabel; + GameInputLabel scrollUpButtonLabel; + GameInputLabel scrollDownButtonLabel; + GameInputLabel scrollLeftButtonLabel; + GameInputLabel scrollRightButtonLabel; + GameInputLabel guideButtonLabel; +} GameInputUiNavigationInfo; + +typedef struct GameInputForceFeedbackMotorInfo +{ + GameInputFeedbackAxes supportedAxes; + GameInputLocation location; + uint32_t locationId; + uint32_t maxSimultaneousEffects; + bool isConstantEffectSupported; + bool isRampEffectSupported; + bool isSineWaveEffectSupported; + bool isSquareWaveEffectSupported; + bool isTriangleWaveEffectSupported; + bool isSawtoothUpWaveEffectSupported; + bool isSawtoothDownWaveEffectSupported; + bool isSpringEffectSupported; + bool isFrictionEffectSupported; + bool isDamperEffectSupported; + bool isInertiaEffectSupported; +} GameInputForceFeedbackMotorInfo; + +typedef struct GameInputHapticWaveformInfo +{ + GameInputUsage usage; + bool isDurationSupported; + bool isIntensitySupported; + bool isRepeatSupported; + bool isRepeatDelaySupported; + uint64_t defaultDuration; +} GameInputHapticWaveformInfo; + +typedef struct GameInputHapticFeedbackMotorInfo +{ + GameInputRumbleMotors mappedRumbleMotors; + GameInputLocation location; + uint32_t locationId; + uint32_t waveformCount; + _Field_size_full_(waveformCount) GameInputHapticWaveformInfo const * waveformInfo; +} GameInputHapticFeedbackMotorInfo; + +typedef struct GameInputDeviceInfo +{ + uint32_t infoSize; + uint16_t vendorId; + uint16_t productId; + uint16_t revisionNumber; + uint8_t interfaceNumber; + uint8_t collectionNumber; + GameInputUsage usage; + GameInputVersion hardwareVersion; + GameInputVersion firmwareVersion; + APP_LOCAL_DEVICE_ID deviceId; + APP_LOCAL_DEVICE_ID deviceRootId; + GameInputDeviceFamily deviceFamily; + GameInputDeviceCapabilities capabilities; + GameInputKind supportedInput; + GameInputRumbleMotors supportedRumbleMotors; + uint32_t inputReportCount; + uint32_t outputReportCount; + uint32_t featureReportCount; + uint32_t controllerAxisCount; + uint32_t controllerButtonCount; + uint32_t controllerSwitchCount; + uint32_t touchPointCount; + uint32_t touchSensorCount; + uint32_t forceFeedbackMotorCount; + uint32_t hapticFeedbackMotorCount; + uint32_t deviceStringCount; + uint32_t deviceDescriptorSize; + _Field_size_full_opt_(inputReportCount) GameInputRawDeviceReportInfo const * inputReportInfo; + _Field_size_full_opt_(outputReportCount) GameInputRawDeviceReportInfo const * outputReportInfo; + _Field_size_full_opt_(featureReportCount) GameInputRawDeviceReportInfo const * featureReportInfo; + _Field_size_full_opt_(controllerAxisCount) GameInputControllerAxisInfo const * controllerAxisInfo; + _Field_size_full_opt_(controllerButtonCount) GameInputControllerButtonInfo const * controllerButtonInfo; + _Field_size_full_opt_(controllerSwitchCount) GameInputControllerSwitchInfo const * controllerSwitchInfo; + _Field_size_full_opt_(1) GameInputKeyboardInfo const * keyboardInfo; + _Field_size_full_opt_(1) GameInputMouseInfo const * mouseInfo; + _Field_size_full_opt_(touchSensorCount) GameInputTouchSensorInfo const * touchSensorInfo; + _Field_size_full_opt_(1) GameInputMotionInfo const * motionInfo; + _Field_size_full_opt_(1) GameInputArcadeStickInfo const * arcadeStickInfo; + _Field_size_full_opt_(1) GameInputFlightStickInfo const * flightStickInfo; + _Field_size_full_opt_(1) GameInputGamepadInfo const * gamepadInfo; + _Field_size_full_opt_(1) GameInputRacingWheelInfo const * racingWheelInfo; + _Field_size_full_opt_(1) GameInputUiNavigationInfo const * uiNavigationInfo; + _Field_size_full_opt_(forceFeedbackMotorCount) GameInputForceFeedbackMotorInfo const * forceFeedbackMotorInfo; + _Field_size_full_opt_(hapticFeedbackMotorCount) GameInputHapticFeedbackMotorInfo const * hapticFeedbackMotorInfo; + _Field_size_full_opt_(1) GameInputString const * displayName; + _Field_size_full_opt_(deviceStringCount) GameInputString const * deviceStrings; + _Field_size_bytes_full_opt_(deviceDescriptorSize) void const * deviceDescriptorData; + GameInputSystemButtons supportedSystemButtons; +} GameInputDeviceInfo; + +typedef struct GameInputForceFeedbackEnvelope +{ + uint64_t attackDuration; + uint64_t sustainDuration; + uint64_t releaseDuration; + float attackGain; + float sustainGain; + float releaseGain; + uint32_t playCount; + uint64_t repeatDelay; +} GameInputForceFeedbackEnvelope; + +typedef struct GameInputForceFeedbackMagnitude +{ + float linearX; + float linearY; + float linearZ; + float angularX; + float angularY; + float angularZ; + float normal; +} GameInputForceFeedbackMagnitude; + +typedef struct GameInputForceFeedbackConditionParams +{ + GameInputForceFeedbackMagnitude magnitude; + float positiveCoefficient; + float negativeCoefficient; + float maxPositiveMagnitude; + float maxNegativeMagnitude; + float deadZone; + float bias; +} GameInputForceFeedbackConditionParams; + +typedef struct GameInputForceFeedbackConstantParams +{ + GameInputForceFeedbackEnvelope envelope; + GameInputForceFeedbackMagnitude magnitude; +} GameInputForceFeedbackConstantParams; + +typedef struct GameInputForceFeedbackPeriodicParams +{ + GameInputForceFeedbackEnvelope envelope; + GameInputForceFeedbackMagnitude magnitude; + float frequency; + float phase; + float bias; +} GameInputForceFeedbackPeriodicParams; + +typedef struct GameInputForceFeedbackRampParams +{ + GameInputForceFeedbackEnvelope envelope; + GameInputForceFeedbackMagnitude startMagnitude; + GameInputForceFeedbackMagnitude endMagnitude; +} GameInputForceFeedbackRampParams; + +typedef struct GameInputForceFeedbackParams +{ + GameInputForceFeedbackEffectKind kind; + union + { + GameInputForceFeedbackConstantParams constant; + GameInputForceFeedbackRampParams ramp; + GameInputForceFeedbackPeriodicParams sineWave; + GameInputForceFeedbackPeriodicParams squareWave; + GameInputForceFeedbackPeriodicParams triangleWave; + GameInputForceFeedbackPeriodicParams sawtoothUpWave; + GameInputForceFeedbackPeriodicParams sawtoothDownWave; + GameInputForceFeedbackConditionParams spring; + GameInputForceFeedbackConditionParams friction; + GameInputForceFeedbackConditionParams damper; + GameInputForceFeedbackConditionParams inertia; + } data; +} GameInputForceFeedbackParams; + +typedef struct GameInputHapticFeedbackParams +{ + uint32_t waveformIndex; + uint64_t duration; + float intensity; + uint32_t playCount; + uint64_t repeatDelay; +} GameInputHapticFeedbackParams; + +typedef struct GameInputRumbleParams +{ + float lowFrequency; + float highFrequency; + float leftTrigger; + float rightTrigger; +} GameInputRumbleParams; + +#undef INTERFACE +#define INTERFACE IGameInput +DECLARE_INTERFACE_IID_(INTERFACE, IUnknown, "11BE2A7E-4254-445A-9C09-FFC40F006918") +{ + _Must_inspect_result_ IFACEMETHOD(QueryInterface)(THIS_ + _In_ REFIID riid, + _COM_Outptr_ void ** ppvObj) PURE; + + IFACEMETHOD_(ULONG, AddRef)(THIS) PURE; + + IFACEMETHOD_(ULONG, Release)(THIS) PURE; + + IFACEMETHOD_(uint64_t, GetCurrentTimestamp)(THIS) PURE; + + _Must_inspect_result_ IFACEMETHOD(GetCurrentReading)(THIS_ + _In_ GameInputKind inputKind, + _In_opt_ IGameInputDevice * device, + _COM_Outptr_ IGameInputReading ** reading) PURE; + + _Must_inspect_result_ IFACEMETHOD(GetNextReading)(THIS_ + _In_ IGameInputReading * referenceReading, + _In_ GameInputKind inputKind, + _In_opt_ IGameInputDevice * device, + _COM_Outptr_ IGameInputReading ** reading) PURE; + + _Must_inspect_result_ IFACEMETHOD(GetPreviousReading)(THIS_ + _In_ IGameInputReading * referenceReading, + _In_ GameInputKind inputKind, + _In_opt_ IGameInputDevice * device, + _COM_Outptr_ IGameInputReading ** reading) PURE; + + _Must_inspect_result_ IFACEMETHOD(GetTemporalReading)(THIS_ + _In_ uint64_t timestamp, + _In_ IGameInputDevice * device, + _COM_Outptr_ IGameInputReading ** reading) PURE; + + IFACEMETHOD(RegisterReadingCallback)(THIS_ + _In_opt_ IGameInputDevice * device, + _In_ GameInputKind inputKind, + _In_ float analogThreshold, + _In_opt_ void * context, + _In_ GameInputReadingCallback callbackFunc, + _Out_opt_ _Result_zeroonfailure_ GameInputCallbackToken * callbackToken) PURE; + + IFACEMETHOD(RegisterDeviceCallback)(THIS_ + _In_opt_ IGameInputDevice * device, + _In_ GameInputKind inputKind, + _In_ GameInputDeviceStatus statusFilter, + _In_ GameInputEnumerationKind enumerationKind, + _In_opt_ void * context, + _In_ GameInputDeviceCallback callbackFunc, + _Out_opt_ _Result_zeroonfailure_ GameInputCallbackToken * callbackToken) PURE; + + IFACEMETHOD(RegisterSystemButtonCallback)(THIS_ + _In_opt_ IGameInputDevice * device, + _In_ GameInputSystemButtons buttonFilter, + _In_opt_ void * context, + _In_ GameInputSystemButtonCallback callbackFunc, + _Out_opt_ _Result_zeroonfailure_ GameInputCallbackToken * callbackToken) PURE; + + IFACEMETHOD(RegisterKeyboardLayoutCallback)(THIS_ + _In_opt_ IGameInputDevice * device, + _In_opt_ void * context, + _In_ GameInputKeyboardLayoutCallback callbackFunc, + _Out_opt_ _Result_zeroonfailure_ GameInputCallbackToken * callbackToken) PURE; + + IFACEMETHOD_(void, StopCallback)(THIS_ + _In_ GameInputCallbackToken callbackToken) PURE; + + IFACEMETHOD_(bool, UnregisterCallback)(THIS_ + _In_ GameInputCallbackToken callbackToken, + _In_ uint64_t timeoutInMicroseconds) PURE; + + _Must_inspect_result_ IFACEMETHOD(CreateDispatcher)(THIS_ + _COM_Outptr_ IGameInputDispatcher ** dispatcher) PURE; + + _Must_inspect_result_ IFACEMETHOD(CreateAggregateDevice)(THIS_ + _In_ GameInputKind inputKind, + _COM_Outptr_ IGameInputDevice ** device) PURE; + + _Must_inspect_result_ IFACEMETHOD(FindDeviceFromId)(THIS_ + _In_ APP_LOCAL_DEVICE_ID const * value, + _COM_Outptr_ IGameInputDevice ** device) PURE; + + _Must_inspect_result_ IFACEMETHOD(FindDeviceFromObject)(THIS_ + _In_ IUnknown * value, + _COM_Outptr_ IGameInputDevice ** device) PURE; + + _Must_inspect_result_ IFACEMETHOD(FindDeviceFromPlatformHandle)(THIS_ + _In_ HANDLE value, + _COM_Outptr_ IGameInputDevice ** device) PURE; + + _Must_inspect_result_ IFACEMETHOD(FindDeviceFromPlatformString)(THIS_ + _In_ LPCWSTR value, + _COM_Outptr_ IGameInputDevice ** device) PURE; + + IFACEMETHOD(EnableOemDeviceSupport)(THIS_ + _In_ uint16_t vendorId, + _In_ uint16_t productId, + _In_ uint8_t interfaceNumber, + _In_ uint8_t collectionNumber) PURE; + + IFACEMETHOD_(void, SetFocusPolicy)(THIS_ + _In_ GameInputFocusPolicy policy) PURE; +}; + +#undef INTERFACE +#define INTERFACE IGameInputReading +DECLARE_INTERFACE_IID_(INTERFACE, IUnknown, "2156947A-E1FA-4DE0-A30B-D812931DBD8D") +{ + _Must_inspect_result_ IFACEMETHOD(QueryInterface)(THIS_ + _In_ REFIID riid, + _COM_Outptr_ void ** ppvObj) PURE; + + IFACEMETHOD_(ULONG, AddRef)(THIS) PURE; + + IFACEMETHOD_(ULONG, Release)(THIS) PURE; + + IFACEMETHOD_(GameInputKind, GetInputKind)(THIS) PURE; + + IFACEMETHOD_(uint64_t, GetSequenceNumber)(THIS_ + _In_ GameInputKind inputKind) PURE; + + IFACEMETHOD_(uint64_t, GetTimestamp)(THIS) PURE; + + IFACEMETHOD_(void, GetDevice)(THIS_ + _Outptr_ IGameInputDevice ** device) PURE; + + IFACEMETHOD_(bool, GetRawReport)(THIS_ + _Outptr_result_maybenull_ IGameInputRawDeviceReport ** report) PURE; + + IFACEMETHOD_(uint32_t, GetControllerAxisCount)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetControllerAxisState)(THIS_ + _In_ uint32_t stateArrayCount, + _Out_writes_(stateArrayCount) float * stateArray) PURE; + + IFACEMETHOD_(uint32_t, GetControllerButtonCount)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetControllerButtonState)(THIS_ + _In_ uint32_t stateArrayCount, + _Out_writes_(stateArrayCount) bool * stateArray) PURE; + + IFACEMETHOD_(uint32_t, GetControllerSwitchCount)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetControllerSwitchState)(THIS_ + _In_ uint32_t stateArrayCount, + _Out_writes_(stateArrayCount) GameInputSwitchPosition * stateArray) PURE; + + IFACEMETHOD_(uint32_t, GetKeyCount)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetKeyState)(THIS_ + _In_ uint32_t stateArrayCount, + _Out_writes_(stateArrayCount) GameInputKeyState * stateArray) PURE; + + IFACEMETHOD_(bool, GetMouseState)(THIS_ + _Out_ GameInputMouseState * state) PURE; + + IFACEMETHOD_(uint32_t, GetTouchCount)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetTouchState)(THIS_ + _In_ uint32_t stateArrayCount, + _Out_writes_(stateArrayCount) GameInputTouchState * stateArray) PURE; + + IFACEMETHOD_(bool, GetMotionState)(THIS_ + _Out_ GameInputMotionState * state) PURE; + + IFACEMETHOD_(bool, GetArcadeStickState)(THIS_ + _Out_ GameInputArcadeStickState * state) PURE; + + IFACEMETHOD_(bool, GetFlightStickState)(THIS_ + _Out_ GameInputFlightStickState * state) PURE; + + IFACEMETHOD_(bool, GetGamepadState)(THIS_ + _Out_ GameInputGamepadState * state) PURE; + + IFACEMETHOD_(bool, GetRacingWheelState)(THIS_ + _Out_ GameInputRacingWheelState * state) PURE; + + IFACEMETHOD_(bool, GetUiNavigationState)(THIS_ + _Out_ GameInputUiNavigationState * state) PURE; +}; + +#undef INTERFACE +#define INTERFACE IGameInputDevice +DECLARE_INTERFACE_IID_(INTERFACE, IUnknown, "31DD86FB-4C1B-408A-868F-439B3CD47125") +{ + _Must_inspect_result_ IFACEMETHOD(QueryInterface)(THIS_ + _In_ REFIID riid, + _COM_Outptr_ void ** ppvObj) PURE; + + IFACEMETHOD_(ULONG, AddRef)(THIS) PURE; + + IFACEMETHOD_(ULONG, Release)(THIS) PURE; + + IFACEMETHOD_(_Ret_notnull_ GameInputDeviceInfo const *, GetDeviceInfo)(THIS) PURE; + + IFACEMETHOD_(GameInputDeviceStatus, GetDeviceStatus)(THIS) PURE; + + IFACEMETHOD_(void, GetBatteryState)(THIS_ + _Out_ GameInputBatteryState * state) PURE; + + _Must_inspect_result_ IFACEMETHOD(CreateForceFeedbackEffect)(THIS_ + _In_ uint32_t motorIndex, + _In_ GameInputForceFeedbackParams const * params, + _COM_Outptr_ IGameInputForceFeedbackEffect ** effect) PURE; + + IFACEMETHOD_(bool, IsForceFeedbackMotorPoweredOn)(THIS_ + _In_ uint32_t motorIndex) PURE; + + IFACEMETHOD_(void, SetForceFeedbackMotorGain)(THIS_ + _In_ uint32_t motorIndex, + _In_ float masterGain) PURE; + + IFACEMETHOD(SetHapticMotorState)(THIS_ + _In_ uint32_t motorIndex, + _In_opt_ GameInputHapticFeedbackParams const * params) PURE; + + IFACEMETHOD_(void, SetRumbleState)(THIS_ + _In_opt_ GameInputRumbleParams const * params) PURE; + + IFACEMETHOD_(void, SetInputSynchronizationState)(THIS_ + _In_ bool enabled) PURE; + + IFACEMETHOD_(void, SendInputSynchronizationHint)(THIS) PURE; + + IFACEMETHOD_(void, PowerOff)(THIS) PURE; + + _Must_inspect_result_ IFACEMETHOD(CreateRawDeviceReport)(THIS_ + _In_ uint32_t reportId, + _In_ GameInputRawDeviceReportKind reportKind, + _COM_Outptr_ IGameInputRawDeviceReport ** report) PURE; + + _Must_inspect_result_ IFACEMETHOD(GetRawDeviceFeature)(THIS_ + _In_ uint32_t reportId, + _COM_Outptr_ IGameInputRawDeviceReport ** report) PURE; + + IFACEMETHOD(SetRawDeviceFeature)(THIS_ + _In_ IGameInputRawDeviceReport * report) PURE; + + IFACEMETHOD(SendRawDeviceOutput)(THIS_ + _In_ IGameInputRawDeviceReport * report) PURE; + + IFACEMETHOD(SendRawDeviceOutputWithResponse)(THIS_ + _In_ IGameInputRawDeviceReport * requestReport, + _COM_Outptr_ IGameInputRawDeviceReport ** responseReport) PURE; + + IFACEMETHOD(ExecuteRawDeviceIoControl)(THIS_ + _In_ uint32_t controlCode, + _In_ size_t inputBufferSize, + _In_reads_bytes_opt_(inputBufferSize) void const * inputBuffer, + _In_ size_t outputBufferSize, + _Out_writes_bytes_all_opt_(outputBufferSize) void * outputBuffer, + _Out_opt_ _Result_zeroonfailure_ size_t * outputSize) PURE; + + IFACEMETHOD_(bool, AcquireExclusiveRawDeviceAccess)(THIS_ + _In_ uint64_t timeoutInMicroseconds) PURE; + + IFACEMETHOD_(void, ReleaseExclusiveRawDeviceAccess)(THIS) PURE; +}; + +#undef INTERFACE +#define INTERFACE IGameInputDispatcher +DECLARE_INTERFACE_IID_(INTERFACE, IUnknown, "415EED2E-98CB-42C2-8F28-B94601074E31") +{ + _Must_inspect_result_ IFACEMETHOD(QueryInterface)(THIS_ + _In_ REFIID riid, + _COM_Outptr_ void ** ppvObj) PURE; + + IFACEMETHOD_(ULONG, AddRef)(THIS) PURE; + + IFACEMETHOD_(ULONG, Release)(THIS) PURE; + + IFACEMETHOD_(bool, Dispatch)(THIS_ + _In_ uint64_t quotaInMicroseconds) PURE; + + IFACEMETHOD(OpenWaitHandle)(THIS_ + _Outptr_result_nullonfailure_ HANDLE * waitHandle) PURE; +}; + +#undef INTERFACE +#define INTERFACE IGameInputForceFeedbackEffect +DECLARE_INTERFACE_IID_(INTERFACE, IUnknown, "51BDA05E-F742-45D9-B085-9444AE48381D") +{ + _Must_inspect_result_ IFACEMETHOD(QueryInterface)(THIS_ + _In_ REFIID riid, + _COM_Outptr_ void ** ppvObj) PURE; + + IFACEMETHOD_(ULONG, AddRef)(THIS) PURE; + + IFACEMETHOD_(ULONG, Release)(THIS) PURE; + + IFACEMETHOD_(void, GetDevice)(THIS_ + _Outptr_ IGameInputDevice ** device) PURE; + + IFACEMETHOD_(uint32_t, GetMotorIndex)(THIS) PURE; + + IFACEMETHOD_(float, GetGain)(THIS) PURE; + + IFACEMETHOD_(void, SetGain)(THIS_ + _In_ float gain) PURE; + + IFACEMETHOD_(void, GetParams)(THIS_ + _Out_ GameInputForceFeedbackParams * params) PURE; + + IFACEMETHOD_(bool, SetParams)(THIS_ + _In_ GameInputForceFeedbackParams const * params) PURE; + + IFACEMETHOD_(GameInputFeedbackEffectState, GetState)(THIS) PURE; + + IFACEMETHOD_(void, SetState)(THIS_ + _In_ GameInputFeedbackEffectState state) PURE; +}; + +#undef INTERFACE +#define INTERFACE IGameInputRawDeviceReport +DECLARE_INTERFACE_IID_(INTERFACE, IUnknown, "61F08CF1-1FFC-40CA-A2B8-E1AB8BC5B6DC") +{ + _Must_inspect_result_ IFACEMETHOD(QueryInterface)(THIS_ + _In_ REFIID riid, + _COM_Outptr_ void ** ppvObj) PURE; + + IFACEMETHOD_(ULONG, AddRef)(THIS) PURE; + + IFACEMETHOD_(ULONG, Release)(THIS) PURE; + + IFACEMETHOD_(void, GetDevice)(THIS_ + _Outptr_ IGameInputDevice ** device) PURE; + + IFACEMETHOD_(_Ret_notnull_ GameInputRawDeviceReportInfo const *, GetReportInfo)(THIS) PURE; + + IFACEMETHOD_(size_t, GetRawDataSize)(THIS) PURE; + + IFACEMETHOD_(size_t, GetRawData)(THIS_ + _In_ size_t bufferSize, + _Out_writes_(bufferSize) void * buffer) PURE; + + IFACEMETHOD_(bool, SetRawData)(THIS_ + _In_ size_t bufferSize, + _In_reads_(bufferSize) void const * buffer) PURE; + + IFACEMETHOD_(bool, GetItemValue)(THIS_ + _In_ uint32_t itemIndex, + _Out_ int64_t * value) PURE; + + IFACEMETHOD_(bool, SetItemValue)(THIS_ + _In_ uint32_t itemIndex, + _In_ int64_t value) PURE; + + IFACEMETHOD_(bool, ResetItemValue)(THIS_ + _In_ uint32_t itemIndex) PURE; + + IFACEMETHOD_(bool, ResetAllItems)(THIS) PURE; +}; + +#undef INTERFACE + +_Must_inspect_result_ STDAPI GameInputCreate( + _COM_Outptr_ IGameInput ** gameInput); + +#ifdef __cplusplus +} // extern "C" +#endif + +#if (!defined(__cplusplus) || defined(CINTERFACE)) && defined(COBJMACROS) + +#define IGameInput_QueryInterface(This, riid, ppvObj) ((This)->lpVtbl->QueryInterface(This, riid, ppvObj)) +#define IGameInput_AddRef(This) ((This)->lpVtbl->AddRef(This)) +#define IGameInput_Release(This) ((This)->lpVtbl->Release(This)) +#define IGameInput_GetCurrentTimestamp(This) ((This)->lpVtbl->GetCurrentTimestamp(This)) +#define IGameInput_GetCurrentReading(This, inputKind, device, reading) ((This)->lpVtbl->GetCurrentReading(This, inputKind, device, reading)) +#define IGameInput_GetNextReading(This, referenceReading, inputKind, device, reading) ((This)->lpVtbl->GetNextReading(This, referenceReading, inputKind, device, reading)) +#define IGameInput_GetPreviousReading(This, referenceReading, inputKind, device, reading) ((This)->lpVtbl->GetPreviousReading(This, referenceReading, inputKind, device, reading)) +#define IGameInput_GetTemporalReading(This, timestamp, device, reading) ((This)->lpVtbl->GetTemporalReading(This, timestamp, device, reading)) +#define IGameInput_RegisterReadingCallback(This, device, inputKind, analogThreshold, context, callbackFunc, callbackToken) ((This)->lpVtbl->RegisterReadingCallback(This, device, inputKind, analogThreshold, context, callbackFunc, callbackToken)) +#define IGameInput_RegisterDeviceCallback(This, device, inputKind, statusFilter, enumerationKind, context, callbackFunc, callbackToken) ((This)->lpVtbl->RegisterDeviceCallback(This, device, inputKind, statusFilter, enumerationKind, context, callbackFunc, callbackToken)) +#define IGameInput_RegisterSystemButtonCallback(This, device, buttonFilter, focusPolicy, context, callbackFunc, callbackToken) ((This)->lpVtbl->RegisterSystemButtonCallback(This, device, buttonFilter, focusPolicy, context, callbackFunc, callbackToken)) +#define IGameInput_RegisterKeyboardLayoutCallback(This, device, context, callbackFunc, callbackToken) ((This)->lpVtbl->RegisterKeyboardLayoutCallback(This, device, context, callbackFunc, callbackToken)) +#define IGameInput_StopCallback(This, callbackToken) ((This)->lpVtbl->StopCallback(This, callbackToken)) +#define IGameInput_UnregisterCallback(This, callbackToken, timeoutInMicroseconds) ((This)->lpVtbl->UnregisterCallback(This, callbackToken, timeoutInMicroseconds)) +#define IGameInput_CreateDispatcher(This, dispatcher) ((This)->lpVtbl->CreateDispatcher(This, dispatcher)) +#define IGameInput_CreateAggregateDevice(This, inputKind, device) ((This)->lpVtbl->CreateAggregateDevice(This, inputKind, device)) +#define IGameInput_FindDeviceFromId(This, value, device) ((This)->lpVtbl->FindDeviceFromId(This, value, device)) +#define IGameInput_FindDeviceFromObject(This, value, device) ((This)->lpVtbl->FindDeviceFromObject(This, value, device)) +#define IGameInput_FindDeviceFromPlatformHandle(This, value, device) ((This)->lpVtbl->FindDeviceFromPlatformHandle(This, value, device)) +#define IGameInput_FindDeviceFromPlatformString(This, value, device) ((This)->lpVtbl->FindDeviceFromPlatformString(This, value, device)) +#define IGameInput_EnableOemDeviceSupport(This, vendorId, productId, interfaceNumber, collectionNumber) ((This)->lpVtbl->EnableOemDeviceSupport(This, vendorId, productId, interfaceNumber, collectionNumber)) +#define IGameInput_SetFocusPolicy(This, policy) ((This)->lpVtbl->SetFocusPolicy(This, policy)) + +#define IGameInputReading_QueryInterface(This, riid, ppvObj) ((This)->lpVtbl->QueryInterface(This, riid, ppvObj)) +#define IGameInputReading_AddRef(This) ((This)->lpVtbl->AddRef(This)) +#define IGameInputReading_Release(This) ((This)->lpVtbl->Release(This)) +#define IGameInputReading_GetInputKind(This) ((This)->lpVtbl->GetInputKind(This)) +#define IGameInputReading_GetSequenceNumber(This, inputKind) ((This)->lpVtbl->GetSequenceNumber(This, inputKind)) +#define IGameInputReading_GetTimestamp(This) ((This)->lpVtbl->GetTimestamp(This)) +#define IGameInputReading_GetDevice(This, device) ((This)->lpVtbl->GetDevice(This, device)) +#define IGameInputReading_GetRawReport(This, report) ((This)->lpVtbl->GetRawReport(This, report)) +#define IGameInputReading_GetControllerAxisCount(This) ((This)->lpVtbl->GetControllerAxisCount(This)) +#define IGameInputReading_GetControllerAxisState(This, stateArrayCount, stateArray) ((This)->lpVtbl->GetControllerAxisState(This, stateArrayCount, stateArray)) +#define IGameInputReading_GetControllerButtonCount(This) ((This)->lpVtbl->GetControllerButtonCount(This)) +#define IGameInputReading_GetControllerButtonState(This, stateArrayCount, stateArray) ((This)->lpVtbl->GetControllerButtonState(This, stateArrayCount, stateArray)) +#define IGameInputReading_GetControllerSwitchCount(This) ((This)->lpVtbl->GetControllerSwitchCount(This)) +#define IGameInputReading_GetControllerSwitchState(This, stateArrayCount, stateArray) ((This)->lpVtbl->GetControllerSwitchState(This, stateArrayCount, stateArray)) +#define IGameInputReading_GetKeyCount(This) ((This)->lpVtbl->GetKeyCount(This)) +#define IGameInputReading_GetKeyState(This, stateArrayCount, stateArray) ((This)->lpVtbl->GetKeyState(This, stateArrayCount, stateArray)) +#define IGameInputReading_GetMouseState(This, state) ((This)->lpVtbl->GetMouseState(This, state)) +#define IGameInputReading_GetTouchCount(This) ((This)->lpVtbl->GetTouchCount(This)) +#define IGameInputReading_GetTouchState(This, stateArrayCount, stateArray) ((This)->lpVtbl->GetTouchState(This, stateArrayCount, stateArray)) +#define IGameInputReading_GetMotionState(This, state) ((This)->lpVtbl->GetMotionState(This, state)) +#define IGameInputReading_GetArcadeStickState(This, state) ((This)->lpVtbl->GetArcadeStickState(This, state)) +#define IGameInputReading_GetFlightStickState(This, state) ((This)->lpVtbl->GetFlightStickState(This, state)) +#define IGameInputReading_GetGamepadState(This, state) ((This)->lpVtbl->GetGamepadState(This, state)) +#define IGameInputReading_GetRacingWheelState(This, state) ((This)->lpVtbl->GetRacingWheelState(This, state)) +#define IGameInputReading_GetUiNavigationState(This, state) ((This)->lpVtbl->GetUiNavigationState(This, state)) + +#define IGameInputDevice_QueryInterface(This, riid, ppvObj) ((This)->lpVtbl->QueryInterface(This, riid, ppvObj)) +#define IGameInputDevice_AddRef(This) ((This)->lpVtbl->AddRef(This)) +#define IGameInputDevice_Release(This) ((This)->lpVtbl->Release(This)) +#define IGameInputDevice_GetDeviceInfo(This) ((This)->lpVtbl->GetDeviceInfo(This)) +#define IGameInputDevice_GetDeviceStatus(This) ((This)->lpVtbl->GetDeviceStatus(This)) +#define IGameInputDevice_GetBatteryState(This, state) ((This)->lpVtbl->GetBatteryState(This, state)) +#define IGameInputDevice_CreateForceFeedbackEffect(This, motorIndex, params, effect) ((This)->lpVtbl->CreateForceFeedbackEffect(This, motorIndex, params, effect)) +#define IGameInputDevice_IsForceFeedbackMotorPoweredOn(This, motorIndex) ((This)->lpVtbl->IsForceFeedbackMotorPoweredOn(This, motorIndex)) +#define IGameInputDevice_SetForceFeedbackMotorGain(This, motorIndex, masterGain) ((This)->lpVtbl->SetForceFeedbackMotorGain(This, motorIndex, masterGain)) +#define IGameInputDevice_SetHapticMotorState(This, motorIndex, params) ((This)->lpVtbl->SetHapticMotorState(This, motorIndex, params)) +#define IGameInputDevice_SetRumbleState(This, params) ((This)->lpVtbl->SetRumbleState(This, params)) +#define IGameInputDevice_SetInputSynchronizationState(This, enabled) ((This)->lpVtbl->SetInputSynchronizationState(This, enabled)) +#define IGameInputDevice_SendInputSynchronizationHint(This) ((This)->lpVtbl->SendInputSynchronizationHint(This)) +#define IGameInputDevice_PowerOff(This) ((This)->lpVtbl->PowerOff(This)) +#define IGameInputDevice_CreateRawDeviceReport(This, reportId, reportKind, report) ((This)->lpVtbl->CreateRawDeviceReport(This, reportId, reportKind, report)) +#define IGameInputDevice_GetRawDeviceFeature(This, reportId, report) ((This)->lpVtbl->GetRawDeviceFeature(This, reportId, report)) +#define IGameInputDevice_SetRawDeviceFeature(This, report) ((This)->lpVtbl->SetRawDeviceFeature(This, report)) +#define IGameInputDevice_SendRawDeviceOutput(This, report) ((This)->lpVtbl->SendRawDeviceOutput(This, report)) +#define IGameInputDevice_SendRawDeviceOutputWithResponse(This, requestReport, responseReport) ((This)->lpVtbl->SendRawDeviceOutputWithResponse(This, requestReport, responseReport)) +#define IGameInputDevice_ExecuteRawDeviceIoControl(This, controlCode, inputBufferSize, inputBuffer, outputBufferSize, outputBuffer, outputSize) ((This)->lpVtbl->ExecuteRawDeviceIoControl(This, controlCode, inputBufferSize, inputBuffer, outputBufferSize, outputBuffer, outputSize)) +#define IGameInputDevice_AcquireExclusiveRawDeviceAccess(This, timeoutInMicroseconds) ((This)->lpVtbl->AcquireExclusiveRawDeviceAccess(This, timeoutInMicroseconds)) +#define IGameInputDevice_ReleaseExclusiveRawDeviceAccess(This) ((This)->lpVtbl->ReleaseExclusiveRawDeviceAccess(This)) + +#define IGameInputDispatcher_QueryInterface(This, riid, ppvObj) ((This)->lpVtbl->QueryInterface(This, riid, ppvObj) +#define IGameInputDispatcher_AddRef(This) ((This)->lpVtbl->AddRef(This) +#define IGameInputDispatcher_Release(This) ((This)->lpVtbl->Release(This) +#define IGameInputDispatcher_Dispatch(This, quotaInMicroseconds) ((This)->lpVtbl->Dispatch(This, quotaInMicroseconds) +#define IGameInputDispatcher_OpenWaitHandle(This, waitHandle) ((This)->lpVtbl->OpenWaitHandle(This, waitHandle) + +#define IGameInputForceFeedbackEffect_QueryInterface(This, riid, ppvObj) ((This)->lpVtbl->QueryInterface(This, riid, ppvObj) +#define IGameInputForceFeedbackEffect_AddRef(This) ((This)->lpVtbl->AddRef(This) +#define IGameInputForceFeedbackEffect_Release(This) ((This)->lpVtbl->Release(This) +#define IGameInputForceFeedbackEffect_GetDevice(This, device) ((This)->lpVtbl->GetDevice(This, device) +#define IGameInputForceFeedbackEffect_GetMotorIndex(This) ((This)->lpVtbl->GetMotorIndex(This) +#define IGameInputForceFeedbackEffect_GetGain(This) ((This)->lpVtbl->GetGain(This) +#define IGameInputForceFeedbackEffect_SetGain(This, gain) ((This)->lpVtbl->SetGain(This, gain) +#define IGameInputForceFeedbackEffect_GetParams(This, params) ((This)->lpVtbl->GetParams(This, params) +#define IGameInputForceFeedbackEffect_SetParams(This, params) ((This)->lpVtbl->SetParams(This, params) +#define IGameInputForceFeedbackEffect_GetState(This) ((This)->lpVtbl->GetState(This) +#define IGameInputForceFeedbackEffect_SetState(This, state) ((This)->lpVtbl->SetState(This, state) + +#define IGameInputRawDeviceReport_QueryInterface(This, riid, ppvObj) ((This)->lpVtbl->QueryInterface(This, riid, ppvObj) +#define IGameInputRawDeviceReport_AddRef(This) ((This)->lpVtbl->AddRef(This) +#define IGameInputRawDeviceReport_Release(This) ((This)->lpVtbl->Release(This) +#define IGameInputRawDeviceReport_GetDevice(This, device) ((This)->lpVtbl->GetDevice(This, device) +#define IGameInputRawDeviceReport_GetReportInfo(This) ((This)->lpVtbl->GetReportInfo(This) +#define IGameInputRawDeviceReport_GetRawDataSize(This) ((This)->lpVtbl->GetRawDataSize(This) +#define IGameInputRawDeviceReport_GetRawData(This, bufferSize, buffer) ((This)->lpVtbl->GetRawData(This, bufferSize, buffer) +#define IGameInputRawDeviceReport_SetRawData(This, bufferSize, buffer) ((This)->lpVtbl->SetRawData(This, bufferSize, buffer) +#define IGameInputRawDeviceReport_GetItemValue(This, itemIndex, value) ((This)->lpVtbl->GetItemValue(This, itemIndex, value) +#define IGameInputRawDeviceReport_SetItemValue(This, itemIndex, value) ((This)->lpVtbl->SetItemValue(This, itemIndex, value) +#define IGameInputRawDeviceReport_ResetItemValue(This, itemIndex) ((This)->lpVtbl->ResetItemValue() +#define IGameInputRawDeviceReport_ResetAllItems(This) ((This)->lpVtbl->ResetAllItems(This) + +#endif // #if (!defined(__cplusplus) || defined(CINTERFACE)) && defined(COBJMACROS) + +#endif // #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#define FACILITY_GAMEINPUT 906 + +// +// MessageId: GAMEINPUT_E_DEVICE_DISCONNECTED +// +// MessageText: +// +// The device is not currently connected to the system. +// +#define GAMEINPUT_E_DEVICE_DISCONNECTED _HRESULT_TYPEDEF_(0x838A0001L) + +// +// MessageId: GAMEINPUT_E_DEVICE_NOT_FOUND +// +// MessageText: +// +// The requested device could not be found. +// +#define GAMEINPUT_E_DEVICE_NOT_FOUND _HRESULT_TYPEDEF_(0x838A0002L) + +// +// MessageId: GAMEINPUT_E_READING_NOT_FOUND +// +// MessageText: +// +// The requested reading could not be found. +// +#define GAMEINPUT_E_READING_NOT_FOUND _HRESULT_TYPEDEF_(0x838A0003L) + +// +// MessageId: GAMEINPUT_E_REFERENCE_READING_TOO_OLD +// +// MessageText: +// +// The reference reading no longer exists in the reading history. +// +#define GAMEINPUT_E_REFERENCE_READING_TOO_OLD _HRESULT_TYPEDEF_(0x838A0004L) + +// +// MessageId: GAMEINPUT_E_TIMESTAMP_OUT_OF_RANGE +// +// MessageText: +// +// The target timestamp for the temporal reading is too far in the past or future. +// +#define GAMEINPUT_E_TIMESTAMP_OUT_OF_RANGE _HRESULT_TYPEDEF_(0x838A0005L) + +// +// MessageId: GAMEINPUT_E_INSUFFICIENT_FORCE_FEEDBACK_RESOURCES +// +// MessageText: +// +// The device does not have enough resources remaining to create the requested force feedback effect. +// +#define GAMEINPUT_E_INSUFFICIENT_FORCE_FEEDBACK_RESOURCES _HRESULT_TYPEDEF_(0x838A0006L) + +#endif // #ifndef __gameinput_h__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/GenLex.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/GenLex.h new file mode 100644 index 0000000000000000000000000000000000000000..8e4ee23636b1057a07fccdb54b8b03555186fe0a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/GenLex.h @@ -0,0 +1,110 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + GENLEX.H + +Abstract: + + Generic lexer framework classes. + +History: + +--*/ + +#ifndef _GENLEX_H_ +#define _GENLEX_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include + +class CGenLexSource +{ +public: + virtual wchar_t NextChar() = 0; + // Return 0 on end-of-input + virtual void Pushback(wchar_t) = 0; + virtual void Reset() = 0; +}; + +class CTextLexSource : public CGenLexSource +{ + const wchar_t *m_pSrcBuf; + const wchar_t *m_pStart; + +public: + CTextLexSource(const wchar_t *pSrc) { SetString(pSrc); } + // Binds directly to buffer, but doesn't delete it. + + wchar_t NextChar() + { + if (!m_pSrcBuf) + return 0; + else + return *m_pSrcBuf++ ? m_pSrcBuf[-1] : 0; + } + + void Pushback(wchar_t) + { + if (m_pSrcBuf) + --m_pSrcBuf; + } + + void Reset() { m_pSrcBuf = m_pStart; } + void SetString (const wchar_t *pSrc) { m_pSrcBuf = m_pStart = pSrc; } +}; + + +#pragma pack(2) +struct LexEl +{ + wchar_t cFirst, cLast; + WORD wGotoState; + WORD wReturnTok; + WORD wInstructions; +}; +#pragma pack() + + +// Lexer driver instructions + +#define GLEX_ACCEPT 0x1 // Add the char to the token +#define GLEX_CONSUME 0x2 // Consume the char without adding to token +#define GLEX_PUSHBACK 0x4 // Place the char back in the source buffer for next token +#define GLEX_NOT 0x8 // A match occurs if the char is NOT the one specified +#define GLEX_LINEFEED 0x10 // Increase the source linecount +#define GLEX_RETURN 0x20 // Return the indicated token to caller +#define GLEX_ANY wchar_t(0xFFFF) // Any character +#define GLEX_EMPTY wchar_t(0xFFFE) // When subrange is not specified + +class CGenLexer +{ + _Field_size_(m_nCurBufSize) wchar_t *m_pTokenBuf; + int m_nCurrentLine; + int m_nCurBufSize; + CGenLexSource *m_pSrc; + LexEl *m_pTable; + +public: + CGenLexer(LexEl *pTbl, CGenLexSource *pSrc); + + ~CGenLexer(); + _Success_(return == 1) int NextToken(); + // Returns 0 on end of input. + + wchar_t* GetTokenText() { return m_pTokenBuf; } + int GetLineNum() { return m_nCurrentLine; } + void Reset(); +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/HLink.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HLink.Idl new file mode 100644 index 0000000000000000000000000000000000000000..9678c608233d03821ca2fe45b96a61db267ce5f3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HLink.Idl @@ -0,0 +1,860 @@ +//------------------------------------------------------------------------------------------ +// +// Copyright (C) Microsoft Corporation, 1995-1997. +// +// Contents: Hyperlinking interfaces +// +//------------------------------------------------------------------------------------------ + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// HLInk.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 1995-1997 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("// OLE Hyperlinking Interfaces.") +cpp_quote(" ") +cpp_quote("#ifndef HLINK_H ") +cpp_quote("#define HLINK_H ") +cpp_quote(" ") + +import "urlmon.idl"; + +interface IHlinkSite; +interface IHlink; +interface IHlinkTarget; +interface IHlinkFrame; +interface IEnumHLITEM; +interface IHlinkBrowseContext; + +cpp_quote("// ;BUGBUG We temporarily support the old 'source' names ") +cpp_quote("#define SID_SHlinkFrame IID_IHlinkFrame") +cpp_quote("#define IID_IHlinkSource IID_IHlinkTarget ") +cpp_quote("#define IHlinkSource IHlinkTarget ") +cpp_quote("#define IHlinkSourceVtbl IHlinkTargetVtbl ") +cpp_quote("#define LPHLINKSOURCE LPHLINKTARGET ") +cpp_quote(" ") +cpp_quote("/****************************************************************************/") +cpp_quote("/**** Error codes ****/") +cpp_quote("/****************************************************************************/") +cpp_quote("#ifndef _HLINK_ERRORS_DEFINED ") +cpp_quote("#define _HLINK_ERRORS_DEFINED ") +cpp_quote("#define HLINK_E_FIRST (OLE_E_LAST+1) ") +cpp_quote("#define HLINK_S_FIRST (OLE_S_LAST+1) ") +cpp_quote("#define HLINK_S_DONTHIDE (HLINK_S_FIRST) ") +cpp_quote("#endif //_HLINK_ERRORS_DEFINED ") +cpp_quote(" ") +cpp_quote(" ") +cpp_quote("/****************************************************************************/") +cpp_quote("/**** Hyperlink APIs ****/") +cpp_quote("/****************************************************************************/") +cpp_quote(" ") + +// Hyperlink Clipboard Format: On MAC it is 'HLNK', and on windows it is the +// the value returned from RegisterClipboardFormat(CFSTR_HYPERLINK). +cpp_quote("#define CFSTR_HYPERLINK (TEXT(\"Hyperlink\")) ") +cpp_quote(" ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkCreateFromMoniker( ") +cpp_quote(" IMoniker * pimkTrgt, ") +cpp_quote(" LPCWSTR pwzLocation, ") +cpp_quote(" LPCWSTR pwzFriendlyName, ") +cpp_quote(" IHlinkSite * pihlsite, ") +cpp_quote(" DWORD dwSiteData, ") +cpp_quote(" IUnknown * piunkOuter, ") +cpp_quote(" REFIID riid, ") +cpp_quote(" void ** ppvObj); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkCreateFromString( ") +cpp_quote(" LPCWSTR pwzTarget, ") +cpp_quote(" LPCWSTR pwzLocation, ") +cpp_quote(" LPCWSTR pwzFriendlyName, ") +cpp_quote(" IHlinkSite * pihlsite, ") +cpp_quote(" DWORD dwSiteData, ") +cpp_quote(" IUnknown * piunkOuter, ") +cpp_quote(" REFIID riid, ") +cpp_quote(" void ** ppvObj); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkCreateFromData( ") +cpp_quote(" IDataObject *piDataObj, ") +cpp_quote(" IHlinkSite * pihlsite, ") +cpp_quote(" DWORD dwSiteData, ") +cpp_quote(" IUnknown * piunkOuter, ") +cpp_quote(" REFIID riid, ") +cpp_quote(" void ** ppvObj); ") +cpp_quote(" ") + +// Returns S_OK if a hyperlink can be created from piDataObj, S_FALSE if not. +cpp_quote("STDAPI HlinkQueryCreateFromData(IDataObject *piDataObj); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkClone( ") +cpp_quote(" IHlink * pihl, ") +cpp_quote(" REFIID riid, ") +cpp_quote(" IHlinkSite * pihlsiteForClone, ") +cpp_quote(" DWORD dwSiteData, ") +cpp_quote(" void ** ppvObj); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkCreateBrowseContext( ") +cpp_quote(" IUnknown * piunkOuter, ") +cpp_quote(" REFIID riid, ") +cpp_quote(" void ** ppvObj); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkNavigateToStringReference( ") +cpp_quote(" LPCWSTR pwzTarget, ") +cpp_quote(" LPCWSTR pwzLocation, ") +cpp_quote(" IHlinkSite * pihlsite, ") +cpp_quote(" DWORD dwSiteData, ") +cpp_quote(" IHlinkFrame *pihlframe, ") +cpp_quote(" DWORD grfHLNF, ") +cpp_quote(" LPBC pibc, ") +cpp_quote(" IBindStatusCallback * pibsc, ") +cpp_quote(" IHlinkBrowseContext *pihlbc); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkNavigate( ") +cpp_quote(" IHlink * pihl, ") +cpp_quote(" IHlinkFrame * pihlframe, ") +cpp_quote(" DWORD grfHLNF, ") +cpp_quote(" LPBC pbc, ") +cpp_quote(" IBindStatusCallback * pibsc, ") +cpp_quote(" IHlinkBrowseContext *pihlbc); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkOnNavigate( ") +cpp_quote(" IHlinkFrame * pihlframe, ") +cpp_quote(" IHlinkBrowseContext * pihlbc, ") +cpp_quote(" DWORD grfHLNF, ") +cpp_quote(" IMoniker * pimkTarget, ") +cpp_quote(" LPCWSTR pwzLocation, ") +cpp_quote(" LPCWSTR pwzFriendlyName, ") +cpp_quote(" ULONG * puHLID); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkUpdateStackItem( ") +cpp_quote(" IHlinkFrame * pihlframe, ") +cpp_quote(" IHlinkBrowseContext * pihlbc, ") +cpp_quote(" ULONG uHLID, ") +cpp_quote(" IMoniker * pimkTrgt, ") +cpp_quote(" LPCWSTR pwzLocation, ") +cpp_quote(" LPCWSTR pwzFriendlyName); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkOnRenameDocument( ") +cpp_quote(" DWORD dwReserved, ") +cpp_quote(" IHlinkBrowseContext * pihlbc, ") +cpp_quote(" IMoniker * pimkOld, ") +cpp_quote(" IMoniker * pimkNew); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkResolveMonikerForData( ") +cpp_quote(" LPMONIKER pimkReference, ") +cpp_quote(" DWORD reserved, ") +cpp_quote(" LPBC pibc, ") +cpp_quote(" ULONG cFmtetc, ") +cpp_quote(" FORMATETC * rgFmtetc, ") +cpp_quote(" IBindStatusCallback * pibsc, ") +cpp_quote(" LPMONIKER pimkBase); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkResolveStringForData( ") +cpp_quote(" LPCWSTR pwzReference, ") +cpp_quote(" DWORD reserved, ") +cpp_quote(" LPBC pibc, ") +cpp_quote(" ULONG cFmtetc, ") +cpp_quote(" FORMATETC * rgFmtetc, ") +cpp_quote(" IBindStatusCallback * pibsc, ") +cpp_quote(" LPMONIKER pimkBase); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkParseDisplayName( ") +cpp_quote(" LPBC pibc, ") +cpp_quote(" LPCWSTR pwzDisplayName, ") +cpp_quote(" BOOL fNoForceAbs, ") +cpp_quote(" ULONG * pcchEaten, ") +cpp_quote(" IMoniker ** ppimk); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkCreateExtensionServices( ") +cpp_quote(" LPCWSTR pwzAdditionalHeaders, ") +cpp_quote(" HWND phwnd, ") +cpp_quote(" LPCWSTR pszUsername, ") +cpp_quote(" LPCWSTR pszPassword, ") +cpp_quote(" IUnknown * piunkOuter, ") +cpp_quote(" REFIID riid, ") +cpp_quote(" void ** ppvObj); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkPreprocessMoniker( ") +cpp_quote(" LPBC pibc, ") +cpp_quote(" IMoniker *pimkIn, ") +cpp_quote(" IMoniker **ppimkOut); ") +cpp_quote(" ") +cpp_quote("STDAPI OleSaveToStreamEx( ") +cpp_quote(" IUnknown * piunk, ") +cpp_quote(" IStream * pistm, ") +cpp_quote(" BOOL fClearDirty); ") +cpp_quote(" ") + +// hlink special reference ids used in HlinkSetSpecialReference and HlinkGetSpecialReference +typedef enum _HLSR_NOREDEF10 +{ + HLSR_HOME = 0, + HLSR_SEARCHPAGE = 1, + HLSR_HISTORYFOLDER = 2, +} HLSR; + +cpp_quote(" ") +cpp_quote("STDAPI HlinkSetSpecialReference( ") +cpp_quote(" ULONG uReference, ") +cpp_quote(" LPCWSTR pwzReference); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkGetSpecialReference( ") +cpp_quote(" ULONG uReference, ") +cpp_quote(" _Outptr_ LPWSTR *ppwzReference); ") +cpp_quote(" ") + +typedef enum _HLSHORTCUTF__NOREDEF10 +{ + HLSHORTCUTF_DEFAULT = 0x00000000, + HLSHORTCUTF_DONTACTUALLYCREATE = 0x00000001, + HLSHORTCUTF_USEFILENAMEFROMFRIENDLYNAME = 0x00000002, + HLSHORTCUTF_USEUNIQUEFILENAME = 0x00000004, + HLSHORTCUTF_MAYUSEEXISTINGSHORTCUT = 0x00000008, +} HLSHORTCUTF; + +cpp_quote(" ") +cpp_quote("STDAPI HlinkCreateShortcut( ") +cpp_quote(" DWORD grfHLSHORTCUTF, ") +cpp_quote(" IHlink *pihl, ") +cpp_quote(" LPCWSTR pwzDir, ") +cpp_quote(" LPCWSTR pwzFileName, ") +cpp_quote(" _Outptr_ LPWSTR *ppwzShortcutFile, ") +cpp_quote(" DWORD dwReserved); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkCreateShortcutFromMoniker( ") +cpp_quote(" DWORD grfHLSHORTCUTF, ") +cpp_quote(" IMoniker *pimkTarget, ") +cpp_quote(" LPCWSTR pwzLocation, ") +cpp_quote(" LPCWSTR pwzDir, ") +cpp_quote(" LPCWSTR pwzFileName, ") +cpp_quote(" _Outptr_ LPWSTR *ppwzShortcutFile, ") +cpp_quote(" DWORD dwReserved); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkCreateShortcutFromString( ") +cpp_quote(" DWORD grfHLSHORTCUTF, ") +cpp_quote(" LPCWSTR pwzTarget, ") +cpp_quote(" LPCWSTR pwzLocation, ") +cpp_quote(" LPCWSTR pwzDir, ") +cpp_quote(" LPCWSTR pwzFileName, ") +cpp_quote(" _Outptr_ LPWSTR *ppwzShortcutFile, ") +cpp_quote(" DWORD dwReserved); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkResolveShortcut( ") +cpp_quote(" LPCWSTR pwzShortcutFileName, ") +cpp_quote(" IHlinkSite * pihlsite, ") +cpp_quote(" DWORD dwSiteData, ") +cpp_quote(" IUnknown * piunkOuter, ") +cpp_quote(" REFIID riid, ") +cpp_quote(" void ** ppvObj); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkResolveShortcutToMoniker( ") +cpp_quote(" LPCWSTR pwzShortcutFileName, ") +cpp_quote(" IMoniker **ppimkTarget, ") +cpp_quote(" _Outptr_ LPWSTR *ppwzLocation); ") +cpp_quote(" ") +cpp_quote("STDAPI HlinkResolveShortcutToString( ") +cpp_quote(" LPCWSTR pwzShortcutFileName, ") +cpp_quote(" _Outptr_ LPWSTR *ppwzTarget, ") +cpp_quote(" _Outptr_ LPWSTR *ppwzLocation); ") +cpp_quote(" ") + +// Returns S_OK if pwzFileName is a hlink shortcut file. +// Currently, this succeeds for Internet Shortcut (.url) files. +cpp_quote(" ") +cpp_quote(" STDAPI HlinkIsShortcut(LPCWSTR pwzFileName); ") +cpp_quote(" ") + +// Find pwzName within pwzParams and return the associated value. +// The syntax of pwzParams is < ID1 = "value1" > < ID2 = "value2" > with +// all whitespace outside the quoted strings being ignored. +// If the pwzName is found, allocate and fill in *ppwzValue with the +// associated value and return S_OK. +// If pwzName is not found, return S_FALSE. +cpp_quote(" ") +cpp_quote("STDAPI HlinkGetValueFromParams( ") +cpp_quote(" LPCWSTR pwzParams, ") +cpp_quote(" LPCWSTR pwzName, ") +cpp_quote(" _Outptr_ LPWSTR *ppwzValue); ") +cpp_quote(" ") +cpp_quote(" ") + +typedef enum _HLTRANSLATEF_NOREDEF10 +{ + HLTRANSLATEF_DEFAULT = 0x00000000, + HLTRANSLATEF_DONTAPPLYDEFAULTPREFIX = 0x00000001 +} HLTRANSLATEF; + +cpp_quote(" ") +cpp_quote("STDAPI HlinkTranslateURL( ") +cpp_quote(" LPCWSTR pwzURL, ") +cpp_quote(" DWORD grfFlags, ") +cpp_quote(" _Outptr_ LPWSTR *ppwzTranslatedURL); ") +cpp_quote(" ") +cpp_quote(" ") + + +cpp_quote(" ") +cpp_quote("/****************************************************************************/") +cpp_quote("/**** Hyperlink interface definitions ****/") +cpp_quote("/****************************************************************************/") +cpp_quote(" ") + + +/****************************************************************************/ +/* THIS MUST BE THE FIRST INTERFACE DEFINITION IN THIS IDL. DO NOT MOVE IT */ +/****************************************************************************/ + + +//---------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995 - 1997. +// +// Contents: IHlink interface definition +// +//---------------------------------------------------------------------------- + +cpp_quote("#ifndef _LPHLINK_DEFINED") +cpp_quote("#define _LPHLINK_DEFINED") + +[ + object, + uuid(79eac9c3-baf9-11ce-8c82-00aa004ba90b), + pointer_default(unique) +] + + +interface IHlink: IUnknown +{ + typedef [unique] IHlink *LPHLINK; + + // Navigation flags + typedef enum + { + HLNF_INTERNALJUMP = 0x00000001, + HLNF_OPENINNEWWINDOW = 0x00000002, + HLNF_NAVIGATINGBACK = 0x00000004, + HLNF_NAVIGATINGFORWARD = 0x00000008, + HLNF_NAVIGATINGTOSTACKITEM = 0x00000010, + HLNF_CREATENOHISTORY = 0x00000020, + } HLNF; + + // GetXXXReference values indicating reference to be retrieved + typedef enum + { + HLINKGETREF_DEFAULT = 0, + HLINKGETREF_ABSOLUTE = 1, + HLINKGETREF_RELATIVE = 2, + } HLINKGETREF; + + // GetFriendlyName flags + typedef enum + { + HLFNAMEF_DEFAULT = 0x00000000, + HLFNAMEF_TRYCACHE = 0x00000001, + HLFNAMEF_TRYPRETTYTARGET = 0x00000002, + HLFNAMEF_TRYFULLTARGET = 0x00000004, + HLFNAMEF_TRYWIN95SHORTCUT = 0x00000008, + } HLFNAMEF; + + // Status flags + typedef enum + { + HLINKMISC_RELATIVE = 0x00000001, + } HLINKMISC; + + // SetXXXReference flags, indicating which part of the reference + // need to be updated + typedef enum + { + HLINKSETF_TARGET = 0x00000001, + HLINKSETF_LOCATION = 0x00000002, + } HLINKSETF; + + HRESULT SetHlinkSite( + [in, unique] IHlinkSite * pihlSite, + [in] DWORD dwSiteData); + + HRESULT GetHlinkSite( + [out] IHlinkSite ** ppihlSite, + [out] DWORD * pdwSiteData); + + HRESULT SetMonikerReference( + [in] DWORD grfHLSETF, + [in, unique] IMoniker * pimkTarget, + [in, unique] LPCWSTR pwzLocation); + + [local] + HRESULT GetMonikerReference( + [in] DWORD dwWhichRef, + [out, annotation("_Outptr_opt_result_maybenull_")] IMoniker ** ppimkTarget, + [out, annotation("_Outptr_opt_result_maybenull_")] LPWSTR * ppwzLocation); + + [call_as(GetMonikerReference)] + HRESULT RemoteGetMonikerReference( + [in] DWORD dwWhichRef, + [out] IMoniker ** ppimkTarget, + [out] LPWSTR* ppwzLocation); + + HRESULT SetStringReference( + [in] DWORD grfHLSETF, + [in, unique] LPCWSTR pwzTarget, + [in, unique] LPCWSTR pwzLocation); + + [local] + HRESULT GetStringReference( + [in] DWORD dwWhichRef, + [out, annotation("_Outptr_opt_")] LPWSTR * ppwzTarget, + [out, annotation("_Outptr_opt_result_maybenull_")] LPWSTR * ppwzLocation); + + [call_as(GetStringReference)] + HRESULT RemoteGetStringReference( + [in] DWORD dwWhichRef, + [out] LPWSTR * ppwzTarget, + [out] LPWSTR * ppwzLocation); + + HRESULT SetFriendlyName( + [in, unique] LPCWSTR pwzFriendlyName); + + HRESULT GetFriendlyName( + [in] DWORD grfHLFNAMEF, + [out] LPWSTR * ppwzFriendlyName); + + HRESULT SetTargetFrameName( + [in, unique] LPCWSTR pwzTargetFrameName); + + HRESULT GetTargetFrameName( + [out] LPWSTR *ppwzTargetFrameName); + + HRESULT GetMiscStatus( + [out] DWORD *pdwStatus); + + HRESULT Navigate( + [in] DWORD grfHLNF, + [in, unique] LPBC pibc, + [in, unique] IBindStatusCallback * pibsc, + [in, unique] IHlinkBrowseContext * pihlbc); + + HRESULT SetAdditionalParams( + [in, unique] LPCWSTR pwzAdditionalParams); + + HRESULT GetAdditionalParams( + [out] LPWSTR *ppwzAdditionalParams); +} +cpp_quote("#endif") + + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995 - 1997. +// +// Contents: IHlinkSite interface definition +// +//---------------------------------------------------------------------------- + +cpp_quote("#ifndef _LPHLINKSITE_DEFINED") +cpp_quote("#define _LPHLINKSITE_DEFINED") +cpp_quote("EXTERN_C const GUID SID_SContainer;") + +[ + object, + uuid(79eac9c2-baf9-11ce-8c82-00aa004ba90b), + pointer_default(unique) +] + + +interface IHlinkSite: IUnknown +{ + typedef [unique] IHlinkSite *LPHLINKSITE; + + // values indicating the moniker to be retrieved + typedef enum + { + HLINKWHICHMK_CONTAINER = 1, + HLINKWHICHMK_BASE = 2, + } HLINKWHICHMK; + + HRESULT QueryService( + [in] DWORD dwSiteData, +#ifdef _MAC + [in] GUID * guidService, +#else + [in] REFGUID guidService, +#endif // _MAC + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppiunk); + + HRESULT GetMoniker( + [in] DWORD dwSiteData, + [in] DWORD dwAssign, + [in] DWORD dwWhich, + [out] IMoniker ** ppimk); + + HRESULT ReadyToNavigate( + [in] DWORD dwSiteData, + [in] DWORD dwReserved); + + HRESULT OnNavigationComplete( + [in] DWORD dwSiteData, + [in] DWORD dwreserved, + [in] HRESULT hrError, + [in, unique] LPCWSTR pwzError); +} +cpp_quote("#endif") + + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995 - 1997. +// +// Contents: IHlinkTarget interface definition +// +//---------------------------------------------------------------------------- + +cpp_quote("#ifndef _LPHLINKTARGET_DEFINED") +cpp_quote("#define _LPHLINKTARGET_DEFINED") + +[ + object, + uuid(79eac9c4-baf9-11ce-8c82-00aa004ba90b), + pointer_default(unique) +] + + +interface IHlinkTarget : IUnknown +{ + typedef [unique] IHlinkTarget *LPHLINKTARGET; + + HRESULT SetBrowseContext( + [in, unique] IHlinkBrowseContext * pihlbc); + + HRESULT GetBrowseContext( + [out] IHlinkBrowseContext ** ppihlbc); + + HRESULT Navigate( + [in] DWORD grfHLNF, + [in, unique] LPCWSTR pwzJumpLocation); + + HRESULT GetMoniker( + [in,unique] LPCWSTR pwzLocation, + [in] DWORD dwAssign, + [out] IMoniker ** ppimkLocation); + + HRESULT GetFriendlyName( + [in,unique] LPCWSTR pwzLocation, + [out] LPWSTR * ppwzFriendlyName); +} + +cpp_quote("#endif") + + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995 - 1997. +// +// Contents: IHlinkFrame interface definition +// +//---------------------------------------------------------------------------- + +cpp_quote("#ifndef _LPHLINKFRAME_DEFINED") +cpp_quote("#define _LPHLINKFRAME_DEFINED") +cpp_quote("EXTERN_C const GUID SID_SHlinkFrame;") + +[ + object, + uuid(79eac9c5-baf9-11ce-8c82-00aa004ba90b), + pointer_default(unique) +] + + +interface IHlinkFrame : IUnknown +{ + typedef [unique] IHlinkFrame *LPHLINKFRAME; + + HRESULT SetBrowseContext( + [in, unique] IHlinkBrowseContext * pihlbc); + + HRESULT GetBrowseContext( + [out] IHlinkBrowseContext ** ppihlbc); + + HRESULT Navigate( + [in] DWORD grfHLNF, + [in, unique] LPBC pbc, + [in, unique] IBindStatusCallback * pibsc, + [in, unique] IHlink * pihlNavigate); + + HRESULT OnNavigate( + [in] DWORD grfHLNF, + [in, unique] IMoniker * pimkTarget, + [in, unique] LPCWSTR pwzLocation, + [in, unique] LPCWSTR pwzFriendlyName, + [in] DWORD dwreserved); + + HRESULT UpdateHlink( + [in] ULONG uHLID, + [in, unique] IMoniker * pimkTarget, + [in, unique] LPCWSTR pwzLocation, + [in, unique] LPCWSTR pwzFriendlyName); +} + +cpp_quote("#endif") + + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995 - 1997. +// +// Contents: IEnumHLITEM interface definition +// +//---------------------------------------------------------------------------- + +cpp_quote("#ifndef _LPENUMHLITEM_DEFINED") +cpp_quote("#define _LPENUMHLITEM_DEFINED") + +[ + local, + object, + uuid(79eac9c6-baf9-11ce-8c82-00aa004ba90b), + pointer_default(unique) +] + + +interface IEnumHLITEM : IUnknown +{ + typedef [unique] IEnumHLITEM *LPENUMHLITEM; + + typedef struct tagHLITEM + { + ULONG uHLID; + LPWSTR pwzFriendlyName; + } HLITEM; + typedef [unique] HLITEM *LPHLITEM; + + //[local] + HRESULT __stdcall Next( + [in] ULONG celt, + [out] HLITEM * rgelt, + [out] ULONG * pceltFetched); + +#ifdef NOTUSED + [call_as(Next)] + HRESULT __stdcall RemoteNext( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched)] + HLITEM * rgelt, + [out] ULONG *pceltFetched); +#endif + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumHLITEM ** ppienumhlitem); +} + +cpp_quote("#endif") + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995 - 1997. +// +// Contents: IHlinkBrowseContext interface definition +// +//---------------------------------------------------------------------------- + +cpp_quote("#ifndef _LPHLINKBROWSECONTEXT_DEFINED") +cpp_quote("#define _LPHLINKBROWSECONTEXT_DEFINED") + +[ + local, + object, + uuid(79eac9c7-baf9-11ce-8c82-00aa004ba90b), + pointer_default(unique) +] + + +interface IHlinkBrowseContext : IUnknown +{ + typedef [unique] IHlinkBrowseContext *LPHLINKBROWSECONTEXT; + + // Information about the toolbars + enum + { + HLTB_DOCKEDLEFT = 0, + HLTB_DOCKEDTOP = 1, + HLTB_DOCKEDRIGHT = 2, + HLTB_DOCKEDBOTTOM = 3, + HLTB_FLOATING = 4, + }; + + typedef struct _tagHLTBINFO + { + ULONG uDockType; + RECT rcTbPos; + } HLTBINFO; + + // information about the browse window + enum + { + HLBWIF_HASFRAMEWNDINFO = 0x00000001, + HLBWIF_HASDOCWNDINFO = 0x00000002, + HLBWIF_FRAMEWNDMAXIMIZED = 0x00000004, + HLBWIF_DOCWNDMAXIMIZED = 0x00000008, + HLBWIF_HASWEBTOOLBARINFO = 0x00000010, + HLBWIF_WEBTOOLBARHIDDEN = 0x00000020 + }; + + typedef struct _tagHLBWINFO + { + ULONG cbSize; + DWORD grfHLBWIF; + RECT rcFramePos; + RECT rcDocPos; + HLTBINFO hltbinfo; + } HLBWINFO; + typedef [unique] HLBWINFO *LPHLBWINFO; + + enum + { + HLID_INVALID = 0x0, + HLID_PREVIOUS = 0xFFFFFFFF, + HLID_NEXT = 0xFFFFFFFE, + HLID_CURRENT = 0xFFFFFFFD, + HLID_STACKBOTTOM = 0xFFFFFFFC, + HLID_STACKTOP = 0xFFFFFFFB, + }; + + enum + { + HLQF_ISVALID = 0x00000001, + HLQF_ISCURRENT = 0x00000002 + }; + + HRESULT Register( + [in] DWORD reserved, + [in, unique] IUnknown * piunk, + [in, unique] IMoniker * pimk, + [out] DWORD * pdwRegister); + + HRESULT GetObject( + [in, unique] IMoniker * pimk, + [in] BOOL fBindIfRootRegistered, + [out] IUnknown ** ppiunk); + + HRESULT Revoke( + [in] DWORD dwRegister); + + HRESULT SetBrowseWindowInfo( + [in, unique] HLBWINFO * phlbwi); + + HRESULT GetBrowseWindowInfo( + [out] HLBWINFO * phlbwi); + + HRESULT SetInitialHlink( + [in, unique] IMoniker * pimkTarget, + [in, unique] LPCWSTR pwzLocation, + [in, unique] LPCWSTR pwzFriendlyName); + + HRESULT OnNavigateHlink( + [in] DWORD grfHLNF, + [in, unique] IMoniker * pimkTarget, + [in, unique] LPCWSTR pwzLocation, + [in, unique] LPCWSTR pwzFriendlyName, + [out] ULONG * puHLID); + + HRESULT UpdateHlink( + [in] ULONG uHLID, + [in, unique] IMoniker * pimkTarget, + [in, unique] LPCWSTR pwzLocation, + [in, unique] LPCWSTR pwzFriendlyName); + + HRESULT EnumNavigationStack( + [in] DWORD dwReserved, + [in] DWORD grfHLFNAMEF, + [out] IEnumHLITEM ** ppienumhlitem); + + HRESULT QueryHlink( + [in] DWORD grfHLQF, + [in] ULONG uHLID); + + HRESULT GetHlink( + [in] ULONG uHLID, + [out] IHlink ** ppihl); + + HRESULT SetCurrentHlink( + [in] ULONG uHLID); + + HRESULT Clone( + [in, unique] IUnknown * piunkOuter, + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppiunkObj); + + HRESULT Close( + [in] DWORD reserved); +} + +cpp_quote("#endif") + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995 - 1997. +// +// Contents: IExtensionServices interface definition +// +//---------------------------------------------------------------------------- + +cpp_quote("#ifndef _LPEXTENSIONSERVICES_DEFINED") +cpp_quote("#define _LPEXTENSIONSERVICES_DEFINED") + +[ + local, + object, + uuid(79eac9cb-baf9-11ce-8c82-00aa004ba90b), + pointer_default(unique) +] + + +interface IExtensionServices : IUnknown +{ + typedef [unique] IExtensionServices *LPEXTENSIONSERVICES; + + HRESULT SetAdditionalHeaders( + [in] LPCWSTR pwzAdditionalHeaders); + + HRESULT SetAuthenticateData( + [in] HWND phwnd, + [in] LPCWSTR pwzUsername, + [in] LPCWSTR pwzPassword); +} + +cpp_quote("#endif") + + +cpp_quote(" ") +cpp_quote("#endif // !HLINK_H ") + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/HLink.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HLink.h new file mode 100644 index 0000000000000000000000000000000000000000..a2644fa0542d2fd8068af360640ecd53dc3d3f76 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HLink.h @@ -0,0 +1,1842 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __hlink_h__ +#define __hlink_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IHlink_FWD_DEFINED__ +#define __IHlink_FWD_DEFINED__ +typedef interface IHlink IHlink; + +#endif /* __IHlink_FWD_DEFINED__ */ + + +#ifndef __IHlinkSite_FWD_DEFINED__ +#define __IHlinkSite_FWD_DEFINED__ +typedef interface IHlinkSite IHlinkSite; + +#endif /* __IHlinkSite_FWD_DEFINED__ */ + + +#ifndef __IHlinkTarget_FWD_DEFINED__ +#define __IHlinkTarget_FWD_DEFINED__ +typedef interface IHlinkTarget IHlinkTarget; + +#endif /* __IHlinkTarget_FWD_DEFINED__ */ + + +#ifndef __IHlinkFrame_FWD_DEFINED__ +#define __IHlinkFrame_FWD_DEFINED__ +typedef interface IHlinkFrame IHlinkFrame; + +#endif /* __IHlinkFrame_FWD_DEFINED__ */ + + +#ifndef __IEnumHLITEM_FWD_DEFINED__ +#define __IEnumHLITEM_FWD_DEFINED__ +typedef interface IEnumHLITEM IEnumHLITEM; + +#endif /* __IEnumHLITEM_FWD_DEFINED__ */ + + +#ifndef __IHlinkBrowseContext_FWD_DEFINED__ +#define __IHlinkBrowseContext_FWD_DEFINED__ +typedef interface IHlinkBrowseContext IHlinkBrowseContext; + +#endif /* __IHlinkBrowseContext_FWD_DEFINED__ */ + + +#ifndef __IExtensionServices_FWD_DEFINED__ +#define __IExtensionServices_FWD_DEFINED__ +typedef interface IExtensionServices IExtensionServices; + +#endif /* __IExtensionServices_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "urlmon.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_hlink_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// HLInk.h +//=--------------------------------------------------------------------------= +// (C) Copyright 1995-1997 Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma comment(lib,"uuid.lib") + +//-------------------------------------------------------------------------- +// OLE Hyperlinking Interfaces. + +#ifndef HLINK_H +#define HLINK_H + + + + + + + +// ;BUGBUG We temporarily support the old 'source' names +#define SID_SHlinkFrame IID_IHlinkFrame +#define IID_IHlinkSource IID_IHlinkTarget +#define IHlinkSource IHlinkTarget +#define IHlinkSourceVtbl IHlinkTargetVtbl +#define LPHLINKSOURCE LPHLINKTARGET + +/****************************************************************************/ +/**** Error codes ****/ +/****************************************************************************/ +#ifndef _HLINK_ERRORS_DEFINED +#define _HLINK_ERRORS_DEFINED +#define HLINK_E_FIRST (OLE_E_LAST+1) +#define HLINK_S_FIRST (OLE_S_LAST+1) +#define HLINK_S_DONTHIDE (HLINK_S_FIRST) +#endif //_HLINK_ERRORS_DEFINED + + +/****************************************************************************/ +/**** Hyperlink APIs ****/ +/****************************************************************************/ + +#define CFSTR_HYPERLINK (TEXT("Hyperlink")) + + +STDAPI HlinkCreateFromMoniker( + IMoniker * pimkTrgt, + LPCWSTR pwzLocation, + LPCWSTR pwzFriendlyName, + IHlinkSite * pihlsite, + DWORD dwSiteData, + IUnknown * piunkOuter, + REFIID riid, + void ** ppvObj); + +STDAPI HlinkCreateFromString( + LPCWSTR pwzTarget, + LPCWSTR pwzLocation, + LPCWSTR pwzFriendlyName, + IHlinkSite * pihlsite, + DWORD dwSiteData, + IUnknown * piunkOuter, + REFIID riid, + void ** ppvObj); + +STDAPI HlinkCreateFromData( + IDataObject *piDataObj, + IHlinkSite * pihlsite, + DWORD dwSiteData, + IUnknown * piunkOuter, + REFIID riid, + void ** ppvObj); + +STDAPI HlinkQueryCreateFromData(IDataObject *piDataObj); + +STDAPI HlinkClone( + IHlink * pihl, + REFIID riid, + IHlinkSite * pihlsiteForClone, + DWORD dwSiteData, + void ** ppvObj); + +STDAPI HlinkCreateBrowseContext( + IUnknown * piunkOuter, + REFIID riid, + void ** ppvObj); + +STDAPI HlinkNavigateToStringReference( + LPCWSTR pwzTarget, + LPCWSTR pwzLocation, + IHlinkSite * pihlsite, + DWORD dwSiteData, + IHlinkFrame *pihlframe, + DWORD grfHLNF, + LPBC pibc, + IBindStatusCallback * pibsc, + IHlinkBrowseContext *pihlbc); + +STDAPI HlinkNavigate( + IHlink * pihl, + IHlinkFrame * pihlframe, + DWORD grfHLNF, + LPBC pbc, + IBindStatusCallback * pibsc, + IHlinkBrowseContext *pihlbc); + +STDAPI HlinkOnNavigate( + IHlinkFrame * pihlframe, + IHlinkBrowseContext * pihlbc, + DWORD grfHLNF, + IMoniker * pimkTarget, + LPCWSTR pwzLocation, + LPCWSTR pwzFriendlyName, + ULONG * puHLID); + +STDAPI HlinkUpdateStackItem( + IHlinkFrame * pihlframe, + IHlinkBrowseContext * pihlbc, + ULONG uHLID, + IMoniker * pimkTrgt, + LPCWSTR pwzLocation, + LPCWSTR pwzFriendlyName); + +STDAPI HlinkOnRenameDocument( + DWORD dwReserved, + IHlinkBrowseContext * pihlbc, + IMoniker * pimkOld, + IMoniker * pimkNew); + +STDAPI HlinkResolveMonikerForData( + LPMONIKER pimkReference, + DWORD reserved, + LPBC pibc, + ULONG cFmtetc, + FORMATETC * rgFmtetc, + IBindStatusCallback * pibsc, + LPMONIKER pimkBase); + +STDAPI HlinkResolveStringForData( + LPCWSTR pwzReference, + DWORD reserved, + LPBC pibc, + ULONG cFmtetc, + FORMATETC * rgFmtetc, + IBindStatusCallback * pibsc, + LPMONIKER pimkBase); + +STDAPI HlinkParseDisplayName( + LPBC pibc, + LPCWSTR pwzDisplayName, + BOOL fNoForceAbs, + ULONG * pcchEaten, + IMoniker ** ppimk); + +STDAPI HlinkCreateExtensionServices( + LPCWSTR pwzAdditionalHeaders, + HWND phwnd, + LPCWSTR pszUsername, + LPCWSTR pszPassword, + IUnknown * piunkOuter, + REFIID riid, + void ** ppvObj); + +STDAPI HlinkPreprocessMoniker( + LPBC pibc, + IMoniker *pimkIn, + IMoniker **ppimkOut); + +STDAPI OleSaveToStreamEx( + IUnknown * piunk, + IStream * pistm, + BOOL fClearDirty); + +typedef +enum _HLSR_NOREDEF10 + { + HLSR_HOME = 0, + HLSR_SEARCHPAGE = 1, + HLSR_HISTORYFOLDER = 2 + } HLSR; + + +STDAPI HlinkSetSpecialReference( + ULONG uReference, + LPCWSTR pwzReference); + +STDAPI HlinkGetSpecialReference( + ULONG uReference, + _Outptr_ LPWSTR *ppwzReference); + +typedef +enum _HLSHORTCUTF__NOREDEF10 + { + HLSHORTCUTF_DEFAULT = 0, + HLSHORTCUTF_DONTACTUALLYCREATE = 0x1, + HLSHORTCUTF_USEFILENAMEFROMFRIENDLYNAME = 0x2, + HLSHORTCUTF_USEUNIQUEFILENAME = 0x4, + HLSHORTCUTF_MAYUSEEXISTINGSHORTCUT = 0x8 + } HLSHORTCUTF; + + +STDAPI HlinkCreateShortcut( + DWORD grfHLSHORTCUTF, + IHlink *pihl, + LPCWSTR pwzDir, + LPCWSTR pwzFileName, + _Outptr_ LPWSTR *ppwzShortcutFile, + DWORD dwReserved); + +STDAPI HlinkCreateShortcutFromMoniker( + DWORD grfHLSHORTCUTF, + IMoniker *pimkTarget, + LPCWSTR pwzLocation, + LPCWSTR pwzDir, + LPCWSTR pwzFileName, + _Outptr_ LPWSTR *ppwzShortcutFile, + DWORD dwReserved); + +STDAPI HlinkCreateShortcutFromString( + DWORD grfHLSHORTCUTF, + LPCWSTR pwzTarget, + LPCWSTR pwzLocation, + LPCWSTR pwzDir, + LPCWSTR pwzFileName, + _Outptr_ LPWSTR *ppwzShortcutFile, + DWORD dwReserved); + +STDAPI HlinkResolveShortcut( + LPCWSTR pwzShortcutFileName, + IHlinkSite * pihlsite, + DWORD dwSiteData, + IUnknown * piunkOuter, + REFIID riid, + void ** ppvObj); + +STDAPI HlinkResolveShortcutToMoniker( + LPCWSTR pwzShortcutFileName, + IMoniker **ppimkTarget, + _Outptr_ LPWSTR *ppwzLocation); + +STDAPI HlinkResolveShortcutToString( + LPCWSTR pwzShortcutFileName, + _Outptr_ LPWSTR *ppwzTarget, + _Outptr_ LPWSTR *ppwzLocation); + + + STDAPI HlinkIsShortcut(LPCWSTR pwzFileName); + + +STDAPI HlinkGetValueFromParams( + LPCWSTR pwzParams, + LPCWSTR pwzName, + _Outptr_ LPWSTR *ppwzValue); + + +typedef +enum _HLTRANSLATEF_NOREDEF10 + { + HLTRANSLATEF_DEFAULT = 0, + HLTRANSLATEF_DONTAPPLYDEFAULTPREFIX = 0x1 + } HLTRANSLATEF; + + +STDAPI HlinkTranslateURL( + LPCWSTR pwzURL, + DWORD grfFlags, + _Outptr_ LPWSTR *ppwzTranslatedURL); + + + +/****************************************************************************/ +/**** Hyperlink interface definitions ****/ +/****************************************************************************/ + +#ifndef _LPHLINK_DEFINED +#define _LPHLINK_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0000_v0_0_s_ifspec; + +#ifndef __IHlink_INTERFACE_DEFINED__ +#define __IHlink_INTERFACE_DEFINED__ + +/* interface IHlink */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IHlink *LPHLINK; + +typedef /* [public] */ +enum __MIDL_IHlink_0001 + { + HLNF_INTERNALJUMP = 0x1, + HLNF_OPENINNEWWINDOW = 0x2, + HLNF_NAVIGATINGBACK = 0x4, + HLNF_NAVIGATINGFORWARD = 0x8, + HLNF_NAVIGATINGTOSTACKITEM = 0x10, + HLNF_CREATENOHISTORY = 0x20 + } HLNF; + +typedef /* [public] */ +enum __MIDL_IHlink_0002 + { + HLINKGETREF_DEFAULT = 0, + HLINKGETREF_ABSOLUTE = 1, + HLINKGETREF_RELATIVE = 2 + } HLINKGETREF; + +typedef /* [public] */ +enum __MIDL_IHlink_0003 + { + HLFNAMEF_DEFAULT = 0, + HLFNAMEF_TRYCACHE = 0x1, + HLFNAMEF_TRYPRETTYTARGET = 0x2, + HLFNAMEF_TRYFULLTARGET = 0x4, + HLFNAMEF_TRYWIN95SHORTCUT = 0x8 + } HLFNAMEF; + +typedef /* [public] */ +enum __MIDL_IHlink_0004 + { + HLINKMISC_RELATIVE = 0x1 + } HLINKMISC; + +typedef /* [public] */ +enum __MIDL_IHlink_0005 + { + HLINKSETF_TARGET = 0x1, + HLINKSETF_LOCATION = 0x2 + } HLINKSETF; + + +EXTERN_C const IID IID_IHlink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79eac9c3-baf9-11ce-8c82-00aa004ba90b") + IHlink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetHlinkSite( + /* [unique][in] */ __RPC__in_opt IHlinkSite *pihlSite, + /* [in] */ DWORD dwSiteData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHlinkSite( + /* [out] */ __RPC__deref_out_opt IHlinkSite **ppihlSite, + /* [out] */ __RPC__out DWORD *pdwSiteData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMonikerReference( + /* [in] */ DWORD grfHLSETF, + /* [unique][in] */ __RPC__in_opt IMoniker *pimkTarget, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation) = 0; + + virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetMonikerReference( + /* [in] */ DWORD dwWhichRef, + /* [annotation][out] */ + _Outptr_opt_result_maybenull_ IMoniker **ppimkTarget, + /* [annotation][out] */ + _Outptr_opt_result_maybenull_ LPWSTR *ppwzLocation) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStringReference( + /* [in] */ DWORD grfHLSETF, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzTarget, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation) = 0; + + virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetStringReference( + /* [in] */ DWORD dwWhichRef, + /* [annotation][out] */ + _Outptr_opt_ LPWSTR *ppwzTarget, + /* [annotation][out] */ + _Outptr_opt_result_maybenull_ LPWSTR *ppwzLocation) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFriendlyName( + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzFriendlyName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFriendlyName( + /* [in] */ DWORD grfHLFNAMEF, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzFriendlyName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetTargetFrameName( + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzTargetFrameName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTargetFrameName( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzTargetFrameName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMiscStatus( + /* [out] */ __RPC__out DWORD *pdwStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE Navigate( + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPBC pibc, + /* [unique][in] */ __RPC__in_opt IBindStatusCallback *pibsc, + /* [unique][in] */ __RPC__in_opt IHlinkBrowseContext *pihlbc) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAdditionalParams( + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzAdditionalParams) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAdditionalParams( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzAdditionalParams) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHlinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHlink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHlink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHlink * This); + + DECLSPEC_XFGVIRT(IHlink, SetHlinkSite) + HRESULT ( STDMETHODCALLTYPE *SetHlinkSite )( + __RPC__in IHlink * This, + /* [unique][in] */ __RPC__in_opt IHlinkSite *pihlSite, + /* [in] */ DWORD dwSiteData); + + DECLSPEC_XFGVIRT(IHlink, GetHlinkSite) + HRESULT ( STDMETHODCALLTYPE *GetHlinkSite )( + __RPC__in IHlink * This, + /* [out] */ __RPC__deref_out_opt IHlinkSite **ppihlSite, + /* [out] */ __RPC__out DWORD *pdwSiteData); + + DECLSPEC_XFGVIRT(IHlink, SetMonikerReference) + HRESULT ( STDMETHODCALLTYPE *SetMonikerReference )( + __RPC__in IHlink * This, + /* [in] */ DWORD grfHLSETF, + /* [unique][in] */ __RPC__in_opt IMoniker *pimkTarget, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation); + + DECLSPEC_XFGVIRT(IHlink, GetMonikerReference) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetMonikerReference )( + IHlink * This, + /* [in] */ DWORD dwWhichRef, + /* [annotation][out] */ + _Outptr_opt_result_maybenull_ IMoniker **ppimkTarget, + /* [annotation][out] */ + _Outptr_opt_result_maybenull_ LPWSTR *ppwzLocation); + + DECLSPEC_XFGVIRT(IHlink, SetStringReference) + HRESULT ( STDMETHODCALLTYPE *SetStringReference )( + __RPC__in IHlink * This, + /* [in] */ DWORD grfHLSETF, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzTarget, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation); + + DECLSPEC_XFGVIRT(IHlink, GetStringReference) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetStringReference )( + IHlink * This, + /* [in] */ DWORD dwWhichRef, + /* [annotation][out] */ + _Outptr_opt_ LPWSTR *ppwzTarget, + /* [annotation][out] */ + _Outptr_opt_result_maybenull_ LPWSTR *ppwzLocation); + + DECLSPEC_XFGVIRT(IHlink, SetFriendlyName) + HRESULT ( STDMETHODCALLTYPE *SetFriendlyName )( + __RPC__in IHlink * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzFriendlyName); + + DECLSPEC_XFGVIRT(IHlink, GetFriendlyName) + HRESULT ( STDMETHODCALLTYPE *GetFriendlyName )( + __RPC__in IHlink * This, + /* [in] */ DWORD grfHLFNAMEF, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzFriendlyName); + + DECLSPEC_XFGVIRT(IHlink, SetTargetFrameName) + HRESULT ( STDMETHODCALLTYPE *SetTargetFrameName )( + __RPC__in IHlink * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzTargetFrameName); + + DECLSPEC_XFGVIRT(IHlink, GetTargetFrameName) + HRESULT ( STDMETHODCALLTYPE *GetTargetFrameName )( + __RPC__in IHlink * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzTargetFrameName); + + DECLSPEC_XFGVIRT(IHlink, GetMiscStatus) + HRESULT ( STDMETHODCALLTYPE *GetMiscStatus )( + __RPC__in IHlink * This, + /* [out] */ __RPC__out DWORD *pdwStatus); + + DECLSPEC_XFGVIRT(IHlink, Navigate) + HRESULT ( STDMETHODCALLTYPE *Navigate )( + __RPC__in IHlink * This, + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPBC pibc, + /* [unique][in] */ __RPC__in_opt IBindStatusCallback *pibsc, + /* [unique][in] */ __RPC__in_opt IHlinkBrowseContext *pihlbc); + + DECLSPEC_XFGVIRT(IHlink, SetAdditionalParams) + HRESULT ( STDMETHODCALLTYPE *SetAdditionalParams )( + __RPC__in IHlink * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzAdditionalParams); + + DECLSPEC_XFGVIRT(IHlink, GetAdditionalParams) + HRESULT ( STDMETHODCALLTYPE *GetAdditionalParams )( + __RPC__in IHlink * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzAdditionalParams); + + END_INTERFACE + } IHlinkVtbl; + + interface IHlink + { + CONST_VTBL struct IHlinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHlink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHlink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHlink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHlink_SetHlinkSite(This,pihlSite,dwSiteData) \ + ( (This)->lpVtbl -> SetHlinkSite(This,pihlSite,dwSiteData) ) + +#define IHlink_GetHlinkSite(This,ppihlSite,pdwSiteData) \ + ( (This)->lpVtbl -> GetHlinkSite(This,ppihlSite,pdwSiteData) ) + +#define IHlink_SetMonikerReference(This,grfHLSETF,pimkTarget,pwzLocation) \ + ( (This)->lpVtbl -> SetMonikerReference(This,grfHLSETF,pimkTarget,pwzLocation) ) + +#define IHlink_GetMonikerReference(This,dwWhichRef,ppimkTarget,ppwzLocation) \ + ( (This)->lpVtbl -> GetMonikerReference(This,dwWhichRef,ppimkTarget,ppwzLocation) ) + +#define IHlink_SetStringReference(This,grfHLSETF,pwzTarget,pwzLocation) \ + ( (This)->lpVtbl -> SetStringReference(This,grfHLSETF,pwzTarget,pwzLocation) ) + +#define IHlink_GetStringReference(This,dwWhichRef,ppwzTarget,ppwzLocation) \ + ( (This)->lpVtbl -> GetStringReference(This,dwWhichRef,ppwzTarget,ppwzLocation) ) + +#define IHlink_SetFriendlyName(This,pwzFriendlyName) \ + ( (This)->lpVtbl -> SetFriendlyName(This,pwzFriendlyName) ) + +#define IHlink_GetFriendlyName(This,grfHLFNAMEF,ppwzFriendlyName) \ + ( (This)->lpVtbl -> GetFriendlyName(This,grfHLFNAMEF,ppwzFriendlyName) ) + +#define IHlink_SetTargetFrameName(This,pwzTargetFrameName) \ + ( (This)->lpVtbl -> SetTargetFrameName(This,pwzTargetFrameName) ) + +#define IHlink_GetTargetFrameName(This,ppwzTargetFrameName) \ + ( (This)->lpVtbl -> GetTargetFrameName(This,ppwzTargetFrameName) ) + +#define IHlink_GetMiscStatus(This,pdwStatus) \ + ( (This)->lpVtbl -> GetMiscStatus(This,pdwStatus) ) + +#define IHlink_Navigate(This,grfHLNF,pibc,pibsc,pihlbc) \ + ( (This)->lpVtbl -> Navigate(This,grfHLNF,pibc,pibsc,pihlbc) ) + +#define IHlink_SetAdditionalParams(This,pwzAdditionalParams) \ + ( (This)->lpVtbl -> SetAdditionalParams(This,pwzAdditionalParams) ) + +#define IHlink_GetAdditionalParams(This,ppwzAdditionalParams) \ + ( (This)->lpVtbl -> GetAdditionalParams(This,ppwzAdditionalParams) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IHlink_RemoteGetMonikerReference_Proxy( + __RPC__in IHlink * This, + /* [in] */ DWORD dwWhichRef, + /* [out] */ __RPC__deref_out_opt IMoniker **ppimkTarget, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzLocation); + + +void __RPC_STUB IHlink_RemoteGetMonikerReference_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IHlink_RemoteGetStringReference_Proxy( + __RPC__in IHlink * This, + /* [in] */ DWORD dwWhichRef, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzTarget, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzLocation); + + +void __RPC_STUB IHlink_RemoteGetStringReference_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IHlink_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_hlink_0000_0001 */ +/* [local] */ + +#endif +#ifndef _LPHLINKSITE_DEFINED +#define _LPHLINKSITE_DEFINED +EXTERN_C const GUID SID_SContainer; + + +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0001_v0_0_s_ifspec; + +#ifndef __IHlinkSite_INTERFACE_DEFINED__ +#define __IHlinkSite_INTERFACE_DEFINED__ + +/* interface IHlinkSite */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IHlinkSite *LPHLINKSITE; + +typedef /* [public] */ +enum __MIDL_IHlinkSite_0001 + { + HLINKWHICHMK_CONTAINER = 1, + HLINKWHICHMK_BASE = 2 + } HLINKWHICHMK; + + +EXTERN_C const IID IID_IHlinkSite; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79eac9c2-baf9-11ce-8c82-00aa004ba90b") + IHlinkSite : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE QueryService( + /* [in] */ DWORD dwSiteData, + /* [in] */ __RPC__in REFGUID guidService, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt IUnknown **ppiunk) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMoniker( + /* [in] */ DWORD dwSiteData, + /* [in] */ DWORD dwAssign, + /* [in] */ DWORD dwWhich, + /* [out] */ __RPC__deref_out_opt IMoniker **ppimk) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReadyToNavigate( + /* [in] */ DWORD dwSiteData, + /* [in] */ DWORD dwReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnNavigationComplete( + /* [in] */ DWORD dwSiteData, + /* [in] */ DWORD dwreserved, + /* [in] */ HRESULT hrError, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzError) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHlinkSiteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHlinkSite * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHlinkSite * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHlinkSite * This); + + DECLSPEC_XFGVIRT(IHlinkSite, QueryService) + HRESULT ( STDMETHODCALLTYPE *QueryService )( + __RPC__in IHlinkSite * This, + /* [in] */ DWORD dwSiteData, + /* [in] */ __RPC__in REFGUID guidService, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt IUnknown **ppiunk); + + DECLSPEC_XFGVIRT(IHlinkSite, GetMoniker) + HRESULT ( STDMETHODCALLTYPE *GetMoniker )( + __RPC__in IHlinkSite * This, + /* [in] */ DWORD dwSiteData, + /* [in] */ DWORD dwAssign, + /* [in] */ DWORD dwWhich, + /* [out] */ __RPC__deref_out_opt IMoniker **ppimk); + + DECLSPEC_XFGVIRT(IHlinkSite, ReadyToNavigate) + HRESULT ( STDMETHODCALLTYPE *ReadyToNavigate )( + __RPC__in IHlinkSite * This, + /* [in] */ DWORD dwSiteData, + /* [in] */ DWORD dwReserved); + + DECLSPEC_XFGVIRT(IHlinkSite, OnNavigationComplete) + HRESULT ( STDMETHODCALLTYPE *OnNavigationComplete )( + __RPC__in IHlinkSite * This, + /* [in] */ DWORD dwSiteData, + /* [in] */ DWORD dwreserved, + /* [in] */ HRESULT hrError, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzError); + + END_INTERFACE + } IHlinkSiteVtbl; + + interface IHlinkSite + { + CONST_VTBL struct IHlinkSiteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHlinkSite_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHlinkSite_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHlinkSite_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHlinkSite_QueryService(This,dwSiteData,guidService,riid,ppiunk) \ + ( (This)->lpVtbl -> QueryService(This,dwSiteData,guidService,riid,ppiunk) ) + +#define IHlinkSite_GetMoniker(This,dwSiteData,dwAssign,dwWhich,ppimk) \ + ( (This)->lpVtbl -> GetMoniker(This,dwSiteData,dwAssign,dwWhich,ppimk) ) + +#define IHlinkSite_ReadyToNavigate(This,dwSiteData,dwReserved) \ + ( (This)->lpVtbl -> ReadyToNavigate(This,dwSiteData,dwReserved) ) + +#define IHlinkSite_OnNavigationComplete(This,dwSiteData,dwreserved,hrError,pwzError) \ + ( (This)->lpVtbl -> OnNavigationComplete(This,dwSiteData,dwreserved,hrError,pwzError) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHlinkSite_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_hlink_0000_0002 */ +/* [local] */ + +#endif +#ifndef _LPHLINKTARGET_DEFINED +#define _LPHLINKTARGET_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0002_v0_0_s_ifspec; + +#ifndef __IHlinkTarget_INTERFACE_DEFINED__ +#define __IHlinkTarget_INTERFACE_DEFINED__ + +/* interface IHlinkTarget */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IHlinkTarget *LPHLINKTARGET; + + +EXTERN_C const IID IID_IHlinkTarget; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79eac9c4-baf9-11ce-8c82-00aa004ba90b") + IHlinkTarget : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetBrowseContext( + /* [unique][in] */ __RPC__in_opt IHlinkBrowseContext *pihlbc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBrowseContext( + /* [out] */ __RPC__deref_out_opt IHlinkBrowseContext **ppihlbc) = 0; + + virtual HRESULT STDMETHODCALLTYPE Navigate( + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzJumpLocation) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMoniker( + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation, + /* [in] */ DWORD dwAssign, + /* [out] */ __RPC__deref_out_opt IMoniker **ppimkLocation) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFriendlyName( + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzFriendlyName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHlinkTargetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHlinkTarget * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHlinkTarget * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHlinkTarget * This); + + DECLSPEC_XFGVIRT(IHlinkTarget, SetBrowseContext) + HRESULT ( STDMETHODCALLTYPE *SetBrowseContext )( + __RPC__in IHlinkTarget * This, + /* [unique][in] */ __RPC__in_opt IHlinkBrowseContext *pihlbc); + + DECLSPEC_XFGVIRT(IHlinkTarget, GetBrowseContext) + HRESULT ( STDMETHODCALLTYPE *GetBrowseContext )( + __RPC__in IHlinkTarget * This, + /* [out] */ __RPC__deref_out_opt IHlinkBrowseContext **ppihlbc); + + DECLSPEC_XFGVIRT(IHlinkTarget, Navigate) + HRESULT ( STDMETHODCALLTYPE *Navigate )( + __RPC__in IHlinkTarget * This, + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzJumpLocation); + + DECLSPEC_XFGVIRT(IHlinkTarget, GetMoniker) + HRESULT ( STDMETHODCALLTYPE *GetMoniker )( + __RPC__in IHlinkTarget * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation, + /* [in] */ DWORD dwAssign, + /* [out] */ __RPC__deref_out_opt IMoniker **ppimkLocation); + + DECLSPEC_XFGVIRT(IHlinkTarget, GetFriendlyName) + HRESULT ( STDMETHODCALLTYPE *GetFriendlyName )( + __RPC__in IHlinkTarget * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzFriendlyName); + + END_INTERFACE + } IHlinkTargetVtbl; + + interface IHlinkTarget + { + CONST_VTBL struct IHlinkTargetVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHlinkTarget_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHlinkTarget_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHlinkTarget_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHlinkTarget_SetBrowseContext(This,pihlbc) \ + ( (This)->lpVtbl -> SetBrowseContext(This,pihlbc) ) + +#define IHlinkTarget_GetBrowseContext(This,ppihlbc) \ + ( (This)->lpVtbl -> GetBrowseContext(This,ppihlbc) ) + +#define IHlinkTarget_Navigate(This,grfHLNF,pwzJumpLocation) \ + ( (This)->lpVtbl -> Navigate(This,grfHLNF,pwzJumpLocation) ) + +#define IHlinkTarget_GetMoniker(This,pwzLocation,dwAssign,ppimkLocation) \ + ( (This)->lpVtbl -> GetMoniker(This,pwzLocation,dwAssign,ppimkLocation) ) + +#define IHlinkTarget_GetFriendlyName(This,pwzLocation,ppwzFriendlyName) \ + ( (This)->lpVtbl -> GetFriendlyName(This,pwzLocation,ppwzFriendlyName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHlinkTarget_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_hlink_0000_0003 */ +/* [local] */ + +#endif +#ifndef _LPHLINKFRAME_DEFINED +#define _LPHLINKFRAME_DEFINED +EXTERN_C const GUID SID_SHlinkFrame; + + +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0003_v0_0_s_ifspec; + +#ifndef __IHlinkFrame_INTERFACE_DEFINED__ +#define __IHlinkFrame_INTERFACE_DEFINED__ + +/* interface IHlinkFrame */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IHlinkFrame *LPHLINKFRAME; + + +EXTERN_C const IID IID_IHlinkFrame; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79eac9c5-baf9-11ce-8c82-00aa004ba90b") + IHlinkFrame : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetBrowseContext( + /* [unique][in] */ __RPC__in_opt IHlinkBrowseContext *pihlbc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBrowseContext( + /* [out] */ __RPC__deref_out_opt IHlinkBrowseContext **ppihlbc) = 0; + + virtual HRESULT STDMETHODCALLTYPE Navigate( + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPBC pbc, + /* [unique][in] */ __RPC__in_opt IBindStatusCallback *pibsc, + /* [unique][in] */ __RPC__in_opt IHlink *pihlNavigate) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnNavigate( + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt IMoniker *pimkTarget, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzFriendlyName, + /* [in] */ DWORD dwreserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateHlink( + /* [in] */ ULONG uHLID, + /* [unique][in] */ __RPC__in_opt IMoniker *pimkTarget, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzFriendlyName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHlinkFrameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHlinkFrame * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHlinkFrame * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHlinkFrame * This); + + DECLSPEC_XFGVIRT(IHlinkFrame, SetBrowseContext) + HRESULT ( STDMETHODCALLTYPE *SetBrowseContext )( + __RPC__in IHlinkFrame * This, + /* [unique][in] */ __RPC__in_opt IHlinkBrowseContext *pihlbc); + + DECLSPEC_XFGVIRT(IHlinkFrame, GetBrowseContext) + HRESULT ( STDMETHODCALLTYPE *GetBrowseContext )( + __RPC__in IHlinkFrame * This, + /* [out] */ __RPC__deref_out_opt IHlinkBrowseContext **ppihlbc); + + DECLSPEC_XFGVIRT(IHlinkFrame, Navigate) + HRESULT ( STDMETHODCALLTYPE *Navigate )( + __RPC__in IHlinkFrame * This, + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPBC pbc, + /* [unique][in] */ __RPC__in_opt IBindStatusCallback *pibsc, + /* [unique][in] */ __RPC__in_opt IHlink *pihlNavigate); + + DECLSPEC_XFGVIRT(IHlinkFrame, OnNavigate) + HRESULT ( STDMETHODCALLTYPE *OnNavigate )( + __RPC__in IHlinkFrame * This, + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt IMoniker *pimkTarget, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzFriendlyName, + /* [in] */ DWORD dwreserved); + + DECLSPEC_XFGVIRT(IHlinkFrame, UpdateHlink) + HRESULT ( STDMETHODCALLTYPE *UpdateHlink )( + __RPC__in IHlinkFrame * This, + /* [in] */ ULONG uHLID, + /* [unique][in] */ __RPC__in_opt IMoniker *pimkTarget, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzLocation, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwzFriendlyName); + + END_INTERFACE + } IHlinkFrameVtbl; + + interface IHlinkFrame + { + CONST_VTBL struct IHlinkFrameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHlinkFrame_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHlinkFrame_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHlinkFrame_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHlinkFrame_SetBrowseContext(This,pihlbc) \ + ( (This)->lpVtbl -> SetBrowseContext(This,pihlbc) ) + +#define IHlinkFrame_GetBrowseContext(This,ppihlbc) \ + ( (This)->lpVtbl -> GetBrowseContext(This,ppihlbc) ) + +#define IHlinkFrame_Navigate(This,grfHLNF,pbc,pibsc,pihlNavigate) \ + ( (This)->lpVtbl -> Navigate(This,grfHLNF,pbc,pibsc,pihlNavigate) ) + +#define IHlinkFrame_OnNavigate(This,grfHLNF,pimkTarget,pwzLocation,pwzFriendlyName,dwreserved) \ + ( (This)->lpVtbl -> OnNavigate(This,grfHLNF,pimkTarget,pwzLocation,pwzFriendlyName,dwreserved) ) + +#define IHlinkFrame_UpdateHlink(This,uHLID,pimkTarget,pwzLocation,pwzFriendlyName) \ + ( (This)->lpVtbl -> UpdateHlink(This,uHLID,pimkTarget,pwzLocation,pwzFriendlyName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHlinkFrame_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_hlink_0000_0004 */ +/* [local] */ + +#endif +#ifndef _LPENUMHLITEM_DEFINED +#define _LPENUMHLITEM_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0004_v0_0_s_ifspec; + +#ifndef __IEnumHLITEM_INTERFACE_DEFINED__ +#define __IEnumHLITEM_INTERFACE_DEFINED__ + +/* interface IEnumHLITEM */ +/* [unique][uuid][object][local] */ + +typedef /* [unique] */ IEnumHLITEM *LPENUMHLITEM; + +typedef struct tagHLITEM + { + ULONG uHLID; + LPWSTR pwzFriendlyName; + } HLITEM; + +typedef /* [unique] */ HLITEM *LPHLITEM; + + +EXTERN_C const IID IID_IEnumHLITEM; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79eac9c6-baf9-11ce-8c82-00aa004ba90b") + IEnumHLITEM : public IUnknown + { + public: + virtual HRESULT __stdcall Next( + /* [in] */ ULONG celt, + /* [out] */ HLITEM *rgelt, + /* [out] */ ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ IEnumHLITEM **ppienumhlitem) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumHLITEMVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumHLITEM * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumHLITEM * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumHLITEM * This); + + DECLSPEC_XFGVIRT(IEnumHLITEM, Next) + HRESULT ( __stdcall *Next )( + IEnumHLITEM * This, + /* [in] */ ULONG celt, + /* [out] */ HLITEM *rgelt, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumHLITEM, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + IEnumHLITEM * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumHLITEM, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IEnumHLITEM * This); + + DECLSPEC_XFGVIRT(IEnumHLITEM, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IEnumHLITEM * This, + /* [out] */ IEnumHLITEM **ppienumhlitem); + + END_INTERFACE + } IEnumHLITEMVtbl; + + interface IEnumHLITEM + { + CONST_VTBL struct IEnumHLITEMVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumHLITEM_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumHLITEM_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumHLITEM_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumHLITEM_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumHLITEM_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumHLITEM_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumHLITEM_Clone(This,ppienumhlitem) \ + ( (This)->lpVtbl -> Clone(This,ppienumhlitem) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumHLITEM_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_hlink_0000_0005 */ +/* [local] */ + +#endif +#ifndef _LPHLINKBROWSECONTEXT_DEFINED +#define _LPHLINKBROWSECONTEXT_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0005_v0_0_s_ifspec; + +#ifndef __IHlinkBrowseContext_INTERFACE_DEFINED__ +#define __IHlinkBrowseContext_INTERFACE_DEFINED__ + +/* interface IHlinkBrowseContext */ +/* [unique][uuid][object][local] */ + +typedef /* [unique] */ IHlinkBrowseContext *LPHLINKBROWSECONTEXT; + + +enum __MIDL_IHlinkBrowseContext_0001 + { + HLTB_DOCKEDLEFT = 0, + HLTB_DOCKEDTOP = 1, + HLTB_DOCKEDRIGHT = 2, + HLTB_DOCKEDBOTTOM = 3, + HLTB_FLOATING = 4 + } ; +typedef struct _tagHLTBINFO + { + ULONG uDockType; + RECT rcTbPos; + } HLTBINFO; + + +enum __MIDL_IHlinkBrowseContext_0002 + { + HLBWIF_HASFRAMEWNDINFO = 0x1, + HLBWIF_HASDOCWNDINFO = 0x2, + HLBWIF_FRAMEWNDMAXIMIZED = 0x4, + HLBWIF_DOCWNDMAXIMIZED = 0x8, + HLBWIF_HASWEBTOOLBARINFO = 0x10, + HLBWIF_WEBTOOLBARHIDDEN = 0x20 + } ; +typedef struct _tagHLBWINFO + { + ULONG cbSize; + DWORD grfHLBWIF; + RECT rcFramePos; + RECT rcDocPos; + HLTBINFO hltbinfo; + } HLBWINFO; + +typedef /* [unique] */ HLBWINFO *LPHLBWINFO; + + +enum __MIDL_IHlinkBrowseContext_0003 + { + HLID_INVALID = 0, + HLID_PREVIOUS = 0xffffffff, + HLID_NEXT = 0xfffffffe, + HLID_CURRENT = 0xfffffffd, + HLID_STACKBOTTOM = 0xfffffffc, + HLID_STACKTOP = 0xfffffffb + } ; + +enum __MIDL_IHlinkBrowseContext_0004 + { + HLQF_ISVALID = 0x1, + HLQF_ISCURRENT = 0x2 + } ; + +EXTERN_C const IID IID_IHlinkBrowseContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79eac9c7-baf9-11ce-8c82-00aa004ba90b") + IHlinkBrowseContext : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Register( + /* [in] */ DWORD reserved, + /* [unique][in] */ IUnknown *piunk, + /* [unique][in] */ IMoniker *pimk, + /* [out] */ DWORD *pdwRegister) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetObject( + /* [unique][in] */ IMoniker *pimk, + /* [in] */ BOOL fBindIfRootRegistered, + /* [out] */ IUnknown **ppiunk) = 0; + + virtual HRESULT STDMETHODCALLTYPE Revoke( + /* [in] */ DWORD dwRegister) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBrowseWindowInfo( + /* [unique][in] */ HLBWINFO *phlbwi) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBrowseWindowInfo( + /* [out] */ HLBWINFO *phlbwi) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetInitialHlink( + /* [unique][in] */ IMoniker *pimkTarget, + /* [unique][in] */ LPCWSTR pwzLocation, + /* [unique][in] */ LPCWSTR pwzFriendlyName) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnNavigateHlink( + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ IMoniker *pimkTarget, + /* [unique][in] */ LPCWSTR pwzLocation, + /* [unique][in] */ LPCWSTR pwzFriendlyName, + /* [out] */ ULONG *puHLID) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateHlink( + /* [in] */ ULONG uHLID, + /* [unique][in] */ IMoniker *pimkTarget, + /* [unique][in] */ LPCWSTR pwzLocation, + /* [unique][in] */ LPCWSTR pwzFriendlyName) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumNavigationStack( + /* [in] */ DWORD dwReserved, + /* [in] */ DWORD grfHLFNAMEF, + /* [out] */ IEnumHLITEM **ppienumhlitem) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryHlink( + /* [in] */ DWORD grfHLQF, + /* [in] */ ULONG uHLID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHlink( + /* [in] */ ULONG uHLID, + /* [out] */ IHlink **ppihl) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCurrentHlink( + /* [in] */ ULONG uHLID) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [unique][in] */ IUnknown *piunkOuter, + /* [in] */ REFIID riid, + /* [iid_is][out] */ IUnknown **ppiunkObj) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( + /* [in] */ DWORD reserved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHlinkBrowseContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IHlinkBrowseContext * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IHlinkBrowseContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IHlinkBrowseContext * This); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, Register) + HRESULT ( STDMETHODCALLTYPE *Register )( + IHlinkBrowseContext * This, + /* [in] */ DWORD reserved, + /* [unique][in] */ IUnknown *piunk, + /* [unique][in] */ IMoniker *pimk, + /* [out] */ DWORD *pdwRegister); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, GetObject) + HRESULT ( STDMETHODCALLTYPE *GetObject )( + IHlinkBrowseContext * This, + /* [unique][in] */ IMoniker *pimk, + /* [in] */ BOOL fBindIfRootRegistered, + /* [out] */ IUnknown **ppiunk); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, Revoke) + HRESULT ( STDMETHODCALLTYPE *Revoke )( + IHlinkBrowseContext * This, + /* [in] */ DWORD dwRegister); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, SetBrowseWindowInfo) + HRESULT ( STDMETHODCALLTYPE *SetBrowseWindowInfo )( + IHlinkBrowseContext * This, + /* [unique][in] */ HLBWINFO *phlbwi); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, GetBrowseWindowInfo) + HRESULT ( STDMETHODCALLTYPE *GetBrowseWindowInfo )( + IHlinkBrowseContext * This, + /* [out] */ HLBWINFO *phlbwi); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, SetInitialHlink) + HRESULT ( STDMETHODCALLTYPE *SetInitialHlink )( + IHlinkBrowseContext * This, + /* [unique][in] */ IMoniker *pimkTarget, + /* [unique][in] */ LPCWSTR pwzLocation, + /* [unique][in] */ LPCWSTR pwzFriendlyName); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, OnNavigateHlink) + HRESULT ( STDMETHODCALLTYPE *OnNavigateHlink )( + IHlinkBrowseContext * This, + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ IMoniker *pimkTarget, + /* [unique][in] */ LPCWSTR pwzLocation, + /* [unique][in] */ LPCWSTR pwzFriendlyName, + /* [out] */ ULONG *puHLID); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, UpdateHlink) + HRESULT ( STDMETHODCALLTYPE *UpdateHlink )( + IHlinkBrowseContext * This, + /* [in] */ ULONG uHLID, + /* [unique][in] */ IMoniker *pimkTarget, + /* [unique][in] */ LPCWSTR pwzLocation, + /* [unique][in] */ LPCWSTR pwzFriendlyName); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, EnumNavigationStack) + HRESULT ( STDMETHODCALLTYPE *EnumNavigationStack )( + IHlinkBrowseContext * This, + /* [in] */ DWORD dwReserved, + /* [in] */ DWORD grfHLFNAMEF, + /* [out] */ IEnumHLITEM **ppienumhlitem); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, QueryHlink) + HRESULT ( STDMETHODCALLTYPE *QueryHlink )( + IHlinkBrowseContext * This, + /* [in] */ DWORD grfHLQF, + /* [in] */ ULONG uHLID); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, GetHlink) + HRESULT ( STDMETHODCALLTYPE *GetHlink )( + IHlinkBrowseContext * This, + /* [in] */ ULONG uHLID, + /* [out] */ IHlink **ppihl); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, SetCurrentHlink) + HRESULT ( STDMETHODCALLTYPE *SetCurrentHlink )( + IHlinkBrowseContext * This, + /* [in] */ ULONG uHLID); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IHlinkBrowseContext * This, + /* [unique][in] */ IUnknown *piunkOuter, + /* [in] */ REFIID riid, + /* [iid_is][out] */ IUnknown **ppiunkObj); + + DECLSPEC_XFGVIRT(IHlinkBrowseContext, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + IHlinkBrowseContext * This, + /* [in] */ DWORD reserved); + + END_INTERFACE + } IHlinkBrowseContextVtbl; + + interface IHlinkBrowseContext + { + CONST_VTBL struct IHlinkBrowseContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHlinkBrowseContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHlinkBrowseContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHlinkBrowseContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHlinkBrowseContext_Register(This,reserved,piunk,pimk,pdwRegister) \ + ( (This)->lpVtbl -> Register(This,reserved,piunk,pimk,pdwRegister) ) + +#define IHlinkBrowseContext_GetObject(This,pimk,fBindIfRootRegistered,ppiunk) \ + ( (This)->lpVtbl -> GetObject(This,pimk,fBindIfRootRegistered,ppiunk) ) + +#define IHlinkBrowseContext_Revoke(This,dwRegister) \ + ( (This)->lpVtbl -> Revoke(This,dwRegister) ) + +#define IHlinkBrowseContext_SetBrowseWindowInfo(This,phlbwi) \ + ( (This)->lpVtbl -> SetBrowseWindowInfo(This,phlbwi) ) + +#define IHlinkBrowseContext_GetBrowseWindowInfo(This,phlbwi) \ + ( (This)->lpVtbl -> GetBrowseWindowInfo(This,phlbwi) ) + +#define IHlinkBrowseContext_SetInitialHlink(This,pimkTarget,pwzLocation,pwzFriendlyName) \ + ( (This)->lpVtbl -> SetInitialHlink(This,pimkTarget,pwzLocation,pwzFriendlyName) ) + +#define IHlinkBrowseContext_OnNavigateHlink(This,grfHLNF,pimkTarget,pwzLocation,pwzFriendlyName,puHLID) \ + ( (This)->lpVtbl -> OnNavigateHlink(This,grfHLNF,pimkTarget,pwzLocation,pwzFriendlyName,puHLID) ) + +#define IHlinkBrowseContext_UpdateHlink(This,uHLID,pimkTarget,pwzLocation,pwzFriendlyName) \ + ( (This)->lpVtbl -> UpdateHlink(This,uHLID,pimkTarget,pwzLocation,pwzFriendlyName) ) + +#define IHlinkBrowseContext_EnumNavigationStack(This,dwReserved,grfHLFNAMEF,ppienumhlitem) \ + ( (This)->lpVtbl -> EnumNavigationStack(This,dwReserved,grfHLFNAMEF,ppienumhlitem) ) + +#define IHlinkBrowseContext_QueryHlink(This,grfHLQF,uHLID) \ + ( (This)->lpVtbl -> QueryHlink(This,grfHLQF,uHLID) ) + +#define IHlinkBrowseContext_GetHlink(This,uHLID,ppihl) \ + ( (This)->lpVtbl -> GetHlink(This,uHLID,ppihl) ) + +#define IHlinkBrowseContext_SetCurrentHlink(This,uHLID) \ + ( (This)->lpVtbl -> SetCurrentHlink(This,uHLID) ) + +#define IHlinkBrowseContext_Clone(This,piunkOuter,riid,ppiunkObj) \ + ( (This)->lpVtbl -> Clone(This,piunkOuter,riid,ppiunkObj) ) + +#define IHlinkBrowseContext_Close(This,reserved) \ + ( (This)->lpVtbl -> Close(This,reserved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHlinkBrowseContext_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_hlink_0000_0006 */ +/* [local] */ + +#endif +#ifndef _LPEXTENSIONSERVICES_DEFINED +#define _LPEXTENSIONSERVICES_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0006_v0_0_s_ifspec; + +#ifndef __IExtensionServices_INTERFACE_DEFINED__ +#define __IExtensionServices_INTERFACE_DEFINED__ + +/* interface IExtensionServices */ +/* [unique][uuid][object][local] */ + +typedef /* [unique] */ IExtensionServices *LPEXTENSIONSERVICES; + + +EXTERN_C const IID IID_IExtensionServices; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79eac9cb-baf9-11ce-8c82-00aa004ba90b") + IExtensionServices : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetAdditionalHeaders( + /* [in] */ LPCWSTR pwzAdditionalHeaders) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAuthenticateData( + /* [in] */ HWND phwnd, + /* [in] */ LPCWSTR pwzUsername, + /* [in] */ LPCWSTR pwzPassword) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IExtensionServicesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IExtensionServices * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IExtensionServices * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IExtensionServices * This); + + DECLSPEC_XFGVIRT(IExtensionServices, SetAdditionalHeaders) + HRESULT ( STDMETHODCALLTYPE *SetAdditionalHeaders )( + IExtensionServices * This, + /* [in] */ LPCWSTR pwzAdditionalHeaders); + + DECLSPEC_XFGVIRT(IExtensionServices, SetAuthenticateData) + HRESULT ( STDMETHODCALLTYPE *SetAuthenticateData )( + IExtensionServices * This, + /* [in] */ HWND phwnd, + /* [in] */ LPCWSTR pwzUsername, + /* [in] */ LPCWSTR pwzPassword); + + END_INTERFACE + } IExtensionServicesVtbl; + + interface IExtensionServices + { + CONST_VTBL struct IExtensionServicesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IExtensionServices_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IExtensionServices_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IExtensionServices_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IExtensionServices_SetAdditionalHeaders(This,pwzAdditionalHeaders) \ + ( (This)->lpVtbl -> SetAdditionalHeaders(This,pwzAdditionalHeaders) ) + +#define IExtensionServices_SetAuthenticateData(This,phwnd,pwzUsername,pwzPassword) \ + ( (This)->lpVtbl -> SetAuthenticateData(This,phwnd,pwzUsername,pwzPassword) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IExtensionServices_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_hlink_0000_0007 */ +/* [local] */ + +#endif + +#endif // !HLINK_H +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hlink_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* [local] */ HRESULT STDMETHODCALLTYPE IHlink_GetMonikerReference_Proxy( + IHlink * This, + /* [in] */ DWORD dwWhichRef, + /* [annotation][out] */ + _Outptr_opt_result_maybenull_ IMoniker **ppimkTarget, + /* [annotation][out] */ + _Outptr_opt_result_maybenull_ LPWSTR *ppwzLocation); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IHlink_GetMonikerReference_Stub( + __RPC__in IHlink * This, + /* [in] */ DWORD dwWhichRef, + /* [out] */ __RPC__deref_out_opt IMoniker **ppimkTarget, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzLocation); + +/* [local] */ HRESULT STDMETHODCALLTYPE IHlink_GetStringReference_Proxy( + IHlink * This, + /* [in] */ DWORD dwWhichRef, + /* [annotation][out] */ + _Outptr_opt_ LPWSTR *ppwzTarget, + /* [annotation][out] */ + _Outptr_opt_result_maybenull_ LPWSTR *ppwzLocation); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IHlink_GetStringReference_Stub( + __RPC__in IHlink * This, + /* [in] */ DWORD dwWhichRef, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzTarget, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwzLocation); + + + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/HlGuids.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HlGuids.h new file mode 100644 index 0000000000000000000000000000000000000000..14086b789c82f1dca9e59bb444a4719f47bf4c86 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HlGuids.h @@ -0,0 +1,137 @@ +/**************************************************************************** + hlguids.h + + Copyright (c) 1995-1998 Microsoft Corporation + + This file defines or declares (according to standard DEFINE_GUID protocol) + the GUIDs used to interact with hyperlinks. + + NOTE: This header file is used by non-Office as well as Office parties to + access functionality provided by hlink dll and hlinkprx dll. +****************************************************************************/ + +#ifndef HLGUIDS_H +#define HLGUIDS_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/**************************************************************************** + hlink GUIDs +****************************************************************************/ + +// On Windows, we get these from uuid3.lib +#if MAC + +/* 79eac9c0-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(IID_IBinding, + 0x79eac9c0, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* 79eac9c1-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(IID_IBindStatusCallback, + 0x79eac9c1, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* 79eac9c9-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(IID_IPersistMoniker, + 0x79eac9c9, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +#endif /* MAC */ + +/* 79eac9c2-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(IID_IHlinkSite, + 0x79eac9c2, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* 79eac9c3-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(IID_IHlink, + 0x79eac9c3, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* 79eac9c4-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(IID_IHlinkTarget, + 0x79eac9c4, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* 79eac9c5-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(IID_IHlinkFrame, + 0x79eac9c5, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* 79eac9c6-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(IID_IEnumHLITEM, + 0x79eac9c6, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* 79eac9c7-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(IID_IHlinkBrowseContext, + 0x79eac9c7, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* 79eac9cb-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(IID_IExtensionServices, + 0x79eac9cb, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* 79eac9d0-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(CLSID_StdHlink, + 0x79eac9d0, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* 79eac9d1-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(CLSID_StdHlinkBrowseContext, + 0x79eac9d1, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +/* The GUID of the service SID_SHlinkFrame is the same as IID_IHlinkFrame */ +/* 79eac9c5-baf9-11ce-8c82-00aa004ba90b */ +#ifndef SID_SHlinkFrame /* Usually #defined in hlink.h */ +DEFINE_GUID(SID_SHlinkFrame, + 0x79eac9c5, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); +#endif /* ! SID_SHlinkFrame */ + +/* The GUID of the service SID_SContainer */ +/* 79eac9c4-baf9-11ce-8c82-00aa004ba90b */ +DEFINE_GUID(SID_SContainer, + 0x79eac9c4, + 0xbaf9, 0x11ce, + 0x8c, 0x82, + 0x00, 0xaa, 0x00, 0x4b, 0xa9, 0x0b); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // HLGUIDS_H + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/HlIface.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HlIface.Idl new file mode 100644 index 0000000000000000000000000000000000000000..2295d6d86f3e4ccded08fe3bf5e2123834a02f91 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HlIface.Idl @@ -0,0 +1,35 @@ +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: OLE Hyperlinking interfaces +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// HLIface.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#include ") +cpp_quote("") +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") +cpp_quote("") +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("// OLE Hyperlinking Interfaces.") +cpp_quote("") +cpp_quote("#ifndef __hlink_h__ ") +cpp_quote("#include \"hlink.h\" ") +cpp_quote("#endif // __hlink_h__ ") +cpp_quote("") +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/HlIface.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HlIface.h new file mode 100644 index 0000000000000000000000000000000000000000..e6e03c7966fc3c796d90bb8bb44f89d4e73273ac --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HlIface.h @@ -0,0 +1,96 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __hliface_h__ +#define __hliface_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_hliface_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// HLIface.h +//=--------------------------------------------------------------------------= +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#pragma comment(lib,"uuid.lib") + +//-------------------------------------------------------------------------- +// OLE Hyperlinking Interfaces. + +#ifndef __hlink_h__ +#include "hlink.h" +#endif // __hlink_h__ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_hliface_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hliface_0000_0000_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/HolographicSpaceInterop.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HolographicSpaceInterop.h new file mode 100644 index 0000000000000000000000000000000000000000..64cb1fba82ac546fb3285ad234bec5cb6354b38a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HolographicSpaceInterop.h @@ -0,0 +1,222 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __holographicspaceinterop_h__ +#define __holographicspaceinterop_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IHolographicSpaceInterop_FWD_DEFINED__ +#define __IHolographicSpaceInterop_FWD_DEFINED__ +typedef interface IHolographicSpaceInterop IHolographicSpaceInterop; + +#endif /* __IHolographicSpaceInterop_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "inspectable.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_holographicspaceinterop_0000_0000 */ +/* [local] */ + +#include +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_holographicspaceinterop_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_holographicspaceinterop_0000_0000_v0_0_s_ifspec; + +#ifndef __IHolographicSpaceInterop_INTERFACE_DEFINED__ +#define __IHolographicSpaceInterop_INTERFACE_DEFINED__ + +/* interface IHolographicSpaceInterop */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IHolographicSpaceInterop; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5C4EE536-6A98-4B86-A170-587013D6FD4B") + IHolographicSpaceInterop : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateForWindow( + /* [in] */ __RPC__in HWND window, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **holographicSpace) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHolographicSpaceInteropVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHolographicSpaceInterop * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHolographicSpaceInterop * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHolographicSpaceInterop * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + __RPC__in IHolographicSpaceInterop * This, + /* [out] */ __RPC__out ULONG *iidCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*iidCount) IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + __RPC__in IHolographicSpaceInterop * This, + /* [out] */ __RPC__deref_out_opt HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + __RPC__in IHolographicSpaceInterop * This, + /* [out] */ __RPC__out TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IHolographicSpaceInterop, CreateForWindow) + HRESULT ( STDMETHODCALLTYPE *CreateForWindow )( + __RPC__in IHolographicSpaceInterop * This, + /* [in] */ __RPC__in HWND window, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **holographicSpace); + + END_INTERFACE + } IHolographicSpaceInteropVtbl; + + interface IHolographicSpaceInterop + { + CONST_VTBL struct IHolographicSpaceInteropVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHolographicSpaceInterop_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHolographicSpaceInterop_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHolographicSpaceInterop_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHolographicSpaceInterop_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IHolographicSpaceInterop_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IHolographicSpaceInterop_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IHolographicSpaceInterop_CreateForWindow(This,window,riid,holographicSpace) \ + ( (This)->lpVtbl -> CreateForWindow(This,window,riid,holographicSpace) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHolographicSpaceInterop_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_holographicspaceinterop_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif //(NTDDI_VERSION >= NTDDI_WIN10) + + +extern RPC_IF_HANDLE __MIDL_itf_holographicspaceinterop_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_holographicspaceinterop_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/HolographicSpaceInterop.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HolographicSpaceInterop.idl new file mode 100644 index 0000000000000000000000000000000000000000..c0dfdd1f84e5685c1af684f74b46a37ab9a46ab2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HolographicSpaceInterop.idl @@ -0,0 +1,31 @@ +/* HolographicSpaceInterop.idl + * + * IDL defines for COM APIs to support interop with Windows.Graphics.Holographic.HolographicSpace + * + * Copyright (c) Microsoft Corporation. All rights reserved + */ + +import "inspectable.idl"; + +cpp_quote("#include ") + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_RS2)") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +[ + uuid(5C4EE536-6A98-4B86-A170-587013D6FD4B), +] +interface IHolographicSpaceInterop : IInspectable +{ + HRESULT CreateForWindow( + [in] HWND window, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** holographicSpace); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WIN10)") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/HtmlHelp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HtmlHelp.h new file mode 100644 index 0000000000000000000000000000000000000000..8e0828c8dbe952b6ac8a67ef0acb11f177a2c74f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HtmlHelp.h @@ -0,0 +1,439 @@ +/**************************************************************************** +* * +* HtmlHelp.h * +* * +* Copyright (c) 1996-1997, Microsoft Corp. All rights reserved. * +* * +****************************************************************************/ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifndef __HTMLHELP_H__ +#define __HTMLHELP_H__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +#if _MSC_VER < 1200 +// Defines for Win64 +#ifndef _WIN64 +#define DWORD_PTR DWORD +#endif +#endif + +// Commands to pass to HtmlHelp() + +#define HH_DISPLAY_TOPIC 0x0000 +#define HH_HELP_FINDER 0x0000 // WinHelp equivalent +#define HH_DISPLAY_TOC 0x0001 +#define HH_DISPLAY_INDEX 0x0002 +#define HH_DISPLAY_SEARCH 0x0003 +#define HH_SET_WIN_TYPE 0x0004 +#define HH_GET_WIN_TYPE 0x0005 +#define HH_GET_WIN_HANDLE 0x0006 +#define HH_ENUM_INFO_TYPE 0x0007 // Get Info type name, call repeatedly to enumerate, -1 at end +#define HH_SET_INFO_TYPE 0x0008 // Add Info type to filter. +#define HH_SYNC 0x0009 +#define HH_RESERVED1 0x000A +#define HH_RESERVED2 0x000B +#define HH_RESERVED3 0x000C +#define HH_KEYWORD_LOOKUP 0x000D +#define HH_DISPLAY_TEXT_POPUP 0x000E // display string resource id or text in a popup window +#define HH_HELP_CONTEXT 0x000F // display mapped numeric value in dwData +#define HH_TP_HELP_CONTEXTMENU 0x0010 // text popup help, same as WinHelp HELP_CONTEXTMENU +#define HH_TP_HELP_WM_HELP 0x0011 // text popup help, same as WinHelp HELP_WM_HELP +#define HH_CLOSE_ALL 0x0012 // close all windows opened directly or indirectly by the caller +#define HH_ALINK_LOOKUP 0x0013 // ALink version of HH_KEYWORD_LOOKUP +#define HH_GET_LAST_ERROR 0x0014 // not currently implemented // See HHERROR.h +#define HH_ENUM_CATEGORY 0x0015 // Get category name, call repeatedly to enumerate, -1 at end +#define HH_ENUM_CATEGORY_IT 0x0016 // Get category info type members, call repeatedly to enumerate, -1 at end +#define HH_RESET_IT_FILTER 0x0017 // Clear the info type filter of all info types. +#define HH_SET_INCLUSIVE_FILTER 0x0018 // set inclusive filtering method for untyped topics to be included in display +#define HH_SET_EXCLUSIVE_FILTER 0x0019 // set exclusive filtering method for untyped topics to be excluded from display +#define HH_INITIALIZE 0x001C // Initializes the help system. +#define HH_UNINITIALIZE 0x001D // Uninitializes the help system. +#define HH_SET_QUERYSERVICE 0x001E // Set the Host IQueryService interface +#define HH_PRETRANSLATEMESSAGE 0x00fd // Pumps messages. (NULL, NULL, MSG*). +#define HH_SET_GLOBAL_PROPERTY 0x00fc // Set a global property. (NULL, NULL, HH_GPROP) +#define HH_SAFE_DISPLAY_TOPIC 0x0020 // private addition to the interface for InternetExplorer. + +#define HHWIN_PROP_TAB_AUTOHIDESHOW (1 << 0) // Automatically hide/show tri-pane window +#define HHWIN_PROP_ONTOP (1 << 1) // Top-most window +#define HHWIN_PROP_NOTITLEBAR (1 << 2) // no title bar +#define HHWIN_PROP_NODEF_STYLES (1 << 3) // no default window styles (only HH_WINTYPE.dwStyles) +#define HHWIN_PROP_NODEF_EXSTYLES (1 << 4) // no default extended window styles (only HH_WINTYPE.dwExStyles) +#define HHWIN_PROP_TRI_PANE (1 << 5) // use a tri-pane window +#define HHWIN_PROP_NOTB_TEXT (1 << 6) // no text on toolbar buttons +#define HHWIN_PROP_POST_QUIT (1 << 7) // post WM_QUIT message when window closes +#define HHWIN_PROP_AUTO_SYNC (1 << 8) // automatically ssync contents and index +#define HHWIN_PROP_TRACKING (1 << 9) // send tracking notification messages +#define HHWIN_PROP_TAB_SEARCH (1 << 10) // include search tab in navigation pane +#define HHWIN_PROP_TAB_HISTORY (1 << 11) // include history tab in navigation pane +#define HHWIN_PROP_TAB_FAVORITES (1 << 12) // include favorites tab in navigation pane +#define HHWIN_PROP_CHANGE_TITLE (1 << 13) // Put current HTML title in title bar +#define HHWIN_PROP_NAV_ONLY_WIN (1 << 14) // Only display the navigation window +#define HHWIN_PROP_NO_TOOLBAR (1 << 15) // Don't display a toolbar +#define HHWIN_PROP_MENU (1 << 16) // Menu +#define HHWIN_PROP_TAB_ADVSEARCH (1 << 17) // Advanced FTS UI. +#define HHWIN_PROP_USER_POS (1 << 18) // After initial creation, user controls window size/position +#define HHWIN_PROP_TAB_CUSTOM1 (1 << 19) // Use custom tab #1 +#define HHWIN_PROP_TAB_CUSTOM2 (1 << 20) // Use custom tab #2 +#define HHWIN_PROP_TAB_CUSTOM3 (1 << 21) // Use custom tab #3 +#define HHWIN_PROP_TAB_CUSTOM4 (1 << 22) // Use custom tab #4 +#define HHWIN_PROP_TAB_CUSTOM5 (1 << 23) // Use custom tab #5 +#define HHWIN_PROP_TAB_CUSTOM6 (1 << 24) // Use custom tab #6 +#define HHWIN_PROP_TAB_CUSTOM7 (1 << 25) // Use custom tab #7 +#define HHWIN_PROP_TAB_CUSTOM8 (1 << 26) // Use custom tab #8 +#define HHWIN_PROP_TAB_CUSTOM9 (1 << 27) // Use custom tab #9 +#define HHWIN_TB_MARGIN (1 << 28) // the window type has a margin + +#define HHWIN_PARAM_PROPERTIES (1 << 1) // valid fsWinProperties +#define HHWIN_PARAM_STYLES (1 << 2) // valid dwStyles +#define HHWIN_PARAM_EXSTYLES (1 << 3) // valid dwExStyles +#define HHWIN_PARAM_RECT (1 << 4) // valid rcWindowPos +#define HHWIN_PARAM_NAV_WIDTH (1 << 5) // valid iNavWidth +#define HHWIN_PARAM_SHOWSTATE (1 << 6) // valid nShowState +#define HHWIN_PARAM_INFOTYPES (1 << 7) // valid apInfoTypes +#define HHWIN_PARAM_TB_FLAGS (1 << 8) // valid fsToolBarFlags +#define HHWIN_PARAM_EXPANSION (1 << 9) // valid fNotExpanded +#define HHWIN_PARAM_TABPOS (1 << 10) // valid tabpos +#define HHWIN_PARAM_TABORDER (1 << 11) // valid taborder +#define HHWIN_PARAM_HISTORY_COUNT (1 << 12) // valid cHistory +#define HHWIN_PARAM_CUR_TAB (1 << 13) // valid curNavType + +#define HHWIN_BUTTON_EXPAND (1 << 1) // Expand/contract button +#define HHWIN_BUTTON_BACK (1 << 2) // Back button +#define HHWIN_BUTTON_FORWARD (1 << 3) // Forward button +#define HHWIN_BUTTON_STOP (1 << 4) // Stop button +#define HHWIN_BUTTON_REFRESH (1 << 5) // Refresh button +#define HHWIN_BUTTON_HOME (1 << 6) // Home button +#define HHWIN_BUTTON_BROWSE_FWD (1 << 7) // not implemented +#define HHWIN_BUTTON_BROWSE_BCK (1 << 8) // not implemented +#define HHWIN_BUTTON_NOTES (1 << 9) // not implemented +#define HHWIN_BUTTON_CONTENTS (1 << 10) // not implemented +#define HHWIN_BUTTON_SYNC (1 << 11) // Sync button +#define HHWIN_BUTTON_OPTIONS (1 << 12) // Options button +#define HHWIN_BUTTON_PRINT (1 << 13) // Print button +#define HHWIN_BUTTON_INDEX (1 << 14) // not implemented +#define HHWIN_BUTTON_SEARCH (1 << 15) // not implemented +#define HHWIN_BUTTON_HISTORY (1 << 16) // not implemented +#define HHWIN_BUTTON_FAVORITES (1 << 17) // not implemented +#define HHWIN_BUTTON_JUMP1 (1 << 18) +#define HHWIN_BUTTON_JUMP2 (1 << 19) +#define HHWIN_BUTTON_ZOOM (1 << 20) +#define HHWIN_BUTTON_TOC_NEXT (1 << 21) +#define HHWIN_BUTTON_TOC_PREV (1 << 22) + +#define HHWIN_DEF_BUTTONS \ + (HHWIN_BUTTON_EXPAND | \ + HHWIN_BUTTON_BACK | \ + HHWIN_BUTTON_OPTIONS | \ + HHWIN_BUTTON_PRINT) + +// Button IDs + +#define IDTB_EXPAND 200 +#define IDTB_CONTRACT 201 +#define IDTB_STOP 202 +#define IDTB_REFRESH 203 +#define IDTB_BACK 204 +#define IDTB_HOME 205 +#define IDTB_SYNC 206 +#define IDTB_PRINT 207 +#define IDTB_OPTIONS 208 +#define IDTB_FORWARD 209 +#define IDTB_NOTES 210 // not implemented +#define IDTB_BROWSE_FWD 211 +#define IDTB_BROWSE_BACK 212 +#define IDTB_CONTENTS 213 // not implemented +#define IDTB_INDEX 214 // not implemented +#define IDTB_SEARCH 215 // not implemented +#define IDTB_HISTORY 216 // not implemented +#define IDTB_FAVORITES 217 // not implemented +#define IDTB_JUMP1 218 +#define IDTB_JUMP2 219 +#define IDTB_CUSTOMIZE 221 +#define IDTB_ZOOM 222 +#define IDTB_TOC_NEXT 223 +#define IDTB_TOC_PREV 224 + +// Notification codes + +#define HHN_FIRST (0U-860U) +#define HHN_LAST (0U-879U) + +#define HHN_NAVCOMPLETE (HHN_FIRST-0) +#define HHN_TRACK (HHN_FIRST-1) +#define HHN_WINDOW_CREATE (HHN_FIRST-2) + +typedef struct tagHHN_NOTIFY +{ + NMHDR hdr; + PCSTR pszUrl; // Multi-byte, null-terminated string +} HHN_NOTIFY; + +typedef struct tagHH_POPUP +{ + int cbStruct; // sizeof this structure + HINSTANCE hinst; // instance handle for string resource + UINT idString; // string resource id, or text id if pszFile is specified in HtmlHelp call + LPCTSTR pszText; // used if idString is zero + POINT pt; // top center of popup window + COLORREF clrForeground; // use -1 for default + COLORREF clrBackground; // use -1 for default + RECT rcMargins; // amount of space between edges of window and text, -1 for each member to ignore + LPCTSTR pszFont; // facename, point size, char set, BOLD ITALIC UNDERLINE +} HH_POPUP; + +typedef struct tagHH_AKLINK +{ + int cbStruct; // sizeof this structure + BOOL fReserved; // must be FALSE (really!) + LPCTSTR pszKeywords; // semi-colon separated keywords + LPCTSTR pszUrl; // URL to jump to if no keywords found (may be NULL) + LPCTSTR pszMsgText; // Message text to display in MessageBox if pszUrl is NULL and no keyword match + LPCTSTR pszMsgTitle; // Message text to display in MessageBox if pszUrl is NULL and no keyword match + LPCTSTR pszWindow; // Window to display URL in + BOOL fIndexOnFail; // Displays index if keyword lookup fails. +} HH_AKLINK; + +enum { + HHWIN_NAVTYPE_TOC, + HHWIN_NAVTYPE_INDEX, + HHWIN_NAVTYPE_SEARCH, + HHWIN_NAVTYPE_FAVORITES, + HHWIN_NAVTYPE_HISTORY, // not implemented + HHWIN_NAVTYPE_AUTHOR, + HHWIN_NAVTYPE_CUSTOM_FIRST = 11 +}; + +enum { + IT_INCLUSIVE, + IT_EXCLUSIVE, + IT_HIDDEN, +}; + +typedef struct tagHH_ENUM_IT +{ + int cbStruct; // size of this structure + int iType; // the type of the information type ie. Inclusive, Exclusive, or Hidden + LPCSTR pszCatName; // Set to the name of the Category to enumerate the info types in a category; else NULL + LPCSTR pszITName; // volitile pointer to the name of the infotype. Allocated by call. Caller responsible for freeing + LPCSTR pszITDescription; // volitile pointer to the description of the infotype. +} HH_ENUM_IT, *PHH_ENUM_IT; + +typedef struct tagHH_ENUM_CAT +{ + int cbStruct; // size of this structure + LPCSTR pszCatName; // volitile pointer to the category name + LPCSTR pszCatDescription; // volitile pointer to the category description +} HH_ENUM_CAT, *PHH_ENUM_CAT; + +typedef struct tagHH_SET_INFOTYPE +{ + int cbStruct; // the size of this structure + LPCSTR pszCatName; // the name of the category, if any, the InfoType is a member of. + LPCSTR pszInfoTypeName; // the name of the info type to add to the filter +} HH_SET_INFOTYPE, *PHH_SET_INFOTYPE; + +typedef DWORD HH_INFOTYPE; +typedef HH_INFOTYPE* PHH_INFOTYPE; + +enum { + HHWIN_NAVTAB_TOP, + HHWIN_NAVTAB_LEFT, + HHWIN_NAVTAB_BOTTOM, +}; + +#define HH_MAX_TABS 19 // maximum number of tabs + +enum { + HH_TAB_CONTENTS, + HH_TAB_INDEX, + HH_TAB_SEARCH, + HH_TAB_FAVORITES, + HH_TAB_HISTORY, + HH_TAB_AUTHOR, + + HH_TAB_CUSTOM_FIRST = 11, + HH_TAB_CUSTOM_LAST = HH_MAX_TABS +}; + +#define HH_MAX_TABS_CUSTOM (HH_TAB_CUSTOM_LAST - HH_TAB_CUSTOM_FIRST + 1) + +// HH_DISPLAY_SEARCH Command Related Structures and Constants + +#define HH_FTS_DEFAULT_PROXIMITY (-1) + +typedef struct tagHH_FTS_QUERY +{ + int cbStruct; // Sizeof structure in bytes. + BOOL fUniCodeStrings; // TRUE if all strings are unicode. + LPCTSTR pszSearchQuery; // String containing the search query. + LONG iProximity; // Word proximity. + BOOL fStemmedSearch; // TRUE for StemmedSearch only. + BOOL fTitleOnly; // TRUE for Title search only. + BOOL fExecute; // TRUE to initiate the search. + LPCTSTR pszWindow; // Window to display in +} HH_FTS_QUERY; + +// HH_WINTYPE Structure + +typedef struct tagHH_WINTYPE { + int cbStruct; // IN: size of this structure including all Information Types + BOOL fUniCodeStrings; // IN/OUT: TRUE if all strings are in UNICODE + LPCTSTR pszType; // IN/OUT: Name of a type of window + DWORD fsValidMembers; // IN: Bit flag of valid members (HHWIN_PARAM_) + DWORD fsWinProperties; // IN/OUT: Properties/attributes of the window (HHWIN_) + + LPCTSTR pszCaption; // IN/OUT: Window title + DWORD dwStyles; // IN/OUT: Window styles + DWORD dwExStyles; // IN/OUT: Extended Window styles + RECT rcWindowPos; // IN: Starting position, OUT: current position + int nShowState; // IN: show state (e.g., SW_SHOW) + + HWND hwndHelp; // OUT: window handle + HWND hwndCaller; // OUT: who called this window + + HH_INFOTYPE* paInfoTypes; // IN: Pointer to an array of Information Types + + // The following members are only valid if HHWIN_PROP_TRI_PANE is set + + HWND hwndToolBar; // OUT: toolbar window in tri-pane window + HWND hwndNavigation; // OUT: navigation window in tri-pane window + HWND hwndHTML; // OUT: window displaying HTML in tri-pane window + int iNavWidth; // IN/OUT: width of navigation window + RECT rcHTML; // OUT: HTML window coordinates + + LPCTSTR pszToc; // IN: Location of the table of contents file + LPCTSTR pszIndex; // IN: Location of the index file + LPCTSTR pszFile; // IN: Default location of the html file + LPCTSTR pszHome; // IN/OUT: html file to display when Home button is clicked + DWORD fsToolBarFlags; // IN: flags controling the appearance of the toolbar + BOOL fNotExpanded; // IN: TRUE/FALSE to contract or expand, OUT: current state + int curNavType; // IN/OUT: UI to display in the navigational pane + int tabpos; // IN/OUT: HHWIN_NAVTAB_TOP, HHWIN_NAVTAB_LEFT, or HHWIN_NAVTAB_BOTTOM + int idNotify; // IN: ID to use for WM_NOTIFY messages + BYTE tabOrder[HH_MAX_TABS + 1]; // IN/OUT: tab order: Contents, Index, Search, History, Favorites, Reserved 1-5, Custom tabs + int cHistory; // IN/OUT: number of history items to keep (default is 30) + LPCTSTR pszJump1; // Text for HHWIN_BUTTON_JUMP1 + LPCTSTR pszJump2; // Text for HHWIN_BUTTON_JUMP2 + LPCTSTR pszUrlJump1; // URL for HHWIN_BUTTON_JUMP1 + LPCTSTR pszUrlJump2; // URL for HHWIN_BUTTON_JUMP2 + RECT rcMinSize; // Minimum size for window (ignored in version 1) + int cbInfoTypes; // size of paInfoTypes; + LPCTSTR pszCustomTabs; // multiple zero-terminated strings +} HH_WINTYPE, *PHH_WINTYPE; + +enum { + HHACT_TAB_CONTENTS, + HHACT_TAB_INDEX, + HHACT_TAB_SEARCH, + HHACT_TAB_HISTORY, + HHACT_TAB_FAVORITES, + + HHACT_EXPAND, + HHACT_CONTRACT, + HHACT_BACK, + HHACT_FORWARD, + HHACT_STOP, + HHACT_REFRESH, + HHACT_HOME, + HHACT_SYNC, + HHACT_OPTIONS, + HHACT_PRINT, + HHACT_HIGHLIGHT, + HHACT_CUSTOMIZE, + HHACT_JUMP1, + HHACT_JUMP2, + HHACT_ZOOM, + HHACT_TOC_NEXT, + HHACT_TOC_PREV, + HHACT_NOTES, + + HHACT_LAST_ENUM, +}; + +typedef struct tagHHNTRACK +{ + NMHDR hdr; + PCSTR pszCurUrl; // Multi-byte, null-terminated string + int idAction; // HHACT_ value + HH_WINTYPE* phhWinType; // Current window type structure +} HHNTRACK; + +HWND +WINAPI +HtmlHelpA( + _In_opt_ HWND hwndCaller, + _In_ LPCSTR pszFile, + _In_ UINT uCommand, + _In_ DWORD_PTR dwData + ); + +HWND +WINAPI +HtmlHelpW( + _In_opt_ HWND hwndCaller, + _In_ LPCWSTR pszFile, + _In_ UINT uCommand, + _In_ DWORD_PTR dwData + ); +#ifdef UNICODE +#define HtmlHelp HtmlHelpW +#else +#define HtmlHelp HtmlHelpA +#endif // !UNICODE + +// Use the following for GetProcAddress to load from hhctrl.ocx + +#define ATOM_HTMLHELP_API_ANSI (LPTSTR)((DWORD)((WORD)(14))) +#define ATOM_HTMLHELP_API_UNICODE (LPTSTR)((DWORD)((WORD)(15))) + +/////////////////////////////////////////////////////////////////////////////// +// +// Global Control Properties. +// +typedef enum tagHH_GPROPID +{ + HH_GPROPID_SINGLETHREAD=1, // VARIANT_BOOL: True for single thread + HH_GPROPID_TOOLBAR_MARGIN=2, // long: Provides a left/right margin around the toolbar. + HH_GPROPID_UI_LANGUAGE=3, // long: LangId of the UI. + HH_GPROPID_CURRENT_SUBSET=4, // BSTR: Current subset. + HH_GPROPID_CONTENT_LANGUAGE=5 // long: LandId for desired content. +} HH_GPROPID; + +/////////////////////////////////////////////////////////////////////////////// +// +// Global Property structure +// +#ifdef __oaidl_h__ + +#pragma pack(push, 8) + +typedef struct tagHH_GLOBAL_PROPERTY +{ + HH_GPROPID id; + VARIANT var; +} HH_GLOBAL_PROPERTY ; + +#pragma pack(pop) +#endif + +#ifdef __cplusplus +} +#endif // __cplusplus + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __HTMLHELP_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/HttpExt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HttpExt.h new file mode 100644 index 0000000000000000000000000000000000000000..f27876644b56a69b60141afcccb434fadd3098c3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HttpExt.h @@ -0,0 +1,600 @@ +/******** +* +* Copyright (c) 1995 Process Software Corporation +* +* Copyright (c) 1995-1999 Microsoft Corporation +* +* +* Module Name : HttpExt.h +* +* Abstract : +* +* This module contains the structure definitions and prototypes for the +* HTTP Server Extension interface used to build ISAPI Applications +* +******************/ + +#ifndef _HTTPEXT_H_ +#define _HTTPEXT_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/************************************************************ + * Manifest Constants + ************************************************************/ + +#define HSE_VERSION_MAJOR 8 // major version of this spec +#define HSE_VERSION_MINOR 0 // minor version of this spec +#define HSE_LOG_BUFFER_LEN 80 +#define HSE_MAX_EXT_DLL_NAME_LEN 256 + +#define HSE_VERSION MAKELONG( HSE_VERSION_MINOR, HSE_VERSION_MAJOR ) + +// +// the following are the status codes returned by the Extension DLL +// + +#define HSE_STATUS_SUCCESS 1 +#define HSE_STATUS_SUCCESS_AND_KEEP_CONN 2 +#define HSE_STATUS_PENDING 3 +#define HSE_STATUS_ERROR 4 + +// +// The following are the values to request services with the +// ServerSupportFunction(). +// Values from 0 to 1000 are reserved for future versions of the interface + +#define HSE_REQ_BASE 0 +#define HSE_REQ_SEND_URL_REDIRECT_RESP ( HSE_REQ_BASE + 1 ) +#define HSE_REQ_SEND_URL ( HSE_REQ_BASE + 2 ) +#define HSE_REQ_SEND_RESPONSE_HEADER ( HSE_REQ_BASE + 3 ) +#define HSE_REQ_DONE_WITH_SESSION ( HSE_REQ_BASE + 4 ) +#define HSE_REQ_END_RESERVED 1000 + +// +// These are Microsoft specific extensions +// + +#define HSE_REQ_MAP_URL_TO_PATH (HSE_REQ_END_RESERVED+1) +#define HSE_REQ_GET_SSPI_INFO (HSE_REQ_END_RESERVED+2) +#define HSE_APPEND_LOG_PARAMETER (HSE_REQ_END_RESERVED+3) +#define HSE_REQ_IO_COMPLETION (HSE_REQ_END_RESERVED+5) +#define HSE_REQ_TRANSMIT_FILE (HSE_REQ_END_RESERVED+6) +#define HSE_REQ_REFRESH_ISAPI_ACL (HSE_REQ_END_RESERVED+7) +#define HSE_REQ_IS_KEEP_CONN (HSE_REQ_END_RESERVED+8) +#define HSE_REQ_ASYNC_READ_CLIENT (HSE_REQ_END_RESERVED+10) +#define HSE_REQ_GET_IMPERSONATION_TOKEN (HSE_REQ_END_RESERVED+11) +#define HSE_REQ_MAP_URL_TO_PATH_EX (HSE_REQ_END_RESERVED+12) +#define HSE_REQ_ABORTIVE_CLOSE (HSE_REQ_END_RESERVED+14) +#define HSE_REQ_GET_CERT_INFO_EX (HSE_REQ_END_RESERVED+15) +#define HSE_REQ_SEND_RESPONSE_HEADER_EX (HSE_REQ_END_RESERVED+16) +#define HSE_REQ_CLOSE_CONNECTION (HSE_REQ_END_RESERVED+17) +#define HSE_REQ_IS_CONNECTED (HSE_REQ_END_RESERVED+18) +#define HSE_REQ_MAP_UNICODE_URL_TO_PATH (HSE_REQ_END_RESERVED+23) +#define HSE_REQ_MAP_UNICODE_URL_TO_PATH_EX (HSE_REQ_END_RESERVED+24) +#define HSE_REQ_EXEC_UNICODE_URL (HSE_REQ_END_RESERVED+25) +#define HSE_REQ_EXEC_URL (HSE_REQ_END_RESERVED+26) +#define HSE_REQ_GET_EXEC_URL_STATUS (HSE_REQ_END_RESERVED+27) +#define HSE_REQ_SEND_CUSTOM_ERROR (HSE_REQ_END_RESERVED+28) +#define HSE_REQ_IS_IN_PROCESS (HSE_REQ_END_RESERVED+30) +#define HSE_REQ_REPORT_UNHEALTHY (HSE_REQ_END_RESERVED+32) +#define HSE_REQ_NORMALIZE_URL (HSE_REQ_END_RESERVED+33) +#define HSE_REQ_VECTOR_SEND (HSE_REQ_END_RESERVED+37) +#define HSE_REQ_GET_ANONYMOUS_TOKEN (HSE_REQ_END_RESERVED+38) +#define HSE_REQ_GET_CACHE_INVALIDATION_CALLBACK (HSE_REQ_END_RESERVED+40) +#define HSE_REQ_GET_UNICODE_ANONYMOUS_TOKEN (HSE_REQ_END_RESERVED+41) +#define HSE_REQ_GET_TRACE_INFO (HSE_REQ_END_RESERVED+42) +#define HSE_REQ_SET_FLUSH_FLAG (HSE_REQ_END_RESERVED+43) +#define HSE_REQ_GET_TRACE_INFO_EX (HSE_REQ_END_RESERVED+44) +#define HSE_REQ_RAISE_TRACE_EVENT (HSE_REQ_END_RESERVED+45) +#define HSE_REQ_GET_CONFIG_OBJECT (HSE_REQ_END_RESERVED+46) +#define HSE_REQ_GET_WORKER_PROCESS_SETTINGS (HSE_REQ_END_RESERVED+47) +#define HSE_REQ_GET_PROTOCOL_MANAGER_CUSTOM_INTERFACE_CALLBACK \ + (HSE_REQ_END_RESERVED+48) +#define HSE_REQ_CANCEL_IO (HSE_REQ_END_RESERVED+49) +#define HSE_REQ_GET_CHANNEL_BINDING_TOKEN (HSE_REQ_END_RESERVED+50) + +// +// Bit Flags for TerminateExtension +// +// HSE_TERM_ADVISORY_UNLOAD - Server wants to unload the extension, +// extension can return TRUE if OK, FALSE if the server should not +// unload the extension +// +// HSE_TERM_MUST_UNLOAD - Server indicating the extension is about to be +// unloaded, the extension cannot refuse. +// + +#define HSE_TERM_ADVISORY_UNLOAD 0x00000001 +#define HSE_TERM_MUST_UNLOAD 0x00000002 + +// +// Flags for IO Functions, supported for IO Funcs. +// TF means ServerSupportFunction( HSE_REQ_TRANSMIT_FILE) +// + +# define HSE_IO_SYNC 0x00000001 // for WriteClient +# define HSE_IO_ASYNC 0x00000002 // for WriteClient/TF/EU +# define HSE_IO_DISCONNECT_AFTER_SEND 0x00000004 // for TF +# define HSE_IO_SEND_HEADERS 0x00000008 // for TF +# define HSE_IO_NODELAY 0x00001000 // turn off nagling + +// +// These three are only used by VectorSend +// + +# define HSE_IO_FINAL_SEND 0x00000010 +# define HSE_IO_CACHE_RESPONSE 0x00000020 +# define HSE_IO_TRY_SKIP_CUSTOM_ERRORS 0x00000040 + + +/************************************************************ + * Type Definitions + ************************************************************/ + +typedef LPVOID HCONN; + +// +// structure passed to GetExtensionVersion() +// + +typedef struct _HSE_VERSION_INFO { + + DWORD dwExtensionVersion; + CHAR lpszExtensionDesc[HSE_MAX_EXT_DLL_NAME_LEN]; + +} HSE_VERSION_INFO, *LPHSE_VERSION_INFO; + + +// +// structure passed to extension procedure on a new request +// +typedef struct _EXTENSION_CONTROL_BLOCK { + + DWORD cbSize; // size of this struct. + DWORD dwVersion; // version info of this spec + HCONN ConnID; // Context number not to be modified! + DWORD dwHttpStatusCode; // HTTP Status code + CHAR lpszLogData[HSE_LOG_BUFFER_LEN];// null terminated log info specific to this Extension DLL + + LPSTR lpszMethod; // REQUEST_METHOD + LPSTR lpszQueryString; // QUERY_STRING + LPSTR lpszPathInfo; // PATH_INFO + LPSTR lpszPathTranslated; // PATH_TRANSLATED + + DWORD cbTotalBytes; // Total bytes indicated from client + DWORD cbAvailable; // Available number of bytes + LPBYTE lpbData; // pointer to cbAvailable bytes + + LPSTR lpszContentType; // Content type of client data + + BOOL (WINAPI * GetServerVariable) ( HCONN hConn, + LPSTR lpszVariableName, + LPVOID lpvBuffer, + LPDWORD lpdwSize ); + + BOOL (WINAPI * WriteClient) ( HCONN ConnID, + LPVOID Buffer, + LPDWORD lpdwBytes, + DWORD dwReserved ); + + BOOL (WINAPI * ReadClient) ( HCONN ConnID, + LPVOID lpvBuffer, + LPDWORD lpdwSize ); + + BOOL (WINAPI * ServerSupportFunction)( HCONN hConn, + DWORD dwHSERequest, + LPVOID lpvBuffer, + LPDWORD lpdwSize, + LPDWORD lpdwDataType ); + +} EXTENSION_CONTROL_BLOCK, *LPEXTENSION_CONTROL_BLOCK; + + + + +// +// Bit field of flags that can be on a virtual directory +// + +#define HSE_URL_FLAGS_READ 0x00000001 // Allow for Read +#define HSE_URL_FLAGS_WRITE 0x00000002 // Allow for Write +#define HSE_URL_FLAGS_EXECUTE 0x00000004 // Allow for Execute +#define HSE_URL_FLAGS_SSL 0x00000008 // Require SSL +#define HSE_URL_FLAGS_DONT_CACHE 0x00000010 // Don't cache (vroot only) +#define HSE_URL_FLAGS_NEGO_CERT 0x00000020 // Allow client SSL certs +#define HSE_URL_FLAGS_REQUIRE_CERT 0x00000040 // Require client SSL certs +#define HSE_URL_FLAGS_MAP_CERT 0x00000080 // Map SSL cert to NT account +#define HSE_URL_FLAGS_SSL128 0x00000100 // Require 128 bit SSL +#define HSE_URL_FLAGS_SCRIPT 0x00000200 // Allow for Script execution + +#define HSE_URL_FLAGS_MASK 0x000003ff + +// +// Structure for extended information on a URL mapping +// + +typedef struct _HSE_URL_MAPEX_INFO { + + CHAR lpszPath[MAX_PATH]; // Physical path root mapped to + DWORD dwFlags; // Flags associated with this URL path + DWORD cchMatchingPath; // Number of matching characters in physical path + DWORD cchMatchingURL; // Number of matching characters in URL + + DWORD dwReserved1; + DWORD dwReserved2; + +} HSE_URL_MAPEX_INFO, * LPHSE_URL_MAPEX_INFO; + + +typedef struct _HSE_UNICODE_URL_MAPEX_INFO { + + WCHAR lpszPath[MAX_PATH]; // Physical path root mapped to + DWORD dwFlags; // Flags associated with this URL path + DWORD cchMatchingPath; // Number of matching characters in physical path + DWORD cchMatchingURL; // Number of matching characters in URL + +} HSE_UNICODE_URL_MAPEX_INFO, * LPHSE_UNICODE_URL_MAPEX_INFO; + + +// +// PFN_HSE_IO_COMPLETION - callback function for the Async I/O Completion. +// + +typedef VOID + (WINAPI * PFN_HSE_IO_COMPLETION)( + IN EXTENSION_CONTROL_BLOCK * pECB, + IN PVOID pContext, + IN DWORD cbIO, + IN DWORD dwError + ); + + + +// +// HSE_TF_INFO defines the type for HTTP SERVER EXTENSION support for +// ISAPI applications to send files using TransmitFile. +// A pointer to this object should be used with ServerSupportFunction() +// for HSE_REQ_TRANSMIT_FILE. +// + +typedef struct _HSE_TF_INFO { + + // + // callback and context information + // the callback function will be called when IO is completed. + // the context specified will be used during such callback. + // + // These values (if non-NULL) will override the one set by calling + // ServerSupportFunction() with HSE_REQ_IO_COMPLETION + // + PFN_HSE_IO_COMPLETION pfnHseIO; + PVOID pContext; + + // file should have been opened with FILE_FLAG_SEQUENTIAL_SCAN + HANDLE hFile; + + // + // HTTP header and status code + // These fields are used only if HSE_IO_SEND_HEADERS is present in dwFlags + // + + LPCSTR pszStatusCode; // HTTP Status Code eg: "200 OK" + + DWORD BytesToWrite; // special value of "0" means write entire file. + DWORD Offset; // offset value within the file to start from + + PVOID pHead; // Head buffer to be sent before file data + DWORD HeadLength; // header length + PVOID pTail; // Tail buffer to be sent after file data + DWORD TailLength; // tail length + + DWORD dwFlags; // includes HSE_IO_DISCONNECT_AFTER_SEND, ... + +} HSE_TF_INFO, * LPHSE_TF_INFO; + + +// +// HSE_SEND_HEADER_EX_INFO allows an ISAPI application to send headers +// and specify keep-alive behavior in the same call. +// + +typedef struct _HSE_SEND_HEADER_EX_INFO { + + // + // HTTP status code and header + // + + LPCSTR pszStatus; // HTTP status code eg: "200 OK" + LPCSTR pszHeader; // HTTP header + + DWORD cchStatus; // number of characters in status code + DWORD cchHeader; // number of characters in header + + BOOL fKeepConn; // keep client connection alive? + +} HSE_SEND_HEADER_EX_INFO, * LPHSE_SEND_HEADER_EX_INFO; + +// +// Flags for use with HSE_REQ_EXEC_URL +// + +#define HSE_EXEC_URL_NO_HEADERS 0x02 +#define HSE_EXEC_URL_IGNORE_CURRENT_INTERCEPTOR 0x04 +#define HSE_EXEC_URL_IGNORE_VALIDATION_AND_RANGE 0x10 +#define HSE_EXEC_URL_DISABLE_CUSTOM_ERROR 0x20 +#define HSE_EXEC_URL_SSI_CMD 0x40 +#define HSE_EXEC_URL_HTTP_CACHE_ELIGIBLE 0x80 + +// +// HSE_EXEC_URL_USER_INFO provides a new user content for use with +// HSE_REQ_EXEC_URL +// + +typedef struct _HSE_EXEC_URL_USER_INFO { + + HANDLE hImpersonationToken; + LPSTR pszCustomUserName; + LPSTR pszCustomAuthType; + +} HSE_EXEC_URL_USER_INFO, * LPHSE_EXEC_URL_USER_INFO; + +// +// HSE_EXEC_URL_ENTITY_INFO describes the entity body to be provided +// to the executed request using HSE_REQ_EXEC_URL +// + +typedef struct _HSE_EXEC_URL_ENTITY_INFO { + + DWORD cbAvailable; + LPVOID lpbData; + +} HSE_EXEC_URL_ENTITY_INFO, * LPHSE_EXEC_URL_ENTITY_INFO; + +// +// HSE_EXEC_URL_STATUS provides the status of the last HSE_REQ_EXEC_URL +// call +// + +typedef struct _HSE_EXEC_URL_STATUS { + + USHORT uHttpStatusCode; + USHORT uHttpSubStatus; + DWORD dwWin32Error; + +} HSE_EXEC_URL_STATUS, * LPHSE_EXEC_URL_STATUS; + +// +// HSE_EXEC_URL_INFO provides a description of the request to execute +// on behalf of the ISAPI. +// + +typedef struct _HSE_EXEC_URL_INFO { + + LPSTR pszUrl; // URL to execute + LPSTR pszMethod; // Method + LPSTR pszChildHeaders; // Request headers for child + LPHSE_EXEC_URL_USER_INFO pUserInfo; // User for new request + LPHSE_EXEC_URL_ENTITY_INFO pEntity; // Entity body for new request + DWORD dwExecUrlFlags; // Flags + +} HSE_EXEC_URL_INFO, * LPHSE_EXEC_URL_INFO; + +// +// HSE_EXEC_UNICODE_URL_USER_INFO provides a new user content for use with +// HSE_REQ_EXEC_UNICODE_URL +// + +typedef struct _HSE_EXEC_UNICODE_URL_USER_INFO { + + HANDLE hImpersonationToken; + LPWSTR pszCustomUserName; + LPSTR pszCustomAuthType; + +} HSE_EXEC_UNICODE_URL_USER_INFO, * LPHSE_EXEC_UNICODE_URL_USER_INFO; + +// +// HSE_EXEC_UNICODE_URL_INFO provides a description of the request to execute +// on behalf of the ISAPI. +// + +typedef struct _HSE_EXEC_UNICODE_URL_INFO { + + LPWSTR pszUrl; // URL to execute + LPSTR pszMethod; // Method + LPSTR pszChildHeaders; // Request headers for child + LPHSE_EXEC_UNICODE_URL_USER_INFO pUserInfo; // User for new request + LPHSE_EXEC_URL_ENTITY_INFO pEntity; // Entity body for new request + DWORD dwExecUrlFlags; // Flags + +} HSE_EXEC_UNICODE_URL_INFO, * LPHSE_EXEC_UNICODE_URL_INFO; + +// +// HSE_CUSTOM_ERROR_INFO structured used in HSE_REQ_SEND_CUSTOM_ERROR +// + +typedef struct _HSE_CUSTOM_ERROR_INFO { + + CHAR * pszStatus; + USHORT uHttpSubError; + BOOL fAsync; + +} HSE_CUSTOM_ERROR_INFO, * LPHSE_CUSTOM_ERROR_INFO; + + +// +// structures for the HSE_REQ_VECTOR_SEND ServerSupportFunction +// + + +// +// Types of vector-elements currently supported +// +#define HSE_VECTOR_ELEMENT_TYPE_MEMORY_BUFFER 0 +#define HSE_VECTOR_ELEMENT_TYPE_FILE_HANDLE 1 + +// +// element of the vector +// + +typedef struct _HSE_VECTOR_ELEMENT +{ + DWORD ElementType; // Type of element (buffer/file/fragment etc) + + PVOID pvContext; // The context representing the element to be sent + + ULONGLONG cbOffset; // Offset from the start of hFile + + ULONGLONG cbSize; // Number of bytes to send +} HSE_VECTOR_ELEMENT, *LPHSE_VECTOR_ELEMENT; + +// +// The whole vector to be passed to the ServerSupportFunction +// + +typedef struct _HSE_RESPONSE_VECTOR +{ + DWORD dwFlags; // combination of HSE_IO_* flags + + LPSTR pszStatus; // Status line to send like "200 OK" + LPSTR pszHeaders; // Headers to send + + DWORD nElementCount; // Number of HSE_VECTOR_ELEMENT's + LPHSE_VECTOR_ELEMENT lpElementArray; // Pointer to those elements +} HSE_RESPONSE_VECTOR, *LPHSE_RESPONSE_VECTOR; + + +typedef HRESULT + (WINAPI * PFN_HSE_CACHE_INVALIDATION_CALLBACK)( + WCHAR *pszUrl); + + +#if(_WIN32_WINNT >= 0x400) +#include +// +// CERT_CONTEXT_EX is passed as an an argument to +// ServerSupportFunction( HSE_REQ_GET_CERT_INFO_EX ) +// + +typedef struct _CERT_CONTEXT_EX { + CERT_CONTEXT CertContext; + DWORD cbAllocated; + DWORD dwCertificateFlags; +} CERT_CONTEXT_EX; +#endif + + + +// +// HSE_TRACE_INFO structure used to get debug trace info +// from core web server +// + +typedef struct _HSE_TRACE_INFO +{ + + // + // Recommendation from IIS to trace the request + // + + BOOL fTraceRequest; + + // + // The unique trace context ID for the current request + // + + BYTE TraceContextId[16]; + + // + // Reserved for future use + // + + DWORD dwReserved1; + DWORD dwReserved2; + +} HSE_TRACE_INFO, *LPHSE_TRACE_INFO; + + +// +// HSE_REQ_GET_TRACE_INFO_EX SSF uses +// the HTTP_TRACE_CONFIGURATION structure defined in httptrace.h +// + +// +// HSE_REQ_RAISE_TRACE_EVENT SSF uses +// the HTTP_TRACE_EVENT structure defined in httptrace.h +// + +// +// SSF_REQ_GET_WORKER_PROCESS_SETTINGS returns IWpfSettings pointer. +// IWpfSettings is defined in the wpframework.h +// + +// +// SSF_REQ_GET_CONFIG_OBJECT returns INativeConfigurationSystem pointer. +// INativeConfigurationSystem is defined in the nativerd.h +// + +// +// HSE_GET_PROTOCOL_MANAGER_CUSTOM_INTERFACE_CALLBACK returns pointer to +// PFN_HSE_GET_PROTOCOL_MANAGER_CUSTOM_INTERFACE_CALLBACK function type +// + +typedef HRESULT + (WINAPI * PFN_HSE_GET_PROTOCOL_MANAGER_CUSTOM_INTERFACE_CALLBACK)( + LPCWSTR pszProtocolManagerDll, + LPCWSTR pszProtocolManagerDllInitFunction, + DWORD dwCustomInterfaceId, + PVOID* ppCustomInterface ); + + +// +// Flags for determining application type +// + +#define HSE_APP_FLAG_IN_PROCESS 0 +#define HSE_APP_FLAG_ISOLATED_OOP 1 +#define HSE_APP_FLAG_POOLED_OOP 2 + + +/************************************************************ + * Function Prototypes + * o for functions exported from the ISAPI Application DLL + ************************************************************/ + +BOOL WINAPI GetExtensionVersion( _Out_ HSE_VERSION_INFO *pVer ); +DWORD WINAPI HttpExtensionProc( _In_ EXTENSION_CONTROL_BLOCK *pECB ); +BOOL WINAPI TerminateExtension( DWORD dwFlags ); + +// the following type declarations is for use in the server side + +typedef BOOL + (WINAPI * PFN_GETEXTENSIONVERSION)( HSE_VERSION_INFO *pVer ); + +typedef DWORD + (WINAPI * PFN_HTTPEXTENSIONPROC )( EXTENSION_CONTROL_BLOCK * pECB ); + +typedef BOOL (WINAPI * PFN_TERMINATEEXTENSION )( DWORD dwFlags ); + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // end definition _HTTPEXT_H_ + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/HttpFilt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HttpFilt.h new file mode 100644 index 0000000000000000000000000000000000000000..b9d113b284d74c3d9e86f085097f2010f05b1e76 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/HttpFilt.h @@ -0,0 +1,699 @@ +/*++ + +Copyright (c) 1997-1999 Microsoft Corporation + +Module Name: + + httpfilt.h + +Abstract: + + This module contains the Microsoft HTTP filter extension info + +Revision History: + +--*/ + +#ifndef _HTTPFILT_H_ +#define _HTTPFILT_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Define ULONG_PTR if necessary +// + +#ifndef _W64 +#if !defined(__midl) && (defined(_X86_) || defined(_ARM_)) && _MSC_VER >= 1300 +#define _W64 __w64 +#else +#define _W64 +#endif +#endif + +// +// The INT_PTR is guaranteed to be the same size as a pointer. Its +// size with change with pointer size (32/64). It should be used +// anywhere that a pointer is cast to an integer type. UINT_PTR is +// the unsigned variation. +// +// __int3264 is intrinsic to 64b MIDL but not to old MIDL or to C compiler. +// +#if ( 501 < __midl ) + + typedef unsigned __int3264 ULONG_PTR, *PULONG_PTR; + +#else // midl64 +// old midl and C++ compiler + +#if defined(_WIN64) + typedef unsigned __int64 ULONG_PTR, *PULONG_PTR; +#else + typedef _W64 unsigned long ULONG_PTR, *PULONG_PTR; +#endif +#endif // midl64 + + +// +// Current version of the filter spec is 10.0 +// + +#define HTTP_FILTER_REVISION MAKELONG( 0, 10 ) + +#define SF_MAX_USERNAME (256+1) +#define SF_MAX_PASSWORD (256+1) +#define SF_MAX_AUTH_TYPE (32+1) + +#define SF_MAX_FILTER_DESC_LEN (256+1) + + +// +// These values can be used with the pfnSFCallback function supplied in +// the filter context structure +// + +enum SF_REQ_TYPE +{ + // + // Sends a complete HTTP server response header including + // the status, server version, message time and MIME version. + // + // Server extensions should append other information at the end, + // such as Content-type, Content-length etc followed by an extra + // '\r\n'. + // + // pData - Zero terminated string pointing to optional + // status string (i.e., "401 Access Denied") or NULL for + // the default response of "200 OK". + // + // ul1 - Zero terminated string pointing to optional data to be + // appended and set with the header. If NULL, the header will + // be terminated with an empty line. + // + + SF_REQ_SEND_RESPONSE_HEADER, + + // + // If the server denies the HTTP request, add the specified headers + // to the server error response. + // + // This allows an authentication filter to advertise its services + // w/o filtering every request. Generally the headers will be + // WWW-Authenticate headers with custom authentication schemes but + // no restriction is placed on what headers may be specified. + // + // pData - Zero terminated string pointing to one or more header lines + // with terminating '\r\n'. + // + + SF_REQ_ADD_HEADERS_ON_DENIAL, + + // + // Only used by raw data filters that return SF_STATUS_READ_NEXT + // + // ul1 - size in bytes for the next read + // + + SF_REQ_SET_NEXT_READ_SIZE, + + // + // Used to indicate this request is a proxy request + // + // ul1 - The proxy flags to set + // 0x00000001 - This is a HTTP proxy request + // + // + + SF_REQ_SET_PROXY_INFO, + + // + // Returns the connection ID contained in the ConnID field of an + // ISAPI Application's Extension Control Block. This value can be used + // as a key to cooridinate shared data between Filters and Applications. + // + // pData - Pointer to DWORD that receives the connection ID. + // + + SF_REQ_GET_CONNID, + + // + // Used to set a SSPI security context + impersonation token + // derived from a client certificate. + // + // pData - certificate info ( PHTTP_FILTER_CERTIFICATE_INFO ) + // ul1 - CtxtHandle* + // ul2 - impersonation handle + // + + SF_REQ_SET_CERTIFICATE_INFO, + + // + // Used to get an IIS property + // as defined in SF_PROPERTY_IIS + // + // ul1 - Property ID + // + + SF_REQ_GET_PROPERTY, + + // + // Used to normalize an URL + // + // pData - URL to normalize + // + + SF_REQ_NORMALIZE_URL, + + // + // Disable Notifications + // + // ul1 - notifications to disable + // + + SF_REQ_DISABLE_NOTIFICATIONS, + +} ; + + +enum SF_PROPERTY_IIS +{ + SF_PROPERTY_SSL_CTXT, + SF_PROPERTY_INSTANCE_NUM_ID +} ; + + +// +// These values are returned by the filter entry point when a new request is +// received indicating their interest in this particular request +// + +enum SF_STATUS_TYPE +{ + // + // The filter has handled the HTTP request. The server should disconnect + // the session. + // + + SF_STATUS_REQ_FINISHED = 0x8000000, + + // + // Same as SF_STATUS_FINISHED except the server should keep the TCP + // session open if the option was negotiated + // + + SF_STATUS_REQ_FINISHED_KEEP_CONN, + + // + // The next filter in the notification chain should be called + // + + SF_STATUS_REQ_NEXT_NOTIFICATION, + + // + // This filter handled the notification. No other handles should be + // called for this particular notification type + // + + SF_STATUS_REQ_HANDLED_NOTIFICATION, + + // + // An error occurred. The server should use GetLastError() and indicate + // the error to the client + // + + SF_STATUS_REQ_ERROR, + + // + // The filter is an opaque stream filter and we're negotiating the + // session parameters. Only valid for raw read notification. + // + + SF_STATUS_REQ_READ_NEXT +}; + +// +// pvNotification points to this structure for all request notification types +// + +typedef struct _HTTP_FILTER_CONTEXT +{ + DWORD cbSize; + + // + // This is the structure revision level. + // + + DWORD Revision; + + // + // Private context information for the server. + // + + PVOID ServerContext; + DWORD ulReserved; + + // + // TRUE if this request is coming over a secure port + // + + BOOL fIsSecurePort; + + // + // A context that can be used by the filter + // + + PVOID pFilterContext; + + // + // Server callbacks + // + + BOOL (WINAPI * GetServerVariable) ( + struct _HTTP_FILTER_CONTEXT * pfc, + LPSTR lpszVariableName, + LPVOID lpvBuffer, + LPDWORD lpdwSize + ); + + BOOL (WINAPI * AddResponseHeaders) ( + struct _HTTP_FILTER_CONTEXT * pfc, + LPSTR lpszHeaders, + DWORD dwReserved + ); + + BOOL (WINAPI * WriteClient) ( + struct _HTTP_FILTER_CONTEXT * pfc, + LPVOID Buffer, + LPDWORD lpdwBytes, + DWORD dwReserved + ); + + VOID * (WINAPI * AllocMem) ( + struct _HTTP_FILTER_CONTEXT * pfc, + DWORD cbSize, + DWORD dwReserved + ); + + BOOL (WINAPI * ServerSupportFunction) ( + struct _HTTP_FILTER_CONTEXT * pfc, + enum SF_REQ_TYPE sfReq, + PVOID pData, + ULONG_PTR ul1, + ULONG_PTR ul2 + ); +} HTTP_FILTER_CONTEXT, *PHTTP_FILTER_CONTEXT; + +// +// This structure is the notification info for the read and send raw data +// notification types +// + +typedef struct _HTTP_FILTER_RAW_DATA +{ + // + // This is a pointer to the data for the filter to process. + // + + PVOID pvInData; + DWORD cbInData; // Number of valid data bytes + DWORD cbInBuffer; // Total size of buffer + + DWORD dwReserved; + +} HTTP_FILTER_RAW_DATA, *PHTTP_FILTER_RAW_DATA; + +// +// This structure is the notification info for when the server is about to +// process the client headers +// + +typedef struct _HTTP_FILTER_PREPROC_HEADERS +{ + // + // For SF_NOTIFY_PREPROC_HEADERS, retrieves the specified header value. + // Header names should include the trailing ':'. The special values + // 'method', 'url' and 'version' can be used to retrieve the individual + // portions of the request line + // + + BOOL (WINAPI * GetHeader) ( + struct _HTTP_FILTER_CONTEXT * pfc, + LPSTR lpszName, + LPVOID lpvBuffer, + LPDWORD lpdwSize + ); + + // + // Replaces this header value to the specified value. To delete a header, + // specified a value of '\0'. + // + + BOOL (WINAPI * SetHeader) ( + struct _HTTP_FILTER_CONTEXT * pfc, + LPSTR lpszName, + LPSTR lpszValue + ); + + // + // Adds the specified header and value + // + + BOOL (WINAPI * AddHeader) ( + struct _HTTP_FILTER_CONTEXT * pfc, + LPSTR lpszName, + LPSTR lpszValue + ); + + DWORD HttpStatus; // New in 4.0, status for SEND_RESPONSE + DWORD dwReserved; // New in 4.0 + +} HTTP_FILTER_PREPROC_HEADERS, *PHTTP_FILTER_PREPROC_HEADERS; + +typedef HTTP_FILTER_PREPROC_HEADERS HTTP_FILTER_SEND_RESPONSE; +typedef HTTP_FILTER_PREPROC_HEADERS *PHTTP_FILTER_SEND_RESPONSE; + +// +// Authentication information for this request. +// + +typedef struct _HTTP_FILTER_AUTHENT +{ + // + // Pointer to username and password, empty strings for the anonymous user + // + // Client's can overwrite these buffers which are guaranteed to be at + // least SF_MAX_USERNAME and SF_MAX_PASSWORD bytes large. + // + + CHAR * pszUser; + DWORD cbUserBuff; + + CHAR * pszPassword; + DWORD cbPasswordBuff; + +} HTTP_FILTER_AUTHENT, *PHTTP_FILTER_AUTHENT; + + + +// +// Indicates the server is going to use the specific physical mapping for +// the specified URL. Filters can modify the physical path in place. +// + +typedef struct _HTTP_FILTER_URL_MAP +{ + const CHAR * pszURL; + + CHAR * pszPhysicalPath; + DWORD cbPathBuff; + +} HTTP_FILTER_URL_MAP, *PHTTP_FILTER_URL_MAP; + +// +// Indicates the server is going to use the specific physical mapping for +// the specified URL. Filters can modify the physical path in place. +// +// Additional members beyond those from HTTP_FILTER_URL_MAP are +// informational. +// + +typedef struct _HTTP_FILTER_URL_MAP_EX +{ + const CHAR * pszURL; + + CHAR * pszPhysicalPath; + DWORD cbPathBuff; + + // + // The AccessPerm metabase property that applies to this URL + // + DWORD dwFlags; + + // + // Number of matching characters in physical path corresponding + // to the metabase node that applies. + // + DWORD cchMatchingPath; + + // + // Number of matching characters in the URL corresponding + // to the metabase node that applies. + // + DWORD cchMatchingURL; + + // + // The physical path of the dll or exe that to which this + // URL is script mapped. This member will be NULL if no + // script map applies. + // + const CHAR * pszScriptMapEntry; + +} HTTP_FILTER_URL_MAP_EX, *PHTTP_FILTER_URL_MAP_EX; + + +// +// Bitfield indicating the requested resource has been denied by the server due +// to a logon failure, an ACL on a resource, an ISAPI Filter or an +// ISAPI Application/CGI Application. +// +// SF_DENIED_BY_CONFIG can appear with SF_DENIED_LOGON if the server +// configuration did not allow the user to logon. +// + +#define SF_DENIED_LOGON 0x00000001 +#define SF_DENIED_RESOURCE 0x00000002 +#define SF_DENIED_FILTER 0x00000004 +#define SF_DENIED_APPLICATION 0x00000008 + +#define SF_DENIED_BY_CONFIG 0x00010000 + +typedef struct _HTTP_FILTER_ACCESS_DENIED +{ + const CHAR * pszURL; // Requesting URL + const CHAR * pszPhysicalPath; // Physical path of resource + DWORD dwReason; // Bitfield of SF_DENIED flags + +} HTTP_FILTER_ACCESS_DENIED, *PHTTP_FILTER_ACCESS_DENIED; + + +// +// The log information about to be written to the server log file. The +// string pointers can be replaced but the memory must remain valid until +// the next notification +// + +typedef struct _HTTP_FILTER_LOG +{ + const CHAR * pszClientHostName; + const CHAR * pszClientUserName; + const CHAR * pszServerName; + const CHAR * pszOperation; + const CHAR * pszTarget; + const CHAR * pszParameters; + + DWORD dwHttpStatus; + DWORD dwWin32Status; + + DWORD dwBytesSent; // IIS 4.0 and later + DWORD dwBytesRecvd; // IIS 4.0 and later + DWORD msTimeForProcessing; // IIS 4.0 and later + +} HTTP_FILTER_LOG, *PHTTP_FILTER_LOG; + +// +// Called once the client request has been authenticated. +// + +typedef struct _HTTP_FILTER_AUTH_COMPLETE_INFO +{ + // + // For SF_NOTIFY_AUTH_COMPLETE, retrieves the specified header value. + // Header names should include the trailing ':'. The special values + // 'method', 'url' and 'version' can be used to retrieve the individual + // portions of the request line + // + + BOOL (WINAPI * GetHeader) ( + struct _HTTP_FILTER_CONTEXT * pfc, + LPSTR lpszName, + LPVOID lpvBuffer, + LPDWORD lpdwSize + ); + + // + // Replaces this header value to the specified value. To delete a header, + // specified a value of '\0'. + // + + BOOL (WINAPI * SetHeader) ( + struct _HTTP_FILTER_CONTEXT * pfc, + LPSTR lpszName, + LPSTR lpszValue + ); + + // + // Adds the specified header and value + // + + BOOL (WINAPI * AddHeader) ( + struct _HTTP_FILTER_CONTEXT * pfc, + LPSTR lpszName, + LPSTR lpszValue + ); + + // + // Get the authenticated user impersonation token + // + + BOOL (WINAPI * GetUserToken) ( + struct _HTTP_FILTER_CONTEXT * pfc, + HANDLE * phToken + ); + + // + // Status code to use when sending response + // + + DWORD HttpStatus; + + // + // Determines whether to reset auth if URL changed + // + + BOOL fResetAuth; + + // + // Reserved + // + + DWORD dwReserved; + +} HTTP_FILTER_AUTH_COMPLETE_INFO, *PHTTP_FILTER_AUTH_COMPLETE_INFO; + +// +// Notification Flags +// +// SF_NOTIFY_SECURE_PORT +// SF_NOTIFY_NONSECURE_PORT +// +// Indicates whether the application wants to be notified for transactions +// that are happenning on the server port(s) that support data encryption +// (such as PCT and SSL), on only the non-secure port(s) or both. +// +// SF_NOTIFY_READ_RAW_DATA +// +// Applications are notified after the server reads a block of memory +// from the client but before the server does any processing on the +// block. The data block may contain HTTP headers and entity data. +// +// +// + +#define SF_NOTIFY_SECURE_PORT 0x00000001 +#define SF_NOTIFY_NONSECURE_PORT 0x00000002 + +#define SF_NOTIFY_READ_RAW_DATA 0x00008000 +#define SF_NOTIFY_PREPROC_HEADERS 0x00004000 +#define SF_NOTIFY_AUTHENTICATION 0x00002000 +#define SF_NOTIFY_URL_MAP 0x00001000 +#define SF_NOTIFY_ACCESS_DENIED 0x00000800 +#define SF_NOTIFY_SEND_RESPONSE 0x00000040 +#define SF_NOTIFY_SEND_RAW_DATA 0x00000400 +#define SF_NOTIFY_LOG 0x00000200 +#define SF_NOTIFY_END_OF_REQUEST 0x00000080 +#define SF_NOTIFY_END_OF_NET_SESSION 0x00000100 +#define SF_NOTIFY_AUTH_COMPLETE 0x04000000 + +// +// Filter ordering flags +// +// Filters will tend to be notified by their specified +// ordering. For ties, notification order is determined by load order. +// +// SF_NOTIFY_ORDER_HIGH - Authentication or data transformation filters +// SF_NOTIFY_ORDER_MEDIUM +// SF_NOTIFY_ORDER_LOW - Logging filters that want the results of any other +// filters might specify this order. +// + +#define SF_NOTIFY_ORDER_HIGH 0x00080000 +#define SF_NOTIFY_ORDER_MEDIUM 0x00040000 +#define SF_NOTIFY_ORDER_LOW 0x00020000 +#define SF_NOTIFY_ORDER_DEFAULT SF_NOTIFY_ORDER_LOW + +#define SF_NOTIFY_ORDER_MASK (SF_NOTIFY_ORDER_HIGH | \ + SF_NOTIFY_ORDER_MEDIUM | \ + SF_NOTIFY_ORDER_LOW) + +// +// Filter version information, passed to GetFilterVersion +// + +typedef struct _HTTP_FILTER_VERSION +{ + // + // Version of the spec the server is using + // + + DWORD dwServerFilterVersion; + + // + // Fields specified by the client + // + + DWORD dwFilterVersion; + CHAR lpszFilterDesc[SF_MAX_FILTER_DESC_LEN]; + DWORD dwFlags; + + +} HTTP_FILTER_VERSION, *PHTTP_FILTER_VERSION; + + + +// +// A filter DLL's entry point looks like this. The return code should be +// an SF_STATUS_TYPE +// +// NotificationType - Type of notification +// pvNotification - Pointer to notification specific data +// + +DWORD +WINAPI +HttpFilterProc( + HTTP_FILTER_CONTEXT * pfc, + DWORD NotificationType, + VOID * pvNotification + ); + +BOOL +WINAPI +GetFilterVersion( + HTTP_FILTER_VERSION * pVer + ); + +BOOL +WINAPI +TerminateFilter( + DWORD dwFlags + ); + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //_HTTPFILT_H_ + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IAccess.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IAccess.Idl new file mode 100644 index 0000000000000000000000000000000000000000..2293cb02b5bf64582fc57834dbfcd2e3af8f09e0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IAccess.Idl @@ -0,0 +1,142 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: iaccess.idl +// +// Contents: definitions of access and audit control interfaces +// +// History: 2-9-95 DaveMont Created +// +//---------------------------------------------------------------------------- + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("#if ( _MSC_VER >= 1020 )") +cpp_quote("#pragma once") +cpp_quote("#endif") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +import "unknwn.idl"; +import "accctrl.h"; + +/**************************************************************************** + * Storage access control interface + ****************************************************************************/ + +// All nested structures are allocated in the same block of memory. +// Thus these types are freed with a single call to CoTaskMemFree. +typedef PACTRL_ACCESSW PACTRL_ACCESSW_ALLOCATE_ALL_NODES; +typedef PACTRL_AUDITW PACTRL_AUDITW_ALLOCATE_ALL_NODES; + +interface IAccessControl; +[ + object, + uuid(EEDD23E0-8410-11CE-A1C3-08002B2B8D8F), + pointer_default(unique) +] +interface IAccessControl : IUnknown +{ + + HRESULT GrantAccessRights + ( + [in] PACTRL_ACCESSW pAccessList + ); + + HRESULT SetAccessRights + ( + [in] PACTRL_ACCESSW pAccessList + ); + + HRESULT SetOwner + ( + [in] PTRUSTEEW pOwner, + [in] PTRUSTEEW pGroup + ); + + HRESULT RevokeAccessRights + ( + [in] LPWSTR lpProperty, + [in] ULONG cTrustees, + [in, size_is(cTrustees)] TRUSTEEW prgTrustees[] + ); + + HRESULT GetAllAccessRights + ( + [in] LPWSTR lpProperty, + [out] PACTRL_ACCESSW_ALLOCATE_ALL_NODES *ppAccessList, + [out] PTRUSTEEW *ppOwner, + [out] PTRUSTEEW *ppGroup + ); + + + HRESULT IsAccessAllowed + ( + [in] PTRUSTEEW pTrustee, + [in] LPWSTR lpProperty, + [in] ACCESS_RIGHTS AccessRights, + [out] BOOL *pfAccessAllowed + ); + +} + +/**************************************************************************** + * Storage audit control interface + ****************************************************************************/ + +interface IAuditControl; +[ + object, + uuid(1da6292f-bc66-11ce-aae3-00aa004c2737), + pointer_default(unique) +] + +interface IAuditControl : IUnknown +{ + HRESULT GrantAuditRights + ( + [in] PACTRL_AUDITW pAuditList + ); + + HRESULT SetAuditRights + ( + [in] PACTRL_AUDITW pAuditList + ); + + HRESULT RevokeAuditRights + ( + [in] LPWSTR lpProperty, + [in] ULONG cTrustees, + [in, size_is(cTrustees)] TRUSTEEW prgTrustees [] + ); + + HRESULT GetAllAuditRights + ( + [in] LPWSTR lpProperty, + [out] PACTRL_AUDITW *ppAuditList + ); + + // + // Determines if the given trustee with the state audit rights will generate an audit event if the object is accessed. + // + HRESULT IsAccessAudited + ( + [in] PTRUSTEEW pTrustee, + [in] ACCESS_RIGHTS AuditRights, + [out] BOOL *pfAccessAudited + ); +} + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IAccess.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IAccess.h new file mode 100644 index 0000000000000000000000000000000000000000..2da7ed435d3fbbbde53ed0960d7f5cdcae347743 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IAccess.h @@ -0,0 +1,422 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __iaccess_h__ +#define __iaccess_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAccessControl_FWD_DEFINED__ +#define __IAccessControl_FWD_DEFINED__ +typedef interface IAccessControl IAccessControl; + +#endif /* __IAccessControl_FWD_DEFINED__ */ + + +#ifndef __IAuditControl_FWD_DEFINED__ +#define __IAuditControl_FWD_DEFINED__ +typedef interface IAuditControl IAuditControl; + +#endif /* __IAuditControl_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "accctrl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_iaccess_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#if ( _MSC_VER >= 1020 ) +#pragma once +#endif +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [allocate] */ PACTRL_ACCESSW PACTRL_ACCESSW_ALLOCATE_ALL_NODES; + +typedef /* [allocate] */ PACTRL_AUDITW PACTRL_AUDITW_ALLOCATE_ALL_NODES; + + + + +extern RPC_IF_HANDLE __MIDL_itf_iaccess_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iaccess_0000_0000_v0_0_s_ifspec; + +#ifndef __IAccessControl_INTERFACE_DEFINED__ +#define __IAccessControl_INTERFACE_DEFINED__ + +/* interface IAccessControl */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAccessControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EEDD23E0-8410-11CE-A1C3-08002B2B8D8F") + IAccessControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GrantAccessRights( + /* [in] */ __RPC__in PACTRL_ACCESSW pAccessList) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAccessRights( + /* [in] */ __RPC__in PACTRL_ACCESSW pAccessList) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetOwner( + /* [in] */ __RPC__in PTRUSTEEW pOwner, + /* [in] */ __RPC__in PTRUSTEEW pGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE RevokeAccessRights( + /* [in] */ __RPC__in LPWSTR lpProperty, + /* [in] */ ULONG cTrustees, + /* [size_is][in] */ __RPC__in_ecount_full(cTrustees) TRUSTEEW prgTrustees[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAllAccessRights( + /* [in] */ __RPC__in LPWSTR lpProperty, + /* [out] */ __RPC__deref_out_opt PACTRL_ACCESSW_ALLOCATE_ALL_NODES *ppAccessList, + /* [out] */ __RPC__deref_out_opt PTRUSTEEW *ppOwner, + /* [out] */ __RPC__deref_out_opt PTRUSTEEW *ppGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsAccessAllowed( + /* [in] */ __RPC__in PTRUSTEEW pTrustee, + /* [in] */ __RPC__in LPWSTR lpProperty, + /* [in] */ ACCESS_RIGHTS AccessRights, + /* [out] */ __RPC__out BOOL *pfAccessAllowed) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAccessControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAccessControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAccessControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAccessControl * This); + + DECLSPEC_XFGVIRT(IAccessControl, GrantAccessRights) + HRESULT ( STDMETHODCALLTYPE *GrantAccessRights )( + __RPC__in IAccessControl * This, + /* [in] */ __RPC__in PACTRL_ACCESSW pAccessList); + + DECLSPEC_XFGVIRT(IAccessControl, SetAccessRights) + HRESULT ( STDMETHODCALLTYPE *SetAccessRights )( + __RPC__in IAccessControl * This, + /* [in] */ __RPC__in PACTRL_ACCESSW pAccessList); + + DECLSPEC_XFGVIRT(IAccessControl, SetOwner) + HRESULT ( STDMETHODCALLTYPE *SetOwner )( + __RPC__in IAccessControl * This, + /* [in] */ __RPC__in PTRUSTEEW pOwner, + /* [in] */ __RPC__in PTRUSTEEW pGroup); + + DECLSPEC_XFGVIRT(IAccessControl, RevokeAccessRights) + HRESULT ( STDMETHODCALLTYPE *RevokeAccessRights )( + __RPC__in IAccessControl * This, + /* [in] */ __RPC__in LPWSTR lpProperty, + /* [in] */ ULONG cTrustees, + /* [size_is][in] */ __RPC__in_ecount_full(cTrustees) TRUSTEEW prgTrustees[ ]); + + DECLSPEC_XFGVIRT(IAccessControl, GetAllAccessRights) + HRESULT ( STDMETHODCALLTYPE *GetAllAccessRights )( + __RPC__in IAccessControl * This, + /* [in] */ __RPC__in LPWSTR lpProperty, + /* [out] */ __RPC__deref_out_opt PACTRL_ACCESSW_ALLOCATE_ALL_NODES *ppAccessList, + /* [out] */ __RPC__deref_out_opt PTRUSTEEW *ppOwner, + /* [out] */ __RPC__deref_out_opt PTRUSTEEW *ppGroup); + + DECLSPEC_XFGVIRT(IAccessControl, IsAccessAllowed) + HRESULT ( STDMETHODCALLTYPE *IsAccessAllowed )( + __RPC__in IAccessControl * This, + /* [in] */ __RPC__in PTRUSTEEW pTrustee, + /* [in] */ __RPC__in LPWSTR lpProperty, + /* [in] */ ACCESS_RIGHTS AccessRights, + /* [out] */ __RPC__out BOOL *pfAccessAllowed); + + END_INTERFACE + } IAccessControlVtbl; + + interface IAccessControl + { + CONST_VTBL struct IAccessControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAccessControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAccessControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAccessControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAccessControl_GrantAccessRights(This,pAccessList) \ + ( (This)->lpVtbl -> GrantAccessRights(This,pAccessList) ) + +#define IAccessControl_SetAccessRights(This,pAccessList) \ + ( (This)->lpVtbl -> SetAccessRights(This,pAccessList) ) + +#define IAccessControl_SetOwner(This,pOwner,pGroup) \ + ( (This)->lpVtbl -> SetOwner(This,pOwner,pGroup) ) + +#define IAccessControl_RevokeAccessRights(This,lpProperty,cTrustees,prgTrustees) \ + ( (This)->lpVtbl -> RevokeAccessRights(This,lpProperty,cTrustees,prgTrustees) ) + +#define IAccessControl_GetAllAccessRights(This,lpProperty,ppAccessList,ppOwner,ppGroup) \ + ( (This)->lpVtbl -> GetAllAccessRights(This,lpProperty,ppAccessList,ppOwner,ppGroup) ) + +#define IAccessControl_IsAccessAllowed(This,pTrustee,lpProperty,AccessRights,pfAccessAllowed) \ + ( (This)->lpVtbl -> IsAccessAllowed(This,pTrustee,lpProperty,AccessRights,pfAccessAllowed) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAccessControl_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_iaccess_0000_0001 */ +/* [local] */ + + + + +extern RPC_IF_HANDLE __MIDL_itf_iaccess_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iaccess_0000_0001_v0_0_s_ifspec; + +#ifndef __IAuditControl_INTERFACE_DEFINED__ +#define __IAuditControl_INTERFACE_DEFINED__ + +/* interface IAuditControl */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAuditControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1da6292f-bc66-11ce-aae3-00aa004c2737") + IAuditControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GrantAuditRights( + /* [in] */ __RPC__in PACTRL_AUDITW pAuditList) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAuditRights( + /* [in] */ __RPC__in PACTRL_AUDITW pAuditList) = 0; + + virtual HRESULT STDMETHODCALLTYPE RevokeAuditRights( + /* [in] */ __RPC__in LPWSTR lpProperty, + /* [in] */ ULONG cTrustees, + /* [size_is][in] */ __RPC__in_ecount_full(cTrustees) TRUSTEEW prgTrustees[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAllAuditRights( + /* [in] */ __RPC__in LPWSTR lpProperty, + /* [out] */ __RPC__deref_out_opt PACTRL_AUDITW *ppAuditList) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsAccessAudited( + /* [in] */ __RPC__in PTRUSTEEW pTrustee, + /* [in] */ ACCESS_RIGHTS AuditRights, + /* [out] */ __RPC__out BOOL *pfAccessAudited) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAuditControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAuditControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAuditControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAuditControl * This); + + DECLSPEC_XFGVIRT(IAuditControl, GrantAuditRights) + HRESULT ( STDMETHODCALLTYPE *GrantAuditRights )( + __RPC__in IAuditControl * This, + /* [in] */ __RPC__in PACTRL_AUDITW pAuditList); + + DECLSPEC_XFGVIRT(IAuditControl, SetAuditRights) + HRESULT ( STDMETHODCALLTYPE *SetAuditRights )( + __RPC__in IAuditControl * This, + /* [in] */ __RPC__in PACTRL_AUDITW pAuditList); + + DECLSPEC_XFGVIRT(IAuditControl, RevokeAuditRights) + HRESULT ( STDMETHODCALLTYPE *RevokeAuditRights )( + __RPC__in IAuditControl * This, + /* [in] */ __RPC__in LPWSTR lpProperty, + /* [in] */ ULONG cTrustees, + /* [size_is][in] */ __RPC__in_ecount_full(cTrustees) TRUSTEEW prgTrustees[ ]); + + DECLSPEC_XFGVIRT(IAuditControl, GetAllAuditRights) + HRESULT ( STDMETHODCALLTYPE *GetAllAuditRights )( + __RPC__in IAuditControl * This, + /* [in] */ __RPC__in LPWSTR lpProperty, + /* [out] */ __RPC__deref_out_opt PACTRL_AUDITW *ppAuditList); + + DECLSPEC_XFGVIRT(IAuditControl, IsAccessAudited) + HRESULT ( STDMETHODCALLTYPE *IsAccessAudited )( + __RPC__in IAuditControl * This, + /* [in] */ __RPC__in PTRUSTEEW pTrustee, + /* [in] */ ACCESS_RIGHTS AuditRights, + /* [out] */ __RPC__out BOOL *pfAccessAudited); + + END_INTERFACE + } IAuditControlVtbl; + + interface IAuditControl + { + CONST_VTBL struct IAuditControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAuditControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAuditControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAuditControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAuditControl_GrantAuditRights(This,pAuditList) \ + ( (This)->lpVtbl -> GrantAuditRights(This,pAuditList) ) + +#define IAuditControl_SetAuditRights(This,pAuditList) \ + ( (This)->lpVtbl -> SetAuditRights(This,pAuditList) ) + +#define IAuditControl_RevokeAuditRights(This,lpProperty,cTrustees,prgTrustees) \ + ( (This)->lpVtbl -> RevokeAuditRights(This,lpProperty,cTrustees,prgTrustees) ) + +#define IAuditControl_GetAllAuditRights(This,lpProperty,ppAuditList) \ + ( (This)->lpVtbl -> GetAllAuditRights(This,lpProperty,ppAuditList) ) + +#define IAuditControl_IsAccessAudited(This,pTrustee,AuditRights,pfAccessAudited) \ + ( (This)->lpVtbl -> IsAccessAudited(This,pTrustee,AuditRights,pfAccessAudited) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAuditControl_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_iaccess_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_iaccess_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iaccess_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IChannelCredentials.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IChannelCredentials.h new file mode 100644 index 0000000000000000000000000000000000000000..37a1e57237ef9ab0e2a2c7d1d7f061f4faf6e2d7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IChannelCredentials.h @@ -0,0 +1,327 @@ +//----------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +//----------------------------------------------------------------------------- +//=--------------------------------------------------------------------------= +// IChannelCredentials.h +//=--------------------------------------------------------------------------= +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + +/* File created by MIDL compiler version 6.00.0366 */ +//@@MIDL_FILE_HEADING( ) + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif // __RPCNDR_H_VERSION__ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ichannelcredentials_h__ +#define __ichannelcredentials_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +/* Forward Declarations */ + +#ifndef __IChannelCredentials_FWD_DEFINED__ +#define __IChannelCredentials_FWD_DEFINED__ +typedef interface IChannelCredentials IChannelCredentials; +#endif /* __IChannelCredentials_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + +void * __RPC_USER MIDL_user_allocate(size_t); +void __RPC_USER MIDL_user_free( void * ); + + +#ifndef __IChannelCredentials_INTERFACE_DEFINED__ +#define __IChannelCredentials_INTERFACE_DEFINED__ + +/* interface IChannelCredentials */ +/* [unique][helpstring][uuid][local][object] */ + + +EXTERN_C const IID IID_IChannelCredentials; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("181b448c-c17c-4b17-ac6d-06699b93198f") + IChannelCredentials : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE SetWindowsCredential( + /* [in] */ BSTR domain, + /* [in] */ BSTR username, + /* [in] */ BSTR password, + /* [in] */ int impersonationLevel, + /* [in] */ BOOL allowNtlm) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetUserNameCredential( + /* [in] */ BSTR username, + /* [in] */ BSTR password) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetClientCertificateFromStore( + /* [in] */ BSTR storeLocation, + /* [in] */ BSTR storeName, + /* [in] */ BSTR findYype, + /* [in] */ VARIANT findValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetClientCertificateFromStoreByName( + /* [in] */ BSTR subjectName, + /* [in] */ BSTR storeLocation, + /* [in] */ BSTR storeName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetClientCertificateFromFile( + /* [in] */ BSTR filename, + /* [in] */ BSTR password, + /* [in] */ BSTR keystorageFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDefaultServiceCertificateFromStore( + /* [in] */ BSTR storeLocation, + /* [in] */ BSTR storeName, + /* [in] */ BSTR findType, + /* [in] */ VARIANT findValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDefaultServiceCertificateFromStoreByName( + /* [in] */ BSTR subjectName, + /* [in] */ BSTR storeLocation, + /* [in] */ BSTR storeName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDefaultServiceCertificateFromFile( + /* [in] */ BSTR filename, + /* [in] */ BSTR password, + /* [in] */ BSTR keystorageFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetServiceCertificateAuthentication( + /* [in] */ BSTR storeLocation, + /* [in] */ BSTR revocationMode, + /* [in] */ BSTR certificateValidationMode) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetIssuedToken( + /* [in] */ BSTR localIssuerAddres, + /* [in] */ BSTR localIssuerBindingType, + /* [in] */ BSTR localIssuerBinding) = 0; + + }; + +#else /* C style interface */ + + typedef struct IChannelCredentialsVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IChannelCredentials * This, + /* [in] */ REFIID riid, + /* [iid_is][out] */ void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + IChannelCredentials * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + IChannelCredentials * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IChannelCredentials * This, + /* [out] */ UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IChannelCredentials * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IChannelCredentials * This, + /* [in] */ REFIID riid, + /* [size_is][in] */ LPOLESTR *rgszNames, + /* [in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IChannelCredentials * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + HRESULT ( STDMETHODCALLTYPE *SetWindowsCredential )( + IChannelCredentials * This, + /* [in] */ BSTR domain, + /* [in] */ BSTR username, + /* [in] */ BSTR password, + /* [in] */ int impersonationLevel, + /* [in] */ BOOL allowNtlm); + + HRESULT ( STDMETHODCALLTYPE *SetUserNameCredential )( + IChannelCredentials * This, + /* [in] */ BSTR username, + /* [in] */ BSTR password); + + HRESULT ( STDMETHODCALLTYPE *SetClientCertificateFromStore )( + IChannelCredentials * This, + /* [in] */ BSTR storeLocation, + /* [in] */ BSTR storeName, + /* [in] */ BSTR findYype, + /* [in] */ VARIANT findValue); + + HRESULT ( STDMETHODCALLTYPE *SetClientCertificateFromStoreByName )( + IChannelCredentials * This, + /* [in] */ BSTR subjectName, + /* [in] */ BSTR storeLocation, + /* [in] */ BSTR storeName); + + HRESULT ( STDMETHODCALLTYPE *SetClientCertificateFromFile )( + IChannelCredentials * This, + /* [in] */ BSTR filename, + /* [in] */ BSTR password, + /* [in] */ BSTR keystorageFlags); + + HRESULT ( STDMETHODCALLTYPE *SetDefaultServiceCertificateFromStore )( + IChannelCredentials * This, + /* [in] */ BSTR storeLocation, + /* [in] */ BSTR storeName, + /* [in] */ BSTR findType, + /* [in] */ VARIANT findValue); + + HRESULT ( STDMETHODCALLTYPE *SetDefaultServiceCertificateFromStoreByName )( + IChannelCredentials * This, + /* [in] */ BSTR subjectName, + /* [in] */ BSTR storeLocation, + /* [in] */ BSTR storeName); + + HRESULT ( STDMETHODCALLTYPE *SetDefaultServiceCertificateFromFile )( + IChannelCredentials * This, + /* [in] */ BSTR filename, + /* [in] */ BSTR password, + /* [in] */ BSTR keystorageFlags); + + HRESULT ( STDMETHODCALLTYPE *SetServiceCertificateAuthentication )( + IChannelCredentials * This, + /* [in] */ BSTR storeLocation, + /* [in] */ BSTR revocationMode, + /* [in] */ BSTR certificateValidationMode); + + HRESULT ( STDMETHODCALLTYPE *SetIssuedToken )( + IChannelCredentials * This, + /* [in] */ BSTR localIssuerAddres, + /* [in] */ BSTR localIssuerBindingType, + /* [in] */ BSTR localIssuerBinding); + + END_INTERFACE + } IChannelCredentialsVtbl; + + interface IChannelCredentials + { + CONST_VTBL struct IChannelCredentialsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IChannelCredentials_QueryInterface(This,riid,ppvObject) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) + +#define IChannelCredentials_AddRef(This) \ + (This)->lpVtbl -> AddRef(This) + +#define IChannelCredentials_Release(This) \ + (This)->lpVtbl -> Release(This) + + +#define IChannelCredentials_GetTypeInfoCount(This,pctinfo) \ + (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) + +#define IChannelCredentials_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) + +#define IChannelCredentials_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) + +#define IChannelCredentials_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) + + +#define IChannelCredentials_SetWindowsCredential(This,domain,username,password,impersonationLevel,allowNtlm) \ + (This)->lpVtbl -> SetWindowsCredential(This,domain,username,password,impersonationLevel,allowNtlm) + +#define IChannelCredentials_SetUserNameCredential(This,username,password) \ + (This)->lpVtbl -> SetUserNameCredential(This,username,password) + +#define IChannelCredentials_SetClientCertificateFromStore(This,storeLocation,storeName,findYype,findValue) \ + (This)->lpVtbl -> SetClientCertificateFromStore(This,storeLocation,storeName,findYype,findValue) + +#define IChannelCredentials_SetClientCertificateFromStoreByName(This,subjectName,storeLocation,storeName) \ + (This)->lpVtbl -> SetClientCertificateFromStoreByName(This,subjectName,storeLocation,storeName) + +#define IChannelCredentials_SetClientCertificateFromFile(This,filename,password,keystorageFlags) \ + (This)->lpVtbl -> SetClientCertificateFromFile(This,filename,password,keystorageFlags) + +#define IChannelCredentials_SetDefaultServiceCertificateFromStore(This,storeLocation,storeName,findType,findValue) \ + (This)->lpVtbl -> SetDefaultServiceCertificateFromStore(This,storeLocation,storeName,findType,findValue) + +#define IChannelCredentials_SetDefaultServiceCertificateFromStoreByName(This,subjectName,storeLocation,storeName) \ + (This)->lpVtbl -> SetDefaultServiceCertificateFromStoreByName(This,subjectName,storeLocation,storeName) + +#define IChannelCredentials_SetDefaultServiceCertificateFromFile(This,filename,password,keystorageFlags) \ + (This)->lpVtbl -> SetDefaultServiceCertificateFromFile(This,filename,password,keystorageFlags) + +#define IChannelCredentials_SetServiceCertificateAuthentication(This,storeLocation,revocationMode,certificateValidationMode) \ + (This)->lpVtbl -> SetServiceCertificateAuthentication(This,storeLocation,revocationMode,certificateValidationMode) + +#define IChannelCredentials_SetIssuedToken(This,localIssuerAddres,localIssuerBindingType,localIssuerBinding) \ + (This)->lpVtbl -> SetIssuedToken(This,localIssuerAddres,localIssuerBindingType,localIssuerBinding) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __IChannelCredentials_INTERFACE_DEFINED__ */ + + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContact.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContact.h new file mode 100644 index 0000000000000000000000000000000000000000..ff751b38b521fe5619f4ee3dc52fc4f4842800dc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContact.h @@ -0,0 +1,993 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __icontact_h__ +#define __icontact_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IContactManager_FWD_DEFINED__ +#define __IContactManager_FWD_DEFINED__ +typedef interface IContactManager IContactManager; + +#endif /* __IContactManager_FWD_DEFINED__ */ + + +#ifndef __IContactCollection_FWD_DEFINED__ +#define __IContactCollection_FWD_DEFINED__ +typedef interface IContactCollection IContactCollection; + +#endif /* __IContactCollection_FWD_DEFINED__ */ + + +#ifndef __IContactProperties_FWD_DEFINED__ +#define __IContactProperties_FWD_DEFINED__ +typedef interface IContactProperties IContactProperties; + +#endif /* __IContactProperties_FWD_DEFINED__ */ + + +#ifndef __IContact_FWD_DEFINED__ +#define __IContact_FWD_DEFINED__ +typedef interface IContact IContact; + +#endif /* __IContact_FWD_DEFINED__ */ + + +#ifndef __IContactPropertyCollection_FWD_DEFINED__ +#define __IContactPropertyCollection_FWD_DEFINED__ +typedef interface IContactPropertyCollection IContactPropertyCollection; + +#endif /* __IContactPropertyCollection_FWD_DEFINED__ */ + + +#ifndef __Contact_FWD_DEFINED__ +#define __Contact_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Contact Contact; +#else +typedef struct Contact Contact; +#endif /* __cplusplus */ + +#endif /* __Contact_FWD_DEFINED__ */ + + +#ifndef __ContactManager_FWD_DEFINED__ +#define __ContactManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ContactManager ContactManager; +#else +typedef struct ContactManager ContactManager; +#endif /* __cplusplus */ + +#endif /* __ContactManager_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_icontact_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_icontact_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_icontact_0000_0000_v0_0_s_ifspec; + +#ifndef __IContactManager_INTERFACE_DEFINED__ +#define __IContactManager_INTERFACE_DEFINED__ + +/* interface IContactManager */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IContactManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ad553d98-deb1-474a-8e17-fc0c2075b738") + IContactManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszAppName, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszAppVersion) = 0; + + virtual HRESULT STDMETHODCALLTYPE Load( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszContactID, + /* [out] */ __RPC__deref_out_opt IContact **ppContact) = 0; + + virtual HRESULT STDMETHODCALLTYPE MergeContactIDs( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszNewContactID, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszOldContactID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMeContact( + /* [out] */ __RPC__deref_out_opt IContact **ppMeContact) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMeContact( + /* [in] */ __RPC__in_opt IContact *pMeContact) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContactCollection( + /* [out] */ __RPC__deref_out_opt IContactCollection **ppContactCollection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactManager * This); + + DECLSPEC_XFGVIRT(IContactManager, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IContactManager * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszAppName, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszAppVersion); + + DECLSPEC_XFGVIRT(IContactManager, Load) + HRESULT ( STDMETHODCALLTYPE *Load )( + __RPC__in IContactManager * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszContactID, + /* [out] */ __RPC__deref_out_opt IContact **ppContact); + + DECLSPEC_XFGVIRT(IContactManager, MergeContactIDs) + HRESULT ( STDMETHODCALLTYPE *MergeContactIDs )( + __RPC__in IContactManager * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszNewContactID, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszOldContactID); + + DECLSPEC_XFGVIRT(IContactManager, GetMeContact) + HRESULT ( STDMETHODCALLTYPE *GetMeContact )( + __RPC__in IContactManager * This, + /* [out] */ __RPC__deref_out_opt IContact **ppMeContact); + + DECLSPEC_XFGVIRT(IContactManager, SetMeContact) + HRESULT ( STDMETHODCALLTYPE *SetMeContact )( + __RPC__in IContactManager * This, + /* [in] */ __RPC__in_opt IContact *pMeContact); + + DECLSPEC_XFGVIRT(IContactManager, GetContactCollection) + HRESULT ( STDMETHODCALLTYPE *GetContactCollection )( + __RPC__in IContactManager * This, + /* [out] */ __RPC__deref_out_opt IContactCollection **ppContactCollection); + + END_INTERFACE + } IContactManagerVtbl; + + interface IContactManager + { + CONST_VTBL struct IContactManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactManager_Initialize(This,pszAppName,pszAppVersion) \ + ( (This)->lpVtbl -> Initialize(This,pszAppName,pszAppVersion) ) + +#define IContactManager_Load(This,pszContactID,ppContact) \ + ( (This)->lpVtbl -> Load(This,pszContactID,ppContact) ) + +#define IContactManager_MergeContactIDs(This,pszNewContactID,pszOldContactID) \ + ( (This)->lpVtbl -> MergeContactIDs(This,pszNewContactID,pszOldContactID) ) + +#define IContactManager_GetMeContact(This,ppMeContact) \ + ( (This)->lpVtbl -> GetMeContact(This,ppMeContact) ) + +#define IContactManager_SetMeContact(This,pMeContact) \ + ( (This)->lpVtbl -> SetMeContact(This,pMeContact) ) + +#define IContactManager_GetContactCollection(This,ppContactCollection) \ + ( (This)->lpVtbl -> GetContactCollection(This,ppContactCollection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactManager_INTERFACE_DEFINED__ */ + + +#ifndef __IContactCollection_INTERFACE_DEFINED__ +#define __IContactCollection_INTERFACE_DEFINED__ + +/* interface IContactCollection */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IContactCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b6afa338-d779-11d9-8bde-f66bad1e3f3a") + IContactCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrent( + /* [out] */ __RPC__deref_out_opt IContact **ppContact) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactCollection * This); + + DECLSPEC_XFGVIRT(IContactCollection, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IContactCollection * This); + + DECLSPEC_XFGVIRT(IContactCollection, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IContactCollection * This); + + DECLSPEC_XFGVIRT(IContactCollection, GetCurrent) + HRESULT ( STDMETHODCALLTYPE *GetCurrent )( + __RPC__in IContactCollection * This, + /* [out] */ __RPC__deref_out_opt IContact **ppContact); + + END_INTERFACE + } IContactCollectionVtbl; + + interface IContactCollection + { + CONST_VTBL struct IContactCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactCollection_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IContactCollection_Next(This) \ + ( (This)->lpVtbl -> Next(This) ) + +#define IContactCollection_GetCurrent(This,ppContact) \ + ( (This)->lpVtbl -> GetCurrent(This,ppContact) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IContactProperties_INTERFACE_DEFINED__ +#define __IContactProperties_INTERFACE_DEFINED__ + +/* interface IContactProperties */ +/* [unique][helpstring][uuid][object] */ + +#define CGD_DEFAULT 0x00000000 + +EXTERN_C const IID IID_IContactProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("70dd27dd-5cbd-46e8-bef0-23b6b346288f") + IContactProperties : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetString( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [size_is][unique][string][out][in] */ __RPC__inout_ecount_full_opt_string(cchValue) LPWSTR pszValue, + /* [in] */ DWORD cchValue, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchPropertyValueRequired) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDate( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [unique][out][in] */ __RPC__inout_opt FILETIME *pftDateTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBinary( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(cchContentType) LPWSTR pszContentType, + /* [in] */ DWORD cchContentType, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchContentTypeRequired, + /* [out] */ __RPC__deref_out_opt IStream **ppStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLabels( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszArrayElementName, + DWORD dwFlags, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(cchLabels) LPWSTR pszLabels, + /* [in] */ DWORD cchLabels, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchLabelsRequired) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetString( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDate( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [in] */ FILETIME ftDateTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBinary( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszContentType, + /* [unique][in] */ __RPC__in_opt IStream *pStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetLabels( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszArrayElementName, + DWORD dwFlags, + /* [in] */ DWORD dwLabelCount, + /* [unique][size_is][in] */ __RPC__in_ecount_full_opt(dwLabelCount) LPCWSTR ppszLabels[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateArrayNode( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszArrayName, + DWORD dwFlags, + BOOL fAppend, + /* [size_is][string][unique][out][in] */ __RPC__inout_ecount_full_opt_string(cchNewArrayElementName) LPWSTR pszNewArrayElementName, + DWORD cchNewArrayElementName, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchNewArrayElementNameRequired) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteProperty( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteArrayNode( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszArrayElementName, + DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteLabels( + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszArrayElementName, + DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropertyCollection( + /* [out] */ __RPC__deref_out_opt IContactPropertyCollection **ppPropertyCollection, + DWORD dwFlags, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszMultiValueName, + /* [in] */ DWORD dwLabelCount, + /* [unique][size_is][in] */ __RPC__in_ecount_full_opt(dwLabelCount) LPCWSTR ppszLabels[ ], + BOOL fAnyLabelMatches) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactProperties * This); + + DECLSPEC_XFGVIRT(IContactProperties, GetString) + HRESULT ( STDMETHODCALLTYPE *GetString )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [size_is][unique][string][out][in] */ __RPC__inout_ecount_full_opt_string(cchValue) LPWSTR pszValue, + /* [in] */ DWORD cchValue, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchPropertyValueRequired); + + DECLSPEC_XFGVIRT(IContactProperties, GetDate) + HRESULT ( STDMETHODCALLTYPE *GetDate )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [unique][out][in] */ __RPC__inout_opt FILETIME *pftDateTime); + + DECLSPEC_XFGVIRT(IContactProperties, GetBinary) + HRESULT ( STDMETHODCALLTYPE *GetBinary )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(cchContentType) LPWSTR pszContentType, + /* [in] */ DWORD cchContentType, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchContentTypeRequired, + /* [out] */ __RPC__deref_out_opt IStream **ppStream); + + DECLSPEC_XFGVIRT(IContactProperties, GetLabels) + HRESULT ( STDMETHODCALLTYPE *GetLabels )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszArrayElementName, + DWORD dwFlags, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(cchLabels) LPWSTR pszLabels, + /* [in] */ DWORD cchLabels, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchLabelsRequired); + + DECLSPEC_XFGVIRT(IContactProperties, SetString) + HRESULT ( STDMETHODCALLTYPE *SetString )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszValue); + + DECLSPEC_XFGVIRT(IContactProperties, SetDate) + HRESULT ( STDMETHODCALLTYPE *SetDate )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [in] */ FILETIME ftDateTime); + + DECLSPEC_XFGVIRT(IContactProperties, SetBinary) + HRESULT ( STDMETHODCALLTYPE *SetBinary )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszContentType, + /* [unique][in] */ __RPC__in_opt IStream *pStream); + + DECLSPEC_XFGVIRT(IContactProperties, SetLabels) + HRESULT ( STDMETHODCALLTYPE *SetLabels )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszArrayElementName, + DWORD dwFlags, + /* [in] */ DWORD dwLabelCount, + /* [unique][size_is][in] */ __RPC__in_ecount_full_opt(dwLabelCount) LPCWSTR ppszLabels[ ]); + + DECLSPEC_XFGVIRT(IContactProperties, CreateArrayNode) + HRESULT ( STDMETHODCALLTYPE *CreateArrayNode )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszArrayName, + DWORD dwFlags, + BOOL fAppend, + /* [size_is][string][unique][out][in] */ __RPC__inout_ecount_full_opt_string(cchNewArrayElementName) LPWSTR pszNewArrayElementName, + DWORD cchNewArrayElementName, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchNewArrayElementNameRequired); + + DECLSPEC_XFGVIRT(IContactProperties, DeleteProperty) + HRESULT ( STDMETHODCALLTYPE *DeleteProperty )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszPropertyName, + DWORD dwFlags); + + DECLSPEC_XFGVIRT(IContactProperties, DeleteArrayNode) + HRESULT ( STDMETHODCALLTYPE *DeleteArrayNode )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszArrayElementName, + DWORD dwFlags); + + DECLSPEC_XFGVIRT(IContactProperties, DeleteLabels) + HRESULT ( STDMETHODCALLTYPE *DeleteLabels )( + __RPC__in IContactProperties * This, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszArrayElementName, + DWORD dwFlags); + + DECLSPEC_XFGVIRT(IContactProperties, GetPropertyCollection) + HRESULT ( STDMETHODCALLTYPE *GetPropertyCollection )( + __RPC__in IContactProperties * This, + /* [out] */ __RPC__deref_out_opt IContactPropertyCollection **ppPropertyCollection, + DWORD dwFlags, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR pszMultiValueName, + /* [in] */ DWORD dwLabelCount, + /* [unique][size_is][in] */ __RPC__in_ecount_full_opt(dwLabelCount) LPCWSTR ppszLabels[ ], + BOOL fAnyLabelMatches); + + END_INTERFACE + } IContactPropertiesVtbl; + + interface IContactProperties + { + CONST_VTBL struct IContactPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactProperties_GetString(This,pszPropertyName,dwFlags,pszValue,cchValue,pdwcchPropertyValueRequired) \ + ( (This)->lpVtbl -> GetString(This,pszPropertyName,dwFlags,pszValue,cchValue,pdwcchPropertyValueRequired) ) + +#define IContactProperties_GetDate(This,pszPropertyName,dwFlags,pftDateTime) \ + ( (This)->lpVtbl -> GetDate(This,pszPropertyName,dwFlags,pftDateTime) ) + +#define IContactProperties_GetBinary(This,pszPropertyName,dwFlags,pszContentType,cchContentType,pdwcchContentTypeRequired,ppStream) \ + ( (This)->lpVtbl -> GetBinary(This,pszPropertyName,dwFlags,pszContentType,cchContentType,pdwcchContentTypeRequired,ppStream) ) + +#define IContactProperties_GetLabels(This,pszArrayElementName,dwFlags,pszLabels,cchLabels,pdwcchLabelsRequired) \ + ( (This)->lpVtbl -> GetLabels(This,pszArrayElementName,dwFlags,pszLabels,cchLabels,pdwcchLabelsRequired) ) + +#define IContactProperties_SetString(This,pszPropertyName,dwFlags,pszValue) \ + ( (This)->lpVtbl -> SetString(This,pszPropertyName,dwFlags,pszValue) ) + +#define IContactProperties_SetDate(This,pszPropertyName,dwFlags,ftDateTime) \ + ( (This)->lpVtbl -> SetDate(This,pszPropertyName,dwFlags,ftDateTime) ) + +#define IContactProperties_SetBinary(This,pszPropertyName,dwFlags,pszContentType,pStream) \ + ( (This)->lpVtbl -> SetBinary(This,pszPropertyName,dwFlags,pszContentType,pStream) ) + +#define IContactProperties_SetLabels(This,pszArrayElementName,dwFlags,dwLabelCount,ppszLabels) \ + ( (This)->lpVtbl -> SetLabels(This,pszArrayElementName,dwFlags,dwLabelCount,ppszLabels) ) + +#define IContactProperties_CreateArrayNode(This,pszArrayName,dwFlags,fAppend,pszNewArrayElementName,cchNewArrayElementName,pdwcchNewArrayElementNameRequired) \ + ( (This)->lpVtbl -> CreateArrayNode(This,pszArrayName,dwFlags,fAppend,pszNewArrayElementName,cchNewArrayElementName,pdwcchNewArrayElementNameRequired) ) + +#define IContactProperties_DeleteProperty(This,pszPropertyName,dwFlags) \ + ( (This)->lpVtbl -> DeleteProperty(This,pszPropertyName,dwFlags) ) + +#define IContactProperties_DeleteArrayNode(This,pszArrayElementName,dwFlags) \ + ( (This)->lpVtbl -> DeleteArrayNode(This,pszArrayElementName,dwFlags) ) + +#define IContactProperties_DeleteLabels(This,pszArrayElementName,dwFlags) \ + ( (This)->lpVtbl -> DeleteLabels(This,pszArrayElementName,dwFlags) ) + +#define IContactProperties_GetPropertyCollection(This,ppPropertyCollection,dwFlags,pszMultiValueName,dwLabelCount,ppszLabels,fAnyLabelMatches) \ + ( (This)->lpVtbl -> GetPropertyCollection(This,ppPropertyCollection,dwFlags,pszMultiValueName,dwLabelCount,ppszLabels,fAnyLabelMatches) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactProperties_INTERFACE_DEFINED__ */ + + +#ifndef __IContact_INTERFACE_DEFINED__ +#define __IContact_INTERFACE_DEFINED__ + +/* interface IContact */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IContact; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F941B671-BDA7-4f77-884A-F46462F226A7") + IContact : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetContactID( + /* [size_is][string][out][in] */ __RPC__inout_ecount_full_string(cchContactID) LPWSTR pszContactID, + /* [in] */ DWORD cchContactID, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchContactIDRequired) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPath( + /* [size_is][string][out][in] */ __RPC__inout_ecount_full_string(cchPath) LPWSTR pszPath, + /* [in] */ DWORD cchPath, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchPathRequired) = 0; + + virtual HRESULT STDMETHODCALLTYPE CommitChanges( + /* [in] */ DWORD dwCommitFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContact * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContact * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContact * This); + + DECLSPEC_XFGVIRT(IContact, GetContactID) + HRESULT ( STDMETHODCALLTYPE *GetContactID )( + __RPC__in IContact * This, + /* [size_is][string][out][in] */ __RPC__inout_ecount_full_string(cchContactID) LPWSTR pszContactID, + /* [in] */ DWORD cchContactID, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchContactIDRequired); + + DECLSPEC_XFGVIRT(IContact, GetPath) + HRESULT ( STDMETHODCALLTYPE *GetPath )( + __RPC__in IContact * This, + /* [size_is][string][out][in] */ __RPC__inout_ecount_full_string(cchPath) LPWSTR pszPath, + /* [in] */ DWORD cchPath, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchPathRequired); + + DECLSPEC_XFGVIRT(IContact, CommitChanges) + HRESULT ( STDMETHODCALLTYPE *CommitChanges )( + __RPC__in IContact * This, + /* [in] */ DWORD dwCommitFlags); + + END_INTERFACE + } IContactVtbl; + + interface IContact + { + CONST_VTBL struct IContactVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContact_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContact_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContact_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContact_GetContactID(This,pszContactID,cchContactID,pdwcchContactIDRequired) \ + ( (This)->lpVtbl -> GetContactID(This,pszContactID,cchContactID,pdwcchContactIDRequired) ) + +#define IContact_GetPath(This,pszPath,cchPath,pdwcchPathRequired) \ + ( (This)->lpVtbl -> GetPath(This,pszPath,cchPath,pdwcchPathRequired) ) + +#define IContact_CommitChanges(This,dwCommitFlags) \ + ( (This)->lpVtbl -> CommitChanges(This,dwCommitFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContact_INTERFACE_DEFINED__ */ + + +#ifndef __IContactPropertyCollection_INTERFACE_DEFINED__ +#define __IContactPropertyCollection_INTERFACE_DEFINED__ + +/* interface IContactPropertyCollection */ +/* [unique][helpstring][uuid][object] */ + +#define CGD_UNKNOWN_PROPERTY 0x00000000 +#define CGD_STRING_PROPERTY 0x00000001 +#define CGD_DATE_PROPERTY 0x00000002 +#define CGD_BINARY_PROPERTY 0x00000004 +#define CGD_ARRAY_NODE 0x00000008 + +EXTERN_C const IID IID_IContactPropertyCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ffd3adf8-fa64-4328-b1b6-2e0db509cb3c") + IContactPropertyCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropertyName( + /* [unique][size_is][string][unique][out][in] */ __RPC__inout_ecount_full_opt_string(cchPropertyName) LPWSTR pszPropertyName, + /* [in] */ DWORD cchPropertyName, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchPropertyNameRequired) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropertyType( + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropertyVersion( + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwVersion) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropertyModificationDate( + /* [unique][out][in] */ __RPC__inout_opt FILETIME *pftModificationDate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropertyArrayElementID( + /* [unique][size_is][string][unique][out][in] */ __RPC__inout_ecount_full_opt_string(cchArrayElementID) LPWSTR pszArrayElementID, + /* [in] */ DWORD cchArrayElementID, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchArrayElementIDRequired) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContactPropertyCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContactPropertyCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContactPropertyCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContactPropertyCollection * This); + + DECLSPEC_XFGVIRT(IContactPropertyCollection, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IContactPropertyCollection * This); + + DECLSPEC_XFGVIRT(IContactPropertyCollection, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IContactPropertyCollection * This); + + DECLSPEC_XFGVIRT(IContactPropertyCollection, GetPropertyName) + HRESULT ( STDMETHODCALLTYPE *GetPropertyName )( + __RPC__in IContactPropertyCollection * This, + /* [unique][size_is][string][unique][out][in] */ __RPC__inout_ecount_full_opt_string(cchPropertyName) LPWSTR pszPropertyName, + /* [in] */ DWORD cchPropertyName, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchPropertyNameRequired); + + DECLSPEC_XFGVIRT(IContactPropertyCollection, GetPropertyType) + HRESULT ( STDMETHODCALLTYPE *GetPropertyType )( + __RPC__in IContactPropertyCollection * This, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwType); + + DECLSPEC_XFGVIRT(IContactPropertyCollection, GetPropertyVersion) + HRESULT ( STDMETHODCALLTYPE *GetPropertyVersion )( + __RPC__in IContactPropertyCollection * This, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwVersion); + + DECLSPEC_XFGVIRT(IContactPropertyCollection, GetPropertyModificationDate) + HRESULT ( STDMETHODCALLTYPE *GetPropertyModificationDate )( + __RPC__in IContactPropertyCollection * This, + /* [unique][out][in] */ __RPC__inout_opt FILETIME *pftModificationDate); + + DECLSPEC_XFGVIRT(IContactPropertyCollection, GetPropertyArrayElementID) + HRESULT ( STDMETHODCALLTYPE *GetPropertyArrayElementID )( + __RPC__in IContactPropertyCollection * This, + /* [unique][size_is][string][unique][out][in] */ __RPC__inout_ecount_full_opt_string(cchArrayElementID) LPWSTR pszArrayElementID, + /* [in] */ DWORD cchArrayElementID, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pdwcchArrayElementIDRequired); + + END_INTERFACE + } IContactPropertyCollectionVtbl; + + interface IContactPropertyCollection + { + CONST_VTBL struct IContactPropertyCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContactPropertyCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContactPropertyCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContactPropertyCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContactPropertyCollection_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IContactPropertyCollection_Next(This) \ + ( (This)->lpVtbl -> Next(This) ) + +#define IContactPropertyCollection_GetPropertyName(This,pszPropertyName,cchPropertyName,pdwcchPropertyNameRequired) \ + ( (This)->lpVtbl -> GetPropertyName(This,pszPropertyName,cchPropertyName,pdwcchPropertyNameRequired) ) + +#define IContactPropertyCollection_GetPropertyType(This,pdwType) \ + ( (This)->lpVtbl -> GetPropertyType(This,pdwType) ) + +#define IContactPropertyCollection_GetPropertyVersion(This,pdwVersion) \ + ( (This)->lpVtbl -> GetPropertyVersion(This,pdwVersion) ) + +#define IContactPropertyCollection_GetPropertyModificationDate(This,pftModificationDate) \ + ( (This)->lpVtbl -> GetPropertyModificationDate(This,pftModificationDate) ) + +#define IContactPropertyCollection_GetPropertyArrayElementID(This,pszArrayElementID,cchArrayElementID,pdwcchArrayElementIDRequired) \ + ( (This)->lpVtbl -> GetPropertyArrayElementID(This,pszArrayElementID,cchArrayElementID,pdwcchArrayElementIDRequired) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContactPropertyCollection_INTERFACE_DEFINED__ */ + + + +#ifndef __CONTACT_LIBRARY_DEFINED__ +#define __CONTACT_LIBRARY_DEFINED__ + +/* library CONTACT */ +/* [version][lcid][helpstring][uuid] */ + + +EXTERN_C const IID LIBID_CONTACT; + +EXTERN_C const CLSID CLSID_Contact; + +#ifdef __cplusplus + +class DECLSPEC_UUID("61b68808-8eee-4fd1-acb8-3d804c8db056") +Contact; +#endif + +EXTERN_C const CLSID CLSID_ContactManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7165c8ab-af88-42bd-86fd-5310b4285a02") +ContactManager; +#endif +#endif /* __CONTACT_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_icontact_0000_0006 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_icontact_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_icontact_0000_0006_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContact.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContact.idl new file mode 100644 index 0000000000000000000000000000000000000000..663ee4c155b0a7967108a3f87e443ca5c3148536 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContact.idl @@ -0,0 +1,1097 @@ +/**************************************************************************\ + Copyright Microsoft Corporation. All Rights Reserved. + + DESCRIPTION: + APIs for interaction with Contacts. + + See icontactproperties.h for information regarding naming uses + +\**************************************************************************/ + +//-------------------------------------------------------------------------- +// Includes +//-------------------------------------------------------------------------- +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "objidl.idl"; + +//-------------------------------------------------------------------------- +// Interfaces +//-------------------------------------------------------------------------- + +interface IContactManager; +interface IContact; +interface IContactPropertyCollection; +interface IContactCollection; + +// =================================================================== +// INTERFACE: IContactManager +// +// DESCRIPTION: +// This interface is used to interact with a contact with a ContactID string. +//=================================================================== +[ + object, + uuid(ad553d98-deb1-474a-8e17-fc0c2075b738), + helpstring("IContactManager"), + pointer_default(unique) +] +interface IContactManager : IUnknown +{ + + // =================================================================== + // METHOD: Initialize() + // + // DESCRIPTION: + // Initialize the contact manager with the unique application name + // and application version being used to manipulate contacts. + // + // NOTE: Initialize *MUST* be called before other IContactManager methods + // + // PARAMETERS: + // pszAppName: The application name + // pszAppVersion: The application version + // + // Return values: + // S_OK - IContactManager is initialized + // + // Other FAILED HRESULTs + //=================================================================== + + HRESULT Initialize( [in, string, unique] LPCWSTR pszAppName, + [in, string, unique] LPCWSTR pszAppVersion); + + // =================================================================== + // METHOD: Load() + // + // DESCRIPTION: + // Load an IContact object with the data from the contact referenced by + // the machine local ContactID pszContactID. + // + // Parameters: + // pszContactID: The ContactID to load. + // + // Return values: + // S_OK - contact was found and loaded into *ppContact + // + // HRESULT_FROM_WIN32(ERROR_NO_MATCH) - could not find this contactID + // + // Other FAILED HRESULTs + //=================================================================== + + HRESULT Load( [in, string, unique] LPCWSTR pszContactID, + [out] IContact ** ppContact); + + // =================================================================== + // METHOD: MergeContactIDs() + // + // DESCRIPTION: + // This function will make future resolutions against pszOldContactID + // resolve to contact pszNewContactID. This function is called when + // the caller merged the properties of pszOldContactID into contact + // pszNewContactID and before deleting contact pszOldContactID. + // + // Parameters: + // pszNewContactID: The ContactID of the new contact resenting both + // the old and new contact. + // pszOldContactID: The ContactID to that was deleted when it's + // data was merged into pszNewContactID. + // + // Return values: + // S_OK - calling Load with oldContactID now will point to the newContactID contact + // + // Other FAILED HRESULTs + //=================================================================== + + HRESULT MergeContactIDs( [in, string, unique] LPCWSTR pszNewContactID, + [in, string, unique] LPCWSTR pszOldContactID); + + // =================================================================== + // METHOD: GetMeContact() + // + // DESCRIPTION: + // retrieves the local user account concept of 'me' + // + // Parameters: + // ppMeContact: where to store a pointer to the 'me' contact + // + // Return values: + // S_OK - + // + // Other FAILED HRESULTs + //=================================================================== + + HRESULT GetMeContact([out] IContact ** ppMeContact); + + // =================================================================== + // METHOD: SetMeContact() + // + // DESCRIPTION: + // sets the local user account concept of 'me' to this user + // + // Parameters: + // pMeContact: the contact to treat as 'me' for the current user + // + // Return values: + // S_OK - + // + // Other FAILED HRESULTs + //=================================================================== + + HRESULT SetMeContact([in] IContact * pMeContact); + + // =================================================================== + // METHOD: GetContactCollection() + // + // DESCRIPTION: + // Returns a IContactCollection for all known Contacts + // + // on SUCCESS, collection has been reset to before the first Contact. + // you must call Next before querying GetCurrent. + // + // Parameters: + // ppContactCollection - on success, points to the new IContactCollection + // + // Return values: + // S_OK + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetContactCollection([out] IContactCollection ** ppContactCollection); +} + + +// =================================================================== +// INTERFACE: IContactCollection +// +// DESCRIPTION: +// Enumerates the contacts known by the IContactManager. +// +// NOTE: +// Adding or removing contacts through other means while this is performing +// an enumeration results in undefined behavior. +// Currently this interface does not support deletion of contacts during an +// enumeration. Otherwise modifying Contact's properties should not +// affect this. +// +//=================================================================== +[ + object, + uuid(b6afa338-d779-11d9-8bde-f66bad1e3f3a), + helpstring("IContactCollection"), + pointer_default(unique) +] +interface IContactCollection : IUnknown +{ + + // =================================================================== + // METHOD: Reset() + // + // DESCRIPTION: + // Reset enumeration of properties. The enumerator resides before the + // logical first element. + // + // NOTE: A call to GetCurrent immediately after Reset is undefined. To get + // the first Contact, first call Next() to ensure that there is one. + // + // Parameters: + // void + // + // Return values: + // S_OK + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT Reset(void); + + // =================================================================== + // METHOD: Next() + // + // DESCRIPTION: + // Move to the next property + // + // Note: after S_FALSE is returned, further calls to GetCurrent will + // fail. + // Repeated calls to Next after S_FALSE is returned without calling + // Reset have undefined return values. + // Calling GetCurrent after a Reset without a call to Next between will + // fail. + // + // Parameters: + // void + // + // Return values: + // S_OK - moved to next property + // S_FALSE - at the end of the property enumeration + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT Next(void); + + // =================================================================== + // METHOD: GetCurrent() + // + // DESCRIPTION: + // Retrieve the current contact in the enumeration. + // + // Parameters: + // ppContact - on success, contains the current contact. + // + // Return values: + // S_OK + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetCurrent([out] IContact ** ppContact); +} + + +// =================================================================== +// INTERFACE: IContactProperties +// +// DESCRIPTION: +// This interface is used to get, set, create and remove properties on an IContact +// +// Property names and extension mechanisms are described in icontactproperties.h +// +//=================================================================== +[ + object, + uuid(70dd27dd-5cbd-46e8-bef0-23b6b346288f), + helpstring("IContactProperties"), + pointer_default(unique) +] +interface IContactProperties : IUnknown +{ + +// =================================================================== +// valid dwFlags values for use with IContactProperties methods. +// +cpp_quote("#define CGD_DEFAULT 0x00000000") + +//=================================================================== + + // =================================================================== + // METHOD: GetString + // + // DESCRIPTION: + // Retrieve the string value at pszPropertyName into a caller allocated buffer + // + // To retrieve a single level property, set pszPropertyName to the property name. + // + // To retrieve a property from a multi value property, set pszPropertyName to the form: + // toplevel/secondlevel[4]/thirdlevel + // + // Note: the first element of a set is index 1. GetString with [0] is invalid + // + // Parameters: + // pszPropertyName: property to retrieve + // dwFlags: Must be CGD_DEFAULT + // pszValue: User allocated buffer to store the property in + // cchValue: allocated buffer size in characters + // pdwcchPropertyNameRequired - on failure, contains the required size for pszValue + // + // Return values: + // S_OK - pszValue contains the NULL terminated value + // + // S_FALSE - No data for this value. + // Either the property has been present in the past, but it's value has been removed. + // or the property is a container of other properties (toplevel/secondlevel[3]) + // The buffer at pszValue has been zero'ed. + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - no data found for this property name + // + // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) - pszValue was not large enough to + // store the value. + // required buffer size is stored + // in *pdwcchPropertyValueRequired. + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetString( [in, string, unique] LPCWSTR pszPropertyName, + DWORD dwFlags, + [in, out, string, unique, size_is(cchValue)] LPWSTR pszValue, + [in] DWORD cchValue, + [in, out, unique] DWORD * pdwcchPropertyValueRequired); + + // =================================================================== + // METHOD: GetDate + // + // DESCRIPTION: + // Retrieve the date and time value at pszPropertyName into a caller's FILETIME structure + // + // NOTE: All times are stored and returned as UTC time + // + // Parameters: + // pszPropertyName: property to retrieve + // dwFlags: Must be CGD_DEFAULT + // pftDateTime: caller allocated FILETIME structure + // + // Return values: + // S_OK - pftDateTime contains a valid FILETIME + // + // S_FALSE - the property has been present in the past, but it's value has been removed. + // The FILETIME has been zero'ed. + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - no data found for this property + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetDate( [in, string, unique] LPCWSTR pszPropertyName, + DWORD dwFlags, + [in, out, unique] FILETIME * pftDateTime); + + // =================================================================== + // METHOD: GetBinary + // + // DESCRIPTION: + // Retrieve the binary data at pszPropertyName via an IStream + // + // To retrieve a single level property, set pszPropertyName to the property name. + // + // To retrieve a property from a multi value property, set pszPropertyName to the form: + // toplevel/secondlevel[4]/thirdlevel + // + // GetBinary for properties that have been deleted return S_FALSE and a NULL IStream reference. + // + // NOTE: GetBinary for properties that are not of binary type may return incorrect data in the IStream + // + // Parameters: + // pszPropertyName: property to retrieve + // dwFlags: Must be CGD_DEFAULT + // pszContentType: User allocated buffer to store the mime content type in + // cchContentType: allocated buffer size in characters + // pdwcchContentTypeRequired - on failure, contains the required size for pszContentType + // ppStream - on SUCCESS, contains a new IStream*. Use this to retrieve the binary data. + // + // Return values: + // S_OK - ppStream contains an IStream*. Caller must release the refrence. + // S_FALSE - The binary data has been deleted. + // ppStream does not contain a reference. pszContentType has been zeroed. + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - no data found for this property name + // + // HRESULT_FROM_WIN32(ERROR_INVALID_DATATYPE) - unable to get this value for this + // property due to schema + // + // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) - pszValue was not large enough to + // store the value. + // required buffer size is stored + // in *pdwcchContentTypeRequired. + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetBinary( [in, string, unique] LPCWSTR pszPropertyName, + DWORD dwFlags, + [in, out, unique, size_is(cchContentType)] LPWSTR pszContentType, + [in] DWORD cchContentType, + [in, out, unique] DWORD * pdwcchContentTypeRequired, + [out] IStream ** ppStream); + + // =================================================================== + // METHOD: GetLabels + // + // DESCRIPTION: + // Retrieve the labels for pszArrayElementName + // + // pszLabels is a list of strings concatenated together, followed by an empty string + // (read: last 4 bytes will be zero) {ex: L"str1\0str2\0\0"} + // + // NOTE: GetLabels succeeds only for multi value properties + // + // NOTE: GetLabels may return labels in a different order than they were set in + // + // Parameters: + // pszPropertyName: property to get labels for + // dwFlags: Must be CGD_DEFAULT + // pszLabels: User allocated buffer to store the labels in + // cchLabels: allocated buffer size in characters + // pdwcchLabelsRequired - on failure, contains the required size for pszLabels + // + // Return values: + // S_OK + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - no data found for this property name + // + // HRESULT_FROM_WIN32(ERROR_INVALID_DATATYPE) - unable to get this value for this + // property due to schema + // + // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) - pszLabels was not large enough to + // store the value. + // required buffer size is stored + // in *pdwcchLabelsRequired. + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetLabels( [in, string, unique] LPCWSTR pszArrayElementName, + DWORD dwFlags, + [in, out, unique, size_is(cchLabels)] LPWSTR pszLabels, + [in] DWORD cchLabels, + [in, out, unique] DWORD * pdwcchLabelsRequired); + + + // =================================================================== + // METHOD: SetString + // + // DESCRIPTION: + // Sets the string value at pszPropertyName to psvValue + // + // To set a single level property, set pszPropertyName to the property name. + // + // To set a property from a multi value property, set pszPropertyName to the form: + // toplevel/secondlevel[4]/thirdlevel + // + // Parameters: + // pszPropertyName: property to set + // + // dwFlags: + // CGD_DEFAULT can be used to create or overwrite value at pszPropertyName. + // + // pszValue: NULL terminated string to store. + // + // Return values: + // S_OK - value is set at this property + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - property name was invalid for set + // + // HRESULT_FROM_WIN32(ERROR_INVALID_DATATYPE) - unable to set this value for this + // property due to schema + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT SetString( [in, string, unique] LPCWSTR pszPropertyName, + DWORD dwFlags, + [in, string, unique] LPCWSTR pszValue); + + // =================================================================== + // METHOD: SetDate + // + // DESCRIPTION: + // Set the date and time value at pszPropertyName to a given FILETIME + // + // NOTE: All incoming FILETIMEs are treated as UTC time + // + // Parameters: + // pszPropertyName: property to set + // + // dwFlags: + // CGD_DEFAULT can be used to create or overwrite value at pszPropertyName. + // + // ftDateTime: FILETIME structure to use for date + // + // Return values: + // S_OK - date and time are set at this property + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - property name was invalid + // + // HRESULT_FROM_WIN32(ERROR_INVALID_DATATYPE) - unable to set this value on this + // property due to schema + // + // Other FAILED HRESULTs + // + // =================================================================== + HRESULT SetDate( [in, string, unique] LPCWSTR pszPropertyName, + DWORD dwFlags, + [in] FILETIME ftDateTime); + + // =================================================================== + // METHOD: SetBinary + // + // DESCRIPTION: + // Sets the binary value at pszPropertyName to the contents of pStream which contains + // pszContentType (as mime type) data. + // + // To set a single level property, set pszPropertyName to the property name. + // + // To set a property from a multi value property, set pszPropertyName to the form: + // toplevel/secondlevel[4]/thirdlevel + // + // Parameters: + // pszPropertyName: property to set + // + // dwFlags: + // CGD_DEFAULT can be used to create or overwrite value at pszPropertyName. + // + // pszContentType: NULL terminated string representing MIME type to store when CGD_DEFAULT. + // + // pStream: IStream containing data to place at this node. + // NOTE: IStream::Read is called for the data until it SUCCEEDEDs with a zero length read. + // Any other return value will result in a failure from SetBinary and no change + // + // Return values: + // S_OK - value is set at this property + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - property name was invalid for set + // -or property name doesn't exist for delete + // + // HRESULT_FROM_WIN32(ERROR_INVALID_DATATYPE) - unable to set this value for this + // property due to schema + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT SetBinary( [in, string, unique] LPCWSTR pszPropertyName, + DWORD dwFlags, + [in, string, unique] LPCWSTR pszContentType, + [in, unique] IStream * pStream); + + + // =================================================================== + // METHOD: SetLabels + // + // DESCRIPTION: + // Appends the set of labels passed in to the label set of pszArrayElementName + // + // Note: This method does not check for duplicate labels + // + // Parameters: + // pszPropertyName: property to label + // dwFlags: Must be CGD_DEFAULT + // dwLabelCount: count of labels in ppszLabels + // ppszLabels: array of LPCWSTR labels + // + // Return values: + // S_OK + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - no data found for this property name + // + // HRESULT_FROM_WIN32(ERROR_INVALID_DATATYPE) - unable to set labels for this + // property due to schema + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT SetLabels( [in, string, unique] LPCWSTR pszArrayElementName, + DWORD dwFlags, + [in] DWORD dwLabelCount, + [in, size_is(dwLabelCount), unique] LPCWSTR ppszLabels [] ); + + + // =================================================================== + // METHOD: CreateArrayNode + // + // DESCRIPTION: + // Create a new array node in a multi value property. + // + // Note: The first element of an existing set is at index 1. + // + // To create a pszPropertyName at: + // toplevel/secondlevel[1] + // call this function with pszPropertyName == toplevel, fAppend=FALSE + // + // To create an array node that is an extension at [namespace]toplevel/secondlevel[1] + // call this function with pszPropertyName == [namespace:secondlevel]toplevel + // + // To append to the set, pass fAppend=TRUE instead. + // pszNewArrayElementName then contains the resulting array node name, including the index. + // + // Parameters: + // pszArrayName: top level property to create a new node for + // dwFlags: Must be CGD_DEFAULT + // fAppend: TRUE for insert after, FALSE for insert before + // pszNewPropertyName: User allocated buffer to store the new property name in + // cchNewPropertyName: allocated buffer size in characters + // pdwcchNewPropertyNameRequired - on failure, contains the required size for pszNewPropertyName + // + // Return values: + // S_OK - new node is created, name is in pszNewArrayElementName + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - array name was invalid + // + // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) - pszNewPropertyName was not large enough to + // store the new property name. + // required buffer size is stored + // in *pdwcchNewPropertyNameRequired. + // No node was added. + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT CreateArrayNode([in, string, unique] LPCWSTR pszArrayName, + DWORD dwFlags, + BOOL fAppend, + [in, out, unique, string, size_is(cchNewArrayElementName)] LPWSTR pszNewArrayElementName, + DWORD cchNewArrayElementName, + [in, out, unique] DWORD * pdwcchNewArrayElementNameRequired); + + // =================================================================== + // METHOD: DeleteProperty + // + // DESCRIPTION: + // Deletes the value at pszPropertyName + // + // NOTE: property modification and version data can still be + // enumerated with IContactPropertyCollection. + // + // Parameters: + // pszPropertyName: property to delete value for + // + // dwFlags: + // CGD_DEFAULT + // + // Return values: + // S_OK + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - property name doesn't exist for delete + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT DeleteProperty([in, string, unique] LPCWSTR pszPropertyName, + DWORD dwFlags); + + // =================================================================== + // METHOD: DeleteArrayNode + // + // DESCRIPTION: + // Deletes the value at pszPropertyName + // + // NOTE: element indexes are unchanged for the entire set. + // + // NOTE: array node elementid, modification and version data can still be + // enumerated with IContactPropertyCollection + // + // Parameters: + // pszArrayElementName: array entry to remove all data from + // + // dwFlags: + // CGD_DEFAULT + // + // Return values: + // S_OK + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - property name doesn't exist for delete + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT DeleteArrayNode([in, string, unique] LPCWSTR pszArrayElementName, + DWORD dwFlags); + + // =================================================================== + // METHOD: DeleteLabels + // + // DESCRIPTION: + // Deletes the labels at pszPropertyName + // + // Parameters: + // pszArrayElementName: property to delete labels on + // + // dwFlags: + // CGD_DEFAULT + // + // Return values: + // S_OK + // + // HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) - property name doesn't exist for delete + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT DeleteLabels([in, string, unique] LPCWSTR pszArrayElementName, + DWORD dwFlags); + + // =================================================================== + // METHOD: GetPropertyCollection() + // + // DESCRIPTION: + // Returns a IContactPropertyCollection for the current contact + // + // Optionally filters the IContactPropertyCollection to only enumerate some values. + // + // caller can enumerate all children properties of a top level property + // with an optional label filter applied. EX: all emailAddresses where label="work" + // + // on SUCCESS, collection has been reset to before the first element (if any are present) + // you must call Next to begin querying data (GetPropertyName) + // + // Parameters: + // ppPropertyCollection - on success, points to the new IContactPropertyCollection + // + // pszMultiValueName - name of the collection (ex: emailAddresses or [namespace]arrayNode) + // if NULL, all collections are searched for ppszLabels + // + // dwLabelCount - number of labels in ppszLabels + // if zero, all subproperties with labels are returned + // + // ppszLabels - array of string labels to test for + // all labels in the array must be set to a valid string (not NULL) + // + // fAnyLabelMatches - TRUE if the presence of any label on a given property matches the property + // FALSE if all labels must be present to match the property + // + // Return values: + // S_OK + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetPropertyCollection( [out] IContactPropertyCollection ** ppPropertyCollection, + DWORD dwFlags, + [in, string, unique] LPCWSTR pszMultiValueName, + [in] DWORD dwLabelCount, + [in, size_is(dwLabelCount), unique] LPCWSTR ppszLabels [], + BOOL fAnyLabelMatches); + +}; + + +// =================================================================== +// INTERFACE: IContact +// +// DESCRIPTION: +// This interface handles reading and writing properties for a single contact +// +// NOTE: +// Classes that implement this interface often also implement these interfaces +// +// IPersistFile: +// Allows the contact to be loaded from a file. +// +// Use this interface to load a contact to get +// full support in IContact::CommitChanges change conflict detection. +// +// IPersistStream: +// IPersistStreamInit: +// This interface allows the contact to be saved or loaded +// from a stream. +// +// Use IPersistStreamInit::InitNew to create a new IContact +// +// NOTE: loading a contact via IPersistStream will not have the locking +// and conflict detection that comes with the usage of +// IPersistFile::Load / IContact::CommitChanges +// +// IPropertyBag: +// Allows the contact properties to be accessed with late binding and VARIANT access +// +// IContactProperties: +// Allows the contact properties to be +// Get, Set, Labeled, Created, Removed and enumerated +// +//=================================================================== +[ + object, + uuid(F941B671-BDA7-4f77-884A-F46462F226A7), + helpstring("IContact"), + pointer_default(unique) +] +interface IContact : IUnknown +{ + // =================================================================== + // METHOD: GetContactID() + // + // DESCRIPTION: + // Retrieve the local machine unique ContactID + // + // Parameters: + // pszContactID: User allocated buffer to store the ContactID in + // cchContactID: allocated buffer size + // pdwcchContactIDRequired: on failure due to insufficient buffer, + // contains the required size for pszContactID. + // + // Return values: + // S_OK - pszContact contains the NULL terminated ContactID + // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) - pszContactID was not large enough to + // store the value. + // required buffer size is stored + // in *pdwcchContactIDRequired. + // + // Other FAILED HRESULTs + // + //=================================================================== + + HRESULT GetContactID( [in, out, string, size_is(cchContactID)] LPWSTR pszContactID, + [in] DWORD cchContactID, + [in, out, unique] DWORD * pdwcchContactIDRequired); + + // =================================================================== + // METHOD: GetPath() + // + // DESCRIPTION: + // Retrieve the file system path used to load this contact + // + // Parameters: + // pszPath: User allocated buffer to store the path in + // cchContactID: allocated buffer size in characters + // pdwcchPathRequired: on failure due to insufficient buffer, + // contains the required size for pszPath + // + // Return values: + // S_OK - pszPath contains the path + // E_UNEXPECTED - this contact was not loaded from a file path + // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) - pszPath was not large enough to + // store the value. + // required buffer size is stored + // in *pdwcchPathRequired. + // + // Other FAILED HRESULTs + // + //=================================================================== + + HRESULT GetPath( [in, out, string, size_is(cchPath)] LPWSTR pszPath, + [in] DWORD cchPath, + [in, out, unique] DWORD * pdwcchPathRequired); + + // =================================================================== + // METHOD: CommitChanges() + // + // DESCRIPTION: + // Save changes made to this contact to the contact file + // + // If the contact has been changed between creation and CommitChanges + // this function may return HRESULT_FROM_WIN32(ERROR_SHARING_VIOLATION) if + // there was an incompatible change made on disk. + // + // Parameters: + // dwCommitFlags - commit flags, must be zero + // + // Does not include a FORCE flag by design + // see CommitChanges sample code for an example of implementing FORCE flag. + // + // Return values: + // S_OK - changes were written to disk successfully + // + // E_UNEXPECTED - this contact was not loaded from a file path + // + // HRESULT_FROM_WIN32(ERROR_NESTING_NOT_ALLOWED) - another process modified the file in an + // incompatible way with changes to this contact + // + // Other FAILED HRESULTs + // + //=================================================================== + + HRESULT CommitChanges([in] DWORD dwCommitFlags); +} + + + +// =================================================================== +// INTERFACE: IContactPropertyCollection +// +// DESCRIPTION: +// Enumerates the contact properties exposed via an IContactProperties object +// +// For each property, the name, type, version, and modificationdate can be retrieved +// +// NOTE: +// Changing the IContactProperties properties object while enumerating properties +// with this interface results in undefined behavior. +// +//=================================================================== +[ + object, + uuid(ffd3adf8-fa64-4328-b1b6-2e0db509cb3c), + helpstring("IContactPropertyCollection"), + pointer_default(unique) +] +interface IContactPropertyCollection : IUnknown +{ +// =================================================================== +// valid dwType values returned from IContactPropertyCollection. +cpp_quote("#define CGD_UNKNOWN_PROPERTY 0x00000000") +cpp_quote("#define CGD_STRING_PROPERTY 0x00000001") +cpp_quote("#define CGD_DATE_PROPERTY 0x00000002") +cpp_quote("#define CGD_BINARY_PROPERTY 0x00000004") +cpp_quote("#define CGD_ARRAY_NODE 0x00000008") +//=================================================================== + + // =================================================================== + // METHOD: Reset() + // + // DESCRIPTION: + // Reset enumeration of properties. + // + // NOTE: Collection has been reset to before the first element (if any are present) + // you must call Next to begin querying data (GetPropertyName) + // + // Parameters: + // void + // + // Return values: + // S_OK + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT Reset(void); + + // =================================================================== + // METHOD: Next() + // + // DESCRIPTION: + // Move to the next property + // + // Note: after S_FALSE is returned, further calls to GetProperty* will fail + // + // Parameters: + // void + // + // Return values: + // S_OK - moved to next property + // S_FALSE - at the end of the property enumeration + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT Next(void); + + // =================================================================== + // METHOD: GetPropertyName() + // + // DESCRIPTION: + // Retrieve the propertyName for the current property in the enumeration + // + // Parameters: + // pszPropertyName - on success, contains the name to use for calling Get* on IContactProperties + // EX: toplevel -or- toplevel/secondlevel[4]/thirdlevel + // + // cchPropertyName - length of caller allocated pszPropertyName buffer, in characters + // + // pdwcchPropertyNameRequired - on failure, contains the required size for propertyName + // + // Return values: + // S_OK + // + // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) - pszProperty was not large enough to + // store the property name. + // required buffer size is stored + // in *pdwcchPropertyNameRequired. + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetPropertyName( [in, out, unique, string, size_is(cchPropertyName), unique] LPWSTR pszPropertyName, + [in] DWORD cchPropertyName, + [in, out, unique] DWORD * pdwcchPropertyNameRequired); + + // =================================================================== + // METHOD: GetPropertyType() + // + // DESCRIPTION: + // Retrieve the propertyType for the current property in the enumeration + // + // Parameters: + // pdwType - type of property stored at pszPropertyName. EX: CGD_STRING_PROPERTY + // + // Return values: + // S_OK + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetPropertyType( [in, out, unique] DWORD * pdwType); + + // =================================================================== + // METHOD: GetPropertyVersion() + // + // DESCRIPTION: + // Retrieve the Version number for the current property in the enumeration + // + // Parameters: + // pdwVersion - the version of the property + // + // Return values: + // S_OK + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetPropertyVersion( [in, out, unique] DWORD * pdwVersion); + + // =================================================================== + // METHOD: GetPropertyModificationDate() + // + // DESCRIPTION: + // Retrieve the last modifictation date for the current property in the enumeration + // If not modified, contact creation date is returned + // + // Parameters: + // pftModificationDate - the last modified date as a UTC FILETIME + // + // Return values: + // S_OK + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetPropertyModificationDate( [in, out, unique] FILETIME * pftModificationDate); + + // =================================================================== + // METHOD: GetPropertyArrayElementID() + // + // DESCRIPTION: + // Retrieve the unique ID for a given element in a property array. + // + // Note - valid only when GetPropertyType returns CGD_ARRAY_NODE for the current property + // + // Parameters: + // pszArrayElementID - on success, contains the unique ID for the element + // + // cchArrayElementID - length of the caller allocated pszArrayElementID buffer, in characters. + // + // pdwcchArrayElementIDRequired - on failure, contains the required size for ArrayElementID + // + // Return values: + // S_OK - success + // S_FALSE - the array node does not have a unique array element ID. + // + // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) - pszArrayElementID was not large enough to + // store the Array Element ID. + // required buffer size is stored + // in *pdwcchArrayElementIDRequired. + // + // Other FAILED HRESULTs + // + //=================================================================== + HRESULT GetPropertyArrayElementID( [in, out, unique, string, size_is(cchArrayElementID), unique] LPWSTR pszArrayElementID, + [in] DWORD cchArrayElementID, + [in, out, unique] DWORD * pdwcchArrayElementIDRequired); +} + +[ + uuid(ffb3df4d-f600-473e-92c1-cf9a1f4cccc5), + helpstring("Microsoft Contact Objects"), + lcid(0x0000), + version(1.0) +] +library CONTACT +{ + + [ + uuid(61b68808-8eee-4fd1-acb8-3d804c8db056), // CLSID_Contact + helpstring("Contact") + ] + coclass Contact + { + [default] interface IContact; + }; + + [ + uuid(7165c8ab-af88-42bd-86fd-5310b4285a02), // CLSID_ContactManager + helpstring("ContactManager") + ] + coclass ContactManager + { + [default] interface IContactManager; + }; +} + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContactProperties.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContactProperties.h new file mode 100644 index 0000000000000000000000000000000000000000..b2a33ab34b545f2bd656c6b2c96bccafde9f3961 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContactProperties.h @@ -0,0 +1,444 @@ +/**************************************************************************\ + Copyright Microsoft Corporation. All Rights Reserved. +\**************************************************************************/ + + +#ifndef _CONTACT_PROPERTIES_H_ +#define _CONTACT_PROPERTIES_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// =================================================================== +// Windows contact schema +// +// DESCRIPTION: +// This defines how the contact schema is used to read and write +// contact properties via IContactProperties. +// +// +// STRUCTURE: +// Contact properties fall into one of two categories: +// +// Category 1 - Single Value: These properties have a single simple value +// and don't require a hierarchy structure. +// +// Category 2 - Hierarchical: These properties have multiple values for any contact +// and require labeling to differentiate individual values. +// +// PhoneNumber is one example of this type of property +// Any given contact can have one or more home, work, and mobile phone numbers. +// +// +// PROPERTY EXTENSIBILITY: +// All applications that use contacts need to have additional data available +// on contacts that the base schema does not provide for. +// +// There are two ways supported by IContactProperties to extend the contact schema. +// +// 1) Labels (arbitrary strings) can be applied to any existing OS contact array node. +// Ex: phoneNumbers/PhoneNumber[1] can be labeled with the two labels: Preferred and Business. +// +// The set of built-in labels for all multi value properties are: +// Preferred +// Personal +// Business +// Other +// +// Some collections can have more labels set (PhoneNumber can have Mobile, Fax, ...) +// +// Additional labels can be set. Custom labels must be in the form of URIs. +// +// Manipulation of labels can be done with IContactProperties::GetLabel / SetLabel / DeleteLabels +// +// Filtering of data contact can be done with IContactProperties::GetPropertyCollection +// +// 2) New contact properties and array nodes can be defined by an application. +// The data contained in these properties can be enumerated by other users of IContactProperties +// +// To create a new property for an application, the same interface is used as standard properties. +// Use the same property Set functions as built in properties. The caller must prepend +// a string with a namespace (in braces) for the contact property. +// +// **NB: make sure the selected namespace is unique to avoid conflicts with other applications** +// +// For the application custom.exe to Get or Set a new string property, use: +// ex: [CustomNameSpace]CustomStringProperty +// +// Creating new multivalue properties is also supported. +// The above syntax is extended to include an array node name +// for the the call to IContactProperties::CreateArrayNode +// +// ex: [CustomNameSpace:CustomArrayNodeName]customArrayName +// +// CreateArrayNode will return the new property name (as always) in the outbound arguments. +// +//=================================================================== + +// =================================================================== +// Single Value properties +// +// DESCRIPTION: +// These properties are simple and have no hierarchy. +// + +// +// String properties +// + +// free text content +#define CONTACTPROP_PUB_NOTES L"Notes" + +// contact's email program +#define CONTACTPROP_PUB_MAILER L"Mailer" +// ProgID +#define CONTACTPROP_PUB_PROGID L"ProgID" + +// gender of contact +// Chooose one of L"Male", L"Female", L"Unspecified" (default) +#define CONTACTPROP_PUB_GENDER L"Gender" + +#define CONTACTPROP_PUB_GENDER_UNSPECIFIED L"Unspecified" +#define CONTACTPROP_PUB_GENDER_MALE L"Male" +#define CONTACTPROP_PUB_GENDER_FEMALE L"Female" + +// +// DateTime Properties +// + +// The date and time the contact was created in the system +#define CONTACTPROP_PUB_CREATIONDATE L"CreationDate" + + + +// =================================================================== +// Hierarchical properties +// +// DESCRIPTION: +// These properties contain many values differentiated by labels +// +// Individual properties are accessed via IContactProperties by index +// +// examples property names include: +// PhoneNumberCollection/PhoneNumber[1]/Number +// for the 1st phone number on the contact +// +// EmailAddressCollection/EmailAddress[4]/Address +// for the 4th email address on the contact +// +// Labels differentiate second level entries(L2) entries. +// Programmatic access for labels is via IContactProperties (see icontact.idl) +// + +// +// collection of ContactIDs associated with this contact +// +#define CONTACTPROP_PUB_L1_CONTACTIDCOLLECTION L"ContactIDCollection" +// an entry in the collection of IDs +#define CONTACTPROP_PUB_L2_CONTACTID L"/ContactID" +// one of the unique identifiers for this contact (as a string) +#define CONTACTPROP_PUB_L3_VALUE L"/Value" + +// +// collection of names associated with this contact +// +#define CONTACTPROP_PUB_L1_NAMECOLLECTION L"NameCollection" +// an entry in the collection of names +#define CONTACTPROP_PUB_L2_NAME L"/Name" + +// +// Contact data related to names +// + +// as displayed +#define CONTACTPROP_PUB_L3_FORMATTEDNAME L"/FormattedName" +// as pronounced +#define CONTACTPROP_PUB_L3_PHONETIC L"/Phonetic" + +#define CONTACTPROP_PUB_L3_PREFIX L"/Prefix" +#define CONTACTPROP_PUB_L3_TITLE L"/Title" +#define CONTACTPROP_PUB_L3_GIVENNAME L"/GivenName" +#define CONTACTPROP_PUB_L3_FAMILYNAME L"/FamilyName" +#define CONTACTPROP_PUB_L3_MIDDLENAME L"/MiddleName" +#define CONTACTPROP_PUB_L3_GENERATION L"/Generation" +#define CONTACTPROP_PUB_L3_SUFFIX L"/Suffix" +#define CONTACTPROP_PUB_L3_NICKNAME L"/NickName" + +// +// Contact data relating to positions a contact holds +// +#define CONTACTPROP_PUB_L1_POSITIONCOLLECTION L"PositionCollection" +// an entry in the collection of names +#define CONTACTPROP_PUB_L2_POSITION L"/Position" + +// the organization ex: IEEE +#define CONTACTPROP_PUB_L3_ORGANIZATION L"/Organization" +// the company ex: Microsoft +#define CONTACTPROP_PUB_L3_COMPANY L"/Company" +// the department ex: Windows +#define CONTACTPROP_PUB_L3_DEPARTMENT L"/Department" +// the office ex: Building A / Office 1234 +#define CONTACTPROP_PUB_L3_OFFICE L"/Office" +// any job title ex: Software Engineer +#define CONTACTPROP_PUB_L3_JOB_TITLE L"/JobTitle" +// the line of work ex: Engineering +#define CONTACTPROP_PUB_L3_PROFESSION L"/Profession" +// the role in the organization ex: Quality Assurance +#define CONTACTPROP_PUB_L3_ROLE L"/Role" + + + +// +// people associated with the contact +// +#define CONTACTPROP_PUB_L1_PERSONCOLLECTION L"PersonCollection" +// entry in the collection +#define CONTACTPROP_PUB_L2_PERSON L"/Person" +// +// Use labels to indicate the relationship to contact +// ex: +// wab:Spouse +// wab:Child +// wab:Manager +// wab:Assistant + +// person's formatted (display) name - (as string) +#define CONTACTPROP_PUB_L3_FORMATTEDNAME L"/FormattedName" + +// a unique identifier for this person (optional), +// which may be one of the ContactIDs contained in an IContact +#define CONTACTPROP_PUB_L3_PERSONID L"/PersonID" + +// +// calendar dates associated with the contact +// +#define CONTACTPROP_PUB_L1_DATECOLLECTION L"DateCollection" +// entry in the collection +#define CONTACTPROP_PUB_L2_DATE L"/Date" +// +// Use labels to indicate the type of data being expressed. +// ex: +// wab:Birthday - the date of birth for the contact +// wab:Anniversary - the spouse anniversary date for the contact + +// value for this date, as a DateTime +#define CONTACTPROP_PUB_L3_VALUE L"/Value" + + +// +// email addresses +// +#define CONTACTPROP_PUB_L1_EMAILADDRESSCOLLECTION L"EmailAddressCollection" +// entry in the collection +#define CONTACTPROP_PUB_L2_EMAILADDRESS L"/EmailAddress" +// example@microsoft.com (as string) +#define CONTACTPROP_PUB_L3_ADDRESS L"/Address" +// type of address (e.g. SMTP, x509) +#define CONTACTPROP_PUB_L3_TYPE L"/Type" + + +// +// certificate data and thumbprints +// + +#define CONTACTPROP_PUB_L1_CERTIFICATECOLLECTION L"CertificateCollection" +// entry in the collection +#define CONTACTPROP_PUB_L2_CERTIFICATE L"/Certificate" +// certificate value +#define CONTACTPROP_PUB_L3_VALUE L"/Value" +// thumbprint value +#define CONTACTPROP_PUB_L3_THUMBPRINT L"/ThumbPrint" + +// +// phone numbers +// +#define CONTACTPROP_PUB_L1_PHONENUMBERCOLLECTION L"PhoneNumberCollection" +// entry in the collection +#define CONTACTPROP_PUB_L2_PHONENUMBER L"/PhoneNumber" +// normal number to display (as string) +#define CONTACTPROP_PUB_L3_NUMBER L"/Number" +// alternate number (tty) (as string) +#define CONTACTPROP_PUB_L3_ALTERNATE L"/Alternate" + + +// +// physical addresses +// +#define CONTACTPROP_PUB_L1_PHYSICALADDRESSCOLLECTION L"PhysicalAddressCollection" +// entry in the collection +#define CONTACTPROP_PUB_L2_PHYSICALADDRESS L"/PhysicalAddress" +// the exact data that a mailing label should have +#define CONTACTPROP_PUB_L3_ADDRESSLABEL L"/AddressLabel" +// number and street +#define CONTACTPROP_PUB_L3_STREET L"/Street" +// City +#define CONTACTPROP_PUB_L3_LOCALITY L"/Locality" +// State/Providence +#define CONTACTPROP_PUB_L3_REGION L"/Region" +// Zip / PostalCode +#define CONTACTPROP_PUB_L3_POSTALCODE L"/PostalCode" +// the country +#define CONTACTPROP_PUB_L3_COUNTRY L"/Country" +// any POBox number +#define CONTACTPROP_PUB_L3_POBOX L"/POBox" +// any extra information +#define CONTACTPROP_PUB_L3_EXTENDEDADDRESS L"/ExtendedAddress" + +// +// Instant Messaging Addresess and protocols +// +#define CONTACTPROP_PUB_L1_IMADDRESSCOLLECTION L"IMAddressCollection" +#define CONTACTPROP_PUB_L2_IMADDRESSENTRY L"/IMAddress" +// the identifing data for this ImAddress (ex: username@microsoft.com) +#define CONTACTPROP_PUB_L3_VALUE L"/Value" +// the string protocol used for this ImAddress (ex: Messenger Protocol) +#define CONTACTPROP_PUB_L3_PROTOCOL L"/Protocol" + +// +// collection of URLs associated with this contact +// +#define CONTACTPROP_PUB_L1_URLCOLLECTION L"UrlCollection" +// an entry in the collection of url +#define CONTACTPROP_PUB_L2_URL L"/Url" +// the actual URL data +#define CONTACTPROP_PUB_L3_VALUE L"/Value" + +// +// collection of images associated with this contact +// +#define CONTACTPROP_PUB_L1_PHOTOCOLLECTION L"PhotoCollection" +// an entry in the collection of photos +#define CONTACTPROP_PUB_L2_PHOTO L"/Photo" +// an image to use for representing the contact - as binary, with MIME type +#define CONTACTPROP_PUB_L3_VALUE L"/Value" +// a URL for retrieving the image - as a string +#define CONTACTPROP_PUB_L3_URL L"/Url" + + + +// =================================================================== +// +// Common Labels that may be associated with any contact properties. +// + +// +// Labels can also be URIs. See comment at beginning of this file +// + +// NOTE: many entries in a set may have this "Preferred" label set +#define CONTACTLABEL_PUB_PREFERRED L"Preferred" + +// Home related data +#define CONTACTLABEL_PUB_PERSONAL L"Personal" + +// Work related data +#define CONTACTLABEL_PUB_BUSINESS L"Business" + +// other, non specified label +#define CONTACTLABEL_PUB_OTHER L"Other" + +// +// Labels that can be associated with PhoneNumber elements +// + +// number supports voice conversation +#define CONTACTLABEL_PUB_VOICE L"Voice" + +// mobile phone number +#define CONTACTLABEL_PUB_MOBILE L"Mobile" + +// PCS support +#define CONTACTLABEL_PUB_PCS L"PCS" + +// cell phone support +#define CONTACTLABEL_PUB_CELLULAR L"Cellular" + +// number travel with the Car +#define CONTACTLABEL_PUB_CAR L"Car" + +// pager number +#define CONTACTLABEL_PUB_PAGER L"Pager" + +// tty machine +#define CONTACTLABEL_PUB_TTY L"TTY" + +// fax machine +#define CONTACTLABEL_PUB_FAX L"Fax" + +// number supports video conversation +#define CONTACTLABEL_PUB_VIDEO L"Video" + +// number for modem connection +#define CONTACTLABEL_PUB_MODEM L"Modem" + +// number for BBS connection +#define CONTACTLABEL_PUB_BBS L"BBS" + +// number for ISDN +#define CONTACTLABEL_PUB_ISDN L"ISDN" + + +// +// Labels that can be associated with Person elements +// + +// to indicate this person is allowed to work on behalf of the contact +#define CONTACTLABEL_PUB_AGENT L"Agent" + +// +// Labels that can be associated with PhysicalAddress elements +// + +// a domestic mailing address +#define CONTACTLABEL_PUB_DOMESTIC L"Domestic" + +// an international mailing address +#define CONTACTLABEL_PUB_INTERNATIONAL L"International" + +// a mailing address which accepts mail +#define CONTACTLABEL_PUB_POSTAL L"Postal" + +// a mailing address that accepts packages +#define CONTACTLABEL_PUB_PARCEL L"Parcel" + + +// +// Labels that can be associated with Photo elements +// + +// an image used to represent the contact +#define CONTACTLABEL_PUB_USERTILE L"UserTile" + +// a logo associated with the contact (ex: image for organization) +#define CONTACTLABEL_PUB_LOGO L"Logo" + +// +// windows address book specific labels +// + +// for PersonCollection +#define CONTACTLABEL_WAB_SPOUSE L"wab:Spouse" +#define CONTACTLABEL_WAB_CHILD L"wab:Child" +#define CONTACTLABEL_WAB_MANAGER L"wab:Manager" +#define CONTACTLABEL_WAB_ASSISTANT L"wab:Assistant" + +// for DateCollection +#define CONTACTLABEL_WAB_BIRTHDAY L"wab:Birthday" +#define CONTACTLABEL_WAB_ANNIVERSARY L"wab:Anniversary" + +// for UrlCollection +#define CONTACTLABEL_WAB_SOCIALNETWORK L"wab:SocialNetwork" +#define CONTACTLABEL_WAB_SCHOOL L"wab:School" +#define CONTACTLABEL_WAB_WISHLIST L"wab:WishList" + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _CONTACT_PROPERTIES_H_ + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContentPrefetcherTaskTrigger.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContentPrefetcherTaskTrigger.h new file mode 100644 index 0000000000000000000000000000000000000000..bfeb8a4e3b0aca1b1a65cf1cee0932c45bee3a95 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContentPrefetcherTaskTrigger.h @@ -0,0 +1,224 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __icontentprefetchertasktrigger_h__ +#define __icontentprefetchertasktrigger_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IContentPrefetcherTaskTrigger_FWD_DEFINED__ +#define __IContentPrefetcherTaskTrigger_FWD_DEFINED__ +typedef interface IContentPrefetcherTaskTrigger IContentPrefetcherTaskTrigger; + +#endif /* __IContentPrefetcherTaskTrigger_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "inspectable.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_icontentprefetchertasktrigger_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_icontentprefetchertasktrigger_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_icontentprefetchertasktrigger_0000_0000_v0_0_s_ifspec; + +#ifndef __IContentPrefetcherTaskTrigger_INTERFACE_DEFINED__ +#define __IContentPrefetcherTaskTrigger_INTERFACE_DEFINED__ + +/* interface IContentPrefetcherTaskTrigger */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IContentPrefetcherTaskTrigger; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1b35a14a-6094-4799-a60e-e474e15d4dc9") + IContentPrefetcherTaskTrigger : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE TriggerContentPrefetcherTask( + /* [in] */ __RPC__in LPCWSTR packageFullName) = 0; + + virtual /* [annotation][local] */ + _On_failure_(_Post_satisfies_(*isRegistered == false)) + HRESULT STDMETHODCALLTYPE IsRegisteredForContentPrefetch( + /* [in] */ LPCWSTR packageFullName, + /* [out] */ boolean *isRegistered) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContentPrefetcherTaskTriggerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContentPrefetcherTaskTrigger * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContentPrefetcherTaskTrigger * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContentPrefetcherTaskTrigger * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + __RPC__in IContentPrefetcherTaskTrigger * This, + /* [out] */ __RPC__out ULONG *iidCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*iidCount) IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + __RPC__in IContentPrefetcherTaskTrigger * This, + /* [out] */ __RPC__deref_out_opt HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + __RPC__in IContentPrefetcherTaskTrigger * This, + /* [out] */ __RPC__out TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IContentPrefetcherTaskTrigger, TriggerContentPrefetcherTask) + HRESULT ( STDMETHODCALLTYPE *TriggerContentPrefetcherTask )( + __RPC__in IContentPrefetcherTaskTrigger * This, + /* [in] */ __RPC__in LPCWSTR packageFullName); + + DECLSPEC_XFGVIRT(IContentPrefetcherTaskTrigger, IsRegisteredForContentPrefetch) + /* [annotation][local] */ + _On_failure_(_Post_satisfies_(*isRegistered == false)) + HRESULT ( STDMETHODCALLTYPE *IsRegisteredForContentPrefetch )( + IContentPrefetcherTaskTrigger * This, + /* [in] */ LPCWSTR packageFullName, + /* [out] */ boolean *isRegistered); + + END_INTERFACE + } IContentPrefetcherTaskTriggerVtbl; + + interface IContentPrefetcherTaskTrigger + { + CONST_VTBL struct IContentPrefetcherTaskTriggerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContentPrefetcherTaskTrigger_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContentPrefetcherTaskTrigger_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContentPrefetcherTaskTrigger_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContentPrefetcherTaskTrigger_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IContentPrefetcherTaskTrigger_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IContentPrefetcherTaskTrigger_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IContentPrefetcherTaskTrigger_TriggerContentPrefetcherTask(This,packageFullName) \ + ( (This)->lpVtbl -> TriggerContentPrefetcherTask(This,packageFullName) ) + +#define IContentPrefetcherTaskTrigger_IsRegisteredForContentPrefetch(This,packageFullName,isRegistered) \ + ( (This)->lpVtbl -> IsRegisteredForContentPrefetch(This,packageFullName,isRegistered) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContentPrefetcherTaskTrigger_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_icontentprefetchertasktrigger_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_icontentprefetchertasktrigger_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_icontentprefetchertasktrigger_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContentPrefetcherTaskTrigger.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContentPrefetcherTaskTrigger.idl new file mode 100644 index 0000000000000000000000000000000000000000..a56e0f3114249300415dae1d56480b41d434509f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IContentPrefetcherTaskTrigger.idl @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. + +import "oaidl.idl"; +import "inspectable.idl"; +import "wtypes.idl"; +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +[uuid(1b35a14a-6094-4799-a60e-e474e15d4dc9), object] +interface IContentPrefetcherTaskTrigger : IInspectable +{ + HRESULT TriggerContentPrefetcherTask([in] LPCWSTR packageFullName); + [local, annotation("_On_failure_(_Post_satisfies_(*isRegistered == false))")] + HRESULT IsRegisteredForContentPrefetch([in] LPCWSTR packageFullName, [out] boolean* isRegistered); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IDLMULTI.H b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IDLMULTI.H new file mode 100644 index 0000000000000000000000000000000000000000..ff8a31feb2bf56775bee27c1c085dcc43d87bbe9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IDLMULTI.H @@ -0,0 +1,109 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//----------------------------------------------------------------------------- +// File: IDLMULTI.H +// +// Contents: preprocessor trickery to make our .idl/.tdl files compile +// with MIDL or APBU Mktyplib. +// +// Comments: +// +//----------------------------------------------------------------------------- + +#ifndef __IDLMULTI_H__ +#define __IDLMULTI_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#define ENDCOCLASS }; + + +#ifndef __MKTYPLIB__ +#define TYPEDEF(guid) \ +typedef + +#define LOCAL_INTERFACE(guid) \ +[ \ + local, \ + object, \ + uuid(guid), \ + pointer_default(unique) \ +] + + +#define REMOTED_INTERFACE(guid) \ +[ \ + object, \ + uuid(guid), \ + pointer_default(unique) \ +] + + +#define BEGINEVENTSET(es) \ +eventset es \ +{ \ + +#define ENDEVENTSET }; + + +#define COCLASS(name, dispint, events) \ +cotype name \ +{ \ + dispinterface dispint; \ + eventset events; + + + +#else // __MKTYPLIB__ + +#define TYPEDEF(guid) typedef [uuid(guid)] + +#define cpp_quote(string) + +#define const + +#define LOCAL_INTERFACE(guid) \ +[ \ + uuid(guid), \ + odl \ +] + +#define REMOTED_INTERFACE(guid) \ +[ \ + uuid(guid), \ + odl \ +] + +#define BEGINEVENTSET(es) \ +dispinterface es \ +{ \ +properties: \ + \ +methods: \ + +#define ENDEVENTSET }; + + +#define COCLASS(name, dispint, events) \ +coclass name \ +{ \ + dispinterface dispint; \ + [source,] dispinterface events; \ + + + +#endif /// MKTYPLIB + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __IDLMULTI_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IDispIds.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IDispIds.h new file mode 100644 index 0000000000000000000000000000000000000000..44e392ae3bf2888f46ca59af47ac7dc6005c18e3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IDispIds.h @@ -0,0 +1,29 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright 1995-1998 Microsoft Corporation. All Rights Reserved. +// +// File: idispids.h +// +//-------------------------------------------------------------------------- + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define DISPID_READYSTATE (-525) +#define DISPID_READYSTATECHANGE (-609) +#define DISPID_AMBIENT_TRANSFERPRIORITY (-728) +#define DISPID_AMBIENT_OFFLINEIFNOTCONNECTED (-5501) +#define DISPID_AMBIENT_SILENT (-5502) + +// Until these appear in OLECTL.H +#ifndef DISPID_AMBIENT_CODEPAGE +#define DISPID_AMBIENT_CODEPAGE (-725) +#define DISPID_AMBIENT_CHARSET (-727) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IE12Plugin.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IE12Plugin.h new file mode 100644 index 0000000000000000000000000000000000000000..06a8047a6c1ed66199555f5d1dbca3c7a84746dc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IE12Plugin.h @@ -0,0 +1,2116 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ie12plugin_h__ +#define __ie12plugin_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ISurfacePresenterFlipBuffer_FWD_DEFINED__ +#define __ISurfacePresenterFlipBuffer_FWD_DEFINED__ +typedef interface ISurfacePresenterFlipBuffer ISurfacePresenterFlipBuffer; + +#endif /* __ISurfacePresenterFlipBuffer_FWD_DEFINED__ */ + + +#ifndef __ISurfacePresenterFlip_FWD_DEFINED__ +#define __ISurfacePresenterFlip_FWD_DEFINED__ +typedef interface ISurfacePresenterFlip ISurfacePresenterFlip; + +#endif /* __ISurfacePresenterFlip_FWD_DEFINED__ */ + + +#ifndef __ISurfacePresenterFlip2_FWD_DEFINED__ +#define __ISurfacePresenterFlip2_FWD_DEFINED__ +typedef interface ISurfacePresenterFlip2 ISurfacePresenterFlip2; + +#endif /* __ISurfacePresenterFlip2_FWD_DEFINED__ */ + + +#ifndef __IViewObjectPresentFlipSite_FWD_DEFINED__ +#define __IViewObjectPresentFlipSite_FWD_DEFINED__ +typedef interface IViewObjectPresentFlipSite IViewObjectPresentFlipSite; + +#endif /* __IViewObjectPresentFlipSite_FWD_DEFINED__ */ + + +#ifndef __IViewObjectPresentFlipSite2_FWD_DEFINED__ +#define __IViewObjectPresentFlipSite2_FWD_DEFINED__ +typedef interface IViewObjectPresentFlipSite2 IViewObjectPresentFlipSite2; + +#endif /* __IViewObjectPresentFlipSite2_FWD_DEFINED__ */ + + +#ifndef __IViewObjectPresentFlip_FWD_DEFINED__ +#define __IViewObjectPresentFlip_FWD_DEFINED__ +typedef interface IViewObjectPresentFlip IViewObjectPresentFlip; + +#endif /* __IViewObjectPresentFlip_FWD_DEFINED__ */ + + +#ifndef __IViewObjectPresentFlip2_FWD_DEFINED__ +#define __IViewObjectPresentFlip2_FWD_DEFINED__ +typedef interface IViewObjectPresentFlip2 IViewObjectPresentFlip2; + +#endif /* __IViewObjectPresentFlip2_FWD_DEFINED__ */ + + +#ifndef __IActiveXUIHandlerSite2_FWD_DEFINED__ +#define __IActiveXUIHandlerSite2_FWD_DEFINED__ +typedef interface IActiveXUIHandlerSite2 IActiveXUIHandlerSite2; + +#endif /* __IActiveXUIHandlerSite2_FWD_DEFINED__ */ + + +#ifndef __ICaretPositionProvider_FWD_DEFINED__ +#define __ICaretPositionProvider_FWD_DEFINED__ +typedef interface ICaretPositionProvider ICaretPositionProvider; + +#endif /* __ICaretPositionProvider_FWD_DEFINED__ */ + + +#ifndef __ITridentTouchInput_FWD_DEFINED__ +#define __ITridentTouchInput_FWD_DEFINED__ +typedef interface ITridentTouchInput ITridentTouchInput; + +#endif /* __ITridentTouchInput_FWD_DEFINED__ */ + + +#ifndef __ITridentTouchInputSite_FWD_DEFINED__ +#define __ITridentTouchInputSite_FWD_DEFINED__ +typedef interface ITridentTouchInputSite ITridentTouchInputSite; + +#endif /* __ITridentTouchInputSite_FWD_DEFINED__ */ + + +#ifndef __IMediaActivityNotifySite_FWD_DEFINED__ +#define __IMediaActivityNotifySite_FWD_DEFINED__ +typedef interface IMediaActivityNotifySite IMediaActivityNotifySite; + +#endif /* __IMediaActivityNotifySite_FWD_DEFINED__ */ + + +#ifndef __IAudioSessionSite_FWD_DEFINED__ +#define __IAudioSessionSite_FWD_DEFINED__ +typedef interface IAudioSessionSite IAudioSessionSite; + +#endif /* __IAudioSessionSite_FWD_DEFINED__ */ + + +#ifndef __IPrintTaskRequestHandler_FWD_DEFINED__ +#define __IPrintTaskRequestHandler_FWD_DEFINED__ +typedef interface IPrintTaskRequestHandler IPrintTaskRequestHandler; + +#endif /* __IPrintTaskRequestHandler_FWD_DEFINED__ */ + + +#ifndef __IPrintTaskRequestFactory_FWD_DEFINED__ +#define __IPrintTaskRequestFactory_FWD_DEFINED__ +typedef interface IPrintTaskRequestFactory IPrintTaskRequestFactory; + +#endif /* __IPrintTaskRequestFactory_FWD_DEFINED__ */ + + +#ifndef __IScrollableContextMenu_FWD_DEFINED__ +#define __IScrollableContextMenu_FWD_DEFINED__ +typedef interface IScrollableContextMenu IScrollableContextMenu; + +#endif /* __IScrollableContextMenu_FWD_DEFINED__ */ + + +#ifndef __IScrollableContextMenu2_FWD_DEFINED__ +#define __IScrollableContextMenu2_FWD_DEFINED__ +typedef interface IScrollableContextMenu2 IScrollableContextMenu2; + +#endif /* __IScrollableContextMenu2_FWD_DEFINED__ */ + + +#ifndef __IActiveXUIHandlerSite_FWD_DEFINED__ +#define __IActiveXUIHandlerSite_FWD_DEFINED__ +typedef interface IActiveXUIHandlerSite IActiveXUIHandlerSite; + +#endif /* __IActiveXUIHandlerSite_FWD_DEFINED__ */ + + +#ifndef __IActiveXUIHandlerSite3_FWD_DEFINED__ +#define __IActiveXUIHandlerSite3_FWD_DEFINED__ +typedef interface IActiveXUIHandlerSite3 IActiveXUIHandlerSite3; + +#endif /* __IActiveXUIHandlerSite3_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" +#include "inspectable.h" +#include "mshtml.h" +#include "dxgi.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ie12plugin_0000_0000 */ +/* [local] */ + +#pragma once +//;begin_internal + + +extern RPC_IF_HANDLE __MIDL_itf_ie12plugin_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ie12plugin_0000_0000_v0_0_s_ifspec; + +#ifndef __ISurfacePresenterFlipBuffer_INTERFACE_DEFINED__ +#define __ISurfacePresenterFlipBuffer_INTERFACE_DEFINED__ + +/* interface ISurfacePresenterFlipBuffer */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_ISurfacePresenterFlipBuffer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e43f4a08-8bbc-4665-ac92-c55ce61fd7e7") + ISurfacePresenterFlipBuffer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE BeginDraw( + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out][retval] */ __RPC__deref_out_opt void **ppBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndDraw( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISurfacePresenterFlipBufferVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISurfacePresenterFlipBuffer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISurfacePresenterFlipBuffer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISurfacePresenterFlipBuffer * This); + + DECLSPEC_XFGVIRT(ISurfacePresenterFlipBuffer, BeginDraw) + HRESULT ( STDMETHODCALLTYPE *BeginDraw )( + __RPC__in ISurfacePresenterFlipBuffer * This, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out][retval] */ __RPC__deref_out_opt void **ppBuffer); + + DECLSPEC_XFGVIRT(ISurfacePresenterFlipBuffer, EndDraw) + HRESULT ( STDMETHODCALLTYPE *EndDraw )( + __RPC__in ISurfacePresenterFlipBuffer * This); + + END_INTERFACE + } ISurfacePresenterFlipBufferVtbl; + + interface ISurfacePresenterFlipBuffer + { + CONST_VTBL struct ISurfacePresenterFlipBufferVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISurfacePresenterFlipBuffer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISurfacePresenterFlipBuffer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISurfacePresenterFlipBuffer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISurfacePresenterFlipBuffer_BeginDraw(This,riid,ppBuffer) \ + ( (This)->lpVtbl -> BeginDraw(This,riid,ppBuffer) ) + +#define ISurfacePresenterFlipBuffer_EndDraw(This) \ + ( (This)->lpVtbl -> EndDraw(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISurfacePresenterFlipBuffer_INTERFACE_DEFINED__ */ + + +#ifndef __ISurfacePresenterFlip_INTERFACE_DEFINED__ +#define __ISurfacePresenterFlip_INTERFACE_DEFINED__ + +/* interface ISurfacePresenterFlip */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_ISurfacePresenterFlip; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30510848-98b5-11cf-bb82-00aa00bdce0b") + ISurfacePresenterFlip : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Present( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBuffer( + /* [in] */ UINT backBufferIndex, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out][retval] */ __RPC__deref_out_opt void **ppBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISurfacePresenterFlipVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISurfacePresenterFlip * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISurfacePresenterFlip * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISurfacePresenterFlip * This); + + DECLSPEC_XFGVIRT(ISurfacePresenterFlip, Present) + HRESULT ( STDMETHODCALLTYPE *Present )( + __RPC__in ISurfacePresenterFlip * This); + + DECLSPEC_XFGVIRT(ISurfacePresenterFlip, GetBuffer) + HRESULT ( STDMETHODCALLTYPE *GetBuffer )( + __RPC__in ISurfacePresenterFlip * This, + /* [in] */ UINT backBufferIndex, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out][retval] */ __RPC__deref_out_opt void **ppBuffer); + + END_INTERFACE + } ISurfacePresenterFlipVtbl; + + interface ISurfacePresenterFlip + { + CONST_VTBL struct ISurfacePresenterFlipVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISurfacePresenterFlip_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISurfacePresenterFlip_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISurfacePresenterFlip_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISurfacePresenterFlip_Present(This) \ + ( (This)->lpVtbl -> Present(This) ) + +#define ISurfacePresenterFlip_GetBuffer(This,backBufferIndex,riid,ppBuffer) \ + ( (This)->lpVtbl -> GetBuffer(This,backBufferIndex,riid,ppBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISurfacePresenterFlip_INTERFACE_DEFINED__ */ + + +#ifndef __ISurfacePresenterFlip2_INTERFACE_DEFINED__ +#define __ISurfacePresenterFlip2_INTERFACE_DEFINED__ + +/* interface ISurfacePresenterFlip2 */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_ISurfacePresenterFlip2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30510865-98b5-11cf-bb82-00aa00bdce0b") + ISurfacePresenterFlip2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetRotation( + /* [in] */ DXGI_MODE_ROTATION dxgiRotation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISurfacePresenterFlip2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISurfacePresenterFlip2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISurfacePresenterFlip2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISurfacePresenterFlip2 * This); + + DECLSPEC_XFGVIRT(ISurfacePresenterFlip2, SetRotation) + HRESULT ( STDMETHODCALLTYPE *SetRotation )( + __RPC__in ISurfacePresenterFlip2 * This, + /* [in] */ DXGI_MODE_ROTATION dxgiRotation); + + END_INTERFACE + } ISurfacePresenterFlip2Vtbl; + + interface ISurfacePresenterFlip2 + { + CONST_VTBL struct ISurfacePresenterFlip2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISurfacePresenterFlip2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISurfacePresenterFlip2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISurfacePresenterFlip2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISurfacePresenterFlip2_SetRotation(This,dxgiRotation) \ + ( (This)->lpVtbl -> SetRotation(This,dxgiRotation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISurfacePresenterFlip2_INTERFACE_DEFINED__ */ + + +#ifndef __IViewObjectPresentFlipSite_INTERFACE_DEFINED__ +#define __IViewObjectPresentFlipSite_INTERFACE_DEFINED__ + +/* interface IViewObjectPresentFlipSite */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IViewObjectPresentFlipSite; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30510846-98b5-11cf-bb82-00aa00bdce0b") + IViewObjectPresentFlipSite : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateSurfacePresenterFlip( + /* [in] */ __RPC__in_opt IUnknown *pDevice, + /* [in] */ UINT width, + /* [in] */ UINT height, + /* [in] */ UINT backBufferCount, + /* [in] */ DXGI_FORMAT format, + /* [in] */ VIEW_OBJECT_ALPHA_MODE mode, + /* [out][retval] */ __RPC__deref_out_opt ISurfacePresenterFlip **ppSPFlip) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDeviceLuid( + /* [out][retval] */ __RPC__out LUID *pLuid) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnterFullScreen( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ExitFullScreen( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsFullScreen( + /* [out][retval] */ __RPC__out BOOL *pfFullScreen) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBoundingRect( + /* [out] */ __RPC__out RECT *pRect) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMetrics( + /* [out] */ __RPC__out POINT *pPos, + /* [out] */ __RPC__out SIZE *pSize, + /* [out] */ __RPC__out float *pScaleX, + /* [out] */ __RPC__out float *pScaleY) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFullScreenSize( + /* [out] */ __RPC__out SIZE *pSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IViewObjectPresentFlipSiteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IViewObjectPresentFlipSite * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IViewObjectPresentFlipSite * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IViewObjectPresentFlipSite * This); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlipSite, CreateSurfacePresenterFlip) + HRESULT ( STDMETHODCALLTYPE *CreateSurfacePresenterFlip )( + __RPC__in IViewObjectPresentFlipSite * This, + /* [in] */ __RPC__in_opt IUnknown *pDevice, + /* [in] */ UINT width, + /* [in] */ UINT height, + /* [in] */ UINT backBufferCount, + /* [in] */ DXGI_FORMAT format, + /* [in] */ VIEW_OBJECT_ALPHA_MODE mode, + /* [out][retval] */ __RPC__deref_out_opt ISurfacePresenterFlip **ppSPFlip); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlipSite, GetDeviceLuid) + HRESULT ( STDMETHODCALLTYPE *GetDeviceLuid )( + __RPC__in IViewObjectPresentFlipSite * This, + /* [out][retval] */ __RPC__out LUID *pLuid); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlipSite, EnterFullScreen) + HRESULT ( STDMETHODCALLTYPE *EnterFullScreen )( + __RPC__in IViewObjectPresentFlipSite * This); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlipSite, ExitFullScreen) + HRESULT ( STDMETHODCALLTYPE *ExitFullScreen )( + __RPC__in IViewObjectPresentFlipSite * This); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlipSite, IsFullScreen) + HRESULT ( STDMETHODCALLTYPE *IsFullScreen )( + __RPC__in IViewObjectPresentFlipSite * This, + /* [out][retval] */ __RPC__out BOOL *pfFullScreen); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlipSite, GetBoundingRect) + HRESULT ( STDMETHODCALLTYPE *GetBoundingRect )( + __RPC__in IViewObjectPresentFlipSite * This, + /* [out] */ __RPC__out RECT *pRect); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlipSite, GetMetrics) + HRESULT ( STDMETHODCALLTYPE *GetMetrics )( + __RPC__in IViewObjectPresentFlipSite * This, + /* [out] */ __RPC__out POINT *pPos, + /* [out] */ __RPC__out SIZE *pSize, + /* [out] */ __RPC__out float *pScaleX, + /* [out] */ __RPC__out float *pScaleY); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlipSite, GetFullScreenSize) + HRESULT ( STDMETHODCALLTYPE *GetFullScreenSize )( + __RPC__in IViewObjectPresentFlipSite * This, + /* [out] */ __RPC__out SIZE *pSize); + + END_INTERFACE + } IViewObjectPresentFlipSiteVtbl; + + interface IViewObjectPresentFlipSite + { + CONST_VTBL struct IViewObjectPresentFlipSiteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IViewObjectPresentFlipSite_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IViewObjectPresentFlipSite_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IViewObjectPresentFlipSite_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IViewObjectPresentFlipSite_CreateSurfacePresenterFlip(This,pDevice,width,height,backBufferCount,format,mode,ppSPFlip) \ + ( (This)->lpVtbl -> CreateSurfacePresenterFlip(This,pDevice,width,height,backBufferCount,format,mode,ppSPFlip) ) + +#define IViewObjectPresentFlipSite_GetDeviceLuid(This,pLuid) \ + ( (This)->lpVtbl -> GetDeviceLuid(This,pLuid) ) + +#define IViewObjectPresentFlipSite_EnterFullScreen(This) \ + ( (This)->lpVtbl -> EnterFullScreen(This) ) + +#define IViewObjectPresentFlipSite_ExitFullScreen(This) \ + ( (This)->lpVtbl -> ExitFullScreen(This) ) + +#define IViewObjectPresentFlipSite_IsFullScreen(This,pfFullScreen) \ + ( (This)->lpVtbl -> IsFullScreen(This,pfFullScreen) ) + +#define IViewObjectPresentFlipSite_GetBoundingRect(This,pRect) \ + ( (This)->lpVtbl -> GetBoundingRect(This,pRect) ) + +#define IViewObjectPresentFlipSite_GetMetrics(This,pPos,pSize,pScaleX,pScaleY) \ + ( (This)->lpVtbl -> GetMetrics(This,pPos,pSize,pScaleX,pScaleY) ) + +#define IViewObjectPresentFlipSite_GetFullScreenSize(This,pSize) \ + ( (This)->lpVtbl -> GetFullScreenSize(This,pSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IViewObjectPresentFlipSite_INTERFACE_DEFINED__ */ + + +#ifndef __IViewObjectPresentFlipSite2_INTERFACE_DEFINED__ +#define __IViewObjectPresentFlipSite2_INTERFACE_DEFINED__ + +/* interface IViewObjectPresentFlipSite2 */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IViewObjectPresentFlipSite2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("aad0cbf1-e7fd-4f12-8902-c78132a8e01d") + IViewObjectPresentFlipSite2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRotationForCurrentOutput( + /* [out] */ __RPC__out DXGI_MODE_ROTATION *pDxgiRotation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IViewObjectPresentFlipSite2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IViewObjectPresentFlipSite2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IViewObjectPresentFlipSite2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IViewObjectPresentFlipSite2 * This); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlipSite2, GetRotationForCurrentOutput) + HRESULT ( STDMETHODCALLTYPE *GetRotationForCurrentOutput )( + __RPC__in IViewObjectPresentFlipSite2 * This, + /* [out] */ __RPC__out DXGI_MODE_ROTATION *pDxgiRotation); + + END_INTERFACE + } IViewObjectPresentFlipSite2Vtbl; + + interface IViewObjectPresentFlipSite2 + { + CONST_VTBL struct IViewObjectPresentFlipSite2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IViewObjectPresentFlipSite2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IViewObjectPresentFlipSite2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IViewObjectPresentFlipSite2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IViewObjectPresentFlipSite2_GetRotationForCurrentOutput(This,pDxgiRotation) \ + ( (This)->lpVtbl -> GetRotationForCurrentOutput(This,pDxgiRotation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IViewObjectPresentFlipSite2_INTERFACE_DEFINED__ */ + + +#ifndef __IViewObjectPresentFlip_INTERFACE_DEFINED__ +#define __IViewObjectPresentFlip_INTERFACE_DEFINED__ + +/* interface IViewObjectPresentFlip */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IViewObjectPresentFlip; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30510847-98b5-11cf-bb82-00aa00bdce0b") + IViewObjectPresentFlip : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE NotifyRender( + BOOL fRecreatePresenter) = 0; + + virtual HRESULT STDMETHODCALLTYPE RenderObjectToBitmap( + /* [in] */ __RPC__in_opt IUnknown *pBitmap) = 0; + + virtual HRESULT STDMETHODCALLTYPE RenderObjectToSharedBuffer( + /* [in] */ __RPC__in_opt ISurfacePresenterFlipBuffer *pBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IViewObjectPresentFlipVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IViewObjectPresentFlip * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IViewObjectPresentFlip * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IViewObjectPresentFlip * This); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlip, NotifyRender) + HRESULT ( STDMETHODCALLTYPE *NotifyRender )( + __RPC__in IViewObjectPresentFlip * This, + BOOL fRecreatePresenter); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlip, RenderObjectToBitmap) + HRESULT ( STDMETHODCALLTYPE *RenderObjectToBitmap )( + __RPC__in IViewObjectPresentFlip * This, + /* [in] */ __RPC__in_opt IUnknown *pBitmap); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlip, RenderObjectToSharedBuffer) + HRESULT ( STDMETHODCALLTYPE *RenderObjectToSharedBuffer )( + __RPC__in IViewObjectPresentFlip * This, + /* [in] */ __RPC__in_opt ISurfacePresenterFlipBuffer *pBuffer); + + END_INTERFACE + } IViewObjectPresentFlipVtbl; + + interface IViewObjectPresentFlip + { + CONST_VTBL struct IViewObjectPresentFlipVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IViewObjectPresentFlip_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IViewObjectPresentFlip_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IViewObjectPresentFlip_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IViewObjectPresentFlip_NotifyRender(This,fRecreatePresenter) \ + ( (This)->lpVtbl -> NotifyRender(This,fRecreatePresenter) ) + +#define IViewObjectPresentFlip_RenderObjectToBitmap(This,pBitmap) \ + ( (This)->lpVtbl -> RenderObjectToBitmap(This,pBitmap) ) + +#define IViewObjectPresentFlip_RenderObjectToSharedBuffer(This,pBuffer) \ + ( (This)->lpVtbl -> RenderObjectToSharedBuffer(This,pBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IViewObjectPresentFlip_INTERFACE_DEFINED__ */ + + +#ifndef __IViewObjectPresentFlip2_INTERFACE_DEFINED__ +#define __IViewObjectPresentFlip2_INTERFACE_DEFINED__ + +/* interface IViewObjectPresentFlip2 */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IViewObjectPresentFlip2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30510856-98b5-11cf-bb82-00aa00bdce0b") + IViewObjectPresentFlip2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE NotifyLeavingView( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IViewObjectPresentFlip2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IViewObjectPresentFlip2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IViewObjectPresentFlip2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IViewObjectPresentFlip2 * This); + + DECLSPEC_XFGVIRT(IViewObjectPresentFlip2, NotifyLeavingView) + HRESULT ( STDMETHODCALLTYPE *NotifyLeavingView )( + __RPC__in IViewObjectPresentFlip2 * This); + + END_INTERFACE + } IViewObjectPresentFlip2Vtbl; + + interface IViewObjectPresentFlip2 + { + CONST_VTBL struct IViewObjectPresentFlip2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IViewObjectPresentFlip2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IViewObjectPresentFlip2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IViewObjectPresentFlip2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IViewObjectPresentFlip2_NotifyLeavingView(This) \ + ( (This)->lpVtbl -> NotifyLeavingView(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IViewObjectPresentFlip2_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveXUIHandlerSite2_INTERFACE_DEFINED__ +#define __IActiveXUIHandlerSite2_INTERFACE_DEFINED__ + +/* interface IActiveXUIHandlerSite2 */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IActiveXUIHandlerSite2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7E3707B2-D087-4542-AC1F-A0D2FCD080FD") + IActiveXUIHandlerSite2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddSuspensionExemption( + /* [out][retval] */ __RPC__out ULONGLONG *pullCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveSuspensionExemption( + /* [in] */ ULONGLONG ullCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveXUIHandlerSite2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveXUIHandlerSite2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveXUIHandlerSite2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveXUIHandlerSite2 * This); + + DECLSPEC_XFGVIRT(IActiveXUIHandlerSite2, AddSuspensionExemption) + HRESULT ( STDMETHODCALLTYPE *AddSuspensionExemption )( + __RPC__in IActiveXUIHandlerSite2 * This, + /* [out][retval] */ __RPC__out ULONGLONG *pullCookie); + + DECLSPEC_XFGVIRT(IActiveXUIHandlerSite2, RemoveSuspensionExemption) + HRESULT ( STDMETHODCALLTYPE *RemoveSuspensionExemption )( + __RPC__in IActiveXUIHandlerSite2 * This, + /* [in] */ ULONGLONG ullCookie); + + END_INTERFACE + } IActiveXUIHandlerSite2Vtbl; + + interface IActiveXUIHandlerSite2 + { + CONST_VTBL struct IActiveXUIHandlerSite2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveXUIHandlerSite2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveXUIHandlerSite2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveXUIHandlerSite2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveXUIHandlerSite2_AddSuspensionExemption(This,pullCookie) \ + ( (This)->lpVtbl -> AddSuspensionExemption(This,pullCookie) ) + +#define IActiveXUIHandlerSite2_RemoveSuspensionExemption(This,ullCookie) \ + ( (This)->lpVtbl -> RemoveSuspensionExemption(This,ullCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveXUIHandlerSite2_INTERFACE_DEFINED__ */ + + +#ifndef __ICaretPositionProvider_INTERFACE_DEFINED__ +#define __ICaretPositionProvider_INTERFACE_DEFINED__ + +/* interface ICaretPositionProvider */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_ICaretPositionProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("58DA43A2-108E-4D5B-9F75-E5F74F93FFF5") + ICaretPositionProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCaretPosition( + /* [out] */ __RPC__out POINT *pptCaret, + /* [out] */ __RPC__out float *pflHeight) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICaretPositionProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICaretPositionProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICaretPositionProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICaretPositionProvider * This); + + DECLSPEC_XFGVIRT(ICaretPositionProvider, GetCaretPosition) + HRESULT ( STDMETHODCALLTYPE *GetCaretPosition )( + __RPC__in ICaretPositionProvider * This, + /* [out] */ __RPC__out POINT *pptCaret, + /* [out] */ __RPC__out float *pflHeight); + + END_INTERFACE + } ICaretPositionProviderVtbl; + + interface ICaretPositionProvider + { + CONST_VTBL struct ICaretPositionProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICaretPositionProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICaretPositionProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICaretPositionProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICaretPositionProvider_GetCaretPosition(This,pptCaret,pflHeight) \ + ( (This)->lpVtbl -> GetCaretPosition(This,pptCaret,pflHeight) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICaretPositionProvider_INTERFACE_DEFINED__ */ + + +#ifndef __ITridentTouchInput_INTERFACE_DEFINED__ +#define __ITridentTouchInput_INTERFACE_DEFINED__ + +/* interface ITridentTouchInput */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_ITridentTouchInput; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30510850-98b5-11cf-bb82-00aa00bdce0b") + ITridentTouchInput : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnPointerMessage( + /* [in] */ UINT msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out BOOL *pfAllowManipulations) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITridentTouchInputVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITridentTouchInput * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITridentTouchInput * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITridentTouchInput * This); + + DECLSPEC_XFGVIRT(ITridentTouchInput, OnPointerMessage) + HRESULT ( STDMETHODCALLTYPE *OnPointerMessage )( + __RPC__in ITridentTouchInput * This, + /* [in] */ UINT msg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out BOOL *pfAllowManipulations); + + END_INTERFACE + } ITridentTouchInputVtbl; + + interface ITridentTouchInput + { + CONST_VTBL struct ITridentTouchInputVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITridentTouchInput_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITridentTouchInput_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITridentTouchInput_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITridentTouchInput_OnPointerMessage(This,msg,wParam,lParam,pfAllowManipulations) \ + ( (This)->lpVtbl -> OnPointerMessage(This,msg,wParam,lParam,pfAllowManipulations) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITridentTouchInput_INTERFACE_DEFINED__ */ + + +#ifndef __ITridentTouchInputSite_INTERFACE_DEFINED__ +#define __ITridentTouchInputSite_INTERFACE_DEFINED__ + +/* interface ITridentTouchInputSite */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_ITridentTouchInputSite; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30510849-98b5-11cf-bb82-00aa00bdce0b") + ITridentTouchInputSite : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetManipulationMode( + /* [in] */ styleMsTouchAction msTouchAction) = 0; + + virtual HRESULT STDMETHODCALLTYPE ZoomToPoint( + /* [in] */ LONG x, + /* [in] */ LONG y) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITridentTouchInputSiteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITridentTouchInputSite * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITridentTouchInputSite * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITridentTouchInputSite * This); + + DECLSPEC_XFGVIRT(ITridentTouchInputSite, SetManipulationMode) + HRESULT ( STDMETHODCALLTYPE *SetManipulationMode )( + __RPC__in ITridentTouchInputSite * This, + /* [in] */ styleMsTouchAction msTouchAction); + + DECLSPEC_XFGVIRT(ITridentTouchInputSite, ZoomToPoint) + HRESULT ( STDMETHODCALLTYPE *ZoomToPoint )( + __RPC__in ITridentTouchInputSite * This, + /* [in] */ LONG x, + /* [in] */ LONG y); + + END_INTERFACE + } ITridentTouchInputSiteVtbl; + + interface ITridentTouchInputSite + { + CONST_VTBL struct ITridentTouchInputSiteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITridentTouchInputSite_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITridentTouchInputSite_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITridentTouchInputSite_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITridentTouchInputSite_SetManipulationMode(This,msTouchAction) \ + ( (This)->lpVtbl -> SetManipulationMode(This,msTouchAction) ) + +#define ITridentTouchInputSite_ZoomToPoint(This,x,y) \ + ( (This)->lpVtbl -> ZoomToPoint(This,x,y) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITridentTouchInputSite_INTERFACE_DEFINED__ */ + + +#ifndef __IMediaActivityNotifySite_INTERFACE_DEFINED__ +#define __IMediaActivityNotifySite_INTERFACE_DEFINED__ + +/* interface IMediaActivityNotifySite */ +/* [uuid][unique][object] */ + +typedef +enum MediaActivityNotifyType + { + MediaPlayback = 0, + MediaRecording = ( MediaPlayback + 1 ) , + MediaCasting = ( MediaRecording + 1 ) + } MEDIA_ACTIVITY_NOTIFY_TYPE; + + +EXTERN_C const IID IID_IMediaActivityNotifySite; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8165cfef-179d-46c2-bc71-3fa726dc1f8d") + IMediaActivityNotifySite : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnMediaActivityStarted( + /* [in] */ MEDIA_ACTIVITY_NOTIFY_TYPE mediaActivityType) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnMediaActivityStopped( + /* [in] */ MEDIA_ACTIVITY_NOTIFY_TYPE mediaActivityType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMediaActivityNotifySiteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMediaActivityNotifySite * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMediaActivityNotifySite * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMediaActivityNotifySite * This); + + DECLSPEC_XFGVIRT(IMediaActivityNotifySite, OnMediaActivityStarted) + HRESULT ( STDMETHODCALLTYPE *OnMediaActivityStarted )( + __RPC__in IMediaActivityNotifySite * This, + /* [in] */ MEDIA_ACTIVITY_NOTIFY_TYPE mediaActivityType); + + DECLSPEC_XFGVIRT(IMediaActivityNotifySite, OnMediaActivityStopped) + HRESULT ( STDMETHODCALLTYPE *OnMediaActivityStopped )( + __RPC__in IMediaActivityNotifySite * This, + /* [in] */ MEDIA_ACTIVITY_NOTIFY_TYPE mediaActivityType); + + END_INTERFACE + } IMediaActivityNotifySiteVtbl; + + interface IMediaActivityNotifySite + { + CONST_VTBL struct IMediaActivityNotifySiteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMediaActivityNotifySite_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMediaActivityNotifySite_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMediaActivityNotifySite_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMediaActivityNotifySite_OnMediaActivityStarted(This,mediaActivityType) \ + ( (This)->lpVtbl -> OnMediaActivityStarted(This,mediaActivityType) ) + +#define IMediaActivityNotifySite_OnMediaActivityStopped(This,mediaActivityType) \ + ( (This)->lpVtbl -> OnMediaActivityStopped(This,mediaActivityType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMediaActivityNotifySite_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioSessionSite_INTERFACE_DEFINED__ +#define __IAudioSessionSite_INTERFACE_DEFINED__ + +/* interface IAudioSessionSite */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IAudioSessionSite; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d7d8b684-d02d-4517-b6b7-19e3dfe29c45") + IAudioSessionSite : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAudioSessionGuid( + /* [out][retval] */ __RPC__out GUID *audioSessionGuid) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnAudioStreamCreated( + /* [string][in] */ __RPC__in_string LPCWSTR endpointID) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnAudioStreamDestroyed( + /* [string][in] */ __RPC__in_string LPCWSTR endpointID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSessionSiteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAudioSessionSite * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAudioSessionSite * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAudioSessionSite * This); + + DECLSPEC_XFGVIRT(IAudioSessionSite, GetAudioSessionGuid) + HRESULT ( STDMETHODCALLTYPE *GetAudioSessionGuid )( + __RPC__in IAudioSessionSite * This, + /* [out][retval] */ __RPC__out GUID *audioSessionGuid); + + DECLSPEC_XFGVIRT(IAudioSessionSite, OnAudioStreamCreated) + HRESULT ( STDMETHODCALLTYPE *OnAudioStreamCreated )( + __RPC__in IAudioSessionSite * This, + /* [string][in] */ __RPC__in_string LPCWSTR endpointID); + + DECLSPEC_XFGVIRT(IAudioSessionSite, OnAudioStreamDestroyed) + HRESULT ( STDMETHODCALLTYPE *OnAudioStreamDestroyed )( + __RPC__in IAudioSessionSite * This, + /* [string][in] */ __RPC__in_string LPCWSTR endpointID); + + END_INTERFACE + } IAudioSessionSiteVtbl; + + interface IAudioSessionSite + { + CONST_VTBL struct IAudioSessionSiteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSessionSite_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSessionSite_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSessionSite_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioSessionSite_GetAudioSessionGuid(This,audioSessionGuid) \ + ( (This)->lpVtbl -> GetAudioSessionGuid(This,audioSessionGuid) ) + +#define IAudioSessionSite_OnAudioStreamCreated(This,endpointID) \ + ( (This)->lpVtbl -> OnAudioStreamCreated(This,endpointID) ) + +#define IAudioSessionSite_OnAudioStreamDestroyed(This,endpointID) \ + ( (This)->lpVtbl -> OnAudioStreamDestroyed(This,endpointID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSessionSite_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintTaskRequestHandler_INTERFACE_DEFINED__ +#define __IPrintTaskRequestHandler_INTERFACE_DEFINED__ + +/* interface IPrintTaskRequestHandler */ +/* [local][uuid][unique][object] */ + + +EXTERN_C const IID IID_IPrintTaskRequestHandler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("191CD340-CF36-44FF-BD53-D1B701799D9B") + IPrintTaskRequestHandler : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE HandlePrintTaskRequest( + /* [in] */ IInspectable *pPrintTaskRequest) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintTaskRequestHandlerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPrintTaskRequestHandler * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPrintTaskRequestHandler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPrintTaskRequestHandler * This); + + DECLSPEC_XFGVIRT(IPrintTaskRequestHandler, HandlePrintTaskRequest) + HRESULT ( STDMETHODCALLTYPE *HandlePrintTaskRequest )( + IPrintTaskRequestHandler * This, + /* [in] */ IInspectable *pPrintTaskRequest); + + END_INTERFACE + } IPrintTaskRequestHandlerVtbl; + + interface IPrintTaskRequestHandler + { + CONST_VTBL struct IPrintTaskRequestHandlerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintTaskRequestHandler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintTaskRequestHandler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintTaskRequestHandler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintTaskRequestHandler_HandlePrintTaskRequest(This,pPrintTaskRequest) \ + ( (This)->lpVtbl -> HandlePrintTaskRequest(This,pPrintTaskRequest) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintTaskRequestHandler_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintTaskRequestFactory_INTERFACE_DEFINED__ +#define __IPrintTaskRequestFactory_INTERFACE_DEFINED__ + +/* interface IPrintTaskRequestFactory */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IPrintTaskRequestFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BB516745-8C34-4F8B-9605-684DCB144BE5") + IPrintTaskRequestFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreatePrintTaskRequest( + /* [in] */ __RPC__in_opt IPrintTaskRequestHandler *pPrintTaskRequestHandler) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintTaskRequestFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPrintTaskRequestFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPrintTaskRequestFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPrintTaskRequestFactory * This); + + DECLSPEC_XFGVIRT(IPrintTaskRequestFactory, CreatePrintTaskRequest) + HRESULT ( STDMETHODCALLTYPE *CreatePrintTaskRequest )( + __RPC__in IPrintTaskRequestFactory * This, + /* [in] */ __RPC__in_opt IPrintTaskRequestHandler *pPrintTaskRequestHandler); + + END_INTERFACE + } IPrintTaskRequestFactoryVtbl; + + interface IPrintTaskRequestFactory + { + CONST_VTBL struct IPrintTaskRequestFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintTaskRequestFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintTaskRequestFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintTaskRequestFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintTaskRequestFactory_CreatePrintTaskRequest(This,pPrintTaskRequestHandler) \ + ( (This)->lpVtbl -> CreatePrintTaskRequest(This,pPrintTaskRequestHandler) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintTaskRequestFactory_INTERFACE_DEFINED__ */ + + +#ifndef __IScrollableContextMenu_INTERFACE_DEFINED__ +#define __IScrollableContextMenu_INTERFACE_DEFINED__ + +/* interface IScrollableContextMenu */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IScrollableContextMenu; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30510854-98b5-11cf-bb82-00aa00bdce0b") + IScrollableContextMenu : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddItem( + /* [string][in] */ __RPC__in_string LPCWSTR itemText, + /* [in] */ DWORD cmdID) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowModal( + /* [in] */ int x, + /* [in] */ int y, + /* [out] */ __RPC__out DWORD *cmdID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IScrollableContextMenuVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IScrollableContextMenu * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IScrollableContextMenu * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IScrollableContextMenu * This); + + DECLSPEC_XFGVIRT(IScrollableContextMenu, AddItem) + HRESULT ( STDMETHODCALLTYPE *AddItem )( + __RPC__in IScrollableContextMenu * This, + /* [string][in] */ __RPC__in_string LPCWSTR itemText, + /* [in] */ DWORD cmdID); + + DECLSPEC_XFGVIRT(IScrollableContextMenu, ShowModal) + HRESULT ( STDMETHODCALLTYPE *ShowModal )( + __RPC__in IScrollableContextMenu * This, + /* [in] */ int x, + /* [in] */ int y, + /* [out] */ __RPC__out DWORD *cmdID); + + END_INTERFACE + } IScrollableContextMenuVtbl; + + interface IScrollableContextMenu + { + CONST_VTBL struct IScrollableContextMenuVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IScrollableContextMenu_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IScrollableContextMenu_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IScrollableContextMenu_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IScrollableContextMenu_AddItem(This,itemText,cmdID) \ + ( (This)->lpVtbl -> AddItem(This,itemText,cmdID) ) + +#define IScrollableContextMenu_ShowModal(This,x,y,cmdID) \ + ( (This)->lpVtbl -> ShowModal(This,x,y,cmdID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IScrollableContextMenu_INTERFACE_DEFINED__ */ + + +#ifndef __IScrollableContextMenu2_INTERFACE_DEFINED__ +#define __IScrollableContextMenu2_INTERFACE_DEFINED__ + +/* interface IScrollableContextMenu2 */ +/* [uuid][unique][object] */ + +typedef +enum tagSCROLLABLECONTEXTMENU_PLACEMENT + { + SCMP_TOP = 0, + SCMP_BOTTOM = 1, + SCMP_LEFT = 2, + SCMP_RIGHT = 3, + SCMP_FULL = 4 + } SCROLLABLECONTEXTMENU_PLACEMENT; + + +EXTERN_C const IID IID_IScrollableContextMenu2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F77E9056-8674-4936-924C-0E4A06FA634A") + IScrollableContextMenu2 : public IScrollableContextMenu + { + public: + virtual HRESULT STDMETHODCALLTYPE AddSeparator( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPlacement( + /* [in] */ SCROLLABLECONTEXTMENU_PLACEMENT scmp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IScrollableContextMenu2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IScrollableContextMenu2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IScrollableContextMenu2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IScrollableContextMenu2 * This); + + DECLSPEC_XFGVIRT(IScrollableContextMenu, AddItem) + HRESULT ( STDMETHODCALLTYPE *AddItem )( + __RPC__in IScrollableContextMenu2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR itemText, + /* [in] */ DWORD cmdID); + + DECLSPEC_XFGVIRT(IScrollableContextMenu, ShowModal) + HRESULT ( STDMETHODCALLTYPE *ShowModal )( + __RPC__in IScrollableContextMenu2 * This, + /* [in] */ int x, + /* [in] */ int y, + /* [out] */ __RPC__out DWORD *cmdID); + + DECLSPEC_XFGVIRT(IScrollableContextMenu2, AddSeparator) + HRESULT ( STDMETHODCALLTYPE *AddSeparator )( + __RPC__in IScrollableContextMenu2 * This); + + DECLSPEC_XFGVIRT(IScrollableContextMenu2, SetPlacement) + HRESULT ( STDMETHODCALLTYPE *SetPlacement )( + __RPC__in IScrollableContextMenu2 * This, + /* [in] */ SCROLLABLECONTEXTMENU_PLACEMENT scmp); + + END_INTERFACE + } IScrollableContextMenu2Vtbl; + + interface IScrollableContextMenu2 + { + CONST_VTBL struct IScrollableContextMenu2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IScrollableContextMenu2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IScrollableContextMenu2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IScrollableContextMenu2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IScrollableContextMenu2_AddItem(This,itemText,cmdID) \ + ( (This)->lpVtbl -> AddItem(This,itemText,cmdID) ) + +#define IScrollableContextMenu2_ShowModal(This,x,y,cmdID) \ + ( (This)->lpVtbl -> ShowModal(This,x,y,cmdID) ) + + +#define IScrollableContextMenu2_AddSeparator(This) \ + ( (This)->lpVtbl -> AddSeparator(This) ) + +#define IScrollableContextMenu2_SetPlacement(This,scmp) \ + ( (This)->lpVtbl -> SetPlacement(This,scmp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IScrollableContextMenu2_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveXUIHandlerSite_INTERFACE_DEFINED__ +#define __IActiveXUIHandlerSite_INTERFACE_DEFINED__ + +/* interface IActiveXUIHandlerSite */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IActiveXUIHandlerSite; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30510853-98b5-11cf-bb82-00aa00bdce0b") + IActiveXUIHandlerSite : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateScrollableContextMenu( + /* [out][retval] */ __RPC__deref_out_opt IScrollableContextMenu **scrollableContextMenu) = 0; + + virtual HRESULT STDMETHODCALLTYPE PickFileAndGetResult( + /* [in] */ __RPC__in_opt IUnknown *filePicker, + /* [in] */ BOOL allowMultipleSelections, + /* [out][retval] */ __RPC__deref_out_opt IUnknown **result) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveXUIHandlerSiteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveXUIHandlerSite * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveXUIHandlerSite * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveXUIHandlerSite * This); + + DECLSPEC_XFGVIRT(IActiveXUIHandlerSite, CreateScrollableContextMenu) + HRESULT ( STDMETHODCALLTYPE *CreateScrollableContextMenu )( + __RPC__in IActiveXUIHandlerSite * This, + /* [out][retval] */ __RPC__deref_out_opt IScrollableContextMenu **scrollableContextMenu); + + DECLSPEC_XFGVIRT(IActiveXUIHandlerSite, PickFileAndGetResult) + HRESULT ( STDMETHODCALLTYPE *PickFileAndGetResult )( + __RPC__in IActiveXUIHandlerSite * This, + /* [in] */ __RPC__in_opt IUnknown *filePicker, + /* [in] */ BOOL allowMultipleSelections, + /* [out][retval] */ __RPC__deref_out_opt IUnknown **result); + + END_INTERFACE + } IActiveXUIHandlerSiteVtbl; + + interface IActiveXUIHandlerSite + { + CONST_VTBL struct IActiveXUIHandlerSiteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveXUIHandlerSite_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveXUIHandlerSite_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveXUIHandlerSite_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveXUIHandlerSite_CreateScrollableContextMenu(This,scrollableContextMenu) \ + ( (This)->lpVtbl -> CreateScrollableContextMenu(This,scrollableContextMenu) ) + +#define IActiveXUIHandlerSite_PickFileAndGetResult(This,filePicker,allowMultipleSelections,result) \ + ( (This)->lpVtbl -> PickFileAndGetResult(This,filePicker,allowMultipleSelections,result) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveXUIHandlerSite_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveXUIHandlerSite3_INTERFACE_DEFINED__ +#define __IActiveXUIHandlerSite3_INTERFACE_DEFINED__ + +/* interface IActiveXUIHandlerSite3 */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IActiveXUIHandlerSite3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7904009a-1238-47f4-901c-871375c34608") + IActiveXUIHandlerSite3 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE MessageBoxW( + /* [unique][in] */ __RPC__in_opt HWND hwnd, + /* [unique][in] */ __RPC__in_opt LPCWSTR text, + /* [unique][in] */ __RPC__in_opt LPCWSTR caption, + /* [in] */ UINT type, + /* [out] */ __RPC__out INT *result) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveXUIHandlerSite3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveXUIHandlerSite3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveXUIHandlerSite3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveXUIHandlerSite3 * This); + + DECLSPEC_XFGVIRT(IActiveXUIHandlerSite3, MessageBoxW) + HRESULT ( STDMETHODCALLTYPE *MessageBoxW )( + __RPC__in IActiveXUIHandlerSite3 * This, + /* [unique][in] */ __RPC__in_opt HWND hwnd, + /* [unique][in] */ __RPC__in_opt LPCWSTR text, + /* [unique][in] */ __RPC__in_opt LPCWSTR caption, + /* [in] */ UINT type, + /* [out] */ __RPC__out INT *result); + + END_INTERFACE + } IActiveXUIHandlerSite3Vtbl; + + interface IActiveXUIHandlerSite3 + { + CONST_VTBL struct IActiveXUIHandlerSite3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveXUIHandlerSite3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveXUIHandlerSite3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveXUIHandlerSite3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveXUIHandlerSite3_MessageBoxW(This,hwnd,text,caption,type,result) \ + ( (This)->lpVtbl -> MessageBoxW(This,hwnd,text,caption,type,result) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveXUIHandlerSite3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ie12plugin_0000_0019 */ +/* [local] */ + +//;end_internal + + +extern RPC_IF_HANDLE __MIDL_itf_ie12plugin_0000_0019_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ie12plugin_0000_0019_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEDial.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEDial.h new file mode 100644 index 0000000000000000000000000000000000000000..376dacd3aed84aa493c7acd4aec084edd204e178 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEDial.h @@ -0,0 +1,486 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __iedial_h__ +#define __iedial_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDialEventSink_FWD_DEFINED__ +#define __IDialEventSink_FWD_DEFINED__ +typedef interface IDialEventSink IDialEventSink; + +#endif /* __IDialEventSink_FWD_DEFINED__ */ + + +#ifndef __IDialEngine_FWD_DEFINED__ +#define __IDialEngine_FWD_DEFINED__ +typedef interface IDialEngine IDialEngine; + +#endif /* __IDialEngine_FWD_DEFINED__ */ + + +#ifndef __IDialBranding_FWD_DEFINED__ +#define __IDialBranding_FWD_DEFINED__ +typedef interface IDialBranding IDialBranding; + +#endif /* __IDialBranding_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_iedial_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// iedial.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma comment(lib,"uuid.lib") + +//---------------------------------------------------------------------------= + + + +extern RPC_IF_HANDLE __MIDL_itf_iedial_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iedial_0000_0000_v0_0_s_ifspec; + +#ifndef __IDialEventSink_INTERFACE_DEFINED__ +#define __IDialEventSink_INTERFACE_DEFINED__ + +/* interface IDialEventSink */ +/* [object][helpstring][version][uuid] */ + + +EXTERN_C const IID IID_IDialEventSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2d86f4ff-6e2d-4488-b2e9-6934afd41bea") + IDialEventSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnEvent( + /* [in] */ DWORD dwEvent, + /* [in] */ DWORD dwStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDialEventSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDialEventSink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDialEventSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDialEventSink * This); + + DECLSPEC_XFGVIRT(IDialEventSink, OnEvent) + HRESULT ( STDMETHODCALLTYPE *OnEvent )( + __RPC__in IDialEventSink * This, + /* [in] */ DWORD dwEvent, + /* [in] */ DWORD dwStatus); + + END_INTERFACE + } IDialEventSinkVtbl; + + interface IDialEventSink + { + CONST_VTBL struct IDialEventSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDialEventSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDialEventSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDialEventSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDialEventSink_OnEvent(This,dwEvent,dwStatus) \ + ( (This)->lpVtbl -> OnEvent(This,dwEvent,dwStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDialEventSink_INTERFACE_DEFINED__ */ + + +#ifndef __IDialEngine_INTERFACE_DEFINED__ +#define __IDialEngine_INTERFACE_DEFINED__ + +/* interface IDialEngine */ +/* [object][helpstring][version][uuid] */ + + +EXTERN_C const IID IID_IDialEngine; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("39fd782b-7905-40d5-9148-3c9b190423d5") + IDialEngine : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in LPCWSTR pwzConnectoid, + /* [in] */ __RPC__in_opt IDialEventSink *pIDES) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ __RPC__in LPCWSTR pwzProperty, + /* [in] */ __RPC__in LPWSTR pwzValue, + /* [in] */ DWORD dwBufSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ __RPC__in LPCWSTR pwzProperty, + /* [in] */ __RPC__in LPCWSTR pwzValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Dial( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE HangUp( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConnectedState( + /* [out] */ __RPC__out DWORD *pdwState) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConnectHandle( + /* [out] */ __RPC__out DWORD_PTR *pdwHandle) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDialEngineVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDialEngine * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDialEngine * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDialEngine * This); + + DECLSPEC_XFGVIRT(IDialEngine, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IDialEngine * This, + /* [in] */ __RPC__in LPCWSTR pwzConnectoid, + /* [in] */ __RPC__in_opt IDialEventSink *pIDES); + + DECLSPEC_XFGVIRT(IDialEngine, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IDialEngine * This, + /* [in] */ __RPC__in LPCWSTR pwzProperty, + /* [in] */ __RPC__in LPWSTR pwzValue, + /* [in] */ DWORD dwBufSize); + + DECLSPEC_XFGVIRT(IDialEngine, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IDialEngine * This, + /* [in] */ __RPC__in LPCWSTR pwzProperty, + /* [in] */ __RPC__in LPCWSTR pwzValue); + + DECLSPEC_XFGVIRT(IDialEngine, Dial) + HRESULT ( STDMETHODCALLTYPE *Dial )( + __RPC__in IDialEngine * This); + + DECLSPEC_XFGVIRT(IDialEngine, HangUp) + HRESULT ( STDMETHODCALLTYPE *HangUp )( + __RPC__in IDialEngine * This); + + DECLSPEC_XFGVIRT(IDialEngine, GetConnectedState) + HRESULT ( STDMETHODCALLTYPE *GetConnectedState )( + __RPC__in IDialEngine * This, + /* [out] */ __RPC__out DWORD *pdwState); + + DECLSPEC_XFGVIRT(IDialEngine, GetConnectHandle) + HRESULT ( STDMETHODCALLTYPE *GetConnectHandle )( + __RPC__in IDialEngine * This, + /* [out] */ __RPC__out DWORD_PTR *pdwHandle); + + END_INTERFACE + } IDialEngineVtbl; + + interface IDialEngine + { + CONST_VTBL struct IDialEngineVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDialEngine_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDialEngine_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDialEngine_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDialEngine_Initialize(This,pwzConnectoid,pIDES) \ + ( (This)->lpVtbl -> Initialize(This,pwzConnectoid,pIDES) ) + +#define IDialEngine_GetProperty(This,pwzProperty,pwzValue,dwBufSize) \ + ( (This)->lpVtbl -> GetProperty(This,pwzProperty,pwzValue,dwBufSize) ) + +#define IDialEngine_SetProperty(This,pwzProperty,pwzValue) \ + ( (This)->lpVtbl -> SetProperty(This,pwzProperty,pwzValue) ) + +#define IDialEngine_Dial(This) \ + ( (This)->lpVtbl -> Dial(This) ) + +#define IDialEngine_HangUp(This) \ + ( (This)->lpVtbl -> HangUp(This) ) + +#define IDialEngine_GetConnectedState(This,pdwState) \ + ( (This)->lpVtbl -> GetConnectedState(This,pdwState) ) + +#define IDialEngine_GetConnectHandle(This,pdwHandle) \ + ( (This)->lpVtbl -> GetConnectHandle(This,pdwHandle) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDialEngine_INTERFACE_DEFINED__ */ + + +#ifndef __IDialBranding_INTERFACE_DEFINED__ +#define __IDialBranding_INTERFACE_DEFINED__ + +/* interface IDialBranding */ +/* [object][helpstring][version][uuid] */ + + +EXTERN_C const IID IID_IDialBranding; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8aecafa9-4306-43cc-8c5a-765f2979cc16") + IDialBranding : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in LPCWSTR pwzConnectoid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBitmap( + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt HBITMAP *phBitmap) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDialBrandingVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDialBranding * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDialBranding * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDialBranding * This); + + DECLSPEC_XFGVIRT(IDialBranding, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IDialBranding * This, + /* [in] */ __RPC__in LPCWSTR pwzConnectoid); + + DECLSPEC_XFGVIRT(IDialBranding, GetBitmap) + HRESULT ( STDMETHODCALLTYPE *GetBitmap )( + __RPC__in IDialBranding * This, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__deref_out_opt HBITMAP *phBitmap); + + END_INTERFACE + } IDialBrandingVtbl; + + interface IDialBranding + { + CONST_VTBL struct IDialBrandingVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDialBranding_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDialBranding_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDialBranding_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDialBranding_Initialize(This,pwzConnectoid) \ + ( (This)->lpVtbl -> Initialize(This,pwzConnectoid) ) + +#define IDialBranding_GetBitmap(This,dwIndex,phBitmap) \ + ( (This)->lpVtbl -> GetBitmap(This,dwIndex,phBitmap) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDialBranding_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_iedial_0000_0003 */ +/* [local] */ + +#define DIALPROP_USERNAME L"UserName" +#define DIALPROP_PASSWORD L"Password" +#define DIALPROP_DOMAIN L"Domain" +#define DIALPROP_SAVEPASSWORD L"SavePassword" +#define DIALPROP_REDIALCOUNT L"RedialCount" +#define DIALPROP_REDIALINTERVAL L"RedialInterval" +#define DIALPROP_PHONENUMBER L"PhoneNumber" +#define DIALPROP_LASTERROR L"LastError" +#define DIALPROP_RESOLVEDPHONE L"ResolvedPhone" + +#define DIALENG_OperationComplete 0x10000 +#define DIALENG_RedialAttempt 0x10001 +#define DIALENG_RedialWait 0x10002 +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_iedial_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iedial_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HBITMAP_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HBITMAP * ); +void __RPC_USER HBITMAP_UserFree( __RPC__in unsigned long *, __RPC__in HBITMAP * ); + +unsigned long __RPC_USER HBITMAP_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HBITMAP * ); +void __RPC_USER HBITMAP_UserFree64( __RPC__in unsigned long *, __RPC__in HBITMAP * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEDial.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEDial.idl new file mode 100644 index 0000000000000000000000000000000000000000..5269cb727269a752bc8bce3c6be5626f5534d881 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEDial.idl @@ -0,0 +1,92 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +//-------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// iedial.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//---------------------------------------------------------------------------=") +cpp_quote("") + +#ifndef DO_NO_IMPORTS +import "unknwn.idl"; +import "ocidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; +#endif + +[ + uuid(2d86f4ff-6e2d-4488-b2e9-6934afd41bea), + version(1.0), + helpstring("Dial Event Sink") +] +interface IDialEventSink : IUnknown +{ + HRESULT OnEvent([in] DWORD dwEvent, [in] DWORD dwStatus); +} + + +[ + uuid(39fd782b-7905-40d5-9148-3c9b190423d5), + version(1.0), + helpstring("Dial Engine interface") +] +interface IDialEngine : IUnknown +{ + HRESULT Initialize([in] LPCWSTR pwzConnectoid, [in] IDialEventSink *pIDES); + HRESULT GetProperty([in] LPCWSTR pwzProperty, [in] LPWSTR pwzValue, [in] DWORD dwBufSize); + HRESULT SetProperty([in] LPCWSTR pwzProperty, [in] LPCWSTR pwzValue); + HRESULT Dial(void); + HRESULT HangUp(void); + HRESULT GetConnectedState([out] DWORD *pdwState); + HRESULT GetConnectHandle([out] DWORD_PTR *pdwHandle); +} + + +[ + uuid(8aecafa9-4306-43cc-8c5a-765f2979cc16), + version(1.0), + helpstring("Dial Branding") +] +interface IDialBranding : IUnknown +{ + HRESULT Initialize([in] LPCWSTR pwzConnectoid); + HRESULT GetBitmap([in] DWORD dwIndex, [out] HBITMAP *phBitmap); +} + + +cpp_quote("#define DIALPROP_USERNAME L\"UserName\" ") +cpp_quote("#define DIALPROP_PASSWORD L\"Password\" ") +cpp_quote("#define DIALPROP_DOMAIN L\"Domain\" ") +cpp_quote("#define DIALPROP_SAVEPASSWORD L\"SavePassword\" ") +cpp_quote("#define DIALPROP_REDIALCOUNT L\"RedialCount\" ") +cpp_quote("#define DIALPROP_REDIALINTERVAL L\"RedialInterval\" ") +cpp_quote("#define DIALPROP_PHONENUMBER L\"PhoneNumber\" ") +cpp_quote("#define DIALPROP_LASTERROR L\"LastError\" ") +cpp_quote("#define DIALPROP_RESOLVEDPHONE L\"ResolvedPhone\" ") +cpp_quote("") +cpp_quote("#define DIALENG_OperationComplete 0x10000 ") +cpp_quote("#define DIALENG_RedialAttempt 0x10001 ") +cpp_quote("#define DIALENG_RedialWait 0x10002 ") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEObj.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEObj.h new file mode 100644 index 0000000000000000000000000000000000000000..1597365ca711ae31bc2d18947b5270319f7b9afc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEObj.h @@ -0,0 +1,81 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: ieobj.h +// +// Description: +// Defines the IEFRAME API. +// +//---------------------------------------------------------------------------- +#ifndef _IEOBJ_ +#define _IEOBJ_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Internet Explorer suppresses script-initiated dialog boxes and other UI +// elements if the calling thread is not the thread for the active tab or is not +// associated with the thread for the active tab. +// +// This method enables any thread to be associated with the specified tab thread +// so that the dialog suppression and other logic treats code running on the +// specified thread the same way that it does for the tab thread. +// +// Parameters: +// +// dwTabThreadID - ID of the tab thread +// dwAssociatedThreadID - ID of the thread to associate with the tab thread. +// +STDAPI IEAssociateThreadWithTab(_In_ DWORD dwTabThreadID, + _In_ DWORD dwAssociatedThreadID); + +// +// This method unassociates a thread previously associated with IEAssociateThreadWithTab. +// +// Parameters: +// +// dwTabThreadID - ID of the tab thread +// dwAssociatedThreadID - ID of the thread to disassociate with the tab thread. +// +STDAPI IEDisassociateThreadWithTab(_In_ DWORD dwTabThreadID, + _In_ DWORD dwAssociatedThreadID); + + +// This method returns Internet Explorer's InPrivate Browsing status. +// +// Return values: +// TRUE- InPrivate Browsing is enabled. +// FALSE - InPrivate Browsing is not enabled. +// +BOOL IEIsInPrivateBrowsing(); + +// This method returns Internet Explorer's InPrivate Blocking status. +// +// Return values: +// TRUE- InPrivate Blocking is enabled. +// FALSE - InPrivate Blocking is not enabled. +// +BOOL IEInPrivateFilteringEnabled(); + +// This method returns Internet Explorer's Tracking Protection status. +// +// Return values: +// TRUE- Tracking Protection is enabled. +// FALSE - Tracking Protection is not enabled. +// +BOOL IETrackingProtectionEnabled(); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //_IEOBJ_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEPMapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEPMapi.h new file mode 100644 index 0000000000000000000000000000000000000000..08fc788f3f7f2e9862e52347001d48383fc15e92 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEPMapi.h @@ -0,0 +1,399 @@ +//+------------------------------------------------------------------------- +// +// iepmapi.h -- This module defines the IE Protected Mode APIs +// +// Copyright (c) Microsoft Corp. All rights reserved. +// +//-------------------------------------------------------------------------- +#ifndef _IEPMAPI_ +#define _IEPMAPI_ + + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// Remap old API names to new ones. +#define IEGetWriteableHKCU IEGetWriteableLowHKCU + + +// IE Launch Option Flags + +typedef enum { + IELAUNCHOPTION_SCRIPTDEBUG = 0x00000001, + IELAUNCHOPTION_FORCE_COMPAT = 0x00000002, + IELAUNCHOPTION_FORCE_EDGE = 0x00000004, + IELAUNCHOPTION_LOCK_ENGINE = 0x00000008, +} IELAUNCHOPTION_FLAGS; + +//+------------------------------------------------------------------------- +// +// Structure: IELAUNCHURLINFO +// +// Members: +// cbSize - Size of the structure, in bytes. +// dwCreationFlags - Process Creation flags used by CreateProcess +// and CreateProcessAsUser functions. +// dwLaunchOptions - Combination of IELAUNCHOPTION_FLAGS +//-------------------------------------------------------------------------- +typedef struct _IELAUNCHURLINFO { + DWORD cbSize; + DWORD dwCreationFlags; + DWORD dwLaunchOptionFlags; +} IELAUNCHURLINFO, *LPIELAUNCHURLINFO; + +//+------------------------------------------------------------------------- +// +// Method: IESaveFile +// +// Synopsis: Saves the file to the location selected by the user in a +// previous call to IEShowSaveFileDialog +// +//-------------------------------------------------------------------------- +STDAPI IESaveFile( + _In_ HANDLE hState, + _In_ LPCWSTR lpwstrSourceFile + ); + + +//+------------------------------------------------------------------------- +// +// Method: IECancelSaveFile +// +// Synopsis: Cancels the save operation and releases the resources +// allocated for the previous call to IEShowSaveFileDialog +// +//-------------------------------------------------------------------------- +STDAPI IECancelSaveFile( + _In_ HANDLE hState + ); + + +//+------------------------------------------------------------------------- +// +// Method: IEShowSaveFileDialog +// +// Synopsis: Shows the standard SaveFile dialog from a higher integrity +// user context +// +// Remarks: When no longer needed, call CoTaskMemFree to release +// lppwstrDestinationFilePath +// +//-------------------------------------------------------------------------- +STDAPI IEShowSaveFileDialog( + _In_ HWND hwnd, + _In_ LPCWSTR lpwstrInitialFileName, + _In_opt_ LPCWSTR lpwstrInitialDir, + _In_opt_ LPCWSTR lpwstrFilter, + _In_opt_ LPCWSTR lpwstrDefExt, + _In_ DWORD dwFilterIndex, + _In_ DWORD dwFlags, + _Outptr_ LPWSTR *lppwstrDestinationFilePath, + _Out_ HANDLE *phState + ); + + + +//+------------------------------------------------------------------------- +// +// Method: IEShowOpenFileDialog +// +// Synopsis: Shows the standard OpenFile dialog from a higher integrity +// user context +// +//-------------------------------------------------------------------------- +STDAPI IEShowOpenFileDialog( + __in HWND hwnd, + __inout_ecount(cchMaxFileName) LPWSTR lpwstrFileName, + __in DWORD cchMaxFileName, + __in_opt LPCWSTR lpwstrInitialDir, + __in_opt LPCWSTR lpwstrFilter, + __in_opt LPCWSTR lpwstrDefExt, + __in DWORD dwFilterIndex, + __in DWORD dwFlags, + __out HANDLE *phFile + ); + + +//+------------------------------------------------------------------------- +// +// Method: IEGetWriteableLowHKCU +// +// Synopsis: Returns a handle to a write accessible location under +// HKEY_CURRENT_USER for MIC Low process +// +// Remarks: When no longer needed, call RegCloseKey function to close +// the HKEY +// +//-------------------------------------------------------------------------- +STDAPI IEGetWriteableLowHKCU( + _Out_ HKEY *pHKey + ); + + +//+------------------------------------------------------------------------- +// +// Method: IEGetWriteableFolderPath +// +// Synopsis: Returns the current location of the specified folder. +// In protected mode, the path points to a location where +// the user has write permissions +// +// Remarks: When no longer needed, call CoTaskMemFree to release the +// lppwstrPath +// +//-------------------------------------------------------------------------- +STDAPI IEGetWriteableFolderPath( + _In_ REFGUID clsidFolderID, + _Outptr_ LPWSTR *lppwstrPath + ); + + +//+------------------------------------------------------------------------- +// +// Method: IEIsProtectedModeProcess +// +// Synopsis: Determines if Internet Explorer is running in protected mode +// +//-------------------------------------------------------------------------- +STDAPI IEIsProtectedModeProcess( + _Out_ BOOL *pbResult + ); + + +//+------------------------------------------------------------------------- +// +// Method: IEIsProtectedModeURL +// +// Synopsis: Determines if the URL runs in Protected Mode or not +// +//-------------------------------------------------------------------------- +STDAPI IEIsProtectedModeURL( + _In_ LPCWSTR lpwstrUrl + ); + +//+------------------------------------------------------------------------- +// +// Method: IELaunchURL +// +// Synopsis: Launches the appropriate IE to handle the navigation to +// the URL +// +//-------------------------------------------------------------------------- +STDAPI IELaunchURL( + _In_ LPCWSTR lpwstrUrl, + _Inout_ PROCESS_INFORMATION *lpProcInfo, + _In_opt_ VOID *lpInfo + ); + +//+------------------------------------------------------------------------- +// +// Method: IERefreshElevationPolicy +// +// Synopsis: Causes the next elevation policy look up to refresh from +// the registry +// +//-------------------------------------------------------------------------- +STDAPI IERefreshElevationPolicy(); + +//+------------------------------------------------------------------------- +// +// Method: IEGetProtectedModeCookie +// +// Synopsis: Retrieves the cookie data from the Protected Mode Cookie store +// +//-------------------------------------------------------------------------- +STDAPI IEGetProtectedModeCookie(_In_ LPCWSTR lpszURL, + _In_ LPCWSTR lpszCookieName, + _Inout_updates_(*pcchCookieData) LPWSTR lpszCookieData, + _Inout_ DWORD *pcchCookieData, + _In_ DWORD dwFlags); + +//+------------------------------------------------------------------------- +// +// Method: IESetProtectedModeCookie +// +// Synopsis: Set the cookie data in the Protected Mode Cookie store +// +//-------------------------------------------------------------------------- +STDAPI IESetProtectedModeCookie(_In_ LPCWSTR lpszURL, + _In_ LPCWSTR lpszCookieName, + _In_ LPCWSTR lpszCookieData, + _In_ DWORD dwFlags); + +//+------------------------------------------------------------------------- +// +// Method: IERegisterWritableRegistryKey +// +// Synopsis: Register a subkey path during installation so that +// low process can write into this location during run time. +// +//-------------------------------------------------------------------------- +STDAPI IERegisterWritableRegistryKey( + GUID guid, + _In_ LPCWSTR lpSubkey, + BOOL fSubkeyAllowed +); + +//+------------------------------------------------------------------------- +// +// Method: IERegisterWritableRegistryValue +// +// Synopsis: Register a value in a subkey path during installation so that +// low process can write into this location during run time. +// +//-------------------------------------------------------------------------- +STDAPI IERegisterWritableRegistryValue( + GUID guid, + _In_ LPCWSTR lpPath, + _In_ LPCWSTR lpValueName, + DWORD dwType, + _In_reads_bytes_opt_(cbMaxData) const BYTE* lpData, + DWORD cbMaxData +); + +//+------------------------------------------------------------------------- +// +// Method: IEUnregisterWritableRegistryKey +// +// Synopsis: Unregister a registry path during uninstallation so that +// low process can not write into this location +// +//-------------------------------------------------------------------------- +STDAPI IEUnregisterWritableRegistry( + GUID guid +); + +//+------------------------------------------------------------------------- +// +// Method: IERegCreateKeyEx +// +// Synopsis: Call Broker to do RegCreateKeyEx on pre-registered locations +// +//-------------------------------------------------------------------------- +STDAPI IERegCreateKeyEx( + _In_ LPCWSTR lpSubKey, + _In_ DWORD Reserved, + _In_opt_ LPWSTR lpClass, + _In_ DWORD dwOptions, + _In_ REGSAM samDesired, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, + _Out_ PHKEY phkResult, + _Out_ LPDWORD lpdwDisposition); + +//+------------------------------------------------------------------------- +// +// Method: IERegSetValueEx +// +// Synopsis: Call Broker to do RegSetValueEx on pre-registered location +// +//-------------------------------------------------------------------------- +STDAPI IERegSetValueEx( + _In_ LPCWSTR lpSubKey, + _In_ LPCWSTR lpValueName, + _In_ DWORD Reserved, + _In_ DWORD dwType, + _In_reads_bytes_(cbData) const BYTE* lpData, + _In_ DWORD cbData); + +//+------------------------------------------------------------------------- +// +// Method: IECreateFile +// +// Synopsis: wrapper to CreateFile +// +//-------------------------------------------------------------------------- +HANDLE IECreateFile( + _In_ LPCWSTR lpFileName, + DWORD dwDesiredAccess, + DWORD dwShareMode, + _In_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, + DWORD dwCreationDisposition, + DWORD dwFlagsAndAttributes, + _In_opt_ HANDLE hTemplateFile +); + +//+------------------------------------------------------------------------- +// +// Method: IEDeleteFile +// +// Synopsis: wrapper to DeleteFile +// +//-------------------------------------------------------------------------- +BOOL IEDeleteFile( + _In_ LPCWSTR lpFileName +); + +//+------------------------------------------------------------------------- +// +// Method: IERemoveDirectory +// +// Synopsis: wrapper to RemoveDirectory +// +//-------------------------------------------------------------------------- +BOOL IERemoveDirectory( + _In_ LPCWSTR lpPathName +); + +//+------------------------------------------------------------------------- +// +// Method: IEMoveFileEx +// +// Synopsis: wrapper to MoveFileEx +// +//-------------------------------------------------------------------------- +BOOL IEMoveFileEx( + _In_ LPCWSTR lpExistingFileName, + _In_ LPCWSTR lpNewFileName, + DWORD dwFlags +); + +//+------------------------------------------------------------------------- +// +// Method: IECreateDirectory +// +// Synopsis: wrapper to CreateDirectory +// +//-------------------------------------------------------------------------- +BOOL IECreateDirectory( + _In_ LPCWSTR lpPathName, + _In_ LPSECURITY_ATTRIBUTES lpSecurityAttributes +); + +//+------------------------------------------------------------------------- +// +// Method: IEGetFileAttributesEx +// +// Synopsis: wrapper to GetFileAttributesEx +// +//-------------------------------------------------------------------------- +BOOL IEGetFileAttributesEx( + _In_ LPCWSTR lpFileName, + GET_FILEEX_INFO_LEVELS fInfoLevelId, + _In_ LPVOID lpFileInformation +); + +//+------------------------------------------------------------------------- +// +// Method: IEFindFirstFile +// +// Synopsis: wrapper to FindFirstFile +// +//-------------------------------------------------------------------------- +HANDLE IEFindFirstFile( + _In_ LPCWSTR lpFileName, + _In_ LPWIN32_FIND_DATA lpFindFileData +); + +// registration ID for enhanced protected mode compatibility +EXTERN_C GUID CATID_AppContainerCompatible; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //_IEPMAPI_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEProcess.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEProcess.h new file mode 100644 index 0000000000000000000000000000000000000000..e527eb66d3faf3b05493644cb3ff51618ef3b275 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IEProcess.h @@ -0,0 +1,200 @@ +//+------------------------------------------------------------------------- +// +// IEProcess.h -- This module defines the IE APIs that only exist in the IExplore process. +// +// Copyright (c) Microsoft Corp. All rights reserved. +// +//-------------------------------------------------------------------------- + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#if (_WIN32_IE >= _WIN32_IE_IE80) +#define IEPROCESS_MODULE_NAME L"IERtUtil.dll" +#define IEGetProcessModule_PROC_NAME "IEGetProcessModule" +#endif + +/// +/// Get the module handle that provides per-process export tables. +/// Callers should use GetModuleHandle(IEPROCESS_MODULE_NAME) +/// and GetProcAddress(IEGetProcessModule_PROC_NAME) to bind to +/// this method. +/// +/// +/// Non-NULL module handle if this process was initialized with +/// IE process exports. Use handle when calling GetProcAddress() +/// for any of the export table accessor (eg IETabWindowExports). +/// The handle is invariant for the lifetime of the process. +/// NULL if the process has no process exports. +/// +typedef HMODULE (*IEGetProcessModule_t)(); + +// This struct encapsulate the tabdata that will not be changed during the lifetime of the tab thread +// so that this data can be copied and store in the TLS of the worker threads associated with the original tab thread +typedef struct _TLS_IMMUTABLE_TABDATA +{ + LONG lTabId; // The tab ID + DWORD dwTabThreadId; // The thread ID of the main UI thread +} TLS_IMMUTABLE_TABDATA; + +/// +/// Table of tab window related functions exported by the IE process. +/// The table is invariant for the lifetime of the process. +/// +struct IE80TabWindowExports +{ + /// + /// Tab windows are not always visible and IE avoids showing modal dialogs + /// or showing new windows for a tab if the tab is hidden. + // IE supports queuing of such actions so that when the tab is visible again, + /// this call will return. In addition to do the show/hide/enable logic correctly, + /// a different parent may need to be substituted. + /// + /// Threads in a tab process are associated with + /// a tab window where possible. If this flag is false and the thread is not + /// associated with a tab window, the call will fail. Callers should default + /// to false. Pass true to work even if the thread is unnassociated. + /// Proposed parent window to be used in + /// CreateWindow(), MessageBox(), ShellExecute(), etc. + /// Window that should be used instead + /// of the proposed parent. Where possible this will be the proposed parent. + /// S_OK if the caller should continue, a failure code otherwise. + /// + /// Method can block in it's own modal loop waiting for the parent window to be available. + /// + HRESULT (WINAPI *WaitForTabWindow)( + _In_ bool allowUnknownThread, + _In_ HWND proposedParentWindow, + _Out_ HWND* pActualParentWindow); // actual parent to use in following calls that require a parent. + + /// + /// Helper for implementations that have their own dialog manager + /// or other similar modal loop. Callers need to notify IE8 that + /// they will be running their loop by calling acquiring this lock. + /// + /// In addition, the isolation boundaries need to be kept for + /// security reasons. A new parent with the correct security + /// mode and input forwarding will be provided if necessary. + /// + /// When running in IE8, modal dialogs are treated specially. + /// The security differences between windows in the hierarchy + /// can affect whether or not a dialog will show up correctly. + /// + /// Proposed parent window to be used in + /// CreateWindow() and similar functions. + /// Window that should be used instead + /// of the proposed parent. Can be the same as the proposed parent. + /// Handle to control the lifetime + /// of the lock. Used when calling ReleaseModalDialogLockAndParent. + /// Can be NULL even in the success case. + /// S_OK if the caller should continue, a failure code otherwise. + /// + /// This function uses COM and will CoInitialize() if necessary. + /// It can also block in it's own modal loop making x-process COM calls. + /// + HRESULT (WINAPI *AcquireModalDialogLockAndParent)( + _In_ HWND proposedParentWindow, + _Out_ HWND* pActualParentWindow, + _Out_ HANDLE* phModalDialogLock); + + /// + /// Free and cleanup any resources initialized in AcquireModalDialogLockAndParent() + /// + void (WINAPI *ReleaseModalDialogLockAndParent)( + _In_opt_ HANDLE hModalDialogLock); + + /// + /// Get the TLS data about the IE tab + /// + TLS_IMMUTABLE_TABDATA* (WINAPI *TLSGetImmutableTabData)(); + + /// + /// Set the TLS data about the IE tab + /// + HRESULT (WINAPI *TLSSetImmutableTabData)(TLS_IMMUTABLE_TABDATA* tlsITD); + + /// + /// Free the TLS data about the IE tab + /// + void (WINAPI *TLSFreeImmutableTabData)(); +}; + +#if (_WIN32_IE >= _WIN32_IE_IE80) +#define IETabWindowExports IE80TabWindowExports +#define IEGetTabWindowExports_PROC_NAME "IEGetTabWindowExports" +#endif + + +/// +/// Get the table of tab window related exports for this process. +/// Callers should use the result of IEGetProcessModule() and +/// GetProcAddress(IEGetTabWindowExports_PROC_NAME) to bind to +/// this method. +/// +/// +/// Non-NULL table if this process exposes the tab window exports. +/// The table is invariant for the lifetime of the process. +/// NULL if the process has no process exports. +/// +typedef const struct IETabWindowExports* (*IEGetTabWindowExports_t)(); + +#if defined(__cplusplus) && !defined(NO_IEPROCESS_CLASS) +/// +/// Static helper class that encapsulates the kernel calls for +/// binding to the IEProcess export tables. +/// +class IEProcess +{ +public: + /// + /// Gets the module handle that hosts the IE per-process exports. + /// Use in other IEProcess method calls. This module handle + /// doesn't need to be freed since it lasts the entire process. + /// + /// Non-NULL if any IE process exports have been initialized. + static HMODULE + GetProcessModule() + { + HMODULE moduleHandle = ::GetModuleHandleW(IEPROCESS_MODULE_NAME); + if (moduleHandle) + { + IEGetProcessModule_t IEGetProcessModule = (IEGetProcessModule_t)::GetProcAddress(moduleHandle, IEGetProcessModule_PROC_NAME); + if (IEGetProcessModule) + { + return IEGetProcessModule(); + } + } + return NULL; + } + + /// + /// Gets the export table for Exports that implement IE process specific . + /// behavior relating to being hosted in a tab window. + /// + /// Non-NULL if the tab window exports have been initialized. + static const IETabWindowExports* + GetTabWindowExports(HMODULE ieProcessModule) + { + if (ieProcessModule) + { + IEGetTabWindowExports_t IEGetTabWindowExports = (IEGetTabWindowExports_t)::GetProcAddress(ieProcessModule, IEGetTabWindowExports_PROC_NAME); + if (IEGetTabWindowExports) + { + return IEGetTabWindowExports(); + } + } + return NULL; + } +}; +#endif // NO_IEPROCESS_CLASS + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IIScnfg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IIScnfg.h new file mode 100644 index 0000000000000000000000000000000000000000..8a072d88b8db2305ce04e7c542b84871085cc0f3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IIScnfg.h @@ -0,0 +1,1330 @@ +/*++ + + + + Copyright (c) 1997-1999 Microsoft Corporation + + Module Name : + + iiscnfg.h + + Abstract: + + Contains public Metadata IDs used by IIS. + + Environment: + + Win32 User Mode + +--*/ + +#ifndef _IISCNFG_H_ +#define _IISCNFG_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Paths +// + +#define IIS_MD_LOCAL_MACHINE_PATH "LM" + +// +// Name of the default publishing root under an instance +// + +#define IIS_MD_INSTANCE_ROOT "Root" + +// +// ISAPI Filters are kept in a list under the instances and the service (for +// global filters) in the following format: +// +// LM/W3Svc//Filters +// MD_FILTER_LOAD_ORDER "Filter1, Filter2, Filter3" +// +// LM/W3Svc//Filters/Filter1 +// MD_FILTER_IMAGE_PATH "d:\inetsrv\myfilter.dll" +// +// LM/W3Svc//Filters/Filter2 +// MD_FILTER_IMAGE_PATH "d:\inetsrv\otherfilter.dll" +// + +#define IIS_MD_ISAPI_FILTERS "/Filters" + +// +// Path below each service to the key that publishes service information +// + +#define IIS_MD_SVC_INFO_PATH "Info" + +// +// ADSI schema properties path +// + +#define IIS_MD_ADSI_SCHEMA_PATH_A "/Schema" +#define IIS_MD_ADSI_SCHEMA_PATH_W L"/Schema" +#define IIS_MD_ADSI_METAID_BEGIN 130000 + +// +// user types +// +// There are two user types: +// +// Server configuration - All the properties for configuring the server that +// are not applicable to files and directories - such as Port, Host name, +// Server comment, Connection timeout etc. +// +// File/Dir configuration - All the properties that can be configured down to +// the files and directories - such as Access permissions (Read, Write etc), +// Extension mapping, IP Security etc. +// + +#define IIS_MD_UT_SERVER 1 // Server configuration parameters +#define IIS_MD_UT_FILE 2 // File/Dir inheritable properties +#define IIS_MD_UT_WAM 100 // Web Application configuration parameters +#define ASP_MD_UT_APP 101 // ASP application configuration parameters +#define IIS_MD_UT_END_RESERVED 2000 // All user types below this are + // reserved for IIS services + + +// +// Metabase property IDs must be unique. This table defines reserved ranges +// + +#define IIS_MD_ID_BEGIN_RESERVED 0x00000001 // IIS reserved range +#define IIS_MD_ID_END_RESERVED 0x00007fff +#define ASP_MD_ID_BEGIN_RESERVED 0x00007000 // ASP reserved range, subrange of IIS. +#define ASP_MD_ID_END_RESERVED 0x000074ff +#define WAM_MD_ID_BEGIN_RESERVED 0x00007500 // ASP reserved range, subrange of IIS. +#define WAM_MD_ID_END_RESERVED 0x00007fff +#define FP_MD_ID_BEGIN_RESERVED 0x00008000 // Front page reserved range +#define FP_MD_ID_END_RESERVED 0x00008fff +#define SMTP_MD_ID_BEGIN_RESERVED 0x00009000 +#define SMTP_MD_ID_END_RESERVED 0x00009fff +#define POP3_MD_ID_BEGIN_RESERVED 0x0000a000 +#define POP3_MD_ID_END_RESERVED 0x0000afff +#define NNTP_MD_ID_BEGIN_RESERVED 0x0000b000 +#define NNTP_MD_ID_END_RESERVED 0x0000bfff +#define IMAP_MD_ID_BEGIN_RESERVED 0x0000c000 +#define IMAP_MD_ID_END_RESERVED 0x0000cfff +#define MSCS_MD_ID_BEGIN_RESERVED 0x0000d000 +#define MSCS_MD_ID_END_RESERVED 0x0000dfff +#define APPCTR_MD_ID_BEGIN_RESERVED 0x0000e000 +#define APPCTR_MD_ID_END_RESERVED 0x0000efff + +#define USER_MD_ID_BASE_RESERVED 0x0000ffff + +// +// General server related attributes - these should be added in the metabase +// with a user type of IIS_MD_UT_SERVER +// + +#define IIS_MD_SERVER_BASE 1000 + +// +// These are global to all services and should only be set at +// the IIS root +// + +#define MD_MAX_BANDWIDTH (IIS_MD_SERVER_BASE+0 ) +#define MD_KEY_TYPE (IIS_MD_SERVER_BASE+2 ) +#define MD_MAX_BANDWIDTH_BLOCKED (IIS_MD_SERVER_BASE+3 ) +#define MD_SCHEMA_METAID (IIS_MD_SERVER_BASE+4 ) + +// +// These properties are applicable to both HTTP and FTP virtual +// servers +// + +#define MD_SERVER_COMMAND (IIS_MD_SERVER_BASE+12 ) +#define MD_CONNECTION_TIMEOUT (IIS_MD_SERVER_BASE+13 ) +#define MD_MAX_CONNECTIONS (IIS_MD_SERVER_BASE+14 ) +#define MD_SERVER_COMMENT (IIS_MD_SERVER_BASE+15 ) +#define MD_SERVER_STATE (IIS_MD_SERVER_BASE+16 ) +#define MD_SERVER_AUTOSTART (IIS_MD_SERVER_BASE+17 ) +#define MD_SERVER_SIZE (IIS_MD_SERVER_BASE+18 ) +#define MD_SERVER_LISTEN_BACKLOG (IIS_MD_SERVER_BASE+19 ) +#define MD_SERVER_LISTEN_TIMEOUT (IIS_MD_SERVER_BASE+20 ) +#define MD_DOWNLEVEL_ADMIN_INSTANCE (IIS_MD_SERVER_BASE+21 ) +#define MD_LEVELS_TO_SCAN (IIS_MD_SERVER_BASE+22 ) +#define MD_SERVER_BINDINGS (IIS_MD_SERVER_BASE+23 ) +#define MD_MAX_ENDPOINT_CONNECTIONS (IIS_MD_SERVER_BASE+24 ) +#define MD_SERVER_CONFIGURATION_INFO (IIS_MD_SERVER_BASE+27 ) +#define MD_IISADMIN_EXTENSIONS (IIS_MD_SERVER_BASE+28 ) +#define MD_DISABLE_SOCKET_POOLING (IIS_MD_SERVER_BASE+29 ) +#define MD_METADATA_ID_REGISTRATION (IIS_MD_SERVER_BASE+30 ) + + +// +// These properties are specific to HTTP and belong to the website +// + +#define IIS_MD_HTTP_BASE 2000 + +#define MD_SECURE_BINDINGS (IIS_MD_HTTP_BASE+21 ) + +#define MD_BINDINGS (IIS_MD_HTTP_BASE+22 ) +#define MD_ENABLEDPROTOCOLS (IIS_MD_HTTP_BASE+23 ) + + +#define MD_FILTER_LOAD_ORDER (IIS_MD_HTTP_BASE+40 ) +#define MD_FILTER_IMAGE_PATH (IIS_MD_HTTP_BASE+41 ) +#define MD_FILTER_STATE (IIS_MD_HTTP_BASE+42 ) +#define MD_FILTER_ENABLED (IIS_MD_HTTP_BASE+43 ) +#define MD_FILTER_FLAGS (IIS_MD_HTTP_BASE+44 ) +#define MD_FILTER_DESCRIPTION (IIS_MD_HTTP_BASE+45 ) +#define MD_FILTER_ENABLE_CACHE (IIS_MD_HTTP_BASE+46 ) + +#define MD_ADV_NOTIFY_PWD_EXP_IN_DAYS (IIS_MD_HTTP_BASE+63 ) +#define MD_ADV_CACHE_TTL (IIS_MD_HTTP_BASE+64 ) +#define MD_NET_LOGON_WKS (IIS_MD_HTTP_BASE+65 ) +#define MD_USE_HOST_NAME (IIS_MD_HTTP_BASE+66 ) + +#define MD_AUTH_CHANGE_FLAGS (IIS_MD_HTTP_BASE+68 ) + +#define MD_PROCESS_NTCR_IF_LOGGED_ON (IIS_MD_HTTP_BASE+70 ) + +#define MD_FRONTPAGE_WEB (IIS_MD_HTTP_BASE+72 ) +#define MD_IN_PROCESS_ISAPI_APPS (IIS_MD_HTTP_BASE+73 ) + + +#define MD_AUTH_CHANGE_URL (IIS_MD_HTTP_BASE+60 ) +#define MD_AUTH_EXPIRED_URL (IIS_MD_HTTP_BASE+61 ) +#define MD_AUTH_EXPIRED_UNSECUREURL (IIS_MD_HTTP_BASE+67 ) + +#define MD_ALLOW_PATH_INFO_FOR_SCRIPT_MAPPINGS ( IIS_MD_HTTP_BASE+95) + +#define MD_APP_FRIENDLY_NAME (IIS_MD_HTTP_BASE+102) +#define MD_APP_ROOT (IIS_MD_HTTP_BASE+103) +#define MD_APP_ISOLATED (IIS_MD_HTTP_BASE+104) +#define MD_APP_WAM_CLSID (IIS_MD_HTTP_BASE+105) +#define MD_APP_PACKAGE_ID (IIS_MD_HTTP_BASE+106) +#define MD_APP_PACKAGE_NAME (IIS_MD_HTTP_BASE+107) +#define MD_APP_OOP_RECOVER_LIMIT (IIS_MD_HTTP_BASE+110) +#define MD_APP_PERIODIC_RESTART_TIME (IIS_MD_HTTP_BASE+111) +#define MD_APP_PERIODIC_RESTART_REQUESTS (IIS_MD_HTTP_BASE+112) +#define MD_APP_PERIODIC_RESTART_SCHEDULE (IIS_MD_HTTP_BASE+113) +#define MD_APP_SHUTDOWN_TIME_LIMIT (IIS_MD_HTTP_BASE+114) + + +#define MD_ADMIN_INSTANCE (IIS_MD_HTTP_BASE+115) +// This is only used by setup & UI +#define MD_NOT_DELETABLE (IIS_MD_HTTP_BASE+116) + + +#define MD_APP_TRACE_URL_LIST (IIS_MD_HTTP_BASE+118) +#define MD_CENTRAL_W3C_LOGGING_ENABLED (IIS_MD_HTTP_BASE+119) + + +#define MD_CUSTOM_ERROR_DESC (IIS_MD_HTTP_BASE+120) + +// +// Client Access License parameters +// +#define MD_CAL_VC_PER_CONNECT (IIS_MD_HTTP_BASE+130) +#define MD_CAL_AUTH_RESERVE_TIMEOUT (IIS_MD_HTTP_BASE+131) +#define MD_CAL_SSL_RESERVE_TIMEOUT (IIS_MD_HTTP_BASE+132) +#define MD_CAL_W3_ERROR (IIS_MD_HTTP_BASE+133) + +// +// CPU Accounting and Throttling Properties +// + +// +// The enabled flags are per Application or CGI +// + +#define MD_CPU_CGI_ENABLED (IIS_MD_HTTP_BASE+140) +#define MD_CPU_APP_ENABLED (IIS_MD_HTTP_BASE+141) +#define MD_CPU_LIMITS_ENABLED (IIS_MD_HTTP_BASE+143) + +#define MD_CPU_RESET_INTERVAL (IIS_MD_HTTP_BASE+144) + +#define MD_CPU_LOGGING_INTERVAL (IIS_MD_HTTP_BASE+145) +#define MD_CPU_LOGGING_OPTIONS (IIS_MD_HTTP_BASE+146) +#define MD_CPU_CGI_LIMIT (IIS_MD_HTTP_BASE+148) +#define MD_CPU_LIMIT_LOGEVENT (IIS_MD_HTTP_BASE+149) +#define MD_CPU_LIMIT_PRIORITY (IIS_MD_HTTP_BASE+150) +#define MD_CPU_LIMIT_PROCSTOP (IIS_MD_HTTP_BASE+151) +#define MD_CPU_LIMIT_PAUSE (IIS_MD_HTTP_BASE+152) + + +#define MD_SET_HOST_NAME (IIS_MD_HTTP_BASE+154) + +// +// Valid values for CPU Accounting's MD_CPU_LOGGING_OPTIONS field +// + +#define MD_CPU_DISABLE_ALL_LOGGING 0x0 +#define MD_CPU_ENABLE_ALL_PROC_LOGGING 0x1 +#define MD_CPU_ENABLE_CGI_LOGGING 0x2 +#define MD_CPU_ENABLE_APP_LOGGING 0x4 + +// +// Valid values for CPU Accounting's MD_CPU_LOGGING_MASK field +// This defines which fields will be logged +// + +#define MD_CPU_ENABLE_EVENT 0x01 +#define MD_CPU_ENABLE_PROC_TYPE 0x02 +#define MD_CPU_ENABLE_USER_TIME 0x04 +#define MD_CPU_ENABLE_KERNEL_TIME 0x08 +#define MD_CPU_ENABLE_PAGE_FAULTS 0x10 +#define MD_CPU_ENABLE_TOTAL_PROCS 0x20 +#define MD_CPU_ENABLE_ACTIVE_PROCS 0x40 +#define MD_CPU_ENABLE_TERMINATED_PROCS 0x80 + +#define MD_CPU_ENABLE_LOGGING 0x80000000 + + +// +// Site Server properties +// + + +// +// Properties to disable/restrict request handlers. +// + +#define MD_ISAPI_RESTRICTION_LIST (IIS_MD_HTTP_BASE+163) +#define MD_CGI_RESTRICTION_LIST (IIS_MD_HTTP_BASE+164) +#define MD_RESTRICTION_LIST_CUSTOM_DESC (IIS_MD_HTTP_BASE+165) +#define MD_SECURITY_SETUP_REQUIRED (IIS_MD_HTTP_BASE+166) +#define MD_APP_DEPENDENCIES (IIS_MD_HTTP_BASE+167) +#define MD_WEB_SVC_EXT_RESTRICTION_LIST (IIS_MD_HTTP_BASE+168) + +#define MD_MD_SERVER_SS_AUTH_MAPPING (IIS_MD_HTTP_BASE+200) + +// +// valid values for MD_CERT_CHECK_MODE +// + +#define MD_CERT_NO_REVOC_CHECK 0x00000001 +#define MD_CERT_CACHE_RETRIEVAL_ONLY 0x00000002 +#define MD_CERT_CHECK_REVOCATION_FRESHNESS_TIME 0x00000004 +#define MD_CERT_NO_USAGE_CHECK 0x00010000 + +// +// HTTP Compression properties. All are global and unheritable. +// + +#define MD_HC_COMPRESSION_DIRECTORY (IIS_MD_HTTP_BASE+210) +#define MD_HC_CACHE_CONTROL_HEADER (IIS_MD_HTTP_BASE+211) +#define MD_HC_EXPIRES_HEADER (IIS_MD_HTTP_BASE+212) +#define MD_HC_DO_DYNAMIC_COMPRESSION (IIS_MD_HTTP_BASE+213) +#define MD_HC_DO_STATIC_COMPRESSION (IIS_MD_HTTP_BASE+214) +#define MD_HC_DO_ON_DEMAND_COMPRESSION (IIS_MD_HTTP_BASE+215) +#define MD_HC_DO_DISK_SPACE_LIMITING (IIS_MD_HTTP_BASE+216) +#define MD_HC_NO_COMPRESSION_FOR_HTTP_10 (IIS_MD_HTTP_BASE+217) +#define MD_HC_NO_COMPRESSION_FOR_PROXIES (IIS_MD_HTTP_BASE+218) +#define MD_HC_NO_COMPRESSION_FOR_RANGE (IIS_MD_HTTP_BASE+219) +#define MD_HC_SEND_CACHE_HEADERS (IIS_MD_HTTP_BASE+220) +#define MD_HC_MAX_DISK_SPACE_USAGE (IIS_MD_HTTP_BASE+221) +#define MD_HC_IO_BUFFER_SIZE (IIS_MD_HTTP_BASE+222) +#define MD_HC_COMPRESSION_BUFFER_SIZE (IIS_MD_HTTP_BASE+223) +#define MD_HC_MAX_QUEUE_LENGTH (IIS_MD_HTTP_BASE+224) +#define MD_HC_FILES_DELETED_PER_DISK_FREE (IIS_MD_HTTP_BASE+225) +#define MD_HC_MIN_FILE_SIZE_FOR_COMP (IIS_MD_HTTP_BASE+226) +#define MD_HC_COMPRESSION_DLL (IIS_MD_HTTP_BASE+237) +#define MD_HC_FILE_EXTENSIONS (IIS_MD_HTTP_BASE+238) +#define MD_HC_MIME_TYPE (IIS_MD_HTTP_BASE+239) +#define MD_HC_PRIORITY (IIS_MD_HTTP_BASE+240) +#define MD_HC_DYNAMIC_COMPRESSION_LEVEL (IIS_MD_HTTP_BASE+241) +#define MD_HC_ON_DEMAND_COMP_LEVEL (IIS_MD_HTTP_BASE+242) +#define MD_HC_CREATE_FLAGS (IIS_MD_HTTP_BASE+243) +#define MD_HC_SCRIPT_FILE_EXTENSIONS (IIS_MD_HTTP_BASE+244) + +#define MD_HC_DO_NAMESPACE_DYNAMIC_COMPRESSION (IIS_MD_HTTP_BASE+255) +#define MD_HC_DO_NAMESPACE_STATIC_COMPRESSION (IIS_MD_HTTP_BASE+256) + +// +// Generic property indicating a failure status code - Can be used under +// any component that can fail (virtual directory, filters, applications etc) +// + +#define MD_WIN32_ERROR (IIS_MD_SERVER_BASE+99 ) + +// +// Virtual root properties - note MD_ACCESS_PERM is also generally set at +// the virtual directory. These are used for both HTTP and FTP +// + +#define IIS_MD_VR_BASE 3000 + +#define MD_VR_PATH (IIS_MD_VR_BASE+1 ) +#define MD_VR_USERNAME (IIS_MD_VR_BASE+2 ) +#define MD_VR_PASSWORD (IIS_MD_VR_BASE+3 ) +#define MD_VR_PASSTHROUGH (IIS_MD_VR_BASE+6 ) +#define MD_VR_NO_CACHE (IIS_MD_VR_BASE+7 ) +#define MD_VR_IGNORE_TRANSLATE (IIS_MD_VR_BASE+8 ) + + +// +// Logging related attributes +// + +#define IIS_MD_LOG_BASE 4000 + +#define MD_LOG_TYPE (IIS_MD_LOG_BASE+0 ) +#define MD_LOGFILE_DIRECTORY (IIS_MD_LOG_BASE+1 ) +#define MD_LOG_UNUSED1 (IIS_MD_LOG_BASE+2 ) +#define MD_LOGFILE_PERIOD (IIS_MD_LOG_BASE+3 ) +#define MD_LOGFILE_TRUNCATE_SIZE (IIS_MD_LOG_BASE+4 ) +#define MD_LOG_PLUGIN_MOD_ID (IIS_MD_LOG_BASE+5 ) +#define MD_LOG_PLUGIN_UI_ID (IIS_MD_LOG_BASE+6 ) +#define MD_LOGSQL_DATA_SOURCES (IIS_MD_LOG_BASE+7 ) +#define MD_LOGSQL_TABLE_NAME (IIS_MD_LOG_BASE+8 ) +#define MD_LOGSQL_USER_NAME (IIS_MD_LOG_BASE+9 ) +#define MD_LOGSQL_PASSWORD (IIS_MD_LOG_BASE+10 ) +#define MD_LOG_PLUGIN_ORDER (IIS_MD_LOG_BASE+11 ) +#define MD_LOG_PLUGINS_AVAILABLE (IIS_MD_LOG_BASE+12 ) +#define MD_LOGEXT_FIELD_MASK (IIS_MD_LOG_BASE+13 ) +#define MD_LOGEXT_FIELD_MASK2 (IIS_MD_LOG_BASE+14 ) + +// +// Allow W3C logging file naming and rollover based on Local Time +// + +#define MD_LOGFILE_LOCALTIME_ROLLOVER (IIS_MD_LOG_BASE+15 ) + +#define IIS_MD_LOG_LAST MD_LOGFILE_LOCALTIME_ROLLOVER + +// +// Global Flag to denote that IIS will generate one centralized +// binary log file rather than a separate file per web site +// +#define MD_GLOBAL_BINARY_LOGGING_ENABLED (IIS_MD_LOG_BASE+16 ) + +// +// Log type +// + +#define MD_LOG_TYPE_DISABLED 0 +#define MD_LOG_TYPE_ENABLED 1 + +// +// LOGGING values +// + +#define MD_LOGFILE_PERIOD_NONE 0 +#define MD_LOGFILE_PERIOD_MAXSIZE 0 +#define MD_LOGFILE_PERIOD_DAILY 1 +#define MD_LOGFILE_PERIOD_WEEKLY 2 +#define MD_LOGFILE_PERIOD_MONTHLY 3 +#define MD_LOGFILE_PERIOD_HOURLY 4 + +// +// Field masks for extended logging +// Fields are logged in order of increasing mask value +// + +#define MD_EXTLOG_DATE 0x00000001 +#define MD_EXTLOG_TIME 0x00000002 +#define MD_EXTLOG_CLIENT_IP 0x00000004 +#define MD_EXTLOG_USERNAME 0x00000008 +#define MD_EXTLOG_SITE_NAME 0x00000010 +#define MD_EXTLOG_COMPUTER_NAME 0x00000020 +#define MD_EXTLOG_SERVER_IP 0x00000040 +#define MD_EXTLOG_METHOD 0x00000080 +#define MD_EXTLOG_URI_STEM 0x00000100 +#define MD_EXTLOG_URI_QUERY 0x00000200 +#define MD_EXTLOG_HTTP_STATUS 0x00000400 +#define MD_EXTLOG_WIN32_STATUS 0x00000800 +#define MD_EXTLOG_BYTES_SENT 0x00001000 +#define MD_EXTLOG_BYTES_RECV 0x00002000 +#define MD_EXTLOG_TIME_TAKEN 0x00004000 +#define MD_EXTLOG_SERVER_PORT 0x00008000 +#define MD_EXTLOG_USER_AGENT 0x00010000 +#define MD_EXTLOG_COOKIE 0x00020000 +#define MD_EXTLOG_REFERER 0x00040000 +#define MD_EXTLOG_PROTOCOL_VERSION 0x00080000 +#define MD_EXTLOG_HOST 0x00100000 +#define MD_EXTLOG_HTTP_SUB_STATUS 0x00200000 + + +#define MD_DEFAULT_EXTLOG_FIELDS (MD_EXTLOG_CLIENT_IP | \ + MD_EXTLOG_TIME | \ + MD_EXTLOG_METHOD | \ + MD_EXTLOG_URI_STEM | \ + MD_EXTLOG_HTTP_STATUS | \ + MD_EXTLOG_HTTP_SUB_STATUS ) + +// +// Custom Logging related attributes +// + +#define IIS_MD_LOGCUSTOM_BASE 4500 + +// +// Custom Logging configuration attributes +// + +#define MD_LOGCUSTOM_PROPERTY_NAME (IIS_MD_LOGCUSTOM_BASE+1 ) +#define MD_LOGCUSTOM_PROPERTY_HEADER (IIS_MD_LOGCUSTOM_BASE+2 ) +#define MD_LOGCUSTOM_PROPERTY_ID (IIS_MD_LOGCUSTOM_BASE+3 ) +#define MD_LOGCUSTOM_PROPERTY_MASK (IIS_MD_LOGCUSTOM_BASE+4 ) +#define MD_LOGCUSTOM_PROPERTY_DATATYPE (IIS_MD_LOGCUSTOM_BASE+5 ) +#define MD_LOGCUSTOM_SERVICES_STRING (IIS_MD_LOGCUSTOM_BASE+6 ) // MultiSZ List of services that the property is applicable to. + +#define MD_CPU_LOGGING_MASK (IIS_MD_LOGCUSTOM_BASE+7 ) + +#define MD_LOGCUSTOM_PROPERTY_NODE_ID (IIS_MD_LOGCUSTOM_BASE+8 ) + + +#define IIS_MD_LOGCUSTOM_LAST MD_LOGCUSTOM_PROPERTY_NODE_ID + +// +// Valid values for Custom Logging's MD_LOGCUSTOM_PROPERTY_DATATYPE field +// + +#define MD_LOGCUSTOM_DATATYPE_INT 0 +#define MD_LOGCUSTOM_DATATYPE_UINT 1 +#define MD_LOGCUSTOM_DATATYPE_LONG 2 +#define MD_LOGCUSTOM_DATATYPE_ULONG 3 +#define MD_LOGCUSTOM_DATATYPE_FLOAT 4 +#define MD_LOGCUSTOM_DATATYPE_DOUBLE 5 +#define MD_LOGCUSTOM_DATATYPE_LPSTR 6 +#define MD_LOGCUSTOM_DATATYPE_LPWSTR 7 + + +// +// ISAPI Filter Notification Flags +// + +#define MD_NOTIFY_SECURE_PORT 0x00000001 +#define MD_NOTIFY_NONSECURE_PORT 0x00000002 + +#define MD_NOTIFY_READ_RAW_DATA 0x00008000 +#define MD_NOTIFY_PREPROC_HEADERS 0x00004000 +#define MD_NOTIFY_AUTHENTICATION 0x00002000 +#define MD_NOTIFY_URL_MAP 0x00001000 +#define MD_NOTIFY_ACCESS_DENIED 0x00000800 +#define MD_NOTIFY_SEND_RESPONSE 0x00000040 +#define MD_NOTIFY_SEND_RAW_DATA 0x00000400 +#define MD_NOTIFY_LOG 0x00000200 +#define MD_NOTIFY_END_OF_REQUEST 0x00000080 +#define MD_NOTIFY_END_OF_NET_SESSION 0x00000100 +#define MD_NOTIFY_AUTH_COMPLETE 0x04000000 +// +// ISAPI Filter ordering flags +// + +#define MD_NOTIFY_ORDER_HIGH 0x00080000 +#define MD_NOTIFY_ORDER_MEDIUM 0x00040000 +#define MD_NOTIFY_ORDER_LOW 0x00020000 +#define MD_NOTIFY_ORDER_DEFAULT MD_NOTIFY_ORDER_LOW + +#define MD_NOTIFY_ORDER_MASK (MD_NOTIFY_ORDER_HIGH | \ + MD_NOTIFY_ORDER_MEDIUM | \ + MD_NOTIFY_ORDER_LOW) + + +// +// These are FTP specific properties +// + +#define IIS_MD_FTP_BASE 5000 + +#define MD_EXIT_MESSAGE (IIS_MD_FTP_BASE+1 ) +#define MD_GREETING_MESSAGE (IIS_MD_FTP_BASE+2 ) +#define MD_MAX_CLIENTS_MESSAGE (IIS_MD_FTP_BASE+3 ) +#define MD_MSDOS_DIR_OUTPUT (IIS_MD_FTP_BASE+4 ) +#define MD_ALLOW_ANONYMOUS (IIS_MD_FTP_BASE+5 ) +#define MD_ANONYMOUS_ONLY (IIS_MD_FTP_BASE+6 ) +#define MD_LOG_ANONYMOUS (IIS_MD_FTP_BASE+7 ) +#define MD_LOG_NONANONYMOUS (IIS_MD_FTP_BASE+8 ) +#define MD_ALLOW_REPLACE_ON_RENAME (IIS_MD_FTP_BASE+9 ) +#define MD_SHOW_4_DIGIT_YEAR (IIS_MD_FTP_BASE+10 ) +#define MD_BANNER_MESSAGE (IIS_MD_FTP_BASE+11 ) +#define MD_USER_ISOLATION (IIS_MD_FTP_BASE+12 ) +#define MD_FTP_LOG_IN_UTF_8 (IIS_MD_FTP_BASE+13 ) +#define MD_AD_CONNECTIONS_USERNAME (IIS_MD_FTP_BASE+14 ) +#define MD_AD_CONNECTIONS_PASSWORD (IIS_MD_FTP_BASE+15 ) +#define MD_PASSIVE_PORT_RANGE (IIS_MD_FTP_BASE+16 ) +#define MD_SUPPRESS_DEFAULT_BANNER (IIS_MD_FTP_BASE+17 ) +#define MD_FTP_PASV_RESPONSE_IP (IIS_MD_FTP_BASE+18 ) +#define MD_FTP_KEEP_PARTIAL_UPLOADS (IIS_MD_FTP_BASE+19 ) +#define MD_FTP_UTF8_FILE_NAMES (IIS_MD_FTP_BASE+20 ) + +// +// FTPS properties. +// + +#define MD_FTPS_SECURE_CONTROL_CHANNEL (IIS_MD_FTP_BASE+50 ) +#define MD_FTPS_SECURE_DATA_CHANNEL (IIS_MD_FTP_BASE+51 ) +#define MD_FTPS_SECURE_ANONYMOUS (IIS_MD_FTP_BASE+52 ) +#define MD_FTPS_128_BITS (IIS_MD_FTP_BASE+53 ) +#define MD_FTPS_ALLOW_CCC (IIS_MD_FTP_BASE+54 ) + + +// +// These are SSL specific properties +// + +#define IIS_MD_SSL_BASE 5500 + +#define MD_SSL_PUBLIC_KEY ( IIS_MD_SSL_BASE+0 ) +#define MD_SSL_PRIVATE_KEY ( IIS_MD_SSL_BASE+1 ) +#define MD_SSL_KEY_PASSWORD ( IIS_MD_SSL_BASE+2 ) +#define MD_SSL_KEY_REQUEST ( IIS_MD_SSL_BASE+3 ) + +// +// These are server certificate properties +// +// +// These are Certificate Trust List properties +// + +// +// Metabase property that defines whether to use DS mapper or not +// +#define MD_SSL_USE_DS_MAPPER ( IIS_MD_SSL_BASE+19 ) + + +#define MD_SSL_ALWAYS_NEGO_CLIENT_CERT ( IIS_MD_SSL_BASE+21 ) + +// +// Metabase properties that are used by the CertWiz ActiveX control, that +// is used for the Certificate/CTL UI management tool +// + +// +// Metabase properties used for Fortezza certificates +// + +// +// Metabase properties that are used by the CertWiz ActiveX control to keep +// track of the user's entry history, and whether DEBUG is enabled. We keep +// these private properties on a per VS basis. +// + +// File and Directory related properties - these should be added in the +// metabase with a user type of IIS_MD_UT_FILE +// + +#define IIS_MD_FILE_PROP_BASE 6000 + +#define MD_AUTHORIZATION (IIS_MD_FILE_PROP_BASE ) +#define MD_REALM (IIS_MD_FILE_PROP_BASE+1 ) +#define MD_HTTP_EXPIRES (IIS_MD_FILE_PROP_BASE+2 ) +#define MD_HTTP_PICS (IIS_MD_FILE_PROP_BASE+3 ) +#define MD_HTTP_CUSTOM (IIS_MD_FILE_PROP_BASE+4 ) +#define MD_DIRECTORY_BROWSING (IIS_MD_FILE_PROP_BASE+5 ) +#define MD_DEFAULT_LOAD_FILE (IIS_MD_FILE_PROP_BASE+6 ) +#define MD_CUSTOM_ERROR (IIS_MD_FILE_PROP_BASE+8 ) +#define MD_FOOTER_DOCUMENT (IIS_MD_FILE_PROP_BASE+9 ) +#define MD_FOOTER_ENABLED (IIS_MD_FILE_PROP_BASE+10 ) +#define MD_HTTP_REDIRECT (IIS_MD_FILE_PROP_BASE+11 ) +#define MD_DEFAULT_LOGON_DOMAIN (IIS_MD_FILE_PROP_BASE+12 ) +#define MD_LOGON_METHOD (IIS_MD_FILE_PROP_BASE+13 ) +#define MD_SCRIPT_MAPS (IIS_MD_FILE_PROP_BASE+14 ) +#define MD_MIME_MAP (IIS_MD_FILE_PROP_BASE+15 ) +#define MD_ACCESS_PERM (IIS_MD_FILE_PROP_BASE+16 ) +#define MD_IP_SEC (IIS_MD_FILE_PROP_BASE+19 ) +#define MD_ANONYMOUS_USER_NAME (IIS_MD_FILE_PROP_BASE+20 ) +#define MD_ANONYMOUS_PWD (IIS_MD_FILE_PROP_BASE+21 ) +#define MD_ANONYMOUS_USE_SUBAUTH (IIS_MD_FILE_PROP_BASE+22 ) +#define MD_DONT_LOG (IIS_MD_FILE_PROP_BASE+23 ) +#define MD_ADMIN_ACL (IIS_MD_FILE_PROP_BASE+27 ) +#define MD_SSI_EXEC_DISABLED (IIS_MD_FILE_PROP_BASE+28 ) +#define MD_DO_REVERSE_DNS (IIS_MD_FILE_PROP_BASE+29 ) +#define MD_SSL_ACCESS_PERM (IIS_MD_FILE_PROP_BASE+30 ) +#define MD_AUTHORIZATION_PERSISTENCE (IIS_MD_FILE_PROP_BASE+31 ) +#define MD_NTAUTHENTICATION_PROVIDERS (IIS_MD_FILE_PROP_BASE+32 ) +#define MD_SCRIPT_TIMEOUT (IIS_MD_FILE_PROP_BASE+33 ) +#define MD_CACHE_EXTENSIONS (IIS_MD_FILE_PROP_BASE+34 ) +#define MD_CREATE_PROCESS_AS_USER (IIS_MD_FILE_PROP_BASE+35 ) +#define MD_CREATE_PROC_NEW_CONSOLE (IIS_MD_FILE_PROP_BASE+36 ) +#define MD_POOL_IDC_TIMEOUT (IIS_MD_FILE_PROP_BASE+37 ) +#define MD_ALLOW_KEEPALIVES (IIS_MD_FILE_PROP_BASE+38 ) +#define MD_IS_CONTENT_INDEXED (IIS_MD_FILE_PROP_BASE+39 ) +#define MD_CC_NO_CACHE (IIS_MD_FILE_PROP_BASE+41 ) +#define MD_CC_MAX_AGE (IIS_MD_FILE_PROP_BASE+42 ) +#define MD_CC_OTHER (IIS_MD_FILE_PROP_BASE+43 ) +#define MD_REDIRECT_HEADERS (IIS_MD_FILE_PROP_BASE+44 ) +#define MD_UPLOAD_READAHEAD_SIZE (IIS_MD_FILE_PROP_BASE+45 ) +#define MD_PUT_READ_SIZE (IIS_MD_FILE_PROP_BASE+46 ) +#define MD_USE_DIGEST_SSP (IIS_MD_FILE_PROP_BASE+47 ) +#define MD_ENABLE_URL_AUTHORIZATION (IIS_MD_FILE_PROP_BASE+48 ) +#define MD_URL_AUTHORIZATION_STORE_NAME (IIS_MD_FILE_PROP_BASE+49 ) +#define MD_URL_AUTHORIZATION_SCOPE_NAME (IIS_MD_FILE_PROP_BASE+50 ) +#define MD_MAX_REQUEST_ENTITY_ALLOWED (IIS_MD_FILE_PROP_BASE+51 ) +#define MD_PASSPORT_REQUIRE_AD_MAPPING (IIS_MD_FILE_PROP_BASE+52 ) +#define MD_URL_AUTHORIZATION_IMPERSONATION_LEVEL (IIS_MD_FILE_PROP_BASE+53 ) +#define MD_HTTP_FORWARDER_CUSTOM (IIS_MD_FILE_PROP_BASE+54 ) +#define MD_CUSTOM_DEPLOYMENT_DATA (IIS_MD_FILE_PROP_BASE+55 ) +#define MD_HTTPERRORS_EXISTING_RESPONSE (IIS_MD_FILE_PROP_BASE+56 ) + + +#define ASP_MD_SERVER_BASE 7000 + +#define MD_ASP_BUFFERINGON (ASP_MD_SERVER_BASE + 0) +#define MD_ASP_LOGERRORREQUESTS (ASP_MD_SERVER_BASE + 1) +#define MD_ASP_SCRIPTERRORSSENTTOBROWSER (ASP_MD_SERVER_BASE + 2) +#define MD_ASP_SCRIPTERRORMESSAGE (ASP_MD_SERVER_BASE + 3) +#define MD_ASP_SCRIPTFILECACHESIZE (ASP_MD_SERVER_BASE + 4) +#define MD_ASP_SCRIPTENGINECACHEMAX (ASP_MD_SERVER_BASE + 5) +#define MD_ASP_SCRIPTTIMEOUT (ASP_MD_SERVER_BASE + 6) +#define MD_ASP_SESSIONTIMEOUT (ASP_MD_SERVER_BASE + 7) +#define MD_ASP_ENABLEPARENTPATHS (ASP_MD_SERVER_BASE + 8) +#define MD_ASP_MEMFREEFACTOR (ASP_MD_SERVER_BASE + 9) // OBSOLETE +#define MD_ASP_MINUSEDBLOCKS (ASP_MD_SERVER_BASE + 10) // OBSOLETE +#define MD_ASP_ALLOWSESSIONSTATE (ASP_MD_SERVER_BASE + 11) +#define MD_ASP_SCRIPTLANGUAGE (ASP_MD_SERVER_BASE + 12) +#define MD_ASP_QUEUETIMEOUT (ASP_MD_SERVER_BASE + 13) +#define MD_ASP_ALLOWOUTOFPROCCOMPONENTS (ASP_MD_SERVER_BASE + 14) +#define MD_ASP_ALLOWOUTOFPROCCMPNTS (MD_ASP_ALLOWOUTOFPROCCOMPONENTS) // Deprecated. Use MD_ASP_ALLOWOUTOFPROCCMPNTS +#define MD_ASP_EXCEPTIONCATCHENABLE (ASP_MD_SERVER_BASE + 15) +#define MD_ASP_CODEPAGE (ASP_MD_SERVER_BASE + 16) +#define MD_ASP_SCRIPTLANGUAGELIST (ASP_MD_SERVER_BASE + 17) +#define MD_ASP_ENABLESERVERDEBUG (ASP_MD_SERVER_BASE + 18) +#define MD_ASP_ENABLECLIENTDEBUG (ASP_MD_SERVER_BASE + 19) +#define MD_ASP_TRACKTHREADINGMODEL (ASP_MD_SERVER_BASE + 20) +// added for IIS 5.0 +#define MD_ASP_ENABLEASPHTMLFALLBACK (ASP_MD_SERVER_BASE + 21) +#define MD_ASP_ENABLECHUNKEDENCODING (ASP_MD_SERVER_BASE + 22) +#define MD_ASP_ENABLETYPELIBCACHE (ASP_MD_SERVER_BASE + 23) +#define MD_ASP_ERRORSTONTLOG (ASP_MD_SERVER_BASE + 24) +#define MD_ASP_PROCESSORTHREADMAX (ASP_MD_SERVER_BASE + 25) +#define MD_ASP_REQEUSTQUEUEMAX (ASP_MD_SERVER_BASE + 26) +#define MD_ASP_ENABLEAPPLICATIONRESTART (ASP_MD_SERVER_BASE + 27) +#define MD_ASP_QUEUECONNECTIONTESTTIME (ASP_MD_SERVER_BASE + 28) +#define MD_ASP_SESSIONMAX (ASP_MD_SERVER_BASE + 29) + +// thread gate +#define MD_ASP_THREADGATEENABLED (ASP_MD_SERVER_BASE + 30) +#define MD_ASP_THREADGATETIMESLICE (ASP_MD_SERVER_BASE + 31) +#define MD_ASP_THREADGATESLEEPDELAY (ASP_MD_SERVER_BASE + 32) +#define MD_ASP_THREADGATESLEEPMAX (ASP_MD_SERVER_BASE + 33) +#define MD_ASP_THREADGATELOADLOW (ASP_MD_SERVER_BASE + 34) +#define MD_ASP_THREADGATELOADHIGH (ASP_MD_SERVER_BASE + 35) + +// added IIS5.1 + +// persist template cache +#define MD_ASP_DISKTEMPLATECACHEDIRECTORY (ASP_MD_SERVER_BASE + 36) +#define MD_ASP_MAXDISKTEMPLATECACHEFILES (ASP_MD_SERVER_BASE + 40) +#define MD_ASP_EXECUTEINMTA (ASP_MD_SERVER_BASE + 41) +#define MD_ASP_LCID (ASP_MD_SERVER_BASE + 42) +#define MD_ASP_KEEPSESSIONIDSECURE (ASP_MD_SERVER_BASE + 43) + +// added IIS6.0 + +// Services without components integration +#define MD_ASP_SERVICE_FLAGS (ASP_MD_SERVER_BASE + 44) +#define MD_ASP_SERVICE_FLAG_TRACKER (ASP_MD_SERVER_BASE + 45) +#define MD_ASP_SERVICE_FLAG_FUSION (ASP_MD_SERVER_BASE + 46) +#define MD_ASP_SERVICE_FLAG_PARTITIONS (ASP_MD_SERVER_BASE + 47) +#define MD_ASP_SERVICE_PARTITION_ID (ASP_MD_SERVER_BASE + 48) +#define MD_ASP_SERVICE_SXS_NAME (ASP_MD_SERVER_BASE + 49) + +// Valid flags for MD_ASP_SERVICE_FLAGS property +#define MD_ASP_SERVICE_ENABLE_TRACKER 1 +#define MD_ASP_SERVICE_ENABLE_SXS 2 +#define MD_ASP_SERVICE_USE_PARTITION 4 + +// Line number calculation flag. +#define MD_ASP_CALCLINENUMBER (ASP_MD_SERVER_BASE + 50) + +#define MD_ASP_RUN_ONEND_ANON (ASP_MD_SERVER_BASE + 51) + +#define MD_ASP_BUFFER_LIMIT (ASP_MD_SERVER_BASE + 52) + +#define MD_ASP_MAX_REQUEST_ENTITY_ALLOWED (ASP_MD_SERVER_BASE + 53) +#define MD_ASP_MAXREQUESTENTITY MD_ASP_MAX_REQUEST_ENTITY_ALLOWED + +#define MD_ASP_ID_LAST (ASP_MD_SERVER_BASE + 53) + +// +// Valid values for WAM +// +#define WAM_MD_SERVER_BASE 7500 + +#define MD_WAM_USER_NAME (WAM_MD_SERVER_BASE+1) +#define MD_WAM_PWD (WAM_MD_SERVER_BASE+2) + +// +// Valid values for WEBDAV +// +#define WEBDAV_MD_SERVER_BASE 8500 + +#define MD_WEBDAV_MAX_ATTRIBUTES_PER_ELEMENT (WEBDAV_MD_SERVER_BASE+1) + +// added IIS6 + +// +// Valid values for APP POOL +// + +#define IIS_MD_APPPOOL_BASE 9000 + +#define MD_APPPOOL_PERIODIC_RESTART_TIME (IIS_MD_APPPOOL_BASE + 1) +#define MD_APPPOOL_PERIODIC_RESTART_REQUEST_COUNT (IIS_MD_APPPOOL_BASE + 2) +#define MD_APPPOOL_MAX_PROCESS_COUNT (IIS_MD_APPPOOL_BASE + 3) +#define MD_APPPOOL_PINGING_ENABLED (IIS_MD_APPPOOL_BASE + 4) +#define MD_APPPOOL_IDLE_TIMEOUT (IIS_MD_APPPOOL_BASE + 5) +#define MD_APPPOOL_RAPID_FAIL_PROTECTION_ENABLED (IIS_MD_APPPOOL_BASE + 6) +#define MD_APPPOOL_SMP_AFFINITIZED (IIS_MD_APPPOOL_BASE + 7) +#define MD_APPPOOL_SMP_AFFINITIZED_PROCESSOR_MASK (IIS_MD_APPPOOL_BASE + 8) +#define MD_APPPOOL_ORPHAN_PROCESSES_FOR_DEBUGGING (IIS_MD_APPPOOL_BASE + 9) +#define MD_APPPOOL_STARTUP_TIMELIMIT (IIS_MD_APPPOOL_BASE + 11) +#define MD_APPPOOL_SHUTDOWN_TIMELIMIT (IIS_MD_APPPOOL_BASE + 12) +#define MD_APPPOOL_PING_INTERVAL (IIS_MD_APPPOOL_BASE + 13) +#define MD_APPPOOL_PING_RESPONSE_TIMELIMIT (IIS_MD_APPPOOL_BASE + 14) +#define MD_APPPOOL_DISALLOW_OVERLAPPING_ROTATION (IIS_MD_APPPOOL_BASE + 15) +#define MD_APPPOOL_UL_APPPOOL_QUEUE_LENGTH (IIS_MD_APPPOOL_BASE + 17) +#define MD_APPPOOL_DISALLOW_ROTATION_ON_CONFIG_CHANGE (IIS_MD_APPPOOL_BASE + 18) +#define MD_APPPOOL_PERIODIC_RESTART_SCHEDULE (IIS_MD_APPPOOL_BASE + 20) +#define MD_APPPOOL_IDENTITY_TYPE (IIS_MD_APPPOOL_BASE + 21) +#define MD_CPU_ACTION (IIS_MD_APPPOOL_BASE + 22) +#define MD_CPU_LIMIT (IIS_MD_APPPOOL_BASE + 23) +#define MD_APPPOOL_PERIODIC_RESTART_MEMORY (IIS_MD_APPPOOL_BASE + 24) +#define MD_APPPOOL_COMMAND (IIS_MD_APPPOOL_BASE + 26) +#define MD_APPPOOL_STATE (IIS_MD_APPPOOL_BASE + 27) +#define MD_APPPOOL_AUTO_START (IIS_MD_APPPOOL_BASE + 28) +#define MD_RAPID_FAIL_PROTECTION_INTERVAL (IIS_MD_APPPOOL_BASE + 29) +#define MD_RAPID_FAIL_PROTECTION_MAX_CRASHES (IIS_MD_APPPOOL_BASE + 30) +#define MD_APPPOOL_ORPHAN_ACTION_EXE (IIS_MD_APPPOOL_BASE + 31) +#define MD_APPPOOL_ORPHAN_ACTION_PARAMS (IIS_MD_APPPOOL_BASE + 32) +#define MB_DONT_IMPERSONATE (IIS_MD_APPPOOL_BASE + 33) + +// +// Load balancer properties +// +#define MD_LOAD_BALANCER_CAPABILITIES (IIS_MD_APPPOOL_BASE + 34) + +// +// Valid values for APP POOL +// +#define MD_APPPOOL_AUTO_SHUTDOWN_EXE (IIS_MD_APPPOOL_BASE + 35) +#define MD_APPPOOL_AUTO_SHUTDOWN_PARAMS (IIS_MD_APPPOOL_BASE + 36) +#define MD_APP_POOL_LOG_EVENT_ON_RECYCLE (IIS_MD_APPPOOL_BASE + 37) +#define MD_APPPOOL_PERIODIC_RESTART_PRIVATE_MEMORY (IIS_MD_APPPOOL_BASE + 38) +#define MD_APPPOOL_MANAGED_RUNTIME_VERSION (IIS_MD_APPPOOL_BASE + 39) +#define MD_APPPOOL_32_BIT_APP_ON_WIN64 (IIS_MD_APPPOOL_BASE + 40) +#define MD_APPPOOL_MANAGED_PIPELINE_MODE (IIS_MD_APPPOOL_BASE + 41) +#define MD_APP_POOL_LOG_EVENT_ON_PROCESSMODEL (IIS_MD_APPPOOL_BASE + 42) +#define MD_APPPOOL_EMULATION_ON_WINARM64 (IIS_MD_APPPOOL_BASE + 43) + +// +// Valid values for MD_APP_POOL_LOG_EVENT_ON_PROCESSMODEL +// +#define MD_APP_POOL_PROCESSMODEL_IDLE_TIMEOUT 1 + +// +// Valid values for MD_APP_POOL_LOG_EVENT_ON_RECYCLE +// +#define MD_APP_POOL_RECYCLE_TIME 1 +#define MD_APP_POOL_RECYCLE_REQUESTS 2 +#define MD_APP_POOL_RECYCLE_SCHEDULE 4 +#define MD_APP_POOL_RECYCLE_MEMORY 8 +#define MD_APP_POOL_RECYCLE_ISAPI_UNHEALTHY 16 +#define MD_APP_POOL_RECYCLE_ON_DEMAND 32 +#define MD_APP_POOL_RECYCLE_CONFIG_CHANGE 64 +#define MD_APP_POOL_RECYCLE_PRIVATE_MEMORY 128 + +// +// Valid values for MD_CPU_ACTION +// + +#define MD_CPU_NO_ACTION 0 +#define MD_CPU_KILL_W3WP 1 +#define MD_CPU_TRACE 2 +#define MD_CPU_THROTTLE 3 + +// +// Valid values for MD_APPPOOL_COMMAND +// + +#define MD_APPPOOL_COMMAND_START 1 +#define MD_APPPOOL_COMMAND_STOP 2 + +// +// Valid values for MD_APPPOOL_STATE +// + +#define MD_APPPOOL_STATE_STARTING 1 +#define MD_APPPOOL_STATE_STARTED 2 +#define MD_APPPOOL_STATE_STOPPING 3 +#define MD_APPPOOL_STATE_STOPPED 4 + +// +// Valid values for MD_APPPOOL_IDENTITY_TYPE +// +#define MD_APPPOOL_IDENTITY_TYPE_LOCALSYSTEM 0 +#define MD_APPPOOL_IDENTITY_TYPE_LOCALSERVICE 1 +#define MD_APPPOOL_IDENTITY_TYPE_NETWORKSERVICE 2 +#define MD_APPPOOL_IDENTITY_TYPE_SPECIFICUSER 3 + +// +// Valid values for MD_LOAD_BALANCER_CAPABILITIES +// +#define MD_LOAD_BALANCER_CAPABILITIES_BASIC 1 +#define MD_LOAD_BALANCER_CAPABILITIES_SOPHISTICATED 2 + +#define IIS_MD_APP_BASE 9100 +#define MD_APP_APPPOOL_ID (IIS_MD_APP_BASE+1) +#define MD_APP_ALLOW_TRANSIENT_REGISTRATION (IIS_MD_APP_BASE+2) +#define MD_APP_AUTO_START (IIS_MD_APP_BASE+3) +#define MD_APPPOOL_PERIODIC_RESTART_CONNECTIONS (IIS_MD_APP_BASE+4) + +// +// TODO: These are duplicate definitions. Remove them if no one is using it. +// + +#define MD_APPPOOL_APPPOOL_ID (IIS_MD_APP_BASE + 101) +#define MD_APPPOOL_ALLOW_TRANSIENT_REGISTRATION (IIS_MD_APP_BASE + 102) +// commented out so we can build +//#define MD_APPPOOL_AUTO_START (IIS_MD_APP_BASE + 103) + + +#define IIS_MD_GLOBAL_BASE 9200 +#define MD_MAX_GLOBAL_BANDWIDTH (IIS_MD_GLOBAL_BASE+1) +#define MD_MAX_GLOBAL_CONNECTIONS (IIS_MD_GLOBAL_BASE+2) +#define MD_GLOBAL_STANDARD_APP_MODE_ENABLED (IIS_MD_GLOBAL_BASE+3) +#define MD_HEADER_WAIT_TIMEOUT (IIS_MD_GLOBAL_BASE+4) +#define MD_MIN_FILE_BYTES_PER_SEC (IIS_MD_GLOBAL_BASE+5) +#define MD_GLOBAL_LOG_IN_UTF_8 (IIS_MD_GLOBAL_BASE+6) +#define MD_DEMAND_START_THRESHOLD (IIS_MD_GLOBAL_BASE+7) + +#define MD_GLOBAL_SESSIONKEY 9999 +#define MD_ROOT_ENABLE_EDIT_WHILE_RUNNING 9998 +#define MD_GLOBAL_CHANGE_NUMBER 9997 +#define MD_ROOT_ENABLE_HISTORY 9996 +#define MD_ROOT_MAX_HISTORY_FILES 9995 +#define MD_GLOBAL_EDIT_WHILE_RUNNING_MAJOR_VERSION_NUMBER 9994 +#define MD_GLOBAL_EDIT_WHILE_RUNNING_MINOR_VERSION_NUMBER 9993 +#define MD_GLOBAL_XMLSCHEMATIMESTAMP 9992 +#define MD_GLOBAL_BINSCHEMATIMESTAMP 9991 +#define MD_COMMENTS 9990 +#define MD_LOCATION 9989 +#define MD_MAX_ERROR_FILES 9988 +#define MD_STOP_LISTENING 9987 + +// +// Valid values for MD_AUTHORIZATION +// + +#define MD_AUTH_ANONYMOUS 0x00000001 +#define MD_AUTH_BASIC 0x00000002 +#define MD_AUTH_NT 0x00000004 // Use NT auth provider (like NTLM) +#define MD_AUTH_MD5 0x00000010 +#define MD_AUTH_PASSPORT 0x00000040 + +// +// Valid values for MD_AUTHORIZATION_PERSISTENCE +// + + +#define MD_AUTH_SINGLEREQUEST 0x00000040 +#define MD_AUTH_SINGLEREQUESTIFPROXY 0x00000080 +#define MD_AUTH_SINGLEREQUESTALWAYSIFPROXY 0x00000100 + +// +// Valid values for MD_ACCESS_PERM +// + +#define MD_ACCESS_READ 0x00000001 // Allow for Read +#define MD_ACCESS_WRITE 0x00000002 // Allow for Write +#define MD_ACCESS_EXECUTE 0x00000004 // Allow for Execute +#define MD_ACCESS_SOURCE 0x00000010 // Apply access mask to source +#define MD_ACCESS_SCRIPT 0x00000200 // Allow for Script execution +#define MD_ACCESS_NO_REMOTE_WRITE 0x00000400 // Local host access only +#define MD_ACCESS_NO_REMOTE_READ 0x00001000 // Local host access only +#define MD_ACCESS_NO_REMOTE_EXECUTE 0x00002000 // Local host access only +#define MD_ACCESS_NO_REMOTE_SCRIPT 0x00004000 // Local host access only +#define MD_ACCESS_NO_PHYSICAL_DIR 0x00008000 // VR maps to no physical path + +#define MD_NONSSL_ACCESS_MASK (MD_ACCESS_READ| \ + MD_ACCESS_WRITE| \ + MD_ACCESS_EXECUTE| \ + MD_ACCESS_SOURCE| \ + MD_ACCESS_SCRIPT| \ + MD_ACCESS_NO_REMOTE_READ| \ + MD_ACCESS_NO_REMOTE_WRITE| \ + MD_ACCESS_NO_REMOTE_EXECUTE| \ + MD_ACCESS_NO_REMOTE_SCRIPT| \ + MD_ACCESS_NO_PHYSICAL_DIR \ + ) +// +// Valid values for MD_SSL_ACCESS_PERM +// + +#define MD_ACCESS_SSL 0x00000008 // Require SSL +#define MD_ACCESS_NEGO_CERT 0x00000020 // Allow client SSL certs +#define MD_ACCESS_REQUIRE_CERT 0x00000040 // Require client SSL certs +#define MD_ACCESS_MAP_CERT 0x00000080 // Map SSL cert to NT account +#define MD_ACCESS_SSL128 0x00000100 // Require 128 bit SSL + +#define MD_SSL_ACCESS_MASK (MD_ACCESS_SSL|\ + MD_ACCESS_NEGO_CERT|\ + MD_ACCESS_REQUIRE_CERT|\ + MD_ACCESS_MAP_CERT|\ + MD_ACCESS_SSL128) + +#define MD_ACCESS_MASK 0x0000ffff + +// +// Valid values for MD_DIRECTORY_BROWSING +// + +#define MD_DIRBROW_SHOW_DATE 0x00000002 +#define MD_DIRBROW_SHOW_TIME 0x00000004 +#define MD_DIRBROW_SHOW_SIZE 0x00000008 +#define MD_DIRBROW_SHOW_EXTENSION 0x00000010 +#define MD_DIRBROW_LONG_DATE 0x00000020 + +#define MD_DIRBROW_ENABLED 0x80000000 // Allow directory browsing +#define MD_DIRBROW_LOADDEFAULT 0x40000000 // Load default doc if exists + +#define MD_DIRBROW_MASK (MD_DIRBROW_SHOW_DATE | \ + MD_DIRBROW_SHOW_TIME | \ + MD_DIRBROW_SHOW_SIZE | \ + MD_DIRBROW_SHOW_EXTENSION | \ + MD_DIRBROW_LONG_DATE | \ + MD_DIRBROW_LOADDEFAULT | \ + MD_DIRBROW_ENABLED) + + + +// +// Valid values for MD_LOGON_METHOD +// + +#define MD_LOGON_INTERACTIVE 0 +#define MD_LOGON_BATCH 1 +#define MD_LOGON_NETWORK 2 +#define MD_LOGON_NETWORK_CLEARTEXT 3 + +// +// Valid values for MD_PASSPORT_REQUIRE_AD_MAPPING +// + +#define MD_PASSPORT_NO_MAPPING 0 +#define MD_PASSPORT_TRY_MAPPING 1 +#define MD_PASSPORT_NEED_MAPPING 2 + +// +// Valid values for MD_NOTIFY_EXAUTH +// + +#define MD_NOTIFEXAUTH_NTLMSSL 1 + +// +// Valid values for MD_FILTER_STATE +// + +#define MD_FILTER_STATE_LOADED 1 +#define MD_FILTER_STATE_UNLOADED 4 + +// +// Valid values for MD_SERVER_STATE +// + +#define MD_SERVER_STATE_STARTING 1 +#define MD_SERVER_STATE_STARTED 2 +#define MD_SERVER_STATE_STOPPING 3 +#define MD_SERVER_STATE_STOPPED 4 +#define MD_SERVER_STATE_PAUSING 5 +#define MD_SERVER_STATE_PAUSED 6 +#define MD_SERVER_STATE_CONTINUING 7 + +// +// Valid values for MD_SERVER_COMMAND +// + +#define MD_SERVER_COMMAND_START 1 +#define MD_SERVER_COMMAND_STOP 2 +#define MD_SERVER_COMMAND_PAUSE 3 +#define MD_SERVER_COMMAND_CONTINUE 4 + +// +// Valid values for MD_SERVER_SIZE +// + +#define MD_SERVER_SIZE_SMALL 0 +#define MD_SERVER_SIZE_MEDIUM 1 +#define MD_SERVER_SIZE_LARGE 2 + +// +// Valid values for MD_SERVER_CONFIG_INFO +// + +#define MD_SERVER_CONFIG_SSL_40 0x00000001 +#define MD_SERVER_CONFIG_SSL_128 0x00000002 +#define MD_SERVER_CONFIG_ALLOW_ENCRYPT 0x00000004 +#define MD_SERVER_CONFIG_AUTO_PW_SYNC 0x00000008 + +#define MD_SERVER_CONFIGURATION_MASK (MD_SERVER_CONFIG_SSL_40 | \ + MD_SERVER_CONFIG_SSL_128 | \ + MD_SERVER_CONFIG_ENCRYPT | \ + MD_SERVER_CONFIG_AUTO_PW_SYNC) + +// +// Valid values for MD_SCRIPT_MAPS flag field +// + +#define MD_SCRIPTMAPFLAG_SCRIPT 0x00000001 +#define MD_SCRIPTMAPFLAG_CHECK_PATH_INFO 0x00000004 + +#ifdef REMOVE // SteveBr +// +// Bogus value - do not use +// +#define MD_SCRIPTMAPFLAG_ALLOWED_ON_READ_DIR 0x00000001 +#endif // REMOVE + + +// +// Valid values for MD_AUTH_CHANGE_ENABLE +// + +#define MD_AUTH_CHANGE_UNSECURE 0x00000001 +#define MD_AUTH_CHANGE_DISABLE 0x00000002 +#define MD_AUTH_ADVNOTIFY_DISABLE 0x00000004 + +// +// Valid values for MD_NET_LOGON_WKS +// + +#define MD_NETLOGON_WKS_NONE 0 +#define MD_NETLOGON_WKS_IP 1 +#define MD_NETLOGON_WKS_DNS 2 + +// +// Valide substatus errors for MD_CUSTOM_ERROR +// + +#define MD_ERROR_SUB400_INVALID_DESTINATION 1 +#define MD_ERROR_SUB400_INVALID_DEPTH 2 +#define MD_ERROR_SUB400_INVALID_IF 3 +#define MD_ERROR_SUB400_INVALID_OVERWRITE 4 +#define MD_ERROR_SUB400_INVALID_TRANSLATE 5 +#define MD_ERROR_SUB400_INVALID_REQUEST_BODY 6 +#define MD_ERROR_SUB400_INVALID_CONTENT_LENGTH 7 +#define MD_ERROR_SUB400_INVALID_TIMEOUT 8 +#define MD_ERROR_SUB400_INVALID_LOCK_TOKEN 9 +#define MD_ERROR_SUB400_INVALID_XFF_HEADER 10 +#define MD_ERROR_SUB400_INVALID_WEBSOCKET_REQUEST 11 + +#define MD_ERROR_SUB401_LOGON 1 +#define MD_ERROR_SUB401_LOGON_CONFIG 2 +#define MD_ERROR_SUB401_LOGON_ACL 3 +#define MD_ERROR_SUB401_FILTER 4 +#define MD_ERROR_SUB401_APPLICATION 5 +#define MD_ERROR_SUB401_URLAUTH_POLICY 7 + +#define MD_ERROR_SUB403_EXECUTE_ACCESS_DENIED 1 +#define MD_ERROR_SUB403_READ_ACCESS_DENIED 2 +#define MD_ERROR_SUB403_WRITE_ACCESS_DENIED 3 +#define MD_ERROR_SUB403_SSL_REQUIRED 4 +#define MD_ERROR_SUB403_SSL128_REQUIRED 5 +#define MD_ERROR_SUB403_ADDR_REJECT 6 +#define MD_ERROR_SUB403_CERT_REQUIRED 7 +#define MD_ERROR_SUB403_SITE_ACCESS_DENIED 8 +#define MD_ERROR_SUB403_TOO_MANY_USERS 9 +#define MD_ERROR_SUB403_INVALID_CNFG 10 +#define MD_ERROR_SUB403_PWD_CHANGE 11 +#define MD_ERROR_SUB403_MAPPER_DENY_ACCESS 12 +#define MD_ERROR_SUB403_CERT_REVOKED 13 +#define MD_ERROR_SUB403_DIR_LIST_DENIED 14 +#define MD_ERROR_SUB403_CAL_EXCEEDED 15 +#define MD_ERROR_SUB403_CERT_BAD 16 +#define MD_ERROR_SUB403_CERT_TIME_INVALID 17 +#define MD_ERROR_SUB403_APPPOOL_DENIED 18 +#define MD_ERROR_SUB403_INSUFFICIENT_PRIVILEGE_FOR_CGI 19 +#define MD_ERROR_SUB403_PASSPORT_LOGIN_FAILURE 20 +#define MD_ERROR_SUB403_SOURCE_ACCESS_DENIED 21 +#define MD_ERROR_SUB403_INFINITE_DEPTH_DENIED 22 +#define MD_ERROR_SUB403_LOCK_TOKEN_REQUIRED 23 +#define MD_ERROR_SUB403_VALIDATION_FAILURE 24 + +#define MD_ERROR_SUB404_SITE_NOT_FOUND 1 +#define MD_ERROR_SUB404_DENIED_BY_POLICY 2 +#define MD_ERROR_SUB404_DENIED_BY_MIMEMAP 3 +#define MD_ERROR_SUB404_NO_HANDLER 4 +#define MD_ERROR_SUB404_URL_SEQUENCE_DENIED 5 +#define MD_ERROR_SUB404_VERB_DENIED 6 +#define MD_ERROR_SUB404_FILE_EXTENSION_DENIED 7 +#define MD_ERROR_SUB404_HIDDEN_SEGMENT 8 +#define MD_ERROR_SUB404_FILE_ATTRIBUTE_HIDDEN 9 +#define MD_ERROR_SUB404_URL_DOUBLE_ESCAPED 11 +#define MD_ERROR_SUB404_URL_HAS_HIGH_BIT_CHARS 12 +#define MD_ERROR_SUB404_URL_TOO_LONG 14 +#define MD_ERROR_SUB404_QUERY_STRING_TOO_LONG 15 +#define MD_ERROR_SUB404_STATICFILE_DAV 16 +#define MD_ERROR_SUB404_PRECONDITIONED_HANDLER 17 +#define MD_ERROR_SUB404_QUERY_STRING_SEQUENCE_DENIED 18 +#define MD_ERROR_SUB404_DENIED_BY_FILTERING_RULE 19 +#define MD_ERROR_SUB404_TOO_MANY_URL_SEGMENTS 20 + +#define MD_ERROR_SUB413_CONTENT_LENGTH_TOO_LARGE 1 + +#define MD_ERROR_SUB423_LOCK_TOKEN_SUBMITTED 1 +#define MD_ERROR_SUB423_NO_CONFLICTING_LOCK 2 + +#define MD_ERROR_SUB500_UNC_ACCESS 16 +#define MD_ERROR_SUB500_URLAUTH_NO_STORE 17 +#define MD_ERROR_SUB500_URLAUTH_STORE_ERROR 18 +#define MD_ERROR_SUB500_BAD_METADATA 19 +#define MD_ERROR_SUB500_URLAUTH_NO_SCOPE 20 +#define MD_ERROR_SUB500_HANDLERS_MODULE 21 +#define MD_ERROR_SUB500_ASPNET_MODULES 22 +#define MD_ERROR_SUB500_ASPNET_HANDLERS 23 +#define MD_ERROR_SUB500_ASPNET_IMPERSONATION 24 + +#define MD_ERROR_SUB502_TIMEOUT 1 +#define MD_ERROR_SUB502_PREMATURE_EXIT 2 +#define MD_ERROR_SUB502_ARR_CONNECTION_ERROR 3 +#define MD_ERROR_SUB502_ARR_NO_SERVER 4 + +#define MD_ERROR_SUB503_CPU_LIMIT 1 +#define MD_ERROR_SUB503_APP_CONCURRENT 2 +#define MD_ERROR_SUB503_ASPNET_QUEUE_FULL 3 +#define MD_ERROR_SUB503_FASTCGI_QUEUE_FULL 4 +#define MD_ERROR_SUB503_CONNECTION_LIMIT 5 + +// +// Valid access rights for ACE entries in MD_ADMIN_ACL +// + +#define MD_ACR_READ 0x00000001 +#define MD_ACR_WRITE 0x00000002 +#define MD_ACR_RESTRICTED_WRITE 0x00000020 +#define MD_ACR_UNSECURE_PROPS_READ 0x00000080 +#define MD_ACR_ENUM_KEYS 0x00000008 +#define MD_ACR_WRITE_DAC 0x00040000 + +// +// Valid modes for MD_USER_ISOLATION +// + +#define MD_USER_ISOLATION_NONE 0 +#define MD_USER_ISOLATION_BASIC 1 +#define MD_USER_ISOLATION_AD 2 +#define MD_USER_ISOLATION_LAST 2 + +// +// MD_IP_SEC binary format description +// + +/* + + This object is composed of 4 lists : 2 lists ( deny & grant ) of network addresses, + the only allowed family is AF_INET. + Each of this list is composed of sublists, one for each ( network address family, + significant subnet mask ) combination. The significant subnet mask is stored as + ( number of bytes all 1 ( 0xff ), bitmask in last byte ). + This is followed by 2 lists ( deny & grant ) of DNS names. Each of these lists is + composed of sublists, based on then number of components in the DNS name + e.g. "microsoft.com" has 2 components, "www.msft.com" has 3. + +Header: + SELFREFINDEX iDenyAddr; // address deny list + // points to ADDRESS_HEADER + SELFREFINDEX iGrantAddr; // address grant list + // points to ADDRESS_HEADER + SELFREFINDEX iDenyName; // DNS name deny list + // points to NAME_HEADER + SELFREFINDEX iGrantName; // DNS name grant list + // points to NAME_HEADER + DWORD dwFlags; + DWORD cRefSize; // size of reference area ( in bytes ) + +ADDRESS_HEADER : + DWORD cEntries; // # of Entries[] + DWORD cAddresses; // total # of addresses in all + // ADDRESS_LIST_ENTRY + ADDRESS_LIST_ENTRY Entries[]; + +ADDRESS_LIST_ENTRY : + DWORD iFamily; + DWORD cAddresses; + DWORD cFullBytes; + DWORD LastByte; + SELFREFINDEX iFirstAddress; // points to array of addresses + +NAME_HEADER : + DWORD cEntries; + DWORD cNames; // total # of names for all Entries[] + NAME_LIST_ENTRY Entries[]; + +Name list entry : + DWORD cComponents; // # of DNS components + DWORD cNames; + SELFREFINDEX iName[]; // array of references to DNS names + +This is followed by address arrays & names pointed to by iFirstAddress & iName +Names are '\0' delimited + +SELFREFINDEX is a DWORD offset from start of structure with high bit set to 1 + +*/ + +// +// Macros +// + +#define MD_SET_DATA_RECORD(_pMDR, _id, _attr, _utype, _dtype, _dlen, _pData) \ + { \ + (_pMDR)->dwMDIdentifier=(_id); \ + (_pMDR)->dwMDAttributes=(_attr); \ + (_pMDR)->dwMDUserType=(_utype); \ + (_pMDR)->dwMDDataType=(_dtype); \ + (_pMDR)->dwMDDataLen=(_dlen); \ + (_pMDR)->pbMDData=(LPBYTE)(_pData); \ + } + +// +// IIS ADSI Admin Object class names +// + +#define IIS_CLASS_COMPUTER "IIsComputer" +#define IIS_CLASS_WEB_SERVICE "IIsWebService" +#define IIS_CLASS_WEB_SERVER "IIsWebServer" +#define IIS_CLASS_WEB_INFO "IIsWebInfo" +#define IIS_CLASS_WEB_DIR "IIsWebDirectory" +#define IIS_CLASS_WEB_VDIR "IIsWebVirtualDir" +#define IIS_CLASS_WEB_FILE "IIsWebFile" +#define IIS_CLASS_FTP_SERVICE "IIsFtpService" +#define IIS_CLASS_FTP_SERVER "IIsFtpServer" +#define IIS_CLASS_FTP_INFO "IIsFtpInfo" +#define IIS_CLASS_FTP_VDIR "IIsFtpVirtualDir" +#define IIS_CLASS_FILTERS "IIsFilters" +#define IIS_CLASS_FILTER "IIsFilter" +#define IIS_CLASS_LOG_MODULES "IIsLogModules" +#define IIS_CLASS_LOG_MODULE "IIsLogModule" +#define IIS_CLASS_MIMEMAP "IIsMimeMap" +#define IIS_CLASS_CERTMAPPER "IIsCertMapper" +#define IIS_CLASS_COMPRESS_SCHEMES "IIsCompressionSchemes" +#define IIS_CLASS_COMPRESS_SCHEME "IIsCompressionScheme" + +#define IIS_CLASS_COMPUTER_W L"IIsComputer" +#define IIS_CLASS_WEB_SERVICE_W L"IIsWebService" +#define IIS_CLASS_WEB_SERVER_W L"IIsWebServer" +#define IIS_CLASS_WEB_INFO_W L"IIsWebInfo" +#define IIS_CLASS_WEB_DIR_W L"IIsWebDirectory" +#define IIS_CLASS_WEB_VDIR_W L"IIsWebVirtualDir" +#define IIS_CLASS_WEB_FILE_W L"IIsWebFile" +#define IIS_CLASS_FTP_SERVICE_W L"IIsFtpService" +#define IIS_CLASS_FTP_SERVER_W L"IIsFtpServer" +#define IIS_CLASS_FTP_INFO_W L"IIsFtpInfo" +#define IIS_CLASS_FTP_VDIR_W L"IIsFtpVirtualDir" +#define IIS_CLASS_FILTERS_W L"IIsFilters" +#define IIS_CLASS_FILTER_W L"IIsFilter" +#define IIS_CLASS_LOG_MODULES_W L"IIsLogModules" +#define IIS_CLASS_LOG_MODULE_W L"IIsLogModule" +#define IIS_CLASS_MIMEMAP_W L"IIsMimeMap" +#define IIS_CLASS_CERTMAPPER_W L"IIsCertMapper" +#define IIS_CLASS_COMPRESS_SCHEMES_W L"IIsCompressionSchemes" +#define IIS_CLASS_COMPRESS_SCHEME_W L"IIsCompressionScheme" + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _IISCNFG_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IImgCtx.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IImgCtx.h new file mode 100644 index 0000000000000000000000000000000000000000..d641abce6ec044a58bcf45458a9ec55186455cfa --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IImgCtx.h @@ -0,0 +1,148 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright 1996-1998 Microsoft Corporation. All Rights Reserved. +// +// File: iimgctx.h +// +//-------------------------------------------------------------------------- + +#ifndef _IImgCtxObjects_H_ +#define _IImgCtxObjects_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif +typedef void (CALLBACK *PFNIMGCTXCALLBACK)(void *, void *); +#ifdef __cplusplus +} +#endif + +// +// This interface is deprecated and will not be supported/available. +// + +#define IMGCHG_SIZE 0x0001 +#define IMGCHG_VIEW 0x0002 +#define IMGCHG_COMPLETE 0x0004 +#define IMGCHG_ANIMATE 0x0008 +#define IMGCHG_MASK 0x000F + +#define IMGLOAD_NOTLOADED 0x00100000 +#define IMGLOAD_LOADING 0x00200000 +#define IMGLOAD_STOPPED 0x00400000 +#define IMGLOAD_ERROR 0x00800000 +#define IMGLOAD_COMPLETE 0x01000000 +#define IMGLOAD_MASK 0x01F00000 + +#define IMGBITS_NONE 0x02000000 +#define IMGBITS_PARTIAL 0x04000000 +#define IMGBITS_TOTAL 0x08000000 +#define IMGBITS_MASK 0x0E000000 + +#define IMGANIM_ANIMATED 0x10000000 +#define IMGANIM_MASK 0x10000000 + +#define IMGTRANS_OPAQUE 0x20000000 +#define IMGTRANS_MASK 0x20000000 + +#define DWN_COLORMODE 0x0000003F +#define DWN_DOWNLOADONLY 0x00000040 +#define DWN_FORCEDITHER 0x00000080 +#define DWN_RAWIMAGE 0x00000100 +#define DWN_MIRRORIMAGE 0x00000200 + +/* Definition of interface: IImgCtx */ +#undef INTERFACE +#define INTERFACE IImgCtx + +// {3050f3d7-98b5-11cf-bb82-00aa00bdce0b} +DEFINE_GUID(IID_IImgCtx, 0x3050f3d7, 0x98b5, 0x11cf, 0xbb, 0x82, 0x00, 0xaa, 0x00, 0xbd, 0xce, 0x0b); + +DECLARE_INTERFACE_(IImgCtx, IUnknown) +{ +#ifndef NO_BASEINTERFACE_FUNCS + + /* IUnknown methods */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; +#endif + + /* IImgCtx methods */ + + /* Initialization/Download methods */ + STDMETHOD(Load)(THIS_ LPCWSTR pszUrl, DWORD dwFlags) PURE; + STDMETHOD(SelectChanges)(THIS_ ULONG ulChgOn, ULONG ulChgOff, BOOL fSignal) PURE; + STDMETHOD(SetCallback)(THIS_ PFNIMGCTXCALLBACK pfn, void * pvPrivateData) PURE; + STDMETHOD(Disconnect)(THIS) PURE; + + /* Query methods */ + STDMETHOD(GetUpdateRects)(THIS_ struct tagRECT FAR* prc, struct tagRECT FAR* prcImg, long FAR* pcrc) PURE; + STDMETHOD(GetStateInfo)(THIS_ ULONG FAR* pulState, struct tagSIZE FAR* psize, BOOL fClearChanges) PURE; + STDMETHOD(GetPalette)(THIS_ HPALETTE FAR* phpal) PURE; + + /* Rendering methods */ + STDMETHOD(Draw)(THIS_ HDC hdc, struct tagRECT FAR* prcBounds) PURE; + STDMETHOD(Tile)(THIS_ HDC hdc, struct tagPOINT FAR* pptBackOrg, struct tagRECT FAR* prcClip, struct tagSIZE FAR* psize) PURE; + STDMETHOD(StretchBlt)(THIS_ HDC hdc, int dstX, int dstY, int dstXE, int dstYE, int srcX, int srcY, int srcXE, int srcYE, DWORD dwROP) PURE; +}; + +#ifdef COBJMACROS + + +#define IImgCtx_QueryInterface(This,riid,ppvObject) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) + +#define IImgCtx_AddRef(This) \ + (This)->lpVtbl -> AddRef(This) + +#define IImgCtx_Release(This) \ + (This)->lpVtbl -> Release(This) + +#define IImgCtx_Load(This, pszUrl, dwFlags) \ + (This)->lpVtbl -> Load(This, pszUrl, dwFlags) + +#define IImgCtx_Draw(This, hdc, prcBounds) \ + (This)->lpVtbl -> Draw(This, hdc, prcBounds) + +#define IImgCtx_Tile(This, hdc, pptBackOrg, prcClip, psize) \ + (This)->lpVtbl -> Tile(This, hdc, pptBackOrg, prcClip, psize) + +#define IImgCtx_GetUpdateRects(This, prc, prcImg, pcrc) \ + (This)->lpVtbl -> GetUpdateRects(This, prc, prcImg, pcrc) + +#define IImgCtx_GetStateInfo(This, pulState, psize, fClearChanges) \ + (This)->lpVtbl -> GetStateInfo(This, pulState, psize, fClearChanges) + +#define IImgCtx_GetPalette(This, phpal) \ + (This)->lpVtbl -> GetPalette(This, phpal) + +#define IImgCtx_SelectChanges(This, ulChgOn, ulChgOff, fSignal) \ + (This)->lpVtbl -> SelectChanges(This, ulChgOn, ulChgOff, fSignal) + +#define IImgCtx_SetCallback(This, pfnCallback, pvPrivateData) \ + (This)->lpVtbl -> SetCallback(This, pfnCallback, pvPrivateData) + +#define IImgCtx_Disconnect(This) \ + (This)->lpVtbl -> Disconnect(This) + +#define IImgCtx_StretchBlt(This, hdc, dstX, dstY, dstXE, dstYE, srcX, srcY, srcXE, srcYE, dwROP) \ + (This)->lpVtbl -> StretchBlt(This, hdc, dstX, dstY, dstXE, dstYE, srcX, srcY, srcXE, srcYE, dwROP) + +#endif /* COBJMACROS */ + + +// {3050f3d6-98b5-11cf-bb82-00aa00bdce0b} +DEFINE_GUID(CLSID_IImgCtx, 0x3050f3d6, 0x98b5, 0x11cf, 0xbb, 0x82, 0x00, 0xaa, 0x00, 0xbd, 0xce, 0x0b); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IMessage.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IMessage.h new file mode 100644 index 0000000000000000000000000000000000000000..849a899e1c5ede1bac51360cfe48dd9230e5015f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IMessage.h @@ -0,0 +1,221 @@ +/* + * I M E S S A G E . H + * + * External definitions for MAPI's IMessage-on-IStorage facility + * + * Copyright 1986-1999 Microsoft Corporation. All Rights Reserved. + */ + +#ifndef _IMESSAGE_H_ +#define _IMESSAGE_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" +{ +#endif + +#ifndef WIN_NOEXCEPT + #ifdef __cplusplus + #if _MSC_VER >= 1900 + #define WIN_NOEXCEPT noexcept + #else + #define WIN_NOEXCEPT throw() + #endif + #else + #define WIN_NOEXCEPT + #endif +#endif + +typedef struct _MSGSESS FAR * LPMSGSESS; + +/* Typedef of optional callback routine to be called on last release of + * top-level messages opened with OpenIMsgOnIStg + */ +typedef void (STDAPICALLTYPE MSGCALLRELEASE)( + ULONG ulCallerData, + LPMESSAGE lpMessage ); + +/* DLL Entry Points (found in mapiu.dll) */ + +/* OpenIMsgSession + * CloseIMsgSession + * + * These entry points allow the caller to "wrap" the creation of messages + * inside a session, so that when the session is closed, all messages + * created within that session are closed as well. Use of IMSG sessions + * is optional. If OpenIMsgOnIStg is called with a NULL for the lpmsgsess + * parameter, the message is created independent of any session, and has + * no way to be shutdown. If the caller forgets to release the message, or + * to release open tables within the message, the memory will be leaked until + * the external application terminates. + */ + +STDAPI_(SCODE) OpenIMsgSession( + LPMALLOC lpMalloc, /* -> Co malloc object */ + ULONG ulFlags, /* reserved. Must be zero. */ + LPMSGSESS FAR *lppMsgSess ); /* <- message session object */ + +STDAPI_(void) CloseIMsgSession( + LPMSGSESS lpMsgSess ); /* -> message session object */ + +/* OpenIMsgOnIStg - Main entry point + * + * NOTE 1: The IStg must be opened with STGM_TRANSACTED if STGM_READWRITE + * is specified. Since messages don't support a write only mode, IMessage + * doesn't allow a storage object opened in write only mode. If the storage + * is opened STGM_READ, then STGM_TRANSACTED is NOT required. + * + * NOTE 2: The lpMapiSup parameter is optional. If supplied then IMessage + * will support the MAPI_DIALOG and ATTACH_DIALOG flags (by calling + * support method: DoMCDialog) on CopyTo and DeleteAttach methods. + * If lpMapiSup is not supplied (i.e. passed 0) then dialog flags will be + * ignored. If supplied then ModifyRecipients will attempt to convert + * short term entryids to long term entryids (by calling support method + * OpenAddressBook and calls on the returned object). If not supplied + * then short term entryid's will be stored without conversion. + * + * NOTE 3: The lpfMsgCallRelease parameter is optional. If supplied then + * IMessage will call the routine when the last release on (the toplevel only) + * message is called. It is intended to allow the callee to free the IStorage + * that contains the message. IMessage will not use the IStorage object after + * making this call. + * + * NOTE 4: Behavior of multiple opens of sub-objects (Attachments, Streams, + * Storages, Messages, etc.) within a message is deliberately undefined in + * MAPI. This implementation allows them, but will do it by AddRef'ing the + * existing open and returning it to the caller of OpenAttachment or + * OpenProperty. This means that whatever access mode the first open on a + * specific Attachment or Property had is what all others will get regardless + * of what the subsequent opens asked for. + * + * NOTE 5: There is currently one flag defined for use with the ulFlags + * parameter. The IMSG_NO_ISTG_COMMIT flag controls whether the commit + * method of IStorage is called when the client calls SaveChanges on the + * IMessage object. Some clients of IMessage may wish to commit the IStorage + * themselves after writing additional data to the storage (beyond what + * IMessage itself writes). To aid in this, the IMessage implementation + * guarantees to name all sub-storages starting with "__". Therefore, + * if the client keeps its names out of that namespace, there will be no + * accidental collisions. + * + * WARNING: + * + * This implementation of IMessage will support OpenProperty w/MAPI_CREATE + * where the source interface is IID_IStorage if the property id is + * 'PR_ATTACH_DATA'. Once this has been done, the caller has an IStorage + * interface on this property. This is ok and should allow for + * easier implementation of OLE 2.0 Server functionality. However, if you + * pass in the new IStorage ptr (to the attachment data) through the + * OpenIMsgOnIStg entry point and then proceed to release things in the + * wrong order we will make no attempt to behave in a predictable fashion. + * Keep in mind that the correct method for placing a message into an + * attachment is to call OpenProperty where the source interface is + * IID_IMessage. The IStorage interface is supported to allow an easy way + * to stick a WWord doc. into an attachment w/o converting to/from IStream. + * + */ +STDAPI_(SCODE) OpenIMsgOnIStg( + LPMSGSESS lpMsgSess, /* -> message session obj (optional) */ + LPALLOCATEBUFFER lpAllocateBuffer, /* -> AllocateBuffer memory routine */ + LPALLOCATEMORE lpAllocateMore, /* -> AllocateMore memory routine */ + LPFREEBUFFER lpFreeBuffer, /* -> FreeBuffer memory routine */ + LPMALLOC lpMalloc, /* -> Co malloc object */ + LPVOID lpMapiSup, /* -> MAPI Support Obj (optional) */ + LPSTORAGE lpStg, /* -> open IStorage containing msg */ + MSGCALLRELEASE FAR *lpfMsgCallRelease, /* -> release callback rtn (opt) */ + ULONG ulCallerData, /* caller data returned in callback */ + ULONG ulFlags, /* -> flags (controls istg commit) */ + LPMESSAGE FAR *lppMsg ) WIN_NOEXCEPT; /* <- open message object */ + +#define IMSG_NO_ISTG_COMMIT ((ULONG) 0x00000001) + + +/* NOTE: Property Attributes are specific to this IMessage on IStorage */ +/* implementation and are not a part of standard MAPI 1.0 property methods */ + +/* Property Attributes */ + +#define PROPATTR_MANDATORY ((ULONG) 0x00000001) +#define PROPATTR_READABLE ((ULONG) 0x00000002) +#define PROPATTR_WRITEABLE ((ULONG) 0x00000004) + +#define PROPATTR_NOT_PRESENT ((ULONG) 0x00000008) + +/* Attribute Array */ + +typedef struct _SPropAttrArray +{ + ULONG cValues; + ULONG aPropAttr[MAPI_DIM]; +} SPropAttrArray, FAR * LPSPropAttrArray; + +#define CbNewSPropAttrArray(_cattr) \ + (offsetof(SPropAttrArray,aPropAttr) + (_cattr)*sizeof(ULONG)) +#define CbSPropAttrArray(_lparray) \ + (offsetof(SPropAttrArray,aPropAttr) + \ + (UINT)((_lparray)->cValues)*sizeof(ULONG)) + +#define SizedSPropAttrArray(_cattr, _name) \ +struct _SPropAttrArray_ ## _name \ +{ \ + ULONG cValues; \ + ULONG aPropAttr[_cattr]; \ +} _name + + + +/* GetAttribIMsgOnIStg - To get attributes on properties + * + * This call is provided because there is no method of IMAPIPropSet to allow + * getting attributes. + */ +_Check_return_ +STDAPI GetAttribIMsgOnIStg( + LPVOID lpObject, + LPSPropTagArray lpPropTagArray, + LPSPropAttrArray FAR *lppPropAttrArray ) WIN_NOEXCEPT; + +/* SetAttribIMsgOnIStg - To set attributes on properties + * + * This call is provided because there is no method of IMAPIPropSet to allow + * setting of attributes. + */ +_Check_return_ +STDAPI SetAttribIMsgOnIStg( + LPVOID lpObject, + LPSPropTagArray lpPropTags, + LPSPropAttrArray lpPropAttrs, + LPSPropProblemArray FAR *lppPropProblems ) WIN_NOEXCEPT; + +/* MapStorageSCode - To map an IStorage hResult to a MAPI sCode value + * + * This call is provided for the internal use of PDK components that base + * their message implementations on IMessage. Since these components must + * open the storage themselves, there is a common need to map OLE 2.0 + * Storage error returns to MAPI sCodes. + * + * WARNING: There is no guarantee that this entry point will exist in + * shipped versions of mapiu.dll. + */ +STDAPI_(SCODE) MapStorageSCode( SCODE StgSCode ) WIN_NOEXCEPT; + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _IMESSAGE_H_ */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IMessageDispatcher.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IMessageDispatcher.h new file mode 100644 index 0000000000000000000000000000000000000000..6641f5aae52b560719752dd0e14c93a1ba1db49b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IMessageDispatcher.h @@ -0,0 +1,218 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __imessagedispatcher_h__ +#define __imessagedispatcher_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IMessageDispatcher_FWD_DEFINED__ +#define __IMessageDispatcher_FWD_DEFINED__ +typedef interface IMessageDispatcher IMessageDispatcher; + +#endif /* __IMessageDispatcher_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "Inspectable.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_imessagedispatcher_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#if ( _MSC_VER >= 1020 ) +#pragma once +#endif +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma warning(push) +#pragma warning(disable:4668) +#pragma warning(disable:4001) +#pragma once +#pragma warning(pop) + + +extern RPC_IF_HANDLE __MIDL_itf_imessagedispatcher_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imessagedispatcher_0000_0000_v0_0_s_ifspec; + +#ifndef __IMessageDispatcher_INTERFACE_DEFINED__ +#define __IMessageDispatcher_INTERFACE_DEFINED__ + +/* interface IMessageDispatcher */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IMessageDispatcher; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F5F84C8F-CFD0-4CD6-B66B-C5D26FF1689D") + IMessageDispatcher : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE PumpMessages( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMessageDispatcherVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMessageDispatcher * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMessageDispatcher * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMessageDispatcher * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + IMessageDispatcher * This, + /* [out] */ ULONG *iidCount, + /* [size_is][size_is][out] */ IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + IMessageDispatcher * This, + /* [out] */ HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + IMessageDispatcher * This, + /* [out] */ TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IMessageDispatcher, PumpMessages) + HRESULT ( STDMETHODCALLTYPE *PumpMessages )( + IMessageDispatcher * This); + + END_INTERFACE + } IMessageDispatcherVtbl; + + interface IMessageDispatcher + { + CONST_VTBL struct IMessageDispatcherVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMessageDispatcher_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMessageDispatcher_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMessageDispatcher_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMessageDispatcher_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IMessageDispatcher_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IMessageDispatcher_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IMessageDispatcher_PumpMessages(This) \ + ( (This)->lpVtbl -> PumpMessages(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMessageDispatcher_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imessagedispatcher_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_imessagedispatcher_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imessagedispatcher_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IPExport.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IPExport.h new file mode 100644 index 0000000000000000000000000000000000000000..d3e08716f1eb4a9c4f8c69c440b05895a42718f9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IPExport.h @@ -0,0 +1,284 @@ +/********************************************************************/ +/** Microsoft LAN Manager **/ +/** Copyright (c) Microsoft Corporation. All rights reserved. **/ +/********************************************************************/ +/* :ts=4 */ + +//** IPEXPORT.H - IP public definitions. +// +// This file contains public definitions exported to transport layer and +// application software. +// + +#ifndef IP_EXPORT_INCLUDED +#define IP_EXPORT_INCLUDED 1 + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region App Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + + +// +// IP type definitions. +// +typedef ULONG IPAddr; // An IP address. +typedef ULONG IPMask; // An IP subnet mask. +typedef ULONG IP_STATUS; // Status code returned from IP APIs. + +#include + +typedef struct in6_addr IPv6Addr; + +#include + +/*INC*/ + +// +// The ip_option_information structure describes the options to be +// included in the header of an IP packet. The TTL, TOS, and Flags +// values are carried in specific fields in the header. The OptionsData +// bytes are carried in the options area following the standard IP header. +// With the exception of source route options, this data must be in the +// format to be transmitted on the wire as specified in RFC 791. A source +// route option should contain the full route - first hop thru final +// destination - in the route data. The first hop will be pulled out of the +// data and the option will be reformatted accordingly. Otherwise, the route +// option should be formatted as specified in RFC 791. +// + +typedef struct ip_option_information { + UCHAR Ttl; // Time To Live + UCHAR Tos; // Type Of Service + UCHAR Flags; // IP header flags + UCHAR OptionsSize; // Size in bytes of options data + _Field_size_bytes_(OptionsSize) + PUCHAR OptionsData; // Pointer to options data +} IP_OPTION_INFORMATION, *PIP_OPTION_INFORMATION; + +#if defined(_WIN64) + +typedef struct ip_option_information32 { + UCHAR Ttl; + UCHAR Tos; + UCHAR Flags; + UCHAR OptionsSize; + UCHAR * POINTER_32 OptionsData; +} IP_OPTION_INFORMATION32, *PIP_OPTION_INFORMATION32; + +#endif // _WIN64 + +// +// The icmp_echo_reply structure describes the data returned in response +// to an echo request. +// + +typedef struct icmp_echo_reply { + IPAddr Address; // Replying address + ULONG Status; // Reply IP_STATUS + ULONG RoundTripTime; // RTT in milliseconds + USHORT DataSize; // Reply data size in bytes + USHORT Reserved; // Reserved for system use + _Field_size_bytes_(DataSize) + PVOID Data; // Pointer to the reply data + struct ip_option_information Options; // Reply options +} ICMP_ECHO_REPLY, *PICMP_ECHO_REPLY; + +#if defined(_WIN64) + +typedef struct icmp_echo_reply32 { + IPAddr Address; + ULONG Status; + ULONG RoundTripTime; + USHORT DataSize; + USHORT Reserved; + VOID * POINTER_32 Data; + struct ip_option_information32 Options; +} ICMP_ECHO_REPLY32, *PICMP_ECHO_REPLY32; + +#endif // _WIN64 + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#include +typedef struct _IPV6_ADDRESS_EX { + USHORT sin6_port; + ULONG sin6_flowinfo; + USHORT sin6_addr[8]; + ULONG sin6_scope_id; +} IPV6_ADDRESS_EX, *PIPV6_ADDRESS_EX; +#include + +typedef struct icmpv6_echo_reply_lh { + IPV6_ADDRESS_EX Address; // Replying address. + ULONG Status; // Reply IP_STATUS. + unsigned int RoundTripTime; // RTT in milliseconds. + // Reply data follows this structure in memory. +} ICMPV6_ECHO_REPLY_LH, *PICMPV6_ECHO_REPLY_LH; + +typedef ICMPV6_ECHO_REPLY_LH ICMPV6_ECHO_REPLY; +typedef ICMPV6_ECHO_REPLY_LH *PICMPV6_ECHO_REPLY; + +#endif + +typedef struct arp_send_reply { + IPAddr DestAddress; + IPAddr SrcAddress; +} ARP_SEND_REPLY, *PARP_SEND_REPLY; + +typedef struct tcp_reserve_port_range { + USHORT UpperRange; + USHORT LowerRange; +} TCP_RESERVE_PORT_RANGE, *PTCP_RESERVE_PORT_RANGE; + +#define MAX_ADAPTER_NAME 128 + +typedef struct _IP_ADAPTER_INDEX_MAP { + ULONG Index; + WCHAR Name[MAX_ADAPTER_NAME]; +} IP_ADAPTER_INDEX_MAP, *PIP_ADAPTER_INDEX_MAP; + +typedef struct _IP_INTERFACE_INFO { + LONG NumAdapters; + IP_ADAPTER_INDEX_MAP Adapter[1]; +} IP_INTERFACE_INFO,*PIP_INTERFACE_INFO; + +typedef struct _IP_UNIDIRECTIONAL_ADAPTER_ADDRESS { + ULONG NumAdapters; + IPAddr Address[1]; +} IP_UNIDIRECTIONAL_ADAPTER_ADDRESS, *PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS; + +typedef struct _IP_ADAPTER_ORDER_MAP { + ULONG NumAdapters; + ULONG AdapterOrder[1]; +} IP_ADAPTER_ORDER_MAP, *PIP_ADAPTER_ORDER_MAP; + +typedef struct _IP_MCAST_COUNTER_INFO { + ULONG64 InMcastOctets; + ULONG64 OutMcastOctets; + ULONG64 InMcastPkts; + ULONG64 OutMcastPkts; +} IP_MCAST_COUNTER_INFO, *PIP_MCAST_COUNTER_INFO; + +// +// IP_STATUS codes returned from IP APIs +// + +#define IP_STATUS_BASE 11000 + +#define IP_SUCCESS 0 +#define IP_BUF_TOO_SMALL (IP_STATUS_BASE + 1) +#define IP_DEST_NET_UNREACHABLE (IP_STATUS_BASE + 2) +#define IP_DEST_HOST_UNREACHABLE (IP_STATUS_BASE + 3) +#define IP_DEST_PROT_UNREACHABLE (IP_STATUS_BASE + 4) +#define IP_DEST_PORT_UNREACHABLE (IP_STATUS_BASE + 5) +#define IP_NO_RESOURCES (IP_STATUS_BASE + 6) +#define IP_BAD_OPTION (IP_STATUS_BASE + 7) +#define IP_HW_ERROR (IP_STATUS_BASE + 8) +#define IP_PACKET_TOO_BIG (IP_STATUS_BASE + 9) +#define IP_REQ_TIMED_OUT (IP_STATUS_BASE + 10) +#define IP_BAD_REQ (IP_STATUS_BASE + 11) +#define IP_BAD_ROUTE (IP_STATUS_BASE + 12) +#define IP_TTL_EXPIRED_TRANSIT (IP_STATUS_BASE + 13) +#define IP_TTL_EXPIRED_REASSEM (IP_STATUS_BASE + 14) +#define IP_PARAM_PROBLEM (IP_STATUS_BASE + 15) +#define IP_SOURCE_QUENCH (IP_STATUS_BASE + 16) +#define IP_OPTION_TOO_BIG (IP_STATUS_BASE + 17) +#define IP_BAD_DESTINATION (IP_STATUS_BASE + 18) + +// +// Variants of the above using IPv6 terminology, where different +// + +#define IP_DEST_NO_ROUTE (IP_STATUS_BASE + 2) +#define IP_DEST_ADDR_UNREACHABLE (IP_STATUS_BASE + 3) +#define IP_DEST_PROHIBITED (IP_STATUS_BASE + 4) +#define IP_DEST_PORT_UNREACHABLE (IP_STATUS_BASE + 5) +#define IP_HOP_LIMIT_EXCEEDED (IP_STATUS_BASE + 13) +#define IP_REASSEMBLY_TIME_EXCEEDED (IP_STATUS_BASE + 14) +#define IP_PARAMETER_PROBLEM (IP_STATUS_BASE + 15) + +// +// IPv6-only status codes +// + +#define IP_DEST_UNREACHABLE (IP_STATUS_BASE + 40) +#define IP_TIME_EXCEEDED (IP_STATUS_BASE + 41) +#define IP_BAD_HEADER (IP_STATUS_BASE + 42) +#define IP_UNRECOGNIZED_NEXT_HEADER (IP_STATUS_BASE + 43) +#define IP_ICMP_ERROR (IP_STATUS_BASE + 44) +#define IP_DEST_SCOPE_MISMATCH (IP_STATUS_BASE + 45) + +// +// The next group are status codes passed up on status indications to +// transport layer protocols. +// +#define IP_ADDR_DELETED (IP_STATUS_BASE + 19) +#define IP_SPEC_MTU_CHANGE (IP_STATUS_BASE + 20) +#define IP_MTU_CHANGE (IP_STATUS_BASE + 21) +#define IP_UNLOAD (IP_STATUS_BASE + 22) +#define IP_ADDR_ADDED (IP_STATUS_BASE + 23) +#define IP_MEDIA_CONNECT (IP_STATUS_BASE + 24) +#define IP_MEDIA_DISCONNECT (IP_STATUS_BASE + 25) +#define IP_BIND_ADAPTER (IP_STATUS_BASE + 26) +#define IP_UNBIND_ADAPTER (IP_STATUS_BASE + 27) +#define IP_DEVICE_DOES_NOT_EXIST (IP_STATUS_BASE + 28) +#define IP_DUPLICATE_ADDRESS (IP_STATUS_BASE + 29) +#define IP_INTERFACE_METRIC_CHANGE (IP_STATUS_BASE + 30) +#define IP_RECONFIG_SECFLTR (IP_STATUS_BASE + 31) +#define IP_NEGOTIATING_IPSEC (IP_STATUS_BASE + 32) +#define IP_INTERFACE_WOL_CAPABILITY_CHANGE (IP_STATUS_BASE + 33) +#define IP_DUPLICATE_IPADD (IP_STATUS_BASE + 34) + +#define IP_GENERAL_FAILURE (IP_STATUS_BASE + 50) +#define MAX_IP_STATUS IP_GENERAL_FAILURE +#define IP_PENDING (IP_STATUS_BASE + 255) + + +// +// Values used in the Flags field of IP_OPTION_INFORMATION. +// +#define IP_FLAG_REVERSE 0x1 // Do a round-trip echo request. +#define IP_FLAG_DF 0x2 // Don't fragment this packet. + +// +// Supported IP Option Types. +// +// These types define the options which may be used in the OptionsData field +// of the ip_option_information structure. See RFC 791 for a complete +// description of each. +// +#define IP_OPT_EOL 0 // End of list option +#define IP_OPT_NOP 1 // No operation +#define IP_OPT_SECURITY 0x82 // Security option +#define IP_OPT_LSRR 0x83 // Loose source route +#define IP_OPT_SSRR 0x89 // Strict source route +#define IP_OPT_RR 0x7 // Record route +#define IP_OPT_TS 0x44 // Timestamp +#define IP_OPT_SID 0x88 // Stream ID (obsolete) +#define IP_OPT_ROUTER_ALERT 0x94 // Router Alert Option + +#define MAX_OPT_SIZE 40 // Maximum length of IP options in bytes + +#ifdef CHICAGO + +// Ioctls code exposed by Memphis tcpip stack. +// For NT these ioctls are define in ntddip.h (private\inc) + +#define IOCTL_IP_RTCHANGE_NOTIFY_REQUEST 101 +#define IOCTL_IP_ADDCHANGE_NOTIFY_REQUEST 102 +#define IOCTL_ARP_SEND_REQUEST 103 +#define IOCTL_IP_INTERFACE_INFO 104 +#define IOCTL_IP_GET_BEST_INTERFACE 105 +#define IOCTL_IP_UNIDIRECTIONAL_ADAPTER_ADDRESS 106 + +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#endif // IP_EXPORT_INCLUDED diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IPTypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IPTypes.h new file mode 100644 index 0000000000000000000000000000000000000000..58f474bba2b1ad0a38a608f0e24417bef0b252b8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IPTypes.h @@ -0,0 +1,483 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + iptypes.h + +--*/ + +#ifndef IP_TYPES_INCLUDED +#define IP_TYPES_INCLUDED + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma warning(push) +#pragma warning(disable:4201) +#pragma warning(disable:4214) // bit field types other than int + +#include +#include +#include + +// Definitions and structures used by getnetworkparams and getadaptersinfo apis + +#define MAX_ADAPTER_DESCRIPTION_LENGTH 128 // arb. +#define MAX_ADAPTER_NAME_LENGTH 256 // arb. +#define MAX_ADAPTER_ADDRESS_LENGTH 8 // arb. +#define DEFAULT_MINIMUM_ENTITIES 32 // arb. +#define MAX_HOSTNAME_LEN 128 // arb. +#define MAX_DOMAIN_NAME_LEN 128 // arb. +#define MAX_SCOPE_ID_LEN 256 // arb. +#define MAX_DHCPV6_DUID_LENGTH 130 // RFC 3315. +#define MAX_DNS_SUFFIX_STRING_LENGTH 256 + +// +// types +// + +// Node Type + +#define BROADCAST_NODETYPE 1 +#define PEER_TO_PEER_NODETYPE 2 +#define MIXED_NODETYPE 4 +#define HYBRID_NODETYPE 8 + +// +// IP_ADDRESS_STRING - store an IP address as a dotted decimal string +// + +typedef struct { + char String[4 * 4]; +} IP_ADDRESS_STRING, *PIP_ADDRESS_STRING, IP_MASK_STRING, *PIP_MASK_STRING; + +// +// IP_ADDR_STRING - store an IP address with its corresponding subnet mask, +// both as dotted decimal strings +// + +typedef struct _IP_ADDR_STRING { + struct _IP_ADDR_STRING* Next; + IP_ADDRESS_STRING IpAddress; + IP_MASK_STRING IpMask; + DWORD Context; +} IP_ADDR_STRING, *PIP_ADDR_STRING; + +// +// ADAPTER_INFO - per-adapter information. All IP addresses are stored as +// strings +// + +typedef struct _IP_ADAPTER_INFO { + struct _IP_ADAPTER_INFO* Next; + DWORD ComboIndex; + char AdapterName[MAX_ADAPTER_NAME_LENGTH + 4]; + char Description[MAX_ADAPTER_DESCRIPTION_LENGTH + 4]; + UINT AddressLength; + BYTE Address[MAX_ADAPTER_ADDRESS_LENGTH]; + DWORD Index; + UINT Type; + UINT DhcpEnabled; + PIP_ADDR_STRING CurrentIpAddress; + IP_ADDR_STRING IpAddressList; + IP_ADDR_STRING GatewayList; + IP_ADDR_STRING DhcpServer; + BOOL HaveWins; + IP_ADDR_STRING PrimaryWinsServer; + IP_ADDR_STRING SecondaryWinsServer; + time_t LeaseObtained; + time_t LeaseExpires; +} IP_ADAPTER_INFO, *PIP_ADAPTER_INFO; + +#ifdef _WINSOCK2API_ + +// +// The following types require Winsock2. +// + +typedef NL_PREFIX_ORIGIN IP_PREFIX_ORIGIN; +typedef NL_SUFFIX_ORIGIN IP_SUFFIX_ORIGIN; +typedef NL_DAD_STATE IP_DAD_STATE; + +typedef struct _IP_ADAPTER_UNICAST_ADDRESS_LH { + union { + ULONGLONG Alignment; + struct { + ULONG Length; + DWORD Flags; + }; + }; + struct _IP_ADAPTER_UNICAST_ADDRESS_LH *Next; + SOCKET_ADDRESS Address; + + IP_PREFIX_ORIGIN PrefixOrigin; + IP_SUFFIX_ORIGIN SuffixOrigin; + IP_DAD_STATE DadState; + + ULONG ValidLifetime; + ULONG PreferredLifetime; + ULONG LeaseLifetime; + UINT8 OnLinkPrefixLength; +} IP_ADAPTER_UNICAST_ADDRESS_LH, + *PIP_ADAPTER_UNICAST_ADDRESS_LH; + +typedef struct _IP_ADAPTER_UNICAST_ADDRESS_XP { + union { + ULONGLONG Alignment; + struct { + ULONG Length; + DWORD Flags; + }; + }; + struct _IP_ADAPTER_UNICAST_ADDRESS_XP *Next; + SOCKET_ADDRESS Address; + + IP_PREFIX_ORIGIN PrefixOrigin; + IP_SUFFIX_ORIGIN SuffixOrigin; + IP_DAD_STATE DadState; + + ULONG ValidLifetime; + ULONG PreferredLifetime; + ULONG LeaseLifetime; +} IP_ADAPTER_UNICAST_ADDRESS_XP, *PIP_ADAPTER_UNICAST_ADDRESS_XP; + +#if (NTDDI_VERSION >= NTDDI_VISTA) +typedef IP_ADAPTER_UNICAST_ADDRESS_LH IP_ADAPTER_UNICAST_ADDRESS; +typedef IP_ADAPTER_UNICAST_ADDRESS_LH *PIP_ADAPTER_UNICAST_ADDRESS; +#elif (NTDDI_VERSION >= NTDDI_WINXP) +typedef IP_ADAPTER_UNICAST_ADDRESS_XP IP_ADAPTER_UNICAST_ADDRESS; +typedef IP_ADAPTER_UNICAST_ADDRESS_XP *PIP_ADAPTER_UNICAST_ADDRESS; +#endif + +// +// Bit values of IP_ADAPTER_UNICAST_ADDRESS Flags field. +// +#define IP_ADAPTER_ADDRESS_DNS_ELIGIBLE 0x01 +#define IP_ADAPTER_ADDRESS_TRANSIENT 0x02 + +typedef struct _IP_ADAPTER_ANYCAST_ADDRESS_XP { + union { + ULONGLONG Alignment; + struct { + ULONG Length; + DWORD Flags; + }; + }; + struct _IP_ADAPTER_ANYCAST_ADDRESS_XP *Next; + SOCKET_ADDRESS Address; +} IP_ADAPTER_ANYCAST_ADDRESS_XP, *PIP_ADAPTER_ANYCAST_ADDRESS_XP; +#if (NTDDI_VERSION >= NTDDI_WINXP) +typedef IP_ADAPTER_ANYCAST_ADDRESS_XP IP_ADAPTER_ANYCAST_ADDRESS; +typedef IP_ADAPTER_ANYCAST_ADDRESS_XP *PIP_ADAPTER_ANYCAST_ADDRESS; +#endif + +typedef struct _IP_ADAPTER_MULTICAST_ADDRESS_XP { + union { + ULONGLONG Alignment; + struct { + ULONG Length; + DWORD Flags; + }; + }; + struct _IP_ADAPTER_MULTICAST_ADDRESS_XP *Next; + SOCKET_ADDRESS Address; +} IP_ADAPTER_MULTICAST_ADDRESS_XP, *PIP_ADAPTER_MULTICAST_ADDRESS_XP; +#if (NTDDI_VERSION >= NTDDI_WINXP) +typedef IP_ADAPTER_MULTICAST_ADDRESS_XP IP_ADAPTER_MULTICAST_ADDRESS; +typedef IP_ADAPTER_MULTICAST_ADDRESS_XP *PIP_ADAPTER_MULTICAST_ADDRESS; +#endif + +typedef struct _IP_ADAPTER_DNS_SERVER_ADDRESS_XP { + union { + ULONGLONG Alignment; + struct { + ULONG Length; + DWORD Reserved; + }; + }; + struct _IP_ADAPTER_DNS_SERVER_ADDRESS_XP *Next; + SOCKET_ADDRESS Address; +} IP_ADAPTER_DNS_SERVER_ADDRESS_XP, *PIP_ADAPTER_DNS_SERVER_ADDRESS_XP; +#if (NTDDI_VERSION >= NTDDI_WINXP) +typedef IP_ADAPTER_DNS_SERVER_ADDRESS_XP IP_ADAPTER_DNS_SERVER_ADDRESS; +typedef IP_ADAPTER_DNS_SERVER_ADDRESS_XP *PIP_ADAPTER_DNS_SERVER_ADDRESS; +#endif + +typedef struct _IP_ADAPTER_WINS_SERVER_ADDRESS_LH { + union { + ULONGLONG Alignment; + struct { + ULONG Length; + DWORD Reserved; + }; + }; + struct _IP_ADAPTER_WINS_SERVER_ADDRESS_LH *Next; + SOCKET_ADDRESS Address; +} IP_ADAPTER_WINS_SERVER_ADDRESS_LH, *PIP_ADAPTER_WINS_SERVER_ADDRESS_LH; +#if (NTDDI_VERSION >= NTDDI_VISTA) +typedef IP_ADAPTER_WINS_SERVER_ADDRESS_LH IP_ADAPTER_WINS_SERVER_ADDRESS; +typedef IP_ADAPTER_WINS_SERVER_ADDRESS_LH *PIP_ADAPTER_WINS_SERVER_ADDRESS; +#endif + + +typedef struct _IP_ADAPTER_GATEWAY_ADDRESS_LH { + union { + ULONGLONG Alignment; + struct { + ULONG Length; + DWORD Reserved; + }; + }; + struct _IP_ADAPTER_GATEWAY_ADDRESS_LH *Next; + SOCKET_ADDRESS Address; +} IP_ADAPTER_GATEWAY_ADDRESS_LH, *PIP_ADAPTER_GATEWAY_ADDRESS_LH; +#if (NTDDI_VERSION >= NTDDI_VISTA) +typedef IP_ADAPTER_GATEWAY_ADDRESS_LH IP_ADAPTER_GATEWAY_ADDRESS; +typedef IP_ADAPTER_GATEWAY_ADDRESS_LH *PIP_ADAPTER_GATEWAY_ADDRESS; +#endif + +typedef struct _IP_ADAPTER_PREFIX_XP { + union { + ULONGLONG Alignment; + struct { + ULONG Length; + DWORD Flags; + }; + }; + struct _IP_ADAPTER_PREFIX_XP *Next; + SOCKET_ADDRESS Address; + ULONG PrefixLength; +} IP_ADAPTER_PREFIX_XP, *PIP_ADAPTER_PREFIX_XP; +#if (NTDDI_VERSION >= NTDDI_WINXP) +typedef IP_ADAPTER_PREFIX_XP IP_ADAPTER_PREFIX; +typedef IP_ADAPTER_PREFIX_XP *PIP_ADAPTER_PREFIX; +#endif + +typedef struct _IP_ADAPTER_DNS_SUFFIX { + struct _IP_ADAPTER_DNS_SUFFIX *Next; + WCHAR String[MAX_DNS_SUFFIX_STRING_LENGTH]; +}IP_ADAPTER_DNS_SUFFIX, *PIP_ADAPTER_DNS_SUFFIX; + +// +// Bit values of IP_ADAPTER_ADDRESSES Flags field. +// +#define IP_ADAPTER_DDNS_ENABLED 0x00000001 +#define IP_ADAPTER_REGISTER_ADAPTER_SUFFIX 0x00000002 +#define IP_ADAPTER_DHCP_ENABLED 0x00000004 +#define IP_ADAPTER_RECEIVE_ONLY 0x00000008 +#define IP_ADAPTER_NO_MULTICAST 0x00000010 +#define IP_ADAPTER_IPV6_OTHER_STATEFUL_CONFIG 0x00000020 +#define IP_ADAPTER_NETBIOS_OVER_TCPIP_ENABLED 0x00000040 +#define IP_ADAPTER_IPV4_ENABLED 0x00000080 +#define IP_ADAPTER_IPV6_ENABLED 0x00000100 +#define IP_ADAPTER_IPV6_MANAGE_ADDRESS_CONFIG 0x00000200 + +typedef struct _IP_ADAPTER_ADDRESSES_LH { + union { + ULONGLONG Alignment; + struct { + ULONG Length; + IF_INDEX IfIndex; + }; + }; + struct _IP_ADAPTER_ADDRESSES_LH *Next; + PCHAR AdapterName; + PIP_ADAPTER_UNICAST_ADDRESS_LH FirstUnicastAddress; + PIP_ADAPTER_ANYCAST_ADDRESS_XP FirstAnycastAddress; + PIP_ADAPTER_MULTICAST_ADDRESS_XP FirstMulticastAddress; + PIP_ADAPTER_DNS_SERVER_ADDRESS_XP FirstDnsServerAddress; + PWCHAR DnsSuffix; + PWCHAR Description; + PWCHAR FriendlyName; + BYTE PhysicalAddress[MAX_ADAPTER_ADDRESS_LENGTH]; + ULONG PhysicalAddressLength; + union { + ULONG Flags; + struct { + ULONG DdnsEnabled : 1; + ULONG RegisterAdapterSuffix : 1; + ULONG Dhcpv4Enabled : 1; + ULONG ReceiveOnly : 1; + ULONG NoMulticast : 1; + ULONG Ipv6OtherStatefulConfig : 1; + ULONG NetbiosOverTcpipEnabled : 1; + ULONG Ipv4Enabled : 1; + ULONG Ipv6Enabled : 1; + ULONG Ipv6ManagedAddressConfigurationSupported : 1; + }; + }; + ULONG Mtu; + IFTYPE IfType; + IF_OPER_STATUS OperStatus; + IF_INDEX Ipv6IfIndex; + ULONG ZoneIndices[16]; + PIP_ADAPTER_PREFIX_XP FirstPrefix; + + ULONG64 TransmitLinkSpeed; + ULONG64 ReceiveLinkSpeed; + PIP_ADAPTER_WINS_SERVER_ADDRESS_LH FirstWinsServerAddress; + PIP_ADAPTER_GATEWAY_ADDRESS_LH FirstGatewayAddress; + ULONG Ipv4Metric; + ULONG Ipv6Metric; + IF_LUID Luid; + SOCKET_ADDRESS Dhcpv4Server; + NET_IF_COMPARTMENT_ID CompartmentId; + NET_IF_NETWORK_GUID NetworkGuid; + NET_IF_CONNECTION_TYPE ConnectionType; + TUNNEL_TYPE TunnelType; + // + // DHCP v6 Info. + // + SOCKET_ADDRESS Dhcpv6Server; + BYTE Dhcpv6ClientDuid[MAX_DHCPV6_DUID_LENGTH]; + ULONG Dhcpv6ClientDuidLength; + ULONG Dhcpv6Iaid; +#if (NTDDI_VERSION >= NTDDI_VISTASP1) + PIP_ADAPTER_DNS_SUFFIX FirstDnsSuffix; +#endif +} IP_ADAPTER_ADDRESSES_LH, + *PIP_ADAPTER_ADDRESSES_LH; + +typedef struct _IP_ADAPTER_ADDRESSES_XP { + union { + ULONGLONG Alignment; + struct { + ULONG Length; + DWORD IfIndex; + }; + }; + struct _IP_ADAPTER_ADDRESSES_XP *Next; + PCHAR AdapterName; + PIP_ADAPTER_UNICAST_ADDRESS_XP FirstUnicastAddress; + PIP_ADAPTER_ANYCAST_ADDRESS_XP FirstAnycastAddress; + PIP_ADAPTER_MULTICAST_ADDRESS_XP FirstMulticastAddress; + PIP_ADAPTER_DNS_SERVER_ADDRESS_XP FirstDnsServerAddress; + PWCHAR DnsSuffix; + PWCHAR Description; + PWCHAR FriendlyName; + BYTE PhysicalAddress[MAX_ADAPTER_ADDRESS_LENGTH]; + DWORD PhysicalAddressLength; + DWORD Flags; + DWORD Mtu; + DWORD IfType; + IF_OPER_STATUS OperStatus; + DWORD Ipv6IfIndex; + DWORD ZoneIndices[16]; + PIP_ADAPTER_PREFIX_XP FirstPrefix; +} IP_ADAPTER_ADDRESSES_XP, + *PIP_ADAPTER_ADDRESSES_XP; + +#if (NTDDI_VERSION >= NTDDI_VISTA) +typedef IP_ADAPTER_ADDRESSES_LH IP_ADAPTER_ADDRESSES; +typedef IP_ADAPTER_ADDRESSES_LH *PIP_ADAPTER_ADDRESSES; +#elif (NTDDI_VERSION >= NTDDI_WINXP) +typedef IP_ADAPTER_ADDRESSES_XP IP_ADAPTER_ADDRESSES; +typedef IP_ADAPTER_ADDRESSES_XP *PIP_ADAPTER_ADDRESSES; +#else +// +// For platforms other platforms that are including +// the file but not using the types. +// +typedef IP_ADAPTER_ADDRESSES_XP IP_ADAPTER_ADDRESSES; +typedef IP_ADAPTER_ADDRESSES_XP *PIP_ADAPTER_ADDRESSES; +#endif + + +// +// Flags used as argument to GetAdaptersAddresses(). +// "SKIP" flags are added when the default is to include the information. +// "INCLUDE" flags are added when the default is to skip the information. +// +#define GAA_FLAG_SKIP_UNICAST 0x0001 +#define GAA_FLAG_SKIP_ANYCAST 0x0002 +#define GAA_FLAG_SKIP_MULTICAST 0x0004 +#define GAA_FLAG_SKIP_DNS_SERVER 0x0008 +#define GAA_FLAG_INCLUDE_PREFIX 0x0010 +#define GAA_FLAG_SKIP_FRIENDLY_NAME 0x0020 +#define GAA_FLAG_INCLUDE_WINS_INFO 0x0040 +#define GAA_FLAG_INCLUDE_GATEWAYS 0x0080 +#define GAA_FLAG_INCLUDE_ALL_INTERFACES 0x0100 +#define GAA_FLAG_INCLUDE_ALL_COMPARTMENTS 0x0200 +#define GAA_FLAG_INCLUDE_TUNNEL_BINDINGORDER 0x0400 +#define GAA_FLAG_SKIP_DNS_INFO 0x0800 + +#endif /* _WINSOCK2API_ */ + +// +// IP_PER_ADAPTER_INFO - per-adapter IP information such as DNS server list. +// + +typedef struct _IP_PER_ADAPTER_INFO_W2KSP1 { + UINT AutoconfigEnabled; + UINT AutoconfigActive; + PIP_ADDR_STRING CurrentDnsServer; + IP_ADDR_STRING DnsServerList; +} IP_PER_ADAPTER_INFO_W2KSP1, *PIP_PER_ADAPTER_INFO_W2KSP1; +#if (NTDDI_VERSION >= NTDDI_WIN2KSP1) +typedef IP_PER_ADAPTER_INFO_W2KSP1 IP_PER_ADAPTER_INFO; +typedef IP_PER_ADAPTER_INFO_W2KSP1 *PIP_PER_ADAPTER_INFO; +#endif + +// +// FIXED_INFO - the set of IP-related information which does not depend on DHCP +// + +typedef struct { + char HostName[MAX_HOSTNAME_LEN + 4] ; + char DomainName[MAX_DOMAIN_NAME_LEN + 4]; + PIP_ADDR_STRING CurrentDnsServer; + IP_ADDR_STRING DnsServerList; + UINT NodeType; + char ScopeId[MAX_SCOPE_ID_LEN + 4]; + UINT EnableRouting; + UINT EnableProxy; + UINT EnableDns; +} FIXED_INFO_W2KSP1, *PFIXED_INFO_W2KSP1; +#if (NTDDI_VERSION >= NTDDI_WIN2KSP1) +typedef FIXED_INFO_W2KSP1 FIXED_INFO; +typedef FIXED_INFO_W2KSP1 *PFIXED_INFO; +#endif + + +#ifndef IP_INTERFACE_NAME_INFO_DEFINED +#define IP_INTERFACE_NAME_INFO_DEFINED + +typedef struct ip_interface_name_info_w2ksp1 { + ULONG Index; // Interface Index + ULONG MediaType; // Interface Types - see ipifcons.h + UCHAR ConnectionType; + UCHAR AccessType; + GUID DeviceGuid; // Device GUID is the guid of the device + // that IP exposes + GUID InterfaceGuid; // Interface GUID, if not GUID_NULL is the + // GUID for the interface mapped to the device. +} IP_INTERFACE_NAME_INFO_W2KSP1, *PIP_INTERFACE_NAME_INFO_W2KSP1; + +#if (NTDDI_VERSION >= NTDDI_WIN2KSP1) +typedef IP_INTERFACE_NAME_INFO_W2KSP1 IP_INTERFACE_NAME_INFO; +typedef IP_INTERFACE_NAME_INFO_W2KSP1 *PIP_INTERFACE_NAME_INFO; +#endif + +#endif + +#pragma warning(pop) + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ISysmon.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ISysmon.h new file mode 100644 index 0000000000000000000000000000000000000000..841f8cc414b955858fe2307e82afe45b6d4b4b6b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ISysmon.h @@ -0,0 +1,5325 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __isysmon_h__ +#define __isysmon_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICounterItem_FWD_DEFINED__ +#define __ICounterItem_FWD_DEFINED__ +typedef interface ICounterItem ICounterItem; + +#endif /* __ICounterItem_FWD_DEFINED__ */ + + +#ifndef __ICounterItem2_FWD_DEFINED__ +#define __ICounterItem2_FWD_DEFINED__ +typedef interface ICounterItem2 ICounterItem2; + +#endif /* __ICounterItem2_FWD_DEFINED__ */ + + +#ifndef ___ICounterItemUnion_FWD_DEFINED__ +#define ___ICounterItemUnion_FWD_DEFINED__ +typedef interface _ICounterItemUnion _ICounterItemUnion; + +#endif /* ___ICounterItemUnion_FWD_DEFINED__ */ + + +#ifndef __DICounterItem_FWD_DEFINED__ +#define __DICounterItem_FWD_DEFINED__ +typedef interface DICounterItem DICounterItem; + +#endif /* __DICounterItem_FWD_DEFINED__ */ + + +#ifndef __ICounters_FWD_DEFINED__ +#define __ICounters_FWD_DEFINED__ +typedef interface ICounters ICounters; + +#endif /* __ICounters_FWD_DEFINED__ */ + + +#ifndef __ILogFileItem_FWD_DEFINED__ +#define __ILogFileItem_FWD_DEFINED__ +typedef interface ILogFileItem ILogFileItem; + +#endif /* __ILogFileItem_FWD_DEFINED__ */ + + +#ifndef __DILogFileItem_FWD_DEFINED__ +#define __DILogFileItem_FWD_DEFINED__ +typedef interface DILogFileItem DILogFileItem; + +#endif /* __DILogFileItem_FWD_DEFINED__ */ + + +#ifndef __ILogFiles_FWD_DEFINED__ +#define __ILogFiles_FWD_DEFINED__ +typedef interface ILogFiles ILogFiles; + +#endif /* __ILogFiles_FWD_DEFINED__ */ + + +#ifndef __ISystemMonitor_FWD_DEFINED__ +#define __ISystemMonitor_FWD_DEFINED__ +typedef interface ISystemMonitor ISystemMonitor; + +#endif /* __ISystemMonitor_FWD_DEFINED__ */ + + +#ifndef __ISystemMonitor2_FWD_DEFINED__ +#define __ISystemMonitor2_FWD_DEFINED__ +typedef interface ISystemMonitor2 ISystemMonitor2; + +#endif /* __ISystemMonitor2_FWD_DEFINED__ */ + + +#ifndef ___ISystemMonitorUnion_FWD_DEFINED__ +#define ___ISystemMonitorUnion_FWD_DEFINED__ +typedef interface _ISystemMonitorUnion _ISystemMonitorUnion; + +#endif /* ___ISystemMonitorUnion_FWD_DEFINED__ */ + + +#ifndef __DISystemMonitor_FWD_DEFINED__ +#define __DISystemMonitor_FWD_DEFINED__ +typedef interface DISystemMonitor DISystemMonitor; + +#endif /* __DISystemMonitor_FWD_DEFINED__ */ + + +#ifndef __DISystemMonitorInternal_FWD_DEFINED__ +#define __DISystemMonitorInternal_FWD_DEFINED__ +typedef interface DISystemMonitorInternal DISystemMonitorInternal; + +#endif /* __DISystemMonitorInternal_FWD_DEFINED__ */ + + +#ifndef __ISystemMonitorEvents_FWD_DEFINED__ +#define __ISystemMonitorEvents_FWD_DEFINED__ +typedef interface ISystemMonitorEvents ISystemMonitorEvents; + +#endif /* __ISystemMonitorEvents_FWD_DEFINED__ */ + + +#ifndef __DISystemMonitorEvents_FWD_DEFINED__ +#define __DISystemMonitorEvents_FWD_DEFINED__ +typedef interface DISystemMonitorEvents DISystemMonitorEvents; + +#endif /* __DISystemMonitorEvents_FWD_DEFINED__ */ + + +#ifndef __SystemMonitor_FWD_DEFINED__ +#define __SystemMonitor_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SystemMonitor SystemMonitor; +#else +typedef struct SystemMonitor SystemMonitor; +#endif /* __cplusplus */ + +#endif /* __SystemMonitor_FWD_DEFINED__ */ + + +#ifndef __CounterItem_FWD_DEFINED__ +#define __CounterItem_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CounterItem CounterItem; +#else +typedef struct CounterItem CounterItem; +#endif /* __cplusplus */ + +#endif /* __CounterItem_FWD_DEFINED__ */ + + +#ifndef __Counters_FWD_DEFINED__ +#define __Counters_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Counters Counters; +#else +typedef struct Counters Counters; +#endif /* __cplusplus */ + +#endif /* __Counters_FWD_DEFINED__ */ + + +#ifndef __LogFileItem_FWD_DEFINED__ +#define __LogFileItem_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class LogFileItem LogFileItem; +#else +typedef struct LogFileItem LogFileItem; +#endif /* __cplusplus */ + +#endif /* __LogFileItem_FWD_DEFINED__ */ + + +#ifndef __LogFiles_FWD_DEFINED__ +#define __LogFiles_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class LogFiles LogFiles; +#else +typedef struct LogFiles LogFiles; +#endif /* __cplusplus */ + +#endif /* __LogFiles_FWD_DEFINED__ */ + + +#ifndef __CounterItem2_FWD_DEFINED__ +#define __CounterItem2_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CounterItem2 CounterItem2; +#else +typedef struct CounterItem2 CounterItem2; +#endif /* __cplusplus */ + +#endif /* __CounterItem2_FWD_DEFINED__ */ + + +#ifndef __SystemMonitor2_FWD_DEFINED__ +#define __SystemMonitor2_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SystemMonitor2 SystemMonitor2; +#else +typedef struct SystemMonitor2 SystemMonitor2; +#endif /* __cplusplus */ + +#endif /* __SystemMonitor2_FWD_DEFINED__ */ + + +#ifndef __AppearPropPage_FWD_DEFINED__ +#define __AppearPropPage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AppearPropPage AppearPropPage; +#else +typedef struct AppearPropPage AppearPropPage; +#endif /* __cplusplus */ + +#endif /* __AppearPropPage_FWD_DEFINED__ */ + + +#ifndef __GeneralPropPage_FWD_DEFINED__ +#define __GeneralPropPage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GeneralPropPage GeneralPropPage; +#else +typedef struct GeneralPropPage GeneralPropPage; +#endif /* __cplusplus */ + +#endif /* __GeneralPropPage_FWD_DEFINED__ */ + + +#ifndef __GraphPropPage_FWD_DEFINED__ +#define __GraphPropPage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GraphPropPage GraphPropPage; +#else +typedef struct GraphPropPage GraphPropPage; +#endif /* __cplusplus */ + +#endif /* __GraphPropPage_FWD_DEFINED__ */ + + +#ifndef __SourcePropPage_FWD_DEFINED__ +#define __SourcePropPage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SourcePropPage SourcePropPage; +#else +typedef struct SourcePropPage SourcePropPage; +#endif /* __cplusplus */ + +#endif /* __SourcePropPage_FWD_DEFINED__ */ + + +#ifndef __CounterPropPage_FWD_DEFINED__ +#define __CounterPropPage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CounterPropPage CounterPropPage; +#else +typedef struct CounterPropPage CounterPropPage; +#endif /* __cplusplus */ + +#endif /* __CounterPropPage_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + + +#ifndef __SystemMonitor_LIBRARY_DEFINED__ +#define __SystemMonitor_LIBRARY_DEFINED__ + +/* library SystemMonitor */ +/* [version][lcid][helpstring][uuid] */ + +typedef /* [helpstring] */ +enum eDisplayTypeConstant + { + sysmonLineGraph = 1, + sysmonHistogram = 2, + sysmonReport = 3, + sysmonChartArea = 4, + sysmonChartStackedArea = 5 + } DisplayTypeConstants; + +typedef /* [helpstring] */ +enum eReportValueTypeConstant + { + sysmonDefaultValue = 0, + sysmonCurrentValue = 0x1, + sysmonAverage = 0x2, + sysmonMinimum = 0x3, + sysmonMaximum = 0x4 + } ReportValueTypeConstants; + +typedef /* [helpstring] */ +enum eDataSourceTypeConstant + { + sysmonNullDataSource = 0xffffffff, + sysmonCurrentActivity = 0x1, + sysmonLogFiles = 0x2, + sysmonSqlLog = 0x3 + } DataSourceTypeConstants; + +typedef /* [helpstring] */ +enum __MIDL___MIDL_itf_sysmon_0000_0000_0001 + { + sysmonFileHtml = 1, + sysmonFileReport = 2, + sysmonFileCsv = 3, + sysmonFileTsv = 4, + sysmonFileBlg = 5, + sysmonFileRetiredBlg = 6, + sysmonFileGif = 7 + } SysmonFileType; + +typedef /* [helpstring] */ +enum __MIDL___MIDL_itf_sysmon_0000_0000_0002 + { + sysmonDataAvg = 1, + sysmonDataMin = 2, + sysmonDataMax = 3, + sysmonDataTime = 4, + sysmonDataCount = 5 + } SysmonDataType; + +typedef /* [helpstring] */ +enum __MIDL___MIDL_itf_sysmon_0000_0000_0003 + { + sysmonBatchNone = 0, + sysmonBatchAddFiles = 1, + sysmonBatchAddCounters = 2, + sysmonBatchAddFilesAutoCounters = 3 + } SysmonBatchReason; + + +DEFINE_GUID(LIBID_SystemMonitor,0x1B773E42,0x2509,0x11cf,0x94,0x2F,0x00,0x80,0x29,0x00,0x43,0x47); + +#ifndef __ICounterItem_INTERFACE_DEFINED__ +#define __ICounterItem_INTERFACE_DEFINED__ + +/* interface ICounterItem */ +/* [object][hidden][helpstring][uuid] */ + + +DEFINE_GUID(IID_ICounterItem,0x771A9520,0xEE28,0x11ce,0x94,0x1E,0x00,0x80,0x29,0x00,0x43,0x47); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("771A9520-EE28-11ce-941E-008029004347") + ICounterItem : public IUnknown + { + public: + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out double *pdblValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Color( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Color( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Width( + /* [in] */ INT iWidth) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Width( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_LineStyle( + /* [in] */ INT iLineStyle) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LineStyle( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ScaleFactor( + /* [in] */ INT iScale) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ScaleFactor( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [out] */ __RPC__out double *Value, + /* [out] */ __RPC__out long *Status) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatistics( + /* [out] */ __RPC__out double *Max, + /* [out] */ __RPC__out double *Min, + /* [out] */ __RPC__out double *Avg, + /* [out] */ __RPC__out long *Status) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICounterItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICounterItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICounterItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICounterItem * This); + + DECLSPEC_XFGVIRT(ICounterItem, get_Value) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in ICounterItem * This, + /* [retval][out] */ __RPC__out double *pdblValue); + + DECLSPEC_XFGVIRT(ICounterItem, put_Color) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Color )( + __RPC__in ICounterItem * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ICounterItem, get_Color) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Color )( + __RPC__in ICounterItem * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ICounterItem, put_Width) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Width )( + __RPC__in ICounterItem * This, + /* [in] */ INT iWidth); + + DECLSPEC_XFGVIRT(ICounterItem, get_Width) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Width )( + __RPC__in ICounterItem * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ICounterItem, put_LineStyle) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LineStyle )( + __RPC__in ICounterItem * This, + /* [in] */ INT iLineStyle); + + DECLSPEC_XFGVIRT(ICounterItem, get_LineStyle) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LineStyle )( + __RPC__in ICounterItem * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ICounterItem, put_ScaleFactor) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ScaleFactor )( + __RPC__in ICounterItem * This, + /* [in] */ INT iScale); + + DECLSPEC_XFGVIRT(ICounterItem, get_ScaleFactor) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ScaleFactor )( + __RPC__in ICounterItem * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ICounterItem, get_Path) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in ICounterItem * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrValue); + + DECLSPEC_XFGVIRT(ICounterItem, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ICounterItem * This, + /* [out] */ __RPC__out double *Value, + /* [out] */ __RPC__out long *Status); + + DECLSPEC_XFGVIRT(ICounterItem, GetStatistics) + HRESULT ( STDMETHODCALLTYPE *GetStatistics )( + __RPC__in ICounterItem * This, + /* [out] */ __RPC__out double *Max, + /* [out] */ __RPC__out double *Min, + /* [out] */ __RPC__out double *Avg, + /* [out] */ __RPC__out long *Status); + + END_INTERFACE + } ICounterItemVtbl; + + interface ICounterItem + { + CONST_VTBL struct ICounterItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICounterItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICounterItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICounterItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICounterItem_get_Value(This,pdblValue) \ + ( (This)->lpVtbl -> get_Value(This,pdblValue) ) + +#define ICounterItem_put_Color(This,Color) \ + ( (This)->lpVtbl -> put_Color(This,Color) ) + +#define ICounterItem_get_Color(This,pColor) \ + ( (This)->lpVtbl -> get_Color(This,pColor) ) + +#define ICounterItem_put_Width(This,iWidth) \ + ( (This)->lpVtbl -> put_Width(This,iWidth) ) + +#define ICounterItem_get_Width(This,piValue) \ + ( (This)->lpVtbl -> get_Width(This,piValue) ) + +#define ICounterItem_put_LineStyle(This,iLineStyle) \ + ( (This)->lpVtbl -> put_LineStyle(This,iLineStyle) ) + +#define ICounterItem_get_LineStyle(This,piValue) \ + ( (This)->lpVtbl -> get_LineStyle(This,piValue) ) + +#define ICounterItem_put_ScaleFactor(This,iScale) \ + ( (This)->lpVtbl -> put_ScaleFactor(This,iScale) ) + +#define ICounterItem_get_ScaleFactor(This,piValue) \ + ( (This)->lpVtbl -> get_ScaleFactor(This,piValue) ) + +#define ICounterItem_get_Path(This,pstrValue) \ + ( (This)->lpVtbl -> get_Path(This,pstrValue) ) + +#define ICounterItem_GetValue(This,Value,Status) \ + ( (This)->lpVtbl -> GetValue(This,Value,Status) ) + +#define ICounterItem_GetStatistics(This,Max,Min,Avg,Status) \ + ( (This)->lpVtbl -> GetStatistics(This,Max,Min,Avg,Status) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICounterItem_INTERFACE_DEFINED__ */ + + +#ifndef __ICounterItem2_INTERFACE_DEFINED__ +#define __ICounterItem2_INTERFACE_DEFINED__ + +/* interface ICounterItem2 */ +/* [object][helpstring][uuid] */ + + +DEFINE_GUID(IID_ICounterItem2,0xeefcd4e1,0xea1c,0x4435,0xb7,0xf4,0xe3,0x41,0xba,0x03,0xb4,0xf9); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("eefcd4e1-ea1c-4435-b7f4-e341ba03b4f9") + ICounterItem2 : public ICounterItem + { + public: + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Selected( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Selected( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Visible( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Visible( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDataAt( + /* [in] */ INT iIndex, + /* [in] */ SysmonDataType iWhich, + /* [out] */ __RPC__out VARIANT *pVariant) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICounterItem2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICounterItem2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICounterItem2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICounterItem2 * This); + + DECLSPEC_XFGVIRT(ICounterItem, get_Value) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in ICounterItem2 * This, + /* [retval][out] */ __RPC__out double *pdblValue); + + DECLSPEC_XFGVIRT(ICounterItem, put_Color) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Color )( + __RPC__in ICounterItem2 * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ICounterItem, get_Color) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Color )( + __RPC__in ICounterItem2 * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ICounterItem, put_Width) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Width )( + __RPC__in ICounterItem2 * This, + /* [in] */ INT iWidth); + + DECLSPEC_XFGVIRT(ICounterItem, get_Width) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Width )( + __RPC__in ICounterItem2 * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ICounterItem, put_LineStyle) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LineStyle )( + __RPC__in ICounterItem2 * This, + /* [in] */ INT iLineStyle); + + DECLSPEC_XFGVIRT(ICounterItem, get_LineStyle) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LineStyle )( + __RPC__in ICounterItem2 * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ICounterItem, put_ScaleFactor) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ScaleFactor )( + __RPC__in ICounterItem2 * This, + /* [in] */ INT iScale); + + DECLSPEC_XFGVIRT(ICounterItem, get_ScaleFactor) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ScaleFactor )( + __RPC__in ICounterItem2 * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ICounterItem, get_Path) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in ICounterItem2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrValue); + + DECLSPEC_XFGVIRT(ICounterItem, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ICounterItem2 * This, + /* [out] */ __RPC__out double *Value, + /* [out] */ __RPC__out long *Status); + + DECLSPEC_XFGVIRT(ICounterItem, GetStatistics) + HRESULT ( STDMETHODCALLTYPE *GetStatistics )( + __RPC__in ICounterItem2 * This, + /* [out] */ __RPC__out double *Max, + /* [out] */ __RPC__out double *Min, + /* [out] */ __RPC__out double *Avg, + /* [out] */ __RPC__out long *Status); + + DECLSPEC_XFGVIRT(ICounterItem2, put_Selected) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Selected )( + __RPC__in ICounterItem2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ICounterItem2, get_Selected) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Selected )( + __RPC__in ICounterItem2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ICounterItem2, put_Visible) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Visible )( + __RPC__in ICounterItem2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ICounterItem2, get_Visible) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Visible )( + __RPC__in ICounterItem2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ICounterItem2, GetDataAt) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDataAt )( + __RPC__in ICounterItem2 * This, + /* [in] */ INT iIndex, + /* [in] */ SysmonDataType iWhich, + /* [out] */ __RPC__out VARIANT *pVariant); + + END_INTERFACE + } ICounterItem2Vtbl; + + interface ICounterItem2 + { + CONST_VTBL struct ICounterItem2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICounterItem2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICounterItem2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICounterItem2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICounterItem2_get_Value(This,pdblValue) \ + ( (This)->lpVtbl -> get_Value(This,pdblValue) ) + +#define ICounterItem2_put_Color(This,Color) \ + ( (This)->lpVtbl -> put_Color(This,Color) ) + +#define ICounterItem2_get_Color(This,pColor) \ + ( (This)->lpVtbl -> get_Color(This,pColor) ) + +#define ICounterItem2_put_Width(This,iWidth) \ + ( (This)->lpVtbl -> put_Width(This,iWidth) ) + +#define ICounterItem2_get_Width(This,piValue) \ + ( (This)->lpVtbl -> get_Width(This,piValue) ) + +#define ICounterItem2_put_LineStyle(This,iLineStyle) \ + ( (This)->lpVtbl -> put_LineStyle(This,iLineStyle) ) + +#define ICounterItem2_get_LineStyle(This,piValue) \ + ( (This)->lpVtbl -> get_LineStyle(This,piValue) ) + +#define ICounterItem2_put_ScaleFactor(This,iScale) \ + ( (This)->lpVtbl -> put_ScaleFactor(This,iScale) ) + +#define ICounterItem2_get_ScaleFactor(This,piValue) \ + ( (This)->lpVtbl -> get_ScaleFactor(This,piValue) ) + +#define ICounterItem2_get_Path(This,pstrValue) \ + ( (This)->lpVtbl -> get_Path(This,pstrValue) ) + +#define ICounterItem2_GetValue(This,Value,Status) \ + ( (This)->lpVtbl -> GetValue(This,Value,Status) ) + +#define ICounterItem2_GetStatistics(This,Max,Min,Avg,Status) \ + ( (This)->lpVtbl -> GetStatistics(This,Max,Min,Avg,Status) ) + + +#define ICounterItem2_put_Selected(This,bState) \ + ( (This)->lpVtbl -> put_Selected(This,bState) ) + +#define ICounterItem2_get_Selected(This,pbState) \ + ( (This)->lpVtbl -> get_Selected(This,pbState) ) + +#define ICounterItem2_put_Visible(This,bState) \ + ( (This)->lpVtbl -> put_Visible(This,bState) ) + +#define ICounterItem2_get_Visible(This,pbState) \ + ( (This)->lpVtbl -> get_Visible(This,pbState) ) + +#define ICounterItem2_GetDataAt(This,iIndex,iWhich,pVariant) \ + ( (This)->lpVtbl -> GetDataAt(This,iIndex,iWhich,pVariant) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICounterItem2_INTERFACE_DEFINED__ */ + + +#ifndef ___ICounterItemUnion_INTERFACE_DEFINED__ +#define ___ICounterItemUnion_INTERFACE_DEFINED__ + +/* interface _ICounterItemUnion */ +/* [object][hidden][uuid] */ + + +DEFINE_GUID(IID__ICounterItemUnion,0xde1a6b74,0x9182,0x4c41,0x8e,0x2c,0x24,0xc2,0xcd,0x30,0xee,0x83); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("de1a6b74-9182-4c41-8e2c-24c2cd30ee83") + _ICounterItemUnion : public IUnknown + { + public: + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out double *pdblValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Color( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Color( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Width( + /* [in] */ INT iWidth) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Width( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_LineStyle( + /* [in] */ INT iLineStyle) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LineStyle( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ScaleFactor( + /* [in] */ INT iScale) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ScaleFactor( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [out] */ __RPC__out double *Value, + /* [out] */ __RPC__out long *Status) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatistics( + /* [out] */ __RPC__out double *Max, + /* [out] */ __RPC__out double *Min, + /* [out] */ __RPC__out double *Avg, + /* [out] */ __RPC__out long *Status) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Selected( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Selected( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Visible( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Visible( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDataAt( + /* [in] */ INT iIndex, + /* [in] */ SysmonDataType iWhich, + /* [out] */ __RPC__out VARIANT *pVariant) = 0; + + }; + + +#else /* C style interface */ + + typedef struct _ICounterItemUnionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ICounterItemUnion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ICounterItemUnion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ICounterItemUnion * This); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, get_Value) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in _ICounterItemUnion * This, + /* [retval][out] */ __RPC__out double *pdblValue); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, put_Color) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Color )( + __RPC__in _ICounterItemUnion * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, get_Color) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Color )( + __RPC__in _ICounterItemUnion * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, put_Width) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Width )( + __RPC__in _ICounterItemUnion * This, + /* [in] */ INT iWidth); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, get_Width) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Width )( + __RPC__in _ICounterItemUnion * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, put_LineStyle) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LineStyle )( + __RPC__in _ICounterItemUnion * This, + /* [in] */ INT iLineStyle); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, get_LineStyle) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LineStyle )( + __RPC__in _ICounterItemUnion * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, put_ScaleFactor) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ScaleFactor )( + __RPC__in _ICounterItemUnion * This, + /* [in] */ INT iScale); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, get_ScaleFactor) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ScaleFactor )( + __RPC__in _ICounterItemUnion * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, get_Path) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in _ICounterItemUnion * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrValue); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in _ICounterItemUnion * This, + /* [out] */ __RPC__out double *Value, + /* [out] */ __RPC__out long *Status); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, GetStatistics) + HRESULT ( STDMETHODCALLTYPE *GetStatistics )( + __RPC__in _ICounterItemUnion * This, + /* [out] */ __RPC__out double *Max, + /* [out] */ __RPC__out double *Min, + /* [out] */ __RPC__out double *Avg, + /* [out] */ __RPC__out long *Status); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, put_Selected) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Selected )( + __RPC__in _ICounterItemUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, get_Selected) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Selected )( + __RPC__in _ICounterItemUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, put_Visible) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Visible )( + __RPC__in _ICounterItemUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, get_Visible) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Visible )( + __RPC__in _ICounterItemUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ICounterItemUnion, GetDataAt) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDataAt )( + __RPC__in _ICounterItemUnion * This, + /* [in] */ INT iIndex, + /* [in] */ SysmonDataType iWhich, + /* [out] */ __RPC__out VARIANT *pVariant); + + END_INTERFACE + } _ICounterItemUnionVtbl; + + interface _ICounterItemUnion + { + CONST_VTBL struct _ICounterItemUnionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define _ICounterItemUnion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define _ICounterItemUnion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define _ICounterItemUnion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define _ICounterItemUnion_get_Value(This,pdblValue) \ + ( (This)->lpVtbl -> get_Value(This,pdblValue) ) + +#define _ICounterItemUnion_put_Color(This,Color) \ + ( (This)->lpVtbl -> put_Color(This,Color) ) + +#define _ICounterItemUnion_get_Color(This,pColor) \ + ( (This)->lpVtbl -> get_Color(This,pColor) ) + +#define _ICounterItemUnion_put_Width(This,iWidth) \ + ( (This)->lpVtbl -> put_Width(This,iWidth) ) + +#define _ICounterItemUnion_get_Width(This,piValue) \ + ( (This)->lpVtbl -> get_Width(This,piValue) ) + +#define _ICounterItemUnion_put_LineStyle(This,iLineStyle) \ + ( (This)->lpVtbl -> put_LineStyle(This,iLineStyle) ) + +#define _ICounterItemUnion_get_LineStyle(This,piValue) \ + ( (This)->lpVtbl -> get_LineStyle(This,piValue) ) + +#define _ICounterItemUnion_put_ScaleFactor(This,iScale) \ + ( (This)->lpVtbl -> put_ScaleFactor(This,iScale) ) + +#define _ICounterItemUnion_get_ScaleFactor(This,piValue) \ + ( (This)->lpVtbl -> get_ScaleFactor(This,piValue) ) + +#define _ICounterItemUnion_get_Path(This,pstrValue) \ + ( (This)->lpVtbl -> get_Path(This,pstrValue) ) + +#define _ICounterItemUnion_GetValue(This,Value,Status) \ + ( (This)->lpVtbl -> GetValue(This,Value,Status) ) + +#define _ICounterItemUnion_GetStatistics(This,Max,Min,Avg,Status) \ + ( (This)->lpVtbl -> GetStatistics(This,Max,Min,Avg,Status) ) + +#define _ICounterItemUnion_put_Selected(This,bState) \ + ( (This)->lpVtbl -> put_Selected(This,bState) ) + +#define _ICounterItemUnion_get_Selected(This,pbState) \ + ( (This)->lpVtbl -> get_Selected(This,pbState) ) + +#define _ICounterItemUnion_put_Visible(This,bState) \ + ( (This)->lpVtbl -> put_Visible(This,bState) ) + +#define _ICounterItemUnion_get_Visible(This,pbState) \ + ( (This)->lpVtbl -> get_Visible(This,pbState) ) + +#define _ICounterItemUnion_GetDataAt(This,iIndex,iWhich,pVariant) \ + ( (This)->lpVtbl -> GetDataAt(This,iIndex,iWhich,pVariant) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* ___ICounterItemUnion_INTERFACE_DEFINED__ */ + + +#ifndef __DICounterItem_DISPINTERFACE_DEFINED__ +#define __DICounterItem_DISPINTERFACE_DEFINED__ + +/* dispinterface DICounterItem */ +/* [helpstring][hidden][uuid] */ + + +DEFINE_GUID(DIID_DICounterItem,0xC08C4FF2,0x0E2E,0x11cf,0x94,0x2C,0x00,0x80,0x29,0x00,0x43,0x47); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C08C4FF2-0E2E-11cf-942C-008029004347") + DICounterItem : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct DICounterItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DICounterItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DICounterItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DICounterItem * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DICounterItem * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DICounterItem * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DICounterItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DICounterItem * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } DICounterItemVtbl; + + interface DICounterItem + { + CONST_VTBL struct DICounterItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DICounterItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DICounterItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DICounterItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DICounterItem_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DICounterItem_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DICounterItem_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DICounterItem_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __DICounterItem_DISPINTERFACE_DEFINED__ */ + + +#ifndef __ICounters_INTERFACE_DEFINED__ +#define __ICounters_INTERFACE_DEFINED__ + +/* interface ICounters */ +/* [object][hidden][dual][helpstring][uuid] */ + + +DEFINE_GUID(IID_ICounters,0x79167962,0x28FC,0x11cf,0x94,0x2F,0x00,0x80,0x29,0x00,0x43,0x47); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79167962-28FC-11cf-942F-008029004347") + ICounters : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pLong) = 0; + + virtual /* [id][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppIunk) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT index, + /* [retval][out] */ __RPC__deref_out_opt DICounterItem **ppI) = 0; + + virtual HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in BSTR pathname, + /* [retval][out] */ __RPC__deref_out_opt DICounterItem **ppI) = 0; + + virtual HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ VARIANT index) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICountersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICounters * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICounters * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICounters * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICounters * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICounters * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICounters * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICounters * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICounters, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICounters * This, + /* [retval][out] */ __RPC__out long *pLong); + + DECLSPEC_XFGVIRT(ICounters, get__NewEnum) + /* [id][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICounters * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppIunk); + + DECLSPEC_XFGVIRT(ICounters, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ICounters * This, + /* [in] */ VARIANT index, + /* [retval][out] */ __RPC__deref_out_opt DICounterItem **ppI); + + DECLSPEC_XFGVIRT(ICounters, Add) + HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ICounters * This, + /* [in] */ __RPC__in BSTR pathname, + /* [retval][out] */ __RPC__deref_out_opt DICounterItem **ppI); + + DECLSPEC_XFGVIRT(ICounters, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ICounters * This, + /* [in] */ VARIANT index); + + END_INTERFACE + } ICountersVtbl; + + interface ICounters + { + CONST_VTBL struct ICountersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICounters_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICounters_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICounters_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICounters_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICounters_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICounters_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICounters_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICounters_get_Count(This,pLong) \ + ( (This)->lpVtbl -> get_Count(This,pLong) ) + +#define ICounters_get__NewEnum(This,ppIunk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppIunk) ) + +#define ICounters_get_Item(This,index,ppI) \ + ( (This)->lpVtbl -> get_Item(This,index,ppI) ) + +#define ICounters_Add(This,pathname,ppI) \ + ( (This)->lpVtbl -> Add(This,pathname,ppI) ) + +#define ICounters_Remove(This,index) \ + ( (This)->lpVtbl -> Remove(This,index) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICounters_INTERFACE_DEFINED__ */ + + +#ifndef __ILogFileItem_INTERFACE_DEFINED__ +#define __ILogFileItem_INTERFACE_DEFINED__ + +/* interface ILogFileItem */ +/* [object][hidden][helpstring][uuid] */ + + +DEFINE_GUID(IID_ILogFileItem,0xD6B518DD,0x05C7,0x418a,0x89,0xE6,0x4F,0x9C,0xE8,0xC6,0x84,0x1E); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D6B518DD-05C7-418a-89E6-4F9CE8C6841E") + ILogFileItem : public IUnknown + { + public: + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILogFileItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILogFileItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILogFileItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILogFileItem * This); + + DECLSPEC_XFGVIRT(ILogFileItem, get_Path) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in ILogFileItem * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrValue); + + END_INTERFACE + } ILogFileItemVtbl; + + interface ILogFileItem + { + CONST_VTBL struct ILogFileItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILogFileItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILogFileItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILogFileItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILogFileItem_get_Path(This,pstrValue) \ + ( (This)->lpVtbl -> get_Path(This,pstrValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILogFileItem_INTERFACE_DEFINED__ */ + + +#ifndef __DILogFileItem_DISPINTERFACE_DEFINED__ +#define __DILogFileItem_DISPINTERFACE_DEFINED__ + +/* dispinterface DILogFileItem */ +/* [helpstring][hidden][uuid] */ + + +DEFINE_GUID(DIID_DILogFileItem,0x8D093FFC,0xF777,0x4917,0x82,0xD1,0x83,0x3F,0xBC,0x54,0xC5,0x8F); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8D093FFC-F777-4917-82D1-833FBC54C58F") + DILogFileItem : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct DILogFileItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DILogFileItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DILogFileItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DILogFileItem * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DILogFileItem * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DILogFileItem * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DILogFileItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DILogFileItem * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } DILogFileItemVtbl; + + interface DILogFileItem + { + CONST_VTBL struct DILogFileItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DILogFileItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DILogFileItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DILogFileItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DILogFileItem_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DILogFileItem_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DILogFileItem_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DILogFileItem_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __DILogFileItem_DISPINTERFACE_DEFINED__ */ + + +#ifndef __ILogFiles_INTERFACE_DEFINED__ +#define __ILogFiles_INTERFACE_DEFINED__ + +/* interface ILogFiles */ +/* [object][hidden][dual][helpstring][uuid] */ + + +DEFINE_GUID(IID_ILogFiles,0x6A2A97E6,0x6851,0x41ea,0x87,0xAD,0x2A,0x82,0x25,0x33,0x58,0x65); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6A2A97E6-6851-41ea-87AD-2A8225335865") + ILogFiles : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pLong) = 0; + + virtual /* [id][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppIunk) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT index, + /* [retval][out] */ __RPC__deref_out_opt DILogFileItem **ppI) = 0; + + virtual HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in BSTR pathname, + /* [retval][out] */ __RPC__deref_out_opt DILogFileItem **ppI) = 0; + + virtual HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ VARIANT index) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILogFilesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILogFiles * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILogFiles * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILogFiles * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ILogFiles * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ILogFiles * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ILogFiles * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ILogFiles * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ILogFiles, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ILogFiles * This, + /* [retval][out] */ __RPC__out long *pLong); + + DECLSPEC_XFGVIRT(ILogFiles, get__NewEnum) + /* [id][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ILogFiles * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppIunk); + + DECLSPEC_XFGVIRT(ILogFiles, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ILogFiles * This, + /* [in] */ VARIANT index, + /* [retval][out] */ __RPC__deref_out_opt DILogFileItem **ppI); + + DECLSPEC_XFGVIRT(ILogFiles, Add) + HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ILogFiles * This, + /* [in] */ __RPC__in BSTR pathname, + /* [retval][out] */ __RPC__deref_out_opt DILogFileItem **ppI); + + DECLSPEC_XFGVIRT(ILogFiles, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ILogFiles * This, + /* [in] */ VARIANT index); + + END_INTERFACE + } ILogFilesVtbl; + + interface ILogFiles + { + CONST_VTBL struct ILogFilesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILogFiles_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILogFiles_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILogFiles_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILogFiles_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ILogFiles_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ILogFiles_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ILogFiles_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ILogFiles_get_Count(This,pLong) \ + ( (This)->lpVtbl -> get_Count(This,pLong) ) + +#define ILogFiles_get__NewEnum(This,ppIunk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppIunk) ) + +#define ILogFiles_get_Item(This,index,ppI) \ + ( (This)->lpVtbl -> get_Item(This,index,ppI) ) + +#define ILogFiles_Add(This,pathname,ppI) \ + ( (This)->lpVtbl -> Add(This,pathname,ppI) ) + +#define ILogFiles_Remove(This,index) \ + ( (This)->lpVtbl -> Remove(This,index) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILogFiles_INTERFACE_DEFINED__ */ + + +#ifndef __ISystemMonitor_INTERFACE_DEFINED__ +#define __ISystemMonitor_INTERFACE_DEFINED__ + +/* interface ISystemMonitor */ +/* [object][hidden][helpstring][uuid] */ + + +DEFINE_GUID(IID_ISystemMonitor,0x194EB241,0xC32C,0x11cf,0x93,0x98,0x00,0xAA,0x00,0xA3,0xDD,0xEA); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("194EB241-C32C-11cf-9398-00AA00A3DDEA") + ISystemMonitor : public IUnknown + { + public: + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Appearance( + /* [retval][out] */ __RPC__out INT *iAppearance) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Appearance( + /* [in] */ INT iAppearance) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BackColor( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_BackColor( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BorderStyle( + /* [retval][out] */ __RPC__out INT *iBorderStyle) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_BorderStyle( + /* [in] */ INT iBorderStyle) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ForeColor( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_ForeColor( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Font( + /* [retval][out] */ __RPC__deref_out_opt IFontDisp **ppFont) = 0; + + virtual /* [propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Font( + /* [in] */ __RPC__in_opt IFontDisp *pFont) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Counters( + /* [retval][out] */ __RPC__deref_out_opt ICounters **ppICounters) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowVerticalGrid( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowVerticalGrid( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowHorizontalGrid( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowHorizontalGrid( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowLegend( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowLegend( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowScaleLabels( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowScaleLabels( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowValueBar( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowValueBar( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MaximumScale( + /* [in] */ INT iValue) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_MaximumScale( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MinimumScale( + /* [in] */ INT iValue) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_MinimumScale( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_UpdateInterval( + /* [in] */ FLOAT fValue) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_UpdateInterval( + /* [retval][out] */ __RPC__out FLOAT *pfValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_DisplayType( + /* [in] */ DisplayTypeConstants eDisplayType) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_DisplayType( + /* [retval][out] */ __RPC__out DisplayTypeConstants *peDisplayType) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ManualUpdate( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ManualUpdate( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_GraphTitle( + /* [in] */ __RPC__in BSTR bsTitle) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_GraphTitle( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbsTitle) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_YAxisLabel( + /* [in] */ __RPC__in BSTR bsTitle) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_YAxisLabel( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbsTitle) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CollectSample( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UpdateGraph( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE BrowseCounters( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DisplayProperties( void) = 0; + + virtual /* [hidden][id] */ HRESULT STDMETHODCALLTYPE Counter( + /* [in] */ INT iIndex, + /* [out] */ __RPC__deref_out_opt ICounterItem **ppICounter) = 0; + + virtual /* [hidden][id] */ HRESULT STDMETHODCALLTYPE AddCounter( + /* [in] */ __RPC__in BSTR bsPath, + /* [out] */ __RPC__deref_out_opt ICounterItem **ppICounter) = 0; + + virtual /* [hidden][id] */ HRESULT STDMETHODCALLTYPE DeleteCounter( + /* [in] */ __RPC__in_opt ICounterItem *pCtr) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BackColorCtl( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_BackColorCtl( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_LogFileName( + /* [in] */ __RPC__in BSTR bsFileName) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LogFileName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsFileName) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_LogViewStart( + /* [in] */ DATE StartTime) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LogViewStart( + /* [retval][out] */ __RPC__out DATE *StartTime) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_LogViewStop( + /* [in] */ DATE StopTime) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LogViewStop( + /* [retval][out] */ __RPC__out DATE *StopTime) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_GridColor( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_GridColor( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_TimeBarColor( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_TimeBarColor( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Highlight( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Highlight( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowToolbar( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowToolbar( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Paste( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Copy( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ReadOnly( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ReadOnly( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ReportValueType( + /* [in] */ ReportValueTypeConstants eReportValueType) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ReportValueType( + /* [retval][out] */ __RPC__out ReportValueTypeConstants *peReportValueType) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MonitorDuplicateInstances( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_MonitorDuplicateInstances( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_DisplayFilter( + /* [in] */ INT iValue) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_DisplayFilter( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_LogFiles( + /* [retval][out] */ __RPC__deref_out_opt ILogFiles **ppILogFiles) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_DataSourceType( + /* [in] */ DataSourceTypeConstants eDataSourceType) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_DataSourceType( + /* [retval][out] */ __RPC__out DataSourceTypeConstants *peDataSourceType) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SqlDsnName( + /* [in] */ __RPC__in BSTR bsSqlDsnName) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_SqlDsnName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsSqlDsnName) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SqlLogSetName( + /* [in] */ __RPC__in BSTR bsSqlLogSetName) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_SqlLogSetName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsSqlLogSetName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISystemMonitorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISystemMonitor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISystemMonitor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISystemMonitor * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_Appearance) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Appearance )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out INT *iAppearance); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_Appearance) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Appearance )( + __RPC__in ISystemMonitor * This, + /* [in] */ INT iAppearance); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_BackColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BackColor )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_BackColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BackColor )( + __RPC__in ISystemMonitor * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_BorderStyle) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BorderStyle )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out INT *iBorderStyle); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_BorderStyle) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BorderStyle )( + __RPC__in ISystemMonitor * This, + /* [in] */ INT iBorderStyle); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ForeColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ForeColor )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ForeColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ForeColor )( + __RPC__in ISystemMonitor * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_Font) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Font )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__deref_out_opt IFontDisp **ppFont); + + DECLSPEC_XFGVIRT(ISystemMonitor, putref_Font) + /* [propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Font )( + __RPC__in ISystemMonitor * This, + /* [in] */ __RPC__in_opt IFontDisp *pFont); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_Counters) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Counters )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__deref_out_opt ICounters **ppICounters); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowVerticalGrid) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowVerticalGrid )( + __RPC__in ISystemMonitor * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowVerticalGrid) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowVerticalGrid )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowHorizontalGrid) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowHorizontalGrid )( + __RPC__in ISystemMonitor * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowHorizontalGrid) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowHorizontalGrid )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowLegend) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowLegend )( + __RPC__in ISystemMonitor * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowLegend) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowLegend )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowScaleLabels) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowScaleLabels )( + __RPC__in ISystemMonitor * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowScaleLabels) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowScaleLabels )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowValueBar) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowValueBar )( + __RPC__in ISystemMonitor * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowValueBar) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowValueBar )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_MaximumScale) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaximumScale )( + __RPC__in ISystemMonitor * This, + /* [in] */ INT iValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_MaximumScale) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaximumScale )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_MinimumScale) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MinimumScale )( + __RPC__in ISystemMonitor * This, + /* [in] */ INT iValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_MinimumScale) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MinimumScale )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_UpdateInterval) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_UpdateInterval )( + __RPC__in ISystemMonitor * This, + /* [in] */ FLOAT fValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_UpdateInterval) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_UpdateInterval )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out FLOAT *pfValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_DisplayType) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayType )( + __RPC__in ISystemMonitor * This, + /* [in] */ DisplayTypeConstants eDisplayType); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_DisplayType) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayType )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out DisplayTypeConstants *peDisplayType); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ManualUpdate) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ManualUpdate )( + __RPC__in ISystemMonitor * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ManualUpdate) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ManualUpdate )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_GraphTitle) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_GraphTitle )( + __RPC__in ISystemMonitor * This, + /* [in] */ __RPC__in BSTR bsTitle); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_GraphTitle) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_GraphTitle )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbsTitle); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_YAxisLabel) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_YAxisLabel )( + __RPC__in ISystemMonitor * This, + /* [in] */ __RPC__in BSTR bsTitle); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_YAxisLabel) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_YAxisLabel )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbsTitle); + + DECLSPEC_XFGVIRT(ISystemMonitor, CollectSample) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CollectSample )( + __RPC__in ISystemMonitor * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, UpdateGraph) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateGraph )( + __RPC__in ISystemMonitor * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, BrowseCounters) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BrowseCounters )( + __RPC__in ISystemMonitor * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, DisplayProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisplayProperties )( + __RPC__in ISystemMonitor * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, Counter) + /* [hidden][id] */ HRESULT ( STDMETHODCALLTYPE *Counter )( + __RPC__in ISystemMonitor * This, + /* [in] */ INT iIndex, + /* [out] */ __RPC__deref_out_opt ICounterItem **ppICounter); + + DECLSPEC_XFGVIRT(ISystemMonitor, AddCounter) + /* [hidden][id] */ HRESULT ( STDMETHODCALLTYPE *AddCounter )( + __RPC__in ISystemMonitor * This, + /* [in] */ __RPC__in BSTR bsPath, + /* [out] */ __RPC__deref_out_opt ICounterItem **ppICounter); + + DECLSPEC_XFGVIRT(ISystemMonitor, DeleteCounter) + /* [hidden][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteCounter )( + __RPC__in ISystemMonitor * This, + /* [in] */ __RPC__in_opt ICounterItem *pCtr); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_BackColorCtl) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BackColorCtl )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_BackColorCtl) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BackColorCtl )( + __RPC__in ISystemMonitor * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_LogFileName) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LogFileName )( + __RPC__in ISystemMonitor * This, + /* [in] */ __RPC__in BSTR bsFileName); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_LogFileName) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogFileName )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsFileName); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_LogViewStart) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LogViewStart )( + __RPC__in ISystemMonitor * This, + /* [in] */ DATE StartTime); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_LogViewStart) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogViewStart )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out DATE *StartTime); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_LogViewStop) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LogViewStop )( + __RPC__in ISystemMonitor * This, + /* [in] */ DATE StopTime); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_LogViewStop) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogViewStop )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out DATE *StopTime); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_GridColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_GridColor )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_GridColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_GridColor )( + __RPC__in ISystemMonitor * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_TimeBarColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_TimeBarColor )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_TimeBarColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_TimeBarColor )( + __RPC__in ISystemMonitor * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_Highlight) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Highlight )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_Highlight) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Highlight )( + __RPC__in ISystemMonitor * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowToolbar) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowToolbar )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowToolbar) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowToolbar )( + __RPC__in ISystemMonitor * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, Paste) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Paste )( + __RPC__in ISystemMonitor * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, Copy) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Copy )( + __RPC__in ISystemMonitor * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, Reset) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ISystemMonitor * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ReadOnly) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ReadOnly )( + __RPC__in ISystemMonitor * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ReadOnly) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ReadOnly )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ReportValueType) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ReportValueType )( + __RPC__in ISystemMonitor * This, + /* [in] */ ReportValueTypeConstants eReportValueType); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ReportValueType) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ReportValueType )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out ReportValueTypeConstants *peReportValueType); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_MonitorDuplicateInstances) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MonitorDuplicateInstances )( + __RPC__in ISystemMonitor * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_MonitorDuplicateInstances) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MonitorDuplicateInstances )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_DisplayFilter) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayFilter )( + __RPC__in ISystemMonitor * This, + /* [in] */ INT iValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_DisplayFilter) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayFilter )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_LogFiles) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogFiles )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__deref_out_opt ILogFiles **ppILogFiles); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_DataSourceType) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataSourceType )( + __RPC__in ISystemMonitor * This, + /* [in] */ DataSourceTypeConstants eDataSourceType); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_DataSourceType) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSourceType )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__out DataSourceTypeConstants *peDataSourceType); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_SqlDsnName) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SqlDsnName )( + __RPC__in ISystemMonitor * This, + /* [in] */ __RPC__in BSTR bsSqlDsnName); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_SqlDsnName) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SqlDsnName )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsSqlDsnName); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_SqlLogSetName) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SqlLogSetName )( + __RPC__in ISystemMonitor * This, + /* [in] */ __RPC__in BSTR bsSqlLogSetName); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_SqlLogSetName) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SqlLogSetName )( + __RPC__in ISystemMonitor * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsSqlLogSetName); + + END_INTERFACE + } ISystemMonitorVtbl; + + interface ISystemMonitor + { + CONST_VTBL struct ISystemMonitorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISystemMonitor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISystemMonitor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISystemMonitor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISystemMonitor_get_Appearance(This,iAppearance) \ + ( (This)->lpVtbl -> get_Appearance(This,iAppearance) ) + +#define ISystemMonitor_put_Appearance(This,iAppearance) \ + ( (This)->lpVtbl -> put_Appearance(This,iAppearance) ) + +#define ISystemMonitor_get_BackColor(This,pColor) \ + ( (This)->lpVtbl -> get_BackColor(This,pColor) ) + +#define ISystemMonitor_put_BackColor(This,Color) \ + ( (This)->lpVtbl -> put_BackColor(This,Color) ) + +#define ISystemMonitor_get_BorderStyle(This,iBorderStyle) \ + ( (This)->lpVtbl -> get_BorderStyle(This,iBorderStyle) ) + +#define ISystemMonitor_put_BorderStyle(This,iBorderStyle) \ + ( (This)->lpVtbl -> put_BorderStyle(This,iBorderStyle) ) + +#define ISystemMonitor_get_ForeColor(This,pColor) \ + ( (This)->lpVtbl -> get_ForeColor(This,pColor) ) + +#define ISystemMonitor_put_ForeColor(This,Color) \ + ( (This)->lpVtbl -> put_ForeColor(This,Color) ) + +#define ISystemMonitor_get_Font(This,ppFont) \ + ( (This)->lpVtbl -> get_Font(This,ppFont) ) + +#define ISystemMonitor_putref_Font(This,pFont) \ + ( (This)->lpVtbl -> putref_Font(This,pFont) ) + +#define ISystemMonitor_get_Counters(This,ppICounters) \ + ( (This)->lpVtbl -> get_Counters(This,ppICounters) ) + +#define ISystemMonitor_put_ShowVerticalGrid(This,bState) \ + ( (This)->lpVtbl -> put_ShowVerticalGrid(This,bState) ) + +#define ISystemMonitor_get_ShowVerticalGrid(This,pbState) \ + ( (This)->lpVtbl -> get_ShowVerticalGrid(This,pbState) ) + +#define ISystemMonitor_put_ShowHorizontalGrid(This,bState) \ + ( (This)->lpVtbl -> put_ShowHorizontalGrid(This,bState) ) + +#define ISystemMonitor_get_ShowHorizontalGrid(This,pbState) \ + ( (This)->lpVtbl -> get_ShowHorizontalGrid(This,pbState) ) + +#define ISystemMonitor_put_ShowLegend(This,bState) \ + ( (This)->lpVtbl -> put_ShowLegend(This,bState) ) + +#define ISystemMonitor_get_ShowLegend(This,pbState) \ + ( (This)->lpVtbl -> get_ShowLegend(This,pbState) ) + +#define ISystemMonitor_put_ShowScaleLabels(This,bState) \ + ( (This)->lpVtbl -> put_ShowScaleLabels(This,bState) ) + +#define ISystemMonitor_get_ShowScaleLabels(This,pbState) \ + ( (This)->lpVtbl -> get_ShowScaleLabels(This,pbState) ) + +#define ISystemMonitor_put_ShowValueBar(This,bState) \ + ( (This)->lpVtbl -> put_ShowValueBar(This,bState) ) + +#define ISystemMonitor_get_ShowValueBar(This,pbState) \ + ( (This)->lpVtbl -> get_ShowValueBar(This,pbState) ) + +#define ISystemMonitor_put_MaximumScale(This,iValue) \ + ( (This)->lpVtbl -> put_MaximumScale(This,iValue) ) + +#define ISystemMonitor_get_MaximumScale(This,piValue) \ + ( (This)->lpVtbl -> get_MaximumScale(This,piValue) ) + +#define ISystemMonitor_put_MinimumScale(This,iValue) \ + ( (This)->lpVtbl -> put_MinimumScale(This,iValue) ) + +#define ISystemMonitor_get_MinimumScale(This,piValue) \ + ( (This)->lpVtbl -> get_MinimumScale(This,piValue) ) + +#define ISystemMonitor_put_UpdateInterval(This,fValue) \ + ( (This)->lpVtbl -> put_UpdateInterval(This,fValue) ) + +#define ISystemMonitor_get_UpdateInterval(This,pfValue) \ + ( (This)->lpVtbl -> get_UpdateInterval(This,pfValue) ) + +#define ISystemMonitor_put_DisplayType(This,eDisplayType) \ + ( (This)->lpVtbl -> put_DisplayType(This,eDisplayType) ) + +#define ISystemMonitor_get_DisplayType(This,peDisplayType) \ + ( (This)->lpVtbl -> get_DisplayType(This,peDisplayType) ) + +#define ISystemMonitor_put_ManualUpdate(This,bState) \ + ( (This)->lpVtbl -> put_ManualUpdate(This,bState) ) + +#define ISystemMonitor_get_ManualUpdate(This,pbState) \ + ( (This)->lpVtbl -> get_ManualUpdate(This,pbState) ) + +#define ISystemMonitor_put_GraphTitle(This,bsTitle) \ + ( (This)->lpVtbl -> put_GraphTitle(This,bsTitle) ) + +#define ISystemMonitor_get_GraphTitle(This,pbsTitle) \ + ( (This)->lpVtbl -> get_GraphTitle(This,pbsTitle) ) + +#define ISystemMonitor_put_YAxisLabel(This,bsTitle) \ + ( (This)->lpVtbl -> put_YAxisLabel(This,bsTitle) ) + +#define ISystemMonitor_get_YAxisLabel(This,pbsTitle) \ + ( (This)->lpVtbl -> get_YAxisLabel(This,pbsTitle) ) + +#define ISystemMonitor_CollectSample(This) \ + ( (This)->lpVtbl -> CollectSample(This) ) + +#define ISystemMonitor_UpdateGraph(This) \ + ( (This)->lpVtbl -> UpdateGraph(This) ) + +#define ISystemMonitor_BrowseCounters(This) \ + ( (This)->lpVtbl -> BrowseCounters(This) ) + +#define ISystemMonitor_DisplayProperties(This) \ + ( (This)->lpVtbl -> DisplayProperties(This) ) + +#define ISystemMonitor_Counter(This,iIndex,ppICounter) \ + ( (This)->lpVtbl -> Counter(This,iIndex,ppICounter) ) + +#define ISystemMonitor_AddCounter(This,bsPath,ppICounter) \ + ( (This)->lpVtbl -> AddCounter(This,bsPath,ppICounter) ) + +#define ISystemMonitor_DeleteCounter(This,pCtr) \ + ( (This)->lpVtbl -> DeleteCounter(This,pCtr) ) + +#define ISystemMonitor_get_BackColorCtl(This,pColor) \ + ( (This)->lpVtbl -> get_BackColorCtl(This,pColor) ) + +#define ISystemMonitor_put_BackColorCtl(This,Color) \ + ( (This)->lpVtbl -> put_BackColorCtl(This,Color) ) + +#define ISystemMonitor_put_LogFileName(This,bsFileName) \ + ( (This)->lpVtbl -> put_LogFileName(This,bsFileName) ) + +#define ISystemMonitor_get_LogFileName(This,bsFileName) \ + ( (This)->lpVtbl -> get_LogFileName(This,bsFileName) ) + +#define ISystemMonitor_put_LogViewStart(This,StartTime) \ + ( (This)->lpVtbl -> put_LogViewStart(This,StartTime) ) + +#define ISystemMonitor_get_LogViewStart(This,StartTime) \ + ( (This)->lpVtbl -> get_LogViewStart(This,StartTime) ) + +#define ISystemMonitor_put_LogViewStop(This,StopTime) \ + ( (This)->lpVtbl -> put_LogViewStop(This,StopTime) ) + +#define ISystemMonitor_get_LogViewStop(This,StopTime) \ + ( (This)->lpVtbl -> get_LogViewStop(This,StopTime) ) + +#define ISystemMonitor_get_GridColor(This,pColor) \ + ( (This)->lpVtbl -> get_GridColor(This,pColor) ) + +#define ISystemMonitor_put_GridColor(This,Color) \ + ( (This)->lpVtbl -> put_GridColor(This,Color) ) + +#define ISystemMonitor_get_TimeBarColor(This,pColor) \ + ( (This)->lpVtbl -> get_TimeBarColor(This,pColor) ) + +#define ISystemMonitor_put_TimeBarColor(This,Color) \ + ( (This)->lpVtbl -> put_TimeBarColor(This,Color) ) + +#define ISystemMonitor_get_Highlight(This,pbState) \ + ( (This)->lpVtbl -> get_Highlight(This,pbState) ) + +#define ISystemMonitor_put_Highlight(This,bState) \ + ( (This)->lpVtbl -> put_Highlight(This,bState) ) + +#define ISystemMonitor_get_ShowToolbar(This,pbState) \ + ( (This)->lpVtbl -> get_ShowToolbar(This,pbState) ) + +#define ISystemMonitor_put_ShowToolbar(This,bState) \ + ( (This)->lpVtbl -> put_ShowToolbar(This,bState) ) + +#define ISystemMonitor_Paste(This) \ + ( (This)->lpVtbl -> Paste(This) ) + +#define ISystemMonitor_Copy(This) \ + ( (This)->lpVtbl -> Copy(This) ) + +#define ISystemMonitor_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define ISystemMonitor_put_ReadOnly(This,bState) \ + ( (This)->lpVtbl -> put_ReadOnly(This,bState) ) + +#define ISystemMonitor_get_ReadOnly(This,pbState) \ + ( (This)->lpVtbl -> get_ReadOnly(This,pbState) ) + +#define ISystemMonitor_put_ReportValueType(This,eReportValueType) \ + ( (This)->lpVtbl -> put_ReportValueType(This,eReportValueType) ) + +#define ISystemMonitor_get_ReportValueType(This,peReportValueType) \ + ( (This)->lpVtbl -> get_ReportValueType(This,peReportValueType) ) + +#define ISystemMonitor_put_MonitorDuplicateInstances(This,bState) \ + ( (This)->lpVtbl -> put_MonitorDuplicateInstances(This,bState) ) + +#define ISystemMonitor_get_MonitorDuplicateInstances(This,pbState) \ + ( (This)->lpVtbl -> get_MonitorDuplicateInstances(This,pbState) ) + +#define ISystemMonitor_put_DisplayFilter(This,iValue) \ + ( (This)->lpVtbl -> put_DisplayFilter(This,iValue) ) + +#define ISystemMonitor_get_DisplayFilter(This,piValue) \ + ( (This)->lpVtbl -> get_DisplayFilter(This,piValue) ) + +#define ISystemMonitor_get_LogFiles(This,ppILogFiles) \ + ( (This)->lpVtbl -> get_LogFiles(This,ppILogFiles) ) + +#define ISystemMonitor_put_DataSourceType(This,eDataSourceType) \ + ( (This)->lpVtbl -> put_DataSourceType(This,eDataSourceType) ) + +#define ISystemMonitor_get_DataSourceType(This,peDataSourceType) \ + ( (This)->lpVtbl -> get_DataSourceType(This,peDataSourceType) ) + +#define ISystemMonitor_put_SqlDsnName(This,bsSqlDsnName) \ + ( (This)->lpVtbl -> put_SqlDsnName(This,bsSqlDsnName) ) + +#define ISystemMonitor_get_SqlDsnName(This,bsSqlDsnName) \ + ( (This)->lpVtbl -> get_SqlDsnName(This,bsSqlDsnName) ) + +#define ISystemMonitor_put_SqlLogSetName(This,bsSqlLogSetName) \ + ( (This)->lpVtbl -> put_SqlLogSetName(This,bsSqlLogSetName) ) + +#define ISystemMonitor_get_SqlLogSetName(This,bsSqlLogSetName) \ + ( (This)->lpVtbl -> get_SqlLogSetName(This,bsSqlLogSetName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISystemMonitor_INTERFACE_DEFINED__ */ + + +#ifndef __ISystemMonitor2_INTERFACE_DEFINED__ +#define __ISystemMonitor2_INTERFACE_DEFINED__ + +/* interface ISystemMonitor2 */ +/* [object][helpstring][uuid] */ + + +DEFINE_GUID(IID_ISystemMonitor2,0x08e3206a,0x5fd2,0x4fde,0xa8,0xa5,0x8c,0xb3,0xb6,0x3d,0x26,0x77); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("08e3206a-5fd2-4fde-a8a5-8cb3b63d2677") + ISystemMonitor2 : public ISystemMonitor + { + public: + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_EnableDigitGrouping( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_EnableDigitGrouping( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_EnableToolTips( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_EnableToolTips( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowTimeAxisLabels( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowTimeAxisLabels( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ChartScroll( + /* [in] */ VARIANT_BOOL bScroll) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ChartScroll( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbScroll) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_DataPointCount( + /* [in] */ INT iNewCount) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_DataPointCount( + /* [retval][out] */ __RPC__out INT *piDataPointCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ScaleToFit( + VARIANT_BOOL bSelectedCountersOnly) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveAs( + __RPC__in BSTR bstrFileName, + SysmonFileType eSysmonFileType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Relog( + __RPC__in BSTR bstrFileName, + SysmonFileType eSysmonFileType, + INT iFilter) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ClearData( void) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LogSourceStartTime( + /* [out] */ __RPC__out DATE *pDate) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LogSourceStopTime( + /* [out] */ __RPC__out DATE *pDate) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetLogViewRange( + /* [in] */ DATE StartTime, + /* [in] */ DATE StopTime) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetLogViewRange( + /* [out] */ __RPC__out DATE *StartTime, + /* [out] */ __RPC__out DATE *StopTime) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE BatchingLock( + /* [in] */ VARIANT_BOOL fLock, + /* [in] */ SysmonBatchReason eBatchReason) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LoadSettings( + /* [in] */ __RPC__in BSTR bstrSettingFileName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISystemMonitor2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISystemMonitor2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISystemMonitor2 * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_Appearance) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Appearance )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out INT *iAppearance); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_Appearance) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Appearance )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ INT iAppearance); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_BackColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BackColor )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_BackColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BackColor )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_BorderStyle) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BorderStyle )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out INT *iBorderStyle); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_BorderStyle) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BorderStyle )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ INT iBorderStyle); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ForeColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ForeColor )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ForeColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ForeColor )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_Font) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Font )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFontDisp **ppFont); + + DECLSPEC_XFGVIRT(ISystemMonitor, putref_Font) + /* [propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Font )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ __RPC__in_opt IFontDisp *pFont); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_Counters) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Counters )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICounters **ppICounters); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowVerticalGrid) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowVerticalGrid )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowVerticalGrid) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowVerticalGrid )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowHorizontalGrid) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowHorizontalGrid )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowHorizontalGrid) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowHorizontalGrid )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowLegend) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowLegend )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowLegend) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowLegend )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowScaleLabels) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowScaleLabels )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowScaleLabels) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowScaleLabels )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowValueBar) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowValueBar )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowValueBar) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowValueBar )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_MaximumScale) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaximumScale )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ INT iValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_MaximumScale) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaximumScale )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_MinimumScale) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MinimumScale )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ INT iValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_MinimumScale) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MinimumScale )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_UpdateInterval) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_UpdateInterval )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ FLOAT fValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_UpdateInterval) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_UpdateInterval )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out FLOAT *pfValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_DisplayType) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayType )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ DisplayTypeConstants eDisplayType); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_DisplayType) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayType )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out DisplayTypeConstants *peDisplayType); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ManualUpdate) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ManualUpdate )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ManualUpdate) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ManualUpdate )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_GraphTitle) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_GraphTitle )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ __RPC__in BSTR bsTitle); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_GraphTitle) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_GraphTitle )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbsTitle); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_YAxisLabel) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_YAxisLabel )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ __RPC__in BSTR bsTitle); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_YAxisLabel) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_YAxisLabel )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbsTitle); + + DECLSPEC_XFGVIRT(ISystemMonitor, CollectSample) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CollectSample )( + __RPC__in ISystemMonitor2 * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, UpdateGraph) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateGraph )( + __RPC__in ISystemMonitor2 * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, BrowseCounters) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BrowseCounters )( + __RPC__in ISystemMonitor2 * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, DisplayProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisplayProperties )( + __RPC__in ISystemMonitor2 * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, Counter) + /* [hidden][id] */ HRESULT ( STDMETHODCALLTYPE *Counter )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ INT iIndex, + /* [out] */ __RPC__deref_out_opt ICounterItem **ppICounter); + + DECLSPEC_XFGVIRT(ISystemMonitor, AddCounter) + /* [hidden][id] */ HRESULT ( STDMETHODCALLTYPE *AddCounter )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ __RPC__in BSTR bsPath, + /* [out] */ __RPC__deref_out_opt ICounterItem **ppICounter); + + DECLSPEC_XFGVIRT(ISystemMonitor, DeleteCounter) + /* [hidden][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteCounter )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ __RPC__in_opt ICounterItem *pCtr); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_BackColorCtl) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BackColorCtl )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_BackColorCtl) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BackColorCtl )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_LogFileName) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LogFileName )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ __RPC__in BSTR bsFileName); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_LogFileName) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogFileName )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsFileName); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_LogViewStart) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LogViewStart )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ DATE StartTime); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_LogViewStart) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogViewStart )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out DATE *StartTime); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_LogViewStop) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LogViewStop )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ DATE StopTime); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_LogViewStop) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogViewStop )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out DATE *StopTime); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_GridColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_GridColor )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_GridColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_GridColor )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_TimeBarColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_TimeBarColor )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_TimeBarColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_TimeBarColor )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_Highlight) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Highlight )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_Highlight) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Highlight )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ShowToolbar) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowToolbar )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ShowToolbar) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowToolbar )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, Paste) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Paste )( + __RPC__in ISystemMonitor2 * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, Copy) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Copy )( + __RPC__in ISystemMonitor2 * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, Reset) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in ISystemMonitor2 * This); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ReadOnly) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ReadOnly )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ReadOnly) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ReadOnly )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_ReportValueType) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ReportValueType )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ ReportValueTypeConstants eReportValueType); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_ReportValueType) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ReportValueType )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out ReportValueTypeConstants *peReportValueType); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_MonitorDuplicateInstances) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MonitorDuplicateInstances )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_MonitorDuplicateInstances) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MonitorDuplicateInstances )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_DisplayFilter) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayFilter )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ INT iValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_DisplayFilter) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayFilter )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_LogFiles) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogFiles )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__deref_out_opt ILogFiles **ppILogFiles); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_DataSourceType) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataSourceType )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ DataSourceTypeConstants eDataSourceType); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_DataSourceType) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSourceType )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out DataSourceTypeConstants *peDataSourceType); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_SqlDsnName) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SqlDsnName )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ __RPC__in BSTR bsSqlDsnName); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_SqlDsnName) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SqlDsnName )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsSqlDsnName); + + DECLSPEC_XFGVIRT(ISystemMonitor, put_SqlLogSetName) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SqlLogSetName )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ __RPC__in BSTR bsSqlLogSetName); + + DECLSPEC_XFGVIRT(ISystemMonitor, get_SqlLogSetName) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SqlLogSetName )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsSqlLogSetName); + + DECLSPEC_XFGVIRT(ISystemMonitor2, put_EnableDigitGrouping) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_EnableDigitGrouping )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor2, get_EnableDigitGrouping) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EnableDigitGrouping )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor2, put_EnableToolTips) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_EnableToolTips )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor2, get_EnableToolTips) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EnableToolTips )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor2, put_ShowTimeAxisLabels) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowTimeAxisLabels )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(ISystemMonitor2, get_ShowTimeAxisLabels) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowTimeAxisLabels )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(ISystemMonitor2, put_ChartScroll) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ChartScroll )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL bScroll); + + DECLSPEC_XFGVIRT(ISystemMonitor2, get_ChartScroll) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ChartScroll )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbScroll); + + DECLSPEC_XFGVIRT(ISystemMonitor2, put_DataPointCount) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataPointCount )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ INT iNewCount); + + DECLSPEC_XFGVIRT(ISystemMonitor2, get_DataPointCount) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataPointCount )( + __RPC__in ISystemMonitor2 * This, + /* [retval][out] */ __RPC__out INT *piDataPointCount); + + DECLSPEC_XFGVIRT(ISystemMonitor2, ScaleToFit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ScaleToFit )( + __RPC__in ISystemMonitor2 * This, + VARIANT_BOOL bSelectedCountersOnly); + + DECLSPEC_XFGVIRT(ISystemMonitor2, SaveAs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveAs )( + __RPC__in ISystemMonitor2 * This, + __RPC__in BSTR bstrFileName, + SysmonFileType eSysmonFileType); + + DECLSPEC_XFGVIRT(ISystemMonitor2, Relog) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Relog )( + __RPC__in ISystemMonitor2 * This, + __RPC__in BSTR bstrFileName, + SysmonFileType eSysmonFileType, + INT iFilter); + + DECLSPEC_XFGVIRT(ISystemMonitor2, ClearData) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ClearData )( + __RPC__in ISystemMonitor2 * This); + + DECLSPEC_XFGVIRT(ISystemMonitor2, get_LogSourceStartTime) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogSourceStartTime )( + __RPC__in ISystemMonitor2 * This, + /* [out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(ISystemMonitor2, get_LogSourceStopTime) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogSourceStopTime )( + __RPC__in ISystemMonitor2 * This, + /* [out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(ISystemMonitor2, SetLogViewRange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLogViewRange )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ DATE StartTime, + /* [in] */ DATE StopTime); + + DECLSPEC_XFGVIRT(ISystemMonitor2, GetLogViewRange) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetLogViewRange )( + __RPC__in ISystemMonitor2 * This, + /* [out] */ __RPC__out DATE *StartTime, + /* [out] */ __RPC__out DATE *StopTime); + + DECLSPEC_XFGVIRT(ISystemMonitor2, BatchingLock) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BatchingLock )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ VARIANT_BOOL fLock, + /* [in] */ SysmonBatchReason eBatchReason); + + DECLSPEC_XFGVIRT(ISystemMonitor2, LoadSettings) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LoadSettings )( + __RPC__in ISystemMonitor2 * This, + /* [in] */ __RPC__in BSTR bstrSettingFileName); + + END_INTERFACE + } ISystemMonitor2Vtbl; + + interface ISystemMonitor2 + { + CONST_VTBL struct ISystemMonitor2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISystemMonitor2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISystemMonitor2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISystemMonitor2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISystemMonitor2_get_Appearance(This,iAppearance) \ + ( (This)->lpVtbl -> get_Appearance(This,iAppearance) ) + +#define ISystemMonitor2_put_Appearance(This,iAppearance) \ + ( (This)->lpVtbl -> put_Appearance(This,iAppearance) ) + +#define ISystemMonitor2_get_BackColor(This,pColor) \ + ( (This)->lpVtbl -> get_BackColor(This,pColor) ) + +#define ISystemMonitor2_put_BackColor(This,Color) \ + ( (This)->lpVtbl -> put_BackColor(This,Color) ) + +#define ISystemMonitor2_get_BorderStyle(This,iBorderStyle) \ + ( (This)->lpVtbl -> get_BorderStyle(This,iBorderStyle) ) + +#define ISystemMonitor2_put_BorderStyle(This,iBorderStyle) \ + ( (This)->lpVtbl -> put_BorderStyle(This,iBorderStyle) ) + +#define ISystemMonitor2_get_ForeColor(This,pColor) \ + ( (This)->lpVtbl -> get_ForeColor(This,pColor) ) + +#define ISystemMonitor2_put_ForeColor(This,Color) \ + ( (This)->lpVtbl -> put_ForeColor(This,Color) ) + +#define ISystemMonitor2_get_Font(This,ppFont) \ + ( (This)->lpVtbl -> get_Font(This,ppFont) ) + +#define ISystemMonitor2_putref_Font(This,pFont) \ + ( (This)->lpVtbl -> putref_Font(This,pFont) ) + +#define ISystemMonitor2_get_Counters(This,ppICounters) \ + ( (This)->lpVtbl -> get_Counters(This,ppICounters) ) + +#define ISystemMonitor2_put_ShowVerticalGrid(This,bState) \ + ( (This)->lpVtbl -> put_ShowVerticalGrid(This,bState) ) + +#define ISystemMonitor2_get_ShowVerticalGrid(This,pbState) \ + ( (This)->lpVtbl -> get_ShowVerticalGrid(This,pbState) ) + +#define ISystemMonitor2_put_ShowHorizontalGrid(This,bState) \ + ( (This)->lpVtbl -> put_ShowHorizontalGrid(This,bState) ) + +#define ISystemMonitor2_get_ShowHorizontalGrid(This,pbState) \ + ( (This)->lpVtbl -> get_ShowHorizontalGrid(This,pbState) ) + +#define ISystemMonitor2_put_ShowLegend(This,bState) \ + ( (This)->lpVtbl -> put_ShowLegend(This,bState) ) + +#define ISystemMonitor2_get_ShowLegend(This,pbState) \ + ( (This)->lpVtbl -> get_ShowLegend(This,pbState) ) + +#define ISystemMonitor2_put_ShowScaleLabels(This,bState) \ + ( (This)->lpVtbl -> put_ShowScaleLabels(This,bState) ) + +#define ISystemMonitor2_get_ShowScaleLabels(This,pbState) \ + ( (This)->lpVtbl -> get_ShowScaleLabels(This,pbState) ) + +#define ISystemMonitor2_put_ShowValueBar(This,bState) \ + ( (This)->lpVtbl -> put_ShowValueBar(This,bState) ) + +#define ISystemMonitor2_get_ShowValueBar(This,pbState) \ + ( (This)->lpVtbl -> get_ShowValueBar(This,pbState) ) + +#define ISystemMonitor2_put_MaximumScale(This,iValue) \ + ( (This)->lpVtbl -> put_MaximumScale(This,iValue) ) + +#define ISystemMonitor2_get_MaximumScale(This,piValue) \ + ( (This)->lpVtbl -> get_MaximumScale(This,piValue) ) + +#define ISystemMonitor2_put_MinimumScale(This,iValue) \ + ( (This)->lpVtbl -> put_MinimumScale(This,iValue) ) + +#define ISystemMonitor2_get_MinimumScale(This,piValue) \ + ( (This)->lpVtbl -> get_MinimumScale(This,piValue) ) + +#define ISystemMonitor2_put_UpdateInterval(This,fValue) \ + ( (This)->lpVtbl -> put_UpdateInterval(This,fValue) ) + +#define ISystemMonitor2_get_UpdateInterval(This,pfValue) \ + ( (This)->lpVtbl -> get_UpdateInterval(This,pfValue) ) + +#define ISystemMonitor2_put_DisplayType(This,eDisplayType) \ + ( (This)->lpVtbl -> put_DisplayType(This,eDisplayType) ) + +#define ISystemMonitor2_get_DisplayType(This,peDisplayType) \ + ( (This)->lpVtbl -> get_DisplayType(This,peDisplayType) ) + +#define ISystemMonitor2_put_ManualUpdate(This,bState) \ + ( (This)->lpVtbl -> put_ManualUpdate(This,bState) ) + +#define ISystemMonitor2_get_ManualUpdate(This,pbState) \ + ( (This)->lpVtbl -> get_ManualUpdate(This,pbState) ) + +#define ISystemMonitor2_put_GraphTitle(This,bsTitle) \ + ( (This)->lpVtbl -> put_GraphTitle(This,bsTitle) ) + +#define ISystemMonitor2_get_GraphTitle(This,pbsTitle) \ + ( (This)->lpVtbl -> get_GraphTitle(This,pbsTitle) ) + +#define ISystemMonitor2_put_YAxisLabel(This,bsTitle) \ + ( (This)->lpVtbl -> put_YAxisLabel(This,bsTitle) ) + +#define ISystemMonitor2_get_YAxisLabel(This,pbsTitle) \ + ( (This)->lpVtbl -> get_YAxisLabel(This,pbsTitle) ) + +#define ISystemMonitor2_CollectSample(This) \ + ( (This)->lpVtbl -> CollectSample(This) ) + +#define ISystemMonitor2_UpdateGraph(This) \ + ( (This)->lpVtbl -> UpdateGraph(This) ) + +#define ISystemMonitor2_BrowseCounters(This) \ + ( (This)->lpVtbl -> BrowseCounters(This) ) + +#define ISystemMonitor2_DisplayProperties(This) \ + ( (This)->lpVtbl -> DisplayProperties(This) ) + +#define ISystemMonitor2_Counter(This,iIndex,ppICounter) \ + ( (This)->lpVtbl -> Counter(This,iIndex,ppICounter) ) + +#define ISystemMonitor2_AddCounter(This,bsPath,ppICounter) \ + ( (This)->lpVtbl -> AddCounter(This,bsPath,ppICounter) ) + +#define ISystemMonitor2_DeleteCounter(This,pCtr) \ + ( (This)->lpVtbl -> DeleteCounter(This,pCtr) ) + +#define ISystemMonitor2_get_BackColorCtl(This,pColor) \ + ( (This)->lpVtbl -> get_BackColorCtl(This,pColor) ) + +#define ISystemMonitor2_put_BackColorCtl(This,Color) \ + ( (This)->lpVtbl -> put_BackColorCtl(This,Color) ) + +#define ISystemMonitor2_put_LogFileName(This,bsFileName) \ + ( (This)->lpVtbl -> put_LogFileName(This,bsFileName) ) + +#define ISystemMonitor2_get_LogFileName(This,bsFileName) \ + ( (This)->lpVtbl -> get_LogFileName(This,bsFileName) ) + +#define ISystemMonitor2_put_LogViewStart(This,StartTime) \ + ( (This)->lpVtbl -> put_LogViewStart(This,StartTime) ) + +#define ISystemMonitor2_get_LogViewStart(This,StartTime) \ + ( (This)->lpVtbl -> get_LogViewStart(This,StartTime) ) + +#define ISystemMonitor2_put_LogViewStop(This,StopTime) \ + ( (This)->lpVtbl -> put_LogViewStop(This,StopTime) ) + +#define ISystemMonitor2_get_LogViewStop(This,StopTime) \ + ( (This)->lpVtbl -> get_LogViewStop(This,StopTime) ) + +#define ISystemMonitor2_get_GridColor(This,pColor) \ + ( (This)->lpVtbl -> get_GridColor(This,pColor) ) + +#define ISystemMonitor2_put_GridColor(This,Color) \ + ( (This)->lpVtbl -> put_GridColor(This,Color) ) + +#define ISystemMonitor2_get_TimeBarColor(This,pColor) \ + ( (This)->lpVtbl -> get_TimeBarColor(This,pColor) ) + +#define ISystemMonitor2_put_TimeBarColor(This,Color) \ + ( (This)->lpVtbl -> put_TimeBarColor(This,Color) ) + +#define ISystemMonitor2_get_Highlight(This,pbState) \ + ( (This)->lpVtbl -> get_Highlight(This,pbState) ) + +#define ISystemMonitor2_put_Highlight(This,bState) \ + ( (This)->lpVtbl -> put_Highlight(This,bState) ) + +#define ISystemMonitor2_get_ShowToolbar(This,pbState) \ + ( (This)->lpVtbl -> get_ShowToolbar(This,pbState) ) + +#define ISystemMonitor2_put_ShowToolbar(This,bState) \ + ( (This)->lpVtbl -> put_ShowToolbar(This,bState) ) + +#define ISystemMonitor2_Paste(This) \ + ( (This)->lpVtbl -> Paste(This) ) + +#define ISystemMonitor2_Copy(This) \ + ( (This)->lpVtbl -> Copy(This) ) + +#define ISystemMonitor2_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define ISystemMonitor2_put_ReadOnly(This,bState) \ + ( (This)->lpVtbl -> put_ReadOnly(This,bState) ) + +#define ISystemMonitor2_get_ReadOnly(This,pbState) \ + ( (This)->lpVtbl -> get_ReadOnly(This,pbState) ) + +#define ISystemMonitor2_put_ReportValueType(This,eReportValueType) \ + ( (This)->lpVtbl -> put_ReportValueType(This,eReportValueType) ) + +#define ISystemMonitor2_get_ReportValueType(This,peReportValueType) \ + ( (This)->lpVtbl -> get_ReportValueType(This,peReportValueType) ) + +#define ISystemMonitor2_put_MonitorDuplicateInstances(This,bState) \ + ( (This)->lpVtbl -> put_MonitorDuplicateInstances(This,bState) ) + +#define ISystemMonitor2_get_MonitorDuplicateInstances(This,pbState) \ + ( (This)->lpVtbl -> get_MonitorDuplicateInstances(This,pbState) ) + +#define ISystemMonitor2_put_DisplayFilter(This,iValue) \ + ( (This)->lpVtbl -> put_DisplayFilter(This,iValue) ) + +#define ISystemMonitor2_get_DisplayFilter(This,piValue) \ + ( (This)->lpVtbl -> get_DisplayFilter(This,piValue) ) + +#define ISystemMonitor2_get_LogFiles(This,ppILogFiles) \ + ( (This)->lpVtbl -> get_LogFiles(This,ppILogFiles) ) + +#define ISystemMonitor2_put_DataSourceType(This,eDataSourceType) \ + ( (This)->lpVtbl -> put_DataSourceType(This,eDataSourceType) ) + +#define ISystemMonitor2_get_DataSourceType(This,peDataSourceType) \ + ( (This)->lpVtbl -> get_DataSourceType(This,peDataSourceType) ) + +#define ISystemMonitor2_put_SqlDsnName(This,bsSqlDsnName) \ + ( (This)->lpVtbl -> put_SqlDsnName(This,bsSqlDsnName) ) + +#define ISystemMonitor2_get_SqlDsnName(This,bsSqlDsnName) \ + ( (This)->lpVtbl -> get_SqlDsnName(This,bsSqlDsnName) ) + +#define ISystemMonitor2_put_SqlLogSetName(This,bsSqlLogSetName) \ + ( (This)->lpVtbl -> put_SqlLogSetName(This,bsSqlLogSetName) ) + +#define ISystemMonitor2_get_SqlLogSetName(This,bsSqlLogSetName) \ + ( (This)->lpVtbl -> get_SqlLogSetName(This,bsSqlLogSetName) ) + + +#define ISystemMonitor2_put_EnableDigitGrouping(This,bState) \ + ( (This)->lpVtbl -> put_EnableDigitGrouping(This,bState) ) + +#define ISystemMonitor2_get_EnableDigitGrouping(This,pbState) \ + ( (This)->lpVtbl -> get_EnableDigitGrouping(This,pbState) ) + +#define ISystemMonitor2_put_EnableToolTips(This,bState) \ + ( (This)->lpVtbl -> put_EnableToolTips(This,bState) ) + +#define ISystemMonitor2_get_EnableToolTips(This,pbState) \ + ( (This)->lpVtbl -> get_EnableToolTips(This,pbState) ) + +#define ISystemMonitor2_put_ShowTimeAxisLabels(This,bState) \ + ( (This)->lpVtbl -> put_ShowTimeAxisLabels(This,bState) ) + +#define ISystemMonitor2_get_ShowTimeAxisLabels(This,pbState) \ + ( (This)->lpVtbl -> get_ShowTimeAxisLabels(This,pbState) ) + +#define ISystemMonitor2_put_ChartScroll(This,bScroll) \ + ( (This)->lpVtbl -> put_ChartScroll(This,bScroll) ) + +#define ISystemMonitor2_get_ChartScroll(This,pbScroll) \ + ( (This)->lpVtbl -> get_ChartScroll(This,pbScroll) ) + +#define ISystemMonitor2_put_DataPointCount(This,iNewCount) \ + ( (This)->lpVtbl -> put_DataPointCount(This,iNewCount) ) + +#define ISystemMonitor2_get_DataPointCount(This,piDataPointCount) \ + ( (This)->lpVtbl -> get_DataPointCount(This,piDataPointCount) ) + +#define ISystemMonitor2_ScaleToFit(This,bSelectedCountersOnly) \ + ( (This)->lpVtbl -> ScaleToFit(This,bSelectedCountersOnly) ) + +#define ISystemMonitor2_SaveAs(This,bstrFileName,eSysmonFileType) \ + ( (This)->lpVtbl -> SaveAs(This,bstrFileName,eSysmonFileType) ) + +#define ISystemMonitor2_Relog(This,bstrFileName,eSysmonFileType,iFilter) \ + ( (This)->lpVtbl -> Relog(This,bstrFileName,eSysmonFileType,iFilter) ) + +#define ISystemMonitor2_ClearData(This) \ + ( (This)->lpVtbl -> ClearData(This) ) + +#define ISystemMonitor2_get_LogSourceStartTime(This,pDate) \ + ( (This)->lpVtbl -> get_LogSourceStartTime(This,pDate) ) + +#define ISystemMonitor2_get_LogSourceStopTime(This,pDate) \ + ( (This)->lpVtbl -> get_LogSourceStopTime(This,pDate) ) + +#define ISystemMonitor2_SetLogViewRange(This,StartTime,StopTime) \ + ( (This)->lpVtbl -> SetLogViewRange(This,StartTime,StopTime) ) + +#define ISystemMonitor2_GetLogViewRange(This,StartTime,StopTime) \ + ( (This)->lpVtbl -> GetLogViewRange(This,StartTime,StopTime) ) + +#define ISystemMonitor2_BatchingLock(This,fLock,eBatchReason) \ + ( (This)->lpVtbl -> BatchingLock(This,fLock,eBatchReason) ) + +#define ISystemMonitor2_LoadSettings(This,bstrSettingFileName) \ + ( (This)->lpVtbl -> LoadSettings(This,bstrSettingFileName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISystemMonitor2_INTERFACE_DEFINED__ */ + + +#ifndef ___ISystemMonitorUnion_INTERFACE_DEFINED__ +#define ___ISystemMonitorUnion_INTERFACE_DEFINED__ + +/* interface _ISystemMonitorUnion */ +/* [object][hidden][uuid] */ + + +DEFINE_GUID(IID__ISystemMonitorUnion,0xc8a77338,0x265f,0x4de5,0xaa,0x25,0xc7,0xda,0x1c,0xe5,0xa8,0xf4); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c8a77338-265f-4de5-aa25-c7da1ce5a8f4") + _ISystemMonitorUnion : public IUnknown + { + public: + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Appearance( + /* [retval][out] */ __RPC__out INT *iAppearance) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Appearance( + /* [in] */ INT iAppearance) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BackColor( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_BackColor( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BorderStyle( + /* [retval][out] */ __RPC__out INT *iBorderStyle) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_BorderStyle( + /* [in] */ INT iBorderStyle) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ForeColor( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_ForeColor( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Font( + /* [retval][out] */ __RPC__deref_out_opt IFontDisp **ppFont) = 0; + + virtual /* [propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Font( + /* [in] */ __RPC__in_opt IFontDisp *pFont) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Counters( + /* [retval][out] */ __RPC__deref_out_opt ICounters **ppICounters) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowVerticalGrid( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowVerticalGrid( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowHorizontalGrid( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowHorizontalGrid( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowLegend( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowLegend( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowScaleLabels( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowScaleLabels( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowValueBar( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowValueBar( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MaximumScale( + /* [in] */ INT iValue) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_MaximumScale( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MinimumScale( + /* [in] */ INT iValue) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_MinimumScale( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_UpdateInterval( + /* [in] */ FLOAT fValue) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_UpdateInterval( + /* [retval][out] */ __RPC__out FLOAT *pfValue) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_DisplayType( + /* [in] */ DisplayTypeConstants eDisplayType) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_DisplayType( + /* [retval][out] */ __RPC__out DisplayTypeConstants *peDisplayType) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ManualUpdate( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ManualUpdate( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_GraphTitle( + /* [in] */ __RPC__in BSTR bsTitle) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_GraphTitle( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbsTitle) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_YAxisLabel( + /* [in] */ __RPC__in BSTR bsTitle) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_YAxisLabel( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbsTitle) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CollectSample( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UpdateGraph( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE BrowseCounters( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DisplayProperties( void) = 0; + + virtual /* [hidden][id] */ HRESULT STDMETHODCALLTYPE Counter( + /* [in] */ INT iIndex, + /* [out] */ __RPC__deref_out_opt ICounterItem **ppICounter) = 0; + + virtual /* [hidden][id] */ HRESULT STDMETHODCALLTYPE AddCounter( + /* [in] */ __RPC__in BSTR bsPath, + /* [out] */ __RPC__deref_out_opt ICounterItem **ppICounter) = 0; + + virtual /* [hidden][id] */ HRESULT STDMETHODCALLTYPE DeleteCounter( + /* [in] */ __RPC__in_opt ICounterItem *pCtr) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BackColorCtl( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_BackColorCtl( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_LogFileName( + /* [in] */ __RPC__in BSTR bsFileName) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LogFileName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsFileName) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_LogViewStart( + /* [in] */ DATE StartTime) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LogViewStart( + /* [retval][out] */ __RPC__out DATE *StartTime) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_LogViewStop( + /* [in] */ DATE StopTime) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LogViewStop( + /* [retval][out] */ __RPC__out DATE *StopTime) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_GridColor( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_GridColor( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_TimeBarColor( + /* [retval][out] */ __RPC__out OLE_COLOR *pColor) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_TimeBarColor( + /* [in] */ OLE_COLOR Color) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Highlight( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Highlight( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowToolbar( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowToolbar( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Paste( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Copy( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ReadOnly( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ReadOnly( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ReportValueType( + /* [in] */ ReportValueTypeConstants eReportValueType) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ReportValueType( + /* [retval][out] */ __RPC__out ReportValueTypeConstants *peReportValueType) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MonitorDuplicateInstances( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_MonitorDuplicateInstances( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_DisplayFilter( + /* [in] */ INT iValue) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_DisplayFilter( + /* [retval][out] */ __RPC__out INT *piValue) = 0; + + virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_LogFiles( + /* [retval][out] */ __RPC__deref_out_opt ILogFiles **ppILogFiles) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_DataSourceType( + /* [in] */ DataSourceTypeConstants eDataSourceType) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_DataSourceType( + /* [retval][out] */ __RPC__out DataSourceTypeConstants *peDataSourceType) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SqlDsnName( + /* [in] */ __RPC__in BSTR bsSqlDsnName) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_SqlDsnName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsSqlDsnName) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SqlLogSetName( + /* [in] */ __RPC__in BSTR bsSqlLogSetName) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_SqlLogSetName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsSqlLogSetName) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_EnableDigitGrouping( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_EnableDigitGrouping( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_EnableToolTips( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_EnableToolTips( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ShowTimeAxisLabels( + /* [in] */ VARIANT_BOOL bState) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ShowTimeAxisLabels( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ChartScroll( + /* [in] */ VARIANT_BOOL bScroll) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_ChartScroll( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbScroll) = 0; + + virtual /* [helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_DataPointCount( + /* [in] */ INT iNewCount) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_DataPointCount( + /* [retval][out] */ __RPC__out INT *piDataPointCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ScaleToFit( + VARIANT_BOOL bSelectedCountersOnly) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveAs( + __RPC__in BSTR bstrFileName, + SysmonFileType eSysmonFileType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Relog( + __RPC__in BSTR bstrFileName, + SysmonFileType eSysmonFileType, + INT iFilter) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ClearData( void) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LogSourceStartTime( + /* [out] */ __RPC__out DATE *pDate) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_LogSourceStopTime( + /* [out] */ __RPC__out DATE *pDate) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetLogViewRange( + /* [in] */ DATE StartTime, + /* [in] */ DATE StopTime) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetLogViewRange( + /* [out] */ __RPC__out DATE *StartTime, + /* [out] */ __RPC__out DATE *StopTime) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE BatchingLock( + /* [in] */ VARIANT_BOOL fLock, + /* [in] */ SysmonBatchReason eBatchReason) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LoadSettings( + /* [in] */ __RPC__in BSTR bstrSettingFileName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct _ISystemMonitorUnionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ISystemMonitorUnion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ISystemMonitorUnion * This); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_Appearance) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Appearance )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out INT *iAppearance); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_Appearance) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Appearance )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ INT iAppearance); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_BackColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BackColor )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_BackColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BackColor )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_BorderStyle) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BorderStyle )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out INT *iBorderStyle); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_BorderStyle) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BorderStyle )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ INT iBorderStyle); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ForeColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ForeColor )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ForeColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ForeColor )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_Font) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Font )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__deref_out_opt IFontDisp **ppFont); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, putref_Font) + /* [propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Font )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ __RPC__in_opt IFontDisp *pFont); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_Counters) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Counters )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__deref_out_opt ICounters **ppICounters); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ShowVerticalGrid) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowVerticalGrid )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ShowVerticalGrid) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowVerticalGrid )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ShowHorizontalGrid) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowHorizontalGrid )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ShowHorizontalGrid) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowHorizontalGrid )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ShowLegend) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowLegend )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ShowLegend) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowLegend )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ShowScaleLabels) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowScaleLabels )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ShowScaleLabels) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowScaleLabels )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ShowValueBar) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowValueBar )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ShowValueBar) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowValueBar )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_MaximumScale) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaximumScale )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ INT iValue); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_MaximumScale) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaximumScale )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_MinimumScale) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MinimumScale )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ INT iValue); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_MinimumScale) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MinimumScale )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_UpdateInterval) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_UpdateInterval )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ FLOAT fValue); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_UpdateInterval) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_UpdateInterval )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out FLOAT *pfValue); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_DisplayType) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayType )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ DisplayTypeConstants eDisplayType); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_DisplayType) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayType )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out DisplayTypeConstants *peDisplayType); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ManualUpdate) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ManualUpdate )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ManualUpdate) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ManualUpdate )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_GraphTitle) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_GraphTitle )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ __RPC__in BSTR bsTitle); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_GraphTitle) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_GraphTitle )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbsTitle); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_YAxisLabel) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_YAxisLabel )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ __RPC__in BSTR bsTitle); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_YAxisLabel) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_YAxisLabel )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbsTitle); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, CollectSample) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CollectSample )( + __RPC__in _ISystemMonitorUnion * This); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, UpdateGraph) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateGraph )( + __RPC__in _ISystemMonitorUnion * This); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, BrowseCounters) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *BrowseCounters )( + __RPC__in _ISystemMonitorUnion * This); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, DisplayProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisplayProperties )( + __RPC__in _ISystemMonitorUnion * This); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, Counter) + /* [hidden][id] */ HRESULT ( STDMETHODCALLTYPE *Counter )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ INT iIndex, + /* [out] */ __RPC__deref_out_opt ICounterItem **ppICounter); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, AddCounter) + /* [hidden][id] */ HRESULT ( STDMETHODCALLTYPE *AddCounter )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ __RPC__in BSTR bsPath, + /* [out] */ __RPC__deref_out_opt ICounterItem **ppICounter); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, DeleteCounter) + /* [hidden][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteCounter )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ __RPC__in_opt ICounterItem *pCtr); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_BackColorCtl) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BackColorCtl )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_BackColorCtl) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BackColorCtl )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_LogFileName) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LogFileName )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ __RPC__in BSTR bsFileName); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_LogFileName) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogFileName )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsFileName); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_LogViewStart) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LogViewStart )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ DATE StartTime); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_LogViewStart) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogViewStart )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out DATE *StartTime); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_LogViewStop) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LogViewStop )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ DATE StopTime); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_LogViewStop) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogViewStop )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out DATE *StopTime); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_GridColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_GridColor )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_GridColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_GridColor )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_TimeBarColor) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_TimeBarColor )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pColor); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_TimeBarColor) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_TimeBarColor )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ OLE_COLOR Color); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_Highlight) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Highlight )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_Highlight) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Highlight )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ShowToolbar) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowToolbar )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ShowToolbar) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowToolbar )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, Paste) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Paste )( + __RPC__in _ISystemMonitorUnion * This); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, Copy) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Copy )( + __RPC__in _ISystemMonitorUnion * This); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, Reset) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in _ISystemMonitorUnion * This); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ReadOnly) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ReadOnly )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ReadOnly) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ReadOnly )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ReportValueType) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ReportValueType )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ ReportValueTypeConstants eReportValueType); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ReportValueType) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ReportValueType )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out ReportValueTypeConstants *peReportValueType); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_MonitorDuplicateInstances) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MonitorDuplicateInstances )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_MonitorDuplicateInstances) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MonitorDuplicateInstances )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_DisplayFilter) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayFilter )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ INT iValue); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_DisplayFilter) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayFilter )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out INT *piValue); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_LogFiles) + /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogFiles )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__deref_out_opt ILogFiles **ppILogFiles); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_DataSourceType) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataSourceType )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ DataSourceTypeConstants eDataSourceType); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_DataSourceType) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSourceType )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out DataSourceTypeConstants *peDataSourceType); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_SqlDsnName) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SqlDsnName )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ __RPC__in BSTR bsSqlDsnName); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_SqlDsnName) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SqlDsnName )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsSqlDsnName); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_SqlLogSetName) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SqlLogSetName )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ __RPC__in BSTR bsSqlLogSetName); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_SqlLogSetName) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SqlLogSetName )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bsSqlLogSetName); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_EnableDigitGrouping) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_EnableDigitGrouping )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_EnableDigitGrouping) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EnableDigitGrouping )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_EnableToolTips) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_EnableToolTips )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_EnableToolTips) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EnableToolTips )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ShowTimeAxisLabels) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ShowTimeAxisLabels )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ShowTimeAxisLabels) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ShowTimeAxisLabels )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbState); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_ChartScroll) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ChartScroll )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL bScroll); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_ChartScroll) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ChartScroll )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbScroll); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, put_DataPointCount) + /* [helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataPointCount )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ INT iNewCount); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_DataPointCount) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataPointCount )( + __RPC__in _ISystemMonitorUnion * This, + /* [retval][out] */ __RPC__out INT *piDataPointCount); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, ScaleToFit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ScaleToFit )( + __RPC__in _ISystemMonitorUnion * This, + VARIANT_BOOL bSelectedCountersOnly); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, SaveAs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveAs )( + __RPC__in _ISystemMonitorUnion * This, + __RPC__in BSTR bstrFileName, + SysmonFileType eSysmonFileType); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, Relog) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Relog )( + __RPC__in _ISystemMonitorUnion * This, + __RPC__in BSTR bstrFileName, + SysmonFileType eSysmonFileType, + INT iFilter); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, ClearData) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ClearData )( + __RPC__in _ISystemMonitorUnion * This); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_LogSourceStartTime) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogSourceStartTime )( + __RPC__in _ISystemMonitorUnion * This, + /* [out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, get_LogSourceStopTime) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LogSourceStopTime )( + __RPC__in _ISystemMonitorUnion * This, + /* [out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, SetLogViewRange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLogViewRange )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ DATE StartTime, + /* [in] */ DATE StopTime); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, GetLogViewRange) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetLogViewRange )( + __RPC__in _ISystemMonitorUnion * This, + /* [out] */ __RPC__out DATE *StartTime, + /* [out] */ __RPC__out DATE *StopTime); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, BatchingLock) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BatchingLock )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ VARIANT_BOOL fLock, + /* [in] */ SysmonBatchReason eBatchReason); + + DECLSPEC_XFGVIRT(_ISystemMonitorUnion, LoadSettings) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LoadSettings )( + __RPC__in _ISystemMonitorUnion * This, + /* [in] */ __RPC__in BSTR bstrSettingFileName); + + END_INTERFACE + } _ISystemMonitorUnionVtbl; + + interface _ISystemMonitorUnion + { + CONST_VTBL struct _ISystemMonitorUnionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define _ISystemMonitorUnion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define _ISystemMonitorUnion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define _ISystemMonitorUnion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define _ISystemMonitorUnion_get_Appearance(This,iAppearance) \ + ( (This)->lpVtbl -> get_Appearance(This,iAppearance) ) + +#define _ISystemMonitorUnion_put_Appearance(This,iAppearance) \ + ( (This)->lpVtbl -> put_Appearance(This,iAppearance) ) + +#define _ISystemMonitorUnion_get_BackColor(This,pColor) \ + ( (This)->lpVtbl -> get_BackColor(This,pColor) ) + +#define _ISystemMonitorUnion_put_BackColor(This,Color) \ + ( (This)->lpVtbl -> put_BackColor(This,Color) ) + +#define _ISystemMonitorUnion_get_BorderStyle(This,iBorderStyle) \ + ( (This)->lpVtbl -> get_BorderStyle(This,iBorderStyle) ) + +#define _ISystemMonitorUnion_put_BorderStyle(This,iBorderStyle) \ + ( (This)->lpVtbl -> put_BorderStyle(This,iBorderStyle) ) + +#define _ISystemMonitorUnion_get_ForeColor(This,pColor) \ + ( (This)->lpVtbl -> get_ForeColor(This,pColor) ) + +#define _ISystemMonitorUnion_put_ForeColor(This,Color) \ + ( (This)->lpVtbl -> put_ForeColor(This,Color) ) + +#define _ISystemMonitorUnion_get_Font(This,ppFont) \ + ( (This)->lpVtbl -> get_Font(This,ppFont) ) + +#define _ISystemMonitorUnion_putref_Font(This,pFont) \ + ( (This)->lpVtbl -> putref_Font(This,pFont) ) + +#define _ISystemMonitorUnion_get_Counters(This,ppICounters) \ + ( (This)->lpVtbl -> get_Counters(This,ppICounters) ) + +#define _ISystemMonitorUnion_put_ShowVerticalGrid(This,bState) \ + ( (This)->lpVtbl -> put_ShowVerticalGrid(This,bState) ) + +#define _ISystemMonitorUnion_get_ShowVerticalGrid(This,pbState) \ + ( (This)->lpVtbl -> get_ShowVerticalGrid(This,pbState) ) + +#define _ISystemMonitorUnion_put_ShowHorizontalGrid(This,bState) \ + ( (This)->lpVtbl -> put_ShowHorizontalGrid(This,bState) ) + +#define _ISystemMonitorUnion_get_ShowHorizontalGrid(This,pbState) \ + ( (This)->lpVtbl -> get_ShowHorizontalGrid(This,pbState) ) + +#define _ISystemMonitorUnion_put_ShowLegend(This,bState) \ + ( (This)->lpVtbl -> put_ShowLegend(This,bState) ) + +#define _ISystemMonitorUnion_get_ShowLegend(This,pbState) \ + ( (This)->lpVtbl -> get_ShowLegend(This,pbState) ) + +#define _ISystemMonitorUnion_put_ShowScaleLabels(This,bState) \ + ( (This)->lpVtbl -> put_ShowScaleLabels(This,bState) ) + +#define _ISystemMonitorUnion_get_ShowScaleLabels(This,pbState) \ + ( (This)->lpVtbl -> get_ShowScaleLabels(This,pbState) ) + +#define _ISystemMonitorUnion_put_ShowValueBar(This,bState) \ + ( (This)->lpVtbl -> put_ShowValueBar(This,bState) ) + +#define _ISystemMonitorUnion_get_ShowValueBar(This,pbState) \ + ( (This)->lpVtbl -> get_ShowValueBar(This,pbState) ) + +#define _ISystemMonitorUnion_put_MaximumScale(This,iValue) \ + ( (This)->lpVtbl -> put_MaximumScale(This,iValue) ) + +#define _ISystemMonitorUnion_get_MaximumScale(This,piValue) \ + ( (This)->lpVtbl -> get_MaximumScale(This,piValue) ) + +#define _ISystemMonitorUnion_put_MinimumScale(This,iValue) \ + ( (This)->lpVtbl -> put_MinimumScale(This,iValue) ) + +#define _ISystemMonitorUnion_get_MinimumScale(This,piValue) \ + ( (This)->lpVtbl -> get_MinimumScale(This,piValue) ) + +#define _ISystemMonitorUnion_put_UpdateInterval(This,fValue) \ + ( (This)->lpVtbl -> put_UpdateInterval(This,fValue) ) + +#define _ISystemMonitorUnion_get_UpdateInterval(This,pfValue) \ + ( (This)->lpVtbl -> get_UpdateInterval(This,pfValue) ) + +#define _ISystemMonitorUnion_put_DisplayType(This,eDisplayType) \ + ( (This)->lpVtbl -> put_DisplayType(This,eDisplayType) ) + +#define _ISystemMonitorUnion_get_DisplayType(This,peDisplayType) \ + ( (This)->lpVtbl -> get_DisplayType(This,peDisplayType) ) + +#define _ISystemMonitorUnion_put_ManualUpdate(This,bState) \ + ( (This)->lpVtbl -> put_ManualUpdate(This,bState) ) + +#define _ISystemMonitorUnion_get_ManualUpdate(This,pbState) \ + ( (This)->lpVtbl -> get_ManualUpdate(This,pbState) ) + +#define _ISystemMonitorUnion_put_GraphTitle(This,bsTitle) \ + ( (This)->lpVtbl -> put_GraphTitle(This,bsTitle) ) + +#define _ISystemMonitorUnion_get_GraphTitle(This,pbsTitle) \ + ( (This)->lpVtbl -> get_GraphTitle(This,pbsTitle) ) + +#define _ISystemMonitorUnion_put_YAxisLabel(This,bsTitle) \ + ( (This)->lpVtbl -> put_YAxisLabel(This,bsTitle) ) + +#define _ISystemMonitorUnion_get_YAxisLabel(This,pbsTitle) \ + ( (This)->lpVtbl -> get_YAxisLabel(This,pbsTitle) ) + +#define _ISystemMonitorUnion_CollectSample(This) \ + ( (This)->lpVtbl -> CollectSample(This) ) + +#define _ISystemMonitorUnion_UpdateGraph(This) \ + ( (This)->lpVtbl -> UpdateGraph(This) ) + +#define _ISystemMonitorUnion_BrowseCounters(This) \ + ( (This)->lpVtbl -> BrowseCounters(This) ) + +#define _ISystemMonitorUnion_DisplayProperties(This) \ + ( (This)->lpVtbl -> DisplayProperties(This) ) + +#define _ISystemMonitorUnion_Counter(This,iIndex,ppICounter) \ + ( (This)->lpVtbl -> Counter(This,iIndex,ppICounter) ) + +#define _ISystemMonitorUnion_AddCounter(This,bsPath,ppICounter) \ + ( (This)->lpVtbl -> AddCounter(This,bsPath,ppICounter) ) + +#define _ISystemMonitorUnion_DeleteCounter(This,pCtr) \ + ( (This)->lpVtbl -> DeleteCounter(This,pCtr) ) + +#define _ISystemMonitorUnion_get_BackColorCtl(This,pColor) \ + ( (This)->lpVtbl -> get_BackColorCtl(This,pColor) ) + +#define _ISystemMonitorUnion_put_BackColorCtl(This,Color) \ + ( (This)->lpVtbl -> put_BackColorCtl(This,Color) ) + +#define _ISystemMonitorUnion_put_LogFileName(This,bsFileName) \ + ( (This)->lpVtbl -> put_LogFileName(This,bsFileName) ) + +#define _ISystemMonitorUnion_get_LogFileName(This,bsFileName) \ + ( (This)->lpVtbl -> get_LogFileName(This,bsFileName) ) + +#define _ISystemMonitorUnion_put_LogViewStart(This,StartTime) \ + ( (This)->lpVtbl -> put_LogViewStart(This,StartTime) ) + +#define _ISystemMonitorUnion_get_LogViewStart(This,StartTime) \ + ( (This)->lpVtbl -> get_LogViewStart(This,StartTime) ) + +#define _ISystemMonitorUnion_put_LogViewStop(This,StopTime) \ + ( (This)->lpVtbl -> put_LogViewStop(This,StopTime) ) + +#define _ISystemMonitorUnion_get_LogViewStop(This,StopTime) \ + ( (This)->lpVtbl -> get_LogViewStop(This,StopTime) ) + +#define _ISystemMonitorUnion_get_GridColor(This,pColor) \ + ( (This)->lpVtbl -> get_GridColor(This,pColor) ) + +#define _ISystemMonitorUnion_put_GridColor(This,Color) \ + ( (This)->lpVtbl -> put_GridColor(This,Color) ) + +#define _ISystemMonitorUnion_get_TimeBarColor(This,pColor) \ + ( (This)->lpVtbl -> get_TimeBarColor(This,pColor) ) + +#define _ISystemMonitorUnion_put_TimeBarColor(This,Color) \ + ( (This)->lpVtbl -> put_TimeBarColor(This,Color) ) + +#define _ISystemMonitorUnion_get_Highlight(This,pbState) \ + ( (This)->lpVtbl -> get_Highlight(This,pbState) ) + +#define _ISystemMonitorUnion_put_Highlight(This,bState) \ + ( (This)->lpVtbl -> put_Highlight(This,bState) ) + +#define _ISystemMonitorUnion_get_ShowToolbar(This,pbState) \ + ( (This)->lpVtbl -> get_ShowToolbar(This,pbState) ) + +#define _ISystemMonitorUnion_put_ShowToolbar(This,bState) \ + ( (This)->lpVtbl -> put_ShowToolbar(This,bState) ) + +#define _ISystemMonitorUnion_Paste(This) \ + ( (This)->lpVtbl -> Paste(This) ) + +#define _ISystemMonitorUnion_Copy(This) \ + ( (This)->lpVtbl -> Copy(This) ) + +#define _ISystemMonitorUnion_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define _ISystemMonitorUnion_put_ReadOnly(This,bState) \ + ( (This)->lpVtbl -> put_ReadOnly(This,bState) ) + +#define _ISystemMonitorUnion_get_ReadOnly(This,pbState) \ + ( (This)->lpVtbl -> get_ReadOnly(This,pbState) ) + +#define _ISystemMonitorUnion_put_ReportValueType(This,eReportValueType) \ + ( (This)->lpVtbl -> put_ReportValueType(This,eReportValueType) ) + +#define _ISystemMonitorUnion_get_ReportValueType(This,peReportValueType) \ + ( (This)->lpVtbl -> get_ReportValueType(This,peReportValueType) ) + +#define _ISystemMonitorUnion_put_MonitorDuplicateInstances(This,bState) \ + ( (This)->lpVtbl -> put_MonitorDuplicateInstances(This,bState) ) + +#define _ISystemMonitorUnion_get_MonitorDuplicateInstances(This,pbState) \ + ( (This)->lpVtbl -> get_MonitorDuplicateInstances(This,pbState) ) + +#define _ISystemMonitorUnion_put_DisplayFilter(This,iValue) \ + ( (This)->lpVtbl -> put_DisplayFilter(This,iValue) ) + +#define _ISystemMonitorUnion_get_DisplayFilter(This,piValue) \ + ( (This)->lpVtbl -> get_DisplayFilter(This,piValue) ) + +#define _ISystemMonitorUnion_get_LogFiles(This,ppILogFiles) \ + ( (This)->lpVtbl -> get_LogFiles(This,ppILogFiles) ) + +#define _ISystemMonitorUnion_put_DataSourceType(This,eDataSourceType) \ + ( (This)->lpVtbl -> put_DataSourceType(This,eDataSourceType) ) + +#define _ISystemMonitorUnion_get_DataSourceType(This,peDataSourceType) \ + ( (This)->lpVtbl -> get_DataSourceType(This,peDataSourceType) ) + +#define _ISystemMonitorUnion_put_SqlDsnName(This,bsSqlDsnName) \ + ( (This)->lpVtbl -> put_SqlDsnName(This,bsSqlDsnName) ) + +#define _ISystemMonitorUnion_get_SqlDsnName(This,bsSqlDsnName) \ + ( (This)->lpVtbl -> get_SqlDsnName(This,bsSqlDsnName) ) + +#define _ISystemMonitorUnion_put_SqlLogSetName(This,bsSqlLogSetName) \ + ( (This)->lpVtbl -> put_SqlLogSetName(This,bsSqlLogSetName) ) + +#define _ISystemMonitorUnion_get_SqlLogSetName(This,bsSqlLogSetName) \ + ( (This)->lpVtbl -> get_SqlLogSetName(This,bsSqlLogSetName) ) + +#define _ISystemMonitorUnion_put_EnableDigitGrouping(This,bState) \ + ( (This)->lpVtbl -> put_EnableDigitGrouping(This,bState) ) + +#define _ISystemMonitorUnion_get_EnableDigitGrouping(This,pbState) \ + ( (This)->lpVtbl -> get_EnableDigitGrouping(This,pbState) ) + +#define _ISystemMonitorUnion_put_EnableToolTips(This,bState) \ + ( (This)->lpVtbl -> put_EnableToolTips(This,bState) ) + +#define _ISystemMonitorUnion_get_EnableToolTips(This,pbState) \ + ( (This)->lpVtbl -> get_EnableToolTips(This,pbState) ) + +#define _ISystemMonitorUnion_put_ShowTimeAxisLabels(This,bState) \ + ( (This)->lpVtbl -> put_ShowTimeAxisLabels(This,bState) ) + +#define _ISystemMonitorUnion_get_ShowTimeAxisLabels(This,pbState) \ + ( (This)->lpVtbl -> get_ShowTimeAxisLabels(This,pbState) ) + +#define _ISystemMonitorUnion_put_ChartScroll(This,bScroll) \ + ( (This)->lpVtbl -> put_ChartScroll(This,bScroll) ) + +#define _ISystemMonitorUnion_get_ChartScroll(This,pbScroll) \ + ( (This)->lpVtbl -> get_ChartScroll(This,pbScroll) ) + +#define _ISystemMonitorUnion_put_DataPointCount(This,iNewCount) \ + ( (This)->lpVtbl -> put_DataPointCount(This,iNewCount) ) + +#define _ISystemMonitorUnion_get_DataPointCount(This,piDataPointCount) \ + ( (This)->lpVtbl -> get_DataPointCount(This,piDataPointCount) ) + +#define _ISystemMonitorUnion_ScaleToFit(This,bSelectedCountersOnly) \ + ( (This)->lpVtbl -> ScaleToFit(This,bSelectedCountersOnly) ) + +#define _ISystemMonitorUnion_SaveAs(This,bstrFileName,eSysmonFileType) \ + ( (This)->lpVtbl -> SaveAs(This,bstrFileName,eSysmonFileType) ) + +#define _ISystemMonitorUnion_Relog(This,bstrFileName,eSysmonFileType,iFilter) \ + ( (This)->lpVtbl -> Relog(This,bstrFileName,eSysmonFileType,iFilter) ) + +#define _ISystemMonitorUnion_ClearData(This) \ + ( (This)->lpVtbl -> ClearData(This) ) + +#define _ISystemMonitorUnion_get_LogSourceStartTime(This,pDate) \ + ( (This)->lpVtbl -> get_LogSourceStartTime(This,pDate) ) + +#define _ISystemMonitorUnion_get_LogSourceStopTime(This,pDate) \ + ( (This)->lpVtbl -> get_LogSourceStopTime(This,pDate) ) + +#define _ISystemMonitorUnion_SetLogViewRange(This,StartTime,StopTime) \ + ( (This)->lpVtbl -> SetLogViewRange(This,StartTime,StopTime) ) + +#define _ISystemMonitorUnion_GetLogViewRange(This,StartTime,StopTime) \ + ( (This)->lpVtbl -> GetLogViewRange(This,StartTime,StopTime) ) + +#define _ISystemMonitorUnion_BatchingLock(This,fLock,eBatchReason) \ + ( (This)->lpVtbl -> BatchingLock(This,fLock,eBatchReason) ) + +#define _ISystemMonitorUnion_LoadSettings(This,bstrSettingFileName) \ + ( (This)->lpVtbl -> LoadSettings(This,bstrSettingFileName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* ___ISystemMonitorUnion_INTERFACE_DEFINED__ */ + + +#ifndef __DISystemMonitor_DISPINTERFACE_DEFINED__ +#define __DISystemMonitor_DISPINTERFACE_DEFINED__ + +/* dispinterface DISystemMonitor */ +/* [helpstring][hidden][uuid] */ + + +DEFINE_GUID(DIID_DISystemMonitor,0x13D73D81,0xC32E,0x11cf,0x93,0x98,0x00,0xAA,0x00,0xA3,0xDD,0xEA); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("13D73D81-C32E-11cf-9398-00AA00A3DDEA") + DISystemMonitor : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct DISystemMonitorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DISystemMonitor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DISystemMonitor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DISystemMonitor * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DISystemMonitor * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DISystemMonitor * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DISystemMonitor * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DISystemMonitor * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } DISystemMonitorVtbl; + + interface DISystemMonitor + { + CONST_VTBL struct DISystemMonitorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DISystemMonitor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DISystemMonitor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DISystemMonitor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DISystemMonitor_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DISystemMonitor_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DISystemMonitor_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DISystemMonitor_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __DISystemMonitor_DISPINTERFACE_DEFINED__ */ + + +#ifndef __DISystemMonitorInternal_DISPINTERFACE_DEFINED__ +#define __DISystemMonitorInternal_DISPINTERFACE_DEFINED__ + +/* dispinterface DISystemMonitorInternal */ +/* [helpstring][hidden][uuid] */ + + +DEFINE_GUID(DIID_DISystemMonitorInternal,0x194EB242,0xC32C,0x11cf,0x93,0x98,0x00,0xAA,0x00,0xA3,0xDD,0xEA); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("194EB242-C32C-11cf-9398-00AA00A3DDEA") + DISystemMonitorInternal : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct DISystemMonitorInternalVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DISystemMonitorInternal * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DISystemMonitorInternal * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DISystemMonitorInternal * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DISystemMonitorInternal * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DISystemMonitorInternal * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DISystemMonitorInternal * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DISystemMonitorInternal * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } DISystemMonitorInternalVtbl; + + interface DISystemMonitorInternal + { + CONST_VTBL struct DISystemMonitorInternalVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DISystemMonitorInternal_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DISystemMonitorInternal_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DISystemMonitorInternal_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DISystemMonitorInternal_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DISystemMonitorInternal_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DISystemMonitorInternal_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DISystemMonitorInternal_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __DISystemMonitorInternal_DISPINTERFACE_DEFINED__ */ + + +#ifndef __ISystemMonitorEvents_INTERFACE_DEFINED__ +#define __ISystemMonitorEvents_INTERFACE_DEFINED__ + +/* interface ISystemMonitorEvents */ +/* [object][helpstring][uuid] */ + + +DEFINE_GUID(IID_ISystemMonitorEvents,0xEE660EA0,0x4ABD,0x11cf,0x94,0x3A,0x00,0x80,0x29,0x00,0x43,0x47); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EE660EA0-4ABD-11cf-943A-008029004347") + ISystemMonitorEvents : public IUnknown + { + public: + virtual /* [helpstring][id] */ void STDMETHODCALLTYPE OnCounterSelected( + /* [in] */ INT Index) = 0; + + virtual /* [helpstring][id] */ void STDMETHODCALLTYPE OnCounterAdded( + /* [in] */ INT Index) = 0; + + virtual /* [helpstring][id] */ void STDMETHODCALLTYPE OnCounterDeleted( + /* [in] */ INT Index) = 0; + + virtual /* [helpstring][id] */ void STDMETHODCALLTYPE OnSampleCollected( void) = 0; + + virtual /* [helpstring][id] */ void STDMETHODCALLTYPE OnDblClick( + /* [in] */ INT Index) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISystemMonitorEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISystemMonitorEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISystemMonitorEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISystemMonitorEvents * This); + + DECLSPEC_XFGVIRT(ISystemMonitorEvents, OnCounterSelected) + /* [helpstring][id] */ void ( STDMETHODCALLTYPE *OnCounterSelected )( + __RPC__in ISystemMonitorEvents * This, + /* [in] */ INT Index); + + DECLSPEC_XFGVIRT(ISystemMonitorEvents, OnCounterAdded) + /* [helpstring][id] */ void ( STDMETHODCALLTYPE *OnCounterAdded )( + __RPC__in ISystemMonitorEvents * This, + /* [in] */ INT Index); + + DECLSPEC_XFGVIRT(ISystemMonitorEvents, OnCounterDeleted) + /* [helpstring][id] */ void ( STDMETHODCALLTYPE *OnCounterDeleted )( + __RPC__in ISystemMonitorEvents * This, + /* [in] */ INT Index); + + DECLSPEC_XFGVIRT(ISystemMonitorEvents, OnSampleCollected) + /* [helpstring][id] */ void ( STDMETHODCALLTYPE *OnSampleCollected )( + __RPC__in ISystemMonitorEvents * This); + + DECLSPEC_XFGVIRT(ISystemMonitorEvents, OnDblClick) + /* [helpstring][id] */ void ( STDMETHODCALLTYPE *OnDblClick )( + __RPC__in ISystemMonitorEvents * This, + /* [in] */ INT Index); + + END_INTERFACE + } ISystemMonitorEventsVtbl; + + interface ISystemMonitorEvents + { + CONST_VTBL struct ISystemMonitorEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISystemMonitorEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISystemMonitorEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISystemMonitorEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISystemMonitorEvents_OnCounterSelected(This,Index) \ + ( (This)->lpVtbl -> OnCounterSelected(This,Index) ) + +#define ISystemMonitorEvents_OnCounterAdded(This,Index) \ + ( (This)->lpVtbl -> OnCounterAdded(This,Index) ) + +#define ISystemMonitorEvents_OnCounterDeleted(This,Index) \ + ( (This)->lpVtbl -> OnCounterDeleted(This,Index) ) + +#define ISystemMonitorEvents_OnSampleCollected(This) \ + ( (This)->lpVtbl -> OnSampleCollected(This) ) + +#define ISystemMonitorEvents_OnDblClick(This,Index) \ + ( (This)->lpVtbl -> OnDblClick(This,Index) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISystemMonitorEvents_INTERFACE_DEFINED__ */ + + +#ifndef __DISystemMonitorEvents_DISPINTERFACE_DEFINED__ +#define __DISystemMonitorEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface DISystemMonitorEvents */ +/* [helpstring][uuid] */ + + +DEFINE_GUID(DIID_DISystemMonitorEvents,0x84979930,0x4AB3,0x11cf,0x94,0x3A,0x00,0x80,0x29,0x00,0x43,0x47); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("84979930-4AB3-11cf-943A-008029004347") + DISystemMonitorEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct DISystemMonitorEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DISystemMonitorEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DISystemMonitorEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DISystemMonitorEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DISystemMonitorEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DISystemMonitorEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DISystemMonitorEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DISystemMonitorEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } DISystemMonitorEventsVtbl; + + interface DISystemMonitorEvents + { + CONST_VTBL struct DISystemMonitorEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DISystemMonitorEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DISystemMonitorEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DISystemMonitorEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DISystemMonitorEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DISystemMonitorEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DISystemMonitorEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DISystemMonitorEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __DISystemMonitorEvents_DISPINTERFACE_DEFINED__ */ + + +DEFINE_GUID(CLSID_SystemMonitor,0xC4D2D8E0,0xD1DD,0x11ce,0x94,0x0F,0x00,0x80,0x29,0x00,0x43,0x47); + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4D2D8E0-D1DD-11ce-940F-008029004347") +SystemMonitor; +#endif + +DEFINE_GUID(CLSID_CounterItem,0xC4D2D8E0,0xD1DD,0x11ce,0x94,0x0F,0x00,0x80,0x29,0x00,0x43,0x48); + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4D2D8E0-D1DD-11ce-940F-008029004348") +CounterItem; +#endif + +DEFINE_GUID(CLSID_Counters,0xB2B066D2,0x2AAC,0x11cf,0x94,0x2F,0x00,0x80,0x29,0x00,0x43,0x47); + +#ifdef __cplusplus + +class DECLSPEC_UUID("B2B066D2-2AAC-11cf-942F-008029004347") +Counters; +#endif + +DEFINE_GUID(CLSID_LogFileItem,0x16EC5BE8,0xDF93,0x4237,0x94,0xE4,0x9E,0xE9,0x18,0x11,0x1D,0x71); + +#ifdef __cplusplus + +class DECLSPEC_UUID("16EC5BE8-DF93-4237-94E4-9EE918111D71") +LogFileItem; +#endif + +DEFINE_GUID(CLSID_LogFiles,0x2735D9FD,0xF6B9,0x4f19,0xA5,0xD9,0xE2,0xD0,0x68,0x58,0x4B,0xC5); + +#ifdef __cplusplus + +class DECLSPEC_UUID("2735D9FD-F6B9-4f19-A5D9-E2D068584BC5") +LogFiles; +#endif + +DEFINE_GUID(CLSID_CounterItem2,0x43196c62,0xc31f,0x4ce3,0xa0,0x2e,0x79,0xef,0xe0,0xf6,0xa5,0x25); + +#ifdef __cplusplus + +class DECLSPEC_UUID("43196c62-c31f-4ce3-a02e-79efe0f6a525") +CounterItem2; +#endif + +DEFINE_GUID(CLSID_SystemMonitor2,0x7f30578c,0x5f38,0x4612,0xac,0xfe,0x6e,0xd0,0x4c,0x7b,0x7a,0xf8); + +#ifdef __cplusplus + +class DECLSPEC_UUID("7f30578c-5f38-4612-acfe-6ed04c7b7af8") +SystemMonitor2; +#endif + +DEFINE_GUID(CLSID_AppearPropPage,0xe49741e9,0x93a8,0x4ab1,0x8e,0x96,0xbf,0x44,0x82,0x28,0x2e,0x9c); + +#ifdef __cplusplus + +class DECLSPEC_UUID("e49741e9-93a8-4ab1-8e96-bf4482282e9c") +AppearPropPage; +#endif + +DEFINE_GUID(CLSID_GeneralPropPage,0xC3E5D3D2,0x1A03,0x11CF,0x94,0x2D,0x00,0x80,0x29,0x00,0x43,0x47); + +#ifdef __cplusplus + +class DECLSPEC_UUID("C3E5D3D2-1A03-11CF-942D-008029004347") +GeneralPropPage; +#endif + +DEFINE_GUID(CLSID_GraphPropPage,0xC3E5D3D3,0x1A03,0x11CF,0x94,0x2D,0x00,0x80,0x29,0x00,0x43,0x47); + +#ifdef __cplusplus + +class DECLSPEC_UUID("C3E5D3D3-1A03-11CF-942D-008029004347") +GraphPropPage; +#endif + +DEFINE_GUID(CLSID_SourcePropPage,0x0CF32AA1,0x7571,0x11D0,0x93,0xC4,0x00,0xAA,0x00,0xA3,0xDD,0xEA); + +#ifdef __cplusplus + +class DECLSPEC_UUID("0CF32AA1-7571-11D0-93C4-00AA00A3DDEA") +SourcePropPage; +#endif + +DEFINE_GUID(CLSID_CounterPropPage,0xCF948561,0xEDE8,0x11CE,0x94,0x1E,0x00,0x80,0x29,0x00,0x43,0x47); + +#ifdef __cplusplus + +class DECLSPEC_UUID("CF948561-EDE8-11CE-941E-008029004347") +CounterPropPage; +#endif +#endif /* __SystemMonitor_LIBRARY_DEFINED__ */ + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iadmext.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iadmext.h new file mode 100644 index 0000000000000000000000000000000000000000..3e538577286882f1defe650fc816f6ae3b076ecd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iadmext.h @@ -0,0 +1,118 @@ + +/**********************************************************************/ +/** Microsoft Windows NT **/ +/** Copyright(c) Microsoft Corp., 1997-1999 **/ +/**********************************************************************/ + +/* + iadmext.h + + This module contains the interface for extensions to the IISADMIN service. + + + FILE HISTORY: + 7/8/97 michth created +*/ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __iadmext_h__ +#define __iadmext_h__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C"{ +#endif + + + +/* header files for imported files */ +#include "unknwn.h" +#include "objidl.h" +#include "ocidl.h" + +/* +The Main Interface. All extensions must support this interface. +*/ +// {51DFE970-F6F2-11d0-B9BD-00A0C922E750} +DEFINE_GUID(IID_IADMEXT, 0x51dfe970, 0xf6f2, 0x11d0, 0xb9, 0xbd, 0x0, 0xa0, 0xc9, 0x22, 0xe7, 0x50); + +/* +InProcess COM Registration. All extensions must write a subkey name by the +CLSID for the above interface under this key in the Registry. +*/ +#define IISADMIN_EXTENSIONS_REG_KEYA "SOFTWARE\\Microsoft\\InetStp\\Extensions" +#define IISADMIN_EXTENSIONS_REG_KEYW L"SOFTWARE\\Microsoft\\InetStp\\Extensions" +#define IISADMIN_EXTENSIONS_REG_KEY TEXT("SOFTWARE\\Microsoft\\InetStp\\Extensions") + +/* +DCOM Registration. CLSIDS for the DCOM interface provided by these extensions will +be written to this key and ID by IISADMIN as a multisz property. + +This is intended for use by other applications which need to find out what classid's are +registered. +*/ + +#define IISADMIN_EXTENSIONS_CLSID_MD_KEYA "LM/IISADMIN/EXTENSIONS/DCOMCLSIDS" +#define IISADMIN_EXTENSIONS_CLSID_MD_KEYW L"LM/IISADMIN/EXTENSIONS/DCOMCLSIDS" +#define IISADMIN_EXTENSIONS_CLSID_MD_KEY TEXT("LM/IISADMIN/EXTENSIONS/DCOMCLSIDS") +#define IISADMIN_EXTENSIONS_CLSID_MD_ID MD_IISADMIN_EXTENSIONS + +#ifndef __IADMEXT_INTERFACE_DEFINED__ +#define __IADMEXT_INTERFACE_DEFINED__ + + +EXTERN_C const IID IID_IADMEXT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + interface IADMEXT : public IUnknown + { + public: + // + // All methods below will be called under a thread which has called + // CoInitializeEx(NULL, COINIT_MULTITHREADED). + // + // The IMSAdminBase Object will be available during all of these calls. + // + + // + // Initialize will be called by IISADMIN when it initializes. + // + virtual HRESULT STDMETHODCALLTYPE Initialize(void) = 0; + + // + // EnumDcomCLSIDs will be called by IISADMIN when it initializes, + // and the returned CLSIDs will be written to the metabase at + // the path IISADMIN_EXTENSIONS_CLSID_MD_KEY. + // + virtual HRESULT STDMETHODCALLTYPE EnumDcomCLSIDs( + /* [size_is][out] */ CLSID *pclsidDcom, + /* [in] */ DWORD dwEnumIndex) = 0; + + // + // Terminate will be called by IISADMIN when it terminates. + // + virtual HRESULT STDMETHODCALLTYPE Terminate(void) = 0; + + }; + +#else /* C style interface */ +#endif +#endif /* __IADMEXT_INTERFACE_DEFINED__ */ + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __iadmext_h__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iadmw.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iadmw.h new file mode 100644 index 0000000000000000000000000000000000000000..f5312fd46838982130822c416586d55783c26a02 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iadmw.h @@ -0,0 +1,2237 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __iadmw_h__ +#define __iadmw_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IMSAdminBaseW_FWD_DEFINED__ +#define __IMSAdminBaseW_FWD_DEFINED__ +typedef interface IMSAdminBaseW IMSAdminBaseW; + +#endif /* __IMSAdminBaseW_FWD_DEFINED__ */ + + +#ifndef __IMSAdminBase2W_FWD_DEFINED__ +#define __IMSAdminBase2W_FWD_DEFINED__ +typedef interface IMSAdminBase2W IMSAdminBase2W; + +#endif /* __IMSAdminBase2W_FWD_DEFINED__ */ + + +#ifndef __IMSAdminBase3W_FWD_DEFINED__ +#define __IMSAdminBase3W_FWD_DEFINED__ +typedef interface IMSAdminBase3W IMSAdminBase3W; + +#endif /* __IMSAdminBase3W_FWD_DEFINED__ */ + + +#ifndef __IMSImpExpHelpW_FWD_DEFINED__ +#define __IMSImpExpHelpW_FWD_DEFINED__ +typedef interface IMSImpExpHelpW IMSImpExpHelpW; + +#endif /* __IMSImpExpHelpW_FWD_DEFINED__ */ + + +#ifndef __IMSAdminBaseSinkW_FWD_DEFINED__ +#define __IMSAdminBaseSinkW_FWD_DEFINED__ +typedef interface IMSAdminBaseSinkW IMSAdminBaseSinkW; + +#endif /* __IMSAdminBaseSinkW_FWD_DEFINED__ */ + + +#ifndef __AsyncIMSAdminBaseSinkW_FWD_DEFINED__ +#define __AsyncIMSAdminBaseSinkW_FWD_DEFINED__ +typedef interface AsyncIMSAdminBaseSinkW AsyncIMSAdminBaseSinkW; + +#endif /* __AsyncIMSAdminBaseSinkW_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "mddefw.h" +#include "objidl.h" +#include "ocidl.h" + + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_iadmw_0000_0000 */ +/* [local] */ + +/*++ + +Copyright (c) 1997-1999 Microsoft Corporation + +Module Name: iadmw.h + + Admin Objects Interfaces + +--*/ +#ifndef _ADM_IADMW_ +#define _ADM_IADMW_ +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include +#include +/* + Error Codes + + Admin api's all return HRESULTS. Since internal results are either + winerrors or Metadata specific return codes (see mdmsg.h), they are + converted to HRESULTS using the RETURNCODETOHRESULT macro (see + commsg.h). +*/ + +/* + Max Name Length + The maximum number of characters in the length of a metaobject name, + including the terminating NULL. This refers to each node in the tree, + not the entire path. + eg. strlen("Root") < ADMINDATA_MAX_NAME_LEN +*/ +#define ADMINDATA_MAX_NAME_LEN 256 + +#define CLSID_MSAdminBase CLSID_MSAdminBase_W +#define IID_IMSAdminBase IID_IMSAdminBase_W +#define IMSAdminBase IMSAdminBaseW +#define IID_IMSAdminBase2 IID_IMSAdminBase2_W +#define IMSAdminBase2 IMSAdminBase2W +#define IID_IMSAdminBase3 IID_IMSAdminBase3_W +#define IMSAdminBase3 IMSAdminBase3W +#define IMSAdminBaseSink IMSAdminBaseSinkW +#define IID_IMSAdminBaseSink IID_IMSAdminBaseSink_W +#define IMSImpExpHelp IMSImpExpHelpW +#define IID_IMSImpExpHelp IID_IMSImpExpHelp_W +#define GETAdminBaseCLSID GETAdminBaseCLSIDW + +#define AsyncIMSAdminBaseSink AsyncIMSAdminBaseSinkW +#define IID_AsyncIMSAdminBaseSink IID_AsyncIMSAdminBaseSink_W +DEFINE_GUID(CLSID_MSAdminBase_W, 0xa9e69610, 0xb80d, 0x11d0, 0xb9, 0xb9, 0x00, 0xa0, 0xc9, 0x22, 0xe7, 0x50); +DEFINE_GUID(IID_IMSAdminBase_W, 0x70b51430, 0xb6ca, 0x11d0, 0xb9, 0xb9, 0x00, 0xa0, 0xc9, 0x22, 0xe7, 0x50); +DEFINE_GUID(IID_IMSAdminBase2_W, 0x8298d101, 0xf992, 0x43b7, 0x8e, 0xca, 0x50, 0x52, 0xd8, 0x85, 0xb9, 0x95); +DEFINE_GUID(IID_IMSAdminBase3_W, 0xf612954d, 0x3b0b, 0x4c56, 0x95, 0x63, 0x22, 0x7b, 0x7b, 0xe6, 0x24, 0xb4); +DEFINE_GUID(IID_IMSImpExpHelp_W, 0x29ff67ff, 0x8050, 0x480f, 0x9f, 0x30, 0xcc, 0x41, 0x63, 0x5f, 0x2f, 0x9d); +DEFINE_GUID(IID_IMSAdminBaseSink_W, 0xa9e69612, 0xb80d, 0x11d0, 0xb9, 0xb9, 0x00, 0xa0, 0xc9, 0x22, 0xe7, 0x50); +DEFINE_GUID(IID_AsyncIMSAdminBaseSink_W, 0xa9e69613, 0xb80d, 0x11d0, 0xb9, 0xb9, 0x00, 0xa0, 0xc9, 0x22, 0xe7, 0x50); +#define GETAdminBaseCLSIDW(IsService) CLSID_MSAdminBase_W +/* +The Main Interface, UNICODE +*/ + + +extern RPC_IF_HANDLE __MIDL_itf_iadmw_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iadmw_0000_0000_v0_0_s_ifspec; + +#ifndef __IMSAdminBaseW_INTERFACE_DEFINED__ +#define __IMSAdminBaseW_INTERFACE_DEFINED__ + +/* interface IMSAdminBaseW */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IMSAdminBaseW; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("70B51430-B6CA-11d0-B9B9-00A0C922E750") + IMSAdminBaseW : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddKey( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteKey( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteChildKeys( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumKeys( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [size_is][out] */ __RPC__out_ecount_full(256) LPWSTR pszMDName, + /* [in] */ DWORD dwMDEnumObjectIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE CopyKey( + /* [in] */ METADATA_HANDLE hMDSourceHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDSourcePath, + /* [in] */ METADATA_HANDLE hMDDestHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDDestPath, + /* [in] */ BOOL bMDOverwriteFlag, + /* [in] */ BOOL bMDCopyFlag) = 0; + + virtual HRESULT STDMETHODCALLTYPE RenameKey( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDNewName) = 0; + + virtual /* [local] */ HRESULT STDMETHODCALLTYPE SetData( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [in] */ PMETADATA_RECORD pmdrMDData) = 0; + + virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetData( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [out][in] */ PMETADATA_RECORD pmdrMDData, + /* [out] */ DWORD *pdwMDRequiredDataLen) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteData( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDIdentifier, + /* [in] */ DWORD dwMDDataType) = 0; + + virtual /* [local] */ HRESULT STDMETHODCALLTYPE EnumData( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [out][in] */ PMETADATA_RECORD pmdrMDData, + /* [in] */ DWORD dwMDEnumDataIndex, + /* [out] */ DWORD *pdwMDRequiredDataLen) = 0; + + virtual /* [local] */ HRESULT STDMETHODCALLTYPE GetAllData( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [out] */ DWORD *pdwMDNumDataEntries, + /* [out] */ DWORD *pdwMDDataSetNumber, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][out] */ unsigned char *pbMDBuffer, + /* [out] */ DWORD *pdwMDRequiredBufferSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteAllData( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType) = 0; + + virtual HRESULT STDMETHODCALLTYPE CopyData( + /* [in] */ METADATA_HANDLE hMDSourceHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDSourcePath, + /* [in] */ METADATA_HANDLE hMDDestHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDDestPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [in] */ BOOL bMDCopyFlag) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataPaths( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDIdentifier, + /* [in] */ DWORD dwMDDataType, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][out] */ __RPC__out_ecount_full(dwMDBufferSize) WCHAR *pszBuffer, + /* [out] */ __RPC__out DWORD *pdwMDRequiredBufferSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenKey( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAccessRequested, + /* [in] */ DWORD dwMDTimeOut, + /* [out] */ __RPC__out PMETADATA_HANDLE phMDNewHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE CloseKey( + /* [in] */ METADATA_HANDLE hMDHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE ChangePermissions( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [in] */ DWORD dwMDTimeOut, + /* [in] */ DWORD dwMDAccessRequested) = 0; + + virtual HRESULT STDMETHODCALLTYPE SaveData( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHandleInfo( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [out] */ __RPC__out PMETADATA_HANDLE_INFO pmdhiInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSystemChangeNumber( + /* [out] */ __RPC__out DWORD *pdwSystemChangeNumber) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataSetNumber( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out] */ __RPC__out DWORD *pdwMDDataSetNumber) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetLastChangeTime( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ __RPC__in PFILETIME pftMDLastChangeTime, + /* [in] */ BOOL bLocalTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLastChangeTime( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out] */ __RPC__out PFILETIME pftMDLastChangeTime, + /* [in] */ BOOL bLocalTime) = 0; + + virtual /* [restricted][local] */ HRESULT STDMETHODCALLTYPE KeyExchangePhase1( void) = 0; + + virtual /* [restricted][local] */ HRESULT STDMETHODCALLTYPE KeyExchangePhase2( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Backup( + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE Restore( + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumBackups( + /* [size_is][out][in] */ __RPC__inout_ecount_full(256) LPWSTR pszMDBackupLocation, + /* [out] */ __RPC__out DWORD *pdwMDVersion, + /* [out] */ __RPC__out PFILETIME pftMDBackupTime, + /* [in] */ DWORD dwMDEnumIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteBackup( + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnmarshalInterface( + /* [out] */ __RPC__deref_out_opt IMSAdminBaseW **piadmbwInterface) = 0; + + virtual /* [restricted][local] */ HRESULT STDMETHODCALLTYPE GetServerGuid( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMSAdminBaseWVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMSAdminBaseW * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMSAdminBaseW * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, AddKey) + HRESULT ( STDMETHODCALLTYPE *AddKey )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteKey) + HRESULT ( STDMETHODCALLTYPE *DeleteKey )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteChildKeys) + HRESULT ( STDMETHODCALLTYPE *DeleteChildKeys )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, EnumKeys) + HRESULT ( STDMETHODCALLTYPE *EnumKeys )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [size_is][out] */ __RPC__out_ecount_full(256) LPWSTR pszMDName, + /* [in] */ DWORD dwMDEnumObjectIndex); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, CopyKey) + HRESULT ( STDMETHODCALLTYPE *CopyKey )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDSourceHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDSourcePath, + /* [in] */ METADATA_HANDLE hMDDestHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDDestPath, + /* [in] */ BOOL bMDOverwriteFlag, + /* [in] */ BOOL bMDCopyFlag); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, RenameKey) + HRESULT ( STDMETHODCALLTYPE *RenameKey )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDNewName); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, SetData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetData )( + IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [in] */ PMETADATA_RECORD pmdrMDData); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetData )( + IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [out][in] */ PMETADATA_RECORD pmdrMDData, + /* [out] */ DWORD *pdwMDRequiredDataLen); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteData) + HRESULT ( STDMETHODCALLTYPE *DeleteData )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDIdentifier, + /* [in] */ DWORD dwMDDataType); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, EnumData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *EnumData )( + IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [out][in] */ PMETADATA_RECORD pmdrMDData, + /* [in] */ DWORD dwMDEnumDataIndex, + /* [out] */ DWORD *pdwMDRequiredDataLen); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetAllData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetAllData )( + IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [out] */ DWORD *pdwMDNumDataEntries, + /* [out] */ DWORD *pdwMDDataSetNumber, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][out] */ unsigned char *pbMDBuffer, + /* [out] */ DWORD *pdwMDRequiredBufferSize); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteAllData) + HRESULT ( STDMETHODCALLTYPE *DeleteAllData )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, CopyData) + HRESULT ( STDMETHODCALLTYPE *CopyData )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDSourceHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDSourcePath, + /* [in] */ METADATA_HANDLE hMDDestHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDDestPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [in] */ BOOL bMDCopyFlag); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetDataPaths) + HRESULT ( STDMETHODCALLTYPE *GetDataPaths )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDIdentifier, + /* [in] */ DWORD dwMDDataType, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][out] */ __RPC__out_ecount_full(dwMDBufferSize) WCHAR *pszBuffer, + /* [out] */ __RPC__out DWORD *pdwMDRequiredBufferSize); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, OpenKey) + HRESULT ( STDMETHODCALLTYPE *OpenKey )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAccessRequested, + /* [in] */ DWORD dwMDTimeOut, + /* [out] */ __RPC__out PMETADATA_HANDLE phMDNewHandle); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, CloseKey) + HRESULT ( STDMETHODCALLTYPE *CloseKey )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, ChangePermissions) + HRESULT ( STDMETHODCALLTYPE *ChangePermissions )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [in] */ DWORD dwMDTimeOut, + /* [in] */ DWORD dwMDAccessRequested); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, SaveData) + HRESULT ( STDMETHODCALLTYPE *SaveData )( + __RPC__in IMSAdminBaseW * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetHandleInfo) + HRESULT ( STDMETHODCALLTYPE *GetHandleInfo )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [out] */ __RPC__out PMETADATA_HANDLE_INFO pmdhiInfo); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetSystemChangeNumber) + HRESULT ( STDMETHODCALLTYPE *GetSystemChangeNumber )( + __RPC__in IMSAdminBaseW * This, + /* [out] */ __RPC__out DWORD *pdwSystemChangeNumber); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetDataSetNumber) + HRESULT ( STDMETHODCALLTYPE *GetDataSetNumber )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out] */ __RPC__out DWORD *pdwMDDataSetNumber); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, SetLastChangeTime) + HRESULT ( STDMETHODCALLTYPE *SetLastChangeTime )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ __RPC__in PFILETIME pftMDLastChangeTime, + /* [in] */ BOOL bLocalTime); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetLastChangeTime) + HRESULT ( STDMETHODCALLTYPE *GetLastChangeTime )( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out] */ __RPC__out PFILETIME pftMDLastChangeTime, + /* [in] */ BOOL bLocalTime); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, KeyExchangePhase1) + /* [restricted][local] */ HRESULT ( STDMETHODCALLTYPE *KeyExchangePhase1 )( + IMSAdminBaseW * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, KeyExchangePhase2) + /* [restricted][local] */ HRESULT ( STDMETHODCALLTYPE *KeyExchangePhase2 )( + IMSAdminBaseW * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, Backup) + HRESULT ( STDMETHODCALLTYPE *Backup )( + __RPC__in IMSAdminBaseW * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, Restore) + HRESULT ( STDMETHODCALLTYPE *Restore )( + __RPC__in IMSAdminBaseW * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, EnumBackups) + HRESULT ( STDMETHODCALLTYPE *EnumBackups )( + __RPC__in IMSAdminBaseW * This, + /* [size_is][out][in] */ __RPC__inout_ecount_full(256) LPWSTR pszMDBackupLocation, + /* [out] */ __RPC__out DWORD *pdwMDVersion, + /* [out] */ __RPC__out PFILETIME pftMDBackupTime, + /* [in] */ DWORD dwMDEnumIndex); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteBackup) + HRESULT ( STDMETHODCALLTYPE *DeleteBackup )( + __RPC__in IMSAdminBaseW * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, UnmarshalInterface) + HRESULT ( STDMETHODCALLTYPE *UnmarshalInterface )( + __RPC__in IMSAdminBaseW * This, + /* [out] */ __RPC__deref_out_opt IMSAdminBaseW **piadmbwInterface); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetServerGuid) + /* [restricted][local] */ HRESULT ( STDMETHODCALLTYPE *GetServerGuid )( + IMSAdminBaseW * This); + + END_INTERFACE + } IMSAdminBaseWVtbl; + + interface IMSAdminBaseW + { + CONST_VTBL struct IMSAdminBaseWVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMSAdminBaseW_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMSAdminBaseW_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMSAdminBaseW_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMSAdminBaseW_AddKey(This,hMDHandle,pszMDPath) \ + ( (This)->lpVtbl -> AddKey(This,hMDHandle,pszMDPath) ) + +#define IMSAdminBaseW_DeleteKey(This,hMDHandle,pszMDPath) \ + ( (This)->lpVtbl -> DeleteKey(This,hMDHandle,pszMDPath) ) + +#define IMSAdminBaseW_DeleteChildKeys(This,hMDHandle,pszMDPath) \ + ( (This)->lpVtbl -> DeleteChildKeys(This,hMDHandle,pszMDPath) ) + +#define IMSAdminBaseW_EnumKeys(This,hMDHandle,pszMDPath,pszMDName,dwMDEnumObjectIndex) \ + ( (This)->lpVtbl -> EnumKeys(This,hMDHandle,pszMDPath,pszMDName,dwMDEnumObjectIndex) ) + +#define IMSAdminBaseW_CopyKey(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,bMDOverwriteFlag,bMDCopyFlag) \ + ( (This)->lpVtbl -> CopyKey(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,bMDOverwriteFlag,bMDCopyFlag) ) + +#define IMSAdminBaseW_RenameKey(This,hMDHandle,pszMDPath,pszMDNewName) \ + ( (This)->lpVtbl -> RenameKey(This,hMDHandle,pszMDPath,pszMDNewName) ) + +#define IMSAdminBaseW_SetData(This,hMDHandle,pszMDPath,pmdrMDData) \ + ( (This)->lpVtbl -> SetData(This,hMDHandle,pszMDPath,pmdrMDData) ) + +#define IMSAdminBaseW_GetData(This,hMDHandle,pszMDPath,pmdrMDData,pdwMDRequiredDataLen) \ + ( (This)->lpVtbl -> GetData(This,hMDHandle,pszMDPath,pmdrMDData,pdwMDRequiredDataLen) ) + +#define IMSAdminBaseW_DeleteData(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType) \ + ( (This)->lpVtbl -> DeleteData(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType) ) + +#define IMSAdminBaseW_EnumData(This,hMDHandle,pszMDPath,pmdrMDData,dwMDEnumDataIndex,pdwMDRequiredDataLen) \ + ( (This)->lpVtbl -> EnumData(This,hMDHandle,pszMDPath,pmdrMDData,dwMDEnumDataIndex,pdwMDRequiredDataLen) ) + +#define IMSAdminBaseW_GetAllData(This,hMDHandle,pszMDPath,dwMDAttributes,dwMDUserType,dwMDDataType,pdwMDNumDataEntries,pdwMDDataSetNumber,dwMDBufferSize,pbMDBuffer,pdwMDRequiredBufferSize) \ + ( (This)->lpVtbl -> GetAllData(This,hMDHandle,pszMDPath,dwMDAttributes,dwMDUserType,dwMDDataType,pdwMDNumDataEntries,pdwMDDataSetNumber,dwMDBufferSize,pbMDBuffer,pdwMDRequiredBufferSize) ) + +#define IMSAdminBaseW_DeleteAllData(This,hMDHandle,pszMDPath,dwMDUserType,dwMDDataType) \ + ( (This)->lpVtbl -> DeleteAllData(This,hMDHandle,pszMDPath,dwMDUserType,dwMDDataType) ) + +#define IMSAdminBaseW_CopyData(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,dwMDAttributes,dwMDUserType,dwMDDataType,bMDCopyFlag) \ + ( (This)->lpVtbl -> CopyData(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,dwMDAttributes,dwMDUserType,dwMDDataType,bMDCopyFlag) ) + +#define IMSAdminBaseW_GetDataPaths(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType,dwMDBufferSize,pszBuffer,pdwMDRequiredBufferSize) \ + ( (This)->lpVtbl -> GetDataPaths(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType,dwMDBufferSize,pszBuffer,pdwMDRequiredBufferSize) ) + +#define IMSAdminBaseW_OpenKey(This,hMDHandle,pszMDPath,dwMDAccessRequested,dwMDTimeOut,phMDNewHandle) \ + ( (This)->lpVtbl -> OpenKey(This,hMDHandle,pszMDPath,dwMDAccessRequested,dwMDTimeOut,phMDNewHandle) ) + +#define IMSAdminBaseW_CloseKey(This,hMDHandle) \ + ( (This)->lpVtbl -> CloseKey(This,hMDHandle) ) + +#define IMSAdminBaseW_ChangePermissions(This,hMDHandle,dwMDTimeOut,dwMDAccessRequested) \ + ( (This)->lpVtbl -> ChangePermissions(This,hMDHandle,dwMDTimeOut,dwMDAccessRequested) ) + +#define IMSAdminBaseW_SaveData(This) \ + ( (This)->lpVtbl -> SaveData(This) ) + +#define IMSAdminBaseW_GetHandleInfo(This,hMDHandle,pmdhiInfo) \ + ( (This)->lpVtbl -> GetHandleInfo(This,hMDHandle,pmdhiInfo) ) + +#define IMSAdminBaseW_GetSystemChangeNumber(This,pdwSystemChangeNumber) \ + ( (This)->lpVtbl -> GetSystemChangeNumber(This,pdwSystemChangeNumber) ) + +#define IMSAdminBaseW_GetDataSetNumber(This,hMDHandle,pszMDPath,pdwMDDataSetNumber) \ + ( (This)->lpVtbl -> GetDataSetNumber(This,hMDHandle,pszMDPath,pdwMDDataSetNumber) ) + +#define IMSAdminBaseW_SetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) \ + ( (This)->lpVtbl -> SetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) ) + +#define IMSAdminBaseW_GetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) \ + ( (This)->lpVtbl -> GetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) ) + +#define IMSAdminBaseW_KeyExchangePhase1(This) \ + ( (This)->lpVtbl -> KeyExchangePhase1(This) ) + +#define IMSAdminBaseW_KeyExchangePhase2(This) \ + ( (This)->lpVtbl -> KeyExchangePhase2(This) ) + +#define IMSAdminBaseW_Backup(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) \ + ( (This)->lpVtbl -> Backup(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) ) + +#define IMSAdminBaseW_Restore(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) \ + ( (This)->lpVtbl -> Restore(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) ) + +#define IMSAdminBaseW_EnumBackups(This,pszMDBackupLocation,pdwMDVersion,pftMDBackupTime,dwMDEnumIndex) \ + ( (This)->lpVtbl -> EnumBackups(This,pszMDBackupLocation,pdwMDVersion,pftMDBackupTime,dwMDEnumIndex) ) + +#define IMSAdminBaseW_DeleteBackup(This,pszMDBackupLocation,dwMDVersion) \ + ( (This)->lpVtbl -> DeleteBackup(This,pszMDBackupLocation,dwMDVersion) ) + +#define IMSAdminBaseW_UnmarshalInterface(This,piadmbwInterface) \ + ( (This)->lpVtbl -> UnmarshalInterface(This,piadmbwInterface) ) + +#define IMSAdminBaseW_GetServerGuid(This) \ + ( (This)->lpVtbl -> GetServerGuid(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_R_SetData_Proxy( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ __RPC__in PMETADATA_RECORD pmdrMDData); + + +void __RPC_STUB IMSAdminBaseW_R_SetData_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_R_GetData_Proxy( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out][in] */ __RPC__inout PMETADATA_RECORD pmdrMDData, + /* [out] */ __RPC__out DWORD *pdwMDRequiredDataLen, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppDataBlob); + + +void __RPC_STUB IMSAdminBaseW_R_GetData_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_R_EnumData_Proxy( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out][in] */ __RPC__inout PMETADATA_RECORD pmdrMDData, + /* [in] */ DWORD dwMDEnumDataIndex, + /* [out] */ __RPC__out DWORD *pdwMDRequiredDataLen, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppDataBlob); + + +void __RPC_STUB IMSAdminBaseW_R_EnumData_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_R_GetAllData_Proxy( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [out] */ __RPC__out DWORD *pdwMDNumDataEntries, + /* [out] */ __RPC__out DWORD *pdwMDDataSetNumber, + /* [in] */ DWORD dwMDBufferSize, + /* [out] */ __RPC__out DWORD *pdwMDRequiredBufferSize, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppDataBlob); + + +void __RPC_STUB IMSAdminBaseW_R_GetAllData_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_R_KeyExchangePhase1_Proxy( + __RPC__in IMSAdminBaseW * This, + /* [in][unique] */ __RPC__in_opt struct _IIS_CRYPTO_BLOB *pClientKeyExchangeKeyBlob, + /* [in][unique] */ __RPC__in_opt struct _IIS_CRYPTO_BLOB *pClientSignatureKeyBlob, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppServerKeyExchangeKeyBlob, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppServerSignatureKeyBlob, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppServerSessionKeyBlob); + + +void __RPC_STUB IMSAdminBaseW_R_KeyExchangePhase1_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_R_KeyExchangePhase2_Proxy( + __RPC__in IMSAdminBaseW * This, + /* [in][unique] */ __RPC__in_opt struct _IIS_CRYPTO_BLOB *pClientSessionKeyBlob, + /* [in][unique] */ __RPC__in_opt struct _IIS_CRYPTO_BLOB *pClientHashBlob, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppServerHashBlob); + + +void __RPC_STUB IMSAdminBaseW_R_KeyExchangePhase2_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_R_GetServerGuid_Proxy( + __RPC__in IMSAdminBaseW * This, + /* [out] */ __RPC__out GUID *pServerGuid); + + +void __RPC_STUB IMSAdminBaseW_R_GetServerGuid_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IMSAdminBaseW_INTERFACE_DEFINED__ */ + + +#ifndef __IMSAdminBase2W_INTERFACE_DEFINED__ +#define __IMSAdminBase2W_INTERFACE_DEFINED__ + +/* interface IMSAdminBase2W */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IMSAdminBase2W; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8298d101-f992-43b7-8eca-5052d885b995") + IMSAdminBase2W : public IMSAdminBaseW + { + public: + virtual HRESULT STDMETHODCALLTYPE BackupWithPasswd( + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd) = 0; + + virtual HRESULT STDMETHODCALLTYPE RestoreWithPasswd( + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd) = 0; + + virtual HRESULT STDMETHODCALLTYPE Export( + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszFileName, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszSourcePath, + /* [in] */ DWORD dwMDFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE Import( + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszFileName, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszSourcePath, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszDestPath, + /* [in] */ DWORD dwMDFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE RestoreHistory( + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDHistoryLocation, + /* [in] */ DWORD dwMDMajorVersion, + /* [in] */ DWORD dwMDMinorVersion, + /* [in] */ DWORD dwMDFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumHistory( + /* [size_is][out][in] */ __RPC__inout_ecount_full(256) LPWSTR pszMDHistoryLocation, + /* [out] */ __RPC__out DWORD *pdwMDMajorVersion, + /* [out] */ __RPC__out DWORD *pdwMDMinorVersion, + /* [out] */ __RPC__out PFILETIME pftMDHistoryTime, + /* [in] */ DWORD dwMDEnumIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMSAdminBase2WVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMSAdminBase2W * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMSAdminBase2W * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, AddKey) + HRESULT ( STDMETHODCALLTYPE *AddKey )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteKey) + HRESULT ( STDMETHODCALLTYPE *DeleteKey )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteChildKeys) + HRESULT ( STDMETHODCALLTYPE *DeleteChildKeys )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, EnumKeys) + HRESULT ( STDMETHODCALLTYPE *EnumKeys )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [size_is][out] */ __RPC__out_ecount_full(256) LPWSTR pszMDName, + /* [in] */ DWORD dwMDEnumObjectIndex); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, CopyKey) + HRESULT ( STDMETHODCALLTYPE *CopyKey )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDSourceHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDSourcePath, + /* [in] */ METADATA_HANDLE hMDDestHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDDestPath, + /* [in] */ BOOL bMDOverwriteFlag, + /* [in] */ BOOL bMDCopyFlag); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, RenameKey) + HRESULT ( STDMETHODCALLTYPE *RenameKey )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDNewName); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, SetData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetData )( + IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [in] */ PMETADATA_RECORD pmdrMDData); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetData )( + IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [out][in] */ PMETADATA_RECORD pmdrMDData, + /* [out] */ DWORD *pdwMDRequiredDataLen); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteData) + HRESULT ( STDMETHODCALLTYPE *DeleteData )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDIdentifier, + /* [in] */ DWORD dwMDDataType); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, EnumData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *EnumData )( + IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [out][in] */ PMETADATA_RECORD pmdrMDData, + /* [in] */ DWORD dwMDEnumDataIndex, + /* [out] */ DWORD *pdwMDRequiredDataLen); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetAllData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetAllData )( + IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [out] */ DWORD *pdwMDNumDataEntries, + /* [out] */ DWORD *pdwMDDataSetNumber, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][out] */ unsigned char *pbMDBuffer, + /* [out] */ DWORD *pdwMDRequiredBufferSize); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteAllData) + HRESULT ( STDMETHODCALLTYPE *DeleteAllData )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, CopyData) + HRESULT ( STDMETHODCALLTYPE *CopyData )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDSourceHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDSourcePath, + /* [in] */ METADATA_HANDLE hMDDestHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDDestPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [in] */ BOOL bMDCopyFlag); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetDataPaths) + HRESULT ( STDMETHODCALLTYPE *GetDataPaths )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDIdentifier, + /* [in] */ DWORD dwMDDataType, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][out] */ __RPC__out_ecount_full(dwMDBufferSize) WCHAR *pszBuffer, + /* [out] */ __RPC__out DWORD *pdwMDRequiredBufferSize); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, OpenKey) + HRESULT ( STDMETHODCALLTYPE *OpenKey )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAccessRequested, + /* [in] */ DWORD dwMDTimeOut, + /* [out] */ __RPC__out PMETADATA_HANDLE phMDNewHandle); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, CloseKey) + HRESULT ( STDMETHODCALLTYPE *CloseKey )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, ChangePermissions) + HRESULT ( STDMETHODCALLTYPE *ChangePermissions )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [in] */ DWORD dwMDTimeOut, + /* [in] */ DWORD dwMDAccessRequested); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, SaveData) + HRESULT ( STDMETHODCALLTYPE *SaveData )( + __RPC__in IMSAdminBase2W * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetHandleInfo) + HRESULT ( STDMETHODCALLTYPE *GetHandleInfo )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [out] */ __RPC__out PMETADATA_HANDLE_INFO pmdhiInfo); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetSystemChangeNumber) + HRESULT ( STDMETHODCALLTYPE *GetSystemChangeNumber )( + __RPC__in IMSAdminBase2W * This, + /* [out] */ __RPC__out DWORD *pdwSystemChangeNumber); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetDataSetNumber) + HRESULT ( STDMETHODCALLTYPE *GetDataSetNumber )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out] */ __RPC__out DWORD *pdwMDDataSetNumber); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, SetLastChangeTime) + HRESULT ( STDMETHODCALLTYPE *SetLastChangeTime )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ __RPC__in PFILETIME pftMDLastChangeTime, + /* [in] */ BOOL bLocalTime); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetLastChangeTime) + HRESULT ( STDMETHODCALLTYPE *GetLastChangeTime )( + __RPC__in IMSAdminBase2W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out] */ __RPC__out PFILETIME pftMDLastChangeTime, + /* [in] */ BOOL bLocalTime); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, KeyExchangePhase1) + /* [restricted][local] */ HRESULT ( STDMETHODCALLTYPE *KeyExchangePhase1 )( + IMSAdminBase2W * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, KeyExchangePhase2) + /* [restricted][local] */ HRESULT ( STDMETHODCALLTYPE *KeyExchangePhase2 )( + IMSAdminBase2W * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, Backup) + HRESULT ( STDMETHODCALLTYPE *Backup )( + __RPC__in IMSAdminBase2W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, Restore) + HRESULT ( STDMETHODCALLTYPE *Restore )( + __RPC__in IMSAdminBase2W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, EnumBackups) + HRESULT ( STDMETHODCALLTYPE *EnumBackups )( + __RPC__in IMSAdminBase2W * This, + /* [size_is][out][in] */ __RPC__inout_ecount_full(256) LPWSTR pszMDBackupLocation, + /* [out] */ __RPC__out DWORD *pdwMDVersion, + /* [out] */ __RPC__out PFILETIME pftMDBackupTime, + /* [in] */ DWORD dwMDEnumIndex); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteBackup) + HRESULT ( STDMETHODCALLTYPE *DeleteBackup )( + __RPC__in IMSAdminBase2W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, UnmarshalInterface) + HRESULT ( STDMETHODCALLTYPE *UnmarshalInterface )( + __RPC__in IMSAdminBase2W * This, + /* [out] */ __RPC__deref_out_opt IMSAdminBaseW **piadmbwInterface); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetServerGuid) + /* [restricted][local] */ HRESULT ( STDMETHODCALLTYPE *GetServerGuid )( + IMSAdminBase2W * This); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, BackupWithPasswd) + HRESULT ( STDMETHODCALLTYPE *BackupWithPasswd )( + __RPC__in IMSAdminBase2W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, RestoreWithPasswd) + HRESULT ( STDMETHODCALLTYPE *RestoreWithPasswd )( + __RPC__in IMSAdminBase2W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, Export) + HRESULT ( STDMETHODCALLTYPE *Export )( + __RPC__in IMSAdminBase2W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszFileName, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszSourcePath, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, Import) + HRESULT ( STDMETHODCALLTYPE *Import )( + __RPC__in IMSAdminBase2W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszFileName, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszSourcePath, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszDestPath, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, RestoreHistory) + HRESULT ( STDMETHODCALLTYPE *RestoreHistory )( + __RPC__in IMSAdminBase2W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDHistoryLocation, + /* [in] */ DWORD dwMDMajorVersion, + /* [in] */ DWORD dwMDMinorVersion, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, EnumHistory) + HRESULT ( STDMETHODCALLTYPE *EnumHistory )( + __RPC__in IMSAdminBase2W * This, + /* [size_is][out][in] */ __RPC__inout_ecount_full(256) LPWSTR pszMDHistoryLocation, + /* [out] */ __RPC__out DWORD *pdwMDMajorVersion, + /* [out] */ __RPC__out DWORD *pdwMDMinorVersion, + /* [out] */ __RPC__out PFILETIME pftMDHistoryTime, + /* [in] */ DWORD dwMDEnumIndex); + + END_INTERFACE + } IMSAdminBase2WVtbl; + + interface IMSAdminBase2W + { + CONST_VTBL struct IMSAdminBase2WVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMSAdminBase2W_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMSAdminBase2W_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMSAdminBase2W_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMSAdminBase2W_AddKey(This,hMDHandle,pszMDPath) \ + ( (This)->lpVtbl -> AddKey(This,hMDHandle,pszMDPath) ) + +#define IMSAdminBase2W_DeleteKey(This,hMDHandle,pszMDPath) \ + ( (This)->lpVtbl -> DeleteKey(This,hMDHandle,pszMDPath) ) + +#define IMSAdminBase2W_DeleteChildKeys(This,hMDHandle,pszMDPath) \ + ( (This)->lpVtbl -> DeleteChildKeys(This,hMDHandle,pszMDPath) ) + +#define IMSAdminBase2W_EnumKeys(This,hMDHandle,pszMDPath,pszMDName,dwMDEnumObjectIndex) \ + ( (This)->lpVtbl -> EnumKeys(This,hMDHandle,pszMDPath,pszMDName,dwMDEnumObjectIndex) ) + +#define IMSAdminBase2W_CopyKey(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,bMDOverwriteFlag,bMDCopyFlag) \ + ( (This)->lpVtbl -> CopyKey(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,bMDOverwriteFlag,bMDCopyFlag) ) + +#define IMSAdminBase2W_RenameKey(This,hMDHandle,pszMDPath,pszMDNewName) \ + ( (This)->lpVtbl -> RenameKey(This,hMDHandle,pszMDPath,pszMDNewName) ) + +#define IMSAdminBase2W_SetData(This,hMDHandle,pszMDPath,pmdrMDData) \ + ( (This)->lpVtbl -> SetData(This,hMDHandle,pszMDPath,pmdrMDData) ) + +#define IMSAdminBase2W_GetData(This,hMDHandle,pszMDPath,pmdrMDData,pdwMDRequiredDataLen) \ + ( (This)->lpVtbl -> GetData(This,hMDHandle,pszMDPath,pmdrMDData,pdwMDRequiredDataLen) ) + +#define IMSAdminBase2W_DeleteData(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType) \ + ( (This)->lpVtbl -> DeleteData(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType) ) + +#define IMSAdminBase2W_EnumData(This,hMDHandle,pszMDPath,pmdrMDData,dwMDEnumDataIndex,pdwMDRequiredDataLen) \ + ( (This)->lpVtbl -> EnumData(This,hMDHandle,pszMDPath,pmdrMDData,dwMDEnumDataIndex,pdwMDRequiredDataLen) ) + +#define IMSAdminBase2W_GetAllData(This,hMDHandle,pszMDPath,dwMDAttributes,dwMDUserType,dwMDDataType,pdwMDNumDataEntries,pdwMDDataSetNumber,dwMDBufferSize,pbMDBuffer,pdwMDRequiredBufferSize) \ + ( (This)->lpVtbl -> GetAllData(This,hMDHandle,pszMDPath,dwMDAttributes,dwMDUserType,dwMDDataType,pdwMDNumDataEntries,pdwMDDataSetNumber,dwMDBufferSize,pbMDBuffer,pdwMDRequiredBufferSize) ) + +#define IMSAdminBase2W_DeleteAllData(This,hMDHandle,pszMDPath,dwMDUserType,dwMDDataType) \ + ( (This)->lpVtbl -> DeleteAllData(This,hMDHandle,pszMDPath,dwMDUserType,dwMDDataType) ) + +#define IMSAdminBase2W_CopyData(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,dwMDAttributes,dwMDUserType,dwMDDataType,bMDCopyFlag) \ + ( (This)->lpVtbl -> CopyData(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,dwMDAttributes,dwMDUserType,dwMDDataType,bMDCopyFlag) ) + +#define IMSAdminBase2W_GetDataPaths(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType,dwMDBufferSize,pszBuffer,pdwMDRequiredBufferSize) \ + ( (This)->lpVtbl -> GetDataPaths(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType,dwMDBufferSize,pszBuffer,pdwMDRequiredBufferSize) ) + +#define IMSAdminBase2W_OpenKey(This,hMDHandle,pszMDPath,dwMDAccessRequested,dwMDTimeOut,phMDNewHandle) \ + ( (This)->lpVtbl -> OpenKey(This,hMDHandle,pszMDPath,dwMDAccessRequested,dwMDTimeOut,phMDNewHandle) ) + +#define IMSAdminBase2W_CloseKey(This,hMDHandle) \ + ( (This)->lpVtbl -> CloseKey(This,hMDHandle) ) + +#define IMSAdminBase2W_ChangePermissions(This,hMDHandle,dwMDTimeOut,dwMDAccessRequested) \ + ( (This)->lpVtbl -> ChangePermissions(This,hMDHandle,dwMDTimeOut,dwMDAccessRequested) ) + +#define IMSAdminBase2W_SaveData(This) \ + ( (This)->lpVtbl -> SaveData(This) ) + +#define IMSAdminBase2W_GetHandleInfo(This,hMDHandle,pmdhiInfo) \ + ( (This)->lpVtbl -> GetHandleInfo(This,hMDHandle,pmdhiInfo) ) + +#define IMSAdminBase2W_GetSystemChangeNumber(This,pdwSystemChangeNumber) \ + ( (This)->lpVtbl -> GetSystemChangeNumber(This,pdwSystemChangeNumber) ) + +#define IMSAdminBase2W_GetDataSetNumber(This,hMDHandle,pszMDPath,pdwMDDataSetNumber) \ + ( (This)->lpVtbl -> GetDataSetNumber(This,hMDHandle,pszMDPath,pdwMDDataSetNumber) ) + +#define IMSAdminBase2W_SetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) \ + ( (This)->lpVtbl -> SetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) ) + +#define IMSAdminBase2W_GetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) \ + ( (This)->lpVtbl -> GetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) ) + +#define IMSAdminBase2W_KeyExchangePhase1(This) \ + ( (This)->lpVtbl -> KeyExchangePhase1(This) ) + +#define IMSAdminBase2W_KeyExchangePhase2(This) \ + ( (This)->lpVtbl -> KeyExchangePhase2(This) ) + +#define IMSAdminBase2W_Backup(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) \ + ( (This)->lpVtbl -> Backup(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) ) + +#define IMSAdminBase2W_Restore(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) \ + ( (This)->lpVtbl -> Restore(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) ) + +#define IMSAdminBase2W_EnumBackups(This,pszMDBackupLocation,pdwMDVersion,pftMDBackupTime,dwMDEnumIndex) \ + ( (This)->lpVtbl -> EnumBackups(This,pszMDBackupLocation,pdwMDVersion,pftMDBackupTime,dwMDEnumIndex) ) + +#define IMSAdminBase2W_DeleteBackup(This,pszMDBackupLocation,dwMDVersion) \ + ( (This)->lpVtbl -> DeleteBackup(This,pszMDBackupLocation,dwMDVersion) ) + +#define IMSAdminBase2W_UnmarshalInterface(This,piadmbwInterface) \ + ( (This)->lpVtbl -> UnmarshalInterface(This,piadmbwInterface) ) + +#define IMSAdminBase2W_GetServerGuid(This) \ + ( (This)->lpVtbl -> GetServerGuid(This) ) + + +#define IMSAdminBase2W_BackupWithPasswd(This,pszMDBackupLocation,dwMDVersion,dwMDFlags,pszPasswd) \ + ( (This)->lpVtbl -> BackupWithPasswd(This,pszMDBackupLocation,dwMDVersion,dwMDFlags,pszPasswd) ) + +#define IMSAdminBase2W_RestoreWithPasswd(This,pszMDBackupLocation,dwMDVersion,dwMDFlags,pszPasswd) \ + ( (This)->lpVtbl -> RestoreWithPasswd(This,pszMDBackupLocation,dwMDVersion,dwMDFlags,pszPasswd) ) + +#define IMSAdminBase2W_Export(This,pszPasswd,pszFileName,pszSourcePath,dwMDFlags) \ + ( (This)->lpVtbl -> Export(This,pszPasswd,pszFileName,pszSourcePath,dwMDFlags) ) + +#define IMSAdminBase2W_Import(This,pszPasswd,pszFileName,pszSourcePath,pszDestPath,dwMDFlags) \ + ( (This)->lpVtbl -> Import(This,pszPasswd,pszFileName,pszSourcePath,pszDestPath,dwMDFlags) ) + +#define IMSAdminBase2W_RestoreHistory(This,pszMDHistoryLocation,dwMDMajorVersion,dwMDMinorVersion,dwMDFlags) \ + ( (This)->lpVtbl -> RestoreHistory(This,pszMDHistoryLocation,dwMDMajorVersion,dwMDMinorVersion,dwMDFlags) ) + +#define IMSAdminBase2W_EnumHistory(This,pszMDHistoryLocation,pdwMDMajorVersion,pdwMDMinorVersion,pftMDHistoryTime,dwMDEnumIndex) \ + ( (This)->lpVtbl -> EnumHistory(This,pszMDHistoryLocation,pdwMDMajorVersion,pdwMDMinorVersion,pftMDHistoryTime,dwMDEnumIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMSAdminBase2W_INTERFACE_DEFINED__ */ + + +#ifndef __IMSAdminBase3W_INTERFACE_DEFINED__ +#define __IMSAdminBase3W_INTERFACE_DEFINED__ + +/* interface IMSAdminBase3W */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IMSAdminBase3W; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f612954d-3b0b-4c56-9563-227b7be624b4") + IMSAdminBase3W : public IMSAdminBase2W + { + public: + virtual HRESULT STDMETHODCALLTYPE GetChildPaths( + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD cchMDBufferSize, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(cchMDBufferSize) WCHAR *pszBuffer, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pcchMDRequiredBufferSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMSAdminBase3WVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMSAdminBase3W * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMSAdminBase3W * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, AddKey) + HRESULT ( STDMETHODCALLTYPE *AddKey )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteKey) + HRESULT ( STDMETHODCALLTYPE *DeleteKey )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteChildKeys) + HRESULT ( STDMETHODCALLTYPE *DeleteChildKeys )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, EnumKeys) + HRESULT ( STDMETHODCALLTYPE *EnumKeys )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [size_is][out] */ __RPC__out_ecount_full(256) LPWSTR pszMDName, + /* [in] */ DWORD dwMDEnumObjectIndex); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, CopyKey) + HRESULT ( STDMETHODCALLTYPE *CopyKey )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDSourceHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDSourcePath, + /* [in] */ METADATA_HANDLE hMDDestHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDDestPath, + /* [in] */ BOOL bMDOverwriteFlag, + /* [in] */ BOOL bMDCopyFlag); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, RenameKey) + HRESULT ( STDMETHODCALLTYPE *RenameKey )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDNewName); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, SetData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *SetData )( + IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [in] */ PMETADATA_RECORD pmdrMDData); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetData )( + IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [out][in] */ PMETADATA_RECORD pmdrMDData, + /* [out] */ DWORD *pdwMDRequiredDataLen); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteData) + HRESULT ( STDMETHODCALLTYPE *DeleteData )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDIdentifier, + /* [in] */ DWORD dwMDDataType); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, EnumData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *EnumData )( + IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [out][in] */ PMETADATA_RECORD pmdrMDData, + /* [in] */ DWORD dwMDEnumDataIndex, + /* [out] */ DWORD *pdwMDRequiredDataLen); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetAllData) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetAllData )( + IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [out] */ DWORD *pdwMDNumDataEntries, + /* [out] */ DWORD *pdwMDDataSetNumber, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][out] */ unsigned char *pbMDBuffer, + /* [out] */ DWORD *pdwMDRequiredBufferSize); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteAllData) + HRESULT ( STDMETHODCALLTYPE *DeleteAllData )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, CopyData) + HRESULT ( STDMETHODCALLTYPE *CopyData )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDSourceHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDSourcePath, + /* [in] */ METADATA_HANDLE hMDDestHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDDestPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [in] */ BOOL bMDCopyFlag); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetDataPaths) + HRESULT ( STDMETHODCALLTYPE *GetDataPaths )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDIdentifier, + /* [in] */ DWORD dwMDDataType, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][out] */ __RPC__out_ecount_full(dwMDBufferSize) WCHAR *pszBuffer, + /* [out] */ __RPC__out DWORD *pdwMDRequiredBufferSize); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, OpenKey) + HRESULT ( STDMETHODCALLTYPE *OpenKey )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAccessRequested, + /* [in] */ DWORD dwMDTimeOut, + /* [out] */ __RPC__out PMETADATA_HANDLE phMDNewHandle); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, CloseKey) + HRESULT ( STDMETHODCALLTYPE *CloseKey )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, ChangePermissions) + HRESULT ( STDMETHODCALLTYPE *ChangePermissions )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [in] */ DWORD dwMDTimeOut, + /* [in] */ DWORD dwMDAccessRequested); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, SaveData) + HRESULT ( STDMETHODCALLTYPE *SaveData )( + __RPC__in IMSAdminBase3W * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetHandleInfo) + HRESULT ( STDMETHODCALLTYPE *GetHandleInfo )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [out] */ __RPC__out PMETADATA_HANDLE_INFO pmdhiInfo); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetSystemChangeNumber) + HRESULT ( STDMETHODCALLTYPE *GetSystemChangeNumber )( + __RPC__in IMSAdminBase3W * This, + /* [out] */ __RPC__out DWORD *pdwSystemChangeNumber); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetDataSetNumber) + HRESULT ( STDMETHODCALLTYPE *GetDataSetNumber )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out] */ __RPC__out DWORD *pdwMDDataSetNumber); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, SetLastChangeTime) + HRESULT ( STDMETHODCALLTYPE *SetLastChangeTime )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ __RPC__in PFILETIME pftMDLastChangeTime, + /* [in] */ BOOL bLocalTime); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetLastChangeTime) + HRESULT ( STDMETHODCALLTYPE *GetLastChangeTime )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out] */ __RPC__out PFILETIME pftMDLastChangeTime, + /* [in] */ BOOL bLocalTime); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, KeyExchangePhase1) + /* [restricted][local] */ HRESULT ( STDMETHODCALLTYPE *KeyExchangePhase1 )( + IMSAdminBase3W * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, KeyExchangePhase2) + /* [restricted][local] */ HRESULT ( STDMETHODCALLTYPE *KeyExchangePhase2 )( + IMSAdminBase3W * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, Backup) + HRESULT ( STDMETHODCALLTYPE *Backup )( + __RPC__in IMSAdminBase3W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, Restore) + HRESULT ( STDMETHODCALLTYPE *Restore )( + __RPC__in IMSAdminBase3W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, EnumBackups) + HRESULT ( STDMETHODCALLTYPE *EnumBackups )( + __RPC__in IMSAdminBase3W * This, + /* [size_is][out][in] */ __RPC__inout_ecount_full(256) LPWSTR pszMDBackupLocation, + /* [out] */ __RPC__out DWORD *pdwMDVersion, + /* [out] */ __RPC__out PFILETIME pftMDBackupTime, + /* [in] */ DWORD dwMDEnumIndex); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, DeleteBackup) + HRESULT ( STDMETHODCALLTYPE *DeleteBackup )( + __RPC__in IMSAdminBase3W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, UnmarshalInterface) + HRESULT ( STDMETHODCALLTYPE *UnmarshalInterface )( + __RPC__in IMSAdminBase3W * This, + /* [out] */ __RPC__deref_out_opt IMSAdminBaseW **piadmbwInterface); + + DECLSPEC_XFGVIRT(IMSAdminBaseW, GetServerGuid) + /* [restricted][local] */ HRESULT ( STDMETHODCALLTYPE *GetServerGuid )( + IMSAdminBase3W * This); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, BackupWithPasswd) + HRESULT ( STDMETHODCALLTYPE *BackupWithPasswd )( + __RPC__in IMSAdminBase3W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, RestoreWithPasswd) + HRESULT ( STDMETHODCALLTYPE *RestoreWithPasswd )( + __RPC__in IMSAdminBase3W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDBackupLocation, + /* [in] */ DWORD dwMDVersion, + /* [in] */ DWORD dwMDFlags, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, Export) + HRESULT ( STDMETHODCALLTYPE *Export )( + __RPC__in IMSAdminBase3W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszFileName, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszSourcePath, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, Import) + HRESULT ( STDMETHODCALLTYPE *Import )( + __RPC__in IMSAdminBase3W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszPasswd, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszFileName, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszSourcePath, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszDestPath, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, RestoreHistory) + HRESULT ( STDMETHODCALLTYPE *RestoreHistory )( + __RPC__in IMSAdminBase3W * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDHistoryLocation, + /* [in] */ DWORD dwMDMajorVersion, + /* [in] */ DWORD dwMDMinorVersion, + /* [in] */ DWORD dwMDFlags); + + DECLSPEC_XFGVIRT(IMSAdminBase2W, EnumHistory) + HRESULT ( STDMETHODCALLTYPE *EnumHistory )( + __RPC__in IMSAdminBase3W * This, + /* [size_is][out][in] */ __RPC__inout_ecount_full(256) LPWSTR pszMDHistoryLocation, + /* [out] */ __RPC__out DWORD *pdwMDMajorVersion, + /* [out] */ __RPC__out DWORD *pdwMDMinorVersion, + /* [out] */ __RPC__out PFILETIME pftMDHistoryTime, + /* [in] */ DWORD dwMDEnumIndex); + + DECLSPEC_XFGVIRT(IMSAdminBase3W, GetChildPaths) + HRESULT ( STDMETHODCALLTYPE *GetChildPaths )( + __RPC__in IMSAdminBase3W * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD cchMDBufferSize, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(cchMDBufferSize) WCHAR *pszBuffer, + /* [unique][out][in] */ __RPC__inout_opt DWORD *pcchMDRequiredBufferSize); + + END_INTERFACE + } IMSAdminBase3WVtbl; + + interface IMSAdminBase3W + { + CONST_VTBL struct IMSAdminBase3WVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMSAdminBase3W_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMSAdminBase3W_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMSAdminBase3W_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMSAdminBase3W_AddKey(This,hMDHandle,pszMDPath) \ + ( (This)->lpVtbl -> AddKey(This,hMDHandle,pszMDPath) ) + +#define IMSAdminBase3W_DeleteKey(This,hMDHandle,pszMDPath) \ + ( (This)->lpVtbl -> DeleteKey(This,hMDHandle,pszMDPath) ) + +#define IMSAdminBase3W_DeleteChildKeys(This,hMDHandle,pszMDPath) \ + ( (This)->lpVtbl -> DeleteChildKeys(This,hMDHandle,pszMDPath) ) + +#define IMSAdminBase3W_EnumKeys(This,hMDHandle,pszMDPath,pszMDName,dwMDEnumObjectIndex) \ + ( (This)->lpVtbl -> EnumKeys(This,hMDHandle,pszMDPath,pszMDName,dwMDEnumObjectIndex) ) + +#define IMSAdminBase3W_CopyKey(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,bMDOverwriteFlag,bMDCopyFlag) \ + ( (This)->lpVtbl -> CopyKey(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,bMDOverwriteFlag,bMDCopyFlag) ) + +#define IMSAdminBase3W_RenameKey(This,hMDHandle,pszMDPath,pszMDNewName) \ + ( (This)->lpVtbl -> RenameKey(This,hMDHandle,pszMDPath,pszMDNewName) ) + +#define IMSAdminBase3W_SetData(This,hMDHandle,pszMDPath,pmdrMDData) \ + ( (This)->lpVtbl -> SetData(This,hMDHandle,pszMDPath,pmdrMDData) ) + +#define IMSAdminBase3W_GetData(This,hMDHandle,pszMDPath,pmdrMDData,pdwMDRequiredDataLen) \ + ( (This)->lpVtbl -> GetData(This,hMDHandle,pszMDPath,pmdrMDData,pdwMDRequiredDataLen) ) + +#define IMSAdminBase3W_DeleteData(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType) \ + ( (This)->lpVtbl -> DeleteData(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType) ) + +#define IMSAdminBase3W_EnumData(This,hMDHandle,pszMDPath,pmdrMDData,dwMDEnumDataIndex,pdwMDRequiredDataLen) \ + ( (This)->lpVtbl -> EnumData(This,hMDHandle,pszMDPath,pmdrMDData,dwMDEnumDataIndex,pdwMDRequiredDataLen) ) + +#define IMSAdminBase3W_GetAllData(This,hMDHandle,pszMDPath,dwMDAttributes,dwMDUserType,dwMDDataType,pdwMDNumDataEntries,pdwMDDataSetNumber,dwMDBufferSize,pbMDBuffer,pdwMDRequiredBufferSize) \ + ( (This)->lpVtbl -> GetAllData(This,hMDHandle,pszMDPath,dwMDAttributes,dwMDUserType,dwMDDataType,pdwMDNumDataEntries,pdwMDDataSetNumber,dwMDBufferSize,pbMDBuffer,pdwMDRequiredBufferSize) ) + +#define IMSAdminBase3W_DeleteAllData(This,hMDHandle,pszMDPath,dwMDUserType,dwMDDataType) \ + ( (This)->lpVtbl -> DeleteAllData(This,hMDHandle,pszMDPath,dwMDUserType,dwMDDataType) ) + +#define IMSAdminBase3W_CopyData(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,dwMDAttributes,dwMDUserType,dwMDDataType,bMDCopyFlag) \ + ( (This)->lpVtbl -> CopyData(This,hMDSourceHandle,pszMDSourcePath,hMDDestHandle,pszMDDestPath,dwMDAttributes,dwMDUserType,dwMDDataType,bMDCopyFlag) ) + +#define IMSAdminBase3W_GetDataPaths(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType,dwMDBufferSize,pszBuffer,pdwMDRequiredBufferSize) \ + ( (This)->lpVtbl -> GetDataPaths(This,hMDHandle,pszMDPath,dwMDIdentifier,dwMDDataType,dwMDBufferSize,pszBuffer,pdwMDRequiredBufferSize) ) + +#define IMSAdminBase3W_OpenKey(This,hMDHandle,pszMDPath,dwMDAccessRequested,dwMDTimeOut,phMDNewHandle) \ + ( (This)->lpVtbl -> OpenKey(This,hMDHandle,pszMDPath,dwMDAccessRequested,dwMDTimeOut,phMDNewHandle) ) + +#define IMSAdminBase3W_CloseKey(This,hMDHandle) \ + ( (This)->lpVtbl -> CloseKey(This,hMDHandle) ) + +#define IMSAdminBase3W_ChangePermissions(This,hMDHandle,dwMDTimeOut,dwMDAccessRequested) \ + ( (This)->lpVtbl -> ChangePermissions(This,hMDHandle,dwMDTimeOut,dwMDAccessRequested) ) + +#define IMSAdminBase3W_SaveData(This) \ + ( (This)->lpVtbl -> SaveData(This) ) + +#define IMSAdminBase3W_GetHandleInfo(This,hMDHandle,pmdhiInfo) \ + ( (This)->lpVtbl -> GetHandleInfo(This,hMDHandle,pmdhiInfo) ) + +#define IMSAdminBase3W_GetSystemChangeNumber(This,pdwSystemChangeNumber) \ + ( (This)->lpVtbl -> GetSystemChangeNumber(This,pdwSystemChangeNumber) ) + +#define IMSAdminBase3W_GetDataSetNumber(This,hMDHandle,pszMDPath,pdwMDDataSetNumber) \ + ( (This)->lpVtbl -> GetDataSetNumber(This,hMDHandle,pszMDPath,pdwMDDataSetNumber) ) + +#define IMSAdminBase3W_SetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) \ + ( (This)->lpVtbl -> SetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) ) + +#define IMSAdminBase3W_GetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) \ + ( (This)->lpVtbl -> GetLastChangeTime(This,hMDHandle,pszMDPath,pftMDLastChangeTime,bLocalTime) ) + +#define IMSAdminBase3W_KeyExchangePhase1(This) \ + ( (This)->lpVtbl -> KeyExchangePhase1(This) ) + +#define IMSAdminBase3W_KeyExchangePhase2(This) \ + ( (This)->lpVtbl -> KeyExchangePhase2(This) ) + +#define IMSAdminBase3W_Backup(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) \ + ( (This)->lpVtbl -> Backup(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) ) + +#define IMSAdminBase3W_Restore(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) \ + ( (This)->lpVtbl -> Restore(This,pszMDBackupLocation,dwMDVersion,dwMDFlags) ) + +#define IMSAdminBase3W_EnumBackups(This,pszMDBackupLocation,pdwMDVersion,pftMDBackupTime,dwMDEnumIndex) \ + ( (This)->lpVtbl -> EnumBackups(This,pszMDBackupLocation,pdwMDVersion,pftMDBackupTime,dwMDEnumIndex) ) + +#define IMSAdminBase3W_DeleteBackup(This,pszMDBackupLocation,dwMDVersion) \ + ( (This)->lpVtbl -> DeleteBackup(This,pszMDBackupLocation,dwMDVersion) ) + +#define IMSAdminBase3W_UnmarshalInterface(This,piadmbwInterface) \ + ( (This)->lpVtbl -> UnmarshalInterface(This,piadmbwInterface) ) + +#define IMSAdminBase3W_GetServerGuid(This) \ + ( (This)->lpVtbl -> GetServerGuid(This) ) + + +#define IMSAdminBase3W_BackupWithPasswd(This,pszMDBackupLocation,dwMDVersion,dwMDFlags,pszPasswd) \ + ( (This)->lpVtbl -> BackupWithPasswd(This,pszMDBackupLocation,dwMDVersion,dwMDFlags,pszPasswd) ) + +#define IMSAdminBase3W_RestoreWithPasswd(This,pszMDBackupLocation,dwMDVersion,dwMDFlags,pszPasswd) \ + ( (This)->lpVtbl -> RestoreWithPasswd(This,pszMDBackupLocation,dwMDVersion,dwMDFlags,pszPasswd) ) + +#define IMSAdminBase3W_Export(This,pszPasswd,pszFileName,pszSourcePath,dwMDFlags) \ + ( (This)->lpVtbl -> Export(This,pszPasswd,pszFileName,pszSourcePath,dwMDFlags) ) + +#define IMSAdminBase3W_Import(This,pszPasswd,pszFileName,pszSourcePath,pszDestPath,dwMDFlags) \ + ( (This)->lpVtbl -> Import(This,pszPasswd,pszFileName,pszSourcePath,pszDestPath,dwMDFlags) ) + +#define IMSAdminBase3W_RestoreHistory(This,pszMDHistoryLocation,dwMDMajorVersion,dwMDMinorVersion,dwMDFlags) \ + ( (This)->lpVtbl -> RestoreHistory(This,pszMDHistoryLocation,dwMDMajorVersion,dwMDMinorVersion,dwMDFlags) ) + +#define IMSAdminBase3W_EnumHistory(This,pszMDHistoryLocation,pdwMDMajorVersion,pdwMDMinorVersion,pftMDHistoryTime,dwMDEnumIndex) \ + ( (This)->lpVtbl -> EnumHistory(This,pszMDHistoryLocation,pdwMDMajorVersion,pdwMDMinorVersion,pftMDHistoryTime,dwMDEnumIndex) ) + + +#define IMSAdminBase3W_GetChildPaths(This,hMDHandle,pszMDPath,cchMDBufferSize,pszBuffer,pcchMDRequiredBufferSize) \ + ( (This)->lpVtbl -> GetChildPaths(This,hMDHandle,pszMDPath,cchMDBufferSize,pszBuffer,pcchMDRequiredBufferSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMSAdminBase3W_INTERFACE_DEFINED__ */ + + +#ifndef __IMSImpExpHelpW_INTERFACE_DEFINED__ +#define __IMSImpExpHelpW_INTERFACE_DEFINED__ + +/* interface IMSImpExpHelpW */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IMSImpExpHelpW; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("29FF67FF-8050-480f-9F30-CC41635F2F9D") + IMSImpExpHelpW : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumeratePathsInFile( + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszFileName, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszKeyType, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(dwMDBufferSize) WCHAR *pszBuffer, + /* [out] */ __RPC__out DWORD *pdwMDRequiredBufferSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMSImpExpHelpWVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMSImpExpHelpW * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMSImpExpHelpW * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMSImpExpHelpW * This); + + DECLSPEC_XFGVIRT(IMSImpExpHelpW, EnumeratePathsInFile) + HRESULT ( STDMETHODCALLTYPE *EnumeratePathsInFile )( + __RPC__in IMSImpExpHelpW * This, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszFileName, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszKeyType, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(dwMDBufferSize) WCHAR *pszBuffer, + /* [out] */ __RPC__out DWORD *pdwMDRequiredBufferSize); + + END_INTERFACE + } IMSImpExpHelpWVtbl; + + interface IMSImpExpHelpW + { + CONST_VTBL struct IMSImpExpHelpWVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMSImpExpHelpW_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMSImpExpHelpW_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMSImpExpHelpW_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMSImpExpHelpW_EnumeratePathsInFile(This,pszFileName,pszKeyType,dwMDBufferSize,pszBuffer,pdwMDRequiredBufferSize) \ + ( (This)->lpVtbl -> EnumeratePathsInFile(This,pszFileName,pszKeyType,dwMDBufferSize,pszBuffer,pdwMDRequiredBufferSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMSImpExpHelpW_INTERFACE_DEFINED__ */ + + +#ifndef __IMSAdminBaseSinkW_INTERFACE_DEFINED__ +#define __IMSAdminBaseSinkW_INTERFACE_DEFINED__ + +/* interface IMSAdminBaseSinkW */ +/* [unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IMSAdminBaseSinkW; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A9E69612-B80D-11d0-B9B9-00A0C922E750") + IMSAdminBaseSinkW : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SinkNotify( + /* [in] */ DWORD dwMDNumElements, + /* [size_is][in] */ __RPC__in_ecount_full(dwMDNumElements) MD_CHANGE_OBJECT_W pcoChangeList[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShutdownNotify( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMSAdminBaseSinkWVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMSAdminBaseSinkW * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMSAdminBaseSinkW * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMSAdminBaseSinkW * This); + + DECLSPEC_XFGVIRT(IMSAdminBaseSinkW, SinkNotify) + HRESULT ( STDMETHODCALLTYPE *SinkNotify )( + __RPC__in IMSAdminBaseSinkW * This, + /* [in] */ DWORD dwMDNumElements, + /* [size_is][in] */ __RPC__in_ecount_full(dwMDNumElements) MD_CHANGE_OBJECT_W pcoChangeList[ ]); + + DECLSPEC_XFGVIRT(IMSAdminBaseSinkW, ShutdownNotify) + HRESULT ( STDMETHODCALLTYPE *ShutdownNotify )( + __RPC__in IMSAdminBaseSinkW * This); + + END_INTERFACE + } IMSAdminBaseSinkWVtbl; + + interface IMSAdminBaseSinkW + { + CONST_VTBL struct IMSAdminBaseSinkWVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMSAdminBaseSinkW_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMSAdminBaseSinkW_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMSAdminBaseSinkW_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMSAdminBaseSinkW_SinkNotify(This,dwMDNumElements,pcoChangeList) \ + ( (This)->lpVtbl -> SinkNotify(This,dwMDNumElements,pcoChangeList) ) + +#define IMSAdminBaseSinkW_ShutdownNotify(This) \ + ( (This)->lpVtbl -> ShutdownNotify(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMSAdminBaseSinkW_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIMSAdminBaseSinkW_INTERFACE_DEFINED__ +#define __AsyncIMSAdminBaseSinkW_INTERFACE_DEFINED__ + +/* interface AsyncIMSAdminBaseSinkW */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_AsyncIMSAdminBaseSinkW; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A9E69613-B80D-11d0-B9B9-00A0C922E750") + AsyncIMSAdminBaseSinkW : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_SinkNotify( + /* [in] */ DWORD dwMDNumElements, + /* [size_is][in] */ __RPC__in_xcount_full(dwMDNumElements) MD_CHANGE_OBJECT_W pcoChangeList[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_SinkNotify( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_ShutdownNotify( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_ShutdownNotify( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIMSAdminBaseSinkWVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIMSAdminBaseSinkW * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIMSAdminBaseSinkW * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIMSAdminBaseSinkW * This); + + DECLSPEC_XFGVIRT(AsyncIMSAdminBaseSinkW, Begin_SinkNotify) + HRESULT ( STDMETHODCALLTYPE *Begin_SinkNotify )( + __RPC__in AsyncIMSAdminBaseSinkW * This, + /* [in] */ DWORD dwMDNumElements, + /* [size_is][in] */ __RPC__in_xcount_full(dwMDNumElements) MD_CHANGE_OBJECT_W pcoChangeList[ ]); + + DECLSPEC_XFGVIRT(AsyncIMSAdminBaseSinkW, Finish_SinkNotify) + HRESULT ( STDMETHODCALLTYPE *Finish_SinkNotify )( + __RPC__in AsyncIMSAdminBaseSinkW * This); + + DECLSPEC_XFGVIRT(AsyncIMSAdminBaseSinkW, Begin_ShutdownNotify) + HRESULT ( STDMETHODCALLTYPE *Begin_ShutdownNotify )( + __RPC__in AsyncIMSAdminBaseSinkW * This); + + DECLSPEC_XFGVIRT(AsyncIMSAdminBaseSinkW, Finish_ShutdownNotify) + HRESULT ( STDMETHODCALLTYPE *Finish_ShutdownNotify )( + __RPC__in AsyncIMSAdminBaseSinkW * This); + + END_INTERFACE + } AsyncIMSAdminBaseSinkWVtbl; + + interface AsyncIMSAdminBaseSinkW + { + CONST_VTBL struct AsyncIMSAdminBaseSinkWVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIMSAdminBaseSinkW_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIMSAdminBaseSinkW_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIMSAdminBaseSinkW_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIMSAdminBaseSinkW_Begin_SinkNotify(This,dwMDNumElements,pcoChangeList) \ + ( (This)->lpVtbl -> Begin_SinkNotify(This,dwMDNumElements,pcoChangeList) ) + +#define AsyncIMSAdminBaseSinkW_Finish_SinkNotify(This) \ + ( (This)->lpVtbl -> Finish_SinkNotify(This) ) + +#define AsyncIMSAdminBaseSinkW_Begin_ShutdownNotify(This) \ + ( (This)->lpVtbl -> Begin_ShutdownNotify(This) ) + +#define AsyncIMSAdminBaseSinkW_Finish_ShutdownNotify(This) \ + ( (This)->lpVtbl -> Finish_ShutdownNotify(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIMSAdminBaseSinkW_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_iadmw_0000_0005 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_iadmw_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iadmw_0000_0005_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* [local] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_SetData_Proxy( + IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [in] */ PMETADATA_RECORD pmdrMDData); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_SetData_Stub( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ __RPC__in PMETADATA_RECORD pmdrMDData); + +/* [local] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_GetData_Proxy( + IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [out][in] */ PMETADATA_RECORD pmdrMDData, + /* [out] */ DWORD *pdwMDRequiredDataLen); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_GetData_Stub( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out][in] */ __RPC__inout PMETADATA_RECORD pmdrMDData, + /* [out] */ __RPC__out DWORD *pdwMDRequiredDataLen, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppDataBlob); + +/* [local] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_EnumData_Proxy( + IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [out][in] */ PMETADATA_RECORD pmdrMDData, + /* [in] */ DWORD dwMDEnumDataIndex, + /* [out] */ DWORD *pdwMDRequiredDataLen); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_EnumData_Stub( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [out][in] */ __RPC__inout PMETADATA_RECORD pmdrMDData, + /* [in] */ DWORD dwMDEnumDataIndex, + /* [out] */ __RPC__out DWORD *pdwMDRequiredDataLen, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppDataBlob); + +/* [local] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_GetAllData_Proxy( + IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [out] */ DWORD *pdwMDNumDataEntries, + /* [out] */ DWORD *pdwMDDataSetNumber, + /* [in] */ DWORD dwMDBufferSize, + /* [size_is][out] */ unsigned char *pbMDBuffer, + /* [out] */ DWORD *pdwMDRequiredBufferSize); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_GetAllData_Stub( + __RPC__in IMSAdminBaseW * This, + /* [in] */ METADATA_HANDLE hMDHandle, + /* [string][in][unique] */ __RPC__in_opt_string LPCWSTR pszMDPath, + /* [in] */ DWORD dwMDAttributes, + /* [in] */ DWORD dwMDUserType, + /* [in] */ DWORD dwMDDataType, + /* [out] */ __RPC__out DWORD *pdwMDNumDataEntries, + /* [out] */ __RPC__out DWORD *pdwMDDataSetNumber, + /* [in] */ DWORD dwMDBufferSize, + /* [out] */ __RPC__out DWORD *pdwMDRequiredBufferSize, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppDataBlob); + +/* [restricted][local] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_KeyExchangePhase1_Proxy( + IMSAdminBaseW * This); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_KeyExchangePhase1_Stub( + __RPC__in IMSAdminBaseW * This, + /* [in][unique] */ __RPC__in_opt struct _IIS_CRYPTO_BLOB *pClientKeyExchangeKeyBlob, + /* [in][unique] */ __RPC__in_opt struct _IIS_CRYPTO_BLOB *pClientSignatureKeyBlob, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppServerKeyExchangeKeyBlob, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppServerSignatureKeyBlob, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppServerSessionKeyBlob); + +/* [restricted][local] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_KeyExchangePhase2_Proxy( + IMSAdminBaseW * This); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_KeyExchangePhase2_Stub( + __RPC__in IMSAdminBaseW * This, + /* [in][unique] */ __RPC__in_opt struct _IIS_CRYPTO_BLOB *pClientSessionKeyBlob, + /* [in][unique] */ __RPC__in_opt struct _IIS_CRYPTO_BLOB *pClientHashBlob, + /* [out] */ __RPC__deref_out_opt struct _IIS_CRYPTO_BLOB **ppServerHashBlob); + +/* [restricted][local] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_GetServerGuid_Proxy( + IMSAdminBaseW * This); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IMSAdminBaseW_GetServerGuid_Stub( + __RPC__in IMSAdminBaseW * This, + /* [out] */ __RPC__out GUID *pServerGuid); + + + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iads.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iads.h new file mode 100644 index 0000000000000000000000000000000000000000..46e8d9b99e1440d2ffdc64dd03df41d75fc62579 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iads.h @@ -0,0 +1,19395 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __iads_h__ +#define __iads_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IADs_FWD_DEFINED__ +#define __IADs_FWD_DEFINED__ +typedef interface IADs IADs; + +#endif /* __IADs_FWD_DEFINED__ */ + + +#ifndef __IADsContainer_FWD_DEFINED__ +#define __IADsContainer_FWD_DEFINED__ +typedef interface IADsContainer IADsContainer; + +#endif /* __IADsContainer_FWD_DEFINED__ */ + + +#ifndef __IADsCollection_FWD_DEFINED__ +#define __IADsCollection_FWD_DEFINED__ +typedef interface IADsCollection IADsCollection; + +#endif /* __IADsCollection_FWD_DEFINED__ */ + + +#ifndef __IADsMembers_FWD_DEFINED__ +#define __IADsMembers_FWD_DEFINED__ +typedef interface IADsMembers IADsMembers; + +#endif /* __IADsMembers_FWD_DEFINED__ */ + + +#ifndef __IADsPropertyList_FWD_DEFINED__ +#define __IADsPropertyList_FWD_DEFINED__ +typedef interface IADsPropertyList IADsPropertyList; + +#endif /* __IADsPropertyList_FWD_DEFINED__ */ + + +#ifndef __IADsPropertyEntry_FWD_DEFINED__ +#define __IADsPropertyEntry_FWD_DEFINED__ +typedef interface IADsPropertyEntry IADsPropertyEntry; + +#endif /* __IADsPropertyEntry_FWD_DEFINED__ */ + + +#ifndef __PropertyEntry_FWD_DEFINED__ +#define __PropertyEntry_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PropertyEntry PropertyEntry; +#else +typedef struct PropertyEntry PropertyEntry; +#endif /* __cplusplus */ + +#endif /* __PropertyEntry_FWD_DEFINED__ */ + + +#ifndef __IADsPropertyValue_FWD_DEFINED__ +#define __IADsPropertyValue_FWD_DEFINED__ +typedef interface IADsPropertyValue IADsPropertyValue; + +#endif /* __IADsPropertyValue_FWD_DEFINED__ */ + + +#ifndef __IADsPropertyValue2_FWD_DEFINED__ +#define __IADsPropertyValue2_FWD_DEFINED__ +typedef interface IADsPropertyValue2 IADsPropertyValue2; + +#endif /* __IADsPropertyValue2_FWD_DEFINED__ */ + + +#ifndef __PropertyValue_FWD_DEFINED__ +#define __PropertyValue_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PropertyValue PropertyValue; +#else +typedef struct PropertyValue PropertyValue; +#endif /* __cplusplus */ + +#endif /* __PropertyValue_FWD_DEFINED__ */ + + +#ifndef __IPrivateDispatch_FWD_DEFINED__ +#define __IPrivateDispatch_FWD_DEFINED__ +typedef interface IPrivateDispatch IPrivateDispatch; + +#endif /* __IPrivateDispatch_FWD_DEFINED__ */ + + +#ifndef __IPrivateUnknown_FWD_DEFINED__ +#define __IPrivateUnknown_FWD_DEFINED__ +typedef interface IPrivateUnknown IPrivateUnknown; + +#endif /* __IPrivateUnknown_FWD_DEFINED__ */ + + +#ifndef __IADsExtension_FWD_DEFINED__ +#define __IADsExtension_FWD_DEFINED__ +typedef interface IADsExtension IADsExtension; + +#endif /* __IADsExtension_FWD_DEFINED__ */ + + +#ifndef __IADsDeleteOps_FWD_DEFINED__ +#define __IADsDeleteOps_FWD_DEFINED__ +typedef interface IADsDeleteOps IADsDeleteOps; + +#endif /* __IADsDeleteOps_FWD_DEFINED__ */ + + +#ifndef __IADsNamespaces_FWD_DEFINED__ +#define __IADsNamespaces_FWD_DEFINED__ +typedef interface IADsNamespaces IADsNamespaces; + +#endif /* __IADsNamespaces_FWD_DEFINED__ */ + + +#ifndef __IADsClass_FWD_DEFINED__ +#define __IADsClass_FWD_DEFINED__ +typedef interface IADsClass IADsClass; + +#endif /* __IADsClass_FWD_DEFINED__ */ + + +#ifndef __IADsProperty_FWD_DEFINED__ +#define __IADsProperty_FWD_DEFINED__ +typedef interface IADsProperty IADsProperty; + +#endif /* __IADsProperty_FWD_DEFINED__ */ + + +#ifndef __IADsSyntax_FWD_DEFINED__ +#define __IADsSyntax_FWD_DEFINED__ +typedef interface IADsSyntax IADsSyntax; + +#endif /* __IADsSyntax_FWD_DEFINED__ */ + + +#ifndef __IADsLocality_FWD_DEFINED__ +#define __IADsLocality_FWD_DEFINED__ +typedef interface IADsLocality IADsLocality; + +#endif /* __IADsLocality_FWD_DEFINED__ */ + + +#ifndef __IADsO_FWD_DEFINED__ +#define __IADsO_FWD_DEFINED__ +typedef interface IADsO IADsO; + +#endif /* __IADsO_FWD_DEFINED__ */ + + +#ifndef __IADsOU_FWD_DEFINED__ +#define __IADsOU_FWD_DEFINED__ +typedef interface IADsOU IADsOU; + +#endif /* __IADsOU_FWD_DEFINED__ */ + + +#ifndef __IADsDomain_FWD_DEFINED__ +#define __IADsDomain_FWD_DEFINED__ +typedef interface IADsDomain IADsDomain; + +#endif /* __IADsDomain_FWD_DEFINED__ */ + + +#ifndef __IADsComputer_FWD_DEFINED__ +#define __IADsComputer_FWD_DEFINED__ +typedef interface IADsComputer IADsComputer; + +#endif /* __IADsComputer_FWD_DEFINED__ */ + + +#ifndef __IADsComputerOperations_FWD_DEFINED__ +#define __IADsComputerOperations_FWD_DEFINED__ +typedef interface IADsComputerOperations IADsComputerOperations; + +#endif /* __IADsComputerOperations_FWD_DEFINED__ */ + + +#ifndef __IADsGroup_FWD_DEFINED__ +#define __IADsGroup_FWD_DEFINED__ +typedef interface IADsGroup IADsGroup; + +#endif /* __IADsGroup_FWD_DEFINED__ */ + + +#ifndef __IADsUser_FWD_DEFINED__ +#define __IADsUser_FWD_DEFINED__ +typedef interface IADsUser IADsUser; + +#endif /* __IADsUser_FWD_DEFINED__ */ + + +#ifndef __IADsPrintQueue_FWD_DEFINED__ +#define __IADsPrintQueue_FWD_DEFINED__ +typedef interface IADsPrintQueue IADsPrintQueue; + +#endif /* __IADsPrintQueue_FWD_DEFINED__ */ + + +#ifndef __IADsPrintQueueOperations_FWD_DEFINED__ +#define __IADsPrintQueueOperations_FWD_DEFINED__ +typedef interface IADsPrintQueueOperations IADsPrintQueueOperations; + +#endif /* __IADsPrintQueueOperations_FWD_DEFINED__ */ + + +#ifndef __IADsPrintJob_FWD_DEFINED__ +#define __IADsPrintJob_FWD_DEFINED__ +typedef interface IADsPrintJob IADsPrintJob; + +#endif /* __IADsPrintJob_FWD_DEFINED__ */ + + +#ifndef __IADsPrintJobOperations_FWD_DEFINED__ +#define __IADsPrintJobOperations_FWD_DEFINED__ +typedef interface IADsPrintJobOperations IADsPrintJobOperations; + +#endif /* __IADsPrintJobOperations_FWD_DEFINED__ */ + + +#ifndef __IADsService_FWD_DEFINED__ +#define __IADsService_FWD_DEFINED__ +typedef interface IADsService IADsService; + +#endif /* __IADsService_FWD_DEFINED__ */ + + +#ifndef __IADsServiceOperations_FWD_DEFINED__ +#define __IADsServiceOperations_FWD_DEFINED__ +typedef interface IADsServiceOperations IADsServiceOperations; + +#endif /* __IADsServiceOperations_FWD_DEFINED__ */ + + +#ifndef __IADsFileService_FWD_DEFINED__ +#define __IADsFileService_FWD_DEFINED__ +typedef interface IADsFileService IADsFileService; + +#endif /* __IADsFileService_FWD_DEFINED__ */ + + +#ifndef __IADsFileServiceOperations_FWD_DEFINED__ +#define __IADsFileServiceOperations_FWD_DEFINED__ +typedef interface IADsFileServiceOperations IADsFileServiceOperations; + +#endif /* __IADsFileServiceOperations_FWD_DEFINED__ */ + + +#ifndef __IADsFileShare_FWD_DEFINED__ +#define __IADsFileShare_FWD_DEFINED__ +typedef interface IADsFileShare IADsFileShare; + +#endif /* __IADsFileShare_FWD_DEFINED__ */ + + +#ifndef __IADsSession_FWD_DEFINED__ +#define __IADsSession_FWD_DEFINED__ +typedef interface IADsSession IADsSession; + +#endif /* __IADsSession_FWD_DEFINED__ */ + + +#ifndef __IADsResource_FWD_DEFINED__ +#define __IADsResource_FWD_DEFINED__ +typedef interface IADsResource IADsResource; + +#endif /* __IADsResource_FWD_DEFINED__ */ + + +#ifndef __IADsOpenDSObject_FWD_DEFINED__ +#define __IADsOpenDSObject_FWD_DEFINED__ +typedef interface IADsOpenDSObject IADsOpenDSObject; + +#endif /* __IADsOpenDSObject_FWD_DEFINED__ */ + + +#ifndef __IDirectoryObject_FWD_DEFINED__ +#define __IDirectoryObject_FWD_DEFINED__ +typedef interface IDirectoryObject IDirectoryObject; + +#endif /* __IDirectoryObject_FWD_DEFINED__ */ + + +#ifndef __IDirectorySearch_FWD_DEFINED__ +#define __IDirectorySearch_FWD_DEFINED__ +typedef interface IDirectorySearch IDirectorySearch; + +#endif /* __IDirectorySearch_FWD_DEFINED__ */ + + +#ifndef __IDirectorySchemaMgmt_FWD_DEFINED__ +#define __IDirectorySchemaMgmt_FWD_DEFINED__ +typedef interface IDirectorySchemaMgmt IDirectorySchemaMgmt; + +#endif /* __IDirectorySchemaMgmt_FWD_DEFINED__ */ + + +#ifndef __IADsAggregatee_FWD_DEFINED__ +#define __IADsAggregatee_FWD_DEFINED__ +typedef interface IADsAggregatee IADsAggregatee; + +#endif /* __IADsAggregatee_FWD_DEFINED__ */ + + +#ifndef __IADsAggregator_FWD_DEFINED__ +#define __IADsAggregator_FWD_DEFINED__ +typedef interface IADsAggregator IADsAggregator; + +#endif /* __IADsAggregator_FWD_DEFINED__ */ + + +#ifndef __IADsAccessControlEntry_FWD_DEFINED__ +#define __IADsAccessControlEntry_FWD_DEFINED__ +typedef interface IADsAccessControlEntry IADsAccessControlEntry; + +#endif /* __IADsAccessControlEntry_FWD_DEFINED__ */ + + +#ifndef __AccessControlEntry_FWD_DEFINED__ +#define __AccessControlEntry_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AccessControlEntry AccessControlEntry; +#else +typedef struct AccessControlEntry AccessControlEntry; +#endif /* __cplusplus */ + +#endif /* __AccessControlEntry_FWD_DEFINED__ */ + + +#ifndef __IADsAccessControlList_FWD_DEFINED__ +#define __IADsAccessControlList_FWD_DEFINED__ +typedef interface IADsAccessControlList IADsAccessControlList; + +#endif /* __IADsAccessControlList_FWD_DEFINED__ */ + + +#ifndef __AccessControlList_FWD_DEFINED__ +#define __AccessControlList_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AccessControlList AccessControlList; +#else +typedef struct AccessControlList AccessControlList; +#endif /* __cplusplus */ + +#endif /* __AccessControlList_FWD_DEFINED__ */ + + +#ifndef __IADsSecurityDescriptor_FWD_DEFINED__ +#define __IADsSecurityDescriptor_FWD_DEFINED__ +typedef interface IADsSecurityDescriptor IADsSecurityDescriptor; + +#endif /* __IADsSecurityDescriptor_FWD_DEFINED__ */ + + +#ifndef __SecurityDescriptor_FWD_DEFINED__ +#define __SecurityDescriptor_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SecurityDescriptor SecurityDescriptor; +#else +typedef struct SecurityDescriptor SecurityDescriptor; +#endif /* __cplusplus */ + +#endif /* __SecurityDescriptor_FWD_DEFINED__ */ + + +#ifndef __IADsLargeInteger_FWD_DEFINED__ +#define __IADsLargeInteger_FWD_DEFINED__ +typedef interface IADsLargeInteger IADsLargeInteger; + +#endif /* __IADsLargeInteger_FWD_DEFINED__ */ + + +#ifndef __LargeInteger_FWD_DEFINED__ +#define __LargeInteger_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class LargeInteger LargeInteger; +#else +typedef struct LargeInteger LargeInteger; +#endif /* __cplusplus */ + +#endif /* __LargeInteger_FWD_DEFINED__ */ + + +#ifndef __IADsNameTranslate_FWD_DEFINED__ +#define __IADsNameTranslate_FWD_DEFINED__ +typedef interface IADsNameTranslate IADsNameTranslate; + +#endif /* __IADsNameTranslate_FWD_DEFINED__ */ + + +#ifndef __NameTranslate_FWD_DEFINED__ +#define __NameTranslate_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class NameTranslate NameTranslate; +#else +typedef struct NameTranslate NameTranslate; +#endif /* __cplusplus */ + +#endif /* __NameTranslate_FWD_DEFINED__ */ + + +#ifndef __IADsCaseIgnoreList_FWD_DEFINED__ +#define __IADsCaseIgnoreList_FWD_DEFINED__ +typedef interface IADsCaseIgnoreList IADsCaseIgnoreList; + +#endif /* __IADsCaseIgnoreList_FWD_DEFINED__ */ + + +#ifndef __CaseIgnoreList_FWD_DEFINED__ +#define __CaseIgnoreList_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CaseIgnoreList CaseIgnoreList; +#else +typedef struct CaseIgnoreList CaseIgnoreList; +#endif /* __cplusplus */ + +#endif /* __CaseIgnoreList_FWD_DEFINED__ */ + + +#ifndef __IADsFaxNumber_FWD_DEFINED__ +#define __IADsFaxNumber_FWD_DEFINED__ +typedef interface IADsFaxNumber IADsFaxNumber; + +#endif /* __IADsFaxNumber_FWD_DEFINED__ */ + + +#ifndef __FaxNumber_FWD_DEFINED__ +#define __FaxNumber_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FaxNumber FaxNumber; +#else +typedef struct FaxNumber FaxNumber; +#endif /* __cplusplus */ + +#endif /* __FaxNumber_FWD_DEFINED__ */ + + +#ifndef __IADsNetAddress_FWD_DEFINED__ +#define __IADsNetAddress_FWD_DEFINED__ +typedef interface IADsNetAddress IADsNetAddress; + +#endif /* __IADsNetAddress_FWD_DEFINED__ */ + + +#ifndef __NetAddress_FWD_DEFINED__ +#define __NetAddress_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class NetAddress NetAddress; +#else +typedef struct NetAddress NetAddress; +#endif /* __cplusplus */ + +#endif /* __NetAddress_FWD_DEFINED__ */ + + +#ifndef __IADsOctetList_FWD_DEFINED__ +#define __IADsOctetList_FWD_DEFINED__ +typedef interface IADsOctetList IADsOctetList; + +#endif /* __IADsOctetList_FWD_DEFINED__ */ + + +#ifndef __OctetList_FWD_DEFINED__ +#define __OctetList_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class OctetList OctetList; +#else +typedef struct OctetList OctetList; +#endif /* __cplusplus */ + +#endif /* __OctetList_FWD_DEFINED__ */ + + +#ifndef __IADsEmail_FWD_DEFINED__ +#define __IADsEmail_FWD_DEFINED__ +typedef interface IADsEmail IADsEmail; + +#endif /* __IADsEmail_FWD_DEFINED__ */ + + +#ifndef __Email_FWD_DEFINED__ +#define __Email_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Email Email; +#else +typedef struct Email Email; +#endif /* __cplusplus */ + +#endif /* __Email_FWD_DEFINED__ */ + + +#ifndef __IADsPath_FWD_DEFINED__ +#define __IADsPath_FWD_DEFINED__ +typedef interface IADsPath IADsPath; + +#endif /* __IADsPath_FWD_DEFINED__ */ + + +#ifndef __Path_FWD_DEFINED__ +#define __Path_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Path Path; +#else +typedef struct Path Path; +#endif /* __cplusplus */ + +#endif /* __Path_FWD_DEFINED__ */ + + +#ifndef __IADsReplicaPointer_FWD_DEFINED__ +#define __IADsReplicaPointer_FWD_DEFINED__ +typedef interface IADsReplicaPointer IADsReplicaPointer; + +#endif /* __IADsReplicaPointer_FWD_DEFINED__ */ + + +#ifndef __ReplicaPointer_FWD_DEFINED__ +#define __ReplicaPointer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ReplicaPointer ReplicaPointer; +#else +typedef struct ReplicaPointer ReplicaPointer; +#endif /* __cplusplus */ + +#endif /* __ReplicaPointer_FWD_DEFINED__ */ + + +#ifndef __IADsAcl_FWD_DEFINED__ +#define __IADsAcl_FWD_DEFINED__ +typedef interface IADsAcl IADsAcl; + +#endif /* __IADsAcl_FWD_DEFINED__ */ + + +#ifndef __IADsTimestamp_FWD_DEFINED__ +#define __IADsTimestamp_FWD_DEFINED__ +typedef interface IADsTimestamp IADsTimestamp; + +#endif /* __IADsTimestamp_FWD_DEFINED__ */ + + +#ifndef __Timestamp_FWD_DEFINED__ +#define __Timestamp_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Timestamp Timestamp; +#else +typedef struct Timestamp Timestamp; +#endif /* __cplusplus */ + +#endif /* __Timestamp_FWD_DEFINED__ */ + + +#ifndef __IADsPostalAddress_FWD_DEFINED__ +#define __IADsPostalAddress_FWD_DEFINED__ +typedef interface IADsPostalAddress IADsPostalAddress; + +#endif /* __IADsPostalAddress_FWD_DEFINED__ */ + + +#ifndef __PostalAddress_FWD_DEFINED__ +#define __PostalAddress_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PostalAddress PostalAddress; +#else +typedef struct PostalAddress PostalAddress; +#endif /* __cplusplus */ + +#endif /* __PostalAddress_FWD_DEFINED__ */ + + +#ifndef __IADsBackLink_FWD_DEFINED__ +#define __IADsBackLink_FWD_DEFINED__ +typedef interface IADsBackLink IADsBackLink; + +#endif /* __IADsBackLink_FWD_DEFINED__ */ + + +#ifndef __BackLink_FWD_DEFINED__ +#define __BackLink_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackLink BackLink; +#else +typedef struct BackLink BackLink; +#endif /* __cplusplus */ + +#endif /* __BackLink_FWD_DEFINED__ */ + + +#ifndef __IADsTypedName_FWD_DEFINED__ +#define __IADsTypedName_FWD_DEFINED__ +typedef interface IADsTypedName IADsTypedName; + +#endif /* __IADsTypedName_FWD_DEFINED__ */ + + +#ifndef __TypedName_FWD_DEFINED__ +#define __TypedName_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class TypedName TypedName; +#else +typedef struct TypedName TypedName; +#endif /* __cplusplus */ + +#endif /* __TypedName_FWD_DEFINED__ */ + + +#ifndef __IADsHold_FWD_DEFINED__ +#define __IADsHold_FWD_DEFINED__ +typedef interface IADsHold IADsHold; + +#endif /* __IADsHold_FWD_DEFINED__ */ + + +#ifndef __Hold_FWD_DEFINED__ +#define __Hold_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Hold Hold; +#else +typedef struct Hold Hold; +#endif /* __cplusplus */ + +#endif /* __Hold_FWD_DEFINED__ */ + + +#ifndef __IADsObjectOptions_FWD_DEFINED__ +#define __IADsObjectOptions_FWD_DEFINED__ +typedef interface IADsObjectOptions IADsObjectOptions; + +#endif /* __IADsObjectOptions_FWD_DEFINED__ */ + + +#ifndef __IADsPathname_FWD_DEFINED__ +#define __IADsPathname_FWD_DEFINED__ +typedef interface IADsPathname IADsPathname; + +#endif /* __IADsPathname_FWD_DEFINED__ */ + + +#ifndef __Pathname_FWD_DEFINED__ +#define __Pathname_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Pathname Pathname; +#else +typedef struct Pathname Pathname; +#endif /* __cplusplus */ + +#endif /* __Pathname_FWD_DEFINED__ */ + + +#ifndef __IADsADSystemInfo_FWD_DEFINED__ +#define __IADsADSystemInfo_FWD_DEFINED__ +typedef interface IADsADSystemInfo IADsADSystemInfo; + +#endif /* __IADsADSystemInfo_FWD_DEFINED__ */ + + +#ifndef __ADSystemInfo_FWD_DEFINED__ +#define __ADSystemInfo_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ADSystemInfo ADSystemInfo; +#else +typedef struct ADSystemInfo ADSystemInfo; +#endif /* __cplusplus */ + +#endif /* __ADSystemInfo_FWD_DEFINED__ */ + + +#ifndef __IADsWinNTSystemInfo_FWD_DEFINED__ +#define __IADsWinNTSystemInfo_FWD_DEFINED__ +typedef interface IADsWinNTSystemInfo IADsWinNTSystemInfo; + +#endif /* __IADsWinNTSystemInfo_FWD_DEFINED__ */ + + +#ifndef __WinNTSystemInfo_FWD_DEFINED__ +#define __WinNTSystemInfo_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class WinNTSystemInfo WinNTSystemInfo; +#else +typedef struct WinNTSystemInfo WinNTSystemInfo; +#endif /* __cplusplus */ + +#endif /* __WinNTSystemInfo_FWD_DEFINED__ */ + + +#ifndef __IADsDNWithBinary_FWD_DEFINED__ +#define __IADsDNWithBinary_FWD_DEFINED__ +typedef interface IADsDNWithBinary IADsDNWithBinary; + +#endif /* __IADsDNWithBinary_FWD_DEFINED__ */ + + +#ifndef __DNWithBinary_FWD_DEFINED__ +#define __DNWithBinary_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DNWithBinary DNWithBinary; +#else +typedef struct DNWithBinary DNWithBinary; +#endif /* __cplusplus */ + +#endif /* __DNWithBinary_FWD_DEFINED__ */ + + +#ifndef __IADsDNWithString_FWD_DEFINED__ +#define __IADsDNWithString_FWD_DEFINED__ +typedef interface IADsDNWithString IADsDNWithString; + +#endif /* __IADsDNWithString_FWD_DEFINED__ */ + + +#ifndef __DNWithString_FWD_DEFINED__ +#define __DNWithString_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DNWithString DNWithString; +#else +typedef struct DNWithString DNWithString; +#endif /* __cplusplus */ + +#endif /* __DNWithString_FWD_DEFINED__ */ + + +#ifndef __IADsSecurityUtility_FWD_DEFINED__ +#define __IADsSecurityUtility_FWD_DEFINED__ +typedef interface IADsSecurityUtility IADsSecurityUtility; + +#endif /* __IADsSecurityUtility_FWD_DEFINED__ */ + + +#ifndef __ADsSecurityUtility_FWD_DEFINED__ +#define __ADsSecurityUtility_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ADsSecurityUtility ADsSecurityUtility; +#else +typedef struct ADsSecurityUtility ADsSecurityUtility; +#endif /* __cplusplus */ + +#endif /* __ADsSecurityUtility_FWD_DEFINED__ */ + + +#ifdef __cplusplus +extern "C"{ +#endif + + + +#ifndef __ActiveDs_LIBRARY_DEFINED__ +#define __ActiveDs_LIBRARY_DEFINED__ + +/* library ActiveDs */ +/* [helpstring][version][uuid] */ + +#pragma once +#pragma warning(push) +#pragma warning(disable:4668) +#pragma once +#pragma region Input Buffer SAL 1 compatibility macros +#pragma endregion Input Buffer SAL 1 compatibility macros +#pragma once +#pragma once +#pragma warning(pop) +typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0001 + { + ADSTYPE_INVALID = 0, + ADSTYPE_DN_STRING = ( ADSTYPE_INVALID + 1 ) , + ADSTYPE_CASE_EXACT_STRING = ( ADSTYPE_DN_STRING + 1 ) , + ADSTYPE_CASE_IGNORE_STRING = ( ADSTYPE_CASE_EXACT_STRING + 1 ) , + ADSTYPE_PRINTABLE_STRING = ( ADSTYPE_CASE_IGNORE_STRING + 1 ) , + ADSTYPE_NUMERIC_STRING = ( ADSTYPE_PRINTABLE_STRING + 1 ) , + ADSTYPE_BOOLEAN = ( ADSTYPE_NUMERIC_STRING + 1 ) , + ADSTYPE_INTEGER = ( ADSTYPE_BOOLEAN + 1 ) , + ADSTYPE_OCTET_STRING = ( ADSTYPE_INTEGER + 1 ) , + ADSTYPE_UTC_TIME = ( ADSTYPE_OCTET_STRING + 1 ) , + ADSTYPE_LARGE_INTEGER = ( ADSTYPE_UTC_TIME + 1 ) , + ADSTYPE_PROV_SPECIFIC = ( ADSTYPE_LARGE_INTEGER + 1 ) , + ADSTYPE_OBJECT_CLASS = ( ADSTYPE_PROV_SPECIFIC + 1 ) , + ADSTYPE_CASEIGNORE_LIST = ( ADSTYPE_OBJECT_CLASS + 1 ) , + ADSTYPE_OCTET_LIST = ( ADSTYPE_CASEIGNORE_LIST + 1 ) , + ADSTYPE_PATH = ( ADSTYPE_OCTET_LIST + 1 ) , + ADSTYPE_POSTALADDRESS = ( ADSTYPE_PATH + 1 ) , + ADSTYPE_TIMESTAMP = ( ADSTYPE_POSTALADDRESS + 1 ) , + ADSTYPE_BACKLINK = ( ADSTYPE_TIMESTAMP + 1 ) , + ADSTYPE_TYPEDNAME = ( ADSTYPE_BACKLINK + 1 ) , + ADSTYPE_HOLD = ( ADSTYPE_TYPEDNAME + 1 ) , + ADSTYPE_NETADDRESS = ( ADSTYPE_HOLD + 1 ) , + ADSTYPE_REPLICAPOINTER = ( ADSTYPE_NETADDRESS + 1 ) , + ADSTYPE_FAXNUMBER = ( ADSTYPE_REPLICAPOINTER + 1 ) , + ADSTYPE_EMAIL = ( ADSTYPE_FAXNUMBER + 1 ) , + ADSTYPE_NT_SECURITY_DESCRIPTOR = ( ADSTYPE_EMAIL + 1 ) , + ADSTYPE_UNKNOWN = ( ADSTYPE_NT_SECURITY_DESCRIPTOR + 1 ) , + ADSTYPE_DN_WITH_BINARY = ( ADSTYPE_UNKNOWN + 1 ) , + ADSTYPE_DN_WITH_STRING = ( ADSTYPE_DN_WITH_BINARY + 1 ) + } ADSTYPEENUM; + +typedef ADSTYPEENUM ADSTYPE; + +typedef unsigned char BYTE; + +typedef unsigned char *LPBYTE; + +typedef unsigned char *PBYTE; + +typedef LPWSTR ADS_DN_STRING; + +typedef LPWSTR *PADS_DN_STRING; + +typedef LPWSTR ADS_CASE_EXACT_STRING; + +typedef LPWSTR *PADS_CASE_EXACT_STRING; + +typedef LPWSTR ADS_CASE_IGNORE_STRING; + +typedef LPWSTR *PADS_CASE_IGNORE_STRING; + +typedef LPWSTR ADS_PRINTABLE_STRING; + +typedef LPWSTR *PADS_PRINTABLE_STRING; + +typedef LPWSTR ADS_NUMERIC_STRING; + +typedef LPWSTR *PADS_NUMERIC_STRING; + +typedef DWORD ADS_BOOLEAN; + +typedef DWORD *LPNDS_BOOLEAN; + +typedef DWORD ADS_INTEGER; + +typedef DWORD *PADS_INTEGER; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0002 + { + DWORD dwLength; + LPBYTE lpValue; + } ADS_OCTET_STRING; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0002 *PADS_OCTET_STRING; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0003 + { + DWORD dwLength; + LPBYTE lpValue; + } ADS_NT_SECURITY_DESCRIPTOR; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0003 *PADS_NT_SECURITY_DESCRIPTOR; + +typedef SYSTEMTIME ADS_UTC_TIME; + +typedef SYSTEMTIME *PADS_UTC_TIME; + +typedef LARGE_INTEGER ADS_LARGE_INTEGER; + +typedef LARGE_INTEGER *PADS_LARGE_INTEGER; + +typedef LPWSTR ADS_OBJECT_CLASS; + +typedef LPWSTR *PADS_OBJECT_CLASS; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0004 + { + DWORD dwLength; + LPBYTE lpValue; + } ADS_PROV_SPECIFIC; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0004 *PADS_PROV_SPECIFIC; + +typedef struct _ADS_CASEIGNORE_LIST + { + struct _ADS_CASEIGNORE_LIST *Next; + LPWSTR String; + } ADS_CASEIGNORE_LIST; + +typedef struct _ADS_CASEIGNORE_LIST *PADS_CASEIGNORE_LIST; + +typedef struct _ADS_OCTET_LIST + { + struct _ADS_OCTET_LIST *Next; + DWORD Length; + BYTE *Data; + } ADS_OCTET_LIST; + +typedef struct _ADS_OCTET_LIST *PADS_OCTET_LIST; + +typedef /* [public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0005 + { + DWORD Type; + LPWSTR VolumeName; + LPWSTR Path; + } ADS_PATH; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0005 *PADS_PATH; + +typedef /* [public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0006 + { + LPWSTR PostalAddress[ 6 ]; + } ADS_POSTALADDRESS; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0006 *PADS_POSTALADDRESS; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0007 + { + DWORD WholeSeconds; + DWORD EventID; + } ADS_TIMESTAMP; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0007 *PADS_TIMESTAMP; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0008 + { + DWORD RemoteID; + LPWSTR ObjectName; + } ADS_BACKLINK; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0008 *PADS_BACKLINK; + +typedef /* [public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0009 + { + LPWSTR ObjectName; + DWORD Level; + DWORD Interval; + } ADS_TYPEDNAME; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0009 *PADS_TYPEDNAME; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0010 + { + LPWSTR ObjectName; + DWORD Amount; + } ADS_HOLD; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0010 *PADS_HOLD; + +typedef /* [public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0011 + { + DWORD AddressType; + DWORD AddressLength; + BYTE *Address; + } ADS_NETADDRESS; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0011 *PADS_NETADDRESS; + +typedef /* [public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0012 + { + LPWSTR ServerName; + DWORD ReplicaType; + DWORD ReplicaNumber; + DWORD Count; + PADS_NETADDRESS ReplicaAddressHints; + } ADS_REPLICAPOINTER; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0012 *PADS_REPLICAPOINTER; + +typedef /* [public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0013 + { + LPWSTR TelephoneNumber; + DWORD NumberOfBits; + LPBYTE Parameters; + } ADS_FAXNUMBER; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0013 *PADS_FAXNUMBER; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0014 + { + LPWSTR Address; + DWORD Type; + } ADS_EMAIL; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0014 *PADS_EMAIL; + +typedef /* [public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0015 + { + DWORD dwLength; + LPBYTE lpBinaryValue; + LPWSTR pszDNString; + } ADS_DN_WITH_BINARY; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0015 *PADS_DN_WITH_BINARY; + +typedef /* [public] */ struct __MIDL___MIDL_itf_ads_0000_0000_0016 + { + LPWSTR pszStringValue; + LPWSTR pszDNString; + } ADS_DN_WITH_STRING; + +typedef struct __MIDL___MIDL_itf_ads_0000_0000_0016 *PADS_DN_WITH_STRING; + +typedef struct _adsvalue + { + ADSTYPE dwType; + union + { + ADS_DN_STRING DNString; + ADS_CASE_EXACT_STRING CaseExactString; + ADS_CASE_IGNORE_STRING CaseIgnoreString; + ADS_PRINTABLE_STRING PrintableString; + ADS_NUMERIC_STRING NumericString; + ADS_BOOLEAN Boolean; + ADS_INTEGER Integer; + ADS_OCTET_STRING OctetString; + ADS_UTC_TIME UTCTime; + ADS_LARGE_INTEGER LargeInteger; + ADS_OBJECT_CLASS ClassName; + ADS_PROV_SPECIFIC ProviderSpecific; + PADS_CASEIGNORE_LIST pCaseIgnoreList; + PADS_OCTET_LIST pOctetList; + PADS_PATH pPath; + PADS_POSTALADDRESS pPostalAddress; + ADS_TIMESTAMP Timestamp; + ADS_BACKLINK BackLink; + PADS_TYPEDNAME pTypedName; + ADS_HOLD Hold; + PADS_NETADDRESS pNetAddress; + PADS_REPLICAPOINTER pReplicaPointer; + PADS_FAXNUMBER pFaxNumber; + ADS_EMAIL Email; + ADS_NT_SECURITY_DESCRIPTOR SecurityDescriptor; + PADS_DN_WITH_BINARY pDNWithBinary; + PADS_DN_WITH_STRING pDNWithString; + } ; + } ADSVALUE; + +typedef struct _adsvalue *PADSVALUE; + +typedef struct _adsvalue *LPADSVALUE; + +typedef struct _ads_attr_info + { + LPWSTR pszAttrName; + DWORD dwControlCode; + ADSTYPE dwADsType; + PADSVALUE pADsValues; + DWORD dwNumValues; + } ADS_ATTR_INFO; + +typedef struct _ads_attr_info *PADS_ATTR_INFO; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0018 + { + ADS_SECURE_AUTHENTICATION = 0x1, + ADS_USE_ENCRYPTION = 0x2, + ADS_USE_SSL = 0x2, + ADS_READONLY_SERVER = 0x4, + ADS_PROMPT_CREDENTIALS = 0x8, + ADS_NO_AUTHENTICATION = 0x10, + ADS_FAST_BIND = 0x20, + ADS_USE_SIGNING = 0x40, + ADS_USE_SEALING = 0x80, + ADS_USE_DELEGATION = 0x100, + ADS_SERVER_BIND = 0x200, + ADS_NO_REFERRAL_CHASING = 0x400, + ADS_AUTH_RESERVED = 0x80000000 + } ADS_AUTHENTICATION_ENUM; + +#define ADS_ATTR_CLEAR ( 1 ) + +#define ADS_ATTR_UPDATE ( 2 ) + +#define ADS_ATTR_APPEND ( 3 ) + +#define ADS_ATTR_DELETE ( 4 ) + +typedef struct _ads_object_info + { + LPWSTR pszRDN; + LPWSTR pszObjectDN; + LPWSTR pszParentDN; + LPWSTR pszSchemaDN; + LPWSTR pszClassName; + } ADS_OBJECT_INFO; + +typedef struct _ads_object_info *PADS_OBJECT_INFO; + +typedef /* [public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0019 + { + ADS_STATUS_S_OK = 0, + ADS_STATUS_INVALID_SEARCHPREF = ( ADS_STATUS_S_OK + 1 ) , + ADS_STATUS_INVALID_SEARCHPREFVALUE = ( ADS_STATUS_INVALID_SEARCHPREF + 1 ) + } ADS_STATUSENUM; + +typedef ADS_STATUSENUM ADS_STATUS; + +typedef ADS_STATUSENUM *PADS_STATUS; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0020 + { + ADS_DEREF_NEVER = 0, + ADS_DEREF_SEARCHING = 1, + ADS_DEREF_FINDING = 2, + ADS_DEREF_ALWAYS = 3 + } ADS_DEREFENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0021 + { + ADS_SCOPE_BASE = 0, + ADS_SCOPE_ONELEVEL = 1, + ADS_SCOPE_SUBTREE = 2 + } ADS_SCOPEENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0022 + { + ADSIPROP_ASYNCHRONOUS = 0, + ADSIPROP_DEREF_ALIASES = 0x1, + ADSIPROP_SIZE_LIMIT = 0x2, + ADSIPROP_TIME_LIMIT = 0x3, + ADSIPROP_ATTRIBTYPES_ONLY = 0x4, + ADSIPROP_SEARCH_SCOPE = 0x5, + ADSIPROP_TIMEOUT = 0x6, + ADSIPROP_PAGESIZE = 0x7, + ADSIPROP_PAGED_TIME_LIMIT = 0x8, + ADSIPROP_CHASE_REFERRALS = 0x9, + ADSIPROP_SORT_ON = 0xa, + ADSIPROP_CACHE_RESULTS = 0xb, + ADSIPROP_ADSIFLAG = 0xc + } ADS_PREFERENCES_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0023 + { + ADSI_DIALECT_LDAP = 0, + ADSI_DIALECT_SQL = 0x1 + } ADSI_DIALECT_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0024 + { + ADS_CHASE_REFERRALS_NEVER = 0, + ADS_CHASE_REFERRALS_SUBORDINATE = 0x20, + ADS_CHASE_REFERRALS_EXTERNAL = 0x40, + ADS_CHASE_REFERRALS_ALWAYS = ( ADS_CHASE_REFERRALS_SUBORDINATE | ADS_CHASE_REFERRALS_EXTERNAL ) + } ADS_CHASE_REFERRALS_ENUM; + +typedef /* [public][public][public][public][public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0025 + { + ADS_SEARCHPREF_ASYNCHRONOUS = 0, + ADS_SEARCHPREF_DEREF_ALIASES = ( ADS_SEARCHPREF_ASYNCHRONOUS + 1 ) , + ADS_SEARCHPREF_SIZE_LIMIT = ( ADS_SEARCHPREF_DEREF_ALIASES + 1 ) , + ADS_SEARCHPREF_TIME_LIMIT = ( ADS_SEARCHPREF_SIZE_LIMIT + 1 ) , + ADS_SEARCHPREF_ATTRIBTYPES_ONLY = ( ADS_SEARCHPREF_TIME_LIMIT + 1 ) , + ADS_SEARCHPREF_SEARCH_SCOPE = ( ADS_SEARCHPREF_ATTRIBTYPES_ONLY + 1 ) , + ADS_SEARCHPREF_TIMEOUT = ( ADS_SEARCHPREF_SEARCH_SCOPE + 1 ) , + ADS_SEARCHPREF_PAGESIZE = ( ADS_SEARCHPREF_TIMEOUT + 1 ) , + ADS_SEARCHPREF_PAGED_TIME_LIMIT = ( ADS_SEARCHPREF_PAGESIZE + 1 ) , + ADS_SEARCHPREF_CHASE_REFERRALS = ( ADS_SEARCHPREF_PAGED_TIME_LIMIT + 1 ) , + ADS_SEARCHPREF_SORT_ON = ( ADS_SEARCHPREF_CHASE_REFERRALS + 1 ) , + ADS_SEARCHPREF_CACHE_RESULTS = ( ADS_SEARCHPREF_SORT_ON + 1 ) , + ADS_SEARCHPREF_DIRSYNC = ( ADS_SEARCHPREF_CACHE_RESULTS + 1 ) , + ADS_SEARCHPREF_TOMBSTONE = ( ADS_SEARCHPREF_DIRSYNC + 1 ) , + ADS_SEARCHPREF_VLV = ( ADS_SEARCHPREF_TOMBSTONE + 1 ) , + ADS_SEARCHPREF_ATTRIBUTE_QUERY = ( ADS_SEARCHPREF_VLV + 1 ) , + ADS_SEARCHPREF_SECURITY_MASK = ( ADS_SEARCHPREF_ATTRIBUTE_QUERY + 1 ) , + ADS_SEARCHPREF_DIRSYNC_FLAG = ( ADS_SEARCHPREF_SECURITY_MASK + 1 ) , + ADS_SEARCHPREF_EXTENDED_DN = ( ADS_SEARCHPREF_DIRSYNC_FLAG + 1 ) + } ADS_SEARCHPREF_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0026 + { + ADS_PASSWORD_ENCODE_REQUIRE_SSL = 0, + ADS_PASSWORD_ENCODE_CLEAR = 1 + } ADS_PASSWORD_ENCODING_ENUM; + +typedef ADS_SEARCHPREF_ENUM ADS_SEARCHPREF; + +typedef struct ads_searchpref_info + { + ADS_SEARCHPREF dwSearchPref; + ADSVALUE vValue; + ADS_STATUS dwStatus; + } ADS_SEARCHPREF_INFO; + +typedef struct ads_searchpref_info *PADS_SEARCHPREF_INFO; + +typedef struct ads_searchpref_info *LPADS_SEARCHPREF_INFO; + +#define ADS_DIRSYNC_COOKIE ( L"fc8cb04d-311d-406c-8cb9-1ae8b843b418" ) + +#define ADS_VLV_RESPONSE ( L"fc8cb04d-311d-406c-8cb9-1ae8b843b419" ) + +typedef HANDLE ADS_SEARCH_HANDLE; + +typedef HANDLE *PADS_SEARCH_HANDLE; + +typedef struct ads_search_column + { + LPWSTR pszAttrName; + ADSTYPE dwADsType; + PADSVALUE pADsValues; + DWORD dwNumValues; + HANDLE hReserved; + } ADS_SEARCH_COLUMN; + +typedef struct ads_search_column *PADS_SEARCH_COLUMN; + +typedef struct _ads_attr_def + { + LPWSTR pszAttrName; + ADSTYPE dwADsType; + DWORD dwMinRange; + DWORD dwMaxRange; + BOOL fMultiValued; + } ADS_ATTR_DEF; + +typedef struct _ads_attr_def *PADS_ATTR_DEF; + +typedef struct _ads_class_def + { + LPWSTR pszClassName; + DWORD dwMandatoryAttrs; + LPWSTR *ppszMandatoryAttrs; + DWORD optionalAttrs; + LPWSTR **ppszOptionalAttrs; + DWORD dwNamingAttrs; + LPWSTR **ppszNamingAttrs; + DWORD dwSuperClasses; + LPWSTR **ppszSuperClasses; + BOOL fIsContainer; + } ADS_CLASS_DEF; + +typedef struct _ads_class_def *PADS_CLASS_DEF; + +typedef struct _ads_sortkey + { + LPWSTR pszAttrType; + LPWSTR pszReserved; + BOOLEAN fReverseorder; + } ADS_SORTKEY; + +typedef struct _ads_sortkey *PADS_SORTKEY; + +typedef struct _ads_vlv + { + DWORD dwBeforeCount; + DWORD dwAfterCount; + DWORD dwOffset; + DWORD dwContentCount; + LPWSTR pszTarget; + DWORD dwContextIDLength; + LPBYTE lpContextID; + } ADS_VLV; + +typedef struct _ads_vlv *PADS_VLV; + +#define ADS_EXT_MINEXTDISPID ( 1 ) + +#define ADS_EXT_MAXEXTDISPID ( 16777215 ) + +#define ADS_EXT_INITCREDENTIALS ( 1 ) + +#define ADS_EXT_INITIALIZE_COMPLETE ( 2 ) + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0000_0000_0027 + { + ADS_PROPERTY_CLEAR = 1, + ADS_PROPERTY_UPDATE = 2, + ADS_PROPERTY_APPEND = 3, + ADS_PROPERTY_DELETE = 4 + } ADS_PROPERTY_OPERATION_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0017_0001 + { + ADS_SYSTEMFLAG_DISALLOW_DELETE = 0x80000000, + ADS_SYSTEMFLAG_CONFIG_ALLOW_RENAME = 0x40000000, + ADS_SYSTEMFLAG_CONFIG_ALLOW_MOVE = 0x20000000, + ADS_SYSTEMFLAG_CONFIG_ALLOW_LIMITED_MOVE = 0x10000000, + ADS_SYSTEMFLAG_DOMAIN_DISALLOW_RENAME = 0x8000000, + ADS_SYSTEMFLAG_DOMAIN_DISALLOW_MOVE = 0x4000000, + ADS_SYSTEMFLAG_CR_NTDS_NC = 0x1, + ADS_SYSTEMFLAG_CR_NTDS_DOMAIN = 0x2, + ADS_SYSTEMFLAG_ATTR_NOT_REPLICATED = 0x1, + ADS_SYSTEMFLAG_ATTR_IS_CONSTRUCTED = 0x4 + } ADS_SYSTEMFLAG_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0023_0001 + { + ADS_GROUP_TYPE_GLOBAL_GROUP = 0x2, + ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP = 0x4, + ADS_GROUP_TYPE_LOCAL_GROUP = 0x4, + ADS_GROUP_TYPE_UNIVERSAL_GROUP = 0x8, + ADS_GROUP_TYPE_SECURITY_ENABLED = 0x80000000 + } ADS_GROUP_TYPE_ENUM; + +typedef +enum ADS_USER_FLAG + { + ADS_UF_SCRIPT = 0x1, + ADS_UF_ACCOUNTDISABLE = 0x2, + ADS_UF_HOMEDIR_REQUIRED = 0x8, + ADS_UF_LOCKOUT = 0x10, + ADS_UF_PASSWD_NOTREQD = 0x20, + ADS_UF_PASSWD_CANT_CHANGE = 0x40, + ADS_UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED = 0x80, + ADS_UF_TEMP_DUPLICATE_ACCOUNT = 0x100, + ADS_UF_NORMAL_ACCOUNT = 0x200, + ADS_UF_INTERDOMAIN_TRUST_ACCOUNT = 0x800, + ADS_UF_WORKSTATION_TRUST_ACCOUNT = 0x1000, + ADS_UF_SERVER_TRUST_ACCOUNT = 0x2000, + ADS_UF_DONT_EXPIRE_PASSWD = 0x10000, + ADS_UF_MNS_LOGON_ACCOUNT = 0x20000, + ADS_UF_SMARTCARD_REQUIRED = 0x40000, + ADS_UF_TRUSTED_FOR_DELEGATION = 0x80000, + ADS_UF_NOT_DELEGATED = 0x100000, + ADS_UF_USE_DES_KEY_ONLY = 0x200000, + ADS_UF_DONT_REQUIRE_PREAUTH = 0x400000, + ADS_UF_PASSWORD_EXPIRED = 0x800000, + ADS_UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION = 0x1000000 + } ADS_USER_FLAG_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0048_0001 + { + ADS_RIGHT_DELETE = 0x10000, + ADS_RIGHT_READ_CONTROL = 0x20000, + ADS_RIGHT_WRITE_DAC = 0x40000, + ADS_RIGHT_WRITE_OWNER = 0x80000, + ADS_RIGHT_SYNCHRONIZE = 0x100000, + ADS_RIGHT_ACCESS_SYSTEM_SECURITY = 0x1000000, + ADS_RIGHT_GENERIC_READ = 0x80000000, + ADS_RIGHT_GENERIC_WRITE = 0x40000000, + ADS_RIGHT_GENERIC_EXECUTE = 0x20000000, + ADS_RIGHT_GENERIC_ALL = 0x10000000, + ADS_RIGHT_DS_CREATE_CHILD = 0x1, + ADS_RIGHT_DS_DELETE_CHILD = 0x2, + ADS_RIGHT_ACTRL_DS_LIST = 0x4, + ADS_RIGHT_DS_SELF = 0x8, + ADS_RIGHT_DS_READ_PROP = 0x10, + ADS_RIGHT_DS_WRITE_PROP = 0x20, + ADS_RIGHT_DS_DELETE_TREE = 0x40, + ADS_RIGHT_DS_LIST_OBJECT = 0x80, + ADS_RIGHT_DS_CONTROL_ACCESS = 0x100 + } ADS_RIGHTS_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0048_0002 + { + ADS_ACETYPE_ACCESS_ALLOWED = 0, + ADS_ACETYPE_ACCESS_DENIED = 0x1, + ADS_ACETYPE_SYSTEM_AUDIT = 0x2, + ADS_ACETYPE_ACCESS_ALLOWED_OBJECT = 0x5, + ADS_ACETYPE_ACCESS_DENIED_OBJECT = 0x6, + ADS_ACETYPE_SYSTEM_AUDIT_OBJECT = 0x7, + ADS_ACETYPE_SYSTEM_ALARM_OBJECT = 0x8, + ADS_ACETYPE_ACCESS_ALLOWED_CALLBACK = 0x9, + ADS_ACETYPE_ACCESS_DENIED_CALLBACK = 0xa, + ADS_ACETYPE_ACCESS_ALLOWED_CALLBACK_OBJECT = 0xb, + ADS_ACETYPE_ACCESS_DENIED_CALLBACK_OBJECT = 0xc, + ADS_ACETYPE_SYSTEM_AUDIT_CALLBACK = 0xd, + ADS_ACETYPE_SYSTEM_ALARM_CALLBACK = 0xe, + ADS_ACETYPE_SYSTEM_AUDIT_CALLBACK_OBJECT = 0xf, + ADS_ACETYPE_SYSTEM_ALARM_CALLBACK_OBJECT = 0x10 + } ADS_ACETYPE_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0048_0003 + { + ADS_ACEFLAG_INHERIT_ACE = 0x2, + ADS_ACEFLAG_NO_PROPAGATE_INHERIT_ACE = 0x4, + ADS_ACEFLAG_INHERIT_ONLY_ACE = 0x8, + ADS_ACEFLAG_INHERITED_ACE = 0x10, + ADS_ACEFLAG_VALID_INHERIT_FLAGS = 0x1f, + ADS_ACEFLAG_SUCCESSFUL_ACCESS = 0x40, + ADS_ACEFLAG_FAILED_ACCESS = 0x80 + } ADS_ACEFLAG_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0048_0004 + { + ADS_FLAG_OBJECT_TYPE_PRESENT = 0x1, + ADS_FLAG_INHERITED_OBJECT_TYPE_PRESENT = 0x2 + } ADS_FLAGTYPE_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0048_0005 + { + ADS_SD_CONTROL_SE_OWNER_DEFAULTED = 0x1, + ADS_SD_CONTROL_SE_GROUP_DEFAULTED = 0x2, + ADS_SD_CONTROL_SE_DACL_PRESENT = 0x4, + ADS_SD_CONTROL_SE_DACL_DEFAULTED = 0x8, + ADS_SD_CONTROL_SE_SACL_PRESENT = 0x10, + ADS_SD_CONTROL_SE_SACL_DEFAULTED = 0x20, + ADS_SD_CONTROL_SE_DACL_AUTO_INHERIT_REQ = 0x100, + ADS_SD_CONTROL_SE_SACL_AUTO_INHERIT_REQ = 0x200, + ADS_SD_CONTROL_SE_DACL_AUTO_INHERITED = 0x400, + ADS_SD_CONTROL_SE_SACL_AUTO_INHERITED = 0x800, + ADS_SD_CONTROL_SE_DACL_PROTECTED = 0x1000, + ADS_SD_CONTROL_SE_SACL_PROTECTED = 0x2000, + ADS_SD_CONTROL_SE_SELF_RELATIVE = 0x8000 + } ADS_SD_CONTROL_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0048_0006 + { + ADS_SD_REVISION_DS = 4 + } ADS_SD_REVISION_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0050_0001 + { + ADS_NAME_TYPE_1779 = 1, + ADS_NAME_TYPE_CANONICAL = 2, + ADS_NAME_TYPE_NT4 = 3, + ADS_NAME_TYPE_DISPLAY = 4, + ADS_NAME_TYPE_DOMAIN_SIMPLE = 5, + ADS_NAME_TYPE_ENTERPRISE_SIMPLE = 6, + ADS_NAME_TYPE_GUID = 7, + ADS_NAME_TYPE_UNKNOWN = 8, + ADS_NAME_TYPE_USER_PRINCIPAL_NAME = 9, + ADS_NAME_TYPE_CANONICAL_EX = 10, + ADS_NAME_TYPE_SERVICE_PRINCIPAL_NAME = 11, + ADS_NAME_TYPE_SID_OR_SID_HISTORY_NAME = 12 + } ADS_NAME_TYPE_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0050_0002 + { + ADS_NAME_INITTYPE_DOMAIN = 1, + ADS_NAME_INITTYPE_SERVER = 2, + ADS_NAME_INITTYPE_GC = 3 + } ADS_NAME_INITTYPE_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0077_0001 + { + ADS_OPTION_SERVERNAME = 0, + ADS_OPTION_REFERRALS = ( ADS_OPTION_SERVERNAME + 1 ) , + ADS_OPTION_PAGE_SIZE = ( ADS_OPTION_REFERRALS + 1 ) , + ADS_OPTION_SECURITY_MASK = ( ADS_OPTION_PAGE_SIZE + 1 ) , + ADS_OPTION_MUTUAL_AUTH_STATUS = ( ADS_OPTION_SECURITY_MASK + 1 ) , + ADS_OPTION_QUOTA = ( ADS_OPTION_MUTUAL_AUTH_STATUS + 1 ) , + ADS_OPTION_PASSWORD_PORTNUMBER = ( ADS_OPTION_QUOTA + 1 ) , + ADS_OPTION_PASSWORD_METHOD = ( ADS_OPTION_PASSWORD_PORTNUMBER + 1 ) , + ADS_OPTION_ACCUMULATIVE_MODIFICATION = ( ADS_OPTION_PASSWORD_METHOD + 1 ) , + ADS_OPTION_SKIP_SID_LOOKUP = ( ADS_OPTION_ACCUMULATIVE_MODIFICATION + 1 ) + } ADS_OPTION_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0077_0002 + { + ADS_SECURITY_INFO_OWNER = 0x1, + ADS_SECURITY_INFO_GROUP = 0x2, + ADS_SECURITY_INFO_DACL = 0x4, + ADS_SECURITY_INFO_SACL = 0x8 + } ADS_SECURITY_INFO_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0078_0001 + { + ADS_SETTYPE_FULL = 1, + ADS_SETTYPE_PROVIDER = 2, + ADS_SETTYPE_SERVER = 3, + ADS_SETTYPE_DN = 4 + } ADS_SETTYPE_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0078_0002 + { + ADS_FORMAT_WINDOWS = 1, + ADS_FORMAT_WINDOWS_NO_SERVER = 2, + ADS_FORMAT_WINDOWS_DN = 3, + ADS_FORMAT_WINDOWS_PARENT = 4, + ADS_FORMAT_X500 = 5, + ADS_FORMAT_X500_NO_SERVER = 6, + ADS_FORMAT_X500_DN = 7, + ADS_FORMAT_X500_PARENT = 8, + ADS_FORMAT_SERVER = 9, + ADS_FORMAT_PROVIDER = 10, + ADS_FORMAT_LEAF = 11 + } ADS_FORMAT_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0078_0003 + { + ADS_DISPLAY_FULL = 1, + ADS_DISPLAY_VALUE_ONLY = 2 + } ADS_DISPLAY_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0078_0004 + { + ADS_ESCAPEDMODE_DEFAULT = 1, + ADS_ESCAPEDMODE_ON = 2, + ADS_ESCAPEDMODE_OFF = 3, + ADS_ESCAPEDMODE_OFF_EX = 4 + } ADS_ESCAPE_MODE_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0088_0001 + { + ADS_PATH_FILE = 1, + ADS_PATH_FILESHARE = 2, + ADS_PATH_REGISTRY = 3 + } ADS_PATHTYPE_ENUM; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_ads_0001_0088_0002 + { + ADS_SD_FORMAT_IID = 1, + ADS_SD_FORMAT_RAW = 2, + ADS_SD_FORMAT_HEXSTRING = 3 + } ADS_SD_FORMAT_ENUM; + + +EXTERN_C const IID LIBID_ActiveDs; + +#ifndef __IADs_INTERFACE_DEFINED__ +#define __IADs_INTERFACE_DEFINED__ + +/* interface IADs */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fd8256d0-fd15-11ce-abc4-02608c9e7553") + IADs : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Class( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_GUID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ADsPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Parent( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Schema( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetInfo( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetInfo( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Get( + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Put( + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetEx( + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE PutEx( + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetInfoEx( + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADs * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADs * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADs * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADs * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADs * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADs * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADs * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADs * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADs * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADs * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADs * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADs * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADs * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADs * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADs * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADs * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADs * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADs * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + END_INTERFACE + } IADsVtbl; + + interface IADs + { + CONST_VTBL struct IADsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADs_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADs_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADs_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADs_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADs_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADs_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADs_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADs_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADs_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADs_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADs_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADs_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADs_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADs_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADs_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADs_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADs_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADs_INTERFACE_DEFINED__ */ + + +#ifndef __IADsContainer_INTERFACE_DEFINED__ +#define __IADsContainer_INTERFACE_DEFINED__ + +/* interface IADsContainer */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsContainer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("001677d0-fd16-11ce-abc4-02608c9e7553") + IADsContainer : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Filter( + /* [retval][out] */ __RPC__out VARIANT *pVar) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Filter( + /* [in] */ VARIANT Var) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Hints( + /* [retval][out] */ __RPC__out VARIANT *pvFilter) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Hints( + /* [in] */ VARIANT vHints) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetObject( + /* [in] */ __RPC__in BSTR ClassName, + /* [in] */ __RPC__in BSTR RelativeName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppObject) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Create( + /* [in] */ __RPC__in BSTR ClassName, + /* [in] */ __RPC__in BSTR RelativeName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppObject) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ __RPC__in BSTR bstrClassName, + /* [in] */ __RPC__in BSTR bstrRelativeName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE CopyHere( + /* [in] */ __RPC__in BSTR SourceName, + /* [in] */ __RPC__in BSTR NewName, + /* [out][retval] */ __RPC__deref_out_opt IDispatch **ppObject) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE MoveHere( + /* [in] */ __RPC__in BSTR SourceName, + /* [in] */ __RPC__in BSTR NewName, + /* [out][retval] */ __RPC__deref_out_opt IDispatch **ppObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsContainerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsContainer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsContainer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsContainer * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsContainer * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsContainer * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsContainer * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsContainer * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsContainer, get_Count) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IADsContainer * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsContainer, get__NewEnum) + /* [id][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IADsContainer * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **retval); + + DECLSPEC_XFGVIRT(IADsContainer, get_Filter) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in IADsContainer * This, + /* [retval][out] */ __RPC__out VARIANT *pVar); + + DECLSPEC_XFGVIRT(IADsContainer, put_Filter) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( + __RPC__in IADsContainer * This, + /* [in] */ VARIANT Var); + + DECLSPEC_XFGVIRT(IADsContainer, get_Hints) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Hints )( + __RPC__in IADsContainer * This, + /* [retval][out] */ __RPC__out VARIANT *pvFilter); + + DECLSPEC_XFGVIRT(IADsContainer, put_Hints) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Hints )( + __RPC__in IADsContainer * This, + /* [in] */ VARIANT vHints); + + DECLSPEC_XFGVIRT(IADsContainer, GetObject) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetObject )( + __RPC__in IADsContainer * This, + /* [in] */ __RPC__in BSTR ClassName, + /* [in] */ __RPC__in BSTR RelativeName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppObject); + + DECLSPEC_XFGVIRT(IADsContainer, Create) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Create )( + __RPC__in IADsContainer * This, + /* [in] */ __RPC__in BSTR ClassName, + /* [in] */ __RPC__in BSTR RelativeName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppObject); + + DECLSPEC_XFGVIRT(IADsContainer, Delete) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IADsContainer * This, + /* [in] */ __RPC__in BSTR bstrClassName, + /* [in] */ __RPC__in BSTR bstrRelativeName); + + DECLSPEC_XFGVIRT(IADsContainer, CopyHere) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CopyHere )( + __RPC__in IADsContainer * This, + /* [in] */ __RPC__in BSTR SourceName, + /* [in] */ __RPC__in BSTR NewName, + /* [out][retval] */ __RPC__deref_out_opt IDispatch **ppObject); + + DECLSPEC_XFGVIRT(IADsContainer, MoveHere) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *MoveHere )( + __RPC__in IADsContainer * This, + /* [in] */ __RPC__in BSTR SourceName, + /* [in] */ __RPC__in BSTR NewName, + /* [out][retval] */ __RPC__deref_out_opt IDispatch **ppObject); + + END_INTERFACE + } IADsContainerVtbl; + + interface IADsContainer + { + CONST_VTBL struct IADsContainerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsContainer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsContainer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsContainer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsContainer_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsContainer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsContainer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsContainer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsContainer_get_Count(This,retval) \ + ( (This)->lpVtbl -> get_Count(This,retval) ) + +#define IADsContainer_get__NewEnum(This,retval) \ + ( (This)->lpVtbl -> get__NewEnum(This,retval) ) + +#define IADsContainer_get_Filter(This,pVar) \ + ( (This)->lpVtbl -> get_Filter(This,pVar) ) + +#define IADsContainer_put_Filter(This,Var) \ + ( (This)->lpVtbl -> put_Filter(This,Var) ) + +#define IADsContainer_get_Hints(This,pvFilter) \ + ( (This)->lpVtbl -> get_Hints(This,pvFilter) ) + +#define IADsContainer_put_Hints(This,vHints) \ + ( (This)->lpVtbl -> put_Hints(This,vHints) ) + +#define IADsContainer_GetObject(This,ClassName,RelativeName,ppObject) \ + ( (This)->lpVtbl -> GetObject(This,ClassName,RelativeName,ppObject) ) + +#define IADsContainer_Create(This,ClassName,RelativeName,ppObject) \ + ( (This)->lpVtbl -> Create(This,ClassName,RelativeName,ppObject) ) + +#define IADsContainer_Delete(This,bstrClassName,bstrRelativeName) \ + ( (This)->lpVtbl -> Delete(This,bstrClassName,bstrRelativeName) ) + +#define IADsContainer_CopyHere(This,SourceName,NewName,ppObject) \ + ( (This)->lpVtbl -> CopyHere(This,SourceName,NewName,ppObject) ) + +#define IADsContainer_MoveHere(This,SourceName,NewName,ppObject) \ + ( (This)->lpVtbl -> MoveHere(This,SourceName,NewName,ppObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsContainer_INTERFACE_DEFINED__ */ + + +#ifndef __IADsCollection_INTERFACE_DEFINED__ +#define __IADsCollection_INTERFACE_DEFINED__ + +/* interface IADsCollection */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("72b945e0-253b-11cf-a988-00aa006bc149") + IADsCollection : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumerator) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vItem) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ __RPC__in BSTR bstrItemToBeRemoved) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetObject( + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvItem) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsCollection, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IADsCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumerator); + + DECLSPEC_XFGVIRT(IADsCollection, Add) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IADsCollection * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vItem); + + DECLSPEC_XFGVIRT(IADsCollection, Remove) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IADsCollection * This, + /* [in] */ __RPC__in BSTR bstrItemToBeRemoved); + + DECLSPEC_XFGVIRT(IADsCollection, GetObject) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetObject )( + __RPC__in IADsCollection * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvItem); + + END_INTERFACE + } IADsCollectionVtbl; + + interface IADsCollection + { + CONST_VTBL struct IADsCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsCollection_get__NewEnum(This,ppEnumerator) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumerator) ) + +#define IADsCollection_Add(This,bstrName,vItem) \ + ( (This)->lpVtbl -> Add(This,bstrName,vItem) ) + +#define IADsCollection_Remove(This,bstrItemToBeRemoved) \ + ( (This)->lpVtbl -> Remove(This,bstrItemToBeRemoved) ) + +#define IADsCollection_GetObject(This,bstrName,pvItem) \ + ( (This)->lpVtbl -> GetObject(This,bstrName,pvItem) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IADsMembers_INTERFACE_DEFINED__ +#define __IADsMembers_INTERFACE_DEFINED__ + +/* interface IADsMembers */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsMembers; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("451a0030-72ec-11cf-b03b-00aa006e0975") + IADsMembers : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumerator) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Filter( + /* [retval][out] */ __RPC__out VARIANT *pvFilter) = 0; + + virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Filter( + /* [in] */ VARIANT pvFilter) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsMembersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsMembers * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsMembers * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsMembers * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsMembers * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsMembers * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsMembers * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsMembers * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsMembers, get_Count) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IADsMembers * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(IADsMembers, get__NewEnum) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IADsMembers * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppEnumerator); + + DECLSPEC_XFGVIRT(IADsMembers, get_Filter) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in IADsMembers * This, + /* [retval][out] */ __RPC__out VARIANT *pvFilter); + + DECLSPEC_XFGVIRT(IADsMembers, put_Filter) + /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( + __RPC__in IADsMembers * This, + /* [in] */ VARIANT pvFilter); + + END_INTERFACE + } IADsMembersVtbl; + + interface IADsMembers + { + CONST_VTBL struct IADsMembersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsMembers_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsMembers_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsMembers_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsMembers_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsMembers_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsMembers_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsMembers_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsMembers_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IADsMembers_get__NewEnum(This,ppEnumerator) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumerator) ) + +#define IADsMembers_get_Filter(This,pvFilter) \ + ( (This)->lpVtbl -> get_Filter(This,pvFilter) ) + +#define IADsMembers_put_Filter(This,pvFilter) \ + ( (This)->lpVtbl -> put_Filter(This,pvFilter) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsMembers_INTERFACE_DEFINED__ */ + + +#ifndef __IADsPropertyList_INTERFACE_DEFINED__ +#define __IADsPropertyList_INTERFACE_DEFINED__ + +/* interface IADsPropertyList */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPropertyList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c6f602b6-8f69-11d0-8528-00c04fd8d503") + IADsPropertyList : public IDispatch + { + public: + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_PropertyCount( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Next( + /* [retval][out] */ __RPC__out VARIANT *pVariant) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ long cElements) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Item( + /* [in] */ VARIANT varIndex, + /* [retval][out] */ __RPC__out VARIANT *pVariant) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetPropertyItem( + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ LONG lnADsType, + /* [retval][out] */ __RPC__out VARIANT *pVariant) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE PutPropertyItem( + /* [in] */ VARIANT varData) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ResetPropertyItem( + /* [in] */ VARIANT varEntry) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE PurgePropertyList( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPropertyListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPropertyList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPropertyList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPropertyList * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPropertyList * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPropertyList * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPropertyList * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPropertyList * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsPropertyList, get_PropertyCount) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyCount )( + __RPC__in IADsPropertyList * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(IADsPropertyList, Next) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IADsPropertyList * This, + /* [retval][out] */ __RPC__out VARIANT *pVariant); + + DECLSPEC_XFGVIRT(IADsPropertyList, Skip) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IADsPropertyList * This, + /* [in] */ long cElements); + + DECLSPEC_XFGVIRT(IADsPropertyList, Reset) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IADsPropertyList * This); + + DECLSPEC_XFGVIRT(IADsPropertyList, Item) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Item )( + __RPC__in IADsPropertyList * This, + /* [in] */ VARIANT varIndex, + /* [retval][out] */ __RPC__out VARIANT *pVariant); + + DECLSPEC_XFGVIRT(IADsPropertyList, GetPropertyItem) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetPropertyItem )( + __RPC__in IADsPropertyList * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ LONG lnADsType, + /* [retval][out] */ __RPC__out VARIANT *pVariant); + + DECLSPEC_XFGVIRT(IADsPropertyList, PutPropertyItem) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutPropertyItem )( + __RPC__in IADsPropertyList * This, + /* [in] */ VARIANT varData); + + DECLSPEC_XFGVIRT(IADsPropertyList, ResetPropertyItem) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ResetPropertyItem )( + __RPC__in IADsPropertyList * This, + /* [in] */ VARIANT varEntry); + + DECLSPEC_XFGVIRT(IADsPropertyList, PurgePropertyList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PurgePropertyList )( + __RPC__in IADsPropertyList * This); + + END_INTERFACE + } IADsPropertyListVtbl; + + interface IADsPropertyList + { + CONST_VTBL struct IADsPropertyListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPropertyList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPropertyList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPropertyList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPropertyList_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPropertyList_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPropertyList_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPropertyList_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPropertyList_get_PropertyCount(This,plCount) \ + ( (This)->lpVtbl -> get_PropertyCount(This,plCount) ) + +#define IADsPropertyList_Next(This,pVariant) \ + ( (This)->lpVtbl -> Next(This,pVariant) ) + +#define IADsPropertyList_Skip(This,cElements) \ + ( (This)->lpVtbl -> Skip(This,cElements) ) + +#define IADsPropertyList_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IADsPropertyList_Item(This,varIndex,pVariant) \ + ( (This)->lpVtbl -> Item(This,varIndex,pVariant) ) + +#define IADsPropertyList_GetPropertyItem(This,bstrName,lnADsType,pVariant) \ + ( (This)->lpVtbl -> GetPropertyItem(This,bstrName,lnADsType,pVariant) ) + +#define IADsPropertyList_PutPropertyItem(This,varData) \ + ( (This)->lpVtbl -> PutPropertyItem(This,varData) ) + +#define IADsPropertyList_ResetPropertyItem(This,varEntry) \ + ( (This)->lpVtbl -> ResetPropertyItem(This,varEntry) ) + +#define IADsPropertyList_PurgePropertyList(This) \ + ( (This)->lpVtbl -> PurgePropertyList(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPropertyList_INTERFACE_DEFINED__ */ + + +#ifndef __IADsPropertyEntry_INTERFACE_DEFINED__ +#define __IADsPropertyEntry_INTERFACE_DEFINED__ + +/* interface IADsPropertyEntry */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPropertyEntry; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("05792c8e-941f-11d0-8529-00c04fd8d503") + IADsPropertyEntry : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ADsType( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ADsType( + /* [in] */ long lnADsType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ControlCode( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ControlCode( + /* [in] */ long lnControlCode) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Values( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Values( + /* [in] */ VARIANT vValues) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPropertyEntryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPropertyEntry * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPropertyEntry * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPropertyEntry * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPropertyEntry * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPropertyEntry * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPropertyEntry * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPropertyEntry * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsPropertyEntry, Clear) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IADsPropertyEntry * This); + + DECLSPEC_XFGVIRT(IADsPropertyEntry, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsPropertyEntry * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPropertyEntry, put_Name) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IADsPropertyEntry * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IADsPropertyEntry, get_ADsType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsType )( + __RPC__in IADsPropertyEntry * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPropertyEntry, put_ADsType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ADsType )( + __RPC__in IADsPropertyEntry * This, + /* [in] */ long lnADsType); + + DECLSPEC_XFGVIRT(IADsPropertyEntry, get_ControlCode) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ControlCode )( + __RPC__in IADsPropertyEntry * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPropertyEntry, put_ControlCode) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ControlCode )( + __RPC__in IADsPropertyEntry * This, + /* [in] */ long lnControlCode); + + DECLSPEC_XFGVIRT(IADsPropertyEntry, get_Values) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Values )( + __RPC__in IADsPropertyEntry * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsPropertyEntry, put_Values) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Values )( + __RPC__in IADsPropertyEntry * This, + /* [in] */ VARIANT vValues); + + END_INTERFACE + } IADsPropertyEntryVtbl; + + interface IADsPropertyEntry + { + CONST_VTBL struct IADsPropertyEntryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPropertyEntry_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPropertyEntry_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPropertyEntry_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPropertyEntry_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPropertyEntry_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPropertyEntry_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPropertyEntry_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPropertyEntry_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IADsPropertyEntry_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsPropertyEntry_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IADsPropertyEntry_get_ADsType(This,retval) \ + ( (This)->lpVtbl -> get_ADsType(This,retval) ) + +#define IADsPropertyEntry_put_ADsType(This,lnADsType) \ + ( (This)->lpVtbl -> put_ADsType(This,lnADsType) ) + +#define IADsPropertyEntry_get_ControlCode(This,retval) \ + ( (This)->lpVtbl -> get_ControlCode(This,retval) ) + +#define IADsPropertyEntry_put_ControlCode(This,lnControlCode) \ + ( (This)->lpVtbl -> put_ControlCode(This,lnControlCode) ) + +#define IADsPropertyEntry_get_Values(This,retval) \ + ( (This)->lpVtbl -> get_Values(This,retval) ) + +#define IADsPropertyEntry_put_Values(This,vValues) \ + ( (This)->lpVtbl -> put_Values(This,vValues) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPropertyEntry_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_PropertyEntry; + +#ifdef __cplusplus + +class DECLSPEC_UUID("72d3edc2-a4c4-11d0-8533-00c04fd8d503") +PropertyEntry; +#endif + +#ifndef __IADsPropertyValue_INTERFACE_DEFINED__ +#define __IADsPropertyValue_INTERFACE_DEFINED__ + +/* interface IADsPropertyValue */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPropertyValue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79fa9ad0-a97c-11d0-8534-00c04fd8d503") + IADsPropertyValue : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ADsType( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ADsType( + /* [in] */ long lnADsType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DNString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DNString( + /* [in] */ __RPC__in BSTR bstrDNString) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CaseExactString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_CaseExactString( + /* [in] */ __RPC__in BSTR bstrCaseExactString) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CaseIgnoreString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_CaseIgnoreString( + /* [in] */ __RPC__in BSTR bstrCaseIgnoreString) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PrintableString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PrintableString( + /* [in] */ __RPC__in BSTR bstrPrintableString) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_NumericString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_NumericString( + /* [in] */ __RPC__in BSTR bstrNumericString) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Boolean( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Boolean( + /* [in] */ long lnBoolean) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Integer( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Integer( + /* [in] */ long lnInteger) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OctetString( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OctetString( + /* [in] */ VARIANT vOctetString) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SecurityDescriptor( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SecurityDescriptor( + /* [in] */ __RPC__in_opt IDispatch *pSecurityDescriptor) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LargeInteger( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LargeInteger( + /* [in] */ __RPC__in_opt IDispatch *pLargeInteger) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_UTCTime( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_UTCTime( + /* [in] */ DATE daUTCTime) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPropertyValueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPropertyValue * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPropertyValue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPropertyValue * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPropertyValue * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPropertyValue * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPropertyValue * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPropertyValue * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsPropertyValue, Clear) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IADsPropertyValue * This); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_ADsType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsType )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_ADsType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ADsType )( + __RPC__in IADsPropertyValue * This, + /* [in] */ long lnADsType); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_DNString) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DNString )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_DNString) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DNString )( + __RPC__in IADsPropertyValue * This, + /* [in] */ __RPC__in BSTR bstrDNString); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_CaseExactString) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CaseExactString )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_CaseExactString) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CaseExactString )( + __RPC__in IADsPropertyValue * This, + /* [in] */ __RPC__in BSTR bstrCaseExactString); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_CaseIgnoreString) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CaseIgnoreString )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_CaseIgnoreString) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CaseIgnoreString )( + __RPC__in IADsPropertyValue * This, + /* [in] */ __RPC__in BSTR bstrCaseIgnoreString); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_PrintableString) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrintableString )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_PrintableString) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PrintableString )( + __RPC__in IADsPropertyValue * This, + /* [in] */ __RPC__in BSTR bstrPrintableString); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_NumericString) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumericString )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_NumericString) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NumericString )( + __RPC__in IADsPropertyValue * This, + /* [in] */ __RPC__in BSTR bstrNumericString); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_Boolean) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Boolean )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_Boolean) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Boolean )( + __RPC__in IADsPropertyValue * This, + /* [in] */ long lnBoolean); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_Integer) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Integer )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_Integer) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Integer )( + __RPC__in IADsPropertyValue * This, + /* [in] */ long lnInteger); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_OctetString) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OctetString )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_OctetString) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OctetString )( + __RPC__in IADsPropertyValue * This, + /* [in] */ VARIANT vOctetString); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_SecurityDescriptor) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SecurityDescriptor )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_SecurityDescriptor) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SecurityDescriptor )( + __RPC__in IADsPropertyValue * This, + /* [in] */ __RPC__in_opt IDispatch *pSecurityDescriptor); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_LargeInteger) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LargeInteger )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_LargeInteger) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LargeInteger )( + __RPC__in IADsPropertyValue * This, + /* [in] */ __RPC__in_opt IDispatch *pLargeInteger); + + DECLSPEC_XFGVIRT(IADsPropertyValue, get_UTCTime) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UTCTime )( + __RPC__in IADsPropertyValue * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsPropertyValue, put_UTCTime) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UTCTime )( + __RPC__in IADsPropertyValue * This, + /* [in] */ DATE daUTCTime); + + END_INTERFACE + } IADsPropertyValueVtbl; + + interface IADsPropertyValue + { + CONST_VTBL struct IADsPropertyValueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPropertyValue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPropertyValue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPropertyValue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPropertyValue_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPropertyValue_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPropertyValue_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPropertyValue_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPropertyValue_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IADsPropertyValue_get_ADsType(This,retval) \ + ( (This)->lpVtbl -> get_ADsType(This,retval) ) + +#define IADsPropertyValue_put_ADsType(This,lnADsType) \ + ( (This)->lpVtbl -> put_ADsType(This,lnADsType) ) + +#define IADsPropertyValue_get_DNString(This,retval) \ + ( (This)->lpVtbl -> get_DNString(This,retval) ) + +#define IADsPropertyValue_put_DNString(This,bstrDNString) \ + ( (This)->lpVtbl -> put_DNString(This,bstrDNString) ) + +#define IADsPropertyValue_get_CaseExactString(This,retval) \ + ( (This)->lpVtbl -> get_CaseExactString(This,retval) ) + +#define IADsPropertyValue_put_CaseExactString(This,bstrCaseExactString) \ + ( (This)->lpVtbl -> put_CaseExactString(This,bstrCaseExactString) ) + +#define IADsPropertyValue_get_CaseIgnoreString(This,retval) \ + ( (This)->lpVtbl -> get_CaseIgnoreString(This,retval) ) + +#define IADsPropertyValue_put_CaseIgnoreString(This,bstrCaseIgnoreString) \ + ( (This)->lpVtbl -> put_CaseIgnoreString(This,bstrCaseIgnoreString) ) + +#define IADsPropertyValue_get_PrintableString(This,retval) \ + ( (This)->lpVtbl -> get_PrintableString(This,retval) ) + +#define IADsPropertyValue_put_PrintableString(This,bstrPrintableString) \ + ( (This)->lpVtbl -> put_PrintableString(This,bstrPrintableString) ) + +#define IADsPropertyValue_get_NumericString(This,retval) \ + ( (This)->lpVtbl -> get_NumericString(This,retval) ) + +#define IADsPropertyValue_put_NumericString(This,bstrNumericString) \ + ( (This)->lpVtbl -> put_NumericString(This,bstrNumericString) ) + +#define IADsPropertyValue_get_Boolean(This,retval) \ + ( (This)->lpVtbl -> get_Boolean(This,retval) ) + +#define IADsPropertyValue_put_Boolean(This,lnBoolean) \ + ( (This)->lpVtbl -> put_Boolean(This,lnBoolean) ) + +#define IADsPropertyValue_get_Integer(This,retval) \ + ( (This)->lpVtbl -> get_Integer(This,retval) ) + +#define IADsPropertyValue_put_Integer(This,lnInteger) \ + ( (This)->lpVtbl -> put_Integer(This,lnInteger) ) + +#define IADsPropertyValue_get_OctetString(This,retval) \ + ( (This)->lpVtbl -> get_OctetString(This,retval) ) + +#define IADsPropertyValue_put_OctetString(This,vOctetString) \ + ( (This)->lpVtbl -> put_OctetString(This,vOctetString) ) + +#define IADsPropertyValue_get_SecurityDescriptor(This,retval) \ + ( (This)->lpVtbl -> get_SecurityDescriptor(This,retval) ) + +#define IADsPropertyValue_put_SecurityDescriptor(This,pSecurityDescriptor) \ + ( (This)->lpVtbl -> put_SecurityDescriptor(This,pSecurityDescriptor) ) + +#define IADsPropertyValue_get_LargeInteger(This,retval) \ + ( (This)->lpVtbl -> get_LargeInteger(This,retval) ) + +#define IADsPropertyValue_put_LargeInteger(This,pLargeInteger) \ + ( (This)->lpVtbl -> put_LargeInteger(This,pLargeInteger) ) + +#define IADsPropertyValue_get_UTCTime(This,retval) \ + ( (This)->lpVtbl -> get_UTCTime(This,retval) ) + +#define IADsPropertyValue_put_UTCTime(This,daUTCTime) \ + ( (This)->lpVtbl -> put_UTCTime(This,daUTCTime) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPropertyValue_INTERFACE_DEFINED__ */ + + +#ifndef __IADsPropertyValue2_INTERFACE_DEFINED__ +#define __IADsPropertyValue2_INTERFACE_DEFINED__ + +/* interface IADsPropertyValue2 */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPropertyValue2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("306e831c-5bc7-11d1-a3b8-00c04fb950dc") + IADsPropertyValue2 : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetObjectProperty( + /* [out][in] */ __RPC__inout long *lnADsType, + /* [retval][out] */ __RPC__out VARIANT *pvProp) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE PutObjectProperty( + /* [in] */ long lnADsType, + /* [in] */ VARIANT vProp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPropertyValue2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPropertyValue2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPropertyValue2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPropertyValue2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPropertyValue2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPropertyValue2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPropertyValue2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPropertyValue2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsPropertyValue2, GetObjectProperty) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetObjectProperty )( + __RPC__in IADsPropertyValue2 * This, + /* [out][in] */ __RPC__inout long *lnADsType, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADsPropertyValue2, PutObjectProperty) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutObjectProperty )( + __RPC__in IADsPropertyValue2 * This, + /* [in] */ long lnADsType, + /* [in] */ VARIANT vProp); + + END_INTERFACE + } IADsPropertyValue2Vtbl; + + interface IADsPropertyValue2 + { + CONST_VTBL struct IADsPropertyValue2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPropertyValue2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPropertyValue2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPropertyValue2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPropertyValue2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPropertyValue2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPropertyValue2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPropertyValue2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPropertyValue2_GetObjectProperty(This,lnADsType,pvProp) \ + ( (This)->lpVtbl -> GetObjectProperty(This,lnADsType,pvProp) ) + +#define IADsPropertyValue2_PutObjectProperty(This,lnADsType,vProp) \ + ( (This)->lpVtbl -> PutObjectProperty(This,lnADsType,vProp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPropertyValue2_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_PropertyValue; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7b9e38b0-a97c-11d0-8534-00c04fd8d503") +PropertyValue; +#endif + +#ifndef __IPrivateDispatch_INTERFACE_DEFINED__ +#define __IPrivateDispatch_INTERFACE_DEFINED__ + +/* interface IPrivateDispatch */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IPrivateDispatch; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("86ab4bbe-65f6-11d1-8c13-00c04fd8d503") + IPrivateDispatch : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ADSIInitializeDispatchManager( + /* [in] */ long dwExtensionId) = 0; + + virtual HRESULT STDMETHODCALLTYPE ADSIGetTypeInfoCount( + /* [out] */ __RPC__out UINT *pctinfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE ADSIGetTypeInfo( + /* [in] */ UINT itinfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **pptinfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE ADSIGetIDsOfNames( + /* [in] */ __RPC__in REFIID riid, + /* [in] */ __RPC__deref_in_opt OLECHAR **rgszNames, + /* [in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [out] */ __RPC__out DISPID *rgdispid) = 0; + + virtual HRESULT STDMETHODCALLTYPE ADSIInvoke( + /* [in] */ DISPID dispidMember, + /* [in] */ __RPC__in REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [in] */ __RPC__in DISPPARAMS *pdispparams, + /* [out] */ __RPC__out VARIANT *pvarResult, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo, + /* [out] */ __RPC__out UINT *puArgErr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrivateDispatchVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPrivateDispatch * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPrivateDispatch * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPrivateDispatch * This); + + DECLSPEC_XFGVIRT(IPrivateDispatch, ADSIInitializeDispatchManager) + HRESULT ( STDMETHODCALLTYPE *ADSIInitializeDispatchManager )( + __RPC__in IPrivateDispatch * This, + /* [in] */ long dwExtensionId); + + DECLSPEC_XFGVIRT(IPrivateDispatch, ADSIGetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *ADSIGetTypeInfoCount )( + __RPC__in IPrivateDispatch * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IPrivateDispatch, ADSIGetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *ADSIGetTypeInfo )( + __RPC__in IPrivateDispatch * This, + /* [in] */ UINT itinfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **pptinfo); + + DECLSPEC_XFGVIRT(IPrivateDispatch, ADSIGetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *ADSIGetIDsOfNames )( + __RPC__in IPrivateDispatch * This, + /* [in] */ __RPC__in REFIID riid, + /* [in] */ __RPC__deref_in_opt OLECHAR **rgszNames, + /* [in] */ UINT cNames, + /* [in] */ LCID lcid, + /* [out] */ __RPC__out DISPID *rgdispid); + + DECLSPEC_XFGVIRT(IPrivateDispatch, ADSIInvoke) + HRESULT ( STDMETHODCALLTYPE *ADSIInvoke )( + __RPC__in IPrivateDispatch * This, + /* [in] */ DISPID dispidMember, + /* [in] */ __RPC__in REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [in] */ __RPC__in DISPPARAMS *pdispparams, + /* [out] */ __RPC__out VARIANT *pvarResult, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo, + /* [out] */ __RPC__out UINT *puArgErr); + + END_INTERFACE + } IPrivateDispatchVtbl; + + interface IPrivateDispatch + { + CONST_VTBL struct IPrivateDispatchVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrivateDispatch_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrivateDispatch_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrivateDispatch_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrivateDispatch_ADSIInitializeDispatchManager(This,dwExtensionId) \ + ( (This)->lpVtbl -> ADSIInitializeDispatchManager(This,dwExtensionId) ) + +#define IPrivateDispatch_ADSIGetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> ADSIGetTypeInfoCount(This,pctinfo) ) + +#define IPrivateDispatch_ADSIGetTypeInfo(This,itinfo,lcid,pptinfo) \ + ( (This)->lpVtbl -> ADSIGetTypeInfo(This,itinfo,lcid,pptinfo) ) + +#define IPrivateDispatch_ADSIGetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid) \ + ( (This)->lpVtbl -> ADSIGetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid) ) + +#define IPrivateDispatch_ADSIInvoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr) \ + ( (This)->lpVtbl -> ADSIInvoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrivateDispatch_INTERFACE_DEFINED__ */ + + +#ifndef __IPrivateUnknown_INTERFACE_DEFINED__ +#define __IPrivateUnknown_INTERFACE_DEFINED__ + +/* interface IPrivateUnknown */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IPrivateUnknown; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("89126bab-6ead-11d1-8c18-00c04fd8d503") + IPrivateUnknown : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ADSIInitializeObject( + /* [in] */ __RPC__in BSTR lpszUserName, + /* [in] */ __RPC__in BSTR lpszPassword, + /* [in] */ long lnReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE ADSIReleaseObject( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrivateUnknownVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPrivateUnknown * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPrivateUnknown * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPrivateUnknown * This); + + DECLSPEC_XFGVIRT(IPrivateUnknown, ADSIInitializeObject) + HRESULT ( STDMETHODCALLTYPE *ADSIInitializeObject )( + __RPC__in IPrivateUnknown * This, + /* [in] */ __RPC__in BSTR lpszUserName, + /* [in] */ __RPC__in BSTR lpszPassword, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IPrivateUnknown, ADSIReleaseObject) + HRESULT ( STDMETHODCALLTYPE *ADSIReleaseObject )( + __RPC__in IPrivateUnknown * This); + + END_INTERFACE + } IPrivateUnknownVtbl; + + interface IPrivateUnknown + { + CONST_VTBL struct IPrivateUnknownVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrivateUnknown_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrivateUnknown_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrivateUnknown_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrivateUnknown_ADSIInitializeObject(This,lpszUserName,lpszPassword,lnReserved) \ + ( (This)->lpVtbl -> ADSIInitializeObject(This,lpszUserName,lpszPassword,lnReserved) ) + +#define IPrivateUnknown_ADSIReleaseObject(This) \ + ( (This)->lpVtbl -> ADSIReleaseObject(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrivateUnknown_INTERFACE_DEFINED__ */ + + +#ifndef __IADsExtension_INTERFACE_DEFINED__ +#define __IADsExtension_INTERFACE_DEFINED__ + +/* interface IADsExtension */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IADsExtension; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3d35553c-d2b0-11d1-b17b-0000f87593a0") + IADsExtension : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Operate( + /* [in] */ DWORD dwCode, + /* [in] */ VARIANT varData1, + /* [in] */ VARIANT varData2, + /* [in] */ VARIANT varData3) = 0; + + virtual HRESULT STDMETHODCALLTYPE PrivateGetIDsOfNames( + /* [in] */ __RPC__in REFIID riid, + /* [in] */ __RPC__deref_in_opt OLECHAR **rgszNames, + /* [in] */ unsigned int cNames, + /* [in] */ LCID lcid, + /* [out] */ __RPC__out DISPID *rgDispid) = 0; + + virtual HRESULT STDMETHODCALLTYPE PrivateInvoke( + /* [in] */ DISPID dispidMember, + /* [in] */ __RPC__in REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [in] */ __RPC__in DISPPARAMS *pdispparams, + /* [out] */ __RPC__out VARIANT *pvarResult, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo, + /* [out] */ __RPC__out unsigned int *puArgErr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsExtensionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsExtension * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsExtension * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsExtension * This); + + DECLSPEC_XFGVIRT(IADsExtension, Operate) + HRESULT ( STDMETHODCALLTYPE *Operate )( + __RPC__in IADsExtension * This, + /* [in] */ DWORD dwCode, + /* [in] */ VARIANT varData1, + /* [in] */ VARIANT varData2, + /* [in] */ VARIANT varData3); + + DECLSPEC_XFGVIRT(IADsExtension, PrivateGetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *PrivateGetIDsOfNames )( + __RPC__in IADsExtension * This, + /* [in] */ __RPC__in REFIID riid, + /* [in] */ __RPC__deref_in_opt OLECHAR **rgszNames, + /* [in] */ unsigned int cNames, + /* [in] */ LCID lcid, + /* [out] */ __RPC__out DISPID *rgDispid); + + DECLSPEC_XFGVIRT(IADsExtension, PrivateInvoke) + HRESULT ( STDMETHODCALLTYPE *PrivateInvoke )( + __RPC__in IADsExtension * This, + /* [in] */ DISPID dispidMember, + /* [in] */ __RPC__in REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [in] */ __RPC__in DISPPARAMS *pdispparams, + /* [out] */ __RPC__out VARIANT *pvarResult, + /* [out] */ __RPC__out EXCEPINFO *pexcepinfo, + /* [out] */ __RPC__out unsigned int *puArgErr); + + END_INTERFACE + } IADsExtensionVtbl; + + interface IADsExtension + { + CONST_VTBL struct IADsExtensionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsExtension_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsExtension_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsExtension_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsExtension_Operate(This,dwCode,varData1,varData2,varData3) \ + ( (This)->lpVtbl -> Operate(This,dwCode,varData1,varData2,varData3) ) + +#define IADsExtension_PrivateGetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispid) \ + ( (This)->lpVtbl -> PrivateGetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispid) ) + +#define IADsExtension_PrivateInvoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr) \ + ( (This)->lpVtbl -> PrivateInvoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsExtension_INTERFACE_DEFINED__ */ + + +#ifndef __IADsDeleteOps_INTERFACE_DEFINED__ +#define __IADsDeleteOps_INTERFACE_DEFINED__ + +/* interface IADsDeleteOps */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsDeleteOps; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b2bd0902-8878-11d1-8c21-00c04fd8d503") + IADsDeleteOps : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE DeleteObject( + /* [in] */ long lnFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsDeleteOpsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsDeleteOps * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsDeleteOps * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsDeleteOps * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsDeleteOps * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsDeleteOps * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsDeleteOps * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsDeleteOps * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsDeleteOps, DeleteObject) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DeleteObject )( + __RPC__in IADsDeleteOps * This, + /* [in] */ long lnFlags); + + END_INTERFACE + } IADsDeleteOpsVtbl; + + interface IADsDeleteOps + { + CONST_VTBL struct IADsDeleteOpsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsDeleteOps_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsDeleteOps_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsDeleteOps_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsDeleteOps_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsDeleteOps_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsDeleteOps_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsDeleteOps_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsDeleteOps_DeleteObject(This,lnFlags) \ + ( (This)->lpVtbl -> DeleteObject(This,lnFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsDeleteOps_INTERFACE_DEFINED__ */ + + +#ifndef __IADsNamespaces_INTERFACE_DEFINED__ +#define __IADsNamespaces_INTERFACE_DEFINED__ + +/* interface IADsNamespaces */ +/* [object][oleautomation][dual][uuid] */ + + +EXTERN_C const IID IID_IADsNamespaces; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("28b96ba0-b330-11cf-a9ad-00aa006bc149") + IADsNamespaces : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultContainer( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DefaultContainer( + /* [in] */ __RPC__in BSTR bstrDefaultContainer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsNamespacesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsNamespaces * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsNamespaces * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsNamespaces * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsNamespaces * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsNamespaces * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsNamespaces * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsNamespaces * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsNamespaces * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsNamespaces * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsNamespaces * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsNamespaces * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsNamespaces * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsNamespaces * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsNamespaces * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsNamespaces * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsNamespaces * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsNamespaces * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsNamespaces * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsNamespaces * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsNamespaces * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsNamespaces, get_DefaultContainer) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultContainer )( + __RPC__in IADsNamespaces * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsNamespaces, put_DefaultContainer) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultContainer )( + __RPC__in IADsNamespaces * This, + /* [in] */ __RPC__in BSTR bstrDefaultContainer); + + END_INTERFACE + } IADsNamespacesVtbl; + + interface IADsNamespaces + { + CONST_VTBL struct IADsNamespacesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsNamespaces_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsNamespaces_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsNamespaces_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsNamespaces_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsNamespaces_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsNamespaces_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsNamespaces_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsNamespaces_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsNamespaces_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsNamespaces_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsNamespaces_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsNamespaces_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsNamespaces_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsNamespaces_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsNamespaces_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsNamespaces_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsNamespaces_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsNamespaces_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsNamespaces_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsNamespaces_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsNamespaces_get_DefaultContainer(This,retval) \ + ( (This)->lpVtbl -> get_DefaultContainer(This,retval) ) + +#define IADsNamespaces_put_DefaultContainer(This,bstrDefaultContainer) \ + ( (This)->lpVtbl -> put_DefaultContainer(This,bstrDefaultContainer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsNamespaces_INTERFACE_DEFINED__ */ + + +#ifndef __IADsClass_INTERFACE_DEFINED__ +#define __IADsClass_INTERFACE_DEFINED__ + +/* interface IADsClass */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsClass; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c8f93dd0-4ae0-11cf-9e73-00aa004a5691") + IADsClass : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PrimaryInterface( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CLSID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_CLSID( + /* [in] */ __RPC__in BSTR bstrCLSID) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OID( + /* [in] */ __RPC__in BSTR bstrOID) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Abstract( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Abstract( + /* [in] */ VARIANT_BOOL fAbstract) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Auxiliary( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Auxiliary( + /* [in] */ VARIANT_BOOL fAuxiliary) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MandatoryProperties( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MandatoryProperties( + /* [in] */ VARIANT vMandatoryProperties) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OptionalProperties( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OptionalProperties( + /* [in] */ VARIANT vOptionalProperties) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_NamingProperties( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_NamingProperties( + /* [in] */ VARIANT vNamingProperties) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DerivedFrom( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DerivedFrom( + /* [in] */ VARIANT vDerivedFrom) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AuxDerivedFrom( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AuxDerivedFrom( + /* [in] */ VARIANT vAuxDerivedFrom) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PossibleSuperiors( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PossibleSuperiors( + /* [in] */ VARIANT vPossibleSuperiors) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Containment( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Containment( + /* [in] */ VARIANT vContainment) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Container( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Container( + /* [in] */ VARIANT_BOOL fContainer) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_HelpFileName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_HelpFileName( + /* [in] */ __RPC__in BSTR bstrHelpFileName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_HelpFileContext( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_HelpFileContext( + /* [in] */ long lnHelpFileContext) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Qualifiers( + /* [retval][out] */ __RPC__deref_out_opt IADsCollection **ppQualifiers) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsClassVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsClass * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsClass * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsClass * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsClass * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsClass * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsClass * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsClass * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsClass * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsClass * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsClass * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsClass * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsClass * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsClass * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsClass, get_PrimaryInterface) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrimaryInterface )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsClass, get_CLSID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CLSID )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_CLSID) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CLSID )( + __RPC__in IADsClass * This, + /* [in] */ __RPC__in BSTR bstrCLSID); + + DECLSPEC_XFGVIRT(IADsClass, get_OID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OID )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_OID) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OID )( + __RPC__in IADsClass * This, + /* [in] */ __RPC__in BSTR bstrOID); + + DECLSPEC_XFGVIRT(IADsClass, get_Abstract) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Abstract )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_Abstract) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Abstract )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT_BOOL fAbstract); + + DECLSPEC_XFGVIRT(IADsClass, get_Auxiliary) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Auxiliary )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_Auxiliary) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Auxiliary )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT_BOOL fAuxiliary); + + DECLSPEC_XFGVIRT(IADsClass, get_MandatoryProperties) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MandatoryProperties )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_MandatoryProperties) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MandatoryProperties )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT vMandatoryProperties); + + DECLSPEC_XFGVIRT(IADsClass, get_OptionalProperties) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OptionalProperties )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_OptionalProperties) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OptionalProperties )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT vOptionalProperties); + + DECLSPEC_XFGVIRT(IADsClass, get_NamingProperties) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NamingProperties )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_NamingProperties) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NamingProperties )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT vNamingProperties); + + DECLSPEC_XFGVIRT(IADsClass, get_DerivedFrom) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DerivedFrom )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_DerivedFrom) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DerivedFrom )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT vDerivedFrom); + + DECLSPEC_XFGVIRT(IADsClass, get_AuxDerivedFrom) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AuxDerivedFrom )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_AuxDerivedFrom) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AuxDerivedFrom )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT vAuxDerivedFrom); + + DECLSPEC_XFGVIRT(IADsClass, get_PossibleSuperiors) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PossibleSuperiors )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_PossibleSuperiors) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PossibleSuperiors )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT vPossibleSuperiors); + + DECLSPEC_XFGVIRT(IADsClass, get_Containment) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Containment )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_Containment) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Containment )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT vContainment); + + DECLSPEC_XFGVIRT(IADsClass, get_Container) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Container )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_Container) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Container )( + __RPC__in IADsClass * This, + /* [in] */ VARIANT_BOOL fContainer); + + DECLSPEC_XFGVIRT(IADsClass, get_HelpFileName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HelpFileName )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_HelpFileName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HelpFileName )( + __RPC__in IADsClass * This, + /* [in] */ __RPC__in BSTR bstrHelpFileName); + + DECLSPEC_XFGVIRT(IADsClass, get_HelpFileContext) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HelpFileContext )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsClass, put_HelpFileContext) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HelpFileContext )( + __RPC__in IADsClass * This, + /* [in] */ long lnHelpFileContext); + + DECLSPEC_XFGVIRT(IADsClass, Qualifiers) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Qualifiers )( + __RPC__in IADsClass * This, + /* [retval][out] */ __RPC__deref_out_opt IADsCollection **ppQualifiers); + + END_INTERFACE + } IADsClassVtbl; + + interface IADsClass + { + CONST_VTBL struct IADsClassVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsClass_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsClass_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsClass_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsClass_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsClass_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsClass_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsClass_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsClass_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsClass_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsClass_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsClass_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsClass_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsClass_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsClass_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsClass_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsClass_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsClass_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsClass_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsClass_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsClass_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsClass_get_PrimaryInterface(This,retval) \ + ( (This)->lpVtbl -> get_PrimaryInterface(This,retval) ) + +#define IADsClass_get_CLSID(This,retval) \ + ( (This)->lpVtbl -> get_CLSID(This,retval) ) + +#define IADsClass_put_CLSID(This,bstrCLSID) \ + ( (This)->lpVtbl -> put_CLSID(This,bstrCLSID) ) + +#define IADsClass_get_OID(This,retval) \ + ( (This)->lpVtbl -> get_OID(This,retval) ) + +#define IADsClass_put_OID(This,bstrOID) \ + ( (This)->lpVtbl -> put_OID(This,bstrOID) ) + +#define IADsClass_get_Abstract(This,retval) \ + ( (This)->lpVtbl -> get_Abstract(This,retval) ) + +#define IADsClass_put_Abstract(This,fAbstract) \ + ( (This)->lpVtbl -> put_Abstract(This,fAbstract) ) + +#define IADsClass_get_Auxiliary(This,retval) \ + ( (This)->lpVtbl -> get_Auxiliary(This,retval) ) + +#define IADsClass_put_Auxiliary(This,fAuxiliary) \ + ( (This)->lpVtbl -> put_Auxiliary(This,fAuxiliary) ) + +#define IADsClass_get_MandatoryProperties(This,retval) \ + ( (This)->lpVtbl -> get_MandatoryProperties(This,retval) ) + +#define IADsClass_put_MandatoryProperties(This,vMandatoryProperties) \ + ( (This)->lpVtbl -> put_MandatoryProperties(This,vMandatoryProperties) ) + +#define IADsClass_get_OptionalProperties(This,retval) \ + ( (This)->lpVtbl -> get_OptionalProperties(This,retval) ) + +#define IADsClass_put_OptionalProperties(This,vOptionalProperties) \ + ( (This)->lpVtbl -> put_OptionalProperties(This,vOptionalProperties) ) + +#define IADsClass_get_NamingProperties(This,retval) \ + ( (This)->lpVtbl -> get_NamingProperties(This,retval) ) + +#define IADsClass_put_NamingProperties(This,vNamingProperties) \ + ( (This)->lpVtbl -> put_NamingProperties(This,vNamingProperties) ) + +#define IADsClass_get_DerivedFrom(This,retval) \ + ( (This)->lpVtbl -> get_DerivedFrom(This,retval) ) + +#define IADsClass_put_DerivedFrom(This,vDerivedFrom) \ + ( (This)->lpVtbl -> put_DerivedFrom(This,vDerivedFrom) ) + +#define IADsClass_get_AuxDerivedFrom(This,retval) \ + ( (This)->lpVtbl -> get_AuxDerivedFrom(This,retval) ) + +#define IADsClass_put_AuxDerivedFrom(This,vAuxDerivedFrom) \ + ( (This)->lpVtbl -> put_AuxDerivedFrom(This,vAuxDerivedFrom) ) + +#define IADsClass_get_PossibleSuperiors(This,retval) \ + ( (This)->lpVtbl -> get_PossibleSuperiors(This,retval) ) + +#define IADsClass_put_PossibleSuperiors(This,vPossibleSuperiors) \ + ( (This)->lpVtbl -> put_PossibleSuperiors(This,vPossibleSuperiors) ) + +#define IADsClass_get_Containment(This,retval) \ + ( (This)->lpVtbl -> get_Containment(This,retval) ) + +#define IADsClass_put_Containment(This,vContainment) \ + ( (This)->lpVtbl -> put_Containment(This,vContainment) ) + +#define IADsClass_get_Container(This,retval) \ + ( (This)->lpVtbl -> get_Container(This,retval) ) + +#define IADsClass_put_Container(This,fContainer) \ + ( (This)->lpVtbl -> put_Container(This,fContainer) ) + +#define IADsClass_get_HelpFileName(This,retval) \ + ( (This)->lpVtbl -> get_HelpFileName(This,retval) ) + +#define IADsClass_put_HelpFileName(This,bstrHelpFileName) \ + ( (This)->lpVtbl -> put_HelpFileName(This,bstrHelpFileName) ) + +#define IADsClass_get_HelpFileContext(This,retval) \ + ( (This)->lpVtbl -> get_HelpFileContext(This,retval) ) + +#define IADsClass_put_HelpFileContext(This,lnHelpFileContext) \ + ( (This)->lpVtbl -> put_HelpFileContext(This,lnHelpFileContext) ) + +#define IADsClass_Qualifiers(This,ppQualifiers) \ + ( (This)->lpVtbl -> Qualifiers(This,ppQualifiers) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsClass_INTERFACE_DEFINED__ */ + + +#ifndef __IADsProperty_INTERFACE_DEFINED__ +#define __IADsProperty_INTERFACE_DEFINED__ + +/* interface IADsProperty */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c8f93dd3-4ae0-11cf-9e73-00aa004a5691") + IADsProperty : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OID( + /* [in] */ __RPC__in BSTR bstrOID) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Syntax( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Syntax( + /* [in] */ __RPC__in BSTR bstrSyntax) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxRange( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxRange( + /* [in] */ long lnMaxRange) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MinRange( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MinRange( + /* [in] */ long lnMinRange) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MultiValued( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MultiValued( + /* [in] */ VARIANT_BOOL fMultiValued) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Qualifiers( + /* [retval][out] */ __RPC__deref_out_opt IADsCollection **ppQualifiers) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsProperty * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsProperty * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsProperty * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsProperty * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsProperty * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsProperty * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsProperty * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsProperty * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsProperty * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsProperty, get_OID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OID )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsProperty, put_OID) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OID )( + __RPC__in IADsProperty * This, + /* [in] */ __RPC__in BSTR bstrOID); + + DECLSPEC_XFGVIRT(IADsProperty, get_Syntax) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Syntax )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsProperty, put_Syntax) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Syntax )( + __RPC__in IADsProperty * This, + /* [in] */ __RPC__in BSTR bstrSyntax); + + DECLSPEC_XFGVIRT(IADsProperty, get_MaxRange) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxRange )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsProperty, put_MaxRange) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxRange )( + __RPC__in IADsProperty * This, + /* [in] */ long lnMaxRange); + + DECLSPEC_XFGVIRT(IADsProperty, get_MinRange) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinRange )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsProperty, put_MinRange) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinRange )( + __RPC__in IADsProperty * This, + /* [in] */ long lnMinRange); + + DECLSPEC_XFGVIRT(IADsProperty, get_MultiValued) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MultiValued )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsProperty, put_MultiValued) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MultiValued )( + __RPC__in IADsProperty * This, + /* [in] */ VARIANT_BOOL fMultiValued); + + DECLSPEC_XFGVIRT(IADsProperty, Qualifiers) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Qualifiers )( + __RPC__in IADsProperty * This, + /* [retval][out] */ __RPC__deref_out_opt IADsCollection **ppQualifiers); + + END_INTERFACE + } IADsPropertyVtbl; + + interface IADsProperty + { + CONST_VTBL struct IADsPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsProperty_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsProperty_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsProperty_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsProperty_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsProperty_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsProperty_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsProperty_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsProperty_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsProperty_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsProperty_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsProperty_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsProperty_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsProperty_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsProperty_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsProperty_get_OID(This,retval) \ + ( (This)->lpVtbl -> get_OID(This,retval) ) + +#define IADsProperty_put_OID(This,bstrOID) \ + ( (This)->lpVtbl -> put_OID(This,bstrOID) ) + +#define IADsProperty_get_Syntax(This,retval) \ + ( (This)->lpVtbl -> get_Syntax(This,retval) ) + +#define IADsProperty_put_Syntax(This,bstrSyntax) \ + ( (This)->lpVtbl -> put_Syntax(This,bstrSyntax) ) + +#define IADsProperty_get_MaxRange(This,retval) \ + ( (This)->lpVtbl -> get_MaxRange(This,retval) ) + +#define IADsProperty_put_MaxRange(This,lnMaxRange) \ + ( (This)->lpVtbl -> put_MaxRange(This,lnMaxRange) ) + +#define IADsProperty_get_MinRange(This,retval) \ + ( (This)->lpVtbl -> get_MinRange(This,retval) ) + +#define IADsProperty_put_MinRange(This,lnMinRange) \ + ( (This)->lpVtbl -> put_MinRange(This,lnMinRange) ) + +#define IADsProperty_get_MultiValued(This,retval) \ + ( (This)->lpVtbl -> get_MultiValued(This,retval) ) + +#define IADsProperty_put_MultiValued(This,fMultiValued) \ + ( (This)->lpVtbl -> put_MultiValued(This,fMultiValued) ) + +#define IADsProperty_Qualifiers(This,ppQualifiers) \ + ( (This)->lpVtbl -> Qualifiers(This,ppQualifiers) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IADsSyntax_INTERFACE_DEFINED__ +#define __IADsSyntax_INTERFACE_DEFINED__ + +/* interface IADsSyntax */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsSyntax; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c8f93dd2-4ae0-11cf-9e73-00aa004a5691") + IADsSyntax : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OleAutoDataType( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OleAutoDataType( + /* [in] */ long lnOleAutoDataType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsSyntaxVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsSyntax * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsSyntax * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsSyntax * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsSyntax * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsSyntax * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsSyntax * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsSyntax * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsSyntax * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsSyntax * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsSyntax * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsSyntax * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsSyntax * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsSyntax * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsSyntax * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsSyntax * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsSyntax * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsSyntax * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsSyntax * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsSyntax * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsSyntax * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsSyntax, get_OleAutoDataType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OleAutoDataType )( + __RPC__in IADsSyntax * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsSyntax, put_OleAutoDataType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OleAutoDataType )( + __RPC__in IADsSyntax * This, + /* [in] */ long lnOleAutoDataType); + + END_INTERFACE + } IADsSyntaxVtbl; + + interface IADsSyntax + { + CONST_VTBL struct IADsSyntaxVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsSyntax_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsSyntax_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsSyntax_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsSyntax_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsSyntax_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsSyntax_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsSyntax_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsSyntax_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsSyntax_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsSyntax_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsSyntax_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsSyntax_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsSyntax_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsSyntax_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsSyntax_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsSyntax_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsSyntax_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsSyntax_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsSyntax_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsSyntax_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsSyntax_get_OleAutoDataType(This,retval) \ + ( (This)->lpVtbl -> get_OleAutoDataType(This,retval) ) + +#define IADsSyntax_put_OleAutoDataType(This,lnOleAutoDataType) \ + ( (This)->lpVtbl -> put_OleAutoDataType(This,lnOleAutoDataType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsSyntax_INTERFACE_DEFINED__ */ + + +#ifndef __IADsLocality_INTERFACE_DEFINED__ +#define __IADsLocality_INTERFACE_DEFINED__ + +/* interface IADsLocality */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsLocality; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a05e03a2-effe-11cf-8abc-00c04fd8d503") + IADsLocality : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LocalityName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LocalityName( + /* [in] */ __RPC__in BSTR bstrLocalityName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PostalAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PostalAddress( + /* [in] */ __RPC__in BSTR bstrPostalAddress) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SeeAlso( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SeeAlso( + /* [in] */ VARIANT vSeeAlso) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsLocalityVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsLocality * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsLocality * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsLocality * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsLocality * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsLocality * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsLocality * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsLocality * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsLocality * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsLocality * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsLocality * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsLocality * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsLocality * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsLocality * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsLocality * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsLocality * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsLocality * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsLocality * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsLocality * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsLocality * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsLocality * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsLocality, get_Description) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IADsLocality * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsLocality, put_Description) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IADsLocality * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IADsLocality, get_LocalityName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LocalityName )( + __RPC__in IADsLocality * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsLocality, put_LocalityName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LocalityName )( + __RPC__in IADsLocality * This, + /* [in] */ __RPC__in BSTR bstrLocalityName); + + DECLSPEC_XFGVIRT(IADsLocality, get_PostalAddress) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PostalAddress )( + __RPC__in IADsLocality * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsLocality, put_PostalAddress) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PostalAddress )( + __RPC__in IADsLocality * This, + /* [in] */ __RPC__in BSTR bstrPostalAddress); + + DECLSPEC_XFGVIRT(IADsLocality, get_SeeAlso) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SeeAlso )( + __RPC__in IADsLocality * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsLocality, put_SeeAlso) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SeeAlso )( + __RPC__in IADsLocality * This, + /* [in] */ VARIANT vSeeAlso); + + END_INTERFACE + } IADsLocalityVtbl; + + interface IADsLocality + { + CONST_VTBL struct IADsLocalityVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsLocality_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsLocality_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsLocality_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsLocality_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsLocality_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsLocality_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsLocality_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsLocality_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsLocality_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsLocality_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsLocality_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsLocality_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsLocality_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsLocality_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsLocality_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsLocality_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsLocality_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsLocality_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsLocality_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsLocality_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsLocality_get_Description(This,retval) \ + ( (This)->lpVtbl -> get_Description(This,retval) ) + +#define IADsLocality_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IADsLocality_get_LocalityName(This,retval) \ + ( (This)->lpVtbl -> get_LocalityName(This,retval) ) + +#define IADsLocality_put_LocalityName(This,bstrLocalityName) \ + ( (This)->lpVtbl -> put_LocalityName(This,bstrLocalityName) ) + +#define IADsLocality_get_PostalAddress(This,retval) \ + ( (This)->lpVtbl -> get_PostalAddress(This,retval) ) + +#define IADsLocality_put_PostalAddress(This,bstrPostalAddress) \ + ( (This)->lpVtbl -> put_PostalAddress(This,bstrPostalAddress) ) + +#define IADsLocality_get_SeeAlso(This,retval) \ + ( (This)->lpVtbl -> get_SeeAlso(This,retval) ) + +#define IADsLocality_put_SeeAlso(This,vSeeAlso) \ + ( (This)->lpVtbl -> put_SeeAlso(This,vSeeAlso) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsLocality_INTERFACE_DEFINED__ */ + + +#ifndef __IADsO_INTERFACE_DEFINED__ +#define __IADsO_INTERFACE_DEFINED__ + +/* interface IADsO */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsO; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a1cd2dc6-effe-11cf-8abc-00c04fd8d503") + IADsO : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LocalityName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LocalityName( + /* [in] */ __RPC__in BSTR bstrLocalityName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PostalAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PostalAddress( + /* [in] */ __RPC__in BSTR bstrPostalAddress) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TelephoneNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_TelephoneNumber( + /* [in] */ __RPC__in BSTR bstrTelephoneNumber) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FaxNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_FaxNumber( + /* [in] */ __RPC__in BSTR bstrFaxNumber) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SeeAlso( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SeeAlso( + /* [in] */ VARIANT vSeeAlso) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsOVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsO * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsO * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsO * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsO * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsO * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsO * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsO * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsO * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsO * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsO * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsO * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsO * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsO * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsO * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsO, get_Description) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsO, put_Description) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IADsO * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IADsO, get_LocalityName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LocalityName )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsO, put_LocalityName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LocalityName )( + __RPC__in IADsO * This, + /* [in] */ __RPC__in BSTR bstrLocalityName); + + DECLSPEC_XFGVIRT(IADsO, get_PostalAddress) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PostalAddress )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsO, put_PostalAddress) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PostalAddress )( + __RPC__in IADsO * This, + /* [in] */ __RPC__in BSTR bstrPostalAddress); + + DECLSPEC_XFGVIRT(IADsO, get_TelephoneNumber) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TelephoneNumber )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsO, put_TelephoneNumber) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TelephoneNumber )( + __RPC__in IADsO * This, + /* [in] */ __RPC__in BSTR bstrTelephoneNumber); + + DECLSPEC_XFGVIRT(IADsO, get_FaxNumber) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FaxNumber )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsO, put_FaxNumber) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FaxNumber )( + __RPC__in IADsO * This, + /* [in] */ __RPC__in BSTR bstrFaxNumber); + + DECLSPEC_XFGVIRT(IADsO, get_SeeAlso) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SeeAlso )( + __RPC__in IADsO * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsO, put_SeeAlso) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SeeAlso )( + __RPC__in IADsO * This, + /* [in] */ VARIANT vSeeAlso); + + END_INTERFACE + } IADsOVtbl; + + interface IADsO + { + CONST_VTBL struct IADsOVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsO_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsO_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsO_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsO_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsO_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsO_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsO_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsO_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsO_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsO_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsO_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsO_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsO_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsO_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsO_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsO_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsO_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsO_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsO_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsO_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsO_get_Description(This,retval) \ + ( (This)->lpVtbl -> get_Description(This,retval) ) + +#define IADsO_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IADsO_get_LocalityName(This,retval) \ + ( (This)->lpVtbl -> get_LocalityName(This,retval) ) + +#define IADsO_put_LocalityName(This,bstrLocalityName) \ + ( (This)->lpVtbl -> put_LocalityName(This,bstrLocalityName) ) + +#define IADsO_get_PostalAddress(This,retval) \ + ( (This)->lpVtbl -> get_PostalAddress(This,retval) ) + +#define IADsO_put_PostalAddress(This,bstrPostalAddress) \ + ( (This)->lpVtbl -> put_PostalAddress(This,bstrPostalAddress) ) + +#define IADsO_get_TelephoneNumber(This,retval) \ + ( (This)->lpVtbl -> get_TelephoneNumber(This,retval) ) + +#define IADsO_put_TelephoneNumber(This,bstrTelephoneNumber) \ + ( (This)->lpVtbl -> put_TelephoneNumber(This,bstrTelephoneNumber) ) + +#define IADsO_get_FaxNumber(This,retval) \ + ( (This)->lpVtbl -> get_FaxNumber(This,retval) ) + +#define IADsO_put_FaxNumber(This,bstrFaxNumber) \ + ( (This)->lpVtbl -> put_FaxNumber(This,bstrFaxNumber) ) + +#define IADsO_get_SeeAlso(This,retval) \ + ( (This)->lpVtbl -> get_SeeAlso(This,retval) ) + +#define IADsO_put_SeeAlso(This,vSeeAlso) \ + ( (This)->lpVtbl -> put_SeeAlso(This,vSeeAlso) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsO_INTERFACE_DEFINED__ */ + + +#ifndef __IADsOU_INTERFACE_DEFINED__ +#define __IADsOU_INTERFACE_DEFINED__ + +/* interface IADsOU */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsOU; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a2f733b8-effe-11cf-8abc-00c04fd8d503") + IADsOU : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LocalityName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LocalityName( + /* [in] */ __RPC__in BSTR bstrLocalityName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PostalAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PostalAddress( + /* [in] */ __RPC__in BSTR bstrPostalAddress) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TelephoneNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_TelephoneNumber( + /* [in] */ __RPC__in BSTR bstrTelephoneNumber) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FaxNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_FaxNumber( + /* [in] */ __RPC__in BSTR bstrFaxNumber) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SeeAlso( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SeeAlso( + /* [in] */ VARIANT vSeeAlso) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BusinessCategory( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_BusinessCategory( + /* [in] */ __RPC__in BSTR bstrBusinessCategory) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsOUVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsOU * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsOU * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsOU * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsOU * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsOU * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsOU * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsOU * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsOU * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsOU * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsOU, get_Description) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsOU, put_Description) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IADsOU, get_LocalityName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LocalityName )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsOU, put_LocalityName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LocalityName )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in BSTR bstrLocalityName); + + DECLSPEC_XFGVIRT(IADsOU, get_PostalAddress) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PostalAddress )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsOU, put_PostalAddress) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PostalAddress )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in BSTR bstrPostalAddress); + + DECLSPEC_XFGVIRT(IADsOU, get_TelephoneNumber) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TelephoneNumber )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsOU, put_TelephoneNumber) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TelephoneNumber )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in BSTR bstrTelephoneNumber); + + DECLSPEC_XFGVIRT(IADsOU, get_FaxNumber) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FaxNumber )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsOU, put_FaxNumber) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FaxNumber )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in BSTR bstrFaxNumber); + + DECLSPEC_XFGVIRT(IADsOU, get_SeeAlso) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SeeAlso )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsOU, put_SeeAlso) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SeeAlso )( + __RPC__in IADsOU * This, + /* [in] */ VARIANT vSeeAlso); + + DECLSPEC_XFGVIRT(IADsOU, get_BusinessCategory) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BusinessCategory )( + __RPC__in IADsOU * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsOU, put_BusinessCategory) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BusinessCategory )( + __RPC__in IADsOU * This, + /* [in] */ __RPC__in BSTR bstrBusinessCategory); + + END_INTERFACE + } IADsOUVtbl; + + interface IADsOU + { + CONST_VTBL struct IADsOUVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsOU_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsOU_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsOU_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsOU_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsOU_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsOU_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsOU_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsOU_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsOU_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsOU_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsOU_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsOU_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsOU_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsOU_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsOU_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsOU_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsOU_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsOU_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsOU_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsOU_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsOU_get_Description(This,retval) \ + ( (This)->lpVtbl -> get_Description(This,retval) ) + +#define IADsOU_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IADsOU_get_LocalityName(This,retval) \ + ( (This)->lpVtbl -> get_LocalityName(This,retval) ) + +#define IADsOU_put_LocalityName(This,bstrLocalityName) \ + ( (This)->lpVtbl -> put_LocalityName(This,bstrLocalityName) ) + +#define IADsOU_get_PostalAddress(This,retval) \ + ( (This)->lpVtbl -> get_PostalAddress(This,retval) ) + +#define IADsOU_put_PostalAddress(This,bstrPostalAddress) \ + ( (This)->lpVtbl -> put_PostalAddress(This,bstrPostalAddress) ) + +#define IADsOU_get_TelephoneNumber(This,retval) \ + ( (This)->lpVtbl -> get_TelephoneNumber(This,retval) ) + +#define IADsOU_put_TelephoneNumber(This,bstrTelephoneNumber) \ + ( (This)->lpVtbl -> put_TelephoneNumber(This,bstrTelephoneNumber) ) + +#define IADsOU_get_FaxNumber(This,retval) \ + ( (This)->lpVtbl -> get_FaxNumber(This,retval) ) + +#define IADsOU_put_FaxNumber(This,bstrFaxNumber) \ + ( (This)->lpVtbl -> put_FaxNumber(This,bstrFaxNumber) ) + +#define IADsOU_get_SeeAlso(This,retval) \ + ( (This)->lpVtbl -> get_SeeAlso(This,retval) ) + +#define IADsOU_put_SeeAlso(This,vSeeAlso) \ + ( (This)->lpVtbl -> put_SeeAlso(This,vSeeAlso) ) + +#define IADsOU_get_BusinessCategory(This,retval) \ + ( (This)->lpVtbl -> get_BusinessCategory(This,retval) ) + +#define IADsOU_put_BusinessCategory(This,bstrBusinessCategory) \ + ( (This)->lpVtbl -> put_BusinessCategory(This,bstrBusinessCategory) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsOU_INTERFACE_DEFINED__ */ + + +#ifndef __IADsDomain_INTERFACE_DEFINED__ +#define __IADsDomain_INTERFACE_DEFINED__ + +/* interface IADsDomain */ +/* [object][oleautomation][dual][uuid] */ + + +EXTERN_C const IID IID_IADsDomain; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00e4c220-fd16-11ce-abc4-02608c9e7553") + IADsDomain : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_IsWorkgroup( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MinPasswordLength( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MinPasswordLength( + /* [in] */ long lnMinPasswordLength) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MinPasswordAge( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MinPasswordAge( + /* [in] */ long lnMinPasswordAge) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxPasswordAge( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxPasswordAge( + /* [in] */ long lnMaxPasswordAge) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxBadPasswordsAllowed( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxBadPasswordsAllowed( + /* [in] */ long lnMaxBadPasswordsAllowed) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PasswordHistoryLength( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PasswordHistoryLength( + /* [in] */ long lnPasswordHistoryLength) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PasswordAttributes( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PasswordAttributes( + /* [in] */ long lnPasswordAttributes) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AutoUnlockInterval( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AutoUnlockInterval( + /* [in] */ long lnAutoUnlockInterval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LockoutObservationInterval( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LockoutObservationInterval( + /* [in] */ long lnLockoutObservationInterval) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsDomainVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsDomain * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsDomain * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsDomain * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsDomain * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsDomain * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsDomain * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsDomain * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsDomain * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsDomain * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsDomain * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsDomain * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsDomain * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsDomain * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsDomain * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsDomain, get_IsWorkgroup) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsWorkgroup )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsDomain, get_MinPasswordLength) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinPasswordLength )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsDomain, put_MinPasswordLength) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinPasswordLength )( + __RPC__in IADsDomain * This, + /* [in] */ long lnMinPasswordLength); + + DECLSPEC_XFGVIRT(IADsDomain, get_MinPasswordAge) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinPasswordAge )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsDomain, put_MinPasswordAge) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MinPasswordAge )( + __RPC__in IADsDomain * This, + /* [in] */ long lnMinPasswordAge); + + DECLSPEC_XFGVIRT(IADsDomain, get_MaxPasswordAge) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxPasswordAge )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsDomain, put_MaxPasswordAge) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxPasswordAge )( + __RPC__in IADsDomain * This, + /* [in] */ long lnMaxPasswordAge); + + DECLSPEC_XFGVIRT(IADsDomain, get_MaxBadPasswordsAllowed) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxBadPasswordsAllowed )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsDomain, put_MaxBadPasswordsAllowed) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxBadPasswordsAllowed )( + __RPC__in IADsDomain * This, + /* [in] */ long lnMaxBadPasswordsAllowed); + + DECLSPEC_XFGVIRT(IADsDomain, get_PasswordHistoryLength) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PasswordHistoryLength )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsDomain, put_PasswordHistoryLength) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PasswordHistoryLength )( + __RPC__in IADsDomain * This, + /* [in] */ long lnPasswordHistoryLength); + + DECLSPEC_XFGVIRT(IADsDomain, get_PasswordAttributes) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PasswordAttributes )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsDomain, put_PasswordAttributes) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PasswordAttributes )( + __RPC__in IADsDomain * This, + /* [in] */ long lnPasswordAttributes); + + DECLSPEC_XFGVIRT(IADsDomain, get_AutoUnlockInterval) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AutoUnlockInterval )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsDomain, put_AutoUnlockInterval) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AutoUnlockInterval )( + __RPC__in IADsDomain * This, + /* [in] */ long lnAutoUnlockInterval); + + DECLSPEC_XFGVIRT(IADsDomain, get_LockoutObservationInterval) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LockoutObservationInterval )( + __RPC__in IADsDomain * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsDomain, put_LockoutObservationInterval) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LockoutObservationInterval )( + __RPC__in IADsDomain * This, + /* [in] */ long lnLockoutObservationInterval); + + END_INTERFACE + } IADsDomainVtbl; + + interface IADsDomain + { + CONST_VTBL struct IADsDomainVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsDomain_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsDomain_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsDomain_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsDomain_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsDomain_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsDomain_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsDomain_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsDomain_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsDomain_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsDomain_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsDomain_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsDomain_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsDomain_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsDomain_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsDomain_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsDomain_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsDomain_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsDomain_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsDomain_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsDomain_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsDomain_get_IsWorkgroup(This,retval) \ + ( (This)->lpVtbl -> get_IsWorkgroup(This,retval) ) + +#define IADsDomain_get_MinPasswordLength(This,retval) \ + ( (This)->lpVtbl -> get_MinPasswordLength(This,retval) ) + +#define IADsDomain_put_MinPasswordLength(This,lnMinPasswordLength) \ + ( (This)->lpVtbl -> put_MinPasswordLength(This,lnMinPasswordLength) ) + +#define IADsDomain_get_MinPasswordAge(This,retval) \ + ( (This)->lpVtbl -> get_MinPasswordAge(This,retval) ) + +#define IADsDomain_put_MinPasswordAge(This,lnMinPasswordAge) \ + ( (This)->lpVtbl -> put_MinPasswordAge(This,lnMinPasswordAge) ) + +#define IADsDomain_get_MaxPasswordAge(This,retval) \ + ( (This)->lpVtbl -> get_MaxPasswordAge(This,retval) ) + +#define IADsDomain_put_MaxPasswordAge(This,lnMaxPasswordAge) \ + ( (This)->lpVtbl -> put_MaxPasswordAge(This,lnMaxPasswordAge) ) + +#define IADsDomain_get_MaxBadPasswordsAllowed(This,retval) \ + ( (This)->lpVtbl -> get_MaxBadPasswordsAllowed(This,retval) ) + +#define IADsDomain_put_MaxBadPasswordsAllowed(This,lnMaxBadPasswordsAllowed) \ + ( (This)->lpVtbl -> put_MaxBadPasswordsAllowed(This,lnMaxBadPasswordsAllowed) ) + +#define IADsDomain_get_PasswordHistoryLength(This,retval) \ + ( (This)->lpVtbl -> get_PasswordHistoryLength(This,retval) ) + +#define IADsDomain_put_PasswordHistoryLength(This,lnPasswordHistoryLength) \ + ( (This)->lpVtbl -> put_PasswordHistoryLength(This,lnPasswordHistoryLength) ) + +#define IADsDomain_get_PasswordAttributes(This,retval) \ + ( (This)->lpVtbl -> get_PasswordAttributes(This,retval) ) + +#define IADsDomain_put_PasswordAttributes(This,lnPasswordAttributes) \ + ( (This)->lpVtbl -> put_PasswordAttributes(This,lnPasswordAttributes) ) + +#define IADsDomain_get_AutoUnlockInterval(This,retval) \ + ( (This)->lpVtbl -> get_AutoUnlockInterval(This,retval) ) + +#define IADsDomain_put_AutoUnlockInterval(This,lnAutoUnlockInterval) \ + ( (This)->lpVtbl -> put_AutoUnlockInterval(This,lnAutoUnlockInterval) ) + +#define IADsDomain_get_LockoutObservationInterval(This,retval) \ + ( (This)->lpVtbl -> get_LockoutObservationInterval(This,retval) ) + +#define IADsDomain_put_LockoutObservationInterval(This,lnLockoutObservationInterval) \ + ( (This)->lpVtbl -> put_LockoutObservationInterval(This,lnLockoutObservationInterval) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsDomain_INTERFACE_DEFINED__ */ + + +#ifndef __IADsComputer_INTERFACE_DEFINED__ +#define __IADsComputer_INTERFACE_DEFINED__ + +/* interface IADsComputer */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsComputer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("efe3cc70-1d9f-11cf-b1f3-02608c9e7553") + IADsComputer : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ComputerID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Site( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Location( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Location( + /* [in] */ __RPC__in BSTR bstrLocation) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PrimaryUser( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PrimaryUser( + /* [in] */ __RPC__in BSTR bstrPrimaryUser) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Owner( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Owner( + /* [in] */ __RPC__in BSTR bstrOwner) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Division( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Division( + /* [in] */ __RPC__in BSTR bstrDivision) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Department( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Department( + /* [in] */ __RPC__in BSTR bstrDepartment) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Role( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Role( + /* [in] */ __RPC__in BSTR bstrRole) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OperatingSystem( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OperatingSystem( + /* [in] */ __RPC__in BSTR bstrOperatingSystem) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OperatingSystemVersion( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OperatingSystemVersion( + /* [in] */ __RPC__in BSTR bstrOperatingSystemVersion) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Model( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Model( + /* [in] */ __RPC__in BSTR bstrModel) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Processor( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Processor( + /* [in] */ __RPC__in BSTR bstrProcessor) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ProcessorCount( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ProcessorCount( + /* [in] */ __RPC__in BSTR bstrProcessorCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MemorySize( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MemorySize( + /* [in] */ __RPC__in BSTR bstrMemorySize) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_StorageCapacity( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_StorageCapacity( + /* [in] */ __RPC__in BSTR bstrStorageCapacity) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_NetAddresses( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_NetAddresses( + /* [in] */ VARIANT vNetAddresses) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsComputerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsComputer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsComputer * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsComputer * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsComputer * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsComputer * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsComputer * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsComputer * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsComputer * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsComputer * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsComputer, get_ComputerID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerID )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, get_Site) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Site )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, get_Description) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_Description) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IADsComputer, get_Location) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Location )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_Location) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Location )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrLocation); + + DECLSPEC_XFGVIRT(IADsComputer, get_PrimaryUser) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrimaryUser )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_PrimaryUser) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PrimaryUser )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrPrimaryUser); + + DECLSPEC_XFGVIRT(IADsComputer, get_Owner) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Owner )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_Owner) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Owner )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrOwner); + + DECLSPEC_XFGVIRT(IADsComputer, get_Division) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Division )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_Division) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Division )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrDivision); + + DECLSPEC_XFGVIRT(IADsComputer, get_Department) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Department )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_Department) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Department )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrDepartment); + + DECLSPEC_XFGVIRT(IADsComputer, get_Role) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Role )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_Role) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Role )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrRole); + + DECLSPEC_XFGVIRT(IADsComputer, get_OperatingSystem) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OperatingSystem )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_OperatingSystem) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OperatingSystem )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrOperatingSystem); + + DECLSPEC_XFGVIRT(IADsComputer, get_OperatingSystemVersion) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OperatingSystemVersion )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_OperatingSystemVersion) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OperatingSystemVersion )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrOperatingSystemVersion); + + DECLSPEC_XFGVIRT(IADsComputer, get_Model) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Model )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_Model) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Model )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrModel); + + DECLSPEC_XFGVIRT(IADsComputer, get_Processor) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Processor )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_Processor) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Processor )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrProcessor); + + DECLSPEC_XFGVIRT(IADsComputer, get_ProcessorCount) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProcessorCount )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_ProcessorCount) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProcessorCount )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrProcessorCount); + + DECLSPEC_XFGVIRT(IADsComputer, get_MemorySize) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MemorySize )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_MemorySize) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MemorySize )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrMemorySize); + + DECLSPEC_XFGVIRT(IADsComputer, get_StorageCapacity) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StorageCapacity )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_StorageCapacity) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StorageCapacity )( + __RPC__in IADsComputer * This, + /* [in] */ __RPC__in BSTR bstrStorageCapacity); + + DECLSPEC_XFGVIRT(IADsComputer, get_NetAddresses) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetAddresses )( + __RPC__in IADsComputer * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsComputer, put_NetAddresses) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetAddresses )( + __RPC__in IADsComputer * This, + /* [in] */ VARIANT vNetAddresses); + + END_INTERFACE + } IADsComputerVtbl; + + interface IADsComputer + { + CONST_VTBL struct IADsComputerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsComputer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsComputer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsComputer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsComputer_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsComputer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsComputer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsComputer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsComputer_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsComputer_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsComputer_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsComputer_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsComputer_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsComputer_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsComputer_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsComputer_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsComputer_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsComputer_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsComputer_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsComputer_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsComputer_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsComputer_get_ComputerID(This,retval) \ + ( (This)->lpVtbl -> get_ComputerID(This,retval) ) + +#define IADsComputer_get_Site(This,retval) \ + ( (This)->lpVtbl -> get_Site(This,retval) ) + +#define IADsComputer_get_Description(This,retval) \ + ( (This)->lpVtbl -> get_Description(This,retval) ) + +#define IADsComputer_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IADsComputer_get_Location(This,retval) \ + ( (This)->lpVtbl -> get_Location(This,retval) ) + +#define IADsComputer_put_Location(This,bstrLocation) \ + ( (This)->lpVtbl -> put_Location(This,bstrLocation) ) + +#define IADsComputer_get_PrimaryUser(This,retval) \ + ( (This)->lpVtbl -> get_PrimaryUser(This,retval) ) + +#define IADsComputer_put_PrimaryUser(This,bstrPrimaryUser) \ + ( (This)->lpVtbl -> put_PrimaryUser(This,bstrPrimaryUser) ) + +#define IADsComputer_get_Owner(This,retval) \ + ( (This)->lpVtbl -> get_Owner(This,retval) ) + +#define IADsComputer_put_Owner(This,bstrOwner) \ + ( (This)->lpVtbl -> put_Owner(This,bstrOwner) ) + +#define IADsComputer_get_Division(This,retval) \ + ( (This)->lpVtbl -> get_Division(This,retval) ) + +#define IADsComputer_put_Division(This,bstrDivision) \ + ( (This)->lpVtbl -> put_Division(This,bstrDivision) ) + +#define IADsComputer_get_Department(This,retval) \ + ( (This)->lpVtbl -> get_Department(This,retval) ) + +#define IADsComputer_put_Department(This,bstrDepartment) \ + ( (This)->lpVtbl -> put_Department(This,bstrDepartment) ) + +#define IADsComputer_get_Role(This,retval) \ + ( (This)->lpVtbl -> get_Role(This,retval) ) + +#define IADsComputer_put_Role(This,bstrRole) \ + ( (This)->lpVtbl -> put_Role(This,bstrRole) ) + +#define IADsComputer_get_OperatingSystem(This,retval) \ + ( (This)->lpVtbl -> get_OperatingSystem(This,retval) ) + +#define IADsComputer_put_OperatingSystem(This,bstrOperatingSystem) \ + ( (This)->lpVtbl -> put_OperatingSystem(This,bstrOperatingSystem) ) + +#define IADsComputer_get_OperatingSystemVersion(This,retval) \ + ( (This)->lpVtbl -> get_OperatingSystemVersion(This,retval) ) + +#define IADsComputer_put_OperatingSystemVersion(This,bstrOperatingSystemVersion) \ + ( (This)->lpVtbl -> put_OperatingSystemVersion(This,bstrOperatingSystemVersion) ) + +#define IADsComputer_get_Model(This,retval) \ + ( (This)->lpVtbl -> get_Model(This,retval) ) + +#define IADsComputer_put_Model(This,bstrModel) \ + ( (This)->lpVtbl -> put_Model(This,bstrModel) ) + +#define IADsComputer_get_Processor(This,retval) \ + ( (This)->lpVtbl -> get_Processor(This,retval) ) + +#define IADsComputer_put_Processor(This,bstrProcessor) \ + ( (This)->lpVtbl -> put_Processor(This,bstrProcessor) ) + +#define IADsComputer_get_ProcessorCount(This,retval) \ + ( (This)->lpVtbl -> get_ProcessorCount(This,retval) ) + +#define IADsComputer_put_ProcessorCount(This,bstrProcessorCount) \ + ( (This)->lpVtbl -> put_ProcessorCount(This,bstrProcessorCount) ) + +#define IADsComputer_get_MemorySize(This,retval) \ + ( (This)->lpVtbl -> get_MemorySize(This,retval) ) + +#define IADsComputer_put_MemorySize(This,bstrMemorySize) \ + ( (This)->lpVtbl -> put_MemorySize(This,bstrMemorySize) ) + +#define IADsComputer_get_StorageCapacity(This,retval) \ + ( (This)->lpVtbl -> get_StorageCapacity(This,retval) ) + +#define IADsComputer_put_StorageCapacity(This,bstrStorageCapacity) \ + ( (This)->lpVtbl -> put_StorageCapacity(This,bstrStorageCapacity) ) + +#define IADsComputer_get_NetAddresses(This,retval) \ + ( (This)->lpVtbl -> get_NetAddresses(This,retval) ) + +#define IADsComputer_put_NetAddresses(This,vNetAddresses) \ + ( (This)->lpVtbl -> put_NetAddresses(This,vNetAddresses) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsComputer_INTERFACE_DEFINED__ */ + + +#ifndef __IADsComputerOperations_INTERFACE_DEFINED__ +#define __IADsComputerOperations_INTERFACE_DEFINED__ + +/* interface IADsComputerOperations */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsComputerOperations; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ef497680-1d9f-11cf-b1f3-02608c9e7553") + IADsComputerOperations : public IADs + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Status( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppObject) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Shutdown( + /* [in] */ VARIANT_BOOL bReboot) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsComputerOperationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsComputerOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsComputerOperations * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsComputerOperations * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsComputerOperations * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsComputerOperations * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsComputerOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsComputerOperations * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsComputerOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsComputerOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsComputerOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsComputerOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsComputerOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsComputerOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsComputerOperations * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsComputerOperations * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsComputerOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsComputerOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsComputerOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsComputerOperations * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsComputerOperations * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsComputerOperations, Status) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Status )( + __RPC__in IADsComputerOperations * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppObject); + + DECLSPEC_XFGVIRT(IADsComputerOperations, Shutdown) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Shutdown )( + __RPC__in IADsComputerOperations * This, + /* [in] */ VARIANT_BOOL bReboot); + + END_INTERFACE + } IADsComputerOperationsVtbl; + + interface IADsComputerOperations + { + CONST_VTBL struct IADsComputerOperationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsComputerOperations_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsComputerOperations_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsComputerOperations_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsComputerOperations_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsComputerOperations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsComputerOperations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsComputerOperations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsComputerOperations_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsComputerOperations_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsComputerOperations_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsComputerOperations_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsComputerOperations_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsComputerOperations_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsComputerOperations_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsComputerOperations_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsComputerOperations_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsComputerOperations_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsComputerOperations_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsComputerOperations_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsComputerOperations_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsComputerOperations_Status(This,ppObject) \ + ( (This)->lpVtbl -> Status(This,ppObject) ) + +#define IADsComputerOperations_Shutdown(This,bReboot) \ + ( (This)->lpVtbl -> Shutdown(This,bReboot) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsComputerOperations_INTERFACE_DEFINED__ */ + + +#ifndef __IADsGroup_INTERFACE_DEFINED__ +#define __IADsGroup_INTERFACE_DEFINED__ + +/* interface IADsGroup */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsGroup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27636b00-410f-11cf-b1ff-02608c9e7553") + IADsGroup : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Members( + /* [retval][out] */ __RPC__deref_out_opt IADsMembers **ppMembers) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE IsMember( + /* [in] */ __RPC__in BSTR bstrMember, + /* [retval][out] */ __RPC__out VARIANT_BOOL *bMember) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in BSTR bstrNewItem) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ __RPC__in BSTR bstrItemToBeRemoved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsGroupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsGroup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsGroup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsGroup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsGroup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsGroup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsGroup * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsGroup * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsGroup * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsGroup * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsGroup * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsGroup * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsGroup * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsGroup, get_Description) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IADsGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsGroup, put_Description) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IADsGroup * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IADsGroup, Members) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Members )( + __RPC__in IADsGroup * This, + /* [retval][out] */ __RPC__deref_out_opt IADsMembers **ppMembers); + + DECLSPEC_XFGVIRT(IADsGroup, IsMember) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *IsMember )( + __RPC__in IADsGroup * This, + /* [in] */ __RPC__in BSTR bstrMember, + /* [retval][out] */ __RPC__out VARIANT_BOOL *bMember); + + DECLSPEC_XFGVIRT(IADsGroup, Add) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IADsGroup * This, + /* [in] */ __RPC__in BSTR bstrNewItem); + + DECLSPEC_XFGVIRT(IADsGroup, Remove) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IADsGroup * This, + /* [in] */ __RPC__in BSTR bstrItemToBeRemoved); + + END_INTERFACE + } IADsGroupVtbl; + + interface IADsGroup + { + CONST_VTBL struct IADsGroupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsGroup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsGroup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsGroup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsGroup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsGroup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsGroup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsGroup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsGroup_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsGroup_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsGroup_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsGroup_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsGroup_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsGroup_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsGroup_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsGroup_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsGroup_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsGroup_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsGroup_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsGroup_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsGroup_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsGroup_get_Description(This,retval) \ + ( (This)->lpVtbl -> get_Description(This,retval) ) + +#define IADsGroup_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IADsGroup_Members(This,ppMembers) \ + ( (This)->lpVtbl -> Members(This,ppMembers) ) + +#define IADsGroup_IsMember(This,bstrMember,bMember) \ + ( (This)->lpVtbl -> IsMember(This,bstrMember,bMember) ) + +#define IADsGroup_Add(This,bstrNewItem) \ + ( (This)->lpVtbl -> Add(This,bstrNewItem) ) + +#define IADsGroup_Remove(This,bstrItemToBeRemoved) \ + ( (This)->lpVtbl -> Remove(This,bstrItemToBeRemoved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsGroup_INTERFACE_DEFINED__ */ + + +#ifndef __IADsUser_INTERFACE_DEFINED__ +#define __IADsUser_INTERFACE_DEFINED__ + +/* interface IADsUser */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsUser; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3e37e320-17e2-11cf-abc4-02608c9e7553") + IADsUser : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BadLoginAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BadLoginCount( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LastLogin( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LastLogoff( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LastFailedLogin( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PasswordLastChanged( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Division( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Division( + /* [in] */ __RPC__in BSTR bstrDivision) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Department( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Department( + /* [in] */ __RPC__in BSTR bstrDepartment) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_EmployeeID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_EmployeeID( + /* [in] */ __RPC__in BSTR bstrEmployeeID) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FullName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_FullName( + /* [in] */ __RPC__in BSTR bstrFullName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FirstName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_FirstName( + /* [in] */ __RPC__in BSTR bstrFirstName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LastName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LastName( + /* [in] */ __RPC__in BSTR bstrLastName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OtherName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OtherName( + /* [in] */ __RPC__in BSTR bstrOtherName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_NamePrefix( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_NamePrefix( + /* [in] */ __RPC__in BSTR bstrNamePrefix) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_NameSuffix( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_NameSuffix( + /* [in] */ __RPC__in BSTR bstrNameSuffix) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Title( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Title( + /* [in] */ __RPC__in BSTR bstrTitle) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Manager( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Manager( + /* [in] */ __RPC__in BSTR bstrManager) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TelephoneHome( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_TelephoneHome( + /* [in] */ VARIANT vTelephoneHome) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TelephoneMobile( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_TelephoneMobile( + /* [in] */ VARIANT vTelephoneMobile) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TelephoneNumber( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_TelephoneNumber( + /* [in] */ VARIANT vTelephoneNumber) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TelephonePager( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_TelephonePager( + /* [in] */ VARIANT vTelephonePager) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FaxNumber( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_FaxNumber( + /* [in] */ VARIANT vFaxNumber) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OfficeLocations( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OfficeLocations( + /* [in] */ VARIANT vOfficeLocations) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PostalAddresses( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PostalAddresses( + /* [in] */ VARIANT vPostalAddresses) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PostalCodes( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PostalCodes( + /* [in] */ VARIANT vPostalCodes) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SeeAlso( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SeeAlso( + /* [in] */ VARIANT vSeeAlso) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AccountDisabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AccountDisabled( + /* [in] */ VARIANT_BOOL fAccountDisabled) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AccountExpirationDate( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AccountExpirationDate( + /* [in] */ DATE daAccountExpirationDate) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_GraceLoginsAllowed( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_GraceLoginsAllowed( + /* [in] */ long lnGraceLoginsAllowed) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_GraceLoginsRemaining( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_GraceLoginsRemaining( + /* [in] */ long lnGraceLoginsRemaining) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_IsAccountLocked( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_IsAccountLocked( + /* [in] */ VARIANT_BOOL fIsAccountLocked) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LoginHours( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LoginHours( + /* [in] */ VARIANT vLoginHours) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LoginWorkstations( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LoginWorkstations( + /* [in] */ VARIANT vLoginWorkstations) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxLogins( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxLogins( + /* [in] */ long lnMaxLogins) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxStorage( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxStorage( + /* [in] */ long lnMaxStorage) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PasswordExpirationDate( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PasswordExpirationDate( + /* [in] */ DATE daPasswordExpirationDate) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PasswordMinimumLength( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PasswordMinimumLength( + /* [in] */ long lnPasswordMinimumLength) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PasswordRequired( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PasswordRequired( + /* [in] */ VARIANT_BOOL fPasswordRequired) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_RequireUniquePassword( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_RequireUniquePassword( + /* [in] */ VARIANT_BOOL fRequireUniquePassword) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_EmailAddress( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_EmailAddress( + /* [in] */ __RPC__in BSTR bstrEmailAddress) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_HomeDirectory( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_HomeDirectory( + /* [in] */ __RPC__in BSTR bstrHomeDirectory) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Languages( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Languages( + /* [in] */ VARIANT vLanguages) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Profile( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Profile( + /* [in] */ __RPC__in BSTR bstrProfile) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LoginScript( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LoginScript( + /* [in] */ __RPC__in BSTR bstrLoginScript) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Picture( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Picture( + /* [in] */ VARIANT vPicture) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_HomePage( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_HomePage( + /* [in] */ __RPC__in BSTR bstrHomePage) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Groups( + /* [retval][out] */ __RPC__deref_out_opt IADsMembers **ppGroups) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetPassword( + /* [in] */ __RPC__in BSTR NewPassword) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ChangePassword( + /* [in] */ __RPC__in BSTR bstrOldPassword, + /* [in] */ __RPC__in BSTR bstrNewPassword) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsUserVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsUser * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsUser * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsUser * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsUser * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsUser * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsUser * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsUser * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsUser * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsUser, get_BadLoginAddress) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BadLoginAddress )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, get_BadLoginCount) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BadLoginCount )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsUser, get_LastLogin) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastLogin )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsUser, get_LastLogoff) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastLogoff )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsUser, get_LastFailedLogin) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastFailedLogin )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsUser, get_PasswordLastChanged) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PasswordLastChanged )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsUser, get_Description) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_Description) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IADsUser, get_Division) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Division )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_Division) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Division )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrDivision); + + DECLSPEC_XFGVIRT(IADsUser, get_Department) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Department )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_Department) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Department )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrDepartment); + + DECLSPEC_XFGVIRT(IADsUser, get_EmployeeID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EmployeeID )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_EmployeeID) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EmployeeID )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrEmployeeID); + + DECLSPEC_XFGVIRT(IADsUser, get_FullName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FullName )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_FullName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FullName )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrFullName); + + DECLSPEC_XFGVIRT(IADsUser, get_FirstName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirstName )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_FirstName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FirstName )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrFirstName); + + DECLSPEC_XFGVIRT(IADsUser, get_LastName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastName )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_LastName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastName )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrLastName); + + DECLSPEC_XFGVIRT(IADsUser, get_OtherName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OtherName )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_OtherName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OtherName )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrOtherName); + + DECLSPEC_XFGVIRT(IADsUser, get_NamePrefix) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NamePrefix )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_NamePrefix) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NamePrefix )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrNamePrefix); + + DECLSPEC_XFGVIRT(IADsUser, get_NameSuffix) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NameSuffix )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_NameSuffix) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NameSuffix )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrNameSuffix); + + DECLSPEC_XFGVIRT(IADsUser, get_Title) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Title )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_Title) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Title )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrTitle); + + DECLSPEC_XFGVIRT(IADsUser, get_Manager) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Manager )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_Manager) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Manager )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrManager); + + DECLSPEC_XFGVIRT(IADsUser, get_TelephoneHome) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TelephoneHome )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_TelephoneHome) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TelephoneHome )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vTelephoneHome); + + DECLSPEC_XFGVIRT(IADsUser, get_TelephoneMobile) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TelephoneMobile )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_TelephoneMobile) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TelephoneMobile )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vTelephoneMobile); + + DECLSPEC_XFGVIRT(IADsUser, get_TelephoneNumber) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TelephoneNumber )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_TelephoneNumber) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TelephoneNumber )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vTelephoneNumber); + + DECLSPEC_XFGVIRT(IADsUser, get_TelephonePager) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TelephonePager )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_TelephonePager) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TelephonePager )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vTelephonePager); + + DECLSPEC_XFGVIRT(IADsUser, get_FaxNumber) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FaxNumber )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_FaxNumber) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FaxNumber )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vFaxNumber); + + DECLSPEC_XFGVIRT(IADsUser, get_OfficeLocations) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OfficeLocations )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_OfficeLocations) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OfficeLocations )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vOfficeLocations); + + DECLSPEC_XFGVIRT(IADsUser, get_PostalAddresses) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PostalAddresses )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_PostalAddresses) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PostalAddresses )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vPostalAddresses); + + DECLSPEC_XFGVIRT(IADsUser, get_PostalCodes) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PostalCodes )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_PostalCodes) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PostalCodes )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vPostalCodes); + + DECLSPEC_XFGVIRT(IADsUser, get_SeeAlso) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SeeAlso )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_SeeAlso) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SeeAlso )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vSeeAlso); + + DECLSPEC_XFGVIRT(IADsUser, get_AccountDisabled) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AccountDisabled )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_AccountDisabled) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AccountDisabled )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT_BOOL fAccountDisabled); + + DECLSPEC_XFGVIRT(IADsUser, get_AccountExpirationDate) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AccountExpirationDate )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_AccountExpirationDate) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AccountExpirationDate )( + __RPC__in IADsUser * This, + /* [in] */ DATE daAccountExpirationDate); + + DECLSPEC_XFGVIRT(IADsUser, get_GraceLoginsAllowed) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GraceLoginsAllowed )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_GraceLoginsAllowed) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_GraceLoginsAllowed )( + __RPC__in IADsUser * This, + /* [in] */ long lnGraceLoginsAllowed); + + DECLSPEC_XFGVIRT(IADsUser, get_GraceLoginsRemaining) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GraceLoginsRemaining )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_GraceLoginsRemaining) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_GraceLoginsRemaining )( + __RPC__in IADsUser * This, + /* [in] */ long lnGraceLoginsRemaining); + + DECLSPEC_XFGVIRT(IADsUser, get_IsAccountLocked) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsAccountLocked )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_IsAccountLocked) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsAccountLocked )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT_BOOL fIsAccountLocked); + + DECLSPEC_XFGVIRT(IADsUser, get_LoginHours) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LoginHours )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_LoginHours) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LoginHours )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vLoginHours); + + DECLSPEC_XFGVIRT(IADsUser, get_LoginWorkstations) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LoginWorkstations )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_LoginWorkstations) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LoginWorkstations )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vLoginWorkstations); + + DECLSPEC_XFGVIRT(IADsUser, get_MaxLogins) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxLogins )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_MaxLogins) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxLogins )( + __RPC__in IADsUser * This, + /* [in] */ long lnMaxLogins); + + DECLSPEC_XFGVIRT(IADsUser, get_MaxStorage) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxStorage )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_MaxStorage) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxStorage )( + __RPC__in IADsUser * This, + /* [in] */ long lnMaxStorage); + + DECLSPEC_XFGVIRT(IADsUser, get_PasswordExpirationDate) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PasswordExpirationDate )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_PasswordExpirationDate) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PasswordExpirationDate )( + __RPC__in IADsUser * This, + /* [in] */ DATE daPasswordExpirationDate); + + DECLSPEC_XFGVIRT(IADsUser, get_PasswordMinimumLength) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PasswordMinimumLength )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_PasswordMinimumLength) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PasswordMinimumLength )( + __RPC__in IADsUser * This, + /* [in] */ long lnPasswordMinimumLength); + + DECLSPEC_XFGVIRT(IADsUser, get_PasswordRequired) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PasswordRequired )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_PasswordRequired) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PasswordRequired )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT_BOOL fPasswordRequired); + + DECLSPEC_XFGVIRT(IADsUser, get_RequireUniquePassword) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequireUniquePassword )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_RequireUniquePassword) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RequireUniquePassword )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT_BOOL fRequireUniquePassword); + + DECLSPEC_XFGVIRT(IADsUser, get_EmailAddress) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EmailAddress )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_EmailAddress) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EmailAddress )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrEmailAddress); + + DECLSPEC_XFGVIRT(IADsUser, get_HomeDirectory) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HomeDirectory )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_HomeDirectory) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HomeDirectory )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrHomeDirectory); + + DECLSPEC_XFGVIRT(IADsUser, get_Languages) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Languages )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_Languages) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Languages )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vLanguages); + + DECLSPEC_XFGVIRT(IADsUser, get_Profile) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Profile )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_Profile) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Profile )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrProfile); + + DECLSPEC_XFGVIRT(IADsUser, get_LoginScript) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LoginScript )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_LoginScript) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LoginScript )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrLoginScript); + + DECLSPEC_XFGVIRT(IADsUser, get_Picture) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Picture )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_Picture) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Picture )( + __RPC__in IADsUser * This, + /* [in] */ VARIANT vPicture); + + DECLSPEC_XFGVIRT(IADsUser, get_HomePage) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HomePage )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsUser, put_HomePage) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HomePage )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrHomePage); + + DECLSPEC_XFGVIRT(IADsUser, Groups) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Groups )( + __RPC__in IADsUser * This, + /* [retval][out] */ __RPC__deref_out_opt IADsMembers **ppGroups); + + DECLSPEC_XFGVIRT(IADsUser, SetPassword) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetPassword )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR NewPassword); + + DECLSPEC_XFGVIRT(IADsUser, ChangePassword) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ChangePassword )( + __RPC__in IADsUser * This, + /* [in] */ __RPC__in BSTR bstrOldPassword, + /* [in] */ __RPC__in BSTR bstrNewPassword); + + END_INTERFACE + } IADsUserVtbl; + + interface IADsUser + { + CONST_VTBL struct IADsUserVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsUser_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsUser_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsUser_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsUser_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsUser_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsUser_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsUser_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsUser_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsUser_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsUser_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsUser_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsUser_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsUser_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsUser_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsUser_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsUser_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsUser_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsUser_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsUser_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsUser_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsUser_get_BadLoginAddress(This,retval) \ + ( (This)->lpVtbl -> get_BadLoginAddress(This,retval) ) + +#define IADsUser_get_BadLoginCount(This,retval) \ + ( (This)->lpVtbl -> get_BadLoginCount(This,retval) ) + +#define IADsUser_get_LastLogin(This,retval) \ + ( (This)->lpVtbl -> get_LastLogin(This,retval) ) + +#define IADsUser_get_LastLogoff(This,retval) \ + ( (This)->lpVtbl -> get_LastLogoff(This,retval) ) + +#define IADsUser_get_LastFailedLogin(This,retval) \ + ( (This)->lpVtbl -> get_LastFailedLogin(This,retval) ) + +#define IADsUser_get_PasswordLastChanged(This,retval) \ + ( (This)->lpVtbl -> get_PasswordLastChanged(This,retval) ) + +#define IADsUser_get_Description(This,retval) \ + ( (This)->lpVtbl -> get_Description(This,retval) ) + +#define IADsUser_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IADsUser_get_Division(This,retval) \ + ( (This)->lpVtbl -> get_Division(This,retval) ) + +#define IADsUser_put_Division(This,bstrDivision) \ + ( (This)->lpVtbl -> put_Division(This,bstrDivision) ) + +#define IADsUser_get_Department(This,retval) \ + ( (This)->lpVtbl -> get_Department(This,retval) ) + +#define IADsUser_put_Department(This,bstrDepartment) \ + ( (This)->lpVtbl -> put_Department(This,bstrDepartment) ) + +#define IADsUser_get_EmployeeID(This,retval) \ + ( (This)->lpVtbl -> get_EmployeeID(This,retval) ) + +#define IADsUser_put_EmployeeID(This,bstrEmployeeID) \ + ( (This)->lpVtbl -> put_EmployeeID(This,bstrEmployeeID) ) + +#define IADsUser_get_FullName(This,retval) \ + ( (This)->lpVtbl -> get_FullName(This,retval) ) + +#define IADsUser_put_FullName(This,bstrFullName) \ + ( (This)->lpVtbl -> put_FullName(This,bstrFullName) ) + +#define IADsUser_get_FirstName(This,retval) \ + ( (This)->lpVtbl -> get_FirstName(This,retval) ) + +#define IADsUser_put_FirstName(This,bstrFirstName) \ + ( (This)->lpVtbl -> put_FirstName(This,bstrFirstName) ) + +#define IADsUser_get_LastName(This,retval) \ + ( (This)->lpVtbl -> get_LastName(This,retval) ) + +#define IADsUser_put_LastName(This,bstrLastName) \ + ( (This)->lpVtbl -> put_LastName(This,bstrLastName) ) + +#define IADsUser_get_OtherName(This,retval) \ + ( (This)->lpVtbl -> get_OtherName(This,retval) ) + +#define IADsUser_put_OtherName(This,bstrOtherName) \ + ( (This)->lpVtbl -> put_OtherName(This,bstrOtherName) ) + +#define IADsUser_get_NamePrefix(This,retval) \ + ( (This)->lpVtbl -> get_NamePrefix(This,retval) ) + +#define IADsUser_put_NamePrefix(This,bstrNamePrefix) \ + ( (This)->lpVtbl -> put_NamePrefix(This,bstrNamePrefix) ) + +#define IADsUser_get_NameSuffix(This,retval) \ + ( (This)->lpVtbl -> get_NameSuffix(This,retval) ) + +#define IADsUser_put_NameSuffix(This,bstrNameSuffix) \ + ( (This)->lpVtbl -> put_NameSuffix(This,bstrNameSuffix) ) + +#define IADsUser_get_Title(This,retval) \ + ( (This)->lpVtbl -> get_Title(This,retval) ) + +#define IADsUser_put_Title(This,bstrTitle) \ + ( (This)->lpVtbl -> put_Title(This,bstrTitle) ) + +#define IADsUser_get_Manager(This,retval) \ + ( (This)->lpVtbl -> get_Manager(This,retval) ) + +#define IADsUser_put_Manager(This,bstrManager) \ + ( (This)->lpVtbl -> put_Manager(This,bstrManager) ) + +#define IADsUser_get_TelephoneHome(This,retval) \ + ( (This)->lpVtbl -> get_TelephoneHome(This,retval) ) + +#define IADsUser_put_TelephoneHome(This,vTelephoneHome) \ + ( (This)->lpVtbl -> put_TelephoneHome(This,vTelephoneHome) ) + +#define IADsUser_get_TelephoneMobile(This,retval) \ + ( (This)->lpVtbl -> get_TelephoneMobile(This,retval) ) + +#define IADsUser_put_TelephoneMobile(This,vTelephoneMobile) \ + ( (This)->lpVtbl -> put_TelephoneMobile(This,vTelephoneMobile) ) + +#define IADsUser_get_TelephoneNumber(This,retval) \ + ( (This)->lpVtbl -> get_TelephoneNumber(This,retval) ) + +#define IADsUser_put_TelephoneNumber(This,vTelephoneNumber) \ + ( (This)->lpVtbl -> put_TelephoneNumber(This,vTelephoneNumber) ) + +#define IADsUser_get_TelephonePager(This,retval) \ + ( (This)->lpVtbl -> get_TelephonePager(This,retval) ) + +#define IADsUser_put_TelephonePager(This,vTelephonePager) \ + ( (This)->lpVtbl -> put_TelephonePager(This,vTelephonePager) ) + +#define IADsUser_get_FaxNumber(This,retval) \ + ( (This)->lpVtbl -> get_FaxNumber(This,retval) ) + +#define IADsUser_put_FaxNumber(This,vFaxNumber) \ + ( (This)->lpVtbl -> put_FaxNumber(This,vFaxNumber) ) + +#define IADsUser_get_OfficeLocations(This,retval) \ + ( (This)->lpVtbl -> get_OfficeLocations(This,retval) ) + +#define IADsUser_put_OfficeLocations(This,vOfficeLocations) \ + ( (This)->lpVtbl -> put_OfficeLocations(This,vOfficeLocations) ) + +#define IADsUser_get_PostalAddresses(This,retval) \ + ( (This)->lpVtbl -> get_PostalAddresses(This,retval) ) + +#define IADsUser_put_PostalAddresses(This,vPostalAddresses) \ + ( (This)->lpVtbl -> put_PostalAddresses(This,vPostalAddresses) ) + +#define IADsUser_get_PostalCodes(This,retval) \ + ( (This)->lpVtbl -> get_PostalCodes(This,retval) ) + +#define IADsUser_put_PostalCodes(This,vPostalCodes) \ + ( (This)->lpVtbl -> put_PostalCodes(This,vPostalCodes) ) + +#define IADsUser_get_SeeAlso(This,retval) \ + ( (This)->lpVtbl -> get_SeeAlso(This,retval) ) + +#define IADsUser_put_SeeAlso(This,vSeeAlso) \ + ( (This)->lpVtbl -> put_SeeAlso(This,vSeeAlso) ) + +#define IADsUser_get_AccountDisabled(This,retval) \ + ( (This)->lpVtbl -> get_AccountDisabled(This,retval) ) + +#define IADsUser_put_AccountDisabled(This,fAccountDisabled) \ + ( (This)->lpVtbl -> put_AccountDisabled(This,fAccountDisabled) ) + +#define IADsUser_get_AccountExpirationDate(This,retval) \ + ( (This)->lpVtbl -> get_AccountExpirationDate(This,retval) ) + +#define IADsUser_put_AccountExpirationDate(This,daAccountExpirationDate) \ + ( (This)->lpVtbl -> put_AccountExpirationDate(This,daAccountExpirationDate) ) + +#define IADsUser_get_GraceLoginsAllowed(This,retval) \ + ( (This)->lpVtbl -> get_GraceLoginsAllowed(This,retval) ) + +#define IADsUser_put_GraceLoginsAllowed(This,lnGraceLoginsAllowed) \ + ( (This)->lpVtbl -> put_GraceLoginsAllowed(This,lnGraceLoginsAllowed) ) + +#define IADsUser_get_GraceLoginsRemaining(This,retval) \ + ( (This)->lpVtbl -> get_GraceLoginsRemaining(This,retval) ) + +#define IADsUser_put_GraceLoginsRemaining(This,lnGraceLoginsRemaining) \ + ( (This)->lpVtbl -> put_GraceLoginsRemaining(This,lnGraceLoginsRemaining) ) + +#define IADsUser_get_IsAccountLocked(This,retval) \ + ( (This)->lpVtbl -> get_IsAccountLocked(This,retval) ) + +#define IADsUser_put_IsAccountLocked(This,fIsAccountLocked) \ + ( (This)->lpVtbl -> put_IsAccountLocked(This,fIsAccountLocked) ) + +#define IADsUser_get_LoginHours(This,retval) \ + ( (This)->lpVtbl -> get_LoginHours(This,retval) ) + +#define IADsUser_put_LoginHours(This,vLoginHours) \ + ( (This)->lpVtbl -> put_LoginHours(This,vLoginHours) ) + +#define IADsUser_get_LoginWorkstations(This,retval) \ + ( (This)->lpVtbl -> get_LoginWorkstations(This,retval) ) + +#define IADsUser_put_LoginWorkstations(This,vLoginWorkstations) \ + ( (This)->lpVtbl -> put_LoginWorkstations(This,vLoginWorkstations) ) + +#define IADsUser_get_MaxLogins(This,retval) \ + ( (This)->lpVtbl -> get_MaxLogins(This,retval) ) + +#define IADsUser_put_MaxLogins(This,lnMaxLogins) \ + ( (This)->lpVtbl -> put_MaxLogins(This,lnMaxLogins) ) + +#define IADsUser_get_MaxStorage(This,retval) \ + ( (This)->lpVtbl -> get_MaxStorage(This,retval) ) + +#define IADsUser_put_MaxStorage(This,lnMaxStorage) \ + ( (This)->lpVtbl -> put_MaxStorage(This,lnMaxStorage) ) + +#define IADsUser_get_PasswordExpirationDate(This,retval) \ + ( (This)->lpVtbl -> get_PasswordExpirationDate(This,retval) ) + +#define IADsUser_put_PasswordExpirationDate(This,daPasswordExpirationDate) \ + ( (This)->lpVtbl -> put_PasswordExpirationDate(This,daPasswordExpirationDate) ) + +#define IADsUser_get_PasswordMinimumLength(This,retval) \ + ( (This)->lpVtbl -> get_PasswordMinimumLength(This,retval) ) + +#define IADsUser_put_PasswordMinimumLength(This,lnPasswordMinimumLength) \ + ( (This)->lpVtbl -> put_PasswordMinimumLength(This,lnPasswordMinimumLength) ) + +#define IADsUser_get_PasswordRequired(This,retval) \ + ( (This)->lpVtbl -> get_PasswordRequired(This,retval) ) + +#define IADsUser_put_PasswordRequired(This,fPasswordRequired) \ + ( (This)->lpVtbl -> put_PasswordRequired(This,fPasswordRequired) ) + +#define IADsUser_get_RequireUniquePassword(This,retval) \ + ( (This)->lpVtbl -> get_RequireUniquePassword(This,retval) ) + +#define IADsUser_put_RequireUniquePassword(This,fRequireUniquePassword) \ + ( (This)->lpVtbl -> put_RequireUniquePassword(This,fRequireUniquePassword) ) + +#define IADsUser_get_EmailAddress(This,retval) \ + ( (This)->lpVtbl -> get_EmailAddress(This,retval) ) + +#define IADsUser_put_EmailAddress(This,bstrEmailAddress) \ + ( (This)->lpVtbl -> put_EmailAddress(This,bstrEmailAddress) ) + +#define IADsUser_get_HomeDirectory(This,retval) \ + ( (This)->lpVtbl -> get_HomeDirectory(This,retval) ) + +#define IADsUser_put_HomeDirectory(This,bstrHomeDirectory) \ + ( (This)->lpVtbl -> put_HomeDirectory(This,bstrHomeDirectory) ) + +#define IADsUser_get_Languages(This,retval) \ + ( (This)->lpVtbl -> get_Languages(This,retval) ) + +#define IADsUser_put_Languages(This,vLanguages) \ + ( (This)->lpVtbl -> put_Languages(This,vLanguages) ) + +#define IADsUser_get_Profile(This,retval) \ + ( (This)->lpVtbl -> get_Profile(This,retval) ) + +#define IADsUser_put_Profile(This,bstrProfile) \ + ( (This)->lpVtbl -> put_Profile(This,bstrProfile) ) + +#define IADsUser_get_LoginScript(This,retval) \ + ( (This)->lpVtbl -> get_LoginScript(This,retval) ) + +#define IADsUser_put_LoginScript(This,bstrLoginScript) \ + ( (This)->lpVtbl -> put_LoginScript(This,bstrLoginScript) ) + +#define IADsUser_get_Picture(This,retval) \ + ( (This)->lpVtbl -> get_Picture(This,retval) ) + +#define IADsUser_put_Picture(This,vPicture) \ + ( (This)->lpVtbl -> put_Picture(This,vPicture) ) + +#define IADsUser_get_HomePage(This,retval) \ + ( (This)->lpVtbl -> get_HomePage(This,retval) ) + +#define IADsUser_put_HomePage(This,bstrHomePage) \ + ( (This)->lpVtbl -> put_HomePage(This,bstrHomePage) ) + +#define IADsUser_Groups(This,ppGroups) \ + ( (This)->lpVtbl -> Groups(This,ppGroups) ) + +#define IADsUser_SetPassword(This,NewPassword) \ + ( (This)->lpVtbl -> SetPassword(This,NewPassword) ) + +#define IADsUser_ChangePassword(This,bstrOldPassword,bstrNewPassword) \ + ( (This)->lpVtbl -> ChangePassword(This,bstrOldPassword,bstrNewPassword) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsUser_INTERFACE_DEFINED__ */ + + +#ifndef __IADsPrintQueue_INTERFACE_DEFINED__ +#define __IADsPrintQueue_INTERFACE_DEFINED__ + +/* interface IADsPrintQueue */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPrintQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b15160d0-1226-11cf-a985-00aa006bc149") + IADsPrintQueue : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PrinterPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PrinterPath( + /* [in] */ __RPC__in BSTR bstrPrinterPath) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Model( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Model( + /* [in] */ __RPC__in BSTR bstrModel) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Datatype( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Datatype( + /* [in] */ __RPC__in BSTR bstrDatatype) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PrintProcessor( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PrintProcessor( + /* [in] */ __RPC__in BSTR bstrPrintProcessor) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Location( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Location( + /* [in] */ __RPC__in BSTR bstrLocation) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_StartTime( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_StartTime( + /* [in] */ DATE daStartTime) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_UntilTime( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_UntilTime( + /* [in] */ DATE daUntilTime) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultJobPriority( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DefaultJobPriority( + /* [in] */ long lnDefaultJobPriority) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Priority( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Priority( + /* [in] */ long lnPriority) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BannerPage( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_BannerPage( + /* [in] */ __RPC__in BSTR bstrBannerPage) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PrintDevices( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PrintDevices( + /* [in] */ VARIANT vPrintDevices) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_NetAddresses( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_NetAddresses( + /* [in] */ VARIANT vNetAddresses) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPrintQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPrintQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPrintQueue * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPrintQueue * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPrintQueue * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPrintQueue * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsPrintQueue * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsPrintQueue * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsPrintQueue * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsPrintQueue * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_PrinterPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrinterPath )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_PrinterPath) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PrinterPath )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in BSTR bstrPrinterPath); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_Model) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Model )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_Model) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Model )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in BSTR bstrModel); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_Datatype) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Datatype )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_Datatype) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Datatype )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in BSTR bstrDatatype); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_PrintProcessor) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrintProcessor )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_PrintProcessor) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PrintProcessor )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in BSTR bstrPrintProcessor); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_Description) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_Description) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_Location) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Location )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_Location) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Location )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in BSTR bstrLocation); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_StartTime) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartTime )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_StartTime) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StartTime )( + __RPC__in IADsPrintQueue * This, + /* [in] */ DATE daStartTime); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_UntilTime) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UntilTime )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_UntilTime) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UntilTime )( + __RPC__in IADsPrintQueue * This, + /* [in] */ DATE daUntilTime); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_DefaultJobPriority) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultJobPriority )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_DefaultJobPriority) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultJobPriority )( + __RPC__in IADsPrintQueue * This, + /* [in] */ long lnDefaultJobPriority); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_Priority) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_Priority) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Priority )( + __RPC__in IADsPrintQueue * This, + /* [in] */ long lnPriority); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_BannerPage) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BannerPage )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_BannerPage) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BannerPage )( + __RPC__in IADsPrintQueue * This, + /* [in] */ __RPC__in BSTR bstrBannerPage); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_PrintDevices) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrintDevices )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_PrintDevices) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PrintDevices )( + __RPC__in IADsPrintQueue * This, + /* [in] */ VARIANT vPrintDevices); + + DECLSPEC_XFGVIRT(IADsPrintQueue, get_NetAddresses) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetAddresses )( + __RPC__in IADsPrintQueue * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueue, put_NetAddresses) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NetAddresses )( + __RPC__in IADsPrintQueue * This, + /* [in] */ VARIANT vNetAddresses); + + END_INTERFACE + } IADsPrintQueueVtbl; + + interface IADsPrintQueue + { + CONST_VTBL struct IADsPrintQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPrintQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPrintQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPrintQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPrintQueue_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPrintQueue_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPrintQueue_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPrintQueue_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPrintQueue_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsPrintQueue_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsPrintQueue_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsPrintQueue_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsPrintQueue_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsPrintQueue_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsPrintQueue_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsPrintQueue_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsPrintQueue_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsPrintQueue_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsPrintQueue_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsPrintQueue_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsPrintQueue_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsPrintQueue_get_PrinterPath(This,retval) \ + ( (This)->lpVtbl -> get_PrinterPath(This,retval) ) + +#define IADsPrintQueue_put_PrinterPath(This,bstrPrinterPath) \ + ( (This)->lpVtbl -> put_PrinterPath(This,bstrPrinterPath) ) + +#define IADsPrintQueue_get_Model(This,retval) \ + ( (This)->lpVtbl -> get_Model(This,retval) ) + +#define IADsPrintQueue_put_Model(This,bstrModel) \ + ( (This)->lpVtbl -> put_Model(This,bstrModel) ) + +#define IADsPrintQueue_get_Datatype(This,retval) \ + ( (This)->lpVtbl -> get_Datatype(This,retval) ) + +#define IADsPrintQueue_put_Datatype(This,bstrDatatype) \ + ( (This)->lpVtbl -> put_Datatype(This,bstrDatatype) ) + +#define IADsPrintQueue_get_PrintProcessor(This,retval) \ + ( (This)->lpVtbl -> get_PrintProcessor(This,retval) ) + +#define IADsPrintQueue_put_PrintProcessor(This,bstrPrintProcessor) \ + ( (This)->lpVtbl -> put_PrintProcessor(This,bstrPrintProcessor) ) + +#define IADsPrintQueue_get_Description(This,retval) \ + ( (This)->lpVtbl -> get_Description(This,retval) ) + +#define IADsPrintQueue_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IADsPrintQueue_get_Location(This,retval) \ + ( (This)->lpVtbl -> get_Location(This,retval) ) + +#define IADsPrintQueue_put_Location(This,bstrLocation) \ + ( (This)->lpVtbl -> put_Location(This,bstrLocation) ) + +#define IADsPrintQueue_get_StartTime(This,retval) \ + ( (This)->lpVtbl -> get_StartTime(This,retval) ) + +#define IADsPrintQueue_put_StartTime(This,daStartTime) \ + ( (This)->lpVtbl -> put_StartTime(This,daStartTime) ) + +#define IADsPrintQueue_get_UntilTime(This,retval) \ + ( (This)->lpVtbl -> get_UntilTime(This,retval) ) + +#define IADsPrintQueue_put_UntilTime(This,daUntilTime) \ + ( (This)->lpVtbl -> put_UntilTime(This,daUntilTime) ) + +#define IADsPrintQueue_get_DefaultJobPriority(This,retval) \ + ( (This)->lpVtbl -> get_DefaultJobPriority(This,retval) ) + +#define IADsPrintQueue_put_DefaultJobPriority(This,lnDefaultJobPriority) \ + ( (This)->lpVtbl -> put_DefaultJobPriority(This,lnDefaultJobPriority) ) + +#define IADsPrintQueue_get_Priority(This,retval) \ + ( (This)->lpVtbl -> get_Priority(This,retval) ) + +#define IADsPrintQueue_put_Priority(This,lnPriority) \ + ( (This)->lpVtbl -> put_Priority(This,lnPriority) ) + +#define IADsPrintQueue_get_BannerPage(This,retval) \ + ( (This)->lpVtbl -> get_BannerPage(This,retval) ) + +#define IADsPrintQueue_put_BannerPage(This,bstrBannerPage) \ + ( (This)->lpVtbl -> put_BannerPage(This,bstrBannerPage) ) + +#define IADsPrintQueue_get_PrintDevices(This,retval) \ + ( (This)->lpVtbl -> get_PrintDevices(This,retval) ) + +#define IADsPrintQueue_put_PrintDevices(This,vPrintDevices) \ + ( (This)->lpVtbl -> put_PrintDevices(This,vPrintDevices) ) + +#define IADsPrintQueue_get_NetAddresses(This,retval) \ + ( (This)->lpVtbl -> get_NetAddresses(This,retval) ) + +#define IADsPrintQueue_put_NetAddresses(This,vNetAddresses) \ + ( (This)->lpVtbl -> put_NetAddresses(This,vNetAddresses) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPrintQueue_INTERFACE_DEFINED__ */ + + +#ifndef __IADsPrintQueueOperations_INTERFACE_DEFINED__ +#define __IADsPrintQueueOperations_INTERFACE_DEFINED__ + +/* interface IADsPrintQueueOperations */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPrintQueueOperations; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("124be5c0-156e-11cf-a986-00aa006bc149") + IADsPrintQueueOperations : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE PrintJobs( + /* [retval][out] */ __RPC__deref_out_opt IADsCollection **pObject) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Resume( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Purge( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPrintQueueOperationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPrintQueueOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPrintQueueOperations * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPrintQueueOperations * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPrintQueueOperations * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPrintQueueOperations * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPrintQueueOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPrintQueueOperations * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsPrintQueueOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsPrintQueueOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsPrintQueueOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsPrintQueueOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsPrintQueueOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsPrintQueueOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsPrintQueueOperations * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsPrintQueueOperations * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsPrintQueueOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsPrintQueueOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsPrintQueueOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsPrintQueueOperations * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsPrintQueueOperations * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsPrintQueueOperations, get_Status) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IADsPrintQueueOperations * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPrintQueueOperations, PrintJobs) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PrintJobs )( + __RPC__in IADsPrintQueueOperations * This, + /* [retval][out] */ __RPC__deref_out_opt IADsCollection **pObject); + + DECLSPEC_XFGVIRT(IADsPrintQueueOperations, Pause) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( + __RPC__in IADsPrintQueueOperations * This); + + DECLSPEC_XFGVIRT(IADsPrintQueueOperations, Resume) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IADsPrintQueueOperations * This); + + DECLSPEC_XFGVIRT(IADsPrintQueueOperations, Purge) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Purge )( + __RPC__in IADsPrintQueueOperations * This); + + END_INTERFACE + } IADsPrintQueueOperationsVtbl; + + interface IADsPrintQueueOperations + { + CONST_VTBL struct IADsPrintQueueOperationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPrintQueueOperations_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPrintQueueOperations_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPrintQueueOperations_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPrintQueueOperations_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPrintQueueOperations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPrintQueueOperations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPrintQueueOperations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPrintQueueOperations_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsPrintQueueOperations_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsPrintQueueOperations_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsPrintQueueOperations_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsPrintQueueOperations_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsPrintQueueOperations_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsPrintQueueOperations_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsPrintQueueOperations_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsPrintQueueOperations_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsPrintQueueOperations_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsPrintQueueOperations_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsPrintQueueOperations_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsPrintQueueOperations_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsPrintQueueOperations_get_Status(This,retval) \ + ( (This)->lpVtbl -> get_Status(This,retval) ) + +#define IADsPrintQueueOperations_PrintJobs(This,pObject) \ + ( (This)->lpVtbl -> PrintJobs(This,pObject) ) + +#define IADsPrintQueueOperations_Pause(This) \ + ( (This)->lpVtbl -> Pause(This) ) + +#define IADsPrintQueueOperations_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#define IADsPrintQueueOperations_Purge(This) \ + ( (This)->lpVtbl -> Purge(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPrintQueueOperations_INTERFACE_DEFINED__ */ + + +#ifndef __IADsPrintJob_INTERFACE_DEFINED__ +#define __IADsPrintJob_INTERFACE_DEFINED__ + +/* interface IADsPrintJob */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPrintJob; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("32fb6780-1ed0-11cf-a988-00aa006bc149") + IADsPrintJob : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_HostPrintQueue( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_User( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_UserPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TimeSubmitted( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalPages( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Priority( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Priority( + /* [in] */ long lnPriority) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_StartTime( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_StartTime( + /* [in] */ DATE daStartTime) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_UntilTime( + /* [retval][out] */ __RPC__out DATE *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_UntilTime( + /* [in] */ DATE daUntilTime) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Notify( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Notify( + /* [in] */ __RPC__in BSTR bstrNotify) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_NotifyPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_NotifyPath( + /* [in] */ __RPC__in BSTR bstrNotifyPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPrintJobVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPrintJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPrintJob * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPrintJob * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPrintJob * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPrintJob * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPrintJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPrintJob * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsPrintJob * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsPrintJob * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsPrintJob * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsPrintJob * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsPrintJob * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsPrintJob * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsPrintJob * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_HostPrintQueue) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HostPrintQueue )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_User) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_User )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_UserPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserPath )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_TimeSubmitted) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TimeSubmitted )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_TotalPages) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalPages )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_Size) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_Description) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, put_Description) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IADsPrintJob * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_Priority) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, put_Priority) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Priority )( + __RPC__in IADsPrintJob * This, + /* [in] */ long lnPriority); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_StartTime) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartTime )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, put_StartTime) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StartTime )( + __RPC__in IADsPrintJob * This, + /* [in] */ DATE daStartTime); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_UntilTime) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UntilTime )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__out DATE *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, put_UntilTime) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UntilTime )( + __RPC__in IADsPrintJob * This, + /* [in] */ DATE daUntilTime); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_Notify) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Notify )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, put_Notify) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Notify )( + __RPC__in IADsPrintJob * This, + /* [in] */ __RPC__in BSTR bstrNotify); + + DECLSPEC_XFGVIRT(IADsPrintJob, get_NotifyPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NotifyPath )( + __RPC__in IADsPrintJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPrintJob, put_NotifyPath) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NotifyPath )( + __RPC__in IADsPrintJob * This, + /* [in] */ __RPC__in BSTR bstrNotifyPath); + + END_INTERFACE + } IADsPrintJobVtbl; + + interface IADsPrintJob + { + CONST_VTBL struct IADsPrintJobVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPrintJob_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPrintJob_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPrintJob_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPrintJob_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPrintJob_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPrintJob_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPrintJob_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPrintJob_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsPrintJob_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsPrintJob_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsPrintJob_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsPrintJob_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsPrintJob_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsPrintJob_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsPrintJob_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsPrintJob_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsPrintJob_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsPrintJob_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsPrintJob_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsPrintJob_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsPrintJob_get_HostPrintQueue(This,retval) \ + ( (This)->lpVtbl -> get_HostPrintQueue(This,retval) ) + +#define IADsPrintJob_get_User(This,retval) \ + ( (This)->lpVtbl -> get_User(This,retval) ) + +#define IADsPrintJob_get_UserPath(This,retval) \ + ( (This)->lpVtbl -> get_UserPath(This,retval) ) + +#define IADsPrintJob_get_TimeSubmitted(This,retval) \ + ( (This)->lpVtbl -> get_TimeSubmitted(This,retval) ) + +#define IADsPrintJob_get_TotalPages(This,retval) \ + ( (This)->lpVtbl -> get_TotalPages(This,retval) ) + +#define IADsPrintJob_get_Size(This,retval) \ + ( (This)->lpVtbl -> get_Size(This,retval) ) + +#define IADsPrintJob_get_Description(This,retval) \ + ( (This)->lpVtbl -> get_Description(This,retval) ) + +#define IADsPrintJob_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IADsPrintJob_get_Priority(This,retval) \ + ( (This)->lpVtbl -> get_Priority(This,retval) ) + +#define IADsPrintJob_put_Priority(This,lnPriority) \ + ( (This)->lpVtbl -> put_Priority(This,lnPriority) ) + +#define IADsPrintJob_get_StartTime(This,retval) \ + ( (This)->lpVtbl -> get_StartTime(This,retval) ) + +#define IADsPrintJob_put_StartTime(This,daStartTime) \ + ( (This)->lpVtbl -> put_StartTime(This,daStartTime) ) + +#define IADsPrintJob_get_UntilTime(This,retval) \ + ( (This)->lpVtbl -> get_UntilTime(This,retval) ) + +#define IADsPrintJob_put_UntilTime(This,daUntilTime) \ + ( (This)->lpVtbl -> put_UntilTime(This,daUntilTime) ) + +#define IADsPrintJob_get_Notify(This,retval) \ + ( (This)->lpVtbl -> get_Notify(This,retval) ) + +#define IADsPrintJob_put_Notify(This,bstrNotify) \ + ( (This)->lpVtbl -> put_Notify(This,bstrNotify) ) + +#define IADsPrintJob_get_NotifyPath(This,retval) \ + ( (This)->lpVtbl -> get_NotifyPath(This,retval) ) + +#define IADsPrintJob_put_NotifyPath(This,bstrNotifyPath) \ + ( (This)->lpVtbl -> put_NotifyPath(This,bstrNotifyPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPrintJob_INTERFACE_DEFINED__ */ + + +#ifndef __IADsPrintJobOperations_INTERFACE_DEFINED__ +#define __IADsPrintJobOperations_INTERFACE_DEFINED__ + +/* interface IADsPrintJobOperations */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPrintJobOperations; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9a52db30-1ecf-11cf-a988-00aa006bc149") + IADsPrintJobOperations : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TimeElapsed( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PagesPrinted( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Position( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Position( + /* [in] */ long lnPosition) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Resume( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPrintJobOperationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPrintJobOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPrintJobOperations * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPrintJobOperations * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPrintJobOperations * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPrintJobOperations * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPrintJobOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPrintJobOperations * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsPrintJobOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsPrintJobOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsPrintJobOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsPrintJobOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsPrintJobOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsPrintJobOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsPrintJobOperations * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsPrintJobOperations * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsPrintJobOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsPrintJobOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsPrintJobOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsPrintJobOperations * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsPrintJobOperations * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsPrintJobOperations, get_Status) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IADsPrintJobOperations * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPrintJobOperations, get_TimeElapsed) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TimeElapsed )( + __RPC__in IADsPrintJobOperations * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPrintJobOperations, get_PagesPrinted) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PagesPrinted )( + __RPC__in IADsPrintJobOperations * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPrintJobOperations, get_Position) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Position )( + __RPC__in IADsPrintJobOperations * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPrintJobOperations, put_Position) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Position )( + __RPC__in IADsPrintJobOperations * This, + /* [in] */ long lnPosition); + + DECLSPEC_XFGVIRT(IADsPrintJobOperations, Pause) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( + __RPC__in IADsPrintJobOperations * This); + + DECLSPEC_XFGVIRT(IADsPrintJobOperations, Resume) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IADsPrintJobOperations * This); + + END_INTERFACE + } IADsPrintJobOperationsVtbl; + + interface IADsPrintJobOperations + { + CONST_VTBL struct IADsPrintJobOperationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPrintJobOperations_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPrintJobOperations_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPrintJobOperations_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPrintJobOperations_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPrintJobOperations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPrintJobOperations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPrintJobOperations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPrintJobOperations_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsPrintJobOperations_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsPrintJobOperations_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsPrintJobOperations_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsPrintJobOperations_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsPrintJobOperations_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsPrintJobOperations_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsPrintJobOperations_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsPrintJobOperations_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsPrintJobOperations_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsPrintJobOperations_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsPrintJobOperations_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsPrintJobOperations_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsPrintJobOperations_get_Status(This,retval) \ + ( (This)->lpVtbl -> get_Status(This,retval) ) + +#define IADsPrintJobOperations_get_TimeElapsed(This,retval) \ + ( (This)->lpVtbl -> get_TimeElapsed(This,retval) ) + +#define IADsPrintJobOperations_get_PagesPrinted(This,retval) \ + ( (This)->lpVtbl -> get_PagesPrinted(This,retval) ) + +#define IADsPrintJobOperations_get_Position(This,retval) \ + ( (This)->lpVtbl -> get_Position(This,retval) ) + +#define IADsPrintJobOperations_put_Position(This,lnPosition) \ + ( (This)->lpVtbl -> put_Position(This,lnPosition) ) + +#define IADsPrintJobOperations_Pause(This) \ + ( (This)->lpVtbl -> Pause(This) ) + +#define IADsPrintJobOperations_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPrintJobOperations_INTERFACE_DEFINED__ */ + + +#ifndef __IADsService_INTERFACE_DEFINED__ +#define __IADsService_INTERFACE_DEFINED__ + +/* interface IADsService */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("68af66e0-31ca-11cf-a98a-00aa006bc149") + IADsService : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_HostComputer( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_HostComputer( + /* [in] */ __RPC__in BSTR bstrHostComputer) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DisplayName( + /* [in] */ __RPC__in BSTR bstrDisplayName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Version( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Version( + /* [in] */ __RPC__in BSTR bstrVersion) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ServiceType( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ServiceType( + /* [in] */ long lnServiceType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_StartType( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_StartType( + /* [in] */ long lnStartType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Path( + /* [in] */ __RPC__in BSTR bstrPath) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_StartupParameters( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_StartupParameters( + /* [in] */ __RPC__in BSTR bstrStartupParameters) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ErrorControl( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ErrorControl( + /* [in] */ long lnErrorControl) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LoadOrderGroup( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LoadOrderGroup( + /* [in] */ __RPC__in BSTR bstrLoadOrderGroup) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ServiceAccountName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ServiceAccountName( + /* [in] */ __RPC__in BSTR bstrServiceAccountName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ServiceAccountPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ServiceAccountPath( + /* [in] */ __RPC__in BSTR bstrServiceAccountPath) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Dependencies( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Dependencies( + /* [in] */ VARIANT vDependencies) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsService * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsService * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsService * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsService * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsService * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsService * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsService * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsService * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsService, get_HostComputer) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HostComputer )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_HostComputer) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HostComputer )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrHostComputer); + + DECLSPEC_XFGVIRT(IADsService, get_DisplayName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_DisplayName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayName )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrDisplayName); + + DECLSPEC_XFGVIRT(IADsService, get_Version) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_Version) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Version )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrVersion); + + DECLSPEC_XFGVIRT(IADsService, get_ServiceType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServiceType )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsService, put_ServiceType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServiceType )( + __RPC__in IADsService * This, + /* [in] */ long lnServiceType); + + DECLSPEC_XFGVIRT(IADsService, get_StartType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartType )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsService, put_StartType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StartType )( + __RPC__in IADsService * This, + /* [in] */ long lnStartType); + + DECLSPEC_XFGVIRT(IADsService, get_Path) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_Path) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Path )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrPath); + + DECLSPEC_XFGVIRT(IADsService, get_StartupParameters) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartupParameters )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_StartupParameters) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StartupParameters )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrStartupParameters); + + DECLSPEC_XFGVIRT(IADsService, get_ErrorControl) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorControl )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsService, put_ErrorControl) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ErrorControl )( + __RPC__in IADsService * This, + /* [in] */ long lnErrorControl); + + DECLSPEC_XFGVIRT(IADsService, get_LoadOrderGroup) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LoadOrderGroup )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_LoadOrderGroup) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LoadOrderGroup )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrLoadOrderGroup); + + DECLSPEC_XFGVIRT(IADsService, get_ServiceAccountName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServiceAccountName )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_ServiceAccountName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServiceAccountName )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrServiceAccountName); + + DECLSPEC_XFGVIRT(IADsService, get_ServiceAccountPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServiceAccountPath )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_ServiceAccountPath) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServiceAccountPath )( + __RPC__in IADsService * This, + /* [in] */ __RPC__in BSTR bstrServiceAccountPath); + + DECLSPEC_XFGVIRT(IADsService, get_Dependencies) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Dependencies )( + __RPC__in IADsService * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsService, put_Dependencies) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Dependencies )( + __RPC__in IADsService * This, + /* [in] */ VARIANT vDependencies); + + END_INTERFACE + } IADsServiceVtbl; + + interface IADsService + { + CONST_VTBL struct IADsServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsService_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsService_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsService_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsService_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsService_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsService_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsService_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsService_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsService_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsService_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsService_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsService_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsService_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsService_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsService_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsService_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsService_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsService_get_HostComputer(This,retval) \ + ( (This)->lpVtbl -> get_HostComputer(This,retval) ) + +#define IADsService_put_HostComputer(This,bstrHostComputer) \ + ( (This)->lpVtbl -> put_HostComputer(This,bstrHostComputer) ) + +#define IADsService_get_DisplayName(This,retval) \ + ( (This)->lpVtbl -> get_DisplayName(This,retval) ) + +#define IADsService_put_DisplayName(This,bstrDisplayName) \ + ( (This)->lpVtbl -> put_DisplayName(This,bstrDisplayName) ) + +#define IADsService_get_Version(This,retval) \ + ( (This)->lpVtbl -> get_Version(This,retval) ) + +#define IADsService_put_Version(This,bstrVersion) \ + ( (This)->lpVtbl -> put_Version(This,bstrVersion) ) + +#define IADsService_get_ServiceType(This,retval) \ + ( (This)->lpVtbl -> get_ServiceType(This,retval) ) + +#define IADsService_put_ServiceType(This,lnServiceType) \ + ( (This)->lpVtbl -> put_ServiceType(This,lnServiceType) ) + +#define IADsService_get_StartType(This,retval) \ + ( (This)->lpVtbl -> get_StartType(This,retval) ) + +#define IADsService_put_StartType(This,lnStartType) \ + ( (This)->lpVtbl -> put_StartType(This,lnStartType) ) + +#define IADsService_get_Path(This,retval) \ + ( (This)->lpVtbl -> get_Path(This,retval) ) + +#define IADsService_put_Path(This,bstrPath) \ + ( (This)->lpVtbl -> put_Path(This,bstrPath) ) + +#define IADsService_get_StartupParameters(This,retval) \ + ( (This)->lpVtbl -> get_StartupParameters(This,retval) ) + +#define IADsService_put_StartupParameters(This,bstrStartupParameters) \ + ( (This)->lpVtbl -> put_StartupParameters(This,bstrStartupParameters) ) + +#define IADsService_get_ErrorControl(This,retval) \ + ( (This)->lpVtbl -> get_ErrorControl(This,retval) ) + +#define IADsService_put_ErrorControl(This,lnErrorControl) \ + ( (This)->lpVtbl -> put_ErrorControl(This,lnErrorControl) ) + +#define IADsService_get_LoadOrderGroup(This,retval) \ + ( (This)->lpVtbl -> get_LoadOrderGroup(This,retval) ) + +#define IADsService_put_LoadOrderGroup(This,bstrLoadOrderGroup) \ + ( (This)->lpVtbl -> put_LoadOrderGroup(This,bstrLoadOrderGroup) ) + +#define IADsService_get_ServiceAccountName(This,retval) \ + ( (This)->lpVtbl -> get_ServiceAccountName(This,retval) ) + +#define IADsService_put_ServiceAccountName(This,bstrServiceAccountName) \ + ( (This)->lpVtbl -> put_ServiceAccountName(This,bstrServiceAccountName) ) + +#define IADsService_get_ServiceAccountPath(This,retval) \ + ( (This)->lpVtbl -> get_ServiceAccountPath(This,retval) ) + +#define IADsService_put_ServiceAccountPath(This,bstrServiceAccountPath) \ + ( (This)->lpVtbl -> put_ServiceAccountPath(This,bstrServiceAccountPath) ) + +#define IADsService_get_Dependencies(This,retval) \ + ( (This)->lpVtbl -> get_Dependencies(This,retval) ) + +#define IADsService_put_Dependencies(This,vDependencies) \ + ( (This)->lpVtbl -> put_Dependencies(This,vDependencies) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsService_INTERFACE_DEFINED__ */ + + +#ifndef __IADsServiceOperations_INTERFACE_DEFINED__ +#define __IADsServiceOperations_INTERFACE_DEFINED__ + +/* interface IADsServiceOperations */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsServiceOperations; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5d7b33f0-31ca-11cf-a98a-00aa006bc149") + IADsServiceOperations : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Start( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Stop( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Continue( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetPassword( + /* [in] */ __RPC__in BSTR bstrNewPassword) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsServiceOperationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsServiceOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsServiceOperations * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsServiceOperations * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsServiceOperations * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsServiceOperations * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsServiceOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsServiceOperations * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsServiceOperations * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsServiceOperations * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsServiceOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsServiceOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsServiceOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsServiceOperations * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsServiceOperations * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsServiceOperations, get_Status) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IADsServiceOperations * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsServiceOperations, Start) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Start )( + __RPC__in IADsServiceOperations * This); + + DECLSPEC_XFGVIRT(IADsServiceOperations, Stop) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IADsServiceOperations * This); + + DECLSPEC_XFGVIRT(IADsServiceOperations, Pause) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( + __RPC__in IADsServiceOperations * This); + + DECLSPEC_XFGVIRT(IADsServiceOperations, Continue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Continue )( + __RPC__in IADsServiceOperations * This); + + DECLSPEC_XFGVIRT(IADsServiceOperations, SetPassword) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetPassword )( + __RPC__in IADsServiceOperations * This, + /* [in] */ __RPC__in BSTR bstrNewPassword); + + END_INTERFACE + } IADsServiceOperationsVtbl; + + interface IADsServiceOperations + { + CONST_VTBL struct IADsServiceOperationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsServiceOperations_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsServiceOperations_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsServiceOperations_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsServiceOperations_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsServiceOperations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsServiceOperations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsServiceOperations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsServiceOperations_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsServiceOperations_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsServiceOperations_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsServiceOperations_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsServiceOperations_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsServiceOperations_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsServiceOperations_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsServiceOperations_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsServiceOperations_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsServiceOperations_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsServiceOperations_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsServiceOperations_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsServiceOperations_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsServiceOperations_get_Status(This,retval) \ + ( (This)->lpVtbl -> get_Status(This,retval) ) + +#define IADsServiceOperations_Start(This) \ + ( (This)->lpVtbl -> Start(This) ) + +#define IADsServiceOperations_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IADsServiceOperations_Pause(This) \ + ( (This)->lpVtbl -> Pause(This) ) + +#define IADsServiceOperations_Continue(This) \ + ( (This)->lpVtbl -> Continue(This) ) + +#define IADsServiceOperations_SetPassword(This,bstrNewPassword) \ + ( (This)->lpVtbl -> SetPassword(This,bstrNewPassword) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsServiceOperations_INTERFACE_DEFINED__ */ + + +#ifndef __IADsFileService_INTERFACE_DEFINED__ +#define __IADsFileService_INTERFACE_DEFINED__ + +/* interface IADsFileService */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsFileService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a89d1900-31ca-11cf-a98a-00aa006bc149") + IADsFileService : public IADsService + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxUserCount( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxUserCount( + /* [in] */ long lnMaxUserCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsFileServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsFileService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsFileService * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsFileService * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsFileService * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsFileService * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsFileService * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsFileService * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsFileService * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsFileService * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsService, get_HostComputer) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HostComputer )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_HostComputer) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HostComputer )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrHostComputer); + + DECLSPEC_XFGVIRT(IADsService, get_DisplayName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_DisplayName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayName )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrDisplayName); + + DECLSPEC_XFGVIRT(IADsService, get_Version) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_Version) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Version )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrVersion); + + DECLSPEC_XFGVIRT(IADsService, get_ServiceType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServiceType )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsService, put_ServiceType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServiceType )( + __RPC__in IADsFileService * This, + /* [in] */ long lnServiceType); + + DECLSPEC_XFGVIRT(IADsService, get_StartType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartType )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsService, put_StartType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StartType )( + __RPC__in IADsFileService * This, + /* [in] */ long lnStartType); + + DECLSPEC_XFGVIRT(IADsService, get_Path) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_Path) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Path )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrPath); + + DECLSPEC_XFGVIRT(IADsService, get_StartupParameters) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartupParameters )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_StartupParameters) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StartupParameters )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrStartupParameters); + + DECLSPEC_XFGVIRT(IADsService, get_ErrorControl) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorControl )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsService, put_ErrorControl) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ErrorControl )( + __RPC__in IADsFileService * This, + /* [in] */ long lnErrorControl); + + DECLSPEC_XFGVIRT(IADsService, get_LoadOrderGroup) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LoadOrderGroup )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_LoadOrderGroup) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LoadOrderGroup )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrLoadOrderGroup); + + DECLSPEC_XFGVIRT(IADsService, get_ServiceAccountName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServiceAccountName )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_ServiceAccountName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServiceAccountName )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrServiceAccountName); + + DECLSPEC_XFGVIRT(IADsService, get_ServiceAccountPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServiceAccountPath )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsService, put_ServiceAccountPath) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServiceAccountPath )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrServiceAccountPath); + + DECLSPEC_XFGVIRT(IADsService, get_Dependencies) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Dependencies )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsService, put_Dependencies) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Dependencies )( + __RPC__in IADsFileService * This, + /* [in] */ VARIANT vDependencies); + + DECLSPEC_XFGVIRT(IADsFileService, get_Description) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsFileService, put_Description) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IADsFileService * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IADsFileService, get_MaxUserCount) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxUserCount )( + __RPC__in IADsFileService * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsFileService, put_MaxUserCount) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxUserCount )( + __RPC__in IADsFileService * This, + /* [in] */ long lnMaxUserCount); + + END_INTERFACE + } IADsFileServiceVtbl; + + interface IADsFileService + { + CONST_VTBL struct IADsFileServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsFileService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsFileService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsFileService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsFileService_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsFileService_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsFileService_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsFileService_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsFileService_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsFileService_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsFileService_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsFileService_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsFileService_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsFileService_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsFileService_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsFileService_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsFileService_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsFileService_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsFileService_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsFileService_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsFileService_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsFileService_get_HostComputer(This,retval) \ + ( (This)->lpVtbl -> get_HostComputer(This,retval) ) + +#define IADsFileService_put_HostComputer(This,bstrHostComputer) \ + ( (This)->lpVtbl -> put_HostComputer(This,bstrHostComputer) ) + +#define IADsFileService_get_DisplayName(This,retval) \ + ( (This)->lpVtbl -> get_DisplayName(This,retval) ) + +#define IADsFileService_put_DisplayName(This,bstrDisplayName) \ + ( (This)->lpVtbl -> put_DisplayName(This,bstrDisplayName) ) + +#define IADsFileService_get_Version(This,retval) \ + ( (This)->lpVtbl -> get_Version(This,retval) ) + +#define IADsFileService_put_Version(This,bstrVersion) \ + ( (This)->lpVtbl -> put_Version(This,bstrVersion) ) + +#define IADsFileService_get_ServiceType(This,retval) \ + ( (This)->lpVtbl -> get_ServiceType(This,retval) ) + +#define IADsFileService_put_ServiceType(This,lnServiceType) \ + ( (This)->lpVtbl -> put_ServiceType(This,lnServiceType) ) + +#define IADsFileService_get_StartType(This,retval) \ + ( (This)->lpVtbl -> get_StartType(This,retval) ) + +#define IADsFileService_put_StartType(This,lnStartType) \ + ( (This)->lpVtbl -> put_StartType(This,lnStartType) ) + +#define IADsFileService_get_Path(This,retval) \ + ( (This)->lpVtbl -> get_Path(This,retval) ) + +#define IADsFileService_put_Path(This,bstrPath) \ + ( (This)->lpVtbl -> put_Path(This,bstrPath) ) + +#define IADsFileService_get_StartupParameters(This,retval) \ + ( (This)->lpVtbl -> get_StartupParameters(This,retval) ) + +#define IADsFileService_put_StartupParameters(This,bstrStartupParameters) \ + ( (This)->lpVtbl -> put_StartupParameters(This,bstrStartupParameters) ) + +#define IADsFileService_get_ErrorControl(This,retval) \ + ( (This)->lpVtbl -> get_ErrorControl(This,retval) ) + +#define IADsFileService_put_ErrorControl(This,lnErrorControl) \ + ( (This)->lpVtbl -> put_ErrorControl(This,lnErrorControl) ) + +#define IADsFileService_get_LoadOrderGroup(This,retval) \ + ( (This)->lpVtbl -> get_LoadOrderGroup(This,retval) ) + +#define IADsFileService_put_LoadOrderGroup(This,bstrLoadOrderGroup) \ + ( (This)->lpVtbl -> put_LoadOrderGroup(This,bstrLoadOrderGroup) ) + +#define IADsFileService_get_ServiceAccountName(This,retval) \ + ( (This)->lpVtbl -> get_ServiceAccountName(This,retval) ) + +#define IADsFileService_put_ServiceAccountName(This,bstrServiceAccountName) \ + ( (This)->lpVtbl -> put_ServiceAccountName(This,bstrServiceAccountName) ) + +#define IADsFileService_get_ServiceAccountPath(This,retval) \ + ( (This)->lpVtbl -> get_ServiceAccountPath(This,retval) ) + +#define IADsFileService_put_ServiceAccountPath(This,bstrServiceAccountPath) \ + ( (This)->lpVtbl -> put_ServiceAccountPath(This,bstrServiceAccountPath) ) + +#define IADsFileService_get_Dependencies(This,retval) \ + ( (This)->lpVtbl -> get_Dependencies(This,retval) ) + +#define IADsFileService_put_Dependencies(This,vDependencies) \ + ( (This)->lpVtbl -> put_Dependencies(This,vDependencies) ) + + +#define IADsFileService_get_Description(This,retval) \ + ( (This)->lpVtbl -> get_Description(This,retval) ) + +#define IADsFileService_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IADsFileService_get_MaxUserCount(This,retval) \ + ( (This)->lpVtbl -> get_MaxUserCount(This,retval) ) + +#define IADsFileService_put_MaxUserCount(This,lnMaxUserCount) \ + ( (This)->lpVtbl -> put_MaxUserCount(This,lnMaxUserCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsFileService_INTERFACE_DEFINED__ */ + + +#ifndef __IADsFileServiceOperations_INTERFACE_DEFINED__ +#define __IADsFileServiceOperations_INTERFACE_DEFINED__ + +/* interface IADsFileServiceOperations */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsFileServiceOperations; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a02ded10-31ca-11cf-a98a-00aa006bc149") + IADsFileServiceOperations : public IADsServiceOperations + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Sessions( + /* [retval][out] */ __RPC__deref_out_opt IADsCollection **ppSessions) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Resources( + /* [retval][out] */ __RPC__deref_out_opt IADsCollection **ppResources) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsFileServiceOperationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsFileServiceOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsFileServiceOperations * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsFileServiceOperations * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsFileServiceOperations * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsFileServiceOperations * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsFileServiceOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsFileServiceOperations * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsFileServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsFileServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsFileServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsFileServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsFileServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsFileServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsFileServiceOperations * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsFileServiceOperations * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsFileServiceOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsFileServiceOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsFileServiceOperations * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsFileServiceOperations * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsFileServiceOperations * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsServiceOperations, get_Status) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IADsFileServiceOperations * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsServiceOperations, Start) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Start )( + __RPC__in IADsFileServiceOperations * This); + + DECLSPEC_XFGVIRT(IADsServiceOperations, Stop) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IADsFileServiceOperations * This); + + DECLSPEC_XFGVIRT(IADsServiceOperations, Pause) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( + __RPC__in IADsFileServiceOperations * This); + + DECLSPEC_XFGVIRT(IADsServiceOperations, Continue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Continue )( + __RPC__in IADsFileServiceOperations * This); + + DECLSPEC_XFGVIRT(IADsServiceOperations, SetPassword) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetPassword )( + __RPC__in IADsFileServiceOperations * This, + /* [in] */ __RPC__in BSTR bstrNewPassword); + + DECLSPEC_XFGVIRT(IADsFileServiceOperations, Sessions) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Sessions )( + __RPC__in IADsFileServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt IADsCollection **ppSessions); + + DECLSPEC_XFGVIRT(IADsFileServiceOperations, Resources) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Resources )( + __RPC__in IADsFileServiceOperations * This, + /* [retval][out] */ __RPC__deref_out_opt IADsCollection **ppResources); + + END_INTERFACE + } IADsFileServiceOperationsVtbl; + + interface IADsFileServiceOperations + { + CONST_VTBL struct IADsFileServiceOperationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsFileServiceOperations_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsFileServiceOperations_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsFileServiceOperations_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsFileServiceOperations_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsFileServiceOperations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsFileServiceOperations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsFileServiceOperations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsFileServiceOperations_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsFileServiceOperations_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsFileServiceOperations_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsFileServiceOperations_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsFileServiceOperations_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsFileServiceOperations_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsFileServiceOperations_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsFileServiceOperations_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsFileServiceOperations_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsFileServiceOperations_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsFileServiceOperations_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsFileServiceOperations_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsFileServiceOperations_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsFileServiceOperations_get_Status(This,retval) \ + ( (This)->lpVtbl -> get_Status(This,retval) ) + +#define IADsFileServiceOperations_Start(This) \ + ( (This)->lpVtbl -> Start(This) ) + +#define IADsFileServiceOperations_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IADsFileServiceOperations_Pause(This) \ + ( (This)->lpVtbl -> Pause(This) ) + +#define IADsFileServiceOperations_Continue(This) \ + ( (This)->lpVtbl -> Continue(This) ) + +#define IADsFileServiceOperations_SetPassword(This,bstrNewPassword) \ + ( (This)->lpVtbl -> SetPassword(This,bstrNewPassword) ) + + +#define IADsFileServiceOperations_Sessions(This,ppSessions) \ + ( (This)->lpVtbl -> Sessions(This,ppSessions) ) + +#define IADsFileServiceOperations_Resources(This,ppResources) \ + ( (This)->lpVtbl -> Resources(This,ppResources) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsFileServiceOperations_INTERFACE_DEFINED__ */ + + +#ifndef __IADsFileShare_INTERFACE_DEFINED__ +#define __IADsFileShare_INTERFACE_DEFINED__ + +/* interface IADsFileShare */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsFileShare; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("eb6dcaf0-4b83-11cf-a995-00aa006bc149") + IADsFileShare : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentUserCount( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_HostComputer( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_HostComputer( + /* [in] */ __RPC__in BSTR bstrHostComputer) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Path( + /* [in] */ __RPC__in BSTR bstrPath) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_MaxUserCount( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_MaxUserCount( + /* [in] */ long lnMaxUserCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsFileShareVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsFileShare * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsFileShare * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsFileShare * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsFileShare * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsFileShare * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsFileShare * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsFileShare * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsFileShare * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsFileShare * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsFileShare * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsFileShare * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsFileShare * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsFileShare * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsFileShare * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsFileShare, get_CurrentUserCount) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentUserCount )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsFileShare, get_Description) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsFileShare, put_Description) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IADsFileShare * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IADsFileShare, get_HostComputer) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HostComputer )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsFileShare, put_HostComputer) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HostComputer )( + __RPC__in IADsFileShare * This, + /* [in] */ __RPC__in BSTR bstrHostComputer); + + DECLSPEC_XFGVIRT(IADsFileShare, get_Path) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsFileShare, put_Path) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Path )( + __RPC__in IADsFileShare * This, + /* [in] */ __RPC__in BSTR bstrPath); + + DECLSPEC_XFGVIRT(IADsFileShare, get_MaxUserCount) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxUserCount )( + __RPC__in IADsFileShare * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsFileShare, put_MaxUserCount) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxUserCount )( + __RPC__in IADsFileShare * This, + /* [in] */ long lnMaxUserCount); + + END_INTERFACE + } IADsFileShareVtbl; + + interface IADsFileShare + { + CONST_VTBL struct IADsFileShareVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsFileShare_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsFileShare_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsFileShare_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsFileShare_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsFileShare_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsFileShare_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsFileShare_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsFileShare_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsFileShare_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsFileShare_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsFileShare_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsFileShare_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsFileShare_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsFileShare_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsFileShare_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsFileShare_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsFileShare_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsFileShare_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsFileShare_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsFileShare_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsFileShare_get_CurrentUserCount(This,retval) \ + ( (This)->lpVtbl -> get_CurrentUserCount(This,retval) ) + +#define IADsFileShare_get_Description(This,retval) \ + ( (This)->lpVtbl -> get_Description(This,retval) ) + +#define IADsFileShare_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IADsFileShare_get_HostComputer(This,retval) \ + ( (This)->lpVtbl -> get_HostComputer(This,retval) ) + +#define IADsFileShare_put_HostComputer(This,bstrHostComputer) \ + ( (This)->lpVtbl -> put_HostComputer(This,bstrHostComputer) ) + +#define IADsFileShare_get_Path(This,retval) \ + ( (This)->lpVtbl -> get_Path(This,retval) ) + +#define IADsFileShare_put_Path(This,bstrPath) \ + ( (This)->lpVtbl -> put_Path(This,bstrPath) ) + +#define IADsFileShare_get_MaxUserCount(This,retval) \ + ( (This)->lpVtbl -> get_MaxUserCount(This,retval) ) + +#define IADsFileShare_put_MaxUserCount(This,lnMaxUserCount) \ + ( (This)->lpVtbl -> put_MaxUserCount(This,lnMaxUserCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsFileShare_INTERFACE_DEFINED__ */ + + +#ifndef __IADsSession_INTERFACE_DEFINED__ +#define __IADsSession_INTERFACE_DEFINED__ + +/* interface IADsSession */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsSession; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("398b7da0-4aab-11cf-ae2c-00aa006ebfb9") + IADsSession : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_User( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_UserPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Computer( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ComputerPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ConnectTime( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_IdleTime( + /* [retval][out] */ __RPC__out long *retval) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsSessionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsSession * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsSession * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsSession * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsSession * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsSession * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsSession * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsSession * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsSession * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsSession * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsSession * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsSession * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsSession * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsSession * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsSession * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsSession, get_User) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_User )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsSession, get_UserPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserPath )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsSession, get_Computer) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Computer )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsSession, get_ComputerPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerPath )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsSession, get_ConnectTime) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectTime )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsSession, get_IdleTime) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IdleTime )( + __RPC__in IADsSession * This, + /* [retval][out] */ __RPC__out long *retval); + + END_INTERFACE + } IADsSessionVtbl; + + interface IADsSession + { + CONST_VTBL struct IADsSessionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsSession_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsSession_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsSession_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsSession_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsSession_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsSession_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsSession_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsSession_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsSession_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsSession_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsSession_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsSession_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsSession_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsSession_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsSession_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsSession_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsSession_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsSession_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsSession_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsSession_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsSession_get_User(This,retval) \ + ( (This)->lpVtbl -> get_User(This,retval) ) + +#define IADsSession_get_UserPath(This,retval) \ + ( (This)->lpVtbl -> get_UserPath(This,retval) ) + +#define IADsSession_get_Computer(This,retval) \ + ( (This)->lpVtbl -> get_Computer(This,retval) ) + +#define IADsSession_get_ComputerPath(This,retval) \ + ( (This)->lpVtbl -> get_ComputerPath(This,retval) ) + +#define IADsSession_get_ConnectTime(This,retval) \ + ( (This)->lpVtbl -> get_ConnectTime(This,retval) ) + +#define IADsSession_get_IdleTime(This,retval) \ + ( (This)->lpVtbl -> get_IdleTime(This,retval) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsSession_INTERFACE_DEFINED__ */ + + +#ifndef __IADsResource_INTERFACE_DEFINED__ +#define __IADsResource_INTERFACE_DEFINED__ + +/* interface IADsResource */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsResource; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("34a05b20-4aab-11cf-ae2c-00aa006ebfb9") + IADsResource : public IADs + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_User( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_UserPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LockCount( + /* [retval][out] */ __RPC__out long *retval) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsResourceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsResource * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsResource * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsResource * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsResource * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsResource * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsResource * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsResource * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADs, get_Name) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IADsResource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Class) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + __RPC__in IADsResource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_GUID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + __RPC__in IADsResource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_ADsPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + __RPC__in IADsResource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Parent) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in IADsResource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, get_Schema) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IADsResource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADs, GetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IADsResource * This); + + DECLSPEC_XFGVIRT(IADs, SetInfo) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + __RPC__in IADsResource * This); + + DECLSPEC_XFGVIRT(IADs, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsResource * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, Put) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Put )( + __RPC__in IADsResource * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsResource * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__out VARIANT *pvProp); + + DECLSPEC_XFGVIRT(IADs, PutEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + __RPC__in IADsResource * This, + /* [in] */ long lnControlCode, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ VARIANT vProp); + + DECLSPEC_XFGVIRT(IADs, GetInfoEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + __RPC__in IADsResource * This, + /* [in] */ VARIANT vProperties, + /* [in] */ long lnReserved); + + DECLSPEC_XFGVIRT(IADsResource, get_User) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_User )( + __RPC__in IADsResource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsResource, get_UserPath) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserPath )( + __RPC__in IADsResource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsResource, get_Path) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IADsResource * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsResource, get_LockCount) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LockCount )( + __RPC__in IADsResource * This, + /* [retval][out] */ __RPC__out long *retval); + + END_INTERFACE + } IADsResourceVtbl; + + interface IADsResource + { + CONST_VTBL struct IADsResourceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsResource_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsResource_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsResource_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsResource_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsResource_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsResource_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsResource_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsResource_get_Name(This,retval) \ + ( (This)->lpVtbl -> get_Name(This,retval) ) + +#define IADsResource_get_Class(This,retval) \ + ( (This)->lpVtbl -> get_Class(This,retval) ) + +#define IADsResource_get_GUID(This,retval) \ + ( (This)->lpVtbl -> get_GUID(This,retval) ) + +#define IADsResource_get_ADsPath(This,retval) \ + ( (This)->lpVtbl -> get_ADsPath(This,retval) ) + +#define IADsResource_get_Parent(This,retval) \ + ( (This)->lpVtbl -> get_Parent(This,retval) ) + +#define IADsResource_get_Schema(This,retval) \ + ( (This)->lpVtbl -> get_Schema(This,retval) ) + +#define IADsResource_GetInfo(This) \ + ( (This)->lpVtbl -> GetInfo(This) ) + +#define IADsResource_SetInfo(This) \ + ( (This)->lpVtbl -> SetInfo(This) ) + +#define IADsResource_Get(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> Get(This,bstrName,pvProp) ) + +#define IADsResource_Put(This,bstrName,vProp) \ + ( (This)->lpVtbl -> Put(This,bstrName,vProp) ) + +#define IADsResource_GetEx(This,bstrName,pvProp) \ + ( (This)->lpVtbl -> GetEx(This,bstrName,pvProp) ) + +#define IADsResource_PutEx(This,lnControlCode,bstrName,vProp) \ + ( (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp) ) + +#define IADsResource_GetInfoEx(This,vProperties,lnReserved) \ + ( (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved) ) + + +#define IADsResource_get_User(This,retval) \ + ( (This)->lpVtbl -> get_User(This,retval) ) + +#define IADsResource_get_UserPath(This,retval) \ + ( (This)->lpVtbl -> get_UserPath(This,retval) ) + +#define IADsResource_get_Path(This,retval) \ + ( (This)->lpVtbl -> get_Path(This,retval) ) + +#define IADsResource_get_LockCount(This,retval) \ + ( (This)->lpVtbl -> get_LockCount(This,retval) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsResource_INTERFACE_DEFINED__ */ + + +#ifndef __IADsOpenDSObject_INTERFACE_DEFINED__ +#define __IADsOpenDSObject_INTERFACE_DEFINED__ + +/* interface IADsOpenDSObject */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsOpenDSObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddf2891e-0f9c-11d0-8ad4-00c04fd8d503") + IADsOpenDSObject : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE OpenDSObject( + /* [in] */ __RPC__in BSTR lpszDNName, + /* [in] */ __RPC__in BSTR lpszUserName, + /* [in] */ __RPC__in BSTR lpszPassword, + /* [in] */ long lnReserved, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppOleDsObj) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsOpenDSObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsOpenDSObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsOpenDSObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsOpenDSObject * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsOpenDSObject * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsOpenDSObject * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsOpenDSObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsOpenDSObject * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsOpenDSObject, OpenDSObject) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *OpenDSObject )( + __RPC__in IADsOpenDSObject * This, + /* [in] */ __RPC__in BSTR lpszDNName, + /* [in] */ __RPC__in BSTR lpszUserName, + /* [in] */ __RPC__in BSTR lpszPassword, + /* [in] */ long lnReserved, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppOleDsObj); + + END_INTERFACE + } IADsOpenDSObjectVtbl; + + interface IADsOpenDSObject + { + CONST_VTBL struct IADsOpenDSObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsOpenDSObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsOpenDSObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsOpenDSObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsOpenDSObject_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsOpenDSObject_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsOpenDSObject_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsOpenDSObject_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsOpenDSObject_OpenDSObject(This,lpszDNName,lpszUserName,lpszPassword,lnReserved,ppOleDsObj) \ + ( (This)->lpVtbl -> OpenDSObject(This,lpszDNName,lpszUserName,lpszPassword,lnReserved,ppOleDsObj) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsOpenDSObject_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectoryObject_INTERFACE_DEFINED__ +#define __IDirectoryObject_INTERFACE_DEFINED__ + +/* interface IDirectoryObject */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IDirectoryObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e798de2c-22e4-11d0-84fe-00c04fd8d503") + IDirectoryObject : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetObjectInformation( + /* [out] */ __RPC__deref_out_opt PADS_OBJECT_INFO *ppObjInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetObjectAttributes( + /* [in] */ __RPC__deref_in_opt LPWSTR *pAttributeNames, + /* [in] */ DWORD dwNumberAttributes, + /* [out] */ __RPC__deref_out_opt PADS_ATTR_INFO *ppAttributeEntries, + /* [out] */ __RPC__out DWORD *pdwNumAttributesReturned) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetObjectAttributes( + /* [in] */ __RPC__in PADS_ATTR_INFO pAttributeEntries, + /* [in] */ DWORD dwNumAttributes, + /* [out] */ __RPC__out DWORD *pdwNumAttributesModified) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDSObject( + /* [in] */ __RPC__in LPWSTR pszRDNName, + /* [in] */ __RPC__in PADS_ATTR_INFO pAttributeEntries, + /* [in] */ DWORD dwNumAttributes, + /* [out] */ __RPC__deref_out_opt IDispatch **ppObject) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteDSObject( + /* [in] */ __RPC__in LPWSTR pszRDNName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectoryObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDirectoryObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDirectoryObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDirectoryObject * This); + + DECLSPEC_XFGVIRT(IDirectoryObject, GetObjectInformation) + HRESULT ( STDMETHODCALLTYPE *GetObjectInformation )( + __RPC__in IDirectoryObject * This, + /* [out] */ __RPC__deref_out_opt PADS_OBJECT_INFO *ppObjInfo); + + DECLSPEC_XFGVIRT(IDirectoryObject, GetObjectAttributes) + HRESULT ( STDMETHODCALLTYPE *GetObjectAttributes )( + __RPC__in IDirectoryObject * This, + /* [in] */ __RPC__deref_in_opt LPWSTR *pAttributeNames, + /* [in] */ DWORD dwNumberAttributes, + /* [out] */ __RPC__deref_out_opt PADS_ATTR_INFO *ppAttributeEntries, + /* [out] */ __RPC__out DWORD *pdwNumAttributesReturned); + + DECLSPEC_XFGVIRT(IDirectoryObject, SetObjectAttributes) + HRESULT ( STDMETHODCALLTYPE *SetObjectAttributes )( + __RPC__in IDirectoryObject * This, + /* [in] */ __RPC__in PADS_ATTR_INFO pAttributeEntries, + /* [in] */ DWORD dwNumAttributes, + /* [out] */ __RPC__out DWORD *pdwNumAttributesModified); + + DECLSPEC_XFGVIRT(IDirectoryObject, CreateDSObject) + HRESULT ( STDMETHODCALLTYPE *CreateDSObject )( + __RPC__in IDirectoryObject * This, + /* [in] */ __RPC__in LPWSTR pszRDNName, + /* [in] */ __RPC__in PADS_ATTR_INFO pAttributeEntries, + /* [in] */ DWORD dwNumAttributes, + /* [out] */ __RPC__deref_out_opt IDispatch **ppObject); + + DECLSPEC_XFGVIRT(IDirectoryObject, DeleteDSObject) + HRESULT ( STDMETHODCALLTYPE *DeleteDSObject )( + __RPC__in IDirectoryObject * This, + /* [in] */ __RPC__in LPWSTR pszRDNName); + + END_INTERFACE + } IDirectoryObjectVtbl; + + interface IDirectoryObject + { + CONST_VTBL struct IDirectoryObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectoryObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectoryObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectoryObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectoryObject_GetObjectInformation(This,ppObjInfo) \ + ( (This)->lpVtbl -> GetObjectInformation(This,ppObjInfo) ) + +#define IDirectoryObject_GetObjectAttributes(This,pAttributeNames,dwNumberAttributes,ppAttributeEntries,pdwNumAttributesReturned) \ + ( (This)->lpVtbl -> GetObjectAttributes(This,pAttributeNames,dwNumberAttributes,ppAttributeEntries,pdwNumAttributesReturned) ) + +#define IDirectoryObject_SetObjectAttributes(This,pAttributeEntries,dwNumAttributes,pdwNumAttributesModified) \ + ( (This)->lpVtbl -> SetObjectAttributes(This,pAttributeEntries,dwNumAttributes,pdwNumAttributesModified) ) + +#define IDirectoryObject_CreateDSObject(This,pszRDNName,pAttributeEntries,dwNumAttributes,ppObject) \ + ( (This)->lpVtbl -> CreateDSObject(This,pszRDNName,pAttributeEntries,dwNumAttributes,ppObject) ) + +#define IDirectoryObject_DeleteDSObject(This,pszRDNName) \ + ( (This)->lpVtbl -> DeleteDSObject(This,pszRDNName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectoryObject_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectorySearch_INTERFACE_DEFINED__ +#define __IDirectorySearch_INTERFACE_DEFINED__ + +/* interface IDirectorySearch */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IDirectorySearch; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("109ba8ec-92f0-11d0-a790-00c04fd8d5a8") + IDirectorySearch : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetSearchPreference( + /* [in] */ __RPC__in PADS_SEARCHPREF_INFO pSearchPrefs, + /* [in] */ DWORD dwNumPrefs) = 0; + + virtual HRESULT STDMETHODCALLTYPE ExecuteSearch( + /* [in] */ __RPC__in LPWSTR pszSearchFilter, + /* [in] */ __RPC__deref_in_opt LPWSTR *pAttributeNames, + /* [in] */ DWORD dwNumberAttributes, + /* [out] */ __RPC__deref_out_opt PADS_SEARCH_HANDLE phSearchResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE AbandonSearch( + /* [in] */ __RPC__in ADS_SEARCH_HANDLE phSearchResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFirstRow( + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextRow( + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPreviousRow( + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextColumnName( + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchHandle, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszColumnName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetColumn( + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchResult, + /* [in] */ __RPC__in LPWSTR szColumnName, + /* [out] */ __RPC__out PADS_SEARCH_COLUMN pSearchColumn) = 0; + + virtual HRESULT STDMETHODCALLTYPE FreeColumn( + /* [in] */ __RPC__in PADS_SEARCH_COLUMN pSearchColumn) = 0; + + virtual HRESULT STDMETHODCALLTYPE CloseSearchHandle( + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectorySearchVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDirectorySearch * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDirectorySearch * This); + + DECLSPEC_XFGVIRT(IDirectorySearch, SetSearchPreference) + HRESULT ( STDMETHODCALLTYPE *SetSearchPreference )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in PADS_SEARCHPREF_INFO pSearchPrefs, + /* [in] */ DWORD dwNumPrefs); + + DECLSPEC_XFGVIRT(IDirectorySearch, ExecuteSearch) + HRESULT ( STDMETHODCALLTYPE *ExecuteSearch )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in LPWSTR pszSearchFilter, + /* [in] */ __RPC__deref_in_opt LPWSTR *pAttributeNames, + /* [in] */ DWORD dwNumberAttributes, + /* [out] */ __RPC__deref_out_opt PADS_SEARCH_HANDLE phSearchResult); + + DECLSPEC_XFGVIRT(IDirectorySearch, AbandonSearch) + HRESULT ( STDMETHODCALLTYPE *AbandonSearch )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in ADS_SEARCH_HANDLE phSearchResult); + + DECLSPEC_XFGVIRT(IDirectorySearch, GetFirstRow) + HRESULT ( STDMETHODCALLTYPE *GetFirstRow )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchResult); + + DECLSPEC_XFGVIRT(IDirectorySearch, GetNextRow) + HRESULT ( STDMETHODCALLTYPE *GetNextRow )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchResult); + + DECLSPEC_XFGVIRT(IDirectorySearch, GetPreviousRow) + HRESULT ( STDMETHODCALLTYPE *GetPreviousRow )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchResult); + + DECLSPEC_XFGVIRT(IDirectorySearch, GetNextColumnName) + HRESULT ( STDMETHODCALLTYPE *GetNextColumnName )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchHandle, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszColumnName); + + DECLSPEC_XFGVIRT(IDirectorySearch, GetColumn) + HRESULT ( STDMETHODCALLTYPE *GetColumn )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchResult, + /* [in] */ __RPC__in LPWSTR szColumnName, + /* [out] */ __RPC__out PADS_SEARCH_COLUMN pSearchColumn); + + DECLSPEC_XFGVIRT(IDirectorySearch, FreeColumn) + HRESULT ( STDMETHODCALLTYPE *FreeColumn )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in PADS_SEARCH_COLUMN pSearchColumn); + + DECLSPEC_XFGVIRT(IDirectorySearch, CloseSearchHandle) + HRESULT ( STDMETHODCALLTYPE *CloseSearchHandle )( + __RPC__in IDirectorySearch * This, + /* [in] */ __RPC__in ADS_SEARCH_HANDLE hSearchResult); + + END_INTERFACE + } IDirectorySearchVtbl; + + interface IDirectorySearch + { + CONST_VTBL struct IDirectorySearchVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectorySearch_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectorySearch_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectorySearch_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectorySearch_SetSearchPreference(This,pSearchPrefs,dwNumPrefs) \ + ( (This)->lpVtbl -> SetSearchPreference(This,pSearchPrefs,dwNumPrefs) ) + +#define IDirectorySearch_ExecuteSearch(This,pszSearchFilter,pAttributeNames,dwNumberAttributes,phSearchResult) \ + ( (This)->lpVtbl -> ExecuteSearch(This,pszSearchFilter,pAttributeNames,dwNumberAttributes,phSearchResult) ) + +#define IDirectorySearch_AbandonSearch(This,phSearchResult) \ + ( (This)->lpVtbl -> AbandonSearch(This,phSearchResult) ) + +#define IDirectorySearch_GetFirstRow(This,hSearchResult) \ + ( (This)->lpVtbl -> GetFirstRow(This,hSearchResult) ) + +#define IDirectorySearch_GetNextRow(This,hSearchResult) \ + ( (This)->lpVtbl -> GetNextRow(This,hSearchResult) ) + +#define IDirectorySearch_GetPreviousRow(This,hSearchResult) \ + ( (This)->lpVtbl -> GetPreviousRow(This,hSearchResult) ) + +#define IDirectorySearch_GetNextColumnName(This,hSearchHandle,ppszColumnName) \ + ( (This)->lpVtbl -> GetNextColumnName(This,hSearchHandle,ppszColumnName) ) + +#define IDirectorySearch_GetColumn(This,hSearchResult,szColumnName,pSearchColumn) \ + ( (This)->lpVtbl -> GetColumn(This,hSearchResult,szColumnName,pSearchColumn) ) + +#define IDirectorySearch_FreeColumn(This,pSearchColumn) \ + ( (This)->lpVtbl -> FreeColumn(This,pSearchColumn) ) + +#define IDirectorySearch_CloseSearchHandle(This,hSearchResult) \ + ( (This)->lpVtbl -> CloseSearchHandle(This,hSearchResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectorySearch_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectorySchemaMgmt_INTERFACE_DEFINED__ +#define __IDirectorySchemaMgmt_INTERFACE_DEFINED__ + +/* interface IDirectorySchemaMgmt */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IDirectorySchemaMgmt; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("75db3b9c-a4d8-11d0-a79c-00c04fd8d5a8") + IDirectorySchemaMgmt : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumAttributes( + __RPC__deref_in_opt LPWSTR *ppszAttrNames, + DWORD dwNumAttributes, + __RPC__deref_in_opt PADS_ATTR_DEF *ppAttrDefinition, + __RPC__in DWORD *pdwNumAttributes) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateAttributeDefinition( + __RPC__in LPWSTR pszAttributeName, + __RPC__in PADS_ATTR_DEF pAttributeDefinition) = 0; + + virtual HRESULT STDMETHODCALLTYPE WriteAttributeDefinition( + __RPC__in LPWSTR pszAttributeName, + __RPC__in PADS_ATTR_DEF pAttributeDefinition) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteAttributeDefinition( + __RPC__in LPWSTR pszAttributeName) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumClasses( + __RPC__deref_in_opt LPWSTR *ppszClassNames, + DWORD dwNumClasses, + __RPC__deref_in_opt PADS_CLASS_DEF *ppClassDefinition, + __RPC__in DWORD *pdwNumClasses) = 0; + + virtual HRESULT STDMETHODCALLTYPE WriteClassDefinition( + __RPC__in LPWSTR pszClassName, + __RPC__in PADS_CLASS_DEF pClassDefinition) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateClassDefinition( + __RPC__in LPWSTR pszClassName, + __RPC__in PADS_CLASS_DEF pClassDefinition) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteClassDefinition( + __RPC__in LPWSTR pszClassName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectorySchemaMgmtVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDirectorySchemaMgmt * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDirectorySchemaMgmt * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDirectorySchemaMgmt * This); + + DECLSPEC_XFGVIRT(IDirectorySchemaMgmt, EnumAttributes) + HRESULT ( STDMETHODCALLTYPE *EnumAttributes )( + __RPC__in IDirectorySchemaMgmt * This, + __RPC__deref_in_opt LPWSTR *ppszAttrNames, + DWORD dwNumAttributes, + __RPC__deref_in_opt PADS_ATTR_DEF *ppAttrDefinition, + __RPC__in DWORD *pdwNumAttributes); + + DECLSPEC_XFGVIRT(IDirectorySchemaMgmt, CreateAttributeDefinition) + HRESULT ( STDMETHODCALLTYPE *CreateAttributeDefinition )( + __RPC__in IDirectorySchemaMgmt * This, + __RPC__in LPWSTR pszAttributeName, + __RPC__in PADS_ATTR_DEF pAttributeDefinition); + + DECLSPEC_XFGVIRT(IDirectorySchemaMgmt, WriteAttributeDefinition) + HRESULT ( STDMETHODCALLTYPE *WriteAttributeDefinition )( + __RPC__in IDirectorySchemaMgmt * This, + __RPC__in LPWSTR pszAttributeName, + __RPC__in PADS_ATTR_DEF pAttributeDefinition); + + DECLSPEC_XFGVIRT(IDirectorySchemaMgmt, DeleteAttributeDefinition) + HRESULT ( STDMETHODCALLTYPE *DeleteAttributeDefinition )( + __RPC__in IDirectorySchemaMgmt * This, + __RPC__in LPWSTR pszAttributeName); + + DECLSPEC_XFGVIRT(IDirectorySchemaMgmt, EnumClasses) + HRESULT ( STDMETHODCALLTYPE *EnumClasses )( + __RPC__in IDirectorySchemaMgmt * This, + __RPC__deref_in_opt LPWSTR *ppszClassNames, + DWORD dwNumClasses, + __RPC__deref_in_opt PADS_CLASS_DEF *ppClassDefinition, + __RPC__in DWORD *pdwNumClasses); + + DECLSPEC_XFGVIRT(IDirectorySchemaMgmt, WriteClassDefinition) + HRESULT ( STDMETHODCALLTYPE *WriteClassDefinition )( + __RPC__in IDirectorySchemaMgmt * This, + __RPC__in LPWSTR pszClassName, + __RPC__in PADS_CLASS_DEF pClassDefinition); + + DECLSPEC_XFGVIRT(IDirectorySchemaMgmt, CreateClassDefinition) + HRESULT ( STDMETHODCALLTYPE *CreateClassDefinition )( + __RPC__in IDirectorySchemaMgmt * This, + __RPC__in LPWSTR pszClassName, + __RPC__in PADS_CLASS_DEF pClassDefinition); + + DECLSPEC_XFGVIRT(IDirectorySchemaMgmt, DeleteClassDefinition) + HRESULT ( STDMETHODCALLTYPE *DeleteClassDefinition )( + __RPC__in IDirectorySchemaMgmt * This, + __RPC__in LPWSTR pszClassName); + + END_INTERFACE + } IDirectorySchemaMgmtVtbl; + + interface IDirectorySchemaMgmt + { + CONST_VTBL struct IDirectorySchemaMgmtVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectorySchemaMgmt_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectorySchemaMgmt_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectorySchemaMgmt_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectorySchemaMgmt_EnumAttributes(This,ppszAttrNames,dwNumAttributes,ppAttrDefinition,pdwNumAttributes) \ + ( (This)->lpVtbl -> EnumAttributes(This,ppszAttrNames,dwNumAttributes,ppAttrDefinition,pdwNumAttributes) ) + +#define IDirectorySchemaMgmt_CreateAttributeDefinition(This,pszAttributeName,pAttributeDefinition) \ + ( (This)->lpVtbl -> CreateAttributeDefinition(This,pszAttributeName,pAttributeDefinition) ) + +#define IDirectorySchemaMgmt_WriteAttributeDefinition(This,pszAttributeName,pAttributeDefinition) \ + ( (This)->lpVtbl -> WriteAttributeDefinition(This,pszAttributeName,pAttributeDefinition) ) + +#define IDirectorySchemaMgmt_DeleteAttributeDefinition(This,pszAttributeName) \ + ( (This)->lpVtbl -> DeleteAttributeDefinition(This,pszAttributeName) ) + +#define IDirectorySchemaMgmt_EnumClasses(This,ppszClassNames,dwNumClasses,ppClassDefinition,pdwNumClasses) \ + ( (This)->lpVtbl -> EnumClasses(This,ppszClassNames,dwNumClasses,ppClassDefinition,pdwNumClasses) ) + +#define IDirectorySchemaMgmt_WriteClassDefinition(This,pszClassName,pClassDefinition) \ + ( (This)->lpVtbl -> WriteClassDefinition(This,pszClassName,pClassDefinition) ) + +#define IDirectorySchemaMgmt_CreateClassDefinition(This,pszClassName,pClassDefinition) \ + ( (This)->lpVtbl -> CreateClassDefinition(This,pszClassName,pClassDefinition) ) + +#define IDirectorySchemaMgmt_DeleteClassDefinition(This,pszClassName) \ + ( (This)->lpVtbl -> DeleteClassDefinition(This,pszClassName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectorySchemaMgmt_INTERFACE_DEFINED__ */ + + +#ifndef __IADsAggregatee_INTERFACE_DEFINED__ +#define __IADsAggregatee_INTERFACE_DEFINED__ + +/* interface IADsAggregatee */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IADsAggregatee; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1346ce8c-9039-11d0-8528-00c04fd8d503") + IADsAggregatee : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ConnectAsAggregatee( + __RPC__in_opt IUnknown *pOuterUnknown) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisconnectAsAggregatee( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE RelinquishInterface( + __RPC__in REFIID riid) = 0; + + virtual HRESULT STDMETHODCALLTYPE RestoreInterface( + __RPC__in REFIID riid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsAggregateeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsAggregatee * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsAggregatee * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsAggregatee * This); + + DECLSPEC_XFGVIRT(IADsAggregatee, ConnectAsAggregatee) + HRESULT ( STDMETHODCALLTYPE *ConnectAsAggregatee )( + __RPC__in IADsAggregatee * This, + __RPC__in_opt IUnknown *pOuterUnknown); + + DECLSPEC_XFGVIRT(IADsAggregatee, DisconnectAsAggregatee) + HRESULT ( STDMETHODCALLTYPE *DisconnectAsAggregatee )( + __RPC__in IADsAggregatee * This); + + DECLSPEC_XFGVIRT(IADsAggregatee, RelinquishInterface) + HRESULT ( STDMETHODCALLTYPE *RelinquishInterface )( + __RPC__in IADsAggregatee * This, + __RPC__in REFIID riid); + + DECLSPEC_XFGVIRT(IADsAggregatee, RestoreInterface) + HRESULT ( STDMETHODCALLTYPE *RestoreInterface )( + __RPC__in IADsAggregatee * This, + __RPC__in REFIID riid); + + END_INTERFACE + } IADsAggregateeVtbl; + + interface IADsAggregatee + { + CONST_VTBL struct IADsAggregateeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsAggregatee_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsAggregatee_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsAggregatee_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsAggregatee_ConnectAsAggregatee(This,pOuterUnknown) \ + ( (This)->lpVtbl -> ConnectAsAggregatee(This,pOuterUnknown) ) + +#define IADsAggregatee_DisconnectAsAggregatee(This) \ + ( (This)->lpVtbl -> DisconnectAsAggregatee(This) ) + +#define IADsAggregatee_RelinquishInterface(This,riid) \ + ( (This)->lpVtbl -> RelinquishInterface(This,riid) ) + +#define IADsAggregatee_RestoreInterface(This,riid) \ + ( (This)->lpVtbl -> RestoreInterface(This,riid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsAggregatee_INTERFACE_DEFINED__ */ + + +#ifndef __IADsAggregator_INTERFACE_DEFINED__ +#define __IADsAggregator_INTERFACE_DEFINED__ + +/* interface IADsAggregator */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IADsAggregator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("52db5fb0-941f-11d0-8529-00c04fd8d503") + IADsAggregator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ConnectAsAggregator( + __RPC__in_opt IUnknown *pAggregatee) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisconnectAsAggregator( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsAggregatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsAggregator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsAggregator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsAggregator * This); + + DECLSPEC_XFGVIRT(IADsAggregator, ConnectAsAggregator) + HRESULT ( STDMETHODCALLTYPE *ConnectAsAggregator )( + __RPC__in IADsAggregator * This, + __RPC__in_opt IUnknown *pAggregatee); + + DECLSPEC_XFGVIRT(IADsAggregator, DisconnectAsAggregator) + HRESULT ( STDMETHODCALLTYPE *DisconnectAsAggregator )( + __RPC__in IADsAggregator * This); + + END_INTERFACE + } IADsAggregatorVtbl; + + interface IADsAggregator + { + CONST_VTBL struct IADsAggregatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsAggregator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsAggregator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsAggregator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsAggregator_ConnectAsAggregator(This,pAggregatee) \ + ( (This)->lpVtbl -> ConnectAsAggregator(This,pAggregatee) ) + +#define IADsAggregator_DisconnectAsAggregator(This) \ + ( (This)->lpVtbl -> DisconnectAsAggregator(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsAggregator_INTERFACE_DEFINED__ */ + + +#ifndef __IADsAccessControlEntry_INTERFACE_DEFINED__ +#define __IADsAccessControlEntry_INTERFACE_DEFINED__ + +/* interface IADsAccessControlEntry */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsAccessControlEntry; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b4f3a14c-9bdd-11d0-852c-00c04fd8d503") + IADsAccessControlEntry : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AccessMask( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AccessMask( + /* [in] */ long lnAccessMask) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AceType( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AceType( + /* [in] */ long lnAceType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AceFlags( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AceFlags( + /* [in] */ long lnAceFlags) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Flags( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Flags( + /* [in] */ long lnFlags) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ObjectType( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ObjectType( + /* [in] */ __RPC__in BSTR bstrObjectType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_InheritedObjectType( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_InheritedObjectType( + /* [in] */ __RPC__in BSTR bstrInheritedObjectType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Trustee( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Trustee( + /* [in] */ __RPC__in BSTR bstrTrustee) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsAccessControlEntryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsAccessControlEntry * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsAccessControlEntry * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsAccessControlEntry * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsAccessControlEntry * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsAccessControlEntry * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsAccessControlEntry * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsAccessControlEntry * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, get_AccessMask) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AccessMask )( + __RPC__in IADsAccessControlEntry * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, put_AccessMask) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AccessMask )( + __RPC__in IADsAccessControlEntry * This, + /* [in] */ long lnAccessMask); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, get_AceType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AceType )( + __RPC__in IADsAccessControlEntry * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, put_AceType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AceType )( + __RPC__in IADsAccessControlEntry * This, + /* [in] */ long lnAceType); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, get_AceFlags) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AceFlags )( + __RPC__in IADsAccessControlEntry * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, put_AceFlags) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AceFlags )( + __RPC__in IADsAccessControlEntry * This, + /* [in] */ long lnAceFlags); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, get_Flags) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Flags )( + __RPC__in IADsAccessControlEntry * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, put_Flags) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Flags )( + __RPC__in IADsAccessControlEntry * This, + /* [in] */ long lnFlags); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, get_ObjectType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectType )( + __RPC__in IADsAccessControlEntry * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, put_ObjectType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ObjectType )( + __RPC__in IADsAccessControlEntry * This, + /* [in] */ __RPC__in BSTR bstrObjectType); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, get_InheritedObjectType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InheritedObjectType )( + __RPC__in IADsAccessControlEntry * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, put_InheritedObjectType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InheritedObjectType )( + __RPC__in IADsAccessControlEntry * This, + /* [in] */ __RPC__in BSTR bstrInheritedObjectType); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, get_Trustee) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Trustee )( + __RPC__in IADsAccessControlEntry * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsAccessControlEntry, put_Trustee) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Trustee )( + __RPC__in IADsAccessControlEntry * This, + /* [in] */ __RPC__in BSTR bstrTrustee); + + END_INTERFACE + } IADsAccessControlEntryVtbl; + + interface IADsAccessControlEntry + { + CONST_VTBL struct IADsAccessControlEntryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsAccessControlEntry_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsAccessControlEntry_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsAccessControlEntry_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsAccessControlEntry_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsAccessControlEntry_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsAccessControlEntry_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsAccessControlEntry_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsAccessControlEntry_get_AccessMask(This,retval) \ + ( (This)->lpVtbl -> get_AccessMask(This,retval) ) + +#define IADsAccessControlEntry_put_AccessMask(This,lnAccessMask) \ + ( (This)->lpVtbl -> put_AccessMask(This,lnAccessMask) ) + +#define IADsAccessControlEntry_get_AceType(This,retval) \ + ( (This)->lpVtbl -> get_AceType(This,retval) ) + +#define IADsAccessControlEntry_put_AceType(This,lnAceType) \ + ( (This)->lpVtbl -> put_AceType(This,lnAceType) ) + +#define IADsAccessControlEntry_get_AceFlags(This,retval) \ + ( (This)->lpVtbl -> get_AceFlags(This,retval) ) + +#define IADsAccessControlEntry_put_AceFlags(This,lnAceFlags) \ + ( (This)->lpVtbl -> put_AceFlags(This,lnAceFlags) ) + +#define IADsAccessControlEntry_get_Flags(This,retval) \ + ( (This)->lpVtbl -> get_Flags(This,retval) ) + +#define IADsAccessControlEntry_put_Flags(This,lnFlags) \ + ( (This)->lpVtbl -> put_Flags(This,lnFlags) ) + +#define IADsAccessControlEntry_get_ObjectType(This,retval) \ + ( (This)->lpVtbl -> get_ObjectType(This,retval) ) + +#define IADsAccessControlEntry_put_ObjectType(This,bstrObjectType) \ + ( (This)->lpVtbl -> put_ObjectType(This,bstrObjectType) ) + +#define IADsAccessControlEntry_get_InheritedObjectType(This,retval) \ + ( (This)->lpVtbl -> get_InheritedObjectType(This,retval) ) + +#define IADsAccessControlEntry_put_InheritedObjectType(This,bstrInheritedObjectType) \ + ( (This)->lpVtbl -> put_InheritedObjectType(This,bstrInheritedObjectType) ) + +#define IADsAccessControlEntry_get_Trustee(This,retval) \ + ( (This)->lpVtbl -> get_Trustee(This,retval) ) + +#define IADsAccessControlEntry_put_Trustee(This,bstrTrustee) \ + ( (This)->lpVtbl -> put_Trustee(This,bstrTrustee) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsAccessControlEntry_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_AccessControlEntry; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b75ac000-9bdd-11d0-852c-00c04fd8d503") +AccessControlEntry; +#endif + +#ifndef __IADsAccessControlList_INTERFACE_DEFINED__ +#define __IADsAccessControlList_INTERFACE_DEFINED__ + +/* interface IADsAccessControlList */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsAccessControlList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b7ee91cc-9bdd-11d0-852c-00c04fd8d503") + IADsAccessControlList : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AclRevision( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AclRevision( + /* [in] */ long lnAclRevision) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AceCount( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AceCount( + /* [in] */ long lnAceCount) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AddAce( + /* [in] */ __RPC__in_opt IDispatch *pAccessControlEntry) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE RemoveAce( + /* [in] */ __RPC__in_opt IDispatch *pAccessControlEntry) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE CopyAccessList( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppAccessControlList) = 0; + + virtual /* [id][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **retval) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsAccessControlListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsAccessControlList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsAccessControlList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsAccessControlList * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsAccessControlList * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsAccessControlList * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsAccessControlList * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsAccessControlList * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsAccessControlList, get_AclRevision) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AclRevision )( + __RPC__in IADsAccessControlList * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsAccessControlList, put_AclRevision) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AclRevision )( + __RPC__in IADsAccessControlList * This, + /* [in] */ long lnAclRevision); + + DECLSPEC_XFGVIRT(IADsAccessControlList, get_AceCount) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AceCount )( + __RPC__in IADsAccessControlList * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsAccessControlList, put_AceCount) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AceCount )( + __RPC__in IADsAccessControlList * This, + /* [in] */ long lnAceCount); + + DECLSPEC_XFGVIRT(IADsAccessControlList, AddAce) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddAce )( + __RPC__in IADsAccessControlList * This, + /* [in] */ __RPC__in_opt IDispatch *pAccessControlEntry); + + DECLSPEC_XFGVIRT(IADsAccessControlList, RemoveAce) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RemoveAce )( + __RPC__in IADsAccessControlList * This, + /* [in] */ __RPC__in_opt IDispatch *pAccessControlEntry); + + DECLSPEC_XFGVIRT(IADsAccessControlList, CopyAccessList) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CopyAccessList )( + __RPC__in IADsAccessControlList * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppAccessControlList); + + DECLSPEC_XFGVIRT(IADsAccessControlList, get__NewEnum) + /* [id][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IADsAccessControlList * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **retval); + + END_INTERFACE + } IADsAccessControlListVtbl; + + interface IADsAccessControlList + { + CONST_VTBL struct IADsAccessControlListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsAccessControlList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsAccessControlList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsAccessControlList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsAccessControlList_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsAccessControlList_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsAccessControlList_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsAccessControlList_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsAccessControlList_get_AclRevision(This,retval) \ + ( (This)->lpVtbl -> get_AclRevision(This,retval) ) + +#define IADsAccessControlList_put_AclRevision(This,lnAclRevision) \ + ( (This)->lpVtbl -> put_AclRevision(This,lnAclRevision) ) + +#define IADsAccessControlList_get_AceCount(This,retval) \ + ( (This)->lpVtbl -> get_AceCount(This,retval) ) + +#define IADsAccessControlList_put_AceCount(This,lnAceCount) \ + ( (This)->lpVtbl -> put_AceCount(This,lnAceCount) ) + +#define IADsAccessControlList_AddAce(This,pAccessControlEntry) \ + ( (This)->lpVtbl -> AddAce(This,pAccessControlEntry) ) + +#define IADsAccessControlList_RemoveAce(This,pAccessControlEntry) \ + ( (This)->lpVtbl -> RemoveAce(This,pAccessControlEntry) ) + +#define IADsAccessControlList_CopyAccessList(This,ppAccessControlList) \ + ( (This)->lpVtbl -> CopyAccessList(This,ppAccessControlList) ) + +#define IADsAccessControlList_get__NewEnum(This,retval) \ + ( (This)->lpVtbl -> get__NewEnum(This,retval) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsAccessControlList_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_AccessControlList; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b85ea052-9bdd-11d0-852c-00c04fd8d503") +AccessControlList; +#endif + +#ifndef __IADsSecurityDescriptor_INTERFACE_DEFINED__ +#define __IADsSecurityDescriptor_INTERFACE_DEFINED__ + +/* interface IADsSecurityDescriptor */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsSecurityDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b8c787ca-9bdd-11d0-852c-00c04fd8d503") + IADsSecurityDescriptor : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Revision( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Revision( + /* [in] */ long lnRevision) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Control( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Control( + /* [in] */ long lnControl) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Owner( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Owner( + /* [in] */ __RPC__in BSTR bstrOwner) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OwnerDefaulted( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OwnerDefaulted( + /* [in] */ VARIANT_BOOL fOwnerDefaulted) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Group( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Group( + /* [in] */ __RPC__in BSTR bstrGroup) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_GroupDefaulted( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_GroupDefaulted( + /* [in] */ VARIANT_BOOL fGroupDefaulted) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscretionaryAcl( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DiscretionaryAcl( + /* [in] */ __RPC__in_opt IDispatch *pDiscretionaryAcl) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DaclDefaulted( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DaclDefaulted( + /* [in] */ VARIANT_BOOL fDaclDefaulted) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SystemAcl( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SystemAcl( + /* [in] */ __RPC__in_opt IDispatch *pSystemAcl) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SaclDefaulted( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SaclDefaulted( + /* [in] */ VARIANT_BOOL fSaclDefaulted) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE CopySecurityDescriptor( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppSecurityDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsSecurityDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsSecurityDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsSecurityDescriptor * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsSecurityDescriptor * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsSecurityDescriptor * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, get_Revision) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Revision )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, put_Revision) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Revision )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ long lnRevision); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, get_Control) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Control )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, put_Control) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Control )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ long lnControl); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, get_Owner) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Owner )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, put_Owner) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Owner )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ __RPC__in BSTR bstrOwner); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, get_OwnerDefaulted) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OwnerDefaulted )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, put_OwnerDefaulted) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OwnerDefaulted )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ VARIANT_BOOL fOwnerDefaulted); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, get_Group) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Group )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, put_Group) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Group )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ __RPC__in BSTR bstrGroup); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, get_GroupDefaulted) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GroupDefaulted )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, put_GroupDefaulted) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_GroupDefaulted )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ VARIANT_BOOL fGroupDefaulted); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, get_DiscretionaryAcl) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscretionaryAcl )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **retval); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, put_DiscretionaryAcl) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DiscretionaryAcl )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ __RPC__in_opt IDispatch *pDiscretionaryAcl); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, get_DaclDefaulted) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DaclDefaulted )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, put_DaclDefaulted) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DaclDefaulted )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ VARIANT_BOOL fDaclDefaulted); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, get_SystemAcl) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SystemAcl )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **retval); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, put_SystemAcl) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SystemAcl )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ __RPC__in_opt IDispatch *pSystemAcl); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, get_SaclDefaulted) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SaclDefaulted )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, put_SaclDefaulted) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SaclDefaulted )( + __RPC__in IADsSecurityDescriptor * This, + /* [in] */ VARIANT_BOOL fSaclDefaulted); + + DECLSPEC_XFGVIRT(IADsSecurityDescriptor, CopySecurityDescriptor) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CopySecurityDescriptor )( + __RPC__in IADsSecurityDescriptor * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppSecurityDescriptor); + + END_INTERFACE + } IADsSecurityDescriptorVtbl; + + interface IADsSecurityDescriptor + { + CONST_VTBL struct IADsSecurityDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsSecurityDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsSecurityDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsSecurityDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsSecurityDescriptor_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsSecurityDescriptor_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsSecurityDescriptor_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsSecurityDescriptor_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsSecurityDescriptor_get_Revision(This,retval) \ + ( (This)->lpVtbl -> get_Revision(This,retval) ) + +#define IADsSecurityDescriptor_put_Revision(This,lnRevision) \ + ( (This)->lpVtbl -> put_Revision(This,lnRevision) ) + +#define IADsSecurityDescriptor_get_Control(This,retval) \ + ( (This)->lpVtbl -> get_Control(This,retval) ) + +#define IADsSecurityDescriptor_put_Control(This,lnControl) \ + ( (This)->lpVtbl -> put_Control(This,lnControl) ) + +#define IADsSecurityDescriptor_get_Owner(This,retval) \ + ( (This)->lpVtbl -> get_Owner(This,retval) ) + +#define IADsSecurityDescriptor_put_Owner(This,bstrOwner) \ + ( (This)->lpVtbl -> put_Owner(This,bstrOwner) ) + +#define IADsSecurityDescriptor_get_OwnerDefaulted(This,retval) \ + ( (This)->lpVtbl -> get_OwnerDefaulted(This,retval) ) + +#define IADsSecurityDescriptor_put_OwnerDefaulted(This,fOwnerDefaulted) \ + ( (This)->lpVtbl -> put_OwnerDefaulted(This,fOwnerDefaulted) ) + +#define IADsSecurityDescriptor_get_Group(This,retval) \ + ( (This)->lpVtbl -> get_Group(This,retval) ) + +#define IADsSecurityDescriptor_put_Group(This,bstrGroup) \ + ( (This)->lpVtbl -> put_Group(This,bstrGroup) ) + +#define IADsSecurityDescriptor_get_GroupDefaulted(This,retval) \ + ( (This)->lpVtbl -> get_GroupDefaulted(This,retval) ) + +#define IADsSecurityDescriptor_put_GroupDefaulted(This,fGroupDefaulted) \ + ( (This)->lpVtbl -> put_GroupDefaulted(This,fGroupDefaulted) ) + +#define IADsSecurityDescriptor_get_DiscretionaryAcl(This,retval) \ + ( (This)->lpVtbl -> get_DiscretionaryAcl(This,retval) ) + +#define IADsSecurityDescriptor_put_DiscretionaryAcl(This,pDiscretionaryAcl) \ + ( (This)->lpVtbl -> put_DiscretionaryAcl(This,pDiscretionaryAcl) ) + +#define IADsSecurityDescriptor_get_DaclDefaulted(This,retval) \ + ( (This)->lpVtbl -> get_DaclDefaulted(This,retval) ) + +#define IADsSecurityDescriptor_put_DaclDefaulted(This,fDaclDefaulted) \ + ( (This)->lpVtbl -> put_DaclDefaulted(This,fDaclDefaulted) ) + +#define IADsSecurityDescriptor_get_SystemAcl(This,retval) \ + ( (This)->lpVtbl -> get_SystemAcl(This,retval) ) + +#define IADsSecurityDescriptor_put_SystemAcl(This,pSystemAcl) \ + ( (This)->lpVtbl -> put_SystemAcl(This,pSystemAcl) ) + +#define IADsSecurityDescriptor_get_SaclDefaulted(This,retval) \ + ( (This)->lpVtbl -> get_SaclDefaulted(This,retval) ) + +#define IADsSecurityDescriptor_put_SaclDefaulted(This,fSaclDefaulted) \ + ( (This)->lpVtbl -> put_SaclDefaulted(This,fSaclDefaulted) ) + +#define IADsSecurityDescriptor_CopySecurityDescriptor(This,ppSecurityDescriptor) \ + ( (This)->lpVtbl -> CopySecurityDescriptor(This,ppSecurityDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsSecurityDescriptor_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_SecurityDescriptor; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b958f73c-9bdd-11d0-852c-00c04fd8d503") +SecurityDescriptor; +#endif + +#ifndef __IADsLargeInteger_INTERFACE_DEFINED__ +#define __IADsLargeInteger_INTERFACE_DEFINED__ + +/* interface IADsLargeInteger */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsLargeInteger; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9068270b-0939-11d1-8be1-00c04fd8d503") + IADsLargeInteger : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_HighPart( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_HighPart( + /* [in] */ long lnHighPart) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LowPart( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_LowPart( + /* [in] */ long lnLowPart) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsLargeIntegerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsLargeInteger * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsLargeInteger * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsLargeInteger * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsLargeInteger * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsLargeInteger * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsLargeInteger * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsLargeInteger * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsLargeInteger, get_HighPart) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HighPart )( + __RPC__in IADsLargeInteger * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsLargeInteger, put_HighPart) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HighPart )( + __RPC__in IADsLargeInteger * This, + /* [in] */ long lnHighPart); + + DECLSPEC_XFGVIRT(IADsLargeInteger, get_LowPart) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LowPart )( + __RPC__in IADsLargeInteger * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsLargeInteger, put_LowPart) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LowPart )( + __RPC__in IADsLargeInteger * This, + /* [in] */ long lnLowPart); + + END_INTERFACE + } IADsLargeIntegerVtbl; + + interface IADsLargeInteger + { + CONST_VTBL struct IADsLargeIntegerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsLargeInteger_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsLargeInteger_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsLargeInteger_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsLargeInteger_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsLargeInteger_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsLargeInteger_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsLargeInteger_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsLargeInteger_get_HighPart(This,retval) \ + ( (This)->lpVtbl -> get_HighPart(This,retval) ) + +#define IADsLargeInteger_put_HighPart(This,lnHighPart) \ + ( (This)->lpVtbl -> put_HighPart(This,lnHighPart) ) + +#define IADsLargeInteger_get_LowPart(This,retval) \ + ( (This)->lpVtbl -> get_LowPart(This,retval) ) + +#define IADsLargeInteger_put_LowPart(This,lnLowPart) \ + ( (This)->lpVtbl -> put_LowPart(This,lnLowPart) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsLargeInteger_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_LargeInteger; + +#ifdef __cplusplus + +class DECLSPEC_UUID("927971f5-0939-11d1-8be1-00c04fd8d503") +LargeInteger; +#endif + +#ifndef __IADsNameTranslate_INTERFACE_DEFINED__ +#define __IADsNameTranslate_INTERFACE_DEFINED__ + +/* interface IADsNameTranslate */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsNameTranslate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b1b272a3-3625-11d1-a3a4-00c04fb950dc") + IADsNameTranslate : public IDispatch + { + public: + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ChaseReferral( + /* [in] */ long lnChaseReferral) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Init( + /* [in] */ long lnSetType, + /* [in] */ __RPC__in BSTR bstrADsPath) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE InitEx( + /* [in] */ long lnSetType, + /* [in] */ __RPC__in BSTR bstrADsPath, + /* [in] */ __RPC__in BSTR bstrUserID, + /* [in] */ __RPC__in BSTR bstrDomain, + /* [in] */ __RPC__in BSTR bstrPassword) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Set( + /* [in] */ long lnSetType, + /* [in] */ __RPC__in BSTR bstrADsPath) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Get( + /* [in] */ long lnFormatType, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrADsPath) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetEx( + /* [in] */ long lnFormatType, + /* [in] */ VARIANT pvar) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetEx( + /* [in] */ long lnFormatType, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsNameTranslateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsNameTranslate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsNameTranslate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsNameTranslate * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsNameTranslate * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsNameTranslate * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsNameTranslate * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsNameTranslate * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsNameTranslate, put_ChaseReferral) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ChaseReferral )( + __RPC__in IADsNameTranslate * This, + /* [in] */ long lnChaseReferral); + + DECLSPEC_XFGVIRT(IADsNameTranslate, Init) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Init )( + __RPC__in IADsNameTranslate * This, + /* [in] */ long lnSetType, + /* [in] */ __RPC__in BSTR bstrADsPath); + + DECLSPEC_XFGVIRT(IADsNameTranslate, InitEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *InitEx )( + __RPC__in IADsNameTranslate * This, + /* [in] */ long lnSetType, + /* [in] */ __RPC__in BSTR bstrADsPath, + /* [in] */ __RPC__in BSTR bstrUserID, + /* [in] */ __RPC__in BSTR bstrDomain, + /* [in] */ __RPC__in BSTR bstrPassword); + + DECLSPEC_XFGVIRT(IADsNameTranslate, Set) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Set )( + __RPC__in IADsNameTranslate * This, + /* [in] */ long lnSetType, + /* [in] */ __RPC__in BSTR bstrADsPath); + + DECLSPEC_XFGVIRT(IADsNameTranslate, Get) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IADsNameTranslate * This, + /* [in] */ long lnFormatType, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrADsPath); + + DECLSPEC_XFGVIRT(IADsNameTranslate, SetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetEx )( + __RPC__in IADsNameTranslate * This, + /* [in] */ long lnFormatType, + /* [in] */ VARIANT pvar); + + DECLSPEC_XFGVIRT(IADsNameTranslate, GetEx) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + __RPC__in IADsNameTranslate * This, + /* [in] */ long lnFormatType, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + END_INTERFACE + } IADsNameTranslateVtbl; + + interface IADsNameTranslate + { + CONST_VTBL struct IADsNameTranslateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsNameTranslate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsNameTranslate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsNameTranslate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsNameTranslate_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsNameTranslate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsNameTranslate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsNameTranslate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsNameTranslate_put_ChaseReferral(This,lnChaseReferral) \ + ( (This)->lpVtbl -> put_ChaseReferral(This,lnChaseReferral) ) + +#define IADsNameTranslate_Init(This,lnSetType,bstrADsPath) \ + ( (This)->lpVtbl -> Init(This,lnSetType,bstrADsPath) ) + +#define IADsNameTranslate_InitEx(This,lnSetType,bstrADsPath,bstrUserID,bstrDomain,bstrPassword) \ + ( (This)->lpVtbl -> InitEx(This,lnSetType,bstrADsPath,bstrUserID,bstrDomain,bstrPassword) ) + +#define IADsNameTranslate_Set(This,lnSetType,bstrADsPath) \ + ( (This)->lpVtbl -> Set(This,lnSetType,bstrADsPath) ) + +#define IADsNameTranslate_Get(This,lnFormatType,pbstrADsPath) \ + ( (This)->lpVtbl -> Get(This,lnFormatType,pbstrADsPath) ) + +#define IADsNameTranslate_SetEx(This,lnFormatType,pvar) \ + ( (This)->lpVtbl -> SetEx(This,lnFormatType,pvar) ) + +#define IADsNameTranslate_GetEx(This,lnFormatType,pvar) \ + ( (This)->lpVtbl -> GetEx(This,lnFormatType,pvar) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsNameTranslate_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_NameTranslate; + +#ifdef __cplusplus + +class DECLSPEC_UUID("274fae1f-3626-11d1-a3a4-00c04fb950dc") +NameTranslate; +#endif + +#ifndef __IADsCaseIgnoreList_INTERFACE_DEFINED__ +#define __IADsCaseIgnoreList_INTERFACE_DEFINED__ + +/* interface IADsCaseIgnoreList */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsCaseIgnoreList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7b66b533-4680-11d1-a3b4-00c04fb950dc") + IADsCaseIgnoreList : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CaseIgnoreList( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_CaseIgnoreList( + /* [in] */ VARIANT vCaseIgnoreList) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsCaseIgnoreListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsCaseIgnoreList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsCaseIgnoreList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsCaseIgnoreList * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsCaseIgnoreList * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsCaseIgnoreList * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsCaseIgnoreList * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsCaseIgnoreList * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsCaseIgnoreList, get_CaseIgnoreList) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CaseIgnoreList )( + __RPC__in IADsCaseIgnoreList * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsCaseIgnoreList, put_CaseIgnoreList) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CaseIgnoreList )( + __RPC__in IADsCaseIgnoreList * This, + /* [in] */ VARIANT vCaseIgnoreList); + + END_INTERFACE + } IADsCaseIgnoreListVtbl; + + interface IADsCaseIgnoreList + { + CONST_VTBL struct IADsCaseIgnoreListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsCaseIgnoreList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsCaseIgnoreList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsCaseIgnoreList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsCaseIgnoreList_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsCaseIgnoreList_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsCaseIgnoreList_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsCaseIgnoreList_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsCaseIgnoreList_get_CaseIgnoreList(This,retval) \ + ( (This)->lpVtbl -> get_CaseIgnoreList(This,retval) ) + +#define IADsCaseIgnoreList_put_CaseIgnoreList(This,vCaseIgnoreList) \ + ( (This)->lpVtbl -> put_CaseIgnoreList(This,vCaseIgnoreList) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsCaseIgnoreList_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_CaseIgnoreList; + +#ifdef __cplusplus + +class DECLSPEC_UUID("15f88a55-4680-11d1-a3b4-00c04fb950dc") +CaseIgnoreList; +#endif + +#ifndef __IADsFaxNumber_INTERFACE_DEFINED__ +#define __IADsFaxNumber_INTERFACE_DEFINED__ + +/* interface IADsFaxNumber */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsFaxNumber; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a910dea9-4680-11d1-a3b4-00c04fb950dc") + IADsFaxNumber : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_TelephoneNumber( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_TelephoneNumber( + /* [in] */ __RPC__in BSTR bstrTelephoneNumber) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Parameters( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Parameters( + /* [in] */ VARIANT vParameters) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsFaxNumberVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsFaxNumber * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsFaxNumber * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsFaxNumber * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsFaxNumber * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsFaxNumber * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsFaxNumber * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsFaxNumber * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsFaxNumber, get_TelephoneNumber) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TelephoneNumber )( + __RPC__in IADsFaxNumber * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsFaxNumber, put_TelephoneNumber) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_TelephoneNumber )( + __RPC__in IADsFaxNumber * This, + /* [in] */ __RPC__in BSTR bstrTelephoneNumber); + + DECLSPEC_XFGVIRT(IADsFaxNumber, get_Parameters) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in IADsFaxNumber * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsFaxNumber, put_Parameters) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Parameters )( + __RPC__in IADsFaxNumber * This, + /* [in] */ VARIANT vParameters); + + END_INTERFACE + } IADsFaxNumberVtbl; + + interface IADsFaxNumber + { + CONST_VTBL struct IADsFaxNumberVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsFaxNumber_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsFaxNumber_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsFaxNumber_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsFaxNumber_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsFaxNumber_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsFaxNumber_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsFaxNumber_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsFaxNumber_get_TelephoneNumber(This,retval) \ + ( (This)->lpVtbl -> get_TelephoneNumber(This,retval) ) + +#define IADsFaxNumber_put_TelephoneNumber(This,bstrTelephoneNumber) \ + ( (This)->lpVtbl -> put_TelephoneNumber(This,bstrTelephoneNumber) ) + +#define IADsFaxNumber_get_Parameters(This,retval) \ + ( (This)->lpVtbl -> get_Parameters(This,retval) ) + +#define IADsFaxNumber_put_Parameters(This,vParameters) \ + ( (This)->lpVtbl -> put_Parameters(This,vParameters) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsFaxNumber_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_FaxNumber; + +#ifdef __cplusplus + +class DECLSPEC_UUID("a5062215-4681-11d1-a3b4-00c04fb950dc") +FaxNumber; +#endif + +#ifndef __IADsNetAddress_INTERFACE_DEFINED__ +#define __IADsNetAddress_INTERFACE_DEFINED__ + +/* interface IADsNetAddress */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsNetAddress; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b21a50a9-4080-11d1-a3ac-00c04fb950dc") + IADsNetAddress : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AddressType( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_AddressType( + /* [in] */ long lnAddressType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Address( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Address( + /* [in] */ VARIANT vAddress) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsNetAddressVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsNetAddress * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsNetAddress * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsNetAddress * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsNetAddress * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsNetAddress * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsNetAddress * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsNetAddress * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsNetAddress, get_AddressType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AddressType )( + __RPC__in IADsNetAddress * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsNetAddress, put_AddressType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AddressType )( + __RPC__in IADsNetAddress * This, + /* [in] */ long lnAddressType); + + DECLSPEC_XFGVIRT(IADsNetAddress, get_Address) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Address )( + __RPC__in IADsNetAddress * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsNetAddress, put_Address) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Address )( + __RPC__in IADsNetAddress * This, + /* [in] */ VARIANT vAddress); + + END_INTERFACE + } IADsNetAddressVtbl; + + interface IADsNetAddress + { + CONST_VTBL struct IADsNetAddressVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsNetAddress_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsNetAddress_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsNetAddress_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsNetAddress_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsNetAddress_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsNetAddress_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsNetAddress_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsNetAddress_get_AddressType(This,retval) \ + ( (This)->lpVtbl -> get_AddressType(This,retval) ) + +#define IADsNetAddress_put_AddressType(This,lnAddressType) \ + ( (This)->lpVtbl -> put_AddressType(This,lnAddressType) ) + +#define IADsNetAddress_get_Address(This,retval) \ + ( (This)->lpVtbl -> get_Address(This,retval) ) + +#define IADsNetAddress_put_Address(This,vAddress) \ + ( (This)->lpVtbl -> put_Address(This,vAddress) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsNetAddress_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_NetAddress; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b0b71247-4080-11d1-a3ac-00c04fb950dc") +NetAddress; +#endif + +#ifndef __IADsOctetList_INTERFACE_DEFINED__ +#define __IADsOctetList_INTERFACE_DEFINED__ + +/* interface IADsOctetList */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsOctetList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7b28b80f-4680-11d1-a3b4-00c04fb950dc") + IADsOctetList : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_OctetList( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_OctetList( + /* [in] */ VARIANT vOctetList) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsOctetListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsOctetList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsOctetList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsOctetList * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsOctetList * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsOctetList * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsOctetList * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsOctetList * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsOctetList, get_OctetList) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OctetList )( + __RPC__in IADsOctetList * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsOctetList, put_OctetList) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OctetList )( + __RPC__in IADsOctetList * This, + /* [in] */ VARIANT vOctetList); + + END_INTERFACE + } IADsOctetListVtbl; + + interface IADsOctetList + { + CONST_VTBL struct IADsOctetListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsOctetList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsOctetList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsOctetList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsOctetList_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsOctetList_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsOctetList_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsOctetList_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsOctetList_get_OctetList(This,retval) \ + ( (This)->lpVtbl -> get_OctetList(This,retval) ) + +#define IADsOctetList_put_OctetList(This,vOctetList) \ + ( (This)->lpVtbl -> put_OctetList(This,vOctetList) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsOctetList_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_OctetList; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1241400f-4680-11d1-a3b4-00c04fb950dc") +OctetList; +#endif + +#ifndef __IADsEmail_INTERFACE_DEFINED__ +#define __IADsEmail_INTERFACE_DEFINED__ + +/* interface IADsEmail */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsEmail; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("97af011a-478e-11d1-a3b4-00c04fb950dc") + IADsEmail : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ long lnType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Address( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Address( + /* [in] */ __RPC__in BSTR bstrAddress) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsEmailVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsEmail * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsEmail * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsEmail * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsEmail * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsEmail * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsEmail * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsEmail * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsEmail, get_Type) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IADsEmail * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsEmail, put_Type) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in IADsEmail * This, + /* [in] */ long lnType); + + DECLSPEC_XFGVIRT(IADsEmail, get_Address) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Address )( + __RPC__in IADsEmail * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsEmail, put_Address) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Address )( + __RPC__in IADsEmail * This, + /* [in] */ __RPC__in BSTR bstrAddress); + + END_INTERFACE + } IADsEmailVtbl; + + interface IADsEmail + { + CONST_VTBL struct IADsEmailVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsEmail_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsEmail_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsEmail_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsEmail_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsEmail_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsEmail_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsEmail_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsEmail_get_Type(This,retval) \ + ( (This)->lpVtbl -> get_Type(This,retval) ) + +#define IADsEmail_put_Type(This,lnType) \ + ( (This)->lpVtbl -> put_Type(This,lnType) ) + +#define IADsEmail_get_Address(This,retval) \ + ( (This)->lpVtbl -> get_Address(This,retval) ) + +#define IADsEmail_put_Address(This,bstrAddress) \ + ( (This)->lpVtbl -> put_Address(This,bstrAddress) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsEmail_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_Email; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8f92a857-478e-11d1-a3b4-00c04fb950dc") +Email; +#endif + +#ifndef __IADsPath_INTERFACE_DEFINED__ +#define __IADsPath_INTERFACE_DEFINED__ + +/* interface IADsPath */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPath; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b287fcd5-4080-11d1-a3ac-00c04fb950dc") + IADsPath : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ long lnType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_VolumeName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_VolumeName( + /* [in] */ __RPC__in BSTR bstrVolumeName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Path( + /* [in] */ __RPC__in BSTR bstrPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPathVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPath * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPath * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPath * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPath * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPath * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPath * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPath * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsPath, get_Type) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IADsPath * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPath, put_Type) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in IADsPath * This, + /* [in] */ long lnType); + + DECLSPEC_XFGVIRT(IADsPath, get_VolumeName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeName )( + __RPC__in IADsPath * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPath, put_VolumeName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VolumeName )( + __RPC__in IADsPath * This, + /* [in] */ __RPC__in BSTR bstrVolumeName); + + DECLSPEC_XFGVIRT(IADsPath, get_Path) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IADsPath * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsPath, put_Path) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Path )( + __RPC__in IADsPath * This, + /* [in] */ __RPC__in BSTR bstrPath); + + END_INTERFACE + } IADsPathVtbl; + + interface IADsPath + { + CONST_VTBL struct IADsPathVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPath_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPath_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPath_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPath_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPath_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPath_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPath_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPath_get_Type(This,retval) \ + ( (This)->lpVtbl -> get_Type(This,retval) ) + +#define IADsPath_put_Type(This,lnType) \ + ( (This)->lpVtbl -> put_Type(This,lnType) ) + +#define IADsPath_get_VolumeName(This,retval) \ + ( (This)->lpVtbl -> get_VolumeName(This,retval) ) + +#define IADsPath_put_VolumeName(This,bstrVolumeName) \ + ( (This)->lpVtbl -> put_VolumeName(This,bstrVolumeName) ) + +#define IADsPath_get_Path(This,retval) \ + ( (This)->lpVtbl -> get_Path(This,retval) ) + +#define IADsPath_put_Path(This,bstrPath) \ + ( (This)->lpVtbl -> put_Path(This,bstrPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPath_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_Path; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b2538919-4080-11d1-a3ac-00c04fb950dc") +Path; +#endif + +#ifndef __IADsReplicaPointer_INTERFACE_DEFINED__ +#define __IADsReplicaPointer_INTERFACE_DEFINED__ + +/* interface IADsReplicaPointer */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsReplicaPointer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f60fb803-4080-11d1-a3ac-00c04fb950dc") + IADsReplicaPointer : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ServerName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ServerName( + /* [in] */ __RPC__in BSTR bstrServerName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ReplicaType( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ReplicaType( + /* [in] */ long lnReplicaType) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ReplicaNumber( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ReplicaNumber( + /* [in] */ long lnReplicaNumber) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Count( + /* [in] */ long lnCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ReplicaAddressHints( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ReplicaAddressHints( + /* [in] */ VARIANT vReplicaAddressHints) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsReplicaPointerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsReplicaPointer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsReplicaPointer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsReplicaPointer * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsReplicaPointer * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsReplicaPointer * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsReplicaPointer * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsReplicaPointer * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsReplicaPointer, get_ServerName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ServerName )( + __RPC__in IADsReplicaPointer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsReplicaPointer, put_ServerName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServerName )( + __RPC__in IADsReplicaPointer * This, + /* [in] */ __RPC__in BSTR bstrServerName); + + DECLSPEC_XFGVIRT(IADsReplicaPointer, get_ReplicaType) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReplicaType )( + __RPC__in IADsReplicaPointer * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsReplicaPointer, put_ReplicaType) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReplicaType )( + __RPC__in IADsReplicaPointer * This, + /* [in] */ long lnReplicaType); + + DECLSPEC_XFGVIRT(IADsReplicaPointer, get_ReplicaNumber) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReplicaNumber )( + __RPC__in IADsReplicaPointer * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsReplicaPointer, put_ReplicaNumber) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReplicaNumber )( + __RPC__in IADsReplicaPointer * This, + /* [in] */ long lnReplicaNumber); + + DECLSPEC_XFGVIRT(IADsReplicaPointer, get_Count) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IADsReplicaPointer * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsReplicaPointer, put_Count) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Count )( + __RPC__in IADsReplicaPointer * This, + /* [in] */ long lnCount); + + DECLSPEC_XFGVIRT(IADsReplicaPointer, get_ReplicaAddressHints) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReplicaAddressHints )( + __RPC__in IADsReplicaPointer * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsReplicaPointer, put_ReplicaAddressHints) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReplicaAddressHints )( + __RPC__in IADsReplicaPointer * This, + /* [in] */ VARIANT vReplicaAddressHints); + + END_INTERFACE + } IADsReplicaPointerVtbl; + + interface IADsReplicaPointer + { + CONST_VTBL struct IADsReplicaPointerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsReplicaPointer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsReplicaPointer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsReplicaPointer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsReplicaPointer_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsReplicaPointer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsReplicaPointer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsReplicaPointer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsReplicaPointer_get_ServerName(This,retval) \ + ( (This)->lpVtbl -> get_ServerName(This,retval) ) + +#define IADsReplicaPointer_put_ServerName(This,bstrServerName) \ + ( (This)->lpVtbl -> put_ServerName(This,bstrServerName) ) + +#define IADsReplicaPointer_get_ReplicaType(This,retval) \ + ( (This)->lpVtbl -> get_ReplicaType(This,retval) ) + +#define IADsReplicaPointer_put_ReplicaType(This,lnReplicaType) \ + ( (This)->lpVtbl -> put_ReplicaType(This,lnReplicaType) ) + +#define IADsReplicaPointer_get_ReplicaNumber(This,retval) \ + ( (This)->lpVtbl -> get_ReplicaNumber(This,retval) ) + +#define IADsReplicaPointer_put_ReplicaNumber(This,lnReplicaNumber) \ + ( (This)->lpVtbl -> put_ReplicaNumber(This,lnReplicaNumber) ) + +#define IADsReplicaPointer_get_Count(This,retval) \ + ( (This)->lpVtbl -> get_Count(This,retval) ) + +#define IADsReplicaPointer_put_Count(This,lnCount) \ + ( (This)->lpVtbl -> put_Count(This,lnCount) ) + +#define IADsReplicaPointer_get_ReplicaAddressHints(This,retval) \ + ( (This)->lpVtbl -> get_ReplicaAddressHints(This,retval) ) + +#define IADsReplicaPointer_put_ReplicaAddressHints(This,vReplicaAddressHints) \ + ( (This)->lpVtbl -> put_ReplicaAddressHints(This,vReplicaAddressHints) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsReplicaPointer_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_ReplicaPointer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("f5d1badf-4080-11d1-a3ac-00c04fb950dc") +ReplicaPointer; +#endif + +#ifndef __IADsAcl_INTERFACE_DEFINED__ +#define __IADsAcl_INTERFACE_DEFINED__ + +/* interface IADsAcl */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsAcl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8452d3ab-0869-11d1-a377-00c04fb950dc") + IADsAcl : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ProtectedAttrName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ProtectedAttrName( + /* [in] */ __RPC__in BSTR bstrProtectedAttrName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SubjectName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SubjectName( + /* [in] */ __RPC__in BSTR bstrSubjectName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Privileges( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Privileges( + /* [in] */ long lnPrivileges) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE CopyAcl( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppAcl) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsAclVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsAcl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsAcl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsAcl * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsAcl * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsAcl * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsAcl * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsAcl * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsAcl, get_ProtectedAttrName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProtectedAttrName )( + __RPC__in IADsAcl * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsAcl, put_ProtectedAttrName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProtectedAttrName )( + __RPC__in IADsAcl * This, + /* [in] */ __RPC__in BSTR bstrProtectedAttrName); + + DECLSPEC_XFGVIRT(IADsAcl, get_SubjectName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubjectName )( + __RPC__in IADsAcl * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsAcl, put_SubjectName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SubjectName )( + __RPC__in IADsAcl * This, + /* [in] */ __RPC__in BSTR bstrSubjectName); + + DECLSPEC_XFGVIRT(IADsAcl, get_Privileges) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Privileges )( + __RPC__in IADsAcl * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsAcl, put_Privileges) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Privileges )( + __RPC__in IADsAcl * This, + /* [in] */ long lnPrivileges); + + DECLSPEC_XFGVIRT(IADsAcl, CopyAcl) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CopyAcl )( + __RPC__in IADsAcl * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppAcl); + + END_INTERFACE + } IADsAclVtbl; + + interface IADsAcl + { + CONST_VTBL struct IADsAclVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsAcl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsAcl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsAcl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsAcl_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsAcl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsAcl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsAcl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsAcl_get_ProtectedAttrName(This,retval) \ + ( (This)->lpVtbl -> get_ProtectedAttrName(This,retval) ) + +#define IADsAcl_put_ProtectedAttrName(This,bstrProtectedAttrName) \ + ( (This)->lpVtbl -> put_ProtectedAttrName(This,bstrProtectedAttrName) ) + +#define IADsAcl_get_SubjectName(This,retval) \ + ( (This)->lpVtbl -> get_SubjectName(This,retval) ) + +#define IADsAcl_put_SubjectName(This,bstrSubjectName) \ + ( (This)->lpVtbl -> put_SubjectName(This,bstrSubjectName) ) + +#define IADsAcl_get_Privileges(This,retval) \ + ( (This)->lpVtbl -> get_Privileges(This,retval) ) + +#define IADsAcl_put_Privileges(This,lnPrivileges) \ + ( (This)->lpVtbl -> put_Privileges(This,lnPrivileges) ) + +#define IADsAcl_CopyAcl(This,ppAcl) \ + ( (This)->lpVtbl -> CopyAcl(This,ppAcl) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsAcl_INTERFACE_DEFINED__ */ + + +#ifndef __IADsTimestamp_INTERFACE_DEFINED__ +#define __IADsTimestamp_INTERFACE_DEFINED__ + +/* interface IADsTimestamp */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsTimestamp; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b2f5a901-4080-11d1-a3ac-00c04fb950dc") + IADsTimestamp : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_WholeSeconds( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_WholeSeconds( + /* [in] */ long lnWholeSeconds) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_EventID( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_EventID( + /* [in] */ long lnEventID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsTimestampVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsTimestamp * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsTimestamp * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsTimestamp * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsTimestamp * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsTimestamp * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsTimestamp * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsTimestamp * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsTimestamp, get_WholeSeconds) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WholeSeconds )( + __RPC__in IADsTimestamp * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsTimestamp, put_WholeSeconds) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_WholeSeconds )( + __RPC__in IADsTimestamp * This, + /* [in] */ long lnWholeSeconds); + + DECLSPEC_XFGVIRT(IADsTimestamp, get_EventID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventID )( + __RPC__in IADsTimestamp * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsTimestamp, put_EventID) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventID )( + __RPC__in IADsTimestamp * This, + /* [in] */ long lnEventID); + + END_INTERFACE + } IADsTimestampVtbl; + + interface IADsTimestamp + { + CONST_VTBL struct IADsTimestampVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsTimestamp_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsTimestamp_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsTimestamp_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsTimestamp_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsTimestamp_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsTimestamp_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsTimestamp_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsTimestamp_get_WholeSeconds(This,retval) \ + ( (This)->lpVtbl -> get_WholeSeconds(This,retval) ) + +#define IADsTimestamp_put_WholeSeconds(This,lnWholeSeconds) \ + ( (This)->lpVtbl -> put_WholeSeconds(This,lnWholeSeconds) ) + +#define IADsTimestamp_get_EventID(This,retval) \ + ( (This)->lpVtbl -> get_EventID(This,retval) ) + +#define IADsTimestamp_put_EventID(This,lnEventID) \ + ( (This)->lpVtbl -> put_EventID(This,lnEventID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsTimestamp_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_Timestamp; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b2bed2eb-4080-11d1-a3ac-00c04fb950dc") +Timestamp; +#endif + +#ifndef __IADsPostalAddress_INTERFACE_DEFINED__ +#define __IADsPostalAddress_INTERFACE_DEFINED__ + +/* interface IADsPostalAddress */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPostalAddress; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7adecf29-4680-11d1-a3b4-00c04fb950dc") + IADsPostalAddress : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PostalAddress( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_PostalAddress( + /* [in] */ VARIANT vPostalAddress) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPostalAddressVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPostalAddress * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPostalAddress * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPostalAddress * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPostalAddress * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPostalAddress * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPostalAddress * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPostalAddress * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsPostalAddress, get_PostalAddress) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PostalAddress )( + __RPC__in IADsPostalAddress * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsPostalAddress, put_PostalAddress) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PostalAddress )( + __RPC__in IADsPostalAddress * This, + /* [in] */ VARIANT vPostalAddress); + + END_INTERFACE + } IADsPostalAddressVtbl; + + interface IADsPostalAddress + { + CONST_VTBL struct IADsPostalAddressVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPostalAddress_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPostalAddress_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPostalAddress_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPostalAddress_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPostalAddress_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPostalAddress_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPostalAddress_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPostalAddress_get_PostalAddress(This,retval) \ + ( (This)->lpVtbl -> get_PostalAddress(This,retval) ) + +#define IADsPostalAddress_put_PostalAddress(This,vPostalAddress) \ + ( (This)->lpVtbl -> put_PostalAddress(This,vPostalAddress) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPostalAddress_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_PostalAddress; + +#ifdef __cplusplus + +class DECLSPEC_UUID("0a75afcd-4680-11d1-a3b4-00c04fb950dc") +PostalAddress; +#endif + +#ifndef __IADsBackLink_INTERFACE_DEFINED__ +#define __IADsBackLink_INTERFACE_DEFINED__ + +/* interface IADsBackLink */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsBackLink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fd1302bd-4080-11d1-a3ac-00c04fb950dc") + IADsBackLink : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_RemoteID( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_RemoteID( + /* [in] */ long lnRemoteID) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ObjectName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ObjectName( + /* [in] */ __RPC__in BSTR bstrObjectName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsBackLinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsBackLink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsBackLink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsBackLink * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsBackLink * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsBackLink * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsBackLink * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsBackLink * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsBackLink, get_RemoteID) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemoteID )( + __RPC__in IADsBackLink * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsBackLink, put_RemoteID) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RemoteID )( + __RPC__in IADsBackLink * This, + /* [in] */ long lnRemoteID); + + DECLSPEC_XFGVIRT(IADsBackLink, get_ObjectName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectName )( + __RPC__in IADsBackLink * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsBackLink, put_ObjectName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ObjectName )( + __RPC__in IADsBackLink * This, + /* [in] */ __RPC__in BSTR bstrObjectName); + + END_INTERFACE + } IADsBackLinkVtbl; + + interface IADsBackLink + { + CONST_VTBL struct IADsBackLinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsBackLink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsBackLink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsBackLink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsBackLink_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsBackLink_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsBackLink_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsBackLink_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsBackLink_get_RemoteID(This,retval) \ + ( (This)->lpVtbl -> get_RemoteID(This,retval) ) + +#define IADsBackLink_put_RemoteID(This,lnRemoteID) \ + ( (This)->lpVtbl -> put_RemoteID(This,lnRemoteID) ) + +#define IADsBackLink_get_ObjectName(This,retval) \ + ( (This)->lpVtbl -> get_ObjectName(This,retval) ) + +#define IADsBackLink_put_ObjectName(This,bstrObjectName) \ + ( (This)->lpVtbl -> put_ObjectName(This,bstrObjectName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsBackLink_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_BackLink; + +#ifdef __cplusplus + +class DECLSPEC_UUID("fcbf906f-4080-11d1-a3ac-00c04fb950dc") +BackLink; +#endif + +#ifndef __IADsTypedName_INTERFACE_DEFINED__ +#define __IADsTypedName_INTERFACE_DEFINED__ + +/* interface IADsTypedName */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsTypedName; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b371a349-4080-11d1-a3ac-00c04fb950dc") + IADsTypedName : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ObjectName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ObjectName( + /* [in] */ __RPC__in BSTR bstrObjectName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Level( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Level( + /* [in] */ long lnLevel) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Interval( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Interval( + /* [in] */ long lnInterval) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsTypedNameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsTypedName * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsTypedName * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsTypedName * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsTypedName * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsTypedName * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsTypedName * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsTypedName * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsTypedName, get_ObjectName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectName )( + __RPC__in IADsTypedName * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsTypedName, put_ObjectName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ObjectName )( + __RPC__in IADsTypedName * This, + /* [in] */ __RPC__in BSTR bstrObjectName); + + DECLSPEC_XFGVIRT(IADsTypedName, get_Level) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Level )( + __RPC__in IADsTypedName * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsTypedName, put_Level) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Level )( + __RPC__in IADsTypedName * This, + /* [in] */ long lnLevel); + + DECLSPEC_XFGVIRT(IADsTypedName, get_Interval) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Interval )( + __RPC__in IADsTypedName * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsTypedName, put_Interval) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Interval )( + __RPC__in IADsTypedName * This, + /* [in] */ long lnInterval); + + END_INTERFACE + } IADsTypedNameVtbl; + + interface IADsTypedName + { + CONST_VTBL struct IADsTypedNameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsTypedName_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsTypedName_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsTypedName_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsTypedName_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsTypedName_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsTypedName_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsTypedName_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsTypedName_get_ObjectName(This,retval) \ + ( (This)->lpVtbl -> get_ObjectName(This,retval) ) + +#define IADsTypedName_put_ObjectName(This,bstrObjectName) \ + ( (This)->lpVtbl -> put_ObjectName(This,bstrObjectName) ) + +#define IADsTypedName_get_Level(This,retval) \ + ( (This)->lpVtbl -> get_Level(This,retval) ) + +#define IADsTypedName_put_Level(This,lnLevel) \ + ( (This)->lpVtbl -> put_Level(This,lnLevel) ) + +#define IADsTypedName_get_Interval(This,retval) \ + ( (This)->lpVtbl -> get_Interval(This,retval) ) + +#define IADsTypedName_put_Interval(This,lnInterval) \ + ( (This)->lpVtbl -> put_Interval(This,lnInterval) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsTypedName_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_TypedName; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b33143cb-4080-11d1-a3ac-00c04fb950dc") +TypedName; +#endif + +#ifndef __IADsHold_INTERFACE_DEFINED__ +#define __IADsHold_INTERFACE_DEFINED__ + +/* interface IADsHold */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsHold; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b3eb3b37-4080-11d1-a3ac-00c04fb950dc") + IADsHold : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ObjectName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ObjectName( + /* [in] */ __RPC__in BSTR bstrObjectName) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Amount( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_Amount( + /* [in] */ long lnAmount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsHoldVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsHold * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsHold * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsHold * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsHold * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsHold * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsHold * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsHold * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsHold, get_ObjectName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectName )( + __RPC__in IADsHold * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsHold, put_ObjectName) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ObjectName )( + __RPC__in IADsHold * This, + /* [in] */ __RPC__in BSTR bstrObjectName); + + DECLSPEC_XFGVIRT(IADsHold, get_Amount) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Amount )( + __RPC__in IADsHold * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsHold, put_Amount) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Amount )( + __RPC__in IADsHold * This, + /* [in] */ long lnAmount); + + END_INTERFACE + } IADsHoldVtbl; + + interface IADsHold + { + CONST_VTBL struct IADsHoldVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsHold_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsHold_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsHold_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsHold_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsHold_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsHold_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsHold_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsHold_get_ObjectName(This,retval) \ + ( (This)->lpVtbl -> get_ObjectName(This,retval) ) + +#define IADsHold_put_ObjectName(This,bstrObjectName) \ + ( (This)->lpVtbl -> put_ObjectName(This,bstrObjectName) ) + +#define IADsHold_get_Amount(This,retval) \ + ( (This)->lpVtbl -> get_Amount(This,retval) ) + +#define IADsHold_put_Amount(This,lnAmount) \ + ( (This)->lpVtbl -> put_Amount(This,lnAmount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsHold_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_Hold; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b3ad3e13-4080-11d1-a3ac-00c04fb950dc") +Hold; +#endif + +#ifndef __IADsObjectOptions_INTERFACE_DEFINED__ +#define __IADsObjectOptions_INTERFACE_DEFINED__ + +/* interface IADsObjectOptions */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsObjectOptions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("46f14fda-232b-11d1-a808-00c04fd8d5a8") + IADsObjectOptions : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetOption( + /* [in] */ long lnOption, + /* [retval][out] */ __RPC__out VARIANT *pvValue) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetOption( + /* [in] */ long lnOption, + /* [in] */ VARIANT vValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsObjectOptionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsObjectOptions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsObjectOptions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsObjectOptions * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsObjectOptions * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsObjectOptions * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsObjectOptions * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsObjectOptions * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsObjectOptions, GetOption) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetOption )( + __RPC__in IADsObjectOptions * This, + /* [in] */ long lnOption, + /* [retval][out] */ __RPC__out VARIANT *pvValue); + + DECLSPEC_XFGVIRT(IADsObjectOptions, SetOption) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetOption )( + __RPC__in IADsObjectOptions * This, + /* [in] */ long lnOption, + /* [in] */ VARIANT vValue); + + END_INTERFACE + } IADsObjectOptionsVtbl; + + interface IADsObjectOptions + { + CONST_VTBL struct IADsObjectOptionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsObjectOptions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsObjectOptions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsObjectOptions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsObjectOptions_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsObjectOptions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsObjectOptions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsObjectOptions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsObjectOptions_GetOption(This,lnOption,pvValue) \ + ( (This)->lpVtbl -> GetOption(This,lnOption,pvValue) ) + +#define IADsObjectOptions_SetOption(This,lnOption,vValue) \ + ( (This)->lpVtbl -> SetOption(This,lnOption,vValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsObjectOptions_INTERFACE_DEFINED__ */ + + +#ifndef __IADsPathname_INTERFACE_DEFINED__ +#define __IADsPathname_INTERFACE_DEFINED__ + +/* interface IADsPathname */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsPathname; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d592aed4-f420-11d0-a36e-00c04fb950dc") + IADsPathname : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Set( + /* [in] */ __RPC__in BSTR bstrADsPath, + /* [in] */ long lnSetType) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetDisplayType( + /* [in] */ long lnDisplayType) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Retrieve( + /* [in] */ long lnFormatType, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrADsPath) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetNumElements( + /* [retval][out] */ __RPC__out long *plnNumPathElements) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetElement( + /* [in] */ long lnElementIndex, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrElement) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AddLeafElement( + /* [in] */ __RPC__in BSTR bstrLeafElement) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE RemoveLeafElement( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE CopyPath( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppAdsPath) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetEscapedElement( + /* [in] */ long lnReserved, + /* [in] */ __RPC__in BSTR bstrInStr, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOutStr) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_EscapedMode( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_EscapedMode( + /* [in] */ long lnEscapedMode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsPathnameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsPathname * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsPathname * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsPathname * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsPathname * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsPathname * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsPathname * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsPathname * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsPathname, Set) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Set )( + __RPC__in IADsPathname * This, + /* [in] */ __RPC__in BSTR bstrADsPath, + /* [in] */ long lnSetType); + + DECLSPEC_XFGVIRT(IADsPathname, SetDisplayType) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetDisplayType )( + __RPC__in IADsPathname * This, + /* [in] */ long lnDisplayType); + + DECLSPEC_XFGVIRT(IADsPathname, Retrieve) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Retrieve )( + __RPC__in IADsPathname * This, + /* [in] */ long lnFormatType, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrADsPath); + + DECLSPEC_XFGVIRT(IADsPathname, GetNumElements) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetNumElements )( + __RPC__in IADsPathname * This, + /* [retval][out] */ __RPC__out long *plnNumPathElements); + + DECLSPEC_XFGVIRT(IADsPathname, GetElement) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetElement )( + __RPC__in IADsPathname * This, + /* [in] */ long lnElementIndex, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrElement); + + DECLSPEC_XFGVIRT(IADsPathname, AddLeafElement) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddLeafElement )( + __RPC__in IADsPathname * This, + /* [in] */ __RPC__in BSTR bstrLeafElement); + + DECLSPEC_XFGVIRT(IADsPathname, RemoveLeafElement) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RemoveLeafElement )( + __RPC__in IADsPathname * This); + + DECLSPEC_XFGVIRT(IADsPathname, CopyPath) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CopyPath )( + __RPC__in IADsPathname * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppAdsPath); + + DECLSPEC_XFGVIRT(IADsPathname, GetEscapedElement) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetEscapedElement )( + __RPC__in IADsPathname * This, + /* [in] */ long lnReserved, + /* [in] */ __RPC__in BSTR bstrInStr, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOutStr); + + DECLSPEC_XFGVIRT(IADsPathname, get_EscapedMode) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EscapedMode )( + __RPC__in IADsPathname * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsPathname, put_EscapedMode) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EscapedMode )( + __RPC__in IADsPathname * This, + /* [in] */ long lnEscapedMode); + + END_INTERFACE + } IADsPathnameVtbl; + + interface IADsPathname + { + CONST_VTBL struct IADsPathnameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsPathname_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsPathname_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsPathname_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsPathname_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsPathname_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsPathname_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsPathname_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsPathname_Set(This,bstrADsPath,lnSetType) \ + ( (This)->lpVtbl -> Set(This,bstrADsPath,lnSetType) ) + +#define IADsPathname_SetDisplayType(This,lnDisplayType) \ + ( (This)->lpVtbl -> SetDisplayType(This,lnDisplayType) ) + +#define IADsPathname_Retrieve(This,lnFormatType,pbstrADsPath) \ + ( (This)->lpVtbl -> Retrieve(This,lnFormatType,pbstrADsPath) ) + +#define IADsPathname_GetNumElements(This,plnNumPathElements) \ + ( (This)->lpVtbl -> GetNumElements(This,plnNumPathElements) ) + +#define IADsPathname_GetElement(This,lnElementIndex,pbstrElement) \ + ( (This)->lpVtbl -> GetElement(This,lnElementIndex,pbstrElement) ) + +#define IADsPathname_AddLeafElement(This,bstrLeafElement) \ + ( (This)->lpVtbl -> AddLeafElement(This,bstrLeafElement) ) + +#define IADsPathname_RemoveLeafElement(This) \ + ( (This)->lpVtbl -> RemoveLeafElement(This) ) + +#define IADsPathname_CopyPath(This,ppAdsPath) \ + ( (This)->lpVtbl -> CopyPath(This,ppAdsPath) ) + +#define IADsPathname_GetEscapedElement(This,lnReserved,bstrInStr,pbstrOutStr) \ + ( (This)->lpVtbl -> GetEscapedElement(This,lnReserved,bstrInStr,pbstrOutStr) ) + +#define IADsPathname_get_EscapedMode(This,retval) \ + ( (This)->lpVtbl -> get_EscapedMode(This,retval) ) + +#define IADsPathname_put_EscapedMode(This,lnEscapedMode) \ + ( (This)->lpVtbl -> put_EscapedMode(This,lnEscapedMode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsPathname_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_Pathname; + +#ifdef __cplusplus + +class DECLSPEC_UUID("080d0d78-f421-11d0-a36e-00c04fb950dc") +Pathname; +#endif + +#ifndef __IADsADSystemInfo_INTERFACE_DEFINED__ +#define __IADsADSystemInfo_INTERFACE_DEFINED__ + +/* interface IADsADSystemInfo */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsADSystemInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5BB11929-AFD1-11d2-9CB9-0000F87A369E") + IADsADSystemInfo : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_UserName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ComputerName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SiteName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DomainShortName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DomainDNSName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ForestDNSName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PDCRoleOwner( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SchemaRoleOwner( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_IsNativeMode( + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetAnyDCName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pszDCName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetDCSiteName( + /* [in] */ __RPC__in BSTR szServer, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pszSiteName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE RefreshSchemaCache( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetTrees( + /* [retval][out] */ __RPC__out VARIANT *pvTrees) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsADSystemInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsADSystemInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsADSystemInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsADSystemInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsADSystemInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsADSystemInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsADSystemInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsADSystemInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, get_UserName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserName )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, get_ComputerName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerName )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, get_SiteName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SiteName )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, get_DomainShortName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainShortName )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, get_DomainDNSName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainDNSName )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, get_ForestDNSName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ForestDNSName )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, get_PDCRoleOwner) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PDCRoleOwner )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, get_SchemaRoleOwner) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SchemaRoleOwner )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, get_IsNativeMode) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsNativeMode )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *retval); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, GetAnyDCName) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetAnyDCName )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pszDCName); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, GetDCSiteName) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetDCSiteName )( + __RPC__in IADsADSystemInfo * This, + /* [in] */ __RPC__in BSTR szServer, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pszSiteName); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, RefreshSchemaCache) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RefreshSchemaCache )( + __RPC__in IADsADSystemInfo * This); + + DECLSPEC_XFGVIRT(IADsADSystemInfo, GetTrees) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetTrees )( + __RPC__in IADsADSystemInfo * This, + /* [retval][out] */ __RPC__out VARIANT *pvTrees); + + END_INTERFACE + } IADsADSystemInfoVtbl; + + interface IADsADSystemInfo + { + CONST_VTBL struct IADsADSystemInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsADSystemInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsADSystemInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsADSystemInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsADSystemInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsADSystemInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsADSystemInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsADSystemInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsADSystemInfo_get_UserName(This,retval) \ + ( (This)->lpVtbl -> get_UserName(This,retval) ) + +#define IADsADSystemInfo_get_ComputerName(This,retval) \ + ( (This)->lpVtbl -> get_ComputerName(This,retval) ) + +#define IADsADSystemInfo_get_SiteName(This,retval) \ + ( (This)->lpVtbl -> get_SiteName(This,retval) ) + +#define IADsADSystemInfo_get_DomainShortName(This,retval) \ + ( (This)->lpVtbl -> get_DomainShortName(This,retval) ) + +#define IADsADSystemInfo_get_DomainDNSName(This,retval) \ + ( (This)->lpVtbl -> get_DomainDNSName(This,retval) ) + +#define IADsADSystemInfo_get_ForestDNSName(This,retval) \ + ( (This)->lpVtbl -> get_ForestDNSName(This,retval) ) + +#define IADsADSystemInfo_get_PDCRoleOwner(This,retval) \ + ( (This)->lpVtbl -> get_PDCRoleOwner(This,retval) ) + +#define IADsADSystemInfo_get_SchemaRoleOwner(This,retval) \ + ( (This)->lpVtbl -> get_SchemaRoleOwner(This,retval) ) + +#define IADsADSystemInfo_get_IsNativeMode(This,retval) \ + ( (This)->lpVtbl -> get_IsNativeMode(This,retval) ) + +#define IADsADSystemInfo_GetAnyDCName(This,pszDCName) \ + ( (This)->lpVtbl -> GetAnyDCName(This,pszDCName) ) + +#define IADsADSystemInfo_GetDCSiteName(This,szServer,pszSiteName) \ + ( (This)->lpVtbl -> GetDCSiteName(This,szServer,pszSiteName) ) + +#define IADsADSystemInfo_RefreshSchemaCache(This) \ + ( (This)->lpVtbl -> RefreshSchemaCache(This) ) + +#define IADsADSystemInfo_GetTrees(This,pvTrees) \ + ( (This)->lpVtbl -> GetTrees(This,pvTrees) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsADSystemInfo_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_ADSystemInfo; + +#ifdef __cplusplus + +class DECLSPEC_UUID("50B6327F-AFD1-11d2-9CB9-0000F87A369E") +ADSystemInfo; +#endif + +#ifndef __IADsWinNTSystemInfo_INTERFACE_DEFINED__ +#define __IADsWinNTSystemInfo_INTERFACE_DEFINED__ + +/* interface IADsWinNTSystemInfo */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsWinNTSystemInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6C6D65DC-AFD1-11d2-9CB9-0000F87A369E") + IADsWinNTSystemInfo : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_UserName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ComputerName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DomainName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PDC( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsWinNTSystemInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsWinNTSystemInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsWinNTSystemInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsWinNTSystemInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsWinNTSystemInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsWinNTSystemInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsWinNTSystemInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsWinNTSystemInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsWinNTSystemInfo, get_UserName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserName )( + __RPC__in IADsWinNTSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsWinNTSystemInfo, get_ComputerName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerName )( + __RPC__in IADsWinNTSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsWinNTSystemInfo, get_DomainName) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainName )( + __RPC__in IADsWinNTSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsWinNTSystemInfo, get_PDC) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PDC )( + __RPC__in IADsWinNTSystemInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + END_INTERFACE + } IADsWinNTSystemInfoVtbl; + + interface IADsWinNTSystemInfo + { + CONST_VTBL struct IADsWinNTSystemInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsWinNTSystemInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsWinNTSystemInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsWinNTSystemInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsWinNTSystemInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsWinNTSystemInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsWinNTSystemInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsWinNTSystemInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsWinNTSystemInfo_get_UserName(This,retval) \ + ( (This)->lpVtbl -> get_UserName(This,retval) ) + +#define IADsWinNTSystemInfo_get_ComputerName(This,retval) \ + ( (This)->lpVtbl -> get_ComputerName(This,retval) ) + +#define IADsWinNTSystemInfo_get_DomainName(This,retval) \ + ( (This)->lpVtbl -> get_DomainName(This,retval) ) + +#define IADsWinNTSystemInfo_get_PDC(This,retval) \ + ( (This)->lpVtbl -> get_PDC(This,retval) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsWinNTSystemInfo_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_WinNTSystemInfo; + +#ifdef __cplusplus + +class DECLSPEC_UUID("66182EC4-AFD1-11d2-9CB9-0000F87A369E") +WinNTSystemInfo; +#endif + +#ifndef __IADsDNWithBinary_INTERFACE_DEFINED__ +#define __IADsDNWithBinary_INTERFACE_DEFINED__ + +/* interface IADsDNWithBinary */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsDNWithBinary; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7e99c0a2-f935-11d2-ba96-00c04fb6d0d1") + IADsDNWithBinary : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_BinaryValue( + /* [retval][out] */ __RPC__out VARIANT *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_BinaryValue( + /* [in] */ VARIANT vBinaryValue) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DNString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DNString( + /* [in] */ __RPC__in BSTR bstrDNString) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsDNWithBinaryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsDNWithBinary * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsDNWithBinary * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsDNWithBinary * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsDNWithBinary * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsDNWithBinary * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsDNWithBinary * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsDNWithBinary * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsDNWithBinary, get_BinaryValue) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BinaryValue )( + __RPC__in IADsDNWithBinary * This, + /* [retval][out] */ __RPC__out VARIANT *retval); + + DECLSPEC_XFGVIRT(IADsDNWithBinary, put_BinaryValue) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BinaryValue )( + __RPC__in IADsDNWithBinary * This, + /* [in] */ VARIANT vBinaryValue); + + DECLSPEC_XFGVIRT(IADsDNWithBinary, get_DNString) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DNString )( + __RPC__in IADsDNWithBinary * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsDNWithBinary, put_DNString) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DNString )( + __RPC__in IADsDNWithBinary * This, + /* [in] */ __RPC__in BSTR bstrDNString); + + END_INTERFACE + } IADsDNWithBinaryVtbl; + + interface IADsDNWithBinary + { + CONST_VTBL struct IADsDNWithBinaryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsDNWithBinary_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsDNWithBinary_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsDNWithBinary_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsDNWithBinary_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsDNWithBinary_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsDNWithBinary_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsDNWithBinary_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsDNWithBinary_get_BinaryValue(This,retval) \ + ( (This)->lpVtbl -> get_BinaryValue(This,retval) ) + +#define IADsDNWithBinary_put_BinaryValue(This,vBinaryValue) \ + ( (This)->lpVtbl -> put_BinaryValue(This,vBinaryValue) ) + +#define IADsDNWithBinary_get_DNString(This,retval) \ + ( (This)->lpVtbl -> get_DNString(This,retval) ) + +#define IADsDNWithBinary_put_DNString(This,bstrDNString) \ + ( (This)->lpVtbl -> put_DNString(This,bstrDNString) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsDNWithBinary_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_DNWithBinary; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7e99c0a3-f935-11d2-ba96-00c04fb6d0d1") +DNWithBinary; +#endif + +#ifndef __IADsDNWithString_INTERFACE_DEFINED__ +#define __IADsDNWithString_INTERFACE_DEFINED__ + +/* interface IADsDNWithString */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsDNWithString; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("370df02e-f934-11d2-ba96-00c04fb6d0d1") + IADsDNWithString : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_StringValue( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_StringValue( + /* [in] */ __RPC__in BSTR bstrStringValue) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DNString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DNString( + /* [in] */ __RPC__in BSTR bstrDNString) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsDNWithStringVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsDNWithString * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsDNWithString * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsDNWithString * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsDNWithString * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsDNWithString * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsDNWithString * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsDNWithString * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsDNWithString, get_StringValue) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StringValue )( + __RPC__in IADsDNWithString * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsDNWithString, put_StringValue) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StringValue )( + __RPC__in IADsDNWithString * This, + /* [in] */ __RPC__in BSTR bstrStringValue); + + DECLSPEC_XFGVIRT(IADsDNWithString, get_DNString) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DNString )( + __RPC__in IADsDNWithString * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *retval); + + DECLSPEC_XFGVIRT(IADsDNWithString, put_DNString) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DNString )( + __RPC__in IADsDNWithString * This, + /* [in] */ __RPC__in BSTR bstrDNString); + + END_INTERFACE + } IADsDNWithStringVtbl; + + interface IADsDNWithString + { + CONST_VTBL struct IADsDNWithStringVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsDNWithString_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsDNWithString_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsDNWithString_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsDNWithString_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsDNWithString_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsDNWithString_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsDNWithString_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsDNWithString_get_StringValue(This,retval) \ + ( (This)->lpVtbl -> get_StringValue(This,retval) ) + +#define IADsDNWithString_put_StringValue(This,bstrStringValue) \ + ( (This)->lpVtbl -> put_StringValue(This,bstrStringValue) ) + +#define IADsDNWithString_get_DNString(This,retval) \ + ( (This)->lpVtbl -> get_DNString(This,retval) ) + +#define IADsDNWithString_put_DNString(This,bstrDNString) \ + ( (This)->lpVtbl -> put_DNString(This,bstrDNString) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsDNWithString_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_DNWithString; + +#ifdef __cplusplus + +class DECLSPEC_UUID("334857cc-f934-11d2-ba96-00c04fb6d0d1") +DNWithString; +#endif + +#ifndef __IADsSecurityUtility_INTERFACE_DEFINED__ +#define __IADsSecurityUtility_INTERFACE_DEFINED__ + +/* interface IADsSecurityUtility */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IADsSecurityUtility; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a63251b2-5f21-474b-ab52-4a8efad10895") + IADsSecurityUtility : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetSecurityDescriptor( + /* [in] */ VARIANT varPath, + /* [in] */ long lPathFormat, + /* [in] */ long lFormat, + /* [retval][out] */ __RPC__out VARIANT *pVariant) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetSecurityDescriptor( + /* [in] */ VARIANT varPath, + /* [in] */ long lPathFormat, + /* [in] */ VARIANT varData, + /* [in] */ long lDataFormat) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ConvertSecurityDescriptor( + /* [in] */ VARIANT varSD, + /* [in] */ long lDataFormat, + /* [in] */ long lOutFormat, + /* [retval][out] */ __RPC__out VARIANT *pResult) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_SecurityMask( + /* [retval][out] */ __RPC__out long *retval) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SecurityMask( + /* [in] */ long lnSecurityMask) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IADsSecurityUtilityVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IADsSecurityUtility * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IADsSecurityUtility * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IADsSecurityUtility * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IADsSecurityUtility * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IADsSecurityUtility * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IADsSecurityUtility * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IADsSecurityUtility * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IADsSecurityUtility, GetSecurityDescriptor) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityDescriptor )( + __RPC__in IADsSecurityUtility * This, + /* [in] */ VARIANT varPath, + /* [in] */ long lPathFormat, + /* [in] */ long lFormat, + /* [retval][out] */ __RPC__out VARIANT *pVariant); + + DECLSPEC_XFGVIRT(IADsSecurityUtility, SetSecurityDescriptor) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurityDescriptor )( + __RPC__in IADsSecurityUtility * This, + /* [in] */ VARIANT varPath, + /* [in] */ long lPathFormat, + /* [in] */ VARIANT varData, + /* [in] */ long lDataFormat); + + DECLSPEC_XFGVIRT(IADsSecurityUtility, ConvertSecurityDescriptor) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ConvertSecurityDescriptor )( + __RPC__in IADsSecurityUtility * This, + /* [in] */ VARIANT varSD, + /* [in] */ long lDataFormat, + /* [in] */ long lOutFormat, + /* [retval][out] */ __RPC__out VARIANT *pResult); + + DECLSPEC_XFGVIRT(IADsSecurityUtility, get_SecurityMask) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SecurityMask )( + __RPC__in IADsSecurityUtility * This, + /* [retval][out] */ __RPC__out long *retval); + + DECLSPEC_XFGVIRT(IADsSecurityUtility, put_SecurityMask) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SecurityMask )( + __RPC__in IADsSecurityUtility * This, + /* [in] */ long lnSecurityMask); + + END_INTERFACE + } IADsSecurityUtilityVtbl; + + interface IADsSecurityUtility + { + CONST_VTBL struct IADsSecurityUtilityVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IADsSecurityUtility_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IADsSecurityUtility_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IADsSecurityUtility_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IADsSecurityUtility_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IADsSecurityUtility_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IADsSecurityUtility_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IADsSecurityUtility_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IADsSecurityUtility_GetSecurityDescriptor(This,varPath,lPathFormat,lFormat,pVariant) \ + ( (This)->lpVtbl -> GetSecurityDescriptor(This,varPath,lPathFormat,lFormat,pVariant) ) + +#define IADsSecurityUtility_SetSecurityDescriptor(This,varPath,lPathFormat,varData,lDataFormat) \ + ( (This)->lpVtbl -> SetSecurityDescriptor(This,varPath,lPathFormat,varData,lDataFormat) ) + +#define IADsSecurityUtility_ConvertSecurityDescriptor(This,varSD,lDataFormat,lOutFormat,pResult) \ + ( (This)->lpVtbl -> ConvertSecurityDescriptor(This,varSD,lDataFormat,lOutFormat,pResult) ) + +#define IADsSecurityUtility_get_SecurityMask(This,retval) \ + ( (This)->lpVtbl -> get_SecurityMask(This,retval) ) + +#define IADsSecurityUtility_put_SecurityMask(This,lnSecurityMask) \ + ( (This)->lpVtbl -> put_SecurityMask(This,lnSecurityMask) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IADsSecurityUtility_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_ADsSecurityUtility; + +#ifdef __cplusplus + +class DECLSPEC_UUID("f270c64a-ffb8-4ae4-85fe-3a75e5347966") +ADsSecurityUtility; +#endif +#endif /* __ActiveDs_LIBRARY_DEFINED__ */ + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Icm.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Icm.h new file mode 100644 index 0000000000000000000000000000000000000000..ef3616f6152e625cd70410ea0b791a2fa384487d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Icm.h @@ -0,0 +1,1541 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + icm.h + +Abstract: + + Public header file for Image Color Management + +Revision History: + +--*/ + +#ifndef _ICM_H_ +#define _ICM_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Modern Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Support for named color profiles +// + +typedef char COLOR_NAME[32]; +typedef COLOR_NAME *PCOLOR_NAME, *LPCOLOR_NAME; + +typedef struct tagNAMED_PROFILE_INFO{ + DWORD dwFlags; + DWORD dwCount; + DWORD dwCountDevCoordinates; + COLOR_NAME szPrefix; + COLOR_NAME szSuffix; +} NAMED_PROFILE_INFO; +typedef NAMED_PROFILE_INFO *PNAMED_PROFILE_INFO, *LPNAMED_PROFILE_INFO; + + +// +// Color spaces +// +// The following color spaces are supported. +// Gray, RGB, CMYK, XYZ, Yxy, Lab, generic 3 channel color spaces where +// the profiles defines how to interpret the 3 channels, named color spaces +// which can either be indices into the space or have color names, and +// multichannel spaces with 1 byte per channel up to MAX_COLOR_CHANNELS. +// + +#define MAX_COLOR_CHANNELS 8 // maximum number of HiFi color channels + +struct GRAYCOLOR { + WORD gray; +}; + +struct RGBCOLOR { + WORD red; + WORD green; + WORD blue; +}; + +struct CMYKCOLOR { + WORD cyan; + WORD magenta; + WORD yellow; + WORD black; +}; + +struct XYZCOLOR { + WORD X; + WORD Y; + WORD Z; +}; + +struct YxyCOLOR { + WORD Y; + WORD x; + WORD y; +}; + +struct LabCOLOR { + WORD L; + WORD a; + WORD b; +}; + +struct GENERIC3CHANNEL { + WORD ch1; + WORD ch2; + WORD ch3; +}; + +struct NAMEDCOLOR { + DWORD dwIndex; +}; + +struct HiFiCOLOR { + BYTE channel[MAX_COLOR_CHANNELS]; +}; + +#if _MSC_VER > 1200 +#pragma warning(push) +#pragma warning(disable:4201) // nameless struct/union +#endif + +typedef union tagCOLOR { + struct GRAYCOLOR gray; + struct RGBCOLOR rgb; + struct CMYKCOLOR cmyk; + struct XYZCOLOR XYZ; + struct YxyCOLOR Yxy; + struct LabCOLOR Lab; + struct GENERIC3CHANNEL gen3ch; + struct NAMEDCOLOR named; + struct HiFiCOLOR hifi; + + struct { // alignment padding. + DWORD reserved1; + VOID *reserved2; + }; + +} COLOR; +typedef COLOR *PCOLOR, *LPCOLOR; + +#if _MSC_VER > 1200 +#pragma warning(pop) +#endif + +typedef enum { + COLOR_GRAY = 1, + COLOR_RGB, + COLOR_XYZ, + COLOR_Yxy, + COLOR_Lab, + COLOR_3_CHANNEL, // WORD per channel + COLOR_CMYK, + COLOR_5_CHANNEL, // BYTE per channel + COLOR_6_CHANNEL, // - do - + COLOR_7_CHANNEL, // - do - + COLOR_8_CHANNEL, // - do - + COLOR_NAMED, +} COLORTYPE; +typedef COLORTYPE *PCOLORTYPE, *LPCOLORTYPE; + +// +// Rendering Intents +// +// + INTENT_PERCEPTUAL = LCS_GM_IMAGES for LOGCOLORSPACE +// = DMICM_CONTRAST for DEVMODE +// = "Pictures" for SetupColorMathing/Printer UI +// +// + INTENT_RELATIVE_COLORIMETRIC = LCS_GM_GRAPHICS for LOGCOLORSPACE +// = DMICM_COLORIMETRIC for DEVMODE +// = "Proof" for SetupColorMatching/Printer UI +// +// + INTENT_SATURATION = LCS_GM_BUSINESS for LOGCOLORSPACE +// = DMICM_SATURATE for DEVMODE +// = "Graphics" for SetupColorMatching/Printer UI +// +// + INTENT_ABSOLUTE_COLORIMETRIC = LCS_GM_ABS_COLORIMETRIC for LOGCOLORSPACE +// = DMICM_ABS_COLORIMETRIC for DEVMODE +// = "Match" for SetupColorMatching/Printer UI +// + +#define INTENT_PERCEPTUAL 0 +#define INTENT_RELATIVE_COLORIMETRIC 1 +#define INTENT_SATURATION 2 +#define INTENT_ABSOLUTE_COLORIMETRIC 3 + +#if NTDDI_VERSION >= NTDDI_VISTA + +typedef enum { + CPT_ICC, + CPT_DMP, + CPT_CAMP, + CPT_GMMP +} COLORPROFILETYPE; +typedef COLORPROFILETYPE *PCOLORPROFILETYPE, *LPCOLORPROFILETYPE; + +typedef enum { + + // intent + CPST_PERCEPTUAL = INTENT_PERCEPTUAL, + CPST_RELATIVE_COLORIMETRIC = INTENT_RELATIVE_COLORIMETRIC, + CPST_SATURATION = INTENT_SATURATION, + CPST_ABSOLUTE_COLORIMETRIC = INTENT_ABSOLUTE_COLORIMETRIC, + + // working space + CPST_NONE, + CPST_RGB_WORKING_SPACE, + CPST_CUSTOM_WORKING_SPACE, + + // advanced color aware + CPST_STANDARD_DISPLAY_COLOR_MODE, + CPST_EXTENDED_DISPLAY_COLOR_MODE + +} COLORPROFILESUBTYPE; +typedef COLORPROFILESUBTYPE *PCOLORPROFILESUBTYPE, *LPCOLORPROFILESUBTYPE; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// Device color data type +// +typedef enum { + COLOR_BYTE = 1, // BYTE per channel. data range [0, 255] + COLOR_WORD, // WORD per channel. data range [0, 65535] + COLOR_FLOAT, // FLOAT per channel. IEEE 32-bit floating point + COLOR_S2DOT13FIXED, // WORD per channel. data range [-4, +4] using s2.13 + +//#if NTDDI_VERSION >= NTDDI_WIN7 + COLOR_10b_R10G10B10A2, // Packed WORD per channel. data range [0, 1] + COLOR_10b_R10G10B10A2_XR, // Packed extended range WORD per channel. data range [-1, 3] + // using 4.0 scale and -1.0 bias. + COLOR_FLOAT16 // FLOAT16 per channel. +//#endif //NTDDI_VERSION >= NTDDI_WIN7 + +} COLORDATATYPE; +typedef COLORDATATYPE *PCOLORDATATYPE, *LPCOLORDATATYPE; + +#endif // NTDDI_VERSION >= NTDDI_VISTA + +// +// Bitmap formats supported +// + +typedef enum { + + // + // 16bpp - 5 bits per channel. The most significant bit is ignored. + // + + BM_x555RGB = 0x0000, + BM_x555XYZ = 0x0101, + BM_x555Yxy, + BM_x555Lab, + BM_x555G3CH, + + // + // Packed 8 bits per channel => 8bpp for GRAY and + // 24bpp for the 3 channel colors, more for hifi channels + // + + BM_RGBTRIPLETS = 0x0002, + BM_BGRTRIPLETS = 0x0004, + BM_XYZTRIPLETS = 0x0201, + BM_YxyTRIPLETS, + BM_LabTRIPLETS, + BM_G3CHTRIPLETS, + BM_5CHANNEL, + BM_6CHANNEL, + BM_7CHANNEL, + BM_8CHANNEL, + BM_GRAY, + + // + // 32bpp - 8 bits per channel. The most significant byte is ignored + // for the 3 channel colors. + // + + BM_xRGBQUADS = 0x0008, + BM_xBGRQUADS = 0x0010, + BM_xG3CHQUADS = 0x0304, + BM_KYMCQUADS, + BM_CMYKQUADS = 0x0020, + + // + // 32bpp - 10 bits per channel. The 2 most significant bits are ignored. + // + + BM_10b_RGB = 0x0009, + BM_10b_XYZ = 0x0401, + BM_10b_Yxy, + BM_10b_Lab, + BM_10b_G3CH, + + // + // 32bpp - named color indices (1-based) + // + + BM_NAMED_INDEX, + + // + // Packed 16 bits per channel => 16bpp for GRAY and + // 48bpp for the 3 channel colors. + // + + BM_16b_RGB = 0x000A, + BM_16b_XYZ = 0x0501, + BM_16b_Yxy, + BM_16b_Lab, + BM_16b_G3CH, + BM_16b_GRAY, + + // + // 16 bpp - 5 bits for Red & Blue, 6 bits for Green + // + + BM_565RGB = 0x0001, + +//#if NTDDI_VERSION >= NTDDI_VISTA + // + // scRGB - 32 bits per channel floating point + // 16 bits per channel floating point + // + + BM_32b_scRGB = 0x0601, + BM_32b_scARGB = 0x0602, + BM_S2DOT13FIXED_scRGB = 0x0603, + BM_S2DOT13FIXED_scARGB = 0x0604, +//#endif // NTDDI_VERSION >= NTDDI_VISTA + +//#if NTDDI_VERSION >= NTDDI_WIN7 + BM_R10G10B10A2 = 0x0701, + BM_R10G10B10A2_XR = 0x0702, + BM_R16G16B16A16_FLOAT = 0x0703 +//#endif // NTDDI_VERSION >= NTDDI_WIN7 + +} BMFORMAT; +typedef BMFORMAT *PBMFORMAT, *LPBMFORMAT; + +// +// Callback function definition +// + +typedef BOOL (WINAPI *PBMCALLBACKFN)(ULONG, ULONG, LPARAM); +typedef PBMCALLBACKFN LPBMCALLBACKFN; + +// +// ICC profile header +// + +typedef struct tagPROFILEHEADER { + DWORD phSize; // profile size in bytes + DWORD phCMMType; // CMM for this profile + DWORD phVersion; // profile format version number + DWORD phClass; // type of profile + DWORD phDataColorSpace; // color space of data + DWORD phConnectionSpace; // PCS + DWORD phDateTime[3]; // date profile was created + DWORD phSignature; // magic number + DWORD phPlatform; // primary platform + DWORD phProfileFlags; // various bit settings + DWORD phManufacturer; // device manufacturer + DWORD phModel; // device model number + DWORD phAttributes[2]; // device attributes + DWORD phRenderingIntent; // rendering intent + CIEXYZ phIlluminant; // profile illuminant + DWORD phCreator; // profile creator + BYTE phReserved[44]; // reserved for future use +} PROFILEHEADER; +typedef PROFILEHEADER *PPROFILEHEADER, *LPPROFILEHEADER; + +// +// Profile class values +// + +#define CLASS_MONITOR 'mntr' +#define CLASS_PRINTER 'prtr' +#define CLASS_SCANNER 'scnr' +#define CLASS_LINK 'link' +#define CLASS_ABSTRACT 'abst' +#define CLASS_COLORSPACE 'spac' +#define CLASS_NAMED 'nmcl' +#if NTDDI_VERSION >= NTDDI_VISTA +#define CLASS_CAMP 'camp' +#define CLASS_GMMP 'gmmp' +#endif // NTDDI_VERSION >= NTDDI_VISTA + +// +// Color space values +// + +#define SPACE_XYZ 'XYZ ' +#define SPACE_Lab 'Lab ' +#define SPACE_Luv 'Luv ' +#define SPACE_YCbCr 'YCbr' +#define SPACE_Yxy 'Yxy ' +#define SPACE_RGB 'RGB ' +#define SPACE_GRAY 'GRAY' +#define SPACE_HSV 'HSV ' +#define SPACE_HLS 'HLS ' +#define SPACE_CMYK 'CMYK' +#define SPACE_CMY 'CMY ' +#define SPACE_2_CHANNEL '2CLR' +#define SPACE_3_CHANNEL '3CLR' +#define SPACE_4_CHANNEL '4CLR' +#define SPACE_5_CHANNEL '5CLR' +#define SPACE_6_CHANNEL '6CLR' +#define SPACE_7_CHANNEL '7CLR' +#define SPACE_8_CHANNEL '8CLR' + +// +// Profile flag bitfield values +// + +#define FLAG_EMBEDDEDPROFILE 0x00000001 +#define FLAG_DEPENDENTONDATA 0x00000002 + +// +// Profile flag bits for vendor extensions (bytes 44..45 of the ICC profile header). +// + +#if NTDDI_VERSION >= NTDDI_VISTA + +// +// Enable support for chromatic adaptation. +// +#define FLAG_ENABLE_CHROMATIC_ADAPTATION 0x02000000 + +#endif // NTDDI_VERSION >= NTDDI_VISTA + +// +// Profile attributes bitfield values +// + +#define ATTRIB_TRANSPARENCY 0x00000001 +#define ATTRIB_MATTE 0x00000002 + +// +// Profile data structure +// + +typedef struct tagPROFILE { + DWORD dwType; // profile type + PVOID pProfileData; // filename or buffer containing profile + DWORD cbDataSize; // size of profile data +} PROFILE; +typedef PROFILE *PPROFILE, *LPPROFILE; + + +// +// Profile types to be used in the PROFILE structure +// + +#define PROFILE_FILENAME 1 // profile data is NULL terminated filename +#define PROFILE_MEMBUFFER 2 // profile data is a buffer containing + // the profile +// +// Desired access mode for opening profiles +// + +#define PROFILE_READ 1 // opened for read access +#define PROFILE_READWRITE 2 // opened for read and write access + +// +// Handles returned to applications +// + +typedef HANDLE HPROFILE; // handle to profile object +typedef HPROFILE *PHPROFILE; +typedef HANDLE HTRANSFORM; // handle to color transform object + +// +// CMM selection for CreateMultiProfileTransform and SelectCMM. +// + +#define INDEX_DONT_CARE 0 + +#define CMM_FROM_PROFILE INDEX_DONT_CARE // Use CMM specified in profile. +#define CMM_WINDOWS_DEFAULT 'Win ' // Use Windows default CMM always. + +// +// Tags found in ICC profiles +// + +typedef DWORD TAGTYPE; +typedef TAGTYPE *PTAGTYPE, *LPTAGTYPE; + +// +// Profile enumeration data structure +// + +#define ENUM_TYPE_VERSION 0x0300 + +typedef struct tagENUMTYPEA { + DWORD dwSize; // structure size + DWORD dwVersion; // structure version + DWORD dwFields; // bit fields + PCSTR pDeviceName; // device friendly name + DWORD dwMediaType; // media type + DWORD dwDitheringMode; // dithering mode + DWORD dwResolution[2]; // x and y resolutions + DWORD dwCMMType; // cmm ID + DWORD dwClass; // profile class + DWORD dwDataColorSpace; // color space of data + DWORD dwConnectionSpace; // pcs + DWORD dwSignature; // magic number + DWORD dwPlatform; // primary platform + DWORD dwProfileFlags; // various bit settings in profile + DWORD dwManufacturer; // manufacturer ID + DWORD dwModel; // model ID + DWORD dwAttributes[2]; // device attributes + DWORD dwRenderingIntent; // rendering intent + DWORD dwCreator; // profile creator + DWORD dwDeviceClass; // device class +} ENUMTYPEA, *PENUMTYPEA, *LPENUMTYPEA; + + +typedef struct tagENUMTYPEW { + DWORD dwSize; // structure size + DWORD dwVersion; // structure version + DWORD dwFields; // bit fields + PCWSTR pDeviceName; // device friendly name + DWORD dwMediaType; // media type + DWORD dwDitheringMode; // dithering mode + DWORD dwResolution[2]; // x and y resolutions + DWORD dwCMMType; // cmm ID + DWORD dwClass; // profile class + DWORD dwDataColorSpace; // color space of data + DWORD dwConnectionSpace; // pcs + DWORD dwSignature; // magic number + DWORD dwPlatform; // primary platform + DWORD dwProfileFlags; // various bit settings in profile + DWORD dwManufacturer; // manufacturer ID + DWORD dwModel; // model ID + DWORD dwAttributes[2]; // device attributes + DWORD dwRenderingIntent; // rendering intent + DWORD dwCreator; // profile creator + DWORD dwDeviceClass; // device class +} ENUMTYPEW, *PENUMTYPEW, *LPENUMTYPEW; + +// +// Bitfields for enumeration record above +// + +#define ET_DEVICENAME 0x00000001 +#define ET_MEDIATYPE 0x00000002 +#define ET_DITHERMODE 0x00000004 +#define ET_RESOLUTION 0x00000008 +#define ET_CMMTYPE 0x00000010 +#define ET_CLASS 0x00000020 +#define ET_DATACOLORSPACE 0x00000040 +#define ET_CONNECTIONSPACE 0x00000080 +#define ET_SIGNATURE 0x00000100 +#define ET_PLATFORM 0x00000200 +#define ET_PROFILEFLAGS 0x00000400 +#define ET_MANUFACTURER 0x00000800 +#define ET_MODEL 0x00001000 +#define ET_ATTRIBUTES 0x00002000 +#define ET_RENDERINGINTENT 0x00004000 +#define ET_CREATOR 0x00008000 +#define ET_DEVICECLASS 0x00010000 +#define ET_STANDARDDISPLAYCOLOR 0x00020000 +#define ET_EXTENDEDDISPLAYCOLOR 0x00040000 + +#if NTDDI_VERSION >= NTDDI_VISTA + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Modern Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +// +// WCS profile management scope - system-wide and current-user +// + +typedef enum +{ + WCS_PROFILE_MANAGEMENT_SCOPE_SYSTEM_WIDE, + WCS_PROFILE_MANAGEMENT_SCOPE_CURRENT_USER +} WCS_PROFILE_MANAGEMENT_SCOPE; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#endif // NTDDI_VERSION >= NTDDI_VISTA + +// +// Flags for creating color transforms +// + +#define PROOF_MODE 0x00000001 +#define NORMAL_MODE 0x00000002 +#define BEST_MODE 0x00000003 +#define ENABLE_GAMUT_CHECKING 0x00010000 +#define USE_RELATIVE_COLORIMETRIC 0x00020000 +#define FAST_TRANSLATE 0x00040000 +#if NTDDI_VERSION >= NTDDI_VISTA +#define PRESERVEBLACK 0x00100000 +#define WCS_ALWAYS 0x00200000 +#define SEQUENTIAL_TRANSFORM 0x80800000 +#endif // NTDDI_VERSION >= NTDDI_VISTA +#define RESERVED 0x80000000 + +// +// Parameter for GetPS2ColorSpaceArray +// + +#define CSA_A 1 +#define CSA_ABC 2 +#define CSA_DEF 3 +#define CSA_DEFG 4 +#define CSA_GRAY 5 +#define CSA_RGB 6 +#define CSA_CMYK 7 +#define CSA_Lab 8 + +// +// Parameter for CMGetInfo() +// + +#define CMM_WIN_VERSION 0 +#define CMM_IDENT 1 +#define CMM_DRIVER_VERSION 2 +#define CMM_DLL_VERSION 3 +#define CMM_VERSION 4 +#define CMM_DESCRIPTION 5 +#define CMM_LOGOICON 6 + +// +// Parameter for CMTranslateRGBs() +// + +#define CMS_FORWARD 0 +#define CMS_BACKWARD 1 + +// +// Constants for SetupColorMatching() +// + +#define COLOR_MATCH_VERSION 0x0200 + +// +// Constants for flags +// + +#define CMS_DISABLEICM 1 // Disable color matching +#define CMS_ENABLEPROOFING 2 // Enable proofing + +#define CMS_SETRENDERINTENT 4 // Use passed in value +#define CMS_SETPROOFINTENT 8 +#define CMS_SETMONITORPROFILE 0x10 // Use passed in profile name initially +#define CMS_SETPRINTERPROFILE 0x20 +#define CMS_SETTARGETPROFILE 0x40 + +#define CMS_USEHOOK 0x80 // Use hook procedure in lpfnHook +#define CMS_USEAPPLYCALLBACK 0x100 // Use callback procedure when applied +#define CMS_USEDESCRIPTION 0x200 // Use profile description in UI + // (default is filename) + +#define CMS_DISABLEINTENT 0x400 // Disable intent selection (render & proofing) always +#define CMS_DISABLERENDERINTENT 0x800 // Disable rendering intent selection while in proofing mode + // Only proofing intent selection is enabled. + +// +// Used to denote too-small buffers (output only) +// + +#define CMS_MONITOROVERFLOW 0x80000000L +#define CMS_PRINTEROVERFLOW 0x40000000L +#define CMS_TARGETOVERFLOW 0x20000000L + +// +// Structures (both ANSI and Unicode) +// +struct _tagCOLORMATCHSETUPW; +struct _tagCOLORMATCHSETUPA; + +typedef BOOL (WINAPI *PCMSCALLBACKW)(struct _tagCOLORMATCHSETUPW *,LPARAM); +typedef BOOL (WINAPI *PCMSCALLBACKA)(struct _tagCOLORMATCHSETUPA *,LPARAM); + +typedef struct _tagCOLORMATCHSETUPW { + + DWORD dwSize; // Size of structure in bytes + DWORD dwVersion; // Set to COLOR_MATCH_VERSION + + DWORD dwFlags; // See constants listed previously + HWND hwndOwner; // Window handle of owner + + PCWSTR pSourceName; // Name of Image Source, defaults to "sRGB Color Space" + PCWSTR pDisplayName; // If null, defaults to first enumerated monitor + PCWSTR pPrinterName; // If null, defaults to default printer. + + DWORD dwRenderIntent; // Rendering Intent + DWORD dwProofingIntent; // Rendering Intent for Proofing + + PWSTR pMonitorProfile; // Monitor profile name + DWORD ccMonitorProfile; // Size of above in characters + + PWSTR pPrinterProfile; // Printer profile name + DWORD ccPrinterProfile; // Size of above in characters + + PWSTR pTargetProfile; // Target profile name + DWORD ccTargetProfile; // Size of above in characters + + DLGPROC lpfnHook; // Hook Procedure address + LPARAM lParam; // Given to hook procedure at WM_INITDIALOG + + PCMSCALLBACKW lpfnApplyCallback; // Callback Procedure address when apply is pushed + LPARAM lParamApplyCallback; // Given to callback Procedure for apply + +} COLORMATCHSETUPW, *PCOLORMATCHSETUPW, *LPCOLORMATCHSETUPW; + +typedef struct _tagCOLORMATCHSETUPA { + + DWORD dwSize; // Size of structure in bytes + DWORD dwVersion; // Set to COLOR_MATCH_VERSION + + DWORD dwFlags; // See constants listed previously + HWND hwndOwner; // Window handle of owner + + PCSTR pSourceName; // Name of Image Source, defaults to "This Document" + PCSTR pDisplayName; // If null, defaults to first enumerated monitor + PCSTR pPrinterName; // If null, defaults to default printer. + + DWORD dwRenderIntent; // Rendering Intent + DWORD dwProofingIntent; // Rendering Intent for Proofing + + PSTR pMonitorProfile; // Monitor profile name + DWORD ccMonitorProfile; // Size of above in characters + + PSTR pPrinterProfile; // Printer profile name + DWORD ccPrinterProfile; // Size of above in characters + + PSTR pTargetProfile; // Target profile name + DWORD ccTargetProfile; // Size of above in characters + + DLGPROC lpfnHook; // Hook Procedure address + LPARAM lParam; // Given to hook procedure at WM_INITDIALOG + + PCMSCALLBACKA lpfnApplyCallback; // Callback Procedure address when apply is pushed + LPARAM lParamApplyCallback; // Given to callback Procedure for apply + +} COLORMATCHSETUPA, *PCOLORMATCHSETUPA, *LPCOLORMATCHSETUPA; + +// +// Windows API definitions +// + +HPROFILE WINAPI OpenColorProfileA(_In_ PPROFILE pProfile, DWORD dwDesiredAccess, DWORD dwShareMode, DWORD dwCreationMode); +HPROFILE WINAPI OpenColorProfileW(_In_ PPROFILE pProfile, DWORD dwDesiredAccess, DWORD dwShareMode, DWORD dwCreationMode); +BOOL WINAPI CloseColorProfile(_In_opt_ HPROFILE hProfile); +BOOL WINAPI GetColorProfileFromHandle(_In_ HPROFILE hProfile, _Out_writes_bytes_opt_(*pcbProfile) PBYTE pProfile, _Inout_ PDWORD pcbProfile); +BOOL WINAPI IsColorProfileValid(_In_ HPROFILE hProfile, _Out_ PBOOL pbValid); +BOOL WINAPI CreateProfileFromLogColorSpaceA(_In_ LPLOGCOLORSPACEA pLogColorSpace, _Outptr_result_buffer_(_Inexpressible_(GlobalSize(*pProfile))) PBYTE* pProfile); +BOOL WINAPI CreateProfileFromLogColorSpaceW(_In_ LPLOGCOLORSPACEW pLogColorSpace, _Outptr_result_buffer_(_Inexpressible_(GlobalSize(*pProfile))) PBYTE* pProfile); +BOOL WINAPI GetCountColorProfileElements(_In_ HPROFILE hProfile, _Out_ PDWORD pnElementCount); +BOOL WINAPI GetColorProfileHeader(_In_ HPROFILE hProfile, _Out_ PPROFILEHEADER pHeader); +BOOL WINAPI GetColorProfileElementTag(_In_ HPROFILE hProfile, DWORD dwIndex, _Out_ PTAGTYPE pTag); +BOOL WINAPI IsColorProfileTagPresent(_In_ HPROFILE hProfile, TAGTYPE tag, _Out_ PBOOL pbPresent); +BOOL WINAPI GetColorProfileElement(_In_ HPROFILE hProfile, TAGTYPE tag, DWORD dwOffset, _Inout_ PDWORD pcbElement, _Out_writes_bytes_opt_(*pcbElement) PVOID pElement, _Out_ PBOOL pbReference); +BOOL WINAPI SetColorProfileHeader(_In_ HPROFILE hProfile, _In_reads_bytes_(sizeof(PROFILEHEADER)) PPROFILEHEADER pHeader); +BOOL WINAPI SetColorProfileElementSize(_In_ HPROFILE hProfile, TAGTYPE tagType, DWORD pcbElement); +BOOL WINAPI SetColorProfileElement(_In_ HPROFILE hProfile, TAGTYPE tag, DWORD dwOffset, _In_ PDWORD pcbElement, _In_reads_(*pcbElement) PVOID pElement); +BOOL WINAPI SetColorProfileElementReference(_In_ HPROFILE hProfile, TAGTYPE newTag, TAGTYPE refTag); +BOOL WINAPI GetPS2ColorSpaceArray(_In_ HPROFILE hProfile, DWORD dwIntent, DWORD dwCSAType, _Out_writes_bytes_opt_(*pcbPS2ColorSpaceArray) PBYTE pPS2ColorSpaceArray, _Inout_ PDWORD pcbPS2ColorSpaceArray, _Out_ PBOOL pbBinary); +BOOL WINAPI GetPS2ColorRenderingIntent(_In_ HPROFILE hProfile, DWORD dwIntent, _Out_writes_bytes_opt_(*pcbPS2ColorRenderingIntent) PBYTE pBuffer, _Inout_ PDWORD pcbPS2ColorRenderingIntent); +BOOL WINAPI GetPS2ColorRenderingDictionary(_In_ HPROFILE hProfile, DWORD dwIntent, _Out_writes_bytes_opt_(*pcbPS2ColorRenderingDictionary) PBYTE pPS2ColorRenderingDictionary, _Inout_ PDWORD pcbPS2ColorRenderingDictionary, _Inout_ PBOOL pbBinary); +BOOL WINAPI GetNamedProfileInfo(_In_ HPROFILE hProfile, _Inout_updates_bytes_(sizeof(NAMED_PROFILE_INFO)) PNAMED_PROFILE_INFO pNamedProfileInfo); +BOOL WINAPI ConvertColorNameToIndex(_In_ HPROFILE hProfile, _In_reads_(dwCount) PCOLOR_NAME paColorName, _Out_writes_(dwCount) PDWORD paIndex, DWORD dwCount); +BOOL WINAPI ConvertIndexToColorName(_In_ HPROFILE hProfile, _In_reads_(dwCount) PDWORD paIndex, _Out_writes_(dwCount) PCOLOR_NAME paColorName, DWORD dwCount); +BOOL WINAPI CreateDeviceLinkProfile(_In_reads_(nProfiles) PHPROFILE hProfile, DWORD nProfiles, _In_reads_(nIntents) PDWORD padwIntent, DWORD nIntents, DWORD dwFlags, _Outptr_result_buffer_(_Inexpressible_(GlobalSize(*pProfileData))) PBYTE* pProfileData, DWORD indexPreferredCMM); +HTRANSFORM WINAPI CreateColorTransformA(_In_ LPLOGCOLORSPACEA pLogColorSpace, _In_ HPROFILE hDestProfile, _In_ HPROFILE hTargetProfile, DWORD dwFlags); +HTRANSFORM WINAPI CreateColorTransformW(_In_ LPLOGCOLORSPACEW pLogColorSpace, _In_ HPROFILE hDestProfile, _In_ HPROFILE hTargetProfile, DWORD dwFlags); +HTRANSFORM WINAPI CreateMultiProfileTransform(_In_reads_(nProfiles) PHPROFILE pahProfiles, DWORD nProfiles, _In_reads_(nIntents) PDWORD padwIntent, DWORD nIntents, DWORD dwFlags, DWORD indexPreferredCMM); +BOOL WINAPI DeleteColorTransform(_Inout_ HTRANSFORM hxform); +BOOL WINAPI TranslateBitmapBits(_In_ HTRANSFORM hColorTransform, _In_ PVOID pSrcBits, BMFORMAT bmInput, DWORD dwWidth, DWORD dwHeight, DWORD dwInputStride, _Out_ PVOID pDestBits, BMFORMAT bmOutput, DWORD dwOutputStride, _In_opt_ __callback PBMCALLBACKFN pfnCallBack, _In_opt_ LPARAM ulCallbackData); +BOOL WINAPI CheckBitmapBits(_In_ HTRANSFORM hColorTransform, _In_ PVOID pSrcBits, BMFORMAT bmInput, DWORD dwWidth, DWORD dwHeight, DWORD dwStride, _Out_writes_(dwWidth * dwHeight) PBYTE paResult, _In_opt_ __callback PBMCALLBACKFN pfnCallback, _In_opt_ LPARAM lpCallbackData); +BOOL WINAPI TranslateColors(_In_ HTRANSFORM hColorTransform, _In_reads_(nColors) PCOLOR paInputColors, DWORD nColors, COLORTYPE ctInput, _Out_writes_(nColors) PCOLOR paOutputColors, COLORTYPE ctOutput); +BOOL WINAPI CheckColors(_In_ HTRANSFORM hColorTransform, _In_reads_(nColors) PCOLOR paInputColors, DWORD nColors, COLORTYPE ctInput, _Out_writes_(nColors) PBYTE paResult); +DWORD WINAPI GetCMMInfo(_In_ HTRANSFORM hColorTransform, _In_ DWORD); +BOOL WINAPI RegisterCMMA(_In_opt_ PCSTR pMachineName, _In_ DWORD cmmID, _In_ PCSTR pCMMdll); +BOOL WINAPI RegisterCMMW(_In_opt_ PCWSTR pMachineName, _In_ DWORD cmmID, _In_ PCWSTR pCMMdll); +BOOL WINAPI UnregisterCMMA(_In_opt_ PCSTR pMachineName, _In_ DWORD cmmID); +BOOL WINAPI UnregisterCMMW(_In_opt_ PCWSTR pMachineName, _In_ DWORD cmmID); +BOOL WINAPI SelectCMM(DWORD dwCMMType); + +#ifndef BUILD_WINDOWS +__declspec(deprecated("GetColorDirectoryW is deprecated and might not work on all platforms. For more info, see MSDN.")) +#endif +BOOL +WINAPI +GetColorDirectoryA( + _In_opt_ PCSTR pMachineName, + _Out_writes_bytes_to_opt_(*pdwSize, *pdwSize) PSTR pBuffer, + _Inout_ PDWORD pdwSize + ); + +#ifndef BUILD_WINDOWS +__declspec(deprecated("GetColorDirectoryA is deprecated and might not work on all platforms. For more info, see MSDN.")) +#endif +BOOL +WINAPI +GetColorDirectoryW( + _In_opt_ PCWSTR pMachineName, + _Out_writes_bytes_to_opt_(*pdwSize, *pdwSize) PWSTR pBuffer, + _Inout_ PDWORD pdwSize + ); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Modern Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +BOOL WINAPI InstallColorProfileA(_In_opt_ PCSTR pMachineName, _In_ PCSTR pProfileName); +BOOL WINAPI InstallColorProfileW(_In_opt_ PCWSTR pMachineName, _In_ PCWSTR pProfileName); + +#ifdef UNICODE +#define InstallColorProfile InstallColorProfileW +#else +#define InstallColorProfile InstallColorProfileA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +BOOL WINAPI UninstallColorProfileA(_In_opt_ PCSTR pMachineName, _In_ PCSTR pProfileName, BOOL bDelete); +BOOL WINAPI UninstallColorProfileW(_In_opt_ PCWSTR pMachineName, _In_ PCWSTR pProfileName, BOOL bDelete); +BOOL WINAPI EnumColorProfilesA(_In_opt_ PCSTR pMachineName, _In_ PENUMTYPEA pEnumRecord, _Out_writes_bytes_opt_(*pdwSizeOfEnumerationBuffer) PBYTE pEnumerationBuffer, _Inout_ PDWORD pdwSizeOfEnumerationBuffer, _Out_opt_ PDWORD pnProfiles); +BOOL WINAPI EnumColorProfilesW(_In_opt_ PCWSTR pMachineName, _In_ PENUMTYPEW pEnumRecord, _Out_writes_bytes_opt_(*pdwSizeOfEnumerationBuffer) PBYTE pEnumerationBuffer, _Inout_ PDWORD pdwSizeOfEnumerationBuffer, _Out_opt_ PDWORD pnProfiles); +BOOL WINAPI SetStandardColorSpaceProfileA(_In_opt_ PCSTR pMachineName, DWORD dwProfileID, _In_ PCSTR pProfilename); +BOOL WINAPI SetStandardColorSpaceProfileW(_In_opt_ PCWSTR pMachineName, DWORD dwProfileID, _In_ PCWSTR pProfileName); + +_Success_(return != FALSE) +BOOL +WINAPI +GetStandardColorSpaceProfileA( + _In_opt_ PCSTR pMachineName, + _In_ DWORD dwSCS, + _Out_writes_bytes_to_opt_(*pcbSize, *pcbSize) PSTR pBuffer, + _Inout_ PDWORD pcbSize + ); + +_Success_(return != FALSE) +BOOL +WINAPI +GetStandardColorSpaceProfileW( + _In_opt_ PCWSTR pMachineName, + _In_ DWORD dwSCS, + _Out_writes_bytes_to_opt_(*pcbSize, *pcbSize) PWSTR pBuffer, + _Inout_ PDWORD pcbSize + ); + +BOOL WINAPI AssociateColorProfileWithDeviceA(_In_opt_ PCSTR pMachineName, _In_ PCSTR pProfileName, _In_ PCSTR pDeviceName); +BOOL WINAPI AssociateColorProfileWithDeviceW(_In_opt_ PCWSTR pMachineName, _In_ PCWSTR pProfileName, _In_ PCWSTR pDeviceName); +BOOL WINAPI DisassociateColorProfileFromDeviceA(_In_opt_ PCSTR pMachineName, _In_ PCSTR pProfileName, _In_ PCSTR pDeviceName); +BOOL WINAPI DisassociateColorProfileFromDeviceW(_In_opt_ PCWSTR pMachineName, _In_ PCWSTR pProfileName, _In_ PCWSTR pDeviceName); +BOOL WINAPI SetupColorMatchingW(_Inout_updates_bytes_(sizeof(COLORMATCHSETUPW)) PCOLORMATCHSETUPW pcms); +BOOL WINAPI SetupColorMatchingA(_Inout_updates_bytes_(sizeof(COLORMATCHSETUPA)) PCOLORMATCHSETUPA pcms); + +#if NTDDI_VERSION >= NTDDI_VISTA + +BOOL +WINAPI +WcsAssociateColorProfileWithDevice( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ PCWSTR pProfileName, + _In_ PCWSTR pDeviceName + ); + +BOOL +WINAPI +WcsDisassociateColorProfileFromDevice( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ PCWSTR pProfileName, + _In_ PCWSTR pDeviceName + ); + +BOOL +WINAPI +WcsEnumColorProfilesSize( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ PENUMTYPEW pEnumRecord, + _Out_ PDWORD pdwSize + ); + +BOOL +WINAPI +WcsEnumColorProfiles( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ PENUMTYPEW pEnumRecord, + _Out_writes_bytes_(dwSize) PBYTE pBuffer, + _In_ DWORD dwSize, + _Out_opt_ PDWORD pnProfiles + ); + +BOOL +WINAPI +WcsGetDefaultColorProfileSize( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_opt_ PCWSTR pDeviceName, + _In_ COLORPROFILETYPE cptColorProfileType, + _In_ COLORPROFILESUBTYPE cpstColorProfileSubType, + _In_ DWORD dwProfileID, + _Out_ PDWORD pcbProfileName + ); + +BOOL +WINAPI +WcsGetDefaultColorProfile( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_opt_ PCWSTR pDeviceName, + _In_ COLORPROFILETYPE cptColorProfileType, + _In_ COLORPROFILESUBTYPE cpstColorProfileSubType, + _In_ DWORD dwProfileID, + _In_ DWORD cbProfileName, + _Out_writes_bytes_(cbProfileName) LPWSTR pProfileName + ); + +BOOL +WINAPI +WcsSetDefaultColorProfile( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_opt_ PCWSTR pDeviceName, + _In_ COLORPROFILETYPE cptColorProfileType, + _In_ COLORPROFILESUBTYPE cpstColorProfileSubType, + _In_ DWORD dwProfileID, + _In_opt_ LPCWSTR pProfileName + ); + +BOOL +WINAPI +WcsSetDefaultRenderingIntent( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ DWORD dwRenderingIntent + ); + +BOOL +WINAPI +WcsGetDefaultRenderingIntent( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _Out_ PDWORD pdwRenderingIntent + ); + +BOOL +WINAPI +WcsGetUsePerUserProfiles( + _In_ LPCWSTR pDeviceName, + _In_ DWORD dwDeviceClass, + _Out_ PBOOL pUsePerUserProfiles + ); + +BOOL +WINAPI +WcsSetUsePerUserProfiles( + _In_ LPCWSTR pDeviceName, + _In_ DWORD dwDeviceClass, + _In_ BOOL usePerUserProfiles + ); + +BOOL +WINAPI +WcsTranslateColors( + _In_ HTRANSFORM hColorTransform, + _In_ DWORD nColors, + _In_ DWORD nInputChannels, + _In_ COLORDATATYPE cdtInput, + _In_ DWORD cbInput, + _In_reads_bytes_(cbInput) PVOID pInputData, + _In_ DWORD nOutputChannels, + _In_ COLORDATATYPE cdtOutput, + _In_ DWORD cbOutput, + _Out_writes_bytes_(cbOutput) PVOID pOutputData + ); + +BOOL +WINAPI +WcsCheckColors( + _In_ HTRANSFORM hColorTransform, + _In_ DWORD nColors, + _In_ DWORD nInputChannels, + _In_ COLORDATATYPE cdtInput, + _In_ DWORD cbInput, + _In_reads_bytes_(cbInput) PVOID pInputData, + _Out_writes_(nColors) PBYTE paResult + ); + +// +// The APIs SetupColorMatchingA and SetupColorMatchingW are +// deprecated as of Windows Vista. The implementations in icmui.dll +// now SetLastError to ERROR_NOT_SUPPORTED, and return FALSE. +// +#pragma deprecated (SetupColorMatchingA) +#pragma deprecated (SetupColorMatchingW) + +#endif // NTDDI_VERSION >= NTDDI_VISTA + +#ifdef UNICODE + +#define ENUMTYPE ENUMTYPEW +#define PENUMTYPE PENUMTYPEW +#define COLORMATCHSETUP COLORMATCHSETUPW +#define PCOLORMATCHSETUP PCOLORMATCHSETUPW +#define LPCOLORMATCHSETUP LPCOLORMATCHSETUPW +#define PCMSCALLBACK PCMSCALLBACKW +#define CreateColorTransform CreateColorTransformW +#define OpenColorProfile OpenColorProfileW +#define CreateProfileFromLogColorSpace CreateProfileFromLogColorSpaceW +#define RegisterCMM RegisterCMMW +#define UnregisterCMM UnregisterCMMW +#define GetColorDirectory GetColorDirectoryW +#define UninstallColorProfile UninstallColorProfileW +#define AssociateColorProfileWithDevice AssociateColorProfileWithDeviceW +#define DisassociateColorProfileFromDevice DisassociateColorProfileFromDeviceW +#define EnumColorProfiles EnumColorProfilesW +#define SetStandardColorSpaceProfile SetStandardColorSpaceProfileW +#define GetStandardColorSpaceProfile GetStandardColorSpaceProfileW +#define SetupColorMatching SetupColorMatchingW +#if NTDDI_VERSION >= NTDDI_VISTA +#define WcsOpenColorProfile WcsOpenColorProfileW +#endif // NTDDI_VERSION >= NTDDI_VISTA + +#else + +#define ENUMTYPE ENUMTYPEA +#define PENUMTYPE PENUMTYPEA +#define COLORMATCHSETUP COLORMATCHSETUPA +#define PCOLORMATCHSETUP PCOLORMATCHSETUPA +#define LPCOLORMATCHSETUP LPCOLORMATCHSETUPA +#define PCMSCALLBACK PCMSCALLBACKA +#define CreateColorTransform CreateColorTransformA +#define OpenColorProfile OpenColorProfileA +#define CreateProfileFromLogColorSpace CreateProfileFromLogColorSpaceA +#define RegisterCMM RegisterCMMA +#define UnregisterCMM UnregisterCMMA +#define GetColorDirectory GetColorDirectoryA +#define UninstallColorProfile UninstallColorProfileA +#define AssociateColorProfileWithDevice AssociateColorProfileWithDeviceA +#define DisassociateColorProfileFromDevice DisassociateColorProfileFromDeviceA +#define EnumColorProfiles EnumColorProfilesA +#define SetStandardColorSpaceProfile SetStandardColorSpaceProfileA +#define GetStandardColorSpaceProfile GetStandardColorSpaceProfileA +#define SetupColorMatching SetupColorMatchingA +#if NTDDI_VERSION >= NTDDI_VISTA +#define WcsOpenColorProfile WcsOpenColorProfileA +#endif // NTDDI_VERSION >= NTDDI_VISTA + +#endif // !UNICODE + +// +// Transform returned by CMM +// + +typedef HANDLE HCMTRANSFORM; + +// +// Pointer to ICC color profile data. +// + +typedef PVOID LPDEVCHARACTER; + +// +// CMM API definition +// + +BOOL WINAPI CMCheckColors( + _In_ HCMTRANSFORM hcmTransform, // transform handle + _In_reads_(nColors) LPCOLOR lpaInputColors, // array of COLORs + DWORD nColors, // COLOR array size + COLORTYPE ctInput, // input color type + _Out_writes_(nColors) LPBYTE lpaResult // buffer for results + ); + +BOOL WINAPI CMCheckRGBs( + _In_ HCMTRANSFORM hcmTransform, // transform handle + _In_ LPVOID lpSrcBits, // source bitmap bits + BMFORMAT bmInput, // source bitmap format + DWORD dwWidth, // source bitmap width + DWORD dwHeight, // source bitmap hight + DWORD dwStride, // source bitmap delta + _Out_writes_(dwWidth * dwHeight) LPBYTE lpaResult, // buffer for results + __callback PBMCALLBACKFN pfnCallback, // pointer to callback function + LPARAM ulCallbackData // caller-defined parameter to callback + ); + +BOOL WINAPI CMConvertColorNameToIndex( + _In_ HPROFILE hProfile, + _In_reads_(dwCount) PCOLOR_NAME paColorName, + _Out_writes_(dwCount) PDWORD paIndex, + DWORD dwCount + ); + +BOOL WINAPI CMConvertIndexToColorName( + _In_ HPROFILE hProfile, + _In_reads_(dwCount) PDWORD paIndex, + _Out_writes_(dwCount) PCOLOR_NAME paColorName, + DWORD dwCount + ); + +BOOL WINAPI CMCreateDeviceLinkProfile( + _In_reads_(nProfiles) PHPROFILE pahProfiles, // array of profile handles + DWORD nProfiles, // profile handle array size + _In_reads_(nIntents) PDWORD padwIntents, // array of rendering intents + DWORD nIntents, // intent array size + DWORD dwFlags, // transform creation flags + _Outptr_result_buffer_(_Inexpressible_(GlobalSize(*lpProfileData))) LPBYTE *lpProfileData // pointer to pointer to buffer + ); + +HCMTRANSFORM WINAPI CMCreateMultiProfileTransform( + _In_reads_(nProfiles) PHPROFILE pahProfiles, // array of profile handles + DWORD nProfiles, // profile handle array size + _In_reads_(nIntents) PDWORD padwIntents, // array of rendering intents + DWORD nIntents, // intent array size + DWORD dwFlags // transform creation flags + ); + +BOOL WINAPI CMCreateProfileW( + _Inout_ LPLOGCOLORSPACEW lpColorSpace, // pointer to a logical color space + _Out_ LPDEVCHARACTER *lpProfileData // pointer to pointer to buffer + ); + +// +// The CMM APIs CMCreateTransform, CMCreateTransformW, and CMCreateTransformExt are +// deprecated as of Windows Vista, and CMM implementors are no longer required to +// implement them. The implementations in the default CMM (icm32.dll) in Windows Vista +// now SetLastError to ERROR_NOT_SUPPORTED, and return an invalid transform handle +// (a value < 256). +// +HCMTRANSFORM WINAPI CMCreateTransform( + _In_ LPLOGCOLORSPACEA lpColorSpace, // pointer to logical color space + _In_ LPDEVCHARACTER lpDevCharacter, // profile data + _In_ LPDEVCHARACTER lpTargetDevCharacter // target profile data + ); + +HCMTRANSFORM WINAPI CMCreateTransformW( + _In_ LPLOGCOLORSPACEW lpColorSpace, // pointer to logical color space + _In_ LPDEVCHARACTER lpDevCharacter, // profile data + _In_ LPDEVCHARACTER lpTargetDevCharacter // target profile data + ); + +HCMTRANSFORM WINAPI CMCreateTransformExt( + _In_ LPLOGCOLORSPACEA lpColorSpace, // pointer to logical color space + _In_ LPDEVCHARACTER lpDevCharacter, // profile data + _In_ LPDEVCHARACTER lpTargetDevCharacter, // target profile data + _In_ DWORD dwFlags // creation flags + ); + +// +// The CMM APIs CMCheckColorsInGamut, CMCreateProfile, CMTranslateRGB and CMTranslateRGBs are +// deprecated as of Windows 7, and CMM implementors are no longer required to +// implement them. The implementations in the default CMM (icm32.dll) in Windows 7 +// now SetLastError to ERROR_NOT_SUPPORTED, and return FALSE. +// + +BOOL WINAPI CMCheckColorsInGamut( + _In_ HCMTRANSFORM hcmTransform, // transform handle + _In_reads_(nCount) RGBTRIPLE *lpaRGBTriple, // RGB triple array + _Out_writes_bytes_(nCount) LPBYTE lpaResult, // buffer for results + UINT nCount // result buffer size + ); + +BOOL WINAPI CMCreateProfile( + _Inout_ LPLOGCOLORSPACEA lpColorSpace, // pointer to a logical color space + _Out_ LPDEVCHARACTER *lpProfileData // pointer to pointer to buffer + ); + +BOOL WINAPI CMTranslateRGB( + _In_ HCMTRANSFORM hcmTransform, + COLORREF ColorRef, + _Out_ LPCOLORREF lpColorRef, + DWORD dwFlags + ); + +BOOL WINAPI CMTranslateRGBs( + _In_ HCMTRANSFORM hcmTransform, + _In_ LPVOID lpSrcBits, + BMFORMAT bmInput, + DWORD dwWidth, + DWORD dwHeight, + DWORD dwStride, + _Out_ LPVOID lpDestBits, + BMFORMAT bmOutput, + DWORD dwTranslateDirection + ); + +#if NTDDI_VERSION >= NTDDI_VISTA +#pragma deprecated (CMCreateTransform) +#pragma deprecated (CMCreateTransformW) +#pragma deprecated (CMCreateTransformExt) +#pragma deprecated (CMCheckColorsInGamut) +#pragma deprecated (CMCreateProfile) +#pragma deprecated (CMTranslateRGB) +#endif // NTDDI_VERSION >= NTDDI_VISTA + +#if NTDDI_VERSION > NTDDI_VISTA +#pragma deprecated (CMTranslateRGBs) +#endif // NTDDI_VERSION > NTDDI_VISTA + +HCMTRANSFORM WINAPI CMCreateTransformExtW( + _In_ LPLOGCOLORSPACEW lpColorSpace, // pointer to logical color space + _In_ LPDEVCHARACTER lpDevCharacter, // profile data + _In_ LPDEVCHARACTER lpTargetDevCharacter, // target profile data + _In_ DWORD dwFlags // creation flags + ); + +BOOL WINAPI CMDeleteTransform( + _Inout_ HCMTRANSFORM hcmTransform // transform handle to be deleted. + ); + +DWORD WINAPI CMGetInfo( + DWORD dwInfo + ); + +BOOL WINAPI CMGetNamedProfileInfo( + _In_ HPROFILE hProfile, // profile handle + _Inout_ PNAMED_PROFILE_INFO pNamedProfileInfo // pointer to named profile info + ); + +BOOL WINAPI CMGetPS2ColorRenderingDictionary( + _In_ HPROFILE hProfile, + DWORD dwIntent, + _Out_writes_bytes_opt_(*lpcbSize) LPBYTE lpBuffer, + _Inout_ LPDWORD lpcbSize, + _Inout_ LPBOOL lpbBinary + ); + +BOOL WINAPI CMGetPS2ColorRenderingIntent( + _In_ HPROFILE hProfile, + DWORD dwIntent, + _Out_writes_bytes_opt_(*lpcbSize) LPBYTE lpBuffer, + _Inout_ LPDWORD lpcbSize + ); + +BOOL WINAPI CMGetPS2ColorSpaceArray( + _In_ HPROFILE hProfile, + DWORD dwIntent, + DWORD dwCSAType, + _Out_writes_bytes_opt_(*lpcbSize) LPBYTE lpBuffer, + _Inout_ LPDWORD lpcbSize, + _Inout_ LPBOOL lpbBinary + ); + +BOOL WINAPI CMIsProfileValid( + _In_ HPROFILE hProfile, // proflle handle + _Out_ LPBOOL lpbValid // buffer for result. + ); + +BOOL WINAPI CMTranslateColors( + _In_ HCMTRANSFORM hcmTransform, // transform handle + _In_reads_(nColors) LPCOLOR lpaInputColors, // pointer to input color array + DWORD nColors, // number of color in color array + COLORTYPE ctInput, // input color type + _Out_writes_(nColors) LPCOLOR lpaOutputColors, // pointer to output color array + COLORTYPE ctOutput // output color type + ); + +BOOL WINAPI CMTranslateRGBsExt( + _In_ HCMTRANSFORM hcmTransform, + _In_ LPVOID lpSrcBits, + BMFORMAT bmInput, + DWORD dwWidth, + DWORD dwHeight, + DWORD dwInputStride, + _Out_ LPVOID lpDestBits, + BMFORMAT bmOutput, + DWORD dwOutputStride, + __callback LPBMCALLBACKFN lpfnCallback, + LPARAM ulCallbackData + ); + +#if NTDDI_VERSION >= NTDDI_VISTA + +// +// Windows Color System APIs +// + + +// +// Passed in as a bit-flag for dwFlags, this instructs WcsOpenColorProfile +// to ignore any embedded Wcs information in the WcsProfiles tag if the input +// profile is an ICC one. +// + +#define DONT_USE_EMBEDDED_WCS_PROFILES 0x00000001L + + +HPROFILE WINAPI WcsOpenColorProfileA( + _In_ PPROFILE pCDMPProfile, + _In_opt_ PPROFILE pCAMPProfile, + _In_opt_ PPROFILE pGMMPProfile, + _In_ DWORD dwDesireAccess, + _In_ DWORD dwShareMode, + _In_ DWORD dwCreationMode, + _In_ DWORD dwFlags + ); + +HPROFILE WINAPI WcsOpenColorProfileW( + _In_ PPROFILE pCDMPProfile, + _In_opt_ PPROFILE pCAMPProfile, + _In_opt_ PPROFILE pGMMPProfile, + _In_ DWORD dwDesireAccess, + _In_ DWORD dwShareMode, + _In_ DWORD dwCreationMode, + _In_ DWORD dwFlags + ); + +// +// Flags for WcsCreateIccProfile. +// +// By default, the original WCS profiles used for the conversion are embedded +// in the output ICC profile in a WcsProfilesTag, resulting in an ICC profile +// which is compatible with ICC software, yet still has the original WCS +// profile data available to code which is designed to parse it. +// +// This flag is set to produce an ICC profile without any of the original +// WCS profile data embedded. The WcsProfilesTag will not be present in the +// output profile. This will result in a smaller output profile, however the +// original WCS profile data will not be available to code that would be able +// to parse it instead of the ICC data. +// +// +// These flags should be ORed in with one of the four ICC INTENT_ flags +// Thus, they must use different bits from the INTENT_ flags. Currrently, the INTENT_ flags +// use the values 0-3, or the low order two bits. Hence we use the third lowest bit. +// + + +#define WCS_DEFAULT 0x00000000L +#define WCS_ICCONLY 0x00010000L + +HPROFILE WINAPI WcsCreateIccProfile( + _In_ HPROFILE hWcsProfile, + _In_ DWORD dwOptions + ); + +// +// ICC TAGTYPE for the embedded Wcs information. +// + +#define WCS_EMBEDDED_TAG_SIGNATURE 'MS00' +#define WCS_EMBEDDED_TAG_TYPE_SIGNATURE 'MS10' + +#endif // NTDDI_VERSION >= NTDDI_VISTA + +#if NTDDI_VERSION >= NTDDI_WIN7 + +BOOL WINAPI WcsGetCalibrationManagementState ( + _Out_ BOOL *pbIsEnabled + ); + +BOOL WINAPI WcsSetCalibrationManagementState ( + _In_ BOOL bIsEnabled + ); + +#endif // NTDDI_VERSION >= NTDDI_WIN7 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Modern Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#if NTDDI_VERSION >= NTDDI_WIN10_RS5 + +/* + * Associates a color profile (already installed) with a specified display in the + * given scope. + * + * Parameters: + * profileManagementScope specifies the association as system-wide or user-specific + * profileName identifies the installed profile to associate + * targetAdapterID the target adapter of the display + * sourceID the source identifier of the display + * setAsDefault whether or not to set the newly associated profile as the default + * associateAsAdvancedColor specifies to which association list the new profile is added + */ +HRESULT WINAPI ColorProfileAddDisplayAssociation( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ PCWSTR profileName, + _In_ LUID targetAdapterID, + _In_ UINT32 sourceID, + _In_ BOOL setAsDefault, + _In_ BOOL associateAsAdvancedColor +); + +/* + * Disassociates a color profile (already installed) from a specified display in the + * given scope. + * + * Parameters: + * profileManagementScope specifies the association as system-wide or user-specific + * profileName identifies the installed profile to associate + * targetAdapterID the target adapter of the display + * sourceID the source identifier of the display + * disassociateAdvancedColor specifies if the association to be removed is Advanced Color + */ +HRESULT WINAPI ColorProfileRemoveDisplayAssociation( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ PCWSTR profileName, + _In_ LUID targetAdapterID, + _In_ UINT32 sourceID, + _In_ BOOL dissociateAdvancedColor +); + +/* + * Sets a given profile (already installed) as the default profile for a specified display in the + * given scope. + * + * Parameters: + * profileManagementScope specifies the association as system-wide or user-specific + * profileName identifies the installed profile to associate + * profileType the color profile type (right now will only accept CPT_ICC) + * profileSubtype the color profile subtype to return + * targetAdapterID the target adapter of the display + * sourceID the source identifier of the display + */ +HRESULT WINAPI ColorProfileSetDisplayDefaultAssociation( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ PCWSTR profileName, + _In_ COLORPROFILETYPE profileType, + _In_ COLORPROFILESUBTYPE profileSubType, + _In_ LUID targetAdapterID, + _In_ UINT32 sourceID +); + +/* + * Retrieves list of profiles associated with a given display in the specified scope + * + * Parameters: + * scope specifies the association as system-wide or user-specific + * targetAdapterID the target adapter of the display + * sourceID the source identifier of the display + * profileList pointer to a buffer where the profile names are placed, must be freed with + * LocalFree + * profileCount receives the number of profiles names copied into profileList + */ +HRESULT WINAPI ColorProfileGetDisplayList( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ LUID targetAdapterID, + _In_ UINT32 sourceID, + _Outptr_ LPWSTR** profileList, + _Out_ PDWORD profileCount +); + +/* + * Gets the default color profile for a given display in the specified scope + * + * Parameters: + * scope specifies the association as system-wide or user-specific + * targetAdapterID the target adapter of the display + * sourceID the source identifier of the display + * profileType the color profile type to return (currently only CPT_ICC is supported) + * profileSubType the color profile subtype to return + * profileName on output will have the default color profile name, must be freed with + * LocalFree + */ +HRESULT WINAPI ColorProfileGetDisplayDefault( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ LUID targetAdapterID, + _In_ UINT32 sourceID, + _In_ COLORPROFILETYPE profileType, + _In_ COLORPROFILESUBTYPE profileSubType, + _Outptr_ LPWSTR* profileName +); + +/* + * Gets the currently selected color profile scope of the provided display - either user or system + * + * Parameters: + * targetAdapterID the target adapter of the display + * sourceID the source identifier of the display + * scope on output will specify if the display's scope is user or system + */ +HRESULT WINAPI ColorProfileGetDisplayUserScope( + _In_ LUID targetAdapterID, + _In_ UINT32 sourceID, + _Out_ WCS_PROFILE_MANAGEMENT_SCOPE *scope +); + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS5 + +#if NTDDI_VERSION >= NTDDI_WIN10_CO + +struct WCS_DEVICE_VCGT_CAPABILITIES +{ + UINT Size; // Size of structure in bytes + BOOL SupportsVcgt; // Indicates if display supports VCGT +}; + +struct WCS_DEVICE_MHC2_CAPABILITIES +{ + UINT Size; // Size of structure in bytes + BOOL SupportsMhc2; // Indicates if display supports MHC2 + + UINT RegammaLutEntryCount; // Max number of entries in the regamma lut + + // Color space transform (CSC) matrix (row-major) + UINT CscXyzMatrixRows; // Number of rows in the color transform matrix + UINT CscXyzMatrixColumns; // Number of columns in the color transform matrix +}; + +typedef enum +{ + VideoCardGammaTable = 1, + MicrosoftHardwareColorV2 = 2, +} WCS_DEVICE_CAPABILITIES_TYPE; + +/* + * Gets the selected display color correction capabilities + * + * Parameters: + * scope specifies the association as system-wide or user-specific + * targetAdapterID the target adapter of the display + * sourceID the source identifier of the display + * capsType the type of capabilities to retrieve (VCGT, MHC2) + * outputCapabilities the color correction capabilities to return + */ +HRESULT WINAPI ColorProfileGetDeviceCapabilities( + _In_ WCS_PROFILE_MANAGEMENT_SCOPE scope, + _In_ LUID targetAdapterID, + _In_ UINT32 sourceID, + _In_ WCS_DEVICE_CAPABILITIES_TYPE capsType, + _Out_ PVOID outputCapabilities +); + +#endif //NTDDI_VERSION >= NTDDI_WIN10_CO + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // ifndef _ICM_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IcmpAPI.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IcmpAPI.h new file mode 100644 index 0000000000000000000000000000000000000000..e7907cb5ded650716781fed8ecc34bd920812bc6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IcmpAPI.h @@ -0,0 +1,437 @@ +/*++ + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + icmpapi.h + +Abstract: + + Declarations for the Win32 ICMP Echo request API. + +Author: + + Portable Systems Group 30-December-1993 + +Revision History: + + +Notes: + +--*/ + +#ifndef _ICMP_INCLUDED_ +#define _ICMP_INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +// +// Establish DLL function linkage if supported by the current build +// environment and not previously defined. +// + +#ifndef IPHLPAPI_DLL_LINKAGE +#ifdef DECLSPEC_IMPORT +#define IPHLPAPI_DLL_LINKAGE DECLSPEC_IMPORT +#else +#define IPHLPAPI_DLL_LINKAGE +#endif +#endif + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Exported Routines. +// + +//++ +// +// Routine Name: +// +// IcmpCreateFile +// +// Routine Description: +// +// Opens a handle on which ICMP Echo Requests can be issued. +// +// Arguments: +// +// None. +// +// Return Value: +// +// An open file handle or INVALID_HANDLE_VALUE. Extended error information +// is available by calling GetLastError(). +// +//-- + +IPHLPAPI_DLL_LINKAGE +HANDLE +WINAPI +IcmpCreateFile( + VOID + ); + +#if (NTDDI_VERSION >= NTDDI_WINXP) +//++ +// +// Routine Name: +// +// Icmp6CreateFile +// +// Routine Description: +// +// Opens a handle on which ICMPv6 Echo Requests can be issued. +// +// Arguments: +// +// None. +// +// Return Value: +// +// An open file handle or INVALID_HANDLE_VALUE. Extended error information +// is available by calling GetLastError(). +// +//-- + +IPHLPAPI_DLL_LINKAGE +HANDLE +WINAPI +Icmp6CreateFile( + VOID + ); +#endif + +//++ +// +// Routine Name: +// +// IcmpCloseHandle +// +// Routine Description: +// +// Closes a handle opened by ICMPOpenFile. +// +// Arguments: +// +// IcmpHandle - The handle to close. +// +// Return Value: +// +// TRUE if the handle was closed successfully, otherwise FALSE. Extended +// error information is available by calling GetLastError(). +// +//-- + +IPHLPAPI_DLL_LINKAGE +BOOL +WINAPI +IcmpCloseHandle( + _In_ HANDLE IcmpHandle + ); + +//++ +// +// Routine Name: +// +// IcmpSendEcho +// +// Routine Description: +// +// Sends an ICMP Echo request and returns any replies. The +// call returns when the timeout has expired or the reply buffer +// is filled. +// +// Arguments: +// +// IcmpHandle - An open handle returned by ICMPCreateFile. +// +// DestinationAddress - The destination of the echo request. +// +// RequestData - A buffer containing the data to send in the +// request. +// +// RequestSize - The number of bytes in the request data buffer. +// +// RequestOptions - Pointer to the IP header options for the request. +// May be NULL. +// +// ReplyBuffer - A buffer to hold any replies to the request. +// On return, the buffer will contain an array of +// ICMP_ECHO_REPLY structures followed by the +// options and data for the replies. The buffer +// should be large enough to hold at least one +// ICMP_ECHO_REPLY structure plus +// MAX(RequestSize, 8) bytes of data since an ICMP +// error message contains 8 bytes of data. +// +// ReplySize - The size in bytes of the reply buffer. +// +// Timeout - The time in milliseconds to wait for replies. +// +// Return Value: +// +// Returns the number of ICMP_ECHO_REPLY structures stored in ReplyBuffer. +// The status of each reply is contained in the structure. If the return +// value is zero, extended error information is available via +// GetLastError(). +// +//-- + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +IcmpSendEcho( + _In_ HANDLE IcmpHandle, + _In_ IPAddr DestinationAddress, + _In_reads_bytes_(RequestSize) LPVOID RequestData, + _In_ WORD RequestSize, + _In_opt_ PIP_OPTION_INFORMATION RequestOptions, + _Out_writes_bytes_(ReplySize) LPVOID ReplyBuffer, + _In_range_(>=, sizeof(ICMP_ECHO_REPLY) + RequestSize + 8) + DWORD ReplySize, + _In_ DWORD Timeout + ); + + +//++ +// +// Routine Description: +// +// Sends an ICMP Echo request and the call returns either immediately +// (if Event or ApcRoutine is NonNULL) or returns after the specified +// timeout. The ReplyBuffer contains the ICMP responses, if any. +// +// Arguments: +// +// IcmpHandle - An open handle returned by ICMPCreateFile. +// +// Event - This is the event to be signalled whenever an IcmpResponse +// comes in. +// +// ApcRoutine - This routine would be called when the calling thread +// is in an alertable thread and an ICMP reply comes in. +// +// ApcContext - This optional parameter is given to the ApcRoutine when +// this call succeeds. +// +// DestinationAddress - The destination of the echo request. +// +// RequestData - A buffer containing the data to send in the +// request. +// +// RequestSize - The number of bytes in the request data buffer. +// +// RequestOptions - Pointer to the IP header options for the request. +// May be NULL. +// +// ReplyBuffer - A buffer to hold any replies to the request. +// On return, the buffer will contain an array of +// ICMP_ECHO_REPLY structures followed by options +// and data. The buffer must be large enough to +// hold at least one ICMP_ECHO_REPLY structure. +// It should be large enough to also hold +// 8 more bytes of data - this is the size of +// an ICMP error message. +// +// ReplySize - The size in bytes of the reply buffer. +// +// Timeout - The time in milliseconds to wait for replies. +// This is NOT used if ApcRoutine is not NULL or if Event +// is not NULL. +// +// Return Value: +// +// Returns the number of replies received and stored in ReplyBuffer. If +// the return value is zero, extended error information is available +// via GetLastError(). +// +// Remarks: +// +// On NT platforms, +// If used Asynchronously (either ApcRoutine or Event is specified), then +// ReplyBuffer and ReplySize are still needed. This is where the response +// comes in. +// ICMP Response data is copied to the ReplyBuffer provided, and the caller of +// this function has to parse it asynchronously. The function IcmpParseReply +// is provided for this purpose. +// +// On non-NT platforms, +// Event, ApcRoutine and ApcContext are IGNORED. +// +//-- + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +IcmpSendEcho2( + _In_ HANDLE IcmpHandle, + _In_opt_ HANDLE Event, +#ifdef PIO_APC_ROUTINE_DEFINED + _In_opt_ PIO_APC_ROUTINE ApcRoutine, +#else + _In_opt_ FARPROC ApcRoutine, +#endif + _In_opt_ PVOID ApcContext, + _In_ IPAddr DestinationAddress, + _In_reads_bytes_(RequestSize) LPVOID RequestData, + _In_ WORD RequestSize, + _In_opt_ PIP_OPTION_INFORMATION RequestOptions, + _Out_writes_bytes_(ReplySize) LPVOID ReplyBuffer, + _In_range_(>=, sizeof(ICMP_ECHO_REPLY) + RequestSize + 8) + DWORD ReplySize, + _In_ DWORD Timeout + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#if (NTDDI_VERSION >= NTDDI_VISTASP1) +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +IcmpSendEcho2Ex( + _In_ HANDLE IcmpHandle, + _In_opt_ HANDLE Event, +#ifdef PIO_APC_ROUTINE_DEFINED + _In_opt_ PIO_APC_ROUTINE ApcRoutine, +#else + _In_opt_ FARPROC ApcRoutine, +#endif + _In_opt_ PVOID ApcContext, + _In_ IPAddr SourceAddress, + _In_ IPAddr DestinationAddress, + _In_reads_bytes_(RequestSize) LPVOID RequestData, + _In_ WORD RequestSize, + _In_opt_ PIP_OPTION_INFORMATION RequestOptions, + _Out_writes_bytes_(ReplySize) LPVOID ReplyBuffer, + _In_range_(>=, sizeof(ICMP_ECHO_REPLY) + RequestSize + 8) + DWORD ReplySize, + _In_ DWORD Timeout + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +#if (NTDDI_VERSION >= NTDDI_WINXP) +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +Icmp6SendEcho2( + _In_ HANDLE IcmpHandle, + _In_opt_ HANDLE Event, +#ifdef PIO_APC_ROUTINE_DEFINED + _In_opt_ PIO_APC_ROUTINE ApcRoutine, +#else + _In_opt_ FARPROC ApcRoutine, +#endif + _In_opt_ PVOID ApcContext, + _In_ struct sockaddr_in6 *SourceAddress, + _In_ struct sockaddr_in6 *DestinationAddress, + _In_reads_bytes_(RequestSize) LPVOID RequestData, + _In_ WORD RequestSize, + _In_opt_ PIP_OPTION_INFORMATION RequestOptions, + _Out_writes_bytes_(ReplySize) LPVOID ReplyBuffer, + _In_range_(>=, sizeof(ICMPV6_ECHO_REPLY) + RequestSize + 8) + DWORD ReplySize, + _In_ DWORD Timeout + ); +#endif + +//++ +// +// Routine Description: +// +// Parses the reply buffer provided and returns the number of ICMP responses found. +// +// Arguments: +// +// ReplyBuffer - This must be the same buffer that was passed to IcmpSendEcho2 +// This is rewritten to hold an array of ICMP_ECHO_REPLY structures. +// (i.e. the type is PICMP_ECHO_REPLY). +// +// ReplySize - This must be the size of the above buffer. +// +// Return Value: +// Returns the number of ICMP responses found. If there is an errors, return value is +// zero. The error can be determined by a call to GetLastError. +// +// Remarks: +// This function SHOULD NOT BE USED on a reply buffer that was passed to SendIcmpEcho. +// SendIcmpEcho actually parses the buffer before returning back to the user. This function +// is meant to be used only with SendIcmpEcho2. +//-- + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +IcmpParseReplies( + _Out_writes_bytes_(ReplySize) LPVOID ReplyBuffer, + _In_range_(>=, sizeof(ICMP_ECHO_REPLY) + 8) + DWORD ReplySize + ); + +#if (NTDDI_VERSION >= NTDDI_WINXP) +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +Icmp6ParseReplies( + _Out_writes_bytes_(ReplySize) LPVOID ReplyBuffer, + _In_range_(>, sizeof(ICMPV6_ECHO_REPLY) + 8) + DWORD ReplySize + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _ICMP_INCLUDED_ + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Icmui.Dlg b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Icmui.Dlg new file mode 100644 index 0000000000000000000000000000000000000000..cb1f38d37e83a64641b098e13269b8dab6d8d5a2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Icmui.Dlg @@ -0,0 +1,61 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + icmui.dlg + +Abstract: + + This module contains the resource descriptions for the Win32 + image color matching common dialog. + +Revision History: + +--*/ + +// +// SetupColorMatch Dialogs. +// + +COLORMGMTDLGORD DIALOG DISCARDABLE 0, 0, 350, 190 +STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE +CAPTION "Color Management" +FONT 8, "MS Shell Dlg" +BEGIN + CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,170,83,11,1 + CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,170,113,11,1 + CONTROL "",IDC_STATIC,"Static",SS_ETCHEDVERT,179,83,1,32 + CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,180,97,11,1 + CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,170,143,21,1 + CONTROL "&Basic color management: Specify how colors appear on your monitor and printer.", + rad1,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP | WS_GROUP,23,40,310,10 + CONTROL "&Proofing: See colors on your monitor and/or printer as they would appear on another device.", + rad2,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,23,51,310,10 + LTEXT "&Monitor Profile: (",stc1,30,68,148,8 + COMBOBOX cmb1,30,78,138,69,CBS_DROPDOWNLIST | + CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_GROUP + LTEXT "Pri&nter Profile: (",stc2,30,98,148,8 + COMBOBOX cmb2,30,108,138,69,CBS_DROPDOWNLIST | + CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_GROUP + LTEXT "&Rendering Intent:",stc3,192,82,138,8 + COMBOBOX cmb3,192,92,138,69,CBS_DROPDOWNLIST | + WS_VSCROLL | WS_TABSTOP | WS_GROUP + LTEXT "Em&ulated device profile:",stc4,30,128,140,8 + COMBOBOX cmb4,30,138,138,69,CBS_DROPDOWNLIST | + CBS_SORT | WS_VSCROLL | WS_TABSTOP | WS_GROUP + LTEXT "(Match intent is default for proofing)", stc6, 192,107,144,8 + LTEXT "Ren&dering Intent:",stc5,192,128,138,8 + COMBOBOX cmb5,192,138,138,69,CBS_DROPDOWNLIST | + WS_VSCROLL | WS_TABSTOP | WS_GROUP + LTEXT "Image, graphic, or text generated by:",stc7,8,7,120,8 + EDITTEXT edt1,128,5,214,12,ES_READONLY | NOT WS_TABSTOP | WS_GROUP + DEFPUSHBUTTON "OK",IDOK,156,171,60,14 + PUSHBUTTON "Cancel",IDCANCEL,219,171,60,14 + PUSHBUTTON "&Apply",psh1,282,171,60,14 + CONTROL "",IDC_STATIC,"Static",SS_ETCHEDFRAME,8,29,334,134 + CONTROL "&Enable Color Management", + chx1,"Button", BS_AUTOCHECKBOX | WS_TABSTOP | WS_GROUP,13,25,96,10 + +END diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IdentityCommon.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IdentityCommon.h new file mode 100644 index 0000000000000000000000000000000000000000..e190489088d1049b0c8ba2b979b747015bc68fe1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IdentityCommon.h @@ -0,0 +1,85 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __identitycommon_h__ +#define __identitycommon_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_identitycommon_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef +enum _IdentityType + { + IDENTITIES_ALL = 0, + IDENTITIES_ME_ONLY = 0x1 + } IDENTITY_TYPE; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_identitycommon_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_identitycommon_0000_0000_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IdentityProvider.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IdentityProvider.h new file mode 100644 index 0000000000000000000000000000000000000000..2d6f99ca6ff4ea7ca2455e1c30a9521cc78d7d2a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IdentityProvider.h @@ -0,0 +1,1653 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __identityprovider_h__ +#define __identityprovider_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IIdentityAdvise_FWD_DEFINED__ +#define __IIdentityAdvise_FWD_DEFINED__ +typedef interface IIdentityAdvise IIdentityAdvise; + +#endif /* __IIdentityAdvise_FWD_DEFINED__ */ + + +#ifndef __AsyncIIdentityAdvise_FWD_DEFINED__ +#define __AsyncIIdentityAdvise_FWD_DEFINED__ +typedef interface AsyncIIdentityAdvise AsyncIIdentityAdvise; + +#endif /* __AsyncIIdentityAdvise_FWD_DEFINED__ */ + + +#ifndef __IIdentityProvider_FWD_DEFINED__ +#define __IIdentityProvider_FWD_DEFINED__ +typedef interface IIdentityProvider IIdentityProvider; + +#endif /* __IIdentityProvider_FWD_DEFINED__ */ + + +#ifndef __AsyncIIdentityProvider_FWD_DEFINED__ +#define __AsyncIIdentityProvider_FWD_DEFINED__ +typedef interface AsyncIIdentityProvider AsyncIIdentityProvider; + +#endif /* __AsyncIIdentityProvider_FWD_DEFINED__ */ + + +#ifndef __IAssociatedIdentityProvider_FWD_DEFINED__ +#define __IAssociatedIdentityProvider_FWD_DEFINED__ +typedef interface IAssociatedIdentityProvider IAssociatedIdentityProvider; + +#endif /* __IAssociatedIdentityProvider_FWD_DEFINED__ */ + + +#ifndef __AsyncIAssociatedIdentityProvider_FWD_DEFINED__ +#define __AsyncIAssociatedIdentityProvider_FWD_DEFINED__ +typedef interface AsyncIAssociatedIdentityProvider AsyncIAssociatedIdentityProvider; + +#endif /* __AsyncIAssociatedIdentityProvider_FWD_DEFINED__ */ + + +#ifndef __IConnectedIdentityProvider_FWD_DEFINED__ +#define __IConnectedIdentityProvider_FWD_DEFINED__ +typedef interface IConnectedIdentityProvider IConnectedIdentityProvider; + +#endif /* __IConnectedIdentityProvider_FWD_DEFINED__ */ + + +#ifndef __AsyncIConnectedIdentityProvider_FWD_DEFINED__ +#define __AsyncIConnectedIdentityProvider_FWD_DEFINED__ +typedef interface AsyncIConnectedIdentityProvider AsyncIConnectedIdentityProvider; + +#endif /* __AsyncIConnectedIdentityProvider_FWD_DEFINED__ */ + + +#ifndef __IIdentityAuthentication_FWD_DEFINED__ +#define __IIdentityAuthentication_FWD_DEFINED__ +typedef interface IIdentityAuthentication IIdentityAuthentication; + +#endif /* __IIdentityAuthentication_FWD_DEFINED__ */ + + +#ifndef __AsyncIIdentityAuthentication_FWD_DEFINED__ +#define __AsyncIIdentityAuthentication_FWD_DEFINED__ +typedef interface AsyncIIdentityAuthentication AsyncIIdentityAuthentication; + +#endif /* __AsyncIIdentityAuthentication_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "propsys.h" +#include "IdentityCommon.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_identityprovider_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if 0 +#endif // 0 + +enum tag_IdentityUpdateEvent + { + IDENTITY_ASSOCIATED = 0x1, + IDENTITY_DISASSOCIATED = 0x2, + IDENTITY_CREATED = 0x4, + IDENTITY_IMPORTED = 0x8, + IDENTITY_DELETED = 0x10, + IDENTITY_PROPCHANGED = 0x20, + IDENTITY_CONNECTED = 0x40, + IDENTITY_DISCONNECTED = 0x80 + } ; +#define IDENTITY_KEYWORD_ASSOCIATED L"associated" +#define IDENTITY_KEYWORD_LOCAL L"local" +#define IDENTITY_KEYWORD_HOMEGROUP L"homegroup" +#define IDENTITY_KEYWORD_CONNECTED L"connected" +DEFINE_GUID(OID_OAssociatedIdentityProviderObject, 0x98c5a3dd, 0xdb68, 0x4f1a, 0x8d, 0x2b, 0x90, 0x79, 0xcd, 0xfe, 0xaf, 0x61); + + +extern RPC_IF_HANDLE __MIDL_itf_identityprovider_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_identityprovider_0000_0000_v0_0_s_ifspec; + +#ifndef __IIdentityAdvise_INTERFACE_DEFINED__ +#define __IIdentityAdvise_INTERFACE_DEFINED__ + +/* interface IIdentityAdvise */ +/* [unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IIdentityAdvise; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4e982fed-d14b-440c-b8d6-bb386453d386") + IIdentityAdvise : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IdentityUpdated( + /* [in] */ DWORD dwIdentityUpdateEvents, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIdentityAdviseVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIdentityAdvise * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIdentityAdvise * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIdentityAdvise * This); + + DECLSPEC_XFGVIRT(IIdentityAdvise, IdentityUpdated) + HRESULT ( STDMETHODCALLTYPE *IdentityUpdated )( + __RPC__in IIdentityAdvise * This, + /* [in] */ DWORD dwIdentityUpdateEvents, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID); + + END_INTERFACE + } IIdentityAdviseVtbl; + + interface IIdentityAdvise + { + CONST_VTBL struct IIdentityAdviseVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIdentityAdvise_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIdentityAdvise_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIdentityAdvise_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIdentityAdvise_IdentityUpdated(This,dwIdentityUpdateEvents,lpszUniqueID) \ + ( (This)->lpVtbl -> IdentityUpdated(This,dwIdentityUpdateEvents,lpszUniqueID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIdentityAdvise_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIIdentityAdvise_INTERFACE_DEFINED__ +#define __AsyncIIdentityAdvise_INTERFACE_DEFINED__ + +/* interface AsyncIIdentityAdvise */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_AsyncIIdentityAdvise; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3ab4c8da-d038-4830-8dd9-3253c55a127f") + AsyncIIdentityAdvise : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_IdentityUpdated( + /* [in] */ DWORD dwIdentityUpdateEvents, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_IdentityUpdated( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIIdentityAdviseVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIIdentityAdvise * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIIdentityAdvise * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIIdentityAdvise * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityAdvise, Begin_IdentityUpdated) + HRESULT ( STDMETHODCALLTYPE *Begin_IdentityUpdated )( + __RPC__in AsyncIIdentityAdvise * This, + /* [in] */ DWORD dwIdentityUpdateEvents, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID); + + DECLSPEC_XFGVIRT(AsyncIIdentityAdvise, Finish_IdentityUpdated) + HRESULT ( STDMETHODCALLTYPE *Finish_IdentityUpdated )( + __RPC__in AsyncIIdentityAdvise * This); + + END_INTERFACE + } AsyncIIdentityAdviseVtbl; + + interface AsyncIIdentityAdvise + { + CONST_VTBL struct AsyncIIdentityAdviseVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIIdentityAdvise_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIIdentityAdvise_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIIdentityAdvise_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIIdentityAdvise_Begin_IdentityUpdated(This,dwIdentityUpdateEvents,lpszUniqueID) \ + ( (This)->lpVtbl -> Begin_IdentityUpdated(This,dwIdentityUpdateEvents,lpszUniqueID) ) + +#define AsyncIIdentityAdvise_Finish_IdentityUpdated(This) \ + ( (This)->lpVtbl -> Finish_IdentityUpdated(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIIdentityAdvise_INTERFACE_DEFINED__ */ + + +#ifndef __IIdentityProvider_INTERFACE_DEFINED__ +#define __IIdentityProvider_INTERFACE_DEFINED__ + +/* interface IIdentityProvider */ +/* [unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IIdentityProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0d1b9e0c-e8ba-4f55-a81b-bce934b948f5") + IIdentityProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetIdentityEnum( + /* [in] */ const IDENTITY_TYPE eIdentityType, + /* [unique][in] */ __RPC__in_opt const PROPERTYKEY *pFilterkey, + /* [unique][in] */ __RPC__in_opt const PROPVARIANT *pFilterPropVarValue, + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppIdentityEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Create( + /* [in] */ __RPC__in LPCWSTR lpszUserName, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore, + /* [in] */ __RPC__in const PROPVARIANT *pKeywordsToAdd) = 0; + + virtual HRESULT STDMETHODCALLTYPE Import( + /* [in] */ __RPC__in_opt IPropertyStore *pPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in const PROPVARIANT *pKeywordsToDelete) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindByUniqueID( + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProviderPropertyStore( + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Advise( + /* [in] */ __RPC__in_opt IIdentityAdvise *pIdentityAdvise, + /* [in] */ DWORD dwIdentityUpdateEvents, + /* [out] */ __RPC__out DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnAdvise( + /* [in] */ const DWORD dwCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIdentityProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIdentityProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIdentityProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIdentityProvider * This); + + DECLSPEC_XFGVIRT(IIdentityProvider, GetIdentityEnum) + HRESULT ( STDMETHODCALLTYPE *GetIdentityEnum )( + __RPC__in IIdentityProvider * This, + /* [in] */ const IDENTITY_TYPE eIdentityType, + /* [unique][in] */ __RPC__in_opt const PROPERTYKEY *pFilterkey, + /* [unique][in] */ __RPC__in_opt const PROPVARIANT *pFilterPropVarValue, + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppIdentityEnum); + + DECLSPEC_XFGVIRT(IIdentityProvider, Create) + HRESULT ( STDMETHODCALLTYPE *Create )( + __RPC__in IIdentityProvider * This, + /* [in] */ __RPC__in LPCWSTR lpszUserName, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore, + /* [in] */ __RPC__in const PROPVARIANT *pKeywordsToAdd); + + DECLSPEC_XFGVIRT(IIdentityProvider, Import) + HRESULT ( STDMETHODCALLTYPE *Import )( + __RPC__in IIdentityProvider * This, + /* [in] */ __RPC__in_opt IPropertyStore *pPropertyStore); + + DECLSPEC_XFGVIRT(IIdentityProvider, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IIdentityProvider * This, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in const PROPVARIANT *pKeywordsToDelete); + + DECLSPEC_XFGVIRT(IIdentityProvider, FindByUniqueID) + HRESULT ( STDMETHODCALLTYPE *FindByUniqueID )( + __RPC__in IIdentityProvider * This, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore); + + DECLSPEC_XFGVIRT(IIdentityProvider, GetProviderPropertyStore) + HRESULT ( STDMETHODCALLTYPE *GetProviderPropertyStore )( + __RPC__in IIdentityProvider * This, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore); + + DECLSPEC_XFGVIRT(IIdentityProvider, Advise) + HRESULT ( STDMETHODCALLTYPE *Advise )( + __RPC__in IIdentityProvider * This, + /* [in] */ __RPC__in_opt IIdentityAdvise *pIdentityAdvise, + /* [in] */ DWORD dwIdentityUpdateEvents, + /* [out] */ __RPC__out DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(IIdentityProvider, UnAdvise) + HRESULT ( STDMETHODCALLTYPE *UnAdvise )( + __RPC__in IIdentityProvider * This, + /* [in] */ const DWORD dwCookie); + + END_INTERFACE + } IIdentityProviderVtbl; + + interface IIdentityProvider + { + CONST_VTBL struct IIdentityProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIdentityProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIdentityProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIdentityProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIdentityProvider_GetIdentityEnum(This,eIdentityType,pFilterkey,pFilterPropVarValue,ppIdentityEnum) \ + ( (This)->lpVtbl -> GetIdentityEnum(This,eIdentityType,pFilterkey,pFilterPropVarValue,ppIdentityEnum) ) + +#define IIdentityProvider_Create(This,lpszUserName,ppPropertyStore,pKeywordsToAdd) \ + ( (This)->lpVtbl -> Create(This,lpszUserName,ppPropertyStore,pKeywordsToAdd) ) + +#define IIdentityProvider_Import(This,pPropertyStore) \ + ( (This)->lpVtbl -> Import(This,pPropertyStore) ) + +#define IIdentityProvider_Delete(This,lpszUniqueID,pKeywordsToDelete) \ + ( (This)->lpVtbl -> Delete(This,lpszUniqueID,pKeywordsToDelete) ) + +#define IIdentityProvider_FindByUniqueID(This,lpszUniqueID,ppPropertyStore) \ + ( (This)->lpVtbl -> FindByUniqueID(This,lpszUniqueID,ppPropertyStore) ) + +#define IIdentityProvider_GetProviderPropertyStore(This,ppPropertyStore) \ + ( (This)->lpVtbl -> GetProviderPropertyStore(This,ppPropertyStore) ) + +#define IIdentityProvider_Advise(This,pIdentityAdvise,dwIdentityUpdateEvents,pdwCookie) \ + ( (This)->lpVtbl -> Advise(This,pIdentityAdvise,dwIdentityUpdateEvents,pdwCookie) ) + +#define IIdentityProvider_UnAdvise(This,dwCookie) \ + ( (This)->lpVtbl -> UnAdvise(This,dwCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIdentityProvider_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIIdentityProvider_INTERFACE_DEFINED__ +#define __AsyncIIdentityProvider_INTERFACE_DEFINED__ + +/* interface AsyncIIdentityProvider */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_AsyncIIdentityProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c6fc9901-c433-4646-8f48-4e4687aae2a0") + AsyncIIdentityProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_GetIdentityEnum( + /* [in] */ const IDENTITY_TYPE eIdentityType, + /* [unique][in] */ __RPC__in_opt const PROPERTYKEY *pFilterkey, + /* [unique][in] */ __RPC__in_opt const PROPVARIANT *pFilterPropVarValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_GetIdentityEnum( + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppIdentityEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_Create( + /* [in] */ __RPC__in LPCWSTR lpszUserName, + /* [in] */ __RPC__in const PROPVARIANT *pKeywordsToAdd) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_Create( + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_Import( + /* [in] */ __RPC__in_opt IPropertyStore *pPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_Import( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_Delete( + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in const PROPVARIANT *pKeywordsToDelete) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_Delete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_FindByUniqueID( + /* [in] */ __RPC__in LPCWSTR lpszUniqueID) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_FindByUniqueID( + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_GetProviderPropertyStore( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_GetProviderPropertyStore( + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_Advise( + /* [in] */ __RPC__in_opt IIdentityAdvise *pIdentityAdvise, + /* [in] */ DWORD dwIdentityUpdateEvents) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_Advise( + /* [out] */ __RPC__out DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_UnAdvise( + /* [in] */ const DWORD dwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_UnAdvise( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIIdentityProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIIdentityProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIIdentityProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Begin_GetIdentityEnum) + HRESULT ( STDMETHODCALLTYPE *Begin_GetIdentityEnum )( + __RPC__in AsyncIIdentityProvider * This, + /* [in] */ const IDENTITY_TYPE eIdentityType, + /* [unique][in] */ __RPC__in_opt const PROPERTYKEY *pFilterkey, + /* [unique][in] */ __RPC__in_opt const PROPVARIANT *pFilterPropVarValue); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Finish_GetIdentityEnum) + HRESULT ( STDMETHODCALLTYPE *Finish_GetIdentityEnum )( + __RPC__in AsyncIIdentityProvider * This, + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppIdentityEnum); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Begin_Create) + HRESULT ( STDMETHODCALLTYPE *Begin_Create )( + __RPC__in AsyncIIdentityProvider * This, + /* [in] */ __RPC__in LPCWSTR lpszUserName, + /* [in] */ __RPC__in const PROPVARIANT *pKeywordsToAdd); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Finish_Create) + HRESULT ( STDMETHODCALLTYPE *Finish_Create )( + __RPC__in AsyncIIdentityProvider * This, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Begin_Import) + HRESULT ( STDMETHODCALLTYPE *Begin_Import )( + __RPC__in AsyncIIdentityProvider * This, + /* [in] */ __RPC__in_opt IPropertyStore *pPropertyStore); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Finish_Import) + HRESULT ( STDMETHODCALLTYPE *Finish_Import )( + __RPC__in AsyncIIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Begin_Delete) + HRESULT ( STDMETHODCALLTYPE *Begin_Delete )( + __RPC__in AsyncIIdentityProvider * This, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in const PROPVARIANT *pKeywordsToDelete); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Finish_Delete) + HRESULT ( STDMETHODCALLTYPE *Finish_Delete )( + __RPC__in AsyncIIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Begin_FindByUniqueID) + HRESULT ( STDMETHODCALLTYPE *Begin_FindByUniqueID )( + __RPC__in AsyncIIdentityProvider * This, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Finish_FindByUniqueID) + HRESULT ( STDMETHODCALLTYPE *Finish_FindByUniqueID )( + __RPC__in AsyncIIdentityProvider * This, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Begin_GetProviderPropertyStore) + HRESULT ( STDMETHODCALLTYPE *Begin_GetProviderPropertyStore )( + __RPC__in AsyncIIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Finish_GetProviderPropertyStore) + HRESULT ( STDMETHODCALLTYPE *Finish_GetProviderPropertyStore )( + __RPC__in AsyncIIdentityProvider * This, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Begin_Advise) + HRESULT ( STDMETHODCALLTYPE *Begin_Advise )( + __RPC__in AsyncIIdentityProvider * This, + /* [in] */ __RPC__in_opt IIdentityAdvise *pIdentityAdvise, + /* [in] */ DWORD dwIdentityUpdateEvents); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Finish_Advise) + HRESULT ( STDMETHODCALLTYPE *Finish_Advise )( + __RPC__in AsyncIIdentityProvider * This, + /* [out] */ __RPC__out DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Begin_UnAdvise) + HRESULT ( STDMETHODCALLTYPE *Begin_UnAdvise )( + __RPC__in AsyncIIdentityProvider * This, + /* [in] */ const DWORD dwCookie); + + DECLSPEC_XFGVIRT(AsyncIIdentityProvider, Finish_UnAdvise) + HRESULT ( STDMETHODCALLTYPE *Finish_UnAdvise )( + __RPC__in AsyncIIdentityProvider * This); + + END_INTERFACE + } AsyncIIdentityProviderVtbl; + + interface AsyncIIdentityProvider + { + CONST_VTBL struct AsyncIIdentityProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIIdentityProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIIdentityProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIIdentityProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIIdentityProvider_Begin_GetIdentityEnum(This,eIdentityType,pFilterkey,pFilterPropVarValue) \ + ( (This)->lpVtbl -> Begin_GetIdentityEnum(This,eIdentityType,pFilterkey,pFilterPropVarValue) ) + +#define AsyncIIdentityProvider_Finish_GetIdentityEnum(This,ppIdentityEnum) \ + ( (This)->lpVtbl -> Finish_GetIdentityEnum(This,ppIdentityEnum) ) + +#define AsyncIIdentityProvider_Begin_Create(This,lpszUserName,pKeywordsToAdd) \ + ( (This)->lpVtbl -> Begin_Create(This,lpszUserName,pKeywordsToAdd) ) + +#define AsyncIIdentityProvider_Finish_Create(This,ppPropertyStore) \ + ( (This)->lpVtbl -> Finish_Create(This,ppPropertyStore) ) + +#define AsyncIIdentityProvider_Begin_Import(This,pPropertyStore) \ + ( (This)->lpVtbl -> Begin_Import(This,pPropertyStore) ) + +#define AsyncIIdentityProvider_Finish_Import(This) \ + ( (This)->lpVtbl -> Finish_Import(This) ) + +#define AsyncIIdentityProvider_Begin_Delete(This,lpszUniqueID,pKeywordsToDelete) \ + ( (This)->lpVtbl -> Begin_Delete(This,lpszUniqueID,pKeywordsToDelete) ) + +#define AsyncIIdentityProvider_Finish_Delete(This) \ + ( (This)->lpVtbl -> Finish_Delete(This) ) + +#define AsyncIIdentityProvider_Begin_FindByUniqueID(This,lpszUniqueID) \ + ( (This)->lpVtbl -> Begin_FindByUniqueID(This,lpszUniqueID) ) + +#define AsyncIIdentityProvider_Finish_FindByUniqueID(This,ppPropertyStore) \ + ( (This)->lpVtbl -> Finish_FindByUniqueID(This,ppPropertyStore) ) + +#define AsyncIIdentityProvider_Begin_GetProviderPropertyStore(This) \ + ( (This)->lpVtbl -> Begin_GetProviderPropertyStore(This) ) + +#define AsyncIIdentityProvider_Finish_GetProviderPropertyStore(This,ppPropertyStore) \ + ( (This)->lpVtbl -> Finish_GetProviderPropertyStore(This,ppPropertyStore) ) + +#define AsyncIIdentityProvider_Begin_Advise(This,pIdentityAdvise,dwIdentityUpdateEvents) \ + ( (This)->lpVtbl -> Begin_Advise(This,pIdentityAdvise,dwIdentityUpdateEvents) ) + +#define AsyncIIdentityProvider_Finish_Advise(This,pdwCookie) \ + ( (This)->lpVtbl -> Finish_Advise(This,pdwCookie) ) + +#define AsyncIIdentityProvider_Begin_UnAdvise(This,dwCookie) \ + ( (This)->lpVtbl -> Begin_UnAdvise(This,dwCookie) ) + +#define AsyncIIdentityProvider_Finish_UnAdvise(This) \ + ( (This)->lpVtbl -> Finish_UnAdvise(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIIdentityProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IAssociatedIdentityProvider_INTERFACE_DEFINED__ +#define __IAssociatedIdentityProvider_INTERFACE_DEFINED__ + +/* interface IAssociatedIdentityProvider */ +/* [unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IAssociatedIdentityProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2af066b3-4cbb-4cba-a798-204b6af68cc0") + IAssociatedIdentityProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AssociateIdentity( + /* [in] */ __RPC__in HWND hwndParent, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisassociateIdentity( + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID) = 0; + + virtual HRESULT STDMETHODCALLTYPE ChangeCredential( + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAssociatedIdentityProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAssociatedIdentityProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAssociatedIdentityProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAssociatedIdentityProvider * This); + + DECLSPEC_XFGVIRT(IAssociatedIdentityProvider, AssociateIdentity) + HRESULT ( STDMETHODCALLTYPE *AssociateIdentity )( + __RPC__in IAssociatedIdentityProvider * This, + /* [in] */ __RPC__in HWND hwndParent, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore); + + DECLSPEC_XFGVIRT(IAssociatedIdentityProvider, DisassociateIdentity) + HRESULT ( STDMETHODCALLTYPE *DisassociateIdentity )( + __RPC__in IAssociatedIdentityProvider * This, + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID); + + DECLSPEC_XFGVIRT(IAssociatedIdentityProvider, ChangeCredential) + HRESULT ( STDMETHODCALLTYPE *ChangeCredential )( + __RPC__in IAssociatedIdentityProvider * This, + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID); + + END_INTERFACE + } IAssociatedIdentityProviderVtbl; + + interface IAssociatedIdentityProvider + { + CONST_VTBL struct IAssociatedIdentityProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAssociatedIdentityProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAssociatedIdentityProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAssociatedIdentityProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAssociatedIdentityProvider_AssociateIdentity(This,hwndParent,ppPropertyStore) \ + ( (This)->lpVtbl -> AssociateIdentity(This,hwndParent,ppPropertyStore) ) + +#define IAssociatedIdentityProvider_DisassociateIdentity(This,hwndParent,lpszUniqueID) \ + ( (This)->lpVtbl -> DisassociateIdentity(This,hwndParent,lpszUniqueID) ) + +#define IAssociatedIdentityProvider_ChangeCredential(This,hwndParent,lpszUniqueID) \ + ( (This)->lpVtbl -> ChangeCredential(This,hwndParent,lpszUniqueID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAssociatedIdentityProvider_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIAssociatedIdentityProvider_INTERFACE_DEFINED__ +#define __AsyncIAssociatedIdentityProvider_INTERFACE_DEFINED__ + +/* interface AsyncIAssociatedIdentityProvider */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_AsyncIAssociatedIdentityProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2834d6ed-297e-4e72-8a51-961e86f05152") + AsyncIAssociatedIdentityProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_AssociateIdentity( + /* [in] */ __RPC__in HWND hwndParent) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_AssociateIdentity( + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_DisassociateIdentity( + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_DisassociateIdentity( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_ChangeCredential( + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_ChangeCredential( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIAssociatedIdentityProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIAssociatedIdentityProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIAssociatedIdentityProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIAssociatedIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIAssociatedIdentityProvider, Begin_AssociateIdentity) + HRESULT ( STDMETHODCALLTYPE *Begin_AssociateIdentity )( + __RPC__in AsyncIAssociatedIdentityProvider * This, + /* [in] */ __RPC__in HWND hwndParent); + + DECLSPEC_XFGVIRT(AsyncIAssociatedIdentityProvider, Finish_AssociateIdentity) + HRESULT ( STDMETHODCALLTYPE *Finish_AssociateIdentity )( + __RPC__in AsyncIAssociatedIdentityProvider * This, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppPropertyStore); + + DECLSPEC_XFGVIRT(AsyncIAssociatedIdentityProvider, Begin_DisassociateIdentity) + HRESULT ( STDMETHODCALLTYPE *Begin_DisassociateIdentity )( + __RPC__in AsyncIAssociatedIdentityProvider * This, + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID); + + DECLSPEC_XFGVIRT(AsyncIAssociatedIdentityProvider, Finish_DisassociateIdentity) + HRESULT ( STDMETHODCALLTYPE *Finish_DisassociateIdentity )( + __RPC__in AsyncIAssociatedIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIAssociatedIdentityProvider, Begin_ChangeCredential) + HRESULT ( STDMETHODCALLTYPE *Begin_ChangeCredential )( + __RPC__in AsyncIAssociatedIdentityProvider * This, + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID); + + DECLSPEC_XFGVIRT(AsyncIAssociatedIdentityProvider, Finish_ChangeCredential) + HRESULT ( STDMETHODCALLTYPE *Finish_ChangeCredential )( + __RPC__in AsyncIAssociatedIdentityProvider * This); + + END_INTERFACE + } AsyncIAssociatedIdentityProviderVtbl; + + interface AsyncIAssociatedIdentityProvider + { + CONST_VTBL struct AsyncIAssociatedIdentityProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIAssociatedIdentityProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIAssociatedIdentityProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIAssociatedIdentityProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIAssociatedIdentityProvider_Begin_AssociateIdentity(This,hwndParent) \ + ( (This)->lpVtbl -> Begin_AssociateIdentity(This,hwndParent) ) + +#define AsyncIAssociatedIdentityProvider_Finish_AssociateIdentity(This,ppPropertyStore) \ + ( (This)->lpVtbl -> Finish_AssociateIdentity(This,ppPropertyStore) ) + +#define AsyncIAssociatedIdentityProvider_Begin_DisassociateIdentity(This,hwndParent,lpszUniqueID) \ + ( (This)->lpVtbl -> Begin_DisassociateIdentity(This,hwndParent,lpszUniqueID) ) + +#define AsyncIAssociatedIdentityProvider_Finish_DisassociateIdentity(This) \ + ( (This)->lpVtbl -> Finish_DisassociateIdentity(This) ) + +#define AsyncIAssociatedIdentityProvider_Begin_ChangeCredential(This,hwndParent,lpszUniqueID) \ + ( (This)->lpVtbl -> Begin_ChangeCredential(This,hwndParent,lpszUniqueID) ) + +#define AsyncIAssociatedIdentityProvider_Finish_ChangeCredential(This) \ + ( (This)->lpVtbl -> Finish_ChangeCredential(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIAssociatedIdentityProvider_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_identityprovider_0000_0003 */ +/* [local] */ + +typedef /* [public][public][public][v1_enum] */ +enum __MIDL___MIDL_itf_identityprovider_0000_0003_0001 + { + IDENTITY_URL_CREATE_ACCOUNT_WIZARD = 0, + IDENTITY_URL_SIGN_IN_WIZARD = 1, + IDENTITY_URL_CHANGE_PASSWORD_WIZARD = 2, + IDENTITY_URL_IFEXISTS_WIZARD = 3, + IDENTITY_URL_ACCOUNT_SETTINGS = 4, + IDENTITY_URL_RESTORE_WIZARD = 5, + IDENTITY_URL_CONNECT_WIZARD = 6 + } IDENTITY_URL; + +#define STR_OUT_OF_BOX_EXPERIENCE L"OutOfBoxExperience" +#define STR_MODERN_SETTINGS_ADD_USER L"ModernSettingsAddUser" +#define STR_OUT_OF_BOX_UPGRADE_EXPERIENCE L"OutOfBoxUpgradeExperience" +#define STR_COMPLETE_ACCOUNT L"CompleteAccount" +#define STR_NTH_USER_FIRST_AUTH L"NthUserFirstAuth" +#define STR_USER_NAME L"Username" +#define STR_PROPERTY_STORE L"PropertyStore" +typedef /* [public][public][public][v1_enum] */ +enum __MIDL___MIDL_itf_identityprovider_0000_0003_0002 + { + NOT_CONNECTED = 0, + CONNECTING = 1, + CONNECT_COMPLETED = 2 + } ACCOUNT_STATE; + + + +extern RPC_IF_HANDLE __MIDL_itf_identityprovider_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_identityprovider_0000_0003_v0_0_s_ifspec; + +#ifndef __IConnectedIdentityProvider_INTERFACE_DEFINED__ +#define __IConnectedIdentityProvider_INTERFACE_DEFINED__ + +/* interface IConnectedIdentityProvider */ +/* [unique][helpstring][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IConnectedIdentityProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B7417B54-E08C-429b-96C8-678D1369ECB1") + IConnectedIdentityProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ConnectIdentity( + /* [ref][size_is][in] */ __RPC__in_ecount_full(AuthBufferSize) BYTE *AuthBuffer, + /* [in] */ ULONG AuthBufferSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisconnectIdentity( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsConnected( + /* [ref][out] */ __RPC__out BOOL *Connected) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUrl( + /* [in] */ IDENTITY_URL Identifier, + /* [unique][in] */ __RPC__in_opt IBindCtx *Context, + /* [out] */ __RPC__out VARIANT *PostData, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *Url) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAccountState( + /* [out] */ __RPC__out ACCOUNT_STATE *pState) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IConnectedIdentityProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IConnectedIdentityProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IConnectedIdentityProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IConnectedIdentityProvider * This); + + DECLSPEC_XFGVIRT(IConnectedIdentityProvider, ConnectIdentity) + HRESULT ( STDMETHODCALLTYPE *ConnectIdentity )( + __RPC__in IConnectedIdentityProvider * This, + /* [ref][size_is][in] */ __RPC__in_ecount_full(AuthBufferSize) BYTE *AuthBuffer, + /* [in] */ ULONG AuthBufferSize); + + DECLSPEC_XFGVIRT(IConnectedIdentityProvider, DisconnectIdentity) + HRESULT ( STDMETHODCALLTYPE *DisconnectIdentity )( + __RPC__in IConnectedIdentityProvider * This); + + DECLSPEC_XFGVIRT(IConnectedIdentityProvider, IsConnected) + HRESULT ( STDMETHODCALLTYPE *IsConnected )( + __RPC__in IConnectedIdentityProvider * This, + /* [ref][out] */ __RPC__out BOOL *Connected); + + DECLSPEC_XFGVIRT(IConnectedIdentityProvider, GetUrl) + HRESULT ( STDMETHODCALLTYPE *GetUrl )( + __RPC__in IConnectedIdentityProvider * This, + /* [in] */ IDENTITY_URL Identifier, + /* [unique][in] */ __RPC__in_opt IBindCtx *Context, + /* [out] */ __RPC__out VARIANT *PostData, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *Url); + + DECLSPEC_XFGVIRT(IConnectedIdentityProvider, GetAccountState) + HRESULT ( STDMETHODCALLTYPE *GetAccountState )( + __RPC__in IConnectedIdentityProvider * This, + /* [out] */ __RPC__out ACCOUNT_STATE *pState); + + END_INTERFACE + } IConnectedIdentityProviderVtbl; + + interface IConnectedIdentityProvider + { + CONST_VTBL struct IConnectedIdentityProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IConnectedIdentityProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IConnectedIdentityProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IConnectedIdentityProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IConnectedIdentityProvider_ConnectIdentity(This,AuthBuffer,AuthBufferSize) \ + ( (This)->lpVtbl -> ConnectIdentity(This,AuthBuffer,AuthBufferSize) ) + +#define IConnectedIdentityProvider_DisconnectIdentity(This) \ + ( (This)->lpVtbl -> DisconnectIdentity(This) ) + +#define IConnectedIdentityProvider_IsConnected(This,Connected) \ + ( (This)->lpVtbl -> IsConnected(This,Connected) ) + +#define IConnectedIdentityProvider_GetUrl(This,Identifier,Context,PostData,Url) \ + ( (This)->lpVtbl -> GetUrl(This,Identifier,Context,PostData,Url) ) + +#define IConnectedIdentityProvider_GetAccountState(This,pState) \ + ( (This)->lpVtbl -> GetAccountState(This,pState) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IConnectedIdentityProvider_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIConnectedIdentityProvider_INTERFACE_DEFINED__ +#define __AsyncIConnectedIdentityProvider_INTERFACE_DEFINED__ + +/* interface AsyncIConnectedIdentityProvider */ +/* [uuid][unique][helpstring][object] */ + + +EXTERN_C const IID IID_AsyncIConnectedIdentityProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9CE55141-BCE9-4E15-824D-43D79F512F93") + AsyncIConnectedIdentityProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_ConnectIdentity( + /* [ref][size_is][in] */ __RPC__in_xcount_full(AuthBufferSize) BYTE *AuthBuffer, + /* [in] */ ULONG AuthBufferSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_ConnectIdentity( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_DisconnectIdentity( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_DisconnectIdentity( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_IsConnected( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_IsConnected( + /* [ref][out] */ __RPC__out BOOL *Connected) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_GetUrl( + /* [in] */ IDENTITY_URL Identifier, + /* [unique][in] */ __RPC__in_opt IBindCtx *Context) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_GetUrl( + /* [out] */ __RPC__out VARIANT *PostData, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *Url) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_GetAccountState( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_GetAccountState( + /* [out] */ __RPC__out ACCOUNT_STATE *pState) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIConnectedIdentityProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIConnectedIdentityProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIConnectedIdentityProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIConnectedIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIConnectedIdentityProvider, Begin_ConnectIdentity) + HRESULT ( STDMETHODCALLTYPE *Begin_ConnectIdentity )( + __RPC__in AsyncIConnectedIdentityProvider * This, + /* [ref][size_is][in] */ __RPC__in_xcount_full(AuthBufferSize) BYTE *AuthBuffer, + /* [in] */ ULONG AuthBufferSize); + + DECLSPEC_XFGVIRT(AsyncIConnectedIdentityProvider, Finish_ConnectIdentity) + HRESULT ( STDMETHODCALLTYPE *Finish_ConnectIdentity )( + __RPC__in AsyncIConnectedIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIConnectedIdentityProvider, Begin_DisconnectIdentity) + HRESULT ( STDMETHODCALLTYPE *Begin_DisconnectIdentity )( + __RPC__in AsyncIConnectedIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIConnectedIdentityProvider, Finish_DisconnectIdentity) + HRESULT ( STDMETHODCALLTYPE *Finish_DisconnectIdentity )( + __RPC__in AsyncIConnectedIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIConnectedIdentityProvider, Begin_IsConnected) + HRESULT ( STDMETHODCALLTYPE *Begin_IsConnected )( + __RPC__in AsyncIConnectedIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIConnectedIdentityProvider, Finish_IsConnected) + HRESULT ( STDMETHODCALLTYPE *Finish_IsConnected )( + __RPC__in AsyncIConnectedIdentityProvider * This, + /* [ref][out] */ __RPC__out BOOL *Connected); + + DECLSPEC_XFGVIRT(AsyncIConnectedIdentityProvider, Begin_GetUrl) + HRESULT ( STDMETHODCALLTYPE *Begin_GetUrl )( + __RPC__in AsyncIConnectedIdentityProvider * This, + /* [in] */ IDENTITY_URL Identifier, + /* [unique][in] */ __RPC__in_opt IBindCtx *Context); + + DECLSPEC_XFGVIRT(AsyncIConnectedIdentityProvider, Finish_GetUrl) + HRESULT ( STDMETHODCALLTYPE *Finish_GetUrl )( + __RPC__in AsyncIConnectedIdentityProvider * This, + /* [out] */ __RPC__out VARIANT *PostData, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *Url); + + DECLSPEC_XFGVIRT(AsyncIConnectedIdentityProvider, Begin_GetAccountState) + HRESULT ( STDMETHODCALLTYPE *Begin_GetAccountState )( + __RPC__in AsyncIConnectedIdentityProvider * This); + + DECLSPEC_XFGVIRT(AsyncIConnectedIdentityProvider, Finish_GetAccountState) + HRESULT ( STDMETHODCALLTYPE *Finish_GetAccountState )( + __RPC__in AsyncIConnectedIdentityProvider * This, + /* [out] */ __RPC__out ACCOUNT_STATE *pState); + + END_INTERFACE + } AsyncIConnectedIdentityProviderVtbl; + + interface AsyncIConnectedIdentityProvider + { + CONST_VTBL struct AsyncIConnectedIdentityProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIConnectedIdentityProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIConnectedIdentityProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIConnectedIdentityProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIConnectedIdentityProvider_Begin_ConnectIdentity(This,AuthBuffer,AuthBufferSize) \ + ( (This)->lpVtbl -> Begin_ConnectIdentity(This,AuthBuffer,AuthBufferSize) ) + +#define AsyncIConnectedIdentityProvider_Finish_ConnectIdentity(This) \ + ( (This)->lpVtbl -> Finish_ConnectIdentity(This) ) + +#define AsyncIConnectedIdentityProvider_Begin_DisconnectIdentity(This) \ + ( (This)->lpVtbl -> Begin_DisconnectIdentity(This) ) + +#define AsyncIConnectedIdentityProvider_Finish_DisconnectIdentity(This) \ + ( (This)->lpVtbl -> Finish_DisconnectIdentity(This) ) + +#define AsyncIConnectedIdentityProvider_Begin_IsConnected(This) \ + ( (This)->lpVtbl -> Begin_IsConnected(This) ) + +#define AsyncIConnectedIdentityProvider_Finish_IsConnected(This,Connected) \ + ( (This)->lpVtbl -> Finish_IsConnected(This,Connected) ) + +#define AsyncIConnectedIdentityProvider_Begin_GetUrl(This,Identifier,Context) \ + ( (This)->lpVtbl -> Begin_GetUrl(This,Identifier,Context) ) + +#define AsyncIConnectedIdentityProvider_Finish_GetUrl(This,PostData,Url) \ + ( (This)->lpVtbl -> Finish_GetUrl(This,PostData,Url) ) + +#define AsyncIConnectedIdentityProvider_Begin_GetAccountState(This) \ + ( (This)->lpVtbl -> Begin_GetAccountState(This) ) + +#define AsyncIConnectedIdentityProvider_Finish_GetAccountState(This,pState) \ + ( (This)->lpVtbl -> Finish_GetAccountState(This,pState) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIConnectedIdentityProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IIdentityAuthentication_INTERFACE_DEFINED__ +#define __IIdentityAuthentication_INTERFACE_DEFINED__ + +/* interface IIdentityAuthentication */ +/* [unique][helpstring][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IIdentityAuthentication; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5E7EF254-979F-43b5-B74E-06E4EB7DF0F9") + IIdentityAuthentication : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetIdentityCredential( + /* [unique][size_is][in] */ __RPC__in_ecount_full_opt(CredBufferLength) BYTE *CredBuffer, + /* [in] */ ULONG CredBufferLength) = 0; + + virtual HRESULT STDMETHODCALLTYPE ValidateIdentityCredential( + /* [ref][size_is][in] */ __RPC__in_ecount_full(CredBufferLength) BYTE *CredBuffer, + /* [in] */ ULONG CredBufferLength, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IPropertyStore **ppIdentityProperties) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIdentityAuthenticationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIdentityAuthentication * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIdentityAuthentication * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIdentityAuthentication * This); + + DECLSPEC_XFGVIRT(IIdentityAuthentication, SetIdentityCredential) + HRESULT ( STDMETHODCALLTYPE *SetIdentityCredential )( + __RPC__in IIdentityAuthentication * This, + /* [unique][size_is][in] */ __RPC__in_ecount_full_opt(CredBufferLength) BYTE *CredBuffer, + /* [in] */ ULONG CredBufferLength); + + DECLSPEC_XFGVIRT(IIdentityAuthentication, ValidateIdentityCredential) + HRESULT ( STDMETHODCALLTYPE *ValidateIdentityCredential )( + __RPC__in IIdentityAuthentication * This, + /* [ref][size_is][in] */ __RPC__in_ecount_full(CredBufferLength) BYTE *CredBuffer, + /* [in] */ ULONG CredBufferLength, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IPropertyStore **ppIdentityProperties); + + END_INTERFACE + } IIdentityAuthenticationVtbl; + + interface IIdentityAuthentication + { + CONST_VTBL struct IIdentityAuthenticationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIdentityAuthentication_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIdentityAuthentication_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIdentityAuthentication_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIdentityAuthentication_SetIdentityCredential(This,CredBuffer,CredBufferLength) \ + ( (This)->lpVtbl -> SetIdentityCredential(This,CredBuffer,CredBufferLength) ) + +#define IIdentityAuthentication_ValidateIdentityCredential(This,CredBuffer,CredBufferLength,ppIdentityProperties) \ + ( (This)->lpVtbl -> ValidateIdentityCredential(This,CredBuffer,CredBufferLength,ppIdentityProperties) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIdentityAuthentication_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIIdentityAuthentication_INTERFACE_DEFINED__ +#define __AsyncIIdentityAuthentication_INTERFACE_DEFINED__ + +/* interface AsyncIIdentityAuthentication */ +/* [uuid][unique][helpstring][object] */ + + +EXTERN_C const IID IID_AsyncIIdentityAuthentication; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F9A2F918-FECA-4e9c-9633-61CBF13ED34D") + AsyncIIdentityAuthentication : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_SetIdentityCredential( + /* [unique][size_is][in] */ __RPC__in_xcount_full_opt(CredBufferLength) BYTE *CredBuffer, + /* [in] */ ULONG CredBufferLength) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_SetIdentityCredential( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_ValidateIdentityCredential( + /* [ref][size_is][in] */ __RPC__in_xcount_full(CredBufferLength) BYTE *CredBuffer, + /* [in] */ ULONG CredBufferLength, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IPropertyStore **ppIdentityProperties) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_ValidateIdentityCredential( + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IPropertyStore **ppIdentityProperties) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIIdentityAuthenticationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIIdentityAuthentication * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIIdentityAuthentication * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIIdentityAuthentication * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityAuthentication, Begin_SetIdentityCredential) + HRESULT ( STDMETHODCALLTYPE *Begin_SetIdentityCredential )( + __RPC__in AsyncIIdentityAuthentication * This, + /* [unique][size_is][in] */ __RPC__in_xcount_full_opt(CredBufferLength) BYTE *CredBuffer, + /* [in] */ ULONG CredBufferLength); + + DECLSPEC_XFGVIRT(AsyncIIdentityAuthentication, Finish_SetIdentityCredential) + HRESULT ( STDMETHODCALLTYPE *Finish_SetIdentityCredential )( + __RPC__in AsyncIIdentityAuthentication * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityAuthentication, Begin_ValidateIdentityCredential) + HRESULT ( STDMETHODCALLTYPE *Begin_ValidateIdentityCredential )( + __RPC__in AsyncIIdentityAuthentication * This, + /* [ref][size_is][in] */ __RPC__in_xcount_full(CredBufferLength) BYTE *CredBuffer, + /* [in] */ ULONG CredBufferLength, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IPropertyStore **ppIdentityProperties); + + DECLSPEC_XFGVIRT(AsyncIIdentityAuthentication, Finish_ValidateIdentityCredential) + HRESULT ( STDMETHODCALLTYPE *Finish_ValidateIdentityCredential )( + __RPC__in AsyncIIdentityAuthentication * This, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IPropertyStore **ppIdentityProperties); + + END_INTERFACE + } AsyncIIdentityAuthenticationVtbl; + + interface AsyncIIdentityAuthentication + { + CONST_VTBL struct AsyncIIdentityAuthenticationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIIdentityAuthentication_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIIdentityAuthentication_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIIdentityAuthentication_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIIdentityAuthentication_Begin_SetIdentityCredential(This,CredBuffer,CredBufferLength) \ + ( (This)->lpVtbl -> Begin_SetIdentityCredential(This,CredBuffer,CredBufferLength) ) + +#define AsyncIIdentityAuthentication_Finish_SetIdentityCredential(This) \ + ( (This)->lpVtbl -> Finish_SetIdentityCredential(This) ) + +#define AsyncIIdentityAuthentication_Begin_ValidateIdentityCredential(This,CredBuffer,CredBufferLength,ppIdentityProperties) \ + ( (This)->lpVtbl -> Begin_ValidateIdentityCredential(This,CredBuffer,CredBufferLength,ppIdentityProperties) ) + +#define AsyncIIdentityAuthentication_Finish_ValidateIdentityCredential(This,ppIdentityProperties) \ + ( (This)->lpVtbl -> Finish_ValidateIdentityCredential(This,ppIdentityProperties) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIIdentityAuthentication_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_identityprovider_0000_0005 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_identityprovider_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_identityprovider_0000_0005_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IdentityStore.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IdentityStore.h new file mode 100644 index 0000000000000000000000000000000000000000..4b71a29125f0b6b2edeeec4c39a8db1c4710110e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IdentityStore.h @@ -0,0 +1,783 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __identitystore_h__ +#define __identitystore_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IIdentityStore_FWD_DEFINED__ +#define __IIdentityStore_FWD_DEFINED__ +typedef interface IIdentityStore IIdentityStore; + +#endif /* __IIdentityStore_FWD_DEFINED__ */ + + +#ifndef __AsyncIIdentityStore_FWD_DEFINED__ +#define __AsyncIIdentityStore_FWD_DEFINED__ +typedef interface AsyncIIdentityStore AsyncIIdentityStore; + +#endif /* __AsyncIIdentityStore_FWD_DEFINED__ */ + + +#ifndef __IIdentityStoreEx_FWD_DEFINED__ +#define __IIdentityStoreEx_FWD_DEFINED__ +typedef interface IIdentityStoreEx IIdentityStoreEx; + +#endif /* __IIdentityStoreEx_FWD_DEFINED__ */ + + +#ifndef __AsyncIIdentityStoreEx_FWD_DEFINED__ +#define __AsyncIIdentityStoreEx_FWD_DEFINED__ +typedef interface AsyncIIdentityStoreEx AsyncIIdentityStoreEx; + +#endif /* __AsyncIIdentityStoreEx_FWD_DEFINED__ */ + + +#ifndef __CoClassIdentityStore_FWD_DEFINED__ +#define __CoClassIdentityStore_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CoClassIdentityStore CoClassIdentityStore; +#else +typedef struct CoClassIdentityStore CoClassIdentityStore; +#endif /* __cplusplus */ + +#endif /* __CoClassIdentityStore_FWD_DEFINED__ */ + + +#ifndef __CIdentityProfileHandler_FWD_DEFINED__ +#define __CIdentityProfileHandler_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CIdentityProfileHandler CIdentityProfileHandler; +#else +typedef struct CIdentityProfileHandler CIdentityProfileHandler; +#endif /* __cplusplus */ + +#endif /* __CIdentityProfileHandler_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "propsys.h" +#include "IdentityCommon.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_identitystore_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_identitystore_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_identitystore_0000_0000_v0_0_s_ifspec; + +#ifndef __IIdentityStore_INTERFACE_DEFINED__ +#define __IIdentityStore_INTERFACE_DEFINED__ + +/* interface IIdentityStore */ +/* [unique][helpstring][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IIdentityStore; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("df586fa5-6f35-44f1-b209-b38e169772eb") + IIdentityStore : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out DWORD *pdwProviders) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAt( + /* [in] */ const DWORD dwProvider, + /* [unique][out][in] */ __RPC__inout_opt GUID *pProvGuid, + /* [out] */ __RPC__deref_out_opt IUnknown **ppIdentityProvider) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddToCache( + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in REFGUID ProviderGUID) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertToSid( + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in REFGUID ProviderGUID, + /* [in] */ USHORT cbSid, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(cbSid) BYTE *pSid, + /* [out] */ __RPC__out USHORT *pcbRequiredSid) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateIdentities( + /* [in] */ const IDENTITY_TYPE eIdentityType, + /* [unique][in] */ __RPC__in_opt const PROPERTYKEY *pFilterkey, + /* [unique][in] */ __RPC__in_opt const PROPVARIANT *pFilterPropVarValue, + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppIdentityEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIdentityStoreVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIdentityStore * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIdentityStore * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIdentityStore * This); + + DECLSPEC_XFGVIRT(IIdentityStore, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IIdentityStore * This, + /* [out] */ __RPC__out DWORD *pdwProviders); + + DECLSPEC_XFGVIRT(IIdentityStore, GetAt) + HRESULT ( STDMETHODCALLTYPE *GetAt )( + __RPC__in IIdentityStore * This, + /* [in] */ const DWORD dwProvider, + /* [unique][out][in] */ __RPC__inout_opt GUID *pProvGuid, + /* [out] */ __RPC__deref_out_opt IUnknown **ppIdentityProvider); + + DECLSPEC_XFGVIRT(IIdentityStore, AddToCache) + HRESULT ( STDMETHODCALLTYPE *AddToCache )( + __RPC__in IIdentityStore * This, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in REFGUID ProviderGUID); + + DECLSPEC_XFGVIRT(IIdentityStore, ConvertToSid) + HRESULT ( STDMETHODCALLTYPE *ConvertToSid )( + __RPC__in IIdentityStore * This, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in REFGUID ProviderGUID, + /* [in] */ USHORT cbSid, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(cbSid) BYTE *pSid, + /* [out] */ __RPC__out USHORT *pcbRequiredSid); + + DECLSPEC_XFGVIRT(IIdentityStore, EnumerateIdentities) + HRESULT ( STDMETHODCALLTYPE *EnumerateIdentities )( + __RPC__in IIdentityStore * This, + /* [in] */ const IDENTITY_TYPE eIdentityType, + /* [unique][in] */ __RPC__in_opt const PROPERTYKEY *pFilterkey, + /* [unique][in] */ __RPC__in_opt const PROPVARIANT *pFilterPropVarValue, + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppIdentityEnum); + + DECLSPEC_XFGVIRT(IIdentityStore, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IIdentityStore * This); + + END_INTERFACE + } IIdentityStoreVtbl; + + interface IIdentityStore + { + CONST_VTBL struct IIdentityStoreVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIdentityStore_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIdentityStore_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIdentityStore_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIdentityStore_GetCount(This,pdwProviders) \ + ( (This)->lpVtbl -> GetCount(This,pdwProviders) ) + +#define IIdentityStore_GetAt(This,dwProvider,pProvGuid,ppIdentityProvider) \ + ( (This)->lpVtbl -> GetAt(This,dwProvider,pProvGuid,ppIdentityProvider) ) + +#define IIdentityStore_AddToCache(This,lpszUniqueID,ProviderGUID) \ + ( (This)->lpVtbl -> AddToCache(This,lpszUniqueID,ProviderGUID) ) + +#define IIdentityStore_ConvertToSid(This,lpszUniqueID,ProviderGUID,cbSid,pSid,pcbRequiredSid) \ + ( (This)->lpVtbl -> ConvertToSid(This,lpszUniqueID,ProviderGUID,cbSid,pSid,pcbRequiredSid) ) + +#define IIdentityStore_EnumerateIdentities(This,eIdentityType,pFilterkey,pFilterPropVarValue,ppIdentityEnum) \ + ( (This)->lpVtbl -> EnumerateIdentities(This,eIdentityType,pFilterkey,pFilterPropVarValue,ppIdentityEnum) ) + +#define IIdentityStore_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIdentityStore_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIIdentityStore_INTERFACE_DEFINED__ +#define __AsyncIIdentityStore_INTERFACE_DEFINED__ + +/* interface AsyncIIdentityStore */ +/* [uuid][unique][helpstring][object] */ + + +EXTERN_C const IID IID_AsyncIIdentityStore; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("eefa1616-48de-4872-aa64-6e6206535a51") + AsyncIIdentityStore : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_GetCount( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_GetCount( + /* [out] */ __RPC__out DWORD *pdwProviders) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_GetAt( + /* [in] */ const DWORD dwProvider, + /* [unique][out][in] */ __RPC__inout_opt GUID *pProvGuid) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_GetAt( + /* [unique][out][in] */ __RPC__inout_opt GUID *pProvGuid, + /* [out] */ __RPC__deref_out_opt IUnknown **ppIdentityProvider) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_AddToCache( + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in REFGUID ProviderGUID) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_AddToCache( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_ConvertToSid( + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in REFGUID ProviderGUID, + /* [in] */ USHORT cbSid, + /* [size_is][unique][out][in] */ __RPC__inout_xcount_full_opt(cbSid) BYTE *pSid) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_ConvertToSid( + /* [size_is][unique][out][in] */ __RPC__inout_xcount_full_opt(cbSid) BYTE *pSid, + /* [out] */ __RPC__out USHORT *pcbRequiredSid) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_EnumerateIdentities( + /* [in] */ const IDENTITY_TYPE eIdentityType, + /* [unique][in] */ __RPC__in_opt const PROPERTYKEY *pFilterkey, + /* [unique][in] */ __RPC__in_opt const PROPVARIANT *pFilterPropVarValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_EnumerateIdentities( + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppIdentityEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_Reset( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIIdentityStoreVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIIdentityStore * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIIdentityStore * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIIdentityStore * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Begin_GetCount) + HRESULT ( STDMETHODCALLTYPE *Begin_GetCount )( + __RPC__in AsyncIIdentityStore * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Finish_GetCount) + HRESULT ( STDMETHODCALLTYPE *Finish_GetCount )( + __RPC__in AsyncIIdentityStore * This, + /* [out] */ __RPC__out DWORD *pdwProviders); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Begin_GetAt) + HRESULT ( STDMETHODCALLTYPE *Begin_GetAt )( + __RPC__in AsyncIIdentityStore * This, + /* [in] */ const DWORD dwProvider, + /* [unique][out][in] */ __RPC__inout_opt GUID *pProvGuid); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Finish_GetAt) + HRESULT ( STDMETHODCALLTYPE *Finish_GetAt )( + __RPC__in AsyncIIdentityStore * This, + /* [unique][out][in] */ __RPC__inout_opt GUID *pProvGuid, + /* [out] */ __RPC__deref_out_opt IUnknown **ppIdentityProvider); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Begin_AddToCache) + HRESULT ( STDMETHODCALLTYPE *Begin_AddToCache )( + __RPC__in AsyncIIdentityStore * This, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in REFGUID ProviderGUID); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Finish_AddToCache) + HRESULT ( STDMETHODCALLTYPE *Finish_AddToCache )( + __RPC__in AsyncIIdentityStore * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Begin_ConvertToSid) + HRESULT ( STDMETHODCALLTYPE *Begin_ConvertToSid )( + __RPC__in AsyncIIdentityStore * This, + /* [in] */ __RPC__in LPCWSTR lpszUniqueID, + /* [in] */ __RPC__in REFGUID ProviderGUID, + /* [in] */ USHORT cbSid, + /* [size_is][unique][out][in] */ __RPC__inout_xcount_full_opt(cbSid) BYTE *pSid); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Finish_ConvertToSid) + HRESULT ( STDMETHODCALLTYPE *Finish_ConvertToSid )( + __RPC__in AsyncIIdentityStore * This, + /* [size_is][unique][out][in] */ __RPC__inout_xcount_full_opt(cbSid) BYTE *pSid, + /* [out] */ __RPC__out USHORT *pcbRequiredSid); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Begin_EnumerateIdentities) + HRESULT ( STDMETHODCALLTYPE *Begin_EnumerateIdentities )( + __RPC__in AsyncIIdentityStore * This, + /* [in] */ const IDENTITY_TYPE eIdentityType, + /* [unique][in] */ __RPC__in_opt const PROPERTYKEY *pFilterkey, + /* [unique][in] */ __RPC__in_opt const PROPVARIANT *pFilterPropVarValue); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Finish_EnumerateIdentities) + HRESULT ( STDMETHODCALLTYPE *Finish_EnumerateIdentities )( + __RPC__in AsyncIIdentityStore * This, + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppIdentityEnum); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Begin_Reset) + HRESULT ( STDMETHODCALLTYPE *Begin_Reset )( + __RPC__in AsyncIIdentityStore * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityStore, Finish_Reset) + HRESULT ( STDMETHODCALLTYPE *Finish_Reset )( + __RPC__in AsyncIIdentityStore * This); + + END_INTERFACE + } AsyncIIdentityStoreVtbl; + + interface AsyncIIdentityStore + { + CONST_VTBL struct AsyncIIdentityStoreVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIIdentityStore_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIIdentityStore_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIIdentityStore_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIIdentityStore_Begin_GetCount(This) \ + ( (This)->lpVtbl -> Begin_GetCount(This) ) + +#define AsyncIIdentityStore_Finish_GetCount(This,pdwProviders) \ + ( (This)->lpVtbl -> Finish_GetCount(This,pdwProviders) ) + +#define AsyncIIdentityStore_Begin_GetAt(This,dwProvider,pProvGuid) \ + ( (This)->lpVtbl -> Begin_GetAt(This,dwProvider,pProvGuid) ) + +#define AsyncIIdentityStore_Finish_GetAt(This,pProvGuid,ppIdentityProvider) \ + ( (This)->lpVtbl -> Finish_GetAt(This,pProvGuid,ppIdentityProvider) ) + +#define AsyncIIdentityStore_Begin_AddToCache(This,lpszUniqueID,ProviderGUID) \ + ( (This)->lpVtbl -> Begin_AddToCache(This,lpszUniqueID,ProviderGUID) ) + +#define AsyncIIdentityStore_Finish_AddToCache(This) \ + ( (This)->lpVtbl -> Finish_AddToCache(This) ) + +#define AsyncIIdentityStore_Begin_ConvertToSid(This,lpszUniqueID,ProviderGUID,cbSid,pSid) \ + ( (This)->lpVtbl -> Begin_ConvertToSid(This,lpszUniqueID,ProviderGUID,cbSid,pSid) ) + +#define AsyncIIdentityStore_Finish_ConvertToSid(This,pSid,pcbRequiredSid) \ + ( (This)->lpVtbl -> Finish_ConvertToSid(This,pSid,pcbRequiredSid) ) + +#define AsyncIIdentityStore_Begin_EnumerateIdentities(This,eIdentityType,pFilterkey,pFilterPropVarValue) \ + ( (This)->lpVtbl -> Begin_EnumerateIdentities(This,eIdentityType,pFilterkey,pFilterPropVarValue) ) + +#define AsyncIIdentityStore_Finish_EnumerateIdentities(This,ppIdentityEnum) \ + ( (This)->lpVtbl -> Finish_EnumerateIdentities(This,ppIdentityEnum) ) + +#define AsyncIIdentityStore_Begin_Reset(This) \ + ( (This)->lpVtbl -> Begin_Reset(This) ) + +#define AsyncIIdentityStore_Finish_Reset(This) \ + ( (This)->lpVtbl -> Finish_Reset(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIIdentityStore_INTERFACE_DEFINED__ */ + + +#ifndef __IIdentityStoreEx_INTERFACE_DEFINED__ +#define __IIdentityStoreEx_INTERFACE_DEFINED__ + +/* interface IIdentityStoreEx */ +/* [unique][helpstring][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IIdentityStoreEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f9f9eb98-8f7f-4e38-9577-6980114ce32b") + IIdentityStoreEx : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateConnectedIdentity( + /* [unique][in] */ __RPC__in_opt LPCWSTR LocalName, + /* [in] */ __RPC__in LPCWSTR ConnectedName, + /* [in] */ __RPC__in REFGUID ProviderGUID) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteConnectedIdentity( + /* [in] */ __RPC__in LPCWSTR ConnectedName, + /* [in] */ __RPC__in REFGUID ProviderGUID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIdentityStoreExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIdentityStoreEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIdentityStoreEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIdentityStoreEx * This); + + DECLSPEC_XFGVIRT(IIdentityStoreEx, CreateConnectedIdentity) + HRESULT ( STDMETHODCALLTYPE *CreateConnectedIdentity )( + __RPC__in IIdentityStoreEx * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR LocalName, + /* [in] */ __RPC__in LPCWSTR ConnectedName, + /* [in] */ __RPC__in REFGUID ProviderGUID); + + DECLSPEC_XFGVIRT(IIdentityStoreEx, DeleteConnectedIdentity) + HRESULT ( STDMETHODCALLTYPE *DeleteConnectedIdentity )( + __RPC__in IIdentityStoreEx * This, + /* [in] */ __RPC__in LPCWSTR ConnectedName, + /* [in] */ __RPC__in REFGUID ProviderGUID); + + END_INTERFACE + } IIdentityStoreExVtbl; + + interface IIdentityStoreEx + { + CONST_VTBL struct IIdentityStoreExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIdentityStoreEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIdentityStoreEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIdentityStoreEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIdentityStoreEx_CreateConnectedIdentity(This,LocalName,ConnectedName,ProviderGUID) \ + ( (This)->lpVtbl -> CreateConnectedIdentity(This,LocalName,ConnectedName,ProviderGUID) ) + +#define IIdentityStoreEx_DeleteConnectedIdentity(This,ConnectedName,ProviderGUID) \ + ( (This)->lpVtbl -> DeleteConnectedIdentity(This,ConnectedName,ProviderGUID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIdentityStoreEx_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIIdentityStoreEx_INTERFACE_DEFINED__ +#define __AsyncIIdentityStoreEx_INTERFACE_DEFINED__ + +/* interface AsyncIIdentityStoreEx */ +/* [uuid][unique][helpstring][object] */ + + +EXTERN_C const IID IID_AsyncIIdentityStoreEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fca3af9a-8a07-4eae-8632-ec3de658a36a") + AsyncIIdentityStoreEx : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_CreateConnectedIdentity( + /* [unique][in] */ __RPC__in_opt LPCWSTR LocalName, + /* [in] */ __RPC__in LPCWSTR ConnectedName, + /* [in] */ __RPC__in REFGUID ProviderGUID) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_CreateConnectedIdentity( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_DeleteConnectedIdentity( + /* [in] */ __RPC__in LPCWSTR ConnectedName, + /* [in] */ __RPC__in REFGUID ProviderGUID) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_DeleteConnectedIdentity( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIIdentityStoreExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIIdentityStoreEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIIdentityStoreEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIIdentityStoreEx * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityStoreEx, Begin_CreateConnectedIdentity) + HRESULT ( STDMETHODCALLTYPE *Begin_CreateConnectedIdentity )( + __RPC__in AsyncIIdentityStoreEx * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR LocalName, + /* [in] */ __RPC__in LPCWSTR ConnectedName, + /* [in] */ __RPC__in REFGUID ProviderGUID); + + DECLSPEC_XFGVIRT(AsyncIIdentityStoreEx, Finish_CreateConnectedIdentity) + HRESULT ( STDMETHODCALLTYPE *Finish_CreateConnectedIdentity )( + __RPC__in AsyncIIdentityStoreEx * This); + + DECLSPEC_XFGVIRT(AsyncIIdentityStoreEx, Begin_DeleteConnectedIdentity) + HRESULT ( STDMETHODCALLTYPE *Begin_DeleteConnectedIdentity )( + __RPC__in AsyncIIdentityStoreEx * This, + /* [in] */ __RPC__in LPCWSTR ConnectedName, + /* [in] */ __RPC__in REFGUID ProviderGUID); + + DECLSPEC_XFGVIRT(AsyncIIdentityStoreEx, Finish_DeleteConnectedIdentity) + HRESULT ( STDMETHODCALLTYPE *Finish_DeleteConnectedIdentity )( + __RPC__in AsyncIIdentityStoreEx * This); + + END_INTERFACE + } AsyncIIdentityStoreExVtbl; + + interface AsyncIIdentityStoreEx + { + CONST_VTBL struct AsyncIIdentityStoreExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIIdentityStoreEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIIdentityStoreEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIIdentityStoreEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIIdentityStoreEx_Begin_CreateConnectedIdentity(This,LocalName,ConnectedName,ProviderGUID) \ + ( (This)->lpVtbl -> Begin_CreateConnectedIdentity(This,LocalName,ConnectedName,ProviderGUID) ) + +#define AsyncIIdentityStoreEx_Finish_CreateConnectedIdentity(This) \ + ( (This)->lpVtbl -> Finish_CreateConnectedIdentity(This) ) + +#define AsyncIIdentityStoreEx_Begin_DeleteConnectedIdentity(This,ConnectedName,ProviderGUID) \ + ( (This)->lpVtbl -> Begin_DeleteConnectedIdentity(This,ConnectedName,ProviderGUID) ) + +#define AsyncIIdentityStoreEx_Finish_DeleteConnectedIdentity(This) \ + ( (This)->lpVtbl -> Finish_DeleteConnectedIdentity(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIIdentityStoreEx_INTERFACE_DEFINED__ */ + + + +#ifndef __IdentityStoreLib_LIBRARY_DEFINED__ +#define __IdentityStoreLib_LIBRARY_DEFINED__ + +/* library IdentityStoreLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_IdentityStoreLib; + +EXTERN_C const CLSID CLSID_CoClassIdentityStore; + +#ifdef __cplusplus + +class DECLSPEC_UUID("30d49246-d217-465f-b00b-ac9ddd652eb7") +CoClassIdentityStore; +#endif + +EXTERN_C const CLSID CLSID_CIdentityProfileHandler; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ecf5bf46-e3b6-449a-b56b-43f58f867814") +CIdentityProfileHandler; +#endif +#endif /* __IdentityStoreLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_identitystore_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_identitystore_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_identitystore_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ilogobj.Hxx b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ilogobj.Hxx new file mode 100644 index 0000000000000000000000000000000000000000..27b7d79712eb8349371d015bb4366b22b58dd5d5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ilogobj.Hxx @@ -0,0 +1,288 @@ +/*++ + + Copyright (c) 1995-1999 Microsoft Corporation + + Module Name: + + ilogobj.hxx + + Abstract: + + Logging interfaces + + Author: + + Terence Kwan ( terryk ) 18-June-1996 + + +--*/ + +# ifndef _ILOGOBJ_HXX_ +# define _ILOGOBJ_HXX_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// strings +// + +#define NCSALOG_CLSID TEXT("{FF16065F-DE82-11CF-BC0A-00AA006111E0}") +#define ODBCLOG_CLSID TEXT("{FF16065B-DE82-11CF-BC0A-00AA006111E0}") +#define ASCLOG_CLSID TEXT("{FF160657-DE82-11CF-BC0A-00AA006111E0}") +#define EXTLOG_CLSID TEXT("{FF160663-DE82-11CF-BC0A-00AA006111E0}") + +#define NCSALOGUI_CLSID TEXT("{31DCAB85-BB3E-11d0-9299-00C04FB6678B}") +#define ODBCLOGUI_CLSID TEXT("{31DCAB86-BB3E-11d0-9299-00C04FB6678B}") +#define ASCLOGUI_CLSID TEXT("{31DCAB87-BB3E-11d0-9299-00C04FB6678B}") +#define EXTLOGUI_CLSID TEXT("{31DCAB88-BB3E-11d0-9299-00C04FB6678B}") + +// +// GUIDS +// + +// Interface IDs + +DEFINE_GUID(IID_IINETLOG_INFORMATION, /* cc557a71-f61a-11cf-bc0f-00aa006111e0 */ + 0xcc557a71,0xf61a,0x11cf,0xbc, 0x0f, 0x00, 0xaa, 0x00, 0x61, 0x11, 0xe0); + +DEFINE_GUID(IID_ILogPlugin, /* 08fd99d1-cfb6-11cf-bc03-00aa006111e0 */ + 0x08fd99d1,0xcfb6,0x11cf,0xbc, 0x03, 0x00, 0xaa, 0x00, 0x61, 0x11, 0xe0); + +DEFINE_GUID(IID_ILogPluginEx, /* 3710E192-9C25-11d1-8B9A-080009DCC2FA */ + 0x3710e192, 0x9c25, 0x11d1, 0x8b, 0x9a, 0x8, 0x0, 0x9, 0xdc, 0xc2, 0xfa); + +// Class IDs + +DEFINE_GUID(CLSID_NCSALOG, /* ff16065F-DE82-11cf-bc0a-00aa006111e0 */ + 0xff16065F,0xde82,0x11cf,0xbc, 0x0a, 0x00, 0xaa, 0x00, 0x61, 0x11, 0xe0); + +DEFINE_GUID(CLSID_ODBCLOG, /* ff16065B-DE82-11cf-bc0a-00aa006111e0 */ + 0xff16065B,0xde82,0x11cf,0xbc, 0x0a, 0x00, 0xaa, 0x00, 0x61, 0x11, 0xe0); + +DEFINE_GUID(CLSID_ASCLOG, /* ff160657-DE82-11cf-bc0a-00aa006111e0 */ + 0xff160657,0xde82,0x11cf,0xbc, 0x0a, 0x00, 0xaa, 0x00, 0x61, 0x11, 0xe0); + +DEFINE_GUID(CLSID_EXTLOG, /* ff160663-DE82-11cf-bc0a-00aa006111e0 */ + 0xff160663,0xde82,0x11cf,0xbc, 0x0a, 0x00, 0xaa, 0x00, 0x61, 0x11, 0xe0); + + +// Logging UI IDs + +DEFINE_GUID(IID_LOGGINGUI, /* 31DCAB89-BB3E-11d0-9299-00C04FB6678B */ + 0x31dcab89, 0xbb3e, 0x11d0, 0x92, 0x99, 0x0, 0xc0, 0x4f, 0xb6, 0x67, 0x8b); + +// {FAE6E2A8-BF79-4ac6-AA58-71347C92D593} +DEFINE_GUID(IID_LOGGINGUI2, + 0xfae6e2a8, 0xbf79, 0x4ac6, 0xaa, 0x58, 0x71, 0x34, 0x7c, 0x92, 0xd5, 0x93); + +DEFINE_GUID(CLSID_NCSALOGUI, /* 31DCAB85-BB3E-11d0-9299-00C04FB6678B */ + 0x31dcab85, 0xbb3e, 0x11d0, 0x92, 0x99, 0x0, 0xc0, 0x4f, 0xb6, 0x67, 0x8b); + +DEFINE_GUID(CLSID_ODBCLOGUI, /* 31DCAB86-BB3E-11d0-9299-00C04FB6678B */ + 0x31dcab86, 0xbb3e, 0x11d0, 0x92, 0x99, 0x0, 0xc0, 0x4f, 0xb6, 0x67, 0x8b); + +DEFINE_GUID(CLSID_ASCLOGUI, /* 31DCAB87-BB3E-11d0-9299-00C04FB6678B */ + 0x31dcab87, 0xbb3e, 0x11d0, 0x92, 0x99, 0x0, 0xc0, 0x4f, 0xb6, 0x67, 0x8b); + +DEFINE_GUID(CLSID_EXTLOGUI, /* 31DCAB88-BB3E-11d0-9299-00C04FB6678B */ + 0x31dcab88, 0xbb3e, 0x11d0, 0x92, 0x99, 0x0, 0xc0, 0x4f, 0xb6, 0x67, 0x8b); + +// +// Unused IDs +// +DEFINE_GUID(IID_ICLAPI_CLIENT, /* 08fd99d1-cfb6-11cf-bc03-00aa006111e0 */ + 0x08fd99d1,0xcfb6,0x11cf,0xbc, 0x03, 0x00, 0xaa, 0x00, 0x61, 0x11, 0xe0); + +DEFINE_GUID(CLSID_InetLogInformation, /* a1f89741-f619-11cf-bc0f-00aa006111e0 */ + 0xa1f89741, 0xf619, 0x11cf, 0xbc, 0xf, 0x0, 0xaa, 0x0, 0x61, 0x11, 0xe0); + +// +// Logging Interface exposed by IIS +// + +class IInetLogInformation : public IUnknown { + + public: + virtual LPSTR STDMETHODCALLTYPE + GetSiteName( + _Inout_updates_bytes_opt_(*pcbSize) PCHAR pszSiteName, + IN PDWORD pcbSize + ) = 0; + + virtual LPSTR STDMETHODCALLTYPE + GetComputerName( + _Inout_updates_bytes_opt_(*pcbSize) PCHAR pszComputerName, + IN PDWORD pcbSize + ) = 0; + + virtual LPSTR STDMETHODCALLTYPE + GetClientHostName( + _Inout_updates_bytes_opt_(*pcbSize) PCHAR pszClientHostName, + IN PDWORD pcbSize + ) = 0; + + virtual LPSTR STDMETHODCALLTYPE + GetClientUserName( + _Inout_updates_bytes_opt_(*pcbSize) PCHAR pszClientUserName, + IN PDWORD pcbSize + ) = 0; + + virtual LPSTR STDMETHODCALLTYPE + GetServerAddress( + _Inout_updates_bytes_opt_(*pcbSize) PCHAR pszServerIPAddress, + IN PDWORD pcbSize + ) = 0; + + virtual LPSTR STDMETHODCALLTYPE + GetOperation( + _Inout_updates_bytes_opt_(*pcbSize) PCHAR pszOperation, + IN PDWORD pcbSize + ) = 0; + + virtual LPSTR STDMETHODCALLTYPE + GetTarget( + _Inout_updates_bytes_opt_(*pcbSize) PCHAR pszTarget, + IN PDWORD pcbSize + ) = 0; + + virtual LPSTR STDMETHODCALLTYPE + GetParameters( + _Inout_updates_bytes_opt_(*pcbSize) PCHAR pszParameters, + IN PDWORD pcbSize + ) = 0; + + virtual LPSTR STDMETHODCALLTYPE + GetExtraHTTPHeaders( + _Inout_updates_bytes_opt_(*pcbSize) PCHAR pszHTTPHeaders, + IN PDWORD pcbSize + ) = 0; + + virtual DWORD STDMETHODCALLTYPE + GetTimeForProcessing( + VOID + ) = 0; + + virtual DWORD STDMETHODCALLTYPE + GetBytesSent( + VOID + ) = 0; + + virtual DWORD STDMETHODCALLTYPE + GetBytesRecvd( + VOID + ) = 0; + + virtual DWORD STDMETHODCALLTYPE + GetWin32Status( + VOID + ) = 0; + + virtual DWORD STDMETHODCALLTYPE + GetProtocolStatus( + VOID + ) = 0; + + virtual DWORD STDMETHODCALLTYPE + GetPortNumber( + VOID + ) = 0; + + virtual LPSTR STDMETHODCALLTYPE + GetVersionString( + _Inout_updates_bytes_opt_(*pcbSize) PCHAR pszVersionString, + IN PDWORD pcbSize + ) = 0; + + +}; + + +// +// Log Plugin Interface implemented by logging plugins and called by IIS. +// + +class ILogPlugin : public IUnknown +{ + public: + + virtual HRESULT STDMETHODCALLTYPE + InitializeLog( + IN LPCSTR SiteName, + IN LPCSTR MetabasePath, + _In_reads_bytes_(sizeof(IMDCOM)) PCHAR pvIMDCOM ) = 0; + + virtual HRESULT STDMETHODCALLTYPE + TerminateLog( VOID ) = 0; + + virtual HRESULT STDMETHODCALLTYPE + LogInformation( IInetLogInformation *pLogObj ) = 0; + + virtual HRESULT STDMETHODCALLTYPE + SetConfig( IN DWORD cbSize, PBYTE Log ) = 0; + + virtual HRESULT STDMETHODCALLTYPE + GetConfig( IN DWORD cbSize, PBYTE Log ) = 0; + + virtual HRESULT STDMETHODCALLTYPE + QueryExtraLoggingFields(PDWORD cbSize, _Out_writes_(*cbSize) PCHAR szParameters) = 0; +}; + +// +// Log plugin UI Interface used by Admin +// + +class ILogUIPlugin : public IUnknown +{ + public: + + virtual HRESULT STDMETHODCALLTYPE + OnProperties( _In_ OLECHAR* pocMachineName, _In_ OLECHAR* pocMetabasePath ) = 0; +}; + +class ILogUIPlugin2 : public ILogUIPlugin +{ +public: + virtual HRESULT STDMETHODCALLTYPE + OnPropertiesEx( + _In_ OLECHAR * pocMachineName, + _In_ OLECHAR * pocMetabasePath, + _In_ OLECHAR * pocUserName, + _In_ OLECHAR * pocUserPassword) = 0; +}; + +// +// Extended Log Plugin Interface implemented by logging plugins and called by +// IIS to support advanced/generic logging. +// + +#ifndef _LOGTYPE_H_ + +typedef struct _CUSTOM_LOG_DATA +{ + LPCSTR szPropertyPath; + PVOID pData; + +} CUSTOM_LOG_DATA, *PCUSTOM_LOG_DATA; + +#endif + +class ILogPluginEx : public ILogPlugin +{ + public: + + virtual HRESULT STDMETHODCALLTYPE + LogCustomInformation( + IN DWORD cCount, + IN PCUSTOM_LOG_DATA pCustomLogData, + _In_ LPSTR szHeaderSuffix + ) = 0; +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +# endif // _ILOGOBJ_HXX_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImageHlp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImageHlp.h new file mode 100644 index 0000000000000000000000000000000000000000..1cdaaf102cd0984398d9f3ed7103b8c438ea54d7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImageHlp.h @@ -0,0 +1,4702 @@ +/*++ BUILD Version: 0000 Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + imagehlp.h + +Abstract: + + This module defines the prototypes and constants required for the image + help routines. + +Revision History: + +--*/ + +#ifndef _IMAGEHLP_ +#define _IMAGEHLP_ + +#if _MSC_VER > 1020 +#pragma once +#endif + +#include + +#define NONGAMESPARTITIONS WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_WER + +#pragma region Desktop Family or WER Package +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + + +// As a general principal always call the 64 bit version +// of every API, if a choice exists. The 64 bit version +// works great on 32 bit platforms, and is forward +// compatible to 64 bit platforms. + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +#ifdef _WIN64 +#ifndef _IMAGEHLP64 +#define _IMAGEHLP64 +#endif +#endif + +#include + + +#ifndef WINTRUST_H +#include +#endif + + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef _IMAGEHLP_SOURCE_ + #define IMAGEAPI __stdcall + #define DBHLP_DEPRECIATED +#else + #define IMAGEAPI DECLSPEC_IMPORT __stdcall + #if (_MSC_VER >= 1300) && !defined(MIDL_PASS) + #define DBHLP_DEPRECIATED __declspec(deprecated) + #else + #define DBHLP_DEPRECIATED + #endif +#endif + +#define DBHLPAPI IMAGEAPI + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#define IMAGE_SEPARATION (64*1024) + +// Observant readers may notice that 2 new fields, +// 'fReadOnly' and 'Version' have been added to +// the LOADED_IMAGE structure after 'fDOSImage'. +// This does not change the size of the structure +// from previous headers. That is because while +// 'fDOSImage' is a byte, it is padded by the +// compiler to 4 bytes. So the 2 new fields are +// slipped into the extra space. + +typedef struct _LOADED_IMAGE { + PSTR ModuleName; + HANDLE hFile; + PUCHAR MappedAddress; +#ifdef _IMAGEHLP64 + PIMAGE_NT_HEADERS64 FileHeader; +#else + PIMAGE_NT_HEADERS32 FileHeader; +#endif + PIMAGE_SECTION_HEADER LastRvaSection; + ULONG NumberOfSections; + PIMAGE_SECTION_HEADER Sections; + ULONG Characteristics; + BOOLEAN fSystemImage; + BOOLEAN fDOSImage; + BOOLEAN fReadOnly; + UCHAR Version; + LIST_ENTRY Links; + ULONG SizeOfImage; +} LOADED_IMAGE, *PLOADED_IMAGE; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +#define MAX_SYM_NAME 2000 + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + + +BOOL +IMAGEAPI +BindImage( + _In_ PCSTR ImageName, + _In_ PCSTR DllPath, + _In_ PCSTR SymbolPath + ); + +typedef enum _IMAGEHLP_STATUS_REASON { + BindOutOfMemory, + BindRvaToVaFailed, + BindNoRoomInImage, + BindImportModuleFailed, + BindImportProcedureFailed, + BindImportModule, + BindImportProcedure, + BindForwarder, + BindForwarderNOT, + BindImageModified, + BindExpandFileHeaders, + BindImageComplete, + BindMismatchedSymbols, + BindSymbolsNotUpdated, + BindImportProcedure32, + BindImportProcedure64, + BindForwarder32, + BindForwarder64, + BindForwarderNOT32, + BindForwarderNOT64 +} IMAGEHLP_STATUS_REASON; + +typedef +BOOL +(__stdcall *PIMAGEHLP_STATUS_ROUTINE)( + _In_ IMAGEHLP_STATUS_REASON Reason, + _In_ PCSTR ImageName, + _In_ PCSTR DllName, + _In_ ULONG_PTR Va, + _In_ ULONG_PTR Parameter + ); + +typedef +BOOL +(__stdcall *PIMAGEHLP_STATUS_ROUTINE32)( + _In_ IMAGEHLP_STATUS_REASON Reason, + _In_ PCSTR ImageName, + _In_ PCSTR DllName, + _In_ ULONG Va, + _In_ ULONG_PTR Parameter + ); + +typedef +BOOL +(__stdcall *PIMAGEHLP_STATUS_ROUTINE64)( + _In_ IMAGEHLP_STATUS_REASON Reason, + _In_ PCSTR ImageName, + _In_ PCSTR DllName, + _In_ ULONG64 Va, + _In_ ULONG_PTR Parameter + ); + + +BOOL +IMAGEAPI +BindImageEx( + _In_ DWORD Flags, + _In_ PCSTR ImageName, + _In_ PCSTR DllPath, + _In_ PCSTR SymbolPath, + _In_opt_ PIMAGEHLP_STATUS_ROUTINE StatusRoutine + ); + +#define BIND_NO_BOUND_IMPORTS 0x00000001 +#define BIND_NO_UPDATE 0x00000002 +#define BIND_ALL_IMAGES 0x00000004 +#define BIND_CACHE_IMPORT_DLLS 0x00000008 // Cache dll's across + // calls to BindImageEx + // (same as NT 3.1->NT 4.0) +#define BIND_REPORT_64BIT_VA 0x00000010 + +BOOL +IMAGEAPI +ReBaseImage( + _In_ PCSTR CurrentImageName, + _In_ PCSTR SymbolPath, + _In_ BOOL fReBase, // TRUE if actually rebasing, false if only summing + _In_ BOOL fRebaseSysfileOk, // TRUE is system images s/b rebased + _In_ BOOL fGoingDown, // TRUE if the image s/b rebased below the given base + _In_ ULONG CheckImageSize, // Max size allowed (0 if don't care) + _Out_ ULONG *OldImageSize, // Returned from the header + _Out_ ULONG_PTR *OldImageBase, // Returned from the header + _Out_ ULONG *NewImageSize, // Image size rounded to next separation boundary + _Inout_ ULONG_PTR *NewImageBase, // (in) Desired new address. + // (out) Next address (actual if going down) + _In_ ULONG TimeStamp // new timestamp for image, if non-zero + ); + +BOOL +IMAGEAPI +ReBaseImage64( + _In_ PCSTR CurrentImageName, + _In_ PCSTR SymbolPath, + _In_ BOOL fReBase, // TRUE if actually rebasing, false if only summing + _In_ BOOL fRebaseSysfileOk, // TRUE is system images s/b rebased + _In_ BOOL fGoingDown, // TRUE if the image s/b rebased below the given base + _In_ ULONG CheckImageSize, // Max size allowed (0 if don't care) + _Out_ ULONG *OldImageSize, // Returned from the header + _Out_ ULONG64 *OldImageBase, // Returned from the header + _Out_ ULONG *NewImageSize, // Image size rounded to next separation boundary + _Inout_ ULONG64 *NewImageBase, // (in) Desired new address. + // (out) Next address (actual if going down) + _In_ ULONG TimeStamp // new timestamp for image, if non-zero + ); + +// +// Define checksum return codes. +// + +#define CHECKSUM_SUCCESS 0 +#define CHECKSUM_OPEN_FAILURE 1 +#define CHECKSUM_MAP_FAILURE 2 +#define CHECKSUM_MAPVIEW_FAILURE 3 +#define CHECKSUM_UNICODE_FAILURE 4 + +// Define Splitsym flags. + +#define SPLITSYM_REMOVE_PRIVATE 0x00000001 // Remove CV types/symbols and Fixup debug + // Used for creating .dbg files that ship + // as part of the product. + +#define SPLITSYM_EXTRACT_ALL 0x00000002 // Extract all debug info from image. + // Normally, FPO is left in the image + // to allow stack traces through the code. + // Using this switch is similar to linking + // with -debug:none except the .dbg file + // exists... + +#define SPLITSYM_SYMBOLPATH_IS_SRC 0x00000004 // The SymbolFilePath contains an alternate + // path to locate the pdb. + + +// +// Define checksum function prototypes. +// + +PIMAGE_NT_HEADERS +IMAGEAPI +CheckSumMappedFile ( + _In_ PVOID BaseAddress, + _In_ DWORD FileLength, + _Out_ PDWORD HeaderSum, + _Out_ PDWORD CheckSum + ); + +DWORD +IMAGEAPI +MapFileAndCheckSumA ( + _In_ PCSTR Filename, + _Out_ PDWORD HeaderSum, + _Out_ PDWORD CheckSum + ); + +DWORD +IMAGEAPI +MapFileAndCheckSumW ( + _In_ PCWSTR Filename, + _Out_ PDWORD HeaderSum, + _Out_ PDWORD CheckSum + ); + +#ifdef UNICODE +#define MapFileAndCheckSum MapFileAndCheckSumW +#else +#define MapFileAndCheckSum MapFileAndCheckSumA +#endif // !UNICODE + +BOOL +IMAGEAPI +GetImageConfigInformation( + _In_ PLOADED_IMAGE LoadedImage, + _Out_ PIMAGE_LOAD_CONFIG_DIRECTORY ImageConfigInformation + ); + +DWORD +IMAGEAPI +GetImageUnusedHeaderBytes( + _In_ PLOADED_IMAGE LoadedImage, + _Out_ PDWORD SizeUnusedHeaderBytes + ); + +BOOL +IMAGEAPI +SetImageConfigInformation( + _Inout_ PLOADED_IMAGE LoadedImage, + _In_ PIMAGE_LOAD_CONFIG_DIRECTORY ImageConfigInformation + ); + +// Image Integrity API's + +#define CERT_PE_IMAGE_DIGEST_DEBUG_INFO 0x01 +#define CERT_PE_IMAGE_DIGEST_RESOURCES 0x02 +#define CERT_PE_IMAGE_DIGEST_ALL_IMPORT_INFO 0x04 +#define CERT_PE_IMAGE_DIGEST_NON_PE_INFO 0x08 // include data outside the PE image + +#define CERT_SECTION_TYPE_ANY 0xFF // Any Certificate type + +typedef PVOID DIGEST_HANDLE; + +typedef BOOL (WINAPI *DIGEST_FUNCTION) (DIGEST_HANDLE refdata, PBYTE pData, DWORD dwLength); + +BOOL +IMAGEAPI +ImageGetDigestStream( + _In_ HANDLE FileHandle, + _In_ DWORD DigestLevel, + _In_ DIGEST_FUNCTION DigestFunction, + _In_ DIGEST_HANDLE DigestHandle + ); + +_Success_(return != FALSE) +BOOL +IMAGEAPI +ImageAddCertificate( + _In_ HANDLE FileHandle, + _In_ LPWIN_CERTIFICATE Certificate, + _Out_ PDWORD Index + ); + +BOOL +IMAGEAPI +ImageRemoveCertificate( + _In_ HANDLE FileHandle, + _In_ DWORD Index + ); + +_Success_(return != FALSE) +BOOL +IMAGEAPI +ImageEnumerateCertificates( + _In_ HANDLE FileHandle, + _In_ WORD TypeFilter, + _Out_ PDWORD CertificateCount, + _Inout_updates_opt_(IndexCount) PDWORD Indices, + _In_opt_ DWORD IndexCount + ); + +_Success_(return != FALSE) +BOOL +IMAGEAPI +ImageGetCertificateData( + _In_ HANDLE FileHandle, + _In_ DWORD CertificateIndex, + _Out_ LPWIN_CERTIFICATE Certificate, + _Inout_ PDWORD RequiredLength + ); + +BOOL +IMAGEAPI +ImageGetCertificateHeader( + _In_ HANDLE FileHandle, + _In_ DWORD CertificateIndex, + _Inout_ LPWIN_CERTIFICATE Certificateheader + ); + +PLOADED_IMAGE +IMAGEAPI +ImageLoad( + _In_ PCSTR DllName, + _In_opt_ PCSTR DllPath + ); + +BOOL +IMAGEAPI +ImageUnload( + _Inout_ PLOADED_IMAGE LoadedImage + ); + +BOOL +IMAGEAPI +MapAndLoad( + _In_ PCSTR ImageName, + _In_opt_ PCSTR DllPath, + _Out_ PLOADED_IMAGE LoadedImage, + _In_ BOOL DotDll, + _In_ BOOL ReadOnly + ); + +BOOL +IMAGEAPI +UnMapAndLoad( + _Inout_ PLOADED_IMAGE LoadedImage + ); + +BOOL +IMAGEAPI +TouchFileTimes ( + _In_ HANDLE FileHandle, + _In_opt_ PSYSTEMTIME pSystemTime + ); + +BOOL +IMAGEAPI +SplitSymbols ( + _Inout_ PSTR ImageName, + _In_ PCSTR SymbolsPath, + _Inout_ PSTR SymbolFilePath, + _In_ ULONG Flags + ); + +BOOL +IMAGEAPI +UpdateDebugInfoFile( + _In_ PCSTR ImageFileName, + _In_ PCSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath, + _In_ PIMAGE_NT_HEADERS32 NtHeaders + ); + +BOOL +IMAGEAPI +UpdateDebugInfoFileEx( + _In_ PCSTR ImageFileName, + _In_ PCSTR SymbolPath, + _Out_writes_(MAX_PATH+1) PSTR DebugFilePath, + _In_ PIMAGE_NT_HEADERS32 NtHeaders, + _In_ DWORD OldCheckSum + ); + + +// Error codes set by dbghelp functions. Call GetLastError +// to see them. +// Dbghelp also sets error codes found in winerror.h + +#define ERROR_IMAGE_NOT_STRIPPED 0x8800 // the image is not stripped. No dbg file available. +#define ERROR_NO_DBG_POINTER 0x8801 // image is stripped but there is no pointer to a dbg file +#define ERROR_NO_PDB_POINTER 0x8802 // image does not point to a pdb file + +typedef BOOL +(CALLBACK *PFIND_DEBUG_FILE_CALLBACK)( + _In_ HANDLE FileHandle, + _In_ PCSTR FileName, + _In_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +SymFindDebugInfoFile( + _In_ HANDLE hProcess, + _In_ PCSTR FileName, + _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath, + _In_opt_ PFIND_DEBUG_FILE_CALLBACK Callback, + _In_opt_ PVOID CallerData + ); + +typedef BOOL +(CALLBACK *PFIND_DEBUG_FILE_CALLBACKW)( + _In_ HANDLE FileHandle, + _In_ PCWSTR FileName, + _In_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +SymFindDebugInfoFileW( + _In_ HANDLE hProcess, + _In_ PCWSTR FileName, + _Out_writes_(MAX_PATH + 1) PWSTR DebugFilePath, + _In_opt_ PFIND_DEBUG_FILE_CALLBACKW Callback, + _In_opt_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +FindDebugInfoFile ( + _In_ PCSTR FileName, + _In_ PCSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath + ); + +HANDLE +IMAGEAPI +FindDebugInfoFileEx ( + _In_ PCSTR FileName, + _In_ PCSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath, + _In_opt_ PFIND_DEBUG_FILE_CALLBACK Callback, + _In_opt_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +FindDebugInfoFileExW ( + _In_ PCWSTR FileName, + _In_ PCWSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PWSTR DebugFilePath, + _In_opt_ PFIND_DEBUG_FILE_CALLBACKW Callback, + _In_opt_ PVOID CallerData + ); + +typedef BOOL +(CALLBACK *PFINDFILEINPATHCALLBACK)( + _In_ PCSTR filename, + _In_ PVOID context + ); + +BOOL +IMAGEAPI +SymFindFileInPath( + _In_ HANDLE hprocess, + _In_opt_ PCSTR SearchPath, + _In_ PCSTR FileName, + _In_opt_ PVOID id, + _In_ DWORD two, + _In_ DWORD three, + _In_ DWORD flags, + _Out_writes_(MAX_PATH + 1) PSTR FoundFile, + _In_opt_ PFINDFILEINPATHCALLBACK callback, + _In_opt_ PVOID context + ); + +typedef BOOL +(CALLBACK *PFINDFILEINPATHCALLBACKW)( + _In_ PCWSTR filename, + _In_ PVOID context + ); + +BOOL +IMAGEAPI +SymFindFileInPathW( + _In_ HANDLE hprocess, + _In_opt_ PCWSTR SearchPath, + _In_ PCWSTR FileName, + _In_opt_ PVOID id, + _In_ DWORD two, + _In_ DWORD three, + _In_ DWORD flags, + _Out_writes_(MAX_PATH + 1) PWSTR FoundFile, + _In_opt_ PFINDFILEINPATHCALLBACKW callback, + _In_opt_ PVOID context + ); + +typedef BOOL +(CALLBACK *PFIND_EXE_FILE_CALLBACK)( + _In_ HANDLE FileHandle, + _In_ PCSTR FileName, + _In_opt_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +SymFindExecutableImage( + _In_ HANDLE hProcess, + _In_ PCSTR FileName, + _Out_writes_(MAX_PATH + 1) PSTR ImageFilePath, + _In_ PFIND_EXE_FILE_CALLBACK Callback, + _In_ PVOID CallerData + ); + +typedef BOOL +(CALLBACK *PFIND_EXE_FILE_CALLBACKW)( + _In_ HANDLE FileHandle, + _In_ PCWSTR FileName, + _In_opt_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +SymFindExecutableImageW( + _In_ HANDLE hProcess, + _In_ PCWSTR FileName, + _Out_writes_(MAX_PATH + 1) PWSTR ImageFilePath, + _In_ PFIND_EXE_FILE_CALLBACKW Callback, + _In_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +FindExecutableImage( + _In_ PCSTR FileName, + _In_ PCSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PSTR ImageFilePath + ); + +HANDLE +IMAGEAPI +FindExecutableImageEx( + _In_ PCSTR FileName, + _In_ PCSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PSTR ImageFilePath, + _In_opt_ PFIND_EXE_FILE_CALLBACK Callback, + _In_opt_ PVOID CallerData + ); + +HANDLE +IMAGEAPI +FindExecutableImageExW( + _In_ PCWSTR FileName, + _In_ PCWSTR SymbolPath, + _Out_writes_(MAX_PATH + 1) PWSTR ImageFilePath, + _In_opt_ PFIND_EXE_FILE_CALLBACKW Callback, + _In_ PVOID CallerData + ); + +PIMAGE_NT_HEADERS +IMAGEAPI +ImageNtHeader ( + _In_ PVOID Base + ); + +PVOID +IMAGEAPI +ImageDirectoryEntryToDataEx ( + _In_ PVOID Base, + _In_ BOOLEAN MappedAsImage, + _In_ USHORT DirectoryEntry, + _Out_ PULONG Size, + _Out_opt_ PIMAGE_SECTION_HEADER *FoundHeader + ); + +PVOID +IMAGEAPI +ImageDirectoryEntryToData ( + _In_ PVOID Base, + _In_ BOOLEAN MappedAsImage, + _In_ USHORT DirectoryEntry, + _Out_ PULONG Size + ); + +PIMAGE_SECTION_HEADER +IMAGEAPI +ImageRvaToSection( + _In_ PIMAGE_NT_HEADERS NtHeaders, + _In_ PVOID Base, + _In_ ULONG Rva + ); + +PVOID +IMAGEAPI +ImageRvaToVa( + _In_ PIMAGE_NT_HEADERS NtHeaders, + _In_ PVOID Base, + _In_ ULONG Rva, + _In_opt_ OUT PIMAGE_SECTION_HEADER *LastRvaSection + ); + +#ifndef _WIN64 +// This api won't be ported to Win64 - Fix your code. + +typedef struct _IMAGE_DEBUG_INFORMATION { + LIST_ENTRY List; + DWORD ReservedSize; + PVOID ReservedMappedBase; + USHORT ReservedMachine; + USHORT ReservedCharacteristics; + DWORD ReservedCheckSum; + DWORD ImageBase; + DWORD SizeOfImage; + + DWORD ReservedNumberOfSections; + PIMAGE_SECTION_HEADER ReservedSections; + + DWORD ReservedExportedNamesSize; + PSTR ReservedExportedNames; + + DWORD ReservedNumberOfFunctionTableEntries; + PIMAGE_FUNCTION_ENTRY ReservedFunctionTableEntries; + DWORD ReservedLowestFunctionStartingAddress; + DWORD ReservedHighestFunctionEndingAddress; + + DWORD ReservedNumberOfFpoTableEntries; + PFPO_DATA ReservedFpoTableEntries; + + DWORD SizeOfCoffSymbols; + PIMAGE_COFF_SYMBOLS_HEADER CoffSymbols; + + DWORD ReservedSizeOfCodeViewSymbols; + PVOID ReservedCodeViewSymbols; + + PSTR ImageFilePath; + PSTR ImageFileName; + PSTR ReservedDebugFilePath; + + DWORD ReservedTimeDateStamp; + + BOOL ReservedRomImage; + PIMAGE_DEBUG_DIRECTORY ReservedDebugDirectory; + DWORD ReservedNumberOfDebugDirectories; + + DWORD ReservedOriginalFunctionTableBaseAddress; + + DWORD Reserved[ 2 ]; + +} IMAGE_DEBUG_INFORMATION, *PIMAGE_DEBUG_INFORMATION; + + +PIMAGE_DEBUG_INFORMATION +IMAGEAPI +MapDebugInformation( + _In_opt_ HANDLE FileHandle, + _In_ PCSTR FileName, + _In_opt_ PCSTR SymbolPath, + _In_ ULONG ImageBase + ); + +BOOL +IMAGEAPI +UnmapDebugInformation( + _Out_writes_(_Inexpressible_(unknown)) PIMAGE_DEBUG_INFORMATION DebugInfo + ); + +#endif + +BOOL +IMAGEAPI +SearchTreeForFile( + _In_ PCSTR RootPath, + _In_ PCSTR InputPathName, + _Out_writes_(MAX_PATH + 1) PSTR OutputPathBuffer + ); + +BOOL +IMAGEAPI +SearchTreeForFileW( + _In_ PCWSTR RootPath, + _In_ PCWSTR InputPathName, + _Out_writes_(MAX_PATH + 1) PWSTR OutputPathBuffer + ); + +typedef BOOL +(CALLBACK *PENUMDIRTREE_CALLBACK)( + _In_ PCSTR FilePath, + _In_opt_ PVOID CallerData + ); + +BOOL +IMAGEAPI +EnumDirTree( + _In_opt_ HANDLE hProcess, + _In_ PCSTR RootPath, + _In_ PCSTR InputPathName, + _Out_writes_opt_(MAX_PATH + 1) PSTR OutputPathBuffer, + _In_opt_ PENUMDIRTREE_CALLBACK cb, + _In_opt_ PVOID data + ); + +typedef BOOL +(CALLBACK *PENUMDIRTREE_CALLBACKW)( + _In_ PCWSTR FilePath, + _In_opt_ PVOID CallerData + ); + +BOOL +IMAGEAPI +EnumDirTreeW( + _In_opt_ HANDLE hProcess, + _In_ PCWSTR RootPath, + _In_ PCWSTR InputPathName, + _Out_writes_opt_(MAX_PATH + 1) PWSTR OutputPathBuffer, + _In_opt_ PENUMDIRTREE_CALLBACKW cb, + _In_opt_ PVOID data + ); + +BOOL +IMAGEAPI +MakeSureDirectoryPathExists( + _In_ PCSTR DirPath + ); + +// +// UnDecorateSymbolName Flags +// + +#define UNDNAME_COMPLETE (0x0000) // Enable full undecoration +#define UNDNAME_NO_LEADING_UNDERSCORES (0x0001) // Remove leading underscores from MS extended keywords +#define UNDNAME_NO_MS_KEYWORDS (0x0002) // Disable expansion of MS extended keywords +#define UNDNAME_NO_FUNCTION_RETURNS (0x0004) // Disable expansion of return type for primary declaration +#define UNDNAME_NO_ALLOCATION_MODEL (0x0008) // Disable expansion of the declaration model +#define UNDNAME_NO_ALLOCATION_LANGUAGE (0x0010) // Disable expansion of the declaration language specifier +#define UNDNAME_NO_MS_THISTYPE (0x0020) // NYI Disable expansion of MS keywords on the 'this' type for primary declaration +#define UNDNAME_NO_CV_THISTYPE (0x0040) // NYI Disable expansion of CV modifiers on the 'this' type for primary declaration +#define UNDNAME_NO_THISTYPE (0x0060) // Disable all modifiers on the 'this' type +#define UNDNAME_NO_ACCESS_SPECIFIERS (0x0080) // Disable expansion of access specifiers for members +#define UNDNAME_NO_THROW_SIGNATURES (0x0100) // Disable expansion of 'throw-signatures' for functions and pointers to functions +#define UNDNAME_NO_MEMBER_TYPE (0x0200) // Disable expansion of 'static' or 'virtual'ness of members +#define UNDNAME_NO_RETURN_UDT_MODEL (0x0400) // Disable expansion of MS model for UDT returns +#define UNDNAME_32_BIT_DECODE (0x0800) // Undecorate 32-bit decorated names +#define UNDNAME_NAME_ONLY (0x1000) // Crack only the name for primary declaration; + // return just [scope::]name. Does expand template params +#define UNDNAME_NO_ARGUMENTS (0x2000) // Don't undecorate arguments to function +#define UNDNAME_NO_SPECIAL_SYMS (0x4000) // Don't undecorate special names (v-table, vcall, vector xxx, metatype, etc) + +DWORD +IMAGEAPI +WINAPI +UnDecorateSymbolName( + _In_ PCSTR name, + _Out_writes_(maxStringLength) PSTR outputString, + _In_ DWORD maxStringLength, + _In_ DWORD flags + ); + +DWORD +IMAGEAPI +WINAPI +UnDecorateSymbolNameW( + _In_ PCWSTR name, + _Out_writes_(maxStringLength) PWSTR outputString, + _In_ DWORD maxStringLength, + _In_ DWORD flags + ); + +// +// these values are used for synthesized file types +// that can be passed in as image headers instead of +// the standard ones from ntimage.h +// + +#define DBHHEADER_DEBUGDIRS 0x1 +#define DBHHEADER_CVMISC 0x2 +#define DBHHEADER_PDBGUID 0x3 + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +typedef struct _MODLOAD_DATA { + DWORD ssize; // size of this struct + DWORD ssig; // signature identifying the passed data + PVOID data; // pointer to passed data + DWORD size; // size of passed data + DWORD flags; // options +} MODLOAD_DATA, *PMODLOAD_DATA; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +typedef struct _MODLOAD_CVMISC { + DWORD oCV; // ofset to the codeview record + size_t cCV; // size of the codeview record + DWORD oMisc; // offset to the misc record + size_t cMisc; // size of the misc record + DWORD dtImage; // datetime stamp of the image + DWORD cImage; // size of the image +} MODLOAD_CVMISC, *PMODLOAD_CVMISC; + +typedef struct _MODLOAD_PDBGUID_PDBAGE { + GUID PdbGuid; // Pdb Guid + DWORD PdbAge; // Pdb Age +} MODLOAD_PDBGUID_PDBAGE, *PMODLOAD_PDBGUID_PDBAGE; + +// +// StackWalking API +// + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +typedef enum { + AddrMode1616, + AddrMode1632, + AddrModeReal, + AddrModeFlat +} ADDRESS_MODE; + +typedef struct _tagADDRESS64 { + DWORD64 Offset; + WORD Segment; + ADDRESS_MODE Mode; +} ADDRESS64, *LPADDRESS64; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define ADDRESS ADDRESS64 +#define LPADDRESS LPADDRESS64 +#else +typedef struct _tagADDRESS { + DWORD Offset; + WORD Segment; + ADDRESS_MODE Mode; +} ADDRESS, *LPADDRESS; + +__inline +void +Address32To64( + _In_ LPADDRESS a32, + _Out_ LPADDRESS64 a64 + ) +{ + a64->Offset = (ULONG64)(LONG64)(LONG)a32->Offset; + a64->Segment = a32->Segment; + a64->Mode = a32->Mode; +} + +__inline +void +Address64To32( + _In_ LPADDRESS64 a64, + _Out_ LPADDRESS a32 + ) +{ + a32->Offset = (ULONG)a64->Offset; + a32->Segment = a64->Segment; + a32->Mode = a64->Mode; +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +// +// This structure is included in the STACKFRAME structure, +// and is used to trace through usermode callbacks in a thread's +// kernel stack. The values must be copied by the kernel debugger +// from the DBGKD_GET_VERSION and WAIT_STATE_CHANGE packets. +// + +// +// New KDHELP structure for 64 bit system support. +// This structure is preferred in new code. +// +typedef struct _KDHELP64 { + + // + // address of kernel thread object, as provided in the + // WAIT_STATE_CHANGE packet. + // + DWORD64 Thread; + + // + // offset in thread object to pointer to the current callback frame + // in kernel stack. + // + DWORD ThCallbackStack; + + // + // offset in thread object to pointer to the current callback backing + // store frame in kernel stack. + // + DWORD ThCallbackBStore; + + // + // offsets to values in frame: + // + // address of next callback frame + DWORD NextCallback; + + // address of saved frame pointer (if applicable) + DWORD FramePointer; + + + // + // Address of the kernel function that calls out to user mode + // + DWORD64 KiCallUserMode; + + // + // Address of the user mode dispatcher function + // + DWORD64 KeUserCallbackDispatcher; + + // + // Lowest kernel mode address + // + DWORD64 SystemRangeStart; + + // + // Address of the user mode exception dispatcher function. + // Added in API version 10. + // + DWORD64 KiUserExceptionDispatcher; + + // + // Stack bounds, added in API version 11. + // + DWORD64 StackBase; + DWORD64 StackLimit; + + // + // Target OS build number. Added in API version 12. + // + DWORD BuildVersion; + DWORD RetpolineStubFunctionTableSize; + DWORD64 RetpolineStubFunctionTable; + DWORD RetpolineStubOffset; + DWORD RetpolineStubSize; + DWORD64 Reserved0[2]; + +} KDHELP64, *PKDHELP64; + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define KDHELP KDHELP64 +#define PKDHELP PKDHELP64 +#else +typedef struct _KDHELP { + + // + // address of kernel thread object, as provided in the + // WAIT_STATE_CHANGE packet. + // + DWORD Thread; + + // + // offset in thread object to pointer to the current callback frame + // in kernel stack. + // + DWORD ThCallbackStack; + + // + // offsets to values in frame: + // + // address of next callback frame + DWORD NextCallback; + + // address of saved frame pointer (if applicable) + DWORD FramePointer; + + // + // Address of the kernel function that calls out to user mode + // + DWORD KiCallUserMode; + + // + // Address of the user mode dispatcher function + // + DWORD KeUserCallbackDispatcher; + + // + // Lowest kernel mode address + // + DWORD SystemRangeStart; + + // + // offset in thread object to pointer to the current callback backing + // store frame in kernel stack. + // + DWORD ThCallbackBStore; + + // + // Address of the user mode exception dispatcher function. + // Added in API version 10. + // + DWORD KiUserExceptionDispatcher; + + // + // Stack bounds, added in API version 11. + // + DWORD StackBase; + DWORD StackLimit; + + DWORD Reserved[5]; + +} KDHELP, *PKDHELP; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +__inline +void +KdHelp32To64( + _In_ PKDHELP p32, + _Out_ PKDHELP64 p64 + ) +{ + p64->Thread = p32->Thread; + p64->ThCallbackStack = p32->ThCallbackStack; + p64->NextCallback = p32->NextCallback; + p64->FramePointer = p32->FramePointer; + p64->KiCallUserMode = p32->KiCallUserMode; + p64->KeUserCallbackDispatcher = p32->KeUserCallbackDispatcher; + p64->SystemRangeStart = p32->SystemRangeStart; + p64->KiUserExceptionDispatcher = p32->KiUserExceptionDispatcher; + p64->StackBase = p32->StackBase; + p64->StackLimit = p32->StackLimit; +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +typedef struct _tagSTACKFRAME64 { + ADDRESS64 AddrPC; // program counter + ADDRESS64 AddrReturn; // return address + ADDRESS64 AddrFrame; // frame pointer + ADDRESS64 AddrStack; // stack pointer + ADDRESS64 AddrBStore; // backing store pointer + PVOID FuncTableEntry; // pointer to pdata/fpo or NULL + DWORD64 Params[4]; // possible arguments to the function + BOOL Far; // WOW far call + BOOL Virtual; // is this a virtual frame? + DWORD64 Reserved[3]; + KDHELP64 KdHelp; +} STACKFRAME64, *LPSTACKFRAME64; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#define INLINE_FRAME_CONTEXT_INIT 0 +#define INLINE_FRAME_CONTEXT_IGNORE 0xFFFFFFFF + +typedef struct _tagSTACKFRAME_EX { + // First, STACKFRAME64 structure + ADDRESS64 AddrPC; // program counter + ADDRESS64 AddrReturn; // return address + ADDRESS64 AddrFrame; // frame pointer + ADDRESS64 AddrStack; // stack pointer + ADDRESS64 AddrBStore; // backing store pointer + PVOID FuncTableEntry; // pointer to pdata/fpo or NULL + DWORD64 Params[4]; // possible arguments to the function + BOOL Far; // WOW far call + BOOL Virtual; // is this a virtual frame? + DWORD64 Reserved[3]; + KDHELP64 KdHelp; + + // Extended STACKFRAME fields + DWORD StackFrameSize; + DWORD InlineFrameContext; +} STACKFRAME_EX, *LPSTACKFRAME_EX; + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define STACKFRAME STACKFRAME64 +#define LPSTACKFRAME LPSTACKFRAME64 +#else +typedef struct _tagSTACKFRAME { + ADDRESS AddrPC; // program counter + ADDRESS AddrReturn; // return address + ADDRESS AddrFrame; // frame pointer + ADDRESS AddrStack; // stack pointer + PVOID FuncTableEntry; // pointer to pdata/fpo or NULL + DWORD Params[4]; // possible arguments to the function + BOOL Far; // WOW far call + BOOL Virtual; // is this a virtual frame? + DWORD Reserved[3]; + KDHELP KdHelp; + ADDRESS AddrBStore; // backing store pointer +} STACKFRAME, *LPSTACKFRAME; +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +typedef +BOOL +(__stdcall *PREAD_PROCESS_MEMORY_ROUTINE64)( + _In_ HANDLE hProcess, + _In_ DWORD64 qwBaseAddress, + _Out_writes_bytes_(nSize) PVOID lpBuffer, + _In_ DWORD nSize, + _Out_ LPDWORD lpNumberOfBytesRead + ); + +typedef +PVOID +(__stdcall *PFUNCTION_TABLE_ACCESS_ROUTINE64)( + _In_ HANDLE ahProcess, + _In_ DWORD64 AddrBase + ); + +typedef +DWORD64 +(__stdcall *PGET_MODULE_BASE_ROUTINE64)( + _In_ HANDLE hProcess, + _In_ DWORD64 Address + ); + +typedef +DWORD64 +(__stdcall *PTRANSLATE_ADDRESS_ROUTINE64)( + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _In_ LPADDRESS64 lpaddr + ); + +// Target Attributes: +// + +// Asks the caller to return a 64-bit mask which indicates which bits in a code address are PAC +// bits. This attribute is only relevant for ARM64 debug targets. The attribute data must be the address +// for which the PAC mask is being fetched. This allows the caller to deal with differences in PAC masks for +// ARM64 EL0/1/2. If PAC is disabled or the attribute does not apply, FALSE should be returned from the attribute +// getter. If the special value TARGET_ATTRIBUTE_PACMASK_LIVETARGET is returned, the PAC mask for the call +// is assumed to be the same as the PAC mask for the currently running process. +// +#define TARGET_ATTRIBUTE_PACMASK 0x00000001 + +// Target Attribute Special Values: +// +#define TARGET_ATTRIBUTE_PACMASK_LIVETARGET 0xFFFFFFFFFFFFFFFFull + +typedef +BOOL +(__stdcall *PGET_TARGET_ATTRIBUTE_VALUE64)( + _In_ HANDLE hProcess, + _In_ DWORD Attribute, + _In_ DWORD64 AttributeData, + _Out_ DWORD64 *AttributeValue + ); + +BOOL +IMAGEAPI +StackWalk64( + _In_ DWORD MachineType, + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _Inout_ LPSTACKFRAME64 StackFrame, + _Inout_ PVOID ContextRecord, + _In_opt_ PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine, + _In_opt_ PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine, + _In_opt_ PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine, + _In_opt_ PTRANSLATE_ADDRESS_ROUTINE64 TranslateAddress + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#define SYM_STKWALK_DEFAULT 0x00000000 +#define SYM_STKWALK_FORCE_FRAMEPTR 0x00000001 +#define SYM_STKWALK_ZEROEXTEND_PTRS 0x00000002 +BOOL +IMAGEAPI +StackWalkEx( + _In_ DWORD MachineType, + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _Inout_ LPSTACKFRAME_EX StackFrame, + _Inout_ PVOID ContextRecord, + _In_opt_ PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine, + _In_opt_ PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine, + _In_opt_ PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine, + _In_opt_ PTRANSLATE_ADDRESS_ROUTINE64 TranslateAddress, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +StackWalk2( + _In_ DWORD MachineType, + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _Inout_ LPSTACKFRAME_EX StackFrame, + _Inout_ PVOID ContextRecord, + _In_opt_ PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine, + _In_opt_ PFUNCTION_TABLE_ACCESS_ROUTINE64 FunctionTableAccessRoutine, + _In_opt_ PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine, + _In_opt_ PTRANSLATE_ADDRESS_ROUTINE64 TranslateAddress, + _In_opt_ PGET_TARGET_ATTRIBUTE_VALUE64 GetTargetAttributeValue, + _In_ DWORD Flags + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) + +#define PREAD_PROCESS_MEMORY_ROUTINE PREAD_PROCESS_MEMORY_ROUTINE64 +#define PFUNCTION_TABLE_ACCESS_ROUTINE PFUNCTION_TABLE_ACCESS_ROUTINE64 +#define PGET_MODULE_BASE_ROUTINE PGET_MODULE_BASE_ROUTINE64 +#define PTRANSLATE_ADDRESS_ROUTINE PTRANSLATE_ADDRESS_ROUTINE64 +#define PGET_TARGET_ATTRIBUTE_VALUE PGET_TARGET_ATTRIBUTE_VALUE64 + +#define StackWalk StackWalk64 + +#else + +typedef +BOOL +(__stdcall *PREAD_PROCESS_MEMORY_ROUTINE)( + _In_ HANDLE hProcess, + _In_ DWORD lpBaseAddress, + _Out_writes_bytes_(nSize) PVOID lpBuffer, + _In_ DWORD nSize, + _Out_ PDWORD lpNumberOfBytesRead + ); + +typedef +PVOID +(__stdcall *PFUNCTION_TABLE_ACCESS_ROUTINE)( + _In_ HANDLE hProcess, + _In_ DWORD AddrBase + ); + +typedef +DWORD +(__stdcall *PGET_MODULE_BASE_ROUTINE)( + _In_ HANDLE hProcess, + _In_ DWORD Address + ); + +typedef +DWORD +(__stdcall *PTRANSLATE_ADDRESS_ROUTINE)( + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _Out_ LPADDRESS lpaddr + ); + +BOOL +IMAGEAPI +StackWalk( + DWORD MachineType, + _In_ HANDLE hProcess, + _In_ HANDLE hThread, + _Inout_ LPSTACKFRAME StackFrame, + _Inout_ PVOID ContextRecord, + _In_opt_ PREAD_PROCESS_MEMORY_ROUTINE ReadMemoryRoutine, + _In_opt_ PFUNCTION_TABLE_ACCESS_ROUTINE FunctionTableAccessRoutine, + _In_opt_ PGET_MODULE_BASE_ROUTINE GetModuleBaseRoutine, + _In_opt_ PTRANSLATE_ADDRESS_ROUTINE TranslateAddress + ); + +#endif + + +#define API_VERSION_NUMBER 12 + +typedef struct API_VERSION { + USHORT MajorVersion; + USHORT MinorVersion; + USHORT Revision; + USHORT Reserved; +} API_VERSION, *LPAPI_VERSION; + +LPAPI_VERSION +IMAGEAPI +ImagehlpApiVersion( + VOID + ); + +LPAPI_VERSION +IMAGEAPI +ImagehlpApiVersionEx( + _In_ LPAPI_VERSION AppVersion + ); + +DWORD +IMAGEAPI +GetTimestampForLoadedLibrary( + _In_ HMODULE Module + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) +// +// typedefs for function pointers +// +typedef BOOL +(CALLBACK *PSYM_ENUMMODULES_CALLBACK64)( + _In_ PCSTR ModuleName, + _In_ DWORD64 BaseOfDll, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMMODULES_CALLBACKW64)( + _In_ PCWSTR ModuleName, + _In_ DWORD64 BaseOfDll, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PENUMLOADED_MODULES_CALLBACK64)( + _In_ PCSTR ModuleName, + _In_ DWORD64 ModuleBase, + _In_ ULONG ModuleSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PENUMLOADED_MODULES_CALLBACKW64)( + _In_ PCWSTR ModuleName, + _In_ DWORD64 ModuleBase, + _In_ ULONG ModuleSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK64)( + _In_ PCSTR SymbolName, + _In_ DWORD64 SymbolAddress, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK64W)( + _In_ PCWSTR SymbolName, + _In_ DWORD64 SymbolAddress, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYMBOL_REGISTERED_CALLBACK64)( + _In_ HANDLE hProcess, + _In_ ULONG ActionCode, + _In_opt_ ULONG64 CallbackData, + _In_opt_ ULONG64 UserContext + ); + +typedef +PVOID +(CALLBACK *PSYMBOL_FUNCENTRY_CALLBACK)( + _In_ HANDLE hProcess, + _In_ DWORD AddrBase, + _In_opt_ PVOID UserContext + ); + +typedef +PVOID +(CALLBACK *PSYMBOL_FUNCENTRY_CALLBACK64)( + _In_ HANDLE hProcess, + _In_ ULONG64 AddrBase, + _In_ ULONG64 UserContext + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) + +#define PSYM_ENUMMODULES_CALLBACK PSYM_ENUMMODULES_CALLBACK64 +#define PSYM_ENUMSYMBOLS_CALLBACK PSYM_ENUMSYMBOLS_CALLBACK64 +#define PSYM_ENUMSYMBOLS_CALLBACKW PSYM_ENUMSYMBOLS_CALLBACK64W +#define PENUMLOADED_MODULES_CALLBACK PENUMLOADED_MODULES_CALLBACK64 +#define PSYMBOL_REGISTERED_CALLBACK PSYMBOL_REGISTERED_CALLBACK64 +#define PSYMBOL_FUNCENTRY_CALLBACK PSYMBOL_FUNCENTRY_CALLBACK64 + +#else + +typedef BOOL +(CALLBACK *PSYM_ENUMMODULES_CALLBACK)( + _In_ PCSTR ModuleName, + _In_ ULONG BaseOfDll, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSYMBOLS_CALLBACK)( + _In_ PCSTR SymbolName, + _In_ ULONG SymbolAddress, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSYMBOLS_CALLBACKW)( + _In_ PCWSTR SymbolName, + _In_ ULONG SymbolAddress, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PENUMLOADED_MODULES_CALLBACK)( + _In_ PCSTR ModuleName, + _In_ ULONG ModuleBase, + _In_ ULONG ModuleSize, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYMBOL_REGISTERED_CALLBACK)( + _In_ HANDLE hProcess, + _In_ ULONG ActionCode, + _In_opt_ PVOID CallbackData, + _In_opt_ PVOID UserContext + ); + +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +// values found in SYMBOL_INFO.Tag +// +// This was taken from cvconst.h and should +// not override any values found there. +// +// #define _NO_CVCONST_H_ if you don't +// have access to that file... + +#ifdef _NO_CVCONST_H + +// DIA enums + +enum SymTagEnum +{ + SymTagNull, + SymTagExe, + SymTagCompiland, + SymTagCompilandDetails, + SymTagCompilandEnv, + SymTagFunction, + SymTagBlock, + SymTagData, + SymTagAnnotation, + SymTagLabel, + SymTagPublicSymbol, + SymTagUDT, + SymTagEnum, + SymTagFunctionType, + SymTagPointerType, + SymTagArrayType, + SymTagBaseType, + SymTagTypedef, + SymTagBaseClass, + SymTagFriend, + SymTagFunctionArgType, + SymTagFuncDebugStart, + SymTagFuncDebugEnd, + SymTagUsingNamespace, + SymTagVTableShape, + SymTagVTable, + SymTagCustom, + SymTagThunk, + SymTagCustomType, + SymTagManagedType, + SymTagDimension, + SymTagCallSite, + SymTagInlineSite, + SymTagBaseInterface, + SymTagVectorType, + SymTagMatrixType, + SymTagHLSLType, + SymTagCaller, + SymTagCallee, + SymTagExport, + SymTagHeapAllocationSite, + SymTagCoffGroup, + SymTagMax +}; + +#endif + +// +// flags found in SYMBOL_INFO.Flags +// + +#define SYMFLAG_VALUEPRESENT 0x00000001 +#define SYMFLAG_REGISTER 0x00000008 +#define SYMFLAG_REGREL 0x00000010 +#define SYMFLAG_FRAMEREL 0x00000020 +#define SYMFLAG_PARAMETER 0x00000040 +#define SYMFLAG_LOCAL 0x00000080 +#define SYMFLAG_CONSTANT 0x00000100 +#define SYMFLAG_EXPORT 0x00000200 +#define SYMFLAG_FORWARDER 0x00000400 +#define SYMFLAG_FUNCTION 0x00000800 +#define SYMFLAG_VIRTUAL 0x00001000 +#define SYMFLAG_THUNK 0x00002000 +#define SYMFLAG_TLSREL 0x00004000 +#define SYMFLAG_SLOT 0x00008000 +#define SYMFLAG_ILREL 0x00010000 +#define SYMFLAG_METADATA 0x00020000 +#define SYMFLAG_CLR_TOKEN 0x00040000 +#define SYMFLAG_NULL 0x00080000 +#define SYMFLAG_FUNC_NO_RETURN 0x00100000 +#define SYMFLAG_SYNTHETIC_ZEROBASE 0x00200000 +#define SYMFLAG_PUBLIC_CODE 0x00400000 +#define SYMFLAG_REGREL_ALIASINDIR 0x00800000 +#define SYMFLAG_FIXUP_ARM64X 0x01000000 +#define SYMFLAG_GLOBAL 0x02000000 +#define SYMFLAG_COMPLEX 0x04000000 + +// this resets SymNext/Prev to the beginning +// of the module passed in the address field + +#define SYMFLAG_RESET 0x80000000 + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +// +// symbol type enumeration +// +typedef enum { + SymNone = 0, + SymCoff, + SymCv, + SymPdb, + SymExport, + SymDeferred, + SymSym, // .sym file + SymDia, + SymVirtual, + NumSymTypes +} SYM_TYPE; + +// +// symbol data structure +// + +typedef struct _IMAGEHLP_SYMBOL64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_SYMBOL64) + DWORD64 Address; // virtual address including dll base address + DWORD Size; // estimated size of symbol, can be zero + DWORD Flags; // info about the symbols, see the SYMF defines + DWORD MaxNameLength; // maximum size of symbol name in 'Name' + CHAR Name[1]; // symbol name (null terminated string) +} IMAGEHLP_SYMBOL64, *PIMAGEHLP_SYMBOL64; + +typedef struct _IMAGEHLP_SYMBOL64_PACKAGE { + IMAGEHLP_SYMBOL64 sym; + CHAR name[MAX_SYM_NAME + 1]; +} IMAGEHLP_SYMBOL64_PACKAGE, *PIMAGEHLP_SYMBOL64_PACKAGE; + +typedef struct _IMAGEHLP_SYMBOLW64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_SYMBOLW64) + DWORD64 Address; // virtual address including dll base address + DWORD Size; // estimated size of symbol, can be zero + DWORD Flags; // info about the symbols, see the SYMF defines + DWORD MaxNameLength; // maximum size of symbol name in 'Name' + WCHAR Name[1]; // symbol name (null terminated string) +} IMAGEHLP_SYMBOLW64, *PIMAGEHLP_SYMBOLW64; + +typedef struct _IMAGEHLP_SYMBOLW64_PACKAGE { + IMAGEHLP_SYMBOLW64 sym; + WCHAR name[MAX_SYM_NAME + 1]; +} IMAGEHLP_SYMBOLW64_PACKAGE, *PIMAGEHLP_SYMBOLW64_PACKAGE; + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) + + #define IMAGEHLP_SYMBOL IMAGEHLP_SYMBOL64 + #define PIMAGEHLP_SYMBOL PIMAGEHLP_SYMBOL64 + #define IMAGEHLP_SYMBOL_PACKAGE IMAGEHLP_SYMBOL64_PACKAGE + #define PIMAGEHLP_SYMBOL_PACKAGE PIMAGEHLP_SYMBOL64_PACKAGE + #define IMAGEHLP_SYMBOLW IMAGEHLP_SYMBOLW64 + #define PIMAGEHLP_SYMBOLW PIMAGEHLP_SYMBOLW64 + #define IMAGEHLP_SYMBOLW_PACKAGE IMAGEHLP_SYMBOLW64_PACKAGE + #define PIMAGEHLP_SYMBOLW_PACKAGE PIMAGEHLP_SYMBOLW64_PACKAGE + +#else + + typedef struct _IMAGEHLP_SYMBOL { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_SYMBOL) + DWORD Address; // virtual address including dll base address + DWORD Size; // estimated size of symbol, can be zero + DWORD Flags; // info about the symbols, see the SYMF defines + DWORD MaxNameLength; // maximum size of symbol name in 'Name' + CHAR Name[1]; // symbol name (null terminated string) + } IMAGEHLP_SYMBOL, *PIMAGEHLP_SYMBOL; + + typedef struct _IMAGEHLP_SYMBOL_PACKAGE { + IMAGEHLP_SYMBOL sym; + CHAR name[MAX_SYM_NAME + 1]; + } IMAGEHLP_SYMBOL_PACKAGE, *PIMAGEHLP_SYMBOL_PACKAGE; + + typedef struct _IMAGEHLP_SYMBOLW { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_SYMBOLW) + DWORD Address; // virtual address including dll base address + DWORD Size; // estimated size of symbol, can be zero + DWORD Flags; // info about the symbols, see the SYMF defines + DWORD MaxNameLength; // maximum size of symbol name in 'Name' + WCHAR Name[1]; // symbol name (null terminated string) + } IMAGEHLP_SYMBOLW, *PIMAGEHLP_SYMBOLW; + + typedef struct _IMAGEHLP_SYMBOLW_PACKAGE { + IMAGEHLP_SYMBOLW sym; + WCHAR name[MAX_SYM_NAME + 1]; + } IMAGEHLP_SYMBOLW_PACKAGE, *PIMAGEHLP_SYMBOLW_PACKAGE; + +#endif + +// +// module data structure +// + +// +// ANSI Module Information +// + +typedef struct _IMAGEHLP_MODULE64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_MODULE64) + DWORD64 BaseOfImage; // base load address of module + DWORD ImageSize; // virtual size of the loaded module + DWORD TimeDateStamp; // date/time stamp from pe header + DWORD CheckSum; // checksum from the pe header + DWORD NumSyms; // number of symbols in the symbol table + SYM_TYPE SymType; // type of symbols loaded + CHAR ModuleName[32]; // module name + CHAR ImageName[256]; // image name + CHAR LoadedImageName[256]; // symbol file name + // new elements: 07-Jun-2002 + CHAR LoadedPdbName[256]; // pdb file name + DWORD CVSig; // Signature of the CV record in the debug directories + CHAR CVData[MAX_PATH * 3]; // Contents of the CV record + DWORD PdbSig; // Signature of PDB + GUID PdbSig70; // Signature of PDB (VC 7 and up) + DWORD PdbAge; // DBI age of pdb + BOOL PdbUnmatched; // loaded an unmatched pdb + BOOL DbgUnmatched; // loaded an unmatched dbg + BOOL LineNumbers; // we have line number information + BOOL GlobalSymbols; // we have internal symbol information + BOOL TypeInfo; // we have type information + // new elements: 17-Dec-2003 + BOOL SourceIndexed; // pdb supports source server + BOOL Publics; // contains public symbols + // new element: 15-Jul-2009 + DWORD MachineType; // IMAGE_FILE_MACHINE_XXX from ntimage.h and winnt.h + DWORD Reserved; // Padding - don't remove. +} IMAGEHLP_MODULE64, *PIMAGEHLP_MODULE64; + +// (Extended) ANSI version of IMAGEHLP_MODULE64 that supports Search Hints +typedef struct _IMAGEHLP_MODULE64_EX { + IMAGEHLP_MODULE64 Module; + DWORD RegionFlags; // Region Search Flags - IMAGEHLP_MODULE_REGION_XXX +} IMAGEHLP_MODULE64_EX, *PIMAGEHLP_MODULE64_EX; + +// +// WIDE Module Information +// + +typedef struct _IMAGEHLP_MODULEW64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_MODULE64) + DWORD64 BaseOfImage; // base load address of module + DWORD ImageSize; // virtual size of the loaded module + DWORD TimeDateStamp; // date/time stamp from pe header + DWORD CheckSum; // checksum from the pe header + DWORD NumSyms; // number of symbols in the symbol table + SYM_TYPE SymType; // type of symbols loaded + WCHAR ModuleName[32]; // module name + WCHAR ImageName[256]; // image name + // new elements: 07-Jun-2002 + WCHAR LoadedImageName[256]; // symbol file name + WCHAR LoadedPdbName[256]; // pdb file name + DWORD CVSig; // Signature of the CV record in the debug directories + WCHAR CVData[MAX_PATH * 3]; // Contents of the CV record + DWORD PdbSig; // Signature of PDB + GUID PdbSig70; // Signature of PDB (VC 7 and up) + DWORD PdbAge; // DBI age of pdb + BOOL PdbUnmatched; // loaded an unmatched pdb + BOOL DbgUnmatched; // loaded an unmatched dbg + BOOL LineNumbers; // we have line number information + BOOL GlobalSymbols; // we have internal symbol information + BOOL TypeInfo; // we have type information + // new elements: 17-Dec-2003 + BOOL SourceIndexed; // pdb supports source server + BOOL Publics; // contains public symbols + // new element: 15-Jul-2009 + DWORD MachineType; // IMAGE_FILE_MACHINE_XXX from ntimage.h and winnt.h + DWORD Reserved; // Padding - don't remove. +} IMAGEHLP_MODULEW64, *PIMAGEHLP_MODULEW64; + +// (Extended) WIDE version of IMAGEHLP_MODULEW64 that supports Search Hints +typedef struct _IMAGEHLP_MODULEW64_EX { + IMAGEHLP_MODULEW64 Module; + DWORD RegionFlags; // Region Search Flags - IMAGEHLP_MODULE_REGION_XXX +} IMAGEHLP_MODULEW64_EX, *PIMAGEHLP_MODULEW64_EX; + + +#define IMAGEHLP_MODULE_REGION_DLLBASE 0x01 +#define IMAGEHLP_MODULE_REGION_DLLRANGE 0x02 +#define IMAGEHLP_MODULE_REGION_ADDITIONAL 0x04 +#define IMAGEHLP_MODULE_REGION_JIT 0x08 +#define IMAGEHLP_MODULE_REGION_ALL 0xFF + + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define IMAGEHLP_MODULE IMAGEHLP_MODULE64 +#define PIMAGEHLP_MODULE PIMAGEHLP_MODULE64 +#define IMAGEHLP_MODULEW IMAGEHLP_MODULEW64 +#define PIMAGEHLP_MODULEW PIMAGEHLP_MODULEW64 +#else +typedef struct _IMAGEHLP_MODULE { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_MODULE) + DWORD BaseOfImage; // base load address of module + DWORD ImageSize; // virtual size of the loaded module + DWORD TimeDateStamp; // date/time stamp from pe header + DWORD CheckSum; // checksum from the pe header + DWORD NumSyms; // number of symbols in the symbol table + SYM_TYPE SymType; // type of symbols loaded + CHAR ModuleName[32]; // module name + CHAR ImageName[256]; // image name + CHAR LoadedImageName[256]; // symbol file name +} IMAGEHLP_MODULE, *PIMAGEHLP_MODULE; + +typedef struct _IMAGEHLP_MODULEW { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_MODULE) + DWORD BaseOfImage; // base load address of module + DWORD ImageSize; // virtual size of the loaded module + DWORD TimeDateStamp; // date/time stamp from pe header + DWORD CheckSum; // checksum from the pe header + DWORD NumSyms; // number of symbols in the symbol table + SYM_TYPE SymType; // type of symbols loaded + WCHAR ModuleName[32]; // module name + WCHAR ImageName[256]; // image name + WCHAR LoadedImageName[256]; // symbol file name +} IMAGEHLP_MODULEW, *PIMAGEHLP_MODULEW; +#endif + +// +// source file line data structure +// + +typedef struct _IMAGEHLP_LINE64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_LINE64) + PVOID Key; // internal + DWORD LineNumber; // line number in file + PCHAR FileName; // full filename + DWORD64 Address; // first instruction of line +} IMAGEHLP_LINE64, *PIMAGEHLP_LINE64; + +typedef struct _IMAGEHLP_LINEW64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_LINE64) + PVOID Key; // internal + DWORD LineNumber; // line number in file + PWSTR FileName; // full filename + DWORD64 Address; // first instruction of line +} IMAGEHLP_LINEW64, *PIMAGEHLP_LINEW64; + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define IMAGEHLP_LINE IMAGEHLP_LINE64 +#define PIMAGEHLP_LINE PIMAGEHLP_LINE64 +#else +typedef struct _IMAGEHLP_LINE { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_LINE) + PVOID Key; // internal + DWORD LineNumber; // line number in file + PCHAR FileName; // full filename + DWORD Address; // first instruction of line +} IMAGEHLP_LINE, *PIMAGEHLP_LINE; + +typedef struct _IMAGEHLP_LINEW { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_LINE64) + PVOID Key; // internal + DWORD LineNumber; // line number in file + PCHAR FileName; // full filename + DWORD64 Address; // first instruction of line +} IMAGEHLP_LINEW, *PIMAGEHLP_LINEW; +#endif + +// +// source file structure +// + +typedef struct _SOURCEFILE { + DWORD64 ModBase; // base address of loaded module + PCHAR FileName; // full filename of source +} SOURCEFILE, *PSOURCEFILE; + +typedef struct _SOURCEFILEW { + DWORD64 ModBase; // base address of loaded module + PWSTR FileName; // full filename of source +} SOURCEFILEW, *PSOURCEFILEW; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +// +// data structures used for registered symbol callbacks +// + +#define CBA_DEFERRED_SYMBOL_LOAD_START 0x00000001 +#define CBA_DEFERRED_SYMBOL_LOAD_COMPLETE 0x00000002 +#define CBA_DEFERRED_SYMBOL_LOAD_FAILURE 0x00000003 +#define CBA_SYMBOLS_UNLOADED 0x00000004 +#define CBA_DUPLICATE_SYMBOL 0x00000005 +#define CBA_READ_MEMORY 0x00000006 +#define CBA_DEFERRED_SYMBOL_LOAD_CANCEL 0x00000007 +#define CBA_SET_OPTIONS 0x00000008 +#define CBA_EVENT 0x00000010 +#define CBA_DEFERRED_SYMBOL_LOAD_PARTIAL 0x00000020 +#define CBA_DEBUG_INFO 0x10000000 +#define CBA_SRCSRV_INFO 0x20000000 +#define CBA_SRCSRV_EVENT 0x40000000 +#define CBA_UPDATE_STATUS_BAR 0x50000000 +#define CBA_ENGINE_PRESENT 0x60000000 +#define CBA_CHECK_ENGOPT_DISALLOW_NETWORK_PATHS 0x70000000 +#define CBA_CHECK_ARM_MACHINE_THUMB_TYPE_OVERRIDE 0x80000000 +#define CBA_XML_LOG 0x90000000 +#define CBA_MAP_JIT_SYMBOL 0xA0000000 + + +typedef struct _IMAGEHLP_CBA_READ_MEMORY { + DWORD64 addr; // address to read from + PVOID buf; // buffer to read to + DWORD bytes; // amount of bytes to read + DWORD *bytesread; // pointer to store amount of bytes read +} IMAGEHLP_CBA_READ_MEMORY, *PIMAGEHLP_CBA_READ_MEMORY; + +enum { + sevInfo = 0, + sevProblem, + sevAttn, + sevFatal, + sevMax // unused +}; + +#define EVENT_SRCSPEW_START 100 +#define EVENT_SRCSPEW 100 +#define EVENT_SRCSPEW_END 199 + +typedef struct _IMAGEHLP_CBA_EVENT { + DWORD severity; // values from sevInfo to sevFatal + DWORD code; // numerical code IDs the error + PCHAR desc; // may contain a text description of the error + PVOID object; // value dependant upon the error code +} IMAGEHLP_CBA_EVENT, *PIMAGEHLP_CBA_EVENT; + +typedef struct _IMAGEHLP_CBA_EVENTW { + DWORD severity; // values from sevInfo to sevFatal + DWORD code; // numerical code IDs the error + PCWSTR desc; // may contain a text description of the error + PVOID object; // value dependant upon the error code +} IMAGEHLP_CBA_EVENTW, *PIMAGEHLP_CBA_EVENTW; + +typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOAD64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_DEFERRED_SYMBOL_LOAD64) + DWORD64 BaseOfImage; // base load address of module + DWORD CheckSum; // checksum from the pe header + DWORD TimeDateStamp; // date/time stamp from pe header + CHAR FileName[MAX_PATH]; // symbols file or image name + BOOLEAN Reparse; // load failure reparse + HANDLE hFile; // file handle, if passed + DWORD Flags; // +} IMAGEHLP_DEFERRED_SYMBOL_LOAD64, *PIMAGEHLP_DEFERRED_SYMBOL_LOAD64; + +typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOADW64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_DEFERRED_SYMBOL_LOADW64) + DWORD64 BaseOfImage; // base load address of module + DWORD CheckSum; // checksum from the pe header + DWORD TimeDateStamp; // date/time stamp from pe header + WCHAR FileName[MAX_PATH + 1]; // symbols file or image name + BOOLEAN Reparse; // load failure reparse + HANDLE hFile; // file handle, if passed + DWORD Flags; // +} IMAGEHLP_DEFERRED_SYMBOL_LOADW64, *PIMAGEHLP_DEFERRED_SYMBOL_LOADW64; + +#define DSLFLAG_MISMATCHED_PDB 0x1 +#define DSLFLAG_MISMATCHED_DBG 0x2 +#define FLAG_ENGINE_PRESENT 0x4 +#define FLAG_ENGOPT_DISALLOW_NETWORK_PATHS 0x8 +#define FLAG_OVERRIDE_ARM_MACHINE_TYPE 0x10 + + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define IMAGEHLP_DEFERRED_SYMBOL_LOAD IMAGEHLP_DEFERRED_SYMBOL_LOAD64 +#define PIMAGEHLP_DEFERRED_SYMBOL_LOAD PIMAGEHLP_DEFERRED_SYMBOL_LOAD64 +#else +typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOAD { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_DEFERRED_SYMBOL_LOAD) + DWORD BaseOfImage; // base load address of module + DWORD CheckSum; // checksum from the pe header + DWORD TimeDateStamp; // date/time stamp from pe header + CHAR FileName[MAX_PATH]; // symbols file or image name + BOOLEAN Reparse; // load failure reparse + HANDLE hFile; // file handle, if passed +} IMAGEHLP_DEFERRED_SYMBOL_LOAD, *PIMAGEHLP_DEFERRED_SYMBOL_LOAD; +#endif + +typedef struct _IMAGEHLP_DUPLICATE_SYMBOL64 { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_DUPLICATE_SYMBOL64) + DWORD NumberOfDups; // number of duplicates in the Symbol array + PIMAGEHLP_SYMBOL64 Symbol; // array of duplicate symbols + DWORD SelectedSymbol; // symbol selected (-1 to start) +} IMAGEHLP_DUPLICATE_SYMBOL64, *PIMAGEHLP_DUPLICATE_SYMBOL64; + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define IMAGEHLP_DUPLICATE_SYMBOL IMAGEHLP_DUPLICATE_SYMBOL64 +#define PIMAGEHLP_DUPLICATE_SYMBOL PIMAGEHLP_DUPLICATE_SYMBOL64 +#else +typedef struct _IMAGEHLP_DUPLICATE_SYMBOL { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_DUPLICATE_SYMBOL) + DWORD NumberOfDups; // number of duplicates in the Symbol array + PIMAGEHLP_SYMBOL Symbol; // array of duplicate symbols + DWORD SelectedSymbol; // symbol selected (-1 to start) +} IMAGEHLP_DUPLICATE_SYMBOL, *PIMAGEHLP_DUPLICATE_SYMBOL; +#endif + +typedef struct _IMAGEHLP_JIT_SYMBOL_MAP { + DWORD SizeOfStruct; // set to sizeof(IMAGEHLP_JIT_SYMBOL_MAP) + DWORD64 Address; // address to map to JIT association with an image + DWORD64 BaseOfImage; // base load address (0 == unmapped) +} IMAGEHLP_JIT_SYMBOLMAP, *PIMAGEHLP_JIT_SYMBOLMAP; + +// If dbghelp ever needs to display graphical UI, it will use this as the parent window. + +BOOL +IMAGEAPI +SymSetParentWindow( + _In_ HWND hwnd + ); + +BOOL +IMAGEAPI +SymGetParentWindow( + _Out_ HWND * pHwnd + ); + +PCHAR +IMAGEAPI +SymSetHomeDirectory( + _In_opt_ HANDLE hProcess, + _In_opt_ PCSTR dir + ); + +PWSTR +IMAGEAPI +SymSetHomeDirectoryW( + _In_opt_ HANDLE hProcess, + _In_opt_ PCWSTR dir + ); + +PCHAR +IMAGEAPI +SymGetHomeDirectory( + _In_ DWORD type, + _Out_writes_(size) PSTR dir, + _In_ size_t size + ); + +PWSTR +IMAGEAPI +SymGetHomeDirectoryW( + _In_ DWORD type, + _Out_writes_(size) PWSTR dir, + _In_ size_t size + ); + +typedef enum { + hdBase = 0, // root directory for dbghelp + hdSym, // where symbols are stored + hdSrc, // where source is stored + hdMax // end marker +} IMAGEHLP_HD_TYPE; + +typedef struct _OMAP { + ULONG rva; + ULONG rvaTo; +} OMAP, *POMAP; + +BOOL +IMAGEAPI +SymGetOmaps( + _In_ HANDLE hProcess, + _In_ DWORD64 BaseOfDll, + _Out_ POMAP *OmapTo, + _Out_ PDWORD64 cOmapTo, + _Out_ POMAP *OmapFrom, + _Out_ PDWORD64 cOmapFrom + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// options that are set/returned by SymSetOptions() & SymGetOptions() +// these are used as a mask +// + + #define SYMOPT_CASE_INSENSITIVE 0x00000001 + #define SYMOPT_UNDNAME 0x00000002 + #define SYMOPT_DEFERRED_LOADS 0x00000004 + #define SYMOPT_NO_CPP 0x00000008 + #define SYMOPT_LOAD_LINES 0x00000010 + #define SYMOPT_OMAP_FIND_NEAREST 0x00000020 + #define SYMOPT_LOAD_ANYTHING 0x00000040 + #define SYMOPT_IGNORE_CVREC 0x00000080 + #define SYMOPT_NO_UNQUALIFIED_LOADS 0x00000100 + #define SYMOPT_FAIL_CRITICAL_ERRORS 0x00000200 + #define SYMOPT_EXACT_SYMBOLS 0x00000400 + #define SYMOPT_ALLOW_ABSOLUTE_SYMBOLS 0x00000800 + #define SYMOPT_IGNORE_NT_SYMPATH 0x00001000 + #define SYMOPT_INCLUDE_32BIT_MODULES 0x00002000 + #define SYMOPT_PUBLICS_ONLY 0x00004000 + #define SYMOPT_NO_PUBLICS 0x00008000 + #define SYMOPT_AUTO_PUBLICS 0x00010000 + #define SYMOPT_NO_IMAGE_SEARCH 0x00020000 + #define SYMOPT_SECURE 0x00040000 + #define SYMOPT_NO_PROMPTS 0x00080000 + #define SYMOPT_OVERWRITE 0x00100000 + #define SYMOPT_IGNORE_IMAGEDIR 0x00200000 + #define SYMOPT_FLAT_DIRECTORY 0x00400000 + #define SYMOPT_FAVOR_COMPRESSED 0x00800000 + #define SYMOPT_ALLOW_ZERO_ADDRESS 0x01000000 + #define SYMOPT_DISABLE_SYMSRV_AUTODETECT 0x02000000 + #define SYMOPT_READONLY_CACHE 0x04000000 + #define SYMOPT_SYMPATH_LAST 0x08000000 + #define SYMOPT_DISABLE_FAST_SYMBOLS 0x10000000 + #define SYMOPT_DISABLE_SYMSRV_TIMEOUT 0x20000000 + #define SYMOPT_DISABLE_SRVSTAR_ON_STARTUP 0x40000000 + #define SYMOPT_DEBUG 0x80000000 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +typedef enum { + SYMOPT_EX_DISABLEACCESSTIMEUPDATE, // Disable File Last Access Time on Symbols + SYMOPT_EX_LASTVALIDDEBUGDIRECTORY, // For entries with multiple debug directories: prefer the last to the first + SYMOPT_EX_NOIMPLICITPATTERNSEARCH, // For SymEnum* APIs: never implicitly run a pattern search without explicit pattern characters + SYMOPT_EX_NEVERLOADSYMBOLS, // Never try to load and parse symbols + SYMOPT_EX_MAX // Unused +} IMAGEHLP_EXTENDED_OPTIONS; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +DWORD +IMAGEAPI +SymSetOptions( + _In_ DWORD SymOptions + ); + +DWORD +IMAGEAPI +SymGetOptions( + VOID + ); + +BOOL +IMAGEAPI +SymCleanup( + _In_ HANDLE hProcess + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +// Returns the value of the extended option +BOOL +IMAGEAPI +SymGetExtendedOption(_In_ IMAGEHLP_EXTENDED_OPTIONS option); + +// Returns the previous value of the option +BOOL +IMAGEAPI +SymSetExtendedOption(_In_ IMAGEHLP_EXTENDED_OPTIONS option, _In_ BOOL value); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymMatchString( + _In_ PCSTR string, + _In_ PCSTR expression, + _In_ BOOL fCase + ); + +BOOL +IMAGEAPI +SymMatchStringA( + _In_ PCSTR string, + _In_ PCSTR expression, + _In_ BOOL fCase + ); + +BOOL +IMAGEAPI +SymMatchStringW( + _In_ PCWSTR string, + _In_ PCWSTR expression, + _In_ BOOL fCase + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSOURCEFILES_CALLBACK)( + _In_ PSOURCEFILE pSourceFile, + _In_opt_ PVOID UserContext + ); + +// for backwards compatibility - don't use this +#define PSYM_ENUMSOURCFILES_CALLBACK PSYM_ENUMSOURCEFILES_CALLBACK + +BOOL +IMAGEAPI +SymEnumSourceFiles( + _In_ HANDLE hProcess, + _In_ ULONG64 ModBase, + _In_opt_ PCSTR Mask, + _In_ PSYM_ENUMSOURCEFILES_CALLBACK cbSrcFiles, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMSOURCEFILES_CALLBACKW)( + _In_ PSOURCEFILEW pSourceFile, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSourceFilesW( + _In_ HANDLE hProcess, + _In_ ULONG64 ModBase, + _In_opt_ PCWSTR Mask, + _In_ PSYM_ENUMSOURCEFILES_CALLBACKW cbSrcFiles, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumerateModules64( + _In_ HANDLE hProcess, + _In_ PSYM_ENUMMODULES_CALLBACK64 EnumModulesCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumerateModulesW64( + _In_ HANDLE hProcess, + _In_ PSYM_ENUMMODULES_CALLBACKW64 EnumModulesCallback, + _In_opt_ PVOID UserContext + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymEnumerateModules SymEnumerateModules64 +#else +BOOL +IMAGEAPI +SymEnumerateModules( + _In_ HANDLE hProcess, + _In_ PSYM_ENUMMODULES_CALLBACK EnumModulesCallback, + _In_opt_ PVOID UserContext + ); +#endif + +BOOL +IMAGEAPI +EnumerateLoadedModulesEx( + _In_ HANDLE hProcess, + _In_ PENUMLOADED_MODULES_CALLBACK64 EnumLoadedModulesCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +EnumerateLoadedModulesExW( + _In_ HANDLE hProcess, + _In_ PENUMLOADED_MODULES_CALLBACKW64 EnumLoadedModulesCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +EnumerateLoadedModules64( + _In_ HANDLE hProcess, + _In_ PENUMLOADED_MODULES_CALLBACK64 EnumLoadedModulesCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +EnumerateLoadedModulesW64( + _In_ HANDLE hProcess, + _In_ PENUMLOADED_MODULES_CALLBACKW64 EnumLoadedModulesCallback, + _In_opt_ PVOID UserContext + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define EnumerateLoadedModules EnumerateLoadedModules64 +#else +BOOL +IMAGEAPI +EnumerateLoadedModules( + _In_ HANDLE hProcess, + _In_ PENUMLOADED_MODULES_CALLBACK EnumLoadedModulesCallback, + _In_opt_ PVOID UserContext + ); +#endif + +PVOID +IMAGEAPI +SymFunctionTableAccess64( + _In_ HANDLE hProcess, + _In_ DWORD64 AddrBase + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +PVOID +IMAGEAPI +SymFunctionTableAccess64AccessRoutines( + _In_ HANDLE hProcess, + _In_ DWORD64 AddrBase, + _In_opt_ PREAD_PROCESS_MEMORY_ROUTINE64 ReadMemoryRoutine, + _In_opt_ PGET_MODULE_BASE_ROUTINE64 GetModuleBaseRoutine + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymFunctionTableAccess SymFunctionTableAccess64 +#else +PVOID +IMAGEAPI +SymFunctionTableAccess( + _In_ HANDLE hProcess, + _In_ DWORD AddrBase + ); +#endif + +BOOL +IMAGEAPI +SymGetUnwindInfo( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _Out_writes_bytes_opt_(*Size) PVOID Buffer, + _Inout_ PULONG Size + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymGetModuleInfo64( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr, + _Out_ PIMAGEHLP_MODULE64 ModuleInfo + ); + +BOOL +IMAGEAPI +SymGetModuleInfoW64( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr, + _Out_ PIMAGEHLP_MODULEW64 ModuleInfo + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetModuleInfo SymGetModuleInfo64 +#define SymGetModuleInfoW SymGetModuleInfoW64 +#else +BOOL +IMAGEAPI +SymGetModuleInfo( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr, + _Out_ PIMAGEHLP_MODULE ModuleInfo + ); + +BOOL +IMAGEAPI +SymGetModuleInfoW( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr, + _Out_ PIMAGEHLP_MODULEW ModuleInfo + ); +#endif + +DWORD64 +IMAGEAPI +SymGetModuleBase64( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetModuleBase SymGetModuleBase64 +#else +DWORD +IMAGEAPI +SymGetModuleBase( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +typedef struct _SRCCODEINFO { + DWORD SizeOfStruct; // set to sizeof(SRCCODEINFO) + PVOID Key; // not used + DWORD64 ModBase; // base address of module this applies to + CHAR Obj[MAX_PATH + 1]; // the object file within the module + CHAR FileName[MAX_PATH + 1]; // full filename + DWORD LineNumber; // line number in file + DWORD64 Address; // first instruction of line +} SRCCODEINFO, *PSRCCODEINFO; + +typedef struct _SRCCODEINFOW { + DWORD SizeOfStruct; // set to sizeof(SRCCODEINFO) + PVOID Key; // not used + DWORD64 ModBase; // base address of module this applies to + WCHAR Obj[MAX_PATH + 1]; // the object file within the module + WCHAR FileName[MAX_PATH + 1]; // full filename + DWORD LineNumber; // line number in file + DWORD64 Address; // first instruction of line +} SRCCODEINFOW, *PSRCCODEINFOW; + +typedef BOOL +(CALLBACK *PSYM_ENUMLINES_CALLBACK)( + _In_ PSRCCODEINFO LineInfo, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumLines( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCSTR Obj, + _In_opt_ PCSTR File, + _In_ PSYM_ENUMLINES_CALLBACK EnumLinesCallback, + _In_opt_ PVOID UserContext + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMLINES_CALLBACKW)( + _In_ PSRCCODEINFOW LineInfo, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumLinesW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCWSTR Obj, + _In_opt_ PCWSTR File, + _In_ PSYM_ENUMLINES_CALLBACKW EnumLinesCallback, + _In_opt_ PVOID UserContext + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymGetLineFromAddr64( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINE64 Line64 + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +BOOL +IMAGEAPI +SymGetLineFromAddrW64( + _In_ HANDLE hProcess, + _In_ DWORD64 dwAddr, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINEW64 Line + ); + +BOOL +IMAGEAPI +SymGetLineFromInlineContext( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr, + _In_ ULONG InlineContext, + _In_opt_ DWORD64 qwModuleBaseAddress, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINE64 Line64 + ); + +BOOL +IMAGEAPI +SymGetLineFromInlineContextW( + _In_ HANDLE hProcess, + _In_ DWORD64 dwAddr, + _In_ ULONG InlineContext, + _In_opt_ DWORD64 qwModuleBaseAddress, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINEW64 Line + ); + +BOOL +IMAGEAPI +SymEnumSourceLines( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCSTR Obj, + _In_opt_ PCSTR File, + _In_opt_ DWORD Line, + _In_ DWORD Flags, + _In_ PSYM_ENUMLINES_CALLBACK EnumLinesCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSourceLinesW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCWSTR Obj, + _In_opt_ PCWSTR File, + _In_opt_ DWORD Line, + _In_ DWORD Flags, + _In_ PSYM_ENUMLINES_CALLBACKW EnumLinesCallback, + _In_opt_ PVOID UserContext + ); + +// Check whether input Address includes "inline stack". +DWORD +IMAGEAPI +SymAddrIncludeInlineTrace( + _In_ HANDLE hProcess, + _In_ DWORD64 Address + ); + +#define SYM_INLINE_COMP_ERROR 0 +#define SYM_INLINE_COMP_IDENTICAL 1 +#define SYM_INLINE_COMP_STEPIN 2 +#define SYM_INLINE_COMP_STEPOUT 3 +#define SYM_INLINE_COMP_STEPOVER 4 +#define SYM_INLINE_COMP_DIFFERENT 5 + +// Compare the "inline stack" from the 2 input addresses and determine whether the difference is possibly from +// what execution control operation. The return value would be onr of the literals defined above. +DWORD +IMAGEAPI +SymCompareInlineTrace( + _In_ HANDLE hProcess, + _In_ DWORD64 Address1, + _In_ DWORD InlineContext1, + _In_ DWORD64 RetAddress1, + _In_ DWORD64 Address2, + _In_ DWORD64 RetAddress2 + ); + +BOOL +IMAGEAPI +SymQueryInlineTrace( + _In_ HANDLE hProcess, + _In_ DWORD64 StartAddress, + _In_ DWORD StartContext, + _In_ DWORD64 StartRetAddress, + _In_ DWORD64 CurAddress, + _Out_ LPDWORD CurContext, + _Out_ LPDWORD CurFrameIndex + ); + +// flags for SymEnumSourceLines + +#define ESLFLAG_FULLPATH 0x00000001 +#define ESLFLAG_NEAREST 0x00000002 +#define ESLFLAG_PREV 0x00000004 +#define ESLFLAG_NEXT 0x00000008 +#define ESLFLAG_INLINE_SITE 0x00000010 + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetLineFromAddr SymGetLineFromAddr64 +#define SymGetLineFromAddrW SymGetLineFromAddrW64 +#else +BOOL +IMAGEAPI +SymGetLineFromAddr( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINE Line + ); + +BOOL +IMAGEAPI +SymGetLineFromAddrW( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr, + _Out_ PDWORD pdwDisplacement, + _Out_ PIMAGEHLP_LINEW Line + ); +#endif + +BOOL +IMAGEAPI +SymGetLineFromName64( + _In_ HANDLE hProcess, + _In_opt_ PCSTR ModuleName, + _In_opt_ PCSTR FileName, + _In_ DWORD dwLineNumber, + _Out_ PLONG plDisplacement, + _Inout_ PIMAGEHLP_LINE64 Line + ); + +BOOL +IMAGEAPI +SymGetLineFromNameW64( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR ModuleName, + _In_opt_ PCWSTR FileName, + _In_ DWORD dwLineNumber, + _Out_ PLONG plDisplacement, + _Inout_ PIMAGEHLP_LINEW64 Line + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetLineFromName SymGetLineFromName64 +#else +BOOL +IMAGEAPI +SymGetLineFromName( + _In_ HANDLE hProcess, + _In_opt_ PCSTR ModuleName, + _In_opt_ PCSTR FileName, + _In_ DWORD dwLineNumber, + _Out_ PLONG plDisplacement, + _Inout_ PIMAGEHLP_LINE Line + ); +#endif + +BOOL +IMAGEAPI +SymGetLineNext64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINE64 Line + ); + +BOOL +IMAGEAPI +SymGetLineNextW64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINEW64 Line + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetLineNext SymGetLineNext64 +#else +BOOL +IMAGEAPI +SymGetLineNext( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINE Line + ); + +BOOL +IMAGEAPI +SymGetLineNextW( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINEW Line + ); +#endif + +BOOL +IMAGEAPI +SymGetLinePrev64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINE64 Line + ); + +BOOL +IMAGEAPI +SymGetLinePrevW64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINEW64 Line + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetLinePrev SymGetLinePrev64 +#else +BOOL +IMAGEAPI +SymGetLinePrev( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINE Line + ); + +BOOL +IMAGEAPI +SymGetLinePrevW( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_LINEW Line + ); +#endif + +ULONG +IMAGEAPI +SymGetFileLineOffsets64( + _In_ HANDLE hProcess, + _In_opt_ PCSTR ModuleName, + _In_ PCSTR FileName, + _Out_writes_(BufferLines) PDWORD64 Buffer, + _In_ ULONG BufferLines + ); + +BOOL +IMAGEAPI +SymMatchFileName( + _In_ PCSTR FileName, + _In_ PCSTR Match, + _Outptr_opt_ PSTR *FileNameStop, + _Outptr_opt_ PSTR *MatchStop + ); + +BOOL +IMAGEAPI +SymMatchFileNameW( + _In_ PCWSTR FileName, + _In_ PCWSTR Match, + _Outptr_opt_ PWSTR *FileNameStop, + _Outptr_opt_ PWSTR *MatchStop + ); + +BOOL +IMAGEAPI +SymGetSourceFile( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCSTR Params, + _In_ PCSTR FileSpec, + _Out_writes_(Size) PSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCWSTR Params, + _In_ PCWSTR FileSpec, + _Out_writes_(Size) PWSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileToken( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCSTR FileSpec, + _Outptr_ PVOID *Token, + _Out_ DWORD *Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileTokenByTokenName( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCSTR FileSpec, + _In_ PCSTR TokenName, + _In_opt_ PCSTR TokenParameters, + _Outptr_ PVOID *Token, + _Out_ DWORD *Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileChecksumW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCWSTR FileSpec, + _Out_ DWORD *pCheckSumType, + _Out_writes_(checksumSize) BYTE *pChecksum, + _In_ DWORD checksumSize, + _Out_ DWORD *pActualBytesWritten + ); + +BOOL +IMAGEAPI +SymGetSourceFileChecksum( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCSTR FileSpec, + _Out_ DWORD *pCheckSumType, + _Out_writes_(checksumSize) BYTE *pChecksum, + _In_ DWORD checksumSize, + _Out_ DWORD *pActualBytesWritten + ); + +BOOL +IMAGEAPI +SymGetSourceFileTokenW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCWSTR FileSpec, + _Outptr_ PVOID *Token, + _Out_ DWORD *Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileTokenByTokenNameW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PCWSTR FileSpec, + _In_ PCWSTR TokenName, + _In_opt_ PCWSTR TokenParameters, + _Outptr_ PVOID *Token, + _Out_ DWORD *Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileFromToken( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCSTR Params, + _Out_writes_(Size) PSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileFromTokenByTokenName( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCSTR TokenName, + _In_opt_ PCSTR Params, + _Out_writes_(Size) PSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileFromTokenW( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCWSTR Params, + _Out_writes_(Size) PWSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceFileFromTokenByTokenNameW( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCWSTR TokenName, + _In_opt_ PCWSTR Params, + _Out_writes_(Size) PWSTR FilePath, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceVarFromToken( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCSTR Params, + _In_ PCSTR VarName, + _Out_writes_(Size) PSTR Value, + _In_ DWORD Size + ); + +BOOL +IMAGEAPI +SymGetSourceVarFromTokenW( + _In_ HANDLE hProcess, + _In_ PVOID Token, + _In_opt_ PCWSTR Params, + _In_ PCWSTR VarName, + _Out_writes_(Size) PWSTR Value, + _In_ DWORD Size + ); + +typedef BOOL (CALLBACK *PENUMSOURCEFILETOKENSCALLBACK)(_In_ PVOID token, _In_ size_t size); + +BOOL +IMAGEAPI +SymEnumSourceFileTokens( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_ PENUMSOURCEFILETOKENSCALLBACK Callback + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymInitialize( + _In_ HANDLE hProcess, + _In_opt_ PCSTR UserSearchPath, + _In_ BOOL fInvadeProcess + ); + +BOOL +IMAGEAPI +SymInitializeW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR UserSearchPath, + _In_ BOOL fInvadeProcess + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +BOOL +IMAGEAPI +SymGetSearchPath( + _In_ HANDLE hProcess, + _Out_writes_(SearchPathLength) PSTR SearchPath, + _In_ DWORD SearchPathLength + ); + +BOOL +IMAGEAPI +SymGetSearchPathW( + _In_ HANDLE hProcess, + _Out_writes_(SearchPathLength) PWSTR SearchPath, + _In_ DWORD SearchPathLength + ); + +BOOL +IMAGEAPI +SymSetSearchPath( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SearchPath + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymSetSearchPathW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SearchPath + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#define SLMFLAG_VIRTUAL 0x1 +#define SLMFLAG_ALT_INDEX 0x2 +#define SLMFLAG_NO_SYMBOLS 0x4 + +DWORD64 +IMAGEAPI +SymLoadModuleEx( + _In_ HANDLE hProcess, + _In_opt_ HANDLE hFile, + _In_opt_ PCSTR ImageName, + _In_opt_ PCSTR ModuleName, + _In_ DWORD64 BaseOfDll, + _In_ DWORD DllSize, + _In_opt_ PMODLOAD_DATA Data, + _In_opt_ DWORD Flags + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +DWORD64 +IMAGEAPI +SymLoadModuleExW( + _In_ HANDLE hProcess, + _In_opt_ HANDLE hFile, + _In_opt_ PCWSTR ImageName, + _In_opt_ PCWSTR ModuleName, + _In_ DWORD64 BaseOfDll, + _In_ DWORD DllSize, + _In_opt_ PMODLOAD_DATA Data, + _In_opt_ DWORD Flags + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +BOOL +IMAGEAPI +SymUnloadModule64( + _In_ HANDLE hProcess, + _In_ DWORD64 BaseOfDll + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymUnloadModule SymUnloadModule64 +#else +BOOL +IMAGEAPI +SymUnloadModule( + _In_ HANDLE hProcess, + _In_ DWORD BaseOfDll + ); +#endif + +BOOL +IMAGEAPI +SymUnDName64( + _In_ PIMAGEHLP_SYMBOL64 sym, // Symbol to undecorate + _Out_writes_(UnDecNameLength) PSTR UnDecName, // Buffer to store undecorated name in + _In_ DWORD UnDecNameLength // Size of the buffer + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymUnDName SymUnDName64 +#else +BOOL +IMAGEAPI +SymUnDName( + _In_ PIMAGEHLP_SYMBOL sym, // Symbol to undecorate + _Out_writes_(UnDecNameLength) PSTR UnDecName, // Buffer to store undecorated name in + _In_ DWORD UnDecNameLength // Size of the buffer + ); +#endif + +BOOL +IMAGEAPI +SymRegisterCallback64( + _In_ HANDLE hProcess, + _In_ PSYMBOL_REGISTERED_CALLBACK64 CallbackFunction, + _In_ ULONG64 UserContext + ); + +BOOL +IMAGEAPI +SymRegisterCallbackW64( + _In_ HANDLE hProcess, + _In_ PSYMBOL_REGISTERED_CALLBACK64 CallbackFunction, + _In_ ULONG64 UserContext + ); + +BOOL +IMAGEAPI +SymRegisterFunctionEntryCallback64( + _In_ HANDLE hProcess, + _In_ PSYMBOL_FUNCENTRY_CALLBACK64 CallbackFunction, + _In_ ULONG64 UserContext + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymRegisterCallback SymRegisterCallback64 +#define SymRegisterFunctionEntryCallback SymRegisterFunctionEntryCallback64 +#else +BOOL +IMAGEAPI +SymRegisterCallback( + _In_ HANDLE hProcess, + _In_ PSYMBOL_REGISTERED_CALLBACK CallbackFunction, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymRegisterFunctionEntryCallback( + _In_ HANDLE hProcess, + _In_ PSYMBOL_FUNCENTRY_CALLBACK CallbackFunction, + _In_opt_ PVOID UserContext + ); +#endif + + +typedef struct _IMAGEHLP_SYMBOL_SRC { + DWORD sizeofstruct; + DWORD type; + char file[MAX_PATH]; +} IMAGEHLP_SYMBOL_SRC, *PIMAGEHLP_SYMBOL_SRC; + +typedef struct _MODULE_TYPE_INFO { // AKA TYPTYP + USHORT dataLength; + USHORT leaf; + BYTE data[1]; +} MODULE_TYPE_INFO, *PMODULE_TYPE_INFO; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +typedef struct _SYMBOL_INFO { + ULONG SizeOfStruct; + ULONG TypeIndex; // Type Index of symbol + ULONG64 Reserved[2]; + ULONG Index; + ULONG Size; + ULONG64 ModBase; // Base Address of module comtaining this symbol + ULONG Flags; + ULONG64 Value; // Value of symbol, ValuePresent should be 1 + ULONG64 Address; // Address of symbol including base address of module + ULONG Register; // register holding value or pointer to value + ULONG Scope; // scope of the symbol + ULONG Tag; // pdb classification + ULONG NameLen; // Actual length of name + ULONG MaxNameLen; + CHAR Name[1]; // Name of symbol +} SYMBOL_INFO, *PSYMBOL_INFO; + +typedef struct _SYMBOL_INFO_PACKAGE { + SYMBOL_INFO si; + CHAR name[MAX_SYM_NAME + 1]; +} SYMBOL_INFO_PACKAGE, *PSYMBOL_INFO_PACKAGE; + +typedef struct _SYMBOL_INFOW { + ULONG SizeOfStruct; + ULONG TypeIndex; // Type Index of symbol + ULONG64 Reserved[2]; + ULONG Index; + ULONG Size; + ULONG64 ModBase; // Base Address of module comtaining this symbol + ULONG Flags; + ULONG64 Value; // Value of symbol, ValuePresent should be 1 + ULONG64 Address; // Address of symbol including base address of module + ULONG Register; // register holding value or pointer to value + ULONG Scope; // scope of the symbol + ULONG Tag; // pdb classification + ULONG NameLen; // Actual length of name + ULONG MaxNameLen; + WCHAR Name[1]; // Name of symbol +} SYMBOL_INFOW, *PSYMBOL_INFOW; + +typedef struct _SYMBOL_INFO_PACKAGEW { + SYMBOL_INFOW si; + WCHAR name[MAX_SYM_NAME + 1]; +} SYMBOL_INFO_PACKAGEW, *PSYMBOL_INFO_PACKAGEW; + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +typedef struct _IMAGEHLP_STACK_FRAME +{ + ULONG64 InstructionOffset; + ULONG64 ReturnOffset; + ULONG64 FrameOffset; + ULONG64 StackOffset; + ULONG64 BackingStoreOffset; + ULONG64 FuncTableEntry; + ULONG64 Params[4]; + ULONG64 Reserved[5]; + BOOL Virtual; + ULONG Reserved2; +} IMAGEHLP_STACK_FRAME, *PIMAGEHLP_STACK_FRAME; + +typedef VOID IMAGEHLP_CONTEXT, *PIMAGEHLP_CONTEXT; + + +BOOL +IMAGEAPI +SymSetContext( + _In_ HANDLE hProcess, + _In_ PIMAGEHLP_STACK_FRAME StackFrame, + _In_opt_ PIMAGEHLP_CONTEXT Context + ); + +BOOL +IMAGEAPI +SymSetScopeFromAddr( + _In_ HANDLE hProcess, + _In_ ULONG64 Address + ); + +BOOL +IMAGEAPI +SymSetScopeFromInlineContext( + _In_ HANDLE hProcess, + _In_ ULONG64 Address, + _In_ ULONG InlineContext + ); + +BOOL +IMAGEAPI +SymSetScopeFromIndex( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ DWORD Index + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMPROCESSES_CALLBACK)( + _In_ HANDLE hProcess, + _In_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumProcesses( + _In_ PSYM_ENUMPROCESSES_CALLBACK EnumProcessesCallback, + _In_ PVOID UserContext + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymFromAddr( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _Out_opt_ PDWORD64 Displacement, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymFromAddrW( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _Out_opt_ PDWORD64 Displacement, + _Inout_ PSYMBOL_INFOW Symbol + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +BOOL +IMAGEAPI +SymFromInlineContext( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _In_ ULONG InlineContext, + _Out_opt_ PDWORD64 Displacement, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymFromInlineContextW( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _In_ ULONG InlineContext, + _Out_opt_ PDWORD64 Displacement, + _Inout_ PSYMBOL_INFOW Symbol + ); + +BOOL +IMAGEAPI +SymFromToken( + _In_ HANDLE hProcess, + _In_ DWORD64 Base, + _In_ DWORD Token, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymFromTokenW( + _In_ HANDLE hProcess, + _In_ DWORD64 Base, + _In_ DWORD Token, + _Inout_ PSYMBOL_INFOW Symbol + ); + +BOOL +IMAGEAPI +SymNext( + _In_ HANDLE hProcess, + _Inout_ PSYMBOL_INFO si + ); + +BOOL +IMAGEAPI +SymNextW( + _In_ HANDLE hProcess, + _Inout_ PSYMBOL_INFOW siw + ); + +BOOL +IMAGEAPI +SymPrev( + _In_ HANDLE hProcess, + _Inout_ PSYMBOL_INFO si + ); + +BOOL +IMAGEAPI +SymPrevW( + _In_ HANDLE hProcess, + _Inout_ PSYMBOL_INFOW siw + ); + +// While SymFromName will provide a symbol from a name, +// SymEnumSymbols can provide the same matching information +// for ALL symbols with a matching name, even regular +// expressions. That way you can search across modules +// and differentiate between identically named symbols. + +BOOL +IMAGEAPI +SymFromName( + _In_ HANDLE hProcess, + _In_ PCSTR Name, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymFromNameW( + _In_ HANDLE hProcess, + _In_ PCWSTR Name, + _Inout_ PSYMBOL_INFOW Symbol + ); + +#define SYMENUM_OPTIONS_DEFAULT 0x00000001 +#define SYMENUM_OPTIONS_INLINE 0x00000002 + +typedef BOOL +(CALLBACK *PSYM_ENUMERATESYMBOLS_CALLBACK)( + _In_ PSYMBOL_INFO pSymInfo, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSymbols( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCSTR Mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSymbolsEx( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCSTR Mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext, + _In_ DWORD Options + ); + +typedef BOOL +(CALLBACK *PSYM_ENUMERATESYMBOLS_CALLBACKW)( + _In_ PSYMBOL_INFOW pSymInfo, + _In_ ULONG SymbolSize, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSymbolsW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCWSTR Mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSymbolsExW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCWSTR Mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext, + _In_ DWORD Options + ); + +BOOL +IMAGEAPI +SymEnumSymbolsForAddr( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumSymbolsForAddrW( + _In_ HANDLE hProcess, + _In_ DWORD64 Address, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +#define SYMSEARCH_MASKOBJS 0x01 // used internally to implement other APIs +#define SYMSEARCH_RECURSE 0X02 // recurse scopes +#define SYMSEARCH_GLOBALSONLY 0X04 // search only for global symbols +#define SYMSEARCH_ALLITEMS 0X08 // search for everything in the pdb, not just normal scoped symbols + +BOOL +IMAGEAPI +SymSearch( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ DWORD Index, + _In_opt_ DWORD SymTag, + _In_opt_ PCSTR Mask, + _In_opt_ DWORD64 Address, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext, + _In_ DWORD Options + ); + +BOOL +IMAGEAPI +SymSearchW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ DWORD Index, + _In_opt_ DWORD SymTag, + _In_opt_ PCWSTR Mask, + _In_opt_ DWORD64 Address, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext, + _In_ DWORD Options + ); + +BOOL +IMAGEAPI +SymGetScope( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ DWORD Index, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymGetScopeW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ DWORD Index, + _Inout_ PSYMBOL_INFOW Symbol + ); + +BOOL +IMAGEAPI +SymFromIndex( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ DWORD Index, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymFromIndexW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ DWORD Index, + _Inout_ PSYMBOL_INFOW Symbol + ); + +typedef enum _IMAGEHLP_SYMBOL_TYPE_INFO { + TI_GET_SYMTAG, + TI_GET_SYMNAME, + TI_GET_LENGTH, + TI_GET_TYPE, + TI_GET_TYPEID, + TI_GET_BASETYPE, + TI_GET_ARRAYINDEXTYPEID, + TI_FINDCHILDREN, + TI_GET_DATAKIND, + TI_GET_ADDRESSOFFSET, + TI_GET_OFFSET, + TI_GET_VALUE, + TI_GET_COUNT, + TI_GET_CHILDRENCOUNT, + TI_GET_BITPOSITION, + TI_GET_VIRTUALBASECLASS, + TI_GET_VIRTUALTABLESHAPEID, + TI_GET_VIRTUALBASEPOINTEROFFSET, + TI_GET_CLASSPARENTID, + TI_GET_NESTED, + TI_GET_SYMINDEX, + TI_GET_LEXICALPARENT, + TI_GET_ADDRESS, + TI_GET_THISADJUST, + TI_GET_UDTKIND, + TI_IS_EQUIV_TO, + TI_GET_CALLING_CONVENTION, + TI_IS_CLOSE_EQUIV_TO, + TI_GTIEX_REQS_VALID, + TI_GET_VIRTUALBASEOFFSET, + TI_GET_VIRTUALBASEDISPINDEX, + TI_GET_IS_REFERENCE, + TI_GET_INDIRECTVIRTUALBASECLASS, + TI_GET_VIRTUALBASETABLETYPE, + TI_GET_OBJECTPOINTERTYPE, + TI_GET_DISCRIMINATEDUNION_TAG_TYPEID, + TI_GET_DISCRIMINATEDUNION_TAG_OFFSET, + TI_GET_DISCRIMINATEDUNION_TAG_RANGESCOUNT, + TI_GET_DISCRIMINATEDUNION_TAG_RANGES, + IMAGEHLP_SYMBOL_TYPE_INFO_MAX, +} IMAGEHLP_SYMBOL_TYPE_INFO; + +typedef struct _TI_FINDCHILDREN_PARAMS { + ULONG Count; + ULONG Start; + ULONG ChildId[1]; +} TI_FINDCHILDREN_PARAMS; + +typedef struct _DISCRIMINATEDUNION_TAG_VALUE { + BYTE value[16]; + BYTE valueSizeBytes; +} DISCRIMINATEDUNION_TAG_VALUE; + +typedef struct _TI_GET_DISCRIMINATEDUNION_TAG_RANGES_PARAMS { + ULONG Count; + ULONG Start; + DISCRIMINATEDUNION_TAG_VALUE Range[1]; +} TI_GET_DISCRIMINATEDUNION_TAG_RANGES_PARAMS; + +BOOL +IMAGEAPI +SymGetTypeInfo( + _In_ HANDLE hProcess, + _In_ DWORD64 ModBase, + _In_ ULONG TypeId, + _In_ IMAGEHLP_SYMBOL_TYPE_INFO GetType, + _Out_ PVOID pInfo + ); + +#define IMAGEHLP_GET_TYPE_INFO_UNCACHED 0x00000001 +#define IMAGEHLP_GET_TYPE_INFO_CHILDREN 0x00000002 + +typedef struct _IMAGEHLP_GET_TYPE_INFO_PARAMS { + IN ULONG SizeOfStruct; + IN ULONG Flags; + IN ULONG NumIds; + IN PULONG TypeIds; + IN ULONG64 TagFilter; + IN ULONG NumReqs; + IN IMAGEHLP_SYMBOL_TYPE_INFO* ReqKinds; + IN PULONG_PTR ReqOffsets; + IN PULONG ReqSizes; + IN ULONG_PTR ReqStride; + IN ULONG_PTR BufferSize; + OUT PVOID Buffer; + OUT ULONG EntriesMatched; + OUT ULONG EntriesFilled; + OUT ULONG64 TagsFound; + OUT ULONG64 AllReqsValid; + IN ULONG NumReqsValid; + OUT PULONG64 ReqsValid OPTIONAL; +} IMAGEHLP_GET_TYPE_INFO_PARAMS, *PIMAGEHLP_GET_TYPE_INFO_PARAMS; + +BOOL +IMAGEAPI +SymGetTypeInfoEx( + _In_ HANDLE hProcess, + _In_ DWORD64 ModBase, + _Inout_ PIMAGEHLP_GET_TYPE_INFO_PARAMS Params + ); + +BOOL +IMAGEAPI +SymEnumTypes( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumTypesW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumTypesByName( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCSTR mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymEnumTypesByNameW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCWSTR mask, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +BOOL +IMAGEAPI +SymGetTypeFromName( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PCSTR Name, + _Inout_ PSYMBOL_INFO Symbol + ); + +BOOL +IMAGEAPI +SymGetTypeFromNameW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PCWSTR Name, + _Inout_ PSYMBOL_INFOW Symbol + ); + +BOOL +IMAGEAPI +SymAddSymbol( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PCSTR Name, + _In_ DWORD64 Address, + _In_ DWORD Size, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymAddSymbolW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PCWSTR Name, + _In_ DWORD64 Address, + _In_ DWORD Size, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymDeleteSymbol( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCSTR Name, + _In_ DWORD64 Address, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymDeleteSymbolW( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_opt_ PCWSTR Name, + _In_ DWORD64 Address, + _In_ DWORD Flags + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymRefreshModuleList( + _In_ HANDLE hProcess + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +BOOL +IMAGEAPI +SymAddSourceStream( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCSTR StreamFile, + _In_reads_bytes_opt_(Size) PBYTE Buffer, + _In_ size_t Size + ); + +typedef BOOL (WINAPI *SYMADDSOURCESTREAM)(HANDLE, ULONG64, PCSTR, PBYTE, size_t); + +BOOL +IMAGEAPI +SymAddSourceStreamA( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCSTR StreamFile, + _In_reads_bytes_opt_(Size) PBYTE Buffer, + _In_ size_t Size + ); + +typedef BOOL (WINAPI *SYMADDSOURCESTREAMA)(HANDLE, ULONG64, PCSTR, PBYTE, size_t); + +BOOL +IMAGEAPI +SymAddSourceStreamW( + _In_ HANDLE hProcess, + _In_ ULONG64 Base, + _In_opt_ PCWSTR FileSpec, + _In_reads_bytes_opt_(Size) PBYTE Buffer, + _In_ size_t Size + ); + +BOOL +IMAGEAPI +SymSrvIsStoreW( + _In_opt_ HANDLE hProcess, + _In_ PCWSTR path + ); + +BOOL +IMAGEAPI +SymSrvIsStore( + _In_opt_ HANDLE hProcess, + _In_ PCSTR path + ); + +PCSTR +IMAGEAPI +SymSrvDeltaName( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SymPath, + _In_ PCSTR Type, + _In_ PCSTR File1, + _In_ PCSTR File2 + ); + +PCWSTR +IMAGEAPI +SymSrvDeltaNameW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SymPath, + _In_ PCWSTR Type, + _In_ PCWSTR File1, + _In_ PCWSTR File2 + ); + +PCSTR +IMAGEAPI +SymSrvGetSupplement( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SymPath, + _In_ PCSTR Node, + _In_ PCSTR File + ); + +PCWSTR +IMAGEAPI +SymSrvGetSupplementW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SymPath, + _In_ PCWSTR Node, + _In_ PCWSTR File + ); + +BOOL +IMAGEAPI +SymSrvGetFileIndexes( + _In_ PCSTR File, + _Out_ GUID *Id, + _Out_ PDWORD Val1, + _Out_opt_ PDWORD Val2, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymSrvGetFileIndexesW( + _In_ PCWSTR File, + _Out_ GUID *Id, + _Out_ PDWORD Val1, + _Out_opt_ PDWORD Val2, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymSrvGetFileIndexStringW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SrvPath, + _In_ PCWSTR File, + _Out_writes_(Size) PWSTR Index, + _In_ size_t Size, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymSrvGetFileIndexString( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SrvPath, + _In_ PCSTR File, + _Out_writes_(Size) PSTR Index, + _In_ size_t Size, + _In_ DWORD Flags + ); + +typedef struct { + DWORD sizeofstruct; + char file[MAX_PATH +1]; + BOOL stripped; + DWORD timestamp; + DWORD size; + char dbgfile[MAX_PATH +1]; + char pdbfile[MAX_PATH + 1]; + GUID guid; + DWORD sig; + DWORD age; +} SYMSRV_INDEX_INFO, *PSYMSRV_INDEX_INFO; + +typedef struct { + DWORD sizeofstruct; + WCHAR file[MAX_PATH +1]; + BOOL stripped; + DWORD timestamp; + DWORD size; + WCHAR dbgfile[MAX_PATH +1]; + WCHAR pdbfile[MAX_PATH + 1]; + GUID guid; + DWORD sig; + DWORD age; +} SYMSRV_INDEX_INFOW, *PSYMSRV_INDEX_INFOW; + +BOOL +IMAGEAPI +SymSrvGetFileIndexInfo( + _In_ PCSTR File, + _Out_ PSYMSRV_INDEX_INFO Info, + _In_ DWORD Flags + ); + +BOOL +IMAGEAPI +SymSrvGetFileIndexInfoW( + _In_ PCWSTR File, + _Out_ PSYMSRV_INDEX_INFOW Info, + _In_ DWORD Flags + ); + +PCSTR +IMAGEAPI +SymSrvStoreSupplement( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SrvPath, + _In_ PCSTR Node, + _In_ PCSTR File, + _In_ DWORD Flags + ); + +PCWSTR +IMAGEAPI +SymSrvStoreSupplementW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SymPath, + _In_ PCWSTR Node, + _In_ PCWSTR File, + _In_ DWORD Flags + ); + +PCSTR +IMAGEAPI +SymSrvStoreFile( + _In_ HANDLE hProcess, + _In_opt_ PCSTR SrvPath, + _In_ PCSTR File, + _In_ DWORD Flags + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +PCWSTR +IMAGEAPI +SymSrvStoreFileW( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR SrvPath, + _In_ PCWSTR File, + _In_ DWORD Flags + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +// used by SymGetSymbolFile's "Type" parameter + +typedef enum { + sfImage = 0, + sfDbg, + sfPdb, + sfMpd, + sfMax +} IMAGEHLP_SF_TYPE; + +BOOL +IMAGEAPI +SymGetSymbolFile( + _In_opt_ HANDLE hProcess, + _In_opt_ PCSTR SymPath, + _In_ PCSTR ImageFile, + _In_ DWORD Type, + _Out_writes_(cSymbolFile) PSTR SymbolFile, + _In_ size_t cSymbolFile, + _Out_writes_(cDbgFile) PSTR DbgFile, + _In_ size_t cDbgFile + ); + +BOOL +IMAGEAPI +SymGetSymbolFileW( + _In_opt_ HANDLE hProcess, + _In_opt_ PCWSTR SymPath, + _In_ PCWSTR ImageFile, + _In_ DWORD Type, + _Out_writes_(cSymbolFile) PWSTR SymbolFile, + _In_ size_t cSymbolFile, + _Out_writes_(cDbgFile) PWSTR DbgFile, + _In_ size_t cDbgFile + ); + +// +// Full user-mode dump creation. +// + +typedef BOOL (WINAPI *PDBGHELP_CREATE_USER_DUMP_CALLBACK)( + _In_ DWORD DataType, + _In_ PVOID* Data, + _Out_ LPDWORD DataLength, + _In_opt_ PVOID UserData + ); + +BOOL +WINAPI +DbgHelpCreateUserDump( + _In_opt_ LPCSTR FileName, + _In_ PDBGHELP_CREATE_USER_DUMP_CALLBACK Callback, + _In_opt_ PVOID UserData + ); + +BOOL +WINAPI +DbgHelpCreateUserDumpW( + _In_opt_ LPCWSTR FileName, + _In_ PDBGHELP_CREATE_USER_DUMP_CALLBACK Callback, + _In_opt_ PVOID UserData + ); + +// ----------------------------------------------------------------- +// The following 4 legacy APIs are fully supported, but newer +// ones are recommended. SymFromName and SymFromAddr provide +// much more detailed info on the returned symbol. + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family or Games Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +BOOL +IMAGEAPI +SymGetSymFromAddr64( + _In_ HANDLE hProcess, + _In_ DWORD64 qwAddr, + _Out_opt_ PDWORD64 pdwDisplacement, + _Inout_ PIMAGEHLP_SYMBOL64 Symbol + ); + + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetSymFromAddr SymGetSymFromAddr64 +#else +BOOL +IMAGEAPI +SymGetSymFromAddr( + _In_ HANDLE hProcess, + _In_ DWORD dwAddr, + _Out_opt_ PDWORD pdwDisplacement, + _Inout_ PIMAGEHLP_SYMBOL Symbol + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +// While following two APIs will provide a symbol from a name, +// SymEnumSymbols can provide the same matching information +// for ALL symbols with a matching name, even regular +// expressions. That way you can search across modules +// and differentiate between identically named symbols. + +BOOL +IMAGEAPI +SymGetSymFromName64( + _In_ HANDLE hProcess, + _In_ PCSTR Name, + _Inout_ PIMAGEHLP_SYMBOL64 Symbol + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetSymFromName SymGetSymFromName64 +#else +BOOL +IMAGEAPI +SymGetSymFromName( + _In_ HANDLE hProcess, + _In_ PCSTR Name, + _Inout_ PIMAGEHLP_SYMBOL Symbol + ); +#endif + + +// Symbol server exports + +// This is the version of the SYMSRV_EXTENDED_OUTPUT_DATA structure. +#define EXT_OUTPUT_VER 1 + +// This structure indicates the Extended Symsrv.dll output data structure +typedef struct +{ + DWORD sizeOfStruct; // size of the structure + DWORD version; // version number (EXT_OUTPUT_VER) + WCHAR filePtrMsg[MAX_PATH + 1]; // File ptr message data buffer +} SYMSRV_EXTENDED_OUTPUT_DATA, *PSYMSRV_EXTENDED_OUTPUT_DATA; + +typedef BOOL (WINAPI *PSYMBOLSERVERPROC)(PCSTR, PCSTR, PVOID, DWORD, DWORD, PSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERPROCA)(PCSTR, PCSTR, PVOID, DWORD, DWORD, PSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERPROCW)(PCWSTR, PCWSTR, PVOID, DWORD, DWORD, PWSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERBYINDEXPROC)(PCSTR, PCSTR, PCSTR, PSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERBYINDEXPROCA)(PCSTR, PCSTR, PCSTR, PSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERBYINDEXPROCW)(PCWSTR, PCWSTR, PCWSTR, PWSTR); +typedef BOOL (WINAPI *PSYMBOLSERVEROPENPROC)(VOID); +typedef BOOL (WINAPI *PSYMBOLSERVERCLOSEPROC)(VOID); +typedef BOOL (WINAPI *PSYMBOLSERVERSETOPTIONSPROC)(UINT_PTR, ULONG64); +typedef BOOL (WINAPI *PSYMBOLSERVERSETOPTIONSWPROC)(UINT_PTR, ULONG64); +typedef BOOL (CALLBACK WINAPI *PSYMBOLSERVERCALLBACKPROC)(UINT_PTR action, ULONG64 data, ULONG64 context); +typedef UINT_PTR (WINAPI *PSYMBOLSERVERGETOPTIONSPROC)(); +typedef BOOL (WINAPI *PSYMBOLSERVERPINGPROC)(PCSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERPINGPROCA)(PCSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERPINGPROCW)(PCWSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERGETVERSION)(LPAPI_VERSION); +typedef BOOL (WINAPI *PSYMBOLSERVERDELTANAME)(PCSTR, PVOID, DWORD, DWORD, PVOID, DWORD, DWORD, PSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERDELTANAMEW)(PCWSTR, PVOID, DWORD, DWORD, PVOID, DWORD, DWORD, PWSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERGETSUPPLEMENT)(PCSTR, PCSTR, PCSTR, PSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERGETSUPPLEMENTW)(PCWSTR, PCWSTR, PCWSTR, PWSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERSTORESUPPLEMENT)(PCSTR, PCSTR, PCSTR, PSTR, size_t, DWORD); +typedef BOOL (WINAPI *PSYMBOLSERVERSTORESUPPLEMENTW)(PCWSTR, PCWSTR, PCWSTR, PWSTR, size_t, DWORD); +typedef BOOL (WINAPI *PSYMBOLSERVERGETINDEXSTRING)(PVOID, DWORD, DWORD, PSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERGETINDEXSTRINGW)(PVOID, DWORD, DWORD, PWSTR, size_t); +typedef BOOL (WINAPI *PSYMBOLSERVERSTOREFILE)(PCSTR, PCSTR, PVOID, DWORD, DWORD, PSTR, size_t, DWORD); +typedef BOOL (WINAPI *PSYMBOLSERVERSTOREFILEW)(PCWSTR, PCWSTR, PVOID, DWORD, DWORD, PWSTR, size_t, DWORD); +typedef BOOL (WINAPI *PSYMBOLSERVERISSTORE)(PCSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERISSTOREW)(PCWSTR); +typedef DWORD (WINAPI *PSYMBOLSERVERVERSION)(); +typedef BOOL (CALLBACK WINAPI *PSYMBOLSERVERMESSAGEPROC)(UINT_PTR action, ULONG64 data, ULONG64 context); +typedef BOOL (WINAPI *PSYMBOLSERVERWEXPROC)(PCWSTR, PCWSTR, PVOID, DWORD, DWORD, PWSTR, PSYMSRV_EXTENDED_OUTPUT_DATA); +typedef BOOL (WINAPI *PSYMBOLSERVERPINGPROCWEX)(PCWSTR); +typedef BOOL (WINAPI *PSYMBOLSERVERGETOPTIONDATAPROC)(UINT_PTR, PULONG64); +typedef BOOL (WINAPI *PSYMBOLSERVERSETHTTPAUTHHEADER)(_In_ PCWSTR pszAuthHeader); + +#define SYMSRV_VERSION 2 + +#define SSRVOPT_CALLBACK 0x00000001 +#define SSRVOPT_DWORD 0x00000002 +#define SSRVOPT_DWORDPTR 0x00000004 +#define SSRVOPT_GUIDPTR 0x00000008 +#define SSRVOPT_OLDGUIDPTR 0x00000010 +#define SSRVOPT_UNATTENDED 0x00000020 +#define SSRVOPT_NOCOPY 0x00000040 +#define SSRVOPT_GETPATH 0x00000040 +#define SSRVOPT_PARENTWIN 0x00000080 +#define SSRVOPT_PARAMTYPE 0x00000100 +#define SSRVOPT_SECURE 0x00000200 +#define SSRVOPT_TRACE 0x00000400 +#define SSRVOPT_SETCONTEXT 0x00000800 +#define SSRVOPT_PROXY 0x00001000 +#define SSRVOPT_DOWNSTREAM_STORE 0x00002000 +#define SSRVOPT_OVERWRITE 0x00004000 +#define SSRVOPT_RESETTOU 0x00008000 +#define SSRVOPT_CALLBACKW 0x00010000 +#define SSRVOPT_FLAT_DEFAULT_STORE 0x00020000 +#define SSRVOPT_PROXYW 0x00040000 +#define SSRVOPT_MESSAGE 0x00080000 +#define SSRVOPT_SERVICE 0x00100000 // deprecated +#define SSRVOPT_FAVOR_COMPRESSED 0x00200000 +#define SSRVOPT_STRING 0x00400000 +#define SSRVOPT_WINHTTP 0x00800000 +#define SSRVOPT_WININET 0x01000000 +#define SSRVOPT_DONT_UNCOMPRESS 0x02000000 +#define SSRVOPT_DISABLE_PING_HOST 0x04000000 +#define SSRVOPT_DISABLE_TIMEOUT 0x08000000 +#define SSRVOPT_ENABLE_COMM_MSG 0x10000000 +#define SSRVOPT_URI_FILTER 0x20000000 +#define SSRVOPT_URI_TIERS 0x40000000 +#define SSRVOPT_RETRY_APP_HANG 0x80000000 + +#define SSRVOPT_MAX 0x80000000 + +#define SSRVOPT_RESET ((ULONG_PTR)-1) + +#define NUM_SSRVOPTS 32 + +#define SSRVURI_HTTP_NORMAL 0x01 +#define SSRVURI_HTTP_COMPRESSED 0x02 +#define SSRVURI_HTTP_FILEPTR 0x04 + +#define SSRVURI_UNC_NORMAL 0x10 +#define SSRVURI_UNC_COMPRESSED 0x20 +#define SSRVURI_UNC_FILEPTR 0x40 + +#define SSRVURI_HTTP_MASK 0x0F +#define SSRVURI_UNC_MASK 0xF0 +#define SSRVURI_ALL 0xFF + +// Legacy Names +#define SSRVURI_NORMAL SSRVURI_HTTP_NORMAL +#define SSRVURI_COMPRESSED SSRVURI_HTTP_COMPRESSED +#define SSRVURI_FILEPTR SSRVURI_HTTP_FILEPTR + +#define SSRVACTION_TRACE 1 +#define SSRVACTION_QUERYCANCEL 2 +#define SSRVACTION_EVENT 3 +#define SSRVACTION_EVENTW 4 +#define SSRVACTION_SIZE 5 +#define SSRVACTION_HTTPSTATUS 6 +#define SSRVACTION_XMLOUTPUT 7 +#define SSRVACTION_CHECKSUMSTATUS 8 + +#endif // WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + + #define SYMSTOREOPT_COMPRESS 0x01 + #define SYMSTOREOPT_OVERWRITE 0x02 + #define SYMSTOREOPT_RETURNINDEX 0x04 + #define SYMSTOREOPT_POINTER 0x08 + #define SYMSTOREOPT_ALT_INDEX 0x10 + #define SYMSTOREOPT_UNICODE 0x20 + #define SYMSTOREOPT_PASS_IF_EXISTS 0x40 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + +#ifdef DBGHELP_TRANSLATE_TCHAR + #define SymInitialize SymInitializeW + #define SymAddSymbol SymAddSymbolW + #define SymDeleteSymbol SymDeleteSymbolW + #define SearchTreeForFile SearchTreeForFileW + #define UnDecorateSymbolName UnDecorateSymbolNameW + #define SymGetLineFromName64 SymGetLineFromNameW64 + #define SymGetLineFromAddr64 SymGetLineFromAddrW64 + #define SymGetLineFromInlineContext SymGetLineFromInlineContextW + #define SymGetLineNext64 SymGetLineNextW64 + #define SymGetLinePrev64 SymGetLinePrevW64 + #define SymFromName SymFromNameW + #define SymFindExecutableImage SymFindExecutableImageW + #define FindExecutableImageEx FindExecutableImageExW + #define SymSearch SymSearchW + #define SymEnumLines SymEnumLinesW + #define SymEnumSourceLines SymEnumSourceLinesW + #define SymGetTypeFromName SymGetTypeFromNameW + #define SymEnumSymbolsForAddr SymEnumSymbolsForAddrW + #define SymFromAddr SymFromAddrW + #define SymFromInlineContext SymFromInlineContextW + #define SymMatchString SymMatchStringW + #define SymEnumSourceFiles SymEnumSourceFilesW + #define SymEnumSymbols SymEnumSymbolsW + #define SymEnumSymbolsEx SymEnumSymbolsExW + #define SymLoadModuleEx SymLoadModuleExW + #define SymSetSearchPath SymSetSearchPathW + #define SymGetSearchPath SymGetSearchPathW + #define EnumDirTree EnumDirTreeW + #define SymFromToken SymFromTokenW + #define SymFromIndex SymFromIndexW + #define SymGetScope SymGetScopeW + #define SymNext SymNextW + #define SymPrev SymPrevW + #define SymEnumTypes SymEnumTypesW + #define SymEnumTypesByName SymEnumTypesByNameW + #define SymRegisterCallback64 SymRegisterCallbackW64 + #define SymFindDebugInfoFile SymFindDebugInfoFileW + #define FindDebugInfoFileEx FindDebugInfoFileExW + #define SymFindFileInPath SymFindFileInPathW + #define SymEnumerateModules64 SymEnumerateModulesW64 + #define SymSetHomeDirectory SymSetHomeDirectoryW + #define SymGetHomeDirectory SymGetHomeDirectoryW + #define SymGetSourceFile SymGetSourceFileW + #define SymGetSourceFileToken SymGetSourceFileTokenW + #define SymGetSourceFileFromToken SymGetSourceFileFromTokenW + #define SymGetSourceVarFromToken SymGetSourceVarFromTokenW + #define SymGetSourceFileTokenByTokenName SymGetSourceFileTokenByTokenNameW + #define SymGetFileLineOffsets64 SymGetFileLineOffsetsW64 + #define SymFindFileInPath SymFindFileInPathW + #define SymMatchFileName SymMatchFileNameW + #define SymGetSourceFileFromTokenByTokenName SymGetSourceFileFromTokenByTokenNameW + #define SymGetModuleInfo64 SymGetModuleInfoW64 + #define SymAddSourceStream SymAddSourceStreamW + #define SymSrvIsStore SymSrvIsStoreW + #define SymSrvDeltaName SymSrvDeltaNameW + #define SymSrvGetSupplement SymSrvGetSupplementW + #define SymSrvStoreSupplement SymSrvStoreSupplementW + #define SymSrvGetFileIndexes SymSrvGetFileIndexes + #define SymSrvGetFileIndexString SymSrvGetFileIndexStringW + #define SymSrvStoreFile SymSrvStoreFileW + #define SymGetSymbolFile SymGetSymbolFileW + #define EnumerateLoadedModules64 EnumerateLoadedModulesW64 + #define EnumerateLoadedModulesEx EnumerateLoadedModulesExW + #define SymSrvGetFileIndexInfo SymSrvGetFileIndexInfoW + + #define IMAGEHLP_LINE64 IMAGEHLP_LINEW64 + #define PIMAGEHLP_LINE64 PIMAGEHLP_LINEW64 + #define SYMBOL_INFO SYMBOL_INFOW + #define PSYMBOL_INFO PSYMBOL_INFOW + #define SYMBOL_INFO_PACKAGE SYMBOL_INFO_PACKAGEW + #define PSYMBOL_INFO_PACKAGE PSYMBOL_INFO_PACKAGEW + #define FIND_EXE_FILE_CALLBACK FIND_EXE_FILE_CALLBACKW + #define PFIND_EXE_FILE_CALLBACK PFIND_EXE_FILE_CALLBACKW + #define SYM_ENUMERATESYMBOLS_CALLBACK SYM_ENUMERATESYMBOLS_CALLBACKW + #define PSYM_ENUMERATESYMBOLS_CALLBACK PSYM_ENUMERATESYMBOLS_CALLBACKW + #define SRCCODEINFO SRCCODEINFOW + #define PSRCCODEINFO PSRCCODEINFOW + #define SOURCEFILE SOURCEFILEW + #define PSOURCEFILE PSOURCEFILEW + #define SYM_ENUMSOURECFILES_CALLBACK SYM_ENUMSOURCEFILES_CALLBACKW + #define PSYM_ENUMSOURCEFILES_CALLBACK PSYM_ENUMSOURECFILES_CALLBACKW + #define IMAGEHLP_CBA_EVENT IMAGEHLP_CBA_EVENTW + #define PIMAGEHLP_CBA_EVENT PIMAGEHLP_CBA_EVENTW + #define PENUMDIRTREE_CALLBACK PENUMDIRTREE_CALLBACKW + #define IMAGEHLP_DEFERRED_SYMBOL_LOAD64 IMAGEHLP_DEFERRED_SYMBOL_LOADW64 + #define PIMAGEHLP_DEFERRED_SYMBOL_LOAD64 PIMAGEHLP_DEFERRED_SYMBOL_LOADW64 + #define PFIND_DEBUG_FILE_CALLBACK PFIND_DEBUG_FILE_CALLBACKW + #define PFINDFILEINPATHCALLBACK PFINDFILEINPATHCALLBACKW + #define IMAGEHLP_MODULE64 IMAGEHLP_MODULEW64 + #define PIMAGEHLP_MODULE64 PIMAGEHLP_MODULEW64 + #define SYMSRV_INDEX_INFO SYMSRV_INDEX_INFOW + #define PSYMSRV_INDEX_INFO PSYMSRV_INDEX_INFOW + + #define PSYMBOLSERVERPROC PSYMBOLSERVERPROCW + #define PSYMBOLSERVERPINGPROC PSYMBOLSERVERPINGPROCW + +#pragma endregion +#endif // WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) + + +// ----------------------------------------------------------------- +// The following APIs exist only for backwards compatibility +// with a pre-release version documented in an MSDN release. + +// You should use SymFindFileInPath if you want to maintain +// future compatibility. + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +FindFileInPath( + _In_ HANDLE hprocess, + _In_ PCSTR SearchPath, + _In_ PCSTR FileName, + _In_ PVOID id, + _In_ DWORD two, + _In_ DWORD three, + _In_ DWORD flags, + _Out_writes_(MAX_PATH + 1) PSTR FilePath + ); + +// You should use SymFindFileInPath if you want to maintain +// future compatibility. + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +FindFileInSearchPath( + _In_ HANDLE hprocess, + _In_ PCSTR SearchPath, + _In_ PCSTR FileName, + _In_ DWORD one, + _In_ DWORD two, + _In_ DWORD three, + _Out_writes_(MAX_PATH + 1) PSTR FilePath + ); + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +SymEnumSym( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +SymEnumerateSymbols64( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PSYM_ENUMSYMBOLS_CALLBACK64 EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +SymEnumerateSymbolsW64( + _In_ HANDLE hProcess, + _In_ ULONG64 BaseOfDll, + _In_ PSYM_ENUMSYMBOLS_CALLBACK64W EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymEnumerateSymbols SymEnumerateSymbols64 +#define SymEnumerateSymbolsW SymEnumerateSymbolsW64 +#else +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +SymEnumerateSymbols( + _In_ HANDLE hProcess, + _In_ ULONG BaseOfDll, + _In_ PSYM_ENUMSYMBOLS_CALLBACK EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); + +DBHLP_DEPRECIATED +BOOL +IMAGEAPI +SymEnumerateSymbolsW( + _In_ HANDLE hProcess, + _In_ ULONG BaseOfDll, + _In_ PSYM_ENUMSYMBOLS_CALLBACKW EnumSymbolsCallback, + _In_opt_ PVOID UserContext + ); +#endif + +// use SymLoadModuleEx + +DWORD64 +IMAGEAPI +SymLoadModule64( + _In_ HANDLE hProcess, + _In_opt_ HANDLE hFile, + _In_opt_ PCSTR ImageName, + _In_opt_ PCSTR ModuleName, + _In_ DWORD64 BaseOfDll, + _In_ DWORD SizeOfDll + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymLoadModule SymLoadModule64 +#else +DWORD +IMAGEAPI +SymLoadModule( + _In_ HANDLE hProcess, + _In_opt_ HANDLE hFile, + _In_opt_ PCSTR ImageName, + _In_opt_ PCSTR ModuleName, + _In_ DWORD BaseOfDll, + _In_ DWORD SizeOfDll + ); +#endif + +BOOL +IMAGEAPI +SymGetSymNext64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOL64 Symbol + ); + +BOOL +IMAGEAPI +SymGetSymNextW64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOLW64 Symbol + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetSymNext SymGetSymNext64 +#define SymGetSymNextW SymGetSymNextW64 +#else +BOOL +IMAGEAPI +SymGetSymNext( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOL Symbol + ); + +BOOL +IMAGEAPI +SymGetSymNextW( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOLW Symbol + ); +#endif + +BOOL +IMAGEAPI +SymGetSymPrev64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOL64 Symbol + ); + +BOOL +IMAGEAPI +SymGetSymPrevW64( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOLW64 Symbol + ); + +#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64) +#define SymGetSymPrev SymGetSymPrev64 +#define SymGetSymPrevW SymGetSymPrevW64 +#else +BOOL +IMAGEAPI +SymGetSymPrev( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOL Symbol + ); + +BOOL +IMAGEAPI +SymGetSymPrevW( + _In_ HANDLE hProcess, + _Inout_ PIMAGEHLP_SYMBOLW Symbol + ); +#endif + + +// This type indicates the call back function type +typedef ULONG (__stdcall *LPCALL_BACK_USER_INTERRUPT_ROUTINE )(VOID); + +// Extra data to report for the symbol load summary +typedef struct +{ + PCWSTR pBinPathNonExist; + PCWSTR pSymbolPathNonExist; +}DBGHELP_DATA_REPORT_STRUCT, *PDBGHELP_DATA_REPORT_STRUCT; + +void +IMAGEAPI +SetCheckUserInterruptShared( + _In_ LPCALL_BACK_USER_INTERRUPT_ROUTINE lpStartAddress + ); + +LPCALL_BACK_USER_INTERRUPT_ROUTINE +IMAGEAPI +GetCheckUserInterruptShared( + void + ); + +DWORD +IMAGEAPI +GetSymLoadError( + void + ); + +void +IMAGEAPI +SetSymLoadError( + _In_ DWORD error + ); + +BOOL +IMAGEAPI +ReportSymbolLoadSummary( + _In_ HANDLE hProcess, + _In_opt_ PCWSTR pLoadModule, + _In_ PDBGHELP_DATA_REPORT_STRUCT pSymbolData + ); + +void +IMAGEAPI +RemoveInvalidModuleList( + _In_ HANDLE hProcess + ); + +// These values should not be used. +// They have been replaced by SYMFLAG_ values. + +#define SYMF_OMAP_GENERATED 0x00000001 +#define SYMF_OMAP_MODIFIED 0x00000002 +#define SYMF_REGISTER 0x00000008 +#define SYMF_REGREL 0x00000010 +#define SYMF_FRAMEREL 0x00000020 +#define SYMF_PARAMETER 0x00000040 +#define SYMF_LOCAL 0x00000080 +#define SYMF_CONSTANT 0x00000100 +#define SYMF_EXPORT 0x00000200 +#define SYMF_FORWARDER 0x00000400 +#define SYMF_FUNCTION 0x00000800 +#define SYMF_VIRTUAL 0x00001000 +#define SYMF_THUNK 0x00002000 +#define SYMF_TLSREL 0x00004000 + +// These values should also not be used. +// They have been replaced by SYMFLAG_ values. + +#define IMAGEHLP_SYMBOL_INFO_VALUEPRESENT 1 +#define IMAGEHLP_SYMBOL_INFO_REGISTER SYMF_REGISTER // 0x0008 +#define IMAGEHLP_SYMBOL_INFO_REGRELATIVE SYMF_REGREL // 0x0010 +#define IMAGEHLP_SYMBOL_INFO_FRAMERELATIVE SYMF_FRAMEREL // 0x0020 +#define IMAGEHLP_SYMBOL_INFO_PARAMETER SYMF_PARAMETER // 0x0040 +#define IMAGEHLP_SYMBOL_INFO_LOCAL SYMF_LOCAL // 0x0080 +#define IMAGEHLP_SYMBOL_INFO_CONSTANT SYMF_CONSTANT // 0x0100 +#define IMAGEHLP_SYMBOL_FUNCTION SYMF_FUNCTION // 0x0800 +#define IMAGEHLP_SYMBOL_VIRTUAL SYMF_VIRTUAL // 0x1000 +#define IMAGEHLP_SYMBOL_THUNK SYMF_THUNK // 0x2000 +#define IMAGEHLP_SYMBOL_INFO_TLSRELATIVE SYMF_TLSREL // 0x4000 + +// +// RangeMap APIs. +// +PVOID +IMAGEAPI +RangeMapCreate( + VOID + ); + +VOID +IMAGEAPI +RangeMapFree( + _In_opt_ PVOID RmapHandle + ); + +#define IMAGEHLP_RMAP_MAPPED_FLAT 0x00000001 +#define IMAGEHLP_RMAP_BIG_ENDIAN 0x00000002 +#define IMAGEHLP_RMAP_IGNORE_MISCOMPARE 0x00000004 + +#define IMAGEHLP_RMAP_FIXUP_ARM64X 0x10000000 +#define IMAGEHLP_RMAP_LOAD_RW_DATA_SECTIONS 0x20000000 +#define IMAGEHLP_RMAP_OMIT_SHARED_RW_DATA_SECTIONS 0x40000000 +#define IMAGEHLP_RMAP_FIXUP_IMAGEBASE 0x80000000 + +BOOL +IMAGEAPI +RangeMapAddPeImageSections( + _In_ PVOID RmapHandle, + _In_opt_ PCWSTR ImageName, + _In_reads_bytes_(MappingBytes) PVOID MappedImage, + _In_ DWORD MappingBytes, + _In_ DWORD64 ImageBase, + _In_ DWORD64 UserTag, + _In_ DWORD MappingFlags + ); + +BOOL +IMAGEAPI +RangeMapRemove( + _In_ PVOID RmapHandle, + _In_ DWORD64 UserTag + ); + +BOOL +IMAGEAPI +RangeMapRead( + _In_ PVOID RmapHandle, + _In_ DWORD64 Offset, + _Out_writes_bytes_to_(RequestBytes, *DoneBytes) PVOID Buffer, + _In_ DWORD RequestBytes, + _In_ DWORD Flags, + _Out_opt_ PDWORD DoneBytes + ); + +BOOL +IMAGEAPI +RangeMapWrite( + _In_ PVOID RmapHandle, + _In_ DWORD64 Offset, + _In_reads_bytes_(RequestBytes) PVOID Buffer, + _In_ DWORD RequestBytes, + _In_ DWORD Flags, + _Out_opt_ PDWORD DoneBytes + ); + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS | WINAPI_PARTITION_GAMES) + +#ifdef __cplusplus +} +#endif + +#include + + +#include + + +#endif /* WINAPI_FAMILY_PARTITION(NONGAMESPARTITIONS ) */ +#pragma endregion + +#endif // _IMAGEHLP_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImageTranscode.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImageTranscode.h new file mode 100644 index 0000000000000000000000000000000000000000..470e656e439bb8f3d8711afb9704f3bf2108f3a0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImageTranscode.h @@ -0,0 +1,232 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __imagetranscode_h__ +#define __imagetranscode_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ITranscodeImage_FWD_DEFINED__ +#define __ITranscodeImage_FWD_DEFINED__ +typedef interface ITranscodeImage ITranscodeImage; + +#endif /* __ITranscodeImage_FWD_DEFINED__ */ + + +#ifndef __ImageTranscode_FWD_DEFINED__ +#define __ImageTranscode_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ImageTranscode ImageTranscode; +#else +typedef struct ImageTranscode ImageTranscode; +#endif /* __cplusplus */ + +#endif /* __ImageTranscode_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "objidl.h" +#include "propidl.h" +#include "shobjidl_core.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_imagetranscode_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_imagetranscode_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imagetranscode_0000_0000_v0_0_s_ifspec; + +#ifndef __ITranscodeImage_INTERFACE_DEFINED__ +#define __ITranscodeImage_INTERFACE_DEFINED__ + +/* interface ITranscodeImage */ +/* [unique][uuid][object] */ + +typedef /* [v1_enum] */ +enum tagTI_FLAGS + { + TI_BITMAP = 1, + TI_JPEG = 2 + } TI_FLAGS; + + +EXTERN_C const IID IID_ITranscodeImage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BAE86DDD-DC11-421c-B7AB-CC55D1D65C44") + ITranscodeImage : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE TranscodeImage( + /* [in] */ __RPC__in_opt IShellItem *pShellItem, + /* [in] */ UINT uiMaxWidth, + /* [in] */ UINT uiMaxHeight, + /* [in] */ DWORD flags, + /* [in] */ __RPC__in_opt IStream *pvImage, + /* [out] */ __RPC__out UINT *puiWidth, + /* [out] */ __RPC__out UINT *puiHeight) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITranscodeImageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITranscodeImage * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITranscodeImage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITranscodeImage * This); + + DECLSPEC_XFGVIRT(ITranscodeImage, TranscodeImage) + HRESULT ( STDMETHODCALLTYPE *TranscodeImage )( + __RPC__in ITranscodeImage * This, + /* [in] */ __RPC__in_opt IShellItem *pShellItem, + /* [in] */ UINT uiMaxWidth, + /* [in] */ UINT uiMaxHeight, + /* [in] */ DWORD flags, + /* [in] */ __RPC__in_opt IStream *pvImage, + /* [out] */ __RPC__out UINT *puiWidth, + /* [out] */ __RPC__out UINT *puiHeight); + + END_INTERFACE + } ITranscodeImageVtbl; + + interface ITranscodeImage + { + CONST_VTBL struct ITranscodeImageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITranscodeImage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITranscodeImage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITranscodeImage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITranscodeImage_TranscodeImage(This,pShellItem,uiMaxWidth,uiMaxHeight,flags,pvImage,puiWidth,puiHeight) \ + ( (This)->lpVtbl -> TranscodeImage(This,pShellItem,uiMaxWidth,uiMaxHeight,flags,pvImage,puiWidth,puiHeight) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITranscodeImage_INTERFACE_DEFINED__ */ + + + +#ifndef __TranscodeLibrary_LIBRARY_DEFINED__ +#define __TranscodeLibrary_LIBRARY_DEFINED__ + +/* library TranscodeLibrary */ +/* [version][uuid] */ + + +EXTERN_C const IID LIBID_TranscodeLibrary; + +EXTERN_C const CLSID CLSID_ImageTranscode; + +#ifdef __cplusplus + +class DECLSPEC_UUID("17B75166-928F-417d-9685-64AA135565C1") +ImageTranscode; +#endif +#endif /* __TranscodeLibrary_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_imagetranscode_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_imagetranscode_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imagetranscode_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ime.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ime.h new file mode 100644 index 0000000000000000000000000000000000000000..838b76e8e6533e70005644ffc416f9a642a09d76 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ime.h @@ -0,0 +1,248 @@ +/*++ BUILD Version: 0004 // Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + ime.h + +Abstract: + + Procedure declarations, constant definitions and macros for the IME + component. + +--*/ + +#ifndef _IME_ +#define _IME_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + + +#ifndef _WINDEF_ +typedef unsigned int UINT; +#endif // _WINDEF_ + +#define IME_MAXPROCESS 32 + +LRESULT WINAPI SendIMEMessageExA( IN HWND, IN LPARAM); +LRESULT WINAPI SendIMEMessageExW( IN HWND, IN LPARAM); +#ifdef UNICODE +#define SendIMEMessageEx SendIMEMessageExW +#else +#define SendIMEMessageEx SendIMEMessageExA +#endif // !UNICODE + +// +// IMESTRUCT structure for SendIMEMessageEx +// +typedef struct tagIMESTRUCT { + UINT fnc; // function code + WPARAM wParam; // word parameter + UINT wCount; // word counter + UINT dchSource; // offset to Source from top of memory object + UINT dchDest; // offset to Desrination from top of memory object + LPARAM lParam1; + LPARAM lParam2; + LPARAM lParam3; +} IMESTRUCT,*PIMESTRUCT,NEAR *NPIMESTRUCT,FAR *LPIMESTRUCT; + + + +#define CP_HWND 0 +#define CP_OPEN 1 +#define CP_DIRECT 2 +#define CP_LEVEL 3 + + +// +// Virtual Keys +// + +#if !defined(VK_DBE_ALPHANUMERIC) +#define VK_DBE_ALPHANUMERIC 0x0f0 +#define VK_DBE_KATAKANA 0x0f1 +#define VK_DBE_HIRAGANA 0x0f2 +#define VK_DBE_SBCSCHAR 0x0f3 +#define VK_DBE_DBCSCHAR 0x0f4 +#define VK_DBE_ROMAN 0x0f5 +#define VK_DBE_NOROMAN 0x0f6 +#define VK_DBE_ENTERWORDREGISTERMODE 0x0f7 +#define VK_DBE_ENTERIMECONFIGMODE 0x0f8 +#define VK_DBE_FLUSHSTRING 0x0f9 +#define VK_DBE_CODEINPUT 0x0fa +#define VK_DBE_NOCODEINPUT 0x0fb +#define VK_DBE_DETERMINESTRING 0x0fc +#define VK_DBE_ENTERDLGCONVERSIONMODE 0x0fd +#endif + + +// +// switch for wParam of IME_SETCONVERSIONWINDOW +// +#define MCW_DEFAULT 0x00 +#define MCW_RECT 0x01 +#define MCW_WINDOW 0x02 +#define MCW_SCREEN 0x04 +#define MCW_VERTICAL 0x08 +#define MCW_HIDDEN 0x10 + +// +// switch for wParam of IME_SETCONVERSIONMODE +// and IME_GETCONVERSIONMODE +// +#define IME_MODE_ALPHANUMERIC 0x0001 + +#ifdef KOREA // BeomOh - 9/29/92 +#define IME_MODE_SBCSCHAR 0x0002 +#else +#define IME_MODE_SBCSCHAR 0x0008 +#endif + +#define IME_MODE_KATAKANA 0x0002 +#define IME_MODE_HIRAGANA 0x0004 +#define IME_MODE_HANJACONVERT 0x0004 +#define IME_MODE_DBCSCHAR 0x0010 +#define IME_MODE_ROMAN 0x0020 +#define IME_MODE_NOROMAN 0x0040 +#define IME_MODE_CODEINPUT 0x0080 +#define IME_MODE_NOCODEINPUT 0x0100 +// +// + +// +// IME APIs +// +#define IME_GETIMECAPS 0x03 +#define IME_SETOPEN 0x04 +#define IME_GETOPEN 0x05 +#define IME_GETVERSION 0x07 +#define IME_SETCONVERSIONWINDOW 0x08 +#define IME_MOVEIMEWINDOW IME_SETCONVERSIONWINDOW // KOREA only +#define IME_SETCONVERSIONMODE 0x10 + +#define IME_GETCONVERSIONMODE 0x11 +#define IME_SET_MODE 0x12 // KOREA only +#define IME_SENDVKEY 0x13 +#define IME_ENTERWORDREGISTERMODE 0x18 +#define IME_SETCONVERSIONFONTEX 0x19 + +// +// IME_CODECONVERT subfunctions +// +#define IME_BANJAtoJUNJA 0x13 // KOREA only +#define IME_JUNJAtoBANJA 0x14 // KOREA only +#define IME_JOHABtoKS 0x15 // KOREA only +#define IME_KStoJOHAB 0x16 // KOREA only + +// +// IME_AUTOMATA subfunctions +// +#define IMEA_INIT 0x01 // KOREA only +#define IMEA_NEXT 0x02 // KOREA only +#define IMEA_PREV 0x03 // KOREA only + +// +// IME_HANJAMODE subfunctions +// +#define IME_REQUEST_CONVERT 0x01 // KOREA only +#define IME_ENABLE_CONVERT 0x02 // KOREA only + +// +// IME_MOVEIMEWINDOW subfunctions +// +#define INTERIM_WINDOW 0x00 // KOREA only +#define MODE_WINDOW 0x01 // KOREA only +#define HANJA_WINDOW 0x02 // KOREA only + +// +// error code +// +#define IME_RS_ERROR 0x01 // genetal error +#define IME_RS_NOIME 0x02 // IME is not installed +#define IME_RS_TOOLONG 0x05 // given string is too long +#define IME_RS_ILLEGAL 0x06 // illegal charactor(s) is string +#define IME_RS_NOTFOUND 0x07 // no (more) candidate +#define IME_RS_NOROOM 0x0a // no disk/memory space +#define IME_RS_DISKERROR 0x0e // disk I/O error +#define IME_RS_INVALID 0x11 // Win3.1/NT +#define IME_RS_NEST 0x12 // called nested +#define IME_RS_SYSTEMMODAL 0x13 // called when system mode + +// +// report messge from IME to WinApps +// +#define WM_IME_REPORT 0x0280 + +// +// report message parameter for WM_IME_REPORT +// +#define IR_STRINGSTART 0x100 +#define IR_STRINGEND 0x101 +#define IR_OPENCONVERT 0x120 +#define IR_CHANGECONVERT 0x121 +#define IR_CLOSECONVERT 0x122 +#define IR_FULLCONVERT 0x123 +#define IR_IMESELECT 0x130 +#define IR_STRING 0x140 +#define IR_DBCSCHAR 0x160 +#define IR_UNDETERMINE 0x170 +#define IR_STRINGEX 0x180 // New for 3.1 +#define IR_MODEINFO 0x190 + +//#define WM_CONVERTREQUESTEX 0x0109 +#define WM_WNT_CONVERTREQUESTEX 0x0109 /* WM_CONVERTREQUESTEX: 109 for NT, 108 for OT */ +#define WM_CONVERTREQUEST 0x010A +#define WM_CONVERTRESULT 0x010B +#define WM_INTERIM 0x010C + +#define WM_IMEKEYDOWN 0x290 +#define WM_IMEKEYUP 0x291 + + +// +// UNDETERMINESTRING structure for IR_UNDETERMINE +// +typedef struct tagUNDETERMINESTRUCT { + DWORD dwSize; + UINT uDefIMESize; + UINT uDefIMEPos; + UINT uUndetTextLen; + UINT uUndetTextPos; + UINT uUndetAttrPos; + UINT uCursorPos; + UINT uDeltaStart; + UINT uDetermineTextLen; + UINT uDetermineTextPos; + UINT uDetermineDelimPos; + UINT uYomiTextLen; + UINT uYomiTextPos; + UINT uYomiDelimPos; +} UNDETERMINESTRUCT,*PUNDETERMINESTRUCT,NEAR *NPUNDETERMINESTRUCT,FAR *LPUNDETERMINESTRUCT; + + +typedef struct tagSTRINGEXSTRUCT { + DWORD dwSize; + UINT uDeterminePos; + UINT uDetermineDelimPos; + UINT uYomiPos; + UINT uYomiDelimPos; +} STRINGEXSTRUCT,NEAR *NPSTRINGEXSTRUCT,FAR *LPSTRINGEXSTRUCT; + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _IME_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImgUtil.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImgUtil.h new file mode 100644 index 0000000000000000000000000000000000000000..2a4d4895093307c6d439316cadb12999577ae8d7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImgUtil.h @@ -0,0 +1,399 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __imgutil_h__ +#define __imgutil_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ISniffStream_FWD_DEFINED__ +#define __ISniffStream_FWD_DEFINED__ +typedef interface ISniffStream ISniffStream; + +#endif /* __ISniffStream_FWD_DEFINED__ */ + + +#ifndef __IDithererImpl_FWD_DEFINED__ +#define __IDithererImpl_FWD_DEFINED__ +typedef interface IDithererImpl IDithererImpl; + +#endif /* __IDithererImpl_FWD_DEFINED__ */ + + +#ifndef __CoDitherToRGB8_FWD_DEFINED__ +#define __CoDitherToRGB8_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CoDitherToRGB8 CoDitherToRGB8; +#else +typedef struct CoDitherToRGB8 CoDitherToRGB8; +#endif /* __cplusplus */ + +#endif /* __CoDitherToRGB8_FWD_DEFINED__ */ + + +#ifndef __CoSniffStream_FWD_DEFINED__ +#define __CoSniffStream_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CoSniffStream CoSniffStream; +#else +typedef struct CoSniffStream CoSniffStream; +#endif /* __cplusplus */ + +#endif /* __CoSniffStream_FWD_DEFINED__ */ + + +#ifndef __CoMapMIMEToCLSID_FWD_DEFINED__ +#define __CoMapMIMEToCLSID_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CoMapMIMEToCLSID CoMapMIMEToCLSID; +#else +typedef struct CoMapMIMEToCLSID CoMapMIMEToCLSID; +#endif /* __cplusplus */ + +#endif /* __CoMapMIMEToCLSID_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocmm.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_imgutil_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// imgutil.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include + +STDAPI CreateMIMEMap( IMapMIMEToCLSID** ppMap ); +STDAPI DecodeImage( IStream* pStream, IMapMIMEToCLSID* pMap, + IUnknown* pEventSink ); +STDAPI SniffStream( IStream* pInStream, UINT* pnFormat, + IStream** ppOutStream ); +STDAPI GetMaxMIMEIDBytes( ULONG* pnMaxBytes ); +STDAPI IdentifyMIMEType( const BYTE* pbBytes, ULONG nBytes, + UINT* pnFormat ); +STDAPI ComputeInvCMAP(const RGBQUAD *pRGBColors, ULONG nColors, BYTE *pInvTable, + ULONG cbTable); +STDAPI DitherTo8( BYTE * pDestBits, LONG nDestPitch, BYTE * pSrcBits, LONG nSrcPitch, + REFGUID bfidSrc, RGBQUAD * prgbDestColors, RGBQUAD * prgbSrcColors, BYTE * pbDestInvMap, + LONG x, LONG y, LONG cx, LONG cy, LONG lDestTrans, LONG lSrcTrans); +STDAPI CreateDDrawSurfaceOnDIB(HBITMAP hbmDib, IDirectDrawSurface **ppSurface); +STDAPI DecodeImageEx( IStream* pStream, IMapMIMEToCLSID* pMap, + IUnknown* pEventSink, LPCWSTR pszMIMETypeParam ); + + +extern RPC_IF_HANDLE __MIDL_itf_imgutil_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imgutil_0000_0000_v0_0_s_ifspec; + +#ifndef __ISniffStream_INTERFACE_DEFINED__ +#define __ISniffStream_INTERFACE_DEFINED__ + +/* interface ISniffStream */ +/* [unique][helpstring][uuid][local][object] */ + + +EXTERN_C const IID IID_ISniffStream; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4EF17940-30E0-11d0-B724-00AA006C1A01") + ISniffStream : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Init( + IStream *pStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE Peek( + void *pBuffer, + ULONG nBytes, + ULONG *pnBytesRead) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISniffStreamVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ISniffStream * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ISniffStream * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ISniffStream * This); + + DECLSPEC_XFGVIRT(ISniffStream, Init) + HRESULT ( STDMETHODCALLTYPE *Init )( + ISniffStream * This, + IStream *pStream); + + DECLSPEC_XFGVIRT(ISniffStream, Peek) + HRESULT ( STDMETHODCALLTYPE *Peek )( + ISniffStream * This, + void *pBuffer, + ULONG nBytes, + ULONG *pnBytesRead); + + END_INTERFACE + } ISniffStreamVtbl; + + interface ISniffStream + { + CONST_VTBL struct ISniffStreamVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISniffStream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISniffStream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISniffStream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISniffStream_Init(This,pStream) \ + ( (This)->lpVtbl -> Init(This,pStream) ) + +#define ISniffStream_Peek(This,pBuffer,nBytes,pnBytesRead) \ + ( (This)->lpVtbl -> Peek(This,pBuffer,nBytes,pnBytesRead) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISniffStream_INTERFACE_DEFINED__ */ + + +#ifndef __IDithererImpl_INTERFACE_DEFINED__ +#define __IDithererImpl_INTERFACE_DEFINED__ + +/* interface IDithererImpl */ +/* [unique][helpstring][uuid][local][object] */ + + +EXTERN_C const IID IID_IDithererImpl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7C48E840-3910-11d0-86FC-00A0C913F750") + IDithererImpl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetDestColorTable( + ULONG nColors, + const RGBQUAD *prgbColors) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetEventSink( + IImageDecodeEventSink *pEventSink) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDithererImplVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDithererImpl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDithererImpl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDithererImpl * This); + + DECLSPEC_XFGVIRT(IDithererImpl, SetDestColorTable) + HRESULT ( STDMETHODCALLTYPE *SetDestColorTable )( + IDithererImpl * This, + ULONG nColors, + const RGBQUAD *prgbColors); + + DECLSPEC_XFGVIRT(IDithererImpl, SetEventSink) + HRESULT ( STDMETHODCALLTYPE *SetEventSink )( + IDithererImpl * This, + IImageDecodeEventSink *pEventSink); + + END_INTERFACE + } IDithererImplVtbl; + + interface IDithererImpl + { + CONST_VTBL struct IDithererImplVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDithererImpl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDithererImpl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDithererImpl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDithererImpl_SetDestColorTable(This,nColors,prgbColors) \ + ( (This)->lpVtbl -> SetDestColorTable(This,nColors,prgbColors) ) + +#define IDithererImpl_SetEventSink(This,pEventSink) \ + ( (This)->lpVtbl -> SetEventSink(This,pEventSink) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDithererImpl_INTERFACE_DEFINED__ */ + + + +#ifndef __ImgUtilLib_LIBRARY_DEFINED__ +#define __ImgUtilLib_LIBRARY_DEFINED__ + +/* library ImgUtilLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_ImgUtilLib; + +EXTERN_C const CLSID CLSID_CoDitherToRGB8; + +#ifdef __cplusplus + +class DECLSPEC_UUID("A860CE50-3910-11d0-86FC-00A0C913F750") +CoDitherToRGB8; +#endif + +EXTERN_C const CLSID CLSID_CoSniffStream; + +#ifdef __cplusplus + +class DECLSPEC_UUID("6A01FDA0-30DF-11d0-B724-00AA006C1A01") +CoSniffStream; +#endif + +EXTERN_C const CLSID CLSID_CoMapMIMEToCLSID; + +#ifdef __cplusplus + +class DECLSPEC_UUID("30C3B080-30FB-11d0-B724-00AA006C1A01") +CoMapMIMEToCLSID; +#endif +#endif /* __ImgUtilLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_imgutil_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_imgutil_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imgutil_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImgUtil.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImgUtil.idl new file mode 100644 index 0000000000000000000000000000000000000000..c87bfa482480ba11b4168ec3e1e5864db80968a3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ImgUtil.idl @@ -0,0 +1,115 @@ +//+------------------------------------------------------------------------ +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: imgutil.idl +// +//------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// imgutil.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#include ") + +import "ocmm.idl"; + +interface IDirectDrawSurface; + +cpp_quote( "STDAPI CreateMIMEMap( IMapMIMEToCLSID** ppMap );" ) +cpp_quote( "STDAPI DecodeImage( IStream* pStream, IMapMIMEToCLSID* pMap," ) +cpp_quote( " IUnknown* pEventSink );" ) +cpp_quote( "STDAPI SniffStream( IStream* pInStream, UINT* pnFormat," ) +cpp_quote( " IStream** ppOutStream );" ) +cpp_quote( "STDAPI GetMaxMIMEIDBytes( ULONG* pnMaxBytes );" ) +cpp_quote( "STDAPI IdentifyMIMEType( const BYTE* pbBytes, ULONG nBytes," ) +cpp_quote( " UINT* pnFormat );" ) +cpp_quote( "STDAPI ComputeInvCMAP(const RGBQUAD *pRGBColors, ULONG nColors, BYTE *pInvTable," ) +cpp_quote( " ULONG cbTable);" ) +cpp_quote( "STDAPI DitherTo8( BYTE * pDestBits, LONG nDestPitch, BYTE * pSrcBits, LONG nSrcPitch," ) +cpp_quote( " REFGUID bfidSrc, RGBQUAD * prgbDestColors, RGBQUAD * prgbSrcColors, BYTE * pbDestInvMap," ) +cpp_quote( " LONG x, LONG y, LONG cx, LONG cy, LONG lDestTrans, LONG lSrcTrans);" ) +cpp_quote( "STDAPI CreateDDrawSurfaceOnDIB(HBITMAP hbmDib, IDirectDrawSurface **ppSurface);" ) +cpp_quote( "STDAPI DecodeImageEx( IStream* pStream, IMapMIMEToCLSID* pMap," ) +cpp_quote( " IUnknown* pEventSink, LPCWSTR pszMIMETypeParam );" ) + +[ + object, + local, + uuid( 4EF17940-30E0-11d0-B724-00AA006C1A01 ), + helpstring( "ISniffStream Interface" ), + pointer_default( unique ) +] +interface ISniffStream : IUnknown +{ + HRESULT Init( IStream* pStream ); + HRESULT Peek( void* pBuffer, ULONG nBytes, ULONG* pnBytesRead ); +}; + +[ + object, + local, + uuid( 7C48E840-3910-11d0-86FC-00A0C913F750 ), + helpstring( "IDithererImpl Interface" ), + pointer_default( unique ) +] +interface IDithererImpl : IUnknown +{ + HRESULT SetDestColorTable( ULONG nColors, const RGBQUAD* prgbColors ); + HRESULT SetEventSink( IImageDecodeEventSink* pEventSink ); +}; + +[ + uuid( CF790840-2DC4-11D0-B724-00AA006C1A01 ), + version( 1.0 ), + helpstring( "ImgUtil 1.0 Type Library") +] +library ImgUtilLib +{ + importlib("stdole2.tlb"); + + [ + uuid( A860CE50-3910-11d0-86FC-00A0C913F750 ), + helpstring( "CoDitherToRGB8 Class" ) + ] + coclass CoDitherToRGB8 + { + [default] interface IImageDecodeEventSink; + }; + + [ + uuid( 6A01FDA0-30DF-11d0-B724-00AA006C1A01 ), + helpstring( "CoSniffStream Class" ) + ] + coclass CoSniffStream + { + [default] interface IStream; + }; + + [ + uuid( 30C3B080-30FB-11d0-B724-00AA006C1A01 ), + helpstring( "CoMapMIMEToCLSID Class" ) + ] + coclass CoMapMIMEToCLSID + { + [default] interface IMapMIMEToCLSID; + }; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InetReg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InetReg.h new file mode 100644 index 0000000000000000000000000000000000000000..8a2c967e6d5fc605092742d9060a68a022b5177b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InetReg.h @@ -0,0 +1,587 @@ +//********************************************************************* +//* Microsoft Windows ** +//* Copyright(c) Microsoft Corp., 1994-1998 ** +//********************************************************************* + +// +// INETREG.H - String literals for HKEYs in registry +// + +#ifndef _INETREGSTRS_H_ +#define _INETREGSTRS_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +// +// HKEY: HKEY_CURRENT_USER +// + +// +// Top level defines +// +#define TSZMICROSOFTPATH TEXT("Software\\Microsoft") +#define TSZIEPATH TSZMICROSOFTPATH TEXT("\\Internet Explorer") +#define TSZWINCURVERPATH TSZMICROSOFTPATH TEXT("\\windows\\CurrentVersion") +#define TSZWININETPATH TSZWINCURVERPATH TEXT("\\Internet Settings") + +// Windows : HKLM +#define REGSTR_PATH_RUNONCE_KEY TSZWINCURVERPATH TEXT("\\RunOnce") + +// INETCPL : HKLM +#define REGSTR_PATH_INETCPL_PS_EXTENTIONS TSZWINCURVERPATH TEXT("\\Controls Folder\\Internet") + +// +// Explorer : HKCU +// +#define REGSTR_PATH_IEXPLORER TSZIEPATH + +// Main +#define SZ_IE_MAIN "Main" +#define REGSTR_PATH_MAIN TSZIEPATH TEXT( "\\") TEXT(SZ_IE_MAIN) +#define REGSTR_KEY_MAIN TEXT(SZ_IE_MAIN) + +#define REGSTR_VAL_SMOOTHSCROLL TEXT("SmoothScroll") +#define REGSTR_VAL_SMOOTHSCROLL_DEF TRUE + +#define REGSTR_VAL_SHOWTOOLBAR TEXT("Show_ToolBar") +#define REGSTR_VAL_SHOWADDRESSBAR TEXT("Show_URLToolBar") +#define REGSTR_VAL_STARTPAGE TEXT("Start Page") +#define REGSTRA_VAL_STARTPAGE "Start Page" +#define REGSTR_VAL_SEARCHPAGE TEXT("Search Page") +#define REGSTR_VAL_LOCALPAGE TEXT("Local Page") + +#define REGSTR_VAL_USESTYLESHEETS TEXT("Use Stylesheets") +#define REGSTR_VAL_USESTYLESHEETS_TYPE REG_SZ // "yes" or "no" +#define REGSTR_VAL_USESTYLESHEETS_DEF TEXT("yes") + +#define REGSTR_VAL_USEICM TEXT("UseICM") +#define REGSTR_VAL_USEICM_DEF FALSE + +#define REGSTR_VAL_SHOWFOCUS TEXT("Tabstop - MouseDown") +#define REGSTR_VAL_SHOWFOCUS_TYPE REG_SZ // "yes" or "no" +#define REGSTR_VAL_SHOWFOCUS_DEF TEXT("no") + +#define REGSTR_VAL_LOADIMAGES TEXT("Display Inline Images") +#define REGSTR_VAL_PLAYSOUNDS TEXT("Play_Background_Sounds") +#define REGSTR_VAL_PLAYVIDEOS TEXT("Display Inline Videos") +#define REGSTR_VAL_ANCHORUNDERLINE TEXT("Anchor Underline") +#define REGSTR_VAL_USEDLGCOLORS TEXT("Use_DlgBox_Colors") +#define REGSTR_VAL_CHECKASSOC TEXT("Check_Associations") +#define REGSTR_VAL_SHOWFULLURLS TEXT("Show_FullURL") +#define REGSTR_VAL_AUTOSEARCH TEXT("Do404Search") +#define REGSTR_VAL_AUTONAVIGATE TEXT("SearchForExtensions") +#define REGSTR_VAL_HTTP_ERRORS TEXT("Friendly http errors") + +#define REGSTR_VAL_USEIBAR TEXT("UseBar") + +// Settings +#define SZ_IE_SETTINGS "Settings" +#define REGSTR_PATH_IE_SETTINGS TSZIEPATH TEXT("\\") TEXT(SZ_IE_SETTINGS) +#define REGSTR_KEY_IE_SETTINGS TEXT(SZ_IE_SETTINGS) + +#define REGSTR_VAL_IE_CUSTOMCOLORS TEXT("Custom Colors") +#define REGSTR_VAL_IE_CUSTOMCOLORS_TYPE REG_BINARY + +#define REGSTR_VAL_ANCHORCOLOR TEXT("Anchor Color") +#define REGSTR_VAL_ANCHORCOLORVISITED TEXT("Anchor Color Visited") +#define REGSTR_VAL_BACKGROUNDCOLOR TEXT("Background Color") +#define REGSTR_VAL_TEXTCOLOR TEXT("Text Color") +#define REGSTR_VAL_ANCHORCOLORHOVER TEXT("Anchor Color Hover") +#define REGSTR_VAL_USEHOVERCOLOR TEXT("Use Anchor Hover Color") + +// Security +#define SZ_IE_SECURITY "Security" +#define REGSTR_PATH_IE_SECURITY TSZIEPATH TEXT("\\") TEXT(SZ_IE_SECURITY) +#define REGSTR_KEY_IE_SECURITY TEXT(SZ_IE_SECURITY) + +#define REGSTR_VAL_SAFETYWARNINGLEVEL TEXT("Safety Warning Level") + +// HTML Editing +#define SZ_IE_DEFAULT_HTML_EDITOR "Default HTML Editor" +#define REGSTR_PATH_DEFAULT_HTML_EDITOR TSZIEPATH TEXT("\\") TEXT(SZ_IE_DEFAULT_HTML_EDITOR) +#define REGSTR_KEY_DEFAULT_HTML_EDITOR TEXT(SZ_IE_DEFAULT_HTML_EDITOR) + +// Autocomplete +#define REGSTR_PATH_AUTOCOMPLETE TSZWINCURVERPATH TEXT("\\Explorer\\AutoComplete") +#define REGSTR_VAL_USEAUTOAPPEND TEXT("Append Completion") +#define REGSTR_VAL_USEAUTOSUGGEST TEXT("AutoSuggest") + +// Old IE4 autocomplete key +#define REGSTR_VAL_USEAUTOCOMPLETE TEXT("Use AutoComplete") + +// iBar +#define SZ_IE_IBAR "Bar" +#define TSZIBARPATH TSZIEPATH TEXT( "\\") TEXT(SZ_IE_IBAR) +#define REGSTR_PATH_IBAR TSZIBARPATH +#define REGSTR_KEY_IBAR TEXT(SZ_IE_IBAR) + +#define SZ_IE_IBAR_BANDS "Bands" +#define REGSTR_PATH_IBAR_BANDS TSZIBARPATH TEXT("\\") TEXT(SZ_IE_IBAR_BANDS) +#define REGSTR_KEY_IBAR_BANDS TEXT(SZ_IE_IBAR_BANDS) + + +// +// Internet : HKCU +// +// path to global internet settings (also under HKEY_CURRENT_USER) +#define REGSTR_PATH_INTERNETSETTINGS TSZWININETPATH +#define REGSTR_PATH_INTERNET_SETTINGS REGSTR_PATH_INTERNETSETTINGS + +#define REGSTR_VAL_USERAGENT TEXT("User Agent") + +// path to lan-specific settings +#define REGSTR_PATH_INTERNET_LAN_SETTINGS REGSTR_PATH_INTERNETSETTINGS TEXT("\\LAN") + +// string value under HKCU\REGSTR_PATH_REMOTEACCESS that contains name of +// connectoid used to connect to internet +#define REGSTR_VAL_INTERNETENTRY TEXT("InternetProfile") +#define REGSTR_VAL_INTERNETPROFILE REGSTR_VAL_INTERNETENTRY + +#define REGSTR_VAL_INTERNETENTRYBKUP TEXT("BackupInternetProfile") + +#define REGSTR_VAL_CODEDOWNLOAD TEXT("Code Download") +#define REGSTR_VAL_CODEDOWNLOAD_DEF TEXT("yes") +#define REGSTR_VAL_CODEDOWNLOAD_TYPE REG_SZ // "yes" or "no" + +// policy key for inetcpl restrictions + +#define REGSTR_PATH_INETCPL_RESTRICTIONS TEXT("Software\\Policies\\Microsoft\\Internet Explorer\\Control Panel") + +// reg valuenames to restrict whether a tab should be shown or not; +// a value of non-zero means don't show that tab. +// reg key: HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel +#define REGSTR_VAL_INETCPL_GENERALTAB TEXT("GeneralTab") +#define REGSTR_VAL_INETCPL_SECURITYTAB TEXT("SecurityTab") +#define REGSTR_VAL_INETCPL_CONTENTTAB TEXT("ContentTab") +#define REGSTR_VAL_INETCPL_CONNECTIONSTAB TEXT("ConnectionsTab") +#define REGSTR_VAL_INETCPL_PROGRAMSTAB TEXT("ProgramsTab") +#define REGSTR_VAL_INETCPL_ADVANCEDTAB TEXT("AdvancedTab") +#define REGSTR_VAL_INETCPL_PRIVACYTAB TEXT("PrivacyTab") + +// setting to indicate whether or not IEAK launched this instance of inetcpl so extra +// info can be exposed +// reg key: HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel +#define REGSTR_VAL_INETCPL_IEAK TEXT("IEAKContext") + +// +// Cache +// +#define REGSTR_PATH_CACHE \ + REGSTR_PATH_INTERNETSETTINGS TEXT("\\Cache") + +#define REGSTR_PATH_CACHE_PATHS \ + REGSTR_PATH_CACHE TEXT("\\Paths") + +#define REGSTR_PATH_EXTENSIBLE_CACHE \ + REGSTR_PATH_CACHE TEXT("\\Extensible Cache") + +#define REGSTR_PATH_TRACKING \ + REGSTR_PATH_EXTENSIBLE_CACHE TEXT("\\Log") + +#define REGSTR_PATH_CACHE_SPECIAL_PATHS \ + REGSTR_PATH_CACHE TEXT("Special Paths") + +#define REGSTR_VAL_DIRECTORY TEXT("Directory") +#define REGSTR_VAL_DIRECTORY_TYPE REG_EXPAND_SZ + +#define REGSTR_VAL_NEWDIRECTORY TEXT("NewDirectory") +#define REGSTR_VAL_NEWDIRECTORY_TYPE REG_EXPAND_SZ + +#define REGSTR_VAL_CACHEPREFIX TEXT("CachePrefix") +#define REGSTR_VAL_CACHEPREFIX_TYPE REG_SZ + +#define REGSTR_PATH_URLHISTORY \ + REGSTR_PATH_INTERNETSETTINGS TEXT("\\Url History") + +#define REGSTR_PATH_SUBSCRIPTION \ + REGSTR_PATH_INTERNETSETTINGS TEXT("\\Subscription Folder") + +// +// Search Format Strings +// +#define SZ_IE_SEARCHSTRINGS "UrlTemplate" +#define REGSTR_PATH_SEARCHSTRINGS REGSTR_PATH_MAIN TEXT( "\\") TEXT(SZ_IE_SEARCHSTRINGS) +#define REGSTR_KEY_SEARCHSTRINGS TEXT(SZ_IE_SEARCHSTRINGS) + +#define MAX_SEARCH_FORMAT_STRING 255 + +// +// Server error page dispaly/don't display length thresholds. +// +#define SZ_IE_THRESHOLDS "ErrorThresholds" +#define REGSTR_PATH_THRESHOLDS REGSTR_PATH_MAIN TEXT( "\\") TEXT(SZ_IE_THRESHOLDS) + + +// +// Access Medium +// +#define REGSTR_VAL_ACCESSMEDIUM TEXT("AccessMedium") +// access type (MSN, other) +#define REGSTR_VAL_ACCESSTYPE TEXT("AccessType") + +// +// AutoDial +// +// name of connectoid-specific autodial handler dll and function +#define REGSTR_VAL_AUTODIALDLLNAME TEXT("AutodialDllName") +#define REGSTR_VAL_AUTODIALFCNNAME TEXT("AutodialFcnName") +// class name for window to receive Winsock activity messages +#define REGSTR_VAL_AUTODIAL_MONITORCLASSNAME TEXT("MS_AutodialMonitor") +#define REGSTR_VAL_AUTODIAL_TRYONLYONCE TEXT("TryAutodialOnce") + +// +// Remote Access +// +// path to RNA values (under HKEY_CURRENT_USER) +#define REGSTR_PATH_REMOTEACCESS TEXT("RemoteAccess") +#define REGSTR_PATH_REMOTEACESS REGSTR_PATH_REMOTEACCESS +// this is under HKLM... we are using this to determine if RNA is installed +// or not. We can't rely on finding the DLL since removing this component +// with the control panel's "Add/Remove Software" does not remove the RNAdll. +#define REGSTR_PATH_RNACOMPONENT TSZWINCURVERPATH TEXT("\\Setup\\OptionalComponents\\RNA") +#define REGSTR_VAL_RNAINSTALLED TEXT("Installed") + +// values under HKCU\REGSTR_PATH_INTERNET_SETTINGS + +// 4-byte REG_BINARY, autodialing is enabled if this value is present and +// non-zero, disabled otherwise +// If ForceAutodial is true, will always dial similar to IE4 behavior. +// If it's false, will only dial if network is not available. +#define REGSTR_VAL_ENABLEAUTODIAL TEXT("EnableAutodial") +#define REGSTR_VAL_ENABLEUNATTENDED TEXT("EnableUnattended") +#define REGSTR_VAL_NONETAUTODIAL TEXT("NoNetAutodial") + +#define REGSTR_VAL_REDIALATTEMPTS TEXT("RedialAttempts") +#define REGSTR_VAL_REDIALINTERVAL TEXT("RedialWait") + +#define REGSTR_VAL_ENABLEAUTODIALDISCONNECT TEXT("EnableAutodisconnect") +#define REGSTR_VAL_ENABLEAUTODISCONNECT REGSTR_VAL_ENABLEAUTODIALDISCONNECT +#define REGSTR_VAL_ENABLEEXITDISCONNECT TEXT("EnableExitDisconnect") + +#define REGSTR_VAL_ENABLESECURITYCHECK TEXT("EnableSecurityCheck") + +#define REGSTR_VAL_COVEREXCLUDE TEXT("CoverExclude") +// 4-byte REG_BINARY containing number of minutes of idle time to allow +// before autodisconnect. Autodisconnect is disabled if this value is zero +// or not present. +#define REGSTR_VAL_DISCONNECTIDLETIME TEXT("DisconnectIdleTime") + +// +// MOS +// +#define REGSTR_PATH_MOSDISCONNECT TSZMICROSOFTPATH TEXT("\\MOS\\Preferences") +#define REGSTR_VAL_MOSDISCONNECT TEXT("DisconnectTimeout") + +// +// Proxy : These are under REGSTR_PATH_INTERNETSETTINGS +// +#define REGSTR_VAL_PROXYENABLE TEXT("ProxyEnable") +#define REGSTR_VAL_PROXYSERVER TEXT("ProxyServer") +#define REGSTR_VAL_PROXYOVERRIDE TEXT("ProxyOverride") +#define REGSTR_VAL_BYPASSAUTOCONFIG TEXT("BypassAutoconfig") + + + +// +// Security : HKCU\\WININETPATH +// +#define SZTRUSTWARNLEVEL "Trust Warning Level" +#define REGSTR_KEY_TRUSTWARNINGLEVEL TSZWININETPATH TEXT(SZTRUSTWARNLEVEL) +#define REGSTR_VAL_TRUSTWARNINGLEVEL TEXT(SZTRUSTWARNLEVEL) //"none" will turn off WinVerifyTrust warnings. +#define REGSTR_VAL_TRUSTWARNINGLEVEL_TYPE REG_SZ +#define REGSTR_VAL_TRUSTWARNINGLEVEL_HIGH TEXT("High") +#define REGSTR_VAL_TRUSTWARNINGLEVEL_MED TEXT("Medium") +#define REGSTR_VAL_TRUSTWARNINGLEVEL_LOW TEXT("No Security") +// default depends on MSHTML's prefs nSafetyWarningLevel + +#define REGSTR_VAL_SECURITYWARNONSEND TEXT("WarnOnPost") +#define REGSTR_VAL_SECURITYWARNONSEND_TYPE REG_BINARY +#define REGSTR_VAL_SECURITYWARNONSEND_DEF TRUE + +#define REGSTR_VAL_SECURITYWARNONSENDALWAYS TEXT("WarnAlwaysOnPost") +#define REGSTR_VAL_SECURITYWARNONSENDALWAYS_TYPE REG_BINARY // FALSE-Only if... TRUE-Always +#define REGSTR_VAL_SECURITYWARNONSENDALWAYS_DEF TRUE + +#define REGSTR_VAL_SECURITYWARNONVIEW TEXT("WarnOnView") +#define REGSTR_VAL_SECURITYWARNONVIEW_TYPE REG_BINARY +#define REGSTR_VAL_SECURITYWARNONVIEW_DEF TRUE + +#define REGSTR_VAL_SECURITYALLOWCOOKIES TEXT("AllowCookies") +#define REGSTR_VAL_SECURITYALLOWCOOKIES_TYPE REG_BINARY +#define REGSTR_VAL_SECURITYALLOWCOOKIES_DEF TRUE + +#define REGSTR_VAL_SECURITYWARNONZONECROSSING TEXT("WarnOnZoneCrossing") +#define REGSTR_VAL_SECURITYWARNONZONECROSSING_TYPE REG_BINARY +#define REGSTR_VAL_SECURITYWARNONZONECROSSING_DEF TRUE + +#define REGSTR_VAL_SECURITYWARNONBADCERTVIEWING TEXT("WarnOnBadCertRecving") +#define REGSTR_VAL_SECURITYWARNONBADCERTVIEWING_TYPE REG_BINARY +#define REGSTR_VAL_SECURITYWARNONBADCERTVIEWING_DEF TRUE + +#define REGSTR_VAL_SECURITYWARNONBADCERTSENDING TEXT("WarnOnBadCertSending") +#define REGSTR_VAL_SECURITYWARNONBADCERTSENDING_TYPE REG_BINARY +#define REGSTR_VAL_SECURITYWARNONBADCERTSENDING_DEF TRUE + +#define REGSTR_VAL_SECURITYDISABLECACHINGOFSSLPAGES TEXT("DisableCachingOfSSLPages") +#define REGSTR_VAL_SECURITYDISABLECACHINGOFSSLPAGES_TYPE REG_DWORD +#define REGSTR_VAL_SECURITYDISABLECACHINGOFSSLPAGES_DEF FALSE + + +// +// Run/Show ActiveX / Java : These are under REGSTR_PATH_INTERNETSETTINGS +// +#define REGSTR_VAL_SECURITYACTIVEX TEXT("Security_RunActiveXControls") +#define REGSTR_VAL_SECURITYACTIVEX_TYPE REG_BINARY // TRUE or FALSE +#define REGSTR_VAL_SECURITYACTIVEX_DEF TRUE + +#define REGSTR_VAL_SECURITYACTICEXSCRIPTS TEXT("Security_RunScripts") +#define REGSTR_VAL_SECURITYACTICEXSCRIPTS_TYPE REG_BINARY // TRUE or FALSE +#define REGSTR_VAL_SECURITYACTICEXSCRIPTS_DEF TRUE + +#define REGSTR_VAL_SECURITYJAVA TEXT("Security_RunJavaApplets") +#define REGSTR_VAL_SECURITYJAVA_TYPE REG_BINARY // TRUE or FALSE +#define REGSTR_VAL_SECURITYJAVA_DEF TRUE + +// +// Java VM exclusively : HKCU +// +#define SZJAVAVMPATH "\\Java VM" +#define REGSTR_PATH_JAVAVM TSZMICROSOFTPATH TEXT(SZJAVAVMPATH) + +#define REGSTR_VAL_JAVAJIT TEXT("EnableJIT") +#define REGSTR_VAL_JAVAJIT_TYPE REG_DWORD // TRUE or FALSE +#define REGSTR_VAL_JAVAJIT_DEF FALSE + +#define REGSTR_VAL_JAVALOGGING TEXT("EnableLogging") +#define REGSTR_VAL_JAVALOGGING_TYPE REG_DWORD // TRUE or FALSE +#define REGSTR_VAL_JAVALOGGING_DEF FALSE + + +// +// QuickLinks +// +// this is where custom quicklinks are stored +#define SZTOOLBAR "\\Toolbar" +#define TSZTOOLBAR TEXT(SZTOOLBAR) +#define REGSTR_PATH_TOOLBAR TSZIEPATH TEXT(SZTOOLBAR) +#define REGSTR_KEY_QUICKLINKS TSZIEPATH TSZTOOLBAR TEXT("\\Links") +#define REGSTR_VAL_DAYSTOKEEP TEXT("DaysToKeep") + +#define SZNOTEXT "NoText" +#define REGSTR_VAL_NOTEXT TEXT(SZNOTEXT) +#define REGSTR_KEY_NOTEXT TSZIEPATH TSZTOOLBAR TEXT("\\") TEXT(SZNOTEXT) +#define SZVISIBLE "VisibleBands" +#define REGSTR_VAL_VISIBLE TEXT(SZVISIBLE) +#define REGSTR_KEY_VISIBLE TSZIEPATH TSZTOOLBAR TEXT("\\") TEXT(SZVISIBLE) + + +#define REGSTR_VAL_VISIBLEBANDS TEXT("VisibleBands") +#define REGSTR_VAL_VISIBLEBANDS_TYPE REG_DWORD // 3 bits (see below) +#define REGSTR_VAL_VISIBLEBANDS_DEF 0x7 // all three bands +#define TOOLSBAND 0x1 +#define ADDRESSBAND 0x2 +#define LINKSBAND 0x4 + +#define SZBACKBITMAP "BackBitmap" +#define REGSTR_VAL_BACKBITMAP TEXT("BackBitmap") +#define REGSTR_VAL_BACKBITMAP_TYPE REG_SZ +// "" = no bitmap or fillin with valid path, delete for default + +#define REGSTR_KEY_BACKBITMAP TSZIEPATH TSZTOOLBAR TEXT("\\") TEXT(SZBACKBITMAP) + +#define REGSTR_PATH_QUICKCOMPLETE REGSTR_PATH_TOOLBAR TEXT("\\") TEXT("QuickComplete") +#define REGSTR_SHIFTQUICKSUFFIX TEXT("ShiftQuickCompleteSuffix") + +// +// Schannel Settings: HKLM +// + +#define TSZSCHANNELPATH TEXT("SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL") +#define TSZSCHANNELPROTOCOLSPATH TSZSCHANNELPATH TEXT("\\Protocols") + +#define REGSTR_PATH_PCT1 TSZSCHANNELPROTOCOLSPATH TEXT("\\PCT 1.0\\Client") +#define REGSTR_PATH_SSL2 TSZSCHANNELPROTOCOLSPATH TEXT("\\SSL 2.0\\Client") +#define REGSTR_PATH_SSL3 TSZSCHANNELPROTOCOLSPATH TEXT("\\SSL 3.0\\Client") +#define REGSTR_PATH_UNIHELLO TSZSCHANNELPROTOCOLSPATH TEXT("\\Multi-Protocol Unified Hello\\Client") + +#define REGSTR_VAL_SCHANNELENABLEPROTOCOL TEXT("Enabled") +#define REGSTR_VAL_SCHANNELENABLEPROTOCOL_TYPE REG_DWORD +#define REGSTR_VAL_SCHANNELENABLEPROTOCOL_DEF TRUE + + +// +// Mail and News: HKLM +// +#ifdef UNIX + +#define TSZINTERNETCLIENTSPATH TEXT("Software\\Microsoft\\Internet Explorer\\Unix") +#define REGSTR_PATH_MAILCLIENTS TSZINTERNETCLIENTSPATH TEXT("\\MailCommand") +#define REGSTR_PATH_NEWSCLIENTS TSZINTERNETCLIENTSPATH TEXT("\\NewsCommand") +#define REGSTR_PATH_VSOURCECLIENTS TSZINTERNETCLIENTSPATH TEXT("\\VSourceCommand") +#define REGSTR_PATH_EDITORS TSZINTERNETCLIENTSPATH TEXT("\\Editors") +#define REGSTR_PATH_DEFAULT TEXT("default") +#define REGSTR_PATH_CURRENT TEXT("current") + +#else + +#define TSZINTERNETCLIENTSPATH TEXT("Software\\Clients") +#define REGSTR_PATH_MAILCLIENTS TSZINTERNETCLIENTSPATH TEXT("\\Mail") +#define REGSTR_PATH_NEWSCLIENTS TSZINTERNETCLIENTSPATH TEXT("\\News") +#define REGSTR_PATH_CALENDARCLIENTS TSZINTERNETCLIENTSPATH TEXT("\\Calendar") +#define REGSTR_PATH_CONTACTCLIENTS TSZINTERNETCLIENTSPATH TEXT("\\Contacts") +#define REGSTR_PATH_CALLCLIENTS TSZINTERNETCLIENTSPATH TEXT("\\Internet Call") + +#endif // !UNIX + +#ifdef UNIX +// Registry item containing the exe name to check for disabling OE +#define IE_USE_OE_PRESENT_HKEY HKEY_LOCAL_MACHINE +#define IE_USE_OE_PRESENT_KEY TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\app.paths\\msimn.exe") +#define IE_USE_OE_PRESENT_VALUE NULL + +// locations for new OE control variables for unix +#define IE_USE_OE_MAIL_HKEY HKEY_CURRENT_USER +#define IE_USE_OE_MAIL_KEY TEXT("Software\\Microsoft\\Internet Explorer\\Mail") +#define IE_USE_OE_MAIL_VALUE TEXT("Use Outlook Express") + +#define IE_USE_OE_NEWS_HKEY HKEY_CURRENT_USER +#define IE_USE_OE_NEWS_KEY TEXT("Software\\Microsoft\\Internet Explorer\\News") +#define IE_USE_OE_NEWS_VALUE TEXT("Use Outlook Express") +#endif // UNIX + +// this is under the mail and news paths +#define TSZPROTOCOLSPATH TEXT("Protocols\\") +// and one these is under the protocols path +#define TSZMAILTOPROTOCOL TEXT("mailto") +#define TSZNEWSPROTOCOL TEXT("news") +#define TSZCALLTOPROTOCOL TEXT("callto") +#define TSZLDAPPROTOCOL TEXT("ldap") +#define TSZCALENDARPROTOCOL TEXT("unk") + +#ifdef UNIX +#define TSZVSOURCEPROTOCOL TEXT("view source") +#endif + +// +// International and Fonts: HKCU\\TSZIEPATH +// +#define REGSTR_PATH_INTERNATIONAL TSZIEPATH TEXT("\\International") + +#define REGSTR_PATH_INTERNATIONAL_SCRIPTS TSZIEPATH TEXT("\\International\\Scripts") + +#define REGSTR_VAL_DEFAULT_CODEPAGE TEXT("Default_CodePage") +#define REGSTR_VAL_DEFAULT_CODEPAGE_TYPE REG_SZ // code page + // will grab default from system if not found + +#define REGSTR_VAL_DEFAULT_SCRIPT TEXT("Default_Script") +#define REGSTR_VAL_DEFAULT_SCRIPT_TYPE REG_SZ + // will grab default from system if not found + + +#define REGSTR_VAL_ACCEPT_LANGUAGE TEXT("AcceptLanguage") +#define REGSTR_VAL_ACCETP_LANGUAGE_TYPE REG_SZ + + +// each CHARSET has a unique key under REGSTR_PATH_INTERNATIONAL +// which has the following values defined +#define REGSTR_VAL_FONT_SCRIPTS TEXT("Scripts") +#define REGSTR_VAL_FONT_SCRIPT TEXT("Script") +#define REGSTR_VAL_FONT_SCRIPT_TYPE REG_SZ // friendly name of font if other than system + // no default + +#define REGSTR_VAL_FONT_SCRIPT_NAME TEXT("Script") +#define REGSTR_VAL_FONT_SCRIPT_NAME_TYPE REG_SZ + + +#define REGSTR_VAL_DEF_ENCODING TEXT("Default_Encoding") +#define REGSTR_VAL_DEF_ENCODING_TYPE REG_SZ // internal MIME table name + // no default + +#define REGSTR_VAL_DEF_INETENCODING TEXT("Default_InternetEncoding") +#define REGSTR_VAL_DEF_INETENCODING_TYPE REG_DWORD + // no default + +#define REGSTR_VAL_FIXED_FONT TEXT("IEFixedFontName") +#define REGSTR_VAL_FIXED_FONT_TYPE REG_SZ // must match a registered font name + // no default + +#define REGSTR_VAL_SCRIPT_FIXED_FONT TEXT("IEFixedFontName") +#define REGSTR_VAL_SCRIPT_FIXED_FONT_TYPE REG_SZ // must match a registered font name + // no default + +#define REGSTR_VAL_PROP_FONT TEXT("IEPropFontName") +#define REGSTR_VAL_PROP_FONT_TYPE REG_SZ // must match a registered font name + // no default + +#define REGSTR_VAL_SCRIPT_PROP_FONT TEXT("IEPropFontName") +#define REGSTR_VAL_SCRIPT_PROP_FONT_TYPE REG_SZ // must match a registered font name + // no default + +#define REGSTR_VAL_FONT_SIZE TEXT("IEFontSize") +#define REGSTR_VAL_FONT_SIZE_TYPE REG_BINARY +#define REGSTR_VAL_FONT_SIZE_DEF 2 // default size : Medium + +#define REGSTR_VAL_AUTODETECT TEXT("AutoDetect") +#define REGSTR_VAL_AUTODETECT_TYPE REG_SZ + +// MIME database charset extension +#define REGSTR_PATH_MIME_DATABASE TEXT("MIME\\Database") +#define REGSTR_KEY_MIME_DATABASE_CHARSET REGSTR_PATH_MIME_DATABASE TEXT("\\Charset") +#define REGSTR_KEY_MIME_DATABASE_CODEPAGE REGSTR_PATH_MIME_DATABASE TEXT("\\CodePage") +#define REGSTR_KEY_MIME_DATABASE_RFC1766 REGSTR_PATH_MIME_DATABASE TEXT("\\Rfc1766") + +#define REGSTR_VAL_CODEPAGE TEXT("CodePage") +#define REGSTR_VAL_CODEPAGE_TYPE REG_DWORD + +#define REGSTR_VAL_INETENCODING TEXT("InternetEncoding") +#define REGSTR_VAL_INETENCODING_TYPE REG_DWORD + +#define REGSTR_VAL_FAMILY TEXT("Family") +#define REGSTR_VAL_FAMILY_TYPE REG_DWORD + +#define REGSTR_VAL_LEVEL TEXT("Level") +#define REGSTR_VAL_LEVEL_TYPE REG_DWORD + +#define REGSTR_VAL_ALIASTO TEXT("AliasForCharset") +#define REGSTR_VAL_ALIASTO_TYPE REG_SZ + +#define REGSTR_VAL_ENCODENAME TEXT("EncodingName") +#define REGSTR_VAL_ENCODENAME_TYPE REG_SZ + +#define REGSTR_VAL_DESCRIPTION TEXT("Description") +#define REGSTR_VAL_DESCRIPTION_TYPE REG_SZ + +#define REGSTR_VAL_WEBCHARSET TEXT("WebCharset") +#define REGSTR_VAL_WEBCHARSET_TYPE REG_SZ + +#define REGSTR_VAL_BODYCHARSET TEXT("BodyCharset") +#define REGSTR_VAL_BODYCHARSET_TYPE REG_SZ + +#define REGSTR_VAL_HEADERCHARSET TEXT("HeaderCharset") +#define REGSTR_VAL_HEADERCHARSET_TYPE REG_SZ + +#define REGSTR_VAL_FIXEDWIDTHFONT TEXT("FixedWidthFont") +#define REGSTR_VAL_FIXEDWIDTHFONT_TYPE REG_SZ + +#define REGSTR_VAL_PROPORTIONALFONT TEXT("ProportionalFont") +#define REGSTR_VAL_PROPOPRTIONALFONT_TYPE REG_SZ + +#define REGSTR_VAL_PRIVCONVERTER TEXT("PrivConverter") +#define REGSTR_VAL_PRIVCONVERTER_TYPE REG_SZ + +#define REGSTR_PATH_DEFAULT_FEEDS REGSTR_PATH_MAIN L"\\Default Feeds" + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _INETREGSTRS_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InetSDK.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InetSDK.Idl new file mode 100644 index 0000000000000000000000000000000000000000..2a95748639b24a05daba8604b019bc20d59a20ae --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InetSDK.Idl @@ -0,0 +1,38 @@ +//+--------------------------------------------------------------------------- +// +// Copyright 1995-1998 Microsoft Corporation. All Rights Reserved. +// +// Contents: INet SDK merged IDL +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// INetSDK.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("// ActiveX SDK Merged IDL.") +cpp_quote("") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "comcat.idl"; +import "ocidl.idl"; +import "docobj.idl"; +import "hlink.idl"; +import "urlmon.idl"; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InetSDK.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InetSDK.h new file mode 100644 index 0000000000000000000000000000000000000000..768e566861a0983a4625ec2c2e31bc6d7b6efc95 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InetSDK.h @@ -0,0 +1,96 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __inetsdk_h__ +#define __inetsdk_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +/* header files for imported files */ +#include "comcat.h" +#include "ocidl.h" +#include "docobj.h" +#include "hlink.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_inetsdk_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// INetSDK.h +//=--------------------------------------------------------------------------= +// (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#pragma comment(lib,"uuid.lib") + +//-------------------------------------------------------------------------- +// ActiveX SDK Merged IDL. + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_inetsdk_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inetsdk_0000_0000_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InkPresenterDesktop.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InkPresenterDesktop.h new file mode 100644 index 0000000000000000000000000000000000000000..0de8815f4b711e3ac5a2e04ce439350b90307d70 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InkPresenterDesktop.h @@ -0,0 +1,566 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __inkpresenterdesktop_h__ +#define __inkpresenterdesktop_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IInkCommitRequestHandler_FWD_DEFINED__ +#define __IInkCommitRequestHandler_FWD_DEFINED__ +typedef interface IInkCommitRequestHandler IInkCommitRequestHandler; + +#endif /* __IInkCommitRequestHandler_FWD_DEFINED__ */ + + +#ifndef __IInkPresenterDesktop_FWD_DEFINED__ +#define __IInkPresenterDesktop_FWD_DEFINED__ +typedef interface IInkPresenterDesktop IInkPresenterDesktop; + +#endif /* __IInkPresenterDesktop_FWD_DEFINED__ */ + + +#ifndef __IInkHostWorkItem_FWD_DEFINED__ +#define __IInkHostWorkItem_FWD_DEFINED__ +typedef interface IInkHostWorkItem IInkHostWorkItem; + +#endif /* __IInkHostWorkItem_FWD_DEFINED__ */ + + +#ifndef __IInkDesktopHost_FWD_DEFINED__ +#define __IInkDesktopHost_FWD_DEFINED__ +typedef interface IInkDesktopHost IInkDesktopHost; + +#endif /* __IInkDesktopHost_FWD_DEFINED__ */ + + +#ifndef __InkDesktopHost_FWD_DEFINED__ +#define __InkDesktopHost_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class InkDesktopHost InkDesktopHost; +#else +typedef struct InkDesktopHost InkDesktopHost; +#endif /* __cplusplus */ + +#endif /* __InkDesktopHost_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "inspectable.h" +#include "weakreference.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_inkpresenterdesktop_0000_0000 */ +/* [local] */ + +#pragma once +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + + +extern RPC_IF_HANDLE __MIDL_itf_inkpresenterdesktop_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inkpresenterdesktop_0000_0000_v0_0_s_ifspec; + +#ifndef __IInkCommitRequestHandler_INTERFACE_DEFINED__ +#define __IInkCommitRequestHandler_INTERFACE_DEFINED__ + +/* interface IInkCommitRequestHandler */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IInkCommitRequestHandler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fabea3fc-b108-45b6-a9fc-8d08fa9f85cf") + IInkCommitRequestHandler : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnCommitRequested( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInkCommitRequestHandlerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInkCommitRequestHandler * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInkCommitRequestHandler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInkCommitRequestHandler * This); + + DECLSPEC_XFGVIRT(IInkCommitRequestHandler, OnCommitRequested) + HRESULT ( STDMETHODCALLTYPE *OnCommitRequested )( + __RPC__in IInkCommitRequestHandler * This); + + END_INTERFACE + } IInkCommitRequestHandlerVtbl; + + interface IInkCommitRequestHandler + { + CONST_VTBL struct IInkCommitRequestHandlerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInkCommitRequestHandler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInkCommitRequestHandler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInkCommitRequestHandler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInkCommitRequestHandler_OnCommitRequested(This) \ + ( (This)->lpVtbl -> OnCommitRequested(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInkCommitRequestHandler_INTERFACE_DEFINED__ */ + + +#ifndef __IInkPresenterDesktop_INTERFACE_DEFINED__ +#define __IInkPresenterDesktop_INTERFACE_DEFINED__ + +/* interface IInkPresenterDesktop */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IInkPresenterDesktop; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("73f3c0d9-2e8b-48f3-895e-20cbd27b723b") + IInkPresenterDesktop : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetRootVisual( + /* [in] */ __RPC__in_opt IUnknown *rootVisual, + /* [unique][in] */ __RPC__in_opt IUnknown *device) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCommitRequestHandler( + /* [in] */ __RPC__in_opt IInkCommitRequestHandler *handler) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSize( + /* [out] */ __RPC__out float *width, + /* [out] */ __RPC__out float *height) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSize( + /* [in] */ float width, + /* [in] */ float height) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnHighContrastChanged( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInkPresenterDesktopVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInkPresenterDesktop * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInkPresenterDesktop * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInkPresenterDesktop * This); + + DECLSPEC_XFGVIRT(IInkPresenterDesktop, SetRootVisual) + HRESULT ( STDMETHODCALLTYPE *SetRootVisual )( + __RPC__in IInkPresenterDesktop * This, + /* [in] */ __RPC__in_opt IUnknown *rootVisual, + /* [unique][in] */ __RPC__in_opt IUnknown *device); + + DECLSPEC_XFGVIRT(IInkPresenterDesktop, SetCommitRequestHandler) + HRESULT ( STDMETHODCALLTYPE *SetCommitRequestHandler )( + __RPC__in IInkPresenterDesktop * This, + /* [in] */ __RPC__in_opt IInkCommitRequestHandler *handler); + + DECLSPEC_XFGVIRT(IInkPresenterDesktop, GetSize) + HRESULT ( STDMETHODCALLTYPE *GetSize )( + __RPC__in IInkPresenterDesktop * This, + /* [out] */ __RPC__out float *width, + /* [out] */ __RPC__out float *height); + + DECLSPEC_XFGVIRT(IInkPresenterDesktop, SetSize) + HRESULT ( STDMETHODCALLTYPE *SetSize )( + __RPC__in IInkPresenterDesktop * This, + /* [in] */ float width, + /* [in] */ float height); + + DECLSPEC_XFGVIRT(IInkPresenterDesktop, OnHighContrastChanged) + HRESULT ( STDMETHODCALLTYPE *OnHighContrastChanged )( + __RPC__in IInkPresenterDesktop * This); + + END_INTERFACE + } IInkPresenterDesktopVtbl; + + interface IInkPresenterDesktop + { + CONST_VTBL struct IInkPresenterDesktopVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInkPresenterDesktop_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInkPresenterDesktop_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInkPresenterDesktop_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInkPresenterDesktop_SetRootVisual(This,rootVisual,device) \ + ( (This)->lpVtbl -> SetRootVisual(This,rootVisual,device) ) + +#define IInkPresenterDesktop_SetCommitRequestHandler(This,handler) \ + ( (This)->lpVtbl -> SetCommitRequestHandler(This,handler) ) + +#define IInkPresenterDesktop_GetSize(This,width,height) \ + ( (This)->lpVtbl -> GetSize(This,width,height) ) + +#define IInkPresenterDesktop_SetSize(This,width,height) \ + ( (This)->lpVtbl -> SetSize(This,width,height) ) + +#define IInkPresenterDesktop_OnHighContrastChanged(This) \ + ( (This)->lpVtbl -> OnHighContrastChanged(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInkPresenterDesktop_INTERFACE_DEFINED__ */ + + +#ifndef __IInkHostWorkItem_INTERFACE_DEFINED__ +#define __IInkHostWorkItem_INTERFACE_DEFINED__ + +/* interface IInkHostWorkItem */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IInkHostWorkItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ccda0a9a-1b78-4632-bb96-97800662e26c") + IInkHostWorkItem : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Invoke( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInkHostWorkItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInkHostWorkItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInkHostWorkItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInkHostWorkItem * This); + + DECLSPEC_XFGVIRT(IInkHostWorkItem, Invoke) + HRESULT ( STDMETHODCALLTYPE *Invoke )( + __RPC__in IInkHostWorkItem * This); + + END_INTERFACE + } IInkHostWorkItemVtbl; + + interface IInkHostWorkItem + { + CONST_VTBL struct IInkHostWorkItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInkHostWorkItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInkHostWorkItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInkHostWorkItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInkHostWorkItem_Invoke(This) \ + ( (This)->lpVtbl -> Invoke(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInkHostWorkItem_INTERFACE_DEFINED__ */ + + +#ifndef __IInkDesktopHost_INTERFACE_DEFINED__ +#define __IInkDesktopHost_INTERFACE_DEFINED__ + +/* interface IInkDesktopHost */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IInkDesktopHost; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4ce7d875-a981-4140-a1ff-ad93258e8d59") + IInkDesktopHost : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE QueueWorkItem( + /* [in] */ __RPC__in_opt IInkHostWorkItem *workItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateInkPresenter( + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppv) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateAndInitializeInkPresenter( + /* [in] */ __RPC__in_opt IUnknown *rootVisual, + /* [in] */ float width, + /* [in] */ float height, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppv) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInkDesktopHostVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInkDesktopHost * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInkDesktopHost * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInkDesktopHost * This); + + DECLSPEC_XFGVIRT(IInkDesktopHost, QueueWorkItem) + HRESULT ( STDMETHODCALLTYPE *QueueWorkItem )( + __RPC__in IInkDesktopHost * This, + /* [in] */ __RPC__in_opt IInkHostWorkItem *workItem); + + DECLSPEC_XFGVIRT(IInkDesktopHost, CreateInkPresenter) + HRESULT ( STDMETHODCALLTYPE *CreateInkPresenter )( + __RPC__in IInkDesktopHost * This, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppv); + + DECLSPEC_XFGVIRT(IInkDesktopHost, CreateAndInitializeInkPresenter) + HRESULT ( STDMETHODCALLTYPE *CreateAndInitializeInkPresenter )( + __RPC__in IInkDesktopHost * This, + /* [in] */ __RPC__in_opt IUnknown *rootVisual, + /* [in] */ float width, + /* [in] */ float height, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppv); + + END_INTERFACE + } IInkDesktopHostVtbl; + + interface IInkDesktopHost + { + CONST_VTBL struct IInkDesktopHostVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInkDesktopHost_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInkDesktopHost_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInkDesktopHost_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInkDesktopHost_QueueWorkItem(This,workItem) \ + ( (This)->lpVtbl -> QueueWorkItem(This,workItem) ) + +#define IInkDesktopHost_CreateInkPresenter(This,riid,ppv) \ + ( (This)->lpVtbl -> CreateInkPresenter(This,riid,ppv) ) + +#define IInkDesktopHost_CreateAndInitializeInkPresenter(This,rootVisual,width,height,riid,ppv) \ + ( (This)->lpVtbl -> CreateAndInitializeInkPresenter(This,rootVisual,width,height,riid,ppv) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInkDesktopHost_INTERFACE_DEFINED__ */ + + + +#ifndef __InkDesktopHostLib_LIBRARY_DEFINED__ +#define __InkDesktopHostLib_LIBRARY_DEFINED__ + +/* library InkDesktopHostLib */ +/* [uuid] */ + + +EXTERN_C const IID LIBID_InkDesktopHostLib; + +EXTERN_C const CLSID CLSID_InkDesktopHost; + +#ifdef __cplusplus + +class DECLSPEC_UUID("062584a6-f830-4bdc-a4d2-0a10ab062b1d") +InkDesktopHost; +#endif +#endif /* __InkDesktopHostLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_inkpresenterdesktop_0000_0005 */ +/* [local] */ + +#endif // NTDDI_VERSION >= NTDDI_WINTHRESHOLD +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_inkpresenterdesktop_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inkpresenterdesktop_0000_0005_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InkPresenterDesktop.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InkPresenterDesktop.idl new file mode 100644 index 0000000000000000000000000000000000000000..90702e8d8df69a5d1763c22eef7c9991e13335c7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InkPresenterDesktop.idl @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +#pragma once +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "inspectable.idl"; +import "weakreference.idl"; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD)") //TODO_NTDDI_WIN10_TH2 + + // Implemented by the application + // When used with custom drying, InkPresenter calls back on this interface + // to request that the application commit its DComposition device when it + // can safely do so + [object, uuid(fabea3fc-b108-45b6-a9fc-8d08fa9f85cf)] + interface IInkCommitRequestHandler : IUnknown + { + HRESULT OnCommitRequested(); + } + + // Used to integrate an InkPresenter instance into the application's + // DComposition visual tree + [object, uuid(73f3c0d9-2e8b-48f3-895e-20cbd27b723b)] + interface IInkPresenterDesktop : IUnknown + { + // Used to define the area to be ink-enabled + HRESULT SetRootVisual( + // IDCompositionVisual to be ink-enabled + [in] IUnknown *rootVisual, + // IDCompositionDevice3, required only for custom drying + [in, unique] IUnknown *device); + + // Used in Custom Dry mode to aid in synchronizing ink transition from + // InkPresenter's ink layer to the application's dry ink layer + HRESULT SetCommitRequestHandler([in] IInkCommitRequestHandler *handler); + + // Get / set the size of the ink-enabled area + HRESULT GetSize([out] float *width, [out] float *height); + HRESULT SetSize([in] float width, [in] float height); + + // Informs InkPresenter of a high contrast mode change, triggering + // ink to be re-rendered to respect the current mode + HRESULT OnHighContrastChanged(); + } + + // Implemented by the application + // Provided to a call to IInkDesktopHost::QueueWorkItem to be invoked + // on the ink host thread + [object, uuid(ccda0a9a-1b78-4632-bb96-97800662e26c)] + interface IInkHostWorkItem : IUnknown + { + HRESULT Invoke(); + } + + // Used to host InkPresenter from a desktop application + [object, uuid(4ce7d875-a981-4140-a1ff-ad93258e8d59)] + interface IInkDesktopHost : IUnknown + { + // Queues up a work item to be invoked on the ink host thread + // Caller is responsible for synchronizing work item with main thread if desired + HRESULT QueueWorkItem([in] IInkHostWorkItem *workItem); + + // Creates an instance of InkPresenter + HRESULT CreateInkPresenter([in] REFIID riid, + [out, iid_is(riid)] void **ppv); + + // Creates an instance of InkPresenter and defines the ink-enabled area + // through a DComposition visual and a size + // This is equivalent to the following sequence of calls: + // 1. CreateInkPresenter + // 2. IInkPresenterDesktop->SetRootVisual + // 3. IInkPresenterDesktop->SetSize + HRESULT CreateAndInitializeInkPresenter( + // IDCompositionVisual to be ink-enabled + [in] IUnknown *rootVisual, + // Size of ink-enabled area + [in] float width, [in] float height, + [in] REFIID riid, + [out, iid_is(riid)] void **ppv); + } + + [uuid(2aef0967-c833-4f38-91f3-16e67d55d717)] + library InkDesktopHostLib + { + [uuid(062584a6-f830-4bdc-a4d2-0a10ab062b1d)] + coclass InkDesktopHost + { + [default] interface IInkDesktopHost; + } + }; + +cpp_quote("#endif // NTDDI_VERSION >= NTDDI_WINTHRESHOLD") //TODO_NTDDI_WIN10_TH2 + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InkPresenterDesktop_i.c b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InkPresenterDesktop_i.c new file mode 100644 index 0000000000000000000000000000000000000000..86b4f7424db507f321c07a27d406d2a7aa2113ff --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InkPresenterDesktop_i.c @@ -0,0 +1,83 @@ + + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + +/* link this file in with the server and any clients */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +#ifdef __cplusplus +extern "C"{ +#endif + + +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef struct _IID +{ + unsigned long x; + unsigned short s1; + unsigned short s2; + unsigned char c[8]; +} IID; + +#endif // __IID_DEFINED__ + +#ifndef CLSID_DEFINED +#define CLSID_DEFINED +typedef IID CLSID; +#endif // CLSID_DEFINED + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} + +#endif // !_MIDL_USE_GUIDDEF_ + +MIDL_DEFINE_GUID(IID, IID_IInkCommitRequestHandler,0xfabea3fc,0xb108,0x45b6,0xa9,0xfc,0x8d,0x08,0xfa,0x9f,0x85,0xcf); + + +MIDL_DEFINE_GUID(IID, IID_IInkPresenterDesktop,0x73f3c0d9,0x2e8b,0x48f3,0x89,0x5e,0x20,0xcb,0xd2,0x7b,0x72,0x3b); + + +MIDL_DEFINE_GUID(IID, IID_IInkHostWorkItem,0xccda0a9a,0x1b78,0x4632,0xbb,0x96,0x97,0x80,0x06,0x62,0xe2,0x6c); + + +MIDL_DEFINE_GUID(IID, IID_IInkDesktopHost,0x4ce7d875,0xa981,0x4140,0xa1,0xff,0xad,0x93,0x25,0x8e,0x8d,0x59); + + +MIDL_DEFINE_GUID(IID, LIBID_InkDesktopHostLib,0x2aef0967,0xc833,0x4f38,0x91,0xf3,0x16,0xe6,0x7d,0x55,0xd7,0x17); + + +MIDL_DEFINE_GUID(CLSID, CLSID_InkDesktopHost,0x062584a6,0xf830,0x4bdc,0xa4,0xd2,0x0a,0x10,0xab,0x06,0x2b,0x1d); + +#undef MIDL_DEFINE_GUID + +#ifdef __cplusplus +} +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputEventFlags.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputEventFlags.h new file mode 100644 index 0000000000000000000000000000000000000000..a387d792d8f9c597fbce6553ba661502c6ab4f0f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputEventFlags.h @@ -0,0 +1,49 @@ +#pragma once +// +// InputEventFlags are intended to be generic Input Flags to indicate actions for +// Touch, Mouse or Keyboard events. +// + +enum InputEventFlag +{ + InputEventFlag_None = 0x0000, + + InputEventFlag_Down = 0x0001, + InputEventFlag_Move = 0x0002, + InputEventFlag_Hold = 0x0002, + InputEventFlag_Up = 0x0004, + + InputEventFlag_InRange = 0x0008, + InputEventFlag_FromISM = 0x0008, + + InputEventFlag_DownAndUp = (InputEventFlag_Down|InputEventFlag_Up), // 0x0005 + + InputEventFlag_FromHWKeyboard = 0x0010, + InputEventFlag_FromSyntheticHW = 0x0020, + InputEventFlag_SkipHotKey = 0x0040, + InputEventFlag_FromOverrider = 0x0080, + + InputEventFlag_SuppressAcceleratorKey = 0x0100, + + InputEventFlag_CharacterFromSoftwareKeyboard = 0x0200, + + InputEventFlag_ScreenReaderEnabled = 0x0400, + + InputEventFlag_AcknowledgementRequired = 0x0800, + + InputEventFlag_Empty = 0x1000, + InputEventFlag_Invalid = 0x2000, + + InputEventFlag_TestInjection = 0x4000, + InputEventFlag_TestSync = 0x8000, +}; + +enum InputEventFlag2 +{ + InputEventFlag2_None = 0x00000000, + InputEventFlag2_InputServiceInjection = 0x00000001, + + InputEventFlag2_RawCustomText = 0x00000002, + InputEventFlag2_TelemetrySamplePicked = 0x00000004, + InputEventFlag2_TelemetryVirtualKey = 0x00000008, +}; diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputPanelConfiguration.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputPanelConfiguration.idl new file mode 100644 index 0000000000000000000000000000000000000000..9381d483427e67a7c8d621e0df07608d1a099741 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputPanelConfiguration.idl @@ -0,0 +1,63 @@ +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)") + +import "oaidl.idl"; +import "ocidl.idl"; + +// Desktop Clients that are interested in leveraging the modern invocation +// and dismissal semantics of the Touch Keyboard and Handwriting Input Panel +// can opt in to the Modern Focus tracking mechanism by implementing the +// following interface. +[ + uuid(41C81592-514C-48BD-A22E-E6AF638521A6), + pointer_default(unique), + helpstring("IInputPanelConfiguration") +] +interface IInputPanelConfiguration : IUnknown +{ + // This method allows a client process to opt-in to the Modern + // Focus tracking mechanism controlling the invocation/dismissal + // semantics of the touch keyboard. + [helpstring("method EnableFocusTracking")] HRESULT EnableFocusTracking(); +}; + +[ + uuid(A213F136-3B45-4362-A332-EFB6547CD432), + pointer_default(unique), + helpstring("IInputPanelInvocationConfiguration") +] +interface IInputPanelInvocationConfiguration : IUnknown +{ + // Modern clients can request that the Touch Keyboard and Handwriting Input Panel + // check to see that a user tapped in the edit control with focus before invoking. + [helpstring("method RequireTouchInEditControl")] HRESULT RequireTouchInEditControl(); +}; + +[ + uuid(82E4F0B2-5440-42E4-8ED9-A915D1216C79), + version(1.0), + helpstring("Microsoft InputPanelConfiguration TypeLibrary, version 1") +] +library InputPanelConfigurationLib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + [ + uuid(2853ADD3-F096-4C63-A78F-7FA3EA837FB7), + helpstring("Input Panel Configuration Class") + ] + coclass InputPanelConfiguration + { + [default] interface IInputPanelConfiguration; + interface IInputPanelInvocationConfiguration; + }; +}; + +cpp_quote("#endif // NTDDI_VERSION >= NTDDI_WIN8") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputScope.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputScope.h new file mode 100644 index 0000000000000000000000000000000000000000..f486e44eb71e1bb3bc88c2520c182d8bdbdbcc6a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputScope.h @@ -0,0 +1,499 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __inputscope_h__ +#define __inputscope_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ITfInputScope_FWD_DEFINED__ +#define __ITfInputScope_FWD_DEFINED__ +typedef interface ITfInputScope ITfInputScope; + +#endif /* __ITfInputScope_FWD_DEFINED__ */ + + +#ifndef __ITfInputScope2_FWD_DEFINED__ +#define __ITfInputScope2_FWD_DEFINED__ +typedef interface ITfInputScope2 ITfInputScope2; + +#endif /* __ITfInputScope2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_inputscope_0000_0000 */ +/* [local] */ + +#include +//=--------------------------------------------------------------------------= +// InputScope.h + + +// InputScope declarations. + +//=--------------------------------------------------------------------------= +// (C) Copyright 1995-2003 Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR TFPLIED, INCLUDING BUT NOT LIMITED TO +// THE TFPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#ifndef INPUTSCOPE_DEFINED +#define INPUTSCOPE_DEFINED + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +typedef /* [public][public] */ +enum __MIDL___MIDL_itf_inputscope_0000_0000_0001 + { + IS_DEFAULT = 0, + IS_URL = 1, + IS_FILE_FULLFILEPATH = 2, + IS_FILE_FILENAME = 3, + IS_EMAIL_USERNAME = 4, + IS_EMAIL_SMTPEMAILADDRESS = 5, + IS_LOGINNAME = 6, + IS_PERSONALNAME_FULLNAME = 7, + IS_PERSONALNAME_PREFIX = 8, + IS_PERSONALNAME_GIVENNAME = 9, + IS_PERSONALNAME_MIDDLENAME = 10, + IS_PERSONALNAME_SURNAME = 11, + IS_PERSONALNAME_SUFFIX = 12, + IS_ADDRESS_FULLPOSTALADDRESS = 13, + IS_ADDRESS_POSTALCODE = 14, + IS_ADDRESS_STREET = 15, + IS_ADDRESS_STATEORPROVINCE = 16, + IS_ADDRESS_CITY = 17, + IS_ADDRESS_COUNTRYNAME = 18, + IS_ADDRESS_COUNTRYSHORTNAME = 19, + IS_CURRENCY_AMOUNTANDSYMBOL = 20, + IS_CURRENCY_AMOUNT = 21, + IS_DATE_FULLDATE = 22, + IS_DATE_MONTH = 23, + IS_DATE_DAY = 24, + IS_DATE_YEAR = 25, + IS_DATE_MONTHNAME = 26, + IS_DATE_DAYNAME = 27, + IS_DIGITS = 28, + IS_NUMBER = 29, + IS_ONECHAR = 30, + IS_PASSWORD = 31, + IS_TELEPHONE_FULLTELEPHONENUMBER = 32, + IS_TELEPHONE_COUNTRYCODE = 33, + IS_TELEPHONE_AREACODE = 34, + IS_TELEPHONE_LOCALNUMBER = 35, + IS_TIME_FULLTIME = 36, + IS_TIME_HOUR = 37, + IS_TIME_MINORSEC = 38, + IS_NUMBER_FULLWIDTH = 39, + IS_ALPHANUMERIC_HALFWIDTH = 40, + IS_ALPHANUMERIC_FULLWIDTH = 41, + IS_CURRENCY_CHINESE = 42, + IS_BOPOMOFO = 43, + IS_HIRAGANA = 44, + IS_KATAKANA_HALFWIDTH = 45, + IS_KATAKANA_FULLWIDTH = 46, + IS_HANJA = 47, + IS_HANGUL_HALFWIDTH = 48, + IS_HANGUL_FULLWIDTH = 49, + IS_SEARCH = 50, + IS_FORMULA = 51, + IS_SEARCH_INCREMENTAL = 52, + IS_CHINESE_HALFWIDTH = 53, + IS_CHINESE_FULLWIDTH = 54, + IS_NATIVE_SCRIPT = 55, + IS_YOMI = 56, + IS_TEXT = 57, + IS_CHAT = 58, + IS_NAME_OR_PHONENUMBER = 59, + IS_EMAILNAME_OR_ADDRESS = 60, + IS_PRIVATE = 61, + IS_MAPS = 62, + IS_NUMERIC_PASSWORD = 63, + IS_NUMERIC_PIN = 64, + IS_ALPHANUMERIC_PIN = 65, + IS_ALPHANUMERIC_PIN_SET = 66, + IS_FORMULA_NUMBER = 67, + IS_CHAT_WITHOUT_EMOJI = 68, + IS_PHRASELIST = -1, + IS_REGULAREXPRESSION = -2, + IS_SRGS = -3, + IS_XML = -4, + IS_ENUMSTRING = -5 + } InputScope; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma endregion +#pragma region Desktop Family +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +HRESULT WINAPI SetInputScope(HWND hwnd, InputScope inputscope); +HRESULT WINAPI SetInputScopes(HWND hwnd, const InputScope *pInputScopes, UINT cInputScopes, _In_reads_(cPhrases) PWSTR *ppszPhraseList, UINT cPhrases, _In_opt_ PWSTR pszRegExp, _In_opt_ PWSTR pszSRGS); +HRESULT WINAPI SetInputScopeXML(HWND hwnd, _In_opt_ PWSTR pszXML); +HRESULT WINAPI SetInputScopes2(HWND hwnd, const InputScope *pInputScopes, UINT cInputScopes, IEnumString *pEnumString, _In_opt_ PWSTR pszRegExp, _In_opt_ PWSTR pszSRGS); +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma endregion +#pragma region Application Family +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +DEFINE_GUID(IID_ITfInputScope, 0xfde1eaee, 0x6924, 0x4cdf, 0x91, 0xe7, 0xda, 0x38, 0xcf, 0xf5, 0x55, 0x9d); +DEFINE_GUID(IID_ITfInputScope2, 0x5731eaa0, 0x6bc2, 0x4681, 0xa5, 0x32, 0x92, 0xfb, 0xb7, 0x4d, 0x7c, 0x41); +DEFINE_GUID(GUID_PROP_INPUTSCOPE, 0x1713dd5a, 0x68e7, 0x4a5b, 0x9a, 0xf6, 0x59, 0x2a, 0x59, 0x5c, 0x77, 0x8d); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +extern RPC_IF_HANDLE __MIDL_itf_inputscope_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inputscope_0000_0000_v0_0_s_ifspec; + +#ifndef __ITfInputScope_INTERFACE_DEFINED__ +#define __ITfInputScope_INTERFACE_DEFINED__ + +/* interface ITfInputScope */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfInputScope; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fde1eaee-6924-4cdf-91e7-da38cff5559d") + ITfInputScope : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetInputScopes( + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcCount) InputScope **pprgInputScopes, + /* [out] */ __RPC__out UINT *pcCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPhrase( + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcCount) BSTR **ppbstrPhrases, + /* [out] */ __RPC__out UINT *pcCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRegularExpression( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrRegExp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSRGS( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSRGS) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetXML( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrXML) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfInputScopeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfInputScope * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfInputScope * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfInputScope * This); + + DECLSPEC_XFGVIRT(ITfInputScope, GetInputScopes) + HRESULT ( STDMETHODCALLTYPE *GetInputScopes )( + __RPC__in ITfInputScope * This, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcCount) InputScope **pprgInputScopes, + /* [out] */ __RPC__out UINT *pcCount); + + DECLSPEC_XFGVIRT(ITfInputScope, GetPhrase) + HRESULT ( STDMETHODCALLTYPE *GetPhrase )( + __RPC__in ITfInputScope * This, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcCount) BSTR **ppbstrPhrases, + /* [out] */ __RPC__out UINT *pcCount); + + DECLSPEC_XFGVIRT(ITfInputScope, GetRegularExpression) + HRESULT ( STDMETHODCALLTYPE *GetRegularExpression )( + __RPC__in ITfInputScope * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrRegExp); + + DECLSPEC_XFGVIRT(ITfInputScope, GetSRGS) + HRESULT ( STDMETHODCALLTYPE *GetSRGS )( + __RPC__in ITfInputScope * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSRGS); + + DECLSPEC_XFGVIRT(ITfInputScope, GetXML) + HRESULT ( STDMETHODCALLTYPE *GetXML )( + __RPC__in ITfInputScope * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrXML); + + END_INTERFACE + } ITfInputScopeVtbl; + + interface ITfInputScope + { + CONST_VTBL struct ITfInputScopeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfInputScope_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfInputScope_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfInputScope_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfInputScope_GetInputScopes(This,pprgInputScopes,pcCount) \ + ( (This)->lpVtbl -> GetInputScopes(This,pprgInputScopes,pcCount) ) + +#define ITfInputScope_GetPhrase(This,ppbstrPhrases,pcCount) \ + ( (This)->lpVtbl -> GetPhrase(This,ppbstrPhrases,pcCount) ) + +#define ITfInputScope_GetRegularExpression(This,pbstrRegExp) \ + ( (This)->lpVtbl -> GetRegularExpression(This,pbstrRegExp) ) + +#define ITfInputScope_GetSRGS(This,pbstrSRGS) \ + ( (This)->lpVtbl -> GetSRGS(This,pbstrSRGS) ) + +#define ITfInputScope_GetXML(This,pbstrXML) \ + ( (This)->lpVtbl -> GetXML(This,pbstrXML) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfInputScope_INTERFACE_DEFINED__ */ + + +#ifndef __ITfInputScope2_INTERFACE_DEFINED__ +#define __ITfInputScope2_INTERFACE_DEFINED__ + +/* interface ITfInputScope2 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfInputScope2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5731eaa0-6bc2-4681-a532-92fbb74d7c41") + ITfInputScope2 : public ITfInputScope + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumWordList( + /* [out] */ __RPC__deref_out_opt IEnumString **ppEnumString) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfInputScope2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfInputScope2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfInputScope2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfInputScope2 * This); + + DECLSPEC_XFGVIRT(ITfInputScope, GetInputScopes) + HRESULT ( STDMETHODCALLTYPE *GetInputScopes )( + __RPC__in ITfInputScope2 * This, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcCount) InputScope **pprgInputScopes, + /* [out] */ __RPC__out UINT *pcCount); + + DECLSPEC_XFGVIRT(ITfInputScope, GetPhrase) + HRESULT ( STDMETHODCALLTYPE *GetPhrase )( + __RPC__in ITfInputScope2 * This, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcCount) BSTR **ppbstrPhrases, + /* [out] */ __RPC__out UINT *pcCount); + + DECLSPEC_XFGVIRT(ITfInputScope, GetRegularExpression) + HRESULT ( STDMETHODCALLTYPE *GetRegularExpression )( + __RPC__in ITfInputScope2 * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrRegExp); + + DECLSPEC_XFGVIRT(ITfInputScope, GetSRGS) + HRESULT ( STDMETHODCALLTYPE *GetSRGS )( + __RPC__in ITfInputScope2 * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSRGS); + + DECLSPEC_XFGVIRT(ITfInputScope, GetXML) + HRESULT ( STDMETHODCALLTYPE *GetXML )( + __RPC__in ITfInputScope2 * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrXML); + + DECLSPEC_XFGVIRT(ITfInputScope2, EnumWordList) + HRESULT ( STDMETHODCALLTYPE *EnumWordList )( + __RPC__in ITfInputScope2 * This, + /* [out] */ __RPC__deref_out_opt IEnumString **ppEnumString); + + END_INTERFACE + } ITfInputScope2Vtbl; + + interface ITfInputScope2 + { + CONST_VTBL struct ITfInputScope2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfInputScope2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfInputScope2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfInputScope2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfInputScope2_GetInputScopes(This,pprgInputScopes,pcCount) \ + ( (This)->lpVtbl -> GetInputScopes(This,pprgInputScopes,pcCount) ) + +#define ITfInputScope2_GetPhrase(This,ppbstrPhrases,pcCount) \ + ( (This)->lpVtbl -> GetPhrase(This,ppbstrPhrases,pcCount) ) + +#define ITfInputScope2_GetRegularExpression(This,pbstrRegExp) \ + ( (This)->lpVtbl -> GetRegularExpression(This,pbstrRegExp) ) + +#define ITfInputScope2_GetSRGS(This,pbstrSRGS) \ + ( (This)->lpVtbl -> GetSRGS(This,pbstrSRGS) ) + +#define ITfInputScope2_GetXML(This,pbstrXML) \ + ( (This)->lpVtbl -> GetXML(This,pbstrXML) ) + + +#define ITfInputScope2_EnumWordList(This,ppEnumString) \ + ( (This)->lpVtbl -> EnumWordList(This,ppEnumString) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfInputScope2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_inputscope_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#endif // INPUTSCOPE_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_inputscope_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inputscope_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputScope.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputScope.idl new file mode 100644 index 0000000000000000000000000000000000000000..7d0afb6cac730cb6410c4ec4803467d5ed9b53ff --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InputScope.idl @@ -0,0 +1,201 @@ +cpp_quote("#include ") + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992-2000. +// +// File: InputScope.idl +// +// Contents: InputScope declarations. +// +// +//-------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// InputScope.h") +cpp_quote("") +cpp_quote("") +cpp_quote("// InputScope declarations.") +cpp_quote("") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 1995-2003 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR TFPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE TFPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") + +cpp_quote("#ifndef INPUTSCOPE_DEFINED") +cpp_quote("#define INPUTSCOPE_DEFINED") +cpp_quote("") +cpp_quote("#include ") +cpp_quote("") +cpp_quote("#ifdef __cplusplus") +cpp_quote("extern \"C\" {") +cpp_quote("#endif /* __cplusplus */") +cpp_quote("") + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +typedef enum +{ + // common input scopes + IS_DEFAULT = 0, + IS_URL = 1, + IS_FILE_FULLFILEPATH = 2, + IS_FILE_FILENAME = 3, + IS_EMAIL_USERNAME = 4, + IS_EMAIL_SMTPEMAILADDRESS = 5, + IS_LOGINNAME = 6, + IS_PERSONALNAME_FULLNAME = 7, + IS_PERSONALNAME_PREFIX = 8, + IS_PERSONALNAME_GIVENNAME = 9, + IS_PERSONALNAME_MIDDLENAME = 10, + IS_PERSONALNAME_SURNAME = 11, + IS_PERSONALNAME_SUFFIX = 12, + IS_ADDRESS_FULLPOSTALADDRESS = 13, + IS_ADDRESS_POSTALCODE = 14, + IS_ADDRESS_STREET = 15, + IS_ADDRESS_STATEORPROVINCE = 16, + IS_ADDRESS_CITY = 17, + IS_ADDRESS_COUNTRYNAME = 18, + IS_ADDRESS_COUNTRYSHORTNAME = 19, + IS_CURRENCY_AMOUNTANDSYMBOL = 20, + IS_CURRENCY_AMOUNT = 21, + IS_DATE_FULLDATE = 22, + IS_DATE_MONTH = 23, + IS_DATE_DAY = 24, + IS_DATE_YEAR = 25, + IS_DATE_MONTHNAME = 26, + IS_DATE_DAYNAME = 27, + IS_DIGITS = 28, + IS_NUMBER = 29, + IS_ONECHAR = 30, + IS_PASSWORD = 31, + IS_TELEPHONE_FULLTELEPHONENUMBER = 32, + IS_TELEPHONE_COUNTRYCODE = 33, + IS_TELEPHONE_AREACODE = 34, + IS_TELEPHONE_LOCALNUMBER = 35, + IS_TIME_FULLTIME = 36, + IS_TIME_HOUR = 37, + IS_TIME_MINORSEC = 38, + IS_NUMBER_FULLWIDTH = 39, + IS_ALPHANUMERIC_HALFWIDTH = 40, + IS_ALPHANUMERIC_FULLWIDTH = 41, + IS_CURRENCY_CHINESE = 42, + IS_BOPOMOFO = 43, + IS_HIRAGANA = 44, + IS_KATAKANA_HALFWIDTH = 45, + IS_KATAKANA_FULLWIDTH = 46, + IS_HANJA = 47, + IS_HANGUL_HALFWIDTH = 48, + IS_HANGUL_FULLWIDTH = 49, + IS_SEARCH = 50, + IS_FORMULA = 51, + IS_SEARCH_INCREMENTAL = 52, + IS_CHINESE_HALFWIDTH = 53, + IS_CHINESE_FULLWIDTH = 54, + IS_NATIVE_SCRIPT = 55, + IS_YOMI = 56, + IS_TEXT = 57, + IS_CHAT = 58, + IS_NAME_OR_PHONENUMBER = 59, + IS_EMAILNAME_OR_ADDRESS = 60, + IS_PRIVATE = 61, + IS_MAPS = 62, + IS_NUMERIC_PASSWORD = 63, + IS_NUMERIC_PIN = 64, + IS_ALPHANUMERIC_PIN = 65, + IS_ALPHANUMERIC_PIN_SET = 66, + IS_FORMULA_NUMBER = 67, + IS_CHAT_WITHOUT_EMOJI = 68, + + // special input scopes for ITfInputScope + IS_PHRASELIST = -1, + IS_REGULAREXPRESSION = -2, + IS_SRGS = -3, + IS_XML = -4, + IS_ENUMSTRING = -5, +} InputScope; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +cpp_quote("#pragma endregion") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#pragma region Desktop Family") +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// +// MSCTF entry +// +cpp_quote("HRESULT WINAPI SetInputScope(HWND hwnd, InputScope inputscope);") +cpp_quote("HRESULT WINAPI SetInputScopes(HWND hwnd, const InputScope *pInputScopes, UINT cInputScopes, _In_reads_(cPhrases) PWSTR *ppszPhraseList, UINT cPhrases, _In_opt_ PWSTR pszRegExp, _In_opt_ PWSTR pszSRGS);") +cpp_quote("HRESULT WINAPI SetInputScopeXML(HWND hwnd, _In_opt_ PWSTR pszXML);") +cpp_quote("HRESULT WINAPI SetInputScopes2(HWND hwnd, const InputScope *pInputScopes, UINT cInputScopes, IEnumString *pEnumString, _In_opt_ PWSTR pszRegExp, _In_opt_ PWSTR pszSRGS);") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +cpp_quote("#pragma endregion") +#pragma endregion + +#pragma region Application Family +cpp_quote("#pragma region Application Family") +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +cpp_quote("DEFINE_GUID(IID_ITfInputScope, 0xfde1eaee, 0x6924, 0x4cdf, 0x91, 0xe7, 0xda, 0x38, 0xcf, 0xf5, 0x55, 0x9d);") +cpp_quote("DEFINE_GUID(IID_ITfInputScope2, 0x5731eaa0, 0x6bc2, 0x4681, 0xa5, 0x32, 0x92, 0xfb, 0xb7, 0x4d, 0x7c, 0x41);") +cpp_quote("DEFINE_GUID(GUID_PROP_INPUTSCOPE, 0x1713dd5a, 0x68e7, 0x4a5b, 0x9a, 0xf6, 0x59, 0x2a, 0x59, 0x5c, 0x77, 0x8d);") + +cpp_quote("#ifdef __cplusplus") +cpp_quote("}") +cpp_quote("#endif /* __cplusplus */") + + +import "oaidl.idl"; +import "ocidl.idl"; + + +// +// ITfInputScope +// +[ + object, + uuid(fde1eaee-6924-4cdf-91e7-da38cff5559d), + pointer_default(unique) +] +interface ITfInputScope : IUnknown +{ + HRESULT GetInputScopes([out, size_is(, *pcCount)] InputScope **pprgInputScopes, + [out] UINT *pcCount); + + HRESULT GetPhrase([out, size_is(, *pcCount)] BSTR **ppbstrPhrases, + [out] UINT *pcCount); + + HRESULT GetRegularExpression([out] BSTR *pbstrRegExp); + + HRESULT GetSRGS([out] BSTR *pbstrSRGS); + + HRESULT GetXML([out] BSTR *pbstrXML); +}; + +// +// ITfInputScope2 +// +[ + object, + uuid(5731eaa0-6bc2-4681-a532-92fbb74d7c41), + pointer_default(unique) +] +interface ITfInputScope2 : ITfInputScope +{ + HRESULT EnumWordList([out] IEnumString **ppEnumString); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +cpp_quote("#endif // INPUTSCOPE_DEFINED") \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Instance.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Instance.h new file mode 100644 index 0000000000000000000000000000000000000000..c0eb4d1aa58cdcc345fe9d5b2cd621b53df4dc5c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Instance.h @@ -0,0 +1,111 @@ +//*************************************************************************** +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Instance.h +// +// Purpose: Definition of CInstance class +// +//*************************************************************************** + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifndef _INSTANCE_H_ +#define _INSTANCE_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define WBEMINT64 CHString +#define WBEMINT16 short + +/////////////////////////////////////////// +// +// CLASS CInstance +// +// base instance class +// encapsulation of IWbemClassObject +/////////////////////////////////////////// +class + __declspec(uuid("3402945E-D19A-11d2-B35E-00104BC97924")) + POLARITY CInstance +{ +public: + CInstance(_In_ IWbemClassObject *piClassObject, _In_ MethodContext *pMethodContext); + virtual ~CInstance(); + + // AddRef/Release + LONG AddRef( void ); + LONG Release( void ); + + // Get and Set for various data types + bool SetNull(LPCWSTR name ); + bool SetStringArray(LPCWSTR name, const SAFEARRAY &strArray); + bool SetWORD(LPCWSTR name, WORD w); + bool SetDWORD(LPCWSTR name, DWORD d); + bool Setbool(LPCWSTR name, bool b); + bool SetVariant(LPCWSTR name, const VARIANT& variant ); +#ifdef FRAMEWORK_ALLOW_DEPRECATED + bool SetCharSplat(LPCWSTR name, DWORD dwResID); +#endif + bool SetCharSplat(LPCWSTR name, LPCWSTR pStr); + bool SetCharSplat( LPCWSTR name, LPCSTR pStr); + bool SetWCHARSplat(LPCWSTR name, LPCWSTR pStr); + bool SetDateTime(LPCWSTR name, const WBEMTime& wbemtime ); + bool SetTimeSpan(LPCWSTR name, const WBEMTimeSpan& wbemtimespan ); + bool SetWBEMINT64(LPCWSTR name, const WBEMINT64& wbemint64 ); + bool SetWBEMINT64(LPCWSTR name, const LONGLONG i64Value ); + bool SetWBEMINT64( LPCWSTR name, const ULONGLONG i64Value ); + bool SetWBEMINT16(LPCWSTR name, const WBEMINT16& wbemint16 ); + bool SetByte(LPCWSTR name, BYTE b ); + bool SetEmbeddedObject (LPCWSTR name, _Inout_ CInstance& cInstance ) ; + bool SetDOUBLE(LPCWSTR name, DOUBLE dub ); + bool SetCHString(LPCWSTR name, LPCWSTR str); + bool SetCHString(LPCWSTR name, const CHString& str); + bool SetCHString(LPCWSTR name, LPCSTR str); + + bool GetStringArray(LPCWSTR name, SAFEARRAY *& strArray) const; + bool GetCHString(LPCWSTR name, CHString& str) const; + bool GetWCHAR(LPCWSTR name, _Outptr_ LPWSTR *pW) const; + bool GetWORD(LPCWSTR name, WORD& w) const; + bool GetDWORD(LPCWSTR name, DWORD& d) const; + bool Getbool(LPCWSTR name, bool& b) const; + bool GetVariant(LPCWSTR name, VARIANT& variant ) const; + bool GetDateTime(LPCWSTR name, WBEMTime& wbemtime ) const; + bool GetTimeSpan(LPCWSTR name, WBEMTimeSpan& wbemtimespan ) const; + bool GetWBEMINT64(LPCWSTR name, WBEMINT64& wbemint64 ) const; + bool GetWBEMINT64(LPCWSTR name, LONGLONG& i64Value ) const; + bool GetWBEMINT64( LPCWSTR name, ULONGLONG& i64Value) const; + bool GetWBEMINT16(LPCWSTR name, WBEMINT16& wbemint16 ) const; + bool GetByte(LPCWSTR name, BYTE& b ) const; + bool GetEmbeddedObject(LPCWSTR name, CInstance** pInstance, MethodContext *pMethodContext) const; + bool GetDOUBLE(LPCWSTR name, DOUBLE& dub) const; + bool IsNull(LPCWSTR name) const; + bool GetStatus(LPCWSTR name, bool &a_Exists , VARTYPE &a_VarType ) const ; + + HRESULT Commit(void); + IWbemClassObject *GetClassObjectInterface(); + MethodContext *GetMethodContext() const; + +protected: + // All items in this section intended for Microsoft internal use only + // use by third parties is unsupported and unrecommended + void LogError(LPCWSTR errorStr, LPCWSTR pFunctionName, LPCWSTR pArgs = NULL, HRESULT hError = -1) const; + + IWbemClassObject *m_piClassObject; + MethodContext* m_pMethodContext; + LONG m_nRefCount; + + friend class CWbemProviderGlue; +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IntShCut.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IntShCut.h new file mode 100644 index 0000000000000000000000000000000000000000..dc03a104f48081a6833d43dba3888276f25206bc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IntShCut.h @@ -0,0 +1,504 @@ + +/* + * intshcut.h - Internet Shortcut interface definitions. + * + * Copyright (c) Microsoft Corporation. All rights reserved. + */ + + +#ifndef __INTSHCUT_H__ +#define __INTSHCUT_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/* Headers + **********/ + +#include + + +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++. */ +#endif /* __cplusplus */ + + +/* Constants + ************/ + +/* Define API decoration for direct import of DLL functions. */ + +#ifdef _INTSHCUT_ +#define INTSHCUTAPI +#else +#define INTSHCUTAPI DECLSPEC_IMPORT +#endif + +/* HRESULTs */ + +// +// MessageId: E_FLAGS +// +// MessageText: +// +// The flag combination is invalid. +// +#define E_FLAGS MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1000) + +// +// MessageId: IS_E_EXEC_FAILED +// +// MessageText: +// +// The URL's protocol handler failed to run. +// +#define IS_E_EXEC_FAILED MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x2002) + +// +// MessageId: URL_E_INVALID_SYNTAX +// +// MessageText: +// +// The URL's syntax is invalid. +// +#define URL_E_INVALID_SYNTAX MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1001) + +// +// MessageId: URL_E_UNREGISTERED_PROTOCOL +// +// MessageText: +// +// The URL's protocol does not have a registered protocol handler. +// +#define URL_E_UNREGISTERED_PROTOCOL MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1002) + + +/* Interfaces + *************/ + +// +// Input flags for IUniformResourceLocator::SetURL(). +// +typedef enum iurl_seturl_flags +{ + IURL_SETURL_FL_GUESS_PROTOCOL = 0x0001, // Guess protocol if missing + IURL_SETURL_FL_USE_DEFAULT_PROTOCOL = 0x0002, // Use default protocol if missing +} +IURL_SETURL_FLAGS; + + +// +// Input flags for IUniformResourceLocator()::InvokeCommand(). +// +typedef enum iurl_invokecommand_flags +{ + IURL_INVOKECOMMAND_FL_ALLOW_UI = 0x0001, + IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB = 0x0002, // Ignore pcszVerb + IURL_INVOKECOMMAND_FL_DDEWAIT = 0x0004, // pass DDEWAIT to ShellExec + IURL_INVOKECOMMAND_FL_ASYNCOK = 0x0008, // pass SEE_MASK_ASYNCOK to ShellExec + IURL_INVOKECOMMAND_FL_LOG_USAGE = 0x0010, // Record launch with UA system +} +IURL_INVOKECOMMAND_FLAGS; + + +// +// Command info for IUniformResourceLocator::InvokeCommand(). +// + +typedef struct urlinvokecommandinfoA +{ + DWORD dwcbSize; // Size of structure + DWORD dwFlags; // Bit field of IURL_INVOKECOMMAND_FLAGS + HWND hwndParent; // Parent window. Valid only if IURL_INVOKECOMMAND_FL_ALLOW_UI is set. + LPCSTR pcszVerb; // Verb to invoke. Ignored if IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB is set. +} +URLINVOKECOMMANDINFOA; +typedef URLINVOKECOMMANDINFOA *PURLINVOKECOMMANDINFOA; +typedef const URLINVOKECOMMANDINFOA CURLINVOKECOMMANDINFOA; +typedef const URLINVOKECOMMANDINFOA *PCURLINVOKECOMMANDINFOA; + +typedef struct urlinvokecommandinfoW +{ + DWORD dwcbSize; // Size of structure + DWORD dwFlags; // Bit field of IURL_INVOKECOMMAND_FLAGS + HWND hwndParent; // Parent window. Valid only if IURL_INVOKECOMMAND_FL_ALLOW_UI is set. + LPCWSTR pcszVerb; // Verb to invoke. Ignored if IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB is set. +} +URLINVOKECOMMANDINFOW; +typedef URLINVOKECOMMANDINFOW *PURLINVOKECOMMANDINFOW; +typedef const URLINVOKECOMMANDINFOW CURLINVOKECOMMANDINFOW; +typedef const URLINVOKECOMMANDINFOW *PCURLINVOKECOMMANDINFOW; + +#ifdef UNICODE +#define URLINVOKECOMMANDINFO URLINVOKECOMMANDINFOW +#define PURLINVOKECOMMANDINFO PURLINVOKECOMMANDINFOW +#define CURLINVOKECOMMANDINFO CURLINVOKECOMMANDINFOW +#define PCURLINVOKECOMMANDINFO PCURLINVOKECOMMANDINFOW +#else +#define URLINVOKECOMMANDINFO URLINVOKECOMMANDINFOA +#define PURLINVOKECOMMANDINFO PURLINVOKECOMMANDINFOA +#define CURLINVOKECOMMANDINFO CURLINVOKECOMMANDINFOA +#define PCURLINVOKECOMMANDINFO PCURLINVOKECOMMANDINFOA +#endif + + +//=========================================================================== +// +// IUniformResourceLocator interface +// +// [OverView] +// +// Provides access to Internet Shortcuts. +// +// [Member functions] +// +// IUniformResourceLocator::SetURL +// +// This member function sets an object's URL. +// +// The dwInFlags parameter specifies the behavior: +// +// IURL_SETURL_FL_GUESS_PROTOCOL: The protocol scheme is guessed and added +// to the URL, if it is not specified in pcszURL. +// +// IURL_SETURL_FL_USE_DEFAULT_PROTOCOL: The default protocol scheme is added +// to the URL, if it is not specified in pcszURL. +// +// The function returns S_OK if the object's URL is set successfully. +// Otherwise, an error code is returned: +// +// E_OUTOFMEMORY: There is not enough memory to complete the operation. +// +// IS_E_EXEC_FAILED: The URL's protocol handler failed to run. +// +// URL_E_INVALID_SYNTAX: The URL's syntax is invalid. +// +// URL_E_UNREGISTERED_PROTOCOL: The URL's protocol does not have a +// registered protocol handler. +// +// +// IUniformResourceLocator::GetURL +// +// This member function retrieves an object's URL. The ppszURL is a +// pointer to a PSTR to be filled in which a pointer to the object's +// URL. When finished, this string should be freed using IMalloc::Free(). +// +// The function returns S_OK if the object's URL was retrieved +// successfully. If the object does not have a URL associated with it, +// then S_FALSE is returned and *ppszURL is set to NULL. Otherwise, an +// error code is returned: +// +// E_OUTOFMEMORY: There is not enough memory to complete the operation. +// +// IS_E_EXEC_FAILED: The URL's protocol handler failed to run. +// +// URL_E_INVALID_SYNTAX: The URL's syntax is invalid. +// +// URL_E_UNREGISTERED_PROTOCOL: The URL's protocol does not have a +// registered protocol handler. +// +// +// IUniformResourceLocator::InvokeCommand +// +// This member function invokes a command on an object's URL. The purlici +// parameter is a pointer to a URLINVOKECOMMANDINFO structure which +// describes the command to be invoked. +// +// The function returns S_OK if the object's URL was opened successfully. +// If the object does not have a URL associated with it, the function +// returns S_FALSE. Otherwise, an error code is returned: +// +// E_OUTOFMEMORY: There is not enough memory to complete the operation. +// +// IS_E_EXEC_FAILED: The URL's protocol handler failed to run. +// +// URL_E_INVALID_SYNTAX: The URL's syntax is invalid. +// +// URL_E_UNREGISTERED_PROTOCOL: The URL's protocol does not have a +// registered protocol handler. +// +//=========================================================================== + +#undef INTERFACE +#define INTERFACE IUniformResourceLocatorA + +DECLARE_INTERFACE_IID_(IUniformResourceLocatorA, IUnknown, "fbf23b80-e3f0-101b-8488-00aa003e56f8") +{ + /* IUnknown methods */ + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + /* IUniformResourceLocator methods */ + + STDMETHOD(SetURL)(THIS_ + LPCSTR pcszURL, + DWORD dwInFlags) PURE; + + STDMETHOD(GetURL)(THIS_ + _Outptr_ LPSTR *ppszURL) PURE; + + STDMETHOD(InvokeCommand)(THIS_ + PURLINVOKECOMMANDINFOA purlici) PURE; +}; + +#undef INTERFACE +#define INTERFACE IUniformResourceLocatorW + +DECLARE_INTERFACE_IID_(IUniformResourceLocatorW, IUnknown, "cabb0da0-da57-11cf-9974-0020afd79762") +{ + /* IUnknown methods */ + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + /* IUniformResourceLocator methods */ + + STDMETHOD(SetURL)(THIS_ + LPCWSTR pcszURL, + DWORD dwInFlags) PURE; + + STDMETHOD(GetURL)(THIS_ + _Outptr_ LPWSTR *ppszURL) PURE; + + STDMETHOD(InvokeCommand)(THIS_ + PURLINVOKECOMMANDINFOW purlici) PURE; +}; + +#ifdef UNICODE +#define IUniformResourceLocator IUniformResourceLocatorW +#define IUniformResourceLocatorVtbl IUniformResourceLocatorWVtbl +#else +#define IUniformResourceLocator IUniformResourceLocatorA +#define IUniformResourceLocatorVtbl IUniformResourceLocatorAVtbl +#endif + +typedef IUniformResourceLocator *PIUniformResourceLocator; +typedef const IUniformResourceLocator CIUniformResourceLocator; +typedef const IUniformResourceLocator *PCIUniformResourceLocator; + + +/* Prototypes + *************/ + +// +// Input flags for TranslateURL(). +// +typedef enum translateurl_in_flags +{ + TRANSLATEURL_FL_GUESS_PROTOCOL = 0x0001, // Guess protocol if missing + TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL = 0x0002, // Use default protocol if missing +} +TRANSLATEURL_IN_FLAGS; + + +// +// TranslateURL(). This function applies common translations to a URL +// string, creating a new URL string. +// +// This function does not perform any validation on the syntax of the input +// URL string. A successful return value does not indicate that the input +// or output URL strings are valid URLS. +// +// The function returns S_OK if the URL string is translated successfully +// and *ppszTranslatedURL points to the translated URL string. S_FALSE +// is returned if the URL string did not require translation. An error +// code is returned if an error occurs. +// +// Parameters: +// pcszURL -- A pointer to the URL string to be translated. +// dwInFlags -- A bit field of TRANSLATEURL_IN_FLAGS. +// ppszTranslatedURL -- A pointer to the newly created, translated URL +// string, if any. *ppszTranslatedURL is only valid if S_OK is returned. +// If valid, *ppszTranslatedURL should be freed by calling LocalFree(). +// *ppszTranslatedURL is NULL on error. +// + +INTSHCUTAPI HRESULT WINAPI TranslateURLA(PCSTR pcszURL, + DWORD dwInFlags, + _Out_ PSTR *ppszTranslatedURL); +INTSHCUTAPI HRESULT WINAPI TranslateURLW(PCWSTR pcszURL, + DWORD dwInFlags, + _Out_ PWSTR UNALIGNED *ppszTranslatedURL); +#ifdef UNICODE +#define TranslateURL TranslateURLW +#else +#define TranslateURL TranslateURLA +#endif /* UNICODE */ + + +// +// Input flags for URLAssociationDialog(). +// +typedef enum urlassociationdialog_in_flags +{ + URLASSOCDLG_FL_USE_DEFAULT_NAME = 0x0001, + URLASSOCDLG_FL_REGISTER_ASSOC = 0x0002 +} +URLASSOCIATIONDIALOG_IN_FLAGS; + + +// +// URLAssociationDialog(). This function invokes the unregistered URL +// protocol dialog box, providing a standard ui for choosing the handler for +// an unregistered URL protocol. +// +// The functions returns S_OK if the application is registered with the +// URL protocol. S_FALSE is returned if nothing is registered (a one-time +// execution via the selected application is requested). +// +// Parameters: +// hwndParent -- A handle to the window to be used as the parent +// dwInFlags -- A bit field of URLASSOCIATIONDIALOG_IN_FLAGS. The +// flags are: +// +// URLASSOCDLG_FL_USE_DEFAULT_NAME: Use the default Internet +// Shortcut file name. Ignore pcszFile. +// +// URLASSOCDLG_FL_REGISTER_ASSOC: The application +// selected is to be registered as the handler for URLs +// of pcszURL's protocol. An application is only +// registered if this flag is set, and the user indicates +// that a persistent association is to be made. +// +// pcszFile -- The name of the Internet Shortcut file whose URL's protocol +// requires a protocol handler. Before a verb, like "open", can +// be invoked on an Internet Shortcut, a protocol handler must be +// registered for its URL protocol. If +// URLASSOCDLG_FL_USE_DEFAULT_NAME is set in dwInFlags, pcszFile +// is ignored, and a default Internet Shortcut file name is used. +// pcszFile is only used for ui. +// pcszURL -- The URL whose unregistered protocol requires a handler. +// pszAppBuf -- A buffer to be filled in on success with the path +// of the application selected by the user. pszAppBuf's +// buffer is filled in with the empty string on failure. +// ucAppBufLen -- The length of pszAppBuf's buffer in characters. +// + +INTSHCUTAPI HRESULT WINAPI URLAssociationDialogA(HWND hwndParent, + DWORD dwInFlags, + PCSTR pcszFile, + PCSTR pcszURL, + _Out_writes_(ucAppBufLen) PSTR pszAppBuf, + UINT ucAppBufLen); +INTSHCUTAPI HRESULT WINAPI URLAssociationDialogW(HWND hwndParent, + DWORD dwInFlags, + PCWSTR pcszFile, + PCWSTR pcszURL, + _Out_writes_(ucAppBufLen) PWSTR pszAppBuf, + UINT ucAppBufLen); +#ifdef UNICODE +#define URLAssociationDialog URLAssociationDialogW +#else +#define URLAssociationDialog URLAssociationDialogA +#endif /* UNICODE */ + + +// +// Input flags for MIMEAssociationDialog(). +// +typedef enum mimeassociationdialog_in_flags +{ + MIMEASSOCDLG_FL_REGISTER_ASSOC = 0x0001 +} +MIMEASSOCIATIONDIALOG_IN_FLAGS; + + +// +// MIMEAssociationDialog(). Invokes the unregistered MIME content +// type dialog box. +// +// This function does not perform any validation on the syntax of the +// input content type string. A successful return value does not indicate +// that the input MIME content type string is a valid content type. +// +// The function returns S_OK if the MIME content type is associated +// with the extension. The extension is associated as the default +// extension for the content type. S_FALSE is returned if nothing is +// registered. Otherwise, the function returns one of the following +// errors: +// +// E_ABORT -- The user cancelled the operation. +// E_FLAGS -- The flag combination passed in dwFlags is invalid. +// E_OUTOFMEMORY -- Not enough memory to complete the operation. +// E_POINTER -- One of the input pointers is invalid. +// +// Parameters: +// hwndParent -- A handle to the window to be used as the parent +// window of any posted child windows. +// dwInFlags -- A bit field of MIMEASSOCIATIONDIALOG_IN_FLAGS. The +// flags are: +// +// MIMEASSOCDLG_FL_REGISTER_ASSOC: If set, the application +// selected is to be registered as the handler for files of +// the given MIME type. If clear, no association is to be +// registered. An application is only registered if this +// flag is set, and the user indicates that a persistent +// association is to be made. Registration is only possible +// if pcszFile contains an extension. +// +// pcszFile -- A pointer to a string indicating the name of the file +// containing data of pcszMIMEContentType's content type. +// pcszMIMEContentType -- A pointer to a string indicating the content +// type for which an application is sought. +// pszAppBuf -- A buffer to be filled in on success with the path of +// the application selected by the user. pszAppBuf's buffer +// is filled in with the empty string on failure. +// ucAppBufLen -- The length of pszAppBuf's buffer in characters. +// + +INTSHCUTAPI HRESULT WINAPI MIMEAssociationDialogA(HWND hwndParent, + DWORD dwInFlags, + PCSTR pcszFile, + PCSTR pcszMIMEContentType, + _Out_writes_(ucAppBufLen) PSTR pszAppBuf, + UINT ucAppBufLen); +INTSHCUTAPI HRESULT WINAPI MIMEAssociationDialogW(HWND hwndParent, + DWORD dwInFlags, + PCWSTR pcszFile, + PCWSTR pcszMIMEContentType, + _Out_writes_(ucAppBufLen) PWSTR pszAppBuf, + UINT ucAppBufLen); +#ifdef UNICODE +#define MIMEAssociationDialog MIMEAssociationDialogW +#else +#define MIMEAssociationDialog MIMEAssociationDialogA +#endif /* UNICODE */ + + +// +// InetIsOffline(). This function determines if the user wants to be +// "offline" (get all information from the cache). The dwFlags must be +// 0. +// +// The function returns TRUE to indicate that the local system is not +// currently connected to the Internet. The function returns FALSE to +// indicate that either the local system is connected to the Internet, +// or no attempt has yet been made to connect the local system to the +// Internet. Applications that wish to support an off-line mode should +// do so if InetIsOffline() returns TRUE. +// +// Off-line mode begins when the user has been prompted to dial-in to +// an Internet providor, but canceled the attempt. +// +INTSHCUTAPI +BOOL +WINAPI +InetIsOffline( + DWORD dwFlags); + + +#ifdef __cplusplus +} /* End of extern "C" {. */ +#endif /* __cplusplus */ + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* ! __INTSHCUT_H__ */ + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/InteractionContext.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InteractionContext.h new file mode 100644 index 0000000000000000000000000000000000000000..92d9778999179dd56231b2897ef2610febfa137a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/InteractionContext.h @@ -0,0 +1,524 @@ +/* +** Copyright (c) Microsoft Corporation. All rights reserved. +** Interaction Context API +*/ + +#ifndef INTERACTION_CONTEXT_H +#define INTERACTION_CONTEXT_H + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include + +#if defined(__cplusplus) +extern "C" { +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +typedef enum INTERACTION_ID +{ + INTERACTION_ID_NONE = 0x00000000, + INTERACTION_ID_MANIPULATION = 0x00000001, + INTERACTION_ID_TAP = 0x00000002, + INTERACTION_ID_SECONDARY_TAP = 0x00000003, + INTERACTION_ID_HOLD = 0x00000004, + INTERACTION_ID_DRAG = 0x00000005, + INTERACTION_ID_CROSS_SLIDE = 0x00000006, + INTERACTION_ID_MAX = 0xffffffff +} INTERACTION_ID; + +typedef enum INTERACTION_FLAGS +{ + INTERACTION_FLAG_NONE = 0x00000000, + INTERACTION_FLAG_BEGIN = 0x00000001, + INTERACTION_FLAG_END = 0x00000002, + INTERACTION_FLAG_CANCEL = 0x00000004, + INTERACTION_FLAG_INERTIA = 0x00000008, + INTERACTION_FLAG_MAX = 0xffffffff +} INTERACTION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(INTERACTION_FLAGS); + +typedef enum INTERACTION_CONFIGURATION_FLAGS +{ + INTERACTION_CONFIGURATION_FLAG_NONE = 0x00000000, + + INTERACTION_CONFIGURATION_FLAG_MANIPULATION = 0x00000001, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_X = 0x00000002, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_Y = 0x00000004, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_ROTATION = 0x00000008, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_SCALING = 0x00000010, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_INERTIA = 0x00000020, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_ROTATION_INERTIA = 0x00000040, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_SCALING_INERTIA = 0x00000080, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_RAILS_X = 0x00000100, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_RAILS_Y = 0x00000200, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_EXACT = 0x00000400, + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_MULTIPLE_FINGER_PANNING = 0x00000800, + + INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE = 0x00000001, + INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE_HORIZONTAL = 0x00000002, + INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE_SELECT = 0x00000004, + INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE_SPEED_BUMP = 0x00000008, + INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE_REARRANGE = 0x00000010, + INTERACTION_CONFIGURATION_FLAG_CROSS_SLIDE_EXACT = 0x00000020, + + INTERACTION_CONFIGURATION_FLAG_TAP = 0x00000001, + INTERACTION_CONFIGURATION_FLAG_TAP_DOUBLE = 0x00000002, +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) + INTERACTION_CONFIGURATION_FLAG_TAP_MULTIPLE_FINGER = 0x00000004, +#endif + + INTERACTION_CONFIGURATION_FLAG_SECONDARY_TAP = 0x00000001, + + INTERACTION_CONFIGURATION_FLAG_HOLD = 0x00000001, + INTERACTION_CONFIGURATION_FLAG_HOLD_MOUSE = 0x00000002, +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) + INTERACTION_CONFIGURATION_FLAG_HOLD_MULTIPLE_FINGER = 0x00000004, +#endif + + INTERACTION_CONFIGURATION_FLAG_DRAG = 0x00000001, + + INTERACTION_CONFIGURATION_FLAG_MAX = 0xffffffff +} INTERACTION_CONFIGURATION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(INTERACTION_CONFIGURATION_FLAGS); + +typedef enum INERTIA_PARAMETER +{ + INERTIA_PARAMETER_TRANSLATION_DECELERATION = 0x00000001, + INERTIA_PARAMETER_TRANSLATION_DISPLACEMENT = 0x00000002, + + INERTIA_PARAMETER_ROTATION_DECELERATION = 0x00000003, + INERTIA_PARAMETER_ROTATION_ANGLE = 0x00000004, + + INERTIA_PARAMETER_EXPANSION_DECELERATION = 0x00000005, + INERTIA_PARAMETER_EXPANSION_EXPANSION = 0x00000006, + + INERTIA_PARAMETER_MAX = 0xffffffff +} INERTIA_PARAMETER; + +typedef enum INTERACTION_STATE +{ + INTERACTION_STATE_IDLE = 0x00000000, + INTERACTION_STATE_IN_INTERACTION = 0x00000001, + INTERACTION_STATE_POSSIBLE_DOUBLE_TAP = 0x00000002, + INTERACTION_STATE_MAX = 0xffffffff +} INTERACTION_STATE; + +typedef enum INTERACTION_CONTEXT_PROPERTY +{ + INTERACTION_CONTEXT_PROPERTY_MEASUREMENT_UNITS = 0x00000001, + INTERACTION_CONTEXT_PROPERTY_INTERACTION_UI_FEEDBACK = 0x00000002, + INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS = 0x00000003, + + INTERACTION_CONTEXT_PROPERTY_MAX = 0xffffffff +} INTERACTION_CONTEXT_PROPERTY; + +typedef enum CROSS_SLIDE_THRESHOLD +{ + CROSS_SLIDE_THRESHOLD_SELECT_START = 0x00000000, + CROSS_SLIDE_THRESHOLD_SPEED_BUMP_START = 0x00000001, + CROSS_SLIDE_THRESHOLD_SPEED_BUMP_END = 0x00000002, + CROSS_SLIDE_THRESHOLD_REARRANGE_START = 0x00000003, + + CROSS_SLIDE_THRESHOLD_COUNT = 0x00000004, + CROSS_SLIDE_THRESHOLD_MAX = 0xffffffff +} CROSS_SLIDE_THRESHOLD; + +#define CROSS_SLIDE_THRESHOLD_INVALID_VALUE FLT_MAX + +typedef enum CROSS_SLIDE_FLAGS +{ + CROSS_SLIDE_FLAGS_NONE = 0x00000000, + CROSS_SLIDE_FLAGS_SELECT = 0x00000001, + CROSS_SLIDE_FLAGS_SPEED_BUMP = 0x00000002, + CROSS_SLIDE_FLAGS_REARRANGE = 0x00000004, + CROSS_SLIDE_FLAGS_MAX = 0xffffffff +} CROSS_SLIDE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(CROSS_SLIDE_FLAGS); + +typedef enum MOUSE_WHEEL_PARAMETER +{ + MOUSE_WHEEL_PARAMETER_CHAR_TRANSLATION_X = 0x00000001, + MOUSE_WHEEL_PARAMETER_CHAR_TRANSLATION_Y = 0x00000002, + MOUSE_WHEEL_PARAMETER_DELTA_SCALE = 0x00000003, + MOUSE_WHEEL_PARAMETER_DELTA_ROTATION = 0x00000004, + MOUSE_WHEEL_PARAMETER_PAGE_TRANSLATION_X = 0x00000005, + MOUSE_WHEEL_PARAMETER_PAGE_TRANSLATION_Y = 0x00000006, + MOUSE_WHEEL_PARAMETER_MAX = 0xffffffff +} MOUSE_WHEEL_PARAMETER; + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +typedef enum TAP_PARAMETER +{ + TAP_PARAMETER_MIN_CONTACT_COUNT = 0x00000000, + TAP_PARAMETER_MAX_CONTACT_COUNT = 0x00000001, + TAP_PARAMETER_MAX = 0xffffffff +} TAP_PARAMETER; + +typedef enum HOLD_PARAMETER +{ + HOLD_PARAMETER_MIN_CONTACT_COUNT = 0x00000000, + HOLD_PARAMETER_MAX_CONTACT_COUNT = 0x00000001, + HOLD_PARAMETER_THRESHOLD_RADIUS = 0x00000002, + HOLD_PARAMETER_THRESHOLD_START_DELAY = 0x00000003, + HOLD_PARAMETER_MAX = 0xffffffff +} HOLD_PARAMETER; + +typedef enum TRANSLATION_PARAMETER +{ + TRANSLATION_PARAMETER_MIN_CONTACT_COUNT = 0x00000000, + TRANSLATION_PARAMETER_MAX_CONTACT_COUNT = 0x00000001, + TRANSLATION_PARAMETER_MAX = 0xffffffff +} TRANSLATION_PARAMETER; +#endif + +typedef enum MANIPULATION_RAILS_STATE +{ + MANIPULATION_RAILS_STATE_UNDECIDED = 0x00000000, + MANIPULATION_RAILS_STATE_FREE = 0x00000001, + MANIPULATION_RAILS_STATE_RAILED = 0x00000002, + MANIPULATION_RAILS_STATE_MAX = 0xffffffff +} MANIPULATION_RAILS_STATE; + +typedef struct MANIPULATION_TRANSFORM +{ + float translationX; + float translationY; + float scale; + float expansion; + float rotation; +} MANIPULATION_TRANSFORM; + +typedef struct MANIPULATION_VELOCITY +{ + float velocityX; + float velocityY; + float velocityExpansion; + float velocityAngular; +} MANIPULATION_VELOCITY; + +typedef struct INTERACTION_ARGUMENTS_MANIPULATION +{ + MANIPULATION_TRANSFORM delta; + MANIPULATION_TRANSFORM cumulative; + MANIPULATION_VELOCITY velocity; + MANIPULATION_RAILS_STATE railsState; +} INTERACTION_ARGUMENTS_MANIPULATION; + +typedef struct INTERACTION_ARGUMENTS_TAP +{ + UINT32 count; +} INTERACTION_ARGUMENTS_TAP; + +typedef struct INTERACTION_ARGUMENTS_CROSS_SLIDE +{ + CROSS_SLIDE_FLAGS flags; +} INTERACTION_ARGUMENTS_CROSS_SLIDE; + + +typedef struct INTERACTION_CONTEXT_OUTPUT +{ + INTERACTION_ID interactionId; + INTERACTION_FLAGS interactionFlags; + POINTER_INPUT_TYPE inputType; + float x; + float y; + union + { + INTERACTION_ARGUMENTS_MANIPULATION manipulation; + INTERACTION_ARGUMENTS_TAP tap; + INTERACTION_ARGUMENTS_CROSS_SLIDE crossSlide; + } arguments; +} INTERACTION_CONTEXT_OUTPUT; + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +typedef struct INTERACTION_CONTEXT_OUTPUT2 +{ + INTERACTION_ID interactionId; + INTERACTION_FLAGS interactionFlags; + POINTER_INPUT_TYPE inputType; + UINT32 contactCount; + UINT32 currentContactCount; + float x; + float y; + union + { + INTERACTION_ARGUMENTS_MANIPULATION manipulation; + INTERACTION_ARGUMENTS_TAP tap; + INTERACTION_ARGUMENTS_CROSS_SLIDE crossSlide; + } arguments; +} INTERACTION_CONTEXT_OUTPUT2; +#endif + +typedef struct INTERACTION_CONTEXT_CONFIGURATION +{ + INTERACTION_ID interactionId; + INTERACTION_CONFIGURATION_FLAGS enable; +} INTERACTION_CONTEXT_CONFIGURATION; + +typedef struct CROSS_SLIDE_PARAMETER +{ + CROSS_SLIDE_THRESHOLD threshold; + float distance; +} CROSS_SLIDE_PARAMETER; + + +typedef void (CALLBACK *INTERACTION_CONTEXT_OUTPUT_CALLBACK) ( + _In_opt_ void *clientData, + _In_reads_(1) const INTERACTION_CONTEXT_OUTPUT *output); + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +typedef void (CALLBACK *INTERACTION_CONTEXT_OUTPUT_CALLBACK2) ( + _In_opt_ void *clientData, + _In_reads_(1) const INTERACTION_CONTEXT_OUTPUT2 *output); +#endif + +DECLARE_HANDLE(HINTERACTIONCONTEXT); + +#define INTERACTION_CONTEXT_CONFIGURATION_DEFAULT \ +{ \ + {INTERACTION_ID_MANIPULATION, \ + INTERACTION_CONFIGURATION_FLAG_MANIPULATION | \ + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_X | \ + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_Y | \ + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_ROTATION | \ + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_SCALING | \ + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_TRANSLATION_INERTIA | \ + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_ROTATION_INERTIA | \ + INTERACTION_CONFIGURATION_FLAG_MANIPULATION_SCALING_INERTIA}, \ + {INTERACTION_ID_TAP, \ + INTERACTION_CONFIGURATION_FLAG_TAP}, \ + {INTERACTION_ID_SECONDARY_TAP, \ + INTERACTION_CONFIGURATION_FLAG_SECONDARY_TAP}, \ + {INTERACTION_ID_HOLD, \ + INTERACTION_CONFIGURATION_FLAG_HOLD}, \ + {INTERACTION_ID_DRAG, \ + INTERACTION_CONFIGURATION_FLAG_NONE}, \ + {INTERACTION_ID_CROSS_SLIDE, \ + INTERACTION_CONFIGURATION_FLAG_NONE} \ +} \ + +#define INERTIA_PARAMETER_INVALID_VALUE FLT_MAX + +HRESULT +WINAPI +CreateInteractionContext( + _Out_writes_(1) HINTERACTIONCONTEXT *interactionContext); + +HRESULT +WINAPI +DestroyInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext); + +HRESULT +WINAPI +RegisterOutputCallbackInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ INTERACTION_CONTEXT_OUTPUT_CALLBACK outputCallback, + _In_opt_ void *clientData); + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +HRESULT +WINAPI +RegisterOutputCallbackInteractionContext2( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ INTERACTION_CONTEXT_OUTPUT_CALLBACK2 outputCallback, + _In_opt_ void *clientData); +#endif + +HRESULT +WINAPI +SetInteractionConfigurationInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ UINT32 configurationCount, + _In_reads_(configurationCount) const INTERACTION_CONTEXT_CONFIGURATION *configuration); + +HRESULT +WINAPI +GetInteractionConfigurationInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ UINT32 configurationCount, + _Inout_updates_(configurationCount) INTERACTION_CONTEXT_CONFIGURATION *configuration); + +HRESULT +WINAPI +SetPropertyInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ INTERACTION_CONTEXT_PROPERTY contextProperty, + _In_ UINT32 value); + +HRESULT +WINAPI +GetPropertyInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ INTERACTION_CONTEXT_PROPERTY contextProperty, + _Out_writes_(1) UINT32 *value); + +HRESULT +WINAPI +SetInertiaParameterInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ INERTIA_PARAMETER inertiaParameter, + _In_ float value); + +HRESULT +WINAPI +GetInertiaParameterInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ INERTIA_PARAMETER inertiaParameter, + _Out_writes_(1) float *value); + +HRESULT +WINAPI +SetCrossSlideParametersInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ UINT32 parameterCount, + _In_reads_(parameterCount) CROSS_SLIDE_PARAMETER *crossSlideParameters); + +HRESULT +WINAPI + GetCrossSlideParameterInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ CROSS_SLIDE_THRESHOLD threshold, + _Out_writes_(1) float *distance); + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +HRESULT +WINAPI +SetTapParameterInteractionContext( + HINTERACTIONCONTEXT interactionContext, + TAP_PARAMETER parameter, + float value); + +HRESULT +WINAPI +GetTapParameterInteractionContext( + HINTERACTIONCONTEXT interactionContext, + TAP_PARAMETER parameter, + _Out_ float *value); + +HRESULT +WINAPI +SetHoldParameterInteractionContext( + HINTERACTIONCONTEXT interactionContext, + HOLD_PARAMETER parameter, + float value); + +HRESULT +WINAPI +GetHoldParameterInteractionContext( + HINTERACTIONCONTEXT interactionContext, + HOLD_PARAMETER parameter, + _Out_ float *value); + +HRESULT +WINAPI +SetTranslationParameterInteractionContext( + HINTERACTIONCONTEXT interactionContext, + TRANSLATION_PARAMETER parameter, + float value); + +HRESULT +WINAPI +GetTranslationParameterInteractionContext( + HINTERACTIONCONTEXT interactionContext, + TRANSLATION_PARAMETER parameter, + _Out_ float *value); +#endif + +HRESULT +WINAPI +SetMouseWheelParameterInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ MOUSE_WHEEL_PARAMETER parameter, + _In_ float value); + +HRESULT +WINAPI +GetMouseWheelParameterInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ MOUSE_WHEEL_PARAMETER parameter, + _Out_writes_(1) float *value); + +HRESULT +WINAPI +ResetInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext); + +HRESULT +WINAPI +GetStateInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_opt_ const POINTER_INFO *pointerInfo, + _Out_writes_(1) INTERACTION_STATE *state); + +HRESULT +WINAPI +AddPointerInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ UINT32 pointerId); + +HRESULT +WINAPI +RemovePointerInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ UINT32 pointerId); + +HRESULT +WINAPI +ProcessPointerFramesInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ UINT32 entriesCount, + _In_ UINT32 pointerCount, + _In_reads_(entriesCount * pointerCount) const POINTER_INFO *pointerInfo); + +HRESULT +WINAPI +BufferPointerPacketsInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ UINT32 entriesCount, + _In_reads_(entriesCount) const POINTER_INFO *pointerInfo); + +HRESULT +WINAPI +ProcessBufferedPacketsInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext); + +HRESULT +WINAPI +ProcessInertiaInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext); + +HRESULT +WINAPI +StopInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext); + +HRESULT +WINAPI +SetPivotInteractionContext( + _In_ HINTERACTIONCONTEXT interactionContext, + _In_ float x, + _In_ float y, + _In_ float radius); + +#endif /* (NTDDI_VERSION >= NTDDI_WIN8) */ + +#if defined(__cplusplus) +} /* __cplusplus */ +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* INTERACTION_CONTEXT_H */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipinfoid.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipinfoid.h new file mode 100644 index 0000000000000000000000000000000000000000..0049cfdd5a40204de8ee9d440754550dc1ac1986 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipinfoid.h @@ -0,0 +1,104 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + ipinfoid.h + +Abstract: + Defines the IDs needed for specifying various types of information + to the router manager. Protocols use their ProtocolId for tagging + information + +--*/ + +#ifndef __ROUTING_IPINFOID_H__ +#define __ROUTING_IPINFOID_H__ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#define IP_ROUTER_MANAGER_VERSION 1 + +////////////////////////////////////////////////////////////////////////////// +// // +// These are the ids used for different information types supported by // +// IP Router Manager. These ids live in the same space as the IP Routing // +// Protocol IDs, so any addition to them must be done with care // +// // +////////////////////////////////////////////////////////////////////////////// + +#define IP_GENERAL_INFO_BASE 0xffff0000 + +#define IP_IN_FILTER_INFO IP_GENERAL_INFO_BASE + 1 +#define IP_OUT_FILTER_INFO IP_GENERAL_INFO_BASE + 2 +#define IP_GLOBAL_INFO IP_GENERAL_INFO_BASE + 3 +#define IP_INTERFACE_STATUS_INFO IP_GENERAL_INFO_BASE + 4 +#define IP_ROUTE_INFO IP_GENERAL_INFO_BASE + 5 +#define IP_PROT_PRIORITY_INFO IP_GENERAL_INFO_BASE + 6 +#define IP_ROUTER_DISC_INFO IP_GENERAL_INFO_BASE + 7 +// N.B. Unused ID available at IP_GENERAL_INFO_BASE + 8. +#define IP_DEMAND_DIAL_FILTER_INFO IP_GENERAL_INFO_BASE + 9 +#define IP_MCAST_HEARBEAT_INFO IP_GENERAL_INFO_BASE + 10 +#define IP_MCAST_BOUNDARY_INFO IP_GENERAL_INFO_BASE + 11 +#define IP_IPINIP_CFG_INFO IP_GENERAL_INFO_BASE + 12 +#define IP_IFFILTER_INFO IP_GENERAL_INFO_BASE + 13 +#define IP_MCAST_LIMIT_INFO IP_GENERAL_INFO_BASE + 14 +#define IPV6_GLOBAL_INFO IP_GENERAL_INFO_BASE + 15 +#define IPV6_ROUTE_INFO IP_GENERAL_INFO_BASE + 16 + +#define IP_IN_FILTER_INFO_V6 IP_GENERAL_INFO_BASE + 17 +#define IP_OUT_FILTER_INFO_V6 IP_GENERAL_INFO_BASE + 18 +#define IP_DEMAND_DIAL_FILTER_INFO_V6 IP_GENERAL_INFO_BASE + 19 +#define IP_IFFILTER_INFO_V6 IP_GENERAL_INFO_BASE + 20 + +#define IP_FILTER_ENABLE_INFO IP_GENERAL_INFO_BASE + 21 +#define IP_FILTER_ENABLE_INFO_V6 IP_GENERAL_INFO_BASE + 22 +#define IP_PROT_PRIORITY_INFO_EX IP_GENERAL_INFO_BASE + 23 + +////////////////////////////////////////////////////////////////////////////// +// // +// The following IDS are defined in routprot.h and given here for // +// informational purposes only // +// // +// #define IP_OTHER 1 // +// #define IP_LOCAL 2 // +// #define IP_NETMGMT 3 // +// #define IP_ICMP 4 // +// #define IP_EGP 5 // +// #define IP_GGP 6 // +// #define IP_HELLO 7 // +// #define IP_RIP 8 // +// #define IP_IS_IS 9 // +// #define IP_ES_IS 10 // +// #define IP_CISCO 11 // +// #define IP_BBN 12 // +// #define IP_OSPF 13 // +// #define IP_BGP 14 // +// // +// #define IP_BOOTP 9999 // +// #define IPRTRMGR_PID 10000 // +// #define IP_NT_AUTOSTATIC 10002 // +// // +////////////////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //__ROUTING_IPINFOID_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IpxConst.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IpxConst.h new file mode 100644 index 0000000000000000000000000000000000000000..38977c243e25a76e959b6059b5dcee16a450abd8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IpxConst.h @@ -0,0 +1,135 @@ +/*++ + +Copyright (c) 1995-1999 Microsoft Corporation + +Module Name: + + ipxconst.h + +Abstract: + + This module contains the common constants and macros used + by the IPX Routing Protocols + +Author: + + Stefan Solomon 07/10/1995 + +Revision History: + + +--*/ + +#ifndef _IPXCONST_ +#define _IPXCONST_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// Administrative States Definitions +// +// Note: these states correspond to the MIB admin states of ENABLED and DISABLED + +#define ADMIN_STATE_DISABLED 1 +#define ADMIN_STATE_ENABLED 2 + +// additional admin states used for netbios delivery. +// +// Note: these states correspond to the MIB states of: +// +// ENABLED_ONLY_FOR_NETBIOS_STATIC_ROUTING and +// ENABLED_ONLY_FOR_OPER_STATE_UP + +#define ADMIN_STATE_ENABLED_ONLY_FOR_NETBIOS_STATIC_ROUTING 3 +#define ADMIN_STATE_ENABLED_ONLY_FOR_OPER_STATE_UP 4 + +// +// Interface Operational States Definitions +// +// Note 1: applies to the IPX, RIP and SAP operational states +// Note 2: these states correspond to the MIB operational states of +// UP, DOWN and SLEEPING +// + +#define OPER_STATE_DOWN 1 // not operational +#define OPER_STATE_UP 2 // operational & can pass packets +#define OPER_STATE_SLEEPING 3 // operational but has to connect to pass packets + +// +// Additional operational states in starting/stopping the router +// + +#define OPER_STATE_STARTING 4 +#define OPER_STATE_STOPPING 5 + +// +// Definitions and default values for the RIP and SAP Interface Info +// + +// UpdateMode definitions +// + +#define IPX_STANDARD_UPDATE 1 // Periodic update, every UpdateInterval +#define IPX_NO_UPDATE 2 // No update, used for static routes config +#define IPX_AUTO_STATIC_UPDATE 3 // AutoStatic triggered update + +// PacketType definitions +// + +#define IPX_STANDARD_PACKET_TYPE 1 +#define IPX_RELIABLE_DELIVERY_PACKET_TYPE 2 + +// Pace definitions + +#define IPX_PACE_DEFVAL 18 // This corresponds to a 55 ms interpacketgap + +// UpdateInterval definitions + +#define IPX_UPDATE_INTERVAL_DEFVAL 60 + +//********************************************************* +// * +// IPX Route Entry Definitions * +// * +//********************************************************* + +// +// IPX route entry defs for RTM mapping +// + +#define R_Interface RR_InterfaceID +#define R_Protocol RR_RoutingProtocol + +#define R_Network RR_Network.N_NetNumber +#define R_TickCount RR_FamilySpecificData.FSD_TickCount +#define R_HopCount RR_FamilySpecificData.FSD_HopCount +#define R_NextHopMacAddress RR_NextHopAddress.NHA_Mac + +#define R_Flags RR_FamilySpecificData.FSD_Flags + +// +// Some particular interface indices values +// + +#define MAX_INTERFACE_INDEX 0xFFFFFFFE +#define GLOBAL_INTERFACE_INDEX 0xFFFFFFFF + +// +// Flags definitions +// + +#define GLOBAL_WAN_ROUTE 0x00000001 +#define DO_NOT_ADVERTISE_ROUTE 0x00000002 + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxrip.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxrip.h new file mode 100644 index 0000000000000000000000000000000000000000..d418c32a657ae3dc60f4680eab6e379f28d843a8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxrip.h @@ -0,0 +1,228 @@ +/*++ + +Copyright (c) 1995-1999 Microsoft Corporation + +Module Name: + + ipxrip.h + +Abstract: + + This module contains the definitions of the: + + interface management APIs structures + rip MIB management APIs structures + +Author: + + Stefan Solomon 06/30/1995 + +Revision History: + + +--*/ + +#ifndef _IPXRIP_ +#define _IPXRIP_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include + +typedef struct _RIP_GLOBAL_INFO { + DWORD EventLogMask; +} RIP_GLOBAL_INFO, *PRIP_GLOBAL_INFO; + +//******************************************************************** +// * +// RIP Configuration Information * +// * +//******************************************************************** + + +//*** RIP Interface Only Information *** + +typedef struct _RIP_IF_INFO { + + ULONG AdminState; // The desired state of the interface + ULONG UpdateMode; // RIP update mechanism used on this interface + ULONG PacketType; // The RIP packet type used on this interface + ULONG Supply; // Send RIP updates on this interface + ULONG Listen; // Listen to RIP updates on this interface + ULONG PeriodicUpdateInterval; // in seconds - default 60 + ULONG AgeIntervalMultiplier; // default - 3 + + } RIP_IF_INFO, *PRIP_IF_INFO; + +// UpdateMode Values: +// +// This parameter controls the RIP database update on this interface. +// +// If this is a LAN interface, use IPX_PERIODIC_UPDATE as default. +// If this is a WAN router interface with static routes, use IPX_NO_UPDATE as default. +// If you want to trigger an update on this interface and to keep the data +// as static data, use IPX_AUTO_STATIC value. +// IPX_AUTO_STATIC update can be set only on a WAN interface +// +// PacketType Default Values: +// +// If UpdateMode is set to IPX_NO_UPDATE, this field is meaningless. +// If this is a LAN interface, use IPX_STANDARD_PACKET_TYPE as default. +// If you want reliable delivery of the update data in a triggered update, +// use IPX_RELIABLE_DELIVERY_PACKET_TYPE (this can be set only in combination with +// IPX_AUTO_STATIC_UPDATE in the UpdateMode). + +// RIP Route Filter Info +// +// These filters apply to routes accepted or advertised by RIP on each interface. + +typedef struct _RIP_ROUTE_FILTER_INFO { + + UCHAR Network[4]; + UCHAR Mask[4]; + + } RIP_ROUTE_FILTER_INFO, *PRIP_ROUTE_FILTER_INFO; + +//*** RIP Filters Only Information *** +// +// This header is followed by RIP_ROUTE_FILTER_STRUCTURES in order: +// First Supply filters +// Next Listen filters + +typedef struct _RIP_IF_FILTERS { + + ULONG SupplyFilterAction; + ULONG SupplyFilterCount; + ULONG ListenFilterAction; + ULONG ListenFilterCount; + RIP_ROUTE_FILTER_INFO RouteFilter[1]; + + } RIP_IF_FILTERS, *PRIP_IF_FILTERS; + +// FilterAction - + +#define IPX_ROUTE_FILTER_PERMIT 1 +#define IPX_ROUTE_FILTER_DENY 2 + +// +//*** RIP Interface Configuration Information *** +// +// This structure is passed in AddInterface and SetInterface Entry Points +// + +typedef struct _RIP_IF_CONFIG { + + RIP_IF_INFO RipIfInfo; + RIP_IF_FILTERS RipIfFilters; + + } RIP_IF_CONFIG, *PRIP_IF_CONFIG; + +// *********************************************************** +// *** *** +// *** RIP MIB Table Identifiers *** +// *** *** +// *********************************************************** + + +#define RIP_BASE_ENTRY 0 +#define RIP_INTERFACE_TABLE 1 + +//************************************************************ +// * +// RIP MIB Basic Structures * +// * +//************************************************************ + +// +// RIP MIB Base Entry +// + +typedef struct _RIPMIB_BASE { + + ULONG RIPOperState; + + } RIPMIB_BASE, *PRIPMIB_BASE; + + +// +// RIP MIB Interface Table Entry +// + +typedef struct _RIP_IF_STATS { + + ULONG RipIfOperState; // up, down or sleeping + ULONG RipIfInputPackets; + ULONG RipIfOutputPackets; + + } RIP_IF_STATS, *PRIP_IF_STATS; + + + +typedef struct _RIP_INTERFACE { + + ULONG InterfaceIndex; + RIP_IF_INFO RipIfInfo; + RIP_IF_STATS RipIfStats; + + } RIP_INTERFACE, *PRIP_INTERFACE; + +//*************************************************************** +// * +// INPUT DATA For: Get, GetFirst, GetNext * +// * +//*************************************************************** + +typedef struct _RIP_MIB_GET_INPUT_DATA { + + ULONG TableId; + ULONG InterfaceIndex; + + } RIP_MIB_GET_INPUT_DATA, *PRIP_MIB_GET_INPUT_DATA; + +//*************************************************************** +// * +// INPUT DATA For: Create, Delete, Set * +// * +//*************************************************************** + +typedef struct _RIP_MIB_SET_INPUT_DATA { + + ULONG TableId; + RIP_INTERFACE RipInterface; + + } RIP_MIB_SET_INPUT_DATA, *PRIP_MIB_SET_INPUT_DATA; + +// +// *** RIP Base Entry *** +// + +// MIB Functions: Get + +// INPUT DATA: RIP_MIB_GET_INPUT_DATA and Index is not used + +// OUTPUT DATA: RIP_INTERFACE + +// +// *** RIP Interface Table *** +// + +// MIB Functions: Get, GetFirst, GetNext, Set + +// INPUT DATA: RIP_MIB_GET_INPUT_DATA for Get, GetFirst and GetNext +// RIP_MIB_SET_INPUT_DATA for Set + +// +// OUTPUT DATA: RIP_INTERFACE +// + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxrtdef.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxrtdef.h new file mode 100644 index 0000000000000000000000000000000000000000..2d27d4473cd798b59a958e9c58e39025ced50643 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxrtdef.h @@ -0,0 +1,449 @@ +/*++ + +Copyright (c) 1995-1999 Microsoft Corporation + +Module Name: + + ipxrtdef.h + +Abstract: + + This module contains the definitions of the: + + interface management APIs structures + ipx global router management APIs structures + ipx router MIB management APIs structures + +Author: + + Stefan Solomon 03/03/1995 + +Revision History: + + +--*/ + +#ifndef _IPXRTDEF_ +#define _IPXRTDEF_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include +#include +#include +#include + +//**************************************************************** +//*** *** +//*** Global Definitions *** +//*** *** +//**************************************************************** + +// +// Version of this router +// + +#define IPX_ROUTER_VERSION_1 RTR_INFO_BLOCK_VERSION + +// +// IPX Protocols +// + +#define IPX_PROTOCOL_LOCAL 1 +#define IPX_PROTOCOL_STATIC 2 + +// +// Interface Type Definitions for MIB reporting - these are mapped from the +// DDM interface type +// + +#define IF_TYPE_OTHER 1 +#define IF_TYPE_LAN 2 +#define IF_TYPE_WAN_ROUTER 3 +#define IF_TYPE_WAN_WORKSTATION 4 // remote workstation dialing in +#define IF_TYPE_INTERNAL 5 // the internal (virtual) interface +#define IF_TYPE_PERSONAL_WAN_ROUTER 6 +#define IF_TYPE_ROUTER_WORKSTATION_DIALOUT 7 // local workstation dialing out +#define IF_TYPE_STANDALONE_WORKSTATION_DIALOUT 8 + +// +// Definitions for Table of Contents Entries Info Types +// + +#define IPX_INTERFACE_INFO_TYPE 1 +#define IPX_STATIC_ROUTE_INFO_TYPE 2 +#define IPX_STATIC_SERVICE_INFO_TYPE 3 +#define IPX_SERVICE_FILTER_INFO_TYPE 4 +#define IPX_ROUTE_FILTER_INFO_TYPE 5 +#define IPX_IN_TRAFFIC_FILTER_INFO_TYPE 6 +#define IPX_ADAPTER_INFO_TYPE 7 +#define IPXWAN_INTERFACE_INFO_TYPE 8 +#define IPX_GLOBAL_INFO_TYPE 9 +#define IPX_STATIC_NETBIOS_NAME_INFO_TYPE 10 +#define IPX_IN_TRAFFIC_FILTER_GLOBAL_INFO_TYPE 11 +#define IPX_OUT_TRAFFIC_FILTER_INFO_TYPE 12 +#define IPX_OUT_TRAFFIC_FILTER_GLOBAL_INFO_TYPE 13 + +//**************************************************************** +//*** *** +//*** Specific Info Structures In The Information Block *** +//*** *** +//**************************************************************** + +//*** IPX Router Manager Global Info *** + +#define IPX_SMALL_ROUTING_TABLE_HASH_SIZE 31 +#define IPX_MEDIUM_ROUTING_TABLE_HASH_SIZE 257 +#define IPX_LARGE_ROUTING_TABLE_HASH_SIZE 2047 + +typedef struct _IPX_GLOBAL_INFO { + + ULONG RoutingTableHashSize; + ULONG EventLogMask; + } IPX_GLOBAL_INFO, *PIPX_GLOBAL_INFO; + + +//*** IPX Interface Info *** + +typedef struct _IPX_IF_INFO { + + ULONG AdminState; // The desired state of the interface + ULONG NetbiosAccept; // Accept Netbios broadcast packets + ULONG NetbiosDeliver; // Deliver Netbios broadcast packets + + } IPX_IF_INFO, *PIPX_IF_INFO; + + +// Interface Device Type Definitions + +#define IPX_DEDICATED_LINK 1 // includes LAN, leased lines, frame-relay +#define IPX_DIALED_LINK 2 // dial on demand links + +// Default values: +// +// AdminState: enabled - disabling it disables also RIP, SAP and anything else +// NetbiosAccept: enabled +// NetbiosDeliver: enabled on LAN interface, disabled on WAN interface +// IpxWanNegotiation: disabled. + +// The interface name corresponds to the local adapter name in the case the +// interface is the local LAN. If the adapter is multiplexed with different +// packet types, there is a unique net number assigned to each pseudo-adapter. +// In this case the NetNumber is used to differentiate which pseudo-adapter gets +// this interface info. + +//*** IPXWAN Interface Info *** + +typedef struct _IPXWAN_IF_INFO { + + ULONG AdminState; // Enable/Disable IPXWAN negotiation + + } IPXWAN_IF_INFO, *PIPXWAN_IF_INFO; + +//*** Static Route Entry *** + +typedef struct _IPX_STATIC_ROUTE_INFO { + + union { + + ULONG DwordAlign; + UCHAR Network[4]; }; + USHORT TickCount; + USHORT HopCount; + UCHAR NextHopMacAddress[6]; + + } IPX_STATIC_ROUTE_INFO, *PIPX_STATIC_ROUTE_INFO; + + +//*** Static Service Entry *** + +typedef IPX_SERVER_ENTRY IPX_STATIC_SERVICE_INFO, *PIPX_STATIC_SERVICE_INFO; + + +//*** Static Netbios Name Entry *** + +typedef struct _IPX_STATIC_NETBIOS_NAME_INFO { + + union { + + ULONG DwordAlign; + UCHAR Name[16]; }; + + } IPX_STATIC_NETBIOS_NAME_INFO, *PIPX_STATIC_NETBIOS_NAME_INFO; + + +// +// *** IPX LAN ADAPTER INFO *** +// + +#define MAX_ADAPTER_NAME_LEN 48 + +typedef struct _IPX_ADAPTER_INFO { + + ULONG PacketType; + WCHAR AdapterName[MAX_ADAPTER_NAME_LEN]; + + } IPX_ADAPTER_INFO, *PIPX_ADAPTER_INFO; + +#define AUTO_DETECT_PACKET_TYPE 0xFFFFFFFF + + + +// *********************************************************** +// *** *** +// *** IPX MIB Table Identifiers *** +// *** *** +// *********************************************************** + + +#define IPX_BASE_ENTRY 0 +#define IPX_INTERFACE_TABLE 1 +#define IPX_DEST_TABLE 2 // IPX Best Routes Table +#define IPX_STATIC_ROUTE_TABLE 3 // IPX Static Routes Table +#define IPX_SERV_TABLE 4 // IPX Services Table +#define IPX_STATIC_SERV_TABLE 5 // IPX Static Services Table + +#define MAX_IPX_MIB_TABLES 6 + + +// +// Some Global MIB Constants +// + +// max size of the interface readable name + +#define IPX_INTERFACE_ANSI_NAME_LEN 48 + +// *************************************************************************** +// +// *** IPX MIB APIs Input/Output Structures For Each Table *** +// +//**************************************************************************** + +// Global definition of the MIB Identifier (locates the table and the row index) + +typedef struct _IF_TABLE_INDEX { + + ULONG InterfaceIndex; + + } IF_TABLE_INDEX, *PIF_TABLE_INDEX; + +typedef struct _ROUTING_TABLE_INDEX { + + UCHAR Network[4]; + + } ROUTING_TABLE_INDEX, *PROUTING_TABLE_INDEX; + +typedef struct _STATIC_ROUTES_TABLE_INDEX { + + ULONG InterfaceIndex; + UCHAR Network[4]; + + } STATIC_ROUTES_TABLE_INDEX, *PSTATIC_ROUTES_TABLE_INDEX; + +typedef struct _SERVICES_TABLE_INDEX { + + USHORT ServiceType; + UCHAR ServiceName[48]; + + } SERVICES_TABLE_INDEX, *PSERVICES_TABLE_INDEX; + +typedef struct _STATIC_SERVICES_TABLE_INDEX { + + ULONG InterfaceIndex; + USHORT ServiceType; + UCHAR ServiceName[48]; + + } STATIC_SERVICES_TABLE_INDEX, *PSTATIC_SERVICES_TABLE_INDEX; + +typedef union _IPX_MIB_INDEX { + + IF_TABLE_INDEX InterfaceTableIndex; + ROUTING_TABLE_INDEX RoutingTableIndex; + STATIC_ROUTES_TABLE_INDEX StaticRoutesTableIndex; + SERVICES_TABLE_INDEX ServicesTableIndex; + STATIC_SERVICES_TABLE_INDEX StaticServicesTableIndex; + + } IPX_MIB_INDEX, *PIPX_MIB_INDEX; + +//********************************************************************** +// * +// INPUT DATA For: Get, GetFirst, GetNext * +// * +//********************************************************************** + +typedef struct _IPX_MIB_GET_INPUT_DATA { + + ULONG TableId; + IPX_MIB_INDEX MibIndex; + + } IPX_MIB_GET_INPUT_DATA, *PIPX_MIB_GET_INPUT_DATA; + +typedef struct _IPXMIB_BASE { + + ULONG OperState; + UCHAR PrimaryNetNumber[4]; + UCHAR Node[6]; + UCHAR SysName[IPX_INTERFACE_ANSI_NAME_LEN]; + ULONG MaxPathSplits; + ULONG IfCount; + ULONG DestCount; + ULONG ServCount; + + } IPXMIB_BASE, *PIPXMIB_BASE; + +// structure used to gather interface statistics + +typedef struct _IPX_IF_STATS { + + ULONG IfOperState; + ULONG MaxPacketSize; + ULONG InHdrErrors; + ULONG InFiltered; + ULONG InNoRoutes; + ULONG InDiscards; + ULONG InDelivers; + ULONG OutFiltered; + ULONG OutDiscards; + ULONG OutDelivers; + ULONG NetbiosReceived; + ULONG NetbiosSent; + + } IPX_IF_STATS, *PIPX_IF_STATS; + +// structure describing the MIB Row for the IPX_INTERFACE_TABLE in the +// IPX_INTERFACE_GROUP + +typedef struct _IPX_INTERFACE { + + ULONG InterfaceIndex; + ULONG AdminState; + ULONG AdapterIndex; + UCHAR InterfaceName[IPX_INTERFACE_ANSI_NAME_LEN]; + ULONG InterfaceType; + ULONG MediaType; + UCHAR NetNumber[4]; + UCHAR MacAddress[6]; + ULONG Delay; + ULONG Throughput; + ULONG NetbiosAccept; + ULONG NetbiosDeliver; + ULONG EnableIpxWanNegotiation; + IPX_IF_STATS IfStats; + + } IPX_INTERFACE, *PIPX_INTERFACE; + + +typedef struct _IPX_ROUTE { + + ULONG InterfaceIndex; // see ipxconst.h for specific indices definitions + ULONG Protocol; + UCHAR Network[4]; + USHORT TickCount; + USHORT HopCount; + UCHAR NextHopMacAddress[6]; + ULONG Flags; + + } IPX_ROUTE, *PIPX_ROUTE; + +// +// INPUT DATA For: Create, Delete, Set +// + +typedef union _IPX_MIB_ROW { + + IPX_INTERFACE Interface; + IPX_ROUTE Route; + IPX_SERVICE Service; + + } IPX_MIB_ROW, *PIPX_MIB_ROW; + + +typedef struct _IPX_MIB_SET_INPUT_DATA { + + ULONG TableId; + IPX_MIB_ROW MibRow; + + } IPX_MIB_SET_INPUT_DATA, *PIPX_MIB_SET_INPUT_DATA; + +// +// *** IPX Base Entry *** +// + +// MIB Functions: Get + +// INPUT DATA: IPX_MIB_GET_INPUT_DATA and Index is not used + +// OUTPUT DATA: + +// +// *** IPX Interface Table *** +// + +// MIB Functions: Get, GetFirst, GetNext, Set + +// INPUT DATA: IPX_MIB_GET_INPUT_DATA and Index is IF_TABLE_INDEX for Get, GetFirst and GetNext +// IPX_MIB_SET_INPUT_DATA and MibRow is IPX_INTERFACE for Set + +// +// OUTPUT DATA: described by the IPX_INTERFACE structure below +// + +// +// *** IPX Routes Table *** +// + +// MIB Functions: Get, GetFirst, GetNext + +// INPUT DATA: IPX_MIB_INPUT_DATA with Index ROUTES_TABLE_INDEX + +// OUTPUT DATA: IPX_ROUTE +// + + +// +// *** IPX Static Routes Table *** +// + +// MIB Functions: Create, Delete, Get, GetFirst, GetNext, Set + +// INPUT DATA: IPX_MIB_GET_INPUT_DATA with Index STATIC_ROUTES_TABLE_INDEX for Get, GetFirst, GetNext +// IPX_MIB_SET_INPUT_DATA and MibRow is IPX_ROUTE for Create, Delete, Set + +// OUTPUT DATA: IPX_ROUTE +// + +// +// *** IPX Services Table *** +// + +// MIB Functions: Get, GetFirst, GetNext + +// INPUT DATA: IPX_MIB_INPUT_DATA with Index SERVICES_TABLE_INDEX + +// OUTPUT DATA: The output data is the structure IPX_SERVICE + +// +// *** IPX Static Services Table *** +// + +// MIB Functions: Create, Delete, Get, GetFirst, GetNext + +// INPUT DATA: IPX_MIB_GET_INPUT_DATA with Index STATIC_SERVICES_TABLE_INDEX for Get, GetFirst, GetNext +// IPX_MIB_SET_INPUT_DATA and MibRow is IPX_SERVICE for Create, Delete and Set. + +// OUTPUT DATA: IPX_SERVICE + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _IPXRTDEF_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxsap.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxsap.h new file mode 100644 index 0000000000000000000000000000000000000000..0fbc19e4f95f5d834c99b9197ecd4c5cae2e4aa7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxsap.h @@ -0,0 +1,231 @@ +/*++ + +Copyright (c) 1995-1999 Microsoft Corporation + +Module Name: + + ipxsap.h + +Abstract: + + This module contains the definitions of the: + + interface management APIs structures + sap global management APIs structures + sap MIB management APIs structures + +Author: + + Stefan Solomon 06/30/1995 + +Revision History: + + +--*/ + +#ifndef _IPXSAP_ +#define _IPXSAP_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include + +typedef struct _SAP_GLOBAL_INFO { + DWORD EventLogMask; +} SAP_GLOBAL_INFO, *PSAP_GLOBAL_INFO; + +//******************************************************************** +// * +// SAP Configuration Information * +// * +//******************************************************************** + +//*** SAP Interface Configuration Information *** + +typedef struct _SAP_IF_INFO { + + ULONG AdminState; // The desired state of the interface + ULONG UpdateMode; // SAP update mechanism used on this interface + ULONG PacketType; // The SAP packet type used on this interface + ULONG Supply; // Send SAP updates on this interface + ULONG Listen; // Listen to SAP updates on this interface + ULONG GetNearestServerReply; // Reply to GetNearestServer + ULONG PeriodicUpdateInterval; // in seconds - default 60 + ULONG AgeIntervalMultiplier; // default 3 + + } SAP_IF_INFO, *PSAP_IF_INFO; + +// UpdateMode Values: +// +// This parameter controls the SAP database update on this interface. +// +// If this is a LAN interface, use IPX_PERIODIC_UPDATE as default. +// If this is a WAN router interface with static routes, use IPX_NO_UPDATE as default. +// If you want to trigger an update on this interface and to keep the data +// as static data, use IPX_AUTO_STATIC value. +// IPX_AUTO_STATIC update can be set only on a WAN interface +// +// PacketType Default Values: +// +// If UpdateMode is set to IPX_NO_UPDATE, this field is meaningless. +// If this is a LAN interface, use IPX_STANDARD_PACKET_TYPE as default. +// If you want reliable delivery of the update data in a triggered update, +// use IPX_RELIABLE_DELIVERY_PACKET_TYPE (this can be set only in combination with +// IPX_AUTO_STATIC_UPDATE in the UpdateMode). + + +// IPX Service Filter Info +// + +typedef struct _SAP_SERVICE_FILTER_INFO { + union { + USHORT ServiceType; + ULONG ServiceType_align; // Ensures aligment + }; + UCHAR ServiceName[48]; + } SAP_SERVICE_FILTER_INFO, *PSAP_SERVICE_FILTER_INFO; + +// ServiceType - a wildcard (0xFFFF) means any type. + +// ServiceName - (1-47)chars service name. A null byte as the first byte +// signifies ANY server of this type + +//*** SAP Filters Only Information *** + +typedef struct _SAP_IF_FILTERS { + + ULONG SupplyFilterAction; + ULONG SupplyFilterCount; + ULONG ListenFilterAction; + ULONG ListenFilterCount; + SAP_SERVICE_FILTER_INFO ServiceFilter[1]; + + } SAP_IF_FILTERS, *PSAP_IF_FILTERS; + +// FilterAction - + +#define IPX_SERVICE_FILTER_PERMIT 1 +#define IPX_SERVICE_FILTER_DENY 2 + +// +//*** SAP Interface Configuration Information *** +// +// This structure is passed in AddInterface and SetInterface Entry Points +// + +typedef struct _SAP_IF_CONFIG { + + SAP_IF_INFO SapIfInfo; + SAP_IF_FILTERS SapIfFilters; + + } SAP_IF_CONFIG, *PSAP_IF_CONFIG; + + +// *********************************************************** +// *** *** +// *** SAP MIB Table Identifiers *** +// *** *** +// *********************************************************** + + +#define SAP_BASE_ENTRY 0 +#define SAP_INTERFACE_TABLE 1 + +//************************************************************ +// * +// SAP MIB Basic Structures * +// * +//************************************************************ + +// +// SAP MIB Base Entry +// + +typedef struct _SAP_MIB_BASE { + + ULONG SapOperState; + + } SAP_MIB_BASE, *PSAP_MIB_BASE; + + +// +// SAP MIB Interface Table Entry +// + +typedef struct _SAP_IF_STATS { + + ULONG SapIfOperState; // up, down or sleeping + ULONG SapIfInputPackets; + ULONG SapIfOutputPackets; + + } SAP_IF_STATS, *PSAP_IF_STATS; + + +typedef struct _SAP_INTERFACE { + + ULONG InterfaceIndex; + SAP_IF_INFO SapIfInfo; + SAP_IF_STATS SapIfStats; + + } SAP_INTERFACE, *PSAP_INTERFACE; + +//*************************************************************** +// * +// INPUT DATA For: Get, GetFirst, GetNext * +// * +//*************************************************************** + +typedef struct _SAP_MIB_GET_INPUT_DATA { + + ULONG TableId; + ULONG InterfaceIndex; + + } SAP_MIB_GET_INPUT_DATA, *PSAP_MIB_GET_INPUT_DATA; + +//*************************************************************** +// * +// INPUT DATA For: Create, Delete, Set * +// * +//*************************************************************** + +typedef struct _SAP_MIB_SET_INPUT_DATA { + + ULONG TableId; + SAP_INTERFACE SapInterface; + } SAP_MIB_SET_INPUT_DATA, *PSAP_MIB_SET_INPUT_DATA; + +// +// *** SAP Base Entry *** +// + +// MIB Functions: Get + +// INPUT DATA: SAP_MIB_GET_INPUT_DATA and Index is not used + +// OUTPUT DATA: SAP_INTERFACE + +// +// *** SAP Interface Table *** +// + +// MIB Functions: Get, GetFirst, GetNext, Set + +// INPUT DATA: SAP_MIB_GET_INPUT_DATA for Get, GetFirst and GetNext +// SAP_MIB_SET_INPUT_DATA for Set + +// +// OUTPUT DATA: SAP_INTERFACE +// + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxtfflt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxtfflt.h new file mode 100644 index 0000000000000000000000000000000000000000..a4ba0ba398633c7649d70de74eac5c3101498dc9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Ipxtfflt.h @@ -0,0 +1,86 @@ +/* +Copyright (c) 1995-1999 Microsoft Corporation + File ipxfltdf.h + + Defines structures used with the ipx filter driver. +*/ + +#ifndef __ipxfltdf_h +#define __ipxfltdf_h + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +//*** IPX Traffic Filters *** +typedef struct _IPX_TRAFFIC_FILTER_GLOBAL_INFO { + ULONG FilterAction; // Action if there is a match with + // any filter on the interface +} IPX_TRAFFIC_FILTER_GLOBAL_INFO, *PIPX_TRAFFIC_FILTER_GLOBAL_INFO; + +// FilterAction + +#define IPX_TRAFFIC_FILTER_ACTION_PERMIT 1 +#define IPX_TRAFFIC_FILTER_ACTION_DENY 2 + +// general traffic filter info structure + +typedef struct _IPX_TRAFFIC_FILTER_INFO { + + ULONG FilterDefinition; + UCHAR DestinationNetwork[4]; + UCHAR DestinationNetworkMask[4]; + UCHAR DestinationNode[6]; + UCHAR DestinationSocket[2]; + UCHAR SourceNetwork[4]; + UCHAR SourceNetworkMask[4]; + UCHAR SourceNode[6]; + UCHAR SourceSocket[2]; + UCHAR PacketType; + } IPX_TRAFFIC_FILTER_INFO, *PIPX_TRAFFIC_FILTER_INFO; + +// FilterDefinition - Flags to specify relevant IPX address fields to filter on +#define IPX_TRAFFIC_FILTER_ON_SRCNET 0x00000001 +#define IPX_TRAFFIC_FILTER_ON_SRCNODE 0x00000002 +#define IPX_TRAFFIC_FILTER_ON_SRCSOCKET 0x00000004 + +#define IPX_TRAFFIC_FILTER_ON_DSTNET 0x00000010 +#define IPX_TRAFFIC_FILTER_ON_DSTNODE 0x00000020 +#define IPX_TRAFFIC_FILTER_ON_DSTSOCKET 0x00000040 + +#define IPX_TRAFFIC_FILTER_ON_PKTTYPE 0x00000100 +#define IPX_TRAFFIC_FILTER_LOG_MATCHES 0x80000000 + +typedef struct _FLT_IF_SET_PARAMS { + ULONG InterfaceIndex; // Index of the interface + ULONG FilterAction; // Filter action + ULONG FilterSize; // sizeof (IPX_TRAFFIC_FILTER_INFO) +} FLT_IF_SET_PARAMS, *PFLT_IF_SET_PARAMS; + +typedef struct _FLT_IF_GET_PARAMS { + ULONG FilterAction; // Filter action + ULONG FilterSize; // sizeof (IPX_TRAFFIC_FILTER_INFO) + ULONG TotalSize; // Total size of filter description + // array +} FLT_IF_GET_PARAMS, *PFLT_IF_GET_PARAMS; + +typedef struct _FLT_PACKET_LOG { + ULONG SrcIfIdx; // Index of source if (-1 - unknown) + ULONG DstIfIdx; // Index of dest if (-1 - unknown) + USHORT DataSize; // Total size of the data (at least 30) + USHORT SeqNum; // Sequence number to account for + // packets lost to lack of buffer space + UCHAR Header[30]; // IPX packet header followed by the + // data if any +} FLT_PACKET_LOG, *PFLT_PACKET_LOG; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsGuids.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsGuids.h new file mode 100644 index 0000000000000000000000000000000000000000..2c1d545f88b4765501d0e541fd1d4e707a716d5f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsGuids.h @@ -0,0 +1,36 @@ +/* + * isguids.h - Internet Shortcut GUID definitions. + * + * Copyright (c) Microsoft Corporation. All rights reserved. + */ + + +/* GUIDs + ********/ + +#pragma once + +#ifndef _ISGUIDS_H_ +#define _ISGUIDS_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +DEFINE_GUID(CLSID_InternetShortcut, 0xFBF23B40L, 0xE3F0, 0x101B, 0x84, 0x88, 0x00, 0xAA, 0x00, 0x3E, 0x56, 0xF8); + +DEFINE_GUID(IID_IUniformResourceLocatorA, 0xFBF23B80L, 0xE3F0, 0x101B, 0x84, 0x88, 0x00, 0xAA, 0x00, 0x3E, 0x56, 0xF8); +DEFINE_GUID(IID_IUniformResourceLocatorW, 0xCABB0DA0L, 0xDA57, 0x11CF, 0x99, 0x74, 0x00, 0x20, 0xAF, 0xD7, 0x97, 0x62); + +#ifdef UNICODE +#define IID_IUniformResourceLocator IID_IUniformResourceLocatorW +#else +#define IID_IUniformResourceLocator IID_IUniformResourceLocatorA +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsolatedAppLauncher.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsolatedAppLauncher.h new file mode 100644 index 0000000000000000000000000000000000000000..5291550b227d66c0420ebe96c4b6d03bebbf94f8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsolatedAppLauncher.h @@ -0,0 +1,550 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __isolatedapplauncher_h__ +#define __isolatedapplauncher_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IIsolatedAppLauncher_FWD_DEFINED__ +#define __IIsolatedAppLauncher_FWD_DEFINED__ +typedef interface IIsolatedAppLauncher IIsolatedAppLauncher; + +#endif /* __IIsolatedAppLauncher_FWD_DEFINED__ */ + + +#ifndef __IsolatedAppLauncher_FWD_DEFINED__ +#define __IsolatedAppLauncher_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IsolatedAppLauncher IsolatedAppLauncher; +#else +typedef struct IsolatedAppLauncher IsolatedAppLauncher; +#endif /* __cplusplus */ + +#endif /* __IsolatedAppLauncher_FWD_DEFINED__ */ + + +#ifndef __IIsolatedProcessLauncher_FWD_DEFINED__ +#define __IIsolatedProcessLauncher_FWD_DEFINED__ +typedef interface IIsolatedProcessLauncher IIsolatedProcessLauncher; + +#endif /* __IIsolatedProcessLauncher_FWD_DEFINED__ */ + + +#ifndef __IIsolatedProcessLauncher2_FWD_DEFINED__ +#define __IIsolatedProcessLauncher2_FWD_DEFINED__ +typedef interface IIsolatedProcessLauncher2 IIsolatedProcessLauncher2; + +#endif /* __IIsolatedProcessLauncher2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_isolatedapplauncher_0000_0000 */ +/* [local] */ + +#pragma warning(disable: 4995) +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef struct _IsolatedAppLauncherTelemetryParameters + { + BOOL EnableForLaunch; + GUID CorrelationGUID; + } IsolatedAppLauncherTelemetryParameters; + +#pragma deprecated(IsolatedAppLauncherTelemetryParameters) + + +extern RPC_IF_HANDLE __MIDL_itf_isolatedapplauncher_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_isolatedapplauncher_0000_0000_v0_0_s_ifspec; + +#ifndef __IIsolatedAppLauncher_INTERFACE_DEFINED__ +#define __IIsolatedAppLauncher_INTERFACE_DEFINED__ + +/* interface IIsolatedAppLauncher */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IIsolatedAppLauncher; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F686878F-7B42-4CC4-96FB-F4F3B6E3D24D") + IIsolatedAppLauncher : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Launch( + /* [string][in] */ __RPC__in_string LPCWSTR appUserModelId, + /* [string][in] */ __RPC__in_string LPCWSTR arguments, + /* [in] */ __RPC__in const IsolatedAppLauncherTelemetryParameters *telemetryParameters) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsolatedAppLauncherVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIsolatedAppLauncher * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIsolatedAppLauncher * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIsolatedAppLauncher * This); + + DECLSPEC_XFGVIRT(IIsolatedAppLauncher, Launch) + HRESULT ( STDMETHODCALLTYPE *Launch )( + __RPC__in IIsolatedAppLauncher * This, + /* [string][in] */ __RPC__in_string LPCWSTR appUserModelId, + /* [string][in] */ __RPC__in_string LPCWSTR arguments, + /* [in] */ __RPC__in const IsolatedAppLauncherTelemetryParameters *telemetryParameters); + + END_INTERFACE + } IIsolatedAppLauncherVtbl; + + interface IIsolatedAppLauncher + { + CONST_VTBL struct IIsolatedAppLauncherVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsolatedAppLauncher_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsolatedAppLauncher_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsolatedAppLauncher_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsolatedAppLauncher_Launch(This,appUserModelId,arguments,telemetryParameters) \ + ( (This)->lpVtbl -> Launch(This,appUserModelId,arguments,telemetryParameters) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsolatedAppLauncher_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_isolatedapplauncher_0000_0001 */ +/* [local] */ + +#pragma deprecated(IIsolatedAppLauncher) + + +extern RPC_IF_HANDLE __MIDL_itf_isolatedapplauncher_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_isolatedapplauncher_0000_0001_v0_0_s_ifspec; + + +#ifndef __IsolatedAppLauncherLibrary_LIBRARY_DEFINED__ +#define __IsolatedAppLauncherLibrary_LIBRARY_DEFINED__ + +/* library IsolatedAppLauncherLibrary */ +/* [version][uuid] */ + + +EXTERN_C const IID LIBID_IsolatedAppLauncherLibrary; + +EXTERN_C const CLSID CLSID_IsolatedAppLauncher; + +#ifdef __cplusplus + +class DECLSPEC_UUID("BC812430-E75E-4FD1-9641-1F9F1E2D9A1F") +IsolatedAppLauncher; +#endif +#endif /* __IsolatedAppLauncherLibrary_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_isolatedapplauncher_0000_0002 */ +/* [local] */ + +#pragma deprecated(IsolatedAppLauncherLibrary) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) +__declspec(deprecated("IsProcessInWDAGContainer is deprecated and might not work on all platforms. For more info, see MSDN.")) +STDAPI IsProcessInWDAGContainer(_In_ PVOID Reserved, _Out_ BOOL * isProcessInWDAGContainer); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) +__declspec(deprecated("IsProcessInIsolatedContainer is deprecated and might not work on all platforms. For more info, see MSDN.")) +STDAPI IsProcessInIsolatedContainer(_Out_ BOOL *isProcessInIsolatedContainer); +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#if (NTDDI_VERSION >= NTDDI_WIN10_NI) + + +extern RPC_IF_HANDLE __MIDL_itf_isolatedapplauncher_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_isolatedapplauncher_0000_0002_v0_0_s_ifspec; + +#ifndef __IIsolatedProcessLauncher_INTERFACE_DEFINED__ +#define __IIsolatedProcessLauncher_INTERFACE_DEFINED__ + +/* interface IIsolatedProcessLauncher */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IIsolatedProcessLauncher; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1aa24232-9a91-4201-88cb-122f9d6522e0") + IIsolatedProcessLauncher : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE LaunchProcess( + /* [string][in] */ __RPC__in_string LPCWSTR process, + /* [string][in] */ __RPC__in_string LPCWSTR arguments, + /* [string][in] */ __RPC__in_string LPCWSTR workingDirectory) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShareDirectory( + /* [string][in] */ __RPC__in_string LPCWSTR hostPath, + /* [string][in] */ __RPC__in_string LPCWSTR containerPath, + /* [in] */ BOOL readOnly) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContainerGuid( + /* [out] */ __RPC__out GUID *guid) = 0; + + virtual HRESULT STDMETHODCALLTYPE AllowSetForegroundAccess( + /* [in] */ UINT pid) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsContainerRunning( + /* [out] */ __RPC__out BOOL *running) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsolatedProcessLauncherVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIsolatedProcessLauncher * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIsolatedProcessLauncher * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIsolatedProcessLauncher * This); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher, LaunchProcess) + HRESULT ( STDMETHODCALLTYPE *LaunchProcess )( + __RPC__in IIsolatedProcessLauncher * This, + /* [string][in] */ __RPC__in_string LPCWSTR process, + /* [string][in] */ __RPC__in_string LPCWSTR arguments, + /* [string][in] */ __RPC__in_string LPCWSTR workingDirectory); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher, ShareDirectory) + HRESULT ( STDMETHODCALLTYPE *ShareDirectory )( + __RPC__in IIsolatedProcessLauncher * This, + /* [string][in] */ __RPC__in_string LPCWSTR hostPath, + /* [string][in] */ __RPC__in_string LPCWSTR containerPath, + /* [in] */ BOOL readOnly); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher, GetContainerGuid) + HRESULT ( STDMETHODCALLTYPE *GetContainerGuid )( + __RPC__in IIsolatedProcessLauncher * This, + /* [out] */ __RPC__out GUID *guid); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher, AllowSetForegroundAccess) + HRESULT ( STDMETHODCALLTYPE *AllowSetForegroundAccess )( + __RPC__in IIsolatedProcessLauncher * This, + /* [in] */ UINT pid); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher, IsContainerRunning) + HRESULT ( STDMETHODCALLTYPE *IsContainerRunning )( + __RPC__in IIsolatedProcessLauncher * This, + /* [out] */ __RPC__out BOOL *running); + + END_INTERFACE + } IIsolatedProcessLauncherVtbl; + + interface IIsolatedProcessLauncher + { + CONST_VTBL struct IIsolatedProcessLauncherVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsolatedProcessLauncher_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsolatedProcessLauncher_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsolatedProcessLauncher_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsolatedProcessLauncher_LaunchProcess(This,process,arguments,workingDirectory) \ + ( (This)->lpVtbl -> LaunchProcess(This,process,arguments,workingDirectory) ) + +#define IIsolatedProcessLauncher_ShareDirectory(This,hostPath,containerPath,readOnly) \ + ( (This)->lpVtbl -> ShareDirectory(This,hostPath,containerPath,readOnly) ) + +#define IIsolatedProcessLauncher_GetContainerGuid(This,guid) \ + ( (This)->lpVtbl -> GetContainerGuid(This,guid) ) + +#define IIsolatedProcessLauncher_AllowSetForegroundAccess(This,pid) \ + ( (This)->lpVtbl -> AllowSetForegroundAccess(This,pid) ) + +#define IIsolatedProcessLauncher_IsContainerRunning(This,running) \ + ( (This)->lpVtbl -> IsContainerRunning(This,running) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsolatedProcessLauncher_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_isolatedapplauncher_0000_0003 */ +/* [local] */ + +#pragma deprecated(IIsolatedProcessLauncher) + + +extern RPC_IF_HANDLE __MIDL_itf_isolatedapplauncher_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_isolatedapplauncher_0000_0003_v0_0_s_ifspec; + +#ifndef __IIsolatedProcessLauncher2_INTERFACE_DEFINED__ +#define __IIsolatedProcessLauncher2_INTERFACE_DEFINED__ + +/* interface IIsolatedProcessLauncher2 */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IIsolatedProcessLauncher2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("780e4416-5e72-4123-808e-66dc6479feef") + IIsolatedProcessLauncher2 : public IIsolatedProcessLauncher + { + public: + virtual HRESULT STDMETHODCALLTYPE LaunchProcess2( + /* [string][in] */ __RPC__in_string LPCWSTR process, + /* [string][in] */ __RPC__in_string LPCWSTR arguments, + /* [string][in] */ __RPC__in_string LPCWSTR workingDirectory, + /* [in] */ __RPC__in REFGUID correlationGuid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsolatedProcessLauncher2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIsolatedProcessLauncher2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIsolatedProcessLauncher2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIsolatedProcessLauncher2 * This); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher, LaunchProcess) + HRESULT ( STDMETHODCALLTYPE *LaunchProcess )( + __RPC__in IIsolatedProcessLauncher2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR process, + /* [string][in] */ __RPC__in_string LPCWSTR arguments, + /* [string][in] */ __RPC__in_string LPCWSTR workingDirectory); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher, ShareDirectory) + HRESULT ( STDMETHODCALLTYPE *ShareDirectory )( + __RPC__in IIsolatedProcessLauncher2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR hostPath, + /* [string][in] */ __RPC__in_string LPCWSTR containerPath, + /* [in] */ BOOL readOnly); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher, GetContainerGuid) + HRESULT ( STDMETHODCALLTYPE *GetContainerGuid )( + __RPC__in IIsolatedProcessLauncher2 * This, + /* [out] */ __RPC__out GUID *guid); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher, AllowSetForegroundAccess) + HRESULT ( STDMETHODCALLTYPE *AllowSetForegroundAccess )( + __RPC__in IIsolatedProcessLauncher2 * This, + /* [in] */ UINT pid); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher, IsContainerRunning) + HRESULT ( STDMETHODCALLTYPE *IsContainerRunning )( + __RPC__in IIsolatedProcessLauncher2 * This, + /* [out] */ __RPC__out BOOL *running); + + DECLSPEC_XFGVIRT(IIsolatedProcessLauncher2, LaunchProcess2) + HRESULT ( STDMETHODCALLTYPE *LaunchProcess2 )( + __RPC__in IIsolatedProcessLauncher2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR process, + /* [string][in] */ __RPC__in_string LPCWSTR arguments, + /* [string][in] */ __RPC__in_string LPCWSTR workingDirectory, + /* [in] */ __RPC__in REFGUID correlationGuid); + + END_INTERFACE + } IIsolatedProcessLauncher2Vtbl; + + interface IIsolatedProcessLauncher2 + { + CONST_VTBL struct IIsolatedProcessLauncher2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsolatedProcessLauncher2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsolatedProcessLauncher2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsolatedProcessLauncher2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsolatedProcessLauncher2_LaunchProcess(This,process,arguments,workingDirectory) \ + ( (This)->lpVtbl -> LaunchProcess(This,process,arguments,workingDirectory) ) + +#define IIsolatedProcessLauncher2_ShareDirectory(This,hostPath,containerPath,readOnly) \ + ( (This)->lpVtbl -> ShareDirectory(This,hostPath,containerPath,readOnly) ) + +#define IIsolatedProcessLauncher2_GetContainerGuid(This,guid) \ + ( (This)->lpVtbl -> GetContainerGuid(This,guid) ) + +#define IIsolatedProcessLauncher2_AllowSetForegroundAccess(This,pid) \ + ( (This)->lpVtbl -> AllowSetForegroundAccess(This,pid) ) + +#define IIsolatedProcessLauncher2_IsContainerRunning(This,running) \ + ( (This)->lpVtbl -> IsContainerRunning(This,running) ) + + +#define IIsolatedProcessLauncher2_LaunchProcess2(This,process,arguments,workingDirectory,correlationGuid) \ + ( (This)->lpVtbl -> LaunchProcess2(This,process,arguments,workingDirectory,correlationGuid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsolatedProcessLauncher2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_isolatedapplauncher_0000_0004 */ +/* [local] */ + +#pragma deprecated(IIsolatedProcessLauncher2) +#endif // NTDDI_WIN10_NI + + +extern RPC_IF_HANDLE __MIDL_itf_isolatedapplauncher_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_isolatedapplauncher_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsolatedAppLauncher.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsolatedAppLauncher.idl new file mode 100644 index 0000000000000000000000000000000000000000..a6de589263d6931ce983e2d3e9d62c28491a3bd9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsolatedAppLauncher.idl @@ -0,0 +1,124 @@ +/************************************************************* +* * +* Copyright (C) Microsoft Corporation. All rights reserved.* +* * +*************************************************************/ +cpp_quote("#pragma warning(disable: 4995)") // MDAG COM API deprecation warning + +cpp_quote("#include ") +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + + +typedef struct _IsolatedAppLauncherTelemetryParameters +{ + BOOL EnableForLaunch; // When set, call specific data will be used for telemetry. + GUID CorrelationGUID; // Data for telemetry. +} IsolatedAppLauncherTelemetryParameters; +cpp_quote("#pragma deprecated(IsolatedAppLauncherTelemetryParameters)") + +[ + object, + uuid(F686878F-7B42-4CC4-96FB-F4F3B6E3D24D), +] +interface IIsolatedAppLauncher : IUnknown +{ + HRESULT Launch( + [in, string] LPCWSTR appUserModelId, + [in, string] LPCWSTR arguments, + [in] const IsolatedAppLauncherTelemetryParameters *telemetryParameters); +} +cpp_quote("#pragma deprecated(IIsolatedAppLauncher)") + +[ + uuid(87CF5084-29D4-4C9B-9222-9A56E786EB99), + version(1.0), +] + +library IsolatedAppLauncherLibrary +{ + [ + uuid(BC812430-E75E-4FD1-9641-1F9F1E2D9A1F), + ] + coclass IsolatedAppLauncher + { + [default] + interface IIsolatedAppLauncher; + }; +} +cpp_quote("#pragma deprecated(IsolatedAppLauncherLibrary)") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region App Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_19H1)") +cpp_quote("__declspec(deprecated(\"IsProcessInWDAGContainer is deprecated and might not work on all platforms. For more info, see MSDN.\"))") +cpp_quote("STDAPI IsProcessInWDAGContainer(_In_ PVOID Reserved, _Out_ BOOL * isProcessInWDAGContainer);") +//cpp_quote("#pragma deprecated(IsProcessInWDAGContainer)") +cpp_quote("#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1)") + +cpp_quote("__declspec(deprecated(\"IsProcessInIsolatedContainer is deprecated and might not work on all platforms. For more info, see MSDN.\"))") +cpp_quote("STDAPI IsProcessInIsolatedContainer(_Out_ BOOL *isProcessInIsolatedContainer);") +//cpp_quote("#pragma deprecated(IsProcessInIsolatedContainer)") +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_NI)") +[ + object, + uuid(1aa24232-9a91-4201-88cb-122f9d6522e0) +] + +interface IIsolatedProcessLauncher : IUnknown +{ + HRESULT LaunchProcess( + [in, string] LPCWSTR process, + [in, string] LPCWSTR arguments, + [in, string] LPCWSTR workingDirectory); + + /* + ShareDirectory + This API will create/resume the container if it isn't already running. + Re-sharing a folder is a no-op. (Unspecified behavior if the readOnly + flag changes though). + */ + HRESULT ShareDirectory( + [in, string] LPCWSTR hostPath, + [in, string] LPCWSTR containerPath, + [in] BOOL readOnly); + + /* + GetContainerGuid + This will fail if the container hasn't been created yet. + */ + HRESULT GetContainerGuid( + [out] GUID* guid); + + HRESULT AllowSetForegroundAccess( + [in] UINT pid); + + HRESULT IsContainerRunning([out] BOOL *running); +} +cpp_quote("#pragma deprecated(IIsolatedProcessLauncher)") + +[ + object, + uuid(780e4416-5e72-4123-808e-66dc6479feef) +] + +interface IIsolatedProcessLauncher2 : IIsolatedProcessLauncher +{ + HRESULT LaunchProcess2( + [in, string] LPCWSTR process, + [in, string] LPCWSTR arguments, + [in, string] LPCWSTR workingDirectory, + [in] REFGUID correlationGuid); +} +cpp_quote("#pragma deprecated(IIsolatedProcessLauncher2)") +cpp_quote("#endif // NTDDI_WIN10_NI") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsolatedWindowsEnvironmentUtils.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsolatedWindowsEnvironmentUtils.h new file mode 100644 index 0000000000000000000000000000000000000000..0a0d330e32dad45a37a5b3c619f518864145711a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/IsolatedWindowsEnvironmentUtils.h @@ -0,0 +1,31 @@ +/*++ + + Copyright (c) Microsoft Corporation. All rights reserved. + +Abstract: + + Isolated Windows Environment Public Utilities. + +Author: + + Tushar Sugandhi (TusharSu) 4/10/2019 + +--*/ +#define WDAG_CLIPBOARD_TAG L"CrossIsolatedEnvironmentContent" +#pragma once + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) + +STDAPI +IsProcessInIsolatedWindowsEnvironment( + _Out_ BOOL *isProcessInIsolatedWindowsEnvironment + ); + +STDAPI +IsCrossIsolatedEnvironmentClipboardContent( + _Out_ BOOL* isCrossIsolatedEnvironmentClipboardContent +); + +#endif /* (NTDDI_VERSION >= NTDDI_WIN10_VB) */ +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iwamreg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iwamreg.h new file mode 100644 index 0000000000000000000000000000000000000000..6c8417bcc21deab56e862aa76e83c9fe5f230510 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/Iwamreg.h @@ -0,0 +1,629 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __iwamreg_h__ +#define __iwamreg_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IWamAdmin_FWD_DEFINED__ +#define __IWamAdmin_FWD_DEFINED__ +typedef interface IWamAdmin IWamAdmin; + +#endif /* __IWamAdmin_FWD_DEFINED__ */ + + +#ifndef __IWamAdmin2_FWD_DEFINED__ +#define __IWamAdmin2_FWD_DEFINED__ +typedef interface IWamAdmin2 IWamAdmin2; + +#endif /* __IWamAdmin2_FWD_DEFINED__ */ + + +#ifndef __IIISApplicationAdmin_FWD_DEFINED__ +#define __IIISApplicationAdmin_FWD_DEFINED__ +typedef interface IIISApplicationAdmin IIISApplicationAdmin; + +#endif /* __IIISApplicationAdmin_FWD_DEFINED__ */ + + +#ifndef __WamAdmin_FWD_DEFINED__ +#define __WamAdmin_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class WamAdmin WamAdmin; +#else +typedef struct WamAdmin WamAdmin; +#endif /* __cplusplus */ + +#endif /* __WamAdmin_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_wamreg_0000_0000 */ +/* [local] */ + +/*++ + +Copyright (c) 1997-2001 Microsoft Corporation + +Module Name: iwamreg.h + + WAM (Web Application Manager) Interfaces + +--*/ +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#ifndef __WAMREG_IADM__IID +#define __WAMREG_IADM__IID +DEFINE_GUID(IID_IWamAdmin, 0x29822AB7, 0xF302, 0x11D0, 0x99, 0x53, 0x00, 0xC0, 0x4F, 0xD9, 0x19, 0xC1); +DEFINE_GUID(IID_IWamAdmin2, 0x29822AB8, 0xF302, 0x11D0, 0x99, 0x53, 0x00, 0xC0, 0x4F, 0xD9, 0x19, 0xC1); +DEFINE_GUID(IID_IIISApplicationAdmin, 0x7C4E1804, 0xE342, 0x483D, 0xA4, 0x3E, 0xA8, 0x50, 0xCF, 0xCC, 0x8D, 0x18); +DEFINE_GUID(IID_IIISApplicationAdmin2, 0xd643717a, 0xfc87, 0x4260, 0x88, 0xac, 0x6c, 0xe3, 0x5f, 0x0e, 0xc1, 0x4e); +DEFINE_GUID(LIBID_WAMREGLib, 0x29822AA8, 0xF302, 0x11D0, 0x99, 0x53, 0x00, 0xC0, 0x4F, 0xD9, 0x19, 0xC1); +DEFINE_GUID(CLSID_WamAdmin, 0x61738644, 0xF196, 0x11D0, 0x99, 0x53, 0x00, 0xC0, 0x4F, 0xD9, 0x19, 0xC1); +#endif //__WAMREG_IADM__IID +#define APPSTATUS_STOPPED 0 +#define APPSTATUS_RUNNING 1 +#define APPSTATUS_NOTDEFINED 2 +typedef /* [public] */ +enum __MIDL___MIDL_itf_wamreg_0000_0000_0001 + { + eAppRunInProc = 0, + eAppRunOutProcIsolated = ( eAppRunInProc + 1 ) , + eAppRunOutProcInDefaultPool = ( eAppRunOutProcIsolated + 1 ) + } EAppMode; + + + +extern RPC_IF_HANDLE __MIDL_itf_wamreg_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_wamreg_0000_0000_v0_0_s_ifspec; + +#ifndef __IWamAdmin_INTERFACE_DEFINED__ +#define __IWamAdmin_INTERFACE_DEFINED__ + +/* interface IWamAdmin */ +/* [object][unique][helpstring][uuid] */ + + +EXTERN_C const IID IID_IWamAdmin; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("29822AB7-F302-11D0-9953-00C04FD919C1") + IWamAdmin : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AppCreate( + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fInProc) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AppDelete( + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AppUnLoad( + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AppGetStatus( + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [out] */ DWORD *pdwAppStatus) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AppDeleteRecoverable( + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AppRecover( + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWamAdminVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IWamAdmin * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IWamAdmin * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IWamAdmin * This); + + DECLSPEC_XFGVIRT(IWamAdmin, AppCreate) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppCreate )( + IWamAdmin * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fInProc); + + DECLSPEC_XFGVIRT(IWamAdmin, AppDelete) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppDelete )( + IWamAdmin * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive); + + DECLSPEC_XFGVIRT(IWamAdmin, AppUnLoad) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppUnLoad )( + IWamAdmin * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive); + + DECLSPEC_XFGVIRT(IWamAdmin, AppGetStatus) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppGetStatus )( + IWamAdmin * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [out] */ DWORD *pdwAppStatus); + + DECLSPEC_XFGVIRT(IWamAdmin, AppDeleteRecoverable) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppDeleteRecoverable )( + IWamAdmin * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive); + + DECLSPEC_XFGVIRT(IWamAdmin, AppRecover) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppRecover )( + IWamAdmin * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive); + + END_INTERFACE + } IWamAdminVtbl; + + interface IWamAdmin + { + CONST_VTBL struct IWamAdminVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWamAdmin_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWamAdmin_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWamAdmin_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWamAdmin_AppCreate(This,szMDPath,fInProc) \ + ( (This)->lpVtbl -> AppCreate(This,szMDPath,fInProc) ) + +#define IWamAdmin_AppDelete(This,szMDPath,fRecursive) \ + ( (This)->lpVtbl -> AppDelete(This,szMDPath,fRecursive) ) + +#define IWamAdmin_AppUnLoad(This,szMDPath,fRecursive) \ + ( (This)->lpVtbl -> AppUnLoad(This,szMDPath,fRecursive) ) + +#define IWamAdmin_AppGetStatus(This,szMDPath,pdwAppStatus) \ + ( (This)->lpVtbl -> AppGetStatus(This,szMDPath,pdwAppStatus) ) + +#define IWamAdmin_AppDeleteRecoverable(This,szMDPath,fRecursive) \ + ( (This)->lpVtbl -> AppDeleteRecoverable(This,szMDPath,fRecursive) ) + +#define IWamAdmin_AppRecover(This,szMDPath,fRecursive) \ + ( (This)->lpVtbl -> AppRecover(This,szMDPath,fRecursive) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWamAdmin_INTERFACE_DEFINED__ */ + + +#ifndef __IWamAdmin2_INTERFACE_DEFINED__ +#define __IWamAdmin2_INTERFACE_DEFINED__ + +/* interface IWamAdmin2 */ +/* [object][unique][helpstring][uuid] */ + + +EXTERN_C const IID IID_IWamAdmin2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("29822AB8-F302-11D0-9953-00C04FD919C1") + IWamAdmin2 : public IWamAdmin + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AppCreate2( + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ DWORD dwAppMode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWamAdmin2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IWamAdmin2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IWamAdmin2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IWamAdmin2 * This); + + DECLSPEC_XFGVIRT(IWamAdmin, AppCreate) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppCreate )( + IWamAdmin2 * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fInProc); + + DECLSPEC_XFGVIRT(IWamAdmin, AppDelete) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppDelete )( + IWamAdmin2 * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive); + + DECLSPEC_XFGVIRT(IWamAdmin, AppUnLoad) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppUnLoad )( + IWamAdmin2 * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive); + + DECLSPEC_XFGVIRT(IWamAdmin, AppGetStatus) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppGetStatus )( + IWamAdmin2 * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [out] */ DWORD *pdwAppStatus); + + DECLSPEC_XFGVIRT(IWamAdmin, AppDeleteRecoverable) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppDeleteRecoverable )( + IWamAdmin2 * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive); + + DECLSPEC_XFGVIRT(IWamAdmin, AppRecover) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppRecover )( + IWamAdmin2 * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive); + + DECLSPEC_XFGVIRT(IWamAdmin2, AppCreate2) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AppCreate2 )( + IWamAdmin2 * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ DWORD dwAppMode); + + END_INTERFACE + } IWamAdmin2Vtbl; + + interface IWamAdmin2 + { + CONST_VTBL struct IWamAdmin2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWamAdmin2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWamAdmin2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWamAdmin2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWamAdmin2_AppCreate(This,szMDPath,fInProc) \ + ( (This)->lpVtbl -> AppCreate(This,szMDPath,fInProc) ) + +#define IWamAdmin2_AppDelete(This,szMDPath,fRecursive) \ + ( (This)->lpVtbl -> AppDelete(This,szMDPath,fRecursive) ) + +#define IWamAdmin2_AppUnLoad(This,szMDPath,fRecursive) \ + ( (This)->lpVtbl -> AppUnLoad(This,szMDPath,fRecursive) ) + +#define IWamAdmin2_AppGetStatus(This,szMDPath,pdwAppStatus) \ + ( (This)->lpVtbl -> AppGetStatus(This,szMDPath,pdwAppStatus) ) + +#define IWamAdmin2_AppDeleteRecoverable(This,szMDPath,fRecursive) \ + ( (This)->lpVtbl -> AppDeleteRecoverable(This,szMDPath,fRecursive) ) + +#define IWamAdmin2_AppRecover(This,szMDPath,fRecursive) \ + ( (This)->lpVtbl -> AppRecover(This,szMDPath,fRecursive) ) + + +#define IWamAdmin2_AppCreate2(This,szMDPath,dwAppMode) \ + ( (This)->lpVtbl -> AppCreate2(This,szMDPath,dwAppMode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWamAdmin2_INTERFACE_DEFINED__ */ + + +#ifndef __IIISApplicationAdmin_INTERFACE_DEFINED__ +#define __IIISApplicationAdmin_INTERFACE_DEFINED__ + +/* interface IIISApplicationAdmin */ +/* [object][unique][helpstring][uuid] */ + + +EXTERN_C const IID IID_IIISApplicationAdmin; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7C4E1804-E342-483D-A43E-A850CFCC8D18") + IIISApplicationAdmin : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateApplication( + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ DWORD dwAppMode, + /* [string][unique][in] */ LPCWSTR szAppPoolId, + /* [in] */ BOOL fCreatePool) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE DeleteApplication( + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateApplicationPool( + /* [string][unique][in] */ LPCWSTR szPool) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE DeleteApplicationPool( + /* [string][unique][in] */ LPCWSTR szPool) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EnumerateApplicationsInPool( + /* [string][unique][in] */ LPCWSTR szPool, + /* [out] */ BSTR *bstrBuffer) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RecycleApplicationPool( + /* [string][unique][in] */ LPCWSTR szPool) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetProcessMode( + /* [out] */ DWORD *pdwMode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIISApplicationAdminVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIISApplicationAdmin * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIISApplicationAdmin * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIISApplicationAdmin * This); + + DECLSPEC_XFGVIRT(IIISApplicationAdmin, CreateApplication) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateApplication )( + IIISApplicationAdmin * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ DWORD dwAppMode, + /* [string][unique][in] */ LPCWSTR szAppPoolId, + /* [in] */ BOOL fCreatePool); + + DECLSPEC_XFGVIRT(IIISApplicationAdmin, DeleteApplication) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *DeleteApplication )( + IIISApplicationAdmin * This, + /* [string][unique][in] */ LPCWSTR szMDPath, + /* [in] */ BOOL fRecursive); + + DECLSPEC_XFGVIRT(IIISApplicationAdmin, CreateApplicationPool) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateApplicationPool )( + IIISApplicationAdmin * This, + /* [string][unique][in] */ LPCWSTR szPool); + + DECLSPEC_XFGVIRT(IIISApplicationAdmin, DeleteApplicationPool) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *DeleteApplicationPool )( + IIISApplicationAdmin * This, + /* [string][unique][in] */ LPCWSTR szPool); + + DECLSPEC_XFGVIRT(IIISApplicationAdmin, EnumerateApplicationsInPool) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumerateApplicationsInPool )( + IIISApplicationAdmin * This, + /* [string][unique][in] */ LPCWSTR szPool, + /* [out] */ BSTR *bstrBuffer); + + DECLSPEC_XFGVIRT(IIISApplicationAdmin, RecycleApplicationPool) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RecycleApplicationPool )( + IIISApplicationAdmin * This, + /* [string][unique][in] */ LPCWSTR szPool); + + DECLSPEC_XFGVIRT(IIISApplicationAdmin, GetProcessMode) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetProcessMode )( + IIISApplicationAdmin * This, + /* [out] */ DWORD *pdwMode); + + END_INTERFACE + } IIISApplicationAdminVtbl; + + interface IIISApplicationAdmin + { + CONST_VTBL struct IIISApplicationAdminVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIISApplicationAdmin_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIISApplicationAdmin_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIISApplicationAdmin_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIISApplicationAdmin_CreateApplication(This,szMDPath,dwAppMode,szAppPoolId,fCreatePool) \ + ( (This)->lpVtbl -> CreateApplication(This,szMDPath,dwAppMode,szAppPoolId,fCreatePool) ) + +#define IIISApplicationAdmin_DeleteApplication(This,szMDPath,fRecursive) \ + ( (This)->lpVtbl -> DeleteApplication(This,szMDPath,fRecursive) ) + +#define IIISApplicationAdmin_CreateApplicationPool(This,szPool) \ + ( (This)->lpVtbl -> CreateApplicationPool(This,szPool) ) + +#define IIISApplicationAdmin_DeleteApplicationPool(This,szPool) \ + ( (This)->lpVtbl -> DeleteApplicationPool(This,szPool) ) + +#define IIISApplicationAdmin_EnumerateApplicationsInPool(This,szPool,bstrBuffer) \ + ( (This)->lpVtbl -> EnumerateApplicationsInPool(This,szPool,bstrBuffer) ) + +#define IIISApplicationAdmin_RecycleApplicationPool(This,szPool) \ + ( (This)->lpVtbl -> RecycleApplicationPool(This,szPool) ) + +#define IIISApplicationAdmin_GetProcessMode(This,pdwMode) \ + ( (This)->lpVtbl -> GetProcessMode(This,pdwMode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIISApplicationAdmin_INTERFACE_DEFINED__ */ + + + +#ifndef __WAMREGLib_LIBRARY_DEFINED__ +#define __WAMREGLib_LIBRARY_DEFINED__ + +/* library WAMREGLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_WAMREGLib; + +EXTERN_C const CLSID CLSID_WamAdmin; + +#ifdef __cplusplus + +class DECLSPEC_UUID("61738644-F196-11D0-9953-00C04FD919C1") +WamAdmin; +#endif +#endif /* __WAMREGLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_wamreg_0000_0004 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_wamreg_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_wamreg_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); +void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( unsigned long *, unsigned long , BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(unsigned long *, unsigned char *, BSTR * ); +void __RPC_USER BSTR_UserFree64( unsigned long *, BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/KnownFolders.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/KnownFolders.h new file mode 100644 index 0000000000000000000000000000000000000000..4f5d3905f6b7372038a5af891a185ac312506e67 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/KnownFolders.h @@ -0,0 +1,469 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef DEFINE_KNOWN_FOLDER +#undef DEFINE_KNOWN_FOLDER +#endif + +#if defined(INITGUID) || defined(INITKNOWNFOLDERS) +#define DEFINE_KNOWN_FOLDER(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ + EXTERN_C const GUID DECLSPEC_SELECTANY name \ + = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } +#else +#define DEFINE_KNOWN_FOLDER(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ + EXTERN_C const GUID name +#endif // INITGUID || INITKNOWNFOLDERS + +// legacy CSIDL value: CSIDL_NETWORK +// display name: "Network" +// legacy display name: "My Network Places" +// default path: +// {D20BEEC4-5CA8-4905-AE3B-BF251EA09B53} +DEFINE_KNOWN_FOLDER(FOLDERID_NetworkFolder, 0xD20BEEC4, 0x5CA8, 0x4905, 0xAE, 0x3B, 0xBF, 0x25, 0x1E, 0xA0, 0x9B, 0x53); + +// {0AC0837C-BBF8-452A-850D-79D08E667CA7} +DEFINE_KNOWN_FOLDER(FOLDERID_ComputerFolder, 0x0AC0837C, 0xBBF8, 0x452A, 0x85, 0x0D, 0x79, 0xD0, 0x8E, 0x66, 0x7C, 0xA7); + +// {4D9F7874-4E0C-4904-967B-40B0D20C3E4B} +DEFINE_KNOWN_FOLDER(FOLDERID_InternetFolder, 0x4D9F7874, 0x4E0C, 0x4904, 0x96, 0x7B, 0x40, 0xB0, 0xD2, 0x0C, 0x3E, 0x4B); + +// {82A74AEB-AEB4-465C-A014-D097EE346D63} +DEFINE_KNOWN_FOLDER(FOLDERID_ControlPanelFolder, 0x82A74AEB, 0xAEB4, 0x465C, 0xA0, 0x14, 0xD0, 0x97, 0xEE, 0x34, 0x6D, 0x63); + +// {76FC4E2D-D6AD-4519-A663-37BD56068185} +DEFINE_KNOWN_FOLDER(FOLDERID_PrintersFolder, 0x76FC4E2D, 0xD6AD, 0x4519, 0xA6, 0x63, 0x37, 0xBD, 0x56, 0x06, 0x81, 0x85); + +// {43668BF8-C14E-49B2-97C9-747784D784B7} +DEFINE_KNOWN_FOLDER(FOLDERID_SyncManagerFolder, 0x43668BF8, 0xC14E, 0x49B2, 0x97, 0xC9, 0x74, 0x77, 0x84, 0xD7, 0x84, 0xB7); + +// {0F214138-B1D3-4a90-BBA9-27CBC0C5389A} +DEFINE_KNOWN_FOLDER(FOLDERID_SyncSetupFolder, 0xf214138, 0xb1d3, 0x4a90, 0xbb, 0xa9, 0x27, 0xcb, 0xc0, 0xc5, 0x38, 0x9a); + +// {4bfefb45-347d-4006-a5be-ac0cb0567192} +DEFINE_KNOWN_FOLDER(FOLDERID_ConflictFolder, 0x4bfefb45, 0x347d, 0x4006, 0xa5, 0xbe, 0xac, 0x0c, 0xb0, 0x56, 0x71, 0x92); + +// {289a9a43-be44-4057-a41b-587a76d7e7f9} +DEFINE_KNOWN_FOLDER(FOLDERID_SyncResultsFolder, 0x289a9a43, 0xbe44, 0x4057, 0xa4, 0x1b, 0x58, 0x7a, 0x76, 0xd7, 0xe7, 0xf9); + +// {B7534046-3ECB-4C18-BE4E-64CD4CB7D6AC} +DEFINE_KNOWN_FOLDER(FOLDERID_RecycleBinFolder, 0xB7534046, 0x3ECB, 0x4C18, 0xBE, 0x4E, 0x64, 0xCD, 0x4C, 0xB7, 0xD6, 0xAC); + +// {6F0CD92B-2E97-45D1-88FF-B0D186B8DEDD} +DEFINE_KNOWN_FOLDER(FOLDERID_ConnectionsFolder, 0x6F0CD92B, 0x2E97, 0x45D1, 0x88, 0xFF, 0xB0, 0xD1, 0x86, 0xB8, 0xDE, 0xDD); + +// {FD228CB7-AE11-4AE3-864C-16F3910AB8FE} +DEFINE_KNOWN_FOLDER(FOLDERID_Fonts, 0xFD228CB7, 0xAE11, 0x4AE3, 0x86, 0x4C, 0x16, 0xF3, 0x91, 0x0A, 0xB8, 0xFE); + +// display name: "Desktop" +// default path: "C:\Users\\Desktop" +// legacy default path: "C:\Documents and Settings\\Desktop" +// legacy CSIDL value: CSIDL_DESKTOP +// {B4BFCC3A-DB2C-424C-B029-7FE99A87C641} +DEFINE_KNOWN_FOLDER(FOLDERID_Desktop, 0xB4BFCC3A, 0xDB2C, 0x424C, 0xB0, 0x29, 0x7F, 0xE9, 0x9A, 0x87, 0xC6, 0x41); + +// {B97D20BB-F46A-4C97-BA10-5E3608430854} +DEFINE_KNOWN_FOLDER(FOLDERID_Startup, 0xB97D20BB, 0xF46A, 0x4C97, 0xBA, 0x10, 0x5E, 0x36, 0x08, 0x43, 0x08, 0x54); + +// {A77F5D77-2E2B-44C3-A6A2-ABA601054A51} +DEFINE_KNOWN_FOLDER(FOLDERID_Programs, 0xA77F5D77, 0x2E2B, 0x44C3, 0xA6, 0xA2, 0xAB, 0xA6, 0x01, 0x05, 0x4A, 0x51); + +// {625B53C3-AB48-4EC1-BA1F-A1EF4146FC19} +DEFINE_KNOWN_FOLDER(FOLDERID_StartMenu, 0x625B53C3, 0xAB48, 0x4EC1, 0xBA, 0x1F, 0xA1, 0xEF, 0x41, 0x46, 0xFC, 0x19); + +// {AE50C081-EBD2-438A-8655-8A092E34987A} +DEFINE_KNOWN_FOLDER(FOLDERID_Recent, 0xAE50C081, 0xEBD2, 0x438A, 0x86, 0x55, 0x8A, 0x09, 0x2E, 0x34, 0x98, 0x7A); + +// {8983036C-27C0-404B-8F08-102D10DCFD74} +DEFINE_KNOWN_FOLDER(FOLDERID_SendTo, 0x8983036C, 0x27C0, 0x404B, 0x8F, 0x08, 0x10, 0x2D, 0x10, 0xDC, 0xFD, 0x74); + +// {FDD39AD0-238F-46AF-ADB4-6C85480369C7} +DEFINE_KNOWN_FOLDER(FOLDERID_Documents, 0xFDD39AD0, 0x238F, 0x46AF, 0xAD, 0xB4, 0x6C, 0x85, 0x48, 0x03, 0x69, 0xC7); + +// {1777F761-68AD-4D8A-87BD-30B759FA33DD} +DEFINE_KNOWN_FOLDER(FOLDERID_Favorites, 0x1777F761, 0x68AD, 0x4D8A, 0x87, 0xBD, 0x30, 0xB7, 0x59, 0xFA, 0x33, 0xDD); + +// {C5ABBF53-E17F-4121-8900-86626FC2C973} +DEFINE_KNOWN_FOLDER(FOLDERID_NetHood, 0xC5ABBF53, 0xE17F, 0x4121, 0x89, 0x00, 0x86, 0x62, 0x6F, 0xC2, 0xC9, 0x73); + +// {9274BD8D-CFD1-41C3-B35E-B13F55A758F4} +DEFINE_KNOWN_FOLDER(FOLDERID_PrintHood, 0x9274BD8D, 0xCFD1, 0x41C3, 0xB3, 0x5E, 0xB1, 0x3F, 0x55, 0xA7, 0x58, 0xF4); + +// {A63293E8-664E-48DB-A079-DF759E0509F7} +DEFINE_KNOWN_FOLDER(FOLDERID_Templates, 0xA63293E8, 0x664E, 0x48DB, 0xA0, 0x79, 0xDF, 0x75, 0x9E, 0x05, 0x09, 0xF7); + +// {82A5EA35-D9CD-47C5-9629-E15D2F714E6E} +DEFINE_KNOWN_FOLDER(FOLDERID_CommonStartup, 0x82A5EA35, 0xD9CD, 0x47C5, 0x96, 0x29, 0xE1, 0x5D, 0x2F, 0x71, 0x4E, 0x6E); + +// {0139D44E-6AFE-49F2-8690-3DAFCAE6FFB8} +DEFINE_KNOWN_FOLDER(FOLDERID_CommonPrograms, 0x0139D44E, 0x6AFE, 0x49F2, 0x86, 0x90, 0x3D, 0xAF, 0xCA, 0xE6, 0xFF, 0xB8); + +// {A4115719-D62E-491D-AA7C-E74B8BE3B067} +DEFINE_KNOWN_FOLDER(FOLDERID_CommonStartMenu, 0xA4115719, 0xD62E, 0x491D, 0xAA, 0x7C, 0xE7, 0x4B, 0x8B, 0xE3, 0xB0, 0x67); + +// {C4AA340D-F20F-4863-AFEF-F87EF2E6BA25} +DEFINE_KNOWN_FOLDER(FOLDERID_PublicDesktop, 0xC4AA340D, 0xF20F, 0x4863, 0xAF, 0xEF, 0xF8, 0x7E, 0xF2, 0xE6, 0xBA, 0x25); + +// {62AB5D82-FDC1-4DC3-A9DD-070D1D495D97} +DEFINE_KNOWN_FOLDER(FOLDERID_ProgramData, 0x62AB5D82, 0xFDC1, 0x4DC3, 0xA9, 0xDD, 0x07, 0x0D, 0x1D, 0x49, 0x5D, 0x97); + +// {B94237E7-57AC-4347-9151-B08C6C32D1F7} +DEFINE_KNOWN_FOLDER(FOLDERID_CommonTemplates, 0xB94237E7, 0x57AC, 0x4347, 0x91, 0x51, 0xB0, 0x8C, 0x6C, 0x32, 0xD1, 0xF7); + +// {ED4824AF-DCE4-45A8-81E2-FC7965083634} +DEFINE_KNOWN_FOLDER(FOLDERID_PublicDocuments, 0xED4824AF, 0xDCE4, 0x45A8, 0x81, 0xE2, 0xFC, 0x79, 0x65, 0x08, 0x36, 0x34); + +// {3EB685DB-65F9-4CF6-A03A-E3EF65729F3D} +DEFINE_KNOWN_FOLDER(FOLDERID_RoamingAppData, 0x3EB685DB, 0x65F9, 0x4CF6, 0xA0, 0x3A, 0xE3, 0xEF, 0x65, 0x72, 0x9F, 0x3D); + +// {F1B32785-6FBA-4FCF-9D55-7B8E7F157091} +DEFINE_KNOWN_FOLDER(FOLDERID_LocalAppData, 0xF1B32785, 0x6FBA, 0x4FCF, 0x9D, 0x55, 0x7B, 0x8E, 0x7F, 0x15, 0x70, 0x91); + +// {A520A1A4-1780-4FF6-BD18-167343C5AF16} +DEFINE_KNOWN_FOLDER(FOLDERID_LocalAppDataLow, 0xA520A1A4, 0x1780, 0x4FF6, 0xBD, 0x18, 0x16, 0x73, 0x43, 0xC5, 0xAF, 0x16); + +// {352481E8-33BE-4251-BA85-6007CAEDCF9D} +DEFINE_KNOWN_FOLDER(FOLDERID_InternetCache, 0x352481E8, 0x33BE, 0x4251, 0xBA, 0x85, 0x60, 0x07, 0xCA, 0xED, 0xCF, 0x9D); + +// {2B0F765D-C0E9-4171-908E-08A611B84FF6} +DEFINE_KNOWN_FOLDER(FOLDERID_Cookies, 0x2B0F765D, 0xC0E9, 0x4171, 0x90, 0x8E, 0x08, 0xA6, 0x11, 0xB8, 0x4F, 0xF6); + +// {D9DC8A3B-B784-432E-A781-5A1130A75963} +DEFINE_KNOWN_FOLDER(FOLDERID_History, 0xD9DC8A3B, 0xB784, 0x432E, 0xA7, 0x81, 0x5A, 0x11, 0x30, 0xA7, 0x59, 0x63); + +// {1AC14E77-02E7-4E5D-B744-2EB1AE5198B7} +DEFINE_KNOWN_FOLDER(FOLDERID_System, 0x1AC14E77, 0x02E7, 0x4E5D, 0xB7, 0x44, 0x2E, 0xB1, 0xAE, 0x51, 0x98, 0xB7); + +// {D65231B0-B2F1-4857-A4CE-A8E7C6EA7D27} +DEFINE_KNOWN_FOLDER(FOLDERID_SystemX86, 0xD65231B0, 0xB2F1, 0x4857, 0xA4, 0xCE, 0xA8, 0xE7, 0xC6, 0xEA, 0x7D, 0x27); + +// {F38BF404-1D43-42F2-9305-67DE0B28FC23} +DEFINE_KNOWN_FOLDER(FOLDERID_Windows, 0xF38BF404, 0x1D43, 0x42F2, 0x93, 0x05, 0x67, 0xDE, 0x0B, 0x28, 0xFC, 0x23); + +// {5E6C858F-0E22-4760-9AFE-EA3317B67173} +DEFINE_KNOWN_FOLDER(FOLDERID_Profile, 0x5E6C858F, 0x0E22, 0x4760, 0x9A, 0xFE, 0xEA, 0x33, 0x17, 0xB6, 0x71, 0x73); + +// {33E28130-4E1E-4676-835A-98395C3BC3BB} +DEFINE_KNOWN_FOLDER(FOLDERID_Pictures, 0x33E28130, 0x4E1E, 0x4676, 0x83, 0x5A, 0x98, 0x39, 0x5C, 0x3B, 0xC3, 0xBB); + +// {7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E} +DEFINE_KNOWN_FOLDER(FOLDERID_ProgramFilesX86, 0x7C5A40EF, 0xA0FB, 0x4BFC, 0x87, 0x4A, 0xC0, 0xF2, 0xE0, 0xB9, 0xFA, 0x8E); + +// {DE974D24-D9C6-4D3E-BF91-F4455120B917} +DEFINE_KNOWN_FOLDER(FOLDERID_ProgramFilesCommonX86, 0xDE974D24, 0xD9C6, 0x4D3E, 0xBF, 0x91, 0xF4, 0x45, 0x51, 0x20, 0xB9, 0x17); + +// {6D809377-6AF0-444b-8957-A3773F02200E} +DEFINE_KNOWN_FOLDER(FOLDERID_ProgramFilesX64, 0x6d809377, 0x6af0, 0x444b, 0x89, 0x57, 0xa3, 0x77, 0x3f, 0x02, 0x20, 0x0e ); + +// {6365D5A7-0F0D-45e5-87F6-0DA56B6A4F7D} +DEFINE_KNOWN_FOLDER(FOLDERID_ProgramFilesCommonX64, 0x6365d5a7, 0xf0d, 0x45e5, 0x87, 0xf6, 0xd, 0xa5, 0x6b, 0x6a, 0x4f, 0x7d ); + +// {905e63b6-c1bf-494e-b29c-65b732d3d21a} +DEFINE_KNOWN_FOLDER(FOLDERID_ProgramFiles, 0x905e63b6, 0xc1bf, 0x494e, 0xb2, 0x9c, 0x65, 0xb7, 0x32, 0xd3, 0xd2, 0x1a); + +// {F7F1ED05-9F6D-47A2-AAAE-29D317C6F066} +DEFINE_KNOWN_FOLDER(FOLDERID_ProgramFilesCommon, 0xF7F1ED05, 0x9F6D, 0x47A2, 0xAA, 0xAE, 0x29, 0xD3, 0x17, 0xC6, 0xF0, 0x66); + +// {5cd7aee2-2219-4a67-b85d-6c9ce15660cb} +DEFINE_KNOWN_FOLDER(FOLDERID_UserProgramFiles, 0x5cd7aee2, 0x2219, 0x4a67, 0xb8, 0x5d, 0x6c, 0x9c, 0xe1, 0x56, 0x60, 0xcb); + +// {bcbd3057-ca5c-4622-b42d-bc56db0ae516} +DEFINE_KNOWN_FOLDER(FOLDERID_UserProgramFilesCommon, 0xbcbd3057, 0xca5c, 0x4622, 0xb4, 0x2d, 0xbc, 0x56, 0xdb, 0x0a, 0xe5, 0x16); + +// {724EF170-A42D-4FEF-9F26-B60E846FBA4F} +DEFINE_KNOWN_FOLDER(FOLDERID_AdminTools, 0x724EF170, 0xA42D, 0x4FEF, 0x9F, 0x26, 0xB6, 0x0E, 0x84, 0x6F, 0xBA, 0x4F); + +// {D0384E7D-BAC3-4797-8F14-CBA229B392B5} +DEFINE_KNOWN_FOLDER(FOLDERID_CommonAdminTools, 0xD0384E7D, 0xBAC3, 0x4797, 0x8F, 0x14, 0xCB, 0xA2, 0x29, 0xB3, 0x92, 0xB5); + +// {4BD8D571-6D19-48D3-BE97-422220080E43} +DEFINE_KNOWN_FOLDER(FOLDERID_Music, 0x4BD8D571, 0x6D19, 0x48D3, 0xBE, 0x97, 0x42, 0x22, 0x20, 0x08, 0x0E, 0x43); + +// {18989B1D-99B5-455B-841C-AB7C74E4DDFC} +DEFINE_KNOWN_FOLDER(FOLDERID_Videos, 0x18989B1D, 0x99B5, 0x455B, 0x84, 0x1C, 0xAB, 0x7C, 0x74, 0xE4, 0xDD, 0xFC); + +// {C870044B-F49E-4126-A9C3-B52A1FF411E8} +DEFINE_KNOWN_FOLDER(FOLDERID_Ringtones, 0xC870044B, 0xF49E, 0x4126, 0xA9, 0xC3, 0xB5, 0x2A, 0x1F, 0xF4, 0x11, 0xE8); + +// {B6EBFB86-6907-413C-9AF7-4FC2ABF07CC5} +DEFINE_KNOWN_FOLDER(FOLDERID_PublicPictures, 0xB6EBFB86, 0x6907, 0x413C, 0x9A, 0xF7, 0x4F, 0xC2, 0xAB, 0xF0, 0x7C, 0xC5); + +// {3214FAB5-9757-4298-BB61-92A9DEAA44FF} +DEFINE_KNOWN_FOLDER(FOLDERID_PublicMusic, 0x3214FAB5, 0x9757, 0x4298, 0xBB, 0x61, 0x92, 0xA9, 0xDE, 0xAA, 0x44, 0xFF); + +// {2400183A-6185-49FB-A2D8-4A392A602BA3} +DEFINE_KNOWN_FOLDER(FOLDERID_PublicVideos, 0x2400183A, 0x6185, 0x49FB, 0xA2, 0xD8, 0x4A, 0x39, 0x2A, 0x60, 0x2B, 0xA3); + +// {E555AB60-153B-4D17-9F04-A5FE99FC15EC} +DEFINE_KNOWN_FOLDER(FOLDERID_PublicRingtones, 0xE555AB60, 0x153B, 0x4D17, 0x9F, 0x04, 0xA5, 0xFE, 0x99, 0xFC, 0x15, 0xEC); + +// {8AD10C31-2ADB-4296-A8F7-E4701232C972} +DEFINE_KNOWN_FOLDER(FOLDERID_ResourceDir, 0x8AD10C31, 0x2ADB, 0x4296, 0xA8, 0xF7, 0xE4, 0x70, 0x12, 0x32, 0xC9, 0x72); + +// {2A00375E-224C-49DE-B8D1-440DF7EF3DDC} +DEFINE_KNOWN_FOLDER(FOLDERID_LocalizedResourcesDir, 0x2A00375E, 0x224C, 0x49DE, 0xB8, 0xD1, 0x44, 0x0D, 0xF7, 0xEF, 0x3D, 0xDC); + +// {C1BAE2D0-10DF-4334-BEDD-7AA20B227A9D} +DEFINE_KNOWN_FOLDER(FOLDERID_CommonOEMLinks, 0xC1BAE2D0, 0x10DF, 0x4334, 0xBE, 0xDD, 0x7A, 0xA2, 0x0B, 0x22, 0x7A, 0x9D); + +// {9E52AB10-F80D-49DF-ACB8-4330F5687855} +DEFINE_KNOWN_FOLDER(FOLDERID_CDBurning, 0x9E52AB10, 0xF80D, 0x49DF, 0xAC, 0xB8, 0x43, 0x30, 0xF5, 0x68, 0x78, 0x55); + +// {0762D272-C50A-4BB0-A382-697DCD729B80} +DEFINE_KNOWN_FOLDER(FOLDERID_UserProfiles, 0x0762D272, 0xC50A, 0x4BB0, 0xA3, 0x82, 0x69, 0x7D, 0xCD, 0x72, 0x9B, 0x80); + +// {DE92C1C7-837F-4F69-A3BB-86E631204A23} +DEFINE_KNOWN_FOLDER(FOLDERID_Playlists, 0xDE92C1C7, 0x837F, 0x4F69, 0xA3, 0xBB, 0x86, 0xE6, 0x31, 0x20, 0x4A, 0x23); + +// {15CA69B3-30EE-49C1-ACE1-6B5EC372AFB5} +DEFINE_KNOWN_FOLDER(FOLDERID_SamplePlaylists, 0x15CA69B3, 0x30EE, 0x49C1, 0xAC, 0xE1, 0x6B, 0x5E, 0xC3, 0x72, 0xAF, 0xB5); + +// {B250C668-F57D-4EE1-A63C-290EE7D1AA1F} +DEFINE_KNOWN_FOLDER(FOLDERID_SampleMusic, 0xB250C668, 0xF57D, 0x4EE1, 0xA6, 0x3C, 0x29, 0x0E, 0xE7, 0xD1, 0xAA, 0x1F); + +// {C4900540-2379-4C75-844B-64E6FAF8716B} +DEFINE_KNOWN_FOLDER(FOLDERID_SamplePictures, 0xC4900540, 0x2379, 0x4C75, 0x84, 0x4B, 0x64, 0xE6, 0xFA, 0xF8, 0x71, 0x6B); + +// {859EAD94-2E85-48AD-A71A-0969CB56A6CD} +DEFINE_KNOWN_FOLDER(FOLDERID_SampleVideos, 0x859EAD94, 0x2E85, 0x48AD, 0xA7, 0x1A, 0x09, 0x69, 0xCB, 0x56, 0xA6, 0xCD); + +// {69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C} +DEFINE_KNOWN_FOLDER(FOLDERID_PhotoAlbums, 0x69D2CF90, 0xFC33, 0x4FB7, 0x9A, 0x0C, 0xEB, 0xB0, 0xF0, 0xFC, 0xB4, 0x3C); + +// {DFDF76A2-C82A-4D63-906A-5644AC457385} +DEFINE_KNOWN_FOLDER(FOLDERID_Public, 0xDFDF76A2, 0xC82A, 0x4D63, 0x90, 0x6A, 0x56, 0x44, 0xAC, 0x45, 0x73, 0x85); + +// {df7266ac-9274-4867-8d55-3bd661de872d} +DEFINE_KNOWN_FOLDER(FOLDERID_ChangeRemovePrograms,0xdf7266ac, 0x9274, 0x4867, 0x8d, 0x55, 0x3b, 0xd6, 0x61, 0xde, 0x87, 0x2d); + +// {a305ce99-f527-492b-8b1a-7e76fa98d6e4} +DEFINE_KNOWN_FOLDER(FOLDERID_AppUpdates, 0xa305ce99, 0xf527, 0x492b, 0x8b, 0x1a, 0x7e, 0x76, 0xfa, 0x98, 0xd6, 0xe4); + +// {de61d971-5ebc-4f02-a3a9-6c82895e5c04} +DEFINE_KNOWN_FOLDER(FOLDERID_AddNewPrograms, 0xde61d971, 0x5ebc, 0x4f02, 0xa3, 0xa9, 0x6c, 0x82, 0x89, 0x5e, 0x5c, 0x04); + +// {374DE290-123F-4565-9164-39C4925E467B} +DEFINE_KNOWN_FOLDER(FOLDERID_Downloads, 0x374de290, 0x123f, 0x4565, 0x91, 0x64, 0x39, 0xc4, 0x92, 0x5e, 0x46, 0x7b); + +// {3D644C9B-1FB8-4f30-9B45-F670235F79C0} +DEFINE_KNOWN_FOLDER(FOLDERID_PublicDownloads, 0x3d644c9b, 0x1fb8, 0x4f30, 0x9b, 0x45, 0xf6, 0x70, 0x23, 0x5f, 0x79, 0xc0); + +// {7d1d3a04-debb-4115-95cf-2f29da2920da} +DEFINE_KNOWN_FOLDER(FOLDERID_SavedSearches, 0x7d1d3a04, 0xdebb, 0x4115, 0x95, 0xcf, 0x2f, 0x29, 0xda, 0x29, 0x20, 0xda); + +// {52a4f021-7b75-48a9-9f6b-4b87a210bc8f} +DEFINE_KNOWN_FOLDER(FOLDERID_QuickLaunch, 0x52a4f021, 0x7b75, 0x48a9, 0x9f, 0x6b, 0x4b, 0x87, 0xa2, 0x10, 0xbc, 0x8f); + +// {56784854-C6CB-462b-8169-88E350ACB882} +DEFINE_KNOWN_FOLDER(FOLDERID_Contacts, 0x56784854, 0xc6cb, 0x462b, 0x81, 0x69, 0x88, 0xe3, 0x50, 0xac, 0xb8, 0x82); + +// {A75D362E-50FC-4fb7-AC2C-A8BEAA314493} +DEFINE_KNOWN_FOLDER(FOLDERID_SidebarParts, 0xa75d362e, 0x50fc, 0x4fb7, 0xac, 0x2c, 0xa8, 0xbe, 0xaa, 0x31, 0x44, 0x93); + +// {7B396E54-9EC5-4300-BE0A-2482EBAE1A26} +DEFINE_KNOWN_FOLDER(FOLDERID_SidebarDefaultParts, 0x7b396e54, 0x9ec5, 0x4300, 0xbe, 0xa, 0x24, 0x82, 0xeb, 0xae, 0x1a, 0x26); + +// {DEBF2536-E1A8-4c59-B6A2-414586476AEA} +DEFINE_KNOWN_FOLDER(FOLDERID_PublicGameTasks, 0xdebf2536, 0xe1a8, 0x4c59, 0xb6, 0xa2, 0x41, 0x45, 0x86, 0x47, 0x6a, 0xea); + +// {054FAE61-4DD8-4787-80B6-090220C4B700} +DEFINE_KNOWN_FOLDER(FOLDERID_GameTasks, 0x54fae61, 0x4dd8, 0x4787, 0x80, 0xb6, 0x9, 0x2, 0x20, 0xc4, 0xb7, 0x0); + +// {4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4} +DEFINE_KNOWN_FOLDER(FOLDERID_SavedGames, 0x4c5c32ff, 0xbb9d, 0x43b0, 0xb5, 0xb4, 0x2d, 0x72, 0xe5, 0x4e, 0xaa, 0xa4); + +// {CAC52C1A-B53D-4edc-92D7-6B2E8AC19434} - deprecated +DEFINE_KNOWN_FOLDER(FOLDERID_Games, 0xcac52c1a, 0xb53d, 0x4edc, 0x92, 0xd7, 0x6b, 0x2e, 0x8a, 0xc1, 0x94, 0x34); + +// {98ec0e18-2098-4d44-8644-66979315a281} +DEFINE_KNOWN_FOLDER(FOLDERID_SEARCH_MAPI, 0x98ec0e18, 0x2098, 0x4d44, 0x86, 0x44, 0x66, 0x97, 0x93, 0x15, 0xa2, 0x81); + +// {ee32e446-31ca-4aba-814f-a5ebd2fd6d5e} +DEFINE_KNOWN_FOLDER(FOLDERID_SEARCH_CSC, 0xee32e446, 0x31ca, 0x4aba, 0x81, 0x4f, 0xa5, 0xeb, 0xd2, 0xfd, 0x6d, 0x5e); + +// {bfb9d5e0-c6a9-404c-b2b2-ae6db6af4968} +DEFINE_KNOWN_FOLDER(FOLDERID_Links, 0xbfb9d5e0, 0xc6a9, 0x404c, 0xb2, 0xb2, 0xae, 0x6d, 0xb6, 0xaf, 0x49, 0x68); + +// {f3ce0f7c-4901-4acc-8648-d5d44b04ef8f} +DEFINE_KNOWN_FOLDER(FOLDERID_UsersFiles, 0xf3ce0f7c, 0x4901, 0x4acc, 0x86, 0x48, 0xd5, 0xd4, 0x4b, 0x04, 0xef, 0x8f); + +// {A302545D-DEFF-464b-ABE8-61C8648D939B} +DEFINE_KNOWN_FOLDER(FOLDERID_UsersLibraries, 0xa302545d, 0xdeff, 0x464b, 0xab, 0xe8, 0x61, 0xc8, 0x64, 0x8d, 0x93, 0x9b); + +// {190337d1-b8ca-4121-a639-6d472d16972a} +DEFINE_KNOWN_FOLDER(FOLDERID_SearchHome, 0x190337d1, 0xb8ca, 0x4121, 0xa6, 0x39, 0x6d, 0x47, 0x2d, 0x16, 0x97, 0x2a); + +// {2C36C0AA-5812-4b87-BFD0-4CD0DFB19B39} +DEFINE_KNOWN_FOLDER(FOLDERID_OriginalImages, 0x2C36C0AA, 0x5812, 0x4b87, 0xbf, 0xd0, 0x4c, 0xd0, 0xdf, 0xb1, 0x9b, 0x39); + +// {7b0db17d-9cd2-4a93-9733-46cc89022e7c} +DEFINE_KNOWN_FOLDER(FOLDERID_DocumentsLibrary, 0x7b0db17d, 0x9cd2, 0x4a93, 0x97, 0x33, 0x46, 0xcc, 0x89, 0x02, 0x2e, 0x7c); + +// {2112AB0A-C86A-4ffe-A368-0DE96E47012E} +DEFINE_KNOWN_FOLDER(FOLDERID_MusicLibrary, 0x2112ab0a, 0xc86a, 0x4ffe, 0xa3, 0x68, 0xd, 0xe9, 0x6e, 0x47, 0x1, 0x2e); + +// {A990AE9F-A03B-4e80-94BC-9912D7504104} +DEFINE_KNOWN_FOLDER(FOLDERID_PicturesLibrary, 0xa990ae9f, 0xa03b, 0x4e80, 0x94, 0xbc, 0x99, 0x12, 0xd7, 0x50, 0x41, 0x4); + +// {491E922F-5643-4af4-A7EB-4E7A138D8174} +DEFINE_KNOWN_FOLDER(FOLDERID_VideosLibrary, 0x491e922f, 0x5643, 0x4af4, 0xa7, 0xeb, 0x4e, 0x7a, 0x13, 0x8d, 0x81, 0x74); + +// {1A6FDBA2-F42D-4358-A798-B74D745926C5} +DEFINE_KNOWN_FOLDER(FOLDERID_RecordedTVLibrary, 0x1a6fdba2, 0xf42d, 0x4358, 0xa7, 0x98, 0xb7, 0x4d, 0x74, 0x59, 0x26, 0xc5); + +// {52528A6B-B9E3-4add-B60D-588C2DBA842D} +DEFINE_KNOWN_FOLDER(FOLDERID_HomeGroup, 0x52528a6b, 0xb9e3, 0x4add, 0xb6, 0xd, 0x58, 0x8c, 0x2d, 0xba, 0x84, 0x2d); + +// {9B74B6A3-0DFD-4f11-9E78-5F7800F2E772} +DEFINE_KNOWN_FOLDER(FOLDERID_HomeGroupCurrentUser, 0x9b74b6a3, 0xdfd, 0x4f11, 0x9e, 0x78, 0x5f, 0x78, 0x0, 0xf2, 0xe7, 0x72); + +// {5CE4A5E9-E4EB-479D-B89F-130C02886155} +DEFINE_KNOWN_FOLDER(FOLDERID_DeviceMetadataStore, 0x5ce4a5e9, 0xe4eb, 0x479d, 0xb8, 0x9f, 0x13, 0x0c, 0x02, 0x88, 0x61, 0x55); + +// {1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE} +DEFINE_KNOWN_FOLDER(FOLDERID_Libraries, 0x1b3ea5dc, 0xb587, 0x4786, 0xb4, 0xef, 0xbd, 0x1d, 0xc3, 0x32, 0xae, 0xae); + +// {48daf80b-e6cf-4f4e-b800-0e69d84ee384} +DEFINE_KNOWN_FOLDER(FOLDERID_PublicLibraries, 0x48daf80b, 0xe6cf, 0x4f4e, 0xb8, 0x00, 0x0e, 0x69, 0xd8, 0x4e, 0xe3, 0x84); + +// {9e3995ab-1f9c-4f13-b827-48b24b6c7174} +DEFINE_KNOWN_FOLDER(FOLDERID_UserPinned, 0x9e3995ab, 0x1f9c, 0x4f13, 0xb8, 0x27, 0x48, 0xb2, 0x4b, 0x6c, 0x71, 0x74); + +// {bcb5256f-79f6-4cee-b725-dc34e402fd46} +DEFINE_KNOWN_FOLDER(FOLDERID_ImplicitAppShortcuts,0xbcb5256f, 0x79f6, 0x4cee, 0xb7, 0x25, 0xdc, 0x34, 0xe4, 0x2, 0xfd, 0x46); + +// {008ca0b1-55b4-4c56-b8a8-4de4b299d3be} +DEFINE_KNOWN_FOLDER(FOLDERID_AccountPictures, 0x008ca0b1, 0x55b4, 0x4c56, 0xb8, 0xa8, 0x4d, 0xe4, 0xb2, 0x99, 0xd3, 0xbe); + +// {0482af6c-08f1-4c34-8c90-e17ec98b1e17} +DEFINE_KNOWN_FOLDER(FOLDERID_PublicUserTiles, 0x0482af6c, 0x08f1, 0x4c34, 0x8c, 0x90, 0xe1, 0x7e, 0xc9, 0x8b, 0x1e, 0x17); + +// {1e87508d-89c2-42f0-8a7e-645a0f50ca58} +DEFINE_KNOWN_FOLDER(FOLDERID_AppsFolder, 0x1e87508d, 0x89c2, 0x42f0, 0x8a, 0x7e, 0x64, 0x5a, 0x0f, 0x50, 0xca, 0x58); + +// {F26305EF-6948-40B9-B255-81453D09C785} +DEFINE_KNOWN_FOLDER(FOLDERID_StartMenuAllPrograms, 0xf26305ef, 0x6948, 0x40b9, 0xb2, 0x55, 0x81, 0x45, 0x3d, 0x9, 0xc7, 0x85); + +// {A440879F-87A0-4F7D-B700-0207B966194A} +DEFINE_KNOWN_FOLDER(FOLDERID_CommonStartMenuPlaces, 0xa440879f, 0x87a0, 0x4f7d, 0xb7, 0x0, 0x2, 0x7, 0xb9, 0x66, 0x19, 0x4a); + +// {A3918781-E5F2-4890-B3D9-A7E54332328C} +DEFINE_KNOWN_FOLDER(FOLDERID_ApplicationShortcuts, 0xa3918781, 0xe5f2, 0x4890, 0xb3, 0xd9, 0xa7, 0xe5, 0x43, 0x32, 0x32, 0x8c); + +// {00BCFC5A-ED94-4e48-96A1-3F6217F21990} +DEFINE_KNOWN_FOLDER(FOLDERID_RoamingTiles, 0xbcfc5a, 0xed94, 0x4e48, 0x96, 0xa1, 0x3f, 0x62, 0x17, 0xf2, 0x19, 0x90); + +// {AAA8D5A5-F1D6-4259-BAA8-78E7EF60835E} +DEFINE_KNOWN_FOLDER(FOLDERID_RoamedTileImages, 0xaaa8d5a5, 0xf1d6, 0x4259, 0xba, 0xa8, 0x78, 0xe7, 0xef, 0x60, 0x83, 0x5e); + +// {b7bede81-df94-4682-a7d8-57a52620b86f} +DEFINE_KNOWN_FOLDER(FOLDERID_Screenshots, 0xb7bede81, 0xdf94, 0x4682, 0xa7, 0xd8, 0x57, 0xa5, 0x26, 0x20, 0xb8, 0x6f); + +// {AB5FB87B-7CE2-4F83-915D-550846C9537B} +DEFINE_KNOWN_FOLDER(FOLDERID_CameraRoll, 0xab5fb87b, 0x7ce2, 0x4f83, 0x91, 0x5d, 0x55, 0x8, 0x46, 0xc9, 0x53, 0x7b); + +// {A52BBA46-E9E1-435f-B3D9-28DAA648C0F6} - deprecated +// Same GUID as FOLDERID_OneDrive +DEFINE_KNOWN_FOLDER(FOLDERID_SkyDrive, 0xa52bba46, 0xe9e1, 0x435f, 0xb3, 0xd9, 0x28, 0xda, 0xa6, 0x48, 0xc0, 0xf6); + +// {A52BBA46-E9E1-435f-B3D9-28DAA648C0F6} +// Same GUID as FOLDERID_SkyDrive +DEFINE_KNOWN_FOLDER(FOLDERID_OneDrive, 0xa52bba46, 0xe9e1, 0x435f, 0xb3, 0xd9, 0x28, 0xda, 0xa6, 0x48, 0xc0, 0xf6); + +// {24D89E24-2F19-4534-9DDE-6A6671FBB8FE} +DEFINE_KNOWN_FOLDER(FOLDERID_SkyDriveDocuments, 0x24d89e24, 0x2f19, 0x4534, 0x9d, 0xde, 0x6a, 0x66, 0x71, 0xfb, 0xb8, 0xfe); + +// {339719B5-8C47-4894-94C2-D8F77ADD44A6} +DEFINE_KNOWN_FOLDER(FOLDERID_SkyDrivePictures, 0x339719b5, 0x8c47, 0x4894, 0x94, 0xc2, 0xd8, 0xf7, 0x7a, 0xdd, 0x44, 0xa6); + +// {C3F2459E-80D6-45DC-BFEF-1F769F2BE730} +DEFINE_KNOWN_FOLDER(FOLDERID_SkyDriveMusic, 0xc3f2459e, 0x80d6, 0x45dc, 0xbf, 0xef, 0x1f, 0x76, 0x9f, 0x2b, 0xe7, 0x30); + +// {767E6811-49CB-4273-87C2-20F355E1085B} +DEFINE_KNOWN_FOLDER(FOLDERID_SkyDriveCameraRoll, 0x767e6811, 0x49cb, 0x4273, 0x87, 0xc2, 0x20, 0xf3, 0x55, 0xe1, 0x08, 0x5b); + +// {0D4C3DB6-03A3-462F-A0E6-08924C41B5D4} +DEFINE_KNOWN_FOLDER(FOLDERID_SearchHistory, 0x0d4c3db6, 0x03a3, 0x462f, 0xa0, 0xe6, 0x08, 0x92, 0x4c, 0x41, 0xb5, 0xd4); + +// {7E636BFE-DFA9-4D5E-B456-D7B39851D8A9} +DEFINE_KNOWN_FOLDER(FOLDERID_SearchTemplates, 0x7e636bfe, 0xdfa9, 0x4d5e, 0xb4, 0x56, 0xd7, 0xb3, 0x98, 0x51, 0xd8, 0xa9); + +// {2B20DF75-1EDA-4039-8097-38798227D5B7} +DEFINE_KNOWN_FOLDER(FOLDERID_CameraRollLibrary, 0x2b20df75, 0x1eda, 0x4039, 0x80, 0x97, 0x38, 0x79, 0x82, 0x27, 0xd5, 0xb7); + +// {3B193882-D3AD-4eab-965A-69829D1FB59F} +DEFINE_KNOWN_FOLDER(FOLDERID_SavedPictures, 0x3b193882, 0xd3ad, 0x4eab, 0x96, 0x5a, 0x69, 0x82, 0x9d, 0x1f, 0xb5, 0x9f); + +// {E25B5812-BE88-4bd9-94B0-29233477B6C3} +DEFINE_KNOWN_FOLDER(FOLDERID_SavedPicturesLibrary, 0xe25b5812, 0xbe88, 0x4bd9, 0x94, 0xb0, 0x29, 0x23, 0x34, 0x77, 0xb6, 0xc3); + +// {12D4C69E-24AD-4923-BE19-31321C43A767} +DEFINE_KNOWN_FOLDER(FOLDERID_RetailDemo, 0x12d4c69e, 0x24ad, 0x4923, 0xbe, 0x19, 0x31, 0x32, 0x1c, 0x43, 0xa7, 0x67); + +// {1C2AC1DC-4358-4B6C-9733-AF21156576F0} +DEFINE_KNOWN_FOLDER(FOLDERID_Device, 0x1C2AC1DC, 0x4358, 0x4B6C, 0x97, 0x33, 0xAF, 0x21, 0x15, 0x65, 0x76, 0xF0); + +// The file system directory that contains development files that have been copied to this device by a development tool. A +// typical path is C:\Users\username\AppData\Local\DevelopmentFiles. This directory is used by development tools that need +// to copy files to a device. This may include copying application binaries for temporary registration and execution in order +// to allow a developer to test their application without having to go through the full app packaging process. It could also +// include development time only components such as a remote debugger. Recommended practice is to create sub-directories rather +// than copying files to the DevelopmentFiles directory. Development tools should be careful to use a naming convention that +// avoids conflicts. For example application binaries should be copied to a directory with a unique name such as the app package +// full name. This information is per user and will not roam. +// {DBE8E08E-3053-4BBC-B183-2A7B2B191E59} +DEFINE_KNOWN_FOLDER(FOLDERID_DevelopmentFiles, 0xdbe8e08e, 0x3053, 0x4bbc, 0xb1, 0x83, 0x2a, 0x7b, 0x2b, 0x19, 0x1e, 0x59); + +// {31C0DD25-9439-4F12-BF41-7FF4EDA38722} +DEFINE_KNOWN_FOLDER(FOLDERID_Objects3D, 0x31c0dd25, 0x9439, 0x4f12, 0xbf, 0x41, 0x7f, 0xf4, 0xed, 0xa3, 0x87, 0x22); + +// {EDC0FE71-98D8-4F4A-B920-C8DC133CB165} +DEFINE_KNOWN_FOLDER(FOLDERID_AppCaptures, 0xedc0fe71, 0x98d8, 0x4f4a, 0xb9, 0x20, 0xc8, 0xdc, 0x13, 0x3c, 0xb1, 0x65); + +// {f42ee2d3-909f-4907-8871-4c22fc0bf756} +DEFINE_KNOWN_FOLDER(FOLDERID_LocalDocuments, 0xf42ee2d3, 0x909f, 0x4907, 0x88, 0x71, 0x4c, 0x22, 0xfc, 0x0b, 0xf7, 0x56); + +// {0ddd015d-b06c-45d5-8c4c-f59713854639 } +DEFINE_KNOWN_FOLDER(FOLDERID_LocalPictures, 0x0ddd015d, 0xb06c, 0x45d5, 0x8c, 0x4c, 0xf5, 0x97, 0x13, 0x85, 0x46, 0x39); + +// {35286a68-3c57-41a1-bbb1-0eae73d76c95} +DEFINE_KNOWN_FOLDER(FOLDERID_LocalVideos, 0x35286a68, 0x3c57, 0x41a1, 0xbb, 0xb1, 0x0e, 0xae, 0x73, 0xd7, 0x6c, 0x95); + +// {a0c69a99-21c8-4671-8703-7934162fcf1d} +DEFINE_KNOWN_FOLDER(FOLDERID_LocalMusic, 0xa0c69a99, 0x21c8, 0x4671, 0x87, 0x03, 0x79, 0x34, 0x16, 0x2f, 0xcf, 0x1d); + +// {7d83ee9b-2244-4e70-b1f5-5393042af1e4} +DEFINE_KNOWN_FOLDER(FOLDERID_LocalDownloads, 0x7d83ee9b, 0x2244, 0x4e70, 0xb1, 0xf5, 0x53, 0x93, 0x04, 0x2a, 0xf1, 0xe4); + +// {2f8b40c2-83ed-48ee-b383-a1f157ec6f9a} +DEFINE_KNOWN_FOLDER(FOLDERID_RecordedCalls, 0x2f8b40c2, 0x83ed, 0x48ee, 0xb3, 0x83, 0xa1, 0xf1, 0x57, 0xec, 0x6f, 0x9a); + +// {7ad67899-66af-43ba-9156-6aad42e6c596} +DEFINE_KNOWN_FOLDER(FOLDERID_AllAppMods, 0x7ad67899, 0x66af, 0x43ba, 0x91, 0x56, 0x6a, 0xad, 0x42, 0xe6, 0xc5, 0x96); + +// {3db40b20-2a30-4dbe-917e-771dd21dd099} +DEFINE_KNOWN_FOLDER(FOLDERID_CurrentAppMods, 0x3db40b20, 0x2a30, 0x4dbe, 0x91, 0x7e, 0x77, 0x1d, 0xd2, 0x1d, 0xd0, 0x99); + +// {B2C5E279-7ADD-439F-B28C-C41FE1BBF672} +DEFINE_KNOWN_FOLDER(FOLDERID_AppDataDesktop, 0xb2c5e279, 0x7add, 0x439f, 0xb2, 0x8c, 0xc4, 0x1f, 0xe1, 0xbb, 0xf6, 0x72); + +// {7BE16610-1F7F-44AC-BFF0-83E15F2FFCA1} +DEFINE_KNOWN_FOLDER(FOLDERID_AppDataDocuments, 0x7be16610, 0x1f7f, 0x44ac, 0xbf, 0xf0, 0x83, 0xe1, 0x5f, 0x2f, 0xfc, 0xa1); + +// {7CFBEFBC-DE1F-45AA-B843-A542AC536CC9} +DEFINE_KNOWN_FOLDER(FOLDERID_AppDataFavorites, 0x7cfbefbc, 0xde1f, 0x45aa, 0xb8, 0x43, 0xa5, 0x42, 0xac, 0x53, 0x6c, 0xc9); + +// {559D40A3-A036-40FA-AF61-84CB430A4D34} +DEFINE_KNOWN_FOLDER(FOLDERID_AppDataProgramData, 0x559d40a3, 0xa036, 0x40fa, 0xaf, 0x61, 0x84, 0xcb, 0x43, 0xa, 0x4d, 0x34); + +// {B3EB08D3-A1F3-496B-865A-42B536CDA0EC} +DEFINE_KNOWN_FOLDER(FOLDERID_LocalStorage, 0xB3EB08D3, 0xA1F3, 0x496B, 0x86, 0x5A, 0x42, 0xB5, 0x36, 0xCD, 0xA0, 0xEC); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LM.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LM.h new file mode 100644 index 0000000000000000000000000000000000000000..6210261a19dcc2d1d54b3d6f22f2d6061d7d6aea --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LM.h @@ -0,0 +1,56 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lm.h + +Abstract: + + This is the top level include file that includes all the files + necessary for writing Lan Manager Application. + +[Environment:] + + User Mode - Win32 + +--*/ + +#ifndef _LM_ +#define _LM_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include // LAN Manager common definitions +#include // LAN Manager network error definitions + +#include // Access, Domain, Group and User classes +#include // Alerter +#include // Connection, File, Session and Share classes +#include // Message class +#include // Remote Utility class +#include // Replicator class +#include // Server class +#include // Service class +#include // Use class +#include // Workstation class +#include // NetApiBuffer class +#include // NetErrorLog class +#include // NetConfig class +#include // NetStats class +#include // NetAudit class +#include // NetJoinDomain class + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _LM_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMAPIbuf.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMAPIbuf.h new file mode 100644 index 0000000000000000000000000000000000000000..8316cf6b7e87c3f317affc7d6961948e543567cf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMAPIbuf.h @@ -0,0 +1,108 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmapibuf.h + +Abstract: + + This file contains information about NetApiBuffer APIs. + +Environment: + + User Mode - Win32 + +Notes: + + You must include LMCONS.H before this file, since this file depends + on values defined in LMCONS.H. + +--*/ + +#ifndef _LMAPIBUF_ +#define _LMAPIBUF_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +// +// Function Prototypes +// + +_Success_( return == 0 ) +NET_API_STATUS NET_API_FUNCTION +NetApiBufferAllocate( + _In_ DWORD ByteCount, + _Outptr_result_bytebuffer_(ByteCount) LPVOID * Buffer + ); + +_Success_( return == 0 ) +NET_API_STATUS NET_API_FUNCTION +NetApiBufferFree ( + _Frees_ptr_opt_ LPVOID Buffer + ); + +_Success_( return == 0 ) +NET_API_STATUS NET_API_FUNCTION +NetApiBufferReallocate( + _Frees_ptr_opt_ LPVOID OldBuffer, + _In_ DWORD NewByteCount, + _Outptr_result_bytebuffer_(NewByteCount) LPVOID * NewBuffer + ); + +_Success_( return == 0 ) +NET_API_STATUS NET_API_FUNCTION +NetApiBufferSize( + _In_ LPVOID Buffer, + _Out_ LPDWORD ByteCount + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// The following private function will go away eventually. +// Call NetApiBufferAllocate instead. +// +_Success_( return == 0 ) +NET_API_STATUS NET_API_FUNCTION +NetapipBufferAllocate ( // Internal Function + _In_ DWORD ByteCount, + _Outptr_result_bytebuffer_(ByteCount) LPVOID * Buffer + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family Or Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) + +_Success_( return == 0 ) +NET_API_STATUS NET_API_FUNCTION +NetApiBufferFree ( + _Frees_ptr_opt_ LPVOID Buffer + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) */ +#pragma endregion + + +#ifdef __cplusplus +} +#endif + +#endif // _LMAPIBUF_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMConfig.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMConfig.h new file mode 100644 index 0000000000000000000000000000000000000000..2150eb2e54db4a46f70fcadfcfb81cbd7aa4d291 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMConfig.h @@ -0,0 +1,109 @@ +/*++ BUILD Version: 0003 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmconfig.h + +Abstract: + + This module defines the API function prototypes and data structures + for the following groups of NT API functions: + NetConfig + +Environment: + + User Mode - Win32 + +Notes: + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +--*/ + +#ifndef _LMCONFIG_ +#define _LMCONFIG_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#define REVISED_CONFIG_APIS + +// +// Function Prototypes - Config +// + +#pragma warning(push) + // SAL Annotations not available for obsolete APIs +#pragma warning(disable:28740) + +NET_API_STATUS NET_API_FUNCTION +NetConfigGet ( + IN LPCWSTR server OPTIONAL, + IN LPCWSTR component, + IN LPCWSTR parameter, +#ifdef REVISED_CONFIG_APIS + OUT LPBYTE *bufptr +#else + OUT LPBYTE *bufptr, + OUT LPDWORD totalavailable +#endif + ); + +NET_API_STATUS NET_API_FUNCTION +NetConfigGetAll ( + IN LPCWSTR server OPTIONAL, + IN LPCWSTR component, +#ifdef REVISED_CONFIG_APIS + OUT LPBYTE *bufptr +#else + OUT LPBYTE *bufptr, + OUT LPDWORD totalavailable +#endif + ); + + +NET_API_STATUS NET_API_FUNCTION +NetConfigSet ( + IN LPCWSTR server OPTIONAL, + IN LPCWSTR reserved1 OPTIONAL, + IN LPCWSTR component, + IN DWORD level, + IN DWORD reserved2, + IN LPBYTE buf, + IN DWORD reserved3 + ); + +#pragma warning(pop) + +// +// Data Structures - Config +// + +typedef struct _CONFIG_INFO_0 { + LPWSTR cfgi0_key; + LPWSTR cfgi0_data; +} CONFIG_INFO_0, *PCONFIG_INFO_0, *LPCONFIG_INFO_0; + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _LMCONFIG_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMDFS.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMDFS.h new file mode 100644 index 0000000000000000000000000000000000000000..3b5b9a10952d7c790c514def02ba003063a818a8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMDFS.h @@ -0,0 +1,1048 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmdfs.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for the NetDfs API + +Environment: + + User Mode - Win32 + +Notes: + + You must include and before this file. + +--*/ + +#ifndef _LMDFS_ +#define _LMDFS_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// DFS Volume state +// + +#define DFS_VOLUME_STATES 0xF + +#define DFS_VOLUME_STATE_OK 1 +#define DFS_VOLUME_STATE_INCONSISTENT 2 +#define DFS_VOLUME_STATE_OFFLINE 3 +#define DFS_VOLUME_STATE_ONLINE 4 + +// +// These are valid for setting the volume state on the root +// These are available to force a resynchronize on the root +// volume or to put it in a standby mode. +// +#define DFS_VOLUME_STATE_RESYNCHRONIZE 0x10 +#define DFS_VOLUME_STATE_STANDBY 0x20 + +// +// When supported by a DFS namespace, the local state on +// the DFS root target is refreshed with information from +// the master state in the DFS metadata forcibly. +// + +#define DFS_VOLUME_STATE_FORCE_SYNC 0x40 + +// +// These are valid on getting the volume state on the root +// These are available to determine the flavor of DFS +// A few bits are reserved to determine the flavor of the DFS root. +// To get the flavor, and the state with DFS_VOLUME_FLAVORS. +// +// (_state & DFS_VOLUME_FLAVORS) will tell you the flavor of the dfs root. +// +// + +#define DFS_VOLUME_FLAVORS 0x0300 + + +#define DFS_VOLUME_FLAVOR_UNUSED1 0x0000 +#define DFS_VOLUME_FLAVOR_STANDALONE 0x0100 +#define DFS_VOLUME_FLAVOR_AD_BLOB 0x0200 +#define DFS_STORAGE_FLAVOR_UNUSED2 0x0300 + +// +// DFS Storage State +// + +#define DFS_STORAGE_STATES 0xF +#define DFS_STORAGE_STATE_OFFLINE 1 +#define DFS_STORAGE_STATE_ONLINE 2 +#define DFS_STORAGE_STATE_ACTIVE 4 + + +// +// Priority of a DFS target consists of the +// tuple . Priority +// ranks are valid only within a priority class and +// not across priority classes. +// Priority rank is 0-n, where 0 is highest rank. +// +// We have consciously chosen 0 to indicate the +// "normal" priority class, i.e. one that would +// be used if target priorities aren't used. +// +// The members of the enumeration have been explicitly +// set in a specific order (in the enumeration). +// +// We need the MIDL_PASS decoration to force sending +// the enums as 32-bit values instead of the default +// 16-bit values for enums. +// + +#ifdef MIDL_PASS +typedef [v1_enum] enum _DFS_TARGET_PRIORITY_CLASS { +#else +typedef enum _DFS_TARGET_PRIORITY_CLASS { +#endif + DfsInvalidPriorityClass = -1, + DfsSiteCostNormalPriorityClass = 0, + DfsGlobalHighPriorityClass, + DfsSiteCostHighPriorityClass, + DfsSiteCostLowPriorityClass, + DfsGlobalLowPriorityClass +} DFS_TARGET_PRIORITY_CLASS; + +typedef struct _DFS_TARGET_PRIORITY { + DFS_TARGET_PRIORITY_CLASS TargetPriorityClass; // Priority class of target. + USHORT TargetPriorityRank; // Priority rank of target. + USHORT Reserved; // Must be set to 0. +} DFS_TARGET_PRIORITY, *PDFS_TARGET_PRIORITY; + +// +// Level 1: +// +typedef struct _DFS_INFO_1 { + LPWSTR EntryPath; // Dfs name for the top of this piece of storage +} DFS_INFO_1, *PDFS_INFO_1, *LPDFS_INFO_1; + +#if defined(_WIN64) + +// +// WOW64 support: Permit 32-bit callers to use 64-bit +// driver. +// + +typedef struct _DFS_INFO_1_32 { + ULONG EntryPath; // Dfs name for the top of this volume +} DFS_INFO_1_32, *PDFS_INFO_1_32, *LPDFS_INFO_1_32; + +#endif /* _WIN64 */ + +// +// Level 2: +// +typedef struct _DFS_INFO_2 { + LPWSTR EntryPath; // Dfs name for the top of this volume + LPWSTR Comment; // Comment for this volume + DWORD State; // State of this volume, one of DFS_VOLUME_STATE_* + DWORD NumberOfStorages; // Number of storages for this volume +} DFS_INFO_2, *PDFS_INFO_2, *LPDFS_INFO_2; + +#if defined(_WIN64) + +// +// WOW64 support: Permit 32-bit callers to use 64-bit +// driver. +// + +typedef struct _DFS_INFO_2_32 { + ULONG EntryPath; // Dfs name for the top of this volume + ULONG Comment; // Comment for this volume + DWORD State; // State of this volume, one of DFS_VOLUME_STATE_* + DWORD NumberOfStorages; // Number of storage servers for this volume +} DFS_INFO_2_32, *PDFS_INFO_2_32, *LPDFS_INFO_2_32; + +#endif /* _WIN64 */ + +typedef struct _DFS_STORAGE_INFO { + ULONG State; // State of this storage, one of DFS_STORAGE_STATE_* + // possibly OR'd with DFS_STORAGE_STATE_ACTIVE + LPWSTR ServerName; // Name of server hosting this storage + LPWSTR ShareName; // Name of share hosting this storage +} DFS_STORAGE_INFO, *PDFS_STORAGE_INFO, *LPDFS_STORAGE_INFO; + +#if defined(_WIN64) + +// +// We should be calling this structure DFS_STORAGE_INFO_32 as per +// convention. However, we don't want to pollute the namespace of new +// types that have been defined (for example, DFS_STORAGE_INFO_1) as +// enhancements to the "base" DFS_STORAGE_INFO structure. Hence, +// we define the WOW64 support structure as DFS_STORAGE_INFO_0_32. +// + +typedef struct _DFS_STORAGE_INFO_0_32 { + ULONG State; // State of this storage, one of DFS_STORAGE_STATE_* + // possibly OR'd with DFS_STORAGE_STATE_ACTIVE + ULONG ServerName; // Name of server hosting this storage + ULONG ShareName; // Name of share hosting this storage +} DFS_STORAGE_INFO_0_32, *PDFS_STORAGE_INFO_0_32, *LPDFS_STORAGE_INFO_0_32; + +#endif // _WIN64. + +// +// WOW64 support: Permit 32-bit callers to use 64-bit +// driver. +// + +typedef struct _DFS_STORAGE_INFO_1 { + ULONG State; // State of this target, one of DFS_TARGET_STATE_* + // possibly OR'd with DFS_STORAGE_STATE_ACTIVE + LPWSTR ServerName; // Name of server hosting this target + LPWSTR ShareName; // Name of share hosting this target + DFS_TARGET_PRIORITY TargetPriority; // Priority of this target. +} DFS_STORAGE_INFO_1, *PDFS_STORAGE_INFO_1, *LPDFS_STORAGE_INFO_1; + +// +// Level 3: +// +typedef struct _DFS_INFO_3 { + LPWSTR EntryPath; // Dfs name for the top of this volume + LPWSTR Comment; // Comment for this volume + DWORD State; // State of this volume, one of DFS_VOLUME_STATE_* + DWORD NumberOfStorages; // Number of storage servers for this volume +#ifdef MIDL_PASS + [size_is(NumberOfStorages)] LPDFS_STORAGE_INFO Storage; +#else + LPDFS_STORAGE_INFO Storage; // An array (of NumberOfStorages elements) of + // storage-specific information. +#endif // MIDL_PASS +} DFS_INFO_3, *PDFS_INFO_3, *LPDFS_INFO_3; + +#if defined(_WIN64) + +// +// WOW64 support: Permit 32-bit callers to use 64-bit +// driver. +// + +typedef struct _DFS_INFO_3_32 { + ULONG EntryPath; // Dfs name for the top of this volume + ULONG Comment; // Comment for this volume + DWORD State; // State of this volume, one of DFS_VOLUME_STATE_* + DWORD NumberOfStorages; // Number of storage servers for this volume + ULONG Storage; // An array (of NumberOfStorages elements) of + // storage-specific information. Each element + // is of type DFS_STORAGE_INFO_0_32. +} DFS_INFO_3_32, *PDFS_INFO_3_32, *LPDFS_INFO_3_32; + +#endif /* _WIN64 */ + +// +// Level 4: +// +typedef struct _DFS_INFO_4 { + LPWSTR EntryPath; // Dfs name for the top of this volume + LPWSTR Comment; // Comment for this volume + DWORD State; // State of this volume, one of DFS_VOLUME_STATE_* + ULONG Timeout; // Timeout, in seconds, of this junction point + GUID Guid; // Guid of this junction point + DWORD NumberOfStorages; // Number of storage servers for this volume +#ifdef MIDL_PASS + [size_is(NumberOfStorages)] LPDFS_STORAGE_INFO Storage; +#else + LPDFS_STORAGE_INFO Storage; // An array (of NumberOfStorages elements) of + // storage-specific information. +#endif // MIDL_PASS +} DFS_INFO_4, *PDFS_INFO_4, *LPDFS_INFO_4; + + +#if defined(_WIN64) + +// +// WOW64 support: Permit 32-bit callers to use 64-bit +// driver. +// + +typedef struct _DFS_INFO_4_32 { + ULONG EntryPath; // Dfs name for the top of this volume + ULONG Comment; // Comment for this volume + DWORD State; // State of this volume, one of DFS_VOLUME_STATE_* + ULONG Timeout; // Timeout, in seconds, of this junction point + GUID Guid; // Guid of this junction point + DWORD NumberOfStorages; // Number of storage servers for this volume + ULONG Storage; // An array (of NumberOfStorages elements) of + // storage-specific information. Each element + // is of type DFS_STORAGE_INFO_0_32. +} DFS_INFO_4_32, *PDFS_INFO_4_32, *LPDFS_INFO_4_32; + +#endif /* _WIN64 */ + + +// +// Level 5: +// +typedef struct _DFS_INFO_5 { + LPWSTR EntryPath; // Name of DFS namespace, DFS root name. + LPWSTR Comment; // Comment for root/link. + DWORD State; // State of the root/link, one of DFS_VOLUME_STATE_* + // Also has DFS_VOLUME_FLAVOR_* information. + ULONG Timeout; // Referral TTL, in seconds, of root/link. + GUID Guid; // GUID of this root/link. + ULONG PropertyFlags; // Properties of root/link. One of DFS_PROPERTY_FLAG_* + ULONG MetadataSize; // Size of Active Directory BLOB for a domain-based + // DFS namespace; size of metadata stored in registry + // for stand-alone DFS. Valid for DFS roots only. + DWORD NumberOfStorages; // Number of storage servers for this volume +} DFS_INFO_5, *PDFS_INFO_5, *LPDFS_INFO_5; + +// +// Level 6: +// +typedef struct _DFS_INFO_6 { + LPWSTR EntryPath; // Name of DFS namespace, DFS root name. + LPWSTR Comment; // Comment for root/link. + DWORD State; // State of the root/link, one of DFS_VOLUME_STATE_* + // Also has DFS_VOLUME_FLAVOR_* information. + ULONG Timeout; // Referral TTL, in seconds, of root/link. + GUID Guid; // GUID of this root/link. + ULONG PropertyFlags; // Properties of root/link. One of DFS_PROPERTY_FLAG_* + ULONG MetadataSize; // Size of Active Directory BLOB for a domain-based + // DFS namespace; size of metadata stored in registry + // for stand-alone DFS. Valid for DFS roots only. + DWORD NumberOfStorages; // Number of targets for this root/link. +#ifdef MIDL_PASS + [size_is(NumberOfStorages)] LPDFS_STORAGE_INFO_1 Storage; +#else + LPDFS_STORAGE_INFO_1 Storage; // An array (of NumberOfStorages elements) of + // storage-specific information. +#endif // MIDL_PASS +} DFS_INFO_6, *PDFS_INFO_6, *LPDFS_INFO_6; + +// +// Level 7: +// +typedef struct _DFS_INFO_7 { + GUID GenerationGuid; // Guid representation of the version/generation + // number of the DFS root. +} DFS_INFO_7, *PDFS_INFO_7, *LPDFS_INFO_7; + +// +// Level 8: +// +typedef struct _DFS_INFO_8 { + LPWSTR EntryPath; // Name of DFS namespace, DFS root name. + LPWSTR Comment; // Comment for root/link. + DWORD State; // State of the root/link, one of DFS_VOLUME_STATE_* + // Also has DFS_VOLUME_FLAVOR_* information. + ULONG Timeout; // Referral TTL, in seconds, of root/link. + GUID Guid; // GUID of this root/link. + ULONG PropertyFlags; // Properties of root/link. One of DFS_PROPERTY_FLAG_* + ULONG MetadataSize; // Size of Active Directory BLOB for a domain-based + // DFS namespace; size of metadata stored in registry + // for stand-alone DFS. Valid for DFS roots only. +#ifdef MIDL_PASS + + // + // For use by the RPC marshalling code only. + // + + ULONG SecurityDescriptorLength; + + // + // Self-relative security descriptor to be associated + // with DFS link (and stamped on the reparse-point + // on disk). + // + + [size_is(SecurityDescriptorLength)] PUCHAR pSecurityDescriptor; +#else + ULONG SdLengthReserved; + PSECURITY_DESCRIPTOR pSecurityDescriptor; +#endif + DWORD NumberOfStorages; // Number of storage servers for this volume +} DFS_INFO_8, *PDFS_INFO_8, *LPDFS_INFO_8; + +// +// Level 9: +// +typedef struct _DFS_INFO_9 { + LPWSTR EntryPath; // Name of DFS namespace, DFS root name. + LPWSTR Comment; // Comment for root/link. + DWORD State; // State of the root/link, one of DFS_VOLUME_STATE_* + // Also has DFS_VOLUME_FLAVOR_* information. + ULONG Timeout; // Referral TTL, in seconds, of root/link. + GUID Guid; // GUID of this root/link. + ULONG PropertyFlags; // Properties of root/link. One of DFS_PROPERTY_FLAG_* + ULONG MetadataSize; // Size of Active Directory BLOB for a domain-based + // DFS namespace; size of metadata stored in registry + // for stand-alone DFS. Valid for DFS roots only. +#ifdef MIDL_PASS + + // + // For use by the RPC marshalling code only. + // + + ULONG SecurityDescriptorLength; + + // + // Self-relative security descriptor to be associated + // with DFS link (and stamped on the reparse-point + // on disk). + // + + [size_is(SecurityDescriptorLength)] PUCHAR pSecurityDescriptor; +#else + ULONG SdLengthReserved; + PSECURITY_DESCRIPTOR pSecurityDescriptor; +#endif + DWORD NumberOfStorages; // Number of targets for this root/link. +#ifdef MIDL_PASS + [size_is(NumberOfStorages)] LPDFS_STORAGE_INFO_1 Storage; +#else + LPDFS_STORAGE_INFO_1 Storage; // An array (of NumberOfStorages elements) of + // storage-specific information. +#endif // MIDL_PASS +} DFS_INFO_9, *PDFS_INFO_9, *LPDFS_INFO_9; + +// +// The PropertyFlags field of DFS_INFO_5, DFS_INFO_6, +// DFS_INFO_103, DFS_INFO_105 & DFS_INFO_107. +// + +#define DFS_VALID_PROPERTY_FLAGS (DFS_PROPERTY_FLAG_INSITE_REFERRALS | \ + DFS_PROPERTY_FLAG_ROOT_SCALABILITY | \ + DFS_PROPERTY_FLAG_SITE_COSTING | \ + DFS_PROPERTY_FLAG_TARGET_FAILBACK | \ + DFS_PROPERTY_FLAG_CLUSTER_ENABLED | \ + DFS_PROPERTY_FLAG_ABDE) + + +// +// The "insite" flag. When set, only targets in the same +// site as the client are returned. +// +// Valid for domain/standalone roots/links +// + +#define DFS_PROPERTY_FLAG_INSITE_REFERRALS 0x00000001 + +// +// "Root scalability" mode. When set, DFS server polls +// the nearest DC instead of PDC to check for DFS namespace +// changes. Valid only for domain roots. +// + +#define DFS_PROPERTY_FLAG_ROOT_SCALABILITY 0x00000002 + +// +// Enables Active Directory site costing of targets. When enabled, +// targets are grouped into sets of increasing site costs from +// DFS client to target. Each set has targets of same cost. +// If not set, there are only two sets: set of targets in same +// site as client and set of targets not in the same site as the client. +// The latter is called "site awareness". +// Valid only domain/standalone roots +// + +#define DFS_PROPERTY_FLAG_SITE_COSTING 0x00000004 + +// +// Should the DFS client attempt to failback to a closer target +// when it is available after failing over to a non-optimal target? +// Valid for domain/standalone roots/links. +// + +#define DFS_PROPERTY_FLAG_TARGET_FAILBACK 0x00000008 + +// +// Bit will be 1 if the DFS root is clustered. Cannot be set +// using the NetDfsSetInfo() API. +// + +#define DFS_PROPERTY_FLAG_CLUSTER_ENABLED 0x00000010 + +// +// When set by the caller, Access-Based Directory Enumeration support +// is enabled on all the DFS root target share of the DFS namespace. +// Valid only for DFS namespaces which support the capability +// DFS_NAMESPACE_CAPABILITY_ABDE. Valid only on the DFS namespace root +// and not on root targets, link or link targets. +// This property must be enabled to associate security descriptor +// with a DFS link. +// + +#define DFS_PROPERTY_FLAG_ABDE 0x00000020 + +// +// Level 50: +// + +// +// DFS metadata version and capabilities of an existing +// DFS namespace. +// + +typedef struct _DFS_INFO_50 { + ULONG NamespaceMajorVersion; + ULONG NamespaceMinorVersion; + ULONGLONG NamespaceCapabilities; +} DFS_INFO_50, *PDFS_INFO_50, *LPDFS_INFO_50; + + +// +// Level 100: +// +typedef struct _DFS_INFO_100 { + LPWSTR Comment; // Comment for this volume or storage +} DFS_INFO_100, *PDFS_INFO_100, *LPDFS_INFO_100; + +// +// Level 101: +// +typedef struct _DFS_INFO_101 { + DWORD State; // State of this storage, one of DFS_STORAGE_STATE_* + // possibly OR'd with DFS_STORAGE_STATE_ACTIVE +} DFS_INFO_101, *PDFS_INFO_101, *LPDFS_INFO_101; + +// +// Level 102: +// +typedef struct _DFS_INFO_102 { + ULONG Timeout; // Timeout, in seconds, of the junction +} DFS_INFO_102, *PDFS_INFO_102, *LPDFS_INFO_102; + +// +// Level 103: +// +typedef struct _DFS_INFO_103 { + ULONG PropertyFlagMask; // Indicates which flags in PropertyFlags are valid. + ULONG PropertyFlags; // Flag meaningful only if corresponding bit set in + // PropertyFlagMask above. +} DFS_INFO_103, *PDFS_INFO_103, *LPDFS_INFO_103; + + +// +// Level 104: +// +typedef struct _DFS_INFO_104 { + DFS_TARGET_PRIORITY TargetPriority; // Priority of target. +} DFS_INFO_104, *PDFS_INFO_104, *LPDFS_INFO_104; + +// +// Level 105: +// +typedef struct _DFS_INFO_105 { + LPWSTR Comment; // Comment for this root/link. + DWORD State; // State of this root/link. One of DFS_VOLUME_STATE_* + ULONG Timeout; // Referral TTL, in seconds, of root/link. + ULONG PropertyFlagMask; // Indicates which flags in PropertyFlags are valid. + ULONG PropertyFlags; // One of DFS_PROPERTY_FLAG_* +} DFS_INFO_105, *PDFS_INFO_105, *LPDFS_INFO_105; + +// +// Level 106: +// +typedef struct _DFS_INFO_106 { + DWORD State; // State of this root/link target. + // One of DFS_TARGET_STATE_* + DFS_TARGET_PRIORITY TargetPriority; // Priority of this target. +} DFS_INFO_106, *PDFS_INFO_106, *LPDFS_INFO_106; + +// +// Level 107: +// +typedef struct _DFS_INFO_107 { + LPWSTR Comment; // Comment for this root/link. + DWORD State; // State of this root/link. One of DFS_VOLUME_STATE_* + ULONG Timeout; // Referral TTL, in seconds, of root/link. + ULONG PropertyFlagMask; // Indicates which flags in PropertyFlags are valid. + ULONG PropertyFlags; // One of DFS_PROPERTY_FLAG_* + +#ifdef MIDL_PASS + + // + // For use by the RPC marshalling code only. + // + + ULONG SecurityDescriptorLength; + + // + // Self-relative security descriptor to be associated + // with DFS link (and stamped on the reparse-point + // on disk). + // + + [size_is(SecurityDescriptorLength)] PUCHAR pSecurityDescriptor; +#else + ULONG SdLengthReserved; + PSECURITY_DESCRIPTOR pSecurityDescriptor; +#endif +} DFS_INFO_107, *PDFS_INFO_107, *LPDFS_INFO_107; + +// +// Level 150: +// +typedef struct _DFS_INFO_150 { + +#ifdef MIDL_PASS + + // + // For use by the RPC marshalling code only. + // + + ULONG SecurityDescriptorLength; + + // + // Self-relative security descriptor to be associated + // with DFS link (and stamped on the reparse-point + // on disk). + // + + [size_is(SecurityDescriptorLength)] PUCHAR pSecurityDescriptor; +#else + ULONG SdLengthReserved; + PSECURITY_DESCRIPTOR pSecurityDescriptor; +#endif +} DFS_INFO_150, *PDFS_INFO_150, *LPDFS_INFO_150; + +// + +// Level 200: +// +typedef struct _DFS_INFO_200 { + LPWSTR FtDfsName; // FtDfs name +} DFS_INFO_200, *PDFS_INFO_200, *LPDFS_INFO_200; + + +// +// Level 300: +// +typedef struct _DFS_INFO_300 { + DWORD Flags; + LPWSTR DfsName; // Dfs name +} DFS_INFO_300, *PDFS_INFO_300, *LPDFS_INFO_300; + + +// +// Add a new volume or additional storage for an existing volume at +// DfsEntryPath. +// +NET_API_STATUS NET_API_FUNCTION +NetDfsAdd( + _In_ LPWSTR DfsEntryPath, // DFS entry path for this added volume or storage + _In_ LPWSTR ServerName, // Name of server hosting the storage + _In_ LPWSTR ShareName, // Existing share name for the storage + _In_opt_ LPWSTR Comment, // Optional comment for this volume or storage + _In_ DWORD Flags // See below. Zero for no flags. +); + +// +// Flags: +// +#define DFS_ADD_VOLUME 1 // Add a new volume to the DFS if not already there +#define DFS_RESTORE_VOLUME 2 // Volume/Replica is being restored - do not verify share etc. + +// +// Setup/teardown API's for standard and FtDfs roots. +// + +NET_API_STATUS NET_API_FUNCTION +NetDfsAddStdRoot( + _In_ LPWSTR ServerName, // Server to remote to + _In_ LPWSTR RootShare, // Share to make Dfs root + _In_opt_ LPWSTR Comment, // Comment + _In_ DWORD Flags // Flags for operation. Zero for no flags. +); + +NET_API_STATUS NET_API_FUNCTION +NetDfsRemoveStdRoot( + _In_ LPWSTR ServerName, // Server to remote to + _In_ LPWSTR RootShare, // Share that host Dfs root + _Reserved_ DWORD Flags // Flags for operation. Zero for no flags. +); + +NET_API_STATUS NET_API_FUNCTION +NetDfsAddFtRoot( + _In_ LPWSTR ServerName, // Server to remote to + _In_ LPWSTR RootShare, // Share to make Dfs root + _In_ LPWSTR FtDfsName, // Name of FtDfs to create/join + _In_opt_ LPWSTR Comment, // Comment + _In_ DWORD Flags // Flags for operation. Zero for no flags. +); + + +NET_API_STATUS NET_API_FUNCTION +NetDfsRemoveFtRoot( + _In_ LPWSTR ServerName, // Server to remote to + _In_ LPWSTR RootShare, // Share that host Dfs root + _In_ LPWSTR FtDfsName, // Name of FtDfs to remove or unjoin from. + _Reserved_ DWORD Flags // Flags for operation. Zero for no flags. +); + +NET_API_STATUS NET_API_FUNCTION +NetDfsRemoveFtRootForced( + _In_ LPWSTR DomainName, // Name of domain the server is in + _In_ LPWSTR ServerName, // Server to remote to + _In_ LPWSTR RootShare, // Share that host Dfs root + _In_ LPWSTR FtDfsName, // Name of FtDfs to remove or unjoin from. + _Reserved_ DWORD Flags // Flags for operation. Zero for no flags. +); + + +// +// Flags for NetDfsSetDcAddress() +// + +#define NET_DFS_SETDC_FLAGS 0x00000000 +#define NET_DFS_SETDC_TIMEOUT 0x00000001 +#define NET_DFS_SETDC_INITPKT 0x00000002 + +// +// Structures used for site reporting. Last used in Windows 2000, maintained for +// the obsolete SRVSVC RPC API NetrDfsManagerReportSiteInfo. +// + +typedef struct { + ULONG SiteFlags; // Below +#ifdef MIDL_PASS + [string,unique] LPWSTR SiteName; +#else + LPWSTR SiteName; +#endif +} DFS_SITENAME_INFO, *PDFS_SITENAME_INFO, *LPDFS_SITENAME_INFO; + +// SiteFlags + +#define DFS_SITE_PRIMARY 0x1 // This site returned by DsGetSiteName() + +typedef struct { + ULONG cSites; +#ifdef MIDL_PASS + [size_is(cSites)] DFS_SITENAME_INFO Site[]; +#else + DFS_SITENAME_INFO Site[1]; +#endif +} DFS_SITELIST_INFO, *PDFS_SITELIST_INFO, *LPDFS_SITELIST_INFO; + +// +// Remove a volume or additional storage for volume from the Dfs at +// DfsEntryPath. When applied to the last storage in a volume, removes +// the volume from the DFS. +// +NET_API_STATUS NET_API_FUNCTION +NetDfsRemove( + _In_ LPWSTR DfsEntryPath, // DFS entry path for this added volume or storage + _In_opt_ LPWSTR ServerName, // Name of server hosting the storage + _In_opt_ LPWSTR ShareName // Name of share hosting the storage +); + +// +// Get information about all of the volumes in the Dfs. DfsName is +// the "server" part of the UNC name used to refer to this particular Dfs. +// +// Valid levels are 1-5, 200, 300 +// +_When_(Level == 1, _At_(Buffer, _Outptr_result_bytebuffer_(*EntriesRead * sizeof(DFS_INFO_1)))) +_When_(Level == 2, _At_(Buffer, _Outptr_result_bytebuffer_(*EntriesRead * sizeof(DFS_INFO_2)))) +_When_(Level == 3, _At_(Buffer, _Outptr_result_bytebuffer_(*EntriesRead * sizeof(DFS_INFO_3)))) +_When_(Level == 4, _At_(Buffer, _Outptr_result_bytebuffer_(*EntriesRead * sizeof(DFS_INFO_4)))) +_When_(Level == 5, _At_(Buffer, _Outptr_result_bytebuffer_(*EntriesRead * sizeof(DFS_INFO_5)))) +_When_(Level == 6, _At_(Buffer, _Outptr_result_bytebuffer_(*EntriesRead * sizeof(DFS_INFO_6)))) +_When_(Level == 8, _At_(Buffer, _Outptr_result_bytebuffer_(*EntriesRead * sizeof(DFS_INFO_8)))) +_When_(Level == 9, _At_(Buffer, _Outptr_result_bytebuffer_(*EntriesRead * sizeof(DFS_INFO_9)))) +_When_(Level == 200, _At_(Buffer, _Outptr_result_bytebuffer_(*EntriesRead * sizeof(DFS_INFO_200)))) +_When_(Level == 300, _At_(Buffer, _Outptr_result_bytebuffer_(*EntriesRead * sizeof(DFS_INFO_300)))) +NET_API_STATUS NET_API_FUNCTION +NetDfsEnum( + _In_ LPWSTR DfsName, // Name of the Dfs for enumeration + _In_ DWORD Level, // Level of information requested + _In_ DWORD PrefMaxLen, // Advisory, but -1 means "get it all" + _Out_ LPBYTE *Buffer, // API allocates and returns buffer with requested info + _Out_ LPDWORD EntriesRead, // Number of entries returned + _Inout_ LPDWORD ResumeHandle // Must be 0 on first call, reused on subsequent calls +); + +// +// Get information about the volume or storage. +// If ServerName and ShareName are specified, the information returned +// is specific to that server and share, else the information is specific +// to the volume as a whole. +// +// Valid levels are 1-5, 100 +// +_When_(Level == 1, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_1)))) +_When_(Level == 2, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_2)))) +_When_(Level == 3, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_3)))) +_When_(Level == 4, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_4)))) +_When_(Level == 5, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_5)))) +_When_(Level == 6, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_6)))) +_When_(Level == 7, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_7)))) +_When_(Level == 8, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_8)))) +_When_(Level == 9, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_9)))) +_When_(Level == 50, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_50)))) +_When_(Level == 100, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_100)))) +_When_(Level == 150, _At_(Buffer, _Outptr_result_bytebuffer_(sizeof(DFS_INFO_150)))) +NET_API_STATUS NET_API_FUNCTION +NetDfsGetInfo( + _In_ LPWSTR DfsEntryPath, // DFS entry path for the volume + _In_opt_ LPWSTR ServerName, // Name of server hosting a storage + _In_opt_ LPWSTR ShareName, // Name of share on server serving the volume + _In_ DWORD Level, // Level of information requested + _Out_ LPBYTE *Buffer // API allocates and returns buffer with requested info +); + +// +// Set info about the volume or storage. +// If ServerName and ShareName are specified, the information set is +// specific to that server and share, else the information is specific +// to the volume as a whole. +// +// Valid levels are 100, 101 and 102 +// + +_When_(Level == 101, _At_(Buffer, _In_reads_bytes_(sizeof(DFS_INFO_101)))) +NET_API_STATUS NET_API_FUNCTION +NetDfsSetInfo( + _In_ LPWSTR DfsEntryPath, // DFS entry path for the volume + _In_opt_ LPWSTR ServerName, // Name of server hosting a storage + _In_opt_ LPWSTR ShareName, // Name of share hosting a storage + _In_ DWORD Level, // Level of information to be set + _In_ LPBYTE Buffer // Buffer holding information +); + +// +// Get client's cached information about the volume or storage. +// If ServerName and ShareName are specified, the information returned +// is specific to that server and share, else the information is specific +// to the volume as a whole. +// +// Valid levels are 1-4 +// +NET_API_STATUS NET_API_FUNCTION +NetDfsGetClientInfo( + _In_ LPWSTR DfsEntryPath, // DFS entry path for the volume + _In_opt_ LPWSTR ServerName, // Name of server hosting a storage + _In_opt_ LPWSTR ShareName, // Name of share on server serving the volume + _In_ DWORD Level, // Level of information requested + _Out_ LPBYTE *Buffer // API allocates and returns buffer with requested info +); + +// +// Set client's cached info about the volume or storage. +// If ServerName and ShareName are specified, the information set is +// specific to that server and share, else the information is specific +// to the volume as a whole. +// +// Valid levels are 101 and 102. +// + +_When_(Level == 101, _At_(Buffer, _In_reads_bytes_(sizeof(DFS_INFO_101)))) +NET_API_STATUS NET_API_FUNCTION +NetDfsSetClientInfo( + _In_ LPWSTR DfsEntryPath, // DFS entry path for the volume + _In_opt_ LPWSTR ServerName, // Name of server hosting a storage + _In_opt_ LPWSTR ShareName, // Name of share hosting a storage + _In_ DWORD Level, // Level of information to be set + _In_ LPBYTE Buffer // Buffer holding information +); + +// +// Move a DFS volume and all subordinate volumes from one place in the +// DFS to another place in the DFS. +// + + +NET_API_STATUS NET_API_FUNCTION +NetDfsMove( + _In_ LPWSTR OldDfsEntryPath, // Current DFS entry path for this volume + _In_ LPWSTR NewDfsEntryPath, // New DFS entry path for this volume + _In_ ULONG Flags +); + +// +// Flags accepted by NetDfsMove +// + +// +// This indicates that if a colliding link is found it should be replaced +// + +#define DFS_MOVE_FLAG_REPLACE_IF_EXISTS 0x00000001 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +NET_API_STATUS NET_API_FUNCTION +NetDfsRename( + _In_ LPWSTR Path, // Current Win32 path in a Dfs + _In_ LPWSTR NewPath // New Win32 path in the same Dfs +); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +NET_API_STATUS NET_API_FUNCTION +NetDfsAddRootTarget( + _In_ LPWSTR pDfsPath, + _In_opt_ LPWSTR pTargetPath, + _In_ ULONG MajorVersion, + _In_opt_ LPWSTR pComment, + _In_ ULONG Flags + ); + +// +// Reuse existing definition used by NetrDfsRemoveFtRoot(). +// + +#ifndef DFS_FORCE_REMOVE +#define DFS_FORCE_REMOVE 0x80000000 +#endif + +NET_API_STATUS NET_API_FUNCTION +NetDfsRemoveRootTarget( + _In_ LPWSTR pDfsPath, + _In_opt_ LPWSTR pTargetPath, + _In_ ULONG Flags + ); + +NET_API_STATUS NET_API_FUNCTION +NetDfsGetSecurity( + _In_ LPWSTR DfsEntryPath, + _In_ SECURITY_INFORMATION SecurityInformation, + _Outptr_result_bytebuffer_(*lpcbSecurityDescriptor) PSECURITY_DESCRIPTOR *ppSecurityDescriptor, + _Out_ LPDWORD lpcbSecurityDescriptor +); + +NET_API_STATUS NET_API_FUNCTION +NetDfsSetSecurity( + _In_ LPWSTR DfsEntryPath, + _In_ SECURITY_INFORMATION SecurityInformation, + _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor +); + +NET_API_STATUS NET_API_FUNCTION +NetDfsGetStdContainerSecurity( + _In_ LPWSTR MachineName, + _In_ SECURITY_INFORMATION SecurityInformation, + _Outptr_result_bytebuffer_(*lpcbSecurityDescriptor) PSECURITY_DESCRIPTOR *ppSecurityDescriptor, + _Out_ LPDWORD lpcbSecurityDescriptor +); + +NET_API_STATUS NET_API_FUNCTION +NetDfsSetStdContainerSecurity( + _In_ LPWSTR MachineName, + _In_ SECURITY_INFORMATION SecurityInformation, + _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor +); + +NET_API_STATUS NET_API_FUNCTION +NetDfsGetFtContainerSecurity( + _In_ LPWSTR DomainName, + _In_ SECURITY_INFORMATION SecurityInformation, + _Outptr_result_bytebuffer_(*lpcbSecurityDescriptor) PSECURITY_DESCRIPTOR *ppSecurityDescriptor, + _Out_ LPDWORD lpcbSecurityDescriptor +); + +NET_API_STATUS NET_API_FUNCTION +NetDfsSetFtContainerSecurity( + _In_ LPWSTR DomainName, + _In_ SECURITY_INFORMATION SecurityInformation, + _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor +); + +// +// Origin of DFS namespace version information. +// + +typedef enum { + DFS_NAMESPACE_VERSION_ORIGIN_COMBINED = 0, // Max version {server, AD DS domain} + // can support. + DFS_NAMESPACE_VERSION_ORIGIN_SERVER, // Max version server can support. + DFS_NAMESPACE_VERSION_ORIGIN_DOMAIN // Max version AD DS domain can support. +} DFS_NAMESPACE_VERSION_ORIGIN, *PDFS_NAMESPACE_VERSION_ORIGIN; + +// +// Capabilities: +// Set of bit flags which indicates support for a specific capability. +// + +// +// DFS namespace supports associating a security descriptor with DFS link +// for Access-Based Directory Enumeration purposes. +// + +#define DFS_NAMESPACE_CAPABILITY_ABDE ((ULONGLONG) 0x0000000000000001) + + +typedef struct _DFS_SUPPORTED_NAMESPACE_VERSION_INFO { + + // + // Domain-based DFS information. + // Valid only if DomainDfsMajorVersion != 0. + // + + ULONG DomainDfsMajorVersion; + ULONG DomainDfsMinorVersion; + ULONGLONG DomainDfsCapabilities; + + // + // Standalone DFS information. + // Valid only if StandaloneDfsMajorVersion != 0. + // + + ULONG StandaloneDfsMajorVersion; + ULONG StandaloneDfsMinorVersion; + ULONGLONG StandaloneDfsCapabilities; +} DFS_SUPPORTED_NAMESPACE_VERSION_INFO, *PDFS_SUPPORTED_NAMESPACE_VERSION_INFO; + + +NET_API_STATUS NET_API_FUNCTION +NetDfsGetSupportedNamespaceVersion( + _In_ DFS_NAMESPACE_VERSION_ORIGIN Origin, + _In_opt_ PWSTR pName, + _Outptr_ PDFS_SUPPORTED_NAMESPACE_VERSION_INFO *ppVersionInfo + ); + +#ifndef _DFSFSCTL_ +#define FSCTL_DFS_GET_PKT_ENTRY_STATE CTL_CODE(FSCTL_DFS_BASE, 2031, METHOD_BUFFERED, FILE_ANY_ACCESS) + +// FSCTL_DFS_GET_PKT_ENTRY_STATE Input Buffer +// All the strings appear in Buffer in the same order as the length fields. The strings +// are not NULL terminated. The length values are in bytes. +typedef struct { + USHORT DfsEntryPathLen; + USHORT ServerNameLen; + USHORT ShareNameLen; + ULONG Level; + WCHAR Buffer[1]; +} DFS_GET_PKT_ENTRY_STATE_ARG, *PDFS_GET_PKT_ENTRY_STATE_ARG; +#endif + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _LMDFS_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMErrlog.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMErrlog.h new file mode 100644 index 0000000000000000000000000000000000000000..9ef9dc25f3ff88670974539b1518c42e7440ddca --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMErrlog.h @@ -0,0 +1,2071 @@ +/*++ BUILD Version: 0002 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmerrlog.h + +Abstract: + + This module defines the API function prototypes and data structures + for the following groups of NT API functions: + NetErrorLog + +Environment: + + User Mode - Win32 + +Notes: + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +--*/ + +#ifndef _LMERRLOG_ +#define _LMERRLOG_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Data Structures - Config +// + +typedef struct _ERROR_LOG { + DWORD el_len; + DWORD el_reserved; + DWORD el_time; + DWORD el_error; + LPWSTR el_name; // pointer to service name + LPWSTR el_text; // pointer to string array + LPBYTE el_data; // pointer to BYTE array + DWORD el_data_size; // byte count of el_data area + DWORD el_nstrings; // number of strings in el_text. +} ERROR_LOG, *PERROR_LOG, *LPERROR_LOG; + + +#define REVISED_ERROR_LOG_STRUCT + + +#ifndef _LMHLOGDEFINED_ +#define _LMHLOGDEFINED_ + +typedef struct _HLOG { + DWORD time; + DWORD last_flags; + DWORD offset; + DWORD rec_offset; +} HLOG, *PHLOG, *LPHLOG; + +#define LOGFLAGS_FORWARD 0 +#define LOGFLAGS_BACKWARD 0x1 +#define LOGFLAGS_SEEK 0x2 + +#endif + +// +// Function Prototypes - ErrorLog +// + +NET_API_STATUS NET_API_FUNCTION +NetErrorLogClear ( + _In_opt_ LPCWSTR UncServerName, + _In_opt_ LPCWSTR BackupFile, + _In_opt_ LPBYTE Reserved + ); + +NET_API_STATUS NET_API_FUNCTION +NetErrorLogRead ( + _In_opt_ LPCWSTR UncServerName, + _In_opt_ LPWSTR Reserved1, + _In_ LPHLOG ErrorLogHandle, + _In_ DWORD Offset, + _In_opt_ LPDWORD Reserved2, + _In_ DWORD Reserved3, + _In_ DWORD OffsetFlag, + _Outptr_ LPBYTE *BufPtr, + _In_ DWORD PrefMaxSize, + _Out_ LPDWORD BytesRead, + _Out_ LPDWORD TotalAvailable + ); + +NET_API_STATUS NET_API_FUNCTION +NetErrorLogWrite ( + _In_opt_ LPBYTE Reserved1, + _In_ DWORD Code, + _In_ LPCWSTR Component, + _In_ LPBYTE Buffer, + _In_ DWORD NumBytes, + _In_ LPBYTE MsgBuf, + _In_ DWORD StrCount, + _In_opt_ LPBYTE Reserved2 + ); + +// +// Special Values and Constants +// + + +// +// Generic (could be used by more than one service) +// error log messages from 0 to 25 +// +// Do not change the comments following the manifest constants without +// understanding how mapmsg works. +// + +#define ERRLOG_BASE 3100 /* NELOG errors start here */ + +#define NELOG_Internal_Error (ERRLOG_BASE + 0) + /* + * The operation failed because a network software error occurred. + */ + +#define NELOG_Resource_Shortage (ERRLOG_BASE + 1) + /* + * The system ran out of a resource controlled by the %1 option. + */ + +#define NELOG_Unable_To_Lock_Segment (ERRLOG_BASE + 2) + /* + * The service failed to obtain a long-term lock on the + * segment for network control blocks (NCBs). The error code is the data. + */ + +#define NELOG_Unable_To_Unlock_Segment (ERRLOG_BASE + 3) + /* + * The service failed to release the long-term lock on the + * segment for network control blocks (NCBs). The error code is the data. + */ + +#define NELOG_Uninstall_Service (ERRLOG_BASE + 4) + /* + * There was an error stopping service %1. + * The error code from NetServiceControl is the data. + */ + +#define NELOG_Init_Exec_Fail (ERRLOG_BASE + 5) + /* + * Initialization failed because of a system execution failure on + * path %1. The system error code is the data. + */ + +#define NELOG_Ncb_Error (ERRLOG_BASE + 6) + /* + * An unexpected network control block (NCB) was received. The NCB is the data. + */ + +#define NELOG_Net_Not_Started (ERRLOG_BASE + 7) + /* + * The network is not started. + */ + +#define NELOG_Ioctl_Error (ERRLOG_BASE + 8) + /* + * A DosDevIoctl or DosFsCtl to NETWKSTA.SYS failed. + * The data shown is in this format: + * DWORD approx CS:IP of call to ioctl or fsctl + * WORD error code + * WORD ioctl or fsctl number + */ + +#define NELOG_System_Semaphore (ERRLOG_BASE + 9) + /* + * Unable to create or open system semaphore %1. + * The error code is the data. + */ + +#define NELOG_Init_OpenCreate_Err (ERRLOG_BASE + 10) + /* + * Initialization failed because of an open/create error on the + * file %1. The system error code is the data. + */ + +#define NELOG_NetBios (ERRLOG_BASE + 11) + /* + * An unexpected NetBIOS error occurred. + * The error code is the data. + */ + +#define NELOG_SMB_Illegal (ERRLOG_BASE + 12) + /* + * An illegal server message block (SMB) was received. + * The SMB is the data. + */ + +#define NELOG_Service_Fail (ERRLOG_BASE + 13) + /* + * Initialization failed because the requested service %1 + * could not be started. + */ + +#define NELOG_Entries_Lost (ERRLOG_BASE + 14) + /* + * Some entries in the error log were lost because of a buffer + * overflow. + */ + + +// +// Server specific error log messages from 20 to 40 +// + +#define NELOG_Init_Seg_Overflow (ERRLOG_BASE + 20) + /* + * Initialization parameters controlling resource usage other + * than net buffers are sized so that too much memory is needed. + */ + +#define NELOG_Srv_No_Mem_Grow (ERRLOG_BASE + 21) + /* + * The server cannot increase the size of a memory segment. + */ + +#define NELOG_Access_File_Bad (ERRLOG_BASE + 22) + /* + * Initialization failed because account file %1 is either incorrect + * or not present. + */ + +#define NELOG_Srvnet_Not_Started (ERRLOG_BASE + 23) + /* + * Initialization failed because network %1 was not started. + */ + +#define NELOG_Init_Chardev_Err (ERRLOG_BASE + 24) + /* + * The server failed to start. Either all three chdev + * parameters must be zero or all three must be nonzero. + */ + +#define NELOG_Remote_API (ERRLOG_BASE + 25) + /* A remote API request was halted due to the following + * invalid description string: %1. + */ + +#define NELOG_Ncb_TooManyErr (ERRLOG_BASE + 26) + /* The network %1 ran out of network control blocks (NCBs). You may need to increase NCBs + * for this network. The following information includes the + * number of NCBs submitted by the server when this error occurred: + */ + +#define NELOG_Mailslot_err (ERRLOG_BASE + 27) + /* The server cannot create the %1 mailslot needed to send + * the ReleaseMemory alert message. The error received is: + */ + +#define NELOG_ReleaseMem_Alert (ERRLOG_BASE + 28) + /* The server failed to register for the ReleaseMemory alert, + * with recipient %1. The error code from + * NetAlertStart is the data. + */ + +#define NELOG_AT_cannot_write (ERRLOG_BASE + 29) + /* The server cannot update the AT schedule file. The file + * is corrupted. + */ + +#define NELOG_Cant_Make_Msg_File (ERRLOG_BASE + 30) + /* The server encountered an error when calling + * NetIMakeLMFileName. The error code is the data. + */ + +#define NELOG_Exec_Netservr_NoMem (ERRLOG_BASE + 31) + /* Initialization failed because of a system execution failure on + * path %1. There is not enough memory to start the process. + * The system error code is the data. + */ + +#define NELOG_Server_Lock_Failure (ERRLOG_BASE + 32) + /* Longterm lock of the server buffers failed. + * Check swap disk's free space and restart the system to start the server. + */ + +// +// Message service and POPUP specific error log messages from 40 to 55 +// + +#define NELOG_Msg_Shutdown (ERRLOG_BASE + 40) + /* + * The service has stopped due to repeated consecutive + * occurrences of a network control block (NCB) error. The last bad NCB follows + * in raw data. + */ + +#define NELOG_Msg_Sem_Shutdown (ERRLOG_BASE + 41) + /* + * The Message server has stopped due to a lock on the + * Message server shared data segment. + */ + +#define NELOG_Msg_Log_Err (ERRLOG_BASE + 50) + /* + * A file system error occurred while opening or writing to the + * system message log file %1. Message logging has been + * switched off due to the error. The error code is the data. + */ + + + +#define NELOG_VIO_POPUP_ERR (ERRLOG_BASE + 51) + /* + * Unable to display message POPUP due to system VIO call error. + * The error code is the data. + */ + +#define NELOG_Msg_Unexpected_SMB_Type (ERRLOG_BASE + 52) + /* + * An illegal server message block (SMB) was received. The SMB is the data. + */ + +// +// Workstation specific error log messages from 60 to 75 +// + + +#define NELOG_Wksta_Infoseg (ERRLOG_BASE + 60) + /* + * The workstation information segment is bigger than 64K. + * The size follows, in DWORD format: + */ + +#define NELOG_Wksta_Compname (ERRLOG_BASE + 61) + /* + * The workstation was unable to get the name-number of the computer. + */ + +#define NELOG_Wksta_BiosThreadFailure (ERRLOG_BASE + 62) + /* + * The workstation could not initialize the Async NetBIOS Thread. + * The error code is the data. + */ + +#define NELOG_Wksta_IniSeg (ERRLOG_BASE + 63) + /* + * The workstation could not open the initial shared segment. + * The error code is the data. + */ + +#define NELOG_Wksta_HostTab_Full (ERRLOG_BASE + 64) + /* + * The workstation host table is full. + */ + +#define NELOG_Wksta_Bad_Mailslot_SMB (ERRLOG_BASE + 65) + /* + * A bad mailslot server message block (SMB) was received. The SMB is the data. + */ + +#define NELOG_Wksta_UASInit (ERRLOG_BASE + 66) + /* + * The workstation encountered an error while trying to start the user accounts database. + * The error code is the data. + */ + +#define NELOG_Wksta_SSIRelogon (ERRLOG_BASE + 67) + /* + * The workstation encountered an error while responding to an SSI revalidation request. + * The function code and the error codes are the data. + */ + +// +// Alerter service specific error log messages from 70 to 79 +// + + +#define NELOG_Build_Name (ERRLOG_BASE + 70) + /* + * The Alerter service had a problem creating the list of + * alert recipients. The error code is %1. + */ + +#define NELOG_Name_Expansion (ERRLOG_BASE + 71) + /* + * There was an error expanding %1 as a group name. Try + * splitting the group into two or more smaller groups. + */ + +#define NELOG_Message_Send (ERRLOG_BASE + 72) + /* + * There was an error sending %2 the alert message - + * ( + * %3 ) + * The error code is %1. + */ + +#define NELOG_Mail_Slt_Err (ERRLOG_BASE + 73) + /* + * There was an error in creating or reading the alerter mailslot. + * The error code is %1. + */ + +#define NELOG_AT_cannot_read (ERRLOG_BASE + 74) + /* + * The server could not read the AT schedule file. + */ + +#define NELOG_AT_sched_err (ERRLOG_BASE + 75) + /* + * The server found an invalid AT schedule record. + */ + +#define NELOG_AT_schedule_file_created (ERRLOG_BASE + 76) + /* + * The server could not find an AT schedule file so it created one. + */ + +#define NELOG_Srvnet_NB_Open (ERRLOG_BASE + 77) + /* + * The server could not access the %1 network with NetBiosOpen. + */ + +#define NELOG_AT_Exec_Err (ERRLOG_BASE + 78) + /* + * The AT command processor could not run %1. + */ + +// +// Cache Lazy Write and HPFS386 specific error log messages from 80 to 89 +// + +#define NELOG_Lazy_Write_Err (ERRLOG_BASE + 80) + /* + * WARNING: Because of a lazy-write error, drive %1 now + * contains some corrupted data. The cache is stopped. + */ + +#define NELOG_HotFix (ERRLOG_BASE + 81) + /* + * A defective sector on drive %1 has been replaced (hotfixed). + * No data was lost. You should run CHKDSK soon to restore full + * performance and replenish the volume's spare sector pool. + * + * The hotfix occurred while processing a remote request. + */ + +#define NELOG_HardErr_From_Server (ERRLOG_BASE + 82) + /* + * A disk error occurred on the HPFS volume in drive %1. + * The error occurred while processing a remote request. + */ + +#define NELOG_LocalSecFail1 (ERRLOG_BASE + 83) + /* + * The user accounts database (NET.ACC) is corrupted. The local security + * system is replacing the corrupted NET.ACC with the backup + * made at %1. + * Any updates made to the database after this time are lost. + * + */ + +#define NELOG_LocalSecFail2 (ERRLOG_BASE + 84) + /* + * The user accounts database (NET.ACC) is missing. The local + * security system is restoring the backup database + * made at %1. + * Any updates made to the database made after this time are lost. + * + */ + +#define NELOG_LocalSecFail3 (ERRLOG_BASE + 85) + /* + * Local security could not be started because the user accounts database + * (NET.ACC) was missing or corrupted, and no usable backup + * database was present. + * + * THE SYSTEM IS NOT SECURE. + */ + +#define NELOG_LocalSecGeneralFail (ERRLOG_BASE + 86) + /* + * Local security could not be started because an error + * occurred during initialization. The error code returned is %1. + * + * THE SYSTEM IS NOT SECURE. + * + */ + +// +// NETWKSTA.SYS specific error log messages from 90 to 99 +// + +#define NELOG_NetWkSta_Internal_Error (ERRLOG_BASE + 90) + /* + * A NetWksta internal error has occurred: + * %1 + */ + +#define NELOG_NetWkSta_No_Resource (ERRLOG_BASE + 91) + /* + * The redirector is out of a resource: %1. + */ + +#define NELOG_NetWkSta_SMB_Err (ERRLOG_BASE + 92) + /* + * A server message block (SMB) error occurred on the connection to %1. + * The SMB header is the data. + */ + +#define NELOG_NetWkSta_VC_Err (ERRLOG_BASE + 93) + /* + * A virtual circuit error occurred on the session to %1. + * The network control block (NCB) command and return code is the data. + */ + +#define NELOG_NetWkSta_Stuck_VC_Err (ERRLOG_BASE + 94) + /* + * Hanging up a stuck session to %1. + */ + +#define NELOG_NetWkSta_NCB_Err (ERRLOG_BASE + 95) + /* + * A network control block (NCB) error occurred (%1). + * The NCB is the data. + */ + +#define NELOG_NetWkSta_Write_Behind_Err (ERRLOG_BASE + 96) + /* + * A write operation to %1 failed. + * Data may have been lost. + */ + +#define NELOG_NetWkSta_Reset_Err (ERRLOG_BASE + 97) + /* + * Reset of driver %1 failed to complete the network control block (NCB). + * The NCB is the data. + */ + +#define NELOG_NetWkSta_Too_Many (ERRLOG_BASE + 98) + /* + * The amount of resource %1 requested was more + * than the maximum. The maximum amount was allocated. + */ + +// +// Spooler specific error log messages from 100 to 103 +// + +#define NELOG_Srv_Thread_Failure (ERRLOG_BASE + 104) + /* + * The server could not create a thread. + * The THREADS parameter in the CONFIG.SYS file should be increased. + */ + +#define NELOG_Srv_Close_Failure (ERRLOG_BASE + 105) + /* + * The server could not close %1. + * The file is probably corrupted. + */ + +#define NELOG_ReplUserCurDir (ERRLOG_BASE + 106) + /* + *The replicator cannot update directory %1. It has tree integrity + * and is the current directory for some process. + */ + +#define NELOG_ReplCannotMasterDir (ERRLOG_BASE + 107) + /* + *The server cannot export directory %1 to client %2. + * It is exported from another server. + */ + +#define NELOG_ReplUpdateError (ERRLOG_BASE + 108) + /* + *The replication server could not update directory %2 from the source + * on %3 due to error %1. + */ + +#define NELOG_ReplLostMaster (ERRLOG_BASE + 109) + /* + *Master %1 did not send an update notice for directory %2 at the expected + * time. + */ + +#define NELOG_NetlogonAuthDCFail (ERRLOG_BASE + 110) + /* + *This computer could not authenticate with %2, a Windows domain controller + * for domain %1, and therefore this computer might deny logon requests. + * This inability to authenticate might be caused by another computer on the + * same network using the same name or the password for this computer account + * is not recognized. If this message appears again, contact your system + * administrator. + */ + +#define NELOG_ReplLogonFailed (ERRLOG_BASE + 111) + /* + *The replicator attempted to log on at %2 as %1 and failed. + */ + +#define NELOG_ReplNetErr (ERRLOG_BASE + 112) + /* + * Network error %1 occurred. + */ + +#define NELOG_ReplMaxFiles (ERRLOG_BASE + 113) + /* + * Replicator limit for files in a directory has been exceeded. + */ + + +#define NELOG_ReplMaxTreeDepth (ERRLOG_BASE + 114) + /* + * Replicator limit for tree depth has been exceeded. + */ + +#define NELOG_ReplBadMsg (ERRLOG_BASE + 115) + /* + * Unrecognized message received in mailslot. + */ + +#define NELOG_ReplSysErr (ERRLOG_BASE + 116) + /* + * System error %1 occurred. + */ + +#define NELOG_ReplUserLoged (ERRLOG_BASE + 117) + /* + * Cannot log on. User is currently logged on and argument TRYUSER + * is set to NO. + */ + +#define NELOG_ReplBadImport (ERRLOG_BASE + 118) + /* + * IMPORT path %1 cannot be found. + */ + +#define NELOG_ReplBadExport (ERRLOG_BASE + 119) + /* + * EXPORT path %1 cannot be found. + */ + +#define NELOG_ReplSignalFileErr (ERRLOG_BASE + 120) + /* + * Replicator failed to update signal file in directory %2 due to + * %1 system error. + */ + +#define NELOG_DiskFT (ERRLOG_BASE+121) + /* + * Disk Fault Tolerance Error + * + * %1 + */ + +#define NELOG_ReplAccessDenied (ERRLOG_BASE + 122) + /* + * Replicator could not access %2 + * on %3 due to system error %1. + */ + +#define NELOG_NetlogonFailedPrimary (ERRLOG_BASE + 123) + /* + *The primary domain controller for domain %1 has apparently failed. + */ + +#define NELOG_NetlogonPasswdSetFailed (ERRLOG_BASE + 124) + /* + * Changing machine account password for account %1 failed with + * the following error: %n%2 + */ + +#define NELOG_NetlogonTrackingError (ERRLOG_BASE + 125) + /* + *An error occurred while updating the logon or logoff information for %1. + */ + +#define NELOG_NetlogonSyncError (ERRLOG_BASE + 126) + /* + *An error occurred while synchronizing with primary domain controller %1 + */ + +#define NELOG_NetlogonRequireSignOrSealError (ERRLOG_BASE + 127) + /* + * The session setup to the Windows Domain Controller %1 for the domain %2 + * failed because %1 does not support signing or sealing the Netlogon + * session. + * + * Either upgrade the Domain controller or set the RequireSignOrSeal + * registry entry on this machine to 0. + */ + +// +// UPS service specific error log messages from 130 to 135 +// + +#define NELOG_UPS_PowerOut (ERRLOG_BASE + 130) + /* + * A power failure was detected at the server. + */ + +#define NELOG_UPS_Shutdown (ERRLOG_BASE + 131) + /* + * The UPS service performed server shut down. + */ + +#define NELOG_UPS_CmdFileError (ERRLOG_BASE + 132) + /* + * The UPS service did not complete execution of the + * user specified shut down command file. + */ + +#define NELOG_UPS_CannotOpenDriver (ERRLOG_BASE+133) + /* + * The UPS driver could not be opened. The error code is + * the data. + */ + +#define NELOG_UPS_PowerBack (ERRLOG_BASE + 134) + /* + * Power has been restored. + */ + +#define NELOG_UPS_CmdFileConfig (ERRLOG_BASE + 135) + /* + * There is a problem with a configuration of user specified + * shut down command file. + */ + +#define NELOG_UPS_CmdFileExec (ERRLOG_BASE + 136) + /* + * The UPS service failed to execute a user specified shutdown + * command file %1. The error code is the data. + */ + +// +// Remoteboot server specific error log messages are from 150 to 157 +// + +#define NELOG_Missing_Parameter (ERRLOG_BASE + 150) + /* + * Initialization failed because of an invalid or missing + * parameter in the configuration file %1. + */ + +#define NELOG_Invalid_Config_Line (ERRLOG_BASE + 151) + /* + * Initialization failed because of an invalid line in the + * configuration file %1. The invalid line is the data. + */ + +#define NELOG_Invalid_Config_File (ERRLOG_BASE + 152) + /* + * Initialization failed because of an error in the configuration + * file %1. + */ + +#define NELOG_File_Changed (ERRLOG_BASE + 153) + /* + * The file %1 has been changed after initialization. + * The boot-block loading was temporarily terminated. + */ + +#define NELOG_Files_Dont_Fit (ERRLOG_BASE + 154) + /* + * The files do not fit to the boot-block configuration + * file %1. Change the BASE and ORG definitions or the order + * of the files. + */ + +#define NELOG_Wrong_DLL_Version (ERRLOG_BASE + 155) + /* + * Initialization failed because the dynamic-link + * library %1 returned an incorrect version number. + */ + +#define NELOG_Error_in_DLL (ERRLOG_BASE + 156) + /* + * There was an unrecoverable error in the dynamic- + * link library of the service. + */ + +#define NELOG_System_Error (ERRLOG_BASE + 157) + /* + * The system returned an unexpected error code. + * The error code is the data. + */ + +#define NELOG_FT_ErrLog_Too_Large (ERRLOG_BASE + 158) + /* + * The fault-tolerance error log file, LANROOT\LOGS\FT.LOG, + * is more than 64K. + */ + +#define NELOG_FT_Update_In_Progress (ERRLOG_BASE + 159) + /* + * The fault-tolerance error-log file, LANROOT\LOGS\FT.LOG, had the + * update in progress bit set upon opening, which means that the + * system crashed while working on the error log. + */ + +#define NELOG_Joined_Domain (ERRLOG_BASE + 160) + /* + * This computer has been successfully joined to domain '%1'. + */ + +#define NELOG_Joined_Workgroup (ERRLOG_BASE + 161) + /* + * This computer has been successfully joined to workgroup '%1'. + */ + + +// +// Microsoft has created a generic error log entry for OEMs to use to +// log errors from OEM value added services. The code, which is the +// 2nd arg to NetErrorLogWrite, is 3299. This value is manifest in +// NET/H/ERRLOG.H as NELOG_OEM_Code. The text for error log entry +// NELOG_OEM_Code is: "%1 %2 %3 %4 %5 %6 %7 %8 %9.". +// +// Microsoft suggests that OEMs use the insertion strings as follows: +// %1: OEM System Name (e.g. 3+Open) +// %2: OEM Service Name (e.g. 3+Mail) +// %3: Severity level (e.g. error, warning, etc.) +// %4: OEM error log entry sub-identifier (e.g. error code #) +// %5 - % 9: Text. +// +// The call to NetErrorWrite must set nstrings = 9, and provide 9 +// ASCIIZ strings. If the caller does not have 9 insertion strings, +// provide null strings for the empty insertion strings. +// + +#define NELOG_OEM_Code (ERRLOG_BASE + 199) + /* + * %1 %2 %3 %4 %5 %6 %7 %8 %9. + */ + +// +// another error log range defined for NT Lanman. +// + +#define ERRLOG2_BASE 5700 /* New NT NELOG errors start here */ + +#define NELOG_NetlogonSSIInitError (ERRLOG2_BASE + 0) + /* + * The Netlogon service could not initialize the replication data + * structures successfully. The service was terminated. The following + * error occurred: %n%1 + */ + +#define NELOG_NetlogonFailedToUpdateTrustList (ERRLOG2_BASE + 1) + /* + * The Netlogon service failed to update the domain trust list. The + * following error occurred: %n%1 + */ + +#define NELOG_NetlogonFailedToAddRpcInterface (ERRLOG2_BASE + 2) + /* + * The Netlogon service could not add the RPC interface. The + * service was terminated. The following error occurred: %n%1 + */ + +#define NELOG_NetlogonFailedToReadMailslot (ERRLOG2_BASE + 3) + /* + * The Netlogon service could not read a mailslot message from %1 due + * to the following error: %n%2 + */ + +#define NELOG_NetlogonFailedToRegisterSC (ERRLOG2_BASE + 4) + /* + * The Netlogon service failed to register the service with the + * service controller. The service was terminated. The following + * error occurred: %n%1 + */ + +#define NELOG_NetlogonChangeLogCorrupt (ERRLOG2_BASE + 5) + /* + * The change log cache maintained by the Netlogon service for %1 + * database changes is inconsistent. The Netlogon service is resetting + * the change log. + */ + +#define NELOG_NetlogonFailedToCreateShare (ERRLOG2_BASE + 6) + /* + * The Netlogon service could not create server share %1. The following + * error occurred: %n%2 + */ + +#define NELOG_NetlogonDownLevelLogonFailed (ERRLOG2_BASE + 7) + /* + * The down-level logon request for the user %1 from %2 failed. + */ + +#define NELOG_NetlogonDownLevelLogoffFailed (ERRLOG2_BASE + 8) + /* + * The down-level logoff request for the user %1 from %2 failed. + */ + +#define NELOG_NetlogonNTLogonFailed (ERRLOG2_BASE + 9) + /* + * The Windows NT or Windows 2000 %1 logon request for the user %2\%3 from %4 (via %5) + * failed. + */ + +#define NELOG_NetlogonNTLogoffFailed (ERRLOG2_BASE + 10) + /* + * The Windows NT or Windows 2000 %1 logoff request for the user %2\%3 from %4 + * failed. + */ + +#define NELOG_NetlogonPartialSyncCallSuccess (ERRLOG2_BASE + 11) + /* + * The partial synchronization request from the server %1 completed + * successfully. %2 changes(s) has(have) been returned to the + * caller. + */ + +#define NELOG_NetlogonPartialSyncCallFailed (ERRLOG2_BASE + 12) + /* + * The partial synchronization request from the server %1 failed with + * the following error: %n%2 + */ + +#define NELOG_NetlogonFullSyncCallSuccess (ERRLOG2_BASE + 13) + /* + * The full synchronization request from the server %1 completed + * successfully. %2 object(s) has(have) been returned to + * the caller. + */ + +#define NELOG_NetlogonFullSyncCallFailed (ERRLOG2_BASE + 14) + /* + * The full synchronization request from the server %1 failed with + * the following error: %n%2 + */ + +#define NELOG_NetlogonPartialSyncSuccess (ERRLOG2_BASE + 15) + /* + * The partial synchronization replication of the %1 database from the + * primary domain controller %2 completed successfully. %3 change(s) is(are) + * applied to the database. + */ + + +#define NELOG_NetlogonPartialSyncFailed (ERRLOG2_BASE + 16) + /* + * The partial synchronization replication of the %1 database from the + * primary domain controller %2 failed with the following error: %n%3 + */ + +#define NELOG_NetlogonFullSyncSuccess (ERRLOG2_BASE + 17) + /* + * The full synchronization replication of the %1 database from the + * primary domain controller %2 completed successfully. + */ + + +#define NELOG_NetlogonFullSyncFailed (ERRLOG2_BASE + 18) + /* + * The full synchronization replication of the %1 database from the + * primary domain controller %2 failed with the following error: %n%3 + */ + +#define NELOG_NetlogonAuthNoDomainController (ERRLOG2_BASE + 19) + /* + * This computer was not able to set up a secure session with a domain + * controller in domain %1 due to the following: %n%2 + * %nThis may lead to authentication problems. Make sure that this + * computer is connected to the network. If the problem persists, + * please contact your domain administrator. + * + * %n%nADDITIONAL INFO + * %nIf this computer is a domain controller for the specified domain, it + * sets up the secure session to the primary domain controller emulator in the specified + * domain. Otherwise, this computer sets up the secure session to any domain controller + * in the specified domain. + */ + +#define NELOG_NetlogonAuthNoTrustLsaSecret (ERRLOG2_BASE + 20) + /* + * The session setup to the Windows Domain Controller %1 for the domain %2 + * failed because the computer %3 does not have a local security database account. + */ + +#define NELOG_NetlogonAuthNoTrustSamAccount (ERRLOG2_BASE + 21) + /* + * The session setup to the Windows Domain Controller %1 for the domain %2 + * failed because the Domain Controller did not have an account %4 + * needed to set up the session by this computer %3. + * + * %n%nADDITIONAL DATA + * %nIf this computer is a member of or a Domain Controller in the specified domain, the + * aforementioned account is a computer account for this computer in the specified domain. + * Otherwise, the account is an interdomain trust account with the specified domain. + */ + +#define NELOG_NetlogonServerAuthFailed (ERRLOG2_BASE + 22) + /* + * The session setup from the computer %1 failed to authenticate. + * The name(s) of the account(s) referenced in the security database is + * %2. The following error occurred: %n%3 + */ + +#define NELOG_NetlogonServerAuthNoTrustSamAccount (ERRLOG2_BASE + 23) + /* + * The session setup from computer '%1' failed because the security database + * does not contain a trust account '%2' referenced by the specified computer. + * + * %n%nUSER ACTION + * + * %nIf this is the first occurrence of this event for the specified computer + * and account, this may be a transient issue that doesn't require any action + * at this time. + * + * If this is a Read-Only Domain Controller and '%2' is a legitimate machine + * account for the computer '%1' then '%1' should be marked cacheable for this + * location if appropriate or otherwise ensure connectivity to a domain controller + * capable of servicing the request (for example a writable domain controller). + * + * Otherwise, the following steps may be taken to resolve this problem: + * + * %n%nIf '%2' is a legitimate machine account for the computer '%1', then '%1' + * should be rejoined to the domain. + * + * %n%nIf '%2' is a legitimate interdomain trust account, then the trust should + * be recreated. + * + * %n%nOtherwise, assuming that '%2' is not a legitimate account, the following + * action should be taken on '%1': + * + * %n%nIf '%1' is a Domain Controller, then the trust associated with '%2' should be deleted. + * + * %n%nIf '%1' is not a Domain Controller, it should be disjoined from the domain. + */ + +// +// General log messages for NT services. +// + +#define NELOG_FailedToRegisterSC (ERRLOG2_BASE + 24) + /* + * Could not register control handler with service controller %1. + */ + +#define NELOG_FailedToSetServiceStatus (ERRLOG2_BASE + 25) + /* + * Could not set service status with service controller %1. + */ + +#define NELOG_FailedToGetComputerName (ERRLOG2_BASE + 26) + /* + * Could not find the computer name %1. + */ + +#define NELOG_DriverNotLoaded (ERRLOG2_BASE + 27) + /* + * Could not load %1 device driver. + */ + +#define NELOG_NoTranportLoaded (ERRLOG2_BASE + 28) + /* + * Could not load any transport. + */ + +// +// More Netlogon service events +// + +#define NELOG_NetlogonFailedDomainDelta (ERRLOG2_BASE + 29) + /* + * Replication of the %1 Domain Object "%2" from primary domain controller + * %3 failed with the following error: %n%4 + */ + +#define NELOG_NetlogonFailedGlobalGroupDelta (ERRLOG2_BASE + 30) + /* + * Replication of the %1 Global Group "%2" from primary domain controller + * %3 failed with the following error: %n%4 + */ + +#define NELOG_NetlogonFailedLocalGroupDelta (ERRLOG2_BASE + 31) + /* + * Replication of the %1 Local Group "%2" from primary domain controller + * %3 failed with the following error: %n%4 + */ + +#define NELOG_NetlogonFailedUserDelta (ERRLOG2_BASE + 32) + /* + * Replication of the %1 User "%2" from primary domain controller + * %3 failed with the following error: %n%4 + */ + +#define NELOG_NetlogonFailedPolicyDelta (ERRLOG2_BASE + 33) + /* + * Replication of the %1 Policy Object "%2" from primary domain controller + * %3 failed with the following error: %n%4 + */ + +#define NELOG_NetlogonFailedTrustedDomainDelta (ERRLOG2_BASE + 34) + /* + * Replication of the %1 Trusted Domain Object "%2" from primary domain controller + * %3 failed with the following error: %n%4 + */ + +#define NELOG_NetlogonFailedAccountDelta (ERRLOG2_BASE + 35) + /* + * Replication of the %1 Account Object "%2" from primary domain controller + * %3 failed with the following error: %n%4 + */ + +#define NELOG_NetlogonFailedSecretDelta (ERRLOG2_BASE + 36) + /* + * Replication of the %1 Secret "%2" from primary domain controller + * %3 failed with the following error: %n%4 + */ + +#define NELOG_NetlogonSystemError (ERRLOG2_BASE + 37) + /* + * The system returned the following unexpected error code: %n%1 + */ + +#define NELOG_NetlogonDuplicateMachineAccounts (ERRLOG2_BASE + 38) + /* + * Netlogon has detected two machine accounts for server "%1". + * The server can be either a Windows 2000 Server that is a member of the + * domain or the server can be a LAN Manager server with an account in the + * SERVERS global group. It cannot be both. + */ + +#define NELOG_NetlogonTooManyGlobalGroups (ERRLOG2_BASE + 39) + /* + * This domain has more global groups than can be replicated to a LanMan + * BDC. Either delete some of your global groups or remove the LanMan + * BDCs from the domain. + */ + +#define NELOG_NetlogonBrowserDriver (ERRLOG2_BASE + 40) + /* + * The Browser driver returned the following error to Netlogon: %n%1 + */ + +#define NELOG_NetlogonAddNameFailure (ERRLOG2_BASE + 41) + /* + * Netlogon could not register the %1<1B> name for the following reason: %n%2 + */ + +// +// More Remoteboot service events. +// +#define NELOG_RplMessages (ERRLOG2_BASE + 42) + /* + * Service failed to retrieve messages needed to boot remote boot clients. + */ + +#define NELOG_RplXnsBoot (ERRLOG2_BASE + 43) + /* + * Service experienced a severe error and can no longer provide remote boot + * for 3Com 3Start remote boot clients. + */ + +#define NELOG_RplSystem (ERRLOG2_BASE + 44) + /* + * Service experienced a severe system error and will shut itself down. + */ + +#define NELOG_RplWkstaTimeout (ERRLOG2_BASE + 45) + /* + * Client with computer name %1 failed to acknowledge receipt of the + * boot data. Remote boot of this client was not completed. + */ + +#define NELOG_RplWkstaFileOpen (ERRLOG2_BASE + 46) + /* + * Client with computer name %1 was not booted due to an error in opening + * file %2. + */ + +#define NELOG_RplWkstaFileRead (ERRLOG2_BASE + 47) + /* + * Client with computer name %1 was not booted due to an error in reading + * file %2. + */ + +#define NELOG_RplWkstaMemory (ERRLOG2_BASE + 48) + /* + * Client with computer name %1 was not booted due to insufficient memory + * at the remote boot server. + */ + +#define NELOG_RplWkstaFileChecksum (ERRLOG2_BASE + 49) + /* + * Client with computer name %1 will be booted without using checksums + * because checksum for file %2 could not be calculated. + */ + +#define NELOG_RplWkstaFileLineCount (ERRLOG2_BASE + 50) + /* + * Client with computer name %1 was not booted due to too many lines in + * file %2. + */ + +#define NELOG_RplWkstaBbcFile (ERRLOG2_BASE + 51) + /* + * Client with computer name %1 was not booted because the boot block + * configuration file %2 for this client does not contain boot block + * line and/or loader line. + */ + +#define NELOG_RplWkstaFileSize (ERRLOG2_BASE + 52) + /* + * Client with computer name %1 was not booted due to a bad size of + * file %2. + */ + +#define NELOG_RplWkstaInternal (ERRLOG2_BASE + 53) + /* + * Client with computer name %1 was not booted due to remote boot + * service internal error. + */ + +#define NELOG_RplWkstaWrongVersion (ERRLOG2_BASE + 54) + /* + * Client with computer name %1 was not booted because file %2 has an + * invalid boot header. + */ + +#define NELOG_RplWkstaNetwork (ERRLOG2_BASE + 55) + /* + * Client with computer name %1 was not booted due to network error. + */ + +#define NELOG_RplAdapterResource (ERRLOG2_BASE + 56) + /* + * Client with adapter id %1 was not booted due to lack of resources. + */ + +#define NELOG_RplFileCopy (ERRLOG2_BASE + 57) + /* + * Service experienced error copying file or directory %1. + */ + +#define NELOG_RplFileDelete (ERRLOG2_BASE + 58) + /* + * Service experienced error deleting file or directory %1. + */ + +#define NELOG_RplFilePerms (ERRLOG2_BASE + 59) + /* + * Service experienced error setting permissions on file or directory %1. + */ +#define NELOG_RplCheckConfigs (ERRLOG2_BASE + 60) + /* + * Service experienced error evaluating RPL configurations. + */ +#define NELOG_RplCreateProfiles (ERRLOG2_BASE + 61) + /* + * Service experienced error creating RPL profiles for all configurations. + */ +#define NELOG_RplRegistry (ERRLOG2_BASE + 62) + /* + * Service experienced error accessing registry. + */ +#define NELOG_RplReplaceRPLDISK (ERRLOG2_BASE + 63) + /* + * Service experienced error replacing possibly outdated RPLDISK.SYS. + */ +#define NELOG_RplCheckSecurity (ERRLOG2_BASE + 64) + /* + * Service experienced error adding security accounts or setting + * file permissions. These accounts are the RPLUSER local group + * and the user accounts for the individual RPL workstations. + */ +#define NELOG_RplBackupDatabase (ERRLOG2_BASE + 65) + /* + * Service failed to back up its database. + */ +#define NELOG_RplInitDatabase (ERRLOG2_BASE + 66) + /* + * Service failed to initialize from its database. The database may be + * missing or corrupted. Service will attempt restoring the database + * from the backup. + */ +#define NELOG_RplRestoreDatabaseFailure (ERRLOG2_BASE + 67) + /* + * Service failed to restore its database from the backup. Service + * will not start. + */ +#define NELOG_RplRestoreDatabaseSuccess (ERRLOG2_BASE + 68) + /* + * Service successfully restored its database from the backup. + */ +#define NELOG_RplInitRestoredDatabase (ERRLOG2_BASE + 69) + /* + * Service failed to initialize from its restored database. Service + * will not start. + */ + +// +// More Netlogon and RPL service events +// +#define NELOG_NetlogonSessionTypeWrong (ERRLOG2_BASE + 70) + /* + * The session setup to the Windows Domain Controller %1 from computer + * %2 using account %4 failed. %2 is declared to be a BDC in domain %3. + * However, %2 tried to connect as either a DC in a trusted domain, + * a member workstation in domain %3, or as a server in domain %3. + * Use the Active Directory Users and Computers tool or Server Manager to remove the BDC account for %2. + */ +#define NELOG_RplUpgradeDBTo40 (ERRLOG2_BASE + 71) + /* + * The Remoteboot database was in NT 3.5 / NT 3.51 format and NT is + * attempting to convert it to NT 4.0 format. The JETCONV converter + * will write to the Application event log when it is finished. + */ +#define NELOG_NetlogonLanmanBdcsNotAllowed (ERRLOG2_BASE + 72) + /* + * Global group SERVERS exists in domain %1 and has members. + * This group defines Lan Manager BDCs in the domain. + * Lan Manager BDCs are not permitted in NT domains. + */ +#define NELOG_NetlogonNoDynamicDns (ERRLOG2_BASE + 73) + /* + * The following DNS server that is authoritative for the DNS domain controller + * locator records of this domain controller does not support dynamic DNS updates: + * + * %n%nDNS server IP address: %1 + * %nReturned Response Code (RCODE): %2 + * %nReturned Status Code: %3 + * + * %n%nUSER ACTION + * + * %nConfigure the DNS server to allow dynamic DNS updates or manually add the DNS + * records from the file '%SystemRoot%\System32\Config\Netlogon.dns' to the DNS database. + */ + +#define NELOG_NetlogonDynamicDnsRegisterFailure (ERRLOG2_BASE + 74) + /* + * The dynamic registration of the DNS record '%1' failed on the following DNS server: + * + * %n%nDNS server IP address: %3 + * %nReturned Response Code (RCODE): %4 + * %nReturned Status Code: %5 + * + * %n%nFor computers and users to locate this domain controller, this record must be + * registered in DNS. + * + * %n%nUSER ACTION + * + * %nDetermine what might have caused this failure, resolve the problem, and initiate + * registration of the DNS records by the domain controller. To determine what might + * have caused this failure, run DCDiag.exe. To learn more about DCDiag.exe, see Help + * and Support Center. To initiate registration of the DNS records by this domain + * controller, run 'nltest.exe /dsregdns' from the command prompt on the domain controller + * or restart Net Logon service. %n Or, you can manually add this record to DNS, but it + * is not recommended. + * + * %n%nADDITIONAL DATA + * %nError Value: %2 + */ + +#define NELOG_NetlogonDynamicDnsDeregisterFailure (ERRLOG2_BASE + 75) + /* + * The dynamic deletion of the DNS record '%1' failed on the following DNS server: + * + * %n%nDNS server IP address: %3 + * %nReturned Response Code (RCODE): %4 + * %nReturned Status Code: %5 + * + * %n%nUSER ACTION + * + * %nTo prevent remote computers from connecting unnecessarily to the domain controller, + * delete the record manually or troubleshoot the failure to dynamically delete the + * record. To learn more about debugging DNS, see Help and Support Center. + * + * %n%nADDITIONAL DATA + * %nError Value: %2 + */ + +#define NELOG_NetlogonFailedFileCreate (ERRLOG2_BASE + 76) + /* + * Failed to create/open file %1 with the following error: %n%2 + */ + +#define NELOG_NetlogonGetSubnetToSite (ERRLOG2_BASE + 77) + /* + * Netlogon got the following error while trying to get the subnet to site + * mapping information from the DS: %n%1 + */ + +#define NELOG_NetlogonNoSiteForClient (ERRLOG2_BASE + 78) + /* + * '%1' tried to determine its site by looking up its IP address ('%2') + * in the Configuration\Sites\Subnets container in the DS. No subnet matched + * the IP address. Consider adding a subnet object for this IP address. + */ + +#define NELOG_NetlogonBadSiteName (ERRLOG2_BASE + 79) + /* + * The site name for this computer is '%1'. That site name is not a valid + * site name. A site name must be a valid DNS label. + * Rename the site to be a valid name. + */ + +#define NELOG_NetlogonBadSubnetName (ERRLOG2_BASE + 80) + /* + * The subnet object '%1' appears in the Configuration\Sites\Subnets + * container in the DS. The name is not syntactically valid. The valid + * syntax is xx.xx.xx.xx/yy where xx.xx.xx.xx is a valid IP subnet number + * and yy is the number of bits in the subnet mask. + * + * Correct the name of the subnet object. + */ + +#define NELOG_NetlogonDynamicDnsServerFailure (ERRLOG2_BASE + 81) + /* + * Dynamic registration or deletion of one or more DNS records associated with DNS + * domain '%1' failed. These records are used by other computers to locate this + * server as a domain controller (if the specified domain is an Active Directory + * domain) or as an LDAP server (if the specified domain is an application partition). + * + * %n%nPossible causes of failure include: + * + * %n- TCP/IP properties of the network connections of this computer contain wrong IP address(es) of the preferred and alternate DNS servers + * %n- Specified preferred and alternate DNS servers are not running + * %n- DNS server(s) primary for the records to be registered is not running + * %n- Preferred or alternate DNS servers are configured with wrong root hints + * %n- Parent DNS zone contains incorrect delegation to the child zone authoritative for the DNS records that failed registration + * + * %n%nUSER ACTION + * + * %nFix possible misconfiguration(s) specified above and initiate registration or deletion of + * the DNS records by running 'nltest.exe /dsregdns' from the command prompt on the domain + * controller or by restarting Net Logon service on the domain controller. + */ + +#define NELOG_NetlogonDynamicDnsFailure (ERRLOG2_BASE + 82) + /* + * Dynamic registration or deregistration of one or more DNS records failed with the following error: %n%1 + */ + +#define NELOG_NetlogonRpcCallCancelled (ERRLOG2_BASE + 83) + /* + * The session setup to the Windows Domain Controller %1 for the domain %2 + * is not responsive. The current RPC call from Netlogon on \\%3 to %1 has been cancelled. + */ + +#define NELOG_NetlogonDcSiteCovered (ERRLOG2_BASE + 84) + /* + * Site '%2' does not have any Domain Controllers for domain '%3'. + * Domain Controllers in site '%1' have been automatically + * selected to cover site '%2' for domain '%3' based on configured + * Directory Server replication costs. + */ + +#define NELOG_NetlogonDcSiteNotCovered (ERRLOG2_BASE + 85) + /* + * This Domain Controller no longer automatically covers site '%1' for domain '%2'. + */ + +#define NELOG_NetlogonGcSiteCovered (ERRLOG2_BASE + 86) + /* + * Site '%2' does not have any Global Catalog servers for forest '%3'. + * Global Catalog servers in site '%1' have been automatically + * selected to cover site '%2' for forest '%3' based on configured + * Directory Server replication costs. + */ + +#define NELOG_NetlogonGcSiteNotCovered (ERRLOG2_BASE + 87) + /* + * This Global Catalog server no longer automatically covers site '%1' for forest '%2'. + */ + +#define NELOG_NetlogonFailedSpnUpdate (ERRLOG2_BASE + 88) + /* + * Attempt to update HOST Service Principal Names (SPNs) of the computer + * object in Active Directory failed. The updated values were '%1' and '%2'. + * The following error occurred: %n%3 + */ + +#define NELOG_NetlogonFailedDnsHostNameUpdate (ERRLOG2_BASE + 89) + /* + * Attempt to update DNS Host Name of the computer object + * in Active Directory failed. The updated value was '%1'. + * The following error occurred: %n%2 + */ + +#define NELOG_NetlogonAuthNoUplevelDomainController (ERRLOG2_BASE + 90) + /* + * No suitable Domain Controller is available for domain %1. + * An NT4 or older domain controller is available but it cannot + * be used for authentication purposes in the Windows 2000 or newer + * domain that this computer is a member of. + * The following error occurred:%n%2 + */ + +#define NELOG_NetlogonAuthDomainDowngraded (ERRLOG2_BASE + 91) + /* + * The domain of this computer, %1 has been downgraded from Windows 2000 + * or newer to Windows NT4 or older. The computer cannot function properly + * in this case for authentication purposes. This computer needs to rejoin + * the domain. + * The following error occurred:%n%2 + */ + +#define NELOG_NetlogonNdncSiteCovered (ERRLOG2_BASE + 92) + /* + * Site '%2' does not have any LDAP servers for non-domain NC '%3'. + * LDAP servers in site '%1' have been automatically selected to + * cover site '%2' for non-domain NC '%3' based on configured + * Directory Server replication costs. + */ + +#define NELOG_NetlogonNdncSiteNotCovered (ERRLOG2_BASE + 93) + /* + * This LDAP server no longer automatically covers site '%1' for non-domain NC '%2'. + */ + +#define NELOG_NetlogonDcOldSiteCovered (ERRLOG2_BASE + 94) + /* + * Site '%2' is no longer manually configured in the registry as + * covered by this Domain Controller for domain '%3'. As a result, + * site '%2' does not have any Domain Controllers for domain '%3'. + * Domain Controllers in site '%1' have been automatically + * selected to cover site '%2' for domain '%3' based on configured + * Directory Server replication costs. + */ + +#define NELOG_NetlogonDcSiteNotCoveredAuto (ERRLOG2_BASE + 95) + /* + * This Domain Controller no longer automatically covers site '%1' for domain '%2'. + * However, site '%1' is still (manually) covered by this Domain Controller for + * domain '%2' since this site has been manually configured in the registry. + */ + +#define NELOG_NetlogonGcOldSiteCovered (ERRLOG2_BASE + 96) + /* + * Site '%2' is no longer manually configured in the registry as + * covered by this Global Catalog server for forest '%3'. As a result, + * site '%2' does not have any Global Catalog servers for forest '%3'. + * Global Catalog servers in site '%1' have been automatically + * selected to cover site '%2' for forest '%3' based on configured + * Directory Server replication costs. + */ + +#define NELOG_NetlogonGcSiteNotCoveredAuto (ERRLOG2_BASE + 97) + /* + * This Global Catalog server no longer automatically covers site '%1' for forest '%2'. + * However, site '%1' is still (manually) covered by this Global catalog for + * forest '%2' since this site has been manually configured in the registry. + */ + +#define NELOG_NetlogonNdncOldSiteCovered (ERRLOG2_BASE + 98) + /* + * Site '%2' is no longer manually configured in the registry as + * covered by this LDAP server for non-domain NC '%3'. As a result, + * site '%2' does not have any LDAP servers for non-domain NC '%3'. + * LDAP servers in site '%1' have been automatically + * selected to cover site '%2' for non-domain NC '%3' based on + * configured Directory Server replication costs. + */ + +#define NELOG_NetlogonNdncSiteNotCoveredAuto (ERRLOG2_BASE + 99) + /* + * This LDAP server no longer automatically covers site '%1' for non-domain NC '%2'. + * However, site '%1' is still (manually) covered by this LDAP server for + * non-domain NC '%2' since this site has been manually configured in the registry. + */ + +#define NELOG_NetlogonSpnMultipleSamAccountNames (ERRLOG2_BASE + 100) + /* + * Attempt to update DnsHostName and HOST Service Principal Name (SPN) attributes + * of the computer object in Active Directory failed because the Domain Controller + * '%1' had more than one account with the name '%2' corresponding to this computer. + * Not having SPNs registered may result in authentication failures for this computer. + * Contact your domain administrator who may need to manually resolve the account name + * collision. + */ + +#define NELOG_NetlogonSpnCrackNamesFailure (ERRLOG2_BASE + 101) + /* + * Attempt to update DnsHostName and HOST Service Principal Name (SPN) attributes + * of the computer object in Active Directory failed because this computer account + * name, '%2' could not be mapped to the computer object on Domain Controller '%1'. + * Not having SPNs registered may result in authentication failures for this computer. + * Contact your domain administrator. The following technical information may be + * useful for the resolution of this failure:%n + * DsCrackNames status = 0x%3, crack error = 0x%4. + */ + +#define NELOG_NetlogonNoAddressToSiteMapping (ERRLOG2_BASE + 102) + /* + * None of the IP addresses (%2) of this Domain Controller map to the configured site '%1'. + * While this may be a temporary situation due to IP address changes, it is generally + * recommended that the IP address of the Domain Controller (accessible to machines in + * its domain) maps to the Site which it services. If the above list of IP addresses is + * stable, consider moving this server to a site (or create one if it does not already + * exist) such that the above IP address maps to the selected site. This may require the + * creation of a new subnet object (whose range includes the above IP address) which maps + * to the selected site object. + */ + +#define NELOG_NetlogonInvalidGenericParameterValue (ERRLOG2_BASE + 103) + /* + * The following error occurred while reading a parameter '%2' in the + * Netlogon %1 registry section:%n%3 + */ + +#define NELOG_NetlogonInvalidDwordParameterValue (ERRLOG2_BASE + 104) + /* + * The Netlogon %1 registry key contains an invalid value 0x%2 for parameter '%3'. + * The minimum and maximum values allowed for this parameter are 0x%4 and 0x%5, respectively. + * The value of 0x%6 has been assigned to this parameter. + */ + +#define NELOG_NetlogonServerAuthFailedNoAccount (ERRLOG2_BASE + 105) + /* + * The session setup from the computer %1 failed to authenticate. + * The following error occurred: %n%2 + */ + +#define NELOG_NetlogonNoDynamicDnsManual (ERRLOG2_BASE + 106) + /* + * Dynamic DNS updates have been manually disabled on this domain controller. + * + * %n%nUSER ACTION + * + * %nReconfigure this domain controller to use dynamic DNS updates or manually add the DNS + * records from the file '%SystemRoot%\System32\Config\Netlogon.dns' to the DNS database. + */ + +#define NELOG_NetlogonNoSiteForClients (ERRLOG2_BASE + 107) + /* + * During the past %1 hours there have been %2 connections to this Domain + * Controller from client machines whose IP addresses don't map to any of + * the existing sites in the enterprise. Those clients, therefore, have + * undefined sites and may connect to any Domain Controller including + * those that are in far distant locations from the clients. A client's site + * is determined by the mapping of its subnet to one of the existing sites. + * To move the above clients to one of the sites, please consider creating + * subnet object(s) covering the above IP addresses with mapping to one of the + * existing sites. The names and IP addresses of the clients in question have + * been logged on this computer in the following log file + * '%SystemRoot%\debug\netlogon.log' and, potentially, in the log file + * '%SystemRoot%\debug\netlogon.bak' created if the former log becomes full. + * The log(s) may contain additional unrelated debugging information. To filter + * out the needed information, please search for lines which contain text + * 'NO_CLIENT_SITE:'. The first word after this string is the client name and + * the second word is the client IP address. The maximum size of the log(s) is + * controlled by the following registry DWORD value + * 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\LogFileMaxSize'; + * the default is %3 bytes. The current maximum size is %4 bytes. To set a + * different maximum size, create the above registry value and set the desired + * maximum size in bytes. + */ + +#define NELOG_NetlogonDnsDeregAborted (ERRLOG2_BASE + 108) + /* + * The deregistration of some DNS domain controller locator records was aborted + * at the time of this domain controller demotion because the DNS deregistrations + * took too long. + * + * %n%nUSER ACTION + * + * %nManually delete the DNS records listed in the file + * '%SystemRoot%\System32\Config\Netlogon.dns' from the DNS database. + */ + +#define NELOG_NetlogonRpcPortRequestFailure (ERRLOG2_BASE + 109) + /* + * The NetLogon service on this domain controller has been configured to use port %1 + * for incoming RPC connections over TCP/IP from remote machines. However, the + * following error occurred when Netlogon attempted to register this port with the RPC + * endpoint mapper service: %n%2 %nThis will prevent the NetLogon service on remote + * machines from connecting to this domain controller over TCP/IP that may result in + * authentication problems. + * + * %n%nUSER ACTION + * + * %nThe specified port is configured via the Group Policy or via a registry value 'DcTcpipPort' + * under the 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters' + * registry key; the value configured through the Group Policy takes precedence. If the + * port specified is in error, reset it to a correct value. You can also remove this + * configuration for the port in which case the port will be assigned dynamically by + * the endpoint mapper at the time the NetLogon service on remote machines makes RPC connections + * to this domain controller. After the misconfiguration is corrected, restart the NetLogon + * service on this machine and verify that this event log no longer appears. + */ + +#define NELOG_NetlogonPartialSiteMappingForClients (ERRLOG2_BASE + 110) + /* + * During the past %1 hours, this domain controller has received %2 connections + * from dual-stack IPv4/IPv6 clients with partial subnet-site mappings. A client + * has a partial subnet-site mapping if its IPv4 address is mapped to a site but + * its global IPv6 address is not mapped to a site, or vice versa. To ensure correct + * behavior for applications running on member computers and servers that rely on + * subnet-site mappings, dual-stack IPv4/IPv6 clients must have both IPv4 and global + * IPv6 addresses mapped to the same site. If a partially mapped client attempts + * to connect to this domain controller using its unmapped IP address, its mapped + * address is used for the client's site mapping. + * + * %n%nThe log files %SystemRoot%\debug\netlogon.log or %SystemRoot%\debug\netlogon.bak + * contain the name, unmapped IP address and mapped IP address for each partially + * mapped client. The log files may also contain unrelated debugging information. + * To locate the information pertaining to partial-subnet mappings, search for + * lines that contain the text 'PARTIAL_CLIENT_SITE_MAPPING:'. The first word after + * this text is the client name. Following the client name is the client's unmapped + * IP address (the IP address that does not have a subnet-site mapping) and the + * client's mapped IP address, which was used to return site information. + * + * %n%nUSER ACTION + * + * %nUse the Active Directory Sites and Services management console (MMC) snap-in + * to add the subnet mapping for the unmapped IP addresses to the same site being + * used by the mapped IP addresses. When adding site mappings for IPv6 addresses, + * you should use global IPv6 addresses and not for instance temporary, link-local + * or site-local IPv6 addresses. + * + * %n%nThe default maximum size of the log files is %3 bytes. The current maximum + * size is %4 bytes. To set a different maximum size, create the following registry + * DWORD value to specify the maximum size in bytes: + * + * %nHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\LogFileMaxSize + */ + +#define NELOG_NetlogonRemoteDynamicDnsRegisterFailure (ERRLOG2_BASE + 111) + /* + * The dynamic registration of the DNS record '%1' for the remote domain controller '%3' + * failed on the following DNS server: + * + * %n%nDNS server IP address: %4 + * %nReturned Response Code (RCODE): %5 + * %nReturned Status Code: %6 + * + * %n%nFor computers and users to locate the domain controller '%3', this record must be + * registered in DNS. + * + * %n%nUSER ACTION + * + * %nDetermine what might have caused this failure, resolve the problem, and initiate + * registration of the DNS records by the domain controller '%3'. For help with determining + * and resolving the problem, see Help and Support for information about troubleshooting + * DNS. To initiate registration of the DNS records by the domain controller '%3', run + * 'nltest.exe /dsregdns' from the command prompt on the domain controller '%3' or restart + * the Net Logon service on the domain controller '%3'. Nltest.exe is a command line tool + * that is built into Windows Server. + * %n As a workaround, you can manually add this record to DNS, but it is not recommended + * because you then must manually update any changes it requires hereafter. + * + * %n%nADDITIONAL DATA + * %nError Value: %2 + */ + +#define NELOG_NetlogonRemoteDynamicDnsDeregisterFailure (ERRLOG2_BASE + 112) + /* + * The dynamic deregistration of the DNS record '%1' for the remote domain controller + * '%3' failed on the following DNS server: + * + * %n%nDNS server IP address: %4 + * %nReturned Response Code (RCODE): %5 + * %nReturned Status Code: %6 + * + * %n%nUSER ACTION + * + * %nTo prevent remote computers from attempting to connect to the domain controller '%3' + * using an invalid record, delete the record '%1' manually or troubleshoot the root cause + * behind the dynamic deregistration failure. To learn more about troubleshooting DNS, see + * Help and Support. + * + * %n%nADDITIONAL DATA + * %nError Value: %2 + */ + +#define NELOG_NetlogonRejectedRemoteDynamicDnsRegister (ERRLOG2_BASE + 113) + /* + * The dynamic registration request for the DNS record '%1' has been rejected by the + * remote domain controller '%2'. Error: '%3' + * + * %n%nFor computers and users to locate this domain controller, this record must be + * registered in DNS. If the problem persists, please contact your domain administrator. + */ + +#define NELOG_NetlogonRejectedRemoteDynamicDnsDeregister (ERRLOG2_BASE + 114) + /* + * The dynamic deregistration request of the DNS record '%1' has been rejected by the + * remote domain controller '%2'. Error: '%3' + * + * %n%nTo prevent remote computers from connecting unnecessarily to this domain controller, + * an administrator with sufficient privileges must manually delete the record on the DNS + * server that hosts it. + */ + +#define NELOG_NetlogonRemoteDynamicDnsUpdateRequestFailure (ERRLOG2_BASE + 115) + /* + * The remoting of the dynamic update request for the local domain controller's DNS records + * through a secure session has failed with error '%1'. + * + * %n%nFor other computers and member servers to locate this domain controller, the appropriate + * records must be registered in DNS. On this domain controller, look for events related to + * failure to set up a secure session to determine why the request is failing. If the problem + * persists, please contact your domain administrator. + */ + +#define NELOG_NetlogonUserValidationReqInitialTimeOut (ERRLOG2_BASE + 116) + /* + * Netlogon has failed an authentication request of account %1 in domain %2. The request timed out before it + * could be sent to domain controller %3 in domain %4. This is the first failure. If the problem continues, + * consolidated events will be logged about every %5 minutes. + * Please see http://support.microsoft.com/kb/2654097 for more information. + */ + +#define NELOG_NetlogonUserValidationReqRecurringTimeOut (ERRLOG2_BASE + 117) + /* + * Netlogon has failed an additional %1 authentication requests in the last %2 minutes. + * The requests timed out before they could be sent to domain controller %3 in domain %4. + * Please see http://support.microsoft.com/kb/2654097 for more information. + */ + +#define NELOG_NetlogonUserValidationReqWaitInitialWarning (ERRLOG2_BASE + 118) + /* + * Netlogon took more than %1 seconds for an authentication request of account %2 in domain %3, through + * domain controller %4 in domain %5. This is the first warning. If the problem persists, a recurring event will be logged + * every %6 minutes. + * Please see http://support.microsoft.com/kb/2654097 for more information on this error. + */ + +#define NELOG_NetlogonUserValidationReqWaitRecurringWarning (ERRLOG2_BASE + 119) + /* + * Netlogon took more than %1 seconds for %2 authentication requests through domain controller %3 in domain %4 in the last %5 minutes. + * Please see http://support.microsoft.com/kb/2654097 for more information. + */ + +#define NELOG_NetlogonFailedToAddAuthzRpcInterface (ERRLOG2_BASE + 120) + /* + * The Netlogon service could not add the AuthZ RPC interface. The + * service was terminated. The following error occurred: '%1' + */ + +#define NELOG_NetLogonFailedToInitializeAuthzRm (ERRLOG2_BASE + 121) + /* + * The Netlogon service failed to initialize the AuthZ resource manager. + * The service was terminated. The following error occurred: '%1'. + */ + +#define NELOG_NetLogonFailedToInitializeRPCSD (ERRLOG2_BASE + 122) + /* + * The Netlogon service failed to initialize the security descriptor + * for the Netlogon RPC interface. The service was terminated. The + * following error occurred: '%1'. + */ + +#define NELOG_NetlogonMachinePasswdSetSucceeded (ERRLOG2_BASE + 123) + /* + * The system successfully changed its password on the domain controller %1. + * + * This event is logged when the password for the computer account is + * changed by the system. It is logged on the computer that changed the + * password. + */ + +#define NELOG_NetlogonMsaPasswdSetSucceeded (ERRLOG2_BASE + 124) + /* + * The system successfully changed the password for managed service account %1 + * on the domain controller %2. + * + * This event is logged when the password for a standalone managed service + * account is changed by the system. It is logged on the computer that + * changed the password. + */ + +#define NELOG_NetlogonDnsHostNameLowerCasingFailed (ERRLOG2_BASE + 125) + /* + * The system failed to lowercase the currently configured host name. This + * conversion failed with the error code below. This may affect the system's + * ability to register SRV records, potentially affecting clients' ability + * to locate domain controllers. + * + * Error code: %1 + * + * More information is available at https://aka.ms/lowercasehostnamesrvrecord + */ + +#define NETLOG_NetlogonNonWindowsSupportsSecureRpc (ERRLOG2_BASE + 126) + /* + * The Netlogon service detected a non-windows account using secure RPC. + * + * %n%n Machine SamAccountName: %1 + * %n Domain: %2 + * %n Account Type: %3 + * %n Machine Os: %4 + * %n Machine Os Build Version: %5 + * %n Machine Os Service Pack: %6 + */ + +#define NETLOG_NetlogonUnsecureRpcClient (ERRLOG2_BASE + 127) + /* + * The Netlogon service denied a vulnerable Netlogon secure channel connection from a machine account. + * + * %n%n Machine SamAccountName: %1 + * %n Domain: %2 + * %n Account Type: %3 + * %n Machine Operating System: %4 + * %n Machine Operating System Build: %5 + * %n Machine Operating System Service Pack: %6 + * + * %n%nFor more information about why this was denied, please visit https://go.microsoft.com/fwlink/?linkid=2133485. + */ + +#define NETLOG_NetlogonUnsecureRpcTrust (ERRLOG2_BASE + 128) + /* + * The Netlogon service denied a vulnerable Netlogon secure channel connection using a trust account. + * + * %n%n Account Type: %1 + * %n Trust Name: %2 + * %n Trust Target: %3 + * %n Client IP Address: %4 + * + * %n%nFor more information about why this was denied, please visit https://go.microsoft.com/fwlink/?linkid=2133485. + */ + +#define NETLOG_NetlogonUnsecuredRpcMachineTemporarilyAllowed (ERRLOG2_BASE + 129) + /* + * The Netlogon service allowed a vulnerable Netlogon secure channel connection. + * + * %n%nWarning: This connection will be denied once the enforcement phase is released. To better understand the enforcement phase, + * please visit https://go.microsoft.com/fwlink/?linkid=2133485. + * + * %n%n Machine SamAccountName: %1 + * %n Domain: %2 + * %n Account Type: %3 + * %n Machine Operating System: %4 + * %n Machine Operating System Build: %5 + * %n Machine Operating System Service Pack: %6 + * + */ + +#define NETLOG_NetlogonUnsecureRpcMachineAllowedBySsdl (ERRLOG2_BASE + 130) + /* + * The Netlogon service allowed a vulnerable Netlogon secure channel connection because the machine account is allowed in the + * "Domain controller: Allow vulnerable Netlogon secure channel connections" group policy. + * + * %n%nWarning: Using vulnerable Netlogon secure channels will expose the domain-joined devices to attack. To protect your device from attack, + * remove a machine account from "Domain controller: Allow vulnerable Netlogon secure channel connections" group policy after the third-party + * Netlogon client has been updated. To better understand the risk of configuring machine accounts to be allowed to use vulnerable Netlogon + * secure channel connections, please visit https://go.microsoft.com/fwlink/?linkid=2133485. + * + * %n%n Machine SamAccountName: %1 + * %n Domain: %2 + * %n Account Type: %3 + * %n Machine Os: %4 + * %n Machine Os Build Version: %5 + * %n Machine Os Service Pack: %6 + */ + +#define NETLOG_NetlogonUnsecureRpcTrustAllowedBySsdl (ERRLOG2_BASE + 131) + /* + * The Netlogon service allowed a vulnerable Netlogon secure channel connection because the trust account is allowed in the + * "Domain controller: Allow vulnerable Netlogon secure channel connections" group policy. + * + * %n%nWarning: Using vulnerable Netlogon secure channels will expose Active Directory forests to attack. To protect your + * Active Directory forests from attack, all trusts must use secure RPC with Netlogon secure channel. Remove a trust account from + * "Domain controller: Allow vulnerable Netlogon secure channel connections" group policy after the third-party Netlogon client on the domain controllers + * have been updated. To better understand the risk of configuring trust accounts to be allowed to use vulnerable Netlogon secure channel connections, + * please visit https://go.microsoft.com/fwlink/?linkid=2133485. + * + * %n%n Account Type: %1 + * %n Trust Name: %2 + * %n Trust Target: %3 + * %n Client IP Address: %4 + */ + +#define NETLOG_PassThruFilterError_Summary_AdminOverride (ERRLOG2_BASE + 132) + /* + * The Netlogon service allowed one or more unsecure pass-through NTLM authentication requests from trusted domains and/or forests + * during the most recent event throttling window. These unsecure requests would normally be blocked but were allowed to proceed + * due to the current trust configuration.%n + * + * %n + * + * Warning: Allowing unsecure pass-through authentication requests will expose your Active Directory forest to attack. + * For more information about this issue please visit https://go.microsoft.com/fwlink/?linkid=276811&.%n + * + * %n + * + * Count of unsecure requests allowed due to administrative override: %1%n + */ + +#define NETLOG_PassThruFilterError_Summary_Blocked (ERRLOG2_BASE + 133) + /* + * The Netlogon service blocked one or more unsecure pass-through NTLM authentication requests from trusted clients, domains, + * and/or forests during the most recent event throttling window. For more information about this issue, including how to enable + * more verbose logging, please visit https://go.microsoft.com/fwlink/?linkid=276811&.%n + * + * %n + * + * Count of unsecure requests blocked: %1%n + */ + +#define NETLOG_PassThruFilterError_Request_AdminOverride (ERRLOG2_BASE + 134) + /* + * The Netlogon service allowed an unsecure pass-through NTLM authentication request from a trusted client, domain, + * or forest. This unsecure request would normally be blocked but was allowed to proceed due to the current trust + * configuration.%n + * + * %n + * + * Warning: Allowing unsecure pass-through authentication requests will expose your Active Directory forest to attack. + * For more information about this issue please visit https://go.microsoft.com/fwlink/?linkid=276811&.%n + * + * %n + * + * Account name: %1%n + * Trust name: %2%n + * Trust type: %3%n + * Client IP Address: %4%n + * Block reason: %5%n + * Resource server Netbios name: %6%n + * Resource server DNS name: %7%n + * Resource domain Netbios name: %8%n + * Resource domain DNS name: %9%n + */ + +#define NETLOG_PassThruFilterError_Request_Blocked (ERRLOG2_BASE + 135) + /* + * The Netlogon service blocked an unsecure pass-through NTLM authentication requests from a trusted client, domain, + * or forest. For more information, please visit https://go.microsoft.com/fwlink/?linkid=276811&. + * + * %n%n + * + * Account name: %1%n + * Trust name: %2%n + * Trust type: %3%n + * Client IP Address: %4%n + * Block reason: %5%n + * Resource server Netbios name: %6%n + * Resource server DNS name: %7%n + * Resource domain Netbios name: %8%n + * Resource domain DNS name: %9%n + */ + +#define NETLOG_NetlogonRpcBacklogLimitSet (ERRLOG2_BASE + 136) + /* + * The Netlogon service was able to bind to a TCP/IP port with the configured backlog size of %1. + */ + +#define NETLOG_NetlogonRpcBacklogLimitFailure (ERRLOG2_BASE + 137) + /* + * The Netlogon service tried to bind to a TCP/IP port with the configured backlog size of %1 but failed. %n%n + * + * More information can be found in the following log file '%SystemRoot%\debug\netlogon.log' and, potentially, in the log file + * '%SystemRoot%\debug\netlogon.bak' created if the former log becomes full. For steps in enabling the log, please visit + * https://go.microsoft.com/fwlink/?linkid=2163327 + */ + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _LMERRLOG_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMJoin.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMJoin.h new file mode 100644 index 0000000000000000000000000000000000000000..54ec2025de32a5a60076bd94d65133eae4621ffa --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMJoin.h @@ -0,0 +1,482 @@ +/*++ + +Copyright (c) 1998-1999 Microsoft Corporation + +Module Name: + + netsetup.h + +Abstract: + + Definitions and prototypes for the Net setup apis, for joining/unjoinging + domains and promoting/demoting servers + +Environment: + + User Mode - Win32 + Portable to any flat, 32-bit environment. (Uses Win32 typedefs.) + Requires ANSI C extensions: slash-slash comments, long external names. + +Notes: + +--*/ + +#ifndef __LMJOIN_H__ +#define __LMJOIN_H__ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +// +// Types of name that can be validated +// +typedef enum _NETSETUP_NAME_TYPE { + + NetSetupUnknown = 0, + NetSetupMachine, + NetSetupWorkgroup, + NetSetupDomain, + NetSetupNonExistentDomain, +#if(_WIN32_WINNT >= 0x0500) + NetSetupDnsMachine +#endif + +} NETSETUP_NAME_TYPE, *PNETSETUP_NAME_TYPE; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_APP) + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN10) + +// +// AAD join type +// +typedef enum _DSREG_JOIN_TYPE{ + DSREG_UNKNOWN_JOIN = 0, + DSREG_DEVICE_JOIN = 1, + DSREG_WORKPLACE_JOIN = 2 +} DSREG_JOIN_TYPE, *PDSREG_JOIN_TYPE; + +typedef struct _DSREG_USER_INFO +{ + LPWSTR pszUserEmail; + LPWSTR pszUserKeyId; + LPWSTR pszUserKeyName; + +} DSREG_USER_INFO, *PDSREG_USER_INFO; + +// +// The following type definition must be kept +// in sync with wincrypt.h +// +#ifndef __WINCRYPT_H__ +typedef const struct _CERT_CONTEXT *PCCERT_CONTEXT; +#endif // __WINCRYPT_H__ + +typedef struct _DSREG_JOIN_INFO +{ + DSREG_JOIN_TYPE joinType; + + PCCERT_CONTEXT pJoinCertificate; + LPWSTR pszDeviceId; + + LPWSTR pszIdpDomain; + LPWSTR pszTenantId; + LPWSTR pszJoinUserEmail; + + LPWSTR pszTenantDisplayName; + + LPWSTR pszMdmEnrollmentUrl; + LPWSTR pszMdmTermsOfUseUrl; + LPWSTR pszMdmComplianceUrl; + + LPWSTR pszUserSettingSyncUrl; + + DSREG_USER_INFO *pUserInfo; + +} DSREG_JOIN_INFO, *PDSREG_JOIN_INFO; + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN10) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// Flags to determine the behavior of the join/unjoin APIs +// +#define NETSETUP_JOIN_DOMAIN 0x00000001 // If not present, workgroup is joined +#define NETSETUP_ACCT_CREATE 0x00000002 // Do the server side account creation/rename +#define NETSETUP_ACCT_DELETE 0x00000004 // Delete the account when a domain is left +#define NETSETUP_WIN9X_UPGRADE 0x00000010 // Invoked during upgrade of Windows 9x to + // Windows NT +#define NETSETUP_DOMAIN_JOIN_IF_JOINED 0x00000020 // Allow the client to join a new domain + // even if it is already joined to a domain +#define NETSETUP_JOIN_UNSECURE 0x00000040 // Performs an unsecure join +#define NETSETUP_MACHINE_PWD_PASSED 0x00000080 // Indicates that the machine (not user) password + // is passed. Valid only for unsecure joins +#define NETSETUP_DEFER_SPN_SET 0x00000100 // Specifies that writting SPN and DnsHostName + // attributes on the computer object should be + // defered until rename that will follow join + +#define NETSETUP_JOIN_DC_ACCOUNT 0x00000200 // Allow join if existing account is a DC +#define NETSETUP_JOIN_WITH_NEW_NAME 0x00000400 // Check for computer name change +#define NETSETUP_JOIN_READONLY 0x00000800 // Perform join using a pre-created account w/o requiring a writable DC +#define NETSETUP_DNS_NAME_CHANGES_ONLY 0x00001000 // When performing machine rename only update DNS based names + +#define NETSETUP_INSTALL_INVOCATION 0x00040000 // The APIs were invoked during install + +#define NETSETUP_AMBIGUOUS_DC 0x00001000 // When joining the domain don't try to set the + // preferred DC in the registry. +#define NETSETUP_NO_NETLOGON_CACHE 0x00002000 // Don't create the netlogon cache +#define NETSETUP_DONT_CONTROL_SERVICES 0x00004000 // Don't force netlogon to start +#define NETSETUP_SET_MACHINE_NAME 0x00008000 // For offline join only, set target machine hostname and NB name. +#define NETSETUP_FORCE_SPN_SET 0x00010000 // Override other settings during domain join + // and attempt to set the SPN. +#define NETSETUP_NO_ACCT_REUSE 0x00020000 // Do not reuse an existing account +#define NETSETUP_ALT_SAMACCOUNTNAME 0x00020000 // do not use OEM code page to derive the netbios\samAccountName + +#define NETSETUP_IGNORE_UNSUPPORTED_FLAGS 0x10000000 // If this bit is set, unrecognized flags + // will be ignored by the NetJoin API and + // the API will behave as if the flags + // were not set. + +#define NETSETUP_VALID_UNJOIN_FLAGS (NETSETUP_ACCT_DELETE | NETSETUP_IGNORE_UNSUPPORTED_FLAGS | NETSETUP_JOIN_DC_ACCOUNT) + +// The following flags are used when the system is processing information left from a prior offline +// join. We want to force DC discovery and we don't want to create the netlogon cache. We also +// don't want to immediately force netlogon to start, let it start on its own. +#define NETSETUP_PROCESS_OFFLINE_FLAGS ( NETSETUP_JOIN_DOMAIN | \ + NETSETUP_DOMAIN_JOIN_IF_JOINED | \ + NETSETUP_JOIN_WITH_NEW_NAME | \ + NETSETUP_DONT_CONTROL_SERVICES | \ + NETSETUP_MACHINE_PWD_PASSED) + +// +// 0x80000000 is reserved for internal use only +// + +// +// Joins a machine to the domain. +// +NET_API_STATUS +NET_API_FUNCTION +NetJoinDomain( + _In_opt_ LPCWSTR lpServer, + _In_ LPCWSTR lpDomain, + _In_opt_ LPCWSTR lpMachineAccountOU, + _In_opt_ LPCWSTR lpAccount, + _In_opt_ LPCWSTR lpPassword, + _In_ DWORD fJoinOptions + ); + +NET_API_STATUS +NET_API_FUNCTION +NetUnjoinDomain( + _In_opt_ LPCWSTR lpServer, + _In_opt_ LPCWSTR lpAccount, + _In_opt_ LPCWSTR lpPassword, + _In_ DWORD fUnjoinOptions + ); + +NET_API_STATUS +NET_API_FUNCTION +NetRenameMachineInDomain( + _In_opt_ LPCWSTR lpServer, + _In_opt_ LPCWSTR lpNewMachineName, + _In_opt_ LPCWSTR lpAccount, + _In_opt_ LPCWSTR lpPassword, + _In_ DWORD fRenameOptions + ); + +// +// Determine the validity of a name +// +NET_API_STATUS +NET_API_FUNCTION +NetValidateName( + _In_opt_ LPCWSTR lpServer, + _In_ LPCWSTR lpName, + _In_opt_ LPCWSTR lpAccount, + _In_opt_ LPCWSTR lpPassword, + _In_ NETSETUP_NAME_TYPE NameType + ); + +// +// Determines the list of OUs that the client can create a machine account in +// +NET_API_STATUS +NET_API_FUNCTION +NetGetJoinableOUs( + _In_ LPCWSTR lpServer, + _In_ LPCWSTR lpDomain, + _In_opt_ LPCWSTR lpAccount, + _In_opt_ LPCWSTR lpPassword, + _Out_ DWORD *OUCount, + _Outptr_result_buffer_(*OUCount) LPWSTR **OUs + ); + +#if(_WIN32_WINNT >= 0x0501) + +// +// Computer rename preparation APIs +// + +#define NET_IGNORE_UNSUPPORTED_FLAGS 0x01 + +NET_API_STATUS +NET_API_FUNCTION +NetAddAlternateComputerName( + _In_opt_ LPCWSTR Server, + _In_ LPCWSTR AlternateName, + _In_opt_ LPCWSTR DomainAccount, + _In_opt_ LPCWSTR DomainAccountPassword, + _In_ ULONG Reserved + ); + +NET_API_STATUS +NET_API_FUNCTION +NetRemoveAlternateComputerName( + _In_opt_ LPCWSTR Server, + _In_ LPCWSTR AlternateName, + _In_opt_ LPCWSTR DomainAccount, + _In_opt_ LPCWSTR DomainAccountPassword, + _In_ ULONG Reserved + ); + +NET_API_STATUS +NET_API_FUNCTION +NetSetPrimaryComputerName( + _In_opt_ LPCWSTR Server, + _In_ LPCWSTR PrimaryName, + _In_opt_ LPCWSTR DomainAccount, + _In_opt_ LPCWSTR DomainAccountPassword, + _In_ ULONG Reserved + ); + +// +// The following enumeration must be kept +// in sync with COMPUTER_NAME_TYPE defined +// in winbase.h +// + +typedef enum _NET_COMPUTER_NAME_TYPE { + NetPrimaryComputerName, + NetAlternateComputerNames, + NetAllComputerNames, + NetComputerNameTypeMax +} NET_COMPUTER_NAME_TYPE, *PNET_COMPUTER_NAME_TYPE; + +NET_API_STATUS +NET_API_FUNCTION +NetEnumerateComputerNames( + _In_opt_ LPCWSTR Server, + _In_ NET_COMPUTER_NAME_TYPE NameType, + _In_ ULONG Reserved, + _Out_ PDWORD EntryCount, + _Outptr_result_buffer_(*EntryCount) LPWSTR **ComputerNames + ); + +#endif // (_WIN32_WINNT >= 0x0501) + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN7) + +// +// Flags to determine the behavior of NetProvisionComputerAccount and +// NetCreateProvisioningPackage. +// + +// The caller requires account creation by privilege, this option will cause a retry +// on failure using down level account creation APIs. +// +#define NETSETUP_PROVISION_DOWNLEVEL_PRIV_SUPPORT 0x00000001 + +// If the named account already exists an attempt will be made to reuse. Requires +// sufficient credentials i.e. Domain Administrator or the object owner. +// +#define NETSETUP_PROVISION_REUSE_ACCOUNT 0x00000002 + +// Use the default machine account password which is the machine name in lowercase. +// +#define NETSETUP_PROVISION_USE_DEFAULT_PASSWORD 0x00000004 + +// Do not try to find the account on any DC in the domain. This is faster but +// should only be used when the caller is certain that an account by the same +// name hasn't recently been created. Only valid when specifying the target DC. +// When the pre-requisites are met, this option allows for must faster provisioning +// useful for scenarios such as batch processing. +// +#define NETSETUP_PROVISION_SKIP_ACCOUNT_SEARCH 0x00000008 + +// Include root Certificate Authority certificates in provisioning package. +// +#define NETSETUP_PROVISION_ROOT_CA_CERTS 0x00000010 + +// Configure site as persistent (if not specified then configure as dynamic). +// +#define NETSETUP_PROVISION_PERSISTENTSITE 0x00000020 + +// +// The following are reserved for internal use. +// + +// The operation is online. +// This is an internal option not available through the API. +// +#define NETSETUP_PROVISION_ONLINE_CALLER 0x40000000 + +// Validate the machine password only. This is an internal option not available +// through the API. +// +#define NETSETUP_PROVISION_CHECK_PWD_ONLY 0x80000000 + +NET_API_STATUS +NET_API_FUNCTION +NetProvisionComputerAccount( + _In_z_ LPCWSTR lpDomain, + _In_z_ LPCWSTR lpMachineName, + _In_opt_z_ LPCWSTR lpMachineAccountOU, + _In_opt_z_ LPCWSTR lpDcName, + _In_ DWORD dwOptions, + _Outptr_opt_result_bytebuffer_maybenull_(*pdwProvisionBinDataSize) + PBYTE *pProvisionBinData, + _Out_opt_ DWORD *pdwProvisionBinDataSize, + _Outptr_opt_result_maybenull_z_ + LPWSTR *pProvisionTextData +); + +NET_API_STATUS +NET_API_FUNCTION +NetRequestOfflineDomainJoin( + _In_reads_bytes_(cbProvisionBinDataSize) BYTE *pProvisionBinData, + _In_ DWORD cbProvisionBinDataSize, + _In_ DWORD dwOptions, + _In_z_ LPCWSTR lpWindowsPath +); + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN7) + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +// For dwVersion field of NETSETUP_PROVISIONING_PARAMS +#define NETSETUP_PROVISIONING_PARAMS_WIN8_VERSION 0x00000001 +#define NETSETUP_PROVISIONING_PARAMS_CURRENT_VERSION 0x00000002 + +typedef struct _NETSETUP_PROVISIONING_PARAMS +{ + // Version 1 fields + DWORD dwVersion; // _In_ + LPCWSTR lpDomain; // _In_z_ + LPCWSTR lpHostName; // _In_z_ + LPCWSTR lpMachineAccountOU; // _In_opt_z_ + LPCWSTR lpDcName; // _In_opt_z_ + DWORD dwProvisionOptions; // _In_ + LPCWSTR *aCertTemplateNames; // _In_reads_opt_(cCertTemplateNames) + DWORD cCertTemplateNames; // _In_ + LPCWSTR *aMachinePolicyNames; // _In_reads_opt_(cMachinePolicyNames) + DWORD cMachinePolicyNames; // _In_ + LPCWSTR *aMachinePolicyPaths; // _In_reads_opt_(cMachinePolicyPaths) + DWORD cMachinePolicyPaths; // _In_ + + // Version 2 fields + LPWSTR lpNetbiosName; // _In_ + LPWSTR lpSiteName; // _In_ + LPWSTR lpPrimaryDNSDomain; // _In_ +} NETSETUP_PROVISIONING_PARAMS, *PNETSETUP_PROVISIONING_PARAMS; + +NET_API_STATUS +NET_API_FUNCTION +NetCreateProvisioningPackage( + _In_ PNETSETUP_PROVISIONING_PARAMS pProvisioningParams, + _Outptr_opt_result_bytebuffer_maybenull_(*pdwPackageBinDataSize) + PBYTE *ppPackageBinData, + _Out_opt_ DWORD *pdwPackageBinDataSize, + _Outptr_opt_result_maybenull_z_ LPWSTR *ppPackageTextData + ); + +NET_API_STATUS +NET_API_FUNCTION +NetRequestProvisioningPackageInstall( + _In_reads_bytes_(dwPackageBinDataSize) BYTE *pPackageBinData, + _In_ DWORD dwPackageBinDataSize, + _In_ DWORD dwProvisionOptions, + _In_z_ LPCWSTR lpWindowsPath, + _Reserved_ PVOID pvReserved + ); + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN8) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_APP) + +#if(_WIN32_WINNT >= _WIN32_WINNT_WIN10) + +HRESULT +NET_API_FUNCTION +NetGetAadJoinInformation( + _In_opt_ LPCWSTR pcszTenantId, + _Outptr_result_maybenull_ PDSREG_JOIN_INFO *ppJoinInfo + ); + +VOID +NET_API_FUNCTION +NetFreeAadJoinInformation( + _In_opt_ PDSREG_JOIN_INFO pJoinInfo + ); + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN10) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) + +// +// Status of a workstation +// +typedef enum _NETSETUP_JOIN_STATUS { + + NetSetupUnknownStatus = 0, + NetSetupUnjoined, + NetSetupWorkgroupName, + NetSetupDomainName + +} NETSETUP_JOIN_STATUS, *PNETSETUP_JOIN_STATUS; + +// +// Determines whether a workstation is joined to a domain or not +// +NET_API_STATUS +NET_API_FUNCTION +NetGetJoinInformation( + _In_opt_ LPCWSTR lpServer, + _Outptr_ LPWSTR *lpNameBuffer, + _Out_ PNETSETUP_JOIN_STATUS BufferType + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // __LMJOIN_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMMsg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMMsg.h new file mode 100644 index 0000000000000000000000000000000000000000..71436dfec6ee4ba41ca7674b142f1c013ec356ab --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMMsg.h @@ -0,0 +1,119 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmmsg.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for the NetMessage API. + +[Environment:] + + User Mode - Win32 + +[Notes:] + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +--*/ + +#ifndef _LMMSG_ +#define _LMMSG_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Function Prototypes +// + +NET_API_STATUS NET_API_FUNCTION +NetMessageNameAdd ( + _In_opt_ LPCWSTR servername, + _In_ LPCWSTR msgname + ); + +NET_API_STATUS NET_API_FUNCTION +NetMessageNameEnum ( + _In_opt_ LPCWSTR servername, + _In_ DWORD level, + _In_ LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Out_ LPDWORD resume_handle + ); + +NET_API_STATUS NET_API_FUNCTION +NetMessageNameGetInfo ( + _In_opt_ LPCWSTR servername, + _In_ LPCWSTR msgname, + _In_ DWORD level, + _In_ LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetMessageNameDel ( + _In_opt_ LPCWSTR servername, + _In_ LPCWSTR msgname + ); + +NET_API_STATUS NET_API_FUNCTION +NetMessageBufferSend ( + _In_opt_ LPCWSTR servername, + _In_ LPCWSTR msgname, + _In_ LPCWSTR fromname, + _In_ LPBYTE buf, + _In_ DWORD buflen + ); + +// +// Data Structures +// + +typedef struct _MSG_INFO_0 { + LPWSTR msgi0_name; +}MSG_INFO_0, *PMSG_INFO_0, *LPMSG_INFO_0; + +typedef struct _MSG_INFO_1 { + LPWSTR msgi1_name; + DWORD msgi1_forward_flag; + LPWSTR msgi1_forward; +}MSG_INFO_1, *PMSG_INFO_1, *LPMSG_INFO_1; + +// +// Special Values and Constants +// + +// +// Values for msgi1_forward_flag. +// + +#define MSGNAME_NOT_FORWARDED 0 // Name not forwarded +#define MSGNAME_FORWARDED_TO 0x04 // Name forward to remote station +#define MSGNAME_FORWARDED_FROM 0x10 // Name forwarded from remote station + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //_LMMSG_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMRemUtl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMRemUtl.h new file mode 100644 index 0000000000000000000000000000000000000000..574d8faaf86c4a29620838552f80217b5d897294 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMRemUtl.h @@ -0,0 +1,153 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmremutl.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for the NetRemote API. + +Environment: + + User Mode - Win32 + Portable to any flat, 32-bit environment. (Uses Win32 typedefs.) + Requires ANSI C extensions: slash-slash comments, long external names. + +--*/ + +#ifndef _LMREMUTL_ +#define _LMREMUTL_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Type Definitions +// + +#ifndef DESC_CHAR_UNICODE + +typedef CHAR DESC_CHAR; +typedef LPSTR LPDESC; + +#else // DESC_CHAR_UNICODE is defined + +typedef WCHAR DESC_CHAR; +typedef LPWSTR LPDESC; + +#endif // DESC_CHAR_UNICODE is defined + + + +// +// Function Prototypes +// + +_Check_return_ +_Success_( return == 0 ) +NET_API_STATUS NET_API_FUNCTION +NetRemoteTOD ( + _In_opt_ LPCWSTR UncServerName, + _Outptr_result_bytebuffer_(sizeof(TIME_OF_DAY_INFO)) LPBYTE *BufferPtr + ); + +NET_API_STATUS NET_API_FUNCTION +NetRemoteComputerSupports( + IN LPCWSTR UncServerName OPTIONAL, // Must start with "\\". + IN DWORD OptionsWanted, // Set SUPPORTS_ bits wanted. + OUT LPDWORD OptionsSupported // Supported features, masked. + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +NET_API_STATUS +__cdecl +RxRemoteApi( + IN DWORD ApiNumber, + _In_ IN LPCWSTR UncServerName, // Required, with \\name. + _In_ IN LPDESC ParmDescString, + _In_opt_ IN LPDESC DataDesc16 OPTIONAL, + _In_opt_ IN LPDESC DataDesc32 OPTIONAL, + _In_opt_ IN LPDESC DataDescSmb OPTIONAL, + _In_opt_ IN LPDESC AuxDesc16 OPTIONAL, + _In_opt_ IN LPDESC AuxDesc32 OPTIONAL, + _In_opt_ IN LPDESC AuxDescSmb OPTIONAL, + IN DWORD Flags, + ... // rest of API's arguments + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +// +// Data Structures +// + +typedef struct _TIME_OF_DAY_INFO { + DWORD tod_elapsedt; + DWORD tod_msecs; + DWORD tod_hours; + DWORD tod_mins; + DWORD tod_secs; + DWORD tod_hunds; + LONG tod_timezone; + DWORD tod_tinterval; + DWORD tod_day; + DWORD tod_month; + DWORD tod_year; + DWORD tod_weekday; +} TIME_OF_DAY_INFO, *PTIME_OF_DAY_INFO, *LPTIME_OF_DAY_INFO; + +// +// Special Values and Constants +// + +// +// Mask bits for use with NetRemoteComputerSupports: +// + +#define SUPPORTS_REMOTE_ADMIN_PROTOCOL 0x00000002L +#define SUPPORTS_RPC 0x00000004L +#define SUPPORTS_SAM_PROTOCOL 0x00000008L +#define SUPPORTS_UNICODE 0x00000010L +#define SUPPORTS_LOCAL 0x00000020L +#define SUPPORTS_ANY 0xFFFFFFFFL + +// +// Flag bits for RxRemoteApi: +// + +#define NO_PERMISSION_REQUIRED 0x00000001 // set if use NULL session +#define ALLOCATE_RESPONSE 0x00000002 // set if RxRemoteApi allocates response buffer +#define USE_SPECIFIC_TRANSPORT 0x80000000 + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif //_LMREMUTL_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMRepl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMRepl.h new file mode 100644 index 0000000000000000000000000000000000000000..caedb05d7d81e0d489ee42ab04b6c8b750ddf0c4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMRepl.h @@ -0,0 +1,294 @@ +/*++ BUILD Version: 0004 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + LmRepl.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for the replicator APIs. + +Environment: + + User Mode - Win32 + Portable to any flat, 32-bit environment. (Uses Win32 typedefs.) + Requires ANSI C extensions: slash-slash comments, long external names. + +Notes: + + You must include LmCons.h before this file. + + +--*/ + +#ifndef _LMREPL_ +#define _LMREPL_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma warning(push) + // SAL Annotations not available for obsolete APIs +#pragma warning(disable:28740) + +// +// Replicator Configuration APIs +// + +#define REPL_ROLE_EXPORT 1 +#define REPL_ROLE_IMPORT 2 +#define REPL_ROLE_BOTH 3 + + +#define REPL_INTERVAL_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 0) +#define REPL_PULSE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 1) +#define REPL_GUARDTIME_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 2) +#define REPL_RANDOM_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 3) + + +typedef struct _REPL_INFO_0 { + DWORD rp0_role; + LPWSTR rp0_exportpath; + LPWSTR rp0_exportlist; + LPWSTR rp0_importpath; + LPWSTR rp0_importlist; + LPWSTR rp0_logonusername; + DWORD rp0_interval; + DWORD rp0_pulse; + DWORD rp0_guardtime; + DWORD rp0_random; +} REPL_INFO_0, *PREPL_INFO_0, *LPREPL_INFO_0; + +typedef struct _REPL_INFO_1000 { + DWORD rp1000_interval; +} REPL_INFO_1000, *PREPL_INFO_1000, *LPREPL_INFO_1000; + +typedef struct _REPL_INFO_1001 { + DWORD rp1001_pulse; +} REPL_INFO_1001, *PREPL_INFO_1001, *LPREPL_INFO_1001; + +typedef struct _REPL_INFO_1002 { + DWORD rp1002_guardtime; +} REPL_INFO_1002, *PREPL_INFO_1002, *LPREPL_INFO_1002; + +typedef struct _REPL_INFO_1003 { + DWORD rp1003_random; +} REPL_INFO_1003, *PREPL_INFO_1003, *LPREPL_INFO_1003; + + +NET_API_STATUS NET_API_FUNCTION +NetReplGetInfo ( + IN LPCWSTR servername OPTIONAL, + IN DWORD level, + OUT LPBYTE * bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplSetInfo ( + IN LPCWSTR servername OPTIONAL, + IN DWORD level, + IN const LPBYTE buf, + OUT LPDWORD parm_err OPTIONAL + ); + + +// +// Replicator Export Directory APIs +// + +#define REPL_INTEGRITY_FILE 1 +#define REPL_INTEGRITY_TREE 2 + + +#define REPL_EXTENT_FILE 1 +#define REPL_EXTENT_TREE 2 + + +#define REPL_EXPORT_INTEGRITY_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 0) +#define REPL_EXPORT_EXTENT_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 1) + + +typedef struct _REPL_EDIR_INFO_0 { + LPWSTR rped0_dirname; +} REPL_EDIR_INFO_0, *PREPL_EDIR_INFO_0, *LPREPL_EDIR_INFO_0; + +typedef struct _REPL_EDIR_INFO_1 { + LPWSTR rped1_dirname; + DWORD rped1_integrity; + DWORD rped1_extent; +} REPL_EDIR_INFO_1, *PREPL_EDIR_INFO_1, *LPREPL_EDIR_INFO_1; + +typedef struct _REPL_EDIR_INFO_2 { + LPWSTR rped2_dirname; + DWORD rped2_integrity; + DWORD rped2_extent; + DWORD rped2_lockcount; + DWORD rped2_locktime; +} REPL_EDIR_INFO_2, *PREPL_EDIR_INFO_2, *LPREPL_EDIR_INFO_2; + +typedef struct _REPL_EDIR_INFO_1000 { + DWORD rped1000_integrity; +} REPL_EDIR_INFO_1000, *PREPL_EDIR_INFO_1000, *LPREPL_EDIR_INFO_1000; + +typedef struct _REPL_EDIR_INFO_1001 { + DWORD rped1001_extent; +} REPL_EDIR_INFO_1001, *PREPL_EDIR_INFO_1001, *LPREPL_EDIR_INFO_1001; + + +NET_API_STATUS NET_API_FUNCTION +NetReplExportDirAdd ( + IN LPCWSTR servername OPTIONAL, + IN DWORD level, + IN const LPBYTE buf, + OUT LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplExportDirDel ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR dirname + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplExportDirEnum ( + IN LPCWSTR servername OPTIONAL, + IN DWORD level, + OUT LPBYTE * bufptr, + IN DWORD prefmaxlen, + OUT LPDWORD entriesread, + OUT LPDWORD totalentries, + IN OUT LPDWORD resumehandle OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplExportDirGetInfo ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR dirname, + IN DWORD level, + OUT LPBYTE * bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplExportDirSetInfo ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR dirname, + IN DWORD level, + IN const LPBYTE buf, + OUT LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplExportDirLock ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR dirname + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplExportDirUnlock ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR dirname, + IN DWORD unlockforce + ); + + +#define REPL_UNLOCK_NOFORCE 0 +#define REPL_UNLOCK_FORCE 1 + + +// +// Replicator Import Directory APIs +// + + +typedef struct _REPL_IDIR_INFO_0 { + LPWSTR rpid0_dirname; +} REPL_IDIR_INFO_0, *PREPL_IDIR_INFO_0, *LPREPL_IDIR_INFO_0; + +typedef struct _REPL_IDIR_INFO_1 { + LPWSTR rpid1_dirname; + DWORD rpid1_state; + LPWSTR rpid1_mastername; + DWORD rpid1_last_update_time; + DWORD rpid1_lockcount; + DWORD rpid1_locktime; +} REPL_IDIR_INFO_1, *PREPL_IDIR_INFO_1, *LPREPL_IDIR_INFO_1; + + +NET_API_STATUS NET_API_FUNCTION +NetReplImportDirAdd ( + IN LPCWSTR servername OPTIONAL, + IN DWORD level, + IN const LPBYTE buf, + OUT LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplImportDirDel ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR dirname + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplImportDirEnum ( + IN LPCWSTR servername OPTIONAL, + IN DWORD level, + OUT LPBYTE * bufptr, + IN DWORD prefmaxlen, + OUT LPDWORD entriesread, + OUT LPDWORD totalentries, + IN OUT LPDWORD resumehandle OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplImportDirGetInfo ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR dirname, + IN DWORD level, + OUT LPBYTE * bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetReplImportDirLock ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR dirname + ); + + +NET_API_STATUS NET_API_FUNCTION +NetReplImportDirUnlock ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR dirname, + IN DWORD unlockforce + ); + + +#pragma warning(pop) + +#define REPL_STATE_OK 0 +#define REPL_STATE_NO_MASTER 1 +#define REPL_STATE_NO_SYNC 2 +#define REPL_STATE_NEVER_REPLICATED 3 + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //_LMREPL_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMSName.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMSName.h new file mode 100644 index 0000000000000000000000000000000000000000..ddc53d20281b982789e0174419704e1d8a14783d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMSName.h @@ -0,0 +1,149 @@ +/*++ BUILD Version: 0002 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmsname.h + +Abstract: + + This file contains service name strings. It is included by lmsvc.h. + +Environment: + + User Mode -Win32 + + +--*/ + +#ifndef _LMSNAME_ +#define _LMSNAME_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Standard LAN Manager service names. +// + +#define SERVICE_WORKSTATION TEXT("LanmanWorkstation") +#define SERVICE_LM20_WORKSTATION TEXT("WORKSTATION") +#define WORKSTATION_DISPLAY_NAME TEXT("Workstation") + +#define SERVICE_SERVER TEXT("LanmanServer") +#define SERVICE_LM20_SERVER TEXT("SERVER") +#define SERVER_DISPLAY_NAME TEXT("Server") + +#define SERVICE_BROWSER TEXT("BROWSER") +#define SERVICE_LM20_BROWSER SERVICE_BROWSER + +#define SERVICE_MESSENGER TEXT("MESSENGER") +#define SERVICE_LM20_MESSENGER SERVICE_MESSENGER + +#define SERVICE_NETRUN TEXT("NETRUN") +#define SERVICE_LM20_NETRUN SERVICE_NETRUN + +#define SERVICE_SPOOLER TEXT("SPOOLER") +#define SERVICE_LM20_SPOOLER SERVICE_SPOOLER + +#define SERVICE_ALERTER TEXT("ALERTER") +#define SERVICE_LM20_ALERTER SERVICE_ALERTER + +#define SERVICE_NETLOGON TEXT("NETLOGON") +#define SERVICE_LM20_NETLOGON SERVICE_NETLOGON + +#define SERVICE_NETPOPUP TEXT("NETPOPUP") +#define SERVICE_LM20_NETPOPUP SERVICE_NETPOPUP + +#define SERVICE_SQLSERVER TEXT("SQLSERVER") +#define SERVICE_LM20_SQLSERVER SERVICE_SQLSERVER + +#define SERVICE_REPL TEXT("REPLICATOR") +#define SERVICE_LM20_REPL SERVICE_REPL + +#define SERVICE_RIPL TEXT("REMOTEBOOT") +#define SERVICE_LM20_RIPL SERVICE_RIPL + +#define SERVICE_TIMESOURCE TEXT("TIMESOURCE") +#define SERVICE_LM20_TIMESOURCE SERVICE_TIMESOURCE + +#define SERVICE_AFP TEXT("AFP") +#define SERVICE_LM20_AFP SERVICE_AFP + +#define SERVICE_UPS TEXT("UPS") +#define SERVICE_LM20_UPS SERVICE_UPS + +#define SERVICE_XACTSRV TEXT("XACTSRV") +#define SERVICE_LM20_XACTSRV SERVICE_XACTSRV + +#define SERVICE_TCPIP TEXT("TCPIP") +#define SERVICE_LM20_TCPIP SERVICE_TCPIP + +#define SERVICE_NBT TEXT("NBT") +#define SERVICE_LM20_NBT SERVICE_NBT + +#define SERVICE_LMHOSTS TEXT("LMHOSTS") +#define SERVICE_LM20_LMHOSTS SERVICE_LMHOSTS + +#define SERVICE_TELNET TEXT("Telnet") +#define SERVICE_LM20_TELNET SERVICE_TELNET + +#define SERVICE_SCHEDULE TEXT("Schedule") +#define SERVICE_LM20_SCHEDULE SERVICE_SCHEDULE + +#define SERVICE_NTLMSSP TEXT("NtLmSsp") + +#define SERVICE_DHCP TEXT("DHCP") +#define SERVICE_LM20_DHCP SERVICE_DHCP + +#define SERVICE_NWSAP TEXT("NwSapAgent") +#define SERVICE_LM20_NWSAP SERVICE_NWSAP +#define NWSAP_DISPLAY_NAME TEXT("NW Sap Agent") + +#define SERVICE_NWCS TEXT("NWCWorkstation") +#define SERVICE_DNS_CACHE TEXT("DnsCache") + +#define SERVICE_W32TIME TEXT("w32time") +#define SERVCE_LM20_W32TIME SERVICE_W32TIME + +#define SERVICE_KDC TEXT("kdc") +#define SERVICE_LM20_KDC SERVICE_KDC + +#define SERVICE_LOCALKDC TEXT("localkdc") +#define SERVICE_LM20_LOCALKDC SERVICE_LOCALKDC + +#define SERVICE_RPCLOCATOR TEXT("RPCLOCATOR") +#define SERVICE_LM20_RPCLOCATOR SERVICE_RPCLOCATOR + +#define SERVICE_TRKSVR TEXT("TrkSvr") +#define SERVICE_LM20_TRKSVR SERVICE_TRKSVR + +#define SERVICE_TRKWKS TEXT("TrkWks") +#define SERVICE_LM20_TRKWKS SERVICE_TRKWKS + +#define SERVICE_NTFRS TEXT("NtFrs") +#define SERVICE_LM20_NTFRS SERVICE_NTFRS + +#define SERVICE_ISMSERV TEXT("IsmServ") +#define SERVICE_LM20_ISMSERV SERVICE_ISMSERV + +#define SERVICE_NTDS TEXT("NTDS") +#define SERVICE_LM20_NTDS SERVICE_NTDS + +#define SERVICE_ADWS TEXT("ADWS") + +#define SERVICE_DSROLE TEXT("DsRoleSvc") +#define SERVICE_LM20_DSROLE SERVICE_DSROLE + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMServer.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMServer.h new file mode 100644 index 0000000000000000000000000000000000000000..a8f80c8f9e9c87942b0f3c3b807f974ea1d0c1d4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMServer.h @@ -0,0 +1,1547 @@ +/*++ BUILD VERSION: 0007 // INCREMENT THIS IF A CHANGE HAS GLOBAL EFFECTS + +Copyright (c) 1990-1999 Microsoft Corporation + +Module Name: + + lmserver.h + +Abstract: + + This file contains information about NetServer APIs. + Function Prototypes + Data Structures + Definition of special values + +Environment: + + User Mode - Win32 + +Notes: + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +--*/ + +#ifndef _LMSERVER_ +#define _LMSERVER_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#include // SERVICE_STATUS_HANDLE + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// Function Prototypes - SERVER +// + +NET_API_STATUS NET_API_FUNCTION +NetServerEnum ( + _In_opt_ IN LMCSTR servername OPTIONAL, + _In_ IN DWORD level, + _Outptr_result_buffer_(_Inexpressible_(entriesread)) OUT LPBYTE *bufptr, + _In_ IN DWORD prefmaxlen, + _Out_ OUT LPDWORD entriesread, + _Out_ OUT LPDWORD totalentries, + _In_ IN DWORD servertype, + _In_opt_ IN LMCSTR domain OPTIONAL, + _Out_opt_ IN OUT LPDWORD resume_handle OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetServerEnumEx ( + _In_opt_ IN LMCSTR ServerName OPTIONAL, + _In_ IN DWORD Level, + _Outptr_result_buffer_(_Inexpressible_(*EntriesRead)) + LPBYTE *Bufptr, + _In_ IN DWORD PrefMaxlen, + _Out_ OUT LPDWORD EntriesRead, + _Out_ OUT LPDWORD totalentries, + _In_ IN DWORD servertype, + _In_opt_ IN LMCSTR domain OPTIONAL, + _In_opt_ IN LMCSTR FirstNameToReturn OPTIONAL + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ +_Success_( return == 0 ) +NET_API_STATUS NET_API_FUNCTION +NetServerGetInfo ( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 100, _Outptr_result_bytebuffer_(sizeof(SERVER_INFO_100)) ) + _When_( level == 101, _Outptr_result_bytebuffer_(sizeof(SERVER_INFO_101)) ) + _When_( level == 102, _Outptr_result_bytebuffer_(sizeof(SERVER_INFO_102)) ) + LPBYTE *bufptr + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetServerSetInfo( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 100, _In_reads_bytes_(sizeof(SERVER_INFO_100)) ) + _When_( level == 101, _In_reads_bytes_(sizeof(SERVER_INFO_101)) ) + _When_( level == 102, _In_reads_bytes_(sizeof(SERVER_INFO_102)) ) + _When_( level == 402, _In_reads_bytes_(sizeof(SERVER_INFO_402)) ) + _When_( level == 403, _In_reads_bytes_(sizeof(SERVER_INFO_403)) ) + _When_( level == 1005, _In_reads_bytes_(sizeof(SERVER_INFO_1005)) ) + _When_( level == 1010, _In_reads_bytes_(sizeof(SERVER_INFO_1010)) ) + _When_( level == 1016, _In_reads_bytes_(sizeof(SERVER_INFO_1016)) ) + _When_( level == 1017, _In_reads_bytes_(sizeof(SERVER_INFO_1017)) ) + _When_( level == 1018, _In_reads_bytes_(sizeof(SERVER_INFO_1018)) ) + LPBYTE buf, + _Out_opt_ LPDWORD ParmError + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// +// Temporary hack function. +// + +NET_API_STATUS +NetServerSetInfoCommandLine ( + _In_ WORD argc, + _In_reads_(argc) LMSTR argv[] + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ +_Success_( return == 0 || return == ERROR_MORE_DATA ) +NET_API_STATUS NET_API_FUNCTION +NetServerDiskEnum ( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _Outptr_result_bytebuffer_((sizeof(TCHAR) * 3 * (*entriesread)) + sizeof(TCHAR)) LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resume_handle + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetServerComputerNameAdd( + _In_opt_ LMSTR ServerName, + _In_opt_ LMSTR EmulatedDomainName, + _In_ LMSTR EmulatedServerName + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetServerComputerNameDel( + _In_opt_ LMSTR ServerName, + _In_ LMSTR EmulatedServerName + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetServerTransportAdd ( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_0)) LPBYTE bufptr + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetServerTransportAddEx( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 0, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_0)) ) + _When_( level == 1, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_1)) ) + _When_( level == 2, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_2)) ) + _When_( level == 3, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_3)) ) + LPBYTE bufptr + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetServerTransportAddForInstance( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 0, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_0)) ) + _When_( level == 1, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_1)) ) + _When_( level == 2, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_2)) ) + _When_( level == 3, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_3)) ) + LPBYTE bufptr, + _In_ LPDWORD InstanceHandle + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetServerTransportDel( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 0, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_0)) ) + _When_( level == 1, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_1)) ) + LPBYTE bufptr + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetServerTransportDelForInstance( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 0, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_0)) ) + _When_( level == 1, _In_reads_bytes_(sizeof(SERVER_TRANSPORT_INFO_1)) ) + LPBYTE bufptr, + _In_ LPDWORD InstanceHandle + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ +_Success_( return == 0 || return == ERROR_MORE_DATA ) +NET_API_STATUS NET_API_FUNCTION +NetServerTransportEnum ( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 0, _Outptr_result_bytebuffer_(*entriesread * sizeof(SERVER_TRANSPORT_INFO_0)) ) + _When_( level == 1, _Outptr_result_bytebuffer_(*entriesread * sizeof(SERVER_TRANSPORT_INFO_1)) ) + _When_( level == 2, _Outptr_result_bytebuffer_(*entriesread * sizeof(SERVER_TRANSPORT_INFO_2)) ) + LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resume_handle + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// The following function can be called by Win NT services to register +// their service type. This function is exported from advapi32.dll. +// Therefore, if this is the only function called by that service, then +// it is not necessary to link to netapi32.lib. +// +BOOL NET_API_FUNCTION +SetServiceBits( + IN SERVICE_STATUS_HANDLE hServiceStatus, + IN DWORD dwServiceBits, + IN BOOL bSetBitsOn, + IN BOOL bUpdateImmediately + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +// +// Data Structures - SERVER +// + +typedef struct _SERVER_INFO_100 { + DWORD sv100_platform_id; + LMSTR sv100_name; +} SERVER_INFO_100, *PSERVER_INFO_100, *LPSERVER_INFO_100; + +typedef struct _SERVER_INFO_101 { + DWORD sv101_platform_id; + LMSTR sv101_name; + DWORD sv101_version_major; + DWORD sv101_version_minor; + DWORD sv101_type; + LMSTR sv101_comment; +} SERVER_INFO_101, *PSERVER_INFO_101, *LPSERVER_INFO_101; + +typedef struct _SERVER_INFO_102 { + DWORD sv102_platform_id; + LMSTR sv102_name; + DWORD sv102_version_major; + DWORD sv102_version_minor; + DWORD sv102_type; + LMSTR sv102_comment; + DWORD sv102_users; + LONG sv102_disc; + BOOL sv102_hidden; + DWORD sv102_announce; + DWORD sv102_anndelta; + DWORD sv102_licenses; + LMSTR sv102_userpath; +} SERVER_INFO_102, *PSERVER_INFO_102, *LPSERVER_INFO_102; + +typedef struct _SERVER_INFO_103 { + DWORD sv103_platform_id; + LMSTR sv103_name; + DWORD sv103_version_major; + DWORD sv103_version_minor; + DWORD sv103_type; + LMSTR sv103_comment; + DWORD sv103_users; + LONG sv103_disc; + BOOL sv103_hidden; + DWORD sv103_announce; + DWORD sv103_anndelta; + DWORD sv103_licenses; + LMSTR sv103_userpath; + DWORD sv103_capabilities; +} SERVER_INFO_103, *PSERVER_INFO_103, *LPSERVER_INFO_103; + +typedef struct _SERVER_INFO_402 { + DWORD sv402_ulist_mtime; + DWORD sv402_glist_mtime; + DWORD sv402_alist_mtime; + LMSTR sv402_alerts; + DWORD sv402_security; + DWORD sv402_numadmin; + DWORD sv402_lanmask; + LMSTR sv402_guestacct; + DWORD sv402_chdevs; + DWORD sv402_chdevq; + DWORD sv402_chdevjobs; + DWORD sv402_connections; + DWORD sv402_shares; + DWORD sv402_openfiles; + DWORD sv402_sessopens; + DWORD sv402_sessvcs; + DWORD sv402_sessreqs; + DWORD sv402_opensearch; + DWORD sv402_activelocks; + DWORD sv402_numreqbuf; + DWORD sv402_sizreqbuf; + DWORD sv402_numbigbuf; + DWORD sv402_numfiletasks; + DWORD sv402_alertsched; + DWORD sv402_erroralert; + DWORD sv402_logonalert; + DWORD sv402_accessalert; + DWORD sv402_diskalert; + DWORD sv402_netioalert; + DWORD sv402_maxauditsz; + LMSTR sv402_srvheuristics; +} SERVER_INFO_402, *PSERVER_INFO_402, *LPSERVER_INFO_402; + +typedef struct _SERVER_INFO_403 { + DWORD sv403_ulist_mtime; + DWORD sv403_glist_mtime; + DWORD sv403_alist_mtime; + LMSTR sv403_alerts; + DWORD sv403_security; + DWORD sv403_numadmin; + DWORD sv403_lanmask; + LMSTR sv403_guestacct; + DWORD sv403_chdevs; + DWORD sv403_chdevq; + DWORD sv403_chdevjobs; + DWORD sv403_connections; + DWORD sv403_shares; + DWORD sv403_openfiles; + DWORD sv403_sessopens; + DWORD sv403_sessvcs; + DWORD sv403_sessreqs; + DWORD sv403_opensearch; + DWORD sv403_activelocks; + DWORD sv403_numreqbuf; + DWORD sv403_sizreqbuf; + DWORD sv403_numbigbuf; + DWORD sv403_numfiletasks; + DWORD sv403_alertsched; + DWORD sv403_erroralert; + DWORD sv403_logonalert; + DWORD sv403_accessalert; + DWORD sv403_diskalert; + DWORD sv403_netioalert; + DWORD sv403_maxauditsz; + LMSTR sv403_srvheuristics; + DWORD sv403_auditedevents; + DWORD sv403_autoprofile; + LMSTR sv403_autopath; +} SERVER_INFO_403, *PSERVER_INFO_403, *LPSERVER_INFO_403; + +typedef struct _SERVER_INFO_502 { + DWORD sv502_sessopens; + DWORD sv502_sessvcs; + DWORD sv502_opensearch; + DWORD sv502_sizreqbuf; + DWORD sv502_initworkitems; + DWORD sv502_maxworkitems; + DWORD sv502_rawworkitems; + DWORD sv502_irpstacksize; + DWORD sv502_maxrawbuflen; + DWORD sv502_sessusers; + DWORD sv502_sessconns; + DWORD sv502_maxpagedmemoryusage; + DWORD sv502_maxnonpagedmemoryusage; + BOOL sv502_enablesoftcompat; + BOOL sv502_enableforcedlogoff; + BOOL sv502_timesource; + BOOL sv502_acceptdownlevelapis; + BOOL sv502_lmannounce; +} SERVER_INFO_502, *PSERVER_INFO_502, *LPSERVER_INFO_502; + +typedef struct _SERVER_INFO_503 { + DWORD sv503_sessopens; + DWORD sv503_sessvcs; + DWORD sv503_opensearch; + DWORD sv503_sizreqbuf; + DWORD sv503_initworkitems; + DWORD sv503_maxworkitems; + DWORD sv503_rawworkitems; + DWORD sv503_irpstacksize; + DWORD sv503_maxrawbuflen; + DWORD sv503_sessusers; + DWORD sv503_sessconns; + DWORD sv503_maxpagedmemoryusage; + DWORD sv503_maxnonpagedmemoryusage; + BOOL sv503_enablesoftcompat; + BOOL sv503_enableforcedlogoff; + BOOL sv503_timesource; + BOOL sv503_acceptdownlevelapis; + BOOL sv503_lmannounce; + LMSTR sv503_domain; + DWORD sv503_maxcopyreadlen; + DWORD sv503_maxcopywritelen; + DWORD sv503_minkeepsearch; + DWORD sv503_maxkeepsearch; + DWORD sv503_minkeepcomplsearch; + DWORD sv503_maxkeepcomplsearch; + DWORD sv503_threadcountadd; + DWORD sv503_numblockthreads; + DWORD sv503_scavtimeout; + DWORD sv503_minrcvqueue; + DWORD sv503_minfreeworkitems; + DWORD sv503_xactmemsize; + DWORD sv503_threadpriority; + DWORD sv503_maxmpxct; + DWORD sv503_oplockbreakwait; + DWORD sv503_oplockbreakresponsewait; + BOOL sv503_enableoplocks; + BOOL sv503_enableoplockforceclose; + BOOL sv503_enablefcbopens; + BOOL sv503_enableraw; + BOOL sv503_enablesharednetdrives; + DWORD sv503_minfreeconnections; + DWORD sv503_maxfreeconnections; +} SERVER_INFO_503, *PSERVER_INFO_503, *LPSERVER_INFO_503; + +typedef struct _SERVER_INFO_599 { + DWORD sv599_sessopens; + DWORD sv599_sessvcs; + DWORD sv599_opensearch; + DWORD sv599_sizreqbuf; + DWORD sv599_initworkitems; + DWORD sv599_maxworkitems; + DWORD sv599_rawworkitems; + DWORD sv599_irpstacksize; + DWORD sv599_maxrawbuflen; + DWORD sv599_sessusers; + DWORD sv599_sessconns; + DWORD sv599_maxpagedmemoryusage; + DWORD sv599_maxnonpagedmemoryusage; + BOOL sv599_enablesoftcompat; + BOOL sv599_enableforcedlogoff; + BOOL sv599_timesource; + BOOL sv599_acceptdownlevelapis; + BOOL sv599_lmannounce; + LMSTR sv599_domain; + DWORD sv599_maxcopyreadlen; + DWORD sv599_maxcopywritelen; + DWORD sv599_minkeepsearch; + DWORD sv599_maxkeepsearch; + DWORD sv599_minkeepcomplsearch; + DWORD sv599_maxkeepcomplsearch; + DWORD sv599_threadcountadd; + DWORD sv599_numblockthreads; + DWORD sv599_scavtimeout; + DWORD sv599_minrcvqueue; + DWORD sv599_minfreeworkitems; + DWORD sv599_xactmemsize; + DWORD sv599_threadpriority; + DWORD sv599_maxmpxct; + DWORD sv599_oplockbreakwait; + DWORD sv599_oplockbreakresponsewait; + BOOL sv599_enableoplocks; + BOOL sv599_enableoplockforceclose; + BOOL sv599_enablefcbopens; + BOOL sv599_enableraw; + BOOL sv599_enablesharednetdrives; + DWORD sv599_minfreeconnections; + DWORD sv599_maxfreeconnections; + DWORD sv599_initsesstable; + DWORD sv599_initconntable; + DWORD sv599_initfiletable; + DWORD sv599_initsearchtable; + DWORD sv599_alertschedule; + DWORD sv599_errorthreshold; + DWORD sv599_networkerrorthreshold; + DWORD sv599_diskspacethreshold; + DWORD sv599_reserved; + DWORD sv599_maxlinkdelay; + DWORD sv599_minlinkthroughput; + DWORD sv599_linkinfovalidtime; + DWORD sv599_scavqosinfoupdatetime; + DWORD sv599_maxworkitemidletime; +} SERVER_INFO_599, *PSERVER_INFO_599, *LPSERVER_INFO_599; + +typedef struct _SERVER_INFO_598 { + DWORD sv598_maxrawworkitems; + DWORD sv598_maxthreadsperqueue; + DWORD sv598_producttype; + DWORD sv598_serversize; + DWORD sv598_connectionlessautodisc; + DWORD sv598_sharingviolationretries; + DWORD sv598_sharingviolationdelay; + DWORD sv598_maxglobalopensearch; + DWORD sv598_removeduplicatesearches; + DWORD sv598_lockviolationoffset; + DWORD sv598_lockviolationdelay; + DWORD sv598_mdlreadswitchover; + DWORD sv598_cachedopenlimit; + DWORD sv598_otherqueueaffinity; + BOOL sv598_restrictnullsessaccess; + BOOL sv598_enablewfw311directipx; + DWORD sv598_queuesamplesecs; + DWORD sv598_balancecount; + DWORD sv598_preferredaffinity; + DWORD sv598_maxfreerfcbs; + DWORD sv598_maxfreemfcbs; + DWORD sv598_maxfreelfcbs; + DWORD sv598_maxfreepagedpoolchunks; + DWORD sv598_minpagedpoolchunksize; + DWORD sv598_maxpagedpoolchunksize; + BOOL sv598_sendsfrompreferredprocessor; + DWORD sv598_cacheddirectorylimit; + DWORD sv598_maxcopylength; + BOOL sv598_enablecompression; + BOOL sv598_autosharewks; + BOOL sv598_autoshareserver; + BOOL sv598_enablesecuritysignature; + BOOL sv598_requiresecuritysignature; + DWORD sv598_minclientbuffersize; + GUID sv598_serverguid; + DWORD sv598_ConnectionNoSessionsTimeout; + DWORD sv598_IdleThreadTimeOut; + BOOL sv598_enableW9xsecuritysignature; + BOOL sv598_enforcekerberosreauthentication; + BOOL sv598_disabledos; + DWORD sv598_lowdiskspaceminimum; + BOOL sv598_disablestrictnamechecking; + BOOL sv598_enableauthenticateusersharing; +} SERVER_INFO_598, *PSERVER_INFO_598, *LPSERVER_INFO_598; + +typedef struct _SERVER_INFO_1005 { + LMSTR sv1005_comment; +} SERVER_INFO_1005, *PSERVER_INFO_1005, *LPSERVER_INFO_1005; + +typedef struct _SERVER_INFO_1107 { + DWORD sv1107_users; +} SERVER_INFO_1107, *PSERVER_INFO_1107, *LPSERVER_INFO_1107; + +typedef struct _SERVER_INFO_1010 { + LONG sv1010_disc; +} SERVER_INFO_1010, *PSERVER_INFO_1010, *LPSERVER_INFO_1010; + +typedef struct _SERVER_INFO_1016 { + BOOL sv1016_hidden; +} SERVER_INFO_1016, *PSERVER_INFO_1016, *LPSERVER_INFO_1016; + +typedef struct _SERVER_INFO_1017 { + DWORD sv1017_announce; +} SERVER_INFO_1017, *PSERVER_INFO_1017, *LPSERVER_INFO_1017; + +typedef struct _SERVER_INFO_1018 { + DWORD sv1018_anndelta; +} SERVER_INFO_1018, *PSERVER_INFO_1018, *LPSERVER_INFO_1018; + +typedef struct _SERVER_INFO_1501 { + DWORD sv1501_sessopens; +} SERVER_INFO_1501, *PSERVER_INFO_1501, *LPSERVER_INFO_1501; + +typedef struct _SERVER_INFO_1502 { + DWORD sv1502_sessvcs; +} SERVER_INFO_1502, *PSERVER_INFO_1502, *LPSERVER_INFO_1502; + +typedef struct _SERVER_INFO_1503 { + DWORD sv1503_opensearch; +} SERVER_INFO_1503, *PSERVER_INFO_1503, *LPSERVER_INFO_1503; + +typedef struct _SERVER_INFO_1506 { + DWORD sv1506_maxworkitems; +} SERVER_INFO_1506, *PSERVER_INFO_1506, *LPSERVER_INFO_1506; + +typedef struct _SERVER_INFO_1509 { + DWORD sv1509_maxrawbuflen; +} SERVER_INFO_1509, *PSERVER_INFO_1509, *LPSERVER_INFO_1509; + +typedef struct _SERVER_INFO_1510 { + DWORD sv1510_sessusers; +} SERVER_INFO_1510, *PSERVER_INFO_1510, *LPSERVER_INFO_1510; + +typedef struct _SERVER_INFO_1511 { + DWORD sv1511_sessconns; +} SERVER_INFO_1511, *PSERVER_INFO_1511, *LPSERVER_INFO_1511; + +typedef struct _SERVER_INFO_1512 { + DWORD sv1512_maxnonpagedmemoryusage; +} SERVER_INFO_1512, *PSERVER_INFO_1512, *LPSERVER_INFO_1512; + +typedef struct _SERVER_INFO_1513 { + DWORD sv1513_maxpagedmemoryusage; +} SERVER_INFO_1513, *PSERVER_INFO_1513, *LPSERVER_INFO_1513; + +typedef struct _SERVER_INFO_1514 { + BOOL sv1514_enablesoftcompat; +} SERVER_INFO_1514, *PSERVER_INFO_1514, *LPSERVER_INFO_1514; + +typedef struct _SERVER_INFO_1515 { + BOOL sv1515_enableforcedlogoff; +} SERVER_INFO_1515, *PSERVER_INFO_1515, *LPSERVER_INFO_1515; + +typedef struct _SERVER_INFO_1516 { + BOOL sv1516_timesource; +} SERVER_INFO_1516, *PSERVER_INFO_1516, *LPSERVER_INFO_1516; + +typedef struct _SERVER_INFO_1518 { + BOOL sv1518_lmannounce; +} SERVER_INFO_1518, *PSERVER_INFO_1518, *LPSERVER_INFO_1518; + +typedef struct _SERVER_INFO_1520 { + DWORD sv1520_maxcopyreadlen; +} SERVER_INFO_1520, *PSERVER_INFO_1520, *LPSERVER_INFO_1520; + +typedef struct _SERVER_INFO_1521 { + DWORD sv1521_maxcopywritelen; +} SERVER_INFO_1521, *PSERVER_INFO_1521, *LPSERVER_INFO_1521; + +typedef struct _SERVER_INFO_1522 { + DWORD sv1522_minkeepsearch; +} SERVER_INFO_1522, *PSERVER_INFO_1522, *LPSERVER_INFO_1522; + +typedef struct _SERVER_INFO_1523 { + DWORD sv1523_maxkeepsearch; +} SERVER_INFO_1523, *PSERVER_INFO_1523, *LPSERVER_INFO_1523; + +typedef struct _SERVER_INFO_1524 { + DWORD sv1524_minkeepcomplsearch; +} SERVER_INFO_1524, *PSERVER_INFO_1524, *LPSERVER_INFO_1524; + +typedef struct _SERVER_INFO_1525 { + DWORD sv1525_maxkeepcomplsearch; +} SERVER_INFO_1525, *PSERVER_INFO_1525, *LPSERVER_INFO_1525; + +typedef struct _SERVER_INFO_1528 { + DWORD sv1528_scavtimeout; +} SERVER_INFO_1528, *PSERVER_INFO_1528, *LPSERVER_INFO_1528; + +typedef struct _SERVER_INFO_1529 { + DWORD sv1529_minrcvqueue; +} SERVER_INFO_1529, *PSERVER_INFO_1529, *LPSERVER_INFO_1529; + +typedef struct _SERVER_INFO_1530 { + DWORD sv1530_minfreeworkitems; +} SERVER_INFO_1530, *PSERVER_INFO_1530, *LPSERVER_INFO_1530; + +typedef struct _SERVER_INFO_1533 { + DWORD sv1533_maxmpxct; +} SERVER_INFO_1533, *PSERVER_INFO_1533, *LPSERVER_INFO_1533; + +typedef struct _SERVER_INFO_1534 { + DWORD sv1534_oplockbreakwait; +} SERVER_INFO_1534, *PSERVER_INFO_1534, *LPSERVER_INFO_1534; + +typedef struct _SERVER_INFO_1535 { + DWORD sv1535_oplockbreakresponsewait; +} SERVER_INFO_1535, *PSERVER_INFO_1535, *LPSERVER_INFO_1535; + +typedef struct _SERVER_INFO_1536 { + BOOL sv1536_enableoplocks; +} SERVER_INFO_1536, *PSERVER_INFO_1536, *LPSERVER_INFO_1536; + +typedef struct _SERVER_INFO_1537 { + BOOL sv1537_enableoplockforceclose; +} SERVER_INFO_1537, *PSERVER_INFO_1537, *LPSERVER_INFO_1537; + +typedef struct _SERVER_INFO_1538 { + BOOL sv1538_enablefcbopens; +} SERVER_INFO_1538, *PSERVER_INFO_1538, *LPSERVER_INFO_1538; + +typedef struct _SERVER_INFO_1539 { + BOOL sv1539_enableraw; +} SERVER_INFO_1539, *PSERVER_INFO_1539, *LPSERVER_INFO_1539; + +typedef struct _SERVER_INFO_1540 { + BOOL sv1540_enablesharednetdrives; +} SERVER_INFO_1540, *PSERVER_INFO_1540, *LPSERVER_INFO_1540; + +typedef struct _SERVER_INFO_1541 { + BOOL sv1541_minfreeconnections; +} SERVER_INFO_1541, *PSERVER_INFO_1541, *LPSERVER_INFO_1541; + +typedef struct _SERVER_INFO_1542 { + BOOL sv1542_maxfreeconnections; +} SERVER_INFO_1542, *PSERVER_INFO_1542, *LPSERVER_INFO_1542; + +typedef struct _SERVER_INFO_1543 { + DWORD sv1543_initsesstable; +} SERVER_INFO_1543, *PSERVER_INFO_1543, *LPSERVER_INFO_1543; + +typedef struct _SERVER_INFO_1544 { + DWORD sv1544_initconntable; +} SERVER_INFO_1544, *PSERVER_INFO_1544, *LPSERVER_INFO_1544; + +typedef struct _SERVER_INFO_1545 { + DWORD sv1545_initfiletable; +} SERVER_INFO_1545, *PSERVER_INFO_1545, *LPSERVER_INFO_1545; + +typedef struct _SERVER_INFO_1546 { + DWORD sv1546_initsearchtable; +} SERVER_INFO_1546, *PSERVER_INFO_1546, *LPSERVER_INFO_1546; + +typedef struct _SERVER_INFO_1547 { + DWORD sv1547_alertschedule; +} SERVER_INFO_1547, *PSERVER_INFO_1547, *LPSERVER_INFO_1547; + +typedef struct _SERVER_INFO_1548 { + DWORD sv1548_errorthreshold; +} SERVER_INFO_1548, *PSERVER_INFO_1548, *LPSERVER_INFO_1548; + +typedef struct _SERVER_INFO_1549 { + DWORD sv1549_networkerrorthreshold; +} SERVER_INFO_1549, *PSERVER_INFO_1549, *LPSERVER_INFO_1549; + +typedef struct _SERVER_INFO_1550 { + DWORD sv1550_diskspacethreshold; +} SERVER_INFO_1550, *PSERVER_INFO_1550, *LPSERVER_INFO_1550; + +typedef struct _SERVER_INFO_1552 { + DWORD sv1552_maxlinkdelay; +} SERVER_INFO_1552, *PSERVER_INFO_1552, *LPSERVER_INFO_1552; + +typedef struct _SERVER_INFO_1553 { + DWORD sv1553_minlinkthroughput; +} SERVER_INFO_1553, *PSERVER_INFO_1553, *LPSERVER_INFO_1553; + +typedef struct _SERVER_INFO_1554 { + DWORD sv1554_linkinfovalidtime; +} SERVER_INFO_1554, *PSERVER_INFO_1554, *LPSERVER_INFO_1554; + +typedef struct _SERVER_INFO_1555 { + DWORD sv1555_scavqosinfoupdatetime; +} SERVER_INFO_1555, *PSERVER_INFO_1555, *LPSERVER_INFO_1555; + +typedef struct _SERVER_INFO_1556 { + DWORD sv1556_maxworkitemidletime; +} SERVER_INFO_1556, *PSERVER_INFO_1556, *LPSERVER_INFO_1556; + +typedef struct _SERVER_INFO_1557 { + DWORD sv1557_maxrawworkitems; +} SERVER_INFO_1557, *PSERVER_INFO_1557, *LPSERVER_INFO_1557; + +typedef struct _SERVER_INFO_1560 { + DWORD sv1560_producttype; +} SERVER_INFO_1560, *PSERVER_INFO_1560, *LPSERVER_INFO_1560; + +typedef struct _SERVER_INFO_1561 { + DWORD sv1561_serversize; +} SERVER_INFO_1561, *PSERVER_INFO_1561, *LPSERVER_INFO_1561; + +typedef struct _SERVER_INFO_1562 { + DWORD sv1562_connectionlessautodisc; +} SERVER_INFO_1562, *PSERVER_INFO_1562, *LPSERVER_INFO_1562; + +typedef struct _SERVER_INFO_1563 { + DWORD sv1563_sharingviolationretries; +} SERVER_INFO_1563, *PSERVER_INFO_1563, *LPSERVER_INFO_1563; + +typedef struct _SERVER_INFO_1564 { + DWORD sv1564_sharingviolationdelay; +} SERVER_INFO_1564, *PSERVER_INFO_1564, *LPSERVER_INFO_1564; + +typedef struct _SERVER_INFO_1565 { + DWORD sv1565_maxglobalopensearch; +} SERVER_INFO_1565, *PSERVER_INFO_1565, *LPSERVER_INFO_1565; + +typedef struct _SERVER_INFO_1566 { + BOOL sv1566_removeduplicatesearches; +} SERVER_INFO_1566, *PSERVER_INFO_1566, *LPSERVER_INFO_1566; + +typedef struct _SERVER_INFO_1567 { + DWORD sv1567_lockviolationretries; +} SERVER_INFO_1567, *PSERVER_INFO_1567, *LPSERVER_INFO_1567; + +typedef struct _SERVER_INFO_1568 { + DWORD sv1568_lockviolationoffset; +} SERVER_INFO_1568, *PSERVER_INFO_1568, *LPSERVER_INFO_1568; + +typedef struct _SERVER_INFO_1569 { + DWORD sv1569_lockviolationdelay; +} SERVER_INFO_1569, *PSERVER_INFO_1569, *LPSERVER_INFO_1569; + +typedef struct _SERVER_INFO_1570 { + DWORD sv1570_mdlreadswitchover; +} SERVER_INFO_1570, *PSERVER_INFO_1570, *LPSERVER_INFO_1570; + +typedef struct _SERVER_INFO_1571 { + DWORD sv1571_cachedopenlimit; +} SERVER_INFO_1571, *PSERVER_INFO_1571, *LPSERVER_INFO_1571; + +typedef struct _SERVER_INFO_1572 { + DWORD sv1572_criticalthreads; +} SERVER_INFO_1572, *PSERVER_INFO_1572, *LPSERVER_INFO_1572; + +typedef struct _SERVER_INFO_1573 { + DWORD sv1573_restrictnullsessaccess; +} SERVER_INFO_1573, *PSERVER_INFO_1573, *LPSERVER_INFO_1573; + +typedef struct _SERVER_INFO_1574 { + DWORD sv1574_enablewfw311directipx; +} SERVER_INFO_1574, *PSERVER_INFO_1574, *LPSERVER_INFO_1574; + +typedef struct _SERVER_INFO_1575 { + DWORD sv1575_otherqueueaffinity; +} SERVER_INFO_1575, *PSERVER_INFO_1575, *LPSERVER_INFO_1575; + +typedef struct _SERVER_INFO_1576 { + DWORD sv1576_queuesamplesecs; +} SERVER_INFO_1576, *PSERVER_INFO_1576, *LPSERVER_INFO_1576; + +typedef struct _SERVER_INFO_1577 { + DWORD sv1577_balancecount; +} SERVER_INFO_1577, *PSERVER_INFO_1577, *LPSERVER_INFO_1577; + +typedef struct _SERVER_INFO_1578 { + DWORD sv1578_preferredaffinity; +} SERVER_INFO_1578, *PSERVER_INFO_1578, *LPSERVER_INFO_1578; + +typedef struct _SERVER_INFO_1579 { + DWORD sv1579_maxfreerfcbs; +} SERVER_INFO_1579, *PSERVER_INFO_1579, *LPSERVER_INFO_1579; + +typedef struct _SERVER_INFO_1580 { + DWORD sv1580_maxfreemfcbs; +} SERVER_INFO_1580, *PSERVER_INFO_1580, *LPSERVER_INFO_1580; + +typedef struct _SERVER_INFO_1581 { + DWORD sv1581_maxfreemlcbs; +} SERVER_INFO_1581, *PSERVER_INFO_1581, *LPSERVER_INFO_1581; + +typedef struct _SERVER_INFO_1582 { + DWORD sv1582_maxfreepagedpoolchunks; +} SERVER_INFO_1582, *PSERVER_INFO_1582, *LPSERVER_INFO_1582; + +typedef struct _SERVER_INFO_1583 { + DWORD sv1583_minpagedpoolchunksize; +} SERVER_INFO_1583, *PSERVER_INFO_1583, *LPSERVER_INFO_1583; + +typedef struct _SERVER_INFO_1584 { + DWORD sv1584_maxpagedpoolchunksize; +} SERVER_INFO_1584, *PSERVER_INFO_1584, *LPSERVER_INFO_1584; + +typedef struct _SERVER_INFO_1585 { + BOOL sv1585_sendsfrompreferredprocessor; +} SERVER_INFO_1585, *PSERVER_INFO_1585, *LPSERVER_INFO_1585; + +typedef struct _SERVER_INFO_1586 { + DWORD sv1586_maxthreadsperqueue; +} SERVER_INFO_1586, *PSERVER_INFO_1586, *LPSERVER_INFO_1586; + +typedef struct _SERVER_INFO_1587 { + DWORD sv1587_cacheddirectorylimit; +} SERVER_INFO_1587, *PSERVER_INFO_1587, *LPSERVER_INFO_1587; + +typedef struct _SERVER_INFO_1588 { + DWORD sv1588_maxcopylength; +} SERVER_INFO_1588, *PSERVER_INFO_1588, *LPSERVER_INFO_1588; + +typedef struct _SERVER_INFO_1590 { + DWORD sv1590_enablecompression; +} SERVER_INFO_1590, *PSERVER_INFO_1590, *LPSERVER_INFO_1590; + +typedef struct _SERVER_INFO_1591 { + DWORD sv1591_autosharewks; +} SERVER_INFO_1591, *PSERVER_INFO_1591, *LPSERVER_INFO_1591; + +typedef struct _SERVER_INFO_1592 { + DWORD sv1592_autosharewks; +} SERVER_INFO_1592, *PSERVER_INFO_1592, *LPSERVER_INFO_1592; + +typedef struct _SERVER_INFO_1593 { + DWORD sv1593_enablesecuritysignature; +} SERVER_INFO_1593, *PSERVER_INFO_1593, *LPSERVER_INFO_1593; + +typedef struct _SERVER_INFO_1594 { + DWORD sv1594_requiresecuritysignature; +} SERVER_INFO_1594, *PSERVER_INFO_1594, *LPSERVER_INFO_1594; + +typedef struct _SERVER_INFO_1595 { + DWORD sv1595_minclientbuffersize; +} SERVER_INFO_1595, *PSERVER_INFO_1595, *LPSERVER_INFO_1595; + +typedef struct _SERVER_INFO_1596 { + DWORD sv1596_ConnectionNoSessionsTimeout; +} SERVER_INFO_1596, *PSERVER_INFO_1596, *LPSERVER_INFO_1596; + +typedef struct _SERVER_INFO_1597 { + DWORD sv1597_IdleThreadTimeOut; +} SERVER_INFO_1597, *PSERVER_INFO_1597, *LPSERVER_INFO_1597; + +typedef struct _SERVER_INFO_1598 { + DWORD sv1598_enableW9xsecuritysignature; +} SERVER_INFO_1598, *PSERVER_INFO_1598, *LPSERVER_INFO_1598; + +typedef struct _SERVER_INFO_1599 { + BOOLEAN sv1598_enforcekerberosreauthentication; +} SERVER_INFO_1599, *PSERVER_INFO_1599, *LPSERVER_INFO_1599; + +typedef struct _SERVER_INFO_1600 { + BOOLEAN sv1598_disabledos; +} SERVER_INFO_1600, *PSERVER_INFO_1600, *LPSERVER_INFO_1600; + +typedef struct _SERVER_INFO_1601 { + DWORD sv1598_lowdiskspaceminimum; +} SERVER_INFO_1601, *PSERVER_INFO_1601, *LPSERVER_INFO_1601; + +typedef struct _SERVER_INFO_1602 { + BOOL sv_1598_disablestrictnamechecking; +} SERVER_INFO_1602, *PSERVER_INFO_1602, *LPSERVER_INFO_1602; + +// +// A special structure definition is required in order for this +// structure to work with RPC. The problem is that having addresslength +// indicate the number of bytes in address means that RPC must know the +// link between the two. +// + +#ifdef MIDL_PASS + +typedef struct _SERVER_TRANSPORT_INFO_0 { + DWORD svti0_numberofvcs; + LMSTR svti0_transportname; + [size_is(svti0_transportaddresslength)] LPBYTE svti0_transportaddress; + DWORD svti0_transportaddresslength; + LMSTR svti0_networkaddress; +} SERVER_TRANSPORT_INFO_0, *PSERVER_TRANSPORT_INFO_0, *LPSERVER_TRANSPORT_INFO_0; + +typedef struct _SERVER_TRANSPORT_INFO_1 { + DWORD svti1_numberofvcs; + LMSTR svti1_transportname; + [size_is(svti1_transportaddresslength)] LPBYTE svti1_transportaddress; + DWORD svti1_transportaddresslength; + LMSTR svti1_networkaddress; + LMSTR svti1_domain; +} SERVER_TRANSPORT_INFO_1, *PSERVER_TRANSPORT_INFO_1, *LPSERVER_TRANSPORT_INFO_1; + +typedef struct _SERVER_TRANSPORT_INFO_2 { + DWORD svti2_numberofvcs; + LMSTR svti2_transportname; + [size_is(svti2_transportaddresslength)] LPBYTE svti2_transportaddress; + DWORD svti2_transportaddresslength; + LMSTR svti2_networkaddress; + LMSTR svti2_domain; + ULONG svti2_flags; +} SERVER_TRANSPORT_INFO_2, *PSERVER_TRANSPORT_INFO_2, *LPSERVER_TRANSPORT_INFO_2; + +typedef struct _SERVER_TRANSPORT_INFO_3 { + DWORD svti3_numberofvcs; + LMSTR svti3_transportname; + [size_is(svti3_transportaddresslength)] LPBYTE svti3_transportaddress; + DWORD svti3_transportaddresslength; + LMSTR svti3_networkaddress; + LMSTR svti3_domain; + ULONG svti3_flags; + DWORD svti3_passwordlength; + BYTE svti3_password[ 256 ]; +} SERVER_TRANSPORT_INFO_3, *PSERVER_TRANSPORT_INFO_3, *LPSERVER_TRANSPORT_INFO_3; + +#else + +typedef struct _SERVER_TRANSPORT_INFO_0 { + DWORD svti0_numberofvcs; + LMSTR svti0_transportname; + LPBYTE svti0_transportaddress; + DWORD svti0_transportaddresslength; + LMSTR svti0_networkaddress; +} SERVER_TRANSPORT_INFO_0, *PSERVER_TRANSPORT_INFO_0, *LPSERVER_TRANSPORT_INFO_0; + +typedef struct _SERVER_TRANSPORT_INFO_1 { + DWORD svti1_numberofvcs; + LMSTR svti1_transportname; + LPBYTE svti1_transportaddress; + DWORD svti1_transportaddresslength; + LMSTR svti1_networkaddress; + LMSTR svti1_domain; +} SERVER_TRANSPORT_INFO_1, *PSERVER_TRANSPORT_INFO_1, *LPSERVER_TRANSPORT_INFO_1; + +typedef struct _SERVER_TRANSPORT_INFO_2 { + DWORD svti2_numberofvcs; + LMSTR svti2_transportname; + LPBYTE svti2_transportaddress; + DWORD svti2_transportaddresslength; + LMSTR svti2_networkaddress; + LMSTR svti2_domain; + ULONG svti2_flags; +} SERVER_TRANSPORT_INFO_2, *PSERVER_TRANSPORT_INFO_2, *LPSERVER_TRANSPORT_INFO_2; + +typedef struct _SERVER_TRANSPORT_INFO_3 { + DWORD svti3_numberofvcs; + LMSTR svti3_transportname; + LPBYTE svti3_transportaddress; + DWORD svti3_transportaddresslength; + LMSTR svti3_networkaddress; + LMSTR svti3_domain; + ULONG svti3_flags; + DWORD svti3_passwordlength; + BYTE svti3_password[ 256 ]; +} SERVER_TRANSPORT_INFO_3, *PSERVER_TRANSPORT_INFO_3, *LPSERVER_TRANSPORT_INFO_3; + +#endif + +// +// Defines - SERVER +// + +// +// The platform ID indicates the levels to use for platform-specific +// information. +// + +#define SV_PLATFORM_ID_OS2 400 +#define SV_PLATFORM_ID_NT 500 + +// +// Mask to be applied to svX_version_major in order to obtain +// the major version number. +// + +#define MAJOR_VERSION_MASK 0x0F + +// +// Bit-mapped values for svX_type fields. X = 1, 2 or 3. +// + +#define SV_TYPE_WORKSTATION 0x00000001 +#define SV_TYPE_SERVER 0x00000002 +#define SV_TYPE_SQLSERVER 0x00000004 +#define SV_TYPE_DOMAIN_CTRL 0x00000008 +#define SV_TYPE_DOMAIN_BAKCTRL 0x00000010 +#define SV_TYPE_TIME_SOURCE 0x00000020 +#define SV_TYPE_AFP 0x00000040 +#define SV_TYPE_NOVELL 0x00000080 +#define SV_TYPE_DOMAIN_MEMBER 0x00000100 +#define SV_TYPE_PRINTQ_SERVER 0x00000200 +#define SV_TYPE_DIALIN_SERVER 0x00000400 +#define SV_TYPE_XENIX_SERVER 0x00000800 +#define SV_TYPE_SERVER_UNIX SV_TYPE_XENIX_SERVER +#define SV_TYPE_NT 0x00001000 +#define SV_TYPE_WFW 0x00002000 +#define SV_TYPE_SERVER_MFPN 0x00004000 +#define SV_TYPE_SERVER_NT 0x00008000 +#define SV_TYPE_POTENTIAL_BROWSER 0x00010000 +#define SV_TYPE_BACKUP_BROWSER 0x00020000 +#define SV_TYPE_MASTER_BROWSER 0x00040000 +#define SV_TYPE_DOMAIN_MASTER 0x00080000 +#define SV_TYPE_SERVER_OSF 0x00100000 +#define SV_TYPE_SERVER_VMS 0x00200000 +#define SV_TYPE_WINDOWS 0x00400000 /* Windows95 and above */ +#define SV_TYPE_DFS 0x00800000 /* Root of a DFS tree */ +#define SV_TYPE_CLUSTER_NT 0x01000000 /* NT Cluster */ +#define SV_TYPE_TERMINALSERVER 0x02000000 /* Terminal Server(Hydra) */ +#define SV_TYPE_CLUSTER_VS_NT 0x04000000 /* NT Cluster Virtual Server Name */ +#define SV_TYPE_DCE 0x10000000 /* IBM DSS (Directory and Security Services) or equivalent */ +#define SV_TYPE_ALTERNATE_XPORT 0x20000000 /* return list for alternate transport */ +#define SV_TYPE_LOCAL_LIST_ONLY 0x40000000 /* Return local list only */ +#define SV_TYPE_DOMAIN_ENUM 0x80000000 +#define SV_TYPE_ALL 0xFFFFFFFF /* handy for NetServerEnum2 */ + +// +// Special value for sv102_disc that specifies infinite disconnect +// time. +// + +#define SV_NODISC (-1L) /* No autodisconnect timeout enforced */ + +// +// Values of svX_security field. X = 2 or 3. +// + +#define SV_USERSECURITY 1 +#define SV_SHARESECURITY 0 + +// +// Values of svX_hidden field. X = 2 or 3. +// + +#define SV_HIDDEN 1 +#define SV_VISIBLE 0 + +// +// Values for ParmError parameter to NetServerSetInfo. +// + +#define SV_PLATFORM_ID_PARMNUM 101 +#define SV_NAME_PARMNUM 102 +#define SV_VERSION_MAJOR_PARMNUM 103 +#define SV_VERSION_MINOR_PARMNUM 104 +#define SV_TYPE_PARMNUM 105 +#define SV_COMMENT_PARMNUM 5 +#define SV_USERS_PARMNUM 107 +#define SV_DISC_PARMNUM 10 +#define SV_HIDDEN_PARMNUM 16 +#define SV_ANNOUNCE_PARMNUM 17 +#define SV_ANNDELTA_PARMNUM 18 +#define SV_USERPATH_PARMNUM 112 + +#define SV_ULIST_MTIME_PARMNUM 401 +#define SV_GLIST_MTIME_PARMNUM 402 +#define SV_ALIST_MTIME_PARMNUM 403 +#define SV_ALERTS_PARMNUM 11 +#define SV_SECURITY_PARMNUM 405 +#define SV_NUMADMIN_PARMNUM 406 +#define SV_LANMASK_PARMNUM 407 +#define SV_GUESTACC_PARMNUM 408 +#define SV_CHDEVQ_PARMNUM 410 +#define SV_CHDEVJOBS_PARMNUM 411 +#define SV_CONNECTIONS_PARMNUM 412 +#define SV_SHARES_PARMNUM 413 +#define SV_OPENFILES_PARMNUM 414 +#define SV_SESSREQS_PARMNUM 417 +#define SV_ACTIVELOCKS_PARMNUM 419 +#define SV_NUMREQBUF_PARMNUM 420 +#define SV_NUMBIGBUF_PARMNUM 422 +#define SV_NUMFILETASKS_PARMNUM 423 +#define SV_ALERTSCHED_PARMNUM 37 +#define SV_ERRORALERT_PARMNUM 38 +#define SV_LOGONALERT_PARMNUM 39 +#define SV_ACCESSALERT_PARMNUM 40 +#define SV_DISKALERT_PARMNUM 41 +#define SV_NETIOALERT_PARMNUM 42 +#define SV_MAXAUDITSZ_PARMNUM 43 +#define SV_SRVHEURISTICS_PARMNUM 431 + +#define SV_SESSOPENS_PARMNUM 501 +#define SV_SESSVCS_PARMNUM 502 +#define SV_OPENSEARCH_PARMNUM 503 +#define SV_SIZREQBUF_PARMNUM 504 +#define SV_INITWORKITEMS_PARMNUM 505 +#define SV_MAXWORKITEMS_PARMNUM 506 +#define SV_RAWWORKITEMS_PARMNUM 507 +#define SV_IRPSTACKSIZE_PARMNUM 508 +#define SV_MAXRAWBUFLEN_PARMNUM 509 +#define SV_SESSUSERS_PARMNUM 510 +#define SV_SESSCONNS_PARMNUM 511 +#define SV_MAXNONPAGEDMEMORYUSAGE_PARMNUM 512 +#define SV_MAXPAGEDMEMORYUSAGE_PARMNUM 513 +#define SV_ENABLESOFTCOMPAT_PARMNUM 514 +#define SV_ENABLEFORCEDLOGOFF_PARMNUM 515 +#define SV_TIMESOURCE_PARMNUM 516 +#define SV_ACCEPTDOWNLEVELAPIS_PARMNUM 517 +#define SV_LMANNOUNCE_PARMNUM 518 +#define SV_DOMAIN_PARMNUM 519 +#define SV_MAXCOPYREADLEN_PARMNUM 520 +#define SV_MAXCOPYWRITELEN_PARMNUM 521 +#define SV_MINKEEPSEARCH_PARMNUM 522 +#define SV_MAXKEEPSEARCH_PARMNUM 523 +#define SV_MINKEEPCOMPLSEARCH_PARMNUM 524 +#define SV_MAXKEEPCOMPLSEARCH_PARMNUM 525 +#define SV_THREADCOUNTADD_PARMNUM 526 +#define SV_NUMBLOCKTHREADS_PARMNUM 527 +#define SV_SCAVTIMEOUT_PARMNUM 528 +#define SV_MINRCVQUEUE_PARMNUM 529 +#define SV_MINFREEWORKITEMS_PARMNUM 530 +#define SV_XACTMEMSIZE_PARMNUM 531 +#define SV_THREADPRIORITY_PARMNUM 532 +#define SV_MAXMPXCT_PARMNUM 533 +#define SV_OPLOCKBREAKWAIT_PARMNUM 534 +#define SV_OPLOCKBREAKRESPONSEWAIT_PARMNUM 535 +#define SV_ENABLEOPLOCKS_PARMNUM 536 +#define SV_ENABLEOPLOCKFORCECLOSE_PARMNUM 537 +#define SV_ENABLEFCBOPENS_PARMNUM 538 +#define SV_ENABLERAW_PARMNUM 539 +#define SV_ENABLESHAREDNETDRIVES_PARMNUM 540 +#define SV_MINFREECONNECTIONS_PARMNUM 541 +#define SV_MAXFREECONNECTIONS_PARMNUM 542 +#define SV_INITSESSTABLE_PARMNUM 543 +#define SV_INITCONNTABLE_PARMNUM 544 +#define SV_INITFILETABLE_PARMNUM 545 +#define SV_INITSEARCHTABLE_PARMNUM 546 +#define SV_ALERTSCHEDULE_PARMNUM 547 +#define SV_ERRORTHRESHOLD_PARMNUM 548 +#define SV_NETWORKERRORTHRESHOLD_PARMNUM 549 +#define SV_DISKSPACETHRESHOLD_PARMNUM 550 +#define SV_MAXLINKDELAY_PARMNUM 552 +#define SV_MINLINKTHROUGHPUT_PARMNUM 553 +#define SV_LINKINFOVALIDTIME_PARMNUM 554 +#define SV_SCAVQOSINFOUPDATETIME_PARMNUM 555 +#define SV_MAXWORKITEMIDLETIME_PARMNUM 556 +#define SV_MAXRAWWORKITEMS_PARMNUM 557 +#define SV_PRODUCTTYPE_PARMNUM 560 +#define SV_SERVERSIZE_PARMNUM 561 +#define SV_CONNECTIONLESSAUTODISC_PARMNUM 562 +#define SV_SHARINGVIOLATIONRETRIES_PARMNUM 563 +#define SV_SHARINGVIOLATIONDELAY_PARMNUM 564 +#define SV_MAXGLOBALOPENSEARCH_PARMNUM 565 +#define SV_REMOVEDUPLICATESEARCHES_PARMNUM 566 +#define SV_LOCKVIOLATIONRETRIES_PARMNUM 567 +#define SV_LOCKVIOLATIONOFFSET_PARMNUM 568 +#define SV_LOCKVIOLATIONDELAY_PARMNUM 569 +#define SV_MDLREADSWITCHOVER_PARMNUM 570 +#define SV_CACHEDOPENLIMIT_PARMNUM 571 +#define SV_CRITICALTHREADS_PARMNUM 572 +#define SV_RESTRICTNULLSESSACCESS_PARMNUM 573 +#define SV_ENABLEWFW311DIRECTIPX_PARMNUM 574 +#define SV_OTHERQUEUEAFFINITY_PARMNUM 575 +#define SV_QUEUESAMPLESECS_PARMNUM 576 +#define SV_BALANCECOUNT_PARMNUM 577 +#define SV_PREFERREDAFFINITY_PARMNUM 578 +#define SV_MAXFREERFCBS_PARMNUM 579 +#define SV_MAXFREEMFCBS_PARMNUM 580 +#define SV_MAXFREELFCBS_PARMNUM 581 +#define SV_MAXFREEPAGEDPOOLCHUNKS_PARMNUM 582 +#define SV_MINPAGEDPOOLCHUNKSIZE_PARMNUM 583 +#define SV_MAXPAGEDPOOLCHUNKSIZE_PARMNUM 584 +#define SV_SENDSFROMPREFERREDPROCESSOR_PARMNUM 585 +#define SV_MAXTHREADSPERQUEUE_PARMNUM 586 +#define SV_CACHEDDIRECTORYLIMIT_PARMNUM 587 +#define SV_MAXCOPYLENGTH_PARMNUM 588 +#define SV_ENABLECOMPRESSION_PARMNUM 590 +#define SV_AUTOSHAREWKS_PARMNUM 591 +#define SV_AUTOSHARESERVER_PARMNUM 592 +#define SV_ENABLESECURITYSIGNATURE_PARMNUM 593 +#define SV_REQUIRESECURITYSIGNATURE_PARMNUM 594 +#define SV_MINCLIENTBUFFERSIZE_PARMNUM 595 +#define SV_CONNECTIONNOSESSIONSTIMEOUT_PARMNUM 596 +#define SV_IDLETHREADTIMEOUT_PARMNUM 597 +#define SV_ENABLEW9XSECURITYSIGNATURE_PARMNUM 598 +#define SV_ENFORCEKERBEROSREAUTHENTICATION_PARMNUM 599 +#define SV_DISABLEDOS_PARMNUM 600 +#define SV_LOWDISKSPACEMINIMUM_PARMNUM 601 +#define SV_DISABLESTRICTNAMECHECKING_PARMNUM 602 +#define SV_ENABLEAUTHENTICATEUSERSHARING_PARMNUM 603 + +// +// Single-field infolevels for NetServerSetInfo. +// + +#define SV_COMMENT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_COMMENT_PARMNUM) +#define SV_USERS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_USERS_PARMNUM) +#define SV_DISC_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_DISC_PARMNUM) +#define SV_HIDDEN_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_HIDDEN_PARMNUM) +#define SV_ANNOUNCE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ANNOUNCE_PARMNUM) +#define SV_ANNDELTA_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ANNDELTA_PARMNUM) +#define SV_SESSOPENS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_SESSOPENS_PARMNUM) +#define SV_SESSVCS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_SESSVCS_PARMNUM) +#define SV_OPENSEARCH_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_OPENSEARCH_PARMNUM) +#define SV_MAXWORKITEMS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXWORKITEMS_PARMNUM) +#define SV_MAXRAWBUFLEN_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXRAWBUFLEN_PARMNUM) +#define SV_SESSUSERS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_SESSUSERS_PARMNUM) +#define SV_SESSCONNS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_SESSCONNS_PARMNUM) +#define SV_MAXNONPAGEDMEMORYUSAGE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXNONPAGEDMEMORYUSAGE_PARMNUM) +#define SV_MAXPAGEDMEMORYUSAGE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXPAGEDMEMORYUSAGE_PARMNUM) +#define SV_ENABLESOFTCOMPAT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLESOFTCOMPAT_PARMNUM) +#define SV_ENABLEFORCEDLOGOFF_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLEFORCEDLOGOFF_PARMNUM) +#define SV_TIMESOURCE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_TIMESOURCE_PARMNUM) +#define SV_LMANNOUNCE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_LMANNOUNCE_PARMNUM) +#define SV_MAXCOPYREADLEN_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXCOPYREADLEN_PARMNUM) +#define SV_MAXCOPYWRITELEN_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXCOPYWRITELEN_PARMNUM) +#define SV_MINKEEPSEARCH_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MINKEEPSEARCH_PARMNUM) +#define SV_MAXKEEPSEARCH_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXKEEPSEARCH_PARMNUM) +#define SV_MINKEEPCOMPLSEARCH_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MINKEEPCOMPLSEARCH_PARMNUM) +#define SV_MAXKEEPCOMPLSEARCH_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXKEEPCOMPLSEARCH_PARMNUM) +#define SV_SCAVTIMEOUT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_SCAVTIMEOUT_PARMNUM) +#define SV_MINRCVQUEUE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MINRCVQUEUE_PARMNUM) +#define SV_MINFREEWORKITEMS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MINFREEWORKITEMS_PARMNUM) +#define SV_MAXMPXCT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXMPXCT_PARMNUM) +#define SV_OPLOCKBREAKWAIT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_OPLOCKBREAKWAIT_PARMNUM) +#define SV_OPLOCKBREAKRESPONSEWAIT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_OPLOCKBREAKRESPONSEWAIT_PARMNUM) +#define SV_ENABLEOPLOCKS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLEOPLOCKS_PARMNUM) +#define SV_ENABLEOPLOCKFORCECLOSE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLEOPLOCKFORCECLOSE_PARMNUM) +#define SV_ENABLEFCBOPENS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLEFCBOPENS_PARMNUM) +#define SV_ENABLERAW_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLERAW_PARMNUM) +#define SV_ENABLESHAREDNETDRIVES_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLESHAREDNETDRIVES_PARMNUM) +#define SV_MINFREECONNECTIONS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MINFREECONNECTIONS_PARMNUM) +#define SV_MAXFREECONNECTIONS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXFREECONNECTIONS_PARMNUM) +#define SV_INITSESSTABLE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_INITSESSTABLE_PARMNUM) +#define SV_INITCONNTABLE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_INITCONNTABLE_PARMNUM) +#define SV_INITFILETABLE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_INITFILETABLE_PARMNUM) +#define SV_INITSEARCHTABLE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_INITSEARCHTABLE_PARMNUM) +#define SV_ALERTSCHEDULE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ALERTSCHEDULE_PARMNUM) +#define SV_ERRORTHRESHOLD_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ERRORTHRESHOLD_PARMNUM) +#define SV_NETWORKERRORTHRESHOLD_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_NETWORKERRORTHRESHOLD_PARMNUM) +#define SV_DISKSPACETHRESHOLD_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_DISKSPACETHRESHOLD_PARMNUM) +#define SV_MAXLINKDELAY_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXLINKDELAY_PARMNUM) +#define SV_MINLINKTHROUGHPUT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MINLINKTHROUGHPUT_PARMNUM) +#define SV_LINKINFOVALIDTIME_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_LINKINFOVALIDTIME_PARMNUM) +#define SV_SCAVQOSINFOUPDATETIME_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_SCAVQOSINFOUPDATETIME_PARMNUM) +#define SV_MAXWORKITEMIDLETIME_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXWORKITEMIDLETIME_PARMNUM) +#define SV_MAXRAWWORKITEMS_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXRAWWORKITEMS_PARMNUM) +#define SV_PRODUCTTYPE_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_PRODUCTTYPE_PARMNUM) +#define SV_SERVERSIZE_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_SERVERSIZE_PARMNUM) +#define SV_CONNECTIONLESSAUTODISC_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_CONNECTIONLESSAUTODISC_PARMNUM) +#define SV_SHARINGVIOLATIONRETRIES_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_SHARINGVIOLATIONRETRIES_PARMNUM) +#define SV_SHARINGVIOLATIONDELAY_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_SHARINGVIOLATIONDELAY_PARMNUM) +#define SV_MAXGLOBALOPENSEARCH_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXGLOBALOPENSEARCH_PARMNUM) +#define SV_REMOVEDUPLICATESEARCHES_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_REMOVEDUPLICATESEARCHES_PARMNUM) +#define SV_LOCKVIOLATIONRETRIES_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_LOCKVIOLATIONRETRIES_PARMNUM) +#define SV_LOCKVIOLATIONOFFSET_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_LOCKVIOLATIONOFFSET_PARMNUM) +#define SV_LOCKVIOLATIONDELAY_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_LOCKVIOLATIONDELAY_PARMNUM) +#define SV_MDLREADSWITCHOVER_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MDLREADSWITCHOVER_PARMNUM) +#define SV_CACHEDOPENLIMIT_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_CACHEDOPENLIMIT_PARMNUM) +#define SV_CRITICALTHREADS_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_CRITICALTHREADS_PARMNUM) +#define SV_RESTRICTNULLSESSACCESS_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_RESTRICTNULLSESSACCESS_PARMNUM) +#define SV_ENABLEWFW311DIRECTIPX_INFOLOEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLEWFW311DIRECTIPX_PARMNUM) +#define SV_OTHERQUEUEAFFINITY_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_OTHERQUEUEAFFINITY_PARMNUM) +#define SV_QUEUESAMPLESECS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_QUEUESAMPLESECS_PARMNUM) +#define SV_BALANCECOUNT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_BALANCECOUNT_PARMNUM) +#define SV_PREFERREDAFFINITY_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_PREFERREDAFFINITY_PARMNUM) +#define SV_MAXFREERFCBS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXFREERFCBS_PARMNUM) +#define SV_MAXFREEMFCBS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXFREEMFCBS_PARMNUM) +#define SV_MAXFREELFCBS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXFREELFCBS_PARMNUM) +#define SV_MAXFREEPAGEDPOOLCHUNKS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXFREEPAGEDPOOLCHUNKS_PARMNUM) +#define SV_MINPAGEDPOOLCHUNKSIZE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MINPAGEDPOOLCHUNKSIZE_PARMNUM) +#define SV_MAXPAGEDPOOLCHUNKSIZE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXPAGEDPOOLCHUNKSIZE_PARMNUM) +#define SV_SENDSFROMPREFERREDPROCESSOR_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_SENDSFROMPREFERREDPROCESSOR_PARMNUM) +#define SV_MAXTHREADSPERQUEUE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXTHREADSPERQUEUE_PARMNUM) +#define SV_CACHEDDIRECTORYLIMIT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_CACHEDDIRECTORYLIMIT_PARMNUM) +#define SV_MAXCOPYLENGTH_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MAXCOPYLENGTH_PARMNUM) +#define SV_ENABLECOMPRESSION_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLECOMPRESSION_PARMNUM) +#define SV_AUTOSHAREWKS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_AUTOSHAREWKS_PARMNUM) +#define SV_AUTOSHARESERVER_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_AUTOSHARESERVER_PARMNUM) +#define SV_ENABLESECURITYSIGNATURE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLESECURITYSIGNATURE_PARMNUM) +#define SV_REQUIRESECURITYSIGNATURE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_REQUIRESECURITYSIGNATURE_PARMNUM) +#define SV_MINCLIENTBUFFERSIZE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_MINCLIENTBUFFERSIZE_PARMNUM) +#define SV_CONNECTIONNOSESSIONSTIMEOUT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_CONNECTIONNOSESSIONSTIMEOUT_PARMNUM) +#define SV_IDLETHREADTIMEOUT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_IDLETHREADTIMEOUT_PARMNUM) +#define SV_ENABLEW9XSECURITYSIGNATURE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLEW9XSECURITYSIGNATURE_PARMNUM) +#define SV_ENFORCEKERBEROSREAUTHENTICATION_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENFORCEKERBEROSREAUTHENTICATION_PARMNUM) +#define SV_DISABLEDOS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_DISABLEDOS_PARMNUM) +#define SV_LOWDISKSPACEMINIMUM_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_LOWDISKSPACEMINIMUM_PARMNUM) +#define SV_DISABLESTRICTNAMECHECKING_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_DISABLESTRICTNAMECHECKING_PARMNUM) +#define SV_ENABLEAUTHENTICATEUSERSHARING_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SV_ENABLEAUTHENTICATEUSERSHARING_PARMNUM) + +#define SVI1_NUM_ELEMENTS 5 +#define SVI2_NUM_ELEMENTS 40 +#define SVI3_NUM_ELEMENTS 44 + +// +// Maxmimum length for command string to NetServerAdminCommand. +// + +#define SV_MAX_CMD_LEN PATHLEN + +// +// Masks describing AUTOPROFILE parameters +// + +#define SW_AUTOPROF_LOAD_MASK 0x1 +#define SW_AUTOPROF_SAVE_MASK 0x2 + +// +// Max size of svX_srvheuristics. +// + +#define SV_MAX_SRV_HEUR_LEN 32 // Max heuristics info string length. + +// +// Equate for use with sv102_licenses. +// + +#define SV_USERS_PER_LICENSE 5 + +// +// Equate for use with svti2_flags in NetServerTransportAddEx. +// + +#define SVTI2_REMAP_PIPE_NAMES 0x02 +#define SVTI2_SCOPED_NAME 0x04 + + +// new Win8 flags for clustering +// the values should be changed once new sscore functionality is impelmented + +// SVTI2_CLUSTER_NAME means that scope belongs to clustering +#define SVTI2_CLUSTER_NAME 0x08 + +// SVTI2_CLUSTER_DNN_NAME means that scope belongs to scale-out clustering +#define SVTI2_CLUSTER_DNN_NAME 0x10 + +// +// Means that transport address field passed with the server transport info +// struct contains a unicode string. +// +#define SVTI2_UNICODE_TRANSPORT_ADDRESS 0x20 + +// +// Reserved for Internal Use +// +#define SVTI2_RESERVED1 0x1000 +#define SVTI2_RESERVED2 0x2000 +#define SVTI2_RESERVED3 0x4000 + +#define SVTI2_VALID_FLAGS ( SVTI2_REMAP_PIPE_NAMES | \ + SVTI2_SCOPED_NAME | \ + SVTI2_CLUSTER_NAME | \ + SVTI2_CLUSTER_DNN_NAME | \ + SVTI2_UNICODE_TRANSPORT_ADDRESS ) +// +// Server capability information +// + +#define SRV_SUPPORT_HASH_GENERATION 0x0001 +#define SRV_HASH_GENERATION_ACTIVE 0x0002 + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _LMSERVER_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMShare.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMShare.h new file mode 100644 index 0000000000000000000000000000000000000000..5082730963f95be75d0a8ab2c7348434bc21ca10 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMShare.h @@ -0,0 +1,654 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1990-1999 Microsoft Corporation + +Module Name: + + lmshare.h + +Abstract: + + This module defines the API function prototypes and data structures + for the following groups of NT API functions: + NetShare + NetSession + NetFile + NetConnection + +Environment: + + User Mode - Win32 + +Notes: + + You must include and before this file. + +--*/ + +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +// +// SHARE API +// + +#ifndef _LMSHARE_ +#define _LMSHARE_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +// +// Function Prototypes - Share +// + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetShareAdd( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 2, _In_reads_bytes_(sizeof(SHARE_INFO_2)) ) + _When_( level == 502, _In_reads_bytes_(sizeof(SHARE_INFO_502)) ) + _When_( level == 503, _In_reads_bytes_(sizeof(SHARE_INFO_503)) ) + LPBYTE buf, + _Out_opt_ LPDWORD parm_err + ); + +_Check_return_ +_Success_( return == 0 || return == ERROR_MORE_DATA ) +NET_API_STATUS NET_API_FUNCTION +NetShareEnum( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 0,_Outptr_result_bytebuffer_(*entriesread * sizeof(SHARE_INFO_0)) ) + _When_( level == 1, _Outptr_result_bytebuffer_(*entriesread * sizeof(SHARE_INFO_1)) ) + _When_( level == 2, _Outptr_result_bytebuffer_(*entriesread * sizeof(SHARE_INFO_2)) ) + _When_( level == 502, _Outptr_result_bytebuffer_(*entriesread * sizeof(SHARE_INFO_502)) ) + _When_( level == 503, _Outptr_result_bytebuffer_(*entriesread * sizeof(SHARE_INFO_503)) ) + LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resume_handle + ); + +_Check_return_ +_Success_( return == 0 || return == ERROR_MORE_DATA ) +NET_API_STATUS NET_API_FUNCTION +NetShareEnumSticky( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 0, _Outptr_result_bytebuffer_(*entriesread * sizeof(SHARE_INFO_0)) ) + _When_( level == 1, _Outptr_result_bytebuffer_(*entriesread * sizeof(SHARE_INFO_1)) ) + _When_( level == 2, _Outptr_result_bytebuffer_(*entriesread * sizeof(SHARE_INFO_2)) ) + _When_( level == 502, _Outptr_result_bytebuffer_(*entriesread * sizeof(SHARE_INFO_502)) ) + _When_( level == 503, _Outptr_result_bytebuffer_(*entriesread * sizeof(SHARE_INFO_503)) ) + LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resume_handle + ); + +_Check_return_ +_Success_( return == 0 || return == ERROR_MORE_DATA ) +NET_API_STATUS NET_API_FUNCTION +NetShareGetInfo( + _In_opt_ LMSTR servername, + _In_ LMSTR netname, + _In_ DWORD level, + _When_( level == 0, _Outptr_result_bytebuffer_(sizeof(SHARE_INFO_0)) ) + _When_( level == 1, _Outptr_result_bytebuffer_(sizeof(SHARE_INFO_1)) ) + _When_( level == 2, _Outptr_result_bytebuffer_(sizeof(SHARE_INFO_2)) ) + _When_( level == 501, _Outptr_result_bytebuffer_(sizeof(SHARE_INFO_501)) ) + _When_( level == 502, _Outptr_result_bytebuffer_(sizeof(SHARE_INFO_502)) ) + _When_( level == 503, _Outptr_result_bytebuffer_(sizeof(SHARE_INFO_503)) ) + _When_( level == 1005, _Outptr_result_bytebuffer_(sizeof(SHARE_INFO_1005)) ) + LPBYTE *bufptr + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetShareSetInfo( + _In_opt_ LMSTR servername, + _In_ LMSTR netname, + _In_ DWORD level, + _When_( level == 1, _In_reads_bytes_(sizeof(SHARE_INFO_1)) ) + _When_( level == 2, _In_reads_bytes_(sizeof(SHARE_INFO_2)) ) + _When_( level == 502, _In_reads_bytes_(sizeof(SHARE_INFO_502)) ) + _When_( level == 503, _In_reads_bytes_(sizeof(SHARE_INFO_503)) ) + _When_( level == 1004, _In_reads_bytes_(sizeof(SHARE_INFO_1004)) ) + _When_( level == 1005, _In_reads_bytes_(sizeof(SHARE_INFO_1005)) ) + _When_( level == 1006, _In_reads_bytes_(sizeof(SHARE_INFO_1006)) ) + _When_( level == 1501, _In_reads_bytes_(sizeof(SHARE_INFO_1501)) ) + LPBYTE buf, + _Out_opt_ LPDWORD parm_err + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetShareDel( + _In_opt_ LMSTR servername, + _In_ LMSTR netname, + _Reserved_ DWORD reserved + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetShareDelSticky( + _In_opt_ LMSTR servername, + _In_ LMSTR netname, + _Reserved_ DWORD reserved + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetShareCheck( + _In_opt_ LMSTR servername, + _In_ LMSTR device, + _Out_ LPDWORD type + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetShareDelEx( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 0, _In_reads_bytes_(sizeof(SHARE_INFO_0)) ) + _When_( level == 1, _In_reads_bytes_(sizeof(SHARE_INFO_1)) ) + _When_( level == 2, _In_reads_bytes_(sizeof(SHARE_INFO_2)) ) + _When_( level == 502, _In_reads_bytes_(sizeof(SHARE_INFO_502)) ) + _When_( level == 503, _In_reads_bytes_(sizeof(SHARE_INFO_503)) ) + LPBYTE buf + ); + +// +// Data Structures - Share +// + +typedef struct _SHARE_INFO_0 { + LMSTR shi0_netname; +} SHARE_INFO_0, *PSHARE_INFO_0, *LPSHARE_INFO_0; + +typedef struct _SHARE_INFO_1 { + LMSTR shi1_netname; + DWORD shi1_type; + LMSTR shi1_remark; +} SHARE_INFO_1, *PSHARE_INFO_1, *LPSHARE_INFO_1; + +typedef struct _SHARE_INFO_2 { + LMSTR shi2_netname; + DWORD shi2_type; + LMSTR shi2_remark; + DWORD shi2_permissions; + DWORD shi2_max_uses; + DWORD shi2_current_uses; + LMSTR shi2_path; + LMSTR shi2_passwd; +} SHARE_INFO_2, *PSHARE_INFO_2, *LPSHARE_INFO_2; + +typedef struct _SHARE_INFO_501 { + LMSTR shi501_netname; + DWORD shi501_type; + LMSTR shi501_remark; + DWORD shi501_flags; +} SHARE_INFO_501, *PSHARE_INFO_501, *LPSHARE_INFO_501; + +typedef struct _SHARE_INFO_502 { + LMSTR shi502_netname; + DWORD shi502_type; + LMSTR shi502_remark; + DWORD shi502_permissions; + DWORD shi502_max_uses; + DWORD shi502_current_uses; + LMSTR shi502_path; + LMSTR shi502_passwd; + DWORD shi502_reserved; + PSECURITY_DESCRIPTOR shi502_security_descriptor; +} SHARE_INFO_502, *PSHARE_INFO_502, *LPSHARE_INFO_502; + +typedef struct _SHARE_INFO_503 { + LMSTR shi503_netname; + DWORD shi503_type; + LMSTR shi503_remark; + DWORD shi503_permissions; + DWORD shi503_max_uses; + DWORD shi503_current_uses; + LMSTR shi503_path; + LMSTR shi503_passwd; + LMSTR shi503_servername; + DWORD shi503_reserved; + PSECURITY_DESCRIPTOR shi503_security_descriptor; +} SHARE_INFO_503, *PSHARE_INFO_503, *LPSHARE_INFO_503; + +typedef struct _SHARE_INFO_1004 { + LMSTR shi1004_remark; +} SHARE_INFO_1004, *PSHARE_INFO_1004, *LPSHARE_INFO_1004; + +typedef struct _SHARE_INFO_1005 { + DWORD shi1005_flags; +} SHARE_INFO_1005, *PSHARE_INFO_1005, *LPSHARE_INFO_1005; + +typedef struct _SHARE_INFO_1006 { + DWORD shi1006_max_uses; +} SHARE_INFO_1006, *PSHARE_INFO_1006, *LPSHARE_INFO_1006; + +typedef struct _SHARE_INFO_1501 { + DWORD shi1501_reserved; + PSECURITY_DESCRIPTOR shi1501_security_descriptor; +} SHARE_INFO_1501, *PSHARE_INFO_1501, *LPSHARE_INFO_1501; + +typedef struct _SHARE_INFO_1503 { + GUID shi1503_sharefilter; +} SHARE_INFO_1503, *PSHARE_INFO_1503, *LPSHARE_INFO_1503; + +// +// NetShareAlias functions +// +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetServerAliasAdd( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _In_reads_bytes_(sizeof(SERVER_ALIAS_INFO_0)) LPBYTE buf + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetServerAliasDel( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 0, _In_reads_bytes_(sizeof(SERVER_ALIAS_INFO_0_CONTAINER)) ) + LPBYTE buf + ); + +_Check_return_ +_Success_( return == 0 || return == ERROR_MORE_DATA ) +NET_API_STATUS NET_API_FUNCTION +NetServerAliasEnum( + _In_opt_ LMSTR servername, + _In_ DWORD level, + _When_( level == 0, _Outptr_result_bytebuffer_(*entriesread * sizeof(SERVER_ALIAS_INFO_0_CONTAINER)) ) + LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resumehandle + ); + +typedef struct _SERVER_ALIAS_INFO_0 { + LMSTR srvai0_alias; + LMSTR srvai0_target; + BOOLEAN srvai0_default; + ULONG srvai0_reserved; +} SERVER_ALIAS_INFO_0, *PSERVER_ALIAS_INFO_0, *LPSERVER_ALIAS_INFO_0; + +// +// Special Values and Constants - Share +// + +// +// Values for parm_err parameter. +// + +#define SHARE_NETNAME_PARMNUM 1 +#define SHARE_TYPE_PARMNUM 3 +#define SHARE_REMARK_PARMNUM 4 +#define SHARE_PERMISSIONS_PARMNUM 5 +#define SHARE_MAX_USES_PARMNUM 6 +#define SHARE_CURRENT_USES_PARMNUM 7 +#define SHARE_PATH_PARMNUM 8 +#define SHARE_PASSWD_PARMNUM 9 +#define SHARE_FILE_SD_PARMNUM 501 +#define SHARE_SERVER_PARMNUM 503 +#define SHARE_QOS_POLICY_PARMNUM 504 + +// +// Single-field infolevels for NetShareSetInfo. +// + +#define SHARE_REMARK_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SHARE_REMARK_PARMNUM) +#define SHARE_MAX_USES_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SHARE_MAX_USES_PARMNUM) +#define SHARE_FILE_SD_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + SHARE_FILE_SD_PARMNUM) + +#define SHI1_NUM_ELEMENTS 4 +#define SHI2_NUM_ELEMENTS 10 + +// +// Share types (shi1_type and shi2_type fields). +// + +#define STYPE_DISKTREE 0 +#define STYPE_PRINTQ 1 +#define STYPE_DEVICE 2 +#define STYPE_IPC 3 + +#define STYPE_MASK 0x000000FF // AND with shi_type to + +#define STYPE_RESERVED1 0x01000000 // Reserved for internal processing +#define STYPE_RESERVED2 0x02000000 +#define STYPE_RESERVED3 0x04000000 +#define STYPE_RESERVED4 0x08000000 +#define STYPE_RESERVED5 0x00100000 +#define STYPE_RESERVED_ALL 0x3FFFFF00 + +#define STYPE_TEMPORARY 0x40000000 +#define STYPE_SPECIAL 0x80000000 + +#define SHI_USES_UNLIMITED (DWORD)-1 + +// +// Flags values for the 501 and 1005 levels +// +#define SHI1005_FLAGS_DFS 0x0001 // Share is in the DFS +#define SHI1005_FLAGS_DFS_ROOT 0x0002 // Share is root of DFS + +#define CSC_MASK_EXT 0x2030 // Used to mask off the following states (including SHI1005_FLAGS_ENABLE_HASH) +#define CSC_MASK 0x0030 // Used to mask off the following states + +#define CSC_CACHE_MANUAL_REINT 0x0000 // No automatic file by file reintegration +#define CSC_CACHE_AUTO_REINT 0x0010 // File by file reintegration is OK +#define CSC_CACHE_VDO 0x0020 // no need to flow opens +#define CSC_CACHE_NONE 0x0030 // no CSC for this share + +#define SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS 0x000100 // Used to disallow read-deny read behavior +#define SHI1005_FLAGS_FORCE_SHARED_DELETE 0x000200 // Used to allows force shared delete +#define SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING 0x000400 // The clients may cache the namespace +#define SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM 0x000800 // Trim visible files in enumerations based on access +#define SHI1005_FLAGS_FORCE_LEVELII_OPLOCK 0x001000 // Only issue level2 oplock +#define SHI1005_FLAGS_ENABLE_HASH 0x002000 // Enable hash generation and retrieval requests from share +#define SHI1005_FLAGS_ENABLE_CA 0x004000 // Enable continuously available +#define SHI1005_FLAGS_ENCRYPT_DATA 0x008000 // Require encryption +#define SHI1005_FLAGS_RESERVED 0x010000 // Reserved for internal use +#define SHI1005_FLAGS_DISABLE_CLIENT_BUFFERING 0x020000 // Used to set the allowed client buffering +#define SHI1005_FLAGS_IDENTITY_REMOTING 0x040000 // Allows auth tunneling +#define SHI1005_FLAGS_CLUSTER_MANAGED 0x080000 // Used to prevent share from being modified by users +#define SHI1005_FLAGS_COMPRESS_DATA 0x100000 // Request compression +#define SHI1005_FLAGS_ISOLATED_TRANSPORT 0x200000 // Request asymmetric connections for this share +#define SHI1005_FLAGS_DISABLE_DIRECTORY_HANDLE_LEASING 0x400000 // Used to disable handle caching for directories + +// +// The subset of 1005 infolevel flags that can be set via the API +// + +#define SHI1005_VALID_FLAGS_SET (CSC_MASK| \ + SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS| \ + SHI1005_FLAGS_FORCE_SHARED_DELETE| \ + SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING| \ + SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM| \ + SHI1005_FLAGS_FORCE_LEVELII_OPLOCK| \ + SHI1005_FLAGS_ENABLE_HASH| \ + SHI1005_FLAGS_ENABLE_CA | \ + SHI1005_FLAGS_ENCRYPT_DATA | \ + SHI1005_FLAGS_DISABLE_CLIENT_BUFFERING | \ + SHI1005_FLAGS_IDENTITY_REMOTING | \ + SHI1005_FLAGS_CLUSTER_MANAGED | \ + SHI1005_FLAGS_RESERVED | \ + SHI1005_FLAGS_COMPRESS_DATA | \ + SHI1005_FLAGS_ISOLATED_TRANSPORT | \ + SHI1005_FLAGS_DISABLE_DIRECTORY_HANDLE_LEASING) + +#endif // _LMSHARE_ + +// +// SESSION API +// + +#ifndef _LMSESSION_ +#define _LMSESSION_ + +// +// Function Prototypes Session +// +_Check_return_ +_Success_( return == 0 || return == ERROR_MORE_DATA ) +NET_API_STATUS NET_API_FUNCTION +NetSessionEnum( + _In_opt_ LMSTR servername, + _In_opt_ LMSTR UncClientName, + _In_opt_ LMSTR username, + _In_ DWORD level, + _When_( level == 0, _Outptr_result_bytebuffer_(*entriesread * sizeof(SESSION_INFO_0)) ) + _When_( level == 1, _Outptr_result_bytebuffer_(*entriesread * sizeof(SESSION_INFO_1)) ) + _When_( level == 2, _Outptr_result_bytebuffer_(*entriesread * sizeof(SESSION_INFO_2)) ) + _When_( level == 10, _Outptr_result_bytebuffer_(*entriesread * sizeof(SESSION_INFO_10)) ) + _When_( level == 502, _Outptr_result_bytebuffer_(*entriesread * sizeof(SESSION_INFO_502)) ) + LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resume_handle + ); + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetSessionDel( + _In_opt_ LMSTR servername, + _In_opt_ LMSTR UncClientName, + _In_opt_ LMSTR username + ); + +_Check_return_ +_Success_( return == 0 ) +NET_API_STATUS NET_API_FUNCTION +NetSessionGetInfo( + _In_opt_ LMSTR servername, + _In_ LMSTR UncClientName, + _In_ LMSTR username, + _In_ DWORD level, + _When_( level == 0, _Outptr_result_bytebuffer_(sizeof(SESSION_INFO_0)) ) + _When_( level == 1, _Outptr_result_bytebuffer_(sizeof(SESSION_INFO_1)) ) + _When_( level == 2, _Outptr_result_bytebuffer_(sizeof(SESSION_INFO_2)) ) + _When_( level == 10, _Outptr_result_bytebuffer_(sizeof(SESSION_INFO_10)) ) + LPBYTE *bufptr + ); + +// +// Data Structures - Session +// + +typedef struct _SESSION_INFO_0 { + LMSTR sesi0_cname; // client name (no backslashes) +} SESSION_INFO_0, *PSESSION_INFO_0, *LPSESSION_INFO_0; + +typedef struct _SESSION_INFO_1 { + LMSTR sesi1_cname; // client name (no backslashes) + LMSTR sesi1_username; + DWORD sesi1_num_opens; + DWORD sesi1_time; + DWORD sesi1_idle_time; + DWORD sesi1_user_flags; +} SESSION_INFO_1, *PSESSION_INFO_1, *LPSESSION_INFO_1; + +typedef struct _SESSION_INFO_2 { + LMSTR sesi2_cname; // client name (no backslashes) + LMSTR sesi2_username; + DWORD sesi2_num_opens; + DWORD sesi2_time; + DWORD sesi2_idle_time; + DWORD sesi2_user_flags; + LMSTR sesi2_cltype_name; +} SESSION_INFO_2, *PSESSION_INFO_2, *LPSESSION_INFO_2; + +typedef struct _SESSION_INFO_10 { + LMSTR sesi10_cname; // client name (no backslashes) + LMSTR sesi10_username; + DWORD sesi10_time; + DWORD sesi10_idle_time; +} SESSION_INFO_10, *PSESSION_INFO_10, *LPSESSION_INFO_10; + +typedef struct _SESSION_INFO_502 { + LMSTR sesi502_cname; // client name (no backslashes) + LMSTR sesi502_username; + DWORD sesi502_num_opens; + DWORD sesi502_time; + DWORD sesi502_idle_time; + DWORD sesi502_user_flags; + LMSTR sesi502_cltype_name; + LMSTR sesi502_transport; +} SESSION_INFO_502, *PSESSION_INFO_502, *LPSESSION_INFO_502; + +// +// Special Values and Constants - Session +// + +// +// Bits defined in sesi1_user_flags. +// + +#define SESS_GUEST 0x00000001 // session is logged on as a guest +#define SESS_NOENCRYPTION 0x00000002 // session is not using encryption + +#define SESI1_NUM_ELEMENTS 8 +#define SESI2_NUM_ELEMENTS 9 + +#endif // _LMSESSION_ + +// +// CONNECTION API +// + +#ifndef _LMCONNECTION_ + +#define _LMCONNECTION_ + +// +// Function Prototypes - CONNECTION +// + +_Check_return_ +_Success_( return == 0 || return == ERROR_MORE_DATA ) +NET_API_STATUS NET_API_FUNCTION +NetConnectionEnum( + _In_opt_ LMSTR servername, + _In_ LMSTR qualifier, + _In_ DWORD level, + _When_( level == 0, _Outptr_result_bytebuffer_(*entriesread * sizeof(CONNECTION_INFO_0)) ) + _When_( level == 1, _Outptr_result_bytebuffer_(*entriesread * sizeof(CONNECTION_INFO_1)) ) + LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resume_handle + ); + +// +// Data Structures - CONNECTION +// + +typedef struct _CONNECTION_INFO_0 { + DWORD coni0_id; +} CONNECTION_INFO_0, *PCONNECTION_INFO_0, *LPCONNECTION_INFO_0; + +typedef struct _CONNECTION_INFO_1 { + DWORD coni1_id; + DWORD coni1_type; + DWORD coni1_num_opens; + DWORD coni1_num_users; + DWORD coni1_time; + LMSTR coni1_username; + LMSTR coni1_netname; +} CONNECTION_INFO_1, *PCONNECTION_INFO_1, *LPCONNECTION_INFO_1; + +#endif // _LMCONNECTION_ + +// +// FILE API +// + +#ifndef _LMFILE_ +#define _LMFILE_ + +// +// Function Prototypes - FILE +// + +_Check_return_ +NET_API_STATUS NET_API_FUNCTION +NetFileClose( + _In_opt_ LMSTR servername, + _In_ DWORD fileid + ); + +_Check_return_ +_Success_( return == 0 || return == ERROR_MORE_DATA ) +NET_API_STATUS NET_API_FUNCTION +NetFileEnum( + _In_opt_ LMSTR servername, + _In_opt_ LMSTR basepath, + _In_opt_ LMSTR username, + _In_ DWORD level, + _When_( level == 2, _Outptr_result_bytebuffer_(*entriesread * sizeof(FILE_INFO_2)) ) + _When_( level == 3, _Outptr_result_bytebuffer_(*entriesread * sizeof(FILE_INFO_3)) ) + LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ PDWORD_PTR resume_handle + ); + +_Check_return_ +_Success_( return == 0) +NET_API_STATUS NET_API_FUNCTION +NetFileGetInfo( + _In_opt_ LMSTR servername, + _In_ DWORD fileid, + _In_ DWORD level, + _When_( level == 2, _Outptr_result_bytebuffer_(sizeof(FILE_INFO_2)) ) + _When_( level == 3, _Outptr_result_bytebuffer_(sizeof(FILE_INFO_3)) ) + LPBYTE *bufptr + ); + +// +// Data Structures - File +// + +// File APIs are available at information levels 2 & 3 only. Levels 0 & +// 1 are not supported. +// + +typedef struct _FILE_INFO_2 { + DWORD fi2_id; +} FILE_INFO_2, *PFILE_INFO_2, *LPFILE_INFO_2; + +typedef struct _FILE_INFO_3 { + DWORD fi3_id; + DWORD fi3_permissions; + DWORD fi3_num_locks; + LMSTR fi3_pathname; + LMSTR fi3_username; +} FILE_INFO_3, *PFILE_INFO_3, *LPFILE_INFO_3; + +// +// Special Values and Constants - File +// + +// +// bit values for permissions +// + +#define PERM_FILE_READ 0x1 // user has read access +#define PERM_FILE_WRITE 0x2 // user has write access +#define PERM_FILE_CREATE 0x4 // user has create access + +#ifdef __cplusplus +} +#endif + +#endif // _LMFILE_ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMSvc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMSvc.h new file mode 100644 index 0000000000000000000000000000000000000000..1874af5905aa087836d24768bbe45f17e368db12 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMSvc.h @@ -0,0 +1,547 @@ +/*++ BUILD Version: 0002 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmsvc.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for the NetService API. + +[Environment:] + + User Mode -Win32 + +[Notes:] + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +--*/ + +#ifndef _LMSVC_ +#define _LMSVC_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Include the file which contains all the service name strings. +// +#include + +// +// Data Structures +// + +typedef struct _SERVICE_INFO_0 { + LPWSTR svci0_name; +} SERVICE_INFO_0, *PSERVICE_INFO_0, * LPSERVICE_INFO_0; + +typedef struct _SERVICE_INFO_1 { + LPWSTR svci1_name; + DWORD svci1_status; + DWORD svci1_code; + DWORD svci1_pid; +} SERVICE_INFO_1, *PSERVICE_INFO_1, * LPSERVICE_INFO_1; + +typedef struct _SERVICE_INFO_2 { + LPWSTR svci2_name; + DWORD svci2_status; + DWORD svci2_code; + DWORD svci2_pid; + LPWSTR svci2_text; + DWORD svci2_specific_error; + LPWSTR svci2_display_name; +} SERVICE_INFO_2, *PSERVICE_INFO_2, * LPSERVICE_INFO_2; + +// +// Function Prototypes +// + +NET_API_STATUS NET_API_FUNCTION +NetServiceControl ( + _In_opt_ LPCWSTR servername, + _In_ LPCWSTR service, + _In_ DWORD opcode, + _In_ DWORD arg, + _Outptr_ LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetServiceEnum ( + _In_opt_ LPCWSTR servername, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_(entriesread)) LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resume_handle + ); + +NET_API_STATUS NET_API_FUNCTION +NetServiceGetInfo ( + _In_opt_ LPCWSTR servername, + _In_ LPCWSTR service, + _In_ DWORD level, + _Outptr_ LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetServiceInstall ( + _In_opt_ LPCWSTR servername, + _In_ LPCWSTR service, + _In_ DWORD argc, + _In_reads_(argc) LPCWSTR argv[], + _Outptr_ LPBYTE *bufptr + ); + +// +// Special Values and Constants +// + +// +// Bitmask and bit values for svci1_status, and svci2_status +// fields. For each "subfield", there is a mask defined, +// and a number of constants representing the value +// obtained by doing (status & mask). +// + +// Bits 0,1 -- general status + +#define SERVICE_INSTALL_STATE 0x03 +#define SERVICE_UNINSTALLED 0x00 +#define SERVICE_INSTALL_PENDING 0x01 +#define SERVICE_UNINSTALL_PENDING 0x02 +#define SERVICE_INSTALLED 0x03 + +// Bits 2,3 -- paused/active status + +#define SERVICE_PAUSE_STATE 0x0C +#define LM20_SERVICE_ACTIVE 0x00 +#define LM20_SERVICE_CONTINUE_PENDING 0x04 +#define LM20_SERVICE_PAUSE_PENDING 0x08 +#define LM20_SERVICE_PAUSED 0x0C + +// Bit 4 -- uninstallable indication + +#define SERVICE_NOT_UNINSTALLABLE 0x00 +#define SERVICE_UNINSTALLABLE 0x10 + +// Bit 5 -- pausable indication + +#define SERVICE_NOT_PAUSABLE 0x00 +#define SERVICE_PAUSABLE 0x20 + +// Workstation service only: +// Bits 8,9,10 -- redirection paused/active + +#define SERVICE_REDIR_PAUSED 0x700 +#define SERVICE_REDIR_DISK_PAUSED 0x100 +#define SERVICE_REDIR_PRINT_PAUSED 0x200 +#define SERVICE_REDIR_COMM_PAUSED 0x400 + +// +// Additional standard LAN Manager for MS-DOS services +// + +#define SERVICE_DOS_ENCRYPTION L"ENCRYPT" + +// +// NetServiceControl opcodes. +// + +#define SERVICE_CTRL_INTERROGATE 0 +#define SERVICE_CTRL_PAUSE 1 +#define SERVICE_CTRL_CONTINUE 2 +#define SERVICE_CTRL_UNINSTALL 3 + +// +// Workstation service only: Bits used in the "arg" parameter +// to NetServiceControl in conjunction with the opcode +// SERVICE_CTRL_PAUSE or SERVICE_CTRL_CONTINUE, to pause or +// continue redirection. +// + +#define SERVICE_CTRL_REDIR_DISK 0x1 +#define SERVICE_CTRL_REDIR_PRINT 0x2 +#define SERVICE_CTRL_REDIR_COMM 0x4 + +// +// Values for svci1_code, and svci2_code when status +// of the service is SERVICE_INSTALL_PENDING or +// SERVICE_UNINSTALL_PENDING. +// A service can optionally provide a hint to the installer +// that the install is proceeding and how long to wait +// (in 0.1 second increments) before querying status again. +// + +#define SERVICE_IP_NO_HINT 0x0 +#define SERVICE_CCP_NO_HINT 0x0 + +#define SERVICE_IP_QUERY_HINT 0x10000 +#define SERVICE_CCP_QUERY_HINT 0x10000 + +// +// Mask for install proceeding checkpoint number +// + +#define SERVICE_IP_CHKPT_NUM 0x0FF +#define SERVICE_CCP_CHKPT_NUM 0x0FF + +// +// Mask for wait time hint before querying again +// + +#define SERVICE_IP_WAIT_TIME 0x0FF00 +#define SERVICE_CCP_WAIT_TIME 0x0FF00 + +// +// Shift count for building wait time _code values +// + +#define SERVICE_IP_WAITTIME_SHIFT 8 +#define SERVICE_NTIP_WAITTIME_SHIFT 12 + +// +// Mask used for upper and lower portions of wait hint time. +// +#define UPPER_HINT_MASK 0x0000FF00 +#define LOWER_HINT_MASK 0x000000FF +#define UPPER_GET_HINT_MASK 0x0FF00000 +#define LOWER_GET_HINT_MASK 0x0000FF00 +#define SERVICE_NT_MAXTIME 0x0000FFFF +#define SERVICE_RESRV_MASK 0x0001FFFF +#define SERVICE_MAXTIME 0x000000FF + +// +// SERVICE_BASE is the base of service error codes, +// chosen to avoid conflict with OS, redirector, +// netapi, and errlog codes. +// +// Don't change the comments following the manifest constants without +// understanding how mapmsg works. +// + +#define SERVICE_BASE 3050 +#define SERVICE_UIC_NORMAL 0 +/* + * Uninstall codes, to be used in high byte of 'code' on final NetStatus, + * which sets the status to UNINSTALLED. + */ + +#define SERVICE_UIC_BADPARMVAL (SERVICE_BASE + 1) +/* + * The Registry or the information you just typed includes an illegal + * value for "%1". + */ + +#define SERVICE_UIC_MISSPARM (SERVICE_BASE + 2) +/* + * The required parameter was not provided on the command + * line or in the configuration file. + */ + +#define SERVICE_UIC_UNKPARM (SERVICE_BASE + 3) +/* + * LAN Manager does not recognize "%1" as a valid option. + */ + +#define SERVICE_UIC_RESOURCE (SERVICE_BASE + 4) +/* + * A request for resource could not be satisfied. + */ + +#define SERVICE_UIC_CONFIG (SERVICE_BASE + 5) +/* + * A problem exists with the system configuration. + */ + +#define SERVICE_UIC_SYSTEM (SERVICE_BASE + 6) +/* + * A system error has occurred. + */ + +#define SERVICE_UIC_INTERNAL (SERVICE_BASE + 7) +/* + * An internal consistency error has occurred. + */ + +#define SERVICE_UIC_AMBIGPARM (SERVICE_BASE + 8) +/* + * The configuration file or the command line has an ambiguous option. + */ + +#define SERVICE_UIC_DUPPARM (SERVICE_BASE + 9) +/* + * The configuration file or the command line has a duplicate parameter. + */ + +#define SERVICE_UIC_KILL (SERVICE_BASE + 10) +/* + * The service did not respond to control and was stopped with + * the DosKillProc function. + */ + +#define SERVICE_UIC_EXEC (SERVICE_BASE + 11) +/* + * An error occurred when attempting to run the service program. + */ + +#define SERVICE_UIC_SUBSERV (SERVICE_BASE + 12) +/* + * The sub-service failed to start. + */ + +#define SERVICE_UIC_CONFLPARM (SERVICE_BASE + 13) +/* + * There is a conflict in the value or use of these options: %1. + */ + +#define SERVICE_UIC_FILE (SERVICE_BASE + 14) +/* + * There is a problem with the file. + */ + + + +// +// The modifiers +// + +// +// General: +// + +#define SERVICE_UIC_M_NULL 0 + +// +// RESOURCE: +// + +#define SERVICE_UIC_M_MEMORY (SERVICE_BASE + 20) /* memory */ +#define SERVICE_UIC_M_DISK (SERVICE_BASE + 21) /* disk space */ +#define SERVICE_UIC_M_THREADS (SERVICE_BASE + 22) /* thread */ +#define SERVICE_UIC_M_PROCESSES (SERVICE_BASE + 23) /* process */ + +// +// CONFIG: +// + +// +// Security failure +// + +#define SERVICE_UIC_M_SECURITY (SERVICE_BASE + 24) +/* Security Failure. %0 */ + +#define SERVICE_UIC_M_LANROOT (SERVICE_BASE + 25) +/* + * Bad or missing LAN Manager root directory. + */ + +#define SERVICE_UIC_M_REDIR (SERVICE_BASE + 26) +/* + * The network software is not installed. + */ + +#define SERVICE_UIC_M_SERVER (SERVICE_BASE + 27) +/* + * The server is not started. + */ + +#define SERVICE_UIC_M_SEC_FILE_ERR (SERVICE_BASE + 28) +/* + * The server cannot access the user accounts database (NET.ACC). + */ + +#define SERVICE_UIC_M_FILES (SERVICE_BASE + 29) +/* + * Incompatible files are installed in the LANMAN tree. + */ + +#define SERVICE_UIC_M_LOGS (SERVICE_BASE + 30) +/* + * The LANMAN\LOGS directory is invalid. + */ + +#define SERVICE_UIC_M_LANGROUP (SERVICE_BASE + 31) +/* + * The domain specified could not be used. + */ + +#define SERVICE_UIC_M_MSGNAME (SERVICE_BASE + 32) +/* + * The computer name is being used as a message alias on another computer. + */ + +#define SERVICE_UIC_M_ANNOUNCE (SERVICE_BASE + 33) +/* + * The announcement of the server name failed. + */ + +#define SERVICE_UIC_M_UAS (SERVICE_BASE + 34) +/* + * The user accounts database is not configured correctly. + */ + +#define SERVICE_UIC_M_SERVER_SEC_ERR (SERVICE_BASE + 35) +/* + * The server is not running with user-level security. + */ + +#define SERVICE_UIC_M_WKSTA (SERVICE_BASE + 37) +/* + * The workstation is not configured properly. + */ + +#define SERVICE_UIC_M_ERRLOG (SERVICE_BASE + 38) +/* + * View your error log for details. + */ + +#define SERVICE_UIC_M_FILE_UW (SERVICE_BASE + 39) +/* + * Unable to write to this file. + */ + +#define SERVICE_UIC_M_ADDPAK (SERVICE_BASE + 40) +/* + * ADDPAK file is corrupted. Delete LANMAN\NETPROG\ADDPAK.SER + * and reapply all ADDPAKs. + */ + +#define SERVICE_UIC_M_LAZY (SERVICE_BASE + 41) +/* + * The LM386 server cannot be started because CACHE.EXE is not running. + */ + +#define SERVICE_UIC_M_UAS_MACHINE_ACCT (SERVICE_BASE + 42) +/* + * There is no account for this computer in the security database. + */ + +#define SERVICE_UIC_M_UAS_SERVERS_NMEMB (SERVICE_BASE + 43) +/* + * This computer is not a member of the group SERVERS. + */ + +#define SERVICE_UIC_M_UAS_SERVERS_NOGRP (SERVICE_BASE + 44) +/* + * The group SERVERS is not present in the local security database. + */ + +#define SERVICE_UIC_M_UAS_INVALID_ROLE (SERVICE_BASE + 45) +/* + * This computer is configured as a member of a workgroup, not as + * a member of a domain. The Netlogon service does not need to run in this + * configuration. + */ + +#define SERVICE_UIC_M_NETLOGON_NO_DC (SERVICE_BASE + 46) +/* + * The primary Domain Controller for this domain could not be located. + */ + +#define SERVICE_UIC_M_NETLOGON_DC_CFLCT (SERVICE_BASE + 47) +/* + * This computer is configured to be the primary domain controller of its domain. + * However, the computer %1 is currently claiming to be the primary domain controller + * of the domain. + */ + +#define SERVICE_UIC_M_NETLOGON_AUTH (SERVICE_BASE + 48) +/* + * The service failed to authenticate with the primary domain controller. + */ + +#define SERVICE_UIC_M_UAS_PROLOG (SERVICE_BASE + 49) +/* + * There is a problem with the security database creation date or serial number. + */ + + +#define SERVICE2_BASE 5600 +/* new SEVICE_UIC messages go here */ + +#define SERVICE_UIC_M_NETLOGON_MPATH (SERVICE2_BASE + 0) +/* + * Could not share the User or Script path. + */ + +#define SERVICE_UIC_M_LSA_MACHINE_ACCT (SERVICE2_BASE + 1) +/* + * The password for this computer is not found in the local security + * database. + */ + +#define SERVICE_UIC_M_DATABASE_ERROR (SERVICE2_BASE + 2) +/* + * An internal error occurred while accessing the computer's + * local or network security database. + */ + + +// +// End modifiers +// + +// +// Commonly used Macros: +// + +#define SERVICE_IP_CODE(tt,nn) \ + ((long)SERVICE_IP_QUERY_HINT|(long)(nn|(tt<> SERVICE_NTIP_WAITTIME_SHIFT) | \ + (((code) & LOWER_GET_HINT_MASK) >> SERVICE_IP_WAITTIME_SHIFT) \ + ) + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _LMSVC_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMUse.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMUse.h new file mode 100644 index 0000000000000000000000000000000000000000..56cfb2b96d78bf86fff73950e3355ff7865f2ac5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMUse.h @@ -0,0 +1,342 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmuse.c + +Abstract: + + This file contains structures, function prototypes, and definitions + for the NetUse API. + + +Environment: + + User Mode - Win32 + Portable to any flat, 32-bit environment. (Uses Win32 typedefs.) + Requires ANSI C extensions: slash-slash comments, long external names. + +Notes: + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + + +--*/ + +#ifndef _LMUSE_ +#define _LMUSE_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include // Deletion force level flags + +// +// LevelFlags : The lower 16 bits describe the use level while the upper 16 bits are flags. +// + + +#define USE_FLAG_GLOBAL_MAPPING 0x10000 + +#define USE_LEVEL(LEVELFLAGS) ((LEVELFLAGS) & 0xffff) +#define USE_FLAGS(LEVELFLAGS) ((LEVELFLAGS) & 0xffff0000) + + +// +// Function Prototypes +// + +NET_API_STATUS NET_API_FUNCTION +NetUseAdd ( + _In_opt_ LPTSTR servername, + _In_ DWORD LevelFlags, + _When_( USE_LEVEL(LevelFlags)== 0, _In_reads_bytes_(sizeof(USE_INFO_0))) + _When_( USE_LEVEL(LevelFlags)== 1, _In_reads_bytes_(sizeof(USE_INFO_1))) + _When_( USE_LEVEL(LevelFlags)== 2, _In_reads_bytes_(sizeof(USE_INFO_2))) + _When_( USE_LEVEL(LevelFlags)== 3, _In_reads_bytes_(sizeof(USE_INFO_3))) + _When_( USE_LEVEL(LevelFlags)== 4, _In_reads_bytes_(sizeof(USE_INFO_4))) + _When_( USE_LEVEL(LevelFlags)== 5, _In_reads_bytes_(sizeof(USE_INFO_5))) + LPBYTE buf, + _Out_opt_ LPDWORD parm_err + ); + +NET_API_STATUS NET_API_FUNCTION +NetUseDel ( + _In_opt_ LMSTR UncServerName OPTIONAL, + _In_ LMSTR UseName, + _In_ DWORD ForceLevelFlags + ); + +NET_API_STATUS NET_API_FUNCTION +NetUseEnum ( + _In_opt_ LMSTR UncServerName, + _In_ DWORD LevelFlags, + _Outptr_opt_result_buffer_(_Inexpressible_(EntriesRead)) LPBYTE *BufPtr, + _In_ DWORD PreferedMaximumSize, + _Out_opt_ LPDWORD EntriesRead, + _Out_ LPDWORD TotalEntries, + _Inout_opt_ LPDWORD ResumeHandle + ); + +NET_API_STATUS NET_API_FUNCTION +NetUseGetInfo ( + _In_opt_ LMSTR UncServerName, + _In_ LMSTR UseName, + _In_ DWORD LevelFlags, + _When_(USE_LEVEL(LevelFlags) == 0, _Outptr_opt_result_bytebuffer_(sizeof(USE_INFO_0))) + _When_(USE_LEVEL(LevelFlags) == 1, _Outptr_opt_result_bytebuffer_(sizeof(USE_INFO_1))) + _When_(USE_LEVEL(LevelFlags) == 2, _Outptr_opt_result_bytebuffer_(sizeof(USE_INFO_2))) + _When_(USE_LEVEL(LevelFlags) == 3, _Outptr_opt_result_bytebuffer_(sizeof(USE_INFO_3))) + _When_(USE_LEVEL(LevelFlags) == 4, _Outptr_opt_result_bytebuffer_(sizeof(USE_INFO_4))) + _When_(USE_LEVEL(LevelFlags) == 5, _Outptr_opt_result_bytebuffer_(sizeof(USE_INFO_5))) + LPBYTE *bufptr + ); + +// +// Data Structures +// + +typedef struct _USE_INFO_0 { + LMSTR ui0_local; + LMSTR ui0_remote; +}USE_INFO_0, *PUSE_INFO_0, *LPUSE_INFO_0; + +typedef struct _USE_INFO_1 { + LMSTR ui1_local; + LMSTR ui1_remote; + LMSTR ui1_password; + DWORD ui1_status; + DWORD ui1_asg_type; + DWORD ui1_refcount; + DWORD ui1_usecount; +}USE_INFO_1, *PUSE_INFO_1, *LPUSE_INFO_1; + +typedef struct _USE_INFO_2 { + LMSTR ui2_local; + LMSTR ui2_remote; + LMSTR ui2_password; + DWORD ui2_status; + DWORD ui2_asg_type; + DWORD ui2_refcount; + DWORD ui2_usecount; + LMSTR ui2_username; + LMSTR ui2_domainname; +}USE_INFO_2, *PUSE_INFO_2, *LPUSE_INFO_2; + +typedef struct _USE_INFO_3 { + USE_INFO_2 ui3_ui2; + ULONG ui3_flags; +} USE_INFO_3, *PUSE_INFO_3, *LPUSE_INFO_3; + +typedef struct _USE_INFO_4 { + USE_INFO_3 ui4_ui3; + DWORD ui4_auth_identity_length; + PBYTE ui4_auth_identity; +} USE_INFO_4, *PUSE_INFO_4, *LPUSE_INFO_4; + +typedef struct _USE_INFO_5 { + + USE_INFO_3 ui4_ui3; + DWORD ui4_auth_identity_length; + PBYTE ui4_auth_identity; + DWORD ui5_security_descriptor_length; + PBYTE ui5_security_descriptor; + DWORD ui5_use_options_length; + PBYTE ui5_use_options; + +} USE_INFO_5, *PUSE_INFO_5, *LPUSE_INFO_5; + +// +// Special Values and Constants +// + +// +// One of these values indicates the parameter within an information +// structure that is invalid when ERROR_INVALID_PARAMETER is returned by +// NetUseAdd. +// + +#define USE_LOCAL_PARMNUM 1 +#define USE_REMOTE_PARMNUM 2 +#define USE_PASSWORD_PARMNUM 3 +#define USE_ASGTYPE_PARMNUM 4 +#define USE_USERNAME_PARMNUM 5 +#define USE_DOMAINNAME_PARMNUM 6 +#define USE_FLAGS_PARMNUM 7 +#define USE_AUTHIDENTITY_PARMNUM 8 +#define USE_SD_PARMNUM 9 +#define USE_OPTIONS_PARMNUM 10 + +// +// Values appearing in the ui1_status field of use_info_1 structure. +// Note that USE_SESSLOST and USE_DISCONN are synonyms. +// + +#define USE_OK 0 +#define USE_PAUSED 1 +#define USE_SESSLOST 2 +#define USE_DISCONN 2 +#define USE_NETERR 3 +#define USE_CONN 4 +#define USE_RECONN 5 + + +// +// Values of the ui1_asg_type field of use_info_1 structure +// + +#define USE_WILDCARD ( (DWORD) (-1) ) +#define USE_DISKDEV 0 +#define USE_SPOOLDEV 1 +#define USE_CHARDEV 2 +#define USE_IPC 3 + +// +// Flags defined in the use_info_3 structure +// + +#define CREATE_NO_CONNECT 0x1 // creation flags +#define CREATE_BYPASS_CSC 0x2 // force connection to server, bypassing CSC + // all ops on this connection go to the server, + // never to the cache +#define CREATE_CRED_RESET 0x4 // Create a connection with credentials passed in + // this netuse if none exist. If connection already + // exists then update credentials after issuing remote + // tree connection. This is needed as CSC cannot verify + // credentials while offline. + +#define USE_DEFAULT_CREDENTIALS 0x4 // No explicit credentials passed to NetUseAdd + +// +// Enforce connection level integrity and privacy. +// + +#define CREATE_REQUIRE_CONNECTION_INTEGRITY 0x8 +#define CREATE_REQUIRE_CONNECTION_PRIVACY 0x10 + +// +// Persist the mapping in the registry. (Only valid for global mappings.) +// + +#define CREATE_PERSIST_MAPPING 0x20 + +// +// Enables write-through semantics on all files opened via this mapping. +// + +#define CREATE_WRITE_THROUGH_SEMANTICS 0x40 + +#define CREATE_GLOBAL_MAPPING 0x100 + +// +// Use options +// +#define USE_OPTION_DEFERRED_CONNECTION_PARAMS 'CfeD' +#define USE_OPTION_TRANSPORT_PARAMS 'ParT' +#define USE_OPTION_SMB_COMPRESSION_PARAMS 'PmoC' +#define USE_OPTION_BLOCK_NTLM_PARAMS 'NolB' + +typedef struct _USE_OPTION_GENERIC { + ULONG Tag; + USHORT Length; + USHORT Reserved; +} USE_OPTION_GENERIC, *PUSE_OPTION_GENERIC; + +typedef struct _USE_OPTION_DEFERRED_CONNECTION_PARAMETERS { + ULONG Tag; // 'CfeD' + USHORT Length; // sizeof(USE_OPTION_DEFERRED_CONNECTION_PARAMETERS) + sizeof(FILE_REMOTE_PROTOCOL_INFO) + USHORT Reserved; // 0 + // Followed by FILE_REMOTE_PROTOCOL_INFO +} USE_OPTION_DEFERRED_CONNECTION_PARAMETERS, *PUSE_OPTION_DEFERRED_CONNECTION_PARAMETERS ; + +typedef enum _TRANSPORT_TYPE { + UseTransportType_None, + UseTransportType_Wsk, + UseTransportType_Quic +} TRANSPORT_TYPE, *PTRANSPORT_TYPE; + +typedef enum _TRANSPORT_INFO_FLAG { + NoneFlag = 0x00000000, + TcpPortSetFlag = 0x00000001, + QuicPortSetFlag = 0x00000002, + RdmaPortSetFlag = 0x00000004 +} TRANSPORT_INFO_FLAG, *PTRANSPORT_INFO_FLAG; + +typedef struct _TRANSPORT_INFO { + TRANSPORT_TYPE Type; + BOOLEAN SkipCertificateCheck; + USHORT TcpPort; + USHORT QuicPort; + USHORT RdmaPort; + ULONG Flags; // TRANSPORT_INFO_FLAG +} TRANSPORT_INFO, *PTRANSPORT_INFO; + +typedef struct _USE_OPTION_TRANSPORT_PARAMETERS { + ULONG Tag; // 'ParT' + USHORT Length; // sizeof(USE_OPTION_TRANSPORT_PARAMETERS) + sizeof(TRANSPORT_INFO) + USHORT Reserved; // 0 + // Followed by TRANSPORT_INFO +} USE_OPTION_TRANSPORT_PARAMETERS, *PUSE_OPTION_TRANSPORT_PARAMETERS ; + +typedef struct _SMB_COMPRESSION_INFO { + BOOLEAN Switch; // FALSE: OFF; TRUE: ON; + BYTE Reserved1; // 0 + USHORT Reserved2; // 0 + ULONG Reserved3; // 0 +} SMB_COMPRESSION_INFO, *PSMB_COMPRESSION_INFO; + +typedef struct _SMB_USE_OPTION_COMPRESSION_PARAMETERS { + ULONG Tag; // 'ParC' + USHORT Length; + USHORT Reserved; +} SMB_USE_OPTION_COMPRESSION_PARAMETERS, *PSMB_USE_OPTION_COMPRESSION_PARAMETERS; + +typedef struct _BLOCK_NTLM_INFO { + BOOLEAN BlockNTLM; + BYTE Reserved1; // 0 + USHORT Reserved2; // 0 + ULONG Reserved3; // 0 +} BLOCK_NTLM_INFO, *PBLOCK_NTLM_INFO; + +typedef struct _USE_OPTION_BLOCK_NTLM_PARAMETERS { + ULONG Tag; // 'NolB' + USHORT Length; + USHORT Reserved; +} USE_OPTION_BLOCK_NTLM_PARAMETERS, *PUSE_OPTION_BLOCK_NTLM_PARAMETERS; + +typedef struct _SMB_TREE_CONNECT_PARAMETERS { + ULONG EABufferOffset; // relative offset + DWORD EABufferLen; + ULONG CreateOptions; + ULONG TreeConnectAttributes; +} SMB_TREE_CONNECT_PARAMETERS, *PSMB_TREE_CONNECT_PARAMETERS; + +typedef struct _USE_OPTION_PROPERTIES { + ULONG Tag; + PVOID pInfo; + size_t Length; +} USE_OPTION_PROPERTIES, *PUSE_OPTION_PROPERTIES; + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _LMUSE_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMaccess.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMaccess.h new file mode 100644 index 0000000000000000000000000000000000000000..d6bf1c4c39e7c3da789f2146750b522e6e28e725 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMaccess.h @@ -0,0 +1,1780 @@ +/*++ BUILD Version: 0002 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmaccess.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for the NetUser, NetUserModals, NetGroup, NetAccess, and NetLogon API. + +Environment: + + User Mode - Win32 + +Notes: + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +--*/ + +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +// +// User Class +// + +#ifndef _LMUSER_ +#define _LMUSER_ + +#if _MSC_VER > 1000 +#pragma once +#endif + + +#ifdef __cplusplus +extern "C" { +#endif + +#include // unfortunately created a dependence on this + +// +// Function Prototypes - User +// + +NET_API_STATUS NET_API_FUNCTION +NetUserAdd ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ DWORD level, + _When_(level == 1, _In_reads_bytes_(sizeof(USER_INFO_1))) + _When_(level == 2, _In_reads_bytes_(sizeof(USER_INFO_2))) + _When_(level == 3, _In_reads_bytes_(sizeof(USER_INFO_3))) + _When_(level == 4, _In_reads_bytes_(sizeof(USER_INFO_4))) + LPBYTE buf, + _Out_opt_ LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetUserEnum ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ DWORD level, + _In_ DWORD filter, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ PDWORD resume_handle OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetUserGetInfo ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR username, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetUserSetInfo ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR username, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _Out_opt_ LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetUserDel ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR username + ); + +NET_API_STATUS NET_API_FUNCTION +NetUserGetGroups ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR username, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries + ); + +NET_API_STATUS NET_API_FUNCTION +NetUserSetGroups ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR username, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _In_ DWORD num_entries + ); + +NET_API_STATUS NET_API_FUNCTION +NetUserGetLocalGroups ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR username, + _In_ DWORD level, + _In_ DWORD flags, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries + ); + +NET_API_STATUS NET_API_FUNCTION +NetUserModalsGet ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetUserModalsSet ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _Out_opt_ LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetUserChangePassword ( + _In_opt_ IN LPCWSTR domainname OPTIONAL, + _In_opt_ IN LPCWSTR username OPTIONAL, + _In_ IN LPCWSTR oldpassword, + _In_ IN LPCWSTR newpassword + ); + + +// +// Data Structures - User +// + +typedef struct _USER_INFO_0 { + LPWSTR usri0_name; +}USER_INFO_0, *PUSER_INFO_0, *LPUSER_INFO_0; + +typedef struct _USER_INFO_1 { + LPWSTR usri1_name; + LPWSTR usri1_password; + DWORD usri1_password_age; + DWORD usri1_priv; + LPWSTR usri1_home_dir; + LPWSTR usri1_comment; + DWORD usri1_flags; + LPWSTR usri1_script_path; +}USER_INFO_1, *PUSER_INFO_1, *LPUSER_INFO_1; + +typedef struct _USER_INFO_2 { + LPWSTR usri2_name; + LPWSTR usri2_password; + DWORD usri2_password_age; + DWORD usri2_priv; + LPWSTR usri2_home_dir; + LPWSTR usri2_comment; + DWORD usri2_flags; + LPWSTR usri2_script_path; + DWORD usri2_auth_flags; + LPWSTR usri2_full_name; + LPWSTR usri2_usr_comment; + LPWSTR usri2_parms; + LPWSTR usri2_workstations; + DWORD usri2_last_logon; + DWORD usri2_last_logoff; + DWORD usri2_acct_expires; + DWORD usri2_max_storage; + DWORD usri2_units_per_week; + PBYTE usri2_logon_hours; + DWORD usri2_bad_pw_count; + DWORD usri2_num_logons; + LPWSTR usri2_logon_server; + DWORD usri2_country_code; + DWORD usri2_code_page; +}USER_INFO_2, *PUSER_INFO_2, *LPUSER_INFO_2; + +typedef struct _USER_INFO_3 { + LPWSTR usri3_name; + LPWSTR usri3_password; + DWORD usri3_password_age; + DWORD usri3_priv; + LPWSTR usri3_home_dir; + LPWSTR usri3_comment; + DWORD usri3_flags; + LPWSTR usri3_script_path; + DWORD usri3_auth_flags; + LPWSTR usri3_full_name; + LPWSTR usri3_usr_comment; + LPWSTR usri3_parms; + LPWSTR usri3_workstations; + DWORD usri3_last_logon; + DWORD usri3_last_logoff; + DWORD usri3_acct_expires; + DWORD usri3_max_storage; + DWORD usri3_units_per_week; + PBYTE usri3_logon_hours; + DWORD usri3_bad_pw_count; + DWORD usri3_num_logons; + LPWSTR usri3_logon_server; + DWORD usri3_country_code; + DWORD usri3_code_page; + DWORD usri3_user_id; + DWORD usri3_primary_group_id; + LPWSTR usri3_profile; + LPWSTR usri3_home_dir_drive; + DWORD usri3_password_expired; +}USER_INFO_3, *PUSER_INFO_3, *LPUSER_INFO_3; + +typedef struct _USER_INFO_4 { + LPWSTR usri4_name; + LPWSTR usri4_password; + DWORD usri4_password_age; + DWORD usri4_priv; + LPWSTR usri4_home_dir; + LPWSTR usri4_comment; + DWORD usri4_flags; + LPWSTR usri4_script_path; + DWORD usri4_auth_flags; + LPWSTR usri4_full_name; + LPWSTR usri4_usr_comment; + LPWSTR usri4_parms; + LPWSTR usri4_workstations; + DWORD usri4_last_logon; + DWORD usri4_last_logoff; + DWORD usri4_acct_expires; + DWORD usri4_max_storage; + DWORD usri4_units_per_week; + PBYTE usri4_logon_hours; + DWORD usri4_bad_pw_count; + DWORD usri4_num_logons; + LPWSTR usri4_logon_server; + DWORD usri4_country_code; + DWORD usri4_code_page; + PSID usri4_user_sid; + DWORD usri4_primary_group_id; + LPWSTR usri4_profile; + LPWSTR usri4_home_dir_drive; + DWORD usri4_password_expired; +}USER_INFO_4, *PUSER_INFO_4, *LPUSER_INFO_4; + +typedef struct _USER_INFO_10 { + LPWSTR usri10_name; + LPWSTR usri10_comment; + LPWSTR usri10_usr_comment; + LPWSTR usri10_full_name; +}USER_INFO_10, *PUSER_INFO_10, *LPUSER_INFO_10; + +typedef struct _USER_INFO_11 { + LPWSTR usri11_name; + LPWSTR usri11_comment; + LPWSTR usri11_usr_comment; + LPWSTR usri11_full_name; + DWORD usri11_priv; + DWORD usri11_auth_flags; + DWORD usri11_password_age; + LPWSTR usri11_home_dir; + LPWSTR usri11_parms; + DWORD usri11_last_logon; + DWORD usri11_last_logoff; + DWORD usri11_bad_pw_count; + DWORD usri11_num_logons; + LPWSTR usri11_logon_server; + DWORD usri11_country_code; + LPWSTR usri11_workstations; + DWORD usri11_max_storage; + DWORD usri11_units_per_week; + PBYTE usri11_logon_hours; + DWORD usri11_code_page; +}USER_INFO_11, *PUSER_INFO_11, *LPUSER_INFO_11; + +typedef struct _USER_INFO_20 { + LPWSTR usri20_name; + LPWSTR usri20_full_name; + LPWSTR usri20_comment; + DWORD usri20_flags; + DWORD usri20_user_id; +}USER_INFO_20, *PUSER_INFO_20, *LPUSER_INFO_20; + +typedef struct _USER_INFO_21 { + BYTE usri21_password[ENCRYPTED_PWLEN]; +}USER_INFO_21, *PUSER_INFO_21, *LPUSER_INFO_21; + +typedef struct _USER_INFO_22 { + LPWSTR usri22_name; + BYTE usri22_password[ENCRYPTED_PWLEN]; + DWORD usri22_password_age; + DWORD usri22_priv; + LPWSTR usri22_home_dir; + LPWSTR usri22_comment; + DWORD usri22_flags; + LPWSTR usri22_script_path; + DWORD usri22_auth_flags; + LPWSTR usri22_full_name; + LPWSTR usri22_usr_comment; + LPWSTR usri22_parms; + LPWSTR usri22_workstations; + DWORD usri22_last_logon; + DWORD usri22_last_logoff; + DWORD usri22_acct_expires; + DWORD usri22_max_storage; + DWORD usri22_units_per_week; + PBYTE usri22_logon_hours; + DWORD usri22_bad_pw_count; + DWORD usri22_num_logons; + LPWSTR usri22_logon_server; + DWORD usri22_country_code; + DWORD usri22_code_page; +}USER_INFO_22, *PUSER_INFO_22, *LPUSER_INFO_22; + +typedef struct _USER_INFO_23 { + LPWSTR usri23_name; + LPWSTR usri23_full_name; + LPWSTR usri23_comment; + DWORD usri23_flags; + PSID usri23_user_sid; +}USER_INFO_23, *PUSER_INFO_23, *LPUSER_INFO_23; + +typedef struct _USER_INFO_24 { + BOOL usri24_internet_identity; + DWORD usri24_flags; + LPWSTR usri24_internet_provider_name; + LPWSTR usri24_internet_principal_name; + PSID usri24_user_sid; +} USER_INFO_24, *PUSER_INFO_24, *LPUSER_INFO_24; + +typedef struct _USER_INFO_1003 { + LPWSTR usri1003_password; +} USER_INFO_1003, *PUSER_INFO_1003, *LPUSER_INFO_1003; + +typedef struct _USER_INFO_1005 { + DWORD usri1005_priv; +} USER_INFO_1005, *PUSER_INFO_1005, *LPUSER_INFO_1005; + +typedef struct _USER_INFO_1006 { + LPWSTR usri1006_home_dir; +} USER_INFO_1006, *PUSER_INFO_1006, *LPUSER_INFO_1006; + +typedef struct _USER_INFO_1007 { + LPWSTR usri1007_comment; +} USER_INFO_1007, *PUSER_INFO_1007, *LPUSER_INFO_1007; + +typedef struct _USER_INFO_1008 { + DWORD usri1008_flags; +} USER_INFO_1008, *PUSER_INFO_1008, *LPUSER_INFO_1008; + +typedef struct _USER_INFO_1009 { + LPWSTR usri1009_script_path; +} USER_INFO_1009, *PUSER_INFO_1009, *LPUSER_INFO_1009; + +typedef struct _USER_INFO_1010 { + DWORD usri1010_auth_flags; +} USER_INFO_1010, *PUSER_INFO_1010, *LPUSER_INFO_1010; + +typedef struct _USER_INFO_1011 { + LPWSTR usri1011_full_name; +} USER_INFO_1011, *PUSER_INFO_1011, *LPUSER_INFO_1011; + +typedef struct _USER_INFO_1012 { + LPWSTR usri1012_usr_comment; +} USER_INFO_1012, *PUSER_INFO_1012, *LPUSER_INFO_1012; + +typedef struct _USER_INFO_1013 { + LPWSTR usri1013_parms; +} USER_INFO_1013, *PUSER_INFO_1013, *LPUSER_INFO_1013; + +typedef struct _USER_INFO_1014 { + LPWSTR usri1014_workstations; +} USER_INFO_1014, *PUSER_INFO_1014, *LPUSER_INFO_1014; + +typedef struct _USER_INFO_1017 { + DWORD usri1017_acct_expires; +} USER_INFO_1017, *PUSER_INFO_1017, *LPUSER_INFO_1017; + +typedef struct _USER_INFO_1018 { + DWORD usri1018_max_storage; +} USER_INFO_1018, *PUSER_INFO_1018, *LPUSER_INFO_1018; + +typedef struct _USER_INFO_1020 { + DWORD usri1020_units_per_week; + LPBYTE usri1020_logon_hours; +} USER_INFO_1020, *PUSER_INFO_1020, *LPUSER_INFO_1020; + +typedef struct _USER_INFO_1023 { + LPWSTR usri1023_logon_server; +} USER_INFO_1023, *PUSER_INFO_1023, *LPUSER_INFO_1023; + +typedef struct _USER_INFO_1024 { + DWORD usri1024_country_code; +} USER_INFO_1024, *PUSER_INFO_1024, *LPUSER_INFO_1024; + +typedef struct _USER_INFO_1025 { + DWORD usri1025_code_page; +} USER_INFO_1025, *PUSER_INFO_1025, *LPUSER_INFO_1025; + +typedef struct _USER_INFO_1051 { + DWORD usri1051_primary_group_id; +} USER_INFO_1051, *PUSER_INFO_1051, *LPUSER_INFO_1051; + +typedef struct _USER_INFO_1052 { + LPWSTR usri1052_profile; +} USER_INFO_1052, *PUSER_INFO_1052, *LPUSER_INFO_1052; + +typedef struct _USER_INFO_1053 { + LPWSTR usri1053_home_dir_drive; +} USER_INFO_1053, *PUSER_INFO_1053, *LPUSER_INFO_1053; + + +// +// Data Structures - User Modals +// + +typedef struct _USER_MODALS_INFO_0 { + DWORD usrmod0_min_passwd_len; + DWORD usrmod0_max_passwd_age; + DWORD usrmod0_min_passwd_age; + DWORD usrmod0_force_logoff; + DWORD usrmod0_password_hist_len; +}USER_MODALS_INFO_0, *PUSER_MODALS_INFO_0, *LPUSER_MODALS_INFO_0; + +typedef struct _USER_MODALS_INFO_1 { + DWORD usrmod1_role; + LPWSTR usrmod1_primary; +}USER_MODALS_INFO_1, *PUSER_MODALS_INFO_1, *LPUSER_MODALS_INFO_1; + +typedef struct _USER_MODALS_INFO_2 { + LPWSTR usrmod2_domain_name; + PSID usrmod2_domain_id; +}USER_MODALS_INFO_2, *PUSER_MODALS_INFO_2, *LPUSER_MODALS_INFO_2; + +typedef struct _USER_MODALS_INFO_3 { + DWORD usrmod3_lockout_duration; + DWORD usrmod3_lockout_observation_window; + DWORD usrmod3_lockout_threshold; +}USER_MODALS_INFO_3, *PUSER_MODALS_INFO_3, *LPUSER_MODALS_INFO_3; + +typedef struct _USER_MODALS_INFO_1001 { + DWORD usrmod1001_min_passwd_len; +} USER_MODALS_INFO_1001, *PUSER_MODALS_INFO_1001, *LPUSER_MODALS_INFO_1001; + +typedef struct _USER_MODALS_INFO_1002 { + DWORD usrmod1002_max_passwd_age; +} USER_MODALS_INFO_1002, *PUSER_MODALS_INFO_1002, *LPUSER_MODALS_INFO_1002; + +typedef struct _USER_MODALS_INFO_1003 { + DWORD usrmod1003_min_passwd_age; +} USER_MODALS_INFO_1003, *PUSER_MODALS_INFO_1003, *LPUSER_MODALS_INFO_1003; + +typedef struct _USER_MODALS_INFO_1004 { + DWORD usrmod1004_force_logoff; +} USER_MODALS_INFO_1004, *PUSER_MODALS_INFO_1004, *LPUSER_MODALS_INFO_1004; + +typedef struct _USER_MODALS_INFO_1005 { + DWORD usrmod1005_password_hist_len; +} USER_MODALS_INFO_1005, *PUSER_MODALS_INFO_1005, *LPUSER_MODALS_INFO_1005; + +typedef struct _USER_MODALS_INFO_1006 { + DWORD usrmod1006_role; +} USER_MODALS_INFO_1006, *PUSER_MODALS_INFO_1006, *LPUSER_MODALS_INFO_1006; + +typedef struct _USER_MODALS_INFO_1007 { + LPWSTR usrmod1007_primary; +} USER_MODALS_INFO_1007, *PUSER_MODALS_INFO_1007, *LPUSER_MODALS_INFO_1007; + +// +// Data Structures - Service +// + +typedef enum _MSA_INFO_LEVEL { + MsaInfoLevel0 = 0, + MsaInfoLevel1 = 1, + MsaInfoLevelMax +} MSA_INFO_LEVEL, *PMSA_INFO_LEVEL; + +typedef enum _MSA_INFO_ACCOUNT_TYPE { + MsaAccountFalse = 0, + StandAloneManagedServiceAccount, + GroupManagedServiceAccount, + DelegatedManagedServiceAccount +} MSA_INFO_ACCOUNT_TYPE, *PMSA_INFO_ACCOUNT_TYPE; + +typedef enum _MSA_INFO_STATE { + MsaInfoNotExist = 1, + MsaInfoNotService, + MsaInfoCannotInstall, + MsaInfoCanInstall, + MsaInfoInstalled +} MSA_INFO_STATE, *PMSA_INFO_STATE; + +typedef struct _MSA_INFO_0 { + MSA_INFO_STATE State; +} MSA_INFO_0, *PMSA_INFO_0, *LPMSA_INFO_0; + +typedef struct _MSA_INFO_1 { + MSA_INFO_STATE State; + MSA_INFO_ACCOUNT_TYPE AccountType; +} MSA_INFO_1, *PMSA_INFO_1, *LPMSA_INFO_1; + + +// +// Special Values and Constants - User +// + +// +// Bit masks for field usriX_flags of USER_INFO_X (X = 0/1). +// + +#define UF_SCRIPT 0x0001 +#define UF_ACCOUNTDISABLE 0x0002 +#define UF_HOMEDIR_REQUIRED 0x0008 +#define UF_LOCKOUT 0x0010 +#define UF_PASSWD_NOTREQD 0x0020 +#define UF_PASSWD_CANT_CHANGE 0x0040 +#define UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED 0x0080 + +// +// Account type bits as part of usri_flags. +// + +#define UF_TEMP_DUPLICATE_ACCOUNT 0x0100 +#define UF_NORMAL_ACCOUNT 0x0200 +#define UF_INTERDOMAIN_TRUST_ACCOUNT 0x0800 +#define UF_WORKSTATION_TRUST_ACCOUNT 0x1000 +#define UF_SERVER_TRUST_ACCOUNT 0x2000 + + +#define UF_MACHINE_ACCOUNT_MASK ( UF_INTERDOMAIN_TRUST_ACCOUNT | \ + UF_WORKSTATION_TRUST_ACCOUNT | \ + UF_SERVER_TRUST_ACCOUNT ) + +#define UF_ACCOUNT_TYPE_MASK ( \ + UF_TEMP_DUPLICATE_ACCOUNT | \ + UF_NORMAL_ACCOUNT | \ + UF_INTERDOMAIN_TRUST_ACCOUNT | \ + UF_WORKSTATION_TRUST_ACCOUNT | \ + UF_SERVER_TRUST_ACCOUNT \ + ) + + +#define UF_DONT_EXPIRE_PASSWD 0x10000 +#define UF_MNS_LOGON_ACCOUNT 0x20000 +#define UF_SMARTCARD_REQUIRED 0x40000 +#define UF_TRUSTED_FOR_DELEGATION 0x80000 +#define UF_NOT_DELEGATED 0x100000 +#define UF_USE_DES_KEY_ONLY 0x200000 +#define UF_DONT_REQUIRE_PREAUTH 0x400000 +#define UF_PASSWORD_EXPIRED 0x800000 +#define UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION 0x1000000 +#define UF_NO_AUTH_DATA_REQUIRED 0x2000000 +#define UF_PARTIAL_SECRETS_ACCOUNT 0x4000000 +#define UF_USE_AES_KEYS 0x8000000 + +#define UF_SETTABLE_BITS ( \ + UF_SCRIPT | \ + UF_ACCOUNTDISABLE | \ + UF_LOCKOUT | \ + UF_HOMEDIR_REQUIRED | \ + UF_PASSWD_NOTREQD | \ + UF_PASSWD_CANT_CHANGE | \ + UF_ACCOUNT_TYPE_MASK | \ + UF_DONT_EXPIRE_PASSWD | \ + UF_MNS_LOGON_ACCOUNT |\ + UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED |\ + UF_SMARTCARD_REQUIRED | \ + UF_TRUSTED_FOR_DELEGATION | \ + UF_NOT_DELEGATED | \ + UF_USE_DES_KEY_ONLY | \ + UF_DONT_REQUIRE_PREAUTH |\ + UF_PASSWORD_EXPIRED |\ + UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION |\ + UF_NO_AUTH_DATA_REQUIRED |\ + UF_USE_AES_KEYS |\ + UF_PARTIAL_SECRETS_ACCOUNT \ + ) + +// +// bit masks for the NetUserEnum filter parameter. +// + +#define FILTER_TEMP_DUPLICATE_ACCOUNT (0x0001) +#define FILTER_NORMAL_ACCOUNT (0x0002) +// #define FILTER_PROXY_ACCOUNT (0x0004) +#define FILTER_INTERDOMAIN_TRUST_ACCOUNT (0x0008) +#define FILTER_WORKSTATION_TRUST_ACCOUNT (0x0010) +#define FILTER_SERVER_TRUST_ACCOUNT (0x0020) + +// +// bit masks for the NetUserGetLocalGroups flags +// +#define LG_INCLUDE_INDIRECT (0x0001) + +// +// Bit masks for field usri2_auth_flags of USER_INFO_2. +// + +#define AF_OP_PRINT 0x1 +#define AF_OP_COMM 0x2 +#define AF_OP_SERVER 0x4 +#define AF_OP_ACCOUNTS 0x8 +#define AF_SETTABLE_BITS (AF_OP_PRINT | AF_OP_COMM | \ + AF_OP_SERVER | AF_OP_ACCOUNTS) + +// +// UAS role manifests under NETLOGON +// + +#define UAS_ROLE_STANDALONE 0 +#define UAS_ROLE_MEMBER 1 +#define UAS_ROLE_BACKUP 2 +#define UAS_ROLE_PRIMARY 3 + +// +// Values for ParmError for NetUserSetInfo. +// + +#define USER_NAME_PARMNUM 1 +#define USER_PASSWORD_PARMNUM 3 +#define USER_PASSWORD_AGE_PARMNUM 4 +#define USER_PRIV_PARMNUM 5 +#define USER_HOME_DIR_PARMNUM 6 +#define USER_COMMENT_PARMNUM 7 +#define USER_FLAGS_PARMNUM 8 +#define USER_SCRIPT_PATH_PARMNUM 9 +#define USER_AUTH_FLAGS_PARMNUM 10 +#define USER_FULL_NAME_PARMNUM 11 +#define USER_USR_COMMENT_PARMNUM 12 +#define USER_PARMS_PARMNUM 13 +#define USER_WORKSTATIONS_PARMNUM 14 +#define USER_LAST_LOGON_PARMNUM 15 +#define USER_LAST_LOGOFF_PARMNUM 16 +#define USER_ACCT_EXPIRES_PARMNUM 17 +#define USER_MAX_STORAGE_PARMNUM 18 +#define USER_UNITS_PER_WEEK_PARMNUM 19 +#define USER_LOGON_HOURS_PARMNUM 20 +#define USER_PAD_PW_COUNT_PARMNUM 21 +#define USER_NUM_LOGONS_PARMNUM 22 +#define USER_LOGON_SERVER_PARMNUM 23 +#define USER_COUNTRY_CODE_PARMNUM 24 +#define USER_CODE_PAGE_PARMNUM 25 +#define USER_PRIMARY_GROUP_PARMNUM 51 +#define USER_PROFILE 52 // ?? Delete when convenient +#define USER_PROFILE_PARMNUM 52 +#define USER_HOME_DIR_DRIVE_PARMNUM 53 + +// +// the new infolevel counterparts of the old info level + parmnum +// + +#define USER_NAME_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_NAME_PARMNUM) +#define USER_PASSWORD_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_PASSWORD_PARMNUM) +#define USER_PASSWORD_AGE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_PASSWORD_AGE_PARMNUM) +#define USER_PRIV_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_PRIV_PARMNUM) +#define USER_HOME_DIR_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_HOME_DIR_PARMNUM) +#define USER_COMMENT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_COMMENT_PARMNUM) +#define USER_FLAGS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_FLAGS_PARMNUM) +#define USER_SCRIPT_PATH_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_SCRIPT_PATH_PARMNUM) +#define USER_AUTH_FLAGS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_AUTH_FLAGS_PARMNUM) +#define USER_FULL_NAME_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_FULL_NAME_PARMNUM) +#define USER_USR_COMMENT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_USR_COMMENT_PARMNUM) +#define USER_PARMS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_PARMS_PARMNUM) +#define USER_WORKSTATIONS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_WORKSTATIONS_PARMNUM) +#define USER_LAST_LOGON_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_LAST_LOGON_PARMNUM) +#define USER_LAST_LOGOFF_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_LAST_LOGOFF_PARMNUM) +#define USER_ACCT_EXPIRES_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_ACCT_EXPIRES_PARMNUM) +#define USER_MAX_STORAGE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_MAX_STORAGE_PARMNUM) +#define USER_UNITS_PER_WEEK_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_UNITS_PER_WEEK_PARMNUM) +#define USER_LOGON_HOURS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_LOGON_HOURS_PARMNUM) +#define USER_PAD_PW_COUNT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_PAD_PW_COUNT_PARMNUM) +#define USER_NUM_LOGONS_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_NUM_LOGONS_PARMNUM) +#define USER_LOGON_SERVER_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_LOGON_SERVER_PARMNUM) +#define USER_COUNTRY_CODE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_COUNTRY_CODE_PARMNUM) +#define USER_CODE_PAGE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_CODE_PAGE_PARMNUM) +#define USER_PRIMARY_GROUP_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_PRIMARY_GROUP_PARMNUM) +#define USER_POSIX_ID_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_POSIX_ID_PARMNUM) +#define USER_HOME_DIR_DRIVE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + USER_HOME_DIR_DRIVE_PARMNUM) + +// +// For SetInfo call (parmnum 0) when password change not required +// + +#define NULL_USERSETINFO_PASSWD " " + +#define TIMEQ_FOREVER ((unsigned long) -1L) +#define USER_MAXSTORAGE_UNLIMITED ((unsigned long) -1L) +#define USER_NO_LOGOFF ((unsigned long) -1L) +#define UNITS_PER_DAY 24 +#define UNITS_PER_WEEK UNITS_PER_DAY * 7 + +// +// Privilege levels (USER_INFO_X field usriX_priv (X = 0/1)). +// + +#define USER_PRIV_MASK 0x3 +#define USER_PRIV_GUEST 0 +#define USER_PRIV_USER 1 +#define USER_PRIV_ADMIN 2 + +// +// user modals related defaults +// + +#define MAX_PASSWD_LEN PWLEN +#define DEF_MIN_PWLEN 6 +#define DEF_PWUNIQUENESS 5 +#define DEF_MAX_PWHIST 8 + +#define DEF_MAX_PWAGE TIMEQ_FOREVER // forever +#define DEF_MIN_PWAGE (unsigned long) 0L // 0 days +#define DEF_FORCE_LOGOFF (unsigned long) 0xffffffff // never +#define DEF_MAX_BADPW 0 // no limit +#define ONE_DAY (unsigned long) 01*24*3600 // 01 day + +// +// User Logon Validation (codes returned) +// + +#define VALIDATED_LOGON 0 +#define PASSWORD_EXPIRED 2 +#define NON_VALIDATED_LOGON 3 + +#define VALID_LOGOFF 1 + +// +// parmnum manifests for user modals +// + +#define MODALS_MIN_PASSWD_LEN_PARMNUM 1 +#define MODALS_MAX_PASSWD_AGE_PARMNUM 2 +#define MODALS_MIN_PASSWD_AGE_PARMNUM 3 +#define MODALS_FORCE_LOGOFF_PARMNUM 4 +#define MODALS_PASSWD_HIST_LEN_PARMNUM 5 +#define MODALS_ROLE_PARMNUM 6 +#define MODALS_PRIMARY_PARMNUM 7 +#define MODALS_DOMAIN_NAME_PARMNUM 8 +#define MODALS_DOMAIN_ID_PARMNUM 9 +#define MODALS_LOCKOUT_DURATION_PARMNUM 10 +#define MODALS_LOCKOUT_OBSERVATION_WINDOW_PARMNUM 11 +#define MODALS_LOCKOUT_THRESHOLD_PARMNUM 12 + +// +// the new infolevel counterparts of the old info level + parmnum +// + +#define MODALS_MIN_PASSWD_LEN_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + MODALS_MIN_PASSWD_LEN_PARMNUM) +#define MODALS_MAX_PASSWD_AGE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + MODALS_MAX_PASSWD_AGE_PARMNUM) +#define MODALS_MIN_PASSWD_AGE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + MODALS_MIN_PASSWD_AGE_PARMNUM) +#define MODALS_FORCE_LOGOFF_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + MODALS_FORCE_LOGOFF_PARMNUM) +#define MODALS_PASSWD_HIST_LEN_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + MODALS_PASSWD_HIST_LEN_PARMNUM) +#define MODALS_ROLE_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + MODALS_ROLE_PARMNUM) +#define MODALS_PRIMARY_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + MODALS_PRIMARY_PARMNUM) +#define MODALS_DOMAIN_NAME_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + MODALS_DOMAIN_NAME_PARMNUM) +#define MODALS_DOMAIN_ID_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + MODALS_DOMAIN_ID_PARMNUM) + +#endif // _LMUSER_ + +// +// Group Class +// + +#ifndef _LMGROUP_ +#define _LMGROUP_ + +// +// Function Prototypes +// + +NET_API_STATUS NET_API_FUNCTION +NetGroupAdd ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _Out_opt_ LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetGroupAddUser ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR GroupName, + _In_ LPCWSTR username + ); + +NET_API_STATUS NET_API_FUNCTION +NetGroupEnum ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ PDWORD_PTR resume_handle OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetGroupGetInfo ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetGroupSetInfo ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _Out_opt_ LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetGroupDel ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname + ); + +NET_API_STATUS NET_API_FUNCTION +NetGroupDelUser ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR GroupName, + _In_ LPCWSTR Username + ); + +NET_API_STATUS NET_API_FUNCTION +NetGroupGetUsers ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ PDWORD_PTR ResumeHandle + ); + +NET_API_STATUS NET_API_FUNCTION +NetGroupSetUsers ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _In_ DWORD totalentries + ); + +// +// Data Structures - Group +// + +typedef struct _GROUP_INFO_0 { + LPWSTR grpi0_name; +}GROUP_INFO_0, *PGROUP_INFO_0, *LPGROUP_INFO_0; + +typedef struct _GROUP_INFO_1 { + LPWSTR grpi1_name; + LPWSTR grpi1_comment; +}GROUP_INFO_1, *PGROUP_INFO_1, *LPGROUP_INFO_1; + +typedef struct _GROUP_INFO_2 { + LPWSTR grpi2_name; + LPWSTR grpi2_comment; + DWORD grpi2_group_id; + DWORD grpi2_attributes; +}GROUP_INFO_2, *PGROUP_INFO_2; + +typedef struct _GROUP_INFO_3 { + LPWSTR grpi3_name; + LPWSTR grpi3_comment; + PSID grpi3_group_sid; + DWORD grpi3_attributes; +}GROUP_INFO_3, *PGROUP_INFO_3; + +typedef struct _GROUP_INFO_1002 { + LPWSTR grpi1002_comment; +} GROUP_INFO_1002, *PGROUP_INFO_1002, *LPGROUP_INFO_1002; + +typedef struct _GROUP_INFO_1005 { + DWORD grpi1005_attributes; +} GROUP_INFO_1005, *PGROUP_INFO_1005, *LPGROUP_INFO_1005; + + +typedef struct _GROUP_USERS_INFO_0 { + LPWSTR grui0_name; +} GROUP_USERS_INFO_0, *PGROUP_USERS_INFO_0, *LPGROUP_USERS_INFO_0; + +typedef struct _GROUP_USERS_INFO_1 { + LPWSTR grui1_name; + DWORD grui1_attributes; +} GROUP_USERS_INFO_1, *PGROUP_USERS_INFO_1, *LPGROUP_USERS_INFO_1; + +// +// Special Values and Constants - Group +// + +#define GROUPIDMASK 0x8000 // MSB set if uid refers + // to a group + +// +// Predefined group for all normal users, administrators and guests +// LOCAL is a special group for pinball local security. +// + +#define GROUP_SPECIALGRP_USERS L"USERS" +#define GROUP_SPECIALGRP_ADMINS L"ADMINS" +#define GROUP_SPECIALGRP_GUESTS L"GUESTS" +#define GROUP_SPECIALGRP_LOCAL L"LOCAL" + +// +// parmnum manifests for SetInfo calls (only comment is settable) +// + +#define GROUP_ALL_PARMNUM 0 +#define GROUP_NAME_PARMNUM 1 +#define GROUP_COMMENT_PARMNUM 2 +#define GROUP_ATTRIBUTES_PARMNUM 3 + +// +// the new infolevel counterparts of the old info level + parmnum +// + +#define GROUP_ALL_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + GROUP_ALL_PARMNUM) +#define GROUP_NAME_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + GROUP_NAME_PARMNUM) +#define GROUP_COMMENT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + GROUP_COMMENT_PARMNUM) +#define GROUP_ATTRIBUTES_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + GROUP_ATTRIBUTES_PARMNUM) +#define GROUP_POSIX_ID_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + GROUP_POSIX_ID_PARMNUM) + +#endif // _LMGROUP_ + +// +// LocalGroup Class +// + +#ifndef _LMLOCALGROUP_ +#define _LMLOCALGROUP_ + +// +// Function Prototypes +// + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupAdd ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _Out_opt_ LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupAddMember ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ PSID membersid + ); + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupEnum ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ PDWORD_PTR resumehandle OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupGetInfo ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupSetInfo ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _Out_opt_ LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupDel ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname + ); + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupDelMember ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ PSID membersid + ); + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupGetMembers ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR localgroupname, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ PDWORD_PTR resumehandle + ); + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupSetMembers ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _In_ DWORD totalentries + ); + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupAddMembers ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _In_ DWORD totalentries + ); + +NET_API_STATUS NET_API_FUNCTION +NetLocalGroupDelMembers ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR groupname, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _In_ DWORD totalentries + ); + +// +// Data Structures - LocalGroup +// + +typedef struct _LOCALGROUP_INFO_0 { + LPWSTR lgrpi0_name; +}LOCALGROUP_INFO_0, *PLOCALGROUP_INFO_0, *LPLOCALGROUP_INFO_0; + +typedef struct _LOCALGROUP_INFO_1 { + LPWSTR lgrpi1_name; + LPWSTR lgrpi1_comment; +}LOCALGROUP_INFO_1, *PLOCALGROUP_INFO_1, *LPLOCALGROUP_INFO_1; + +typedef struct _LOCALGROUP_INFO_1002 { + LPWSTR lgrpi1002_comment; +}LOCALGROUP_INFO_1002, *PLOCALGROUP_INFO_1002, *LPLOCALGROUP_INFO_1002; + +typedef struct _LOCALGROUP_MEMBERS_INFO_0 { + PSID lgrmi0_sid; +} LOCALGROUP_MEMBERS_INFO_0, *PLOCALGROUP_MEMBERS_INFO_0, + *LPLOCALGROUP_MEMBERS_INFO_0; + +typedef struct _LOCALGROUP_MEMBERS_INFO_1 { + PSID lgrmi1_sid; + SID_NAME_USE lgrmi1_sidusage; + LPWSTR lgrmi1_name; +} LOCALGROUP_MEMBERS_INFO_1, *PLOCALGROUP_MEMBERS_INFO_1, + *LPLOCALGROUP_MEMBERS_INFO_1; + +typedef struct _LOCALGROUP_MEMBERS_INFO_2 { + PSID lgrmi2_sid; + SID_NAME_USE lgrmi2_sidusage; + LPWSTR lgrmi2_domainandname; +} LOCALGROUP_MEMBERS_INFO_2, *PLOCALGROUP_MEMBERS_INFO_2, + *LPLOCALGROUP_MEMBERS_INFO_2; + +typedef struct _LOCALGROUP_MEMBERS_INFO_3 { + LPWSTR lgrmi3_domainandname; +} LOCALGROUP_MEMBERS_INFO_3, *PLOCALGROUP_MEMBERS_INFO_3, + *LPLOCALGROUP_MEMBERS_INFO_3; + +typedef struct _LOCALGROUP_USERS_INFO_0 { + LPWSTR lgrui0_name; +} LOCALGROUP_USERS_INFO_0, *PLOCALGROUP_USERS_INFO_0, + *LPLOCALGROUP_USERS_INFO_0; + + +#define LOCALGROUP_NAME_PARMNUM 1 +#define LOCALGROUP_COMMENT_PARMNUM 2 + +// +// Display Information APIs +// + +NET_API_STATUS NET_API_FUNCTION +NetQueryDisplayInformation( + IN LPCWSTR ServerName OPTIONAL, + IN DWORD Level, + IN DWORD Index, + IN DWORD EntriesRequested, + IN DWORD PreferredMaximumLength, + OUT LPDWORD ReturnedEntryCount, + OUT PVOID *SortedBuffer ); + +NET_API_STATUS NET_API_FUNCTION +NetGetDisplayInformationIndex( + IN LPCWSTR ServerName OPTIONAL, + IN DWORD Level, + IN LPCWSTR Prefix, + OUT LPDWORD Index ); + +// +// QueryDisplayInformation levels + +typedef struct _NET_DISPLAY_USER { + LPWSTR usri1_name; + LPWSTR usri1_comment; + DWORD usri1_flags; + LPWSTR usri1_full_name; + DWORD usri1_user_id; + DWORD usri1_next_index; +} NET_DISPLAY_USER, *PNET_DISPLAY_USER; + +typedef struct _NET_DISPLAY_MACHINE { + LPWSTR usri2_name; + LPWSTR usri2_comment; + DWORD usri2_flags; + DWORD usri2_user_id; + DWORD usri2_next_index; +} NET_DISPLAY_MACHINE, *PNET_DISPLAY_MACHINE; + +typedef struct _NET_DISPLAY_GROUP { + LPWSTR grpi3_name; + LPWSTR grpi3_comment; + DWORD grpi3_group_id; + DWORD grpi3_attributes; + DWORD grpi3_next_index; +} NET_DISPLAY_GROUP, *PNET_DISPLAY_GROUP; + +#endif // _LMLOCALGROUP_ + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +// +// Access Class +// + +#ifndef _LMACCESS_ +#define _LMACCESS_ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Function Prototypes - Access +// + +NET_API_STATUS NET_API_FUNCTION +NetAccessAdd ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _Out_opt_ LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetAccessEnum ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR BasePath, + _In_ DWORD Recursive, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resume_handle OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetAccessGetInfo ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR resource, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetAccessSetInfo ( + _In_opt_ LPCWSTR servername OPTIONAL, + _In_ LPCWSTR resource, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _Out_opt_ LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetAccessDel ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR resource + ); + +NET_API_STATUS NET_API_FUNCTION +NetAccessGetUserPerms ( + IN LPCWSTR servername OPTIONAL, + IN LPCWSTR UGname, + IN LPCWSTR resource, + OUT LPDWORD Perms + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +// +// Data Structures - Access +// + +typedef struct _ACCESS_INFO_0 { + LPWSTR acc0_resource_name; +}ACCESS_INFO_0, *PACCESS_INFO_0, *LPACCESS_INFO_0; + +typedef struct _ACCESS_INFO_1 { + LPWSTR acc1_resource_name; + DWORD acc1_attr; + DWORD acc1_count; +}ACCESS_INFO_1, *PACCESS_INFO_1, *LPACCESS_INFO_1; + +typedef struct _ACCESS_INFO_1002 { + DWORD acc1002_attr; +} ACCESS_INFO_1002, *PACCESS_INFO_1002, *LPACCESS_INFO_1002; + + +typedef struct _ACCESS_LIST { + LPWSTR acl_ugname; + DWORD acl_access; +}ACCESS_LIST, *PACCESS_LIST, *LPACCESS_LIST; + +// +// Special Values and Constants - Access +// + +// +// Maximum number of permission entries for each resource. +// + +#define MAXPERMENTRIES 64 + +// +// Bit values for the access permissions. ACCESS_ALL is a handy +// way to specify maximum permissions. These are used in +// acl_access field of access_list structures. +// + +#define ACCESS_NONE 0 +#define ACCESS_ALL ( ACCESS_READ | \ + ACCESS_WRITE | \ + ACCESS_CREATE | \ + ACCESS_EXEC | \ + ACCESS_DELETE | \ + ACCESS_ATRIB | \ + ACCESS_PERM \ + ) + +#define ACCESS_READ 0x01 +#define ACCESS_WRITE 0x02 +#define ACCESS_CREATE 0x04 +#define ACCESS_EXEC 0x08 +#define ACCESS_DELETE 0x10 +#define ACCESS_ATRIB 0x20 +#define ACCESS_PERM 0x40 + +#define ACCESS_GROUP 0x8000 + +// +// Bit values for the acc1_attr field of the ACCESS_INFO_1 structure. +// + +#define ACCESS_AUDIT 0x1 + +#define ACCESS_SUCCESS_OPEN 0x10 +#define ACCESS_SUCCESS_WRITE 0x20 +#define ACCESS_SUCCESS_DELETE 0x40 +#define ACCESS_SUCCESS_ACL 0x80 +#define ACCESS_SUCCESS_MASK 0xF0 + +#define ACCESS_FAIL_OPEN 0x100 +#define ACCESS_FAIL_WRITE 0x200 +#define ACCESS_FAIL_DELETE 0x400 +#define ACCESS_FAIL_ACL 0x800 +#define ACCESS_FAIL_MASK 0xF00 + +#define ACCESS_FAIL_SHIFT 4 + +// +// Parmnum value for NetAccessSetInfo. +// + +#define ACCESS_RESOURCE_NAME_PARMNUM 1 +#define ACCESS_ATTR_PARMNUM 2 +#define ACCESS_COUNT_PARMNUM 3 +#define ACCESS_ACCESS_LIST_PARMNUM 4 + +// +// the new infolevel counterparts of the old info level + parmnum +// + +#define ACCESS_RESOURCE_NAME_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + ACCESS_RESOURCE_NAME_PARMNUM) +#define ACCESS_ATTR_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + ACCESS_ATTR_PARMNUM) +#define ACCESS_COUNT_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + ACCESS_COUNT_PARMNUM) +#define ACCESS_ACCESS_LIST_INFOLEVEL \ + (PARMNUM_BASE_INFOLEVEL + ACCESS_ACCESS_LIST_PARMNUM) + +// +// ACCESS_LETTERS defines a letter for each bit position in +// the acl_access field of struct access_list. Note that some +// bits have a corresponding letter of ' ' (space). +// + +#define ACCESS_LETTERS "RWCXDAP " + + + +// ******************************** +// +// Password Checking API structures +// +// ******************************** + + +// +// What kind of password checking is to be performed? +// NetValidateAuthentication : Check if the authentication can be done +// NetValidatePasswordChange: Check if the password can be changed +// NetValidatePasswordReset: Reset the password to the given value +// +typedef enum _NET_VALIDATE_PASSWORD_TYPE{ + NetValidateAuthentication = 1, + NetValidatePasswordChange, + NetValidatePasswordReset +} NET_VALIDATE_PASSWORD_TYPE, *PNET_VALIDATE_PASSWORD_TYPE; + +// +// Structure to keep the password hash +// +typedef struct _NET_VALIDATE_PASSWORD_HASH{ + ULONG Length; + LPBYTE Hash; +} NET_VALIDATE_PASSWORD_HASH, *PNET_VALIDATE_PASSWORD_HASH; + +// To be used with PresentFields member of NET_VALIDATE_PERSISTED_FIELDS +#define NET_VALIDATE_PASSWORD_LAST_SET 0x00000001 +#define NET_VALIDATE_BAD_PASSWORD_TIME 0x00000002 +#define NET_VALIDATE_LOCKOUT_TIME 0x00000004 +#define NET_VALIDATE_BAD_PASSWORD_COUNT 0x00000008 +#define NET_VALIDATE_PASSWORD_HISTORY_LENGTH 0x00000010 +#define NET_VALIDATE_PASSWORD_HISTORY 0x00000020 + +#if !defined(_WINBASE_) && !defined(_FILETIME_) +#define _FILETIME_ +typedef struct _FILETIME +{ + DWORD dwLowDateTime; + DWORD dwHighDateTime; +} FILETIME, FAR * LPFILETIME, *PFILETIME; +#endif + +// +// Structure to keep information about the password and related things. +// Present Fields: (used only in output args) which fields are changed. +// See the constants above. +// PasswordLastSet: When the password is last set. +// BadPasswordTime: When the password was incorrect for the last time. +// LockoutTime: When the account is locked out. If the account is not locked out +// it is 0. +// BadPasswordCount: How many times the password has given incorrectly in the +// Observation Window. +// PasswordHistoryLength: How many passwords are kept in the history +// PasswordHistory: Password hashes that are in the history +// +typedef struct _NET_VALIDATE_PERSISTED_FIELDS{ + ULONG PresentFields; + FILETIME PasswordLastSet; + FILETIME BadPasswordTime; + FILETIME LockoutTime; + ULONG BadPasswordCount; + ULONG PasswordHistoryLength; + PNET_VALIDATE_PASSWORD_HASH PasswordHistory; +} NET_VALIDATE_PERSISTED_FIELDS, *PNET_VALIDATE_PERSISTED_FIELDS; + +// +// Output Arg +// ChangedPersistedFields: Any changes to the password related info +// ValidationStatus: Shows the result of the request +// +typedef struct _NET_VALIDATE_OUTPUT_ARG{ + NET_VALIDATE_PERSISTED_FIELDS ChangedPersistedFields; + NET_API_STATUS ValidationStatus; +} NET_VALIDATE_OUTPUT_ARG, *PNET_VALIDATE_OUTPUT_ARG; + +// +// If authentication type of password check is to be made, +// this kind of input must be used +// +// InputPersistedFields: Information about the account to be logged into +// PasswordMatched: Indicates the result of the application's authentication of the supplied password +// +typedef struct _NET_VALIDATE_AUTHENTICATION_INPUT_ARG{ + NET_VALIDATE_PERSISTED_FIELDS InputPersistedFields; + BOOLEAN PasswordMatched; +} NET_VALIDATE_AUTHENTICATION_INPUT_ARG, *PNET_VALIDATE_AUTHENTICATION_INPUT_ARG; + +// +// If password change type of check is to be made, +// this kind of input must be used +// +// InputPersistedFields: Information about the account to be logged into +// ClearPassword: The string which password is going to be +// UserAccountName: Name of the user account +// HashedPassword: Hash of the string that the password is going to be +// PasswordMatch: denotes if the old password supplied by user matched or not +// +typedef struct _NET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG{ + NET_VALIDATE_PERSISTED_FIELDS InputPersistedFields; + LPWSTR ClearPassword; + LPWSTR UserAccountName; + NET_VALIDATE_PASSWORD_HASH HashedPassword; + BOOLEAN PasswordMatch; +} NET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG, *PNET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG; + +// +// If password reset type of check is to be made, +// this kind of input must be used +// +// InputPersistedFields: Information about the account to be logged into +// ClearPassword: The string which password is going to be +// UserAccountName: Name of the user account +// HashedPassword: Hash of the string that the password is going to be +// PasswordMustChangeAtNextLogon: Password must change for the user to be logged in +// ClearLockout: If the account was locked out, this field can be used to clear lockout +// +typedef struct _NET_VALIDATE_PASSWORD_RESET_INPUT_ARG{ + NET_VALIDATE_PERSISTED_FIELDS InputPersistedFields; + LPWSTR ClearPassword; + LPWSTR UserAccountName; + NET_VALIDATE_PASSWORD_HASH HashedPassword; + BOOLEAN PasswordMustChangeAtNextLogon; + BOOLEAN ClearLockout; +} NET_VALIDATE_PASSWORD_RESET_INPUT_ARG, *PNET_VALIDATE_PASSWORD_RESET_INPUT_ARG; + +// +// Password Checking API structures end here +// + +NET_API_STATUS NET_API_FUNCTION +NetValidatePasswordPolicy( + IN LPCWSTR ServerName, + IN LPVOID Qualifier, + IN NET_VALIDATE_PASSWORD_TYPE ValidationType, + IN LPVOID InputArg, + OUT LPVOID *OutputArg + ); + +NET_API_STATUS NET_API_FUNCTION +NetValidatePasswordPolicyFree( + IN LPVOID *OutputArg + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif // _LMACCESS_ + +// +// Domain Class +// + +#ifndef _LMDOMAIN_ +#define _LMDOMAIN_ + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +// +// Function Prototypes - Domain +// + +_Success_(return == ERROR_SUCCESS) +NET_API_STATUS NET_API_FUNCTION +NetGetDCName ( + _In_opt_ LPCWSTR ServerName, + _In_opt_ LPCWSTR DomainName, + _Outptr_result_nullonfailure_ _At_((LPWSTR *)Buffer, _Outptr_result_z_) + LPBYTE *Buffer + ); + +_Success_(return == ERROR_SUCCESS) +NET_API_STATUS NET_API_FUNCTION +NetGetAnyDCName ( + _In_opt_ LPCWSTR ServerName, + _In_opt_ LPCWSTR DomainName, + _Outptr_result_nullonfailure_ _At_((LPWSTR *)Buffer, _Outptr_result_z_) + LPBYTE *Buffer + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +NET_API_STATUS NET_API_FUNCTION +I_NetLogonControl( + _In_opt_ LPCWSTR ServerName OPTIONAL, + _In_ DWORD FunctionCode, + _In_ DWORD QueryLevel, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *Buffer + ); + +NET_API_STATUS NET_API_FUNCTION +I_NetLogonControl2( + _In_opt_ LPCWSTR ServerName OPTIONAL, + _In_ DWORD FunctionCode, + _In_ DWORD QueryLevel, + _In_reads_(_Inexpressible_("varies")) LPBYTE Data, + _Outptr_result_buffer_(_Inexpressible_("varies")) LPBYTE *Buffer + ); + +#ifndef _NTDEF_ +typedef _Return_type_success_(return >= 0) LONG NTSTATUS, *PNTSTATUS; +#endif + +NTSTATUS NET_API_FUNCTION +NetEnumerateTrustedDomains ( + _In_opt_ IN LPWSTR ServerName OPTIONAL, + _Outptr_ OUT LPWSTR *DomainNames + ); + + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +// +// Special Values and Constants - Domain +// + +// +// FunctionCode values for I_NetLogonControl. +// +// NOTE : if you change the following NETLOGON_CONTROL_* values, +// change them in net\svcdlls\logonsrv\logon.idl file also. +// + +#define NETLOGON_CONTROL_QUERY 1 // No-op: just query +#define NETLOGON_CONTROL_REPLICATE 2 // Force replicate on BDC +#define NETLOGON_CONTROL_SYNCHRONIZE 3 // Force synchronize on BDC +#define NETLOGON_CONTROL_PDC_REPLICATE 4 // Force PDC to broadcast change +#define NETLOGON_CONTROL_REDISCOVER 5 // Force to re-discover trusted domain DCs +#define NETLOGON_CONTROL_TC_QUERY 6 // Query status of specified trusted channel status +#define NETLOGON_CONTROL_TRANSPORT_NOTIFY 7 // Notify netlogon that a new transport has come online +#define NETLOGON_CONTROL_FIND_USER 8 // Find named user in a trusted domain +#define NETLOGON_CONTROL_CHANGE_PASSWORD 9 // Change machine password on a secure channel to a trusted domain +#define NETLOGON_CONTROL_TC_VERIFY 10 // Verify status of specified trusted channel +#define NETLOGON_CONTROL_FORCE_DNS_REG 11 // Force DNS re-registration of all registered records +#define NETLOGON_CONTROL_QUERY_DNS_REG 12 // Query the status of DNS updates +#define NETLOGON_CONTROL_QUERY_ENC_TYPES 13 // Query the supported encryption types + +// Debug function codes + +#define NETLOGON_CONTROL_UNLOAD_NETLOGON_DLL 0xFFFB +#define NETLOGON_CONTROL_BACKUP_CHANGE_LOG 0xFFFC +#define NETLOGON_CONTROL_TRUNCATE_LOG 0xFFFD +#define NETLOGON_CONTROL_SET_DBFLAG 0xFFFE +#define NETLOGON_CONTROL_BREAKPOINT 0xFFFF + +// +// Query level 1 for I_NetLogonControl +// + +typedef struct _NETLOGON_INFO_1 { + DWORD netlog1_flags; + NET_API_STATUS netlog1_pdc_connection_status; +} NETLOGON_INFO_1, *PNETLOGON_INFO_1; + +typedef struct _NETLOGON_INFO_2 { + DWORD netlog2_flags; + + // + // If NETLOGON_VERIFY_STATUS_RETURNED bit is set in + // netlog2_flags, the following field will return + // the status of trust verification. Otherwise, + // the field will return the status of the secure + // channel to the primary domain of the machine + // (useful for BDCs only). + // + NET_API_STATUS netlog2_pdc_connection_status; +#ifdef MIDL_PASS + [string,range(0,LM_DNS_MAX_NAME_LENGTH+1)] wchar_t * netlog2_trusted_dc_name; +#else + LPWSTR netlog2_trusted_dc_name; +#endif // MIDL_PASS + NET_API_STATUS netlog2_tc_connection_status; +} NETLOGON_INFO_2, *PNETLOGON_INFO_2; + +typedef struct _NETLOGON_INFO_3 { + DWORD netlog3_flags; + DWORD netlog3_logon_attempts; + DWORD netlog3_reserved1; + DWORD netlog3_reserved2; + DWORD netlog3_reserved3; + DWORD netlog3_reserved4; + DWORD netlog3_reserved5; +} NETLOGON_INFO_3, *PNETLOGON_INFO_3; + +typedef struct _NETLOGON_INFO_4 { +#ifdef MIDL_PASS + [string,range(0,LM_DNS_MAX_NAME_LENGTH+1)] wchar_t * netlog4_trusted_dc_name; + [string,range(0,LM_DNS_MAX_NAME_LENGTH+1)] wchar_t * netlog4_trusted_domain_name; +#else + LPWSTR netlog4_trusted_dc_name; + LPWSTR netlog4_trusted_domain_name; +#endif // MIDL_PASS +} NETLOGON_INFO_4, *PNETLOGON_INFO_4; + +// +// Values of netlog1_flags +// + +#define NETLOGON_REPLICATION_NEEDED 0x01 // Database is out of date +#define NETLOGON_REPLICATION_IN_PROGRESS 0x02 // Replication is happening now +#define NETLOGON_FULL_SYNC_REPLICATION 0x04 // full sync replication required/progress +#define NETLOGON_REDO_NEEDED 0x08 // Redo of previous replication needed +#define NETLOGON_HAS_IP 0x10 // The trusted domain DC has an IP address +#define NETLOGON_HAS_TIMESERV 0x20 // The trusted domain DC runs the Windows Time Service +#define NETLOGON_DNS_UPDATE_FAILURE 0x40 // There was a failure in the last update for one of the DNS records +#define NETLOGON_VERIFY_STATUS_RETURNED 0x80 // Trust verification status returned in netlog2_pdc_connection_status + +#define SERVICE_ACCOUNT_PASSWORD TEXT("_SA_{262E99C9-6160-4871-ACEC-4E61736B6F21}") +#define SERVICE_ACCOUNT_SECRET_PREFIX TEXT("_SC_{262E99C9-6160-4871-ACEC-4E61736B6F21}_") +#define DELEGATED_MANAGED_SERVICE_ACCOUNT_PASSWORD TEXT("_SA_{F8262F4C-499B-4770-88B4-A75C91D0D8E9}") + +DEFINE_GUID( //262e99c9-6160-4871-acec-4e61736b6f21 + ServiceAccountPasswordGUID, + 0x262E99C9, + 0x6160, + 0x4871, + 0xAC, 0xEC, 0x4E, 0x61, 0x73, 0x6B, 0x6F, 0x21 ); + +NTSTATUS +NetAddServiceAccount( + _In_opt_ LPWSTR ServerName, + _In_ LPWSTR AccountName, + _In_ LPWSTR Password, + _In_ DWORD Flags); + +// Do not create an account by this name +// Only link this account to my computer if it exists +#define SERVICE_ACCOUNT_FLAG_LINK_TO_HOST_ONLY 0x00000001L + +// Add the service account against an RODC +// The account must already exist and be linked +// The third parameter contains the preset password +#define SERVICE_ACCOUNT_FLAG_ADD_AGAINST_RODC 0x00000002L + +// Do not delete the service account object from AD +// Simply unlink it from this computer and delete the local secret +#define SERVICE_ACCOUNT_FLAG_UNLINK_FROM_HOST_ONLY 0x00000001L + +// Remove the account from password management on the local +// machine. The DC is unavailable or read-only so do not +// attempt to unlink or delete the account +#define SERVICE_ACCOUNT_FLAG_REMOVE_OFFLINE 0x00000002L + +NTSTATUS +NetRemoveServiceAccount( + _In_opt_ LPWSTR ServerName, + _In_ LPWSTR AccountName, + _In_ DWORD Flags); + +NTSTATUS +NetEnumerateServiceAccounts( + _In_opt_ LPWSTR ServerName, + _In_ DWORD Flags, + _Out_ DWORD* AccountsCount, + _Outptr_result_buffer_(*AccountsCount) PZPWSTR* Accounts); + +NTSTATUS +NetIsServiceAccount( + _In_opt_ LPWSTR ServerName, + _In_ LPWSTR AccountName, + _Out_ BOOL *IsService); + +NTSTATUS +NetIsServiceAccount2( + _In_opt_ LPWSTR ServerName, + _In_ LPWSTR AccountName, + _Out_ BOOL * IsService, + _Out_ MSA_INFO_ACCOUNT_TYPE * AccountType); + +NTSTATUS +NetQueryServiceAccount( + _In_opt_ LPWSTR ServerName, + _In_ LPWSTR AccountName, + _In_ DWORD InfoLevel, + _Outptr_ PBYTE* Buffer); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _LMDOMAIN_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMalert.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMalert.h new file mode 100644 index 0000000000000000000000000000000000000000..2df437fc5cd93396b447b71a7aee925b38b5e318 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMalert.h @@ -0,0 +1,167 @@ +/*++ BUILD Version: 0003 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + alert.h + +Abstract: + + This file contains structures for communication with the Alerter + service. + +Environment: + + User Mode - Win32 + +Notes: + + You must include LmCons.H before this file, since this file depends + on values defined in LmCons.H. + + ALERT.H includes ALERTMSG.H which defines the alert message numbers + + +--*/ + + +#ifndef _ALERT_ +#define _ALERT_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Function Prototypes +// + +NET_API_STATUS NET_API_FUNCTION +NetAlertRaise( + _In_ LPCWSTR AlertType, + _In_ LPVOID Buffer, + _In_ DWORD BufferSize + ); + +NET_API_STATUS NET_API_FUNCTION +NetAlertRaiseEx( + _In_ LPCWSTR AlertType, + _In_ LPVOID VariableInfo, + _In_ DWORD VariableInfoSize, + _In_ LPCWSTR ServiceName + ); + + +// +// Data Structures +// + +typedef struct _STD_ALERT { + DWORD alrt_timestamp; + WCHAR alrt_eventname[EVLEN + 1]; + WCHAR alrt_servicename[SNLEN + 1]; +}STD_ALERT, *PSTD_ALERT, *LPSTD_ALERT; + +typedef struct _ADMIN_OTHER_INFO { + DWORD alrtad_errcode; + DWORD alrtad_numstrings; +}ADMIN_OTHER_INFO, *PADMIN_OTHER_INFO, *LPADMIN_OTHER_INFO; + +typedef struct _ERRLOG_OTHER_INFO { + DWORD alrter_errcode; + DWORD alrter_offset; +}ERRLOG_OTHER_INFO, *PERRLOG_OTHER_INFO, *LPERRLOG_OTHER_INFO; + +typedef struct _PRINT_OTHER_INFO { + DWORD alrtpr_jobid; + DWORD alrtpr_status; + DWORD alrtpr_submitted; + DWORD alrtpr_size; +}PRINT_OTHER_INFO, *PPRINT_OTHER_INFO, *LPPRINT_OTHER_INFO; + +typedef struct _USER_OTHER_INFO { + DWORD alrtus_errcode; + DWORD alrtus_numstrings; +}USER_OTHER_INFO, *PUSER_OTHER_INFO, *LPUSER_OTHER_INFO; + +// +// Special Values and Constants +// + +// +// Name of mailslot to send alert notifications +// +#define ALERTER_MAILSLOT L"\\\\.\\MAILSLOT\\Alerter" + +// +// The following macro gives a pointer to the other_info data. +// It takes an alert structure and returns a pointer to structure +// beyond the standard portion. +// + +#define ALERT_OTHER_INFO(x) ((LPBYTE)(x) + sizeof(STD_ALERT)) + +// +// The following macro gives a pointer to the variable-length data. +// It takes a pointer to one of the other-info structs and returns a +// pointer to the variable data portion. +// + +#define ALERT_VAR_DATA(p) ((LPBYTE)(p) + sizeof(*p)) + +// +// Names of standard Microsoft-defined alert events. +// + +#define ALERT_PRINT_EVENT L"PRINTING" +#define ALERT_MESSAGE_EVENT L"MESSAGE" +#define ALERT_ERRORLOG_EVENT L"ERRORLOG" +#define ALERT_ADMIN_EVENT L"ADMIN" +#define ALERT_USER_EVENT L"USER" + +// +// Bitmap masks for prjob_status field of PRINTJOB. +// + +// 2-7 bits also used in device status + +#define PRJOB_QSTATUS 0x3 // Bits 0,1 +#define PRJOB_DEVSTATUS 0x1fc // 2-8 bits +#define PRJOB_COMPLETE 0x4 // Bit 2 +#define PRJOB_INTERV 0x8 // Bit 3 +#define PRJOB_ERROR 0x10 // Bit 4 +#define PRJOB_DESTOFFLINE 0x20 // Bit 5 +#define PRJOB_DESTPAUSED 0x40 // Bit 6 +#define PRJOB_NOTIFY 0x80 // BIT 7 +#define PRJOB_DESTNOPAPER 0x100 // BIT 8 +#define PRJOB_DELETED 0x8000 // BIT 15 + +// +// Values of PRJOB_QSTATUS bits in prjob_status field of PRINTJOB. +// + +#define PRJOB_QS_QUEUED 0 +#define PRJOB_QS_PAUSED 1 +#define PRJOB_QS_SPOOLING 2 +#define PRJOB_QS_PRINTING 3 + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _ALERT_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMat.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMat.h new file mode 100644 index 0000000000000000000000000000000000000000..0150fb55966155767a8c55e32fac8e3c75d86717 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMat.h @@ -0,0 +1,150 @@ +/*++ BUILD Version: 0006 // Increment this if a change has global effects + +Copyright (c) 1992-1999 Microsoft Corporation + +Module Name: + + lmat.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for the schedule service API-s. + +Environment: + + User Mode - Win32 + Portable to any flat, 32-bit environment. (Uses Win32 typedefs.) + Requires ANSI C extensions: slash-slash comments, long external names. + +Notes: + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +Revision History: + +--*/ + +#ifndef _LMAT_ +#define _LMAT_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// The following bits are used with Flags field in structures below. +// + +// +// Do we exec programs for this job periodically (/EVERY switch) +// or one time (/NEXT switch). +// +#define JOB_RUN_PERIODICALLY 0x01 // set if EVERY + + +// +// Was there an error last time we tried to exec a program on behalf of +// this job. +// This flag is meaningfull on output only! +// +#define JOB_EXEC_ERROR 0x02 // set if error + +// +// Will this job run today or tomorrow. +// This flag is meaningfull on output only! +// +#define JOB_RUNS_TODAY 0x04 // set if today + +// +// Add current day of the month to DaysOfMonth input. +// This flag is meaningfull on input only! +// +#define JOB_ADD_CURRENT_DATE 0x08 // set if to add current date + + +// +// Will this job be run interactively or not. Windows NT 3.1 do not +// know about this bit, i.e. they submit interactive jobs only. +// +#define JOB_NONINTERACTIVE 0x10 // set for noninteractive + + +#define JOB_INPUT_FLAGS ( JOB_RUN_PERIODICALLY | \ + JOB_ADD_CURRENT_DATE | \ + JOB_NONINTERACTIVE ) + +#define JOB_OUTPUT_FLAGS ( JOB_RUN_PERIODICALLY | \ + JOB_EXEC_ERROR | \ + JOB_RUNS_TODAY | \ + JOB_NONINTERACTIVE ) + + + +typedef struct _AT_INFO { + DWORD_PTR JobTime; + DWORD DaysOfMonth; + UCHAR DaysOfWeek; + UCHAR Flags; + LPWSTR Command; +} AT_INFO, *PAT_INFO, *LPAT_INFO; + +typedef struct _AT_ENUM { + DWORD JobId; + DWORD_PTR JobTime; + DWORD DaysOfMonth; + UCHAR DaysOfWeek; + UCHAR Flags; + LPWSTR Command; +} AT_ENUM, *PAT_ENUM, *LPAT_ENUM; + +NET_API_STATUS NET_API_FUNCTION +NetScheduleJobAdd( + IN LPCWSTR Servername OPTIONAL, + IN LPBYTE Buffer, + OUT LPDWORD JobId + ); + +NET_API_STATUS NET_API_FUNCTION +NetScheduleJobDel( + IN LPCWSTR Servername OPTIONAL, + IN DWORD MinJobId, + IN DWORD MaxJobId + ); + +NET_API_STATUS NET_API_FUNCTION +NetScheduleJobEnum( + IN LPCWSTR Servername OPTIONAL, + OUT LPBYTE * PointerToBuffer, + IN DWORD PrefferedMaximumLength, + OUT LPDWORD EntriesRead, + OUT LPDWORD TotalEntries, + IN OUT LPDWORD ResumeHandle + ); + +NET_API_STATUS NET_API_FUNCTION +NetScheduleJobGetInfo( + IN LPCWSTR Servername OPTIONAL, + IN DWORD JobId, + OUT LPBYTE * PointerToBuffer + ); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _LMAT_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMaudit.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMaudit.h new file mode 100644 index 0000000000000000000000000000000000000000..b80506543f8e245b626926a7e05b18975fad3b81 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LMaudit.h @@ -0,0 +1,415 @@ +/*++ BUILD Version: 0003 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmaudit.h + +Abstract: + + This module defines the API function prototypes and data structures + for the following groups of NT API functions: + NetAudit + +Environment: + + User Mode - Win32 + +Notes: + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +--*/ + +#ifndef _LMAUDIT_ +#define _LMAUDIT_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef _LMHLOGDEFINED_ +#define _LMHLOGDEFINED_ + +typedef struct _HLOG { + DWORD time; + DWORD last_flags; + DWORD offset; + DWORD rec_offset; +} HLOG, *PHLOG, *LPHLOG; + +#define LOGFLAGS_FORWARD 0 +#define LOGFLAGS_BACKWARD 0x1 +#define LOGFLAGS_SEEK 0x2 + +#endif + +// +// Function Prototypes - Audit +// + +#pragma warning(push) + // SAL Annotations not available for obsolete APIs +#pragma warning(disable:28740) + +NET_API_STATUS NET_API_FUNCTION +NetAuditClear ( + IN LPCWSTR server OPTIONAL, + IN LPCWSTR backupfile OPTIONAL, + IN LPCWSTR service OPTIONAL // WARNING: buggy support before LM 2.0C!! + ); + +NET_API_STATUS NET_API_FUNCTION +NetAuditRead ( + IN LPCWSTR server OPTIONAL, + IN LPCWSTR service OPTIONAL, // WARNING: buggy support before LM 2.0C!! + IN LPHLOG auditloghandle, + IN DWORD offset, + IN LPDWORD reserved1 OPTIONAL, + IN DWORD reserved2, + IN DWORD offsetflag, + OUT LPBYTE *bufptr, + IN DWORD prefmaxlen, + OUT LPDWORD bytesread, + OUT LPDWORD totalavailable + ); + +NET_API_STATUS NET_API_FUNCTION +NetAuditWrite ( + IN DWORD type, + IN LPBYTE buf, + IN DWORD numbytes, + IN LPCWSTR service OPTIONAL, + IN LPBYTE reserved OPTIONAL + ); + +#pragma warning(pop) + +// +// Data Structures - Audit +// + +typedef struct _AUDIT_ENTRY { + DWORD ae_len; + DWORD ae_reserved; + DWORD ae_time; + DWORD ae_type; + DWORD ae_data_offset; /* Offset from beginning + address of audit_entry */ + DWORD ae_data_size; // byte count of ae_data area (not incl pad). +} AUDIT_ENTRY, *PAUDIT_ENTRY, *LPAUDIT_ENTRY; + +#define REVISED_AUDIT_ENTRY_STRUCT + + +typedef struct _AE_SRVSTATUS { + DWORD ae_sv_status; +} AE_SRVSTATUS, *PAE_SRVSTATUS, *LPAE_SRVSTATUS; + +typedef struct _AE_SESSLOGON { + DWORD ae_so_compname; + DWORD ae_so_username; + DWORD ae_so_privilege; +} AE_SESSLOGON, *PAE_SESSLOGON, *LPAE_SESSLOGON; + +typedef struct _AE_SESSLOGOFF { + DWORD ae_sf_compname; + DWORD ae_sf_username; + DWORD ae_sf_reason; +} AE_SESSLOGOFF, *PAE_SESSLOGOFF, *LPAE_SESSLOGOFF; + +typedef struct _AE_SESSPWERR { + DWORD ae_sp_compname; + DWORD ae_sp_username; +} AE_SESSPWERR, *PAE_SESSPWERR, *LPAE_SESSPWERR; + +typedef struct _AE_CONNSTART { + DWORD ae_ct_compname; + DWORD ae_ct_username; + DWORD ae_ct_netname; + DWORD ae_ct_connid; +} AE_CONNSTART, *PAE_CONNSTART, *LPAE_CONNSTART; + +typedef struct _AE_CONNSTOP { + DWORD ae_cp_compname; + DWORD ae_cp_username; + DWORD ae_cp_netname; + DWORD ae_cp_connid; + DWORD ae_cp_reason; +} AE_CONNSTOP, *PAE_CONNSTOP, *LPAE_CONNSTOP; + +typedef struct _AE_CONNREJ { + DWORD ae_cr_compname; + DWORD ae_cr_username; + DWORD ae_cr_netname; + DWORD ae_cr_reason; +} AE_CONNREJ, *PAE_CONNREJ, *LPAE_CONNREJ; + +typedef struct _AE_RESACCESS { + DWORD ae_ra_compname; + DWORD ae_ra_username; + DWORD ae_ra_resname; + DWORD ae_ra_operation; + DWORD ae_ra_returncode; + DWORD ae_ra_restype; + DWORD ae_ra_fileid; +} AE_RESACCESS, *PAE_RESACCESS, *LPAE_RESACCESS; + +typedef struct _AE_RESACCESSREJ { + DWORD ae_rr_compname; + DWORD ae_rr_username; + DWORD ae_rr_resname; + DWORD ae_rr_operation; +} AE_RESACCESSREJ, *PAE_RESACCESSREJ, *LPAE_RESACCESSREJ; + +typedef struct _AE_CLOSEFILE { + DWORD ae_cf_compname; + DWORD ae_cf_username; + DWORD ae_cf_resname; + DWORD ae_cf_fileid; + DWORD ae_cf_duration; + DWORD ae_cf_reason; +} AE_CLOSEFILE, *PAE_CLOSEFILE, *LPAE_CLOSEFILE; + +typedef struct _AE_SERVICESTAT { + DWORD ae_ss_compname; + DWORD ae_ss_username; + DWORD ae_ss_svcname; + DWORD ae_ss_status; + DWORD ae_ss_code; + DWORD ae_ss_text; + DWORD ae_ss_returnval; +} AE_SERVICESTAT, *PAE_SERVICESTAT, *LPAE_SERVICESTAT; + +typedef struct _AE_ACLMOD { + DWORD ae_am_compname; + DWORD ae_am_username; + DWORD ae_am_resname; + DWORD ae_am_action; + DWORD ae_am_datalen; +} AE_ACLMOD, *PAE_ACLMOD, *LPAE_ACLMOD; + +typedef struct _AE_UASMOD { + DWORD ae_um_compname; + DWORD ae_um_username; + DWORD ae_um_resname; + DWORD ae_um_rectype; + DWORD ae_um_action; + DWORD ae_um_datalen; +} AE_UASMOD, *PAE_UASMOD, *LPAE_UASMOD; + +typedef struct _AE_NETLOGON { + DWORD ae_no_compname; + DWORD ae_no_username; + DWORD ae_no_privilege; + DWORD ae_no_authflags; +} AE_NETLOGON, *PAE_NETLOGON, *LPAE_NETLOGON; + +typedef struct _AE_NETLOGOFF { + DWORD ae_nf_compname; + DWORD ae_nf_username; + DWORD ae_nf_reserved1; + DWORD ae_nf_reserved2; +} AE_NETLOGOFF, *PAE_NETLOGOFF, *LPAE_NETLOGOFF; + +typedef struct _AE_ACCLIM { + DWORD ae_al_compname; + DWORD ae_al_username; + DWORD ae_al_resname; + DWORD ae_al_limit; +} AE_ACCLIM, *PAE_ACCLIM, *LPAE_ACCLIM; + +#define ACTION_LOCKOUT 00 +#define ACTION_ADMINUNLOCK 01 + +typedef struct _AE_LOCKOUT { + DWORD ae_lk_compname; // Ptr to computername of client. + DWORD ae_lk_username; // Ptr to username of client (NULL + // if same as computername). + DWORD ae_lk_action; // Action taken on account: + // 0 means locked out, 1 means not. + DWORD ae_lk_bad_pw_count; // Bad password count at the time + // of lockout. +} AE_LOCKOUT, *PAE_LOCKOUT, *LPAE_LOCKOUT; + +typedef struct _AE_GENERIC { + DWORD ae_ge_msgfile; + DWORD ae_ge_msgnum; + DWORD ae_ge_params; + DWORD ae_ge_param1; + DWORD ae_ge_param2; + DWORD ae_ge_param3; + DWORD ae_ge_param4; + DWORD ae_ge_param5; + DWORD ae_ge_param6; + DWORD ae_ge_param7; + DWORD ae_ge_param8; + DWORD ae_ge_param9; +} AE_GENERIC, *PAE_GENERIC, *LPAE_GENERIC; + +// +// Special Values and Constants - Audit +// + +// +// Audit entry types (field ae_type in audit_entry). +// + +#define AE_SRVSTATUS 0 +#define AE_SESSLOGON 1 +#define AE_SESSLOGOFF 2 +#define AE_SESSPWERR 3 +#define AE_CONNSTART 4 +#define AE_CONNSTOP 5 +#define AE_CONNREJ 6 +#define AE_RESACCESS 7 +#define AE_RESACCESSREJ 8 +#define AE_CLOSEFILE 9 +#define AE_SERVICESTAT 11 +#define AE_ACLMOD 12 +#define AE_UASMOD 13 +#define AE_NETLOGON 14 +#define AE_NETLOGOFF 15 +#define AE_NETLOGDENIED 16 +#define AE_ACCLIMITEXCD 17 +#define AE_RESACCESS2 18 +#define AE_ACLMODFAIL 19 +#define AE_LOCKOUT 20 +#define AE_GENERIC_TYPE 21 +// +// Values for ae_ss_status field of ae_srvstatus. +// + +#define AE_SRVSTART 0 +#define AE_SRVPAUSED 1 +#define AE_SRVCONT 2 +#define AE_SRVSTOP 3 + +// +// Values for ae_so_privilege field of ae_sesslogon. +// + +#define AE_GUEST 0 +#define AE_USER 1 +#define AE_ADMIN 2 + +// +// Values for various ae_XX_reason fields. +// + +#define AE_NORMAL 0 +#define AE_USERLIMIT 0 +#define AE_GENERAL 0 +#define AE_ERROR 1 +#define AE_SESSDIS 1 +#define AE_BADPW 1 +#define AE_AUTODIS 2 +#define AE_UNSHARE 2 +#define AE_ADMINPRIVREQD 2 +#define AE_ADMINDIS 3 +#define AE_NOACCESSPERM 3 +#define AE_ACCRESTRICT 4 + +#define AE_NORMAL_CLOSE 0 +#define AE_SES_CLOSE 1 +#define AE_ADMIN_CLOSE 2 + +// +// Values for xx_subreason fields. +// + +#define AE_LIM_UNKNOWN 0 +#define AE_LIM_LOGONHOURS 1 +#define AE_LIM_EXPIRED 2 +#define AE_LIM_INVAL_WKSTA 3 +#define AE_LIM_DISABLED 4 +#define AE_LIM_DELETED 5 + +// +// Values for xx_action fields +// + +#define AE_MOD 0 +#define AE_DELETE 1 +#define AE_ADD 2 + +// +// Types of UAS record for um_rectype field +// + +#define AE_UAS_USER 0 +#define AE_UAS_GROUP 1 +#define AE_UAS_MODALS 2 + +// +// Bitmasks for auditing events +// +// The parentheses around the hex constants broke h_to_inc +// and have been purged from the face of the earth. +// + +#define SVAUD_SERVICE 0x1 +#define SVAUD_GOODSESSLOGON 0x6 +#define SVAUD_BADSESSLOGON 0x18 +#define SVAUD_SESSLOGON (SVAUD_GOODSESSLOGON | SVAUD_BADSESSLOGON) +#define SVAUD_GOODNETLOGON 0x60 +#define SVAUD_BADNETLOGON 0x180 +#define SVAUD_NETLOGON (SVAUD_GOODNETLOGON | SVAUD_BADNETLOGON) +#define SVAUD_LOGON (SVAUD_NETLOGON | SVAUD_SESSLOGON) +#define SVAUD_GOODUSE 0x600 +#define SVAUD_BADUSE 0x1800 +#define SVAUD_USE (SVAUD_GOODUSE | SVAUD_BADUSE) +#define SVAUD_USERLIST 0x2000 +#define SVAUD_PERMISSIONS 0x4000 +#define SVAUD_RESOURCE 0x8000 +#define SVAUD_LOGONLIM 0x00010000 + +// +// Resource access audit bitmasks. +// + +#define AA_AUDIT_ALL 0x0001 +#define AA_A_OWNER 0x0004 +#define AA_CLOSE 0x0008 +#define AA_S_OPEN 0x0010 +#define AA_S_WRITE 0x0020 +#define AA_S_CREATE 0x0020 +#define AA_S_DELETE 0x0040 +#define AA_S_ACL 0x0080 +#define AA_S_ALL ( AA_S_OPEN | AA_S_WRITE | AA_S_DELETE | AA_S_ACL) +#define AA_F_OPEN 0x0100 +#define AA_F_WRITE 0x0200 +#define AA_F_CREATE 0x0200 +#define AA_F_DELETE 0x0400 +#define AA_F_ACL 0x0800 +#define AA_F_ALL ( AA_F_OPEN | AA_F_WRITE | AA_F_DELETE | AA_F_ACL) + +// Pinball-specific +#define AA_A_OPEN 0x1000 +#define AA_A_WRITE 0x2000 +#define AA_A_CREATE 0x2000 +#define AA_A_DELETE 0x4000 +#define AA_A_ACL 0x8000 +#define AA_A_ALL ( AA_F_OPEN | AA_F_WRITE | AA_F_DELETE | AA_F_ACL) + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _LMAUDIT_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LicenseProtection.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LicenseProtection.h new file mode 100644 index 0000000000000000000000000000000000000000..24d52343c99792d21387a2f21b5dc08212d5db2a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LicenseProtection.h @@ -0,0 +1,46 @@ +/**************************************************************************************** +* * +* licenseprotection.h - ApiSet Contract for api-ms-win-security-licenseprotection-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +*****************************************************************************************/ + +#pragma once + +#include +#include + +#pragma region Desktop Family or SecureStartup Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if (NTDDI_VERSION >= NTDDI_WIN10_MN) + +typedef enum _LicenseProtectionStatus +{ + Success, + LicenseKeyNotFound, + LicenseKeyUnprotected, + LicenseKeyCorrupted, + LicenseKeyAlreadyExists, +} LicenseProtectionStatus; + +STDAPI +RegisterLicenseKeyWithExpiration( + _In_ PCWSTR licenseKey, + _In_ UINT32 validityInDays, + _Out_ LicenseProtectionStatus* status + ); + +STDAPI +ValidateLicenseKeyProtection( + _In_ PCWSTR licenseKey, + _Out_ PFILETIME notValidBefore, + _Out_ PFILETIME notValidAfter, + _Out_ LicenseProtectionStatus* status + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_MN) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LoadPerf.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LoadPerf.h new file mode 100644 index 0000000000000000000000000000000000000000..12403dc2c7980e6fc497f3003fda6c8fee23ae8b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LoadPerf.h @@ -0,0 +1,147 @@ +/*++ +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + loadperf.h + +Abstract: + Header file for the Performance Monitor counter string installation + and removal functions. + +Revision History + 16-Nov-95 Created (a-robw) +--*/ + +#ifndef _LOADPERF_H_ +#define _LOADPERF_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or WinMgmt Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_WINMGMT) + + +// function prototypes for perf counter name string load & unload functions +// provided in LOADPERF.DLL + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __LOADPERF__ +#define LOADPERF_FUNCTION DWORD __stdcall +#else +#define LOADPERF_FUNCTION __declspec(dllimport) DWORD __stdcall +#endif + +// Values for dwFlags Argument of InstallPerfDll +#define LOADPERF_FLAGS_DELETE_MOF_ON_EXIT ((ULONG_PTR) 1) // Has no effect. +#define LOADPERF_FLAGS_LOAD_REGISTRY_ONLY ((ULONG_PTR) 2) // Has no effect. +#define LOADPERF_FLAGS_CREATE_MOF_ONLY ((ULONG_PTR) 4) // Has no effect. +#define LOADPERF_FLAGS_DISPLAY_USER_MSGS ((ULONG_PTR) 8) // Logs to stdout. + +LOADPERF_FUNCTION +InstallPerfDllW( + _In_opt_ LPCWSTR szComputerName, + _In_ LPCWSTR lpIniFile, + _In_ ULONG_PTR dwFlags +); + +LOADPERF_FUNCTION +InstallPerfDllA( + _In_opt_ LPCSTR szComputerName, + _In_ LPCSTR lpIniFile, + _In_ ULONG_PTR dwFlags +); + +LOADPERF_FUNCTION +LoadPerfCounterTextStringsA( + _In_ LPSTR lpCommandLine, + _In_ BOOL bQuietModeArg +); + +LOADPERF_FUNCTION +LoadPerfCounterTextStringsW( + _In_ LPWSTR lpCommandLine, + _In_ BOOL bQuietModeArg +); + +LOADPERF_FUNCTION +UnloadPerfCounterTextStringsW( + _In_ LPWSTR lpCommandLine, + _In_ BOOL bQuietModeArg +); + +LOADPERF_FUNCTION +UnloadPerfCounterTextStringsA( + _In_ LPSTR lpCommandLine, + _In_ BOOL bQuietModeArg +); + +LOADPERF_FUNCTION +UpdatePerfNameFilesA( + _In_ LPCSTR szNewCtrFilePath, + _In_opt_ LPCSTR szNewHlpFilePath, + _In_ LPSTR szLanguageID, + _In_ ULONG_PTR dwModes +); + +LOADPERF_FUNCTION +UpdatePerfNameFilesW( + _In_ LPCWSTR szNewCtrFilePath, + _In_opt_ LPCWSTR szNewHlpFilePath, + _In_ LPWSTR szLanguageID, + _In_ ULONG_PTR dwModes +); + +LOADPERF_FUNCTION +SetServiceAsTrustedA( + _In_opt_ LPCSTR szReserved, + _In_ LPCSTR szServiceName +); + +LOADPERF_FUNCTION +SetServiceAsTrustedW( + _In_opt_ LPCWSTR szReserved, + _In_ LPCWSTR szServiceName +); + +LOADPERF_FUNCTION +BackupPerfRegistryToFileW( + _In_ LPCWSTR szFileName, + _In_opt_ LPCWSTR szCommentString +); + +LOADPERF_FUNCTION +RestorePerfRegistryFromFileW( + _In_opt_ LPCWSTR szFileName, + _In_opt_ LPCWSTR szLangId +); + +#ifdef UNICODE +#define InstallPerfDll InstallPerfDllW +#define LoadPerfCounterTextStrings LoadPerfCounterTextStringsW +#define UnloadPerfCounterTextStrings UnloadPerfCounterTextStringsW +#define UpdatePerfNameFiles UpdatePerfNameFilesW +#define SetServiceAsTrusted SetServiceAsTrustedW +#else +#define InstallPerfDll InstallPerfDllA +#define LoadPerfCounterTextStrings LoadPerfCounterTextStringsA +#define UnloadPerfCounterTextStrings UnloadPerfCounterTextStringsA +#define UpdatePerfNameFiles UpdatePerfNameFilesA +#define SetServiceAsTrusted SetServiceAsTrustedA +#endif + +#ifdef __cplusplus +} +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_WINMGMT) */ +#pragma endregion + +#endif // _LOADPERF_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LpmApi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LpmApi.h new file mode 100644 index 0000000000000000000000000000000000000000..1ed2c6be76ec39f2e5f44039c3ed4c04637ad972 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LpmApi.h @@ -0,0 +1,1292 @@ + + +/*++ + +Copyright (c) 1998-1999 Microsoft Corporation + +Module Name: + + LPMAPI.H - Include file for Local Policy Module + +Abstract: + + This module defines the LPM structures and types. + +Revision History: + + There is no support for ACS in Windows XP or later versions of Windows. + +--*/ + +/**************************************************************************** + + RSVPD -- ReSerVation Protocol Daemon + + USC Information Sciences Institute + Marina del Rey, California + + Original Version: Shai Herzog, Nov. 1993. + Current Version: Steven Berson & Bob Braden, may 1996. + + Copyright (c) 1996 by the University of Southern California + All rights reserved. + + Permission to use, copy, modify, and distribute this software and its + documentation in source and binary forms for any purpose and without + fee is hereby granted, provided that both the above copyright notice + and this permission notice appear in all copies, and that any + documentation, advertising materials, and other materials related to + such distribution and use acknowledge that the software was developed + in part by the University of Southern California, Information + Sciences Institute. The name of the University may not be used to + endorse or promote products derived from this software without + specific prior written permission. + + THE UNIVERSITY OF SOUTHERN CALIFORNIA makes no representations about + the suitability of this software for any purpose. THIS SOFTWARE IS + PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + Other copyrights might apply to parts of this software and are so + noted when applicable. + +********************************************************************/ + +#ifndef __LPMAPI_H_ +#define __LPMAPI_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" +{ +#endif + + +#ifndef CALLBACK +#define CALLBACK __stdcall +#endif + +#ifndef APIENTRY +#define APIENTRY FAR __stdcall +#endif + +/* + * Standard format of an RSVP object header + */ +typedef struct { + + USHORT obj_length; /* Length in bytes */ + UCHAR obj_class; /* Class (values defined below) */ + UCHAR obj_ctype; /* C-Type (values defined below) */ + +} RsvpObjHdr; + +#define ObjLength(x) ((RsvpObjHdr *)x)->obj_length +#define ObjCType(x) ((RsvpObjHdr *)x)->obj_ctype +#define ObjClass(x) ((RsvpObjHdr *)x)->obj_class +#define ObjData(x) ((RsvpObjHdr *)(x)+1) + +/* + * Define object classes: Class-Num values + */ +#define class_NULL 0 +#define class_SESSION 1 +#define class_SESSION_GROUP 2 +#define class_RSVP_HOP 3 +#define class_INTEGRITY 4 +#define class_TIME_VALUES 5 +#define class_ERROR_SPEC 6 +#define class_SCOPE 7 +#define class_STYLE 8 +#define class_FLOWSPEC 9 // these two are the same +#define class_IS_FLOWSPEC 9 // since we added IS in front of the name +#define class_FILTER_SPEC 10 +#define class_SENDER_TEMPLATE 11 +#define class_SENDER_TSPEC 12 +#define class_ADSPEC 13 +#define class_POLICY_DATA 14 +#define class_CONFIRM 15 +#define class_MAX 15 + +/* + * RSVP SESSION object + */ +#define ctype_SESSION_ipv4 1 +#define ctype_SESSION_ipv4GPI 3 /* IPSEC: Generalized Port Id */ + +#define SESSFLG_E_Police 0x01 /* E_Police: Entry policing flag*/ + +typedef struct { + + IN_ADDR sess_destaddr; // DestAddress + UCHAR sess_protid; // Protocol Id + UCHAR sess_flags; // Use the flags defined above + USHORT sess_destport; // DestPort + +} Session_IPv4; + +/* GPI versions have virtual dest port instead of dest port; this + * changes the interpretation but not the format, so we do not + * define new structs for GPI. + */ + +typedef struct { + + RsvpObjHdr sess_header; + + union { + + Session_IPv4 sess_ipv4; + + } sess_u; + +} RSVP_SESSION; + +// Useful defines to access components of SESSION obect +#define Sess4Addr sess_u.sess_ipv4.sess_destaddr +#define Sess4Port sess_u.sess_ipv4.sess_destport +#define Sess4Protocol sess_u.sess_ipv4.sess_protid +#define Sess4Flags sess_u.sess_ipv4.sess_flags + +/* + * RSVP HOP object + */ +#define ctype_RSVP_HOP_ipv4 1 + +typedef struct { + + IN_ADDR hop_ipaddr; // Next/Previous Hop Address + ULONG hop_LIH; // Logical Interface Handle + +} Rsvp_Hop_IPv4; + +typedef struct { + + RsvpObjHdr hop_header; + + union { + + Rsvp_Hop_IPv4 hop_ipv4; + + } hop_u; + +} RSVP_HOP; + +#define Hop4LIH hop_u.hop_ipv4.hop_LIH +#define Hop4Addr hop_u.hop_ipv4.hop_ipaddr + +/* + * RSVP STYLE object + */ + +// Define values for option vector + +#define Opt_Share_mask 0x00000018 // 2 bits: Sharing control +#define Opt_Distinct 0x00000008 // Distinct reservations +#define Opt_Shared 0x00000010 // Shared reservations + +#define Opt_SndSel_mask 0x00000007 // 3 bits: Sender selection +#define Opt_Wildcard 0x00000001 // Wildcard scope +#define Opt_Explicit 0x00000002 // Explicit scope + +#define Style_is_Wildcard(p) (((p)&Opt_SndSel_mask) == Opt_Wildcard) +#define Style_is_Shared(p) (((p)&Opt_Share_mask) == Opt_Shared) + +// Define style values +#define STYLE_WF Opt_Shared + Opt_Wildcard +#define STYLE_FF Opt_Distinct + Opt_Explicit +#define STYLE_SE Opt_Shared + Opt_Explicit + +#define ctype_STYLE 1 + +typedef struct { + + RsvpObjHdr style_header; + + ULONG style_word; + +} RESV_STYLE; + +/* + * RSVP FILTER SPEC object + */ +#define ctype_FILTER_SPEC_ipv4 1 // IPv4 FILTER_SPEC +#define ctype_FILTER_SPEC_ipv4GPI 4 // IPv4/GPI FILTER_SPEC + +typedef struct { + + IN_ADDR filt_ipaddr; // IPv4 SrcAddress + USHORT filt_unused; + USHORT filt_port; // SrcPort + +} Filter_Spec_IPv4; + +typedef struct { + + IN_ADDR filt_ipaddr; // IPv4 SrcAddress + ULONG filt_gpi; // Generalized Port Id + +} Filter_Spec_IPv4GPI; + +typedef struct { + + RsvpObjHdr filt_header; + + union { + + Filter_Spec_IPv4 filt_ipv4; + Filter_Spec_IPv4GPI filt_ipv4gpi; + + } filt_u; + +} FILTER_SPEC; + +#define FilterSrcaddr filt_u.filt_ipv4.filt_ipaddr +#define FilterSrcport filt_u.filt_ipv4.filt_port + +/* + * RSVP SENDER_TEMPLATE object + */ +#define ctype_SENDER_TEMPLATE_ipv4 1 // IPv4 SENDER_TEMPLATE +#define ctype_SENDER_TEMPLATE_ipv4GPI 4 // IPv4/GPI SENDER_TEMPLATE + +typedef FILTER_SPEC SENDER_TEMPLATE; // Identical to FILTER_SPEC + +/* + * RSVP SCOPE object class + */ +#define ctype_SCOPE_list_ipv4 1 + +typedef struct { + + IN_ADDR scopl_ipaddr[1]; // var-len list of IP sender addrs + +} Scope_list_ipv4; + +typedef struct { + + RsvpObjHdr scopl_header; + + union { + + Scope_list_ipv4 scopl_ipv4; + + } scope_u; + +} RSVP_SCOPE; + +#define Scope4Addr scope_u.scopl_ipv4.scopl_ipaddr +#define ScopeCnt(scp) ((ObjLength(scp)-sizeof(RsvpObjHdr))/sizeof(struct in_addr)) +#define ScopeLen(cnt) (cnt*sizeof(struct in_addr)+sizeof(RsvpObjHdr)) + + +/* + * ERROR_SPEC object class + */ +#define ctype_ERROR_SPEC_ipv4 1 + +typedef struct { + struct in_addr errs_errnode; /* Error Node Address */ + u_char errs_flags; /* Flags: */ +#define ERROR_SPECF_InPlace 0x01 /* Left resv in place */ +#define ERROR_SPECF_NotGuilty 0x02 /* This rcvr not guilty */ + + UCHAR errs_code; /* Error Code (def'd below) */ + USHORT errs_value; /* Error Value */ +#define ERR_FORWARD_OK 0x8000 /* Flag: OK to forward state */ +#define Error_Usage(x) (((x)>>12)&3) +#define ERR_Usage_globl 0x00 /* Globally-defined sub-code */ +#define ERR_Usage_local 0x10 /* Locally-defined sub-code */ +#define ERR_Usage_serv 0x11 /* Service-defined sub-code */ +#define ERR_global_mask 0x0fff /* Sub-code bits in Error Val */ + +} Error_Spec_IPv4; + + +typedef struct { + + RsvpObjHdr errs_header; + + union { + + Error_Spec_IPv4 errs_ipv4; + + } errs_u; + +} ERROR_SPEC; + +#define errspec4_enode errs_u.errs_ipv4.errs_errnode +#define errspec4_code errs_u.errs_ipv4.errs_code +#define errspec4_value errs_u.errs_ipv4.errs_value +#define errspec4_flags errs_u.errs_ipv4.errs_flags + + +/* + * POLICY_DATA object class + * + * Contents are Opaque RSVP/SBM + */ +#define ctype_POLICY_DATA 1 + +typedef struct { + + RsvpObjHdr PolicyObjHdr; + + USHORT usPeOffset; // Offset to the start of Policy Elements + // from the begining of Policy Data + + USHORT usReserved; + +} POLICY_DATA; + +#define PD_HDR_LEN sizeof(POLICY_DATA) + +typedef struct { + + USHORT usPeLength; // Policy Element length + + USHORT usPeType; // Policy Element type + + UCHAR ucPeData[4]; // Just a place holder to the start of + // Policy Element data +} POLICY_ELEMENT; + +#define PE_HDR_LEN (2 * sizeof(USHORT)) + +/************************************************************************** + * + * Int-Serv Data Structures + * + **************************************************************************/ + +/* + * Service numbers + */ +#define GENERAL_INFO 1 +#define GUARANTEED_SERV 2 +#define PREDICTIVE_SERV 3 +#define CONTROLLED_DELAY_SERV 4 +#define CONTROLLED_LOAD_SERV 5 +#define QUALITATIVE_SERV 6 + +/* + * Well-known parameter IDs + */ +enum int_serv_wkp { + IS_WKP_HOP_CNT = 4, + IS_WKP_PATH_BW = 6, + IS_WKP_MIN_LATENCY = 8, + IS_WKP_COMPOSED_MTU = 10, + IS_WKP_TB_TSPEC = 127, /* Token-bucket TSPEC parm */ + IS_WKP_Q_TSPEC = 128 +}; + + +/* + * Int-serv Main header + */ +typedef struct { + + UCHAR ismh_version; // Version + UCHAR ismh_unused; + USHORT ismh_len32b; // # 32-bit words excluding this hdr + +} IntServMainHdr; + +#define INTSERV_VERS_MASK 0xf0 +#define INTSERV_VERSION0 0 +#define Intserv_Version(x) (((x)&INTSERV_VERS_MASK)>>4) +#define Intserv_Version_OK(x) (((x)->ismh_version&INTSERV_VERS_MASK)== \ + INTSERV_VERSION0) + +// Convert ishm_length to equivalent RSVP object size, for checking +#define Intserv_Obj_size(x) (((IntServMainHdr *)(x))->ismh_len32b * 4 + \ + sizeof(IntServMainHdr) + sizeof(RsvpObjHdr)) + +/* + * Int-serv Service Element Header + */ + +// Flag: Break bit +#define ISSH_BREAK_BIT 0x80 + +typedef struct { + + UCHAR issh_service; // Service number + UCHAR issh_flags; // Flag byte + USHORT issh_len32b; // #32-bit words excluding this hdr + +} IntServServiceHdr; + +#define Issh_len32b(p) ((p)->issh_len32b) + +/* + * Int-serv Parameter Element Header + */ +#define ISPH_FLG_INV 0x80 // Flag: Invalid + +typedef struct { + + UCHAR isph_parm_num; // Parameter number + UCHAR isph_flags; // Flags + USHORT isph_len32b; // #32-bit words excluding this hdr + +} IntServParmHdr; + +#define Next_Main_Hdr(p) (IntServMainHdr *)((ULONG *)(p)+1+(p)->ismh_len32b) +#define Next_Serv_Hdr(p) (IntServServiceHdr *)((ULONG *)(p)+1+(p)->issh_len32b) +#define Next_Parm_Hdr(p) (IntServParmHdr *)((ULONG *)(p)+1+(p)->isph_len32b) + +/* + * Generic Tspec Parameters + */ +typedef struct { + + FLOAT TB_Tspec_r; // Token bucket rate (B/sec) + FLOAT TB_Tspec_b; // Token bucket depth (B) + FLOAT TB_Tspec_p; // Peak data rate (B/sec) + ULONG TB_Tspec_m; // Min Policed Unit (B) + ULONG TB_Tspec_M; // Max pkt size (B) + +} GenTspecParms; + +/* + * Generic Tspec + */ +typedef struct { + + IntServServiceHdr gen_Tspec_serv_hdr; // (GENERAL_INFO, length) + + IntServParmHdr gen_Tspec_parm_hdr; // (IS_WKP_TB_TSPEC) + + GenTspecParms gen_Tspec_parms; + +} GenTspec; + +#define gtspec_r gen_Tspec_parms.TB_Tspec_r +#define gtspec_b gen_Tspec_parms.TB_Tspec_b +#define gtspec_m gen_Tspec_parms.TB_Tspec_m +#define gtspec_M gen_Tspec_parms.TB_Tspec_M +#define gtspec_p gen_Tspec_parms.TB_Tspec_p +#define gtspec_parmno gen_Tspec_parm_hdr.isph_parm_num +#define gtspec_flags gen_Tspec_parm_hdr.isph_flags + +#define gtspec_len (sizeof(GenTspec) - sizeof(IntServServiceHdr)) + + +/* contents of qualitative tspec */ + +typedef struct { + + ULONG TB_Tspec_M; // Max pkt size (M) + +} QualTspecParms; + + +typedef struct { + + IntServServiceHdr qual_Tspec_serv_hdr; // (QUALITATIVE_SERV, length) + + IntServParmHdr qual_Tspec_parm_hdr; // (IS_WKP_Q_TSPEC) + + QualTspecParms qual_Tspec_parms; + +} QualTspec; + +typedef struct { + + IntServServiceHdr Q_spec_serv_hdr; // (QUALITATIVE_SERV,0,len) + + IntServParmHdr Q_spec_parm_hdr; // (IS_WKP_Q_TSPEC) + + QualTspecParms Q_spec_parms; // QUALITATIVE Tspec parameters + +} QualAppFlowSpec; + +#define QAspec_M Q_spec_parms.TB_Tspec_M + +/* + * Contents of int-serv Tspec + */ +typedef struct { + + IntServMainHdr st_mh; + + union { + + GenTspec gen_stspec; // Generic Tspec + QualTspec qual_stspec; + + } tspec_u; + +} IntServTspecBody; + +/* + * SENDER_TSPEC class object + */ +#define ctype_SENDER_TSPEC 2 + +typedef struct { + + RsvpObjHdr stspec_header; + + IntServTspecBody stspec_body; + +} SENDER_TSPEC; + +/* + * Controlled-Load Flowspec + */ +typedef struct { + + IntServServiceHdr CL_spec_serv_hdr; // (CONTROLLED_LOAD_SERV,0,len) + + IntServParmHdr CL_spec_parm_hdr; // (IS_WKP_TB_TSPEC) + + GenTspecParms CL_spec_parms; // GENERIC Tspec parameters + +} CtrlLoadFlowspec; + +#define CLspec_r CL_spec_parms.TB_Tspec_r +#define CLspec_b CL_spec_parms.TB_Tspec_b +#define CLspec_p CL_spec_parms.TB_Tspec_p +#define CLspec_m CL_spec_parms.TB_Tspec_m +#define CLspec_M CL_spec_parms.TB_Tspec_M +#define CLspec_parmno CL_spec_parm_hdr.isph_parm_num +#define CLspec_flags CL_spec_parm_hdr.isph_flags +#define CLspec_len32b CL_spec_parm_hdr.isph_len32b + +#define CLspec_len (sizeof(CtrlLoadFlowspec) - sizeof(IntServServiceHdr)) + +/* Service-specific Parameter IDs + */ +enum { + + IS_GUAR_RSPEC = 130, + + GUAR_ADSPARM_C = 131, + GUAR_ADSPARM_D = 132, + GUAR_ADSPARM_Ctot = 133, + GUAR_ADSPARM_Dtot = 134, + GUAR_ADSPARM_Csum = 135, + GUAR_ADSPARM_Dsum = 136 + +}; + +/* + * Guaranteed Rspec parameters + */ +typedef struct { + + FLOAT Guar_R; // Guaranteed Rate B/s + ULONG Guar_S; // Slack term secs + +} GuarRspec; + +/* + * Guaranteed Flowspec + */ +typedef struct { + + IntServServiceHdr Guar_serv_hdr; // (GUARANTEED, 0, length) + + IntServParmHdr Guar_Tspec_hdr; // (IS_WKP_TB_TSPEC,) + GenTspecParms Guar_Tspec_parms; // GENERIC Tspec parms + + IntServParmHdr Guar_Rspec_hdr; // (IS_GUAR_RSPEC) + GuarRspec Guar_Rspec; // Guaranteed rate (B/sec) + +} GuarFlowSpec; + +#define Gspec_r Guar_Tspec_parms.TB_Tspec_r +#define Gspec_b Guar_Tspec_parms.TB_Tspec_b +#define Gspec_p Guar_Tspec_parms.TB_Tspec_p +#define Gspec_m Guar_Tspec_parms.TB_Tspec_m +#define Gspec_M Guar_Tspec_parms.TB_Tspec_M +#define Gspec_R Guar_Rspec.Guar_R +#define Gspec_S Guar_Rspec.Guar_S +#define Gspec_T_parmno Guar_Tspec_hdr.isph_parm_num +#define Gspec_T_flags Guar_Tspec_hdr.isph_flags +#define Gspec_R_parmno Guar_Rspec_hdr.isph_parm_num +#define Gspec_R_flags Guar_Rspec_hdr.isph_flags + +#define Gspec_len (sizeof(GuarFlowSpec) - sizeof(IntServServiceHdr)) + +/* + * Contents of int-serv flowspec + */ +typedef struct { + + IntServMainHdr spec_mh; + + union { + + CtrlLoadFlowspec CL_spec; // Controlled-Load service + + GuarFlowSpec G_spec; // Guaranteed service + + QualAppFlowSpec Q_spec; + + } spec_u; + +} IntServFlowSpec; + +#define ISmh_len32b spec_mh.ismh_len32b +#define ISmh_version spec_mh.ismh_version +#define ISmh_unused spec_mh.ismh_unused + +/* + * Int-Serv FLOWSPEC object + */ +#define ctype_FLOWSPEC_Intserv0 2 // The int-serv flowspec (v.0) + +typedef struct { + + RsvpObjHdr flow_header; + + IntServFlowSpec flow_body; + +}IS_FLOWSPEC; + + +/* + * FLOW DESCRIPTOR + */ + +typedef struct flow_desc { + + union { + SENDER_TSPEC *stspec; + IS_FLOWSPEC *isflow; + } u1; + + union { + SENDER_TEMPLATE *stemp; + FILTER_SPEC *fspec; + } u2; + +} FLOW_DESC; + +#define FdSenderTspec u1.stspec +#define FdIsFlowSpec u1.isflow + +#define FdSenderTemplate u2.stemp +#define FdFilterSpec u2.fspec + +/* + * ADSPEC class object + * + * Opaque to RSVP -- Contents defined in rapi_lib.h + */ +#define ctype_ADSPEC_INTSERV 2 + +/* + * Guaranteed service Adspec parameters -- fixed part + */ +typedef struct { + + IntServServiceHdr Gads_serv_hdr; // GUARANTEED, x, len + + IntServParmHdr Gads_Ctot_hdr; // GUAR_ADSPARM_Ctot + ULONG Gads_Ctot; + + IntServParmHdr Gads_Dtot_hdr; // (GUAR_ADSPARM_Dtot + ULONG Gads_Dtot; + + IntServParmHdr Gads_Csum_hdr; // GUAR_ADSPARM_Csum + ULONG Gads_Csum; + + IntServParmHdr Gads_Dsum_hdr; // GUAR_ADSPARM_Dsum + ULONG Gads_Dsum; + + /* + * May be followed by override general param values + */ +} Gads_parms_t; + + +/* + * General Path Characterization Parameters + */ +typedef struct { + + IntServServiceHdr gen_parm_hdr; // GENERAL_INFO, len + + IntServParmHdr gen_parm_hopcnt_hdr; // (IS_WKP_HOP_CNT + ULONG gen_parm_hopcnt; + + IntServParmHdr gen_parm_pathbw_hdr; // IS_WKP_PATH_BW + FLOAT gen_parm_path_bw; + + IntServParmHdr gen_parm_minlat_hdr; // IS_WKP_MIN_LATENCY + ULONG gen_parm_min_latency; + + IntServParmHdr gen_parm_compmtu_hdr; // IS_WKP_COMPOSED_MTU + ULONG gen_parm_composed_MTU; + +} GenAdspecParams; + +/* + * Contents of (minimal) int-serv Adspec + */ +typedef struct { + IntServMainHdr adspec_mh; // Main header + + GenAdspecParams adspec_genparms;// General char parm fragment + + /* + * Followed by variable-length fragments for some or all + * services. These can be minimal length fragments. + */ + +} IS_ADSPEC_BODY; + + +#define GEN_ADSPEC_LEN (sizeof(Object_header) + sizeof(IS_adsbody_t ) ) + +typedef struct { + + RsvpObjHdr adspec_header; + + IS_ADSPEC_BODY adspec_body; /* Defined in rapi_lib.h */ + +} ADSPEC; + + +// RSVP message types + +#define RSVP_PATH 1 +#define RSVP_RESV 2 +#define RSVP_PATH_ERR 3 +#define RSVP_RESV_ERR 4 +#define RSVP_PATH_TEAR 5 +#define RSVP_RESV_TEAR 6 + +/* RSVP error codes + */ +#define RSVP_Err_NONE 0 /* No error (CONFIRM) */ +#define RSVP_Erv_Nonev 0 /* No-error Error Value */ + +/* Admission Control failure */ +#define RSVP_Err_ADMISSION 1 + +/* Globally-defined sub-codes for : Admission Control failure */ +#define RSVP_Erv_Other 0 /* Unspecified cause */ +#define RSVP_Erv_DelayBnd 1 /* Cannot meet delay bound req */ +#define RSVP_Erv_Bandwidth 2 /* Insufficient bandwidth */ +#define RSVP_Erv_MTU 3 /* MTU in flowspec too large */ + +// Microsoft specific error values +#define RSVP_Erv_Flow_Rate 0x8001 +#define RSVP_Erv_Bucket_szie 0x8002 +#define RSVP_Erv_Peak_Rate 0x8003 +#define RSVP_Erv_Min_Policied_size 0x8004 + +/* Policy control failure */ +#define RSVP_Err_POLICY 2 + +// Policy error values from Identity draft +#define POLICY_ERRV_NO_MORE_INFO 1 +#define POLICY_ERRV_UNSUPPORTED_CREDENTIAL_TYPE 2 +#define POLICY_ERRV_INSUFFICIENT_PRIVILEGES 3 +#define POLICY_ERRV_EXPIRED_CREDENTIALS 4 +#define POLICY_ERRV_IDENTITY_CHANGED 5 + +// Microsoft specific policy error values + +#define POLICY_ERRV_UNKNOWN 0 + +#define POLICY_ERRV_GLOBAL_DEF_FLOW_COUNT 1 +#define POLICY_ERRV_GLOBAL_GRP_FLOW_COUNT 2 +#define POLICY_ERRV_GLOBAL_USER_FLOW_COUNT 3 +#define POLICY_ERRV_GLOBAL_UNAUTH_USER_FLOW_COUNT 4 +#define POLICY_ERRV_SUBNET_DEF_FLOW_COUNT 5 +#define POLICY_ERRV_SUBNET_GRP_FLOW_COUNT 6 +#define POLICY_ERRV_SUBNET_USER_FLOW_COUNT 7 +#define POLICY_ERRV_SUBNET_UNAUTH_USER_FLOW_COUNT 8 + +#define POLICY_ERRV_GLOBAL_DEF_FLOW_DURATION 9 +#define POLICY_ERRV_GLOBAL_GRP_FLOW_DURATION 10 +#define POLICY_ERRV_GLOBAL_USER_FLOW_DURATION 11 +#define POLICY_ERRV_GLOBAL_UNAUTH_USER_FLOW_DURATION 12 +#define POLICY_ERRV_SUBNET_DEF_FLOW_DURATION 13 +#define POLICY_ERRV_SUBNET_GRP_FLOW_DURATION 14 +#define POLICY_ERRV_SUBNET_USER_FLOW_DURATION 15 +#define POLICY_ERRV_SUBNET_UNAUTH_USER_FLOW_DURATION 16 + +#define POLICY_ERRV_GLOBAL_DEF_FLOW_RATE 17 +#define POLICY_ERRV_GLOBAL_GRP_FLOW_RATE 18 +#define POLICY_ERRV_GLOBAL_USER_FLOW_RATE 19 +#define POLICY_ERRV_GLOBAL_UNAUTH_USER_FLOW_RATE 20 +#define POLICY_ERRV_SUBNET_DEF_FLOW_RATE 21 +#define POLICY_ERRV_SUBNET_GRP_FLOW_RATE 22 +#define POLICY_ERRV_SUBNET_USER_FLOW_RATE 23 +#define POLICY_ERRV_SUBNET_UNAUTH_USER_FLOW_RATE 24 + +#define POLICY_ERRV_GLOBAL_DEF_PEAK_RATE 25 +#define POLICY_ERRV_GLOBAL_GRP_PEAK_RATE 26 +#define POLICY_ERRV_GLOBAL_USER_PEAK_RATE 27 +#define POLICY_ERRV_GLOBAL_UNAUTH_USER_PEAK_RATE 28 +#define POLICY_ERRV_SUBNET_DEF_PEAK_RATE 29 +#define POLICY_ERRV_SUBNET_GRP_PEAK_RATE 30 +#define POLICY_ERRV_SUBNET_USER_PEAK_RATE 31 +#define POLICY_ERRV_SUBNET_UNAUTH_USER_PEAK_RATE 32 + +#define POLICY_ERRV_GLOBAL_DEF_SUM_FLOW_RATE 33 +#define POLICY_ERRV_GLOBAL_GRP_SUM_FLOW_RATE 34 +#define POLICY_ERRV_GLOBAL_USER_SUM_FLOW_RATE 35 +#define POLICY_ERRV_GLOBAL_UNAUTH_USER_SUM_FLOW_RATE 36 +#define POLICY_ERRV_SUBNET_DEF_SUM_FLOW_RATE 37 +#define POLICY_ERRV_SUBNET_GRP_SUM_FLOW_RATE 38 +#define POLICY_ERRV_SUBNET_USER_SUM_FLOW_RATE 39 +#define POLICY_ERRV_SUBNET_UNAUTH_USER_SUM_FLOW_RATE 40 + +#define POLICY_ERRV_GLOBAL_DEF_SUM_PEAK_RATE 41 +#define POLICY_ERRV_GLOBAL_GRP_SUM_PEAK_RATE 42 +#define POLICY_ERRV_GLOBAL_USER_SUM_PEAK_RATE 43 +#define POLICY_ERRV_GLOBAL_UNAUTH_USER_SUM_PEAK_RATE 44 +#define POLICY_ERRV_SUBNET_DEF_SUM_PEAK_RATE 45 +#define POLICY_ERRV_SUBNET_GRP_SUM_PEAK_RATE 46 +#define POLICY_ERRV_SUBNET_USER_SUM_PEAK_RATE 47 +#define POLICY_ERRV_SUBNET_UNAUTH_USER_SUM_PEAK_RATE 48 + +#define POLICY_ERRV_UNKNOWN_USER 49 +#define POLICY_ERRV_NO_PRIVILEGES 50 +#define POLICY_ERRV_EXPIRED_USER_TOKEN 51 +#define POLICY_ERRV_NO_RESOURCES 52 +#define POLICY_ERRV_PRE_EMPTED 53 +#define POLICY_ERRV_USER_CHANGED 54 +#define POLICY_ERRV_NO_ACCEPTS 55 +#define POLICY_ERRV_NO_MEMORY 56 +#define POLICY_ERRV_CRAZY_FLOWSPEC 57 + + +// Other RSVP defined Error codes +#define RSVP_Err_NO_PATH 3 /* No path state for Resv */ +#define RSVP_Err_NO_SENDER 4 /* No sender info for Resv */ +#define RSVP_Err_BAD_STYLE 5 /* Conflicting style */ +#define RSVP_Err_UNKNOWN_STYLE 6 /* Unknown reservation style */ +#define RSVP_Err_BAD_DSTPORT 7 /* Conflicting DstPort in Sess */ +#define RSVP_Err_BAD_SNDPORT 8 /* Conflicting Sender port */ +#define RSVP_Err_AMBIG_FILTER 9 /* Ambiguous Filter spec in Resv*/ + +#define RSVP_Err_PREEMPTED 12 /* Service Preempted */ + +/* Unknown object Class-Num */ +#define RSVP_Err_UNKN_OBJ_CLASS 13 +/* ErrVal = Class_num, CType */ + + /* Unknown object C-Type */ +#define RSVP_Err_UNKNOWN_CTYPE 14 +/* ErrVal = Class_num, CType */ + +#define RSVP_Err_API_ERROR 20 /* API client error */ +/* ErrVal = API error code */ + +/* Traffic Control error */ +#define RSVP_Err_TC_ERROR 21 + +/* Globally-defined sub-codes for : Traffic Control errors */ + +#define RSVP_Erv_Conflict_Serv 01 /* Service Conflict */ +#define RSVP_Erv_No_Serv 02 /* Unknown Service */ +#define RSVP_Erv_Crazy_Flowspec 03 /* Unreasonable Flowspec */ +#define RSVP_Erv_Crazy_Tspec 04 /* Unreasonable Tspec */ + +#define RSVP_Err_TC_SYS_ERROR 22 /* Traffic control system error */ + /* ErrVal = kernel error code */ + + +/* RSVP System error */ +#define RSVP_Err_RSVP_SYS_ERROR 23 + +/* Globally-defined sub-codes for : RSVP system errors */ +#define RSVP_Erv_MEMORY 1 /* Out of memory */ +#define RSVP_Erv_API 2 /* API logic error */ + +// Identity Policy elements related defines + +// Reseved Identity PE types +#define LPM_PE_USER_IDENTITY 2 +#define LPM_PE_APP_IDENTITY 3 + +// Defines for Identity error values +#define ERROR_NO_MORE_INFO 1 +#define UNSUPPORTED_CREDENTIAL_TYPE 2 +#define INSUFFICIENT_PRIVILEGES 3 +#define EXPIRED_CREDENTIAL 4 +#define IDENTITY_CHANGED 5 + + +typedef struct { + + USHORT usIdErrLength; + + UCHAR ucAType; + + UCHAR ucSubType; + + USHORT usReserved; + + USHORT usIdErrorValue; + + UCHAR ucIdErrData[4]; + +} ID_ERROR_OBJECT; + + +#define ID_ERR_OBJ_HDR_LEN (sizeof(ID_ERROR_OBJECT) - 4 * sizeof(UCHAR) ) + + +/* + + LPM API specific definitions + +*/ + +/************************************** + + LPM_Initialize + +***************************************/ + +DECLARE_HANDLE(LPM_HANDLE); + +DECLARE_HANDLE(RHANDLE); + +typedef ULONG LPV; + +typedef USHORT PETYPE; + +#define LPM_OK 0 + +typedef int MSG_TYPE; + +typedef struct rsvpmsgobjs { + + MSG_TYPE RsvpMsgType; + + RSVP_SESSION *pRsvpSession; + + RSVP_HOP *pRsvpFromHop; + + RSVP_HOP *pRsvpToHop; + + RESV_STYLE *pResvStyle; + + RSVP_SCOPE *pRsvpScope; + + int FlowDescCount; + + FLOW_DESC *pFlowDescs; + + int PdObjectCount; + + POLICY_DATA **ppPdObjects; + + ERROR_SPEC *pErrorSpec; + + ADSPEC *pAdspec; + +} RSVP_MSG_OBJS; + +#if DBG +typedef void * +(APIENTRY * PALLOCMEM) ( DWORD Size, char *szFileName, DWORD nLine ); +#else +typedef void * +(APIENTRY * PALLOCMEM) ( DWORD Size ); +#endif + +#if DBG +typedef void +(APIENTRY * PFREEMEM) ( void *pv, char *szFileName, DWORD nLine ); +#else +typedef void +(APIENTRY * PFREEMEM) ( void *pv ); +#endif + +typedef struct policy_decision +{ + LPV lpvResult; // Use the LPV values from above + + WORD wPolicyErrCode; // RSVP defined error codes + + WORD wPolicyErrValue; // RSVP defined error values + +} POLICY_DECISION; + +typedef +ULONG * +(CALLBACK * CBADMITRESULT) ( + LPM_HANDLE LpmHandle, + + RHANDLE RequestHandle, + + ULONG ulPcmActionFlags, + + int LpmError, + + int PolicyDecisionsCount, + + POLICY_DECISION *pPolicyDecisions ); + +typedef +ULONG * +(CALLBACK * CBGETRSVPOBJECTS) ( + + LPM_HANDLE LpmHandle, + + RHANDLE RequestHandle, + + int LpmError, + + int RsvpObjectsCount, + + RsvpObjHdr **ppRsvpObjects ); + +// The above 2 call backs can return the following errors + +#define INV_LPM_HANDLE 1 // Supplied LpmHandle is invalid +#define LPM_TIME_OUT 2 // LPM has returned results after the time limit +#define INV_REQ_HANDLE 3 // Supplied Request handle is invalid +#define DUP_RESULTS 4 // LPM has already returned results for this request +#define INV_RESULTS 5 // Results supplied are invalid + +typedef struct lpminitinfo { + + DWORD PcmVersionNumber; + + DWORD ResultTimeLimit; + + int ConfiguredLpmCount; + + PALLOCMEM AllocMemory; + + PFREEMEM FreeMemory; + + CBADMITRESULT PcmAdmitResultCallback; + + CBGETRSVPOBJECTS GetRsvpObjectsCallback; + +} LPM_INIT_INFO; + +// Valid PE types +// XXX ISSUE - Is 0xFFFF a better choice? +#define LPM_PE_ALL_TYPES 0 + +// Current LPM API version number +#define LPM_API_VERSION_1 1 + +// Current PCM version number +#define PCM_VERSION_1 1 + +ULONG +APIENTRY +LPM_Initialize ( + + IN LPM_HANDLE LpmHandle, + + IN LPM_INIT_INFO *pLpmInitInfo, + + OUT DWORD *pLpmVersionNumber, + + OUT PETYPE *pSupportedPeType, + + OUT VOID *Reserved ); + +/************************************** + + LPM_Deiitialize + +***************************************/ + +ULONG +APIENTRY +LPM_Deinitialize ( + IN LPM_HANDLE LpmHandle ); + + +/************************************** + + LPM_AdmitRsvpMsg + +***************************************/ + +// Valid LPV - LPM Priority Values +#define LPV_RESERVED 0 +#define LPV_MIN_PRIORITY 1 +#define LPV_MAX_PRIORITY 0xFF00 +#define LPV_DROP_MSG 0xFFFD +#define LPV_DONT_CARE 0xFFFE +#define LPV_REJECT 0xFFFF + +// Valid values for PcmActionFlags +#define FORCE_IMMEDIATE_REFRESH 1 + +// Function return values for LPM_AdmitResvMsg +#define LPM_RESULT_READY 0 +#define LPM_RESULT_DEFER 1 + +ULONG +APIENTRY +LPM_AdmitRsvpMsg ( + + IN RHANDLE PcmReqHandle, + + IN RSVP_HOP *pRecvdIntf, + + IN RSVP_MSG_OBJS *pRsvpMsgObjs, + + IN int RcvdRsvpMsgLength, + + IN UCHAR *RcvdRsvpMsg, + + OUT ULONG *pulPcmActionFlags, + + OUT POLICY_DECISION *pPolicyDecisions, + + OUT void *Reserved ); + + +/************************************** + + LPM_GetRsvpObjects + +***************************************/ + +// Function return values are defined in LPM_AdmitResvMsg section + +ULONG +APIENTRY +LPM_GetRsvpObjects ( + + IN RHANDLE PcmReqHandle, + + IN ULONG MaxPdSize, + + IN RSVP_HOP *SendingIntfAddr, + + IN RSVP_MSG_OBJS *pRsvpMsgObjs, + + OUT int *pRsvpObjectsCount, + + OUT RsvpObjHdr ***pppRsvpObjects, + + OUT void *Reserved ); + + +/************************************** + + LPM_DeleteState + +***************************************/ + +// TearDown reasons + +#define RCVD_PATH_TEAR 1 +#define RCVD_RESV_TEAR 2 +#define ADM_CTRL_FAILED 3 +#define STATE_TIMEOUT 4 +#define FLOW_DURATION 5 + + +VOID +APIENTRY +LPM_DeleteState( + + IN RSVP_HOP *pRcvdIfAddr, + + IN MSG_TYPE RsvpMsgType, + + IN RSVP_SESSION *pRsvpSession, + + IN RSVP_HOP *pRsvpFromHop, + + IN RESV_STYLE *pResvStyle, + + IN int FilterSpecCount, + + IN FILTER_SPEC **ppFilterSpecList, + + IN int TearDownReason ); + +/************************************** + + LPM_IpAddrTable + +***************************************/ + +typedef struct lpmiptable { + + ULONG ulIfIndex; // SNMP index for this interface + + ULONG MediaType; // As defined in IPIFCONS.H + + IN_ADDR IfIpAddr; // Interface IP address + + IN_ADDR IfNetMask; // Interface subnet mask + +} LPMIPTABLE; + +BOOL +APIENTRY +LPM_IpAddressTable ( + + IN ULONG cIpAddrTable, + + IN LPMIPTABLE *pIpAddrTable ); + + +/************************************** + + LPM_CommitResv + +***************************************/ + +// CommitDecision values + +#define RESOURCES_ALLOCATED 1 +#define RESOURCES_MODIFIED 2 + +VOID +APIENTRY +LPM_CommitResv ( + + IN RSVP_SESSION *RsvpSession, + + IN RSVP_HOP *FlowInstalledIntf, + + IN RESV_STYLE *RsvpStyle, + + IN int FilterSpecCount, + + IN FILTER_SPEC **ppFilterSpecList, + + IN IS_FLOWSPEC *pMergedFlowSpec, + + IN ULONG CommitDecision ); + + +#ifdef __cplusplus +} +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __LPMAPI_H_ + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/LsaLookup.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LsaLookup.h new file mode 100644 index 0000000000000000000000000000000000000000..86e45aa74e8e8936c908b1ccbc6d1616ea28f96d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/LsaLookup.h @@ -0,0 +1,310 @@ +/*++ + +Copyright (c) Microsoft Corporation, 1992 - + +Module Name: + + lsalookup.h + +Abstract: + + LSA Policy Lookup API + +--*/ + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +#ifndef _LSALOOKUP_ +#define _LSALOOKUP_ + +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef _NTDEF_ + +typedef UNICODE_STRING LSA_UNICODE_STRING, *PLSA_UNICODE_STRING; +typedef STRING LSA_STRING, *PLSA_STRING; +typedef OBJECT_ATTRIBUTES LSA_OBJECT_ATTRIBUTES, *PLSA_OBJECT_ATTRIBUTES; + +#else // _NTDEF_ + +typedef struct _LSA_UNICODE_STRING { + USHORT Length; + USHORT MaximumLength; +#ifdef MIDL_PASS + [size_is(MaximumLength/2), length_is(Length/2)] +#endif // MIDL_PASS + PWSTR Buffer; +} LSA_UNICODE_STRING, *PLSA_UNICODE_STRING; + +typedef struct _LSA_STRING { + USHORT Length; + USHORT MaximumLength; + PCHAR Buffer; +} LSA_STRING, *PLSA_STRING; + +typedef struct _LSA_OBJECT_ATTRIBUTES { + ULONG Length; + HANDLE RootDirectory; + PLSA_UNICODE_STRING ObjectName; + ULONG Attributes; + PVOID SecurityDescriptor; // Points to type SECURITY_DESCRIPTOR + PVOID SecurityQualityOfService; // Points to type SECURITY_QUALITY_OF_SERVICE +} LSA_OBJECT_ATTRIBUTES, *PLSA_OBJECT_ATTRIBUTES; + +#endif // _NTDEF_ + +// +// The following data type is used to identify a domain +// + +typedef struct _LSA_TRUST_INFORMATION { + + LSA_UNICODE_STRING Name; + PSID Sid; + +} LSA_TRUST_INFORMATION, *PLSA_TRUST_INFORMATION; + +// where members have the following usage: +// +// Name - The name of the domain. +// +// Sid - A pointer to the Sid of the Domain +// + +// +// The following data type is used in name and SID lookup services to +// describe the domains referenced in the lookup operation. +// + +typedef struct _LSA_REFERENCED_DOMAIN_LIST { + + ULONG Entries; + PLSA_TRUST_INFORMATION Domains; + +} LSA_REFERENCED_DOMAIN_LIST, *PLSA_REFERENCED_DOMAIN_LIST; + +// where members have the following usage: +// +// Entries - Is a count of the number of domains described in the +// Domains array. +// +// Domains - Is a pointer to an array of Entries LSA_TRUST_INFORMATION data +// structures. +// + +// +// The following data type is used in name to SID lookup services to describe +// the domains referenced in the lookup operation. +// + +#if (_WIN32_WINNT >= 0x0501) +typedef struct _LSA_TRANSLATED_SID2 { + + SID_NAME_USE Use; + PSID Sid; + LONG DomainIndex; + ULONG Flags; + +} LSA_TRANSLATED_SID2, *PLSA_TRANSLATED_SID2; + +// where members have the following usage: +// +// Use - identifies the use of the SID. If this value is SidUnknown or +// SidInvalid, then the remainder of the record is not set and +// should be ignored. +// +// Sid - Contains the complete Sid of the tranlated SID +// +// DomainIndex - Is the index of an entry in a related +// LSA_REFERENCED_DOMAIN_LIST data structure describing the +// domain in which the account was found. +// +// If there is no corresponding reference domain for an entry, then +// this field will contain a negative value. +// +#endif + +// +// The following data type is used in SID to name lookup services to +// describe the domains referenced in the lookup operation. +// + +typedef struct _LSA_TRANSLATED_NAME { + + SID_NAME_USE Use; + LSA_UNICODE_STRING Name; + LONG DomainIndex; + +} LSA_TRANSLATED_NAME, *PLSA_TRANSLATED_NAME; + +// where the members have the following usage: +// +// Use - Identifies the use of the name. If this value is SidUnknown +// or SidInvalid, then the remainder of the record is not set and +// should be ignored. If this value is SidWellKnownGroup then the +// Name field is invalid, but the DomainIndex field is not. +// +// Name - Contains the isolated name of the translated SID. +// +// DomainIndex - Is the index of an entry in a related +// LSA_REFERENCED_DOMAIN_LIST data structure describing the domain +// in which the account was found. +// +// If there is no corresponding reference domain for an entry, then +// this field will contain a negative value. +// + +// +// The following structure specifies the account domain info +// (corresponds to the PolicyAccountDomainInformation information class). +// + +typedef struct _POLICY_ACCOUNT_DOMAIN_INFO { + + LSA_UNICODE_STRING DomainName; + PSID DomainSid; + +} POLICY_ACCOUNT_DOMAIN_INFO, *PPOLICY_ACCOUNT_DOMAIN_INFO; + +// where the members have the following usage: +// +// DomainName - Is the name of the domain +// +// DomainSid - Is the Sid of the domain +// + +// +// The following structure corresponds to the PolicyDnsDomainInformation +// information class +// + +typedef struct _POLICY_DNS_DOMAIN_INFO +{ + LSA_UNICODE_STRING Name; + LSA_UNICODE_STRING DnsDomainName; + LSA_UNICODE_STRING DnsForestName; + GUID DomainGuid; + PSID Sid; + +} POLICY_DNS_DOMAIN_INFO, *PPOLICY_DNS_DOMAIN_INFO; + +// where the members have the following usage: +// +// Name - Is the name of the Domain +// +// DnsDomainName - Is the DNS name of the domain +// +// DnsForestName - Is the DNS forest name of the domain +// +// DomainGuid - Is the GUID of the domain +// +// Sid - Is the Sid of the domain + + +// +// Access types for the Lookup Policy object +// +// Choose values to correspond to the POLICY_* access types +// + +#define LOOKUP_VIEW_LOCAL_INFORMATION 0x00000001 +#define LOOKUP_TRANSLATE_NAMES 0x00000800 + +// +// The following data type defines the classes of Lookup Policy +// Domain Information that may be queried. The values are chosen +// to match corresponding POLICY_INFORMATION_CLASS values. +// + +typedef enum _LSA_LOOKUP_DOMAIN_INFO_CLASS { + + AccountDomainInformation = 5, + DnsDomainInformation = 12 + +} LSA_LOOKUP_DOMAIN_INFO_CLASS, *PLSA_LOOKUP_DOMAIN_INFO_CLASS; + +// +// Lookup handle +// + +typedef PVOID LSA_LOOKUP_HANDLE, *PLSA_LOOKUP_HANDLE; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +NTSTATUS +LsaLookupOpenLocalPolicy( + _In_ PLSA_OBJECT_ATTRIBUTES ObjectAttributes, + _In_ ACCESS_MASK AccessMask, + _Inout_ PLSA_LOOKUP_HANDLE PolicyHandle + ); + +NTSTATUS +LsaLookupClose( + _In_ LSA_LOOKUP_HANDLE ObjectHandle + ); + +NTSTATUS +LsaLookupTranslateSids( + _In_ LSA_LOOKUP_HANDLE PolicyHandle, + _In_ ULONG Count, + _In_ PSID *Sids, + _Out_ PLSA_REFERENCED_DOMAIN_LIST *ReferencedDomains, + _Out_ PLSA_TRANSLATED_NAME *Names + ); + +#if (_WIN32_WINNT >= 0x0501) +NTSTATUS +LsaLookupTranslateNames( + _In_ LSA_LOOKUP_HANDLE PolicyHandle, + _In_ ULONG Flags, + _In_ ULONG Count, + _In_ PLSA_UNICODE_STRING Names, + _Out_ PLSA_REFERENCED_DOMAIN_LIST *ReferencedDomains, + _Out_ PLSA_TRANSLATED_SID2 *Sids + ); +#endif + +NTSTATUS +LsaLookupGetDomainInfo( + _In_ LSA_LOOKUP_HANDLE PolicyHandle, + _In_ LSA_LOOKUP_DOMAIN_INFO_CLASS DomainInfoClass, + _Out_ PVOID *DomainInfo + ); + +NTSTATUS +LsaLookupFreeMemory( + _In_ PVOID Buffer + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _LSALOOKUP_ + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/MailMsg.Idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/MailMsg.Idl new file mode 100644 index 0000000000000000000000000000000000000000..4913893384b2724b75d2ea32bea7446a70d6b98d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/MailMsg.Idl @@ -0,0 +1,2018 @@ +/* + @doc MAILMSG EXTERNAL + + @module MAILMSG.IDL - IDL for Mail Message Object. | This module declares the + various interfaces exported for access to the Mail Message Object. +*/ + + +cpp_quote("/*++") +cpp_quote("") +cpp_quote("Copyright (c) 1996, 1997 Microsoft Corporation") +cpp_quote("") +cpp_quote("Module Name:") +cpp_quote("") +cpp_quote(" mailmsg.idl / mailmsg.h") +cpp_quote("") +cpp_quote("Abstract:") +cpp_quote("") +cpp_quote(" This module contains definitions for the COM interfaces for") +cpp_quote(" the Mail Message Object.") +cpp_quote("") +cpp_quote("Author:") +cpp_quote("") +cpp_quote(" Don Dumitru (dondu@microsoft.com)") +cpp_quote("") +cpp_quote("Revision History:") +cpp_quote("") +cpp_quote(" dondu 2/24/98 created") +cpp_quote("") +cpp_quote("--*/") + + +// mailmsg.idl : IDL source for mailmsg.dll +// + +// This file will be processed by the MIDL tool to +// produce the type library (mailmsg.tlb) and marshalling code. + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +// +// Define an FIO_CONTEXT so that the compiler will not complain +// during MIDL PASS. +// +cpp_quote("#ifdef MIDL_PASS") + +typedef struct _FIO_CONTEXT { + DWORD m_dwTempHack ; + DWORD m_dwSignature ; + HANDLE m_hFile ; +} FIO_CONTEXT, *PFIO_CONTEXT; + +cpp_quote("#endif") + +cpp_quote("#include ") + + +// Define a structure as a filter context for quickly going through +// recipients in a list of domains and returning recipients that +// match certain filtering criteria +typedef struct _RECIPIENT_FILTER_CONTEXT +{ + DWORD dwCurrentDomain; + DWORD dwCurrentRecipientIndex; + DWORD dwRecipientsLeftInDomain; + DWORD dwNextDomain; + DWORD dwFilterMask; + DWORD dwFilterFlags; + +} RECIPIENT_FILTER_CONTEXT, *LPRECIPIENT_FILTER_CONTEXT; + + +//@doc MAILMSG EXTERNAL + +// +// Define insertion flags for SetNextDomain +// +//@const DWORD | FLAG_FAIL_IF_SOURCE_DOMAIN_LINKED | Fail if current domain has existing domain links +cpp_quote("#define FLAG_FAIL_IF_SOURCE_DOMAIN_LINKED 0x00000001") +//@const DWORD | FLAG_FAIL_IF_NEXT_DOMAIN_LINKED | Fail if next domain has existing domain links +cpp_quote("#define FLAG_FAIL_IF_NEXT_DOMAIN_LINKED 0x00000002") +//@const DWORD | FLAG_OVERWRITE_EXISTING_LINKS | Force overwrite of exiting domain link information +cpp_quote("#define FLAG_OVERWRITE_EXISTING_LINKS 0x00000004") +//@const DWORD | FLAG_OVERWRITE_EXISTING_LINKS | Force the current domain to only domain is a domain list +cpp_quote("#define FLAG_SET_FIRST_DOMAIN 0x00000008") + +// +// Define address types for IMailMsgRecipientsBase::Item +// +//@const DWORD | ADDRTYPE_SMTP | SMTP address +cpp_quote("#define ADDRTYPE_SMTP 0") +//@const DWORD | ADDRTYPE_X400 | X400 address +cpp_quote("#define ADDRTYPE_X400 1") +//@const DWORD | ADDRTYPE_X500 | X500 address +cpp_quote("#define ADDRTYPE_X500 2") +//@const DWORD | ADDRTYPE_LEGACY_EX_DN | DN For Exchange 5.5 and previous +cpp_quote("#define ADDRTYPE_LEGACY_EX_DN 3") +//@const DWORD | ADDRTYPE_OTHER | Other address type +cpp_quote("#define ADDRTYPE_OTHER 4") + +//@const HRESULT | MAILMSG_S_PENDING | Success. The operation is pending completion. +cpp_quote("#define MAILMSG_S_PENDING MAKE_HRESULT(SEVERITY_SUCCESS,FACILITY_NT_BIT,STATUS_PENDING)") +//@const HRESULT | MAILMSG_E_DUPLICATE | Failure. The recipient is a duplicate of one already in the list. +cpp_quote("#define MAILMSG_E_DUPLICATE __HRESULT_FROM_WIN32(ERROR_FILE_EXISTS)") +//@const HRESULT | MAILMSG_E_PROPNOTFOUND | Failure. The requested property does not exist. +cpp_quote("#define MAILMSG_E_PROPNOTFOUND STG_E_UNKNOWN") + +//@const HRESULT | MAILTRANSPORT_S_PENDING | Success. The operation is pending completion. +cpp_quote("#define MAILTRANSPORT_S_PENDING MAILMSG_S_PENDING") + +//@const HRESULT | STOREDRV_E_RETRY | Success. The operation is pending completion. +cpp_quote("#define STOREDRV_E_RETRY MAKE_HRESULT(SEVERITY_ERROR,FACILITY_ITF,ERROR_RETRY)") + +//@const HRESULT | STOREDRV_E_SHUTDOWN | Success. The operation is pending shutdown. +cpp_quote("#define STOREDRV_E_SHUTDOWN 0xC004012DL") + +//@const DWORD | MAILMSG_AMF_MUSTCREATE | Store driver must create the message, regardless of recipients. +cpp_quote("#define MAILMSG_AMF_MUSTCREATE 0x00000001") + +//@const DWORD | SMTP_INIT_VSERVER_STARTUP | Virtual server is starting. +cpp_quote("#define SMTP_INIT_VSERVER_STARTUP 0x00000001") +//@const DWORD | SMTP_TERM_VSERVER_SHUTDOWN | Virtual server is stopping. +cpp_quote("#define SMTP_TERM_VSERVER_SHUTDOWN 0x00000002") +//@const DWORD | SMTP_INIT_BINDING_CHANGE | A binding change occurred. +cpp_quote("#define SMTP_INIT_BINDING_CHANGE 0x00000003") +//@const DWORD | SMTP_TERM_BINDING_CHANGE | A binding change occurred. +cpp_quote("#define SMTP_TERM_BINDING_CHANGE 0x00000004") + + +//@const DWORD | MAILMSG_GETPROPS_COMPLETE | Get the complete property stream. +cpp_quote("#define MAILMSG_GETPROPS_COMPLETE 0x00000001") +//@const DWORD | MAILMSG_GETPROPS_INCREMENTAL | Get the incremental property stream. +cpp_quote("#define MAILMSG_GETPROPS_INCREMENTAL 0x00000002") +//@const DWORD | MAILMSG_GETPROPS_CLEAR_DIRTY | Clear the dirty flag(s). +cpp_quote("#define MAILMSG_GETPROPS_CLEAR_DIRTY 0x00000004") + + +//@doc MAILMSG EXTERNAL + + +/* + @interface IMailMsgNotify | Interface for receiving async notifications. + @meth HRESULT | Notify | Notify than an operation has completed. +*/ +[ + helpstring("Mail Message Notify"), + object, + pointer_default(unique), + uuid(0f7c3c30-a8ad-11d1-aa91-00aa006bc80b) +] +interface IMailMsgNotify : IUnknown +{ + //@method HRESULT | IMailMsgNotify | Notify | Notify that an operation has completed. + //@parm HRESULT | hrRes | [in] Specifies the result of the operation. + //@rvalue S_OK | Success. + [helpstring("Notify that an operation has completed.")] + HRESULT Notify([in] HRESULT hrRes); +}; + +interface IMailMsgProperties; + + +//@doc MAILMSG EXTERNAL + +/* + @interface IMailMsgPropertyStream | Used by the message object for storing properties in the + store driver. + @meth HRESULT | GetSize | Get the number of bytes in the stream (with async completion). + @meth HRESULT | ReadBlocks | Read a list of blocks from the stream (with async completion). + @meth HRESULT | WriteBlocks | Write a list of blocks to the stream (with async completion). + @meth HRESULT | StartWriteBlocks | Mark the start of a writeblocks transaction. + @meth HRESULT | EndWriteBlocks | Mark the end of a writeblocks transaction. + @meth HRESULT | CancelWriteBlocks | Mark the end of a writeblocks transaction. + Signals that the data isn't complete and should be discarded. +*/ +[ + helpstring("Mail Message Property Stream"), + local, // this interface is local only + object, + pointer_default(unique), + uuid(a44819c0-a7cf-11d1-aa91-00aa006bc80b) +] +interface IMailMsgPropertyStream : IUnknown +{ + //@method HRESULT | IMailMsgPropertyStream | GetSize | Get the number of bytes in the stream (with + // async completion). + //@parm DWORD * | pdwSize | [out] Receives the result. The caller must not change this until the + // operation completes. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the method will complete synchronously. Even if this value is non-NULL, the + // method may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. Operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Get the number of bytes in the stream (with async completion).")] + HRESULT GetSize([in] IMailMsgProperties *pMsg, + [out/*,ptr*/] DWORD *pdwSize, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgPropertyStream | ReadBlocks | Read a list of blocks from the stream (with + // async completion). + //@parm DWORD | dwCount | [in] Specifies the number of blocks. + //@parm DWORD * | pdwOffset | [in,size_is(dwCount),length_is(dwCount),unique] Specifies the list of + // offsets to read from. The caller must not change this list until the operation completes. + //@parm DWORD * | pdwLength | [in,size_is(dwCount),length_is(dwCount),unique] Specifies the list of + // lengths to read. The caller must not change this list until the operation completes. + //@parm BYTE * | ppbBlock | [out] Specifies the buffers to read into. The caller must not change this + // list until the operation completes. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Read a list of blocks from the stream (with async completion).")] + HRESULT ReadBlocks([in] IMailMsgProperties *pMsg, + [in] DWORD dwCount, + [in,size_is(dwCount),length_is(dwCount),unique] DWORD *pdwOffset, + [in,size_is(dwCount),length_is(dwCount),unique] DWORD *pdwLength, + [out,size_is(dwCount)] BYTE **ppbBlock, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgPropertyStream | WriteBlocks | Write a list of blocks from the stream + // (with async completion). StartWriteBlocks should always be called before this method is called. + // The last WriteBlocks will be followed by a call to EndWriteBlocks or CancelWriteBlocks. + //@parm DWORD | dwCount | [in] Specifies the number of blocks. + //@parm DWORD * | pdwOffset | [in,size_is(dwCount),length_is(dwCount),unique] Specifies the list of + // offsets to write to. The caller must not change this list until the operation completes. + //@parm DWORD * | pdwLength | [in,size_is(dwCount),length_is(dwCount),unique] Specifies the list of + // lengths to write. The caller must not change this list until the operation completes. + //@parm BYTE * | ppbBlock | [out] Specifes the buffers to write from. The caller must not change this + // list until the operation completes. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the method will complete synchronously. Even if this value is non-NULL, the + // method may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Write a list of blocks to the stream (with async completion).")] + HRESULT WriteBlocks([in] IMailMsgProperties *pMsg, + [in] DWORD dwCount, + [in,size_is(dwCount),length_is(dwCount),unique] DWORD *pdwOffset, + [in,size_is(dwCount),length_is(dwCount),unique] DWORD *pdwLength, + [in,size_is(dwCount)] BYTE **ppbBlock, + [in,unique] IMailMsgNotify *pNotify); + //@method HRESULT | IMailMsgPropertyStream | StartWriteBlocks | Mark the start of a WriteBlocks + // transaction. Reports information on the quantity and size of blocks the that will be written + // before the next call to EndWriteBlocks. + //@parm DWORD | dwBlocksToWrite | [in] Specifies the number of blocks that will be written write. + //@parm DWORD | dwTotalBytesToWrite | [in] Specifies the sum of the size of all blocks that will + // be written. + //@rvalue S_OK | Success. The operation completed synchronously. + //@xref + [helpstring("Mark the start of a write blocks transaction.")] + HRESULT StartWriteBlocks([in] IMailMsgProperties *pMsg, + [in] DWORD dwBlocksToWrite, + [in] DWORD dwTotalBytesToWrite); + //@method HRESULT | IMailMsgPropertyStream | StartWriteBlocks | Mark the end of a WriteBlocks + // transaction. + //@rvalue S_OK | Success. The operation completed synchronously. + //@xref + [helpstring("Mark the end of a write blocks transaction.")] + HRESULT EndWriteBlocks([in] IMailMsgProperties *pMsg); + + //@method HRESULT | IMailMsgPropertyStream | CancelWriteBlocks | Mark the end of a WriteBlocks + // transaction. Signals that the data isn't complete and should be discarded. + //@rvalue S_OK | Success. The operation completed synchronously. + //@xref + [helpstring("Mark the end of a write blocks transaction. Signals that the data isn't complete and should be discarded.")] + HRESULT CancelWriteBlocks([in] IMailMsgProperties *pMsg); +}; + + +//@doc MAILMSG EXTERNAL + + +/* + @interface IMailMsgRecipientsBase | Base interface for accessing a recipient list. + @meth HRESULT | Count | Get the number of recipients. + @meth HRESULT | Item | Get the name of a recipient. + @meth HRESULT | PutProperty | Write a recipient property. + @meth HRESULT | GetProperty | Read a recipient property. + @meth HRESULT | PutStringA | Write a recipient string property. + @meth HRESULT | GetStringA | Read a recipient string property. + @meth HRESULT | PutStringW | Write a recipient Unicode string property. + @meth HRESULT | GetStringW | Read a recipient Unicode string property. + @meth HRESULT | PutDWORD | Write a recipient DWORD property. + @meth HRESULT | GetDWORD | Read a recipient DWORD property. + @meth HRESULT | PutBool | Write a recipient boolean property. + @meth HRESULT | GetBool | Read a recipient boolean property. + @xref +*/ +[ + helpstring("Mail Message Recipients Base"), + object, + pointer_default(unique), + uuid(d1a97920-a891-11d1-aa91-00aa006bc80b) +] +interface IMailMsgRecipientsBase : IUnknown +{ + //@method HRESULT | IMailMsgRecipientsBase | Count | Get the number of recipients. + //@parm DWORD * | pdwCount | [in] Receives the result. + //@rvalue S_OK | Success. + [helpstring("Get the number of recipients.")] + HRESULT Count([out/*,ptr*/] DWORD *pdwCount); + + //@method HRESULT | IMailMsgRecipientsBase | Item | Get the name of a recipient. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwWhichName | [in] Specifies which name to get. The possible values + // are ADDRTYPE_SMTP, ADDRTYPE_X400, ADDRTYPE_X500, + // or ADDRTYPE_LEGACY_EX_DN. + //@parm DWORD | cchLength | [in] Specifies the maximum length of the name (including the terminating + // NULL). + //@parm LPSTR | pszName | [out,size_is(cchLength)] Receives the name. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Failure. The recipient is not present. The name receives NULL. + [helpstring("Get the name of a recipient.")] + HRESULT Item([in] DWORD dwIndex, + [in] DWORD dwWhichName, + [in] DWORD cchLength, + [out,size_is(cchLength)/*,ptr*/] LPSTR pszName); + + //@method HRESULT | IMailMsgRecipientsBase | PutProperty | Write a recipient property. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cbLength | [in] Specifies the length in bytes of the value. This value should be + // passed in as zero if pbValue is NULL. + //@parm BYTE * | pbValue | [in,size_is(cbLength),length_is(cbLength),unique] Specifies the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The recipient or property was not present. + //@xref + [helpstring("Write a recipient property.")] + HRESULT PutProperty([in] DWORD dwIndex, + [in] DWORD dwPropID, + [in] DWORD cbLength, + [in,size_is(cbLength),length_is(cbLength),unique] BYTE *pbValue); + + //@method HRESULT | IMailMsgRecipientsBase | GetProperty | Read a recipient property. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cbLength | [in] Specifies the length in bytes of the buffer to receive the value. + //@parm DWORD * | pcbLength | [out] Receives the length in bytes of the value. If the property is not + // present, this will receive zero. + //@parm BYTE * | pbValue | [out,size_is(cbLength),length_is(*pcbLength)] Receives the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The recipient or property was not present. + //@xref + [helpstring("Read a recipient property.")] + HRESULT GetProperty([in] DWORD dwIndex, + [in] DWORD dwPropID, + [in] DWORD cbLength, + [out] DWORD *pcbLength, + [out,size_is(cbLength),length_is(*pcbLength)/*,ptr*/] BYTE *pbValue); + + //@method HRESULT | IMailMsgRecipientsBase | PutStringA | Write a recipient string property. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm LPCSTR | pszValue | [in,unique] Specifies the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The recipient or property was not present. + //@xref + [helpstring("Write a recipient string property.")] + HRESULT PutStringA([in] DWORD dwIndex, + [in] DWORD dwPropID, + [in,unique] LPCSTR pszValue); + + //@method HRESULT | IMailMsgRecipientsBase | GetStringA | Read a recipient string property. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cchLength | [in] Specifies the length in characters (including the terminating NULL) + // of the buffer to receive the value. + //@parm LPCSTR | pszValue | [out,size_is(cchLength)] Receives the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The recipient or property was not present. + //@xref + [helpstring("Read a recipient string property.")] + HRESULT GetStringA([in] DWORD dwIndex, + [in] DWORD dwPropID, + [in] DWORD cchLength, + [out,size_is(cchLength)/*,ptr*/] LPSTR pszValue); + + //@method HRESULT | IMailMsgRecipientsBase | PutStringW | Write a recipient Unicode string property. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm LPCWSTR | pszValue | [in,unique] Specifies the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The recipient or property was not present. + //@xref + [helpstring("Write a recipient Unicode string property.")] + HRESULT PutStringW([in] DWORD dwIndex, + [in] DWORD dwPropID, + [in,unique] LPCWSTR pszValue); + + //@method HRESULT | IMailMsgRecipientsBase | GetStringW | Read a recipient Unicode string property. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cchLength | [in] Specifies the length in characters (including the terminating NULL) + // of the buffer to receive the value. + //@parm LPCSTR | pszValue | [out,size_is(cchLength)] Receives the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The recipient or property was not present. + //@xref + [helpstring("Read a recipient Unicode string property.")] + HRESULT GetStringW([in] DWORD dwIndex, + [in] DWORD dwPropID, + [in] DWORD cchLength, + [out,size_is(cchLength)/*,ptr*/] LPWSTR pszValue); + + //@method HRESULT | IMailMsgRecipientsBase | PutDWORD | Write a recipient DWORD property. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | dwValue | [in] The value to write. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The recipient or property was not present. + //@xref + [helpstring("Write a recipient DWORD property.")] + HRESULT PutDWORD([in] DWORD dwIndex, + [in] DWORD dwPropID, + [in] DWORD dwValue); + + //@method HRESULT | IMailMsgRecipientsBase | GetDWORD | Read a recipient DWORD property. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD * | pdwValue | [out] Receives the value. If the property is not present, the method + // sets this to zero and returns S_FALSE. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The recipient or property was not present. + //@xref + [helpstring("Read a recipient DWORD property.")] + HRESULT GetDWORD([in] DWORD dwIndex, + [in] DWORD dwPropID, + [out/*,ptr*/] DWORD *pdwValue); + + //@method HRESULT | IMailMsgRecipientsBase | PutBool | Write a recipient boolean property. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | dwValue | [in] The value to write. This value is coerced to either TRUE or FALSE. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The recipient or property was not present. + //@xref + [helpstring("Write a recipient boolean property.")] + HRESULT PutBool([in] DWORD dwIndex, + [in] DWORD dwPropID, + [in] DWORD dwValue); + + //@method HRESULT | IMailMsgRecipientsBase | GetBool | Read a recipient boolean property. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD * | pdwValue | [out] Receives the value, which will either be TRUE or FALSE. If the + // property is not present, the method sets this to FALSE and returns S_FALSE. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The recipient or property was not present. + //@xref + [helpstring("Read a recipient boolean property.")] + HRESULT GetBool([in] DWORD dwIndex, + [in] DWORD dwPropID, + [out/*,ptr*/] DWORD *pdwValue); +}; + + +/* + @interface IMailMsgRecipientsAdd | Interface for adding to a recipient list. + @meth HRESULT | AddPrimary | Add a primary recipient (overwrite duplicates). + @meth HRESULT | AddSecondary | Add a secondary recipient (reject duplicates). + @xref +*/ +[ + helpstring("Mail Message Recipients Add"), + object, + pointer_default(unique), + uuid(4c28a700-a892-11d1-aa91-00aa006bc80b) +] +interface IMailMsgRecipientsAdd : IMailMsgRecipientsBase +{ + //@method HRESULT | IMailMsgRecipientsAdd | AddPrimary | Add a primary recipient (overwrite + // duplicates). + //@parm DWORD | dwCount | [in] Specifies the number of recipient names. + //@parm LPCSTR * | ppszNames | [in,size_is(dwCount)] Specifies the recipient names. + //@parm DWORD * | pdwPropIDs | [in,size_is(dwCount)] Specifies the property ID's of the names. + // These can be ADDRTYPE_SMTP, ADDRTYPE_X400, ADDRTYPE_X500, + // or ADDRTYPE_LEGACY_EX_DN. Duplicates are not allowed. + //@parm DWORD * | pdwIndex | [out] Receives the zero-based index of the recipient. + //@parm IMailMsgRecipientsBase * | pFrom | [in,unique] Specifies the recipient list from which to copy + // properties. If this value is NULL, then no properties will be copied. Names will only be copied + // if the new reciepent has 0 names. The FLAG_RECIPIENT_DO_NOT_DELIVER + // and FLAG_RECIPIENT_NO_NAME_COLLISIONS flags in the + // IMMPID_RP_RECEIPIENT_FLAGS property are not copied + //@parm DWORD | dwFrom | [in] Specifies the zero-based index of the recipient from which to copy + // properties. This value is ignored if pFrom is NULL. + //@rvalue S_OK | Success. + //@rvalue S_FALSE | Success. The recipient is a duplicate of one already in the list. + //@xref + [helpstring("Add a primary recipient (overwrite duplicates)."),local] + HRESULT AddPrimary([in] DWORD dwCount, + [in,size_is(dwCount)] LPCSTR *ppszNames, + [in,size_is(dwCount)] DWORD *pdwPropIDs, + [out/*,ptr*/] DWORD *pdwIndex, + [in,unique] IMailMsgRecipientsBase *pFrom, + [in] DWORD dwFrom); + + //@method HRESULT | IMailMsgRecipientsAdd | AddSecondary | Add a secondary recipient (reject + // duplicates). + //@parm DWORD | dwCount | [in] Specifies the number of recipient names. + //@parm LPCSTR * | ppszNames | [in,size_is(dwCount)] Specifies the recipient names. + //@parm DWORD * | pdwPropIDs | [in,size_is(dwCount)] Specifies the property ID's of the names. + //@parm DWORD * | pdwIndex | [out] Receives the zero-based index of the recipient. + //@parm IMailMsgRecipientsBase * | pFrom | [in,unique] Specifies the recipient list from which to copy + // properties. If this value is NULL, then no properties will be copied. Names will only be copied + // if the new reciepent has 0 names. The FLAG_RECIPIENT_DO_NOT_DELIVER and + // FLAG_RECIPIENT_NO_NAME_COLLISIONS flags in the + // IMMPID_RP_RECEIPIENT_FLAGS property are not copied + //@parm DWORD | dwFrom | [in] Specifies the zero-based index of the recipient from which to copy + // properties. This value is ignored if pFrom is NULL. + //@rvalue S_OK | Success. + //@rvalue MAILMSG_E_DUPLICATE | Failure, the recipient is a duplicate of one already in the list. + //@xref + [helpstring("Add a secondary recipient (reject duplicates)."),local] + HRESULT AddSecondary([in] DWORD dwCount, + [in,size_is(dwCount)] LPCSTR *ppszNames, + [in,size_is(dwCount)] DWORD *pdwPropIDs, + [out/*,ptr*/] DWORD *pdwIndex, + [in,unique] IMailMsgRecipientsBase *pFrom, + [in] DWORD dwFrom); +}; + + +/* + @interface IMailMsgRecipients | Interface for accessing a recipient list. + @meth HRESULT | Commit | Commit all changes to a recipient to disk (with async completion). + @meth HRESULT | DomainCount | Get the count of the domains. + @meth HRESULT | DomainItem | Get information about one domain. + @meth HRESULT | AllocNewList | Create a new recipient list. + @meth HRESULT | WriteList | Write the new recipient list. + @xref +*/ +[ + helpstring("Mail Message Recipients"), + object, + pointer_default(unique), + uuid(19507fe0-a892-11d1-aa91-00aa006bc80b) +] +interface IMailMsgRecipients : IMailMsgRecipientsBase +{ + //@method HRESULT | IMailMsgRecipients | Commit | Commit all changes to a recipient to disk (with + // async completion). + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the recipient to commit. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the method will complete synchronously. Even if this value is non-NULL, the + // method may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Commit all changes to a recipient to disk (with async completion).")] + HRESULT Commit([in] DWORD dwIndex, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgRecipients | DomainCount | Get the count of the domains. + //@parm DWORD * | pdwCount | [out] Receives the result. + //@rvalue S_OK | Success. + [helpstring("Get the count of the domains.")] + HRESULT DomainCount([out/*,ptr*/] DWORD *pdwCount); + + //@method HRESULT | IMailMsgRecipients | DomainItem | Get information about one domain. + //@parm DWORD | dwIndex | [in] Specifies the zero-based index of the domain. + //@parm DWORD | cchLength | [in] Specifies the length in characters (including the terminating NULL) + // of the buffer to receive the domain name. + //@parm LPSTR | pszDomain | [out,size_is(cchLength)] Receives the domain name. This may be NULL. + //@parm DWORD * | pdwRecipientIndex | [out] Receives the index of the first recipient in the domain. This may be NULL. + //@parm DWORD * | pdwRecipientCount | [out] Recieves the count of the recipients in the domain. This may be NULL. + //@rvalue S_OK | Success. + //@rvalue STG_E_NOMOREFILES | Failure. The domain is not present. The name receives NULL, and the + // index and count receive zero. + [helpstring("Get information about one domain.")] + HRESULT DomainItem([in] DWORD dwIndex, + [in] DWORD cchLength, + [out,size_is(cchLength)/*,ptr*/] LPSTR pszDomain, + [out/*,ptr*/] DWORD *pdwRecipientIndex, + [out/*,ptr*/] DWORD *pdwRecipientCount); + + //@method HRESULT | IMailMsgRecipients | AllocNewList | Create a new recipient list. + //@parm IMailMsgRecipientsAdd ** | ppNewList | [out] Receives the new list. + //@rvalue S_OK | Success. + //@xref + [helpstring("Create a new recipient list.")] + HRESULT AllocNewList([out/*,ptr*/] IMailMsgRecipientsAdd **ppNewList); + + //@method HRESULT | IMailMsgRecipients | WriteList | Write the new recipient list. + // IMailMsgProperties::Commit must be called after this method in order to commit the new recipient + // list to disk. + //@parm IMailMsgPropertiesAdd * | pNewList | [in] Specifies the new list. + //@rvalue S_OK | Success. + //@xref + [helpstring("Write the new recipient list.")] + HRESULT WriteList([in,unique] IMailMsgRecipientsAdd *pNewList); + + //@method HRESULT | IMailMsgRecipients | SetNextDomain | Link a domain after another. + //@parm DWORD | dwDomainIndex | [in] Specifies the zero-based index of the source domain. + //@parm DWORD | dwNextDomainIndex | [in] Specifies the index of the domain to link after the source domain. + //@parm DWORD | dwFlags | [in] Specifies any optional flags. Flags may be any combination + // of FLAG_FAIL_IF_SOURCE_DOMAIN_LINKED or FLAG_FAIL_IF_TARGET_DOMAIN_LINKED. FLAG_OVERWRITE_EXISTING_LINKS + // may also be specified, but not in conjunction with the others. + // If FLAG_SET_FIRST_DOMAIN is set, this domain will be set as the first domain in a domain list (the next + // domain link for dwDomainIndex will be destroyed). + //@rvalue S_OK | Success. + //@rvalue E_INVALIDARG | Failure. One or more arguments are invalid + //@rvalue E_FAIL | Failure. The result contradicts with one or more of the flags. + [helpstring("Set the next domain in a recipient filter context.")] + HRESULT SetNextDomain( + [in] DWORD dwDomainIndex, + [in] DWORD dwNextDomainIndex, + [in] DWORD dwFlags); + + //@method HRESULT | IMailMsgRecipients | InitializeRecipientFilterContext | Initialize + // a recipient filter context against a chain of domain. Filter is based on comparing + // a set of filter flags against the IMMPID_RP_STATUS_FLAGS property. + //@parm LPRECIPIENT_FILTER_CONTEXT | pContext | [in,unique] Specifies the context variable to + // be initialized. This context must be allocated by the caller. + //@parm DWORD | dwStartingDomain | [in] Specifies the starting domain index. + //@parm DWORD | dwFilterMask | [in] Specifies the filter mask. This mask will mask out + // the bits of interest in IMMPID_RP_STATUS_FLAGS before checking the filter flags. + //@parm DWORD | dwFilterFlags | [in] Specifies the filter flags. These flags are + // compared against the result of the mask, and an exact match is required. + //@rvalue S_OK | Success. + //@rvalue E_INVALIDARG | Failure. One or more arguments are invalid + //@rvalue E_POINTER | Failure. The context passed in is NULL. + [helpstring("Initialze a recipient filter context.")] + HRESULT InitializeRecipientFilterContext( + [in,unique] LPRECIPIENT_FILTER_CONTEXT pContext, + [in] DWORD dwStartingDomain, + [in] DWORD dwFilterFlags, + [in] DWORD dwFilterMask); + + //@method HRESULT | IMailMsgRecipients | TerminateRecipientFilterContext | Terminates + // a recipient filter context. + //@parm LPRECIPIENT_FILTER_CONTEXT | pContext | [in,unique] Specifies the context variable to + // be terminated. + //@rvalue S_OK | Success. + //@rvalue E_POINTER | Failure. The context passed in is NULL. + [helpstring("Terminate a recipient filter context.")] + HRESULT TerminateRecipientFilterContext( + [in,unique] LPRECIPIENT_FILTER_CONTEXT pContext); + + //@method HRESULT | IMailMsgRecipients | GetNextRecipient | Returns the next recipient + // in the chain of domains that match the filtering criteria set for the filter context. + //@parm LPRECIPIENT_FILTER_CONTEXT | pContext | [in,unique] Specifies the filter context. This + // must be previously initialized by InitializeRecipientFilterContext. + //@parm DWORD * | pdwRecipientIndex | [out] Receives the next recipient with matching + // criteria. + //@rvalue S_OK | Success. + //@rvalue HRESULT_FROM_WIN32(ERROR_NO_MORE_ITEMS) | No more recipients match the criteria. + //@rvalue HRESULT_FROM_WIN32(ERROR_INVALID_DATA) | The context specified is invalid. + //@rvalue E_INVALIDARG | Failure. One or more arguments are invalid + //@rvalue E_POINTER | Failure. The context passed in is NULL. + [helpstring("Get the next domain in a recipient filter context.")] + HRESULT GetNextRecipient( + [in,unique] LPRECIPIENT_FILTER_CONTEXT pContext, + [out] DWORD *pdwRecipientIndex); + +}; + + +/* + @interface IMailMsgProperties | Interface for accessing properties of an Mail Message Object. + @meth HRESULT | PutProperty | Write a property. + @meth HRESULT | GetProperty | Read a property. + @meth HRESULT | Commit | Commit all changes to disk (with async completion). + @meth HRESULT | PutStringA | Write a string property. + @meth HRESULT | GetStringA | Read a string property. + @meth HRESULT | PutStringW | Write a Unicode string property. + @meth HRESULT | GetStringW | Read a Unicode string property. + @meth HRESULT | PutDWORD | Write a DWORD property. + @meth HRESULT | GetDWORD | Read a DWORD property. + @meth HRESULT | PutBool | Write a boolean property. + @meth HRESULT | GetBool | Read a boolean property. + @meth HRESULT | GetContentSize | Get the size of the content (with async completion). + @meth HRESULT | ReadContent | Read the content (with async completion). + @meth HRESULT | WriteContent | Write the content (with async completion). + @meth HRESULT | CopyContentToFile | Copy the content to a file (with async completion). + @meth HRESULT | CopyContentToFileEx | Copy the content to a file (with async completion). +// @meth HRESULT | CopyContentToStream | Copy the content to a stram (with async completion). + @meth HRESULT | ForkForRecipients | Create a new Mail Message Object for different recipients. + @meth HRESULT | RebindAfterFork | Allocates backing store and binds a forked message. + @meth HRESULT | SetContentSize | Set the size of the content (with async completion). + @meth HRESULT | MapContent | Memory map the content + @meth HRESULT | UnmapContent | Release memory mapped content +*/ +[ + helpstring("Mail Message Properties"), + local, + object, + pointer_default(unique), + uuid(ab95fb40-a34f-11d1-aa8a-00aa006bc80b) +] +interface IMailMsgProperties : IUnknown +{ + //@method HRESULT | IMailMsgProperties | PutProperty | Write a property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cbLength | [in] Specifies the length in bytes of the value. + //@parm BYTE * | pbValue | [in,size_is(cbLength),length_is(cbLength),unique] Specifies the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The property was not present. + //@xref + [helpstring("Write a property.")] + HRESULT PutProperty([in] DWORD dwPropID, + [in] DWORD cbLength, + [in,size_is(cbLength),length_is(cbLength),unique] BYTE *pbValue); + + //@method HRESULT | IMailMsgProperties | GetProperty | Read a property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cbLength | [in] Specifies the length in bytes of the buffer to receive the value. + //@parm DWORD * | pcbLength | [out] Receives the length in bytes of the value. This is set to zero if + // the property is not present. + //@parm BYTE * | pbValue | [out,size_is(cbLength),length_is(*pcbLength)] Receives the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The property was not present. *pcbLength is set to zero. + //@xref + [helpstring("Read a property.")] + HRESULT GetProperty([in] DWORD dwPropID, + [in] DWORD cbLength, + [out] DWORD *pcbLength, + [out,size_is(cbLength),length_is(*pcbLength)/*,ptr*/] BYTE *pbValue); + + //@method HRESULT | IMailMsgProperties | Commit | Commit all changes to disk (with async completion). + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the method will complete synchronously. Even if this value is non-NULL, the + // method may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Commit all changes to disk (with async completion).")] + HRESULT Commit([in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgProperties | PutStringA | Write a string property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm LPCSTR | pszValue | [in,unique] Specifies the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The property was not present. + //@xref + [helpstring("Write a string property.")] + HRESULT PutStringA([in] DWORD dwPropID, + [in,unique] LPCSTR pszValue); + + //@method HRESULT | IMailMsgProperties | GetStringA | Read a string property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cchLength | [in] Specifies the length in characters (including the terminating NULL) + // of the buffer to receive the value. + //@parm LPSTR | pszValue | [out,size_is(cchLength)] Receives the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The property was not present. The value receives NULL. + //@xref + [helpstring("Read a string property.")] + HRESULT GetStringA([in] DWORD dwPropID, + [in] DWORD cchLength, + [out,size_is(cchLength)/*,ptr*/, annotation("_Out_writes_(cchLength)")] LPSTR pszValue); + + //@method HRESULT | IMailMsgProperties | PutStringW | Write a Unicode string property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm LPCWSTR | pszValue | [in,unique] Specifies the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The property was not present. + //@xref + [helpstring("Write a Unicode string property.")] + HRESULT PutStringW([in] DWORD dwPropID, + [in,unique] LPCWSTR pszValue); + + //@method HRESULT | IMailMsgProperties | GetStringW | Read a Unicode string property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cchLength | [in] Specifies the length in characters (including the terminating NULL) + // of the buffer to receive the value. + //@parm LPCSTR | pszValue | [out,size_is(cchLength)] Receives the value. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The property was not present. The value receives NULL. + //@xref + [helpstring("Read a Unicode string property.")] + HRESULT GetStringW([in] DWORD dwPropID, + [in] DWORD cchLength, + [out,size_is(cchLength)/*,ptr*/, annotation("_Out_writes_(cchLength)")] LPWSTR pszValue); + + //@method HRESULT | IMailMsgProperties | PutDWORD | Write a DWORD property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | dwValue | [in] The value to write. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The property was not present. + //@xref + [helpstring("Write a DWORD property.")] + HRESULT PutDWORD([in] DWORD dwPropID, + [in] DWORD dwValue); + + //@method HRESULT | IMailMsgProperties | GetDWORD | Read a DWORD property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD * | pdwValue | [out] Receives the value. If the property is not present, the method + // sets this to zero and returns STG_E_UNKNOWN. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The property was not present. *pdwValue is set to zero. + //@xref + [helpstring("Read a DWORD property.")] + HRESULT GetDWORD([in] DWORD dwPropID, + [out/*,ptr*/] DWORD *pdwValue); + + //@method HRESULT | IMailMsgProperties | PutBool | Write a boolean property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | dwValue | [in] The value to write. This value is coerced to either TRUE or FALSE. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The property was not present. + //@xref + [helpstring("Write a boolean property.")] + HRESULT PutBool([in] DWORD dwPropID, + [in] DWORD bValue); + + //@method HRESULT | IMailMsgProperties | GetBool | Read a boolean property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD * | pdwValue | [out] Receives the value, which will either be TRUE or FALSE. If the + // property is not present, the method sets this to FALSE and returns STG_E_UNKNOWN. + //@rvalue S_OK | Success. + //@rvalue STG_E_UNKNOWN | Error. The property was not present or recipient was not present. + //@xref + [helpstring("Read a boolean property.")] + HRESULT GetBool([in] DWORD dwPropID, + [out/*,ptr*/] DWORD *pbValue); + + //@method HRESULT | IMailMsgProperties | GetContentSize | Get the size of the content (with async + // completion). + //@parm DWORD * | pdwSize | [out] Receives the result. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Get the size of the content.")] + HRESULT GetContentSize([out/*,ptr*/] DWORD *pdwSize, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgProperties | ReadContent | Read the content (with async completion). + //@parm DWORD | dwOffset | [in] Specifies the offset to read from. + //@parm DWORD | dwLength | [in] Specifies the length in bytes to read. + //@parm DWORD * | pdwLength | [out] Receives the number of bytes read. + //@parm BYTE * | pbBlock | [out,size_is(dwLength),length_is(*pdwLength)] Receives the result. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Read the content (with async completion).")] + HRESULT ReadContent([in] DWORD dwOffset, + [in] DWORD dwLength, + [out] DWORD *pdwLength, + [out,size_is(dwLength),length_is(*pdwLength)] BYTE *pbBlock, + [in] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgProperties | WriteContent | Write the content (with async completion). + //@parm DWORD | dwOffset | [in] Specifies the offset to write to. + //@parm DWORD | dwLength | [in] Specifies the length in bytes to write. + //@parm DWORD * | pdwLength | [out] Receives the number of bytes written. + //@parm BYTE * | pbBlock | [out,size_is(dwLength),length_is(*pdwLength)] Data to write. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Write the content (with async completion).")] + HRESULT WriteContent([in] DWORD dwOffset, + [in] DWORD dwLength, + [out] DWORD *pdwLength, + [in,size_is(dwLength),length_is(*pdwLength)] BYTE *pbBlock, + [in] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgProperties | CopyContentToFile | Copy the content to a file (with async + // completion). + //@parm PFIO_CONTEXT | pFIOCopy | [in] Specifies the file to copy to. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Copy the content to a file (with async completion)."),local] + HRESULT CopyContentToFile([in] PFIO_CONTEXT pFIOCopy, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgProperties | CopyContentToFileEx | Copy the content to a file (with async + // completion). + //@parm PFIO_CONTEXT | pFIOCopy | [in] Specifies the file to copy to. + //@parm BOOL | fDotStuffed | [in] Specify if the pFIOCopy should contain dot stuffed data + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Copy the content to a file (with async completion)."),local] + HRESULT CopyContentToFileEx([in] PFIO_CONTEXT pFIOCopy, + [in] BOOL fDotStuffed, + [in,unique] IMailMsgNotify *pNotify); + +#if 0 + //@method HRESULT | IMailMsgProperties | CopyContentToStream | Copy the content to a stream (with + // async completion). + //@parm IMailMsgPropertyStream * | pStream | [in] Specifies the stream to copy to. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Copy the content to a stream (with async completion).")] + HRESULT CopyContentToStream([in,unique] IMailMsgPropertyStream *pStream, + [in,unique] IMailMsgNotify *pNotify); +#endif + + //@method HRESULT | IMailMsgProperties | ForkForRecipients | Create a new Mail Message Object for + // different recipients. + //@parm IMailMsgProperties ** | ppNewMessage | [out,unique] Receives the new message object. + //@parm IMailMsgRecipientsAdd ** | ppRecipients | [out,unique] Receives the new interface for adding + // recipients. + //@rvalue S_OK | Success. + //@xref + [helpstring("Create a new Mail Message Object for different recipients.")] + HRESULT ForkForRecipients([out,unique] IMailMsgProperties **ppNewMessage, + [out,unique] IMailMsgRecipientsAdd **ppRecipients); + + //@method HRESULT | IMailMsgProperties | CopyContentToFileAtOffset | Copy the content to a file at a given + //offset (with async completion). + //@parm PFIO_CONTEXT | pFIOCopy | [in] Specifies the file to copy to. + //@parm DWORD | dwOffset | [in] Specifies the offset of the file to copy to. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Copy the content to a file at a given offset (with async completion)."),local] + HRESULT CopyContentToFileAtOffset([in] PFIO_CONTEXT pFIOCopy, + [in] DWORD dwOffset, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgProperties | RebindAfterFork | Allocates backing store for a forked object, + // and binds the message to the storage. The caller may select to use either the same store driver as + // the original message, or any specific store driver. + //@parm IMailMsgProperties * | pOriginalMsg | [in] Speciifies the original message object from which to + // copy the message content. + //@parm IUnknown * | pStoreDriver | [in] Specifies a store driver from which to allocate + // backing store. If NULL, the store driver of the original message is used. + //@rvalue S_OK | Success. + //@xref + [helpstring("Allocates backing store and binds a forked message.")] + HRESULT RebindAfterFork([in] IMailMsgProperties *pOriginalMsg, + [in] IUnknown *pStoreDriver); + //@method HRESULT | IMailMsgProperties | SetContentSize | Get the size of the content (with async + // completion). + //@parm DWORD | dwSize | [out] Receives the result. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Get the size of the content.")] + HRESULT SetContentSize([in] DWORD dwSize, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgProperties | MapContent | Map the content + // of the message to a pointer. + //@parm BOOL | fWrite | [in] Write access? + //@parm BYTE ** | ppbContent | [in] Pointer to receive the pointer to + // the content. + //@parm BYTE ** | pcContent | [in] Pointer to receive the size of the + // content. + //@rvalue S_OK | Success. The operation completed synchronously. + //@xref + [helpstring("Memory map the content to a pointer.")] + HRESULT MapContent([in] BOOL fWrite, + [in] BYTE **ppbContent, + [in] DWORD *pcContent); + + //@method HRESULT | IMailMsgProperties | UnmapContent | Unmap memory + // mapped content + //@parm BYTE * | ppbContent | [in] Pointer to the content (acquired + // via MapContent) + //@rvalue S_OK | Success. The operation completed synchronously. + //@xref + [helpstring("Unmap the message contents.")] + HRESULT UnmapContent([in] BYTE *pbContent); +}; + +/* + @interface IMailMsgCommit | Optional store driver supplied interface + that is called to commit the message data. If the store driver + doesn't support this interface then FlushFileBuffers is called on + the PFIO_CONTEXT's handle. + @meth HRESULT | BeginCommit | Called at the start of + IMailMsgProperties::Commit. + @meth HRESULT | EndCommit | Called at the end of + IMailMsgProperties::Commit (after all StartWriteBlocks / WriteBlocks / + EndWriteBlocks calls). +*/ +[ + helpstring("Mail Message Commit"), + local, + object, + pointer_default(unique), + uuid(02B80EDB-6D5A-4d05-950A-237811F8D412) +] +interface IMailMsgCommit : IUnknown +{ + //@method HRESULT | IMailMsgCommit | BeginCommit | + // Called at the start of IMailMsgProperties::Commit. + //@parm IMailMsgPropertyStream | pStream | [in] Specifies the stream. + //@parm PFIO_CONTEXT | pFIOContext | [in] Specifies the content. + //@rvalue S_OK | Success. + //@rvalue other | Error. + [helpstring("Start commit operation")] + HRESULT BeginCommit([in] IMailMsgProperties *pMsg, + [in] IMailMsgPropertyStream *pStream, + [in] PFIO_CONTEXT pFIO); + + //@method HRESULT | IMailMsgCommit | EndCommit | + // Called at the end of IMailMsgProperties::Commit. + //@parm IMailMsgPropertyStream | pStream | [in] Specifies the stream. + //@parm PFIO_CONTEXT | pFIOContext | [in] Specifies the content. + //@rvalue S_OK | Success. + //@rvalue other | Error. + [helpstring("End commit operation")] + HRESULT EndCommit([in] IMailMsgProperties *pMsg, + [in] IMailMsgPropertyStream *pStream, + [in] PFIO_CONTEXT pFIO); + +}; + +/* + @interface IMailMsgValidate | Interface to validate mailmsg structures + @meth HRESULT | ValidateStream | Does the stream contain valid mailmsg + data?. +*/ +[ + helpstring("Mail Message Validate"), + local, + object, + pointer_default(unique), + uuid(6717b03c-072c-11d3-94ff-00c04fa379f1) +] +interface IMailMsgValidate : IUnknown +{ + //@method HRESULT | IMailMsgProperties | ValidateStream | + // Does the stream contain valid mailmsg data? + //@parm IMailMsgPropertyStream | pStream | [in] Specifies the stream. + //@rvalue S_OK | Success. + //@rvalue HRESULT_FROM_WIN32(ERROR_INVALID_DATA) | The stream is invalid. + [helpstring("Check stream data")] + HRESULT ValidateStream([in] IMailMsgPropertyStream *pStream); +}; + +/* + @interface IMailMsgValidateContext | Interface to validate context + @meth HRESULT | ValidateMessageContext | Method to validate context +*/ +[ + helpstring("MailMsg Interface to validate context"), + local, + object, + pointer_default(unique), + uuid(60a482b1-b311-4eca-a3a3-907f9dafd16f) +] +interface IMailMsgValidateContext : IUnknown +{ + //@method HRESULT | IMailMsgValidateContext | ValidateMessageContext | + // Determine if the context for this message is still valid. + //@rvalue S_OK | Success. This context is still valid. + //@rvalue HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) | Failure. This context + // is no longer valid. + //@rvalue E_NOTIMPL | Failure. The driver does not support this method. + HRESULT ValidateContext(); +}; + +/* + @interface IMailMsgPropertyManagement | Manage properties for an Mail Message Object. + @meth HRESULT | AllocPropIDRange | Allocate a range of property ID's. +*/ +[ + helpstring("Mail Message Property Management"), + object, + pointer_default(unique), + uuid(a2f196c0-a351-11d1-aa8a-00aa006bc80b) +] +interface IMailMsgPropertyManagement : IUnknown +{ + //@method HRESULT | IMailMsgPropertyManagement | AllocPropIDRange | Allocate a range of property ID's. + //@parm REFGUID | rguid | [in] Specifies the GUID for the range. If this range is not already + // registered, or if it is already registered and the count of the registered range matches the + // requested count, then the registration succeeds. + //@parm DWORD | cCount | [in] Specifies the count. + //@parm DWORD * | pdwStart | [out] Receives the starting property ID in the range. + //@rvalue S_OK | Success. + //@rvalue E_INVALIDARG | Failure. The range is already registered, with a different count. + [helpstring("Allocate a range of property ID's.")] + HRESULT AllocPropIDRange([in] REFGUID rguid, + [in] DWORD cCount, + [out/*,ptr*/] DWORD *pdwStart); +}; + + +/* + @interface IMailMsgEnumMessages | An enumerator for messages. + @meth HRESULT | Next | Enumerate a message (with async completion). +*/ +[ + helpstring("Mail Message Enumerator"), + local, + object, + pointer_default(unique), + uuid(e760a840-c8f1-11d1-9ff2-00c04fa37348) +] +interface IMailMsgEnumMessages : IUnknown +{ + //@method HRESULT | IMailMsgEnumMessages | Next | Enumerate a message (with async completion). + //@parm IMailMsgProperties * | pMsg | [in] Specifies the message. This may be NULL. + //@parm IMailMsgPropertyStream ** | ppStream | [out] Receives the property stream. + //@parm PFIO_CONTEXT * | ppFIOContentFile | [out] Receives the content file. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@rvalue STG_E_NOMOREFILES | Failure. There are no more undelivered messages. + //@xref + [helpstring("Enumerate a message (with async completion).")] + HRESULT Next([in,unique] IMailMsgProperties *pMsg, + [out/*,ptr*/] IMailMsgPropertyStream **ppStream, + [out/*,ptr*/] PFIO_CONTEXT *ppFIOContentFile, + [in,unique] IMailMsgNotify *pNotify); +}; + + +/* + @interface IMailMsgStoreDriver | Used by the protocol stack to manage message files in the store + driver. + @meth HRESULT | AllocMessage | Allocate property stream and content file for a recipient (with async + completion). + @meth HRESULT | EnumMessages | Get an enumerator for undelivered messages in the store. + @meth HRESULT | ReOpen | Re-open a property stream and/or content file (with async completion). + @meth HRESULT | Delete | Delete a property stream and content file (with async completion). +*/ +[ + helpstring("Mail Message Store Driver"), + local, + object, + pointer_default(unique), + uuid(246aae60-acc4-11d1-aa91-00aa006bc80b) +] +interface IMailMsgStoreDriver : IUnknown +{ + //@method HRESULT | IMailMsgStoreDriver | AllocMessage | Allocate property stream and content file for + // a recipient (with async completion). + //@parm IMailMsgProperties * | pMsg | [in,unique] Specifies the message. + //@parm DWORD | dwFlags | [in] Specifies flags. Currently only MAILMSG_AMF_MUSTCREATE is defined. + //@parm IMailMsgPropertyStream ** | ppStream | [out] Receives the property stream. + + //@parm PFIO_CONTEXT * | ppFIOContentFile | [out] Receives the content file. The content file will have been + // opened with FILE_FLAG_OVERLAPPED, and can only be closed by using + // IMailMsgStoreDriver::CloseContentFile. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Allocate property stream and content file for a recipient (with async completion).")] + HRESULT AllocMessage([in,unique] IMailMsgProperties *pMsg, + [in] DWORD dwFlags, + [out/*,ptr*/] IMailMsgPropertyStream **ppStream, + [out/*,ptr*/] PFIO_CONTEXT *ppFIOContentFile, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgStoreDriver | EnumMessages | Get an enumerator for undelivered messages in + // the store. + //@parm IMailMsgEnumMessages ** | ppEnum | [out] Receives the result. + //@rvalue S_OK | Success. + //@xref + [helpstring("Get an enumerator for undelivered messages in the store.")] + HRESULT EnumMessages([out] IMailMsgEnumMessages **ppEnum); + + //@method HRESULT | IMailMsgStoreDriver | ReOpen | Re-open a property stream and/or content file (with + // async completion). Before calling this method, if the property stream is being re-opened all + // instances of the property stream interface must have been released, and if the content file is + // being re-opened all instances of the content handle must have been closed. + //@parm IMailMsgProperties * | pMsg | [in,unique] Specifies the message. + //@parm IMailMsgPropertyStream ** | ppStream | [out] Receives the property stream. If this parameter + // is NULL, the property stream will not be re-opened. + //@parm PFIO_CONTEXT * | ppFIOContentFile | [out] Receives the content file. If this parameter is NULL, the + // content file will not be re-opened. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Re-open a property stream and/or content file (with async completion).")] + HRESULT ReOpen([in] IMailMsgProperties *pMsg, + [out/*,ptr*/] IMailMsgPropertyStream **ppStream, + [out/*,ptr*/] PFIO_CONTEXT *ppFIOContentFile, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgStoreDriver | Delete | Delete a property stream and content file (with + // async completion). Before calling this method, all instances of the property stream interface must + // be released, and all instances of the content file handle must be closed. This interface should + // be used by the MailMsg object only, all other users should go through IMailMsgQueueMgmt::Delete(). + //@parm IMailMsgProperties * | pMsg | [in,unique] Specifies the message. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Delete a property stream and content file (with async completion).")] + HRESULT Delete([in] IMailMsgProperties *pMsg, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgStoreDriver | CloseContentFile | Close the content file. + //@parm IMailMsgProperties * | pMsg | [in] Specifies the message. + //@parm PFIO_CONTEXT | pFIOContentFile | [in] Specifies the content handle. + //@xref + [helpstring("Close the content file.")] + HRESULT CloseContentFile([in] IMailMsgProperties *pMsg, [in] PFIO_CONTEXT pFIOContentFile); + + //@method HRESULT | IMailMsgStoreDriver | ReAllocMessage | Re-allocates a new property stream and/or content + // file based on existing storage (with async completion). + //@parm IMailMsgProperties * | pOriginalMsg | [in,unique] Specifies the message on which the re-allocation is to be based. + //@parm IMailMsgProperties * | pNewMsg | [in,unique] Specifies the message receiving the reallocation. + //@parm IMailMsgPropertyStream ** | ppStream | [out] Receives the property stream. + //@parm PFIO_CONTEXT * | ppFIOContentFile | [out] Receives the content file. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Re-allocates an empty property stream and content file based on existing storage (with async completion).")] + HRESULT ReAllocMessage( + [in] IMailMsgProperties *pOriginalMsg, + [in] IMailMsgProperties *pNewMsg, + [out/*,ptr*/] IMailMsgPropertyStream **ppStream, + [out/*,ptr*/] PFIO_CONTEXT *ppFIOContentFile, + [in,unique] IMailMsgNotify *pNotify + ); + + //@method HRESULT | IMailMsgStoreDriver | SupportWriteContent | Does the store support writeable content? + // store driver supports writeable content. + //@rvalue S_OK | Success. Writeable content is supported. + //@rvalue S_FALSE | Success. Writable content is not supported. + [helpstring("Does the store support writeable content?")] + HRESULT SupportWriteContent(); +}; + + +/* + @interface IMailMsgQueueMgmt | Mail Message Queue Management Interface. + @meth HRESULT | AddUsage | Increment the usage count. + @meth HRESULT | ReleaseUsage | Decrement the usage count. + @meth HRESULT | SetRecipientCount | Set the recipient count. + @meth HRESULT | GetRecipientCount | Get the recipient count. + @meth HRESULT | DecrementRecipientCount | Decrement the recipient count. + @meth HRESULT | IncrementRecipientCount | Increment the recipient count. + @meth HRESULT | Delete | Delete the backing store for the message object (with async completion). +*/ +[ + helpstring("Mail Message Queue Management Interface"), + object, + pointer_default(unique), + uuid(b2564d0a-d5a1-11d1-9ff7-00c04fa37348) +] +interface IMailMsgQueueMgmt : IUnknown +{ + //@method HRESULT | IMailMsgQueueMgmt | AddUsage | Increment the usage count. When the usage count + // is non-zero, the message object's resources are more likely to be kept cached in memory. + //@rvalue S_OK | Success. The usage count transitioned from zero to one. + //@rvalue S_FALSE | Success. The usage count was already above one. + //@rvalue E_FAIL | Failure. The usage count was a negative value (which should never happen). The + // increment operation has not been done. + //@xref + [helpstring("Increment the usage count.")] + HRESULT AddUsage(); + + //@method HRESULT | IMailMsgQueueMgmt | ReleaseUsage | Decrement the usage count. When the usage + // count is zero, the message object's resources are more likely to be released from memory. + //@rvalue S_OK | Success. The usage count transitioned from one to zero. + //@rvalue S_FALSE | Success. The resulting usage count was greater than one. + //@rvalue E_FAIL | Failure. The resulting usage count is a negative value (which should never + // happen). The decrement operation has not been done. + //@xref + [helpstring("Decrement the usage count.")] + HRESULT ReleaseUsage(); + + //@method HRESULT | IMailMsgQueueMgmt | SetRecipientCount | Set the recipient count. + //@parm DWORD | dwCount | [in] Specifies the value to set the recipient count to. + //@rvalue S_OK | Success. + //@xref + // + [helpstring("Set the recipient count.")] + HRESULT SetRecipientCount([in] DWORD dwCount); + + //@method HRESULT | IMailMsgQueueMgmt | GetRecipientCount | Get the recipient count. + //@parm DWORD * | pdwCount | [out] Receives the recipient count. + //@rvalue S_OK | Success. + //@xref + // + [helpstring("Get the recipient count.")] + HRESULT GetRecipientCount([out] DWORD *pdwCount); + + //@method HRESULT | IMailMsgQueueMgmt | DecrementRecipientCount | Decrement the recipient count. + //@parm DWORD | dwDecrement | [in] Specifies the amount to decement the recipient count by. + //@rvalue S_OK | Success. The resulting recipient count is zero. + //@rvalue S_FALSE | Success. The resulting recipient count is non-zero. + //@rvalue E_FAIL | Failure. The resulting recipient count is negative (which should never happen). + // The decrement operation has not been done. + //@xref + // + [helpstring("Decrement the recipient count.")] + HRESULT DecrementRecipientCount([in] DWORD dwDecrement); + + //@method HRESULT | IMailMsgQueueMgmt | IncrementRecipientCount | Increment the recipient count. + //@parm DWORD | dwIncrement | [in] Specifies the amount to incement the recipient count by. + //@rvalue S_OK | Success. The recipient count transitioned from zero to non-zero. The S_OK and + // S_FALSE return values are provided for debugging purposes only - clients should not use these + // different return values for anything other than debugging code. + //@rvalue S_FALSE | Success. The recipient count was non-zero before the call. The S_OK and S_FALSE + // return values are provided for debugging purposes only - clients should not use these different + // return values for anything other than debugging code. + //@rvalue E_FAIL | Failure. The recipient count was negative (which should never happen). The + // increment operation has not been done. + //@xref + // + [helpstring("Increment the recipient count.")] + HRESULT IncrementRecipientCount([in] DWORD dwIncrement); + + //@method HRESULT | IMailMsgQueueMgmt | Delete | Delete the backing store for the message object (with + // async completion). + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the operation will complete synchronously. Even if this value is non-NULL, the + // operation may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Delete the backing store for the message object (with async completion).")] + HRESULT Delete([in,unique] IMailMsgNotify *pNotify); +}; + + +/* + @interface ISMTPStoreDriver | SMTP Store Driver Interface. + @meth HRESULT | Init | Initialize the store driver. + @meth HRESULT | PrepareForShutdown | Prepare to shutdown the store driver. + @meth HRESULT | Shutdown | Finish shutdown of the store driver. + @meth HRESULT | LocalDelivery | Perform local delivery on a message (with async completion). + @meth HRESULT | EnumerateAndSubmitMessages | Enumerate all the messages associated with the store driver. +*/ +[ + helpstring("SMTP Store Driver Interface."), + local, + object, + pointer_default(unique), + uuid(ee51588c-d64a-11d1-9ff7-00c04fa37348) +] +interface ISMTPStoreDriver : IUnknown +{ + //@method HRESULT | ISMTPStoreDriver | Init | Initialize the store driver. During this call, the + // store driver receives the instance number of the server, a pointer to the binding information for + // the store driver, and a pointer to the server. By examing the parameters to this call, the store + // driver can determine if a previous instance of this store driver is already running for this + // virtual server, and if the binding options are similar enough that that previous instance is still + // valid - if so, then the store driver can return a pointer to the previous instance, causing the + // virtual-server to make all further calls on that previous instance. + //@parm DWORD | dwInstance | [in] Specifies the instance number of the virtual server. + //@parm IUnknown * | pBinding | [in,unique] Specifies the binding point for the store driver. This + // may be NULL. + //@parm IUnknown * | pServer | [in,unique] Specifies the server. The store driver may call methods + // on this object to perform advanced initialization functions. This may be NULL. + //@parm DWORD | dwReason | [in] Specifies the reason for the initialization. This will be either + // SMTP_INIT_VSERVER_STARTUP, or SMTP_INIT_BINDING_CHANGE. + //@parm IUnknown ** | ppStoreDriver | [out] Receives the store driver object. If this value non-NULL, + // the caller should release the original interface pointer, and use this object for all subsequent + // calls to the store driver. This mechanism allows the store driver to examine the parameters to + // the Init call, and redirect further operations by the virtual server to this store driver to be on + // a different object. + //@rvalue E_NOTIMPL | Failure. The driver does not support this method. + [helpstring("Initialize the store driver.")] + HRESULT Init([in] DWORD dwInstance, + [in,unique] IUnknown *pBinding, + [in] IUnknown *pServer, + [in] DWORD dwReason, + [out] IUnknown **ppStoreDriver); + + //@method HRESULT | ISMTPStoreDriver | PrepareForShutdown | Prepare to shutdown the store driver. The + // store driver should release any interfaces it is holding on the server. + //@parm DWORD | dwReason | [in] Specifies the reason for the shutdown. This will be either + // SMTP_TERM_VSERVER_SHUTDOWN, or SMTP_TERM_BINDING_CHANGE. + //@rvalue E_NOTIMPL | Failure. The driver does not support this method. + [helpstring("Prepare to shutdown the store driver.")] + HRESULT PrepareForShutdown([in] DWORD dwReason); + + //@method HRESULT | ISMTPStoreDriver | Shutdown | Finish shutdown of the store driver. The store + // driver should cancel any outstanding requests it has received from the server (posting + // HRESULT_FROM_WIN32(ERROR_SHUTDOWN_IN_PROGRESS) to any IMailMsgNotify interfaces it is holding). + //@parm DWORD | dwReason | [in] Specifies the reason for the shutdown. This will be either + // SMTP_TERM_VSERVER_SHUTDOWN, or SMTP_TERM_BINDING_CHANGE. + //@rvalue E_NOTIMPL | Failure. The driver does not support this method. + [helpstring("Finish shutdown of the store driver.")] + HRESULT Shutdown([in] DWORD dwReason); + + //@method HRESULT | ISMTPStoreDriver | LocalDelivery | Perform local delivery on a message (with async + // completion). + //@parm IMailMsgProperties * | pMsg | [in] Specifies the message being delivered. + //@parm DWORD | dwRecipCount | [in] Specifies the count of the recipients for this delivery. + //@parm DWORD * | pdwRecipIndexes | [in,size_is(dwRecipCount)] Specifies the indexes of the recipients + // for this delivery. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the method will complete synchronously. Even if this value is non-NULL, the + // method may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Perform local delivery on a message (with async completion).")] + HRESULT LocalDelivery([in] IMailMsgProperties *pMsg, + [in] DWORD dwRecipCount, + [in,size_is(dwRecipCount)] DWORD *pdwRecipIndexes, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | ISMTPStoreDriver | EnumerateAndSubmitMessages | Enumerate all the messages associated with + // the store driver. The enumerator will restore undelivered messages from the store and submit + // them for delivery. This must be called after Init, and before any calls to AllocMessage. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the method will complete synchronously. Even if this value is non-NULL, the + // method may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + //@xref + [helpstring("Enumerates undelivered messages in the store and submits them to queueing.")] + HRESULT EnumerateAndSubmitMessages([in,unique] IMailMsgNotify *pNotify); +}; + + +/* + @interface IMailMsgStoreDriverValidateContext | Store Driver Context + Validation Interface. + @meth HRESULT | ValidateMessageContext | Initialize the store driver. +*/ +[ + helpstring("Store Driver Message Validation Interface."), + local, + object, + pointer_default(unique), + uuid(C6742794-AD31-4711-BE73-9869142A8A23) +] +interface IMailMsgStoreDriverValidateContext : IUnknown +{ + //@method HRESULT | IMailMsgStoreDriverValidateContext | ValidateMessageContext | + // Given a message context, determine if it belongs to this store driver. If + // it does, determine if it is still valid (still has backing store). + //@parm PBYTE | pbContext | [in,unique] The context currently set on the message + // we are attempting to validate. + //@parm DWORD | cbContext | [in] The size of the context in bytes. + //@rvalue S_OK | Success. This context is associated with this store driver + // and is still valid. + //@rvalue S_FALSE | Success. This context is not associated with this store + // driver. + //@rvalue HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) | Failure. This context + // is associated with this driver, but it is no longer valid. + //@rvalue E_NOTIMPL | Failure. The driver does not support this method. + HRESULT ValidateMessageContext( [in, unique] BYTE *pbContext, + [in] DWORD cbContext); +}; + +/* + @interface IMailMsgBind | Interface for binding operations on a mail message. + @meth HRESULT | BindToStore | Bind a mail message to a store. + @meth HRESULT | GetProperties | Read the mail message properties into a stream (with async + completion). +*/ +[ + helpstring("Interface for binding operations on a mail message."), + local, + object, + pointer_default(unique), + uuid(38cb448a-ca62-11d1-9ff3-00c04fa37348) +] +interface IMailMsgBind : IUnknown +{ + //@method HRESULT | IMailMsgBind | BindToStore | Bind a mail message to a store. + //@parm IMailMsgPropertyStream * | pStream | [in] Specifies the property stream. + //@parm IMailMsgStoreDriver * | pStore | [in] Specifies the store driver. + //@parm PFIO_CONTEXT | pFIOContentFile | [in] Specifies the content file. + //@rvalue S_OK | Success. + [helpstring("Bind a mail message to a store.")] + HRESULT BindToStore([in] IMailMsgPropertyStream *pStream, + [in] IMailMsgStoreDriver *pStore, + [in] PFIO_CONTEXT pFIOContentFile); + + //@method HRESULT | IMailMsgBind | GetBinding | Get the file handle cache binding (with async completion). This + // method increments the usage count on the file handle cache context, preventing the content handle from being + // closed. IMailMsgBind::ReleaseContext must be called to decrement the usage count + // once operations on the handle are complete. + //@parm PFIO_CONTEXT * | ppFIOContentFile | [out] Recieves the content file. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the method will complete synchronously. Even if this value is non-NULL, the + // method may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Get the file handle cache context (with async completion).")] + HRESULT GetBinding([out] PFIO_CONTEXT *ppFIOContentFile, + [in,unique] IMailMsgNotify *pNotify); + + //@method HRESULT | IMailMsgBind | ReleaseContext | Decrement the reference count on the file + // handle context. + //@rvalue S_OK | Success. + //@xref + [helpstring("Decrement the reference count on the file handle context.")] + HRESULT ReleaseContext(); + + //@method HRESULT | IMailMsgBind | GetProperties | Read the mail message properties into a stream + // (with async completion). + //@parm IMailMsgPropertyStream * | pStream | [in] The stream to write the properties to. + //@parm DWORD | dwFlags | [in] Specifies the flags. This may be either MAILMSG_GETPROPS_INCREMENTAL + // or MAILMSG_GETPROPS_COMPLETE. It may also include MAILMSG_GETPROPS_CLEAR_DIRTY. + //@parm IMailMsgNotify * | pNotify | [in,unique] Interface to notify for async completion. If this + // value is NULL, then the method will complete synchronously. Even if this value is non-NULL, the + // method may still complete synchronously (i.e. it may return S_OK instead of MAILMSG_S_PENDING). + //@rvalue S_OK | Success. The operation completed synchronously. + //@rvalue MAILMSG_S_PENDING | Success. The operation is pending, and pNotify->Notify will be called + // with the result of the operation when it completes. + //@xref + [helpstring("Read the mail message properties into a stream (with async completion).")] + HRESULT GetProperties([in] IMailMsgPropertyStream *pStream, + [in] DWORD dwFlags, + [in,unique] IMailMsgNotify *pNotify); +}; + +/* + @interface IMailMsgPropertyBag | Interface for accessing a memory property bag object. + @meth HRESULT | PutProperty | Write a property. + @meth HRESULT | GetProperty | Read a property. + @meth HRESULT | PutStringA | Write a string property. + @meth HRESULT | GetStringA | Read a string property. + @meth HRESULT | PutStringW | Write a Unicode string property. + @meth HRESULT | GetStringW | Read a Unicode string property. + @meth HRESULT | PutDWORD | Write a DWORD property. + @meth HRESULT | GetDWORD | Read a DWORD property. + @meth HRESULT | PutBool | Write a boolean property. + @meth HRESULT | GetBool | Read a boolean property. +*/ +[ + helpstring("Generic Memory property bag"), + local, + object, + pointer_default(unique), + uuid(d6d0509c-ec51-11d1-aa65-00c04fa35b82) +] +interface IMailMsgPropertyBag : IUnknown +{ + //@method HRESULT | IMailMsgPropertyBag | PutProperty | Write a property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cbLength | [in] Specifies the length in bytes of the value. + //@parm BYTE * | pbValue | [in,size_is(cbLength),length_is(cbLength),unique] Specifies the value. + //@rvalue S_OK | Success. + //@rvalue S_FALSE | Success. The property was not present. + //@xref + [helpstring("Write a property.")] + HRESULT PutProperty([in] DWORD dwPropID, + [in] DWORD cbLength, + [in,size_is(cbLength),length_is(cbLength),unique] BYTE *pbValue); + + //@method HRESULT | IMailMsgPropertyBag | GetProperty | Read a property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cbLength | [in] Specifies the length in bytes of the buffer to receive the value. + //@parm DWORD * | pcbLength | [out] Receives the length in bytes of the value. This is set to zero if + // the property is not present. + //@parm BYTE * | pbValue | [out,size_is(cbLength),length_is(*pcbLength)] Receives the value. + //@rvalue S_OK | Success. + //@rvalue MAILMSG_E_PROPNOTFOUND | Failure. The property was not present. *pcbLength is set to zero. + //@xref + [helpstring("Read a property.")] + HRESULT GetProperty([in] DWORD dwPropID, + [in] DWORD cbLength, + [out] DWORD *pcbLength, + [out,size_is(cbLength),length_is(*pcbLength)/*,ptr*/] BYTE *pbValue); + + //@method HRESULT | IMailMsgPropertyBag | PutStringA | Write a string property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm LPCSTR | pszValue | [in,unique] Specifies the value. If this is NULL, the property will be + // erased. + //@rvalue S_OK | Success. + //@rvalue S_FALSE | Success. The property was not present. + //@xref + [helpstring("Write a string property.")] + HRESULT PutStringA([in] DWORD dwPropID, + [in,unique] LPCSTR pszValue); + + //@method HRESULT | IMailMsgPropertyBag | GetStringA | Read a string property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cchLength | [in] Specifies the length in characters (including the terminating NULL) + // of the buffer to receive the value. + //@parm LPSTR | pszValue | [out,size_is(cchLength)] Receives the value. + //@rvalue S_OK | Success. + //@rvalue MAILMSG_E_PROPNOTFOUND | Failure. The property was not present. The value receives NULL. + //@xref + [helpstring("Read a string property.")] + HRESULT GetStringA([in] DWORD dwPropID, + [in] DWORD cchLength, + [out,size_is(cchLength)/*,ptr*/, annotation("_Out_writes_(cchLength)")] LPSTR pszValue); + + //@method HRESULT | IMailMsgPropertyBag | PutStringW | Write a Unicode string property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm LPCWSTR | pszValue | [in,unique] Specifies the value. + //@rvalue S_OK | Success. + //@rvalue S_FALSE | Success. The property was not present. + //@xref + [helpstring("Write a Unicode string property.")] + HRESULT PutStringW([in] DWORD dwPropID, + [in,unique] LPCWSTR pszValue); + + //@method HRESULT | IMailMsgPropertyBag | GetStringW | Read a Unicode string property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | cchLength | [in] Specifies the length in characters (including the terminating NULL) + // of the buffer to receive the value. + //@parm LPCSTR | pszValue | [out,size_is(cchLength)] Receives the value. + //@rvalue S_OK | Success. + //@rvalue MAILMSG_E_PROPNOTFOUND | Failure. The property was not present. The value receives NULL. + //@xref + [helpstring("Read a Unicode string property.")] + HRESULT GetStringW([in] DWORD dwPropID, + [in] DWORD cchLength, + [out,size_is(cchLength)/*,ptr*/, annotation("_Out_writes_(cchLength)")] LPWSTR pszValue); + + //@method HRESULT | IMailMsgPropertyBag | PutDWORD | Write a DWORD property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | dwValue | [in] The value to write. + //@rvalue S_OK | Success. + //@rvalue S_FALSE | Success. The property was not present. + //@xref + [helpstring("Write a DWORD property.")] + HRESULT PutDWORD([in] DWORD dwPropID, + [in] DWORD dwValue); + + //@method HRESULT | IMailMsgPropertyBag | GetDWORD | Read a DWORD property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD * | pdwValue | [out] Receives the value. If the property is not present, the method + // sets this to zero and returns S_FALSE. + //@rvalue S_OK | Success. + //@rvalue MAILMSG_E_PROPNOTFOUND | Failure. The property was not present. *pdwValue is set to zero. + //@xref + [helpstring("Read a DWORD property.")] + HRESULT GetDWORD([in] DWORD dwPropID, + [out/*,ptr*/] DWORD *pdwValue); + + //@method HRESULT | IMailMsgPropertyBag | PutBool | Write a boolean property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD | dwValue | [in] The value to write. This value is coerced to either TRUE or FALSE. + //@rvalue S_OK | Success. + //@rvalue S_FALSE | Success. The property was not present. + //@xref + [helpstring("Write a boolean property.")] + HRESULT PutBool([in] DWORD dwPropID, + [in] DWORD bValue); + + //@method HRESULT | IMailMsgPropertyBag | GetBool | Read a boolean property. + //@parm DWORD | dwPropID | [in] Specifies the property ID. + //@parm DWORD * | pdwValue | [out] Receives the value, which will either be TRUE or FALSE. If the + // property is not present, the method sets this to FALSE and returns S_FALSE. + //@rvalue S_OK | Success. + //@rvalue MAILMSG_E_PROPNOTFOUND | Failure. The property was not present. *pdwValue is set to FALSE. + //@xref + [helpstring("Read a boolean property.")] + HRESULT GetBool([in] DWORD dwPropID, + [out/*,ptr*/] DWORD *pbValue); + +}; + + +/* + @interface IMailMsgLoggingPropertyBag | Interface to the logging facilities. + @meth HRESULT | WriteToLog | Write to the log +*/ +[ + helpstring("Interface to the logging facilities."), + local, + object, + pointer_default(unique), + uuid(4cb17416-ec53-11d1-aa65-00c04fa35b82) +] +interface IMailMsgLoggingPropertyBag : IMailMsgPropertyBag +{ + // @method HRESULT | IMailMsgLoggingPropertyBag | WriteToLog | Write to the log + // @parm LPCWSTR | pszClientHostName | [in] Specifies the Client Host Name. May be NULL. + // @parm LPCWSTR | pszClientUserName | [in] Specifies the Client User Name. May be NULL. + // @parm LPCWSTR | pszServerAddress | [in] Specifies the Server Address May be NULL. + // @parm LPCWSTR | pszOperation | [in] Specifies the operation. May be NULL. + // @parm LPCWSTR | pszTarget | [in] Specifies the target. May be NULL. + // @parm LPCWSTR | pszParameters | [in] Specifies the parameters. May be NULL. + // @parm LPCWSTR | pszVersion | [in] Specifies the version. May be NULL. + // @parm DWORD | dwBytesSent | [in] Specifies the number of bytes sent. + // @parm DWORD | dwBytesReceived | [in] Specifies the number of bytes received. + // @parm DWORD | dwProcessingTimeMS | [in] Specifies the time spent processing, in milliseconds. + // @parm DWORD | dwWin32Status | [in] Specifies the Win32 status code. + // @parm DWORD | dwProtocolStatus | [in] Specifies the protocol status code. + // @parm DWORD | dwPort | [in] Specifies the port. + // @parm LPCWSTR | pszHTTPHeader | [in] Specifies the HTTP header. May be NULL. + // @rvalue S_OK | Success + // @rvalue E_FAIL | Failure. + // @rvalue E_NOTIMPL | Failure, not implemented. + // @xref + HRESULT WriteToLog([in] LPCSTR pszClientHostName, + [in] LPCSTR pszClientUserName, + [in] LPCSTR pszServerAddress, + [in] LPCSTR pszOperation, + [in] LPCSTR pszTarget, + [in] LPCSTR pszParameters, + [in] LPCSTR pszVersion, + [in] DWORD dwBytesSent, + [in] DWORD dwBytesReceived, + [in] DWORD dwProcessingTimeMS, + [in] DWORD dwWin32Status, + [in] DWORD dwProtocolStatus, + [in] DWORD dwPort, + [in] LPCSTR pszHTTPHeader); +}; + + +/* + @interface IMailMsgCleanupCallback | Interface to receive notification that an object is about to be destroyed. + @meth HRESULT | CleanupCallback | Receives notification that an object is about to be destryoed. +*/ +[ + helpstring("MailMsg Interface to receive a callback"), + local, + object, + pointer_default(unique), + uuid(951C04A1-29F0-4b8e-9ED5-836C73766051) +] +interface IMailMsgCleanupCallback : IUnknown +{ + // @method HRESULT | CleanupCallback | Receives notification that an object is about to be destryoed. + // @parm IUnknown | pObject | [in] IUnknown interface to the object about to be destroyed. + // @parm PVOID | pvContext | [in] Context previously specified to RegisterCleanupCallback + HRESULT CleanupCallback( + [in] IUnknown *pObject, + [in] PVOID pvContext); +}; + +/* + @interface IMailMsgRegisterCleanupCallback | Interface to register a callback. + @meth HRESULT | RegisterCleanupCallback | Register a callback to be called just before the object is destroyed. +*/ +[ + helpstring("MailMsg Interface to register a callback"), + local, + object, + pointer_default(unique), + uuid(00561C2F-5E90-49e5-9E73-7BF9129298A0) +] +interface IMailMsgRegisterCleanupCallback : IUnknown +{ + // @method HRESULT | RegisterCleanupCallback | Register a callback to be called just before the object is destroyed. + // @parm IMailMsgCleanupCallback | pICallback | [in] Specifies the interface to call back. + // @parm PVOID | pvContext | [in] Specifies a context to be passed to the callback routine. + // @rvalue S_OK | Success + // @rvalue E_OUTOFMEMORY | Out of memory. + HRESULT RegisterCleanupCallback( + [in] IMailMsgCleanupCallback *pICallback, + [in] PVOID pvContext); +}; + +// +// The caller should NULL out all members & fillout only those that are relevant. +// If some member is null-ed out the LogMsgTrack method will use the info in IMailMsgProperties. +// + +typedef struct _MSG_TRACK_INFO +{ + LPSTR pszClientIp; + LPSTR pszClientName; + LPSTR pszPartnerName; + LPSTR pszServerIp; + LPSTR pszServerName; + LPSTR pszRecipientAddress; + LPSTR pszSenderAddress; + DWORD dwEventId; + LPSTR pszMessageId; + DWORD dwPriority; + DWORD dwRcptReportStatus; + DWORD cbMessageSize; + DWORD cRcpts; + DWORD dwTimeTaken; + DWORD dwEncryption; + LPSTR pszVersion; + LPSTR pszLinkMsgId; + LPSTR pszSubject; +} MSG_TRACK_INFO, *LPMSG_TRACK_INFO; + +typedef struct _EVENT_LOG_INFO +{ + DWORD dwEventId; + DWORD dwErrorCode; + LPSTR pszEventLogMsg; +} EVENT_LOG_INFO, *LPEVENT_LOG_INFO; + + +// Structure for info passed to SMTP event logging event +typedef struct _SMTP_LOG_EVENT_INFO +{ + DWORD idMessage; + WORD idCategory; + WORD cSubstrings; + LPCSTR *rgszSubstrings; + WORD wType; + DWORD errCode; + WORD iDebugLevel; + LPCSTR szKey; + DWORD dwOptions; + DWORD iMessageString; + HMODULE hModule; +} SMTP_LOG_EVENT_INFO, *LPSMTP_LOG_EVENT_INFO; + +/* + @interface ISMTPServer | Interface to the SMTP server. + @meth HRESULT | AllocMessage | Allocate a message object. + @meth HRESULT | SubmitMessage | Submit a message for delivery. +*/ +[ + helpstring("Interface to the SMTP server."), + local, + object, + pointer_default(unique), + uuid(22625594-d822-11d1-9ff7-00c04fa37348) +] +interface ISMTPServer : IUnknown +{ + //@method HRESULT | ISMTPServer | AllocMessage | Allocate a message object. + //@parm IMailMsgProperties ** | ppMsg | [out] Receives the result. + //@rvalue S_OK | Success. + [helpstring("Allocate a message object.")] + HRESULT AllocMessage([out] IMailMsgProperties **ppMsg); + + //@method HRESULT | ISMTPServer | SubmitMessage | Submit a message for delivery. + //@parm IMailMsgProperties * | pMsg | [in] Specifies the message. + //@rvalue S_OK | Success. + [helpstring("Submit a message for delivery.")] + HRESULT SubmitMessage([in] IMailMsgProperties *pMsg); + + //@method HRESULT | ISMTPServer | TriggerLocalDelivery | Trigger the local delivery event. + //@parm IMailMsgProperties * | pMsg | [in] Specifies the message. + //@parm DWORD | dwRecipCount | [in] Specifies the count of the recipients for this delivery. + //@parm DWORD * | pdwRecipIndexes | [in,size_is(dwRecipCount)] Specifies the indexes of the recipients + // for this delivery. + //@rvalue S_OK | Success. + [helpstring("Trigger the local delivery event.")] + HRESULT TriggerLocalDelivery([in] IMailMsgProperties *pMsg, DWORD dwRecipientCount, DWORD * pdwRecipIndexes); + + HRESULT ReadMetabaseString([in] DWORD MetabaseId, + [in, out, size_is(*BufferSize), length_is(*BufferSize), annotation("_Out_writes_to_(*BufferSize, *BufferSize)")] char * Buffer, + [in, out] DWORD * BufferSize, + [in] BOOL fSecure); + + HRESULT ReadMetabaseDword([in] DWORD MetabaseId, + [out] DWORD * dwValue); + + HRESULT ServerStartHintFunction (); + HRESULT ServerStopHintFunction (); + + HRESULT TriggerServerEvent([in] DWORD dwEventID, + [in] PVOID pvContext); + + HRESULT WriteLog( [in] LPMSG_TRACK_INFO pMsgTrackInfo, + [in] IMailMsgProperties *pMsg, + [in] LPEVENT_LOG_INFO pEventLogInfo, + [in, annotation("_In_")] LPSTR pszProtocolLog ); + + HRESULT ReadMetabaseData([in] DWORD MetabaseId, + [in, out, size_is(*BufferSize), length_is(*BufferSize)] BYTE * Buffer, + [in, out] DWORD * BufferSize); + +}; + +[ + helpstring("Extended Interface to the SMTP server."), + local, + object, + pointer_default(unique), + uuid(52ae6373-90f6-470c-9d38-526e9060b07d) +] +interface ISMTPServerEx : IUnknown +{ + // Triggers a Log event - the default handler here logs everything but can be overridden + // to allow for configurable logging levels + HRESULT TriggerLogEvent([in] DWORD idMessage, + [in] WORD idCategory, + [in] WORD cSubstrings, + [in] LPCSTR *rgszSubstrings, + [in] WORD wType, + [in] DWORD errCode, + [in] WORD iDebugLevel, + [in] LPCSTR szKey, + [in] DWORD dwOptions, + [in] DWORD iMessageString, + [in] HMODULE hModule); + + // Reset any history about events using this message and key, + // so that the next TriggerLogEvent with one-time or periodic logging + // will cause the event to be logged. + HRESULT ResetLogEvent( [in] DWORD idMessage, + [in] LPCSTR szKey); +}; + +/* + @interface ISMTPServerAsync | Async Interface to the SMTP server. + @meth HRESULT | TriggerLocalDeliveryAsync | Locally deliver a msg. +*/ +[ + helpstring("Async Interface to the SMTP server."), + local, + object, + pointer_default(unique), + uuid(08AF2A87-8C10-4196-9AE6-D517A86B9795) +] +interface ISMTPServerAsync : IUnknown +{ + //@method HRESULT | ISMTPServerAsync | TriggerLocalDeliveryAsync | Trigger the local delivery event. + //@parm IMailMsgProperties * | pMsg | [in] Specifies the message. + //@parm DWORD | dwRecipCount | [in] Specifies the count of the recipients for this delivery. + //@parm DWORD * | pdwRecipIndexes | [in,size_is(dwRecipCount)] Specifies the indexes of the recipients + // for this delivery. + //@parm IMailMsgNotify * | pNotify | [in] Specifies the notify class + //@rvalue S_OK | Success. + [helpstring("Trigger the local delivery event.")] + HRESULT TriggerLocalDeliveryAsync([in] IMailMsgProperties *pMsg, + DWORD dwRecipientCount, + DWORD * pdwRecipIndexes, + IMailMsgNotify *pNotify); +}; + +[ + helpstring("SMTP Interface to fire get aux domain info flags event"), + local, + object, + pointer_default(unique), + uuid(735e9929-1885-4736-8d07-492f962eceb9) +] +interface ISMTPServerGetAuxDomainInfoFlags : IUnknown +{ + // Trigger the GetAuxDomainInfoFlags event + + //@method HRESULT | ISMTPServerGetAuxDomainInfoFlags | HrTriggerGetAuxDomainInfoFlagsEvent | Trigger the GetAuxDomainInfoFlags event. + //@parm LPCSTR | pszDomainName | [in] Specifies the domain name + //@parm DWORD * | pdwDomainInfoFlags | [out] Returns the flags for the specified domain + //@rvalue S_OK | Success. + [helpstring("Trigger the local delivery event.")] + HRESULT HrTriggerGetAuxDomainInfoFlagsEvent( + [in] LPCSTR pszDomainName, + [out] DWORD *pdwDomainInfoFlags ); +}; + + +[ + helpstring("Internal Interface to the SMTP server."), + local, + object, + pointer_default(unique), + uuid(57EE6C15-1870-11d2-A689-00C04FA3490A) +] +interface ISMTPServerInternal : ISMTPServer +{ + //Allocates a message that has already been bound to a store driver + //Returned handle CANNOT be used for normal I/O since it is bound + //to a completion port in IIS + HRESULT AllocBoundMessage([out] IMailMsgProperties **ppMsg, [out] PFIO_CONTEXT *phContent); +}; + +[ + helpstring("Mail Message 1.0 Type Library"), + uuid(daf24820-a8b9-11d1-aa91-00aa006bc80b), + version(1.0) +] +library MailMsgLib +{ + importlib("stdole2.tlb"); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/MailMsgProps.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/MailMsgProps.h new file mode 100644 index 0000000000000000000000000000000000000000..9f3d55e101db63748c18aa06921efa0ff1cf4f92 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/MailMsgProps.h @@ -0,0 +1,763 @@ +/* + @doc MAILMSG PROPERTIES + @module mailmsgprops.h | MailMsg Properties for SMTP and NNTP +*/ + +/*++ + +Copyright (c) 1999 Microsoft Corporation + +Module Name: + + mailmsgprops.h + +Abstract: + + This module contains the definitions for the MailMsg + Object property ID's. + + +--*/ + +#ifndef __MAILMSGPROPS_H__ +#define __MAILMSGPROPS_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/*=======================================================================*/ +// These macros are used to define the tables of property ID's. + + +#define IMMPID_START_LIST(name,start,guid) struct __declspec(uuid(guid)) tagIMMPID_##name##_STRUCT;\ + typedef enum tagIMMPID_##name##_ENUM {\ + IMMPID_##name##_BEFORE__ = (start)-1, +#define IMMPID_END_LIST(name) IMMPID_##name##_AFTER__\ + } IMMPID_##name##_ENUM; + + +/*=======================================================================*/ + + +// These are the per-message properties. + +IMMPID_START_LIST(MP,0x1000,"13384CF0-B3C4-11d1-AA92-00AA006BC80B") + + // @const IMMPID | IMMPID_MP_RECIPIENT_LIST | + // *** OBSOLETE *** + IMMPID_MP_RECIPIENT_LIST, + + // @const IMMPID | IMMPID_MP_CONTENT_FILE_NAME | + // *** OBSOLETE *** + IMMPID_MP_CONTENT_FILE_NAME, + + // @const IMMPID | IMMPID_MP_SENDER_ADDRESS_SMTP | + // ANSI String - SMTP Address of sender + IMMPID_MP_SENDER_ADDRESS_SMTP, + + // @const IMMPID | IMMPID_MP_SENDER_ADDRESS_X500 | + // ANSI String - X500 Address of sender + IMMPID_MP_SENDER_ADDRESS_X500, + + // @const IMMPID | IMMPID_MP_SENDER_ADDRESS_X400 | + // String - X400 Address of sender + IMMPID_MP_SENDER_ADDRESS_X400, + + // @const IMMPID | IMMPID_MP_SENDER_ADDRESS_LEGACY_EX_DN | + // String - Legacy DN Address of sender + IMMPID_MP_SENDER_ADDRESS_LEGACY_EX_DN, + + // @const IMMPID | IMMPID_MP_DOMAIN_LIST | + // *** OBSOLETE *** + IMMPID_MP_DOMAIN_LIST, + + // @const IMMPID | IMMPID_MP_PICKUP_FILE_NAME | + // ANSI String - Filename of msg file in pickup directory + IMMPID_MP_PICKUP_FILE_NAME, + + // @const IMMPID | IMMPID_MP_AUTHENTICATED_USER_NAME | + // *** OBSOLETE *** + IMMPID_MP_AUTHENTICATED_USER_NAME, + + // @const IMMPID | IMMPID_MP_CONNECTION_IP_ADDRESS | + // ANSI String - IP address of MTA or client that submitted this message + IMMPID_MP_CONNECTION_IP_ADDRESS, + + // @const IMMPID | IMMPID_MP_HELO_DOMAIN | + // ANSI String - Domain name used in HELO/EHLO when message was submitted + IMMPID_MP_HELO_DOMAIN, + + // @const IMMPID | IMMPID_MP_EIGHTBIT_MIME_OPTION | + // BOOL - TRUE if message body is 8-bit MIME + IMMPID_MP_EIGHTBIT_MIME_OPTION, + + // @const IMMPID | IMMPID_MP_CHUNKING_OPTION | + // *** OBSOLETE *** + IMMPID_MP_CHUNKING_OPTION, + + // @const IMMPID | IMMPID_MP_BINARYMIME_OPTION | + // BOOL - TRUE if message body is binary MIME + IMMPID_MP_BINARYMIME_OPTION, + + // @const IMMPID | IMMPID_MP_REMOTE_AUTHENTICATION_TYPE | + // *** OBSOLETE *** + IMMPID_MP_REMOTE_AUTHENTICATION_TYPE, + + // @const IMMPID | IMMPID_MP_ERROR_CODE | + // *** OBSOLETE *** + IMMPID_MP_ERROR_CODE, + + // @const IMMPID | IMMPID_MP_DSN_ENVID_VALUE | + // Value of RFC1891 ENVID of submitted message + IMMPID_MP_DSN_ENVID_VALUE, + + // @const IMMPID | IMMPID_MP_DSN_RET_VALUE | + // ANSI String of what follows ESMTP RET + IMMPID_MP_DSN_RET_VALUE, + + // @const IMMPID | IMMPID_MP_REMOTE_SERVER_DSN_CAPABLE | + // *** OBSOLETE *** + IMMPID_MP_REMOTE_SERVER_DSN_CAPABLE, + + // @const IMMPID | IMMPID_MP_ARRIVAL_TIME | + // FILETIME that message arrived in system + IMMPID_MP_ARRIVAL_TIME, + + // @const IMMPID | IMMPID_MP_MESSAGE_STATUS | + // MP_STATUS_* value describing status of message system + IMMPID_MP_MESSAGE_STATUS, + + // @const IMMPID | IMMPID_MP_EXPIRE_DELAY | + // FILETIME of Delay DSN Expiration + IMMPID_MP_EXPIRE_DELAY, + + // @const IMMPID | IMMPID_MP_EXPIRE_NDR | + // FILETIME of NDR DSN Expiration + IMMPID_MP_EXPIRE_NDR, + + // @const IMMPID | IMMPID_MP_LOCAL_EXPIRE_DELAY | + // FILETIME of Delay DSN Expiration for local recips + IMMPID_MP_LOCAL_EXPIRE_DELAY, + + // @const IMMPID | IMMPID_MP_LOCAL_EXPIRE_NDR | + // FILETIME of NDR DSN Expiration for local recips + IMMPID_MP_LOCAL_EXPIRE_NDR, + + // @const IMMPID | IMMPID_MP_ARRIVAL_FILETIME | + // FILETIME when message was submitted to queue + IMMPID_MP_ARRIVAL_FILETIME, + + // @const IMMPID | IMMPID_MP_HR_CAT_STATUS | + // HRESULT MsgCat status (ie CAT_W_SOME_UNDELIVERABLE_MSGS) + IMMPID_MP_HR_CAT_STATUS, + + // @const IMMPID | IMMPID_MP_MSG_GUID | + // String GUID ID which is only used if you want need to be able to replace + // this message with another newer version. This property is only + // effective when used for a small amount of mail on the server, and is + // best suited for versioned mail (like DS replication). + IMMPID_MP_MSG_GUID, + + // @const IMMPID | IMMPID_MP_SUPERSEDES_MSG_GUID | + // String GUID ID which this message superscedes. If a message with with a + // IMMPID_MP_MSG_GUID equal to this property is still on the server, then + // that message will not be sent out. + + IMMPID_MP_SUPERSEDES_MSG_GUID, + + // @const IMMPID | IMMPID_MP_SCANNED_FOR_CRLF_DOT_CRLF | + // Boolean which tells if the input was scanned for . in the msg + // body + IMMPID_MP_SCANNED_FOR_CRLF_DOT_CRLF, + + // @const IMMPID | IMMPID_MP_FOUND_EMBEDDED_CRLF_DOT_CRLF | + // Boolean which tells if the input had any . + // + IMMPID_MP_FOUND_EMBEDDED_CRLF_DOT_CRLF, + + // @const IMMPID | IMMPID_MP_MSG_SIZE_HINT | + // Provides an approximate size of the message content. Does not convert + // message, or guarantee accuracy. For an accurate message size (but at + // a higher performance cost) use IMailMsgProperties::GetContentSize. + // + IMMPID_MP_MSG_SIZE_HINT, + + // @const IMMPID | IMMPID_MP_RFC822_MSG_ID | + // String -- RFC 822 Message Id header. + IMMPID_MP_RFC822_MSG_ID, + + // @const IMMPID | IMMPID_MP_RFC822_MSG_SUBJECT | + // String -- RFC822 subject header + IMMPID_MP_RFC822_MSG_SUBJECT, + + // @const IMMPID | IMMPID_MP_RFC822_FROM_ADDRESS | + // String -- RFC822 from address + IMMPID_MP_RFC822_FROM_ADDRESS, + + // @const IMMPID | IMMPID_MP_RFC822_TO_ADDRESS | + // String -- RFC822 To address + IMMPID_MP_RFC822_TO_ADDRESS, + + // @const IMMPID | IMMPID_MP_RFC822_CC_ADDRESS | + // String -- RFC822 Cc address + IMMPID_MP_RFC822_CC_ADDRESS, + + // @const IMMPID | IMMPID_MP_RFC822_BCC_ADDRESS | + // String -- RFC822 Bcc address + IMMPID_MP_RFC822_BCC_ADDRESS, + + // @const IMMPID | IMMPID_MP_CONNECTION_SERVER_IP_ADDRESS | + // String -- server IP Address + IMMPID_MP_CONNECTION_SERVER_IP_ADDRESS, + + // @const IMMPID | IMMPID_MP_SERVER_NAME | + // String -- server name + IMMPID_MP_SERVER_NAME, + + // @const IMMPID | IMMPID_MP_SERVER_VERSION | + // String -- server version + IMMPID_MP_SERVER_VERSION, + + // @const IMMPID | IMMPID_MP_NUM_RECIPIENTS | + // DWORD -- number of recipients + IMMPID_MP_NUM_RECIPIENTS, + + + // @const IMMPID | IMMPID_MP_X_PRIORITY | + // DWORD -- the priority of message + IMMPID_MP_X_PRIORITY, + + // @const IMMPID | IMMPID_MP_FROM_ADDRESS | + // String -- From: address, in form format:address + // (ie, smtp:foo@microsoft.com). RFC822 address comments are stripped + IMMPID_MP_FROM_ADDRESS, + + // @const IMMPID | IMMPID_MP_SENDER_ADDRESS | + // String -- Sender: address, in form format:address + // (ie, smtp:foo@microsoft.com). RFC822 address comments are stripped + IMMPID_MP_SENDER_ADDRESS, + + // @const IMMPID | IMMPID_MP_DEFERRED_DELIVERY_FILETIME | + // FILETIME -- Universal time to wait until before allowing + // message to be delivered. + IMMPID_MP_DEFERRED_DELIVERY_FILETIME, + + // @const IMMPID | IMMPID_MP_SENDER_ADDRESS_OTHER | + // ANSI String - with the format "type:address" + IMMPID_MP_SENDER_ADDRESS_OTHER, + + // @const IMMPID | IMMPID_MP_ORIGINAL_ARRIVAL_TIME | + // FILETIME that message arrived in first exchange system + IMMPID_MP_ORIGINAL_ARRIVAL_TIME, + + // @const IMMPID | IMMPID_MP_MSG_CLASS | + // The Message class of the mail, e.g. syste, replication, etc... + IMMPID_MP_MSGCLASS, + + // @const IMMPID | IMMPID_MP_CONTENT_TYPE | + // The content type of message. + // ANSI STRING. + IMMPID_MP_CONTENT_TYPE, + + //@const IMMPID | IMMPID_MP_ENCRYPTION_TYPE | + // DWORD - 0, no encryption + // 1, signed only + // 2, encrypted + IMMPID_MP_ENCRYPTION_TYPE, + + //@const IMMPID | IMMPID_MP_CONNECTION_SERVER_PORT | + // DWORD - Port (if any) that this message was submitted on + IMMPID_MP_CONNECTION_SERVER_PORT, + + //@const IMMPID | IMMPID_MP_CLIENT_AUTH_USER | + // ASCII STRING - Name of authenticated user + IMMPID_MP_CLIENT_AUTH_USER, + + //@const IMMPID | IMMPID_MP_CLIENT_AUTH_TYPE | + // ASCII STRING - Type of authentication used (AUTH keyword) + IMMPID_MP_CLIENT_AUTH_TYPE, + + //@const IMMPID | IMMPID_MP_CRC_GLOBAL | + // DWORD - Checksum for global properties (excluding the checksum properties!) + IMMPID_MP_CRC_GLOBAL, + + //@const IMMPID | IMMPID_MP_CRC_RECIPS | + // DWORD - Checksum for recipient properties + IMMPID_MP_CRC_RECIPS, + + // @const IMMPID | IMMPID_MP_INBOUND_MAIL_FROM_AUTH | + // ANSI String - Contents of the RFC2554 AUTH= string on a MAIL FROM on inbound messages + IMMPID_MP_INBOUND_MAIL_FROM_AUTH, + + + // Add new per-message properties above this line. +IMMPID_END_LIST(MP) + + +// Message classes +// @const DWORD | MP_MSGCLASS_SYSTEM +// for msgs of type -- system +#define MP_MSGCLASS_SYSTEM 1 + +// @const DWORD | MP_MSGCLASS_REPLICATION +// for msgs of type -- replication +#define MP_MSGCLASS_REPLICATION 2 + +// @const DWORD | MP_MSGCLASS_DELIVERY_REPORT +// for msgs of type -- delivery report +#define MP_MSGCLASS_DELIVERY_REPORT 3 + +// @const DWORD | MP_MSGCLASS_DELIVERY_REPORT +// for msgs of type -- non-delivery report +#define MP_MSGCLASS_NONDELIVERY_REPORT 4 + + +// Message status property values defined: + +// @const DWORD | MP_STATUS_SUCCESS | +// Initial status of message +#define MP_STATUS_SUCCESS 0 + +// @const DWORD | MP_STATUS_RETRY | +// Status indicating retry. +#define MP_STATUS_RETRY 1 + +// @const DWORD | MP_STATUS_ABORT_DELIVERY | +// Delivery of this message should be aborted and the message deleted. +#define MP_STATUS_ABORT_DELIVERY 2 + +// @const DWORD | MP_STATUS_BAD_MAIL | +// This message should be moved to badmail. +#define MP_STATUS_BAD_MAIL 3 + +// @const DWORD | MP_STATUS_SUBMITTED | +// Message has been submitted for delivery. +#define MP_STATUS_SUBMITTED 4 + +// @const DWORD | MP_STATUS_CATEGORIZED | +// Message has been categorized. +#define MP_STATUS_CATEGORIZED 5 + +// @const DWORD | MP_STATUS_ABANDON_DELIVERY | +// Delivery of this message should be abandoned until the service restarts +#define MP_STATUS_ABANDON_DELIVERY 6 + +//Per recipient flags for IMMPID_RP_RECIPIENT_FLAGS + +// @const DWORD | RP_RECIP_FLAGS_RESERVED | +// You should not modify / use these bits +#define RP_RECIP_FLAGS_RESERVED 0x0000000F + +// @const DWORD | RP_DSN_NOTIFY_SUCCESS | +// Notify on success - set if RFC1891 NOTIFY=SUCCESS is used +#define RP_DSN_NOTIFY_SUCCESS 0x01000000 + +// @const DWORD | RP_DSN_NOTIFY_FAILURE | +// Notify on failure - set if RFC1891 NOTIFY=FAILURE is used +#define RP_DSN_NOTIFY_FAILURE 0x02000000 + +// @const DWORD | RP_DSN_NOTIFY_DELAY | +// Notify on delay - set if RFC1891 NOTIFY=DELAY is used +#define RP_DSN_NOTIFY_DELAY 0x04000000 + +// @const DWORD | RP_DSN_NOTIFY_NEVER | +// Never notify - set if RFC1891 NOTIFY=NEVER is used +#define RP_DSN_NOTIFY_NEVER 0x08000000 + +// @const DWORD | RP_DSN_NOTIFY_MASK | +// Mask of all notify parameters +#define RP_DSN_NOTIFY_MASK 0x0F000000 + +//The following flags can be used in searches, but should not be set directly + +// @const DWORD | RP_HANDLED | +// Recipient has either been delivered or should not be delivered +// (this flag is provided to check status of recipient... it should never be used +// directly) +#define RP_HANDLED 0x00000010 + +// @const DWORD | RP_GENERAL_FAILURE | +// some form of hard failure happend +// (this flag is provided to check status of recipient... it should never be used +// directly) +#define RP_GENERAL_FAILURE 0x00000020 + +// @const DWORD | RP_DSN_HANDLED | +// Final DSN has been sent (or no DSN needs to be sent) +// (this flag is provided to check status of recipient... it should never be used +// directly) +#define RP_DSN_HANDLED 0x00000040 + +//The following constants define how a message can be RP_HANDLED + +// @const DWORD | RP_DELIVERED | +// The recipient has been delivered successfully +#define RP_DELIVERED 0x00000110 + +// @const DWORD | RP_DSN_SENT_NDR | +// NDR (FAILED DSN) for this recipient has been sent +#define RP_DSN_SENT_NDR 0x00000450 + +// @const DWORD | RP_FAILED | +// Recipient has a hard failure +#define RP_FAILED 0x00000830 + +// @const DWORD | RP_UNRESOLVED | +// This recipient was not resolved by categorization +#define RP_UNRESOLVED 0x00001030 + +// @const DWORD | RP_ENPANDED | +// ***OBSOLETE*** (replaced by RP_EXPANDED) +#define RP_ENPANDED 0x00002010 + +// @const DWORD | RP_EXPANDED | +// This recipient is an expanded DL +#define RP_EXPANDED 0x00002010 + +// @const DWORD | RP_DSN_SENT_DELAYED | +// At least one Delay DSN sent +#define RP_DSN_SENT_DELAYED 0x00004000 + +// @const DWORD | RP_DSN_SENT_EXPANDED | +// Expanded DSN has been sent +#define RP_DSN_SENT_EXPANDED 0x00008040 + +// @const DWORD | RP_DSN_SENT_RELAYED | +// Relayed DSN has been sent +#define RP_DSN_SENT_RELAYED 0x00010040 + +// @const DWORD | RP_DSN_SENT_DELIVERED | +// Delivered DSN has been sent +#define RP_DSN_SENT_DELIVERED 0x00020040 + + +// @const DWORD | RP_REMOTE_MTA_NO_DSN | +// Remote MTA does not advertise DSN support (relay might be needed) +#define RP_REMOTE_MTA_NO_DSN 0x00080000 + + +// @const DWORD | RP_ERROR_CONTEXT_STORE | +// Error happened in store driver +#define RP_ERROR_CONTEXT_STORE 0x00100000 + +// @const DWORD | RP_ERROR_CONTEXT_CAT | +// Error happened during categorization +#define RP_ERROR_CONTEXT_CAT 0x00200000 + +// @const DWORD | RP_ERROR_CONTEXT_MTA | +// Error happened in a MTA (eg SMTP stack) +#define RP_ERROR_CONTEXT_MTA 0x00400000 + + +// @const DWORD | RP_VOLATILE_FLAGS_MASK | +// Flags that can be used for temp storage +#define RP_VOLATILE_FLAGS_MASK 0xF0000000 + //while a component has access to recipients + //Once control of recipients is passed, value + //is un-defined. + +// @const DWORD | RP_DSN_NOTIFY_INVALID | +// *** OBSOLETE *** +#define RP_DSN_NOTIFY_INVALID 0x00000000 + +/*=======================================================================*/ + + +// These are the per-recipient properties. + +IMMPID_START_LIST(RP,0x2000,"79E82048-D320-11d1-9FF4-00C04FA37348") + + + // @const IMMPID | IMMPID_RP_DSN_NOTIFY_SUCCESS | + // *** OBSOLETE *** + IMMPID_RP_DSN_NOTIFY_SUCCESS, + + // @const IMMPID | IMMPID_RP_DSN_NOTIFY_INVALID | + // *** OBSOLETE *** + IMMPID_RP_DSN_NOTIFY_INVALID, + + // @const IMMPID | IMMPID_RP_ADDRESS_TYPE | + // *** OBSOLETE *** + IMMPID_RP_ADDRESS_TYPE, + + // @const IMMPID | IMMPID_RP_ADDRESS | + // *** OBSOLETE *** + IMMPID_RP_ADDRESS, + + // @const IMMPID | IMMPID_RP_ADDRESS_TYPE_SMTP | + // *** OBSOLETE *** + IMMPID_RP_ADDRESS_TYPE_SMTP, + + // @const IMMPID | IMMPID_RP_ERROR_CODE | + // HRESULT status code + IMMPID_RP_ERROR_CODE, + + // @const IMMPID | IMMPID_RP_ERROR_STRING | + // *** OBSOLETE *** + IMMPID_RP_ERROR_STRING, + + // @const IMMPID | IMMPID_RP_DSN_NOTIFY_VALUE | + // *** OBSOLETE *** + IMMPID_RP_DSN_NOTIFY_VALUE, + + // @const IMMPID | IMMPID_RP_DSN_ORCPT_VALUE | + // ANSI string - \
;\ + IMMPID_RP_DSN_ORCPT_VALUE, + + // @const IMMPID | IMMPID_RP_ADDRESS_SMTP | + // ANSI string - SMTP address + IMMPID_RP_ADDRESS_SMTP, + + // @const IMMPID | IMMPID_RP_ADDRESS_X400 | + // ANSI string - X.400 address + IMMPID_RP_ADDRESS_X400, + + // @const IMMPID | IMMPID_RP_ADDRESS_X500 | + // ANSI string - X.500 address + IMMPID_RP_ADDRESS_X500, + + // @const IMMPID | IMMPID_RP_LEGACY_EX_DN | + // ANSI string - DN for Exchange 5.5 and prev + IMMPID_RP_LEGACY_EX_DN, + + // @const IMMPID | IMMPID_RP_RECIPIENT_FLAGS | + // Per-recipient DSN/delivery flags. Flag constansts start with RP_. + IMMPID_RP_RECIPIENT_FLAGS, + + // @const IMMPID | IMMPID_RP_SMTP_STATUS_STRING | + // ANSI string - SMTP status string... if defined + IMMPID_RP_SMTP_STATUS_STRING, + // *must* start with 3-digit status code + + // @const IMMPID | IMMPID_RP_DSN_PRE_CAT_ADDRESS | + // Original address as received by MTA in + IMMPID_RP_DSN_PRE_CAT_ADDRESS, + // IMMPID_RP_DSN_ORCPT_VALUE format + + // @const IMMPID | IMMPID_RP_MDB_GUID | + // Categorizer stamps the MDB guid + IMMPID_RP_MDB_GUID, + // for this recipient here + + // @const IMMPID | IMMPID_RP_USER_GUID | + // Categorizer stamps the + IMMPID_RP_USER_GUID, + // objectGUID of the user object here + // @const IMMPID | IMMPID_RP_DOMAIN | + // Alternate SMTP domain for categorization + IMMPID_RP_DOMAIN, + + // @const IMMPID | IMMPID_RP_ADDRESS_OTHER | + // ANSI string - other address type + IMMPID_RP_ADDRESS_OTHER, + + // @const IMMPID | IMMPID_RP_DISPLAY_NAME | + // Unicode string - recipient display name + IMMPID_RP_DISPLAY_NAME, + + // Add new per-recipient properties above this line. +IMMPID_END_LIST(RP) + + +/*=======================================================================*/ + + +// These are per-message volatile properties - they are not persisted to +// the property stream. + +IMMPID_START_LIST(MPV,0x3000,"CBE69706-C9BD-11d1-9FF2-00C04FA37348") + + // @const IMMPID | IMMPID_MPV_STORE_DRIVER_HANDLE | + // Store driver context for this message. + IMMPID_MPV_STORE_DRIVER_HANDLE, + + // @const IMMPID | IMMPID_MPV_MESSAGE_CREATION_FLAGS | + // Flags set at creation of mailmsg. + IMMPID_MPV_MESSAGE_CREATION_FLAGS, + + // @const IMMPID | IMMPID_MPV_MESSAGE_OPEN_HANDLES | + // The number of handles (property and content) open for this message. + // 0 means no handles open. + // 1 means property or content open. + // 2 means both property and content open. + IMMPID_MPV_MESSAGE_OPEN_HANDLES, + + // @const IMMPID | IMMPID_MPV_TOTAL_OPEN_HANDLES | + // The current total number of open message handles (of any type) + // on this server. + IMMPID_MPV_TOTAL_OPEN_HANDLES, + + // @const IMMPID | IMMPID_MPV_TOTAL_OPEN_PROPERTY_STREAM_HANDLES | + // The current total number of open property streams on this server. + IMMPID_MPV_TOTAL_OPEN_PROPERTY_STREAM_HANDLES, + + // @const IMMPID | IMMPID_MPV_TOTAL_OPEN_CONTENT_HANDLES | + // The current total number of open content handles on this server. + IMMPID_MPV_TOTAL_OPEN_CONTENT_HANDLES, + + // Add new per-message volatile properties above this line. +IMMPID_END_LIST(MPV) + +// This is the structure for the IMMPID_MPV_STORE_DRIVER_HANDLE property. +typedef struct tagIMMP_MPV_STORE_DRIVER_HANDLE { + GUID guidSignature; // signature of the store driver whose handle this is +} IMMP_MPV_STORE_DRIVER_HANDLE; + +// Define message object creation flags + +// @const DWORD | MPV_INBOUND_CUTOFF_EXCEEDED | +// Mailmsg configured cutoff has been exceeded... if this is an external +// delivery attempt, we should indicate that we do not have sufficient +// resources to accept the mail. +#define MPV_INBOUND_CUTOFF_EXCEEDED 0x00000001 + +// @const DWORD | MPV_WRITE_CONTENT | +// Indicates that the content of this message can be modified. +#define MPV_WRITE_CONTENT 0x00000002 + +/*=======================================================================*/ + + +// These are per-recipient volatile properties - they are not persisted to +// the property stream. + +IMMPID_START_LIST(RPV,0x4000,"79E82049-D320-11d1-9FF4-00C04FA37348") + + // @const IMMPID | IMMPID_RPV_DONT_DELIVER | + // IMMPID_RPV_DONT_DELIVER is a boolean. If set to TRUE, mailmsg + // ignores this recipient when doing WriteList() (the recipient will + // not exist in the new list). + + IMMPID_RPV_DONT_DELIVER, + + // @const IMMPID | IMMPID_RPV_NO_NAME_COLLISIONS | + // IMMPID_RPV_NO_NAME_COLLISIONS is a boolean. If set to TRUE, mailmsg + // does not detect duplicates with this recipient on future calls to + // AddSecondary(). + + IMMPID_RPV_NO_NAME_COLLISIONS, + // Add new per-recipient volatile properties above this line. +IMMPID_END_LIST(RPV) + + +// These are defined for backwards-compatability. They will be removed +// ASAP... + +// @const DWORD | IMMPID_RP_DONT_DELIVER | +// *** OBSOLETE *** +#define IMMPID_RP_DONT_DELIVER IMMPID_RPV_DONT_DELIVER + +// @const DWORD | IMMPID_RP_NO_NAME_COLLISIONS | +// *** OBSOLETE *** +#define IMMPID_RP_NO_NAME_COLLISIONS IMMPID_RPV_NO_NAME_COLLISIONS + + +/*=======================================================================*/ + +// These are the per-message properties for NNTP + +IMMPID_START_LIST(NMP,0x6000,"7433a9aa-20e2-11d2-94d6-00c04fa379f1") + + // @const IMMPID | IMMPID_NMP_SECONDARY_GROUPS | + // An array of pointers to INNTPPropertyBag objects for each of + // the newsgroups that the article is being posted into for the + // current driver. + IMMPID_NMP_SECONDARY_GROUPS, + + // @const IMMPID | IMMPID_NMP_SECONDARY_ARTNUM | + // An array of article numbers for each of the newsgroups that + // the article is being posted into for the current driver. + IMMPID_NMP_SECONDARY_ARTNUM, + + // @const IMMPID | IMMPID_NMP_PRIMARY_GROUP | + // A pointer to the INNTPPropertyBag object which represents the + // primary group for the current driver. + IMMPID_NMP_PRIMARY_GROUP, + + // @const IMMPID | IMMPID_NMP_PRIMARY_ARTID | + // The primary article number for the primary group. + IMMPID_NMP_PRIMARY_ARTID, + + // @const IMMPID | IMMPID_NMP_POST_TOKEN | + // The HTOKEN representing the client context. + IMMPID_NMP_POST_TOKEN, + + // @const IMMPID | IMMPID_NMP_NEWSGROUP_LIST | + // The string of newsgroups which this article is being stored in. + IMMPID_NMP_NEWSGROUP_LIST, + + // @const IMMPID | IMMPID_NMP_HEADERS | + // A string containing the headers of the message. + IMMPID_NMP_HEADERS, + + // @const IMMPID | IMMPID_NMP_NNTP_PROCESSING | + // Flags which describe how the message should be processed. The + // possible values are: NMP_PROCESS_POST, NMP_PROCESS_CONTROL, + // and NMP_PROCESS_MODERATOR. + IMMPID_NMP_NNTP_PROCESSING, + + // @const IMMPID | IMMPID_NMP_NNTP_APPROVED_HEADER | + // A string containing the Approved: header of the message + IMMPID_NMP_NNTP_APPROVED_HEADER, + + // Add new per-message properties above this line. +IMMPID_END_LIST(NMP) + +// flags for IMMPID_NMP_NNTP_PROCESSING + +// @const DWORD | NMP_PROCESS_POST | +// Set this flag to allow the NNTP server to post this message. +#define NMP_PROCESS_POST 0x00000001 + +// @const DWORD | NMP_PROCESS_CONTROL | +// Set this flag to allow the NNTP server to process control headers in this +// message. +#define NMP_PROCESS_CONTROL 0x00000002 + +// @const DWORD | NMP_PROCESS_MODERATOR | +// Set this flag to allow the NNTP server to run this message through the +// default moderated posting path. +#define NMP_PROCESS_MODERATOR 0x00000004 + +/*=======================================================================*/ + + +// This is the starting range for user-reserved properties + +IMMPID_START_LIST(CPV,0x8000,"A2A76B2A-E52D-11d1-AA64-00C04FA35B82") + + // @const IMMPID | IMMPID_CP_START | + // Start of range + IMMPID_CP_START, +IMMPID_END_LIST(CPV) + + +/*=======================================================================*/ + +// This table collects the data about the properties so that range- +// checking can be performed. If any new property ranges are +// defined, they must be added to this structure. + + +#define IMMPID_DECLARE_ENTRY(name) {&_uuidof(tagIMMPID_##name##_STRUCT),\ + IMMPID_##name##_BEFORE__+1,\ + IMMPID_##name##_AFTER__-1} + +extern const __declspec(selectany) struct tagIMMPID_GUIDLIST_ITEM { + const GUID *pguid; + DWORD dwStart; + DWORD dwLast; + } IMMPID_GUIDS[] = {IMMPID_DECLARE_ENTRY(MP), + IMMPID_DECLARE_ENTRY(RP), + IMMPID_DECLARE_ENTRY(MPV), + IMMPID_DECLARE_ENTRY(RPV), + {&GUID_NULL,0,0}}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _MAILMSGPROPS_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/access.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/access.idl new file mode 100644 index 0000000000000000000000000000000000000000..de3fa56eea9ab1fefd50d7a3b9deb20d666a56dd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/access.idl @@ -0,0 +1,168 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: access.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a8c-2a1c-11ce-ade5-00aa0044773d) + + +interface IAccessor : IUnknown { + +typedef DWORD DBACCESSORFLAGS; + +enum DBACCESSORFLAGSENUM { + DBACCESSOR_INVALID = 0x000, + DBACCESSOR_PASSBYREF = 0x001, + DBACCESSOR_ROWDATA = 0x002, + DBACCESSOR_PARAMETERDATA = 0x004, + DBACCESSOR_OPTIMIZED = 0x008, + DBACCESSOR_INHERITED = 0x010, +}; + +typedef DWORD DBBINDSTATUS; + +enum DBBINDSTATUSENUM { + DBBINDSTATUS_OK = 0, + DBBINDSTATUS_BADORDINAL = 1, + DBBINDSTATUS_UNSUPPORTEDCONVERSION = 2, + DBBINDSTATUS_BADBINDINFO = 3, + DBBINDSTATUS_BADSTORAGEFLAGS = 4, + DBBINDSTATUS_NOINTERFACE = 5, + DBBINDSTATUS_MULTIPLESTORAGE = 6, +}; + + [local] + HRESULT AddRefAccessor( + [in] HACCESSOR hAccessor, + [in, out, unique, annotation("_Out_opt_")] DBREFCOUNT * pcRefCount + ); + + [call_as(AddRefAccessor)] + HRESULT RemoteAddRefAccessor( + [in] HACCESSOR hAccessor, + [in, out, unique] DBREFCOUNT * pcRefCount, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT CreateAccessor( + [in] DBACCESSORFLAGS dwAccessorFlags, + [in] DBCOUNTITEM cBindings, + [in, size_is(cBindings), annotation("_In_reads_(cBindings)")] const DBBINDING rgBindings[], + [in] DBLENGTH cbRowSize, + [out, annotation("_Out_")] HACCESSOR * phAccessor, + [out, size_is(cBindings), annotation("_Out_writes_opt_(cBindings)")] DBBINDSTATUS rgStatus[] + ); + +#ifdef _WIN64 //Use casting by ULONG in attribute size_is under 64-bit environment. +#pragma warning( disable: 26020 ) + +#ifndef NO_REMOTE + + [call_as(CreateAccessor)] + HRESULT RemoteCreateAccessor( + [in] DBACCESSORFLAGS dwAccessorFlags, + [in] DBCOUNTITEM cBindings, + [in, unique, size_is((ULONG)cBindings)] DBBINDING *rgBindings, + [in] DBLENGTH cbRowSize, + [out] HACCESSOR * phAccessor, + [in, out, unique, size_is((ULONG)cBindings)] DBBINDSTATUS *rgStatus, + [out] IErrorInfo ** ppErrorInfoRem + ); +#endif + + [local] + HRESULT GetBindings( + [in] HACCESSOR hAccessor, + [out, annotation("_Out_")] DBACCESSORFLAGS * pdwAccessorFlags, + [in, out, annotation("_Out_opt_")] DBCOUNTITEM * pcBindings, + [out, size_is(,(ULONG)*pcBindings),annotation("_Outptr_result_buffer_maybenull_(*pcBindings)")] DBBINDING ** prgBindings + ); + +#ifndef NO_REMOTE + + [call_as(GetBindings)] + HRESULT RemoteGetBindings( + [in] HACCESSOR hAccessor, + [out] DBACCESSORFLAGS * pdwAccessorFlags, + [in, out] DBCOUNTITEM * pcBindings, + [out, size_is(,(ULONG)*pcBindings)] DBBINDING ** prgBindings, + [out] IErrorInfo ** ppErrorInfoRem + ); +#endif + +#else //No casting by ULONG for 32-bit. + +#ifndef NO_REMOTE + + [call_as(CreateAccessor)] + HRESULT RemoteCreateAccessor( + [in] DBACCESSORFLAGS dwAccessorFlags, + [in] DBCOUNTITEM cBindings, + [in, unique, size_is(cBindings)] DBBINDING *rgBindings, + [in] DBLENGTH cbRowSize, + [out] HACCESSOR * phAccessor, + [in, out, unique, size_is(cBindings)] DBBINDSTATUS *rgStatus, + [out] IErrorInfo ** ppErrorInfoRem + ); +#endif + + [local] + HRESULT GetBindings( + [in] HACCESSOR hAccessor, + [out, annotation("_Out_")] DBACCESSORFLAGS * pdwAccessorFlags, + [in, out, annotation("_Out_opt_")] DBCOUNTITEM * pcBindings, + [out, size_is(,*pcBindings), annotation("_Outptr_result_buffer_maybenull_(*pcBindings)")] DBBINDING ** prgBindings + ); + +#ifndef NO_REMOTE + + [call_as(GetBindings)] + HRESULT RemoteGetBindings( + [in] HACCESSOR hAccessor, + [out] DBACCESSORFLAGS * pdwAccessorFlags, + [in, out] DBCOUNTITEM * pcBindings, + [out, size_is(,*pcBindings)] DBBINDING ** prgBindings, + [out] IErrorInfo ** ppErrorInfoRem + ); +#endif + +#endif + + [local] + HRESULT ReleaseAccessor( + [in] HACCESSOR hAccessor, + [in, out, unique, annotation("_Out_opt_")] DBREFCOUNT * pcRefCount + ); + + [call_as(ReleaseAccessor)] + HRESULT RemoteReleaseAccessor( + [in] HACCESSOR hAccessor, + [in, out, unique] DBREFCOUNT * pcRefCount, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/accountssettingspaneinterop.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/accountssettingspaneinterop.h new file mode 100644 index 0000000000000000000000000000000000000000..233735f07605b43f8f05d2b39a3e14cace69abc0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/accountssettingspaneinterop.h @@ -0,0 +1,253 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __accountssettingspaneinterop_h__ +#define __accountssettingspaneinterop_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAccountsSettingsPaneInterop_FWD_DEFINED__ +#define __IAccountsSettingsPaneInterop_FWD_DEFINED__ +typedef interface IAccountsSettingsPaneInterop IAccountsSettingsPaneInterop; + +#endif /* __IAccountsSettingsPaneInterop_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "inspectable.h" +#include "asyncinfo.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_accountssettingspaneinterop_0000_0000 */ +/* [local] */ + +#include +#if (NTDDI_VERSION >= NTDDI_WIN10_RS1) +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_accountssettingspaneinterop_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_accountssettingspaneinterop_0000_0000_v0_0_s_ifspec; + +#ifndef __IAccountsSettingsPaneInterop_INTERFACE_DEFINED__ +#define __IAccountsSettingsPaneInterop_INTERFACE_DEFINED__ + +/* interface IAccountsSettingsPaneInterop */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IAccountsSettingsPaneInterop; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D3EE12AD-3865-4362-9746-B75A682DF0E6") + IAccountsSettingsPaneInterop : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE GetForWindow( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **accountsSettingsPane) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowManageAccountsForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncAction) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowAddAccountForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncAction) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAccountsSettingsPaneInteropVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAccountsSettingsPaneInterop * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAccountsSettingsPaneInterop * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAccountsSettingsPaneInterop * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + __RPC__in IAccountsSettingsPaneInterop * This, + /* [out] */ __RPC__out ULONG *iidCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*iidCount) IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + __RPC__in IAccountsSettingsPaneInterop * This, + /* [out] */ __RPC__deref_out_opt HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + __RPC__in IAccountsSettingsPaneInterop * This, + /* [out] */ __RPC__out TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IAccountsSettingsPaneInterop, GetForWindow) + HRESULT ( STDMETHODCALLTYPE *GetForWindow )( + __RPC__in IAccountsSettingsPaneInterop * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **accountsSettingsPane); + + DECLSPEC_XFGVIRT(IAccountsSettingsPaneInterop, ShowManageAccountsForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *ShowManageAccountsForWindowAsync )( + __RPC__in IAccountsSettingsPaneInterop * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncAction); + + DECLSPEC_XFGVIRT(IAccountsSettingsPaneInterop, ShowAddAccountForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *ShowAddAccountForWindowAsync )( + __RPC__in IAccountsSettingsPaneInterop * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncAction); + + END_INTERFACE + } IAccountsSettingsPaneInteropVtbl; + + interface IAccountsSettingsPaneInterop + { + CONST_VTBL struct IAccountsSettingsPaneInteropVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAccountsSettingsPaneInterop_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAccountsSettingsPaneInterop_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAccountsSettingsPaneInterop_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAccountsSettingsPaneInterop_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IAccountsSettingsPaneInterop_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IAccountsSettingsPaneInterop_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IAccountsSettingsPaneInterop_GetForWindow(This,appWindow,riid,accountsSettingsPane) \ + ( (This)->lpVtbl -> GetForWindow(This,appWindow,riid,accountsSettingsPane) ) + +#define IAccountsSettingsPaneInterop_ShowManageAccountsForWindowAsync(This,appWindow,riid,asyncAction) \ + ( (This)->lpVtbl -> ShowManageAccountsForWindowAsync(This,appWindow,riid,asyncAction) ) + +#define IAccountsSettingsPaneInterop_ShowAddAccountForWindowAsync(This,appWindow,riid,asyncAction) \ + ( (This)->lpVtbl -> ShowAddAccountForWindowAsync(This,appWindow,riid,asyncAction) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAccountsSettingsPaneInterop_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_accountssettingspaneinterop_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif //(NTDDI_VERSION >= NTDDI_WIN10) + + +extern RPC_IF_HANDLE __MIDL_itf_accountssettingspaneinterop_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_accountssettingspaneinterop_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/accountssettingspaneinterop.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/accountssettingspaneinterop.idl new file mode 100644 index 0000000000000000000000000000000000000000..3974ad6e1f58d6c935e2bda40f38e1840b7f9895 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/accountssettingspaneinterop.idl @@ -0,0 +1,42 @@ +/* AccountsSettingsPaneInterop.idl + * + * IDL defines for COM APIs to support interop with Windows.UI.ApplicationSettings.AccountsSettingsPane + * + * Copyright (c) Microsoft Corporation. All rights reserved + */ + +import "inspectable.idl"; +import "asyncinfo.idl"; + +cpp_quote("#include ") + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_RS1)") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +[ + uuid(D3EE12AD-3865-4362-9746-B75A682DF0E6), +] +interface IAccountsSettingsPaneInterop : IInspectable +{ + HRESULT GetForWindow( + [in] HWND appWindow, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** accountsSettingsPane); + + HRESULT ShowManageAccountsForWindowAsync( + [in] HWND appWindow, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncAction); + + HRESULT ShowAddAccountForWindowAsync( + [in] HWND appWindow, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncAction); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WIN10)") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/activaut.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activaut.h new file mode 100644 index 0000000000000000000000000000000000000000..6cfc0d70fa8ef61ee37bd52799b713e64ba55caa --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activaut.h @@ -0,0 +1,1453 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __activaut_h__ +#define __activaut_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IScriptNode_FWD_DEFINED__ +#define __IScriptNode_FWD_DEFINED__ +typedef interface IScriptNode IScriptNode; + +#endif /* __IScriptNode_FWD_DEFINED__ */ + + +#ifndef __IScriptEntry_FWD_DEFINED__ +#define __IScriptEntry_FWD_DEFINED__ +typedef interface IScriptEntry IScriptEntry; + +#endif /* __IScriptEntry_FWD_DEFINED__ */ + + +#ifndef __IScriptScriptlet_FWD_DEFINED__ +#define __IScriptScriptlet_FWD_DEFINED__ +typedef interface IScriptScriptlet IScriptScriptlet; + +#endif /* __IScriptScriptlet_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptAuthor_FWD_DEFINED__ +#define __IActiveScriptAuthor_FWD_DEFINED__ +typedef interface IActiveScriptAuthor IActiveScriptAuthor; + +#endif /* __IActiveScriptAuthor_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptAuthorProcedure_FWD_DEFINED__ +#define __IActiveScriptAuthorProcedure_FWD_DEFINED__ +typedef interface IActiveScriptAuthorProcedure IActiveScriptAuthorProcedure; + +#endif /* __IActiveScriptAuthorProcedure_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_activaut_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// ActivAut.h +//=--------------------------------------------------------------------------= +// (C) Copyright 1997 Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= +// +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma comment(lib,"uuid.lib") +// +// Declarations for ActiveX Script Authoring. +// + +#ifndef __ActivAut_h +#define __ActivAut_h + +/* GUIDs + ********/ + +#ifndef _NO_AUTHOR_GUIDS +// {0AEE2A92-BCBB-11d0-8C72-00C04FC2B085} +DEFINE_GUID(CATID_ActiveScriptAuthor, 0xaee2a92, 0xbcbb, 0x11d0, 0x8c, 0x72, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85); + +// {9C109DA0-7006-11d1-B36C-00A0C911E8B2} +DEFINE_GUID(IID_IActiveScriptAuthor, 0x9c109da0, 0x7006, 0x11d1, 0xb3, 0x6c, 0x00, 0xa0, 0xc9, 0x11, 0xe8, 0xb2); + +// {0AEE2A94-BCBB-11d0-8C72-00C04FC2B085} +DEFINE_GUID(IID_IScriptNode, 0xaee2a94, 0xbcbb, 0x11d0, 0x8c, 0x72, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85); + +// {0AEE2A95-BCBB-11d0-8C72-00C04FC2B085} +DEFINE_GUID(IID_IScriptEntry, 0xaee2a95, 0xbcbb, 0x11d0, 0x8c, 0x72, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85); + +// {0AEE2A96-BCBB-11d0-8C72-00C04FC2B085} +DEFINE_GUID(IID_IScriptScriptlet, 0xaee2a96, 0xbcbb, 0x11d0, 0x8c, 0x72, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85); + +// {7E2D4B70-BD9A-11d0-9336-00A0C90DCAA9} +DEFINE_GUID(IID_IActiveScriptAuthorProcedure, 0x7e2d4b70, 0xbd9a, 0x11d0, 0x93, 0x36, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9); + +#endif // _NO_AUTHOR_GUIDS + +/* Interfaces + *************/ + + +// Output flags for GetLanguageFlags +const DWORD fasaPreferInternalHandler = 0x0001; +const DWORD fasaSupportInternalHandler = 0x0002; +const DWORD fasaCaseSensitive = 0x0004; + +// Flags for statement completion +const DWORD SCRIPT_CMPL_NOLIST = 0x0000; +const DWORD SCRIPT_CMPL_MEMBERLIST = 0x0001; +const DWORD SCRIPT_CMPL_ENUMLIST = 0x0002; +const DWORD SCRIPT_CMPL_PARAMTIP = 0x0004; +const DWORD SCRIPT_CMPL_GLOBALLIST = 0x0008; + +const DWORD SCRIPT_CMPL_ENUM_TRIGGER = 0x0001; +const DWORD SCRIPT_CMPL_MEMBER_TRIGGER = 0x0002; +const DWORD SCRIPT_CMPL_PARAM_TRIGGER = 0x0003; +const DWORD SCRIPT_CMPL_COMMIT = 0x0004; + +// Flags for getting attributes +const DWORD GETATTRTYPE_NORMAL = 0x0000; +const DWORD GETATTRTYPE_DEPSCAN = 0x0001; + +// GETATTRFLAG_THIS can be used with either GETATTRTYPE_NORMAL or GETATTRTYPE_DEPSCAN +const DWORD GETATTRFLAG_THIS = 0x0100; +const DWORD GETATTRFLAG_HUMANTEXT = 0x8000; + +// When the GETATTR_LOCALIZE flag is set the following bit will be +// set for source attributes that should be considered localized +const DWORD SOURCETEXT_ATTR_HUMANTEXT = 0x8000; + +// Valid attributes returned for GETATTR_DEPSCAN +const DWORD SOURCETEXT_ATTR_IDENTIFIER = 0x0100; +const DWORD SOURCETEXT_ATTR_MEMBERLOOKUP = 0x0200; + +// When the GETATTRFLAG_THIS flag is set the following bit will be +// set for the this pointer (JS) or me pointer (VBS) +const DWORD SOURCETEXT_ATTR_THIS = 0x0400; + + + + +typedef WORD SOURCE_TEXT_ATTR; + + + +extern RPC_IF_HANDLE __MIDL_itf_activaut_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activaut_0000_0000_v0_0_s_ifspec; + +#ifndef __IScriptNode_INTERFACE_DEFINED__ +#define __IScriptNode_INTERFACE_DEFINED__ + +/* interface IScriptNode */ +/* [object][unique][uuid] */ + + +EXTERN_C const IID IID_IScriptNode; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0AEE2A94-BCBB-11d0-8C72-00C04FC2B085") + IScriptNode : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Alive( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParent( + /* [out] */ __RPC__deref_out_opt IScriptNode **ppsnParent) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIndexInParent( + /* [out] */ __RPC__out ULONG *pisn) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCookie( + /* [out] */ __RPC__out DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNumberOfChildren( + /* [out] */ __RPC__out ULONG *pcsn) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChild( + /* [in] */ ULONG isn, + /* [out] */ __RPC__deref_out_opt IScriptNode **ppsn) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguage( + /* [out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateChildEntry( + /* [in] */ ULONG isn, + /* [in] */ DWORD dwCookie, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [out] */ __RPC__deref_out_opt IScriptEntry **ppse) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateChildHandler( + /* [in] */ __RPC__in LPCOLESTR pszDefaultName, + /* [size_is][in] */ __RPC__in_ecount_full(cpszNames) LPCOLESTR *prgpszNames, + /* [in] */ ULONG cpszNames, + /* [in] */ __RPC__in LPCOLESTR pszEvent, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ __RPC__in_opt ITypeInfo *ptiSignature, + /* [in] */ ULONG iMethodSignature, + /* [in] */ ULONG isn, + /* [in] */ DWORD dwCookie, + /* [out] */ __RPC__deref_out_opt IScriptEntry **ppse) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IScriptNodeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IScriptNode * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IScriptNode * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IScriptNode * This); + + DECLSPEC_XFGVIRT(IScriptNode, Alive) + HRESULT ( STDMETHODCALLTYPE *Alive )( + __RPC__in IScriptNode * This); + + DECLSPEC_XFGVIRT(IScriptNode, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IScriptNode * This); + + DECLSPEC_XFGVIRT(IScriptNode, GetParent) + HRESULT ( STDMETHODCALLTYPE *GetParent )( + __RPC__in IScriptNode * This, + /* [out] */ __RPC__deref_out_opt IScriptNode **ppsnParent); + + DECLSPEC_XFGVIRT(IScriptNode, GetIndexInParent) + HRESULT ( STDMETHODCALLTYPE *GetIndexInParent )( + __RPC__in IScriptNode * This, + /* [out] */ __RPC__out ULONG *pisn); + + DECLSPEC_XFGVIRT(IScriptNode, GetCookie) + HRESULT ( STDMETHODCALLTYPE *GetCookie )( + __RPC__in IScriptNode * This, + /* [out] */ __RPC__out DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(IScriptNode, GetNumberOfChildren) + HRESULT ( STDMETHODCALLTYPE *GetNumberOfChildren )( + __RPC__in IScriptNode * This, + /* [out] */ __RPC__out ULONG *pcsn); + + DECLSPEC_XFGVIRT(IScriptNode, GetChild) + HRESULT ( STDMETHODCALLTYPE *GetChild )( + __RPC__in IScriptNode * This, + /* [in] */ ULONG isn, + /* [out] */ __RPC__deref_out_opt IScriptNode **ppsn); + + DECLSPEC_XFGVIRT(IScriptNode, GetLanguage) + HRESULT ( STDMETHODCALLTYPE *GetLanguage )( + __RPC__in IScriptNode * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptNode, CreateChildEntry) + HRESULT ( STDMETHODCALLTYPE *CreateChildEntry )( + __RPC__in IScriptNode * This, + /* [in] */ ULONG isn, + /* [in] */ DWORD dwCookie, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [out] */ __RPC__deref_out_opt IScriptEntry **ppse); + + DECLSPEC_XFGVIRT(IScriptNode, CreateChildHandler) + HRESULT ( STDMETHODCALLTYPE *CreateChildHandler )( + __RPC__in IScriptNode * This, + /* [in] */ __RPC__in LPCOLESTR pszDefaultName, + /* [size_is][in] */ __RPC__in_ecount_full(cpszNames) LPCOLESTR *prgpszNames, + /* [in] */ ULONG cpszNames, + /* [in] */ __RPC__in LPCOLESTR pszEvent, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ __RPC__in_opt ITypeInfo *ptiSignature, + /* [in] */ ULONG iMethodSignature, + /* [in] */ ULONG isn, + /* [in] */ DWORD dwCookie, + /* [out] */ __RPC__deref_out_opt IScriptEntry **ppse); + + END_INTERFACE + } IScriptNodeVtbl; + + interface IScriptNode + { + CONST_VTBL struct IScriptNodeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IScriptNode_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IScriptNode_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IScriptNode_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IScriptNode_Alive(This) \ + ( (This)->lpVtbl -> Alive(This) ) + +#define IScriptNode_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IScriptNode_GetParent(This,ppsnParent) \ + ( (This)->lpVtbl -> GetParent(This,ppsnParent) ) + +#define IScriptNode_GetIndexInParent(This,pisn) \ + ( (This)->lpVtbl -> GetIndexInParent(This,pisn) ) + +#define IScriptNode_GetCookie(This,pdwCookie) \ + ( (This)->lpVtbl -> GetCookie(This,pdwCookie) ) + +#define IScriptNode_GetNumberOfChildren(This,pcsn) \ + ( (This)->lpVtbl -> GetNumberOfChildren(This,pcsn) ) + +#define IScriptNode_GetChild(This,isn,ppsn) \ + ( (This)->lpVtbl -> GetChild(This,isn,ppsn) ) + +#define IScriptNode_GetLanguage(This,pbstr) \ + ( (This)->lpVtbl -> GetLanguage(This,pbstr) ) + +#define IScriptNode_CreateChildEntry(This,isn,dwCookie,pszDelimiter,ppse) \ + ( (This)->lpVtbl -> CreateChildEntry(This,isn,dwCookie,pszDelimiter,ppse) ) + +#define IScriptNode_CreateChildHandler(This,pszDefaultName,prgpszNames,cpszNames,pszEvent,pszDelimiter,ptiSignature,iMethodSignature,isn,dwCookie,ppse) \ + ( (This)->lpVtbl -> CreateChildHandler(This,pszDefaultName,prgpszNames,cpszNames,pszEvent,pszDelimiter,ptiSignature,iMethodSignature,isn,dwCookie,ppse) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IScriptNode_INTERFACE_DEFINED__ */ + + +#ifndef __IScriptEntry_INTERFACE_DEFINED__ +#define __IScriptEntry_INTERFACE_DEFINED__ + +/* interface IScriptEntry */ +/* [object][unique][uuid] */ + + +EXTERN_C const IID IID_IScriptEntry; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0AEE2A95-BCBB-11d0-8C72-00C04FC2B085") + IScriptEntry : public IScriptNode + { + public: + virtual HRESULT STDMETHODCALLTYPE GetText( + /* [out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetText( + /* [in] */ __RPC__in LPCOLESTR psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBody( + /* [out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBody( + /* [in] */ __RPC__in LPCOLESTR psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetName( + /* [in] */ __RPC__in LPCOLESTR psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItemName( + /* [out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetItemName( + /* [in] */ __RPC__in LPCOLESTR psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSignature( + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppti, + /* [out] */ __RPC__out ULONG *piMethod) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSignature( + /* [in] */ __RPC__in_opt ITypeInfo *pti, + /* [in] */ ULONG iMethod) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRange( + /* [out] */ __RPC__out ULONG *pichMin, + /* [out] */ __RPC__out ULONG *pcch) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IScriptEntryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IScriptEntry * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IScriptEntry * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IScriptEntry * This); + + DECLSPEC_XFGVIRT(IScriptNode, Alive) + HRESULT ( STDMETHODCALLTYPE *Alive )( + __RPC__in IScriptEntry * This); + + DECLSPEC_XFGVIRT(IScriptNode, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IScriptEntry * This); + + DECLSPEC_XFGVIRT(IScriptNode, GetParent) + HRESULT ( STDMETHODCALLTYPE *GetParent )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__deref_out_opt IScriptNode **ppsnParent); + + DECLSPEC_XFGVIRT(IScriptNode, GetIndexInParent) + HRESULT ( STDMETHODCALLTYPE *GetIndexInParent )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__out ULONG *pisn); + + DECLSPEC_XFGVIRT(IScriptNode, GetCookie) + HRESULT ( STDMETHODCALLTYPE *GetCookie )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__out DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(IScriptNode, GetNumberOfChildren) + HRESULT ( STDMETHODCALLTYPE *GetNumberOfChildren )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__out ULONG *pcsn); + + DECLSPEC_XFGVIRT(IScriptNode, GetChild) + HRESULT ( STDMETHODCALLTYPE *GetChild )( + __RPC__in IScriptEntry * This, + /* [in] */ ULONG isn, + /* [out] */ __RPC__deref_out_opt IScriptNode **ppsn); + + DECLSPEC_XFGVIRT(IScriptNode, GetLanguage) + HRESULT ( STDMETHODCALLTYPE *GetLanguage )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptNode, CreateChildEntry) + HRESULT ( STDMETHODCALLTYPE *CreateChildEntry )( + __RPC__in IScriptEntry * This, + /* [in] */ ULONG isn, + /* [in] */ DWORD dwCookie, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [out] */ __RPC__deref_out_opt IScriptEntry **ppse); + + DECLSPEC_XFGVIRT(IScriptNode, CreateChildHandler) + HRESULT ( STDMETHODCALLTYPE *CreateChildHandler )( + __RPC__in IScriptEntry * This, + /* [in] */ __RPC__in LPCOLESTR pszDefaultName, + /* [size_is][in] */ __RPC__in_ecount_full(cpszNames) LPCOLESTR *prgpszNames, + /* [in] */ ULONG cpszNames, + /* [in] */ __RPC__in LPCOLESTR pszEvent, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ __RPC__in_opt ITypeInfo *ptiSignature, + /* [in] */ ULONG iMethodSignature, + /* [in] */ ULONG isn, + /* [in] */ DWORD dwCookie, + /* [out] */ __RPC__deref_out_opt IScriptEntry **ppse); + + DECLSPEC_XFGVIRT(IScriptEntry, GetText) + HRESULT ( STDMETHODCALLTYPE *GetText )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptEntry, SetText) + HRESULT ( STDMETHODCALLTYPE *SetText )( + __RPC__in IScriptEntry * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + DECLSPEC_XFGVIRT(IScriptEntry, GetBody) + HRESULT ( STDMETHODCALLTYPE *GetBody )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptEntry, SetBody) + HRESULT ( STDMETHODCALLTYPE *SetBody )( + __RPC__in IScriptEntry * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + DECLSPEC_XFGVIRT(IScriptEntry, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptEntry, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + __RPC__in IScriptEntry * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + DECLSPEC_XFGVIRT(IScriptEntry, GetItemName) + HRESULT ( STDMETHODCALLTYPE *GetItemName )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptEntry, SetItemName) + HRESULT ( STDMETHODCALLTYPE *SetItemName )( + __RPC__in IScriptEntry * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + DECLSPEC_XFGVIRT(IScriptEntry, GetSignature) + HRESULT ( STDMETHODCALLTYPE *GetSignature )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppti, + /* [out] */ __RPC__out ULONG *piMethod); + + DECLSPEC_XFGVIRT(IScriptEntry, SetSignature) + HRESULT ( STDMETHODCALLTYPE *SetSignature )( + __RPC__in IScriptEntry * This, + /* [in] */ __RPC__in_opt ITypeInfo *pti, + /* [in] */ ULONG iMethod); + + DECLSPEC_XFGVIRT(IScriptEntry, GetRange) + HRESULT ( STDMETHODCALLTYPE *GetRange )( + __RPC__in IScriptEntry * This, + /* [out] */ __RPC__out ULONG *pichMin, + /* [out] */ __RPC__out ULONG *pcch); + + END_INTERFACE + } IScriptEntryVtbl; + + interface IScriptEntry + { + CONST_VTBL struct IScriptEntryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IScriptEntry_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IScriptEntry_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IScriptEntry_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IScriptEntry_Alive(This) \ + ( (This)->lpVtbl -> Alive(This) ) + +#define IScriptEntry_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IScriptEntry_GetParent(This,ppsnParent) \ + ( (This)->lpVtbl -> GetParent(This,ppsnParent) ) + +#define IScriptEntry_GetIndexInParent(This,pisn) \ + ( (This)->lpVtbl -> GetIndexInParent(This,pisn) ) + +#define IScriptEntry_GetCookie(This,pdwCookie) \ + ( (This)->lpVtbl -> GetCookie(This,pdwCookie) ) + +#define IScriptEntry_GetNumberOfChildren(This,pcsn) \ + ( (This)->lpVtbl -> GetNumberOfChildren(This,pcsn) ) + +#define IScriptEntry_GetChild(This,isn,ppsn) \ + ( (This)->lpVtbl -> GetChild(This,isn,ppsn) ) + +#define IScriptEntry_GetLanguage(This,pbstr) \ + ( (This)->lpVtbl -> GetLanguage(This,pbstr) ) + +#define IScriptEntry_CreateChildEntry(This,isn,dwCookie,pszDelimiter,ppse) \ + ( (This)->lpVtbl -> CreateChildEntry(This,isn,dwCookie,pszDelimiter,ppse) ) + +#define IScriptEntry_CreateChildHandler(This,pszDefaultName,prgpszNames,cpszNames,pszEvent,pszDelimiter,ptiSignature,iMethodSignature,isn,dwCookie,ppse) \ + ( (This)->lpVtbl -> CreateChildHandler(This,pszDefaultName,prgpszNames,cpszNames,pszEvent,pszDelimiter,ptiSignature,iMethodSignature,isn,dwCookie,ppse) ) + + +#define IScriptEntry_GetText(This,pbstr) \ + ( (This)->lpVtbl -> GetText(This,pbstr) ) + +#define IScriptEntry_SetText(This,psz) \ + ( (This)->lpVtbl -> SetText(This,psz) ) + +#define IScriptEntry_GetBody(This,pbstr) \ + ( (This)->lpVtbl -> GetBody(This,pbstr) ) + +#define IScriptEntry_SetBody(This,psz) \ + ( (This)->lpVtbl -> SetBody(This,psz) ) + +#define IScriptEntry_GetName(This,pbstr) \ + ( (This)->lpVtbl -> GetName(This,pbstr) ) + +#define IScriptEntry_SetName(This,psz) \ + ( (This)->lpVtbl -> SetName(This,psz) ) + +#define IScriptEntry_GetItemName(This,pbstr) \ + ( (This)->lpVtbl -> GetItemName(This,pbstr) ) + +#define IScriptEntry_SetItemName(This,psz) \ + ( (This)->lpVtbl -> SetItemName(This,psz) ) + +#define IScriptEntry_GetSignature(This,ppti,piMethod) \ + ( (This)->lpVtbl -> GetSignature(This,ppti,piMethod) ) + +#define IScriptEntry_SetSignature(This,pti,iMethod) \ + ( (This)->lpVtbl -> SetSignature(This,pti,iMethod) ) + +#define IScriptEntry_GetRange(This,pichMin,pcch) \ + ( (This)->lpVtbl -> GetRange(This,pichMin,pcch) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IScriptEntry_INTERFACE_DEFINED__ */ + + +#ifndef __IScriptScriptlet_INTERFACE_DEFINED__ +#define __IScriptScriptlet_INTERFACE_DEFINED__ + +/* interface IScriptScriptlet */ +/* [object][unique][uuid] */ + + +EXTERN_C const IID IID_IScriptScriptlet; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0AEE2A96-BCBB-11d0-8C72-00C04FC2B085") + IScriptScriptlet : public IScriptEntry + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSubItemName( + /* [out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSubItemName( + /* [in] */ __RPC__in LPCOLESTR psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEventName( + /* [out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetEventName( + /* [in] */ __RPC__in LPCOLESTR psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSimpleEventName( + /* [out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSimpleEventName( + /* [in] */ __RPC__in LPCOLESTR psz) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IScriptScriptletVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IScriptScriptlet * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IScriptScriptlet * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IScriptScriptlet * This); + + DECLSPEC_XFGVIRT(IScriptNode, Alive) + HRESULT ( STDMETHODCALLTYPE *Alive )( + __RPC__in IScriptScriptlet * This); + + DECLSPEC_XFGVIRT(IScriptNode, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IScriptScriptlet * This); + + DECLSPEC_XFGVIRT(IScriptNode, GetParent) + HRESULT ( STDMETHODCALLTYPE *GetParent )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__deref_out_opt IScriptNode **ppsnParent); + + DECLSPEC_XFGVIRT(IScriptNode, GetIndexInParent) + HRESULT ( STDMETHODCALLTYPE *GetIndexInParent )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__out ULONG *pisn); + + DECLSPEC_XFGVIRT(IScriptNode, GetCookie) + HRESULT ( STDMETHODCALLTYPE *GetCookie )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__out DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(IScriptNode, GetNumberOfChildren) + HRESULT ( STDMETHODCALLTYPE *GetNumberOfChildren )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__out ULONG *pcsn); + + DECLSPEC_XFGVIRT(IScriptNode, GetChild) + HRESULT ( STDMETHODCALLTYPE *GetChild )( + __RPC__in IScriptScriptlet * This, + /* [in] */ ULONG isn, + /* [out] */ __RPC__deref_out_opt IScriptNode **ppsn); + + DECLSPEC_XFGVIRT(IScriptNode, GetLanguage) + HRESULT ( STDMETHODCALLTYPE *GetLanguage )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptNode, CreateChildEntry) + HRESULT ( STDMETHODCALLTYPE *CreateChildEntry )( + __RPC__in IScriptScriptlet * This, + /* [in] */ ULONG isn, + /* [in] */ DWORD dwCookie, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [out] */ __RPC__deref_out_opt IScriptEntry **ppse); + + DECLSPEC_XFGVIRT(IScriptNode, CreateChildHandler) + HRESULT ( STDMETHODCALLTYPE *CreateChildHandler )( + __RPC__in IScriptScriptlet * This, + /* [in] */ __RPC__in LPCOLESTR pszDefaultName, + /* [size_is][in] */ __RPC__in_ecount_full(cpszNames) LPCOLESTR *prgpszNames, + /* [in] */ ULONG cpszNames, + /* [in] */ __RPC__in LPCOLESTR pszEvent, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ __RPC__in_opt ITypeInfo *ptiSignature, + /* [in] */ ULONG iMethodSignature, + /* [in] */ ULONG isn, + /* [in] */ DWORD dwCookie, + /* [out] */ __RPC__deref_out_opt IScriptEntry **ppse); + + DECLSPEC_XFGVIRT(IScriptEntry, GetText) + HRESULT ( STDMETHODCALLTYPE *GetText )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptEntry, SetText) + HRESULT ( STDMETHODCALLTYPE *SetText )( + __RPC__in IScriptScriptlet * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + DECLSPEC_XFGVIRT(IScriptEntry, GetBody) + HRESULT ( STDMETHODCALLTYPE *GetBody )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptEntry, SetBody) + HRESULT ( STDMETHODCALLTYPE *SetBody )( + __RPC__in IScriptScriptlet * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + DECLSPEC_XFGVIRT(IScriptEntry, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptEntry, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + __RPC__in IScriptScriptlet * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + DECLSPEC_XFGVIRT(IScriptEntry, GetItemName) + HRESULT ( STDMETHODCALLTYPE *GetItemName )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptEntry, SetItemName) + HRESULT ( STDMETHODCALLTYPE *SetItemName )( + __RPC__in IScriptScriptlet * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + DECLSPEC_XFGVIRT(IScriptEntry, GetSignature) + HRESULT ( STDMETHODCALLTYPE *GetSignature )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppti, + /* [out] */ __RPC__out ULONG *piMethod); + + DECLSPEC_XFGVIRT(IScriptEntry, SetSignature) + HRESULT ( STDMETHODCALLTYPE *SetSignature )( + __RPC__in IScriptScriptlet * This, + /* [in] */ __RPC__in_opt ITypeInfo *pti, + /* [in] */ ULONG iMethod); + + DECLSPEC_XFGVIRT(IScriptEntry, GetRange) + HRESULT ( STDMETHODCALLTYPE *GetRange )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__out ULONG *pichMin, + /* [out] */ __RPC__out ULONG *pcch); + + DECLSPEC_XFGVIRT(IScriptScriptlet, GetSubItemName) + HRESULT ( STDMETHODCALLTYPE *GetSubItemName )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptScriptlet, SetSubItemName) + HRESULT ( STDMETHODCALLTYPE *SetSubItemName )( + __RPC__in IScriptScriptlet * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + DECLSPEC_XFGVIRT(IScriptScriptlet, GetEventName) + HRESULT ( STDMETHODCALLTYPE *GetEventName )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptScriptlet, SetEventName) + HRESULT ( STDMETHODCALLTYPE *SetEventName )( + __RPC__in IScriptScriptlet * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + DECLSPEC_XFGVIRT(IScriptScriptlet, GetSimpleEventName) + HRESULT ( STDMETHODCALLTYPE *GetSimpleEventName )( + __RPC__in IScriptScriptlet * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IScriptScriptlet, SetSimpleEventName) + HRESULT ( STDMETHODCALLTYPE *SetSimpleEventName )( + __RPC__in IScriptScriptlet * This, + /* [in] */ __RPC__in LPCOLESTR psz); + + END_INTERFACE + } IScriptScriptletVtbl; + + interface IScriptScriptlet + { + CONST_VTBL struct IScriptScriptletVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IScriptScriptlet_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IScriptScriptlet_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IScriptScriptlet_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IScriptScriptlet_Alive(This) \ + ( (This)->lpVtbl -> Alive(This) ) + +#define IScriptScriptlet_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IScriptScriptlet_GetParent(This,ppsnParent) \ + ( (This)->lpVtbl -> GetParent(This,ppsnParent) ) + +#define IScriptScriptlet_GetIndexInParent(This,pisn) \ + ( (This)->lpVtbl -> GetIndexInParent(This,pisn) ) + +#define IScriptScriptlet_GetCookie(This,pdwCookie) \ + ( (This)->lpVtbl -> GetCookie(This,pdwCookie) ) + +#define IScriptScriptlet_GetNumberOfChildren(This,pcsn) \ + ( (This)->lpVtbl -> GetNumberOfChildren(This,pcsn) ) + +#define IScriptScriptlet_GetChild(This,isn,ppsn) \ + ( (This)->lpVtbl -> GetChild(This,isn,ppsn) ) + +#define IScriptScriptlet_GetLanguage(This,pbstr) \ + ( (This)->lpVtbl -> GetLanguage(This,pbstr) ) + +#define IScriptScriptlet_CreateChildEntry(This,isn,dwCookie,pszDelimiter,ppse) \ + ( (This)->lpVtbl -> CreateChildEntry(This,isn,dwCookie,pszDelimiter,ppse) ) + +#define IScriptScriptlet_CreateChildHandler(This,pszDefaultName,prgpszNames,cpszNames,pszEvent,pszDelimiter,ptiSignature,iMethodSignature,isn,dwCookie,ppse) \ + ( (This)->lpVtbl -> CreateChildHandler(This,pszDefaultName,prgpszNames,cpszNames,pszEvent,pszDelimiter,ptiSignature,iMethodSignature,isn,dwCookie,ppse) ) + + +#define IScriptScriptlet_GetText(This,pbstr) \ + ( (This)->lpVtbl -> GetText(This,pbstr) ) + +#define IScriptScriptlet_SetText(This,psz) \ + ( (This)->lpVtbl -> SetText(This,psz) ) + +#define IScriptScriptlet_GetBody(This,pbstr) \ + ( (This)->lpVtbl -> GetBody(This,pbstr) ) + +#define IScriptScriptlet_SetBody(This,psz) \ + ( (This)->lpVtbl -> SetBody(This,psz) ) + +#define IScriptScriptlet_GetName(This,pbstr) \ + ( (This)->lpVtbl -> GetName(This,pbstr) ) + +#define IScriptScriptlet_SetName(This,psz) \ + ( (This)->lpVtbl -> SetName(This,psz) ) + +#define IScriptScriptlet_GetItemName(This,pbstr) \ + ( (This)->lpVtbl -> GetItemName(This,pbstr) ) + +#define IScriptScriptlet_SetItemName(This,psz) \ + ( (This)->lpVtbl -> SetItemName(This,psz) ) + +#define IScriptScriptlet_GetSignature(This,ppti,piMethod) \ + ( (This)->lpVtbl -> GetSignature(This,ppti,piMethod) ) + +#define IScriptScriptlet_SetSignature(This,pti,iMethod) \ + ( (This)->lpVtbl -> SetSignature(This,pti,iMethod) ) + +#define IScriptScriptlet_GetRange(This,pichMin,pcch) \ + ( (This)->lpVtbl -> GetRange(This,pichMin,pcch) ) + + +#define IScriptScriptlet_GetSubItemName(This,pbstr) \ + ( (This)->lpVtbl -> GetSubItemName(This,pbstr) ) + +#define IScriptScriptlet_SetSubItemName(This,psz) \ + ( (This)->lpVtbl -> SetSubItemName(This,psz) ) + +#define IScriptScriptlet_GetEventName(This,pbstr) \ + ( (This)->lpVtbl -> GetEventName(This,pbstr) ) + +#define IScriptScriptlet_SetEventName(This,psz) \ + ( (This)->lpVtbl -> SetEventName(This,psz) ) + +#define IScriptScriptlet_GetSimpleEventName(This,pbstr) \ + ( (This)->lpVtbl -> GetSimpleEventName(This,pbstr) ) + +#define IScriptScriptlet_SetSimpleEventName(This,psz) \ + ( (This)->lpVtbl -> SetSimpleEventName(This,psz) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IScriptScriptlet_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptAuthor_INTERFACE_DEFINED__ +#define __IActiveScriptAuthor_INTERFACE_DEFINED__ + +/* interface IActiveScriptAuthor */ +/* [object][unique][uuid] */ + + +EXTERN_C const IID IID_IActiveScriptAuthor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9C109DA0-7006-11d1-B36C-00A0C911E8B2") + IActiveScriptAuthor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddNamedItem( + /* [in] */ __RPC__in LPCOLESTR pszName, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in_opt IDispatch *pdisp) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddScriptlet( + /* [in] */ __RPC__in LPCOLESTR pszDefaultName, + /* [in] */ __RPC__in LPCOLESTR pszCode, + /* [in] */ __RPC__in LPCOLESTR pszItemName, + /* [in] */ __RPC__in LPCOLESTR pszSubItemName, + /* [in] */ __RPC__in LPCOLESTR pszEventName, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ DWORD dwCookie, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE ParseScriptText( + /* [in] */ __RPC__in LPCOLESTR pszCode, + /* [in] */ __RPC__in LPCOLESTR pszItemName, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ DWORD dwCookie, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptTextAttributes( + /* [size_is][in] */ __RPC__in_ecount_full(cch) LPCOLESTR pszCode, + /* [in] */ ULONG cch, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(cch) SOURCE_TEXT_ATTR *pattr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptletTextAttributes( + /* [size_is][in] */ __RPC__in_ecount_full(cch) LPCOLESTR pszCode, + /* [in] */ ULONG cch, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(cch) SOURCE_TEXT_ATTR *pattr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRoot( + /* [out] */ __RPC__deref_out_opt IScriptNode **ppsp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageFlags( + /* [out] */ __RPC__out DWORD *pgrfasa) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEventHandler( + /* [in] */ __RPC__in_opt IDispatch *pdisp, + /* [in] */ __RPC__in LPCOLESTR pszItem, + /* [in] */ __RPC__in LPCOLESTR pszSubItem, + /* [in] */ __RPC__in LPCOLESTR pszEvent, + /* [out] */ __RPC__deref_out_opt IScriptEntry **ppse) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveNamedItem( + /* [in] */ __RPC__in LPCOLESTR pszName) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddTypeLib( + /* [in] */ __RPC__in REFGUID rguidTypeLib, + /* [in] */ DWORD dwMajor, + /* [in] */ DWORD dwMinor, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveTypeLib( + /* [in] */ __RPC__in REFGUID rguidTypeLib, + /* [in] */ DWORD dwMajor, + /* [in] */ DWORD dwMinor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChars( + /* [in] */ DWORD fRequestedList, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrChars) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInfoFromContext( + /* [in] */ __RPC__in LPCOLESTR pszCode, + /* [in] */ ULONG cchCode, + /* [in] */ ULONG ichCurrentPosition, + /* [in] */ DWORD dwListTypesRequested, + /* [out] */ __RPC__out DWORD *pdwListTypesProvided, + /* [out] */ __RPC__out ULONG *pichListAnchorPosition, + /* [out] */ __RPC__out ULONG *pichFuncAnchorPosition, + /* [out] */ __RPC__out MEMBERID *pmemid, + /* [out] */ __RPC__out LONG *piCurrentParameter, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunk) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsCommitChar( + /* [in] */ OLECHAR ch, + /* [out] */ __RPC__out BOOL *pfcommit) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptAuthorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptAuthor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptAuthor * This); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, AddNamedItem) + HRESULT ( STDMETHODCALLTYPE *AddNamedItem )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ __RPC__in LPCOLESTR pszName, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in_opt IDispatch *pdisp); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, AddScriptlet) + HRESULT ( STDMETHODCALLTYPE *AddScriptlet )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ __RPC__in LPCOLESTR pszDefaultName, + /* [in] */ __RPC__in LPCOLESTR pszCode, + /* [in] */ __RPC__in LPCOLESTR pszItemName, + /* [in] */ __RPC__in LPCOLESTR pszSubItemName, + /* [in] */ __RPC__in LPCOLESTR pszEventName, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ DWORD dwCookie, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, ParseScriptText) + HRESULT ( STDMETHODCALLTYPE *ParseScriptText )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ __RPC__in LPCOLESTR pszCode, + /* [in] */ __RPC__in LPCOLESTR pszItemName, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ DWORD dwCookie, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, GetScriptTextAttributes) + HRESULT ( STDMETHODCALLTYPE *GetScriptTextAttributes )( + __RPC__in IActiveScriptAuthor * This, + /* [size_is][in] */ __RPC__in_ecount_full(cch) LPCOLESTR pszCode, + /* [in] */ ULONG cch, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(cch) SOURCE_TEXT_ATTR *pattr); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, GetScriptletTextAttributes) + HRESULT ( STDMETHODCALLTYPE *GetScriptletTextAttributes )( + __RPC__in IActiveScriptAuthor * This, + /* [size_is][in] */ __RPC__in_ecount_full(cch) LPCOLESTR pszCode, + /* [in] */ ULONG cch, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(cch) SOURCE_TEXT_ATTR *pattr); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, GetRoot) + HRESULT ( STDMETHODCALLTYPE *GetRoot )( + __RPC__in IActiveScriptAuthor * This, + /* [out] */ __RPC__deref_out_opt IScriptNode **ppsp); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, GetLanguageFlags) + HRESULT ( STDMETHODCALLTYPE *GetLanguageFlags )( + __RPC__in IActiveScriptAuthor * This, + /* [out] */ __RPC__out DWORD *pgrfasa); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, GetEventHandler) + HRESULT ( STDMETHODCALLTYPE *GetEventHandler )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ __RPC__in_opt IDispatch *pdisp, + /* [in] */ __RPC__in LPCOLESTR pszItem, + /* [in] */ __RPC__in LPCOLESTR pszSubItem, + /* [in] */ __RPC__in LPCOLESTR pszEvent, + /* [out] */ __RPC__deref_out_opt IScriptEntry **ppse); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, RemoveNamedItem) + HRESULT ( STDMETHODCALLTYPE *RemoveNamedItem )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ __RPC__in LPCOLESTR pszName); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, AddTypeLib) + HRESULT ( STDMETHODCALLTYPE *AddTypeLib )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ __RPC__in REFGUID rguidTypeLib, + /* [in] */ DWORD dwMajor, + /* [in] */ DWORD dwMinor, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, RemoveTypeLib) + HRESULT ( STDMETHODCALLTYPE *RemoveTypeLib )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ __RPC__in REFGUID rguidTypeLib, + /* [in] */ DWORD dwMajor, + /* [in] */ DWORD dwMinor); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, GetChars) + HRESULT ( STDMETHODCALLTYPE *GetChars )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ DWORD fRequestedList, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrChars); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, GetInfoFromContext) + HRESULT ( STDMETHODCALLTYPE *GetInfoFromContext )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ __RPC__in LPCOLESTR pszCode, + /* [in] */ ULONG cchCode, + /* [in] */ ULONG ichCurrentPosition, + /* [in] */ DWORD dwListTypesRequested, + /* [out] */ __RPC__out DWORD *pdwListTypesProvided, + /* [out] */ __RPC__out ULONG *pichListAnchorPosition, + /* [out] */ __RPC__out ULONG *pichFuncAnchorPosition, + /* [out] */ __RPC__out MEMBERID *pmemid, + /* [out] */ __RPC__out LONG *piCurrentParameter, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunk); + + DECLSPEC_XFGVIRT(IActiveScriptAuthor, IsCommitChar) + HRESULT ( STDMETHODCALLTYPE *IsCommitChar )( + __RPC__in IActiveScriptAuthor * This, + /* [in] */ OLECHAR ch, + /* [out] */ __RPC__out BOOL *pfcommit); + + END_INTERFACE + } IActiveScriptAuthorVtbl; + + interface IActiveScriptAuthor + { + CONST_VTBL struct IActiveScriptAuthorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptAuthor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptAuthor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptAuthor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptAuthor_AddNamedItem(This,pszName,dwFlags,pdisp) \ + ( (This)->lpVtbl -> AddNamedItem(This,pszName,dwFlags,pdisp) ) + +#define IActiveScriptAuthor_AddScriptlet(This,pszDefaultName,pszCode,pszItemName,pszSubItemName,pszEventName,pszDelimiter,dwCookie,dwFlags) \ + ( (This)->lpVtbl -> AddScriptlet(This,pszDefaultName,pszCode,pszItemName,pszSubItemName,pszEventName,pszDelimiter,dwCookie,dwFlags) ) + +#define IActiveScriptAuthor_ParseScriptText(This,pszCode,pszItemName,pszDelimiter,dwCookie,dwFlags) \ + ( (This)->lpVtbl -> ParseScriptText(This,pszCode,pszItemName,pszDelimiter,dwCookie,dwFlags) ) + +#define IActiveScriptAuthor_GetScriptTextAttributes(This,pszCode,cch,pszDelimiter,dwFlags,pattr) \ + ( (This)->lpVtbl -> GetScriptTextAttributes(This,pszCode,cch,pszDelimiter,dwFlags,pattr) ) + +#define IActiveScriptAuthor_GetScriptletTextAttributes(This,pszCode,cch,pszDelimiter,dwFlags,pattr) \ + ( (This)->lpVtbl -> GetScriptletTextAttributes(This,pszCode,cch,pszDelimiter,dwFlags,pattr) ) + +#define IActiveScriptAuthor_GetRoot(This,ppsp) \ + ( (This)->lpVtbl -> GetRoot(This,ppsp) ) + +#define IActiveScriptAuthor_GetLanguageFlags(This,pgrfasa) \ + ( (This)->lpVtbl -> GetLanguageFlags(This,pgrfasa) ) + +#define IActiveScriptAuthor_GetEventHandler(This,pdisp,pszItem,pszSubItem,pszEvent,ppse) \ + ( (This)->lpVtbl -> GetEventHandler(This,pdisp,pszItem,pszSubItem,pszEvent,ppse) ) + +#define IActiveScriptAuthor_RemoveNamedItem(This,pszName) \ + ( (This)->lpVtbl -> RemoveNamedItem(This,pszName) ) + +#define IActiveScriptAuthor_AddTypeLib(This,rguidTypeLib,dwMajor,dwMinor,dwFlags) \ + ( (This)->lpVtbl -> AddTypeLib(This,rguidTypeLib,dwMajor,dwMinor,dwFlags) ) + +#define IActiveScriptAuthor_RemoveTypeLib(This,rguidTypeLib,dwMajor,dwMinor) \ + ( (This)->lpVtbl -> RemoveTypeLib(This,rguidTypeLib,dwMajor,dwMinor) ) + +#define IActiveScriptAuthor_GetChars(This,fRequestedList,pbstrChars) \ + ( (This)->lpVtbl -> GetChars(This,fRequestedList,pbstrChars) ) + +#define IActiveScriptAuthor_GetInfoFromContext(This,pszCode,cchCode,ichCurrentPosition,dwListTypesRequested,pdwListTypesProvided,pichListAnchorPosition,pichFuncAnchorPosition,pmemid,piCurrentParameter,ppunk) \ + ( (This)->lpVtbl -> GetInfoFromContext(This,pszCode,cchCode,ichCurrentPosition,dwListTypesRequested,pdwListTypesProvided,pichListAnchorPosition,pichFuncAnchorPosition,pmemid,piCurrentParameter,ppunk) ) + +#define IActiveScriptAuthor_IsCommitChar(This,ch,pfcommit) \ + ( (This)->lpVtbl -> IsCommitChar(This,ch,pfcommit) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptAuthor_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptAuthorProcedure_INTERFACE_DEFINED__ +#define __IActiveScriptAuthorProcedure_INTERFACE_DEFINED__ + +/* interface IActiveScriptAuthorProcedure */ +/* [object][unique][uuid] */ + + +EXTERN_C const IID IID_IActiveScriptAuthorProcedure; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7E2D4B70-BD9A-11d0-9336-00A0C90DCAA9") + IActiveScriptAuthorProcedure : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ParseProcedureText( + /* [in] */ __RPC__in LPCOLESTR pszCode, + /* [in] */ __RPC__in LPCOLESTR pszFormalParams, + /* [in] */ __RPC__in LPCOLESTR pszProcedureName, + /* [in] */ __RPC__in LPCOLESTR pszItemName, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ DWORD dwCookie, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in_opt IDispatch *pdispFor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptAuthorProcedureVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptAuthorProcedure * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptAuthorProcedure * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptAuthorProcedure * This); + + DECLSPEC_XFGVIRT(IActiveScriptAuthorProcedure, ParseProcedureText) + HRESULT ( STDMETHODCALLTYPE *ParseProcedureText )( + __RPC__in IActiveScriptAuthorProcedure * This, + /* [in] */ __RPC__in LPCOLESTR pszCode, + /* [in] */ __RPC__in LPCOLESTR pszFormalParams, + /* [in] */ __RPC__in LPCOLESTR pszProcedureName, + /* [in] */ __RPC__in LPCOLESTR pszItemName, + /* [in] */ __RPC__in LPCOLESTR pszDelimiter, + /* [in] */ DWORD dwCookie, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in_opt IDispatch *pdispFor); + + END_INTERFACE + } IActiveScriptAuthorProcedureVtbl; + + interface IActiveScriptAuthorProcedure + { + CONST_VTBL struct IActiveScriptAuthorProcedureVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptAuthorProcedure_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptAuthorProcedure_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptAuthorProcedure_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptAuthorProcedure_ParseProcedureText(This,pszCode,pszFormalParams,pszProcedureName,pszItemName,pszDelimiter,dwCookie,dwFlags,pdispFor) \ + ( (This)->lpVtbl -> ParseProcedureText(This,pszCode,pszFormalParams,pszProcedureName,pszItemName,pszDelimiter,dwCookie,dwFlags,pdispFor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptAuthorProcedure_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activaut_0000_0005 */ +/* [local] */ + + +#endif // __ActivAut_h + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_activaut_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activaut_0000_0005_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/activaut.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activaut.idl new file mode 100644 index 0000000000000000000000000000000000000000..9f7fc3709920c670d05c982a8155bb487018f11b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activaut.idl @@ -0,0 +1,318 @@ +//+--------------------------------------------------------------------------- +// +// (C) Copyright 1997 Microsoft Corporation. All Rights Reserved. +// +// Contents: Declarations for ActiveX Script Authoring +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// ActivAut.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 1997 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("//") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("//") +cpp_quote("// Declarations for ActiveX Script Authoring.") +cpp_quote("//") + +cpp_quote("") +cpp_quote("#ifndef __ActivAut_h") +cpp_quote("#define __ActivAut_h") +cpp_quote("") + +#ifndef DO_NO_IMPORTS +import "ocidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; +#endif + +cpp_quote("/* GUIDs") +cpp_quote(" ********/") +cpp_quote("") + +cpp_quote("#ifndef _NO_AUTHOR_GUIDS") + +cpp_quote("// {0AEE2A92-BCBB-11d0-8C72-00C04FC2B085}") +cpp_quote("DEFINE_GUID(CATID_ActiveScriptAuthor, 0xaee2a92, 0xbcbb, 0x11d0, 0x8c, 0x72, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85);") +cpp_quote("") + +cpp_quote("// {9C109DA0-7006-11d1-B36C-00A0C911E8B2}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptAuthor, 0x9c109da0, 0x7006, 0x11d1, 0xb3, 0x6c, 0x00, 0xa0, 0xc9, 0x11, 0xe8, 0xb2);") +cpp_quote("") + +cpp_quote("// {0AEE2A94-BCBB-11d0-8C72-00C04FC2B085}") +cpp_quote("DEFINE_GUID(IID_IScriptNode, 0xaee2a94, 0xbcbb, 0x11d0, 0x8c, 0x72, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85);") +cpp_quote("") + +cpp_quote("// {0AEE2A95-BCBB-11d0-8C72-00C04FC2B085}") +cpp_quote("DEFINE_GUID(IID_IScriptEntry, 0xaee2a95, 0xbcbb, 0x11d0, 0x8c, 0x72, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85);") +cpp_quote("") + +cpp_quote("// {0AEE2A96-BCBB-11d0-8C72-00C04FC2B085}") +cpp_quote("DEFINE_GUID(IID_IScriptScriptlet, 0xaee2a96, 0xbcbb, 0x11d0, 0x8c, 0x72, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85);") +cpp_quote("") + +cpp_quote("// {7E2D4B70-BD9A-11d0-9336-00A0C90DCAA9}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptAuthorProcedure, 0x7e2d4b70, 0xbd9a, 0x11d0, 0x93, 0x36, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9);") +cpp_quote("") + +cpp_quote("#endif // _NO_AUTHOR_GUIDS") +cpp_quote("") + +cpp_quote("/* Interfaces") +cpp_quote(" *************/") +cpp_quote("") + +cpp_quote("") +cpp_quote("// Output flags for GetLanguageFlags") +cpp_quote("const DWORD fasaPreferInternalHandler = 0x0001;") +cpp_quote("const DWORD fasaSupportInternalHandler = 0x0002;") +cpp_quote("const DWORD fasaCaseSensitive = 0x0004;") +cpp_quote("") + +cpp_quote("// Flags for statement completion") +cpp_quote("const DWORD SCRIPT_CMPL_NOLIST = 0x0000;") +cpp_quote("const DWORD SCRIPT_CMPL_MEMBERLIST = 0x0001;") +cpp_quote("const DWORD SCRIPT_CMPL_ENUMLIST = 0x0002;") +cpp_quote("const DWORD SCRIPT_CMPL_PARAMTIP = 0x0004;") +cpp_quote("const DWORD SCRIPT_CMPL_GLOBALLIST = 0x0008;") +cpp_quote("") +cpp_quote("const DWORD SCRIPT_CMPL_ENUM_TRIGGER = 0x0001;") +cpp_quote("const DWORD SCRIPT_CMPL_MEMBER_TRIGGER = 0x0002;") +cpp_quote("const DWORD SCRIPT_CMPL_PARAM_TRIGGER = 0x0003;") +cpp_quote("const DWORD SCRIPT_CMPL_COMMIT = 0x0004;") +cpp_quote("") +cpp_quote("// Flags for getting attributes") +cpp_quote("const DWORD GETATTRTYPE_NORMAL = 0x0000;") +cpp_quote("const DWORD GETATTRTYPE_DEPSCAN = 0x0001;") +cpp_quote("") +cpp_quote("// GETATTRFLAG_THIS can be used with either GETATTRTYPE_NORMAL or GETATTRTYPE_DEPSCAN") +cpp_quote("const DWORD GETATTRFLAG_THIS = 0x0100;") +cpp_quote("const DWORD GETATTRFLAG_HUMANTEXT = 0x8000;") +cpp_quote("") +cpp_quote("// When the GETATTR_LOCALIZE flag is set the following bit will be") +cpp_quote("// set for source attributes that should be considered localized") +cpp_quote("const DWORD SOURCETEXT_ATTR_HUMANTEXT = 0x8000;") +cpp_quote("") +cpp_quote("// Valid attributes returned for GETATTR_DEPSCAN") +cpp_quote("const DWORD SOURCETEXT_ATTR_IDENTIFIER = 0x0100;") +cpp_quote("const DWORD SOURCETEXT_ATTR_MEMBERLOOKUP = 0x0200;") +cpp_quote("") +cpp_quote("// When the GETATTRFLAG_THIS flag is set the following bit will be") +cpp_quote("// set for the this pointer (JS) or me pointer (VBS)") +cpp_quote("const DWORD SOURCETEXT_ATTR_THIS = 0x0400;") + +interface IActiveScriptAuthor; +interface IScriptNode; +interface IScriptEntry; +interface IScriptScriptlet; + +typedef WORD SOURCE_TEXT_ATTR; + +[ + uuid(0AEE2A94-BCBB-11d0-8C72-00C04FC2B085), + pointer_default(unique) +] +interface IScriptNode : IUnknown + { + HRESULT Alive(void); + HRESULT Delete(void); + + HRESULT GetParent([out] IScriptNode **ppsnParent); + HRESULT GetIndexInParent([out] ULONG *pisn); + + HRESULT GetCookie([out] DWORD *pdwCookie); + + HRESULT GetNumberOfChildren([out] ULONG *pcsn); + HRESULT GetChild([in] ULONG isn, [out] IScriptNode **ppsn); + + HRESULT GetLanguage([out] BSTR *pbstr); + + HRESULT CreateChildEntry( + [in] ULONG isn, + [in] DWORD dwCookie, + [in] LPCOLESTR pszDelimiter, + [out] IScriptEntry **ppse); + HRESULT CreateChildHandler( + [in] LPCOLESTR pszDefaultName, + [in, size_is(cpszNames)] LPCOLESTR *prgpszNames, + [in] ULONG cpszNames, + [in] LPCOLESTR pszEvent, + [in] LPCOLESTR pszDelimiter, + [in] ITypeInfo* ptiSignature, + [in] ULONG iMethodSignature, + [in] ULONG isn, + [in] DWORD dwCookie, + [out] IScriptEntry **ppse); + } + + +[ + uuid(0AEE2A95-BCBB-11d0-8C72-00C04FC2B085), + pointer_default(unique) +] +interface IScriptEntry : IScriptNode + { + HRESULT GetText([out] BSTR *pbstr); + HRESULT SetText([in] LPCOLESTR psz); + + HRESULT GetBody([out] BSTR *pbstr); + HRESULT SetBody([in] LPCOLESTR psz); + + HRESULT GetName([out] BSTR *pbstr); + HRESULT SetName([in] LPCOLESTR psz); + + HRESULT GetItemName([out] BSTR *pbstr); + HRESULT SetItemName([in] LPCOLESTR psz); + + HRESULT GetSignature([out] ITypeInfo **ppti, [out] ULONG *piMethod); + HRESULT SetSignature([in] ITypeInfo *pti, [in] ULONG iMethod); + + HRESULT GetRange([out] ULONG *pichMin, [out] ULONG *pcch); + } + + +[ + uuid(0AEE2A96-BCBB-11d0-8C72-00C04FC2B085), + pointer_default(unique) +] +interface IScriptScriptlet : IScriptEntry + { + HRESULT GetSubItemName([out] BSTR *pbstr); + HRESULT SetSubItemName([in] LPCOLESTR psz); + + HRESULT GetEventName([out] BSTR *pbstr); + HRESULT SetEventName([in] LPCOLESTR psz); + + HRESULT GetSimpleEventName([out] BSTR *pbstr); + HRESULT SetSimpleEventName([in] LPCOLESTR psz); + } + + +[ + uuid(9C109DA0-7006-11d1-B36C-00A0C911E8B2), + pointer_default(unique) +] +interface IActiveScriptAuthor : IUnknown + { + HRESULT AddNamedItem( + [in] LPCOLESTR pszName, + [in] DWORD dwFlags, + [in] IDispatch *pdisp); + + HRESULT AddScriptlet( + [in] LPCOLESTR pszDefaultName, + [in] LPCOLESTR pszCode, + [in] LPCOLESTR pszItemName, + [in] LPCOLESTR pszSubItemName, + [in] LPCOLESTR pszEventName, + [in] LPCOLESTR pszDelimiter, + [in] DWORD dwCookie, + [in] DWORD dwFlags); + + HRESULT ParseScriptText( + [in] LPCOLESTR pszCode, + [in] LPCOLESTR pszItemName, + [in] LPCOLESTR pszDelimiter, + [in] DWORD dwCookie, + [in] DWORD dwFlags); + + HRESULT GetScriptTextAttributes( + [in, size_is(cch)] LPCOLESTR pszCode, + [in] ULONG cch, + [in] LPCOLESTR pszDelimiter, + [in] DWORD dwFlags, + [in, out, size_is(cch)] SOURCE_TEXT_ATTR *pattr); + + HRESULT GetScriptletTextAttributes( + [in, size_is(cch)] LPCOLESTR pszCode, + [in] ULONG cch, + [in] LPCOLESTR pszDelimiter, + [in] DWORD dwFlags, + [in, out, size_is(cch)] SOURCE_TEXT_ATTR *pattr); + + HRESULT GetRoot([out] IScriptNode **ppsp); + + HRESULT GetLanguageFlags([out] DWORD *pgrfasa); + + HRESULT GetEventHandler( + [in] IDispatch* pdisp, + [in] LPCOLESTR pszItem, + [in] LPCOLESTR pszSubItem, + [in] LPCOLESTR pszEvent, + [out] IScriptEntry **ppse); + + HRESULT RemoveNamedItem( + [in] LPCOLESTR pszName); + + HRESULT AddTypeLib( + [in] REFGUID rguidTypeLib, + [in] DWORD dwMajor, + [in] DWORD dwMinor, + [in] DWORD dwFlags); + + HRESULT RemoveTypeLib( + [in] REFGUID rguidTypeLib, + [in] DWORD dwMajor, + [in] DWORD dwMinor); + + // Statement completion functions + + HRESULT GetChars( + [in] DWORD fRequestedList, // The list of characters requested + [out] BSTR * pbstrChars); // The characters for this flag + + HRESULT GetInfoFromContext( + [in] LPCOLESTR pszCode, // The text from the block that is being edited. + [in] ULONG cchCode, // The length of the code block + [in] ULONG ichCurrentPosition, // Offset from the beginning of the block + [in] DWORD dwListTypesRequested, // The type of list requested + [out] DWORD * pdwListTypesProvided, // The type of list provided + [out] ULONG * pichListAnchorPosition, // The offset of the anchor position for the list + [out] ULONG * pichFuncAnchorPosition, // The offset of the anchor position for a function call + [out] MEMBERID * pmemid, // The memid of the function for a param tip. + [out] LONG * piCurrentParameter, // The index of the current parameter, -1 for symbol + [out] IUnknown * * ppunk); // The information from which to build the list + + HRESULT IsCommitChar( + [in] OLECHAR ch, // The character that might be a commit char + [out] BOOL * pfcommit); + } + + +[ + uuid(7E2D4B70-BD9A-11d0-9336-00A0C90DCAA9), + pointer_default(unique) +] +interface IActiveScriptAuthorProcedure : IUnknown + { + HRESULT ParseProcedureText( + [in] LPCOLESTR pszCode, + [in] LPCOLESTR pszFormalParams, + [in] LPCOLESTR pszProcedureName, + [in] LPCOLESTR pszItemName, + [in] LPCOLESTR pszDelimiter, + [in] DWORD dwCookie, + [in] DWORD dwFlags, + [in] IDispatch *pdispFor); + } + +cpp_quote("") +cpp_quote("#endif // __ActivAut_h") +cpp_quote("") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg.h new file mode 100644 index 0000000000000000000000000000000000000000..1795a5418153937b36c00d2c17777efebd51aa1e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg.h @@ -0,0 +1,10024 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __activdbg_h__ +#define __activdbg_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IActiveScriptDebug32_FWD_DEFINED__ +#define __IActiveScriptDebug32_FWD_DEFINED__ +typedef interface IActiveScriptDebug32 IActiveScriptDebug32; + +#endif /* __IActiveScriptDebug32_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptDebug64_FWD_DEFINED__ +#define __IActiveScriptDebug64_FWD_DEFINED__ +typedef interface IActiveScriptDebug64 IActiveScriptDebug64; + +#endif /* __IActiveScriptDebug64_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSiteDebug32_FWD_DEFINED__ +#define __IActiveScriptSiteDebug32_FWD_DEFINED__ +typedef interface IActiveScriptSiteDebug32 IActiveScriptSiteDebug32; + +#endif /* __IActiveScriptSiteDebug32_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSiteDebug64_FWD_DEFINED__ +#define __IActiveScriptSiteDebug64_FWD_DEFINED__ +typedef interface IActiveScriptSiteDebug64 IActiveScriptSiteDebug64; + +#endif /* __IActiveScriptSiteDebug64_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSiteDebugEx_FWD_DEFINED__ +#define __IActiveScriptSiteDebugEx_FWD_DEFINED__ +typedef interface IActiveScriptSiteDebugEx IActiveScriptSiteDebugEx; + +#endif /* __IActiveScriptSiteDebugEx_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptErrorDebug_FWD_DEFINED__ +#define __IActiveScriptErrorDebug_FWD_DEFINED__ +typedef interface IActiveScriptErrorDebug IActiveScriptErrorDebug; + +#endif /* __IActiveScriptErrorDebug_FWD_DEFINED__ */ + + +#ifndef __IDebugCodeContext_FWD_DEFINED__ +#define __IDebugCodeContext_FWD_DEFINED__ +typedef interface IDebugCodeContext IDebugCodeContext; + +#endif /* __IDebugCodeContext_FWD_DEFINED__ */ + + +#ifndef __IDebugExpression_FWD_DEFINED__ +#define __IDebugExpression_FWD_DEFINED__ +typedef interface IDebugExpression IDebugExpression; + +#endif /* __IDebugExpression_FWD_DEFINED__ */ + + +#ifndef __IDebugExpressionContext_FWD_DEFINED__ +#define __IDebugExpressionContext_FWD_DEFINED__ +typedef interface IDebugExpressionContext IDebugExpressionContext; + +#endif /* __IDebugExpressionContext_FWD_DEFINED__ */ + + +#ifndef __IDebugExpressionCallBack_FWD_DEFINED__ +#define __IDebugExpressionCallBack_FWD_DEFINED__ +typedef interface IDebugExpressionCallBack IDebugExpressionCallBack; + +#endif /* __IDebugExpressionCallBack_FWD_DEFINED__ */ + + +#ifndef __IDebugStackFrame_FWD_DEFINED__ +#define __IDebugStackFrame_FWD_DEFINED__ +typedef interface IDebugStackFrame IDebugStackFrame; + +#endif /* __IDebugStackFrame_FWD_DEFINED__ */ + + +#ifndef __IDebugStackFrameSniffer_FWD_DEFINED__ +#define __IDebugStackFrameSniffer_FWD_DEFINED__ +typedef interface IDebugStackFrameSniffer IDebugStackFrameSniffer; + +#endif /* __IDebugStackFrameSniffer_FWD_DEFINED__ */ + + +#ifndef __IDebugStackFrameSnifferEx32_FWD_DEFINED__ +#define __IDebugStackFrameSnifferEx32_FWD_DEFINED__ +typedef interface IDebugStackFrameSnifferEx32 IDebugStackFrameSnifferEx32; + +#endif /* __IDebugStackFrameSnifferEx32_FWD_DEFINED__ */ + + +#ifndef __IDebugStackFrameSnifferEx64_FWD_DEFINED__ +#define __IDebugStackFrameSnifferEx64_FWD_DEFINED__ +typedef interface IDebugStackFrameSnifferEx64 IDebugStackFrameSnifferEx64; + +#endif /* __IDebugStackFrameSnifferEx64_FWD_DEFINED__ */ + + +#ifndef __IDebugSyncOperation_FWD_DEFINED__ +#define __IDebugSyncOperation_FWD_DEFINED__ +typedef interface IDebugSyncOperation IDebugSyncOperation; + +#endif /* __IDebugSyncOperation_FWD_DEFINED__ */ + + +#ifndef __IDebugAsyncOperation_FWD_DEFINED__ +#define __IDebugAsyncOperation_FWD_DEFINED__ +typedef interface IDebugAsyncOperation IDebugAsyncOperation; + +#endif /* __IDebugAsyncOperation_FWD_DEFINED__ */ + + +#ifndef __IDebugAsyncOperationCallBack_FWD_DEFINED__ +#define __IDebugAsyncOperationCallBack_FWD_DEFINED__ +typedef interface IDebugAsyncOperationCallBack IDebugAsyncOperationCallBack; + +#endif /* __IDebugAsyncOperationCallBack_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugCodeContexts_FWD_DEFINED__ +#define __IEnumDebugCodeContexts_FWD_DEFINED__ +typedef interface IEnumDebugCodeContexts IEnumDebugCodeContexts; + +#endif /* __IEnumDebugCodeContexts_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugStackFrames_FWD_DEFINED__ +#define __IEnumDebugStackFrames_FWD_DEFINED__ +typedef interface IEnumDebugStackFrames IEnumDebugStackFrames; + +#endif /* __IEnumDebugStackFrames_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugStackFrames64_FWD_DEFINED__ +#define __IEnumDebugStackFrames64_FWD_DEFINED__ +typedef interface IEnumDebugStackFrames64 IEnumDebugStackFrames64; + +#endif /* __IEnumDebugStackFrames64_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentInfo_FWD_DEFINED__ +#define __IDebugDocumentInfo_FWD_DEFINED__ +typedef interface IDebugDocumentInfo IDebugDocumentInfo; + +#endif /* __IDebugDocumentInfo_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentProvider_FWD_DEFINED__ +#define __IDebugDocumentProvider_FWD_DEFINED__ +typedef interface IDebugDocumentProvider IDebugDocumentProvider; + +#endif /* __IDebugDocumentProvider_FWD_DEFINED__ */ + + +#ifndef __IDebugDocument_FWD_DEFINED__ +#define __IDebugDocument_FWD_DEFINED__ +typedef interface IDebugDocument IDebugDocument; + +#endif /* __IDebugDocument_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentText_FWD_DEFINED__ +#define __IDebugDocumentText_FWD_DEFINED__ +typedef interface IDebugDocumentText IDebugDocumentText; + +#endif /* __IDebugDocumentText_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentTextEvents_FWD_DEFINED__ +#define __IDebugDocumentTextEvents_FWD_DEFINED__ +typedef interface IDebugDocumentTextEvents IDebugDocumentTextEvents; + +#endif /* __IDebugDocumentTextEvents_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentTextAuthor_FWD_DEFINED__ +#define __IDebugDocumentTextAuthor_FWD_DEFINED__ +typedef interface IDebugDocumentTextAuthor IDebugDocumentTextAuthor; + +#endif /* __IDebugDocumentTextAuthor_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentTextExternalAuthor_FWD_DEFINED__ +#define __IDebugDocumentTextExternalAuthor_FWD_DEFINED__ +typedef interface IDebugDocumentTextExternalAuthor IDebugDocumentTextExternalAuthor; + +#endif /* __IDebugDocumentTextExternalAuthor_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentHelper32_FWD_DEFINED__ +#define __IDebugDocumentHelper32_FWD_DEFINED__ +typedef interface IDebugDocumentHelper32 IDebugDocumentHelper32; + +#endif /* __IDebugDocumentHelper32_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentHelper64_FWD_DEFINED__ +#define __IDebugDocumentHelper64_FWD_DEFINED__ +typedef interface IDebugDocumentHelper64 IDebugDocumentHelper64; + +#endif /* __IDebugDocumentHelper64_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentHost_FWD_DEFINED__ +#define __IDebugDocumentHost_FWD_DEFINED__ +typedef interface IDebugDocumentHost IDebugDocumentHost; + +#endif /* __IDebugDocumentHost_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentContext_FWD_DEFINED__ +#define __IDebugDocumentContext_FWD_DEFINED__ +typedef interface IDebugDocumentContext IDebugDocumentContext; + +#endif /* __IDebugDocumentContext_FWD_DEFINED__ */ + + +#ifndef __IDebugSessionProvider_FWD_DEFINED__ +#define __IDebugSessionProvider_FWD_DEFINED__ +typedef interface IDebugSessionProvider IDebugSessionProvider; + +#endif /* __IDebugSessionProvider_FWD_DEFINED__ */ + + +#ifndef __IApplicationDebugger_FWD_DEFINED__ +#define __IApplicationDebugger_FWD_DEFINED__ +typedef interface IApplicationDebugger IApplicationDebugger; + +#endif /* __IApplicationDebugger_FWD_DEFINED__ */ + + +#ifndef __IApplicationDebuggerUI_FWD_DEFINED__ +#define __IApplicationDebuggerUI_FWD_DEFINED__ +typedef interface IApplicationDebuggerUI IApplicationDebuggerUI; + +#endif /* __IApplicationDebuggerUI_FWD_DEFINED__ */ + + +#ifndef __IMachineDebugManager_FWD_DEFINED__ +#define __IMachineDebugManager_FWD_DEFINED__ +typedef interface IMachineDebugManager IMachineDebugManager; + +#endif /* __IMachineDebugManager_FWD_DEFINED__ */ + + +#ifndef __IMachineDebugManagerCookie_FWD_DEFINED__ +#define __IMachineDebugManagerCookie_FWD_DEFINED__ +typedef interface IMachineDebugManagerCookie IMachineDebugManagerCookie; + +#endif /* __IMachineDebugManagerCookie_FWD_DEFINED__ */ + + +#ifndef __IMachineDebugManagerEvents_FWD_DEFINED__ +#define __IMachineDebugManagerEvents_FWD_DEFINED__ +typedef interface IMachineDebugManagerEvents IMachineDebugManagerEvents; + +#endif /* __IMachineDebugManagerEvents_FWD_DEFINED__ */ + + +#ifndef __IProcessDebugManager32_FWD_DEFINED__ +#define __IProcessDebugManager32_FWD_DEFINED__ +typedef interface IProcessDebugManager32 IProcessDebugManager32; + +#endif /* __IProcessDebugManager32_FWD_DEFINED__ */ + + +#ifndef __IProcessDebugManager64_FWD_DEFINED__ +#define __IProcessDebugManager64_FWD_DEFINED__ +typedef interface IProcessDebugManager64 IProcessDebugManager64; + +#endif /* __IProcessDebugManager64_FWD_DEFINED__ */ + + +#ifndef __IRemoteDebugApplication_FWD_DEFINED__ +#define __IRemoteDebugApplication_FWD_DEFINED__ +typedef interface IRemoteDebugApplication IRemoteDebugApplication; + +#endif /* __IRemoteDebugApplication_FWD_DEFINED__ */ + + +#ifndef __IDebugApplication32_FWD_DEFINED__ +#define __IDebugApplication32_FWD_DEFINED__ +typedef interface IDebugApplication32 IDebugApplication32; + +#endif /* __IDebugApplication32_FWD_DEFINED__ */ + + +#ifndef __IDebugApplication64_FWD_DEFINED__ +#define __IDebugApplication64_FWD_DEFINED__ +typedef interface IDebugApplication64 IDebugApplication64; + +#endif /* __IDebugApplication64_FWD_DEFINED__ */ + + +#ifndef __IRemoteDebugApplicationEvents_FWD_DEFINED__ +#define __IRemoteDebugApplicationEvents_FWD_DEFINED__ +typedef interface IRemoteDebugApplicationEvents IRemoteDebugApplicationEvents; + +#endif /* __IRemoteDebugApplicationEvents_FWD_DEFINED__ */ + + +#ifndef __IDebugApplicationNode_FWD_DEFINED__ +#define __IDebugApplicationNode_FWD_DEFINED__ +typedef interface IDebugApplicationNode IDebugApplicationNode; + +#endif /* __IDebugApplicationNode_FWD_DEFINED__ */ + + +#ifndef __IDebugApplicationNodeEvents_FWD_DEFINED__ +#define __IDebugApplicationNodeEvents_FWD_DEFINED__ +typedef interface IDebugApplicationNodeEvents IDebugApplicationNodeEvents; + +#endif /* __IDebugApplicationNodeEvents_FWD_DEFINED__ */ + + +#ifndef __AsyncIDebugApplicationNodeEvents_FWD_DEFINED__ +#define __AsyncIDebugApplicationNodeEvents_FWD_DEFINED__ +typedef interface AsyncIDebugApplicationNodeEvents AsyncIDebugApplicationNodeEvents; + +#endif /* __AsyncIDebugApplicationNodeEvents_FWD_DEFINED__ */ + + +#ifndef __IDebugThreadCall32_FWD_DEFINED__ +#define __IDebugThreadCall32_FWD_DEFINED__ +typedef interface IDebugThreadCall32 IDebugThreadCall32; + +#endif /* __IDebugThreadCall32_FWD_DEFINED__ */ + + +#ifndef __IDebugThreadCall64_FWD_DEFINED__ +#define __IDebugThreadCall64_FWD_DEFINED__ +typedef interface IDebugThreadCall64 IDebugThreadCall64; + +#endif /* __IDebugThreadCall64_FWD_DEFINED__ */ + + +#ifndef __IRemoteDebugApplicationThread_FWD_DEFINED__ +#define __IRemoteDebugApplicationThread_FWD_DEFINED__ +typedef interface IRemoteDebugApplicationThread IRemoteDebugApplicationThread; + +#endif /* __IRemoteDebugApplicationThread_FWD_DEFINED__ */ + + +#ifndef __IDebugApplicationThread_FWD_DEFINED__ +#define __IDebugApplicationThread_FWD_DEFINED__ +typedef interface IDebugApplicationThread IDebugApplicationThread; + +#endif /* __IDebugApplicationThread_FWD_DEFINED__ */ + + +#ifndef __IDebugApplicationThread64_FWD_DEFINED__ +#define __IDebugApplicationThread64_FWD_DEFINED__ +typedef interface IDebugApplicationThread64 IDebugApplicationThread64; + +#endif /* __IDebugApplicationThread64_FWD_DEFINED__ */ + + +#ifndef __IDebugCookie_FWD_DEFINED__ +#define __IDebugCookie_FWD_DEFINED__ +typedef interface IDebugCookie IDebugCookie; + +#endif /* __IDebugCookie_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugApplicationNodes_FWD_DEFINED__ +#define __IEnumDebugApplicationNodes_FWD_DEFINED__ +typedef interface IEnumDebugApplicationNodes IEnumDebugApplicationNodes; + +#endif /* __IEnumDebugApplicationNodes_FWD_DEFINED__ */ + + +#ifndef __IEnumRemoteDebugApplications_FWD_DEFINED__ +#define __IEnumRemoteDebugApplications_FWD_DEFINED__ +typedef interface IEnumRemoteDebugApplications IEnumRemoteDebugApplications; + +#endif /* __IEnumRemoteDebugApplications_FWD_DEFINED__ */ + + +#ifndef __IEnumRemoteDebugApplicationThreads_FWD_DEFINED__ +#define __IEnumRemoteDebugApplicationThreads_FWD_DEFINED__ +typedef interface IEnumRemoteDebugApplicationThreads IEnumRemoteDebugApplicationThreads; + +#endif /* __IEnumRemoteDebugApplicationThreads_FWD_DEFINED__ */ + + +#ifndef __IDebugFormatter_FWD_DEFINED__ +#define __IDebugFormatter_FWD_DEFINED__ +typedef interface IDebugFormatter IDebugFormatter; + +#endif /* __IDebugFormatter_FWD_DEFINED__ */ + + +#ifndef __ISimpleConnectionPoint_FWD_DEFINED__ +#define __ISimpleConnectionPoint_FWD_DEFINED__ +typedef interface ISimpleConnectionPoint ISimpleConnectionPoint; + +#endif /* __ISimpleConnectionPoint_FWD_DEFINED__ */ + + +#ifndef __IDebugHelper_FWD_DEFINED__ +#define __IDebugHelper_FWD_DEFINED__ +typedef interface IDebugHelper IDebugHelper; + +#endif /* __IDebugHelper_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugExpressionContexts_FWD_DEFINED__ +#define __IEnumDebugExpressionContexts_FWD_DEFINED__ +typedef interface IEnumDebugExpressionContexts IEnumDebugExpressionContexts; + +#endif /* __IEnumDebugExpressionContexts_FWD_DEFINED__ */ + + +#ifndef __IProvideExpressionContexts_FWD_DEFINED__ +#define __IProvideExpressionContexts_FWD_DEFINED__ +typedef interface IProvideExpressionContexts IProvideExpressionContexts; + +#endif /* __IProvideExpressionContexts_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptDebug32_FWD_DEFINED__ +#define __IActiveScriptDebug32_FWD_DEFINED__ +typedef interface IActiveScriptDebug32 IActiveScriptDebug32; + +#endif /* __IActiveScriptDebug32_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptDebug64_FWD_DEFINED__ +#define __IActiveScriptDebug64_FWD_DEFINED__ +typedef interface IActiveScriptDebug64 IActiveScriptDebug64; + +#endif /* __IActiveScriptDebug64_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptErrorDebug_FWD_DEFINED__ +#define __IActiveScriptErrorDebug_FWD_DEFINED__ +typedef interface IActiveScriptErrorDebug IActiveScriptErrorDebug; + +#endif /* __IActiveScriptErrorDebug_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSiteDebug32_FWD_DEFINED__ +#define __IActiveScriptSiteDebug32_FWD_DEFINED__ +typedef interface IActiveScriptSiteDebug32 IActiveScriptSiteDebug32; + +#endif /* __IActiveScriptSiteDebug32_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSiteDebug64_FWD_DEFINED__ +#define __IActiveScriptSiteDebug64_FWD_DEFINED__ +typedef interface IActiveScriptSiteDebug64 IActiveScriptSiteDebug64; + +#endif /* __IActiveScriptSiteDebug64_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptSiteDebugEx_FWD_DEFINED__ +#define __IActiveScriptSiteDebugEx_FWD_DEFINED__ +typedef interface IActiveScriptSiteDebugEx IActiveScriptSiteDebugEx; + +#endif /* __IActiveScriptSiteDebugEx_FWD_DEFINED__ */ + + +#ifndef __IApplicationDebugger_FWD_DEFINED__ +#define __IApplicationDebugger_FWD_DEFINED__ +typedef interface IApplicationDebugger IApplicationDebugger; + +#endif /* __IApplicationDebugger_FWD_DEFINED__ */ + + +#ifndef __IApplicationDebuggerUI_FWD_DEFINED__ +#define __IApplicationDebuggerUI_FWD_DEFINED__ +typedef interface IApplicationDebuggerUI IApplicationDebuggerUI; + +#endif /* __IApplicationDebuggerUI_FWD_DEFINED__ */ + + +#ifndef __IRemoteDebugApplication_FWD_DEFINED__ +#define __IRemoteDebugApplication_FWD_DEFINED__ +typedef interface IRemoteDebugApplication IRemoteDebugApplication; + +#endif /* __IRemoteDebugApplication_FWD_DEFINED__ */ + + +#ifndef __IDebugApplication32_FWD_DEFINED__ +#define __IDebugApplication32_FWD_DEFINED__ +typedef interface IDebugApplication32 IDebugApplication32; + +#endif /* __IDebugApplication32_FWD_DEFINED__ */ + + +#ifndef __IDebugApplication64_FWD_DEFINED__ +#define __IDebugApplication64_FWD_DEFINED__ +typedef interface IDebugApplication64 IDebugApplication64; + +#endif /* __IDebugApplication64_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentInfo_FWD_DEFINED__ +#define __IDebugDocumentInfo_FWD_DEFINED__ +typedef interface IDebugDocumentInfo IDebugDocumentInfo; + +#endif /* __IDebugDocumentInfo_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentProvider_FWD_DEFINED__ +#define __IDebugDocumentProvider_FWD_DEFINED__ +typedef interface IDebugDocumentProvider IDebugDocumentProvider; + +#endif /* __IDebugDocumentProvider_FWD_DEFINED__ */ + + +#ifndef __IDebugApplicationNode_FWD_DEFINED__ +#define __IDebugApplicationNode_FWD_DEFINED__ +typedef interface IDebugApplicationNode IDebugApplicationNode; + +#endif /* __IDebugApplicationNode_FWD_DEFINED__ */ + + +#ifndef __IDebugApplicationNodeEvents_FWD_DEFINED__ +#define __IDebugApplicationNodeEvents_FWD_DEFINED__ +typedef interface IDebugApplicationNodeEvents IDebugApplicationNodeEvents; + +#endif /* __IDebugApplicationNodeEvents_FWD_DEFINED__ */ + + +#ifndef __IRemoteDebugApplicationThread_FWD_DEFINED__ +#define __IRemoteDebugApplicationThread_FWD_DEFINED__ +typedef interface IRemoteDebugApplicationThread IRemoteDebugApplicationThread; + +#endif /* __IRemoteDebugApplicationThread_FWD_DEFINED__ */ + + +#ifndef __IDebugApplicationThread_FWD_DEFINED__ +#define __IDebugApplicationThread_FWD_DEFINED__ +typedef interface IDebugApplicationThread IDebugApplicationThread; + +#endif /* __IDebugApplicationThread_FWD_DEFINED__ */ + + +#ifndef __IDebugAsyncOperation_FWD_DEFINED__ +#define __IDebugAsyncOperation_FWD_DEFINED__ +typedef interface IDebugAsyncOperation IDebugAsyncOperation; + +#endif /* __IDebugAsyncOperation_FWD_DEFINED__ */ + + +#ifndef __IDebugAsyncOperationCallBack_FWD_DEFINED__ +#define __IDebugAsyncOperationCallBack_FWD_DEFINED__ +typedef interface IDebugAsyncOperationCallBack IDebugAsyncOperationCallBack; + +#endif /* __IDebugAsyncOperationCallBack_FWD_DEFINED__ */ + + +#ifndef __IDebugCodeContext_FWD_DEFINED__ +#define __IDebugCodeContext_FWD_DEFINED__ +typedef interface IDebugCodeContext IDebugCodeContext; + +#endif /* __IDebugCodeContext_FWD_DEFINED__ */ + + +#ifndef __IDebugCookie_FWD_DEFINED__ +#define __IDebugCookie_FWD_DEFINED__ +typedef interface IDebugCookie IDebugCookie; + +#endif /* __IDebugCookie_FWD_DEFINED__ */ + + +#ifndef __IDebugDocument_FWD_DEFINED__ +#define __IDebugDocument_FWD_DEFINED__ +typedef interface IDebugDocument IDebugDocument; + +#endif /* __IDebugDocument_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentContext_FWD_DEFINED__ +#define __IDebugDocumentContext_FWD_DEFINED__ +typedef interface IDebugDocumentContext IDebugDocumentContext; + +#endif /* __IDebugDocumentContext_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentHelper32_FWD_DEFINED__ +#define __IDebugDocumentHelper32_FWD_DEFINED__ +typedef interface IDebugDocumentHelper32 IDebugDocumentHelper32; + +#endif /* __IDebugDocumentHelper32_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentHelper64_FWD_DEFINED__ +#define __IDebugDocumentHelper64_FWD_DEFINED__ +typedef interface IDebugDocumentHelper64 IDebugDocumentHelper64; + +#endif /* __IDebugDocumentHelper64_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentHost_FWD_DEFINED__ +#define __IDebugDocumentHost_FWD_DEFINED__ +typedef interface IDebugDocumentHost IDebugDocumentHost; + +#endif /* __IDebugDocumentHost_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentText_FWD_DEFINED__ +#define __IDebugDocumentText_FWD_DEFINED__ +typedef interface IDebugDocumentText IDebugDocumentText; + +#endif /* __IDebugDocumentText_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentTextAuthor_FWD_DEFINED__ +#define __IDebugDocumentTextAuthor_FWD_DEFINED__ +typedef interface IDebugDocumentTextAuthor IDebugDocumentTextAuthor; + +#endif /* __IDebugDocumentTextAuthor_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentTextEvents_FWD_DEFINED__ +#define __IDebugDocumentTextEvents_FWD_DEFINED__ +typedef interface IDebugDocumentTextEvents IDebugDocumentTextEvents; + +#endif /* __IDebugDocumentTextEvents_FWD_DEFINED__ */ + + +#ifndef __IDebugDocumentTextExternalAuthor_FWD_DEFINED__ +#define __IDebugDocumentTextExternalAuthor_FWD_DEFINED__ +typedef interface IDebugDocumentTextExternalAuthor IDebugDocumentTextExternalAuthor; + +#endif /* __IDebugDocumentTextExternalAuthor_FWD_DEFINED__ */ + + +#ifndef __IDebugExpression_FWD_DEFINED__ +#define __IDebugExpression_FWD_DEFINED__ +typedef interface IDebugExpression IDebugExpression; + +#endif /* __IDebugExpression_FWD_DEFINED__ */ + + +#ifndef __IDebugExpressionCallBack_FWD_DEFINED__ +#define __IDebugExpressionCallBack_FWD_DEFINED__ +typedef interface IDebugExpressionCallBack IDebugExpressionCallBack; + +#endif /* __IDebugExpressionCallBack_FWD_DEFINED__ */ + + +#ifndef __IDebugExpressionContext_FWD_DEFINED__ +#define __IDebugExpressionContext_FWD_DEFINED__ +typedef interface IDebugExpressionContext IDebugExpressionContext; + +#endif /* __IDebugExpressionContext_FWD_DEFINED__ */ + + +#ifndef __IDebugFormatter_FWD_DEFINED__ +#define __IDebugFormatter_FWD_DEFINED__ +typedef interface IDebugFormatter IDebugFormatter; + +#endif /* __IDebugFormatter_FWD_DEFINED__ */ + + +#ifndef __IDebugHelper_FWD_DEFINED__ +#define __IDebugHelper_FWD_DEFINED__ +typedef interface IDebugHelper IDebugHelper; + +#endif /* __IDebugHelper_FWD_DEFINED__ */ + + +#ifndef __IDebugSessionProvider_FWD_DEFINED__ +#define __IDebugSessionProvider_FWD_DEFINED__ +typedef interface IDebugSessionProvider IDebugSessionProvider; + +#endif /* __IDebugSessionProvider_FWD_DEFINED__ */ + + +#ifndef __IDebugStackFrame_FWD_DEFINED__ +#define __IDebugStackFrame_FWD_DEFINED__ +typedef interface IDebugStackFrame IDebugStackFrame; + +#endif /* __IDebugStackFrame_FWD_DEFINED__ */ + + +#ifndef __IDebugStackFrameSniffer_FWD_DEFINED__ +#define __IDebugStackFrameSniffer_FWD_DEFINED__ +typedef interface IDebugStackFrameSniffer IDebugStackFrameSniffer; + +#endif /* __IDebugStackFrameSniffer_FWD_DEFINED__ */ + + +#ifndef __IDebugStackFrameSnifferEx32_FWD_DEFINED__ +#define __IDebugStackFrameSnifferEx32_FWD_DEFINED__ +typedef interface IDebugStackFrameSnifferEx32 IDebugStackFrameSnifferEx32; + +#endif /* __IDebugStackFrameSnifferEx32_FWD_DEFINED__ */ + + +#ifndef __IDebugStackFrameSnifferEx64_FWD_DEFINED__ +#define __IDebugStackFrameSnifferEx64_FWD_DEFINED__ +typedef interface IDebugStackFrameSnifferEx64 IDebugStackFrameSnifferEx64; + +#endif /* __IDebugStackFrameSnifferEx64_FWD_DEFINED__ */ + + +#ifndef __IDebugSyncOperation_FWD_DEFINED__ +#define __IDebugSyncOperation_FWD_DEFINED__ +typedef interface IDebugSyncOperation IDebugSyncOperation; + +#endif /* __IDebugSyncOperation_FWD_DEFINED__ */ + + +#ifndef __IDebugThreadCall32_FWD_DEFINED__ +#define __IDebugThreadCall32_FWD_DEFINED__ +typedef interface IDebugThreadCall32 IDebugThreadCall32; + +#endif /* __IDebugThreadCall32_FWD_DEFINED__ */ + + +#ifndef __IDebugThreadCall64_FWD_DEFINED__ +#define __IDebugThreadCall64_FWD_DEFINED__ +typedef interface IDebugThreadCall64 IDebugThreadCall64; + +#endif /* __IDebugThreadCall64_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugApplicationNodes_FWD_DEFINED__ +#define __IEnumDebugApplicationNodes_FWD_DEFINED__ +typedef interface IEnumDebugApplicationNodes IEnumDebugApplicationNodes; + +#endif /* __IEnumDebugApplicationNodes_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugCodeContexts_FWD_DEFINED__ +#define __IEnumDebugCodeContexts_FWD_DEFINED__ +typedef interface IEnumDebugCodeContexts IEnumDebugCodeContexts; + +#endif /* __IEnumDebugCodeContexts_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugExpressionContexts_FWD_DEFINED__ +#define __IEnumDebugExpressionContexts_FWD_DEFINED__ +typedef interface IEnumDebugExpressionContexts IEnumDebugExpressionContexts; + +#endif /* __IEnumDebugExpressionContexts_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugStackFrames_FWD_DEFINED__ +#define __IEnumDebugStackFrames_FWD_DEFINED__ +typedef interface IEnumDebugStackFrames IEnumDebugStackFrames; + +#endif /* __IEnumDebugStackFrames_FWD_DEFINED__ */ + + +#ifndef __IEnumDebugStackFrames64_FWD_DEFINED__ +#define __IEnumDebugStackFrames64_FWD_DEFINED__ +typedef interface IEnumDebugStackFrames64 IEnumDebugStackFrames64; + +#endif /* __IEnumDebugStackFrames64_FWD_DEFINED__ */ + + +#ifndef __IEnumRemoteDebugApplications_FWD_DEFINED__ +#define __IEnumRemoteDebugApplications_FWD_DEFINED__ +typedef interface IEnumRemoteDebugApplications IEnumRemoteDebugApplications; + +#endif /* __IEnumRemoteDebugApplications_FWD_DEFINED__ */ + + +#ifndef __IEnumRemoteDebugApplicationThreads_FWD_DEFINED__ +#define __IEnumRemoteDebugApplicationThreads_FWD_DEFINED__ +typedef interface IEnumRemoteDebugApplicationThreads IEnumRemoteDebugApplicationThreads; + +#endif /* __IEnumRemoteDebugApplicationThreads_FWD_DEFINED__ */ + + +#ifndef __IProcessDebugManager32_FWD_DEFINED__ +#define __IProcessDebugManager32_FWD_DEFINED__ +typedef interface IProcessDebugManager32 IProcessDebugManager32; + +#endif /* __IProcessDebugManager32_FWD_DEFINED__ */ + + +#ifndef __IProcessDebugManager64_FWD_DEFINED__ +#define __IProcessDebugManager64_FWD_DEFINED__ +typedef interface IProcessDebugManager64 IProcessDebugManager64; + +#endif /* __IProcessDebugManager64_FWD_DEFINED__ */ + + +#ifndef __IProvideExpressionContexts_FWD_DEFINED__ +#define __IProvideExpressionContexts_FWD_DEFINED__ +typedef interface IProvideExpressionContexts IProvideExpressionContexts; + +#endif /* __IProvideExpressionContexts_FWD_DEFINED__ */ + + +#ifndef __IMachineDebugManager_FWD_DEFINED__ +#define __IMachineDebugManager_FWD_DEFINED__ +typedef interface IMachineDebugManager IMachineDebugManager; + +#endif /* __IMachineDebugManager_FWD_DEFINED__ */ + + +#ifndef __IMachineDebugManagerCookie_FWD_DEFINED__ +#define __IMachineDebugManagerCookie_FWD_DEFINED__ +typedef interface IMachineDebugManagerCookie IMachineDebugManagerCookie; + +#endif /* __IMachineDebugManagerCookie_FWD_DEFINED__ */ + + +#ifndef __IMachineDebugManagerEvents_FWD_DEFINED__ +#define __IMachineDebugManagerEvents_FWD_DEFINED__ +typedef interface IMachineDebugManagerEvents IMachineDebugManagerEvents; + +#endif /* __IMachineDebugManagerEvents_FWD_DEFINED__ */ + + +#ifndef __IRemoteDebugApplicationEvents_FWD_DEFINED__ +#define __IRemoteDebugApplicationEvents_FWD_DEFINED__ +typedef interface IRemoteDebugApplicationEvents IRemoteDebugApplicationEvents; + +#endif /* __IRemoteDebugApplicationEvents_FWD_DEFINED__ */ + + +#ifndef __ISimpleConnectionPoint_FWD_DEFINED__ +#define __ISimpleConnectionPoint_FWD_DEFINED__ +typedef interface ISimpleConnectionPoint ISimpleConnectionPoint; + +#endif /* __ISimpleConnectionPoint_FWD_DEFINED__ */ + + +#ifndef __ProcessDebugManager_FWD_DEFINED__ +#define __ProcessDebugManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ProcessDebugManager ProcessDebugManager; +#else +typedef struct ProcessDebugManager ProcessDebugManager; +#endif /* __cplusplus */ + +#endif /* __ProcessDebugManager_FWD_DEFINED__ */ + + +#ifndef __DebugHelper_FWD_DEFINED__ +#define __DebugHelper_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DebugHelper DebugHelper; +#else +typedef struct DebugHelper DebugHelper; +#endif /* __cplusplus */ + +#endif /* __DebugHelper_FWD_DEFINED__ */ + + +#ifndef __CDebugDocumentHelper_FWD_DEFINED__ +#define __CDebugDocumentHelper_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CDebugDocumentHelper CDebugDocumentHelper; +#else +typedef struct CDebugDocumentHelper CDebugDocumentHelper; +#endif /* __cplusplus */ + +#endif /* __CDebugDocumentHelper_FWD_DEFINED__ */ + + +#ifndef __MachineDebugManager_RETAIL_FWD_DEFINED__ +#define __MachineDebugManager_RETAIL_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MachineDebugManager_RETAIL MachineDebugManager_RETAIL; +#else +typedef struct MachineDebugManager_RETAIL MachineDebugManager_RETAIL; +#endif /* __cplusplus */ + +#endif /* __MachineDebugManager_RETAIL_FWD_DEFINED__ */ + + +#ifndef __MachineDebugManager_DEBUG_FWD_DEFINED__ +#define __MachineDebugManager_DEBUG_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MachineDebugManager_DEBUG MachineDebugManager_DEBUG; +#else +typedef struct MachineDebugManager_DEBUG MachineDebugManager_DEBUG; +#endif /* __cplusplus */ + +#endif /* __MachineDebugManager_DEBUG_FWD_DEFINED__ */ + + +#ifndef __DefaultDebugSessionProvider_FWD_DEFINED__ +#define __DefaultDebugSessionProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DefaultDebugSessionProvider DefaultDebugSessionProvider; +#else +typedef struct DefaultDebugSessionProvider DefaultDebugSessionProvider; +#endif /* __cplusplus */ + +#endif /* __DefaultDebugSessionProvider_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" +#include "activscp.h" +#include "dbgprop.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_activdbg_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// ActivDbg.h +//=--------------------------------------------------------------------------= +// (C) Copyright 2000 Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= +// +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma comment(lib,"uuid.lib") +// +// Declarations for ActiveX Scripting authoring/Debugging. +// + +#ifndef __ActivDbg_h +#define __ActivDbg_h + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +typedef +enum tagBREAKPOINT_STATE + { + BREAKPOINT_DELETED = 0, + BREAKPOINT_DISABLED = 1, + BREAKPOINT_ENABLED = 2 + } BREAKPOINT_STATE; + +typedef DWORD APPBREAKFLAGS; + +#define APPBREAKFLAG_DEBUGGER_BLOCK ( 0x1 ) + +#define APPBREAKFLAG_DEBUGGER_HALT ( 0x2 ) + +#define APPBREAKFLAG_STEP ( 0x10000 ) + +#define APPBREAKFLAG_NESTED ( 0x20000 ) + +#define APPBREAKFLAG_STEPTYPE_SOURCE ( 0 ) + +#define APPBREAKFLAG_STEPTYPE_BYTECODE ( 0x100000 ) + +#define APPBREAKFLAG_STEPTYPE_MACHINE ( 0x200000 ) + +#define APPBREAKFLAG_STEPTYPE_MASK ( 0xf00000 ) + +#define APPBREAKFLAG_IN_BREAKPOINT ( 0x80000000 ) + +typedef +enum tagBREAKREASON + { + BREAKREASON_STEP = 0, + BREAKREASON_BREAKPOINT = ( BREAKREASON_STEP + 1 ) , + BREAKREASON_DEBUGGER_BLOCK = ( BREAKREASON_BREAKPOINT + 1 ) , + BREAKREASON_HOST_INITIATED = ( BREAKREASON_DEBUGGER_BLOCK + 1 ) , + BREAKREASON_LANGUAGE_INITIATED = ( BREAKREASON_HOST_INITIATED + 1 ) , + BREAKREASON_DEBUGGER_HALT = ( BREAKREASON_LANGUAGE_INITIATED + 1 ) , + BREAKREASON_ERROR = ( BREAKREASON_DEBUGGER_HALT + 1 ) , + BREAKREASON_JIT = ( BREAKREASON_ERROR + 1 ) , + BREAKREASON_MUTATION_BREAKPOINT = ( BREAKREASON_JIT + 1 ) + } BREAKREASON; + +typedef +enum tagBREAKRESUME_ACTION + { + BREAKRESUMEACTION_ABORT = 0, + BREAKRESUMEACTION_CONTINUE = ( BREAKRESUMEACTION_ABORT + 1 ) , + BREAKRESUMEACTION_STEP_INTO = ( BREAKRESUMEACTION_CONTINUE + 1 ) , + BREAKRESUMEACTION_STEP_OVER = ( BREAKRESUMEACTION_STEP_INTO + 1 ) , + BREAKRESUMEACTION_STEP_OUT = ( BREAKRESUMEACTION_STEP_OVER + 1 ) , + BREAKRESUMEACTION_IGNORE = ( BREAKRESUMEACTION_STEP_OUT + 1 ) , + BREAKRESUMEACTION_STEP_DOCUMENT = ( BREAKRESUMEACTION_IGNORE + 1 ) + } BREAKRESUMEACTION; + +typedef +enum tagERRORRESUMEACTION + { + ERRORRESUMEACTION_ReexecuteErrorStatement = 0, + ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller = ( ERRORRESUMEACTION_ReexecuteErrorStatement + 1 ) , + ERRORRESUMEACTION_SkipErrorStatement = ( ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller + 1 ) + } ERRORRESUMEACTION; + +typedef +enum tagDOCUMENTNAMETYPE + { + DOCUMENTNAMETYPE_APPNODE = 0, + DOCUMENTNAMETYPE_TITLE = ( DOCUMENTNAMETYPE_APPNODE + 1 ) , + DOCUMENTNAMETYPE_FILE_TAIL = ( DOCUMENTNAMETYPE_TITLE + 1 ) , + DOCUMENTNAMETYPE_URL = ( DOCUMENTNAMETYPE_FILE_TAIL + 1 ) , + DOCUMENTNAMETYPE_UNIQUE_TITLE = ( DOCUMENTNAMETYPE_URL + 1 ) , + DOCUMENTNAMETYPE_SOURCE_MAP_URL = ( DOCUMENTNAMETYPE_UNIQUE_TITLE + 1 ) + } DOCUMENTNAMETYPE; + +typedef WORD SOURCE_TEXT_ATTR; + +#define SOURCETEXT_ATTR_KEYWORD ( 0x1 ) + +#define SOURCETEXT_ATTR_COMMENT ( 0x2 ) + +#define SOURCETEXT_ATTR_NONSOURCE ( 0x4 ) + +#define SOURCETEXT_ATTR_OPERATOR ( 0x8 ) + +#define SOURCETEXT_ATTR_NUMBER ( 0x10 ) + +#define SOURCETEXT_ATTR_STRING ( 0x20 ) + +#define SOURCETEXT_ATTR_FUNCTION_START ( 0x40 ) + +typedef DWORD TEXT_DOC_ATTR; + +#define TEXT_DOC_ATTR_READONLY ( 0x1 ) + +#define TEXT_DOC_ATTR_TYPE_PRIMARY ( 0x2 ) + +#define TEXT_DOC_ATTR_TYPE_WORKER ( 0x4 ) + +#define TEXT_DOC_ATTR_TYPE_SCRIPT ( 0x8 ) + +#define DEBUG_TEXT_ISEXPRESSION ( 0x1 ) + +#define DEBUG_TEXT_RETURNVALUE ( 0x2 ) + +#define DEBUG_TEXT_NOSIDEEFFECTS ( 0x4 ) + +#define DEBUG_TEXT_ALLOWBREAKPOINTS ( 0x8 ) + +#define DEBUG_TEXT_ALLOWERRORREPORT ( 0x10 ) + +#define DEBUG_TEXT_EVALUATETOCODECONTEXT ( 0x20 ) + +#define DEBUG_TEXT_ISNONUSERCODE ( 0x40 ) + +#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS +#ifdef _WIN64 +#define IActiveScriptDebug IActiveScriptDebug64 +#define IID_IActiveScriptDebug IID_IActiveScriptDebug64 +#else +#define IActiveScriptDebug IActiveScriptDebug32 +#define IID_IActiveScriptDebug IID_IActiveScriptDebug32 +#endif +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0000_v0_0_s_ifspec; + +#ifndef __IActiveScriptDebug32_INTERFACE_DEFINED__ +#define __IActiveScriptDebug32_INTERFACE_DEFINED__ + +/* interface IActiveScriptDebug32 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptDebug32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C10-CB0C-11d0-B5C9-00A0244A0E7A") + IActiveScriptDebug32 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetScriptTextAttributes( + /* [size_is][in] */ __RPC__in_ecount_full(uNumCodeChars) LPCOLESTR pstrCode, + /* [in] */ ULONG uNumCodeChars, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(uNumCodeChars) SOURCE_TEXT_ATTR *pattr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptletTextAttributes( + /* [size_is][in] */ __RPC__in_ecount_full(uNumCodeChars) LPCOLESTR pstrCode, + /* [in] */ ULONG uNumCodeChars, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(uNumCodeChars) SOURCE_TEXT_ATTR *pattr) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumCodeContextsOfPosition( + /* [in] */ DWORD dwSourceContext, + /* [in] */ ULONG uCharacterOffset, + /* [in] */ ULONG uNumChars, + /* [out] */ __RPC__deref_out_opt IEnumDebugCodeContexts **ppescc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptDebug32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptDebug32 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptDebug32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptDebug32 * This); + + DECLSPEC_XFGVIRT(IActiveScriptDebug32, GetScriptTextAttributes) + HRESULT ( STDMETHODCALLTYPE *GetScriptTextAttributes )( + __RPC__in IActiveScriptDebug32 * This, + /* [size_is][in] */ __RPC__in_ecount_full(uNumCodeChars) LPCOLESTR pstrCode, + /* [in] */ ULONG uNumCodeChars, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(uNumCodeChars) SOURCE_TEXT_ATTR *pattr); + + DECLSPEC_XFGVIRT(IActiveScriptDebug32, GetScriptletTextAttributes) + HRESULT ( STDMETHODCALLTYPE *GetScriptletTextAttributes )( + __RPC__in IActiveScriptDebug32 * This, + /* [size_is][in] */ __RPC__in_ecount_full(uNumCodeChars) LPCOLESTR pstrCode, + /* [in] */ ULONG uNumCodeChars, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(uNumCodeChars) SOURCE_TEXT_ATTR *pattr); + + DECLSPEC_XFGVIRT(IActiveScriptDebug32, EnumCodeContextsOfPosition) + HRESULT ( STDMETHODCALLTYPE *EnumCodeContextsOfPosition )( + __RPC__in IActiveScriptDebug32 * This, + /* [in] */ DWORD dwSourceContext, + /* [in] */ ULONG uCharacterOffset, + /* [in] */ ULONG uNumChars, + /* [out] */ __RPC__deref_out_opt IEnumDebugCodeContexts **ppescc); + + END_INTERFACE + } IActiveScriptDebug32Vtbl; + + interface IActiveScriptDebug32 + { + CONST_VTBL struct IActiveScriptDebug32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptDebug32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptDebug32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptDebug32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptDebug32_GetScriptTextAttributes(This,pstrCode,uNumCodeChars,pstrDelimiter,dwFlags,pattr) \ + ( (This)->lpVtbl -> GetScriptTextAttributes(This,pstrCode,uNumCodeChars,pstrDelimiter,dwFlags,pattr) ) + +#define IActiveScriptDebug32_GetScriptletTextAttributes(This,pstrCode,uNumCodeChars,pstrDelimiter,dwFlags,pattr) \ + ( (This)->lpVtbl -> GetScriptletTextAttributes(This,pstrCode,uNumCodeChars,pstrDelimiter,dwFlags,pattr) ) + +#define IActiveScriptDebug32_EnumCodeContextsOfPosition(This,dwSourceContext,uCharacterOffset,uNumChars,ppescc) \ + ( (This)->lpVtbl -> EnumCodeContextsOfPosition(This,dwSourceContext,uCharacterOffset,uNumChars,ppescc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptDebug32_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptDebug64_INTERFACE_DEFINED__ +#define __IActiveScriptDebug64_INTERFACE_DEFINED__ + +/* interface IActiveScriptDebug64 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptDebug64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bc437e23-f5b8-47f4-bb79-7d1ce5483b86") + IActiveScriptDebug64 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetScriptTextAttributes( + /* [size_is][in] */ __RPC__in_ecount_full(uNumCodeChars) LPCOLESTR pstrCode, + /* [in] */ ULONG uNumCodeChars, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(uNumCodeChars) SOURCE_TEXT_ATTR *pattr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptletTextAttributes( + /* [size_is][in] */ __RPC__in_ecount_full(uNumCodeChars) LPCOLESTR pstrCode, + /* [in] */ ULONG uNumCodeChars, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(uNumCodeChars) SOURCE_TEXT_ATTR *pattr) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumCodeContextsOfPosition( + /* [in] */ DWORDLONG dwSourceContext, + /* [in] */ ULONG uCharacterOffset, + /* [in] */ ULONG uNumChars, + /* [out] */ __RPC__deref_out_opt IEnumDebugCodeContexts **ppescc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptDebug64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptDebug64 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptDebug64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptDebug64 * This); + + DECLSPEC_XFGVIRT(IActiveScriptDebug64, GetScriptTextAttributes) + HRESULT ( STDMETHODCALLTYPE *GetScriptTextAttributes )( + __RPC__in IActiveScriptDebug64 * This, + /* [size_is][in] */ __RPC__in_ecount_full(uNumCodeChars) LPCOLESTR pstrCode, + /* [in] */ ULONG uNumCodeChars, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(uNumCodeChars) SOURCE_TEXT_ATTR *pattr); + + DECLSPEC_XFGVIRT(IActiveScriptDebug64, GetScriptletTextAttributes) + HRESULT ( STDMETHODCALLTYPE *GetScriptletTextAttributes )( + __RPC__in IActiveScriptDebug64 * This, + /* [size_is][in] */ __RPC__in_ecount_full(uNumCodeChars) LPCOLESTR pstrCode, + /* [in] */ ULONG uNumCodeChars, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(uNumCodeChars) SOURCE_TEXT_ATTR *pattr); + + DECLSPEC_XFGVIRT(IActiveScriptDebug64, EnumCodeContextsOfPosition) + HRESULT ( STDMETHODCALLTYPE *EnumCodeContextsOfPosition )( + __RPC__in IActiveScriptDebug64 * This, + /* [in] */ DWORDLONG dwSourceContext, + /* [in] */ ULONG uCharacterOffset, + /* [in] */ ULONG uNumChars, + /* [out] */ __RPC__deref_out_opt IEnumDebugCodeContexts **ppescc); + + END_INTERFACE + } IActiveScriptDebug64Vtbl; + + interface IActiveScriptDebug64 + { + CONST_VTBL struct IActiveScriptDebug64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptDebug64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptDebug64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptDebug64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptDebug64_GetScriptTextAttributes(This,pstrCode,uNumCodeChars,pstrDelimiter,dwFlags,pattr) \ + ( (This)->lpVtbl -> GetScriptTextAttributes(This,pstrCode,uNumCodeChars,pstrDelimiter,dwFlags,pattr) ) + +#define IActiveScriptDebug64_GetScriptletTextAttributes(This,pstrCode,uNumCodeChars,pstrDelimiter,dwFlags,pattr) \ + ( (This)->lpVtbl -> GetScriptletTextAttributes(This,pstrCode,uNumCodeChars,pstrDelimiter,dwFlags,pattr) ) + +#define IActiveScriptDebug64_EnumCodeContextsOfPosition(This,dwSourceContext,uCharacterOffset,uNumChars,ppescc) \ + ( (This)->lpVtbl -> EnumCodeContextsOfPosition(This,dwSourceContext,uCharacterOffset,uNumChars,ppescc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptDebug64_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0002 */ +/* [local] */ + +#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS +#ifdef _WIN64 +#define IActiveScriptSiteDebug IActiveScriptSiteDebug64 +#define IID_IActiveScriptSiteDebug IID_IActiveScriptSiteDebug64 +#else +#define IActiveScriptSiteDebug IActiveScriptSiteDebug32 +#define IID_IActiveScriptSiteDebug IID_IActiveScriptSiteDebug32 +#endif +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0002_v0_0_s_ifspec; + +#ifndef __IActiveScriptSiteDebug32_INTERFACE_DEFINED__ +#define __IActiveScriptSiteDebug32_INTERFACE_DEFINED__ + +/* interface IActiveScriptSiteDebug32 */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptSiteDebug32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C11-CB0C-11d0-B5C9-00A0244A0E7A") + IActiveScriptSiteDebug32 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDocumentContextFromPosition( + /* [in] */ DWORD dwSourceContext, + /* [in] */ ULONG uCharacterOffset, + /* [in] */ ULONG uNumChars, + /* [out] */ IDebugDocumentContext **ppsc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetApplication( + /* [out] */ IDebugApplication32 **ppda) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRootApplicationNode( + /* [out] */ IDebugApplicationNode **ppdanRoot) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnScriptErrorDebug( + /* [in] */ IActiveScriptErrorDebug *pErrorDebug, + /* [out] */ BOOL *pfEnterDebugger, + /* [out] */ BOOL *pfCallOnScriptErrorWhenContinuing) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptSiteDebug32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IActiveScriptSiteDebug32 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IActiveScriptSiteDebug32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IActiveScriptSiteDebug32 * This); + + DECLSPEC_XFGVIRT(IActiveScriptSiteDebug32, GetDocumentContextFromPosition) + HRESULT ( STDMETHODCALLTYPE *GetDocumentContextFromPosition )( + IActiveScriptSiteDebug32 * This, + /* [in] */ DWORD dwSourceContext, + /* [in] */ ULONG uCharacterOffset, + /* [in] */ ULONG uNumChars, + /* [out] */ IDebugDocumentContext **ppsc); + + DECLSPEC_XFGVIRT(IActiveScriptSiteDebug32, GetApplication) + HRESULT ( STDMETHODCALLTYPE *GetApplication )( + IActiveScriptSiteDebug32 * This, + /* [out] */ IDebugApplication32 **ppda); + + DECLSPEC_XFGVIRT(IActiveScriptSiteDebug32, GetRootApplicationNode) + HRESULT ( STDMETHODCALLTYPE *GetRootApplicationNode )( + IActiveScriptSiteDebug32 * This, + /* [out] */ IDebugApplicationNode **ppdanRoot); + + DECLSPEC_XFGVIRT(IActiveScriptSiteDebug32, OnScriptErrorDebug) + HRESULT ( STDMETHODCALLTYPE *OnScriptErrorDebug )( + IActiveScriptSiteDebug32 * This, + /* [in] */ IActiveScriptErrorDebug *pErrorDebug, + /* [out] */ BOOL *pfEnterDebugger, + /* [out] */ BOOL *pfCallOnScriptErrorWhenContinuing); + + END_INTERFACE + } IActiveScriptSiteDebug32Vtbl; + + interface IActiveScriptSiteDebug32 + { + CONST_VTBL struct IActiveScriptSiteDebug32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptSiteDebug32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptSiteDebug32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptSiteDebug32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptSiteDebug32_GetDocumentContextFromPosition(This,dwSourceContext,uCharacterOffset,uNumChars,ppsc) \ + ( (This)->lpVtbl -> GetDocumentContextFromPosition(This,dwSourceContext,uCharacterOffset,uNumChars,ppsc) ) + +#define IActiveScriptSiteDebug32_GetApplication(This,ppda) \ + ( (This)->lpVtbl -> GetApplication(This,ppda) ) + +#define IActiveScriptSiteDebug32_GetRootApplicationNode(This,ppdanRoot) \ + ( (This)->lpVtbl -> GetRootApplicationNode(This,ppdanRoot) ) + +#define IActiveScriptSiteDebug32_OnScriptErrorDebug(This,pErrorDebug,pfEnterDebugger,pfCallOnScriptErrorWhenContinuing) \ + ( (This)->lpVtbl -> OnScriptErrorDebug(This,pErrorDebug,pfEnterDebugger,pfCallOnScriptErrorWhenContinuing) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptSiteDebug32_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptSiteDebug64_INTERFACE_DEFINED__ +#define __IActiveScriptSiteDebug64_INTERFACE_DEFINED__ + +/* interface IActiveScriptSiteDebug64 */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptSiteDebug64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d6b96b0a-7463-402c-92ac-89984226942f") + IActiveScriptSiteDebug64 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDocumentContextFromPosition( + /* [in] */ DWORDLONG dwSourceContext, + /* [in] */ ULONG uCharacterOffset, + /* [in] */ ULONG uNumChars, + /* [out] */ IDebugDocumentContext **ppsc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetApplication( + /* [out] */ IDebugApplication64 **ppda) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRootApplicationNode( + /* [out] */ IDebugApplicationNode **ppdanRoot) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnScriptErrorDebug( + /* [in] */ IActiveScriptErrorDebug *pErrorDebug, + /* [out] */ BOOL *pfEnterDebugger, + /* [out] */ BOOL *pfCallOnScriptErrorWhenContinuing) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptSiteDebug64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IActiveScriptSiteDebug64 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IActiveScriptSiteDebug64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IActiveScriptSiteDebug64 * This); + + DECLSPEC_XFGVIRT(IActiveScriptSiteDebug64, GetDocumentContextFromPosition) + HRESULT ( STDMETHODCALLTYPE *GetDocumentContextFromPosition )( + IActiveScriptSiteDebug64 * This, + /* [in] */ DWORDLONG dwSourceContext, + /* [in] */ ULONG uCharacterOffset, + /* [in] */ ULONG uNumChars, + /* [out] */ IDebugDocumentContext **ppsc); + + DECLSPEC_XFGVIRT(IActiveScriptSiteDebug64, GetApplication) + HRESULT ( STDMETHODCALLTYPE *GetApplication )( + IActiveScriptSiteDebug64 * This, + /* [out] */ IDebugApplication64 **ppda); + + DECLSPEC_XFGVIRT(IActiveScriptSiteDebug64, GetRootApplicationNode) + HRESULT ( STDMETHODCALLTYPE *GetRootApplicationNode )( + IActiveScriptSiteDebug64 * This, + /* [out] */ IDebugApplicationNode **ppdanRoot); + + DECLSPEC_XFGVIRT(IActiveScriptSiteDebug64, OnScriptErrorDebug) + HRESULT ( STDMETHODCALLTYPE *OnScriptErrorDebug )( + IActiveScriptSiteDebug64 * This, + /* [in] */ IActiveScriptErrorDebug *pErrorDebug, + /* [out] */ BOOL *pfEnterDebugger, + /* [out] */ BOOL *pfCallOnScriptErrorWhenContinuing); + + END_INTERFACE + } IActiveScriptSiteDebug64Vtbl; + + interface IActiveScriptSiteDebug64 + { + CONST_VTBL struct IActiveScriptSiteDebug64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptSiteDebug64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptSiteDebug64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptSiteDebug64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptSiteDebug64_GetDocumentContextFromPosition(This,dwSourceContext,uCharacterOffset,uNumChars,ppsc) \ + ( (This)->lpVtbl -> GetDocumentContextFromPosition(This,dwSourceContext,uCharacterOffset,uNumChars,ppsc) ) + +#define IActiveScriptSiteDebug64_GetApplication(This,ppda) \ + ( (This)->lpVtbl -> GetApplication(This,ppda) ) + +#define IActiveScriptSiteDebug64_GetRootApplicationNode(This,ppdanRoot) \ + ( (This)->lpVtbl -> GetRootApplicationNode(This,ppdanRoot) ) + +#define IActiveScriptSiteDebug64_OnScriptErrorDebug(This,pErrorDebug,pfEnterDebugger,pfCallOnScriptErrorWhenContinuing) \ + ( (This)->lpVtbl -> OnScriptErrorDebug(This,pErrorDebug,pfEnterDebugger,pfCallOnScriptErrorWhenContinuing) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptSiteDebug64_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptSiteDebugEx_INTERFACE_DEFINED__ +#define __IActiveScriptSiteDebugEx_INTERFACE_DEFINED__ + +/* interface IActiveScriptSiteDebugEx */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptSiteDebugEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BB722CCB-6AD2-41c6-B780-AF9C03EE69F5") + IActiveScriptSiteDebugEx : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnCanNotJITScriptErrorDebug( + /* [in] */ IActiveScriptErrorDebug *pErrorDebug, + /* [out] */ BOOL *pfCallOnScriptErrorWhenContinuing) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptSiteDebugExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IActiveScriptSiteDebugEx * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IActiveScriptSiteDebugEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IActiveScriptSiteDebugEx * This); + + DECLSPEC_XFGVIRT(IActiveScriptSiteDebugEx, OnCanNotJITScriptErrorDebug) + HRESULT ( STDMETHODCALLTYPE *OnCanNotJITScriptErrorDebug )( + IActiveScriptSiteDebugEx * This, + /* [in] */ IActiveScriptErrorDebug *pErrorDebug, + /* [out] */ BOOL *pfCallOnScriptErrorWhenContinuing); + + END_INTERFACE + } IActiveScriptSiteDebugExVtbl; + + interface IActiveScriptSiteDebugEx + { + CONST_VTBL struct IActiveScriptSiteDebugExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptSiteDebugEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptSiteDebugEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptSiteDebugEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptSiteDebugEx_OnCanNotJITScriptErrorDebug(This,pErrorDebug,pfCallOnScriptErrorWhenContinuing) \ + ( (This)->lpVtbl -> OnCanNotJITScriptErrorDebug(This,pErrorDebug,pfCallOnScriptErrorWhenContinuing) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptSiteDebugEx_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptErrorDebug_INTERFACE_DEFINED__ +#define __IActiveScriptErrorDebug_INTERFACE_DEFINED__ + +/* interface IActiveScriptErrorDebug */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptErrorDebug; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C12-CB0C-11d0-B5C9-00A0244A0E7A") + IActiveScriptErrorDebug : public IActiveScriptError + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDocumentContext( + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppssc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStackFrame( + /* [out] */ __RPC__deref_out_opt IDebugStackFrame **ppdsf) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptErrorDebugVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptErrorDebug * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptErrorDebug * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptErrorDebug * This); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetExceptionInfo) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetExceptionInfo )( + IActiveScriptErrorDebug * This, + /* [out] */ EXCEPINFO *pexcepinfo); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetSourcePosition) + HRESULT ( STDMETHODCALLTYPE *GetSourcePosition )( + __RPC__in IActiveScriptErrorDebug * This, + /* [out] */ __RPC__out DWORD *pdwSourceContext, + /* [out] */ __RPC__out ULONG *pulLineNumber, + /* [out] */ __RPC__out LONG *plCharacterPosition); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetSourceLineText) + HRESULT ( STDMETHODCALLTYPE *GetSourceLineText )( + __RPC__in IActiveScriptErrorDebug * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSourceLine); + + DECLSPEC_XFGVIRT(IActiveScriptErrorDebug, GetDocumentContext) + HRESULT ( STDMETHODCALLTYPE *GetDocumentContext )( + __RPC__in IActiveScriptErrorDebug * This, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppssc); + + DECLSPEC_XFGVIRT(IActiveScriptErrorDebug, GetStackFrame) + HRESULT ( STDMETHODCALLTYPE *GetStackFrame )( + __RPC__in IActiveScriptErrorDebug * This, + /* [out] */ __RPC__deref_out_opt IDebugStackFrame **ppdsf); + + END_INTERFACE + } IActiveScriptErrorDebugVtbl; + + interface IActiveScriptErrorDebug + { + CONST_VTBL struct IActiveScriptErrorDebugVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptErrorDebug_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptErrorDebug_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptErrorDebug_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptErrorDebug_GetExceptionInfo(This,pexcepinfo) \ + ( (This)->lpVtbl -> GetExceptionInfo(This,pexcepinfo) ) + +#define IActiveScriptErrorDebug_GetSourcePosition(This,pdwSourceContext,pulLineNumber,plCharacterPosition) \ + ( (This)->lpVtbl -> GetSourcePosition(This,pdwSourceContext,pulLineNumber,plCharacterPosition) ) + +#define IActiveScriptErrorDebug_GetSourceLineText(This,pbstrSourceLine) \ + ( (This)->lpVtbl -> GetSourceLineText(This,pbstrSourceLine) ) + + +#define IActiveScriptErrorDebug_GetDocumentContext(This,ppssc) \ + ( (This)->lpVtbl -> GetDocumentContext(This,ppssc) ) + +#define IActiveScriptErrorDebug_GetStackFrame(This,ppdsf) \ + ( (This)->lpVtbl -> GetStackFrame(This,ppdsf) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptErrorDebug_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugCodeContext_INTERFACE_DEFINED__ +#define __IDebugCodeContext_INTERFACE_DEFINED__ + +/* interface IDebugCodeContext */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugCodeContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C13-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugCodeContext : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDocumentContext( + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppsc) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakPoint( + /* [in] */ BREAKPOINT_STATE bps) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugCodeContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugCodeContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugCodeContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugCodeContext * This); + + DECLSPEC_XFGVIRT(IDebugCodeContext, GetDocumentContext) + HRESULT ( STDMETHODCALLTYPE *GetDocumentContext )( + __RPC__in IDebugCodeContext * This, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppsc); + + DECLSPEC_XFGVIRT(IDebugCodeContext, SetBreakPoint) + HRESULT ( STDMETHODCALLTYPE *SetBreakPoint )( + __RPC__in IDebugCodeContext * This, + /* [in] */ BREAKPOINT_STATE bps); + + END_INTERFACE + } IDebugCodeContextVtbl; + + interface IDebugCodeContext + { + CONST_VTBL struct IDebugCodeContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugCodeContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugCodeContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugCodeContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugCodeContext_GetDocumentContext(This,ppsc) \ + ( (This)->lpVtbl -> GetDocumentContext(This,ppsc) ) + +#define IDebugCodeContext_SetBreakPoint(This,bps) \ + ( (This)->lpVtbl -> SetBreakPoint(This,bps) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugCodeContext_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugExpression_INTERFACE_DEFINED__ +#define __IDebugExpression_INTERFACE_DEFINED__ + +/* interface IDebugExpression */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugExpression; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C14-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugExpression : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Start( + /* [in] */ __RPC__in_opt IDebugExpressionCallBack *pdecb) = 0; + + virtual HRESULT STDMETHODCALLTYPE Abort( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryIsComplete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetResultAsString( + /* [out] */ __RPC__out HRESULT *phrResult, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetResultAsDebugProperty( + /* [out] */ __RPC__out HRESULT *phrResult, + /* [out] */ __RPC__deref_out_opt IDebugProperty **ppdp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugExpressionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugExpression * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugExpression * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugExpression * This); + + DECLSPEC_XFGVIRT(IDebugExpression, Start) + HRESULT ( STDMETHODCALLTYPE *Start )( + __RPC__in IDebugExpression * This, + /* [in] */ __RPC__in_opt IDebugExpressionCallBack *pdecb); + + DECLSPEC_XFGVIRT(IDebugExpression, Abort) + HRESULT ( STDMETHODCALLTYPE *Abort )( + __RPC__in IDebugExpression * This); + + DECLSPEC_XFGVIRT(IDebugExpression, QueryIsComplete) + HRESULT ( STDMETHODCALLTYPE *QueryIsComplete )( + __RPC__in IDebugExpression * This); + + DECLSPEC_XFGVIRT(IDebugExpression, GetResultAsString) + HRESULT ( STDMETHODCALLTYPE *GetResultAsString )( + __RPC__in IDebugExpression * This, + /* [out] */ __RPC__out HRESULT *phrResult, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrResult); + + DECLSPEC_XFGVIRT(IDebugExpression, GetResultAsDebugProperty) + HRESULT ( STDMETHODCALLTYPE *GetResultAsDebugProperty )( + __RPC__in IDebugExpression * This, + /* [out] */ __RPC__out HRESULT *phrResult, + /* [out] */ __RPC__deref_out_opt IDebugProperty **ppdp); + + END_INTERFACE + } IDebugExpressionVtbl; + + interface IDebugExpression + { + CONST_VTBL struct IDebugExpressionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugExpression_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugExpression_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugExpression_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugExpression_Start(This,pdecb) \ + ( (This)->lpVtbl -> Start(This,pdecb) ) + +#define IDebugExpression_Abort(This) \ + ( (This)->lpVtbl -> Abort(This) ) + +#define IDebugExpression_QueryIsComplete(This) \ + ( (This)->lpVtbl -> QueryIsComplete(This) ) + +#define IDebugExpression_GetResultAsString(This,phrResult,pbstrResult) \ + ( (This)->lpVtbl -> GetResultAsString(This,phrResult,pbstrResult) ) + +#define IDebugExpression_GetResultAsDebugProperty(This,phrResult,ppdp) \ + ( (This)->lpVtbl -> GetResultAsDebugProperty(This,phrResult,ppdp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugExpression_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugExpressionContext_INTERFACE_DEFINED__ +#define __IDebugExpressionContext_INTERFACE_DEFINED__ + +/* interface IDebugExpressionContext */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugExpressionContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C15-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugExpressionContext : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ParseLanguageText( + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ UINT nRadix, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDebugExpression **ppe) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageInfo( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLanguageName, + /* [out] */ __RPC__out GUID *pLanguageID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugExpressionContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugExpressionContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugExpressionContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugExpressionContext * This); + + DECLSPEC_XFGVIRT(IDebugExpressionContext, ParseLanguageText) + HRESULT ( STDMETHODCALLTYPE *ParseLanguageText )( + __RPC__in IDebugExpressionContext * This, + /* [in] */ __RPC__in LPCOLESTR pstrCode, + /* [in] */ UINT nRadix, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IDebugExpression **ppe); + + DECLSPEC_XFGVIRT(IDebugExpressionContext, GetLanguageInfo) + HRESULT ( STDMETHODCALLTYPE *GetLanguageInfo )( + __RPC__in IDebugExpressionContext * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLanguageName, + /* [out] */ __RPC__out GUID *pLanguageID); + + END_INTERFACE + } IDebugExpressionContextVtbl; + + interface IDebugExpressionContext + { + CONST_VTBL struct IDebugExpressionContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugExpressionContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugExpressionContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugExpressionContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugExpressionContext_ParseLanguageText(This,pstrCode,nRadix,pstrDelimiter,dwFlags,ppe) \ + ( (This)->lpVtbl -> ParseLanguageText(This,pstrCode,nRadix,pstrDelimiter,dwFlags,ppe) ) + +#define IDebugExpressionContext_GetLanguageInfo(This,pbstrLanguageName,pLanguageID) \ + ( (This)->lpVtbl -> GetLanguageInfo(This,pbstrLanguageName,pLanguageID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugExpressionContext_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugExpressionCallBack_INTERFACE_DEFINED__ +#define __IDebugExpressionCallBack_INTERFACE_DEFINED__ + +/* interface IDebugExpressionCallBack */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugExpressionCallBack; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C16-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugExpressionCallBack : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE onComplete( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugExpressionCallBackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugExpressionCallBack * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugExpressionCallBack * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugExpressionCallBack * This); + + DECLSPEC_XFGVIRT(IDebugExpressionCallBack, onComplete) + HRESULT ( STDMETHODCALLTYPE *onComplete )( + __RPC__in IDebugExpressionCallBack * This); + + END_INTERFACE + } IDebugExpressionCallBackVtbl; + + interface IDebugExpressionCallBack + { + CONST_VTBL struct IDebugExpressionCallBackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugExpressionCallBack_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugExpressionCallBack_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugExpressionCallBack_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugExpressionCallBack_onComplete(This) \ + ( (This)->lpVtbl -> onComplete(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugExpressionCallBack_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugStackFrame_INTERFACE_DEFINED__ +#define __IDebugStackFrame_INTERFACE_DEFINED__ + +/* interface IDebugStackFrame */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugStackFrame; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C17-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugStackFrame : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCodeContext( + /* [out] */ __RPC__deref_out_opt IDebugCodeContext **ppcc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescriptionString( + /* [in] */ BOOL fLong, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageString( + /* [in] */ BOOL fLong, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLanguage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetThread( + /* [out] */ __RPC__deref_out_opt IDebugApplicationThread **ppat) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDebugProperty( + /* [out] */ __RPC__deref_out_opt IDebugProperty **ppDebugProp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugStackFrameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugStackFrame * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugStackFrame * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugStackFrame * This); + + DECLSPEC_XFGVIRT(IDebugStackFrame, GetCodeContext) + HRESULT ( STDMETHODCALLTYPE *GetCodeContext )( + __RPC__in IDebugStackFrame * This, + /* [out] */ __RPC__deref_out_opt IDebugCodeContext **ppcc); + + DECLSPEC_XFGVIRT(IDebugStackFrame, GetDescriptionString) + HRESULT ( STDMETHODCALLTYPE *GetDescriptionString )( + __RPC__in IDebugStackFrame * This, + /* [in] */ BOOL fLong, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IDebugStackFrame, GetLanguageString) + HRESULT ( STDMETHODCALLTYPE *GetLanguageString )( + __RPC__in IDebugStackFrame * This, + /* [in] */ BOOL fLong, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLanguage); + + DECLSPEC_XFGVIRT(IDebugStackFrame, GetThread) + HRESULT ( STDMETHODCALLTYPE *GetThread )( + __RPC__in IDebugStackFrame * This, + /* [out] */ __RPC__deref_out_opt IDebugApplicationThread **ppat); + + DECLSPEC_XFGVIRT(IDebugStackFrame, GetDebugProperty) + HRESULT ( STDMETHODCALLTYPE *GetDebugProperty )( + __RPC__in IDebugStackFrame * This, + /* [out] */ __RPC__deref_out_opt IDebugProperty **ppDebugProp); + + END_INTERFACE + } IDebugStackFrameVtbl; + + interface IDebugStackFrame + { + CONST_VTBL struct IDebugStackFrameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugStackFrame_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugStackFrame_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugStackFrame_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugStackFrame_GetCodeContext(This,ppcc) \ + ( (This)->lpVtbl -> GetCodeContext(This,ppcc) ) + +#define IDebugStackFrame_GetDescriptionString(This,fLong,pbstrDescription) \ + ( (This)->lpVtbl -> GetDescriptionString(This,fLong,pbstrDescription) ) + +#define IDebugStackFrame_GetLanguageString(This,fLong,pbstrLanguage) \ + ( (This)->lpVtbl -> GetLanguageString(This,fLong,pbstrLanguage) ) + +#define IDebugStackFrame_GetThread(This,ppat) \ + ( (This)->lpVtbl -> GetThread(This,ppat) ) + +#define IDebugStackFrame_GetDebugProperty(This,ppDebugProp) \ + ( (This)->lpVtbl -> GetDebugProperty(This,ppDebugProp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugStackFrame_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugStackFrameSniffer_INTERFACE_DEFINED__ +#define __IDebugStackFrameSniffer_INTERFACE_DEFINED__ + +/* interface IDebugStackFrameSniffer */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugStackFrameSniffer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C18-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugStackFrameSniffer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumStackFrames( + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugStackFrameSnifferVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugStackFrameSniffer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugStackFrameSniffer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugStackFrameSniffer * This); + + DECLSPEC_XFGVIRT(IDebugStackFrameSniffer, EnumStackFrames) + HRESULT ( STDMETHODCALLTYPE *EnumStackFrames )( + __RPC__in IDebugStackFrameSniffer * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf); + + END_INTERFACE + } IDebugStackFrameSnifferVtbl; + + interface IDebugStackFrameSniffer + { + CONST_VTBL struct IDebugStackFrameSnifferVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugStackFrameSniffer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugStackFrameSniffer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugStackFrameSniffer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugStackFrameSniffer_EnumStackFrames(This,ppedsf) \ + ( (This)->lpVtbl -> EnumStackFrames(This,ppedsf) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugStackFrameSniffer_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0012 */ +/* [local] */ + +#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS +#ifdef _WIN64 +#define IDebugStackFrameSnifferEx IDebugStackFrameSnifferEx64 +#define IID_IDebugStackFrameSnifferEx IID_IDebugStackFrameSnifferEx64 +#define EnumStackFramesEx EnumStackFramesEx64 +#else +#define IDebugStackFrameSnifferEx IDebugStackFrameSnifferEx32 +#define IID_IDebugStackFrameSnifferEx IID_IDebugStackFrameSnifferEx32 +#define EnumStackFramesEx EnumStackFramesEx32 +#endif +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0012_v0_0_s_ifspec; + +#ifndef __IDebugStackFrameSnifferEx32_INTERFACE_DEFINED__ +#define __IDebugStackFrameSnifferEx32_INTERFACE_DEFINED__ + +/* interface IDebugStackFrameSnifferEx32 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugStackFrameSnifferEx32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C19-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugStackFrameSnifferEx32 : public IDebugStackFrameSniffer + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumStackFramesEx32( + /* [in] */ DWORD dwSpMin, + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugStackFrameSnifferEx32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugStackFrameSnifferEx32 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugStackFrameSnifferEx32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugStackFrameSnifferEx32 * This); + + DECLSPEC_XFGVIRT(IDebugStackFrameSniffer, EnumStackFrames) + HRESULT ( STDMETHODCALLTYPE *EnumStackFrames )( + __RPC__in IDebugStackFrameSnifferEx32 * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf); + + DECLSPEC_XFGVIRT(IDebugStackFrameSnifferEx32, EnumStackFramesEx32) + HRESULT ( STDMETHODCALLTYPE *EnumStackFramesEx32 )( + __RPC__in IDebugStackFrameSnifferEx32 * This, + /* [in] */ DWORD dwSpMin, + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf); + + END_INTERFACE + } IDebugStackFrameSnifferEx32Vtbl; + + interface IDebugStackFrameSnifferEx32 + { + CONST_VTBL struct IDebugStackFrameSnifferEx32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugStackFrameSnifferEx32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugStackFrameSnifferEx32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugStackFrameSnifferEx32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugStackFrameSnifferEx32_EnumStackFrames(This,ppedsf) \ + ( (This)->lpVtbl -> EnumStackFrames(This,ppedsf) ) + + +#define IDebugStackFrameSnifferEx32_EnumStackFramesEx32(This,dwSpMin,ppedsf) \ + ( (This)->lpVtbl -> EnumStackFramesEx32(This,dwSpMin,ppedsf) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugStackFrameSnifferEx32_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugStackFrameSnifferEx64_INTERFACE_DEFINED__ +#define __IDebugStackFrameSnifferEx64_INTERFACE_DEFINED__ + +/* interface IDebugStackFrameSnifferEx64 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugStackFrameSnifferEx64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8cd12af4-49c1-4d52-8d8a-c146f47581aa") + IDebugStackFrameSnifferEx64 : public IDebugStackFrameSniffer + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumStackFramesEx64( + /* [in] */ DWORDLONG dwSpMin, + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames64 **ppedsf) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugStackFrameSnifferEx64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugStackFrameSnifferEx64 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugStackFrameSnifferEx64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugStackFrameSnifferEx64 * This); + + DECLSPEC_XFGVIRT(IDebugStackFrameSniffer, EnumStackFrames) + HRESULT ( STDMETHODCALLTYPE *EnumStackFrames )( + __RPC__in IDebugStackFrameSnifferEx64 * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf); + + DECLSPEC_XFGVIRT(IDebugStackFrameSnifferEx64, EnumStackFramesEx64) + HRESULT ( STDMETHODCALLTYPE *EnumStackFramesEx64 )( + __RPC__in IDebugStackFrameSnifferEx64 * This, + /* [in] */ DWORDLONG dwSpMin, + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames64 **ppedsf); + + END_INTERFACE + } IDebugStackFrameSnifferEx64Vtbl; + + interface IDebugStackFrameSnifferEx64 + { + CONST_VTBL struct IDebugStackFrameSnifferEx64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugStackFrameSnifferEx64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugStackFrameSnifferEx64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugStackFrameSnifferEx64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugStackFrameSnifferEx64_EnumStackFrames(This,ppedsf) \ + ( (This)->lpVtbl -> EnumStackFrames(This,ppedsf) ) + + +#define IDebugStackFrameSnifferEx64_EnumStackFramesEx64(This,dwSpMin,ppedsf) \ + ( (This)->lpVtbl -> EnumStackFramesEx64(This,dwSpMin,ppedsf) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugStackFrameSnifferEx64_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugSyncOperation_INTERFACE_DEFINED__ +#define __IDebugSyncOperation_INTERFACE_DEFINED__ + +/* interface IDebugSyncOperation */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugSyncOperation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C1a-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugSyncOperation : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTargetThread( + /* [out] */ IDebugApplicationThread **ppatTarget) = 0; + + virtual HRESULT STDMETHODCALLTYPE Execute( + /* [out] */ IUnknown **ppunkResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE InProgressAbort( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugSyncOperationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugSyncOperation * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugSyncOperation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugSyncOperation * This); + + DECLSPEC_XFGVIRT(IDebugSyncOperation, GetTargetThread) + HRESULT ( STDMETHODCALLTYPE *GetTargetThread )( + IDebugSyncOperation * This, + /* [out] */ IDebugApplicationThread **ppatTarget); + + DECLSPEC_XFGVIRT(IDebugSyncOperation, Execute) + HRESULT ( STDMETHODCALLTYPE *Execute )( + IDebugSyncOperation * This, + /* [out] */ IUnknown **ppunkResult); + + DECLSPEC_XFGVIRT(IDebugSyncOperation, InProgressAbort) + HRESULT ( STDMETHODCALLTYPE *InProgressAbort )( + IDebugSyncOperation * This); + + END_INTERFACE + } IDebugSyncOperationVtbl; + + interface IDebugSyncOperation + { + CONST_VTBL struct IDebugSyncOperationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugSyncOperation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugSyncOperation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugSyncOperation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugSyncOperation_GetTargetThread(This,ppatTarget) \ + ( (This)->lpVtbl -> GetTargetThread(This,ppatTarget) ) + +#define IDebugSyncOperation_Execute(This,ppunkResult) \ + ( (This)->lpVtbl -> Execute(This,ppunkResult) ) + +#define IDebugSyncOperation_InProgressAbort(This) \ + ( (This)->lpVtbl -> InProgressAbort(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugSyncOperation_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugAsyncOperation_INTERFACE_DEFINED__ +#define __IDebugAsyncOperation_INTERFACE_DEFINED__ + +/* interface IDebugAsyncOperation */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugAsyncOperation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C1b-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugAsyncOperation : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSyncDebugOperation( + /* [out] */ IDebugSyncOperation **ppsdo) = 0; + + virtual HRESULT STDMETHODCALLTYPE Start( + IDebugAsyncOperationCallBack *padocb) = 0; + + virtual HRESULT STDMETHODCALLTYPE Abort( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryIsComplete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetResult( + /* [out] */ HRESULT *phrResult, + /* [out] */ IUnknown **ppunkResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugAsyncOperationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugAsyncOperation * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugAsyncOperation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugAsyncOperation * This); + + DECLSPEC_XFGVIRT(IDebugAsyncOperation, GetSyncDebugOperation) + HRESULT ( STDMETHODCALLTYPE *GetSyncDebugOperation )( + IDebugAsyncOperation * This, + /* [out] */ IDebugSyncOperation **ppsdo); + + DECLSPEC_XFGVIRT(IDebugAsyncOperation, Start) + HRESULT ( STDMETHODCALLTYPE *Start )( + IDebugAsyncOperation * This, + IDebugAsyncOperationCallBack *padocb); + + DECLSPEC_XFGVIRT(IDebugAsyncOperation, Abort) + HRESULT ( STDMETHODCALLTYPE *Abort )( + IDebugAsyncOperation * This); + + DECLSPEC_XFGVIRT(IDebugAsyncOperation, QueryIsComplete) + HRESULT ( STDMETHODCALLTYPE *QueryIsComplete )( + IDebugAsyncOperation * This); + + DECLSPEC_XFGVIRT(IDebugAsyncOperation, GetResult) + HRESULT ( STDMETHODCALLTYPE *GetResult )( + IDebugAsyncOperation * This, + /* [out] */ HRESULT *phrResult, + /* [out] */ IUnknown **ppunkResult); + + END_INTERFACE + } IDebugAsyncOperationVtbl; + + interface IDebugAsyncOperation + { + CONST_VTBL struct IDebugAsyncOperationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugAsyncOperation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugAsyncOperation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugAsyncOperation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugAsyncOperation_GetSyncDebugOperation(This,ppsdo) \ + ( (This)->lpVtbl -> GetSyncDebugOperation(This,ppsdo) ) + +#define IDebugAsyncOperation_Start(This,padocb) \ + ( (This)->lpVtbl -> Start(This,padocb) ) + +#define IDebugAsyncOperation_Abort(This) \ + ( (This)->lpVtbl -> Abort(This) ) + +#define IDebugAsyncOperation_QueryIsComplete(This) \ + ( (This)->lpVtbl -> QueryIsComplete(This) ) + +#define IDebugAsyncOperation_GetResult(This,phrResult,ppunkResult) \ + ( (This)->lpVtbl -> GetResult(This,phrResult,ppunkResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugAsyncOperation_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugAsyncOperationCallBack_INTERFACE_DEFINED__ +#define __IDebugAsyncOperationCallBack_INTERFACE_DEFINED__ + +/* interface IDebugAsyncOperationCallBack */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugAsyncOperationCallBack; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C1c-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugAsyncOperationCallBack : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE onComplete( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugAsyncOperationCallBackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugAsyncOperationCallBack * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugAsyncOperationCallBack * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugAsyncOperationCallBack * This); + + DECLSPEC_XFGVIRT(IDebugAsyncOperationCallBack, onComplete) + HRESULT ( STDMETHODCALLTYPE *onComplete )( + IDebugAsyncOperationCallBack * This); + + END_INTERFACE + } IDebugAsyncOperationCallBackVtbl; + + interface IDebugAsyncOperationCallBack + { + CONST_VTBL struct IDebugAsyncOperationCallBackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugAsyncOperationCallBack_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugAsyncOperationCallBack_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugAsyncOperationCallBack_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugAsyncOperationCallBack_onComplete(This) \ + ( (This)->lpVtbl -> onComplete(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugAsyncOperationCallBack_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDebugCodeContexts_INTERFACE_DEFINED__ +#define __IEnumDebugCodeContexts_INTERFACE_DEFINED__ + +/* interface IEnumDebugCodeContexts */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumDebugCodeContexts; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C1d-CB0C-11d0-B5C9-00A0244A0E7A") + IEnumDebugCodeContexts : public IUnknown + { + public: + virtual /* [local] */ HRESULT __stdcall Next( + /* [in] */ ULONG celt, + /* [out] */ IDebugCodeContext **pscc, + /* [out] */ ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDebugCodeContexts **ppescc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDebugCodeContextsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDebugCodeContexts * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDebugCodeContexts * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDebugCodeContexts * This); + + DECLSPEC_XFGVIRT(IEnumDebugCodeContexts, Next) + /* [local] */ HRESULT ( __stdcall *Next )( + IEnumDebugCodeContexts * This, + /* [in] */ ULONG celt, + /* [out] */ IDebugCodeContext **pscc, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumDebugCodeContexts, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDebugCodeContexts * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumDebugCodeContexts, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDebugCodeContexts * This); + + DECLSPEC_XFGVIRT(IEnumDebugCodeContexts, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDebugCodeContexts * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugCodeContexts **ppescc); + + END_INTERFACE + } IEnumDebugCodeContextsVtbl; + + interface IEnumDebugCodeContexts + { + CONST_VTBL struct IEnumDebugCodeContextsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDebugCodeContexts_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDebugCodeContexts_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDebugCodeContexts_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDebugCodeContexts_Next(This,celt,pscc,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,pscc,pceltFetched) ) + +#define IEnumDebugCodeContexts_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumDebugCodeContexts_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDebugCodeContexts_Clone(This,ppescc) \ + ( (This)->lpVtbl -> Clone(This,ppescc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT __stdcall IEnumDebugCodeContexts_RemoteNext_Proxy( + __RPC__in IEnumDebugCodeContexts * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IDebugCodeContext **pscc, + /* [out] */ __RPC__out ULONG *pceltFetched); + + +void __RPC_STUB IEnumDebugCodeContexts_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumDebugCodeContexts_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0018 */ +/* [local] */ + +typedef struct tagDebugStackFrameDescriptor + { + IDebugStackFrame *pdsf; + DWORD dwMin; + DWORD dwLim; + BOOL fFinal; + IUnknown *punkFinal; + } DebugStackFrameDescriptor; + +typedef struct tagDebugStackFrameDescriptor64 + { + IDebugStackFrame *pdsf; + DWORDLONG dwMin; + DWORDLONG dwLim; + BOOL fFinal; + IUnknown *punkFinal; + } DebugStackFrameDescriptor64; + + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0018_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0018_v0_0_s_ifspec; + +#ifndef __IEnumDebugStackFrames_INTERFACE_DEFINED__ +#define __IEnumDebugStackFrames_INTERFACE_DEFINED__ + +/* interface IEnumDebugStackFrames */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumDebugStackFrames; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C1e-CB0C-11d0-B5C9-00A0244A0E7A") + IEnumDebugStackFrames : public IUnknown + { + public: + virtual /* [local] */ HRESULT __stdcall Next( + /* [in] */ ULONG celt, + /* [out] */ DebugStackFrameDescriptor *prgdsfd, + /* [out] */ ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDebugStackFramesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDebugStackFrames * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDebugStackFrames * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDebugStackFrames * This); + + DECLSPEC_XFGVIRT(IEnumDebugStackFrames, Next) + /* [local] */ HRESULT ( __stdcall *Next )( + IEnumDebugStackFrames * This, + /* [in] */ ULONG celt, + /* [out] */ DebugStackFrameDescriptor *prgdsfd, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumDebugStackFrames, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDebugStackFrames * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumDebugStackFrames, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDebugStackFrames * This); + + DECLSPEC_XFGVIRT(IEnumDebugStackFrames, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDebugStackFrames * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf); + + END_INTERFACE + } IEnumDebugStackFramesVtbl; + + interface IEnumDebugStackFrames + { + CONST_VTBL struct IEnumDebugStackFramesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDebugStackFrames_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDebugStackFrames_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDebugStackFrames_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDebugStackFrames_Next(This,celt,prgdsfd,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,prgdsfd,pceltFetched) ) + +#define IEnumDebugStackFrames_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumDebugStackFrames_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDebugStackFrames_Clone(This,ppedsf) \ + ( (This)->lpVtbl -> Clone(This,ppedsf) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT __stdcall IEnumDebugStackFrames_RemoteNext_Proxy( + __RPC__in IEnumDebugStackFrames * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) DebugStackFrameDescriptor *prgdsfd, + /* [out] */ __RPC__out ULONG *pceltFetched); + + +void __RPC_STUB IEnumDebugStackFrames_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumDebugStackFrames_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDebugStackFrames64_INTERFACE_DEFINED__ +#define __IEnumDebugStackFrames64_INTERFACE_DEFINED__ + +/* interface IEnumDebugStackFrames64 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumDebugStackFrames64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0dc38853-c1b0-4176-a984-b298361027af") + IEnumDebugStackFrames64 : public IEnumDebugStackFrames + { + public: + virtual /* [local] */ HRESULT __stdcall Next64( + /* [in] */ ULONG celt, + /* [out] */ DebugStackFrameDescriptor64 *prgdsfd, + /* [out] */ ULONG *pceltFetched) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDebugStackFrames64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDebugStackFrames64 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDebugStackFrames64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDebugStackFrames64 * This); + + DECLSPEC_XFGVIRT(IEnumDebugStackFrames, Next) + /* [local] */ HRESULT ( __stdcall *Next )( + IEnumDebugStackFrames64 * This, + /* [in] */ ULONG celt, + /* [out] */ DebugStackFrameDescriptor *prgdsfd, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumDebugStackFrames, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDebugStackFrames64 * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumDebugStackFrames, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDebugStackFrames64 * This); + + DECLSPEC_XFGVIRT(IEnumDebugStackFrames, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDebugStackFrames64 * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf); + + DECLSPEC_XFGVIRT(IEnumDebugStackFrames64, Next64) + /* [local] */ HRESULT ( __stdcall *Next64 )( + IEnumDebugStackFrames64 * This, + /* [in] */ ULONG celt, + /* [out] */ DebugStackFrameDescriptor64 *prgdsfd, + /* [out] */ ULONG *pceltFetched); + + END_INTERFACE + } IEnumDebugStackFrames64Vtbl; + + interface IEnumDebugStackFrames64 + { + CONST_VTBL struct IEnumDebugStackFrames64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDebugStackFrames64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDebugStackFrames64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDebugStackFrames64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDebugStackFrames64_Next(This,celt,prgdsfd,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,prgdsfd,pceltFetched) ) + +#define IEnumDebugStackFrames64_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumDebugStackFrames64_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDebugStackFrames64_Clone(This,ppedsf) \ + ( (This)->lpVtbl -> Clone(This,ppedsf) ) + + +#define IEnumDebugStackFrames64_Next64(This,celt,prgdsfd,pceltFetched) \ + ( (This)->lpVtbl -> Next64(This,celt,prgdsfd,pceltFetched) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT __stdcall IEnumDebugStackFrames64_RemoteNext64_Proxy( + __RPC__in IEnumDebugStackFrames64 * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) DebugStackFrameDescriptor64 *prgdsfd, + /* [out] */ __RPC__out ULONG *pceltFetched); + + +void __RPC_STUB IEnumDebugStackFrames64_RemoteNext64_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumDebugStackFrames64_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugDocumentInfo_INTERFACE_DEFINED__ +#define __IDebugDocumentInfo_INTERFACE_DEFINED__ + +/* interface IDebugDocumentInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocumentInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C1f-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugDocumentInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [in] */ DOCUMENTNAMETYPE dnt, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDocumentClassId( + /* [out] */ __RPC__out CLSID *pclsidDocument) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocumentInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocumentInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocumentInfo * This); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugDocumentInfo * This, + /* [in] */ DOCUMENTNAMETYPE dnt, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetDocumentClassId) + HRESULT ( STDMETHODCALLTYPE *GetDocumentClassId )( + __RPC__in IDebugDocumentInfo * This, + /* [out] */ __RPC__out CLSID *pclsidDocument); + + END_INTERFACE + } IDebugDocumentInfoVtbl; + + interface IDebugDocumentInfo + { + CONST_VTBL struct IDebugDocumentInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocumentInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocumentInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocumentInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocumentInfo_GetName(This,dnt,pbstrName) \ + ( (This)->lpVtbl -> GetName(This,dnt,pbstrName) ) + +#define IDebugDocumentInfo_GetDocumentClassId(This,pclsidDocument) \ + ( (This)->lpVtbl -> GetDocumentClassId(This,pclsidDocument) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocumentInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugDocumentProvider_INTERFACE_DEFINED__ +#define __IDebugDocumentProvider_INTERFACE_DEFINED__ + +/* interface IDebugDocumentProvider */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocumentProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C20-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugDocumentProvider : public IDebugDocumentInfo + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDocument( + /* [out] */ __RPC__deref_out_opt IDebugDocument **ppssd) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocumentProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocumentProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocumentProvider * This); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugDocumentProvider * This, + /* [in] */ DOCUMENTNAMETYPE dnt, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetDocumentClassId) + HRESULT ( STDMETHODCALLTYPE *GetDocumentClassId )( + __RPC__in IDebugDocumentProvider * This, + /* [out] */ __RPC__out CLSID *pclsidDocument); + + DECLSPEC_XFGVIRT(IDebugDocumentProvider, GetDocument) + HRESULT ( STDMETHODCALLTYPE *GetDocument )( + __RPC__in IDebugDocumentProvider * This, + /* [out] */ __RPC__deref_out_opt IDebugDocument **ppssd); + + END_INTERFACE + } IDebugDocumentProviderVtbl; + + interface IDebugDocumentProvider + { + CONST_VTBL struct IDebugDocumentProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocumentProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocumentProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocumentProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocumentProvider_GetName(This,dnt,pbstrName) \ + ( (This)->lpVtbl -> GetName(This,dnt,pbstrName) ) + +#define IDebugDocumentProvider_GetDocumentClassId(This,pclsidDocument) \ + ( (This)->lpVtbl -> GetDocumentClassId(This,pclsidDocument) ) + + +#define IDebugDocumentProvider_GetDocument(This,ppssd) \ + ( (This)->lpVtbl -> GetDocument(This,ppssd) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocumentProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugDocument_INTERFACE_DEFINED__ +#define __IDebugDocument_INTERFACE_DEFINED__ + +/* interface IDebugDocument */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocument; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C21-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugDocument : public IDebugDocumentInfo + { + public: + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocument * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocument * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocument * This); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugDocument * This, + /* [in] */ DOCUMENTNAMETYPE dnt, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetDocumentClassId) + HRESULT ( STDMETHODCALLTYPE *GetDocumentClassId )( + __RPC__in IDebugDocument * This, + /* [out] */ __RPC__out CLSID *pclsidDocument); + + END_INTERFACE + } IDebugDocumentVtbl; + + interface IDebugDocument + { + CONST_VTBL struct IDebugDocumentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocument_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocument_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocument_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocument_GetName(This,dnt,pbstrName) \ + ( (This)->lpVtbl -> GetName(This,dnt,pbstrName) ) + +#define IDebugDocument_GetDocumentClassId(This,pclsidDocument) \ + ( (This)->lpVtbl -> GetDocumentClassId(This,pclsidDocument) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocument_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0023 */ +/* [local] */ + +#pragma warning(push) +#pragma warning(disable:28718) + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0023_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0023_v0_0_s_ifspec; + +#ifndef __IDebugDocumentText_INTERFACE_DEFINED__ +#define __IDebugDocumentText_INTERFACE_DEFINED__ + +/* interface IDebugDocumentText */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocumentText; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C22-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugDocumentText : public IDebugDocument + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDocumentAttributes( + /* [out] */ __RPC__out TEXT_DOC_ATTR *ptextdocattr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSize( + /* [out] */ __RPC__out ULONG *pcNumLines, + /* [out] */ __RPC__out ULONG *pcNumChars) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPositionOfLine( + /* [in] */ ULONG cLineNumber, + /* [out] */ __RPC__out ULONG *pcCharacterPosition) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLineOfPosition( + /* [in] */ ULONG cCharacterPosition, + /* [out] */ __RPC__out ULONG *pcLineNumber, + /* [out] */ __RPC__out ULONG *pcCharacterOffsetInLine) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetText( + /* [in] */ ULONG cCharacterPosition, + /* [size_is][length_is][out][in] */ __RPC__inout_ecount_part(cMaxChars, *pcNumChars) WCHAR *pcharText, + /* [full][size_is][length_is][out][in] */ __RPC__inout_ecount_part_opt(cMaxChars, *pcNumChars) SOURCE_TEXT_ATTR *pstaTextAttr, + /* [out][in] */ __RPC__inout ULONG *pcNumChars, + /* [in] */ ULONG cMaxChars) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPositionOfContext( + /* [in] */ __RPC__in_opt IDebugDocumentContext *psc, + /* [out] */ __RPC__out ULONG *pcCharacterPosition, + /* [out] */ __RPC__out ULONG *cNumChars) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContextOfPosition( + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumChars, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppsc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentTextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocumentText * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocumentText * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocumentText * This); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugDocumentText * This, + /* [in] */ DOCUMENTNAMETYPE dnt, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetDocumentClassId) + HRESULT ( STDMETHODCALLTYPE *GetDocumentClassId )( + __RPC__in IDebugDocumentText * This, + /* [out] */ __RPC__out CLSID *pclsidDocument); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetDocumentAttributes) + HRESULT ( STDMETHODCALLTYPE *GetDocumentAttributes )( + __RPC__in IDebugDocumentText * This, + /* [out] */ __RPC__out TEXT_DOC_ATTR *ptextdocattr); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetSize) + HRESULT ( STDMETHODCALLTYPE *GetSize )( + __RPC__in IDebugDocumentText * This, + /* [out] */ __RPC__out ULONG *pcNumLines, + /* [out] */ __RPC__out ULONG *pcNumChars); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetPositionOfLine) + HRESULT ( STDMETHODCALLTYPE *GetPositionOfLine )( + __RPC__in IDebugDocumentText * This, + /* [in] */ ULONG cLineNumber, + /* [out] */ __RPC__out ULONG *pcCharacterPosition); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetLineOfPosition) + HRESULT ( STDMETHODCALLTYPE *GetLineOfPosition )( + __RPC__in IDebugDocumentText * This, + /* [in] */ ULONG cCharacterPosition, + /* [out] */ __RPC__out ULONG *pcLineNumber, + /* [out] */ __RPC__out ULONG *pcCharacterOffsetInLine); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetText) + HRESULT ( STDMETHODCALLTYPE *GetText )( + __RPC__in IDebugDocumentText * This, + /* [in] */ ULONG cCharacterPosition, + /* [size_is][length_is][out][in] */ __RPC__inout_ecount_part(cMaxChars, *pcNumChars) WCHAR *pcharText, + /* [full][size_is][length_is][out][in] */ __RPC__inout_ecount_part_opt(cMaxChars, *pcNumChars) SOURCE_TEXT_ATTR *pstaTextAttr, + /* [out][in] */ __RPC__inout ULONG *pcNumChars, + /* [in] */ ULONG cMaxChars); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetPositionOfContext) + HRESULT ( STDMETHODCALLTYPE *GetPositionOfContext )( + __RPC__in IDebugDocumentText * This, + /* [in] */ __RPC__in_opt IDebugDocumentContext *psc, + /* [out] */ __RPC__out ULONG *pcCharacterPosition, + /* [out] */ __RPC__out ULONG *cNumChars); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetContextOfPosition) + HRESULT ( STDMETHODCALLTYPE *GetContextOfPosition )( + __RPC__in IDebugDocumentText * This, + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumChars, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppsc); + + END_INTERFACE + } IDebugDocumentTextVtbl; + + interface IDebugDocumentText + { + CONST_VTBL struct IDebugDocumentTextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocumentText_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocumentText_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocumentText_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocumentText_GetName(This,dnt,pbstrName) \ + ( (This)->lpVtbl -> GetName(This,dnt,pbstrName) ) + +#define IDebugDocumentText_GetDocumentClassId(This,pclsidDocument) \ + ( (This)->lpVtbl -> GetDocumentClassId(This,pclsidDocument) ) + + + +#define IDebugDocumentText_GetDocumentAttributes(This,ptextdocattr) \ + ( (This)->lpVtbl -> GetDocumentAttributes(This,ptextdocattr) ) + +#define IDebugDocumentText_GetSize(This,pcNumLines,pcNumChars) \ + ( (This)->lpVtbl -> GetSize(This,pcNumLines,pcNumChars) ) + +#define IDebugDocumentText_GetPositionOfLine(This,cLineNumber,pcCharacterPosition) \ + ( (This)->lpVtbl -> GetPositionOfLine(This,cLineNumber,pcCharacterPosition) ) + +#define IDebugDocumentText_GetLineOfPosition(This,cCharacterPosition,pcLineNumber,pcCharacterOffsetInLine) \ + ( (This)->lpVtbl -> GetLineOfPosition(This,cCharacterPosition,pcLineNumber,pcCharacterOffsetInLine) ) + +#define IDebugDocumentText_GetText(This,cCharacterPosition,pcharText,pstaTextAttr,pcNumChars,cMaxChars) \ + ( (This)->lpVtbl -> GetText(This,cCharacterPosition,pcharText,pstaTextAttr,pcNumChars,cMaxChars) ) + +#define IDebugDocumentText_GetPositionOfContext(This,psc,pcCharacterPosition,cNumChars) \ + ( (This)->lpVtbl -> GetPositionOfContext(This,psc,pcCharacterPosition,cNumChars) ) + +#define IDebugDocumentText_GetContextOfPosition(This,cCharacterPosition,cNumChars,ppsc) \ + ( (This)->lpVtbl -> GetContextOfPosition(This,cCharacterPosition,cNumChars,ppsc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocumentText_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0024 */ +/* [local] */ + +#pragma warning(pop) + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0024_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0024_v0_0_s_ifspec; + +#ifndef __IDebugDocumentTextEvents_INTERFACE_DEFINED__ +#define __IDebugDocumentTextEvents_INTERFACE_DEFINED__ + +/* interface IDebugDocumentTextEvents */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocumentTextEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C23-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugDocumentTextEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE onDestroy( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE onInsertText( + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToInsert) = 0; + + virtual HRESULT STDMETHODCALLTYPE onRemoveText( + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToRemove) = 0; + + virtual HRESULT STDMETHODCALLTYPE onReplaceText( + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToReplace) = 0; + + virtual HRESULT STDMETHODCALLTYPE onUpdateTextAttributes( + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToUpdate) = 0; + + virtual HRESULT STDMETHODCALLTYPE onUpdateDocumentAttributes( + /* [in] */ TEXT_DOC_ATTR textdocattr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentTextEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocumentTextEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocumentTextEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocumentTextEvents * This); + + DECLSPEC_XFGVIRT(IDebugDocumentTextEvents, onDestroy) + HRESULT ( STDMETHODCALLTYPE *onDestroy )( + __RPC__in IDebugDocumentTextEvents * This); + + DECLSPEC_XFGVIRT(IDebugDocumentTextEvents, onInsertText) + HRESULT ( STDMETHODCALLTYPE *onInsertText )( + __RPC__in IDebugDocumentTextEvents * This, + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToInsert); + + DECLSPEC_XFGVIRT(IDebugDocumentTextEvents, onRemoveText) + HRESULT ( STDMETHODCALLTYPE *onRemoveText )( + __RPC__in IDebugDocumentTextEvents * This, + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToRemove); + + DECLSPEC_XFGVIRT(IDebugDocumentTextEvents, onReplaceText) + HRESULT ( STDMETHODCALLTYPE *onReplaceText )( + __RPC__in IDebugDocumentTextEvents * This, + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToReplace); + + DECLSPEC_XFGVIRT(IDebugDocumentTextEvents, onUpdateTextAttributes) + HRESULT ( STDMETHODCALLTYPE *onUpdateTextAttributes )( + __RPC__in IDebugDocumentTextEvents * This, + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToUpdate); + + DECLSPEC_XFGVIRT(IDebugDocumentTextEvents, onUpdateDocumentAttributes) + HRESULT ( STDMETHODCALLTYPE *onUpdateDocumentAttributes )( + __RPC__in IDebugDocumentTextEvents * This, + /* [in] */ TEXT_DOC_ATTR textdocattr); + + END_INTERFACE + } IDebugDocumentTextEventsVtbl; + + interface IDebugDocumentTextEvents + { + CONST_VTBL struct IDebugDocumentTextEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocumentTextEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocumentTextEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocumentTextEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocumentTextEvents_onDestroy(This) \ + ( (This)->lpVtbl -> onDestroy(This) ) + +#define IDebugDocumentTextEvents_onInsertText(This,cCharacterPosition,cNumToInsert) \ + ( (This)->lpVtbl -> onInsertText(This,cCharacterPosition,cNumToInsert) ) + +#define IDebugDocumentTextEvents_onRemoveText(This,cCharacterPosition,cNumToRemove) \ + ( (This)->lpVtbl -> onRemoveText(This,cCharacterPosition,cNumToRemove) ) + +#define IDebugDocumentTextEvents_onReplaceText(This,cCharacterPosition,cNumToReplace) \ + ( (This)->lpVtbl -> onReplaceText(This,cCharacterPosition,cNumToReplace) ) + +#define IDebugDocumentTextEvents_onUpdateTextAttributes(This,cCharacterPosition,cNumToUpdate) \ + ( (This)->lpVtbl -> onUpdateTextAttributes(This,cCharacterPosition,cNumToUpdate) ) + +#define IDebugDocumentTextEvents_onUpdateDocumentAttributes(This,textdocattr) \ + ( (This)->lpVtbl -> onUpdateDocumentAttributes(This,textdocattr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocumentTextEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0025 */ +/* [local] */ + +#pragma warning(push) +#pragma warning(disable:28718) + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0025_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0025_v0_0_s_ifspec; + +#ifndef __IDebugDocumentTextAuthor_INTERFACE_DEFINED__ +#define __IDebugDocumentTextAuthor_INTERFACE_DEFINED__ + +/* interface IDebugDocumentTextAuthor */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocumentTextAuthor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C24-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugDocumentTextAuthor : public IDebugDocumentText + { + public: + virtual HRESULT STDMETHODCALLTYPE InsertText( + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToInsert, + /* [size_is][in] */ __RPC__in_ecount_full(cNumToInsert) OLECHAR pcharText[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveText( + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToRemove) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReplaceText( + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToReplace, + /* [size_is][in] */ __RPC__in_ecount_full(cNumToReplace) OLECHAR pcharText[ ]) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentTextAuthorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocumentTextAuthor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocumentTextAuthor * This); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [in] */ DOCUMENTNAMETYPE dnt, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetDocumentClassId) + HRESULT ( STDMETHODCALLTYPE *GetDocumentClassId )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [out] */ __RPC__out CLSID *pclsidDocument); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetDocumentAttributes) + HRESULT ( STDMETHODCALLTYPE *GetDocumentAttributes )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [out] */ __RPC__out TEXT_DOC_ATTR *ptextdocattr); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetSize) + HRESULT ( STDMETHODCALLTYPE *GetSize )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [out] */ __RPC__out ULONG *pcNumLines, + /* [out] */ __RPC__out ULONG *pcNumChars); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetPositionOfLine) + HRESULT ( STDMETHODCALLTYPE *GetPositionOfLine )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [in] */ ULONG cLineNumber, + /* [out] */ __RPC__out ULONG *pcCharacterPosition); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetLineOfPosition) + HRESULT ( STDMETHODCALLTYPE *GetLineOfPosition )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [in] */ ULONG cCharacterPosition, + /* [out] */ __RPC__out ULONG *pcLineNumber, + /* [out] */ __RPC__out ULONG *pcCharacterOffsetInLine); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetText) + HRESULT ( STDMETHODCALLTYPE *GetText )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [in] */ ULONG cCharacterPosition, + /* [size_is][length_is][out][in] */ __RPC__inout_ecount_part(cMaxChars, *pcNumChars) WCHAR *pcharText, + /* [full][size_is][length_is][out][in] */ __RPC__inout_ecount_part_opt(cMaxChars, *pcNumChars) SOURCE_TEXT_ATTR *pstaTextAttr, + /* [out][in] */ __RPC__inout ULONG *pcNumChars, + /* [in] */ ULONG cMaxChars); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetPositionOfContext) + HRESULT ( STDMETHODCALLTYPE *GetPositionOfContext )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [in] */ __RPC__in_opt IDebugDocumentContext *psc, + /* [out] */ __RPC__out ULONG *pcCharacterPosition, + /* [out] */ __RPC__out ULONG *cNumChars); + + DECLSPEC_XFGVIRT(IDebugDocumentText, GetContextOfPosition) + HRESULT ( STDMETHODCALLTYPE *GetContextOfPosition )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumChars, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppsc); + + DECLSPEC_XFGVIRT(IDebugDocumentTextAuthor, InsertText) + HRESULT ( STDMETHODCALLTYPE *InsertText )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToInsert, + /* [size_is][in] */ __RPC__in_ecount_full(cNumToInsert) OLECHAR pcharText[ ]); + + DECLSPEC_XFGVIRT(IDebugDocumentTextAuthor, RemoveText) + HRESULT ( STDMETHODCALLTYPE *RemoveText )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToRemove); + + DECLSPEC_XFGVIRT(IDebugDocumentTextAuthor, ReplaceText) + HRESULT ( STDMETHODCALLTYPE *ReplaceText )( + __RPC__in IDebugDocumentTextAuthor * This, + /* [in] */ ULONG cCharacterPosition, + /* [in] */ ULONG cNumToReplace, + /* [size_is][in] */ __RPC__in_ecount_full(cNumToReplace) OLECHAR pcharText[ ]); + + END_INTERFACE + } IDebugDocumentTextAuthorVtbl; + + interface IDebugDocumentTextAuthor + { + CONST_VTBL struct IDebugDocumentTextAuthorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocumentTextAuthor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocumentTextAuthor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocumentTextAuthor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocumentTextAuthor_GetName(This,dnt,pbstrName) \ + ( (This)->lpVtbl -> GetName(This,dnt,pbstrName) ) + +#define IDebugDocumentTextAuthor_GetDocumentClassId(This,pclsidDocument) \ + ( (This)->lpVtbl -> GetDocumentClassId(This,pclsidDocument) ) + + + +#define IDebugDocumentTextAuthor_GetDocumentAttributes(This,ptextdocattr) \ + ( (This)->lpVtbl -> GetDocumentAttributes(This,ptextdocattr) ) + +#define IDebugDocumentTextAuthor_GetSize(This,pcNumLines,pcNumChars) \ + ( (This)->lpVtbl -> GetSize(This,pcNumLines,pcNumChars) ) + +#define IDebugDocumentTextAuthor_GetPositionOfLine(This,cLineNumber,pcCharacterPosition) \ + ( (This)->lpVtbl -> GetPositionOfLine(This,cLineNumber,pcCharacterPosition) ) + +#define IDebugDocumentTextAuthor_GetLineOfPosition(This,cCharacterPosition,pcLineNumber,pcCharacterOffsetInLine) \ + ( (This)->lpVtbl -> GetLineOfPosition(This,cCharacterPosition,pcLineNumber,pcCharacterOffsetInLine) ) + +#define IDebugDocumentTextAuthor_GetText(This,cCharacterPosition,pcharText,pstaTextAttr,pcNumChars,cMaxChars) \ + ( (This)->lpVtbl -> GetText(This,cCharacterPosition,pcharText,pstaTextAttr,pcNumChars,cMaxChars) ) + +#define IDebugDocumentTextAuthor_GetPositionOfContext(This,psc,pcCharacterPosition,cNumChars) \ + ( (This)->lpVtbl -> GetPositionOfContext(This,psc,pcCharacterPosition,cNumChars) ) + +#define IDebugDocumentTextAuthor_GetContextOfPosition(This,cCharacterPosition,cNumChars,ppsc) \ + ( (This)->lpVtbl -> GetContextOfPosition(This,cCharacterPosition,cNumChars,ppsc) ) + + +#define IDebugDocumentTextAuthor_InsertText(This,cCharacterPosition,cNumToInsert,pcharText) \ + ( (This)->lpVtbl -> InsertText(This,cCharacterPosition,cNumToInsert,pcharText) ) + +#define IDebugDocumentTextAuthor_RemoveText(This,cCharacterPosition,cNumToRemove) \ + ( (This)->lpVtbl -> RemoveText(This,cCharacterPosition,cNumToRemove) ) + +#define IDebugDocumentTextAuthor_ReplaceText(This,cCharacterPosition,cNumToReplace,pcharText) \ + ( (This)->lpVtbl -> ReplaceText(This,cCharacterPosition,cNumToReplace,pcharText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocumentTextAuthor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0026 */ +/* [local] */ + +#pragma warning(pop) + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0026_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0026_v0_0_s_ifspec; + +#ifndef __IDebugDocumentTextExternalAuthor_INTERFACE_DEFINED__ +#define __IDebugDocumentTextExternalAuthor_INTERFACE_DEFINED__ + +/* interface IDebugDocumentTextExternalAuthor */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocumentTextExternalAuthor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C25-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugDocumentTextExternalAuthor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPathName( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLongName, + /* [out] */ __RPC__out BOOL *pfIsOriginalFile) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileName( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrShortName) = 0; + + virtual HRESULT STDMETHODCALLTYPE NotifyChanged( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentTextExternalAuthorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocumentTextExternalAuthor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocumentTextExternalAuthor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocumentTextExternalAuthor * This); + + DECLSPEC_XFGVIRT(IDebugDocumentTextExternalAuthor, GetPathName) + HRESULT ( STDMETHODCALLTYPE *GetPathName )( + __RPC__in IDebugDocumentTextExternalAuthor * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLongName, + /* [out] */ __RPC__out BOOL *pfIsOriginalFile); + + DECLSPEC_XFGVIRT(IDebugDocumentTextExternalAuthor, GetFileName) + HRESULT ( STDMETHODCALLTYPE *GetFileName )( + __RPC__in IDebugDocumentTextExternalAuthor * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrShortName); + + DECLSPEC_XFGVIRT(IDebugDocumentTextExternalAuthor, NotifyChanged) + HRESULT ( STDMETHODCALLTYPE *NotifyChanged )( + __RPC__in IDebugDocumentTextExternalAuthor * This); + + END_INTERFACE + } IDebugDocumentTextExternalAuthorVtbl; + + interface IDebugDocumentTextExternalAuthor + { + CONST_VTBL struct IDebugDocumentTextExternalAuthorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocumentTextExternalAuthor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocumentTextExternalAuthor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocumentTextExternalAuthor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocumentTextExternalAuthor_GetPathName(This,pbstrLongName,pfIsOriginalFile) \ + ( (This)->lpVtbl -> GetPathName(This,pbstrLongName,pfIsOriginalFile) ) + +#define IDebugDocumentTextExternalAuthor_GetFileName(This,pbstrShortName) \ + ( (This)->lpVtbl -> GetFileName(This,pbstrShortName) ) + +#define IDebugDocumentTextExternalAuthor_NotifyChanged(This) \ + ( (This)->lpVtbl -> NotifyChanged(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocumentTextExternalAuthor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0027 */ +/* [local] */ + +#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS +#ifdef _WIN64 +#define IDebugDocumentHelper IDebugDocumentHelper64 +#define IID_IDebugDocumentHelper IID_IDebugDocumentHelper64 +#else +#define IDebugDocumentHelper IDebugDocumentHelper32 +#define IID_IDebugDocumentHelper IID_IDebugDocumentHelper32 +#endif +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0027_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0027_v0_0_s_ifspec; + +#ifndef __IDebugDocumentHelper32_INTERFACE_DEFINED__ +#define __IDebugDocumentHelper32_INTERFACE_DEFINED__ + +/* interface IDebugDocumentHelper32 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocumentHelper32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C26-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugDocumentHelper32 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Init( + /* [in] */ __RPC__in_opt IDebugApplication32 *pda, + /* [string][in] */ __RPC__in_string LPCOLESTR pszShortName, + /* [string][in] */ __RPC__in_string LPCOLESTR pszLongName, + /* [in] */ TEXT_DOC_ATTR docAttr) = 0; + + virtual HRESULT STDMETHODCALLTYPE Attach( + /* [in] */ __RPC__in_opt IDebugDocumentHelper32 *pddhParent) = 0; + + virtual HRESULT STDMETHODCALLTYPE Detach( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddUnicodeText( + /* [string][in] */ __RPC__in_string LPCOLESTR pszText) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddDBCSText( + /* [string][in] */ __RPC__in_string LPCSTR pszText) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDebugDocumentHost( + /* [in] */ __RPC__in_opt IDebugDocumentHost *pddh) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddDeferredText( + /* [in] */ ULONG cChars, + /* [in] */ DWORD dwTextStartCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE DefineScriptBlock( + /* [in] */ ULONG ulCharOffset, + /* [in] */ ULONG cChars, + /* [in] */ __RPC__in_opt IActiveScript *pas, + /* [in] */ BOOL fScriptlet, + /* [out] */ __RPC__out DWORD *pdwSourceContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDefaultTextAttr( + SOURCE_TEXT_ATTR staTextAttr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetTextAttributes( + /* [in] */ ULONG ulCharOffset, + /* [in] */ ULONG cChars, + /* [size_is][length_is][in] */ __RPC__in_ecount_part(cChars, cChars) SOURCE_TEXT_ATTR *pstaTextAttr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetLongName( + /* [string][in] */ __RPC__in_string LPCOLESTR pszLongName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetShortName( + /* [string][in] */ __RPC__in_string LPCOLESTR pszShortName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDocumentAttr( + /* [in] */ TEXT_DOC_ATTR pszAttributes) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDebugApplicationNode( + /* [out] */ __RPC__deref_out_opt IDebugApplicationNode **ppdan) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptBlockInfo( + /* [in] */ DWORD dwSourceContext, + /* [out] */ __RPC__deref_out_opt IActiveScript **ppasd, + /* [out] */ __RPC__out ULONG *piCharPos, + /* [out] */ __RPC__out ULONG *pcChars) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDebugDocumentContext( + /* [in] */ ULONG iCharPos, + /* [in] */ ULONG cChars, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppddc) = 0; + + virtual HRESULT STDMETHODCALLTYPE BringDocumentToTop( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE BringDocumentContextToTop( + __RPC__in_opt IDebugDocumentContext *pddc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentHelper32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocumentHelper32 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocumentHelper32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocumentHelper32 * This); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, Init) + HRESULT ( STDMETHODCALLTYPE *Init )( + __RPC__in IDebugDocumentHelper32 * This, + /* [in] */ __RPC__in_opt IDebugApplication32 *pda, + /* [string][in] */ __RPC__in_string LPCOLESTR pszShortName, + /* [string][in] */ __RPC__in_string LPCOLESTR pszLongName, + /* [in] */ TEXT_DOC_ATTR docAttr); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, Attach) + HRESULT ( STDMETHODCALLTYPE *Attach )( + __RPC__in IDebugDocumentHelper32 * This, + /* [in] */ __RPC__in_opt IDebugDocumentHelper32 *pddhParent); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, Detach) + HRESULT ( STDMETHODCALLTYPE *Detach )( + __RPC__in IDebugDocumentHelper32 * This); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, AddUnicodeText) + HRESULT ( STDMETHODCALLTYPE *AddUnicodeText )( + __RPC__in IDebugDocumentHelper32 * This, + /* [string][in] */ __RPC__in_string LPCOLESTR pszText); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, AddDBCSText) + HRESULT ( STDMETHODCALLTYPE *AddDBCSText )( + __RPC__in IDebugDocumentHelper32 * This, + /* [string][in] */ __RPC__in_string LPCSTR pszText); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, SetDebugDocumentHost) + HRESULT ( STDMETHODCALLTYPE *SetDebugDocumentHost )( + __RPC__in IDebugDocumentHelper32 * This, + /* [in] */ __RPC__in_opt IDebugDocumentHost *pddh); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, AddDeferredText) + HRESULT ( STDMETHODCALLTYPE *AddDeferredText )( + __RPC__in IDebugDocumentHelper32 * This, + /* [in] */ ULONG cChars, + /* [in] */ DWORD dwTextStartCookie); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, DefineScriptBlock) + HRESULT ( STDMETHODCALLTYPE *DefineScriptBlock )( + __RPC__in IDebugDocumentHelper32 * This, + /* [in] */ ULONG ulCharOffset, + /* [in] */ ULONG cChars, + /* [in] */ __RPC__in_opt IActiveScript *pas, + /* [in] */ BOOL fScriptlet, + /* [out] */ __RPC__out DWORD *pdwSourceContext); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, SetDefaultTextAttr) + HRESULT ( STDMETHODCALLTYPE *SetDefaultTextAttr )( + __RPC__in IDebugDocumentHelper32 * This, + SOURCE_TEXT_ATTR staTextAttr); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, SetTextAttributes) + HRESULT ( STDMETHODCALLTYPE *SetTextAttributes )( + __RPC__in IDebugDocumentHelper32 * This, + /* [in] */ ULONG ulCharOffset, + /* [in] */ ULONG cChars, + /* [size_is][length_is][in] */ __RPC__in_ecount_part(cChars, cChars) SOURCE_TEXT_ATTR *pstaTextAttr); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, SetLongName) + HRESULT ( STDMETHODCALLTYPE *SetLongName )( + __RPC__in IDebugDocumentHelper32 * This, + /* [string][in] */ __RPC__in_string LPCOLESTR pszLongName); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, SetShortName) + HRESULT ( STDMETHODCALLTYPE *SetShortName )( + __RPC__in IDebugDocumentHelper32 * This, + /* [string][in] */ __RPC__in_string LPCOLESTR pszShortName); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, SetDocumentAttr) + HRESULT ( STDMETHODCALLTYPE *SetDocumentAttr )( + __RPC__in IDebugDocumentHelper32 * This, + /* [in] */ TEXT_DOC_ATTR pszAttributes); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, GetDebugApplicationNode) + HRESULT ( STDMETHODCALLTYPE *GetDebugApplicationNode )( + __RPC__in IDebugDocumentHelper32 * This, + /* [out] */ __RPC__deref_out_opt IDebugApplicationNode **ppdan); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, GetScriptBlockInfo) + HRESULT ( STDMETHODCALLTYPE *GetScriptBlockInfo )( + __RPC__in IDebugDocumentHelper32 * This, + /* [in] */ DWORD dwSourceContext, + /* [out] */ __RPC__deref_out_opt IActiveScript **ppasd, + /* [out] */ __RPC__out ULONG *piCharPos, + /* [out] */ __RPC__out ULONG *pcChars); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, CreateDebugDocumentContext) + HRESULT ( STDMETHODCALLTYPE *CreateDebugDocumentContext )( + __RPC__in IDebugDocumentHelper32 * This, + /* [in] */ ULONG iCharPos, + /* [in] */ ULONG cChars, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppddc); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, BringDocumentToTop) + HRESULT ( STDMETHODCALLTYPE *BringDocumentToTop )( + __RPC__in IDebugDocumentHelper32 * This); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper32, BringDocumentContextToTop) + HRESULT ( STDMETHODCALLTYPE *BringDocumentContextToTop )( + __RPC__in IDebugDocumentHelper32 * This, + __RPC__in_opt IDebugDocumentContext *pddc); + + END_INTERFACE + } IDebugDocumentHelper32Vtbl; + + interface IDebugDocumentHelper32 + { + CONST_VTBL struct IDebugDocumentHelper32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocumentHelper32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocumentHelper32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocumentHelper32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocumentHelper32_Init(This,pda,pszShortName,pszLongName,docAttr) \ + ( (This)->lpVtbl -> Init(This,pda,pszShortName,pszLongName,docAttr) ) + +#define IDebugDocumentHelper32_Attach(This,pddhParent) \ + ( (This)->lpVtbl -> Attach(This,pddhParent) ) + +#define IDebugDocumentHelper32_Detach(This) \ + ( (This)->lpVtbl -> Detach(This) ) + +#define IDebugDocumentHelper32_AddUnicodeText(This,pszText) \ + ( (This)->lpVtbl -> AddUnicodeText(This,pszText) ) + +#define IDebugDocumentHelper32_AddDBCSText(This,pszText) \ + ( (This)->lpVtbl -> AddDBCSText(This,pszText) ) + +#define IDebugDocumentHelper32_SetDebugDocumentHost(This,pddh) \ + ( (This)->lpVtbl -> SetDebugDocumentHost(This,pddh) ) + +#define IDebugDocumentHelper32_AddDeferredText(This,cChars,dwTextStartCookie) \ + ( (This)->lpVtbl -> AddDeferredText(This,cChars,dwTextStartCookie) ) + +#define IDebugDocumentHelper32_DefineScriptBlock(This,ulCharOffset,cChars,pas,fScriptlet,pdwSourceContext) \ + ( (This)->lpVtbl -> DefineScriptBlock(This,ulCharOffset,cChars,pas,fScriptlet,pdwSourceContext) ) + +#define IDebugDocumentHelper32_SetDefaultTextAttr(This,staTextAttr) \ + ( (This)->lpVtbl -> SetDefaultTextAttr(This,staTextAttr) ) + +#define IDebugDocumentHelper32_SetTextAttributes(This,ulCharOffset,cChars,pstaTextAttr) \ + ( (This)->lpVtbl -> SetTextAttributes(This,ulCharOffset,cChars,pstaTextAttr) ) + +#define IDebugDocumentHelper32_SetLongName(This,pszLongName) \ + ( (This)->lpVtbl -> SetLongName(This,pszLongName) ) + +#define IDebugDocumentHelper32_SetShortName(This,pszShortName) \ + ( (This)->lpVtbl -> SetShortName(This,pszShortName) ) + +#define IDebugDocumentHelper32_SetDocumentAttr(This,pszAttributes) \ + ( (This)->lpVtbl -> SetDocumentAttr(This,pszAttributes) ) + +#define IDebugDocumentHelper32_GetDebugApplicationNode(This,ppdan) \ + ( (This)->lpVtbl -> GetDebugApplicationNode(This,ppdan) ) + +#define IDebugDocumentHelper32_GetScriptBlockInfo(This,dwSourceContext,ppasd,piCharPos,pcChars) \ + ( (This)->lpVtbl -> GetScriptBlockInfo(This,dwSourceContext,ppasd,piCharPos,pcChars) ) + +#define IDebugDocumentHelper32_CreateDebugDocumentContext(This,iCharPos,cChars,ppddc) \ + ( (This)->lpVtbl -> CreateDebugDocumentContext(This,iCharPos,cChars,ppddc) ) + +#define IDebugDocumentHelper32_BringDocumentToTop(This) \ + ( (This)->lpVtbl -> BringDocumentToTop(This) ) + +#define IDebugDocumentHelper32_BringDocumentContextToTop(This,pddc) \ + ( (This)->lpVtbl -> BringDocumentContextToTop(This,pddc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocumentHelper32_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugDocumentHelper64_INTERFACE_DEFINED__ +#define __IDebugDocumentHelper64_INTERFACE_DEFINED__ + +/* interface IDebugDocumentHelper64 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocumentHelper64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c4c7363c-20fd-47f9-bd82-4855e0150871") + IDebugDocumentHelper64 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Init( + /* [in] */ __RPC__in_opt IDebugApplication64 *pda, + /* [string][in] */ __RPC__in_string LPCOLESTR pszShortName, + /* [string][in] */ __RPC__in_string LPCOLESTR pszLongName, + /* [in] */ TEXT_DOC_ATTR docAttr) = 0; + + virtual HRESULT STDMETHODCALLTYPE Attach( + /* [in] */ __RPC__in_opt IDebugDocumentHelper64 *pddhParent) = 0; + + virtual HRESULT STDMETHODCALLTYPE Detach( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddUnicodeText( + /* [string][in] */ __RPC__in_string LPCOLESTR pszText) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddDBCSText( + /* [string][in] */ __RPC__in_string LPCSTR pszText) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDebugDocumentHost( + /* [in] */ __RPC__in_opt IDebugDocumentHost *pddh) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddDeferredText( + /* [in] */ ULONG cChars, + /* [in] */ DWORD dwTextStartCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE DefineScriptBlock( + /* [in] */ ULONG ulCharOffset, + /* [in] */ ULONG cChars, + /* [in] */ __RPC__in_opt IActiveScript *pas, + /* [in] */ BOOL fScriptlet, + /* [out] */ __RPC__out DWORDLONG *pdwSourceContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDefaultTextAttr( + SOURCE_TEXT_ATTR staTextAttr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetTextAttributes( + /* [in] */ ULONG ulCharOffset, + /* [in] */ ULONG cChars, + /* [size_is][length_is][in] */ __RPC__in_ecount_part(cChars, cChars) SOURCE_TEXT_ATTR *pstaTextAttr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetLongName( + /* [string][in] */ __RPC__in_string LPCOLESTR pszLongName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetShortName( + /* [string][in] */ __RPC__in_string LPCOLESTR pszShortName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDocumentAttr( + /* [in] */ TEXT_DOC_ATTR pszAttributes) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDebugApplicationNode( + /* [out] */ __RPC__deref_out_opt IDebugApplicationNode **ppdan) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptBlockInfo( + /* [in] */ DWORDLONG dwSourceContext, + /* [out] */ __RPC__deref_out_opt IActiveScript **ppasd, + /* [out] */ __RPC__out ULONG *piCharPos, + /* [out] */ __RPC__out ULONG *pcChars) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDebugDocumentContext( + /* [in] */ ULONG iCharPos, + /* [in] */ ULONG cChars, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppddc) = 0; + + virtual HRESULT STDMETHODCALLTYPE BringDocumentToTop( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE BringDocumentContextToTop( + __RPC__in_opt IDebugDocumentContext *pddc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentHelper64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocumentHelper64 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocumentHelper64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocumentHelper64 * This); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, Init) + HRESULT ( STDMETHODCALLTYPE *Init )( + __RPC__in IDebugDocumentHelper64 * This, + /* [in] */ __RPC__in_opt IDebugApplication64 *pda, + /* [string][in] */ __RPC__in_string LPCOLESTR pszShortName, + /* [string][in] */ __RPC__in_string LPCOLESTR pszLongName, + /* [in] */ TEXT_DOC_ATTR docAttr); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, Attach) + HRESULT ( STDMETHODCALLTYPE *Attach )( + __RPC__in IDebugDocumentHelper64 * This, + /* [in] */ __RPC__in_opt IDebugDocumentHelper64 *pddhParent); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, Detach) + HRESULT ( STDMETHODCALLTYPE *Detach )( + __RPC__in IDebugDocumentHelper64 * This); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, AddUnicodeText) + HRESULT ( STDMETHODCALLTYPE *AddUnicodeText )( + __RPC__in IDebugDocumentHelper64 * This, + /* [string][in] */ __RPC__in_string LPCOLESTR pszText); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, AddDBCSText) + HRESULT ( STDMETHODCALLTYPE *AddDBCSText )( + __RPC__in IDebugDocumentHelper64 * This, + /* [string][in] */ __RPC__in_string LPCSTR pszText); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, SetDebugDocumentHost) + HRESULT ( STDMETHODCALLTYPE *SetDebugDocumentHost )( + __RPC__in IDebugDocumentHelper64 * This, + /* [in] */ __RPC__in_opt IDebugDocumentHost *pddh); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, AddDeferredText) + HRESULT ( STDMETHODCALLTYPE *AddDeferredText )( + __RPC__in IDebugDocumentHelper64 * This, + /* [in] */ ULONG cChars, + /* [in] */ DWORD dwTextStartCookie); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, DefineScriptBlock) + HRESULT ( STDMETHODCALLTYPE *DefineScriptBlock )( + __RPC__in IDebugDocumentHelper64 * This, + /* [in] */ ULONG ulCharOffset, + /* [in] */ ULONG cChars, + /* [in] */ __RPC__in_opt IActiveScript *pas, + /* [in] */ BOOL fScriptlet, + /* [out] */ __RPC__out DWORDLONG *pdwSourceContext); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, SetDefaultTextAttr) + HRESULT ( STDMETHODCALLTYPE *SetDefaultTextAttr )( + __RPC__in IDebugDocumentHelper64 * This, + SOURCE_TEXT_ATTR staTextAttr); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, SetTextAttributes) + HRESULT ( STDMETHODCALLTYPE *SetTextAttributes )( + __RPC__in IDebugDocumentHelper64 * This, + /* [in] */ ULONG ulCharOffset, + /* [in] */ ULONG cChars, + /* [size_is][length_is][in] */ __RPC__in_ecount_part(cChars, cChars) SOURCE_TEXT_ATTR *pstaTextAttr); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, SetLongName) + HRESULT ( STDMETHODCALLTYPE *SetLongName )( + __RPC__in IDebugDocumentHelper64 * This, + /* [string][in] */ __RPC__in_string LPCOLESTR pszLongName); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, SetShortName) + HRESULT ( STDMETHODCALLTYPE *SetShortName )( + __RPC__in IDebugDocumentHelper64 * This, + /* [string][in] */ __RPC__in_string LPCOLESTR pszShortName); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, SetDocumentAttr) + HRESULT ( STDMETHODCALLTYPE *SetDocumentAttr )( + __RPC__in IDebugDocumentHelper64 * This, + /* [in] */ TEXT_DOC_ATTR pszAttributes); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, GetDebugApplicationNode) + HRESULT ( STDMETHODCALLTYPE *GetDebugApplicationNode )( + __RPC__in IDebugDocumentHelper64 * This, + /* [out] */ __RPC__deref_out_opt IDebugApplicationNode **ppdan); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, GetScriptBlockInfo) + HRESULT ( STDMETHODCALLTYPE *GetScriptBlockInfo )( + __RPC__in IDebugDocumentHelper64 * This, + /* [in] */ DWORDLONG dwSourceContext, + /* [out] */ __RPC__deref_out_opt IActiveScript **ppasd, + /* [out] */ __RPC__out ULONG *piCharPos, + /* [out] */ __RPC__out ULONG *pcChars); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, CreateDebugDocumentContext) + HRESULT ( STDMETHODCALLTYPE *CreateDebugDocumentContext )( + __RPC__in IDebugDocumentHelper64 * This, + /* [in] */ ULONG iCharPos, + /* [in] */ ULONG cChars, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppddc); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, BringDocumentToTop) + HRESULT ( STDMETHODCALLTYPE *BringDocumentToTop )( + __RPC__in IDebugDocumentHelper64 * This); + + DECLSPEC_XFGVIRT(IDebugDocumentHelper64, BringDocumentContextToTop) + HRESULT ( STDMETHODCALLTYPE *BringDocumentContextToTop )( + __RPC__in IDebugDocumentHelper64 * This, + __RPC__in_opt IDebugDocumentContext *pddc); + + END_INTERFACE + } IDebugDocumentHelper64Vtbl; + + interface IDebugDocumentHelper64 + { + CONST_VTBL struct IDebugDocumentHelper64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocumentHelper64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocumentHelper64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocumentHelper64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocumentHelper64_Init(This,pda,pszShortName,pszLongName,docAttr) \ + ( (This)->lpVtbl -> Init(This,pda,pszShortName,pszLongName,docAttr) ) + +#define IDebugDocumentHelper64_Attach(This,pddhParent) \ + ( (This)->lpVtbl -> Attach(This,pddhParent) ) + +#define IDebugDocumentHelper64_Detach(This) \ + ( (This)->lpVtbl -> Detach(This) ) + +#define IDebugDocumentHelper64_AddUnicodeText(This,pszText) \ + ( (This)->lpVtbl -> AddUnicodeText(This,pszText) ) + +#define IDebugDocumentHelper64_AddDBCSText(This,pszText) \ + ( (This)->lpVtbl -> AddDBCSText(This,pszText) ) + +#define IDebugDocumentHelper64_SetDebugDocumentHost(This,pddh) \ + ( (This)->lpVtbl -> SetDebugDocumentHost(This,pddh) ) + +#define IDebugDocumentHelper64_AddDeferredText(This,cChars,dwTextStartCookie) \ + ( (This)->lpVtbl -> AddDeferredText(This,cChars,dwTextStartCookie) ) + +#define IDebugDocumentHelper64_DefineScriptBlock(This,ulCharOffset,cChars,pas,fScriptlet,pdwSourceContext) \ + ( (This)->lpVtbl -> DefineScriptBlock(This,ulCharOffset,cChars,pas,fScriptlet,pdwSourceContext) ) + +#define IDebugDocumentHelper64_SetDefaultTextAttr(This,staTextAttr) \ + ( (This)->lpVtbl -> SetDefaultTextAttr(This,staTextAttr) ) + +#define IDebugDocumentHelper64_SetTextAttributes(This,ulCharOffset,cChars,pstaTextAttr) \ + ( (This)->lpVtbl -> SetTextAttributes(This,ulCharOffset,cChars,pstaTextAttr) ) + +#define IDebugDocumentHelper64_SetLongName(This,pszLongName) \ + ( (This)->lpVtbl -> SetLongName(This,pszLongName) ) + +#define IDebugDocumentHelper64_SetShortName(This,pszShortName) \ + ( (This)->lpVtbl -> SetShortName(This,pszShortName) ) + +#define IDebugDocumentHelper64_SetDocumentAttr(This,pszAttributes) \ + ( (This)->lpVtbl -> SetDocumentAttr(This,pszAttributes) ) + +#define IDebugDocumentHelper64_GetDebugApplicationNode(This,ppdan) \ + ( (This)->lpVtbl -> GetDebugApplicationNode(This,ppdan) ) + +#define IDebugDocumentHelper64_GetScriptBlockInfo(This,dwSourceContext,ppasd,piCharPos,pcChars) \ + ( (This)->lpVtbl -> GetScriptBlockInfo(This,dwSourceContext,ppasd,piCharPos,pcChars) ) + +#define IDebugDocumentHelper64_CreateDebugDocumentContext(This,iCharPos,cChars,ppddc) \ + ( (This)->lpVtbl -> CreateDebugDocumentContext(This,iCharPos,cChars,ppddc) ) + +#define IDebugDocumentHelper64_BringDocumentToTop(This) \ + ( (This)->lpVtbl -> BringDocumentToTop(This) ) + +#define IDebugDocumentHelper64_BringDocumentContextToTop(This,pddc) \ + ( (This)->lpVtbl -> BringDocumentContextToTop(This,pddc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocumentHelper64_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0029 */ +/* [local] */ + +#pragma warning(push) +#pragma warning(disable:28718) + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0029_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0029_v0_0_s_ifspec; + +#ifndef __IDebugDocumentHost_INTERFACE_DEFINED__ +#define __IDebugDocumentHost_INTERFACE_DEFINED__ + +/* interface IDebugDocumentHost */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocumentHost; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C27-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugDocumentHost : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDeferredText( + /* [in] */ DWORD dwTextStartCookie, + /* [size_is][length_is][out][in] */ __RPC__inout_ecount_part(cMaxChars, *pcNumChars) WCHAR *pcharText, + /* [size_is][length_is][out][in] */ __RPC__inout_ecount_part(cMaxChars, *pcNumChars) SOURCE_TEXT_ATTR *pstaTextAttr, + /* [out][in] */ __RPC__inout ULONG *pcNumChars, + /* [in] */ ULONG cMaxChars) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptTextAttributes( + /* [size_is][in] */ __RPC__in_ecount_full(uNumCodeChars) LPCOLESTR pstrCode, + /* [in] */ ULONG uNumCodeChars, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(uNumCodeChars) SOURCE_TEXT_ATTR *pattr) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCreateDocumentContext( + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkOuter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPathName( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLongName, + /* [out] */ __RPC__out BOOL *pfIsOriginalFile) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileName( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrShortName) = 0; + + virtual HRESULT STDMETHODCALLTYPE NotifyChanged( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentHostVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocumentHost * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocumentHost * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocumentHost * This); + + DECLSPEC_XFGVIRT(IDebugDocumentHost, GetDeferredText) + HRESULT ( STDMETHODCALLTYPE *GetDeferredText )( + __RPC__in IDebugDocumentHost * This, + /* [in] */ DWORD dwTextStartCookie, + /* [size_is][length_is][out][in] */ __RPC__inout_ecount_part(cMaxChars, *pcNumChars) WCHAR *pcharText, + /* [size_is][length_is][out][in] */ __RPC__inout_ecount_part(cMaxChars, *pcNumChars) SOURCE_TEXT_ATTR *pstaTextAttr, + /* [out][in] */ __RPC__inout ULONG *pcNumChars, + /* [in] */ ULONG cMaxChars); + + DECLSPEC_XFGVIRT(IDebugDocumentHost, GetScriptTextAttributes) + HRESULT ( STDMETHODCALLTYPE *GetScriptTextAttributes )( + __RPC__in IDebugDocumentHost * This, + /* [size_is][in] */ __RPC__in_ecount_full(uNumCodeChars) LPCOLESTR pstrCode, + /* [in] */ ULONG uNumCodeChars, + /* [in] */ __RPC__in LPCOLESTR pstrDelimiter, + /* [in] */ DWORD dwFlags, + /* [size_is][out][in] */ __RPC__inout_ecount_full(uNumCodeChars) SOURCE_TEXT_ATTR *pattr); + + DECLSPEC_XFGVIRT(IDebugDocumentHost, OnCreateDocumentContext) + HRESULT ( STDMETHODCALLTYPE *OnCreateDocumentContext )( + __RPC__in IDebugDocumentHost * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkOuter); + + DECLSPEC_XFGVIRT(IDebugDocumentHost, GetPathName) + HRESULT ( STDMETHODCALLTYPE *GetPathName )( + __RPC__in IDebugDocumentHost * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLongName, + /* [out] */ __RPC__out BOOL *pfIsOriginalFile); + + DECLSPEC_XFGVIRT(IDebugDocumentHost, GetFileName) + HRESULT ( STDMETHODCALLTYPE *GetFileName )( + __RPC__in IDebugDocumentHost * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrShortName); + + DECLSPEC_XFGVIRT(IDebugDocumentHost, NotifyChanged) + HRESULT ( STDMETHODCALLTYPE *NotifyChanged )( + __RPC__in IDebugDocumentHost * This); + + END_INTERFACE + } IDebugDocumentHostVtbl; + + interface IDebugDocumentHost + { + CONST_VTBL struct IDebugDocumentHostVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocumentHost_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocumentHost_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocumentHost_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocumentHost_GetDeferredText(This,dwTextStartCookie,pcharText,pstaTextAttr,pcNumChars,cMaxChars) \ + ( (This)->lpVtbl -> GetDeferredText(This,dwTextStartCookie,pcharText,pstaTextAttr,pcNumChars,cMaxChars) ) + +#define IDebugDocumentHost_GetScriptTextAttributes(This,pstrCode,uNumCodeChars,pstrDelimiter,dwFlags,pattr) \ + ( (This)->lpVtbl -> GetScriptTextAttributes(This,pstrCode,uNumCodeChars,pstrDelimiter,dwFlags,pattr) ) + +#define IDebugDocumentHost_OnCreateDocumentContext(This,ppunkOuter) \ + ( (This)->lpVtbl -> OnCreateDocumentContext(This,ppunkOuter) ) + +#define IDebugDocumentHost_GetPathName(This,pbstrLongName,pfIsOriginalFile) \ + ( (This)->lpVtbl -> GetPathName(This,pbstrLongName,pfIsOriginalFile) ) + +#define IDebugDocumentHost_GetFileName(This,pbstrShortName) \ + ( (This)->lpVtbl -> GetFileName(This,pbstrShortName) ) + +#define IDebugDocumentHost_NotifyChanged(This) \ + ( (This)->lpVtbl -> NotifyChanged(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocumentHost_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0030 */ +/* [local] */ + +#pragma warning(pop) + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0030_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0030_v0_0_s_ifspec; + +#ifndef __IDebugDocumentContext_INTERFACE_DEFINED__ +#define __IDebugDocumentContext_INTERFACE_DEFINED__ + +/* interface IDebugDocumentContext */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugDocumentContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C28-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugDocumentContext : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDocument( + /* [out] */ __RPC__deref_out_opt IDebugDocument **ppsd) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumCodeContexts( + /* [out] */ __RPC__deref_out_opt IEnumDebugCodeContexts **ppescc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugDocumentContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugDocumentContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugDocumentContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugDocumentContext * This); + + DECLSPEC_XFGVIRT(IDebugDocumentContext, GetDocument) + HRESULT ( STDMETHODCALLTYPE *GetDocument )( + __RPC__in IDebugDocumentContext * This, + /* [out] */ __RPC__deref_out_opt IDebugDocument **ppsd); + + DECLSPEC_XFGVIRT(IDebugDocumentContext, EnumCodeContexts) + HRESULT ( STDMETHODCALLTYPE *EnumCodeContexts )( + __RPC__in IDebugDocumentContext * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugCodeContexts **ppescc); + + END_INTERFACE + } IDebugDocumentContextVtbl; + + interface IDebugDocumentContext + { + CONST_VTBL struct IDebugDocumentContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugDocumentContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugDocumentContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugDocumentContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugDocumentContext_GetDocument(This,ppsd) \ + ( (This)->lpVtbl -> GetDocument(This,ppsd) ) + +#define IDebugDocumentContext_EnumCodeContexts(This,ppescc) \ + ( (This)->lpVtbl -> EnumCodeContexts(This,ppescc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugDocumentContext_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugSessionProvider_INTERFACE_DEFINED__ +#define __IDebugSessionProvider_INTERFACE_DEFINED__ + +/* interface IDebugSessionProvider */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugSessionProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C29-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugSessionProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE StartDebugSession( + /* [in] */ __RPC__in_opt IRemoteDebugApplication *pda) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugSessionProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugSessionProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugSessionProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugSessionProvider * This); + + DECLSPEC_XFGVIRT(IDebugSessionProvider, StartDebugSession) + HRESULT ( STDMETHODCALLTYPE *StartDebugSession )( + __RPC__in IDebugSessionProvider * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplication *pda); + + END_INTERFACE + } IDebugSessionProviderVtbl; + + interface IDebugSessionProvider + { + CONST_VTBL struct IDebugSessionProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugSessionProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugSessionProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugSessionProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugSessionProvider_StartDebugSession(This,pda) \ + ( (This)->lpVtbl -> StartDebugSession(This,pda) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugSessionProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IApplicationDebugger_INTERFACE_DEFINED__ +#define __IApplicationDebugger_INTERFACE_DEFINED__ + +/* interface IApplicationDebugger */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IApplicationDebugger; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C2a-CB0C-11d0-B5C9-00A0244A0E7A") + IApplicationDebugger : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE QueryAlive( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateInstanceAtDebugger( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [in] */ DWORD dwClsContext, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt IUnknown **ppvObject) = 0; + + virtual HRESULT STDMETHODCALLTYPE onDebugOutput( + /* [in] */ __RPC__in LPCOLESTR pstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE onHandleBreakPoint( + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prpt, + /* [in] */ BREAKREASON br, + /* [in] */ __RPC__in_opt IActiveScriptErrorDebug *pError) = 0; + + virtual HRESULT STDMETHODCALLTYPE onClose( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE onDebuggerEvent( + /* [in] */ __RPC__in REFIID riid, + /* [in] */ __RPC__in_opt IUnknown *punk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IApplicationDebuggerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IApplicationDebugger * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IApplicationDebugger * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IApplicationDebugger * This); + + DECLSPEC_XFGVIRT(IApplicationDebugger, QueryAlive) + HRESULT ( STDMETHODCALLTYPE *QueryAlive )( + __RPC__in IApplicationDebugger * This); + + DECLSPEC_XFGVIRT(IApplicationDebugger, CreateInstanceAtDebugger) + HRESULT ( STDMETHODCALLTYPE *CreateInstanceAtDebugger )( + __RPC__in IApplicationDebugger * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [in] */ DWORD dwClsContext, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(IApplicationDebugger, onDebugOutput) + HRESULT ( STDMETHODCALLTYPE *onDebugOutput )( + __RPC__in IApplicationDebugger * This, + /* [in] */ __RPC__in LPCOLESTR pstr); + + DECLSPEC_XFGVIRT(IApplicationDebugger, onHandleBreakPoint) + HRESULT ( STDMETHODCALLTYPE *onHandleBreakPoint )( + __RPC__in IApplicationDebugger * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prpt, + /* [in] */ BREAKREASON br, + /* [in] */ __RPC__in_opt IActiveScriptErrorDebug *pError); + + DECLSPEC_XFGVIRT(IApplicationDebugger, onClose) + HRESULT ( STDMETHODCALLTYPE *onClose )( + __RPC__in IApplicationDebugger * This); + + DECLSPEC_XFGVIRT(IApplicationDebugger, onDebuggerEvent) + HRESULT ( STDMETHODCALLTYPE *onDebuggerEvent )( + __RPC__in IApplicationDebugger * This, + /* [in] */ __RPC__in REFIID riid, + /* [in] */ __RPC__in_opt IUnknown *punk); + + END_INTERFACE + } IApplicationDebuggerVtbl; + + interface IApplicationDebugger + { + CONST_VTBL struct IApplicationDebuggerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IApplicationDebugger_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IApplicationDebugger_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IApplicationDebugger_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IApplicationDebugger_QueryAlive(This) \ + ( (This)->lpVtbl -> QueryAlive(This) ) + +#define IApplicationDebugger_CreateInstanceAtDebugger(This,rclsid,pUnkOuter,dwClsContext,riid,ppvObject) \ + ( (This)->lpVtbl -> CreateInstanceAtDebugger(This,rclsid,pUnkOuter,dwClsContext,riid,ppvObject) ) + +#define IApplicationDebugger_onDebugOutput(This,pstr) \ + ( (This)->lpVtbl -> onDebugOutput(This,pstr) ) + +#define IApplicationDebugger_onHandleBreakPoint(This,prpt,br,pError) \ + ( (This)->lpVtbl -> onHandleBreakPoint(This,prpt,br,pError) ) + +#define IApplicationDebugger_onClose(This) \ + ( (This)->lpVtbl -> onClose(This) ) + +#define IApplicationDebugger_onDebuggerEvent(This,riid,punk) \ + ( (This)->lpVtbl -> onDebuggerEvent(This,riid,punk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IApplicationDebugger_INTERFACE_DEFINED__ */ + + +#ifndef __IApplicationDebuggerUI_INTERFACE_DEFINED__ +#define __IApplicationDebuggerUI_INTERFACE_DEFINED__ + +/* interface IApplicationDebuggerUI */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IApplicationDebuggerUI; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C2b-CB0C-11d0-B5C9-00A0244A0E7A") + IApplicationDebuggerUI : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE BringDocumentToTop( + /* [in] */ __RPC__in_opt IDebugDocumentText *pddt) = 0; + + virtual HRESULT STDMETHODCALLTYPE BringDocumentContextToTop( + /* [in] */ __RPC__in_opt IDebugDocumentContext *pddc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IApplicationDebuggerUIVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IApplicationDebuggerUI * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IApplicationDebuggerUI * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IApplicationDebuggerUI * This); + + DECLSPEC_XFGVIRT(IApplicationDebuggerUI, BringDocumentToTop) + HRESULT ( STDMETHODCALLTYPE *BringDocumentToTop )( + __RPC__in IApplicationDebuggerUI * This, + /* [in] */ __RPC__in_opt IDebugDocumentText *pddt); + + DECLSPEC_XFGVIRT(IApplicationDebuggerUI, BringDocumentContextToTop) + HRESULT ( STDMETHODCALLTYPE *BringDocumentContextToTop )( + __RPC__in IApplicationDebuggerUI * This, + /* [in] */ __RPC__in_opt IDebugDocumentContext *pddc); + + END_INTERFACE + } IApplicationDebuggerUIVtbl; + + interface IApplicationDebuggerUI + { + CONST_VTBL struct IApplicationDebuggerUIVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IApplicationDebuggerUI_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IApplicationDebuggerUI_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IApplicationDebuggerUI_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IApplicationDebuggerUI_BringDocumentToTop(This,pddt) \ + ( (This)->lpVtbl -> BringDocumentToTop(This,pddt) ) + +#define IApplicationDebuggerUI_BringDocumentContextToTop(This,pddc) \ + ( (This)->lpVtbl -> BringDocumentContextToTop(This,pddc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IApplicationDebuggerUI_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0034 */ +/* [local] */ + +EXTERN_C const CLSID CLSID_MachineDebugManager; + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0034_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0034_v0_0_s_ifspec; + +#ifndef __IMachineDebugManager_INTERFACE_DEFINED__ +#define __IMachineDebugManager_INTERFACE_DEFINED__ + +/* interface IMachineDebugManager */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMachineDebugManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C2c-CB0C-11d0-B5C9-00A0244A0E7A") + IMachineDebugManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddApplication( + /* [in] */ __RPC__in_opt IRemoteDebugApplication *pda, + /* [out] */ __RPC__out DWORD *pdwAppCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveApplication( + /* [in] */ DWORD dwAppCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumApplications( + /* [out] */ __RPC__deref_out_opt IEnumRemoteDebugApplications **ppeda) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMachineDebugManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMachineDebugManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMachineDebugManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMachineDebugManager * This); + + DECLSPEC_XFGVIRT(IMachineDebugManager, AddApplication) + HRESULT ( STDMETHODCALLTYPE *AddApplication )( + __RPC__in IMachineDebugManager * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplication *pda, + /* [out] */ __RPC__out DWORD *pdwAppCookie); + + DECLSPEC_XFGVIRT(IMachineDebugManager, RemoveApplication) + HRESULT ( STDMETHODCALLTYPE *RemoveApplication )( + __RPC__in IMachineDebugManager * This, + /* [in] */ DWORD dwAppCookie); + + DECLSPEC_XFGVIRT(IMachineDebugManager, EnumApplications) + HRESULT ( STDMETHODCALLTYPE *EnumApplications )( + __RPC__in IMachineDebugManager * This, + /* [out] */ __RPC__deref_out_opt IEnumRemoteDebugApplications **ppeda); + + END_INTERFACE + } IMachineDebugManagerVtbl; + + interface IMachineDebugManager + { + CONST_VTBL struct IMachineDebugManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMachineDebugManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMachineDebugManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMachineDebugManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMachineDebugManager_AddApplication(This,pda,pdwAppCookie) \ + ( (This)->lpVtbl -> AddApplication(This,pda,pdwAppCookie) ) + +#define IMachineDebugManager_RemoveApplication(This,dwAppCookie) \ + ( (This)->lpVtbl -> RemoveApplication(This,dwAppCookie) ) + +#define IMachineDebugManager_EnumApplications(This,ppeda) \ + ( (This)->lpVtbl -> EnumApplications(This,ppeda) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMachineDebugManager_INTERFACE_DEFINED__ */ + + +#ifndef __IMachineDebugManagerCookie_INTERFACE_DEFINED__ +#define __IMachineDebugManagerCookie_INTERFACE_DEFINED__ + +/* interface IMachineDebugManagerCookie */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMachineDebugManagerCookie; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C2d-CB0C-11d0-B5C9-00A0244A0E7A") + IMachineDebugManagerCookie : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddApplication( + /* [in] */ __RPC__in_opt IRemoteDebugApplication *pda, + /* [in] */ DWORD dwDebugAppCookie, + /* [out] */ __RPC__out DWORD *pdwAppCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveApplication( + /* [in] */ DWORD dwDebugAppCookie, + /* [in] */ DWORD dwAppCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumApplications( + /* [out] */ __RPC__deref_out_opt IEnumRemoteDebugApplications **ppeda) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMachineDebugManagerCookieVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMachineDebugManagerCookie * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMachineDebugManagerCookie * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMachineDebugManagerCookie * This); + + DECLSPEC_XFGVIRT(IMachineDebugManagerCookie, AddApplication) + HRESULT ( STDMETHODCALLTYPE *AddApplication )( + __RPC__in IMachineDebugManagerCookie * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplication *pda, + /* [in] */ DWORD dwDebugAppCookie, + /* [out] */ __RPC__out DWORD *pdwAppCookie); + + DECLSPEC_XFGVIRT(IMachineDebugManagerCookie, RemoveApplication) + HRESULT ( STDMETHODCALLTYPE *RemoveApplication )( + __RPC__in IMachineDebugManagerCookie * This, + /* [in] */ DWORD dwDebugAppCookie, + /* [in] */ DWORD dwAppCookie); + + DECLSPEC_XFGVIRT(IMachineDebugManagerCookie, EnumApplications) + HRESULT ( STDMETHODCALLTYPE *EnumApplications )( + __RPC__in IMachineDebugManagerCookie * This, + /* [out] */ __RPC__deref_out_opt IEnumRemoteDebugApplications **ppeda); + + END_INTERFACE + } IMachineDebugManagerCookieVtbl; + + interface IMachineDebugManagerCookie + { + CONST_VTBL struct IMachineDebugManagerCookieVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMachineDebugManagerCookie_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMachineDebugManagerCookie_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMachineDebugManagerCookie_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMachineDebugManagerCookie_AddApplication(This,pda,dwDebugAppCookie,pdwAppCookie) \ + ( (This)->lpVtbl -> AddApplication(This,pda,dwDebugAppCookie,pdwAppCookie) ) + +#define IMachineDebugManagerCookie_RemoveApplication(This,dwDebugAppCookie,dwAppCookie) \ + ( (This)->lpVtbl -> RemoveApplication(This,dwDebugAppCookie,dwAppCookie) ) + +#define IMachineDebugManagerCookie_EnumApplications(This,ppeda) \ + ( (This)->lpVtbl -> EnumApplications(This,ppeda) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMachineDebugManagerCookie_INTERFACE_DEFINED__ */ + + +#ifndef __IMachineDebugManagerEvents_INTERFACE_DEFINED__ +#define __IMachineDebugManagerEvents_INTERFACE_DEFINED__ + +/* interface IMachineDebugManagerEvents */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMachineDebugManagerEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C2e-CB0C-11d0-B5C9-00A0244A0E7A") + IMachineDebugManagerEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE onAddApplication( + /* [in] */ __RPC__in_opt IRemoteDebugApplication *pda, + /* [in] */ DWORD dwAppCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE onRemoveApplication( + /* [in] */ __RPC__in_opt IRemoteDebugApplication *pda, + /* [in] */ DWORD dwAppCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMachineDebugManagerEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMachineDebugManagerEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMachineDebugManagerEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMachineDebugManagerEvents * This); + + DECLSPEC_XFGVIRT(IMachineDebugManagerEvents, onAddApplication) + HRESULT ( STDMETHODCALLTYPE *onAddApplication )( + __RPC__in IMachineDebugManagerEvents * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplication *pda, + /* [in] */ DWORD dwAppCookie); + + DECLSPEC_XFGVIRT(IMachineDebugManagerEvents, onRemoveApplication) + HRESULT ( STDMETHODCALLTYPE *onRemoveApplication )( + __RPC__in IMachineDebugManagerEvents * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplication *pda, + /* [in] */ DWORD dwAppCookie); + + END_INTERFACE + } IMachineDebugManagerEventsVtbl; + + interface IMachineDebugManagerEvents + { + CONST_VTBL struct IMachineDebugManagerEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMachineDebugManagerEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMachineDebugManagerEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMachineDebugManagerEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMachineDebugManagerEvents_onAddApplication(This,pda,dwAppCookie) \ + ( (This)->lpVtbl -> onAddApplication(This,pda,dwAppCookie) ) + +#define IMachineDebugManagerEvents_onRemoveApplication(This,pda,dwAppCookie) \ + ( (This)->lpVtbl -> onRemoveApplication(This,pda,dwAppCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMachineDebugManagerEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0037 */ +/* [local] */ + +EXTERN_C const CLSID CLSID_ProcessDebugManager; +#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS +#ifdef _WIN64 +#define IProcessDebugManager IProcessDebugManager64 +#define IID_IProcessDebugManager IID_IProcessDebugManager64 +#else +#define IProcessDebugManager IProcessDebugManager32 +#define IID_IProcessDebugManager IID_IProcessDebugManager32 +#endif +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0037_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0037_v0_0_s_ifspec; + +#ifndef __IProcessDebugManager32_INTERFACE_DEFINED__ +#define __IProcessDebugManager32_INTERFACE_DEFINED__ + +/* interface IProcessDebugManager32 */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IProcessDebugManager32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C2f-CB0C-11d0-B5C9-00A0244A0E7A") + IProcessDebugManager32 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateApplication( + /* [out] */ IDebugApplication32 **ppda) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefaultApplication( + /* [out] */ IDebugApplication32 **ppda) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddApplication( + /* [in] */ IDebugApplication32 *pda, + /* [out] */ DWORD *pdwAppCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveApplication( + /* [in] */ DWORD dwAppCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDebugDocumentHelper( + /* [in] */ IUnknown *punkOuter, + /* [out] */ IDebugDocumentHelper32 **pddh) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProcessDebugManager32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IProcessDebugManager32 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IProcessDebugManager32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IProcessDebugManager32 * This); + + DECLSPEC_XFGVIRT(IProcessDebugManager32, CreateApplication) + HRESULT ( STDMETHODCALLTYPE *CreateApplication )( + IProcessDebugManager32 * This, + /* [out] */ IDebugApplication32 **ppda); + + DECLSPEC_XFGVIRT(IProcessDebugManager32, GetDefaultApplication) + HRESULT ( STDMETHODCALLTYPE *GetDefaultApplication )( + IProcessDebugManager32 * This, + /* [out] */ IDebugApplication32 **ppda); + + DECLSPEC_XFGVIRT(IProcessDebugManager32, AddApplication) + HRESULT ( STDMETHODCALLTYPE *AddApplication )( + IProcessDebugManager32 * This, + /* [in] */ IDebugApplication32 *pda, + /* [out] */ DWORD *pdwAppCookie); + + DECLSPEC_XFGVIRT(IProcessDebugManager32, RemoveApplication) + HRESULT ( STDMETHODCALLTYPE *RemoveApplication )( + IProcessDebugManager32 * This, + /* [in] */ DWORD dwAppCookie); + + DECLSPEC_XFGVIRT(IProcessDebugManager32, CreateDebugDocumentHelper) + HRESULT ( STDMETHODCALLTYPE *CreateDebugDocumentHelper )( + IProcessDebugManager32 * This, + /* [in] */ IUnknown *punkOuter, + /* [out] */ IDebugDocumentHelper32 **pddh); + + END_INTERFACE + } IProcessDebugManager32Vtbl; + + interface IProcessDebugManager32 + { + CONST_VTBL struct IProcessDebugManager32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProcessDebugManager32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProcessDebugManager32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProcessDebugManager32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProcessDebugManager32_CreateApplication(This,ppda) \ + ( (This)->lpVtbl -> CreateApplication(This,ppda) ) + +#define IProcessDebugManager32_GetDefaultApplication(This,ppda) \ + ( (This)->lpVtbl -> GetDefaultApplication(This,ppda) ) + +#define IProcessDebugManager32_AddApplication(This,pda,pdwAppCookie) \ + ( (This)->lpVtbl -> AddApplication(This,pda,pdwAppCookie) ) + +#define IProcessDebugManager32_RemoveApplication(This,dwAppCookie) \ + ( (This)->lpVtbl -> RemoveApplication(This,dwAppCookie) ) + +#define IProcessDebugManager32_CreateDebugDocumentHelper(This,punkOuter,pddh) \ + ( (This)->lpVtbl -> CreateDebugDocumentHelper(This,punkOuter,pddh) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProcessDebugManager32_INTERFACE_DEFINED__ */ + + +#ifndef __IProcessDebugManager64_INTERFACE_DEFINED__ +#define __IProcessDebugManager64_INTERFACE_DEFINED__ + +/* interface IProcessDebugManager64 */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IProcessDebugManager64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56b9fc1c-63a9-4cc1-ac21-087d69a17fab") + IProcessDebugManager64 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateApplication( + /* [out] */ IDebugApplication64 **ppda) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefaultApplication( + /* [out] */ IDebugApplication64 **ppda) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddApplication( + /* [in] */ IDebugApplication64 *pda, + /* [out] */ DWORD *pdwAppCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveApplication( + /* [in] */ DWORD dwAppCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDebugDocumentHelper( + /* [in] */ IUnknown *punkOuter, + /* [out] */ IDebugDocumentHelper64 **pddh) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProcessDebugManager64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IProcessDebugManager64 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IProcessDebugManager64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IProcessDebugManager64 * This); + + DECLSPEC_XFGVIRT(IProcessDebugManager64, CreateApplication) + HRESULT ( STDMETHODCALLTYPE *CreateApplication )( + IProcessDebugManager64 * This, + /* [out] */ IDebugApplication64 **ppda); + + DECLSPEC_XFGVIRT(IProcessDebugManager64, GetDefaultApplication) + HRESULT ( STDMETHODCALLTYPE *GetDefaultApplication )( + IProcessDebugManager64 * This, + /* [out] */ IDebugApplication64 **ppda); + + DECLSPEC_XFGVIRT(IProcessDebugManager64, AddApplication) + HRESULT ( STDMETHODCALLTYPE *AddApplication )( + IProcessDebugManager64 * This, + /* [in] */ IDebugApplication64 *pda, + /* [out] */ DWORD *pdwAppCookie); + + DECLSPEC_XFGVIRT(IProcessDebugManager64, RemoveApplication) + HRESULT ( STDMETHODCALLTYPE *RemoveApplication )( + IProcessDebugManager64 * This, + /* [in] */ DWORD dwAppCookie); + + DECLSPEC_XFGVIRT(IProcessDebugManager64, CreateDebugDocumentHelper) + HRESULT ( STDMETHODCALLTYPE *CreateDebugDocumentHelper )( + IProcessDebugManager64 * This, + /* [in] */ IUnknown *punkOuter, + /* [out] */ IDebugDocumentHelper64 **pddh); + + END_INTERFACE + } IProcessDebugManager64Vtbl; + + interface IProcessDebugManager64 + { + CONST_VTBL struct IProcessDebugManager64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProcessDebugManager64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProcessDebugManager64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProcessDebugManager64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProcessDebugManager64_CreateApplication(This,ppda) \ + ( (This)->lpVtbl -> CreateApplication(This,ppda) ) + +#define IProcessDebugManager64_GetDefaultApplication(This,ppda) \ + ( (This)->lpVtbl -> GetDefaultApplication(This,ppda) ) + +#define IProcessDebugManager64_AddApplication(This,pda,pdwAppCookie) \ + ( (This)->lpVtbl -> AddApplication(This,pda,pdwAppCookie) ) + +#define IProcessDebugManager64_RemoveApplication(This,dwAppCookie) \ + ( (This)->lpVtbl -> RemoveApplication(This,dwAppCookie) ) + +#define IProcessDebugManager64_CreateDebugDocumentHelper(This,punkOuter,pddh) \ + ( (This)->lpVtbl -> CreateDebugDocumentHelper(This,punkOuter,pddh) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProcessDebugManager64_INTERFACE_DEFINED__ */ + + +#ifndef __IRemoteDebugApplication_INTERFACE_DEFINED__ +#define __IRemoteDebugApplication_INTERFACE_DEFINED__ + +/* interface IRemoteDebugApplication */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IRemoteDebugApplication; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C30-CB0C-11d0-B5C9-00A0244A0E7A") + IRemoteDebugApplication : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ResumeFromBreakPoint( + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prptFocus, + /* [in] */ BREAKRESUMEACTION bra, + /* [in] */ ERRORRESUMEACTION era) = 0; + + virtual HRESULT STDMETHODCALLTYPE CauseBreak( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConnectDebugger( + /* [in] */ __RPC__in_opt IApplicationDebugger *pad) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisconnectDebugger( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDebugger( + /* [out] */ __RPC__deref_out_opt IApplicationDebugger **pad) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateInstanceAtApplication( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [in] */ DWORD dwClsContext, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt IUnknown **ppvObject) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryAlive( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumThreads( + /* [out] */ __RPC__deref_out_opt IEnumRemoteDebugApplicationThreads **pperdat) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRootNode( + /* [out] */ __RPC__deref_out_opt IDebugApplicationNode **ppdanRoot) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumGlobalExpressionContexts( + /* [out] */ __RPC__deref_out_opt IEnumDebugExpressionContexts **ppedec) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRemoteDebugApplicationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRemoteDebugApplication * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRemoteDebugApplication * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRemoteDebugApplication * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, ResumeFromBreakPoint) + HRESULT ( STDMETHODCALLTYPE *ResumeFromBreakPoint )( + __RPC__in IRemoteDebugApplication * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prptFocus, + /* [in] */ BREAKRESUMEACTION bra, + /* [in] */ ERRORRESUMEACTION era); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, CauseBreak) + HRESULT ( STDMETHODCALLTYPE *CauseBreak )( + __RPC__in IRemoteDebugApplication * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, ConnectDebugger) + HRESULT ( STDMETHODCALLTYPE *ConnectDebugger )( + __RPC__in IRemoteDebugApplication * This, + /* [in] */ __RPC__in_opt IApplicationDebugger *pad); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, DisconnectDebugger) + HRESULT ( STDMETHODCALLTYPE *DisconnectDebugger )( + __RPC__in IRemoteDebugApplication * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, GetDebugger) + HRESULT ( STDMETHODCALLTYPE *GetDebugger )( + __RPC__in IRemoteDebugApplication * This, + /* [out] */ __RPC__deref_out_opt IApplicationDebugger **pad); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, CreateInstanceAtApplication) + HRESULT ( STDMETHODCALLTYPE *CreateInstanceAtApplication )( + __RPC__in IRemoteDebugApplication * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [in] */ DWORD dwClsContext, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, QueryAlive) + HRESULT ( STDMETHODCALLTYPE *QueryAlive )( + __RPC__in IRemoteDebugApplication * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, EnumThreads) + HRESULT ( STDMETHODCALLTYPE *EnumThreads )( + __RPC__in IRemoteDebugApplication * This, + /* [out] */ __RPC__deref_out_opt IEnumRemoteDebugApplicationThreads **pperdat); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IRemoteDebugApplication * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, GetRootNode) + HRESULT ( STDMETHODCALLTYPE *GetRootNode )( + __RPC__in IRemoteDebugApplication * This, + /* [out] */ __RPC__deref_out_opt IDebugApplicationNode **ppdanRoot); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, EnumGlobalExpressionContexts) + HRESULT ( STDMETHODCALLTYPE *EnumGlobalExpressionContexts )( + __RPC__in IRemoteDebugApplication * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugExpressionContexts **ppedec); + + END_INTERFACE + } IRemoteDebugApplicationVtbl; + + interface IRemoteDebugApplication + { + CONST_VTBL struct IRemoteDebugApplicationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRemoteDebugApplication_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRemoteDebugApplication_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRemoteDebugApplication_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRemoteDebugApplication_ResumeFromBreakPoint(This,prptFocus,bra,era) \ + ( (This)->lpVtbl -> ResumeFromBreakPoint(This,prptFocus,bra,era) ) + +#define IRemoteDebugApplication_CauseBreak(This) \ + ( (This)->lpVtbl -> CauseBreak(This) ) + +#define IRemoteDebugApplication_ConnectDebugger(This,pad) \ + ( (This)->lpVtbl -> ConnectDebugger(This,pad) ) + +#define IRemoteDebugApplication_DisconnectDebugger(This) \ + ( (This)->lpVtbl -> DisconnectDebugger(This) ) + +#define IRemoteDebugApplication_GetDebugger(This,pad) \ + ( (This)->lpVtbl -> GetDebugger(This,pad) ) + +#define IRemoteDebugApplication_CreateInstanceAtApplication(This,rclsid,pUnkOuter,dwClsContext,riid,ppvObject) \ + ( (This)->lpVtbl -> CreateInstanceAtApplication(This,rclsid,pUnkOuter,dwClsContext,riid,ppvObject) ) + +#define IRemoteDebugApplication_QueryAlive(This) \ + ( (This)->lpVtbl -> QueryAlive(This) ) + +#define IRemoteDebugApplication_EnumThreads(This,pperdat) \ + ( (This)->lpVtbl -> EnumThreads(This,pperdat) ) + +#define IRemoteDebugApplication_GetName(This,pbstrName) \ + ( (This)->lpVtbl -> GetName(This,pbstrName) ) + +#define IRemoteDebugApplication_GetRootNode(This,ppdanRoot) \ + ( (This)->lpVtbl -> GetRootNode(This,ppdanRoot) ) + +#define IRemoteDebugApplication_EnumGlobalExpressionContexts(This,ppedec) \ + ( (This)->lpVtbl -> EnumGlobalExpressionContexts(This,ppedec) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRemoteDebugApplication_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0040 */ +/* [local] */ + +#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS +#ifdef _WIN64 +#define IDebugApplication IDebugApplication64 +#define IID_IDebugApplication IID_IDebugApplication64 +#else +#define IDebugApplication IDebugApplication32 +#define IID_IDebugApplication IID_IDebugApplication32 +#endif +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0040_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0040_v0_0_s_ifspec; + +#ifndef __IDebugApplication32_INTERFACE_DEFINED__ +#define __IDebugApplication32_INTERFACE_DEFINED__ + +/* interface IDebugApplication32 */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplication32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C32-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugApplication32 : public IRemoteDebugApplication + { + public: + virtual HRESULT STDMETHODCALLTYPE SetName( + /* [in] */ LPCOLESTR pstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE StepOutComplete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE DebugOutput( + /* [in] */ LPCOLESTR pstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE StartDebugSession( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE HandleBreakPoint( + /* [in] */ BREAKREASON br, + /* [out] */ BREAKRESUMEACTION *pbra) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBreakFlags( + /* [out] */ APPBREAKFLAGS *pabf, + /* [out] */ IRemoteDebugApplicationThread **pprdatSteppingThread) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentThread( + /* [out] */ IDebugApplicationThread **pat) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateAsyncDebugOperation( + /* [in] */ IDebugSyncOperation *psdo, + /* [out] */ IDebugAsyncOperation **ppado) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddStackFrameSniffer( + /* [in] */ IDebugStackFrameSniffer *pdsfs, + /* [out] */ DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveStackFrameSniffer( + /* [in] */ DWORD dwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryCurrentThreadIsDebuggerThread( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SynchronousCallInDebuggerThread( + /* [in] */ IDebugThreadCall32 *pptc, + /* [in] */ DWORD dwParam1, + /* [in] */ DWORD dwParam2, + /* [in] */ DWORD dwParam3) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateApplicationNode( + /* [out] */ IDebugApplicationNode **ppdanNew) = 0; + + virtual HRESULT STDMETHODCALLTYPE FireDebuggerEvent( + /* [in] */ REFGUID riid, + /* [in] */ IUnknown *punk) = 0; + + virtual HRESULT STDMETHODCALLTYPE HandleRuntimeError( + /* [in] */ IActiveScriptErrorDebug *pErrorDebug, + /* [in] */ IActiveScriptSite *pScriptSite, + /* [out] */ BREAKRESUMEACTION *pbra, + /* [out] */ ERRORRESUMEACTION *perra, + /* [out] */ BOOL *pfCallOnScriptError) = 0; + + virtual BOOL STDMETHODCALLTYPE FCanJitDebug( void) = 0; + + virtual BOOL STDMETHODCALLTYPE FIsAutoJitDebugEnabled( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddGlobalExpressionContextProvider( + /* [in] */ IProvideExpressionContexts *pdsfs, + /* [out] */ DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveGlobalExpressionContextProvider( + /* [in] */ DWORD dwCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplication32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugApplication32 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, ResumeFromBreakPoint) + HRESULT ( STDMETHODCALLTYPE *ResumeFromBreakPoint )( + IDebugApplication32 * This, + /* [in] */ IRemoteDebugApplicationThread *prptFocus, + /* [in] */ BREAKRESUMEACTION bra, + /* [in] */ ERRORRESUMEACTION era); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, CauseBreak) + HRESULT ( STDMETHODCALLTYPE *CauseBreak )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, ConnectDebugger) + HRESULT ( STDMETHODCALLTYPE *ConnectDebugger )( + IDebugApplication32 * This, + /* [in] */ IApplicationDebugger *pad); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, DisconnectDebugger) + HRESULT ( STDMETHODCALLTYPE *DisconnectDebugger )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, GetDebugger) + HRESULT ( STDMETHODCALLTYPE *GetDebugger )( + IDebugApplication32 * This, + /* [out] */ IApplicationDebugger **pad); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, CreateInstanceAtApplication) + HRESULT ( STDMETHODCALLTYPE *CreateInstanceAtApplication )( + IDebugApplication32 * This, + /* [in] */ REFCLSID rclsid, + /* [in] */ IUnknown *pUnkOuter, + /* [in] */ DWORD dwClsContext, + /* [in] */ REFIID riid, + /* [iid_is][out] */ IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, QueryAlive) + HRESULT ( STDMETHODCALLTYPE *QueryAlive )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, EnumThreads) + HRESULT ( STDMETHODCALLTYPE *EnumThreads )( + IDebugApplication32 * This, + /* [out] */ IEnumRemoteDebugApplicationThreads **pperdat); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + IDebugApplication32 * This, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, GetRootNode) + HRESULT ( STDMETHODCALLTYPE *GetRootNode )( + IDebugApplication32 * This, + /* [out] */ IDebugApplicationNode **ppdanRoot); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, EnumGlobalExpressionContexts) + HRESULT ( STDMETHODCALLTYPE *EnumGlobalExpressionContexts )( + IDebugApplication32 * This, + /* [out] */ IEnumDebugExpressionContexts **ppedec); + + DECLSPEC_XFGVIRT(IDebugApplication32, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + IDebugApplication32 * This, + /* [in] */ LPCOLESTR pstrName); + + DECLSPEC_XFGVIRT(IDebugApplication32, StepOutComplete) + HRESULT ( STDMETHODCALLTYPE *StepOutComplete )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IDebugApplication32, DebugOutput) + HRESULT ( STDMETHODCALLTYPE *DebugOutput )( + IDebugApplication32 * This, + /* [in] */ LPCOLESTR pstr); + + DECLSPEC_XFGVIRT(IDebugApplication32, StartDebugSession) + HRESULT ( STDMETHODCALLTYPE *StartDebugSession )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IDebugApplication32, HandleBreakPoint) + HRESULT ( STDMETHODCALLTYPE *HandleBreakPoint )( + IDebugApplication32 * This, + /* [in] */ BREAKREASON br, + /* [out] */ BREAKRESUMEACTION *pbra); + + DECLSPEC_XFGVIRT(IDebugApplication32, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IDebugApplication32, GetBreakFlags) + HRESULT ( STDMETHODCALLTYPE *GetBreakFlags )( + IDebugApplication32 * This, + /* [out] */ APPBREAKFLAGS *pabf, + /* [out] */ IRemoteDebugApplicationThread **pprdatSteppingThread); + + DECLSPEC_XFGVIRT(IDebugApplication32, GetCurrentThread) + HRESULT ( STDMETHODCALLTYPE *GetCurrentThread )( + IDebugApplication32 * This, + /* [out] */ IDebugApplicationThread **pat); + + DECLSPEC_XFGVIRT(IDebugApplication32, CreateAsyncDebugOperation) + HRESULT ( STDMETHODCALLTYPE *CreateAsyncDebugOperation )( + IDebugApplication32 * This, + /* [in] */ IDebugSyncOperation *psdo, + /* [out] */ IDebugAsyncOperation **ppado); + + DECLSPEC_XFGVIRT(IDebugApplication32, AddStackFrameSniffer) + HRESULT ( STDMETHODCALLTYPE *AddStackFrameSniffer )( + IDebugApplication32 * This, + /* [in] */ IDebugStackFrameSniffer *pdsfs, + /* [out] */ DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(IDebugApplication32, RemoveStackFrameSniffer) + HRESULT ( STDMETHODCALLTYPE *RemoveStackFrameSniffer )( + IDebugApplication32 * This, + /* [in] */ DWORD dwCookie); + + DECLSPEC_XFGVIRT(IDebugApplication32, QueryCurrentThreadIsDebuggerThread) + HRESULT ( STDMETHODCALLTYPE *QueryCurrentThreadIsDebuggerThread )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IDebugApplication32, SynchronousCallInDebuggerThread) + HRESULT ( STDMETHODCALLTYPE *SynchronousCallInDebuggerThread )( + IDebugApplication32 * This, + /* [in] */ IDebugThreadCall32 *pptc, + /* [in] */ DWORD dwParam1, + /* [in] */ DWORD dwParam2, + /* [in] */ DWORD dwParam3); + + DECLSPEC_XFGVIRT(IDebugApplication32, CreateApplicationNode) + HRESULT ( STDMETHODCALLTYPE *CreateApplicationNode )( + IDebugApplication32 * This, + /* [out] */ IDebugApplicationNode **ppdanNew); + + DECLSPEC_XFGVIRT(IDebugApplication32, FireDebuggerEvent) + HRESULT ( STDMETHODCALLTYPE *FireDebuggerEvent )( + IDebugApplication32 * This, + /* [in] */ REFGUID riid, + /* [in] */ IUnknown *punk); + + DECLSPEC_XFGVIRT(IDebugApplication32, HandleRuntimeError) + HRESULT ( STDMETHODCALLTYPE *HandleRuntimeError )( + IDebugApplication32 * This, + /* [in] */ IActiveScriptErrorDebug *pErrorDebug, + /* [in] */ IActiveScriptSite *pScriptSite, + /* [out] */ BREAKRESUMEACTION *pbra, + /* [out] */ ERRORRESUMEACTION *perra, + /* [out] */ BOOL *pfCallOnScriptError); + + DECLSPEC_XFGVIRT(IDebugApplication32, FCanJitDebug) + BOOL ( STDMETHODCALLTYPE *FCanJitDebug )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IDebugApplication32, FIsAutoJitDebugEnabled) + BOOL ( STDMETHODCALLTYPE *FIsAutoJitDebugEnabled )( + IDebugApplication32 * This); + + DECLSPEC_XFGVIRT(IDebugApplication32, AddGlobalExpressionContextProvider) + HRESULT ( STDMETHODCALLTYPE *AddGlobalExpressionContextProvider )( + IDebugApplication32 * This, + /* [in] */ IProvideExpressionContexts *pdsfs, + /* [out] */ DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(IDebugApplication32, RemoveGlobalExpressionContextProvider) + HRESULT ( STDMETHODCALLTYPE *RemoveGlobalExpressionContextProvider )( + IDebugApplication32 * This, + /* [in] */ DWORD dwCookie); + + END_INTERFACE + } IDebugApplication32Vtbl; + + interface IDebugApplication32 + { + CONST_VTBL struct IDebugApplication32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplication32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplication32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplication32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplication32_ResumeFromBreakPoint(This,prptFocus,bra,era) \ + ( (This)->lpVtbl -> ResumeFromBreakPoint(This,prptFocus,bra,era) ) + +#define IDebugApplication32_CauseBreak(This) \ + ( (This)->lpVtbl -> CauseBreak(This) ) + +#define IDebugApplication32_ConnectDebugger(This,pad) \ + ( (This)->lpVtbl -> ConnectDebugger(This,pad) ) + +#define IDebugApplication32_DisconnectDebugger(This) \ + ( (This)->lpVtbl -> DisconnectDebugger(This) ) + +#define IDebugApplication32_GetDebugger(This,pad) \ + ( (This)->lpVtbl -> GetDebugger(This,pad) ) + +#define IDebugApplication32_CreateInstanceAtApplication(This,rclsid,pUnkOuter,dwClsContext,riid,ppvObject) \ + ( (This)->lpVtbl -> CreateInstanceAtApplication(This,rclsid,pUnkOuter,dwClsContext,riid,ppvObject) ) + +#define IDebugApplication32_QueryAlive(This) \ + ( (This)->lpVtbl -> QueryAlive(This) ) + +#define IDebugApplication32_EnumThreads(This,pperdat) \ + ( (This)->lpVtbl -> EnumThreads(This,pperdat) ) + +#define IDebugApplication32_GetName(This,pbstrName) \ + ( (This)->lpVtbl -> GetName(This,pbstrName) ) + +#define IDebugApplication32_GetRootNode(This,ppdanRoot) \ + ( (This)->lpVtbl -> GetRootNode(This,ppdanRoot) ) + +#define IDebugApplication32_EnumGlobalExpressionContexts(This,ppedec) \ + ( (This)->lpVtbl -> EnumGlobalExpressionContexts(This,ppedec) ) + + +#define IDebugApplication32_SetName(This,pstrName) \ + ( (This)->lpVtbl -> SetName(This,pstrName) ) + +#define IDebugApplication32_StepOutComplete(This) \ + ( (This)->lpVtbl -> StepOutComplete(This) ) + +#define IDebugApplication32_DebugOutput(This,pstr) \ + ( (This)->lpVtbl -> DebugOutput(This,pstr) ) + +#define IDebugApplication32_StartDebugSession(This) \ + ( (This)->lpVtbl -> StartDebugSession(This) ) + +#define IDebugApplication32_HandleBreakPoint(This,br,pbra) \ + ( (This)->lpVtbl -> HandleBreakPoint(This,br,pbra) ) + +#define IDebugApplication32_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define IDebugApplication32_GetBreakFlags(This,pabf,pprdatSteppingThread) \ + ( (This)->lpVtbl -> GetBreakFlags(This,pabf,pprdatSteppingThread) ) + +#define IDebugApplication32_GetCurrentThread(This,pat) \ + ( (This)->lpVtbl -> GetCurrentThread(This,pat) ) + +#define IDebugApplication32_CreateAsyncDebugOperation(This,psdo,ppado) \ + ( (This)->lpVtbl -> CreateAsyncDebugOperation(This,psdo,ppado) ) + +#define IDebugApplication32_AddStackFrameSniffer(This,pdsfs,pdwCookie) \ + ( (This)->lpVtbl -> AddStackFrameSniffer(This,pdsfs,pdwCookie) ) + +#define IDebugApplication32_RemoveStackFrameSniffer(This,dwCookie) \ + ( (This)->lpVtbl -> RemoveStackFrameSniffer(This,dwCookie) ) + +#define IDebugApplication32_QueryCurrentThreadIsDebuggerThread(This) \ + ( (This)->lpVtbl -> QueryCurrentThreadIsDebuggerThread(This) ) + +#define IDebugApplication32_SynchronousCallInDebuggerThread(This,pptc,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> SynchronousCallInDebuggerThread(This,pptc,dwParam1,dwParam2,dwParam3) ) + +#define IDebugApplication32_CreateApplicationNode(This,ppdanNew) \ + ( (This)->lpVtbl -> CreateApplicationNode(This,ppdanNew) ) + +#define IDebugApplication32_FireDebuggerEvent(This,riid,punk) \ + ( (This)->lpVtbl -> FireDebuggerEvent(This,riid,punk) ) + +#define IDebugApplication32_HandleRuntimeError(This,pErrorDebug,pScriptSite,pbra,perra,pfCallOnScriptError) \ + ( (This)->lpVtbl -> HandleRuntimeError(This,pErrorDebug,pScriptSite,pbra,perra,pfCallOnScriptError) ) + +#define IDebugApplication32_FCanJitDebug(This) \ + ( (This)->lpVtbl -> FCanJitDebug(This) ) + +#define IDebugApplication32_FIsAutoJitDebugEnabled(This) \ + ( (This)->lpVtbl -> FIsAutoJitDebugEnabled(This) ) + +#define IDebugApplication32_AddGlobalExpressionContextProvider(This,pdsfs,pdwCookie) \ + ( (This)->lpVtbl -> AddGlobalExpressionContextProvider(This,pdsfs,pdwCookie) ) + +#define IDebugApplication32_RemoveGlobalExpressionContextProvider(This,dwCookie) \ + ( (This)->lpVtbl -> RemoveGlobalExpressionContextProvider(This,dwCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplication32_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugApplication64_INTERFACE_DEFINED__ +#define __IDebugApplication64_INTERFACE_DEFINED__ + +/* interface IDebugApplication64 */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplication64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4dedc754-04c7-4f10-9e60-16a390fe6e62") + IDebugApplication64 : public IRemoteDebugApplication + { + public: + virtual HRESULT STDMETHODCALLTYPE SetName( + /* [in] */ LPCOLESTR pstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE StepOutComplete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE DebugOutput( + /* [in] */ LPCOLESTR pstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE StartDebugSession( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE HandleBreakPoint( + /* [in] */ BREAKREASON br, + /* [out] */ BREAKRESUMEACTION *pbra) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBreakFlags( + /* [out] */ APPBREAKFLAGS *pabf, + /* [out] */ IRemoteDebugApplicationThread **pprdatSteppingThread) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentThread( + /* [out] */ IDebugApplicationThread **pat) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateAsyncDebugOperation( + /* [in] */ IDebugSyncOperation *psdo, + /* [out] */ IDebugAsyncOperation **ppado) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddStackFrameSniffer( + /* [in] */ IDebugStackFrameSniffer *pdsfs, + /* [out] */ DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveStackFrameSniffer( + /* [in] */ DWORD dwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryCurrentThreadIsDebuggerThread( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SynchronousCallInDebuggerThread( + /* [in] */ IDebugThreadCall64 *pptc, + /* [in] */ DWORDLONG dwParam1, + /* [in] */ DWORDLONG dwParam2, + /* [in] */ DWORDLONG dwParam3) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateApplicationNode( + /* [out] */ IDebugApplicationNode **ppdanNew) = 0; + + virtual HRESULT STDMETHODCALLTYPE FireDebuggerEvent( + /* [in] */ REFGUID riid, + /* [in] */ IUnknown *punk) = 0; + + virtual HRESULT STDMETHODCALLTYPE HandleRuntimeError( + /* [in] */ IActiveScriptErrorDebug *pErrorDebug, + /* [in] */ IActiveScriptSite *pScriptSite, + /* [out] */ BREAKRESUMEACTION *pbra, + /* [out] */ ERRORRESUMEACTION *perra, + /* [out] */ BOOL *pfCallOnScriptError) = 0; + + virtual BOOL STDMETHODCALLTYPE FCanJitDebug( void) = 0; + + virtual BOOL STDMETHODCALLTYPE FIsAutoJitDebugEnabled( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddGlobalExpressionContextProvider( + /* [in] */ IProvideExpressionContexts *pdsfs, + /* [out] */ DWORDLONG *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveGlobalExpressionContextProvider( + /* [in] */ DWORDLONG dwCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplication64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugApplication64 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, ResumeFromBreakPoint) + HRESULT ( STDMETHODCALLTYPE *ResumeFromBreakPoint )( + IDebugApplication64 * This, + /* [in] */ IRemoteDebugApplicationThread *prptFocus, + /* [in] */ BREAKRESUMEACTION bra, + /* [in] */ ERRORRESUMEACTION era); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, CauseBreak) + HRESULT ( STDMETHODCALLTYPE *CauseBreak )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, ConnectDebugger) + HRESULT ( STDMETHODCALLTYPE *ConnectDebugger )( + IDebugApplication64 * This, + /* [in] */ IApplicationDebugger *pad); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, DisconnectDebugger) + HRESULT ( STDMETHODCALLTYPE *DisconnectDebugger )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, GetDebugger) + HRESULT ( STDMETHODCALLTYPE *GetDebugger )( + IDebugApplication64 * This, + /* [out] */ IApplicationDebugger **pad); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, CreateInstanceAtApplication) + HRESULT ( STDMETHODCALLTYPE *CreateInstanceAtApplication )( + IDebugApplication64 * This, + /* [in] */ REFCLSID rclsid, + /* [in] */ IUnknown *pUnkOuter, + /* [in] */ DWORD dwClsContext, + /* [in] */ REFIID riid, + /* [iid_is][out] */ IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, QueryAlive) + HRESULT ( STDMETHODCALLTYPE *QueryAlive )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, EnumThreads) + HRESULT ( STDMETHODCALLTYPE *EnumThreads )( + IDebugApplication64 * This, + /* [out] */ IEnumRemoteDebugApplicationThreads **pperdat); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + IDebugApplication64 * This, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, GetRootNode) + HRESULT ( STDMETHODCALLTYPE *GetRootNode )( + IDebugApplication64 * This, + /* [out] */ IDebugApplicationNode **ppdanRoot); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication, EnumGlobalExpressionContexts) + HRESULT ( STDMETHODCALLTYPE *EnumGlobalExpressionContexts )( + IDebugApplication64 * This, + /* [out] */ IEnumDebugExpressionContexts **ppedec); + + DECLSPEC_XFGVIRT(IDebugApplication64, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + IDebugApplication64 * This, + /* [in] */ LPCOLESTR pstrName); + + DECLSPEC_XFGVIRT(IDebugApplication64, StepOutComplete) + HRESULT ( STDMETHODCALLTYPE *StepOutComplete )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IDebugApplication64, DebugOutput) + HRESULT ( STDMETHODCALLTYPE *DebugOutput )( + IDebugApplication64 * This, + /* [in] */ LPCOLESTR pstr); + + DECLSPEC_XFGVIRT(IDebugApplication64, StartDebugSession) + HRESULT ( STDMETHODCALLTYPE *StartDebugSession )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IDebugApplication64, HandleBreakPoint) + HRESULT ( STDMETHODCALLTYPE *HandleBreakPoint )( + IDebugApplication64 * This, + /* [in] */ BREAKREASON br, + /* [out] */ BREAKRESUMEACTION *pbra); + + DECLSPEC_XFGVIRT(IDebugApplication64, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IDebugApplication64, GetBreakFlags) + HRESULT ( STDMETHODCALLTYPE *GetBreakFlags )( + IDebugApplication64 * This, + /* [out] */ APPBREAKFLAGS *pabf, + /* [out] */ IRemoteDebugApplicationThread **pprdatSteppingThread); + + DECLSPEC_XFGVIRT(IDebugApplication64, GetCurrentThread) + HRESULT ( STDMETHODCALLTYPE *GetCurrentThread )( + IDebugApplication64 * This, + /* [out] */ IDebugApplicationThread **pat); + + DECLSPEC_XFGVIRT(IDebugApplication64, CreateAsyncDebugOperation) + HRESULT ( STDMETHODCALLTYPE *CreateAsyncDebugOperation )( + IDebugApplication64 * This, + /* [in] */ IDebugSyncOperation *psdo, + /* [out] */ IDebugAsyncOperation **ppado); + + DECLSPEC_XFGVIRT(IDebugApplication64, AddStackFrameSniffer) + HRESULT ( STDMETHODCALLTYPE *AddStackFrameSniffer )( + IDebugApplication64 * This, + /* [in] */ IDebugStackFrameSniffer *pdsfs, + /* [out] */ DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(IDebugApplication64, RemoveStackFrameSniffer) + HRESULT ( STDMETHODCALLTYPE *RemoveStackFrameSniffer )( + IDebugApplication64 * This, + /* [in] */ DWORD dwCookie); + + DECLSPEC_XFGVIRT(IDebugApplication64, QueryCurrentThreadIsDebuggerThread) + HRESULT ( STDMETHODCALLTYPE *QueryCurrentThreadIsDebuggerThread )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IDebugApplication64, SynchronousCallInDebuggerThread) + HRESULT ( STDMETHODCALLTYPE *SynchronousCallInDebuggerThread )( + IDebugApplication64 * This, + /* [in] */ IDebugThreadCall64 *pptc, + /* [in] */ DWORDLONG dwParam1, + /* [in] */ DWORDLONG dwParam2, + /* [in] */ DWORDLONG dwParam3); + + DECLSPEC_XFGVIRT(IDebugApplication64, CreateApplicationNode) + HRESULT ( STDMETHODCALLTYPE *CreateApplicationNode )( + IDebugApplication64 * This, + /* [out] */ IDebugApplicationNode **ppdanNew); + + DECLSPEC_XFGVIRT(IDebugApplication64, FireDebuggerEvent) + HRESULT ( STDMETHODCALLTYPE *FireDebuggerEvent )( + IDebugApplication64 * This, + /* [in] */ REFGUID riid, + /* [in] */ IUnknown *punk); + + DECLSPEC_XFGVIRT(IDebugApplication64, HandleRuntimeError) + HRESULT ( STDMETHODCALLTYPE *HandleRuntimeError )( + IDebugApplication64 * This, + /* [in] */ IActiveScriptErrorDebug *pErrorDebug, + /* [in] */ IActiveScriptSite *pScriptSite, + /* [out] */ BREAKRESUMEACTION *pbra, + /* [out] */ ERRORRESUMEACTION *perra, + /* [out] */ BOOL *pfCallOnScriptError); + + DECLSPEC_XFGVIRT(IDebugApplication64, FCanJitDebug) + BOOL ( STDMETHODCALLTYPE *FCanJitDebug )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IDebugApplication64, FIsAutoJitDebugEnabled) + BOOL ( STDMETHODCALLTYPE *FIsAutoJitDebugEnabled )( + IDebugApplication64 * This); + + DECLSPEC_XFGVIRT(IDebugApplication64, AddGlobalExpressionContextProvider) + HRESULT ( STDMETHODCALLTYPE *AddGlobalExpressionContextProvider )( + IDebugApplication64 * This, + /* [in] */ IProvideExpressionContexts *pdsfs, + /* [out] */ DWORDLONG *pdwCookie); + + DECLSPEC_XFGVIRT(IDebugApplication64, RemoveGlobalExpressionContextProvider) + HRESULT ( STDMETHODCALLTYPE *RemoveGlobalExpressionContextProvider )( + IDebugApplication64 * This, + /* [in] */ DWORDLONG dwCookie); + + END_INTERFACE + } IDebugApplication64Vtbl; + + interface IDebugApplication64 + { + CONST_VTBL struct IDebugApplication64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplication64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplication64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplication64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplication64_ResumeFromBreakPoint(This,prptFocus,bra,era) \ + ( (This)->lpVtbl -> ResumeFromBreakPoint(This,prptFocus,bra,era) ) + +#define IDebugApplication64_CauseBreak(This) \ + ( (This)->lpVtbl -> CauseBreak(This) ) + +#define IDebugApplication64_ConnectDebugger(This,pad) \ + ( (This)->lpVtbl -> ConnectDebugger(This,pad) ) + +#define IDebugApplication64_DisconnectDebugger(This) \ + ( (This)->lpVtbl -> DisconnectDebugger(This) ) + +#define IDebugApplication64_GetDebugger(This,pad) \ + ( (This)->lpVtbl -> GetDebugger(This,pad) ) + +#define IDebugApplication64_CreateInstanceAtApplication(This,rclsid,pUnkOuter,dwClsContext,riid,ppvObject) \ + ( (This)->lpVtbl -> CreateInstanceAtApplication(This,rclsid,pUnkOuter,dwClsContext,riid,ppvObject) ) + +#define IDebugApplication64_QueryAlive(This) \ + ( (This)->lpVtbl -> QueryAlive(This) ) + +#define IDebugApplication64_EnumThreads(This,pperdat) \ + ( (This)->lpVtbl -> EnumThreads(This,pperdat) ) + +#define IDebugApplication64_GetName(This,pbstrName) \ + ( (This)->lpVtbl -> GetName(This,pbstrName) ) + +#define IDebugApplication64_GetRootNode(This,ppdanRoot) \ + ( (This)->lpVtbl -> GetRootNode(This,ppdanRoot) ) + +#define IDebugApplication64_EnumGlobalExpressionContexts(This,ppedec) \ + ( (This)->lpVtbl -> EnumGlobalExpressionContexts(This,ppedec) ) + + +#define IDebugApplication64_SetName(This,pstrName) \ + ( (This)->lpVtbl -> SetName(This,pstrName) ) + +#define IDebugApplication64_StepOutComplete(This) \ + ( (This)->lpVtbl -> StepOutComplete(This) ) + +#define IDebugApplication64_DebugOutput(This,pstr) \ + ( (This)->lpVtbl -> DebugOutput(This,pstr) ) + +#define IDebugApplication64_StartDebugSession(This) \ + ( (This)->lpVtbl -> StartDebugSession(This) ) + +#define IDebugApplication64_HandleBreakPoint(This,br,pbra) \ + ( (This)->lpVtbl -> HandleBreakPoint(This,br,pbra) ) + +#define IDebugApplication64_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define IDebugApplication64_GetBreakFlags(This,pabf,pprdatSteppingThread) \ + ( (This)->lpVtbl -> GetBreakFlags(This,pabf,pprdatSteppingThread) ) + +#define IDebugApplication64_GetCurrentThread(This,pat) \ + ( (This)->lpVtbl -> GetCurrentThread(This,pat) ) + +#define IDebugApplication64_CreateAsyncDebugOperation(This,psdo,ppado) \ + ( (This)->lpVtbl -> CreateAsyncDebugOperation(This,psdo,ppado) ) + +#define IDebugApplication64_AddStackFrameSniffer(This,pdsfs,pdwCookie) \ + ( (This)->lpVtbl -> AddStackFrameSniffer(This,pdsfs,pdwCookie) ) + +#define IDebugApplication64_RemoveStackFrameSniffer(This,dwCookie) \ + ( (This)->lpVtbl -> RemoveStackFrameSniffer(This,dwCookie) ) + +#define IDebugApplication64_QueryCurrentThreadIsDebuggerThread(This) \ + ( (This)->lpVtbl -> QueryCurrentThreadIsDebuggerThread(This) ) + +#define IDebugApplication64_SynchronousCallInDebuggerThread(This,pptc,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> SynchronousCallInDebuggerThread(This,pptc,dwParam1,dwParam2,dwParam3) ) + +#define IDebugApplication64_CreateApplicationNode(This,ppdanNew) \ + ( (This)->lpVtbl -> CreateApplicationNode(This,ppdanNew) ) + +#define IDebugApplication64_FireDebuggerEvent(This,riid,punk) \ + ( (This)->lpVtbl -> FireDebuggerEvent(This,riid,punk) ) + +#define IDebugApplication64_HandleRuntimeError(This,pErrorDebug,pScriptSite,pbra,perra,pfCallOnScriptError) \ + ( (This)->lpVtbl -> HandleRuntimeError(This,pErrorDebug,pScriptSite,pbra,perra,pfCallOnScriptError) ) + +#define IDebugApplication64_FCanJitDebug(This) \ + ( (This)->lpVtbl -> FCanJitDebug(This) ) + +#define IDebugApplication64_FIsAutoJitDebugEnabled(This) \ + ( (This)->lpVtbl -> FIsAutoJitDebugEnabled(This) ) + +#define IDebugApplication64_AddGlobalExpressionContextProvider(This,pdsfs,pdwCookie) \ + ( (This)->lpVtbl -> AddGlobalExpressionContextProvider(This,pdsfs,pdwCookie) ) + +#define IDebugApplication64_RemoveGlobalExpressionContextProvider(This,dwCookie) \ + ( (This)->lpVtbl -> RemoveGlobalExpressionContextProvider(This,dwCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplication64_INTERFACE_DEFINED__ */ + + +#ifndef __IRemoteDebugApplicationEvents_INTERFACE_DEFINED__ +#define __IRemoteDebugApplicationEvents_INTERFACE_DEFINED__ + +/* interface IRemoteDebugApplicationEvents */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IRemoteDebugApplicationEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C33-CB0C-11d0-B5C9-00A0244A0E7A") + IRemoteDebugApplicationEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnConnectDebugger( + /* [in] */ __RPC__in_opt IApplicationDebugger *pad) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnDisconnectDebugger( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnSetName( + /* [in] */ __RPC__in LPCOLESTR pstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnDebugOutput( + /* [in] */ __RPC__in LPCOLESTR pstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnClose( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnEnterBreakPoint( + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prdat) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnLeaveBreakPoint( + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prdat) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCreateThread( + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prdat) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnDestroyThread( + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prdat) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnBreakFlagChange( + /* [in] */ APPBREAKFLAGS abf, + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prdatSteppingThread) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRemoteDebugApplicationEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRemoteDebugApplicationEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRemoteDebugApplicationEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRemoteDebugApplicationEvents * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationEvents, OnConnectDebugger) + HRESULT ( STDMETHODCALLTYPE *OnConnectDebugger )( + __RPC__in IRemoteDebugApplicationEvents * This, + /* [in] */ __RPC__in_opt IApplicationDebugger *pad); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationEvents, OnDisconnectDebugger) + HRESULT ( STDMETHODCALLTYPE *OnDisconnectDebugger )( + __RPC__in IRemoteDebugApplicationEvents * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationEvents, OnSetName) + HRESULT ( STDMETHODCALLTYPE *OnSetName )( + __RPC__in IRemoteDebugApplicationEvents * This, + /* [in] */ __RPC__in LPCOLESTR pstrName); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationEvents, OnDebugOutput) + HRESULT ( STDMETHODCALLTYPE *OnDebugOutput )( + __RPC__in IRemoteDebugApplicationEvents * This, + /* [in] */ __RPC__in LPCOLESTR pstr); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationEvents, OnClose) + HRESULT ( STDMETHODCALLTYPE *OnClose )( + __RPC__in IRemoteDebugApplicationEvents * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationEvents, OnEnterBreakPoint) + HRESULT ( STDMETHODCALLTYPE *OnEnterBreakPoint )( + __RPC__in IRemoteDebugApplicationEvents * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prdat); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationEvents, OnLeaveBreakPoint) + HRESULT ( STDMETHODCALLTYPE *OnLeaveBreakPoint )( + __RPC__in IRemoteDebugApplicationEvents * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prdat); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationEvents, OnCreateThread) + HRESULT ( STDMETHODCALLTYPE *OnCreateThread )( + __RPC__in IRemoteDebugApplicationEvents * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prdat); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationEvents, OnDestroyThread) + HRESULT ( STDMETHODCALLTYPE *OnDestroyThread )( + __RPC__in IRemoteDebugApplicationEvents * This, + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prdat); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationEvents, OnBreakFlagChange) + HRESULT ( STDMETHODCALLTYPE *OnBreakFlagChange )( + __RPC__in IRemoteDebugApplicationEvents * This, + /* [in] */ APPBREAKFLAGS abf, + /* [in] */ __RPC__in_opt IRemoteDebugApplicationThread *prdatSteppingThread); + + END_INTERFACE + } IRemoteDebugApplicationEventsVtbl; + + interface IRemoteDebugApplicationEvents + { + CONST_VTBL struct IRemoteDebugApplicationEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRemoteDebugApplicationEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRemoteDebugApplicationEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRemoteDebugApplicationEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRemoteDebugApplicationEvents_OnConnectDebugger(This,pad) \ + ( (This)->lpVtbl -> OnConnectDebugger(This,pad) ) + +#define IRemoteDebugApplicationEvents_OnDisconnectDebugger(This) \ + ( (This)->lpVtbl -> OnDisconnectDebugger(This) ) + +#define IRemoteDebugApplicationEvents_OnSetName(This,pstrName) \ + ( (This)->lpVtbl -> OnSetName(This,pstrName) ) + +#define IRemoteDebugApplicationEvents_OnDebugOutput(This,pstr) \ + ( (This)->lpVtbl -> OnDebugOutput(This,pstr) ) + +#define IRemoteDebugApplicationEvents_OnClose(This) \ + ( (This)->lpVtbl -> OnClose(This) ) + +#define IRemoteDebugApplicationEvents_OnEnterBreakPoint(This,prdat) \ + ( (This)->lpVtbl -> OnEnterBreakPoint(This,prdat) ) + +#define IRemoteDebugApplicationEvents_OnLeaveBreakPoint(This,prdat) \ + ( (This)->lpVtbl -> OnLeaveBreakPoint(This,prdat) ) + +#define IRemoteDebugApplicationEvents_OnCreateThread(This,prdat) \ + ( (This)->lpVtbl -> OnCreateThread(This,prdat) ) + +#define IRemoteDebugApplicationEvents_OnDestroyThread(This,prdat) \ + ( (This)->lpVtbl -> OnDestroyThread(This,prdat) ) + +#define IRemoteDebugApplicationEvents_OnBreakFlagChange(This,abf,prdatSteppingThread) \ + ( (This)->lpVtbl -> OnBreakFlagChange(This,abf,prdatSteppingThread) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRemoteDebugApplicationEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugApplicationNode_INTERFACE_DEFINED__ +#define __IDebugApplicationNode_INTERFACE_DEFINED__ + +/* interface IDebugApplicationNode */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplicationNode; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C34-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugApplicationNode : public IDebugDocumentProvider + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumChildren( + /* [out] */ __RPC__deref_out_opt IEnumDebugApplicationNodes **pperddp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParent( + /* [out] */ __RPC__deref_out_opt IDebugApplicationNode **pprddp) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDocumentProvider( + /* [in] */ __RPC__in_opt IDebugDocumentProvider *pddp) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Attach( + /* [in] */ __RPC__in_opt IDebugApplicationNode *pdanParent) = 0; + + virtual HRESULT STDMETHODCALLTYPE Detach( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplicationNodeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugApplicationNode * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugApplicationNode * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugApplicationNode * This); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDebugApplicationNode * This, + /* [in] */ DOCUMENTNAMETYPE dnt, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDebugDocumentInfo, GetDocumentClassId) + HRESULT ( STDMETHODCALLTYPE *GetDocumentClassId )( + __RPC__in IDebugApplicationNode * This, + /* [out] */ __RPC__out CLSID *pclsidDocument); + + DECLSPEC_XFGVIRT(IDebugDocumentProvider, GetDocument) + HRESULT ( STDMETHODCALLTYPE *GetDocument )( + __RPC__in IDebugApplicationNode * This, + /* [out] */ __RPC__deref_out_opt IDebugDocument **ppssd); + + DECLSPEC_XFGVIRT(IDebugApplicationNode, EnumChildren) + HRESULT ( STDMETHODCALLTYPE *EnumChildren )( + __RPC__in IDebugApplicationNode * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugApplicationNodes **pperddp); + + DECLSPEC_XFGVIRT(IDebugApplicationNode, GetParent) + HRESULT ( STDMETHODCALLTYPE *GetParent )( + __RPC__in IDebugApplicationNode * This, + /* [out] */ __RPC__deref_out_opt IDebugApplicationNode **pprddp); + + DECLSPEC_XFGVIRT(IDebugApplicationNode, SetDocumentProvider) + HRESULT ( STDMETHODCALLTYPE *SetDocumentProvider )( + __RPC__in IDebugApplicationNode * This, + /* [in] */ __RPC__in_opt IDebugDocumentProvider *pddp); + + DECLSPEC_XFGVIRT(IDebugApplicationNode, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IDebugApplicationNode * This); + + DECLSPEC_XFGVIRT(IDebugApplicationNode, Attach) + HRESULT ( STDMETHODCALLTYPE *Attach )( + __RPC__in IDebugApplicationNode * This, + /* [in] */ __RPC__in_opt IDebugApplicationNode *pdanParent); + + DECLSPEC_XFGVIRT(IDebugApplicationNode, Detach) + HRESULT ( STDMETHODCALLTYPE *Detach )( + __RPC__in IDebugApplicationNode * This); + + END_INTERFACE + } IDebugApplicationNodeVtbl; + + interface IDebugApplicationNode + { + CONST_VTBL struct IDebugApplicationNodeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplicationNode_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplicationNode_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplicationNode_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplicationNode_GetName(This,dnt,pbstrName) \ + ( (This)->lpVtbl -> GetName(This,dnt,pbstrName) ) + +#define IDebugApplicationNode_GetDocumentClassId(This,pclsidDocument) \ + ( (This)->lpVtbl -> GetDocumentClassId(This,pclsidDocument) ) + + +#define IDebugApplicationNode_GetDocument(This,ppssd) \ + ( (This)->lpVtbl -> GetDocument(This,ppssd) ) + + +#define IDebugApplicationNode_EnumChildren(This,pperddp) \ + ( (This)->lpVtbl -> EnumChildren(This,pperddp) ) + +#define IDebugApplicationNode_GetParent(This,pprddp) \ + ( (This)->lpVtbl -> GetParent(This,pprddp) ) + +#define IDebugApplicationNode_SetDocumentProvider(This,pddp) \ + ( (This)->lpVtbl -> SetDocumentProvider(This,pddp) ) + +#define IDebugApplicationNode_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define IDebugApplicationNode_Attach(This,pdanParent) \ + ( (This)->lpVtbl -> Attach(This,pdanParent) ) + +#define IDebugApplicationNode_Detach(This) \ + ( (This)->lpVtbl -> Detach(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplicationNode_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugApplicationNodeEvents_INTERFACE_DEFINED__ +#define __IDebugApplicationNodeEvents_INTERFACE_DEFINED__ + +/* interface IDebugApplicationNodeEvents */ +/* [unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplicationNodeEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C35-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugApplicationNodeEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE onAddChild( + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpChild) = 0; + + virtual HRESULT STDMETHODCALLTYPE onRemoveChild( + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpChild) = 0; + + virtual HRESULT STDMETHODCALLTYPE onDetach( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE onAttach( + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpParent) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplicationNodeEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugApplicationNodeEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugApplicationNodeEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugApplicationNodeEvents * This); + + DECLSPEC_XFGVIRT(IDebugApplicationNodeEvents, onAddChild) + HRESULT ( STDMETHODCALLTYPE *onAddChild )( + __RPC__in IDebugApplicationNodeEvents * This, + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpChild); + + DECLSPEC_XFGVIRT(IDebugApplicationNodeEvents, onRemoveChild) + HRESULT ( STDMETHODCALLTYPE *onRemoveChild )( + __RPC__in IDebugApplicationNodeEvents * This, + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpChild); + + DECLSPEC_XFGVIRT(IDebugApplicationNodeEvents, onDetach) + HRESULT ( STDMETHODCALLTYPE *onDetach )( + __RPC__in IDebugApplicationNodeEvents * This); + + DECLSPEC_XFGVIRT(IDebugApplicationNodeEvents, onAttach) + HRESULT ( STDMETHODCALLTYPE *onAttach )( + __RPC__in IDebugApplicationNodeEvents * This, + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpParent); + + END_INTERFACE + } IDebugApplicationNodeEventsVtbl; + + interface IDebugApplicationNodeEvents + { + CONST_VTBL struct IDebugApplicationNodeEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplicationNodeEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplicationNodeEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplicationNodeEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplicationNodeEvents_onAddChild(This,prddpChild) \ + ( (This)->lpVtbl -> onAddChild(This,prddpChild) ) + +#define IDebugApplicationNodeEvents_onRemoveChild(This,prddpChild) \ + ( (This)->lpVtbl -> onRemoveChild(This,prddpChild) ) + +#define IDebugApplicationNodeEvents_onDetach(This) \ + ( (This)->lpVtbl -> onDetach(This) ) + +#define IDebugApplicationNodeEvents_onAttach(This,prddpParent) \ + ( (This)->lpVtbl -> onAttach(This,prddpParent) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplicationNodeEvents_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIDebugApplicationNodeEvents_INTERFACE_DEFINED__ +#define __AsyncIDebugApplicationNodeEvents_INTERFACE_DEFINED__ + +/* interface AsyncIDebugApplicationNodeEvents */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_AsyncIDebugApplicationNodeEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a2e3aa3b-aa8d-4ebf-84cd-648b737b8c13") + AsyncIDebugApplicationNodeEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_onAddChild( + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpChild) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_onAddChild( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_onRemoveChild( + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpChild) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_onRemoveChild( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_onDetach( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_onDetach( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Begin_onAttach( + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpParent) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_onAttach( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIDebugApplicationNodeEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIDebugApplicationNodeEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIDebugApplicationNodeEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIDebugApplicationNodeEvents * This); + + DECLSPEC_XFGVIRT(AsyncIDebugApplicationNodeEvents, Begin_onAddChild) + HRESULT ( STDMETHODCALLTYPE *Begin_onAddChild )( + __RPC__in AsyncIDebugApplicationNodeEvents * This, + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpChild); + + DECLSPEC_XFGVIRT(AsyncIDebugApplicationNodeEvents, Finish_onAddChild) + HRESULT ( STDMETHODCALLTYPE *Finish_onAddChild )( + __RPC__in AsyncIDebugApplicationNodeEvents * This); + + DECLSPEC_XFGVIRT(AsyncIDebugApplicationNodeEvents, Begin_onRemoveChild) + HRESULT ( STDMETHODCALLTYPE *Begin_onRemoveChild )( + __RPC__in AsyncIDebugApplicationNodeEvents * This, + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpChild); + + DECLSPEC_XFGVIRT(AsyncIDebugApplicationNodeEvents, Finish_onRemoveChild) + HRESULT ( STDMETHODCALLTYPE *Finish_onRemoveChild )( + __RPC__in AsyncIDebugApplicationNodeEvents * This); + + DECLSPEC_XFGVIRT(AsyncIDebugApplicationNodeEvents, Begin_onDetach) + HRESULT ( STDMETHODCALLTYPE *Begin_onDetach )( + __RPC__in AsyncIDebugApplicationNodeEvents * This); + + DECLSPEC_XFGVIRT(AsyncIDebugApplicationNodeEvents, Finish_onDetach) + HRESULT ( STDMETHODCALLTYPE *Finish_onDetach )( + __RPC__in AsyncIDebugApplicationNodeEvents * This); + + DECLSPEC_XFGVIRT(AsyncIDebugApplicationNodeEvents, Begin_onAttach) + HRESULT ( STDMETHODCALLTYPE *Begin_onAttach )( + __RPC__in AsyncIDebugApplicationNodeEvents * This, + /* [in] */ __RPC__in_opt IDebugApplicationNode *prddpParent); + + DECLSPEC_XFGVIRT(AsyncIDebugApplicationNodeEvents, Finish_onAttach) + HRESULT ( STDMETHODCALLTYPE *Finish_onAttach )( + __RPC__in AsyncIDebugApplicationNodeEvents * This); + + END_INTERFACE + } AsyncIDebugApplicationNodeEventsVtbl; + + interface AsyncIDebugApplicationNodeEvents + { + CONST_VTBL struct AsyncIDebugApplicationNodeEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIDebugApplicationNodeEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIDebugApplicationNodeEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIDebugApplicationNodeEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIDebugApplicationNodeEvents_Begin_onAddChild(This,prddpChild) \ + ( (This)->lpVtbl -> Begin_onAddChild(This,prddpChild) ) + +#define AsyncIDebugApplicationNodeEvents_Finish_onAddChild(This) \ + ( (This)->lpVtbl -> Finish_onAddChild(This) ) + +#define AsyncIDebugApplicationNodeEvents_Begin_onRemoveChild(This,prddpChild) \ + ( (This)->lpVtbl -> Begin_onRemoveChild(This,prddpChild) ) + +#define AsyncIDebugApplicationNodeEvents_Finish_onRemoveChild(This) \ + ( (This)->lpVtbl -> Finish_onRemoveChild(This) ) + +#define AsyncIDebugApplicationNodeEvents_Begin_onDetach(This) \ + ( (This)->lpVtbl -> Begin_onDetach(This) ) + +#define AsyncIDebugApplicationNodeEvents_Finish_onDetach(This) \ + ( (This)->lpVtbl -> Finish_onDetach(This) ) + +#define AsyncIDebugApplicationNodeEvents_Begin_onAttach(This,prddpParent) \ + ( (This)->lpVtbl -> Begin_onAttach(This,prddpParent) ) + +#define AsyncIDebugApplicationNodeEvents_Finish_onAttach(This) \ + ( (This)->lpVtbl -> Finish_onAttach(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIDebugApplicationNodeEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0045 */ +/* [local] */ + +#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS +#ifdef _WIN64 +#define IDebugThreadCall IDebugThreadCall64 +#define IID_IDebugThreadCall IID_IDebugThreadCall64 +#else +#define IDebugThreadCall IDebugThreadCall32 +#define IID_IDebugThreadCall IID_IDebugThreadCall32 +#endif +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0045_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0045_v0_0_s_ifspec; + +#ifndef __IDebugThreadCall32_INTERFACE_DEFINED__ +#define __IDebugThreadCall32_INTERFACE_DEFINED__ + +/* interface IDebugThreadCall32 */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugThreadCall32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C36-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugThreadCall32 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ThreadCallHandler( + /* [in] */ DWORD dwParam1, + /* [in] */ DWORD dwParam2, + /* [in] */ DWORD dwParam3) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugThreadCall32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugThreadCall32 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugThreadCall32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugThreadCall32 * This); + + DECLSPEC_XFGVIRT(IDebugThreadCall32, ThreadCallHandler) + HRESULT ( STDMETHODCALLTYPE *ThreadCallHandler )( + IDebugThreadCall32 * This, + /* [in] */ DWORD dwParam1, + /* [in] */ DWORD dwParam2, + /* [in] */ DWORD dwParam3); + + END_INTERFACE + } IDebugThreadCall32Vtbl; + + interface IDebugThreadCall32 + { + CONST_VTBL struct IDebugThreadCall32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugThreadCall32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugThreadCall32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugThreadCall32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugThreadCall32_ThreadCallHandler(This,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> ThreadCallHandler(This,dwParam1,dwParam2,dwParam3) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugThreadCall32_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugThreadCall64_INTERFACE_DEFINED__ +#define __IDebugThreadCall64_INTERFACE_DEFINED__ + +/* interface IDebugThreadCall64 */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugThreadCall64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cb3fa335-e979-42fd-9fcf-a7546a0f3905") + IDebugThreadCall64 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ThreadCallHandler( + /* [in] */ DWORDLONG dwParam1, + /* [in] */ DWORDLONG dwParam2, + /* [in] */ DWORDLONG dwParam3) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugThreadCall64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugThreadCall64 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugThreadCall64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugThreadCall64 * This); + + DECLSPEC_XFGVIRT(IDebugThreadCall64, ThreadCallHandler) + HRESULT ( STDMETHODCALLTYPE *ThreadCallHandler )( + IDebugThreadCall64 * This, + /* [in] */ DWORDLONG dwParam1, + /* [in] */ DWORDLONG dwParam2, + /* [in] */ DWORDLONG dwParam3); + + END_INTERFACE + } IDebugThreadCall64Vtbl; + + interface IDebugThreadCall64 + { + CONST_VTBL struct IDebugThreadCall64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugThreadCall64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugThreadCall64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugThreadCall64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugThreadCall64_ThreadCallHandler(This,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> ThreadCallHandler(This,dwParam1,dwParam2,dwParam3) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugThreadCall64_INTERFACE_DEFINED__ */ + + +#ifndef __IRemoteDebugApplicationThread_INTERFACE_DEFINED__ +#define __IRemoteDebugApplicationThread_INTERFACE_DEFINED__ + +/* interface IRemoteDebugApplicationThread */ +/* [unique][uuid][object] */ + +typedef DWORD THREAD_STATE; + +#define THREAD_STATE_RUNNING ( 0x1 ) + +#define THREAD_STATE_SUSPENDED ( 0x2 ) + +#define THREAD_BLOCKED ( 0x4 ) + +#define THREAD_OUT_OF_CONTEXT ( 0x8 ) + + +EXTERN_C const IID IID_IRemoteDebugApplicationThread; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C37-CB0C-11d0-B5C9-00A0244A0E7A") + IRemoteDebugApplicationThread : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSystemThreadId( + /* [out] */ __RPC__out DWORD *dwThreadId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetApplication( + /* [out] */ __RPC__deref_out_opt IRemoteDebugApplication **pprda) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumStackFrames( + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescription( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDescription, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrState) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetNextStatement( + /* [in] */ __RPC__in_opt IDebugStackFrame *pStackFrame, + /* [in] */ __RPC__in_opt IDebugCodeContext *pCodeContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetState( + /* [out] */ __RPC__out DWORD *pState) = 0; + + virtual HRESULT STDMETHODCALLTYPE Suspend( + /* [out] */ __RPC__out DWORD *pdwCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Resume( + /* [out] */ __RPC__out DWORD *pdwCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSuspendCount( + /* [out] */ __RPC__out DWORD *pdwCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRemoteDebugApplicationThreadVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRemoteDebugApplicationThread * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRemoteDebugApplicationThread * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRemoteDebugApplicationThread * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetSystemThreadId) + HRESULT ( STDMETHODCALLTYPE *GetSystemThreadId )( + __RPC__in IRemoteDebugApplicationThread * This, + /* [out] */ __RPC__out DWORD *dwThreadId); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetApplication) + HRESULT ( STDMETHODCALLTYPE *GetApplication )( + __RPC__in IRemoteDebugApplicationThread * This, + /* [out] */ __RPC__deref_out_opt IRemoteDebugApplication **pprda); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, EnumStackFrames) + HRESULT ( STDMETHODCALLTYPE *EnumStackFrames )( + __RPC__in IRemoteDebugApplicationThread * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugStackFrames **ppedsf); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in IRemoteDebugApplicationThread * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDescription, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrState); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, SetNextStatement) + HRESULT ( STDMETHODCALLTYPE *SetNextStatement )( + __RPC__in IRemoteDebugApplicationThread * This, + /* [in] */ __RPC__in_opt IDebugStackFrame *pStackFrame, + /* [in] */ __RPC__in_opt IDebugCodeContext *pCodeContext); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + __RPC__in IRemoteDebugApplicationThread * This, + /* [out] */ __RPC__out DWORD *pState); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + __RPC__in IRemoteDebugApplicationThread * This, + /* [out] */ __RPC__out DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IRemoteDebugApplicationThread * This, + /* [out] */ __RPC__out DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetSuspendCount) + HRESULT ( STDMETHODCALLTYPE *GetSuspendCount )( + __RPC__in IRemoteDebugApplicationThread * This, + /* [out] */ __RPC__out DWORD *pdwCount); + + END_INTERFACE + } IRemoteDebugApplicationThreadVtbl; + + interface IRemoteDebugApplicationThread + { + CONST_VTBL struct IRemoteDebugApplicationThreadVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRemoteDebugApplicationThread_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRemoteDebugApplicationThread_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRemoteDebugApplicationThread_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRemoteDebugApplicationThread_GetSystemThreadId(This,dwThreadId) \ + ( (This)->lpVtbl -> GetSystemThreadId(This,dwThreadId) ) + +#define IRemoteDebugApplicationThread_GetApplication(This,pprda) \ + ( (This)->lpVtbl -> GetApplication(This,pprda) ) + +#define IRemoteDebugApplicationThread_EnumStackFrames(This,ppedsf) \ + ( (This)->lpVtbl -> EnumStackFrames(This,ppedsf) ) + +#define IRemoteDebugApplicationThread_GetDescription(This,pbstrDescription,pbstrState) \ + ( (This)->lpVtbl -> GetDescription(This,pbstrDescription,pbstrState) ) + +#define IRemoteDebugApplicationThread_SetNextStatement(This,pStackFrame,pCodeContext) \ + ( (This)->lpVtbl -> SetNextStatement(This,pStackFrame,pCodeContext) ) + +#define IRemoteDebugApplicationThread_GetState(This,pState) \ + ( (This)->lpVtbl -> GetState(This,pState) ) + +#define IRemoteDebugApplicationThread_Suspend(This,pdwCount) \ + ( (This)->lpVtbl -> Suspend(This,pdwCount) ) + +#define IRemoteDebugApplicationThread_Resume(This,pdwCount) \ + ( (This)->lpVtbl -> Resume(This,pdwCount) ) + +#define IRemoteDebugApplicationThread_GetSuspendCount(This,pdwCount) \ + ( (This)->lpVtbl -> GetSuspendCount(This,pdwCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRemoteDebugApplicationThread_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0048 */ +/* [local] */ + +#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS +#ifdef _WIN64 +#define SynchronousCallIntoThread SynchronousCallIntoThread64 +#else +#define SynchronousCallIntoThread SynchronousCallIntoThread32 +#endif +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0048_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0048_v0_0_s_ifspec; + +#ifndef __IDebugApplicationThread_INTERFACE_DEFINED__ +#define __IDebugApplicationThread_INTERFACE_DEFINED__ + +/* interface IDebugApplicationThread */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplicationThread; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C38-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugApplicationThread : public IRemoteDebugApplicationThread + { + public: + virtual HRESULT STDMETHODCALLTYPE SynchronousCallIntoThread32( + /* [in] */ IDebugThreadCall32 *pstcb, + /* [in] */ DWORD dwParam1, + /* [in] */ DWORD dwParam2, + /* [in] */ DWORD dwParam3) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryIsCurrentThread( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryIsDebuggerThread( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDescription( + /* [in] */ LPCOLESTR pstrDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStateString( + /* [in] */ LPCOLESTR pstrState) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplicationThreadVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugApplicationThread * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugApplicationThread * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugApplicationThread * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetSystemThreadId) + HRESULT ( STDMETHODCALLTYPE *GetSystemThreadId )( + IDebugApplicationThread * This, + /* [out] */ DWORD *dwThreadId); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetApplication) + HRESULT ( STDMETHODCALLTYPE *GetApplication )( + IDebugApplicationThread * This, + /* [out] */ IRemoteDebugApplication **pprda); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, EnumStackFrames) + HRESULT ( STDMETHODCALLTYPE *EnumStackFrames )( + IDebugApplicationThread * This, + /* [out] */ IEnumDebugStackFrames **ppedsf); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + IDebugApplicationThread * This, + /* [out] */ BSTR *pbstrDescription, + /* [out] */ BSTR *pbstrState); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, SetNextStatement) + HRESULT ( STDMETHODCALLTYPE *SetNextStatement )( + IDebugApplicationThread * This, + /* [in] */ IDebugStackFrame *pStackFrame, + /* [in] */ IDebugCodeContext *pCodeContext); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + IDebugApplicationThread * This, + /* [out] */ DWORD *pState); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + IDebugApplicationThread * This, + /* [out] */ DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + IDebugApplicationThread * This, + /* [out] */ DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetSuspendCount) + HRESULT ( STDMETHODCALLTYPE *GetSuspendCount )( + IDebugApplicationThread * This, + /* [out] */ DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IDebugApplicationThread, SynchronousCallIntoThread32) + HRESULT ( STDMETHODCALLTYPE *SynchronousCallIntoThread32 )( + IDebugApplicationThread * This, + /* [in] */ IDebugThreadCall32 *pstcb, + /* [in] */ DWORD dwParam1, + /* [in] */ DWORD dwParam2, + /* [in] */ DWORD dwParam3); + + DECLSPEC_XFGVIRT(IDebugApplicationThread, QueryIsCurrentThread) + HRESULT ( STDMETHODCALLTYPE *QueryIsCurrentThread )( + IDebugApplicationThread * This); + + DECLSPEC_XFGVIRT(IDebugApplicationThread, QueryIsDebuggerThread) + HRESULT ( STDMETHODCALLTYPE *QueryIsDebuggerThread )( + IDebugApplicationThread * This); + + DECLSPEC_XFGVIRT(IDebugApplicationThread, SetDescription) + HRESULT ( STDMETHODCALLTYPE *SetDescription )( + IDebugApplicationThread * This, + /* [in] */ LPCOLESTR pstrDescription); + + DECLSPEC_XFGVIRT(IDebugApplicationThread, SetStateString) + HRESULT ( STDMETHODCALLTYPE *SetStateString )( + IDebugApplicationThread * This, + /* [in] */ LPCOLESTR pstrState); + + END_INTERFACE + } IDebugApplicationThreadVtbl; + + interface IDebugApplicationThread + { + CONST_VTBL struct IDebugApplicationThreadVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplicationThread_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplicationThread_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplicationThread_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplicationThread_GetSystemThreadId(This,dwThreadId) \ + ( (This)->lpVtbl -> GetSystemThreadId(This,dwThreadId) ) + +#define IDebugApplicationThread_GetApplication(This,pprda) \ + ( (This)->lpVtbl -> GetApplication(This,pprda) ) + +#define IDebugApplicationThread_EnumStackFrames(This,ppedsf) \ + ( (This)->lpVtbl -> EnumStackFrames(This,ppedsf) ) + +#define IDebugApplicationThread_GetDescription(This,pbstrDescription,pbstrState) \ + ( (This)->lpVtbl -> GetDescription(This,pbstrDescription,pbstrState) ) + +#define IDebugApplicationThread_SetNextStatement(This,pStackFrame,pCodeContext) \ + ( (This)->lpVtbl -> SetNextStatement(This,pStackFrame,pCodeContext) ) + +#define IDebugApplicationThread_GetState(This,pState) \ + ( (This)->lpVtbl -> GetState(This,pState) ) + +#define IDebugApplicationThread_Suspend(This,pdwCount) \ + ( (This)->lpVtbl -> Suspend(This,pdwCount) ) + +#define IDebugApplicationThread_Resume(This,pdwCount) \ + ( (This)->lpVtbl -> Resume(This,pdwCount) ) + +#define IDebugApplicationThread_GetSuspendCount(This,pdwCount) \ + ( (This)->lpVtbl -> GetSuspendCount(This,pdwCount) ) + + +#define IDebugApplicationThread_SynchronousCallIntoThread32(This,pstcb,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> SynchronousCallIntoThread32(This,pstcb,dwParam1,dwParam2,dwParam3) ) + +#define IDebugApplicationThread_QueryIsCurrentThread(This) \ + ( (This)->lpVtbl -> QueryIsCurrentThread(This) ) + +#define IDebugApplicationThread_QueryIsDebuggerThread(This) \ + ( (This)->lpVtbl -> QueryIsDebuggerThread(This) ) + +#define IDebugApplicationThread_SetDescription(This,pstrDescription) \ + ( (This)->lpVtbl -> SetDescription(This,pstrDescription) ) + +#define IDebugApplicationThread_SetStateString(This,pstrState) \ + ( (This)->lpVtbl -> SetStateString(This,pstrState) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplicationThread_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugApplicationThread64_INTERFACE_DEFINED__ +#define __IDebugApplicationThread64_INTERFACE_DEFINED__ + +/* interface IDebugApplicationThread64 */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplicationThread64; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9dac5886-dbad-456d-9dee-5dec39ab3dda") + IDebugApplicationThread64 : public IDebugApplicationThread + { + public: + virtual HRESULT STDMETHODCALLTYPE SynchronousCallIntoThread64( + /* [in] */ IDebugThreadCall64 *pstcb, + /* [in] */ DWORDLONG dwParam1, + /* [in] */ DWORDLONG dwParam2, + /* [in] */ DWORDLONG dwParam3) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplicationThread64Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugApplicationThread64 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugApplicationThread64 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugApplicationThread64 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetSystemThreadId) + HRESULT ( STDMETHODCALLTYPE *GetSystemThreadId )( + IDebugApplicationThread64 * This, + /* [out] */ DWORD *dwThreadId); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetApplication) + HRESULT ( STDMETHODCALLTYPE *GetApplication )( + IDebugApplicationThread64 * This, + /* [out] */ IRemoteDebugApplication **pprda); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, EnumStackFrames) + HRESULT ( STDMETHODCALLTYPE *EnumStackFrames )( + IDebugApplicationThread64 * This, + /* [out] */ IEnumDebugStackFrames **ppedsf); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + IDebugApplicationThread64 * This, + /* [out] */ BSTR *pbstrDescription, + /* [out] */ BSTR *pbstrState); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, SetNextStatement) + HRESULT ( STDMETHODCALLTYPE *SetNextStatement )( + IDebugApplicationThread64 * This, + /* [in] */ IDebugStackFrame *pStackFrame, + /* [in] */ IDebugCodeContext *pCodeContext); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + IDebugApplicationThread64 * This, + /* [out] */ DWORD *pState); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + IDebugApplicationThread64 * This, + /* [out] */ DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + IDebugApplicationThread64 * This, + /* [out] */ DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IRemoteDebugApplicationThread, GetSuspendCount) + HRESULT ( STDMETHODCALLTYPE *GetSuspendCount )( + IDebugApplicationThread64 * This, + /* [out] */ DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IDebugApplicationThread, SynchronousCallIntoThread32) + HRESULT ( STDMETHODCALLTYPE *SynchronousCallIntoThread32 )( + IDebugApplicationThread64 * This, + /* [in] */ IDebugThreadCall32 *pstcb, + /* [in] */ DWORD dwParam1, + /* [in] */ DWORD dwParam2, + /* [in] */ DWORD dwParam3); + + DECLSPEC_XFGVIRT(IDebugApplicationThread, QueryIsCurrentThread) + HRESULT ( STDMETHODCALLTYPE *QueryIsCurrentThread )( + IDebugApplicationThread64 * This); + + DECLSPEC_XFGVIRT(IDebugApplicationThread, QueryIsDebuggerThread) + HRESULT ( STDMETHODCALLTYPE *QueryIsDebuggerThread )( + IDebugApplicationThread64 * This); + + DECLSPEC_XFGVIRT(IDebugApplicationThread, SetDescription) + HRESULT ( STDMETHODCALLTYPE *SetDescription )( + IDebugApplicationThread64 * This, + /* [in] */ LPCOLESTR pstrDescription); + + DECLSPEC_XFGVIRT(IDebugApplicationThread, SetStateString) + HRESULT ( STDMETHODCALLTYPE *SetStateString )( + IDebugApplicationThread64 * This, + /* [in] */ LPCOLESTR pstrState); + + DECLSPEC_XFGVIRT(IDebugApplicationThread64, SynchronousCallIntoThread64) + HRESULT ( STDMETHODCALLTYPE *SynchronousCallIntoThread64 )( + IDebugApplicationThread64 * This, + /* [in] */ IDebugThreadCall64 *pstcb, + /* [in] */ DWORDLONG dwParam1, + /* [in] */ DWORDLONG dwParam2, + /* [in] */ DWORDLONG dwParam3); + + END_INTERFACE + } IDebugApplicationThread64Vtbl; + + interface IDebugApplicationThread64 + { + CONST_VTBL struct IDebugApplicationThread64Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplicationThread64_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplicationThread64_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplicationThread64_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplicationThread64_GetSystemThreadId(This,dwThreadId) \ + ( (This)->lpVtbl -> GetSystemThreadId(This,dwThreadId) ) + +#define IDebugApplicationThread64_GetApplication(This,pprda) \ + ( (This)->lpVtbl -> GetApplication(This,pprda) ) + +#define IDebugApplicationThread64_EnumStackFrames(This,ppedsf) \ + ( (This)->lpVtbl -> EnumStackFrames(This,ppedsf) ) + +#define IDebugApplicationThread64_GetDescription(This,pbstrDescription,pbstrState) \ + ( (This)->lpVtbl -> GetDescription(This,pbstrDescription,pbstrState) ) + +#define IDebugApplicationThread64_SetNextStatement(This,pStackFrame,pCodeContext) \ + ( (This)->lpVtbl -> SetNextStatement(This,pStackFrame,pCodeContext) ) + +#define IDebugApplicationThread64_GetState(This,pState) \ + ( (This)->lpVtbl -> GetState(This,pState) ) + +#define IDebugApplicationThread64_Suspend(This,pdwCount) \ + ( (This)->lpVtbl -> Suspend(This,pdwCount) ) + +#define IDebugApplicationThread64_Resume(This,pdwCount) \ + ( (This)->lpVtbl -> Resume(This,pdwCount) ) + +#define IDebugApplicationThread64_GetSuspendCount(This,pdwCount) \ + ( (This)->lpVtbl -> GetSuspendCount(This,pdwCount) ) + + +#define IDebugApplicationThread64_SynchronousCallIntoThread32(This,pstcb,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> SynchronousCallIntoThread32(This,pstcb,dwParam1,dwParam2,dwParam3) ) + +#define IDebugApplicationThread64_QueryIsCurrentThread(This) \ + ( (This)->lpVtbl -> QueryIsCurrentThread(This) ) + +#define IDebugApplicationThread64_QueryIsDebuggerThread(This) \ + ( (This)->lpVtbl -> QueryIsDebuggerThread(This) ) + +#define IDebugApplicationThread64_SetDescription(This,pstrDescription) \ + ( (This)->lpVtbl -> SetDescription(This,pstrDescription) ) + +#define IDebugApplicationThread64_SetStateString(This,pstrState) \ + ( (This)->lpVtbl -> SetStateString(This,pstrState) ) + + +#define IDebugApplicationThread64_SynchronousCallIntoThread64(This,pstcb,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> SynchronousCallIntoThread64(This,pstcb,dwParam1,dwParam2,dwParam3) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplicationThread64_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugCookie_INTERFACE_DEFINED__ +#define __IDebugCookie_INTERFACE_DEFINED__ + +/* interface IDebugCookie */ +/* [unique][helpstring][uuid][local][object] */ + + +EXTERN_C const IID IID_IDebugCookie; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C39-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugCookie : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetDebugCookie( + /* [in] */ DWORD dwDebugAppCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugCookieVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugCookie * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugCookie * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugCookie * This); + + DECLSPEC_XFGVIRT(IDebugCookie, SetDebugCookie) + HRESULT ( STDMETHODCALLTYPE *SetDebugCookie )( + IDebugCookie * This, + /* [in] */ DWORD dwDebugAppCookie); + + END_INTERFACE + } IDebugCookieVtbl; + + interface IDebugCookie + { + CONST_VTBL struct IDebugCookieVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugCookie_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugCookie_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugCookie_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugCookie_SetDebugCookie(This,dwDebugAppCookie) \ + ( (This)->lpVtbl -> SetDebugCookie(This,dwDebugAppCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugCookie_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDebugApplicationNodes_INTERFACE_DEFINED__ +#define __IEnumDebugApplicationNodes_INTERFACE_DEFINED__ + +/* interface IEnumDebugApplicationNodes */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumDebugApplicationNodes; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C3a-CB0C-11d0-B5C9-00A0244A0E7A") + IEnumDebugApplicationNodes : public IUnknown + { + public: + virtual /* [local] */ HRESULT __stdcall Next( + /* [in] */ ULONG celt, + /* [out] */ IDebugApplicationNode **pprddp, + /* [out] */ ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDebugApplicationNodes **pperddp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDebugApplicationNodesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDebugApplicationNodes * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDebugApplicationNodes * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDebugApplicationNodes * This); + + DECLSPEC_XFGVIRT(IEnumDebugApplicationNodes, Next) + /* [local] */ HRESULT ( __stdcall *Next )( + IEnumDebugApplicationNodes * This, + /* [in] */ ULONG celt, + /* [out] */ IDebugApplicationNode **pprddp, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumDebugApplicationNodes, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDebugApplicationNodes * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumDebugApplicationNodes, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDebugApplicationNodes * This); + + DECLSPEC_XFGVIRT(IEnumDebugApplicationNodes, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDebugApplicationNodes * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugApplicationNodes **pperddp); + + END_INTERFACE + } IEnumDebugApplicationNodesVtbl; + + interface IEnumDebugApplicationNodes + { + CONST_VTBL struct IEnumDebugApplicationNodesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDebugApplicationNodes_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDebugApplicationNodes_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDebugApplicationNodes_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDebugApplicationNodes_Next(This,celt,pprddp,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,pprddp,pceltFetched) ) + +#define IEnumDebugApplicationNodes_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumDebugApplicationNodes_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDebugApplicationNodes_Clone(This,pperddp) \ + ( (This)->lpVtbl -> Clone(This,pperddp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT __stdcall IEnumDebugApplicationNodes_RemoteNext_Proxy( + __RPC__in IEnumDebugApplicationNodes * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IDebugApplicationNode **pprddp, + /* [out] */ __RPC__out ULONG *pceltFetched); + + +void __RPC_STUB IEnumDebugApplicationNodes_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumDebugApplicationNodes_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumRemoteDebugApplications_INTERFACE_DEFINED__ +#define __IEnumRemoteDebugApplications_INTERFACE_DEFINED__ + +/* interface IEnumRemoteDebugApplications */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumRemoteDebugApplications; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C3b-CB0C-11d0-B5C9-00A0244A0E7A") + IEnumRemoteDebugApplications : public IUnknown + { + public: + virtual /* [local] */ HRESULT __stdcall Next( + /* [in] */ ULONG celt, + /* [out] */ IRemoteDebugApplication **ppda, + /* [out] */ ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumRemoteDebugApplications **ppessd) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumRemoteDebugApplicationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumRemoteDebugApplications * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumRemoteDebugApplications * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumRemoteDebugApplications * This); + + DECLSPEC_XFGVIRT(IEnumRemoteDebugApplications, Next) + /* [local] */ HRESULT ( __stdcall *Next )( + IEnumRemoteDebugApplications * This, + /* [in] */ ULONG celt, + /* [out] */ IRemoteDebugApplication **ppda, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumRemoteDebugApplications, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumRemoteDebugApplications * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumRemoteDebugApplications, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumRemoteDebugApplications * This); + + DECLSPEC_XFGVIRT(IEnumRemoteDebugApplications, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumRemoteDebugApplications * This, + /* [out] */ __RPC__deref_out_opt IEnumRemoteDebugApplications **ppessd); + + END_INTERFACE + } IEnumRemoteDebugApplicationsVtbl; + + interface IEnumRemoteDebugApplications + { + CONST_VTBL struct IEnumRemoteDebugApplicationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumRemoteDebugApplications_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumRemoteDebugApplications_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumRemoteDebugApplications_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumRemoteDebugApplications_Next(This,celt,ppda,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,ppda,pceltFetched) ) + +#define IEnumRemoteDebugApplications_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumRemoteDebugApplications_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumRemoteDebugApplications_Clone(This,ppessd) \ + ( (This)->lpVtbl -> Clone(This,ppessd) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT __stdcall IEnumRemoteDebugApplications_RemoteNext_Proxy( + __RPC__in IEnumRemoteDebugApplications * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IRemoteDebugApplication **ppda, + /* [out] */ __RPC__out ULONG *pceltFetched); + + +void __RPC_STUB IEnumRemoteDebugApplications_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumRemoteDebugApplications_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumRemoteDebugApplicationThreads_INTERFACE_DEFINED__ +#define __IEnumRemoteDebugApplicationThreads_INTERFACE_DEFINED__ + +/* interface IEnumRemoteDebugApplicationThreads */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumRemoteDebugApplicationThreads; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C3c-CB0C-11d0-B5C9-00A0244A0E7A") + IEnumRemoteDebugApplicationThreads : public IUnknown + { + public: + virtual /* [local] */ HRESULT __stdcall Next( + /* [in] */ ULONG celt, + /* [out] */ IRemoteDebugApplicationThread **pprdat, + /* [out] */ ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumRemoteDebugApplicationThreads **pperdat) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumRemoteDebugApplicationThreadsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumRemoteDebugApplicationThreads * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumRemoteDebugApplicationThreads * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumRemoteDebugApplicationThreads * This); + + DECLSPEC_XFGVIRT(IEnumRemoteDebugApplicationThreads, Next) + /* [local] */ HRESULT ( __stdcall *Next )( + IEnumRemoteDebugApplicationThreads * This, + /* [in] */ ULONG celt, + /* [out] */ IRemoteDebugApplicationThread **pprdat, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumRemoteDebugApplicationThreads, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumRemoteDebugApplicationThreads * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumRemoteDebugApplicationThreads, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumRemoteDebugApplicationThreads * This); + + DECLSPEC_XFGVIRT(IEnumRemoteDebugApplicationThreads, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumRemoteDebugApplicationThreads * This, + /* [out] */ __RPC__deref_out_opt IEnumRemoteDebugApplicationThreads **pperdat); + + END_INTERFACE + } IEnumRemoteDebugApplicationThreadsVtbl; + + interface IEnumRemoteDebugApplicationThreads + { + CONST_VTBL struct IEnumRemoteDebugApplicationThreadsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumRemoteDebugApplicationThreads_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumRemoteDebugApplicationThreads_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumRemoteDebugApplicationThreads_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumRemoteDebugApplicationThreads_Next(This,celt,pprdat,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,pprdat,pceltFetched) ) + +#define IEnumRemoteDebugApplicationThreads_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumRemoteDebugApplicationThreads_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumRemoteDebugApplicationThreads_Clone(This,pperdat) \ + ( (This)->lpVtbl -> Clone(This,pperdat) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT __stdcall IEnumRemoteDebugApplicationThreads_RemoteNext_Proxy( + __RPC__in IEnumRemoteDebugApplicationThreads * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IRemoteDebugApplicationThread **ppdat, + /* [out] */ __RPC__out ULONG *pceltFetched); + + +void __RPC_STUB IEnumRemoteDebugApplicationThreads_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumRemoteDebugApplicationThreads_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugFormatter_INTERFACE_DEFINED__ +#define __IDebugFormatter_INTERFACE_DEFINED__ + +/* interface IDebugFormatter */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugFormatter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C05-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugFormatter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStringForVariant( + /* [in] */ VARIANT *pvar, + /* [in] */ ULONG nRadix, + /* [out] */ BSTR *pbstrValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVariantForString( + /* [in] */ LPCOLESTR pwstrValue, + /* [out] */ VARIANT *pvar) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStringForVarType( + /* [in] */ VARTYPE vt, + /* [in] */ TYPEDESC *ptdescArrayType, + /* [out] */ BSTR *pbstr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugFormatterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugFormatter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugFormatter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugFormatter * This); + + DECLSPEC_XFGVIRT(IDebugFormatter, GetStringForVariant) + HRESULT ( STDMETHODCALLTYPE *GetStringForVariant )( + IDebugFormatter * This, + /* [in] */ VARIANT *pvar, + /* [in] */ ULONG nRadix, + /* [out] */ BSTR *pbstrValue); + + DECLSPEC_XFGVIRT(IDebugFormatter, GetVariantForString) + HRESULT ( STDMETHODCALLTYPE *GetVariantForString )( + IDebugFormatter * This, + /* [in] */ LPCOLESTR pwstrValue, + /* [out] */ VARIANT *pvar); + + DECLSPEC_XFGVIRT(IDebugFormatter, GetStringForVarType) + HRESULT ( STDMETHODCALLTYPE *GetStringForVarType )( + IDebugFormatter * This, + /* [in] */ VARTYPE vt, + /* [in] */ TYPEDESC *ptdescArrayType, + /* [out] */ BSTR *pbstr); + + END_INTERFACE + } IDebugFormatterVtbl; + + interface IDebugFormatter + { + CONST_VTBL struct IDebugFormatterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugFormatter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugFormatter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugFormatter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugFormatter_GetStringForVariant(This,pvar,nRadix,pbstrValue) \ + ( (This)->lpVtbl -> GetStringForVariant(This,pvar,nRadix,pbstrValue) ) + +#define IDebugFormatter_GetVariantForString(This,pwstrValue,pvar) \ + ( (This)->lpVtbl -> GetVariantForString(This,pwstrValue,pvar) ) + +#define IDebugFormatter_GetStringForVarType(This,vt,ptdescArrayType,pbstr) \ + ( (This)->lpVtbl -> GetStringForVarType(This,vt,ptdescArrayType,pbstr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugFormatter_INTERFACE_DEFINED__ */ + + +#ifndef __ISimpleConnectionPoint_INTERFACE_DEFINED__ +#define __ISimpleConnectionPoint_INTERFACE_DEFINED__ + +/* interface ISimpleConnectionPoint */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ISimpleConnectionPoint; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C3e-CB0C-11d0-B5C9-00A0244A0E7A") + ISimpleConnectionPoint : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetEventCount( + /* [out] */ ULONG *pulCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE DescribeEvents( + /* [in] */ ULONG iEvent, + /* [in] */ ULONG cEvents, + /* [length_is][size_is][out] */ DISPID *prgid, + /* [length_is][size_is][out] */ BSTR *prgbstr, + /* [out] */ ULONG *pcEventsFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Advise( + /* [in] */ IDispatch *pdisp, + /* [out] */ DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE Unadvise( + /* [in] */ DWORD dwCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISimpleConnectionPointVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ISimpleConnectionPoint * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ISimpleConnectionPoint * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ISimpleConnectionPoint * This); + + DECLSPEC_XFGVIRT(ISimpleConnectionPoint, GetEventCount) + HRESULT ( STDMETHODCALLTYPE *GetEventCount )( + ISimpleConnectionPoint * This, + /* [out] */ ULONG *pulCount); + + DECLSPEC_XFGVIRT(ISimpleConnectionPoint, DescribeEvents) + HRESULT ( STDMETHODCALLTYPE *DescribeEvents )( + ISimpleConnectionPoint * This, + /* [in] */ ULONG iEvent, + /* [in] */ ULONG cEvents, + /* [length_is][size_is][out] */ DISPID *prgid, + /* [length_is][size_is][out] */ BSTR *prgbstr, + /* [out] */ ULONG *pcEventsFetched); + + DECLSPEC_XFGVIRT(ISimpleConnectionPoint, Advise) + HRESULT ( STDMETHODCALLTYPE *Advise )( + ISimpleConnectionPoint * This, + /* [in] */ IDispatch *pdisp, + /* [out] */ DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(ISimpleConnectionPoint, Unadvise) + HRESULT ( STDMETHODCALLTYPE *Unadvise )( + ISimpleConnectionPoint * This, + /* [in] */ DWORD dwCookie); + + END_INTERFACE + } ISimpleConnectionPointVtbl; + + interface ISimpleConnectionPoint + { + CONST_VTBL struct ISimpleConnectionPointVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISimpleConnectionPoint_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISimpleConnectionPoint_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISimpleConnectionPoint_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISimpleConnectionPoint_GetEventCount(This,pulCount) \ + ( (This)->lpVtbl -> GetEventCount(This,pulCount) ) + +#define ISimpleConnectionPoint_DescribeEvents(This,iEvent,cEvents,prgid,prgbstr,pcEventsFetched) \ + ( (This)->lpVtbl -> DescribeEvents(This,iEvent,cEvents,prgid,prgbstr,pcEventsFetched) ) + +#define ISimpleConnectionPoint_Advise(This,pdisp,pdwCookie) \ + ( (This)->lpVtbl -> Advise(This,pdisp,pdwCookie) ) + +#define ISimpleConnectionPoint_Unadvise(This,dwCookie) \ + ( (This)->lpVtbl -> Unadvise(This,dwCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISimpleConnectionPoint_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg_0000_0056 */ +/* [local] */ + +EXTERN_C const CLSID CLSID_DebugHelper; + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0056_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0056_v0_0_s_ifspec; + +#ifndef __IDebugHelper_INTERFACE_DEFINED__ +#define __IDebugHelper_INTERFACE_DEFINED__ + +/* interface IDebugHelper */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C3f-CB0C-11d0-B5C9-00A0244A0E7A") + IDebugHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreatePropertyBrowser( + /* [in] */ VARIANT *pvar, + /* [in] */ LPCOLESTR bstrName, + /* [in] */ IDebugApplicationThread *pdat, + /* [out] */ IDebugProperty **ppdob) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePropertyBrowserEx( + /* [in] */ VARIANT *pvar, + /* [in] */ LPCOLESTR bstrName, + /* [in] */ IDebugApplicationThread *pdat, + /* [in] */ IDebugFormatter *pdf, + /* [out] */ IDebugProperty **ppdob) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSimpleConnectionPoint( + /* [in] */ IDispatch *pdisp, + /* [out] */ ISimpleConnectionPoint **ppscp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugHelper * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugHelper * This); + + DECLSPEC_XFGVIRT(IDebugHelper, CreatePropertyBrowser) + HRESULT ( STDMETHODCALLTYPE *CreatePropertyBrowser )( + IDebugHelper * This, + /* [in] */ VARIANT *pvar, + /* [in] */ LPCOLESTR bstrName, + /* [in] */ IDebugApplicationThread *pdat, + /* [out] */ IDebugProperty **ppdob); + + DECLSPEC_XFGVIRT(IDebugHelper, CreatePropertyBrowserEx) + HRESULT ( STDMETHODCALLTYPE *CreatePropertyBrowserEx )( + IDebugHelper * This, + /* [in] */ VARIANT *pvar, + /* [in] */ LPCOLESTR bstrName, + /* [in] */ IDebugApplicationThread *pdat, + /* [in] */ IDebugFormatter *pdf, + /* [out] */ IDebugProperty **ppdob); + + DECLSPEC_XFGVIRT(IDebugHelper, CreateSimpleConnectionPoint) + HRESULT ( STDMETHODCALLTYPE *CreateSimpleConnectionPoint )( + IDebugHelper * This, + /* [in] */ IDispatch *pdisp, + /* [out] */ ISimpleConnectionPoint **ppscp); + + END_INTERFACE + } IDebugHelperVtbl; + + interface IDebugHelper + { + CONST_VTBL struct IDebugHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugHelper_CreatePropertyBrowser(This,pvar,bstrName,pdat,ppdob) \ + ( (This)->lpVtbl -> CreatePropertyBrowser(This,pvar,bstrName,pdat,ppdob) ) + +#define IDebugHelper_CreatePropertyBrowserEx(This,pvar,bstrName,pdat,pdf,ppdob) \ + ( (This)->lpVtbl -> CreatePropertyBrowserEx(This,pvar,bstrName,pdat,pdf,ppdob) ) + +#define IDebugHelper_CreateSimpleConnectionPoint(This,pdisp,ppscp) \ + ( (This)->lpVtbl -> CreateSimpleConnectionPoint(This,pdisp,ppscp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDebugExpressionContexts_INTERFACE_DEFINED__ +#define __IEnumDebugExpressionContexts_INTERFACE_DEFINED__ + +/* interface IEnumDebugExpressionContexts */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumDebugExpressionContexts; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C40-CB0C-11d0-B5C9-00A0244A0E7A") + IEnumDebugExpressionContexts : public IUnknown + { + public: + virtual /* [local] */ HRESULT __stdcall Next( + /* [in] */ ULONG celt, + /* [out] */ IDebugExpressionContext **ppdec, + /* [out] */ ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDebugExpressionContexts **ppedec) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDebugExpressionContextsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDebugExpressionContexts * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDebugExpressionContexts * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDebugExpressionContexts * This); + + DECLSPEC_XFGVIRT(IEnumDebugExpressionContexts, Next) + /* [local] */ HRESULT ( __stdcall *Next )( + IEnumDebugExpressionContexts * This, + /* [in] */ ULONG celt, + /* [out] */ IDebugExpressionContext **ppdec, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumDebugExpressionContexts, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDebugExpressionContexts * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumDebugExpressionContexts, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDebugExpressionContexts * This); + + DECLSPEC_XFGVIRT(IEnumDebugExpressionContexts, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDebugExpressionContexts * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugExpressionContexts **ppedec); + + END_INTERFACE + } IEnumDebugExpressionContextsVtbl; + + interface IEnumDebugExpressionContexts + { + CONST_VTBL struct IEnumDebugExpressionContextsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDebugExpressionContexts_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDebugExpressionContexts_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDebugExpressionContexts_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDebugExpressionContexts_Next(This,celt,ppdec,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,ppdec,pceltFetched) ) + +#define IEnumDebugExpressionContexts_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumDebugExpressionContexts_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDebugExpressionContexts_Clone(This,ppedec) \ + ( (This)->lpVtbl -> Clone(This,ppedec) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT __stdcall IEnumDebugExpressionContexts_RemoteNext_Proxy( + __RPC__in IEnumDebugExpressionContexts * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IDebugExpressionContext **pprgdec, + /* [out] */ __RPC__out ULONG *pceltFetched); + + +void __RPC_STUB IEnumDebugExpressionContexts_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumDebugExpressionContexts_INTERFACE_DEFINED__ */ + + +#ifndef __IProvideExpressionContexts_INTERFACE_DEFINED__ +#define __IProvideExpressionContexts_INTERFACE_DEFINED__ + +/* interface IProvideExpressionContexts */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IProvideExpressionContexts; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51973C41-CB0C-11d0-B5C9-00A0244A0E7A") + IProvideExpressionContexts : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumExpressionContexts( + /* [out] */ __RPC__deref_out_opt IEnumDebugExpressionContexts **ppedec) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProvideExpressionContextsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProvideExpressionContexts * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProvideExpressionContexts * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProvideExpressionContexts * This); + + DECLSPEC_XFGVIRT(IProvideExpressionContexts, EnumExpressionContexts) + HRESULT ( STDMETHODCALLTYPE *EnumExpressionContexts )( + __RPC__in IProvideExpressionContexts * This, + /* [out] */ __RPC__deref_out_opt IEnumDebugExpressionContexts **ppedec); + + END_INTERFACE + } IProvideExpressionContextsVtbl; + + interface IProvideExpressionContexts + { + CONST_VTBL struct IProvideExpressionContextsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProvideExpressionContexts_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProvideExpressionContexts_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProvideExpressionContexts_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProvideExpressionContexts_EnumExpressionContexts(This,ppedec) \ + ( (This)->lpVtbl -> EnumExpressionContexts(This,ppedec) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProvideExpressionContexts_INTERFACE_DEFINED__ */ + + + +#ifndef __ProcessDebugManagerLib_LIBRARY_DEFINED__ +#define __ProcessDebugManagerLib_LIBRARY_DEFINED__ + +/* library ProcessDebugManagerLib */ +/* [helpstring][version][uuid] */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +EXTERN_C const CLSID CLSID_CDebugDocumentHelper; +#ifdef DEBUG +#define MachineDebugManger MachineDebugManager_DEBUG +#define CLSID_MachineDebugManager CLSID_MachineDebugManager_DEBUG +#else +#define MachineDebugManger MachineDebugManager_RETAIL +#define CLSID_MachineDebugManager CLSID_MachineDebugManager_RETAIL +#endif + +EXTERN_C const IID LIBID_ProcessDebugManagerLib; + +EXTERN_C const CLSID CLSID_ProcessDebugManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("78a51822-51f4-11d0-8f20-00805f2cd064") +ProcessDebugManager; +#endif + +EXTERN_C const CLSID CLSID_DebugHelper; + +#ifdef __cplusplus + +class DECLSPEC_UUID("0BFCC060-8C1D-11d0-ACCD-00AA0060275C") +DebugHelper; +#endif + +EXTERN_C const CLSID CLSID_CDebugDocumentHelper; + +#ifdef __cplusplus + +class DECLSPEC_UUID("83B8BCA6-687C-11D0-A405-00AA0060275C") +CDebugDocumentHelper; +#endif + +EXTERN_C const CLSID CLSID_MachineDebugManager_RETAIL; + +#ifdef __cplusplus + +class DECLSPEC_UUID("0C0A3666-30C9-11D0-8F20-00805F2CD064") +MachineDebugManager_RETAIL; +#endif + +EXTERN_C const CLSID CLSID_MachineDebugManager_DEBUG; + +#ifdef __cplusplus + +class DECLSPEC_UUID("49769CEC-3A55-4bb0-B697-88FEDE77E8EA") +MachineDebugManager_DEBUG; +#endif + +EXTERN_C const CLSID CLSID_DefaultDebugSessionProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("834128a2-51f4-11d0-8f20-00805f2cd064") +DefaultDebugSessionProvider; +#endif +#endif /* __ProcessDebugManagerLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_activdbg_0000_0060 */ +/* [local] */ + + +#endif // __ActivDbg_h + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0060_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg_0000_0060_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* [local] */ HRESULT __stdcall IEnumDebugCodeContexts_Next_Proxy( + IEnumDebugCodeContexts * This, + /* [in] */ ULONG celt, + /* [out] */ IDebugCodeContext **pscc, + /* [out] */ ULONG *pceltFetched); + + +/* [call_as] */ HRESULT __stdcall IEnumDebugCodeContexts_Next_Stub( + __RPC__in IEnumDebugCodeContexts * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IDebugCodeContext **pscc, + /* [out] */ __RPC__out ULONG *pceltFetched); + +/* [local] */ HRESULT __stdcall IEnumDebugStackFrames_Next_Proxy( + IEnumDebugStackFrames * This, + /* [in] */ ULONG celt, + /* [out] */ DebugStackFrameDescriptor *prgdsfd, + /* [out] */ ULONG *pceltFetched); + + +/* [call_as] */ HRESULT __stdcall IEnumDebugStackFrames_Next_Stub( + __RPC__in IEnumDebugStackFrames * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) DebugStackFrameDescriptor *prgdsfd, + /* [out] */ __RPC__out ULONG *pceltFetched); + +/* [local] */ HRESULT __stdcall IEnumDebugStackFrames64_Next64_Proxy( + IEnumDebugStackFrames64 * This, + /* [in] */ ULONG celt, + /* [out] */ DebugStackFrameDescriptor64 *prgdsfd, + /* [out] */ ULONG *pceltFetched); + + +/* [call_as] */ HRESULT __stdcall IEnumDebugStackFrames64_Next64_Stub( + __RPC__in IEnumDebugStackFrames64 * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) DebugStackFrameDescriptor64 *prgdsfd, + /* [out] */ __RPC__out ULONG *pceltFetched); + +/* [local] */ HRESULT __stdcall IEnumDebugApplicationNodes_Next_Proxy( + IEnumDebugApplicationNodes * This, + /* [in] */ ULONG celt, + /* [out] */ IDebugApplicationNode **pprddp, + /* [out] */ ULONG *pceltFetched); + + +/* [call_as] */ HRESULT __stdcall IEnumDebugApplicationNodes_Next_Stub( + __RPC__in IEnumDebugApplicationNodes * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IDebugApplicationNode **pprddp, + /* [out] */ __RPC__out ULONG *pceltFetched); + +/* [local] */ HRESULT __stdcall IEnumRemoteDebugApplications_Next_Proxy( + IEnumRemoteDebugApplications * This, + /* [in] */ ULONG celt, + /* [out] */ IRemoteDebugApplication **ppda, + /* [out] */ ULONG *pceltFetched); + + +/* [call_as] */ HRESULT __stdcall IEnumRemoteDebugApplications_Next_Stub( + __RPC__in IEnumRemoteDebugApplications * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IRemoteDebugApplication **ppda, + /* [out] */ __RPC__out ULONG *pceltFetched); + +/* [local] */ HRESULT __stdcall IEnumRemoteDebugApplicationThreads_Next_Proxy( + IEnumRemoteDebugApplicationThreads * This, + /* [in] */ ULONG celt, + /* [out] */ IRemoteDebugApplicationThread **pprdat, + /* [out] */ ULONG *pceltFetched); + + +/* [call_as] */ HRESULT __stdcall IEnumRemoteDebugApplicationThreads_Next_Stub( + __RPC__in IEnumRemoteDebugApplicationThreads * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IRemoteDebugApplicationThread **ppdat, + /* [out] */ __RPC__out ULONG *pceltFetched); + +/* [local] */ HRESULT __stdcall IEnumDebugExpressionContexts_Next_Proxy( + IEnumDebugExpressionContexts * This, + /* [in] */ ULONG celt, + /* [out] */ IDebugExpressionContext **ppdec, + /* [out] */ ULONG *pceltFetched); + + +/* [call_as] */ HRESULT __stdcall IEnumDebugExpressionContexts_Next_Stub( + __RPC__in IEnumDebugExpressionContexts * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IDebugExpressionContext **pprgdec, + /* [out] */ __RPC__out ULONG *pceltFetched); + + + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg.idl new file mode 100644 index 0000000000000000000000000000000000000000..c68eb9143c43215762a714fd3338f82ca6bdf076 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg.idl @@ -0,0 +1,3348 @@ +// ActivDbg.idl : ActiveX Debugging Interfaces +/* Overview +Active Debugging is a set of interfaces that allow language-neutral, host-neutral debugging, +with support for a wide variety of development environments. + + + +By language neutral , we mean that a debugging environment can support essentially any +programming language, without having to have specific knowledge of that language +built into the environment. (Today, the interfaces focus primarily on support +scripting languages such as VBScript and JScript, as well as Java, but in the +future we intended evolve them to support native code in languages such as C++.) +Furthermore, the debugger automatically has the ability to debug applications +written in a mixture of multiple languages, with cross-language stepping and +breakpoints. + +By host neutral , we mean that the debugger can be automatically be used with any Active +Scripting host, such as Internet Explorer, Spruuids, or any any other host written in +the future. We also mean that the host has control over the structure of the document +tree presented to the user and the contents and syntax coloring of the documents being +debugged. This allows the host to present the source code being debugged in the context + of the host document (for example, scripts can be show on an HTML page.) +In the subsections below, we consider each of the key components in Active Debugging and +their associated interfaces. + +Before proceeding further, we should define several key Active Debugging concepts: + + host application: The application that hosts the script engines and provides +a scriptable set of objects (or "object model"). + + language engine: A component that provides parsing, execution, and debugging +abstractions for a particular languages. + + debugger IDE: The application that provides debugging UI by communicating with +the host application and language engines. + + machine debug manager: A component that maintains a registry of debuggable +application processes. + + process debug manager: A component that maintains the tree of debuggable documents +a particular application, tracks the running threads, etc. + + document context: : A document context is an abstraction representing +a specific range in the source code of a host document. + + code context: A code context represents a particular location in the running +code of a language engine (a "virtual instruction pointer".) + + expression context: A particular context (for example, a stack frame) in which +expressions may be evaluated by a language engine. + + object browsing: A structured, language-independent representation of an objects +name, type, value, and subobjects, suitable for implementating a "watch window" UI. + +Below, we provide an overview of each of the key Active Debugging components +and their associated interfaces, followed by the details of those interfaces. +*/ +// + +// Note to the reader: This IDL can be automatically transferred into a nicely +// formatted Word document using a set of Word macros. Please contact philbo@microsoft.com +// for details on the macros that do this. The section you are now ready is excluded from the +// Word doc because it's just boilerplate goop. + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// ActivDbg.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 2000 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("//") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("//") +cpp_quote("// Declarations for ActiveX Scripting authoring/Debugging.") +cpp_quote("//") + +cpp_quote("") +cpp_quote("#ifndef __ActivDbg_h") +cpp_quote("#define __ActivDbg_h") +cpp_quote("") + + +#ifndef DO_NO_IMPORTS +import "ocidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; +#ifndef AD7_NO_AD7_IMPORTS +import "activscp.idl"; +import "dbgprop.idl"; +#endif +#endif + +#ifdef USER_TYPES +#define BSTR UserBSTR +#endif +// + +/*

Language Engine

+The language engine provides: + +- Language parsing and execution +- Debugging support (breakpoints,etc..). +- Expression evaluation. +- Syntax coloring. +- Object browsing. +- Stack enumeration and parsing. + +Below is a list of the key interfaces implemented by a language engine. These interfaces +are used by the host application to map between its document context and the engine's +code contexts, and also by the debugger UI to do expression evaluation, stack enumeration, +and object browsing. + +*/ +interface IActiveScriptDebug32; // provides syntax coloring and code context enumeration (32bit PDM) +interface IActiveScriptDebug64; // provides syntax coloring and code context enumeration (64bit PDM) +interface IActiveScriptErrorDebug; // returns document contexts and stack frames for errors +interface IActiveScriptSiteDebug32; // host provided link from script engine to debugger (32bit PDM) +interface IActiveScriptSiteDebug64; // host provided link from script engine to debugger (64bit PDM) +interface IActiveScriptSiteDebugEx; // host provided link from script engine to debugger if PDM cannot JIT +interface IActiveScriptTextInfo; + +// Language engine debugging abstractions +interface IDebugCodeContext; // a virtual "instruction pointer" in a thread +interface IEnumDebugCodeContexts; +interface IDebugStackFrame; // logical stack frame on the stack of a thread +interface IDebugExpressionContext; // a context in which expressions can be evaluated. +interface IDebugStackFrameSniffer; // enumerator for stack frames known by an engine + +// Asynchronous Expression Evaluation +interface IDebugExpressionContext; // context for expression evaluation +interface IDebugExpression; // an asynchronously evaluated expression +interface IDebugSyncOperation; +interface IDebugAsyncOperation; +interface IDebugAsyncOperationCallBack; +interface IDebugExpressionCallBack; // status events for IDebugExpression evaluation progress + +interface IEnumDebugExpressionContexts; +interface IProvideExpressionContexts; + +// Object browsing +interface IDebugFormatter; + +/*

Hosts

+The host: +- Hosts the language engines. +- Provides an object model (set of objects that can be scripted) +- defines a tree of documents that can be debugged and their contents +- Organizes scripts into virtual applications. + +There are two kinds of hosts: +1. A dumb host supports just the basic ActiveScripting interfaces. +It has no control over document structure or organizations; this is determined +entirely by the scripts provided to the language engines. + +2. A smart host supports a larger set of interface that allow it to define +the document tree, document contents, and syntax coloring. There are a set of +helper interfaces, described in the next subsection, which make it much easier for +a host to be a smart host. + +

Smart host Helper Interfaces

+The IDebugDocumentHelper are a greatly simplified set of interfaces that a host +can use to gain the benefits of smart-hosting without having to handle the full +complexity (and power) of the full host interfaces. + +A host is not required to use these interfaces, of course, but by using these +can avoid having to implement or use a number of more complicated interfaces.*/ + +interface IDebugDocumentHelper32; // implemented by PDM (32-bit) +interface IDebugDocumentHelper64; // implemented by PDM (64-bit) +interface IDebugDocumentHost; // implemented (optionally) by the host + +/*

Full smart-host interfaces.

+ +Below is the full set of interfaces that a smart-host needs to implement or use if +it's not using the helper interfaces. + +*/ + +// implemented by host +interface IDebugDocumentInfo; // provides info on (possibily uninstantiated) doc +interface IDebugDocumentProvider; // allows doc to be instantiated on demand +interface IDebugDocument; // base document interface +interface IDebugDocumentText; // provides access to source text of document +interface IDebugDocumentTextEvents; // events fired when source text changes +interface IDebugDocumentTextAuthor; +interface IDebugDocumentContext; // represents a range within the document + +// implemented by PDM on behalf of the host +interface IDebugApplicationNode; // represents the position of a doc in the hierarchy +interface IDebugApplicationNodeEvents; // events fired by PDM when document hierarchy changes + + +/*

Debugger IDE

+The IDE is a fully language independent debugging UI. It provides: + +- Document viewers/editors. +- Breakpoint management. +- Expression evaluation and watch windows. +- Stack frame browsing. +- Object/Class browsing. +- Browsing the virtual application structure. + +*/ +// Debugger implementation +interface IDebugSessionProvider; // establishes a debug session for a running application. +interface IApplicationDebugger; // primary interface exposed by a debugger IDE session + + +/*

Machine Debug Manager

+The machine debug manager provides the hookup point between virtual applications and debuggers +by maintaining and enumerating a list of active virtual applications. + +*/ +interface IMachineDebugManager; +interface IMachineDebugManagerCookie; +interface IMachineDebugManagerEvents; +interface IEnumRemoteDebugApplications; + +/*

Process Debug Manager

+ +The PDM does the following: + +- Synchronizes the debugging of multiple language engines. +- Maintains a tree of debuggable documents +- Merges stack frames. +- Coordinates breakpoints and stepping across language engines. +- Tracks threads. +- Maintains a debugger thread for asynchronous processing. +- Communicates with the machine debug manager and the debugger IDE. + + + We need a way for native to run a thread into the PDM. This way the thread can be used for expression evaluation on higher frames. Likewise native needs a way to retrieve this thread from the PDM. Both teams are in agreement on this + +*Action item* +SamMck and JimSa to define these methods and how to expose them. ShonK should comment on feasibility as well. + + +The following are the interfaces provided by the process debug manager. + +*/ +interface IProcessDebugManager; // creates, adds and removes virtual applications, etc. +interface IRemoteDebugApplication; // virtual application abstraction +interface IDebugApplication32; +interface IDebugApplication64; +interface IRemoteDebugApplicationThread; // virtual thread abstraction +interface IDebugApplicationThread; +interface IEnumRemoteDebugApplicationThreads; +interface IDebugThreadCall32; // dispatches marshalled calls +interface IDebugThreadCall64; // dispatches marshalled calls +interface IDebugApplicationNode; // maintains a position for a document in the hierarchy +interface IEnumDebugApplicationNodes; +interface IEnumDebugStackFrames; // merged enumeration of stack frames from engines +interface IEnumDebugStackFrames64; +// +// Don't include this stuff in the printed docs because its either +// not interesting enough or not ready enough +interface IEnumActiveScriptDebugs; +interface IEnumDebugDocumentContexts; +interface IEnumDebugObjectBrowsers; + +// +/* Structures and Enumerations + +These structures and enumerations are used in a number of the interfaces below. + +

BREAKPOINT_STATE

+Indicates the state of a breakpoint. +*/ + +typedef enum tagBREAKPOINT_STATE { + BREAKPOINT_DELETED = 0, // The breakpoint no longer exists but there are still references + BREAKPOINT_DISABLED = 1, // The breakpoint exists but is disabled + BREAKPOINT_ENABLED = 2 // The breakpoint exists and is enabled +} BREAKPOINT_STATE; + +/*

APPBREAKFLAGS

+Application break flags. Indicates the current debug state for the application +and the current thread. + +When certain of these bits are set (some are per-thread and some are for all threads), +language engines should break at the next opportunity +*/ +typedef DWORD APPBREAKFLAGS; + +#ifdef INTEROPLIB +enum enum_APPBREAKFLAGS +{ + APPBREAKFLAG_DEBUGGER_BLOCK = 0x00000001, + APPBREAKFLAG_DEBUGGER_HALT = 0x00000002, + APPBREAKFLAG_STEP = 0x00010000, + APPBREAKFLAG_NESTED = 0x00020000, + APPBREAKFLAG_STEPTYPE_SOURCE = 0x00000000, + APPBREAKFLAG_STEPTYPE_BYTECODE = 0x00100000, + APPBREAKFLAG_STEPTYPE_MACHINE = 0x00200000, + APPBREAKFLAG_STEPTYPE_MASK = 0x00F00000, + APPBREAKFLAG_IN_BREAKPOINT = 0x80000000 +}; +#endif + +// DEBUGGER_BLOCK +// languages should break immediately with BREAKREASON_DEBUGGER_BLOCK + + const APPBREAKFLAGS APPBREAKFLAG_DEBUGGER_BLOCK = 0x00000001; + +// DEBUGGER_HALT +// languages should break immediately with BREAKREASON_DEBUGGER_HALT + + const APPBREAKFLAGS APPBREAKFLAG_DEBUGGER_HALT = 0x00000002; + +// STEP +// languages should break immediately in the stepping thread with BREAKREASON_STEP + + const APPBREAKFLAGS APPBREAKFLAG_STEP = 0x00010000; + +// NESTED - the application is in nested execution on a breakpoint + + const APPBREAKFLAGS APPBREAKFLAG_NESTED = 0x00020000; + +// STEP TYPES - defines whether we are stepping at +// source, bytecode, or machine level. + + const APPBREAKFLAGS APPBREAKFLAG_STEPTYPE_SOURCE = 0x00000000; + const APPBREAKFLAGS APPBREAKFLAG_STEPTYPE_BYTECODE = 0x00100000; + const APPBREAKFLAGS APPBREAKFLAG_STEPTYPE_MACHINE = 0x00200000; + const APPBREAKFLAGS APPBREAKFLAG_STEPTYPE_MASK = 0x00F00000; + +// BREAKPOINT IN_PROGRESS + const APPBREAKFLAGS APPBREAKFLAG_IN_BREAKPOINT = 0x80000000; + + +/*

BREAKREASON

+Indicates the cause of hitting a breakpoint. +*/ + +typedef enum tagBREAKREASON{ + BREAKREASON_STEP, // Caused by the stepping mode + BREAKREASON_BREAKPOINT, // Caused by an explicit breakpoint + BREAKREASON_DEBUGGER_BLOCK, // Caused by another thread breaking + BREAKREASON_HOST_INITIATED, // Caused by host requested break + BREAKREASON_LANGUAGE_INITIATED, // Caused by a scripted break + BREAKREASON_DEBUGGER_HALT, // Caused by debugger IDE requested break + BREAKREASON_ERROR, // Caused by an execution error + BREAKREASON_JIT, // Caused by JIT Debugging startup + BREAKREASON_MUTATION_BREAKPOINT // Caused by a mutation breakpoint +} BREAKREASON; + +/*

BREAKRESUME_ACTION

+ +Describes how to continue from a breakpoint +*/ + +typedef enum tagBREAKRESUME_ACTION{ + BREAKRESUMEACTION_ABORT, // Abort the application + BREAKRESUMEACTION_CONTINUE, // Continue running + BREAKRESUMEACTION_STEP_INTO, // Step into a procedure + BREAKRESUMEACTION_STEP_OVER, // Step over a procedure + BREAKRESUMEACTION_STEP_OUT, // Step out of the current procedure + BREAKRESUMEACTION_IGNORE, // Continue running with state + BREAKRESUMEACTION_STEP_DOCUMENT,// Step to next document boundary +} BREAKRESUMEACTION; + +/*

ERRORRESUME_ACTION

+ +Describes how to continue from a runtime error +*/ + +typedef enum tagERRORRESUMEACTION { + ERRORRESUMEACTION_ReexecuteErrorStatement, // try executing the erroneous line again + ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller, // let the language engine handle the error + ERRORRESUMEACTION_SkipErrorStatement, // resume execution from beyond the error +} ERRORRESUMEACTION; + + +/*

DOCUMENTNAMETYPE

+Describes what type of name you'd like to get for a document: +*/ + +typedef enum tagDOCUMENTNAMETYPE { + DOCUMENTNAMETYPE_APPNODE, // Gets the name as it appears in the app tree + DOCUMENTNAMETYPE_TITLE, // Gets the name as it appears on the doc viewer title bar + DOCUMENTNAMETYPE_FILE_TAIL, // Gets the filename without a path (for save as...) + DOCUMENTNAMETYPE_URL, // Gets the URL of the document, if any + DOCUMENTNAMETYPE_UNIQUE_TITLE, // Gets the title appended with enumeration for identification + DOCUMENTNAMETYPE_SOURCE_MAP_URL, // Gets the source map URL, if any. +} DOCUMENTNAMETYPE; + +/*

SOURCE_TEXT_ATTR

+Describes the attributes of a single character of source text. +*/ + +typedef WORD SOURCE_TEXT_ATTR; + +#ifdef INTEROPLIB +enum enum_SOURCE_TEXT_ATTR +{ + SOURCETEXT_ATTR_KEYWORD = 0x0001, + SOURCETEXT_ATTR_COMMENT = 0x0002, + SOURCETEXT_ATTR_NONSOURCE = 0x0004, + SOURCETEXT_ATTR_OPERATOR = 0x0008, + SOURCETEXT_ATTR_NUMBER = 0x0010, + SOURCETEXT_ATTR_STRING = 0x0020, + SOURCETEXT_ATTR_FUNCTION_START = 0x0040 +}; +#endif + +// The character is a part of a language keyword. Example: while +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_KEYWORD = 0x0001; +// The character is a part of a comment block. +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_COMMENT = 0x0002; +// The character is not part of compiled language source text. Example: +// the HTML surrounding script blocks. +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_NONSOURCE = 0x0004; +// The character is a part of a language operator. Example: * +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_OPERATOR = 0x0008; +// The character is a part of a language numeric constant. Example: 1234 +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_NUMBER = 0x0010; +// The character is a part of a language string constant. Example: "Hello World" +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_STRING = 0x0020; +// The character indicates the start of a function block +const SOURCE_TEXT_ATTR SOURCETEXT_ATTR_FUNCTION_START = 0x0040; + +/*

TEXT_DOC_ATTR

+Describes the attributes of the document +*/ + +typedef DWORD TEXT_DOC_ATTR; + +// Indicates that the document is read-only. +const TEXT_DOC_ATTR TEXT_DOC_ATTR_READONLY = 0x00000001; + +// Indicates that the document is the primary file of this doc tree +const TEXT_DOC_ATTR TEXT_DOC_ATTR_TYPE_PRIMARY = 0x00000002; + +// Indicates that the document is a worker +const TEXT_DOC_ATTR TEXT_DOC_ATTR_TYPE_WORKER = 0x00000004; + +// Indicates that the document is a script file. +const TEXT_DOC_ATTR TEXT_DOC_ATTR_TYPE_SCRIPT = 0x00000008; + +/*

Parse Flags

+ +Option flags used during IDebugExpressionContext::ParseLanguageText +*/ + +// Indicates that the text is an expression as opposed to a statement. This +// flag may affect the way in which the text is parsed by some languages. +const DWORD DEBUG_TEXT_ISEXPRESSION = 0x00000001; +// If a return value is available, it will be used by the caller. +const DWORD DEBUG_TEXT_RETURNVALUE = 0x00000002; +// Don't allow side effects. If this flag is set, the evaluation of the +// expression should change no runtime state. +const DWORD DEBUG_TEXT_NOSIDEEFFECTS = 0x00000004; +// Allow breakpoints during the evaluation of the text. If this flag is not +// set then breakpoints will be ignored during the evaluation of the text. +const DWORD DEBUG_TEXT_ALLOWBREAKPOINTS = 0x00000008; +// Allow error reports during the evaluation of the text. If this flag is not +// set then errors will not be reported to the host during the evaluation. +const DWORD DEBUG_TEXT_ALLOWERRORREPORT = 0x00000010; +// Indicates the expression is to be evaluated to a code context rather than +// running the expression itself +const DWORD DEBUG_TEXT_EVALUATETOCODECONTEXT = 0x00000020; +// Indicates script is not a user code, such as library/tools code. +const DWORD DEBUG_TEXT_ISNONUSERCODE = 0x00000040; + + +/* Script Engine Debugging Interfaces +Below are the interfaces that a script engine needs to support to provide +debugging, expression evaluation, and object browsing. + +

IActiveScriptDebug

+This interface is implemented by script engines that support debugging, and is QI-able from IActiveScript. It provides the means for: +1. Smart hosts to take over document management. +2. Process debug manager to synchronize debugging of multiple script engines. +*/ + +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IActiveScriptDebug IActiveScriptDebug64") +cpp_quote("#define IID_IActiveScriptDebug IID_IActiveScriptDebug64") +cpp_quote("#else") +cpp_quote("#define IActiveScriptDebug IActiveScriptDebug32") +cpp_quote("#define IID_IActiveScriptDebug IID_IActiveScriptDebug32") +cpp_quote("#endif") +cpp_quote("#endif") + +[ + object, + uuid(51973C10-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IActiveScriptDebug32 : IUnknown +{ + + // Returns the text attributes for an arbitrary block of script text. Smart hosts + // use this call to delegate GetText calls made on their IDebugDocumentText. + HRESULT GetScriptTextAttributes( + // The script block text. This string need not be null terminated. + [in, size_is(uNumCodeChars)] LPCOLESTR pstrCode, + // The number of characters in the script block text. + [in] ULONG uNumCodeChars, + // See IActiveScriptParse::ParseScriptText for a description of this argument. + [in] LPCOLESTR pstrDelimiter, + // See IActiveScriptParse::ParseScriptText for a description of this argument. + [in] DWORD dwFlags, + // Buffer to contain the returned attributes. + [in, out, size_is(uNumCodeChars)] SOURCE_TEXT_ATTR *pattr); + + // Returns the text attributes for an arbitrary scriptlet. Smart hosts + // use this call to delegate GetText calls made on their IDebugDocumentText. + // Note: this call is provided because scriptlets tend to be expressions and + // may have a different syntax than a script block. For many languages the implementation + // will be identical to GetScriptTextAttributes. + HRESULT GetScriptletTextAttributes( + // The script block text. This string need not be null terminated. + [in, size_is(uNumCodeChars)] LPCOLESTR pstrCode, + // The number of characters in the script block text. + [in] ULONG uNumCodeChars, + // See IActiveScriptParse::AddScriptlet for a description of this argument. + [in] LPCOLESTR pstrDelimiter, + // See IActiveScriptParse::AddScriptlet for a description of this argument. + [in] DWORD dwFlags, + // Buffer to contain the returned attributes. + [in, out, size_is(uNumCodeChars)] SOURCE_TEXT_ATTR *pattr); + + // Used by the smart host to delegate IDebugDocumentContext::EnumDebugCodeContexts. + HRESULT EnumCodeContextsOfPosition( + [in] DWORD dwSourceContext, // As provided to IActiveScriptParse::ParseScriptText + // or IActiveScriptParse::AddScriptlet + [in] ULONG uCharacterOffset, // character offset relative + // to start of script text + [in] ULONG uNumChars, // Number of characters in context + // Returns an enumerator of code contexts. + [out] IEnumDebugCodeContexts **ppescc); +} + +[ + object, + uuid(bc437e23-f5b8-47f4-bb79-7d1ce5483b86), + pointer_default(unique) +] +interface IActiveScriptDebug64 : IUnknown +{ + + // Returns the text attributes for an arbitrary block of script text. Smart hosts + // use this call to delegate GetText calls made on their IDebugDocumentText. + HRESULT GetScriptTextAttributes( + // The script block text. This string need not be null terminated. + [in, size_is(uNumCodeChars)] LPCOLESTR pstrCode, + // The number of characters in the script block text. + [in] ULONG uNumCodeChars, + // See IActiveScriptParse::ParseScriptText for a description of this argument. + [in] LPCOLESTR pstrDelimiter, + // See IActiveScriptParse::ParseScriptText for a description of this argument. + [in] DWORD dwFlags, + // Buffer to contain the returned attributes. + [in, out, size_is(uNumCodeChars)] SOURCE_TEXT_ATTR *pattr); + + // Returns the text attributes for an arbitrary scriptlet. Smart hosts + // use this call to delegate GetText calls made on their IDebugDocumentText. + // Note: this call is provided because scriptlets tend to be expressions and + // may have a different syntax than a script block. For many languages the implementation + // will be identical to GetScriptTextAttributes. + HRESULT GetScriptletTextAttributes( + // The script block text. This string need not be null terminated. + [in, size_is(uNumCodeChars)] LPCOLESTR pstrCode, + // The number of characters in the script block text. + [in] ULONG uNumCodeChars, + // See IActiveScriptParse::AddScriptlet for a description of this argument. + [in] LPCOLESTR pstrDelimiter, + // See IActiveScriptParse::AddScriptlet for a description of this argument. + [in] DWORD dwFlags, + // Buffer to contain the returned attributes. + [in, out, size_is(uNumCodeChars)] SOURCE_TEXT_ATTR *pattr); + + // Used by the smart host to delegate IDebugDocumentContext::EnumDebugCodeContexts. + HRESULT EnumCodeContextsOfPosition( + [in] DWORDLONG dwSourceContext, // As provided to IActiveScriptParse::ParseScriptText + // or IActiveScriptParse::AddScriptlet + [in] ULONG uCharacterOffset, // character offset relative + // to start of script text + [in] ULONG uNumChars, // Number of characters in context + // Returns an enumerator of code contexts. + [out] IEnumDebugCodeContexts **ppescc); +} + +/* IActiveScriptSiteDebug +Implemented by smart hosts and is QI-able from IActiveScriptSite. It provides the means by which a smart host takes over document management and participates in debugging. +*/ + +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IActiveScriptSiteDebug IActiveScriptSiteDebug64") +cpp_quote("#define IID_IActiveScriptSiteDebug IID_IActiveScriptSiteDebug64") +cpp_quote("#else") +cpp_quote("#define IActiveScriptSiteDebug IActiveScriptSiteDebug32") +cpp_quote("#define IID_IActiveScriptSiteDebug IID_IActiveScriptSiteDebug32") +cpp_quote("#endif") +cpp_quote("#endif") + +[ + object, + uuid(51973C11-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique), + local +] +interface IActiveScriptSiteDebug32 : IUnknown +{ + + // Used by the language engine to delegate IDebugCodeContext::GetSourceContext. + HRESULT GetDocumentContextFromPosition( + [in] DWORD dwSourceContext, // As provided to ParseScriptText + // or AddScriptlet + [in] ULONG uCharacterOffset, // character offset relative + // to start of script block or scriptlet + [in] ULONG uNumChars, // Number of characters in context + // Returns the document context corresponding to this character-position range. + [out] IDebugDocumentContext **ppsc); + + // Returns the debug application object associated with this script site. Provides + // a means for a smart host to define what application object each script belongs to. + // Script engines should attempt to call this method to get their containing application + // and resort to IProcessDebugManager::GetDefaultApplication if this fails. + HRESULT GetApplication( + [out] IDebugApplication32 **ppda); + + // Gets the application node under which script documents should be added + // can return NULL if script documents should be top-level. + HRESULT GetRootApplicationNode( + [out] IDebugApplicationNode **ppdanRoot); + + // Allows a smart host to control the handling of runtime errors + // When this call is received by host, host can either attach its own debugger + // or send back whether pdm should help in attaching the debugger in pfEnterDebugger + // Host implementing its own debugger, should also implement IActiveScriptSiteDebugEx + // so that it can get the notification about the runtime error even if there are + // no debuggers that pdm can interprete. + // So this notification is sent to the host only when there are PDM interpretable debuggers + // available, but host can choose to attach its own debugger before returning this call. + HRESULT OnScriptErrorDebug( + // the runtime error that occurred + [in] IActiveScriptErrorDebug *pErrorDebug, + // whether to pass the error to the debugger to do JIT debugging + [out] BOOL *pfEnterDebugger, + // whether to call IActiveScriptSite::OnScriptError() when the user + // decides to continue without debugging + [out] BOOL *pfCallOnScriptErrorWhenContinuing); +} + +[ + object, + uuid(d6b96b0a-7463-402c-92ac-89984226942f), + pointer_default(unique), + local +] +interface IActiveScriptSiteDebug64 : IUnknown +{ + + // Used by the language engine to delegate IDebugCodeContext::GetSourceContext. + HRESULT GetDocumentContextFromPosition( + [in] DWORDLONG dwSourceContext, // As provided to ParseScriptText + // or AddScriptlet + [in] ULONG uCharacterOffset, // character offset relative + // to start of script block or scriptlet + [in] ULONG uNumChars, // Number of characters in context + // Returns the document context corresponding to this character-position range. + [out] IDebugDocumentContext **ppsc); + + // Returns the debug application object associated with this script site. Provides + // a means for a smart host to define what application object each script belongs to. + // Script engines should attempt to call this method to get their containing application + // and resort to IProcessDebugManager::GetDefaultApplication if this fails. + HRESULT GetApplication( + [out] IDebugApplication64 **ppda); + + // Gets the application node under which script documents should be added + // can return NULL if script documents should be top-level. + HRESULT GetRootApplicationNode( + [out] IDebugApplicationNode **ppdanRoot); + + // Allows a smart host to control the handling of runtime errors + // When this call is received by host, host can either attach its own debugger + // or send back whether pdm should help in attaching the debugger in pfEnterDebugger + // Host implementing its own debugger, should also implement IActiveScriptSiteDebugEx + // so that it can get the notification about the runtime error even if there are + // no debuggers that pdm can interprete. + // So this notification is sent to the host only when there are PDM interpretable debuggers + // available, but host can choose to attach its own debugger before returning this call. + HRESULT OnScriptErrorDebug( + // the runtime error that occurred + [in] IActiveScriptErrorDebug *pErrorDebug, + // whether to pass the error to the debugger to do JIT debugging + [out] BOOL *pfEnterDebugger, + // whether to call IActiveScriptSite::OnScriptError() when the user + // decides to continue without debugging + [out] BOOL *pfCallOnScriptErrorWhenContinuing); +} + +/* IActiveScriptSiteDebugEx + Host that want to implement internal debugger and want to attach to the application on runtime error, + should implement this interface apart from the IActiceScriptSiteDebug. + This interface callback provides a mean to host to attach the internal debugger when there are no + other external debuggers that pdm can interprete are available. + + So typically a host implementing internal debugger should handle IActiveScriptSiteDebug::OnScriptErrorDebug + and take a decision based on user action to attach to the internal debugger and return or to return the + starting of the debugger in the pfEnterDebugger paramter. + But such hosts should also implement this interface so that it gets the notication about the runtime error even if + there are no external debuggers that can be interpreted by the PDM are available. + Host can decide to attach or not attach depending on user action before returning this call. +*/ + +[ + object, + uuid(BB722CCB-6AD2-41c6-B780-AF9C03EE69F5), + pointer_default(unique), + local +] +interface IActiveScriptSiteDebugEx : IUnknown +{ + // This is called to inform host about the script runtime error when + // PDM does not find any external JIT debuggers that it understands. + // (and offcourse no other debugger is already attached) + HRESULT OnCanNotJITScriptErrorDebug( + // the runtime error that occurred + [in] IActiveScriptErrorDebug *pErrorDebug, + // whether to call IActiveScriptSite::OnScriptError() when the user + // decides to continue without debugging + [out] BOOL *pfCallOnScriptErrorWhenContinuing); +} + +/* IActiveScriptErrorDebug +Provides document context information for compile and runtime errors. QI-able from IActiveScriptError. +*/ +[ + object, + uuid(51973C12-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IActiveScriptErrorDebug : IActiveScriptError +{ + // Provides the document context for the associated error. The character-position range + // should include the entire offending text. + HRESULT GetDocumentContext( + [out] IDebugDocumentContext **ppssc); + + // For runtime errors, provides the stack frame that is in effect. + HRESULT GetStackFrame( + [out] IDebugStackFrame **ppdsf); +} + +/* IDebugCodeContext +Abstraction reresenting a position in executable code. It can be thought of as a "virtual program counter". +*/ +[ + object, + uuid(51973C13-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugCodeContext : IUnknown +{ + + // Returns the document context associated with this code context. + // + // Note: For text documents, the character-position + // range should include the text for the entire statement. This allows the debugger IDE + // to hilight the current source statement. + HRESULT GetDocumentContext( + [out] IDebugDocumentContext **ppsc); + + // Sets or clears a breakpoint at this code context. + HRESULT SetBreakPoint( + [in] BREAKPOINT_STATE bps); +} + +/* IDebugExpression +Abstract representation of an asynchronously evaluated expression. Normally used +by the debugger IDE to implement an immediate execution window or watch window. +Normally provided by language engines. +Note: Currently, IDebugExpression is only available from a stack frame. +In the future it will be possible to retrieve these from other contexts + (such as debug documents). + + + + We would like to enumerate the language engine namespaces. + We clearly need something to get the global expression context from. + Sam and Bob pointed out many cases where there could possibly be many many namespaces. + We need to consider how to expose something like this a bit further. + Currently there is a namespace but the namespace is IE really since it will persist globals across LE's. Perhaps the namespace we are looking for is HTML, but quite possibly only a smart host could provide this. + We continued to talk about having IDebugProperty be the general containment scheme for processes, namespaces, threads etc... I tending to agree that this is the right approach. We need more investigation in this area. + +*Action Item* +BrianCr, BillJoy, SamMck, Philip, etc.. to continue to discuss. + +*/ +[ + object, + uuid(51973C14-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugExpression : IUnknown +{ + + // Begins the evaluation of the expression. + HRESULT Start( + // Provides an event driven means for indicating that the expression evaluation + // is complete. If NULL, no events will be fired and the client will need to + // poll the expression state using QueryIsComplete. + [in] IDebugExpressionCallBack *pdecb); + + // Aborts the expression. Evaluation of an expression in progress will be stopped + // at the earliest opportunity. If the expression is actually aborted, GetResultAsString + // will return E_ABORT as phrResult. + HRESULT Abort(void); + + // Returns S_FALSE if the operation is still pending. + // Returns S_OK if the operation is complete. + HRESULT QueryIsComplete(void); + + // Returns the result of the expression evaluation as a string and an HRESULT. Returns + // E_PENDING if the operation is still pending. Returns S_OK and E_ABORT in phrResult + // when the operation was aborted with Abort. + HRESULT GetResultAsString( + [out] HRESULT *phrResult, + [out] BSTR *pbstrResult); + + + // Returns the result of the expression evaluation as an + // IDebugProperty and an HRESULT. Returns + // E_PENDING if the operation is still pending. Returns S_OK and E_ABORT in phrResult + // when the operation was aborted with Abort. + + HRESULT GetResultAsDebugProperty( + [out] HRESULT *phrResult, + [out] IDebugProperty **ppdp); + +} + + +/* IDebugExpressionContext +Abstract representation of a context in which expressions can be evaluated. +Currently, this interface is only implemented by the stack frame object. In the +future, other objects, such as the document context, may provide this interface. +*/ +[ + object, + uuid(51973C15-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IDebugExpressionContext Interface"), + pointer_default(unique) +] +interface IDebugExpressionContext : IUnknown +{ + // Creates an IDebugExpression for the specified text. + HRESULT ParseLanguageText( + // Provides the text of the expression or statement(s). + [in] LPCOLESTR pstrCode, + // Radix to use + [in] UINT nRadix, + // See IActiveScriptParse::ParseScriptText + [in] LPCOLESTR pstrDelimiter, + // See above flags. + [in] DWORD dwFlags, + // Returns the IDebugExpression for the given text. + [out] IDebugExpression **ppe + ); + + // Returns a name and GUID for the langauge owning this context + HRESULT GetLanguageInfo ( + [out] BSTR *pbstrLanguageName, // the name of the language + [out] GUID *pLanguageID // an unique id for this language + ); +} + +/* IDebugExpressionCallback +Provides status events related to progress of an IDebugExpression evaluation. +*/ +[ + object, + uuid(51973C16-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugExpressionCallBack : IUnknown +{ + + // Indicates that the expression evaluation is complete. Note that + // IDebugExpression::GetResultAsString can be called from within this event + // handler. + HRESULT onComplete(void); +} + +/* IDebugStackFrame +Abstraction representing a logical stack frame on the stack of a thread. +Note that it derives from IDebugExpressionContext. This allows the debugger to +evaluate expressions in the context of a particular stack frame. +Note: In general, you can QI a stack frame for IDebugExpressionContext to allow + expression evaluation and watch windows + + +Callstacks run on the breaking thread - We would like for the callstack to be run on the PDM's thread but it isn't 100% imperative. If we solve the previous issue, we don't have to have this. However it would be nice to not have to require native t + + +o run a thread into the PDM just to get a callstack. + + Action Item +*ShonK* to list any issues or problems in doing this. This issue maybe tied to a design resolution on how we accomplish cross process or cross thread callstacks. + + + +*/ +[ + object, + uuid(51973C17-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugStackFrame : IUnknown +{ + // Returns the current code context associated with the stack frame. + HRESULT GetCodeContext( + [out] IDebugCodeContext **ppcc); + // Returns a short or long textual description of the stack frame. + // Normally, when fLong if false, this will provide only the name of the + // function associated with the stack frame. When fLong is true it may + // also provide the parameter(s) to the function or whatever else is + // relevant. + HRESULT GetDescriptionString( + [in] BOOL fLong, + [out] BSTR *pbstrDescription); + // Returns a short or long textual description of the language. When fLong + // is false, just the language name should be provided, eg, "Pascal". When + // fLong is true a full product description may be provided, eg, + // "Gnat Software's Flaming Pascal v3.72". + HRESULT GetLanguageString( + [in] BOOL fLong, + [out] BSTR *pbstrLanguage); + // Returns the thread associated with this stack frame. + HRESULT GetThread( + [out] IDebugApplicationThread **ppat); + + // Returns a property browser for the current frame (locals, etc.) + HRESULT GetDebugProperty( + [out] IDebugProperty **ppDebugProp); +} + +/* IDebugStackFrameSniffer +Provides a means for enumerating logical stack frames known by a certain component. + Generally implemented by each script engine. Used by the process debug manager to + find all stack frames associated with a given thread. +Note: This interface is called from within the thread of interest. It is up to +the implementor to identify the current thread and return an appropriate enumerator. +*/ +[ + object, + uuid(51973C18-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugStackFrameSniffer : IUnknown +{ + // Returns an enumerator of stack frames for the current thread. Top of stack should + // be returned first (the most recently pushed frame). + HRESULT EnumStackFrames( + [out] IEnumDebugStackFrames **ppedsf); +} + + +/* IDebugStackFrameSnifferEx +Provides a means for enumerating logical stack frames known by a certain component. +Generally implemented by each script engine. Used by the process debug manager to +find all stack frames associated with a given thread. + +This alternate of the interface will replace IDebugStackFrameSniffer before Caesar's +Beta 1 comes out. It's renamed separately as a placeholder. + +Note: This interface is called from within the thread of interest. It is up to +the implementor to identify the current thread and return an appropriate enumerator. +*/ + +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IDebugStackFrameSnifferEx IDebugStackFrameSnifferEx64") +cpp_quote("#define IID_IDebugStackFrameSnifferEx IID_IDebugStackFrameSnifferEx64") +cpp_quote("#define EnumStackFramesEx EnumStackFramesEx64") +cpp_quote("#else") +cpp_quote("#define IDebugStackFrameSnifferEx IDebugStackFrameSnifferEx32") +cpp_quote("#define IID_IDebugStackFrameSnifferEx IID_IDebugStackFrameSnifferEx32") +cpp_quote("#define EnumStackFramesEx EnumStackFramesEx32") +cpp_quote("#endif") +cpp_quote("#endif") + +[ + object, + uuid(51973C19-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugStackFrameSnifferEx32 : IDebugStackFrameSniffer +{ + // Returns an enumerator of stack frames for the current thread. + + // dwSpMin is the minimum address to begin enumerating stack frames + // Stack frames before this address will be omitted from the enumeration. + // Top of stack should be returned first (the most recently pushed frame). + HRESULT EnumStackFramesEx32( [in] DWORD dwSpMin, [out] IEnumDebugStackFrames **ppedsf); +}; + +[ + object, + uuid(8cd12af4-49c1-4d52-8d8a-c146f47581aa), + pointer_default(unique) +] +interface IDebugStackFrameSnifferEx64 : IDebugStackFrameSniffer +{ + // Returns an enumerator of stack frames for the current thread. + + // dwSpMin is the minimum address to begin enumerating stack frames + // Stack frames before this address will be omitted from the enumeration. + // Top of stack should be returned first (the most recently pushed frame). + HRESULT EnumStackFramesEx64( [in] DWORDLONG dwSpMin, [out] IEnumDebugStackFrames64 **ppedsf); +}; + +/* IDebugSyncOperation +IDebugSyncOperation is generally implemented by a language engine to expose + expression evaluation, etc. It allows the implementor to abstract an operation + that needs to be performed nested in a particular blocked thread, and it + provides a mechanism for cancelling hung operations. +*/ +[ + object, + uuid(51973C1a-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique), + local +] +interface IDebugSyncOperation : IUnknown +{ + // Get TargetThread is called by PDM to determine what thread + // to call Evaluate() in + HRESULT GetTargetThread( + [out] IDebugApplicationThread **ppatTarget); + + // Execute is called synchronously by the PDM in the target thread. It + // synchronously peforms the operation and returns. It returns E_ABORT if + // the operation was aborted with InProgressAbort(); + HRESULT Execute( + [out] IUnknown **ppunkResult); + + // InProgressAbort() is called by the PDM, from within the debugger thread, + // to cancel an operation which is in progress in another thread. The + // operation should be completed or error out with E_ABORT as soon as + // possible. E_NOTIMPL can be returned if the operation cannot be cancelled. + HRESULT InProgressAbort(void); +} + +/* IDebugAsyncOperation +IDebugAsyncOperation is generally implemented by the PDM, and is obtained by a +language engine through IDebugApplication::CreateAsyncDebugOperation(). +The language engine can use it to provide asynchronous access to a SyncDebugOperation. +*/ +[ + object, + uuid(51973C1b-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique), + local +] +interface IDebugAsyncOperation : IUnknown +{ + HRESULT GetSyncDebugOperation( + [out] IDebugSyncOperation **ppsdo); + + // Start() causes the asynchronous operation to begin. It asynchronously + // causes IDebugSyncOperation::Execute() to be called in the thread obtained + // from IDebugSyncOperation::GetTargetThread(). It should only + // be called from within the debugger thread, or it will not return until + // the operation is complete (it degenerates to synchronous). + // Returns E_UNEXPECTED if an operation is already pending. + HRESULT Start(IDebugAsyncOperationCallBack *padocb); + + // Abort() causes InProgressAbort() to be called on the IDebugSyncOperation + // object. It is normally called from within the debugger thread to cancel + // a hung operation. If the abort happens before the request completes, + // GetResult() will return E_ABORT. E_NOTIMPL may be returned from this + // function if the operation is not cancellable. + HRESULT Abort(void); + + // QueryIsComplete() returns S_OK if the operation is complete; otherwise it + // returns S_FALSE; + HRESULT QueryIsComplete(void); + + // If the request is complete, returns the HRESULT and object parameter + // returned from IDebugSyncOperation::Execute(). Otherwise, returns + // E_PENDING. + HRESULT GetResult( + [out] HRESULT *phrResult, + [out] IUnknown **ppunkResult); +} + +/* IDebugAsyncOperationCallBack +This interface is used to signal events from an IDebugAsyncOperation. +*/ +[ + object, + uuid(51973C1c-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique), + local +] +interface IDebugAsyncOperationCallBack : IUnknown +{ + // onComplete() is fired by the AsyncDebugOperation when a result is available. + // The event is fired in the debugger thread. + HRESULT onComplete(void); +} + +/* IEnumDebugCodeContexts +Enumerates code contexts. Generally used to enumerate the code +contexts corresponding to a document context. + +*/ + [ + object, + uuid(51973C1d-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IEnumDebugCodeContexts Interface"), + pointer_default(unique) +] +interface IEnumDebugCodeContexts : IUnknown { + + [local] + HRESULT __stdcall Next( + [in] ULONG celt, + [out] IDebugCodeContext **pscc, + [out] ULONG *pceltFetched); + + [call_as(Next)] + HRESULT __stdcall RemoteNext( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched )] + IDebugCodeContext **pscc, + [out] ULONG *pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(void); + + HRESULT Clone( + [out] IEnumDebugCodeContexts **ppescc); +} + +/* DebugStackFrameDescriptor +Used to enumerate stack frames and merge output from several enumerators (on the same thread). +dwMin and dwLim provide a machine dependent representation of the range +of physical addresses associated with this stack frame. This is used by +the process debug manager to sort the stack frames from multiple script engines. +By convention, stacks grow down and, as such, on architectures where stacks grow +up the addresses should be twos-complemented. + + +The punkFinal is used during enumerator merging. If punkFinal is non-null, +It indicates that the that the current enumerator merging should stop and +a new one should be started. The object indicates how the new enumeration is to be started. +*/ +typedef struct tagDebugStackFrameDescriptor + { + IDebugStackFrame *pdsf; + DWORD dwMin; + DWORD dwLim; + BOOL fFinal; + IUnknown *punkFinal; + } DebugStackFrameDescriptor; + +typedef struct tagDebugStackFrameDescriptor64 + { + IDebugStackFrame *pdsf; + DWORDLONG dwMin; + DWORDLONG dwLim; + BOOL fFinal; + IUnknown *punkFinal; + } DebugStackFrameDescriptor64; + + +/* IEnumDebugStackFrames +Enumerates stack frames. Generally used to enumerate the stack frames corresponding to a thread. +*/ + +[ + object, + uuid(51973C1e-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IEnumDebugStackFrames Interface"), + pointer_default(unique) +] +interface IEnumDebugStackFrames : IUnknown +{ + [local] + HRESULT __stdcall Next( + [in] ULONG celt, + [out] DebugStackFrameDescriptor *prgdsfd, + [out] ULONG *pceltFetched); + + [call_as(Next)] + HRESULT __stdcall RemoteNext( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched )] + DebugStackFrameDescriptor *prgdsfd, + [out] ULONG *pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(void); + + HRESULT Clone( + [out] IEnumDebugStackFrames **ppedsf); +} + +// +// This interface was added in v7, but is not in the office RTM. +[ + object, + uuid(0dc38853-c1b0-4176-a984-b298361027af), + helpstring("IEnumDebugStackFrames Interface"), + pointer_default(unique) +] +interface IEnumDebugStackFrames64 : IEnumDebugStackFrames +{ + [local] + HRESULT __stdcall Next64( + [in] ULONG celt, + [out] DebugStackFrameDescriptor64 *prgdsfd, + [out] ULONG *pceltFetched); + + [call_as(Next64)] + HRESULT __stdcall RemoteNext64( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched )] + DebugStackFrameDescriptor64 *prgdsfd, + [out] ULONG *pceltFetched); +} + +/* Smart Host Interfaces + +Below are the details of the interfaces implemented by a smart host. +As mentioned earlier, it is possible to avoid implementing these interfaces by +using the smart host helper interfaces. + +

IDebugDocumentInfo

+Provides information on a document, which may or may not be instantiated. */ +[ + object, + uuid(51973C1f-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IDebugDocumentInfo Interface"), + pointer_default(unique) +] +interface IDebugDocumentInfo : IUnknown { + // Returns the specified name for the document. If the indicated name is + // not known, E_FAIL is returned. + HRESULT GetName( + [in] DOCUMENTNAMETYPE dnt, + [out] BSTR *pbstrName); + // Returns a CLSID describing the document type. This allows the debugger IDE + // to host custom viewers for this document. returns CLSID_NULL if this document + // does not have viewable data. + HRESULT GetDocumentClassId( + [out] CLSID *pclsidDocument); +} + +/* IDebugDocumentProvider +Provides the means for instantiating a document on demand. This indirect means for instanciating a document: +1. Allows lazy loading of the document. +2. Allows the document object to live at the debugger IDE. +3. Allows more then one way of getting to the identical document object. +This effectively segregates the document from its provider; this allows the +provider to carry additional runtime context information. + + +*/ +[ + object, + uuid(51973C20-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IDebugDocumentProvider Interface"), + pointer_default(unique) +] +interface IDebugDocumentProvider : IDebugDocumentInfo { + + // Causes the document to be instantiated if it does not already exist. + HRESULT GetDocument( + [out] IDebugDocument **ppssd); + +} + +/* IDebugDocument +The base interface to all debug documents. +*/ +[ + object, + uuid(51973C21-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugDocument : IDebugDocumentInfo { +} + +#pragma warning(push) +#pragma warning(disable:28718) /* suppress warning 28718 for interface IDebugDocumentText */ +/* IDebugDocumentText +The interface to a text only debug document. +Conventions: +1. Both character positions and line numbers are zero based. +2. Character-positions represent character offsets; they do not represent +byte or word offsets. For Win32, a character-position is an Unicode offset. + +Note: the use of line-number based text management is not recommended; instead it +is recommended that character-position based management be used. The line to character-position mapping functions described in this interface may be removed. +*/ +[ + object, + uuid(51973C22-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugDocumentText : IDebugDocument { + + // Returns the attributes of the document. + HRESULT GetDocumentAttributes( + [out] TEXT_DOC_ATTR *ptextdocattr); + + // Returns the size of the document. + HRESULT GetSize( + [out] ULONG *pcNumLines, // NULL means do not return the number of lines. + [out] ULONG *pcNumChars); // NULL means do not return the number of characters. + + // Returns character-position corresponding to the first character of a line. + HRESULT GetPositionOfLine( + [in] ULONG cLineNumber, + [out] ULONG *pcCharacterPosition); + + // Returns the line-number and, optionally, the character offset within the line + // that corresponds to the given character-position. + HRESULT GetLineOfPosition( + [in] ULONG cCharacterPosition, + [out] ULONG *pcLineNumber, + [out] ULONG *pcCharacterOffsetInLine); // NULL means do not return a value. + + // Retrieves the characters and/or the character attributes associated with + // a character-position range; where a character position range is specified by + // a character-position and a number of characters. + HRESULT GetText( + [in] ULONG cCharacterPosition, + // Specifies a character text buffer. NULL means do not return characters. + [in, out, length_is(*pcNumChars), size_is(cMaxChars)] WCHAR *pcharText, + // Specifies a character attribute buffer. NULL means do not return attributes. + [in, out, length_is(*pcNumChars), size_is(cMaxChars), ptr] SOURCE_TEXT_ATTR *pstaTextAttr, + // Indicates the actual number of characters/attributes returned. Must be set to zero + // before the call. + [in, out] ULONG *pcNumChars, + // Specifies the number maximum number of character desired. + [in] ULONG cMaxChars); + + // Returns the character-position range corresponding to a document context. The document + // context provided must be associated with this document. + HRESULT GetPositionOfContext( + [in] IDebugDocumentContext *psc, + [out] ULONG *pcCharacterPosition, + [out] ULONG *cNumChars); + + // Creates a document context object corresponding to the provided character position range. + HRESULT GetContextOfPosition( + [in] ULONG cCharacterPosition, + [in] ULONG cNumChars, + [out] IDebugDocumentContext **ppsc); +} +#pragma warning(pop) + +/* IDebugDocumentTextEvents +Provides events indicating changes to the associated text document. +Note: The text alterations are reflected in the document at the time the +events on this interface are fired. Event handlers may retrieve the new text +using IDebugDocumentText. +*/ +[ + object, + uuid(51973C23-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugDocumentTextEvents : IUnknown +{ + + // Indicates that the underlying document has been destroyed and is no longer valid. + HRESULT onDestroy(void); + + // Indicates that new text has been added to the document. Example: progressive loading + // of HTML. + // + HRESULT onInsertText( + // The position where the new text is inserted. + [in] ULONG cCharacterPosition, + // The number of characters that have been inserted. + [in] ULONG cNumToInsert); + + // Indicates that text has been removed from the document. + HRESULT onRemoveText( + // The character-position of the first character removed. + [in] ULONG cCharacterPosition, + // The number of characters removed. + [in] ULONG cNumToRemove); + + // Indicates that text has been replaced. + HRESULT onReplaceText( + // The starting character-position of the character-position range + // that is being replaced. + [in] ULONG cCharacterPosition, + // The number of characters replaced. + [in] ULONG cNumToReplace); + + // Indicates that the text attributes associated with the underlying character-position + // range has changed. + HRESULT onUpdateTextAttributes( + // The character-position of the first character whose attributes have changed. + [in] ULONG cCharacterPosition, + // The number of characters in the range. + [in] ULONG cNumToUpdate); + + // Indicates that the document attributes have changed. + HRESULT onUpdateDocumentAttributes( + // The new document attributes. + [in] TEXT_DOC_ATTR textdocattr); +} + +// +/* IDebugDocumentTextAuthor +This preliminary interface is provided by text documents that support editing. +Notes: +1. In the future transactioning and undo support will be added to this interface. +2. The events on IDebugDocumentTextEvents will fire as a result of calls to +this interface. The caller should use this interface to modify the document but rely +on the events to update the display. +*/ +#pragma warning(push) +#pragma warning(disable:28718) /* suppres warning 28718 for interface IDebugDocumentTextAuthor */ +[ + object, + uuid(51973C24-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugDocumentTextAuthor : IDebugDocumentText { + + // Insert new text into the document. + HRESULT InsertText( + [in] ULONG cCharacterPosition, + [in] ULONG cNumToInsert, + // A buffer containing the characters to insert. + [in, size_is(cNumToInsert)] + OLECHAR pcharText[]); + + // Remove text from the document. + HRESULT RemoveText( + [in] ULONG cCharacterPosition, + [in] ULONG cNumToRemove); + + // Replace text in the document. + HRESULT ReplaceText( + [in] ULONG cCharacterPosition, + [in] ULONG cNumToReplace, + // A buffer containing the characters with which to replace the old characters. + [in, size_is(cNumToReplace)] + OLECHAR pcharText[]); +} +#pragma warning(pop) + +/* IDebugDocumentTextExternalAuthor +An extremely preliminary interface to allow external editors to edit file-based +debugger documents, and to notify the document when the source file has been changed. +*/ +[ + object, + uuid(51973C25-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugDocumentTextExternalAuthor : IUnknown{ + + // Return the full path (including file name) to the document's source file. + // *pfIsOriginalPath is TRUE if the path refers to the original file for the document. + // *pfIsOriginalPath is FALSE if the path refers to a newly created temporary file + // Returns E_FAIL if no source file can be created/determined. + HRESULT GetPathName( + [out] BSTR *pbstrLongName, + [out] BOOL *pfIsOriginalFile); + + // Return just the name of the document, with no path information. + // (Used for "Save As...") + HRESULT GetFileName( + [out] BSTR *pbstrShortName); + + // Notify the host that the document's source file has been saved and + // that its contents should be refreshed. + HRESULT NotifyChanged(); +} +// + +/* IDebugDocumentHelper + +IDebugDocumentHelper greatly simplifies the task of creating a smart host +for ActiveDebugging. + +IDebugDocumentHelper automatically provides implementations for IDebugDocumentProvider, +IDdebugDocument, IDebugDocumentText, IDebugDocumentContext, IDebugDocumentTextEvents, +and many of the other interfaces necessary for smart hosting. + +To be a smart host using IDebugDocumentHelper, a host application only to do only +three two things: + +(1) CoCreate an IProcessDebugManager and use it to add your application to the list +of debuggable applications. + +(2) create an IDebugDocumentHelper for each host document and make the appropriate +calls to define the document name, parent document, text, and script blocks. + +(3) Implement IActiveScriptSiteDebug on your IActiveScriptSite object (implemented +already for Active Scripting. The only non-trivial method on IActiveScriptSiteDebug +simply delegates to the helper. + +Additionally, the host can optionally implement IDebugDocumentHost if it needs additional +control over syntax color, document context creation, and other extended functionality. + +The main limitation on the smart host helper is that can only handle documents whose contents +change or shrink after they have been added (though documents can expand, of course.) For +many smart hosts, however, the functionality it provides is exactly what is needed. + +Below we go into each of the steps in more detail. + +

Create an Application Object

+ +Before the smart host helper can be used, it is necessary to create an IDebugApplication +object to represent your application in the debugger. +The steps for creating an application object are as follows: + +(1) Create an instance of the process debug manager using CoCreateInstance. +(2) Call IProcessDebugManager::CreateApplication(). +(3) Set the name on the application using SetName(). +(4) Add the application object to the list of debuggable applications using +AddApplication(). + +Below is code to do this, minus error-check and other niceties. + + + CoCreateInstance(CLSID_ProcessDebugManager, NULL, + CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER, + IID_IProcessDebugManager, (void **)&g_ppdm); + + g_ppdm->CreateApplication(&g_pda); + g_pda->SetName(L"My cool application"); + g_ppdm->AddApplication(g_pda, &g_dwAppCookie); + + +

Using IDebugDocumentHelper

+ +The minimal sequence of steps for using the helper is as follows: + +(1) For each host document, create a helper using +IProcessDebugManager::CreateDebugDocumentHelper. + +(2) Call Init on the helper, giving the name, document attributes, etc. + +(3) Call Attach with parent helper for the document (or NULL if the document is +the root) to define the position of the document in the tree and make it visible +to the debugger + +(4) Call AddDBCSText() or AddUnicodeText() to define the text of the document. +(These can be called multiple times if document is downloaded incrementally, +as in the case of a browser.) + +(5) Call DefineScriptBlock to define the ranges for each script block and the +associated script engines. + +

Implementing IActiveScriptSiteDebug

+ +To implement GetDocumentContextFromPosition , get the helper corresponding to +the given site, then get the starting document offset for the given source context, as +follows: + + pddh->GetScriptBlockInfo(dwSourceContext, NULL, &ulStartPos, NULL); + +Next, use the helper to create a new document context for the given character offset: + + pddh->CreateDebugDocumentContext(ulStartPos + uCharacterOffset, cChars, &pddcNew); + +To implement GetRootApplicationNode , simply call IDebugApplication::GetRootNode. + +To implement GetDebugApplication , simply return the IDebugApplication you initially +created using the process debug manager. + +

The optional IDebugDocumentHost interface

+ +The host can provide an implementation of IDebugDocumentHost using IDebugDocumentHelper::SetHost +that gives it additional control over the helper. Here are some of the key things the host +interface allows you to do: + +(1) Add text using AddDeferredText so that the host doesn't have to provide the actual +characters immediately. When the characters are really needed, the helper will call +IDebugDocumentHost::GetDeferredCharacters on the host. + +(2) Override the default syntax coloring provided by the helper. The helper will call +IDebugDocumentHost::GetScriptTextAttributes when it needs to know the coloring for a range +of characters, falling back on its default implementation if the host return E_NOTIMPL. + +(3) Providing a controlling unknown for document contexts created by the helper my implementing +IDebugDocumentHost::OnCreateDocumentContext. This allows the host to override the functionality +of the default document context implementation. + +(4) Provide a path name in the file system for the document. Some debugging UIs will use this +to permit the user to edit and save changes to the document. IDebugDocumentHost::NotifyChanged +will be called to notify the host after the document has been saved. +*/ +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IDebugDocumentHelper IDebugDocumentHelper64") +cpp_quote("#define IID_IDebugDocumentHelper IID_IDebugDocumentHelper64") +cpp_quote("#else") +cpp_quote("#define IDebugDocumentHelper IDebugDocumentHelper32") +cpp_quote("#define IID_IDebugDocumentHelper IID_IDebugDocumentHelper32") +cpp_quote("#endif") +cpp_quote("#endif") + +[ + object, + uuid(51973C26-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IDebugDocumentHelper Interface"), + pointer_default(unique) +] +interface IDebugDocumentHelper32 : IUnknown +{ + // Initialize a debug doc helper with the given name and + // initial attributes. + // + // Note: The document will not actually appear in the tree + // until Attach is called. + HRESULT Init( + [in] IDebugApplication32 *pda, + [in, string] LPCOLESTR pszShortName, + [in, string] LPCOLESTR pszLongName, + [in] TEXT_DOC_ATTR docAttr + ); + + // Add the document to the doc tree, using pddhParent as the parent. + // If the ppdhParent is NULL, the document will be top-level. + HRESULT Attach([in] IDebugDocumentHelper32 *pddhParent); + + // Remove the document from the doc tree. + HRESULT Detach(); + + // Add the given set of unicode characters to end of the document. + // (This will generate IDebugDocumentTextEvent notifications.) + // + // If this method is called after AddDeferredText has been called, + // E_FAIL will be returned. + HRESULT AddUnicodeText( + [in, string] LPCOLESTR pszText + ); + + // Add the given set of DBCS characters to end of the document. + // (This will generate IDebugDocumentTextEvent notifications.) + // + // If this method is called after AddDeferredText has been called, + // E_FAIL will be returned. + HRESULT AddDBCSText( + [in, string] LPCSTR pszText + ); + + // Set the DebugDocumentHost interface. + // If provided, this interface will be used for + // smart-host syntax coloring, fetching deferred text, and returning + // controlling unknowns for newly created document contexts. + HRESULT SetDebugDocumentHost( + [in] IDebugDocumentHost* pddh + ); + + // Notify the helper that the given text is available, but don't actually + // provide the characters. + + // This allows the host to defer providing the characters unless they + // are actually needed, while still allowing the helper to generate + // accurate notifications and size information. + // + // dwTextStartCookie is a cookie, defined by the host, that represents + // the starting position of the text. (For example, in a host that + // represents text in DBCS, the cookie could be a byte offset.) + // This cookie will be provided in subsequent calls to GetText. + // + // NB: It is assumed that a single call to + // GetText can get characters from multiple calls to AddDeferredText. + // The helper classes may also ask for the same range of deferred + // characters more than once. + // + // It is an error to mix calls to AddDeferredText with calls to + // AddUnicodeText or AddDBCSText-- Doing so will cause E_FAIL to be + // returned. + HRESULT AddDeferredText( + [in] ULONG cChars, // number of (Unicode) characters to add + [in] DWORD dwTextStartCookie + // host-defined cookie representing the starting position of the text. + ); + + // Notify the helper that a particular range of + // characters is a script block handled by the given script engine. + // All syntax coloring and code context lookups for that range will be + // delegated to that script engine. + // + // This method would be used by a smart host whose documents contained + // embedded script blocks, or by a language engine containing embedded + // scripts for other languages. + // + // DefineScriptBlock should be called after the text has been + // added (via AddDBCSText, etc) but before the script script block + // has been parsed (via IActiveScriptParse). + + HRESULT DefineScriptBlock( + [in] ULONG ulCharOffset, + [in] ULONG cChars, + [in] IActiveScript *pas, + [in] BOOL fScriptlet, + [out] DWORD* pdwSourceContext + ); + + // Set the default attribute to use for text that is not in a + // script block. (If not explicitly set, the default attributes for + // text outside of a script block is SOURCETEXT_ATTR_NONSOURCE.) + // + // This would allow, for example, for text outside of script blocks + // to be colored grey and marked read-only. + HRESULT SetDefaultTextAttr(SOURCE_TEXT_ATTR staTextAttr); + + // Explicilty set the attributes on a range of text, overriding any + // other attributes on that text. + // + // It is an error to set the attributes on a text range that has not + // yet been added using AddText. + HRESULT SetTextAttributes( + [in] ULONG ulCharOffset, + [in] ULONG cChars, + [in, length_is(cChars), size_is(cChars)] + SOURCE_TEXT_ATTR* pstaTextAttr); + + // Set a new long name for the document + HRESULT SetLongName( + [in, string] LPCOLESTR pszLongName); + + // Set a new short name for the document + HRESULT SetShortName( + [in, string] LPCOLESTR pszShortName); + + // Define a new set of document attributes + HRESULT SetDocumentAttr( + [in] TEXT_DOC_ATTR pszAttributes + ); + + // Return the debug application node corresponding to this document + HRESULT GetDebugApplicationNode( + [out] IDebugApplicationNode **ppdan); + + // Once a script block has been defined, this method allows the + // associate range and script engine to be retrieved. + HRESULT GetScriptBlockInfo( + [in] DWORD dwSourceContext, + [out] IActiveScript **ppasd, + [out] ULONG *piCharPos, + [out] ULONG *pcChars); + + // Allows the host to create a new debug document context + HRESULT CreateDebugDocumentContext( + [in] ULONG iCharPos, + [in] ULONG cChars, + [out] IDebugDocumentContext** ppddc); + + + // Bring this document to the top in the debugger UI. + // If the debugger isn't started already, start it now. + HRESULT BringDocumentToTop(); + + // Bring the given context in this document to the top + // in the debugger UI. + HRESULT BringDocumentContextToTop(IDebugDocumentContext *pddc); +}; + +[ + object, + uuid(c4c7363c-20fd-47f9-bd82-4855e0150871), + helpstring("IDebugDocumentHelper Interface"), + pointer_default(unique) +] +interface IDebugDocumentHelper64 : IUnknown +{ + // Initialize a debug doc helper with the given name and + // initial attributes. + // + // Note: The document will not actually appear in the tree + // until Attach is called. + HRESULT Init( + [in] IDebugApplication64 *pda, + [in, string] LPCOLESTR pszShortName, + [in, string] LPCOLESTR pszLongName, + [in] TEXT_DOC_ATTR docAttr + ); + + // Add the document to the doc tree, using pddhParent as the parent. + // If the ppdhParent is NULL, the document will be top-level. + HRESULT Attach([in] IDebugDocumentHelper64 *pddhParent); + + // Remove the document from the doc tree. + HRESULT Detach(); + + // Add the given set of unicode characters to end of the document. + // (This will generate IDebugDocumentTextEvent notifications.) + // + // If this method is called after AddDeferredText has been called, + // E_FAIL will be returned. + HRESULT AddUnicodeText( + [in, string] LPCOLESTR pszText + ); + + // Add the given set of DBCS characters to end of the document. + // (This will generate IDebugDocumentTextEvent notifications.) + // + // If this method is called after AddDeferredText has been called, + // E_FAIL will be returned. + HRESULT AddDBCSText( + [in, string] LPCSTR pszText + ); + + // Set the DebugDocumentHost interface. + // If provided, this interface will be used for + // smart-host syntax coloring, fetching deferred text, and returning + // controlling unknowns for newly created document contexts. + HRESULT SetDebugDocumentHost( + [in] IDebugDocumentHost* pddh + ); + + // Notify the helper that the given text is available, but don't actually + // provide the characters. + + // This allows the host to defer providing the characters unless they + // are actually needed, while still allowing the helper to generate + // accurate notifications and size information. + // + // dwTextStartCookie is a cookie, defined by the host, that represents + // the starting position of the text. (For example, in a host that + // represents text in DBCS, the cookie could be a byte offset.) + // This cookie will be provided in subsequent calls to GetText. + // + // NB: It is assumed that a single call to + // GetText can get characters from multiple calls to AddDeferredText. + // The helper classes may also ask for the same range of deferred + // characters more than once. + // + // It is an error to mix calls to AddDeferredText with calls to + // AddUnicodeText or AddDBCSText-- Doing so will cause E_FAIL to be + // returned. + HRESULT AddDeferredText( + [in] ULONG cChars, // number of (Unicode) characters to add + [in] DWORD dwTextStartCookie + // host-defined cookie representing the starting position of the text. + ); + + // Notify the helper that a particular range of + // characters is a script block handled by the given script engine. + // All syntax coloring and code context lookups for that range will be + // delegated to that script engine. + // + // This method would be used by a smart host whose documents contained + // embedded script blocks, or by a language engine containing embedded + // scripts for other languages. + // + // DefineScriptBlock should be called after the text has been + // added (via AddDBCSText, etc) but before the script script block + // has been parsed (via IActiveScriptParse). + + HRESULT DefineScriptBlock( + [in] ULONG ulCharOffset, + [in] ULONG cChars, + [in] IActiveScript *pas, + [in] BOOL fScriptlet, + [out] DWORDLONG *pdwSourceContext + ); + + // Set the default attribute to use for text that is not in a + // script block. (If not explicitly set, the default attributes for + // text outside of a script block is SOURCETEXT_ATTR_NONSOURCE.) + // + // This would allow, for example, for text outside of script blocks + // to be colored grey and marked read-only. + HRESULT SetDefaultTextAttr(SOURCE_TEXT_ATTR staTextAttr); + + // Explicilty set the attributes on a range of text, overriding any + // other attributes on that text. + // + // It is an error to set the attributes on a text range that has not + // yet been added using AddText. + HRESULT SetTextAttributes( + [in] ULONG ulCharOffset, + [in] ULONG cChars, + [in, length_is(cChars), size_is(cChars)] + SOURCE_TEXT_ATTR* pstaTextAttr); + + // Set a new long name for the document + HRESULT SetLongName( + [in, string] LPCOLESTR pszLongName); + + // Set a new short name for the document + HRESULT SetShortName( + [in, string] LPCOLESTR pszShortName); + + // Define a new set of document attributes + HRESULT SetDocumentAttr( + [in] TEXT_DOC_ATTR pszAttributes + ); + + // Return the debug application node corresponding to this document + HRESULT GetDebugApplicationNode( + [out] IDebugApplicationNode **ppdan); + + // Once a script block has been defined, this method allows the + // associate range and script engine to be retrieved. + HRESULT GetScriptBlockInfo( + [in] DWORDLONG dwSourceContext, + [out] IActiveScript **ppasd, + [out] ULONG *piCharPos, + [out] ULONG *pcChars); + + // Allows the host to create a new debug document context + HRESULT CreateDebugDocumentContext( + [in] ULONG iCharPos, + [in] ULONG cChars, + [out] IDebugDocumentContext** ppddc); + + + // Bring this document to the top in the debugger UI. + // If the debugger isn't started already, start it now. + HRESULT BringDocumentToTop(); + + // Bring the given context in this document to the top + // in the debugger UI. + HRESULT BringDocumentContextToTop(IDebugDocumentContext *pddc); +}; + +/* IDebugDocumentHost +The interface from the IDebugDocumentHelper back to +the smart host or language engine. This interface +exposes host specific functionality such as syntax coloring, +*/ +#pragma warning(push) +#pragma warning(disable:28718) +[ + object, + uuid(51973C27-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IDebugDocumentHost Interface"), + pointer_default(unique) +] +interface IDebugDocumentHost : IUnknown +{ + + // Return a particular range of characters in the original host document, + // added using AddDeferredText. + // + // It is acceptable for a host to return E_NOTIMPL for this method, + // as long as the host doesn't call AddDeferredText. + // + // (Note that this is text from the _original_ document. The host + // does not need to be responsible for keeping track of edits, etc.) + HRESULT GetDeferredText( + [in] DWORD dwTextStartCookie, + // Specifies a character text buffer. NULL means do not return characters. + [in, out, length_is(*pcNumChars), size_is(cMaxChars)] WCHAR *pcharText, + // Specifies a character attribute buffer. NULL means do not return attributes. + [in, out, length_is(*pcNumChars), size_is(cMaxChars)] SOURCE_TEXT_ATTR *pstaTextAttr, + // Indicates the actual number of characters/attributes returned. Must be set to zero + // before the call. + [in, out] ULONG *pcNumChars, + // Specifies the number maximum number of character desired. + [in] ULONG cMaxChars); + + // Return the text attributes for an arbitrary block of document text. + // It is acceptable for hosts to return E_NOTIMPL, in which case the + // default attributes are used. + HRESULT GetScriptTextAttributes( + // The script block text. This string need not be null terminated. + [in, size_is(uNumCodeChars)] LPCOLESTR pstrCode, + // The number of characters in the script block text. + [in] ULONG uNumCodeChars, + // See IActiveScriptParse::ParseScriptText for a description of this argument. + [in] LPCOLESTR pstrDelimiter, + // See IActiveScriptParse::ParseScriptText for a description of this argument. + [in] DWORD dwFlags, + // Buffer to contain the returned attributes. + [in, out, size_is(uNumCodeChars)] SOURCE_TEXT_ATTR *pattr); + + // Notify the host that a new document context is being created + // and allow the host to optionally return a controlling unknown + // for the new context. + // + // This allows the host to add new functionality to the helper-provided + // document contexts. It is acceptable for the host to return E_NOTIMPL + // or a null outer unknown for this method, in which case the context is + // used "as is". + HRESULT OnCreateDocumentContext( + [out] IUnknown** ppunkOuter); + + // Return the full path (including file name) to the document's source file. + // *pfIsOriginalPath is TRUE if the path refers to the original file for the document. + // *pfIsOriginalPath is FALSE if the path refers to a newly created temporary file + // Returns E_FAIL if no source file can be created/determined. + HRESULT GetPathName( + [out] BSTR *pbstrLongName, + [out] BOOL *pfIsOriginalFile); + + // Return just the name of the document, with no path information. + // (Used for "Save As...") + HRESULT GetFileName( + [out] BSTR *pbstrShortName); + + // Notify the host that the document's source file has been saved and + // that its contents should be refreshed. + HRESULT NotifyChanged(); +}; +#pragma warning(pop) + +/* IDebugDocumentContext +Abstract representation of a portion of the debug document. For text documents +this consists of a character-position range. +*/ +[ + object, + uuid(51973C28-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugDocumentContext : IUnknown +{ + // Returns the document that contains this context. + HRESULT GetDocument( + [out] IDebugDocument **ppsd); + + // Enumerates the code contexts associated with this document context. Generally there will + // only be one code context but there are important exceptions, such as include file + // or templates (in C++). + HRESULT EnumCodeContexts( + [out] IEnumDebugCodeContexts **ppescc); +} + +/* Debugger UI interfaces + +Below are the interfaces that allow other components to launch +and interfact with the debugger UI. + +

IDebugSessionProvider

+The primary interface provided by a debugger IDE to enable host and +language initiated debugging. Its sole purpose is to establish a debug +session for a running application. +*/ +[ + object, + uuid(51973C29-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IDebugSessionProvider Interface"), + pointer_default(unique) +] +interface IDebugSessionProvider : IUnknown +{ + // Initiates a debug session with the specified application. The debugger should + // call IRemoteDebugApplication::ConnectDebugger before returning from this call. + HRESULT StartDebugSession( + [in] IRemoteDebugApplication *pda); +}; + +/* IApplicationDebugger +This is the primary interface exposed by a debugger IDE. +*/ +[ + object, + uuid(51973C2a-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IApplicationDebugger Interface"), + pointer_default(unique) +] +interface IApplicationDebugger : IUnknown +{ + // Indicates if the debugger is alive. Should always return S_OK. If the debugger + // has rudely shut down COM will return an error from the marshalling proxy. + HRESULT QueryAlive(void); + // Provides a mechanism for hosts and language engines running out-of-process to the + // debugger to create objects in the debugger process. This can be used for any purpose, + // including extending the debugger UI. This method simply delegates to CoCreateInstance. + HRESULT CreateInstanceAtDebugger( + [in] REFCLSID rclsid, // Class identifier (CLSID) of the object + [in] IUnknown *pUnkOuter, // Object is or isn't part of an aggregate + [in] DWORD dwClsContext, // Context for running executable code + [in] REFIID riid, // Interface identifier + [out, iid_is(riid)] IUnknown **ppvObject); + // Points to requested interface pointer + // This method is called when IDebugApplication::DebugOutput is called. The debugger + // can use this to display the string in an output window. + HRESULT onDebugOutput( + [in] LPCOLESTR pstr); + // This method is called when a breakpoint is hit. The application will remain + // suspended until the debugger IDE calls IDebugApplication::ResumeFromBreakPoint. + HRESULT onHandleBreakPoint( + // Indicates the thread in which the breakpoint occured. + [in] IRemoteDebugApplicationThread *prpt, + // Indicates the reason for the breakpoint. + [in] BREAKREASON br, + // optional runtime error info (for when br == BREAKREASON_ERROR) + [in] IActiveScriptErrorDebug *pError); + + // This method is called when IDebugApplication::Close is called. + HRESULT onClose(void); + + // Handle a custom event. + // The semantics of the GUID and IUnknown are entirely application/debugger defined + // This method may return E_NOTIMPL. + HRESULT onDebuggerEvent( + [in] REFIID riid, + [in] IUnknown *punk); +}; + +/* IApplicationDebuggerUI +This is a secondary interface exposed by some debugger IDE +that allows an external component to have additional control +over the debuggers UI. +*/ +[ + object, + uuid(51973C2b-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IApplicationDebuggerUI Interface"), + pointer_default(unique) +] +interface IApplicationDebuggerUI : IUnknown +{ + // Bring the window corresponding to the given debug document to the front. + // Returns E_INVALIDARG if the document is not known. + HRESULT BringDocumentToTop([in] IDebugDocumentText* pddt); + + // Bring the window containing the given doc context to the front, + // and scroll it to the correct location. + // Returns E_INVALIDARG if the context is not known. + HRESULT BringDocumentContextToTop([in] IDebugDocumentContext* pddc); +}; + + + + +/* IMachineDebugManager +The primary interface to the Machine Debug Manager. +*/ +cpp_quote("EXTERN_C const CLSID CLSID_MachineDebugManager;") +[ + object, + uuid(51973C2c-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IMachineDebugManager Interface"), + pointer_default(unique) +] +interface IMachineDebugManager : IUnknown +{ + // Adds an application to the running application list. This method is called by the + // process debug manager whenever IProcessDebugManager::AddApplication is called. + HRESULT AddApplication( + [in] IRemoteDebugApplication *pda, + [out] DWORD *pdwAppCookie); + // Removes an application from the running application list. This method is called by the + // process debug manager whenever IProcessDebugManager::RemoveApplication is called. + HRESULT RemoveApplication( + [in] DWORD dwAppCookie); + // Returns an enumerator of the current list of running applications. Used by the debugger + // IDE to display and attach applications for debugging purposes. + HRESULT EnumApplications( + [out] IEnumRemoteDebugApplications **ppeda); +}; + +/* IMachineDebugManagerCookie - As IMachineDebugManager with Debug Cookie support +*/ +[ + object, + uuid(51973C2d-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IMachineDebugManagerCookie Interface"), + pointer_default(unique) +] +interface IMachineDebugManagerCookie : IUnknown +{ + // Adds an application to the running application list. This method is called by the + // process debug manager whenever IProcessDebugManager::AddApplication is called. + HRESULT AddApplication( + [in] IRemoteDebugApplication *pda, + [in] DWORD dwDebugAppCookie, + [out] DWORD *pdwAppCookie); + // Removes an application from the running application list. This method is called by the + // process debug manager whenever IProcessDebugManager::RemoveApplication is called. + HRESULT RemoveApplication( + [in] DWORD dwDebugAppCookie, + [in] DWORD dwAppCookie); + // Returns an enumerator of the current list of running applications. Used by the debugger + // IDE to display and attach applications for debugging purposes. + HRESULT EnumApplications( + [out] IEnumRemoteDebugApplications **ppeda); +}; + + +/* IMachineDebugManagerEvents +This event interface is used to signal changes in the running application +list maintained by the machine debug manager. It can be used by the debugger +IDE to display a dynamic list of applications. +*/ +[ + object, + uuid(51973C2e-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IMachineDebugManagerEvents Interface"), + pointer_default(unique) +] +interface IMachineDebugManagerEvents : IUnknown +{ + // Indicates that a new application has appeared on the running application list. + HRESULT onAddApplication( + [in] IRemoteDebugApplication *pda, + [in] DWORD dwAppCookie); + // Indicates that an application has been removed from the running application list. + HRESULT onRemoveApplication( + [in] IRemoteDebugApplication *pda, + [in] DWORD dwAppCookie); +}; + + +/* Process Debug Manager Interfaces + +Below are the details of the interfaces for the process debug manager. + +

IProcessDebugManager

+The primary interface to the process debug manager. +*/ +cpp_quote("EXTERN_C const CLSID CLSID_ProcessDebugManager;") + +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IProcessDebugManager IProcessDebugManager64") +cpp_quote("#define IID_IProcessDebugManager IID_IProcessDebugManager64") +cpp_quote("#else") +cpp_quote("#define IProcessDebugManager IProcessDebugManager32") +cpp_quote("#define IID_IProcessDebugManager IID_IProcessDebugManager32") +cpp_quote("#endif") +cpp_quote("#endif") + +[ + object, + uuid(51973C2f-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IProcessDebugManager Interface"), + pointer_default(unique), + local +] +interface IProcessDebugManager32 : IUnknown +{ + // Creates a new debug application object. The new object is not added to the + // running application list and has no name. + HRESULT CreateApplication( + [out] IDebugApplication32 **ppda); + // Returns a default application object for the current process, creating one and adding + // it to the running application list if necessary. Language engines should use this + // application if they are running on a host that does not provide an application. + HRESULT GetDefaultApplication( + [out] IDebugApplication32 **ppda); + // Adds an application to the running application list in the machine debug manager. + HRESULT AddApplication( + [in] IDebugApplication32 *pda, + // Returns a cookie used to remove the application from the machine debug manager. + [out] DWORD *pdwAppCookie); + // Removes an application from the running application list. + HRESULT RemoveApplication( + // The cookie provided by AddApplication. + [in] DWORD dwAppCookie); + + HRESULT CreateDebugDocumentHelper( + [in] IUnknown *punkOuter, + [out] IDebugDocumentHelper32** pddh); +}; + +[ + object, + uuid(56b9fc1c-63a9-4cc1-ac21-087d69a17fab), + helpstring("IProcessDebugManager Interface"), + pointer_default(unique), + local +] +interface IProcessDebugManager64 : IUnknown +{ + // Creates a new debug application object. The new object is not added to the + // running application list and has no name. + HRESULT CreateApplication( + [out] IDebugApplication64 **ppda); + // Returns a default application object for the current process, creating one and adding + // it to the running application list if necessary. Language engines should use this + // application if they are running on a host that does not provide an application. + HRESULT GetDefaultApplication( + [out] IDebugApplication64 **ppda); + // Adds an application to the running application list in the machine debug manager. + HRESULT AddApplication( + [in] IDebugApplication64 *pda, + // Returns a cookie used to remove the application from the machine debug manager. + [out] DWORD *pdwAppCookie); + // Removes an application from the running application list. + HRESULT RemoveApplication( + // The cookie provided by AddApplication. + [in] DWORD dwAppCookie); + + HRESULT CreateDebugDocumentHelper( + [in] IUnknown *punkOuter, + [out] IDebugDocumentHelper64** pddh); +}; + + +/* IRemoteDebugApplication +An abstraction representing a running application. It need not correspond to an OS process. Applications are the smallest debuggable unit; that is, the debugger IDE normally targets an application for debugging. +The application object is normally implemented by the Process Debug Manager. + + + Stepping from interpreted code to native code needs additional help from the LE's. The LE's need to source an event that they are leaving the namespace. Additionally the LE's will need to provide some PC info of either where they are going to at le + + +ast where they are (assuming some thin thunk prior to calling out from the namespace). Both teams are in agreement on this. + +*Action Item* +PiersH and SamMck to investigate and come up with events and PC's. Additionally ShonK may need be involved to explain what info JS and VBS can give. + + +*/ +[ + object, + uuid(51973C30-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IRemoteDebugApplication Interface"), + pointer_default(unique) +] +interface IRemoteDebugApplication : IUnknown +{ + // Continue an application which is currently in a breakpoint. + HRESULT ResumeFromBreakPoint( + // For stepping modes, the thread which is to be affected by the stepping mode. + [in] IRemoteDebugApplicationThread *prptFocus, + // The action to take (step mode, etc.) upon resuming the application + [in] BREAKRESUMEACTION bra, + // the action to take in the case that we stopped because of an error + [in] ERRORRESUMEACTION era); + + // Causes the application to break into the debugger at the earliest opportunity. Note + // that a long time may elapse before the application actually breaks, particularly if + // the application is not currently executing script code. + HRESULT CauseBreak(void); + // Connects a debugger to the application. Only one debugger may be connected at a + // time; this method fails if there is already a debugger connected + HRESULT ConnectDebugger( + [in] IApplicationDebugger *pad); + // Disconnects the current debugger from the application. + HRESULT DisconnectDebugger(void); + // Returns the current debugger connected to the application. + HRESULT GetDebugger( + [out] IApplicationDebugger **pad); + // Provides a mechanism for the debugger IDE, running out-of-process to the + // application, to create objects in the application process. + // This method simply delegates to CoCreateInstance. + HRESULT CreateInstanceAtApplication( + [in] REFCLSID rclsid, // Class identifier (CLSID) of the object + // Note: This parameter may have to be removed. + [in] IUnknown *pUnkOuter, // Object is or isn't part of an aggregate + [in] DWORD dwClsContext, // Context for running executable code + [in] REFIID riid, // Interface identifier + [out, iid_is(riid)] IUnknown **ppvObject); + // Points to requested interface pointer + // Indicates if the application is alive. Should always return S_OK. If the application + // process has rudely shut down COM will return an error from the marshalling proxy. + HRESULT QueryAlive( + void); + // Enumerates all threads known to be associated with the application. + // New threads may be added at any time. + HRESULT EnumThreads( + [out] IEnumRemoteDebugApplicationThreads **pperdat); + // Returns the application node under which all nodes associated with the + // application are added. + HRESULT GetName( + [out] BSTR *pbstrName); + // Returns a node for the application + HRESULT GetRootNode( + [out] IDebugApplicationNode **ppdanRoot); + // Returns an enumerator that lists the global expression + // contexts for all languages running in this application + HRESULT EnumGlobalExpressionContexts ( + [out] IEnumDebugExpressionContexts **ppedec); +}; + +/* IDebugApplication +This interface is an extension of IRemoteDebugApplication, exposing +non-remotable methods for use by language engines and hosts. + +*/ + +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IDebugApplication IDebugApplication64") +cpp_quote("#define IID_IDebugApplication IID_IDebugApplication64") +cpp_quote("#else") +cpp_quote("#define IDebugApplication IDebugApplication32") +cpp_quote("#define IID_IDebugApplication IID_IDebugApplication32") +cpp_quote("#endif") +cpp_quote("#endif") + +[ + object, + uuid(51973C32-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IDebugApplication Interface"), + pointer_default(unique), + local +] +interface IDebugApplication32 : IRemoteDebugApplication +{ + // Sets the name of the application. The provided name will be returned in subsequent calls + // to IRemoteDebugApplication::GetName. + HRESULT SetName( + [in] LPCOLESTR pstrName); + // This method is called by language engines, in single step mode, just before they + // return to their caller. The process debug manager uses this opportunity to notify all + // other script engines that they should break at the first opportunity. This is how + // cross language step modes are implemented. + HRESULT StepOutComplete(void); + // Causes the given string to be displayed by the debugger IDE, normally in an output + // window. This mechanism provides the means for a language engine to implement language + // specific debugging output support. Example: Debug.writeln("Help") in JavaScript. + HRESULT DebugOutput( + [in] LPCOLESTR pstr); + // Causes a default debugger IDE to be started and a debug session to be attached to + // this application if one does not already exist. This is used to implement just-in-time + // debugging. + HRESULT StartDebugSession(void); + // Called by the language engine in the context of a thread that has hit a breakpoint. + // This method causes the current thread to block and a notification of the breakpoint + // to be sent to the debugger IDE. When the debugger IDE resumes the application this + // method returns with the action to be taken. + // + // Note: While in the breakpoint the language engine may be called in this thread to do + // various things such as enumerating stack frames or evaluating expressions. + HRESULT HandleBreakPoint( + [in] BREAKREASON br, + [out] BREAKRESUMEACTION *pbra); + // Causes this application to release all references and enter a zombie state. Called + // by the owner of the application generally on shut down. + HRESULT Close(void); + // Returns the current break flags for the application. + HRESULT GetBreakFlags( + [out] APPBREAKFLAGS *pabf, + [out] IRemoteDebugApplicationThread **pprdatSteppingThread); + // Returns the application thread object associated with the currently running thread. + HRESULT GetCurrentThread( + [out] IDebugApplicationThread **pat); + // Creates an IDebugAsyncOperation object to wrap a provided IDebugSyncOperation object. + // This provides a mechanism for language engines to implement asynchronous expression and + // evaluation, etc. without having to know the details of synchronization with the + // debugger thread. See the descriptions for IDebugSyncOperation and IDebugAsyncOperation + // for more details. + HRESULT CreateAsyncDebugOperation( + [in] IDebugSyncOperation *psdo, + [out] IDebugAsyncOperation **ppado); + // Adds a stack frame sniffer to this application. Generally called by a language engine + // to expose its stack frames to the debugger. It is possible for other entities to + // expose stack frames. + HRESULT AddStackFrameSniffer( + [in] IDebugStackFrameSniffer *pdsfs, + // Returns a cookie that is used to remove this stack frame sniffer + // from the application. + [out] DWORD *pdwCookie); + // Removes a stack frame sniffer from this application. + HRESULT RemoveStackFrameSniffer( + // The cookie returned by AddStackFrameSniffer. + [in] DWORD dwCookie); + // Returns S_OK if the current running thread is the debugger thread. + // Otherwise, returns S_FALSE. + HRESULT QueryCurrentThreadIsDebuggerThread( + void); + // Provides a mechanism for the caller to run code in the debugger thread. This is generally + // used so that language engines and hosts can implement free threaded objects on top + // of their single threaded implementations. + HRESULT SynchronousCallInDebuggerThread( + [in] IDebugThreadCall32 *pptc, + [in] DWORD dwParam1, + [in] DWORD dwParam2, + [in] DWORD dwParam3); + // Creates a new application node which is associated with a specific + // document provider. Before it is visible, the new node must be + // attached to a parent node. + HRESULT CreateApplicationNode( + [out] IDebugApplicationNode **ppdanNew); + + // Fire a generic event to the IApplicationDebugger (if any) + // The semantics of the GUID and IUnknown are entirely application/debugger defined + // + // This method is currently unimplemented but is here to allow for future extensions. + HRESULT FireDebuggerEvent( + [in] REFGUID riid, + [in] IUnknown *punk); + + // Called by the language engine in the context of a thread that has caused a runtime error . + // This method causes the current thread to block and a notification of the error + // to be sent to the debugger IDE. When the debugger IDE resumes the application this + // method returns with the action to be taken. + // + // Note: While in the runtime error the language engine may be called in this thread to do + // various things such as enumerating stack frames or evaluating expressions. + HRESULT HandleRuntimeError( + [in] IActiveScriptErrorDebug *pErrorDebug, // the error that occurred + [in] IActiveScriptSite *pScriptSite, // the script site of the thread + [out] BREAKRESUMEACTION *pbra, // how to continue execution (stepping etc...) + [out] ERRORRESUMEACTION *perra, // how to handle the error case + [out] BOOL *pfCallOnScriptError); // if TRUE then engine should call IActiveScriptSite::OnScriptError() + + // return TRUE if there is a JIT debugger registered + BOOL FCanJitDebug (); + + // returns TRUE if a JIT debugger is registered and it is registered to auto-JIT debug dumb hosts + BOOL FIsAutoJitDebugEnabled (); + + // Adds a global expression context provider to this application + HRESULT AddGlobalExpressionContextProvider( + [in] IProvideExpressionContexts *pdsfs, + // Returns a cookie that is used to remove this global expression context provider + // from the application. + [out] DWORD *pdwCookie); + + // Removes a global expression context provider from this application. + HRESULT RemoveGlobalExpressionContextProvider( + // The cookie returned by AddGlobalExpressionContextProvider. + [in] DWORD dwCookie); +} + +[ + object, + uuid(4dedc754-04c7-4f10-9e60-16a390fe6e62), + helpstring("IDebugApplication Interface"), + pointer_default(unique), + local +] +interface IDebugApplication64 : IRemoteDebugApplication +{ + // Sets the name of the application. The provided name will be returned in subsequent calls + // to IRemoteDebugApplication::GetName. + HRESULT SetName( + [in] LPCOLESTR pstrName); + // This method is called by language engines, in single step mode, just before they + // return to their caller. The process debug manager uses this opportunity to notify all + // other script engines that they should break at the first opportunity. This is how + // cross language step modes are implemented. + HRESULT StepOutComplete(void); + // Causes the given string to be displayed by the debugger IDE, normally in an output + // window. This mechanism provides the means for a language engine to implement language + // specific debugging output support. Example: Debug.writeln("Help") in JavaScript. + HRESULT DebugOutput( + [in] LPCOLESTR pstr); + // Causes a default debugger IDE to be started and a debug session to be attached to + // this application if one does not already exist. This is used to implement just-in-time + // debugging. + HRESULT StartDebugSession(void); + // Called by the language engine in the context of a thread that has hit a breakpoint. + // This method causes the current thread to block and a notification of the breakpoint + // to be sent to the debugger IDE. When the debugger IDE resumes the application this + // method returns with the action to be taken. + // + // Note: While in the breakpoint the language engine may be called in this thread to do + // various things such as enumerating stack frames or evaluating expressions. + HRESULT HandleBreakPoint( + [in] BREAKREASON br, + [out] BREAKRESUMEACTION *pbra); + // Causes this application to release all references and enter a zombie state. Called + // by the owner of the application generally on shut down. + HRESULT Close(void); + // Returns the current break flags for the application. + HRESULT GetBreakFlags( + [out] APPBREAKFLAGS *pabf, + [out] IRemoteDebugApplicationThread **pprdatSteppingThread); + // Returns the application thread object associated with the currently running thread. + HRESULT GetCurrentThread( + [out] IDebugApplicationThread **pat); + // Creates an IDebugAsyncOperation object to wrap a provided IDebugSyncOperation object. + // This provides a mechanism for language engines to implement asynchronous expression and + // evaluation, etc. without having to know the details of synchronization with the + // debugger thread. See the descriptions for IDebugSyncOperation and IDebugAsyncOperation + // for more details. + HRESULT CreateAsyncDebugOperation( + [in] IDebugSyncOperation *psdo, + [out] IDebugAsyncOperation **ppado); + // Adds a stack frame sniffer to this application. Generally called by a language engine + // to expose its stack frames to the debugger. It is possible for other entities to + // expose stack frames. + HRESULT AddStackFrameSniffer( + [in] IDebugStackFrameSniffer *pdsfs, + // Returns a cookie that is used to remove this stack frame sniffer + // from the application. + [out] DWORD *pdwCookie); + // Removes a stack frame sniffer from this application. + HRESULT RemoveStackFrameSniffer( + // The cookie returned by AddStackFrameSniffer. + [in] DWORD dwCookie); + // Returns S_OK if the current running thread is the debugger thread. + // Otherwise, returns S_FALSE. + HRESULT QueryCurrentThreadIsDebuggerThread( + void); + // Provides a mechanism for the caller to run code in the debugger thread. This is generally + // used so that language engines and hosts can implement free threaded objects on top + // of their single threaded implementations. + HRESULT SynchronousCallInDebuggerThread( + [in] IDebugThreadCall64 *pptc, + [in] DWORDLONG dwParam1, + [in] DWORDLONG dwParam2, + [in] DWORDLONG dwParam3); + // Creates a new application node which is associated with a specific + // document provider. Before it is visible, the new node must be + // attached to a parent node. + HRESULT CreateApplicationNode( + [out] IDebugApplicationNode **ppdanNew); + + // Fire a generic event to the IApplicationDebugger (if any) + // The semantics of the GUID and IUnknown are entirely application/debugger defined + // + // This method is currently unimplemented but is here to allow for future extensions. + HRESULT FireDebuggerEvent( + [in] REFGUID riid, + [in] IUnknown *punk); + + // Called by the language engine in the context of a thread that has caused a runtime error . + // This method causes the current thread to block and a notification of the error + // to be sent to the debugger IDE. When the debugger IDE resumes the application this + // method returns with the action to be taken. + // + // Note: While in the runtime error the language engine may be called in this thread to do + // various things such as enumerating stack frames or evaluating expressions. + HRESULT HandleRuntimeError( + [in] IActiveScriptErrorDebug *pErrorDebug, // the error that occurred + [in] IActiveScriptSite *pScriptSite, // the script site of the thread + [out] BREAKRESUMEACTION *pbra, // how to continue execution (stepping etc...) + [out] ERRORRESUMEACTION *perra, // how to handle the error case + [out] BOOL *pfCallOnScriptError); // if TRUE then engine should call IActiveScriptSite::OnScriptError() + + // return TRUE if there is a JIT debugger registered + BOOL FCanJitDebug (); + + // returns TRUE if a JIT debugger is registered and it is registered to auto-JIT debug dumb hosts + BOOL FIsAutoJitDebugEnabled (); + + // Adds a global expression context provider to this application + HRESULT AddGlobalExpressionContextProvider( + [in] IProvideExpressionContexts *pdsfs, + // Returns a cookie that is used to remove this global expression context provider + // from the application. + [out] DWORDLONG *pdwCookie); + + // Removes a global expression context provider from this application. + HRESULT RemoveGlobalExpressionContextProvider( + // The cookie returned by AddGlobalExpressionContextProvider. + [in] DWORDLONG dwCookie); +}; + +/* IRemoteDebugApplicationEvents: +This is the event interface supplied by a debug application: It is +always called from within the debugger thread. + + + The current PDM event model isn't very extensible. We explained our current event model to Sam, Bob, Philip. It was received well. + +*Action Item* +SamMck to examine the current Vegas scheme to consider adding it to current ASD. + +*/ +[ + object, + uuid(51973C33-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IRemoteDebugApplicationEvents Interface"), + pointer_default(unique) +] +interface IRemoteDebugApplicationEvents : IUnknown +{ + HRESULT OnConnectDebugger( + [in] IApplicationDebugger *pad); + HRESULT OnDisconnectDebugger(void); + HRESULT OnSetName( + [in] LPCOLESTR pstrName); + HRESULT OnDebugOutput( + [in] LPCOLESTR pstr); + HRESULT OnClose(void); + HRESULT OnEnterBreakPoint( + [in] IRemoteDebugApplicationThread *prdat); + HRESULT OnLeaveBreakPoint( + [in] IRemoteDebugApplicationThread *prdat); + HRESULT OnCreateThread( + [in] IRemoteDebugApplicationThread *prdat); + HRESULT OnDestroyThread( + [in] IRemoteDebugApplicationThread *prdat); + HRESULT OnBreakFlagChange( + [in] APPBREAKFLAGS abf, + [in] IRemoteDebugApplicationThread *prdatSteppingThread); +}; + + +/* IDebugApplicationNode +Provides the functionality of IDebugDocumentProvider, plus a context within a project tree. +*/ +[ + object, + uuid(51973C34-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IDebugApplicationNode : IDebugDocumentProvider { + HRESULT EnumChildren( + [out] IEnumDebugApplicationNodes **pperddp); + HRESULT GetParent( + [out] IDebugApplicationNode **pprddp); + HRESULT SetDocumentProvider( + [in] IDebugDocumentProvider *pddp); + HRESULT Close(void); + HRESULT Attach( + [in] IDebugApplicationNode *pdanParent); + HRESULT Detach(void); +} + +/* IDebugApplicationNodeEvents +Event interface for DebugApplicationNode object. +*/ +[ + object, + uuid(51973C35-CB0C-11d0-B5C9-00A0244A0E7A), + async_uuid(a2e3aa3b-aa8d-4ebf-84cd-648b737b8c13), + pointer_default(unique) +] +interface IDebugApplicationNodeEvents : IUnknown { + HRESULT onAddChild( + [in] IDebugApplicationNode *prddpChild); + HRESULT onRemoveChild( + [in] IDebugApplicationNode *prddpChild); + HRESULT onDetach(void); + HRESULT onAttach( + [in] IDebugApplicationNode *prddpParent); +} + +/* IDebugThreadCall +IDebugThreadCall is implemented by a component making a cross-thread call +using the IDebugThread marshalling implementation in the PDM. It is called +by the PDM in the desired thread and should dispatches the call to the desired +implementation, casting the parameter information passed in the dwParam's to +the appropriate top. It is, of course, a free-threaded object. +*/ + +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IDebugThreadCall IDebugThreadCall64") +cpp_quote("#define IID_IDebugThreadCall IID_IDebugThreadCall64") +cpp_quote("#else") +cpp_quote("#define IDebugThreadCall IDebugThreadCall32") +cpp_quote("#define IID_IDebugThreadCall IID_IDebugThreadCall32") +cpp_quote("#endif") +cpp_quote("#endif") + +[ + object, + uuid(51973C36-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique), + local +] +interface IDebugThreadCall32 : IUnknown +{ + HRESULT ThreadCallHandler( + [in] DWORD dwParam1, + [in] DWORD dwParam2, + [in] DWORD dwParam3); +} + +[ + object, + uuid(cb3fa335-e979-42fd-9fcf-a7546a0f3905), + pointer_default(unique), + local +] +interface IDebugThreadCall64 : IUnknown +{ + HRESULT ThreadCallHandler( + [in] DWORDLONG dwParam1, + [in] DWORDLONG dwParam2, + [in] DWORDLONG dwParam3); +} + +/* IRemoteDebugApplicationThread +An abstraction representing a thread of execution within a particular application. +*/ +[ + object, + uuid(51973C37-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IRemoteDebugApplicationThread : IUnknown +{ + // Returns an operating system dependent identifier associated with the thread. + // + // Note: The returned value does not need to be unique across machines. + HRESULT GetSystemThreadId( + [out] DWORD *dwThreadId); + // Returns the application object associated with the thread. + HRESULT GetApplication( + [out] IRemoteDebugApplication **pprda); + // Returns an enumerator for the stack frames associated with the thread. Can only + // be called when in a breakpoint. The stack frame enumerator enumerates stack frames + // in the most recently called order. + HRESULT EnumStackFrames( + [out] IEnumDebugStackFrames **ppedsf); + + HRESULT GetDescription( + [out] BSTR *pbstrDescription, + [out] BSTR *pbstrState); + + // Forces execution to continue as close as possible to the + // given code context, in the context of the given frame. + // Either of these arguments may be NULL, representing the + // current frame or context. + HRESULT SetNextStatement ( + [in] IDebugStackFrame *pStackFrame, + [in] IDebugCodeContext *pCodeContext); + + // Thread State flags + typedef DWORD THREAD_STATE; + const THREAD_STATE THREAD_STATE_RUNNING = 0x00000001; + const THREAD_STATE THREAD_STATE_SUSPENDED = 0x00000002; + const THREAD_STATE THREAD_BLOCKED = 0x00000004; + const THREAD_STATE THREAD_OUT_OF_CONTEXT = 0x00000008; + + // returns the current state of the thread + HRESULT GetState ( + [out] DWORD *pState); + + // suspends the thread (increments the suspend count) + HRESULT Suspend ( + [out] DWORD *pdwCount); + + // resumes the thread (decrements the suspend count) + HRESULT Resume ( + [out] DWORD *pdwCount); + + // returns the current suspend count of the thread + HRESULT GetSuspendCount ( + [out] DWORD *pdwCount); +} + +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define SynchronousCallIntoThread SynchronousCallIntoThread64") +cpp_quote("#else") +cpp_quote("#define SynchronousCallIntoThread SynchronousCallIntoThread32") +cpp_quote("#endif") +cpp_quote("#endif") + +/* IDebugApplicationThread +An extension of IRemoteDebugApplicationThread that provides non-remotable +access to the thread. This interface is used by language engines and hosts +to provide thread synchronization and to maintain thread specific debug state information. +*/ +[ + object, + uuid(51973C38-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique), + local +] +interface IDebugApplicationThread : IRemoteDebugApplicationThread +{ + // Provides a mechanism for the caller to run code in another thread. This is generally + // used so that language engines and hosts can implement free threaded objects on top + // of their single threaded implementations. + + // this function is only implemented in 32 bit pdm + HRESULT SynchronousCallIntoThread32( + // The interface to be called back in the target thread. + [in] IDebugThreadCall32 *pstcb, + // Three arguments passed to the IDebugThreadCall. + [in] DWORD dwParam1, + [in] DWORD dwParam2, + [in] DWORD dwParam3); + // Returns S_OK when this is the currently running thread. Otherwise S_FALSE is returned. + HRESULT QueryIsCurrentThread( + void); + // Returns S_OK when this is the debugger thread. Otherwise, returns S_FALSE. + HRESULT QueryIsDebuggerThread( + void); + HRESULT SetDescription( + [in] LPCOLESTR pstrDescription); + HRESULT SetStateString( + [in] LPCOLESTR pstrState); +} + +[ + object, + uuid(9dac5886-dbad-456d-9dee-5dec39ab3dda), + pointer_default(unique), + local +] +interface IDebugApplicationThread64 : IDebugApplicationThread +{ + // Provides a mechanism for the caller to run code in another thread. This is generally + // used so that language engines and hosts can implement free threaded objects on top + // of their single threaded implementations. + HRESULT SynchronousCallIntoThread64( + // The interface to be called back in the target thread. + [in] IDebugThreadCall64 *pstcb, + // Three arguments passed to the IDebugThreadCall. + [in] DWORDLONG dwParam1, + [in] DWORDLONG dwParam2, + [in] DWORDLONG dwParam3); +} + + +[ + object, local, + uuid(51973C39-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IDebugCookie Interface"), + pointer_default(unique) +] +interface IDebugCookie : IUnknown +{ + HRESULT SetDebugCookie([in]DWORD dwDebugAppCookie); +}; + + +/* IEnumDebugApplicationNodes +Enumerates Application nodes. Generally used to enumerate child nodes of a node associated with an application. Example: a project window. +*/ +[ + object, + uuid(51973C3a-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IEnumDebugApplicationNodes Interface"), + pointer_default(unique) +] + + +interface IEnumDebugApplicationNodes : IUnknown { + + [local] + HRESULT __stdcall Next( + [in] ULONG celt, + [out] IDebugApplicationNode **pprddp, + [out] ULONG *pceltFetched); + + [call_as(Next)] + HRESULT __stdcall RemoteNext( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched )] + IDebugApplicationNode **pprddp, + [out] ULONG *pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(void); + + HRESULT Clone( + [out] IEnumDebugApplicationNodes **pperddp); +}; + +/* IEnumRemoteDebugApplications +Enumerates application objects. Generally used to enumerate the running applications on a machine. Example: the "attach to application" dialog. +*/ +[ + object, + uuid(51973C3b-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IEnumRemoteDebugApplications Interface"), + pointer_default(unique) +] +interface IEnumRemoteDebugApplications : IUnknown { + [local] + HRESULT __stdcall Next( + [in] ULONG celt, + [out] IRemoteDebugApplication **ppda, + [out] ULONG *pceltFetched); + + [call_as(Next)] + HRESULT __stdcall RemoteNext( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched )] + IRemoteDebugApplication **ppda, + [out] ULONG *pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(void); + + HRESULT Clone( + [out] IEnumRemoteDebugApplications **ppessd); +} + +/* IEnumRemoteDebugApplicationThreads +Enumerates thread objects. Generally used to enumerate the running threads in an application. +*/ +[ + object, + uuid(51973C3c-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IEnumRemoteDebugApplicationThreads Interface"), + pointer_default(unique) +] +interface IEnumRemoteDebugApplicationThreads : IUnknown { + [local] + HRESULT __stdcall Next( + [in] ULONG celt, + [out] IRemoteDebugApplicationThread **pprdat, + [out] ULONG *pceltFetched); + + [call_as(Next)] + HRESULT __stdcall RemoteNext( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched )] + IRemoteDebugApplicationThread **ppdat, + [out] ULONG *pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(void); + + HRESULT Clone( + [out] IEnumRemoteDebugApplicationThreads **pperdat); +} + +/* IDebugFormatter +IDebugFormatter allows a language or IDE to customize the conversion +between variants or VARTYPES and strings. This interface is used by the +ITypeInfo->IDebugProperty mapping implementation. +*/ +[ + object, + uuid(51973C05-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IDebugFormatter Interface"), + pointer_default(unique), + local +] +interface IDebugFormatter : IUnknown +{ + HRESULT GetStringForVariant([in] VARIANT *pvar, [in] ULONG nRadix, [out] BSTR *pbstrValue); + HRESULT GetVariantForString([in] LPCOLESTR pwstrValue, [out] VARIANT *pvar); + HRESULT GetStringForVarType([in] VARTYPE vt, [in] TYPEDESC *ptdescArrayType, [out] BSTR *pbstr); +} + +/* ISimpleConnectionPoint + +This interface is the "IDispatchEx" of event interfaces. +It provides a simple way for describing and enumerating the events fired on a particular connection pointan also for hooking up an IDispatch to those events. +This interface will be available as extended info via the IDebugProperty +interface on objects which support events. For simplicity, this interface only +works with dispinterfaces. +*/ +[ + object, + uuid(51973C3e-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("ISimpleConnectionPoint Interface"), + pointer_default(unique), + local +] +interface ISimpleConnectionPoint : IUnknown +{ + // Return the number of events exposed on this interface + HRESULT GetEventCount([out] ULONG *pulCount); + + // Return the DISPID and NAME for "cEvents" events, starting at "iEvent". + // The number of + // - Returns S_OK if all of the requested elements were returned. + // - Returns S_FALSE if the enumeration finished and the + // requested number of elements was not available. + // (Unavailable elements will be returned as DISPID_NULL and a null bstr.) + // - Returns E_INVALIDARG (or other error status) if no elements could be fetched + + HRESULT DescribeEvents( + [in] ULONG iEvent, // starting event index + [in] ULONG cEvents, // number of events to fetch info for + [out, size_is(cEvents), length_is(*pcEventsFetched)] + DISPID *prgid, // DISPIDs of the events + [out, size_is(cEvents), length_is(*pcEventsFetched)] + BSTR *prgbstr, + [out] ULONG *pcEventsFetched + ); // names of the events + + HRESULT Advise([in] IDispatch *pdisp, [out] DWORD* pdwCookie); + HRESULT Unadvise([in] DWORD dwCookie); +}; + +/* IDebugHelper + +IDebugHelper serves as a factory for object browsers and simple connection points. +*/ + +cpp_quote("EXTERN_C const CLSID CLSID_DebugHelper;") + +[ + object, + uuid(51973C3f-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IDebugHelper Interface"), + pointer_default(unique), + local +] +interface IDebugHelper : IUnknown +{ + // Returns a property browser that wraps a VARIANT + HRESULT CreatePropertyBrowser( + [in] VARIANT *pvar, // root variant to browse + [in] LPCOLESTR bstrName, // name to give the root + [in] IDebugApplicationThread *pdat, // thread to request properties on + // (or NULL for no marshalling) + [out] IDebugProperty**ppdob); + + // Returns a property browser that wraps a VARIANT, and allows for custom conversion + // of variants or VARTYPEs to strings + HRESULT CreatePropertyBrowserEx( + [in] VARIANT *pvar, // root variant to browse + [in] LPCOLESTR bstrName, // name to give the root + [in] IDebugApplicationThread *pdat, // thread to request properties on + // (or NULL for no marshalling) + [in] IDebugFormatter*pdf, // provides custom formatting of variants + [out] IDebugProperty**ppdob); + + // Returns an event interface that wraps the given IDispatch (see ISimpleConnectionPoint) + HRESULT CreateSimpleConnectionPoint( + [in] IDispatch *pdisp, + [out] ISimpleConnectionPoint **ppscp); +}; + +/* IEnumDebugExpressionContexts +*/ + +[ + object, + uuid(51973C40-CB0C-11d0-B5C9-00A0244A0E7A), + helpstring("IEnumDebugExpressionContexts Interface"), + pointer_default(unique) +] +interface IEnumDebugExpressionContexts : IUnknown +{ + [local] + HRESULT __stdcall Next( + [in] ULONG celt, + [out] IDebugExpressionContext **ppdec, + [out] ULONG *pceltFetched); + + [call_as(Next)] + HRESULT __stdcall RemoteNext( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched )] + IDebugExpressionContext **pprgdec, + [out] ULONG *pceltFetched); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(void); + + HRESULT Clone( + [out] IEnumDebugExpressionContexts **ppedec); +} + +/* IProvideExpressionContexts +Provides a means for enumerating expression contexts known by a certain component. + Generally implemented by each script engine. Used by the process debug manager to + find all global expression contexts associated with a given thread. +Note: This interface is called from within the thread of interest. It is up to +the implementor to identify the current thread and return an appropriate enumerator. +*/ +[ + object, + uuid(51973C41-CB0C-11d0-B5C9-00A0244A0E7A), + pointer_default(unique) +] +interface IProvideExpressionContexts : IUnknown +{ + // Returns an enumerator of expression contexts. + HRESULT EnumExpressionContexts( + [out] IEnumDebugExpressionContexts **ppedec); +} + + + +[ + uuid(78a51821-51f4-11d0-8f20-00805f2cd064), + version(1.0), + helpstring("ProcessDebugManagerLib 1.0 Type Library") +] +library ProcessDebugManagerLib +{ + importlib("stdole2.tlb"); + + interface IActiveScriptDebug32; + interface IActiveScriptDebug64; + interface IActiveScriptErrorDebug; + interface IActiveScriptSiteDebug32; + interface IActiveScriptSiteDebug64; + interface IActiveScriptSiteDebugEx; + interface IApplicationDebugger; + interface IApplicationDebuggerUI; + interface IDebugApplication32; + interface IDebugApplication64; + interface IDebugApplicationNode; + interface IDebugApplicationNodeEvents; + interface IDebugApplicationThread; + interface IDebugAsyncOperation; + interface IDebugAsyncOperationCallBack; + interface IDebugCodeContext; + interface IDebugCookie; + interface IDebugDocument; + interface IDebugDocumentContext; + interface IDebugDocumentHelper32; + interface IDebugDocumentHelper64; + interface IDebugDocumentHost; + interface IDebugDocumentInfo; + interface IDebugDocumentProvider; + interface IDebugDocumentText; + interface IDebugDocumentTextAuthor; + interface IDebugDocumentTextEvents; + interface IDebugDocumentTextExternalAuthor; + interface IDebugExpression; + interface IDebugExpressionCallBack; + interface IDebugExpressionContext; + interface IDebugFormatter; + interface IDebugHelper; + interface IDebugSessionProvider; + interface IDebugStackFrame; + interface IDebugStackFrameSniffer; + interface IDebugStackFrameSnifferEx32; + interface IDebugStackFrameSnifferEx64; + interface IDebugSyncOperation; + interface IDebugThreadCall32; + interface IDebugThreadCall64; + interface IEnumDebugApplicationNodes; + interface IEnumDebugCodeContexts; + interface IEnumDebugExpressionContexts; + interface IEnumDebugStackFrames; + interface IEnumDebugStackFrames64; + interface IEnumRemoteDebugApplications; + interface IEnumRemoteDebugApplicationThreads; + interface IProcessDebugManager32; + interface IProcessDebugManager64; + interface IProvideExpressionContexts; + interface IMachineDebugManager; + interface IMachineDebugManagerCookie; + interface IMachineDebugManagerEvents; + interface IRemoteDebugApplication; + interface IRemoteDebugApplicationEvents; + interface IRemoteDebugApplicationThread; + interface ISimpleConnectionPoint; + + [ + uuid(78a51822-51f4-11d0-8f20-00805f2cd064), + helpstring("ProcessDebugManager Class") + ] + coclass ProcessDebugManager + { +#ifdef _WIN64 + [default] interface IProcessDebugManager64; +#else + [default] interface IProcessDebugManager32; +#endif + }; + + [ + uuid(0BFCC060-8C1D-11d0-ACCD-00AA0060275C), + helpstring("DebugHelper Class") + ] + coclass DebugHelper + { + [default] interface IDebugHelper; + }; + + + // CDebugDocumentHelper + // + // The CDebugDocumentHelper makes it much easier for an ActiveScripting + // host or scripting engine to implement the IDebugDocument interfaces. + // + // Given the source text and (optionally) script blocks for a host's + // document, CDebugDocumentHelper provides implementations for + // the debug document interfaces, including: + // + // - IDebugDocumentText + // - IDebugDocumentTextAuthor (for authoring) + // - IDebugDocumentContext + // + // This class supports aggregation, so the host may provide a controlling + // unknown to CoCreateInstance for extensibility. + // + // This class fires events on IDebugDocumentTextEvents, so the host + // can monitor all changes to the document via that interface. + cpp_quote("EXTERN_C const CLSID CLSID_CDebugDocumentHelper;") + [ + uuid(83B8BCA6-687C-11D0-A405-00AA0060275C), + helpstring("DebugDocumentHelper Class") + ] + coclass CDebugDocumentHelper + { +#ifdef _WIN64 + [default] interface IDebugDocumentHelper64; +#else + [default] interface IDebugDocumentHelper32; +#endif + interface IDebugDocumentProvider; + interface IDebugDocument; + interface IDebugDocumentText; + interface IDebugDocumentTextAuthor; + interface IConnectionPointContainer; + [default, source] interface IDebugDocumentTextEvents; + }; + + cpp_quote("#ifdef DEBUG") + cpp_quote("#define MachineDebugManger MachineDebugManager_DEBUG") + cpp_quote("#define CLSID_MachineDebugManager CLSID_MachineDebugManager_DEBUG") + cpp_quote("#else") + cpp_quote("#define MachineDebugManger MachineDebugManager_RETAIL") + cpp_quote("#define CLSID_MachineDebugManager CLSID_MachineDebugManager_RETAIL") + cpp_quote("#endif") + [ + uuid(0C0A3666-30C9-11D0-8F20-00805F2CD064), + helpstring("MachineDebugManager Class") + ] + coclass MachineDebugManager_RETAIL + { + [default] interface IMachineDebugManager; + }; + + [ + uuid(49769CEC-3A55-4bb0-B697-88FEDE77E8EA), + helpstring("MachineDebugManager(debug) Class") + ] + coclass MachineDebugManager_DEBUG + { + [default] interface IMachineDebugManager; + }; + + // This class is no longer implemented starting in VS7 + [ + uuid(834128a2-51f4-11d0-8f20-00805f2cd064), + helpstring("DefaultDebugSessionProvider Class") + ] + coclass DefaultDebugSessionProvider + { + [default] interface IDebugSessionProvider; + }; +}; + +cpp_quote("") +cpp_quote("#endif // __ActivDbg_h") +cpp_quote("") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg100.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg100.h new file mode 100644 index 0000000000000000000000000000000000000000..e46925d72fe522903e7bc07ff1679aeb71ef2c75 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg100.h @@ -0,0 +1,2078 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __activdbg100_h__ +#define __activdbg100_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDebugApplicationNode100_FWD_DEFINED__ +#define __IDebugApplicationNode100_FWD_DEFINED__ +typedef interface IDebugApplicationNode100 IDebugApplicationNode100; + +#endif /* __IDebugApplicationNode100_FWD_DEFINED__ */ + + +#ifndef __IWebAppDiagnosticsSetup_FWD_DEFINED__ +#define __IWebAppDiagnosticsSetup_FWD_DEFINED__ +typedef interface IWebAppDiagnosticsSetup IWebAppDiagnosticsSetup; + +#endif /* __IWebAppDiagnosticsSetup_FWD_DEFINED__ */ + + +#ifndef __IRemoteDebugApplication110_FWD_DEFINED__ +#define __IRemoteDebugApplication110_FWD_DEFINED__ +typedef interface IRemoteDebugApplication110 IRemoteDebugApplication110; + +#endif /* __IRemoteDebugApplication110_FWD_DEFINED__ */ + + +#ifndef __IDebugApplication11032_FWD_DEFINED__ +#define __IDebugApplication11032_FWD_DEFINED__ +typedef interface IDebugApplication11032 IDebugApplication11032; + +#endif /* __IDebugApplication11032_FWD_DEFINED__ */ + + +#ifndef __IDebugApplication11064_FWD_DEFINED__ +#define __IDebugApplication11064_FWD_DEFINED__ +typedef interface IDebugApplication11064 IDebugApplication11064; + +#endif /* __IDebugApplication11064_FWD_DEFINED__ */ + + +#ifndef __IWebAppDiagnosticsObjectInitialization_FWD_DEFINED__ +#define __IWebAppDiagnosticsObjectInitialization_FWD_DEFINED__ +typedef interface IWebAppDiagnosticsObjectInitialization IWebAppDiagnosticsObjectInitialization; + +#endif /* __IWebAppDiagnosticsObjectInitialization_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptWinRTErrorDebug_FWD_DEFINED__ +#define __IActiveScriptWinRTErrorDebug_FWD_DEFINED__ +typedef interface IActiveScriptWinRTErrorDebug IActiveScriptWinRTErrorDebug; + +#endif /* __IActiveScriptWinRTErrorDebug_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptErrorDebug110_FWD_DEFINED__ +#define __IActiveScriptErrorDebug110_FWD_DEFINED__ +typedef interface IActiveScriptErrorDebug110 IActiveScriptErrorDebug110; + +#endif /* __IActiveScriptErrorDebug110_FWD_DEFINED__ */ + + +#ifndef __IDebugApplicationThreadEvents110_FWD_DEFINED__ +#define __IDebugApplicationThreadEvents110_FWD_DEFINED__ +typedef interface IDebugApplicationThreadEvents110 IDebugApplicationThreadEvents110; + +#endif /* __IDebugApplicationThreadEvents110_FWD_DEFINED__ */ + + +#ifndef __IDebugApplicationThread11032_FWD_DEFINED__ +#define __IDebugApplicationThread11032_FWD_DEFINED__ +typedef interface IDebugApplicationThread11032 IDebugApplicationThread11032; + +#endif /* __IDebugApplicationThread11032_FWD_DEFINED__ */ + + +#ifndef __IDebugApplicationThread11064_FWD_DEFINED__ +#define __IDebugApplicationThread11064_FWD_DEFINED__ +typedef interface IDebugApplicationThread11064 IDebugApplicationThread11064; + +#endif /* __IDebugApplicationThread11064_FWD_DEFINED__ */ + + +#ifndef __IRemoteDebugCriticalErrorEvent110_FWD_DEFINED__ +#define __IRemoteDebugCriticalErrorEvent110_FWD_DEFINED__ +typedef interface IRemoteDebugCriticalErrorEvent110 IRemoteDebugCriticalErrorEvent110; + +#endif /* __IRemoteDebugCriticalErrorEvent110_FWD_DEFINED__ */ + + +#ifndef __IScriptInvocationContext_FWD_DEFINED__ +#define __IScriptInvocationContext_FWD_DEFINED__ +typedef interface IScriptInvocationContext IScriptInvocationContext; + +#endif /* __IScriptInvocationContext_FWD_DEFINED__ */ + + +#ifndef __IDebugStackFrame110_FWD_DEFINED__ +#define __IDebugStackFrame110_FWD_DEFINED__ +typedef interface IDebugStackFrame110 IDebugStackFrame110; + +#endif /* __IDebugStackFrame110_FWD_DEFINED__ */ + + +#ifndef __IRemoteDebugInfoEvent110_FWD_DEFINED__ +#define __IRemoteDebugInfoEvent110_FWD_DEFINED__ +typedef interface IRemoteDebugInfoEvent110 IRemoteDebugInfoEvent110; + +#endif /* __IRemoteDebugInfoEvent110_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "activdbg.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_activdbg100_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// ActivDbg100.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= +// +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// +// Declarations for ActiveX Scripting authoring/Debugging. +// +#pragma once +typedef +enum tagAPPLICATION_NODE_EVENT_FILTER + { + FILTER_EXCLUDE_NOTHING = 0, + FILTER_EXCLUDE_ANONYMOUS_CODE = 0x1, + FILTER_EXCLUDE_EVAL_CODE = 0x2 + } APPLICATION_NODE_EVENT_FILTER; + +typedef struct tagTEXT_DOCUMENT_ARRAY + { + DWORD dwCount; + /* [size_is] */ IDebugDocumentText **Members; + } TEXT_DOCUMENT_ARRAY; + + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0000_v0_0_s_ifspec; + +#ifndef __IDebugApplicationNode100_INTERFACE_DEFINED__ +#define __IDebugApplicationNode100_INTERFACE_DEFINED__ + +/* interface IDebugApplicationNode100 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplicationNode100; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("90a7734e-841b-4f77-9384-a2891e76e7e2") + IDebugApplicationNode100 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetFilterForEventSink( + /* [in] */ DWORD dwCookie, + /* [in] */ APPLICATION_NODE_EVENT_FILTER filter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExcludedDocuments( + /* [in] */ APPLICATION_NODE_EVENT_FILTER filter, + /* [out] */ __RPC__out TEXT_DOCUMENT_ARRAY *pDocuments) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryIsChildNode( + /* [in] */ __RPC__in_opt IDebugDocument *pSearchKey) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplicationNode100Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugApplicationNode100 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugApplicationNode100 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugApplicationNode100 * This); + + DECLSPEC_XFGVIRT(IDebugApplicationNode100, SetFilterForEventSink) + HRESULT ( STDMETHODCALLTYPE *SetFilterForEventSink )( + __RPC__in IDebugApplicationNode100 * This, + /* [in] */ DWORD dwCookie, + /* [in] */ APPLICATION_NODE_EVENT_FILTER filter); + + DECLSPEC_XFGVIRT(IDebugApplicationNode100, GetExcludedDocuments) + HRESULT ( STDMETHODCALLTYPE *GetExcludedDocuments )( + __RPC__in IDebugApplicationNode100 * This, + /* [in] */ APPLICATION_NODE_EVENT_FILTER filter, + /* [out] */ __RPC__out TEXT_DOCUMENT_ARRAY *pDocuments); + + DECLSPEC_XFGVIRT(IDebugApplicationNode100, QueryIsChildNode) + HRESULT ( STDMETHODCALLTYPE *QueryIsChildNode )( + __RPC__in IDebugApplicationNode100 * This, + /* [in] */ __RPC__in_opt IDebugDocument *pSearchKey); + + END_INTERFACE + } IDebugApplicationNode100Vtbl; + + interface IDebugApplicationNode100 + { + CONST_VTBL struct IDebugApplicationNode100Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplicationNode100_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplicationNode100_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplicationNode100_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplicationNode100_SetFilterForEventSink(This,dwCookie,filter) \ + ( (This)->lpVtbl -> SetFilterForEventSink(This,dwCookie,filter) ) + +#define IDebugApplicationNode100_GetExcludedDocuments(This,filter,pDocuments) \ + ( (This)->lpVtbl -> GetExcludedDocuments(This,filter,pDocuments) ) + +#define IDebugApplicationNode100_QueryIsChildNode(This,pSearchKey) \ + ( (This)->lpVtbl -> QueryIsChildNode(This,pSearchKey) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplicationNode100_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg100_0000_0001 */ +/* [local] */ + + + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0001_v0_0_s_ifspec; + +#ifndef __IWebAppDiagnosticsSetup_INTERFACE_DEFINED__ +#define __IWebAppDiagnosticsSetup_INTERFACE_DEFINED__ + +/* interface IWebAppDiagnosticsSetup */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IWebAppDiagnosticsSetup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("379BFBE1-C6C9-432A-93E1-6D17656C538C") + IWebAppDiagnosticsSetup : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE DiagnosticsSupported( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pRetVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateObjectWithSiteAtWebApp( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ DWORD dwClsContext, + /* [in] */ __RPC__in REFIID riid, + /* [in] */ DWORD_PTR hPassToObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWebAppDiagnosticsSetupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWebAppDiagnosticsSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWebAppDiagnosticsSetup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWebAppDiagnosticsSetup * This); + + DECLSPEC_XFGVIRT(IWebAppDiagnosticsSetup, DiagnosticsSupported) + HRESULT ( STDMETHODCALLTYPE *DiagnosticsSupported )( + __RPC__in IWebAppDiagnosticsSetup * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pRetVal); + + DECLSPEC_XFGVIRT(IWebAppDiagnosticsSetup, CreateObjectWithSiteAtWebApp) + HRESULT ( STDMETHODCALLTYPE *CreateObjectWithSiteAtWebApp )( + __RPC__in IWebAppDiagnosticsSetup * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ DWORD dwClsContext, + /* [in] */ __RPC__in REFIID riid, + /* [in] */ DWORD_PTR hPassToObject); + + END_INTERFACE + } IWebAppDiagnosticsSetupVtbl; + + interface IWebAppDiagnosticsSetup + { + CONST_VTBL struct IWebAppDiagnosticsSetupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWebAppDiagnosticsSetup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWebAppDiagnosticsSetup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWebAppDiagnosticsSetup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWebAppDiagnosticsSetup_DiagnosticsSupported(This,pRetVal) \ + ( (This)->lpVtbl -> DiagnosticsSupported(This,pRetVal) ) + +#define IWebAppDiagnosticsSetup_CreateObjectWithSiteAtWebApp(This,rclsid,dwClsContext,riid,hPassToObject) \ + ( (This)->lpVtbl -> CreateObjectWithSiteAtWebApp(This,rclsid,dwClsContext,riid,hPassToObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWebAppDiagnosticsSetup_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg100_0000_0002 */ +/* [local] */ + + +enum SCRIPT_DEBUGGER_OPTIONS + { + SDO_NONE = 0, + SDO_ENABLE_FIRST_CHANCE_EXCEPTIONS = 0x1, + SDO_ENABLE_WEB_WORKER_SUPPORT = 0x2, + SDO_ENABLE_NONUSER_CODE_SUPPORT = 0x4, + SDO_ENABLE_LIBRARY_STACK_FRAME = 0x8 + } ; +DEFINE_ENUM_FLAG_OPERATORS(SCRIPT_DEBUGGER_OPTIONS) + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0002_v0_0_s_ifspec; + +#ifndef __IRemoteDebugApplication110_INTERFACE_DEFINED__ +#define __IRemoteDebugApplication110_INTERFACE_DEFINED__ + +/* interface IRemoteDebugApplication110 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IRemoteDebugApplication110; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D5FE005B-2836-485e-B1F9-89D91AA24FD4") + IRemoteDebugApplication110 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetDebuggerOptions( + /* [in] */ enum SCRIPT_DEBUGGER_OPTIONS mask, + /* [in] */ enum SCRIPT_DEBUGGER_OPTIONS value) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentDebuggerOptions( + /* [out] */ __RPC__out enum SCRIPT_DEBUGGER_OPTIONS *pCurrentOptions) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMainThread( + /* [out] */ __RPC__deref_out_opt IRemoteDebugApplicationThread **ppThread) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRemoteDebugApplication110Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRemoteDebugApplication110 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRemoteDebugApplication110 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRemoteDebugApplication110 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication110, SetDebuggerOptions) + HRESULT ( STDMETHODCALLTYPE *SetDebuggerOptions )( + __RPC__in IRemoteDebugApplication110 * This, + /* [in] */ enum SCRIPT_DEBUGGER_OPTIONS mask, + /* [in] */ enum SCRIPT_DEBUGGER_OPTIONS value); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication110, GetCurrentDebuggerOptions) + HRESULT ( STDMETHODCALLTYPE *GetCurrentDebuggerOptions )( + __RPC__in IRemoteDebugApplication110 * This, + /* [out] */ __RPC__out enum SCRIPT_DEBUGGER_OPTIONS *pCurrentOptions); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication110, GetMainThread) + HRESULT ( STDMETHODCALLTYPE *GetMainThread )( + __RPC__in IRemoteDebugApplication110 * This, + /* [out] */ __RPC__deref_out_opt IRemoteDebugApplicationThread **ppThread); + + END_INTERFACE + } IRemoteDebugApplication110Vtbl; + + interface IRemoteDebugApplication110 + { + CONST_VTBL struct IRemoteDebugApplication110Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRemoteDebugApplication110_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRemoteDebugApplication110_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRemoteDebugApplication110_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRemoteDebugApplication110_SetDebuggerOptions(This,mask,value) \ + ( (This)->lpVtbl -> SetDebuggerOptions(This,mask,value) ) + +#define IRemoteDebugApplication110_GetCurrentDebuggerOptions(This,pCurrentOptions) \ + ( (This)->lpVtbl -> GetCurrentDebuggerOptions(This,pCurrentOptions) ) + +#define IRemoteDebugApplication110_GetMainThread(This,ppThread) \ + ( (This)->lpVtbl -> GetMainThread(This,ppThread) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRemoteDebugApplication110_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg100_0000_0003 */ +/* [local] */ + +#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS +#ifdef _WIN64 +#define IDebugApplication110 IDebugApplication11064 +#define IID_IDebugApplication110 IID_IDebugApplication11064 +#else +#define IDebugApplication110 IDebugApplication11032 +#define IID_IDebugApplication110 IID_IDebugApplication11032 +#endif +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0003_v0_0_s_ifspec; + +#ifndef __IDebugApplication11032_INTERFACE_DEFINED__ +#define __IDebugApplication11032_INTERFACE_DEFINED__ + +/* interface IDebugApplication11032 */ +/* [unique][local][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplication11032; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BDB3B5DE-89F2-4E11-84A5-97445F941C7D") + IDebugApplication11032 : public IRemoteDebugApplication110 + { + public: + virtual HRESULT STDMETHODCALLTYPE SynchronousCallInMainThread( + /* [in] */ IDebugThreadCall32 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3) = 0; + + virtual HRESULT STDMETHODCALLTYPE AsynchronousCallInMainThread( + /* [in] */ IDebugThreadCall32 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3) = 0; + + virtual HRESULT STDMETHODCALLTYPE CallableWaitForHandles( + /* [in] */ DWORD handleCount, + /* [size_is][in] */ const HANDLE *pHandles, + /* [out] */ DWORD *pIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplication11032Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugApplication11032 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugApplication11032 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugApplication11032 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication110, SetDebuggerOptions) + HRESULT ( STDMETHODCALLTYPE *SetDebuggerOptions )( + IDebugApplication11032 * This, + /* [in] */ enum SCRIPT_DEBUGGER_OPTIONS mask, + /* [in] */ enum SCRIPT_DEBUGGER_OPTIONS value); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication110, GetCurrentDebuggerOptions) + HRESULT ( STDMETHODCALLTYPE *GetCurrentDebuggerOptions )( + IDebugApplication11032 * This, + /* [out] */ enum SCRIPT_DEBUGGER_OPTIONS *pCurrentOptions); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication110, GetMainThread) + HRESULT ( STDMETHODCALLTYPE *GetMainThread )( + IDebugApplication11032 * This, + /* [out] */ IRemoteDebugApplicationThread **ppThread); + + DECLSPEC_XFGVIRT(IDebugApplication11032, SynchronousCallInMainThread) + HRESULT ( STDMETHODCALLTYPE *SynchronousCallInMainThread )( + IDebugApplication11032 * This, + /* [in] */ IDebugThreadCall32 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3); + + DECLSPEC_XFGVIRT(IDebugApplication11032, AsynchronousCallInMainThread) + HRESULT ( STDMETHODCALLTYPE *AsynchronousCallInMainThread )( + IDebugApplication11032 * This, + /* [in] */ IDebugThreadCall32 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3); + + DECLSPEC_XFGVIRT(IDebugApplication11032, CallableWaitForHandles) + HRESULT ( STDMETHODCALLTYPE *CallableWaitForHandles )( + IDebugApplication11032 * This, + /* [in] */ DWORD handleCount, + /* [size_is][in] */ const HANDLE *pHandles, + /* [out] */ DWORD *pIndex); + + END_INTERFACE + } IDebugApplication11032Vtbl; + + interface IDebugApplication11032 + { + CONST_VTBL struct IDebugApplication11032Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplication11032_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplication11032_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplication11032_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplication11032_SetDebuggerOptions(This,mask,value) \ + ( (This)->lpVtbl -> SetDebuggerOptions(This,mask,value) ) + +#define IDebugApplication11032_GetCurrentDebuggerOptions(This,pCurrentOptions) \ + ( (This)->lpVtbl -> GetCurrentDebuggerOptions(This,pCurrentOptions) ) + +#define IDebugApplication11032_GetMainThread(This,ppThread) \ + ( (This)->lpVtbl -> GetMainThread(This,ppThread) ) + + +#define IDebugApplication11032_SynchronousCallInMainThread(This,pptc,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> SynchronousCallInMainThread(This,pptc,dwParam1,dwParam2,dwParam3) ) + +#define IDebugApplication11032_AsynchronousCallInMainThread(This,pptc,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> AsynchronousCallInMainThread(This,pptc,dwParam1,dwParam2,dwParam3) ) + +#define IDebugApplication11032_CallableWaitForHandles(This,handleCount,pHandles,pIndex) \ + ( (This)->lpVtbl -> CallableWaitForHandles(This,handleCount,pHandles,pIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplication11032_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugApplication11064_INTERFACE_DEFINED__ +#define __IDebugApplication11064_INTERFACE_DEFINED__ + +/* interface IDebugApplication11064 */ +/* [unique][local][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplication11064; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2039D958-4EEB-496A-87BB-2E5201EADEEF") + IDebugApplication11064 : public IRemoteDebugApplication110 + { + public: + virtual HRESULT STDMETHODCALLTYPE SynchronousCallInMainThread( + /* [in] */ IDebugThreadCall64 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3) = 0; + + virtual HRESULT STDMETHODCALLTYPE AsynchronousCallInMainThread( + /* [in] */ IDebugThreadCall64 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3) = 0; + + virtual HRESULT STDMETHODCALLTYPE CallableWaitForHandles( + /* [in] */ DWORD handleCount, + /* [size_is][in] */ const HANDLE *pHandles, + /* [out] */ DWORD *pIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplication11064Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugApplication11064 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugApplication11064 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugApplication11064 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication110, SetDebuggerOptions) + HRESULT ( STDMETHODCALLTYPE *SetDebuggerOptions )( + IDebugApplication11064 * This, + /* [in] */ enum SCRIPT_DEBUGGER_OPTIONS mask, + /* [in] */ enum SCRIPT_DEBUGGER_OPTIONS value); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication110, GetCurrentDebuggerOptions) + HRESULT ( STDMETHODCALLTYPE *GetCurrentDebuggerOptions )( + IDebugApplication11064 * This, + /* [out] */ enum SCRIPT_DEBUGGER_OPTIONS *pCurrentOptions); + + DECLSPEC_XFGVIRT(IRemoteDebugApplication110, GetMainThread) + HRESULT ( STDMETHODCALLTYPE *GetMainThread )( + IDebugApplication11064 * This, + /* [out] */ IRemoteDebugApplicationThread **ppThread); + + DECLSPEC_XFGVIRT(IDebugApplication11064, SynchronousCallInMainThread) + HRESULT ( STDMETHODCALLTYPE *SynchronousCallInMainThread )( + IDebugApplication11064 * This, + /* [in] */ IDebugThreadCall64 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3); + + DECLSPEC_XFGVIRT(IDebugApplication11064, AsynchronousCallInMainThread) + HRESULT ( STDMETHODCALLTYPE *AsynchronousCallInMainThread )( + IDebugApplication11064 * This, + /* [in] */ IDebugThreadCall64 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3); + + DECLSPEC_XFGVIRT(IDebugApplication11064, CallableWaitForHandles) + HRESULT ( STDMETHODCALLTYPE *CallableWaitForHandles )( + IDebugApplication11064 * This, + /* [in] */ DWORD handleCount, + /* [size_is][in] */ const HANDLE *pHandles, + /* [out] */ DWORD *pIndex); + + END_INTERFACE + } IDebugApplication11064Vtbl; + + interface IDebugApplication11064 + { + CONST_VTBL struct IDebugApplication11064Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplication11064_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplication11064_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplication11064_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplication11064_SetDebuggerOptions(This,mask,value) \ + ( (This)->lpVtbl -> SetDebuggerOptions(This,mask,value) ) + +#define IDebugApplication11064_GetCurrentDebuggerOptions(This,pCurrentOptions) \ + ( (This)->lpVtbl -> GetCurrentDebuggerOptions(This,pCurrentOptions) ) + +#define IDebugApplication11064_GetMainThread(This,ppThread) \ + ( (This)->lpVtbl -> GetMainThread(This,ppThread) ) + + +#define IDebugApplication11064_SynchronousCallInMainThread(This,pptc,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> SynchronousCallInMainThread(This,pptc,dwParam1,dwParam2,dwParam3) ) + +#define IDebugApplication11064_AsynchronousCallInMainThread(This,pptc,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> AsynchronousCallInMainThread(This,pptc,dwParam1,dwParam2,dwParam3) ) + +#define IDebugApplication11064_CallableWaitForHandles(This,handleCount,pHandles,pIndex) \ + ( (This)->lpVtbl -> CallableWaitForHandles(This,handleCount,pHandles,pIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplication11064_INTERFACE_DEFINED__ */ + + +#ifndef __IWebAppDiagnosticsObjectInitialization_INTERFACE_DEFINED__ +#define __IWebAppDiagnosticsObjectInitialization_INTERFACE_DEFINED__ + +/* interface IWebAppDiagnosticsObjectInitialization */ +/* [unique][local][uuid][object] */ + + +EXTERN_C const IID IID_IWebAppDiagnosticsObjectInitialization; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("16FF3A42-A5F5-432B-B625-8E8E16F57E15") + IWebAppDiagnosticsObjectInitialization : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [annotation][in] */ + _In_ HANDLE_PTR hPassedHandle, + /* [annotation][in] */ + _In_ IUnknown *pDebugApplication) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWebAppDiagnosticsObjectInitializationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IWebAppDiagnosticsObjectInitialization * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IWebAppDiagnosticsObjectInitialization * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IWebAppDiagnosticsObjectInitialization * This); + + DECLSPEC_XFGVIRT(IWebAppDiagnosticsObjectInitialization, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IWebAppDiagnosticsObjectInitialization * This, + /* [annotation][in] */ + _In_ HANDLE_PTR hPassedHandle, + /* [annotation][in] */ + _In_ IUnknown *pDebugApplication); + + END_INTERFACE + } IWebAppDiagnosticsObjectInitializationVtbl; + + interface IWebAppDiagnosticsObjectInitialization + { + CONST_VTBL struct IWebAppDiagnosticsObjectInitializationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWebAppDiagnosticsObjectInitialization_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWebAppDiagnosticsObjectInitialization_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWebAppDiagnosticsObjectInitialization_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWebAppDiagnosticsObjectInitialization_Initialize(This,hPassedHandle,pDebugApplication) \ + ( (This)->lpVtbl -> Initialize(This,hPassedHandle,pDebugApplication) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWebAppDiagnosticsObjectInitialization_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptWinRTErrorDebug_INTERFACE_DEFINED__ +#define __IActiveScriptWinRTErrorDebug_INTERFACE_DEFINED__ + +/* interface IActiveScriptWinRTErrorDebug */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptWinRTErrorDebug; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("73A3F82A-0FE9-4B33-BA3B-FE095F697E0A") + IActiveScriptWinRTErrorDebug : public IActiveScriptError + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRestrictedErrorString( + /* [out] */ __RPC__deref_out_opt BSTR *errorString) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRestrictedErrorReference( + /* [out] */ __RPC__deref_out_opt BSTR *referenceString) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCapabilitySid( + /* [out] */ __RPC__deref_out_opt BSTR *capabilitySid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptWinRTErrorDebugVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptWinRTErrorDebug * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptWinRTErrorDebug * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptWinRTErrorDebug * This); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetExceptionInfo) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *GetExceptionInfo )( + IActiveScriptWinRTErrorDebug * This, + /* [out] */ EXCEPINFO *pexcepinfo); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetSourcePosition) + HRESULT ( STDMETHODCALLTYPE *GetSourcePosition )( + __RPC__in IActiveScriptWinRTErrorDebug * This, + /* [out] */ __RPC__out DWORD *pdwSourceContext, + /* [out] */ __RPC__out ULONG *pulLineNumber, + /* [out] */ __RPC__out LONG *plCharacterPosition); + + DECLSPEC_XFGVIRT(IActiveScriptError, GetSourceLineText) + HRESULT ( STDMETHODCALLTYPE *GetSourceLineText )( + __RPC__in IActiveScriptWinRTErrorDebug * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSourceLine); + + DECLSPEC_XFGVIRT(IActiveScriptWinRTErrorDebug, GetRestrictedErrorString) + HRESULT ( STDMETHODCALLTYPE *GetRestrictedErrorString )( + __RPC__in IActiveScriptWinRTErrorDebug * This, + /* [out] */ __RPC__deref_out_opt BSTR *errorString); + + DECLSPEC_XFGVIRT(IActiveScriptWinRTErrorDebug, GetRestrictedErrorReference) + HRESULT ( STDMETHODCALLTYPE *GetRestrictedErrorReference )( + __RPC__in IActiveScriptWinRTErrorDebug * This, + /* [out] */ __RPC__deref_out_opt BSTR *referenceString); + + DECLSPEC_XFGVIRT(IActiveScriptWinRTErrorDebug, GetCapabilitySid) + HRESULT ( STDMETHODCALLTYPE *GetCapabilitySid )( + __RPC__in IActiveScriptWinRTErrorDebug * This, + /* [out] */ __RPC__deref_out_opt BSTR *capabilitySid); + + END_INTERFACE + } IActiveScriptWinRTErrorDebugVtbl; + + interface IActiveScriptWinRTErrorDebug + { + CONST_VTBL struct IActiveScriptWinRTErrorDebugVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptWinRTErrorDebug_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptWinRTErrorDebug_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptWinRTErrorDebug_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptWinRTErrorDebug_GetExceptionInfo(This,pexcepinfo) \ + ( (This)->lpVtbl -> GetExceptionInfo(This,pexcepinfo) ) + +#define IActiveScriptWinRTErrorDebug_GetSourcePosition(This,pdwSourceContext,pulLineNumber,plCharacterPosition) \ + ( (This)->lpVtbl -> GetSourcePosition(This,pdwSourceContext,pulLineNumber,plCharacterPosition) ) + +#define IActiveScriptWinRTErrorDebug_GetSourceLineText(This,pbstrSourceLine) \ + ( (This)->lpVtbl -> GetSourceLineText(This,pbstrSourceLine) ) + + +#define IActiveScriptWinRTErrorDebug_GetRestrictedErrorString(This,errorString) \ + ( (This)->lpVtbl -> GetRestrictedErrorString(This,errorString) ) + +#define IActiveScriptWinRTErrorDebug_GetRestrictedErrorReference(This,referenceString) \ + ( (This)->lpVtbl -> GetRestrictedErrorReference(This,referenceString) ) + +#define IActiveScriptWinRTErrorDebug_GetCapabilitySid(This,capabilitySid) \ + ( (This)->lpVtbl -> GetCapabilitySid(This,capabilitySid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptWinRTErrorDebug_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg100_0000_0007 */ +/* [local] */ + +typedef +enum tagSCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND + { + ETK_FIRST_CHANCE = 0, + ETK_USER_UNHANDLED = 0x1, + ETK_UNHANDLED = 0x2 + } SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND; + + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0007_v0_0_s_ifspec; + +#ifndef __IActiveScriptErrorDebug110_INTERFACE_DEFINED__ +#define __IActiveScriptErrorDebug110_INTERFACE_DEFINED__ + +/* interface IActiveScriptErrorDebug110 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptErrorDebug110; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("516E42B6-89A8-4530-937B-5F0708431442") + IActiveScriptErrorDebug110 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetExceptionThrownKind( + /* [out] */ __RPC__out SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND *pExceptionKind) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptErrorDebug110Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptErrorDebug110 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptErrorDebug110 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptErrorDebug110 * This); + + DECLSPEC_XFGVIRT(IActiveScriptErrorDebug110, GetExceptionThrownKind) + HRESULT ( STDMETHODCALLTYPE *GetExceptionThrownKind )( + __RPC__in IActiveScriptErrorDebug110 * This, + /* [out] */ __RPC__out SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND *pExceptionKind); + + END_INTERFACE + } IActiveScriptErrorDebug110Vtbl; + + interface IActiveScriptErrorDebug110 + { + CONST_VTBL struct IActiveScriptErrorDebug110Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptErrorDebug110_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptErrorDebug110_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptErrorDebug110_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptErrorDebug110_GetExceptionThrownKind(This,pExceptionKind) \ + ( (This)->lpVtbl -> GetExceptionThrownKind(This,pExceptionKind) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptErrorDebug110_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugApplicationThreadEvents110_INTERFACE_DEFINED__ +#define __IDebugApplicationThreadEvents110_INTERFACE_DEFINED__ + +/* interface IDebugApplicationThreadEvents110 */ +/* [unique][local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplicationThreadEvents110; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("84E5E468-D5DA-48A8-83F4-40366429007B") + IDebugApplicationThreadEvents110 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnSuspendForBreakPoint( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnResumeFromBreakPoint( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadRequestComplete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnBeginThreadRequest( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplicationThreadEvents110Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugApplicationThreadEvents110 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugApplicationThreadEvents110 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugApplicationThreadEvents110 * This); + + DECLSPEC_XFGVIRT(IDebugApplicationThreadEvents110, OnSuspendForBreakPoint) + HRESULT ( STDMETHODCALLTYPE *OnSuspendForBreakPoint )( + IDebugApplicationThreadEvents110 * This); + + DECLSPEC_XFGVIRT(IDebugApplicationThreadEvents110, OnResumeFromBreakPoint) + HRESULT ( STDMETHODCALLTYPE *OnResumeFromBreakPoint )( + IDebugApplicationThreadEvents110 * This); + + DECLSPEC_XFGVIRT(IDebugApplicationThreadEvents110, OnThreadRequestComplete) + HRESULT ( STDMETHODCALLTYPE *OnThreadRequestComplete )( + IDebugApplicationThreadEvents110 * This); + + DECLSPEC_XFGVIRT(IDebugApplicationThreadEvents110, OnBeginThreadRequest) + HRESULT ( STDMETHODCALLTYPE *OnBeginThreadRequest )( + IDebugApplicationThreadEvents110 * This); + + END_INTERFACE + } IDebugApplicationThreadEvents110Vtbl; + + interface IDebugApplicationThreadEvents110 + { + CONST_VTBL struct IDebugApplicationThreadEvents110Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplicationThreadEvents110_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplicationThreadEvents110_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplicationThreadEvents110_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplicationThreadEvents110_OnSuspendForBreakPoint(This) \ + ( (This)->lpVtbl -> OnSuspendForBreakPoint(This) ) + +#define IDebugApplicationThreadEvents110_OnResumeFromBreakPoint(This) \ + ( (This)->lpVtbl -> OnResumeFromBreakPoint(This) ) + +#define IDebugApplicationThreadEvents110_OnThreadRequestComplete(This) \ + ( (This)->lpVtbl -> OnThreadRequestComplete(This) ) + +#define IDebugApplicationThreadEvents110_OnBeginThreadRequest(This) \ + ( (This)->lpVtbl -> OnBeginThreadRequest(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplicationThreadEvents110_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg100_0000_0009 */ +/* [local] */ + +#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS +#ifdef _WIN64 +#define IDebugApplicationThread110 IDebugApplicationThread11064 +#define IID_IDebugApplicationThread110 IID_IDebugApplicationThread11064 +#else +#define IDebugApplicationThread110 IDebugApplicationThread11032 +#define IID_IDebugApplicationThread110 IID_IDebugApplicationThread11032 +#endif +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0009_v0_0_s_ifspec; + +#ifndef __IDebugApplicationThread11032_INTERFACE_DEFINED__ +#define __IDebugApplicationThread11032_INTERFACE_DEFINED__ + +/* interface IDebugApplicationThread11032 */ +/* [unique][local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplicationThread11032; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2194AC5C-6561-404A-A2E9-F57D72DE3702") + IDebugApplicationThread11032 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetActiveThreadRequestCount( + /* [annotation][out] */ + _Out_ UINT *puiThreadRequests) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsSuspendedForBreakPoint( + /* [annotation][out] */ + _Out_ BOOL *pfIsSuspended) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsThreadCallable( + /* [annotation][out] */ + _Out_ BOOL *pfIsCallable) = 0; + + virtual HRESULT STDMETHODCALLTYPE AsynchronousCallIntoThread( + /* [in] */ IDebugThreadCall32 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplicationThread11032Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugApplicationThread11032 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugApplicationThread11032 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugApplicationThread11032 * This); + + DECLSPEC_XFGVIRT(IDebugApplicationThread11032, GetActiveThreadRequestCount) + HRESULT ( STDMETHODCALLTYPE *GetActiveThreadRequestCount )( + IDebugApplicationThread11032 * This, + /* [annotation][out] */ + _Out_ UINT *puiThreadRequests); + + DECLSPEC_XFGVIRT(IDebugApplicationThread11032, IsSuspendedForBreakPoint) + HRESULT ( STDMETHODCALLTYPE *IsSuspendedForBreakPoint )( + IDebugApplicationThread11032 * This, + /* [annotation][out] */ + _Out_ BOOL *pfIsSuspended); + + DECLSPEC_XFGVIRT(IDebugApplicationThread11032, IsThreadCallable) + HRESULT ( STDMETHODCALLTYPE *IsThreadCallable )( + IDebugApplicationThread11032 * This, + /* [annotation][out] */ + _Out_ BOOL *pfIsCallable); + + DECLSPEC_XFGVIRT(IDebugApplicationThread11032, AsynchronousCallIntoThread) + HRESULT ( STDMETHODCALLTYPE *AsynchronousCallIntoThread )( + IDebugApplicationThread11032 * This, + /* [in] */ IDebugThreadCall32 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3); + + END_INTERFACE + } IDebugApplicationThread11032Vtbl; + + interface IDebugApplicationThread11032 + { + CONST_VTBL struct IDebugApplicationThread11032Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplicationThread11032_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplicationThread11032_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplicationThread11032_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplicationThread11032_GetActiveThreadRequestCount(This,puiThreadRequests) \ + ( (This)->lpVtbl -> GetActiveThreadRequestCount(This,puiThreadRequests) ) + +#define IDebugApplicationThread11032_IsSuspendedForBreakPoint(This,pfIsSuspended) \ + ( (This)->lpVtbl -> IsSuspendedForBreakPoint(This,pfIsSuspended) ) + +#define IDebugApplicationThread11032_IsThreadCallable(This,pfIsCallable) \ + ( (This)->lpVtbl -> IsThreadCallable(This,pfIsCallable) ) + +#define IDebugApplicationThread11032_AsynchronousCallIntoThread(This,pptc,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> AsynchronousCallIntoThread(This,pptc,dwParam1,dwParam2,dwParam3) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplicationThread11032_INTERFACE_DEFINED__ */ + + +#ifndef __IDebugApplicationThread11064_INTERFACE_DEFINED__ +#define __IDebugApplicationThread11064_INTERFACE_DEFINED__ + +/* interface IDebugApplicationThread11064 */ +/* [unique][local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugApplicationThread11064; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("420AA4CC-EFD8-4DAC-983B-47127826917D") + IDebugApplicationThread11064 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetActiveThreadRequestCount( + /* [annotation][out] */ + _Out_ UINT *puiThreadRequests) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsSuspendedForBreakPoint( + /* [annotation][out] */ + _Out_ BOOL *pfIsSuspended) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsThreadCallable( + /* [annotation][out] */ + _Out_ BOOL *pfIsCallable) = 0; + + virtual HRESULT STDMETHODCALLTYPE AsynchronousCallIntoThread( + /* [in] */ IDebugThreadCall64 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugApplicationThread11064Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDebugApplicationThread11064 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDebugApplicationThread11064 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDebugApplicationThread11064 * This); + + DECLSPEC_XFGVIRT(IDebugApplicationThread11064, GetActiveThreadRequestCount) + HRESULT ( STDMETHODCALLTYPE *GetActiveThreadRequestCount )( + IDebugApplicationThread11064 * This, + /* [annotation][out] */ + _Out_ UINT *puiThreadRequests); + + DECLSPEC_XFGVIRT(IDebugApplicationThread11064, IsSuspendedForBreakPoint) + HRESULT ( STDMETHODCALLTYPE *IsSuspendedForBreakPoint )( + IDebugApplicationThread11064 * This, + /* [annotation][out] */ + _Out_ BOOL *pfIsSuspended); + + DECLSPEC_XFGVIRT(IDebugApplicationThread11064, IsThreadCallable) + HRESULT ( STDMETHODCALLTYPE *IsThreadCallable )( + IDebugApplicationThread11064 * This, + /* [annotation][out] */ + _Out_ BOOL *pfIsCallable); + + DECLSPEC_XFGVIRT(IDebugApplicationThread11064, AsynchronousCallIntoThread) + HRESULT ( STDMETHODCALLTYPE *AsynchronousCallIntoThread )( + IDebugApplicationThread11064 * This, + /* [in] */ IDebugThreadCall64 *pptc, + /* [in] */ DWORD_PTR dwParam1, + /* [in] */ DWORD_PTR dwParam2, + /* [in] */ DWORD_PTR dwParam3); + + END_INTERFACE + } IDebugApplicationThread11064Vtbl; + + interface IDebugApplicationThread11064 + { + CONST_VTBL struct IDebugApplicationThread11064Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugApplicationThread11064_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugApplicationThread11064_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugApplicationThread11064_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugApplicationThread11064_GetActiveThreadRequestCount(This,puiThreadRequests) \ + ( (This)->lpVtbl -> GetActiveThreadRequestCount(This,puiThreadRequests) ) + +#define IDebugApplicationThread11064_IsSuspendedForBreakPoint(This,pfIsSuspended) \ + ( (This)->lpVtbl -> IsSuspendedForBreakPoint(This,pfIsSuspended) ) + +#define IDebugApplicationThread11064_IsThreadCallable(This,pfIsCallable) \ + ( (This)->lpVtbl -> IsThreadCallable(This,pfIsCallable) ) + +#define IDebugApplicationThread11064_AsynchronousCallIntoThread(This,pptc,dwParam1,dwParam2,dwParam3) \ + ( (This)->lpVtbl -> AsynchronousCallIntoThread(This,pptc,dwParam1,dwParam2,dwParam3) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugApplicationThread11064_INTERFACE_DEFINED__ */ + + +#ifndef __IRemoteDebugCriticalErrorEvent110_INTERFACE_DEFINED__ +#define __IRemoteDebugCriticalErrorEvent110_INTERFACE_DEFINED__ + +/* interface IRemoteDebugCriticalErrorEvent110 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IRemoteDebugCriticalErrorEvent110; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2f69c611-6b14-47e8-9260-4bb7c52f504b") + IRemoteDebugCriticalErrorEvent110 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetErrorInfo( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSource, + /* [out] */ __RPC__out int *pMessageId, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrMessage, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppLocation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRemoteDebugCriticalErrorEvent110Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRemoteDebugCriticalErrorEvent110 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRemoteDebugCriticalErrorEvent110 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRemoteDebugCriticalErrorEvent110 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugCriticalErrorEvent110, GetErrorInfo) + HRESULT ( STDMETHODCALLTYPE *GetErrorInfo )( + __RPC__in IRemoteDebugCriticalErrorEvent110 * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrSource, + /* [out] */ __RPC__out int *pMessageId, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrMessage, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppLocation); + + END_INTERFACE + } IRemoteDebugCriticalErrorEvent110Vtbl; + + interface IRemoteDebugCriticalErrorEvent110 + { + CONST_VTBL struct IRemoteDebugCriticalErrorEvent110Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRemoteDebugCriticalErrorEvent110_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRemoteDebugCriticalErrorEvent110_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRemoteDebugCriticalErrorEvent110_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRemoteDebugCriticalErrorEvent110_GetErrorInfo(This,pbstrSource,pMessageId,pbstrMessage,ppLocation) \ + ( (This)->lpVtbl -> GetErrorInfo(This,pbstrSource,pMessageId,pbstrMessage,ppLocation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRemoteDebugCriticalErrorEvent110_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg100_0000_0012 */ +/* [local] */ + +typedef +enum tagSCRIPT_INVOCATION_CONTEXT_TYPE + { + SICT_Event = 0, + SICT_SetTimeout = ( SICT_Event + 1 ) , + SICT_SetInterval = ( SICT_SetTimeout + 1 ) , + SICT_SetImmediate = ( SICT_SetInterval + 1 ) , + SICT_RequestAnimationFrame = ( SICT_SetImmediate + 1 ) , + SICT_ToString = ( SICT_RequestAnimationFrame + 1 ) , + SICT_MutationObserverCheckpoint = ( SICT_ToString + 1 ) , + SICT_WWAExecUnsafeLocalFunction = ( SICT_MutationObserverCheckpoint + 1 ) , + SICT_WWAExecAtPriority = ( SICT_WWAExecUnsafeLocalFunction + 1 ) + } SCRIPT_INVOCATION_CONTEXT_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0012_v0_0_s_ifspec; + +#ifndef __IScriptInvocationContext_INTERFACE_DEFINED__ +#define __IScriptInvocationContext_INTERFACE_DEFINED__ + +/* interface IScriptInvocationContext */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IScriptInvocationContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5D7741B7-AF7E-4A2A-85E5-C77F4D0659FB") + IScriptInvocationContext : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetContextType( + /* [out] */ __RPC__out SCRIPT_INVOCATION_CONTEXT_TYPE *pInvocationContextType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContextDescription( + /* [out] */ __RPC__deref_out_opt BSTR *pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContextObject( + /* [out] */ __RPC__deref_out_opt IUnknown **ppContextObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IScriptInvocationContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IScriptInvocationContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IScriptInvocationContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IScriptInvocationContext * This); + + DECLSPEC_XFGVIRT(IScriptInvocationContext, GetContextType) + HRESULT ( STDMETHODCALLTYPE *GetContextType )( + __RPC__in IScriptInvocationContext * This, + /* [out] */ __RPC__out SCRIPT_INVOCATION_CONTEXT_TYPE *pInvocationContextType); + + DECLSPEC_XFGVIRT(IScriptInvocationContext, GetContextDescription) + HRESULT ( STDMETHODCALLTYPE *GetContextDescription )( + __RPC__in IScriptInvocationContext * This, + /* [out] */ __RPC__deref_out_opt BSTR *pDescription); + + DECLSPEC_XFGVIRT(IScriptInvocationContext, GetContextObject) + HRESULT ( STDMETHODCALLTYPE *GetContextObject )( + __RPC__in IScriptInvocationContext * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppContextObject); + + END_INTERFACE + } IScriptInvocationContextVtbl; + + interface IScriptInvocationContext + { + CONST_VTBL struct IScriptInvocationContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IScriptInvocationContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IScriptInvocationContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IScriptInvocationContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IScriptInvocationContext_GetContextType(This,pInvocationContextType) \ + ( (This)->lpVtbl -> GetContextType(This,pInvocationContextType) ) + +#define IScriptInvocationContext_GetContextDescription(This,pDescription) \ + ( (This)->lpVtbl -> GetContextDescription(This,pDescription) ) + +#define IScriptInvocationContext_GetContextObject(This,ppContextObject) \ + ( (This)->lpVtbl -> GetContextObject(This,ppContextObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IScriptInvocationContext_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg100_0000_0013 */ +/* [local] */ + +typedef +enum tagDEBUG_STACKFRAME_TYPE + { + DST_SCRIPT_FRAME = 0, + DST_INTERNAL_FRAME = ( DST_SCRIPT_FRAME + 1 ) , + DST_INVOCATION_FRAME = ( DST_INTERNAL_FRAME + 1 ) + } DEBUG_STACKFRAME_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0013_v0_0_s_ifspec; + +#ifndef __IDebugStackFrame110_INTERFACE_DEFINED__ +#define __IDebugStackFrame110_INTERFACE_DEFINED__ + +/* interface IDebugStackFrame110 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDebugStackFrame110; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4B509611-B6EA-4B24-ADCB-D0CCFD1A7E33") + IDebugStackFrame110 : public IDebugStackFrame + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStackFrameType( + /* [out] */ __RPC__out DEBUG_STACKFRAME_TYPE *pStackFrameKind) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetScriptInvocationContext( + /* [out] */ __RPC__deref_out_opt IScriptInvocationContext **ppInvocationContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDebugStackFrame110Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDebugStackFrame110 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDebugStackFrame110 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDebugStackFrame110 * This); + + DECLSPEC_XFGVIRT(IDebugStackFrame, GetCodeContext) + HRESULT ( STDMETHODCALLTYPE *GetCodeContext )( + __RPC__in IDebugStackFrame110 * This, + /* [out] */ __RPC__deref_out_opt IDebugCodeContext **ppcc); + + DECLSPEC_XFGVIRT(IDebugStackFrame, GetDescriptionString) + HRESULT ( STDMETHODCALLTYPE *GetDescriptionString )( + __RPC__in IDebugStackFrame110 * This, + /* [in] */ BOOL fLong, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IDebugStackFrame, GetLanguageString) + HRESULT ( STDMETHODCALLTYPE *GetLanguageString )( + __RPC__in IDebugStackFrame110 * This, + /* [in] */ BOOL fLong, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLanguage); + + DECLSPEC_XFGVIRT(IDebugStackFrame, GetThread) + HRESULT ( STDMETHODCALLTYPE *GetThread )( + __RPC__in IDebugStackFrame110 * This, + /* [out] */ __RPC__deref_out_opt IDebugApplicationThread **ppat); + + DECLSPEC_XFGVIRT(IDebugStackFrame, GetDebugProperty) + HRESULT ( STDMETHODCALLTYPE *GetDebugProperty )( + __RPC__in IDebugStackFrame110 * This, + /* [out] */ __RPC__deref_out_opt IDebugProperty **ppDebugProp); + + DECLSPEC_XFGVIRT(IDebugStackFrame110, GetStackFrameType) + HRESULT ( STDMETHODCALLTYPE *GetStackFrameType )( + __RPC__in IDebugStackFrame110 * This, + /* [out] */ __RPC__out DEBUG_STACKFRAME_TYPE *pStackFrameKind); + + DECLSPEC_XFGVIRT(IDebugStackFrame110, GetScriptInvocationContext) + HRESULT ( STDMETHODCALLTYPE *GetScriptInvocationContext )( + __RPC__in IDebugStackFrame110 * This, + /* [out] */ __RPC__deref_out_opt IScriptInvocationContext **ppInvocationContext); + + END_INTERFACE + } IDebugStackFrame110Vtbl; + + interface IDebugStackFrame110 + { + CONST_VTBL struct IDebugStackFrame110Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDebugStackFrame110_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDebugStackFrame110_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDebugStackFrame110_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDebugStackFrame110_GetCodeContext(This,ppcc) \ + ( (This)->lpVtbl -> GetCodeContext(This,ppcc) ) + +#define IDebugStackFrame110_GetDescriptionString(This,fLong,pbstrDescription) \ + ( (This)->lpVtbl -> GetDescriptionString(This,fLong,pbstrDescription) ) + +#define IDebugStackFrame110_GetLanguageString(This,fLong,pbstrLanguage) \ + ( (This)->lpVtbl -> GetLanguageString(This,fLong,pbstrLanguage) ) + +#define IDebugStackFrame110_GetThread(This,ppat) \ + ( (This)->lpVtbl -> GetThread(This,ppat) ) + +#define IDebugStackFrame110_GetDebugProperty(This,ppDebugProp) \ + ( (This)->lpVtbl -> GetDebugProperty(This,ppDebugProp) ) + + +#define IDebugStackFrame110_GetStackFrameType(This,pStackFrameKind) \ + ( (This)->lpVtbl -> GetStackFrameType(This,pStackFrameKind) ) + +#define IDebugStackFrame110_GetScriptInvocationContext(This,ppInvocationContext) \ + ( (This)->lpVtbl -> GetScriptInvocationContext(This,ppInvocationContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDebugStackFrame110_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg100_0000_0014 */ +/* [local] */ + +typedef +enum tagDEBUG_EVENT_INFO_TYPE + { + DEIT_GENERAL = 0, + DEIT_ASMJS_IN_DEBUGGING = ( DEIT_GENERAL + 1 ) , + DEIT_ASMJS_SUCCEEDED = ( DEIT_ASMJS_IN_DEBUGGING + 1 ) , + DEIT_ASMJS_FAILED = ( DEIT_ASMJS_SUCCEEDED + 1 ) + } DEBUG_EVENT_INFO_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0014_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0014_v0_0_s_ifspec; + +#ifndef __IRemoteDebugInfoEvent110_INTERFACE_DEFINED__ +#define __IRemoteDebugInfoEvent110_INTERFACE_DEFINED__ + +/* interface IRemoteDebugInfoEvent110 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IRemoteDebugInfoEvent110; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9FF56BB6-EB89-4C0F-8823-CC2A4C0B7F26") + IRemoteDebugInfoEvent110 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetEventInfo( + /* [out] */ __RPC__out DEBUG_EVENT_INFO_TYPE *pMessageType, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrMessage, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrUrl, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppLocation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRemoteDebugInfoEvent110Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRemoteDebugInfoEvent110 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRemoteDebugInfoEvent110 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRemoteDebugInfoEvent110 * This); + + DECLSPEC_XFGVIRT(IRemoteDebugInfoEvent110, GetEventInfo) + HRESULT ( STDMETHODCALLTYPE *GetEventInfo )( + __RPC__in IRemoteDebugInfoEvent110 * This, + /* [out] */ __RPC__out DEBUG_EVENT_INFO_TYPE *pMessageType, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrMessage, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrUrl, + /* [out] */ __RPC__deref_out_opt IDebugDocumentContext **ppLocation); + + END_INTERFACE + } IRemoteDebugInfoEvent110Vtbl; + + interface IRemoteDebugInfoEvent110 + { + CONST_VTBL struct IRemoteDebugInfoEvent110Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRemoteDebugInfoEvent110_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRemoteDebugInfoEvent110_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRemoteDebugInfoEvent110_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRemoteDebugInfoEvent110_GetEventInfo(This,pMessageType,pbstrMessage,pbstrUrl,ppLocation) \ + ( (This)->lpVtbl -> GetEventInfo(This,pMessageType,pbstrMessage,pbstrUrl,ppLocation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRemoteDebugInfoEvent110_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activdbg100_0000_0015 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0015_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activdbg100_0000_0015_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg100.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg100.idl new file mode 100644 index 0000000000000000000000000000000000000000..4fc2cfdd6ee4454f9f2a9e29cf0c2d75791654a5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activdbg100.idl @@ -0,0 +1,489 @@ +// ActivDbg100.idl : ActiveX Debugging Interfaces for PDM v10.0 +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// ActivDbg100.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("//") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("//") +cpp_quote("// Declarations for ActiveX Scripting authoring/Debugging.") +cpp_quote("//") + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +import "activdbg.idl"; + +// Flag enumerator of the types of nodes to exclude +typedef enum tagAPPLICATION_NODE_EVENT_FILTER { + // send all events + FILTER_EXCLUDE_NOTHING = 0, + // Exclude 'anonymous code' nodes. 'annonymous code' nodes are used by the jscript + // runtime for 'new Function([args,] )' + FILTER_EXCLUDE_ANONYMOUS_CODE = 0x1, + // Exclude 'eval code' nodes. 'eval code' nodes are used by the jscript runtime for + // 'eval' support. + FILTER_EXCLUDE_EVAL_CODE = 0x2 +} APPLICATION_NODE_EVENT_FILTER; + +// Array of IDebugDocumentText, Members allocated with CoTaskMemAlloc +typedef struct tagTEXT_DOCUMENT_ARRAY +{ + DWORD dwCount; + [size_is(dwCount)] IDebugDocumentText **Members; +} TEXT_DOCUMENT_ARRAY; + +// Interface implemented by PDM v10.0 and better. This can be QI'ed from the implementation +// of IDebugApplicationNode +[ + object, + uuid(90a7734e-841b-4f77-9384-a2891e76e7e2), + pointer_default(unique) +] +interface IDebugApplicationNode100: IUnknown +{ + // Sets the filter on a particular IDebugApplicationNodeEvents implementation. It + // allows script debuggers to filter out complier-generated child application nodes + // so that the PDM will no longer send events when these are created/removed. By + // default, all nodes will be sent. + HRESULT SetFilterForEventSink( + [in] DWORD dwCookie, + [in] APPLICATION_NODE_EVENT_FILTER filter + ); + + // Obtains the text documents which are hidden by the specified filter + HRESULT GetExcludedDocuments( + [in] APPLICATION_NODE_EVENT_FILTER filter, + [out] TEXT_DOCUMENT_ARRAY* pDocuments + ); + + // Determines if the specified document is the document of one of the child + // nodes of this node. + HRESULT QueryIsChildNode( + [in] IDebugDocument* pSearchKey + ); +}; + +interface IWebAppDiagnosticsSetupEvent; +// ------------------------------------------------------------- +// IWebAppDiagnosticsSetup - interface exposed by PDM application +// objects to create COM objects in the debugee process and pass +// off IWebBrowser2 to enable web diagnostics +// +[ + object, + uuid(379BFBE1-C6C9-432A-93E1-6D17656C538C), + pointer_default(unique) +] +interface IWebAppDiagnosticsSetup : IUnknown +{ + HRESULT DiagnosticsSupported( + [out, retval] VARIANT_BOOL* pRetVal + ); + // See: http://blogs.msdn.com/b/larryosterman/archive/2005/01/31/363881.aspx + // for why pipeHandle is a DWORD_PTR and not a HANDLE_PTR + HRESULT CreateObjectWithSiteAtWebApp( + [in] REFCLSID rclsid, + [in] DWORD dwClsContext, + [in] REFIID riid, + [in] DWORD_PTR hPassToObject + ); +}; + +// Flags enum indicating a set of options and/or capabilities that apply to the attached debugger +enum SCRIPT_DEBUGGER_OPTIONS +{ + // no options are set + SDO_NONE = 0x00000000, + + // Indicates if the script runtime should raise BREAKREASON_ERROR events when an exception + // is thrown. This option may be set by the debugger, or set by user-code via + // 'Debug.enableFirstChanceExceptions()'. + SDO_ENABLE_FIRST_CHANCE_EXCEPTIONS = 0x00000001, + + // Indicates if the attached debugger supports web workers. + SDO_ENABLE_WEB_WORKER_SUPPORT = 0x00000002, + + // Indicates if the attached debugger enables the script runtime to participate in + // identifying exception in non-user code. + SDO_ENABLE_NONUSER_CODE_SUPPORT = 0x00000004, + + // Indicates if the debugger supports handling library stack frame (provided for purpose of + // display only, no associated code/document context) + SDO_ENABLE_LIBRARY_STACK_FRAME = 0x00000008 +}; + +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SCRIPT_DEBUGGER_OPTIONS)") + +// Interface implemented by the IDebugApplication object in pdm.dll to provide new capabilities +// which are intended to be callable by script debuggers in addition to in proc callers. +[ + object, + uuid(D5FE005B-2836-485e-B1F9-89D91AA24FD4), + pointer_default(unique), +] +interface IRemoteDebugApplication110: IUnknown +{ + // Called to update debugger options. This method should be called after ConnectDebugger. + // DisconnectDebugger automatically resets to the default options. + // The options default to 0 (SDO_NONE). + HRESULT SetDebuggerOptions( + [in] enum SCRIPT_DEBUGGER_OPTIONS mask, + [in] enum SCRIPT_DEBUGGER_OPTIONS value + ); + + // Returns the current set of options which are enabled + HRESULT GetCurrentDebuggerOptions([out] enum SCRIPT_DEBUGGER_OPTIONS* pCurrentOptions); + // Returns the Main thread for hosts that call SetSite (IE) otherwise returns E_FAIL + HRESULT GetMainThread([out] IRemoteDebugApplicationThread **ppThread); +} + +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IDebugApplication110 IDebugApplication11064") +cpp_quote("#define IID_IDebugApplication110 IID_IDebugApplication11064") +cpp_quote("#else") +cpp_quote("#define IDebugApplication110 IDebugApplication11032") +cpp_quote("#define IID_IDebugApplication110 IID_IDebugApplication11032") +cpp_quote("#endif") +cpp_quote("#endif") + + +// Interface implemented by the IDebugApplication object in pdm.dll to provide new capabilities +// which are intended to be callable from inside the script target process (local). + +[ + object, + uuid(BDB3B5DE-89F2-4E11-84A5-97445F941C7D), + local, + pointer_default(unique) +] +interface IDebugApplication11032 : IRemoteDebugApplication110 +{ + HRESULT SynchronousCallInMainThread([in] IDebugThreadCall32* pptc, [in] DWORD_PTR dwParam1, [in] DWORD_PTR dwParam2, [in] DWORD_PTR dwParam3); + HRESULT AsynchronousCallInMainThread([in] IDebugThreadCall32* pptc, [in] DWORD_PTR dwParam1, [in] DWORD_PTR dwParam2, [in] DWORD_PTR dwParam3); + + // Waits for any of the specified handles to be signalled while allowing cross-thread calls to be posted to this thread. API must + // be called from the debugger thread. + HRESULT CallableWaitForHandles([in] DWORD handleCount, [in, size_is(handleCount)] const HANDLE* pHandles, [out] DWORD* pIndex); +} + +[ + object, + uuid(2039D958-4EEB-496A-87BB-2E5201EADEEF), + local, + pointer_default(unique) +] +interface IDebugApplication11064 : IRemoteDebugApplication110 +{ + HRESULT SynchronousCallInMainThread([in] IDebugThreadCall64* pptc, [in] DWORD_PTR dwParam1, [in] DWORD_PTR dwParam2, [in] DWORD_PTR dwParam3); + HRESULT AsynchronousCallInMainThread([in] IDebugThreadCall64* pptc, [in] DWORD_PTR dwParam1, [in] DWORD_PTR dwParam2, [in] DWORD_PTR dwParam3); + + // Waits for any of the specified handles to be signalled while allowing cross-thread calls to be posted to this thread. API must + // be called from the debugger thread. + HRESULT CallableWaitForHandles([in] DWORD handleCount, [in, size_is(handleCount)] const HANDLE* pHandles, [out] DWORD* pIndex); +} + +[ + object, + uuid(16FF3A42-A5F5-432B-B625-8E8E16F57E15), + local, + pointer_default(unique) +] +interface IWebAppDiagnosticsObjectInitialization : IUnknown +{ + // because this is a local interface, HANDLE_PTR is used + HRESULT Initialize( + [in, annotation("_In_")] HANDLE_PTR hPassedHandle, + [in, annotation("_In_")] IUnknown* pDebugApplication + ); +} + + +// Implemented by the javascript engine to provide extended WinRT error info +// from a BREAKREASON_ERROR event. QI-able from IActiveScriptError. +[ + object, + uuid(73A3F82A-0FE9-4B33-BA3B-FE095F697E0A), + pointer_default(unique) +] +interface IActiveScriptWinRTErrorDebug : IActiveScriptError +{ + /// Return WinRT Restricted Error string, if available + HRESULT GetRestrictedErrorString([out] BSTR * errorString); + /// Return WinRT Restricted Error reference string, if available + HRESULT GetRestrictedErrorReference([out] BSTR * referenceString); + /// Return Capability SID for the WinRT error, if available + HRESULT GetCapabilitySid([out] BSTR * capabilitySid); +} + +// Indicates the kind of exception thrown +typedef enum tagSCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND +{ + // Indicates if the current exception is a first chance exception. + ETK_FIRST_CHANCE = 0x00000000, + + // Indicates if the current exception is not handled in the user code. + ETK_USER_UNHANDLED = 0x00000001, + + // Indicates if the current exception is not handled. + ETK_UNHANDLED = 0x00000002 +} SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND; + +// Implemented by the javascript engine to provide information whether a +// BREAKREASON_ERROR event is for a first chance exception, +// unhandled in the user code, or an unhandled exception. +[ + object, + uuid(516E42B6-89A8-4530-937B-5F0708431442), + pointer_default(unique) +] +interface IActiveScriptErrorDebug110 : IUnknown +{ + // Returns S_OK on success of the operation. + HRESULT GetExceptionThrownKind([out] SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND * pExceptionKind); +}; + +// Connection point based event interface. Advise against +// a debug application thread to receive these events from that thread. +// Events will be fired on the originating thread. +[ + object, + uuid(84E5E468-D5DA-48A8-83F4-40366429007B), + helpstring("IDebugApplicationThreadEvents110 Interface"), + local, + pointer_default(unique) +] +interface IDebugApplicationThreadEvents110 : IUnknown +{ + // The thread is suspending for a breakpoint and can handle + // calls which require the thread to be fully suspended + HRESULT OnSuspendForBreakPoint( void ); + // The thread is resuming from a breakpoint and will be + // active once again + HRESULT OnResumeFromBreakPoint( void ); + + // A call into the thread using the PDM's thread switching has completed + HRESULT OnThreadRequestComplete( void ); + + // A call into the thread using the PDM's thraed switching has begun + HRESULT OnBeginThreadRequest( void ); +} + +cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define IDebugApplicationThread110 IDebugApplicationThread11064") +cpp_quote("#define IID_IDebugApplicationThread110 IID_IDebugApplicationThread11064") +cpp_quote("#else") +cpp_quote("#define IDebugApplicationThread110 IDebugApplicationThread11032") +cpp_quote("#define IID_IDebugApplicationThread110 IID_IDebugApplicationThread11032") +cpp_quote("#endif") +cpp_quote("#endif") + +// Implemented by a debug application thread. QI'able off objects implementing IDebugApplicationThread +[ + object, + uuid(2194AC5C-6561-404A-A2E9-F57D72DE3702), + helpstring("IDebugApplicationThread11032 Interface"), + local, + pointer_default(unique) +] +interface IDebugApplicationThread11032 : IUnknown +{ + // A count of how many thread requests from the PDM's thread switching mechanisms are currently processing + // Usually 0 or 1, but it's possible for this to be higher if one thread call starts processing but + // triggers a synchronous call out of thread or otherwise suspends the thread (for example, by triggering + // an IDebugApplicationEvents event which is issued on the debugger thread) + HRESULT GetActiveThreadRequestCount([out, annotation("_Out_")] UINT * puiThreadRequests); + + // SuspendForBreakPoint has been called on this thread and has not yet completed. + HRESULT IsSuspendedForBreakPoint([out, annotation("_Out_")] BOOL * pfIsSuspended); + + // This thread is in a state that will process calls made using the PDM's thread + // switching mechanisms (SynchronousCallInThread etc) + HRESULT IsThreadCallable([out, annotation("_Out_")] BOOL * pfIsCallable); + + HRESULT AsynchronousCallIntoThread([in] IDebugThreadCall32* pptc, [in] DWORD_PTR dwParam1, [in] DWORD_PTR dwParam2, [in] DWORD_PTR dwParam3); +} + +[ + object, + uuid(420AA4CC-EFD8-4DAC-983B-47127826917D), + helpstring("IDebugApplicationThread11064 Interface"), + local, + pointer_default(unique) +] +interface IDebugApplicationThread11064 : IUnknown +{ + // A count of how many thread requests from the PDM's thread switching mechanisms are currently processing + // Usually 0 or 1, but it's possible for this to be higher if one thread call starts processing but + // triggers a synchronous call out of thread or otherwise suspends the thread (for example, by triggering + // an IDebugApplicationEvents event which is issued on the debugger thread) + HRESULT GetActiveThreadRequestCount([out, annotation("_Out_")] UINT * puiThreadRequests); + + // SuspendForBreakPoint has been called on this thread and has not yet completed. + HRESULT IsSuspendedForBreakPoint([out, annotation("_Out_")] BOOL * pfIsSuspended); + + // This thread is in a state that will process calls made using the PDM's thread + // switching mechanisms (SynchronousCallInThread etc) + HRESULT IsThreadCallable([out, annotation("_Out_")] BOOL * pfIsCallable); + + HRESULT AsynchronousCallIntoThread([in] IDebugThreadCall64* pptc, [in] DWORD_PTR dwParam1, [in] DWORD_PTR dwParam2, [in] DWORD_PTR dwParam3); +} + +// Represents a syntax error, or other critical error which is being raised to the +// the debugger. This event is fired using IDebugApplication.FireDebuggerEvent, +// and is received by the debugger using IApplicationDebugger.onDebuggerEvent. The +// debugger should block in its implementation of onDebuggerEvent until it is ready +// for the host to resume further processing. +[ + object, + uuid(2f69c611-6b14-47e8-9260-4bb7c52f504b), + pointer_default(unique) +] +interface IRemoteDebugCriticalErrorEvent110 : IUnknown +{ + // Obtains information about the error + // + // pbstrSource: Specifies to the web developer what aspect of their page the issue + // pertains to. Ex: "HTML", "DOM", "SCRIPT", etc + // pMessageId: Indicates an error code. source+messageid should uniquely identify the + //  message so that information about the error can be found in help. + // pbstrMessage: Message to display to users + // ppLocation: [Optional] Location where the error occurred. Should be non-null + // whenever possible. + HRESULT GetErrorInfo( + [out] BSTR* pbstrSource, + [out] int* pMessageId, + [out] BSTR* pbstrMessage, + [out] IDebugDocumentContext** ppLocation); +}; + +/// +/// Exhautive list of the all possible invocation types +typedef enum tagSCRIPT_INVOCATION_CONTEXT_TYPE +{ + SICT_Event, + SICT_SetTimeout, + SICT_SetInterval, + SICT_SetImmediate, + SICT_RequestAnimationFrame, + SICT_ToString, + SICT_MutationObserverCheckpoint, + SICT_WWAExecUnsafeLocalFunction, + SICT_WWAExecAtPriority +} SCRIPT_INVOCATION_CONTEXT_TYPE; + +/// +/// Provides the information about invocation context. +/// The object will be available to the debugger when debugger queries for a stack frame which belongs to the virtual invocation context frame. +[ + object, + uuid(5D7741B7-AF7E-4A2A-85E5-C77F4D0659FB), + helpstring("IScriptInvocationContext Interface"), + pointer_default(unique) +] +interface IScriptInvocationContext : IUnknown +{ + // Populates the script invocation context type. + HRESULT GetContextType([out] SCRIPT_INVOCATION_CONTEXT_TYPE * pInvocationContextType); + + // Populates the description of the invocation context. + HRESULT GetContextDescription([out] BSTR* pDescription); + + // Populates the context object. + HRESULT GetContextObject([out] IUnknown** ppContextObject); +}; + +// Indicates the type of frame provided from the runtime. +typedef enum tagDEBUG_STACKFRAME_TYPE +{ + // Indicates if the current frame is script code. + DST_SCRIPT_FRAME, + + // Indicates if the current frame is an internal frame + DST_INTERNAL_FRAME, + + // Indicates if the current frame is an invocation/event frame + DST_INVOCATION_FRAME +} DEBUG_STACKFRAME_TYPE; + +/// +/// This interface is an extension of the interface IDebugStackFrame. This extension is made to provide invocation context information to the debugger. +/// +[ + object, + uuid(4B509611-B6EA-4B24-ADCB-D0CCFD1A7E33), + helpstring("IDebugStackFrame110 Interface"), + pointer_default(unique) +] +interface IDebugStackFrame110: IDebugStackFrame +{ + // Mentions the type of current frame, which helps debugger to distinguish among the usual script frame or internal frame or virtual invocation frame. + // Returns S_OK on success. + HRESULT GetStackFrameType([out] DEBUG_STACKFRAME_TYPE * pStackFrameKind); + + // If the current frame is a invocation frame, this API will be used to get more info about the context of the invocation. + // ppInvocationContext: an object passed from the host. + // Returns S_OK upon success. + // E_FAIL when this is not virtual invocation/event frame. + HRESULT GetScriptInvocationContext([out] IScriptInvocationContext ** ppInvocationContext); +}; + +// Indicates the type of message provided by the runtime +typedef enum tagDEBUG_EVENT_INFO_TYPE +{ + // Indicates if the current message general - imagine as console.info. + DEIT_GENERAL, + + // Special message - AsmJS error due to debugging + DEIT_ASMJS_IN_DEBUGGING, + + // Special message - Runtime succeeded on AsmJS + DEIT_ASMJS_SUCCEEDED, + + // Special message - Runtime failed on AsmJS + DEIT_ASMJS_FAILED + +} DEBUG_EVENT_INFO_TYPE; + +// Represents a message/info raised by the runtime to the debugger in order to pass any kind of message (think of this similar to console.* APIs) +// This event is fired using IDebugApplication.FireDebuggerEvent, and is received by the debugger using IApplicationDebugger.onDebuggerEvent. +// The debugger should block in its implementation of onDebuggerEvent until it is ready +// for the host to resume further processing. +[ + object, + uuid(9FF56BB6-EB89-4C0F-8823-CC2A4C0B7F26), + pointer_default(unique) +] +interface IRemoteDebugInfoEvent110 : IUnknown +{ + // Obtains information about the message info + // + HRESULT GetEventInfo( + // Mention the message type - a way of filtering on the debugger side + [out] DEBUG_EVENT_INFO_TYPE* pMessageType, + + // pbstrMessage : Message text + [out] BSTR* pbstrMessage, + + // pbstrUrl [Optional] : An URL - represents the page url for the script engine points the message to + [out] BSTR* pbstrUrl, + + // ppLocation: [Optional] Location where the message is meant in the page source. + [out] IDebugDocumentContext** ppLocation); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/activecf.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activecf.h new file mode 100644 index 0000000000000000000000000000000000000000..5c37a883d8bd96f67740bf2671b9263490ef3482 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activecf.h @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// File: ActiveCf.h +// +// Desc: Contains the data formats for the transfer of VfW4 filters via the +// clipboard. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define CFSTR_VFW_FILTERLIST "Video for Windows 4 Filters" + +typedef struct tagVFW_FILTERLIST{ + UINT cFilters; // number of CLSIDs in aClsId + CLSID aClsId[1]; // ClsId of each filter +} VFW_FILTERLIST; + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/activprof.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activprof.h new file mode 100644 index 0000000000000000000000000000000000000000..c39ca2a924fcef1cf8a8f91c37e5351c7ff45f00 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activprof.h @@ -0,0 +1,1620 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __activprof_h__ +#define __activprof_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IActiveScriptProfilerControl_FWD_DEFINED__ +#define __IActiveScriptProfilerControl_FWD_DEFINED__ +typedef interface IActiveScriptProfilerControl IActiveScriptProfilerControl; + +#endif /* __IActiveScriptProfilerControl_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerControl2_FWD_DEFINED__ +#define __IActiveScriptProfilerControl2_FWD_DEFINED__ +typedef interface IActiveScriptProfilerControl2 IActiveScriptProfilerControl2; + +#endif /* __IActiveScriptProfilerControl2_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerHeapEnum_FWD_DEFINED__ +#define __IActiveScriptProfilerHeapEnum_FWD_DEFINED__ +typedef interface IActiveScriptProfilerHeapEnum IActiveScriptProfilerHeapEnum; + +#endif /* __IActiveScriptProfilerHeapEnum_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerControl3_FWD_DEFINED__ +#define __IActiveScriptProfilerControl3_FWD_DEFINED__ +typedef interface IActiveScriptProfilerControl3 IActiveScriptProfilerControl3; + +#endif /* __IActiveScriptProfilerControl3_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerControl4_FWD_DEFINED__ +#define __IActiveScriptProfilerControl4_FWD_DEFINED__ +typedef interface IActiveScriptProfilerControl4 IActiveScriptProfilerControl4; + +#endif /* __IActiveScriptProfilerControl4_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerControl5_FWD_DEFINED__ +#define __IActiveScriptProfilerControl5_FWD_DEFINED__ +typedef interface IActiveScriptProfilerControl5 IActiveScriptProfilerControl5; + +#endif /* __IActiveScriptProfilerControl5_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerCallback_FWD_DEFINED__ +#define __IActiveScriptProfilerCallback_FWD_DEFINED__ +typedef interface IActiveScriptProfilerCallback IActiveScriptProfilerCallback; + +#endif /* __IActiveScriptProfilerCallback_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerCallback2_FWD_DEFINED__ +#define __IActiveScriptProfilerCallback2_FWD_DEFINED__ +typedef interface IActiveScriptProfilerCallback2 IActiveScriptProfilerCallback2; + +#endif /* __IActiveScriptProfilerCallback2_FWD_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerCallback3_FWD_DEFINED__ +#define __IActiveScriptProfilerCallback3_FWD_DEFINED__ +typedef interface IActiveScriptProfilerCallback3 IActiveScriptProfilerCallback3; + +#endif /* __IActiveScriptProfilerCallback3_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_activprof_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// ActivProf.h +//=--------------------------------------------------------------------------= +// (C) Copyright 2000 Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= +// +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// Disable /W4 compiler warning C4201: nameless struct/union +#pragma warning(push) +#pragma warning(disable:4201) // Disable C4201: nameless struct/union + +#pragma comment(lib,"uuid.lib") +// +// Declarations for ActiveX Scripting profiling. +// + +const HRESULT ACTIVPROF_E_PROFILER_PRESENT = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0200); +const HRESULT ACTIVPROF_E_PROFILER_ABSENT = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0201); +const HRESULT ACTIVPROF_E_UNABLE_TO_APPLY_ACTION = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0202); +const ULONG PROFILER_HEAP_OBJECT_NAME_ID_UNAVAILABLE=(ULONG)-1; + +#ifndef __ActivProf_h +#define __ActivProf_h + +/* GUIDs + ********/ + +#ifndef _NO_SCRIPT_GUIDS +// {32E4694E-0D37-419B-B93D-FA20DED6E8EA} +DEFINE_GUID(IID_IActiveScriptProfilerHeapEnum, 0x32e4694e, 0xd37, 0x419b, 0xb9, 0x3d, 0xfa, 0x20, 0xde, 0xd6, 0xe8, 0xea); +// {0B403015-F381-4023-A5D0-6FED076DE716} +DEFINE_GUID(IID_IActiveScriptProfilerControl3, 0xb403015, 0xf381, 0x4023, 0xa5, 0xd0, 0x6f, 0xed, 0x7, 0x6d, 0xe7, 0x16); +#endif // _NO_SCRIPT_GUIDS + +typedef /* [public][public][public][public] */ +enum __MIDL___MIDL_itf_activprof_0000_0000_0001 + { + PROFILER_SCRIPT_TYPE_USER = 0, + PROFILER_SCRIPT_TYPE_DYNAMIC = ( PROFILER_SCRIPT_TYPE_USER + 1 ) , + PROFILER_SCRIPT_TYPE_NATIVE = ( PROFILER_SCRIPT_TYPE_DYNAMIC + 1 ) , + PROFILER_SCRIPT_TYPE_DOM = ( PROFILER_SCRIPT_TYPE_NATIVE + 1 ) + } PROFILER_SCRIPT_TYPE; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_activprof_0000_0000_0002 + { + PROFILER_EVENT_MASK_TRACE_SCRIPT_FUNCTION_CALL = 0x1, + PROFILER_EVENT_MASK_TRACE_NATIVE_FUNCTION_CALL = 0x2, + PROFILER_EVENT_MASK_TRACE_DOM_FUNCTION_CALL = 0x4, + PROFILER_EVENT_MASK_TRACE_ALL = ( PROFILER_EVENT_MASK_TRACE_SCRIPT_FUNCTION_CALL | PROFILER_EVENT_MASK_TRACE_NATIVE_FUNCTION_CALL ) , + PROFILER_EVENT_MASK_TRACE_ALL_WITH_DOM = ( PROFILER_EVENT_MASK_TRACE_ALL | PROFILER_EVENT_MASK_TRACE_DOM_FUNCTION_CALL ) + } PROFILER_EVENT_MASK; + +typedef LONG PROFILER_TOKEN; + + + +extern RPC_IF_HANDLE __MIDL_itf_activprof_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activprof_0000_0000_v0_0_s_ifspec; + +#ifndef __IActiveScriptProfilerControl_INTERFACE_DEFINED__ +#define __IActiveScriptProfilerControl_INTERFACE_DEFINED__ + +/* interface IActiveScriptProfilerControl */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptProfilerControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("784b5ff0-69b0-47d1-a7dc-2518f4230e90") + IActiveScriptProfilerControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE StartProfiling( + /* [in] */ __RPC__in REFCLSID clsidProfilerObject, + /* [in] */ DWORD dwEventMask, + /* [in] */ DWORD dwContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProfilerEventMask( + /* [in] */ DWORD dwEventMask) = 0; + + virtual HRESULT STDMETHODCALLTYPE StopProfiling( + /* [in] */ HRESULT hrShutdownReason) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptProfilerControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptProfilerControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptProfilerControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptProfilerControl * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, StartProfiling) + HRESULT ( STDMETHODCALLTYPE *StartProfiling )( + __RPC__in IActiveScriptProfilerControl * This, + /* [in] */ __RPC__in REFCLSID clsidProfilerObject, + /* [in] */ DWORD dwEventMask, + /* [in] */ DWORD dwContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, SetProfilerEventMask) + HRESULT ( STDMETHODCALLTYPE *SetProfilerEventMask )( + __RPC__in IActiveScriptProfilerControl * This, + /* [in] */ DWORD dwEventMask); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, StopProfiling) + HRESULT ( STDMETHODCALLTYPE *StopProfiling )( + __RPC__in IActiveScriptProfilerControl * This, + /* [in] */ HRESULT hrShutdownReason); + + END_INTERFACE + } IActiveScriptProfilerControlVtbl; + + interface IActiveScriptProfilerControl + { + CONST_VTBL struct IActiveScriptProfilerControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptProfilerControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptProfilerControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptProfilerControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptProfilerControl_StartProfiling(This,clsidProfilerObject,dwEventMask,dwContext) \ + ( (This)->lpVtbl -> StartProfiling(This,clsidProfilerObject,dwEventMask,dwContext) ) + +#define IActiveScriptProfilerControl_SetProfilerEventMask(This,dwEventMask) \ + ( (This)->lpVtbl -> SetProfilerEventMask(This,dwEventMask) ) + +#define IActiveScriptProfilerControl_StopProfiling(This,hrShutdownReason) \ + ( (This)->lpVtbl -> StopProfiling(This,hrShutdownReason) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptProfilerControl_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerControl2_INTERFACE_DEFINED__ +#define __IActiveScriptProfilerControl2_INTERFACE_DEFINED__ + +/* interface IActiveScriptProfilerControl2 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptProfilerControl2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("47810165-498F-40be-94F1-653557E9E7DA") + IActiveScriptProfilerControl2 : public IActiveScriptProfilerControl + { + public: + virtual HRESULT STDMETHODCALLTYPE CompleteProfilerStart( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PrepareProfilerStop( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptProfilerControl2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptProfilerControl2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptProfilerControl2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptProfilerControl2 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, StartProfiling) + HRESULT ( STDMETHODCALLTYPE *StartProfiling )( + __RPC__in IActiveScriptProfilerControl2 * This, + /* [in] */ __RPC__in REFCLSID clsidProfilerObject, + /* [in] */ DWORD dwEventMask, + /* [in] */ DWORD dwContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, SetProfilerEventMask) + HRESULT ( STDMETHODCALLTYPE *SetProfilerEventMask )( + __RPC__in IActiveScriptProfilerControl2 * This, + /* [in] */ DWORD dwEventMask); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, StopProfiling) + HRESULT ( STDMETHODCALLTYPE *StopProfiling )( + __RPC__in IActiveScriptProfilerControl2 * This, + /* [in] */ HRESULT hrShutdownReason); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl2, CompleteProfilerStart) + HRESULT ( STDMETHODCALLTYPE *CompleteProfilerStart )( + __RPC__in IActiveScriptProfilerControl2 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl2, PrepareProfilerStop) + HRESULT ( STDMETHODCALLTYPE *PrepareProfilerStop )( + __RPC__in IActiveScriptProfilerControl2 * This); + + END_INTERFACE + } IActiveScriptProfilerControl2Vtbl; + + interface IActiveScriptProfilerControl2 + { + CONST_VTBL struct IActiveScriptProfilerControl2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptProfilerControl2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptProfilerControl2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptProfilerControl2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptProfilerControl2_StartProfiling(This,clsidProfilerObject,dwEventMask,dwContext) \ + ( (This)->lpVtbl -> StartProfiling(This,clsidProfilerObject,dwEventMask,dwContext) ) + +#define IActiveScriptProfilerControl2_SetProfilerEventMask(This,dwEventMask) \ + ( (This)->lpVtbl -> SetProfilerEventMask(This,dwEventMask) ) + +#define IActiveScriptProfilerControl2_StopProfiling(This,hrShutdownReason) \ + ( (This)->lpVtbl -> StopProfiling(This,hrShutdownReason) ) + + +#define IActiveScriptProfilerControl2_CompleteProfilerStart(This) \ + ( (This)->lpVtbl -> CompleteProfilerStart(This) ) + +#define IActiveScriptProfilerControl2_PrepareProfilerStop(This) \ + ( (This)->lpVtbl -> PrepareProfilerStop(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptProfilerControl2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activprof_0000_0002 */ +/* [local] */ + +typedef DWORD_PTR PROFILER_HEAP_OBJECT_ID; + +typedef UINT PROFILER_HEAP_OBJECT_NAME_ID; + +typedef void *PROFILER_EXTERNAL_OBJECT_ADDRESS; + +typedef /* [public][v1_enum] */ +enum __MIDL___MIDL_itf_activprof_0000_0002_0001 + { + PROFILER_HEAP_OBJECT_FLAGS_NEW_OBJECT = 0x1, + PROFILER_HEAP_OBJECT_FLAGS_IS_ROOT = 0x2, + PROFILER_HEAP_OBJECT_FLAGS_SITE_CLOSED = 0x4, + PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL = 0x8, + PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL_UNKNOWN = 0x10, + PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL_DISPATCH = 0x20, + PROFILER_HEAP_OBJECT_FLAGS_SIZE_APPROXIMATE = 0x40, + PROFILER_HEAP_OBJECT_FLAGS_SIZE_UNAVAILABLE = 0x80, + PROFILER_HEAP_OBJECT_FLAGS_NEW_STATE_UNAVAILABLE = 0x100, + PROFILER_HEAP_OBJECT_FLAGS_WINRT_INSTANCE = 0x200, + PROFILER_HEAP_OBJECT_FLAGS_WINRT_RUNTIMECLASS = 0x400, + PROFILER_HEAP_OBJECT_FLAGS_WINRT_DELEGATE = 0x800, + PROFILER_HEAP_OBJECT_FLAGS_WINRT_NAMESPACE = 0x1000 + } PROFILER_HEAP_OBJECT_FLAGS; + +typedef /* [public][public][public][v1_enum] */ +enum __MIDL___MIDL_itf_activprof_0000_0002_0002 + { + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_PROTOTYPE = 0x1, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_FUNCTION_NAME = 0x2, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_SCOPE_LIST = 0x3, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_INTERNAL_PROPERTY = 0x4, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_NAME_PROPERTIES = 0x5, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_INDEX_PROPERTIES = 0x6, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_ELEMENT_ATTRIBUTES_SIZE = 0x7, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_ELEMENT_TEXT_CHILDREN_SIZE = 0x8, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_RELATIONSHIPS = 0x9, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_WINRTEVENTS = 0xa, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_WEAKMAP_COLLECTION_LIST = 0xb, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_MAP_COLLECTION_LIST = 0xc, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_SET_COLLECTION_LIST = 0xd, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_MAX_VALUE = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_SET_COLLECTION_LIST + } PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE; + +typedef /* [public][v1_enum] */ +enum __MIDL___MIDL_itf_activprof_0000_0002_0003 + { + PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_NONE = 0, + PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_IS_GET_ACCESSOR = 0x10000, + PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_IS_SET_ACCESSOR = 0x20000, + PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_LET_VARIABLE = 0x40000, + PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_CONST_VARIABLE = 0x80000 + } PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS; + +typedef /* [public][public][v1_enum] */ +enum __MIDL___MIDL_itf_activprof_0000_0002_0004 + { + PROFILER_HEAP_ENUM_FLAGS_NONE = 0, + PROFILER_HEAP_ENUM_FLAGS_STORE_RELATIONSHIP_FLAGS = 0x1, + PROFILER_HEAP_ENUM_FLAGS_SUBSTRINGS = 0x2, + PROFILER_HEAP_ENUM_FLAGS_RELATIONSHIP_SUBSTRINGS = ( PROFILER_HEAP_ENUM_FLAGS_STORE_RELATIONSHIP_FLAGS | PROFILER_HEAP_ENUM_FLAGS_SUBSTRINGS ) + } PROFILER_HEAP_ENUM_FLAGS; + +typedef struct _PROFILER_HEAP_OBJECT_SCOPE_LIST + { + UINT count; + /* [size_is] */ PROFILER_HEAP_OBJECT_ID scopes[ 1 ]; + } PROFILER_HEAP_OBJECT_SCOPE_LIST; + +typedef /* [public][public][public][public][public][public][public][v1_enum] */ +enum __MIDL___MIDL_itf_activprof_0000_0002_0005 + { + PROFILER_PROPERTY_TYPE_NUMBER = 0x1, + PROFILER_PROPERTY_TYPE_STRING = 0x2, + PROFILER_PROPERTY_TYPE_HEAP_OBJECT = 0x3, + PROFILER_PROPERTY_TYPE_EXTERNAL_OBJECT = 0x4, + PROFILER_PROPERTY_TYPE_BSTR = 0x5, + PROFILER_PROPERTY_TYPE_SUBSTRING = 0x6 + } PROFILER_RELATIONSHIP_INFO; + +typedef struct _PROFILER_PROPERTY_TYPE_SUBSTRING_INFO + { + UINT length; + LPCWSTR value; + } PROFILER_PROPERTY_TYPE_SUBSTRING_INFO; + +typedef struct _PROFILER_HEAP_OBJECT_RELATIONSHIP + { + PROFILER_HEAP_OBJECT_NAME_ID relationshipId; + PROFILER_RELATIONSHIP_INFO relationshipInfo; + /* [switch_is][switch_type] */ union + { + /* [case()] */ double numberValue; + /* [case()] */ LPCWSTR stringValue; + /* [case()] */ BSTR bstrValue; + /* [case()] */ PROFILER_HEAP_OBJECT_ID objectId; + /* [case()] */ PROFILER_EXTERNAL_OBJECT_ADDRESS externalObjectAddress; + /* [case()] */ PROFILER_PROPERTY_TYPE_SUBSTRING_INFO *subString; + } ; + } PROFILER_HEAP_OBJECT_RELATIONSHIP; + +typedef struct _PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST + { + UINT count; + /* [size_is] */ PROFILER_HEAP_OBJECT_RELATIONSHIP elements[ 1 ]; + } PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST; + +typedef struct _PROFILER_HEAP_OBJECT_OPTIONAL_INFO + { + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE infoType; + /* [switch_is][switch_type] */ union + { + /* [case()] */ PROFILER_HEAP_OBJECT_ID prototype; + /* [case()] */ LPCWSTR functionName; + /* [case()] */ UINT elementAttributesSize; + /* [case()] */ UINT elementTextChildrenSize; + /* [case()] */ PROFILER_HEAP_OBJECT_SCOPE_LIST *scopeList; + /* [case()] */ PROFILER_HEAP_OBJECT_RELATIONSHIP *internalProperty; + /* [case()] */ PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST *namePropertyList; + /* [case()] */ PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST *indexPropertyList; + /* [case()] */ PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST *relationshipList; + /* [case()] */ PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST *eventList; + /* [case()] */ PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST *weakMapCollectionList; + /* [case()] */ PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST *mapCollectionList; + /* [case()] */ PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST *setCollectionList; + } ; + } PROFILER_HEAP_OBJECT_OPTIONAL_INFO; + +typedef struct _PROFILER_HEAP_OBJECT + { + UINT size; + union + { + PROFILER_HEAP_OBJECT_ID objectId; + PROFILER_EXTERNAL_OBJECT_ADDRESS externalObjectAddress; + } ; + PROFILER_HEAP_OBJECT_NAME_ID typeNameId; + ULONG flags; + USHORT unused; + USHORT optionalInfoCount; + } PROFILER_HEAP_OBJECT; + + + +extern RPC_IF_HANDLE __MIDL_itf_activprof_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activprof_0000_0002_v0_0_s_ifspec; + +#ifndef __IActiveScriptProfilerHeapEnum_INTERFACE_DEFINED__ +#define __IActiveScriptProfilerHeapEnum_INTERFACE_DEFINED__ + +/* interface IActiveScriptProfilerHeapEnum */ +/* [unique][local][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptProfilerHeapEnum; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("32E4694E-0D37-419B-B93D-FA20DED6E8EA") + IActiveScriptProfilerHeapEnum : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ PROFILER_HEAP_OBJECT **heapObjects, + /* [out] */ ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOptionalInfo( + /* [in] */ PROFILER_HEAP_OBJECT *heapObject, + /* [in] */ ULONG celt, + /* [size_is][out] */ PROFILER_HEAP_OBJECT_OPTIONAL_INFO *optionalInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE FreeObjectAndOptionalInfo( + /* [in] */ ULONG celt, + /* [size_is][in] */ PROFILER_HEAP_OBJECT **heapObjects) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNameIdMap( + /* [size_is][size_is][out] */ LPCWSTR *pNameList[ ], + /* [out] */ UINT *pcelt) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptProfilerHeapEnumVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IActiveScriptProfilerHeapEnum * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IActiveScriptProfilerHeapEnum * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IActiveScriptProfilerHeapEnum * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerHeapEnum, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IActiveScriptProfilerHeapEnum * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ PROFILER_HEAP_OBJECT **heapObjects, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerHeapEnum, GetOptionalInfo) + HRESULT ( STDMETHODCALLTYPE *GetOptionalInfo )( + IActiveScriptProfilerHeapEnum * This, + /* [in] */ PROFILER_HEAP_OBJECT *heapObject, + /* [in] */ ULONG celt, + /* [size_is][out] */ PROFILER_HEAP_OBJECT_OPTIONAL_INFO *optionalInfo); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerHeapEnum, FreeObjectAndOptionalInfo) + HRESULT ( STDMETHODCALLTYPE *FreeObjectAndOptionalInfo )( + IActiveScriptProfilerHeapEnum * This, + /* [in] */ ULONG celt, + /* [size_is][in] */ PROFILER_HEAP_OBJECT **heapObjects); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerHeapEnum, GetNameIdMap) + HRESULT ( STDMETHODCALLTYPE *GetNameIdMap )( + IActiveScriptProfilerHeapEnum * This, + /* [size_is][size_is][out] */ LPCWSTR *pNameList[ ], + /* [out] */ UINT *pcelt); + + END_INTERFACE + } IActiveScriptProfilerHeapEnumVtbl; + + interface IActiveScriptProfilerHeapEnum + { + CONST_VTBL struct IActiveScriptProfilerHeapEnumVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptProfilerHeapEnum_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptProfilerHeapEnum_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptProfilerHeapEnum_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptProfilerHeapEnum_Next(This,celt,heapObjects,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,heapObjects,pceltFetched) ) + +#define IActiveScriptProfilerHeapEnum_GetOptionalInfo(This,heapObject,celt,optionalInfo) \ + ( (This)->lpVtbl -> GetOptionalInfo(This,heapObject,celt,optionalInfo) ) + +#define IActiveScriptProfilerHeapEnum_FreeObjectAndOptionalInfo(This,celt,heapObjects) \ + ( (This)->lpVtbl -> FreeObjectAndOptionalInfo(This,celt,heapObjects) ) + +#define IActiveScriptProfilerHeapEnum_GetNameIdMap(This,pNameList,pcelt) \ + ( (This)->lpVtbl -> GetNameIdMap(This,pNameList,pcelt) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptProfilerHeapEnum_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerControl3_INTERFACE_DEFINED__ +#define __IActiveScriptProfilerControl3_INTERFACE_DEFINED__ + +/* interface IActiveScriptProfilerControl3 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptProfilerControl3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0B403015-F381-4023-A5D0-6FED076DE716") + IActiveScriptProfilerControl3 : public IActiveScriptProfilerControl2 + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumHeap( + /* [out] */ __RPC__deref_out_opt IActiveScriptProfilerHeapEnum **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptProfilerControl3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptProfilerControl3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptProfilerControl3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptProfilerControl3 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, StartProfiling) + HRESULT ( STDMETHODCALLTYPE *StartProfiling )( + __RPC__in IActiveScriptProfilerControl3 * This, + /* [in] */ __RPC__in REFCLSID clsidProfilerObject, + /* [in] */ DWORD dwEventMask, + /* [in] */ DWORD dwContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, SetProfilerEventMask) + HRESULT ( STDMETHODCALLTYPE *SetProfilerEventMask )( + __RPC__in IActiveScriptProfilerControl3 * This, + /* [in] */ DWORD dwEventMask); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, StopProfiling) + HRESULT ( STDMETHODCALLTYPE *StopProfiling )( + __RPC__in IActiveScriptProfilerControl3 * This, + /* [in] */ HRESULT hrShutdownReason); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl2, CompleteProfilerStart) + HRESULT ( STDMETHODCALLTYPE *CompleteProfilerStart )( + __RPC__in IActiveScriptProfilerControl3 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl2, PrepareProfilerStop) + HRESULT ( STDMETHODCALLTYPE *PrepareProfilerStop )( + __RPC__in IActiveScriptProfilerControl3 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl3, EnumHeap) + HRESULT ( STDMETHODCALLTYPE *EnumHeap )( + __RPC__in IActiveScriptProfilerControl3 * This, + /* [out] */ __RPC__deref_out_opt IActiveScriptProfilerHeapEnum **ppEnum); + + END_INTERFACE + } IActiveScriptProfilerControl3Vtbl; + + interface IActiveScriptProfilerControl3 + { + CONST_VTBL struct IActiveScriptProfilerControl3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptProfilerControl3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptProfilerControl3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptProfilerControl3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptProfilerControl3_StartProfiling(This,clsidProfilerObject,dwEventMask,dwContext) \ + ( (This)->lpVtbl -> StartProfiling(This,clsidProfilerObject,dwEventMask,dwContext) ) + +#define IActiveScriptProfilerControl3_SetProfilerEventMask(This,dwEventMask) \ + ( (This)->lpVtbl -> SetProfilerEventMask(This,dwEventMask) ) + +#define IActiveScriptProfilerControl3_StopProfiling(This,hrShutdownReason) \ + ( (This)->lpVtbl -> StopProfiling(This,hrShutdownReason) ) + + +#define IActiveScriptProfilerControl3_CompleteProfilerStart(This) \ + ( (This)->lpVtbl -> CompleteProfilerStart(This) ) + +#define IActiveScriptProfilerControl3_PrepareProfilerStop(This) \ + ( (This)->lpVtbl -> PrepareProfilerStop(This) ) + + +#define IActiveScriptProfilerControl3_EnumHeap(This,ppEnum) \ + ( (This)->lpVtbl -> EnumHeap(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptProfilerControl3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activprof_0000_0004 */ +/* [local] */ + +typedef /* [public][public][public][v1_enum] */ +enum __MIDL___MIDL_itf_activprof_0000_0004_0001 + { + PROFILER_HEAP_SUMMARY_VERSION_1 = 0x1 + } PROFILER_HEAP_SUMMARY_VERSION; + +typedef struct _PROFILER_HEAP_SUMMARY + { + PROFILER_HEAP_SUMMARY_VERSION version; + UINT totalHeapSize; + } PROFILER_HEAP_SUMMARY; + + + +extern RPC_IF_HANDLE __MIDL_itf_activprof_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activprof_0000_0004_v0_0_s_ifspec; + +#ifndef __IActiveScriptProfilerControl4_INTERFACE_DEFINED__ +#define __IActiveScriptProfilerControl4_INTERFACE_DEFINED__ + +/* interface IActiveScriptProfilerControl4 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptProfilerControl4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("160F94FD-9DBC-40D4-9EAC-2B71DB3132F4") + IActiveScriptProfilerControl4 : public IActiveScriptProfilerControl3 + { + public: + virtual HRESULT STDMETHODCALLTYPE SummarizeHeap( + /* [out][in] */ __RPC__inout PROFILER_HEAP_SUMMARY *heapSummary) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptProfilerControl4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptProfilerControl4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptProfilerControl4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptProfilerControl4 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, StartProfiling) + HRESULT ( STDMETHODCALLTYPE *StartProfiling )( + __RPC__in IActiveScriptProfilerControl4 * This, + /* [in] */ __RPC__in REFCLSID clsidProfilerObject, + /* [in] */ DWORD dwEventMask, + /* [in] */ DWORD dwContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, SetProfilerEventMask) + HRESULT ( STDMETHODCALLTYPE *SetProfilerEventMask )( + __RPC__in IActiveScriptProfilerControl4 * This, + /* [in] */ DWORD dwEventMask); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, StopProfiling) + HRESULT ( STDMETHODCALLTYPE *StopProfiling )( + __RPC__in IActiveScriptProfilerControl4 * This, + /* [in] */ HRESULT hrShutdownReason); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl2, CompleteProfilerStart) + HRESULT ( STDMETHODCALLTYPE *CompleteProfilerStart )( + __RPC__in IActiveScriptProfilerControl4 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl2, PrepareProfilerStop) + HRESULT ( STDMETHODCALLTYPE *PrepareProfilerStop )( + __RPC__in IActiveScriptProfilerControl4 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl3, EnumHeap) + HRESULT ( STDMETHODCALLTYPE *EnumHeap )( + __RPC__in IActiveScriptProfilerControl4 * This, + /* [out] */ __RPC__deref_out_opt IActiveScriptProfilerHeapEnum **ppEnum); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl4, SummarizeHeap) + HRESULT ( STDMETHODCALLTYPE *SummarizeHeap )( + __RPC__in IActiveScriptProfilerControl4 * This, + /* [out][in] */ __RPC__inout PROFILER_HEAP_SUMMARY *heapSummary); + + END_INTERFACE + } IActiveScriptProfilerControl4Vtbl; + + interface IActiveScriptProfilerControl4 + { + CONST_VTBL struct IActiveScriptProfilerControl4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptProfilerControl4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptProfilerControl4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptProfilerControl4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptProfilerControl4_StartProfiling(This,clsidProfilerObject,dwEventMask,dwContext) \ + ( (This)->lpVtbl -> StartProfiling(This,clsidProfilerObject,dwEventMask,dwContext) ) + +#define IActiveScriptProfilerControl4_SetProfilerEventMask(This,dwEventMask) \ + ( (This)->lpVtbl -> SetProfilerEventMask(This,dwEventMask) ) + +#define IActiveScriptProfilerControl4_StopProfiling(This,hrShutdownReason) \ + ( (This)->lpVtbl -> StopProfiling(This,hrShutdownReason) ) + + +#define IActiveScriptProfilerControl4_CompleteProfilerStart(This) \ + ( (This)->lpVtbl -> CompleteProfilerStart(This) ) + +#define IActiveScriptProfilerControl4_PrepareProfilerStop(This) \ + ( (This)->lpVtbl -> PrepareProfilerStop(This) ) + + +#define IActiveScriptProfilerControl4_EnumHeap(This,ppEnum) \ + ( (This)->lpVtbl -> EnumHeap(This,ppEnum) ) + + +#define IActiveScriptProfilerControl4_SummarizeHeap(This,heapSummary) \ + ( (This)->lpVtbl -> SummarizeHeap(This,heapSummary) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptProfilerControl4_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerControl5_INTERFACE_DEFINED__ +#define __IActiveScriptProfilerControl5_INTERFACE_DEFINED__ + +/* interface IActiveScriptProfilerControl5 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptProfilerControl5; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1C01A2D1-8F0F-46A5-9720-0D7ED2C62F0A") + IActiveScriptProfilerControl5 : public IActiveScriptProfilerControl4 + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumHeap2( + /* [in] */ PROFILER_HEAP_ENUM_FLAGS enumFlags, + /* [out] */ __RPC__deref_out_opt IActiveScriptProfilerHeapEnum **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptProfilerControl5Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptProfilerControl5 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptProfilerControl5 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptProfilerControl5 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, StartProfiling) + HRESULT ( STDMETHODCALLTYPE *StartProfiling )( + __RPC__in IActiveScriptProfilerControl5 * This, + /* [in] */ __RPC__in REFCLSID clsidProfilerObject, + /* [in] */ DWORD dwEventMask, + /* [in] */ DWORD dwContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, SetProfilerEventMask) + HRESULT ( STDMETHODCALLTYPE *SetProfilerEventMask )( + __RPC__in IActiveScriptProfilerControl5 * This, + /* [in] */ DWORD dwEventMask); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl, StopProfiling) + HRESULT ( STDMETHODCALLTYPE *StopProfiling )( + __RPC__in IActiveScriptProfilerControl5 * This, + /* [in] */ HRESULT hrShutdownReason); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl2, CompleteProfilerStart) + HRESULT ( STDMETHODCALLTYPE *CompleteProfilerStart )( + __RPC__in IActiveScriptProfilerControl5 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl2, PrepareProfilerStop) + HRESULT ( STDMETHODCALLTYPE *PrepareProfilerStop )( + __RPC__in IActiveScriptProfilerControl5 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl3, EnumHeap) + HRESULT ( STDMETHODCALLTYPE *EnumHeap )( + __RPC__in IActiveScriptProfilerControl5 * This, + /* [out] */ __RPC__deref_out_opt IActiveScriptProfilerHeapEnum **ppEnum); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl4, SummarizeHeap) + HRESULT ( STDMETHODCALLTYPE *SummarizeHeap )( + __RPC__in IActiveScriptProfilerControl5 * This, + /* [out][in] */ __RPC__inout PROFILER_HEAP_SUMMARY *heapSummary); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerControl5, EnumHeap2) + HRESULT ( STDMETHODCALLTYPE *EnumHeap2 )( + __RPC__in IActiveScriptProfilerControl5 * This, + /* [in] */ PROFILER_HEAP_ENUM_FLAGS enumFlags, + /* [out] */ __RPC__deref_out_opt IActiveScriptProfilerHeapEnum **ppEnum); + + END_INTERFACE + } IActiveScriptProfilerControl5Vtbl; + + interface IActiveScriptProfilerControl5 + { + CONST_VTBL struct IActiveScriptProfilerControl5Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptProfilerControl5_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptProfilerControl5_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptProfilerControl5_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptProfilerControl5_StartProfiling(This,clsidProfilerObject,dwEventMask,dwContext) \ + ( (This)->lpVtbl -> StartProfiling(This,clsidProfilerObject,dwEventMask,dwContext) ) + +#define IActiveScriptProfilerControl5_SetProfilerEventMask(This,dwEventMask) \ + ( (This)->lpVtbl -> SetProfilerEventMask(This,dwEventMask) ) + +#define IActiveScriptProfilerControl5_StopProfiling(This,hrShutdownReason) \ + ( (This)->lpVtbl -> StopProfiling(This,hrShutdownReason) ) + + +#define IActiveScriptProfilerControl5_CompleteProfilerStart(This) \ + ( (This)->lpVtbl -> CompleteProfilerStart(This) ) + +#define IActiveScriptProfilerControl5_PrepareProfilerStop(This) \ + ( (This)->lpVtbl -> PrepareProfilerStop(This) ) + + +#define IActiveScriptProfilerControl5_EnumHeap(This,ppEnum) \ + ( (This)->lpVtbl -> EnumHeap(This,ppEnum) ) + + +#define IActiveScriptProfilerControl5_SummarizeHeap(This,heapSummary) \ + ( (This)->lpVtbl -> SummarizeHeap(This,heapSummary) ) + + +#define IActiveScriptProfilerControl5_EnumHeap2(This,enumFlags,ppEnum) \ + ( (This)->lpVtbl -> EnumHeap2(This,enumFlags,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptProfilerControl5_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerCallback_INTERFACE_DEFINED__ +#define __IActiveScriptProfilerCallback_INTERFACE_DEFINED__ + +/* interface IActiveScriptProfilerCallback */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptProfilerCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("740eca23-7d9d-42e5-ba9d-f8b24b1c7a9b") + IActiveScriptProfilerCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ DWORD dwContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE Shutdown( + /* [in] */ HRESULT hrReason) = 0; + + virtual HRESULT STDMETHODCALLTYPE ScriptCompiled( + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_SCRIPT_TYPE type, + /* [in] */ __RPC__in_opt IUnknown *pIDebugDocumentContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE FunctionCompiled( + /* [in] */ PROFILER_TOKEN functionId, + /* [in] */ PROFILER_TOKEN scriptId, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionName, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionNameHint, + /* [in] */ __RPC__in_opt IUnknown *pIDebugDocumentContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnFunctionEnter( + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_TOKEN functionId) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnFunctionExit( + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_TOKEN functionId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptProfilerCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptProfilerCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptProfilerCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptProfilerCallback * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IActiveScriptProfilerCallback * This, + /* [in] */ DWORD dwContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, Shutdown) + HRESULT ( STDMETHODCALLTYPE *Shutdown )( + __RPC__in IActiveScriptProfilerCallback * This, + /* [in] */ HRESULT hrReason); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, ScriptCompiled) + HRESULT ( STDMETHODCALLTYPE *ScriptCompiled )( + __RPC__in IActiveScriptProfilerCallback * This, + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_SCRIPT_TYPE type, + /* [in] */ __RPC__in_opt IUnknown *pIDebugDocumentContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, FunctionCompiled) + HRESULT ( STDMETHODCALLTYPE *FunctionCompiled )( + __RPC__in IActiveScriptProfilerCallback * This, + /* [in] */ PROFILER_TOKEN functionId, + /* [in] */ PROFILER_TOKEN scriptId, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionName, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionNameHint, + /* [in] */ __RPC__in_opt IUnknown *pIDebugDocumentContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, OnFunctionEnter) + HRESULT ( STDMETHODCALLTYPE *OnFunctionEnter )( + __RPC__in IActiveScriptProfilerCallback * This, + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_TOKEN functionId); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, OnFunctionExit) + HRESULT ( STDMETHODCALLTYPE *OnFunctionExit )( + __RPC__in IActiveScriptProfilerCallback * This, + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_TOKEN functionId); + + END_INTERFACE + } IActiveScriptProfilerCallbackVtbl; + + interface IActiveScriptProfilerCallback + { + CONST_VTBL struct IActiveScriptProfilerCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptProfilerCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptProfilerCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptProfilerCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptProfilerCallback_Initialize(This,dwContext) \ + ( (This)->lpVtbl -> Initialize(This,dwContext) ) + +#define IActiveScriptProfilerCallback_Shutdown(This,hrReason) \ + ( (This)->lpVtbl -> Shutdown(This,hrReason) ) + +#define IActiveScriptProfilerCallback_ScriptCompiled(This,scriptId,type,pIDebugDocumentContext) \ + ( (This)->lpVtbl -> ScriptCompiled(This,scriptId,type,pIDebugDocumentContext) ) + +#define IActiveScriptProfilerCallback_FunctionCompiled(This,functionId,scriptId,pwszFunctionName,pwszFunctionNameHint,pIDebugDocumentContext) \ + ( (This)->lpVtbl -> FunctionCompiled(This,functionId,scriptId,pwszFunctionName,pwszFunctionNameHint,pIDebugDocumentContext) ) + +#define IActiveScriptProfilerCallback_OnFunctionEnter(This,scriptId,functionId) \ + ( (This)->lpVtbl -> OnFunctionEnter(This,scriptId,functionId) ) + +#define IActiveScriptProfilerCallback_OnFunctionExit(This,scriptId,functionId) \ + ( (This)->lpVtbl -> OnFunctionExit(This,scriptId,functionId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptProfilerCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerCallback2_INTERFACE_DEFINED__ +#define __IActiveScriptProfilerCallback2_INTERFACE_DEFINED__ + +/* interface IActiveScriptProfilerCallback2 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptProfilerCallback2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("31B7F8AD-A637-409C-B22F-040995B6103D") + IActiveScriptProfilerCallback2 : public IActiveScriptProfilerCallback + { + public: + virtual HRESULT STDMETHODCALLTYPE OnFunctionEnterByName( + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionName, + /* [in] */ PROFILER_SCRIPT_TYPE type) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnFunctionExitByName( + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionName, + /* [in] */ PROFILER_SCRIPT_TYPE type) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptProfilerCallback2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptProfilerCallback2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptProfilerCallback2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptProfilerCallback2 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IActiveScriptProfilerCallback2 * This, + /* [in] */ DWORD dwContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, Shutdown) + HRESULT ( STDMETHODCALLTYPE *Shutdown )( + __RPC__in IActiveScriptProfilerCallback2 * This, + /* [in] */ HRESULT hrReason); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, ScriptCompiled) + HRESULT ( STDMETHODCALLTYPE *ScriptCompiled )( + __RPC__in IActiveScriptProfilerCallback2 * This, + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_SCRIPT_TYPE type, + /* [in] */ __RPC__in_opt IUnknown *pIDebugDocumentContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, FunctionCompiled) + HRESULT ( STDMETHODCALLTYPE *FunctionCompiled )( + __RPC__in IActiveScriptProfilerCallback2 * This, + /* [in] */ PROFILER_TOKEN functionId, + /* [in] */ PROFILER_TOKEN scriptId, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionName, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionNameHint, + /* [in] */ __RPC__in_opt IUnknown *pIDebugDocumentContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, OnFunctionEnter) + HRESULT ( STDMETHODCALLTYPE *OnFunctionEnter )( + __RPC__in IActiveScriptProfilerCallback2 * This, + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_TOKEN functionId); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, OnFunctionExit) + HRESULT ( STDMETHODCALLTYPE *OnFunctionExit )( + __RPC__in IActiveScriptProfilerCallback2 * This, + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_TOKEN functionId); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback2, OnFunctionEnterByName) + HRESULT ( STDMETHODCALLTYPE *OnFunctionEnterByName )( + __RPC__in IActiveScriptProfilerCallback2 * This, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionName, + /* [in] */ PROFILER_SCRIPT_TYPE type); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback2, OnFunctionExitByName) + HRESULT ( STDMETHODCALLTYPE *OnFunctionExitByName )( + __RPC__in IActiveScriptProfilerCallback2 * This, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionName, + /* [in] */ PROFILER_SCRIPT_TYPE type); + + END_INTERFACE + } IActiveScriptProfilerCallback2Vtbl; + + interface IActiveScriptProfilerCallback2 + { + CONST_VTBL struct IActiveScriptProfilerCallback2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptProfilerCallback2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptProfilerCallback2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptProfilerCallback2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptProfilerCallback2_Initialize(This,dwContext) \ + ( (This)->lpVtbl -> Initialize(This,dwContext) ) + +#define IActiveScriptProfilerCallback2_Shutdown(This,hrReason) \ + ( (This)->lpVtbl -> Shutdown(This,hrReason) ) + +#define IActiveScriptProfilerCallback2_ScriptCompiled(This,scriptId,type,pIDebugDocumentContext) \ + ( (This)->lpVtbl -> ScriptCompiled(This,scriptId,type,pIDebugDocumentContext) ) + +#define IActiveScriptProfilerCallback2_FunctionCompiled(This,functionId,scriptId,pwszFunctionName,pwszFunctionNameHint,pIDebugDocumentContext) \ + ( (This)->lpVtbl -> FunctionCompiled(This,functionId,scriptId,pwszFunctionName,pwszFunctionNameHint,pIDebugDocumentContext) ) + +#define IActiveScriptProfilerCallback2_OnFunctionEnter(This,scriptId,functionId) \ + ( (This)->lpVtbl -> OnFunctionEnter(This,scriptId,functionId) ) + +#define IActiveScriptProfilerCallback2_OnFunctionExit(This,scriptId,functionId) \ + ( (This)->lpVtbl -> OnFunctionExit(This,scriptId,functionId) ) + + +#define IActiveScriptProfilerCallback2_OnFunctionEnterByName(This,pwszFunctionName,type) \ + ( (This)->lpVtbl -> OnFunctionEnterByName(This,pwszFunctionName,type) ) + +#define IActiveScriptProfilerCallback2_OnFunctionExitByName(This,pwszFunctionName,type) \ + ( (This)->lpVtbl -> OnFunctionExitByName(This,pwszFunctionName,type) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptProfilerCallback2_INTERFACE_DEFINED__ */ + + +#ifndef __IActiveScriptProfilerCallback3_INTERFACE_DEFINED__ +#define __IActiveScriptProfilerCallback3_INTERFACE_DEFINED__ + +/* interface IActiveScriptProfilerCallback3 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IActiveScriptProfilerCallback3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6ac5ad25-2037-4687-91df-b59979d93d73") + IActiveScriptProfilerCallback3 : public IActiveScriptProfilerCallback2 + { + public: + virtual HRESULT STDMETHODCALLTYPE SetWebWorkerId( + /* [in] */ DWORD webWorkerId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IActiveScriptProfilerCallback3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IActiveScriptProfilerCallback3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IActiveScriptProfilerCallback3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IActiveScriptProfilerCallback3 * This); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IActiveScriptProfilerCallback3 * This, + /* [in] */ DWORD dwContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, Shutdown) + HRESULT ( STDMETHODCALLTYPE *Shutdown )( + __RPC__in IActiveScriptProfilerCallback3 * This, + /* [in] */ HRESULT hrReason); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, ScriptCompiled) + HRESULT ( STDMETHODCALLTYPE *ScriptCompiled )( + __RPC__in IActiveScriptProfilerCallback3 * This, + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_SCRIPT_TYPE type, + /* [in] */ __RPC__in_opt IUnknown *pIDebugDocumentContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, FunctionCompiled) + HRESULT ( STDMETHODCALLTYPE *FunctionCompiled )( + __RPC__in IActiveScriptProfilerCallback3 * This, + /* [in] */ PROFILER_TOKEN functionId, + /* [in] */ PROFILER_TOKEN scriptId, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionName, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionNameHint, + /* [in] */ __RPC__in_opt IUnknown *pIDebugDocumentContext); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, OnFunctionEnter) + HRESULT ( STDMETHODCALLTYPE *OnFunctionEnter )( + __RPC__in IActiveScriptProfilerCallback3 * This, + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_TOKEN functionId); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback, OnFunctionExit) + HRESULT ( STDMETHODCALLTYPE *OnFunctionExit )( + __RPC__in IActiveScriptProfilerCallback3 * This, + /* [in] */ PROFILER_TOKEN scriptId, + /* [in] */ PROFILER_TOKEN functionId); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback2, OnFunctionEnterByName) + HRESULT ( STDMETHODCALLTYPE *OnFunctionEnterByName )( + __RPC__in IActiveScriptProfilerCallback3 * This, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionName, + /* [in] */ PROFILER_SCRIPT_TYPE type); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback2, OnFunctionExitByName) + HRESULT ( STDMETHODCALLTYPE *OnFunctionExitByName )( + __RPC__in IActiveScriptProfilerCallback3 * This, + /* [string][in] */ __RPC__in_string const WCHAR *pwszFunctionName, + /* [in] */ PROFILER_SCRIPT_TYPE type); + + DECLSPEC_XFGVIRT(IActiveScriptProfilerCallback3, SetWebWorkerId) + HRESULT ( STDMETHODCALLTYPE *SetWebWorkerId )( + __RPC__in IActiveScriptProfilerCallback3 * This, + /* [in] */ DWORD webWorkerId); + + END_INTERFACE + } IActiveScriptProfilerCallback3Vtbl; + + interface IActiveScriptProfilerCallback3 + { + CONST_VTBL struct IActiveScriptProfilerCallback3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IActiveScriptProfilerCallback3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IActiveScriptProfilerCallback3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IActiveScriptProfilerCallback3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IActiveScriptProfilerCallback3_Initialize(This,dwContext) \ + ( (This)->lpVtbl -> Initialize(This,dwContext) ) + +#define IActiveScriptProfilerCallback3_Shutdown(This,hrReason) \ + ( (This)->lpVtbl -> Shutdown(This,hrReason) ) + +#define IActiveScriptProfilerCallback3_ScriptCompiled(This,scriptId,type,pIDebugDocumentContext) \ + ( (This)->lpVtbl -> ScriptCompiled(This,scriptId,type,pIDebugDocumentContext) ) + +#define IActiveScriptProfilerCallback3_FunctionCompiled(This,functionId,scriptId,pwszFunctionName,pwszFunctionNameHint,pIDebugDocumentContext) \ + ( (This)->lpVtbl -> FunctionCompiled(This,functionId,scriptId,pwszFunctionName,pwszFunctionNameHint,pIDebugDocumentContext) ) + +#define IActiveScriptProfilerCallback3_OnFunctionEnter(This,scriptId,functionId) \ + ( (This)->lpVtbl -> OnFunctionEnter(This,scriptId,functionId) ) + +#define IActiveScriptProfilerCallback3_OnFunctionExit(This,scriptId,functionId) \ + ( (This)->lpVtbl -> OnFunctionExit(This,scriptId,functionId) ) + + +#define IActiveScriptProfilerCallback3_OnFunctionEnterByName(This,pwszFunctionName,type) \ + ( (This)->lpVtbl -> OnFunctionEnterByName(This,pwszFunctionName,type) ) + +#define IActiveScriptProfilerCallback3_OnFunctionExitByName(This,pwszFunctionName,type) \ + ( (This)->lpVtbl -> OnFunctionExitByName(This,pwszFunctionName,type) ) + + +#define IActiveScriptProfilerCallback3_SetWebWorkerId(This,webWorkerId) \ + ( (This)->lpVtbl -> SetWebWorkerId(This,webWorkerId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IActiveScriptProfilerCallback3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_activprof_0000_0009 */ +/* [local] */ + + +#endif // __ActivProf_h + +// Restore the previous setting for C4201 compiler warning +#pragma warning(pop) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_activprof_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_activprof_0000_0009_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/activprof.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activprof.idl new file mode 100644 index 0000000000000000000000000000000000000000..e1deaac9bdfb608367297fe0190121114a0a6e2c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/activprof.idl @@ -0,0 +1,378 @@ +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// ActivProf.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 2000 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("//") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("// Disable /W4 compiler warning C4201: nameless struct/union") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4201) // Disable C4201: nameless struct/union") +cpp_quote(" ") // Blank space + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("//") +cpp_quote("// Declarations for ActiveX Scripting profiling.") +cpp_quote("//") +cpp_quote("") +cpp_quote("const HRESULT ACTIVPROF_E_PROFILER_PRESENT = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0200);") +cpp_quote("const HRESULT ACTIVPROF_E_PROFILER_ABSENT = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0201);") +cpp_quote("const HRESULT ACTIVPROF_E_UNABLE_TO_APPLY_ACTION = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0202);") +cpp_quote("const ULONG PROFILER_HEAP_OBJECT_NAME_ID_UNAVAILABLE=(ULONG)-1;") +cpp_quote("") +cpp_quote("#ifndef __ActivProf_h") +cpp_quote("#define __ActivProf_h") +cpp_quote("") + +import "unknwn.idl"; + +cpp_quote("/* GUIDs") +cpp_quote(" ********/") +cpp_quote("") + +cpp_quote("#ifndef _NO_SCRIPT_GUIDS") + +cpp_quote("// {32E4694E-0D37-419B-B93D-FA20DED6E8EA}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptProfilerHeapEnum, 0x32e4694e, 0xd37, 0x419b, 0xb9, 0x3d, 0xfa, 0x20, 0xde, 0xd6, 0xe8, 0xea);") +cpp_quote("// {0B403015-F381-4023-A5D0-6FED076DE716}") +cpp_quote("DEFINE_GUID(IID_IActiveScriptProfilerControl3, 0xb403015, 0xf381, 0x4023, 0xa5, 0xd0, 0x6f, 0xed, 0x7, 0x6d, 0xe7, 0x16);") + +cpp_quote("#endif // _NO_SCRIPT_GUIDS") +cpp_quote("") + +typedef enum { + PROFILER_SCRIPT_TYPE_USER, + PROFILER_SCRIPT_TYPE_DYNAMIC, + PROFILER_SCRIPT_TYPE_NATIVE, + PROFILER_SCRIPT_TYPE_DOM +} PROFILER_SCRIPT_TYPE; + +typedef enum { + PROFILER_EVENT_MASK_TRACE_SCRIPT_FUNCTION_CALL = 0x00000001, + PROFILER_EVENT_MASK_TRACE_NATIVE_FUNCTION_CALL = 0x00000002, + PROFILER_EVENT_MASK_TRACE_DOM_FUNCTION_CALL = 0x00000004, + PROFILER_EVENT_MASK_TRACE_ALL = PROFILER_EVENT_MASK_TRACE_SCRIPT_FUNCTION_CALL | + PROFILER_EVENT_MASK_TRACE_NATIVE_FUNCTION_CALL, + PROFILER_EVENT_MASK_TRACE_ALL_WITH_DOM = PROFILER_EVENT_MASK_TRACE_ALL | + PROFILER_EVENT_MASK_TRACE_DOM_FUNCTION_CALL +} PROFILER_EVENT_MASK; + +typedef LONG PROFILER_TOKEN; + +[ + object, + uuid(784b5ff0-69b0-47d1-a7dc-2518f4230e90), + pointer_default(unique) +] +interface IActiveScriptProfilerControl : IUnknown +{ + HRESULT StartProfiling([in] REFCLSID clsidProfilerObject, + [in] DWORD dwEventMask, + [in] DWORD dwContext); + HRESULT SetProfilerEventMask([in] DWORD dwEventMask); + HRESULT StopProfiling([in] HRESULT hrShutdownReason); +} + +[ + object, + uuid(47810165-498F-40be-94F1-653557E9E7DA), + pointer_default(unique) +] +interface IActiveScriptProfilerControl2 : IActiveScriptProfilerControl +{ + HRESULT CompleteProfilerStart(); + HRESULT PrepareProfilerStop(); +} + +typedef DWORD_PTR PROFILER_HEAP_OBJECT_ID; +typedef UINT PROFILER_HEAP_OBJECT_NAME_ID; +typedef void* PROFILER_EXTERNAL_OBJECT_ADDRESS; + +typedef [v1_enum] enum { + PROFILER_HEAP_OBJECT_FLAGS_NEW_OBJECT = 0x00000001, + PROFILER_HEAP_OBJECT_FLAGS_IS_ROOT = 0x00000002, + PROFILER_HEAP_OBJECT_FLAGS_SITE_CLOSED = 0x00000004, + PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL = 0x00000008, + PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL_UNKNOWN = 0x00000010, + PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL_DISPATCH = 0x00000020, + PROFILER_HEAP_OBJECT_FLAGS_SIZE_APPROXIMATE = 0x00000040, + PROFILER_HEAP_OBJECT_FLAGS_SIZE_UNAVAILABLE = 0x00000080, + PROFILER_HEAP_OBJECT_FLAGS_NEW_STATE_UNAVAILABLE = 0x00000100, + PROFILER_HEAP_OBJECT_FLAGS_WINRT_INSTANCE = 0x00000200, + PROFILER_HEAP_OBJECT_FLAGS_WINRT_RUNTIMECLASS = 0x00000400, + PROFILER_HEAP_OBJECT_FLAGS_WINRT_DELEGATE = 0x00000800, + PROFILER_HEAP_OBJECT_FLAGS_WINRT_NAMESPACE = 0x00001000, +} PROFILER_HEAP_OBJECT_FLAGS; + +typedef [v1_enum] enum { + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_PROTOTYPE = 0x00000001, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_FUNCTION_NAME = 0x00000002, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_SCOPE_LIST = 0x00000003, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_INTERNAL_PROPERTY = 0x00000004, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_NAME_PROPERTIES = 0x00000005, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_INDEX_PROPERTIES = 0x00000006, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_ELEMENT_ATTRIBUTES_SIZE = 0x00000007, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_ELEMENT_TEXT_CHILDREN_SIZE = 0x00000008, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_RELATIONSHIPS = 0x00000009, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_WINRTEVENTS = 0x0000000A, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_WEAKMAP_COLLECTION_LIST = 0x0000000B, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_MAP_COLLECTION_LIST = 0x0000000C, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_SET_COLLECTION_LIST = 0x0000000D, + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_MAX_VALUE = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_SET_COLLECTION_LIST +} PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE; + +typedef [v1_enum] enum { + PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_NONE = 0x00000000, + PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_IS_GET_ACCESSOR = 0x00010000, + PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_IS_SET_ACCESSOR = 0x00020000, + PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_LET_VARIABLE = 0x00040000, + PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_CONST_VARIABLE = 0x00080000, +} PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS; + +typedef [v1_enum] enum { + // Default enumeration behavior. + PROFILER_HEAP_ENUM_FLAGS_NONE = 0x00000000, + + // Enables functionality where PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS are stored in the high + // 16 bits of the PROFILER_HEAP_OBJECT_RELATIONSHIP.relationshipInfo member. + PROFILER_HEAP_ENUM_FLAGS_STORE_RELATIONSHIP_FLAGS = 0x00000001, + + // Used to display substring correctly + PROFILER_HEAP_ENUM_FLAGS_SUBSTRINGS = 0x00000002, + + PROFILER_HEAP_ENUM_FLAGS_RELATIONSHIP_SUBSTRINGS = PROFILER_HEAP_ENUM_FLAGS_STORE_RELATIONSHIP_FLAGS | + PROFILER_HEAP_ENUM_FLAGS_SUBSTRINGS, +} PROFILER_HEAP_ENUM_FLAGS; + +// PROFILER_HEAP_OBJECT_SCOPE_LIST is associated with function objects only. The scope list represents +// the closure for the function as a list scopes where each scope is a heap object with associated property list +// representing variables in each given scope. +// Note: In some cases, the names of objects in that scope might not be available, only their ids. + +typedef struct _PROFILER_HEAP_OBJECT_SCOPE_LIST +{ + UINT count; + [size_is(count)] PROFILER_HEAP_OBJECT_ID scopes[]; +} PROFILER_HEAP_OBJECT_SCOPE_LIST; + +typedef [v1_enum] enum { + PROFILER_PROPERTY_TYPE_NUMBER = 0x01, + PROFILER_PROPERTY_TYPE_STRING = 0x02, + PROFILER_PROPERTY_TYPE_HEAP_OBJECT = 0x03, + PROFILER_PROPERTY_TYPE_EXTERNAL_OBJECT = 0x04, + PROFILER_PROPERTY_TYPE_BSTR = 0x5, + PROFILER_PROPERTY_TYPE_SUBSTRING = 0x06, +} PROFILER_RELATIONSHIP_INFO; + +typedef struct _PROFILER_PROPERTY_TYPE_SUBSTRING_INFO +{ + UINT length; + LPCWSTR value; +} PROFILER_PROPERTY_TYPE_SUBSTRING_INFO; + + +typedef struct _PROFILER_HEAP_OBJECT_RELATIONSHIP +{ + PROFILER_HEAP_OBJECT_NAME_ID relationshipId; + PROFILER_RELATIONSHIP_INFO relationshipInfo; + [switch_type(PROFILER_RELATIONSHIP_INFO), switch_is(relationshipInfo)] union + { + [case(PROFILER_PROPERTY_TYPE_NUMBER)] double numberValue; + [case(PROFILER_PROPERTY_TYPE_STRING)] LPCWSTR stringValue; + [case(PROFILER_PROPERTY_TYPE_BSTR)] BSTR bstrValue; + [case(PROFILER_PROPERTY_TYPE_HEAP_OBJECT)] PROFILER_HEAP_OBJECT_ID objectId; + [case(PROFILER_PROPERTY_TYPE_EXTERNAL_OBJECT)] PROFILER_EXTERNAL_OBJECT_ADDRESS externalObjectAddress; + [case(PROFILER_PROPERTY_TYPE_SUBSTRING)] PROFILER_PROPERTY_TYPE_SUBSTRING_INFO* subString; + }; +} PROFILER_HEAP_OBJECT_RELATIONSHIP; + +typedef struct _PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST +{ + UINT count; + [size_is(count)] PROFILER_HEAP_OBJECT_RELATIONSHIP elements[]; +} PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST; + +typedef struct _PROFILER_HEAP_OBJECT_OPTIONAL_INFO +{ + PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE infoType; + [switch_type(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE), switch_is(infoType)] union + { + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_PROTOTYPE)] PROFILER_HEAP_OBJECT_ID prototype; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_FUNCTION_NAME)] LPCWSTR functionName; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_ELEMENT_ATTRIBUTES_SIZE)] UINT elementAttributesSize; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_ELEMENT_TEXT_CHILDREN_SIZE)] UINT elementTextChildrenSize; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_SCOPE_LIST)] PROFILER_HEAP_OBJECT_SCOPE_LIST* scopeList; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_INTERNAL_PROPERTY)] PROFILER_HEAP_OBJECT_RELATIONSHIP* internalProperty; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_NAME_PROPERTIES)] PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST* namePropertyList; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_INDEX_PROPERTIES)] PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST* indexPropertyList; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_RELATIONSHIPS)] PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST* relationshipList; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_WINRTEVENTS)] PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST* eventList; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_WEAKMAP_COLLECTION_LIST)] PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST* weakMapCollectionList; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_MAP_COLLECTION_LIST)] PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST* mapCollectionList; + [case(PROFILER_HEAP_OBJECT_OPTIONAL_INFO_SET_COLLECTION_LIST)] PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST* setCollectionList; + }; +} PROFILER_HEAP_OBJECT_OPTIONAL_INFO; + +/* + * Represents one object in the GC heap + */ +typedef struct _PROFILER_HEAP_OBJECT +{ + UINT size; + union { + PROFILER_HEAP_OBJECT_ID objectId; + PROFILER_EXTERNAL_OBJECT_ADDRESS externalObjectAddress; + }; + PROFILER_HEAP_OBJECT_NAME_ID typeNameId; + ULONG flags; // PROFILER_HEAP_OBJECT_FLAGS + USHORT unused; + USHORT optionalInfoCount; +} PROFILER_HEAP_OBJECT; + +[ + object, + uuid(32E4694E-0D37-419B-B93D-FA20DED6E8EA), + local, + pointer_default(unique) +] +interface IActiveScriptProfilerHeapEnum : IUnknown { + + // Note: Caller should not free the returned memory assigned to each array element. Rather, should call + // IActiveScriptProfilerHeapEnum:FreeObjectAndOptionalInfo + HRESULT Next ( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched)] PROFILER_HEAP_OBJECT** heapObjects, + [out] ULONG *pceltFetched); + + // Note: Caller should not free the returned memory assigned to each array element. Rather, should call + // IActiveScriptProfilerHeapEnum:FreeObjectAndOptionalInfo + HRESULT GetOptionalInfo ( + [in] PROFILER_HEAP_OBJECT* heapObject, + [in] ULONG celt, + [out, size_is(celt)] PROFILER_HEAP_OBJECT_OPTIONAL_INFO* optionalInfo); + + HRESULT FreeObjectAndOptionalInfo ( + [in] ULONG celt, + [in, size_is(celt)] PROFILER_HEAP_OBJECT** heapObjects); + + // Note: The returned embedded pointers are not CoTaskMemAllocated. Caller should not + // explicitly free them. + HRESULT GetNameIdMap ( + [out, size_is(,*pcelt)] LPCWSTR* pNameList[], + [out] UINT *pcelt); +}; + +[ + object, + uuid(0B403015-F381-4023-A5D0-6FED076DE716), + pointer_default(unique) +] +interface IActiveScriptProfilerControl3 : IActiveScriptProfilerControl2 +{ + HRESULT EnumHeap([out] IActiveScriptProfilerHeapEnum** ppEnum); +} + +typedef [v1_enum] enum { + PROFILER_HEAP_SUMMARY_VERSION_1 = 0x00000001, +} PROFILER_HEAP_SUMMARY_VERSION; + +typedef struct _PROFILER_HEAP_SUMMARY +{ + PROFILER_HEAP_SUMMARY_VERSION version; + UINT totalHeapSize; +} PROFILER_HEAP_SUMMARY; + +[ + object, + uuid(160F94FD-9DBC-40D4-9EAC-2B71DB3132F4), + pointer_default(unique) +] +interface IActiveScriptProfilerControl4 : IActiveScriptProfilerControl3 +{ + HRESULT SummarizeHeap([in, out] PROFILER_HEAP_SUMMARY* heapSummary); +} + +[ + object, + uuid(1C01A2D1-8F0F-46A5-9720-0D7ED2C62F0A), + pointer_default(unique) +] +interface IActiveScriptProfilerControl5 : IActiveScriptProfilerControl4 +{ + HRESULT EnumHeap2([in] PROFILER_HEAP_ENUM_FLAGS enumFlags, [out] IActiveScriptProfilerHeapEnum** ppEnum); +} + +[ + object, + uuid(740eca23-7d9d-42e5-ba9d-f8b24b1c7a9b), + pointer_default(unique) +] +interface IActiveScriptProfilerCallback : IUnknown +{ + HRESULT Initialize([in] DWORD dwContext); + + HRESULT Shutdown([in] HRESULT hrReason); + + HRESULT ScriptCompiled([in] PROFILER_TOKEN scriptId, + [in] PROFILER_SCRIPT_TYPE type, + [in] IUnknown *pIDebugDocumentContext); + + HRESULT FunctionCompiled([in] PROFILER_TOKEN functionId, + [in] PROFILER_TOKEN scriptId, + [in] [string] const WCHAR *pwszFunctionName, + [in] [string] const WCHAR *pwszFunctionNameHint, + [in] IUnknown *pIDebugDocumentContext); + + HRESULT OnFunctionEnter([in] PROFILER_TOKEN scriptId, + [in] PROFILER_TOKEN functionId); + + HRESULT OnFunctionExit([in] PROFILER_TOKEN scriptId, + [in] PROFILER_TOKEN functionId); +}; + +[ + object, + uuid(31B7F8AD-A637-409C-B22F-040995B6103D), + pointer_default(unique) +] +interface IActiveScriptProfilerCallback2 : IActiveScriptProfilerCallback +{ + HRESULT OnFunctionEnterByName([in] [string] const WCHAR *pwszFunctionName, + [in] PROFILER_SCRIPT_TYPE type); + + HRESULT OnFunctionExitByName([in] [string] const WCHAR *pwszFunctionName, + [in] PROFILER_SCRIPT_TYPE type); +}; + +[ + object, + uuid(6ac5ad25-2037-4687-91df-b59979d93d73), + pointer_default(unique) +] +interface IActiveScriptProfilerCallback3 : IActiveScriptProfilerCallback2 +{ + HRESULT SetWebWorkerId([in] DWORD webWorkerId); +}; + +cpp_quote("") +cpp_quote("#endif // __ActivProf_h") +cpp_quote("") + +// +// Restore the previous setting for C4201 compiler warning +// +cpp_quote("// Restore the previous setting for C4201 compiler warning") +cpp_quote("#pragma warning(pop)") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adc.h new file mode 100644 index 0000000000000000000000000000000000000000..454bd4c1fbdce1b1ea7e823331e78ebdb38a98b7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adc.h @@ -0,0 +1,113 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//----------------------------------------------------------------------------- +// +// File: adc.h +// +// Contents: Adc external constants and GUIDS +// +// Comments: +// +//----------------------------------------------------------------------------- + +#ifndef ADC_INCLUDED +#define ADC_INCLUDED +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#undef ADCDECLSPEC +#if _MSC_VER >= 1100 && (!defined(SHx) || (defined(SHx) && _MSC_VER >= 1200)) +#define ADCDECLSPEC __declspec(selectany) +#else +#define ADCDECLSPEC +#endif //_MSC_VER + +extern const ADCDECLSPEC CLSID CLSID_FoxRowset = { 0x3ff292b6, 0xb204, 0x11cf, { 0x8d, 0x23, 0, 0xaa, 0, 0x5f, 0xfe, 0x58 } }; +extern const ADCDECLSPEC GUID DBPROPSET_ADC = { 0xb68e3cc1, 0x6deb, 0x11d0, { 0x8d, 0xf6, 0x00, 0xaa, 0x00, 0x5f, 0xfe, 0x58 } }; +extern const ADCDECLSPEC GUID IID_IAsyncAllowed = { 0xf5f2893a, 0xba9e, 0x11d0, { 0xab, 0xb9, 0x0, 0xc0, 0x4f, 0xc2, 0x9f, 0x8f } }; +extern const ADCDECLSPEC IID IID_IRowsetADCExtensions = { 0xF17324c4, 0x68E0, 0x11D0, { 0xAD, 0x45, 0x00, 0xC0, 0x4F, 0xC2, 0x98, 0x63 } }; +extern const ADCDECLSPEC IID IID_IUpdateInfo = { 0xa0385420, 0x62b8, 0x11d1, { 0x9a, 0x6, 0x0, 0xa0, 0xc9, 0x3, 0xaa, 0x45 } }; +extern const ADCDECLSPEC IID IID_IRowsetSynchronize = { 0x1be41e60, 0x807a, 0x11d1, { 0x9a, 0x14, 0x0, 0xa0, 0xc9, 0x3, 0xaa, 0x45 } }; +extern const ADCDECLSPEC IID IID_IRowsetProperties = { 0x1e837070, 0xbcfc, 0x11d1, { 0x9a, 0x2c, 0x0, 0xa0, 0xc9, 0x3, 0xaa, 0x45 } }; + +enum ADCPROPENUM + { DBPROP_ADC_ASYNCHFETCHSIZE = 3, + DBPROP_ADC_BATCHSIZE = 4, + DBPROP_ADC_UPDATECRITERIA = 5, +// dropping support for the UPDATEOPERTION property, but should not reuse the number +// DBPROP_ADC_UPDATEOPERATION = 6, + DBPROP_ADC_ASYNCHPREFETCHSIZE = 7, + DBPROP_ADC_ASYNCHTHREADPRIORITY = 8, + DBPROP_ADC_CACHECHILDROWS = 9, + DBPROP_ADC_MAINTAINCHANGESTATUS = 10, + DBPROP_ADC_AUTORECALC = 11, + DBPROP_ADC_UNIQUETABLE = 13, + DBPROP_ADC_UNIQUESCHEMA = 14, + DBPROP_ADC_UNIQUECATALOG = 15, + DBPROP_ADC_CUSTOMRESYNCH = 16, + DBPROP_ADC_CEVER = 17, + DBPROP_ADC_RESHAPENAME = 18, + DBPROP_ADC_UPDATERESYNC = 19, +// removing SaveMode, but we should not reuse the number +// DBPROP_ADC_SAVEMODE = 20, + DBPROP_ADC_BACKINGSTORE = 21, + DBPROP_ADC_RELEASESHAPEONDISCONNECT = 22 + }; + + +// these enums are defined in both adc.h and adoint.h +// do not re define them here if adoint.h has already been included +#ifndef _COMMON_ADC_AND_ADO_PROPS_ +#define _COMMON_ADC_AND_ADO_PROPS_ + +enum ADCPROP_UPDATECRITERIA_ENUM + { adCriteriaKey = 0, + adCriteriaAllCols = 1, + adCriteriaUpdCols = 2, + adCriteriaTimeStamp = 3 + }; + +enum ADCPROP_ASYNCTHREADPRIORITY_ENUM + { adPriorityLowest = 1, + adPriorityBelowNormal = 2, + adPriorityNormal = 3, + adPriorityAboveNormal = 4, + adPriorityHighest = 5 + }; + +enum ADCPROP_UPDATERESYNC_ENUM + { adResyncNone = 0, + adResyncAutoIncrement = 0x1, + adResyncConflicts = 0x2, + adResyncUpdates = 0x4, + adResyncInserts = 0x8, + adResyncAll = 0x0F + }; + +enum ADCPROP_AUTORECALC_ENUM + { + adRecalcUpFront = 0, + adRecalcAlways = 1 + }; + +#endif // _COMMON_ADC_AND_ADO_PROPS_ + +enum FOXROWSETPROPENUM +{ + DBPROP_FOXTABLENAME = 0xeeffL +}; + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // ADC_INCLUDED + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adhoc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adhoc.h new file mode 100644 index 0000000000000000000000000000000000000000..4f0b80fcebf093a88f4af5e86bbbaedcf731da66 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adhoc.h @@ -0,0 +1,1521 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __adhoc_h__ +#define __adhoc_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDot11AdHocManager_FWD_DEFINED__ +#define __IDot11AdHocManager_FWD_DEFINED__ +typedef interface IDot11AdHocManager IDot11AdHocManager; + +#endif /* __IDot11AdHocManager_FWD_DEFINED__ */ + + +#ifndef __IDot11AdHocManagerNotificationSink_FWD_DEFINED__ +#define __IDot11AdHocManagerNotificationSink_FWD_DEFINED__ +typedef interface IDot11AdHocManagerNotificationSink IDot11AdHocManagerNotificationSink; + +#endif /* __IDot11AdHocManagerNotificationSink_FWD_DEFINED__ */ + + +#ifndef __IEnumDot11AdHocNetworks_FWD_DEFINED__ +#define __IEnumDot11AdHocNetworks_FWD_DEFINED__ +typedef interface IEnumDot11AdHocNetworks IEnumDot11AdHocNetworks; + +#endif /* __IEnumDot11AdHocNetworks_FWD_DEFINED__ */ + + +#ifndef __IDot11AdHocNetwork_FWD_DEFINED__ +#define __IDot11AdHocNetwork_FWD_DEFINED__ +typedef interface IDot11AdHocNetwork IDot11AdHocNetwork; + +#endif /* __IDot11AdHocNetwork_FWD_DEFINED__ */ + + +#ifndef __IDot11AdHocNetworkNotificationSink_FWD_DEFINED__ +#define __IDot11AdHocNetworkNotificationSink_FWD_DEFINED__ +typedef interface IDot11AdHocNetworkNotificationSink IDot11AdHocNetworkNotificationSink; + +#endif /* __IDot11AdHocNetworkNotificationSink_FWD_DEFINED__ */ + + +#ifndef __IDot11AdHocInterface_FWD_DEFINED__ +#define __IDot11AdHocInterface_FWD_DEFINED__ +typedef interface IDot11AdHocInterface IDot11AdHocInterface; + +#endif /* __IDot11AdHocInterface_FWD_DEFINED__ */ + + +#ifndef __IEnumDot11AdHocInterfaces_FWD_DEFINED__ +#define __IEnumDot11AdHocInterfaces_FWD_DEFINED__ +typedef interface IEnumDot11AdHocInterfaces IEnumDot11AdHocInterfaces; + +#endif /* __IEnumDot11AdHocInterfaces_FWD_DEFINED__ */ + + +#ifndef __IEnumDot11AdHocSecuritySettings_FWD_DEFINED__ +#define __IEnumDot11AdHocSecuritySettings_FWD_DEFINED__ +typedef interface IEnumDot11AdHocSecuritySettings IEnumDot11AdHocSecuritySettings; + +#endif /* __IEnumDot11AdHocSecuritySettings_FWD_DEFINED__ */ + + +#ifndef __IDot11AdHocSecuritySettings_FWD_DEFINED__ +#define __IDot11AdHocSecuritySettings_FWD_DEFINED__ +typedef interface IDot11AdHocSecuritySettings IDot11AdHocSecuritySettings; + +#endif /* __IDot11AdHocSecuritySettings_FWD_DEFINED__ */ + + +#ifndef __IDot11AdHocInterfaceNotificationSink_FWD_DEFINED__ +#define __IDot11AdHocInterfaceNotificationSink_FWD_DEFINED__ +typedef interface IDot11AdHocInterfaceNotificationSink IDot11AdHocInterfaceNotificationSink; + +#endif /* __IDot11AdHocInterfaceNotificationSink_FWD_DEFINED__ */ + + +#ifndef __Dot11AdHocManager_FWD_DEFINED__ +#define __Dot11AdHocManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Dot11AdHocManager Dot11AdHocManager; +#else +typedef struct Dot11AdHocManager Dot11AdHocManager; +#endif /* __cplusplus */ + +#endif /* __Dot11AdHocManager_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_adhoc_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +EXTERN_C const CLSID CLSID_AdHocManager; + + + + + + + + + + +typedef /* [v1_enum] */ +enum tagDOT11_ADHOC_CIPHER_ALGORITHM + { + DOT11_ADHOC_CIPHER_ALGO_INVALID = -1, + DOT11_ADHOC_CIPHER_ALGO_NONE = 0, + DOT11_ADHOC_CIPHER_ALGO_CCMP = 0x4, + DOT11_ADHOC_CIPHER_ALGO_WEP = 0x101 + } DOT11_ADHOC_CIPHER_ALGORITHM; + +typedef /* [v1_enum] */ +enum tagDOT11_ADHOC_AUTH_ALGORITHM + { + DOT11_ADHOC_AUTH_ALGO_INVALID = -1, + DOT11_ADHOC_AUTH_ALGO_80211_OPEN = 1, + DOT11_ADHOC_AUTH_ALGO_RSNA_PSK = 7 + } DOT11_ADHOC_AUTH_ALGORITHM; + +typedef /* [v1_enum] */ +enum tagDOT11_ADHOC_NETWORK_CONNECTION_STATUS + { + DOT11_ADHOC_NETWORK_CONNECTION_STATUS_INVALID = 0, + DOT11_ADHOC_NETWORK_CONNECTION_STATUS_DISCONNECTED = 11, + DOT11_ADHOC_NETWORK_CONNECTION_STATUS_CONNECTING = 12, + DOT11_ADHOC_NETWORK_CONNECTION_STATUS_CONNECTED = 13, + DOT11_ADHOC_NETWORK_CONNECTION_STATUS_FORMED = 14 + } DOT11_ADHOC_NETWORK_CONNECTION_STATUS; + +typedef /* [v1_enum] */ +enum tagDOT11_ADHOC_CONNECT_FAIL_REASON + { + DOT11_ADHOC_CONNECT_FAIL_DOMAIN_MISMATCH = 0, + DOT11_ADHOC_CONNECT_FAIL_PASSPHRASE_MISMATCH = 1, + DOT11_ADHOC_CONNECT_FAIL_OTHER = 2 + } DOT11_ADHOC_CONNECT_FAIL_REASON; + + + +extern RPC_IF_HANDLE __MIDL_itf_adhoc_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_adhoc_0000_0000_v0_0_s_ifspec; + +#ifndef __IDot11AdHocManager_INTERFACE_DEFINED__ +#define __IDot11AdHocManager_INTERFACE_DEFINED__ + +/* interface IDot11AdHocManager */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDot11AdHocManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F10CC26-CF0D-42a0-ACBE-E2DE7007384D") + IDot11AdHocManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateNetwork( + /* [string][in] */ LPCWSTR Name, + /* [string][in] */ LPCWSTR Password, + /* [in] */ LONG GeographicalId, + /* [in] */ IDot11AdHocInterface *pInterface, + /* [in] */ IDot11AdHocSecuritySettings *pSecurity, + /* [in] */ GUID *pContextGuid, + /* [out] */ IDot11AdHocNetwork **pIAdHoc) = 0; + + virtual HRESULT STDMETHODCALLTYPE CommitCreatedNetwork( + /* [in] */ IDot11AdHocNetwork *pIAdHoc, + /* [in] */ BOOLEAN fSaveProfile, + /* [in] */ BOOLEAN fMakeSavedProfileUserSpecific) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIEnumDot11AdHocNetworks( + /* [in] */ GUID *pContextGuid, + /* [out] */ IEnumDot11AdHocNetworks **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIEnumDot11AdHocInterfaces( + /* [out] */ IEnumDot11AdHocInterfaces **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNetwork( + /* [in] */ GUID *NetworkSignature, + /* [out] */ IDot11AdHocNetwork **pNetwork) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDot11AdHocManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDot11AdHocManager * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDot11AdHocManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDot11AdHocManager * This); + + DECLSPEC_XFGVIRT(IDot11AdHocManager, CreateNetwork) + HRESULT ( STDMETHODCALLTYPE *CreateNetwork )( + IDot11AdHocManager * This, + /* [string][in] */ LPCWSTR Name, + /* [string][in] */ LPCWSTR Password, + /* [in] */ LONG GeographicalId, + /* [in] */ IDot11AdHocInterface *pInterface, + /* [in] */ IDot11AdHocSecuritySettings *pSecurity, + /* [in] */ GUID *pContextGuid, + /* [out] */ IDot11AdHocNetwork **pIAdHoc); + + DECLSPEC_XFGVIRT(IDot11AdHocManager, CommitCreatedNetwork) + HRESULT ( STDMETHODCALLTYPE *CommitCreatedNetwork )( + IDot11AdHocManager * This, + /* [in] */ IDot11AdHocNetwork *pIAdHoc, + /* [in] */ BOOLEAN fSaveProfile, + /* [in] */ BOOLEAN fMakeSavedProfileUserSpecific); + + DECLSPEC_XFGVIRT(IDot11AdHocManager, GetIEnumDot11AdHocNetworks) + HRESULT ( STDMETHODCALLTYPE *GetIEnumDot11AdHocNetworks )( + IDot11AdHocManager * This, + /* [in] */ GUID *pContextGuid, + /* [out] */ IEnumDot11AdHocNetworks **ppEnum); + + DECLSPEC_XFGVIRT(IDot11AdHocManager, GetIEnumDot11AdHocInterfaces) + HRESULT ( STDMETHODCALLTYPE *GetIEnumDot11AdHocInterfaces )( + IDot11AdHocManager * This, + /* [out] */ IEnumDot11AdHocInterfaces **ppEnum); + + DECLSPEC_XFGVIRT(IDot11AdHocManager, GetNetwork) + HRESULT ( STDMETHODCALLTYPE *GetNetwork )( + IDot11AdHocManager * This, + /* [in] */ GUID *NetworkSignature, + /* [out] */ IDot11AdHocNetwork **pNetwork); + + END_INTERFACE + } IDot11AdHocManagerVtbl; + + interface IDot11AdHocManager + { + CONST_VTBL struct IDot11AdHocManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDot11AdHocManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDot11AdHocManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDot11AdHocManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDot11AdHocManager_CreateNetwork(This,Name,Password,GeographicalId,pInterface,pSecurity,pContextGuid,pIAdHoc) \ + ( (This)->lpVtbl -> CreateNetwork(This,Name,Password,GeographicalId,pInterface,pSecurity,pContextGuid,pIAdHoc) ) + +#define IDot11AdHocManager_CommitCreatedNetwork(This,pIAdHoc,fSaveProfile,fMakeSavedProfileUserSpecific) \ + ( (This)->lpVtbl -> CommitCreatedNetwork(This,pIAdHoc,fSaveProfile,fMakeSavedProfileUserSpecific) ) + +#define IDot11AdHocManager_GetIEnumDot11AdHocNetworks(This,pContextGuid,ppEnum) \ + ( (This)->lpVtbl -> GetIEnumDot11AdHocNetworks(This,pContextGuid,ppEnum) ) + +#define IDot11AdHocManager_GetIEnumDot11AdHocInterfaces(This,ppEnum) \ + ( (This)->lpVtbl -> GetIEnumDot11AdHocInterfaces(This,ppEnum) ) + +#define IDot11AdHocManager_GetNetwork(This,NetworkSignature,pNetwork) \ + ( (This)->lpVtbl -> GetNetwork(This,NetworkSignature,pNetwork) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDot11AdHocManager_INTERFACE_DEFINED__ */ + + +#ifndef __IDot11AdHocManagerNotificationSink_INTERFACE_DEFINED__ +#define __IDot11AdHocManagerNotificationSink_INTERFACE_DEFINED__ + +/* interface IDot11AdHocManagerNotificationSink */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDot11AdHocManagerNotificationSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F10CC27-CF0D-42a0-ACBE-E2DE7007384D") + IDot11AdHocManagerNotificationSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnNetworkAdd( + /* [in] */ IDot11AdHocNetwork *pIAdHocNetwork) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnNetworkRemove( + /* [in] */ GUID *Signature) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnInterfaceAdd( + /* [in] */ IDot11AdHocInterface *pIAdHocInterface) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnInterfaceRemove( + /* [in] */ GUID *Signature) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDot11AdHocManagerNotificationSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDot11AdHocManagerNotificationSink * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDot11AdHocManagerNotificationSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDot11AdHocManagerNotificationSink * This); + + DECLSPEC_XFGVIRT(IDot11AdHocManagerNotificationSink, OnNetworkAdd) + HRESULT ( STDMETHODCALLTYPE *OnNetworkAdd )( + IDot11AdHocManagerNotificationSink * This, + /* [in] */ IDot11AdHocNetwork *pIAdHocNetwork); + + DECLSPEC_XFGVIRT(IDot11AdHocManagerNotificationSink, OnNetworkRemove) + HRESULT ( STDMETHODCALLTYPE *OnNetworkRemove )( + IDot11AdHocManagerNotificationSink * This, + /* [in] */ GUID *Signature); + + DECLSPEC_XFGVIRT(IDot11AdHocManagerNotificationSink, OnInterfaceAdd) + HRESULT ( STDMETHODCALLTYPE *OnInterfaceAdd )( + IDot11AdHocManagerNotificationSink * This, + /* [in] */ IDot11AdHocInterface *pIAdHocInterface); + + DECLSPEC_XFGVIRT(IDot11AdHocManagerNotificationSink, OnInterfaceRemove) + HRESULT ( STDMETHODCALLTYPE *OnInterfaceRemove )( + IDot11AdHocManagerNotificationSink * This, + /* [in] */ GUID *Signature); + + END_INTERFACE + } IDot11AdHocManagerNotificationSinkVtbl; + + interface IDot11AdHocManagerNotificationSink + { + CONST_VTBL struct IDot11AdHocManagerNotificationSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDot11AdHocManagerNotificationSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDot11AdHocManagerNotificationSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDot11AdHocManagerNotificationSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDot11AdHocManagerNotificationSink_OnNetworkAdd(This,pIAdHocNetwork) \ + ( (This)->lpVtbl -> OnNetworkAdd(This,pIAdHocNetwork) ) + +#define IDot11AdHocManagerNotificationSink_OnNetworkRemove(This,Signature) \ + ( (This)->lpVtbl -> OnNetworkRemove(This,Signature) ) + +#define IDot11AdHocManagerNotificationSink_OnInterfaceAdd(This,pIAdHocInterface) \ + ( (This)->lpVtbl -> OnInterfaceAdd(This,pIAdHocInterface) ) + +#define IDot11AdHocManagerNotificationSink_OnInterfaceRemove(This,Signature) \ + ( (This)->lpVtbl -> OnInterfaceRemove(This,Signature) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDot11AdHocManagerNotificationSink_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDot11AdHocNetworks_INTERFACE_DEFINED__ +#define __IEnumDot11AdHocNetworks_INTERFACE_DEFINED__ + +/* interface IEnumDot11AdHocNetworks */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IEnumDot11AdHocNetworks; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F10CC28-CF0D-42a0-ACBE-E2DE7007384D") + IEnumDot11AdHocNetworks : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG cElt, + /* [length_is][size_is][out] */ IDot11AdHocNetwork **rgElt, + /* [out] */ ULONG *pcEltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG cElt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ IEnumDot11AdHocNetworks **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDot11AdHocNetworksVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumDot11AdHocNetworks * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumDot11AdHocNetworks * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumDot11AdHocNetworks * This); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocNetworks, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumDot11AdHocNetworks * This, + /* [in] */ ULONG cElt, + /* [length_is][size_is][out] */ IDot11AdHocNetwork **rgElt, + /* [out] */ ULONG *pcEltFetched); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocNetworks, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + IEnumDot11AdHocNetworks * This, + /* [in] */ ULONG cElt); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocNetworks, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IEnumDot11AdHocNetworks * This); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocNetworks, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IEnumDot11AdHocNetworks * This, + /* [out] */ IEnumDot11AdHocNetworks **ppEnum); + + END_INTERFACE + } IEnumDot11AdHocNetworksVtbl; + + interface IEnumDot11AdHocNetworks + { + CONST_VTBL struct IEnumDot11AdHocNetworksVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDot11AdHocNetworks_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDot11AdHocNetworks_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDot11AdHocNetworks_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDot11AdHocNetworks_Next(This,cElt,rgElt,pcEltFetched) \ + ( (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched) ) + +#define IEnumDot11AdHocNetworks_Skip(This,cElt) \ + ( (This)->lpVtbl -> Skip(This,cElt) ) + +#define IEnumDot11AdHocNetworks_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDot11AdHocNetworks_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumDot11AdHocNetworks_INTERFACE_DEFINED__ */ + + +#ifndef __IDot11AdHocNetwork_INTERFACE_DEFINED__ +#define __IDot11AdHocNetwork_INTERFACE_DEFINED__ + +/* interface IDot11AdHocNetwork */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDot11AdHocNetwork; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F10CC29-CF0D-42a0-ACBE-E2DE7007384D") + IDot11AdHocNetwork : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStatus( + /* [out][in] */ DOT11_ADHOC_NETWORK_CONNECTION_STATUS *eStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSSID( + /* [string][out] */ LPWSTR *ppszwSSID) = 0; + + virtual HRESULT STDMETHODCALLTYPE HasProfile( + /* [out][in] */ BOOLEAN *pf11d) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProfileName( + /* [string][out] */ LPWSTR *ppszwProfileName) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteProfile( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSignalQuality( + /* [out] */ ULONG *puStrengthValue, + /* [out] */ ULONG *puStrengthMax) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSecuritySetting( + /* [out] */ IDot11AdHocSecuritySettings **pAdHocSecuritySetting) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContextGuid( + /* [out][in] */ GUID *pContextGuid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSignature( + /* [out][in] */ GUID *pSignature) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInterface( + /* [out] */ IDot11AdHocInterface **pAdHocInterface) = 0; + + virtual HRESULT STDMETHODCALLTYPE Connect( + /* [string][in] */ LPCWSTR Passphrase, + /* [in] */ LONG GeographicalId, + /* [in] */ BOOLEAN fSaveProfile, + /* [in] */ BOOLEAN fMakeSavedProfileUserSpecific) = 0; + + virtual HRESULT STDMETHODCALLTYPE Disconnect( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDot11AdHocNetworkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDot11AdHocNetwork * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDot11AdHocNetwork * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDot11AdHocNetwork * This); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + IDot11AdHocNetwork * This, + /* [out][in] */ DOT11_ADHOC_NETWORK_CONNECTION_STATUS *eStatus); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, GetSSID) + HRESULT ( STDMETHODCALLTYPE *GetSSID )( + IDot11AdHocNetwork * This, + /* [string][out] */ LPWSTR *ppszwSSID); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, HasProfile) + HRESULT ( STDMETHODCALLTYPE *HasProfile )( + IDot11AdHocNetwork * This, + /* [out][in] */ BOOLEAN *pf11d); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, GetProfileName) + HRESULT ( STDMETHODCALLTYPE *GetProfileName )( + IDot11AdHocNetwork * This, + /* [string][out] */ LPWSTR *ppszwProfileName); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, DeleteProfile) + HRESULT ( STDMETHODCALLTYPE *DeleteProfile )( + IDot11AdHocNetwork * This); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, GetSignalQuality) + HRESULT ( STDMETHODCALLTYPE *GetSignalQuality )( + IDot11AdHocNetwork * This, + /* [out] */ ULONG *puStrengthValue, + /* [out] */ ULONG *puStrengthMax); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, GetSecuritySetting) + HRESULT ( STDMETHODCALLTYPE *GetSecuritySetting )( + IDot11AdHocNetwork * This, + /* [out] */ IDot11AdHocSecuritySettings **pAdHocSecuritySetting); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, GetContextGuid) + HRESULT ( STDMETHODCALLTYPE *GetContextGuid )( + IDot11AdHocNetwork * This, + /* [out][in] */ GUID *pContextGuid); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, GetSignature) + HRESULT ( STDMETHODCALLTYPE *GetSignature )( + IDot11AdHocNetwork * This, + /* [out][in] */ GUID *pSignature); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, GetInterface) + HRESULT ( STDMETHODCALLTYPE *GetInterface )( + IDot11AdHocNetwork * This, + /* [out] */ IDot11AdHocInterface **pAdHocInterface); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, Connect) + HRESULT ( STDMETHODCALLTYPE *Connect )( + IDot11AdHocNetwork * This, + /* [string][in] */ LPCWSTR Passphrase, + /* [in] */ LONG GeographicalId, + /* [in] */ BOOLEAN fSaveProfile, + /* [in] */ BOOLEAN fMakeSavedProfileUserSpecific); + + DECLSPEC_XFGVIRT(IDot11AdHocNetwork, Disconnect) + HRESULT ( STDMETHODCALLTYPE *Disconnect )( + IDot11AdHocNetwork * This); + + END_INTERFACE + } IDot11AdHocNetworkVtbl; + + interface IDot11AdHocNetwork + { + CONST_VTBL struct IDot11AdHocNetworkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDot11AdHocNetwork_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDot11AdHocNetwork_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDot11AdHocNetwork_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDot11AdHocNetwork_GetStatus(This,eStatus) \ + ( (This)->lpVtbl -> GetStatus(This,eStatus) ) + +#define IDot11AdHocNetwork_GetSSID(This,ppszwSSID) \ + ( (This)->lpVtbl -> GetSSID(This,ppszwSSID) ) + +#define IDot11AdHocNetwork_HasProfile(This,pf11d) \ + ( (This)->lpVtbl -> HasProfile(This,pf11d) ) + +#define IDot11AdHocNetwork_GetProfileName(This,ppszwProfileName) \ + ( (This)->lpVtbl -> GetProfileName(This,ppszwProfileName) ) + +#define IDot11AdHocNetwork_DeleteProfile(This) \ + ( (This)->lpVtbl -> DeleteProfile(This) ) + +#define IDot11AdHocNetwork_GetSignalQuality(This,puStrengthValue,puStrengthMax) \ + ( (This)->lpVtbl -> GetSignalQuality(This,puStrengthValue,puStrengthMax) ) + +#define IDot11AdHocNetwork_GetSecuritySetting(This,pAdHocSecuritySetting) \ + ( (This)->lpVtbl -> GetSecuritySetting(This,pAdHocSecuritySetting) ) + +#define IDot11AdHocNetwork_GetContextGuid(This,pContextGuid) \ + ( (This)->lpVtbl -> GetContextGuid(This,pContextGuid) ) + +#define IDot11AdHocNetwork_GetSignature(This,pSignature) \ + ( (This)->lpVtbl -> GetSignature(This,pSignature) ) + +#define IDot11AdHocNetwork_GetInterface(This,pAdHocInterface) \ + ( (This)->lpVtbl -> GetInterface(This,pAdHocInterface) ) + +#define IDot11AdHocNetwork_Connect(This,Passphrase,GeographicalId,fSaveProfile,fMakeSavedProfileUserSpecific) \ + ( (This)->lpVtbl -> Connect(This,Passphrase,GeographicalId,fSaveProfile,fMakeSavedProfileUserSpecific) ) + +#define IDot11AdHocNetwork_Disconnect(This) \ + ( (This)->lpVtbl -> Disconnect(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDot11AdHocNetwork_INTERFACE_DEFINED__ */ + + +#ifndef __IDot11AdHocNetworkNotificationSink_INTERFACE_DEFINED__ +#define __IDot11AdHocNetworkNotificationSink_INTERFACE_DEFINED__ + +/* interface IDot11AdHocNetworkNotificationSink */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDot11AdHocNetworkNotificationSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F10CC2A-CF0D-42a0-ACBE-E2DE7007384D") + IDot11AdHocNetworkNotificationSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnStatusChange( + DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnConnectFail( + DOT11_ADHOC_CONNECT_FAIL_REASON eFailReason) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDot11AdHocNetworkNotificationSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDot11AdHocNetworkNotificationSink * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDot11AdHocNetworkNotificationSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDot11AdHocNetworkNotificationSink * This); + + DECLSPEC_XFGVIRT(IDot11AdHocNetworkNotificationSink, OnStatusChange) + HRESULT ( STDMETHODCALLTYPE *OnStatusChange )( + IDot11AdHocNetworkNotificationSink * This, + DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus); + + DECLSPEC_XFGVIRT(IDot11AdHocNetworkNotificationSink, OnConnectFail) + HRESULT ( STDMETHODCALLTYPE *OnConnectFail )( + IDot11AdHocNetworkNotificationSink * This, + DOT11_ADHOC_CONNECT_FAIL_REASON eFailReason); + + END_INTERFACE + } IDot11AdHocNetworkNotificationSinkVtbl; + + interface IDot11AdHocNetworkNotificationSink + { + CONST_VTBL struct IDot11AdHocNetworkNotificationSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDot11AdHocNetworkNotificationSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDot11AdHocNetworkNotificationSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDot11AdHocNetworkNotificationSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDot11AdHocNetworkNotificationSink_OnStatusChange(This,eStatus) \ + ( (This)->lpVtbl -> OnStatusChange(This,eStatus) ) + +#define IDot11AdHocNetworkNotificationSink_OnConnectFail(This,eFailReason) \ + ( (This)->lpVtbl -> OnConnectFail(This,eFailReason) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDot11AdHocNetworkNotificationSink_INTERFACE_DEFINED__ */ + + +#ifndef __IDot11AdHocInterface_INTERFACE_DEFINED__ +#define __IDot11AdHocInterface_INTERFACE_DEFINED__ + +/* interface IDot11AdHocInterface */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDot11AdHocInterface; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F10CC2B-CF0D-42a0-ACBE-E2DE7007384D") + IDot11AdHocInterface : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDeviceSignature( + /* [out][in] */ GUID *pSignature) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFriendlyName( + /* [string][out] */ LPWSTR *ppszName) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsDot11d( + /* [out][in] */ BOOLEAN *pf11d) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsAdHocCapable( + /* [out][in] */ BOOLEAN *pfAdHocCapable) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsRadioOn( + /* [out][in] */ BOOLEAN *pfIsRadioOn) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetActiveNetwork( + /* [out] */ IDot11AdHocNetwork **ppNetwork) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIEnumSecuritySettings( + /* [out] */ IEnumDot11AdHocSecuritySettings **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIEnumDot11AdHocNetworks( + /* [in] */ GUID *pFilterGuid, + /* [out] */ IEnumDot11AdHocNetworks **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatus( + /* [out][in] */ DOT11_ADHOC_NETWORK_CONNECTION_STATUS *pState) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDot11AdHocInterfaceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDot11AdHocInterface * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDot11AdHocInterface * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDot11AdHocInterface * This); + + DECLSPEC_XFGVIRT(IDot11AdHocInterface, GetDeviceSignature) + HRESULT ( STDMETHODCALLTYPE *GetDeviceSignature )( + IDot11AdHocInterface * This, + /* [out][in] */ GUID *pSignature); + + DECLSPEC_XFGVIRT(IDot11AdHocInterface, GetFriendlyName) + HRESULT ( STDMETHODCALLTYPE *GetFriendlyName )( + IDot11AdHocInterface * This, + /* [string][out] */ LPWSTR *ppszName); + + DECLSPEC_XFGVIRT(IDot11AdHocInterface, IsDot11d) + HRESULT ( STDMETHODCALLTYPE *IsDot11d )( + IDot11AdHocInterface * This, + /* [out][in] */ BOOLEAN *pf11d); + + DECLSPEC_XFGVIRT(IDot11AdHocInterface, IsAdHocCapable) + HRESULT ( STDMETHODCALLTYPE *IsAdHocCapable )( + IDot11AdHocInterface * This, + /* [out][in] */ BOOLEAN *pfAdHocCapable); + + DECLSPEC_XFGVIRT(IDot11AdHocInterface, IsRadioOn) + HRESULT ( STDMETHODCALLTYPE *IsRadioOn )( + IDot11AdHocInterface * This, + /* [out][in] */ BOOLEAN *pfIsRadioOn); + + DECLSPEC_XFGVIRT(IDot11AdHocInterface, GetActiveNetwork) + HRESULT ( STDMETHODCALLTYPE *GetActiveNetwork )( + IDot11AdHocInterface * This, + /* [out] */ IDot11AdHocNetwork **ppNetwork); + + DECLSPEC_XFGVIRT(IDot11AdHocInterface, GetIEnumSecuritySettings) + HRESULT ( STDMETHODCALLTYPE *GetIEnumSecuritySettings )( + IDot11AdHocInterface * This, + /* [out] */ IEnumDot11AdHocSecuritySettings **ppEnum); + + DECLSPEC_XFGVIRT(IDot11AdHocInterface, GetIEnumDot11AdHocNetworks) + HRESULT ( STDMETHODCALLTYPE *GetIEnumDot11AdHocNetworks )( + IDot11AdHocInterface * This, + /* [in] */ GUID *pFilterGuid, + /* [out] */ IEnumDot11AdHocNetworks **ppEnum); + + DECLSPEC_XFGVIRT(IDot11AdHocInterface, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + IDot11AdHocInterface * This, + /* [out][in] */ DOT11_ADHOC_NETWORK_CONNECTION_STATUS *pState); + + END_INTERFACE + } IDot11AdHocInterfaceVtbl; + + interface IDot11AdHocInterface + { + CONST_VTBL struct IDot11AdHocInterfaceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDot11AdHocInterface_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDot11AdHocInterface_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDot11AdHocInterface_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDot11AdHocInterface_GetDeviceSignature(This,pSignature) \ + ( (This)->lpVtbl -> GetDeviceSignature(This,pSignature) ) + +#define IDot11AdHocInterface_GetFriendlyName(This,ppszName) \ + ( (This)->lpVtbl -> GetFriendlyName(This,ppszName) ) + +#define IDot11AdHocInterface_IsDot11d(This,pf11d) \ + ( (This)->lpVtbl -> IsDot11d(This,pf11d) ) + +#define IDot11AdHocInterface_IsAdHocCapable(This,pfAdHocCapable) \ + ( (This)->lpVtbl -> IsAdHocCapable(This,pfAdHocCapable) ) + +#define IDot11AdHocInterface_IsRadioOn(This,pfIsRadioOn) \ + ( (This)->lpVtbl -> IsRadioOn(This,pfIsRadioOn) ) + +#define IDot11AdHocInterface_GetActiveNetwork(This,ppNetwork) \ + ( (This)->lpVtbl -> GetActiveNetwork(This,ppNetwork) ) + +#define IDot11AdHocInterface_GetIEnumSecuritySettings(This,ppEnum) \ + ( (This)->lpVtbl -> GetIEnumSecuritySettings(This,ppEnum) ) + +#define IDot11AdHocInterface_GetIEnumDot11AdHocNetworks(This,pFilterGuid,ppEnum) \ + ( (This)->lpVtbl -> GetIEnumDot11AdHocNetworks(This,pFilterGuid,ppEnum) ) + +#define IDot11AdHocInterface_GetStatus(This,pState) \ + ( (This)->lpVtbl -> GetStatus(This,pState) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDot11AdHocInterface_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDot11AdHocInterfaces_INTERFACE_DEFINED__ +#define __IEnumDot11AdHocInterfaces_INTERFACE_DEFINED__ + +/* interface IEnumDot11AdHocInterfaces */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IEnumDot11AdHocInterfaces; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F10CC2C-CF0D-42a0-ACBE-E2DE7007384D") + IEnumDot11AdHocInterfaces : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG cElt, + /* [length_is][size_is][out] */ IDot11AdHocInterface **rgElt, + /* [out] */ ULONG *pcEltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG cElt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ IEnumDot11AdHocInterfaces **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDot11AdHocInterfacesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumDot11AdHocInterfaces * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumDot11AdHocInterfaces * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumDot11AdHocInterfaces * This); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocInterfaces, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumDot11AdHocInterfaces * This, + /* [in] */ ULONG cElt, + /* [length_is][size_is][out] */ IDot11AdHocInterface **rgElt, + /* [out] */ ULONG *pcEltFetched); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocInterfaces, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + IEnumDot11AdHocInterfaces * This, + /* [in] */ ULONG cElt); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocInterfaces, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IEnumDot11AdHocInterfaces * This); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocInterfaces, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IEnumDot11AdHocInterfaces * This, + /* [out] */ IEnumDot11AdHocInterfaces **ppEnum); + + END_INTERFACE + } IEnumDot11AdHocInterfacesVtbl; + + interface IEnumDot11AdHocInterfaces + { + CONST_VTBL struct IEnumDot11AdHocInterfacesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDot11AdHocInterfaces_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDot11AdHocInterfaces_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDot11AdHocInterfaces_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDot11AdHocInterfaces_Next(This,cElt,rgElt,pcEltFetched) \ + ( (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched) ) + +#define IEnumDot11AdHocInterfaces_Skip(This,cElt) \ + ( (This)->lpVtbl -> Skip(This,cElt) ) + +#define IEnumDot11AdHocInterfaces_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDot11AdHocInterfaces_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumDot11AdHocInterfaces_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDot11AdHocSecuritySettings_INTERFACE_DEFINED__ +#define __IEnumDot11AdHocSecuritySettings_INTERFACE_DEFINED__ + +/* interface IEnumDot11AdHocSecuritySettings */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IEnumDot11AdHocSecuritySettings; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F10CC2D-CF0D-42a0-ACBE-E2DE7007384D") + IEnumDot11AdHocSecuritySettings : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG cElt, + /* [length_is][size_is][out] */ IDot11AdHocSecuritySettings **rgElt, + /* [out] */ ULONG *pcEltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG cElt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ IEnumDot11AdHocSecuritySettings **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDot11AdHocSecuritySettingsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumDot11AdHocSecuritySettings * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumDot11AdHocSecuritySettings * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumDot11AdHocSecuritySettings * This); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocSecuritySettings, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumDot11AdHocSecuritySettings * This, + /* [in] */ ULONG cElt, + /* [length_is][size_is][out] */ IDot11AdHocSecuritySettings **rgElt, + /* [out] */ ULONG *pcEltFetched); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocSecuritySettings, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + IEnumDot11AdHocSecuritySettings * This, + /* [in] */ ULONG cElt); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocSecuritySettings, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IEnumDot11AdHocSecuritySettings * This); + + DECLSPEC_XFGVIRT(IEnumDot11AdHocSecuritySettings, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IEnumDot11AdHocSecuritySettings * This, + /* [out] */ IEnumDot11AdHocSecuritySettings **ppEnum); + + END_INTERFACE + } IEnumDot11AdHocSecuritySettingsVtbl; + + interface IEnumDot11AdHocSecuritySettings + { + CONST_VTBL struct IEnumDot11AdHocSecuritySettingsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDot11AdHocSecuritySettings_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDot11AdHocSecuritySettings_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDot11AdHocSecuritySettings_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDot11AdHocSecuritySettings_Next(This,cElt,rgElt,pcEltFetched) \ + ( (This)->lpVtbl -> Next(This,cElt,rgElt,pcEltFetched) ) + +#define IEnumDot11AdHocSecuritySettings_Skip(This,cElt) \ + ( (This)->lpVtbl -> Skip(This,cElt) ) + +#define IEnumDot11AdHocSecuritySettings_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDot11AdHocSecuritySettings_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumDot11AdHocSecuritySettings_INTERFACE_DEFINED__ */ + + +#ifndef __IDot11AdHocSecuritySettings_INTERFACE_DEFINED__ +#define __IDot11AdHocSecuritySettings_INTERFACE_DEFINED__ + +/* interface IDot11AdHocSecuritySettings */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDot11AdHocSecuritySettings; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F10CC2E-CF0D-42a0-ACBE-E2DE7007384D") + IDot11AdHocSecuritySettings : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDot11AuthAlgorithm( + /* [out][in] */ DOT11_ADHOC_AUTH_ALGORITHM *pAuth) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDot11CipherAlgorithm( + /* [out][in] */ DOT11_ADHOC_CIPHER_ALGORITHM *pCipher) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDot11AdHocSecuritySettingsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDot11AdHocSecuritySettings * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDot11AdHocSecuritySettings * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDot11AdHocSecuritySettings * This); + + DECLSPEC_XFGVIRT(IDot11AdHocSecuritySettings, GetDot11AuthAlgorithm) + HRESULT ( STDMETHODCALLTYPE *GetDot11AuthAlgorithm )( + IDot11AdHocSecuritySettings * This, + /* [out][in] */ DOT11_ADHOC_AUTH_ALGORITHM *pAuth); + + DECLSPEC_XFGVIRT(IDot11AdHocSecuritySettings, GetDot11CipherAlgorithm) + HRESULT ( STDMETHODCALLTYPE *GetDot11CipherAlgorithm )( + IDot11AdHocSecuritySettings * This, + /* [out][in] */ DOT11_ADHOC_CIPHER_ALGORITHM *pCipher); + + END_INTERFACE + } IDot11AdHocSecuritySettingsVtbl; + + interface IDot11AdHocSecuritySettings + { + CONST_VTBL struct IDot11AdHocSecuritySettingsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDot11AdHocSecuritySettings_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDot11AdHocSecuritySettings_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDot11AdHocSecuritySettings_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDot11AdHocSecuritySettings_GetDot11AuthAlgorithm(This,pAuth) \ + ( (This)->lpVtbl -> GetDot11AuthAlgorithm(This,pAuth) ) + +#define IDot11AdHocSecuritySettings_GetDot11CipherAlgorithm(This,pCipher) \ + ( (This)->lpVtbl -> GetDot11CipherAlgorithm(This,pCipher) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDot11AdHocSecuritySettings_INTERFACE_DEFINED__ */ + + +#ifndef __IDot11AdHocInterfaceNotificationSink_INTERFACE_DEFINED__ +#define __IDot11AdHocInterfaceNotificationSink_INTERFACE_DEFINED__ + +/* interface IDot11AdHocInterfaceNotificationSink */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDot11AdHocInterfaceNotificationSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8F10CC2F-CF0D-42a0-ACBE-E2DE7007384D") + IDot11AdHocInterfaceNotificationSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnConnectionStatusChange( + DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDot11AdHocInterfaceNotificationSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDot11AdHocInterfaceNotificationSink * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDot11AdHocInterfaceNotificationSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDot11AdHocInterfaceNotificationSink * This); + + DECLSPEC_XFGVIRT(IDot11AdHocInterfaceNotificationSink, OnConnectionStatusChange) + HRESULT ( STDMETHODCALLTYPE *OnConnectionStatusChange )( + IDot11AdHocInterfaceNotificationSink * This, + DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus); + + END_INTERFACE + } IDot11AdHocInterfaceNotificationSinkVtbl; + + interface IDot11AdHocInterfaceNotificationSink + { + CONST_VTBL struct IDot11AdHocInterfaceNotificationSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDot11AdHocInterfaceNotificationSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDot11AdHocInterfaceNotificationSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDot11AdHocInterfaceNotificationSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDot11AdHocInterfaceNotificationSink_OnConnectionStatusChange(This,eStatus) \ + ( (This)->lpVtbl -> OnConnectionStatusChange(This,eStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDot11AdHocInterfaceNotificationSink_INTERFACE_DEFINED__ */ + + + +#ifndef __ADHOCLib_LIBRARY_DEFINED__ +#define __ADHOCLib_LIBRARY_DEFINED__ + +/* library ADHOCLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_ADHOCLib; + +EXTERN_C const CLSID CLSID_Dot11AdHocManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("DD06A84F-83BD-4d01-8AB9-2389FEA0869E") +Dot11AdHocManager; +#endif +#endif /* __ADHOCLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_adhoc_0000_0011 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_adhoc_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_adhoc_0000_0011_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adhoc.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adhoc.idl new file mode 100644 index 0000000000000000000000000000000000000000..c95243d66cf7dd49d563d2d56fb5205eaecb08d2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adhoc.idl @@ -0,0 +1,547 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: AdHoc.idl +// +//---------------------------------------------------------------------------- + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#ifndef DO_NO_IMPORTS +import "oaidl.idl"; +import "unknwn.idl"; +import "wtypes.idl"; +#endif + + +cpp_quote("EXTERN_C const CLSID CLSID_AdHocManager;") + + +// Reserved GUIDS for our use +// +// 8F10CC20-CF0D-42a0-ACBE-E2DE7007384D IID_IAdHocManager +// 8F10CC21-CF0D-42a0-ACBE-E2DE7007384D IID_IEnumAdHocMediums +// 8F10CC22-CF0D-42a0-ACBE-E2DE7007384D IID_IAdHocMediumManager +// 8F10CC23-CF0D-42a0-ACBE-E2DE7007384D IID_IEnumAdHocConnections +// 8F10CC24-CF0D-42a0-ACBE-E2DE7007384D IID_IAdHocConnection +// 8F10CC25-CF0D-42a0-ACBE-E2DE7007384D +// 8F10CC26-CF0D-42a0-ACBE-E2DE7007384D IID_IDot11AdHocManager +// 8F10CC27-CF0D-42a0-ACBE-E2DE7007384D IID_IDot11AdHocManagerNotificationSink +// 8F10CC28-CF0D-42a0-ACBE-E2DE7007384D IID_IEnumDot11AdHocNetworks +// 8F10CC29-CF0D-42a0-ACBE-E2DE7007384D IID_IDot11AdHocNetwork +// 8F10CC2A-CF0D-42a0-ACBE-E2DE7007384D IID_IDot11AdHocNetworkNotificationSink +// +// 8F10CC2B-CF0D-42a0-ACBE-E2DE7007384D IID_IDot11AdHocInterface +// 8F10CC2C-CF0D-42a0-ACBE-E2DE7007384D IID_IEnumDot11AdHocInterfaces +// 8F10CC2D-CF0D-42a0-ACBE-E2DE7007384D IID_IEnumDot11AdHocSecuritySettings +// 8F10CC2E-CF0D-42a0-ACBE-E2DE7007384D IID_IDot11AdHocSecuritySettings +// 8F10CC2F-CF0D-42a0-ACBE-E2DE7007384D IID_IDot11AdHocInterfaceNotificationSink +// 8F10CC30-CF0D-42a0-ACBE-E2DE7007384D +// 8F10CC31-CF0D-42a0-ACBE-E2DE7007384D +// 8F10CC32-CF0D-42a0-ACBE-E2DE7007384D +// 8F10CC33-CF0D-42a0-ACBE-E2DE7007384D +// 8F10CC34-CF0D-42a0-ACBE-E2DE7007384D +// 8F10CC35-CF0D-42a0-ACBE-E2DE7007384D +// 8F10CC36-CF0D-42a0-ACBE-E2DE7007384D +// +interface IDot11AdHocManager; +interface IDot11AdHocManagerNotificationSink; +interface IEnumDot11AdHocNetworks; +interface IDot11AdHocNetwork; +interface IDot11AdHocNetworkNotificationSink; + +interface IDot11AdHocInterface; +interface IEnumDot11AdHocInterfaces; +interface IEnumDot11AdHocSecuritySettings; +interface IDot11AdHocSecuritySettings; +interface IDot11AdHocInterfaceNotificationSink; + +typedef [v1_enum] enum tagDOT11_ADHOC_CIPHER_ALGORITHM +{ + DOT11_ADHOC_CIPHER_ALGO_INVALID = -1, + DOT11_ADHOC_CIPHER_ALGO_NONE = 0x00, + DOT11_ADHOC_CIPHER_ALGO_CCMP = 0x04, + DOT11_ADHOC_CIPHER_ALGO_WEP = 0x101, +} DOT11_ADHOC_CIPHER_ALGORITHM; + +typedef [v1_enum] enum tagDOT11_ADHOC_AUTH_ALGORITHM +{ + DOT11_ADHOC_AUTH_ALGO_INVALID = -1, + DOT11_ADHOC_AUTH_ALGO_80211_OPEN = 1, + DOT11_ADHOC_AUTH_ALGO_RSNA_PSK = 7 +} DOT11_ADHOC_AUTH_ALGORITHM; + +// +// Valid Cipher - Auth pairs are as following: +// 1) OPEN - NONE +// AUTH_ALGO_80211_OPEN : CIPHER_ALGO_NONE +// +// 2) OPEN - WEP +// AUTH_ALGO_80211_OPEN : CIPHER_ALGO_WEP +// +// 3) WPA2PSK +// AUTH_ALGO_RSNA_PSK : CIPHER_ALGO_CCMP +// + +/* +typedef struct tagADHOC_SECURITY_SETTING +{ + DOT11_ADHOC_AUTH_ALGORITHM AdHocAuth; + DOT11_ADHOC_CIPHER_ALGORITHM AdHocCipher; +} ADHOC_SECURITY_SETTING; + +*/ + +typedef [v1_enum] enum tagDOT11_ADHOC_NETWORK_CONNECTION_STATUS +{ + DOT11_ADHOC_NETWORK_CONNECTION_STATUS_INVALID = 0, + DOT11_ADHOC_NETWORK_CONNECTION_STATUS_DISCONNECTED = 11, + DOT11_ADHOC_NETWORK_CONNECTION_STATUS_CONNECTING = 12, + DOT11_ADHOC_NETWORK_CONNECTION_STATUS_CONNECTED = 13, + DOT11_ADHOC_NETWORK_CONNECTION_STATUS_FORMED = 14 +} DOT11_ADHOC_NETWORK_CONNECTION_STATUS; + +typedef [v1_enum] enum tagDOT11_ADHOC_CONNECT_FAIL_REASON +{ + DOT11_ADHOC_CONNECT_FAIL_DOMAIN_MISMATCH = 0, + DOT11_ADHOC_CONNECT_FAIL_PASSPHRASE_MISMATCH = 1, + DOT11_ADHOC_CONNECT_FAIL_OTHER = 2 +} DOT11_ADHOC_CONNECT_FAIL_REASON; + +//+--------------------------------------------------------------------------- +// IDot11AdHocManager -- root interface for the home networking configuration +// manager. +// +[ + local, + object, + uuid(8F10CC26-CF0D-42a0-ACBE-E2DE7007384D), + pointer_default(unique) +] +interface IDot11AdHocManager : IUnknown +{ + + // + // Just returns if this system is even capable of creating + // Ad-Hoc connections OR Whether NICs exists + /* + HRESULT GetMediumCapability( + [out] ADHOC_MEDIA_CAPABILITIES* MediumPresence + ); + */ + + HRESULT CreateNetwork( + [in, string] LPCWSTR Name, + [in, string] LPCWSTR Password, + [in] LONG GeographicalId, + [in] IDot11AdHocInterface* pInterface, + [in] IDot11AdHocSecuritySettings* pSecurity, + [in] GUID* pContextGuid, + [out] IDot11AdHocNetwork** pIAdHoc + ); + + HRESULT CommitCreatedNetwork( + [in] IDot11AdHocNetwork* pIAdHoc, + [in] BOOLEAN fSaveProfile, + [in] BOOLEAN fMakeSavedProfileUserSpecific + ); + + // + // Scan's and returns what Ad-Hoc connections are available around, + // if a Guid filter is provided we try to filter off that key (by checking IE on the beacons) + // + HRESULT GetIEnumDot11AdHocNetworks( + [in] GUID* pContextGuid, // Optional Guid for filtering + [out] IEnumDot11AdHocNetworks** ppEnum // Enumerator + ); + + HRESULT GetIEnumDot11AdHocInterfaces( + [out] IEnumDot11AdHocInterfaces** ppEnum + ); + + HRESULT GetNetwork( + [in] GUID* NetworkSignature, + [out] IDot11AdHocNetwork** pNetwork + ); +}; + + +//+--------------------------------------------------------------------------- +// IDot11AdHocManager -- root interface for the home networking configuration +// manager. +// +[ + local, + object, + uuid(8F10CC27-CF0D-42a0-ACBE-E2DE7007384D), + pointer_default(unique) +] +interface IDot11AdHocManagerNotificationSink : IUnknown +{ + HRESULT OnNetworkAdd( + [in] IDot11AdHocNetwork* pIAdHocNetwork + ); + + HRESULT OnNetworkRemove( + [in] GUID* Signature + ); + + HRESULT OnInterfaceAdd( + [in] IDot11AdHocInterface* pIAdHocInterface + ); + HRESULT OnInterfaceRemove( + [in] GUID* Signature + ); + /* + HRESULT OnChangeCapability( + [in] ADHOC_MEDIA_CAPABILITIES NewCapability + ); + */ +} + + + +//+--------------------------------------------------------------------------- +// IEnumDot11AdHocNetworks -- Is used to enumerate the scanned Ad-Hoc Connections, +// which optionally just matches the provided Guid Filter +// +[ + local, + object, + uuid(8F10CC28-CF0D-42a0-ACBE-E2DE7007384D), + pointer_default(unique) +] +interface IEnumDot11AdHocNetworks : IUnknown +{ + HRESULT Next ( + [in] ULONG cElt, + [out, size_is(cElt), length_is(*pcEltFetched)] + IDot11AdHocNetwork** rgElt, + [out] ULONG* pcEltFetched + ); + + HRESULT Skip( + [in] ULONG cElt + ); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumDot11AdHocNetworks** ppEnum + ); +}; + + +//+--------------------------------------------------------------------------- +// IDot11AdHocNetwork -- +// +[ + local, + object, + uuid(8F10CC29-CF0D-42a0-ACBE-E2DE7007384D), + pointer_default(unique) +] +interface IDot11AdHocNetwork : IUnknown +{ + // + // Gets The State + // + HRESULT GetStatus( + [in, out] DOT11_ADHOC_NETWORK_CONNECTION_STATUS* eStatus + ); + + // + // Gets the SSID of the connection + // + HRESULT GetSSID( + [out, string] LPWSTR* ppszwSSID + ); + + // + // Returns TRUE if this network object has a profile associated w/ it. + // + HRESULT HasProfile( + [in, out] BOOLEAN* pf11d + ); + + // + // Gets the Profile Name of the connection if there is any + // + HRESULT GetProfileName( + [out, string] LPWSTR* ppszwProfileName + ); + + // + // Deletes any associated profile w/ the network object + // + HRESULT DeleteProfile(); + + + // + // Returns the Signal Quality level and its maximum possible value. + // + HRESULT GetSignalQuality( + [out] ULONG* puStrengthValue, + [out] ULONG* puStrengthMax + ); + + // + // Is this adhoc network secure or not? + // + HRESULT GetSecuritySetting( + [out] IDot11AdHocSecuritySettings** pAdHocSecuritySetting + ); + + // + // Return any Filter Guid Associated with this ad-hoc Connection (if-any) + // + HRESULT GetContextGuid( + [in, out] GUID* pContextGuid + ); + + + // + // Gets the L2 Signature of the connection + // + HRESULT GetSignature( + [in, out] GUID* pSignature + ); + + // + // Gets the SSID of the connection + // + HRESULT GetInterface( + [out] IDot11AdHocInterface** pAdHocInterface + ); + + + // + // Triggers 802.11 Actions to be part of the ad-hoc connectioon + // + HRESULT Connect( + [in, string] LPCWSTR Passphrase, // Passphrase, which may get converted to WPA-2 or WEP key + [in] LONG GeographicalId, // ... + [in] BOOLEAN fSaveProfile, + [in] BOOLEAN fMakeSavedProfileUserSpecific + ); + + HRESULT Disconnect(); +}; + + +//+--------------------------------------------------------------------------- +// IDot11AdHocNetworkNotificationSink -- +// +[ + local, + object, + uuid(8F10CC2A-CF0D-42a0-ACBE-E2DE7007384D), + pointer_default(unique) +] +interface IDot11AdHocNetworkNotificationSink : IUnknown +{ + HRESULT OnStatusChange( + DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus + ); + + HRESULT OnConnectFail( + DOT11_ADHOC_CONNECT_FAIL_REASON eFailReason + ); +} + +//----------------------------------------------------------------------------- +// IDot11AdHocInterface +// +// +[ + local, + object, + uuid(8F10CC2B-CF0D-42a0-ACBE-E2DE7007384D), + pointer_default(unique) +] +interface IDot11AdHocInterface : IUnknown +{ + HRESULT GetDeviceSignature( + [in, out] GUID* pSignature + ); + + HRESULT GetFriendlyName( + [out, string] LPWSTR* ppszName + ); + + HRESULT IsDot11d( + [in, out] BOOLEAN* pf11d + ); + + HRESULT IsAdHocCapable( + [in, out] BOOLEAN* pfAdHocCapable + ); + + HRESULT IsRadioOn( + [in, out] BOOLEAN* pfIsRadioOn + ); + + HRESULT GetActiveNetwork( + [out] IDot11AdHocNetwork** ppNetwork + ); + + HRESULT GetIEnumSecuritySettings( + [out] IEnumDot11AdHocSecuritySettings** ppEnum + ); + + HRESULT GetIEnumDot11AdHocNetworks( + [in] GUID* pFilterGuid, // Optional Guid for filtering + [out] IEnumDot11AdHocNetworks** ppEnum // Enumerator + ); + + HRESULT GetStatus( + [in, out] DOT11_ADHOC_NETWORK_CONNECTION_STATUS* pState + ); + + // HRESULT GetEnumCountriesSupported(); + +} // IDot11AdHocInterface + + +//----------------------------------------------------------------------------- +// IEnumDot11AdHocInterfaces +// +// +[ + local, + object, + uuid(8F10CC2C-CF0D-42a0-ACBE-E2DE7007384D), + pointer_default(unique) +] +interface IEnumDot11AdHocInterfaces : IUnknown +{ + HRESULT Next ( + [in] ULONG cElt, + [out, size_is(cElt), length_is(*pcEltFetched)] + IDot11AdHocInterface** rgElt, + [out] ULONG* pcEltFetched + ); + + HRESULT Skip( + [in] ULONG cElt + ); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumDot11AdHocInterfaces** ppEnum + ); + +} + +//----------------------------------------------------------------------------- +// IEnumDot11InterfaceSecuritySettings +// +// +[ + local, + object, + uuid(8F10CC2D-CF0D-42a0-ACBE-E2DE7007384D), + pointer_default(unique) +] +interface +IEnumDot11AdHocSecuritySettings : IUnknown +{ + HRESULT Next ( + [in] ULONG cElt, + [out, size_is(cElt), length_is(*pcEltFetched)] + IDot11AdHocSecuritySettings** rgElt, + [out] ULONG* pcEltFetched + ); + + HRESULT Skip( + [in] ULONG cElt + ); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumDot11AdHocSecuritySettings** ppEnum + ); +} + +//----------------------------------------------------------------------------- +// IDot11AdHocSecuritySettings +// +// +[ + local, + object, + uuid(8F10CC2E-CF0D-42a0-ACBE-E2DE7007384D), + pointer_default(unique) +] +interface IDot11AdHocSecuritySettings : IUnknown +{ + HRESULT GetDot11AuthAlgorithm( + [in, out] DOT11_ADHOC_AUTH_ALGORITHM* pAuth + ); + + HRESULT GetDot11CipherAlgorithm( + [in, out] DOT11_ADHOC_CIPHER_ALGORITHM* pCipher + ); +} + +//----------------------------------------------------------------------------- +// IDot11AdHocInterfaceNotificationSink +// +// +[ + local, + object, + uuid(8F10CC2F-CF0D-42a0-ACBE-E2DE7007384D), + pointer_default(unique) +] +interface IDot11AdHocInterfaceNotificationSink : IUnknown +{ + HRESULT OnConnectionStatusChange( + DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus + ); +} + + + +//---------------------------------------------------------- +// +// +// +[ + uuid(45357166-FF38-4302-8F5C-DF5B703A6E3D), + version(1.0), + helpstring("AdHoc 1.0 Type Library") +] +library ADHOCLib +{ + importlib("stdole2.tlb"); + + [ + uuid(DD06A84F-83BD-4d01-8AB9-2389FEA0869E), + helpstring("Dot11AdHocManager Class") + ] + coclass Dot11AdHocManager + { + [default] interface IDot11AdHocManager; + }; +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoctint.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoctint.h new file mode 100644 index 0000000000000000000000000000000000000000..0e6325c4a3e9db454c246f06ef17d0ea665ae616 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoctint.h @@ -0,0 +1,4408 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//-------------------------------------------------------------------- +// File: ADOCTINT.h +// +// Contents: ADO Interface header +// +//-------------------------------------------------------------------- +#ifndef _ADOCTINT_H_ +#define _ADOCTINT_H_ + +#ifndef _INC_TCHAR +#include +#endif + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif +#include "rpc.h" +#include "rpcndr.h" +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ +#ifndef __adocat_h__ +#define __adocat_h__ +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif +/* Forward Declarations */ +#ifndef ___ADOCollection_FWD_DEFINED__ +#define ___ADOCollection_FWD_DEFINED__ +typedef interface _ADOADOCollection _ADOCollection; +#endif /* ___ADOCollection_FWD_DEFINED__ */ +#ifndef ___ADODynaCollection_FWD_DEFINED__ +#define ___ADODynaCollection_FWD_DEFINED__ +typedef interface _ADODynaADOCollection _ADODynaCollection; +#endif /* ___ADODynaCollection_FWD_DEFINED__ */ +#ifndef ___Catalog_FWD_DEFINED__ +#define ___Catalog_FWD_DEFINED__ +typedef interface _ADOCatalog _Catalog; +#endif /* ___Catalog_FWD_DEFINED__ */ +#ifndef ___Table_FWD_DEFINED__ +#define ___Table_FWD_DEFINED__ +typedef interface _ADOTable _Table; +#endif /* ___Table_FWD_DEFINED__ */ +#ifndef ___Group25_FWD_DEFINED__ +#define ___Group25_FWD_DEFINED__ +typedef interface _Group25 _Group25; +#endif /* ___Group25_FWD_DEFINED__ */ +#ifndef ___Group_FWD_DEFINED__ +#define ___Group_FWD_DEFINED__ +typedef interface _ADOGroup _Group; +#endif /* ___Group_FWD_DEFINED__ */ +#ifndef ___User25_FWD_DEFINED__ +#define ___User25_FWD_DEFINED__ +typedef interface _User25 _User25; +#endif /* ___User25_FWD_DEFINED__ */ +#ifndef ___User_FWD_DEFINED__ +#define ___User_FWD_DEFINED__ +typedef interface _ADOUser _User; +#endif /* ___User_FWD_DEFINED__ */ +#ifndef ___Column_FWD_DEFINED__ +#define ___Column_FWD_DEFINED__ +typedef interface _ADOColumn _Column; +#endif /* ___Column_FWD_DEFINED__ */ +#ifndef ___Index_FWD_DEFINED__ +#define ___Index_FWD_DEFINED__ +typedef interface _ADOIndex _Index; +#endif /* ___Index_FWD_DEFINED__ */ +#ifndef ___Key_FWD_DEFINED__ +#define ___Key_FWD_DEFINED__ +typedef interface _ADOKey _Key; +#endif /* ___Key_FWD_DEFINED__ */ +#ifndef __View_FWD_DEFINED__ +#define __View_FWD_DEFINED__ +typedef interface ADOView View; +#endif /* __View_FWD_DEFINED__ */ +#ifndef __Procedure_FWD_DEFINED__ +#define __Procedure_FWD_DEFINED__ +typedef interface ADOProcedure Procedure; +#endif /* __Procedure_FWD_DEFINED__ */ +#ifndef __Catalog_FWD_DEFINED__ +#define __Catalog_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOCatalog Catalog; +#else +typedef struct ADOCatalog Catalog; +#endif /* __cplusplus */ +#endif /* __Catalog_FWD_DEFINED__ */ +#ifndef __Table_FWD_DEFINED__ +#define __Table_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOTable Table; +#else +typedef struct ADOTable Table; +#endif /* __cplusplus */ +#endif /* __Table_FWD_DEFINED__ */ +#ifndef __Property_FWD_DEFINED__ +#define __Property_FWD_DEFINED__ +typedef interface ADOProperty Property; +#endif /* __Property_FWD_DEFINED__ */ +#ifndef __Group_FWD_DEFINED__ +#define __Group_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOGroup Group; +#else +typedef struct ADOGroup Group; +#endif /* __cplusplus */ +#endif /* __Group_FWD_DEFINED__ */ +#ifndef __User_FWD_DEFINED__ +#define __User_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOUser User; +#else +typedef struct ADOUser User; +#endif /* __cplusplus */ +#endif /* __User_FWD_DEFINED__ */ +#ifndef __Column_FWD_DEFINED__ +#define __Column_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOColumn Column; +#else +typedef struct ADOColumn Column; +#endif /* __cplusplus */ +#endif /* __Column_FWD_DEFINED__ */ +#ifndef __Index_FWD_DEFINED__ +#define __Index_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOIndex Index; +#else +typedef struct ADOIndex Index; +#endif /* __cplusplus */ +#endif /* __Index_FWD_DEFINED__ */ +#ifndef __Key_FWD_DEFINED__ +#define __Key_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOKey Key; +#else +typedef struct ADOKey Key; +#endif /* __cplusplus */ +#endif /* __Key_FWD_DEFINED__ */ +#ifndef __Tables_FWD_DEFINED__ +#define __Tables_FWD_DEFINED__ +typedef interface ADOTables Tables; +#endif /* __Tables_FWD_DEFINED__ */ +#ifndef __Columns_FWD_DEFINED__ +#define __Columns_FWD_DEFINED__ +typedef interface ADOColumns Columns; +#endif /* __Columns_FWD_DEFINED__ */ +#ifndef __Procedures_FWD_DEFINED__ +#define __Procedures_FWD_DEFINED__ +typedef interface ADOProcedures Procedures; +#endif /* __Procedures_FWD_DEFINED__ */ +#ifndef __Views_FWD_DEFINED__ +#define __Views_FWD_DEFINED__ +typedef interface ADOViews Views; +#endif /* __Views_FWD_DEFINED__ */ +#ifndef __Indexes_FWD_DEFINED__ +#define __Indexes_FWD_DEFINED__ +typedef interface ADOIndexes Indexes; +#endif /* __Indexes_FWD_DEFINED__ */ +#ifndef __Keys_FWD_DEFINED__ +#define __Keys_FWD_DEFINED__ +typedef interface ADOKeys Keys; +#endif /* __Keys_FWD_DEFINED__ */ +#ifndef __Users_FWD_DEFINED__ +#define __Users_FWD_DEFINED__ +typedef interface ADOUsers Users; +#endif /* __Users_FWD_DEFINED__ */ +#ifndef __Groups_FWD_DEFINED__ +#define __Groups_FWD_DEFINED__ +typedef interface ADOGroups Groups; +#endif /* __Groups_FWD_DEFINED__ */ +#ifndef __Properties_FWD_DEFINED__ +#define __Properties_FWD_DEFINED__ +typedef interface ADOProperties Properties; +#endif /* __Properties_FWD_DEFINED__ */ +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#ifdef __cplusplus +extern "C"{ +#endif +/* interface __MIDL_itf_adocat_0000_0000 */ +/* [local] */ +#pragma warning(push) +#pragma warning(disable:4091) +typedef /* [helpcontext] */ +enum RuleEnum + { + adRINone = 0, + adRICascade = 1, + adRISetNull = 2, + adRISetDefault = 3 + } RuleEnum; +typedef /* [helpcontext] */ +enum KeyTypeEnum + { + adKeyPrimary = 1, + adKeyForeign = 2, + adKeyUnique = 3 + } KeyTypeEnum; +typedef /* [helpcontext] */ +enum ActionEnum + { + adAccessGrant = 1, + adAccessSet = 2, + adAccessDeny = 3, + adAccessRevoke = 4 + } ActionEnum; +typedef /* [helpcontext] */ +enum ColumnAttributesEnum + { + adColFixed = 1, + adColNullable = 2 + } ColumnAttributesEnum; +typedef /* [helpcontext] */ +enum SortOrderEnum + { + adSortAscending = 1, + adSortDescending = 2 + } SortOrderEnum; +typedef /* [helpcontext] */ +enum RightsEnum + { + adRightNone = 0L, + adRightDrop = 0x100L, + adRightExclusive = 0x200L, + adRightReadDesign = 0x400L, + adRightWriteDesign = 0x800L, + adRightWithGrant = 0x1000L, + adRightReference = 0x2000L, + adRightCreate = 0x4000L, + adRightInsert = 0x8000L, + adRightDelete = 0x10000L, + adRightReadPermissions = 0x20000L, + adRightWritePermissions = 0x40000L, + adRightWriteOwner = 0x80000L, + adRightMaximumAllowed = 0x2000000L, + adRightFull = 0x10000000L, + adRightExecute = 0x20000000L, + adRightUpdate = 0x40000000L, + adRightRead = 0x80000000L + } RightsEnum; +typedef /* [helpcontext] */ +#ifdef _ADOINT_H_ //Avoid conflicting with ADO def + class dummy dummy; +#else +enum DataTypeEnum + { + adEmpty = 0, + adTinyInt = 16, + adSmallInt = 2, + adInteger = 3, + adBigInt = 20, + adUnsignedTinyInt = 17, + adUnsignedSmallInt = 18, + adUnsignedInt = 19, + adUnsignedBigInt = 21, + adSingle = 4, + adDouble = 5, + adCurrency = 6, + adDecimal = 14, + adNumeric = 131, + adBoolean = 11, + adError = 10, + adUserDefined = 132, + adVariant = 12, + adIDispatch = 9, + adIUnknown = 13, + adGUID = 72, + adDate = 7, + adDBDate = 133, + adDBTime = 134, + adDBTimeStamp = 135, + adBSTR = 8, + adChar = 129, + adVarChar = 200, + adLongVarChar = 201, + adWChar = 130, + adVarWChar = 202, + adLongVarWChar = 203, + adBinary = 128, + adVarBinary = 204, + adLongVarBinary = 205, + adChapter = 136, + adFileTime = 64, + adPropVariant = 138, + adVarNumeric = 139 + } DataTypeEnum; +#endif //ifdef _ADOINT.H_ +typedef /* [helpcontext] */ +enum AllowNullsEnum + { + adIndexNullsAllow = 0, + adIndexNullsDisallow = 1, + adIndexNullsIgnore = 2, + adIndexNullsIgnoreAny = 4 + } AllowNullsEnum; +typedef /* [helpcontext] */ +enum ObjectTypeEnum + { + adPermObjProviderSpecific = -1, + adPermObjTable = 1, + adPermObjColumn = 2, + adPermObjDatabase = 3, + adPermObjProcedure = 4, + adPermObjView = 5 + } ObjectTypeEnum; +typedef /* [helpcontext] */ +enum InheritTypeEnum + { + adInheritNone = 0, + adInheritObjects = 1, + adInheritContainers = 2, + adInheritBoth = 3, + adInheritNoPropogate = 4 + } InheritTypeEnum; +extern RPC_IF_HANDLE __MIDL_itf_adocat_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_adocat_0000_0000_v0_0_s_ifspec; +#ifndef __ADOX_LIBRARY_DEFINED__ +#define __ADOX_LIBRARY_DEFINED__ +/* library ADOX */ +/* [helpstring][version][uuid] */ +EXTERN_C const IID LIBID_ADOX; +#ifndef ___ADOCollection_INTERFACE_DEFINED__ +#define ___ADOCollection_INTERFACE_DEFINED__ +/* interface _ADOADOCollection */ +/* [object][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__ADOCollection; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000512-0000-0010-8000-00AA006D2EA4") + _ADOADOCollection : public IDispatch + { + public: + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *c) = 0; + + virtual /* [id][restricted] */ HRESULT STDMETHODCALLTYPE _NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + }; + + +#else /* C style interface */ + typedef struct _ADOCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOADOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOADOCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOADOCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOADOCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOADOCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOADOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOADOCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in _ADOADOCollection * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in _ADOADOCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in _ADOADOCollection * This); + + END_INTERFACE + } _ADOCollectionVtbl; + interface _ADOCollection + { + CONST_VTBL struct _ADOCollectionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _ADOCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _ADOCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _ADOCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _ADOCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _ADOCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _ADOCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _ADOCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Collection_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define _ADOCollection__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define _ADOCollection_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___ADOCollection_INTERFACE_DEFINED__ */ +#ifndef ___ADODynaCollection_INTERFACE_DEFINED__ +#define ___ADODynaCollection_INTERFACE_DEFINED__ +/* interface _ADODynaADOCollection */ +/* [object][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__ADODynaCollection; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000513-0000-0010-8000-00AA006D2EA4") + _ADODynaADOCollection : public _ADOCollection + { + public: + virtual HRESULT STDMETHODCALLTYPE Append( + /* [in] */ __RPC__in_opt IDispatch *Object) = 0; + + virtual HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Item) = 0; + + }; + + +#else /* C style interface */ + typedef struct _ADODynaCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADODynaADOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADODynaADOCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADODynaADOCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADODynaADOCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADODynaADOCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADODynaADOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADODynaADOCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in _ADODynaADOCollection * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in _ADODynaADOCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in _ADODynaADOCollection * This); + + DECLSPEC_XFGVIRT(_ADODynaCollection, Append) + HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in _ADODynaADOCollection * This, + /* [in] */ __RPC__in_opt IDispatch *Object); + + DECLSPEC_XFGVIRT(_ADODynaCollection, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in _ADODynaADOCollection * This, + /* [in] */ VARIANT Item); + + END_INTERFACE + } _ADODynaCollectionVtbl; + interface _ADODynaCollection + { + CONST_VTBL struct _ADODynaCollectionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _ADODynaCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _ADODynaCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _ADODynaCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _ADODynaCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _ADODynaCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _ADODynaCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _ADODynaCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _DynaCollection_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define _ADODynaCollection__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define _ADODynaCollection_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define _ADODynaCollection_Append(This,Object) \ + ( (This)->lpVtbl -> Append(This,Object) ) +#define _ADODynaCollection_Delete(This,Item) \ + ( (This)->lpVtbl -> Delete(This,Item) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___ADODynaCollection_INTERFACE_DEFINED__ */ +#ifndef ___Catalog_INTERFACE_DEFINED__ +#define ___Catalog_INTERFACE_DEFINED__ +/* interface _ADOCatalog */ +/* [helpcontext][unique][dual][uuid][nonextensible][object] */ +EXTERN_C const IID IID__Catalog; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000603-0000-0010-8000-00AA006D2EA4") + _ADOCatalog : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Tables( + /* [retval][out] */ __RPC__deref_out_opt ADOTables **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_ActiveConnection( + /* [in] */ VARIANT newVal) = 0; + + virtual /* [helpcontext][id][propputref] */ HRESULT STDMETHODCALLTYPE putref_ActiveConnection( + /* [in] */ __RPC__in_opt IDispatch *pCon) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Procedures( + /* [retval][out] */ __RPC__deref_out_opt ADOProcedures **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Views( + /* [retval][out] */ __RPC__deref_out_opt ADOViews **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Groups( + /* [retval][out] */ __RPC__deref_out_opt ADOGroups **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Users( + /* [retval][out] */ __RPC__deref_out_opt ADOUsers **ppvObject) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Create( + /* [in] */ __RPC__in BSTR ConnectString, + /* [retval][out] */ __RPC__out VARIANT *Connection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetObjectOwner( + /* [in] */ __RPC__in BSTR ObjectName, + /* [in] */ ObjectTypeEnum ObjectType, + /* [optional][in] */ VARIANT ObjectTypeId, + /* [retval][out] */ __RPC__deref_out_opt BSTR *OwnerName) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE SetObjectOwner( + /* [in] */ __RPC__in BSTR ObjectName, + /* [in] */ ObjectTypeEnum ObjectType, + /* [in] */ __RPC__in BSTR UserName, + /* [optional][in] */ VARIANT ObjectTypeId) = 0; + + }; + + +#else /* C style interface */ + typedef struct _CatalogVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOCatalog * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOCatalog * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOCatalog * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOCatalog * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOCatalog * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOCatalog * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOCatalog * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Catalog, get_Tables) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tables )( + __RPC__in _ADOCatalog * This, + /* [retval][out] */ __RPC__deref_out_opt ADOTables **ppvObject); + + DECLSPEC_XFGVIRT(_Catalog, get_ActiveConnection) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in _ADOCatalog * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(_Catalog, put_ActiveConnection) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in _ADOCatalog * This, + /* [in] */ VARIANT newVal); + + DECLSPEC_XFGVIRT(_Catalog, putref_ActiveConnection) + /* [helpcontext][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveConnection )( + __RPC__in _ADOCatalog * This, + /* [in] */ __RPC__in_opt IDispatch *pCon); + + DECLSPEC_XFGVIRT(_Catalog, get_Procedures) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Procedures )( + __RPC__in _ADOCatalog * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProcedures **ppvObject); + + DECLSPEC_XFGVIRT(_Catalog, get_Views) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Views )( + __RPC__in _ADOCatalog * This, + /* [retval][out] */ __RPC__deref_out_opt ADOViews **ppvObject); + + DECLSPEC_XFGVIRT(_Catalog, get_Groups) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Groups )( + __RPC__in _ADOCatalog * This, + /* [retval][out] */ __RPC__deref_out_opt ADOGroups **ppvObject); + + DECLSPEC_XFGVIRT(_Catalog, get_Users) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Users )( + __RPC__in _ADOCatalog * This, + /* [retval][out] */ __RPC__deref_out_opt ADOUsers **ppvObject); + + DECLSPEC_XFGVIRT(_Catalog, Create) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Create )( + __RPC__in _ADOCatalog * This, + /* [in] */ __RPC__in BSTR ConnectString, + /* [retval][out] */ __RPC__out VARIANT *Connection); + + DECLSPEC_XFGVIRT(_Catalog, GetObjectOwner) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetObjectOwner )( + __RPC__in _ADOCatalog * This, + /* [in] */ __RPC__in BSTR ObjectName, + /* [in] */ ObjectTypeEnum ObjectType, + /* [optional][in] */ VARIANT ObjectTypeId, + /* [retval][out] */ __RPC__deref_out_opt BSTR *OwnerName); + + DECLSPEC_XFGVIRT(_Catalog, SetObjectOwner) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SetObjectOwner )( + __RPC__in _ADOCatalog * This, + /* [in] */ __RPC__in BSTR ObjectName, + /* [in] */ ObjectTypeEnum ObjectType, + /* [in] */ __RPC__in BSTR UserName, + /* [optional][in] */ VARIANT ObjectTypeId); + + END_INTERFACE + } _CatalogVtbl; + interface _Catalog + { + CONST_VTBL struct _CatalogVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Catalog_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Catalog_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Catalog_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Catalog_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Catalog_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Catalog_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Catalog_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Catalog_get_Tables(This,ppvObject) \ + ( (This)->lpVtbl -> get_Tables(This,ppvObject) ) +#define _Catalog_get_ActiveConnection(This,pVal) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pVal) ) +#define _Catalog_put_ActiveConnection(This,newVal) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,newVal) ) +#define _Catalog_putref_ActiveConnection(This,pCon) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pCon) ) +#define _Catalog_get_Procedures(This,ppvObject) \ + ( (This)->lpVtbl -> get_Procedures(This,ppvObject) ) +#define _Catalog_get_Views(This,ppvObject) \ + ( (This)->lpVtbl -> get_Views(This,ppvObject) ) +#define _Catalog_get_Groups(This,ppvObject) \ + ( (This)->lpVtbl -> get_Groups(This,ppvObject) ) +#define _Catalog_get_Users(This,ppvObject) \ + ( (This)->lpVtbl -> get_Users(This,ppvObject) ) +#define _Catalog_Create(This,ConnectString,Connection) \ + ( (This)->lpVtbl -> Create(This,ConnectString,Connection) ) +#define _Catalog_GetObjectOwner(This,ObjectName,ObjectType,ObjectTypeId,OwnerName) \ + ( (This)->lpVtbl -> GetObjectOwner(This,ObjectName,ObjectType,ObjectTypeId,OwnerName) ) +#define _Catalog_SetObjectOwner(This,ObjectName,ObjectType,UserName,ObjectTypeId) \ + ( (This)->lpVtbl -> SetObjectOwner(This,ObjectName,ObjectType,UserName,ObjectTypeId) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Catalog_INTERFACE_DEFINED__ */ +#ifndef ___Table_INTERFACE_DEFINED__ +#define ___Table_INTERFACE_DEFINED__ +/* interface _ADOTable */ +/* [helpcontext][unique][dual][uuid][nonextensible][object] */ +EXTERN_C const IID IID__Table; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000610-0000-0010-8000-00AA006D2EA4") + _ADOTable : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Columns( + /* [retval][out] */ __RPC__deref_out_opt ADOColumns **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Indexes( + /* [retval][out] */ __RPC__deref_out_opt ADOIndexes **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Keys( + /* [retval][out] */ __RPC__deref_out_opt ADOKeys **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_DateCreated( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_DateModified( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_ParentCatalog( + /* [retval][out] */ __RPC__deref_out_opt _ADOCatalog **ppvObject) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_ParentCatalog( + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject) = 0; + + virtual /* [helpcontext][id][propputref] */ HRESULT STDMETHODCALLTYPE putref_ParentCatalog( + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct _TableVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOTable * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOTable * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOTable * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOTable * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOTable * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOTable * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOTable * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Table, get_Columns) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Columns )( + __RPC__in _ADOTable * This, + /* [retval][out] */ __RPC__deref_out_opt ADOColumns **ppvObject); + + DECLSPEC_XFGVIRT(_Table, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in _ADOTable * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_Table, put_Name) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in _ADOTable * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(_Table, get_Type) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in _ADOTable * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_Table, get_Indexes) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Indexes )( + __RPC__in _ADOTable * This, + /* [retval][out] */ __RPC__deref_out_opt ADOIndexes **ppvObject); + + DECLSPEC_XFGVIRT(_Table, get_Keys) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Keys )( + __RPC__in _ADOTable * This, + /* [retval][out] */ __RPC__deref_out_opt ADOKeys **ppvObject); + + DECLSPEC_XFGVIRT(_Table, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADOTable * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(_Table, get_DateCreated) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DateCreated )( + __RPC__in _ADOTable * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(_Table, get_DateModified) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DateModified )( + __RPC__in _ADOTable * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(_Table, get_ParentCatalog) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentCatalog )( + __RPC__in _ADOTable * This, + /* [retval][out] */ __RPC__deref_out_opt _ADOCatalog **ppvObject); + + DECLSPEC_XFGVIRT(_Table, put_ParentCatalog) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentCatalog )( + __RPC__in _ADOTable * This, + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject); + + DECLSPEC_XFGVIRT(_Table, putref_ParentCatalog) + /* [helpcontext][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_ParentADOCatalog )( + __RPC__in _ADOTable * This, + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject); + + END_INTERFACE + } _TableVtbl; + interface _Table + { + CONST_VTBL struct _TableVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Table_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Table_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Table_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Table_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Table_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Table_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Table_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Table_get_Columns(This,ppvObject) \ + ( (This)->lpVtbl -> get_Columns(This,ppvObject) ) +#define _Table_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) +#define _Table_put_Name(This,newVal) \ + ( (This)->lpVtbl -> put_Name(This,newVal) ) +#define _Table_get_Type(This,pVal) \ + ( (This)->lpVtbl -> get_Type(This,pVal) ) +#define _Table_get_Indexes(This,ppvObject) \ + ( (This)->lpVtbl -> get_Indexes(This,ppvObject) ) +#define _Table_get_Keys(This,ppvObject) \ + ( (This)->lpVtbl -> get_Keys(This,ppvObject) ) +#define _Table_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Table_get_DateCreated(This,pVal) \ + ( (This)->lpVtbl -> get_DateCreated(This,pVal) ) +#define _Table_get_DateModified(This,pVal) \ + ( (This)->lpVtbl -> get_DateModified(This,pVal) ) +#define _Table_get_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> get_ParentCatalog(This,ppvObject) ) +#define _Table_put_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> put_ParentCatalog(This,ppvObject) ) +#define _Table_putref_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> putref_ParentCatalog(This,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Table_INTERFACE_DEFINED__ */ +#ifndef ___Group25_INTERFACE_DEFINED__ +#define ___Group25_INTERFACE_DEFINED__ +/* interface _Group25 */ +/* [helpcontext][unique][dual][uuid][hidden][nonextensible][object] */ +EXTERN_C const IID IID__Group25; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000616-0000-0010-8000-00AA006D2EA4") + _Group25 : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetPermissions( + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [optional][in] */ VARIANT ObjectTypeId, + /* [retval][out] */ __RPC__out RightsEnum *Rights) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE SetPermissions( + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [in] */ ActionEnum Action, + /* [in] */ RightsEnum Rights, + /* [defaultvalue][in] */ InheritTypeEnum Inherit, + /* [optional][in] */ VARIANT ObjectTypeId) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Users( + /* [retval][out] */ __RPC__deref_out_opt ADOUsers **ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct _Group25Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _Group25 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _Group25 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _Group25 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _Group25 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _Group25 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _Group25 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _Group25 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Group25, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in _Group25 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_Group25, put_Name) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in _Group25 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(_Group25, GetPermissions) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetPermissions )( + __RPC__in _Group25 * This, + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [optional][in] */ VARIANT ObjectTypeId, + /* [retval][out] */ __RPC__out RightsEnum *Rights); + + DECLSPEC_XFGVIRT(_Group25, SetPermissions) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SetPermissions )( + __RPC__in _Group25 * This, + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [in] */ ActionEnum Action, + /* [in] */ RightsEnum Rights, + /* [defaultvalue][in] */ InheritTypeEnum Inherit, + /* [optional][in] */ VARIANT ObjectTypeId); + + DECLSPEC_XFGVIRT(_Group25, get_Users) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Users )( + __RPC__in _Group25 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOUsers **ppvObject); + + END_INTERFACE + } _Group25Vtbl; + interface _Group25 + { + CONST_VTBL struct _Group25Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Group25_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Group25_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Group25_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Group25_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Group25_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Group25_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Group25_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Group25_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) +#define _Group25_put_Name(This,newVal) \ + ( (This)->lpVtbl -> put_Name(This,newVal) ) +#define _Group25_GetPermissions(This,Name,ObjectType,ObjectTypeId,Rights) \ + ( (This)->lpVtbl -> GetPermissions(This,Name,ObjectType,ObjectTypeId,Rights) ) +#define _Group25_SetPermissions(This,Name,ObjectType,Action,Rights,Inherit,ObjectTypeId) \ + ( (This)->lpVtbl -> SetPermissions(This,Name,ObjectType,Action,Rights,Inherit,ObjectTypeId) ) +#define _Group25_get_Users(This,ppvObject) \ + ( (This)->lpVtbl -> get_Users(This,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Group25_INTERFACE_DEFINED__ */ +#ifndef ___Group_INTERFACE_DEFINED__ +#define ___Group_INTERFACE_DEFINED__ +/* interface _ADOGroup */ +/* [helpcontext][unique][dual][uuid][nonextensible][object] */ +EXTERN_C const IID IID__Group; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000628-0000-0010-8000-00AA006D2EA4") + _ADOGroup : public _Group25 + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_ParentCatalog( + /* [retval][out] */ __RPC__deref_out_opt _ADOCatalog **ppvObject) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_ParentCatalog( + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject) = 0; + + virtual /* [helpcontext][id][propputref] */ HRESULT STDMETHODCALLTYPE putref_ParentCatalog( + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct _GroupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOGroup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOGroup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOGroup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOGroup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOGroup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Group25, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in _ADOGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_Group25, put_Name) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in _ADOGroup * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(_Group25, GetPermissions) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetPermissions )( + __RPC__in _ADOGroup * This, + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [optional][in] */ VARIANT ObjectTypeId, + /* [retval][out] */ __RPC__out RightsEnum *Rights); + + DECLSPEC_XFGVIRT(_Group25, SetPermissions) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SetPermissions )( + __RPC__in _ADOGroup * This, + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [in] */ ActionEnum Action, + /* [in] */ RightsEnum Rights, + /* [defaultvalue][in] */ InheritTypeEnum Inherit, + /* [optional][in] */ VARIANT ObjectTypeId); + + DECLSPEC_XFGVIRT(_Group25, get_Users) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Users )( + __RPC__in _ADOGroup * This, + /* [retval][out] */ __RPC__deref_out_opt ADOUsers **ppvObject); + + DECLSPEC_XFGVIRT(_Group, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADOGroup * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(_Group, get_ParentCatalog) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentCatalog )( + __RPC__in _ADOGroup * This, + /* [retval][out] */ __RPC__deref_out_opt _ADOCatalog **ppvObject); + + DECLSPEC_XFGVIRT(_Group, put_ParentCatalog) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentCatalog )( + __RPC__in _ADOGroup * This, + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject); + + DECLSPEC_XFGVIRT(_Group, putref_ParentCatalog) + /* [helpcontext][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_ParentADOCatalog )( + __RPC__in _ADOGroup * This, + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject); + + END_INTERFACE + } _GroupVtbl; + interface _Group + { + CONST_VTBL struct _GroupVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Group_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Group_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Group_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Group_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Group_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Group_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Group_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Group_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) +#define _Group_put_Name(This,newVal) \ + ( (This)->lpVtbl -> put_Name(This,newVal) ) +#define _Group_GetPermissions(This,Name,ObjectType,ObjectTypeId,Rights) \ + ( (This)->lpVtbl -> GetPermissions(This,Name,ObjectType,ObjectTypeId,Rights) ) +#define _Group_SetPermissions(This,Name,ObjectType,Action,Rights,Inherit,ObjectTypeId) \ + ( (This)->lpVtbl -> SetPermissions(This,Name,ObjectType,Action,Rights,Inherit,ObjectTypeId) ) +#define _Group_get_Users(This,ppvObject) \ + ( (This)->lpVtbl -> get_Users(This,ppvObject) ) +#define _Group_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Group_get_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> get_ParentCatalog(This,ppvObject) ) +#define _Group_put_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> put_ParentCatalog(This,ppvObject) ) +#define _Group_putref_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> putref_ParentCatalog(This,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Group_INTERFACE_DEFINED__ */ +#ifndef ___User25_INTERFACE_DEFINED__ +#define ___User25_INTERFACE_DEFINED__ +/* interface _User25 */ +/* [helpcontext][unique][dual][uuid][nonextensible][object] */ +EXTERN_C const IID IID__User25; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000619-0000-0010-8000-00AA006D2EA4") + _User25 : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetPermissions( + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [optional][in] */ VARIANT ObjectTypeId, + /* [retval][out] */ __RPC__out RightsEnum *Rights) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE SetPermissions( + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [in] */ ActionEnum Action, + /* [in] */ RightsEnum Rights, + /* [defaultvalue][in] */ InheritTypeEnum Inherit, + /* [optional][in] */ VARIANT ObjectTypeId) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE ChangePassword( + /* [in] */ __RPC__in BSTR OldPassword, + /* [in] */ __RPC__in BSTR NewPassword) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Groups( + /* [retval][out] */ __RPC__deref_out_opt ADOGroups **ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct _User25Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _User25 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _User25 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _User25 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _User25 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _User25 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _User25 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _User25 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_User25, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in _User25 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_User25, put_Name) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in _User25 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(_User25, GetPermissions) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetPermissions )( + __RPC__in _User25 * This, + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [optional][in] */ VARIANT ObjectTypeId, + /* [retval][out] */ __RPC__out RightsEnum *Rights); + + DECLSPEC_XFGVIRT(_User25, SetPermissions) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SetPermissions )( + __RPC__in _User25 * This, + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [in] */ ActionEnum Action, + /* [in] */ RightsEnum Rights, + /* [defaultvalue][in] */ InheritTypeEnum Inherit, + /* [optional][in] */ VARIANT ObjectTypeId); + + DECLSPEC_XFGVIRT(_User25, ChangePassword) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *ChangePassword )( + __RPC__in _User25 * This, + /* [in] */ __RPC__in BSTR OldPassword, + /* [in] */ __RPC__in BSTR NewPassword); + + DECLSPEC_XFGVIRT(_User25, get_Groups) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Groups )( + __RPC__in _User25 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOGroups **ppvObject); + + END_INTERFACE + } _User25Vtbl; + interface _User25 + { + CONST_VTBL struct _User25Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _User25_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _User25_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _User25_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _User25_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _User25_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _User25_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _User25_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _User25_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) +#define _User25_put_Name(This,newVal) \ + ( (This)->lpVtbl -> put_Name(This,newVal) ) +#define _User25_GetPermissions(This,Name,ObjectType,ObjectTypeId,Rights) \ + ( (This)->lpVtbl -> GetPermissions(This,Name,ObjectType,ObjectTypeId,Rights) ) +#define _User25_SetPermissions(This,Name,ObjectType,Action,Rights,Inherit,ObjectTypeId) \ + ( (This)->lpVtbl -> SetPermissions(This,Name,ObjectType,Action,Rights,Inherit,ObjectTypeId) ) +#define _User25_ChangePassword(This,OldPassword,NewPassword) \ + ( (This)->lpVtbl -> ChangePassword(This,OldPassword,NewPassword) ) +#define _User25_get_Groups(This,ppvObject) \ + ( (This)->lpVtbl -> get_Groups(This,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___User25_INTERFACE_DEFINED__ */ +#ifndef ___User_INTERFACE_DEFINED__ +#define ___User_INTERFACE_DEFINED__ +/* interface _ADOUser */ +/* [helpcontext][unique][dual][uuid][nonextensible][object] */ +EXTERN_C const IID IID__User; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000627-0000-0010-8000-00AA006D2EA4") + _ADOUser : public _User25 + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_ParentCatalog( + /* [retval][out] */ __RPC__deref_out_opt _ADOCatalog **ppvObject) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_ParentCatalog( + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject) = 0; + + virtual /* [helpcontext][id][propputref] */ HRESULT STDMETHODCALLTYPE putref_ParentCatalog( + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct _UserVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOUser * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOUser * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOUser * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOUser * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOUser * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOUser * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOUser * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_User25, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in _ADOUser * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_User25, put_Name) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in _ADOUser * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(_User25, GetPermissions) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetPermissions )( + __RPC__in _ADOUser * This, + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [optional][in] */ VARIANT ObjectTypeId, + /* [retval][out] */ __RPC__out RightsEnum *Rights); + + DECLSPEC_XFGVIRT(_User25, SetPermissions) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SetPermissions )( + __RPC__in _ADOUser * This, + /* [in] */ VARIANT Name, + /* [in] */ ObjectTypeEnum ObjectType, + /* [in] */ ActionEnum Action, + /* [in] */ RightsEnum Rights, + /* [defaultvalue][in] */ InheritTypeEnum Inherit, + /* [optional][in] */ VARIANT ObjectTypeId); + + DECLSPEC_XFGVIRT(_User25, ChangePassword) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *ChangePassword )( + __RPC__in _ADOUser * This, + /* [in] */ __RPC__in BSTR OldPassword, + /* [in] */ __RPC__in BSTR NewPassword); + + DECLSPEC_XFGVIRT(_User25, get_Groups) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Groups )( + __RPC__in _ADOUser * This, + /* [retval][out] */ __RPC__deref_out_opt ADOGroups **ppvObject); + + DECLSPEC_XFGVIRT(_User, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADOUser * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(_User, get_ParentCatalog) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentCatalog )( + __RPC__in _ADOUser * This, + /* [retval][out] */ __RPC__deref_out_opt _ADOCatalog **ppvObject); + + DECLSPEC_XFGVIRT(_User, put_ParentCatalog) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentCatalog )( + __RPC__in _ADOUser * This, + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject); + + DECLSPEC_XFGVIRT(_User, putref_ParentCatalog) + /* [helpcontext][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_ParentADOCatalog )( + __RPC__in _ADOUser * This, + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject); + + END_INTERFACE + } _UserVtbl; + interface _User + { + CONST_VTBL struct _UserVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _User_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _User_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _User_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _User_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _User_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _User_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _User_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _User_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) +#define _User_put_Name(This,newVal) \ + ( (This)->lpVtbl -> put_Name(This,newVal) ) +#define _User_GetPermissions(This,Name,ObjectType,ObjectTypeId,Rights) \ + ( (This)->lpVtbl -> GetPermissions(This,Name,ObjectType,ObjectTypeId,Rights) ) +#define _User_SetPermissions(This,Name,ObjectType,Action,Rights,Inherit,ObjectTypeId) \ + ( (This)->lpVtbl -> SetPermissions(This,Name,ObjectType,Action,Rights,Inherit,ObjectTypeId) ) +#define _User_ChangePassword(This,OldPassword,NewPassword) \ + ( (This)->lpVtbl -> ChangePassword(This,OldPassword,NewPassword) ) +#define _User_get_Groups(This,ppvObject) \ + ( (This)->lpVtbl -> get_Groups(This,ppvObject) ) +#define _User_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _User_get_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> get_ParentCatalog(This,ppvObject) ) +#define _User_put_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> put_ParentCatalog(This,ppvObject) ) +#define _User_putref_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> putref_ParentCatalog(This,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___User_INTERFACE_DEFINED__ */ +#ifndef ___Column_INTERFACE_DEFINED__ +#define ___Column_INTERFACE_DEFINED__ +/* interface _ADOColumn */ +/* [helpcontext][unique][dual][uuid][nonextensible][object] */ +EXTERN_C const IID IID__Column; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000061C-0000-0010-8000-00AA006D2EA4") + _ADOColumn : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out ColumnAttributesEnum *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Attributes( + /* [in] */ ColumnAttributesEnum newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefinedSize( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_DefinedSize( + /* [in] */ long DefinedSize) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_NumericScale( + /* [retval][out] */ __RPC__out BYTE *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_NumericScale( + /* [in] */ BYTE newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Precision( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Precision( + /* [in] */ long newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_RelatedColumn( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_RelatedColumn( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_SortOrder( + /* [retval][out] */ __RPC__out SortOrderEnum *pVal) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_SortOrder( + /* [in] */ SortOrderEnum newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out DataTypeEnum *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ DataTypeEnum newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_ParentCatalog( + /* [retval][out] */ __RPC__deref_out_opt _ADOCatalog **ppvObject) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_ParentCatalog( + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject) = 0; + + virtual /* [helpcontext][id][propputref] */ HRESULT STDMETHODCALLTYPE putref_ParentCatalog( + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct _ColumnVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOColumn * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOColumn * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOColumn * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOColumn * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOColumn * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOColumn * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOColumn * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Column, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in _ADOColumn * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_Column, put_Name) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in _ADOColumn * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(_Column, get_Attributes) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in _ADOColumn * This, + /* [retval][out] */ __RPC__out ColumnAttributesEnum *pVal); + + DECLSPEC_XFGVIRT(_Column, put_Attributes) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in _ADOColumn * This, + /* [in] */ ColumnAttributesEnum newVal); + + DECLSPEC_XFGVIRT(_Column, get_DefinedSize) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefinedSize )( + __RPC__in _ADOColumn * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(_Column, put_DefinedSize) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefinedSize )( + __RPC__in _ADOColumn * This, + /* [in] */ long DefinedSize); + + DECLSPEC_XFGVIRT(_Column, get_NumericScale) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumericScale )( + __RPC__in _ADOColumn * This, + /* [retval][out] */ __RPC__out BYTE *pVal); + + DECLSPEC_XFGVIRT(_Column, put_NumericScale) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NumericScale )( + __RPC__in _ADOColumn * This, + /* [in] */ BYTE newVal); + + DECLSPEC_XFGVIRT(_Column, get_Precision) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Precision )( + __RPC__in _ADOColumn * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(_Column, put_Precision) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Precision )( + __RPC__in _ADOColumn * This, + /* [in] */ long newVal); + + DECLSPEC_XFGVIRT(_Column, get_RelatedColumn) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RelatedColumn )( + __RPC__in _ADOColumn * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_Column, put_RelatedColumn) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RelatedColumn )( + __RPC__in _ADOColumn * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(_Column, get_SortOrder) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SortOrder )( + __RPC__in _ADOColumn * This, + /* [retval][out] */ __RPC__out SortOrderEnum *pVal); + + DECLSPEC_XFGVIRT(_Column, put_SortOrder) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SortOrder )( + __RPC__in _ADOColumn * This, + /* [in] */ SortOrderEnum newVal); + + DECLSPEC_XFGVIRT(_Column, get_Type) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in _ADOColumn * This, + /* [retval][out] */ __RPC__out DataTypeEnum *pVal); + + DECLSPEC_XFGVIRT(_Column, put_Type) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in _ADOColumn * This, + /* [in] */ DataTypeEnum newVal); + + DECLSPEC_XFGVIRT(_Column, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADOColumn * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(_Column, get_ParentCatalog) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentCatalog )( + __RPC__in _ADOColumn * This, + /* [retval][out] */ __RPC__deref_out_opt _ADOCatalog **ppvObject); + + DECLSPEC_XFGVIRT(_Column, put_ParentCatalog) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentCatalog )( + __RPC__in _ADOColumn * This, + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject); + + DECLSPEC_XFGVIRT(_Column, putref_ParentCatalog) + /* [helpcontext][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_ParentADOCatalog )( + __RPC__in _ADOColumn * This, + /* [in] */ __RPC__in_opt _ADOCatalog *ppvObject); + + END_INTERFACE + } _ColumnVtbl; + interface _Column + { + CONST_VTBL struct _ColumnVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Column_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Column_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Column_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Column_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Column_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Column_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Column_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Column_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) +#define _Column_put_Name(This,newVal) \ + ( (This)->lpVtbl -> put_Name(This,newVal) ) +#define _Column_get_Attributes(This,pVal) \ + ( (This)->lpVtbl -> get_Attributes(This,pVal) ) +#define _Column_put_Attributes(This,newVal) \ + ( (This)->lpVtbl -> put_Attributes(This,newVal) ) +#define _Column_get_DefinedSize(This,pVal) \ + ( (This)->lpVtbl -> get_DefinedSize(This,pVal) ) +#define _Column_put_DefinedSize(This,DefinedSize) \ + ( (This)->lpVtbl -> put_DefinedSize(This,DefinedSize) ) +#define _Column_get_NumericScale(This,pVal) \ + ( (This)->lpVtbl -> get_NumericScale(This,pVal) ) +#define _Column_put_NumericScale(This,newVal) \ + ( (This)->lpVtbl -> put_NumericScale(This,newVal) ) +#define _Column_get_Precision(This,pVal) \ + ( (This)->lpVtbl -> get_Precision(This,pVal) ) +#define _Column_put_Precision(This,newVal) \ + ( (This)->lpVtbl -> put_Precision(This,newVal) ) +#define _Column_get_RelatedColumn(This,pVal) \ + ( (This)->lpVtbl -> get_RelatedColumn(This,pVal) ) +#define _Column_put_RelatedColumn(This,newVal) \ + ( (This)->lpVtbl -> put_RelatedColumn(This,newVal) ) +#define _Column_get_SortOrder(This,pVal) \ + ( (This)->lpVtbl -> get_SortOrder(This,pVal) ) +#define _Column_put_SortOrder(This,newVal) \ + ( (This)->lpVtbl -> put_SortOrder(This,newVal) ) +#define _Column_get_Type(This,pVal) \ + ( (This)->lpVtbl -> get_Type(This,pVal) ) +#define _Column_put_Type(This,newVal) \ + ( (This)->lpVtbl -> put_Type(This,newVal) ) +#define _Column_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Column_get_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> get_ParentCatalog(This,ppvObject) ) +#define _Column_put_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> put_ParentCatalog(This,ppvObject) ) +#define _Column_putref_ParentCatalog(This,ppvObject) \ + ( (This)->lpVtbl -> putref_ParentCatalog(This,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Column_INTERFACE_DEFINED__ */ +#ifndef ___Index_INTERFACE_DEFINED__ +#define ___Index_INTERFACE_DEFINED__ +/* interface _ADOIndex */ +/* [helpcontext][unique][dual][uuid][nonextensible][object] */ +EXTERN_C const IID IID__Index; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000061F-0000-0010-8000-00AA006D2EA4") + _ADOIndex : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Clustered( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Clustered( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_IndexNulls( + /* [retval][out] */ __RPC__out AllowNullsEnum *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_IndexNulls( + /* [in] */ AllowNullsEnum newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_PrimaryKey( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_PrimaryKey( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Unique( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Unique( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Columns( + /* [retval][out] */ __RPC__deref_out_opt ADOColumns **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct _IndexVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOIndex * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOIndex * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOIndex * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOIndex * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOIndex * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOIndex * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOIndex * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Index, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in _ADOIndex * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_Index, put_Name) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in _ADOIndex * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(_Index, get_Clustered) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Clustered )( + __RPC__in _ADOIndex * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(_Index, put_Clustered) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Clustered )( + __RPC__in _ADOIndex * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(_Index, get_IndexNulls) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IndexNulls )( + __RPC__in _ADOIndex * This, + /* [retval][out] */ __RPC__out AllowNullsEnum *pVal); + + DECLSPEC_XFGVIRT(_Index, put_IndexNulls) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IndexNulls )( + __RPC__in _ADOIndex * This, + /* [in] */ AllowNullsEnum newVal); + + DECLSPEC_XFGVIRT(_Index, get_PrimaryKey) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrimaryKey )( + __RPC__in _ADOIndex * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(_Index, put_PrimaryKey) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PrimaryKey )( + __RPC__in _ADOIndex * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(_Index, get_Unique) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Unique )( + __RPC__in _ADOIndex * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(_Index, put_Unique) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Unique )( + __RPC__in _ADOIndex * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(_Index, get_Columns) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Columns )( + __RPC__in _ADOIndex * This, + /* [retval][out] */ __RPC__deref_out_opt ADOColumns **ppvObject); + + DECLSPEC_XFGVIRT(_Index, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADOIndex * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + END_INTERFACE + } _IndexVtbl; + interface _Index + { + CONST_VTBL struct _IndexVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Index_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Index_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Index_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Index_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Index_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Index_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Index_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Index_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) +#define _Index_put_Name(This,newVal) \ + ( (This)->lpVtbl -> put_Name(This,newVal) ) +#define _Index_get_Clustered(This,pVal) \ + ( (This)->lpVtbl -> get_Clustered(This,pVal) ) +#define _Index_put_Clustered(This,newVal) \ + ( (This)->lpVtbl -> put_Clustered(This,newVal) ) +#define _Index_get_IndexNulls(This,pVal) \ + ( (This)->lpVtbl -> get_IndexNulls(This,pVal) ) +#define _Index_put_IndexNulls(This,newVal) \ + ( (This)->lpVtbl -> put_IndexNulls(This,newVal) ) +#define _Index_get_PrimaryKey(This,pVal) \ + ( (This)->lpVtbl -> get_PrimaryKey(This,pVal) ) +#define _Index_put_PrimaryKey(This,newVal) \ + ( (This)->lpVtbl -> put_PrimaryKey(This,newVal) ) +#define _Index_get_Unique(This,pVal) \ + ( (This)->lpVtbl -> get_Unique(This,pVal) ) +#define _Index_put_Unique(This,newVal) \ + ( (This)->lpVtbl -> put_Unique(This,newVal) ) +#define _Index_get_Columns(This,ppvObject) \ + ( (This)->lpVtbl -> get_Columns(This,ppvObject) ) +#define _Index_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Index_INTERFACE_DEFINED__ */ +#ifndef ___Key_INTERFACE_DEFINED__ +#define ___Key_INTERFACE_DEFINED__ +/* interface _ADOKey */ +/* [helpcontext][unique][dual][uuid][nonextensible][object] */ +EXTERN_C const IID IID__Key; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000622-0000-0010-8000-00AA006D2EA4") + _ADOKey : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeleteRule( + /* [retval][out] */ __RPC__out RuleEnum *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_DeleteRule( + /* [in] */ RuleEnum newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out KeyTypeEnum *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ KeyTypeEnum newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_RelatedTable( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_RelatedTable( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_UpdateRule( + /* [retval][out] */ __RPC__out RuleEnum *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_UpdateRule( + /* [in] */ RuleEnum newVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Columns( + /* [retval][out] */ __RPC__deref_out_opt ADOColumns **ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct _KeyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOKey * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOKey * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOKey * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOKey * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOKey * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOKey * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOKey * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Key, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in _ADOKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_Key, put_Name) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in _ADOKey * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(_Key, get_DeleteRule) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeleteRule )( + __RPC__in _ADOKey * This, + /* [retval][out] */ __RPC__out RuleEnum *pVal); + + DECLSPEC_XFGVIRT(_Key, put_DeleteRule) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DeleteRule )( + __RPC__in _ADOKey * This, + /* [in] */ RuleEnum newVal); + + DECLSPEC_XFGVIRT(_Key, get_Type) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in _ADOKey * This, + /* [retval][out] */ __RPC__out KeyTypeEnum *pVal); + + DECLSPEC_XFGVIRT(_Key, put_Type) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in _ADOKey * This, + /* [in] */ KeyTypeEnum newVal); + + DECLSPEC_XFGVIRT(_Key, get_RelatedTable) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RelatedTable )( + __RPC__in _ADOKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(_Key, put_RelatedTable) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RelatedTable )( + __RPC__in _ADOKey * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(_Key, get_UpdateRule) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UpdateRule )( + __RPC__in _ADOKey * This, + /* [retval][out] */ __RPC__out RuleEnum *pVal); + + DECLSPEC_XFGVIRT(_Key, put_UpdateRule) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UpdateRule )( + __RPC__in _ADOKey * This, + /* [in] */ RuleEnum newVal); + + DECLSPEC_XFGVIRT(_Key, get_Columns) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Columns )( + __RPC__in _ADOKey * This, + /* [retval][out] */ __RPC__deref_out_opt ADOColumns **ppvObject); + + END_INTERFACE + } _KeyVtbl; + interface _Key + { + CONST_VTBL struct _KeyVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Key_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Key_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Key_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Key_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Key_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Key_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Key_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Key_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) +#define _Key_put_Name(This,newVal) \ + ( (This)->lpVtbl -> put_Name(This,newVal) ) +#define _Key_get_DeleteRule(This,pVal) \ + ( (This)->lpVtbl -> get_DeleteRule(This,pVal) ) +#define _Key_put_DeleteRule(This,newVal) \ + ( (This)->lpVtbl -> put_DeleteRule(This,newVal) ) +#define _Key_get_Type(This,pVal) \ + ( (This)->lpVtbl -> get_Type(This,pVal) ) +#define _Key_put_Type(This,newVal) \ + ( (This)->lpVtbl -> put_Type(This,newVal) ) +#define _Key_get_RelatedTable(This,pVal) \ + ( (This)->lpVtbl -> get_RelatedTable(This,pVal) ) +#define _Key_put_RelatedTable(This,newVal) \ + ( (This)->lpVtbl -> put_RelatedTable(This,newVal) ) +#define _Key_get_UpdateRule(This,pVal) \ + ( (This)->lpVtbl -> get_UpdateRule(This,pVal) ) +#define _Key_put_UpdateRule(This,newVal) \ + ( (This)->lpVtbl -> put_UpdateRule(This,newVal) ) +#define _Key_get_Columns(This,ppvObject) \ + ( (This)->lpVtbl -> get_Columns(This,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Key_INTERFACE_DEFINED__ */ +#ifndef __View_INTERFACE_DEFINED__ +#define __View_INTERFACE_DEFINED__ +/* interface ADOView */ +/* [helpcontext][unique][dual][uuid][nonextensible][object] */ +EXTERN_C const IID IID_View; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000613-0000-0010-8000-00AA006D2EA4") + ADOView : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Command( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Command( + /* [in] */ VARIANT newVal) = 0; + + virtual /* [helpcontext][id][propputref] */ HRESULT STDMETHODCALLTYPE putref_Command( + /* [in] */ __RPC__in_opt IDispatch *pComm) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_DateCreated( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_DateModified( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + }; + + +#else /* C style interface */ + typedef struct ViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOView * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOView * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOView * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOView * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOView * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOView * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(View, get_Command) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Command )( + __RPC__in ADOView * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(View, put_Command) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Command )( + __RPC__in ADOView * This, + /* [in] */ VARIANT newVal); + + DECLSPEC_XFGVIRT(View, putref_Command) + /* [helpcontext][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Command )( + __RPC__in ADOView * This, + /* [in] */ __RPC__in_opt IDispatch *pComm); + + DECLSPEC_XFGVIRT(View, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in ADOView * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(View, get_DateCreated) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DateCreated )( + __RPC__in ADOView * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(View, get_DateModified) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DateModified )( + __RPC__in ADOView * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + END_INTERFACE + } ViewVtbl; + interface View + { + CONST_VTBL struct ViewVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define View_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define View_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define View_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define View_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define View_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define View_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define View_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define View_get_Command(This,pVal) \ + ( (This)->lpVtbl -> get_Command(This,pVal) ) +#define View_put_Command(This,newVal) \ + ( (This)->lpVtbl -> put_Command(This,newVal) ) +#define View_putref_Command(This,pComm) \ + ( (This)->lpVtbl -> putref_Command(This,pComm) ) +#define View_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) +#define View_get_DateCreated(This,pVal) \ + ( (This)->lpVtbl -> get_DateCreated(This,pVal) ) +#define View_get_DateModified(This,pVal) \ + ( (This)->lpVtbl -> get_DateModified(This,pVal) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __View_INTERFACE_DEFINED__ */ +#ifndef __Procedure_INTERFACE_DEFINED__ +#define __Procedure_INTERFACE_DEFINED__ +/* interface ADOProcedure */ +/* [helpcontext][unique][dual][uuid][nonextensible][object] */ +EXTERN_C const IID IID_Procedure; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000625-0000-0010-8000-00AA006D2EA4") + ADOProcedure : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Command( + /* [retval][out] */ __RPC__out VARIANT *pVar) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Command( + /* [in] */ VARIANT newVal) = 0; + + virtual /* [helpcontext][id][propputref] */ HRESULT STDMETHODCALLTYPE putref_Command( + /* [in] */ __RPC__in_opt IDispatch *pComm) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_DateCreated( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_DateModified( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + }; + + +#else /* C style interface */ + typedef struct ProcedureVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOProcedure * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOProcedure * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOProcedure * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOProcedure * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOProcedure * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOProcedure * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOProcedure * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Procedure, get_Command) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Command )( + __RPC__in ADOProcedure * This, + /* [retval][out] */ __RPC__out VARIANT *pVar); + + DECLSPEC_XFGVIRT(Procedure, put_Command) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Command )( + __RPC__in ADOProcedure * This, + /* [in] */ VARIANT newVal); + + DECLSPEC_XFGVIRT(Procedure, putref_Command) + /* [helpcontext][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Command )( + __RPC__in ADOProcedure * This, + /* [in] */ __RPC__in_opt IDispatch *pComm); + + DECLSPEC_XFGVIRT(Procedure, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in ADOProcedure * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(Procedure, get_DateCreated) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DateCreated )( + __RPC__in ADOProcedure * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(Procedure, get_DateModified) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DateModified )( + __RPC__in ADOProcedure * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + END_INTERFACE + } ProcedureVtbl; + interface Procedure + { + CONST_VTBL struct ProcedureVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Procedure_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Procedure_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Procedure_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Procedure_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Procedure_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Procedure_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Procedure_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Procedure_get_Command(This,pVar) \ + ( (This)->lpVtbl -> get_Command(This,pVar) ) +#define Procedure_put_Command(This,newVal) \ + ( (This)->lpVtbl -> put_Command(This,newVal) ) +#define Procedure_putref_Command(This,pComm) \ + ( (This)->lpVtbl -> putref_Command(This,pComm) ) +#define Procedure_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) +#define Procedure_get_DateCreated(This,pVal) \ + ( (This)->lpVtbl -> get_DateCreated(This,pVal) ) +#define Procedure_get_DateModified(This,pVal) \ + ( (This)->lpVtbl -> get_DateModified(This,pVal) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Procedure_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Catalog; +#ifdef __cplusplus +Catalog; +#endif +EXTERN_C const CLSID CLSID_Table; +#ifdef __cplusplus +Table; +#endif +#ifndef __Property_INTERFACE_DEFINED__ +#define __Property_INTERFACE_DEFINED__ +/* interface ADOProperty */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Property; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000503-0000-0010-8000-00AA006D2EA4") + ADOProperty : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pval) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT val) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out DataTypeEnum *ptype) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out long *plAttributes) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Attributes( + /* [in] */ long lAttributes) = 0; + + }; + + +#else /* C style interface */ + typedef struct PropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOProperty * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOProperty * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Property, get_Value) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in ADOProperty * This, + /* [retval][out] */ __RPC__out VARIANT *pval); + + DECLSPEC_XFGVIRT(Property, put_Value) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in ADOProperty * This, + /* [in] */ VARIANT val); + + DECLSPEC_XFGVIRT(Property, get_Name) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in ADOProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Property, get_Type) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in ADOProperty * This, + /* [retval][out] */ __RPC__out DataTypeEnum *ptype); + + DECLSPEC_XFGVIRT(Property, get_Attributes) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in ADOProperty * This, + /* [retval][out] */ __RPC__out long *plAttributes); + + DECLSPEC_XFGVIRT(Property, put_Attributes) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in ADOProperty * This, + /* [in] */ long lAttributes); + + END_INTERFACE + } PropertyVtbl; + interface Property + { + CONST_VTBL struct PropertyVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Property_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Property_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Property_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Property_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Property_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Property_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Property_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Property_get_Value(This,pval) \ + ( (This)->lpVtbl -> get_Value(This,pval) ) +#define Property_put_Value(This,val) \ + ( (This)->lpVtbl -> put_Value(This,val) ) +#define Property_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define Property_get_Type(This,ptype) \ + ( (This)->lpVtbl -> get_Type(This,ptype) ) +#define Property_get_Attributes(This,plAttributes) \ + ( (This)->lpVtbl -> get_Attributes(This,plAttributes) ) +#define Property_put_Attributes(This,lAttributes) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttributes) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Property_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Group; +#ifdef __cplusplus +Group; +#endif +EXTERN_C const CLSID CLSID_User; +#ifdef __cplusplus +User; +#endif +EXTERN_C const CLSID CLSID_Column; +#ifdef __cplusplus +Column; +#endif +EXTERN_C const CLSID CLSID_Index; +#ifdef __cplusplus +Index; +#endif +EXTERN_C const CLSID CLSID_Key; +#ifdef __cplusplus +Key; +#endif +#ifndef __Tables_INTERFACE_DEFINED__ +#define __Tables_INTERFACE_DEFINED__ +/* interface ADOTables */ +/* [object][uuid][helpcontext][nonextensible][dual] */ +EXTERN_C const IID IID_Tables; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000611-0000-0010-8000-00AA006D2EA4") + ADOTables : public _ADOCollection + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt Table **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ VARIANT Item) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Item) = 0; + + }; + + +#else /* C style interface */ + typedef struct TablesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOTables * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOTables * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOTables * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOTables * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOTables * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOTables * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOTables * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOTables * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOTables * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOTables * This); + + DECLSPEC_XFGVIRT(Tables, get_Item) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOTables * This, + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt Table **ppvObject); + + DECLSPEC_XFGVIRT(Tables, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in ADOTables * This, + /* [in] */ VARIANT Item); + + DECLSPEC_XFGVIRT(Tables, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in ADOTables * This, + /* [in] */ VARIANT Item); + + END_INTERFACE + } TablesVtbl; + interface Tables + { + CONST_VTBL struct TablesVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Tables_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Tables_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Tables_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Tables_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Tables_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Tables_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Tables_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Tables_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Tables__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Tables_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Tables_get_Item(This,Item,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Item,ppvObject) ) +#define Tables_Append(This,Item) \ + ( (This)->lpVtbl -> Append(This,Item) ) +#define Tables_Delete(This,Item) \ + ( (This)->lpVtbl -> Delete(This,Item) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Tables_INTERFACE_DEFINED__ */ +#ifndef __Columns_INTERFACE_DEFINED__ +#define __Columns_INTERFACE_DEFINED__ +/* interface ADOColumns */ +/* [object][uuid][helpcontext][nonextensible][dual] */ +EXTERN_C const IID IID_Columns; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000061D-0000-0010-8000-00AA006D2EA4") + ADOColumns : public _ADOCollection + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt Column **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ VARIANT Item, + /* [defaultvalue][in] */ DataTypeEnum Type = adVarWChar, + /* [defaultvalue][in] */ long DefinedSize = 0) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Item) = 0; + + }; + + +#else /* C style interface */ + typedef struct ColumnsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOColumns * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOColumns * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOColumns * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOColumns * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOColumns * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOColumns * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOColumns * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOColumns * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOColumns * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOColumns * This); + + DECLSPEC_XFGVIRT(Columns, get_Item) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOColumns * This, + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt Column **ppvObject); + + DECLSPEC_XFGVIRT(Columns, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in ADOColumns * This, + /* [in] */ VARIANT Item, + /* [defaultvalue][in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ long DefinedSize); + + DECLSPEC_XFGVIRT(Columns, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in ADOColumns * This, + /* [in] */ VARIANT Item); + + END_INTERFACE + } ColumnsVtbl; + interface Columns + { + CONST_VTBL struct ColumnsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Columns_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Columns_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Columns_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Columns_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Columns_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Columns_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Columns_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Columns_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Columns__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Columns_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Columns_get_Item(This,Item,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Item,ppvObject) ) +#define Columns_Append(This,Item,Type,DefinedSize) \ + ( (This)->lpVtbl -> Append(This,Item,Type,DefinedSize) ) +#define Columns_Delete(This,Item) \ + ( (This)->lpVtbl -> Delete(This,Item) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Columns_INTERFACE_DEFINED__ */ +#ifndef __Procedures_INTERFACE_DEFINED__ +#define __Procedures_INTERFACE_DEFINED__ +/* interface ADOProcedures */ +/* [object][uuid][helpcontext][nonextensible][dual] */ +EXTERN_C const IID IID_Procedures; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000626-0000-0010-8000-00AA006D2EA4") + ADOProcedures : public _ADOCollection + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt ADOProcedure **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ __RPC__in BSTR Name, + /* [in] */ __RPC__in_opt IDispatch *Command) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Item) = 0; + + }; + + +#else /* C style interface */ + typedef struct ProceduresVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOProcedures * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOProcedures * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOProcedures * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOProcedures * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOProcedures * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOProcedures * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOProcedures * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOProcedures * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOProcedures * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOProcedures * This); + + DECLSPEC_XFGVIRT(Procedures, get_Item) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOProcedures * This, + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt ADOProcedure **ppvObject); + + DECLSPEC_XFGVIRT(Procedures, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in ADOProcedures * This, + /* [in] */ __RPC__in BSTR Name, + /* [in] */ __RPC__in_opt IDispatch *Command); + + DECLSPEC_XFGVIRT(Procedures, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in ADOProcedures * This, + /* [in] */ VARIANT Item); + + END_INTERFACE + } ProceduresVtbl; + interface Procedures + { + CONST_VTBL struct ProceduresVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Procedures_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Procedures_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Procedures_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Procedures_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Procedures_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Procedures_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Procedures_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Procedures_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Procedures__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Procedures_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Procedures_get_Item(This,Item,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Item,ppvObject) ) +#define Procedures_Append(This,Name,Command) \ + ( (This)->lpVtbl -> Append(This,Name,Command) ) +#define Procedures_Delete(This,Item) \ + ( (This)->lpVtbl -> Delete(This,Item) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Procedures_INTERFACE_DEFINED__ */ +#ifndef __Views_INTERFACE_DEFINED__ +#define __Views_INTERFACE_DEFINED__ +/* interface ADOViews */ +/* [object][uuid][helpcontext][nonextensible][dual] */ +EXTERN_C const IID IID_Views; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000614-0000-0010-8000-00AA006D2EA4") + ADOViews : public _ADOCollection + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt ADOView **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ __RPC__in BSTR Name, + /* [in] */ __RPC__in_opt IDispatch *Command) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Item) = 0; + + }; + + +#else /* C style interface */ + typedef struct ViewsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOViews * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOViews * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOViews * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOViews * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOViews * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOViews * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOViews * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOViews * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOViews * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOViews * This); + + DECLSPEC_XFGVIRT(Views, get_Item) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOViews * This, + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt ADOView **ppvObject); + + DECLSPEC_XFGVIRT(Views, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in ADOViews * This, + /* [in] */ __RPC__in BSTR Name, + /* [in] */ __RPC__in_opt IDispatch *Command); + + DECLSPEC_XFGVIRT(Views, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in ADOViews * This, + /* [in] */ VARIANT Item); + + END_INTERFACE + } ViewsVtbl; + interface Views + { + CONST_VTBL struct ViewsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Views_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Views_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Views_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Views_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Views_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Views_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Views_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Views_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Views__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Views_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Views_get_Item(This,Item,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Item,ppvObject) ) +#define Views_Append(This,Name,Command) \ + ( (This)->lpVtbl -> Append(This,Name,Command) ) +#define Views_Delete(This,Item) \ + ( (This)->lpVtbl -> Delete(This,Item) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Views_INTERFACE_DEFINED__ */ +#ifndef __Indexes_INTERFACE_DEFINED__ +#define __Indexes_INTERFACE_DEFINED__ +/* interface ADOIndexes */ +/* [object][uuid][helpcontext][nonextensible][dual] */ +EXTERN_C const IID IID_Indexes; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000620-0000-0010-8000-00AA006D2EA4") + ADOIndexes : public _ADOCollection + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt Index **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ VARIANT Item, + /* [optional][in] */ VARIANT columns) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Item) = 0; + + }; + + +#else /* C style interface */ + typedef struct IndexesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOIndexes * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOIndexes * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOIndexes * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOIndexes * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOIndexes * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOIndexes * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOIndexes * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOIndexes * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOIndexes * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOIndexes * This); + + DECLSPEC_XFGVIRT(Indexes, get_Item) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOIndexes * This, + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt Index **ppvObject); + + DECLSPEC_XFGVIRT(Indexes, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in ADOIndexes * This, + /* [in] */ VARIANT Item, + /* [optional][in] */ VARIANT columns); + + DECLSPEC_XFGVIRT(Indexes, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in ADOIndexes * This, + /* [in] */ VARIANT Item); + + END_INTERFACE + } IndexesVtbl; + interface Indexes + { + CONST_VTBL struct IndexesVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Indexes_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Indexes_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Indexes_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Indexes_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Indexes_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Indexes_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Indexes_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Indexes_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Indexes__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Indexes_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Indexes_get_Item(This,Item,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Item,ppvObject) ) +#define Indexes_Append(This,Item,columns) \ + ( (This)->lpVtbl -> Append(This,Item,columns) ) +#define Indexes_Delete(This,Item) \ + ( (This)->lpVtbl -> Delete(This,Item) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Indexes_INTERFACE_DEFINED__ */ +#ifndef __Keys_INTERFACE_DEFINED__ +#define __Keys_INTERFACE_DEFINED__ +/* interface ADOKeys */ +/* [object][uuid][helpcontext][nonextensible][dual] */ +EXTERN_C const IID IID_Keys; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000623-0000-0010-8000-00AA006D2EA4") + ADOKeys : public _ADOCollection + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt Key **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ VARIANT Item, + /* [defaultvalue][in] */ KeyTypeEnum Type, + /* [optional][in] */ VARIANT Column, + /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOTable = (BSTR)L"", + /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOColumn = (BSTR)L"") = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Item) = 0; + + }; + + +#else /* C style interface */ + typedef struct KeysVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOKeys * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOKeys * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOKeys * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOKeys * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOKeys * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOKeys * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOKeys * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOKeys * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOKeys * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOKeys * This); + + DECLSPEC_XFGVIRT(Keys, get_Item) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOKeys * This, + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt Key **ppvObject); + + DECLSPEC_XFGVIRT(Keys, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in ADOKeys * This, + /* [in] */ VARIANT Item, + /* [defaultvalue][in] */ KeyTypeEnum Type, + /* [optional][in] */ VARIANT Column, + /* [defaultvalue][in] */ __RPC__in BSTR RelatedTable, + /* [defaultvalue][in] */ __RPC__in BSTR RelatedColumn); + + DECLSPEC_XFGVIRT(Keys, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in ADOKeys * This, + /* [in] */ VARIANT Item); + + END_INTERFACE + } KeysVtbl; + interface Keys + { + CONST_VTBL struct KeysVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Keys_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Keys_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Keys_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Keys_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Keys_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Keys_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Keys_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Keys_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Keys__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Keys_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Keys_get_Item(This,Item,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Item,ppvObject) ) +#define Keys_Append(This,Item,Type,Column,RelatedTable,RelatedColumn) \ + ( (This)->lpVtbl -> Append(This,Item,Type,Column,RelatedTable,RelatedColumn) ) +#define Keys_Delete(This,Item) \ + ( (This)->lpVtbl -> Delete(This,Item) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Keys_INTERFACE_DEFINED__ */ +#ifndef __Users_INTERFACE_DEFINED__ +#define __Users_INTERFACE_DEFINED__ +/* interface ADOUsers */ +/* [object][uuid][helpcontext][nonextensible][dual] */ +EXTERN_C const IID IID_Users; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000061A-0000-0010-8000-00AA006D2EA4") + ADOUsers : public _ADOCollection + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt User **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ VARIANT Item, + /* [defaultvalue][in] */ __RPC__in BSTR Password = (BSTR)L"") = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Item) = 0; + + }; + + +#else /* C style interface */ + typedef struct UsersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOUsers * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOUsers * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOUsers * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOUsers * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOUsers * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOUsers * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOUsers * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOUsers * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOUsers * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOUsers * This); + + DECLSPEC_XFGVIRT(Users, get_Item) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOUsers * This, + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt User **ppvObject); + + DECLSPEC_XFGVIRT(Users, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in ADOUsers * This, + /* [in] */ VARIANT Item, + /* [defaultvalue][in] */ __RPC__in BSTR Password); + + DECLSPEC_XFGVIRT(Users, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in ADOUsers * This, + /* [in] */ VARIANT Item); + + END_INTERFACE + } UsersVtbl; + interface Users + { + CONST_VTBL struct UsersVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Users_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Users_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Users_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Users_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Users_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Users_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Users_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Users_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Users__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Users_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Users_get_Item(This,Item,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Item,ppvObject) ) +#define Users_Append(This,Item,Password) \ + ( (This)->lpVtbl -> Append(This,Item,Password) ) +#define Users_Delete(This,Item) \ + ( (This)->lpVtbl -> Delete(This,Item) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Users_INTERFACE_DEFINED__ */ +#ifndef __Groups_INTERFACE_DEFINED__ +#define __Groups_INTERFACE_DEFINED__ +/* interface ADOGroups */ +/* [object][uuid][helpcontext][nonextensible][dual] */ +EXTERN_C const IID IID_Groups; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000617-0000-0010-8000-00AA006D2EA4") + ADOGroups : public _ADOCollection + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt Group **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ VARIANT Item) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Item) = 0; + + }; + + +#else /* C style interface */ + typedef struct GroupsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOGroups * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOGroups * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOGroups * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOGroups * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOGroups * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOGroups * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOGroups * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOGroups * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOGroups * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOGroups * This); + + DECLSPEC_XFGVIRT(Groups, get_Item) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOGroups * This, + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt Group **ppvObject); + + DECLSPEC_XFGVIRT(Groups, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in ADOGroups * This, + /* [in] */ VARIANT Item); + + DECLSPEC_XFGVIRT(Groups, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in ADOGroups * This, + /* [in] */ VARIANT Item); + + END_INTERFACE + } GroupsVtbl; + interface Groups + { + CONST_VTBL struct GroupsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Groups_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Groups_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Groups_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Groups_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Groups_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Groups_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Groups_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Groups_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Groups__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Groups_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Groups_get_Item(This,Item,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Item,ppvObject) ) +#define Groups_Append(This,Item) \ + ( (This)->lpVtbl -> Append(This,Item) ) +#define Groups_Delete(This,Item) \ + ( (This)->lpVtbl -> Delete(This,Item) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Groups_INTERFACE_DEFINED__ */ +#ifndef __Properties_INTERFACE_DEFINED__ +#define __Properties_INTERFACE_DEFINED__ +/* interface ADOProperties */ +/* [object][uuid][helpcontext][nonextensible][dual] */ +EXTERN_C const IID IID_Properties; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000504-0000-0010-8000-00AA006D2EA4") + ADOProperties : public _ADOCollection + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt ADOProperty **ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct PropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOProperties * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOProperties * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOProperties * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOProperties * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOProperties * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOProperties * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOProperties * This); + + DECLSPEC_XFGVIRT(Properties, get_Item) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOProperties * This, + /* [in] */ VARIANT Item, + /* [retval][out] */ __RPC__deref_out_opt ADOProperty **ppvObject); + + END_INTERFACE + } PropertiesVtbl; + interface Properties + { + CONST_VTBL struct PropertiesVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Properties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Properties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Properties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Properties_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Properties_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Properties_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Properties_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Properties_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Properties__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Properties_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Properties_get_Item(This,Item,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Item,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Properties_INTERFACE_DEFINED__ */ +#endif /* __ADOX_LIBRARY_DEFINED__ */ +/* interface __MIDL_itf_adocat_0000_0001 */ +/* [local] */ +#pragma warning(pop) +extern RPC_IF_HANDLE __MIDL_itf_adocat_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_adocat_0000_0001_v0_0_s_ifspec; +/* Additional Prototypes for ALL interfaces */ +/* end of Additional Prototypes */ +#ifdef __cplusplus +} +#endif +#endif +/*********************************** +Forwards +*/ +#define ADOCatalog _ADOCatalog +#define ADOTable _ADOTable +#define ADOGroup _ADOGroup +#define ADOUser _ADOUser +#define ADOIndex _ADOIndex +#define ADOColumn _ADOColumn +#define ADOKey _ADOKey +#define ADOParameter _ADOParameter +#define ADOCollection _ADOCollection +#define ADODynaCollection _ADODynaCollection + + +#endif // _ADOCTINT_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adodef.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adodef.h new file mode 100644 index 0000000000000000000000000000000000000000..9b51657922080dd9e8b0e5b38071db36559f8219 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adodef.h @@ -0,0 +1,52 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//----------------------------------------------------------------------------- +// File: ADODEF.H +// +// Contents: ADO version definition. +// +// +// Comments: +// +//----------------------------------------------------------------------------- + +#ifndef _ADODEF_H_ +#define _ADODEF_H_ + +// Change the version numbers below when there are any updates in the version of the type libraries, +// which should be changed after some updates to the type libraries + +// TYPELIB MAJOR VERSIONS +#define ADO_MAJOR 6 +#define ADOR_MAJOR 6 +#define ADOX_MAJOR 6 +#define ADOMD_MAJOR 6 +#define JRO_MAJOR 2 + +// TYPELIB MINOR VERSION +#define ADO_MINOR 1 +#define ADOR_MINOR 0 +#define ADOX_MINOR 0 +#define ADOMD_MINOR 0 +#define JRO_MINOR 6 + +#define ADO_VERSION ADO_MAJOR##.##ADO_MINOR +#define ADOR_VERSION ADOR_MAJOR##.##ADOR_MINOR +#define ADOX_VERSION ADOX_MAJOR##.##ADOX_MINOR +#define ADOMD_VERSION ADOMD_MAJOR##.##ADOMD_MINOR +#define JRO_VERSION JRO_MAJOR##.##JRO_MINOR + +#define ADO_LIBRARYNAME "Microsoft ActiveX Data Objects 6.1 Library" +#define ADOR_LIBRARYNAME "Microsoft ActiveX Data Objects Recordset 6.0 Library" +#define ADOX_LIBRARYNAME "Microsoft ADO Ext. 6.0 for DDL and Security" +#define ADOMD_LIBRARYNAME "Microsoft ActiveX Data Objects (Multi-dimensional) 6.0 Library" +#define JRO_LIBRARYNAME "Microsoft Jet and Replication Objects 2.6 Library" + +#define ADOMD_TYPELIB_UUID uuid(22813728-8BD3-11D0-B4EF-00A0C9138CA4) +#define JRO_TYPELIB_UUID uuid(AC3B8B4C-B6CA-11d1-9F31-00C04FC29D52) + +#endif // _ADODEF_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adogpool.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adogpool.h new file mode 100644 index 0000000000000000000000000000000000000000..c262c997f2cb439333b7bf224f20db00218f4de9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adogpool.h @@ -0,0 +1,2663 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//----------------------------------------------------------------------------- +// File: adogpool.h +// +// Contents: ADO GUIDs definition +// +// Comments: +// +//----------------------------------------------------------------------------- + + +// Breaking Change Note: +// +// The ADO interfaces were originally platform-dependent and not script friendly. ADO interface IID's are reguided +// in this header file. Therefore, newly-compiled applications may not run on downlevel OSes, since the new interface +// IID's are not available on downlevel OSes. To avoid this compatibility issue, customers can either: +// (1) install the KB983246 on all downlevel OSes +// (2) Change your target platform to Win7 or below. This will use back the IID defined in Win7 SDK and +// they will be compatible for downlevel OSes + + +#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_WIN8) + +// Application is targetting below Windows 8 +#include "adogpool_Backcompat.h" + +#else + +// Application is targetting Windows 8 or above +#ifndef ADO_SUPPRESS_MESSAGE +#ifdef _MSC_VER +#pragma message( "Change your target platform to Windows 7 or below if your application requires backward compatibility for the ADO interface." ) +#endif // _MSC_VER +#endif // ADO_SUPPRESS_MESSAGE + +#ifndef INCLUDING_ADOGUIDS +#error Incorrect usage of this include file - cannot be used directly +#endif + + +// How to assign new GUID: +// +// 1) In this file search for macro RESERVED_GUIDS_BEYOND_THIS_POINT +// 2) Take first reserved GUID in this section and move #ifdef RESERVED_GUIDS_BEYOND_THIS_POINT +// beyond the guid being newly assigned +// 3) rename all instances of pattern ADO_Reserved_xxx (there are 5 of them including the comment) +// with the desired GUID name +// 4) for midl, usage is typically: uuid(ADO_Reserved_1) +// for C++: ADO_Reserved_1 +// +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Guids from adoid.h follow: + + +#define MAXAVAILABLEGUID 0x00000570 +#define MAXAVAILABLEGUIDALL 0x0000057F + + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Version-independent Typelib ID: + +#define LIBID_ADO LIBID_ADO60 +#define LIBID_ADOR LIBID_ADOR20 +#define LIBID_CADO10 LIBID_ADO20 +#define LIBID_CADOR10 LIBID_ADOR20 + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Version specific Typelib ID: + +// LIBID_ADO20 +#define LIBID_ADO20 GUID_BUILDER(LIBID_ADO20,00000200,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO20; +#undef LIBID_ADO20 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADO21 +#define LIBID_ADO21 GUID_BUILDER(LIBID_ADO21,00000201,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO21; +#undef LIBID_ADO21 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADO25 +#define LIBID_ADO25 GUID_BUILDER(LIBID_ADO25,00000205,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO25; +#undef LIBID_ADO25 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADO26 +#define LIBID_ADO26 GUID_BUILDER(LIBID_ADO26,00000206,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO26; +#undef LIBID_ADO26 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADO27 +#define LIBID_ADO27 GUID_BUILDER(LIBID_ADO27,EF53050B,882E,4776,B6,43,ED,A4,72,E8,E3,F2) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO27; +#undef LIBID_ADO27 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADO28 this is reserved GUID 11 we have to get it from there as 9.0 sterted using GUIDs in parallel with 28 +#define LIBID_ADO28 GUID_BUILDER(LIBID_ADO28,2A75196C,D9EB,4129,B8,03,93,13,27,F7,2D,5C) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO28; +#undef LIBID_ADO28 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADO60 +#define LIBID_ADO60 GUID_BUILDER(LIBID_ADO60,B691E011,1797,432E,90,7A,4D,8C,69,33,91,29) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO60; +#undef LIBID_ADO60 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADOR20 +#define LIBID_ADOR20 GUID_BUILDER(LIBID_ADOR20,00000300,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADOR20; +#undef LIBID_ADOR20 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADOR25 +#define LIBID_ADOR25 GUID_BUILDER(LIBID_ADOR25,00000305,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADOR25; +#undef LIBID_ADOR25 +#endif // IMMEDIATE_GUID_USE + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Interface & Class ID (version-independent) + +// CLSID_CADOError +#define CLSID_CADOError GUID_BUILDER(CLSID_CADOError,00000541,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOError; +#undef CLSID_CADOError +#endif // IMMEDIATE_GUID_USE + +// IID_IADOError +#define IID_IADOError GUID_BUILDER(IID_IADOError,00000500,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOError; +#undef IID_IADOError +#endif // IMMEDIATE_GUID_USE + +// IID_IADOErrors +#define IID_IADOErrors GUID_BUILDER(IID_IADOErrors,00000501,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOErrors; +#undef IID_IADOErrors +#endif // IMMEDIATE_GUID_USE + +// IID_IADOProperty +#define IID_IADOProperty GUID_BUILDER(IID_IADOProperty,00000503,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOProperty; +#undef IID_IADOProperty +#endif // IMMEDIATE_GUID_USE + +// IID_IADOProperties +#define IID_IADOProperties GUID_BUILDER(IID_IADOProperties,00000504,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOProperties; +#undef IID_IADOProperties +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOField +#define CLSID_CADOField GUID_BUILDER(CLSID_CADOField,0000053A,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOField; +#undef CLSID_CADOField +#endif // IMMEDIATE_GUID_USE + +// IID_IADOField +#define IID_IADOField GUID_BUILDER(IID_IADOField,00001569,0000,0010,80,00,00,AA,00,6D,2E,A4) +#define IID_IADOField25 GUID_BUILDER(IID_IADOField25,00001569,0000,0010,80,00,00,AA,00,6D,2E,A4) // alias of IID_IADOField +#ifdef IMMEDIATE_GUID_USE +IID_IADOField; +IID_IADOField25; +#undef IID_IADOField +#undef IID_IADOField25 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOFields +#define IID_IADOFields GUID_BUILDER(IID_IADOFields,00001564,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOFields; +#undef IID_IADOFields +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOCommand +#define CLSID_CADOCommand GUID_BUILDER(CLSID_CADOCommand,00000507,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOCommand; +#undef CLSID_CADOCommand +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCommand +#define IID_IADOCommand GUID_BUILDER(IID_IADOCommand,986761E8,7269,4890,AA,65,AD,7C,03,69,7A,6D) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCommand; +#undef IID_IADOCommand +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCommands +#define IID_IADOCommands GUID_BUILDER(IID_IADOCommands,00000509,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCommands; +#undef IID_IADOCommands +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCommandConstruction +#define IID_IADOCommandConstruction GUID_BUILDER(IID_IADOCommandConstruction,00000517,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCommandConstruction; +#undef IID_IADOCommandConstruction +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOParameter +#define CLSID_CADOParameter GUID_BUILDER(CLSID_CADOParameter,0000050B,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOParameter; +#undef CLSID_CADOParameter +#endif // IMMEDIATE_GUID_USE + +// IID_IADOParameter +#define IID_IADOParameter GUID_BUILDER(IID_IADOParameter,0000150C,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOParameter; +#undef IID_IADOParameter +#endif // IMMEDIATE_GUID_USE + +// IID_IADOParameters +#define IID_IADOParameters GUID_BUILDER(IID_IADOParameters,0000150D,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOParameters; +#undef IID_IADOParameters +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADORecordset +#define CLSID_CADORecordset GUID_BUILDER(CLSID_CADORecordset,00000535,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADORecordset; +#undef CLSID_CADORecordset +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordset +#define IID_IADORecordset GUID_BUILDER(IID_IADORecordset,00001556,0000,0010,80,00,00,AA,00,6D,2E,A4) +#define IID_IADORecordset25 GUID_BUILDER(IID_IADORecordset25,00001556,0000,0010,80,00,00,AA,00,6D,2E,A4) // alias of IID_IADORecordset +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordset; +IID_IADORecordset25; +#undef IID_IADORecordset +#undef IID_IADORecordset25 +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordsets +#define IID_IADORecordsets GUID_BUILDER(IID_IADORecordsets,0000050F,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordsets; +#undef IID_IADORecordsets +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordsetConstruction +#define IID_IADORecordsetConstruction GUID_BUILDER(IID_IADORecordsetConstruction,00001283,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordsetConstruction; +#undef IID_IADORecordsetConstruction +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCollection +#define IID_IADOCollection GUID_BUILDER(IID_IADOCollection,00000512,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCollection; +#undef IID_IADOCollection +#endif // IMMEDIATE_GUID_USE + +// IID_IADODynaCollection +#define IID_IADODynaCollection GUID_BUILDER(IID_IADODynaCollection,00000513,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADODynaCollection; +#undef IID_IADODynaCollection +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOConnection +#define CLSID_CADOConnection GUID_BUILDER(CLSID_CADOConnection,00000514,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOConnection; +#undef CLSID_CADOConnection +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnection +#define IID_IADOConnection GUID_BUILDER(IID_IADOConnection,00001550,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnection; +#undef IID_IADOConnection +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnections +#define IID_IADOConnections GUID_BUILDER(IID_IADOConnections,00000518,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnections; +#undef IID_IADOConnections +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnectionConstruction +#define IID_IADOConnectionConstruction GUID_BUILDER(IID_IADOConnectionConstruction,00000551,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnectionConstruction; +#undef IID_IADOConnectionConstruction +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADORecord +#define CLSID_CADORecord GUID_BUILDER(CLSID_CADORecord,00000560,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADORecord; +#undef CLSID_CADORecord +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADORecField +#define CLSID_CADORecField GUID_BUILDER(CLSID_CADORecField,00000561,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADORecField; +#undef CLSID_CADORecField +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecord +#define IID_IADORecord GUID_BUILDER(IID_IADORecord,00001562,0000,0010,80,00,00,AA,00,6D,2E,A4) +#define IID_IADORecord25 GUID_BUILDER(IID_IADORecord25,00001562,0000,0010,80,00,00,AA,00,6D,2E,A4) // alias of IID_IADORecord +#ifdef IMMEDIATE_GUID_USE +IID_IADORecord; +IID_IADORecord25; +#undef IID_IADORecord +#undef IID_IADORecord25 +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordConstruction +#define IID_IADORecordConstruction GUID_BUILDER(IID_IADORecordConstruction,00000567,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordConstruction; +#undef IID_IADORecordConstruction +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOStream +#define CLSID_CADOStream GUID_BUILDER(CLSID_CADOStream,00000566,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOStream; +#undef CLSID_CADOStream +#endif // IMMEDIATE_GUID_USE + +// IID_IADOStream +#define IID_IADOStream GUID_BUILDER(IID_IADOStream,00001565,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOStream; +#undef IID_IADOStream +#endif // IMMEDIATE_GUID_USE + +// IID_IADOStreamConstruction +#define IID_IADOStreamConstruction GUID_BUILDER(IID_IADOStreamConstruction,00000568,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOStreamConstruction; +#undef IID_IADOStreamConstruction +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordsetEvents +#define IID_IADORecordsetEvents GUID_BUILDER(IID_IADORecordsetEvents,00001266,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordsetEvents; +#undef IID_IADORecordsetEvents +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnectionEvents +#define IID_IADOConnectionEvents GUID_BUILDER(IID_IADOConnectionEvents,00001400,0000,0010,80,00,00,AA,00,6D,2E,A4) +#define IID_ConnectionEvents GUID_BUILDER(IID_ConnectionEvents,00001400,0000,0010,80,00,00,AA,00,6D,2E,A4) // alias of IID_IADOConnectionEvents +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnectionEvents; +IID_ConnectionEvents; +#undef IID_IADOConnectionEvents +#undef IID_ConnectionEvents +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordsetEventsVt +#define IID_IADORecordsetEventsVt GUID_BUILDER(IID_IADORecordsetEventsVt,00001403,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordsetEventsVt; +#undef IID_IADORecordsetEventsVt +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnectionEventsVt +#define IID_IADOConnectionEventsVt GUID_BUILDER(IID_IADOConnectionEventsVt,00001402,0000,0010,80,00,00,AA,00,6D,2E,A4) +#define IID_ConnectionEventsVt GUID_BUILDER(IID_ConnectionEventsVt,00001402,0000,0010,80,00,00,AA,00,6D,2E,A4) // alias of IID_IADOConnectionEventsVt +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnectionEventsVt; +IID_ConnectionEventsVt; +#undef IID_IADOConnectionEventsVt +#undef IID_ConnectionEventsVt +#endif // IMMEDIATE_GUID_USE + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Interface ID (version-dependent) + +// IID_IADOField15 +#define IID_IADOField15 GUID_BUILDER(IID_IADOField15,00001505,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOField15; +#undef IID_IADOField15 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOField20 +#define IID_IADOField20 GUID_BUILDER(IID_IADOField20,0000154C,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOField20; +#undef IID_IADOField20 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOField25 was defined as IID_IADOField (see IID_IADOField) + +#ifdef _LOCKBYTESUPPORT_ +// IID_IADOField26 +#define IID_IADOField26 GUID_BUILDER(IID_IADOField26,00001557,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOField26; +#undef IID_IADOField26 +#endif // IMMEDIATE_GUID_USE +#endif // _LOCKBYTESUPPORT_ + + + +// IID_IADOFields15 +#define IID_IADOFields15 GUID_BUILDER(IID_IADOFields15,00001506,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOFields15; +#undef IID_IADOFields15 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOFields20 +#define IID_IADOFields20 GUID_BUILDER(IID_IADOFields20,0000154D,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOFields20; +#undef IID_IADOFields20 +#endif // IMMEDIATE_GUID_USE + + + +// IID_IADOCommand15 +#define IID_IADOCommand15 GUID_BUILDER(IID_IADOCommand15,00001508,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCommand15; +#undef IID_IADOCommand15 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCommand25 +#define IID_IADOCommand25 GUID_BUILDER(IID_IADOCommand25,0000154E,0000,0010,80,00,00,AA,00,6D,2E,A4) + +#ifdef IMMEDIATE_GUID_USE +IID_IADOCommand25; +#undef IID_IADOCommand25 +#endif // IMMEDIATE_GUID_USE + + + +// IID_IADORecordset15 +#define IID_IADORecordset15 GUID_BUILDER(IID_IADORecordset15,0000150E,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordset15; +#undef IID_IADORecordset15 +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordset20 +#define IID_IADORecordset20 GUID_BUILDER(IID_IADORecordset20,0000154F,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordset20; +#undef IID_IADORecordset20 +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordset21 +#define IID_IADORecordset21 GUID_BUILDER(IID_IADORecordset21,00001555,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordset21; +#undef IID_IADORecordset21 +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordset25 was defined as IID_IADORecordset (see IID_IADORecordset above) + + + +// IID_IADOConnection15 +#define IID_IADOConnection15 GUID_BUILDER(IID_IADOConnection15,00001515,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnection15; +#undef IID_IADOConnection15 +#endif // IMMEDIATE_GUID_USE + + + +// IID_IADOConnectionConstruction15 +#define IID_IADOConnectionConstruction15 GUID_BUILDER(IID_IADOConnectionConstruction15,00000516,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnectionConstruction15; +#undef IID_IADOConnectionConstruction15 +#endif // IMMEDIATE_GUID_USE + + + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Guids from adoidall.h follow: + +// IID_EnumCursorType +#define IID_EnumCursorType GUID_BUILDER(IID_EnumCursorType,0000051B,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCursorType; +#undef IID_EnumCursorType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCursorOption +#define IID_EnumCursorOption GUID_BUILDER(IID_EnumCursorOption,0000051C,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCursorOption; +#undef IID_EnumCursorOption +#endif // IMMEDIATE_GUID_USE + +// IID_EnumLockType +#define IID_EnumLockType GUID_BUILDER(IID_EnumLockType,0000051D,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumLockType; +#undef IID_EnumLockType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumExecuteOption +#define IID_EnumExecuteOption GUID_BUILDER(IID_EnumExecuteOption,0000051E,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumExecuteOption; +#undef IID_EnumExecuteOption +#endif // IMMEDIATE_GUID_USE + +// IID_EnumDataType +#define IID_EnumDataType GUID_BUILDER(IID_EnumDataType,0000051F,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumDataType; +#undef IID_EnumDataType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumConnectPrompt +#define IID_EnumConnectPrompt GUID_BUILDER(IID_EnumConnectPrompt,00000520,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumConnectPrompt; +#undef IID_EnumConnectPrompt +#endif // IMMEDIATE_GUID_USE + +// IID_EnumConnectMode +#define IID_EnumConnectMode GUID_BUILDER(IID_EnumConnectMode,00000521,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumConnectMode; +#undef IID_EnumConnectMode +#endif // IMMEDIATE_GUID_USE + +// IID_EnumPrepareOption +#define IID_EnumPrepareOption GUID_BUILDER(IID_EnumPrepareOption,00000522,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumPrepareOption; +#undef IID_EnumPrepareOption +#endif // IMMEDIATE_GUID_USE + +// IID_EnumIsolationLevel +#define IID_EnumIsolationLevel GUID_BUILDER(IID_EnumIsolationLevel,00000523,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumIsolationLevel; +#undef IID_EnumIsolationLevel +#endif // IMMEDIATE_GUID_USE + +// IID_EnumXactAttribute +#define IID_EnumXactAttribute GUID_BUILDER(IID_EnumXactAttribute,00000524,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumXactAttribute; +#undef IID_EnumXactAttribute +#endif // IMMEDIATE_GUID_USE + +// IID_EnumFieldAttribute +#define IID_EnumFieldAttribute GUID_BUILDER(IID_EnumFieldAttribute,00000525,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumFieldAttribute; +#undef IID_EnumFieldAttribute +#endif // IMMEDIATE_GUID_USE + +// IID_EnumEditMode +#define IID_EnumEditMode GUID_BUILDER(IID_EnumEditMode,00000526,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumEditMode; +#undef IID_EnumEditMode +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRecordStatus +#define IID_EnumRecordStatus GUID_BUILDER(IID_EnumRecordStatus,00000527,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRecordStatus; +#undef IID_EnumRecordStatus +#endif // IMMEDIATE_GUID_USE + +// IID_EnumPosition +#define IID_EnumPosition GUID_BUILDER(IID_EnumPosition,00000528,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumPosition; +#undef IID_EnumPosition +#endif // IMMEDIATE_GUID_USE + +// IID_EnumPropertyAttributes +#define IID_EnumPropertyAttributes GUID_BUILDER(IID_EnumPropertyAttributes,00000529,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumPropertyAttributes; +#undef IID_EnumPropertyAttributes +#endif // IMMEDIATE_GUID_USE + +// IID_EnumErrorValue +#define IID_EnumErrorValue GUID_BUILDER(IID_EnumErrorValue,0000052A,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumErrorValue; +#undef IID_EnumErrorValue +#endif // IMMEDIATE_GUID_USE + +// IID_EnumParameterAttributes +#define IID_EnumParameterAttributes GUID_BUILDER(IID_EnumParameterAttributes,0000052B,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumParameterAttributes; +#undef IID_EnumParameterAttributes +#endif // IMMEDIATE_GUID_USE + +// IID_EnumParameterDirection +#define IID_EnumParameterDirection GUID_BUILDER(IID_EnumParameterDirection,0000052C,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumParameterDirection; +#undef IID_EnumParameterDirection +#endif // IMMEDIATE_GUID_USE + +// IID_EnumFilterCriteria +#define IID_EnumFilterCriteria GUID_BUILDER(IID_EnumFilterCriteria,0000052D,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumFilterCriteria; +#undef IID_EnumFilterCriteria +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCommandType +#define IID_EnumCommandType GUID_BUILDER(IID_EnumCommandType,0000052E,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCommandType; +#undef IID_EnumCommandType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCursorLocation +#define IID_EnumCursorLocation GUID_BUILDER(IID_EnumCursorLocation,0000052F,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCursorLocation; +#undef IID_EnumCursorLocation +#endif // IMMEDIATE_GUID_USE + +// IID_EnumEventStatus +#define IID_EnumEventStatus GUID_BUILDER(IID_EnumEventStatus,00000530,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumEventStatus; +#undef IID_EnumEventStatus +#endif // IMMEDIATE_GUID_USE + +// IID_EnumEventReason +#define IID_EnumEventReason GUID_BUILDER(IID_EnumEventReason,00000531,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumEventReason; +#undef IID_EnumEventReason +#endif // IMMEDIATE_GUID_USE + +// IID_EnumObjectState +#define IID_EnumObjectState GUID_BUILDER(IID_EnumObjectState,00000532,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumObjectState; +#undef IID_EnumObjectState +#endif // IMMEDIATE_GUID_USE + +// IID_EnumSchema +#define IID_EnumSchema GUID_BUILDER(IID_EnumSchema,00000533,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumSchema; +#undef IID_EnumSchema +#endif // IMMEDIATE_GUID_USE + +// IID_EnumMarshalOptions +#define IID_EnumMarshalOptions GUID_BUILDER(IID_EnumMarshalOptions,00000540,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumMarshalOptions; +#undef IID_EnumMarshalOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumConnectOption +#define IID_EnumConnectOption GUID_BUILDER(IID_EnumConnectOption,00000541,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumConnectOption; +#undef IID_EnumConnectOption +#endif // IMMEDIATE_GUID_USE + +// IID_EnumGetRowsOption +#define IID_EnumGetRowsOption GUID_BUILDER(IID_EnumGetRowsOption,00000542,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumGetRowsOption; +#undef IID_EnumGetRowsOption +#endif // IMMEDIATE_GUID_USE + +// IID_EnumAffect +#define IID_EnumAffect GUID_BUILDER(IID_EnumAffect,00000543,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumAffect; +#undef IID_EnumAffect +#endif // IMMEDIATE_GUID_USE + +// IID_EnumResync +#define IID_EnumResync GUID_BUILDER(IID_EnumResync,00000544,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumResync; +#undef IID_EnumResync +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCompare +#define IID_EnumCompare GUID_BUILDER(IID_EnumCompare,00000545,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCompare; +#undef IID_EnumCompare +#endif // IMMEDIATE_GUID_USE + +// IID_EnumFilterGroup +#define IID_EnumFilterGroup GUID_BUILDER(IID_EnumFilterGroup,00000546,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumFilterGroup; +#undef IID_EnumFilterGroup +#endif // IMMEDIATE_GUID_USE + +// IID_EnumSearchDirection +#define IID_EnumSearchDirection GUID_BUILDER(IID_EnumSearchDirection,00000547,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumSearchDirection; +#undef IID_EnumSearchDirection +#endif // IMMEDIATE_GUID_USE + +// IID_EnumPersistFormat +#define IID_EnumPersistFormat GUID_BUILDER(IID_EnumPersistFormat,00000548,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumPersistFormat; +#undef IID_EnumPersistFormat +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStringFormat +#define IID_EnumStringFormat GUID_BUILDER(IID_EnumStringFormat,00000549,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStringFormat; +#undef IID_EnumStringFormat +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRDSUpdateCriteria +#define IID_EnumRDSUpdateCriteria GUID_BUILDER(IID_EnumRDSUpdateCriteria,0000054A,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRDSUpdateCriteria; +#undef IID_EnumRDSUpdateCriteria +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRDSAsyncThreadPriority +#define IID_EnumRDSAsyncThreadPriority GUID_BUILDER(IID_EnumRDSAsyncThreadPriority,0000054B,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRDSAsyncThreadPriority; +#undef IID_EnumRDSAsyncThreadPriority +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCEResync +#define IID_EnumCEResync GUID_BUILDER(IID_EnumCEResync,00000553,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCEResync; +#undef IID_EnumCEResync +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRDSAutoRecalc +#define IID_EnumRDSAutoRecalc GUID_BUILDER(IID_EnumRDSAutoRecalc,00000554,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRDSAutoRecalc; +#undef IID_EnumRDSAutoRecalc +#endif // IMMEDIATE_GUID_USE + +// IID_EnumSeek +#define IID_EnumSeek GUID_BUILDER(IID_EnumSeek,00000552,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumSeek; +#undef IID_EnumSeek +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordGroup +#define IID_IADORecordGroup GUID_BUILDER(IID_IADORecordGroup,00000511,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordGroup; +#undef IID_IADORecordGroup +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCustomError +#define IID_IADOCustomError GUID_BUILDER(IID_IADOCustomError,00000519,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCustomError; +#undef IID_IADOCustomError +#endif // IMMEDIATE_GUID_USE + +// IID_IPrivErrors +#define IID_IPrivErrors GUID_BUILDER(IID_IPrivErrors,00000502,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IPrivErrors; +#undef IID_IPrivErrors +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOErrorLookup +#define CLSID_CADOErrorLookup GUID_BUILDER(CLSID_CADOErrorLookup,00000542,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOErrorLookup; +#undef CLSID_CADOErrorLookup +#endif // IMMEDIATE_GUID_USE + +// CLSID_ADO +#define CLSID_ADO GUID_BUILDER(CLSID_ADO,0000051A,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_ADO; +#undef CLSID_ADO +#endif // IMMEDIATE_GUID_USE + +// IID__ADO +#define IID__ADO GUID_BUILDER(IID__ADO,00000534,0000,0010,80,00,00,AA,00,6D,2E,A4) +#define IID_IADO10StdObject GUID_BUILDER(IID_IADO10StdObject,00000534,0000,0010,80,00,00,AA,00,6D,2E,A4) // alias of IID__ADO +#ifdef IMMEDIATE_GUID_USE +IID__ADO; +IID_IADO10StdObject; +#undef IID__ADO +#undef IID_IADO10StdObject +#endif // IMMEDIATE_GUID_USE + +// IID_IADOClass +#define IID_IADOClass GUID_BUILDER(IID_IADOClass,00000560,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOClass; +#undef IID_IADOClass +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRecordCreateOptions +#define IID_EnumRecordCreateOptions GUID_BUILDER(IID_EnumRecordCreateOptions,00000570,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRecordCreateOptions; +#undef IID_EnumRecordCreateOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRecordOpenOptions +#define IID_EnumRecordOpenOptions GUID_BUILDER(IID_EnumRecordOpenOptions,00000571,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRecordOpenOptions; +#undef IID_EnumRecordOpenOptions +#endif // IMMEDIATE_GUID_USE + + +// IID_EnumMoveRecordOptions +#define IID_EnumMoveRecordOptions GUID_BUILDER(IID_EnumMoveRecordOptions,00000573,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumMoveRecordOptions; +#undef IID_EnumMoveRecordOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCopyRecordOptions +#define IID_EnumCopyRecordOptions GUID_BUILDER(IID_EnumCopyRecordOptions,00000574,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCopyRecordOptions; +#undef IID_EnumCopyRecordOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumMode +#define IID_EnumMode GUID_BUILDER(IID_EnumMode,00000575,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumMode; +#undef IID_EnumMode +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStreamType +#define IID_EnumStreamType GUID_BUILDER(IID_EnumStreamType,00000576,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStreamType; +#undef IID_EnumStreamType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumLineSeparator +#define IID_EnumLineSeparator GUID_BUILDER(IID_EnumLineSeparator,00000577,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumLineSeparator; +#undef IID_EnumLineSeparator +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStreamOpenOptions +#define IID_EnumStreamOpenOptions GUID_BUILDER(IID_EnumStreamOpenOptions,0000057A,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStreamOpenOptions; +#undef IID_EnumStreamOpenOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStreamWrite +#define IID_EnumStreamWrite GUID_BUILDER(IID_EnumStreamWrite,0000057B,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStreamWrite; +#undef IID_EnumStreamWrite +#endif // IMMEDIATE_GUID_USE + +// IID_EnumSaveOptions +#define IID_EnumSaveOptions GUID_BUILDER(IID_EnumSaveOptions,0000057C,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumSaveOptions; +#undef IID_EnumSaveOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRecordType +#define IID_EnumRecordType GUID_BUILDER(IID_EnumRecordType,0000057D,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRecordType; +#undef IID_EnumRecordType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumFieldStatus +#define IID_EnumFieldStatus GUID_BUILDER(IID_EnumFieldStatus,0000057E,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumFieldStatus; +#undef IID_EnumFieldStatus +#endif // IMMEDIATE_GUID_USE + +// IID_ICMemStreamProperties +#define IID_ICMemStreamProperties GUID_BUILDER(IID_ICMemStreamProperties,FF184014,B5D3,4310,AB,F0,9B,70,45,A2,CF,17) +#ifdef IMMEDIATE_GUID_USE +IID_ICMemStreamProperties; +#undef IID_ICMemStreamProperties +#endif // IMMEDIATE_GUID_USE + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// End of old guid pool. Newly generated ADO GUID pool follows. + +#ifdef RESERVED_GUIDS_BEYOND_THIS_POINT + +// ADO_Reserved_4 +#define ADO_Reserved_4 GUID_BUILDER(ADO_Reserved_4,567747F1,658B,4906,82,C4,E9,CD,A1,46,26,15) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_4; +#undef ADO_Reserved_4 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_6 +#define ADO_Reserved_6 GUID_BUILDER(ADO_Reserved_6,ED5A4589,7A9D,41DF,89,86,CC,A9,25,01,A5,DA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_6; +#undef ADO_Reserved_6 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_7 +#define ADO_Reserved_7 GUID_BUILDER(ADO_Reserved_7,C029178A,F16B,4A06,82,93,A8,08,B7,F8,78,92) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_7; +#undef ADO_Reserved_7 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_8 +#define ADO_Reserved_8 GUID_BUILDER(ADO_Reserved_8,FD6974FD,21FB,409C,96,56,A5,68,FE,C0,AC,01) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_8; +#undef ADO_Reserved_8 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_9 +#define ADO_Reserved_9 GUID_BUILDER(ADO_Reserved_9,F23FCB5E,7159,4CBA,A3,41,0E,7A,A5,15,18,70) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_9; +#undef ADO_Reserved_9 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_10 +#define ADO_Reserved_10 GUID_BUILDER(ADO_Reserved_10,E724D5C9,327C,43F7,86,4C,68,2F,FF,5C,99,93) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_10; +#undef ADO_Reserved_10 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_11 do not use this +//#define ADO_Reserved_11 GUID_BUILDER(ADO_Reserved_11,2A75196C,D9EB,4129,B8,03,93,13,27,F7,2D,5C) +//#ifdef IMMEDIATE_GUID_USE do not use this used for 28 tlb +//ADO_Reserved_11; +//#undef ADO_Reserved_11 +//#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_12 +#define ADO_Reserved_12 GUID_BUILDER(ADO_Reserved_12,8831EBB5,2C09,4DDD,9A,7A,AC,13,6D,58,D7,21) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_12; +#undef ADO_Reserved_12 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_13 +#define ADO_Reserved_13 GUID_BUILDER(ADO_Reserved_13,447B1221,64FA,44E9,B1,46,B1,1F,16,E3,14,B2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_13; +#undef ADO_Reserved_13 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_14 +#define ADO_Reserved_14 GUID_BUILDER(ADO_Reserved_14,FC528DC2,A992,44D3,97,9F,07,F7,F4,45,5F,23) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_14; +#undef ADO_Reserved_14 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_15 +#define ADO_Reserved_15 GUID_BUILDER(ADO_Reserved_15,C2CC7BC0,9F8B,46C8,83,6B,BC,46,70,28,F4,54) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_15; +#undef ADO_Reserved_15 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_16 +#define ADO_Reserved_16 GUID_BUILDER(ADO_Reserved_16,4687EE6C,12CE,4A31,97,E9,E6,49,6D,E7,2C,71) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_16; +#undef ADO_Reserved_16 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_17 +#define ADO_Reserved_17 GUID_BUILDER(ADO_Reserved_17,4B56FC5D,992F,4339,95,81,C5,40,7A,B2,BF,FD) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_17; +#undef ADO_Reserved_17 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_18 +#define ADO_Reserved_18 GUID_BUILDER(ADO_Reserved_18,1F13BFB3,8BA8,46CA,91,78,74,28,EF,9A,85,C0) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_18; +#undef ADO_Reserved_18 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_19 +#define ADO_Reserved_19 GUID_BUILDER(ADO_Reserved_19,0B410060,4D75,4F77,96,A1,68,4C,38,15,E1,B1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_19; +#undef ADO_Reserved_19 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_20 +#define ADO_Reserved_20 GUID_BUILDER(ADO_Reserved_20,5593F2E0,436B,40B8,81,A8,1B,7E,F4,E6,25,2C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_20; +#undef ADO_Reserved_20 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_21 +#define ADO_Reserved_21 GUID_BUILDER(ADO_Reserved_21,88447B2F,E1C9,413E,BE,E7,A7,D2,B9,0E,D1,96) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_21; +#undef ADO_Reserved_21 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_22 +#define ADO_Reserved_22 GUID_BUILDER(ADO_Reserved_22,89BFEE1B,8CB5,4A90,89,AF,E8,29,93,4E,6C,48) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_22; +#undef ADO_Reserved_22 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_23 +#define ADO_Reserved_23 GUID_BUILDER(ADO_Reserved_23,28D7F9FC,F485,4BDB,9C,C4,6F,AE,44,F9,9F,D9) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_23; +#undef ADO_Reserved_23 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_24 +#define ADO_Reserved_24 GUID_BUILDER(ADO_Reserved_24,1BB4223F,B0E8,4540,96,FD,B8,FE,D9,A7,C0,8B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_24; +#undef ADO_Reserved_24 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_25 +#define ADO_Reserved_25 GUID_BUILDER(ADO_Reserved_25,AD1A1568,8B4A,403F,84,76,D8,F6,33,4D,BD,9F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_25; +#undef ADO_Reserved_25 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_26 +#define ADO_Reserved_26 GUID_BUILDER(ADO_Reserved_26,1326B4D8,EE0B,4054,8F,4C,86,35,9F,00,24,AD) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_26; +#undef ADO_Reserved_26 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_27 +#define ADO_Reserved_27 GUID_BUILDER(ADO_Reserved_27,98B7EB70,7AED,401A,AF,6D,A6,B8,DB,A0,AF,A6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_27; +#undef ADO_Reserved_27 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_28 +#define ADO_Reserved_28 GUID_BUILDER(ADO_Reserved_28,FD46F2C2,7FDA,4DC9,A2,DB,D9,BE,4F,59,98,C2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_28; +#undef ADO_Reserved_28 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_29 +#define ADO_Reserved_29 GUID_BUILDER(ADO_Reserved_29,FAA37542,B471,4183,A6,56,99,C8,FD,80,FF,73) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_29; +#undef ADO_Reserved_29 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_30 +#define ADO_Reserved_30 GUID_BUILDER(ADO_Reserved_30,56CE86F1,3116,4104,A5,28,17,D1,1E,DC,68,2A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_30; +#undef ADO_Reserved_30 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_31 +#define ADO_Reserved_31 GUID_BUILDER(ADO_Reserved_31,83E8CF0E,176F,4908,86,3A,2A,77,4D,76,9B,EF) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_31; +#undef ADO_Reserved_31 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_32 +#define ADO_Reserved_32 GUID_BUILDER(ADO_Reserved_32,0494D18D,98F7,4A38,80,DF,35,F8,80,98,BD,DF) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_32; +#undef ADO_Reserved_32 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_33 +#define ADO_Reserved_33 GUID_BUILDER(ADO_Reserved_33,00C61F59,4E7F,4093,BF,FD,03,53,B4,5D,E5,8B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_33; +#undef ADO_Reserved_33 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_34 +#define ADO_Reserved_34 GUID_BUILDER(ADO_Reserved_34,732A172F,384D,4C4A,A6,AF,D2,28,20,D3,34,26) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_34; +#undef ADO_Reserved_34 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_35 +#define ADO_Reserved_35 GUID_BUILDER(ADO_Reserved_35,104E1F7E,8993,455C,B7,D8,58,CD,88,74,80,75) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_35; +#undef ADO_Reserved_35 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_36 +#define ADO_Reserved_36 GUID_BUILDER(ADO_Reserved_36,C12B8DFD,42F7,408E,AE,FB,A7,C2,FB,43,49,A7) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_36; +#undef ADO_Reserved_36 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_37 +#define ADO_Reserved_37 GUID_BUILDER(ADO_Reserved_37,EE881FC9,6C2F,45A2,BA,17,24,95,BC,72,4E,55) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_37; +#undef ADO_Reserved_37 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_38 +#define ADO_Reserved_38 GUID_BUILDER(ADO_Reserved_38,7381C764,646B,4F11,A6,73,13,50,98,9D,62,3A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_38; +#undef ADO_Reserved_38 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_39 +#define ADO_Reserved_39 GUID_BUILDER(ADO_Reserved_39,D8E4965C,F571,4771,8A,74,63,95,05,16,B0,88) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_39; +#undef ADO_Reserved_39 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_40 +#define ADO_Reserved_40 GUID_BUILDER(ADO_Reserved_40,2BE262E5,3A8C,4B07,A3,C3,3B,B7,40,EF,40,95) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_40; +#undef ADO_Reserved_40 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_41 +#define ADO_Reserved_41 GUID_BUILDER(ADO_Reserved_41,3E90A199,4F86,445C,84,8E,A6,17,86,B9,67,D1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_41; +#undef ADO_Reserved_41 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_42 +#define ADO_Reserved_42 GUID_BUILDER(ADO_Reserved_42,DCD025E0,DA44,47E4,82,65,E4,A7,6B,85,29,0C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_42; +#undef ADO_Reserved_42 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_43 +#define ADO_Reserved_43 GUID_BUILDER(ADO_Reserved_43,31EFF562,FB6B,41D6,81,AD,30,1B,B0,53,9C,61) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_43; +#undef ADO_Reserved_43 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_44 +#define ADO_Reserved_44 GUID_BUILDER(ADO_Reserved_44,BD3ECD6B,F4A7,42FC,90,F1,75,D5,37,2A,F2,8F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_44; +#undef ADO_Reserved_44 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_45 +#define ADO_Reserved_45 GUID_BUILDER(ADO_Reserved_45,6EFBC56F,67E4,4F7D,BE,59,C5,D6,FA,21,B7,77) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_45; +#undef ADO_Reserved_45 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_46 +#define ADO_Reserved_46 GUID_BUILDER(ADO_Reserved_46,3BF5E1FC,B960,4564,86,54,07,B0,7A,AF,6E,4F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_46; +#undef ADO_Reserved_46 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_47 +#define ADO_Reserved_47 GUID_BUILDER(ADO_Reserved_47,2430F883,1462,4899,9A,DE,F7,24,27,FD,5E,E4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_47; +#undef ADO_Reserved_47 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_48 +#define ADO_Reserved_48 GUID_BUILDER(ADO_Reserved_48,AB663F07,BA4D,42CC,93,C6,F2,EA,9F,C8,BA,74) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_48; +#undef ADO_Reserved_48 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_49 +#define ADO_Reserved_49 GUID_BUILDER(ADO_Reserved_49,D808C6F7,36C0,4302,80,EE,C4,B7,00,F8,D2,38) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_49; +#undef ADO_Reserved_49 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_50 +#define ADO_Reserved_50 GUID_BUILDER(ADO_Reserved_50,AB146E06,E493,4DF0,A1,CD,07,D4,B0,74,46,C3) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_50; +#undef ADO_Reserved_50 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_51 +#define ADO_Reserved_51 GUID_BUILDER(ADO_Reserved_51,74F1FD51,9CB8,4186,8C,3D,DD,F3,55,2A,99,9B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_51; +#undef ADO_Reserved_51 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_52 +#define ADO_Reserved_52 GUID_BUILDER(ADO_Reserved_52,71701A97,5386,43B0,95,8D,3C,EE,40,57,B1,99) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_52; +#undef ADO_Reserved_52 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_53 +#define ADO_Reserved_53 GUID_BUILDER(ADO_Reserved_53,63CC6087,A6C6,4CCF,8E,D4,17,5B,91,A6,32,C5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_53; +#undef ADO_Reserved_53 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_54 +#define ADO_Reserved_54 GUID_BUILDER(ADO_Reserved_54,7323FD37,B7D8,4F8A,80,F4,E8,3D,0B,2A,73,B5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_54; +#undef ADO_Reserved_54 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_55 +#define ADO_Reserved_55 GUID_BUILDER(ADO_Reserved_55,5C666403,2A0A,4B12,8E,1D,41,19,88,DD,E0,0A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_55; +#undef ADO_Reserved_55 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_56 +#define ADO_Reserved_56 GUID_BUILDER(ADO_Reserved_56,ECA4C14C,5529,49DF,B1,3C,17,F0,22,DB,1B,A6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_56; +#undef ADO_Reserved_56 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_57 +#define ADO_Reserved_57 GUID_BUILDER(ADO_Reserved_57,304ADE1D,4458,4A6A,93,48,1F,7C,2E,64,D6,FA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_57; +#undef ADO_Reserved_57 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_58 +#define ADO_Reserved_58 GUID_BUILDER(ADO_Reserved_58,D87A7AF2,FB3C,49BC,B2,69,F3,57,36,E7,23,2E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_58; +#undef ADO_Reserved_58 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_59 +#define ADO_Reserved_59 GUID_BUILDER(ADO_Reserved_59,542D6D77,AECB,4AFF,B1,C6,54,EF,79,8F,61,ED) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_59; +#undef ADO_Reserved_59 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_60 +#define ADO_Reserved_60 GUID_BUILDER(ADO_Reserved_60,46359618,34AE,410E,AE,20,F3,D4,E1,BD,A6,BE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_60; +#undef ADO_Reserved_60 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_61 +#define ADO_Reserved_61 GUID_BUILDER(ADO_Reserved_61,F98DF79B,2935,464B,AA,08,CC,EF,F1,5F,71,32) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_61; +#undef ADO_Reserved_61 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_62 +#define ADO_Reserved_62 GUID_BUILDER(ADO_Reserved_62,214887FB,4867,4DD8,83,9D,4C,F0,BB,83,E1,95) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_62; +#undef ADO_Reserved_62 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_63 +#define ADO_Reserved_63 GUID_BUILDER(ADO_Reserved_63,C9B68C08,F663,4386,8F,5B,FA,BA,E0,27,43,6D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_63; +#undef ADO_Reserved_63 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_64 +#define ADO_Reserved_64 GUID_BUILDER(ADO_Reserved_64,F46511DD,10B6,49CF,AA,75,5E,E2,7C,FD,9E,A4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_64; +#undef ADO_Reserved_64 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_65 +#define ADO_Reserved_65 GUID_BUILDER(ADO_Reserved_65,C057EF87,F3A8,4890,A9,56,57,8C,07,CD,2E,F8) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_65; +#undef ADO_Reserved_65 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_66 +#define ADO_Reserved_66 GUID_BUILDER(ADO_Reserved_66,1C9E0666,1405,4DC5,BD,A7,65,F4,B4,16,1D,7B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_66; +#undef ADO_Reserved_66 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_67 +#define ADO_Reserved_67 GUID_BUILDER(ADO_Reserved_67,B91484C2,5E48,438C,91,CD,B9,D6,99,32,30,E4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_67; +#undef ADO_Reserved_67 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_68 +#define ADO_Reserved_68 GUID_BUILDER(ADO_Reserved_68,17D12BFE,6C9F,4229,87,95,60,20,6F,D1,45,35) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_68; +#undef ADO_Reserved_68 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_69 +#define ADO_Reserved_69 GUID_BUILDER(ADO_Reserved_69,5A816EA3,EE82,4F65,BC,76,74,07,E9,E5,43,58) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_69; +#undef ADO_Reserved_69 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_70 +#define ADO_Reserved_70 GUID_BUILDER(ADO_Reserved_70,3AD0DE2B,AA3E,4508,BE,9E,1E,AA,DF,1C,4D,8B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_70; +#undef ADO_Reserved_70 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_71 +#define ADO_Reserved_71 GUID_BUILDER(ADO_Reserved_71,54DC8B80,7869,4D90,AB,5C,8C,54,1A,74,EE,F8) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_71; +#undef ADO_Reserved_71 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_72 +#define ADO_Reserved_72 GUID_BUILDER(ADO_Reserved_72,80A200B0,5783,48E7,81,25,B9,E4,BF,59,F7,22) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_72; +#undef ADO_Reserved_72 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_73 +#define ADO_Reserved_73 GUID_BUILDER(ADO_Reserved_73,1502CB61,8C42,4C4B,B9,0C,3A,9E,4E,46,D1,BE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_73; +#undef ADO_Reserved_73 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_74 +#define ADO_Reserved_74 GUID_BUILDER(ADO_Reserved_74,70EB3F53,91A0,42F5,BE,50,F1,02,DE,C8,92,27) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_74; +#undef ADO_Reserved_74 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_75 +#define ADO_Reserved_75 GUID_BUILDER(ADO_Reserved_75,4680AA81,B27C,4A8F,83,F9,6F,B7,E1,8E,D2,3C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_75; +#undef ADO_Reserved_75 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_76 +#define ADO_Reserved_76 GUID_BUILDER(ADO_Reserved_76,EF31F9EB,4541,4FCB,8D,67,59,2C,85,50,93,05) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_76; +#undef ADO_Reserved_76 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_77 +#define ADO_Reserved_77 GUID_BUILDER(ADO_Reserved_77,88B77D15,997E,4E3A,83,20,3B,37,83,52,86,D5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_77; +#undef ADO_Reserved_77 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_78 +#define ADO_Reserved_78 GUID_BUILDER(ADO_Reserved_78,D03A3AA8,1AAC,4867,93,C9,5F,51,D8,7D,6A,74) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_78; +#undef ADO_Reserved_78 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_79 +#define ADO_Reserved_79 GUID_BUILDER(ADO_Reserved_79,47022458,17E7,4BD7,90,81,85,B4,0B,03,6D,5B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_79; +#undef ADO_Reserved_79 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_80 +#define ADO_Reserved_80 GUID_BUILDER(ADO_Reserved_80,9E5BEE82,F410,44C7,9D,6D,3F,7D,D2,8B,A7,CC) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_80; +#undef ADO_Reserved_80 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_81 +#define ADO_Reserved_81 GUID_BUILDER(ADO_Reserved_81,278A1C47,3C39,41C7,A3,FB,7C,2E,62,0B,E4,44) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_81; +#undef ADO_Reserved_81 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_82 +#define ADO_Reserved_82 GUID_BUILDER(ADO_Reserved_82,964CBF05,8084,4C15,9C,F5,8C,4B,81,41,B4,AE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_82; +#undef ADO_Reserved_82 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_83 +#define ADO_Reserved_83 GUID_BUILDER(ADO_Reserved_83,A86296A0,F272,4ACD,83,06,FF,CA,FF,89,14,A9) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_83; +#undef ADO_Reserved_83 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_84 +#define ADO_Reserved_84 GUID_BUILDER(ADO_Reserved_84,F805FC7C,7C4A,43A1,B0,14,71,EA,0E,EB,EA,5F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_84; +#undef ADO_Reserved_84 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_85 +#define ADO_Reserved_85 GUID_BUILDER(ADO_Reserved_85,33E6E9B6,0BEA,4549,90,CB,3B,64,12,DB,8C,F5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_85; +#undef ADO_Reserved_85 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_86 +#define ADO_Reserved_86 GUID_BUILDER(ADO_Reserved_86,7337E3DC,219F,4D9E,82,5B,0A,2C,18,4E,C0,DE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_86; +#undef ADO_Reserved_86 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_87 +#define ADO_Reserved_87 GUID_BUILDER(ADO_Reserved_87,7397BAFC,354E,4F18,9F,76,C3,3A,4E,EF,6D,20) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_87; +#undef ADO_Reserved_87 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_88 +#define ADO_Reserved_88 GUID_BUILDER(ADO_Reserved_88,5EC2D163,E671,4186,BE,72,BF,FF,72,D5,7A,5C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_88; +#undef ADO_Reserved_88 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_89 +#define ADO_Reserved_89 GUID_BUILDER(ADO_Reserved_89,8B37B801,0A35,4F97,A3,43,82,57,B3,E7,6C,79) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_89; +#undef ADO_Reserved_89 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_90 +#define ADO_Reserved_90 GUID_BUILDER(ADO_Reserved_90,FAD396B6,EE4E,4F70,85,54,E8,23,9E,47,05,29) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_90; +#undef ADO_Reserved_90 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_91 +#define ADO_Reserved_91 GUID_BUILDER(ADO_Reserved_91,6063972C,395B,4FEF,A0,04,ED,95,E7,D8,72,0D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_91; +#undef ADO_Reserved_91 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_92 +#define ADO_Reserved_92 GUID_BUILDER(ADO_Reserved_92,85AEED72,A1F8,4597,82,32,F8,40,EF,C9,21,09) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_92; +#undef ADO_Reserved_92 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_93 +#define ADO_Reserved_93 GUID_BUILDER(ADO_Reserved_93,CE4FD8FF,553A,4424,B1,EA,3E,DF,11,42,AD,8B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_93; +#undef ADO_Reserved_93 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_94 +#define ADO_Reserved_94 GUID_BUILDER(ADO_Reserved_94,1A856A0F,0844,4DE4,AC,7B,75,30,62,56,39,86) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_94; +#undef ADO_Reserved_94 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_95 +#define ADO_Reserved_95 GUID_BUILDER(ADO_Reserved_95,09A742A1,19ED,43BB,85,E9,99,23,DE,C4,17,F7) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_95; +#undef ADO_Reserved_95 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_96 +#define ADO_Reserved_96 GUID_BUILDER(ADO_Reserved_96,3695BD0C,9DE6,4895,84,E6,B2,4C,E7,55,47,02) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_96; +#undef ADO_Reserved_96 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_97 +#define ADO_Reserved_97 GUID_BUILDER(ADO_Reserved_97,8802531F,6EA8,4A55,8A,18,05,97,86,3C,DA,38) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_97; +#undef ADO_Reserved_97 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_98 +#define ADO_Reserved_98 GUID_BUILDER(ADO_Reserved_98,498E70F0,B13F,4804,AD,D5,72,E8,0E,28,05,E7) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_98; +#undef ADO_Reserved_98 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_99 +#define ADO_Reserved_99 GUID_BUILDER(ADO_Reserved_99,50D0E90F,E3A4,4A93,8B,48,71,21,66,E8,87,CD) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_99; +#undef ADO_Reserved_99 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_100 +#define ADO_Reserved_100 GUID_BUILDER(ADO_Reserved_100,F1D30550,8515,4F8B,93,E1,1E,F0,12,1B,4B,D0) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_100; +#undef ADO_Reserved_100 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_101 +#define ADO_Reserved_101 GUID_BUILDER(ADO_Reserved_101,901CDA31,8CDB,4A5B,91,6B,63,EA,90,1D,8C,E0) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_101; +#undef ADO_Reserved_101 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_102 +#define ADO_Reserved_102 GUID_BUILDER(ADO_Reserved_102,00BDA239,1094,4AEF,93,AD,7C,E2,73,6C,42,25) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_102; +#undef ADO_Reserved_102 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_103 +#define ADO_Reserved_103 GUID_BUILDER(ADO_Reserved_103,DCA4E51E,250E,4AB3,B4,90,F2,CB,9E,8F,6C,C4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_103; +#undef ADO_Reserved_103 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_104 +#define ADO_Reserved_104 GUID_BUILDER(ADO_Reserved_104,24679EBD,8535,4494,A9,1C,18,91,F0,75,5B,6F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_104; +#undef ADO_Reserved_104 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_105 +#define ADO_Reserved_105 GUID_BUILDER(ADO_Reserved_105,F041739E,F37E,4925,94,25,FB,51,5E,56,0F,54) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_105; +#undef ADO_Reserved_105 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_106 +#define ADO_Reserved_106 GUID_BUILDER(ADO_Reserved_106,FECACBBF,A73C,4616,84,2F,FE,F5,72,85,70,AB) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_106; +#undef ADO_Reserved_106 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_107 +#define ADO_Reserved_107 GUID_BUILDER(ADO_Reserved_107,DBAD7368,1DED,4A77,B8,0A,1A,EB,12,99,BD,B3) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_107; +#undef ADO_Reserved_107 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_108 +#define ADO_Reserved_108 GUID_BUILDER(ADO_Reserved_108,CFDE81B8,66EF,4503,84,A8,7E,8F,C8,AB,0B,31) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_108; +#undef ADO_Reserved_108 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_109 +#define ADO_Reserved_109 GUID_BUILDER(ADO_Reserved_109,9B7484FA,023A,4FFB,A2,94,11,A6,E5,97,AB,35) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_109; +#undef ADO_Reserved_109 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_110 +#define ADO_Reserved_110 GUID_BUILDER(ADO_Reserved_110,54F0F09C,1201,49A9,B4,65,6B,02,9B,5F,E3,12) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_110; +#undef ADO_Reserved_110 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_111 +#define ADO_Reserved_111 GUID_BUILDER(ADO_Reserved_111,BFFA01F8,EAE7,4FA1,BF,74,37,73,3F,BF,36,4C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_111; +#undef ADO_Reserved_111 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_112 +#define ADO_Reserved_112 GUID_BUILDER(ADO_Reserved_112,12FAD291,4AAB,4038,9D,D1,04,E4,E7,A9,E0,F4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_112; +#undef ADO_Reserved_112 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_113 +#define ADO_Reserved_113 GUID_BUILDER(ADO_Reserved_113,8D2AF964,C489,4D77,A8,17,A0,4D,B1,DB,26,A5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_113; +#undef ADO_Reserved_113 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_114 +#define ADO_Reserved_114 GUID_BUILDER(ADO_Reserved_114,79F89DD7,BE86,4B36,BE,9B,FA,75,24,18,55,68) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_114; +#undef ADO_Reserved_114 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_115 +#define ADO_Reserved_115 GUID_BUILDER(ADO_Reserved_115,4387D7FA,7A52,4F67,BF,B6,7E,7D,7A,B7,C9,DE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_115; +#undef ADO_Reserved_115 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_116 +#define ADO_Reserved_116 GUID_BUILDER(ADO_Reserved_116,7571252F,0E49,4F4B,A3,87,9E,D9,70,54,68,D8) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_116; +#undef ADO_Reserved_116 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_117 +#define ADO_Reserved_117 GUID_BUILDER(ADO_Reserved_117,0DAB016B,6BA4,470F,98,1A,2B,A7,65,D4,60,4B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_117; +#undef ADO_Reserved_117 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_118 +#define ADO_Reserved_118 GUID_BUILDER(ADO_Reserved_118,E97D87A3,8A95,4080,8C,A9,ED,9F,05,1A,B7,B2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_118; +#undef ADO_Reserved_118 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_119 +#define ADO_Reserved_119 GUID_BUILDER(ADO_Reserved_119,C9EA1598,2D23,4978,9B,33,3D,2C,C4,0A,B7,A1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_119; +#undef ADO_Reserved_119 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_120 +#define ADO_Reserved_120 GUID_BUILDER(ADO_Reserved_120,E41CA9FC,7FC9,4831,90,CE,F5,33,96,CE,42,C3) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_120; +#undef ADO_Reserved_120 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_121 +#define ADO_Reserved_121 GUID_BUILDER(ADO_Reserved_121,15DF0905,4ACC,44F7,A0,1E,0F,EF,56,3C,C4,E5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_121; +#undef ADO_Reserved_121 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_122 +#define ADO_Reserved_122 GUID_BUILDER(ADO_Reserved_122,D2879A0E,D0B3,42A2,A1,16,D1,5E,13,C7,51,77) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_122; +#undef ADO_Reserved_122 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_123 +#define ADO_Reserved_123 GUID_BUILDER(ADO_Reserved_123,A999A8D2,5E83,4C0E,83,97,18,33,19,32,79,CD) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_123; +#undef ADO_Reserved_123 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_124 +#define ADO_Reserved_124 GUID_BUILDER(ADO_Reserved_124,C6AFAE72,B3FF,48AB,B1,EE,F5,EE,F9,05,DF,47) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_124; +#undef ADO_Reserved_124 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_125 +#define ADO_Reserved_125 GUID_BUILDER(ADO_Reserved_125,0DEADF50,0940,4F0E,AC,3B,94,80,B7,32,2B,1B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_125; +#undef ADO_Reserved_125 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_126 +#define ADO_Reserved_126 GUID_BUILDER(ADO_Reserved_126,61278818,2FE6,4892,8B,95,A7,5C,AC,6E,21,BB) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_126; +#undef ADO_Reserved_126 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_127 +#define ADO_Reserved_127 GUID_BUILDER(ADO_Reserved_127,3AC2BED7,1111,4E55,B2,06,1F,54,18,94,4C,BA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_127; +#undef ADO_Reserved_127 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_128 +#define ADO_Reserved_128 GUID_BUILDER(ADO_Reserved_128,3D4751E2,04B8,4593,A0,0D,3A,4B,94,67,4B,E9) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_128; +#undef ADO_Reserved_128 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_129 +#define ADO_Reserved_129 GUID_BUILDER(ADO_Reserved_129,69BC6751,FE10,4B3F,89,35,40,2F,A5,FD,04,82) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_129; +#undef ADO_Reserved_129 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_130 +#define ADO_Reserved_130 GUID_BUILDER(ADO_Reserved_130,5867AF81,995A,4686,8B,CB,13,B6,8B,10,26,8A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_130; +#undef ADO_Reserved_130 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_131 +#define ADO_Reserved_131 GUID_BUILDER(ADO_Reserved_131,DA46C62F,BDCD,4745,A3,CA,4E,C9,FA,AB,E1,10) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_131; +#undef ADO_Reserved_131 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_132 +#define ADO_Reserved_132 GUID_BUILDER(ADO_Reserved_132,93028AA6,EECC,482F,B3,A4,2F,D4,13,04,96,5E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_132; +#undef ADO_Reserved_132 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_133 +#define ADO_Reserved_133 GUID_BUILDER(ADO_Reserved_133,AB14F604,D05E,4E50,A4,5B,A8,10,48,E3,A4,75) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_133; +#undef ADO_Reserved_133 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_134 +#define ADO_Reserved_134 GUID_BUILDER(ADO_Reserved_134,35267875,8420,4226,87,C0,25,00,58,56,0F,D2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_134; +#undef ADO_Reserved_134 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_135 +#define ADO_Reserved_135 GUID_BUILDER(ADO_Reserved_135,16E34932,EEFA,440E,A7,86,6A,36,D2,C6,21,69) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_135; +#undef ADO_Reserved_135 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_136 +#define ADO_Reserved_136 GUID_BUILDER(ADO_Reserved_136,2710A15A,B2B0,46EC,BD,EC,E2,2E,A8,A6,28,FA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_136; +#undef ADO_Reserved_136 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_137 +#define ADO_Reserved_137 GUID_BUILDER(ADO_Reserved_137,2777696F,CB34,4CC4,A0,A9,02,EA,15,16,63,DD) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_137; +#undef ADO_Reserved_137 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_138 +#define ADO_Reserved_138 GUID_BUILDER(ADO_Reserved_138,D11CA1A0,A261,4BA2,81,68,46,52,32,9A,60,77) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_138; +#undef ADO_Reserved_138 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_139 +#define ADO_Reserved_139 GUID_BUILDER(ADO_Reserved_139,C33509A8,883F,4BEA,AF,B5,35,26,CF,0B,8B,E1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_139; +#undef ADO_Reserved_139 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_140 +#define ADO_Reserved_140 GUID_BUILDER(ADO_Reserved_140,DEBDC8E1,4F02,43E1,8C,88,0B,A8,E1,50,6B,F5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_140; +#undef ADO_Reserved_140 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_141 +#define ADO_Reserved_141 GUID_BUILDER(ADO_Reserved_141,552F8531,3F79,4DB3,87,7B,8E,54,C3,5B,38,54) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_141; +#undef ADO_Reserved_141 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_142 +#define ADO_Reserved_142 GUID_BUILDER(ADO_Reserved_142,1E6A2BF4,241C,48A1,90,66,C6,E1,E5,2B,0A,4B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_142; +#undef ADO_Reserved_142 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_143 +#define ADO_Reserved_143 GUID_BUILDER(ADO_Reserved_143,8E5B2A8D,1F0D,429D,94,95,16,F8,E9,58,06,80) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_143; +#undef ADO_Reserved_143 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_144 +#define ADO_Reserved_144 GUID_BUILDER(ADO_Reserved_144,57FAEC9D,5CDE,4EBE,84,A1,5A,CB,75,7C,D4,51) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_144; +#undef ADO_Reserved_144 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_145 +#define ADO_Reserved_145 GUID_BUILDER(ADO_Reserved_145,707B03C3,A3B0,4F00,81,61,6E,3F,02,7F,F0,B3) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_145; +#undef ADO_Reserved_145 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_146 +#define ADO_Reserved_146 GUID_BUILDER(ADO_Reserved_146,5DD552F4,0718,4BDD,82,6C,7C,C3,5C,DA,1D,93) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_146; +#undef ADO_Reserved_146 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_147 +#define ADO_Reserved_147 GUID_BUILDER(ADO_Reserved_147,F3247F33,E377,4A44,A9,37,AC,E6,36,F6,58,1F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_147; +#undef ADO_Reserved_147 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_148 +#define ADO_Reserved_148 GUID_BUILDER(ADO_Reserved_148,E7C324C4,38A5,42A8,99,FF,34,5D,AD,8C,D2,29) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_148; +#undef ADO_Reserved_148 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_149 +#define ADO_Reserved_149 GUID_BUILDER(ADO_Reserved_149,D14FCA70,390D,4158,B5,C3,9A,02,D1,F7,85,87) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_149; +#undef ADO_Reserved_149 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_150 +#define ADO_Reserved_150 GUID_BUILDER(ADO_Reserved_150,58D30B5F,92A5,4EF4,8E,45,A0,24,A9,CD,F9,FE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_150; +#undef ADO_Reserved_150 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_151 +#define ADO_Reserved_151 GUID_BUILDER(ADO_Reserved_151,9673DF76,73E4,4C66,89,14,7F,A4,17,43,6C,4A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_151; +#undef ADO_Reserved_151 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_152 +#define ADO_Reserved_152 GUID_BUILDER(ADO_Reserved_152,9FA8A7E1,CF3C,4A61,BE,10,1D,85,5F,A0,D5,08) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_152; +#undef ADO_Reserved_152 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_153 +#define ADO_Reserved_153 GUID_BUILDER(ADO_Reserved_153,B657729F,6CC7,4392,BD,56,DC,ED,6E,53,F6,4C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_153; +#undef ADO_Reserved_153 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_154 +#define ADO_Reserved_154 GUID_BUILDER(ADO_Reserved_154,06E5224B,8C27,4F41,8F,B7,C6,41,E4,C5,04,2D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_154; +#undef ADO_Reserved_154 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_155 +#define ADO_Reserved_155 GUID_BUILDER(ADO_Reserved_155,2268A619,CC1D,4F72,B8,3F,79,63,C0,13,B1,3D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_155; +#undef ADO_Reserved_155 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_156 +#define ADO_Reserved_156 GUID_BUILDER(ADO_Reserved_156,FB4810F3,3A65,4C33,B3,99,B5,C9,33,11,11,D7) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_156; +#undef ADO_Reserved_156 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_157 +#define ADO_Reserved_157 GUID_BUILDER(ADO_Reserved_157,9011BE74,6C9D,44F7,BE,2C,8A,2A,BB,62,51,AC) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_157; +#undef ADO_Reserved_157 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_158 +#define ADO_Reserved_158 GUID_BUILDER(ADO_Reserved_158,3145C182,82C6,4082,BB,E7,79,1A,2F,49,6C,B1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_158; +#undef ADO_Reserved_158 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_159 +#define ADO_Reserved_159 GUID_BUILDER(ADO_Reserved_159,D8865377,8799,4C08,97,E5,D6,7E,88,6F,F5,49) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_159; +#undef ADO_Reserved_159 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_160 +#define ADO_Reserved_160 GUID_BUILDER(ADO_Reserved_160,8993232E,8AFA,4552,A7,8C,C6,6C,9D,3A,E6,D0) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_160; +#undef ADO_Reserved_160 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_161 +#define ADO_Reserved_161 GUID_BUILDER(ADO_Reserved_161,40AF1931,8721,427B,83,5E,50,87,79,BD,1E,B2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_161; +#undef ADO_Reserved_161 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_162 +#define ADO_Reserved_162 GUID_BUILDER(ADO_Reserved_162,9C6E2B26,4468,427C,8C,F5,01,14,7D,B8,DF,22) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_162; +#undef ADO_Reserved_162 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_163 +#define ADO_Reserved_163 GUID_BUILDER(ADO_Reserved_163,3537FA93,7E92,4CE0,80,96,EF,DC,1A,80,A8,95) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_163; +#undef ADO_Reserved_163 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_164 +#define ADO_Reserved_164 GUID_BUILDER(ADO_Reserved_164,36992492,3E17,47C1,AB,98,5F,0C,49,B4,6A,25) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_164; +#undef ADO_Reserved_164 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_165 +#define ADO_Reserved_165 GUID_BUILDER(ADO_Reserved_165,01662EDB,CE23,4215,AE,9D,51,51,E6,DA,36,3C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_165; +#undef ADO_Reserved_165 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_166 +#define ADO_Reserved_166 GUID_BUILDER(ADO_Reserved_166,80B4A97B,5256,4397,89,CD,4E,F9,91,0F,1D,E6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_166; +#undef ADO_Reserved_166 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_167 +#define ADO_Reserved_167 GUID_BUILDER(ADO_Reserved_167,C2341A38,2C6B,414E,96,A8,8B,5E,47,F8,14,DA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_167; +#undef ADO_Reserved_167 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_168 +#define ADO_Reserved_168 GUID_BUILDER(ADO_Reserved_168,5C2B7578,53FA,4ACE,8E,6C,39,18,2F,68,D2,67) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_168; +#undef ADO_Reserved_168 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_169 +#define ADO_Reserved_169 GUID_BUILDER(ADO_Reserved_169,B80C1E36,611B,49D4,97,19,4E,0C,59,0E,2E,E1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_169; +#undef ADO_Reserved_169 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_170 +#define ADO_Reserved_170 GUID_BUILDER(ADO_Reserved_170,BA269EB4,B741,4FB2,A9,C9,52,4C,9D,BE,7C,16) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_170; +#undef ADO_Reserved_170 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_171 +#define ADO_Reserved_171 GUID_BUILDER(ADO_Reserved_171,EE49769D,1028,4429,A9,66,2F,A8,1D,70,EE,19) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_171; +#undef ADO_Reserved_171 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_172 +#define ADO_Reserved_172 GUID_BUILDER(ADO_Reserved_172,541FC621,D6E6,4CC4,B4,98,8E,4F,AA,A0,65,BF) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_172; +#undef ADO_Reserved_172 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_173 +#define ADO_Reserved_173 GUID_BUILDER(ADO_Reserved_173,AA8B544C,4067,4E00,96,09,95,EE,21,68,AF,CE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_173; +#undef ADO_Reserved_173 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_174 +#define ADO_Reserved_174 GUID_BUILDER(ADO_Reserved_174,5B161B2B,D02C,4300,A1,54,CF,DC,25,3B,13,0D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_174; +#undef ADO_Reserved_174 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_175 +#define ADO_Reserved_175 GUID_BUILDER(ADO_Reserved_175,81F62203,182E,42DE,B1,B7,63,5F,C6,6F,6E,9E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_175; +#undef ADO_Reserved_175 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_176 +#define ADO_Reserved_176 GUID_BUILDER(ADO_Reserved_176,04934BDD,A530,48EC,91,CE,11,83,42,5B,DB,61) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_176; +#undef ADO_Reserved_176 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_177 +#define ADO_Reserved_177 GUID_BUILDER(ADO_Reserved_177,F6997841,9A99,48AA,B0,56,8C,75,17,06,41,7F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_177; +#undef ADO_Reserved_177 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_178 +#define ADO_Reserved_178 GUID_BUILDER(ADO_Reserved_178,353FE3F1,DE50,45EE,91,E9,3E,62,E3,C7,86,04) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_178; +#undef ADO_Reserved_178 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_179 +#define ADO_Reserved_179 GUID_BUILDER(ADO_Reserved_179,F142C8C6,9E24,422E,81,BD,D2,94,7F,93,94,D4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_179; +#undef ADO_Reserved_179 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_180 +#define ADO_Reserved_180 GUID_BUILDER(ADO_Reserved_180,95951773,9566,46C9,86,B0,40,ED,25,46,02,93) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_180; +#undef ADO_Reserved_180 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_181 +#define ADO_Reserved_181 GUID_BUILDER(ADO_Reserved_181,54140563,0F25,4F56,9D,8F,B6,DE,CB,96,DC,E4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_181; +#undef ADO_Reserved_181 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_182 +#define ADO_Reserved_182 GUID_BUILDER(ADO_Reserved_182,91A48243,AE16,48CF,82,29,00,00,F8,3C,5E,FC) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_182; +#undef ADO_Reserved_182 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_183 +#define ADO_Reserved_183 GUID_BUILDER(ADO_Reserved_183,E0FA1A1F,3967,4392,AB,1A,E2,8B,85,04,68,CA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_183; +#undef ADO_Reserved_183 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_184 +#define ADO_Reserved_184 GUID_BUILDER(ADO_Reserved_184,5582D772,ABAC,4A85,A0,B3,2E,65,E1,71,10,53) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_184; +#undef ADO_Reserved_184 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_185 +#define ADO_Reserved_185 GUID_BUILDER(ADO_Reserved_185,1CD1F347,8FB4,49A2,B5,65,A6,74,A0,C1,45,0E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_185; +#undef ADO_Reserved_185 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_186 +#define ADO_Reserved_186 GUID_BUILDER(ADO_Reserved_186,0EC3AA4E,FEF5,4A5C,BD,0A,E9,CD,B7,6A,5F,30) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_186; +#undef ADO_Reserved_186 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_187 +#define ADO_Reserved_187 GUID_BUILDER(ADO_Reserved_187,4118414D,4A21,46DA,88,C1,EF,A7,01,8C,45,27) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_187; +#undef ADO_Reserved_187 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_188 +#define ADO_Reserved_188 GUID_BUILDER(ADO_Reserved_188,D5C1CC0D,E38E,4CB6,89,D9,99,27,7F,12,D1,9E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_188; +#undef ADO_Reserved_188 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_189 +#define ADO_Reserved_189 GUID_BUILDER(ADO_Reserved_189,0956B82A,94A7,474E,A5,05,1A,76,26,36,AF,08) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_189; +#undef ADO_Reserved_189 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_190 +#define ADO_Reserved_190 GUID_BUILDER(ADO_Reserved_190,2CBF62AB,B8E4,48D0,B5,01,69,CF,63,3C,AA,E6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_190; +#undef ADO_Reserved_190 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_191 +#define ADO_Reserved_191 GUID_BUILDER(ADO_Reserved_191,C02B8113,AECF,4A34,B3,E9,5B,52,4E,51,44,B5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_191; +#undef ADO_Reserved_191 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_192 +#define ADO_Reserved_192 GUID_BUILDER(ADO_Reserved_192,1C90947B,4A3A,4ECD,8C,70,F4,3F,E5,2D,46,45) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_192; +#undef ADO_Reserved_192 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_193 +#define ADO_Reserved_193 GUID_BUILDER(ADO_Reserved_193,48175E98,6672,4DB4,B5,74,8C,93,25,8D,BF,14) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_193; +#undef ADO_Reserved_193 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_194 +#define ADO_Reserved_194 GUID_BUILDER(ADO_Reserved_194,99CB88BF,E5C1,4AF0,85,00,72,36,47,DC,D2,05) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_194; +#undef ADO_Reserved_194 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_195 +#define ADO_Reserved_195 GUID_BUILDER(ADO_Reserved_195,6A2CC3CC,7855,4B27,86,F7,98,6B,AA,F9,5F,0F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_195; +#undef ADO_Reserved_195 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_196 +#define ADO_Reserved_196 GUID_BUILDER(ADO_Reserved_196,7640B336,9EBB,4017,9E,EE,54,01,F4,EC,B1,70) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_196; +#undef ADO_Reserved_196 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_197 +#define ADO_Reserved_197 GUID_BUILDER(ADO_Reserved_197,507B39E1,2965,42EA,92,66,55,8D,E4,31,53,73) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_197; +#undef ADO_Reserved_197 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_198 +#define ADO_Reserved_198 GUID_BUILDER(ADO_Reserved_198,58C591FA,37FF,4428,A0,4A,46,71,98,17,74,8C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_198; +#undef ADO_Reserved_198 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_199 +#define ADO_Reserved_199 GUID_BUILDER(ADO_Reserved_199,24BE98E9,B43D,49B5,9C,41,20,AF,C2,FE,1D,8D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_199; +#undef ADO_Reserved_199 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_200 +#define ADO_Reserved_200 GUID_BUILDER(ADO_Reserved_200,041956C5,B951,4C8F,8C,61,8E,12,34,E1,E9,61) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_200; +#undef ADO_Reserved_200 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_201 +#define ADO_Reserved_201 GUID_BUILDER(ADO_Reserved_201,6C98D05C,D366,48B4,80,E3,8F,A1,CC,06,1D,B7) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_201; +#undef ADO_Reserved_201 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_202 +#define ADO_Reserved_202 GUID_BUILDER(ADO_Reserved_202,09570783,A1E8,4A52,BA,74,6C,AC,02,C0,14,8C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_202; +#undef ADO_Reserved_202 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_203 +#define ADO_Reserved_203 GUID_BUILDER(ADO_Reserved_203,96C8C205,FD0D,4B56,9A,12,39,B3,7E,9D,07,4D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_203; +#undef ADO_Reserved_203 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_204 +#define ADO_Reserved_204 GUID_BUILDER(ADO_Reserved_204,136C40E1,366E,4BA6,AF,71,C4,9A,EF,17,3F,C0) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_204; +#undef ADO_Reserved_204 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_205 +#define ADO_Reserved_205 GUID_BUILDER(ADO_Reserved_205,A298C799,06FB,466E,B5,6D,3E,CC,6D,0C,D6,75) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_205; +#undef ADO_Reserved_205 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_206 +#define ADO_Reserved_206 GUID_BUILDER(ADO_Reserved_206,41A96542,08F2,4609,B7,6A,ED,93,E5,5B,8C,60) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_206; +#undef ADO_Reserved_206 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_207 +#define ADO_Reserved_207 GUID_BUILDER(ADO_Reserved_207,65A3B57E,06F9,4572,80,91,17,3F,C4,A6,5A,16) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_207; +#undef ADO_Reserved_207 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_208 +#define ADO_Reserved_208 GUID_BUILDER(ADO_Reserved_208,114F3E9D,5431,4DC1,95,42,9B,85,44,CF,83,B2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_208; +#undef ADO_Reserved_208 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_209 +#define ADO_Reserved_209 GUID_BUILDER(ADO_Reserved_209,41DE92D4,9F2A,4085,8C,C1,C1,04,3E,5B,11,12) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_209; +#undef ADO_Reserved_209 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_210 +#define ADO_Reserved_210 GUID_BUILDER(ADO_Reserved_210,E32A7A98,FF1E,45C9,AA,51,5F,86,9A,9A,48,57) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_210; +#undef ADO_Reserved_210 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_211 +#define ADO_Reserved_211 GUID_BUILDER(ADO_Reserved_211,5E5A209F,3EFC,48BC,A7,1E,F4,CE,BE,4C,A6,25) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_211; +#undef ADO_Reserved_211 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_212 +#define ADO_Reserved_212 GUID_BUILDER(ADO_Reserved_212,C556C1CC,8B2E,482B,B7,8C,E2,F6,FD,A0,4F,4D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_212; +#undef ADO_Reserved_212 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_213 +#define ADO_Reserved_213 GUID_BUILDER(ADO_Reserved_213,39C54FD9,A22A,43D4,A4,36,D9,CB,C5,53,D5,5A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_213; +#undef ADO_Reserved_213 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_214 +#define ADO_Reserved_214 GUID_BUILDER(ADO_Reserved_214,750E0BA2,E25C,479F,B0,C1,58,44,A1,4D,08,77) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_214; +#undef ADO_Reserved_214 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_215 +#define ADO_Reserved_215 GUID_BUILDER(ADO_Reserved_215,7ECBDB2C,C5C2,48FB,8A,3A,30,B7,E7,BD,17,25) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_215; +#undef ADO_Reserved_215 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_216 +#define ADO_Reserved_216 GUID_BUILDER(ADO_Reserved_216,0BF18AC7,8BE1,49E6,A8,57,EA,89,3A,83,58,F5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_216; +#undef ADO_Reserved_216 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_217 +#define ADO_Reserved_217 GUID_BUILDER(ADO_Reserved_217,DA74EAB6,AAFE,42AD,8A,0D,B2,73,35,0C,82,E3) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_217; +#undef ADO_Reserved_217 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_218 +#define ADO_Reserved_218 GUID_BUILDER(ADO_Reserved_218,F6A3D173,E366,424A,AD,0C,25,5C,32,2D,09,80) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_218; +#undef ADO_Reserved_218 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_219 +#define ADO_Reserved_219 GUID_BUILDER(ADO_Reserved_219,7CD83BA3,0516,4366,BB,85,DE,53,03,F7,75,08) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_219; +#undef ADO_Reserved_219 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_220 +#define ADO_Reserved_220 GUID_BUILDER(ADO_Reserved_220,42EDFC05,3A70,4F5C,8C,32,06,5E,61,45,3C,BE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_220; +#undef ADO_Reserved_220 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_221 +#define ADO_Reserved_221 GUID_BUILDER(ADO_Reserved_221,624BC037,05B0,44E1,85,A7,73,C4,7F,A0,CC,04) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_221; +#undef ADO_Reserved_221 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_222 +#define ADO_Reserved_222 GUID_BUILDER(ADO_Reserved_222,8811F8DD,FA15,4FA6,A7,6E,7E,DA,E7,0D,EC,D4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_222; +#undef ADO_Reserved_222 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_223 +#define ADO_Reserved_223 GUID_BUILDER(ADO_Reserved_223,DD310D89,9F22,4F49,89,8C,AF,A2,7F,AF,11,1C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_223; +#undef ADO_Reserved_223 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_224 +#define ADO_Reserved_224 GUID_BUILDER(ADO_Reserved_224,321E3A7D,DF0E,4FF7,98,5D,F6,E6,73,FD,E2,9F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_224; +#undef ADO_Reserved_224 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_225 +#define ADO_Reserved_225 GUID_BUILDER(ADO_Reserved_225,036D1B77,3737,47CB,9E,75,31,13,13,2D,32,B8) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_225; +#undef ADO_Reserved_225 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_226 +#define ADO_Reserved_226 GUID_BUILDER(ADO_Reserved_226,A46B9E8C,4740,4919,86,34,A3,57,73,F6,53,2F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_226; +#undef ADO_Reserved_226 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_227 +#define ADO_Reserved_227 GUID_BUILDER(ADO_Reserved_227,7C064E3A,014E,4733,9D,00,5D,03,13,F7,B7,F5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_227; +#undef ADO_Reserved_227 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_228 +#define ADO_Reserved_228 GUID_BUILDER(ADO_Reserved_228,7CBFF995,A041,4B0A,B7,9B,16,3A,74,2C,DC,CF) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_228; +#undef ADO_Reserved_228 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_229 +#define ADO_Reserved_229 GUID_BUILDER(ADO_Reserved_229,C3271965,BA03,4ABC,8F,D8,98,97,7E,4C,B3,9A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_229; +#undef ADO_Reserved_229 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_230 +#define ADO_Reserved_230 GUID_BUILDER(ADO_Reserved_230,565DC4B1,8D7A,41C6,AE,01,6C,EF,63,46,4D,5E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_230; +#undef ADO_Reserved_230 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_231 +#define ADO_Reserved_231 GUID_BUILDER(ADO_Reserved_231,3331E567,EB74,45D2,86,32,20,43,47,DB,BE,04) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_231; +#undef ADO_Reserved_231 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_232 +#define ADO_Reserved_232 GUID_BUILDER(ADO_Reserved_232,3CEE44A8,6FC5,4CD5,AA,9D,1B,67,4C,B6,2E,EC) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_232; +#undef ADO_Reserved_232 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_233 +#define ADO_Reserved_233 GUID_BUILDER(ADO_Reserved_233,CD1BE145,71B9,4CCD,A7,AF,5B,BA,A0,2A,51,E6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_233; +#undef ADO_Reserved_233 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_234 +#define ADO_Reserved_234 GUID_BUILDER(ADO_Reserved_234,4203C429,F3F0,4DD7,91,24,51,E0,13,95,5E,7A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_234; +#undef ADO_Reserved_234 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_235 +#define ADO_Reserved_235 GUID_BUILDER(ADO_Reserved_235,BB256836,2804,492F,9C,B2,CF,83,CB,82,63,8A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_235; +#undef ADO_Reserved_235 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_236 +#define ADO_Reserved_236 GUID_BUILDER(ADO_Reserved_236,8B247756,34AA,45EF,B1,24,A9,60,66,AC,E8,D6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_236; +#undef ADO_Reserved_236 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_237 +#define ADO_Reserved_237 GUID_BUILDER(ADO_Reserved_237,EF1CF73C,4915,4289,AD,C4,DD,DA,62,70,70,A6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_237; +#undef ADO_Reserved_237 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_238 +#define ADO_Reserved_238 GUID_BUILDER(ADO_Reserved_238,D0EB0A94,91A0,49D3,97,26,94,52,66,5A,FE,53) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_238; +#undef ADO_Reserved_238 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_239 +#define ADO_Reserved_239 GUID_BUILDER(ADO_Reserved_239,D6F5003E,4C06,47B1,89,E9,D6,3C,3D,7D,41,B6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_239; +#undef ADO_Reserved_239 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_240 +#define ADO_Reserved_240 GUID_BUILDER(ADO_Reserved_240,AA803151,F4AE,4CE3,BC,92,97,1C,84,2E,F5,BC) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_240; +#undef ADO_Reserved_240 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_241 +#define ADO_Reserved_241 GUID_BUILDER(ADO_Reserved_241,C4BB086F,5B11,4C67,98,6C,8C,D4,8C,5C,E3,8B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_241; +#undef ADO_Reserved_241 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_242 +#define ADO_Reserved_242 GUID_BUILDER(ADO_Reserved_242,F1C4A502,4744,478F,87,71,C6,94,CC,2D,F7,B6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_242; +#undef ADO_Reserved_242 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_243 +#define ADO_Reserved_243 GUID_BUILDER(ADO_Reserved_243,2CD39761,F389,4F5E,BE,91,A6,B9,1B,18,AD,12) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_243; +#undef ADO_Reserved_243 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_244 +#define ADO_Reserved_244 GUID_BUILDER(ADO_Reserved_244,8895BA8F,0CB7,4354,A8,EA,CD,9D,F4,1B,F8,88) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_244; +#undef ADO_Reserved_244 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_245 +#define ADO_Reserved_245 GUID_BUILDER(ADO_Reserved_245,71E0B0DC,1245,441D,92,92,32,71,3F,57,97,7A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_245; +#undef ADO_Reserved_245 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_246 +#define ADO_Reserved_246 GUID_BUILDER(ADO_Reserved_246,7604D0CB,F137,472D,8B,4C,85,66,72,9A,CF,03) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_246; +#undef ADO_Reserved_246 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_247 +#define ADO_Reserved_247 GUID_BUILDER(ADO_Reserved_247,94C9B5AC,8309,4F4B,8E,68,C4,37,7E,C2,B7,91) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_247; +#undef ADO_Reserved_247 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_248 +#define ADO_Reserved_248 GUID_BUILDER(ADO_Reserved_248,0E555180,5E2C,4BF6,90,A0,1B,36,3D,4B,B9,99) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_248; +#undef ADO_Reserved_248 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_249 +#define ADO_Reserved_249 GUID_BUILDER(ADO_Reserved_249,C077D666,6988,4EAC,A5,52,61,61,55,F9,6A,12) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_249; +#undef ADO_Reserved_249 +#endif // IMMEDIATE_GUID_USE + +#endif // RESERVED_GUIDS_BEYOND_THIS_POINT + +#endif // !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_WIN8) \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adogpool_Backcompat.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adogpool_Backcompat.h new file mode 100644 index 0000000000000000000000000000000000000000..c592e1a9f2de2a17c0a1513b6a12e2314b8b7b73 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adogpool_Backcompat.h @@ -0,0 +1,2691 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//----------------------------------------------------------------------------- +// File: adogpool_Backcompat.h +// +// Contents: ADO GUIDs definition +// +// Comments: This is essentially the file "adogpool.h" shipped in Win7 SDK +// +//----------------------------------------------------------------------------- + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef INCLUDING_ADOGUIDS +#error Incorrect usage of this include file - cannot be used directly +#endif + +// How to assign new GUID: +// +// 1) In this file search for macro RESERVED_GUIDS_BEYOND_THIS_POINT +// 2) Take first reserved GUID in this section and move #ifdef RESERVED_GUIDS_BEYOND_THIS_POINT +// beyond the guid being newly assigned +// 3) rename all instances of pattern ADO_Reserved_xxx (there are 5 of them including the comment) +// with the desired GUID name +// 4) for midl, usage is typically: uuid(ADO_Reserved_1) +// for C++: ADO_Reserved_1 +// +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Guids from adoid.h follow: + +#define MAXAVAILABLEGUID 0x00000570 +#define MAXAVAILABLEGUIDALL 0x0000057F + +#define LIBID_ADO LIBID_ADO60 +#define LIBID_ADOR LIBID_ADOR20 +#define LIBID_CADO10 LIBID_ADO20 +#define LIBID_CADOR10 LIBID_ADOR20 + +// LIBID_ADO20 +#define LIBID_ADO20 GUID_BUILDER(LIBID_ADO20,00000200,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO20; +#undef LIBID_ADO20 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADO21 +#define LIBID_ADO21 GUID_BUILDER(LIBID_ADO21,00000201,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO21; +#undef LIBID_ADO21 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADOR20 +#define LIBID_ADOR20 GUID_BUILDER(LIBID_ADOR20,00000300,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADOR20; +#undef LIBID_ADOR20 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADO25 +#define LIBID_ADO25 GUID_BUILDER(LIBID_ADO25,00000205,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO25; +#undef LIBID_ADO25 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADO26 +#define LIBID_ADO26 GUID_BUILDER(LIBID_ADO26,00000206,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO26; +#undef LIBID_ADO26 +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADOR25 +#define LIBID_ADOR25 GUID_BUILDER(LIBID_ADOR25,00000305,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADOR25; +#undef LIBID_ADOR25 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOError +#define IID_IADOError GUID_BUILDER(IID_IADOError,00000500,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOError; +#undef IID_IADOError +#endif // IMMEDIATE_GUID_USE + +// IID_IADOErrors +#define IID_IADOErrors GUID_BUILDER(IID_IADOErrors,00000501,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOErrors; +#undef IID_IADOErrors +#endif // IMMEDIATE_GUID_USE + +// IID_IADOProperty +#define IID_IADOProperty GUID_BUILDER(IID_IADOProperty,00000503,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOProperty; +#undef IID_IADOProperty +#endif // IMMEDIATE_GUID_USE + +// IID_IADOProperties +#define IID_IADOProperties GUID_BUILDER(IID_IADOProperties,00000504,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOProperties; +#undef IID_IADOProperties +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOField +#define CLSID_CADOField GUID_BUILDER(CLSID_CADOField,0000053A,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOField; +#undef CLSID_CADOField +#endif // IMMEDIATE_GUID_USE + +// IID_IADOField15 +#define IID_IADOField15 GUID_BUILDER(IID_IADOField15,00000505,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOField15; +#undef IID_IADOField15 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOField20 +#define IID_IADOField20 GUID_BUILDER(IID_IADOField20,0000054C,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOField20; +#undef IID_IADOField20 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOField +#define IID_IADOField GUID_BUILDER(IID_IADOField,00000569,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOField; +#undef IID_IADOField +#endif // IMMEDIATE_GUID_USE + +#ifdef _LOCKBYTESUPPORT_ + +// IID_IADOField25 +#define IID_IADOField25 GUID_BUILDER(IID_IADOField25,00000569,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOField25; +#undef IID_IADOField25 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOField26 +#define IID_IADOField26 GUID_BUILDER(IID_IADOField26,00000557,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOField26; +#undef IID_IADOField26 +#endif // IMMEDIATE_GUID_USE + +#endif // _LOCKBYTESUPPORT_ + +// IID_IADOFields15 +#define IID_IADOFields15 GUID_BUILDER(IID_IADOFields15,00000506,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOFields15; +#undef IID_IADOFields15 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOFields20 +#define IID_IADOFields20 GUID_BUILDER(IID_IADOFields20,0000054D,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOFields20; +#undef IID_IADOFields20 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOFields +#define IID_IADOFields GUID_BUILDER(IID_IADOFields,00000564,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOFields; +#undef IID_IADOFields +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOCommand +#define CLSID_CADOCommand GUID_BUILDER(CLSID_CADOCommand,00000507,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOCommand; +#undef CLSID_CADOCommand +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCommand15 +#define IID_IADOCommand15 GUID_BUILDER(IID_IADOCommand15,00000508,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCommand15; +#undef IID_IADOCommand15 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCommand25 +#define IID_IADOCommand25 GUID_BUILDER(IID_IADOCommand25,0000054E,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCommand25; +#undef IID_IADOCommand25 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCommands +#define IID_IADOCommands GUID_BUILDER(IID_IADOCommands,00000509,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCommands; +#undef IID_IADOCommands +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCommandConstruction +#define IID_IADOCommandConstruction GUID_BUILDER(IID_IADOCommandConstruction,00000517,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCommandConstruction; +#undef IID_IADOCommandConstruction +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOParameter +#define CLSID_CADOParameter GUID_BUILDER(CLSID_CADOParameter,0000050B,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOParameter; +#undef CLSID_CADOParameter +#endif // IMMEDIATE_GUID_USE + +// IID_IADOParameter +#define IID_IADOParameter GUID_BUILDER(IID_IADOParameter,0000050C,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOParameter; +#undef IID_IADOParameter +#endif // IMMEDIATE_GUID_USE + +// IID_IADOParameters +#define IID_IADOParameters GUID_BUILDER(IID_IADOParameters,0000050D,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOParameters; +#undef IID_IADOParameters +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADORecordset +#define CLSID_CADORecordset GUID_BUILDER(CLSID_CADORecordset,00000535,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADORecordset; +#undef CLSID_CADORecordset +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordset15 +#define IID_IADORecordset15 GUID_BUILDER(IID_IADORecordset15,0000050E,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordset15; +#undef IID_IADORecordset15 +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordset20 +#define IID_IADORecordset20 GUID_BUILDER(IID_IADORecordset20,0000054F,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordset20; +#undef IID_IADORecordset20 +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordset21 +#define IID_IADORecordset21 GUID_BUILDER(IID_IADORecordset21,00000555,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordset21; +#undef IID_IADORecordset21 +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordset25 +#define IID_IADORecordset25 GUID_BUILDER(IID_IADORecordset25,00000556,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordset25; +#undef IID_IADORecordset25 +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordset +#define IID_IADORecordset GUID_BUILDER(IID_IADORecordset,00000556,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordset; +#undef IID_IADORecordset +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordsets +#define IID_IADORecordsets GUID_BUILDER(IID_IADORecordsets,0000050F,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordsets; +#undef IID_IADORecordsets +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordsetConstruction +#define IID_IADORecordsetConstruction GUID_BUILDER(IID_IADORecordsetConstruction,00000283,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordsetConstruction; +#undef IID_IADORecordsetConstruction +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCollection +#define IID_IADOCollection GUID_BUILDER(IID_IADOCollection,00000512,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCollection; +#undef IID_IADOCollection +#endif // IMMEDIATE_GUID_USE + +// IID_IADODynaCollection +#define IID_IADODynaCollection GUID_BUILDER(IID_IADODynaCollection,00000513,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADODynaCollection; +#undef IID_IADODynaCollection +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOConnection +#define CLSID_CADOConnection GUID_BUILDER(CLSID_CADOConnection,00000514,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOConnection; +#undef CLSID_CADOConnection +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnection15 +#define IID_IADOConnection15 GUID_BUILDER(IID_IADOConnection15,00000515,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnection15; +#undef IID_IADOConnection15 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnection +#define IID_IADOConnection GUID_BUILDER(IID_IADOConnection,00000550,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnection; +#undef IID_IADOConnection +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnectionConstruction15 +#define IID_IADOConnectionConstruction15 GUID_BUILDER(IID_IADOConnectionConstruction15,00000516,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnectionConstruction15; +#undef IID_IADOConnectionConstruction15 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnectionConstruction +#define IID_IADOConnectionConstruction GUID_BUILDER(IID_IADOConnectionConstruction,00000551,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnectionConstruction; +#undef IID_IADOConnectionConstruction +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnections +#define IID_IADOConnections GUID_BUILDER(IID_IADOConnections,00000518,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnections; +#undef IID_IADOConnections +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordsetEvents +#define IID_IADORecordsetEvents GUID_BUILDER(IID_IADORecordsetEvents,00000266,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordsetEvents; +#undef IID_IADORecordsetEvents +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnectionEvents +#define IID_IADOConnectionEvents GUID_BUILDER(IID_IADOConnectionEvents,00000400,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnectionEvents; +#undef IID_IADOConnectionEvents +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordsetEventsVt +#define IID_IADORecordsetEventsVt GUID_BUILDER(IID_IADORecordsetEventsVt,00000403,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordsetEventsVt; +#undef IID_IADORecordsetEventsVt +#endif // IMMEDIATE_GUID_USE + +// IID_IADOConnectionEventsVt +#define IID_IADOConnectionEventsVt GUID_BUILDER(IID_IADOConnectionEventsVt,00000402,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOConnectionEventsVt; +#undef IID_IADOConnectionEventsVt +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADORecord +#define CLSID_CADORecord GUID_BUILDER(CLSID_CADORecord,00000560,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADORecord; +#undef CLSID_CADORecord +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADORecField +#define CLSID_CADORecField GUID_BUILDER(CLSID_CADORecField,00000561,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADORecField; +#undef CLSID_CADORecField +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecord +#define IID_IADORecord GUID_BUILDER(IID_IADORecord,00000562,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecord; +#undef IID_IADORecord +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecord25 +#define IID_IADORecord25 GUID_BUILDER(IID_IADORecord25,00000562,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecord25; +#undef IID_IADORecord25 +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecord26 +#define IID_IADORecord26 GUID_BUILDER(IID_IADORecord26,00000563,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecord26; +#undef IID_IADORecord26 +#endif // IMMEDIATE_GUID_USE + +// IID_IADOStream +#define IID_IADOStream GUID_BUILDER(IID_IADOStream,00000565,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOStream; +#undef IID_IADOStream +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOStream +#define CLSID_CADOStream GUID_BUILDER(CLSID_CADOStream,00000566,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOStream; +#undef CLSID_CADOStream +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordConstruction +#define IID_IADORecordConstruction GUID_BUILDER(IID_IADORecordConstruction,00000567,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordConstruction; +#undef IID_IADORecordConstruction +#endif // IMMEDIATE_GUID_USE + +// IID_IADOStreamConstruction +#define IID_IADOStreamConstruction GUID_BUILDER(IID_IADOStreamConstruction,00000568,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOStreamConstruction; +#undef IID_IADOStreamConstruction +#endif // IMMEDIATE_GUID_USE + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Guids from adoidall.h follow: + +// IID_EnumCursorType +#define IID_EnumCursorType GUID_BUILDER(IID_EnumCursorType,0000051B,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCursorType; +#undef IID_EnumCursorType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCursorOption +#define IID_EnumCursorOption GUID_BUILDER(IID_EnumCursorOption,0000051C,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCursorOption; +#undef IID_EnumCursorOption +#endif // IMMEDIATE_GUID_USE + +// IID_EnumLockType +#define IID_EnumLockType GUID_BUILDER(IID_EnumLockType,0000051D,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumLockType; +#undef IID_EnumLockType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumExecuteOption +#define IID_EnumExecuteOption GUID_BUILDER(IID_EnumExecuteOption,0000051E,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumExecuteOption; +#undef IID_EnumExecuteOption +#endif // IMMEDIATE_GUID_USE + +// IID_EnumDataType +#define IID_EnumDataType GUID_BUILDER(IID_EnumDataType,0000051F,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumDataType; +#undef IID_EnumDataType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumConnectPrompt +#define IID_EnumConnectPrompt GUID_BUILDER(IID_EnumConnectPrompt,00000520,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumConnectPrompt; +#undef IID_EnumConnectPrompt +#endif // IMMEDIATE_GUID_USE + +// IID_EnumConnectMode +#define IID_EnumConnectMode GUID_BUILDER(IID_EnumConnectMode,00000521,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumConnectMode; +#undef IID_EnumConnectMode +#endif // IMMEDIATE_GUID_USE + +// IID_EnumPrepareOption +#define IID_EnumPrepareOption GUID_BUILDER(IID_EnumPrepareOption,00000522,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumPrepareOption; +#undef IID_EnumPrepareOption +#endif // IMMEDIATE_GUID_USE + +// IID_EnumIsolationLevel +#define IID_EnumIsolationLevel GUID_BUILDER(IID_EnumIsolationLevel,00000523,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumIsolationLevel; +#undef IID_EnumIsolationLevel +#endif // IMMEDIATE_GUID_USE + +// IID_EnumXactAttribute +#define IID_EnumXactAttribute GUID_BUILDER(IID_EnumXactAttribute,00000524,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumXactAttribute; +#undef IID_EnumXactAttribute +#endif // IMMEDIATE_GUID_USE + +// IID_EnumFieldAttribute +#define IID_EnumFieldAttribute GUID_BUILDER(IID_EnumFieldAttribute,00000525,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumFieldAttribute; +#undef IID_EnumFieldAttribute +#endif // IMMEDIATE_GUID_USE + +// IID_EnumEditMode +#define IID_EnumEditMode GUID_BUILDER(IID_EnumEditMode,00000526,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumEditMode; +#undef IID_EnumEditMode +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRecordStatus +#define IID_EnumRecordStatus GUID_BUILDER(IID_EnumRecordStatus,00000527,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRecordStatus; +#undef IID_EnumRecordStatus +#endif // IMMEDIATE_GUID_USE + +// IID_EnumPosition +#define IID_EnumPosition GUID_BUILDER(IID_EnumPosition,00000528,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumPosition; +#undef IID_EnumPosition +#endif // IMMEDIATE_GUID_USE + +// IID_EnumPropertyAttributes +#define IID_EnumPropertyAttributes GUID_BUILDER(IID_EnumPropertyAttributes,00000529,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumPropertyAttributes; +#undef IID_EnumPropertyAttributes +#endif // IMMEDIATE_GUID_USE + +// IID_EnumErrorValue +#define IID_EnumErrorValue GUID_BUILDER(IID_EnumErrorValue,0000052A,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumErrorValue; +#undef IID_EnumErrorValue +#endif // IMMEDIATE_GUID_USE + +// IID_EnumParameterAttributes +#define IID_EnumParameterAttributes GUID_BUILDER(IID_EnumParameterAttributes,0000052B,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumParameterAttributes; +#undef IID_EnumParameterAttributes +#endif // IMMEDIATE_GUID_USE + +// IID_EnumParameterDirection +#define IID_EnumParameterDirection GUID_BUILDER(IID_EnumParameterDirection,0000052C,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumParameterDirection; +#undef IID_EnumParameterDirection +#endif // IMMEDIATE_GUID_USE + +// IID_EnumFilterCriteria +#define IID_EnumFilterCriteria GUID_BUILDER(IID_EnumFilterCriteria,0000052D,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumFilterCriteria; +#undef IID_EnumFilterCriteria +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCommandType +#define IID_EnumCommandType GUID_BUILDER(IID_EnumCommandType,0000052E,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCommandType; +#undef IID_EnumCommandType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCursorLocation +#define IID_EnumCursorLocation GUID_BUILDER(IID_EnumCursorLocation,0000052F,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCursorLocation; +#undef IID_EnumCursorLocation +#endif // IMMEDIATE_GUID_USE + +// IID_EnumEventStatus +#define IID_EnumEventStatus GUID_BUILDER(IID_EnumEventStatus,00000530,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumEventStatus; +#undef IID_EnumEventStatus +#endif // IMMEDIATE_GUID_USE + +// IID_EnumEventReason +#define IID_EnumEventReason GUID_BUILDER(IID_EnumEventReason,00000531,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumEventReason; +#undef IID_EnumEventReason +#endif // IMMEDIATE_GUID_USE + +// IID_EnumObjectState +#define IID_EnumObjectState GUID_BUILDER(IID_EnumObjectState,00000532,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumObjectState; +#undef IID_EnumObjectState +#endif // IMMEDIATE_GUID_USE + +// IID_EnumSchema +#define IID_EnumSchema GUID_BUILDER(IID_EnumSchema,00000533,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumSchema; +#undef IID_EnumSchema +#endif // IMMEDIATE_GUID_USE + +// IID_EnumMarshalOptions +#define IID_EnumMarshalOptions GUID_BUILDER(IID_EnumMarshalOptions,00000540,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumMarshalOptions; +#undef IID_EnumMarshalOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumConnectOption +#define IID_EnumConnectOption GUID_BUILDER(IID_EnumConnectOption,00000541,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumConnectOption; +#undef IID_EnumConnectOption +#endif // IMMEDIATE_GUID_USE + +// IID_EnumGetRowsOption +#define IID_EnumGetRowsOption GUID_BUILDER(IID_EnumGetRowsOption,00000542,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumGetRowsOption; +#undef IID_EnumGetRowsOption +#endif // IMMEDIATE_GUID_USE + +// IID_EnumAffect +#define IID_EnumAffect GUID_BUILDER(IID_EnumAffect,00000543,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumAffect; +#undef IID_EnumAffect +#endif // IMMEDIATE_GUID_USE + +// IID_EnumResync +#define IID_EnumResync GUID_BUILDER(IID_EnumResync,00000544,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumResync; +#undef IID_EnumResync +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCompare +#define IID_EnumCompare GUID_BUILDER(IID_EnumCompare,00000545,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCompare; +#undef IID_EnumCompare +#endif // IMMEDIATE_GUID_USE + +// IID_EnumFilterGroup +#define IID_EnumFilterGroup GUID_BUILDER(IID_EnumFilterGroup,00000546,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumFilterGroup; +#undef IID_EnumFilterGroup +#endif // IMMEDIATE_GUID_USE + +// IID_EnumSearchDirection +#define IID_EnumSearchDirection GUID_BUILDER(IID_EnumSearchDirection,00000547,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumSearchDirection; +#undef IID_EnumSearchDirection +#endif // IMMEDIATE_GUID_USE + +// IID_EnumPersistFormat +#define IID_EnumPersistFormat GUID_BUILDER(IID_EnumPersistFormat,00000548,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumPersistFormat; +#undef IID_EnumPersistFormat +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStringFormat +#define IID_EnumStringFormat GUID_BUILDER(IID_EnumStringFormat,00000549,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStringFormat; +#undef IID_EnumStringFormat +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRDSUpdateCriteria +#define IID_EnumRDSUpdateCriteria GUID_BUILDER(IID_EnumRDSUpdateCriteria,0000054A,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRDSUpdateCriteria; +#undef IID_EnumRDSUpdateCriteria +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRDSAsyncThreadPriority +#define IID_EnumRDSAsyncThreadPriority GUID_BUILDER(IID_EnumRDSAsyncThreadPriority,0000054B,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRDSAsyncThreadPriority; +#undef IID_EnumRDSAsyncThreadPriority +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCEResync +#define IID_EnumCEResync GUID_BUILDER(IID_EnumCEResync,00000553,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCEResync; +#undef IID_EnumCEResync +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRDSAutoRecalc +#define IID_EnumRDSAutoRecalc GUID_BUILDER(IID_EnumRDSAutoRecalc,00000554,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRDSAutoRecalc; +#undef IID_EnumRDSAutoRecalc +#endif // IMMEDIATE_GUID_USE + +// IID_EnumSeek +#define IID_EnumSeek GUID_BUILDER(IID_EnumSeek,00000552,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumSeek; +#undef IID_EnumSeek +#endif // IMMEDIATE_GUID_USE + +// IID_IADORecordGroup +#define IID_IADORecordGroup GUID_BUILDER(IID_IADORecordGroup,00000511,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADORecordGroup; +#undef IID_IADORecordGroup +#endif // IMMEDIATE_GUID_USE + +// IID_IADOCustomError +#define IID_IADOCustomError GUID_BUILDER(IID_IADOCustomError,00000519,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCustomError; +#undef IID_IADOCustomError +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOError +#define CLSID_CADOError GUID_BUILDER(CLSID_CADOError,00000541,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOError; +#undef CLSID_CADOError +#endif // IMMEDIATE_GUID_USE + +// IID_IPrivErrors +#define IID_IPrivErrors GUID_BUILDER(IID_IPrivErrors,00000502,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IPrivErrors; +#undef IID_IPrivErrors +#endif // IMMEDIATE_GUID_USE + +// CLSID_CADOErrorLookup +#define CLSID_CADOErrorLookup GUID_BUILDER(CLSID_CADOErrorLookup,00000542,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_CADOErrorLookup; +#undef CLSID_CADOErrorLookup +#endif // IMMEDIATE_GUID_USE + +// CLSID_ADO +#define CLSID_ADO GUID_BUILDER(CLSID_ADO,0000051A,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +CLSID_ADO; +#undef CLSID_ADO +#endif // IMMEDIATE_GUID_USE + +// IID_ConnectionEvents +#define IID_ConnectionEvents GUID_BUILDER(IID_ConnectionEvents,00000400,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_ConnectionEvents; +#undef IID_ConnectionEvents +#endif // IMMEDIATE_GUID_USE + +// IID_ConnectionEventsVt +#define IID_ConnectionEventsVt GUID_BUILDER(IID_ConnectionEventsVt,00000402,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_ConnectionEventsVt; +#undef IID_ConnectionEventsVt +#endif // IMMEDIATE_GUID_USE + +// IID_IADO10StdObject +#define IID_IADO10StdObject GUID_BUILDER(IID_IADO10StdObject,00000534,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADO10StdObject; +#undef IID_IADO10StdObject +#endif // IMMEDIATE_GUID_USE + +// IID__ADO +#define IID__ADO GUID_BUILDER(IID__ADO,00000534,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID__ADO; +#undef IID__ADO +#endif // IMMEDIATE_GUID_USE + +// IID_IADOClass +#define IID_IADOClass GUID_BUILDER(IID_IADOClass,00000560,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_IADOClass; +#undef IID_IADOClass +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRecordCreateOptions +#define IID_EnumRecordCreateOptions GUID_BUILDER(IID_EnumRecordCreateOptions,00000570,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRecordCreateOptions; +#undef IID_EnumRecordCreateOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRecordOpenOptions +#define IID_EnumRecordOpenOptions GUID_BUILDER(IID_EnumRecordOpenOptions,00000571,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRecordOpenOptions; +#undef IID_EnumRecordOpenOptions +#endif // IMMEDIATE_GUID_USE + + +// IID_EnumMoveRecordOptions +#define IID_EnumMoveRecordOptions GUID_BUILDER(IID_EnumMoveRecordOptions,00000573,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumMoveRecordOptions; +#undef IID_EnumMoveRecordOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumCopyRecordOptions +#define IID_EnumCopyRecordOptions GUID_BUILDER(IID_EnumCopyRecordOptions,00000574,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumCopyRecordOptions; +#undef IID_EnumCopyRecordOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumMode +#define IID_EnumMode GUID_BUILDER(IID_EnumMode,00000575,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumMode; +#undef IID_EnumMode +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStreamType +#define IID_EnumStreamType GUID_BUILDER(IID_EnumStreamType,00000576,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStreamType; +#undef IID_EnumStreamType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumLineSeparator +#define IID_EnumLineSeparator GUID_BUILDER(IID_EnumLineSeparator,00000577,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumLineSeparator; +#undef IID_EnumLineSeparator +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStreamOpenOptions +#define IID_EnumStreamOpenOptions GUID_BUILDER(IID_EnumStreamOpenOptions,0000057A,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStreamOpenOptions; +#undef IID_EnumStreamOpenOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStreamWrite +#define IID_EnumStreamWrite GUID_BUILDER(IID_EnumStreamWrite,0000057B,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStreamWrite; +#undef IID_EnumStreamWrite +#endif // IMMEDIATE_GUID_USE + +// IID_EnumSaveOptions +#define IID_EnumSaveOptions GUID_BUILDER(IID_EnumSaveOptions,0000057C,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumSaveOptions; +#undef IID_EnumSaveOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumRecordType +#define IID_EnumRecordType GUID_BUILDER(IID_EnumRecordType,0000057D,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumRecordType; +#undef IID_EnumRecordType +#endif // IMMEDIATE_GUID_USE + +// IID_EnumFieldStatus +#define IID_EnumFieldStatus GUID_BUILDER(IID_EnumFieldStatus,0000057E,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumFieldStatus; +#undef IID_EnumFieldStatus +#endif // IMMEDIATE_GUID_USE + + +#if 0 + +// ICRecordset +#define ICRecordset GUID_BUILDER(ICRecordset,00000543,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +ICRecordset; +#undef ICRecordset +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStreamReadOptions +#define IID_EnumStreamReadOptions GUID_BUILDER(IID_EnumStreamReadOptions,00000572,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStreamReadOptions; +#undef IID_EnumStreamReadOptions +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStateProperty +#define IID_EnumStateProperty GUID_BUILDER(IID_EnumStateProperty,00000578,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStateProperty; +#undef IID_EnumStateProperty +#endif // IMMEDIATE_GUID_USE + +// IID_EnumStreamMode +#define IID_EnumStreamMode GUID_BUILDER(IID_EnumStreamMode,00000579,0000,0010,80,00,00,AA,00,6D,2E,A4) +#ifdef IMMEDIATE_GUID_USE +IID_EnumStreamMode; +#undef IID_EnumStreamMode +#endif // IMMEDIATE_GUID_USE + +#endif + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// End of old guid pool. Newly generated ADO GUID pool follows. + + +// IID_IADOCommand +#define IID_IADOCommand GUID_BUILDER(IID_IADOCommand,B08400BD,F9D1,4D02,B8,56,71,D5,DB,A1,23,E9) +#ifdef IMMEDIATE_GUID_USE +IID_IADOCommand; +#undef IID_IADOCommand +#endif // IMMEDIATE_GUID_USE + +// LIBID_ADO27 +#define LIBID_ADO27 GUID_BUILDER(LIBID_ADO27,EF53050B,882E,4776,B6,43,ED,A4,72,E8,E3,F2) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO27; +#undef LIBID_ADO27 +#endif // IMMEDIATE_GUID_USE + +// IID_ICMemStreamProperties +#define IID_ICMemStreamProperties GUID_BUILDER(IID_ICMemStreamProperties,FF184014,B5D3,4310,AB,F0,9B,70,45,A2,CF,17) +#ifdef IMMEDIATE_GUID_USE +IID_ICMemStreamProperties; +#undef IID_ICMemStreamProperties +#endif // IMMEDIATE_GUID_USE + + + +// LIBID_ADO28 this is reserved GUID 11 we have to get it from there as 9.0 sterted using GUIDs in parallel with 28 +#define LIBID_ADO28 GUID_BUILDER(LIBID_ADO28,2A75196C,D9EB,4129,B8,03,93,13,27,F7,2D,5C) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO28; +#undef LIBID_ADO28 +#endif // IMMEDIATE_GUID_USE + + +// LIBID_ADO60 +#define LIBID_ADO60 GUID_BUILDER(LIBID_ADO60,B691E011,1797,432E,90,7A,4D,8C,69,33,91,29) +#ifdef IMMEDIATE_GUID_USE +LIBID_ADO60; +#undef LIBID_ADO60 +#endif // IMMEDIATE_GUID_USE + + +#ifdef RESERVED_GUIDS_BEYOND_THIS_POINT + +// ADO_Reserved_4 +#define ADO_Reserved_4 GUID_BUILDER(ADO_Reserved_4,567747F1,658B,4906,82,C4,E9,CD,A1,46,26,15) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_4; +#undef ADO_Reserved_4 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_5 +#define ADO_Reserved_5 GUID_BUILDER(ADO_Reserved_5,986761E8,7269,4890,AA,65,AD,7C,03,69,7A,6D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_5; +#undef ADO_Reserved_5 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_6 +#define ADO_Reserved_6 GUID_BUILDER(ADO_Reserved_6,ED5A4589,7A9D,41DF,89,86,CC,A9,25,01,A5,DA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_6; +#undef ADO_Reserved_6 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_7 +#define ADO_Reserved_7 GUID_BUILDER(ADO_Reserved_7,C029178A,F16B,4A06,82,93,A8,08,B7,F8,78,92) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_7; +#undef ADO_Reserved_7 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_8 +#define ADO_Reserved_8 GUID_BUILDER(ADO_Reserved_8,FD6974FD,21FB,409C,96,56,A5,68,FE,C0,AC,01) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_8; +#undef ADO_Reserved_8 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_9 +#define ADO_Reserved_9 GUID_BUILDER(ADO_Reserved_9,F23FCB5E,7159,4CBA,A3,41,0E,7A,A5,15,18,70) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_9; +#undef ADO_Reserved_9 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_10 +#define ADO_Reserved_10 GUID_BUILDER(ADO_Reserved_10,E724D5C9,327C,43F7,86,4C,68,2F,FF,5C,99,93) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_10; +#undef ADO_Reserved_10 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_11 do not use this +//#define ADO_Reserved_11 GUID_BUILDER(ADO_Reserved_11,2A75196C,D9EB,4129,B8,03,93,13,27,F7,2D,5C) +//#ifdef IMMEDIATE_GUID_USE do not use this used for 28 tlb +//ADO_Reserved_11; +//#undef ADO_Reserved_11 +//#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_12 +#define ADO_Reserved_12 GUID_BUILDER(ADO_Reserved_12,8831EBB5,2C09,4DDD,9A,7A,AC,13,6D,58,D7,21) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_12; +#undef ADO_Reserved_12 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_13 +#define ADO_Reserved_13 GUID_BUILDER(ADO_Reserved_13,447B1221,64FA,44E9,B1,46,B1,1F,16,E3,14,B2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_13; +#undef ADO_Reserved_13 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_14 +#define ADO_Reserved_14 GUID_BUILDER(ADO_Reserved_14,FC528DC2,A992,44D3,97,9F,07,F7,F4,45,5F,23) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_14; +#undef ADO_Reserved_14 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_15 +#define ADO_Reserved_15 GUID_BUILDER(ADO_Reserved_15,C2CC7BC0,9F8B,46C8,83,6B,BC,46,70,28,F4,54) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_15; +#undef ADO_Reserved_15 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_16 +#define ADO_Reserved_16 GUID_BUILDER(ADO_Reserved_16,4687EE6C,12CE,4A31,97,E9,E6,49,6D,E7,2C,71) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_16; +#undef ADO_Reserved_16 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_17 +#define ADO_Reserved_17 GUID_BUILDER(ADO_Reserved_17,4B56FC5D,992F,4339,95,81,C5,40,7A,B2,BF,FD) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_17; +#undef ADO_Reserved_17 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_18 +#define ADO_Reserved_18 GUID_BUILDER(ADO_Reserved_18,1F13BFB3,8BA8,46CA,91,78,74,28,EF,9A,85,C0) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_18; +#undef ADO_Reserved_18 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_19 +#define ADO_Reserved_19 GUID_BUILDER(ADO_Reserved_19,0B410060,4D75,4F77,96,A1,68,4C,38,15,E1,B1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_19; +#undef ADO_Reserved_19 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_20 +#define ADO_Reserved_20 GUID_BUILDER(ADO_Reserved_20,5593F2E0,436B,40B8,81,A8,1B,7E,F4,E6,25,2C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_20; +#undef ADO_Reserved_20 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_21 +#define ADO_Reserved_21 GUID_BUILDER(ADO_Reserved_21,88447B2F,E1C9,413E,BE,E7,A7,D2,B9,0E,D1,96) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_21; +#undef ADO_Reserved_21 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_22 +#define ADO_Reserved_22 GUID_BUILDER(ADO_Reserved_22,89BFEE1B,8CB5,4A90,89,AF,E8,29,93,4E,6C,48) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_22; +#undef ADO_Reserved_22 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_23 +#define ADO_Reserved_23 GUID_BUILDER(ADO_Reserved_23,28D7F9FC,F485,4BDB,9C,C4,6F,AE,44,F9,9F,D9) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_23; +#undef ADO_Reserved_23 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_24 +#define ADO_Reserved_24 GUID_BUILDER(ADO_Reserved_24,1BB4223F,B0E8,4540,96,FD,B8,FE,D9,A7,C0,8B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_24; +#undef ADO_Reserved_24 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_25 +#define ADO_Reserved_25 GUID_BUILDER(ADO_Reserved_25,AD1A1568,8B4A,403F,84,76,D8,F6,33,4D,BD,9F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_25; +#undef ADO_Reserved_25 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_26 +#define ADO_Reserved_26 GUID_BUILDER(ADO_Reserved_26,1326B4D8,EE0B,4054,8F,4C,86,35,9F,00,24,AD) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_26; +#undef ADO_Reserved_26 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_27 +#define ADO_Reserved_27 GUID_BUILDER(ADO_Reserved_27,98B7EB70,7AED,401A,AF,6D,A6,B8,DB,A0,AF,A6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_27; +#undef ADO_Reserved_27 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_28 +#define ADO_Reserved_28 GUID_BUILDER(ADO_Reserved_28,FD46F2C2,7FDA,4DC9,A2,DB,D9,BE,4F,59,98,C2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_28; +#undef ADO_Reserved_28 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_29 +#define ADO_Reserved_29 GUID_BUILDER(ADO_Reserved_29,FAA37542,B471,4183,A6,56,99,C8,FD,80,FF,73) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_29; +#undef ADO_Reserved_29 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_30 +#define ADO_Reserved_30 GUID_BUILDER(ADO_Reserved_30,56CE86F1,3116,4104,A5,28,17,D1,1E,DC,68,2A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_30; +#undef ADO_Reserved_30 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_31 +#define ADO_Reserved_31 GUID_BUILDER(ADO_Reserved_31,83E8CF0E,176F,4908,86,3A,2A,77,4D,76,9B,EF) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_31; +#undef ADO_Reserved_31 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_32 +#define ADO_Reserved_32 GUID_BUILDER(ADO_Reserved_32,0494D18D,98F7,4A38,80,DF,35,F8,80,98,BD,DF) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_32; +#undef ADO_Reserved_32 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_33 +#define ADO_Reserved_33 GUID_BUILDER(ADO_Reserved_33,00C61F59,4E7F,4093,BF,FD,03,53,B4,5D,E5,8B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_33; +#undef ADO_Reserved_33 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_34 +#define ADO_Reserved_34 GUID_BUILDER(ADO_Reserved_34,732A172F,384D,4C4A,A6,AF,D2,28,20,D3,34,26) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_34; +#undef ADO_Reserved_34 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_35 +#define ADO_Reserved_35 GUID_BUILDER(ADO_Reserved_35,104E1F7E,8993,455C,B7,D8,58,CD,88,74,80,75) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_35; +#undef ADO_Reserved_35 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_36 +#define ADO_Reserved_36 GUID_BUILDER(ADO_Reserved_36,C12B8DFD,42F7,408E,AE,FB,A7,C2,FB,43,49,A7) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_36; +#undef ADO_Reserved_36 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_37 +#define ADO_Reserved_37 GUID_BUILDER(ADO_Reserved_37,EE881FC9,6C2F,45A2,BA,17,24,95,BC,72,4E,55) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_37; +#undef ADO_Reserved_37 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_38 +#define ADO_Reserved_38 GUID_BUILDER(ADO_Reserved_38,7381C764,646B,4F11,A6,73,13,50,98,9D,62,3A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_38; +#undef ADO_Reserved_38 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_39 +#define ADO_Reserved_39 GUID_BUILDER(ADO_Reserved_39,D8E4965C,F571,4771,8A,74,63,95,05,16,B0,88) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_39; +#undef ADO_Reserved_39 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_40 +#define ADO_Reserved_40 GUID_BUILDER(ADO_Reserved_40,2BE262E5,3A8C,4B07,A3,C3,3B,B7,40,EF,40,95) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_40; +#undef ADO_Reserved_40 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_41 +#define ADO_Reserved_41 GUID_BUILDER(ADO_Reserved_41,3E90A199,4F86,445C,84,8E,A6,17,86,B9,67,D1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_41; +#undef ADO_Reserved_41 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_42 +#define ADO_Reserved_42 GUID_BUILDER(ADO_Reserved_42,DCD025E0,DA44,47E4,82,65,E4,A7,6B,85,29,0C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_42; +#undef ADO_Reserved_42 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_43 +#define ADO_Reserved_43 GUID_BUILDER(ADO_Reserved_43,31EFF562,FB6B,41D6,81,AD,30,1B,B0,53,9C,61) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_43; +#undef ADO_Reserved_43 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_44 +#define ADO_Reserved_44 GUID_BUILDER(ADO_Reserved_44,BD3ECD6B,F4A7,42FC,90,F1,75,D5,37,2A,F2,8F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_44; +#undef ADO_Reserved_44 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_45 +#define ADO_Reserved_45 GUID_BUILDER(ADO_Reserved_45,6EFBC56F,67E4,4F7D,BE,59,C5,D6,FA,21,B7,77) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_45; +#undef ADO_Reserved_45 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_46 +#define ADO_Reserved_46 GUID_BUILDER(ADO_Reserved_46,3BF5E1FC,B960,4564,86,54,07,B0,7A,AF,6E,4F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_46; +#undef ADO_Reserved_46 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_47 +#define ADO_Reserved_47 GUID_BUILDER(ADO_Reserved_47,2430F883,1462,4899,9A,DE,F7,24,27,FD,5E,E4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_47; +#undef ADO_Reserved_47 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_48 +#define ADO_Reserved_48 GUID_BUILDER(ADO_Reserved_48,AB663F07,BA4D,42CC,93,C6,F2,EA,9F,C8,BA,74) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_48; +#undef ADO_Reserved_48 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_49 +#define ADO_Reserved_49 GUID_BUILDER(ADO_Reserved_49,D808C6F7,36C0,4302,80,EE,C4,B7,00,F8,D2,38) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_49; +#undef ADO_Reserved_49 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_50 +#define ADO_Reserved_50 GUID_BUILDER(ADO_Reserved_50,AB146E06,E493,4DF0,A1,CD,07,D4,B0,74,46,C3) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_50; +#undef ADO_Reserved_50 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_51 +#define ADO_Reserved_51 GUID_BUILDER(ADO_Reserved_51,74F1FD51,9CB8,4186,8C,3D,DD,F3,55,2A,99,9B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_51; +#undef ADO_Reserved_51 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_52 +#define ADO_Reserved_52 GUID_BUILDER(ADO_Reserved_52,71701A97,5386,43B0,95,8D,3C,EE,40,57,B1,99) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_52; +#undef ADO_Reserved_52 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_53 +#define ADO_Reserved_53 GUID_BUILDER(ADO_Reserved_53,63CC6087,A6C6,4CCF,8E,D4,17,5B,91,A6,32,C5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_53; +#undef ADO_Reserved_53 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_54 +#define ADO_Reserved_54 GUID_BUILDER(ADO_Reserved_54,7323FD37,B7D8,4F8A,80,F4,E8,3D,0B,2A,73,B5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_54; +#undef ADO_Reserved_54 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_55 +#define ADO_Reserved_55 GUID_BUILDER(ADO_Reserved_55,5C666403,2A0A,4B12,8E,1D,41,19,88,DD,E0,0A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_55; +#undef ADO_Reserved_55 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_56 +#define ADO_Reserved_56 GUID_BUILDER(ADO_Reserved_56,ECA4C14C,5529,49DF,B1,3C,17,F0,22,DB,1B,A6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_56; +#undef ADO_Reserved_56 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_57 +#define ADO_Reserved_57 GUID_BUILDER(ADO_Reserved_57,304ADE1D,4458,4A6A,93,48,1F,7C,2E,64,D6,FA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_57; +#undef ADO_Reserved_57 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_58 +#define ADO_Reserved_58 GUID_BUILDER(ADO_Reserved_58,D87A7AF2,FB3C,49BC,B2,69,F3,57,36,E7,23,2E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_58; +#undef ADO_Reserved_58 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_59 +#define ADO_Reserved_59 GUID_BUILDER(ADO_Reserved_59,542D6D77,AECB,4AFF,B1,C6,54,EF,79,8F,61,ED) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_59; +#undef ADO_Reserved_59 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_60 +#define ADO_Reserved_60 GUID_BUILDER(ADO_Reserved_60,46359618,34AE,410E,AE,20,F3,D4,E1,BD,A6,BE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_60; +#undef ADO_Reserved_60 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_61 +#define ADO_Reserved_61 GUID_BUILDER(ADO_Reserved_61,F98DF79B,2935,464B,AA,08,CC,EF,F1,5F,71,32) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_61; +#undef ADO_Reserved_61 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_62 +#define ADO_Reserved_62 GUID_BUILDER(ADO_Reserved_62,214887FB,4867,4DD8,83,9D,4C,F0,BB,83,E1,95) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_62; +#undef ADO_Reserved_62 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_63 +#define ADO_Reserved_63 GUID_BUILDER(ADO_Reserved_63,C9B68C08,F663,4386,8F,5B,FA,BA,E0,27,43,6D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_63; +#undef ADO_Reserved_63 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_64 +#define ADO_Reserved_64 GUID_BUILDER(ADO_Reserved_64,F46511DD,10B6,49CF,AA,75,5E,E2,7C,FD,9E,A4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_64; +#undef ADO_Reserved_64 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_65 +#define ADO_Reserved_65 GUID_BUILDER(ADO_Reserved_65,C057EF87,F3A8,4890,A9,56,57,8C,07,CD,2E,F8) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_65; +#undef ADO_Reserved_65 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_66 +#define ADO_Reserved_66 GUID_BUILDER(ADO_Reserved_66,1C9E0666,1405,4DC5,BD,A7,65,F4,B4,16,1D,7B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_66; +#undef ADO_Reserved_66 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_67 +#define ADO_Reserved_67 GUID_BUILDER(ADO_Reserved_67,B91484C2,5E48,438C,91,CD,B9,D6,99,32,30,E4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_67; +#undef ADO_Reserved_67 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_68 +#define ADO_Reserved_68 GUID_BUILDER(ADO_Reserved_68,17D12BFE,6C9F,4229,87,95,60,20,6F,D1,45,35) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_68; +#undef ADO_Reserved_68 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_69 +#define ADO_Reserved_69 GUID_BUILDER(ADO_Reserved_69,5A816EA3,EE82,4F65,BC,76,74,07,E9,E5,43,58) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_69; +#undef ADO_Reserved_69 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_70 +#define ADO_Reserved_70 GUID_BUILDER(ADO_Reserved_70,3AD0DE2B,AA3E,4508,BE,9E,1E,AA,DF,1C,4D,8B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_70; +#undef ADO_Reserved_70 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_71 +#define ADO_Reserved_71 GUID_BUILDER(ADO_Reserved_71,54DC8B80,7869,4D90,AB,5C,8C,54,1A,74,EE,F8) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_71; +#undef ADO_Reserved_71 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_72 +#define ADO_Reserved_72 GUID_BUILDER(ADO_Reserved_72,80A200B0,5783,48E7,81,25,B9,E4,BF,59,F7,22) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_72; +#undef ADO_Reserved_72 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_73 +#define ADO_Reserved_73 GUID_BUILDER(ADO_Reserved_73,1502CB61,8C42,4C4B,B9,0C,3A,9E,4E,46,D1,BE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_73; +#undef ADO_Reserved_73 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_74 +#define ADO_Reserved_74 GUID_BUILDER(ADO_Reserved_74,70EB3F53,91A0,42F5,BE,50,F1,02,DE,C8,92,27) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_74; +#undef ADO_Reserved_74 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_75 +#define ADO_Reserved_75 GUID_BUILDER(ADO_Reserved_75,4680AA81,B27C,4A8F,83,F9,6F,B7,E1,8E,D2,3C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_75; +#undef ADO_Reserved_75 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_76 +#define ADO_Reserved_76 GUID_BUILDER(ADO_Reserved_76,EF31F9EB,4541,4FCB,8D,67,59,2C,85,50,93,05) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_76; +#undef ADO_Reserved_76 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_77 +#define ADO_Reserved_77 GUID_BUILDER(ADO_Reserved_77,88B77D15,997E,4E3A,83,20,3B,37,83,52,86,D5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_77; +#undef ADO_Reserved_77 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_78 +#define ADO_Reserved_78 GUID_BUILDER(ADO_Reserved_78,D03A3AA8,1AAC,4867,93,C9,5F,51,D8,7D,6A,74) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_78; +#undef ADO_Reserved_78 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_79 +#define ADO_Reserved_79 GUID_BUILDER(ADO_Reserved_79,47022458,17E7,4BD7,90,81,85,B4,0B,03,6D,5B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_79; +#undef ADO_Reserved_79 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_80 +#define ADO_Reserved_80 GUID_BUILDER(ADO_Reserved_80,9E5BEE82,F410,44C7,9D,6D,3F,7D,D2,8B,A7,CC) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_80; +#undef ADO_Reserved_80 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_81 +#define ADO_Reserved_81 GUID_BUILDER(ADO_Reserved_81,278A1C47,3C39,41C7,A3,FB,7C,2E,62,0B,E4,44) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_81; +#undef ADO_Reserved_81 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_82 +#define ADO_Reserved_82 GUID_BUILDER(ADO_Reserved_82,964CBF05,8084,4C15,9C,F5,8C,4B,81,41,B4,AE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_82; +#undef ADO_Reserved_82 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_83 +#define ADO_Reserved_83 GUID_BUILDER(ADO_Reserved_83,A86296A0,F272,4ACD,83,06,FF,CA,FF,89,14,A9) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_83; +#undef ADO_Reserved_83 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_84 +#define ADO_Reserved_84 GUID_BUILDER(ADO_Reserved_84,F805FC7C,7C4A,43A1,B0,14,71,EA,0E,EB,EA,5F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_84; +#undef ADO_Reserved_84 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_85 +#define ADO_Reserved_85 GUID_BUILDER(ADO_Reserved_85,33E6E9B6,0BEA,4549,90,CB,3B,64,12,DB,8C,F5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_85; +#undef ADO_Reserved_85 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_86 +#define ADO_Reserved_86 GUID_BUILDER(ADO_Reserved_86,7337E3DC,219F,4D9E,82,5B,0A,2C,18,4E,C0,DE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_86; +#undef ADO_Reserved_86 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_87 +#define ADO_Reserved_87 GUID_BUILDER(ADO_Reserved_87,7397BAFC,354E,4F18,9F,76,C3,3A,4E,EF,6D,20) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_87; +#undef ADO_Reserved_87 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_88 +#define ADO_Reserved_88 GUID_BUILDER(ADO_Reserved_88,5EC2D163,E671,4186,BE,72,BF,FF,72,D5,7A,5C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_88; +#undef ADO_Reserved_88 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_89 +#define ADO_Reserved_89 GUID_BUILDER(ADO_Reserved_89,8B37B801,0A35,4F97,A3,43,82,57,B3,E7,6C,79) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_89; +#undef ADO_Reserved_89 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_90 +#define ADO_Reserved_90 GUID_BUILDER(ADO_Reserved_90,FAD396B6,EE4E,4F70,85,54,E8,23,9E,47,05,29) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_90; +#undef ADO_Reserved_90 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_91 +#define ADO_Reserved_91 GUID_BUILDER(ADO_Reserved_91,6063972C,395B,4FEF,A0,04,ED,95,E7,D8,72,0D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_91; +#undef ADO_Reserved_91 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_92 +#define ADO_Reserved_92 GUID_BUILDER(ADO_Reserved_92,85AEED72,A1F8,4597,82,32,F8,40,EF,C9,21,09) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_92; +#undef ADO_Reserved_92 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_93 +#define ADO_Reserved_93 GUID_BUILDER(ADO_Reserved_93,CE4FD8FF,553A,4424,B1,EA,3E,DF,11,42,AD,8B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_93; +#undef ADO_Reserved_93 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_94 +#define ADO_Reserved_94 GUID_BUILDER(ADO_Reserved_94,1A856A0F,0844,4DE4,AC,7B,75,30,62,56,39,86) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_94; +#undef ADO_Reserved_94 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_95 +#define ADO_Reserved_95 GUID_BUILDER(ADO_Reserved_95,09A742A1,19ED,43BB,85,E9,99,23,DE,C4,17,F7) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_95; +#undef ADO_Reserved_95 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_96 +#define ADO_Reserved_96 GUID_BUILDER(ADO_Reserved_96,3695BD0C,9DE6,4895,84,E6,B2,4C,E7,55,47,02) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_96; +#undef ADO_Reserved_96 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_97 +#define ADO_Reserved_97 GUID_BUILDER(ADO_Reserved_97,8802531F,6EA8,4A55,8A,18,05,97,86,3C,DA,38) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_97; +#undef ADO_Reserved_97 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_98 +#define ADO_Reserved_98 GUID_BUILDER(ADO_Reserved_98,498E70F0,B13F,4804,AD,D5,72,E8,0E,28,05,E7) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_98; +#undef ADO_Reserved_98 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_99 +#define ADO_Reserved_99 GUID_BUILDER(ADO_Reserved_99,50D0E90F,E3A4,4A93,8B,48,71,21,66,E8,87,CD) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_99; +#undef ADO_Reserved_99 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_100 +#define ADO_Reserved_100 GUID_BUILDER(ADO_Reserved_100,F1D30550,8515,4F8B,93,E1,1E,F0,12,1B,4B,D0) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_100; +#undef ADO_Reserved_100 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_101 +#define ADO_Reserved_101 GUID_BUILDER(ADO_Reserved_101,901CDA31,8CDB,4A5B,91,6B,63,EA,90,1D,8C,E0) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_101; +#undef ADO_Reserved_101 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_102 +#define ADO_Reserved_102 GUID_BUILDER(ADO_Reserved_102,00BDA239,1094,4AEF,93,AD,7C,E2,73,6C,42,25) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_102; +#undef ADO_Reserved_102 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_103 +#define ADO_Reserved_103 GUID_BUILDER(ADO_Reserved_103,DCA4E51E,250E,4AB3,B4,90,F2,CB,9E,8F,6C,C4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_103; +#undef ADO_Reserved_103 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_104 +#define ADO_Reserved_104 GUID_BUILDER(ADO_Reserved_104,24679EBD,8535,4494,A9,1C,18,91,F0,75,5B,6F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_104; +#undef ADO_Reserved_104 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_105 +#define ADO_Reserved_105 GUID_BUILDER(ADO_Reserved_105,F041739E,F37E,4925,94,25,FB,51,5E,56,0F,54) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_105; +#undef ADO_Reserved_105 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_106 +#define ADO_Reserved_106 GUID_BUILDER(ADO_Reserved_106,FECACBBF,A73C,4616,84,2F,FE,F5,72,85,70,AB) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_106; +#undef ADO_Reserved_106 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_107 +#define ADO_Reserved_107 GUID_BUILDER(ADO_Reserved_107,DBAD7368,1DED,4A77,B8,0A,1A,EB,12,99,BD,B3) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_107; +#undef ADO_Reserved_107 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_108 +#define ADO_Reserved_108 GUID_BUILDER(ADO_Reserved_108,CFDE81B8,66EF,4503,84,A8,7E,8F,C8,AB,0B,31) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_108; +#undef ADO_Reserved_108 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_109 +#define ADO_Reserved_109 GUID_BUILDER(ADO_Reserved_109,9B7484FA,023A,4FFB,A2,94,11,A6,E5,97,AB,35) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_109; +#undef ADO_Reserved_109 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_110 +#define ADO_Reserved_110 GUID_BUILDER(ADO_Reserved_110,54F0F09C,1201,49A9,B4,65,6B,02,9B,5F,E3,12) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_110; +#undef ADO_Reserved_110 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_111 +#define ADO_Reserved_111 GUID_BUILDER(ADO_Reserved_111,BFFA01F8,EAE7,4FA1,BF,74,37,73,3F,BF,36,4C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_111; +#undef ADO_Reserved_111 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_112 +#define ADO_Reserved_112 GUID_BUILDER(ADO_Reserved_112,12FAD291,4AAB,4038,9D,D1,04,E4,E7,A9,E0,F4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_112; +#undef ADO_Reserved_112 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_113 +#define ADO_Reserved_113 GUID_BUILDER(ADO_Reserved_113,8D2AF964,C489,4D77,A8,17,A0,4D,B1,DB,26,A5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_113; +#undef ADO_Reserved_113 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_114 +#define ADO_Reserved_114 GUID_BUILDER(ADO_Reserved_114,79F89DD7,BE86,4B36,BE,9B,FA,75,24,18,55,68) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_114; +#undef ADO_Reserved_114 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_115 +#define ADO_Reserved_115 GUID_BUILDER(ADO_Reserved_115,4387D7FA,7A52,4F67,BF,B6,7E,7D,7A,B7,C9,DE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_115; +#undef ADO_Reserved_115 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_116 +#define ADO_Reserved_116 GUID_BUILDER(ADO_Reserved_116,7571252F,0E49,4F4B,A3,87,9E,D9,70,54,68,D8) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_116; +#undef ADO_Reserved_116 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_117 +#define ADO_Reserved_117 GUID_BUILDER(ADO_Reserved_117,0DAB016B,6BA4,470F,98,1A,2B,A7,65,D4,60,4B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_117; +#undef ADO_Reserved_117 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_118 +#define ADO_Reserved_118 GUID_BUILDER(ADO_Reserved_118,E97D87A3,8A95,4080,8C,A9,ED,9F,05,1A,B7,B2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_118; +#undef ADO_Reserved_118 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_119 +#define ADO_Reserved_119 GUID_BUILDER(ADO_Reserved_119,C9EA1598,2D23,4978,9B,33,3D,2C,C4,0A,B7,A1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_119; +#undef ADO_Reserved_119 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_120 +#define ADO_Reserved_120 GUID_BUILDER(ADO_Reserved_120,E41CA9FC,7FC9,4831,90,CE,F5,33,96,CE,42,C3) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_120; +#undef ADO_Reserved_120 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_121 +#define ADO_Reserved_121 GUID_BUILDER(ADO_Reserved_121,15DF0905,4ACC,44F7,A0,1E,0F,EF,56,3C,C4,E5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_121; +#undef ADO_Reserved_121 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_122 +#define ADO_Reserved_122 GUID_BUILDER(ADO_Reserved_122,D2879A0E,D0B3,42A2,A1,16,D1,5E,13,C7,51,77) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_122; +#undef ADO_Reserved_122 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_123 +#define ADO_Reserved_123 GUID_BUILDER(ADO_Reserved_123,A999A8D2,5E83,4C0E,83,97,18,33,19,32,79,CD) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_123; +#undef ADO_Reserved_123 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_124 +#define ADO_Reserved_124 GUID_BUILDER(ADO_Reserved_124,C6AFAE72,B3FF,48AB,B1,EE,F5,EE,F9,05,DF,47) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_124; +#undef ADO_Reserved_124 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_125 +#define ADO_Reserved_125 GUID_BUILDER(ADO_Reserved_125,0DEADF50,0940,4F0E,AC,3B,94,80,B7,32,2B,1B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_125; +#undef ADO_Reserved_125 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_126 +#define ADO_Reserved_126 GUID_BUILDER(ADO_Reserved_126,61278818,2FE6,4892,8B,95,A7,5C,AC,6E,21,BB) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_126; +#undef ADO_Reserved_126 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_127 +#define ADO_Reserved_127 GUID_BUILDER(ADO_Reserved_127,3AC2BED7,1111,4E55,B2,06,1F,54,18,94,4C,BA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_127; +#undef ADO_Reserved_127 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_128 +#define ADO_Reserved_128 GUID_BUILDER(ADO_Reserved_128,3D4751E2,04B8,4593,A0,0D,3A,4B,94,67,4B,E9) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_128; +#undef ADO_Reserved_128 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_129 +#define ADO_Reserved_129 GUID_BUILDER(ADO_Reserved_129,69BC6751,FE10,4B3F,89,35,40,2F,A5,FD,04,82) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_129; +#undef ADO_Reserved_129 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_130 +#define ADO_Reserved_130 GUID_BUILDER(ADO_Reserved_130,5867AF81,995A,4686,8B,CB,13,B6,8B,10,26,8A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_130; +#undef ADO_Reserved_130 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_131 +#define ADO_Reserved_131 GUID_BUILDER(ADO_Reserved_131,DA46C62F,BDCD,4745,A3,CA,4E,C9,FA,AB,E1,10) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_131; +#undef ADO_Reserved_131 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_132 +#define ADO_Reserved_132 GUID_BUILDER(ADO_Reserved_132,93028AA6,EECC,482F,B3,A4,2F,D4,13,04,96,5E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_132; +#undef ADO_Reserved_132 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_133 +#define ADO_Reserved_133 GUID_BUILDER(ADO_Reserved_133,AB14F604,D05E,4E50,A4,5B,A8,10,48,E3,A4,75) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_133; +#undef ADO_Reserved_133 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_134 +#define ADO_Reserved_134 GUID_BUILDER(ADO_Reserved_134,35267875,8420,4226,87,C0,25,00,58,56,0F,D2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_134; +#undef ADO_Reserved_134 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_135 +#define ADO_Reserved_135 GUID_BUILDER(ADO_Reserved_135,16E34932,EEFA,440E,A7,86,6A,36,D2,C6,21,69) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_135; +#undef ADO_Reserved_135 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_136 +#define ADO_Reserved_136 GUID_BUILDER(ADO_Reserved_136,2710A15A,B2B0,46EC,BD,EC,E2,2E,A8,A6,28,FA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_136; +#undef ADO_Reserved_136 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_137 +#define ADO_Reserved_137 GUID_BUILDER(ADO_Reserved_137,2777696F,CB34,4CC4,A0,A9,02,EA,15,16,63,DD) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_137; +#undef ADO_Reserved_137 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_138 +#define ADO_Reserved_138 GUID_BUILDER(ADO_Reserved_138,D11CA1A0,A261,4BA2,81,68,46,52,32,9A,60,77) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_138; +#undef ADO_Reserved_138 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_139 +#define ADO_Reserved_139 GUID_BUILDER(ADO_Reserved_139,C33509A8,883F,4BEA,AF,B5,35,26,CF,0B,8B,E1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_139; +#undef ADO_Reserved_139 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_140 +#define ADO_Reserved_140 GUID_BUILDER(ADO_Reserved_140,DEBDC8E1,4F02,43E1,8C,88,0B,A8,E1,50,6B,F5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_140; +#undef ADO_Reserved_140 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_141 +#define ADO_Reserved_141 GUID_BUILDER(ADO_Reserved_141,552F8531,3F79,4DB3,87,7B,8E,54,C3,5B,38,54) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_141; +#undef ADO_Reserved_141 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_142 +#define ADO_Reserved_142 GUID_BUILDER(ADO_Reserved_142,1E6A2BF4,241C,48A1,90,66,C6,E1,E5,2B,0A,4B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_142; +#undef ADO_Reserved_142 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_143 +#define ADO_Reserved_143 GUID_BUILDER(ADO_Reserved_143,8E5B2A8D,1F0D,429D,94,95,16,F8,E9,58,06,80) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_143; +#undef ADO_Reserved_143 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_144 +#define ADO_Reserved_144 GUID_BUILDER(ADO_Reserved_144,57FAEC9D,5CDE,4EBE,84,A1,5A,CB,75,7C,D4,51) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_144; +#undef ADO_Reserved_144 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_145 +#define ADO_Reserved_145 GUID_BUILDER(ADO_Reserved_145,707B03C3,A3B0,4F00,81,61,6E,3F,02,7F,F0,B3) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_145; +#undef ADO_Reserved_145 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_146 +#define ADO_Reserved_146 GUID_BUILDER(ADO_Reserved_146,5DD552F4,0718,4BDD,82,6C,7C,C3,5C,DA,1D,93) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_146; +#undef ADO_Reserved_146 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_147 +#define ADO_Reserved_147 GUID_BUILDER(ADO_Reserved_147,F3247F33,E377,4A44,A9,37,AC,E6,36,F6,58,1F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_147; +#undef ADO_Reserved_147 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_148 +#define ADO_Reserved_148 GUID_BUILDER(ADO_Reserved_148,E7C324C4,38A5,42A8,99,FF,34,5D,AD,8C,D2,29) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_148; +#undef ADO_Reserved_148 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_149 +#define ADO_Reserved_149 GUID_BUILDER(ADO_Reserved_149,D14FCA70,390D,4158,B5,C3,9A,02,D1,F7,85,87) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_149; +#undef ADO_Reserved_149 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_150 +#define ADO_Reserved_150 GUID_BUILDER(ADO_Reserved_150,58D30B5F,92A5,4EF4,8E,45,A0,24,A9,CD,F9,FE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_150; +#undef ADO_Reserved_150 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_151 +#define ADO_Reserved_151 GUID_BUILDER(ADO_Reserved_151,9673DF76,73E4,4C66,89,14,7F,A4,17,43,6C,4A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_151; +#undef ADO_Reserved_151 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_152 +#define ADO_Reserved_152 GUID_BUILDER(ADO_Reserved_152,9FA8A7E1,CF3C,4A61,BE,10,1D,85,5F,A0,D5,08) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_152; +#undef ADO_Reserved_152 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_153 +#define ADO_Reserved_153 GUID_BUILDER(ADO_Reserved_153,B657729F,6CC7,4392,BD,56,DC,ED,6E,53,F6,4C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_153; +#undef ADO_Reserved_153 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_154 +#define ADO_Reserved_154 GUID_BUILDER(ADO_Reserved_154,06E5224B,8C27,4F41,8F,B7,C6,41,E4,C5,04,2D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_154; +#undef ADO_Reserved_154 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_155 +#define ADO_Reserved_155 GUID_BUILDER(ADO_Reserved_155,2268A619,CC1D,4F72,B8,3F,79,63,C0,13,B1,3D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_155; +#undef ADO_Reserved_155 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_156 +#define ADO_Reserved_156 GUID_BUILDER(ADO_Reserved_156,FB4810F3,3A65,4C33,B3,99,B5,C9,33,11,11,D7) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_156; +#undef ADO_Reserved_156 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_157 +#define ADO_Reserved_157 GUID_BUILDER(ADO_Reserved_157,9011BE74,6C9D,44F7,BE,2C,8A,2A,BB,62,51,AC) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_157; +#undef ADO_Reserved_157 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_158 +#define ADO_Reserved_158 GUID_BUILDER(ADO_Reserved_158,3145C182,82C6,4082,BB,E7,79,1A,2F,49,6C,B1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_158; +#undef ADO_Reserved_158 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_159 +#define ADO_Reserved_159 GUID_BUILDER(ADO_Reserved_159,D8865377,8799,4C08,97,E5,D6,7E,88,6F,F5,49) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_159; +#undef ADO_Reserved_159 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_160 +#define ADO_Reserved_160 GUID_BUILDER(ADO_Reserved_160,8993232E,8AFA,4552,A7,8C,C6,6C,9D,3A,E6,D0) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_160; +#undef ADO_Reserved_160 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_161 +#define ADO_Reserved_161 GUID_BUILDER(ADO_Reserved_161,40AF1931,8721,427B,83,5E,50,87,79,BD,1E,B2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_161; +#undef ADO_Reserved_161 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_162 +#define ADO_Reserved_162 GUID_BUILDER(ADO_Reserved_162,9C6E2B26,4468,427C,8C,F5,01,14,7D,B8,DF,22) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_162; +#undef ADO_Reserved_162 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_163 +#define ADO_Reserved_163 GUID_BUILDER(ADO_Reserved_163,3537FA93,7E92,4CE0,80,96,EF,DC,1A,80,A8,95) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_163; +#undef ADO_Reserved_163 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_164 +#define ADO_Reserved_164 GUID_BUILDER(ADO_Reserved_164,36992492,3E17,47C1,AB,98,5F,0C,49,B4,6A,25) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_164; +#undef ADO_Reserved_164 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_165 +#define ADO_Reserved_165 GUID_BUILDER(ADO_Reserved_165,01662EDB,CE23,4215,AE,9D,51,51,E6,DA,36,3C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_165; +#undef ADO_Reserved_165 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_166 +#define ADO_Reserved_166 GUID_BUILDER(ADO_Reserved_166,80B4A97B,5256,4397,89,CD,4E,F9,91,0F,1D,E6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_166; +#undef ADO_Reserved_166 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_167 +#define ADO_Reserved_167 GUID_BUILDER(ADO_Reserved_167,C2341A38,2C6B,414E,96,A8,8B,5E,47,F8,14,DA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_167; +#undef ADO_Reserved_167 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_168 +#define ADO_Reserved_168 GUID_BUILDER(ADO_Reserved_168,5C2B7578,53FA,4ACE,8E,6C,39,18,2F,68,D2,67) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_168; +#undef ADO_Reserved_168 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_169 +#define ADO_Reserved_169 GUID_BUILDER(ADO_Reserved_169,B80C1E36,611B,49D4,97,19,4E,0C,59,0E,2E,E1) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_169; +#undef ADO_Reserved_169 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_170 +#define ADO_Reserved_170 GUID_BUILDER(ADO_Reserved_170,BA269EB4,B741,4FB2,A9,C9,52,4C,9D,BE,7C,16) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_170; +#undef ADO_Reserved_170 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_171 +#define ADO_Reserved_171 GUID_BUILDER(ADO_Reserved_171,EE49769D,1028,4429,A9,66,2F,A8,1D,70,EE,19) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_171; +#undef ADO_Reserved_171 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_172 +#define ADO_Reserved_172 GUID_BUILDER(ADO_Reserved_172,541FC621,D6E6,4CC4,B4,98,8E,4F,AA,A0,65,BF) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_172; +#undef ADO_Reserved_172 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_173 +#define ADO_Reserved_173 GUID_BUILDER(ADO_Reserved_173,AA8B544C,4067,4E00,96,09,95,EE,21,68,AF,CE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_173; +#undef ADO_Reserved_173 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_174 +#define ADO_Reserved_174 GUID_BUILDER(ADO_Reserved_174,5B161B2B,D02C,4300,A1,54,CF,DC,25,3B,13,0D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_174; +#undef ADO_Reserved_174 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_175 +#define ADO_Reserved_175 GUID_BUILDER(ADO_Reserved_175,81F62203,182E,42DE,B1,B7,63,5F,C6,6F,6E,9E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_175; +#undef ADO_Reserved_175 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_176 +#define ADO_Reserved_176 GUID_BUILDER(ADO_Reserved_176,04934BDD,A530,48EC,91,CE,11,83,42,5B,DB,61) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_176; +#undef ADO_Reserved_176 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_177 +#define ADO_Reserved_177 GUID_BUILDER(ADO_Reserved_177,F6997841,9A99,48AA,B0,56,8C,75,17,06,41,7F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_177; +#undef ADO_Reserved_177 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_178 +#define ADO_Reserved_178 GUID_BUILDER(ADO_Reserved_178,353FE3F1,DE50,45EE,91,E9,3E,62,E3,C7,86,04) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_178; +#undef ADO_Reserved_178 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_179 +#define ADO_Reserved_179 GUID_BUILDER(ADO_Reserved_179,F142C8C6,9E24,422E,81,BD,D2,94,7F,93,94,D4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_179; +#undef ADO_Reserved_179 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_180 +#define ADO_Reserved_180 GUID_BUILDER(ADO_Reserved_180,95951773,9566,46C9,86,B0,40,ED,25,46,02,93) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_180; +#undef ADO_Reserved_180 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_181 +#define ADO_Reserved_181 GUID_BUILDER(ADO_Reserved_181,54140563,0F25,4F56,9D,8F,B6,DE,CB,96,DC,E4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_181; +#undef ADO_Reserved_181 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_182 +#define ADO_Reserved_182 GUID_BUILDER(ADO_Reserved_182,91A48243,AE16,48CF,82,29,00,00,F8,3C,5E,FC) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_182; +#undef ADO_Reserved_182 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_183 +#define ADO_Reserved_183 GUID_BUILDER(ADO_Reserved_183,E0FA1A1F,3967,4392,AB,1A,E2,8B,85,04,68,CA) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_183; +#undef ADO_Reserved_183 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_184 +#define ADO_Reserved_184 GUID_BUILDER(ADO_Reserved_184,5582D772,ABAC,4A85,A0,B3,2E,65,E1,71,10,53) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_184; +#undef ADO_Reserved_184 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_185 +#define ADO_Reserved_185 GUID_BUILDER(ADO_Reserved_185,1CD1F347,8FB4,49A2,B5,65,A6,74,A0,C1,45,0E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_185; +#undef ADO_Reserved_185 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_186 +#define ADO_Reserved_186 GUID_BUILDER(ADO_Reserved_186,0EC3AA4E,FEF5,4A5C,BD,0A,E9,CD,B7,6A,5F,30) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_186; +#undef ADO_Reserved_186 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_187 +#define ADO_Reserved_187 GUID_BUILDER(ADO_Reserved_187,4118414D,4A21,46DA,88,C1,EF,A7,01,8C,45,27) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_187; +#undef ADO_Reserved_187 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_188 +#define ADO_Reserved_188 GUID_BUILDER(ADO_Reserved_188,D5C1CC0D,E38E,4CB6,89,D9,99,27,7F,12,D1,9E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_188; +#undef ADO_Reserved_188 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_189 +#define ADO_Reserved_189 GUID_BUILDER(ADO_Reserved_189,0956B82A,94A7,474E,A5,05,1A,76,26,36,AF,08) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_189; +#undef ADO_Reserved_189 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_190 +#define ADO_Reserved_190 GUID_BUILDER(ADO_Reserved_190,2CBF62AB,B8E4,48D0,B5,01,69,CF,63,3C,AA,E6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_190; +#undef ADO_Reserved_190 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_191 +#define ADO_Reserved_191 GUID_BUILDER(ADO_Reserved_191,C02B8113,AECF,4A34,B3,E9,5B,52,4E,51,44,B5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_191; +#undef ADO_Reserved_191 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_192 +#define ADO_Reserved_192 GUID_BUILDER(ADO_Reserved_192,1C90947B,4A3A,4ECD,8C,70,F4,3F,E5,2D,46,45) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_192; +#undef ADO_Reserved_192 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_193 +#define ADO_Reserved_193 GUID_BUILDER(ADO_Reserved_193,48175E98,6672,4DB4,B5,74,8C,93,25,8D,BF,14) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_193; +#undef ADO_Reserved_193 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_194 +#define ADO_Reserved_194 GUID_BUILDER(ADO_Reserved_194,99CB88BF,E5C1,4AF0,85,00,72,36,47,DC,D2,05) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_194; +#undef ADO_Reserved_194 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_195 +#define ADO_Reserved_195 GUID_BUILDER(ADO_Reserved_195,6A2CC3CC,7855,4B27,86,F7,98,6B,AA,F9,5F,0F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_195; +#undef ADO_Reserved_195 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_196 +#define ADO_Reserved_196 GUID_BUILDER(ADO_Reserved_196,7640B336,9EBB,4017,9E,EE,54,01,F4,EC,B1,70) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_196; +#undef ADO_Reserved_196 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_197 +#define ADO_Reserved_197 GUID_BUILDER(ADO_Reserved_197,507B39E1,2965,42EA,92,66,55,8D,E4,31,53,73) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_197; +#undef ADO_Reserved_197 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_198 +#define ADO_Reserved_198 GUID_BUILDER(ADO_Reserved_198,58C591FA,37FF,4428,A0,4A,46,71,98,17,74,8C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_198; +#undef ADO_Reserved_198 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_199 +#define ADO_Reserved_199 GUID_BUILDER(ADO_Reserved_199,24BE98E9,B43D,49B5,9C,41,20,AF,C2,FE,1D,8D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_199; +#undef ADO_Reserved_199 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_200 +#define ADO_Reserved_200 GUID_BUILDER(ADO_Reserved_200,041956C5,B951,4C8F,8C,61,8E,12,34,E1,E9,61) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_200; +#undef ADO_Reserved_200 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_201 +#define ADO_Reserved_201 GUID_BUILDER(ADO_Reserved_201,6C98D05C,D366,48B4,80,E3,8F,A1,CC,06,1D,B7) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_201; +#undef ADO_Reserved_201 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_202 +#define ADO_Reserved_202 GUID_BUILDER(ADO_Reserved_202,09570783,A1E8,4A52,BA,74,6C,AC,02,C0,14,8C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_202; +#undef ADO_Reserved_202 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_203 +#define ADO_Reserved_203 GUID_BUILDER(ADO_Reserved_203,96C8C205,FD0D,4B56,9A,12,39,B3,7E,9D,07,4D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_203; +#undef ADO_Reserved_203 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_204 +#define ADO_Reserved_204 GUID_BUILDER(ADO_Reserved_204,136C40E1,366E,4BA6,AF,71,C4,9A,EF,17,3F,C0) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_204; +#undef ADO_Reserved_204 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_205 +#define ADO_Reserved_205 GUID_BUILDER(ADO_Reserved_205,A298C799,06FB,466E,B5,6D,3E,CC,6D,0C,D6,75) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_205; +#undef ADO_Reserved_205 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_206 +#define ADO_Reserved_206 GUID_BUILDER(ADO_Reserved_206,41A96542,08F2,4609,B7,6A,ED,93,E5,5B,8C,60) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_206; +#undef ADO_Reserved_206 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_207 +#define ADO_Reserved_207 GUID_BUILDER(ADO_Reserved_207,65A3B57E,06F9,4572,80,91,17,3F,C4,A6,5A,16) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_207; +#undef ADO_Reserved_207 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_208 +#define ADO_Reserved_208 GUID_BUILDER(ADO_Reserved_208,114F3E9D,5431,4DC1,95,42,9B,85,44,CF,83,B2) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_208; +#undef ADO_Reserved_208 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_209 +#define ADO_Reserved_209 GUID_BUILDER(ADO_Reserved_209,41DE92D4,9F2A,4085,8C,C1,C1,04,3E,5B,11,12) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_209; +#undef ADO_Reserved_209 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_210 +#define ADO_Reserved_210 GUID_BUILDER(ADO_Reserved_210,E32A7A98,FF1E,45C9,AA,51,5F,86,9A,9A,48,57) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_210; +#undef ADO_Reserved_210 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_211 +#define ADO_Reserved_211 GUID_BUILDER(ADO_Reserved_211,5E5A209F,3EFC,48BC,A7,1E,F4,CE,BE,4C,A6,25) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_211; +#undef ADO_Reserved_211 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_212 +#define ADO_Reserved_212 GUID_BUILDER(ADO_Reserved_212,C556C1CC,8B2E,482B,B7,8C,E2,F6,FD,A0,4F,4D) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_212; +#undef ADO_Reserved_212 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_213 +#define ADO_Reserved_213 GUID_BUILDER(ADO_Reserved_213,39C54FD9,A22A,43D4,A4,36,D9,CB,C5,53,D5,5A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_213; +#undef ADO_Reserved_213 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_214 +#define ADO_Reserved_214 GUID_BUILDER(ADO_Reserved_214,750E0BA2,E25C,479F,B0,C1,58,44,A1,4D,08,77) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_214; +#undef ADO_Reserved_214 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_215 +#define ADO_Reserved_215 GUID_BUILDER(ADO_Reserved_215,7ECBDB2C,C5C2,48FB,8A,3A,30,B7,E7,BD,17,25) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_215; +#undef ADO_Reserved_215 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_216 +#define ADO_Reserved_216 GUID_BUILDER(ADO_Reserved_216,0BF18AC7,8BE1,49E6,A8,57,EA,89,3A,83,58,F5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_216; +#undef ADO_Reserved_216 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_217 +#define ADO_Reserved_217 GUID_BUILDER(ADO_Reserved_217,DA74EAB6,AAFE,42AD,8A,0D,B2,73,35,0C,82,E3) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_217; +#undef ADO_Reserved_217 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_218 +#define ADO_Reserved_218 GUID_BUILDER(ADO_Reserved_218,F6A3D173,E366,424A,AD,0C,25,5C,32,2D,09,80) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_218; +#undef ADO_Reserved_218 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_219 +#define ADO_Reserved_219 GUID_BUILDER(ADO_Reserved_219,7CD83BA3,0516,4366,BB,85,DE,53,03,F7,75,08) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_219; +#undef ADO_Reserved_219 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_220 +#define ADO_Reserved_220 GUID_BUILDER(ADO_Reserved_220,42EDFC05,3A70,4F5C,8C,32,06,5E,61,45,3C,BE) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_220; +#undef ADO_Reserved_220 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_221 +#define ADO_Reserved_221 GUID_BUILDER(ADO_Reserved_221,624BC037,05B0,44E1,85,A7,73,C4,7F,A0,CC,04) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_221; +#undef ADO_Reserved_221 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_222 +#define ADO_Reserved_222 GUID_BUILDER(ADO_Reserved_222,8811F8DD,FA15,4FA6,A7,6E,7E,DA,E7,0D,EC,D4) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_222; +#undef ADO_Reserved_222 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_223 +#define ADO_Reserved_223 GUID_BUILDER(ADO_Reserved_223,DD310D89,9F22,4F49,89,8C,AF,A2,7F,AF,11,1C) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_223; +#undef ADO_Reserved_223 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_224 +#define ADO_Reserved_224 GUID_BUILDER(ADO_Reserved_224,321E3A7D,DF0E,4FF7,98,5D,F6,E6,73,FD,E2,9F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_224; +#undef ADO_Reserved_224 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_225 +#define ADO_Reserved_225 GUID_BUILDER(ADO_Reserved_225,036D1B77,3737,47CB,9E,75,31,13,13,2D,32,B8) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_225; +#undef ADO_Reserved_225 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_226 +#define ADO_Reserved_226 GUID_BUILDER(ADO_Reserved_226,A46B9E8C,4740,4919,86,34,A3,57,73,F6,53,2F) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_226; +#undef ADO_Reserved_226 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_227 +#define ADO_Reserved_227 GUID_BUILDER(ADO_Reserved_227,7C064E3A,014E,4733,9D,00,5D,03,13,F7,B7,F5) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_227; +#undef ADO_Reserved_227 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_228 +#define ADO_Reserved_228 GUID_BUILDER(ADO_Reserved_228,7CBFF995,A041,4B0A,B7,9B,16,3A,74,2C,DC,CF) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_228; +#undef ADO_Reserved_228 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_229 +#define ADO_Reserved_229 GUID_BUILDER(ADO_Reserved_229,C3271965,BA03,4ABC,8F,D8,98,97,7E,4C,B3,9A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_229; +#undef ADO_Reserved_229 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_230 +#define ADO_Reserved_230 GUID_BUILDER(ADO_Reserved_230,565DC4B1,8D7A,41C6,AE,01,6C,EF,63,46,4D,5E) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_230; +#undef ADO_Reserved_230 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_231 +#define ADO_Reserved_231 GUID_BUILDER(ADO_Reserved_231,3331E567,EB74,45D2,86,32,20,43,47,DB,BE,04) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_231; +#undef ADO_Reserved_231 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_232 +#define ADO_Reserved_232 GUID_BUILDER(ADO_Reserved_232,3CEE44A8,6FC5,4CD5,AA,9D,1B,67,4C,B6,2E,EC) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_232; +#undef ADO_Reserved_232 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_233 +#define ADO_Reserved_233 GUID_BUILDER(ADO_Reserved_233,CD1BE145,71B9,4CCD,A7,AF,5B,BA,A0,2A,51,E6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_233; +#undef ADO_Reserved_233 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_234 +#define ADO_Reserved_234 GUID_BUILDER(ADO_Reserved_234,4203C429,F3F0,4DD7,91,24,51,E0,13,95,5E,7A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_234; +#undef ADO_Reserved_234 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_235 +#define ADO_Reserved_235 GUID_BUILDER(ADO_Reserved_235,BB256836,2804,492F,9C,B2,CF,83,CB,82,63,8A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_235; +#undef ADO_Reserved_235 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_236 +#define ADO_Reserved_236 GUID_BUILDER(ADO_Reserved_236,8B247756,34AA,45EF,B1,24,A9,60,66,AC,E8,D6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_236; +#undef ADO_Reserved_236 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_237 +#define ADO_Reserved_237 GUID_BUILDER(ADO_Reserved_237,EF1CF73C,4915,4289,AD,C4,DD,DA,62,70,70,A6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_237; +#undef ADO_Reserved_237 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_238 +#define ADO_Reserved_238 GUID_BUILDER(ADO_Reserved_238,D0EB0A94,91A0,49D3,97,26,94,52,66,5A,FE,53) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_238; +#undef ADO_Reserved_238 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_239 +#define ADO_Reserved_239 GUID_BUILDER(ADO_Reserved_239,D6F5003E,4C06,47B1,89,E9,D6,3C,3D,7D,41,B6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_239; +#undef ADO_Reserved_239 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_240 +#define ADO_Reserved_240 GUID_BUILDER(ADO_Reserved_240,AA803151,F4AE,4CE3,BC,92,97,1C,84,2E,F5,BC) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_240; +#undef ADO_Reserved_240 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_241 +#define ADO_Reserved_241 GUID_BUILDER(ADO_Reserved_241,C4BB086F,5B11,4C67,98,6C,8C,D4,8C,5C,E3,8B) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_241; +#undef ADO_Reserved_241 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_242 +#define ADO_Reserved_242 GUID_BUILDER(ADO_Reserved_242,F1C4A502,4744,478F,87,71,C6,94,CC,2D,F7,B6) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_242; +#undef ADO_Reserved_242 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_243 +#define ADO_Reserved_243 GUID_BUILDER(ADO_Reserved_243,2CD39761,F389,4F5E,BE,91,A6,B9,1B,18,AD,12) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_243; +#undef ADO_Reserved_243 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_244 +#define ADO_Reserved_244 GUID_BUILDER(ADO_Reserved_244,8895BA8F,0CB7,4354,A8,EA,CD,9D,F4,1B,F8,88) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_244; +#undef ADO_Reserved_244 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_245 +#define ADO_Reserved_245 GUID_BUILDER(ADO_Reserved_245,71E0B0DC,1245,441D,92,92,32,71,3F,57,97,7A) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_245; +#undef ADO_Reserved_245 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_246 +#define ADO_Reserved_246 GUID_BUILDER(ADO_Reserved_246,7604D0CB,F137,472D,8B,4C,85,66,72,9A,CF,03) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_246; +#undef ADO_Reserved_246 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_247 +#define ADO_Reserved_247 GUID_BUILDER(ADO_Reserved_247,94C9B5AC,8309,4F4B,8E,68,C4,37,7E,C2,B7,91) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_247; +#undef ADO_Reserved_247 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_248 +#define ADO_Reserved_248 GUID_BUILDER(ADO_Reserved_248,0E555180,5E2C,4BF6,90,A0,1B,36,3D,4B,B9,99) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_248; +#undef ADO_Reserved_248 +#endif // IMMEDIATE_GUID_USE + +// ADO_Reserved_249 +#define ADO_Reserved_249 GUID_BUILDER(ADO_Reserved_249,C077D666,6988,4EAC,A5,52,61,61,55,F9,6A,12) +#ifdef IMMEDIATE_GUID_USE +ADO_Reserved_249; +#undef ADO_Reserved_249 +#endif // IMMEDIATE_GUID_USE + +#endif // RESERVED_GUIDS_BEYOND_THIS_POINT + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoguids.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoguids.h new file mode 100644 index 0000000000000000000000000000000000000000..7fbe6b5149fb75a286940094a38e7fdcaf08ad8a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoguids.h @@ -0,0 +1,31 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//----------------------------------------------------------------------------- +// File: adoguids.h +// +// Contents: ADO GUIDs macros definition +// +// Comments: This file can be included multiple times as long as INITGUIDS is not defined +// It can only be included once after an INITGUIDS definition. +// +//----------------------------------------------------------------------------- + + +#define STRING_GUID(l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) l##-##w1##-##w2##-##b1##b2##-##b3##b4##b5##b6##b7##b8 + +#if defined(__midl) || defined(GEN_MIDL) +#define GUID_BUILDER(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) STRING_GUID(l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) +#else +#define GUID_BUILDER(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) DEFINE_GUID(n,0x##l,0x##w1,0x##w2,0x##b1,0x##b2,0x##b3,0x##b4,0x##b5,0x##b6,0x##b7,0x##b8) +#define IMMEDIATE_GUID_USE +#endif + +#define INCLUDING_ADOGUIDS +#include +#undef INCLUDING_ADOGUIDS + +#undef IMMEDIATE_GUID_USE diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoid.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoid.h new file mode 100644 index 0000000000000000000000000000000000000000..16addb46f418b59ce14aa52596dee491d1e91c03 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoid.h @@ -0,0 +1,26 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//----------------------------------------------------------------------------- +// File: adoid.h +// +// Contents: ADO Guids. +//----------------------------------------------------------------------------- + +#ifndef _ADOID_H_ +#define _ADOID_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include "adodef.h" +#include "ADOGuids.h" + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _ADOID_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoint.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoint.h new file mode 100644 index 0000000000000000000000000000000000000000..b4d21f0fe1880b528f46436c841359fc6d0e8a63 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoint.h @@ -0,0 +1,9917 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//-------------------------------------------------------------------- +// File: Microsoft ADO +// +// @module adoint.h | ADO Interface header +// +//-------------------------------------------------------------------- + +// Breaking Change Note: +// +// The ADO interfaces were originally platform-dependent and not script friendly. ADO interface IID's are reguided +// in this header file. Therefore, newly-compiled applications may not run on downlevel OSes, since the new interface +// IID's are not available on downlevel OSes. To avoid this compatibility issue, customers can either: +// (1) install the KB983246 on all downlevel OSes +// (2) Change your target platform to Win7 or below. This will use back the IID defined in Win7 SDK and +// they will be compatible for downlevel OSes +// +#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_WIN8) +// +// Application is targetting below Windows 8 +#include "adoint_Backcompat.h" +// +#else +// +#ifndef ADO_SUPPRESS_MESSAGE +#ifdef _MSC_VER +#pragma message( "Change your target platform to Windows 7 or below if your application requires backward compatibility for the ADO interface." ) +#endif //_MSC_VER +#endif // ADO_SUPPRESS_MESSAGE +// +#ifndef _ADOINT_H_ +#define _ADOINT_H_ + +#ifndef _INC_TCHAR +#include +#endif + +#if (_MSC_VER >= 1100) && defined (__cplusplus) +#define DECLSPEC_UUID(x) __declspec(uuid(x)) +#else +#define DECLSPEC_UUID(x) +#endif + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif +#include "rpc.h" +#include "rpcndr.h" +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ +#ifndef __ado10_h__ +#define __ado10_h__ +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif +/* Forward Declarations */ +#ifndef ___ADOCollection_FWD_DEFINED__ +#define ___ADOCollection_FWD_DEFINED__ +typedef interface _ADOCollection _ADOCollection; +#endif /* ___ADOCollection_FWD_DEFINED__ */ +#ifndef ___ADODynaCollection_FWD_DEFINED__ +#define ___ADODynaCollection_FWD_DEFINED__ +typedef interface _ADODynaCollection _ADODynaCollection; +#endif /* ___ADODynaCollection_FWD_DEFINED__ */ +#ifndef ___ADO_FWD_DEFINED__ +#define ___ADO_FWD_DEFINED__ +typedef interface _ADO _ADO; +#endif /* ___ADO_FWD_DEFINED__ */ +#ifndef __Error_FWD_DEFINED__ +#define __Error_FWD_DEFINED__ +typedef interface ADOError Error; +#endif /* __Error_FWD_DEFINED__ */ +#ifndef __Errors_FWD_DEFINED__ +#define __Errors_FWD_DEFINED__ +typedef interface ADOErrors Errors; +#endif /* __Errors_FWD_DEFINED__ */ +#ifndef __Command15_FWD_DEFINED__ +#define __Command15_FWD_DEFINED__ +typedef interface Command15 Command15; +#endif /* __Command15_FWD_DEFINED__ */ +#ifndef __Command25_FWD_DEFINED__ +#define __Command25_FWD_DEFINED__ +typedef interface Command25 Command25; +#endif /* __Command25_FWD_DEFINED__ */ +#ifndef ___Command_FWD_DEFINED__ +#define ___Command_FWD_DEFINED__ +typedef interface _ADOCommand _Command; +#endif /* ___Command_FWD_DEFINED__ */ +#ifndef __ConnectionEventsVt_FWD_DEFINED__ +#define __ConnectionEventsVt_FWD_DEFINED__ +typedef interface ConnectionEventsVt ConnectionEventsVt; +#endif /* __ConnectionEventsVt_FWD_DEFINED__ */ +#ifndef __RecordsetEventsVt_FWD_DEFINED__ +#define __RecordsetEventsVt_FWD_DEFINED__ +typedef interface RecordsetEventsVt RecordsetEventsVt; +#endif /* __RecordsetEventsVt_FWD_DEFINED__ */ +#ifndef __ConnectionEvents_FWD_DEFINED__ +#define __ConnectionEvents_FWD_DEFINED__ +typedef interface ConnectionEvents ConnectionEvents; +#endif /* __ConnectionEvents_FWD_DEFINED__ */ +#ifndef __RecordsetEvents_FWD_DEFINED__ +#define __RecordsetEvents_FWD_DEFINED__ +typedef interface RecordsetEvents RecordsetEvents; +#endif /* __RecordsetEvents_FWD_DEFINED__ */ +#ifndef __Connection15_FWD_DEFINED__ +#define __Connection15_FWD_DEFINED__ +typedef interface Connection15 Connection15; +#endif /* __Connection15_FWD_DEFINED__ */ +#ifndef ___Connection_FWD_DEFINED__ +#define ___Connection_FWD_DEFINED__ +typedef interface _ADOConnection _Connection; +#endif /* ___Connection_FWD_DEFINED__ */ +#ifndef __ADOConnectionConstruction15_FWD_DEFINED__ +#define __ADOConnectionConstruction15_FWD_DEFINED__ +typedef interface ADOConnectionConstruction15 ADOConnectionConstruction15; +#endif /* __ADOConnectionConstruction15_FWD_DEFINED__ */ +#ifndef __ADOConnectionConstruction_FWD_DEFINED__ +#define __ADOConnectionConstruction_FWD_DEFINED__ +typedef interface ADOConnectionConstruction ADOConnectionConstruction; +#endif /* __ADOConnectionConstruction_FWD_DEFINED__ */ +#ifndef __Connection_FWD_DEFINED__ +#define __Connection_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOConnection Connection; +#else +typedef struct ADOConnection Connection; +#endif /* __cplusplus */ +#endif /* __Connection_FWD_DEFINED__ */ +#ifndef ___Record_FWD_DEFINED__ +#define ___Record_FWD_DEFINED__ +typedef interface _ADORecord _Record; +#endif /* ___Record_FWD_DEFINED__ */ +#ifndef __Record_FWD_DEFINED__ +#define __Record_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADORecord Record; +#else +typedef struct ADORecord Record; +#endif /* __cplusplus */ +#endif /* __Record_FWD_DEFINED__ */ +#ifndef ___Stream_FWD_DEFINED__ +#define ___Stream_FWD_DEFINED__ +typedef interface _ADOStream _Stream; +#endif /* ___Stream_FWD_DEFINED__ */ +#ifndef __Stream_FWD_DEFINED__ +#define __Stream_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOStream Stream; +#else +typedef struct ADOStream Stream; +#endif /* __cplusplus */ +#endif /* __Stream_FWD_DEFINED__ */ +#ifndef __ADORecordConstruction_FWD_DEFINED__ +#define __ADORecordConstruction_FWD_DEFINED__ +typedef interface ADORecordConstruction ADORecordConstruction; +#endif /* __ADORecordConstruction_FWD_DEFINED__ */ +#ifndef __ADOStreamConstruction_FWD_DEFINED__ +#define __ADOStreamConstruction_FWD_DEFINED__ +typedef interface ADOStreamConstruction ADOStreamConstruction; +#endif /* __ADOStreamConstruction_FWD_DEFINED__ */ +#ifndef __ADOCommandConstruction_FWD_DEFINED__ +#define __ADOCommandConstruction_FWD_DEFINED__ +typedef interface ADOCommandConstruction ADOCommandConstruction; +#endif /* __ADOCommandConstruction_FWD_DEFINED__ */ +#ifndef __Command_FWD_DEFINED__ +#define __Command_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOCommand Command; +#else +typedef struct ADOCommand Command; +#endif /* __cplusplus */ +#endif /* __Command_FWD_DEFINED__ */ +#ifndef __Recordset_FWD_DEFINED__ +#define __Recordset_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADORecordset Recordset; +#else +typedef struct ADORecordset Recordset; +#endif /* __cplusplus */ +#endif /* __Recordset_FWD_DEFINED__ */ +#ifndef __Recordset15_FWD_DEFINED__ +#define __Recordset15_FWD_DEFINED__ +typedef interface Recordset15 Recordset15; +#endif /* __Recordset15_FWD_DEFINED__ */ +#ifndef __Recordset20_FWD_DEFINED__ +#define __Recordset20_FWD_DEFINED__ +typedef interface Recordset20 Recordset20; +#endif /* __Recordset20_FWD_DEFINED__ */ +#ifndef __Recordset21_FWD_DEFINED__ +#define __Recordset21_FWD_DEFINED__ +typedef interface Recordset21 Recordset21; +#endif /* __Recordset21_FWD_DEFINED__ */ +#ifndef ___Recordset_FWD_DEFINED__ +#define ___Recordset_FWD_DEFINED__ +typedef interface _ADORecordset _Recordset; +#endif /* ___Recordset_FWD_DEFINED__ */ +#ifndef __ADORecordsetConstruction_FWD_DEFINED__ +#define __ADORecordsetConstruction_FWD_DEFINED__ +typedef interface ADORecordsetConstruction ADORecordsetConstruction; +#endif /* __ADORecordsetConstruction_FWD_DEFINED__ */ +#ifndef __Field15_FWD_DEFINED__ +#define __Field15_FWD_DEFINED__ +typedef interface Field15 Field15; +#endif /* __Field15_FWD_DEFINED__ */ +#ifndef __Field20_FWD_DEFINED__ +#define __Field20_FWD_DEFINED__ +typedef interface Field20 Field20; +#endif /* __Field20_FWD_DEFINED__ */ +#ifndef __Field_FWD_DEFINED__ +#define __Field_FWD_DEFINED__ +typedef interface ADOField Field; +#endif /* __Field_FWD_DEFINED__ */ +#ifndef __Fields15_FWD_DEFINED__ +#define __Fields15_FWD_DEFINED__ +typedef interface Fields15 Fields15; +#endif /* __Fields15_FWD_DEFINED__ */ +#ifndef __Fields20_FWD_DEFINED__ +#define __Fields20_FWD_DEFINED__ +typedef interface Fields20 Fields20; +#endif /* __Fields20_FWD_DEFINED__ */ +#ifndef __Fields_FWD_DEFINED__ +#define __Fields_FWD_DEFINED__ +typedef interface ADOFields Fields; +#endif /* __Fields_FWD_DEFINED__ */ +#ifndef ___Parameter_FWD_DEFINED__ +#define ___Parameter_FWD_DEFINED__ +typedef interface _ADOParameter _Parameter; +#endif /* ___Parameter_FWD_DEFINED__ */ +#ifndef __Parameter_FWD_DEFINED__ +#define __Parameter_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOParameter Parameter; +#else +typedef struct ADOParameter Parameter; +#endif /* __cplusplus */ +#endif /* __Parameter_FWD_DEFINED__ */ +#ifndef __Parameters_FWD_DEFINED__ +#define __Parameters_FWD_DEFINED__ +typedef interface ADOParameters Parameters; +#endif /* __Parameters_FWD_DEFINED__ */ +#ifndef __Property_FWD_DEFINED__ +#define __Property_FWD_DEFINED__ +typedef interface ADOProperty Property; +#endif /* __Property_FWD_DEFINED__ */ +#ifndef __Properties_FWD_DEFINED__ +#define __Properties_FWD_DEFINED__ +typedef interface ADOProperties Properties; +#endif /* __Properties_FWD_DEFINED__ */ +#ifdef __cplusplus +extern "C"{ +#endif +/* interface __MIDL_itf_ado10_0000_0000 */ +/* [local] */ +#pragma warning(push) +#pragma warning(disable:4091) +#if 0 +typedef /* [uuid][public] */ DECLSPEC_UUID("54D8B4B9-663B-4a9c-95F6-0E749ABD70F1") __int64 ADO_LONGPTR; +typedef /* [uuid][hidden][public] */ DECLSPEC_UUID("54D8B4B9-663B-4a9c-95F6-0E749ABD70F1") long ADO_LONGPTR; +#endif +#ifdef _WIN64 +// Number of rows +typedef LONGLONG ADO_LONGPTR; +#else +// Number of rows +typedef LONG ADO_LONGPTR; +#endif // _WIN64 +extern RPC_IF_HANDLE __MIDL_itf_ado10_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ado10_0000_0000_v0_0_s_ifspec; +#ifndef __ADODB_LIBRARY_DEFINED__ +#define __ADODB_LIBRARY_DEFINED__ +/* library ADODB */ +/* [helpstring][version][uuid] */ +typedef /* [uuid][helpcontext][public] */ DECLSPEC_UUID("0000051B-0000-0010-8000-00AA006D2EA4") +enum CursorTypeEnum + { + adOpenUnspecified = -1, + adOpenForwardOnly = 0, + adOpenKeyset = 1, + adOpenDynamic = 2, + adOpenStatic = 3 + } CursorTypeEnum; +typedef /* [uuid][helpcontext] */ DECLSPEC_UUID("0000051C-0000-0010-8000-00AA006D2EA4") +enum CursorOptionEnum + { + adHoldRecords = 0x100, + adMovePrevious = 0x200, + adAddNew = 0x1000400, + adDelete = 0x1000800, + adUpdate = 0x1008000, + adBookmark = 0x2000, + adApproxPosition = 0x4000, + adUpdateBatch = 0x10000, + adResync = 0x20000, + adNotify = 0x40000, + adFind = 0x80000, + adSeek = 0x400000, + adIndex = 0x800000 + } CursorOptionEnum; +typedef /* [uuid][helpcontext] */ DECLSPEC_UUID("0000051D-0000-0010-8000-00AA006D2EA4") +enum LockTypeEnum + { + adLockUnspecified = -1, + adLockReadOnly = 1, + adLockPessimistic = 2, + adLockOptimistic = 3, + adLockBatchOptimistic = 4 + } LockTypeEnum; +typedef /* [uuid][helpcontext] */ DECLSPEC_UUID("0000051E-0000-0010-8000-00AA006D2EA4") +enum ExecuteOptionEnum + { + adOptionUnspecified = -1, + adAsyncExecute = 0x10, + adAsyncFetch = 0x20, + adAsyncFetchNonBlocking = 0x40, + adExecuteNoRecords = 0x80, + adExecuteStream = 0x400, + adExecuteRecord = 0x800 + } ExecuteOptionEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000541-0000-0010-8000-00AA006D2EA4") +enum ConnectOptionEnum + { + adConnectUnspecified = -1, + adAsyncConnect = 0x10 + } ConnectOptionEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000532-0000-0010-8000-00AA006D2EA4") +enum ObjectStateEnum + { + adStateClosed = 0, + adStateOpen = 0x1, + adStateConnecting = 0x2, + adStateExecuting = 0x4, + adStateFetching = 0x8 + } ObjectStateEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000052F-0000-0010-8000-00AA006D2EA4") +enum CursorLocationEnum + { + adUseNone = 1, + adUseServer = 2, + adUseClient = 3, + adUseClientBatch = 3 + } CursorLocationEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000051F-0000-0010-8000-00AA006D2EA4") +enum DataTypeEnum + { + adEmpty = 0, + adTinyInt = 16, + adSmallInt = 2, + adInteger = 3, + adBigInt = 20, + adUnsignedTinyInt = 17, + adUnsignedSmallInt = 18, + adUnsignedInt = 19, + adUnsignedBigInt = 21, + adSingle = 4, + adDouble = 5, + adCurrency = 6, + adDecimal = 14, + adNumeric = 131, + adBoolean = 11, + adError = 10, + adUserDefined = 132, + adVariant = 12, + adIDispatch = 9, + adIUnknown = 13, + adGUID = 72, + adDate = 7, + adDBDate = 133, + adDBTime = 134, + adDBTimeStamp = 135, + adBSTR = 8, + adChar = 129, + adVarChar = 200, + adLongVarChar = 201, + adWChar = 130, + adVarWChar = 202, + adLongVarWChar = 203, + adBinary = 128, + adVarBinary = 204, + adLongVarBinary = 205, + adChapter = 136, + adFileTime = 64, + adPropVariant = 138, + adVarNumeric = 139, + adArray = 0x2000 + } DataTypeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000525-0000-0010-8000-00AA006D2EA4") +enum FieldAttributeEnum + { + adFldUnspecified = -1, + adFldMayDefer = 0x2, + adFldUpdatable = 0x4, + adFldUnknownUpdatable = 0x8, + adFldFixed = 0x10, + adFldIsNullable = 0x20, + adFldMayBeNull = 0x40, + adFldLong = 0x80, + adFldRowID = 0x100, + adFldRowVersion = 0x200, + adFldCacheDeferred = 0x1000, + adFldIsChapter = 0x2000, + adFldNegativeScale = 0x4000, + adFldKeyColumn = 0x8000, + adFldIsRowURL = 0x10000, + adFldIsDefaultStream = 0x20000, + adFldIsCollection = 0x40000 + } FieldAttributeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000526-0000-0010-8000-00AA006D2EA4") +enum EditModeEnum + { + adEditNone = 0, + adEditInProgress = 0x1, + adEditAdd = 0x2, + adEditDelete = 0x4 + } EditModeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000527-0000-0010-8000-00AA006D2EA4") +enum RecordStatusEnum + { + adRecOK = 0, + adRecNew = 0x1, + adRecModified = 0x2, + adRecDeleted = 0x4, + adRecUnmodified = 0x8, + adRecInvalid = 0x10, + adRecMultipleChanges = 0x40, + adRecPendingChanges = 0x80, + adRecCanceled = 0x100, + adRecCantRelease = 0x400, + adRecConcurrencyViolation = 0x800, + adRecIntegrityViolation = 0x1000, + adRecMaxChangesExceeded = 0x2000, + adRecObjectOpen = 0x4000, + adRecOutOfMemory = 0x8000, + adRecPermissionDenied = 0x10000, + adRecSchemaViolation = 0x20000, + adRecDBDeleted = 0x40000 + } RecordStatusEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000542-0000-0010-8000-00AA006D2EA4") +enum GetRowsOptionEnum + { + adGetRowsRest = -1 + } GetRowsOptionEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000528-0000-0010-8000-00AA006D2EA4") +enum PositionEnum + { + adPosUnknown = -1, + adPosBOF = -2, + adPosEOF = -3 + } PositionEnum; +typedef /* [helpcontext] */ +enum BookmarkEnum + { + adBookmarkCurrent = 0, + adBookmarkFirst = 1, + adBookmarkLast = 2 + } BookmarkEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000540-0000-0010-8000-00AA006D2EA4") +enum MarshalOptionsEnum + { + adMarshalAll = 0, + adMarshalModifiedOnly = 1 + } MarshalOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000543-0000-0010-8000-00AA006D2EA4") +enum AffectEnum + { + adAffectCurrent = 1, + adAffectGroup = 2, + adAffectAll = 3, + adAffectAllChapters = 4 + } AffectEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000544-0000-0010-8000-00AA006D2EA4") +enum ResyncEnum + { + adResyncUnderlyingValues = 1, + adResyncAllValues = 2 + } ResyncEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000545-0000-0010-8000-00AA006D2EA4") +enum CompareEnum + { + adCompareLessThan = 0, + adCompareEqual = 1, + adCompareGreaterThan = 2, + adCompareNotEqual = 3, + adCompareNotComparable = 4 + } CompareEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000546-0000-0010-8000-00AA006D2EA4") +enum FilterGroupEnum + { + adFilterNone = 0, + adFilterPendingRecords = 1, + adFilterAffectedRecords = 2, + adFilterFetchedRecords = 3, + adFilterPredicate = 4, + adFilterConflictingRecords = 5 + } FilterGroupEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000547-0000-0010-8000-00AA006D2EA4") +enum SearchDirectionEnum + { + adSearchForward = 1, + adSearchBackward = -1 + } SearchDirectionEnum; +typedef /* [hidden] */ SearchDirectionEnum SearchDirection; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000548-0000-0010-8000-00AA006D2EA4") +enum PersistFormatEnum + { + adPersistADTG = 0, + adPersistXML = 1 + } PersistFormatEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000549-0000-0010-8000-00AA006D2EA4") +enum StringFormatEnum + { + adClipString = 2 + } StringFormatEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000520-0000-0010-8000-00AA006D2EA4") +enum ConnectPromptEnum + { + adPromptAlways = 1, + adPromptComplete = 2, + adPromptCompleteRequired = 3, + adPromptNever = 4 + } ConnectPromptEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000521-0000-0010-8000-00AA006D2EA4") +enum ConnectModeEnum + { + adModeUnknown = 0, + adModeRead = 1, + adModeWrite = 2, + adModeReadWrite = 3, + adModeShareDenyRead = 4, + adModeShareDenyWrite = 8, + adModeShareExclusive = 0xc, + adModeShareDenyNone = 0x10, + adModeRecursive = 0x400000 + } ConnectModeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000570-0000-0010-8000-00AA006D2EA4") +enum RecordCreateOptionsEnum + { + adCreateCollection = 0x2000, + adCreateStructDoc = 0x80000000, + adCreateNonCollection = 0, + adOpenIfExists = 0x2000000, + adCreateOverwrite = 0x4000000, + adFailIfNotExists = -1 + } RecordCreateOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000571-0000-0010-8000-00AA006D2EA4") +enum RecordOpenOptionsEnum + { + adOpenRecordUnspecified = -1, + adOpenSource = 0x800000, + adOpenOutput = 0x800000, + adOpenAsync = 0x1000, + adDelayFetchStream = 0x4000, + adDelayFetchFields = 0x8000, + adOpenExecuteCommand = 0x10000 + } RecordOpenOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000523-0000-0010-8000-00AA006D2EA4") +enum IsolationLevelEnum + { + adXactUnspecified = 0xffffffff, + adXactChaos = 0x10, + adXactReadUncommitted = 0x100, + adXactBrowse = 0x100, + adXactCursorStability = 0x1000, + adXactReadCommitted = 0x1000, + adXactRepeatableRead = 0x10000, + adXactSerializable = 0x100000, + adXactIsolated = 0x100000 + } IsolationLevelEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000524-0000-0010-8000-00AA006D2EA4") +enum XactAttributeEnum + { + adXactCommitRetaining = 0x20000, + adXactAbortRetaining = 0x40000, + adXactAsyncPhaseOne = 0x80000, + adXactSyncPhaseOne = 0x100000 + } XactAttributeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000529-0000-0010-8000-00AA006D2EA4") +enum PropertyAttributesEnum + { + adPropNotSupported = 0, + adPropRequired = 0x1, + adPropOptional = 0x2, + adPropRead = 0x200, + adPropWrite = 0x400 + } PropertyAttributesEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000052A-0000-0010-8000-00AA006D2EA4") +enum ErrorValueEnum + { + adErrProviderFailed = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbb8), + adErrInvalidArgument = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbb9), + adErrOpeningFile = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbba), + adErrReadFile = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbbb), + adErrWriteFile = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbbc), + adErrNoCurrentRecord = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbcd), + adErrIllegalOperation = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xc93), + adErrCantChangeProvider = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xc94), + adErrInTransaction = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xcae), + adErrFeatureNotAvailable = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xcb3), + adErrItemNotFound = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xcc1), + adErrObjectInCollection = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xd27), + adErrObjectNotSet = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xd5c), + adErrDataConversion = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xd5d), + adErrObjectClosed = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe78), + adErrObjectOpen = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe79), + adErrProviderNotFound = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7a), + adErrBoundToCommand = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7b), + adErrInvalidParamInfo = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7c), + adErrInvalidConnection = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7d), + adErrNotReentrant = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7e), + adErrStillExecuting = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7f), + adErrOperationCancelled = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe80), + adErrStillConnecting = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe81), + adErrInvalidTransaction = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe82), + adErrNotExecuting = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe83), + adErrUnsafeOperation = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe84), + adwrnSecurityDialog = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe85), + adwrnSecurityDialogHeader = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe86), + adErrIntegrityViolation = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe87), + adErrPermissionDenied = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe88), + adErrDataOverflow = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe89), + adErrSchemaViolation = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8a), + adErrSignMismatch = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8b), + adErrCantConvertvalue = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8c), + adErrCantCreate = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8d), + adErrColumnNotOnThisRow = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8e), + adErrURLDoesNotExist = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8f), + adErrTreePermissionDenied = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe90), + adErrInvalidURL = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe91), + adErrResourceLocked = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe92), + adErrResourceExists = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe93), + adErrCannotComplete = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe94), + adErrVolumeNotFound = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe95), + adErrOutOfSpace = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe96), + adErrResourceOutOfScope = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe97), + adErrUnavailable = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe98), + adErrURLNamedRowDoesNotExist = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe99), + adErrDelResOutOfScope = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9a), + adErrPropInvalidColumn = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9b), + adErrPropInvalidOption = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9c), + adErrPropInvalidValue = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9d), + adErrPropConflicting = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9e), + adErrPropNotAllSettable = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9f), + adErrPropNotSet = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea0), + adErrPropNotSettable = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea1), + adErrPropNotSupported = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea2), + adErrCatalogNotSet = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea3), + adErrCantChangeConnection = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea4), + adErrFieldsUpdateFailed = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea5), + adErrDenyNotSupported = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea6), + adErrDenyTypeNotSupported = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea7), + adErrProviderNotSpecified = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea9), + adErrConnectionStringTooLong = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xeaa) + } ErrorValueEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000052B-0000-0010-8000-00AA006D2EA4") +enum ParameterAttributesEnum + { + adParamSigned = 0x10, + adParamNullable = 0x40, + adParamLong = 0x80 + } ParameterAttributesEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000052C-0000-0010-8000-00AA006D2EA4") +enum ParameterDirectionEnum + { + adParamUnknown = 0, + adParamInput = 0x1, + adParamOutput = 0x2, + adParamInputOutput = 0x3, + adParamReturnValue = 0x4 + } ParameterDirectionEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000052E-0000-0010-8000-00AA006D2EA4") +enum CommandTypeEnum + { + adCmdUnspecified = -1, + adCmdUnknown = 0x8, + adCmdText = 0x1, + adCmdTable = 0x2, + adCmdStoredProc = 0x4, + adCmdFile = 0x100, + adCmdTableDirect = 0x200 + } CommandTypeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000530-0000-0010-8000-00AA006D2EA4") +enum EventStatusEnum + { + adStatusOK = 0x1, + adStatusErrorsOccurred = 0x2, + adStatusCantDeny = 0x3, + adStatusCancel = 0x4, + adStatusUnwantedEvent = 0x5 + } EventStatusEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000531-0000-0010-8000-00AA006D2EA4") +enum EventReasonEnum + { + adRsnAddNew = 1, + adRsnDelete = 2, + adRsnUpdate = 3, + adRsnUndoUpdate = 4, + adRsnUndoAddNew = 5, + adRsnUndoDelete = 6, + adRsnRequery = 7, + adRsnResynch = 8, + adRsnClose = 9, + adRsnMove = 10, + adRsnFirstChange = 11, + adRsnMoveFirst = 12, + adRsnMoveNext = 13, + adRsnMovePrevious = 14, + adRsnMoveLast = 15 + } EventReasonEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000533-0000-0010-8000-00AA006D2EA4") +enum SchemaEnum + { + adSchemaProviderSpecific = -1, + adSchemaAsserts = 0, + adSchemaCatalogs = 1, + adSchemaCharacterSets = 2, + adSchemaCollations = 3, + adSchemaColumns = 4, + adSchemaCheckConstraints = 5, + adSchemaConstraintColumnUsage = 6, + adSchemaConstraintTableUsage = 7, + adSchemaKeyColumnUsage = 8, + adSchemaReferentialContraints = 9, + adSchemaReferentialConstraints = 9, + adSchemaTableConstraints = 10, + adSchemaColumnsDomainUsage = 11, + adSchemaIndexes = 12, + adSchemaColumnPrivileges = 13, + adSchemaTablePrivileges = 14, + adSchemaUsagePrivileges = 15, + adSchemaProcedures = 16, + adSchemaSchemata = 17, + adSchemaSQLLanguages = 18, + adSchemaStatistics = 19, + adSchemaTables = 20, + adSchemaTranslations = 21, + adSchemaProviderTypes = 22, + adSchemaViews = 23, + adSchemaViewColumnUsage = 24, + adSchemaViewTableUsage = 25, + adSchemaProcedureParameters = 26, + adSchemaForeignKeys = 27, + adSchemaPrimaryKeys = 28, + adSchemaProcedureColumns = 29, + adSchemaDBInfoKeywords = 30, + adSchemaDBInfoLiterals = 31, + adSchemaCubes = 32, + adSchemaDimensions = 33, + adSchemaHierarchies = 34, + adSchemaLevels = 35, + adSchemaMeasures = 36, + adSchemaProperties = 37, + adSchemaMembers = 38, + adSchemaTrustees = 39, + adSchemaFunctions = 40, + adSchemaActions = 41, + adSchemaCommands = 42, + adSchemaSets = 43 + } SchemaEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000057E-0000-0010-8000-00AA006D2EA4") +enum FieldStatusEnum + { + adFieldOK = 0, + adFieldCantConvertValue = 2, + adFieldIsNull = 3, + adFieldTruncated = 4, + adFieldSignMismatch = 5, + adFieldDataOverflow = 6, + adFieldCantCreate = 7, + adFieldUnavailable = 8, + adFieldPermissionDenied = 9, + adFieldIntegrityViolation = 10, + adFieldSchemaViolation = 11, + adFieldBadStatus = 12, + adFieldDefault = 13, + adFieldIgnore = 15, + adFieldDoesNotExist = 16, + adFieldInvalidURL = 17, + adFieldResourceLocked = 18, + adFieldResourceExists = 19, + adFieldCannotComplete = 20, + adFieldVolumeNotFound = 21, + adFieldOutOfSpace = 22, + adFieldCannotDeleteSource = 23, + adFieldReadOnly = 24, + adFieldResourceOutOfScope = 25, + adFieldAlreadyExists = 26, + adFieldPendingInsert = 0x10000, + adFieldPendingDelete = 0x20000, + adFieldPendingChange = 0x40000, + adFieldPendingUnknown = 0x80000, + adFieldPendingUnknownDelete = 0x100000 + } FieldStatusEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000552-0000-0010-8000-00AA006D2EA4") +enum SeekEnum + { + adSeekFirstEQ = 0x1, + adSeekLastEQ = 0x2, + adSeekAfterEQ = 0x4, + adSeekAfter = 0x8, + adSeekBeforeEQ = 0x10, + adSeekBefore = 0x20 + } SeekEnum; +#ifndef _COMMON_ADC_AND_ADO_PROPS_ +#define _COMMON_ADC_AND_ADO_PROPS_ +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000054A-0000-0010-8000-00AA006D2EA4") +enum ADCPROP_UPDATECRITERIA_ENUM + { + adCriteriaKey = 0, + adCriteriaAllCols = 1, + adCriteriaUpdCols = 2, + adCriteriaTimeStamp = 3 + } ADCPROP_UPDATECRITERIA_ENUM; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000054B-0000-0010-8000-00AA006D2EA4") +enum ADCPROP_ASYNCTHREADPRIORITY_ENUM + { + adPriorityLowest = 1, + adPriorityBelowNormal = 2, + adPriorityNormal = 3, + adPriorityAboveNormal = 4, + adPriorityHighest = 5 + } ADCPROP_ASYNCTHREADPRIORITY_ENUM; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000554-0000-0010-8000-00AA006D2EA4") +enum ADCPROP_AUTORECALC_ENUM + { + adRecalcUpFront = 0, + adRecalcAlways = 1 + } ADCPROP_AUTORECALC_ENUM; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000553-0000-0010-8000-00AA006D2EA4") +enum ADCPROP_UPDATERESYNC_ENUM + { + adResyncNone = 0, + adResyncAutoIncrement = 1, + adResyncConflicts = 2, + adResyncUpdates = 4, + adResyncInserts = 8, + adResyncAll = 15 + } ADCPROP_UPDATERESYNC_ENUM; +#endif /* _COMMON_ADC_AND_ADO_PROPS_ */ +typedef ADCPROP_UPDATERESYNC_ENUM CEResyncEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000573-0000-0010-8000-00AA006D2EA4") +enum MoveRecordOptionsEnum + { + adMoveUnspecified = -1, + adMoveOverWrite = 1, + adMoveDontUpdateLinks = 2, + adMoveAllowEmulation = 4 + } MoveRecordOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000574-0000-0010-8000-00AA006D2EA4") +enum CopyRecordOptionsEnum + { + adCopyUnspecified = -1, + adCopyOverWrite = 1, + adCopyAllowEmulation = 4, + adCopyNonRecursive = 2 + } CopyRecordOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000576-0000-0010-8000-00AA006D2EA4") +enum StreamTypeEnum + { + adTypeBinary = 1, + adTypeText = 2 + } StreamTypeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000577-0000-0010-8000-00AA006D2EA4") +enum LineSeparatorEnum + { + adLF = 10, + adCR = 13, + adCRLF = -1 + } LineSeparatorEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000057A-0000-0010-8000-00AA006D2EA4") +enum StreamOpenOptionsEnum + { + adOpenStreamUnspecified = -1, + adOpenStreamAsync = 1, + adOpenStreamFromRecord = 4 + } StreamOpenOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000057B-0000-0010-8000-00AA006D2EA4") +enum StreamWriteEnum + { + adWriteChar = 0, + adWriteLine = 1, + stWriteChar = 0, + stWriteLine = 1 + } StreamWriteEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000057C-0000-0010-8000-00AA006D2EA4") +enum SaveOptionsEnum + { + adSaveCreateNotExist = 1, + adSaveCreateOverWrite = 2 + } SaveOptionsEnum; +typedef /* [helpcontext] */ +enum FieldEnum + { + adDefaultStream = -1, + adRecordURL = -2 + } FieldEnum; +typedef /* [helpcontext] */ +enum StreamReadEnum + { + adReadAll = -1, + adReadLine = -2 + } StreamReadEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000057D-0000-0010-8000-00AA006D2EA4") +enum RecordTypeEnum + { + adSimpleRecord = 0, + adCollectionRecord = 1, + adStructDoc = 2 + } RecordTypeEnum; +EXTERN_C const IID LIBID_ADODB; +#ifndef ___ADOCollection_INTERFACE_DEFINED__ +#define ___ADOCollection_INTERFACE_DEFINED__ +/* interface _ADOCollection */ +/* [object][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__ADOCollection; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000512-0000-0010-8000-00AA006D2EA4") + _ADOCollection : public IDispatch + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *c) = 0; + + virtual /* [id][restricted] */ HRESULT STDMETHODCALLTYPE _NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject) = 0; + + virtual /* [id][helpcontext] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + }; + + +#else /* C style interface */ + typedef struct _ADOCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in _ADOCollection * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in _ADOCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in _ADOCollection * This); + + END_INTERFACE + } _ADOCollectionVtbl; + interface _ADOCollection + { + CONST_VTBL struct _ADOCollectionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _ADOCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _ADOCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _ADOCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _ADOCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _ADOCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _ADOCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _ADOCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Collection_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define _ADOCollection__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define _ADOCollection_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___ADOCollection_INTERFACE_DEFINED__ */ +#ifndef ___ADODynaCollection_INTERFACE_DEFINED__ +#define ___ADODynaCollection_INTERFACE_DEFINED__ +/* interface _ADODynaCollection */ +/* [object][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__ADODynaCollection; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000513-0000-0010-8000-00AA006D2EA4") + _ADODynaCollection : public _ADOCollection + { + public: + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ __RPC__in_opt IDispatch *Object) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Index) = 0; + + }; + + +#else /* C style interface */ + typedef struct _ADODynaCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADODynaCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADODynaCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADODynaCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADODynaCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADODynaCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADODynaCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADODynaCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in _ADODynaCollection * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in _ADODynaCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in _ADODynaCollection * This); + + DECLSPEC_XFGVIRT(_ADODynaCollection, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in _ADODynaCollection * This, + /* [in] */ __RPC__in_opt IDispatch *Object); + + DECLSPEC_XFGVIRT(_ADODynaCollection, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in _ADODynaCollection * This, + /* [in] */ VARIANT Index); + + END_INTERFACE + } _ADODynaCollectionVtbl; + interface _ADODynaCollection + { + CONST_VTBL struct _ADODynaCollectionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _ADODynaCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _ADODynaCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _ADODynaCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _ADODynaCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _ADODynaCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _ADODynaCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _ADODynaCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _DynaCollection_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define _ADODynaCollection__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define _ADODynaCollection_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define _ADODynaCollection_Append(This,Object) \ + ( (This)->lpVtbl -> Append(This,Object) ) +#define _ADODynaCollection_Delete(This,Index) \ + ( (This)->lpVtbl -> Delete(This,Index) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___ADODynaCollection_INTERFACE_DEFINED__ */ +#ifndef ___ADO_INTERFACE_DEFINED__ +#define ___ADO_INTERFACE_DEFINED__ +/* interface _ADO */ +/* [object][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__ADO; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000534-0000-0010-8000-00AA006D2EA4") + _ADO : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct _ADOVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADO * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADO * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADO * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADO * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADO * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADO * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADO * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADO * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + END_INTERFACE + } _ADOVtbl; + interface _ADO + { + CONST_VTBL struct _ADOVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _ADO_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _ADO_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _ADO_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _ADO_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _ADO_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _ADO_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _ADO_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _ADO_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___ADO_INTERFACE_DEFINED__ */ +#ifndef __Error_INTERFACE_DEFINED__ +#define __Error_INTERFACE_DEFINED__ +/* interface ADOError */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Error; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000500-0000-0010-8000-00AA006D2EA4") + ADOError : public IDispatch + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Number( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Source( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_HelpFile( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_HelpContext( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_SQLState( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_NativeError( + /* [retval][out] */ __RPC__out long *pl) = 0; + + }; + + +#else /* C style interface */ + typedef struct ErrorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOError * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOError * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOError * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOError * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOError * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOError * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOError * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Error, get_Number) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Number )( + __RPC__in ADOError * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Error, get_Source) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in ADOError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Error, get_Description) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in ADOError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Error, get_HelpFile) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_HelpFile )( + __RPC__in ADOError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Error, get_HelpContext) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_HelpContext )( + __RPC__in ADOError * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Error, get_SQLState) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SQLState )( + __RPC__in ADOError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Error, get_NativeError) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NativeError )( + __RPC__in ADOError * This, + /* [retval][out] */ __RPC__out long *pl); + + END_INTERFACE + } ErrorVtbl; + interface Error + { + CONST_VTBL struct ErrorVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Error_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Error_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Error_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Error_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Error_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Error_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Error_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Error_get_Number(This,pl) \ + ( (This)->lpVtbl -> get_Number(This,pl) ) +#define Error_get_Source(This,pbstr) \ + ( (This)->lpVtbl -> get_Source(This,pbstr) ) +#define Error_get_Description(This,pbstr) \ + ( (This)->lpVtbl -> get_Description(This,pbstr) ) +#define Error_get_HelpFile(This,pbstr) \ + ( (This)->lpVtbl -> get_HelpFile(This,pbstr) ) +#define Error_get_HelpContext(This,pl) \ + ( (This)->lpVtbl -> get_HelpContext(This,pl) ) +#define Error_get_SQLState(This,pbstr) \ + ( (This)->lpVtbl -> get_SQLState(This,pbstr) ) +#define Error_get_NativeError(This,pl) \ + ( (This)->lpVtbl -> get_NativeError(This,pl) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Error_INTERFACE_DEFINED__ */ +#ifndef __Errors_INTERFACE_DEFINED__ +#define __Errors_INTERFACE_DEFINED__ +/* interface ADOErrors */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Errors; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000501-0000-0010-8000-00AA006D2EA4") + ADOErrors : public _ADOCollection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOError **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + }; + + +#else /* C style interface */ + typedef struct ErrorsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOErrors * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOErrors * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOErrors * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOErrors * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOErrors * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOErrors * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOErrors * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOErrors * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOErrors * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOErrors * This); + + DECLSPEC_XFGVIRT(Errors, get_Item) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOErrors * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOError **ppvObject); + + DECLSPEC_XFGVIRT(Errors, Clear) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in ADOErrors * This); + + END_INTERFACE + } ErrorsVtbl; + interface Errors + { + CONST_VTBL struct ErrorsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Errors_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Errors_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Errors_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Errors_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Errors_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Errors_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Errors_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Errors_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Errors__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Errors_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Errors_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#define Errors_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Errors_INTERFACE_DEFINED__ */ +#ifndef __Command15_INTERFACE_DEFINED__ +#define __Command15_INTERFACE_DEFINED__ +/* interface Command15 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Command15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001508-0000-0010-8000-00AA006D2EA4") + Command15 : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__deref_out_opt _ADOConnection **ppvObject) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_ActiveConnection( + /* [in] */ __RPC__in_opt _ADOConnection *pCon) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_ActiveConnection( + /* [in] */ VARIANT vConn) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CommandText( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CommandText( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CommandTimeout( + /* [retval][out] */ __RPC__out LONG *pl) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CommandTimeout( + /* [in] */ LONG Timeout) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Prepared( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfPrepared) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Prepared( + /* [in] */ VARIANT_BOOL fPrepared) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Execute( + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [optional][in] */ __RPC__in VARIANT *Parameters, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppirs) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CreateParameter( + /* [defaultvalue][in] */ __RPC__in BSTR Name, + /* [defaultvalue][in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ParameterDirectionEnum Direction, + /* [defaultvalue][in] */ long Size, + /* [optional][in] */ VARIANT Value, + /* [retval][out] */ __RPC__deref_out_opt _ADOParameter **ppiprm) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Parameters( + /* [retval][out] */ __RPC__deref_out_opt ADOParameters **ppvObject) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CommandType( + /* [in] */ CommandTypeEnum lCmdType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CommandType( + /* [retval][out] */ __RPC__out CommandTypeEnum *plCmdType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + }; + + +#else /* C style interface */ + typedef struct Command15Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Command15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Command15 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Command15 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Command15 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Command15 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Command15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Command15 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Command15, get_ActiveConnection) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__deref_out_opt _ADOConnection **ppvObject); + + DECLSPEC_XFGVIRT(Command15, putref_ActiveConnection) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in Command15 * This, + /* [in] */ __RPC__in_opt _ADOConnection *pCon); + + DECLSPEC_XFGVIRT(Command15, put_ActiveConnection) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in Command15 * This, + /* [in] */ VARIANT vConn); + + DECLSPEC_XFGVIRT(Command15, get_CommandText) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandText )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Command15, put_CommandText) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandText )( + __RPC__in Command15 * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(Command15, get_CommandTimeout) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandTimeout )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__out LONG *pl); + + DECLSPEC_XFGVIRT(Command15, put_CommandTimeout) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandTimeout )( + __RPC__in Command15 * This, + /* [in] */ LONG Timeout); + + DECLSPEC_XFGVIRT(Command15, get_Prepared) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Prepared )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfPrepared); + + DECLSPEC_XFGVIRT(Command15, put_Prepared) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Prepared )( + __RPC__in Command15 * This, + /* [in] */ VARIANT_BOOL fPrepared); + + DECLSPEC_XFGVIRT(Command15, Execute) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in Command15 * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [optional][in] */ __RPC__in VARIANT *Parameters, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppirs); + + DECLSPEC_XFGVIRT(Command15, CreateParameter) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreateParameter )( + __RPC__in Command15 * This, + /* [defaultvalue][in] */ __RPC__in BSTR Name, + /* [defaultvalue][in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ParameterDirectionEnum Direction, + /* [defaultvalue][in] */ long Size, + /* [optional][in] */ VARIANT Value, + /* [retval][out] */ __RPC__deref_out_opt _ADOParameter **ppiprm); + + DECLSPEC_XFGVIRT(Command15, get_Parameters) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOParameters **ppvObject); + + DECLSPEC_XFGVIRT(Command15, put_CommandType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandType )( + __RPC__in Command15 * This, + /* [in] */ CommandTypeEnum lCmdType); + + DECLSPEC_XFGVIRT(Command15, get_CommandType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandType )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__out CommandTypeEnum *plCmdType); + + DECLSPEC_XFGVIRT(Command15, get_Name) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(Command15, put_Name) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in Command15 * This, + /* [in] */ __RPC__in BSTR bstrName); + + END_INTERFACE + } Command15Vtbl; + interface Command15 + { + CONST_VTBL struct Command15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Command15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Command15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Command15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Command15_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Command15_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Command15_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Command15_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Command15_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Command15_get_ActiveConnection(This,ppvObject) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,ppvObject) ) +#define Command15_putref_ActiveConnection(This,pCon) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pCon) ) +#define Command15_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define Command15_get_CommandText(This,pbstr) \ + ( (This)->lpVtbl -> get_CommandText(This,pbstr) ) +#define Command15_put_CommandText(This,bstr) \ + ( (This)->lpVtbl -> put_CommandText(This,bstr) ) +#define Command15_get_CommandTimeout(This,pl) \ + ( (This)->lpVtbl -> get_CommandTimeout(This,pl) ) +#define Command15_put_CommandTimeout(This,Timeout) \ + ( (This)->lpVtbl -> put_CommandTimeout(This,Timeout) ) +#define Command15_get_Prepared(This,pfPrepared) \ + ( (This)->lpVtbl -> get_Prepared(This,pfPrepared) ) +#define Command15_put_Prepared(This,fPrepared) \ + ( (This)->lpVtbl -> put_Prepared(This,fPrepared) ) +#define Command15_Execute(This,RecordsAffected,Parameters,Options,ppirs) \ + ( (This)->lpVtbl -> Execute(This,RecordsAffected,Parameters,Options,ppirs) ) +#define Command15_CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) \ + ( (This)->lpVtbl -> CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) ) +#define Command15_get_Parameters(This,ppvObject) \ + ( (This)->lpVtbl -> get_Parameters(This,ppvObject) ) +#define Command15_put_CommandType(This,lCmdType) \ + ( (This)->lpVtbl -> put_CommandType(This,lCmdType) ) +#define Command15_get_CommandType(This,plCmdType) \ + ( (This)->lpVtbl -> get_CommandType(This,plCmdType) ) +#define Command15_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) +#define Command15_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Command15_INTERFACE_DEFINED__ */ +#ifndef __Command25_INTERFACE_DEFINED__ +#define __Command25_INTERFACE_DEFINED__ +/* interface Command25 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Command25; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000154E-0000-0010-8000-00AA006D2EA4") + Command25 : public Command15 + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out LONG *plObjState) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + + +#else /* C style interface */ + typedef struct Command25Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Command25 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Command25 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Command25 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Command25 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Command25 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Command25 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Command25 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Command15, get_ActiveConnection) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__deref_out_opt _ADOConnection **ppvObject); + + DECLSPEC_XFGVIRT(Command15, putref_ActiveConnection) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in Command25 * This, + /* [in] */ __RPC__in_opt _ADOConnection *pCon); + + DECLSPEC_XFGVIRT(Command15, put_ActiveConnection) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in Command25 * This, + /* [in] */ VARIANT vConn); + + DECLSPEC_XFGVIRT(Command15, get_CommandText) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandText )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Command15, put_CommandText) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandText )( + __RPC__in Command25 * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(Command15, get_CommandTimeout) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandTimeout )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__out LONG *pl); + + DECLSPEC_XFGVIRT(Command15, put_CommandTimeout) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandTimeout )( + __RPC__in Command25 * This, + /* [in] */ LONG Timeout); + + DECLSPEC_XFGVIRT(Command15, get_Prepared) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Prepared )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfPrepared); + + DECLSPEC_XFGVIRT(Command15, put_Prepared) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Prepared )( + __RPC__in Command25 * This, + /* [in] */ VARIANT_BOOL fPrepared); + + DECLSPEC_XFGVIRT(Command15, Execute) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in Command25 * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [optional][in] */ __RPC__in VARIANT *Parameters, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppirs); + + DECLSPEC_XFGVIRT(Command15, CreateParameter) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreateParameter )( + __RPC__in Command25 * This, + /* [defaultvalue][in] */ __RPC__in BSTR Name, + /* [defaultvalue][in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ParameterDirectionEnum Direction, + /* [defaultvalue][in] */ long Size, + /* [optional][in] */ VARIANT Value, + /* [retval][out] */ __RPC__deref_out_opt _ADOParameter **ppiprm); + + DECLSPEC_XFGVIRT(Command15, get_Parameters) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOParameters **ppvObject); + + DECLSPEC_XFGVIRT(Command15, put_CommandType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandType )( + __RPC__in Command25 * This, + /* [in] */ CommandTypeEnum lCmdType); + + DECLSPEC_XFGVIRT(Command15, get_CommandType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandType )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__out CommandTypeEnum *plCmdType); + + DECLSPEC_XFGVIRT(Command15, get_Name) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(Command15, put_Name) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in Command25 * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(Command25, get_State) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + DECLSPEC_XFGVIRT(Command25, Cancel) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in Command25 * This); + + END_INTERFACE + } Command25Vtbl; + interface Command25 + { + CONST_VTBL struct Command25Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Command25_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Command25_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Command25_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Command25_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Command25_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Command25_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Command25_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Command25_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Command25_get_ActiveConnection(This,ppvObject) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,ppvObject) ) +#define Command25_putref_ActiveConnection(This,pCon) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pCon) ) +#define Command25_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define Command25_get_CommandText(This,pbstr) \ + ( (This)->lpVtbl -> get_CommandText(This,pbstr) ) +#define Command25_put_CommandText(This,bstr) \ + ( (This)->lpVtbl -> put_CommandText(This,bstr) ) +#define Command25_get_CommandTimeout(This,pl) \ + ( (This)->lpVtbl -> get_CommandTimeout(This,pl) ) +#define Command25_put_CommandTimeout(This,Timeout) \ + ( (This)->lpVtbl -> put_CommandTimeout(This,Timeout) ) +#define Command25_get_Prepared(This,pfPrepared) \ + ( (This)->lpVtbl -> get_Prepared(This,pfPrepared) ) +#define Command25_put_Prepared(This,fPrepared) \ + ( (This)->lpVtbl -> put_Prepared(This,fPrepared) ) +#define Command25_Execute(This,RecordsAffected,Parameters,Options,ppirs) \ + ( (This)->lpVtbl -> Execute(This,RecordsAffected,Parameters,Options,ppirs) ) +#define Command25_CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) \ + ( (This)->lpVtbl -> CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) ) +#define Command25_get_Parameters(This,ppvObject) \ + ( (This)->lpVtbl -> get_Parameters(This,ppvObject) ) +#define Command25_put_CommandType(This,lCmdType) \ + ( (This)->lpVtbl -> put_CommandType(This,lCmdType) ) +#define Command25_get_CommandType(This,plCmdType) \ + ( (This)->lpVtbl -> get_CommandType(This,plCmdType) ) +#define Command25_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) +#define Command25_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) +#define Command25_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define Command25_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Command25_INTERFACE_DEFINED__ */ +#ifndef ___Command_INTERFACE_DEFINED__ +#define ___Command_INTERFACE_DEFINED__ +/* interface _ADOCommand */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__Command; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("986761E8-7269-4890-AA65-AD7C03697A6D") + _ADOCommand : public Command25 + { + public: + virtual /* [helpcontext][propputref][id] */ HRESULT __stdcall putref_CommandStream( + /* [in] */ __RPC__in_opt IUnknown *pStream) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT __stdcall get_CommandStream( + /* [retval][out] */ __RPC__out VARIANT *pvStream) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT __stdcall put_Dialect( + /* [in] */ __RPC__in BSTR bstrDialect) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT __stdcall get_Dialect( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDialect) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT __stdcall put_NamedParameters( + /* [in] */ VARIANT_BOOL fNamedParameters) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT __stdcall get_NamedParameters( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfNamedParameters) = 0; + + }; + + +#else /* C style interface */ + typedef struct _CommandVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOCommand * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOCommand * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOCommand * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOCommand * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOCommand * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Command15, get_ActiveConnection) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt _ADOConnection **ppvObject); + + DECLSPEC_XFGVIRT(Command15, putref_ActiveConnection) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in _ADOCommand * This, + /* [in] */ __RPC__in_opt _ADOConnection *pCon); + + DECLSPEC_XFGVIRT(Command15, put_ActiveConnection) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in _ADOCommand * This, + /* [in] */ VARIANT vConn); + + DECLSPEC_XFGVIRT(Command15, get_CommandText) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandText )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Command15, put_CommandText) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandText )( + __RPC__in _ADOCommand * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(Command15, get_CommandTimeout) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandTimeout )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__out LONG *pl); + + DECLSPEC_XFGVIRT(Command15, put_CommandTimeout) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandTimeout )( + __RPC__in _ADOCommand * This, + /* [in] */ LONG Timeout); + + DECLSPEC_XFGVIRT(Command15, get_Prepared) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Prepared )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfPrepared); + + DECLSPEC_XFGVIRT(Command15, put_Prepared) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Prepared )( + __RPC__in _ADOCommand * This, + /* [in] */ VARIANT_BOOL fPrepared); + + DECLSPEC_XFGVIRT(Command15, Execute) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in _ADOCommand * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [optional][in] */ __RPC__in VARIANT *Parameters, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppirs); + + DECLSPEC_XFGVIRT(Command15, CreateParameter) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreateParameter )( + __RPC__in _ADOCommand * This, + /* [defaultvalue][in] */ __RPC__in BSTR Name, + /* [defaultvalue][in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ParameterDirectionEnum Direction, + /* [defaultvalue][in] */ long Size, + /* [optional][in] */ VARIANT Value, + /* [retval][out] */ __RPC__deref_out_opt _ADOParameter **ppiprm); + + DECLSPEC_XFGVIRT(Command15, get_Parameters) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt ADOParameters **ppvObject); + + DECLSPEC_XFGVIRT(Command15, put_CommandType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandType )( + __RPC__in _ADOCommand * This, + /* [in] */ CommandTypeEnum lCmdType); + + DECLSPEC_XFGVIRT(Command15, get_CommandType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandType )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__out CommandTypeEnum *plCmdType); + + DECLSPEC_XFGVIRT(Command15, get_Name) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(Command15, put_Name) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in _ADOCommand * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(Command25, get_State) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + DECLSPEC_XFGVIRT(Command25, Cancel) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in _ADOCommand * This); + + DECLSPEC_XFGVIRT(_Command, putref_CommandStream) + /* [helpcontext][propputref][id] */ HRESULT ( __stdcall *putref_CommandADOStream )( + __RPC__in _ADOCommand * This, + /* [in] */ __RPC__in_opt IUnknown *pStream); + + DECLSPEC_XFGVIRT(_Command, get_CommandStream) + /* [helpcontext][propget][id] */ HRESULT ( __stdcall *get_CommandStream )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__out VARIANT *pvStream); + + DECLSPEC_XFGVIRT(_Command, put_Dialect) + /* [helpcontext][propput][id] */ HRESULT ( __stdcall *put_Dialect )( + __RPC__in _ADOCommand * This, + /* [in] */ __RPC__in BSTR bstrDialect); + + DECLSPEC_XFGVIRT(_Command, get_Dialect) + /* [helpcontext][propget][id] */ HRESULT ( __stdcall *get_Dialect )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDialect); + + DECLSPEC_XFGVIRT(_Command, put_NamedParameters) + /* [helpcontext][propput][id] */ HRESULT ( __stdcall *put_NamedParameters )( + __RPC__in _ADOCommand * This, + /* [in] */ VARIANT_BOOL fNamedParameters); + + DECLSPEC_XFGVIRT(_Command, get_NamedParameters) + /* [helpcontext][propget][id] */ HRESULT ( __stdcall *get_NamedParameters )( + __RPC__in _ADOCommand * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfNamedParameters); + + END_INTERFACE + } _CommandVtbl; + interface _Command + { + CONST_VTBL struct _CommandVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Command_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Command_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Command_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Command_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Command_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Command_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Command_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Command_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Command_get_ActiveConnection(This,ppvObject) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,ppvObject) ) +#define _Command_putref_ActiveConnection(This,pCon) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pCon) ) +#define _Command_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define _Command_get_CommandText(This,pbstr) \ + ( (This)->lpVtbl -> get_CommandText(This,pbstr) ) +#define _Command_put_CommandText(This,bstr) \ + ( (This)->lpVtbl -> put_CommandText(This,bstr) ) +#define _Command_get_CommandTimeout(This,pl) \ + ( (This)->lpVtbl -> get_CommandTimeout(This,pl) ) +#define _Command_put_CommandTimeout(This,Timeout) \ + ( (This)->lpVtbl -> put_CommandTimeout(This,Timeout) ) +#define _Command_get_Prepared(This,pfPrepared) \ + ( (This)->lpVtbl -> get_Prepared(This,pfPrepared) ) +#define _Command_put_Prepared(This,fPrepared) \ + ( (This)->lpVtbl -> put_Prepared(This,fPrepared) ) +#define _Command_Execute(This,RecordsAffected,Parameters,Options,ppirs) \ + ( (This)->lpVtbl -> Execute(This,RecordsAffected,Parameters,Options,ppirs) ) +#define _Command_CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) \ + ( (This)->lpVtbl -> CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) ) +#define _Command_get_Parameters(This,ppvObject) \ + ( (This)->lpVtbl -> get_Parameters(This,ppvObject) ) +#define _Command_put_CommandType(This,lCmdType) \ + ( (This)->lpVtbl -> put_CommandType(This,lCmdType) ) +#define _Command_get_CommandType(This,plCmdType) \ + ( (This)->lpVtbl -> get_CommandType(This,plCmdType) ) +#define _Command_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) +#define _Command_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) +#define _Command_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define _Command_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#define _Command_putref_CommandStream(This,pStream) \ + ( (This)->lpVtbl -> putref_CommandStream(This,pStream) ) +#define _Command_get_CommandStream(This,pvStream) \ + ( (This)->lpVtbl -> get_CommandStream(This,pvStream) ) +#define _Command_put_Dialect(This,bstrDialect) \ + ( (This)->lpVtbl -> put_Dialect(This,bstrDialect) ) +#define _Command_get_Dialect(This,pbstrDialect) \ + ( (This)->lpVtbl -> get_Dialect(This,pbstrDialect) ) +#define _Command_put_NamedParameters(This,fNamedParameters) \ + ( (This)->lpVtbl -> put_NamedParameters(This,fNamedParameters) ) +#define _Command_get_NamedParameters(This,pfNamedParameters) \ + ( (This)->lpVtbl -> get_NamedParameters(This,pfNamedParameters) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Command_INTERFACE_DEFINED__ */ +#ifndef __ConnectionEventsVt_INTERFACE_DEFINED__ +#define __ConnectionEventsVt_INTERFACE_DEFINED__ +/* interface ConnectionEventsVt */ +/* [object][uuid][hidden] */ +EXTERN_C const IID IID_ConnectionEventsVt; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001402-0000-0010-8000-00AA006D2EA4") + ConnectionEventsVt : public IUnknown + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE InfoMessage( + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE BeginTransComplete( + /* [in] */ LONG TransactionLevel, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CommitTransComplete( + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE RollbackTransComplete( + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillExecute( + /* [out][in] */ __RPC__deref_inout_opt BSTR *Source, + /* [out][in] */ __RPC__inout CursorTypeEnum *CursorType, + /* [out][in] */ __RPC__inout LockTypeEnum *LockType, + /* [out][in] */ __RPC__inout long *Options, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOCommand *pCommand, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE ExecuteComplete( + /* [in] */ LONG RecordsAffected, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOCommand *pCommand, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillConnect( + /* [out][in] */ __RPC__deref_inout_opt BSTR *ConnectionString, + /* [out][in] */ __RPC__deref_inout_opt BSTR *UserID, + /* [out][in] */ __RPC__deref_inout_opt BSTR *Password, + /* [out][in] */ __RPC__inout long *Options, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE ConnectComplete( + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Disconnect( + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + }; + + +#else /* C style interface */ + typedef struct ConnectionEventsVtVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ConnectionEventsVt * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ConnectionEventsVt * This); + + DECLSPEC_XFGVIRT(ConnectionEventsVt, InfoMessage) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *InfoMessage )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection); + + DECLSPEC_XFGVIRT(ConnectionEventsVt, BeginTransComplete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *BeginTransComplete )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ LONG TransactionLevel, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection); + + DECLSPEC_XFGVIRT(ConnectionEventsVt, CommitTransComplete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CommitTransComplete )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection); + + DECLSPEC_XFGVIRT(ConnectionEventsVt, RollbackTransComplete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *RollbackTransComplete )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection); + + DECLSPEC_XFGVIRT(ConnectionEventsVt, WillExecute) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillExecute )( + __RPC__in ConnectionEventsVt * This, + /* [out][in] */ __RPC__deref_inout_opt BSTR *Source, + /* [out][in] */ __RPC__inout CursorTypeEnum *CursorType, + /* [out][in] */ __RPC__inout LockTypeEnum *LockType, + /* [out][in] */ __RPC__inout long *Options, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOCommand *pCommand, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection); + + DECLSPEC_XFGVIRT(ConnectionEventsVt, ExecuteComplete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *ExecuteComplete )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ LONG RecordsAffected, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOCommand *pCommand, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection); + + DECLSPEC_XFGVIRT(ConnectionEventsVt, WillConnect) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillConnect )( + __RPC__in ConnectionEventsVt * This, + /* [out][in] */ __RPC__deref_inout_opt BSTR *ConnectionString, + /* [out][in] */ __RPC__deref_inout_opt BSTR *UserID, + /* [out][in] */ __RPC__deref_inout_opt BSTR *Password, + /* [out][in] */ __RPC__inout long *Options, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection); + + DECLSPEC_XFGVIRT(ConnectionEventsVt, ConnectComplete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectComplete )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection); + + DECLSPEC_XFGVIRT(ConnectionEventsVt, Disconnect) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Disconnect )( + __RPC__in ConnectionEventsVt * This, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection); + + END_INTERFACE + } ConnectionEventsVtVtbl; + interface ConnectionEventsVt + { + CONST_VTBL struct ConnectionEventsVtVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ConnectionEventsVt_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ConnectionEventsVt_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ConnectionEventsVt_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ConnectionEventsVt_InfoMessage(This,pError,adStatus,pConnection) \ + ( (This)->lpVtbl -> InfoMessage(This,pError,adStatus,pConnection) ) +#define ConnectionEventsVt_BeginTransComplete(This,TransactionLevel,pError,adStatus,pConnection) \ + ( (This)->lpVtbl -> BeginTransComplete(This,TransactionLevel,pError,adStatus,pConnection) ) +#define ConnectionEventsVt_CommitTransComplete(This,pError,adStatus,pConnection) \ + ( (This)->lpVtbl -> CommitTransComplete(This,pError,adStatus,pConnection) ) +#define ConnectionEventsVt_RollbackTransComplete(This,pError,adStatus,pConnection) \ + ( (This)->lpVtbl -> RollbackTransComplete(This,pError,adStatus,pConnection) ) +#define ConnectionEventsVt_WillExecute(This,Source,CursorType,LockType,Options,adStatus,pCommand,pRecordset,pConnection) \ + ( (This)->lpVtbl -> WillExecute(This,Source,CursorType,LockType,Options,adStatus,pCommand,pRecordset,pConnection) ) +#define ConnectionEventsVt_ExecuteComplete(This,RecordsAffected,pError,adStatus,pCommand,pRecordset,pConnection) \ + ( (This)->lpVtbl -> ExecuteComplete(This,RecordsAffected,pError,adStatus,pCommand,pRecordset,pConnection) ) +#define ConnectionEventsVt_WillConnect(This,ConnectionString,UserID,Password,Options,adStatus,pConnection) \ + ( (This)->lpVtbl -> WillConnect(This,ConnectionString,UserID,Password,Options,adStatus,pConnection) ) +#define ConnectionEventsVt_ConnectComplete(This,pError,adStatus,pConnection) \ + ( (This)->lpVtbl -> ConnectComplete(This,pError,adStatus,pConnection) ) +#define ConnectionEventsVt_Disconnect(This,adStatus,pConnection) \ + ( (This)->lpVtbl -> Disconnect(This,adStatus,pConnection) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ConnectionEventsVt_INTERFACE_DEFINED__ */ +#ifndef __RecordsetEventsVt_INTERFACE_DEFINED__ +#define __RecordsetEventsVt_INTERFACE_DEFINED__ +/* interface RecordsetEventsVt */ +/* [object][uuid][hidden] */ +EXTERN_C const IID IID_RecordsetEventsVt; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001403-0000-0010-8000-00AA006D2EA4") + RecordsetEventsVt : public IUnknown + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillChangeField( + /* [in] */ LONG cFields, + /* [in] */ VARIANT Fields, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE FieldChangeComplete( + /* [in] */ LONG cFields, + /* [in] */ VARIANT Fields, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillChangeRecord( + /* [in] */ EventReasonEnum adReason, + /* [in] */ LONG cRecords, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE RecordChangeComplete( + /* [in] */ EventReasonEnum adReason, + /* [in] */ LONG cRecords, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillChangeRecordset( + /* [in] */ EventReasonEnum adReason, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE RecordsetChangeComplete( + /* [in] */ EventReasonEnum adReason, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillMove( + /* [in] */ EventReasonEnum adReason, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MoveComplete( + /* [in] */ EventReasonEnum adReason, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE EndOfRecordset( + /* [out][in] */ __RPC__inout VARIANT_BOOL *fMoreData, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE FetchProgress( + /* [in] */ long Progress, + /* [in] */ long MaxProgress, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE FetchComplete( + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + }; + + +#else /* C style interface */ + typedef struct RecordsetEventsVtVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in RecordsetEventsVt * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in RecordsetEventsVt * This); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, WillChangeField) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillChangeADOField )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ LONG cFields, + /* [in] */ VARIANT Fields, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, FieldChangeComplete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *FieldChangeComplete )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ LONG cFields, + /* [in] */ VARIANT Fields, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, WillChangeRecord) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillChangeADORecord )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [in] */ LONG cRecords, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, RecordChangeComplete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *RecordChangeComplete )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [in] */ LONG cRecords, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, WillChangeRecordset) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillChangeADORecordset )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, RecordsetChangeComplete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *RecordsetChangeComplete )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, WillMove) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillMove )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, MoveComplete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveComplete )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, EndOfRecordset) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *EndOfADORecordset )( + __RPC__in RecordsetEventsVt * This, + /* [out][in] */ __RPC__inout VARIANT_BOOL *fMoreData, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, FetchProgress) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *FetchProgress )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ long Progress, + /* [in] */ long MaxProgress, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + DECLSPEC_XFGVIRT(RecordsetEventsVt, FetchComplete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *FetchComplete )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset); + + END_INTERFACE + } RecordsetEventsVtVtbl; + interface RecordsetEventsVt + { + CONST_VTBL struct RecordsetEventsVtVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define RecordsetEventsVt_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define RecordsetEventsVt_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define RecordsetEventsVt_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define RecordsetEventsVt_WillChangeField(This,cFields,Fields,adStatus,pRecordset) \ + ( (This)->lpVtbl -> WillChangeField(This,cFields,Fields,adStatus,pRecordset) ) +#define RecordsetEventsVt_FieldChangeComplete(This,cFields,Fields,pError,adStatus,pRecordset) \ + ( (This)->lpVtbl -> FieldChangeComplete(This,cFields,Fields,pError,adStatus,pRecordset) ) +#define RecordsetEventsVt_WillChangeRecord(This,adReason,cRecords,adStatus,pRecordset) \ + ( (This)->lpVtbl -> WillChangeRecord(This,adReason,cRecords,adStatus,pRecordset) ) +#define RecordsetEventsVt_RecordChangeComplete(This,adReason,cRecords,pError,adStatus,pRecordset) \ + ( (This)->lpVtbl -> RecordChangeComplete(This,adReason,cRecords,pError,adStatus,pRecordset) ) +#define RecordsetEventsVt_WillChangeRecordset(This,adReason,adStatus,pRecordset) \ + ( (This)->lpVtbl -> WillChangeRecordset(This,adReason,adStatus,pRecordset) ) +#define RecordsetEventsVt_RecordsetChangeComplete(This,adReason,pError,adStatus,pRecordset) \ + ( (This)->lpVtbl -> RecordsetChangeComplete(This,adReason,pError,adStatus,pRecordset) ) +#define RecordsetEventsVt_WillMove(This,adReason,adStatus,pRecordset) \ + ( (This)->lpVtbl -> WillMove(This,adReason,adStatus,pRecordset) ) +#define RecordsetEventsVt_MoveComplete(This,adReason,pError,adStatus,pRecordset) \ + ( (This)->lpVtbl -> MoveComplete(This,adReason,pError,adStatus,pRecordset) ) +#define RecordsetEventsVt_EndOfRecordset(This,fMoreData,adStatus,pRecordset) \ + ( (This)->lpVtbl -> EndOfRecordset(This,fMoreData,adStatus,pRecordset) ) +#define RecordsetEventsVt_FetchProgress(This,Progress,MaxProgress,adStatus,pRecordset) \ + ( (This)->lpVtbl -> FetchProgress(This,Progress,MaxProgress,adStatus,pRecordset) ) +#define RecordsetEventsVt_FetchComplete(This,pError,adStatus,pRecordset) \ + ( (This)->lpVtbl -> FetchComplete(This,pError,adStatus,pRecordset) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __RecordsetEventsVt_INTERFACE_DEFINED__ */ +#ifndef __ConnectionEvents_DISPINTERFACE_DEFINED__ +#define __ConnectionEvents_DISPINTERFACE_DEFINED__ +/* dispinterface ConnectionEvents */ +/* [uuid] */ +EXTERN_C const IID DIID_ConnectionEvents; +#if defined(__cplusplus) && !defined(CINTERFACE) + MIDL_INTERFACE("00001400-0000-0010-8000-00AA006D2EA4") + ConnectionEvents : public IDispatch + { + }; + +#else /* C style interface */ + typedef struct ConnectionEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ConnectionEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ConnectionEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ConnectionEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ConnectionEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ConnectionEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ConnectionEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ConnectionEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } ConnectionEventsVtbl; + interface ConnectionEvents + { + CONST_VTBL struct ConnectionEventsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ConnectionEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ConnectionEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ConnectionEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ConnectionEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define ConnectionEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define ConnectionEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define ConnectionEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ConnectionEvents_DISPINTERFACE_DEFINED__ */ +#ifndef __RecordsetEvents_DISPINTERFACE_DEFINED__ +#define __RecordsetEvents_DISPINTERFACE_DEFINED__ +/* dispinterface RecordsetEvents */ +/* [uuid] */ +EXTERN_C const IID DIID_RecordsetEvents; +#if defined(__cplusplus) && !defined(CINTERFACE) + MIDL_INTERFACE("00001266-0000-0010-8000-00AA006D2EA4") + RecordsetEvents : public IDispatch + { + }; + +#else /* C style interface */ + typedef struct RecordsetEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in RecordsetEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in RecordsetEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in RecordsetEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in RecordsetEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in RecordsetEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in RecordsetEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + RecordsetEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } RecordsetEventsVtbl; + interface RecordsetEvents + { + CONST_VTBL struct RecordsetEventsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define RecordsetEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define RecordsetEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define RecordsetEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define RecordsetEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define RecordsetEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define RecordsetEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define RecordsetEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __RecordsetEvents_DISPINTERFACE_DEFINED__ */ +#ifndef __Connection15_INTERFACE_DEFINED__ +#define __Connection15_INTERFACE_DEFINED__ +/* interface Connection15 */ +/* [object][helpcontext][uuid][hidden][dual] */ +EXTERN_C const IID IID_Connection15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001515-0000-0010-8000-00AA006D2EA4") + Connection15 : public _ADO + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_ConnectionString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_ConnectionString( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_CommandTimeout( + /* [retval][out] */ __RPC__out LONG *plTimeout) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_CommandTimeout( + /* [in] */ LONG lTimeout) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_ConnectionTimeout( + /* [retval][out] */ __RPC__out LONG *plTimeout) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_ConnectionTimeout( + /* [in] */ LONG lTimeout) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Version( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Execute( + /* [in] */ __RPC__in BSTR CommandText, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppiRset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE BeginTrans( + /* [retval][out] */ __RPC__out long *TransactionLevel) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CommitTrans( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE RollbackTrans( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Open( + /* [defaultvalue][in] */ __RPC__in BSTR ConnectionString = (BSTR)NULL, + /* [defaultvalue][in] */ __RPC__in BSTR UserID = (BSTR)NULL, + /* [defaultvalue][in] */ __RPC__in BSTR Password = (BSTR)NULL, + /* [defaultvalue][in] */ long Options = adOptionUnspecified) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Errors( + /* [retval][out] */ __RPC__deref_out_opt ADOErrors **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultDatabase( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_DefaultDatabase( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsolationLevel( + /* [retval][out] */ __RPC__out IsolationLevelEnum *Level) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_IsolationLevel( + /* [in] */ IsolationLevelEnum Level) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out long *plAttr) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Attributes( + /* [in] */ long lAttr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CursorLocation( + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CursorLocation( + /* [in] */ CursorLocationEnum lCursorLoc) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Mode( + /* [retval][out] */ __RPC__out ConnectModeEnum *plMode) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Mode( + /* [in] */ ConnectModeEnum lMode) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Provider( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Provider( + /* [in] */ __RPC__in BSTR Provider) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out LONG *plObjState) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE OpenSchema( + /* [in] */ SchemaEnum Schema, + /* [optional][in] */ VARIANT Restrictions, + /* [optional][in] */ VARIANT SchemaID, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **pprset) = 0; + + }; + + +#else /* C style interface */ + typedef struct Connection15Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Connection15 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Connection15 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Connection15 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Connection15 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Connection15 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Connection15, get_ConnectionString) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectionString )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Connection15, put_ConnectionString) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ConnectionString )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(Connection15, get_CommandTimeout) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommandTimeout )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out LONG *plTimeout); + + DECLSPEC_XFGVIRT(Connection15, put_CommandTimeout) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CommandTimeout )( + __RPC__in Connection15 * This, + /* [in] */ LONG lTimeout); + + DECLSPEC_XFGVIRT(Connection15, get_ConnectionTimeout) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectionTimeout )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out LONG *plTimeout); + + DECLSPEC_XFGVIRT(Connection15, put_ConnectionTimeout) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ConnectionTimeout )( + __RPC__in Connection15 * This, + /* [in] */ LONG lTimeout); + + DECLSPEC_XFGVIRT(Connection15, get_Version) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Connection15, Close) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in Connection15 * This); + + DECLSPEC_XFGVIRT(Connection15, Execute) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in BSTR CommandText, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppiRset); + + DECLSPEC_XFGVIRT(Connection15, BeginTrans) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *BeginTrans )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out long *TransactionLevel); + + DECLSPEC_XFGVIRT(Connection15, CommitTrans) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CommitTrans )( + __RPC__in Connection15 * This); + + DECLSPEC_XFGVIRT(Connection15, RollbackTrans) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *RollbackTrans )( + __RPC__in Connection15 * This); + + DECLSPEC_XFGVIRT(Connection15, Open) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in Connection15 * This, + /* [defaultvalue][in] */ __RPC__in BSTR ConnectionString, + /* [defaultvalue][in] */ __RPC__in BSTR UserID, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ long Options); + + DECLSPEC_XFGVIRT(Connection15, get_Errors) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Errors )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOErrors **ppvObject); + + DECLSPEC_XFGVIRT(Connection15, get_DefaultDatabase) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultDatabase )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Connection15, put_DefaultDatabase) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultDatabase )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(Connection15, get_IsolationLevel) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsolationLevel )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out IsolationLevelEnum *Level); + + DECLSPEC_XFGVIRT(Connection15, put_IsolationLevel) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsolationLevel )( + __RPC__in Connection15 * This, + /* [in] */ IsolationLevelEnum Level); + + DECLSPEC_XFGVIRT(Connection15, get_Attributes) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out long *plAttr); + + DECLSPEC_XFGVIRT(Connection15, put_Attributes) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in Connection15 * This, + /* [in] */ long lAttr); + + DECLSPEC_XFGVIRT(Connection15, get_CursorLocation) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + DECLSPEC_XFGVIRT(Connection15, put_CursorLocation) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in Connection15 * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + DECLSPEC_XFGVIRT(Connection15, get_Mode) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out ConnectModeEnum *plMode); + + DECLSPEC_XFGVIRT(Connection15, put_Mode) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Mode )( + __RPC__in Connection15 * This, + /* [in] */ ConnectModeEnum lMode); + + DECLSPEC_XFGVIRT(Connection15, get_Provider) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Provider )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Connection15, put_Provider) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Provider )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in BSTR Provider); + + DECLSPEC_XFGVIRT(Connection15, get_State) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + DECLSPEC_XFGVIRT(Connection15, OpenSchema) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *OpenSchema )( + __RPC__in Connection15 * This, + /* [in] */ SchemaEnum Schema, + /* [optional][in] */ VARIANT Restrictions, + /* [optional][in] */ VARIANT SchemaID, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **pprset); + + END_INTERFACE + } Connection15Vtbl; + interface Connection15 + { + CONST_VTBL struct Connection15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Connection15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Connection15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Connection15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Connection15_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Connection15_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Connection15_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Connection15_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Connection15_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Connection15_get_ConnectionString(This,pbstr) \ + ( (This)->lpVtbl -> get_ConnectionString(This,pbstr) ) +#define Connection15_put_ConnectionString(This,bstr) \ + ( (This)->lpVtbl -> put_ConnectionString(This,bstr) ) +#define Connection15_get_CommandTimeout(This,plTimeout) \ + ( (This)->lpVtbl -> get_CommandTimeout(This,plTimeout) ) +#define Connection15_put_CommandTimeout(This,lTimeout) \ + ( (This)->lpVtbl -> put_CommandTimeout(This,lTimeout) ) +#define Connection15_get_ConnectionTimeout(This,plTimeout) \ + ( (This)->lpVtbl -> get_ConnectionTimeout(This,plTimeout) ) +#define Connection15_put_ConnectionTimeout(This,lTimeout) \ + ( (This)->lpVtbl -> put_ConnectionTimeout(This,lTimeout) ) +#define Connection15_get_Version(This,pbstr) \ + ( (This)->lpVtbl -> get_Version(This,pbstr) ) +#define Connection15_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define Connection15_Execute(This,CommandText,RecordsAffected,Options,ppiRset) \ + ( (This)->lpVtbl -> Execute(This,CommandText,RecordsAffected,Options,ppiRset) ) +#define Connection15_BeginTrans(This,TransactionLevel) \ + ( (This)->lpVtbl -> BeginTrans(This,TransactionLevel) ) +#define Connection15_CommitTrans(This) \ + ( (This)->lpVtbl -> CommitTrans(This) ) +#define Connection15_RollbackTrans(This) \ + ( (This)->lpVtbl -> RollbackTrans(This) ) +#define Connection15_Open(This,ConnectionString,UserID,Password,Options) \ + ( (This)->lpVtbl -> Open(This,ConnectionString,UserID,Password,Options) ) +#define Connection15_get_Errors(This,ppvObject) \ + ( (This)->lpVtbl -> get_Errors(This,ppvObject) ) +#define Connection15_get_DefaultDatabase(This,pbstr) \ + ( (This)->lpVtbl -> get_DefaultDatabase(This,pbstr) ) +#define Connection15_put_DefaultDatabase(This,bstr) \ + ( (This)->lpVtbl -> put_DefaultDatabase(This,bstr) ) +#define Connection15_get_IsolationLevel(This,Level) \ + ( (This)->lpVtbl -> get_IsolationLevel(This,Level) ) +#define Connection15_put_IsolationLevel(This,Level) \ + ( (This)->lpVtbl -> put_IsolationLevel(This,Level) ) +#define Connection15_get_Attributes(This,plAttr) \ + ( (This)->lpVtbl -> get_Attributes(This,plAttr) ) +#define Connection15_put_Attributes(This,lAttr) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttr) ) +#define Connection15_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define Connection15_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define Connection15_get_Mode(This,plMode) \ + ( (This)->lpVtbl -> get_Mode(This,plMode) ) +#define Connection15_put_Mode(This,lMode) \ + ( (This)->lpVtbl -> put_Mode(This,lMode) ) +#define Connection15_get_Provider(This,pbstr) \ + ( (This)->lpVtbl -> get_Provider(This,pbstr) ) +#define Connection15_put_Provider(This,Provider) \ + ( (This)->lpVtbl -> put_Provider(This,Provider) ) +#define Connection15_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define Connection15_OpenSchema(This,Schema,Restrictions,SchemaID,pprset) \ + ( (This)->lpVtbl -> OpenSchema(This,Schema,Restrictions,SchemaID,pprset) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Connection15_INTERFACE_DEFINED__ */ +#ifndef ___Connection_INTERFACE_DEFINED__ +#define ___Connection_INTERFACE_DEFINED__ +/* interface _ADOConnection */ +/* [object][helpcontext][uuid][dual] */ +EXTERN_C const IID IID__Connection; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001550-0000-0010-8000-00AA006D2EA4") + _ADOConnection : public Connection15 + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + + +#else /* C style interface */ + typedef struct _ConnectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOConnection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOConnection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOConnection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOConnection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOConnection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOConnection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOConnection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Connection15, get_ConnectionString) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectionString )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Connection15, put_ConnectionString) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ConnectionString )( + __RPC__in _ADOConnection * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(Connection15, get_CommandTimeout) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommandTimeout )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__out LONG *plTimeout); + + DECLSPEC_XFGVIRT(Connection15, put_CommandTimeout) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CommandTimeout )( + __RPC__in _ADOConnection * This, + /* [in] */ LONG lTimeout); + + DECLSPEC_XFGVIRT(Connection15, get_ConnectionTimeout) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectionTimeout )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__out LONG *plTimeout); + + DECLSPEC_XFGVIRT(Connection15, put_ConnectionTimeout) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ConnectionTimeout )( + __RPC__in _ADOConnection * This, + /* [in] */ LONG lTimeout); + + DECLSPEC_XFGVIRT(Connection15, get_Version) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Connection15, Close) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in _ADOConnection * This); + + DECLSPEC_XFGVIRT(Connection15, Execute) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in _ADOConnection * This, + /* [in] */ __RPC__in BSTR CommandText, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppiRset); + + DECLSPEC_XFGVIRT(Connection15, BeginTrans) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *BeginTrans )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__out long *TransactionLevel); + + DECLSPEC_XFGVIRT(Connection15, CommitTrans) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CommitTrans )( + __RPC__in _ADOConnection * This); + + DECLSPEC_XFGVIRT(Connection15, RollbackTrans) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *RollbackTrans )( + __RPC__in _ADOConnection * This); + + DECLSPEC_XFGVIRT(Connection15, Open) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in _ADOConnection * This, + /* [defaultvalue][in] */ __RPC__in BSTR ConnectionString, + /* [defaultvalue][in] */ __RPC__in BSTR UserID, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ long Options); + + DECLSPEC_XFGVIRT(Connection15, get_Errors) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Errors )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt ADOErrors **ppvObject); + + DECLSPEC_XFGVIRT(Connection15, get_DefaultDatabase) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultDatabase )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Connection15, put_DefaultDatabase) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultDatabase )( + __RPC__in _ADOConnection * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(Connection15, get_IsolationLevel) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsolationLevel )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__out IsolationLevelEnum *Level); + + DECLSPEC_XFGVIRT(Connection15, put_IsolationLevel) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsolationLevel )( + __RPC__in _ADOConnection * This, + /* [in] */ IsolationLevelEnum Level); + + DECLSPEC_XFGVIRT(Connection15, get_Attributes) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__out long *plAttr); + + DECLSPEC_XFGVIRT(Connection15, put_Attributes) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in _ADOConnection * This, + /* [in] */ long lAttr); + + DECLSPEC_XFGVIRT(Connection15, get_CursorLocation) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + DECLSPEC_XFGVIRT(Connection15, put_CursorLocation) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in _ADOConnection * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + DECLSPEC_XFGVIRT(Connection15, get_Mode) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__out ConnectModeEnum *plMode); + + DECLSPEC_XFGVIRT(Connection15, put_Mode) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Mode )( + __RPC__in _ADOConnection * This, + /* [in] */ ConnectModeEnum lMode); + + DECLSPEC_XFGVIRT(Connection15, get_Provider) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Provider )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Connection15, put_Provider) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Provider )( + __RPC__in _ADOConnection * This, + /* [in] */ __RPC__in BSTR Provider); + + DECLSPEC_XFGVIRT(Connection15, get_State) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in _ADOConnection * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + DECLSPEC_XFGVIRT(Connection15, OpenSchema) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *OpenSchema )( + __RPC__in _ADOConnection * This, + /* [in] */ SchemaEnum Schema, + /* [optional][in] */ VARIANT Restrictions, + /* [optional][in] */ VARIANT SchemaID, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **pprset); + + DECLSPEC_XFGVIRT(_Connection, Cancel) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in _ADOConnection * This); + + END_INTERFACE + } _ConnectionVtbl; + interface _Connection + { + CONST_VTBL struct _ConnectionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Connection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Connection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Connection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Connection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Connection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Connection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Connection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Connection_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Connection_get_ConnectionString(This,pbstr) \ + ( (This)->lpVtbl -> get_ConnectionString(This,pbstr) ) +#define _Connection_put_ConnectionString(This,bstr) \ + ( (This)->lpVtbl -> put_ConnectionString(This,bstr) ) +#define _Connection_get_CommandTimeout(This,plTimeout) \ + ( (This)->lpVtbl -> get_CommandTimeout(This,plTimeout) ) +#define _Connection_put_CommandTimeout(This,lTimeout) \ + ( (This)->lpVtbl -> put_CommandTimeout(This,lTimeout) ) +#define _Connection_get_ConnectionTimeout(This,plTimeout) \ + ( (This)->lpVtbl -> get_ConnectionTimeout(This,plTimeout) ) +#define _Connection_put_ConnectionTimeout(This,lTimeout) \ + ( (This)->lpVtbl -> put_ConnectionTimeout(This,lTimeout) ) +#define _Connection_get_Version(This,pbstr) \ + ( (This)->lpVtbl -> get_Version(This,pbstr) ) +#define _Connection_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define _Connection_Execute(This,CommandText,RecordsAffected,Options,ppiRset) \ + ( (This)->lpVtbl -> Execute(This,CommandText,RecordsAffected,Options,ppiRset) ) +#define _Connection_BeginTrans(This,TransactionLevel) \ + ( (This)->lpVtbl -> BeginTrans(This,TransactionLevel) ) +#define _Connection_CommitTrans(This) \ + ( (This)->lpVtbl -> CommitTrans(This) ) +#define _Connection_RollbackTrans(This) \ + ( (This)->lpVtbl -> RollbackTrans(This) ) +#define _Connection_Open(This,ConnectionString,UserID,Password,Options) \ + ( (This)->lpVtbl -> Open(This,ConnectionString,UserID,Password,Options) ) +#define _Connection_get_Errors(This,ppvObject) \ + ( (This)->lpVtbl -> get_Errors(This,ppvObject) ) +#define _Connection_get_DefaultDatabase(This,pbstr) \ + ( (This)->lpVtbl -> get_DefaultDatabase(This,pbstr) ) +#define _Connection_put_DefaultDatabase(This,bstr) \ + ( (This)->lpVtbl -> put_DefaultDatabase(This,bstr) ) +#define _Connection_get_IsolationLevel(This,Level) \ + ( (This)->lpVtbl -> get_IsolationLevel(This,Level) ) +#define _Connection_put_IsolationLevel(This,Level) \ + ( (This)->lpVtbl -> put_IsolationLevel(This,Level) ) +#define _Connection_get_Attributes(This,plAttr) \ + ( (This)->lpVtbl -> get_Attributes(This,plAttr) ) +#define _Connection_put_Attributes(This,lAttr) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttr) ) +#define _Connection_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define _Connection_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define _Connection_get_Mode(This,plMode) \ + ( (This)->lpVtbl -> get_Mode(This,plMode) ) +#define _Connection_put_Mode(This,lMode) \ + ( (This)->lpVtbl -> put_Mode(This,lMode) ) +#define _Connection_get_Provider(This,pbstr) \ + ( (This)->lpVtbl -> get_Provider(This,pbstr) ) +#define _Connection_put_Provider(This,Provider) \ + ( (This)->lpVtbl -> put_Provider(This,Provider) ) +#define _Connection_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define _Connection_OpenSchema(This,Schema,Restrictions,SchemaID,pprset) \ + ( (This)->lpVtbl -> OpenSchema(This,Schema,Restrictions,SchemaID,pprset) ) +#define _Connection_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Connection_INTERFACE_DEFINED__ */ +#ifndef __ADOConnectionConstruction15_INTERFACE_DEFINED__ +#define __ADOConnectionConstruction15_INTERFACE_DEFINED__ +/* interface ADOConnectionConstruction15 */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADOConnectionConstruction15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000516-0000-0010-8000-00AA006D2EA4") + ADOConnectionConstruction15 : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DSO( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppDSO) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Session( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppSession) = 0; + + virtual HRESULT STDMETHODCALLTYPE WrapDSOandSession( + /* [in] */ __RPC__in_opt IUnknown *pDSO, + /* [in] */ __RPC__in_opt IUnknown *pSession) = 0; + + }; + + +#else /* C style interface */ + typedef struct ADOConnectionConstruction15Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOConnectionConstruction15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOConnectionConstruction15 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOConnectionConstruction15 * This); + + DECLSPEC_XFGVIRT(ADOConnectionConstruction15, get_DSO) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DSO )( + __RPC__in ADOConnectionConstruction15 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppDSO); + + DECLSPEC_XFGVIRT(ADOConnectionConstruction15, get_Session) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Session )( + __RPC__in ADOConnectionConstruction15 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppSession); + + DECLSPEC_XFGVIRT(ADOConnectionConstruction15, WrapDSOandSession) + HRESULT ( STDMETHODCALLTYPE *WrapDSOandSession )( + __RPC__in ADOConnectionConstruction15 * This, + /* [in] */ __RPC__in_opt IUnknown *pDSO, + /* [in] */ __RPC__in_opt IUnknown *pSession); + + END_INTERFACE + } ADOConnectionConstruction15Vtbl; + interface ADOConnectionConstruction15 + { + CONST_VTBL struct ADOConnectionConstruction15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADOConnectionConstruction15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADOConnectionConstruction15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADOConnectionConstruction15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADOConnectionConstruction15_get_DSO(This,ppDSO) \ + ( (This)->lpVtbl -> get_DSO(This,ppDSO) ) +#define ADOConnectionConstruction15_get_Session(This,ppSession) \ + ( (This)->lpVtbl -> get_Session(This,ppSession) ) +#define ADOConnectionConstruction15_WrapDSOandSession(This,pDSO,pSession) \ + ( (This)->lpVtbl -> WrapDSOandSession(This,pDSO,pSession) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADOConnectionConstruction15_INTERFACE_DEFINED__ */ +#ifndef __ADOConnectionConstruction_INTERFACE_DEFINED__ +#define __ADOConnectionConstruction_INTERFACE_DEFINED__ +/* interface ADOConnectionConstruction */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADOConnectionConstruction; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000551-0000-0010-8000-00AA006D2EA4") + ADOConnectionConstruction : public ADOConnectionConstruction15 + { + public: + }; + + +#else /* C style interface */ + typedef struct ADOConnectionConstructionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOConnectionConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOConnectionConstruction * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOConnectionConstruction * This); + + DECLSPEC_XFGVIRT(ADOConnectionConstruction15, get_DSO) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DSO )( + __RPC__in ADOConnectionConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppDSO); + + DECLSPEC_XFGVIRT(ADOConnectionConstruction15, get_Session) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Session )( + __RPC__in ADOConnectionConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppSession); + + DECLSPEC_XFGVIRT(ADOConnectionConstruction15, WrapDSOandSession) + HRESULT ( STDMETHODCALLTYPE *WrapDSOandSession )( + __RPC__in ADOConnectionConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pDSO, + /* [in] */ __RPC__in_opt IUnknown *pSession); + + END_INTERFACE + } ADOConnectionConstructionVtbl; + interface ADOConnectionConstruction + { + CONST_VTBL struct ADOConnectionConstructionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADOConnectionConstruction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADOConnectionConstruction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADOConnectionConstruction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADOConnectionConstruction_get_DSO(This,ppDSO) \ + ( (This)->lpVtbl -> get_DSO(This,ppDSO) ) +#define ADOConnectionConstruction_get_Session(This,ppSession) \ + ( (This)->lpVtbl -> get_Session(This,ppSession) ) +#define ADOConnectionConstruction_WrapDSOandSession(This,pDSO,pSession) \ + ( (This)->lpVtbl -> WrapDSOandSession(This,pDSO,pSession) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADOConnectionConstruction_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Connection; +#ifdef __cplusplus +Connection; +#endif +#ifndef ___Record_INTERFACE_DEFINED__ +#define ___Record_INTERFACE_DEFINED__ +/* interface _ADORecord */ +/* [object][uuid][helpcontext][hidden][dual] */ +EXTERN_C const IID IID__Record; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001562-0000-0010-8000-00AA006D2EA4") + _ADORecord : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_ActiveConnection( + /* [in] */ __RPC__in BSTR bstrConn) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_ActiveConnection( + /* [in] */ __RPC__in_opt _ADOConnection *Con) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out ObjectStateEnum *pState) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Source( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Source( + /* [in] */ __RPC__in BSTR Source) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Source( + /* [in] */ __RPC__in_opt IDispatch *Source) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Mode( + /* [retval][out] */ __RPC__out ConnectModeEnum *pMode) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Mode( + /* [in] */ ConnectModeEnum Mode) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ParentURL( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrParentURL) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MoveRecord( + /* [defaultvalue][in] */ __RPC__in BSTR Source, + /* [defaultvalue][in] */ __RPC__in BSTR Destination, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ MoveRecordOptionsEnum Options, + /* [defaultvalue][in] */ VARIANT_BOOL Async, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNewURL) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CopyRecord( + /* [defaultvalue][in] */ __RPC__in BSTR Source, + /* [defaultvalue][in] */ __RPC__in BSTR Destination, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ CopyRecordOptionsEnum Options, + /* [defaultvalue][in] */ VARIANT_BOOL Async, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNewURL) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE DeleteRecord( + /* [defaultvalue][in] */ __RPC__in BSTR Source = (BSTR)NULL, + /* [defaultvalue][in] */ VARIANT_BOOL Async = 0) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Open( + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ ConnectModeEnum Mode = adModeUnknown, + /* [defaultvalue][in] */ RecordCreateOptionsEnum CreateOptions = adFailIfNotExists, + /* [defaultvalue][in] */ RecordOpenOptionsEnum Options = adOpenRecordUnspecified, + /* [defaultvalue][in] */ __RPC__in BSTR UserName = (BSTR)NULL, + /* [defaultvalue][in] */ __RPC__in BSTR Password = (BSTR)NULL) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Fields( + /* [retval][out] */ __RPC__deref_out_opt ADOFields **ppFlds) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_RecordType( + /* [retval][out] */ __RPC__out RecordTypeEnum *pType) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetChildren( + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppRSet) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + + +#else /* C style interface */ + typedef struct _RecordVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADORecord * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADORecord * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADORecord * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADORecord * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADORecord * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADORecord * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADORecord * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADORecord * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(_Record, get_ActiveConnection) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in _ADORecord * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(_Record, put_ActiveConnection) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in _ADORecord * This, + /* [in] */ __RPC__in BSTR bstrConn); + + DECLSPEC_XFGVIRT(_Record, putref_ActiveConnection) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in _ADORecord * This, + /* [in] */ __RPC__in_opt _ADOConnection *Con); + + DECLSPEC_XFGVIRT(_Record, get_State) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in _ADORecord * This, + /* [retval][out] */ __RPC__out ObjectStateEnum *pState); + + DECLSPEC_XFGVIRT(_Record, get_Source) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in _ADORecord * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(_Record, put_Source) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in _ADORecord * This, + /* [in] */ __RPC__in BSTR Source); + + DECLSPEC_XFGVIRT(_Record, putref_Source) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in _ADORecord * This, + /* [in] */ __RPC__in_opt IDispatch *Source); + + DECLSPEC_XFGVIRT(_Record, get_Mode) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( + __RPC__in _ADORecord * This, + /* [retval][out] */ __RPC__out ConnectModeEnum *pMode); + + DECLSPEC_XFGVIRT(_Record, put_Mode) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Mode )( + __RPC__in _ADORecord * This, + /* [in] */ ConnectModeEnum Mode); + + DECLSPEC_XFGVIRT(_Record, get_ParentURL) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ParentURL )( + __RPC__in _ADORecord * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrParentURL); + + DECLSPEC_XFGVIRT(_Record, MoveRecord) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveADORecord )( + __RPC__in _ADORecord * This, + /* [defaultvalue][in] */ __RPC__in BSTR Source, + /* [defaultvalue][in] */ __RPC__in BSTR Destination, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ MoveRecordOptionsEnum Options, + /* [defaultvalue][in] */ VARIANT_BOOL Async, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNewURL); + + DECLSPEC_XFGVIRT(_Record, CopyRecord) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CopyADORecord )( + __RPC__in _ADORecord * This, + /* [defaultvalue][in] */ __RPC__in BSTR Source, + /* [defaultvalue][in] */ __RPC__in BSTR Destination, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ CopyRecordOptionsEnum Options, + /* [defaultvalue][in] */ VARIANT_BOOL Async, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNewURL); + + DECLSPEC_XFGVIRT(_Record, DeleteRecord) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteADORecord )( + __RPC__in _ADORecord * This, + /* [defaultvalue][in] */ __RPC__in BSTR Source, + /* [defaultvalue][in] */ VARIANT_BOOL Async); + + DECLSPEC_XFGVIRT(_Record, Open) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in _ADORecord * This, + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ ConnectModeEnum Mode, + /* [defaultvalue][in] */ RecordCreateOptionsEnum CreateOptions, + /* [defaultvalue][in] */ RecordOpenOptionsEnum Options, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password); + + DECLSPEC_XFGVIRT(_Record, Close) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in _ADORecord * This); + + DECLSPEC_XFGVIRT(_Record, get_Fields) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in _ADORecord * This, + /* [retval][out] */ __RPC__deref_out_opt ADOFields **ppFlds); + + DECLSPEC_XFGVIRT(_Record, get_RecordType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecordType )( + __RPC__in _ADORecord * This, + /* [retval][out] */ __RPC__out RecordTypeEnum *pType); + + DECLSPEC_XFGVIRT(_Record, GetChildren) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetChildren )( + __RPC__in _ADORecord * This, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppRSet); + + DECLSPEC_XFGVIRT(_Record, Cancel) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in _ADORecord * This); + + END_INTERFACE + } _RecordVtbl; + interface _Record + { + CONST_VTBL struct _RecordVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Record_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Record_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Record_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Record_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Record_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Record_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Record_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Record_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Record_get_ActiveConnection(This,pvar) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pvar) ) +#define _Record_put_ActiveConnection(This,bstrConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,bstrConn) ) +#define _Record_putref_ActiveConnection(This,Con) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,Con) ) +#define _Record_get_State(This,pState) \ + ( (This)->lpVtbl -> get_State(This,pState) ) +#define _Record_get_Source(This,pvar) \ + ( (This)->lpVtbl -> get_Source(This,pvar) ) +#define _Record_put_Source(This,Source) \ + ( (This)->lpVtbl -> put_Source(This,Source) ) +#define _Record_putref_Source(This,Source) \ + ( (This)->lpVtbl -> putref_Source(This,Source) ) +#define _Record_get_Mode(This,pMode) \ + ( (This)->lpVtbl -> get_Mode(This,pMode) ) +#define _Record_put_Mode(This,Mode) \ + ( (This)->lpVtbl -> put_Mode(This,Mode) ) +#define _Record_get_ParentURL(This,pbstrParentURL) \ + ( (This)->lpVtbl -> get_ParentURL(This,pbstrParentURL) ) +#define _Record_MoveRecord(This,Source,Destination,UserName,Password,Options,Async,pbstrNewURL) \ + ( (This)->lpVtbl -> MoveRecord(This,Source,Destination,UserName,Password,Options,Async,pbstrNewURL) ) +#define _Record_CopyRecord(This,Source,Destination,UserName,Password,Options,Async,pbstrNewURL) \ + ( (This)->lpVtbl -> CopyRecord(This,Source,Destination,UserName,Password,Options,Async,pbstrNewURL) ) +#define _Record_DeleteRecord(This,Source,Async) \ + ( (This)->lpVtbl -> DeleteRecord(This,Source,Async) ) +#define _Record_Open(This,Source,ActiveConnection,Mode,CreateOptions,Options,UserName,Password) \ + ( (This)->lpVtbl -> Open(This,Source,ActiveConnection,Mode,CreateOptions,Options,UserName,Password) ) +#define _Record_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define _Record_get_Fields(This,ppFlds) \ + ( (This)->lpVtbl -> get_Fields(This,ppFlds) ) +#define _Record_get_RecordType(This,pType) \ + ( (This)->lpVtbl -> get_RecordType(This,pType) ) +#define _Record_GetChildren(This,ppRSet) \ + ( (This)->lpVtbl -> GetChildren(This,ppRSet) ) +#define _Record_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Record_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Record; +#ifdef __cplusplus +Record; +#endif +#ifndef ___Stream_INTERFACE_DEFINED__ +#define ___Stream_INTERFACE_DEFINED__ +/* interface _ADOStream */ +/* [object][helpcontext][uuid][hidden][dual] */ +EXTERN_C const IID IID__Stream; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001565-0000-0010-8000-00AA006D2EA4") + _ADOStream : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out long *pSize) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_EOS( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pEOS) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Position( + /* [retval][out] */ __RPC__out long *pPos) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Position( + /* [in] */ long Position) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out StreamTypeEnum *pType) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ StreamTypeEnum Type) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_LineSeparator( + /* [retval][out] */ __RPC__out LineSeparatorEnum *pLS) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_LineSeparator( + /* [in] */ LineSeparatorEnum LineSeparator) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out ObjectStateEnum *pState) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Mode( + /* [retval][out] */ __RPC__out ConnectModeEnum *pMode) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Mode( + /* [in] */ ConnectModeEnum Mode) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Charset( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCharset) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Charset( + /* [in] */ __RPC__in BSTR Charset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Read( + /* [defaultvalue][in] */ long NumBytes, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Open( + /* [optional][in] */ VARIANT Source, + /* [defaultvalue][in] */ ConnectModeEnum Mode = adModeUnknown, + /* [defaultvalue][in] */ StreamOpenOptionsEnum Options = adOpenStreamUnspecified, + /* [defaultvalue][in] */ __RPC__in BSTR UserName = (BSTR)NULL, + /* [defaultvalue][in] */ __RPC__in BSTR Password = (BSTR)NULL) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE SkipLine( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Write( + /* [in] */ VARIANT Buffer) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE SetEOS( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CopyTo( + /* [in] */ __RPC__in_opt _ADOStream *DestStream, + /* [defaultvalue][in] */ long CharNumber = -1) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Flush( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE SaveToFile( + /* [in] */ __RPC__in BSTR FileName, + /* [defaultvalue][in] */ SaveOptionsEnum Options = adSaveCreateNotExist) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE LoadFromFile( + /* [in] */ __RPC__in BSTR FileName) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE ReadText( + /* [defaultvalue][in] */ long NumChars, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WriteText( + /* [in] */ __RPC__in BSTR Data, + /* [defaultvalue][in] */ StreamWriteEnum Options = adWriteChar) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + + +#else /* C style interface */ + typedef struct _StreamVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOStream * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOStream * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOStream * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOStream * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOStream * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOStream * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOStream * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Stream, get_Size) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in _ADOStream * This, + /* [retval][out] */ __RPC__out long *pSize); + + DECLSPEC_XFGVIRT(_Stream, get_EOS) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EOS )( + __RPC__in _ADOStream * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pEOS); + + DECLSPEC_XFGVIRT(_Stream, get_Position) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Position )( + __RPC__in _ADOStream * This, + /* [retval][out] */ __RPC__out long *pPos); + + DECLSPEC_XFGVIRT(_Stream, put_Position) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Position )( + __RPC__in _ADOStream * This, + /* [in] */ long Position); + + DECLSPEC_XFGVIRT(_Stream, get_Type) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in _ADOStream * This, + /* [retval][out] */ __RPC__out StreamTypeEnum *pType); + + DECLSPEC_XFGVIRT(_Stream, put_Type) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in _ADOStream * This, + /* [in] */ StreamTypeEnum Type); + + DECLSPEC_XFGVIRT(_Stream, get_LineSeparator) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LineSeparator )( + __RPC__in _ADOStream * This, + /* [retval][out] */ __RPC__out LineSeparatorEnum *pLS); + + DECLSPEC_XFGVIRT(_Stream, put_LineSeparator) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LineSeparator )( + __RPC__in _ADOStream * This, + /* [in] */ LineSeparatorEnum LineSeparator); + + DECLSPEC_XFGVIRT(_Stream, get_State) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in _ADOStream * This, + /* [retval][out] */ __RPC__out ObjectStateEnum *pState); + + DECLSPEC_XFGVIRT(_Stream, get_Mode) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( + __RPC__in _ADOStream * This, + /* [retval][out] */ __RPC__out ConnectModeEnum *pMode); + + DECLSPEC_XFGVIRT(_Stream, put_Mode) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Mode )( + __RPC__in _ADOStream * This, + /* [in] */ ConnectModeEnum Mode); + + DECLSPEC_XFGVIRT(_Stream, get_Charset) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Charset )( + __RPC__in _ADOStream * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCharset); + + DECLSPEC_XFGVIRT(_Stream, put_Charset) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Charset )( + __RPC__in _ADOStream * This, + /* [in] */ __RPC__in BSTR Charset); + + DECLSPEC_XFGVIRT(_Stream, Read) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Read )( + __RPC__in _ADOStream * This, + /* [defaultvalue][in] */ long NumBytes, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(_Stream, Open) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in _ADOStream * This, + /* [optional][in] */ VARIANT Source, + /* [defaultvalue][in] */ ConnectModeEnum Mode, + /* [defaultvalue][in] */ StreamOpenOptionsEnum Options, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password); + + DECLSPEC_XFGVIRT(_Stream, Close) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in _ADOStream * This); + + DECLSPEC_XFGVIRT(_Stream, SkipLine) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SkipLine )( + __RPC__in _ADOStream * This); + + DECLSPEC_XFGVIRT(_Stream, Write) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Write )( + __RPC__in _ADOStream * This, + /* [in] */ VARIANT Buffer); + + DECLSPEC_XFGVIRT(_Stream, SetEOS) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SetEOS )( + __RPC__in _ADOStream * This); + + DECLSPEC_XFGVIRT(_Stream, CopyTo) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )( + __RPC__in _ADOStream * This, + /* [in] */ __RPC__in_opt _ADOStream *DestStream, + /* [defaultvalue][in] */ long CharNumber); + + DECLSPEC_XFGVIRT(_Stream, Flush) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Flush )( + __RPC__in _ADOStream * This); + + DECLSPEC_XFGVIRT(_Stream, SaveToFile) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SaveToFile )( + __RPC__in _ADOStream * This, + /* [in] */ __RPC__in BSTR FileName, + /* [defaultvalue][in] */ SaveOptionsEnum Options); + + DECLSPEC_XFGVIRT(_Stream, LoadFromFile) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *LoadFromFile )( + __RPC__in _ADOStream * This, + /* [in] */ __RPC__in BSTR FileName); + + DECLSPEC_XFGVIRT(_Stream, ReadText) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *ReadText )( + __RPC__in _ADOStream * This, + /* [defaultvalue][in] */ long NumChars, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(_Stream, WriteText) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WriteText )( + __RPC__in _ADOStream * This, + /* [in] */ __RPC__in BSTR Data, + /* [defaultvalue][in] */ StreamWriteEnum Options); + + DECLSPEC_XFGVIRT(_Stream, Cancel) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in _ADOStream * This); + + END_INTERFACE + } _StreamVtbl; + interface _Stream + { + CONST_VTBL struct _StreamVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Stream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Stream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Stream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Stream_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Stream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Stream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Stream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Stream_get_Size(This,pSize) \ + ( (This)->lpVtbl -> get_Size(This,pSize) ) +#define _Stream_get_EOS(This,pEOS) \ + ( (This)->lpVtbl -> get_EOS(This,pEOS) ) +#define _Stream_get_Position(This,pPos) \ + ( (This)->lpVtbl -> get_Position(This,pPos) ) +#define _Stream_put_Position(This,Position) \ + ( (This)->lpVtbl -> put_Position(This,Position) ) +#define _Stream_get_Type(This,pType) \ + ( (This)->lpVtbl -> get_Type(This,pType) ) +#define _Stream_put_Type(This,Type) \ + ( (This)->lpVtbl -> put_Type(This,Type) ) +#define _Stream_get_LineSeparator(This,pLS) \ + ( (This)->lpVtbl -> get_LineSeparator(This,pLS) ) +#define _Stream_put_LineSeparator(This,LineSeparator) \ + ( (This)->lpVtbl -> put_LineSeparator(This,LineSeparator) ) +#define _Stream_get_State(This,pState) \ + ( (This)->lpVtbl -> get_State(This,pState) ) +#define _Stream_get_Mode(This,pMode) \ + ( (This)->lpVtbl -> get_Mode(This,pMode) ) +#define _Stream_put_Mode(This,Mode) \ + ( (This)->lpVtbl -> put_Mode(This,Mode) ) +#define _Stream_get_Charset(This,pbstrCharset) \ + ( (This)->lpVtbl -> get_Charset(This,pbstrCharset) ) +#define _Stream_put_Charset(This,Charset) \ + ( (This)->lpVtbl -> put_Charset(This,Charset) ) +#define _Stream_Read(This,NumBytes,pVal) \ + ( (This)->lpVtbl -> Read(This,NumBytes,pVal) ) +#define _Stream_Open(This,Source,Mode,Options,UserName,Password) \ + ( (This)->lpVtbl -> Open(This,Source,Mode,Options,UserName,Password) ) +#define _Stream_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define _Stream_SkipLine(This) \ + ( (This)->lpVtbl -> SkipLine(This) ) +#define _Stream_Write(This,Buffer) \ + ( (This)->lpVtbl -> Write(This,Buffer) ) +#define _Stream_SetEOS(This) \ + ( (This)->lpVtbl -> SetEOS(This) ) +#define _Stream_CopyTo(This,DestStream,CharNumber) \ + ( (This)->lpVtbl -> CopyTo(This,DestStream,CharNumber) ) +#define _Stream_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) +#define _Stream_SaveToFile(This,FileName,Options) \ + ( (This)->lpVtbl -> SaveToFile(This,FileName,Options) ) +#define _Stream_LoadFromFile(This,FileName) \ + ( (This)->lpVtbl -> LoadFromFile(This,FileName) ) +#define _Stream_ReadText(This,NumChars,pbstr) \ + ( (This)->lpVtbl -> ReadText(This,NumChars,pbstr) ) +#define _Stream_WriteText(This,Data,Options) \ + ( (This)->lpVtbl -> WriteText(This,Data,Options) ) +#define _Stream_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Stream_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Stream; +#ifdef __cplusplus +Stream; +#endif +#ifndef __ADORecordConstruction_INTERFACE_DEFINED__ +#define __ADORecordConstruction_INTERFACE_DEFINED__ +/* interface ADORecordConstruction */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADORecordConstruction; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000567-0000-0010-8000-00AA006D2EA4") + ADORecordConstruction : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Row( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRow) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Row( + /* [in] */ __RPC__in_opt IUnknown *pRow) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ParentRow( + /* [in] */ __RPC__in_opt IUnknown *pRow) = 0; + + }; + + +#else /* C style interface */ + typedef struct ADORecordConstructionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADORecordConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADORecordConstruction * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADORecordConstruction * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADORecordConstruction * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADORecordConstruction * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADORecordConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADORecordConstruction * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ADORecordConstruction, get_Row) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Row )( + __RPC__in ADORecordConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRow); + + DECLSPEC_XFGVIRT(ADORecordConstruction, put_Row) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Row )( + __RPC__in ADORecordConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pRow); + + DECLSPEC_XFGVIRT(ADORecordConstruction, put_ParentRow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentRow )( + __RPC__in ADORecordConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pRow); + + END_INTERFACE + } ADORecordConstructionVtbl; + interface ADORecordConstruction + { + CONST_VTBL struct ADORecordConstructionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADORecordConstruction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADORecordConstruction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADORecordConstruction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADORecordConstruction_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define ADORecordConstruction_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define ADORecordConstruction_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define ADORecordConstruction_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define ADORecordConstruction_get_Row(This,ppRow) \ + ( (This)->lpVtbl -> get_Row(This,ppRow) ) +#define ADORecordConstruction_put_Row(This,pRow) \ + ( (This)->lpVtbl -> put_Row(This,pRow) ) +#define ADORecordConstruction_put_ParentRow(This,pRow) \ + ( (This)->lpVtbl -> put_ParentRow(This,pRow) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADORecordConstruction_INTERFACE_DEFINED__ */ +#ifndef __ADOStreamConstruction_INTERFACE_DEFINED__ +#define __ADOStreamConstruction_INTERFACE_DEFINED__ +/* interface ADOStreamConstruction */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADOStreamConstruction; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000568-0000-0010-8000-00AA006D2EA4") + ADOStreamConstruction : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Stream( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppStm) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Stream( + /* [in] */ __RPC__in_opt IUnknown *pStm) = 0; + + }; + + +#else /* C style interface */ + typedef struct ADOStreamConstructionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOStreamConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOStreamConstruction * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOStreamConstruction * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOStreamConstruction * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOStreamConstruction * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOStreamConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOStreamConstruction * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ADOStreamConstruction, get_Stream) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Stream )( + __RPC__in ADOStreamConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppStm); + + DECLSPEC_XFGVIRT(ADOStreamConstruction, put_Stream) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Stream )( + __RPC__in ADOStreamConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pStm); + + END_INTERFACE + } ADOStreamConstructionVtbl; + interface ADOStreamConstruction + { + CONST_VTBL struct ADOStreamConstructionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADOStreamConstruction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADOStreamConstruction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADOStreamConstruction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADOStreamConstruction_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define ADOStreamConstruction_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define ADOStreamConstruction_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define ADOStreamConstruction_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define ADOStreamConstruction_get_Stream(This,ppStm) \ + ( (This)->lpVtbl -> get_Stream(This,ppStm) ) +#define ADOStreamConstruction_put_Stream(This,pStm) \ + ( (This)->lpVtbl -> put_Stream(This,pStm) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADOStreamConstruction_INTERFACE_DEFINED__ */ +#ifndef __ADOCommandConstruction_INTERFACE_DEFINED__ +#define __ADOCommandConstruction_INTERFACE_DEFINED__ +/* interface ADOCommandConstruction */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADOCommandConstruction; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000517-0000-0010-8000-00AA006D2EA4") + ADOCommandConstruction : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_OLEDBCommand( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppOLEDBCommand) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_OLEDBCommand( + /* [in] */ __RPC__in_opt IUnknown *pOLEDBCommand) = 0; + + }; + + +#else /* C style interface */ + typedef struct ADOCommandConstructionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOCommandConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOCommandConstruction * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOCommandConstruction * This); + + DECLSPEC_XFGVIRT(ADOCommandConstruction, get_OLEDBCommand) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OLEDBCommand )( + __RPC__in ADOCommandConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppOLEDBCommand); + + DECLSPEC_XFGVIRT(ADOCommandConstruction, put_OLEDBCommand) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_OLEDBCommand )( + __RPC__in ADOCommandConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pOLEDBCommand); + + END_INTERFACE + } ADOCommandConstructionVtbl; + interface ADOCommandConstruction + { + CONST_VTBL struct ADOCommandConstructionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADOCommandConstruction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADOCommandConstruction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADOCommandConstruction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADOCommandConstruction_get_OLEDBCommand(This,ppOLEDBCommand) \ + ( (This)->lpVtbl -> get_OLEDBCommand(This,ppOLEDBCommand) ) +#define ADOCommandConstruction_put_OLEDBCommand(This,pOLEDBCommand) \ + ( (This)->lpVtbl -> put_OLEDBCommand(This,pOLEDBCommand) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADOCommandConstruction_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Command; +#ifdef __cplusplus +Command; +#endif +EXTERN_C const CLSID CLSID_Recordset; +#ifdef __cplusplus +Recordset; +#endif +#ifndef __Recordset15_INTERFACE_DEFINED__ +#define __Recordset15_INTERFACE_DEFINED__ +/* interface Recordset15 */ +/* [object][helpcontext][uuid][nonextensible][hidden][dual] */ +EXTERN_C const IID IID_Recordset15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000150E-0000-0010-8000-00AA006D2EA4") + Recordset15 : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_AbsolutePosition( + /* [retval][out] */ __RPC__out PositionEnum *pl) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_AbsolutePosition( + /* [in] */ PositionEnum Position) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_ActiveConnection( + /* [in] */ __RPC__in_opt IDispatch *pconn) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_ActiveConnection( + /* [in] */ VARIANT vConn) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_BOF( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Bookmark( + /* [retval][out] */ __RPC__out VARIANT *pvBookmark) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Bookmark( + /* [in] */ VARIANT vBookmark) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CacheSize( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CacheSize( + /* [in] */ long CacheSize) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CursorType( + /* [retval][out] */ __RPC__out CursorTypeEnum *plCursorType) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CursorType( + /* [in] */ CursorTypeEnum lCursorType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_EOF( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Fields( + /* [retval][out] */ __RPC__deref_out_opt ADOFields **ppvObject) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_LockType( + /* [retval][out] */ __RPC__out LockTypeEnum *plLockType) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_LockType( + /* [in] */ LockTypeEnum lLockType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_MaxRecords( + /* [retval][out] */ __RPC__out long *plMaxRecords) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_MaxRecords( + /* [in] */ long lMaxRecords) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_RecordCount( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Source( + /* [in] */ __RPC__in_opt IDispatch *pcmd) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Source( + /* [in] */ __RPC__in BSTR bstrConn) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Source( + /* [retval][out] */ __RPC__out VARIANT *pvSource) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE AddNew( + /* [optional][in] */ VARIANT FieldList, + /* [optional][in] */ VARIANT Values) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CancelUpdate( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Delete( + /* [defaultvalue][in] */ AffectEnum AffectRecords = adAffectCurrent) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetRows( + /* [defaultvalue][in] */ long Rows, + /* [optional][in] */ VARIANT Start, + /* [optional][in] */ VARIANT Fields, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Move( + /* [in] */ long NumRecords, + /* [optional][in] */ VARIANT Start) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MoveNext( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MovePrevious( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MoveFirst( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MoveLast( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Open( + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ CursorTypeEnum CursorType = adOpenUnspecified, + /* [defaultvalue][in] */ LockTypeEnum LockType = adLockUnspecified, + /* [defaultvalue][in] */ LONG Options = adCmdUnspecified) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Requery( + /* [defaultvalue][in] */ LONG Options = adOptionUnspecified) = 0; + + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE _xResync( + /* [defaultvalue][in] */ AffectEnum AffectRecords = adAffectAll) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Update( + /* [optional][in] */ VARIANT Fields, + /* [optional][in] */ VARIANT Values) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_AbsolutePage( + /* [retval][out] */ __RPC__out PositionEnum *pl) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_AbsolutePage( + /* [in] */ PositionEnum Page) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_EditMode( + /* [retval][out] */ __RPC__out EditModeEnum *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Filter( + /* [retval][out] */ __RPC__out VARIANT *Criteria) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Filter( + /* [in] */ VARIANT Criteria) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_PageCount( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_PageSize( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_PageSize( + /* [in] */ long PageSize) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Sort( + /* [retval][out] */ __RPC__deref_out_opt BSTR *Criteria) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Sort( + /* [in] */ __RPC__in BSTR Criteria) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out LONG *plObjState) = 0; + + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE _xClone( + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE UpdateBatch( + /* [defaultvalue][in] */ AffectEnum AffectRecords = adAffectAll) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CancelBatch( + /* [defaultvalue][in] */ AffectEnum AffectRecords = adAffectAll) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CursorLocation( + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CursorLocation( + /* [in] */ CursorLocationEnum lCursorLoc) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE NextRecordset( + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppiRs) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Supports( + /* [in] */ CursorOptionEnum CursorOptions, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb) = 0; + + virtual /* [hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_Collect( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [hidden][id][propput] */ HRESULT STDMETHODCALLTYPE put_Collect( + /* [in] */ VARIANT Index, + /* [in] */ VARIANT value) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_MarshalOptions( + /* [retval][out] */ __RPC__out MarshalOptionsEnum *peMarshal) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_MarshalOptions( + /* [in] */ MarshalOptionsEnum eMarshal) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Find( + /* [in] */ __RPC__in BSTR Criteria, + /* [defaultvalue][in] */ long SkipRecords, + /* [defaultvalue][in] */ SearchDirectionEnum SearchDirection, + /* [optional][in] */ VARIANT Start) = 0; + + }; + + +#else /* C style interface */ + typedef struct Recordset15Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Recordset15 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Recordset15 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Recordset15 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Recordset15 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Recordset15 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, get_AbsolutePosition) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePosition )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out PositionEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_AbsolutePosition) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePosition )( + __RPC__in Recordset15 * This, + /* [in] */ PositionEnum Position); + + DECLSPEC_XFGVIRT(Recordset15, putref_ActiveConnection) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + DECLSPEC_XFGVIRT(Recordset15, put_ActiveConnection) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in Recordset15 * This, + /* [in] */ VARIANT vConn); + + DECLSPEC_XFGVIRT(Recordset15, get_ActiveConnection) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, get_BOF) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BOF )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Bookmark) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Bookmark )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvBookmark); + + DECLSPEC_XFGVIRT(Recordset15, put_Bookmark) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Bookmark )( + __RPC__in Recordset15 * This, + /* [in] */ VARIANT vBookmark); + + DECLSPEC_XFGVIRT(Recordset15, get_CacheSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CacheSize )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_CacheSize) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CacheSize )( + __RPC__in Recordset15 * This, + /* [in] */ long CacheSize); + + DECLSPEC_XFGVIRT(Recordset15, get_CursorType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorType )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out CursorTypeEnum *plCursorType); + + DECLSPEC_XFGVIRT(Recordset15, put_CursorType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorType )( + __RPC__in Recordset15 * This, + /* [in] */ CursorTypeEnum lCursorType); + + DECLSPEC_XFGVIRT(Recordset15, get_EOF) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EOF )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Fields) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOFields **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, get_LockType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LockType )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out LockTypeEnum *plLockType); + + DECLSPEC_XFGVIRT(Recordset15, put_LockType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LockType )( + __RPC__in Recordset15 * This, + /* [in] */ LockTypeEnum lLockType); + + DECLSPEC_XFGVIRT(Recordset15, get_MaxRecords) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaxRecords )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out long *plMaxRecords); + + DECLSPEC_XFGVIRT(Recordset15, put_MaxRecords) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaxRecords )( + __RPC__in Recordset15 * This, + /* [in] */ long lMaxRecords); + + DECLSPEC_XFGVIRT(Recordset15, get_RecordCount) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecordCount )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, putref_Source) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in_opt IDispatch *pcmd); + + DECLSPEC_XFGVIRT(Recordset15, put_Source) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in BSTR bstrConn); + + DECLSPEC_XFGVIRT(Recordset15, get_Source) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvSource); + + DECLSPEC_XFGVIRT(Recordset15, AddNew) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AddNew )( + __RPC__in Recordset15 * This, + /* [optional][in] */ VARIANT FieldList, + /* [optional][in] */ VARIANT Values); + + DECLSPEC_XFGVIRT(Recordset15, CancelUpdate) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelUpdate )( + __RPC__in Recordset15 * This); + + DECLSPEC_XFGVIRT(Recordset15, Close) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in Recordset15 * This); + + DECLSPEC_XFGVIRT(Recordset15, Delete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, GetRows) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetRows )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ long Rows, + /* [optional][in] */ VARIANT Start, + /* [optional][in] */ VARIANT Fields, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, Move) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Move )( + __RPC__in Recordset15 * This, + /* [in] */ long NumRecords, + /* [optional][in] */ VARIANT Start); + + DECLSPEC_XFGVIRT(Recordset15, MoveNext) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in Recordset15 * This); + + DECLSPEC_XFGVIRT(Recordset15, MovePrevious) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MovePrevious )( + __RPC__in Recordset15 * This); + + DECLSPEC_XFGVIRT(Recordset15, MoveFirst) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveFirst )( + __RPC__in Recordset15 * This); + + DECLSPEC_XFGVIRT(Recordset15, MoveLast) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveLast )( + __RPC__in Recordset15 * This); + + DECLSPEC_XFGVIRT(Recordset15, Open) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in Recordset15 * This, + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ CursorTypeEnum CursorType, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [defaultvalue][in] */ LONG Options); + + DECLSPEC_XFGVIRT(Recordset15, Requery) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Requery )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ LONG Options); + + DECLSPEC_XFGVIRT(Recordset15, _xResync) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xResync )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, Update) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in Recordset15 * This, + /* [optional][in] */ VARIANT Fields, + /* [optional][in] */ VARIANT Values); + + DECLSPEC_XFGVIRT(Recordset15, get_AbsolutePage) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePage )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out PositionEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_AbsolutePage) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePage )( + __RPC__in Recordset15 * This, + /* [in] */ PositionEnum Page); + + DECLSPEC_XFGVIRT(Recordset15, get_EditMode) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EditMode )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out EditModeEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_Filter) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT *Criteria); + + DECLSPEC_XFGVIRT(Recordset15, put_Filter) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( + __RPC__in Recordset15 * This, + /* [in] */ VARIANT Criteria); + + DECLSPEC_XFGVIRT(Recordset15, get_PageCount) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageCount )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_PageSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageSize )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_PageSize) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_PageSize )( + __RPC__in Recordset15 * This, + /* [in] */ long PageSize); + + DECLSPEC_XFGVIRT(Recordset15, get_Sort) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Sort )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Criteria); + + DECLSPEC_XFGVIRT(Recordset15, put_Sort) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Sort )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in BSTR Criteria); + + DECLSPEC_XFGVIRT(Recordset15, get_Status) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_State) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + DECLSPEC_XFGVIRT(Recordset15, _xClone) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xClone )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, UpdateBatch) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateBatch )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, CancelBatch) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelBatch )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, get_CursorLocation) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + DECLSPEC_XFGVIRT(Recordset15, put_CursorLocation) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in Recordset15 * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + DECLSPEC_XFGVIRT(Recordset15, NextRecordset) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *NextADORecordset )( + __RPC__in Recordset15 * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppiRs); + + DECLSPEC_XFGVIRT(Recordset15, Supports) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Supports )( + __RPC__in Recordset15 * This, + /* [in] */ CursorOptionEnum CursorOptions, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Collect) + /* [hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Collect )( + __RPC__in Recordset15 * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, put_Collect) + /* [hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Collect )( + __RPC__in Recordset15 * This, + /* [in] */ VARIANT Index, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(Recordset15, get_MarshalOptions) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MarshalOptions )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out MarshalOptionsEnum *peMarshal); + + DECLSPEC_XFGVIRT(Recordset15, put_MarshalOptions) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MarshalOptions )( + __RPC__in Recordset15 * This, + /* [in] */ MarshalOptionsEnum eMarshal); + + DECLSPEC_XFGVIRT(Recordset15, Find) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Find )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in BSTR Criteria, + /* [defaultvalue][in] */ long SkipRecords, + /* [defaultvalue][in] */ SearchDirectionEnum SearchDirection, + /* [optional][in] */ VARIANT Start); + + END_INTERFACE + } Recordset15Vtbl; + interface Recordset15 + { + CONST_VTBL struct Recordset15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Recordset15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Recordset15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Recordset15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Recordset15_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Recordset15_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Recordset15_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Recordset15_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Recordset15_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Recordset15_get_AbsolutePosition(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePosition(This,pl) ) +#define Recordset15_put_AbsolutePosition(This,Position) \ + ( (This)->lpVtbl -> put_AbsolutePosition(This,Position) ) +#define Recordset15_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) +#define Recordset15_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define Recordset15_get_ActiveConnection(This,pvar) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pvar) ) +#define Recordset15_get_BOF(This,pb) \ + ( (This)->lpVtbl -> get_BOF(This,pb) ) +#define Recordset15_get_Bookmark(This,pvBookmark) \ + ( (This)->lpVtbl -> get_Bookmark(This,pvBookmark) ) +#define Recordset15_put_Bookmark(This,vBookmark) \ + ( (This)->lpVtbl -> put_Bookmark(This,vBookmark) ) +#define Recordset15_get_CacheSize(This,pl) \ + ( (This)->lpVtbl -> get_CacheSize(This,pl) ) +#define Recordset15_put_CacheSize(This,CacheSize) \ + ( (This)->lpVtbl -> put_CacheSize(This,CacheSize) ) +#define Recordset15_get_CursorType(This,plCursorType) \ + ( (This)->lpVtbl -> get_CursorType(This,plCursorType) ) +#define Recordset15_put_CursorType(This,lCursorType) \ + ( (This)->lpVtbl -> put_CursorType(This,lCursorType) ) +#define Recordset15_get_EOF(This,pb) \ + ( (This)->lpVtbl -> get_EOF(This,pb) ) +#define Recordset15_get_Fields(This,ppvObject) \ + ( (This)->lpVtbl -> get_Fields(This,ppvObject) ) +#define Recordset15_get_LockType(This,plLockType) \ + ( (This)->lpVtbl -> get_LockType(This,plLockType) ) +#define Recordset15_put_LockType(This,lLockType) \ + ( (This)->lpVtbl -> put_LockType(This,lLockType) ) +#define Recordset15_get_MaxRecords(This,plMaxRecords) \ + ( (This)->lpVtbl -> get_MaxRecords(This,plMaxRecords) ) +#define Recordset15_put_MaxRecords(This,lMaxRecords) \ + ( (This)->lpVtbl -> put_MaxRecords(This,lMaxRecords) ) +#define Recordset15_get_RecordCount(This,pl) \ + ( (This)->lpVtbl -> get_RecordCount(This,pl) ) +#define Recordset15_putref_Source(This,pcmd) \ + ( (This)->lpVtbl -> putref_Source(This,pcmd) ) +#define Recordset15_put_Source(This,bstrConn) \ + ( (This)->lpVtbl -> put_Source(This,bstrConn) ) +#define Recordset15_get_Source(This,pvSource) \ + ( (This)->lpVtbl -> get_Source(This,pvSource) ) +#define Recordset15_AddNew(This,FieldList,Values) \ + ( (This)->lpVtbl -> AddNew(This,FieldList,Values) ) +#define Recordset15_CancelUpdate(This) \ + ( (This)->lpVtbl -> CancelUpdate(This) ) +#define Recordset15_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define Recordset15_Delete(This,AffectRecords) \ + ( (This)->lpVtbl -> Delete(This,AffectRecords) ) +#define Recordset15_GetRows(This,Rows,Start,Fields,pvar) \ + ( (This)->lpVtbl -> GetRows(This,Rows,Start,Fields,pvar) ) +#define Recordset15_Move(This,NumRecords,Start) \ + ( (This)->lpVtbl -> Move(This,NumRecords,Start) ) +#define Recordset15_MoveNext(This) \ + ( (This)->lpVtbl -> MoveNext(This) ) +#define Recordset15_MovePrevious(This) \ + ( (This)->lpVtbl -> MovePrevious(This) ) +#define Recordset15_MoveFirst(This) \ + ( (This)->lpVtbl -> MoveFirst(This) ) +#define Recordset15_MoveLast(This) \ + ( (This)->lpVtbl -> MoveLast(This) ) +#define Recordset15_Open(This,Source,ActiveConnection,CursorType,LockType,Options) \ + ( (This)->lpVtbl -> Open(This,Source,ActiveConnection,CursorType,LockType,Options) ) +#define Recordset15_Requery(This,Options) \ + ( (This)->lpVtbl -> Requery(This,Options) ) +#define Recordset15__xResync(This,AffectRecords) \ + ( (This)->lpVtbl -> _xResync(This,AffectRecords) ) +#define Recordset15_Update(This,Fields,Values) \ + ( (This)->lpVtbl -> Update(This,Fields,Values) ) +#define Recordset15_get_AbsolutePage(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePage(This,pl) ) +#define Recordset15_put_AbsolutePage(This,Page) \ + ( (This)->lpVtbl -> put_AbsolutePage(This,Page) ) +#define Recordset15_get_EditMode(This,pl) \ + ( (This)->lpVtbl -> get_EditMode(This,pl) ) +#define Recordset15_get_Filter(This,Criteria) \ + ( (This)->lpVtbl -> get_Filter(This,Criteria) ) +#define Recordset15_put_Filter(This,Criteria) \ + ( (This)->lpVtbl -> put_Filter(This,Criteria) ) +#define Recordset15_get_PageCount(This,pl) \ + ( (This)->lpVtbl -> get_PageCount(This,pl) ) +#define Recordset15_get_PageSize(This,pl) \ + ( (This)->lpVtbl -> get_PageSize(This,pl) ) +#define Recordset15_put_PageSize(This,PageSize) \ + ( (This)->lpVtbl -> put_PageSize(This,PageSize) ) +#define Recordset15_get_Sort(This,Criteria) \ + ( (This)->lpVtbl -> get_Sort(This,Criteria) ) +#define Recordset15_put_Sort(This,Criteria) \ + ( (This)->lpVtbl -> put_Sort(This,Criteria) ) +#define Recordset15_get_Status(This,pl) \ + ( (This)->lpVtbl -> get_Status(This,pl) ) +#define Recordset15_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define Recordset15__xClone(This,ppvObject) \ + ( (This)->lpVtbl -> _xClone(This,ppvObject) ) +#define Recordset15_UpdateBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> UpdateBatch(This,AffectRecords) ) +#define Recordset15_CancelBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> CancelBatch(This,AffectRecords) ) +#define Recordset15_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define Recordset15_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define Recordset15_NextRecordset(This,RecordsAffected,ppiRs) \ + ( (This)->lpVtbl -> NextRecordset(This,RecordsAffected,ppiRs) ) +#define Recordset15_Supports(This,CursorOptions,pb) \ + ( (This)->lpVtbl -> Supports(This,CursorOptions,pb) ) +#define Recordset15_get_Collect(This,Index,pvar) \ + ( (This)->lpVtbl -> get_Collect(This,Index,pvar) ) +#define Recordset15_put_Collect(This,Index,value) \ + ( (This)->lpVtbl -> put_Collect(This,Index,value) ) +#define Recordset15_get_MarshalOptions(This,peMarshal) \ + ( (This)->lpVtbl -> get_MarshalOptions(This,peMarshal) ) +#define Recordset15_put_MarshalOptions(This,eMarshal) \ + ( (This)->lpVtbl -> put_MarshalOptions(This,eMarshal) ) +#define Recordset15_Find(This,Criteria,SkipRecords,SearchDirection,Start) \ + ( (This)->lpVtbl -> Find(This,Criteria,SkipRecords,SearchDirection,Start) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Recordset15_INTERFACE_DEFINED__ */ +#ifndef __Recordset20_INTERFACE_DEFINED__ +#define __Recordset20_INTERFACE_DEFINED__ +/* interface Recordset20 */ +/* [object][helpcontext][uuid][nonextensible][hidden][dual] */ +EXTERN_C const IID IID_Recordset20; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000154F-0000-0010-8000-00AA006D2EA4") + Recordset20 : public Recordset15 + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_DataSource( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppunkDataSource) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_DataSource( + /* [in] */ __RPC__in_opt IUnknown *punkDataSource) = 0; + + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE _xSave( + /* [defaultvalue][in] */ __RPC__in BSTR FileName = (BSTR)NULL, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat = adPersistADTG) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActiveCommand( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCmd) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_StayInSync( + /* [in] */ VARIANT_BOOL bStayInSync) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_StayInSync( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbStayInSync) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetString( + /* [defaultvalue][in] */ StringFormatEnum StringFormat, + /* [defaultvalue][in] */ long NumRows, + /* [defaultvalue][in] */ __RPC__in BSTR ColumnDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR RowDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR NullExpr, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pRetString) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_DataMember( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDataMember) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_DataMember( + /* [in] */ __RPC__in BSTR bstrDataMember) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CompareBookmarks( + /* [in] */ VARIANT Bookmark1, + /* [in] */ VARIANT Bookmark2, + /* [retval][out] */ __RPC__out CompareEnum *pCompare) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Clone( + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Resync( + /* [defaultvalue][in] */ AffectEnum AffectRecords = adAffectAll, + /* [defaultvalue][in] */ ResyncEnum ResyncValues = adResyncAllValues) = 0; + + }; + + +#else /* C style interface */ + typedef struct Recordset20Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Recordset20 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Recordset20 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Recordset20 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Recordset20 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Recordset20 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, get_AbsolutePosition) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePosition )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out PositionEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_AbsolutePosition) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePosition )( + __RPC__in Recordset20 * This, + /* [in] */ PositionEnum Position); + + DECLSPEC_XFGVIRT(Recordset15, putref_ActiveConnection) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + DECLSPEC_XFGVIRT(Recordset15, put_ActiveConnection) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT vConn); + + DECLSPEC_XFGVIRT(Recordset15, get_ActiveConnection) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, get_BOF) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BOF )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Bookmark) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Bookmark )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvBookmark); + + DECLSPEC_XFGVIRT(Recordset15, put_Bookmark) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Bookmark )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT vBookmark); + + DECLSPEC_XFGVIRT(Recordset15, get_CacheSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CacheSize )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_CacheSize) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CacheSize )( + __RPC__in Recordset20 * This, + /* [in] */ long CacheSize); + + DECLSPEC_XFGVIRT(Recordset15, get_CursorType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorType )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out CursorTypeEnum *plCursorType); + + DECLSPEC_XFGVIRT(Recordset15, put_CursorType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorType )( + __RPC__in Recordset20 * This, + /* [in] */ CursorTypeEnum lCursorType); + + DECLSPEC_XFGVIRT(Recordset15, get_EOF) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EOF )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Fields) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOFields **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, get_LockType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LockType )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out LockTypeEnum *plLockType); + + DECLSPEC_XFGVIRT(Recordset15, put_LockType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LockType )( + __RPC__in Recordset20 * This, + /* [in] */ LockTypeEnum lLockType); + + DECLSPEC_XFGVIRT(Recordset15, get_MaxRecords) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaxRecords )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out long *plMaxRecords); + + DECLSPEC_XFGVIRT(Recordset15, put_MaxRecords) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaxRecords )( + __RPC__in Recordset20 * This, + /* [in] */ long lMaxRecords); + + DECLSPEC_XFGVIRT(Recordset15, get_RecordCount) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecordCount )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, putref_Source) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in_opt IDispatch *pcmd); + + DECLSPEC_XFGVIRT(Recordset15, put_Source) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in BSTR bstrConn); + + DECLSPEC_XFGVIRT(Recordset15, get_Source) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvSource); + + DECLSPEC_XFGVIRT(Recordset15, AddNew) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AddNew )( + __RPC__in Recordset20 * This, + /* [optional][in] */ VARIANT FieldList, + /* [optional][in] */ VARIANT Values); + + DECLSPEC_XFGVIRT(Recordset15, CancelUpdate) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelUpdate )( + __RPC__in Recordset20 * This); + + DECLSPEC_XFGVIRT(Recordset15, Close) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in Recordset20 * This); + + DECLSPEC_XFGVIRT(Recordset15, Delete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, GetRows) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetRows )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ long Rows, + /* [optional][in] */ VARIANT Start, + /* [optional][in] */ VARIANT Fields, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, Move) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Move )( + __RPC__in Recordset20 * This, + /* [in] */ long NumRecords, + /* [optional][in] */ VARIANT Start); + + DECLSPEC_XFGVIRT(Recordset15, MoveNext) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in Recordset20 * This); + + DECLSPEC_XFGVIRT(Recordset15, MovePrevious) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MovePrevious )( + __RPC__in Recordset20 * This); + + DECLSPEC_XFGVIRT(Recordset15, MoveFirst) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveFirst )( + __RPC__in Recordset20 * This); + + DECLSPEC_XFGVIRT(Recordset15, MoveLast) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveLast )( + __RPC__in Recordset20 * This); + + DECLSPEC_XFGVIRT(Recordset15, Open) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in Recordset20 * This, + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ CursorTypeEnum CursorType, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [defaultvalue][in] */ LONG Options); + + DECLSPEC_XFGVIRT(Recordset15, Requery) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Requery )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ LONG Options); + + DECLSPEC_XFGVIRT(Recordset15, _xResync) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xResync )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, Update) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in Recordset20 * This, + /* [optional][in] */ VARIANT Fields, + /* [optional][in] */ VARIANT Values); + + DECLSPEC_XFGVIRT(Recordset15, get_AbsolutePage) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePage )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out PositionEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_AbsolutePage) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePage )( + __RPC__in Recordset20 * This, + /* [in] */ PositionEnum Page); + + DECLSPEC_XFGVIRT(Recordset15, get_EditMode) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EditMode )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out EditModeEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_Filter) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT *Criteria); + + DECLSPEC_XFGVIRT(Recordset15, put_Filter) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT Criteria); + + DECLSPEC_XFGVIRT(Recordset15, get_PageCount) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageCount )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_PageSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageSize )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_PageSize) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_PageSize )( + __RPC__in Recordset20 * This, + /* [in] */ long PageSize); + + DECLSPEC_XFGVIRT(Recordset15, get_Sort) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Sort )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Criteria); + + DECLSPEC_XFGVIRT(Recordset15, put_Sort) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Sort )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in BSTR Criteria); + + DECLSPEC_XFGVIRT(Recordset15, get_Status) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_State) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + DECLSPEC_XFGVIRT(Recordset15, _xClone) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xClone )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, UpdateBatch) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateBatch )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, CancelBatch) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelBatch )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, get_CursorLocation) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + DECLSPEC_XFGVIRT(Recordset15, put_CursorLocation) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in Recordset20 * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + DECLSPEC_XFGVIRT(Recordset15, NextRecordset) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *NextADORecordset )( + __RPC__in Recordset20 * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppiRs); + + DECLSPEC_XFGVIRT(Recordset15, Supports) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Supports )( + __RPC__in Recordset20 * This, + /* [in] */ CursorOptionEnum CursorOptions, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Collect) + /* [hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Collect )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, put_Collect) + /* [hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Collect )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT Index, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(Recordset15, get_MarshalOptions) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MarshalOptions )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out MarshalOptionsEnum *peMarshal); + + DECLSPEC_XFGVIRT(Recordset15, put_MarshalOptions) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MarshalOptions )( + __RPC__in Recordset20 * This, + /* [in] */ MarshalOptionsEnum eMarshal); + + DECLSPEC_XFGVIRT(Recordset15, Find) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Find )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in BSTR Criteria, + /* [defaultvalue][in] */ long SkipRecords, + /* [defaultvalue][in] */ SearchDirectionEnum SearchDirection, + /* [optional][in] */ VARIANT Start); + + DECLSPEC_XFGVIRT(Recordset20, Cancel) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in Recordset20 * This); + + DECLSPEC_XFGVIRT(Recordset20, get_DataSource) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSource )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppunkDataSource); + + DECLSPEC_XFGVIRT(Recordset20, putref_DataSource) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DataSource )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in_opt IUnknown *punkDataSource); + + DECLSPEC_XFGVIRT(Recordset20, _xSave) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xSave )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ __RPC__in BSTR FileName, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat); + + DECLSPEC_XFGVIRT(Recordset20, get_ActiveCommand) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveCommand )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCmd); + + DECLSPEC_XFGVIRT(Recordset20, put_StayInSync) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_StayInSync )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT_BOOL bStayInSync); + + DECLSPEC_XFGVIRT(Recordset20, get_StayInSync) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_StayInSync )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbStayInSync); + + DECLSPEC_XFGVIRT(Recordset20, GetString) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetString )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ StringFormatEnum StringFormat, + /* [defaultvalue][in] */ long NumRows, + /* [defaultvalue][in] */ __RPC__in BSTR ColumnDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR RowDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR NullExpr, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pRetString); + + DECLSPEC_XFGVIRT(Recordset20, get_DataMember) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataMember )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDataMember); + + DECLSPEC_XFGVIRT(Recordset20, put_DataMember) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataMember )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in BSTR bstrDataMember); + + DECLSPEC_XFGVIRT(Recordset20, CompareBookmarks) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CompareBookmarks )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT Bookmark1, + /* [in] */ VARIANT Bookmark2, + /* [retval][out] */ __RPC__out CompareEnum *pCompare); + + DECLSPEC_XFGVIRT(Recordset20, Clone) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject); + + DECLSPEC_XFGVIRT(Recordset20, Resync) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Resync )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords, + /* [defaultvalue][in] */ ResyncEnum ResyncValues); + + END_INTERFACE + } Recordset20Vtbl; + interface Recordset20 + { + CONST_VTBL struct Recordset20Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Recordset20_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Recordset20_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Recordset20_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Recordset20_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Recordset20_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Recordset20_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Recordset20_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Recordset20_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Recordset20_get_AbsolutePosition(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePosition(This,pl) ) +#define Recordset20_put_AbsolutePosition(This,Position) \ + ( (This)->lpVtbl -> put_AbsolutePosition(This,Position) ) +#define Recordset20_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) +#define Recordset20_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define Recordset20_get_ActiveConnection(This,pvar) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pvar) ) +#define Recordset20_get_BOF(This,pb) \ + ( (This)->lpVtbl -> get_BOF(This,pb) ) +#define Recordset20_get_Bookmark(This,pvBookmark) \ + ( (This)->lpVtbl -> get_Bookmark(This,pvBookmark) ) +#define Recordset20_put_Bookmark(This,vBookmark) \ + ( (This)->lpVtbl -> put_Bookmark(This,vBookmark) ) +#define Recordset20_get_CacheSize(This,pl) \ + ( (This)->lpVtbl -> get_CacheSize(This,pl) ) +#define Recordset20_put_CacheSize(This,CacheSize) \ + ( (This)->lpVtbl -> put_CacheSize(This,CacheSize) ) +#define Recordset20_get_CursorType(This,plCursorType) \ + ( (This)->lpVtbl -> get_CursorType(This,plCursorType) ) +#define Recordset20_put_CursorType(This,lCursorType) \ + ( (This)->lpVtbl -> put_CursorType(This,lCursorType) ) +#define Recordset20_get_EOF(This,pb) \ + ( (This)->lpVtbl -> get_EOF(This,pb) ) +#define Recordset20_get_Fields(This,ppvObject) \ + ( (This)->lpVtbl -> get_Fields(This,ppvObject) ) +#define Recordset20_get_LockType(This,plLockType) \ + ( (This)->lpVtbl -> get_LockType(This,plLockType) ) +#define Recordset20_put_LockType(This,lLockType) \ + ( (This)->lpVtbl -> put_LockType(This,lLockType) ) +#define Recordset20_get_MaxRecords(This,plMaxRecords) \ + ( (This)->lpVtbl -> get_MaxRecords(This,plMaxRecords) ) +#define Recordset20_put_MaxRecords(This,lMaxRecords) \ + ( (This)->lpVtbl -> put_MaxRecords(This,lMaxRecords) ) +#define Recordset20_get_RecordCount(This,pl) \ + ( (This)->lpVtbl -> get_RecordCount(This,pl) ) +#define Recordset20_putref_Source(This,pcmd) \ + ( (This)->lpVtbl -> putref_Source(This,pcmd) ) +#define Recordset20_put_Source(This,bstrConn) \ + ( (This)->lpVtbl -> put_Source(This,bstrConn) ) +#define Recordset20_get_Source(This,pvSource) \ + ( (This)->lpVtbl -> get_Source(This,pvSource) ) +#define Recordset20_AddNew(This,FieldList,Values) \ + ( (This)->lpVtbl -> AddNew(This,FieldList,Values) ) +#define Recordset20_CancelUpdate(This) \ + ( (This)->lpVtbl -> CancelUpdate(This) ) +#define Recordset20_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define Recordset20_Delete(This,AffectRecords) \ + ( (This)->lpVtbl -> Delete(This,AffectRecords) ) +#define Recordset20_GetRows(This,Rows,Start,Fields,pvar) \ + ( (This)->lpVtbl -> GetRows(This,Rows,Start,Fields,pvar) ) +#define Recordset20_Move(This,NumRecords,Start) \ + ( (This)->lpVtbl -> Move(This,NumRecords,Start) ) +#define Recordset20_MoveNext(This) \ + ( (This)->lpVtbl -> MoveNext(This) ) +#define Recordset20_MovePrevious(This) \ + ( (This)->lpVtbl -> MovePrevious(This) ) +#define Recordset20_MoveFirst(This) \ + ( (This)->lpVtbl -> MoveFirst(This) ) +#define Recordset20_MoveLast(This) \ + ( (This)->lpVtbl -> MoveLast(This) ) +#define Recordset20_Open(This,Source,ActiveConnection,CursorType,LockType,Options) \ + ( (This)->lpVtbl -> Open(This,Source,ActiveConnection,CursorType,LockType,Options) ) +#define Recordset20_Requery(This,Options) \ + ( (This)->lpVtbl -> Requery(This,Options) ) +#define Recordset20__xResync(This,AffectRecords) \ + ( (This)->lpVtbl -> _xResync(This,AffectRecords) ) +#define Recordset20_Update(This,Fields,Values) \ + ( (This)->lpVtbl -> Update(This,Fields,Values) ) +#define Recordset20_get_AbsolutePage(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePage(This,pl) ) +#define Recordset20_put_AbsolutePage(This,Page) \ + ( (This)->lpVtbl -> put_AbsolutePage(This,Page) ) +#define Recordset20_get_EditMode(This,pl) \ + ( (This)->lpVtbl -> get_EditMode(This,pl) ) +#define Recordset20_get_Filter(This,Criteria) \ + ( (This)->lpVtbl -> get_Filter(This,Criteria) ) +#define Recordset20_put_Filter(This,Criteria) \ + ( (This)->lpVtbl -> put_Filter(This,Criteria) ) +#define Recordset20_get_PageCount(This,pl) \ + ( (This)->lpVtbl -> get_PageCount(This,pl) ) +#define Recordset20_get_PageSize(This,pl) \ + ( (This)->lpVtbl -> get_PageSize(This,pl) ) +#define Recordset20_put_PageSize(This,PageSize) \ + ( (This)->lpVtbl -> put_PageSize(This,PageSize) ) +#define Recordset20_get_Sort(This,Criteria) \ + ( (This)->lpVtbl -> get_Sort(This,Criteria) ) +#define Recordset20_put_Sort(This,Criteria) \ + ( (This)->lpVtbl -> put_Sort(This,Criteria) ) +#define Recordset20_get_Status(This,pl) \ + ( (This)->lpVtbl -> get_Status(This,pl) ) +#define Recordset20_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define Recordset20__xClone(This,ppvObject) \ + ( (This)->lpVtbl -> _xClone(This,ppvObject) ) +#define Recordset20_UpdateBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> UpdateBatch(This,AffectRecords) ) +#define Recordset20_CancelBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> CancelBatch(This,AffectRecords) ) +#define Recordset20_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define Recordset20_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define Recordset20_NextRecordset(This,RecordsAffected,ppiRs) \ + ( (This)->lpVtbl -> NextRecordset(This,RecordsAffected,ppiRs) ) +#define Recordset20_Supports(This,CursorOptions,pb) \ + ( (This)->lpVtbl -> Supports(This,CursorOptions,pb) ) +#define Recordset20_get_Collect(This,Index,pvar) \ + ( (This)->lpVtbl -> get_Collect(This,Index,pvar) ) +#define Recordset20_put_Collect(This,Index,value) \ + ( (This)->lpVtbl -> put_Collect(This,Index,value) ) +#define Recordset20_get_MarshalOptions(This,peMarshal) \ + ( (This)->lpVtbl -> get_MarshalOptions(This,peMarshal) ) +#define Recordset20_put_MarshalOptions(This,eMarshal) \ + ( (This)->lpVtbl -> put_MarshalOptions(This,eMarshal) ) +#define Recordset20_Find(This,Criteria,SkipRecords,SearchDirection,Start) \ + ( (This)->lpVtbl -> Find(This,Criteria,SkipRecords,SearchDirection,Start) ) +#define Recordset20_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#define Recordset20_get_DataSource(This,ppunkDataSource) \ + ( (This)->lpVtbl -> get_DataSource(This,ppunkDataSource) ) +#define Recordset20_putref_DataSource(This,punkDataSource) \ + ( (This)->lpVtbl -> putref_DataSource(This,punkDataSource) ) +#define Recordset20__xSave(This,FileName,PersistFormat) \ + ( (This)->lpVtbl -> _xSave(This,FileName,PersistFormat) ) +#define Recordset20_get_ActiveCommand(This,ppCmd) \ + ( (This)->lpVtbl -> get_ActiveCommand(This,ppCmd) ) +#define Recordset20_put_StayInSync(This,bStayInSync) \ + ( (This)->lpVtbl -> put_StayInSync(This,bStayInSync) ) +#define Recordset20_get_StayInSync(This,pbStayInSync) \ + ( (This)->lpVtbl -> get_StayInSync(This,pbStayInSync) ) +#define Recordset20_GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) \ + ( (This)->lpVtbl -> GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) ) +#define Recordset20_get_DataMember(This,pbstrDataMember) \ + ( (This)->lpVtbl -> get_DataMember(This,pbstrDataMember) ) +#define Recordset20_put_DataMember(This,bstrDataMember) \ + ( (This)->lpVtbl -> put_DataMember(This,bstrDataMember) ) +#define Recordset20_CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) \ + ( (This)->lpVtbl -> CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) ) +#define Recordset20_Clone(This,LockType,ppvObject) \ + ( (This)->lpVtbl -> Clone(This,LockType,ppvObject) ) +#define Recordset20_Resync(This,AffectRecords,ResyncValues) \ + ( (This)->lpVtbl -> Resync(This,AffectRecords,ResyncValues) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Recordset20_INTERFACE_DEFINED__ */ +#ifndef __Recordset21_INTERFACE_DEFINED__ +#define __Recordset21_INTERFACE_DEFINED__ +/* interface Recordset21 */ +/* [object][helpcontext][uuid][nonextensible][hidden][dual] */ +EXTERN_C const IID IID_Recordset21; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001555-0000-0010-8000-00AA006D2EA4") + Recordset21 : public Recordset20 + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Seek( + /* [in] */ VARIANT KeyValues, + /* [defaultvalue][in] */ SeekEnum SeekOption = adSeekFirstEQ) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Index( + /* [in] */ __RPC__in BSTR Index) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Index( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrIndex) = 0; + + }; + + +#else /* C style interface */ + typedef struct Recordset21Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Recordset21 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Recordset21 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Recordset21 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Recordset21 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Recordset21 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, get_AbsolutePosition) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePosition )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out PositionEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_AbsolutePosition) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePosition )( + __RPC__in Recordset21 * This, + /* [in] */ PositionEnum Position); + + DECLSPEC_XFGVIRT(Recordset15, putref_ActiveConnection) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + DECLSPEC_XFGVIRT(Recordset15, put_ActiveConnection) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT vConn); + + DECLSPEC_XFGVIRT(Recordset15, get_ActiveConnection) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, get_BOF) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BOF )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Bookmark) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Bookmark )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT *pvBookmark); + + DECLSPEC_XFGVIRT(Recordset15, put_Bookmark) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Bookmark )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT vBookmark); + + DECLSPEC_XFGVIRT(Recordset15, get_CacheSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CacheSize )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_CacheSize) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CacheSize )( + __RPC__in Recordset21 * This, + /* [in] */ long CacheSize); + + DECLSPEC_XFGVIRT(Recordset15, get_CursorType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorType )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out CursorTypeEnum *plCursorType); + + DECLSPEC_XFGVIRT(Recordset15, put_CursorType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorType )( + __RPC__in Recordset21 * This, + /* [in] */ CursorTypeEnum lCursorType); + + DECLSPEC_XFGVIRT(Recordset15, get_EOF) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EOF )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Fields) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOFields **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, get_LockType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LockType )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out LockTypeEnum *plLockType); + + DECLSPEC_XFGVIRT(Recordset15, put_LockType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LockType )( + __RPC__in Recordset21 * This, + /* [in] */ LockTypeEnum lLockType); + + DECLSPEC_XFGVIRT(Recordset15, get_MaxRecords) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaxRecords )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out long *plMaxRecords); + + DECLSPEC_XFGVIRT(Recordset15, put_MaxRecords) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaxRecords )( + __RPC__in Recordset21 * This, + /* [in] */ long lMaxRecords); + + DECLSPEC_XFGVIRT(Recordset15, get_RecordCount) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecordCount )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, putref_Source) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in_opt IDispatch *pcmd); + + DECLSPEC_XFGVIRT(Recordset15, put_Source) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in BSTR bstrConn); + + DECLSPEC_XFGVIRT(Recordset15, get_Source) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT *pvSource); + + DECLSPEC_XFGVIRT(Recordset15, AddNew) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AddNew )( + __RPC__in Recordset21 * This, + /* [optional][in] */ VARIANT FieldList, + /* [optional][in] */ VARIANT Values); + + DECLSPEC_XFGVIRT(Recordset15, CancelUpdate) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelUpdate )( + __RPC__in Recordset21 * This); + + DECLSPEC_XFGVIRT(Recordset15, Close) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in Recordset21 * This); + + DECLSPEC_XFGVIRT(Recordset15, Delete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, GetRows) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetRows )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ long Rows, + /* [optional][in] */ VARIANT Start, + /* [optional][in] */ VARIANT Fields, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, Move) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Move )( + __RPC__in Recordset21 * This, + /* [in] */ long NumRecords, + /* [optional][in] */ VARIANT Start); + + DECLSPEC_XFGVIRT(Recordset15, MoveNext) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in Recordset21 * This); + + DECLSPEC_XFGVIRT(Recordset15, MovePrevious) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MovePrevious )( + __RPC__in Recordset21 * This); + + DECLSPEC_XFGVIRT(Recordset15, MoveFirst) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveFirst )( + __RPC__in Recordset21 * This); + + DECLSPEC_XFGVIRT(Recordset15, MoveLast) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveLast )( + __RPC__in Recordset21 * This); + + DECLSPEC_XFGVIRT(Recordset15, Open) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in Recordset21 * This, + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ CursorTypeEnum CursorType, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [defaultvalue][in] */ LONG Options); + + DECLSPEC_XFGVIRT(Recordset15, Requery) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Requery )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ LONG Options); + + DECLSPEC_XFGVIRT(Recordset15, _xResync) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xResync )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, Update) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in Recordset21 * This, + /* [optional][in] */ VARIANT Fields, + /* [optional][in] */ VARIANT Values); + + DECLSPEC_XFGVIRT(Recordset15, get_AbsolutePage) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePage )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out PositionEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_AbsolutePage) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePage )( + __RPC__in Recordset21 * This, + /* [in] */ PositionEnum Page); + + DECLSPEC_XFGVIRT(Recordset15, get_EditMode) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EditMode )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out EditModeEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_Filter) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT *Criteria); + + DECLSPEC_XFGVIRT(Recordset15, put_Filter) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT Criteria); + + DECLSPEC_XFGVIRT(Recordset15, get_PageCount) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageCount )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_PageSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageSize )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_PageSize) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_PageSize )( + __RPC__in Recordset21 * This, + /* [in] */ long PageSize); + + DECLSPEC_XFGVIRT(Recordset15, get_Sort) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Sort )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Criteria); + + DECLSPEC_XFGVIRT(Recordset15, put_Sort) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Sort )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in BSTR Criteria); + + DECLSPEC_XFGVIRT(Recordset15, get_Status) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_State) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + DECLSPEC_XFGVIRT(Recordset15, _xClone) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xClone )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, UpdateBatch) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateBatch )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, CancelBatch) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelBatch )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, get_CursorLocation) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + DECLSPEC_XFGVIRT(Recordset15, put_CursorLocation) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in Recordset21 * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + DECLSPEC_XFGVIRT(Recordset15, NextRecordset) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *NextADORecordset )( + __RPC__in Recordset21 * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppiRs); + + DECLSPEC_XFGVIRT(Recordset15, Supports) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Supports )( + __RPC__in Recordset21 * This, + /* [in] */ CursorOptionEnum CursorOptions, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Collect) + /* [hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Collect )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, put_Collect) + /* [hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Collect )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT Index, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(Recordset15, get_MarshalOptions) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MarshalOptions )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out MarshalOptionsEnum *peMarshal); + + DECLSPEC_XFGVIRT(Recordset15, put_MarshalOptions) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MarshalOptions )( + __RPC__in Recordset21 * This, + /* [in] */ MarshalOptionsEnum eMarshal); + + DECLSPEC_XFGVIRT(Recordset15, Find) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Find )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in BSTR Criteria, + /* [defaultvalue][in] */ long SkipRecords, + /* [defaultvalue][in] */ SearchDirectionEnum SearchDirection, + /* [optional][in] */ VARIANT Start); + + DECLSPEC_XFGVIRT(Recordset20, Cancel) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in Recordset21 * This); + + DECLSPEC_XFGVIRT(Recordset20, get_DataSource) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSource )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppunkDataSource); + + DECLSPEC_XFGVIRT(Recordset20, putref_DataSource) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DataSource )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in_opt IUnknown *punkDataSource); + + DECLSPEC_XFGVIRT(Recordset20, _xSave) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xSave )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ __RPC__in BSTR FileName, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat); + + DECLSPEC_XFGVIRT(Recordset20, get_ActiveCommand) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveCommand )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCmd); + + DECLSPEC_XFGVIRT(Recordset20, put_StayInSync) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_StayInSync )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT_BOOL bStayInSync); + + DECLSPEC_XFGVIRT(Recordset20, get_StayInSync) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_StayInSync )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbStayInSync); + + DECLSPEC_XFGVIRT(Recordset20, GetString) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetString )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ StringFormatEnum StringFormat, + /* [defaultvalue][in] */ long NumRows, + /* [defaultvalue][in] */ __RPC__in BSTR ColumnDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR RowDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR NullExpr, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pRetString); + + DECLSPEC_XFGVIRT(Recordset20, get_DataMember) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataMember )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDataMember); + + DECLSPEC_XFGVIRT(Recordset20, put_DataMember) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataMember )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in BSTR bstrDataMember); + + DECLSPEC_XFGVIRT(Recordset20, CompareBookmarks) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CompareBookmarks )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT Bookmark1, + /* [in] */ VARIANT Bookmark2, + /* [retval][out] */ __RPC__out CompareEnum *pCompare); + + DECLSPEC_XFGVIRT(Recordset20, Clone) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject); + + DECLSPEC_XFGVIRT(Recordset20, Resync) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Resync )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords, + /* [defaultvalue][in] */ ResyncEnum ResyncValues); + + DECLSPEC_XFGVIRT(Recordset21, Seek) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Seek )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT KeyValues, + /* [defaultvalue][in] */ SeekEnum SeekOption); + + DECLSPEC_XFGVIRT(Recordset21, put_Index) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Index )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in BSTR Index); + + DECLSPEC_XFGVIRT(Recordset21, get_Index) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Index )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrIndex); + + END_INTERFACE + } Recordset21Vtbl; + interface Recordset21 + { + CONST_VTBL struct Recordset21Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Recordset21_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Recordset21_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Recordset21_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Recordset21_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Recordset21_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Recordset21_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Recordset21_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Recordset21_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Recordset21_get_AbsolutePosition(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePosition(This,pl) ) +#define Recordset21_put_AbsolutePosition(This,Position) \ + ( (This)->lpVtbl -> put_AbsolutePosition(This,Position) ) +#define Recordset21_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) +#define Recordset21_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define Recordset21_get_ActiveConnection(This,pvar) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pvar) ) +#define Recordset21_get_BOF(This,pb) \ + ( (This)->lpVtbl -> get_BOF(This,pb) ) +#define Recordset21_get_Bookmark(This,pvBookmark) \ + ( (This)->lpVtbl -> get_Bookmark(This,pvBookmark) ) +#define Recordset21_put_Bookmark(This,vBookmark) \ + ( (This)->lpVtbl -> put_Bookmark(This,vBookmark) ) +#define Recordset21_get_CacheSize(This,pl) \ + ( (This)->lpVtbl -> get_CacheSize(This,pl) ) +#define Recordset21_put_CacheSize(This,CacheSize) \ + ( (This)->lpVtbl -> put_CacheSize(This,CacheSize) ) +#define Recordset21_get_CursorType(This,plCursorType) \ + ( (This)->lpVtbl -> get_CursorType(This,plCursorType) ) +#define Recordset21_put_CursorType(This,lCursorType) \ + ( (This)->lpVtbl -> put_CursorType(This,lCursorType) ) +#define Recordset21_get_EOF(This,pb) \ + ( (This)->lpVtbl -> get_EOF(This,pb) ) +#define Recordset21_get_Fields(This,ppvObject) \ + ( (This)->lpVtbl -> get_Fields(This,ppvObject) ) +#define Recordset21_get_LockType(This,plLockType) \ + ( (This)->lpVtbl -> get_LockType(This,plLockType) ) +#define Recordset21_put_LockType(This,lLockType) \ + ( (This)->lpVtbl -> put_LockType(This,lLockType) ) +#define Recordset21_get_MaxRecords(This,plMaxRecords) \ + ( (This)->lpVtbl -> get_MaxRecords(This,plMaxRecords) ) +#define Recordset21_put_MaxRecords(This,lMaxRecords) \ + ( (This)->lpVtbl -> put_MaxRecords(This,lMaxRecords) ) +#define Recordset21_get_RecordCount(This,pl) \ + ( (This)->lpVtbl -> get_RecordCount(This,pl) ) +#define Recordset21_putref_Source(This,pcmd) \ + ( (This)->lpVtbl -> putref_Source(This,pcmd) ) +#define Recordset21_put_Source(This,bstrConn) \ + ( (This)->lpVtbl -> put_Source(This,bstrConn) ) +#define Recordset21_get_Source(This,pvSource) \ + ( (This)->lpVtbl -> get_Source(This,pvSource) ) +#define Recordset21_AddNew(This,FieldList,Values) \ + ( (This)->lpVtbl -> AddNew(This,FieldList,Values) ) +#define Recordset21_CancelUpdate(This) \ + ( (This)->lpVtbl -> CancelUpdate(This) ) +#define Recordset21_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define Recordset21_Delete(This,AffectRecords) \ + ( (This)->lpVtbl -> Delete(This,AffectRecords) ) +#define Recordset21_GetRows(This,Rows,Start,Fields,pvar) \ + ( (This)->lpVtbl -> GetRows(This,Rows,Start,Fields,pvar) ) +#define Recordset21_Move(This,NumRecords,Start) \ + ( (This)->lpVtbl -> Move(This,NumRecords,Start) ) +#define Recordset21_MoveNext(This) \ + ( (This)->lpVtbl -> MoveNext(This) ) +#define Recordset21_MovePrevious(This) \ + ( (This)->lpVtbl -> MovePrevious(This) ) +#define Recordset21_MoveFirst(This) \ + ( (This)->lpVtbl -> MoveFirst(This) ) +#define Recordset21_MoveLast(This) \ + ( (This)->lpVtbl -> MoveLast(This) ) +#define Recordset21_Open(This,Source,ActiveConnection,CursorType,LockType,Options) \ + ( (This)->lpVtbl -> Open(This,Source,ActiveConnection,CursorType,LockType,Options) ) +#define Recordset21_Requery(This,Options) \ + ( (This)->lpVtbl -> Requery(This,Options) ) +#define Recordset21__xResync(This,AffectRecords) \ + ( (This)->lpVtbl -> _xResync(This,AffectRecords) ) +#define Recordset21_Update(This,Fields,Values) \ + ( (This)->lpVtbl -> Update(This,Fields,Values) ) +#define Recordset21_get_AbsolutePage(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePage(This,pl) ) +#define Recordset21_put_AbsolutePage(This,Page) \ + ( (This)->lpVtbl -> put_AbsolutePage(This,Page) ) +#define Recordset21_get_EditMode(This,pl) \ + ( (This)->lpVtbl -> get_EditMode(This,pl) ) +#define Recordset21_get_Filter(This,Criteria) \ + ( (This)->lpVtbl -> get_Filter(This,Criteria) ) +#define Recordset21_put_Filter(This,Criteria) \ + ( (This)->lpVtbl -> put_Filter(This,Criteria) ) +#define Recordset21_get_PageCount(This,pl) \ + ( (This)->lpVtbl -> get_PageCount(This,pl) ) +#define Recordset21_get_PageSize(This,pl) \ + ( (This)->lpVtbl -> get_PageSize(This,pl) ) +#define Recordset21_put_PageSize(This,PageSize) \ + ( (This)->lpVtbl -> put_PageSize(This,PageSize) ) +#define Recordset21_get_Sort(This,Criteria) \ + ( (This)->lpVtbl -> get_Sort(This,Criteria) ) +#define Recordset21_put_Sort(This,Criteria) \ + ( (This)->lpVtbl -> put_Sort(This,Criteria) ) +#define Recordset21_get_Status(This,pl) \ + ( (This)->lpVtbl -> get_Status(This,pl) ) +#define Recordset21_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define Recordset21__xClone(This,ppvObject) \ + ( (This)->lpVtbl -> _xClone(This,ppvObject) ) +#define Recordset21_UpdateBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> UpdateBatch(This,AffectRecords) ) +#define Recordset21_CancelBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> CancelBatch(This,AffectRecords) ) +#define Recordset21_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define Recordset21_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define Recordset21_NextRecordset(This,RecordsAffected,ppiRs) \ + ( (This)->lpVtbl -> NextRecordset(This,RecordsAffected,ppiRs) ) +#define Recordset21_Supports(This,CursorOptions,pb) \ + ( (This)->lpVtbl -> Supports(This,CursorOptions,pb) ) +#define Recordset21_get_Collect(This,Index,pvar) \ + ( (This)->lpVtbl -> get_Collect(This,Index,pvar) ) +#define Recordset21_put_Collect(This,Index,value) \ + ( (This)->lpVtbl -> put_Collect(This,Index,value) ) +#define Recordset21_get_MarshalOptions(This,peMarshal) \ + ( (This)->lpVtbl -> get_MarshalOptions(This,peMarshal) ) +#define Recordset21_put_MarshalOptions(This,eMarshal) \ + ( (This)->lpVtbl -> put_MarshalOptions(This,eMarshal) ) +#define Recordset21_Find(This,Criteria,SkipRecords,SearchDirection,Start) \ + ( (This)->lpVtbl -> Find(This,Criteria,SkipRecords,SearchDirection,Start) ) +#define Recordset21_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#define Recordset21_get_DataSource(This,ppunkDataSource) \ + ( (This)->lpVtbl -> get_DataSource(This,ppunkDataSource) ) +#define Recordset21_putref_DataSource(This,punkDataSource) \ + ( (This)->lpVtbl -> putref_DataSource(This,punkDataSource) ) +#define Recordset21__xSave(This,FileName,PersistFormat) \ + ( (This)->lpVtbl -> _xSave(This,FileName,PersistFormat) ) +#define Recordset21_get_ActiveCommand(This,ppCmd) \ + ( (This)->lpVtbl -> get_ActiveCommand(This,ppCmd) ) +#define Recordset21_put_StayInSync(This,bStayInSync) \ + ( (This)->lpVtbl -> put_StayInSync(This,bStayInSync) ) +#define Recordset21_get_StayInSync(This,pbStayInSync) \ + ( (This)->lpVtbl -> get_StayInSync(This,pbStayInSync) ) +#define Recordset21_GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) \ + ( (This)->lpVtbl -> GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) ) +#define Recordset21_get_DataMember(This,pbstrDataMember) \ + ( (This)->lpVtbl -> get_DataMember(This,pbstrDataMember) ) +#define Recordset21_put_DataMember(This,bstrDataMember) \ + ( (This)->lpVtbl -> put_DataMember(This,bstrDataMember) ) +#define Recordset21_CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) \ + ( (This)->lpVtbl -> CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) ) +#define Recordset21_Clone(This,LockType,ppvObject) \ + ( (This)->lpVtbl -> Clone(This,LockType,ppvObject) ) +#define Recordset21_Resync(This,AffectRecords,ResyncValues) \ + ( (This)->lpVtbl -> Resync(This,AffectRecords,ResyncValues) ) +#define Recordset21_Seek(This,KeyValues,SeekOption) \ + ( (This)->lpVtbl -> Seek(This,KeyValues,SeekOption) ) +#define Recordset21_put_Index(This,Index) \ + ( (This)->lpVtbl -> put_Index(This,Index) ) +#define Recordset21_get_Index(This,pbstrIndex) \ + ( (This)->lpVtbl -> get_Index(This,pbstrIndex) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Recordset21_INTERFACE_DEFINED__ */ +#ifndef ___Recordset_INTERFACE_DEFINED__ +#define ___Recordset_INTERFACE_DEFINED__ +/* interface _ADORecordset */ +/* [object][helpcontext][uuid][nonextensible][hidden][dual] */ +EXTERN_C const IID IID__Recordset; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001556-0000-0010-8000-00AA006D2EA4") + _ADORecordset : public Recordset21 + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Save( + /* [optional][in] */ VARIANT Destination, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat = adPersistADTG) = 0; + + }; + + +#else /* C style interface */ + typedef struct _RecordsetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADORecordset * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADORecordset * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADORecordset * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADORecordset * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADORecordset * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADORecordset * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADORecordset * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, get_AbsolutePosition) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePosition )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out PositionEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_AbsolutePosition) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePosition )( + __RPC__in _ADORecordset * This, + /* [in] */ PositionEnum Position); + + DECLSPEC_XFGVIRT(Recordset15, putref_ActiveConnection) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in _ADORecordset * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + DECLSPEC_XFGVIRT(Recordset15, put_ActiveConnection) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in _ADORecordset * This, + /* [in] */ VARIANT vConn); + + DECLSPEC_XFGVIRT(Recordset15, get_ActiveConnection) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, get_BOF) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BOF )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Bookmark) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Bookmark )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT *pvBookmark); + + DECLSPEC_XFGVIRT(Recordset15, put_Bookmark) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Bookmark )( + __RPC__in _ADORecordset * This, + /* [in] */ VARIANT vBookmark); + + DECLSPEC_XFGVIRT(Recordset15, get_CacheSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CacheSize )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_CacheSize) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CacheSize )( + __RPC__in _ADORecordset * This, + /* [in] */ long CacheSize); + + DECLSPEC_XFGVIRT(Recordset15, get_CursorType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorType )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out CursorTypeEnum *plCursorType); + + DECLSPEC_XFGVIRT(Recordset15, put_CursorType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorType )( + __RPC__in _ADORecordset * This, + /* [in] */ CursorTypeEnum lCursorType); + + DECLSPEC_XFGVIRT(Recordset15, get_EOF) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EOF )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Fields) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt ADOFields **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, get_LockType) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LockType )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out LockTypeEnum *plLockType); + + DECLSPEC_XFGVIRT(Recordset15, put_LockType) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LockType )( + __RPC__in _ADORecordset * This, + /* [in] */ LockTypeEnum lLockType); + + DECLSPEC_XFGVIRT(Recordset15, get_MaxRecords) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaxRecords )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out long *plMaxRecords); + + DECLSPEC_XFGVIRT(Recordset15, put_MaxRecords) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaxRecords )( + __RPC__in _ADORecordset * This, + /* [in] */ long lMaxRecords); + + DECLSPEC_XFGVIRT(Recordset15, get_RecordCount) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecordCount )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, putref_Source) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in _ADORecordset * This, + /* [in] */ __RPC__in_opt IDispatch *pcmd); + + DECLSPEC_XFGVIRT(Recordset15, put_Source) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in _ADORecordset * This, + /* [in] */ __RPC__in BSTR bstrConn); + + DECLSPEC_XFGVIRT(Recordset15, get_Source) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT *pvSource); + + DECLSPEC_XFGVIRT(Recordset15, AddNew) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AddNew )( + __RPC__in _ADORecordset * This, + /* [optional][in] */ VARIANT FieldList, + /* [optional][in] */ VARIANT Values); + + DECLSPEC_XFGVIRT(Recordset15, CancelUpdate) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelUpdate )( + __RPC__in _ADORecordset * This); + + DECLSPEC_XFGVIRT(Recordset15, Close) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in _ADORecordset * This); + + DECLSPEC_XFGVIRT(Recordset15, Delete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in _ADORecordset * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, GetRows) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetRows )( + __RPC__in _ADORecordset * This, + /* [defaultvalue][in] */ long Rows, + /* [optional][in] */ VARIANT Start, + /* [optional][in] */ VARIANT Fields, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, Move) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Move )( + __RPC__in _ADORecordset * This, + /* [in] */ long NumRecords, + /* [optional][in] */ VARIANT Start); + + DECLSPEC_XFGVIRT(Recordset15, MoveNext) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in _ADORecordset * This); + + DECLSPEC_XFGVIRT(Recordset15, MovePrevious) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MovePrevious )( + __RPC__in _ADORecordset * This); + + DECLSPEC_XFGVIRT(Recordset15, MoveFirst) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveFirst )( + __RPC__in _ADORecordset * This); + + DECLSPEC_XFGVIRT(Recordset15, MoveLast) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveLast )( + __RPC__in _ADORecordset * This); + + DECLSPEC_XFGVIRT(Recordset15, Open) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in _ADORecordset * This, + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ CursorTypeEnum CursorType, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [defaultvalue][in] */ LONG Options); + + DECLSPEC_XFGVIRT(Recordset15, Requery) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Requery )( + __RPC__in _ADORecordset * This, + /* [defaultvalue][in] */ LONG Options); + + DECLSPEC_XFGVIRT(Recordset15, _xResync) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xResync )( + __RPC__in _ADORecordset * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, Update) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in _ADORecordset * This, + /* [optional][in] */ VARIANT Fields, + /* [optional][in] */ VARIANT Values); + + DECLSPEC_XFGVIRT(Recordset15, get_AbsolutePage) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePage )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out PositionEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_AbsolutePage) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePage )( + __RPC__in _ADORecordset * This, + /* [in] */ PositionEnum Page); + + DECLSPEC_XFGVIRT(Recordset15, get_EditMode) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EditMode )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out EditModeEnum *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_Filter) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT *Criteria); + + DECLSPEC_XFGVIRT(Recordset15, put_Filter) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( + __RPC__in _ADORecordset * This, + /* [in] */ VARIANT Criteria); + + DECLSPEC_XFGVIRT(Recordset15, get_PageCount) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageCount )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_PageSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageSize )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, put_PageSize) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_PageSize )( + __RPC__in _ADORecordset * This, + /* [in] */ long PageSize); + + DECLSPEC_XFGVIRT(Recordset15, get_Sort) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Sort )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Criteria); + + DECLSPEC_XFGVIRT(Recordset15, put_Sort) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Sort )( + __RPC__in _ADORecordset * This, + /* [in] */ __RPC__in BSTR Criteria); + + DECLSPEC_XFGVIRT(Recordset15, get_Status) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Recordset15, get_State) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + DECLSPEC_XFGVIRT(Recordset15, _xClone) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xClone )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject); + + DECLSPEC_XFGVIRT(Recordset15, UpdateBatch) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateBatch )( + __RPC__in _ADORecordset * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, CancelBatch) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelBatch )( + __RPC__in _ADORecordset * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + DECLSPEC_XFGVIRT(Recordset15, get_CursorLocation) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + DECLSPEC_XFGVIRT(Recordset15, put_CursorLocation) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in _ADORecordset * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + DECLSPEC_XFGVIRT(Recordset15, NextRecordset) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *NextADORecordset )( + __RPC__in _ADORecordset * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppiRs); + + DECLSPEC_XFGVIRT(Recordset15, Supports) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Supports )( + __RPC__in _ADORecordset * This, + /* [in] */ CursorOptionEnum CursorOptions, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + DECLSPEC_XFGVIRT(Recordset15, get_Collect) + /* [hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Collect )( + __RPC__in _ADORecordset * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Recordset15, put_Collect) + /* [hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Collect )( + __RPC__in _ADORecordset * This, + /* [in] */ VARIANT Index, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(Recordset15, get_MarshalOptions) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MarshalOptions )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out MarshalOptionsEnum *peMarshal); + + DECLSPEC_XFGVIRT(Recordset15, put_MarshalOptions) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MarshalOptions )( + __RPC__in _ADORecordset * This, + /* [in] */ MarshalOptionsEnum eMarshal); + + DECLSPEC_XFGVIRT(Recordset15, Find) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Find )( + __RPC__in _ADORecordset * This, + /* [in] */ __RPC__in BSTR Criteria, + /* [defaultvalue][in] */ long SkipRecords, + /* [defaultvalue][in] */ SearchDirectionEnum SearchDirection, + /* [optional][in] */ VARIANT Start); + + DECLSPEC_XFGVIRT(Recordset20, Cancel) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in _ADORecordset * This); + + DECLSPEC_XFGVIRT(Recordset20, get_DataSource) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSource )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppunkDataSource); + + DECLSPEC_XFGVIRT(Recordset20, putref_DataSource) + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DataSource )( + __RPC__in _ADORecordset * This, + /* [in] */ __RPC__in_opt IUnknown *punkDataSource); + + DECLSPEC_XFGVIRT(Recordset20, _xSave) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xSave )( + __RPC__in _ADORecordset * This, + /* [defaultvalue][in] */ __RPC__in BSTR FileName, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat); + + DECLSPEC_XFGVIRT(Recordset20, get_ActiveCommand) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveCommand )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCmd); + + DECLSPEC_XFGVIRT(Recordset20, put_StayInSync) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_StayInSync )( + __RPC__in _ADORecordset * This, + /* [in] */ VARIANT_BOOL bStayInSync); + + DECLSPEC_XFGVIRT(Recordset20, get_StayInSync) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_StayInSync )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbStayInSync); + + DECLSPEC_XFGVIRT(Recordset20, GetString) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetString )( + __RPC__in _ADORecordset * This, + /* [defaultvalue][in] */ StringFormatEnum StringFormat, + /* [defaultvalue][in] */ long NumRows, + /* [defaultvalue][in] */ __RPC__in BSTR ColumnDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR RowDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR NullExpr, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pRetString); + + DECLSPEC_XFGVIRT(Recordset20, get_DataMember) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataMember )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDataMember); + + DECLSPEC_XFGVIRT(Recordset20, put_DataMember) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataMember )( + __RPC__in _ADORecordset * This, + /* [in] */ __RPC__in BSTR bstrDataMember); + + DECLSPEC_XFGVIRT(Recordset20, CompareBookmarks) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CompareBookmarks )( + __RPC__in _ADORecordset * This, + /* [in] */ VARIANT Bookmark1, + /* [in] */ VARIANT Bookmark2, + /* [retval][out] */ __RPC__out CompareEnum *pCompare); + + DECLSPEC_XFGVIRT(Recordset20, Clone) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in _ADORecordset * This, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject); + + DECLSPEC_XFGVIRT(Recordset20, Resync) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Resync )( + __RPC__in _ADORecordset * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords, + /* [defaultvalue][in] */ ResyncEnum ResyncValues); + + DECLSPEC_XFGVIRT(Recordset21, Seek) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Seek )( + __RPC__in _ADORecordset * This, + /* [in] */ VARIANT KeyValues, + /* [defaultvalue][in] */ SeekEnum SeekOption); + + DECLSPEC_XFGVIRT(Recordset21, put_Index) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Index )( + __RPC__in _ADORecordset * This, + /* [in] */ __RPC__in BSTR Index); + + DECLSPEC_XFGVIRT(Recordset21, get_Index) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Index )( + __RPC__in _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrIndex); + + DECLSPEC_XFGVIRT(_Recordset, Save) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in _ADORecordset * This, + /* [optional][in] */ VARIANT Destination, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat); + + END_INTERFACE + } _RecordsetVtbl; + interface _Recordset + { + CONST_VTBL struct _RecordsetVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Recordset_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Recordset_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Recordset_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Recordset_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Recordset_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Recordset_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Recordset_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Recordset_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Recordset_get_AbsolutePosition(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePosition(This,pl) ) +#define _Recordset_put_AbsolutePosition(This,Position) \ + ( (This)->lpVtbl -> put_AbsolutePosition(This,Position) ) +#define _Recordset_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) +#define _Recordset_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define _Recordset_get_ActiveConnection(This,pvar) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pvar) ) +#define _Recordset_get_BOF(This,pb) \ + ( (This)->lpVtbl -> get_BOF(This,pb) ) +#define _Recordset_get_Bookmark(This,pvBookmark) \ + ( (This)->lpVtbl -> get_Bookmark(This,pvBookmark) ) +#define _Recordset_put_Bookmark(This,vBookmark) \ + ( (This)->lpVtbl -> put_Bookmark(This,vBookmark) ) +#define _Recordset_get_CacheSize(This,pl) \ + ( (This)->lpVtbl -> get_CacheSize(This,pl) ) +#define _Recordset_put_CacheSize(This,CacheSize) \ + ( (This)->lpVtbl -> put_CacheSize(This,CacheSize) ) +#define _Recordset_get_CursorType(This,plCursorType) \ + ( (This)->lpVtbl -> get_CursorType(This,plCursorType) ) +#define _Recordset_put_CursorType(This,lCursorType) \ + ( (This)->lpVtbl -> put_CursorType(This,lCursorType) ) +#define _Recordset_get_EOF(This,pb) \ + ( (This)->lpVtbl -> get_EOF(This,pb) ) +#define _Recordset_get_Fields(This,ppvObject) \ + ( (This)->lpVtbl -> get_Fields(This,ppvObject) ) +#define _Recordset_get_LockType(This,plLockType) \ + ( (This)->lpVtbl -> get_LockType(This,plLockType) ) +#define _Recordset_put_LockType(This,lLockType) \ + ( (This)->lpVtbl -> put_LockType(This,lLockType) ) +#define _Recordset_get_MaxRecords(This,plMaxRecords) \ + ( (This)->lpVtbl -> get_MaxRecords(This,plMaxRecords) ) +#define _Recordset_put_MaxRecords(This,lMaxRecords) \ + ( (This)->lpVtbl -> put_MaxRecords(This,lMaxRecords) ) +#define _Recordset_get_RecordCount(This,pl) \ + ( (This)->lpVtbl -> get_RecordCount(This,pl) ) +#define _Recordset_putref_Source(This,pcmd) \ + ( (This)->lpVtbl -> putref_Source(This,pcmd) ) +#define _Recordset_put_Source(This,bstrConn) \ + ( (This)->lpVtbl -> put_Source(This,bstrConn) ) +#define _Recordset_get_Source(This,pvSource) \ + ( (This)->lpVtbl -> get_Source(This,pvSource) ) +#define _Recordset_AddNew(This,FieldList,Values) \ + ( (This)->lpVtbl -> AddNew(This,FieldList,Values) ) +#define _Recordset_CancelUpdate(This) \ + ( (This)->lpVtbl -> CancelUpdate(This) ) +#define _Recordset_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define _Recordset_Delete(This,AffectRecords) \ + ( (This)->lpVtbl -> Delete(This,AffectRecords) ) +#define _Recordset_GetRows(This,Rows,Start,Fields,pvar) \ + ( (This)->lpVtbl -> GetRows(This,Rows,Start,Fields,pvar) ) +#define _Recordset_Move(This,NumRecords,Start) \ + ( (This)->lpVtbl -> Move(This,NumRecords,Start) ) +#define _Recordset_MoveNext(This) \ + ( (This)->lpVtbl -> MoveNext(This) ) +#define _Recordset_MovePrevious(This) \ + ( (This)->lpVtbl -> MovePrevious(This) ) +#define _Recordset_MoveFirst(This) \ + ( (This)->lpVtbl -> MoveFirst(This) ) +#define _Recordset_MoveLast(This) \ + ( (This)->lpVtbl -> MoveLast(This) ) +#define _Recordset_Open(This,Source,ActiveConnection,CursorType,LockType,Options) \ + ( (This)->lpVtbl -> Open(This,Source,ActiveConnection,CursorType,LockType,Options) ) +#define _Recordset_Requery(This,Options) \ + ( (This)->lpVtbl -> Requery(This,Options) ) +#define _Recordset__xResync(This,AffectRecords) \ + ( (This)->lpVtbl -> _xResync(This,AffectRecords) ) +#define _Recordset_Update(This,Fields,Values) \ + ( (This)->lpVtbl -> Update(This,Fields,Values) ) +#define _Recordset_get_AbsolutePage(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePage(This,pl) ) +#define _Recordset_put_AbsolutePage(This,Page) \ + ( (This)->lpVtbl -> put_AbsolutePage(This,Page) ) +#define _Recordset_get_EditMode(This,pl) \ + ( (This)->lpVtbl -> get_EditMode(This,pl) ) +#define _Recordset_get_Filter(This,Criteria) \ + ( (This)->lpVtbl -> get_Filter(This,Criteria) ) +#define _Recordset_put_Filter(This,Criteria) \ + ( (This)->lpVtbl -> put_Filter(This,Criteria) ) +#define _Recordset_get_PageCount(This,pl) \ + ( (This)->lpVtbl -> get_PageCount(This,pl) ) +#define _Recordset_get_PageSize(This,pl) \ + ( (This)->lpVtbl -> get_PageSize(This,pl) ) +#define _Recordset_put_PageSize(This,PageSize) \ + ( (This)->lpVtbl -> put_PageSize(This,PageSize) ) +#define _Recordset_get_Sort(This,Criteria) \ + ( (This)->lpVtbl -> get_Sort(This,Criteria) ) +#define _Recordset_put_Sort(This,Criteria) \ + ( (This)->lpVtbl -> put_Sort(This,Criteria) ) +#define _Recordset_get_Status(This,pl) \ + ( (This)->lpVtbl -> get_Status(This,pl) ) +#define _Recordset_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define _Recordset__xClone(This,ppvObject) \ + ( (This)->lpVtbl -> _xClone(This,ppvObject) ) +#define _Recordset_UpdateBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> UpdateBatch(This,AffectRecords) ) +#define _Recordset_CancelBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> CancelBatch(This,AffectRecords) ) +#define _Recordset_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define _Recordset_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define _Recordset_NextRecordset(This,RecordsAffected,ppiRs) \ + ( (This)->lpVtbl -> NextRecordset(This,RecordsAffected,ppiRs) ) +#define _Recordset_Supports(This,CursorOptions,pb) \ + ( (This)->lpVtbl -> Supports(This,CursorOptions,pb) ) +#define _Recordset_get_Collect(This,Index,pvar) \ + ( (This)->lpVtbl -> get_Collect(This,Index,pvar) ) +#define _Recordset_put_Collect(This,Index,value) \ + ( (This)->lpVtbl -> put_Collect(This,Index,value) ) +#define _Recordset_get_MarshalOptions(This,peMarshal) \ + ( (This)->lpVtbl -> get_MarshalOptions(This,peMarshal) ) +#define _Recordset_put_MarshalOptions(This,eMarshal) \ + ( (This)->lpVtbl -> put_MarshalOptions(This,eMarshal) ) +#define _Recordset_Find(This,Criteria,SkipRecords,SearchDirection,Start) \ + ( (This)->lpVtbl -> Find(This,Criteria,SkipRecords,SearchDirection,Start) ) +#define _Recordset_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#define _Recordset_get_DataSource(This,ppunkDataSource) \ + ( (This)->lpVtbl -> get_DataSource(This,ppunkDataSource) ) +#define _Recordset_putref_DataSource(This,punkDataSource) \ + ( (This)->lpVtbl -> putref_DataSource(This,punkDataSource) ) +#define _Recordset__xSave(This,FileName,PersistFormat) \ + ( (This)->lpVtbl -> _xSave(This,FileName,PersistFormat) ) +#define _Recordset_get_ActiveCommand(This,ppCmd) \ + ( (This)->lpVtbl -> get_ActiveCommand(This,ppCmd) ) +#define _Recordset_put_StayInSync(This,bStayInSync) \ + ( (This)->lpVtbl -> put_StayInSync(This,bStayInSync) ) +#define _Recordset_get_StayInSync(This,pbStayInSync) \ + ( (This)->lpVtbl -> get_StayInSync(This,pbStayInSync) ) +#define _Recordset_GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) \ + ( (This)->lpVtbl -> GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) ) +#define _Recordset_get_DataMember(This,pbstrDataMember) \ + ( (This)->lpVtbl -> get_DataMember(This,pbstrDataMember) ) +#define _Recordset_put_DataMember(This,bstrDataMember) \ + ( (This)->lpVtbl -> put_DataMember(This,bstrDataMember) ) +#define _Recordset_CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) \ + ( (This)->lpVtbl -> CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) ) +#define _Recordset_Clone(This,LockType,ppvObject) \ + ( (This)->lpVtbl -> Clone(This,LockType,ppvObject) ) +#define _Recordset_Resync(This,AffectRecords,ResyncValues) \ + ( (This)->lpVtbl -> Resync(This,AffectRecords,ResyncValues) ) +#define _Recordset_Seek(This,KeyValues,SeekOption) \ + ( (This)->lpVtbl -> Seek(This,KeyValues,SeekOption) ) +#define _Recordset_put_Index(This,Index) \ + ( (This)->lpVtbl -> put_Index(This,Index) ) +#define _Recordset_get_Index(This,pbstrIndex) \ + ( (This)->lpVtbl -> get_Index(This,pbstrIndex) ) +#define _Recordset_Save(This,Destination,PersistFormat) \ + ( (This)->lpVtbl -> Save(This,Destination,PersistFormat) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Recordset_INTERFACE_DEFINED__ */ +#ifndef __ADORecordsetConstruction_INTERFACE_DEFINED__ +#define __ADORecordsetConstruction_INTERFACE_DEFINED__ +/* interface ADORecordsetConstruction */ +/* [object][uuid][hidden][restricted] */ +EXTERN_C const IID IID_ADORecordsetConstruction; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000283-0000-0010-8000-00AA006D2EA4") + ADORecordsetConstruction : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Rowset( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRowset) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Rowset( + /* [in] */ __RPC__in_opt IUnknown *pRowset) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Chapter( + /* [retval][out] */ __RPC__out ADO_LONGPTR *plChapter) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Chapter( + /* [in] */ ADO_LONGPTR lChapter) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RowPosition( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRowPos) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_RowPosition( + /* [in] */ __RPC__in_opt IUnknown *pRowPos) = 0; + + }; + + +#else /* C style interface */ + typedef struct ADORecordsetConstructionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADORecordsetConstruction * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADORecordsetConstruction * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADORecordsetConstruction * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADORecordsetConstruction * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ADORecordsetConstruction, get_Rowset) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rowset )( + __RPC__in ADORecordsetConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRowset); + + DECLSPEC_XFGVIRT(ADORecordsetConstruction, put_Rowset) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rowset )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pRowset); + + DECLSPEC_XFGVIRT(ADORecordsetConstruction, get_Chapter) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Chapter )( + __RPC__in ADORecordsetConstruction * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *plChapter); + + DECLSPEC_XFGVIRT(ADORecordsetConstruction, put_Chapter) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Chapter )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ ADO_LONGPTR lChapter); + + DECLSPEC_XFGVIRT(ADORecordsetConstruction, get_RowPosition) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RowPosition )( + __RPC__in ADORecordsetConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRowPos); + + DECLSPEC_XFGVIRT(ADORecordsetConstruction, put_RowPosition) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RowPosition )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pRowPos); + + END_INTERFACE + } ADORecordsetConstructionVtbl; + interface ADORecordsetConstruction + { + CONST_VTBL struct ADORecordsetConstructionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADORecordsetConstruction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADORecordsetConstruction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADORecordsetConstruction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADORecordsetConstruction_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define ADORecordsetConstruction_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define ADORecordsetConstruction_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define ADORecordsetConstruction_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define ADORecordsetConstruction_get_Rowset(This,ppRowset) \ + ( (This)->lpVtbl -> get_Rowset(This,ppRowset) ) +#define ADORecordsetConstruction_put_Rowset(This,pRowset) \ + ( (This)->lpVtbl -> put_Rowset(This,pRowset) ) +#define ADORecordsetConstruction_get_Chapter(This,plChapter) \ + ( (This)->lpVtbl -> get_Chapter(This,plChapter) ) +#define ADORecordsetConstruction_put_Chapter(This,lChapter) \ + ( (This)->lpVtbl -> put_Chapter(This,lChapter) ) +#define ADORecordsetConstruction_get_RowPosition(This,ppRowPos) \ + ( (This)->lpVtbl -> get_RowPosition(This,ppRowPos) ) +#define ADORecordsetConstruction_put_RowPosition(This,pRowPos) \ + ( (This)->lpVtbl -> put_RowPosition(This,pRowPos) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADORecordsetConstruction_INTERFACE_DEFINED__ */ +#ifndef __Field15_INTERFACE_DEFINED__ +#define __Field15_INTERFACE_DEFINED__ +/* interface Field15 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Field15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001505-0000-0010-8000-00AA006D2EA4") + Field15 : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActualSize( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_DefinedSize( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out DataTypeEnum *pDataType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT Val) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Precision( + /* [retval][out] */ __RPC__out BYTE *pbPrecision) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_NumericScale( + /* [retval][out] */ __RPC__out BYTE *pbNumericScale) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE AppendChunk( + /* [in] */ VARIANT Data) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetChunk( + /* [in] */ long Length, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_OriginalValue( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_UnderlyingValue( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + }; + + +#else /* C style interface */ + typedef struct Field15Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Field15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Field15 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Field15 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Field15 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Field15 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Field15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Field15 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Field15, get_ActualSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActualSize )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Field15, get_Attributes) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Field15, get_DefinedSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DefinedSize )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Field15, get_Name) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Field15, get_Type) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out DataTypeEnum *pDataType); + + DECLSPEC_XFGVIRT(Field15, get_Value) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field15, put_Value) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in Field15 * This, + /* [in] */ VARIANT Val); + + DECLSPEC_XFGVIRT(Field15, get_Precision) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Precision )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out BYTE *pbPrecision); + + DECLSPEC_XFGVIRT(Field15, get_NumericScale) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NumericScale )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out BYTE *pbNumericScale); + + DECLSPEC_XFGVIRT(Field15, AppendChunk) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AppendChunk )( + __RPC__in Field15 * This, + /* [in] */ VARIANT Data); + + DECLSPEC_XFGVIRT(Field15, GetChunk) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetChunk )( + __RPC__in Field15 * This, + /* [in] */ long Length, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field15, get_OriginalValue) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_OriginalValue )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field15, get_UnderlyingValue) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_UnderlyingValue )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + END_INTERFACE + } Field15Vtbl; + interface Field15 + { + CONST_VTBL struct Field15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Field15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Field15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Field15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Field15_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Field15_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Field15_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Field15_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Field15_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Field15_get_ActualSize(This,pl) \ + ( (This)->lpVtbl -> get_ActualSize(This,pl) ) +#define Field15_get_Attributes(This,pl) \ + ( (This)->lpVtbl -> get_Attributes(This,pl) ) +#define Field15_get_DefinedSize(This,pl) \ + ( (This)->lpVtbl -> get_DefinedSize(This,pl) ) +#define Field15_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define Field15_get_Type(This,pDataType) \ + ( (This)->lpVtbl -> get_Type(This,pDataType) ) +#define Field15_get_Value(This,pvar) \ + ( (This)->lpVtbl -> get_Value(This,pvar) ) +#define Field15_put_Value(This,Val) \ + ( (This)->lpVtbl -> put_Value(This,Val) ) +#define Field15_get_Precision(This,pbPrecision) \ + ( (This)->lpVtbl -> get_Precision(This,pbPrecision) ) +#define Field15_get_NumericScale(This,pbNumericScale) \ + ( (This)->lpVtbl -> get_NumericScale(This,pbNumericScale) ) +#define Field15_AppendChunk(This,Data) \ + ( (This)->lpVtbl -> AppendChunk(This,Data) ) +#define Field15_GetChunk(This,Length,pvar) \ + ( (This)->lpVtbl -> GetChunk(This,Length,pvar) ) +#define Field15_get_OriginalValue(This,pvar) \ + ( (This)->lpVtbl -> get_OriginalValue(This,pvar) ) +#define Field15_get_UnderlyingValue(This,pvar) \ + ( (This)->lpVtbl -> get_UnderlyingValue(This,pvar) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Field15_INTERFACE_DEFINED__ */ +#ifndef __Field20_INTERFACE_DEFINED__ +#define __Field20_INTERFACE_DEFINED__ +/* interface Field20 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Field20; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000154C-0000-0010-8000-00AA006D2EA4") + Field20 : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActualSize( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_DefinedSize( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out DataTypeEnum *pDataType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT Val) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Precision( + /* [retval][out] */ __RPC__out BYTE *pbPrecision) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_NumericScale( + /* [retval][out] */ __RPC__out BYTE *pbNumericScale) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE AppendChunk( + /* [in] */ VARIANT Data) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetChunk( + /* [in] */ long Length, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_OriginalValue( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_UnderlyingValue( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_DataFormat( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppiDF) = 0; + + virtual /* [propputref][id] */ HRESULT STDMETHODCALLTYPE putref_DataFormat( + /* [in] */ __RPC__in_opt IUnknown *piDF) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Precision( + /* [in] */ BYTE bPrecision) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_NumericScale( + /* [in] */ BYTE bScale) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ DataTypeEnum DataType) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_DefinedSize( + /* [in] */ long lSize) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Attributes( + /* [in] */ long lAttributes) = 0; + + }; + + +#else /* C style interface */ + typedef struct Field20Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Field20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Field20 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Field20 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Field20 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Field20 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Field20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Field20 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Field20, get_ActualSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActualSize )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Field20, get_Attributes) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Field20, get_DefinedSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DefinedSize )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Field20, get_Name) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Field20, get_Type) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out DataTypeEnum *pDataType); + + DECLSPEC_XFGVIRT(Field20, get_Value) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field20, put_Value) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in Field20 * This, + /* [in] */ VARIANT Val); + + DECLSPEC_XFGVIRT(Field20, get_Precision) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Precision )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out BYTE *pbPrecision); + + DECLSPEC_XFGVIRT(Field20, get_NumericScale) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NumericScale )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out BYTE *pbNumericScale); + + DECLSPEC_XFGVIRT(Field20, AppendChunk) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AppendChunk )( + __RPC__in Field20 * This, + /* [in] */ VARIANT Data); + + DECLSPEC_XFGVIRT(Field20, GetChunk) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetChunk )( + __RPC__in Field20 * This, + /* [in] */ long Length, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field20, get_OriginalValue) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_OriginalValue )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field20, get_UnderlyingValue) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_UnderlyingValue )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field20, get_DataFormat) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataFormat )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppiDF); + + DECLSPEC_XFGVIRT(Field20, putref_DataFormat) + /* [propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DataFormat )( + __RPC__in Field20 * This, + /* [in] */ __RPC__in_opt IUnknown *piDF); + + DECLSPEC_XFGVIRT(Field20, put_Precision) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Precision )( + __RPC__in Field20 * This, + /* [in] */ BYTE bPrecision); + + DECLSPEC_XFGVIRT(Field20, put_NumericScale) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_NumericScale )( + __RPC__in Field20 * This, + /* [in] */ BYTE bScale); + + DECLSPEC_XFGVIRT(Field20, put_Type) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in Field20 * This, + /* [in] */ DataTypeEnum DataType); + + DECLSPEC_XFGVIRT(Field20, put_DefinedSize) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DefinedSize )( + __RPC__in Field20 * This, + /* [in] */ long lSize); + + DECLSPEC_XFGVIRT(Field20, put_Attributes) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in Field20 * This, + /* [in] */ long lAttributes); + + END_INTERFACE + } Field20Vtbl; + interface Field20 + { + CONST_VTBL struct Field20Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Field20_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Field20_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Field20_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Field20_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Field20_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Field20_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Field20_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Field20_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Field20_get_ActualSize(This,pl) \ + ( (This)->lpVtbl -> get_ActualSize(This,pl) ) +#define Field20_get_Attributes(This,pl) \ + ( (This)->lpVtbl -> get_Attributes(This,pl) ) +#define Field20_get_DefinedSize(This,pl) \ + ( (This)->lpVtbl -> get_DefinedSize(This,pl) ) +#define Field20_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define Field20_get_Type(This,pDataType) \ + ( (This)->lpVtbl -> get_Type(This,pDataType) ) +#define Field20_get_Value(This,pvar) \ + ( (This)->lpVtbl -> get_Value(This,pvar) ) +#define Field20_put_Value(This,Val) \ + ( (This)->lpVtbl -> put_Value(This,Val) ) +#define Field20_get_Precision(This,pbPrecision) \ + ( (This)->lpVtbl -> get_Precision(This,pbPrecision) ) +#define Field20_get_NumericScale(This,pbNumericScale) \ + ( (This)->lpVtbl -> get_NumericScale(This,pbNumericScale) ) +#define Field20_AppendChunk(This,Data) \ + ( (This)->lpVtbl -> AppendChunk(This,Data) ) +#define Field20_GetChunk(This,Length,pvar) \ + ( (This)->lpVtbl -> GetChunk(This,Length,pvar) ) +#define Field20_get_OriginalValue(This,pvar) \ + ( (This)->lpVtbl -> get_OriginalValue(This,pvar) ) +#define Field20_get_UnderlyingValue(This,pvar) \ + ( (This)->lpVtbl -> get_UnderlyingValue(This,pvar) ) +#define Field20_get_DataFormat(This,ppiDF) \ + ( (This)->lpVtbl -> get_DataFormat(This,ppiDF) ) +#define Field20_putref_DataFormat(This,piDF) \ + ( (This)->lpVtbl -> putref_DataFormat(This,piDF) ) +#define Field20_put_Precision(This,bPrecision) \ + ( (This)->lpVtbl -> put_Precision(This,bPrecision) ) +#define Field20_put_NumericScale(This,bScale) \ + ( (This)->lpVtbl -> put_NumericScale(This,bScale) ) +#define Field20_put_Type(This,DataType) \ + ( (This)->lpVtbl -> put_Type(This,DataType) ) +#define Field20_put_DefinedSize(This,lSize) \ + ( (This)->lpVtbl -> put_DefinedSize(This,lSize) ) +#define Field20_put_Attributes(This,lAttributes) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttributes) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Field20_INTERFACE_DEFINED__ */ +#ifndef __Field_INTERFACE_DEFINED__ +#define __Field_INTERFACE_DEFINED__ +/* interface ADOField */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Field; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001569-0000-0010-8000-00AA006D2EA4") + ADOField : public Field20 + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out long *pFStatus) = 0; + + }; + + +#else /* C style interface */ + typedef struct FieldVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOField * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOField * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOField * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOField * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOField * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOField * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOField * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(Field20, get_ActualSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActualSize )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Field20, get_Attributes) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Field20, get_DefinedSize) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DefinedSize )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Field20, get_Name) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Field20, get_Type) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__out DataTypeEnum *pDataType); + + DECLSPEC_XFGVIRT(Field20, get_Value) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field20, put_Value) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in ADOField * This, + /* [in] */ VARIANT Val); + + DECLSPEC_XFGVIRT(Field20, get_Precision) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Precision )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__out BYTE *pbPrecision); + + DECLSPEC_XFGVIRT(Field20, get_NumericScale) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NumericScale )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__out BYTE *pbNumericScale); + + DECLSPEC_XFGVIRT(Field20, AppendChunk) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AppendChunk )( + __RPC__in ADOField * This, + /* [in] */ VARIANT Data); + + DECLSPEC_XFGVIRT(Field20, GetChunk) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetChunk )( + __RPC__in ADOField * This, + /* [in] */ long Length, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field20, get_OriginalValue) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_OriginalValue )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field20, get_UnderlyingValue) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_UnderlyingValue )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Field20, get_DataFormat) + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataFormat )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppiDF); + + DECLSPEC_XFGVIRT(Field20, putref_DataFormat) + /* [propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DataFormat )( + __RPC__in ADOField * This, + /* [in] */ __RPC__in_opt IUnknown *piDF); + + DECLSPEC_XFGVIRT(Field20, put_Precision) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Precision )( + __RPC__in ADOField * This, + /* [in] */ BYTE bPrecision); + + DECLSPEC_XFGVIRT(Field20, put_NumericScale) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_NumericScale )( + __RPC__in ADOField * This, + /* [in] */ BYTE bScale); + + DECLSPEC_XFGVIRT(Field20, put_Type) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in ADOField * This, + /* [in] */ DataTypeEnum DataType); + + DECLSPEC_XFGVIRT(Field20, put_DefinedSize) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DefinedSize )( + __RPC__in ADOField * This, + /* [in] */ long lSize); + + DECLSPEC_XFGVIRT(Field20, put_Attributes) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in ADOField * This, + /* [in] */ long lAttributes); + + DECLSPEC_XFGVIRT(Field, get_Status) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in ADOField * This, + /* [retval][out] */ __RPC__out long *pFStatus); + + END_INTERFACE + } FieldVtbl; + interface Field + { + CONST_VTBL struct FieldVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Field_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Field_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Field_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Field_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Field_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Field_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Field_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Field_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Field_get_ActualSize(This,pl) \ + ( (This)->lpVtbl -> get_ActualSize(This,pl) ) +#define Field_get_Attributes(This,pl) \ + ( (This)->lpVtbl -> get_Attributes(This,pl) ) +#define Field_get_DefinedSize(This,pl) \ + ( (This)->lpVtbl -> get_DefinedSize(This,pl) ) +#define Field_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define Field_get_Type(This,pDataType) \ + ( (This)->lpVtbl -> get_Type(This,pDataType) ) +#define Field_get_Value(This,pvar) \ + ( (This)->lpVtbl -> get_Value(This,pvar) ) +#define Field_put_Value(This,Val) \ + ( (This)->lpVtbl -> put_Value(This,Val) ) +#define Field_get_Precision(This,pbPrecision) \ + ( (This)->lpVtbl -> get_Precision(This,pbPrecision) ) +#define Field_get_NumericScale(This,pbNumericScale) \ + ( (This)->lpVtbl -> get_NumericScale(This,pbNumericScale) ) +#define Field_AppendChunk(This,Data) \ + ( (This)->lpVtbl -> AppendChunk(This,Data) ) +#define Field_GetChunk(This,Length,pvar) \ + ( (This)->lpVtbl -> GetChunk(This,Length,pvar) ) +#define Field_get_OriginalValue(This,pvar) \ + ( (This)->lpVtbl -> get_OriginalValue(This,pvar) ) +#define Field_get_UnderlyingValue(This,pvar) \ + ( (This)->lpVtbl -> get_UnderlyingValue(This,pvar) ) +#define Field_get_DataFormat(This,ppiDF) \ + ( (This)->lpVtbl -> get_DataFormat(This,ppiDF) ) +#define Field_putref_DataFormat(This,piDF) \ + ( (This)->lpVtbl -> putref_DataFormat(This,piDF) ) +#define Field_put_Precision(This,bPrecision) \ + ( (This)->lpVtbl -> put_Precision(This,bPrecision) ) +#define Field_put_NumericScale(This,bScale) \ + ( (This)->lpVtbl -> put_NumericScale(This,bScale) ) +#define Field_put_Type(This,DataType) \ + ( (This)->lpVtbl -> put_Type(This,DataType) ) +#define Field_put_DefinedSize(This,lSize) \ + ( (This)->lpVtbl -> put_DefinedSize(This,lSize) ) +#define Field_put_Attributes(This,lAttributes) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttributes) ) +#define Field_get_Status(This,pFStatus) \ + ( (This)->lpVtbl -> get_Status(This,pFStatus) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Field_INTERFACE_DEFINED__ */ +#ifndef __Fields15_INTERFACE_DEFINED__ +#define __Fields15_INTERFACE_DEFINED__ +/* interface Fields15 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Fields15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001506-0000-0010-8000-00AA006D2EA4") + Fields15 : public _ADOCollection + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOField **ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct Fields15Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Fields15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Fields15 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Fields15 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Fields15 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Fields15 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Fields15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Fields15 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Fields15 * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Fields15 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Fields15 * This); + + DECLSPEC_XFGVIRT(Fields15, get_Item) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Fields15 * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOField **ppvObject); + + END_INTERFACE + } Fields15Vtbl; + interface Fields15 + { + CONST_VTBL struct Fields15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Fields15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Fields15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Fields15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Fields15_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Fields15_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Fields15_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Fields15_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Fields15_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Fields15__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Fields15_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Fields15_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Fields15_INTERFACE_DEFINED__ */ +#ifndef __Fields20_INTERFACE_DEFINED__ +#define __Fields20_INTERFACE_DEFINED__ +/* interface Fields20 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Fields20; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000154D-0000-0010-8000-00AA006D2EA4") + Fields20 : public Fields15 + { + public: + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE _Append( + /* [in] */ __RPC__in BSTR Name, + /* [in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ long DefinedSize = 0, + /* [defaultvalue][in] */ FieldAttributeEnum Attrib = adFldUnspecified) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Index) = 0; + + }; + + +#else /* C style interface */ + typedef struct Fields20Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Fields20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Fields20 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Fields20 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Fields20 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Fields20 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Fields20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Fields20 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Fields20 * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Fields20 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Fields20 * This); + + DECLSPEC_XFGVIRT(Fields15, get_Item) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Fields20 * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOField **ppvObject); + + DECLSPEC_XFGVIRT(Fields20, _Append) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_Append )( + __RPC__in Fields20 * This, + /* [in] */ __RPC__in BSTR Name, + /* [in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ long DefinedSize, + /* [defaultvalue][in] */ FieldAttributeEnum Attrib); + + DECLSPEC_XFGVIRT(Fields20, Delete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in Fields20 * This, + /* [in] */ VARIANT Index); + + END_INTERFACE + } Fields20Vtbl; + interface Fields20 + { + CONST_VTBL struct Fields20Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Fields20_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Fields20_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Fields20_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Fields20_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Fields20_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Fields20_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Fields20_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Fields20_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Fields20__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Fields20_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Fields20_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#define Fields20__Append(This,Name,Type,DefinedSize,Attrib) \ + ( (This)->lpVtbl -> _Append(This,Name,Type,DefinedSize,Attrib) ) +#define Fields20_Delete(This,Index) \ + ( (This)->lpVtbl -> Delete(This,Index) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Fields20_INTERFACE_DEFINED__ */ +#ifndef __Fields_INTERFACE_DEFINED__ +#define __Fields_INTERFACE_DEFINED__ +/* interface ADOFields */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Fields; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00001564-0000-0010-8000-00AA006D2EA4") + ADOFields : public Fields20 + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ __RPC__in BSTR Name, + /* [in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ long DefinedSize, + /* [defaultvalue][in] */ FieldAttributeEnum Attrib, + /* [optional][in] */ VARIANT FieldValue) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Update( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Resync( + /* [defaultvalue][in] */ ResyncEnum ResyncValues = adResyncAllValues) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CancelUpdate( void) = 0; + + }; + + +#else /* C style interface */ + typedef struct FieldsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOFields * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOFields * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOFields * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOFields * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOFields * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOFields * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOFields * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOFields * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOFields * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOFields * This); + + DECLSPEC_XFGVIRT(Fields15, get_Item) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOFields * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOField **ppvObject); + + DECLSPEC_XFGVIRT(Fields20, _Append) + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_Append )( + __RPC__in ADOFields * This, + /* [in] */ __RPC__in BSTR Name, + /* [in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ long DefinedSize, + /* [defaultvalue][in] */ FieldAttributeEnum Attrib); + + DECLSPEC_XFGVIRT(Fields20, Delete) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in ADOFields * This, + /* [in] */ VARIANT Index); + + DECLSPEC_XFGVIRT(Fields, Append) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in ADOFields * This, + /* [in] */ __RPC__in BSTR Name, + /* [in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ long DefinedSize, + /* [defaultvalue][in] */ FieldAttributeEnum Attrib, + /* [optional][in] */ VARIANT FieldValue); + + DECLSPEC_XFGVIRT(Fields, Update) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in ADOFields * This); + + DECLSPEC_XFGVIRT(Fields, Resync) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Resync )( + __RPC__in ADOFields * This, + /* [defaultvalue][in] */ ResyncEnum ResyncValues); + + DECLSPEC_XFGVIRT(Fields, CancelUpdate) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelUpdate )( + __RPC__in ADOFields * This); + + END_INTERFACE + } FieldsVtbl; + interface Fields + { + CONST_VTBL struct FieldsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Fields_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Fields_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Fields_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Fields_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Fields_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Fields_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Fields_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Fields_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Fields__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Fields_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Fields_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#define Fields__Append(This,Name,Type,DefinedSize,Attrib) \ + ( (This)->lpVtbl -> _Append(This,Name,Type,DefinedSize,Attrib) ) +#define Fields_Delete(This,Index) \ + ( (This)->lpVtbl -> Delete(This,Index) ) +#define Fields_Append(This,Name,Type,DefinedSize,Attrib,FieldValue) \ + ( (This)->lpVtbl -> Append(This,Name,Type,DefinedSize,Attrib,FieldValue) ) +#define Fields_Update(This) \ + ( (This)->lpVtbl -> Update(This) ) +#define Fields_Resync(This,ResyncValues) \ + ( (This)->lpVtbl -> Resync(This,ResyncValues) ) +#define Fields_CancelUpdate(This) \ + ( (This)->lpVtbl -> CancelUpdate(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Fields_INTERFACE_DEFINED__ */ +#ifndef ___Parameter_INTERFACE_DEFINED__ +#define ___Parameter_INTERFACE_DEFINED__ +/* interface _ADOParameter */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID__Parameter; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000150C-0000-0010-8000-00AA006D2EA4") + _ADOParameter : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT val) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out DataTypeEnum *psDataType) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ DataTypeEnum sDataType) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Direction( + /* [in] */ ParameterDirectionEnum lParmDirection) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Direction( + /* [retval][out] */ __RPC__out ParameterDirectionEnum *plParmDirection) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Precision( + /* [in] */ BYTE bPrecision) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Precision( + /* [retval][out] */ __RPC__out BYTE *pbPrecision) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_NumericScale( + /* [in] */ BYTE bScale) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_NumericScale( + /* [retval][out] */ __RPC__out BYTE *pbScale) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Size( + /* [in] */ long l) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE AppendChunk( + /* [in] */ VARIANT Val) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out LONG *plParmAttribs) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Attributes( + /* [in] */ LONG lParmAttribs) = 0; + + }; + + +#else /* C style interface */ + typedef struct _ParameterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOParameter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOParameter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOParameter * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOParameter * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOParameter * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOParameter * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOParameter * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_ADO, get_Properties) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADOParameter * This, + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject); + + DECLSPEC_XFGVIRT(_Parameter, get_Name) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in _ADOParameter * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(_Parameter, put_Name) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in _ADOParameter * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(_Parameter, get_Value) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in _ADOParameter * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(_Parameter, put_Value) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in _ADOParameter * This, + /* [in] */ VARIANT val); + + DECLSPEC_XFGVIRT(_Parameter, get_Type) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in _ADOParameter * This, + /* [retval][out] */ __RPC__out DataTypeEnum *psDataType); + + DECLSPEC_XFGVIRT(_Parameter, put_Type) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in _ADOParameter * This, + /* [in] */ DataTypeEnum sDataType); + + DECLSPEC_XFGVIRT(_Parameter, put_Direction) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Direction )( + __RPC__in _ADOParameter * This, + /* [in] */ ParameterDirectionEnum lParmDirection); + + DECLSPEC_XFGVIRT(_Parameter, get_Direction) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Direction )( + __RPC__in _ADOParameter * This, + /* [retval][out] */ __RPC__out ParameterDirectionEnum *plParmDirection); + + DECLSPEC_XFGVIRT(_Parameter, put_Precision) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Precision )( + __RPC__in _ADOParameter * This, + /* [in] */ BYTE bPrecision); + + DECLSPEC_XFGVIRT(_Parameter, get_Precision) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Precision )( + __RPC__in _ADOParameter * This, + /* [retval][out] */ __RPC__out BYTE *pbPrecision); + + DECLSPEC_XFGVIRT(_Parameter, put_NumericScale) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_NumericScale )( + __RPC__in _ADOParameter * This, + /* [in] */ BYTE bScale); + + DECLSPEC_XFGVIRT(_Parameter, get_NumericScale) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NumericScale )( + __RPC__in _ADOParameter * This, + /* [retval][out] */ __RPC__out BYTE *pbScale); + + DECLSPEC_XFGVIRT(_Parameter, put_Size) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Size )( + __RPC__in _ADOParameter * This, + /* [in] */ long l); + + DECLSPEC_XFGVIRT(_Parameter, get_Size) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in _ADOParameter * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(_Parameter, AppendChunk) + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AppendChunk )( + __RPC__in _ADOParameter * This, + /* [in] */ VARIANT Val); + + DECLSPEC_XFGVIRT(_Parameter, get_Attributes) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in _ADOParameter * This, + /* [retval][out] */ __RPC__out LONG *plParmAttribs); + + DECLSPEC_XFGVIRT(_Parameter, put_Attributes) + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in _ADOParameter * This, + /* [in] */ LONG lParmAttribs); + + END_INTERFACE + } _ParameterVtbl; + interface _Parameter + { + CONST_VTBL struct _ParameterVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Parameter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Parameter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Parameter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Parameter_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Parameter_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Parameter_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Parameter_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Parameter_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Parameter_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define _Parameter_put_Name(This,bstr) \ + ( (This)->lpVtbl -> put_Name(This,bstr) ) +#define _Parameter_get_Value(This,pvar) \ + ( (This)->lpVtbl -> get_Value(This,pvar) ) +#define _Parameter_put_Value(This,val) \ + ( (This)->lpVtbl -> put_Value(This,val) ) +#define _Parameter_get_Type(This,psDataType) \ + ( (This)->lpVtbl -> get_Type(This,psDataType) ) +#define _Parameter_put_Type(This,sDataType) \ + ( (This)->lpVtbl -> put_Type(This,sDataType) ) +#define _Parameter_put_Direction(This,lParmDirection) \ + ( (This)->lpVtbl -> put_Direction(This,lParmDirection) ) +#define _Parameter_get_Direction(This,plParmDirection) \ + ( (This)->lpVtbl -> get_Direction(This,plParmDirection) ) +#define _Parameter_put_Precision(This,bPrecision) \ + ( (This)->lpVtbl -> put_Precision(This,bPrecision) ) +#define _Parameter_get_Precision(This,pbPrecision) \ + ( (This)->lpVtbl -> get_Precision(This,pbPrecision) ) +#define _Parameter_put_NumericScale(This,bScale) \ + ( (This)->lpVtbl -> put_NumericScale(This,bScale) ) +#define _Parameter_get_NumericScale(This,pbScale) \ + ( (This)->lpVtbl -> get_NumericScale(This,pbScale) ) +#define _Parameter_put_Size(This,l) \ + ( (This)->lpVtbl -> put_Size(This,l) ) +#define _Parameter_get_Size(This,pl) \ + ( (This)->lpVtbl -> get_Size(This,pl) ) +#define _Parameter_AppendChunk(This,Val) \ + ( (This)->lpVtbl -> AppendChunk(This,Val) ) +#define _Parameter_get_Attributes(This,plParmAttribs) \ + ( (This)->lpVtbl -> get_Attributes(This,plParmAttribs) ) +#define _Parameter_put_Attributes(This,lParmAttribs) \ + ( (This)->lpVtbl -> put_Attributes(This,lParmAttribs) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Parameter_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Parameter; +#ifdef __cplusplus +Parameter; +#endif +#ifndef __Parameters_INTERFACE_DEFINED__ +#define __Parameters_INTERFACE_DEFINED__ +/* interface ADOParameters */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Parameters; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000150D-0000-0010-8000-00AA006D2EA4") + ADOParameters : public _ADODynaCollection + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt _ADOParameter **ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct ParametersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOParameters * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOParameters * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOParameters * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOParameters * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOParameters * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOParameters * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOParameters * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOParameters * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOParameters * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOParameters * This); + + DECLSPEC_XFGVIRT(_ADODynaCollection, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in ADOParameters * This, + /* [in] */ __RPC__in_opt IDispatch *Object); + + DECLSPEC_XFGVIRT(_ADODynaCollection, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in ADOParameters * This, + /* [in] */ VARIANT Index); + + DECLSPEC_XFGVIRT(Parameters, get_Item) + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOParameters * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt _ADOParameter **ppvObject); + + END_INTERFACE + } ParametersVtbl; + interface Parameters + { + CONST_VTBL struct ParametersVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Parameters_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Parameters_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Parameters_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Parameters_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Parameters_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Parameters_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Parameters_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Parameters_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Parameters__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Parameters_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Parameters_Append(This,Object) \ + ( (This)->lpVtbl -> Append(This,Object) ) +#define Parameters_Delete(This,Index) \ + ( (This)->lpVtbl -> Delete(This,Index) ) +#define Parameters_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Parameters_INTERFACE_DEFINED__ */ +#ifndef __Property_INTERFACE_DEFINED__ +#define __Property_INTERFACE_DEFINED__ +/* interface ADOProperty */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Property; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000503-0000-0010-8000-00AA006D2EA4") + ADOProperty : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pval) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT val) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out DataTypeEnum *ptype) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out long *plAttributes) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_Attributes( + /* [in] */ long lAttributes) = 0; + + }; + + +#else /* C style interface */ + typedef struct PropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOProperty * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOProperty * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Property, get_Value) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in ADOProperty * This, + /* [retval][out] */ __RPC__out VARIANT *pval); + + DECLSPEC_XFGVIRT(Property, put_Value) + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in ADOProperty * This, + /* [in] */ VARIANT val); + + DECLSPEC_XFGVIRT(Property, get_Name) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in ADOProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Property, get_Type) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in ADOProperty * This, + /* [retval][out] */ __RPC__out DataTypeEnum *ptype); + + DECLSPEC_XFGVIRT(Property, get_Attributes) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in ADOProperty * This, + /* [retval][out] */ __RPC__out long *plAttributes); + + DECLSPEC_XFGVIRT(Property, put_Attributes) + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in ADOProperty * This, + /* [in] */ long lAttributes); + + END_INTERFACE + } PropertyVtbl; + interface Property + { + CONST_VTBL struct PropertyVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Property_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Property_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Property_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Property_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Property_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Property_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Property_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Property_get_Value(This,pval) \ + ( (This)->lpVtbl -> get_Value(This,pval) ) +#define Property_put_Value(This,val) \ + ( (This)->lpVtbl -> put_Value(This,val) ) +#define Property_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define Property_get_Type(This,ptype) \ + ( (This)->lpVtbl -> get_Type(This,ptype) ) +#define Property_get_Attributes(This,plAttributes) \ + ( (This)->lpVtbl -> get_Attributes(This,plAttributes) ) +#define Property_put_Attributes(This,lAttributes) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttributes) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Property_INTERFACE_DEFINED__ */ +#ifndef __Properties_INTERFACE_DEFINED__ +#define __Properties_INTERFACE_DEFINED__ +/* interface ADOProperties */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Properties; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000504-0000-0010-8000-00AA006D2EA4") + ADOProperties : public _ADOCollection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOProperty **ppvObject) = 0; + + }; + + +#else /* C style interface */ + typedef struct PropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOProperties * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOProperties * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOProperties * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOProperties * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(_Collection, get_Count) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ADOProperties * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(_ADOCollection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in ADOProperties * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(_ADOCollection, Refresh) + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in ADOProperties * This); + + DECLSPEC_XFGVIRT(Properties, get_Item) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ADOProperties * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOProperty **ppvObject); + + END_INTERFACE + } PropertiesVtbl; + interface Properties + { + CONST_VTBL struct PropertiesVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Properties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Properties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Properties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Properties_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Properties_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Properties_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Properties_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Properties_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Properties__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Properties_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Properties_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Properties_INTERFACE_DEFINED__ */ +#endif /* __ADODB_LIBRARY_DEFINED__ */ +/* interface __MIDL_itf_ado10_0000_0001 */ +/* [local] */ +#pragma warning(pop) +extern RPC_IF_HANDLE __MIDL_itf_ado10_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ado10_0000_0001_v0_0_s_ifspec; +/* Additional Prototypes for ALL interfaces */ +/* end of Additional Prototypes */ +#ifdef __cplusplus +} +#endif +#endif +#define ADOCommand _ADOCommand +#define ADORecordset _ADORecordset +#define ADOTransaction _ADOTransaction +#define ADOParameter _ADOParameter +#define ADOConnection _ADOConnection +#define ADOCollection _ADOCollection +#define ADODynaCollection _ADODynaCollection +#define ADORecord _ADORecord +#define ADORecField _ADORecField +#define ADOStream _ADOStream + + +#endif // _ADOINT_H_ +#endif // !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_WIN8) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoint_Backcompat.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoint_Backcompat.h new file mode 100644 index 0000000000000000000000000000000000000000..9e8d4f94bd0d57c14c6d57bea21439bf8976e90c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adoint_Backcompat.h @@ -0,0 +1,8713 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//----------------------------------------------------------------------------- +// File: adoint_Backcompat.h +// +// Contents: ADO Interface header +// +// Comments: This is essentially the file "adoint.h" shipped in Win7 SDK +//----------------------------------------------------------------------------- + +#ifndef _ADOINT_H_ +#define _ADOINT_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef _INC_TCHAR +#include +#endif + +#if (_MSC_VER >= 1100) && defined (__cplusplus) +#define DECLSPEC_UUID(x) __declspec(uuid(x)) +#else +#define DECLSPEC_UUID(x) +#endif + + +/* @@MIDL_FILE_HEADING( ) */ +#pragma warning( disable: 4049 ) /* more than 64k source lines */ +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif +#include "rpc.h" +#include "rpcndr.h" +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif // __RPCNDR_H_VERSION__ +#ifndef __ado10_h__ +#define __ado10_h__ +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif +/* Forward Declarations */ +#ifndef ___ADOCollection_FWD_DEFINED__ +#define ___ADOCollection_FWD_DEFINED__ +typedef interface _ADOCollection _ADOCollection; +#endif /* ___ADOCollection_FWD_DEFINED__ */ +#ifndef ___ADODynaCollection_FWD_DEFINED__ +#define ___ADODynaCollection_FWD_DEFINED__ +typedef interface _ADODynaCollection _ADODynaCollection; +#endif /* ___ADODynaCollection_FWD_DEFINED__ */ +#ifndef ___ADO_FWD_DEFINED__ +#define ___ADO_FWD_DEFINED__ +typedef interface _ADO _ADO; +#endif /* ___ADO_FWD_DEFINED__ */ +#ifndef __Error_FWD_DEFINED__ +#define __Error_FWD_DEFINED__ +typedef interface ADOError Error; +#endif /* __Error_FWD_DEFINED__ */ +#ifndef __Errors_FWD_DEFINED__ +#define __Errors_FWD_DEFINED__ +typedef interface ADOErrors Errors; +#endif /* __Errors_FWD_DEFINED__ */ +#ifndef __Command15_FWD_DEFINED__ +#define __Command15_FWD_DEFINED__ +typedef interface Command15 Command15; +#endif /* __Command15_FWD_DEFINED__ */ +#ifndef __Command25_FWD_DEFINED__ +#define __Command25_FWD_DEFINED__ +typedef interface Command25 Command25; +#endif /* __Command25_FWD_DEFINED__ */ +#ifndef ___Command_FWD_DEFINED__ +#define ___Command_FWD_DEFINED__ +typedef interface _ADOCommand _Command; +#endif /* ___Command_FWD_DEFINED__ */ +#ifndef __ConnectionEventsVt_FWD_DEFINED__ +#define __ConnectionEventsVt_FWD_DEFINED__ +typedef interface ConnectionEventsVt ConnectionEventsVt; +#endif /* __ConnectionEventsVt_FWD_DEFINED__ */ +#ifndef __RecordsetEventsVt_FWD_DEFINED__ +#define __RecordsetEventsVt_FWD_DEFINED__ +typedef interface RecordsetEventsVt RecordsetEventsVt; +#endif /* __RecordsetEventsVt_FWD_DEFINED__ */ +#ifndef __ConnectionEvents_FWD_DEFINED__ +#define __ConnectionEvents_FWD_DEFINED__ +typedef interface ConnectionEvents ConnectionEvents; +#endif /* __ConnectionEvents_FWD_DEFINED__ */ +#ifndef __RecordsetEvents_FWD_DEFINED__ +#define __RecordsetEvents_FWD_DEFINED__ +typedef interface RecordsetEvents RecordsetEvents; +#endif /* __RecordsetEvents_FWD_DEFINED__ */ +#ifndef __Connection15_FWD_DEFINED__ +#define __Connection15_FWD_DEFINED__ +typedef interface Connection15 Connection15; +#endif /* __Connection15_FWD_DEFINED__ */ +#ifndef ___Connection_FWD_DEFINED__ +#define ___Connection_FWD_DEFINED__ +typedef interface _ADOConnection _Connection; +#endif /* ___Connection_FWD_DEFINED__ */ +#ifndef __ADOConnectionConstruction15_FWD_DEFINED__ +#define __ADOConnectionConstruction15_FWD_DEFINED__ +typedef interface ADOConnectionConstruction15 ADOConnectionConstruction15; +#endif /* __ADOConnectionConstruction15_FWD_DEFINED__ */ +#ifndef __ADOConnectionConstruction_FWD_DEFINED__ +#define __ADOConnectionConstruction_FWD_DEFINED__ +typedef interface ADOConnectionConstruction ADOConnectionConstruction; +#endif /* __ADOConnectionConstruction_FWD_DEFINED__ */ +#ifndef __Connection_FWD_DEFINED__ +#define __Connection_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOConnection Connection; +#else +typedef struct ADOConnection Connection; +#endif /* __cplusplus */ +#endif /* __Connection_FWD_DEFINED__ */ +#ifndef ___Record_FWD_DEFINED__ +#define ___Record_FWD_DEFINED__ +typedef interface _ADORecord _Record; +#endif /* ___Record_FWD_DEFINED__ */ +#ifndef __Record_FWD_DEFINED__ +#define __Record_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADORecord Record; +#else +typedef struct ADORecord Record; +#endif /* __cplusplus */ +#endif /* __Record_FWD_DEFINED__ */ +#ifndef ___Stream_FWD_DEFINED__ +#define ___Stream_FWD_DEFINED__ +typedef interface _ADOStream _Stream; +#endif /* ___Stream_FWD_DEFINED__ */ +#ifndef __Stream_FWD_DEFINED__ +#define __Stream_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOStream Stream; +#else +typedef struct ADOStream Stream; +#endif /* __cplusplus */ +#endif /* __Stream_FWD_DEFINED__ */ +#ifndef __ADORecordConstruction_FWD_DEFINED__ +#define __ADORecordConstruction_FWD_DEFINED__ +typedef interface ADORecordConstruction ADORecordConstruction; +#endif /* __ADORecordConstruction_FWD_DEFINED__ */ +#ifndef __ADOStreamConstruction_FWD_DEFINED__ +#define __ADOStreamConstruction_FWD_DEFINED__ +typedef interface ADOStreamConstruction ADOStreamConstruction; +#endif /* __ADOStreamConstruction_FWD_DEFINED__ */ +#ifndef __ADOCommandConstruction_FWD_DEFINED__ +#define __ADOCommandConstruction_FWD_DEFINED__ +typedef interface ADOCommandConstruction ADOCommandConstruction; +#endif /* __ADOCommandConstruction_FWD_DEFINED__ */ +#ifndef __Command_FWD_DEFINED__ +#define __Command_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOCommand Command; +#else +typedef struct ADOCommand Command; +#endif /* __cplusplus */ +#endif /* __Command_FWD_DEFINED__ */ +#ifndef __Recordset_FWD_DEFINED__ +#define __Recordset_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADORecordset Recordset; +#else +typedef struct ADORecordset Recordset; +#endif /* __cplusplus */ +#endif /* __Recordset_FWD_DEFINED__ */ +#ifndef __Recordset15_FWD_DEFINED__ +#define __Recordset15_FWD_DEFINED__ +typedef interface Recordset15 Recordset15; +#endif /* __Recordset15_FWD_DEFINED__ */ +#ifndef __Recordset20_FWD_DEFINED__ +#define __Recordset20_FWD_DEFINED__ +typedef interface Recordset20 Recordset20; +#endif /* __Recordset20_FWD_DEFINED__ */ +#ifndef __Recordset21_FWD_DEFINED__ +#define __Recordset21_FWD_DEFINED__ +typedef interface Recordset21 Recordset21; +#endif /* __Recordset21_FWD_DEFINED__ */ +#ifndef ___Recordset_FWD_DEFINED__ +#define ___Recordset_FWD_DEFINED__ +typedef interface _ADORecordset _Recordset; +#endif /* ___Recordset_FWD_DEFINED__ */ +#ifndef __ADORecordsetConstruction_FWD_DEFINED__ +#define __ADORecordsetConstruction_FWD_DEFINED__ +typedef interface ADORecordsetConstruction ADORecordsetConstruction; +#endif /* __ADORecordsetConstruction_FWD_DEFINED__ */ +#ifndef __Field15_FWD_DEFINED__ +#define __Field15_FWD_DEFINED__ +typedef interface Field15 Field15; +#endif /* __Field15_FWD_DEFINED__ */ +#ifndef __Field20_FWD_DEFINED__ +#define __Field20_FWD_DEFINED__ +typedef interface Field20 Field20; +#endif /* __Field20_FWD_DEFINED__ */ +#ifndef __Field_FWD_DEFINED__ +#define __Field_FWD_DEFINED__ +typedef interface ADOField Field; +#endif /* __Field_FWD_DEFINED__ */ +#ifndef __Fields15_FWD_DEFINED__ +#define __Fields15_FWD_DEFINED__ +typedef interface Fields15 Fields15; +#endif /* __Fields15_FWD_DEFINED__ */ +#ifndef __Fields20_FWD_DEFINED__ +#define __Fields20_FWD_DEFINED__ +typedef interface Fields20 Fields20; +#endif /* __Fields20_FWD_DEFINED__ */ +#ifndef __Fields_FWD_DEFINED__ +#define __Fields_FWD_DEFINED__ +typedef interface ADOFields Fields; +#endif /* __Fields_FWD_DEFINED__ */ +#ifndef ___Parameter_FWD_DEFINED__ +#define ___Parameter_FWD_DEFINED__ +typedef interface _ADOParameter _Parameter; +#endif /* ___Parameter_FWD_DEFINED__ */ +#ifndef __Parameter_FWD_DEFINED__ +#define __Parameter_FWD_DEFINED__ +#ifdef __cplusplus +typedef class ADOParameter Parameter; +#else +typedef struct ADOParameter Parameter; +#endif /* __cplusplus */ +#endif /* __Parameter_FWD_DEFINED__ */ +#ifndef __Parameters_FWD_DEFINED__ +#define __Parameters_FWD_DEFINED__ +typedef interface ADOParameters Parameters; +#endif /* __Parameters_FWD_DEFINED__ */ +#ifndef __Property_FWD_DEFINED__ +#define __Property_FWD_DEFINED__ +typedef interface ADOProperty Property; +#endif /* __Property_FWD_DEFINED__ */ +#ifndef __Properties_FWD_DEFINED__ +#define __Properties_FWD_DEFINED__ +typedef interface ADOProperties Properties; +#endif /* __Properties_FWD_DEFINED__ */ +#ifdef __cplusplus +extern "C"{ +#endif +/* interface __MIDL_itf_ado10_0000_0000 */ +/* [local] */ +// VSTS 15030784: Wv17: Cleanup C4091: onecore\enduser\databaseaccess\src\mdac\shared\ado. See work item for more details on this suppression. +#pragma warning(push) // For C4091 +#pragma warning(disable:4091) // '': ignored on left of 'type' when no variable is declared +#if 0 +typedef /* [uuid][public] */ DECLSPEC_UUID("54D8B4B9-663B-4a9c-95F6-0E749ABD70F1") __int64 ADO_LONGPTR; +typedef /* [uuid][public] */ DECLSPEC_UUID("54D8B4B9-663B-4a9c-95F6-0E749ABD70F1") long ADO_LONGPTR; +#endif +#ifdef _WIN64 +// Number of rows +typedef LONGLONG ADO_LONGPTR; +#else +// Number of rows +typedef LONG ADO_LONGPTR; +#endif // _WIN64 +extern RPC_IF_HANDLE __MIDL_itf_ado10_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ado10_0000_0000_v0_0_s_ifspec; +#ifndef __ADODB_LIBRARY_DEFINED__ +#define __ADODB_LIBRARY_DEFINED__ +/* library ADODB */ +/* [helpstring][helpfile][version][uuid] */ +typedef /* [uuid][helpcontext][public] */ DECLSPEC_UUID("0000051B-0000-0010-8000-00AA006D2EA4") +enum CursorTypeEnum + { adOpenUnspecified = -1, + adOpenForwardOnly = 0, + adOpenKeyset = 1, + adOpenDynamic = 2, + adOpenStatic = 3 + } CursorTypeEnum; +typedef /* [uuid][helpcontext] */ DECLSPEC_UUID("0000051C-0000-0010-8000-00AA006D2EA4") +enum CursorOptionEnum + { adHoldRecords = 0x100, + adMovePrevious = 0x200, + adAddNew = 0x1000400, + adDelete = 0x1000800, + adUpdate = 0x1008000, + adBookmark = 0x2000, + adApproxPosition = 0x4000, + adUpdateBatch = 0x10000, + adResync = 0x20000, + adNotify = 0x40000, + adFind = 0x80000, + adSeek = 0x400000, + adIndex = 0x800000 + } CursorOptionEnum; +typedef /* [uuid][helpcontext] */ DECLSPEC_UUID("0000051D-0000-0010-8000-00AA006D2EA4") +enum LockTypeEnum + { adLockUnspecified = -1, + adLockReadOnly = 1, + adLockPessimistic = 2, + adLockOptimistic = 3, + adLockBatchOptimistic = 4 + } LockTypeEnum; +typedef /* [uuid][helpcontext] */ DECLSPEC_UUID("0000051E-0000-0010-8000-00AA006D2EA4") +enum ExecuteOptionEnum + { adOptionUnspecified = -1, + adAsyncExecute = 0x10, + adAsyncFetch = 0x20, + adAsyncFetchNonBlocking = 0x40, + adExecuteNoRecords = 0x80, + adExecuteStream = 0x400, + adExecuteRecord = 0x800 + } ExecuteOptionEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000541-0000-0010-8000-00AA006D2EA4") +enum ConnectOptionEnum + { adConnectUnspecified = -1, + adAsyncConnect = 0x10 + } ConnectOptionEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000532-0000-0010-8000-00AA006D2EA4") +enum ObjectStateEnum + { adStateClosed = 0, + adStateOpen = 0x1, + adStateConnecting = 0x2, + adStateExecuting = 0x4, + adStateFetching = 0x8 + } ObjectStateEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000052F-0000-0010-8000-00AA006D2EA4") +enum CursorLocationEnum + { adUseNone = 1, + adUseServer = 2, + adUseClient = 3, + adUseClientBatch = 3 + } CursorLocationEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000051F-0000-0010-8000-00AA006D2EA4") +enum DataTypeEnum + { adEmpty = 0, + adTinyInt = 16, + adSmallInt = 2, + adInteger = 3, + adBigInt = 20, + adUnsignedTinyInt = 17, + adUnsignedSmallInt = 18, + adUnsignedInt = 19, + adUnsignedBigInt = 21, + adSingle = 4, + adDouble = 5, + adCurrency = 6, + adDecimal = 14, + adNumeric = 131, + adBoolean = 11, + adError = 10, + adUserDefined = 132, + adVariant = 12, + adIDispatch = 9, + adIUnknown = 13, + adGUID = 72, + adDate = 7, + adDBDate = 133, + adDBTime = 134, + adDBTimeStamp = 135, + adBSTR = 8, + adChar = 129, + adVarChar = 200, + adLongVarChar = 201, + adWChar = 130, + adVarWChar = 202, + adLongVarWChar = 203, + adBinary = 128, + adVarBinary = 204, + adLongVarBinary = 205, + adChapter = 136, + adFileTime = 64, + adPropVariant = 138, + adVarNumeric = 139, + adArray = 0x2000 + } DataTypeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000525-0000-0010-8000-00AA006D2EA4") +enum FieldAttributeEnum + { adFldUnspecified = -1, + adFldMayDefer = 0x2, + adFldUpdatable = 0x4, + adFldUnknownUpdatable = 0x8, + adFldFixed = 0x10, + adFldIsNullable = 0x20, + adFldMayBeNull = 0x40, + adFldLong = 0x80, + adFldRowID = 0x100, + adFldRowVersion = 0x200, + adFldCacheDeferred = 0x1000, + adFldIsChapter = 0x2000, + adFldNegativeScale = 0x4000, + adFldKeyColumn = 0x8000, + adFldIsRowURL = 0x10000, + adFldIsDefaultStream = 0x20000, + adFldIsCollection = 0x40000 + } FieldAttributeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000526-0000-0010-8000-00AA006D2EA4") +enum EditModeEnum + { adEditNone = 0, + adEditInProgress = 0x1, + adEditAdd = 0x2, + adEditDelete = 0x4 + } EditModeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000527-0000-0010-8000-00AA006D2EA4") +enum RecordStatusEnum + { adRecOK = 0, + adRecNew = 0x1, + adRecModified = 0x2, + adRecDeleted = 0x4, + adRecUnmodified = 0x8, + adRecInvalid = 0x10, + adRecMultipleChanges = 0x40, + adRecPendingChanges = 0x80, + adRecCanceled = 0x100, + adRecCantRelease = 0x400, + adRecConcurrencyViolation = 0x800, + adRecIntegrityViolation = 0x1000, + adRecMaxChangesExceeded = 0x2000, + adRecObjectOpen = 0x4000, + adRecOutOfMemory = 0x8000, + adRecPermissionDenied = 0x10000, + adRecSchemaViolation = 0x20000, + adRecDBDeleted = 0x40000 + } RecordStatusEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000542-0000-0010-8000-00AA006D2EA4") +enum GetRowsOptionEnum + { adGetRowsRest = -1 + } GetRowsOptionEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000528-0000-0010-8000-00AA006D2EA4") +enum PositionEnum + { adPosUnknown = -1, + adPosBOF = -2, + adPosEOF = -3 + } PositionEnum; +#if 0 +typedef /* [uuid][public] */ DECLSPEC_UUID("A56187C5-D690-4037-AE32-A00EDC376AC3") __int64 PositionEnum_Param; +typedef /* [uuid][public] */ DECLSPEC_UUID("A56187C5-D690-4037-AE32-A00EDC376AC3") PositionEnum PositionEnum_Param; +#endif +#ifdef _WIN64 + typedef LONGLONG PositionEnum_Param; +#else + typedef PositionEnum PositionEnum_Param; +#endif +typedef /* [helpcontext] */ +enum BookmarkEnum + { adBookmarkCurrent = 0, + adBookmarkFirst = 1, + adBookmarkLast = 2 + } BookmarkEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000540-0000-0010-8000-00AA006D2EA4") +enum MarshalOptionsEnum + { adMarshalAll = 0, + adMarshalModifiedOnly = 1 + } MarshalOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000543-0000-0010-8000-00AA006D2EA4") +enum AffectEnum + { adAffectCurrent = 1, + adAffectGroup = 2, + adAffectAll = 3, + adAffectAllChapters = 4 + } AffectEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000544-0000-0010-8000-00AA006D2EA4") +enum ResyncEnum + { adResyncUnderlyingValues = 1, + adResyncAllValues = 2 + } ResyncEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000545-0000-0010-8000-00AA006D2EA4") +enum CompareEnum + { adCompareLessThan = 0, + adCompareEqual = 1, + adCompareGreaterThan = 2, + adCompareNotEqual = 3, + adCompareNotComparable = 4 + } CompareEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000546-0000-0010-8000-00AA006D2EA4") +enum FilterGroupEnum + { adFilterNone = 0, + adFilterPendingRecords = 1, + adFilterAffectedRecords = 2, + adFilterFetchedRecords = 3, + adFilterPredicate = 4, + adFilterConflictingRecords = 5 + } FilterGroupEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000547-0000-0010-8000-00AA006D2EA4") +enum SearchDirectionEnum + { adSearchForward = 1, + adSearchBackward = -1 + } SearchDirectionEnum; +typedef /* [hidden] */ SearchDirectionEnum SearchDirection; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000548-0000-0010-8000-00AA006D2EA4") +enum PersistFormatEnum + { adPersistADTG = 0, + adPersistXML = 1 + } PersistFormatEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000549-0000-0010-8000-00AA006D2EA4") +enum StringFormatEnum + { adClipString = 2 + } StringFormatEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000520-0000-0010-8000-00AA006D2EA4") +enum ConnectPromptEnum + { adPromptAlways = 1, + adPromptComplete = 2, + adPromptCompleteRequired = 3, + adPromptNever = 4 + } ConnectPromptEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000521-0000-0010-8000-00AA006D2EA4") +enum ConnectModeEnum + { adModeUnknown = 0, + adModeRead = 1, + adModeWrite = 2, + adModeReadWrite = 3, + adModeShareDenyRead = 4, + adModeShareDenyWrite = 8, + adModeShareExclusive = 0xc, + adModeShareDenyNone = 0x10, + adModeRecursive = 0x400000 + } ConnectModeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000570-0000-0010-8000-00AA006D2EA4") +enum RecordCreateOptionsEnum + { adCreateCollection = 0x2000, + adCreateStructDoc = 0x80000000, + adCreateNonCollection = 0, + adOpenIfExists = 0x2000000, + adCreateOverwrite = 0x4000000, + adFailIfNotExists = -1 + } RecordCreateOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000571-0000-0010-8000-00AA006D2EA4") +enum RecordOpenOptionsEnum + { adOpenRecordUnspecified = -1, + adOpenSource = 0x800000, + adOpenOutput = 0x800000, + adOpenAsync = 0x1000, + adDelayFetchStream = 0x4000, + adDelayFetchFields = 0x8000, + adOpenExecuteCommand = 0x10000 + } RecordOpenOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000523-0000-0010-8000-00AA006D2EA4") +enum IsolationLevelEnum + { adXactUnspecified = 0xffffffff, + adXactChaos = 0x10, + adXactReadUncommitted = 0x100, + adXactBrowse = 0x100, + adXactCursorStability = 0x1000, + adXactReadCommitted = 0x1000, + adXactRepeatableRead = 0x10000, + adXactSerializable = 0x100000, + adXactIsolated = 0x100000 + } IsolationLevelEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000524-0000-0010-8000-00AA006D2EA4") +enum XactAttributeEnum + { adXactCommitRetaining = 0x20000, + adXactAbortRetaining = 0x40000, + adXactAsyncPhaseOne = 0x80000, + adXactSyncPhaseOne = 0x100000 + } XactAttributeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000529-0000-0010-8000-00AA006D2EA4") +enum PropertyAttributesEnum + { adPropNotSupported = 0, + adPropRequired = 0x1, + adPropOptional = 0x2, + adPropRead = 0x200, + adPropWrite = 0x400 + } PropertyAttributesEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000052A-0000-0010-8000-00AA006D2EA4") +enum ErrorValueEnum + { adErrProviderFailed = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbb8), + adErrInvalidArgument = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbb9), + adErrOpeningFile = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbba), + adErrReadFile = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbbb), + adErrWriteFile = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbbc), + adErrNoCurrentRecord = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xbcd), + adErrIllegalOperation = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xc93), + adErrCantChangeProvider = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xc94), + adErrInTransaction = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xcae), + adErrFeatureNotAvailable = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xcb3), + adErrItemNotFound = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xcc1), + adErrObjectInCollection = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xd27), + adErrObjectNotSet = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xd5c), + adErrDataConversion = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xd5d), + adErrObjectClosed = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe78), + adErrObjectOpen = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe79), + adErrProviderNotFound = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7a), + adErrBoundToCommand = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7b), + adErrInvalidParamInfo = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7c), + adErrInvalidConnection = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7d), + adErrNotReentrant = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7e), + adErrStillExecuting = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe7f), + adErrOperationCancelled = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe80), + adErrStillConnecting = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe81), + adErrInvalidTransaction = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe82), + adErrNotExecuting = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe83), + adErrUnsafeOperation = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe84), + adwrnSecurityDialog = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe85), + adwrnSecurityDialogHeader = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe86), + adErrIntegrityViolation = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe87), + adErrPermissionDenied = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe88), + adErrDataOverflow = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe89), + adErrSchemaViolation = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8a), + adErrSignMismatch = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8b), + adErrCantConvertvalue = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8c), + adErrCantCreate = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8d), + adErrColumnNotOnThisRow = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8e), + adErrURLDoesNotExist = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe8f), + adErrTreePermissionDenied = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe90), + adErrInvalidURL = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe91), + adErrResourceLocked = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe92), + adErrResourceExists = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe93), + adErrCannotComplete = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe94), + adErrVolumeNotFound = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe95), + adErrOutOfSpace = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe96), + adErrResourceOutOfScope = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe97), + adErrUnavailable = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe98), + adErrURLNamedRowDoesNotExist = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe99), + adErrDelResOutOfScope = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9a), + adErrPropInvalidColumn = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9b), + adErrPropInvalidOption = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9c), + adErrPropInvalidValue = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9d), + adErrPropConflicting = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9e), + adErrPropNotAllSettable = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xe9f), + adErrPropNotSet = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea0), + adErrPropNotSettable = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea1), + adErrPropNotSupported = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea2), + adErrCatalogNotSet = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea3), + adErrCantChangeConnection = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea4), + adErrFieldsUpdateFailed = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea5), + adErrDenyNotSupported = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea6), + adErrDenyTypeNotSupported = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea7), + adErrProviderNotSpecified = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xea9), + adErrConnectionStringTooLong = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_CONTROL, 0xeaa) + } ErrorValueEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000052B-0000-0010-8000-00AA006D2EA4") +enum ParameterAttributesEnum + { adParamSigned = 0x10, + adParamNullable = 0x40, + adParamLong = 0x80 + } ParameterAttributesEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000052C-0000-0010-8000-00AA006D2EA4") +enum ParameterDirectionEnum + { adParamUnknown = 0, + adParamInput = 0x1, + adParamOutput = 0x2, + adParamInputOutput = 0x3, + adParamReturnValue = 0x4 + } ParameterDirectionEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000052E-0000-0010-8000-00AA006D2EA4") +enum CommandTypeEnum + { adCmdUnspecified = -1, + adCmdUnknown = 0x8, + adCmdText = 0x1, + adCmdTable = 0x2, + adCmdStoredProc = 0x4, + adCmdFile = 0x100, + adCmdTableDirect = 0x200 + } CommandTypeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000530-0000-0010-8000-00AA006D2EA4") +enum EventStatusEnum + { adStatusOK = 0x1, + adStatusErrorsOccurred = 0x2, + adStatusCantDeny = 0x3, + adStatusCancel = 0x4, + adStatusUnwantedEvent = 0x5 + } EventStatusEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000531-0000-0010-8000-00AA006D2EA4") +enum EventReasonEnum + { adRsnAddNew = 1, + adRsnDelete = 2, + adRsnUpdate = 3, + adRsnUndoUpdate = 4, + adRsnUndoAddNew = 5, + adRsnUndoDelete = 6, + adRsnRequery = 7, + adRsnResynch = 8, + adRsnClose = 9, + adRsnMove = 10, + adRsnFirstChange = 11, + adRsnMoveFirst = 12, + adRsnMoveNext = 13, + adRsnMovePrevious = 14, + adRsnMoveLast = 15 + } EventReasonEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000533-0000-0010-8000-00AA006D2EA4") +enum SchemaEnum + { adSchemaProviderSpecific = -1, + adSchemaAsserts = 0, + adSchemaCatalogs = 1, + adSchemaCharacterSets = 2, + adSchemaCollations = 3, + adSchemaColumns = 4, + adSchemaCheckConstraints = 5, + adSchemaConstraintColumnUsage = 6, + adSchemaConstraintTableUsage = 7, + adSchemaKeyColumnUsage = 8, + adSchemaReferentialContraints = 9, + adSchemaReferentialConstraints = 9, + adSchemaTableConstraints = 10, + adSchemaColumnsDomainUsage = 11, + adSchemaIndexes = 12, + adSchemaColumnPrivileges = 13, + adSchemaTablePrivileges = 14, + adSchemaUsagePrivileges = 15, + adSchemaProcedures = 16, + adSchemaSchemata = 17, + adSchemaSQLLanguages = 18, + adSchemaStatistics = 19, + adSchemaTables = 20, + adSchemaTranslations = 21, + adSchemaProviderTypes = 22, + adSchemaViews = 23, + adSchemaViewColumnUsage = 24, + adSchemaViewTableUsage = 25, + adSchemaProcedureParameters = 26, + adSchemaForeignKeys = 27, + adSchemaPrimaryKeys = 28, + adSchemaProcedureColumns = 29, + adSchemaDBInfoKeywords = 30, + adSchemaDBInfoLiterals = 31, + adSchemaCubes = 32, + adSchemaDimensions = 33, + adSchemaHierarchies = 34, + adSchemaLevels = 35, + adSchemaMeasures = 36, + adSchemaProperties = 37, + adSchemaMembers = 38, + adSchemaTrustees = 39, + adSchemaFunctions = 40, + adSchemaActions = 41, + adSchemaCommands = 42, + adSchemaSets = 43 + } SchemaEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000057E-0000-0010-8000-00AA006D2EA4") +enum FieldStatusEnum + { adFieldOK = 0, + adFieldCantConvertValue = 2, + adFieldIsNull = 3, + adFieldTruncated = 4, + adFieldSignMismatch = 5, + adFieldDataOverflow = 6, + adFieldCantCreate = 7, + adFieldUnavailable = 8, + adFieldPermissionDenied = 9, + adFieldIntegrityViolation = 10, + adFieldSchemaViolation = 11, + adFieldBadStatus = 12, + adFieldDefault = 13, + adFieldIgnore = 15, + adFieldDoesNotExist = 16, + adFieldInvalidURL = 17, + adFieldResourceLocked = 18, + adFieldResourceExists = 19, + adFieldCannotComplete = 20, + adFieldVolumeNotFound = 21, + adFieldOutOfSpace = 22, + adFieldCannotDeleteSource = 23, + adFieldReadOnly = 24, + adFieldResourceOutOfScope = 25, + adFieldAlreadyExists = 26, + adFieldPendingInsert = 0x10000, + adFieldPendingDelete = 0x20000, + adFieldPendingChange = 0x40000, + adFieldPendingUnknown = 0x80000, + adFieldPendingUnknownDelete = 0x100000 + } FieldStatusEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000552-0000-0010-8000-00AA006D2EA4") +enum SeekEnum + { adSeekFirstEQ = 0x1, + adSeekLastEQ = 0x2, + adSeekAfterEQ = 0x4, + adSeekAfter = 0x8, + adSeekBeforeEQ = 0x10, + adSeekBefore = 0x20 + } SeekEnum; +#ifndef _COMMON_ADC_AND_ADO_PROPS_ +#define _COMMON_ADC_AND_ADO_PROPS_ +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000054A-0000-0010-8000-00AA006D2EA4") +enum ADCPROP_UPDATECRITERIA_ENUM + { adCriteriaKey = 0, + adCriteriaAllCols = 1, + adCriteriaUpdCols = 2, + adCriteriaTimeStamp = 3 + } ADCPROP_UPDATECRITERIA_ENUM; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000054B-0000-0010-8000-00AA006D2EA4") +enum ADCPROP_ASYNCTHREADPRIORITY_ENUM + { adPriorityLowest = 1, + adPriorityBelowNormal = 2, + adPriorityNormal = 3, + adPriorityAboveNormal = 4, + adPriorityHighest = 5 + } ADCPROP_ASYNCTHREADPRIORITY_ENUM; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000554-0000-0010-8000-00AA006D2EA4") +enum ADCPROP_AUTORECALC_ENUM + { adRecalcUpFront = 0, + adRecalcAlways = 1 + } ADCPROP_AUTORECALC_ENUM; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000553-0000-0010-8000-00AA006D2EA4") +enum ADCPROP_UPDATERESYNC_ENUM + { adResyncNone = 0, + adResyncAutoIncrement = 1, + adResyncConflicts = 2, + adResyncUpdates = 4, + adResyncInserts = 8, + adResyncAll = 15 + } ADCPROP_UPDATERESYNC_ENUM; +#endif /* _COMMON_ADC_AND_ADO_PROPS_ */ +typedef ADCPROP_UPDATERESYNC_ENUM CEResyncEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000573-0000-0010-8000-00AA006D2EA4") +enum MoveRecordOptionsEnum + { adMoveUnspecified = -1, + adMoveOverWrite = 1, + adMoveDontUpdateLinks = 2, + adMoveAllowEmulation = 4 + } MoveRecordOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000574-0000-0010-8000-00AA006D2EA4") +enum CopyRecordOptionsEnum + { adCopyUnspecified = -1, + adCopyOverWrite = 1, + adCopyAllowEmulation = 4, + adCopyNonRecursive = 2 + } CopyRecordOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000576-0000-0010-8000-00AA006D2EA4") +enum StreamTypeEnum + { adTypeBinary = 1, + adTypeText = 2 + } StreamTypeEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("00000577-0000-0010-8000-00AA006D2EA4") +enum LineSeparatorEnum + { adLF = 10, + adCR = 13, + adCRLF = -1 + } LineSeparatorEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000057A-0000-0010-8000-00AA006D2EA4") +enum StreamOpenOptionsEnum + { adOpenStreamUnspecified = -1, + adOpenStreamAsync = 1, + adOpenStreamFromRecord = 4 + } StreamOpenOptionsEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000057B-0000-0010-8000-00AA006D2EA4") +enum StreamWriteEnum + { adWriteChar = 0, + adWriteLine = 1, + stWriteChar = 0, + stWriteLine = 1 + } StreamWriteEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000057C-0000-0010-8000-00AA006D2EA4") +enum SaveOptionsEnum + { adSaveCreateNotExist = 1, + adSaveCreateOverWrite = 2 + } SaveOptionsEnum; +typedef /* [helpcontext] */ +enum FieldEnum + { adDefaultStream = -1, + adRecordURL = -2 + } FieldEnum; +typedef /* [helpcontext] */ +enum StreamReadEnum + { adReadAll = -1, + adReadLine = -2 + } StreamReadEnum; +typedef /* [helpcontext][uuid] */ DECLSPEC_UUID("0000057D-0000-0010-8000-00AA006D2EA4") +enum RecordTypeEnum + { adSimpleRecord = 0, + adCollectionRecord = 1, + adStructDoc = 2 + } RecordTypeEnum; +EXTERN_C const IID LIBID_ADODB; +#ifndef ___ADOCollection_INTERFACE_DEFINED__ +#define ___ADOCollection_INTERFACE_DEFINED__ +/* interface _ADOCollection */ +/* [object][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__ADOCollection; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000512-0000-0010-8000-00AA006D2EA4") + _ADOCollection : public IDispatch + { + public: + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *c) = 0; + + virtual /* [id][restricted] */ HRESULT STDMETHODCALLTYPE _NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject) = 0; + + virtual /* [id][helpcontext] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + }; + +#else /* C style interface */ + typedef struct _ADOCollectionVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADOCollection * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADOCollection * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADOCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADOCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADOCollection * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in _ADOCollection * This, + /* [retval][out] */ __RPC__out long *c); + + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in _ADOCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in _ADOCollection * This); + + END_INTERFACE + } _ADOCollectionVtbl; + interface _ADOCollection + { + CONST_VTBL struct _ADOCollectionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _ADOCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _ADOCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _ADOCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _ADOCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _ADOCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _ADOCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _ADOCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Collection_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define _ADOCollection__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define _ADOCollection_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___ADOCollection_INTERFACE_DEFINED__ */ +#ifndef ___ADODynaCollection_INTERFACE_DEFINED__ +#define ___ADODynaCollection_INTERFACE_DEFINED__ +/* interface _ADODynaCollection */ +/* [object][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__ADODynaCollection; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000513-0000-0010-8000-00AA006D2EA4") + _ADODynaCollection : public _ADOCollection + { + public: + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ __RPC__in_opt IDispatch *Object) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Index) = 0; + + }; + +#else /* C style interface */ + typedef struct _ADODynaCollectionVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADODynaCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADODynaCollection * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADODynaCollection * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADODynaCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADODynaCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADODynaCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADODynaCollection * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in _ADODynaCollection * This, + /* [retval][out] */ __RPC__out long *c); + + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in _ADODynaCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in _ADODynaCollection * This); + + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in _ADODynaCollection * This, + /* [in] */ __RPC__in_opt IDispatch *Object); + + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in _ADODynaCollection * This, + /* [in] */ VARIANT Index); + + END_INTERFACE + } _ADODynaCollectionVtbl; + interface _ADODynaCollection + { + CONST_VTBL struct _ADODynaCollectionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _ADODynaCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _ADODynaCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _ADODynaCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _ADODynaCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _ADODynaCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _ADODynaCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _ADODynaCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _DynaCollection_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define _ADODynaCollection__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define _ADODynaCollection_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define _ADODynaCollection_Append(This,Object) \ + ( (This)->lpVtbl -> Append(This,Object) ) +#define _ADODynaCollection_Delete(This,Index) \ + ( (This)->lpVtbl -> Delete(This,Index) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___ADODynaCollection_INTERFACE_DEFINED__ */ +#ifndef ___ADO_INTERFACE_DEFINED__ +#define ___ADO_INTERFACE_DEFINED__ +/* interface _ADO */ +/* [object][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__ADO; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000534-0000-0010-8000-00AA006D2EA4") + _ADO : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt ADOProperties **ppvObject) = 0; + + }; + +#else /* C style interface */ + typedef struct _ADOVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ADO * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ADO * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ADO * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ADO * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ADO * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ADO * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ADO * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in _ADO * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + END_INTERFACE + } _ADOVtbl; + interface _ADO + { + CONST_VTBL struct _ADOVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _ADO_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _ADO_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _ADO_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _ADO_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _ADO_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _ADO_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _ADO_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _ADO_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___ADO_INTERFACE_DEFINED__ */ +#ifndef __Error_INTERFACE_DEFINED__ +#define __Error_INTERFACE_DEFINED__ +/* interface ADOError */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Error; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000500-0000-0010-8000-00AA006D2EA4") + ADOError : public IDispatch + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Number( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Source( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_HelpFile( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_HelpContext( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_SQLState( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_NativeError( + /* [retval][out] */ __RPC__out long *pl) = 0; + + }; + +#else /* C style interface */ + typedef struct ErrorVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct ADOError * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct ADOError * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct ADOError * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct ADOError * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct ADOError * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct ADOError * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct ADOError * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Number )( + __RPC__in struct ADOError * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in struct ADOError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in struct ADOError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_HelpFile )( + __RPC__in struct ADOError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_HelpContext )( + __RPC__in struct ADOError * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SQLState )( + __RPC__in struct ADOError * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NativeError )( + __RPC__in struct ADOError * This, + /* [retval][out] */ __RPC__out long *pl); + + END_INTERFACE + } ErrorVtbl; + interface Error + { + CONST_VTBL struct ErrorVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Error_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Error_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Error_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Error_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Error_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Error_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Error_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Error_get_Number(This,pl) \ + ( (This)->lpVtbl -> get_Number(This,pl) ) +#define Error_get_Source(This,pbstr) \ + ( (This)->lpVtbl -> get_Source(This,pbstr) ) +#define Error_get_Description(This,pbstr) \ + ( (This)->lpVtbl -> get_Description(This,pbstr) ) +#define Error_get_HelpFile(This,pbstr) \ + ( (This)->lpVtbl -> get_HelpFile(This,pbstr) ) +#define Error_get_HelpContext(This,pl) \ + ( (This)->lpVtbl -> get_HelpContext(This,pl) ) +#define Error_get_SQLState(This,pbstr) \ + ( (This)->lpVtbl -> get_SQLState(This,pbstr) ) +#define Error_get_NativeError(This,pl) \ + ( (This)->lpVtbl -> get_NativeError(This,pl) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Error_INTERFACE_DEFINED__ */ +#ifndef __Errors_INTERFACE_DEFINED__ +#define __Errors_INTERFACE_DEFINED__ +/* interface ADOErrors */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Errors; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000501-0000-0010-8000-00AA006D2EA4") + ADOErrors : public _ADOCollection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOError **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + }; + +#else /* C style interface */ + typedef struct ErrorsVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct ADOErrors * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct ADOErrors * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct ADOErrors * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct ADOErrors * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct ADOErrors * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct ADOErrors * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct ADOErrors * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in struct ADOErrors * This, + /* [retval][out] */ __RPC__out long *c); + + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in struct ADOErrors * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in struct ADOErrors * This); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in struct ADOErrors * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt struct ADOError **ppvObject); + + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in struct ADOErrors * This); + + END_INTERFACE + } ErrorsVtbl; + interface Errors + { + CONST_VTBL struct ErrorsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Errors_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Errors_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Errors_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Errors_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Errors_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Errors_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Errors_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Errors_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Errors__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Errors_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Errors_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#define Errors_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Errors_INTERFACE_DEFINED__ */ +#ifndef __Command15_INTERFACE_DEFINED__ +#define __Command15_INTERFACE_DEFINED__ +/* interface Command15 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Command15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000508-0000-0010-8000-00AA006D2EA4") + Command15 : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__deref_out_opt _ADOConnection **ppvObject) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_ActiveConnection( + /* [in] */ __RPC__in_opt _ADOConnection *pCon) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_ActiveConnection( + /* [in] */ VARIANT vConn) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CommandText( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CommandText( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CommandTimeout( + /* [retval][out] */ __RPC__out LONG *pl) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CommandTimeout( + /* [in] */ LONG Timeout) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Prepared( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfPrepared) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Prepared( + /* [in] */ VARIANT_BOOL fPrepared) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Execute( + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [optional][in] */ __RPC__in VARIANT *Parameters, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppirs) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CreateParameter( + /* [defaultvalue][in] */ __RPC__in BSTR Name, + /* [defaultvalue][in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ParameterDirectionEnum Direction, + /* [defaultvalue][in] */ ADO_LONGPTR Size, + /* [optional][in] */ VARIANT Value, + /* [retval][out] */ __RPC__deref_out_opt _ADOParameter **ppiprm) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Parameters( + /* [retval][out] */ __RPC__deref_out_opt ADOParameters **ppvObject) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CommandType( + /* [in] */ CommandTypeEnum lCmdType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CommandType( + /* [retval][out] */ __RPC__out CommandTypeEnum *plCmdType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + }; + +#else /* C style interface */ + typedef struct Command15Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Command15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Command15 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Command15 * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Command15 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Command15 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Command15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Command15 * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__deref_out_opt struct _ADOConnection **ppvObject); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in Command15 * This, + /* [in] */ __RPC__in_opt struct _ADOConnection *pCon); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in Command15 * This, + /* [in] */ VARIANT vConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandText )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandText )( + __RPC__in Command15 * This, + /* [in] */ __RPC__in BSTR bstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandTimeout )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__out LONG *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandTimeout )( + __RPC__in Command15 * This, + /* [in] */ LONG Timeout); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Prepared )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfPrepared); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Prepared )( + __RPC__in Command15 * This, + /* [in] */ VARIANT_BOOL fPrepared); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in Command15 * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [optional][in] */ __RPC__in VARIANT *Parameters, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppirs); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreateParameter )( + __RPC__in Command15 * This, + /* [defaultvalue][in] */ __RPC__in BSTR Name, + /* [defaultvalue][in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ParameterDirectionEnum Direction, + /* [defaultvalue][in] */ ADO_LONGPTR Size, + /* [optional][in] */ VARIANT Value, + /* [retval][out] */ __RPC__deref_out_opt struct _ADOParameter **ppiprm); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOParameters **ppvObject); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandType )( + __RPC__in Command15 * This, + /* [in] */ CommandTypeEnum lCmdType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandType )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__out CommandTypeEnum *plCmdType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Command15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in Command15 * This, + /* [in] */ __RPC__in BSTR bstrName); + + END_INTERFACE + } Command15Vtbl; + interface Command15 + { + CONST_VTBL struct Command15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Command15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Command15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Command15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Command15_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Command15_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Command15_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Command15_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Command15_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Command15_get_ActiveConnection(This,ppvObject) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,ppvObject) ) +#define Command15_putref_ActiveConnection(This,pCon) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pCon) ) +#define Command15_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define Command15_get_CommandText(This,pbstr) \ + ( (This)->lpVtbl -> get_CommandText(This,pbstr) ) +#define Command15_put_CommandText(This,bstr) \ + ( (This)->lpVtbl -> put_CommandText(This,bstr) ) +#define Command15_get_CommandTimeout(This,pl) \ + ( (This)->lpVtbl -> get_CommandTimeout(This,pl) ) +#define Command15_put_CommandTimeout(This,Timeout) \ + ( (This)->lpVtbl -> put_CommandTimeout(This,Timeout) ) +#define Command15_get_Prepared(This,pfPrepared) \ + ( (This)->lpVtbl -> get_Prepared(This,pfPrepared) ) +#define Command15_put_Prepared(This,fPrepared) \ + ( (This)->lpVtbl -> put_Prepared(This,fPrepared) ) +#define Command15_Execute(This,RecordsAffected,Parameters,Options,ppirs) \ + ( (This)->lpVtbl -> Execute(This,RecordsAffected,Parameters,Options,ppirs) ) +#define Command15_CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) \ + ( (This)->lpVtbl -> CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) ) +#define Command15_get_Parameters(This,ppvObject) \ + ( (This)->lpVtbl -> get_Parameters(This,ppvObject) ) +#define Command15_put_CommandType(This,lCmdType) \ + ( (This)->lpVtbl -> put_CommandType(This,lCmdType) ) +#define Command15_get_CommandType(This,plCmdType) \ + ( (This)->lpVtbl -> get_CommandType(This,plCmdType) ) +#define Command15_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) +#define Command15_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Command15_INTERFACE_DEFINED__ */ +#ifndef __Command25_INTERFACE_DEFINED__ +#define __Command25_INTERFACE_DEFINED__ +/* interface Command25 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Command25; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000054E-0000-0010-8000-00AA006D2EA4") + Command25 : public Command15 + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out LONG *plObjState) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + +#else /* C style interface */ + typedef struct Command25Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Command25 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Command25 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Command25 * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Command25 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Command25 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Command25 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Command25 * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__deref_out_opt struct _ADOConnection **ppvObject); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in Command25 * This, + /* [in] */ __RPC__in_opt struct _ADOConnection *pCon); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in Command25 * This, + /* [in] */ VARIANT vConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandText )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandText )( + __RPC__in Command25 * This, + /* [in] */ __RPC__in BSTR bstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandTimeout )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__out LONG *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandTimeout )( + __RPC__in Command25 * This, + /* [in] */ LONG Timeout); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Prepared )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfPrepared); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Prepared )( + __RPC__in Command25 * This, + /* [in] */ VARIANT_BOOL fPrepared); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in Command25 * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [optional][in] */ __RPC__in VARIANT *Parameters, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppirs); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreateParameter )( + __RPC__in Command25 * This, + /* [defaultvalue][in] */ __RPC__in BSTR Name, + /* [defaultvalue][in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ParameterDirectionEnum Direction, + /* [defaultvalue][in] */ ADO_LONGPTR Size, + /* [optional][in] */ VARIANT Value, + /* [retval][out] */ __RPC__deref_out_opt struct _ADOParameter **ppiprm); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOParameters **ppvObject); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandType )( + __RPC__in Command25 * This, + /* [in] */ CommandTypeEnum lCmdType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandType )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__out CommandTypeEnum *plCmdType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in Command25 * This, + /* [in] */ __RPC__in BSTR bstrName); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in Command25 * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in Command25 * This); + + END_INTERFACE + } Command25Vtbl; + interface Command25 + { + CONST_VTBL struct Command25Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Command25_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Command25_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Command25_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Command25_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Command25_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Command25_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Command25_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Command25_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Command25_get_ActiveConnection(This,ppvObject) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,ppvObject) ) +#define Command25_putref_ActiveConnection(This,pCon) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pCon) ) +#define Command25_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define Command25_get_CommandText(This,pbstr) \ + ( (This)->lpVtbl -> get_CommandText(This,pbstr) ) +#define Command25_put_CommandText(This,bstr) \ + ( (This)->lpVtbl -> put_CommandText(This,bstr) ) +#define Command25_get_CommandTimeout(This,pl) \ + ( (This)->lpVtbl -> get_CommandTimeout(This,pl) ) +#define Command25_put_CommandTimeout(This,Timeout) \ + ( (This)->lpVtbl -> put_CommandTimeout(This,Timeout) ) +#define Command25_get_Prepared(This,pfPrepared) \ + ( (This)->lpVtbl -> get_Prepared(This,pfPrepared) ) +#define Command25_put_Prepared(This,fPrepared) \ + ( (This)->lpVtbl -> put_Prepared(This,fPrepared) ) +#define Command25_Execute(This,RecordsAffected,Parameters,Options,ppirs) \ + ( (This)->lpVtbl -> Execute(This,RecordsAffected,Parameters,Options,ppirs) ) +#define Command25_CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) \ + ( (This)->lpVtbl -> CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) ) +#define Command25_get_Parameters(This,ppvObject) \ + ( (This)->lpVtbl -> get_Parameters(This,ppvObject) ) +#define Command25_put_CommandType(This,lCmdType) \ + ( (This)->lpVtbl -> put_CommandType(This,lCmdType) ) +#define Command25_get_CommandType(This,plCmdType) \ + ( (This)->lpVtbl -> get_CommandType(This,plCmdType) ) +#define Command25_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) +#define Command25_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) +#define Command25_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define Command25_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Command25_INTERFACE_DEFINED__ */ +#ifndef ___Command_INTERFACE_DEFINED__ +#define ___Command_INTERFACE_DEFINED__ +/* interface _ADOCommand */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__Command; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B08400BD-F9D1-4D02-B856-71D5DBA123E9") + _ADOCommand : public Command25 + { + public: + virtual /* [helpcontext][propputref][id] */ HRESULT __stdcall putref_CommandStream( + /* [in] */ __RPC__in_opt IUnknown *pStream) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT __stdcall get_CommandStream( + /* [retval][out] */ __RPC__out VARIANT *pvStream) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT __stdcall put_Dialect( + /* [in] */ __RPC__in BSTR bstrDialect) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT __stdcall get_Dialect( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDialect) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT __stdcall put_NamedParameters( + /* [in] */ VARIANT_BOOL fNamedParameters) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT __stdcall get_NamedParameters( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfNamedParameters) = 0; + + }; + +#else /* C style interface */ + typedef struct _CommandVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct _ADOCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct _ADOCommand * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct _ADOCommand * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct _ADOCommand * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct _ADOCommand * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct _ADOCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct _ADOCommand * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt struct _ADOConnection **ppvObject); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in struct _ADOCommand * This, + /* [in] */ __RPC__in_opt struct _ADOConnection *pCon); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in struct _ADOCommand * This, + /* [in] */ VARIANT vConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandText )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandText )( + __RPC__in struct _ADOCommand * This, + /* [in] */ __RPC__in BSTR bstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandTimeout )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__out LONG *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandTimeout )( + __RPC__in struct _ADOCommand * This, + /* [in] */ LONG Timeout); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Prepared )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfPrepared); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Prepared )( + __RPC__in struct _ADOCommand * This, + /* [in] */ VARIANT_BOOL fPrepared); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in struct _ADOCommand * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [optional][in] */ __RPC__in VARIANT *Parameters, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppirs); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CreateParameter )( + __RPC__in struct _ADOCommand * This, + /* [defaultvalue][in] */ __RPC__in BSTR Name, + /* [defaultvalue][in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ParameterDirectionEnum Direction, + /* [defaultvalue][in] */ ADO_LONGPTR Size, + /* [optional][in] */ VARIANT Value, + /* [retval][out] */ __RPC__deref_out_opt struct _ADOParameter **ppiprm); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOParameters **ppvObject); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CommandType )( + __RPC__in struct _ADOCommand * This, + /* [in] */ CommandTypeEnum lCmdType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CommandType )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__out CommandTypeEnum *plCmdType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in struct _ADOCommand * This, + /* [in] */ __RPC__in BSTR bstrName); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in struct _ADOCommand * This); + + /* [helpcontext][propputref][id] */ HRESULT ( __stdcall *putref_CommandADOStream )( + __RPC__in struct _ADOCommand * This, + /* [in] */ __RPC__in_opt IUnknown *pStream); + + /* [helpcontext][propget][id] */ HRESULT ( __stdcall *get_CommandStream )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__out VARIANT *pvStream); + + /* [helpcontext][propput][id] */ HRESULT ( __stdcall *put_Dialect )( + __RPC__in struct _ADOCommand * This, + /* [in] */ __RPC__in BSTR bstrDialect); + + /* [helpcontext][propget][id] */ HRESULT ( __stdcall *get_Dialect )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDialect); + + /* [helpcontext][propput][id] */ HRESULT ( __stdcall *put_NamedParameters )( + __RPC__in struct _ADOCommand * This, + /* [in] */ VARIANT_BOOL fNamedParameters); + + /* [helpcontext][propget][id] */ HRESULT ( __stdcall *get_NamedParameters )( + __RPC__in struct _ADOCommand * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfNamedParameters); + + END_INTERFACE + } _CommandVtbl; + interface _Command + { + CONST_VTBL struct _CommandVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Command_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Command_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Command_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Command_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Command_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Command_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Command_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Command_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Command_get_ActiveConnection(This,ppvObject) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,ppvObject) ) +#define _Command_putref_ActiveConnection(This,pCon) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pCon) ) +#define _Command_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define _Command_get_CommandText(This,pbstr) \ + ( (This)->lpVtbl -> get_CommandText(This,pbstr) ) +#define _Command_put_CommandText(This,bstr) \ + ( (This)->lpVtbl -> put_CommandText(This,bstr) ) +#define _Command_get_CommandTimeout(This,pl) \ + ( (This)->lpVtbl -> get_CommandTimeout(This,pl) ) +#define _Command_put_CommandTimeout(This,Timeout) \ + ( (This)->lpVtbl -> put_CommandTimeout(This,Timeout) ) +#define _Command_get_Prepared(This,pfPrepared) \ + ( (This)->lpVtbl -> get_Prepared(This,pfPrepared) ) +#define _Command_put_Prepared(This,fPrepared) \ + ( (This)->lpVtbl -> put_Prepared(This,fPrepared) ) +#define _Command_Execute(This,RecordsAffected,Parameters,Options,ppirs) \ + ( (This)->lpVtbl -> Execute(This,RecordsAffected,Parameters,Options,ppirs) ) +#define _Command_CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) \ + ( (This)->lpVtbl -> CreateParameter(This,Name,Type,Direction,Size,Value,ppiprm) ) +#define _Command_get_Parameters(This,ppvObject) \ + ( (This)->lpVtbl -> get_Parameters(This,ppvObject) ) +#define _Command_put_CommandType(This,lCmdType) \ + ( (This)->lpVtbl -> put_CommandType(This,lCmdType) ) +#define _Command_get_CommandType(This,plCmdType) \ + ( (This)->lpVtbl -> get_CommandType(This,plCmdType) ) +#define _Command_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) +#define _Command_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) +#define _Command_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define _Command_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#define _Command_putref_CommandStream(This,pStream) \ + ( (This)->lpVtbl -> putref_CommandStream(This,pStream) ) +#define _Command_get_CommandStream(This,pvStream) \ + ( (This)->lpVtbl -> get_CommandStream(This,pvStream) ) +#define _Command_put_Dialect(This,bstrDialect) \ + ( (This)->lpVtbl -> put_Dialect(This,bstrDialect) ) +#define _Command_get_Dialect(This,pbstrDialect) \ + ( (This)->lpVtbl -> get_Dialect(This,pbstrDialect) ) +#define _Command_put_NamedParameters(This,fNamedParameters) \ + ( (This)->lpVtbl -> put_NamedParameters(This,fNamedParameters) ) +#define _Command_get_NamedParameters(This,pfNamedParameters) \ + ( (This)->lpVtbl -> get_NamedParameters(This,pfNamedParameters) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Command_INTERFACE_DEFINED__ */ +#ifndef __ConnectionEventsVt_INTERFACE_DEFINED__ +#define __ConnectionEventsVt_INTERFACE_DEFINED__ +/* interface ConnectionEventsVt */ +/* [object][uuid][hidden] */ +EXTERN_C const IID IID_ConnectionEventsVt; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000402-0000-0010-8000-00AA006D2EA4") + ConnectionEventsVt : public IUnknown + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE InfoMessage( + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE BeginTransComplete( + /* [in] */ LONG TransactionLevel, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CommitTransComplete( + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE RollbackTransComplete( + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillExecute( + /* [out][in] */ __RPC__deref_inout_opt BSTR *Source, + /* [out][in] */ __RPC__inout CursorTypeEnum *CursorType, + /* [out][in] */ __RPC__inout LockTypeEnum *LockType, + /* [out][in] */ __RPC__inout long *Options, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOCommand *pCommand, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE ExecuteComplete( + /* [in] */ LONG RecordsAffected, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOCommand *pCommand, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillConnect( + /* [out][in] */ __RPC__deref_inout_opt BSTR *ConnectionString, + /* [out][in] */ __RPC__deref_inout_opt BSTR *UserID, + /* [out][in] */ __RPC__deref_inout_opt BSTR *Password, + /* [out][in] */ __RPC__inout long *Options, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE ConnectComplete( + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Disconnect( + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADOConnection *pConnection) = 0; + + }; + +#else /* C style interface */ + typedef struct ConnectionEventsVtVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ConnectionEventsVt * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ConnectionEventsVt * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *InfoMessage )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADOConnection *pConnection); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *BeginTransComplete )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ LONG TransactionLevel, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADOConnection *pConnection); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CommitTransComplete )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADOConnection *pConnection); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *RollbackTransComplete )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADOConnection *pConnection); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillExecute )( + __RPC__in ConnectionEventsVt * This, + /* [out][in] */ __RPC__deref_inout_opt BSTR *Source, + /* [out][in] */ __RPC__inout CursorTypeEnum *CursorType, + /* [out][in] */ __RPC__inout LockTypeEnum *LockType, + /* [out][in] */ __RPC__inout long *Options, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADOCommand *pCommand, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset, + /* [in] */ __RPC__in_opt struct _ADOConnection *pConnection); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *ExecuteComplete )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ LONG RecordsAffected, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADOCommand *pCommand, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset, + /* [in] */ __RPC__in_opt struct _ADOConnection *pConnection); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillConnect )( + __RPC__in ConnectionEventsVt * This, + /* [out][in] */ __RPC__deref_inout_opt BSTR *ConnectionString, + /* [out][in] */ __RPC__deref_inout_opt BSTR *UserID, + /* [out][in] */ __RPC__deref_inout_opt BSTR *Password, + /* [out][in] */ __RPC__inout long *Options, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADOConnection *pConnection); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectComplete )( + __RPC__in ConnectionEventsVt * This, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADOConnection *pConnection); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Disconnect )( + __RPC__in ConnectionEventsVt * This, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADOConnection *pConnection); + + END_INTERFACE + } ConnectionEventsVtVtbl; + interface ConnectionEventsVt + { + CONST_VTBL struct ConnectionEventsVtVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ConnectionEventsVt_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ConnectionEventsVt_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ConnectionEventsVt_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ConnectionEventsVt_InfoMessage(This,pError,adStatus,pConnection) \ + ( (This)->lpVtbl -> InfoMessage(This,pError,adStatus,pConnection) ) +#define ConnectionEventsVt_BeginTransComplete(This,TransactionLevel,pError,adStatus,pConnection) \ + ( (This)->lpVtbl -> BeginTransComplete(This,TransactionLevel,pError,adStatus,pConnection) ) +#define ConnectionEventsVt_CommitTransComplete(This,pError,adStatus,pConnection) \ + ( (This)->lpVtbl -> CommitTransComplete(This,pError,adStatus,pConnection) ) +#define ConnectionEventsVt_RollbackTransComplete(This,pError,adStatus,pConnection) \ + ( (This)->lpVtbl -> RollbackTransComplete(This,pError,adStatus,pConnection) ) +#define ConnectionEventsVt_WillExecute(This,Source,CursorType,LockType,Options,adStatus,pCommand,pRecordset,pConnection) \ + ( (This)->lpVtbl -> WillExecute(This,Source,CursorType,LockType,Options,adStatus,pCommand,pRecordset,pConnection) ) +#define ConnectionEventsVt_ExecuteComplete(This,RecordsAffected,pError,adStatus,pCommand,pRecordset,pConnection) \ + ( (This)->lpVtbl -> ExecuteComplete(This,RecordsAffected,pError,adStatus,pCommand,pRecordset,pConnection) ) +#define ConnectionEventsVt_WillConnect(This,ConnectionString,UserID,Password,Options,adStatus,pConnection) \ + ( (This)->lpVtbl -> WillConnect(This,ConnectionString,UserID,Password,Options,adStatus,pConnection) ) +#define ConnectionEventsVt_ConnectComplete(This,pError,adStatus,pConnection) \ + ( (This)->lpVtbl -> ConnectComplete(This,pError,adStatus,pConnection) ) +#define ConnectionEventsVt_Disconnect(This,adStatus,pConnection) \ + ( (This)->lpVtbl -> Disconnect(This,adStatus,pConnection) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ConnectionEventsVt_INTERFACE_DEFINED__ */ +#ifndef __RecordsetEventsVt_INTERFACE_DEFINED__ +#define __RecordsetEventsVt_INTERFACE_DEFINED__ +/* interface RecordsetEventsVt */ +/* [object][uuid][hidden] */ +EXTERN_C const IID IID_RecordsetEventsVt; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000403-0000-0010-8000-00AA006D2EA4") + RecordsetEventsVt : public IUnknown + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillChangeField( + /* [in] */ LONG cFields, + /* [in] */ VARIANT Fields, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE FieldChangeComplete( + /* [in] */ LONG cFields, + /* [in] */ VARIANT Fields, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillChangeRecord( + /* [in] */ EventReasonEnum adReason, + /* [in] */ LONG cRecords, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE RecordChangeComplete( + /* [in] */ EventReasonEnum adReason, + /* [in] */ LONG cRecords, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillChangeRecordset( + /* [in] */ EventReasonEnum adReason, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE RecordsetChangeComplete( + /* [in] */ EventReasonEnum adReason, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WillMove( + /* [in] */ EventReasonEnum adReason, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MoveComplete( + /* [in] */ EventReasonEnum adReason, + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE EndOfRecordset( + /* [out][in] */ __RPC__inout VARIANT_BOOL *fMoreData, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE FetchProgress( + /* [in] */ long Progress, + /* [in] */ long MaxProgress, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE FetchComplete( + /* [in] */ __RPC__in_opt ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt _ADORecordset *pRecordset) = 0; + + }; + +#else /* C style interface */ + typedef struct RecordsetEventsVtVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in RecordsetEventsVt * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in RecordsetEventsVt * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillChangeADOField )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ LONG cFields, + /* [in] */ VARIANT Fields, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *FieldChangeComplete )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ LONG cFields, + /* [in] */ VARIANT Fields, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillChangeADORecord )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [in] */ LONG cRecords, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *RecordChangeComplete )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [in] */ LONG cRecords, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillChangeADORecordset )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *RecordsetChangeComplete )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WillMove )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveComplete )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ EventReasonEnum adReason, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *EndOfADORecordset )( + __RPC__in RecordsetEventsVt * This, + /* [out][in] */ __RPC__inout VARIANT_BOOL *fMoreData, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *FetchProgress )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ long Progress, + /* [in] */ long MaxProgress, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *FetchComplete )( + __RPC__in RecordsetEventsVt * This, + /* [in] */ __RPC__in_opt struct ADOError *pError, + /* [out][in] */ __RPC__inout EventStatusEnum *adStatus, + /* [in] */ __RPC__in_opt struct _ADORecordset *pRecordset); + + END_INTERFACE + } RecordsetEventsVtVtbl; + interface RecordsetEventsVt + { + CONST_VTBL struct RecordsetEventsVtVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define RecordsetEventsVt_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define RecordsetEventsVt_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define RecordsetEventsVt_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define RecordsetEventsVt_WillChangeField(This,cFields,Fields,adStatus,pRecordset) \ + ( (This)->lpVtbl -> WillChangeField(This,cFields,Fields,adStatus,pRecordset) ) +#define RecordsetEventsVt_FieldChangeComplete(This,cFields,Fields,pError,adStatus,pRecordset) \ + ( (This)->lpVtbl -> FieldChangeComplete(This,cFields,Fields,pError,adStatus,pRecordset) ) +#define RecordsetEventsVt_WillChangeRecord(This,adReason,cRecords,adStatus,pRecordset) \ + ( (This)->lpVtbl -> WillChangeRecord(This,adReason,cRecords,adStatus,pRecordset) ) +#define RecordsetEventsVt_RecordChangeComplete(This,adReason,cRecords,pError,adStatus,pRecordset) \ + ( (This)->lpVtbl -> RecordChangeComplete(This,adReason,cRecords,pError,adStatus,pRecordset) ) +#define RecordsetEventsVt_WillChangeRecordset(This,adReason,adStatus,pRecordset) \ + ( (This)->lpVtbl -> WillChangeRecordset(This,adReason,adStatus,pRecordset) ) +#define RecordsetEventsVt_RecordsetChangeComplete(This,adReason,pError,adStatus,pRecordset) \ + ( (This)->lpVtbl -> RecordsetChangeComplete(This,adReason,pError,adStatus,pRecordset) ) +#define RecordsetEventsVt_WillMove(This,adReason,adStatus,pRecordset) \ + ( (This)->lpVtbl -> WillMove(This,adReason,adStatus,pRecordset) ) +#define RecordsetEventsVt_MoveComplete(This,adReason,pError,adStatus,pRecordset) \ + ( (This)->lpVtbl -> MoveComplete(This,adReason,pError,adStatus,pRecordset) ) +#define RecordsetEventsVt_EndOfRecordset(This,fMoreData,adStatus,pRecordset) \ + ( (This)->lpVtbl -> EndOfRecordset(This,fMoreData,adStatus,pRecordset) ) +#define RecordsetEventsVt_FetchProgress(This,Progress,MaxProgress,adStatus,pRecordset) \ + ( (This)->lpVtbl -> FetchProgress(This,Progress,MaxProgress,adStatus,pRecordset) ) +#define RecordsetEventsVt_FetchComplete(This,pError,adStatus,pRecordset) \ + ( (This)->lpVtbl -> FetchComplete(This,pError,adStatus,pRecordset) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __RecordsetEventsVt_INTERFACE_DEFINED__ */ +#ifndef __ConnectionEvents_DISPINTERFACE_DEFINED__ +#define __ConnectionEvents_DISPINTERFACE_DEFINED__ +/* dispinterface ConnectionEvents */ +/* [uuid] */ +EXTERN_C const IID DIID_ConnectionEvents; +#if defined(__cplusplus) && !defined(CINTERFACE) + MIDL_INTERFACE("00000400-0000-0010-8000-00AA006D2EA4") + ConnectionEvents : public IDispatch + { + }; + +#else /* C style interface */ + typedef struct ConnectionEventsVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ConnectionEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ConnectionEvents * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ConnectionEvents * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ConnectionEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ConnectionEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ConnectionEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ConnectionEvents * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + END_INTERFACE + } ConnectionEventsVtbl; + interface ConnectionEvents + { + CONST_VTBL struct ConnectionEventsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ConnectionEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ConnectionEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ConnectionEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ConnectionEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define ConnectionEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define ConnectionEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define ConnectionEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ConnectionEvents_DISPINTERFACE_DEFINED__ */ +#ifndef __RecordsetEvents_DISPINTERFACE_DEFINED__ +#define __RecordsetEvents_DISPINTERFACE_DEFINED__ +/* dispinterface RecordsetEvents */ +/* [uuid] */ +EXTERN_C const IID DIID_RecordsetEvents; +#if defined(__cplusplus) && !defined(CINTERFACE) + MIDL_INTERFACE("00000266-0000-0010-8000-00AA006D2EA4") + RecordsetEvents : public IDispatch + { + }; + +#else /* C style interface */ + typedef struct RecordsetEventsVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in RecordsetEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in RecordsetEvents * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in RecordsetEvents * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in RecordsetEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in RecordsetEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in RecordsetEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + RecordsetEvents * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + END_INTERFACE + } RecordsetEventsVtbl; + interface RecordsetEvents + { + CONST_VTBL struct RecordsetEventsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define RecordsetEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define RecordsetEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define RecordsetEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define RecordsetEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define RecordsetEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define RecordsetEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define RecordsetEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __RecordsetEvents_DISPINTERFACE_DEFINED__ */ +#ifndef __Connection15_INTERFACE_DEFINED__ +#define __Connection15_INTERFACE_DEFINED__ +/* interface Connection15 */ +/* [object][helpcontext][uuid][hidden][dual] */ +EXTERN_C const IID IID_Connection15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000515-0000-0010-8000-00AA006D2EA4") + Connection15 : public _ADO + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_ConnectionString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_ConnectionString( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_CommandTimeout( + /* [retval][out] */ __RPC__out LONG *plTimeout) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_CommandTimeout( + /* [in] */ LONG lTimeout) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_ConnectionTimeout( + /* [retval][out] */ __RPC__out LONG *plTimeout) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_ConnectionTimeout( + /* [in] */ LONG lTimeout) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Version( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Execute( + /* [in] */ __RPC__in BSTR CommandText, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppiRset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE BeginTrans( + /* [retval][out] */ __RPC__out long *TransactionLevel) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CommitTrans( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE RollbackTrans( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Open( + /* [defaultvalue][in] */ __RPC__in BSTR ConnectionString = NULL, + /* [defaultvalue][in] */ __RPC__in BSTR UserID = NULL, + /* [defaultvalue][in] */ __RPC__in BSTR Password = NULL, + /* [defaultvalue][in] */ long Options = adOptionUnspecified) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Errors( + /* [retval][out] */ __RPC__deref_out_opt ADOErrors **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultDatabase( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_DefaultDatabase( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsolationLevel( + /* [retval][out] */ __RPC__out IsolationLevelEnum *Level) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_IsolationLevel( + /* [in] */ IsolationLevelEnum Level) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out long *plAttr) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Attributes( + /* [in] */ long lAttr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CursorLocation( + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CursorLocation( + /* [in] */ CursorLocationEnum lCursorLoc) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Mode( + /* [retval][out] */ __RPC__out ConnectModeEnum *plMode) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Mode( + /* [in] */ ConnectModeEnum lMode) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Provider( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Provider( + /* [in] */ __RPC__in BSTR Provider) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out LONG *plObjState) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE OpenSchema( + /* [in] */ SchemaEnum Schema, + /* [optional][in] */ VARIANT Restrictions, + /* [optional][in] */ VARIANT SchemaID, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **pprset) = 0; + + }; + +#else /* C style interface */ + typedef struct Connection15Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Connection15 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Connection15 * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Connection15 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Connection15 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Connection15 * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectionString )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ConnectionString )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in BSTR bstr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommandTimeout )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out LONG *plTimeout); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CommandTimeout )( + __RPC__in Connection15 * This, + /* [in] */ LONG lTimeout); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectionTimeout )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out LONG *plTimeout); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ConnectionTimeout )( + __RPC__in Connection15 * This, + /* [in] */ LONG lTimeout); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in Connection15 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in BSTR CommandText, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppiRset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *BeginTrans )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out long *TransactionLevel); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CommitTrans )( + __RPC__in Connection15 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *RollbackTrans )( + __RPC__in Connection15 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in Connection15 * This, + /* [defaultvalue][in] */ __RPC__in BSTR ConnectionString, + /* [defaultvalue][in] */ __RPC__in BSTR UserID, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ long Options); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Errors )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOErrors **ppvObject); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultDatabase )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultDatabase )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in BSTR bstr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsolationLevel )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out IsolationLevelEnum *Level); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsolationLevel )( + __RPC__in Connection15 * This, + /* [in] */ IsolationLevelEnum Level); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out long *plAttr); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in Connection15 * This, + /* [in] */ long lAttr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in Connection15 * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out ConnectModeEnum *plMode); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Mode )( + __RPC__in Connection15 * This, + /* [in] */ ConnectModeEnum lMode); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Provider )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Provider )( + __RPC__in Connection15 * This, + /* [in] */ __RPC__in BSTR Provider); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in Connection15 * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *OpenSchema )( + __RPC__in Connection15 * This, + /* [in] */ SchemaEnum Schema, + /* [optional][in] */ VARIANT Restrictions, + /* [optional][in] */ VARIANT SchemaID, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **pprset); + + END_INTERFACE + } Connection15Vtbl; + interface Connection15 + { + CONST_VTBL struct Connection15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Connection15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Connection15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Connection15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Connection15_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Connection15_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Connection15_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Connection15_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Connection15_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Connection15_get_ConnectionString(This,pbstr) \ + ( (This)->lpVtbl -> get_ConnectionString(This,pbstr) ) +#define Connection15_put_ConnectionString(This,bstr) \ + ( (This)->lpVtbl -> put_ConnectionString(This,bstr) ) +#define Connection15_get_CommandTimeout(This,plTimeout) \ + ( (This)->lpVtbl -> get_CommandTimeout(This,plTimeout) ) +#define Connection15_put_CommandTimeout(This,lTimeout) \ + ( (This)->lpVtbl -> put_CommandTimeout(This,lTimeout) ) +#define Connection15_get_ConnectionTimeout(This,plTimeout) \ + ( (This)->lpVtbl -> get_ConnectionTimeout(This,plTimeout) ) +#define Connection15_put_ConnectionTimeout(This,lTimeout) \ + ( (This)->lpVtbl -> put_ConnectionTimeout(This,lTimeout) ) +#define Connection15_get_Version(This,pbstr) \ + ( (This)->lpVtbl -> get_Version(This,pbstr) ) +#define Connection15_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define Connection15_Execute(This,CommandText,RecordsAffected,Options,ppiRset) \ + ( (This)->lpVtbl -> Execute(This,CommandText,RecordsAffected,Options,ppiRset) ) +#define Connection15_BeginTrans(This,TransactionLevel) \ + ( (This)->lpVtbl -> BeginTrans(This,TransactionLevel) ) +#define Connection15_CommitTrans(This) \ + ( (This)->lpVtbl -> CommitTrans(This) ) +#define Connection15_RollbackTrans(This) \ + ( (This)->lpVtbl -> RollbackTrans(This) ) +#define Connection15_Open(This,ConnectionString,UserID,Password,Options) \ + ( (This)->lpVtbl -> Open(This,ConnectionString,UserID,Password,Options) ) +#define Connection15_get_Errors(This,ppvObject) \ + ( (This)->lpVtbl -> get_Errors(This,ppvObject) ) +#define Connection15_get_DefaultDatabase(This,pbstr) \ + ( (This)->lpVtbl -> get_DefaultDatabase(This,pbstr) ) +#define Connection15_put_DefaultDatabase(This,bstr) \ + ( (This)->lpVtbl -> put_DefaultDatabase(This,bstr) ) +#define Connection15_get_IsolationLevel(This,Level) \ + ( (This)->lpVtbl -> get_IsolationLevel(This,Level) ) +#define Connection15_put_IsolationLevel(This,Level) \ + ( (This)->lpVtbl -> put_IsolationLevel(This,Level) ) +#define Connection15_get_Attributes(This,plAttr) \ + ( (This)->lpVtbl -> get_Attributes(This,plAttr) ) +#define Connection15_put_Attributes(This,lAttr) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttr) ) +#define Connection15_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define Connection15_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define Connection15_get_Mode(This,plMode) \ + ( (This)->lpVtbl -> get_Mode(This,plMode) ) +#define Connection15_put_Mode(This,lMode) \ + ( (This)->lpVtbl -> put_Mode(This,lMode) ) +#define Connection15_get_Provider(This,pbstr) \ + ( (This)->lpVtbl -> get_Provider(This,pbstr) ) +#define Connection15_put_Provider(This,Provider) \ + ( (This)->lpVtbl -> put_Provider(This,Provider) ) +#define Connection15_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define Connection15_OpenSchema(This,Schema,Restrictions,SchemaID,pprset) \ + ( (This)->lpVtbl -> OpenSchema(This,Schema,Restrictions,SchemaID,pprset) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Connection15_INTERFACE_DEFINED__ */ +#ifndef ___Connection_INTERFACE_DEFINED__ +#define ___Connection_INTERFACE_DEFINED__ +/* interface _ADOConnection */ +/* [object][helpcontext][uuid][dual] */ +EXTERN_C const IID IID__Connection; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000550-0000-0010-8000-00AA006D2EA4") + _ADOConnection : public Connection15 + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + +#else /* C style interface */ + typedef struct _ConnectionVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct _ADOConnection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct _ADOConnection * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct _ADOConnection * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct _ADOConnection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct _ADOConnection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct _ADOConnection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct _ADOConnection * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectionString )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ConnectionString )( + __RPC__in struct _ADOConnection * This, + /* [in] */ __RPC__in BSTR bstr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommandTimeout )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__out LONG *plTimeout); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CommandTimeout )( + __RPC__in struct _ADOConnection * This, + /* [in] */ LONG lTimeout); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectionTimeout )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__out LONG *plTimeout); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ConnectionTimeout )( + __RPC__in struct _ADOConnection * This, + /* [in] */ LONG lTimeout); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in struct _ADOConnection * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in struct _ADOConnection * This, + /* [in] */ __RPC__in BSTR CommandText, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [defaultvalue][in] */ long Options, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppiRset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *BeginTrans )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__out long *TransactionLevel); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CommitTrans )( + __RPC__in struct _ADOConnection * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *RollbackTrans )( + __RPC__in struct _ADOConnection * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in struct _ADOConnection * This, + /* [defaultvalue][in] */ __RPC__in BSTR ConnectionString, + /* [defaultvalue][in] */ __RPC__in BSTR UserID, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ long Options); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Errors )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOErrors **ppvObject); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultDatabase )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DefaultDatabase )( + __RPC__in struct _ADOConnection * This, + /* [in] */ __RPC__in BSTR bstr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsolationLevel )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__out IsolationLevelEnum *Level); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsolationLevel )( + __RPC__in struct _ADOConnection * This, + /* [in] */ IsolationLevelEnum Level); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__out long *plAttr); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in struct _ADOConnection * This, + /* [in] */ long lAttr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in struct _ADOConnection * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__out ConnectModeEnum *plMode); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Mode )( + __RPC__in struct _ADOConnection * This, + /* [in] */ ConnectModeEnum lMode); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Provider )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Provider )( + __RPC__in struct _ADOConnection * This, + /* [in] */ __RPC__in BSTR Provider); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in struct _ADOConnection * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *OpenSchema )( + __RPC__in struct _ADOConnection * This, + /* [in] */ SchemaEnum Schema, + /* [optional][in] */ VARIANT Restrictions, + /* [optional][in] */ VARIANT SchemaID, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **pprset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in struct _ADOConnection * This); + + END_INTERFACE + } _ConnectionVtbl; + interface _Connection + { + CONST_VTBL struct _ConnectionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Connection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Connection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Connection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Connection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Connection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Connection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Connection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Connection_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Connection_get_ConnectionString(This,pbstr) \ + ( (This)->lpVtbl -> get_ConnectionString(This,pbstr) ) +#define _Connection_put_ConnectionString(This,bstr) \ + ( (This)->lpVtbl -> put_ConnectionString(This,bstr) ) +#define _Connection_get_CommandTimeout(This,plTimeout) \ + ( (This)->lpVtbl -> get_CommandTimeout(This,plTimeout) ) +#define _Connection_put_CommandTimeout(This,lTimeout) \ + ( (This)->lpVtbl -> put_CommandTimeout(This,lTimeout) ) +#define _Connection_get_ConnectionTimeout(This,plTimeout) \ + ( (This)->lpVtbl -> get_ConnectionTimeout(This,plTimeout) ) +#define _Connection_put_ConnectionTimeout(This,lTimeout) \ + ( (This)->lpVtbl -> put_ConnectionTimeout(This,lTimeout) ) +#define _Connection_get_Version(This,pbstr) \ + ( (This)->lpVtbl -> get_Version(This,pbstr) ) +#define _Connection_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define _Connection_Execute(This,CommandText,RecordsAffected,Options,ppiRset) \ + ( (This)->lpVtbl -> Execute(This,CommandText,RecordsAffected,Options,ppiRset) ) +#define _Connection_BeginTrans(This,TransactionLevel) \ + ( (This)->lpVtbl -> BeginTrans(This,TransactionLevel) ) +#define _Connection_CommitTrans(This) \ + ( (This)->lpVtbl -> CommitTrans(This) ) +#define _Connection_RollbackTrans(This) \ + ( (This)->lpVtbl -> RollbackTrans(This) ) +#define _Connection_Open(This,ConnectionString,UserID,Password,Options) \ + ( (This)->lpVtbl -> Open(This,ConnectionString,UserID,Password,Options) ) +#define _Connection_get_Errors(This,ppvObject) \ + ( (This)->lpVtbl -> get_Errors(This,ppvObject) ) +#define _Connection_get_DefaultDatabase(This,pbstr) \ + ( (This)->lpVtbl -> get_DefaultDatabase(This,pbstr) ) +#define _Connection_put_DefaultDatabase(This,bstr) \ + ( (This)->lpVtbl -> put_DefaultDatabase(This,bstr) ) +#define _Connection_get_IsolationLevel(This,Level) \ + ( (This)->lpVtbl -> get_IsolationLevel(This,Level) ) +#define _Connection_put_IsolationLevel(This,Level) \ + ( (This)->lpVtbl -> put_IsolationLevel(This,Level) ) +#define _Connection_get_Attributes(This,plAttr) \ + ( (This)->lpVtbl -> get_Attributes(This,plAttr) ) +#define _Connection_put_Attributes(This,lAttr) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttr) ) +#define _Connection_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define _Connection_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define _Connection_get_Mode(This,plMode) \ + ( (This)->lpVtbl -> get_Mode(This,plMode) ) +#define _Connection_put_Mode(This,lMode) \ + ( (This)->lpVtbl -> put_Mode(This,lMode) ) +#define _Connection_get_Provider(This,pbstr) \ + ( (This)->lpVtbl -> get_Provider(This,pbstr) ) +#define _Connection_put_Provider(This,Provider) \ + ( (This)->lpVtbl -> put_Provider(This,Provider) ) +#define _Connection_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define _Connection_OpenSchema(This,Schema,Restrictions,SchemaID,pprset) \ + ( (This)->lpVtbl -> OpenSchema(This,Schema,Restrictions,SchemaID,pprset) ) +#define _Connection_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Connection_INTERFACE_DEFINED__ */ +#ifndef __ADOConnectionConstruction15_INTERFACE_DEFINED__ +#define __ADOConnectionConstruction15_INTERFACE_DEFINED__ +/* interface ADOConnectionConstruction15 */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADOConnectionConstruction15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000516-0000-0010-8000-00AA006D2EA4") + ADOConnectionConstruction15 : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DSO( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppDSO) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Session( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppSession) = 0; + + virtual HRESULT STDMETHODCALLTYPE WrapDSOandSession( + /* [in] */ __RPC__in_opt IUnknown *pDSO, + /* [in] */ __RPC__in_opt IUnknown *pSession) = 0; + + }; + +#else /* C style interface */ + typedef struct ADOConnectionConstruction15Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOConnectionConstruction15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOConnectionConstruction15 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOConnectionConstruction15 * This); + + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DSO )( + __RPC__in ADOConnectionConstruction15 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppDSO); + + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Session )( + __RPC__in ADOConnectionConstruction15 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppSession); + + HRESULT ( STDMETHODCALLTYPE *WrapDSOandSession )( + __RPC__in ADOConnectionConstruction15 * This, + /* [in] */ __RPC__in_opt IUnknown *pDSO, + /* [in] */ __RPC__in_opt IUnknown *pSession); + + END_INTERFACE + } ADOConnectionConstruction15Vtbl; + interface ADOConnectionConstruction15 + { + CONST_VTBL struct ADOConnectionConstruction15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADOConnectionConstruction15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADOConnectionConstruction15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADOConnectionConstruction15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADOConnectionConstruction15_get_DSO(This,ppDSO) \ + ( (This)->lpVtbl -> get_DSO(This,ppDSO) ) +#define ADOConnectionConstruction15_get_Session(This,ppSession) \ + ( (This)->lpVtbl -> get_Session(This,ppSession) ) +#define ADOConnectionConstruction15_WrapDSOandSession(This,pDSO,pSession) \ + ( (This)->lpVtbl -> WrapDSOandSession(This,pDSO,pSession) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADOConnectionConstruction15_INTERFACE_DEFINED__ */ +#ifndef __ADOConnectionConstruction_INTERFACE_DEFINED__ +#define __ADOConnectionConstruction_INTERFACE_DEFINED__ +/* interface ADOConnectionConstruction */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADOConnectionConstruction; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000551-0000-0010-8000-00AA006D2EA4") + ADOConnectionConstruction : public ADOConnectionConstruction15 + { + public: + }; + +#else /* C style interface */ + typedef struct ADOConnectionConstructionVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOConnectionConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOConnectionConstruction * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOConnectionConstruction * This); + + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DSO )( + __RPC__in ADOConnectionConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppDSO); + + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Session )( + __RPC__in ADOConnectionConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppSession); + + HRESULT ( STDMETHODCALLTYPE *WrapDSOandSession )( + __RPC__in ADOConnectionConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pDSO, + /* [in] */ __RPC__in_opt IUnknown *pSession); + + END_INTERFACE + } ADOConnectionConstructionVtbl; + interface ADOConnectionConstruction + { + CONST_VTBL struct ADOConnectionConstructionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADOConnectionConstruction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADOConnectionConstruction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADOConnectionConstruction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADOConnectionConstruction_get_DSO(This,ppDSO) \ + ( (This)->lpVtbl -> get_DSO(This,ppDSO) ) +#define ADOConnectionConstruction_get_Session(This,ppSession) \ + ( (This)->lpVtbl -> get_Session(This,ppSession) ) +#define ADOConnectionConstruction_WrapDSOandSession(This,pDSO,pSession) \ + ( (This)->lpVtbl -> WrapDSOandSession(This,pDSO,pSession) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADOConnectionConstruction_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Connection; +#ifdef __cplusplus +Connection; +#endif +#ifndef ___Record_INTERFACE_DEFINED__ +#define ___Record_INTERFACE_DEFINED__ +/* interface _ADORecord */ +/* [object][uuid][helpcontext][hidden][dual] */ +EXTERN_C const IID IID__Record; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000562-0000-0010-8000-00AA006D2EA4") + _ADORecord : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_ActiveConnection( + /* [in] */ __RPC__in BSTR bstrConn) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_ActiveConnection( + /* [in] */ __RPC__in_opt _ADOConnection *Con) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out ObjectStateEnum *pState) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Source( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Source( + /* [in] */ __RPC__in BSTR Source) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Source( + /* [in] */ __RPC__in_opt IDispatch *Source) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Mode( + /* [retval][out] */ __RPC__out ConnectModeEnum *pMode) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Mode( + /* [in] */ ConnectModeEnum Mode) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ParentURL( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrParentURL) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MoveRecord( + /* [defaultvalue][in] */ __RPC__in BSTR Source, + /* [defaultvalue][in] */ __RPC__in BSTR Destination, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ MoveRecordOptionsEnum Options, + /* [defaultvalue][in] */ VARIANT_BOOL Async, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNewURL) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CopyRecord( + /* [defaultvalue][in] */ __RPC__in BSTR Source, + /* [defaultvalue][in] */ __RPC__in BSTR Destination, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ CopyRecordOptionsEnum Options, + /* [defaultvalue][in] */ VARIANT_BOOL Async, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNewURL) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE DeleteRecord( + /* [defaultvalue][in] */ __RPC__in BSTR Source = NULL, + /* [defaultvalue][in] */ VARIANT_BOOL Async = 0) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Open( + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ ConnectModeEnum Mode = adModeUnknown, + /* [defaultvalue][in] */ RecordCreateOptionsEnum CreateOptions = adFailIfNotExists, + /* [defaultvalue][in] */ RecordOpenOptionsEnum Options = adOpenRecordUnspecified, + /* [defaultvalue][in] */ __RPC__in BSTR UserName = NULL, + /* [defaultvalue][in] */ __RPC__in BSTR Password = NULL) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Fields( + /* [retval][out] */ __RPC__deref_out_opt ADOFields **ppFlds) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_RecordType( + /* [retval][out] */ __RPC__out RecordTypeEnum *pType) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetChildren( + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppRSet) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + +#else /* C style interface */ + typedef struct _RecordVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct _ADORecord * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct _ADORecord * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct _ADORecord * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct _ADORecord * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct _ADORecord * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct _ADORecord * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct _ADORecord * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in struct _ADORecord * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in struct _ADORecord * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in struct _ADORecord * This, + /* [in] */ __RPC__in BSTR bstrConn); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in struct _ADORecord * This, + /* [in] */ __RPC__in_opt struct _ADOConnection *Con); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in struct _ADORecord * This, + /* [retval][out] */ __RPC__out ObjectStateEnum *pState); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in struct _ADORecord * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in struct _ADORecord * This, + /* [in] */ __RPC__in BSTR Source); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in struct _ADORecord * This, + /* [in] */ __RPC__in_opt IDispatch *Source); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( + __RPC__in struct _ADORecord * This, + /* [retval][out] */ __RPC__out ConnectModeEnum *pMode); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Mode )( + __RPC__in struct _ADORecord * This, + /* [in] */ ConnectModeEnum Mode); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ParentURL )( + __RPC__in struct _ADORecord * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrParentURL); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveADORecord )( + __RPC__in struct _ADORecord * This, + /* [defaultvalue][in] */ __RPC__in BSTR Source, + /* [defaultvalue][in] */ __RPC__in BSTR Destination, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ MoveRecordOptionsEnum Options, + /* [defaultvalue][in] */ VARIANT_BOOL Async, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNewURL); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CopyADORecord )( + __RPC__in struct _ADORecord * This, + /* [defaultvalue][in] */ __RPC__in BSTR Source, + /* [defaultvalue][in] */ __RPC__in BSTR Destination, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password, + /* [defaultvalue][in] */ CopyRecordOptionsEnum Options, + /* [defaultvalue][in] */ VARIANT_BOOL Async, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrNewURL); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteADORecord )( + __RPC__in struct _ADORecord * This, + /* [defaultvalue][in] */ __RPC__in BSTR Source, + /* [defaultvalue][in] */ VARIANT_BOOL Async); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in struct _ADORecord * This, + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ ConnectModeEnum Mode, + /* [defaultvalue][in] */ RecordCreateOptionsEnum CreateOptions, + /* [defaultvalue][in] */ RecordOpenOptionsEnum Options, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in struct _ADORecord * This); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in struct _ADORecord * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOFields **ppFlds); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecordType )( + __RPC__in struct _ADORecord * This, + /* [retval][out] */ __RPC__out RecordTypeEnum *pType); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetChildren )( + __RPC__in struct _ADORecord * This, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppRSet); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in struct _ADORecord * This); + + END_INTERFACE + } _RecordVtbl; + interface _Record + { + CONST_VTBL struct _RecordVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Record_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Record_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Record_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Record_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Record_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Record_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Record_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Record_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Record_get_ActiveConnection(This,pvar) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pvar) ) +#define _Record_put_ActiveConnection(This,bstrConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,bstrConn) ) +#define _Record_putref_ActiveConnection(This,Con) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,Con) ) +#define _Record_get_State(This,pState) \ + ( (This)->lpVtbl -> get_State(This,pState) ) +#define _Record_get_Source(This,pvar) \ + ( (This)->lpVtbl -> get_Source(This,pvar) ) +#define _Record_put_Source(This,Source) \ + ( (This)->lpVtbl -> put_Source(This,Source) ) +#define _Record_putref_Source(This,Source) \ + ( (This)->lpVtbl -> putref_Source(This,Source) ) +#define _Record_get_Mode(This,pMode) \ + ( (This)->lpVtbl -> get_Mode(This,pMode) ) +#define _Record_put_Mode(This,Mode) \ + ( (This)->lpVtbl -> put_Mode(This,Mode) ) +#define _Record_get_ParentURL(This,pbstrParentURL) \ + ( (This)->lpVtbl -> get_ParentURL(This,pbstrParentURL) ) +#define _Record_MoveRecord(This,Source,Destination,UserName,Password,Options,Async,pbstrNewURL) \ + ( (This)->lpVtbl -> MoveRecord(This,Source,Destination,UserName,Password,Options,Async,pbstrNewURL) ) +#define _Record_CopyRecord(This,Source,Destination,UserName,Password,Options,Async,pbstrNewURL) \ + ( (This)->lpVtbl -> CopyRecord(This,Source,Destination,UserName,Password,Options,Async,pbstrNewURL) ) +#define _Record_DeleteRecord(This,Source,Async) \ + ( (This)->lpVtbl -> DeleteRecord(This,Source,Async) ) +#define _Record_Open(This,Source,ActiveConnection,Mode,CreateOptions,Options,UserName,Password) \ + ( (This)->lpVtbl -> Open(This,Source,ActiveConnection,Mode,CreateOptions,Options,UserName,Password) ) +#define _Record_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define _Record_get_Fields(This,ppFlds) \ + ( (This)->lpVtbl -> get_Fields(This,ppFlds) ) +#define _Record_get_RecordType(This,pType) \ + ( (This)->lpVtbl -> get_RecordType(This,pType) ) +#define _Record_GetChildren(This,ppRSet) \ + ( (This)->lpVtbl -> GetChildren(This,ppRSet) ) +#define _Record_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Record_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Record; +#ifdef __cplusplus +Record; +#endif +#ifndef ___Stream_INTERFACE_DEFINED__ +#define ___Stream_INTERFACE_DEFINED__ +/* interface _ADOStream */ +/* [object][helpcontext][uuid][hidden][dual] */ +EXTERN_C const IID IID__Stream; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000565-0000-0010-8000-00AA006D2EA4") + _ADOStream : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out ADO_LONGPTR *pSize) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_EOS( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pEOS) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Position( + /* [retval][out] */ __RPC__out ADO_LONGPTR *pPos) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Position( + /* [in] */ ADO_LONGPTR Position) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out StreamTypeEnum *pType) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ StreamTypeEnum Type) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_LineSeparator( + /* [retval][out] */ __RPC__out LineSeparatorEnum *pLS) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_LineSeparator( + /* [in] */ LineSeparatorEnum LineSeparator) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out ObjectStateEnum *pState) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Mode( + /* [retval][out] */ __RPC__out ConnectModeEnum *pMode) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Mode( + /* [in] */ ConnectModeEnum Mode) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Charset( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCharset) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Charset( + /* [in] */ __RPC__in BSTR Charset) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Read( + /* [defaultvalue][in] */ long NumBytes, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Open( + /* [optional][in] */ VARIANT Source, + /* [defaultvalue][in] */ ConnectModeEnum Mode = adModeUnknown, + /* [defaultvalue][in] */ StreamOpenOptionsEnum Options = adOpenStreamUnspecified, + /* [defaultvalue][in] */ __RPC__in BSTR UserName = NULL, + /* [defaultvalue][in] */ __RPC__in BSTR Password = NULL) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE SkipLine( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Write( + /* [in] */ VARIANT Buffer) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE SetEOS( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CopyTo( + /* [in] */ __RPC__in_opt _ADOStream *DestStream, + /* [defaultvalue][in] */ ADO_LONGPTR CharNumber = -1) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Flush( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE SaveToFile( + /* [in] */ __RPC__in BSTR FileName, + /* [defaultvalue][in] */ SaveOptionsEnum Options = adSaveCreateNotExist) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE LoadFromFile( + /* [in] */ __RPC__in BSTR FileName) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE ReadText( + /* [defaultvalue][in] */ long NumChars, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE WriteText( + /* [in] */ __RPC__in BSTR Data, + /* [defaultvalue][in] */ StreamWriteEnum Options = adWriteChar) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + +#else /* C style interface */ + typedef struct _StreamVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct _ADOStream * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct _ADOStream * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct _ADOStream * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct _ADOStream * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct _ADOStream * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct _ADOStream * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct _ADOStream * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in struct _ADOStream * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pSize); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EOS )( + __RPC__in struct _ADOStream * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pEOS); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Position )( + __RPC__in struct _ADOStream * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pPos); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Position )( + __RPC__in struct _ADOStream * This, + /* [in] */ ADO_LONGPTR Position); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in struct _ADOStream * This, + /* [retval][out] */ __RPC__out StreamTypeEnum *pType); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in struct _ADOStream * This, + /* [in] */ StreamTypeEnum Type); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LineSeparator )( + __RPC__in struct _ADOStream * This, + /* [retval][out] */ __RPC__out LineSeparatorEnum *pLS); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LineSeparator )( + __RPC__in struct _ADOStream * This, + /* [in] */ LineSeparatorEnum LineSeparator); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in struct _ADOStream * This, + /* [retval][out] */ __RPC__out ObjectStateEnum *pState); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( + __RPC__in struct _ADOStream * This, + /* [retval][out] */ __RPC__out ConnectModeEnum *pMode); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Mode )( + __RPC__in struct _ADOStream * This, + /* [in] */ ConnectModeEnum Mode); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Charset )( + __RPC__in struct _ADOStream * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCharset); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Charset )( + __RPC__in struct _ADOStream * This, + /* [in] */ __RPC__in BSTR Charset); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Read )( + __RPC__in struct _ADOStream * This, + /* [defaultvalue][in] */ long NumBytes, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in struct _ADOStream * This, + /* [optional][in] */ VARIANT Source, + /* [defaultvalue][in] */ ConnectModeEnum Mode, + /* [defaultvalue][in] */ StreamOpenOptionsEnum Options, + /* [defaultvalue][in] */ __RPC__in BSTR UserName, + /* [defaultvalue][in] */ __RPC__in BSTR Password); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in struct _ADOStream * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SkipLine )( + __RPC__in struct _ADOStream * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Write )( + __RPC__in struct _ADOStream * This, + /* [in] */ VARIANT Buffer); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SetEOS )( + __RPC__in struct _ADOStream * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )( + __RPC__in struct _ADOStream * This, + /* [in] */ __RPC__in_opt struct _ADOStream *DestStream, + /* [defaultvalue][in] */ ADO_LONGPTR CharNumber); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Flush )( + __RPC__in struct _ADOStream * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *SaveToFile )( + __RPC__in struct _ADOStream * This, + /* [in] */ __RPC__in BSTR FileName, + /* [defaultvalue][in] */ SaveOptionsEnum Options); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *LoadFromFile )( + __RPC__in struct _ADOStream * This, + /* [in] */ __RPC__in BSTR FileName); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *ReadText )( + __RPC__in struct _ADOStream * This, + /* [defaultvalue][in] */ long NumChars, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *WriteText )( + __RPC__in struct _ADOStream * This, + /* [in] */ __RPC__in BSTR Data, + /* [defaultvalue][in] */ StreamWriteEnum Options); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in struct _ADOStream * This); + + END_INTERFACE + } _StreamVtbl; + interface _Stream + { + CONST_VTBL struct _StreamVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Stream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Stream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Stream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Stream_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Stream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Stream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Stream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Stream_get_Size(This,pSize) \ + ( (This)->lpVtbl -> get_Size(This,pSize) ) +#define _Stream_get_EOS(This,pEOS) \ + ( (This)->lpVtbl -> get_EOS(This,pEOS) ) +#define _Stream_get_Position(This,pPos) \ + ( (This)->lpVtbl -> get_Position(This,pPos) ) +#define _Stream_put_Position(This,Position) \ + ( (This)->lpVtbl -> put_Position(This,Position) ) +#define _Stream_get_Type(This,pType) \ + ( (This)->lpVtbl -> get_Type(This,pType) ) +#define _Stream_put_Type(This,Type) \ + ( (This)->lpVtbl -> put_Type(This,Type) ) +#define _Stream_get_LineSeparator(This,pLS) \ + ( (This)->lpVtbl -> get_LineSeparator(This,pLS) ) +#define _Stream_put_LineSeparator(This,LineSeparator) \ + ( (This)->lpVtbl -> put_LineSeparator(This,LineSeparator) ) +#define _Stream_get_State(This,pState) \ + ( (This)->lpVtbl -> get_State(This,pState) ) +#define _Stream_get_Mode(This,pMode) \ + ( (This)->lpVtbl -> get_Mode(This,pMode) ) +#define _Stream_put_Mode(This,Mode) \ + ( (This)->lpVtbl -> put_Mode(This,Mode) ) +#define _Stream_get_Charset(This,pbstrCharset) \ + ( (This)->lpVtbl -> get_Charset(This,pbstrCharset) ) +#define _Stream_put_Charset(This,Charset) \ + ( (This)->lpVtbl -> put_Charset(This,Charset) ) +#define _Stream_Read(This,NumBytes,pVal) \ + ( (This)->lpVtbl -> Read(This,NumBytes,pVal) ) +#define _Stream_Open(This,Source,Mode,Options,UserName,Password) \ + ( (This)->lpVtbl -> Open(This,Source,Mode,Options,UserName,Password) ) +#define _Stream_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define _Stream_SkipLine(This) \ + ( (This)->lpVtbl -> SkipLine(This) ) +#define _Stream_Write(This,Buffer) \ + ( (This)->lpVtbl -> Write(This,Buffer) ) +#define _Stream_SetEOS(This) \ + ( (This)->lpVtbl -> SetEOS(This) ) +#define _Stream_CopyTo(This,DestStream,CharNumber) \ + ( (This)->lpVtbl -> CopyTo(This,DestStream,CharNumber) ) +#define _Stream_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) +#define _Stream_SaveToFile(This,FileName,Options) \ + ( (This)->lpVtbl -> SaveToFile(This,FileName,Options) ) +#define _Stream_LoadFromFile(This,FileName) \ + ( (This)->lpVtbl -> LoadFromFile(This,FileName) ) +#define _Stream_ReadText(This,NumChars,pbstr) \ + ( (This)->lpVtbl -> ReadText(This,NumChars,pbstr) ) +#define _Stream_WriteText(This,Data,Options) \ + ( (This)->lpVtbl -> WriteText(This,Data,Options) ) +#define _Stream_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Stream_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Stream; +#ifdef __cplusplus +Stream; +#endif +#ifndef __ADORecordConstruction_INTERFACE_DEFINED__ +#define __ADORecordConstruction_INTERFACE_DEFINED__ +/* interface ADORecordConstruction */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADORecordConstruction; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000567-0000-0010-8000-00AA006D2EA4") + ADORecordConstruction : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Row( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRow) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Row( + /* [in] */ __RPC__in_opt IUnknown *pRow) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ParentRow( + /* [in] */ __RPC__in_opt IUnknown *pRow) = 0; + + }; + +#else /* C style interface */ + typedef struct ADORecordConstructionVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADORecordConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADORecordConstruction * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADORecordConstruction * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADORecordConstruction * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADORecordConstruction * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADORecordConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADORecordConstruction * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Row )( + __RPC__in ADORecordConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRow); + + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Row )( + __RPC__in ADORecordConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pRow); + + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentRow )( + __RPC__in ADORecordConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pRow); + + END_INTERFACE + } ADORecordConstructionVtbl; + interface ADORecordConstruction + { + CONST_VTBL struct ADORecordConstructionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADORecordConstruction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADORecordConstruction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADORecordConstruction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADORecordConstruction_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define ADORecordConstruction_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define ADORecordConstruction_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define ADORecordConstruction_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define ADORecordConstruction_get_Row(This,ppRow) \ + ( (This)->lpVtbl -> get_Row(This,ppRow) ) +#define ADORecordConstruction_put_Row(This,pRow) \ + ( (This)->lpVtbl -> put_Row(This,pRow) ) +#define ADORecordConstruction_put_ParentRow(This,pRow) \ + ( (This)->lpVtbl -> put_ParentRow(This,pRow) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADORecordConstruction_INTERFACE_DEFINED__ */ +#ifndef __ADOStreamConstruction_INTERFACE_DEFINED__ +#define __ADOStreamConstruction_INTERFACE_DEFINED__ +/* interface ADOStreamConstruction */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADOStreamConstruction; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000568-0000-0010-8000-00AA006D2EA4") + ADOStreamConstruction : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Stream( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppStm) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Stream( + /* [in] */ __RPC__in_opt IUnknown *pStm) = 0; + + }; + +#else /* C style interface */ + typedef struct ADOStreamConstructionVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOStreamConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOStreamConstruction * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOStreamConstruction * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADOStreamConstruction * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADOStreamConstruction * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADOStreamConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADOStreamConstruction * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Stream )( + __RPC__in ADOStreamConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppStm); + + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Stream )( + __RPC__in ADOStreamConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pStm); + + END_INTERFACE + } ADOStreamConstructionVtbl; + interface ADOStreamConstruction + { + CONST_VTBL struct ADOStreamConstructionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADOStreamConstruction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADOStreamConstruction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADOStreamConstruction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADOStreamConstruction_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define ADOStreamConstruction_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define ADOStreamConstruction_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define ADOStreamConstruction_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define ADOStreamConstruction_get_Stream(This,ppStm) \ + ( (This)->lpVtbl -> get_Stream(This,ppStm) ) +#define ADOStreamConstruction_put_Stream(This,pStm) \ + ( (This)->lpVtbl -> put_Stream(This,pStm) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADOStreamConstruction_INTERFACE_DEFINED__ */ +#ifndef __ADOCommandConstruction_INTERFACE_DEFINED__ +#define __ADOCommandConstruction_INTERFACE_DEFINED__ +/* interface ADOCommandConstruction */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADOCommandConstruction; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000517-0000-0010-8000-00AA006D2EA4") + ADOCommandConstruction : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_OLEDBCommand( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppOLEDBCommand) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_OLEDBCommand( + /* [in] */ __RPC__in_opt IUnknown *pOLEDBCommand) = 0; + + }; + +#else /* C style interface */ + typedef struct ADOCommandConstructionVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADOCommandConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADOCommandConstruction * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADOCommandConstruction * This); + + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OLEDBCommand )( + __RPC__in ADOCommandConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppOLEDBCommand); + + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_OLEDBCommand )( + __RPC__in ADOCommandConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pOLEDBCommand); + + END_INTERFACE + } ADOCommandConstructionVtbl; + interface ADOCommandConstruction + { + CONST_VTBL struct ADOCommandConstructionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADOCommandConstruction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADOCommandConstruction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADOCommandConstruction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADOCommandConstruction_get_OLEDBCommand(This,ppOLEDBCommand) \ + ( (This)->lpVtbl -> get_OLEDBCommand(This,ppOLEDBCommand) ) +#define ADOCommandConstruction_put_OLEDBCommand(This,pOLEDBCommand) \ + ( (This)->lpVtbl -> put_OLEDBCommand(This,pOLEDBCommand) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADOCommandConstruction_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Command; +#ifdef __cplusplus +Command; +#endif +EXTERN_C const CLSID CLSID_Recordset; +#ifdef __cplusplus +Recordset; +#endif +#ifndef __Recordset15_INTERFACE_DEFINED__ +#define __Recordset15_INTERFACE_DEFINED__ +/* interface Recordset15 */ +/* [object][helpcontext][uuid][nonextensible][hidden][dual] */ +EXTERN_C const IID IID_Recordset15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000050E-0000-0010-8000-00AA006D2EA4") + Recordset15 : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_AbsolutePosition( + /* [retval][out] */ __RPC__out PositionEnum_Param *pl) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_AbsolutePosition( + /* [in] */ PositionEnum_Param Position) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_ActiveConnection( + /* [in] */ __RPC__in_opt IDispatch *pconn) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_ActiveConnection( + /* [in] */ VARIANT vConn) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_BOF( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Bookmark( + /* [retval][out] */ __RPC__out VARIANT *pvBookmark) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Bookmark( + /* [in] */ VARIANT vBookmark) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CacheSize( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CacheSize( + /* [in] */ long CacheSize) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CursorType( + /* [retval][out] */ __RPC__out CursorTypeEnum *plCursorType) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CursorType( + /* [in] */ CursorTypeEnum lCursorType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_EOF( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Fields( + /* [retval][out] */ __RPC__deref_out_opt ADOFields **ppvObject) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_LockType( + /* [retval][out] */ __RPC__out LockTypeEnum *plLockType) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_LockType( + /* [in] */ LockTypeEnum lLockType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_MaxRecords( + /* [retval][out] */ __RPC__out ADO_LONGPTR *plMaxRecords) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_MaxRecords( + /* [in] */ ADO_LONGPTR lMaxRecords) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_RecordCount( + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Source( + /* [in] */ __RPC__in_opt IDispatch *pcmd) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Source( + /* [in] */ __RPC__in BSTR bstrConn) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Source( + /* [retval][out] */ __RPC__out VARIANT *pvSource) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE AddNew( + /* [optional][in] */ VARIANT FieldList, + /* [optional][in] */ VARIANT Values) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CancelUpdate( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Delete( + /* [defaultvalue][in] */ AffectEnum AffectRecords = adAffectCurrent) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetRows( + /* [defaultvalue][in] */ long Rows, + /* [optional][in] */ VARIANT Start, + /* [optional][in] */ VARIANT Fields, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Move( + /* [in] */ ADO_LONGPTR NumRecords, + /* [optional][in] */ VARIANT Start) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MoveNext( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MovePrevious( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MoveFirst( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE MoveLast( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Open( + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ CursorTypeEnum CursorType = adOpenUnspecified, + /* [defaultvalue][in] */ LockTypeEnum LockType = adLockUnspecified, + /* [defaultvalue][in] */ LONG Options = adCmdUnspecified) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Requery( + /* [defaultvalue][in] */ LONG Options = adOptionUnspecified) = 0; + + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE _xResync( + /* [defaultvalue][in] */ AffectEnum AffectRecords = adAffectAll) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Update( + /* [optional][in] */ VARIANT Fields, + /* [optional][in] */ VARIANT Values) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_AbsolutePage( + /* [retval][out] */ __RPC__out PositionEnum_Param *pl) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_AbsolutePage( + /* [in] */ PositionEnum_Param Page) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_EditMode( + /* [retval][out] */ __RPC__out EditModeEnum *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Filter( + /* [retval][out] */ __RPC__out VARIANT *Criteria) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Filter( + /* [in] */ VARIANT Criteria) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_PageCount( + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_PageSize( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_PageSize( + /* [in] */ long PageSize) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Sort( + /* [retval][out] */ __RPC__deref_out_opt BSTR *Criteria) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Sort( + /* [in] */ __RPC__in BSTR Criteria) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out LONG *plObjState) = 0; + + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE _xClone( + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE UpdateBatch( + /* [defaultvalue][in] */ AffectEnum AffectRecords = adAffectAll) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CancelBatch( + /* [defaultvalue][in] */ AffectEnum AffectRecords = adAffectAll) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_CursorLocation( + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_CursorLocation( + /* [in] */ CursorLocationEnum lCursorLoc) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE NextRecordset( + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppiRs) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Supports( + /* [in] */ CursorOptionEnum CursorOptions, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb) = 0; + + virtual /* [hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_Collect( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [hidden][id][propput] */ HRESULT STDMETHODCALLTYPE put_Collect( + /* [in] */ VARIANT Index, + /* [in] */ VARIANT value) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_MarshalOptions( + /* [retval][out] */ __RPC__out MarshalOptionsEnum *peMarshal) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_MarshalOptions( + /* [in] */ MarshalOptionsEnum eMarshal) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Find( + /* [in] */ __RPC__in BSTR Criteria, + /* [defaultvalue][in] */ ADO_LONGPTR SkipRecords, + /* [defaultvalue][in] */ SearchDirectionEnum SearchDirection, + /* [optional][in] */ VARIANT Start) = 0; + + }; + +#else /* C style interface */ + typedef struct Recordset15Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Recordset15 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Recordset15 * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Recordset15 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Recordset15 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Recordset15 * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePosition )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out PositionEnum_Param *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePosition )( + __RPC__in Recordset15 * This, + /* [in] */ PositionEnum_Param Position); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in Recordset15 * This, + /* [in] */ VARIANT vConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BOF )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Bookmark )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvBookmark); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Bookmark )( + __RPC__in Recordset15 * This, + /* [in] */ VARIANT vBookmark); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CacheSize )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CacheSize )( + __RPC__in Recordset15 * This, + /* [in] */ long CacheSize); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorType )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out CursorTypeEnum *plCursorType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorType )( + __RPC__in Recordset15 * This, + /* [in] */ CursorTypeEnum lCursorType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EOF )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOFields **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LockType )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out LockTypeEnum *plLockType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LockType )( + __RPC__in Recordset15 * This, + /* [in] */ LockTypeEnum lLockType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaxRecords )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *plMaxRecords); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaxRecords )( + __RPC__in Recordset15 * This, + /* [in] */ ADO_LONGPTR lMaxRecords); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecordCount )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in_opt IDispatch *pcmd); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in BSTR bstrConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvSource); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AddNew )( + __RPC__in Recordset15 * This, + /* [optional][in] */ VARIANT FieldList, + /* [optional][in] */ VARIANT Values); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelUpdate )( + __RPC__in Recordset15 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in Recordset15 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetRows )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ long Rows, + /* [optional][in] */ VARIANT Start, + /* [optional][in] */ VARIANT Fields, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Move )( + __RPC__in Recordset15 * This, + /* [in] */ ADO_LONGPTR NumRecords, + /* [optional][in] */ VARIANT Start); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in Recordset15 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MovePrevious )( + __RPC__in Recordset15 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveFirst )( + __RPC__in Recordset15 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveLast )( + __RPC__in Recordset15 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in Recordset15 * This, + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ CursorTypeEnum CursorType, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [defaultvalue][in] */ LONG Options); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Requery )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ LONG Options); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xResync )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in Recordset15 * This, + /* [optional][in] */ VARIANT Fields, + /* [optional][in] */ VARIANT Values); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePage )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out PositionEnum_Param *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePage )( + __RPC__in Recordset15 * This, + /* [in] */ PositionEnum_Param Page); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EditMode )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out EditModeEnum *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out VARIANT *Criteria); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( + __RPC__in Recordset15 * This, + /* [in] */ VARIANT Criteria); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageCount )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageSize )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_PageSize )( + __RPC__in Recordset15 * This, + /* [in] */ long PageSize); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Sort )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Criteria); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Sort )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in BSTR Criteria); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xClone )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppvObject); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateBatch )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelBatch )( + __RPC__in Recordset15 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in Recordset15 * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *NextADORecordset )( + __RPC__in Recordset15 * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppiRs); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Supports )( + __RPC__in Recordset15 * This, + /* [in] */ CursorOptionEnum CursorOptions, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Collect )( + __RPC__in Recordset15 * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Collect )( + __RPC__in Recordset15 * This, + /* [in] */ VARIANT Index, + /* [in] */ VARIANT value); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MarshalOptions )( + __RPC__in Recordset15 * This, + /* [retval][out] */ __RPC__out MarshalOptionsEnum *peMarshal); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MarshalOptions )( + __RPC__in Recordset15 * This, + /* [in] */ MarshalOptionsEnum eMarshal); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Find )( + __RPC__in Recordset15 * This, + /* [in] */ __RPC__in BSTR Criteria, + /* [defaultvalue][in] */ ADO_LONGPTR SkipRecords, + /* [defaultvalue][in] */ SearchDirectionEnum SearchDirection, + /* [optional][in] */ VARIANT Start); + + END_INTERFACE + } Recordset15Vtbl; + interface Recordset15 + { + CONST_VTBL struct Recordset15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Recordset15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Recordset15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Recordset15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Recordset15_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Recordset15_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Recordset15_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Recordset15_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Recordset15_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Recordset15_get_AbsolutePosition(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePosition(This,pl) ) +#define Recordset15_put_AbsolutePosition(This,Position) \ + ( (This)->lpVtbl -> put_AbsolutePosition(This,Position) ) +#define Recordset15_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) +#define Recordset15_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define Recordset15_get_ActiveConnection(This,pvar) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pvar) ) +#define Recordset15_get_BOF(This,pb) \ + ( (This)->lpVtbl -> get_BOF(This,pb) ) +#define Recordset15_get_Bookmark(This,pvBookmark) \ + ( (This)->lpVtbl -> get_Bookmark(This,pvBookmark) ) +#define Recordset15_put_Bookmark(This,vBookmark) \ + ( (This)->lpVtbl -> put_Bookmark(This,vBookmark) ) +#define Recordset15_get_CacheSize(This,pl) \ + ( (This)->lpVtbl -> get_CacheSize(This,pl) ) +#define Recordset15_put_CacheSize(This,CacheSize) \ + ( (This)->lpVtbl -> put_CacheSize(This,CacheSize) ) +#define Recordset15_get_CursorType(This,plCursorType) \ + ( (This)->lpVtbl -> get_CursorType(This,plCursorType) ) +#define Recordset15_put_CursorType(This,lCursorType) \ + ( (This)->lpVtbl -> put_CursorType(This,lCursorType) ) +#define Recordset15_get_EOF(This,pb) \ + ( (This)->lpVtbl -> get_EOF(This,pb) ) +#define Recordset15_get_Fields(This,ppvObject) \ + ( (This)->lpVtbl -> get_Fields(This,ppvObject) ) +#define Recordset15_get_LockType(This,plLockType) \ + ( (This)->lpVtbl -> get_LockType(This,plLockType) ) +#define Recordset15_put_LockType(This,lLockType) \ + ( (This)->lpVtbl -> put_LockType(This,lLockType) ) +#define Recordset15_get_MaxRecords(This,plMaxRecords) \ + ( (This)->lpVtbl -> get_MaxRecords(This,plMaxRecords) ) +#define Recordset15_put_MaxRecords(This,lMaxRecords) \ + ( (This)->lpVtbl -> put_MaxRecords(This,lMaxRecords) ) +#define Recordset15_get_RecordCount(This,pl) \ + ( (This)->lpVtbl -> get_RecordCount(This,pl) ) +#define Recordset15_putref_Source(This,pcmd) \ + ( (This)->lpVtbl -> putref_Source(This,pcmd) ) +#define Recordset15_put_Source(This,bstrConn) \ + ( (This)->lpVtbl -> put_Source(This,bstrConn) ) +#define Recordset15_get_Source(This,pvSource) \ + ( (This)->lpVtbl -> get_Source(This,pvSource) ) +#define Recordset15_AddNew(This,FieldList,Values) \ + ( (This)->lpVtbl -> AddNew(This,FieldList,Values) ) +#define Recordset15_CancelUpdate(This) \ + ( (This)->lpVtbl -> CancelUpdate(This) ) +#define Recordset15_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define Recordset15_Delete(This,AffectRecords) \ + ( (This)->lpVtbl -> Delete(This,AffectRecords) ) +#define Recordset15_GetRows(This,Rows,Start,Fields,pvar) \ + ( (This)->lpVtbl -> GetRows(This,Rows,Start,Fields,pvar) ) +#define Recordset15_Move(This,NumRecords,Start) \ + ( (This)->lpVtbl -> Move(This,NumRecords,Start) ) +#define Recordset15_MoveNext(This) \ + ( (This)->lpVtbl -> MoveNext(This) ) +#define Recordset15_MovePrevious(This) \ + ( (This)->lpVtbl -> MovePrevious(This) ) +#define Recordset15_MoveFirst(This) \ + ( (This)->lpVtbl -> MoveFirst(This) ) +#define Recordset15_MoveLast(This) \ + ( (This)->lpVtbl -> MoveLast(This) ) +#define Recordset15_Open(This,Source,ActiveConnection,CursorType,LockType,Options) \ + ( (This)->lpVtbl -> Open(This,Source,ActiveConnection,CursorType,LockType,Options) ) +#define Recordset15_Requery(This,Options) \ + ( (This)->lpVtbl -> Requery(This,Options) ) +#define Recordset15__xResync(This,AffectRecords) \ + ( (This)->lpVtbl -> _xResync(This,AffectRecords) ) +#define Recordset15_Update(This,Fields,Values) \ + ( (This)->lpVtbl -> Update(This,Fields,Values) ) +#define Recordset15_get_AbsolutePage(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePage(This,pl) ) +#define Recordset15_put_AbsolutePage(This,Page) \ + ( (This)->lpVtbl -> put_AbsolutePage(This,Page) ) +#define Recordset15_get_EditMode(This,pl) \ + ( (This)->lpVtbl -> get_EditMode(This,pl) ) +#define Recordset15_get_Filter(This,Criteria) \ + ( (This)->lpVtbl -> get_Filter(This,Criteria) ) +#define Recordset15_put_Filter(This,Criteria) \ + ( (This)->lpVtbl -> put_Filter(This,Criteria) ) +#define Recordset15_get_PageCount(This,pl) \ + ( (This)->lpVtbl -> get_PageCount(This,pl) ) +#define Recordset15_get_PageSize(This,pl) \ + ( (This)->lpVtbl -> get_PageSize(This,pl) ) +#define Recordset15_put_PageSize(This,PageSize) \ + ( (This)->lpVtbl -> put_PageSize(This,PageSize) ) +#define Recordset15_get_Sort(This,Criteria) \ + ( (This)->lpVtbl -> get_Sort(This,Criteria) ) +#define Recordset15_put_Sort(This,Criteria) \ + ( (This)->lpVtbl -> put_Sort(This,Criteria) ) +#define Recordset15_get_Status(This,pl) \ + ( (This)->lpVtbl -> get_Status(This,pl) ) +#define Recordset15_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define Recordset15__xClone(This,ppvObject) \ + ( (This)->lpVtbl -> _xClone(This,ppvObject) ) +#define Recordset15_UpdateBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> UpdateBatch(This,AffectRecords) ) +#define Recordset15_CancelBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> CancelBatch(This,AffectRecords) ) +#define Recordset15_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define Recordset15_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define Recordset15_NextRecordset(This,RecordsAffected,ppiRs) \ + ( (This)->lpVtbl -> NextRecordset(This,RecordsAffected,ppiRs) ) +#define Recordset15_Supports(This,CursorOptions,pb) \ + ( (This)->lpVtbl -> Supports(This,CursorOptions,pb) ) +#define Recordset15_get_Collect(This,Index,pvar) \ + ( (This)->lpVtbl -> get_Collect(This,Index,pvar) ) +#define Recordset15_put_Collect(This,Index,value) \ + ( (This)->lpVtbl -> put_Collect(This,Index,value) ) +#define Recordset15_get_MarshalOptions(This,peMarshal) \ + ( (This)->lpVtbl -> get_MarshalOptions(This,peMarshal) ) +#define Recordset15_put_MarshalOptions(This,eMarshal) \ + ( (This)->lpVtbl -> put_MarshalOptions(This,eMarshal) ) +#define Recordset15_Find(This,Criteria,SkipRecords,SearchDirection,Start) \ + ( (This)->lpVtbl -> Find(This,Criteria,SkipRecords,SearchDirection,Start) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Recordset15_INTERFACE_DEFINED__ */ +#ifndef __Recordset20_INTERFACE_DEFINED__ +#define __Recordset20_INTERFACE_DEFINED__ +/* interface Recordset20 */ +/* [object][helpcontext][uuid][nonextensible][hidden][dual] */ +EXTERN_C const IID IID_Recordset20; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000054F-0000-0010-8000-00AA006D2EA4") + Recordset20 : public Recordset15 + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_DataSource( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppunkDataSource) = 0; + + virtual /* [helpcontext][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_DataSource( + /* [in] */ __RPC__in_opt IUnknown *punkDataSource) = 0; + + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE _xSave( + /* [defaultvalue][in] */ __RPC__in BSTR FileName = NULL, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat = adPersistADTG) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActiveCommand( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCmd) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_StayInSync( + /* [in] */ VARIANT_BOOL bStayInSync) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_StayInSync( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbStayInSync) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetString( + /* [defaultvalue][in] */ StringFormatEnum StringFormat, + /* [defaultvalue][in] */ long NumRows, + /* [defaultvalue][in] */ __RPC__in BSTR ColumnDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR RowDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR NullExpr, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pRetString) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_DataMember( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDataMember) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_DataMember( + /* [in] */ __RPC__in BSTR bstrDataMember) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CompareBookmarks( + /* [in] */ VARIANT Bookmark1, + /* [in] */ VARIANT Bookmark2, + /* [retval][out] */ __RPC__out CompareEnum *pCompare) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Clone( + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [retval][out] */ __RPC__deref_out_opt _ADORecordset **ppvObject) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Resync( + /* [defaultvalue][in] */ AffectEnum AffectRecords = adAffectAll, + /* [defaultvalue][in] */ ResyncEnum ResyncValues = adResyncAllValues) = 0; + + }; + +#else /* C style interface */ + typedef struct Recordset20Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Recordset20 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Recordset20 * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Recordset20 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Recordset20 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Recordset20 * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePosition )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out PositionEnum_Param *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePosition )( + __RPC__in Recordset20 * This, + /* [in] */ PositionEnum_Param Position); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT vConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BOF )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Bookmark )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvBookmark); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Bookmark )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT vBookmark); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CacheSize )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CacheSize )( + __RPC__in Recordset20 * This, + /* [in] */ long CacheSize); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorType )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out CursorTypeEnum *plCursorType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorType )( + __RPC__in Recordset20 * This, + /* [in] */ CursorTypeEnum lCursorType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EOF )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOFields **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LockType )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out LockTypeEnum *plLockType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LockType )( + __RPC__in Recordset20 * This, + /* [in] */ LockTypeEnum lLockType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaxRecords )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *plMaxRecords); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaxRecords )( + __RPC__in Recordset20 * This, + /* [in] */ ADO_LONGPTR lMaxRecords); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecordCount )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in_opt IDispatch *pcmd); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in BSTR bstrConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvSource); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AddNew )( + __RPC__in Recordset20 * This, + /* [optional][in] */ VARIANT FieldList, + /* [optional][in] */ VARIANT Values); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelUpdate )( + __RPC__in Recordset20 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in Recordset20 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetRows )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ long Rows, + /* [optional][in] */ VARIANT Start, + /* [optional][in] */ VARIANT Fields, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Move )( + __RPC__in Recordset20 * This, + /* [in] */ ADO_LONGPTR NumRecords, + /* [optional][in] */ VARIANT Start); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in Recordset20 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MovePrevious )( + __RPC__in Recordset20 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveFirst )( + __RPC__in Recordset20 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveLast )( + __RPC__in Recordset20 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in Recordset20 * This, + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ CursorTypeEnum CursorType, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [defaultvalue][in] */ LONG Options); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Requery )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ LONG Options); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xResync )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in Recordset20 * This, + /* [optional][in] */ VARIANT Fields, + /* [optional][in] */ VARIANT Values); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePage )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out PositionEnum_Param *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePage )( + __RPC__in Recordset20 * This, + /* [in] */ PositionEnum_Param Page); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EditMode )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out EditModeEnum *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT *Criteria); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT Criteria); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageCount )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageSize )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_PageSize )( + __RPC__in Recordset20 * This, + /* [in] */ long PageSize); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Sort )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Criteria); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Sort )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in BSTR Criteria); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xClone )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppvObject); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateBatch )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelBatch )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in Recordset20 * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *NextADORecordset )( + __RPC__in Recordset20 * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppiRs); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Supports )( + __RPC__in Recordset20 * This, + /* [in] */ CursorOptionEnum CursorOptions, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Collect )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Collect )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT Index, + /* [in] */ VARIANT value); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MarshalOptions )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out MarshalOptionsEnum *peMarshal); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MarshalOptions )( + __RPC__in Recordset20 * This, + /* [in] */ MarshalOptionsEnum eMarshal); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Find )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in BSTR Criteria, + /* [defaultvalue][in] */ ADO_LONGPTR SkipRecords, + /* [defaultvalue][in] */ SearchDirectionEnum SearchDirection, + /* [optional][in] */ VARIANT Start); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in Recordset20 * This); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSource )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppunkDataSource); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DataSource )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in_opt IUnknown *punkDataSource); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xSave )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ __RPC__in BSTR FileName, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveCommand )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCmd); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_StayInSync )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT_BOOL bStayInSync); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_StayInSync )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbStayInSync); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetString )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ StringFormatEnum StringFormat, + /* [defaultvalue][in] */ long NumRows, + /* [defaultvalue][in] */ __RPC__in BSTR ColumnDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR RowDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR NullExpr, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pRetString); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataMember )( + __RPC__in Recordset20 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDataMember); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataMember )( + __RPC__in Recordset20 * This, + /* [in] */ __RPC__in BSTR bstrDataMember); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CompareBookmarks )( + __RPC__in Recordset20 * This, + /* [in] */ VARIANT Bookmark1, + /* [in] */ VARIANT Bookmark2, + /* [retval][out] */ __RPC__out CompareEnum *pCompare); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppvObject); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Resync )( + __RPC__in Recordset20 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords, + /* [defaultvalue][in] */ ResyncEnum ResyncValues); + + END_INTERFACE + } Recordset20Vtbl; + interface Recordset20 + { + CONST_VTBL struct Recordset20Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Recordset20_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Recordset20_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Recordset20_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Recordset20_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Recordset20_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Recordset20_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Recordset20_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Recordset20_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Recordset20_get_AbsolutePosition(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePosition(This,pl) ) +#define Recordset20_put_AbsolutePosition(This,Position) \ + ( (This)->lpVtbl -> put_AbsolutePosition(This,Position) ) +#define Recordset20_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) +#define Recordset20_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define Recordset20_get_ActiveConnection(This,pvar) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pvar) ) +#define Recordset20_get_BOF(This,pb) \ + ( (This)->lpVtbl -> get_BOF(This,pb) ) +#define Recordset20_get_Bookmark(This,pvBookmark) \ + ( (This)->lpVtbl -> get_Bookmark(This,pvBookmark) ) +#define Recordset20_put_Bookmark(This,vBookmark) \ + ( (This)->lpVtbl -> put_Bookmark(This,vBookmark) ) +#define Recordset20_get_CacheSize(This,pl) \ + ( (This)->lpVtbl -> get_CacheSize(This,pl) ) +#define Recordset20_put_CacheSize(This,CacheSize) \ + ( (This)->lpVtbl -> put_CacheSize(This,CacheSize) ) +#define Recordset20_get_CursorType(This,plCursorType) \ + ( (This)->lpVtbl -> get_CursorType(This,plCursorType) ) +#define Recordset20_put_CursorType(This,lCursorType) \ + ( (This)->lpVtbl -> put_CursorType(This,lCursorType) ) +#define Recordset20_get_EOF(This,pb) \ + ( (This)->lpVtbl -> get_EOF(This,pb) ) +#define Recordset20_get_Fields(This,ppvObject) \ + ( (This)->lpVtbl -> get_Fields(This,ppvObject) ) +#define Recordset20_get_LockType(This,plLockType) \ + ( (This)->lpVtbl -> get_LockType(This,plLockType) ) +#define Recordset20_put_LockType(This,lLockType) \ + ( (This)->lpVtbl -> put_LockType(This,lLockType) ) +#define Recordset20_get_MaxRecords(This,plMaxRecords) \ + ( (This)->lpVtbl -> get_MaxRecords(This,plMaxRecords) ) +#define Recordset20_put_MaxRecords(This,lMaxRecords) \ + ( (This)->lpVtbl -> put_MaxRecords(This,lMaxRecords) ) +#define Recordset20_get_RecordCount(This,pl) \ + ( (This)->lpVtbl -> get_RecordCount(This,pl) ) +#define Recordset20_putref_Source(This,pcmd) \ + ( (This)->lpVtbl -> putref_Source(This,pcmd) ) +#define Recordset20_put_Source(This,bstrConn) \ + ( (This)->lpVtbl -> put_Source(This,bstrConn) ) +#define Recordset20_get_Source(This,pvSource) \ + ( (This)->lpVtbl -> get_Source(This,pvSource) ) +#define Recordset20_AddNew(This,FieldList,Values) \ + ( (This)->lpVtbl -> AddNew(This,FieldList,Values) ) +#define Recordset20_CancelUpdate(This) \ + ( (This)->lpVtbl -> CancelUpdate(This) ) +#define Recordset20_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define Recordset20_Delete(This,AffectRecords) \ + ( (This)->lpVtbl -> Delete(This,AffectRecords) ) +#define Recordset20_GetRows(This,Rows,Start,Fields,pvar) \ + ( (This)->lpVtbl -> GetRows(This,Rows,Start,Fields,pvar) ) +#define Recordset20_Move(This,NumRecords,Start) \ + ( (This)->lpVtbl -> Move(This,NumRecords,Start) ) +#define Recordset20_MoveNext(This) \ + ( (This)->lpVtbl -> MoveNext(This) ) +#define Recordset20_MovePrevious(This) \ + ( (This)->lpVtbl -> MovePrevious(This) ) +#define Recordset20_MoveFirst(This) \ + ( (This)->lpVtbl -> MoveFirst(This) ) +#define Recordset20_MoveLast(This) \ + ( (This)->lpVtbl -> MoveLast(This) ) +#define Recordset20_Open(This,Source,ActiveConnection,CursorType,LockType,Options) \ + ( (This)->lpVtbl -> Open(This,Source,ActiveConnection,CursorType,LockType,Options) ) +#define Recordset20_Requery(This,Options) \ + ( (This)->lpVtbl -> Requery(This,Options) ) +#define Recordset20__xResync(This,AffectRecords) \ + ( (This)->lpVtbl -> _xResync(This,AffectRecords) ) +#define Recordset20_Update(This,Fields,Values) \ + ( (This)->lpVtbl -> Update(This,Fields,Values) ) +#define Recordset20_get_AbsolutePage(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePage(This,pl) ) +#define Recordset20_put_AbsolutePage(This,Page) \ + ( (This)->lpVtbl -> put_AbsolutePage(This,Page) ) +#define Recordset20_get_EditMode(This,pl) \ + ( (This)->lpVtbl -> get_EditMode(This,pl) ) +#define Recordset20_get_Filter(This,Criteria) \ + ( (This)->lpVtbl -> get_Filter(This,Criteria) ) +#define Recordset20_put_Filter(This,Criteria) \ + ( (This)->lpVtbl -> put_Filter(This,Criteria) ) +#define Recordset20_get_PageCount(This,pl) \ + ( (This)->lpVtbl -> get_PageCount(This,pl) ) +#define Recordset20_get_PageSize(This,pl) \ + ( (This)->lpVtbl -> get_PageSize(This,pl) ) +#define Recordset20_put_PageSize(This,PageSize) \ + ( (This)->lpVtbl -> put_PageSize(This,PageSize) ) +#define Recordset20_get_Sort(This,Criteria) \ + ( (This)->lpVtbl -> get_Sort(This,Criteria) ) +#define Recordset20_put_Sort(This,Criteria) \ + ( (This)->lpVtbl -> put_Sort(This,Criteria) ) +#define Recordset20_get_Status(This,pl) \ + ( (This)->lpVtbl -> get_Status(This,pl) ) +#define Recordset20_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define Recordset20__xClone(This,ppvObject) \ + ( (This)->lpVtbl -> _xClone(This,ppvObject) ) +#define Recordset20_UpdateBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> UpdateBatch(This,AffectRecords) ) +#define Recordset20_CancelBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> CancelBatch(This,AffectRecords) ) +#define Recordset20_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define Recordset20_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define Recordset20_NextRecordset(This,RecordsAffected,ppiRs) \ + ( (This)->lpVtbl -> NextRecordset(This,RecordsAffected,ppiRs) ) +#define Recordset20_Supports(This,CursorOptions,pb) \ + ( (This)->lpVtbl -> Supports(This,CursorOptions,pb) ) +#define Recordset20_get_Collect(This,Index,pvar) \ + ( (This)->lpVtbl -> get_Collect(This,Index,pvar) ) +#define Recordset20_put_Collect(This,Index,value) \ + ( (This)->lpVtbl -> put_Collect(This,Index,value) ) +#define Recordset20_get_MarshalOptions(This,peMarshal) \ + ( (This)->lpVtbl -> get_MarshalOptions(This,peMarshal) ) +#define Recordset20_put_MarshalOptions(This,eMarshal) \ + ( (This)->lpVtbl -> put_MarshalOptions(This,eMarshal) ) +#define Recordset20_Find(This,Criteria,SkipRecords,SearchDirection,Start) \ + ( (This)->lpVtbl -> Find(This,Criteria,SkipRecords,SearchDirection,Start) ) +#define Recordset20_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#define Recordset20_get_DataSource(This,ppunkDataSource) \ + ( (This)->lpVtbl -> get_DataSource(This,ppunkDataSource) ) +#define Recordset20_putref_DataSource(This,punkDataSource) \ + ( (This)->lpVtbl -> putref_DataSource(This,punkDataSource) ) +#define Recordset20__xSave(This,FileName,PersistFormat) \ + ( (This)->lpVtbl -> _xSave(This,FileName,PersistFormat) ) +#define Recordset20_get_ActiveCommand(This,ppCmd) \ + ( (This)->lpVtbl -> get_ActiveCommand(This,ppCmd) ) +#define Recordset20_put_StayInSync(This,bStayInSync) \ + ( (This)->lpVtbl -> put_StayInSync(This,bStayInSync) ) +#define Recordset20_get_StayInSync(This,pbStayInSync) \ + ( (This)->lpVtbl -> get_StayInSync(This,pbStayInSync) ) +#define Recordset20_GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) \ + ( (This)->lpVtbl -> GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) ) +#define Recordset20_get_DataMember(This,pbstrDataMember) \ + ( (This)->lpVtbl -> get_DataMember(This,pbstrDataMember) ) +#define Recordset20_put_DataMember(This,bstrDataMember) \ + ( (This)->lpVtbl -> put_DataMember(This,bstrDataMember) ) +#define Recordset20_CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) \ + ( (This)->lpVtbl -> CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) ) +#define Recordset20_Clone(This,LockType,ppvObject) \ + ( (This)->lpVtbl -> Clone(This,LockType,ppvObject) ) +#define Recordset20_Resync(This,AffectRecords,ResyncValues) \ + ( (This)->lpVtbl -> Resync(This,AffectRecords,ResyncValues) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Recordset20_INTERFACE_DEFINED__ */ +#ifndef __Recordset21_INTERFACE_DEFINED__ +#define __Recordset21_INTERFACE_DEFINED__ +/* interface Recordset21 */ +/* [object][helpcontext][uuid][nonextensible][hidden][dual] */ +EXTERN_C const IID IID_Recordset21; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000555-0000-0010-8000-00AA006D2EA4") + Recordset21 : public Recordset20 + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Seek( + /* [in] */ VARIANT KeyValues, + /* [defaultvalue][in] */ SeekEnum SeekOption = adSeekFirstEQ) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Index( + /* [in] */ __RPC__in BSTR Index) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Index( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrIndex) = 0; + + }; + +#else /* C style interface */ + typedef struct Recordset21Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Recordset21 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Recordset21 * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Recordset21 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Recordset21 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Recordset21 * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePosition )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out PositionEnum_Param *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePosition )( + __RPC__in Recordset21 * This, + /* [in] */ PositionEnum_Param Position); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT vConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BOF )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Bookmark )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT *pvBookmark); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Bookmark )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT vBookmark); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CacheSize )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CacheSize )( + __RPC__in Recordset21 * This, + /* [in] */ long CacheSize); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorType )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out CursorTypeEnum *plCursorType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorType )( + __RPC__in Recordset21 * This, + /* [in] */ CursorTypeEnum lCursorType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EOF )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOFields **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LockType )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out LockTypeEnum *plLockType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LockType )( + __RPC__in Recordset21 * This, + /* [in] */ LockTypeEnum lLockType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaxRecords )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *plMaxRecords); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaxRecords )( + __RPC__in Recordset21 * This, + /* [in] */ ADO_LONGPTR lMaxRecords); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecordCount )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in_opt IDispatch *pcmd); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in BSTR bstrConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT *pvSource); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AddNew )( + __RPC__in Recordset21 * This, + /* [optional][in] */ VARIANT FieldList, + /* [optional][in] */ VARIANT Values); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelUpdate )( + __RPC__in Recordset21 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in Recordset21 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetRows )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ long Rows, + /* [optional][in] */ VARIANT Start, + /* [optional][in] */ VARIANT Fields, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Move )( + __RPC__in Recordset21 * This, + /* [in] */ ADO_LONGPTR NumRecords, + /* [optional][in] */ VARIANT Start); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in Recordset21 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MovePrevious )( + __RPC__in Recordset21 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveFirst )( + __RPC__in Recordset21 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveLast )( + __RPC__in Recordset21 * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in Recordset21 * This, + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ CursorTypeEnum CursorType, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [defaultvalue][in] */ LONG Options); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Requery )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ LONG Options); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xResync )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in Recordset21 * This, + /* [optional][in] */ VARIANT Fields, + /* [optional][in] */ VARIANT Values); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePage )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out PositionEnum_Param *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePage )( + __RPC__in Recordset21 * This, + /* [in] */ PositionEnum_Param Page); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EditMode )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out EditModeEnum *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT *Criteria); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT Criteria); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageCount )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageSize )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_PageSize )( + __RPC__in Recordset21 * This, + /* [in] */ long PageSize); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Sort )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Criteria); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Sort )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in BSTR Criteria); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xClone )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppvObject); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateBatch )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelBatch )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in Recordset21 * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *NextADORecordset )( + __RPC__in Recordset21 * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppiRs); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Supports )( + __RPC__in Recordset21 * This, + /* [in] */ CursorOptionEnum CursorOptions, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Collect )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Collect )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT Index, + /* [in] */ VARIANT value); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MarshalOptions )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out MarshalOptionsEnum *peMarshal); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MarshalOptions )( + __RPC__in Recordset21 * This, + /* [in] */ MarshalOptionsEnum eMarshal); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Find )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in BSTR Criteria, + /* [defaultvalue][in] */ ADO_LONGPTR SkipRecords, + /* [defaultvalue][in] */ SearchDirectionEnum SearchDirection, + /* [optional][in] */ VARIANT Start); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in Recordset21 * This); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSource )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppunkDataSource); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DataSource )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in_opt IUnknown *punkDataSource); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xSave )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ __RPC__in BSTR FileName, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveCommand )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCmd); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_StayInSync )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT_BOOL bStayInSync); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_StayInSync )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbStayInSync); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetString )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ StringFormatEnum StringFormat, + /* [defaultvalue][in] */ long NumRows, + /* [defaultvalue][in] */ __RPC__in BSTR ColumnDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR RowDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR NullExpr, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pRetString); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataMember )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDataMember); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataMember )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in BSTR bstrDataMember); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CompareBookmarks )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT Bookmark1, + /* [in] */ VARIANT Bookmark2, + /* [retval][out] */ __RPC__out CompareEnum *pCompare); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppvObject); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Resync )( + __RPC__in Recordset21 * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords, + /* [defaultvalue][in] */ ResyncEnum ResyncValues); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Seek )( + __RPC__in Recordset21 * This, + /* [in] */ VARIANT KeyValues, + /* [defaultvalue][in] */ SeekEnum SeekOption); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Index )( + __RPC__in Recordset21 * This, + /* [in] */ __RPC__in BSTR Index); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Index )( + __RPC__in Recordset21 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrIndex); + + END_INTERFACE + } Recordset21Vtbl; + interface Recordset21 + { + CONST_VTBL struct Recordset21Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Recordset21_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Recordset21_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Recordset21_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Recordset21_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Recordset21_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Recordset21_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Recordset21_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Recordset21_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Recordset21_get_AbsolutePosition(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePosition(This,pl) ) +#define Recordset21_put_AbsolutePosition(This,Position) \ + ( (This)->lpVtbl -> put_AbsolutePosition(This,Position) ) +#define Recordset21_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) +#define Recordset21_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define Recordset21_get_ActiveConnection(This,pvar) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pvar) ) +#define Recordset21_get_BOF(This,pb) \ + ( (This)->lpVtbl -> get_BOF(This,pb) ) +#define Recordset21_get_Bookmark(This,pvBookmark) \ + ( (This)->lpVtbl -> get_Bookmark(This,pvBookmark) ) +#define Recordset21_put_Bookmark(This,vBookmark) \ + ( (This)->lpVtbl -> put_Bookmark(This,vBookmark) ) +#define Recordset21_get_CacheSize(This,pl) \ + ( (This)->lpVtbl -> get_CacheSize(This,pl) ) +#define Recordset21_put_CacheSize(This,CacheSize) \ + ( (This)->lpVtbl -> put_CacheSize(This,CacheSize) ) +#define Recordset21_get_CursorType(This,plCursorType) \ + ( (This)->lpVtbl -> get_CursorType(This,plCursorType) ) +#define Recordset21_put_CursorType(This,lCursorType) \ + ( (This)->lpVtbl -> put_CursorType(This,lCursorType) ) +#define Recordset21_get_EOF(This,pb) \ + ( (This)->lpVtbl -> get_EOF(This,pb) ) +#define Recordset21_get_Fields(This,ppvObject) \ + ( (This)->lpVtbl -> get_Fields(This,ppvObject) ) +#define Recordset21_get_LockType(This,plLockType) \ + ( (This)->lpVtbl -> get_LockType(This,plLockType) ) +#define Recordset21_put_LockType(This,lLockType) \ + ( (This)->lpVtbl -> put_LockType(This,lLockType) ) +#define Recordset21_get_MaxRecords(This,plMaxRecords) \ + ( (This)->lpVtbl -> get_MaxRecords(This,plMaxRecords) ) +#define Recordset21_put_MaxRecords(This,lMaxRecords) \ + ( (This)->lpVtbl -> put_MaxRecords(This,lMaxRecords) ) +#define Recordset21_get_RecordCount(This,pl) \ + ( (This)->lpVtbl -> get_RecordCount(This,pl) ) +#define Recordset21_putref_Source(This,pcmd) \ + ( (This)->lpVtbl -> putref_Source(This,pcmd) ) +#define Recordset21_put_Source(This,bstrConn) \ + ( (This)->lpVtbl -> put_Source(This,bstrConn) ) +#define Recordset21_get_Source(This,pvSource) \ + ( (This)->lpVtbl -> get_Source(This,pvSource) ) +#define Recordset21_AddNew(This,FieldList,Values) \ + ( (This)->lpVtbl -> AddNew(This,FieldList,Values) ) +#define Recordset21_CancelUpdate(This) \ + ( (This)->lpVtbl -> CancelUpdate(This) ) +#define Recordset21_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define Recordset21_Delete(This,AffectRecords) \ + ( (This)->lpVtbl -> Delete(This,AffectRecords) ) +#define Recordset21_GetRows(This,Rows,Start,Fields,pvar) \ + ( (This)->lpVtbl -> GetRows(This,Rows,Start,Fields,pvar) ) +#define Recordset21_Move(This,NumRecords,Start) \ + ( (This)->lpVtbl -> Move(This,NumRecords,Start) ) +#define Recordset21_MoveNext(This) \ + ( (This)->lpVtbl -> MoveNext(This) ) +#define Recordset21_MovePrevious(This) \ + ( (This)->lpVtbl -> MovePrevious(This) ) +#define Recordset21_MoveFirst(This) \ + ( (This)->lpVtbl -> MoveFirst(This) ) +#define Recordset21_MoveLast(This) \ + ( (This)->lpVtbl -> MoveLast(This) ) +#define Recordset21_Open(This,Source,ActiveConnection,CursorType,LockType,Options) \ + ( (This)->lpVtbl -> Open(This,Source,ActiveConnection,CursorType,LockType,Options) ) +#define Recordset21_Requery(This,Options) \ + ( (This)->lpVtbl -> Requery(This,Options) ) +#define Recordset21__xResync(This,AffectRecords) \ + ( (This)->lpVtbl -> _xResync(This,AffectRecords) ) +#define Recordset21_Update(This,Fields,Values) \ + ( (This)->lpVtbl -> Update(This,Fields,Values) ) +#define Recordset21_get_AbsolutePage(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePage(This,pl) ) +#define Recordset21_put_AbsolutePage(This,Page) \ + ( (This)->lpVtbl -> put_AbsolutePage(This,Page) ) +#define Recordset21_get_EditMode(This,pl) \ + ( (This)->lpVtbl -> get_EditMode(This,pl) ) +#define Recordset21_get_Filter(This,Criteria) \ + ( (This)->lpVtbl -> get_Filter(This,Criteria) ) +#define Recordset21_put_Filter(This,Criteria) \ + ( (This)->lpVtbl -> put_Filter(This,Criteria) ) +#define Recordset21_get_PageCount(This,pl) \ + ( (This)->lpVtbl -> get_PageCount(This,pl) ) +#define Recordset21_get_PageSize(This,pl) \ + ( (This)->lpVtbl -> get_PageSize(This,pl) ) +#define Recordset21_put_PageSize(This,PageSize) \ + ( (This)->lpVtbl -> put_PageSize(This,PageSize) ) +#define Recordset21_get_Sort(This,Criteria) \ + ( (This)->lpVtbl -> get_Sort(This,Criteria) ) +#define Recordset21_put_Sort(This,Criteria) \ + ( (This)->lpVtbl -> put_Sort(This,Criteria) ) +#define Recordset21_get_Status(This,pl) \ + ( (This)->lpVtbl -> get_Status(This,pl) ) +#define Recordset21_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define Recordset21__xClone(This,ppvObject) \ + ( (This)->lpVtbl -> _xClone(This,ppvObject) ) +#define Recordset21_UpdateBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> UpdateBatch(This,AffectRecords) ) +#define Recordset21_CancelBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> CancelBatch(This,AffectRecords) ) +#define Recordset21_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define Recordset21_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define Recordset21_NextRecordset(This,RecordsAffected,ppiRs) \ + ( (This)->lpVtbl -> NextRecordset(This,RecordsAffected,ppiRs) ) +#define Recordset21_Supports(This,CursorOptions,pb) \ + ( (This)->lpVtbl -> Supports(This,CursorOptions,pb) ) +#define Recordset21_get_Collect(This,Index,pvar) \ + ( (This)->lpVtbl -> get_Collect(This,Index,pvar) ) +#define Recordset21_put_Collect(This,Index,value) \ + ( (This)->lpVtbl -> put_Collect(This,Index,value) ) +#define Recordset21_get_MarshalOptions(This,peMarshal) \ + ( (This)->lpVtbl -> get_MarshalOptions(This,peMarshal) ) +#define Recordset21_put_MarshalOptions(This,eMarshal) \ + ( (This)->lpVtbl -> put_MarshalOptions(This,eMarshal) ) +#define Recordset21_Find(This,Criteria,SkipRecords,SearchDirection,Start) \ + ( (This)->lpVtbl -> Find(This,Criteria,SkipRecords,SearchDirection,Start) ) +#define Recordset21_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#define Recordset21_get_DataSource(This,ppunkDataSource) \ + ( (This)->lpVtbl -> get_DataSource(This,ppunkDataSource) ) +#define Recordset21_putref_DataSource(This,punkDataSource) \ + ( (This)->lpVtbl -> putref_DataSource(This,punkDataSource) ) +#define Recordset21__xSave(This,FileName,PersistFormat) \ + ( (This)->lpVtbl -> _xSave(This,FileName,PersistFormat) ) +#define Recordset21_get_ActiveCommand(This,ppCmd) \ + ( (This)->lpVtbl -> get_ActiveCommand(This,ppCmd) ) +#define Recordset21_put_StayInSync(This,bStayInSync) \ + ( (This)->lpVtbl -> put_StayInSync(This,bStayInSync) ) +#define Recordset21_get_StayInSync(This,pbStayInSync) \ + ( (This)->lpVtbl -> get_StayInSync(This,pbStayInSync) ) +#define Recordset21_GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) \ + ( (This)->lpVtbl -> GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) ) +#define Recordset21_get_DataMember(This,pbstrDataMember) \ + ( (This)->lpVtbl -> get_DataMember(This,pbstrDataMember) ) +#define Recordset21_put_DataMember(This,bstrDataMember) \ + ( (This)->lpVtbl -> put_DataMember(This,bstrDataMember) ) +#define Recordset21_CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) \ + ( (This)->lpVtbl -> CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) ) +#define Recordset21_Clone(This,LockType,ppvObject) \ + ( (This)->lpVtbl -> Clone(This,LockType,ppvObject) ) +#define Recordset21_Resync(This,AffectRecords,ResyncValues) \ + ( (This)->lpVtbl -> Resync(This,AffectRecords,ResyncValues) ) +#define Recordset21_Seek(This,KeyValues,SeekOption) \ + ( (This)->lpVtbl -> Seek(This,KeyValues,SeekOption) ) +#define Recordset21_put_Index(This,Index) \ + ( (This)->lpVtbl -> put_Index(This,Index) ) +#define Recordset21_get_Index(This,pbstrIndex) \ + ( (This)->lpVtbl -> get_Index(This,pbstrIndex) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Recordset21_INTERFACE_DEFINED__ */ +#ifndef ___Recordset_INTERFACE_DEFINED__ +#define ___Recordset_INTERFACE_DEFINED__ +/* interface _ADORecordset */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__Recordset; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000556-0000-0010-8000-00AA006D2EA4") + _ADORecordset : public Recordset21 + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Save( + /* [optional][in] */ VARIANT Destination, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat = adPersistADTG) = 0; + + }; + +#else /* C style interface */ + typedef struct _RecordsetVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct _ADORecordset * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct _ADORecordset * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct _ADORecordset * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct _ADORecordset * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct _ADORecordset * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct _ADORecordset * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct _ADORecordset * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePosition )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out PositionEnum_Param *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePosition )( + __RPC__in struct _ADORecordset * This, + /* [in] */ PositionEnum_Param Position); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveADOConnection )( + __RPC__in struct _ADORecordset * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in struct _ADORecordset * This, + /* [in] */ VARIANT vConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BOF )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Bookmark )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT *pvBookmark); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Bookmark )( + __RPC__in struct _ADORecordset * This, + /* [in] */ VARIANT vBookmark); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CacheSize )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CacheSize )( + __RPC__in struct _ADORecordset * This, + /* [in] */ long CacheSize); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorType )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out CursorTypeEnum *plCursorType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorType )( + __RPC__in struct _ADORecordset * This, + /* [in] */ CursorTypeEnum lCursorType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EOF )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Fields )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOFields **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_LockType )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out LockTypeEnum *plLockType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_LockType )( + __RPC__in struct _ADORecordset * This, + /* [in] */ LockTypeEnum lLockType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaxRecords )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *plMaxRecords); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaxRecords )( + __RPC__in struct _ADORecordset * This, + /* [in] */ ADO_LONGPTR lMaxRecords); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecordCount )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in struct _ADORecordset * This, + /* [in] */ __RPC__in_opt IDispatch *pcmd); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in struct _ADORecordset * This, + /* [in] */ __RPC__in BSTR bstrConn); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT *pvSource); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AddNew )( + __RPC__in struct _ADORecordset * This, + /* [optional][in] */ VARIANT FieldList, + /* [optional][in] */ VARIANT Values); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelUpdate )( + __RPC__in struct _ADORecordset * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in struct _ADORecordset * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in struct _ADORecordset * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetRows )( + __RPC__in struct _ADORecordset * This, + /* [defaultvalue][in] */ long Rows, + /* [optional][in] */ VARIANT Start, + /* [optional][in] */ VARIANT Fields, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Move )( + __RPC__in struct _ADORecordset * This, + /* [in] */ ADO_LONGPTR NumRecords, + /* [optional][in] */ VARIANT Start); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveNext )( + __RPC__in struct _ADORecordset * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MovePrevious )( + __RPC__in struct _ADORecordset * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveFirst )( + __RPC__in struct _ADORecordset * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *MoveLast )( + __RPC__in struct _ADORecordset * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in struct _ADORecordset * This, + /* [optional][in] */ VARIANT Source, + /* [optional][in] */ VARIANT ActiveConnection, + /* [defaultvalue][in] */ CursorTypeEnum CursorType, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [defaultvalue][in] */ LONG Options); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Requery )( + __RPC__in struct _ADORecordset * This, + /* [defaultvalue][in] */ LONG Options); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xResync )( + __RPC__in struct _ADORecordset * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in struct _ADORecordset * This, + /* [optional][in] */ VARIANT Fields, + /* [optional][in] */ VARIANT Values); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_AbsolutePage )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out PositionEnum_Param *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_AbsolutePage )( + __RPC__in struct _ADORecordset * This, + /* [in] */ PositionEnum_Param Page); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_EditMode )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out EditModeEnum *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT *Criteria); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Filter )( + __RPC__in struct _ADORecordset * This, + /* [in] */ VARIANT Criteria); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageCount )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_PageSize )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_PageSize )( + __RPC__in struct _ADORecordset * This, + /* [in] */ long PageSize); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Sort )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *Criteria); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Sort )( + __RPC__in struct _ADORecordset * This, + /* [in] */ __RPC__in BSTR Criteria); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out LONG *plObjState); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xClone )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppvObject); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateBatch )( + __RPC__in struct _ADORecordset * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelBatch )( + __RPC__in struct _ADORecordset * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_CursorLocation )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out CursorLocationEnum *plCursorLoc); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_CursorLocation )( + __RPC__in struct _ADORecordset * This, + /* [in] */ CursorLocationEnum lCursorLoc); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *NextADORecordset )( + __RPC__in struct _ADORecordset * This, + /* [optional][out] */ __RPC__out VARIANT *RecordsAffected, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppiRs); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Supports )( + __RPC__in struct _ADORecordset * This, + /* [in] */ CursorOptionEnum CursorOptions, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pb); + + /* [hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Collect )( + __RPC__in struct _ADORecordset * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [hidden][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Collect )( + __RPC__in struct _ADORecordset * This, + /* [in] */ VARIANT Index, + /* [in] */ VARIANT value); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MarshalOptions )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out MarshalOptionsEnum *peMarshal); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MarshalOptions )( + __RPC__in struct _ADORecordset * This, + /* [in] */ MarshalOptionsEnum eMarshal); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Find )( + __RPC__in struct _ADORecordset * This, + /* [in] */ __RPC__in BSTR Criteria, + /* [defaultvalue][in] */ ADO_LONGPTR SkipRecords, + /* [defaultvalue][in] */ SearchDirectionEnum SearchDirection, + /* [optional][in] */ VARIANT Start); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in struct _ADORecordset * This); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataSource )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppunkDataSource); + + /* [helpcontext][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DataSource )( + __RPC__in struct _ADORecordset * This, + /* [in] */ __RPC__in_opt IUnknown *punkDataSource); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_xSave )( + __RPC__in struct _ADORecordset * This, + /* [defaultvalue][in] */ __RPC__in BSTR FileName, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveCommand )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppCmd); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_StayInSync )( + __RPC__in struct _ADORecordset * This, + /* [in] */ VARIANT_BOOL bStayInSync); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_StayInSync )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbStayInSync); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetString )( + __RPC__in struct _ADORecordset * This, + /* [defaultvalue][in] */ StringFormatEnum StringFormat, + /* [defaultvalue][in] */ long NumRows, + /* [defaultvalue][in] */ __RPC__in BSTR ColumnDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR RowDelimeter, + /* [defaultvalue][in] */ __RPC__in BSTR NullExpr, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pRetString); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataMember )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDataMember); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DataMember )( + __RPC__in struct _ADORecordset * This, + /* [in] */ __RPC__in BSTR bstrDataMember); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CompareBookmarks )( + __RPC__in struct _ADORecordset * This, + /* [in] */ VARIANT Bookmark1, + /* [in] */ VARIANT Bookmark2, + /* [retval][out] */ __RPC__out CompareEnum *pCompare); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in struct _ADORecordset * This, + /* [defaultvalue][in] */ LockTypeEnum LockType, + /* [retval][out] */ __RPC__deref_out_opt struct _ADORecordset **ppvObject); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Resync )( + __RPC__in struct _ADORecordset * This, + /* [defaultvalue][in] */ AffectEnum AffectRecords, + /* [defaultvalue][in] */ ResyncEnum ResyncValues); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Seek )( + __RPC__in struct _ADORecordset * This, + /* [in] */ VARIANT KeyValues, + /* [defaultvalue][in] */ SeekEnum SeekOption); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Index )( + __RPC__in struct _ADORecordset * This, + /* [in] */ __RPC__in BSTR Index); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Index )( + __RPC__in struct _ADORecordset * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrIndex); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in struct _ADORecordset * This, + /* [optional][in] */ VARIANT Destination, + /* [defaultvalue][in] */ PersistFormatEnum PersistFormat); + + END_INTERFACE + } _RecordsetVtbl; + interface _Recordset + { + CONST_VTBL struct _RecordsetVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Recordset_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Recordset_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Recordset_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Recordset_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Recordset_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Recordset_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Recordset_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Recordset_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Recordset_get_AbsolutePosition(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePosition(This,pl) ) +#define _Recordset_put_AbsolutePosition(This,Position) \ + ( (This)->lpVtbl -> put_AbsolutePosition(This,Position) ) +#define _Recordset_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) +#define _Recordset_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) +#define _Recordset_get_ActiveConnection(This,pvar) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,pvar) ) +#define _Recordset_get_BOF(This,pb) \ + ( (This)->lpVtbl -> get_BOF(This,pb) ) +#define _Recordset_get_Bookmark(This,pvBookmark) \ + ( (This)->lpVtbl -> get_Bookmark(This,pvBookmark) ) +#define _Recordset_put_Bookmark(This,vBookmark) \ + ( (This)->lpVtbl -> put_Bookmark(This,vBookmark) ) +#define _Recordset_get_CacheSize(This,pl) \ + ( (This)->lpVtbl -> get_CacheSize(This,pl) ) +#define _Recordset_put_CacheSize(This,CacheSize) \ + ( (This)->lpVtbl -> put_CacheSize(This,CacheSize) ) +#define _Recordset_get_CursorType(This,plCursorType) \ + ( (This)->lpVtbl -> get_CursorType(This,plCursorType) ) +#define _Recordset_put_CursorType(This,lCursorType) \ + ( (This)->lpVtbl -> put_CursorType(This,lCursorType) ) +#define _Recordset_get_EOF(This,pb) \ + ( (This)->lpVtbl -> get_EOF(This,pb) ) +#define _Recordset_get_Fields(This,ppvObject) \ + ( (This)->lpVtbl -> get_Fields(This,ppvObject) ) +#define _Recordset_get_LockType(This,plLockType) \ + ( (This)->lpVtbl -> get_LockType(This,plLockType) ) +#define _Recordset_put_LockType(This,lLockType) \ + ( (This)->lpVtbl -> put_LockType(This,lLockType) ) +#define _Recordset_get_MaxRecords(This,plMaxRecords) \ + ( (This)->lpVtbl -> get_MaxRecords(This,plMaxRecords) ) +#define _Recordset_put_MaxRecords(This,lMaxRecords) \ + ( (This)->lpVtbl -> put_MaxRecords(This,lMaxRecords) ) +#define _Recordset_get_RecordCount(This,pl) \ + ( (This)->lpVtbl -> get_RecordCount(This,pl) ) +#define _Recordset_putref_Source(This,pcmd) \ + ( (This)->lpVtbl -> putref_Source(This,pcmd) ) +#define _Recordset_put_Source(This,bstrConn) \ + ( (This)->lpVtbl -> put_Source(This,bstrConn) ) +#define _Recordset_get_Source(This,pvSource) \ + ( (This)->lpVtbl -> get_Source(This,pvSource) ) +#define _Recordset_AddNew(This,FieldList,Values) \ + ( (This)->lpVtbl -> AddNew(This,FieldList,Values) ) +#define _Recordset_CancelUpdate(This) \ + ( (This)->lpVtbl -> CancelUpdate(This) ) +#define _Recordset_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) +#define _Recordset_Delete(This,AffectRecords) \ + ( (This)->lpVtbl -> Delete(This,AffectRecords) ) +#define _Recordset_GetRows(This,Rows,Start,Fields,pvar) \ + ( (This)->lpVtbl -> GetRows(This,Rows,Start,Fields,pvar) ) +#define _Recordset_Move(This,NumRecords,Start) \ + ( (This)->lpVtbl -> Move(This,NumRecords,Start) ) +#define _Recordset_MoveNext(This) \ + ( (This)->lpVtbl -> MoveNext(This) ) +#define _Recordset_MovePrevious(This) \ + ( (This)->lpVtbl -> MovePrevious(This) ) +#define _Recordset_MoveFirst(This) \ + ( (This)->lpVtbl -> MoveFirst(This) ) +#define _Recordset_MoveLast(This) \ + ( (This)->lpVtbl -> MoveLast(This) ) +#define _Recordset_Open(This,Source,ActiveConnection,CursorType,LockType,Options) \ + ( (This)->lpVtbl -> Open(This,Source,ActiveConnection,CursorType,LockType,Options) ) +#define _Recordset_Requery(This,Options) \ + ( (This)->lpVtbl -> Requery(This,Options) ) +#define _Recordset__xResync(This,AffectRecords) \ + ( (This)->lpVtbl -> _xResync(This,AffectRecords) ) +#define _Recordset_Update(This,Fields,Values) \ + ( (This)->lpVtbl -> Update(This,Fields,Values) ) +#define _Recordset_get_AbsolutePage(This,pl) \ + ( (This)->lpVtbl -> get_AbsolutePage(This,pl) ) +#define _Recordset_put_AbsolutePage(This,Page) \ + ( (This)->lpVtbl -> put_AbsolutePage(This,Page) ) +#define _Recordset_get_EditMode(This,pl) \ + ( (This)->lpVtbl -> get_EditMode(This,pl) ) +#define _Recordset_get_Filter(This,Criteria) \ + ( (This)->lpVtbl -> get_Filter(This,Criteria) ) +#define _Recordset_put_Filter(This,Criteria) \ + ( (This)->lpVtbl -> put_Filter(This,Criteria) ) +#define _Recordset_get_PageCount(This,pl) \ + ( (This)->lpVtbl -> get_PageCount(This,pl) ) +#define _Recordset_get_PageSize(This,pl) \ + ( (This)->lpVtbl -> get_PageSize(This,pl) ) +#define _Recordset_put_PageSize(This,PageSize) \ + ( (This)->lpVtbl -> put_PageSize(This,PageSize) ) +#define _Recordset_get_Sort(This,Criteria) \ + ( (This)->lpVtbl -> get_Sort(This,Criteria) ) +#define _Recordset_put_Sort(This,Criteria) \ + ( (This)->lpVtbl -> put_Sort(This,Criteria) ) +#define _Recordset_get_Status(This,pl) \ + ( (This)->lpVtbl -> get_Status(This,pl) ) +#define _Recordset_get_State(This,plObjState) \ + ( (This)->lpVtbl -> get_State(This,plObjState) ) +#define _Recordset__xClone(This,ppvObject) \ + ( (This)->lpVtbl -> _xClone(This,ppvObject) ) +#define _Recordset_UpdateBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> UpdateBatch(This,AffectRecords) ) +#define _Recordset_CancelBatch(This,AffectRecords) \ + ( (This)->lpVtbl -> CancelBatch(This,AffectRecords) ) +#define _Recordset_get_CursorLocation(This,plCursorLoc) \ + ( (This)->lpVtbl -> get_CursorLocation(This,plCursorLoc) ) +#define _Recordset_put_CursorLocation(This,lCursorLoc) \ + ( (This)->lpVtbl -> put_CursorLocation(This,lCursorLoc) ) +#define _Recordset_NextRecordset(This,RecordsAffected,ppiRs) \ + ( (This)->lpVtbl -> NextRecordset(This,RecordsAffected,ppiRs) ) +#define _Recordset_Supports(This,CursorOptions,pb) \ + ( (This)->lpVtbl -> Supports(This,CursorOptions,pb) ) +#define _Recordset_get_Collect(This,Index,pvar) \ + ( (This)->lpVtbl -> get_Collect(This,Index,pvar) ) +#define _Recordset_put_Collect(This,Index,value) \ + ( (This)->lpVtbl -> put_Collect(This,Index,value) ) +#define _Recordset_get_MarshalOptions(This,peMarshal) \ + ( (This)->lpVtbl -> get_MarshalOptions(This,peMarshal) ) +#define _Recordset_put_MarshalOptions(This,eMarshal) \ + ( (This)->lpVtbl -> put_MarshalOptions(This,eMarshal) ) +#define _Recordset_Find(This,Criteria,SkipRecords,SearchDirection,Start) \ + ( (This)->lpVtbl -> Find(This,Criteria,SkipRecords,SearchDirection,Start) ) +#define _Recordset_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) +#define _Recordset_get_DataSource(This,ppunkDataSource) \ + ( (This)->lpVtbl -> get_DataSource(This,ppunkDataSource) ) +#define _Recordset_putref_DataSource(This,punkDataSource) \ + ( (This)->lpVtbl -> putref_DataSource(This,punkDataSource) ) +#define _Recordset__xSave(This,FileName,PersistFormat) \ + ( (This)->lpVtbl -> _xSave(This,FileName,PersistFormat) ) +#define _Recordset_get_ActiveCommand(This,ppCmd) \ + ( (This)->lpVtbl -> get_ActiveCommand(This,ppCmd) ) +#define _Recordset_put_StayInSync(This,bStayInSync) \ + ( (This)->lpVtbl -> put_StayInSync(This,bStayInSync) ) +#define _Recordset_get_StayInSync(This,pbStayInSync) \ + ( (This)->lpVtbl -> get_StayInSync(This,pbStayInSync) ) +#define _Recordset_GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) \ + ( (This)->lpVtbl -> GetString(This,StringFormat,NumRows,ColumnDelimeter,RowDelimeter,NullExpr,pRetString) ) +#define _Recordset_get_DataMember(This,pbstrDataMember) \ + ( (This)->lpVtbl -> get_DataMember(This,pbstrDataMember) ) +#define _Recordset_put_DataMember(This,bstrDataMember) \ + ( (This)->lpVtbl -> put_DataMember(This,bstrDataMember) ) +#define _Recordset_CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) \ + ( (This)->lpVtbl -> CompareBookmarks(This,Bookmark1,Bookmark2,pCompare) ) +#define _Recordset_Clone(This,LockType,ppvObject) \ + ( (This)->lpVtbl -> Clone(This,LockType,ppvObject) ) +#define _Recordset_Resync(This,AffectRecords,ResyncValues) \ + ( (This)->lpVtbl -> Resync(This,AffectRecords,ResyncValues) ) +#define _Recordset_Seek(This,KeyValues,SeekOption) \ + ( (This)->lpVtbl -> Seek(This,KeyValues,SeekOption) ) +#define _Recordset_put_Index(This,Index) \ + ( (This)->lpVtbl -> put_Index(This,Index) ) +#define _Recordset_get_Index(This,pbstrIndex) \ + ( (This)->lpVtbl -> get_Index(This,pbstrIndex) ) +#define _Recordset_Save(This,Destination,PersistFormat) \ + ( (This)->lpVtbl -> Save(This,Destination,PersistFormat) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Recordset_INTERFACE_DEFINED__ */ +#ifndef __ADORecordsetConstruction_INTERFACE_DEFINED__ +#define __ADORecordsetConstruction_INTERFACE_DEFINED__ +/* interface ADORecordsetConstruction */ +/* [object][uuid][restricted] */ +EXTERN_C const IID IID_ADORecordsetConstruction; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000283-0000-0010-8000-00AA006D2EA4") + ADORecordsetConstruction : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Rowset( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRowset) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Rowset( + /* [in] */ __RPC__in_opt IUnknown *pRowset) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Chapter( + /* [retval][out] */ __RPC__out ADO_LONGPTR *plChapter) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Chapter( + /* [in] */ ADO_LONGPTR lChapter) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RowPosition( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRowPos) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_RowPosition( + /* [in] */ __RPC__in_opt IUnknown *pRowPos) = 0; + + }; + +#else /* C style interface */ + typedef struct ADORecordsetConstructionVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ADORecordsetConstruction * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ADORecordsetConstruction * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ADORecordsetConstruction * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ADORecordsetConstruction * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rowset )( + __RPC__in ADORecordsetConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRowset); + + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rowset )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pRowset); + + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Chapter )( + __RPC__in ADORecordsetConstruction * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *plChapter); + + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Chapter )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ ADO_LONGPTR lChapter); + + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RowPosition )( + __RPC__in ADORecordsetConstruction * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppRowPos); + + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RowPosition )( + __RPC__in ADORecordsetConstruction * This, + /* [in] */ __RPC__in_opt IUnknown *pRowPos); + + END_INTERFACE + } ADORecordsetConstructionVtbl; + interface ADORecordsetConstruction + { + CONST_VTBL struct ADORecordsetConstructionVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define ADORecordsetConstruction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define ADORecordsetConstruction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define ADORecordsetConstruction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define ADORecordsetConstruction_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define ADORecordsetConstruction_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define ADORecordsetConstruction_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define ADORecordsetConstruction_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define ADORecordsetConstruction_get_Rowset(This,ppRowset) \ + ( (This)->lpVtbl -> get_Rowset(This,ppRowset) ) +#define ADORecordsetConstruction_put_Rowset(This,pRowset) \ + ( (This)->lpVtbl -> put_Rowset(This,pRowset) ) +#define ADORecordsetConstruction_get_Chapter(This,plChapter) \ + ( (This)->lpVtbl -> get_Chapter(This,plChapter) ) +#define ADORecordsetConstruction_put_Chapter(This,lChapter) \ + ( (This)->lpVtbl -> put_Chapter(This,lChapter) ) +#define ADORecordsetConstruction_get_RowPosition(This,ppRowPos) \ + ( (This)->lpVtbl -> get_RowPosition(This,ppRowPos) ) +#define ADORecordsetConstruction_put_RowPosition(This,pRowPos) \ + ( (This)->lpVtbl -> put_RowPosition(This,pRowPos) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __ADORecordsetConstruction_INTERFACE_DEFINED__ */ +#ifndef __Field15_INTERFACE_DEFINED__ +#define __Field15_INTERFACE_DEFINED__ +/* interface Field15 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Field15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000505-0000-0010-8000-00AA006D2EA4") + Field15 : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActualSize( + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_DefinedSize( + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out DataTypeEnum *pDataType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT Val) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Precision( + /* [retval][out] */ __RPC__out BYTE *pbPrecision) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_NumericScale( + /* [retval][out] */ __RPC__out BYTE *pbNumericScale) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE AppendChunk( + /* [in] */ VARIANT Data) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetChunk( + /* [in] */ long Length, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_OriginalValue( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_UnderlyingValue( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + }; + +#else /* C style interface */ + typedef struct Field15Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Field15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Field15 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Field15 * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Field15 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Field15 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Field15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Field15 * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActualSize )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DefinedSize )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out DataTypeEnum *pDataType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in Field15 * This, + /* [in] */ VARIANT Val); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Precision )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out BYTE *pbPrecision); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NumericScale )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out BYTE *pbNumericScale); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AppendChunk )( + __RPC__in Field15 * This, + /* [in] */ VARIANT Data); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetChunk )( + __RPC__in Field15 * This, + /* [in] */ long Length, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_OriginalValue )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_UnderlyingValue )( + __RPC__in Field15 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + END_INTERFACE + } Field15Vtbl; + interface Field15 + { + CONST_VTBL struct Field15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Field15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Field15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Field15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Field15_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Field15_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Field15_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Field15_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Field15_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Field15_get_ActualSize(This,pl) \ + ( (This)->lpVtbl -> get_ActualSize(This,pl) ) +#define Field15_get_Attributes(This,pl) \ + ( (This)->lpVtbl -> get_Attributes(This,pl) ) +#define Field15_get_DefinedSize(This,pl) \ + ( (This)->lpVtbl -> get_DefinedSize(This,pl) ) +#define Field15_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define Field15_get_Type(This,pDataType) \ + ( (This)->lpVtbl -> get_Type(This,pDataType) ) +#define Field15_get_Value(This,pvar) \ + ( (This)->lpVtbl -> get_Value(This,pvar) ) +#define Field15_put_Value(This,Val) \ + ( (This)->lpVtbl -> put_Value(This,Val) ) +#define Field15_get_Precision(This,pbPrecision) \ + ( (This)->lpVtbl -> get_Precision(This,pbPrecision) ) +#define Field15_get_NumericScale(This,pbNumericScale) \ + ( (This)->lpVtbl -> get_NumericScale(This,pbNumericScale) ) +#define Field15_AppendChunk(This,Data) \ + ( (This)->lpVtbl -> AppendChunk(This,Data) ) +#define Field15_GetChunk(This,Length,pvar) \ + ( (This)->lpVtbl -> GetChunk(This,Length,pvar) ) +#define Field15_get_OriginalValue(This,pvar) \ + ( (This)->lpVtbl -> get_OriginalValue(This,pvar) ) +#define Field15_get_UnderlyingValue(This,pvar) \ + ( (This)->lpVtbl -> get_UnderlyingValue(This,pvar) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Field15_INTERFACE_DEFINED__ */ +#ifndef __Field20_INTERFACE_DEFINED__ +#define __Field20_INTERFACE_DEFINED__ +/* interface Field20 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Field20; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000054C-0000-0010-8000-00AA006D2EA4") + Field20 : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_ActualSize( + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_DefinedSize( + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out DataTypeEnum *pDataType) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT Val) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Precision( + /* [retval][out] */ __RPC__out BYTE *pbPrecision) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_NumericScale( + /* [retval][out] */ __RPC__out BYTE *pbNumericScale) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE AppendChunk( + /* [in] */ VARIANT Data) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE GetChunk( + /* [in] */ long Length, + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_OriginalValue( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_UnderlyingValue( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_DataFormat( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppiDF) = 0; + + virtual /* [propputref][id] */ HRESULT STDMETHODCALLTYPE putref_DataFormat( + /* [in] */ __RPC__in_opt IUnknown *piDF) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Precision( + /* [in] */ BYTE bPrecision) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_NumericScale( + /* [in] */ BYTE bScale) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ DataTypeEnum DataType) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_DefinedSize( + /* [in] */ ADO_LONGPTR lSize) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Attributes( + /* [in] */ long lAttributes) = 0; + + }; + +#else /* C style interface */ + typedef struct Field20Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Field20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Field20 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Field20 * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Field20 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Field20 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Field20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Field20 * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActualSize )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DefinedSize )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out DataTypeEnum *pDataType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in Field20 * This, + /* [in] */ VARIANT Val); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Precision )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out BYTE *pbPrecision); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NumericScale )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out BYTE *pbNumericScale); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AppendChunk )( + __RPC__in Field20 * This, + /* [in] */ VARIANT Data); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetChunk )( + __RPC__in Field20 * This, + /* [in] */ long Length, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_OriginalValue )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_UnderlyingValue )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataFormat )( + __RPC__in Field20 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppiDF); + + /* [propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DataFormat )( + __RPC__in Field20 * This, + /* [in] */ __RPC__in_opt IUnknown *piDF); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Precision )( + __RPC__in Field20 * This, + /* [in] */ BYTE bPrecision); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_NumericScale )( + __RPC__in Field20 * This, + /* [in] */ BYTE bScale); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in Field20 * This, + /* [in] */ DataTypeEnum DataType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DefinedSize )( + __RPC__in Field20 * This, + /* [in] */ ADO_LONGPTR lSize); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in Field20 * This, + /* [in] */ long lAttributes); + + END_INTERFACE + } Field20Vtbl; + interface Field20 + { + CONST_VTBL struct Field20Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Field20_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Field20_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Field20_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Field20_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Field20_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Field20_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Field20_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Field20_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Field20_get_ActualSize(This,pl) \ + ( (This)->lpVtbl -> get_ActualSize(This,pl) ) +#define Field20_get_Attributes(This,pl) \ + ( (This)->lpVtbl -> get_Attributes(This,pl) ) +#define Field20_get_DefinedSize(This,pl) \ + ( (This)->lpVtbl -> get_DefinedSize(This,pl) ) +#define Field20_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define Field20_get_Type(This,pDataType) \ + ( (This)->lpVtbl -> get_Type(This,pDataType) ) +#define Field20_get_Value(This,pvar) \ + ( (This)->lpVtbl -> get_Value(This,pvar) ) +#define Field20_put_Value(This,Val) \ + ( (This)->lpVtbl -> put_Value(This,Val) ) +#define Field20_get_Precision(This,pbPrecision) \ + ( (This)->lpVtbl -> get_Precision(This,pbPrecision) ) +#define Field20_get_NumericScale(This,pbNumericScale) \ + ( (This)->lpVtbl -> get_NumericScale(This,pbNumericScale) ) +#define Field20_AppendChunk(This,Data) \ + ( (This)->lpVtbl -> AppendChunk(This,Data) ) +#define Field20_GetChunk(This,Length,pvar) \ + ( (This)->lpVtbl -> GetChunk(This,Length,pvar) ) +#define Field20_get_OriginalValue(This,pvar) \ + ( (This)->lpVtbl -> get_OriginalValue(This,pvar) ) +#define Field20_get_UnderlyingValue(This,pvar) \ + ( (This)->lpVtbl -> get_UnderlyingValue(This,pvar) ) +#define Field20_get_DataFormat(This,ppiDF) \ + ( (This)->lpVtbl -> get_DataFormat(This,ppiDF) ) +#define Field20_putref_DataFormat(This,piDF) \ + ( (This)->lpVtbl -> putref_DataFormat(This,piDF) ) +#define Field20_put_Precision(This,bPrecision) \ + ( (This)->lpVtbl -> put_Precision(This,bPrecision) ) +#define Field20_put_NumericScale(This,bScale) \ + ( (This)->lpVtbl -> put_NumericScale(This,bScale) ) +#define Field20_put_Type(This,DataType) \ + ( (This)->lpVtbl -> put_Type(This,DataType) ) +#define Field20_put_DefinedSize(This,lSize) \ + ( (This)->lpVtbl -> put_DefinedSize(This,lSize) ) +#define Field20_put_Attributes(This,lAttributes) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttributes) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Field20_INTERFACE_DEFINED__ */ +#ifndef __Field_INTERFACE_DEFINED__ +#define __Field_INTERFACE_DEFINED__ +/* interface ADOField */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Field; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000569-0000-0010-8000-00AA006D2EA4") + ADOField : public Field20 + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out long *pFStatus) = 0; + + }; + +#else /* C style interface */ + typedef struct FieldVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct ADOField * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct ADOField * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct ADOField * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct ADOField * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct ADOField * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct ADOField * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct ADOField * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ActualSize )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__out long *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DefinedSize )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__out DataTypeEnum *pDataType); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in struct ADOField * This, + /* [in] */ VARIANT Val); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Precision )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__out BYTE *pbPrecision); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NumericScale )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__out BYTE *pbNumericScale); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AppendChunk )( + __RPC__in struct ADOField * This, + /* [in] */ VARIANT Data); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetChunk )( + __RPC__in struct ADOField * This, + /* [in] */ long Length, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_OriginalValue )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_UnderlyingValue )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DataFormat )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppiDF); + + /* [propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DataFormat )( + __RPC__in struct ADOField * This, + /* [in] */ __RPC__in_opt IUnknown *piDF); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Precision )( + __RPC__in struct ADOField * This, + /* [in] */ BYTE bPrecision); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_NumericScale )( + __RPC__in struct ADOField * This, + /* [in] */ BYTE bScale); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in struct ADOField * This, + /* [in] */ DataTypeEnum DataType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DefinedSize )( + __RPC__in struct ADOField * This, + /* [in] */ ADO_LONGPTR lSize); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in struct ADOField * This, + /* [in] */ long lAttributes); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in struct ADOField * This, + /* [retval][out] */ __RPC__out long *pFStatus); + + END_INTERFACE + } FieldVtbl; + interface Field + { + CONST_VTBL struct FieldVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Field_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Field_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Field_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Field_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Field_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Field_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Field_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Field_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define Field_get_ActualSize(This,pl) \ + ( (This)->lpVtbl -> get_ActualSize(This,pl) ) +#define Field_get_Attributes(This,pl) \ + ( (This)->lpVtbl -> get_Attributes(This,pl) ) +#define Field_get_DefinedSize(This,pl) \ + ( (This)->lpVtbl -> get_DefinedSize(This,pl) ) +#define Field_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define Field_get_Type(This,pDataType) \ + ( (This)->lpVtbl -> get_Type(This,pDataType) ) +#define Field_get_Value(This,pvar) \ + ( (This)->lpVtbl -> get_Value(This,pvar) ) +#define Field_put_Value(This,Val) \ + ( (This)->lpVtbl -> put_Value(This,Val) ) +#define Field_get_Precision(This,pbPrecision) \ + ( (This)->lpVtbl -> get_Precision(This,pbPrecision) ) +#define Field_get_NumericScale(This,pbNumericScale) \ + ( (This)->lpVtbl -> get_NumericScale(This,pbNumericScale) ) +#define Field_AppendChunk(This,Data) \ + ( (This)->lpVtbl -> AppendChunk(This,Data) ) +#define Field_GetChunk(This,Length,pvar) \ + ( (This)->lpVtbl -> GetChunk(This,Length,pvar) ) +#define Field_get_OriginalValue(This,pvar) \ + ( (This)->lpVtbl -> get_OriginalValue(This,pvar) ) +#define Field_get_UnderlyingValue(This,pvar) \ + ( (This)->lpVtbl -> get_UnderlyingValue(This,pvar) ) +#define Field_get_DataFormat(This,ppiDF) \ + ( (This)->lpVtbl -> get_DataFormat(This,ppiDF) ) +#define Field_putref_DataFormat(This,piDF) \ + ( (This)->lpVtbl -> putref_DataFormat(This,piDF) ) +#define Field_put_Precision(This,bPrecision) \ + ( (This)->lpVtbl -> put_Precision(This,bPrecision) ) +#define Field_put_NumericScale(This,bScale) \ + ( (This)->lpVtbl -> put_NumericScale(This,bScale) ) +#define Field_put_Type(This,DataType) \ + ( (This)->lpVtbl -> put_Type(This,DataType) ) +#define Field_put_DefinedSize(This,lSize) \ + ( (This)->lpVtbl -> put_DefinedSize(This,lSize) ) +#define Field_put_Attributes(This,lAttributes) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttributes) ) +#define Field_get_Status(This,pFStatus) \ + ( (This)->lpVtbl -> get_Status(This,pFStatus) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Field_INTERFACE_DEFINED__ */ +#ifndef __Fields15_INTERFACE_DEFINED__ +#define __Fields15_INTERFACE_DEFINED__ +/* interface Fields15 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Fields15; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000506-0000-0010-8000-00AA006D2EA4") + Fields15 : public _ADOCollection + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOField **ppvObject) = 0; + + }; + +#else /* C style interface */ + typedef struct Fields15Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Fields15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Fields15 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Fields15 * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Fields15 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Fields15 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Fields15 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Fields15 * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Fields15 * This, + /* [retval][out] */ __RPC__out long *c); + + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Fields15 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Fields15 * This); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Fields15 * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt struct ADOField **ppvObject); + + END_INTERFACE + } Fields15Vtbl; + interface Fields15 + { + CONST_VTBL struct Fields15Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Fields15_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Fields15_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Fields15_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Fields15_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Fields15_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Fields15_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Fields15_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Fields15_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Fields15__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Fields15_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Fields15_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Fields15_INTERFACE_DEFINED__ */ +#ifndef __Fields20_INTERFACE_DEFINED__ +#define __Fields20_INTERFACE_DEFINED__ +/* interface Fields20 */ +/* [object][helpcontext][uuid][hidden][nonextensible][dual] */ +EXTERN_C const IID IID_Fields20; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000054D-0000-0010-8000-00AA006D2EA4") + Fields20 : public Fields15 + { + public: + virtual /* [hidden] */ HRESULT STDMETHODCALLTYPE _Append( + /* [in] */ __RPC__in BSTR Name, + /* [in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ADO_LONGPTR DefinedSize = 0, + /* [defaultvalue][in] */ FieldAttributeEnum Attrib = adFldUnspecified) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Index) = 0; + + }; + +#else /* C style interface */ + typedef struct Fields20Vtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Fields20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Fields20 * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Fields20 * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Fields20 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Fields20 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Fields20 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Fields20 * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Fields20 * This, + /* [retval][out] */ __RPC__out long *c); + + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Fields20 * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Fields20 * This); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Fields20 * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt struct ADOField **ppvObject); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_Append )( + __RPC__in Fields20 * This, + /* [in] */ __RPC__in BSTR Name, + /* [in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ADO_LONGPTR DefinedSize, + /* [defaultvalue][in] */ FieldAttributeEnum Attrib); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in Fields20 * This, + /* [in] */ VARIANT Index); + + END_INTERFACE + } Fields20Vtbl; + interface Fields20 + { + CONST_VTBL struct Fields20Vtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Fields20_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Fields20_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Fields20_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Fields20_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Fields20_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Fields20_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Fields20_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Fields20_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Fields20__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Fields20_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Fields20_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#define Fields20__Append(This,Name,Type,DefinedSize,Attrib) \ + ( (This)->lpVtbl -> _Append(This,Name,Type,DefinedSize,Attrib) ) +#define Fields20_Delete(This,Index) \ + ( (This)->lpVtbl -> Delete(This,Index) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Fields20_INTERFACE_DEFINED__ */ +#ifndef __Fields_INTERFACE_DEFINED__ +#define __Fields_INTERFACE_DEFINED__ +/* interface ADOFields */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Fields; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000564-0000-0010-8000-00AA006D2EA4") + ADOFields : public Fields20 + { + public: + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ __RPC__in BSTR Name, + /* [in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ADO_LONGPTR DefinedSize, + /* [defaultvalue][in] */ FieldAttributeEnum Attrib, + /* [optional][in] */ VARIANT FieldValue) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Update( void) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE Resync( + /* [defaultvalue][in] */ ResyncEnum ResyncValues = adResyncAllValues) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE CancelUpdate( void) = 0; + + }; + +#else /* C style interface */ + typedef struct FieldsVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct ADOFields * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct ADOFields * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct ADOFields * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct ADOFields * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct ADOFields * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct ADOFields * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct ADOFields * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in struct ADOFields * This, + /* [retval][out] */ __RPC__out long *c); + + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in struct ADOFields * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in struct ADOFields * This); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in struct ADOFields * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt struct ADOField **ppvObject); + + /* [hidden] */ HRESULT ( STDMETHODCALLTYPE *_Append )( + __RPC__in struct ADOFields * This, + /* [in] */ __RPC__in BSTR Name, + /* [in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ADO_LONGPTR DefinedSize, + /* [defaultvalue][in] */ FieldAttributeEnum Attrib); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in struct ADOFields * This, + /* [in] */ VARIANT Index); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in struct ADOFields * This, + /* [in] */ __RPC__in BSTR Name, + /* [in] */ DataTypeEnum Type, + /* [defaultvalue][in] */ ADO_LONGPTR DefinedSize, + /* [defaultvalue][in] */ FieldAttributeEnum Attrib, + /* [optional][in] */ VARIANT FieldValue); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in struct ADOFields * This); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *Resync )( + __RPC__in struct ADOFields * This, + /* [defaultvalue][in] */ ResyncEnum ResyncValues); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *CancelUpdate )( + __RPC__in struct ADOFields * This); + + END_INTERFACE + } FieldsVtbl; + interface Fields + { + CONST_VTBL struct FieldsVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Fields_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Fields_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Fields_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Fields_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Fields_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Fields_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Fields_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Fields_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Fields__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Fields_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Fields_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#define Fields__Append(This,Name,Type,DefinedSize,Attrib) \ + ( (This)->lpVtbl -> _Append(This,Name,Type,DefinedSize,Attrib) ) +#define Fields_Delete(This,Index) \ + ( (This)->lpVtbl -> Delete(This,Index) ) +#define Fields_Append(This,Name,Type,DefinedSize,Attrib,FieldValue) \ + ( (This)->lpVtbl -> Append(This,Name,Type,DefinedSize,Attrib,FieldValue) ) +#define Fields_Update(This) \ + ( (This)->lpVtbl -> Update(This) ) +#define Fields_Resync(This,ResyncValues) \ + ( (This)->lpVtbl -> Resync(This,ResyncValues) ) +#define Fields_CancelUpdate(This) \ + ( (This)->lpVtbl -> CancelUpdate(This) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Fields_INTERFACE_DEFINED__ */ +#ifndef ___Parameter_INTERFACE_DEFINED__ +#define ___Parameter_INTERFACE_DEFINED__ +/* interface _ADOParameter */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID__Parameter; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000050C-0000-0010-8000-00AA006D2EA4") + _ADOParameter : public _ADO + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT val) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out DataTypeEnum *psDataType) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ DataTypeEnum sDataType) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Direction( + /* [in] */ ParameterDirectionEnum lParmDirection) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Direction( + /* [retval][out] */ __RPC__out ParameterDirectionEnum *plParmDirection) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Precision( + /* [in] */ BYTE bPrecision) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Precision( + /* [retval][out] */ __RPC__out BYTE *pbPrecision) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_NumericScale( + /* [in] */ BYTE bScale) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_NumericScale( + /* [retval][out] */ __RPC__out BYTE *pbScale) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Size( + /* [in] */ ADO_LONGPTR l) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl) = 0; + + virtual /* [helpcontext][id] */ HRESULT STDMETHODCALLTYPE AppendChunk( + /* [in] */ VARIANT Val) = 0; + + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out LONG *plParmAttribs) = 0; + + virtual /* [helpcontext][propput][id] */ HRESULT STDMETHODCALLTYPE put_Attributes( + /* [in] */ LONG lParmAttribs) = 0; + + }; + +#else /* C style interface */ + typedef struct _ParameterVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct _ADOParameter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct _ADOParameter * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct _ADOParameter * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct _ADOParameter * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct _ADOParameter * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct _ADOParameter * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct _ADOParameter * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in struct _ADOParameter * This, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperties **ppvObject); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in struct _ADOParameter * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in struct _ADOParameter * This, + /* [in] */ __RPC__in BSTR bstr); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in struct _ADOParameter * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in struct _ADOParameter * This, + /* [in] */ VARIANT val); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in struct _ADOParameter * This, + /* [retval][out] */ __RPC__out DataTypeEnum *psDataType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in struct _ADOParameter * This, + /* [in] */ DataTypeEnum sDataType); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Direction )( + __RPC__in struct _ADOParameter * This, + /* [in] */ ParameterDirectionEnum lParmDirection); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Direction )( + __RPC__in struct _ADOParameter * This, + /* [retval][out] */ __RPC__out ParameterDirectionEnum *plParmDirection); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Precision )( + __RPC__in struct _ADOParameter * This, + /* [in] */ BYTE bPrecision); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Precision )( + __RPC__in struct _ADOParameter * This, + /* [retval][out] */ __RPC__out BYTE *pbPrecision); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_NumericScale )( + __RPC__in struct _ADOParameter * This, + /* [in] */ BYTE bScale); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_NumericScale )( + __RPC__in struct _ADOParameter * This, + /* [retval][out] */ __RPC__out BYTE *pbScale); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Size )( + __RPC__in struct _ADOParameter * This, + /* [in] */ ADO_LONGPTR l); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in struct _ADOParameter * This, + /* [retval][out] */ __RPC__out ADO_LONGPTR *pl); + + /* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *AppendChunk )( + __RPC__in struct _ADOParameter * This, + /* [in] */ VARIANT Val); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in struct _ADOParameter * This, + /* [retval][out] */ __RPC__out LONG *plParmAttribs); + + /* [helpcontext][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in struct _ADOParameter * This, + /* [in] */ LONG lParmAttribs); + + END_INTERFACE + } _ParameterVtbl; + interface _Parameter + { + CONST_VTBL struct _ParameterVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define _Parameter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define _Parameter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define _Parameter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define _Parameter_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define _Parameter_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define _Parameter_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define _Parameter_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define _Parameter_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) +#define _Parameter_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define _Parameter_put_Name(This,bstr) \ + ( (This)->lpVtbl -> put_Name(This,bstr) ) +#define _Parameter_get_Value(This,pvar) \ + ( (This)->lpVtbl -> get_Value(This,pvar) ) +#define _Parameter_put_Value(This,val) \ + ( (This)->lpVtbl -> put_Value(This,val) ) +#define _Parameter_get_Type(This,psDataType) \ + ( (This)->lpVtbl -> get_Type(This,psDataType) ) +#define _Parameter_put_Type(This,sDataType) \ + ( (This)->lpVtbl -> put_Type(This,sDataType) ) +#define _Parameter_put_Direction(This,lParmDirection) \ + ( (This)->lpVtbl -> put_Direction(This,lParmDirection) ) +#define _Parameter_get_Direction(This,plParmDirection) \ + ( (This)->lpVtbl -> get_Direction(This,plParmDirection) ) +#define _Parameter_put_Precision(This,bPrecision) \ + ( (This)->lpVtbl -> put_Precision(This,bPrecision) ) +#define _Parameter_get_Precision(This,pbPrecision) \ + ( (This)->lpVtbl -> get_Precision(This,pbPrecision) ) +#define _Parameter_put_NumericScale(This,bScale) \ + ( (This)->lpVtbl -> put_NumericScale(This,bScale) ) +#define _Parameter_get_NumericScale(This,pbScale) \ + ( (This)->lpVtbl -> get_NumericScale(This,pbScale) ) +#define _Parameter_put_Size(This,l) \ + ( (This)->lpVtbl -> put_Size(This,l) ) +#define _Parameter_get_Size(This,pl) \ + ( (This)->lpVtbl -> get_Size(This,pl) ) +#define _Parameter_AppendChunk(This,Val) \ + ( (This)->lpVtbl -> AppendChunk(This,Val) ) +#define _Parameter_get_Attributes(This,plParmAttribs) \ + ( (This)->lpVtbl -> get_Attributes(This,plParmAttribs) ) +#define _Parameter_put_Attributes(This,lParmAttribs) \ + ( (This)->lpVtbl -> put_Attributes(This,lParmAttribs) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* ___Parameter_INTERFACE_DEFINED__ */ +EXTERN_C const CLSID CLSID_Parameter; +#ifdef __cplusplus +Parameter; +#endif +#ifndef __Parameters_INTERFACE_DEFINED__ +#define __Parameters_INTERFACE_DEFINED__ +/* interface ADOParameters */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Parameters; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0000050D-0000-0010-8000-00AA006D2EA4") + ADOParameters : public _ADODynaCollection + { + public: + virtual /* [helpcontext][propget][id] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt _ADOParameter **ppvObject) = 0; + + }; + +#else /* C style interface */ + typedef struct ParametersVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct ADOParameters * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct ADOParameters * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct ADOParameters * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct ADOParameters * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct ADOParameters * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct ADOParameters * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct ADOParameters * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in struct ADOParameters * This, + /* [retval][out] */ __RPC__out long *c); + + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in struct ADOParameters * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in struct ADOParameters * This); + + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in struct ADOParameters * This, + /* [in] */ __RPC__in_opt IDispatch *Object); + + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in struct ADOParameters * This, + /* [in] */ VARIANT Index); + + /* [helpcontext][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in struct ADOParameters * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt struct _ADOParameter **ppvObject); + + END_INTERFACE + } ParametersVtbl; + interface Parameters + { + CONST_VTBL struct ParametersVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Parameters_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Parameters_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Parameters_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Parameters_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Parameters_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Parameters_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Parameters_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Parameters_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Parameters__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Parameters_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Parameters_Append(This,Object) \ + ( (This)->lpVtbl -> Append(This,Object) ) +#define Parameters_Delete(This,Index) \ + ( (This)->lpVtbl -> Delete(This,Index) ) +#define Parameters_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Parameters_INTERFACE_DEFINED__ */ +#ifndef __Property_INTERFACE_DEFINED__ +#define __Property_INTERFACE_DEFINED__ +/* interface ADOProperty */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Property; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000503-0000-0010-8000-00AA006D2EA4") + ADOProperty : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pval) = 0; + + virtual /* [helpcontext][id][propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT val) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out DataTypeEnum *ptype) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out long *plAttributes) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_Attributes( + /* [in] */ long lAttributes) = 0; + + }; + +#else /* C style interface */ + typedef struct PropertyVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct ADOProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct ADOProperty * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct ADOProperty * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct ADOProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct ADOProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct ADOProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct ADOProperty * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in struct ADOProperty * This, + /* [retval][out] */ __RPC__out VARIANT *pval); + + /* [helpcontext][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in struct ADOProperty * This, + /* [in] */ VARIANT val); + + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in struct ADOProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in struct ADOProperty * This, + /* [retval][out] */ __RPC__out DataTypeEnum *ptype); + + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in struct ADOProperty * This, + /* [retval][out] */ __RPC__out long *plAttributes); + + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Attributes )( + __RPC__in struct ADOProperty * This, + /* [in] */ long lAttributes); + + END_INTERFACE + } PropertyVtbl; + interface Property + { + CONST_VTBL struct PropertyVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Property_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Property_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Property_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Property_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Property_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Property_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Property_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Property_get_Value(This,pval) \ + ( (This)->lpVtbl -> get_Value(This,pval) ) +#define Property_put_Value(This,val) \ + ( (This)->lpVtbl -> put_Value(This,val) ) +#define Property_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) +#define Property_get_Type(This,ptype) \ + ( (This)->lpVtbl -> get_Type(This,ptype) ) +#define Property_get_Attributes(This,plAttributes) \ + ( (This)->lpVtbl -> get_Attributes(This,plAttributes) ) +#define Property_put_Attributes(This,lAttributes) \ + ( (This)->lpVtbl -> put_Attributes(This,lAttributes) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Property_INTERFACE_DEFINED__ */ +#ifndef __Properties_INTERFACE_DEFINED__ +#define __Properties_INTERFACE_DEFINED__ +/* interface ADOProperties */ +/* [object][helpcontext][uuid][nonextensible][dual] */ +EXTERN_C const IID IID_Properties; +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00000504-0000-0010-8000-00AA006D2EA4") + ADOProperties : public _ADOCollection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt ADOProperty **ppvObject) = 0; + + }; + +#else /* C style interface */ + typedef struct PropertiesVtbl + { + BEGIN_INTERFACE + + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in struct ADOProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + __RPC__deref_out void **ppvObject); + + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in struct ADOProperties * This); + + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in struct ADOProperties * This); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in struct ADOProperties * This, + /* [out] */ __RPC__out UINT *pctinfo); + + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in struct ADOProperties * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in struct ADOProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + struct ADOProperties * This, + /* [in] */ DISPID dispIdMember, + /* [in] */ REFIID riid, + /* [in] */ LCID lcid, + /* [in] */ WORD wFlags, + /* [out][in] */ DISPPARAMS *pDispParams, + /* [out] */ VARIANT *pVarResult, + /* [out] */ EXCEPINFO *pExcepInfo, + /* [out] */ UINT *puArgErr); + + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in struct ADOProperties * This, + /* [retval][out] */ __RPC__out long *c); + + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in struct ADOProperties * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + /* [id][helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in struct ADOProperties * This); + + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in struct ADOProperties * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt struct ADOProperty **ppvObject); + + END_INTERFACE + } PropertiesVtbl; + interface Properties + { + CONST_VTBL struct PropertiesVtbl *lpVtbl; + }; + +#ifdef COBJMACROS +#define Properties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) +#define Properties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) +#define Properties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) +#define Properties_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) +#define Properties_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) +#define Properties_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) +#define Properties_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) +#define Properties_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) +#define Properties__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) +#define Properties_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) +#define Properties_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) +#endif /* COBJMACROS */ +#endif /* C style interface */ +#endif /* __Properties_INTERFACE_DEFINED__ */ +#endif /* __ADODB_LIBRARY_DEFINED__ */ +/* interface __MIDL_itf_ado10_0001_0035 */ +/* [local] */ +#pragma warning(pop) // For C4091 +extern RPC_IF_HANDLE __MIDL_itf_ado10_0001_0035_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ado10_0001_0035_v0_0_s_ifspec; +/* Additional Prototypes for ALL interfaces */ +/* end of Additional Prototypes */ +#ifdef __cplusplus +} +#endif +#endif +#define ADOCommand _ADOCommand +#define ADORecordset _ADORecordset +#define ADOTransaction _ADOTransaction +#define ADOParameter _ADOParameter +#define ADOConnection _ADOConnection +#define ADOCollection _ADOCollection +#define ADODynaCollection _ADODynaCollection +#define ADORecord _ADORecord +#define ADORecField _ADORecField +#define ADOStream _ADOStream + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _ADOINT_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adojet.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adojet.h new file mode 100644 index 0000000000000000000000000000000000000000..5446c10b104414cb066be81a66f055988f9f930c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adojet.h @@ -0,0 +1,1092 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __adojet_h__ +#define __adojet_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IReplica_FWD_DEFINED__ +#define __IReplica_FWD_DEFINED__ +typedef interface IReplica IReplica; + +#endif /* __IReplica_FWD_DEFINED__ */ + + +#ifndef __Filter_FWD_DEFINED__ +#define __Filter_FWD_DEFINED__ +typedef interface Filter Filter; + +#endif /* __Filter_FWD_DEFINED__ */ + + +#ifndef __Filters_FWD_DEFINED__ +#define __Filters_FWD_DEFINED__ +typedef interface Filters Filters; + +#endif /* __Filters_FWD_DEFINED__ */ + + +#ifndef __IJetEngine_FWD_DEFINED__ +#define __IJetEngine_FWD_DEFINED__ +typedef interface IJetEngine IJetEngine; + +#endif /* __IJetEngine_FWD_DEFINED__ */ + + +#ifndef __Replica_FWD_DEFINED__ +#define __Replica_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Replica Replica; +#else +typedef struct Replica Replica; +#endif /* __cplusplus */ + +#endif /* __Replica_FWD_DEFINED__ */ + + +#ifndef __JetEngine_FWD_DEFINED__ +#define __JetEngine_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class JetEngine JetEngine; +#else +typedef struct JetEngine JetEngine; +#endif /* __cplusplus */ + +#endif /* __JetEngine_FWD_DEFINED__ */ + + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_adojet_0000_0000 */ +/* [local] */ + + + + + + + +#define TARGET_IS_NT40_OR_LATER 1 + + +extern RPC_IF_HANDLE __MIDL_itf_adojet_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_adojet_0000_0000_v0_0_s_ifspec; + + +#ifndef __JRO_LIBRARY_DEFINED__ +#define __JRO_LIBRARY_DEFINED__ + +/* library JRO */ +/* [helpstring][version][uuid] */ + +typedef /* [uuid] */ DECLSPEC_UUID("D2D139DF-B6CA-11d1-9F31-00C04FC29D52") +enum ReplicaTypeEnum + { + jrRepTypeNotReplicable = 0, + jrRepTypeDesignMaster = 0x1, + jrRepTypeFull = 0x2, + jrRepTypePartial = 0x3 + } ReplicaTypeEnum; + +typedef /* [uuid] */ DECLSPEC_UUID("6877D21A-B6CE-11d1-9F31-00C04FC29D52") +enum VisibilityEnum + { + jrRepVisibilityGlobal = 0x1, + jrRepVisibilityLocal = 0x2, + jrRepVisibilityAnon = 0x4 + } VisibilityEnum; + +typedef /* [uuid] */ DECLSPEC_UUID("B42FBFF6-B6CF-11d1-9F31-00C04FC29D52") +enum UpdatabilityEnum + { + jrRepUpdFull = 0, + jrRepUpdReadOnly = 0x2 + } UpdatabilityEnum; + +typedef /* [uuid] */ DECLSPEC_UUID("60C05416-B6D0-11d1-9F31-00C04FC29D52") +enum SyncTypeEnum + { + jrSyncTypeExport = 0x1, + jrSyncTypeImport = 0x2, + jrSyncTypeImpExp = 0x3 + } SyncTypeEnum; + +typedef /* [uuid] */ DECLSPEC_UUID("5EBA3970-061E-11d2-BB77-00C04FAE22DA") +enum SyncModeEnum + { + jrSyncModeIndirect = 0x1, + jrSyncModeDirect = 0x2, + jrSyncModeInternet = 0x3 + } SyncModeEnum; + +typedef /* [uuid] */ DECLSPEC_UUID("72769F94-BF78-11d1-AC4D-00C04FC29F8F") +enum FilterTypeEnum + { + jrFilterTypeTable = 0x1, + jrFilterTypeRelationship = 0x2 + } FilterTypeEnum; + + +EXTERN_C const IID LIBID_JRO; + +#ifndef __IReplica_INTERFACE_DEFINED__ +#define __IReplica_INTERFACE_DEFINED__ + +/* interface IReplica */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IReplica; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D2D139E0-B6CA-11d1-9F31-00C04FC29D52") + IReplica : public IDispatch + { + public: + virtual /* [helpcontext][propputref] */ HRESULT STDMETHODCALLTYPE putref_ActiveConnection( + /* [in] */ __RPC__in_opt IDispatch *pconn) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_ActiveConnection( + /* [in] */ VARIANT vConn) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppconn) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_ConflictFunction( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_ConflictFunction( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_ConflictTables( + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ _Recordset **pprset) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_DesignMasterId( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_DesignMasterId( + /* [in] */ VARIANT var) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Priority( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_ReplicaId( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_ReplicaType( + /* [retval][out] */ __RPC__out ReplicaTypeEnum *pl) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_RetentionPeriod( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_RetentionPeriod( + /* [in] */ long l) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Visibility( + /* [retval][out] */ __RPC__out VisibilityEnum *pl) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE CreateReplica( + /* [in] */ __RPC__in BSTR replicaName, + /* [in] */ __RPC__in BSTR description, + /* [defaultvalue][in] */ ReplicaTypeEnum replicaType = jrRepTypeFull, + /* [defaultvalue][in] */ VisibilityEnum visibility = jrRepVisibilityGlobal, + /* [defaultvalue][in] */ long priority = -1, + /* [defaultvalue][in] */ UpdatabilityEnum updatability = jrRepUpdFull) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE GetObjectReplicability( + /* [in] */ __RPC__in BSTR objectName, + /* [in] */ __RPC__in BSTR objectType, + /* [retval][out] */ __RPC__out VARIANT_BOOL *replicability) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE SetObjectReplicability( + /* [in] */ __RPC__in BSTR objectName, + /* [in] */ __RPC__in BSTR objectType, + /* [in] */ VARIANT_BOOL replicability) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE MakeReplicable( + /* [defaultvalue][in] */ __RPC__in BSTR connectionString = (BSTR)L"", + /* [defaultvalue][in] */ VARIANT_BOOL columnTracking = -1) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE PopulatePartial( + /* [in] */ __RPC__in BSTR FullReplica) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Synchronize( + /* [in] */ __RPC__in BSTR target, + /* [defaultvalue][in] */ SyncTypeEnum syncType = jrSyncTypeImpExp, + /* [defaultvalue][in] */ SyncModeEnum syncMode = jrSyncModeIndirect) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Filters( + /* [retval][out] */ __RPC__deref_out_opt Filters **ppFilters) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IReplicaVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IReplica * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IReplica * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IReplica * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IReplica * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IReplica * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IReplica * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IReplica * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IReplica, putref_ActiveConnection) + /* [helpcontext][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveConnection )( + __RPC__in IReplica * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + DECLSPEC_XFGVIRT(IReplica, put_ActiveConnection) + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in IReplica * This, + /* [in] */ VARIANT vConn); + + DECLSPEC_XFGVIRT(IReplica, get_ActiveConnection) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in IReplica * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppconn); + + DECLSPEC_XFGVIRT(IReplica, get_ConflictFunction) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConflictFunction )( + __RPC__in IReplica * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(IReplica, put_ConflictFunction) + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ConflictFunction )( + __RPC__in IReplica * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(IReplica, get_ConflictTables) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConflictTables )( + __RPC__in IReplica * This, + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ _Recordset **pprset); + + DECLSPEC_XFGVIRT(IReplica, get_DesignMasterId) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DesignMasterId )( + __RPC__in IReplica * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(IReplica, put_DesignMasterId) + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DesignMasterId )( + __RPC__in IReplica * This, + /* [in] */ VARIANT var); + + DECLSPEC_XFGVIRT(IReplica, get_Priority) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Priority )( + __RPC__in IReplica * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IReplica, get_ReplicaId) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReplicaId )( + __RPC__in IReplica * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(IReplica, get_ReplicaType) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReplicaType )( + __RPC__in IReplica * This, + /* [retval][out] */ __RPC__out ReplicaTypeEnum *pl); + + DECLSPEC_XFGVIRT(IReplica, get_RetentionPeriod) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetentionPeriod )( + __RPC__in IReplica * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(IReplica, put_RetentionPeriod) + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RetentionPeriod )( + __RPC__in IReplica * This, + /* [in] */ long l); + + DECLSPEC_XFGVIRT(IReplica, get_Visibility) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Visibility )( + __RPC__in IReplica * This, + /* [retval][out] */ __RPC__out VisibilityEnum *pl); + + DECLSPEC_XFGVIRT(IReplica, CreateReplica) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *CreateReplica )( + __RPC__in IReplica * This, + /* [in] */ __RPC__in BSTR replicaName, + /* [in] */ __RPC__in BSTR description, + /* [defaultvalue][in] */ ReplicaTypeEnum replicaType, + /* [defaultvalue][in] */ VisibilityEnum visibility, + /* [defaultvalue][in] */ long priority, + /* [defaultvalue][in] */ UpdatabilityEnum updatability); + + DECLSPEC_XFGVIRT(IReplica, GetObjectReplicability) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *GetObjectReplicability )( + __RPC__in IReplica * This, + /* [in] */ __RPC__in BSTR objectName, + /* [in] */ __RPC__in BSTR objectType, + /* [retval][out] */ __RPC__out VARIANT_BOOL *replicability); + + DECLSPEC_XFGVIRT(IReplica, SetObjectReplicability) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *SetObjectReplicability )( + __RPC__in IReplica * This, + /* [in] */ __RPC__in BSTR objectName, + /* [in] */ __RPC__in BSTR objectType, + /* [in] */ VARIANT_BOOL replicability); + + DECLSPEC_XFGVIRT(IReplica, MakeReplicable) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *MakeReplicable )( + __RPC__in IReplica * This, + /* [defaultvalue][in] */ __RPC__in BSTR connectionString, + /* [defaultvalue][in] */ VARIANT_BOOL columnTracking); + + DECLSPEC_XFGVIRT(IReplica, PopulatePartial) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *PopulatePartial )( + __RPC__in IReplica * This, + /* [in] */ __RPC__in BSTR FullReplica); + + DECLSPEC_XFGVIRT(IReplica, Synchronize) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Synchronize )( + __RPC__in IReplica * This, + /* [in] */ __RPC__in BSTR target, + /* [defaultvalue][in] */ SyncTypeEnum syncType, + /* [defaultvalue][in] */ SyncModeEnum syncMode); + + DECLSPEC_XFGVIRT(IReplica, get_Filters) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Filters )( + __RPC__in IReplica * This, + /* [retval][out] */ __RPC__deref_out_opt Filters **ppFilters); + + END_INTERFACE + } IReplicaVtbl; + + interface IReplica + { + CONST_VTBL struct IReplicaVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IReplica_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IReplica_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IReplica_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IReplica_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IReplica_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IReplica_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IReplica_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IReplica_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) + +#define IReplica_put_ActiveConnection(This,vConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,vConn) ) + +#define IReplica_get_ActiveConnection(This,ppconn) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,ppconn) ) + +#define IReplica_get_ConflictFunction(This,pbstr) \ + ( (This)->lpVtbl -> get_ConflictFunction(This,pbstr) ) + +#define IReplica_put_ConflictFunction(This,bstr) \ + ( (This)->lpVtbl -> put_ConflictFunction(This,bstr) ) + +#define IReplica_get_ConflictTables(This,pprset) \ + ( (This)->lpVtbl -> get_ConflictTables(This,pprset) ) + +#define IReplica_get_DesignMasterId(This,pvar) \ + ( (This)->lpVtbl -> get_DesignMasterId(This,pvar) ) + +#define IReplica_put_DesignMasterId(This,var) \ + ( (This)->lpVtbl -> put_DesignMasterId(This,var) ) + +#define IReplica_get_Priority(This,pl) \ + ( (This)->lpVtbl -> get_Priority(This,pl) ) + +#define IReplica_get_ReplicaId(This,pvar) \ + ( (This)->lpVtbl -> get_ReplicaId(This,pvar) ) + +#define IReplica_get_ReplicaType(This,pl) \ + ( (This)->lpVtbl -> get_ReplicaType(This,pl) ) + +#define IReplica_get_RetentionPeriod(This,pl) \ + ( (This)->lpVtbl -> get_RetentionPeriod(This,pl) ) + +#define IReplica_put_RetentionPeriod(This,l) \ + ( (This)->lpVtbl -> put_RetentionPeriod(This,l) ) + +#define IReplica_get_Visibility(This,pl) \ + ( (This)->lpVtbl -> get_Visibility(This,pl) ) + +#define IReplica_CreateReplica(This,replicaName,description,replicaType,visibility,priority,updatability) \ + ( (This)->lpVtbl -> CreateReplica(This,replicaName,description,replicaType,visibility,priority,updatability) ) + +#define IReplica_GetObjectReplicability(This,objectName,objectType,replicability) \ + ( (This)->lpVtbl -> GetObjectReplicability(This,objectName,objectType,replicability) ) + +#define IReplica_SetObjectReplicability(This,objectName,objectType,replicability) \ + ( (This)->lpVtbl -> SetObjectReplicability(This,objectName,objectType,replicability) ) + +#define IReplica_MakeReplicable(This,connectionString,columnTracking) \ + ( (This)->lpVtbl -> MakeReplicable(This,connectionString,columnTracking) ) + +#define IReplica_PopulatePartial(This,FullReplica) \ + ( (This)->lpVtbl -> PopulatePartial(This,FullReplica) ) + +#define IReplica_Synchronize(This,target,syncType,syncMode) \ + ( (This)->lpVtbl -> Synchronize(This,target,syncType,syncMode) ) + +#define IReplica_get_Filters(This,ppFilters) \ + ( (This)->lpVtbl -> get_Filters(This,ppFilters) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IReplica_INTERFACE_DEFINED__ */ + + +#ifndef __Filter_INTERFACE_DEFINED__ +#define __Filter_INTERFACE_DEFINED__ + +/* interface Filter */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Filter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D2D139E1-B6CA-11d1-9F31-00C04FC29D52") + Filter : public IDispatch + { + public: + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_TableName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_FilterType( + /* [retval][out] */ __RPC__out FilterTypeEnum *ptype) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_FilterCriteria( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct FilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Filter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Filter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Filter * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Filter * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Filter * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Filter * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Filter * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Filter, get_TableName) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TableName )( + __RPC__in Filter * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Filter, get_FilterType) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilterType )( + __RPC__in Filter * This, + /* [retval][out] */ __RPC__out FilterTypeEnum *ptype); + + DECLSPEC_XFGVIRT(Filter, get_FilterCriteria) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilterCriteria )( + __RPC__in Filter * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + END_INTERFACE + } FilterVtbl; + + interface Filter + { + CONST_VTBL struct FilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Filter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Filter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Filter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Filter_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Filter_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Filter_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Filter_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Filter_get_TableName(This,pbstr) \ + ( (This)->lpVtbl -> get_TableName(This,pbstr) ) + +#define Filter_get_FilterType(This,ptype) \ + ( (This)->lpVtbl -> get_FilterType(This,ptype) ) + +#define Filter_get_FilterCriteria(This,pbstr) \ + ( (This)->lpVtbl -> get_FilterCriteria(This,pbstr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Filter_INTERFACE_DEFINED__ */ + + +#ifndef __Filters_INTERFACE_DEFINED__ +#define __Filters_INTERFACE_DEFINED__ + +/* interface Filters */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Filters; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D2D139E2-B6CA-11d1-9F31-00C04FC29D52") + Filters : public IDispatch + { + public: + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [id][restricted] */ HRESULT STDMETHODCALLTYPE _NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *c) = 0; + + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Filter **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ __RPC__in BSTR tableName, + /* [in] */ FilterTypeEnum filterType, + /* [in] */ __RPC__in BSTR filterCriteria) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ VARIANT Index) = 0; + + }; + + +#else /* C style interface */ + + typedef struct FiltersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Filters * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Filters * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Filters * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Filters * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Filters * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Filters * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Filters * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Filters, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Filters * This); + + DECLSPEC_XFGVIRT(Filters, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Filters * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(Filters, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Filters * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(Filters, get_Item) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Filters * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Filter **ppvObject); + + DECLSPEC_XFGVIRT(Filters, Append) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in Filters * This, + /* [in] */ __RPC__in BSTR tableName, + /* [in] */ FilterTypeEnum filterType, + /* [in] */ __RPC__in BSTR filterCriteria); + + DECLSPEC_XFGVIRT(Filters, Delete) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in Filters * This, + /* [in] */ VARIANT Index); + + END_INTERFACE + } FiltersVtbl; + + interface Filters + { + CONST_VTBL struct FiltersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Filters_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Filters_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Filters_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Filters_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Filters_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Filters_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Filters_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Filters_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define Filters__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) + +#define Filters_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) + +#define Filters_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) + +#define Filters_Append(This,tableName,filterType,filterCriteria) \ + ( (This)->lpVtbl -> Append(This,tableName,filterType,filterCriteria) ) + +#define Filters_Delete(This,Index) \ + ( (This)->lpVtbl -> Delete(This,Index) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Filters_INTERFACE_DEFINED__ */ + + +#ifndef __IJetEngine_INTERFACE_DEFINED__ +#define __IJetEngine_INTERFACE_DEFINED__ + +/* interface IJetEngine */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IJetEngine; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9F63D980-FF25-11D1-BB6F-00C04FAE22DA") + IJetEngine : public IDispatch + { + public: + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE CompactDatabase( + /* [in] */ __RPC__in BSTR SourceConnection, + /* [in] */ __RPC__in BSTR Destconnection) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE RefreshCache( + /* [in] */ __RPC__in /* external definition not present */ _Connection *Connection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IJetEngineVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IJetEngine * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IJetEngine * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IJetEngine * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IJetEngine * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IJetEngine * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IJetEngine * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IJetEngine * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IJetEngine, CompactDatabase) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *CompactDatabase )( + __RPC__in IJetEngine * This, + /* [in] */ __RPC__in BSTR SourceConnection, + /* [in] */ __RPC__in BSTR Destconnection); + + DECLSPEC_XFGVIRT(IJetEngine, RefreshCache) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *RefreshCache )( + __RPC__in IJetEngine * This, + /* [in] */ __RPC__in /* external definition not present */ _Connection *Connection); + + END_INTERFACE + } IJetEngineVtbl; + + interface IJetEngine + { + CONST_VTBL struct IJetEngineVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IJetEngine_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IJetEngine_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IJetEngine_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IJetEngine_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IJetEngine_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IJetEngine_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IJetEngine_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IJetEngine_CompactDatabase(This,SourceConnection,Destconnection) \ + ( (This)->lpVtbl -> CompactDatabase(This,SourceConnection,Destconnection) ) + +#define IJetEngine_RefreshCache(This,Connection) \ + ( (This)->lpVtbl -> RefreshCache(This,Connection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IJetEngine_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_Replica; + +#ifdef __cplusplus + +class DECLSPEC_UUID("D2D139E3-B6CA-11d1-9F31-00C04FC29D52") +Replica; +#endif + +EXTERN_C const CLSID CLSID_JetEngine; + +#ifdef __cplusplus + +class DECLSPEC_UUID("DE88C160-FF2C-11D1-BB6F-00C04FAE22DA") +JetEngine; +#endif +#endif /* __JRO_LIBRARY_DEFINED__ */ + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/adomd.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adomd.h new file mode 100644 index 0000000000000000000000000000000000000000..6faf5bef408611137f580ea2450d6bbabaacb1b4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/adomd.h @@ -0,0 +1,3760 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __adomd_h__ +#define __adomd_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICatalog_FWD_DEFINED__ +#define __ICatalog_FWD_DEFINED__ +typedef interface ICatalog ICatalog; + +#endif /* __ICatalog_FWD_DEFINED__ */ + + +#ifndef __ICellset_FWD_DEFINED__ +#define __ICellset_FWD_DEFINED__ +typedef interface ICellset ICellset; + +#endif /* __ICellset_FWD_DEFINED__ */ + + +#ifndef __Cell_FWD_DEFINED__ +#define __Cell_FWD_DEFINED__ +typedef interface Cell Cell; + +#endif /* __Cell_FWD_DEFINED__ */ + + +#ifndef __Axis_FWD_DEFINED__ +#define __Axis_FWD_DEFINED__ +typedef interface Axis Axis; + +#endif /* __Axis_FWD_DEFINED__ */ + + +#ifndef __Position_FWD_DEFINED__ +#define __Position_FWD_DEFINED__ +typedef interface Position Position; + +#endif /* __Position_FWD_DEFINED__ */ + + +#ifndef __Member_FWD_DEFINED__ +#define __Member_FWD_DEFINED__ +typedef interface Member Member; + +#endif /* __Member_FWD_DEFINED__ */ + + +#ifndef __Level_FWD_DEFINED__ +#define __Level_FWD_DEFINED__ +typedef interface Level Level; + +#endif /* __Level_FWD_DEFINED__ */ + + +#ifndef __CubeDef25_FWD_DEFINED__ +#define __CubeDef25_FWD_DEFINED__ +typedef interface CubeDef25 CubeDef25; + +#endif /* __CubeDef25_FWD_DEFINED__ */ + + +#ifndef __CubeDef_FWD_DEFINED__ +#define __CubeDef_FWD_DEFINED__ +typedef interface CubeDef CubeDef; + +#endif /* __CubeDef_FWD_DEFINED__ */ + + +#ifndef __Dimension_FWD_DEFINED__ +#define __Dimension_FWD_DEFINED__ +typedef interface Dimension Dimension; + +#endif /* __Dimension_FWD_DEFINED__ */ + + +#ifndef __Hierarchy_FWD_DEFINED__ +#define __Hierarchy_FWD_DEFINED__ +typedef interface Hierarchy Hierarchy; + +#endif /* __Hierarchy_FWD_DEFINED__ */ + + +#ifndef __MD_Collection_FWD_DEFINED__ +#define __MD_Collection_FWD_DEFINED__ +typedef interface MD_Collection MD_Collection; + +#endif /* __MD_Collection_FWD_DEFINED__ */ + + +#ifndef __Members_FWD_DEFINED__ +#define __Members_FWD_DEFINED__ +typedef interface Members Members; + +#endif /* __Members_FWD_DEFINED__ */ + + +#ifndef __Levels_FWD_DEFINED__ +#define __Levels_FWD_DEFINED__ +typedef interface Levels Levels; + +#endif /* __Levels_FWD_DEFINED__ */ + + +#ifndef __Axes_FWD_DEFINED__ +#define __Axes_FWD_DEFINED__ +typedef interface Axes Axes; + +#endif /* __Axes_FWD_DEFINED__ */ + + +#ifndef __Positions_FWD_DEFINED__ +#define __Positions_FWD_DEFINED__ +typedef interface Positions Positions; + +#endif /* __Positions_FWD_DEFINED__ */ + + +#ifndef __Hierarchies_FWD_DEFINED__ +#define __Hierarchies_FWD_DEFINED__ +typedef interface Hierarchies Hierarchies; + +#endif /* __Hierarchies_FWD_DEFINED__ */ + + +#ifndef __Dimensions_FWD_DEFINED__ +#define __Dimensions_FWD_DEFINED__ +typedef interface Dimensions Dimensions; + +#endif /* __Dimensions_FWD_DEFINED__ */ + + +#ifndef __CubeDefs_FWD_DEFINED__ +#define __CubeDefs_FWD_DEFINED__ +typedef interface CubeDefs CubeDefs; + +#endif /* __CubeDefs_FWD_DEFINED__ */ + + +#ifndef __Catalog_FWD_DEFINED__ +#define __Catalog_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Catalog Catalog; +#else +typedef struct Catalog Catalog; +#endif /* __cplusplus */ + +#endif /* __Catalog_FWD_DEFINED__ */ + + +#ifndef __Cellset_FWD_DEFINED__ +#define __Cellset_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Cellset Cellset; +#else +typedef struct Cellset Cellset; +#endif /* __cplusplus */ + +#endif /* __Cellset_FWD_DEFINED__ */ + + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_adomd_0000_0000 */ +/* [local] */ + + + + + + + + + + + + + + + + + + + + +#define TARGET_IS_NT40_OR_LATER 1 + + +extern RPC_IF_HANDLE __MIDL_itf_adomd_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_adomd_0000_0000_v0_0_s_ifspec; + + +#ifndef __ADOMD_LIBRARY_DEFINED__ +#define __ADOMD_LIBRARY_DEFINED__ + +/* library ADOMD */ +/* [helpstring][version][uuid] */ + +typedef /* [uuid][helpcontext] */ DECLSPEC_UUID("000002AE-0000-0010-8000-00AA006D2EA4") +enum MemberTypeEnum + { + adMemberUnknown = 0, + adMemberRegular = 0x1, + adMemberAll = 0x2, + adMemberMeasure = 0x3, + adMemberFormula = 0x4 + } MemberTypeEnum; + +typedef /* [uuid][helpcontext] */ DECLSPEC_UUID("C23BBD43-E494-4d00-B4D1-6C9A2CE17CE3") +enum SchemaObjectTypeEnum + { + adObjectTypeDimension = 1, + adObjectTypeHierarchy = 2, + adObjectTypeLevel = 3, + adObjectTypeMember = 4 + } SchemaObjectTypeEnum; + + +EXTERN_C const IID LIBID_ADOMD; + +#ifndef __ICatalog_INTERFACE_DEFINED__ +#define __ICatalog_INTERFACE_DEFINED__ + +/* interface ICatalog */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICatalog; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("228136B1-8BD3-11D0-B4EF-00A0C9138CA4") + ICatalog : public IDispatch + { + public: + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propputref] */ HRESULT STDMETHODCALLTYPE putref_ActiveConnection( + /* [in] */ __RPC__in_opt IDispatch *pconn) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_ActiveConnection( + /* [in] */ __RPC__in BSTR bstrConn) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppConn) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_CubeDefs( + /* [retval][out] */ __RPC__deref_out_opt CubeDefs **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICatalogVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICatalog * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICatalog * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICatalog * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICatalog * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICatalog * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICatalog * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICatalog * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICatalog, get_Name) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in ICatalog * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(ICatalog, putref_ActiveConnection) + /* [helpcontext][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveConnection )( + __RPC__in ICatalog * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + DECLSPEC_XFGVIRT(ICatalog, put_ActiveConnection) + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in ICatalog * This, + /* [in] */ __RPC__in BSTR bstrConn); + + DECLSPEC_XFGVIRT(ICatalog, get_ActiveConnection) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in ICatalog * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppConn); + + DECLSPEC_XFGVIRT(ICatalog, get_CubeDefs) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CubeDefs )( + __RPC__in ICatalog * This, + /* [retval][out] */ __RPC__deref_out_opt CubeDefs **ppvObject); + + END_INTERFACE + } ICatalogVtbl; + + interface ICatalog + { + CONST_VTBL struct ICatalogVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICatalog_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICatalog_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICatalog_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICatalog_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICatalog_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICatalog_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICatalog_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICatalog_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) + +#define ICatalog_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) + +#define ICatalog_put_ActiveConnection(This,bstrConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,bstrConn) ) + +#define ICatalog_get_ActiveConnection(This,ppConn) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,ppConn) ) + +#define ICatalog_get_CubeDefs(This,ppvObject) \ + ( (This)->lpVtbl -> get_CubeDefs(This,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICatalog_INTERFACE_DEFINED__ */ + + +#ifndef __ICellset_INTERFACE_DEFINED__ +#define __ICellset_INTERFACE_DEFINED__ + +/* interface ICellset */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICellset; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2281372A-8BD3-11D0-B4EF-00A0C9138CA4") + ICellset : public IDispatch + { + public: + virtual /* [helpcontext][id][vararg][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *idx, + /* [retval][out] */ __RPC__deref_out_opt Cell **ppvObject) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Open( + /* [optional][in] */ VARIANT DataSource, + /* [optional][in] */ VARIANT ActiveConnection) = 0; + + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual /* [helpcontext][propputref] */ HRESULT STDMETHODCALLTYPE putref_Source( + /* [in] */ __RPC__in_opt IDispatch *pcmd) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_Source( + /* [in] */ __RPC__in BSTR bstrCmd) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Source( + /* [retval][out] */ __RPC__out VARIANT *pvSource) = 0; + + virtual /* [helpcontext][propputref] */ HRESULT STDMETHODCALLTYPE putref_ActiveConnection( + /* [in] */ __RPC__in_opt IDispatch *pconn) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_ActiveConnection( + /* [in] */ __RPC__in BSTR bstrConn) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveConnection( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppConn) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out LONG *plState) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Axes( + /* [retval][out] */ __RPC__deref_out_opt Axes **ppvObject) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_FilterAxis( + /* [retval][out] */ __RPC__deref_out_opt Axis **ppvObject) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICellsetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICellset * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICellset * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICellset * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICellset * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICellset * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICellset * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICellset * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICellset, get_Item) + /* [helpcontext][id][vararg][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ICellset * This, + /* [in] */ __RPC__deref_in_opt SAFEARRAY * *idx, + /* [retval][out] */ __RPC__deref_out_opt Cell **ppvObject); + + DECLSPEC_XFGVIRT(ICellset, Open) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in ICellset * This, + /* [optional][in] */ VARIANT DataSource, + /* [optional][in] */ VARIANT ActiveConnection); + + DECLSPEC_XFGVIRT(ICellset, Close) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in ICellset * This); + + DECLSPEC_XFGVIRT(ICellset, putref_Source) + /* [helpcontext][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_Source )( + __RPC__in ICellset * This, + /* [in] */ __RPC__in_opt IDispatch *pcmd); + + DECLSPEC_XFGVIRT(ICellset, put_Source) + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Source )( + __RPC__in ICellset * This, + /* [in] */ __RPC__in BSTR bstrCmd); + + DECLSPEC_XFGVIRT(ICellset, get_Source) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in ICellset * This, + /* [retval][out] */ __RPC__out VARIANT *pvSource); + + DECLSPEC_XFGVIRT(ICellset, putref_ActiveConnection) + /* [helpcontext][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_ActiveConnection )( + __RPC__in ICellset * This, + /* [in] */ __RPC__in_opt IDispatch *pconn); + + DECLSPEC_XFGVIRT(ICellset, put_ActiveConnection) + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ActiveConnection )( + __RPC__in ICellset * This, + /* [in] */ __RPC__in BSTR bstrConn); + + DECLSPEC_XFGVIRT(ICellset, get_ActiveConnection) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveConnection )( + __RPC__in ICellset * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppConn); + + DECLSPEC_XFGVIRT(ICellset, get_State) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in ICellset * This, + /* [retval][out] */ __RPC__out LONG *plState); + + DECLSPEC_XFGVIRT(ICellset, get_Axes) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Axes )( + __RPC__in ICellset * This, + /* [retval][out] */ __RPC__deref_out_opt Axes **ppvObject); + + DECLSPEC_XFGVIRT(ICellset, get_FilterAxis) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilterAxis )( + __RPC__in ICellset * This, + /* [retval][out] */ __RPC__deref_out_opt Axis **ppvObject); + + DECLSPEC_XFGVIRT(ICellset, get_Properties) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in ICellset * This, + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject); + + END_INTERFACE + } ICellsetVtbl; + + interface ICellset + { + CONST_VTBL struct ICellsetVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICellset_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICellset_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICellset_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICellset_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICellset_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICellset_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICellset_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICellset_get_Item(This,idx,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,idx,ppvObject) ) + +#define ICellset_Open(This,DataSource,ActiveConnection) \ + ( (This)->lpVtbl -> Open(This,DataSource,ActiveConnection) ) + +#define ICellset_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ICellset_putref_Source(This,pcmd) \ + ( (This)->lpVtbl -> putref_Source(This,pcmd) ) + +#define ICellset_put_Source(This,bstrCmd) \ + ( (This)->lpVtbl -> put_Source(This,bstrCmd) ) + +#define ICellset_get_Source(This,pvSource) \ + ( (This)->lpVtbl -> get_Source(This,pvSource) ) + +#define ICellset_putref_ActiveConnection(This,pconn) \ + ( (This)->lpVtbl -> putref_ActiveConnection(This,pconn) ) + +#define ICellset_put_ActiveConnection(This,bstrConn) \ + ( (This)->lpVtbl -> put_ActiveConnection(This,bstrConn) ) + +#define ICellset_get_ActiveConnection(This,ppConn) \ + ( (This)->lpVtbl -> get_ActiveConnection(This,ppConn) ) + +#define ICellset_get_State(This,plState) \ + ( (This)->lpVtbl -> get_State(This,plState) ) + +#define ICellset_get_Axes(This,ppvObject) \ + ( (This)->lpVtbl -> get_Axes(This,ppvObject) ) + +#define ICellset_get_FilterAxis(This,ppvObject) \ + ( (This)->lpVtbl -> get_FilterAxis(This,ppvObject) ) + +#define ICellset_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICellset_INTERFACE_DEFINED__ */ + + +#ifndef __Cell_INTERFACE_DEFINED__ +#define __Cell_INTERFACE_DEFINED__ + +/* interface Cell */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Cell; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2281372E-8BD3-11D0-B4EF-00A0C9138CA4") + Cell : public IDispatch + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pvar) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT var) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Positions( + /* [retval][out] */ __RPC__deref_out_opt Positions **ppvObject) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_FormattedValue( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propput] */ HRESULT STDMETHODCALLTYPE put_FormattedValue( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Ordinal( + /* [retval][out] */ __RPC__out long *pl) = 0; + + }; + + +#else /* C style interface */ + + typedef struct CellVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Cell * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Cell * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Cell * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Cell * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Cell * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Cell * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Cell * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Cell, get_Value) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in Cell * This, + /* [retval][out] */ __RPC__out VARIANT *pvar); + + DECLSPEC_XFGVIRT(Cell, put_Value) + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in Cell * This, + /* [in] */ VARIANT var); + + DECLSPEC_XFGVIRT(Cell, get_Positions) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Positions )( + __RPC__in Cell * This, + /* [retval][out] */ __RPC__deref_out_opt Positions **ppvObject); + + DECLSPEC_XFGVIRT(Cell, get_Properties) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Cell * This, + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject); + + DECLSPEC_XFGVIRT(Cell, get_FormattedValue) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FormattedValue )( + __RPC__in Cell * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Cell, put_FormattedValue) + /* [helpcontext][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FormattedValue )( + __RPC__in Cell * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(Cell, get_Ordinal) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Ordinal )( + __RPC__in Cell * This, + /* [retval][out] */ __RPC__out long *pl); + + END_INTERFACE + } CellVtbl; + + interface Cell + { + CONST_VTBL struct CellVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Cell_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Cell_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Cell_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Cell_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Cell_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Cell_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Cell_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Cell_get_Value(This,pvar) \ + ( (This)->lpVtbl -> get_Value(This,pvar) ) + +#define Cell_put_Value(This,var) \ + ( (This)->lpVtbl -> put_Value(This,var) ) + +#define Cell_get_Positions(This,ppvObject) \ + ( (This)->lpVtbl -> get_Positions(This,ppvObject) ) + +#define Cell_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) + +#define Cell_get_FormattedValue(This,pbstr) \ + ( (This)->lpVtbl -> get_FormattedValue(This,pbstr) ) + +#define Cell_put_FormattedValue(This,bstr) \ + ( (This)->lpVtbl -> put_FormattedValue(This,bstr) ) + +#define Cell_get_Ordinal(This,pl) \ + ( (This)->lpVtbl -> get_Ordinal(This,pl) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Cell_INTERFACE_DEFINED__ */ + + +#ifndef __Axis_INTERFACE_DEFINED__ +#define __Axis_INTERFACE_DEFINED__ + +/* interface Axis */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Axis; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22813732-8BD3-11D0-B4EF-00A0C9138CA4") + Axis : public IDispatch + { + public: + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_DimensionCount( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [id][helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Positions( + /* [retval][out] */ __RPC__deref_out_opt Positions **ppvObject) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AxisVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Axis * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Axis * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Axis * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Axis * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Axis * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Axis * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Axis * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Axis, get_Name) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Axis * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Axis, get_DimensionCount) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DimensionCount )( + __RPC__in Axis * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Axis, get_Positions) + /* [id][helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Positions )( + __RPC__in Axis * This, + /* [retval][out] */ __RPC__deref_out_opt Positions **ppvObject); + + DECLSPEC_XFGVIRT(Axis, get_Properties) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Axis * This, + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject); + + END_INTERFACE + } AxisVtbl; + + interface Axis + { + CONST_VTBL struct AxisVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Axis_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Axis_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Axis_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Axis_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Axis_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Axis_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Axis_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Axis_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) + +#define Axis_get_DimensionCount(This,pl) \ + ( (This)->lpVtbl -> get_DimensionCount(This,pl) ) + +#define Axis_get_Positions(This,ppvObject) \ + ( (This)->lpVtbl -> get_Positions(This,ppvObject) ) + +#define Axis_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Axis_INTERFACE_DEFINED__ */ + + +#ifndef __Position_INTERFACE_DEFINED__ +#define __Position_INTERFACE_DEFINED__ + +/* interface Position */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Position; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22813734-8BD3-11D0-B4EF-00A0C9138CA4") + Position : public IDispatch + { + public: + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Ordinal( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Members( + /* [retval][out] */ __RPC__deref_out_opt Members **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct PositionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Position * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Position * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Position * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Position * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Position * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Position * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Position * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Position, get_Ordinal) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Ordinal )( + __RPC__in Position * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Position, get_Members) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Members )( + __RPC__in Position * This, + /* [retval][out] */ __RPC__deref_out_opt Members **ppvObject); + + END_INTERFACE + } PositionVtbl; + + interface Position + { + CONST_VTBL struct PositionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Position_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Position_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Position_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Position_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Position_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Position_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Position_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Position_get_Ordinal(This,pl) \ + ( (This)->lpVtbl -> get_Ordinal(This,pl) ) + +#define Position_get_Members(This,ppvObject) \ + ( (This)->lpVtbl -> get_Members(This,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Position_INTERFACE_DEFINED__ */ + + +#ifndef __Member_INTERFACE_DEFINED__ +#define __Member_INTERFACE_DEFINED__ + +/* interface Member */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Member; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22813736-8BD3-11D0-B4EF-00A0C9138CA4") + Member : public IDispatch + { + public: + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_UniqueName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Caption( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Parent( + /* [retval][out] */ __RPC__deref_out_opt Member **ppvObject) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_LevelDepth( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_LevelName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out MemberTypeEnum *ptype) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_ChildCount( + /* [retval][out] */ __RPC__out long *pl) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_DrilledDown( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pf) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_ParentSameAsPrev( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pf) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Children( + /* [retval][out] */ __RPC__deref_out_opt Members **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct MemberVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Member * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Member * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Member * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Member * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Member * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Member * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Member * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Member, get_Name) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Member, get_UniqueName) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Member, get_Caption) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Caption )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Member, get_Description) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Member, get_Parent) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__deref_out_opt Member **ppvObject); + + DECLSPEC_XFGVIRT(Member, get_LevelDepth) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LevelDepth )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Member, get_LevelName) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LevelName )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Member, get_Properties) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject); + + DECLSPEC_XFGVIRT(Member, get_Type) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__out MemberTypeEnum *ptype); + + DECLSPEC_XFGVIRT(Member, get_ChildCount) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChildCount )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__out long *pl); + + DECLSPEC_XFGVIRT(Member, get_DrilledDown) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DrilledDown )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pf); + + DECLSPEC_XFGVIRT(Member, get_ParentSameAsPrev) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentSameAsPrev )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pf); + + DECLSPEC_XFGVIRT(Member, get_Children) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Children )( + __RPC__in Member * This, + /* [retval][out] */ __RPC__deref_out_opt Members **ppvObject); + + END_INTERFACE + } MemberVtbl; + + interface Member + { + CONST_VTBL struct MemberVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Member_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Member_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Member_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Member_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Member_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Member_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Member_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Member_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) + +#define Member_get_UniqueName(This,pbstr) \ + ( (This)->lpVtbl -> get_UniqueName(This,pbstr) ) + +#define Member_get_Caption(This,pbstr) \ + ( (This)->lpVtbl -> get_Caption(This,pbstr) ) + +#define Member_get_Description(This,pbstr) \ + ( (This)->lpVtbl -> get_Description(This,pbstr) ) + +#define Member_get_Parent(This,ppvObject) \ + ( (This)->lpVtbl -> get_Parent(This,ppvObject) ) + +#define Member_get_LevelDepth(This,pl) \ + ( (This)->lpVtbl -> get_LevelDepth(This,pl) ) + +#define Member_get_LevelName(This,pbstr) \ + ( (This)->lpVtbl -> get_LevelName(This,pbstr) ) + +#define Member_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) + +#define Member_get_Type(This,ptype) \ + ( (This)->lpVtbl -> get_Type(This,ptype) ) + +#define Member_get_ChildCount(This,pl) \ + ( (This)->lpVtbl -> get_ChildCount(This,pl) ) + +#define Member_get_DrilledDown(This,pf) \ + ( (This)->lpVtbl -> get_DrilledDown(This,pf) ) + +#define Member_get_ParentSameAsPrev(This,pf) \ + ( (This)->lpVtbl -> get_ParentSameAsPrev(This,pf) ) + +#define Member_get_Children(This,ppvObject) \ + ( (This)->lpVtbl -> get_Children(This,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Member_INTERFACE_DEFINED__ */ + + +#ifndef __Level_INTERFACE_DEFINED__ +#define __Level_INTERFACE_DEFINED__ + +/* interface Level */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Level; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2281373A-8BD3-11D0-B4EF-00A0C9138CA4") + Level : public IDispatch + { + public: + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_UniqueName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Caption( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Depth( + /* [retval][out] */ __RPC__out short *pw) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Members( + /* [retval][out] */ __RPC__deref_out_opt Members **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct LevelVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Level * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Level * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Level * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Level * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Level * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Level * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Level * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Level, get_Name) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Level * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Level, get_UniqueName) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( + __RPC__in Level * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Level, get_Caption) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Caption )( + __RPC__in Level * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Level, get_Description) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in Level * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Level, get_Depth) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Depth )( + __RPC__in Level * This, + /* [retval][out] */ __RPC__out short *pw); + + DECLSPEC_XFGVIRT(Level, get_Properties) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Level * This, + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject); + + DECLSPEC_XFGVIRT(Level, get_Members) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Members )( + __RPC__in Level * This, + /* [retval][out] */ __RPC__deref_out_opt Members **ppvObject); + + END_INTERFACE + } LevelVtbl; + + interface Level + { + CONST_VTBL struct LevelVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Level_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Level_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Level_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Level_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Level_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Level_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Level_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Level_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) + +#define Level_get_UniqueName(This,pbstr) \ + ( (This)->lpVtbl -> get_UniqueName(This,pbstr) ) + +#define Level_get_Caption(This,pbstr) \ + ( (This)->lpVtbl -> get_Caption(This,pbstr) ) + +#define Level_get_Description(This,pbstr) \ + ( (This)->lpVtbl -> get_Description(This,pbstr) ) + +#define Level_get_Depth(This,pw) \ + ( (This)->lpVtbl -> get_Depth(This,pw) ) + +#define Level_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) + +#define Level_get_Members(This,ppvObject) \ + ( (This)->lpVtbl -> get_Members(This,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Level_INTERFACE_DEFINED__ */ + + +#ifndef __CubeDef25_INTERFACE_DEFINED__ +#define __CubeDef25_INTERFACE_DEFINED__ + +/* interface CubeDef25 */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_CubeDef25; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2281373E-8BD3-11D0-B4EF-00A0C9138CA4") + CubeDef25 : public IDispatch + { + public: + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Dimensions( + /* [retval][out] */ __RPC__deref_out_opt Dimensions **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct CubeDef25Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in CubeDef25 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in CubeDef25 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in CubeDef25 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in CubeDef25 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in CubeDef25 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in CubeDef25 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + CubeDef25 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(CubeDef25, get_Name) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in CubeDef25 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(CubeDef25, get_Description) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in CubeDef25 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(CubeDef25, get_Properties) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in CubeDef25 * This, + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject); + + DECLSPEC_XFGVIRT(CubeDef25, get_Dimensions) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Dimensions )( + __RPC__in CubeDef25 * This, + /* [retval][out] */ __RPC__deref_out_opt Dimensions **ppvObject); + + END_INTERFACE + } CubeDef25Vtbl; + + interface CubeDef25 + { + CONST_VTBL struct CubeDef25Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define CubeDef25_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define CubeDef25_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define CubeDef25_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define CubeDef25_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define CubeDef25_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define CubeDef25_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define CubeDef25_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define CubeDef25_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) + +#define CubeDef25_get_Description(This,pbstr) \ + ( (This)->lpVtbl -> get_Description(This,pbstr) ) + +#define CubeDef25_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) + +#define CubeDef25_get_Dimensions(This,ppvObject) \ + ( (This)->lpVtbl -> get_Dimensions(This,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __CubeDef25_INTERFACE_DEFINED__ */ + + +#ifndef __CubeDef_INTERFACE_DEFINED__ +#define __CubeDef_INTERFACE_DEFINED__ + +/* interface CubeDef */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_CubeDef; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DA16A34A-7B7A-46fd-AD9D-66DF1E699FA1") + CubeDef : public CubeDef25 + { + public: + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE GetSchemaObject( + /* [in] */ SchemaObjectTypeEnum eObjType, + /* [in] */ __RPC__in BSTR bsUniqueName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppObj) = 0; + + }; + + +#else /* C style interface */ + + typedef struct CubeDefVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in CubeDef * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in CubeDef * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in CubeDef * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in CubeDef * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in CubeDef * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in CubeDef * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + CubeDef * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(CubeDef25, get_Name) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in CubeDef * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(CubeDef25, get_Description) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in CubeDef * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(CubeDef25, get_Properties) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in CubeDef * This, + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject); + + DECLSPEC_XFGVIRT(CubeDef25, get_Dimensions) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Dimensions )( + __RPC__in CubeDef * This, + /* [retval][out] */ __RPC__deref_out_opt Dimensions **ppvObject); + + DECLSPEC_XFGVIRT(CubeDef, GetSchemaObject) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *GetSchemaObject )( + __RPC__in CubeDef * This, + /* [in] */ SchemaObjectTypeEnum eObjType, + /* [in] */ __RPC__in BSTR bsUniqueName, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppObj); + + END_INTERFACE + } CubeDefVtbl; + + interface CubeDef + { + CONST_VTBL struct CubeDefVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define CubeDef_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define CubeDef_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define CubeDef_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define CubeDef_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define CubeDef_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define CubeDef_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define CubeDef_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define CubeDef_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) + +#define CubeDef_get_Description(This,pbstr) \ + ( (This)->lpVtbl -> get_Description(This,pbstr) ) + +#define CubeDef_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) + +#define CubeDef_get_Dimensions(This,ppvObject) \ + ( (This)->lpVtbl -> get_Dimensions(This,ppvObject) ) + + +#define CubeDef_GetSchemaObject(This,eObjType,bsUniqueName,ppObj) \ + ( (This)->lpVtbl -> GetSchemaObject(This,eObjType,bsUniqueName,ppObj) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __CubeDef_INTERFACE_DEFINED__ */ + + +#ifndef __Dimension_INTERFACE_DEFINED__ +#define __Dimension_INTERFACE_DEFINED__ + +/* interface Dimension */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Dimension; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22813742-8BD3-11D0-B4EF-00A0C9138CA4") + Dimension : public IDispatch + { + public: + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_UniqueName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Hierarchies( + /* [retval][out] */ __RPC__deref_out_opt Hierarchies **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct DimensionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Dimension * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Dimension * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Dimension * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Dimension * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Dimension * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Dimension * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Dimension * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Dimension, get_Name) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Dimension * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Dimension, get_UniqueName) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( + __RPC__in Dimension * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Dimension, get_Description) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in Dimension * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Dimension, get_Properties) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Dimension * This, + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject); + + DECLSPEC_XFGVIRT(Dimension, get_Hierarchies) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Hierarchies )( + __RPC__in Dimension * This, + /* [retval][out] */ __RPC__deref_out_opt Hierarchies **ppvObject); + + END_INTERFACE + } DimensionVtbl; + + interface Dimension + { + CONST_VTBL struct DimensionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Dimension_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Dimension_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Dimension_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Dimension_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Dimension_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Dimension_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Dimension_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Dimension_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) + +#define Dimension_get_UniqueName(This,pbstr) \ + ( (This)->lpVtbl -> get_UniqueName(This,pbstr) ) + +#define Dimension_get_Description(This,pbstr) \ + ( (This)->lpVtbl -> get_Description(This,pbstr) ) + +#define Dimension_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) + +#define Dimension_get_Hierarchies(This,ppvObject) \ + ( (This)->lpVtbl -> get_Hierarchies(This,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Dimension_INTERFACE_DEFINED__ */ + + +#ifndef __Hierarchy_INTERFACE_DEFINED__ +#define __Hierarchy_INTERFACE_DEFINED__ + +/* interface Hierarchy */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Hierarchy; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22813746-8BD3-11D0-B4EF-00A0C9138CA4") + Hierarchy : public IDispatch + { + public: + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_UniqueName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject) = 0; + + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Levels( + /* [retval][out] */ __RPC__deref_out_opt Levels **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct HierarchyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Hierarchy * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Hierarchy * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Hierarchy * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Hierarchy * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Hierarchy * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Hierarchy * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Hierarchy * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Hierarchy, get_Name) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in Hierarchy * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Hierarchy, get_UniqueName) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueName )( + __RPC__in Hierarchy * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Hierarchy, get_Description) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in Hierarchy * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(Hierarchy, get_Properties) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in Hierarchy * This, + /* [retval][out] */ __RPC__deref_out_opt /* external definition not present */ Properties **ppvObject); + + DECLSPEC_XFGVIRT(Hierarchy, get_Levels) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Levels )( + __RPC__in Hierarchy * This, + /* [retval][out] */ __RPC__deref_out_opt Levels **ppvObject); + + END_INTERFACE + } HierarchyVtbl; + + interface Hierarchy + { + CONST_VTBL struct HierarchyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Hierarchy_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Hierarchy_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Hierarchy_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Hierarchy_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Hierarchy_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Hierarchy_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Hierarchy_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Hierarchy_get_Name(This,pbstr) \ + ( (This)->lpVtbl -> get_Name(This,pbstr) ) + +#define Hierarchy_get_UniqueName(This,pbstr) \ + ( (This)->lpVtbl -> get_UniqueName(This,pbstr) ) + +#define Hierarchy_get_Description(This,pbstr) \ + ( (This)->lpVtbl -> get_Description(This,pbstr) ) + +#define Hierarchy_get_Properties(This,ppvObject) \ + ( (This)->lpVtbl -> get_Properties(This,ppvObject) ) + +#define Hierarchy_get_Levels(This,ppvObject) \ + ( (This)->lpVtbl -> get_Levels(This,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Hierarchy_INTERFACE_DEFINED__ */ + + +#ifndef __MD_Collection_INTERFACE_DEFINED__ +#define __MD_Collection_INTERFACE_DEFINED__ + +/* interface MD_Collection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_MD_Collection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22813751-8BD3-11D0-B4EF-00A0C9138CA4") + MD_Collection : public IDispatch + { + public: + virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + virtual /* [id][restricted] */ HRESULT STDMETHODCALLTYPE _NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject) = 0; + + virtual /* [helpcontext][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *c) = 0; + + }; + + +#else /* C style interface */ + + typedef struct MD_CollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in MD_Collection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in MD_Collection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in MD_Collection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in MD_Collection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in MD_Collection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in MD_Collection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + MD_Collection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(MD_Collection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in MD_Collection * This); + + DECLSPEC_XFGVIRT(MD_Collection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in MD_Collection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(MD_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in MD_Collection * This, + /* [retval][out] */ __RPC__out long *c); + + END_INTERFACE + } MD_CollectionVtbl; + + interface MD_Collection + { + CONST_VTBL struct MD_CollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define MD_Collection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define MD_Collection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define MD_Collection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define MD_Collection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define MD_Collection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define MD_Collection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define MD_Collection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define MD_Collection_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define MD_Collection__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) + +#define MD_Collection_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __MD_Collection_INTERFACE_DEFINED__ */ + + +#ifndef __Members_INTERFACE_DEFINED__ +#define __Members_INTERFACE_DEFINED__ + +/* interface Members */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Members; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22813757-8BD3-11D0-B4EF-00A0C9138CA4") + Members : public MD_Collection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Member **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct MembersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Members * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Members * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Members * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Members * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Members * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Members * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Members * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(MD_Collection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Members * This); + + DECLSPEC_XFGVIRT(MD_Collection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Members * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(MD_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Members * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(Members, get_Item) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Members * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Member **ppvObject); + + END_INTERFACE + } MembersVtbl; + + interface Members + { + CONST_VTBL struct MembersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Members_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Members_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Members_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Members_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Members_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Members_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Members_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Members_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define Members__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) + +#define Members_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) + + +#define Members_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Members_INTERFACE_DEFINED__ */ + + +#ifndef __Levels_INTERFACE_DEFINED__ +#define __Levels_INTERFACE_DEFINED__ + +/* interface Levels */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Levels; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22813758-8BD3-11D0-B4EF-00A0C9138CA4") + Levels : public MD_Collection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Level **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct LevelsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Levels * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Levels * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Levels * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Levels * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Levels * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Levels * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Levels * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(MD_Collection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Levels * This); + + DECLSPEC_XFGVIRT(MD_Collection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Levels * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(MD_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Levels * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(Levels, get_Item) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Levels * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Level **ppvObject); + + END_INTERFACE + } LevelsVtbl; + + interface Levels + { + CONST_VTBL struct LevelsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Levels_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Levels_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Levels_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Levels_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Levels_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Levels_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Levels_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Levels_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define Levels__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) + +#define Levels_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) + + +#define Levels_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Levels_INTERFACE_DEFINED__ */ + + +#ifndef __Axes_INTERFACE_DEFINED__ +#define __Axes_INTERFACE_DEFINED__ + +/* interface Axes */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Axes; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22813759-8BD3-11D0-B4EF-00A0C9138CA4") + Axes : public MD_Collection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Axis **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AxesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Axes * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Axes * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Axes * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Axes * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Axes * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Axes * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Axes * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(MD_Collection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Axes * This); + + DECLSPEC_XFGVIRT(MD_Collection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Axes * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(MD_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Axes * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(Axes, get_Item) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Axes * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Axis **ppvObject); + + END_INTERFACE + } AxesVtbl; + + interface Axes + { + CONST_VTBL struct AxesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Axes_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Axes_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Axes_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Axes_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Axes_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Axes_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Axes_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Axes_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define Axes__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) + +#define Axes_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) + + +#define Axes_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Axes_INTERFACE_DEFINED__ */ + + +#ifndef __Positions_INTERFACE_DEFINED__ +#define __Positions_INTERFACE_DEFINED__ + +/* interface Positions */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Positions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2281375A-8BD3-11D0-B4EF-00A0C9138CA4") + Positions : public MD_Collection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Position **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct PositionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Positions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Positions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Positions * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Positions * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Positions * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Positions * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Positions * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(MD_Collection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Positions * This); + + DECLSPEC_XFGVIRT(MD_Collection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Positions * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(MD_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Positions * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(Positions, get_Item) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Positions * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Position **ppvObject); + + END_INTERFACE + } PositionsVtbl; + + interface Positions + { + CONST_VTBL struct PositionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Positions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Positions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Positions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Positions_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Positions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Positions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Positions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Positions_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define Positions__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) + +#define Positions_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) + + +#define Positions_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Positions_INTERFACE_DEFINED__ */ + + +#ifndef __Hierarchies_INTERFACE_DEFINED__ +#define __Hierarchies_INTERFACE_DEFINED__ + +/* interface Hierarchies */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Hierarchies; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2281375B-8BD3-11D0-B4EF-00A0C9138CA4") + Hierarchies : public MD_Collection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Hierarchy **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct HierarchiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Hierarchies * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Hierarchies * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Hierarchies * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Hierarchies * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Hierarchies * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Hierarchies * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Hierarchies * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(MD_Collection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Hierarchies * This); + + DECLSPEC_XFGVIRT(MD_Collection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Hierarchies * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(MD_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Hierarchies * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(Hierarchies, get_Item) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Hierarchies * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Hierarchy **ppvObject); + + END_INTERFACE + } HierarchiesVtbl; + + interface Hierarchies + { + CONST_VTBL struct HierarchiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Hierarchies_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Hierarchies_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Hierarchies_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Hierarchies_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Hierarchies_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Hierarchies_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Hierarchies_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Hierarchies_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define Hierarchies__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) + +#define Hierarchies_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) + + +#define Hierarchies_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Hierarchies_INTERFACE_DEFINED__ */ + + +#ifndef __Dimensions_INTERFACE_DEFINED__ +#define __Dimensions_INTERFACE_DEFINED__ + +/* interface Dimensions */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Dimensions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2281375C-8BD3-11D0-B4EF-00A0C9138CA4") + Dimensions : public MD_Collection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Dimension **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct DimensionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Dimensions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Dimensions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Dimensions * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Dimensions * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Dimensions * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Dimensions * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Dimensions * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(MD_Collection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in Dimensions * This); + + DECLSPEC_XFGVIRT(MD_Collection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in Dimensions * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(MD_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in Dimensions * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(Dimensions, get_Item) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in Dimensions * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt Dimension **ppvObject); + + END_INTERFACE + } DimensionsVtbl; + + interface Dimensions + { + CONST_VTBL struct DimensionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Dimensions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Dimensions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Dimensions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Dimensions_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Dimensions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Dimensions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Dimensions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Dimensions_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define Dimensions__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) + +#define Dimensions_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) + + +#define Dimensions_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Dimensions_INTERFACE_DEFINED__ */ + + +#ifndef __CubeDefs_INTERFACE_DEFINED__ +#define __CubeDefs_INTERFACE_DEFINED__ + +/* interface CubeDefs */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_CubeDefs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2281375D-8BD3-11D0-B4EF-00A0C9138CA4") + CubeDefs : public MD_Collection + { + public: + virtual /* [helpcontext][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt CubeDef **ppvObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct CubeDefsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in CubeDefs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in CubeDefs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in CubeDefs * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in CubeDefs * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in CubeDefs * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in CubeDefs * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + CubeDefs * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(MD_Collection, Refresh) + /* [helpcontext] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in CubeDefs * This); + + DECLSPEC_XFGVIRT(MD_Collection, _NewEnum) + /* [id][restricted] */ HRESULT ( STDMETHODCALLTYPE *_NewEnum )( + __RPC__in CubeDefs * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppvObject); + + DECLSPEC_XFGVIRT(MD_Collection, get_Count) + /* [helpcontext][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in CubeDefs * This, + /* [retval][out] */ __RPC__out long *c); + + DECLSPEC_XFGVIRT(CubeDefs, get_Item) + /* [helpcontext][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in CubeDefs * This, + /* [in] */ VARIANT Index, + /* [retval][out] */ __RPC__deref_out_opt CubeDef **ppvObject); + + END_INTERFACE + } CubeDefsVtbl; + + interface CubeDefs + { + CONST_VTBL struct CubeDefsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define CubeDefs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define CubeDefs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define CubeDefs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define CubeDefs_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define CubeDefs_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define CubeDefs_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define CubeDefs_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define CubeDefs_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#define CubeDefs__NewEnum(This,ppvObject) \ + ( (This)->lpVtbl -> _NewEnum(This,ppvObject) ) + +#define CubeDefs_get_Count(This,c) \ + ( (This)->lpVtbl -> get_Count(This,c) ) + + +#define CubeDefs_get_Item(This,Index,ppvObject) \ + ( (This)->lpVtbl -> get_Item(This,Index,ppvObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __CubeDefs_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_Catalog; + +#ifdef __cplusplus + +class DECLSPEC_UUID("228136B0-8BD3-11D0-B4EF-00A0C9138CA4") +Catalog; +#endif + +EXTERN_C const CLSID CLSID_Cellset; + +#ifdef __cplusplus + +class DECLSPEC_UUID("228136B8-8BD3-11D0-B4EF-00A0C9138CA4") +Cellset; +#endif +#endif /* __ADOMD_LIBRARY_DEFINED__ */ + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/advpub.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/advpub.h new file mode 100644 index 0000000000000000000000000000000000000000..cfe3e2f3f6f08932b18610d446f04b861ec198ee --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/advpub.h @@ -0,0 +1,1025 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: advpub.h +// +// Description: +// Interfaces implemented by advpack.dll. +// +//---------------------------------------------------------------------------- + +//@[contract("advpub"), comment("MVI_tracked - https://osgwiki.com/wiki/Microsoft_Virus_Initiative")]; + +#ifndef _ADVPUB_H_ +#define _ADVPUB_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: RunSetupCommand +// +// SYNOPSIS: Execute an install section in an INF file, or execute a +// program. Advanced INF files are supported. +// +// RETURN CODES: +// +// S_OK Everything OK, no reboot needed. +// No EXE to wait for. +// S_ASYNCHRONOUS Please wait on phEXE. +// ERROR_SUCCESS_REBOOT_REQUIRED Reboot required. +// E_INVALIDARG NULL specified in szCmdName or szDir +// HRESULT_FROM_WIN32(ERROR_OLD_WIN_VERSION) INF's not supported on this OS version +// E_UNEXPECTED Catastrophic failure(should never happen). +// HRESULT_FROM_WIN32(GetLastError()) Anything else +///////////////////////////////////////////////////////////////////////////// + +#ifndef S_ASYNCHRONOUS +#define S_ASYNCHRONOUS _HRESULT_TYPEDEF_(0x401e8L) +#endif + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI RunSetupCommandA(HWND hWnd, LPCSTR szCmdName, LPCSTR szInfSection, LPCSTR szDir, LPCSTR lpszTitle, HANDLE* phEXE, DWORD dwFlags, LPVOID pvReserved); +HRESULT WINAPI RunSetupCommandW(HWND hWnd, LPCWSTR szCmdName, LPCWSTR szInfSection, LPCWSTR szDir, LPCWSTR lpszTitle, HANDLE* phEXE, DWORD dwFlags, LPVOID pvReserved); +#ifdef UNICODE +#define RunSetupCommand RunSetupCommandW +#else +#define RunSetupCommand RunSetupCommandA +#endif // !UNICODE +#else +HRESULT WINAPI RunSetupCommand(HWND hWnd, LPCSTR szCmdName, LPCSTR szInfSection, LPCSTR szDir, LPCSTR lpszTitle, HANDLE* phEXE, DWORD dwFlags, LPVOID pvReserved); +#endif // (_WIN32_IE >= 0x0605) + +// FLAGS: +#define RSC_FLAG_INF 1 // exxcute INF install +#define RSC_FLAG_SKIPDISKSPACECHECK 2 // Currently does nothing +#define RSC_FLAG_QUIET 4 // quiet mode, no UI +#define RSC_FLAG_NGCONV 8 // don't run groupConv +#define RSC_FLAG_UPDHLPDLLS 16 // force to self-updating on user's system +#define RSC_FLAG_DELAYREGISTEROCX 512 // force delay of ocx registration +#define RSC_FLAG_SETUPAPI 1024 // use setupapi.dll +// don't add new RSC_FLAG_XXX flags! add LaunchINFSectionEx() flags instead. + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: NeedRebootInit +// +// SYNOPSIS: Initializes state for reboot checking. Call this function +// before calling RunSetupCommand. +// RETURNS: value required to be passed to NeedReboot() +///////////////////////////////////////////////////////////////////////////// + +DWORD WINAPI NeedRebootInit(); + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: NeedReboot +// +// SYNOPSIS: Compares stored state with current state to determine if a +// reboot is required. +// dwRebootCheck the return value from NeedRebootInit +// +// RETURNS: +// TRUE if a reboot is required; +// FALSE otherwise. +///////////////////////////////////////////////////////////////////////////// + +BOOL WINAPI NeedReboot(DWORD dwRebootCheck); + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: RebootCheckOnInstall +// +// SYNOPSIS: Check reboot condition if the given INF section is installed. +// hwnd windows handle +// pszINF INF filename with fully qualified path +// pszSec INF section. NULL is translated as DefaultInstall or DefaultInstall.NT. +// dwReserved Not used. +// RETURN: +// S_OK Reboot needed if INF section is installed. +// S_FALSE Reboot is not needed if INF section is installed. +// HRESULT of Win 32 errors +// +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI RebootCheckOnInstallA(HWND hwnd, LPCSTR pszINF, LPCSTR pszSec, DWORD dwReserved); +HRESULT WINAPI RebootCheckOnInstallW(HWND hwnd, LPCWSTR pszINF, LPCWSTR pszSec, DWORD dwReserved); +#ifdef UNICODE +#define RebootCheckOnInstall RebootCheckOnInstallW +#else +#define RebootCheckOnInstall RebootCheckOnInstallA +#endif // !UNICODE +#else +HRESULT WINAPI RebootCheckOnInstall(HWND hwnd, LPCSTR pszINF, LPCSTR pszSec, DWORD dwReserved); +#endif // (_WIN32_IE >= 0x0605) + +////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: TranslateInfString +// +// SYNOPSIS: Translates a key value in an INF file, using advanced INF +// syntax. +// RETURN CODES: +// S_OK Everything OK. +// HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) +// The buffer size is too small to hold the +// translated string. Required size is in *pdwRequiredSize. +// E_INVALIDARG NULL specified in pszInfFilename, pszTranslateSection, +// pszTranslateKey, pdwRequiredSize. +// HRESULT_FROM_WIN32(ERROR_OLD_WIN_VERSION) +// OS not supported. +// E_UNEXPECTED Catastrophic failure -- should never happen. +// HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER) +// The section or key specified does not exist. +// HRESULT_FROM_WIN32(GetLastError()) Anything else +// +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI TranslateInfStringA( + _In_ LPCSTR pszInfFilename, + _In_ LPCSTR pszInstallSection, + _In_ LPCSTR pszTranslateSection, + _In_ LPCSTR pszTranslateKey, + _Out_writes_opt_(cchBuffer) LPSTR pszBuffer, + _In_ DWORD cchBuffer, + _Out_ PDWORD pdwRequiredSize, + _Reserved_ PVOID pvReserved + ); +HRESULT WINAPI TranslateInfStringW( + _In_ LPCWSTR pszInfFilename, + _In_ LPCWSTR pszInstallSection, + _In_ LPCWSTR pszTranslateSection, + _In_ LPCWSTR pszTranslateKey, + _Out_writes_opt_(cchBuffer) LPWSTR pszBuffer, + _In_ DWORD cchBuffer, + _Out_ PDWORD pdwRequiredSize, + _Reserved_ PVOID pvReserved + ); +#ifdef UNICODE +#define TranslateInfString TranslateInfStringW +#else +#define TranslateInfString TranslateInfStringA +#endif // !UNICODE +#else +HRESULT WINAPI TranslateInfString( + _In_ LPCSTR pszInfFilename, + _In_ LPCSTR pszInstallSection, + _In_ LPCSTR pszTranslateSection, + _In_ LPCSTR pszTranslateKey, + _Out_writes_opt_(cchBuffer) LPSTR pszBuffer, + _In_ DWORD cchBuffer, + _Out_ PDWORD pdwRequiredSize, + _Reserved_ PVOID pvReserved + ); +#endif // (_WIN32_IE >= 0x0605) + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: RegInstall +// +// SYNOPSIS: Loads an INF from a string resource, adds some entries to the +// INF string substitution table, and executes the INF. +// RETURNS: +// S_OK success. +// E_FAIL failure, +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +typedef struct _StrEntryA { + LPSTR pszName; // String to substitute + LPSTR pszValue; // Replacement string or string resource +} STRENTRYA, *LPSTRENTRYA; +typedef struct _StrEntryW { + LPWSTR pszName; // String to substitute + LPWSTR pszValue; // Replacement string or string resource +} STRENTRYW, *LPSTRENTRYW; +#ifdef UNICODE +typedef STRENTRYW STRENTRY; +typedef LPSTRENTRYW LPSTRENTRY; +#else +typedef STRENTRYA STRENTRY; +typedef LPSTRENTRYA LPSTRENTRY; +#endif // UNICODE + +typedef struct _StrTableA { + DWORD cEntries; // Number of entries in the table + STRENTRYA* pse; // Array of entries +} STRTABLEA, *LPSTRTABLEA; +typedef struct _StrTableW { + DWORD cEntries; // Number of entries in the table + STRENTRYW* pse; // Array of entries +} STRTABLEW, *LPSTRTABLEW; +#ifdef UNICODE +typedef STRTABLEW STRTABLE; +typedef LPSTRTABLEW LPSTRTABLE; +#else +typedef STRTABLEA STRTABLE; +typedef LPSTRTABLEA LPSTRTABLE; +#endif // UNICODE + +typedef const STRTABLEA CSTRTABLEA; +typedef const STRTABLEW CSTRTABLEW; +#ifdef UNICODE +typedef STRTABLEW STRTABLE; +typedef CSTRTABLEW CSTRTABLE; +#else +typedef STRTABLEA STRTABLE; +typedef CSTRTABLEA CSTRTABLE; +#endif // UNICODE +typedef const STRTABLEA *LPCSTRTABLEA; +typedef const STRTABLEW *LPCSTRTABLEW; +#ifdef UNICODE +typedef STRTABLEW STRTABLE; +typedef LPCSTRTABLEW LPCSTRTABLE; +#else +typedef STRTABLEA STRTABLE; +typedef LPCSTRTABLEA LPCSTRTABLE; +#endif // UNICODE + +HRESULT WINAPI RegInstallA(HMODULE hmod, LPCSTR pszSection, const STRTABLEA* pstTable); +HRESULT WINAPI RegInstallW(HMODULE hmod, LPCWSTR pszSection, const STRTABLEW* pstTable); +#ifdef UNICODE +#define RegInstall RegInstallW +#else +#define RegInstall RegInstallA +#endif // !UNICODE + +#else + +typedef struct _StrEntryA { + LPSTR pszName; // String to substitute + LPSTR pszValue; // Replacement string or string resource +} STRENTRYA, *LPSTRENTRYA; + +typedef struct _StrTableA { + DWORD cEntries; // Number of entries in the table + STRENTRYA* pse; // Array of entries +} STRTABLEA, *LPSTRTABLEA; + +typedef STRENTRYA STRENTRY; +typedef LPSTRENTRYA LPSTRENTRY; + +typedef STRTABLEA STRTABLE; +typedef const STRTABLEA CSTRTABLE; +typedef const STRTABLEA *LPCSTRTABLEA; + +HRESULT WINAPI RegInstall(HMODULE hmod, LPCSTR pszSection, const STRTABLEA* pstTable); +#endif // (_WIN32_IE >= 0x0605) + +// +// For people whos minds are too addled to use DELAYLOAD (or UNICODE for that matter) +// +#define REGINSTALL REGINSTALLA +typedef HRESULT (WINAPI *REGINSTALLA)( + HMODULE hm, // Module that contains REGINST resource + LPCSTR pszSection, // Section of INF to execute + LPCSTRTABLEA pstTable // Additional string substitutions +); + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: LaunchINFSectionEx +// +// SYNOPSIS: Install INF section with BACKUP/ROLLBACK capabilities. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI LaunchINFSectionExA( + _In_opt_ HWND hwnd, + _In_opt_ HINSTANCE hInstance, + _In_ LPSTR pszParms, + _In_ INT nShow + ); +HRESULT WINAPI LaunchINFSectionExW( + _In_opt_ HWND hwnd, + _In_opt_ HINSTANCE hInstance, + _In_ LPWSTR pszParms, + _In_ INT nShow + ); +#ifdef UNICODE +#define LaunchINFSectionEx LaunchINFSectionExW +#else +#define LaunchINFSectionEx LaunchINFSectionExA +#endif // !UNICODE +#else +HRESULT WINAPI LaunchINFSectionEx( + _In_opt_ HWND hwnd, + _In_opt_ HINSTANCE hInstance, + _In_ LPSTR pszParms, + _In_ INT nShow + ); +#endif // (_WIN32_IE >= 0x0605) + + +// FLAGS: - need to stay this way is for compatibility. Don't change them (but ok to add new ones). +// +#define ALINF_QUIET 4 // quiet mode, no UI +#define ALINF_NGCONV 8 // don't run groupConv +#define ALINF_UPDHLPDLLS 16 // force to self-updating on user's system +#define ALINF_BKINSTALL 32 // backup data before install +#define ALINF_ROLLBACK 64 // rollback to previous state +#define ALINF_CHECKBKDATA 128 // validate the backup data +#define ALINF_ROLLBKDOALL 256 // bypass building file list +#define ALINF_DELAYREGISTEROCX 512 // force delay of ocx registration + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: ExecuteCab +// +// SYNOPSIS: Extract the an INF from the CAB file, and do INF install on it. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +typedef struct _CabInfoA { + LPSTR pszCab; + LPSTR pszInf; + LPSTR pszSection; + CHAR szSrcPath[MAX_PATH]; + DWORD dwFlags; +} CABINFOA, *PCABINFOA; +typedef struct _CabInfoW { + LPWSTR pszCab; + LPWSTR pszInf; + LPWSTR pszSection; + WCHAR szSrcPath[MAX_PATH]; + DWORD dwFlags; +} CABINFOW, *PCABINFOW; +#ifdef UNICODE +typedef CABINFOW CABINFO; +typedef PCABINFOW PCABINFO; +#else +typedef CABINFOA CABINFO; +typedef PCABINFOA PCABINFO; +#endif // UNICODE + +HRESULT WINAPI ExecuteCabA(HWND hwnd, CABINFOA* pCab, LPVOID pReserved); +HRESULT WINAPI ExecuteCabW(HWND hwnd, CABINFOW* pCab, LPVOID pReserved); +#ifdef UNICODE +#define ExecuteCab ExecuteCabW +#else +#define ExecuteCab ExecuteCabA +#endif // !UNICODE + +#else + +typedef struct _CabInfoA { + LPSTR pszCab; + LPSTR pszInf; + LPSTR pszSection; + CHAR szSrcPath[MAX_PATH]; + DWORD dwFlags; +} CABINFOA, *PCABINFOA; + +typedef CABINFOA CABINFO; +typedef PCABINFOA PCABINFO; + +HRESULT WINAPI ExecuteCab(HWND hwnd, CABINFOA* pCab, LPVOID pReserved); +#endif // (_WIN32_IE >= 0x0605) + + +// flag as LaunchINFSectionEx's flag defines + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: AdvInstallFile +// +// SYNOPSIS: To copy a file from the source to a destination +// Basicly a wrapper around the setupapi file copy engine +///////////////////////////////////////////////////////////////////////////// + +// Flags which can be passed to AdvInstallFile +// +// Here is a copy of the flags defined in setupapi.h for reference below. +// #define COPYFLG_WARN_IF_SKIP 0x00000001 // warn if user tries to skip file +// #define COPYFLG_NOSKIP 0x00000002 // disallow skipping this file +// #define COPYFLG_NOVERSIONCHECK 0x00000004 // ignore versions and overwrite target +// #define COPYFLG_FORCE_FILE_IN_USE 0x00000008 // force file-in-use behavior +// #define COPYFLG_NO_OVERWRITE 0x00000010 // do not copy if file exists on target +// #define COPYFLG_NO_VERSION_DIALOG 0x00000020 // do not copy if target is newer +// #define COPYFLG_REPLACEONLY 0x00000400 // copy only if file exists on target + +#define AIF_WARNIFSKIP 0x00000001 // system critical file: warn if user tries to skip +#define AIF_NOSKIP 0x00000002 // Skip is disallowed for this file +#define AIF_NOVERSIONCHECK 0x00000004 // don't check the version number of the file overwrite +#define AIF_FORCE_FILE_IN_USE 0x00000008 // force file-in-use behavior +#define AIF_NOOVERWRITE 0x00000010 // copy only if target doesn't exist + // if AIF_QUIET, the file is not copied and + // the user is not notified +#define AIF_NO_VERSION_DIALOG 0x00000020 // do not copy if target is newer +#define AIF_REPLACEONLY 0x00000400 // copy only if target file already present + +// Flags only known to AdvInstallFile +#define AIF_NOLANGUAGECHECK 0x10000000 // don't check the language of the file + // if the flags is NOT specified and AIF_QUIET + // the file is not copied and the user is not notified +#define AIF_QUIET 0x20000000 // No UI to the user + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI AdvInstallFileA(HWND hwnd, LPCSTR lpszSourceDir, LPCSTR lpszSourceFile, LPCSTR lpszDestDir, LPCSTR lpszDestFile, DWORD dwFlags, DWORD dwReserved); +HRESULT WINAPI AdvInstallFileW(HWND hwnd, LPCWSTR lpszSourceDir, LPCWSTR lpszSourceFile, LPCWSTR lpszDestDir, LPCWSTR lpszDestFile, DWORD dwFlags, DWORD dwReserved); +#ifdef UNICODE +#define AdvInstallFile AdvInstallFileW +#else +#define AdvInstallFile AdvInstallFileA +#endif // !UNICODE +#else +HRESULT WINAPI AdvInstallFile(HWND hwnd, LPCSTR lpszSourceDir, LPCSTR lpszSourceFile, LPCSTR lpszDestDir, LPCSTR lpszDestFile, DWORD dwFlags, DWORD dwReserved); +#endif // (_WIN32_IE >= 0x0605) + +////////////////////////////////////////////////////////////////// +// the following flags are for backwards compatiable. No API user +// should reference them directly now. +// +#define IE4_RESTORE 0x00000001 // if this bit is off, save the registries. +#define IE4_BACKNEW 0x00000002 // backup all files which are not backed up before +#define IE4_NODELETENEW 0x00000004 // don't delete files we don't backed up before +#define IE4_NOMESSAGES 0x00000008 // No message display in any events. +#define IE4_NOPROGRESS 0x00000010 // this bit on: No file backup progressbar +#define IE4_NOENUMKEY 0x00000020 // this bit on: Don't Enum sub key even there is no given valuename +#define IE4_NO_CRC_MAPPING 0x00000040 // Normally you should not turn on this bit, advpack creates + // internal mapping for all the entries backed up. +#define IE4_REGSECTION 0x00000080 // INF AddReg/DelReg section +#define IE4_FRDOALL 0x00000100 // FileRestore DoAll +#define IE4_UPDREFCNT 0x00000200 // Update the ref count in .ini backup file list +#define IE4_USEREFCNT 0x00000400 // use ref count to determin if the backup file should be put back +#define IE4_EXTRAINCREFCNT 0x00000800 // if increase the ref cnt if it has been updated before + +#define IE4_REMOVREGBKDATA 0x00001000 // This bit should be used with restore bit + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: RegSaveRestore +// +// SYNOPSIS: Save or Restore the given register value or given INF reg section. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI RegSaveRestoreA(HWND hWnd, LPCSTR pszTitleString, HKEY hkBckupKey, LPCSTR pcszRootKey, LPCSTR pcszSubKey, LPCSTR pcszValueName, DWORD dwFlags); +HRESULT WINAPI RegSaveRestoreW(HWND hWnd, LPCWSTR pszTitleString, HKEY hkBckupKey, LPCWSTR pcszRootKey, LPCWSTR pcszSubKey, LPCWSTR pcszValueName, DWORD dwFlags); +#ifdef UNICODE +#define RegSaveRestore RegSaveRestoreW +#else +#define RegSaveRestore RegSaveRestoreA +#endif // !UNICODE +#else +HRESULT WINAPI RegSaveRestore(HWND hWnd, LPCSTR pszTitleString, HKEY hkBckupKey, LPCSTR pcszRootKey, LPCSTR pcszSubKey, LPCSTR pcszValueName, DWORD dwFlags); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: RegSaveRestoreOnINF +// +// SYNOPSIS: Save or Restore the given INF Reg Section. At restore, if INF and Section pointers are NULL, +// restore all from the given backup key handle. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI RegSaveRestoreOnINFA(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF, LPCSTR pszSection, HKEY hHKLMBackKey, HKEY hHKCUBackKey, DWORD dwFlags); +HRESULT WINAPI RegSaveRestoreOnINFW(HWND hWnd, LPCWSTR pszTitle, LPCWSTR pszINF, LPCWSTR pszSection, HKEY hHKLMBackKey, HKEY hHKCUBackKey, DWORD dwFlags); +#ifdef UNICODE +#define RegSaveRestoreOnINF RegSaveRestoreOnINFW +#else +#define RegSaveRestoreOnINF RegSaveRestoreOnINFA +#endif // !UNICODE +#else +HRESULT WINAPI RegSaveRestoreOnINF(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF, LPCSTR pszSection, HKEY hHKLMBackKey, HKEY hHKCUBackKey, DWORD dwFlags); +#endif // (_WIN32_IE >= 0x0605) + + +// FLAGS: +#define ARSR_RESTORE IE4_RESTORE // if this bit is off, means Save. Otherwise, restore. +#define ARSR_NOMESSAGES IE4_NOMESSAGES // Quiet no messages in any event. +#define ARSR_REGSECTION IE4_REGSECTION // if this bit is off, the given section is GenInstall Section +#define ARSR_REMOVREGBKDATA IE4_REMOVREGBKDATA // if both this bit and restore bit on, remove the backup reg data without restore it + +// Turn on the logging by add these RegVale in HKLM\software\microsoft\IE4 +#define REG_SAVE_LOG_KEY TEXT("RegSaveLogFile") +#define REG_RESTORE_LOG_KEY TEXT("RegRestoreLogFile") + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: RegRestoreAll +// +// SYNOPSIS: +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI RegRestoreAllA( + _In_opt_ HWND hWnd, + _In_opt_ LPCSTR pszTitleString, + _In_ HKEY hkBckupKey + ); +HRESULT WINAPI RegRestoreAllW( + _In_opt_ HWND hWnd, + _In_opt_ LPCWSTR pszTitleString, + _In_ HKEY hkBckupKey + ); +#ifdef UNICODE +#define RegRestoreAll RegRestoreAllW +#else +#define RegRestoreAll RegRestoreAllA +#endif // !UNICODE +#else +HRESULT WINAPI RegRestoreAll( + _In_opt_ HWND hWnd, + _In_opt_ LPCSTR pszTitleString, + _In_ HKEY hkBckupKey + ); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: FileSaveRestore +// +// SYNOPSIS: Save or Restore the files on the list lpFileList. +// If lpFileList is NULL at restore time, the function will restore +// all based on INI index file. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI FileSaveRestoreA( + HWND hDlg, + _In_opt_ LPSTR lpFileList, + LPCSTR lpDir, + LPCSTR lpBaseName, + DWORD dwFlags); +HRESULT WINAPI FileSaveRestoreW( + HWND hDlg, + _In_opt_ LPWSTR lpFileList, + LPCWSTR lpDir, + LPCWSTR lpBaseName, + DWORD dwFlags); +#ifdef UNICODE +#define FileSaveRestore FileSaveRestoreW +#else +#define FileSaveRestore FileSaveRestoreA +#endif // !UNICODE +#else +HRESULT WINAPI FileSaveRestore( + HWND hDlg, + _In_opt_ LPSTR lpFileList, + LPCSTR lpDir, + LPCSTR lpBaseName, + DWORD dwFlags); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: FileSaveRestoreOnINF +// +// SYNOPSIS: +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI FileSaveRestoreOnINFA(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF, LPCSTR pszSection, LPCSTR pszBackupDir, LPCSTR pszBaseBackupFile, DWORD dwFlags); +HRESULT WINAPI FileSaveRestoreOnINFW(HWND hWnd, LPCWSTR pszTitle, LPCWSTR pszINF, LPCWSTR pszSection, LPCWSTR pszBackupDir, LPCWSTR pszBaseBackupFile, DWORD dwFlags); +#ifdef UNICODE +#define FileSaveRestoreOnINF FileSaveRestoreOnINFW +#else +#define FileSaveRestoreOnINF FileSaveRestoreOnINFA +#endif // !UNICODE +#else +HRESULT WINAPI FileSaveRestoreOnINF(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF, LPCSTR pszSection, LPCSTR pszBackupDir, LPCSTR pszBaseBackupFile, DWORD dwFlags); +#endif // (_WIN32_IE >= 0x0605) + +// FLAGS: +#define AFSR_RESTORE IE4_RESTORE // if this bit is off, save the file. +#define AFSR_BACKNEW IE4_BACKNEW // backup all files which are not backed up before +#define AFSR_NODELETENEW IE4_NODELETENEW // don't delete files we don't backed up before +#define AFSR_NOMESSAGES IE4_NOMESSAGES // No message display in any events. +#define AFSR_NOPROGRESS IE4_NOPROGRESS // this bit on: No file backup progressbar +#define AFSR_UPDREFCNT IE4_UPDREFCNT // update the reference count for the files +#define AFSR_USEREFCNT IE4_USEREFCNT // use the ref count to guide the restore file +#define AFSR_EXTRAINCREFCNT IE4_EXTRAINCREFCNT + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: AddDelBackupEntry +// +// SYNOPSIS: If AADBE_ADD_ENTRY is specified, mark the file in the File list as not existing +// during file save in the INI file. This can be used to mark additional files that +// they did not exist during backup to avoid having them backup the next time the +// FileSaveRestore is called to save files. +// If AADBE_DEL_ENTRY is specified, delete the entry from the INI. This mechanism can +// be used to leave files permanently on the system. +// +// RETURNS: +// S_OK success +// E_FAIL failure +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI AddDelBackupEntryA(_In_opt_ LPCSTR lpcszFileList, _In_opt_ LPCSTR lpcszBackupDir, _In_opt_ LPCSTR lpcszBaseName, DWORD dwFlags); +HRESULT WINAPI AddDelBackupEntryW(_In_opt_ LPCWSTR lpcszFileList, _In_opt_ LPCWSTR lpcszBackupDir, _In_opt_ LPCWSTR lpcszBaseName, DWORD dwFlags); +#ifdef UNICODE +#define AddDelBackupEntry AddDelBackupEntryW +#else +#define AddDelBackupEntry AddDelBackupEntryA +#endif // !UNICODE +#else +HRESULT WINAPI AddDelBackupEntry(_In_opt_ LPCSTR lpcszFileList, _In_opt_ LPCSTR lpcszBackupDir, _In_opt_ LPCSTR lpcszBaseName, DWORD dwFlags); +#endif // (_WIN32_IE >= 0x0605) + +#define AADBE_ADD_ENTRY 0x01 // add entries to the INI file +#define AADBE_DEL_ENTRY 0x02 // delete entries from the INI file + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: FileSaveMarkNotExist +// +// SYNOPSIS: Mark the file in the File list as not existing during file save in the INI file +// This can be used to mark additional files that they did not exist during backup +// to avoid having them backup the next time the FileSaveRestore is called to save +// files +// +// RETURNS: +// S_OK success +// E_FAIL failure +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI FileSaveMarkNotExistA( + _In_opt_ LPCSTR lpFileList, + _In_opt_ LPCSTR lpDir, + _In_opt_ LPCSTR lpBaseName); +HRESULT WINAPI FileSaveMarkNotExistW( + _In_opt_ LPCWSTR lpFileList, + _In_opt_ LPCWSTR lpDir, + _In_opt_ LPCWSTR lpBaseName); +#ifdef UNICODE +#define FileSaveMarkNotExist FileSaveMarkNotExistW +#else +#define FileSaveMarkNotExist FileSaveMarkNotExistA +#endif // !UNICODE +#else +HRESULT WINAPI FileSaveMarkNotExist( + _In_opt_ LPCSTR lpFileList, + _In_opt_ LPCSTR lpDir, + _In_opt_ LPCSTR lpBaseName); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: GetVersionFromFile +// +// SYNOPSIS: Get the given file's version and lang information. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI GetVersionFromFileA(LPCSTR lpszFilename, _Out_ LPDWORD pdwMSVer, _Out_ LPDWORD pdwLSVer, BOOL bVersion); +HRESULT WINAPI GetVersionFromFileW(LPCWSTR lpszFilename, _Out_ LPDWORD pdwMSVer, _Out_ LPDWORD pdwLSVer, BOOL bVersion); +#ifdef UNICODE +#define GetVersionFromFile GetVersionFromFileW +#else +#define GetVersionFromFile GetVersionFromFileA +#endif // !UNICODE +#else +HRESULT WINAPI GetVersionFromFile(LPCSTR lpszFilename, _Out_ LPDWORD pdwMSVer, _Out_ LPDWORD pdwLSVer, BOOL bVersion); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: GetVersionFromFileEx +// +// SYNOPSIS: Get the given disk file's version and lang information. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI GetVersionFromFileExA(LPCSTR lpszFilename, _Out_ LPDWORD pdwMSVer, _Out_ LPDWORD pdwLSVer, BOOL bVersion); +HRESULT WINAPI GetVersionFromFileExW(LPCWSTR lpszFilename, _Out_ LPDWORD pdwMSVer, _Out_ LPDWORD pdwLSVer, BOOL bVersion); +#ifdef UNICODE +#define GetVersionFromFileEx GetVersionFromFileExW +#else +#define GetVersionFromFileEx GetVersionFromFileExA +#endif // !UNICODE +#else +HRESULT WINAPI GetVersionFromFileEx(LPCSTR lpszFilename, _Out_ LPDWORD pdwMSVer, _Out_ LPDWORD pdwLSVer, BOOL bVersion); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: IsNTAdmin +// +// SYNOPSIS: On NT, check if user has admin right. +// +// RETURNS: TURE has admin right; FLSE no admin right. +///////////////////////////////////////////////////////////////////////////// + +BOOL WINAPI IsNTAdmin(DWORD dwReserved, DWORD *lpdwReserved); + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: DelNode +// +// SYNOPSIS: Deletes a file or directory +// +// RETURNS: +// S_OK success +// E_FAIL failure +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI DelNodeA(LPCSTR pszFileOrDirName, DWORD dwFlags); +HRESULT WINAPI DelNodeW(LPCWSTR pszFileOrDirName, DWORD dwFlags); +#ifdef UNICODE +#define DelNode DelNodeW +#else +#define DelNode DelNodeA +#endif // !UNICODE +#else +HRESULT WINAPI DelNode(LPCSTR pszFileOrDirName, DWORD dwFlags); +#endif // (_WIN32_IE >= 0x0605) + +// FLAGS: +#define ADN_DEL_IF_EMPTY 0x00000001 // delete the directory only if it's empty +#define ADN_DONT_DEL_SUBDIRS 0x00000002 // don't delete any sub-dirs; delete only the files +#define ADN_DONT_DEL_DIR 0x00000004 // don't delete the dir itself +#define ADN_DEL_UNC_PATHS 0x00000008 // delete UNC paths + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: DelNodeRunDLL32 +// +// SYNOPSIS: Deletes a file or directory; the parameters to this API are of +// WinMain type +// +// RETURNS: +// S_OK success +// E_FAIL failure +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI DelNodeRunDLL32A(HWND hwnd, HINSTANCE hInstance, _Inout_ LPSTR pszParms, INT nShow); +HRESULT WINAPI DelNodeRunDLL32W(HWND hwnd, HINSTANCE hInstance, _Inout_ LPWSTR pszParms, INT nShow); +#ifdef UNICODE +#define DelNodeRunDLL32 DelNodeRunDLL32W +#else +#define DelNodeRunDLL32 DelNodeRunDLL32A +#endif // !UNICODE +#else +HRESULT WINAPI DelNodeRunDLL32(HWND hwnd, HINSTANCE hInstance, _Inout_ LPSTR pszParms, INT nShow); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: OpenINFEngine, TranslateINFStringEx, CloseINFEngine +// +// SYNOPSIS: Three APIs give the caller the option to be more efficient when need +// Advpack to translate INF file in a continue fashion. +// +// RETURNS: +// S_OK success +// E_FAIL failure +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI OpenINFEngineA(LPCSTR pszInfFilename, LPCSTR pszInstallSection, DWORD dwFlags, HINF* phInf, PVOID pvReserved); +HRESULT WINAPI OpenINFEngineW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSection, DWORD dwFlags, HINF* phInf, PVOID pvReserved); +#ifdef UNICODE +#define OpenINFEngine OpenINFEngineW +#else +#define OpenINFEngine OpenINFEngineA +#endif // !UNICODE +#else +HRESULT WINAPI OpenINFEngine(LPCSTR pszInfFilename, LPCSTR pszInstallSection, DWORD dwFlags, HINF* phInf, PVOID pvReserved); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: OpenINFEngine, TranslateINFStringEx, CloseINFEngine +// +// SYNOPSIS: +// +// RETURNS: +// S_OK success +// E_FAIL failure +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI TranslateInfStringExA(HINF hInf, LPCSTR pszInfFilename, LPCSTR pszTranslateSection, LPCSTR pszTranslateKey, _Inout_updates_to_(dwBufferSize, *pdwRequiredSize) LPSTR pszBuffer, DWORD dwBufferSize, _Out_ PDWORD pdwRequiredSize, _Reserved_ PVOID pvReserved); +HRESULT WINAPI TranslateInfStringExW(HINF hInf, LPCWSTR pszInfFilename, LPCWSTR pszTranslateSection, LPCWSTR pszTranslateKey, _Inout_updates_to_(dwBufferSize, *pdwRequiredSize) LPWSTR pszBuffer, DWORD dwBufferSize, _Out_ PDWORD pdwRequiredSize, _Reserved_ PVOID pvReserved); +#ifdef UNICODE +#define TranslateInfStringEx TranslateInfStringExW +#else +#define TranslateInfStringEx TranslateInfStringExA +#endif // !UNICODE +#else +HRESULT WINAPI TranslateInfStringEx(HINF hInf, LPCSTR pszInfFilename, LPCSTR pszTranslateSection, LPCSTR pszTranslateKey, _Inout_updates_to_(dwBufferSize, *pdwRequiredSize) LPSTR pszBuffer, DWORD dwBufferSize, PDWORD pdwRequiredSize, PVOID pvReserved); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: OpenINFEngine, TranslateINFStringEx, CloseINFEngine +// +// SYNOPSIS: +// +// RETURNS: +// S_OK success +// E_FAIL failure +///////////////////////////////////////////////////////////////////////////// + +HRESULT WINAPI CloseINFEngine(HINF hInf); + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: OpenINFEngine, TranslateINFStringEx, CloseINFEngine +// +// SYNOPSIS: +// +// RETURNS: +// S_OK success +// E_FAIL failure +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI ExtractFilesA(LPCSTR pszCabName, LPCSTR pszExpandDir, DWORD dwFlags, LPCSTR pszFileList, LPVOID lpReserved, DWORD dwReserved); +HRESULT WINAPI ExtractFilesW(LPCWSTR pszCabName, LPCWSTR pszExpandDir, DWORD dwFlags, LPCWSTR pszFileList, LPVOID lpReserved, DWORD dwReserved); +#ifdef UNICODE +#define ExtractFiles ExtractFilesW +#else +#define ExtractFiles ExtractFilesA +#endif // !UNICODE +#else +//@[comment("MVI_tracked")] +HRESULT WINAPI ExtractFiles(LPCSTR pszCabName, LPCSTR pszExpandDir, DWORD dwFlags, LPCSTR pszFileList, LPVOID lpReserved, DWORD dwReserved); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: LaunchINFSection +// +// SYNOPSIS: Install INF section WITHOUT BACKUP/ROLLBACK capabilities. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +INT WINAPI LaunchINFSectionA(HWND hwndOwner, HINSTANCE hInstance, _Inout_ LPSTR pszParams, INT nShow); +INT WINAPI LaunchINFSectionW(HWND hwndOwner, HINSTANCE hInstance, _Inout_ LPWSTR pszParams, INT nShow); +#ifdef UNICODE +#define LaunchINFSection LaunchINFSectionW +#else +#define LaunchINFSection LaunchINFSectionA +#endif // !UNICODE +#else +INT WINAPI LaunchINFSection(HWND hwndOwner, HINSTANCE hInstance, _Inout_ LPSTR pszParams, INT nShow); +#endif // (_WIN32_IE >= 0x0605) + +// LaunchINFSection flags +#define LIS_QUIET 0x0001 // Bit 0 +#define LIS_NOGRPCONV 0x0002 // Bit 1 + +// Flags in Advanced INF RunPreSetupCommands and RunPostSetupCommands of the Install section +// Those flags can tell advpack how to run those commands, quiet or not quiet, wait or not wait. +// The Default for runing those commands are: Not Quiet and Wait for finish before return the caller. +// I.E> RunPostSetupCommands = MyCmdsSecA:1, MyCmdsSecB:2, MyCmdsSecC +#define RUNCMDS_QUIET 0x00000001 +#define RUNCMDS_NOWAIT 0x00000002 +#define RUNCMDS_DELAYPOSTCMD 0x00000004 + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: UserStubWrapper +// +// SYNOPSIS: The function wrapper around the real per-user restore stub to +// do some generic/intelligent function on behalf of every component. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI UserInstStubWrapperA(HWND hwnd, HINSTANCE hInstance, LPCSTR pszParms, INT nShow); +HRESULT WINAPI UserInstStubWrapperW(HWND hwnd, HINSTANCE hInstance, LPCWSTR pszParms, INT nShow); +#ifdef UNICODE +#define UserInstStubWrapper UserInstStubWrapperW +#else +#define UserInstStubWrapper UserInstStubWrapperA +#endif // !UNICODE +#else +HRESULT WINAPI UserInstStubWrapper(HWND hwnd, HINSTANCE hInstance, LPCSTR pszParms, INT nShow); +#endif // (_WIN32_IE >= 0x0605) + + +// ENTRY POINT: UserUnInstStubWrapper +// +// SYNOPSIS: The function wrapper around the real per-user restore stub to +// do some generic/intelligent function on behalf of every component. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +HRESULT WINAPI UserUnInstStubWrapperA(HWND hwnd, HINSTANCE hInstance, LPCSTR pszParms, INT nShow); +HRESULT WINAPI UserUnInstStubWrapperW(HWND hwnd, HINSTANCE hInstance, LPCWSTR pszParms, INT nShow); +#ifdef UNICODE +#define UserUnInstStubWrapper UserUnInstStubWrapperW +#else +#define UserUnInstStubWrapper UserUnInstStubWrapperA +#endif // !UNICODE +#else +HRESULT WINAPI UserUnInstStubWrapper(HWND hwnd, HINSTANCE hInstance, LPCSTR pszParms, INT nShow); +#endif // (_WIN32_IE >= 0x0605) + + +///////////////////////////////////////////////////////////////////////////// +// ENTRY POINT: SetPerUserInstValues +// +// SYNOPSIS: The function set the per-user stub reg values under IsInstalled\{GUID} +// related key to ensure the later per-user process correctly. +// +// RETURNS: E_FAIL on failure, S_OK on success. +///////////////////////////////////////////////////////////////////////////// + +#if (_WIN32_IE >= 0x0605) +typedef struct _PERUSERSECTIONA { + CHAR szGUID[MAX_GUID_STRING_LEN + 20]; + CHAR szDispName[128]; + CHAR szLocale[10]; + CHAR szStub[MAX_PATH*4]; + CHAR szVersion[32]; + CHAR szCompID[128]; + DWORD dwIsInstalled; + BOOL bRollback; +} PERUSERSECTIONA, *PPERUSERSECTIONA; +typedef struct _PERUSERSECTIONW { + WCHAR szGUID[MAX_GUID_STRING_LEN + 20]; + WCHAR szDispName[128]; + WCHAR szLocale[10]; + WCHAR szStub[MAX_PATH*4]; + WCHAR szVersion[32]; + WCHAR szCompID[128]; + DWORD dwIsInstalled; + BOOL bRollback; +} PERUSERSECTIONW, *PPERUSERSECTIONW; +#ifdef UNICODE +typedef PERUSERSECTIONW PERUSERSECTION; +typedef PPERUSERSECTIONW PPERUSERSECTION; +#else +typedef PERUSERSECTIONA PERUSERSECTION; +typedef PPERUSERSECTIONA PPERUSERSECTION; +#endif // UNICODE + +HRESULT WINAPI SetPerUserSecValuesA(PERUSERSECTIONA* pPerUser); +HRESULT WINAPI SetPerUserSecValuesW(PERUSERSECTIONW* pPerUser); +#ifdef UNICODE +#define SetPerUserSecValues SetPerUserSecValuesW +#else +#define SetPerUserSecValues SetPerUserSecValuesA +#endif // !UNICODE + +#else + +typedef struct _PERUSERSECTIONA { + CHAR szGUID[MAX_GUID_STRING_LEN + 20]; + CHAR szDispName[128]; + CHAR szLocale[10]; + CHAR szStub[MAX_PATH*4]; + CHAR szVersion[32]; + CHAR szCompID[128]; + DWORD dwIsInstalled; + BOOL bRollback; +} PERUSERSECTIONA, *PPERUSERSECTIONA; + +typedef PERUSERSECTIONA PERUSERSECTION; +typedef PPERUSERSECTIONA PPERUSERSECTION; + +HRESULT WINAPI SetPerUserSecValues(PERUSERSECTIONA* pPerUser); +#endif // (_WIN32_IE >= 0x0605) + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _ADVPUB_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ahadmin.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ahadmin.h new file mode 100644 index 0000000000000000000000000000000000000000..1ead6fd104336f6cd0d92ba7779431b1a7562a19 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ahadmin.h @@ -0,0 +1,4856 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ahadmin_h__ +#define __ahadmin_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAppHostMethodExtension_FWD_DEFINED__ +#define __IAppHostMethodExtension_FWD_DEFINED__ +typedef interface IAppHostMethodExtension IAppHostMethodExtension; + +#endif /* __IAppHostMethodExtension_FWD_DEFINED__ */ + + +#ifndef __IAppHostPropertyExtension_FWD_DEFINED__ +#define __IAppHostPropertyExtension_FWD_DEFINED__ +typedef interface IAppHostPropertyExtension IAppHostPropertyExtension; + +#endif /* __IAppHostPropertyExtension_FWD_DEFINED__ */ + + +#ifndef __IAppHostElementExtension_FWD_DEFINED__ +#define __IAppHostElementExtension_FWD_DEFINED__ +typedef interface IAppHostElementExtension IAppHostElementExtension; + +#endif /* __IAppHostElementExtension_FWD_DEFINED__ */ + + +#ifndef __IAppHostMappingExtension_FWD_DEFINED__ +#define __IAppHostMappingExtension_FWD_DEFINED__ +typedef interface IAppHostMappingExtension IAppHostMappingExtension; + +#endif /* __IAppHostMappingExtension_FWD_DEFINED__ */ + + +#ifndef __IAppHostChildElementCollection_FWD_DEFINED__ +#define __IAppHostChildElementCollection_FWD_DEFINED__ +typedef interface IAppHostChildElementCollection IAppHostChildElementCollection; + +#endif /* __IAppHostChildElementCollection_FWD_DEFINED__ */ + + +#ifndef __IAppHostPropertyCollection_FWD_DEFINED__ +#define __IAppHostPropertyCollection_FWD_DEFINED__ +typedef interface IAppHostPropertyCollection IAppHostPropertyCollection; + +#endif /* __IAppHostPropertyCollection_FWD_DEFINED__ */ + + +#ifndef __IAppHostConfigLocationCollection_FWD_DEFINED__ +#define __IAppHostConfigLocationCollection_FWD_DEFINED__ +typedef interface IAppHostConfigLocationCollection IAppHostConfigLocationCollection; + +#endif /* __IAppHostConfigLocationCollection_FWD_DEFINED__ */ + + +#ifndef __IAppHostMethodCollection_FWD_DEFINED__ +#define __IAppHostMethodCollection_FWD_DEFINED__ +typedef interface IAppHostMethodCollection IAppHostMethodCollection; + +#endif /* __IAppHostMethodCollection_FWD_DEFINED__ */ + + +#ifndef __IAppHostElementSchemaCollection_FWD_DEFINED__ +#define __IAppHostElementSchemaCollection_FWD_DEFINED__ +typedef interface IAppHostElementSchemaCollection IAppHostElementSchemaCollection; + +#endif /* __IAppHostElementSchemaCollection_FWD_DEFINED__ */ + + +#ifndef __IAppHostPropertySchemaCollection_FWD_DEFINED__ +#define __IAppHostPropertySchemaCollection_FWD_DEFINED__ +typedef interface IAppHostPropertySchemaCollection IAppHostPropertySchemaCollection; + +#endif /* __IAppHostPropertySchemaCollection_FWD_DEFINED__ */ + + +#ifndef __IAppHostConstantValueCollection_FWD_DEFINED__ +#define __IAppHostConstantValueCollection_FWD_DEFINED__ +typedef interface IAppHostConstantValueCollection IAppHostConstantValueCollection; + +#endif /* __IAppHostConstantValueCollection_FWD_DEFINED__ */ + + +#ifndef __IAppHostConstantValue_FWD_DEFINED__ +#define __IAppHostConstantValue_FWD_DEFINED__ +typedef interface IAppHostConstantValue IAppHostConstantValue; + +#endif /* __IAppHostConstantValue_FWD_DEFINED__ */ + + +#ifndef __IAppHostPropertySchema_FWD_DEFINED__ +#define __IAppHostPropertySchema_FWD_DEFINED__ +typedef interface IAppHostPropertySchema IAppHostPropertySchema; + +#endif /* __IAppHostPropertySchema_FWD_DEFINED__ */ + + +#ifndef __IAppHostCollectionSchema_FWD_DEFINED__ +#define __IAppHostCollectionSchema_FWD_DEFINED__ +typedef interface IAppHostCollectionSchema IAppHostCollectionSchema; + +#endif /* __IAppHostCollectionSchema_FWD_DEFINED__ */ + + +#ifndef __IAppHostElementSchema_FWD_DEFINED__ +#define __IAppHostElementSchema_FWD_DEFINED__ +typedef interface IAppHostElementSchema IAppHostElementSchema; + +#endif /* __IAppHostElementSchema_FWD_DEFINED__ */ + + +#ifndef __IAppHostMethodSchema_FWD_DEFINED__ +#define __IAppHostMethodSchema_FWD_DEFINED__ +typedef interface IAppHostMethodSchema IAppHostMethodSchema; + +#endif /* __IAppHostMethodSchema_FWD_DEFINED__ */ + + +#ifndef __IAppHostMethodInstance_FWD_DEFINED__ +#define __IAppHostMethodInstance_FWD_DEFINED__ +typedef interface IAppHostMethodInstance IAppHostMethodInstance; + +#endif /* __IAppHostMethodInstance_FWD_DEFINED__ */ + + +#ifndef __IAppHostMethod_FWD_DEFINED__ +#define __IAppHostMethod_FWD_DEFINED__ +typedef interface IAppHostMethod IAppHostMethod; + +#endif /* __IAppHostMethod_FWD_DEFINED__ */ + + +#ifndef __IAppHostConfigException_FWD_DEFINED__ +#define __IAppHostConfigException_FWD_DEFINED__ +typedef interface IAppHostConfigException IAppHostConfigException; + +#endif /* __IAppHostConfigException_FWD_DEFINED__ */ + + +#ifndef __IAppHostPropertyException_FWD_DEFINED__ +#define __IAppHostPropertyException_FWD_DEFINED__ +typedef interface IAppHostPropertyException IAppHostPropertyException; + +#endif /* __IAppHostPropertyException_FWD_DEFINED__ */ + + +#ifndef __IAppHostElementCollection_FWD_DEFINED__ +#define __IAppHostElementCollection_FWD_DEFINED__ +typedef interface IAppHostElementCollection IAppHostElementCollection; + +#endif /* __IAppHostElementCollection_FWD_DEFINED__ */ + + +#ifndef __IAppHostElement_FWD_DEFINED__ +#define __IAppHostElement_FWD_DEFINED__ +typedef interface IAppHostElement IAppHostElement; + +#endif /* __IAppHostElement_FWD_DEFINED__ */ + + +#ifndef __IAppHostProperty_FWD_DEFINED__ +#define __IAppHostProperty_FWD_DEFINED__ +typedef interface IAppHostProperty IAppHostProperty; + +#endif /* __IAppHostProperty_FWD_DEFINED__ */ + + +#ifndef __IAppHostConfigLocation_FWD_DEFINED__ +#define __IAppHostConfigLocation_FWD_DEFINED__ +typedef interface IAppHostConfigLocation IAppHostConfigLocation; + +#endif /* __IAppHostConfigLocation_FWD_DEFINED__ */ + + +#ifndef __IAppHostSectionDefinition_FWD_DEFINED__ +#define __IAppHostSectionDefinition_FWD_DEFINED__ +typedef interface IAppHostSectionDefinition IAppHostSectionDefinition; + +#endif /* __IAppHostSectionDefinition_FWD_DEFINED__ */ + + +#ifndef __IAppHostSectionDefinitionCollection_FWD_DEFINED__ +#define __IAppHostSectionDefinitionCollection_FWD_DEFINED__ +typedef interface IAppHostSectionDefinitionCollection IAppHostSectionDefinitionCollection; + +#endif /* __IAppHostSectionDefinitionCollection_FWD_DEFINED__ */ + + +#ifndef __IAppHostSectionGroup_FWD_DEFINED__ +#define __IAppHostSectionGroup_FWD_DEFINED__ +typedef interface IAppHostSectionGroup IAppHostSectionGroup; + +#endif /* __IAppHostSectionGroup_FWD_DEFINED__ */ + + +#ifndef __IAppHostConfigFile_FWD_DEFINED__ +#define __IAppHostConfigFile_FWD_DEFINED__ +typedef interface IAppHostConfigFile IAppHostConfigFile; + +#endif /* __IAppHostConfigFile_FWD_DEFINED__ */ + + +#ifndef __IAppHostPathMapper_FWD_DEFINED__ +#define __IAppHostPathMapper_FWD_DEFINED__ +typedef interface IAppHostPathMapper IAppHostPathMapper; + +#endif /* __IAppHostPathMapper_FWD_DEFINED__ */ + + +#ifndef __IAppHostPathMapper2_FWD_DEFINED__ +#define __IAppHostPathMapper2_FWD_DEFINED__ +typedef interface IAppHostPathMapper2 IAppHostPathMapper2; + +#endif /* __IAppHostPathMapper2_FWD_DEFINED__ */ + + +#ifndef __IAppHostChangeHandler_FWD_DEFINED__ +#define __IAppHostChangeHandler_FWD_DEFINED__ +typedef interface IAppHostChangeHandler IAppHostChangeHandler; + +#endif /* __IAppHostChangeHandler_FWD_DEFINED__ */ + + +#ifndef __IAppHostAdminManager_FWD_DEFINED__ +#define __IAppHostAdminManager_FWD_DEFINED__ +typedef interface IAppHostAdminManager IAppHostAdminManager; + +#endif /* __IAppHostAdminManager_FWD_DEFINED__ */ + + +#ifndef __IAppHostWritableAdminManager_FWD_DEFINED__ +#define __IAppHostWritableAdminManager_FWD_DEFINED__ +typedef interface IAppHostWritableAdminManager IAppHostWritableAdminManager; + +#endif /* __IAppHostWritableAdminManager_FWD_DEFINED__ */ + + +#ifndef __IAppHostConfigManager_FWD_DEFINED__ +#define __IAppHostConfigManager_FWD_DEFINED__ +typedef interface IAppHostConfigManager IAppHostConfigManager; + +#endif /* __IAppHostConfigManager_FWD_DEFINED__ */ + + +#ifndef __AppHostAdminManager_FWD_DEFINED__ +#define __AppHostAdminManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AppHostAdminManager AppHostAdminManager; +#else +typedef struct AppHostAdminManager AppHostAdminManager; +#endif /* __cplusplus */ + +#endif /* __AppHostAdminManager_FWD_DEFINED__ */ + + +#ifndef __AppHostWritableAdminManager_FWD_DEFINED__ +#define __AppHostWritableAdminManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AppHostWritableAdminManager AppHostWritableAdminManager; +#else +typedef struct AppHostWritableAdminManager AppHostWritableAdminManager; +#endif /* __cplusplus */ + +#endif /* __AppHostWritableAdminManager_FWD_DEFINED__ */ + + +#ifndef __IAppHostConfigException_FWD_DEFINED__ +#define __IAppHostConfigException_FWD_DEFINED__ +typedef interface IAppHostConfigException IAppHostConfigException; + +#endif /* __IAppHostConfigException_FWD_DEFINED__ */ + + +#ifndef __IAppHostPropertyException_FWD_DEFINED__ +#define __IAppHostPropertyException_FWD_DEFINED__ +typedef interface IAppHostPropertyException IAppHostPropertyException; + +#endif /* __IAppHostPropertyException_FWD_DEFINED__ */ + + +#ifndef __IAppHostMappingExtension_FWD_DEFINED__ +#define __IAppHostMappingExtension_FWD_DEFINED__ +typedef interface IAppHostMappingExtension IAppHostMappingExtension; + +#endif /* __IAppHostMappingExtension_FWD_DEFINED__ */ + + +#ifndef __IAppHostPathMapper_FWD_DEFINED__ +#define __IAppHostPathMapper_FWD_DEFINED__ +typedef interface IAppHostPathMapper IAppHostPathMapper; + +#endif /* __IAppHostPathMapper_FWD_DEFINED__ */ + + +#ifndef __IAppHostChangeHandler_FWD_DEFINED__ +#define __IAppHostChangeHandler_FWD_DEFINED__ +typedef interface IAppHostChangeHandler IAppHostChangeHandler; + +#endif /* __IAppHostChangeHandler_FWD_DEFINED__ */ + + +#ifndef __IAppHostPropertyExtension_FWD_DEFINED__ +#define __IAppHostPropertyExtension_FWD_DEFINED__ +typedef interface IAppHostPropertyExtension IAppHostPropertyExtension; + +#endif /* __IAppHostPropertyExtension_FWD_DEFINED__ */ + + +#ifndef __IAppHostElementExtension_FWD_DEFINED__ +#define __IAppHostElementExtension_FWD_DEFINED__ +typedef interface IAppHostElementExtension IAppHostElementExtension; + +#endif /* __IAppHostElementExtension_FWD_DEFINED__ */ + + +#ifndef __IAppHostMethodExtension_FWD_DEFINED__ +#define __IAppHostMethodExtension_FWD_DEFINED__ +typedef interface IAppHostMethodExtension IAppHostMethodExtension; + +#endif /* __IAppHostMethodExtension_FWD_DEFINED__ */ + + +#ifndef __IAppHostPathMapper2_FWD_DEFINED__ +#define __IAppHostPathMapper2_FWD_DEFINED__ +typedef interface IAppHostPathMapper2 IAppHostPathMapper2; + +#endif /* __IAppHostPathMapper2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ahadmin_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + + + + + + + + + + + + + + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_ahadmin_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ahadmin_0000_0000_v0_0_s_ifspec; + +#ifndef __IAppHostMethodExtension_INTERFACE_DEFINED__ +#define __IAppHostMethodExtension_INTERFACE_DEFINED__ + +/* interface IAppHostMethodExtension */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostMethodExtension; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("70184ac9-7673-4770-96b1-445ce035cf70") + IAppHostMethodExtension : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ProvideMethod( + /* [in] */ __RPC__in_opt IAppHostMethod *pMethod, + /* [in] */ __RPC__in_opt IAppHostMethodInstance *pMethodInstance, + /* [in] */ __RPC__in_opt IAppHostElement *pElement) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostMethodExtensionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostMethodExtension * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostMethodExtension * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostMethodExtension * This); + + DECLSPEC_XFGVIRT(IAppHostMethodExtension, ProvideMethod) + HRESULT ( STDMETHODCALLTYPE *ProvideMethod )( + __RPC__in IAppHostMethodExtension * This, + /* [in] */ __RPC__in_opt IAppHostMethod *pMethod, + /* [in] */ __RPC__in_opt IAppHostMethodInstance *pMethodInstance, + /* [in] */ __RPC__in_opt IAppHostElement *pElement); + + END_INTERFACE + } IAppHostMethodExtensionVtbl; + + interface IAppHostMethodExtension + { + CONST_VTBL struct IAppHostMethodExtensionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostMethodExtension_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostMethodExtension_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostMethodExtension_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostMethodExtension_ProvideMethod(This,pMethod,pMethodInstance,pElement) \ + ( (This)->lpVtbl -> ProvideMethod(This,pMethod,pMethodInstance,pElement) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostMethodExtension_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostPropertyExtension_INTERFACE_DEFINED__ +#define __IAppHostPropertyExtension_INTERFACE_DEFINED__ + +/* interface IAppHostPropertyExtension */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostPropertyExtension; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("88e220f3-33e8-4534-afac-b4a98eccf9ae") + IAppHostPropertyExtension : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ProvideGetProperty( + /* [in] */ __RPC__in_opt IAppHostElement *pElement, + /* [in] */ __RPC__in_opt IAppHostProperty *pProperty) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostPropertyExtensionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostPropertyExtension * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostPropertyExtension * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostPropertyExtension * This); + + DECLSPEC_XFGVIRT(IAppHostPropertyExtension, ProvideGetProperty) + HRESULT ( STDMETHODCALLTYPE *ProvideGetProperty )( + __RPC__in IAppHostPropertyExtension * This, + /* [in] */ __RPC__in_opt IAppHostElement *pElement, + /* [in] */ __RPC__in_opt IAppHostProperty *pProperty); + + END_INTERFACE + } IAppHostPropertyExtensionVtbl; + + interface IAppHostPropertyExtension + { + CONST_VTBL struct IAppHostPropertyExtensionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostPropertyExtension_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostPropertyExtension_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostPropertyExtension_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostPropertyExtension_ProvideGetProperty(This,pElement,pProperty) \ + ( (This)->lpVtbl -> ProvideGetProperty(This,pElement,pProperty) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostPropertyExtension_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostElementExtension_INTERFACE_DEFINED__ +#define __IAppHostElementExtension_INTERFACE_DEFINED__ + +/* interface IAppHostElementExtension */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostElementExtension; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("518eb37d-1ff4-42dd-86c3-3140bc35b823") + IAppHostElementExtension : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ProvideElement( + /* [in] */ __RPC__in_opt IAppHostElement *pNewElement) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostElementExtensionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostElementExtension * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostElementExtension * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostElementExtension * This); + + DECLSPEC_XFGVIRT(IAppHostElementExtension, ProvideElement) + HRESULT ( STDMETHODCALLTYPE *ProvideElement )( + __RPC__in IAppHostElementExtension * This, + /* [in] */ __RPC__in_opt IAppHostElement *pNewElement); + + END_INTERFACE + } IAppHostElementExtensionVtbl; + + interface IAppHostElementExtension + { + CONST_VTBL struct IAppHostElementExtensionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostElementExtension_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostElementExtension_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostElementExtension_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostElementExtension_ProvideElement(This,pNewElement) \ + ( (This)->lpVtbl -> ProvideElement(This,pNewElement) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostElementExtension_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostMappingExtension_INTERFACE_DEFINED__ +#define __IAppHostMappingExtension_INTERFACE_DEFINED__ + +/* interface IAppHostMappingExtension */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostMappingExtension; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("31a83ea0-c0e4-4a2c-8a01-353cc2a4c60a") + IAppHostMappingExtension : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSiteNameFromSiteId( + /* [in] */ DWORD dwSiteId, + /* [string][retval][out] */ __RPC__deref_out_opt_string BSTR *pbstrSiteName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSiteIdFromSiteName( + /* [string][in] */ __RPC__in_string BSTR bstrSiteName, + /* [retval][out] */ __RPC__out DWORD *pdwSiteId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSiteElementFromSiteId( + /* [in] */ DWORD dwSiteId, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppSiteElement) = 0; + + virtual HRESULT STDMETHODCALLTYPE MapPath( + /* [string][in] */ __RPC__in_string BSTR bstrSiteName, + /* [string][in] */ __RPC__in_string BSTR bstrVirtualPath, + /* [string][out] */ __RPC__deref_out_opt_string BSTR *pbstrPhysicalPath, + /* [out] */ __RPC__deref_out_opt IAppHostElement **ppVirtualDirectoryElement, + /* [out] */ __RPC__deref_out_opt IAppHostElement **ppApplicationElement) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostMappingExtensionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostMappingExtension * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostMappingExtension * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostMappingExtension * This); + + DECLSPEC_XFGVIRT(IAppHostMappingExtension, GetSiteNameFromSiteId) + HRESULT ( STDMETHODCALLTYPE *GetSiteNameFromSiteId )( + __RPC__in IAppHostMappingExtension * This, + /* [in] */ DWORD dwSiteId, + /* [string][retval][out] */ __RPC__deref_out_opt_string BSTR *pbstrSiteName); + + DECLSPEC_XFGVIRT(IAppHostMappingExtension, GetSiteIdFromSiteName) + HRESULT ( STDMETHODCALLTYPE *GetSiteIdFromSiteName )( + __RPC__in IAppHostMappingExtension * This, + /* [string][in] */ __RPC__in_string BSTR bstrSiteName, + /* [retval][out] */ __RPC__out DWORD *pdwSiteId); + + DECLSPEC_XFGVIRT(IAppHostMappingExtension, GetSiteElementFromSiteId) + HRESULT ( STDMETHODCALLTYPE *GetSiteElementFromSiteId )( + __RPC__in IAppHostMappingExtension * This, + /* [in] */ DWORD dwSiteId, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppSiteElement); + + DECLSPEC_XFGVIRT(IAppHostMappingExtension, MapPath) + HRESULT ( STDMETHODCALLTYPE *MapPath )( + __RPC__in IAppHostMappingExtension * This, + /* [string][in] */ __RPC__in_string BSTR bstrSiteName, + /* [string][in] */ __RPC__in_string BSTR bstrVirtualPath, + /* [string][out] */ __RPC__deref_out_opt_string BSTR *pbstrPhysicalPath, + /* [out] */ __RPC__deref_out_opt IAppHostElement **ppVirtualDirectoryElement, + /* [out] */ __RPC__deref_out_opt IAppHostElement **ppApplicationElement); + + END_INTERFACE + } IAppHostMappingExtensionVtbl; + + interface IAppHostMappingExtension + { + CONST_VTBL struct IAppHostMappingExtensionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostMappingExtension_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostMappingExtension_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostMappingExtension_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostMappingExtension_GetSiteNameFromSiteId(This,dwSiteId,pbstrSiteName) \ + ( (This)->lpVtbl -> GetSiteNameFromSiteId(This,dwSiteId,pbstrSiteName) ) + +#define IAppHostMappingExtension_GetSiteIdFromSiteName(This,bstrSiteName,pdwSiteId) \ + ( (This)->lpVtbl -> GetSiteIdFromSiteName(This,bstrSiteName,pdwSiteId) ) + +#define IAppHostMappingExtension_GetSiteElementFromSiteId(This,dwSiteId,ppSiteElement) \ + ( (This)->lpVtbl -> GetSiteElementFromSiteId(This,dwSiteId,ppSiteElement) ) + +#define IAppHostMappingExtension_MapPath(This,bstrSiteName,bstrVirtualPath,pbstrPhysicalPath,ppVirtualDirectoryElement,ppApplicationElement) \ + ( (This)->lpVtbl -> MapPath(This,bstrSiteName,bstrVirtualPath,pbstrPhysicalPath,ppVirtualDirectoryElement,ppApplicationElement) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostMappingExtension_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostChildElementCollection_INTERFACE_DEFINED__ +#define __IAppHostChildElementCollection_INTERFACE_DEFINED__ + +/* interface IAppHostChildElementCollection */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostChildElementCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("08a90f5f-0702-48d6-b45f-02a9885a9768") + IAppHostChildElementCollection : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out DWORD *pcCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppElement) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostChildElementCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostChildElementCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostChildElementCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostChildElementCollection * This); + + DECLSPEC_XFGVIRT(IAppHostChildElementCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostChildElementCollection * This, + /* [retval][out] */ __RPC__out DWORD *pcCount); + + DECLSPEC_XFGVIRT(IAppHostChildElementCollection, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostChildElementCollection * This, + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppElement); + + END_INTERFACE + } IAppHostChildElementCollectionVtbl; + + interface IAppHostChildElementCollection + { + CONST_VTBL struct IAppHostChildElementCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostChildElementCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostChildElementCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostChildElementCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostChildElementCollection_get_Count(This,pcCount) \ + ( (This)->lpVtbl -> get_Count(This,pcCount) ) + +#define IAppHostChildElementCollection_get_Item(This,cIndex,ppElement) \ + ( (This)->lpVtbl -> get_Item(This,cIndex,ppElement) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostChildElementCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostPropertyCollection_INTERFACE_DEFINED__ +#define __IAppHostPropertyCollection_INTERFACE_DEFINED__ + +/* interface IAppHostPropertyCollection */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostPropertyCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0191775e-bcff-445a-b4f4-3bdda54e2816") + IAppHostPropertyCollection : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out DWORD *pcCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostProperty **ppProperty) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostPropertyCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostPropertyCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostPropertyCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostPropertyCollection * This); + + DECLSPEC_XFGVIRT(IAppHostPropertyCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostPropertyCollection * This, + /* [retval][out] */ __RPC__out DWORD *pcCount); + + DECLSPEC_XFGVIRT(IAppHostPropertyCollection, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostPropertyCollection * This, + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostProperty **ppProperty); + + END_INTERFACE + } IAppHostPropertyCollectionVtbl; + + interface IAppHostPropertyCollection + { + CONST_VTBL struct IAppHostPropertyCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostPropertyCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostPropertyCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostPropertyCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostPropertyCollection_get_Count(This,pcCount) \ + ( (This)->lpVtbl -> get_Count(This,pcCount) ) + +#define IAppHostPropertyCollection_get_Item(This,cIndex,ppProperty) \ + ( (This)->lpVtbl -> get_Item(This,cIndex,ppProperty) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostPropertyCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostConfigLocationCollection_INTERFACE_DEFINED__ +#define __IAppHostConfigLocationCollection_INTERFACE_DEFINED__ + +/* interface IAppHostConfigLocationCollection */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostConfigLocationCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("832a32f7-b3ea-4b8c-b260-9a2923001184") + IAppHostConfigLocationCollection : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out DWORD *pcCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT varIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigLocation **ppLocation) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddLocation( + /* [string][in] */ __RPC__in_string BSTR bstrLocationPath, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigLocation **ppNewLocation) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteLocation( + /* [in] */ VARIANT cIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE RenameLocation( + /* [in] */ VARIANT varIndex, + /* [string][in] */ __RPC__in_string BSTR bstrLocationPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostConfigLocationCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostConfigLocationCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostConfigLocationCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostConfigLocationCollection * This); + + DECLSPEC_XFGVIRT(IAppHostConfigLocationCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostConfigLocationCollection * This, + /* [retval][out] */ __RPC__out DWORD *pcCount); + + DECLSPEC_XFGVIRT(IAppHostConfigLocationCollection, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostConfigLocationCollection * This, + /* [in] */ VARIANT varIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigLocation **ppLocation); + + DECLSPEC_XFGVIRT(IAppHostConfigLocationCollection, AddLocation) + HRESULT ( STDMETHODCALLTYPE *AddLocation )( + __RPC__in IAppHostConfigLocationCollection * This, + /* [string][in] */ __RPC__in_string BSTR bstrLocationPath, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigLocation **ppNewLocation); + + DECLSPEC_XFGVIRT(IAppHostConfigLocationCollection, DeleteLocation) + HRESULT ( STDMETHODCALLTYPE *DeleteLocation )( + __RPC__in IAppHostConfigLocationCollection * This, + /* [in] */ VARIANT cIndex); + + DECLSPEC_XFGVIRT(IAppHostConfigLocationCollection, RenameLocation) + HRESULT ( STDMETHODCALLTYPE *RenameLocation )( + __RPC__in IAppHostConfigLocationCollection * This, + /* [in] */ VARIANT varIndex, + /* [string][in] */ __RPC__in_string BSTR bstrLocationPath); + + END_INTERFACE + } IAppHostConfigLocationCollectionVtbl; + + interface IAppHostConfigLocationCollection + { + CONST_VTBL struct IAppHostConfigLocationCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostConfigLocationCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostConfigLocationCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostConfigLocationCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostConfigLocationCollection_get_Count(This,pcCount) \ + ( (This)->lpVtbl -> get_Count(This,pcCount) ) + +#define IAppHostConfigLocationCollection_get_Item(This,varIndex,ppLocation) \ + ( (This)->lpVtbl -> get_Item(This,varIndex,ppLocation) ) + +#define IAppHostConfigLocationCollection_AddLocation(This,bstrLocationPath,ppNewLocation) \ + ( (This)->lpVtbl -> AddLocation(This,bstrLocationPath,ppNewLocation) ) + +#define IAppHostConfigLocationCollection_DeleteLocation(This,cIndex) \ + ( (This)->lpVtbl -> DeleteLocation(This,cIndex) ) + +#define IAppHostConfigLocationCollection_RenameLocation(This,varIndex,bstrLocationPath) \ + ( (This)->lpVtbl -> RenameLocation(This,varIndex,bstrLocationPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostConfigLocationCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostMethodCollection_INTERFACE_DEFINED__ +#define __IAppHostMethodCollection_INTERFACE_DEFINED__ + +/* interface IAppHostMethodCollection */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostMethodCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d6c7cd8f-bb8d-4f96-b591-d3a5f1320269") + IAppHostMethodCollection : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out DWORD *pcCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostMethod **ppMethod) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostMethodCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostMethodCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostMethodCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostMethodCollection * This); + + DECLSPEC_XFGVIRT(IAppHostMethodCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostMethodCollection * This, + /* [retval][out] */ __RPC__out DWORD *pcCount); + + DECLSPEC_XFGVIRT(IAppHostMethodCollection, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostMethodCollection * This, + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostMethod **ppMethod); + + END_INTERFACE + } IAppHostMethodCollectionVtbl; + + interface IAppHostMethodCollection + { + CONST_VTBL struct IAppHostMethodCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostMethodCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostMethodCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostMethodCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostMethodCollection_get_Count(This,pcCount) \ + ( (This)->lpVtbl -> get_Count(This,pcCount) ) + +#define IAppHostMethodCollection_get_Item(This,cIndex,ppMethod) \ + ( (This)->lpVtbl -> get_Item(This,cIndex,ppMethod) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostMethodCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostElementSchemaCollection_INTERFACE_DEFINED__ +#define __IAppHostElementSchemaCollection_INTERFACE_DEFINED__ + +/* interface IAppHostElementSchemaCollection */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostElementSchemaCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0344cdda-151e-4cbf-82da-66ae61e97754") + IAppHostElementSchemaCollection : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out DWORD *pcCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppElementSchema) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostElementSchemaCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostElementSchemaCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostElementSchemaCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostElementSchemaCollection * This); + + DECLSPEC_XFGVIRT(IAppHostElementSchemaCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostElementSchemaCollection * This, + /* [retval][out] */ __RPC__out DWORD *pcCount); + + DECLSPEC_XFGVIRT(IAppHostElementSchemaCollection, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostElementSchemaCollection * This, + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppElementSchema); + + END_INTERFACE + } IAppHostElementSchemaCollectionVtbl; + + interface IAppHostElementSchemaCollection + { + CONST_VTBL struct IAppHostElementSchemaCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostElementSchemaCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostElementSchemaCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostElementSchemaCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostElementSchemaCollection_get_Count(This,pcCount) \ + ( (This)->lpVtbl -> get_Count(This,pcCount) ) + +#define IAppHostElementSchemaCollection_get_Item(This,cIndex,ppElementSchema) \ + ( (This)->lpVtbl -> get_Item(This,cIndex,ppElementSchema) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostElementSchemaCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostPropertySchemaCollection_INTERFACE_DEFINED__ +#define __IAppHostPropertySchemaCollection_INTERFACE_DEFINED__ + +/* interface IAppHostPropertySchemaCollection */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostPropertySchemaCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8bed2c68-a5fb-4b28-8581-a0dc5267419f") + IAppHostPropertySchemaCollection : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out DWORD *pcCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostPropertySchema **ppPropertySchema) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostPropertySchemaCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostPropertySchemaCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostPropertySchemaCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostPropertySchemaCollection * This); + + DECLSPEC_XFGVIRT(IAppHostPropertySchemaCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostPropertySchemaCollection * This, + /* [retval][out] */ __RPC__out DWORD *pcCount); + + DECLSPEC_XFGVIRT(IAppHostPropertySchemaCollection, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostPropertySchemaCollection * This, + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostPropertySchema **ppPropertySchema); + + END_INTERFACE + } IAppHostPropertySchemaCollectionVtbl; + + interface IAppHostPropertySchemaCollection + { + CONST_VTBL struct IAppHostPropertySchemaCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostPropertySchemaCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostPropertySchemaCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostPropertySchemaCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostPropertySchemaCollection_get_Count(This,pcCount) \ + ( (This)->lpVtbl -> get_Count(This,pcCount) ) + +#define IAppHostPropertySchemaCollection_get_Item(This,cIndex,ppPropertySchema) \ + ( (This)->lpVtbl -> get_Item(This,cIndex,ppPropertySchema) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostPropertySchemaCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostConstantValueCollection_INTERFACE_DEFINED__ +#define __IAppHostConstantValueCollection_INTERFACE_DEFINED__ + +/* interface IAppHostConstantValueCollection */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostConstantValueCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5b5a68e6-8b9f-45e1-8199-a95ffccdffff") + IAppHostConstantValueCollection : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out DWORD *pcCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConstantValue **ppConstantValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostConstantValueCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostConstantValueCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostConstantValueCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostConstantValueCollection * This); + + DECLSPEC_XFGVIRT(IAppHostConstantValueCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostConstantValueCollection * This, + /* [retval][out] */ __RPC__out DWORD *pcCount); + + DECLSPEC_XFGVIRT(IAppHostConstantValueCollection, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostConstantValueCollection * This, + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConstantValue **ppConstantValue); + + END_INTERFACE + } IAppHostConstantValueCollectionVtbl; + + interface IAppHostConstantValueCollection + { + CONST_VTBL struct IAppHostConstantValueCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostConstantValueCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostConstantValueCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostConstantValueCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostConstantValueCollection_get_Count(This,pcCount) \ + ( (This)->lpVtbl -> get_Count(This,pcCount) ) + +#define IAppHostConstantValueCollection_get_Item(This,cIndex,ppConstantValue) \ + ( (This)->lpVtbl -> get_Item(This,cIndex,ppConstantValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostConstantValueCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostConstantValue_INTERFACE_DEFINED__ +#define __IAppHostConstantValue_INTERFACE_DEFINED__ + +/* interface IAppHostConstantValue */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostConstantValue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0716caf8-7d05-4a46-8099-77594be91394") + IAppHostConstantValue : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out DWORD *pdwValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostConstantValueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostConstantValue * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostConstantValue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostConstantValue * This); + + DECLSPEC_XFGVIRT(IAppHostConstantValue, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAppHostConstantValue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAppHostConstantValue, get_Value) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IAppHostConstantValue * This, + /* [retval][out] */ __RPC__out DWORD *pdwValue); + + END_INTERFACE + } IAppHostConstantValueVtbl; + + interface IAppHostConstantValue + { + CONST_VTBL struct IAppHostConstantValueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostConstantValue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostConstantValue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostConstantValue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostConstantValue_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAppHostConstantValue_get_Value(This,pdwValue) \ + ( (This)->lpVtbl -> get_Value(This,pdwValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostConstantValue_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostPropertySchema_INTERFACE_DEFINED__ +#define __IAppHostPropertySchema_INTERFACE_DEFINED__ + +/* interface IAppHostPropertySchema */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostPropertySchema; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("450386db-7409-4667-935e-384dbbee2a9e") + IAppHostPropertySchema : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrType) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DefaultValue( + /* [retval][out] */ __RPC__out VARIANT *pDefaultValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsRequired( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsRequired) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsUniqueKey( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsUniqueKey) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsCombinedKey( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsCombinedKey) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsExpanded( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsExpanded) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ValidationType( + /* [string][retval][out] */ __RPC__deref_out_opt_string BSTR *pbstrValidationType) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ValidationParameter( + /* [string][retval][out] */ __RPC__deref_out_opt_string BSTR *pbstrValidationParameter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsCaseSensitive( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsCaseSensitive) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PossibleValues( + /* [retval][out] */ __RPC__deref_out_opt IAppHostConstantValueCollection **ppValues) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DoesAllowInfinite( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfAllowInfinite) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsEncrypted( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsEncrypted) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_TimeSpanFormat( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTimeSpanFormat) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostPropertySchemaVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostPropertySchema * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostPropertySchema * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostPropertySchema * This); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrType); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_DefaultValue) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultValue )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][out] */ __RPC__out VARIANT *pDefaultValue); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_IsRequired) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsRequired )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsRequired); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_IsUniqueKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsUniqueKey )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsUniqueKey); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_IsCombinedKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsCombinedKey )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsCombinedKey); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_IsExpanded) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsExpanded )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsExpanded); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_ValidationType) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ValidationType )( + __RPC__in IAppHostPropertySchema * This, + /* [string][retval][out] */ __RPC__deref_out_opt_string BSTR *pbstrValidationType); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_ValidationParameter) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ValidationParameter )( + __RPC__in IAppHostPropertySchema * This, + /* [string][retval][out] */ __RPC__deref_out_opt_string BSTR *pbstrValidationParameter); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, GetMetadata) + HRESULT ( STDMETHODCALLTYPE *GetMetadata )( + __RPC__in IAppHostPropertySchema * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_IsCaseSensitive) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsCaseSensitive )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsCaseSensitive); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_PossibleValues) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PossibleValues )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConstantValueCollection **ppValues); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_DoesAllowInfinite) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DoesAllowInfinite )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfAllowInfinite); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_IsEncrypted) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsEncrypted )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsEncrypted); + + DECLSPEC_XFGVIRT(IAppHostPropertySchema, get_TimeSpanFormat) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TimeSpanFormat )( + __RPC__in IAppHostPropertySchema * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTimeSpanFormat); + + END_INTERFACE + } IAppHostPropertySchemaVtbl; + + interface IAppHostPropertySchema + { + CONST_VTBL struct IAppHostPropertySchemaVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostPropertySchema_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostPropertySchema_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostPropertySchema_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostPropertySchema_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAppHostPropertySchema_get_Type(This,pbstrType) \ + ( (This)->lpVtbl -> get_Type(This,pbstrType) ) + +#define IAppHostPropertySchema_get_DefaultValue(This,pDefaultValue) \ + ( (This)->lpVtbl -> get_DefaultValue(This,pDefaultValue) ) + +#define IAppHostPropertySchema_get_IsRequired(This,pfIsRequired) \ + ( (This)->lpVtbl -> get_IsRequired(This,pfIsRequired) ) + +#define IAppHostPropertySchema_get_IsUniqueKey(This,pfIsUniqueKey) \ + ( (This)->lpVtbl -> get_IsUniqueKey(This,pfIsUniqueKey) ) + +#define IAppHostPropertySchema_get_IsCombinedKey(This,pfIsCombinedKey) \ + ( (This)->lpVtbl -> get_IsCombinedKey(This,pfIsCombinedKey) ) + +#define IAppHostPropertySchema_get_IsExpanded(This,pfIsExpanded) \ + ( (This)->lpVtbl -> get_IsExpanded(This,pfIsExpanded) ) + +#define IAppHostPropertySchema_get_ValidationType(This,pbstrValidationType) \ + ( (This)->lpVtbl -> get_ValidationType(This,pbstrValidationType) ) + +#define IAppHostPropertySchema_get_ValidationParameter(This,pbstrValidationParameter) \ + ( (This)->lpVtbl -> get_ValidationParameter(This,pbstrValidationParameter) ) + +#define IAppHostPropertySchema_GetMetadata(This,bstrMetadataType,pValue) \ + ( (This)->lpVtbl -> GetMetadata(This,bstrMetadataType,pValue) ) + +#define IAppHostPropertySchema_get_IsCaseSensitive(This,pfIsCaseSensitive) \ + ( (This)->lpVtbl -> get_IsCaseSensitive(This,pfIsCaseSensitive) ) + +#define IAppHostPropertySchema_get_PossibleValues(This,ppValues) \ + ( (This)->lpVtbl -> get_PossibleValues(This,ppValues) ) + +#define IAppHostPropertySchema_get_DoesAllowInfinite(This,pfAllowInfinite) \ + ( (This)->lpVtbl -> get_DoesAllowInfinite(This,pfAllowInfinite) ) + +#define IAppHostPropertySchema_get_IsEncrypted(This,pfIsEncrypted) \ + ( (This)->lpVtbl -> get_IsEncrypted(This,pfIsEncrypted) ) + +#define IAppHostPropertySchema_get_TimeSpanFormat(This,pbstrTimeSpanFormat) \ + ( (This)->lpVtbl -> get_TimeSpanFormat(This,pbstrTimeSpanFormat) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostPropertySchema_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostCollectionSchema_INTERFACE_DEFINED__ +#define __IAppHostCollectionSchema_INTERFACE_DEFINED__ + +/* interface IAppHostCollectionSchema */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostCollectionSchema; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("de095db1-5368-4d11-81f6-efef619b7bcf") + IAppHostCollectionSchema : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AddElementNames( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrElementName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAddElementSchema( + /* [string][in] */ __RPC__in_string BSTR bstrElementName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppSchema) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RemoveElementSchema( + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppSchema) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ClearElementSchema( + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppSchema) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsMergeAppend( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsMergeAppend) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DoesAllowDuplicates( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfAllowDuplicates) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostCollectionSchemaVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostCollectionSchema * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostCollectionSchema * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostCollectionSchema * This); + + DECLSPEC_XFGVIRT(IAppHostCollectionSchema, get_AddElementNames) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AddElementNames )( + __RPC__in IAppHostCollectionSchema * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrElementName); + + DECLSPEC_XFGVIRT(IAppHostCollectionSchema, GetAddElementSchema) + HRESULT ( STDMETHODCALLTYPE *GetAddElementSchema )( + __RPC__in IAppHostCollectionSchema * This, + /* [string][in] */ __RPC__in_string BSTR bstrElementName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppSchema); + + DECLSPEC_XFGVIRT(IAppHostCollectionSchema, get_RemoveElementSchema) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemoveElementSchema )( + __RPC__in IAppHostCollectionSchema * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppSchema); + + DECLSPEC_XFGVIRT(IAppHostCollectionSchema, get_ClearElementSchema) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClearElementSchema )( + __RPC__in IAppHostCollectionSchema * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppSchema); + + DECLSPEC_XFGVIRT(IAppHostCollectionSchema, get_IsMergeAppend) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsMergeAppend )( + __RPC__in IAppHostCollectionSchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsMergeAppend); + + DECLSPEC_XFGVIRT(IAppHostCollectionSchema, GetMetadata) + HRESULT ( STDMETHODCALLTYPE *GetMetadata )( + __RPC__in IAppHostCollectionSchema * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IAppHostCollectionSchema, get_DoesAllowDuplicates) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DoesAllowDuplicates )( + __RPC__in IAppHostCollectionSchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfAllowDuplicates); + + END_INTERFACE + } IAppHostCollectionSchemaVtbl; + + interface IAppHostCollectionSchema + { + CONST_VTBL struct IAppHostCollectionSchemaVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostCollectionSchema_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostCollectionSchema_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostCollectionSchema_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostCollectionSchema_get_AddElementNames(This,pbstrElementName) \ + ( (This)->lpVtbl -> get_AddElementNames(This,pbstrElementName) ) + +#define IAppHostCollectionSchema_GetAddElementSchema(This,bstrElementName,ppSchema) \ + ( (This)->lpVtbl -> GetAddElementSchema(This,bstrElementName,ppSchema) ) + +#define IAppHostCollectionSchema_get_RemoveElementSchema(This,ppSchema) \ + ( (This)->lpVtbl -> get_RemoveElementSchema(This,ppSchema) ) + +#define IAppHostCollectionSchema_get_ClearElementSchema(This,ppSchema) \ + ( (This)->lpVtbl -> get_ClearElementSchema(This,ppSchema) ) + +#define IAppHostCollectionSchema_get_IsMergeAppend(This,pfIsMergeAppend) \ + ( (This)->lpVtbl -> get_IsMergeAppend(This,pfIsMergeAppend) ) + +#define IAppHostCollectionSchema_GetMetadata(This,bstrMetadataType,pValue) \ + ( (This)->lpVtbl -> GetMetadata(This,bstrMetadataType,pValue) ) + +#define IAppHostCollectionSchema_get_DoesAllowDuplicates(This,pfAllowDuplicates) \ + ( (This)->lpVtbl -> get_DoesAllowDuplicates(This,pfAllowDuplicates) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostCollectionSchema_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostElementSchema_INTERFACE_DEFINED__ +#define __IAppHostElementSchema_INTERFACE_DEFINED__ + +/* interface IAppHostElementSchema */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostElementSchema; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ef13d885-642c-4709-99ec-b89561c6bc69") + IAppHostElementSchema : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DoesAllowUnschematizedProperties( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfAllowUnschematized) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CollectionSchema( + /* [retval][out] */ __RPC__deref_out_opt IAppHostCollectionSchema **ppCollectionSchema) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ChildElementSchemas( + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchemaCollection **ppChildSchemas) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PropertySchemas( + /* [retval][out] */ __RPC__deref_out_opt IAppHostPropertySchemaCollection **ppPropertySchemas) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsCollectionDefault( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsCollectionDefault) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostElementSchemaVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostElementSchema * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostElementSchema * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostElementSchema * This); + + DECLSPEC_XFGVIRT(IAppHostElementSchema, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAppHostElementSchema * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAppHostElementSchema, get_DoesAllowUnschematizedProperties) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DoesAllowUnschematizedProperties )( + __RPC__in IAppHostElementSchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfAllowUnschematized); + + DECLSPEC_XFGVIRT(IAppHostElementSchema, GetMetadata) + HRESULT ( STDMETHODCALLTYPE *GetMetadata )( + __RPC__in IAppHostElementSchema * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IAppHostElementSchema, get_CollectionSchema) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CollectionSchema )( + __RPC__in IAppHostElementSchema * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostCollectionSchema **ppCollectionSchema); + + DECLSPEC_XFGVIRT(IAppHostElementSchema, get_ChildElementSchemas) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChildElementSchemas )( + __RPC__in IAppHostElementSchema * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchemaCollection **ppChildSchemas); + + DECLSPEC_XFGVIRT(IAppHostElementSchema, get_PropertySchemas) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertySchemas )( + __RPC__in IAppHostElementSchema * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostPropertySchemaCollection **ppPropertySchemas); + + DECLSPEC_XFGVIRT(IAppHostElementSchema, get_IsCollectionDefault) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsCollectionDefault )( + __RPC__in IAppHostElementSchema * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfIsCollectionDefault); + + END_INTERFACE + } IAppHostElementSchemaVtbl; + + interface IAppHostElementSchema + { + CONST_VTBL struct IAppHostElementSchemaVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostElementSchema_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostElementSchema_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostElementSchema_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostElementSchema_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAppHostElementSchema_get_DoesAllowUnschematizedProperties(This,pfAllowUnschematized) \ + ( (This)->lpVtbl -> get_DoesAllowUnschematizedProperties(This,pfAllowUnschematized) ) + +#define IAppHostElementSchema_GetMetadata(This,bstrMetadataType,pValue) \ + ( (This)->lpVtbl -> GetMetadata(This,bstrMetadataType,pValue) ) + +#define IAppHostElementSchema_get_CollectionSchema(This,ppCollectionSchema) \ + ( (This)->lpVtbl -> get_CollectionSchema(This,ppCollectionSchema) ) + +#define IAppHostElementSchema_get_ChildElementSchemas(This,ppChildSchemas) \ + ( (This)->lpVtbl -> get_ChildElementSchemas(This,ppChildSchemas) ) + +#define IAppHostElementSchema_get_PropertySchemas(This,ppPropertySchemas) \ + ( (This)->lpVtbl -> get_PropertySchemas(This,ppPropertySchemas) ) + +#define IAppHostElementSchema_get_IsCollectionDefault(This,pfIsCollectionDefault) \ + ( (This)->lpVtbl -> get_IsCollectionDefault(This,pfIsCollectionDefault) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostElementSchema_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostMethodSchema_INTERFACE_DEFINED__ +#define __IAppHostMethodSchema_INTERFACE_DEFINED__ + +/* interface IAppHostMethodSchema */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostMethodSchema; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2d9915fb-9d42-4328-b782-1b46819fab9e") + IAppHostMethodSchema : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_InputSchema( + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppInputSchema) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_OutputSchema( + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppOutputSchema) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostMethodSchemaVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostMethodSchema * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostMethodSchema * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostMethodSchema * This); + + DECLSPEC_XFGVIRT(IAppHostMethodSchema, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAppHostMethodSchema * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAppHostMethodSchema, get_InputSchema) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_InputSchema )( + __RPC__in IAppHostMethodSchema * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppInputSchema); + + DECLSPEC_XFGVIRT(IAppHostMethodSchema, get_OutputSchema) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OutputSchema )( + __RPC__in IAppHostMethodSchema * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppOutputSchema); + + DECLSPEC_XFGVIRT(IAppHostMethodSchema, GetMetadata) + HRESULT ( STDMETHODCALLTYPE *GetMetadata )( + __RPC__in IAppHostMethodSchema * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + END_INTERFACE + } IAppHostMethodSchemaVtbl; + + interface IAppHostMethodSchema + { + CONST_VTBL struct IAppHostMethodSchemaVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostMethodSchema_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostMethodSchema_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostMethodSchema_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostMethodSchema_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAppHostMethodSchema_get_InputSchema(This,ppInputSchema) \ + ( (This)->lpVtbl -> get_InputSchema(This,ppInputSchema) ) + +#define IAppHostMethodSchema_get_OutputSchema(This,ppOutputSchema) \ + ( (This)->lpVtbl -> get_OutputSchema(This,ppOutputSchema) ) + +#define IAppHostMethodSchema_GetMetadata(This,bstrMetadataType,pValue) \ + ( (This)->lpVtbl -> GetMetadata(This,bstrMetadataType,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostMethodSchema_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostMethodInstance_INTERFACE_DEFINED__ +#define __IAppHostMethodInstance_INTERFACE_DEFINED__ + +/* interface IAppHostMethodInstance */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostMethodInstance; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b80f3c42-60e0-4ae0-9007-f52852d3dbed") + IAppHostMethodInstance : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Input( + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppInputElement) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Output( + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppOutputElement) = 0; + + virtual HRESULT STDMETHODCALLTYPE Execute( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostMethodInstanceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostMethodInstance * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostMethodInstance * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostMethodInstance * This); + + DECLSPEC_XFGVIRT(IAppHostMethodInstance, get_Input) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Input )( + __RPC__in IAppHostMethodInstance * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppInputElement); + + DECLSPEC_XFGVIRT(IAppHostMethodInstance, get_Output) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Output )( + __RPC__in IAppHostMethodInstance * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppOutputElement); + + DECLSPEC_XFGVIRT(IAppHostMethodInstance, Execute) + HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in IAppHostMethodInstance * This); + + DECLSPEC_XFGVIRT(IAppHostMethodInstance, GetMetadata) + HRESULT ( STDMETHODCALLTYPE *GetMetadata )( + __RPC__in IAppHostMethodInstance * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IAppHostMethodInstance, SetMetadata) + HRESULT ( STDMETHODCALLTYPE *SetMetadata )( + __RPC__in IAppHostMethodInstance * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value); + + END_INTERFACE + } IAppHostMethodInstanceVtbl; + + interface IAppHostMethodInstance + { + CONST_VTBL struct IAppHostMethodInstanceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostMethodInstance_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostMethodInstance_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostMethodInstance_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostMethodInstance_get_Input(This,ppInputElement) \ + ( (This)->lpVtbl -> get_Input(This,ppInputElement) ) + +#define IAppHostMethodInstance_get_Output(This,ppOutputElement) \ + ( (This)->lpVtbl -> get_Output(This,ppOutputElement) ) + +#define IAppHostMethodInstance_Execute(This) \ + ( (This)->lpVtbl -> Execute(This) ) + +#define IAppHostMethodInstance_GetMetadata(This,bstrMetadataType,pValue) \ + ( (This)->lpVtbl -> GetMetadata(This,bstrMetadataType,pValue) ) + +#define IAppHostMethodInstance_SetMetadata(This,bstrMetadataType,value) \ + ( (This)->lpVtbl -> SetMetadata(This,bstrMetadataType,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostMethodInstance_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostMethod_INTERFACE_DEFINED__ +#define __IAppHostMethod_INTERFACE_DEFINED__ + +/* interface IAppHostMethod */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostMethod; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7883ca1c-1112-4447-84c3-52fbeb38069d") + IAppHostMethod : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Schema( + /* [retval][out] */ __RPC__deref_out_opt IAppHostMethodSchema **ppMethodSchema) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateInstance( + /* [retval][out] */ __RPC__deref_out_opt IAppHostMethodInstance **ppMethodInstance) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostMethodVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostMethod * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostMethod * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostMethod * This); + + DECLSPEC_XFGVIRT(IAppHostMethod, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAppHostMethod * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAppHostMethod, get_Schema) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IAppHostMethod * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostMethodSchema **ppMethodSchema); + + DECLSPEC_XFGVIRT(IAppHostMethod, CreateInstance) + HRESULT ( STDMETHODCALLTYPE *CreateInstance )( + __RPC__in IAppHostMethod * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostMethodInstance **ppMethodInstance); + + END_INTERFACE + } IAppHostMethodVtbl; + + interface IAppHostMethod + { + CONST_VTBL struct IAppHostMethodVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostMethod_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostMethod_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostMethod_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostMethod_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAppHostMethod_get_Schema(This,ppMethodSchema) \ + ( (This)->lpVtbl -> get_Schema(This,ppMethodSchema) ) + +#define IAppHostMethod_CreateInstance(This,ppMethodInstance) \ + ( (This)->lpVtbl -> CreateInstance(This,ppMethodInstance) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostMethod_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostConfigException_INTERFACE_DEFINED__ +#define __IAppHostConfigException_INTERFACE_DEFINED__ + +/* interface IAppHostConfigException */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostConfigException; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4dfa1df3-8900-4bc7-bbb5-d1a458c52410") + IAppHostConfigException : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_LineNumber( + /* [retval][out] */ __RPC__out ULONG *pcLineNumber) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FileName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFileName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ConfigPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrConfigPath) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ErrorLine( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrErrorLine) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PreErrorLine( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPreErrorLine) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PostErrorLine( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPostErrorLine) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ErrorString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrErrorString) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostConfigExceptionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostConfigException * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostConfigException * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostConfigException * This); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_LineNumber) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_LineNumber )( + __RPC__in IAppHostConfigException * This, + /* [retval][out] */ __RPC__out ULONG *pcLineNumber); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_FileName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileName )( + __RPC__in IAppHostConfigException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFileName); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_ConfigPath) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConfigPath )( + __RPC__in IAppHostConfigException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrConfigPath); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_ErrorLine) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorLine )( + __RPC__in IAppHostConfigException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrErrorLine); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_PreErrorLine) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PreErrorLine )( + __RPC__in IAppHostConfigException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPreErrorLine); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_PostErrorLine) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PostErrorLine )( + __RPC__in IAppHostConfigException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPostErrorLine); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_ErrorString) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorString )( + __RPC__in IAppHostConfigException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrErrorString); + + END_INTERFACE + } IAppHostConfigExceptionVtbl; + + interface IAppHostConfigException + { + CONST_VTBL struct IAppHostConfigExceptionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostConfigException_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostConfigException_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostConfigException_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostConfigException_get_LineNumber(This,pcLineNumber) \ + ( (This)->lpVtbl -> get_LineNumber(This,pcLineNumber) ) + +#define IAppHostConfigException_get_FileName(This,pbstrFileName) \ + ( (This)->lpVtbl -> get_FileName(This,pbstrFileName) ) + +#define IAppHostConfigException_get_ConfigPath(This,pbstrConfigPath) \ + ( (This)->lpVtbl -> get_ConfigPath(This,pbstrConfigPath) ) + +#define IAppHostConfigException_get_ErrorLine(This,pbstrErrorLine) \ + ( (This)->lpVtbl -> get_ErrorLine(This,pbstrErrorLine) ) + +#define IAppHostConfigException_get_PreErrorLine(This,pbstrPreErrorLine) \ + ( (This)->lpVtbl -> get_PreErrorLine(This,pbstrPreErrorLine) ) + +#define IAppHostConfigException_get_PostErrorLine(This,pbstrPostErrorLine) \ + ( (This)->lpVtbl -> get_PostErrorLine(This,pbstrPostErrorLine) ) + +#define IAppHostConfigException_get_ErrorString(This,pbstrErrorString) \ + ( (This)->lpVtbl -> get_ErrorString(This,pbstrErrorString) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostConfigException_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostPropertyException_INTERFACE_DEFINED__ +#define __IAppHostPropertyException_INTERFACE_DEFINED__ + +/* interface IAppHostPropertyException */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostPropertyException; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("eafe4895-a929-41ea-b14d-613e23f62b71") + IAppHostPropertyException : public IAppHostConfigException + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_InvalidValue( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ValidationFailureReason( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrValidationReason) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ValidationFailureParameters( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *pParameterArray) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostPropertyExceptionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostPropertyException * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostPropertyException * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostPropertyException * This); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_LineNumber) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_LineNumber )( + __RPC__in IAppHostPropertyException * This, + /* [retval][out] */ __RPC__out ULONG *pcLineNumber); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_FileName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileName )( + __RPC__in IAppHostPropertyException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrFileName); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_ConfigPath) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConfigPath )( + __RPC__in IAppHostPropertyException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrConfigPath); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_ErrorLine) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorLine )( + __RPC__in IAppHostPropertyException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrErrorLine); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_PreErrorLine) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PreErrorLine )( + __RPC__in IAppHostPropertyException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPreErrorLine); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_PostErrorLine) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PostErrorLine )( + __RPC__in IAppHostPropertyException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPostErrorLine); + + DECLSPEC_XFGVIRT(IAppHostConfigException, get_ErrorString) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorString )( + __RPC__in IAppHostPropertyException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrErrorString); + + DECLSPEC_XFGVIRT(IAppHostPropertyException, get_InvalidValue) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_InvalidValue )( + __RPC__in IAppHostPropertyException * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrValue); + + DECLSPEC_XFGVIRT(IAppHostPropertyException, get_ValidationFailureReason) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ValidationFailureReason )( + __RPC__in IAppHostPropertyException * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrValidationReason); + + DECLSPEC_XFGVIRT(IAppHostPropertyException, get_ValidationFailureParameters) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ValidationFailureParameters )( + __RPC__in IAppHostPropertyException * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *pParameterArray); + + END_INTERFACE + } IAppHostPropertyExceptionVtbl; + + interface IAppHostPropertyException + { + CONST_VTBL struct IAppHostPropertyExceptionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostPropertyException_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostPropertyException_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostPropertyException_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostPropertyException_get_LineNumber(This,pcLineNumber) \ + ( (This)->lpVtbl -> get_LineNumber(This,pcLineNumber) ) + +#define IAppHostPropertyException_get_FileName(This,pbstrFileName) \ + ( (This)->lpVtbl -> get_FileName(This,pbstrFileName) ) + +#define IAppHostPropertyException_get_ConfigPath(This,pbstrConfigPath) \ + ( (This)->lpVtbl -> get_ConfigPath(This,pbstrConfigPath) ) + +#define IAppHostPropertyException_get_ErrorLine(This,pbstrErrorLine) \ + ( (This)->lpVtbl -> get_ErrorLine(This,pbstrErrorLine) ) + +#define IAppHostPropertyException_get_PreErrorLine(This,pbstrPreErrorLine) \ + ( (This)->lpVtbl -> get_PreErrorLine(This,pbstrPreErrorLine) ) + +#define IAppHostPropertyException_get_PostErrorLine(This,pbstrPostErrorLine) \ + ( (This)->lpVtbl -> get_PostErrorLine(This,pbstrPostErrorLine) ) + +#define IAppHostPropertyException_get_ErrorString(This,pbstrErrorString) \ + ( (This)->lpVtbl -> get_ErrorString(This,pbstrErrorString) ) + + +#define IAppHostPropertyException_get_InvalidValue(This,pbstrValue) \ + ( (This)->lpVtbl -> get_InvalidValue(This,pbstrValue) ) + +#define IAppHostPropertyException_get_ValidationFailureReason(This,pbstrValidationReason) \ + ( (This)->lpVtbl -> get_ValidationFailureReason(This,pbstrValidationReason) ) + +#define IAppHostPropertyException_get_ValidationFailureParameters(This,pParameterArray) \ + ( (This)->lpVtbl -> get_ValidationFailureParameters(This,pParameterArray) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostPropertyException_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostElementCollection_INTERFACE_DEFINED__ +#define __IAppHostElementCollection_INTERFACE_DEFINED__ + +/* interface IAppHostElementCollection */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostElementCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c8550bff-5281-4b1e-ac34-99b6fa38464d") + IAppHostElementCollection : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out DWORD *pcElementCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppElement) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddElement( + /* [in] */ __RPC__in_opt IAppHostElement *pElement, + /* [defaultvalue][in] */ INT cPosition = -1) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteElement( + /* [in] */ VARIANT cIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateNewElement( + /* [defaultvalue][string][in] */ __RPC__in_string BSTR bstrElementName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppElement) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Schema( + /* [retval][out] */ __RPC__deref_out_opt IAppHostCollectionSchema **ppSchema) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostElementCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostElementCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostElementCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostElementCollection * This); + + DECLSPEC_XFGVIRT(IAppHostElementCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostElementCollection * This, + /* [retval][out] */ __RPC__out DWORD *pcElementCount); + + DECLSPEC_XFGVIRT(IAppHostElementCollection, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostElementCollection * This, + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppElement); + + DECLSPEC_XFGVIRT(IAppHostElementCollection, AddElement) + HRESULT ( STDMETHODCALLTYPE *AddElement )( + __RPC__in IAppHostElementCollection * This, + /* [in] */ __RPC__in_opt IAppHostElement *pElement, + /* [defaultvalue][in] */ INT cPosition); + + DECLSPEC_XFGVIRT(IAppHostElementCollection, DeleteElement) + HRESULT ( STDMETHODCALLTYPE *DeleteElement )( + __RPC__in IAppHostElementCollection * This, + /* [in] */ VARIANT cIndex); + + DECLSPEC_XFGVIRT(IAppHostElementCollection, Clear) + HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IAppHostElementCollection * This); + + DECLSPEC_XFGVIRT(IAppHostElementCollection, CreateNewElement) + HRESULT ( STDMETHODCALLTYPE *CreateNewElement )( + __RPC__in IAppHostElementCollection * This, + /* [defaultvalue][string][in] */ __RPC__in_string BSTR bstrElementName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppElement); + + DECLSPEC_XFGVIRT(IAppHostElementCollection, get_Schema) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IAppHostElementCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostCollectionSchema **ppSchema); + + END_INTERFACE + } IAppHostElementCollectionVtbl; + + interface IAppHostElementCollection + { + CONST_VTBL struct IAppHostElementCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostElementCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostElementCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostElementCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostElementCollection_get_Count(This,pcElementCount) \ + ( (This)->lpVtbl -> get_Count(This,pcElementCount) ) + +#define IAppHostElementCollection_get_Item(This,cIndex,ppElement) \ + ( (This)->lpVtbl -> get_Item(This,cIndex,ppElement) ) + +#define IAppHostElementCollection_AddElement(This,pElement,cPosition) \ + ( (This)->lpVtbl -> AddElement(This,pElement,cPosition) ) + +#define IAppHostElementCollection_DeleteElement(This,cIndex) \ + ( (This)->lpVtbl -> DeleteElement(This,cIndex) ) + +#define IAppHostElementCollection_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IAppHostElementCollection_CreateNewElement(This,bstrElementName,ppElement) \ + ( (This)->lpVtbl -> CreateNewElement(This,bstrElementName,ppElement) ) + +#define IAppHostElementCollection_get_Schema(This,ppSchema) \ + ( (This)->lpVtbl -> get_Schema(This,ppSchema) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostElementCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostElement_INTERFACE_DEFINED__ +#define __IAppHostElement_INTERFACE_DEFINED__ + +/* interface IAppHostElement */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostElement; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("64ff8ccc-b287-4dae-b08a-a72cbf45f453") + IAppHostElement : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Collection( + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementCollection **ppCollection) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Properties( + /* [retval][out] */ __RPC__deref_out_opt IAppHostPropertyCollection **ppProperties) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ChildElements( + /* [retval][out] */ __RPC__deref_out_opt IAppHostChildElementCollection **ppElements) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Schema( + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppSchema) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetElementByName( + /* [string][in] */ __RPC__in_string BSTR bstrSubName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppElement) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropertyByName( + /* [string][in] */ __RPC__in_string BSTR bstrSubName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostProperty **ppProperty) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Methods( + /* [retval][out] */ __RPC__deref_out_opt IAppHostMethodCollection **ppMethods) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostElementVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostElement * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostElement * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostElement * This); + + DECLSPEC_XFGVIRT(IAppHostElement, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAppHostElement * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAppHostElement, get_Collection) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Collection )( + __RPC__in IAppHostElement * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementCollection **ppCollection); + + DECLSPEC_XFGVIRT(IAppHostElement, get_Properties) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Properties )( + __RPC__in IAppHostElement * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostPropertyCollection **ppProperties); + + DECLSPEC_XFGVIRT(IAppHostElement, get_ChildElements) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChildElements )( + __RPC__in IAppHostElement * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostChildElementCollection **ppElements); + + DECLSPEC_XFGVIRT(IAppHostElement, GetMetadata) + HRESULT ( STDMETHODCALLTYPE *GetMetadata )( + __RPC__in IAppHostElement * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IAppHostElement, SetMetadata) + HRESULT ( STDMETHODCALLTYPE *SetMetadata )( + __RPC__in IAppHostElement * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(IAppHostElement, get_Schema) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IAppHostElement * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElementSchema **ppSchema); + + DECLSPEC_XFGVIRT(IAppHostElement, GetElementByName) + HRESULT ( STDMETHODCALLTYPE *GetElementByName )( + __RPC__in IAppHostElement * This, + /* [string][in] */ __RPC__in_string BSTR bstrSubName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppElement); + + DECLSPEC_XFGVIRT(IAppHostElement, GetPropertyByName) + HRESULT ( STDMETHODCALLTYPE *GetPropertyByName )( + __RPC__in IAppHostElement * This, + /* [string][in] */ __RPC__in_string BSTR bstrSubName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostProperty **ppProperty); + + DECLSPEC_XFGVIRT(IAppHostElement, Clear) + HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IAppHostElement * This); + + DECLSPEC_XFGVIRT(IAppHostElement, get_Methods) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Methods )( + __RPC__in IAppHostElement * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostMethodCollection **ppMethods); + + END_INTERFACE + } IAppHostElementVtbl; + + interface IAppHostElement + { + CONST_VTBL struct IAppHostElementVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostElement_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostElement_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostElement_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostElement_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAppHostElement_get_Collection(This,ppCollection) \ + ( (This)->lpVtbl -> get_Collection(This,ppCollection) ) + +#define IAppHostElement_get_Properties(This,ppProperties) \ + ( (This)->lpVtbl -> get_Properties(This,ppProperties) ) + +#define IAppHostElement_get_ChildElements(This,ppElements) \ + ( (This)->lpVtbl -> get_ChildElements(This,ppElements) ) + +#define IAppHostElement_GetMetadata(This,bstrMetadataType,pValue) \ + ( (This)->lpVtbl -> GetMetadata(This,bstrMetadataType,pValue) ) + +#define IAppHostElement_SetMetadata(This,bstrMetadataType,value) \ + ( (This)->lpVtbl -> SetMetadata(This,bstrMetadataType,value) ) + +#define IAppHostElement_get_Schema(This,ppSchema) \ + ( (This)->lpVtbl -> get_Schema(This,ppSchema) ) + +#define IAppHostElement_GetElementByName(This,bstrSubName,ppElement) \ + ( (This)->lpVtbl -> GetElementByName(This,bstrSubName,ppElement) ) + +#define IAppHostElement_GetPropertyByName(This,bstrSubName,ppProperty) \ + ( (This)->lpVtbl -> GetPropertyByName(This,bstrSubName,ppProperty) ) + +#define IAppHostElement_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IAppHostElement_get_Methods(This,ppMethods) \ + ( (This)->lpVtbl -> get_Methods(This,ppMethods) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostElement_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostProperty_INTERFACE_DEFINED__ +#define __IAppHostProperty_INTERFACE_DEFINED__ + +/* interface IAppHostProperty */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ed35f7a1-5024-4e7b-a44d-07ddaf4b524d") + IAppHostProperty : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pVariant) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT value) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_StringValue( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Exception( + /* [retval][out] */ __RPC__deref_out_opt IAppHostPropertyException **ppException) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Schema( + /* [retval][out] */ __RPC__deref_out_opt IAppHostPropertySchema **ppSchema) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostProperty * This); + + DECLSPEC_XFGVIRT(IAppHostProperty, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAppHostProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAppHostProperty, get_Value) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IAppHostProperty * This, + /* [retval][out] */ __RPC__out VARIANT *pVariant); + + DECLSPEC_XFGVIRT(IAppHostProperty, put_Value) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in IAppHostProperty * This, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(IAppHostProperty, Clear) + HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IAppHostProperty * This); + + DECLSPEC_XFGVIRT(IAppHostProperty, get_StringValue) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_StringValue )( + __RPC__in IAppHostProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrValue); + + DECLSPEC_XFGVIRT(IAppHostProperty, get_Exception) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Exception )( + __RPC__in IAppHostProperty * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostPropertyException **ppException); + + DECLSPEC_XFGVIRT(IAppHostProperty, GetMetadata) + HRESULT ( STDMETHODCALLTYPE *GetMetadata )( + __RPC__in IAppHostProperty * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IAppHostProperty, SetMetadata) + HRESULT ( STDMETHODCALLTYPE *SetMetadata )( + __RPC__in IAppHostProperty * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(IAppHostProperty, get_Schema) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + __RPC__in IAppHostProperty * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostPropertySchema **ppSchema); + + END_INTERFACE + } IAppHostPropertyVtbl; + + interface IAppHostProperty + { + CONST_VTBL struct IAppHostPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostProperty_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAppHostProperty_get_Value(This,pVariant) \ + ( (This)->lpVtbl -> get_Value(This,pVariant) ) + +#define IAppHostProperty_put_Value(This,value) \ + ( (This)->lpVtbl -> put_Value(This,value) ) + +#define IAppHostProperty_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IAppHostProperty_get_StringValue(This,pbstrValue) \ + ( (This)->lpVtbl -> get_StringValue(This,pbstrValue) ) + +#define IAppHostProperty_get_Exception(This,ppException) \ + ( (This)->lpVtbl -> get_Exception(This,ppException) ) + +#define IAppHostProperty_GetMetadata(This,bstrMetadataType,pValue) \ + ( (This)->lpVtbl -> GetMetadata(This,bstrMetadataType,pValue) ) + +#define IAppHostProperty_SetMetadata(This,bstrMetadataType,value) \ + ( (This)->lpVtbl -> SetMetadata(This,bstrMetadataType,value) ) + +#define IAppHostProperty_get_Schema(This,ppSchema) \ + ( (This)->lpVtbl -> get_Schema(This,ppSchema) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostConfigLocation_INTERFACE_DEFINED__ +#define __IAppHostConfigLocation_INTERFACE_DEFINED__ + +/* interface IAppHostConfigLocation */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostConfigLocation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("370af178-7758-4dad-8146-7391f6e18585") + IAppHostConfigLocation : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrLocationPath) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out DWORD *pcCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppSection) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddConfigSection( + /* [in] */ __RPC__in BSTR bstrSectionName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppAdminElement) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteConfigSection( + /* [in] */ VARIANT cIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostConfigLocationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostConfigLocation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostConfigLocation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostConfigLocation * This); + + DECLSPEC_XFGVIRT(IAppHostConfigLocation, get_Path) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IAppHostConfigLocation * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrLocationPath); + + DECLSPEC_XFGVIRT(IAppHostConfigLocation, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostConfigLocation * This, + /* [retval][out] */ __RPC__out DWORD *pcCount); + + DECLSPEC_XFGVIRT(IAppHostConfigLocation, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostConfigLocation * This, + /* [in] */ VARIANT cIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppSection); + + DECLSPEC_XFGVIRT(IAppHostConfigLocation, AddConfigSection) + HRESULT ( STDMETHODCALLTYPE *AddConfigSection )( + __RPC__in IAppHostConfigLocation * This, + /* [in] */ __RPC__in BSTR bstrSectionName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppAdminElement); + + DECLSPEC_XFGVIRT(IAppHostConfigLocation, DeleteConfigSection) + HRESULT ( STDMETHODCALLTYPE *DeleteConfigSection )( + __RPC__in IAppHostConfigLocation * This, + /* [in] */ VARIANT cIndex); + + END_INTERFACE + } IAppHostConfigLocationVtbl; + + interface IAppHostConfigLocation + { + CONST_VTBL struct IAppHostConfigLocationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostConfigLocation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostConfigLocation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostConfigLocation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostConfigLocation_get_Path(This,pbstrLocationPath) \ + ( (This)->lpVtbl -> get_Path(This,pbstrLocationPath) ) + +#define IAppHostConfigLocation_get_Count(This,pcCount) \ + ( (This)->lpVtbl -> get_Count(This,pcCount) ) + +#define IAppHostConfigLocation_get_Item(This,cIndex,ppSection) \ + ( (This)->lpVtbl -> get_Item(This,cIndex,ppSection) ) + +#define IAppHostConfigLocation_AddConfigSection(This,bstrSectionName,ppAdminElement) \ + ( (This)->lpVtbl -> AddConfigSection(This,bstrSectionName,ppAdminElement) ) + +#define IAppHostConfigLocation_DeleteConfigSection(This,cIndex) \ + ( (This)->lpVtbl -> DeleteConfigSection(This,cIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostConfigLocation_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostSectionDefinition_INTERFACE_DEFINED__ +#define __IAppHostSectionDefinition_INTERFACE_DEFINED__ + +/* interface IAppHostSectionDefinition */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostSectionDefinition; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c5c04795-321c-4014-8fd6-d44658799393") + IAppHostSectionDefinition : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrType) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ __RPC__in BSTR bstrType) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_OverrideModeDefault( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOverrideModeDefault) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_OverrideModeDefault( + /* [in] */ __RPC__in BSTR bstrOverrideModeDefault) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AllowDefinition( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrAllowDefinition) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AllowDefinition( + /* [in] */ __RPC__in BSTR bstrAllowDefinition) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AllowLocation( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrAllowLocation) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AllowLocation( + /* [in] */ __RPC__in BSTR bstrAllowLocation) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RequirePermission( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfRequirePermission) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_RequirePermission( + /* [in] */ VARIANT_BOOL pfRequirePermission) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostSectionDefinitionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostSectionDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostSectionDefinition * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostSectionDefinition * This); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAppHostSectionDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IAppHostSectionDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrType); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, put_Type) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in IAppHostSectionDefinition * This, + /* [in] */ __RPC__in BSTR bstrType); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, get_OverrideModeDefault) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OverrideModeDefault )( + __RPC__in IAppHostSectionDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrOverrideModeDefault); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, put_OverrideModeDefault) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_OverrideModeDefault )( + __RPC__in IAppHostSectionDefinition * This, + /* [in] */ __RPC__in BSTR bstrOverrideModeDefault); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, get_AllowDefinition) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowDefinition )( + __RPC__in IAppHostSectionDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrAllowDefinition); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, put_AllowDefinition) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowDefinition )( + __RPC__in IAppHostSectionDefinition * This, + /* [in] */ __RPC__in BSTR bstrAllowDefinition); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, get_AllowLocation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowLocation )( + __RPC__in IAppHostSectionDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrAllowLocation); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, put_AllowLocation) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowLocation )( + __RPC__in IAppHostSectionDefinition * This, + /* [in] */ __RPC__in BSTR bstrAllowLocation); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, get_RequirePermission) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequirePermission )( + __RPC__in IAppHostSectionDefinition * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pfRequirePermission); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinition, put_RequirePermission) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RequirePermission )( + __RPC__in IAppHostSectionDefinition * This, + /* [in] */ VARIANT_BOOL pfRequirePermission); + + END_INTERFACE + } IAppHostSectionDefinitionVtbl; + + interface IAppHostSectionDefinition + { + CONST_VTBL struct IAppHostSectionDefinitionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostSectionDefinition_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostSectionDefinition_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostSectionDefinition_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostSectionDefinition_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAppHostSectionDefinition_get_Type(This,pbstrType) \ + ( (This)->lpVtbl -> get_Type(This,pbstrType) ) + +#define IAppHostSectionDefinition_put_Type(This,bstrType) \ + ( (This)->lpVtbl -> put_Type(This,bstrType) ) + +#define IAppHostSectionDefinition_get_OverrideModeDefault(This,pbstrOverrideModeDefault) \ + ( (This)->lpVtbl -> get_OverrideModeDefault(This,pbstrOverrideModeDefault) ) + +#define IAppHostSectionDefinition_put_OverrideModeDefault(This,bstrOverrideModeDefault) \ + ( (This)->lpVtbl -> put_OverrideModeDefault(This,bstrOverrideModeDefault) ) + +#define IAppHostSectionDefinition_get_AllowDefinition(This,pbstrAllowDefinition) \ + ( (This)->lpVtbl -> get_AllowDefinition(This,pbstrAllowDefinition) ) + +#define IAppHostSectionDefinition_put_AllowDefinition(This,bstrAllowDefinition) \ + ( (This)->lpVtbl -> put_AllowDefinition(This,bstrAllowDefinition) ) + +#define IAppHostSectionDefinition_get_AllowLocation(This,pbstrAllowLocation) \ + ( (This)->lpVtbl -> get_AllowLocation(This,pbstrAllowLocation) ) + +#define IAppHostSectionDefinition_put_AllowLocation(This,bstrAllowLocation) \ + ( (This)->lpVtbl -> put_AllowLocation(This,bstrAllowLocation) ) + +#define IAppHostSectionDefinition_get_RequirePermission(This,pfRequirePermission) \ + ( (This)->lpVtbl -> get_RequirePermission(This,pfRequirePermission) ) + +#define IAppHostSectionDefinition_put_RequirePermission(This,pfRequirePermission) \ + ( (This)->lpVtbl -> put_RequirePermission(This,pfRequirePermission) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostSectionDefinition_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostSectionDefinitionCollection_INTERFACE_DEFINED__ +#define __IAppHostSectionDefinitionCollection_INTERFACE_DEFINED__ + +/* interface IAppHostSectionDefinitionCollection */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostSectionDefinitionCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b7d381ee-8860-47a1-8af4-1f33b2b1f325") + IAppHostSectionDefinitionCollection : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out ULONG *pcCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT varIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionDefinition **ppConfigSection) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddSection( + /* [string][in] */ __RPC__in_string BSTR bstrSectionName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionDefinition **ppConfigSection) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteSection( + /* [in] */ VARIANT varIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostSectionDefinitionCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostSectionDefinitionCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostSectionDefinitionCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostSectionDefinitionCollection * This); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinitionCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostSectionDefinitionCollection * This, + /* [retval][out] */ __RPC__out ULONG *pcCount); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinitionCollection, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostSectionDefinitionCollection * This, + /* [in] */ VARIANT varIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionDefinition **ppConfigSection); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinitionCollection, AddSection) + HRESULT ( STDMETHODCALLTYPE *AddSection )( + __RPC__in IAppHostSectionDefinitionCollection * This, + /* [string][in] */ __RPC__in_string BSTR bstrSectionName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionDefinition **ppConfigSection); + + DECLSPEC_XFGVIRT(IAppHostSectionDefinitionCollection, DeleteSection) + HRESULT ( STDMETHODCALLTYPE *DeleteSection )( + __RPC__in IAppHostSectionDefinitionCollection * This, + /* [in] */ VARIANT varIndex); + + END_INTERFACE + } IAppHostSectionDefinitionCollectionVtbl; + + interface IAppHostSectionDefinitionCollection + { + CONST_VTBL struct IAppHostSectionDefinitionCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostSectionDefinitionCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostSectionDefinitionCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostSectionDefinitionCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostSectionDefinitionCollection_get_Count(This,pcCount) \ + ( (This)->lpVtbl -> get_Count(This,pcCount) ) + +#define IAppHostSectionDefinitionCollection_get_Item(This,varIndex,ppConfigSection) \ + ( (This)->lpVtbl -> get_Item(This,varIndex,ppConfigSection) ) + +#define IAppHostSectionDefinitionCollection_AddSection(This,bstrSectionName,ppConfigSection) \ + ( (This)->lpVtbl -> AddSection(This,bstrSectionName,ppConfigSection) ) + +#define IAppHostSectionDefinitionCollection_DeleteSection(This,varIndex) \ + ( (This)->lpVtbl -> DeleteSection(This,varIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostSectionDefinitionCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostSectionGroup_INTERFACE_DEFINED__ +#define __IAppHostSectionGroup_INTERFACE_DEFINED__ + +/* interface IAppHostSectionGroup */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostSectionGroup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0dd8a158-ebe6-4008-a1d9-b7ecc8f1104b") + IAppHostSectionGroup : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out ULONG *pcSectionGroup) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ VARIANT varIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionGroup **ppSectionGroup) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Sections( + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionDefinitionCollection **ppSections) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddSectionGroup( + /* [string][in] */ __RPC__in_string BSTR bstrSectionGroupName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionGroup **ppSectionGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteSectionGroup( + /* [in] */ VARIANT varIndex) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrType) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ __RPC__in BSTR bstrType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostSectionGroupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostSectionGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostSectionGroup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostSectionGroup * This); + + DECLSPEC_XFGVIRT(IAppHostSectionGroup, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAppHostSectionGroup * This, + /* [retval][out] */ __RPC__out ULONG *pcSectionGroup); + + DECLSPEC_XFGVIRT(IAppHostSectionGroup, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAppHostSectionGroup * This, + /* [in] */ VARIANT varIndex, + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionGroup **ppSectionGroup); + + DECLSPEC_XFGVIRT(IAppHostSectionGroup, get_Sections) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Sections )( + __RPC__in IAppHostSectionGroup * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionDefinitionCollection **ppSections); + + DECLSPEC_XFGVIRT(IAppHostSectionGroup, AddSectionGroup) + HRESULT ( STDMETHODCALLTYPE *AddSectionGroup )( + __RPC__in IAppHostSectionGroup * This, + /* [string][in] */ __RPC__in_string BSTR bstrSectionGroupName, + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionGroup **ppSectionGroup); + + DECLSPEC_XFGVIRT(IAppHostSectionGroup, DeleteSectionGroup) + HRESULT ( STDMETHODCALLTYPE *DeleteSectionGroup )( + __RPC__in IAppHostSectionGroup * This, + /* [in] */ VARIANT varIndex); + + DECLSPEC_XFGVIRT(IAppHostSectionGroup, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAppHostSectionGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAppHostSectionGroup, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IAppHostSectionGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrType); + + DECLSPEC_XFGVIRT(IAppHostSectionGroup, put_Type) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in IAppHostSectionGroup * This, + /* [in] */ __RPC__in BSTR bstrType); + + END_INTERFACE + } IAppHostSectionGroupVtbl; + + interface IAppHostSectionGroup + { + CONST_VTBL struct IAppHostSectionGroupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostSectionGroup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostSectionGroup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostSectionGroup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostSectionGroup_get_Count(This,pcSectionGroup) \ + ( (This)->lpVtbl -> get_Count(This,pcSectionGroup) ) + +#define IAppHostSectionGroup_get_Item(This,varIndex,ppSectionGroup) \ + ( (This)->lpVtbl -> get_Item(This,varIndex,ppSectionGroup) ) + +#define IAppHostSectionGroup_get_Sections(This,ppSections) \ + ( (This)->lpVtbl -> get_Sections(This,ppSections) ) + +#define IAppHostSectionGroup_AddSectionGroup(This,bstrSectionGroupName,ppSectionGroup) \ + ( (This)->lpVtbl -> AddSectionGroup(This,bstrSectionGroupName,ppSectionGroup) ) + +#define IAppHostSectionGroup_DeleteSectionGroup(This,varIndex) \ + ( (This)->lpVtbl -> DeleteSectionGroup(This,varIndex) ) + +#define IAppHostSectionGroup_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAppHostSectionGroup_get_Type(This,pbstrType) \ + ( (This)->lpVtbl -> get_Type(This,pbstrType) ) + +#define IAppHostSectionGroup_put_Type(This,bstrType) \ + ( (This)->lpVtbl -> put_Type(This,bstrType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostSectionGroup_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostConfigFile_INTERFACE_DEFINED__ +#define __IAppHostConfigFile_INTERFACE_DEFINED__ + +/* interface IAppHostConfigFile */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostConfigFile; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ada4e6fb-e025-401e-a5d0-c3134a281f07") + IAppHostConfigFile : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ConfigPath( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrConfigPath) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FilePath( + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrFilePath) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Locations( + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigLocationCollection **ppLocations) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAdminSection( + /* [string][in] */ __RPC__in_string BSTR bstrSectionName, + /* [string][in] */ __RPC__in_string BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppAdminSection) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value) = 0; + + virtual HRESULT STDMETHODCALLTYPE ClearInvalidSections( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RootSectionGroup( + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionGroup **ppSectionGroups) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostConfigFileVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostConfigFile * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostConfigFile * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostConfigFile * This); + + DECLSPEC_XFGVIRT(IAppHostConfigFile, get_ConfigPath) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConfigPath )( + __RPC__in IAppHostConfigFile * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrConfigPath); + + DECLSPEC_XFGVIRT(IAppHostConfigFile, get_FilePath) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilePath )( + __RPC__in IAppHostConfigFile * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrFilePath); + + DECLSPEC_XFGVIRT(IAppHostConfigFile, get_Locations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Locations )( + __RPC__in IAppHostConfigFile * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigLocationCollection **ppLocations); + + DECLSPEC_XFGVIRT(IAppHostConfigFile, GetAdminSection) + HRESULT ( STDMETHODCALLTYPE *GetAdminSection )( + __RPC__in IAppHostConfigFile * This, + /* [string][in] */ __RPC__in_string BSTR bstrSectionName, + /* [string][in] */ __RPC__in_string BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppAdminSection); + + DECLSPEC_XFGVIRT(IAppHostConfigFile, GetMetadata) + HRESULT ( STDMETHODCALLTYPE *GetMetadata )( + __RPC__in IAppHostConfigFile * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IAppHostConfigFile, SetMetadata) + HRESULT ( STDMETHODCALLTYPE *SetMetadata )( + __RPC__in IAppHostConfigFile * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(IAppHostConfigFile, ClearInvalidSections) + HRESULT ( STDMETHODCALLTYPE *ClearInvalidSections )( + __RPC__in IAppHostConfigFile * This); + + DECLSPEC_XFGVIRT(IAppHostConfigFile, get_RootSectionGroup) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RootSectionGroup )( + __RPC__in IAppHostConfigFile * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostSectionGroup **ppSectionGroups); + + END_INTERFACE + } IAppHostConfigFileVtbl; + + interface IAppHostConfigFile + { + CONST_VTBL struct IAppHostConfigFileVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostConfigFile_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostConfigFile_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostConfigFile_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostConfigFile_get_ConfigPath(This,pbstrConfigPath) \ + ( (This)->lpVtbl -> get_ConfigPath(This,pbstrConfigPath) ) + +#define IAppHostConfigFile_get_FilePath(This,pbstrFilePath) \ + ( (This)->lpVtbl -> get_FilePath(This,pbstrFilePath) ) + +#define IAppHostConfigFile_get_Locations(This,ppLocations) \ + ( (This)->lpVtbl -> get_Locations(This,ppLocations) ) + +#define IAppHostConfigFile_GetAdminSection(This,bstrSectionName,bstrPath,ppAdminSection) \ + ( (This)->lpVtbl -> GetAdminSection(This,bstrSectionName,bstrPath,ppAdminSection) ) + +#define IAppHostConfigFile_GetMetadata(This,bstrMetadataType,pValue) \ + ( (This)->lpVtbl -> GetMetadata(This,bstrMetadataType,pValue) ) + +#define IAppHostConfigFile_SetMetadata(This,bstrMetadataType,value) \ + ( (This)->lpVtbl -> SetMetadata(This,bstrMetadataType,value) ) + +#define IAppHostConfigFile_ClearInvalidSections(This) \ + ( (This)->lpVtbl -> ClearInvalidSections(This) ) + +#define IAppHostConfigFile_get_RootSectionGroup(This,ppSectionGroups) \ + ( (This)->lpVtbl -> get_RootSectionGroup(This,ppSectionGroups) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostConfigFile_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostPathMapper_INTERFACE_DEFINED__ +#define __IAppHostPathMapper_INTERFACE_DEFINED__ + +/* interface IAppHostPathMapper */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostPathMapper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e7927575-5cc3-403b-822e-328a6b904bee") + IAppHostPathMapper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE MapPath( + /* [string][in] */ __RPC__in_string BSTR bstrConfigPath, + /* [string][in] */ __RPC__in_string BSTR bstrMappedPhysicalPath, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrNewPhysicalPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostPathMapperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostPathMapper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostPathMapper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostPathMapper * This); + + DECLSPEC_XFGVIRT(IAppHostPathMapper, MapPath) + HRESULT ( STDMETHODCALLTYPE *MapPath )( + __RPC__in IAppHostPathMapper * This, + /* [string][in] */ __RPC__in_string BSTR bstrConfigPath, + /* [string][in] */ __RPC__in_string BSTR bstrMappedPhysicalPath, + /* [retval][string][out] */ __RPC__deref_out_opt_string BSTR *pbstrNewPhysicalPath); + + END_INTERFACE + } IAppHostPathMapperVtbl; + + interface IAppHostPathMapper + { + CONST_VTBL struct IAppHostPathMapperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostPathMapper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostPathMapper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostPathMapper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostPathMapper_MapPath(This,bstrConfigPath,bstrMappedPhysicalPath,pbstrNewPhysicalPath) \ + ( (This)->lpVtbl -> MapPath(This,bstrConfigPath,bstrMappedPhysicalPath,pbstrNewPhysicalPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostPathMapper_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostPathMapper2_INTERFACE_DEFINED__ +#define __IAppHostPathMapper2_INTERFACE_DEFINED__ + +/* interface IAppHostPathMapper2 */ +/* [helpstring][local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostPathMapper2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0f80e901-8f4c-449a-bf90-13d5d082f187") + IAppHostPathMapper2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE MapPath( + /* [string][in] */ BSTR bstrConfigPath, + /* [string][in] */ BSTR bstrMappedPhysicalPath, + /* [string][out] */ BSTR *pbstrNewPhysicalPath, + /* [out] */ HANDLE *phImpersonationToken) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostPathMapper2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAppHostPathMapper2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAppHostPathMapper2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAppHostPathMapper2 * This); + + DECLSPEC_XFGVIRT(IAppHostPathMapper2, MapPath) + HRESULT ( STDMETHODCALLTYPE *MapPath )( + IAppHostPathMapper2 * This, + /* [string][in] */ BSTR bstrConfigPath, + /* [string][in] */ BSTR bstrMappedPhysicalPath, + /* [string][out] */ BSTR *pbstrNewPhysicalPath, + /* [out] */ HANDLE *phImpersonationToken); + + END_INTERFACE + } IAppHostPathMapper2Vtbl; + + interface IAppHostPathMapper2 + { + CONST_VTBL struct IAppHostPathMapper2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostPathMapper2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostPathMapper2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostPathMapper2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostPathMapper2_MapPath(This,bstrConfigPath,bstrMappedPhysicalPath,pbstrNewPhysicalPath,phImpersonationToken) \ + ( (This)->lpVtbl -> MapPath(This,bstrConfigPath,bstrMappedPhysicalPath,pbstrNewPhysicalPath,phImpersonationToken) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostPathMapper2_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostChangeHandler_INTERFACE_DEFINED__ +#define __IAppHostChangeHandler_INTERFACE_DEFINED__ + +/* interface IAppHostChangeHandler */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostChangeHandler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("09829352-87c2-418d-8d79-4133969a489d") + IAppHostChangeHandler : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnSectionChanges( + /* [string][in] */ __RPC__in_string BSTR bstrSectionName, + /* [string][in] */ __RPC__in_string BSTR bstrConfigPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostChangeHandlerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostChangeHandler * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostChangeHandler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostChangeHandler * This); + + DECLSPEC_XFGVIRT(IAppHostChangeHandler, OnSectionChanges) + HRESULT ( STDMETHODCALLTYPE *OnSectionChanges )( + __RPC__in IAppHostChangeHandler * This, + /* [string][in] */ __RPC__in_string BSTR bstrSectionName, + /* [string][in] */ __RPC__in_string BSTR bstrConfigPath); + + END_INTERFACE + } IAppHostChangeHandlerVtbl; + + interface IAppHostChangeHandler + { + CONST_VTBL struct IAppHostChangeHandlerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostChangeHandler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostChangeHandler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostChangeHandler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostChangeHandler_OnSectionChanges(This,bstrSectionName,bstrConfigPath) \ + ( (This)->lpVtbl -> OnSectionChanges(This,bstrSectionName,bstrConfigPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostChangeHandler_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostAdminManager_INTERFACE_DEFINED__ +#define __IAppHostAdminManager_INTERFACE_DEFINED__ + +/* interface IAppHostAdminManager */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostAdminManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9be77978-73ed-4a9a-87fd-13f09fec1b13") + IAppHostAdminManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAdminSection( + /* [string][in] */ __RPC__in_string BSTR bstrSectionName, + /* [string][in] */ __RPC__in_string BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppAdminSection) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMetadata( + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ConfigManager( + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigManager **ppConfigManager) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostAdminManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostAdminManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostAdminManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostAdminManager * This); + + DECLSPEC_XFGVIRT(IAppHostAdminManager, GetAdminSection) + HRESULT ( STDMETHODCALLTYPE *GetAdminSection )( + __RPC__in IAppHostAdminManager * This, + /* [string][in] */ __RPC__in_string BSTR bstrSectionName, + /* [string][in] */ __RPC__in_string BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppAdminSection); + + DECLSPEC_XFGVIRT(IAppHostAdminManager, GetMetadata) + HRESULT ( STDMETHODCALLTYPE *GetMetadata )( + __RPC__in IAppHostAdminManager * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IAppHostAdminManager, SetMetadata) + HRESULT ( STDMETHODCALLTYPE *SetMetadata )( + __RPC__in IAppHostAdminManager * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(IAppHostAdminManager, get_ConfigManager) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConfigManager )( + __RPC__in IAppHostAdminManager * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigManager **ppConfigManager); + + END_INTERFACE + } IAppHostAdminManagerVtbl; + + interface IAppHostAdminManager + { + CONST_VTBL struct IAppHostAdminManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostAdminManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostAdminManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostAdminManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostAdminManager_GetAdminSection(This,bstrSectionName,bstrPath,ppAdminSection) \ + ( (This)->lpVtbl -> GetAdminSection(This,bstrSectionName,bstrPath,ppAdminSection) ) + +#define IAppHostAdminManager_GetMetadata(This,bstrMetadataType,pValue) \ + ( (This)->lpVtbl -> GetMetadata(This,bstrMetadataType,pValue) ) + +#define IAppHostAdminManager_SetMetadata(This,bstrMetadataType,value) \ + ( (This)->lpVtbl -> SetMetadata(This,bstrMetadataType,value) ) + +#define IAppHostAdminManager_get_ConfigManager(This,ppConfigManager) \ + ( (This)->lpVtbl -> get_ConfigManager(This,ppConfigManager) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostAdminManager_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostWritableAdminManager_INTERFACE_DEFINED__ +#define __IAppHostWritableAdminManager_INTERFACE_DEFINED__ + +/* interface IAppHostWritableAdminManager */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostWritableAdminManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fa7660f6-7b3f-4237-a8bf-ed0ad0dcbbd9") + IAppHostWritableAdminManager : public IAppHostAdminManager + { + public: + virtual HRESULT STDMETHODCALLTYPE CommitChanges( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CommitPath( + /* [string][retval][out] */ __RPC__deref_out_opt_string BSTR *pbstrCommitPath) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CommitPath( + /* [string][in] */ __RPC__in_string BSTR bstrCommitPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostWritableAdminManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostWritableAdminManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostWritableAdminManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostWritableAdminManager * This); + + DECLSPEC_XFGVIRT(IAppHostAdminManager, GetAdminSection) + HRESULT ( STDMETHODCALLTYPE *GetAdminSection )( + __RPC__in IAppHostWritableAdminManager * This, + /* [string][in] */ __RPC__in_string BSTR bstrSectionName, + /* [string][in] */ __RPC__in_string BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IAppHostElement **ppAdminSection); + + DECLSPEC_XFGVIRT(IAppHostAdminManager, GetMetadata) + HRESULT ( STDMETHODCALLTYPE *GetMetadata )( + __RPC__in IAppHostWritableAdminManager * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IAppHostAdminManager, SetMetadata) + HRESULT ( STDMETHODCALLTYPE *SetMetadata )( + __RPC__in IAppHostWritableAdminManager * This, + /* [string][in] */ __RPC__in_string BSTR bstrMetadataType, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(IAppHostAdminManager, get_ConfigManager) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConfigManager )( + __RPC__in IAppHostWritableAdminManager * This, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigManager **ppConfigManager); + + DECLSPEC_XFGVIRT(IAppHostWritableAdminManager, CommitChanges) + HRESULT ( STDMETHODCALLTYPE *CommitChanges )( + __RPC__in IAppHostWritableAdminManager * This); + + DECLSPEC_XFGVIRT(IAppHostWritableAdminManager, get_CommitPath) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommitPath )( + __RPC__in IAppHostWritableAdminManager * This, + /* [string][retval][out] */ __RPC__deref_out_opt_string BSTR *pbstrCommitPath); + + DECLSPEC_XFGVIRT(IAppHostWritableAdminManager, put_CommitPath) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CommitPath )( + __RPC__in IAppHostWritableAdminManager * This, + /* [string][in] */ __RPC__in_string BSTR bstrCommitPath); + + END_INTERFACE + } IAppHostWritableAdminManagerVtbl; + + interface IAppHostWritableAdminManager + { + CONST_VTBL struct IAppHostWritableAdminManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostWritableAdminManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostWritableAdminManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostWritableAdminManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostWritableAdminManager_GetAdminSection(This,bstrSectionName,bstrPath,ppAdminSection) \ + ( (This)->lpVtbl -> GetAdminSection(This,bstrSectionName,bstrPath,ppAdminSection) ) + +#define IAppHostWritableAdminManager_GetMetadata(This,bstrMetadataType,pValue) \ + ( (This)->lpVtbl -> GetMetadata(This,bstrMetadataType,pValue) ) + +#define IAppHostWritableAdminManager_SetMetadata(This,bstrMetadataType,value) \ + ( (This)->lpVtbl -> SetMetadata(This,bstrMetadataType,value) ) + +#define IAppHostWritableAdminManager_get_ConfigManager(This,ppConfigManager) \ + ( (This)->lpVtbl -> get_ConfigManager(This,ppConfigManager) ) + + +#define IAppHostWritableAdminManager_CommitChanges(This) \ + ( (This)->lpVtbl -> CommitChanges(This) ) + +#define IAppHostWritableAdminManager_get_CommitPath(This,pbstrCommitPath) \ + ( (This)->lpVtbl -> get_CommitPath(This,pbstrCommitPath) ) + +#define IAppHostWritableAdminManager_put_CommitPath(This,bstrCommitPath) \ + ( (This)->lpVtbl -> put_CommitPath(This,bstrCommitPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostWritableAdminManager_INTERFACE_DEFINED__ */ + + +#ifndef __IAppHostConfigManager_INTERFACE_DEFINED__ +#define __IAppHostConfigManager_INTERFACE_DEFINED__ + +/* interface IAppHostConfigManager */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAppHostConfigManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8f6d760f-f0cb-4d69-b5f6-848b33e9bdc6") + IAppHostConfigManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetConfigFile( + /* [string][in] */ __RPC__in_string BSTR bstrConfigPath, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigFile **ppConfigFile) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUniqueConfigPath( + /* [string][in] */ __RPC__in_string BSTR bstrConfigPath, + /* [string][retval][out] */ __RPC__deref_out_opt_string BSTR *pbstrUniquePath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppHostConfigManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppHostConfigManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppHostConfigManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppHostConfigManager * This); + + DECLSPEC_XFGVIRT(IAppHostConfigManager, GetConfigFile) + HRESULT ( STDMETHODCALLTYPE *GetConfigFile )( + __RPC__in IAppHostConfigManager * This, + /* [string][in] */ __RPC__in_string BSTR bstrConfigPath, + /* [retval][out] */ __RPC__deref_out_opt IAppHostConfigFile **ppConfigFile); + + DECLSPEC_XFGVIRT(IAppHostConfigManager, GetUniqueConfigPath) + HRESULT ( STDMETHODCALLTYPE *GetUniqueConfigPath )( + __RPC__in IAppHostConfigManager * This, + /* [string][in] */ __RPC__in_string BSTR bstrConfigPath, + /* [string][retval][out] */ __RPC__deref_out_opt_string BSTR *pbstrUniquePath); + + END_INTERFACE + } IAppHostConfigManagerVtbl; + + interface IAppHostConfigManager + { + CONST_VTBL struct IAppHostConfigManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppHostConfigManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppHostConfigManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppHostConfigManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppHostConfigManager_GetConfigFile(This,bstrConfigPath,ppConfigFile) \ + ( (This)->lpVtbl -> GetConfigFile(This,bstrConfigPath,ppConfigFile) ) + +#define IAppHostConfigManager_GetUniqueConfigPath(This,bstrConfigPath,pbstrUniquePath) \ + ( (This)->lpVtbl -> GetUniqueConfigPath(This,bstrConfigPath,pbstrUniquePath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppHostConfigManager_INTERFACE_DEFINED__ */ + + + +#ifndef __AppHostAdminLibrary_LIBRARY_DEFINED__ +#define __AppHostAdminLibrary_LIBRARY_DEFINED__ + +/* library AppHostAdminLibrary */ +/* [helpstring][version][uuid] */ + + + + + + + + + + + +EXTERN_C const IID LIBID_AppHostAdminLibrary; + +EXTERN_C const CLSID CLSID_AppHostAdminManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("228fb8f7-fb53-4fd5-8c7b-ff59de606c5b") +AppHostAdminManager; +#endif + +EXTERN_C const CLSID CLSID_AppHostWritableAdminManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2b72133b-3f5b-4602-8952-803546ce3344") +AppHostWritableAdminManager; +#endif +#endif /* __AppHostAdminLibrary_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_ahadmin_0000_0035 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_ahadmin_0000_0035_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ahadmin_0000_0035_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ahadmin.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ahadmin.idl new file mode 100644 index 0000000000000000000000000000000000000000..a9963f98acac822611bf70c5fda1a2fe1541ec57 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ahadmin.idl @@ -0,0 +1,1297 @@ +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl"; +import "oaidl.idl"; + +interface IAppHostElementCollection; +interface IAppHostElement; +interface IAppHostConfigManager; +interface IAppHostAdminManager; +interface IAppHostPathMapper; +interface IAppHostChangeHandler; +interface IAppHostConfigFile; +interface IAppHostConfigLocation; +interface IAppHostProperty; +interface IAppHostPropertyCollection; +interface IAppHostElementSchema; +interface IAppHostPropertySchema; +interface IAppHostCollectionSchema; +interface IAppHostPropertySchemaCollection; +interface IAppHostElementSchemaCollection; +interface IAppHostSectionGroup; +interface IAppHostSectionDefinitionCollection; +interface IAppHostSectionDefinition; +interface IAppHostMethodCollection; +interface IAppHostMethodInstance; +interface IAppHostMethod; +interface IAppHostMethodExtension; +interface IAppHostConstantValue; +interface IAppHostConstantValueCollection; +interface IAppHostPathMapper2; + +[ + object, + uuid( 70184ac9-7673-4770-96b1-445ce035cf70 ), + pointer_default( unique ), + helpstring( "IAppHostMethodExtension" ) +] +interface IAppHostMethodExtension : IUnknown +{ + HRESULT + ProvideMethod( + [in] IAppHostMethod * pMethod, + [in] IAppHostMethodInstance * pMethodInstance, + [in] IAppHostElement * pElement + ); +}; + +[ + object, + uuid( 88e220f3-33e8-4534-afac-b4a98eccf9ae ), + pointer_default( unique ), + helpstring( "IAppHostPropertyExtension" ) +] +interface IAppHostPropertyExtension : IUnknown +{ + HRESULT + ProvideGetProperty( + [in] IAppHostElement * pElement, + [in] IAppHostProperty * pProperty + ); +}; + +[ + object, + uuid( 518eb37d-1ff4-42dd-86c3-3140bc35b823 ), + pointer_default( unique ), + helpstring( "IAppHostElementExtension" ) +] +interface IAppHostElementExtension : IUnknown +{ + HRESULT + ProvideElement( + [in] IAppHostElement * pNewElement + ); +}; + +[ + object, + uuid( 31a83ea0-c0e4-4a2c-8a01-353cc2a4c60a ), + pointer_default( unique ), + helpstring( "IAppHostMappingExtension" ) +] +interface IAppHostMappingExtension : IUnknown +{ + HRESULT + GetSiteNameFromSiteId( + [in] DWORD dwSiteId, + [out, retval, string] BSTR * pbstrSiteName + ); + + HRESULT + GetSiteIdFromSiteName( + [in, string] BSTR bstrSiteName, + [out, retval] DWORD * pdwSiteId + ); + + HRESULT + GetSiteElementFromSiteId( + [in] DWORD dwSiteId, + [out, retval] IAppHostElement ** ppSiteElement + ); + + HRESULT + MapPath( + [in, string] BSTR bstrSiteName, + [in, string] BSTR bstrVirtualPath, + [out, string] BSTR * pbstrPhysicalPath, + [out] IAppHostElement ** ppVirtualDirectoryElement, + [out] IAppHostElement ** ppApplicationElement + ); +}; + +[ + object, + uuid( 08a90f5f-0702-48d6-b45f-02a9885a9768 ), + pointer_default( unique ), + helpstring( "IAppHostChildElementCollection" ) +] +interface IAppHostChildElementCollection : IUnknown +{ + [propget] + HRESULT + Count( + [out, retval] DWORD * pcCount + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT cIndex, + [out, retval] IAppHostElement ** ppElement + ); +} + +[ + object, + uuid( 0191775e-bcff-445a-b4f4-3bdda54e2816 ), + pointer_default( unique ), + helpstring( "IAppHostPropertyCollection" ) +] +interface IAppHostPropertyCollection : IUnknown +{ + [propget] + HRESULT + Count( + [out, retval] DWORD * pcCount + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT cIndex, + [out, retval] IAppHostProperty ** ppProperty + ); +} + +[ + object, + uuid( 832a32f7-b3ea-4b8c-b260-9a2923001184 ), + pointer_default( unique ), + helpstring( "IAppHostConfigLocationCollection" ) +] +interface IAppHostConfigLocationCollection : IUnknown +{ + [propget] + HRESULT + Count( + [out, retval] DWORD * pcCount + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT varIndex, + [out, retval] IAppHostConfigLocation ** ppLocation + ); + + HRESULT + AddLocation( + [in, string] BSTR bstrLocationPath, + [out, retval] IAppHostConfigLocation ** ppNewLocation + ); + + HRESULT + DeleteLocation( + [in] VARIANT cIndex + ); + + HRESULT + RenameLocation( + [in] VARIANT varIndex, + [in, string] BSTR bstrLocationPath + ); +} + +[ + object, + uuid( d6c7cd8f-bb8d-4f96-b591-d3a5f1320269 ), + pointer_default( unique ), + helpstring( "IAppHostMethodCollection" ) +] +interface IAppHostMethodCollection : IUnknown +{ + [propget] + HRESULT + Count( + [out, retval] DWORD * pcCount + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT cIndex, + [out, retval] IAppHostMethod ** ppMethod + ); +} + +[ + object, + uuid( 0344cdda-151e-4cbf-82da-66ae61e97754 ), + pointer_default( unique ), + helpstring( "IAppHostElementSchemaCollection" ) +] +interface IAppHostElementSchemaCollection : IUnknown +{ + [propget] + HRESULT + Count( + [out, retval] DWORD * pcCount + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT cIndex, + [out, retval] IAppHostElementSchema ** ppElementSchema + ); +} + +[ + object, + uuid( 8bed2c68-a5fb-4b28-8581-a0dc5267419f ), + pointer_default( unique ), + helpstring( "IAppHostPropertySchemaCollection" ) +] +interface IAppHostPropertySchemaCollection : IUnknown +{ + [propget] + HRESULT + Count( + [out, retval] DWORD * pcCount + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT cIndex, + [out, retval] IAppHostPropertySchema ** ppPropertySchema + ); +} + +[ + object, + uuid( 5b5a68e6-8b9f-45e1-8199-a95ffccdffff ), + pointer_default( unique ), + helpstring( "IAppHostConstantValueCollection" ) +] +interface IAppHostConstantValueCollection : IUnknown +{ + [propget] + HRESULT + Count( + [out, retval] DWORD * pcCount + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT cIndex, + [out, retval] IAppHostConstantValue ** ppConstantValue + ); +} + +[ + object, + uuid( 0716caf8-7d05-4a46-8099-77594be91394 ), + pointer_default( unique ), + helpstring( "IAppHostConstantValue" ) +] +interface IAppHostConstantValue : IUnknown +{ + [propget] + HRESULT + Name( + [out, retval] BSTR * pbstrName + ); + + [propget] + HRESULT + Value( + [out, retval] DWORD * pdwValue + ); +} + +[ + object, + uuid( 450386db-7409-4667-935e-384dbbee2a9e ), + pointer_default( unique ), + helpstring( "IAppHostPropertySchema" ) +] +interface IAppHostPropertySchema : IUnknown +{ + [propget] + HRESULT + Name( + [out, string, retval] BSTR * pbstrName + ); + + [propget] + HRESULT + Type( + [out, string, retval] BSTR * pbstrType + ); + + [propget] + HRESULT + DefaultValue( + [out, retval] VARIANT * pDefaultValue + ); + + [propget] + HRESULT + IsRequired( + [out, retval] VARIANT_BOOL * pfIsRequired + ); + + [propget] + HRESULT + IsUniqueKey( + [out, retval] VARIANT_BOOL * pfIsUniqueKey + ); + + [propget] + HRESULT + IsCombinedKey( + [out, retval] VARIANT_BOOL * pfIsCombinedKey + ); + + [propget] + HRESULT + IsExpanded( + [out, retval] VARIANT_BOOL * pfIsExpanded + ); + + [propget] + HRESULT + ValidationType( + [out, retval, string] BSTR * pbstrValidationType + ); + + [propget] + HRESULT + ValidationParameter( + [out, retval, string] BSTR * pbstrValidationParameter + ); + + HRESULT + GetMetadata( + [in, string] BSTR bstrMetadataType, + [out, retval] VARIANT * pValue + ); + + [propget] + HRESULT + IsCaseSensitive( + [out, retval] VARIANT_BOOL * pfIsCaseSensitive + ); + + [propget] + HRESULT + PossibleValues( + [out, retval] IAppHostConstantValueCollection ** ppValues + ); + + [propget] + HRESULT + DoesAllowInfinite( + [out, retval] VARIANT_BOOL * pfAllowInfinite + ); + + [propget] + HRESULT + IsEncrypted( + [out, retval] VARIANT_BOOL * pfIsEncrypted + ); + + [propget] + HRESULT + TimeSpanFormat( + [out, retval] BSTR * pbstrTimeSpanFormat + ); +} + +[ + object, + uuid( de095db1-5368-4d11-81f6-efef619b7bcf ), + pointer_default( unique ), + helpstring( "IAppHostCollectionSchema" ) +] +interface IAppHostCollectionSchema : IUnknown +{ + [propget] + HRESULT + AddElementNames( + [out, string, retval] BSTR * pbstrElementName + ); + + HRESULT + GetAddElementSchema( + [in, string] BSTR bstrElementName, + [out, retval] IAppHostElementSchema ** ppSchema + ); + + [propget] + HRESULT + RemoveElementSchema( + [out, retval] IAppHostElementSchema ** ppSchema + ); + + [propget] + HRESULT + ClearElementSchema( + [out, retval] IAppHostElementSchema ** ppSchema + ); + + [propget] + HRESULT + IsMergeAppend( + [out, retval] VARIANT_BOOL * pfIsMergeAppend + ); + + HRESULT + GetMetadata( + [in, string] BSTR bstrMetadataType, + [out, retval] VARIANT * pValue + ); + + [propget] + HRESULT + DoesAllowDuplicates( + [out, retval] VARIANT_BOOL * pfAllowDuplicates + ); +} + +[ + object, + uuid( ef13d885-642c-4709-99ec-b89561c6bc69 ), + pointer_default( unique ), + helpstring( "IAppHostElementSchema" ) +] +interface IAppHostElementSchema : IUnknown +{ + [propget] + HRESULT + Name( + [out, string, retval] BSTR * pbstrName + ); + + [propget] + HRESULT + DoesAllowUnschematizedProperties( + [out, retval] VARIANT_BOOL * pfAllowUnschematized + ); + + HRESULT + GetMetadata( + [in, string] BSTR bstrMetadataType, + [out, retval] VARIANT * pValue + ); + + [propget] + HRESULT + CollectionSchema( + [out, retval] IAppHostCollectionSchema ** ppCollectionSchema + ); + + [propget] + HRESULT + ChildElementSchemas( + [out, retval] IAppHostElementSchemaCollection ** ppChildSchemas + ); + + [propget] + HRESULT + PropertySchemas( + [out, retval] IAppHostPropertySchemaCollection ** ppPropertySchemas + ); + + [propget] + HRESULT + IsCollectionDefault( + [out, retval] VARIANT_BOOL * pfIsCollectionDefault + ); +} + +[ + object, + uuid( 2d9915fb-9d42-4328-b782-1b46819fab9e ), + pointer_default( unique ), + helpstring( "IAppHostMethodSchema" ) +] +interface IAppHostMethodSchema : IUnknown +{ + [propget] + HRESULT + Name( + [out, string, retval] BSTR * pbstrName + ); + + [propget] + HRESULT + InputSchema( + [out, retval] IAppHostElementSchema ** ppInputSchema + ); + + [propget] + HRESULT + OutputSchema( + [out, retval] IAppHostElementSchema ** ppOutputSchema + ); + + HRESULT + GetMetadata( + [in, string] BSTR bstrMetadataType, + [out, retval] VARIANT * pValue + ); +} + +[ + object, + uuid( b80f3c42-60e0-4ae0-9007-f52852d3dbed ), + pointer_default( unique ), + helpstring( "IAppHostMethodInstance" ) +] +interface IAppHostMethodInstance : IUnknown +{ + [propget] + HRESULT + Input( + [out, retval] IAppHostElement ** ppInputElement + ); + + [propget] + HRESULT + Output( + [out, retval] IAppHostElement ** ppOutputElement + ); + + HRESULT + Execute( + ); + + HRESULT + GetMetadata( + [in, string] BSTR bstrMetadataType, + [out, retval] VARIANT * pValue + ); + + HRESULT + SetMetadata( + [in, string] BSTR bstrMetadataType, + [in] VARIANT value + ); +} + +[ + object, + uuid( 7883ca1c-1112-4447-84c3-52fbeb38069d ), + pointer_default( unique ), + helpstring( "IAppHostMethod" ) +] +interface IAppHostMethod : IUnknown +{ + [propget] + HRESULT + Name( + [out, string, retval] BSTR * pbstrName + ); + + [propget] + HRESULT + Schema( + [out, retval] IAppHostMethodSchema ** ppMethodSchema + ); + + HRESULT + CreateInstance( + [out, retval] IAppHostMethodInstance ** ppMethodInstance + ); +} + +[ + object, + uuid( 4dfa1df3-8900-4bc7-bbb5-d1a458c52410 ), + pointer_default( unique ), + helpstring( "IAppHostConfigException" ) +] +interface IAppHostConfigException : IUnknown +{ + [propget] + HRESULT + LineNumber( + [out, retval] ULONG * pcLineNumber + ); + + [propget] + HRESULT + FileName( + [out, retval] BSTR * pbstrFileName + ); + + [propget] + HRESULT + ConfigPath( + [out, retval] BSTR * pbstrConfigPath + ); + + [propget] + HRESULT + ErrorLine( + [out, retval] BSTR * pbstrErrorLine + ); + + [propget] + HRESULT + PreErrorLine( + [out, retval] BSTR * pbstrPreErrorLine + ); + + [propget] + HRESULT + PostErrorLine( + [out, retval] BSTR * pbstrPostErrorLine + ); + + [propget] + HRESULT + ErrorString( + [out, retval] BSTR * pbstrErrorString + ); +} + +[ + object, + uuid( eafe4895-a929-41ea-b14d-613e23f62b71 ), + pointer_default( unique ), + helpstring( "IAppHostPropertyException" ) +] +interface IAppHostPropertyException : IAppHostConfigException +{ + [propget] + HRESULT + InvalidValue( + [out, string, retval] BSTR * pbstrValue + ); + + [propget] + HRESULT + ValidationFailureReason( + [out, string, retval] BSTR * pbstrValidationReason + ); + + [propget] + HRESULT + ValidationFailureParameters( + [out, retval] SAFEARRAY(VARIANT) * pParameterArray + ); +} + +[ + object, + uuid( c8550bff-5281-4b1e-ac34-99b6fa38464d ), + pointer_default( unique ), + helpstring( "IAppHostElementCollection" ) +] +interface IAppHostElementCollection : IUnknown +{ + [propget] + HRESULT + Count( + [out, retval] DWORD * pcElementCount + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT cIndex, + [out, retval] IAppHostElement ** ppElement + ); + + HRESULT + AddElement( + [in] IAppHostElement * pElement, + [in, defaultvalue(-1)] INT cPosition + ); + + HRESULT + DeleteElement( + [in] VARIANT cIndex + ); + + HRESULT + Clear( + ); + + HRESULT + CreateNewElement( + [in, string, defaultvalue("")] BSTR bstrElementName, + [out, retval] IAppHostElement ** ppElement + ); + + [propget] + HRESULT + Schema( + [out, retval] IAppHostCollectionSchema** ppSchema + ); +} + +[ + object, + uuid( 64ff8ccc-b287-4dae-b08a-a72cbf45f453 ), + pointer_default( unique ), + helpstring( "IAppHostElement" ) +] +interface IAppHostElement : IUnknown +{ + [propget] + HRESULT + Name( + [out, retval] BSTR * pbstrName + ); + + [propget] + HRESULT + Collection( + [out, retval] IAppHostElementCollection ** ppCollection + ); + + [propget] + HRESULT + Properties( + [out, retval] IAppHostPropertyCollection ** ppProperties + ); + + [propget] + HRESULT + ChildElements( + [out, retval] IAppHostChildElementCollection ** ppElements + ); + + HRESULT + GetMetadata( + [in, string] BSTR bstrMetadataType, + [out, retval] VARIANT * pValue + ); + + HRESULT + SetMetadata( + [in, string] BSTR bstrMetadataType, + [in] VARIANT value + ); + + [propget] + HRESULT + Schema( + [out, retval] IAppHostElementSchema ** ppSchema + ); + + HRESULT + GetElementByName( + [in, string] BSTR bstrSubName, + [out, retval] IAppHostElement ** ppElement + ); + + HRESULT + GetPropertyByName( + [in, string] BSTR bstrSubName, + [out, retval] IAppHostProperty ** ppProperty + ); + + HRESULT + Clear( + ); + + [propget] + HRESULT + Methods( + [out, retval] IAppHostMethodCollection ** ppMethods + ); +} + +[ + object, + uuid( ed35f7a1-5024-4e7b-a44d-07ddaf4b524d ), + pointer_default( unique ), + helpstring( "IAppHostProperty" ) +] +interface IAppHostProperty : IUnknown +{ + [propget] + HRESULT + Name( + [out, retval] BSTR * pbstrName + ); + + [propget] + HRESULT + Value( + [out, retval] VARIANT * pVariant + ); + + [propput] + HRESULT + Value( + [in] VARIANT value + ); + + HRESULT + Clear( + ); + + [propget] + HRESULT + StringValue( + [out, retval] BSTR * pbstrValue + ); + + [propget] + HRESULT + Exception( + [out, retval] IAppHostPropertyException ** ppException + ); + + HRESULT + GetMetadata( + [in, string] BSTR bstrMetadataType, + [out, retval] VARIANT * pValue + ); + + HRESULT + SetMetadata( + [in, string] BSTR bstrMetadataType, + [in] VARIANT value + ); + + [propget] + HRESULT + Schema( + [out, retval] IAppHostPropertySchema ** ppSchema + ); +} + +[ + object, + uuid( 370af178-7758-4dad-8146-7391f6e18585 ), + pointer_default( unique ), + helpstring( "IAppHostConfigLocation" ) +] +interface IAppHostConfigLocation : IUnknown +{ + [propget] + HRESULT + Path( + [out, string, retval] BSTR * pbstrLocationPath + ); + + [propget] + HRESULT + Count( + [out, retval] DWORD * pcCount + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT cIndex, + [out, retval] IAppHostElement ** ppSection + ); + + HRESULT + AddConfigSection( + [in] BSTR bstrSectionName, + [out, retval] IAppHostElement ** ppAdminElement + ); + + HRESULT + DeleteConfigSection( + [in] VARIANT cIndex + ); +} + +[ + object, + uuid( c5c04795-321c-4014-8fd6-d44658799393 ), + pointer_default( unique ), + helpstring( "IAppHostSectionDefinition" ) +] +interface IAppHostSectionDefinition : IUnknown +{ + [propget] + HRESULT + Name( + [out, retval] BSTR * pbstrName + ); + + [propget] + HRESULT + Type( + [out, retval] BSTR * pbstrType + ); + + [propput] + HRESULT + Type( + [in] BSTR bstrType + ); + + [propget] + HRESULT + OverrideModeDefault( + [out, retval] BSTR * pbstrOverrideModeDefault + ); + + [propput] + HRESULT + OverrideModeDefault( + [in] BSTR bstrOverrideModeDefault + ); + + [propget] + HRESULT + AllowDefinition( + [out, retval] BSTR * pbstrAllowDefinition + ); + + [propput] + HRESULT + AllowDefinition( + [in] BSTR bstrAllowDefinition + ); + + [propget] + HRESULT + AllowLocation( + [out, retval] BSTR * pbstrAllowLocation + ); + + [propput] + HRESULT + AllowLocation( + [in] BSTR bstrAllowLocation + ); + + [propget] + HRESULT + RequirePermission( + [out, retval] VARIANT_BOOL * pfRequirePermission + ); + + [propput] + HRESULT + RequirePermission( + [in] VARIANT_BOOL pfRequirePermission + ); +} + +[ + object, + uuid( b7d381ee-8860-47a1-8af4-1f33b2b1f325 ), + pointer_default( unique ), + helpstring( "IAppHostSectionDefinitionCollection" ) +] +interface IAppHostSectionDefinitionCollection : IUnknown +{ + [propget] + HRESULT + Count( + [out, retval] ULONG * pcCount + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT varIndex, + [out, retval] IAppHostSectionDefinition ** ppConfigSection + ); + + HRESULT + AddSection( + [in, string] BSTR bstrSectionName, + [out, retval] IAppHostSectionDefinition ** ppConfigSection + ); + + HRESULT + DeleteSection( + [in] VARIANT varIndex + ); +} + +[ + object, + uuid( 0dd8a158-ebe6-4008-a1d9-b7ecc8f1104b ), + pointer_default( unique ), + helpstring( "IAppHostSectionGroup" ) +] +interface IAppHostSectionGroup : IUnknown +{ + [propget] + HRESULT + Count( + [out, retval] ULONG * pcSectionGroup + ); + + [propget, id(DISPID_VALUE)] + HRESULT + Item( + [in] VARIANT varIndex, + [out, retval] IAppHostSectionGroup ** ppSectionGroup + ); + + [propget] + HRESULT + Sections( + [out, retval] IAppHostSectionDefinitionCollection ** ppSections + ); + + HRESULT + AddSectionGroup( + [in, string] BSTR bstrSectionGroupName, + [out, retval] IAppHostSectionGroup ** ppSectionGroup + ); + + HRESULT + DeleteSectionGroup( + [in] VARIANT varIndex + ); + + [propget] + HRESULT + Name( + [out, retval] BSTR * pbstrName + ); + + [propget] + HRESULT + Type( + [out, retval] BSTR * pbstrType + ); + + [propput] + HRESULT + Type( + [in] BSTR bstrType + ); +} + +[ + object, + uuid( ada4e6fb-e025-401e-a5d0-c3134a281f07 ), + pointer_default( unique ), + helpstring( "IAppHostConfigFile" ) +] +interface IAppHostConfigFile : IUnknown +{ + [propget] + HRESULT + ConfigPath( + [out, string, retval] BSTR * pbstrConfigPath + ); + + [propget] + HRESULT + FilePath( + [out, string, retval] BSTR * pbstrFilePath + ); + + [propget] + HRESULT + Locations( + [out, retval] IAppHostConfigLocationCollection ** ppLocations + ); + + HRESULT + GetAdminSection( + [in, string] BSTR bstrSectionName, + [in, string] BSTR bstrPath, + [out, retval] IAppHostElement ** ppAdminSection + ); + + HRESULT + GetMetadata( + [in, string] BSTR bstrMetadataType, + [out, retval] VARIANT * pValue + ); + + HRESULT + SetMetadata( + [in, string] BSTR bstrMetadataType, + [in] VARIANT value + ); + + HRESULT + ClearInvalidSections( + ); + + [propget] + HRESULT + RootSectionGroup( + [out, retval] IAppHostSectionGroup ** ppSectionGroups + ); +} + +[ + object, + uuid( e7927575-5cc3-403b-822e-328a6b904bee ), + pointer_default( unique ), + helpstring( "IAppHostPathMapper" ) +] +interface IAppHostPathMapper : IUnknown +{ + HRESULT + MapPath( + [in, string] BSTR bstrConfigPath, + [in, string] BSTR bstrMappedPhysicalPath, + [out, string, retval] BSTR * pbstrNewPhysicalPath + ); +} + +[ + object, + uuid( 0f80e901-8f4c-449a-bf90-13d5d082f187 ), + pointer_default( unique ), + local, + helpstring( "IAppHostPathMapper2" ) +] +interface IAppHostPathMapper2 : IUnknown +{ + HRESULT + MapPath( + [in, string] BSTR bstrConfigPath, + [in, string] BSTR bstrMappedPhysicalPath, + [out, string] BSTR * pbstrNewPhysicalPath, + [out] HANDLE * phImpersonationToken + ); +} + +[ + object, + uuid( 09829352-87c2-418d-8d79-4133969a489d ), + pointer_default( unique ), + helpstring( "IAppHostChangeHandler" ) +] +interface IAppHostChangeHandler : IUnknown +{ + HRESULT + OnSectionChanges( + [in, string] BSTR bstrSectionName, + [in, string] BSTR bstrConfigPath + ); +} + +[ + object, + uuid( 9be77978-73ed-4a9a-87fd-13f09fec1b13 ), + pointer_default( unique ), + helpstring( "IAppHostAdminManager Interface" ) +] +interface IAppHostAdminManager : IUnknown +{ + HRESULT + GetAdminSection( + [in, string] BSTR bstrSectionName, + [in, string] BSTR bstrPath, + [out, retval] IAppHostElement ** ppAdminSection + ); + + HRESULT + GetMetadata( + [in, string] BSTR bstrMetadataType, + [out, retval] VARIANT * pValue + ); + + HRESULT + SetMetadata( + [in, string] BSTR bstrMetadataType, + [in] VARIANT value + ); + + [propget] + HRESULT + ConfigManager( + [out, retval] IAppHostConfigManager ** ppConfigManager + ); +} + +[ + object, + uuid( fa7660f6-7b3f-4237-a8bf-ed0ad0dcbbd9 ), + pointer_default( unique ), + helpstring( "IAppHostWritableAdminManager Interface" ) +] +interface IAppHostWritableAdminManager : IAppHostAdminManager +{ + HRESULT + CommitChanges( + ); + + [propget] + HRESULT + CommitPath( + [out, retval, string] BSTR * pbstrCommitPath + ); + + [propput] + HRESULT + CommitPath( + [in, string] BSTR bstrCommitPath + ); +} + +[ + object, + uuid( 8f6d760f-f0cb-4d69-b5f6-848b33e9bdc6 ), + pointer_default( unique ), + helpstring( "IAppHostConfigManager Interface" ) +] +interface IAppHostConfigManager : IUnknown +{ + HRESULT + GetConfigFile( + [in, string] BSTR bstrConfigPath, + [out, retval] IAppHostConfigFile ** ppConfigFile + ); + + HRESULT + GetUniqueConfigPath( + [in, string] BSTR bstrConfigPath, + [out, retval, string] BSTR * pbstrUniquePath + ); +} + +[ + uuid( 598f9c7d-d2d7-4980-b234-f1e753cd9fd9 ), + version( 1.0 ), + helpstring( "Application Host Administration Interface" ) +] +library AppHostAdminLibrary +{ + + importlib( "stdole32.tlb" ); + importlib( "stdole2.tlb" ); + + [ + uuid( 228fb8f7-fb53-4fd5-8c7b-ff59de606c5b ), + helpstring( "AppHostAdminManager class" ) + ] + coclass AppHostAdminManager + { + [default] interface IAppHostAdminManager; + }; + + [ + uuid( 2b72133b-3f5b-4602-8952-803546ce3344 ), + helpstring( "AppHostWritableAdminManager class" ) + ] + coclass AppHostWritableAdminManager + { + [default] interface IAppHostWritableAdminManager; + }; + + interface IAppHostConfigException; + interface IAppHostPropertyException; + interface IAppHostMappingExtension; + interface IAppHostPathMapper; + interface IAppHostChangeHandler; + interface IAppHostPropertyExtension; + interface IAppHostElementExtension; + interface IAppHostMethodExtension; + interface IAppHostPathMapper2; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ahadmin_i.c b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ahadmin_i.c new file mode 100644 index 0000000000000000000000000000000000000000..622c352782736dcd7757f82dbd8bf8f33221c06c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ahadmin_i.c @@ -0,0 +1,176 @@ + + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + +/* link this file in with the server and any clients */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +#ifdef __cplusplus +extern "C"{ +#endif + + +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef struct _IID +{ + unsigned long x; + unsigned short s1; + unsigned short s2; + unsigned char c[8]; +} IID; + +#endif // __IID_DEFINED__ + +#ifndef CLSID_DEFINED +#define CLSID_DEFINED +typedef IID CLSID; +#endif // CLSID_DEFINED + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} + +#endif // !_MIDL_USE_GUIDDEF_ + +MIDL_DEFINE_GUID(IID, IID_IAppHostMethodExtension,0x70184ac9,0x7673,0x4770,0x96,0xb1,0x44,0x5c,0xe0,0x35,0xcf,0x70); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostPropertyExtension,0x88e220f3,0x33e8,0x4534,0xaf,0xac,0xb4,0xa9,0x8e,0xcc,0xf9,0xae); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostElementExtension,0x518eb37d,0x1ff4,0x42dd,0x86,0xc3,0x31,0x40,0xbc,0x35,0xb8,0x23); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostMappingExtension,0x31a83ea0,0xc0e4,0x4a2c,0x8a,0x01,0x35,0x3c,0xc2,0xa4,0xc6,0x0a); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostChildElementCollection,0x08a90f5f,0x0702,0x48d6,0xb4,0x5f,0x02,0xa9,0x88,0x5a,0x97,0x68); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostPropertyCollection,0x0191775e,0xbcff,0x445a,0xb4,0xf4,0x3b,0xdd,0xa5,0x4e,0x28,0x16); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostConfigLocationCollection,0x832a32f7,0xb3ea,0x4b8c,0xb2,0x60,0x9a,0x29,0x23,0x00,0x11,0x84); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostMethodCollection,0xd6c7cd8f,0xbb8d,0x4f96,0xb5,0x91,0xd3,0xa5,0xf1,0x32,0x02,0x69); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostElementSchemaCollection,0x0344cdda,0x151e,0x4cbf,0x82,0xda,0x66,0xae,0x61,0xe9,0x77,0x54); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostPropertySchemaCollection,0x8bed2c68,0xa5fb,0x4b28,0x85,0x81,0xa0,0xdc,0x52,0x67,0x41,0x9f); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostConstantValueCollection,0x5b5a68e6,0x8b9f,0x45e1,0x81,0x99,0xa9,0x5f,0xfc,0xcd,0xff,0xff); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostConstantValue,0x0716caf8,0x7d05,0x4a46,0x80,0x99,0x77,0x59,0x4b,0xe9,0x13,0x94); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostPropertySchema,0x450386db,0x7409,0x4667,0x93,0x5e,0x38,0x4d,0xbb,0xee,0x2a,0x9e); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostCollectionSchema,0xde095db1,0x5368,0x4d11,0x81,0xf6,0xef,0xef,0x61,0x9b,0x7b,0xcf); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostElementSchema,0xef13d885,0x642c,0x4709,0x99,0xec,0xb8,0x95,0x61,0xc6,0xbc,0x69); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostMethodSchema,0x2d9915fb,0x9d42,0x4328,0xb7,0x82,0x1b,0x46,0x81,0x9f,0xab,0x9e); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostMethodInstance,0xb80f3c42,0x60e0,0x4ae0,0x90,0x07,0xf5,0x28,0x52,0xd3,0xdb,0xed); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostMethod,0x7883ca1c,0x1112,0x4447,0x84,0xc3,0x52,0xfb,0xeb,0x38,0x06,0x9d); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostConfigException,0x4dfa1df3,0x8900,0x4bc7,0xbb,0xb5,0xd1,0xa4,0x58,0xc5,0x24,0x10); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostPropertyException,0xeafe4895,0xa929,0x41ea,0xb1,0x4d,0x61,0x3e,0x23,0xf6,0x2b,0x71); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostElementCollection,0xc8550bff,0x5281,0x4b1e,0xac,0x34,0x99,0xb6,0xfa,0x38,0x46,0x4d); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostElement,0x64ff8ccc,0xb287,0x4dae,0xb0,0x8a,0xa7,0x2c,0xbf,0x45,0xf4,0x53); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostProperty,0xed35f7a1,0x5024,0x4e7b,0xa4,0x4d,0x07,0xdd,0xaf,0x4b,0x52,0x4d); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostConfigLocation,0x370af178,0x7758,0x4dad,0x81,0x46,0x73,0x91,0xf6,0xe1,0x85,0x85); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostSectionDefinition,0xc5c04795,0x321c,0x4014,0x8f,0xd6,0xd4,0x46,0x58,0x79,0x93,0x93); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostSectionDefinitionCollection,0xb7d381ee,0x8860,0x47a1,0x8a,0xf4,0x1f,0x33,0xb2,0xb1,0xf3,0x25); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostSectionGroup,0x0dd8a158,0xebe6,0x4008,0xa1,0xd9,0xb7,0xec,0xc8,0xf1,0x10,0x4b); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostConfigFile,0xada4e6fb,0xe025,0x401e,0xa5,0xd0,0xc3,0x13,0x4a,0x28,0x1f,0x07); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostPathMapper,0xe7927575,0x5cc3,0x403b,0x82,0x2e,0x32,0x8a,0x6b,0x90,0x4b,0xee); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostPathMapper2,0x0f80e901,0x8f4c,0x449a,0xbf,0x90,0x13,0xd5,0xd0,0x82,0xf1,0x87); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostChangeHandler,0x09829352,0x87c2,0x418d,0x8d,0x79,0x41,0x33,0x96,0x9a,0x48,0x9d); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostAdminManager,0x9be77978,0x73ed,0x4a9a,0x87,0xfd,0x13,0xf0,0x9f,0xec,0x1b,0x13); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostWritableAdminManager,0xfa7660f6,0x7b3f,0x4237,0xa8,0xbf,0xed,0x0a,0xd0,0xdc,0xbb,0xd9); + + +MIDL_DEFINE_GUID(IID, IID_IAppHostConfigManager,0x8f6d760f,0xf0cb,0x4d69,0xb5,0xf6,0x84,0x8b,0x33,0xe9,0xbd,0xc6); + + +MIDL_DEFINE_GUID(IID, LIBID_AppHostAdminLibrary,0x598f9c7d,0xd2d7,0x4980,0xb2,0x34,0xf1,0xe7,0x53,0xcd,0x9f,0xd9); + + +MIDL_DEFINE_GUID(CLSID, CLSID_AppHostAdminManager,0x228fb8f7,0xfb53,0x4fd5,0x8c,0x7b,0xff,0x59,0xde,0x60,0x6c,0x5b); + + +MIDL_DEFINE_GUID(CLSID, CLSID_AppHostWritableAdminManager,0x2b72133b,0x3f5b,0x4602,0x89,0x52,0x80,0x35,0x46,0xce,0x33,0x44); + +#undef MIDL_DEFINE_GUID + +#ifdef __cplusplus +} +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/alg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/alg.h new file mode 100644 index 0000000000000000000000000000000000000000..e21f75d717a6123b4da6011207e6f18e81ec28b4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/alg.h @@ -0,0 +1,1720 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __alg_h__ +#define __alg_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAdapterInfo_FWD_DEFINED__ +#define __IAdapterInfo_FWD_DEFINED__ +typedef interface IAdapterInfo IAdapterInfo; + +#endif /* __IAdapterInfo_FWD_DEFINED__ */ + + +#ifndef __IPendingProxyConnection_FWD_DEFINED__ +#define __IPendingProxyConnection_FWD_DEFINED__ +typedef interface IPendingProxyConnection IPendingProxyConnection; + +#endif /* __IPendingProxyConnection_FWD_DEFINED__ */ + + +#ifndef __IDataChannel_FWD_DEFINED__ +#define __IDataChannel_FWD_DEFINED__ +typedef interface IDataChannel IDataChannel; + +#endif /* __IDataChannel_FWD_DEFINED__ */ + + +#ifndef __IPersistentDataChannel_FWD_DEFINED__ +#define __IPersistentDataChannel_FWD_DEFINED__ +typedef interface IPersistentDataChannel IPersistentDataChannel; + +#endif /* __IPersistentDataChannel_FWD_DEFINED__ */ + + +#ifndef __IPrimaryControlChannel_FWD_DEFINED__ +#define __IPrimaryControlChannel_FWD_DEFINED__ +typedef interface IPrimaryControlChannel IPrimaryControlChannel; + +#endif /* __IPrimaryControlChannel_FWD_DEFINED__ */ + + +#ifndef __ISecondaryControlChannel_FWD_DEFINED__ +#define __ISecondaryControlChannel_FWD_DEFINED__ +typedef interface ISecondaryControlChannel ISecondaryControlChannel; + +#endif /* __ISecondaryControlChannel_FWD_DEFINED__ */ + + +#ifndef __IEnumAdapterInfo_FWD_DEFINED__ +#define __IEnumAdapterInfo_FWD_DEFINED__ +typedef interface IEnumAdapterInfo IEnumAdapterInfo; + +#endif /* __IEnumAdapterInfo_FWD_DEFINED__ */ + + +#ifndef __IAdapterNotificationSink_FWD_DEFINED__ +#define __IAdapterNotificationSink_FWD_DEFINED__ +typedef interface IAdapterNotificationSink IAdapterNotificationSink; + +#endif /* __IAdapterNotificationSink_FWD_DEFINED__ */ + + +#ifndef __IApplicationGatewayServices_FWD_DEFINED__ +#define __IApplicationGatewayServices_FWD_DEFINED__ +typedef interface IApplicationGatewayServices IApplicationGatewayServices; + +#endif /* __IApplicationGatewayServices_FWD_DEFINED__ */ + + +#ifndef __IApplicationGateway_FWD_DEFINED__ +#define __IApplicationGateway_FWD_DEFINED__ +typedef interface IApplicationGateway IApplicationGateway; + +#endif /* __IApplicationGateway_FWD_DEFINED__ */ + + +#ifndef __ApplicationGatewayServices_FWD_DEFINED__ +#define __ApplicationGatewayServices_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ApplicationGatewayServices ApplicationGatewayServices; +#else +typedef struct ApplicationGatewayServices ApplicationGatewayServices; +#endif /* __cplusplus */ + +#endif /* __ApplicationGatewayServices_FWD_DEFINED__ */ + + +#ifndef __PrimaryControlChannel_FWD_DEFINED__ +#define __PrimaryControlChannel_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PrimaryControlChannel PrimaryControlChannel; +#else +typedef struct PrimaryControlChannel PrimaryControlChannel; +#endif /* __cplusplus */ + +#endif /* __PrimaryControlChannel_FWD_DEFINED__ */ + + +#ifndef __SecondaryControlChannel_FWD_DEFINED__ +#define __SecondaryControlChannel_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SecondaryControlChannel SecondaryControlChannel; +#else +typedef struct SecondaryControlChannel SecondaryControlChannel; +#endif /* __cplusplus */ + +#endif /* __SecondaryControlChannel_FWD_DEFINED__ */ + + +#ifndef __AdapterInfo_FWD_DEFINED__ +#define __AdapterInfo_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AdapterInfo AdapterInfo; +#else +typedef struct AdapterInfo AdapterInfo; +#endif /* __cplusplus */ + +#endif /* __AdapterInfo_FWD_DEFINED__ */ + + +#ifndef __EnumAdapterInfo_FWD_DEFINED__ +#define __EnumAdapterInfo_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnumAdapterInfo EnumAdapterInfo; +#else +typedef struct EnumAdapterInfo EnumAdapterInfo; +#endif /* __cplusplus */ + +#endif /* __EnumAdapterInfo_FWD_DEFINED__ */ + + +#ifndef __PendingProxyConnection_FWD_DEFINED__ +#define __PendingProxyConnection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PendingProxyConnection PendingProxyConnection; +#else +typedef struct PendingProxyConnection PendingProxyConnection; +#endif /* __cplusplus */ + +#endif /* __PendingProxyConnection_FWD_DEFINED__ */ + + +#ifndef __DataChannel_FWD_DEFINED__ +#define __DataChannel_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DataChannel DataChannel; +#else +typedef struct DataChannel DataChannel; +#endif /* __cplusplus */ + +#endif /* __DataChannel_FWD_DEFINED__ */ + + +#ifndef __PersistentDataChannel_FWD_DEFINED__ +#define __PersistentDataChannel_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PersistentDataChannel PersistentDataChannel; +#else +typedef struct PersistentDataChannel PersistentDataChannel; +#endif /* __cplusplus */ + +#endif /* __PersistentDataChannel_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_alg_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992-2001. +// +//-------------------------------------------------------------------------- +// MODULE: alg.h +// +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define ALG_MAXIMUM_PORT_RANGE_SIZE ( 10 ) + +typedef +enum _ALG_PROTOCOL + { + eALG_TCP = 0x1, + eALG_UDP = 0x2 + } ALG_PROTOCOL; + +typedef +enum _ALG_CAPTURE + { + eALG_SOURCE_CAPTURE = 0x1, + eALG_DESTINATION_CAPTURE = 0x2 + } ALG_CAPTURE; + +typedef +enum _ALG_DIRECTION + { + eALG_INBOUND = 0x1, + eALG_OUTBOUND = 0x2, + eALG_BOTH = 0x3 + } ALG_DIRECTION; + +typedef +enum _ALG_ADAPTER_TYPE + { + eALG_PRIVATE = 0x1, + eALG_BOUNDARY = 0x2, + eALG_FIREWALLED = 0x4 + } ALG_ADAPTER_TYPE; + +typedef +enum _ALG_NOTIFICATION + { + eALG_NONE = 0, + eALG_SESSION_CREATION = 0x1, + eALG_SESSION_DELETION = 0x2, + eALG_SESSION_BOTH = 0x3 + } ALG_NOTIFICATION; + +typedef struct _ALG_PRIMARY_CHANNEL_PROPERTIES + { + ALG_PROTOCOL eProtocol; + USHORT usCapturePort; + ALG_CAPTURE eCaptureType; + BOOL fCaptureInbound; + ULONG ulListeningAddress; + USHORT usListeningPort; + ULONG ulAdapterIndex; + } ALG_PRIMARY_CHANNEL_PROPERTIES; + +typedef struct _ALG_SECONDARY_CHANNEL_PROPERTIES + { + ALG_PROTOCOL eProtocol; + ULONG ulPrivateAddress; + USHORT usPrivatePort; + ULONG ulPublicAddress; + USHORT usPublicPort; + ULONG ulRemoteAddress; + USHORT usRemotePort; + ULONG ulListenAddress; + USHORT usListenPort; + ALG_DIRECTION eDirection; + BOOL fPersistent; + } ALG_SECONDARY_CHANNEL_PROPERTIES; + +typedef struct _ALG_DATA_CHANNEL_PROPERTIES + { + ALG_PROTOCOL eProtocol; + ULONG ulPrivateAddress; + USHORT usPrivatePort; + ULONG ulPublicAddress; + USHORT usPublicPort; + ULONG ulRemoteAddress; + USHORT usRemotePort; + ALG_DIRECTION eDirection; + ALG_NOTIFICATION eDesiredNotification; + } ALG_DATA_CHANNEL_PROPERTIES; + +typedef struct _ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES + { + ALG_PROTOCOL eProtocol; + ULONG ulPrivateAddress; + USHORT usPrivatePort; + ULONG ulPublicAddress; + USHORT usPublicPort; + ULONG ulRemoteAddress; + USHORT usRemotePort; + ALG_DIRECTION eDirection; + } ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES; + + + +extern RPC_IF_HANDLE __MIDL_itf_alg_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_alg_0000_0000_v0_0_s_ifspec; + +#ifndef __IAdapterInfo_INTERFACE_DEFINED__ +#define __IAdapterInfo_INTERFACE_DEFINED__ + +/* interface IAdapterInfo */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAdapterInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("480BF94A-09FD-4F8A-A3E0-B0700282D84D") + IAdapterInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAdapterIndex( + /* [out] */ __RPC__out ULONG *pulIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAdapterType( + /* [out] */ __RPC__out ALG_ADAPTER_TYPE *pAdapterType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAdapterAddresses( + /* [out] */ __RPC__out ULONG *pulAddressCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pulAddressCount) ULONG **prgAddresses) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAdapterInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAdapterInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAdapterInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAdapterInfo * This); + + DECLSPEC_XFGVIRT(IAdapterInfo, GetAdapterIndex) + HRESULT ( STDMETHODCALLTYPE *GetAdapterIndex )( + __RPC__in IAdapterInfo * This, + /* [out] */ __RPC__out ULONG *pulIndex); + + DECLSPEC_XFGVIRT(IAdapterInfo, GetAdapterType) + HRESULT ( STDMETHODCALLTYPE *GetAdapterType )( + __RPC__in IAdapterInfo * This, + /* [out] */ __RPC__out ALG_ADAPTER_TYPE *pAdapterType); + + DECLSPEC_XFGVIRT(IAdapterInfo, GetAdapterAddresses) + HRESULT ( STDMETHODCALLTYPE *GetAdapterAddresses )( + __RPC__in IAdapterInfo * This, + /* [out] */ __RPC__out ULONG *pulAddressCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pulAddressCount) ULONG **prgAddresses); + + END_INTERFACE + } IAdapterInfoVtbl; + + interface IAdapterInfo + { + CONST_VTBL struct IAdapterInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAdapterInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAdapterInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAdapterInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAdapterInfo_GetAdapterIndex(This,pulIndex) \ + ( (This)->lpVtbl -> GetAdapterIndex(This,pulIndex) ) + +#define IAdapterInfo_GetAdapterType(This,pAdapterType) \ + ( (This)->lpVtbl -> GetAdapterType(This,pAdapterType) ) + +#define IAdapterInfo_GetAdapterAddresses(This,pulAddressCount,prgAddresses) \ + ( (This)->lpVtbl -> GetAdapterAddresses(This,pulAddressCount,prgAddresses) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAdapterInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IPendingProxyConnection_INTERFACE_DEFINED__ +#define __IPendingProxyConnection_INTERFACE_DEFINED__ + +/* interface IPendingProxyConnection */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IPendingProxyConnection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B68E5043-3E3D-4CC2-B9C1-5F8F88FEE81C") + IPendingProxyConnection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPendingProxyConnectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPendingProxyConnection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPendingProxyConnection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPendingProxyConnection * This); + + DECLSPEC_XFGVIRT(IPendingProxyConnection, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IPendingProxyConnection * This); + + END_INTERFACE + } IPendingProxyConnectionVtbl; + + interface IPendingProxyConnection + { + CONST_VTBL struct IPendingProxyConnectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPendingProxyConnection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPendingProxyConnection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPendingProxyConnection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPendingProxyConnection_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPendingProxyConnection_INTERFACE_DEFINED__ */ + + +#ifndef __IDataChannel_INTERFACE_DEFINED__ +#define __IDataChannel_INTERFACE_DEFINED__ + +/* interface IDataChannel */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDataChannel; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AD42D12A-4AD0-4856-919E-E854C91D1856") + IDataChannel : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChannelProperties( + /* [out] */ ALG_DATA_CHANNEL_PROPERTIES **ppProperties) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSessionCreationEventHandle( + /* [out] */ HANDLE *pHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSessionDeletionEventHandle( + /* [out] */ HANDLE *pHandle) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDataChannelVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDataChannel * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDataChannel * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDataChannel * This); + + DECLSPEC_XFGVIRT(IDataChannel, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + IDataChannel * This); + + DECLSPEC_XFGVIRT(IDataChannel, GetChannelProperties) + HRESULT ( STDMETHODCALLTYPE *GetChannelProperties )( + IDataChannel * This, + /* [out] */ ALG_DATA_CHANNEL_PROPERTIES **ppProperties); + + DECLSPEC_XFGVIRT(IDataChannel, GetSessionCreationEventHandle) + HRESULT ( STDMETHODCALLTYPE *GetSessionCreationEventHandle )( + IDataChannel * This, + /* [out] */ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(IDataChannel, GetSessionDeletionEventHandle) + HRESULT ( STDMETHODCALLTYPE *GetSessionDeletionEventHandle )( + IDataChannel * This, + /* [out] */ HANDLE *pHandle); + + END_INTERFACE + } IDataChannelVtbl; + + interface IDataChannel + { + CONST_VTBL struct IDataChannelVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDataChannel_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDataChannel_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDataChannel_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDataChannel_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IDataChannel_GetChannelProperties(This,ppProperties) \ + ( (This)->lpVtbl -> GetChannelProperties(This,ppProperties) ) + +#define IDataChannel_GetSessionCreationEventHandle(This,pHandle) \ + ( (This)->lpVtbl -> GetSessionCreationEventHandle(This,pHandle) ) + +#define IDataChannel_GetSessionDeletionEventHandle(This,pHandle) \ + ( (This)->lpVtbl -> GetSessionDeletionEventHandle(This,pHandle) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDataChannel_INTERFACE_DEFINED__ */ + + +#ifndef __IPersistentDataChannel_INTERFACE_DEFINED__ +#define __IPersistentDataChannel_INTERFACE_DEFINED__ + +/* interface IPersistentDataChannel */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IPersistentDataChannel; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A180E934-D92A-415D-9144-759F8054E8F6") + IPersistentDataChannel : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChannelProperties( + /* [out] */ __RPC__deref_out_opt ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES **ppProperties) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPersistentDataChannelVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPersistentDataChannel * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPersistentDataChannel * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPersistentDataChannel * This); + + DECLSPEC_XFGVIRT(IPersistentDataChannel, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IPersistentDataChannel * This); + + DECLSPEC_XFGVIRT(IPersistentDataChannel, GetChannelProperties) + HRESULT ( STDMETHODCALLTYPE *GetChannelProperties )( + __RPC__in IPersistentDataChannel * This, + /* [out] */ __RPC__deref_out_opt ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES **ppProperties); + + END_INTERFACE + } IPersistentDataChannelVtbl; + + interface IPersistentDataChannel + { + CONST_VTBL struct IPersistentDataChannelVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPersistentDataChannel_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPersistentDataChannel_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPersistentDataChannel_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPersistentDataChannel_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IPersistentDataChannel_GetChannelProperties(This,ppProperties) \ + ( (This)->lpVtbl -> GetChannelProperties(This,ppProperties) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPersistentDataChannel_INTERFACE_DEFINED__ */ + + +#ifndef __IPrimaryControlChannel_INTERFACE_DEFINED__ +#define __IPrimaryControlChannel_INTERFACE_DEFINED__ + +/* interface IPrimaryControlChannel */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IPrimaryControlChannel; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1A2E8B62-9012-4BE6-84AE-32BD66BA657A") + IPrimaryControlChannel : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChannelProperties( + /* [out] */ __RPC__deref_out_opt ALG_PRIMARY_CHANNEL_PROPERTIES **ppProperties) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalDestinationInformation( + /* [in] */ ULONG ulSourceAddress, + /* [in] */ USHORT usSourcePort, + /* [out] */ __RPC__out ULONG *pulOriginalDestinationAddress, + /* [out] */ __RPC__out USHORT *pusOriginalDestinationPort, + /* [out] */ __RPC__out ULONG *pulRemapDestinationAddress, + /* [out] */ __RPC__out USHORT *pulRemapDestinationPort, + /* [out] */ __RPC__deref_out_opt IAdapterInfo **ppReceiveAdapter) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrimaryControlChannelVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPrimaryControlChannel * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPrimaryControlChannel * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPrimaryControlChannel * This); + + DECLSPEC_XFGVIRT(IPrimaryControlChannel, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IPrimaryControlChannel * This); + + DECLSPEC_XFGVIRT(IPrimaryControlChannel, GetChannelProperties) + HRESULT ( STDMETHODCALLTYPE *GetChannelProperties )( + __RPC__in IPrimaryControlChannel * This, + /* [out] */ __RPC__deref_out_opt ALG_PRIMARY_CHANNEL_PROPERTIES **ppProperties); + + DECLSPEC_XFGVIRT(IPrimaryControlChannel, GetOriginalDestinationInformation) + HRESULT ( STDMETHODCALLTYPE *GetOriginalDestinationInformation )( + __RPC__in IPrimaryControlChannel * This, + /* [in] */ ULONG ulSourceAddress, + /* [in] */ USHORT usSourcePort, + /* [out] */ __RPC__out ULONG *pulOriginalDestinationAddress, + /* [out] */ __RPC__out USHORT *pusOriginalDestinationPort, + /* [out] */ __RPC__out ULONG *pulRemapDestinationAddress, + /* [out] */ __RPC__out USHORT *pulRemapDestinationPort, + /* [out] */ __RPC__deref_out_opt IAdapterInfo **ppReceiveAdapter); + + END_INTERFACE + } IPrimaryControlChannelVtbl; + + interface IPrimaryControlChannel + { + CONST_VTBL struct IPrimaryControlChannelVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrimaryControlChannel_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrimaryControlChannel_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrimaryControlChannel_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrimaryControlChannel_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IPrimaryControlChannel_GetChannelProperties(This,ppProperties) \ + ( (This)->lpVtbl -> GetChannelProperties(This,ppProperties) ) + +#define IPrimaryControlChannel_GetOriginalDestinationInformation(This,ulSourceAddress,usSourcePort,pulOriginalDestinationAddress,pusOriginalDestinationPort,pulRemapDestinationAddress,pulRemapDestinationPort,ppReceiveAdapter) \ + ( (This)->lpVtbl -> GetOriginalDestinationInformation(This,ulSourceAddress,usSourcePort,pulOriginalDestinationAddress,pusOriginalDestinationPort,pulRemapDestinationAddress,pulRemapDestinationPort,ppReceiveAdapter) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrimaryControlChannel_INTERFACE_DEFINED__ */ + + +#ifndef __ISecondaryControlChannel_INTERFACE_DEFINED__ +#define __ISecondaryControlChannel_INTERFACE_DEFINED__ + +/* interface ISecondaryControlChannel */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ISecondaryControlChannel; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A23F9D10-714C-41FE-8471-FFB19BC28454") + ISecondaryControlChannel : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChannelProperties( + /* [out] */ __RPC__deref_out_opt ALG_SECONDARY_CHANNEL_PROPERTIES **ppProperties) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalDestinationInformation( + /* [in] */ ULONG ulSourceAddress, + /* [in] */ USHORT usSourcePort, + /* [out] */ __RPC__out ULONG *pulOriginalDestinationAddress, + /* [out] */ __RPC__out USHORT *pusOriginalDestinationPort, + /* [out] */ __RPC__deref_out_opt IAdapterInfo **ppReceiveAdapter) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISecondaryControlChannelVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISecondaryControlChannel * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISecondaryControlChannel * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISecondaryControlChannel * This); + + DECLSPEC_XFGVIRT(ISecondaryControlChannel, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in ISecondaryControlChannel * This); + + DECLSPEC_XFGVIRT(ISecondaryControlChannel, GetChannelProperties) + HRESULT ( STDMETHODCALLTYPE *GetChannelProperties )( + __RPC__in ISecondaryControlChannel * This, + /* [out] */ __RPC__deref_out_opt ALG_SECONDARY_CHANNEL_PROPERTIES **ppProperties); + + DECLSPEC_XFGVIRT(ISecondaryControlChannel, GetOriginalDestinationInformation) + HRESULT ( STDMETHODCALLTYPE *GetOriginalDestinationInformation )( + __RPC__in ISecondaryControlChannel * This, + /* [in] */ ULONG ulSourceAddress, + /* [in] */ USHORT usSourcePort, + /* [out] */ __RPC__out ULONG *pulOriginalDestinationAddress, + /* [out] */ __RPC__out USHORT *pusOriginalDestinationPort, + /* [out] */ __RPC__deref_out_opt IAdapterInfo **ppReceiveAdapter); + + END_INTERFACE + } ISecondaryControlChannelVtbl; + + interface ISecondaryControlChannel + { + CONST_VTBL struct ISecondaryControlChannelVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISecondaryControlChannel_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISecondaryControlChannel_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISecondaryControlChannel_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISecondaryControlChannel_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define ISecondaryControlChannel_GetChannelProperties(This,ppProperties) \ + ( (This)->lpVtbl -> GetChannelProperties(This,ppProperties) ) + +#define ISecondaryControlChannel_GetOriginalDestinationInformation(This,ulSourceAddress,usSourcePort,pulOriginalDestinationAddress,pusOriginalDestinationPort,ppReceiveAdapter) \ + ( (This)->lpVtbl -> GetOriginalDestinationInformation(This,ulSourceAddress,usSourcePort,pulOriginalDestinationAddress,pusOriginalDestinationPort,ppReceiveAdapter) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISecondaryControlChannel_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumAdapterInfo_INTERFACE_DEFINED__ +#define __IEnumAdapterInfo_INTERFACE_DEFINED__ + +/* interface IEnumAdapterInfo */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumAdapterInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A23F9D11-714C-41FE-8471-FFB19BC28454") + IEnumAdapterInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pCeltFetched) IAdapterInfo **rgAI, + /* [out] */ __RPC__out ULONG *pCeltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumAdapterInfo **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumAdapterInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumAdapterInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumAdapterInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumAdapterInfo * This); + + DECLSPEC_XFGVIRT(IEnumAdapterInfo, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumAdapterInfo * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pCeltFetched) IAdapterInfo **rgAI, + /* [out] */ __RPC__out ULONG *pCeltFetched); + + DECLSPEC_XFGVIRT(IEnumAdapterInfo, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumAdapterInfo * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumAdapterInfo, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumAdapterInfo * This); + + DECLSPEC_XFGVIRT(IEnumAdapterInfo, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumAdapterInfo * This, + /* [out] */ __RPC__deref_out_opt IEnumAdapterInfo **ppEnum); + + END_INTERFACE + } IEnumAdapterInfoVtbl; + + interface IEnumAdapterInfo + { + CONST_VTBL struct IEnumAdapterInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumAdapterInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumAdapterInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumAdapterInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumAdapterInfo_Next(This,celt,rgAI,pCeltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgAI,pCeltFetched) ) + +#define IEnumAdapterInfo_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumAdapterInfo_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumAdapterInfo_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumAdapterInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IAdapterNotificationSink_INTERFACE_DEFINED__ +#define __IAdapterNotificationSink_INTERFACE_DEFINED__ + +/* interface IAdapterNotificationSink */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAdapterNotificationSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("44AB2DC3-23B2-47DE-8228-2E1CCEEB9911") + IAdapterNotificationSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AdapterAdded( + __RPC__in_opt IAdapterInfo *pAdapter) = 0; + + virtual HRESULT STDMETHODCALLTYPE AdapterRemoved( + __RPC__in_opt IAdapterInfo *pAdapter) = 0; + + virtual HRESULT STDMETHODCALLTYPE AdapterModified( + __RPC__in_opt IAdapterInfo *pAdapter) = 0; + + virtual HRESULT STDMETHODCALLTYPE AdapterUpdatePortMapping( + __RPC__in_opt IAdapterInfo *pAdapter) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAdapterNotificationSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAdapterNotificationSink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAdapterNotificationSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAdapterNotificationSink * This); + + DECLSPEC_XFGVIRT(IAdapterNotificationSink, AdapterAdded) + HRESULT ( STDMETHODCALLTYPE *AdapterAdded )( + __RPC__in IAdapterNotificationSink * This, + __RPC__in_opt IAdapterInfo *pAdapter); + + DECLSPEC_XFGVIRT(IAdapterNotificationSink, AdapterRemoved) + HRESULT ( STDMETHODCALLTYPE *AdapterRemoved )( + __RPC__in IAdapterNotificationSink * This, + __RPC__in_opt IAdapterInfo *pAdapter); + + DECLSPEC_XFGVIRT(IAdapterNotificationSink, AdapterModified) + HRESULT ( STDMETHODCALLTYPE *AdapterModified )( + __RPC__in IAdapterNotificationSink * This, + __RPC__in_opt IAdapterInfo *pAdapter); + + DECLSPEC_XFGVIRT(IAdapterNotificationSink, AdapterUpdatePortMapping) + HRESULT ( STDMETHODCALLTYPE *AdapterUpdatePortMapping )( + __RPC__in IAdapterNotificationSink * This, + __RPC__in_opt IAdapterInfo *pAdapter); + + END_INTERFACE + } IAdapterNotificationSinkVtbl; + + interface IAdapterNotificationSink + { + CONST_VTBL struct IAdapterNotificationSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAdapterNotificationSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAdapterNotificationSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAdapterNotificationSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAdapterNotificationSink_AdapterAdded(This,pAdapter) \ + ( (This)->lpVtbl -> AdapterAdded(This,pAdapter) ) + +#define IAdapterNotificationSink_AdapterRemoved(This,pAdapter) \ + ( (This)->lpVtbl -> AdapterRemoved(This,pAdapter) ) + +#define IAdapterNotificationSink_AdapterModified(This,pAdapter) \ + ( (This)->lpVtbl -> AdapterModified(This,pAdapter) ) + +#define IAdapterNotificationSink_AdapterUpdatePortMapping(This,pAdapter) \ + ( (This)->lpVtbl -> AdapterUpdatePortMapping(This,pAdapter) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAdapterNotificationSink_INTERFACE_DEFINED__ */ + + +#ifndef __IApplicationGatewayServices_INTERFACE_DEFINED__ +#define __IApplicationGatewayServices_INTERFACE_DEFINED__ + +/* interface IApplicationGatewayServices */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IApplicationGatewayServices; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5134842A-FDCE-485D-93CD-DE1640643BBE") + IApplicationGatewayServices : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreatePrimaryControlChannel( + /* [in] */ ULONG uAdapterIndex, + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ USHORT usPortToCapture, + /* [in] */ ALG_CAPTURE eCaptureType, + /* [in] */ BOOL fCaptureInbound, + /* [in] */ ULONG ulListenAddress, + /* [in] */ USHORT usListenPort, + /* [out] */ __RPC__deref_out_opt IPrimaryControlChannel **ppIControlChannel) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSecondaryControlChannel( + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ ULONG ulPrivateAddress, + /* [in] */ USHORT usPrivatePort, + /* [in] */ ULONG ulPublicAddress, + /* [in] */ USHORT usPublicPort, + /* [in] */ ULONG ulRemoteAddress, + /* [in] */ USHORT usRemotePort, + /* [in] */ ULONG ulListenAddress, + /* [in] */ USHORT usListenPort, + /* [in] */ ALG_DIRECTION eDirection, + /* [in] */ BOOL fPersistent, + /* [out] */ __RPC__deref_out_opt ISecondaryControlChannel **ppControlChannel) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBestSourceAddressForDestinationAddress( + /* [in] */ ULONG ulDstAddress, + /* [in] */ BOOL fDemandDial, + /* [out] */ __RPC__out ULONG *pulBestSrcAddress) = 0; + + virtual HRESULT STDMETHODCALLTYPE PrepareProxyConnection( + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ ULONG ulSrcAddress, + /* [in] */ USHORT usSrcPort, + /* [in] */ ULONG ulDstAddress, + /* [in] */ USHORT usDstPort, + /* [in] */ BOOL fNoTimeout, + /* [out] */ __RPC__deref_out_opt IPendingProxyConnection **ppPendingConnection) = 0; + + virtual HRESULT STDMETHODCALLTYPE PrepareSourceModifiedProxyConnection( + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ ULONG ulSrcAddress, + /* [in] */ USHORT usSrcPort, + /* [in] */ ULONG ulDstAddress, + /* [in] */ USHORT usDstPort, + /* [in] */ ULONG ulNewSrcAddress, + /* [in] */ USHORT usNewSourcePort, + /* [out] */ __RPC__deref_out_opt IPendingProxyConnection **ppPendingConnection) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDataChannel( + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ ULONG ulPrivateAddress, + /* [in] */ USHORT usPrivatePort, + /* [in] */ ULONG ulPublicAddress, + /* [in] */ USHORT usPublicPort, + /* [in] */ ULONG ulRemoteAddress, + /* [in] */ USHORT usRemotePort, + /* [in] */ ALG_DIRECTION eDirection, + /* [in] */ ALG_NOTIFICATION eDesiredNotification, + /* [in] */ BOOL fNoTimeout, + /* [out] */ __RPC__deref_out_opt IDataChannel **ppDataChannel) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePersistentDataChannel( + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ ULONG ulPrivateAddress, + /* [in] */ USHORT usPrivatePort, + /* [in] */ ULONG ulPublicAddress, + /* [in] */ USHORT usPublicPort, + /* [in] */ ULONG ulRemoteAddress, + /* [in] */ USHORT usRemotePort, + /* [in] */ ALG_DIRECTION eDirection, + /* [out] */ __RPC__deref_out_opt IPersistentDataChannel **ppIPersistentDataChannel) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReservePort( + /* [in] */ USHORT usPortCount, + /* [out] */ __RPC__out USHORT *pusReservedPort) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseReservedPort( + /* [in] */ USHORT usReservedPortBase, + /* [in] */ USHORT usPortCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateAdapters( + /* [out] */ __RPC__deref_out_opt IEnumAdapterInfo **ppIEnumAdapterInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE StartAdapterNotifications( + /* [in] */ __RPC__in_opt IAdapterNotificationSink *pSink, + /* [in] */ __RPC__in DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE StopAdapterNotifications( + /* [in] */ DWORD dwCookieOfSink) = 0; + + virtual HRESULT STDMETHODCALLTYPE LookupAdapterPortMapping( + /* [in] */ ULONG ulAdapterIndex, + /* [in] */ UCHAR Protocol, + /* [in] */ ULONG ulDestinationAddress, + /* [in] */ USHORT usDestinationPort, + /* [out] */ __RPC__out ULONG *pulRemapAddress, + /* [out] */ __RPC__out USHORT *pusRemapPort) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IApplicationGatewayServicesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IApplicationGatewayServices * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IApplicationGatewayServices * This); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, CreatePrimaryControlChannel) + HRESULT ( STDMETHODCALLTYPE *CreatePrimaryControlChannel )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ ULONG uAdapterIndex, + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ USHORT usPortToCapture, + /* [in] */ ALG_CAPTURE eCaptureType, + /* [in] */ BOOL fCaptureInbound, + /* [in] */ ULONG ulListenAddress, + /* [in] */ USHORT usListenPort, + /* [out] */ __RPC__deref_out_opt IPrimaryControlChannel **ppIControlChannel); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, CreateSecondaryControlChannel) + HRESULT ( STDMETHODCALLTYPE *CreateSecondaryControlChannel )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ ULONG ulPrivateAddress, + /* [in] */ USHORT usPrivatePort, + /* [in] */ ULONG ulPublicAddress, + /* [in] */ USHORT usPublicPort, + /* [in] */ ULONG ulRemoteAddress, + /* [in] */ USHORT usRemotePort, + /* [in] */ ULONG ulListenAddress, + /* [in] */ USHORT usListenPort, + /* [in] */ ALG_DIRECTION eDirection, + /* [in] */ BOOL fPersistent, + /* [out] */ __RPC__deref_out_opt ISecondaryControlChannel **ppControlChannel); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, GetBestSourceAddressForDestinationAddress) + HRESULT ( STDMETHODCALLTYPE *GetBestSourceAddressForDestinationAddress )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ ULONG ulDstAddress, + /* [in] */ BOOL fDemandDial, + /* [out] */ __RPC__out ULONG *pulBestSrcAddress); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, PrepareProxyConnection) + HRESULT ( STDMETHODCALLTYPE *PrepareProxyConnection )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ ULONG ulSrcAddress, + /* [in] */ USHORT usSrcPort, + /* [in] */ ULONG ulDstAddress, + /* [in] */ USHORT usDstPort, + /* [in] */ BOOL fNoTimeout, + /* [out] */ __RPC__deref_out_opt IPendingProxyConnection **ppPendingConnection); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, PrepareSourceModifiedProxyConnection) + HRESULT ( STDMETHODCALLTYPE *PrepareSourceModifiedProxyConnection )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ ULONG ulSrcAddress, + /* [in] */ USHORT usSrcPort, + /* [in] */ ULONG ulDstAddress, + /* [in] */ USHORT usDstPort, + /* [in] */ ULONG ulNewSrcAddress, + /* [in] */ USHORT usNewSourcePort, + /* [out] */ __RPC__deref_out_opt IPendingProxyConnection **ppPendingConnection); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, CreateDataChannel) + HRESULT ( STDMETHODCALLTYPE *CreateDataChannel )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ ULONG ulPrivateAddress, + /* [in] */ USHORT usPrivatePort, + /* [in] */ ULONG ulPublicAddress, + /* [in] */ USHORT usPublicPort, + /* [in] */ ULONG ulRemoteAddress, + /* [in] */ USHORT usRemotePort, + /* [in] */ ALG_DIRECTION eDirection, + /* [in] */ ALG_NOTIFICATION eDesiredNotification, + /* [in] */ BOOL fNoTimeout, + /* [out] */ __RPC__deref_out_opt IDataChannel **ppDataChannel); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, CreatePersistentDataChannel) + HRESULT ( STDMETHODCALLTYPE *CreatePersistentDataChannel )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ ALG_PROTOCOL eProtocol, + /* [in] */ ULONG ulPrivateAddress, + /* [in] */ USHORT usPrivatePort, + /* [in] */ ULONG ulPublicAddress, + /* [in] */ USHORT usPublicPort, + /* [in] */ ULONG ulRemoteAddress, + /* [in] */ USHORT usRemotePort, + /* [in] */ ALG_DIRECTION eDirection, + /* [out] */ __RPC__deref_out_opt IPersistentDataChannel **ppIPersistentDataChannel); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, ReservePort) + HRESULT ( STDMETHODCALLTYPE *ReservePort )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ USHORT usPortCount, + /* [out] */ __RPC__out USHORT *pusReservedPort); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, ReleaseReservedPort) + HRESULT ( STDMETHODCALLTYPE *ReleaseReservedPort )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ USHORT usReservedPortBase, + /* [in] */ USHORT usPortCount); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, EnumerateAdapters) + HRESULT ( STDMETHODCALLTYPE *EnumerateAdapters )( + __RPC__in IApplicationGatewayServices * This, + /* [out] */ __RPC__deref_out_opt IEnumAdapterInfo **ppIEnumAdapterInfo); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, StartAdapterNotifications) + HRESULT ( STDMETHODCALLTYPE *StartAdapterNotifications )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ __RPC__in_opt IAdapterNotificationSink *pSink, + /* [in] */ __RPC__in DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, StopAdapterNotifications) + HRESULT ( STDMETHODCALLTYPE *StopAdapterNotifications )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ DWORD dwCookieOfSink); + + DECLSPEC_XFGVIRT(IApplicationGatewayServices, LookupAdapterPortMapping) + HRESULT ( STDMETHODCALLTYPE *LookupAdapterPortMapping )( + __RPC__in IApplicationGatewayServices * This, + /* [in] */ ULONG ulAdapterIndex, + /* [in] */ UCHAR Protocol, + /* [in] */ ULONG ulDestinationAddress, + /* [in] */ USHORT usDestinationPort, + /* [out] */ __RPC__out ULONG *pulRemapAddress, + /* [out] */ __RPC__out USHORT *pusRemapPort); + + END_INTERFACE + } IApplicationGatewayServicesVtbl; + + interface IApplicationGatewayServices + { + CONST_VTBL struct IApplicationGatewayServicesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IApplicationGatewayServices_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IApplicationGatewayServices_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IApplicationGatewayServices_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IApplicationGatewayServices_CreatePrimaryControlChannel(This,uAdapterIndex,eProtocol,usPortToCapture,eCaptureType,fCaptureInbound,ulListenAddress,usListenPort,ppIControlChannel) \ + ( (This)->lpVtbl -> CreatePrimaryControlChannel(This,uAdapterIndex,eProtocol,usPortToCapture,eCaptureType,fCaptureInbound,ulListenAddress,usListenPort,ppIControlChannel) ) + +#define IApplicationGatewayServices_CreateSecondaryControlChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,ulListenAddress,usListenPort,eDirection,fPersistent,ppControlChannel) \ + ( (This)->lpVtbl -> CreateSecondaryControlChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,ulListenAddress,usListenPort,eDirection,fPersistent,ppControlChannel) ) + +#define IApplicationGatewayServices_GetBestSourceAddressForDestinationAddress(This,ulDstAddress,fDemandDial,pulBestSrcAddress) \ + ( (This)->lpVtbl -> GetBestSourceAddressForDestinationAddress(This,ulDstAddress,fDemandDial,pulBestSrcAddress) ) + +#define IApplicationGatewayServices_PrepareProxyConnection(This,eProtocol,ulSrcAddress,usSrcPort,ulDstAddress,usDstPort,fNoTimeout,ppPendingConnection) \ + ( (This)->lpVtbl -> PrepareProxyConnection(This,eProtocol,ulSrcAddress,usSrcPort,ulDstAddress,usDstPort,fNoTimeout,ppPendingConnection) ) + +#define IApplicationGatewayServices_PrepareSourceModifiedProxyConnection(This,eProtocol,ulSrcAddress,usSrcPort,ulDstAddress,usDstPort,ulNewSrcAddress,usNewSourcePort,ppPendingConnection) \ + ( (This)->lpVtbl -> PrepareSourceModifiedProxyConnection(This,eProtocol,ulSrcAddress,usSrcPort,ulDstAddress,usDstPort,ulNewSrcAddress,usNewSourcePort,ppPendingConnection) ) + +#define IApplicationGatewayServices_CreateDataChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,eDirection,eDesiredNotification,fNoTimeout,ppDataChannel) \ + ( (This)->lpVtbl -> CreateDataChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,eDirection,eDesiredNotification,fNoTimeout,ppDataChannel) ) + +#define IApplicationGatewayServices_CreatePersistentDataChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,eDirection,ppIPersistentDataChannel) \ + ( (This)->lpVtbl -> CreatePersistentDataChannel(This,eProtocol,ulPrivateAddress,usPrivatePort,ulPublicAddress,usPublicPort,ulRemoteAddress,usRemotePort,eDirection,ppIPersistentDataChannel) ) + +#define IApplicationGatewayServices_ReservePort(This,usPortCount,pusReservedPort) \ + ( (This)->lpVtbl -> ReservePort(This,usPortCount,pusReservedPort) ) + +#define IApplicationGatewayServices_ReleaseReservedPort(This,usReservedPortBase,usPortCount) \ + ( (This)->lpVtbl -> ReleaseReservedPort(This,usReservedPortBase,usPortCount) ) + +#define IApplicationGatewayServices_EnumerateAdapters(This,ppIEnumAdapterInfo) \ + ( (This)->lpVtbl -> EnumerateAdapters(This,ppIEnumAdapterInfo) ) + +#define IApplicationGatewayServices_StartAdapterNotifications(This,pSink,pdwCookie) \ + ( (This)->lpVtbl -> StartAdapterNotifications(This,pSink,pdwCookie) ) + +#define IApplicationGatewayServices_StopAdapterNotifications(This,dwCookieOfSink) \ + ( (This)->lpVtbl -> StopAdapterNotifications(This,dwCookieOfSink) ) + +#define IApplicationGatewayServices_LookupAdapterPortMapping(This,ulAdapterIndex,Protocol,ulDestinationAddress,usDestinationPort,pulRemapAddress,pusRemapPort) \ + ( (This)->lpVtbl -> LookupAdapterPortMapping(This,ulAdapterIndex,Protocol,ulDestinationAddress,usDestinationPort,pulRemapAddress,pusRemapPort) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IApplicationGatewayServices_INTERFACE_DEFINED__ */ + + +#ifndef __IApplicationGateway_INTERFACE_DEFINED__ +#define __IApplicationGateway_INTERFACE_DEFINED__ + +/* interface IApplicationGateway */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IApplicationGateway; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5134842B-FDCE-485D-93CD-DE1640643BBE") + IApplicationGateway : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IApplicationGatewayServices *pAlgServices) = 0; + + virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IApplicationGatewayVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IApplicationGateway * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IApplicationGateway * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IApplicationGateway * This); + + DECLSPEC_XFGVIRT(IApplicationGateway, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IApplicationGateway * This, + /* [in] */ __RPC__in_opt IApplicationGatewayServices *pAlgServices); + + DECLSPEC_XFGVIRT(IApplicationGateway, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IApplicationGateway * This); + + END_INTERFACE + } IApplicationGatewayVtbl; + + interface IApplicationGateway + { + CONST_VTBL struct IApplicationGatewayVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IApplicationGateway_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IApplicationGateway_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IApplicationGateway_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IApplicationGateway_Initialize(This,pAlgServices) \ + ( (This)->lpVtbl -> Initialize(This,pAlgServices) ) + +#define IApplicationGateway_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IApplicationGateway_INTERFACE_DEFINED__ */ + + + +#ifndef __ALGLib_LIBRARY_DEFINED__ +#define __ALGLib_LIBRARY_DEFINED__ + +/* library ALGLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_ALGLib; + +EXTERN_C const CLSID CLSID_ApplicationGatewayServices; + +#ifdef __cplusplus + +class DECLSPEC_UUID("F8ADE1D3-49DF-4B75-9005-EF9508E6A337") +ApplicationGatewayServices; +#endif + +EXTERN_C const CLSID CLSID_PrimaryControlChannel; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3CEB5509-C1CD-432F-9D8F-65D1E286AA80") +PrimaryControlChannel; +#endif + +EXTERN_C const CLSID CLSID_SecondaryControlChannel; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7B3181A0-C92F-4567-B0FA-CD9A10ECD7D1") +SecondaryControlChannel; +#endif + +EXTERN_C const CLSID CLSID_AdapterInfo; + +#ifdef __cplusplus + +class DECLSPEC_UUID("6F9942C9-C1B1-4AB5-93DA-6058991DC8F3") +AdapterInfo; +#endif + +EXTERN_C const CLSID CLSID_EnumAdapterInfo; + +#ifdef __cplusplus + +class DECLSPEC_UUID("6F9942CA-C1B1-4AB5-93DA-6058991DC8F3") +EnumAdapterInfo; +#endif + +EXTERN_C const CLSID CLSID_PendingProxyConnection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("D8A68E5E-2B37-426C-A329-C117C14C429E") +PendingProxyConnection; +#endif + +EXTERN_C const CLSID CLSID_DataChannel; + +#ifdef __cplusplus + +class DECLSPEC_UUID("BBB36F15-408D-4056-8C27-920843D40BE5") +DataChannel; +#endif + +EXTERN_C const CLSID CLSID_PersistentDataChannel; + +#ifdef __cplusplus + +class DECLSPEC_UUID("BC9B54AB-7883-4C13-909F-033D03267990") +PersistentDataChannel; +#endif +#endif /* __ALGLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_alg_0000_0011 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_alg_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_alg_0000_0011_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/alg.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/alg.idl new file mode 100644 index 0000000000000000000000000000000000000000..824accaebe39492c94c2b1a51a17c0143ec2c822 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/alg.idl @@ -0,0 +1,606 @@ +// ALG.idl : IDL source for ALG.dll +// + +// This file will be processed by the MIDL tool to +// produce the type library (ALG.tlb) and marshalling code. + + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (C) Microsoft Corporation, 1992-2001.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("// MODULE: alg.h") +cpp_quote("//") + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + + + const int ALG_MAXIMUM_PORT_RANGE_SIZE=10; + + + typedef enum _ALG_PROTOCOL + { + eALG_TCP = 0x01, + eALG_UDP = 0x02 + + } ALG_PROTOCOL; + + + + typedef enum _ALG_CAPTURE + { + eALG_SOURCE_CAPTURE = 0x01, + eALG_DESTINATION_CAPTURE = 0x02 + + } ALG_CAPTURE; + + + + typedef enum _ALG_DIRECTION + { + eALG_INBOUND = 0x01, + eALG_OUTBOUND = 0x02, + eALG_BOTH = 0x03 + + } ALG_DIRECTION; + + + typedef enum _ALG_ADAPTER_TYPE + { + eALG_PRIVATE = 0x01, + eALG_BOUNDARY = 0x02, + eALG_FIREWALLED = 0x04 + + } ALG_ADAPTER_TYPE; + + + + typedef enum _ALG_NOTIFICATION + { + eALG_NONE = 0x00, + eALG_SESSION_CREATION = 0x01, + eALG_SESSION_DELETION = 0x02, + eALG_SESSION_BOTH = 0x03 + + } ALG_NOTIFICATION; + + + + typedef struct _ALG_PRIMARY_CHANNEL_PROPERTIES + { + ALG_PROTOCOL eProtocol; + USHORT usCapturePort; + ALG_CAPTURE eCaptureType; + BOOL fCaptureInbound; + ULONG ulListeningAddress; + USHORT usListeningPort; + ULONG ulAdapterIndex; + + } ALG_PRIMARY_CHANNEL_PROPERTIES; + + + typedef struct _ALG_SECONDARY_CHANNEL_PROPERTIES + { + ALG_PROTOCOL eProtocol; + ULONG ulPrivateAddress; + USHORT usPrivatePort; + ULONG ulPublicAddress; + USHORT usPublicPort; + ULONG ulRemoteAddress; + USHORT usRemotePort; + ULONG ulListenAddress; + USHORT usListenPort; + ALG_DIRECTION eDirection; + BOOL fPersistent; + + } ALG_SECONDARY_CHANNEL_PROPERTIES; + + + typedef struct _ALG_DATA_CHANNEL_PROPERTIES + { + ALG_PROTOCOL eProtocol; + ULONG ulPrivateAddress; + USHORT usPrivatePort; + ULONG ulPublicAddress; + USHORT usPublicPort; + ULONG ulRemoteAddress; + USHORT usRemotePort; + ALG_DIRECTION eDirection; + ALG_NOTIFICATION eDesiredNotification; + + } ALG_DATA_CHANNEL_PROPERTIES; + + + + typedef struct _ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES + { + ALG_PROTOCOL eProtocol; + ULONG ulPrivateAddress; + USHORT usPrivatePort; + ULONG ulPublicAddress; + USHORT usPublicPort; + ULONG ulRemoteAddress; + USHORT usRemotePort; + ALG_DIRECTION eDirection; + + } ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES; + + + + + + + + + [ + object, + uuid(480BF94A-09FD-4F8A-A3E0-B0700282D84D), + pointer_default(unique) + ] + interface IAdapterInfo : IUnknown + { + HRESULT GetAdapterIndex( + [out] ULONG* pulIndex); + + HRESULT GetAdapterType( + [out] ALG_ADAPTER_TYPE* pAdapterType); + + HRESULT GetAdapterAddresses( + [out] ULONG* pulAddressCount, + [out, size_is( , *pulAddressCount)] ULONG** prgAddresses + ); + }; + + + + [ + object, + uuid(B68E5043-3E3D-4CC2-B9C1-5F8F88FEE81C), + pointer_default(unique) + ] + interface IPendingProxyConnection : IUnknown + { + HRESULT Cancel(); + }; + + + + [ + object, + uuid(AD42D12A-4AD0-4856-919E-E854C91D1856), + pointer_default(unique), + local + ] + interface IDataChannel : IUnknown + { + HRESULT Cancel(); + HRESULT GetChannelProperties( + [out] ALG_DATA_CHANNEL_PROPERTIES** ppProperties + ); + + HRESULT GetSessionCreationEventHandle( + [out] HANDLE* pHandle + ); + + HRESULT GetSessionDeletionEventHandle( + [out] HANDLE* pHandle + ); + }; + + + + [ + object, + uuid(A180E934-D92A-415D-9144-759F8054E8F6), + pointer_default(unique) + ] + interface IPersistentDataChannel : IUnknown + { + HRESULT Cancel(); + HRESULT GetChannelProperties( + [out] ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES** ppProperties + ); + }; + + + + + + + + [ + object, + uuid(1A2E8B62-9012-4BE6-84AE-32BD66BA657A), + pointer_default(unique) + ] + + interface IPrimaryControlChannel : IUnknown + { + + HRESULT Cancel(); + + HRESULT GetChannelProperties( + [out] ALG_PRIMARY_CHANNEL_PROPERTIES** ppProperties + ); + + HRESULT GetOriginalDestinationInformation( + [in] ULONG ulSourceAddress, + [in] USHORT usSourcePort, + [out] ULONG* pulOriginalDestinationAddress, + [out] USHORT* pusOriginalDestinationPort, + [out] ULONG* pulRemapDestinationAddress, + [out] USHORT* pulRemapDestinationPort, + [out] IAdapterInfo ** ppReceiveAdapter + ); + + }; + + + + + + [ + object, + uuid(A23F9D10-714C-41FE-8471-FFB19BC28454), + pointer_default(unique) + ] + + interface ISecondaryControlChannel : IUnknown + { + HRESULT Cancel(); + + HRESULT GetChannelProperties( + [out] ALG_SECONDARY_CHANNEL_PROPERTIES ** ppProperties + ); + + HRESULT GetOriginalDestinationInformation( + [in] ULONG ulSourceAddress, + [in] USHORT usSourcePort, + [out] ULONG* pulOriginalDestinationAddress, + [out] USHORT* pusOriginalDestinationPort, + [out] IAdapterInfo** ppReceiveAdapter + ); + }; + + + [ + object, + uuid(A23F9D11-714C-41FE-8471-FFB19BC28454), + pointer_default(unique) + ] + + interface IEnumAdapterInfo : IUnknown + { + HRESULT Next( + [in] ULONG celt, + [out, size_is(celt), length_is(*pCeltFetched)] IAdapterInfo ** rgAI, + [out] ULONG * pCeltFetched + ); + + + HRESULT Skip( + [in] ULONG celt + ); + + HRESULT Reset( + ); + + HRESULT Clone( + [out] IEnumAdapterInfo ** ppEnum + ); + + } + + + + + + + + // + // Implemented by ISV in there ALG proxy's + // + [ + object, + uuid(44AB2DC3-23B2-47DE-8228-2E1CCEEB9911), + + helpstring("IAdapterNotificationSink Interface"), + pointer_default(unique) + ] + interface IAdapterNotificationSink : IUnknown + { + HRESULT AdapterAdded( + IAdapterInfo * pAdapter + ); + + HRESULT AdapterRemoved( + IAdapterInfo* pAdapter + ); + + HRESULT AdapterModified( + IAdapterInfo* pAdapter + ); + HRESULT AdapterUpdatePortMapping( + IAdapterInfo* pAdapter + ); + }; + + + + + + + // + // ALG main public interface + // + [ + object, + uuid(5134842A-FDCE-485D-93CD-DE1640643BBE), + pointer_default(unique) + ] + + interface IApplicationGatewayServices : IUnknown + { + HRESULT CreatePrimaryControlChannel( + [in] ULONG uAdapterIndex, + [in] ALG_PROTOCOL eProtocol, + [in] USHORT usPortToCapture, + [in] ALG_CAPTURE eCaptureType, + [in] BOOL fCaptureInbound, + [in] ULONG ulListenAddress, + [in] USHORT usListenPort, + [out] IPrimaryControlChannel** ppIControlChannel + ); + + HRESULT CreateSecondaryControlChannel( + [in] ALG_PROTOCOL eProtocol, + [in] ULONG ulPrivateAddress, + [in] USHORT usPrivatePort, + [in] ULONG ulPublicAddress, + [in] USHORT usPublicPort, + [in] ULONG ulRemoteAddress, + [in] USHORT usRemotePort, + [in] ULONG ulListenAddress, + [in] USHORT usListenPort, + [in] ALG_DIRECTION eDirection, + [in] BOOL fPersistent, + [out] ISecondaryControlChannel** ppControlChannel + ); + + + HRESULT GetBestSourceAddressForDestinationAddress( + [in] ULONG ulDstAddress, + [in] BOOL fDemandDial, + [out] ULONG* pulBestSrcAddress + ); + + HRESULT PrepareProxyConnection( + [in] ALG_PROTOCOL eProtocol, + [in] ULONG ulSrcAddress, + [in] USHORT usSrcPort, + [in] ULONG ulDstAddress, + [in] USHORT usDstPort, + [in] BOOL fNoTimeout, + [out] IPendingProxyConnection** ppPendingConnection + ); + + HRESULT PrepareSourceModifiedProxyConnection( + [in] ALG_PROTOCOL eProtocol, + [in] ULONG ulSrcAddress, + [in] USHORT usSrcPort, + [in] ULONG ulDstAddress, + [in] USHORT usDstPort, + [in] ULONG ulNewSrcAddress, + [in] USHORT usNewSourcePort, + [out] IPendingProxyConnection** ppPendingConnection + ); + + HRESULT CreateDataChannel( + [in] ALG_PROTOCOL eProtocol, + [in] ULONG ulPrivateAddress, + [in] USHORT usPrivatePort, + [in] ULONG ulPublicAddress, + [in] USHORT usPublicPort, + [in] ULONG ulRemoteAddress, + [in] USHORT usRemotePort, + [in] ALG_DIRECTION eDirection, + [in] ALG_NOTIFICATION eDesiredNotification, + [in] BOOL fNoTimeout, + [out] IDataChannel** ppDataChannel + ); + + + HRESULT CreatePersistentDataChannel( + [in] ALG_PROTOCOL eProtocol, + [in] ULONG ulPrivateAddress, + [in] USHORT usPrivatePort, + [in] ULONG ulPublicAddress, + [in] USHORT usPublicPort, + [in] ULONG ulRemoteAddress, + [in] USHORT usRemotePort, + [in] ALG_DIRECTION eDirection, + [out] IPersistentDataChannel** ppIPersistentDataChannel + ); + + + HRESULT ReservePort( + [in] USHORT usPortCount, + [out] USHORT* pusReservedPort + ); + + HRESULT ReleaseReservedPort( + [in] USHORT usReservedPortBase, + [in] USHORT usPortCount + ); + + HRESULT EnumerateAdapters( + [out] IEnumAdapterInfo ** ppIEnumAdapterInfo + ); + + HRESULT StartAdapterNotifications( + [in] IAdapterNotificationSink* pSink, + [in] DWORD* pdwCookie + ); + + HRESULT StopAdapterNotifications( + [in] DWORD dwCookieOfSink + ); + + HRESULT LookupAdapterPortMapping( + [in] ULONG ulAdapterIndex, + [in] UCHAR Protocol, + [in] ULONG ulDestinationAddress, + [in] USHORT usDestinationPort, + [out] ULONG* pulRemapAddress, + [out] USHORT* pusRemapPort + ); + }; + + + + + + // + // Implemented by the ISV ALG's + // + [ + object, + uuid(5134842B-FDCE-485D-93CD-DE1640643BBE), + pointer_default(unique) + ] + + interface IApplicationGateway : IUnknown + { + HRESULT Initialize( + [in] IApplicationGatewayServices* pAlgServices + ); + + HRESULT Stop(void); + }; + + + + +// +// +// Must be implemented by the ALG Manager +// + + + + + + +[ + uuid(B6D1D098-E235-4B99-BA98-7C624FD875DB), + version(1.0), + helpstring("MyICS 1.0 Type Library") +] + + + +library ALGLib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + + [ + uuid(F8ADE1D3-49DF-4B75-9005-EF9508E6A337), + helpstring("ApplicationGatewayServices Class") + ] + coclass ApplicationGatewayServices + { + [default] interface IApplicationGatewayServices; + }; + + + + [ + uuid(3CEB5509-C1CD-432F-9D8F-65D1E286AA80), + helpstring("PrimaryControlChannel Class") + ] + coclass PrimaryControlChannel + { + [default] interface IPrimaryControlChannel; + }; + + + + [ + uuid(7B3181A0-C92F-4567-B0FA-CD9A10ECD7D1), + helpstring("SecondaryControlChannel Class") + ] + coclass SecondaryControlChannel + { + [default] interface ISecondaryControlChannel; + }; + + + + [ + uuid(6F9942C9-C1B1-4AB5-93DA-6058991DC8F3), + helpstring("AdapterInfo Class") + ] + coclass AdapterInfo + { + [default] interface IAdapterInfo; + }; + + + + [ + uuid(6F9942CA-C1B1-4AB5-93DA-6058991DC8F3), + helpstring("EnumAdapterInfo Class") + ] + coclass EnumAdapterInfo + { + [default] interface IEnumAdapterInfo; + }; + + + + [ + uuid(D8A68E5E-2B37-426C-A329-C117C14C429E), + helpstring("PendingProxyConnection Class") + ] + coclass PendingProxyConnection + { + [default] interface IPendingProxyConnection; + }; + [ + uuid(BBB36F15-408D-4056-8C27-920843D40BE5), + helpstring("DataChannel Class") + ] + + + + coclass DataChannel + { + [default] interface IDataChannel; + }; + [ + uuid(BC9B54AB-7883-4C13-909F-033D03267990), + helpstring("PersistentDataChannel Class") + ] + + + + coclass PersistentDataChannel + { + [default] interface IPersistentDataChannel; + }; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/altidx.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/altidx.idl new file mode 100644 index 0000000000000000000000000000000000000000..c17bdfa95f8a78d5f54d0dcf4bbf6becb784fe44 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/altidx.idl @@ -0,0 +1,47 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: altidx.idl +// +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + +#if( OLEDBVER >= 0x0200 ) + REMOTED_INTERFACE(0c733aa6-2a1c-11ce-ade5-00aa0044773d) +#else + LOCAL_INTERFACE(0c733aa6-2a1c-11ce-ade5-00aa0044773d) +#endif + + +interface IAlterIndex : IUnknown { + + HRESULT AlterIndex( + [in] DBID * pTableId, + [in] DBID * pIndexId, + [in] DBID * pNewIndexId, + [in] ULONG cPropertySets, + [in, out, size_is(cPropertySets)] DBPROPSET rgPropertySets[] + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/alttab.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/alttab.idl new file mode 100644 index 0000000000000000000000000000000000000000..6ec39ab69eea376c554d1ab31924ffab62b7f8be --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/alttab.idl @@ -0,0 +1,53 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: alttab.idl +// +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + +#if( OLEDBVER >= 0x0200 ) + REMOTED_INTERFACE(0c733aa5-2a1c-11ce-ade5-00aa0044773d) +#else + LOCAL_INTERFACE(0c733aa5-2a1c-11ce-ade5-00aa0044773d) +#endif + + +interface IAlterTable : IUnknown { + + HRESULT AlterColumn( + [in] DBID * pTableId, + [in] DBID * pColumnId, + [in] DBCOLUMNDESCFLAGS dwColumnDescFlags, + [in] DBCOLUMNDESC* pColumnDesc + ); + + HRESULT AlterTable( + [in] DBID * pTableId, + [in] DBID * pNewTableId, + [in] ULONG cPropertySets, + [in, out, size_is(cPropertySets)] DBPROPSET rgPropertySets[] + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/amaudio.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amaudio.h new file mode 100644 index 0000000000000000000000000000000000000000..5eb88cff9825efa083366989089ac1a1936456eb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amaudio.h @@ -0,0 +1,89 @@ +//------------------------------------------------------------------------------ +// File: AMAudio.h +// +// Desc: Audio related definitions and interfaces for ActiveMovie. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __AMAUDIO__ +#define __AMAUDIO__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +#include +#include + +// This is the interface the audio renderer supports to give the application +// access to the direct sound object and buffers it is using, to allow the +// application to use things like the 3D features of Direct Sound for the +// soundtrack of a movie being played with Active Movie + +// be nice to our friends in C +#undef INTERFACE +#define INTERFACE IAMDirectSound + +DECLARE_INTERFACE_(IAMDirectSound,IUnknown) +{ + /* IUnknown methods */ + + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /* IAMDirectSound methods */ + + STDMETHOD(GetDirectSoundInterface)(THIS_ LPDIRECTSOUND *lplpds) PURE; + STDMETHOD(GetPrimaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER *lplpdsb) PURE; + STDMETHOD(GetSecondaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER *lplpdsb) PURE; + STDMETHOD(ReleaseDirectSoundInterface)(THIS_ LPDIRECTSOUND lpds) PURE; + STDMETHOD(ReleasePrimaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER lpdsb) PURE; + STDMETHOD(ReleaseSecondaryBufferInterface)(THIS_ LPDIRECTSOUNDBUFFER lpdsb) PURE; + STDMETHOD(SetFocusWindow)(THIS_ HWND, BOOL) PURE ; + STDMETHOD(GetFocusWindow)(THIS_ HWND *, BOOL*) PURE ; +}; + +// Validate WAVEFORMATEX block of length cb +__inline HRESULT AMValidateAndFixWaveFormatEx(_Inout_updates_bytes_(cb) WAVEFORMATEX *pwfx, DWORD cb) +{ + if (cb < sizeof(PCMWAVEFORMAT)) { + return E_INVALIDARG; + } + if (pwfx->wFormatTag != WAVE_FORMAT_PCM) { + if (cb < sizeof(WAVEFORMATEX)) { + return E_INVALIDARG; + } + if (cb < sizeof(WAVEFORMATEX) + pwfx->cbSize ) { + pwfx->cbSize = 0; + } + } + + // Sanity check + if (pwfx->nAvgBytesPerSec > 10000000 || pwfx->nAvgBytesPerSec == 0) { + pwfx->nAvgBytesPerSec = 176400; + } + + if (pwfx->nChannels > 32) { + pwfx->nChannels = 1; + } + + return S_OK; +} + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __AMAUDIO__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/amparse.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amparse.h new file mode 100644 index 0000000000000000000000000000000000000000..f667a19c449d4063dfd1572353165d542125418a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amparse.h @@ -0,0 +1,47 @@ +//------------------------------------------------------------------------------ +// File: AMParse.h +// +// Desc: Interface to the parser to get current time. This is useful for +// multifile playback. +// +// Copyright (c) 1996 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __AMPARSE__ +#define __AMPARSE__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + + +DEFINE_GUID(IID_IAMParse, +0xc47a3420, 0x005c, 0x11d2, 0x90, 0x38, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x98); + +// +// Parser interface - supported by MPEG-2 splitter filter +// +DECLARE_INTERFACE_(IAMParse, IUnknown) { + STDMETHOD(GetParseTime) (THIS_ + _Out_ REFERENCE_TIME *prtCurrent + ) PURE; + STDMETHOD(SetParseTime) (THIS_ + REFERENCE_TIME rtCurrent + ) PURE; + STDMETHOD(Flush) (THIS) PURE; +}; + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __AMPARSE__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/amsi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amsi.h new file mode 100644 index 0000000000000000000000000000000000000000..7e1ea5d5fc196eaa933cc23431a4d52cfaf3d770 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amsi.h @@ -0,0 +1,954 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __amsi_h__ +#define __amsi_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAmsiStream_FWD_DEFINED__ +#define __IAmsiStream_FWD_DEFINED__ +typedef interface IAmsiStream IAmsiStream; + +#endif /* __IAmsiStream_FWD_DEFINED__ */ + + +#ifndef __IAntimalwareProvider_FWD_DEFINED__ +#define __IAntimalwareProvider_FWD_DEFINED__ +typedef interface IAntimalwareProvider IAntimalwareProvider; + +#endif /* __IAntimalwareProvider_FWD_DEFINED__ */ + + +#ifndef __IAntimalwareUacProvider_FWD_DEFINED__ +#define __IAntimalwareUacProvider_FWD_DEFINED__ +typedef interface IAntimalwareUacProvider IAntimalwareUacProvider; + +#endif /* __IAntimalwareUacProvider_FWD_DEFINED__ */ + + +#ifndef __IAntimalwareProvider2_FWD_DEFINED__ +#define __IAntimalwareProvider2_FWD_DEFINED__ +typedef interface IAntimalwareProvider2 IAntimalwareProvider2; + +#endif /* __IAntimalwareProvider2_FWD_DEFINED__ */ + + +#ifndef __IAntimalware_FWD_DEFINED__ +#define __IAntimalware_FWD_DEFINED__ +typedef interface IAntimalware IAntimalware; + +#endif /* __IAntimalware_FWD_DEFINED__ */ + + +#ifndef __IAntimalware2_FWD_DEFINED__ +#define __IAntimalware2_FWD_DEFINED__ +typedef interface IAntimalware2 IAntimalware2; + +#endif /* __IAntimalware2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_amsi_0000_0000 */ +/* [local] */ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [v1_enum] */ +enum AMSI_RESULT + { + AMSI_RESULT_CLEAN = 0, + AMSI_RESULT_NOT_DETECTED = 1, + AMSI_RESULT_BLOCKED_BY_ADMIN_START = 0x4000, + AMSI_RESULT_BLOCKED_BY_ADMIN_END = 0x4fff, + AMSI_RESULT_DETECTED = 32768 + } AMSI_RESULT; + +#define AmsiResultIsMalware(r) ((r) >= AMSI_RESULT_DETECTED) +#define AmsiResultIsBlockedByAdmin(r) ((r) >= AMSI_RESULT_BLOCKED_BY_ADMIN_START) && (r) <= AMSI_RESULT_BLOCKED_BY_ADMIN_END +typedef /* [v1_enum] */ +enum AMSI_ATTRIBUTE + { + AMSI_ATTRIBUTE_APP_NAME = 0, + AMSI_ATTRIBUTE_CONTENT_NAME = 1, + AMSI_ATTRIBUTE_CONTENT_SIZE = 2, + AMSI_ATTRIBUTE_CONTENT_ADDRESS = 3, + AMSI_ATTRIBUTE_SESSION = 4, + AMSI_ATTRIBUTE_REDIRECT_CHAIN_SIZE = 5, + AMSI_ATTRIBUTE_REDIRECT_CHAIN_ADDRESS = 6, + AMSI_ATTRIBUTE_ALL_SIZE = 7, + AMSI_ATTRIBUTE_ALL_ADDRESS = 8, + AMSI_ATTRIBUTE_QUIET = 9 + } AMSI_ATTRIBUTE; + +typedef /* [v1_enum] */ +enum AMSI_UAC_REQUEST_TYPE + { + AMSI_UAC_REQUEST_TYPE_EXE = 0, + AMSI_UAC_REQUEST_TYPE_COM = 1, + AMSI_UAC_REQUEST_TYPE_MSI = 2, + AMSI_UAC_REQUEST_TYPE_AX = 3, + AMSI_UAC_REQUEST_TYPE_PACKAGED_APP = 4, + AMSI_UAC_REQUEST_TYPE_MAX = 5 + } AMSI_UAC_REQUEST_TYPE; + +typedef /* [v1_enum] */ +enum AMSI_UAC_TRUST_STATE + { + AMSI_UAC_TRUST_STATE_TRUSTED = 0, + AMSI_UAC_TRUST_STATE_UNTRUSTED = 1, + AMSI_UAC_TRUST_STATE_BLOCKED = 2, + AMSI_UAC_TRUST_STATE_MAX = 3 + } AMSI_UAC_TRUST_STATE; + +typedef /* [v1_enum] */ +enum AMSI_UAC_MSI_ACTION + { + AMSI_UAC_MSI_ACTION_INSTALL = 0, + AMSI_UAC_MSI_ACTION_UNINSTALL = 1, + AMSI_UAC_MSI_ACTION_UPDATE = 2, + AMSI_UAC_MSI_ACTION_MAINTENANCE = 3, + AMSI_UAC_MSI_ACTION_MAX = 4 + } AMSI_UAC_MSI_ACTION; + +typedef struct AMSI_UAC_REQUEST_EXE_INFO + { + ULONG ulLength; + /* [string] */ LPWSTR lpwszApplicationName; + /* [string] */ LPWSTR lpwszCommandLine; + /* [string] */ LPWSTR lpwszDLLParameter; + } AMSI_UAC_REQUEST_EXE_INFO; + +typedef struct AMSI_UAC_REQUEST_EXE_INFO *LPAMSI_UAC_REQUEST_EXE_INFO; + +typedef struct AMSI_UAC_REQUEST_COM_INFO + { + ULONG ulLength; + /* [string] */ LPWSTR lpwszServerBinary; + /* [string] */ LPWSTR lpwszRequestor; + GUID Clsid; + } AMSI_UAC_REQUEST_COM_INFO; + +typedef struct AMSI_UAC_REQUEST_COM_INFO *LPAMSI_UAC_REQUEST_COM_INFO; + +typedef struct AMSI_UAC_REQUEST_MSI_INFO + { + ULONG ulLength; + AMSI_UAC_MSI_ACTION MsiAction; + /* [string] */ LPWSTR lpwszProductName; + /* [string] */ LPWSTR lpwszVersion; + /* [string] */ LPWSTR lpwszLanguage; + /* [string] */ LPWSTR lpwszManufacturer; + /* [string] */ LPWSTR lpwszPackagePath; + /* [string] */ LPWSTR lpwszPackageSource; + ULONG ulUpdates; + /* [size_is][size_is][string] */ LPWSTR *ppwszUpdates; + /* [size_is][size_is][string] */ LPWSTR *ppwszUpdateSources; + } AMSI_UAC_REQUEST_MSI_INFO; + +typedef struct AMSI_UAC_REQUEST_MSI_INFO *LPAMSI_UAC_REQUEST_MSI_INFO; + +typedef struct AMSI_UAC_REQUEST_AX_INFO + { + ULONG ulLength; + /* [string] */ LPWSTR lpwszLocalInstallPath; + /* [string] */ LPWSTR lpwszSourceURL; + } AMSI_UAC_REQUEST_AX_INFO; + +typedef struct AMSI_UAC_REQUEST_AX_INFO *LPAMSI_UAC_REQUEST_AX_INFO; + +typedef struct AMSI_UAC_REQUEST_PACKAGED_APP_INFO + { + ULONG ulLength; + /* [string] */ LPWSTR lpwszApplicationName; + /* [string] */ LPWSTR lpwszCommandLine; + /* [string] */ LPWSTR lpPackageFamilyName; + /* [string] */ LPWSTR lpApplicationId; + } AMSI_UAC_REQUEST_PACKAGED_APP_INFO; + +typedef struct AMSI_UAC_REQUEST_PACKAGED_APP_INFO *LPAMSI_UAC_REQUEST_PACKAGED_APP_INFO; + +typedef struct AMSI_UAC_REQUEST_CONTEXT + { + ULONG ulLength; + ULONG ulRequestorProcessId; + AMSI_UAC_TRUST_STATE UACTrustState; + AMSI_UAC_REQUEST_TYPE Type; + /* [switch_is] */ /* [switch_type] */ union + { + /* [case()] */ AMSI_UAC_REQUEST_EXE_INFO ExeInfo; + /* [case()] */ AMSI_UAC_REQUEST_COM_INFO ComInfo; + /* [case()] */ AMSI_UAC_REQUEST_MSI_INFO MsiInfo; + /* [case()] */ AMSI_UAC_REQUEST_AX_INFO ActiveXInfo; + /* [case()] */ AMSI_UAC_REQUEST_PACKAGED_APP_INFO PackagedAppInfo; + } RequestType; + BOOL bAutoElevateRequest; + } AMSI_UAC_REQUEST_CONTEXT; + +typedef struct AMSI_UAC_REQUEST_CONTEXT *LPAMSI_UAC_REQUEST_CONTEXT; + + + +extern RPC_IF_HANDLE __MIDL_itf_amsi_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_amsi_0000_0000_v0_0_s_ifspec; + +#ifndef __IAmsiStream_INTERFACE_DEFINED__ +#define __IAmsiStream_INTERFACE_DEFINED__ + +/* interface IAmsiStream */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IAmsiStream; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3e47f2e5-81d4-4d3b-897f-545096770373") + IAmsiStream : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAttribute( + /* [in] */ AMSI_ATTRIBUTE attribute, + /* [range][in] */ ULONG dataSize, + /* [length_is][size_is][out] */ unsigned char *data, + /* [out] */ ULONG *retData) = 0; + + virtual HRESULT STDMETHODCALLTYPE Read( + /* [in] */ ULONGLONG position, + /* [range][in] */ ULONG size, + /* [length_is][size_is][out] */ unsigned char *buffer, + /* [out] */ ULONG *readSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAmsiStreamVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAmsiStream * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAmsiStream * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAmsiStream * This); + + DECLSPEC_XFGVIRT(IAmsiStream, GetAttribute) + HRESULT ( STDMETHODCALLTYPE *GetAttribute )( + IAmsiStream * This, + /* [in] */ AMSI_ATTRIBUTE attribute, + /* [range][in] */ ULONG dataSize, + /* [length_is][size_is][out] */ unsigned char *data, + /* [out] */ ULONG *retData); + + DECLSPEC_XFGVIRT(IAmsiStream, Read) + HRESULT ( STDMETHODCALLTYPE *Read )( + IAmsiStream * This, + /* [in] */ ULONGLONG position, + /* [range][in] */ ULONG size, + /* [length_is][size_is][out] */ unsigned char *buffer, + /* [out] */ ULONG *readSize); + + END_INTERFACE + } IAmsiStreamVtbl; + + interface IAmsiStream + { + CONST_VTBL struct IAmsiStreamVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAmsiStream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAmsiStream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAmsiStream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAmsiStream_GetAttribute(This,attribute,dataSize,data,retData) \ + ( (This)->lpVtbl -> GetAttribute(This,attribute,dataSize,data,retData) ) + +#define IAmsiStream_Read(This,position,size,buffer,readSize) \ + ( (This)->lpVtbl -> Read(This,position,size,buffer,readSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAmsiStream_INTERFACE_DEFINED__ */ + + +#ifndef __IAntimalwareProvider_INTERFACE_DEFINED__ +#define __IAntimalwareProvider_INTERFACE_DEFINED__ + +/* interface IAntimalwareProvider */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IAntimalwareProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b2cabfe3-fe04-42b1-a5df-08d483d4d125") + IAntimalwareProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Scan( + /* [in] */ IAmsiStream *stream, + /* [out] */ AMSI_RESULT *result) = 0; + + virtual void STDMETHODCALLTYPE CloseSession( + /* [in] */ ULONGLONG session) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisplayName( + /* [annotation][string][out] */ + _Out_ LPWSTR *displayName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAntimalwareProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAntimalwareProvider * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAntimalwareProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAntimalwareProvider * This); + + DECLSPEC_XFGVIRT(IAntimalwareProvider, Scan) + HRESULT ( STDMETHODCALLTYPE *Scan )( + IAntimalwareProvider * This, + /* [in] */ IAmsiStream *stream, + /* [out] */ AMSI_RESULT *result); + + DECLSPEC_XFGVIRT(IAntimalwareProvider, CloseSession) + void ( STDMETHODCALLTYPE *CloseSession )( + IAntimalwareProvider * This, + /* [in] */ ULONGLONG session); + + DECLSPEC_XFGVIRT(IAntimalwareProvider, DisplayName) + HRESULT ( STDMETHODCALLTYPE *DisplayName )( + IAntimalwareProvider * This, + /* [annotation][string][out] */ + _Out_ LPWSTR *displayName); + + END_INTERFACE + } IAntimalwareProviderVtbl; + + interface IAntimalwareProvider + { + CONST_VTBL struct IAntimalwareProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAntimalwareProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAntimalwareProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAntimalwareProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAntimalwareProvider_Scan(This,stream,result) \ + ( (This)->lpVtbl -> Scan(This,stream,result) ) + +#define IAntimalwareProvider_CloseSession(This,session) \ + ( (This)->lpVtbl -> CloseSession(This,session) ) + +#define IAntimalwareProvider_DisplayName(This,displayName) \ + ( (This)->lpVtbl -> DisplayName(This,displayName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAntimalwareProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IAntimalwareUacProvider_INTERFACE_DEFINED__ +#define __IAntimalwareUacProvider_INTERFACE_DEFINED__ + +/* interface IAntimalwareUacProvider */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IAntimalwareUacProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b2cabfe4-fe04-42b1-a5df-08d483d4d125") + IAntimalwareUacProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE UacScan( + /* [in] */ __RPC__in LPAMSI_UAC_REQUEST_CONTEXT context, + /* [out] */ __RPC__out AMSI_RESULT *result) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisplayName( + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *displayName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAntimalwareUacProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAntimalwareUacProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAntimalwareUacProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAntimalwareUacProvider * This); + + DECLSPEC_XFGVIRT(IAntimalwareUacProvider, UacScan) + HRESULT ( STDMETHODCALLTYPE *UacScan )( + __RPC__in IAntimalwareUacProvider * This, + /* [in] */ __RPC__in LPAMSI_UAC_REQUEST_CONTEXT context, + /* [out] */ __RPC__out AMSI_RESULT *result); + + DECLSPEC_XFGVIRT(IAntimalwareUacProvider, DisplayName) + HRESULT ( STDMETHODCALLTYPE *DisplayName )( + __RPC__in IAntimalwareUacProvider * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *displayName); + + END_INTERFACE + } IAntimalwareUacProviderVtbl; + + interface IAntimalwareUacProvider + { + CONST_VTBL struct IAntimalwareUacProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAntimalwareUacProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAntimalwareUacProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAntimalwareUacProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAntimalwareUacProvider_UacScan(This,context,result) \ + ( (This)->lpVtbl -> UacScan(This,context,result) ) + +#define IAntimalwareUacProvider_DisplayName(This,displayName) \ + ( (This)->lpVtbl -> DisplayName(This,displayName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAntimalwareUacProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IAntimalwareProvider2_INTERFACE_DEFINED__ +#define __IAntimalwareProvider2_INTERFACE_DEFINED__ + +/* interface IAntimalwareProvider2 */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IAntimalwareProvider2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7c1e6570-3f73-4e0f-8ad4-98b94cd3290f") + IAntimalwareProvider2 : public IAntimalwareProvider + { + public: + virtual HRESULT STDMETHODCALLTYPE Notify( + /* [in] */ PVOID buffer, + /* [in] */ ULONG length, + /* [in] */ LPCWSTR contentName, + /* [in] */ LPCWSTR appName, + /* [out] */ AMSI_RESULT *pResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAntimalwareProvider2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAntimalwareProvider2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAntimalwareProvider2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAntimalwareProvider2 * This); + + DECLSPEC_XFGVIRT(IAntimalwareProvider, Scan) + HRESULT ( STDMETHODCALLTYPE *Scan )( + IAntimalwareProvider2 * This, + /* [in] */ IAmsiStream *stream, + /* [out] */ AMSI_RESULT *result); + + DECLSPEC_XFGVIRT(IAntimalwareProvider, CloseSession) + void ( STDMETHODCALLTYPE *CloseSession )( + IAntimalwareProvider2 * This, + /* [in] */ ULONGLONG session); + + DECLSPEC_XFGVIRT(IAntimalwareProvider, DisplayName) + HRESULT ( STDMETHODCALLTYPE *DisplayName )( + IAntimalwareProvider2 * This, + /* [annotation][string][out] */ + _Out_ LPWSTR *displayName); + + DECLSPEC_XFGVIRT(IAntimalwareProvider2, Notify) + HRESULT ( STDMETHODCALLTYPE *Notify )( + IAntimalwareProvider2 * This, + /* [in] */ PVOID buffer, + /* [in] */ ULONG length, + /* [in] */ LPCWSTR contentName, + /* [in] */ LPCWSTR appName, + /* [out] */ AMSI_RESULT *pResult); + + END_INTERFACE + } IAntimalwareProvider2Vtbl; + + interface IAntimalwareProvider2 + { + CONST_VTBL struct IAntimalwareProvider2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAntimalwareProvider2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAntimalwareProvider2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAntimalwareProvider2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAntimalwareProvider2_Scan(This,stream,result) \ + ( (This)->lpVtbl -> Scan(This,stream,result) ) + +#define IAntimalwareProvider2_CloseSession(This,session) \ + ( (This)->lpVtbl -> CloseSession(This,session) ) + +#define IAntimalwareProvider2_DisplayName(This,displayName) \ + ( (This)->lpVtbl -> DisplayName(This,displayName) ) + + +#define IAntimalwareProvider2_Notify(This,buffer,length,contentName,appName,pResult) \ + ( (This)->lpVtbl -> Notify(This,buffer,length,contentName,appName,pResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAntimalwareProvider2_INTERFACE_DEFINED__ */ + + +#ifndef __IAntimalware_INTERFACE_DEFINED__ +#define __IAntimalware_INTERFACE_DEFINED__ + +/* interface IAntimalware */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IAntimalware; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("82d29c2e-f062-44e6-b5c9-3d9a2f24a2df") + IAntimalware : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Scan( + /* [in] */ IAmsiStream *stream, + /* [out] */ AMSI_RESULT *result, + /* [out] */ IAntimalwareProvider **provider) = 0; + + virtual void STDMETHODCALLTYPE CloseSession( + /* [in] */ ULONGLONG session) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAntimalwareVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAntimalware * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAntimalware * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAntimalware * This); + + DECLSPEC_XFGVIRT(IAntimalware, Scan) + HRESULT ( STDMETHODCALLTYPE *Scan )( + IAntimalware * This, + /* [in] */ IAmsiStream *stream, + /* [out] */ AMSI_RESULT *result, + /* [out] */ IAntimalwareProvider **provider); + + DECLSPEC_XFGVIRT(IAntimalware, CloseSession) + void ( STDMETHODCALLTYPE *CloseSession )( + IAntimalware * This, + /* [in] */ ULONGLONG session); + + END_INTERFACE + } IAntimalwareVtbl; + + interface IAntimalware + { + CONST_VTBL struct IAntimalwareVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAntimalware_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAntimalware_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAntimalware_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAntimalware_Scan(This,stream,result,provider) \ + ( (This)->lpVtbl -> Scan(This,stream,result,provider) ) + +#define IAntimalware_CloseSession(This,session) \ + ( (This)->lpVtbl -> CloseSession(This,session) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAntimalware_INTERFACE_DEFINED__ */ + + +#ifndef __IAntimalware2_INTERFACE_DEFINED__ +#define __IAntimalware2_INTERFACE_DEFINED__ + +/* interface IAntimalware2 */ +/* [uuid][unique][object][local] */ + + +EXTERN_C const IID IID_IAntimalware2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("301035b5-2d42-4f56-8c65-2dcaa7fb3cdc") + IAntimalware2 : public IAntimalware + { + public: + virtual HRESULT STDMETHODCALLTYPE Notify( + /* [in] */ PVOID buffer, + /* [in] */ ULONG length, + /* [in] */ LPCWSTR contentName, + /* [in] */ LPCWSTR appName, + /* [out] */ AMSI_RESULT *pResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAntimalware2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAntimalware2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAntimalware2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAntimalware2 * This); + + DECLSPEC_XFGVIRT(IAntimalware, Scan) + HRESULT ( STDMETHODCALLTYPE *Scan )( + IAntimalware2 * This, + /* [in] */ IAmsiStream *stream, + /* [out] */ AMSI_RESULT *result, + /* [out] */ IAntimalwareProvider **provider); + + DECLSPEC_XFGVIRT(IAntimalware, CloseSession) + void ( STDMETHODCALLTYPE *CloseSession )( + IAntimalware2 * This, + /* [in] */ ULONGLONG session); + + DECLSPEC_XFGVIRT(IAntimalware2, Notify) + HRESULT ( STDMETHODCALLTYPE *Notify )( + IAntimalware2 * This, + /* [in] */ PVOID buffer, + /* [in] */ ULONG length, + /* [in] */ LPCWSTR contentName, + /* [in] */ LPCWSTR appName, + /* [out] */ AMSI_RESULT *pResult); + + END_INTERFACE + } IAntimalware2Vtbl; + + interface IAntimalware2 + { + CONST_VTBL struct IAntimalware2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAntimalware2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAntimalware2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAntimalware2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAntimalware2_Scan(This,stream,result,provider) \ + ( (This)->lpVtbl -> Scan(This,stream,result,provider) ) + +#define IAntimalware2_CloseSession(This,session) \ + ( (This)->lpVtbl -> CloseSession(This,session) ) + + +#define IAntimalware2_Notify(This,buffer,length,contentName,appName,pResult) \ + ( (This)->lpVtbl -> Notify(This,buffer,length,contentName,appName,pResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAntimalware2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_amsi_0000_0006 */ +/* [local] */ + +#ifdef __cplusplus +class DECLSPEC_UUID("fdb00e52-a214-4aa1-8fba-4357bb0072ec") CAntimalware; +#endif +EXTERN_C const CLSID CLSID_Antimalware; + +DECLARE_HANDLE(HAMSICONTEXT); +DECLARE_HANDLE(HAMSISESSION); + +STDAPI AmsiInitialize( + _In_ LPCWSTR appName, + _Outptr_ HAMSICONTEXT* amsiContext); + +STDAPI_(VOID) AmsiUninitialize( + _In_ HAMSICONTEXT amsiContext); + +STDAPI AmsiOpenSession( + _In_ HAMSICONTEXT amsiContext, + _Out_ HAMSISESSION* amsiSession); + +STDAPI_(VOID) AmsiCloseSession( + _In_ HAMSICONTEXT amsiContext, + _In_ HAMSISESSION amsiSession); + +STDAPI AmsiScanBuffer( + _In_ HAMSICONTEXT amsiContext, + _In_reads_bytes_(length) PVOID buffer, + _In_ ULONG length, + _In_opt_ LPCWSTR contentName, + _In_opt_ HAMSISESSION amsiSession, + _Out_ AMSI_RESULT* result); + +STDAPI AmsiNotifyOperation( + _In_ HAMSICONTEXT amsiContext, + _In_reads_bytes_(length) PVOID buffer, + _In_ ULONG length, + _In_opt_ LPCWSTR contentName, + _Out_ AMSI_RESULT* result); + +STDAPI AmsiScanString( + _In_ HAMSICONTEXT amsiContext, + _In_ LPCWSTR string, + _In_opt_ LPCWSTR contentName, + _In_opt_ HAMSISESSION amsiSession, + _Out_ AMSI_RESULT* result); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_amsi_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_amsi_0000_0006_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/amsi.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amsi.idl new file mode 100644 index 0000000000000000000000000000000000000000..f072bc939b4bd7f748ae494c73455f52100e4649 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amsi.idl @@ -0,0 +1,355 @@ +/******************************************************* + * * + * Copyright (C) Microsoft. All rights reserved. * + * * + *******************************************************/ + +cpp_quote("#include ") +cpp_quote("") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +typedef [v1_enum] enum AMSI_RESULT +{ + // No detection found. Result likely not going to change after future definition update. + // a.k.a. known good + AMSI_RESULT_CLEAN = 0, + + // No detection found. Result might change after future definition update. + AMSI_RESULT_NOT_DETECTED = 1, + + // Certain policy set by administrator blocked this content on this machine. + AMSI_RESULT_BLOCKED_BY_ADMIN_START = 0x4000, + AMSI_RESULT_BLOCKED_BY_ADMIN_END = 0x4fff, + + // Detection found. It is recommended to abort executing the content if it is executable, e.g. a script. + // Return result of 1 - 32767 is estimated risk level that an antimalware provider might indicate. + // The large the result, the riskier to continue. + // Any return result equal to or larger than 32768 is consider malware and should be blocked. + // These values are provider specific, and may indicate malware family or ID. + // An application should use AmsiResultIsMalware() to determine whether the content should be blocked. + AMSI_RESULT_DETECTED = 32768, + +} AMSI_RESULT; + +cpp_quote("#define AmsiResultIsMalware(r) ((r) >= AMSI_RESULT_DETECTED)") +cpp_quote("#define AmsiResultIsBlockedByAdmin(r) ((r) >= AMSI_RESULT_BLOCKED_BY_ADMIN_START) && (r) <= AMSI_RESULT_BLOCKED_BY_ADMIN_END") + +typedef [v1_enum] enum AMSI_ATTRIBUTE +{ + // Name/version/GUID string of the calling application. + AMSI_ATTRIBUTE_APP_NAME = 0, + + // LPWSTR, filename, URL, script unique id etc. + AMSI_ATTRIBUTE_CONTENT_NAME = 1, + + // ULONGLONG, size of the input. Mandatory. + AMSI_ATTRIBUTE_CONTENT_SIZE = 2, + + // PVOID, memory address if content is fully loaded in memory. Mandatory unless + // Read() is implemented instead to support on-demand content retrieval. + AMSI_ATTRIBUTE_CONTENT_ADDRESS = 3, + + // PVOID, session is used to associate different scan calls, e.g. if the contents + // to be scanned belong to the sample original script. Return nullptr if content + // is self-contained. Mandatory. + AMSI_ATTRIBUTE_SESSION = 4, + + // ULONGLONG, size of the Microsoft Edge redirect chain. Optional. + AMSI_ATTRIBUTE_REDIRECT_CHAIN_SIZE = 5, + + // PVOID, memory address of the Microsoft Edge redirect chain. Optional. + AMSI_ATTRIBUTE_REDIRECT_CHAIN_ADDRESS = 6, + + // "All Attribute" buffer is provided by Microsoft Edge to pass future attributes without + // requiring adding new attributes to the amsi interface. It is a multi-string with the following + // format: + // L"Attribute1\0Value1\0Attribute2\0Value2\0...AttributeN\0ValueN\0\0" + + // ULONGLONG, size of the "All Attribute" Microsoft Edge buffer. Optional. + AMSI_ATTRIBUTE_ALL_SIZE = 7, + + // PVOID, memory address of the "All Attribute" Microsoft Edge buffer. Optional. + AMSI_ATTRIBUTE_ALL_ADDRESS = 8, + + // ULONG + AMSI_ATTRIBUTE_QUIET = 9, // deprecated, do not use + +} AMSI_ATTRIBUTE; + +typedef [v1_enum] enum AMSI_UAC_REQUEST_TYPE +{ + // Request to launch an EXE elevated. + AMSI_UAC_REQUEST_TYPE_EXE = 0, + + // Request to launch an COM server Outofproc elevated. + AMSI_UAC_REQUEST_TYPE_COM = 1, + + // Request to launch an MSI elevated. + AMSI_UAC_REQUEST_TYPE_MSI = 2, + + // Request to launch an ActiveX installation elevated. + AMSI_UAC_REQUEST_TYPE_AX = 3, + + // Request to launch a Packaged App elevated. + AMSI_UAC_REQUEST_TYPE_PACKAGED_APP = 4, + + AMSI_UAC_REQUEST_TYPE_MAX = 5 + +} AMSI_UAC_REQUEST_TYPE; + +typedef [v1_enum] enum AMSI_UAC_TRUST_STATE +{ + // UAC determined the binary to be from a trusted publisher. + AMSI_UAC_TRUST_STATE_TRUSTED = 0, + + // UAC determined the binary to be from a untrusted publisher. + AMSI_UAC_TRUST_STATE_UNTRUSTED = 1, + + // UAC determined the binary to be from a publisher blacklisted by the admin. + AMSI_UAC_TRUST_STATE_BLOCKED = 2, + + AMSI_UAC_TRUST_STATE_MAX = 3 + +} AMSI_UAC_TRUST_STATE; + +typedef [v1_enum] enum AMSI_UAC_MSI_ACTION +{ + // MSI actions that can be elevated. + + AMSI_UAC_MSI_ACTION_INSTALL = 0, + AMSI_UAC_MSI_ACTION_UNINSTALL = 1, + AMSI_UAC_MSI_ACTION_UPDATE = 2, + AMSI_UAC_MSI_ACTION_MAINTENANCE = 3, + AMSI_UAC_MSI_ACTION_MAX = 4 +} AMSI_UAC_MSI_ACTION; + +typedef struct AMSI_UAC_REQUEST_EXE_INFO +{ + ULONG ulLength; + [string] LPWSTR lpwszApplicationName; + [string] LPWSTR lpwszCommandLine; + + // Points to an extension dll to be loaded by the EXE (for eg. mmc.exe), which requires + // a separate reputation check. + [string] LPWSTR lpwszDLLParameter; +} AMSI_UAC_REQUEST_EXE_INFO, *LPAMSI_UAC_REQUEST_EXE_INFO; + +typedef struct AMSI_UAC_REQUEST_COM_INFO +{ + ULONG ulLength; + [string] LPWSTR lpwszServerBinary; + [string] LPWSTR lpwszRequestor; + GUID Clsid; +} AMSI_UAC_REQUEST_COM_INFO, *LPAMSI_UAC_REQUEST_COM_INFO; + +typedef struct AMSI_UAC_REQUEST_MSI_INFO +{ + ULONG ulLength; + AMSI_UAC_MSI_ACTION MsiAction; + + [string] LPWSTR lpwszProductName; + [string] LPWSTR lpwszVersion; + [string] LPWSTR lpwszLanguage; + [string] LPWSTR lpwszManufacturer; + [string] LPWSTR lpwszPackagePath; + [string] LPWSTR lpwszPackageSource; + + ULONG ulUpdates; + [string, size_is(ulUpdates, )] LPWSTR* ppwszUpdates; + [string, size_is(ulUpdates, )] LPWSTR* ppwszUpdateSources; +} AMSI_UAC_REQUEST_MSI_INFO, *LPAMSI_UAC_REQUEST_MSI_INFO; + +typedef struct AMSI_UAC_REQUEST_AX_INFO +{ + ULONG ulLength; + [string] LPWSTR lpwszLocalInstallPath; + [string] LPWSTR lpwszSourceURL; +} AMSI_UAC_REQUEST_AX_INFO, *LPAMSI_UAC_REQUEST_AX_INFO; + +typedef struct AMSI_UAC_REQUEST_PACKAGED_APP_INFO +{ + ULONG ulLength; + [string] LPWSTR lpwszApplicationName; + [string] LPWSTR lpwszCommandLine; + [string] LPWSTR lpPackageFamilyName; + [string] LPWSTR lpApplicationId; +} AMSI_UAC_REQUEST_PACKAGED_APP_INFO, *LPAMSI_UAC_REQUEST_PACKAGED_APP_INFO; + +typedef struct AMSI_UAC_REQUEST_CONTEXT +{ + ULONG ulLength; + + // Contains a ProcessID for AMSI_UAC_REQUEST_TYPE_EXE and + // AMSI_UAC_REQUEST_TYPE_PACKAGED_APP elevation requests, contains 0 otherwise. + ULONG ulRequestorProcessId; + + AMSI_UAC_TRUST_STATE UACTrustState; + + AMSI_UAC_REQUEST_TYPE Type; + + [switch_is(Type)] + union { + [case(AMSI_UAC_REQUEST_TYPE_EXE)] AMSI_UAC_REQUEST_EXE_INFO ExeInfo; + [case(AMSI_UAC_REQUEST_TYPE_COM)] AMSI_UAC_REQUEST_COM_INFO ComInfo; + [case(AMSI_UAC_REQUEST_TYPE_MSI)] AMSI_UAC_REQUEST_MSI_INFO MsiInfo; + [case(AMSI_UAC_REQUEST_TYPE_AX)] AMSI_UAC_REQUEST_AX_INFO ActiveXInfo; + [case(AMSI_UAC_REQUEST_TYPE_PACKAGED_APP)] AMSI_UAC_REQUEST_PACKAGED_APP_INFO PackagedAppInfo; + }RequestType; + + // Contains a non-zero value if this is a Auto-Elevate request. + BOOL bAutoElevateRequest; +} AMSI_UAC_REQUEST_CONTEXT, *LPAMSI_UAC_REQUEST_CONTEXT; + +[ + local, + object, + pointer_default(unique), + uuid(3e47f2e5-81d4-4d3b-897f-545096770373) +] +interface IAmsiStream : IUnknown +{ + HRESULT GetAttribute( + [in] AMSI_ATTRIBUTE attribute, + [in, range(0, 1024*1024)] ULONG dataSize, + [out, size_is(dataSize), length_is(*retData)] unsigned char* data, + [out] ULONG* retData); + + HRESULT Read( + [in] ULONGLONG position, + [in, range(0, 1024*1024)] ULONG size, + [out, size_is(size), length_is(*readSize)] unsigned char* buffer, + [out] ULONG* readSize); +} + +[ + local, + object, + pointer_default(unique), + uuid(b2cabfe3-fe04-42b1-a5df-08d483d4d125) +] +interface IAntimalwareProvider : IUnknown +{ + HRESULT Scan( + [in] IAmsiStream* stream, + [out] AMSI_RESULT* result); + + void CloseSession([in] ULONGLONG session); + + HRESULT DisplayName([out, string, annotation("_Out_")] LPWSTR* displayName); +} + +[ + object, + pointer_default(unique), + uuid(b2cabfe4-fe04-42b1-a5df-08d483d4d125) +] +interface IAntimalwareUacProvider : IUnknown +{ + HRESULT UacScan( + [in] LPAMSI_UAC_REQUEST_CONTEXT context, + [out] AMSI_RESULT* result); + + HRESULT DisplayName([out, string] LPWSTR* displayName); +} + +[ + local, + object, + pointer_default(unique), + uuid(7c1e6570-3f73-4e0f-8ad4-98b94cd3290f) +] +interface IAntimalwareProvider2 : IAntimalwareProvider +{ + HRESULT Notify( + [in] PVOID buffer, + [in] ULONG length, + [in] LPCWSTR contentName, + [in] LPCWSTR appName, + [out] AMSI_RESULT *pResult); +} + +[ + local, + object, + pointer_default(unique), + uuid(82d29c2e-f062-44e6-b5c9-3d9a2f24a2df) +] +interface IAntimalware : IUnknown +{ + HRESULT Scan( + [in] IAmsiStream* stream, + [out] AMSI_RESULT* result, + [out] IAntimalwareProvider** provider); + + void CloseSession([in] ULONGLONG session); +} + +[ + local, + object, + pointer_default(unique), + uuid(301035b5-2d42-4f56-8c65-2dcaa7fb3cdc) +] +interface IAntimalware2 : IAntimalware +{ + HRESULT Notify( + [in] PVOID buffer, + [in] ULONG length, + [in] LPCWSTR contentName, + [in] LPCWSTR appName, + [out] AMSI_RESULT *pResult); +} + +cpp_quote("#ifdef __cplusplus") +cpp_quote("class DECLSPEC_UUID(\"fdb00e52-a214-4aa1-8fba-4357bb0072ec\") CAntimalware;") +cpp_quote("#endif") +cpp_quote("EXTERN_C const CLSID CLSID_Antimalware;") +cpp_quote("") +cpp_quote("DECLARE_HANDLE(HAMSICONTEXT);") +cpp_quote("DECLARE_HANDLE(HAMSISESSION);") +cpp_quote("") +cpp_quote("STDAPI AmsiInitialize(") +cpp_quote(" _In_ LPCWSTR appName,") +cpp_quote(" _Outptr_ HAMSICONTEXT* amsiContext);") +cpp_quote("") +cpp_quote("STDAPI_(VOID) AmsiUninitialize(") +cpp_quote(" _In_ HAMSICONTEXT amsiContext);") +cpp_quote("") +cpp_quote("STDAPI AmsiOpenSession(") +cpp_quote(" _In_ HAMSICONTEXT amsiContext,") +cpp_quote(" _Out_ HAMSISESSION* amsiSession);") +cpp_quote("") +cpp_quote("STDAPI_(VOID) AmsiCloseSession(") +cpp_quote(" _In_ HAMSICONTEXT amsiContext,") +cpp_quote(" _In_ HAMSISESSION amsiSession);") +cpp_quote("") +cpp_quote("STDAPI AmsiScanBuffer(") +cpp_quote(" _In_ HAMSICONTEXT amsiContext,") +cpp_quote(" _In_reads_bytes_(length) PVOID buffer,") +cpp_quote(" _In_ ULONG length,") +cpp_quote(" _In_opt_ LPCWSTR contentName,") +cpp_quote(" _In_opt_ HAMSISESSION amsiSession,") +cpp_quote(" _Out_ AMSI_RESULT* result);") +cpp_quote("") +cpp_quote("STDAPI AmsiNotifyOperation(") +cpp_quote(" _In_ HAMSICONTEXT amsiContext,") +cpp_quote(" _In_reads_bytes_(length) PVOID buffer,") +cpp_quote(" _In_ ULONG length,") +cpp_quote(" _In_opt_ LPCWSTR contentName,") +cpp_quote(" _Out_ AMSI_RESULT* result);") +cpp_quote("") +cpp_quote("STDAPI AmsiScanString(") +cpp_quote(" _In_ HAMSICONTEXT amsiContext,") +cpp_quote(" _In_ LPCWSTR string,") +cpp_quote(" _In_opt_ LPCWSTR contentName,") +cpp_quote(" _In_opt_ HAMSISESSION amsiSession,") +cpp_quote(" _Out_ AMSI_RESULT* result);") +cpp_quote("") +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/amstream.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amstream.h new file mode 100644 index 0000000000000000000000000000000000000000..34678b80187676f633058dc9db41d9ed7ba99b8b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amstream.h @@ -0,0 +1,1587 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __amstream_h__ +#define __amstream_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAMMultiMediaStream_FWD_DEFINED__ +#define __IAMMultiMediaStream_FWD_DEFINED__ +typedef interface IAMMultiMediaStream IAMMultiMediaStream; + +#endif /* __IAMMultiMediaStream_FWD_DEFINED__ */ + + +#ifndef __IAMMediaStream_FWD_DEFINED__ +#define __IAMMediaStream_FWD_DEFINED__ +typedef interface IAMMediaStream IAMMediaStream; + +#endif /* __IAMMediaStream_FWD_DEFINED__ */ + + +#ifndef __IMediaStreamFilter_FWD_DEFINED__ +#define __IMediaStreamFilter_FWD_DEFINED__ +typedef interface IMediaStreamFilter IMediaStreamFilter; + +#endif /* __IMediaStreamFilter_FWD_DEFINED__ */ + + +#ifndef __IDirectDrawMediaSampleAllocator_FWD_DEFINED__ +#define __IDirectDrawMediaSampleAllocator_FWD_DEFINED__ +typedef interface IDirectDrawMediaSampleAllocator IDirectDrawMediaSampleAllocator; + +#endif /* __IDirectDrawMediaSampleAllocator_FWD_DEFINED__ */ + + +#ifndef __IDirectDrawMediaSample_FWD_DEFINED__ +#define __IDirectDrawMediaSample_FWD_DEFINED__ +typedef interface IDirectDrawMediaSample IDirectDrawMediaSample; + +#endif /* __IDirectDrawMediaSample_FWD_DEFINED__ */ + + +#ifndef __IAMMediaTypeStream_FWD_DEFINED__ +#define __IAMMediaTypeStream_FWD_DEFINED__ +typedef interface IAMMediaTypeStream IAMMediaTypeStream; + +#endif /* __IAMMediaTypeStream_FWD_DEFINED__ */ + + +#ifndef __IAMMediaTypeSample_FWD_DEFINED__ +#define __IAMMediaTypeSample_FWD_DEFINED__ +typedef interface IAMMediaTypeSample IAMMediaTypeSample; + +#endif /* __IAMMediaTypeSample_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "mmstream.h" +#include "strmif.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_amstream_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include +#include +#include +#include +#include + + + + + + + + +enum __MIDL___MIDL_itf_amstream_0000_0000_0001 + { + AMMSF_NOGRAPHTHREAD = 0x1 + } ; + +enum __MIDL___MIDL_itf_amstream_0000_0000_0002 + { + AMMSF_ADDDEFAULTRENDERER = 0x1, + AMMSF_CREATEPEER = 0x2, + AMMSF_STOPIFNOSAMPLES = 0x4, + AMMSF_NOSTALL = 0x8 + } ; + +enum __MIDL___MIDL_itf_amstream_0000_0000_0003 + { + AMMSF_RENDERTYPEMASK = 0x3, + AMMSF_RENDERTOEXISTING = 0, + AMMSF_RENDERALLSTREAMS = 0x1, + AMMSF_NORENDER = 0x2, + AMMSF_NOCLOCK = 0x4, + AMMSF_RUN = 0x8 + } ; +typedef /* [public][v1_enum] */ +enum __MIDL___MIDL_itf_amstream_0000_0000_0004 + { + Disabled = 0, + ReadData = 1, + RenderData = 2 + } OUTPUT_STATE; + + + +extern RPC_IF_HANDLE __MIDL_itf_amstream_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_amstream_0000_0000_v0_0_s_ifspec; + +#ifndef __IAMMultiMediaStream_INTERFACE_DEFINED__ +#define __IAMMultiMediaStream_INTERFACE_DEFINED__ + +/* interface IAMMultiMediaStream */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAMMultiMediaStream; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BEBE595C-9A6F-11d0-8FDE-00C04FD9189D") + IAMMultiMediaStream : public IMultiMediaStream + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ STREAM_TYPE StreamType, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in_opt IGraphBuilder *pFilterGraph) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFilterGraph( + /* [out] */ __RPC__deref_out_opt IGraphBuilder **ppGraphBuilder) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFilter( + /* [out] */ __RPC__deref_out_opt IMediaStreamFilter **ppFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMediaStream( + /* [in] */ __RPC__in_opt IUnknown *pStreamObject, + /* [in] */ __RPC__in const MSPID *PurposeId, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IMediaStream **ppNewStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenFile( + /* [in] */ __RPC__in LPCWSTR pszFileName, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenMoniker( + /* [in] */ __RPC__in_opt IBindCtx *pCtx, + /* [in] */ __RPC__in_opt IMoniker *pMoniker, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE Render( + /* [in] */ DWORD dwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAMMultiMediaStreamVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAMMultiMediaStream * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAMMultiMediaStream * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAMMultiMediaStream * This); + + DECLSPEC_XFGVIRT(IMultiMediaStream, GetInformation) + HRESULT ( STDMETHODCALLTYPE *GetInformation )( + __RPC__in IAMMultiMediaStream * This, + /* [out] */ __RPC__out DWORD *pdwFlags, + /* [out] */ __RPC__out STREAM_TYPE *pStreamType); + + DECLSPEC_XFGVIRT(IMultiMediaStream, GetMediaStream) + HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( + __RPC__in IAMMultiMediaStream * This, + /* [in] */ __RPC__in REFMSPID idPurpose, + /* [out] */ __RPC__deref_out_opt IMediaStream **ppMediaStream); + + DECLSPEC_XFGVIRT(IMultiMediaStream, EnumMediaStreams) + HRESULT ( STDMETHODCALLTYPE *EnumMediaStreams )( + __RPC__in IAMMultiMediaStream * This, + /* [in] */ long Index, + /* [out] */ __RPC__deref_out_opt IMediaStream **ppMediaStream); + + DECLSPEC_XFGVIRT(IMultiMediaStream, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + __RPC__in IAMMultiMediaStream * This, + /* [out] */ __RPC__out STREAM_STATE *pCurrentState); + + DECLSPEC_XFGVIRT(IMultiMediaStream, SetState) + HRESULT ( STDMETHODCALLTYPE *SetState )( + __RPC__in IAMMultiMediaStream * This, + /* [in] */ STREAM_STATE NewState); + + DECLSPEC_XFGVIRT(IMultiMediaStream, GetTime) + HRESULT ( STDMETHODCALLTYPE *GetTime )( + __RPC__in IAMMultiMediaStream * This, + /* [out] */ __RPC__out STREAM_TIME *pCurrentTime); + + DECLSPEC_XFGVIRT(IMultiMediaStream, GetDuration) + HRESULT ( STDMETHODCALLTYPE *GetDuration )( + __RPC__in IAMMultiMediaStream * This, + /* [out] */ __RPC__out STREAM_TIME *pDuration); + + DECLSPEC_XFGVIRT(IMultiMediaStream, Seek) + HRESULT ( STDMETHODCALLTYPE *Seek )( + __RPC__in IAMMultiMediaStream * This, + /* [in] */ STREAM_TIME SeekTime); + + DECLSPEC_XFGVIRT(IMultiMediaStream, GetEndOfStreamEventHandle) + HRESULT ( STDMETHODCALLTYPE *GetEndOfStreamEventHandle )( + __RPC__in IAMMultiMediaStream * This, + /* [out] */ __RPC__deref_out_opt HANDLE *phEOS); + + DECLSPEC_XFGVIRT(IAMMultiMediaStream, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IAMMultiMediaStream * This, + /* [in] */ STREAM_TYPE StreamType, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in_opt IGraphBuilder *pFilterGraph); + + DECLSPEC_XFGVIRT(IAMMultiMediaStream, GetFilterGraph) + HRESULT ( STDMETHODCALLTYPE *GetFilterGraph )( + __RPC__in IAMMultiMediaStream * This, + /* [out] */ __RPC__deref_out_opt IGraphBuilder **ppGraphBuilder); + + DECLSPEC_XFGVIRT(IAMMultiMediaStream, GetFilter) + HRESULT ( STDMETHODCALLTYPE *GetFilter )( + __RPC__in IAMMultiMediaStream * This, + /* [out] */ __RPC__deref_out_opt IMediaStreamFilter **ppFilter); + + DECLSPEC_XFGVIRT(IAMMultiMediaStream, AddMediaStream) + HRESULT ( STDMETHODCALLTYPE *AddMediaStream )( + __RPC__in IAMMultiMediaStream * This, + /* [in] */ __RPC__in_opt IUnknown *pStreamObject, + /* [in] */ __RPC__in const MSPID *PurposeId, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IMediaStream **ppNewStream); + + DECLSPEC_XFGVIRT(IAMMultiMediaStream, OpenFile) + HRESULT ( STDMETHODCALLTYPE *OpenFile )( + __RPC__in IAMMultiMediaStream * This, + /* [in] */ __RPC__in LPCWSTR pszFileName, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IAMMultiMediaStream, OpenMoniker) + HRESULT ( STDMETHODCALLTYPE *OpenMoniker )( + __RPC__in IAMMultiMediaStream * This, + /* [in] */ __RPC__in_opt IBindCtx *pCtx, + /* [in] */ __RPC__in_opt IMoniker *pMoniker, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IAMMultiMediaStream, Render) + HRESULT ( STDMETHODCALLTYPE *Render )( + __RPC__in IAMMultiMediaStream * This, + /* [in] */ DWORD dwFlags); + + END_INTERFACE + } IAMMultiMediaStreamVtbl; + + interface IAMMultiMediaStream + { + CONST_VTBL struct IAMMultiMediaStreamVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAMMultiMediaStream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAMMultiMediaStream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAMMultiMediaStream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAMMultiMediaStream_GetInformation(This,pdwFlags,pStreamType) \ + ( (This)->lpVtbl -> GetInformation(This,pdwFlags,pStreamType) ) + +#define IAMMultiMediaStream_GetMediaStream(This,idPurpose,ppMediaStream) \ + ( (This)->lpVtbl -> GetMediaStream(This,idPurpose,ppMediaStream) ) + +#define IAMMultiMediaStream_EnumMediaStreams(This,Index,ppMediaStream) \ + ( (This)->lpVtbl -> EnumMediaStreams(This,Index,ppMediaStream) ) + +#define IAMMultiMediaStream_GetState(This,pCurrentState) \ + ( (This)->lpVtbl -> GetState(This,pCurrentState) ) + +#define IAMMultiMediaStream_SetState(This,NewState) \ + ( (This)->lpVtbl -> SetState(This,NewState) ) + +#define IAMMultiMediaStream_GetTime(This,pCurrentTime) \ + ( (This)->lpVtbl -> GetTime(This,pCurrentTime) ) + +#define IAMMultiMediaStream_GetDuration(This,pDuration) \ + ( (This)->lpVtbl -> GetDuration(This,pDuration) ) + +#define IAMMultiMediaStream_Seek(This,SeekTime) \ + ( (This)->lpVtbl -> Seek(This,SeekTime) ) + +#define IAMMultiMediaStream_GetEndOfStreamEventHandle(This,phEOS) \ + ( (This)->lpVtbl -> GetEndOfStreamEventHandle(This,phEOS) ) + + +#define IAMMultiMediaStream_Initialize(This,StreamType,dwFlags,pFilterGraph) \ + ( (This)->lpVtbl -> Initialize(This,StreamType,dwFlags,pFilterGraph) ) + +#define IAMMultiMediaStream_GetFilterGraph(This,ppGraphBuilder) \ + ( (This)->lpVtbl -> GetFilterGraph(This,ppGraphBuilder) ) + +#define IAMMultiMediaStream_GetFilter(This,ppFilter) \ + ( (This)->lpVtbl -> GetFilter(This,ppFilter) ) + +#define IAMMultiMediaStream_AddMediaStream(This,pStreamObject,PurposeId,dwFlags,ppNewStream) \ + ( (This)->lpVtbl -> AddMediaStream(This,pStreamObject,PurposeId,dwFlags,ppNewStream) ) + +#define IAMMultiMediaStream_OpenFile(This,pszFileName,dwFlags) \ + ( (This)->lpVtbl -> OpenFile(This,pszFileName,dwFlags) ) + +#define IAMMultiMediaStream_OpenMoniker(This,pCtx,pMoniker,dwFlags) \ + ( (This)->lpVtbl -> OpenMoniker(This,pCtx,pMoniker,dwFlags) ) + +#define IAMMultiMediaStream_Render(This,dwFlags) \ + ( (This)->lpVtbl -> Render(This,dwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAMMultiMediaStream_INTERFACE_DEFINED__ */ + + +#ifndef __IAMMediaStream_INTERFACE_DEFINED__ +#define __IAMMediaStream_INTERFACE_DEFINED__ + +/* interface IAMMediaStream */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAMMediaStream; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BEBE595D-9A6F-11d0-8FDE-00C04FD9189D") + IAMMediaStream : public IMediaStream + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IUnknown *pSourceObject, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in REFMSPID PurposeId, + /* [in] */ const STREAM_TYPE StreamType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetState( + /* [in] */ FILTER_STATE State) = 0; + + virtual HRESULT STDMETHODCALLTYPE JoinAMMultiMediaStream( + /* [in] */ __RPC__in_opt IAMMultiMediaStream *pAMMultiMediaStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE JoinFilter( + /* [in] */ __RPC__in_opt IMediaStreamFilter *pMediaStreamFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE JoinFilterGraph( + /* [in] */ __RPC__in_opt IFilterGraph *pFilterGraph) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAMMediaStreamVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAMMediaStream * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAMMediaStream * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAMMediaStream * This); + + DECLSPEC_XFGVIRT(IMediaStream, GetMultiMediaStream) + HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )( + __RPC__in IAMMediaStream * This, + /* [out] */ __RPC__deref_out_opt IMultiMediaStream **ppMultiMediaStream); + + DECLSPEC_XFGVIRT(IMediaStream, GetInformation) + HRESULT ( STDMETHODCALLTYPE *GetInformation )( + __RPC__in IAMMediaStream * This, + /* [out] */ __RPC__out MSPID *pPurposeId, + /* [out] */ __RPC__out STREAM_TYPE *pType); + + DECLSPEC_XFGVIRT(IMediaStream, SetSameFormat) + HRESULT ( STDMETHODCALLTYPE *SetSameFormat )( + __RPC__in IAMMediaStream * This, + /* [in] */ __RPC__in_opt IMediaStream *pStreamThatHasDesiredFormat, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IMediaStream, AllocateSample) + HRESULT ( STDMETHODCALLTYPE *AllocateSample )( + __RPC__in IAMMediaStream * This, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IStreamSample **ppSample); + + DECLSPEC_XFGVIRT(IMediaStream, CreateSharedSample) + HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )( + __RPC__in IAMMediaStream * This, + /* [in] */ __RPC__in_opt IStreamSample *pExistingSample, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IStreamSample **ppNewSample); + + DECLSPEC_XFGVIRT(IMediaStream, SendEndOfStream) + HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )( + __RPC__in IAMMediaStream * This, + DWORD dwFlags); + + DECLSPEC_XFGVIRT(IAMMediaStream, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IAMMediaStream * This, + /* [in] */ __RPC__in_opt IUnknown *pSourceObject, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in REFMSPID PurposeId, + /* [in] */ const STREAM_TYPE StreamType); + + DECLSPEC_XFGVIRT(IAMMediaStream, SetState) + HRESULT ( STDMETHODCALLTYPE *SetState )( + __RPC__in IAMMediaStream * This, + /* [in] */ FILTER_STATE State); + + DECLSPEC_XFGVIRT(IAMMediaStream, JoinAMMultiMediaStream) + HRESULT ( STDMETHODCALLTYPE *JoinAMMultiMediaStream )( + __RPC__in IAMMediaStream * This, + /* [in] */ __RPC__in_opt IAMMultiMediaStream *pAMMultiMediaStream); + + DECLSPEC_XFGVIRT(IAMMediaStream, JoinFilter) + HRESULT ( STDMETHODCALLTYPE *JoinFilter )( + __RPC__in IAMMediaStream * This, + /* [in] */ __RPC__in_opt IMediaStreamFilter *pMediaStreamFilter); + + DECLSPEC_XFGVIRT(IAMMediaStream, JoinFilterGraph) + HRESULT ( STDMETHODCALLTYPE *JoinFilterGraph )( + __RPC__in IAMMediaStream * This, + /* [in] */ __RPC__in_opt IFilterGraph *pFilterGraph); + + END_INTERFACE + } IAMMediaStreamVtbl; + + interface IAMMediaStream + { + CONST_VTBL struct IAMMediaStreamVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAMMediaStream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAMMediaStream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAMMediaStream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAMMediaStream_GetMultiMediaStream(This,ppMultiMediaStream) \ + ( (This)->lpVtbl -> GetMultiMediaStream(This,ppMultiMediaStream) ) + +#define IAMMediaStream_GetInformation(This,pPurposeId,pType) \ + ( (This)->lpVtbl -> GetInformation(This,pPurposeId,pType) ) + +#define IAMMediaStream_SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) \ + ( (This)->lpVtbl -> SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) ) + +#define IAMMediaStream_AllocateSample(This,dwFlags,ppSample) \ + ( (This)->lpVtbl -> AllocateSample(This,dwFlags,ppSample) ) + +#define IAMMediaStream_CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) \ + ( (This)->lpVtbl -> CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) ) + +#define IAMMediaStream_SendEndOfStream(This,dwFlags) \ + ( (This)->lpVtbl -> SendEndOfStream(This,dwFlags) ) + + +#define IAMMediaStream_Initialize(This,pSourceObject,dwFlags,PurposeId,StreamType) \ + ( (This)->lpVtbl -> Initialize(This,pSourceObject,dwFlags,PurposeId,StreamType) ) + +#define IAMMediaStream_SetState(This,State) \ + ( (This)->lpVtbl -> SetState(This,State) ) + +#define IAMMediaStream_JoinAMMultiMediaStream(This,pAMMultiMediaStream) \ + ( (This)->lpVtbl -> JoinAMMultiMediaStream(This,pAMMultiMediaStream) ) + +#define IAMMediaStream_JoinFilter(This,pMediaStreamFilter) \ + ( (This)->lpVtbl -> JoinFilter(This,pMediaStreamFilter) ) + +#define IAMMediaStream_JoinFilterGraph(This,pFilterGraph) \ + ( (This)->lpVtbl -> JoinFilterGraph(This,pFilterGraph) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAMMediaStream_INTERFACE_DEFINED__ */ + + +#ifndef __IMediaStreamFilter_INTERFACE_DEFINED__ +#define __IMediaStreamFilter_INTERFACE_DEFINED__ + +/* interface IMediaStreamFilter */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IMediaStreamFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BEBE595E-9A6F-11d0-8FDE-00C04FD9189D") + IMediaStreamFilter : public IBaseFilter + { + public: + virtual HRESULT STDMETHODCALLTYPE AddMediaStream( + /* [in] */ IAMMediaStream *pAMMediaStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMediaStream( + /* [in] */ REFMSPID idPurpose, + /* [out] */ IMediaStream **ppMediaStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumMediaStreams( + /* [in] */ long Index, + /* [out] */ IMediaStream **ppMediaStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE SupportSeeking( + /* [in] */ BOOL bRenderer) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReferenceTimeToStreamTime( + /* [out][in] */ REFERENCE_TIME *pTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentStreamTime( + /* [out] */ REFERENCE_TIME *pCurrentStreamTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE WaitUntil( + /* [in] */ REFERENCE_TIME WaitStreamTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE Flush( + /* [in] */ BOOL bCancelEOS) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndOfStream( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMediaStreamFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMediaStreamFilter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMediaStreamFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMediaStreamFilter * This); + + DECLSPEC_XFGVIRT(IPersist, GetClassID) + HRESULT ( STDMETHODCALLTYPE *GetClassID )( + IMediaStreamFilter * This, + /* [out] */ CLSID *pClassID); + + DECLSPEC_XFGVIRT(IMediaFilter, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + IMediaStreamFilter * This); + + DECLSPEC_XFGVIRT(IMediaFilter, Pause) + HRESULT ( STDMETHODCALLTYPE *Pause )( + IMediaStreamFilter * This); + + DECLSPEC_XFGVIRT(IMediaFilter, Run) + HRESULT ( STDMETHODCALLTYPE *Run )( + IMediaStreamFilter * This, + REFERENCE_TIME tStart); + + DECLSPEC_XFGVIRT(IMediaFilter, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + IMediaStreamFilter * This, + /* [in] */ DWORD dwMilliSecsTimeout, + /* [annotation][out] */ + _Out_ FILTER_STATE *State); + + DECLSPEC_XFGVIRT(IMediaFilter, SetSyncSource) + HRESULT ( STDMETHODCALLTYPE *SetSyncSource )( + IMediaStreamFilter * This, + /* [annotation][in] */ + _In_opt_ IReferenceClock *pClock); + + DECLSPEC_XFGVIRT(IMediaFilter, GetSyncSource) + HRESULT ( STDMETHODCALLTYPE *GetSyncSource )( + IMediaStreamFilter * This, + /* [annotation][out] */ + _Outptr_result_maybenull_ IReferenceClock **pClock); + + DECLSPEC_XFGVIRT(IBaseFilter, EnumPins) + HRESULT ( STDMETHODCALLTYPE *EnumPins )( + IMediaStreamFilter * This, + /* [annotation][out] */ + _Out_ IEnumPins **ppEnum); + + DECLSPEC_XFGVIRT(IBaseFilter, FindPin) + HRESULT ( STDMETHODCALLTYPE *FindPin )( + IMediaStreamFilter * This, + /* [string][in] */ LPCWSTR Id, + /* [annotation][out] */ + _Out_ IPin **ppPin); + + DECLSPEC_XFGVIRT(IBaseFilter, QueryFilterInfo) + HRESULT ( STDMETHODCALLTYPE *QueryFilterInfo )( + IMediaStreamFilter * This, + /* [annotation][out] */ + _Out_ FILTER_INFO *pInfo); + + DECLSPEC_XFGVIRT(IBaseFilter, JoinFilterGraph) + HRESULT ( STDMETHODCALLTYPE *JoinFilterGraph )( + IMediaStreamFilter * This, + /* [annotation][in] */ + _In_opt_ IFilterGraph *pGraph, + /* [annotation][string][in] */ + _In_opt_ LPCWSTR pName); + + DECLSPEC_XFGVIRT(IBaseFilter, QueryVendorInfo) + HRESULT ( STDMETHODCALLTYPE *QueryVendorInfo )( + IMediaStreamFilter * This, + /* [annotation][string][out] */ + _Out_ LPWSTR *pVendorInfo); + + DECLSPEC_XFGVIRT(IMediaStreamFilter, AddMediaStream) + HRESULT ( STDMETHODCALLTYPE *AddMediaStream )( + IMediaStreamFilter * This, + /* [in] */ IAMMediaStream *pAMMediaStream); + + DECLSPEC_XFGVIRT(IMediaStreamFilter, GetMediaStream) + HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( + IMediaStreamFilter * This, + /* [in] */ REFMSPID idPurpose, + /* [out] */ IMediaStream **ppMediaStream); + + DECLSPEC_XFGVIRT(IMediaStreamFilter, EnumMediaStreams) + HRESULT ( STDMETHODCALLTYPE *EnumMediaStreams )( + IMediaStreamFilter * This, + /* [in] */ long Index, + /* [out] */ IMediaStream **ppMediaStream); + + DECLSPEC_XFGVIRT(IMediaStreamFilter, SupportSeeking) + HRESULT ( STDMETHODCALLTYPE *SupportSeeking )( + IMediaStreamFilter * This, + /* [in] */ BOOL bRenderer); + + DECLSPEC_XFGVIRT(IMediaStreamFilter, ReferenceTimeToStreamTime) + HRESULT ( STDMETHODCALLTYPE *ReferenceTimeToStreamTime )( + IMediaStreamFilter * This, + /* [out][in] */ REFERENCE_TIME *pTime); + + DECLSPEC_XFGVIRT(IMediaStreamFilter, GetCurrentStreamTime) + HRESULT ( STDMETHODCALLTYPE *GetCurrentStreamTime )( + IMediaStreamFilter * This, + /* [out] */ REFERENCE_TIME *pCurrentStreamTime); + + DECLSPEC_XFGVIRT(IMediaStreamFilter, WaitUntil) + HRESULT ( STDMETHODCALLTYPE *WaitUntil )( + IMediaStreamFilter * This, + /* [in] */ REFERENCE_TIME WaitStreamTime); + + DECLSPEC_XFGVIRT(IMediaStreamFilter, Flush) + HRESULT ( STDMETHODCALLTYPE *Flush )( + IMediaStreamFilter * This, + /* [in] */ BOOL bCancelEOS); + + DECLSPEC_XFGVIRT(IMediaStreamFilter, EndOfStream) + HRESULT ( STDMETHODCALLTYPE *EndOfStream )( + IMediaStreamFilter * This); + + END_INTERFACE + } IMediaStreamFilterVtbl; + + interface IMediaStreamFilter + { + CONST_VTBL struct IMediaStreamFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMediaStreamFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMediaStreamFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMediaStreamFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMediaStreamFilter_GetClassID(This,pClassID) \ + ( (This)->lpVtbl -> GetClassID(This,pClassID) ) + + +#define IMediaStreamFilter_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IMediaStreamFilter_Pause(This) \ + ( (This)->lpVtbl -> Pause(This) ) + +#define IMediaStreamFilter_Run(This,tStart) \ + ( (This)->lpVtbl -> Run(This,tStart) ) + +#define IMediaStreamFilter_GetState(This,dwMilliSecsTimeout,State) \ + ( (This)->lpVtbl -> GetState(This,dwMilliSecsTimeout,State) ) + +#define IMediaStreamFilter_SetSyncSource(This,pClock) \ + ( (This)->lpVtbl -> SetSyncSource(This,pClock) ) + +#define IMediaStreamFilter_GetSyncSource(This,pClock) \ + ( (This)->lpVtbl -> GetSyncSource(This,pClock) ) + + +#define IMediaStreamFilter_EnumPins(This,ppEnum) \ + ( (This)->lpVtbl -> EnumPins(This,ppEnum) ) + +#define IMediaStreamFilter_FindPin(This,Id,ppPin) \ + ( (This)->lpVtbl -> FindPin(This,Id,ppPin) ) + +#define IMediaStreamFilter_QueryFilterInfo(This,pInfo) \ + ( (This)->lpVtbl -> QueryFilterInfo(This,pInfo) ) + +#define IMediaStreamFilter_JoinFilterGraph(This,pGraph,pName) \ + ( (This)->lpVtbl -> JoinFilterGraph(This,pGraph,pName) ) + +#define IMediaStreamFilter_QueryVendorInfo(This,pVendorInfo) \ + ( (This)->lpVtbl -> QueryVendorInfo(This,pVendorInfo) ) + + +#define IMediaStreamFilter_AddMediaStream(This,pAMMediaStream) \ + ( (This)->lpVtbl -> AddMediaStream(This,pAMMediaStream) ) + +#define IMediaStreamFilter_GetMediaStream(This,idPurpose,ppMediaStream) \ + ( (This)->lpVtbl -> GetMediaStream(This,idPurpose,ppMediaStream) ) + +#define IMediaStreamFilter_EnumMediaStreams(This,Index,ppMediaStream) \ + ( (This)->lpVtbl -> EnumMediaStreams(This,Index,ppMediaStream) ) + +#define IMediaStreamFilter_SupportSeeking(This,bRenderer) \ + ( (This)->lpVtbl -> SupportSeeking(This,bRenderer) ) + +#define IMediaStreamFilter_ReferenceTimeToStreamTime(This,pTime) \ + ( (This)->lpVtbl -> ReferenceTimeToStreamTime(This,pTime) ) + +#define IMediaStreamFilter_GetCurrentStreamTime(This,pCurrentStreamTime) \ + ( (This)->lpVtbl -> GetCurrentStreamTime(This,pCurrentStreamTime) ) + +#define IMediaStreamFilter_WaitUntil(This,WaitStreamTime) \ + ( (This)->lpVtbl -> WaitUntil(This,WaitStreamTime) ) + +#define IMediaStreamFilter_Flush(This,bCancelEOS) \ + ( (This)->lpVtbl -> Flush(This,bCancelEOS) ) + +#define IMediaStreamFilter_EndOfStream(This) \ + ( (This)->lpVtbl -> EndOfStream(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMediaStreamFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectDrawMediaSampleAllocator_INTERFACE_DEFINED__ +#define __IDirectDrawMediaSampleAllocator_INTERFACE_DEFINED__ + +/* interface IDirectDrawMediaSampleAllocator */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IDirectDrawMediaSampleAllocator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AB6B4AFC-F6E4-11d0-900D-00C04FD9189D") + IDirectDrawMediaSampleAllocator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDirectDraw( + IDirectDraw **ppDirectDraw) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectDrawMediaSampleAllocatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectDrawMediaSampleAllocator * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectDrawMediaSampleAllocator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectDrawMediaSampleAllocator * This); + + DECLSPEC_XFGVIRT(IDirectDrawMediaSampleAllocator, GetDirectDraw) + HRESULT ( STDMETHODCALLTYPE *GetDirectDraw )( + IDirectDrawMediaSampleAllocator * This, + IDirectDraw **ppDirectDraw); + + END_INTERFACE + } IDirectDrawMediaSampleAllocatorVtbl; + + interface IDirectDrawMediaSampleAllocator + { + CONST_VTBL struct IDirectDrawMediaSampleAllocatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectDrawMediaSampleAllocator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectDrawMediaSampleAllocator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectDrawMediaSampleAllocator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectDrawMediaSampleAllocator_GetDirectDraw(This,ppDirectDraw) \ + ( (This)->lpVtbl -> GetDirectDraw(This,ppDirectDraw) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectDrawMediaSampleAllocator_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectDrawMediaSample_INTERFACE_DEFINED__ +#define __IDirectDrawMediaSample_INTERFACE_DEFINED__ + +/* interface IDirectDrawMediaSample */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IDirectDrawMediaSample; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AB6B4AFE-F6E4-11d0-900D-00C04FD9189D") + IDirectDrawMediaSample : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSurfaceAndReleaseLock( + /* [out] */ IDirectDrawSurface **ppDirectDrawSurface, + /* [out] */ RECT *pRect) = 0; + + virtual HRESULT STDMETHODCALLTYPE LockMediaSamplePointer( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectDrawMediaSampleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectDrawMediaSample * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectDrawMediaSample * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectDrawMediaSample * This); + + DECLSPEC_XFGVIRT(IDirectDrawMediaSample, GetSurfaceAndReleaseLock) + HRESULT ( STDMETHODCALLTYPE *GetSurfaceAndReleaseLock )( + IDirectDrawMediaSample * This, + /* [out] */ IDirectDrawSurface **ppDirectDrawSurface, + /* [out] */ RECT *pRect); + + DECLSPEC_XFGVIRT(IDirectDrawMediaSample, LockMediaSamplePointer) + HRESULT ( STDMETHODCALLTYPE *LockMediaSamplePointer )( + IDirectDrawMediaSample * This); + + END_INTERFACE + } IDirectDrawMediaSampleVtbl; + + interface IDirectDrawMediaSample + { + CONST_VTBL struct IDirectDrawMediaSampleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectDrawMediaSample_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectDrawMediaSample_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectDrawMediaSample_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectDrawMediaSample_GetSurfaceAndReleaseLock(This,ppDirectDrawSurface,pRect) \ + ( (This)->lpVtbl -> GetSurfaceAndReleaseLock(This,ppDirectDrawSurface,pRect) ) + +#define IDirectDrawMediaSample_LockMediaSamplePointer(This) \ + ( (This)->lpVtbl -> LockMediaSamplePointer(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectDrawMediaSample_INTERFACE_DEFINED__ */ + + +#ifndef __IAMMediaTypeStream_INTERFACE_DEFINED__ +#define __IAMMediaTypeStream_INTERFACE_DEFINED__ + +/* interface IAMMediaTypeStream */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IAMMediaTypeStream; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AB6B4AFA-F6E4-11d0-900D-00C04FD9189D") + IAMMediaTypeStream : public IMediaStream + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFormat( + /* [out] */ AM_MEDIA_TYPE *pMediaType, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFormat( + /* [in] */ AM_MEDIA_TYPE *pMediaType, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSample( + /* [in] */ long lSampleSize, + /* [in] */ BYTE *pbBuffer, + /* [in] */ DWORD dwFlags, + /* [in] */ IUnknown *pUnkOuter, + /* [out] */ IAMMediaTypeSample **ppAMMediaTypeSample) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamAllocatorRequirements( + /* [out] */ ALLOCATOR_PROPERTIES *pProps) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStreamAllocatorRequirements( + /* [in] */ ALLOCATOR_PROPERTIES *pProps) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAMMediaTypeStreamVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAMMediaTypeStream * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAMMediaTypeStream * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAMMediaTypeStream * This); + + DECLSPEC_XFGVIRT(IMediaStream, GetMultiMediaStream) + HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )( + IAMMediaTypeStream * This, + /* [out] */ IMultiMediaStream **ppMultiMediaStream); + + DECLSPEC_XFGVIRT(IMediaStream, GetInformation) + HRESULT ( STDMETHODCALLTYPE *GetInformation )( + IAMMediaTypeStream * This, + /* [out] */ MSPID *pPurposeId, + /* [out] */ STREAM_TYPE *pType); + + DECLSPEC_XFGVIRT(IMediaStream, SetSameFormat) + HRESULT ( STDMETHODCALLTYPE *SetSameFormat )( + IAMMediaTypeStream * This, + /* [in] */ IMediaStream *pStreamThatHasDesiredFormat, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IMediaStream, AllocateSample) + HRESULT ( STDMETHODCALLTYPE *AllocateSample )( + IAMMediaTypeStream * This, + /* [in] */ DWORD dwFlags, + /* [out] */ IStreamSample **ppSample); + + DECLSPEC_XFGVIRT(IMediaStream, CreateSharedSample) + HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )( + IAMMediaTypeStream * This, + /* [in] */ IStreamSample *pExistingSample, + /* [in] */ DWORD dwFlags, + /* [out] */ IStreamSample **ppNewSample); + + DECLSPEC_XFGVIRT(IMediaStream, SendEndOfStream) + HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )( + IAMMediaTypeStream * This, + DWORD dwFlags); + + DECLSPEC_XFGVIRT(IAMMediaTypeStream, GetFormat) + HRESULT ( STDMETHODCALLTYPE *GetFormat )( + IAMMediaTypeStream * This, + /* [out] */ AM_MEDIA_TYPE *pMediaType, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IAMMediaTypeStream, SetFormat) + HRESULT ( STDMETHODCALLTYPE *SetFormat )( + IAMMediaTypeStream * This, + /* [in] */ AM_MEDIA_TYPE *pMediaType, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IAMMediaTypeStream, CreateSample) + HRESULT ( STDMETHODCALLTYPE *CreateSample )( + IAMMediaTypeStream * This, + /* [in] */ long lSampleSize, + /* [in] */ BYTE *pbBuffer, + /* [in] */ DWORD dwFlags, + /* [in] */ IUnknown *pUnkOuter, + /* [out] */ IAMMediaTypeSample **ppAMMediaTypeSample); + + DECLSPEC_XFGVIRT(IAMMediaTypeStream, GetStreamAllocatorRequirements) + HRESULT ( STDMETHODCALLTYPE *GetStreamAllocatorRequirements )( + IAMMediaTypeStream * This, + /* [out] */ ALLOCATOR_PROPERTIES *pProps); + + DECLSPEC_XFGVIRT(IAMMediaTypeStream, SetStreamAllocatorRequirements) + HRESULT ( STDMETHODCALLTYPE *SetStreamAllocatorRequirements )( + IAMMediaTypeStream * This, + /* [in] */ ALLOCATOR_PROPERTIES *pProps); + + END_INTERFACE + } IAMMediaTypeStreamVtbl; + + interface IAMMediaTypeStream + { + CONST_VTBL struct IAMMediaTypeStreamVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAMMediaTypeStream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAMMediaTypeStream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAMMediaTypeStream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAMMediaTypeStream_GetMultiMediaStream(This,ppMultiMediaStream) \ + ( (This)->lpVtbl -> GetMultiMediaStream(This,ppMultiMediaStream) ) + +#define IAMMediaTypeStream_GetInformation(This,pPurposeId,pType) \ + ( (This)->lpVtbl -> GetInformation(This,pPurposeId,pType) ) + +#define IAMMediaTypeStream_SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) \ + ( (This)->lpVtbl -> SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) ) + +#define IAMMediaTypeStream_AllocateSample(This,dwFlags,ppSample) \ + ( (This)->lpVtbl -> AllocateSample(This,dwFlags,ppSample) ) + +#define IAMMediaTypeStream_CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) \ + ( (This)->lpVtbl -> CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) ) + +#define IAMMediaTypeStream_SendEndOfStream(This,dwFlags) \ + ( (This)->lpVtbl -> SendEndOfStream(This,dwFlags) ) + + +#define IAMMediaTypeStream_GetFormat(This,pMediaType,dwFlags) \ + ( (This)->lpVtbl -> GetFormat(This,pMediaType,dwFlags) ) + +#define IAMMediaTypeStream_SetFormat(This,pMediaType,dwFlags) \ + ( (This)->lpVtbl -> SetFormat(This,pMediaType,dwFlags) ) + +#define IAMMediaTypeStream_CreateSample(This,lSampleSize,pbBuffer,dwFlags,pUnkOuter,ppAMMediaTypeSample) \ + ( (This)->lpVtbl -> CreateSample(This,lSampleSize,pbBuffer,dwFlags,pUnkOuter,ppAMMediaTypeSample) ) + +#define IAMMediaTypeStream_GetStreamAllocatorRequirements(This,pProps) \ + ( (This)->lpVtbl -> GetStreamAllocatorRequirements(This,pProps) ) + +#define IAMMediaTypeStream_SetStreamAllocatorRequirements(This,pProps) \ + ( (This)->lpVtbl -> SetStreamAllocatorRequirements(This,pProps) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAMMediaTypeStream_INTERFACE_DEFINED__ */ + + +#ifndef __IAMMediaTypeSample_INTERFACE_DEFINED__ +#define __IAMMediaTypeSample_INTERFACE_DEFINED__ + +/* interface IAMMediaTypeSample */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IAMMediaTypeSample; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AB6B4AFB-F6E4-11d0-900D-00C04FD9189D") + IAMMediaTypeSample : public IStreamSample + { + public: + virtual HRESULT STDMETHODCALLTYPE SetPointer( + /* [size_is][in] */ BYTE *pBuffer, + /* [in] */ long lSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPointer( + /* [out] */ BYTE **ppBuffer) = 0; + + virtual long STDMETHODCALLTYPE GetSize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTime( + /* [out] */ REFERENCE_TIME *pTimeStart, + /* [out] */ REFERENCE_TIME *pTimeEnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetTime( + /* [in] */ REFERENCE_TIME *pTimeStart, + /* [in] */ REFERENCE_TIME *pTimeEnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsSyncPoint( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSyncPoint( + BOOL bIsSyncPoint) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsPreroll( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPreroll( + BOOL bIsPreroll) = 0; + + virtual long STDMETHODCALLTYPE GetActualDataLength( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetActualDataLength( + long __MIDL__IAMMediaTypeSample0000) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMediaType( + /* [out] */ AM_MEDIA_TYPE **ppMediaType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMediaType( + /* [in] */ AM_MEDIA_TYPE *pMediaType) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsDiscontinuity( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDiscontinuity( + BOOL bDiscontinuity) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMediaTime( + /* [out] */ LONGLONG *pTimeStart, + /* [out] */ LONGLONG *pTimeEnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMediaTime( + /* [in] */ LONGLONG *pTimeStart, + /* [in] */ LONGLONG *pTimeEnd) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAMMediaTypeSampleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAMMediaTypeSample * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAMMediaTypeSample * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAMMediaTypeSample * This); + + DECLSPEC_XFGVIRT(IStreamSample, GetMediaStream) + HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( + IAMMediaTypeSample * This, + /* [in] */ IMediaStream **ppMediaStream); + + DECLSPEC_XFGVIRT(IStreamSample, GetSampleTimes) + HRESULT ( STDMETHODCALLTYPE *GetSampleTimes )( + IAMMediaTypeSample * This, + /* [out] */ STREAM_TIME *pStartTime, + /* [out] */ STREAM_TIME *pEndTime, + /* [out] */ STREAM_TIME *pCurrentTime); + + DECLSPEC_XFGVIRT(IStreamSample, SetSampleTimes) + HRESULT ( STDMETHODCALLTYPE *SetSampleTimes )( + IAMMediaTypeSample * This, + /* [in] */ const STREAM_TIME *pStartTime, + /* [in] */ const STREAM_TIME *pEndTime); + + DECLSPEC_XFGVIRT(IStreamSample, Update) + HRESULT ( STDMETHODCALLTYPE *Update )( + IAMMediaTypeSample * This, + /* [in] */ DWORD dwFlags, + /* [in] */ HANDLE hEvent, + /* [in] */ PAPCFUNC pfnAPC, + /* [in] */ DWORD_PTR dwAPCData); + + DECLSPEC_XFGVIRT(IStreamSample, CompletionStatus) + HRESULT ( STDMETHODCALLTYPE *CompletionStatus )( + IAMMediaTypeSample * This, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwMilliseconds); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, SetPointer) + HRESULT ( STDMETHODCALLTYPE *SetPointer )( + IAMMediaTypeSample * This, + /* [size_is][in] */ BYTE *pBuffer, + /* [in] */ long lSize); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, GetPointer) + HRESULT ( STDMETHODCALLTYPE *GetPointer )( + IAMMediaTypeSample * This, + /* [out] */ BYTE **ppBuffer); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, GetSize) + long ( STDMETHODCALLTYPE *GetSize )( + IAMMediaTypeSample * This); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, GetTime) + HRESULT ( STDMETHODCALLTYPE *GetTime )( + IAMMediaTypeSample * This, + /* [out] */ REFERENCE_TIME *pTimeStart, + /* [out] */ REFERENCE_TIME *pTimeEnd); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, SetTime) + HRESULT ( STDMETHODCALLTYPE *SetTime )( + IAMMediaTypeSample * This, + /* [in] */ REFERENCE_TIME *pTimeStart, + /* [in] */ REFERENCE_TIME *pTimeEnd); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, IsSyncPoint) + HRESULT ( STDMETHODCALLTYPE *IsSyncPoint )( + IAMMediaTypeSample * This); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, SetSyncPoint) + HRESULT ( STDMETHODCALLTYPE *SetSyncPoint )( + IAMMediaTypeSample * This, + BOOL bIsSyncPoint); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, IsPreroll) + HRESULT ( STDMETHODCALLTYPE *IsPreroll )( + IAMMediaTypeSample * This); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, SetPreroll) + HRESULT ( STDMETHODCALLTYPE *SetPreroll )( + IAMMediaTypeSample * This, + BOOL bIsPreroll); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, GetActualDataLength) + long ( STDMETHODCALLTYPE *GetActualDataLength )( + IAMMediaTypeSample * This); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, SetActualDataLength) + HRESULT ( STDMETHODCALLTYPE *SetActualDataLength )( + IAMMediaTypeSample * This, + long __MIDL__IAMMediaTypeSample0000); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, GetMediaType) + HRESULT ( STDMETHODCALLTYPE *GetMediaType )( + IAMMediaTypeSample * This, + /* [out] */ AM_MEDIA_TYPE **ppMediaType); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, SetMediaType) + HRESULT ( STDMETHODCALLTYPE *SetMediaType )( + IAMMediaTypeSample * This, + /* [in] */ AM_MEDIA_TYPE *pMediaType); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, IsDiscontinuity) + HRESULT ( STDMETHODCALLTYPE *IsDiscontinuity )( + IAMMediaTypeSample * This); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, SetDiscontinuity) + HRESULT ( STDMETHODCALLTYPE *SetDiscontinuity )( + IAMMediaTypeSample * This, + BOOL bDiscontinuity); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, GetMediaTime) + HRESULT ( STDMETHODCALLTYPE *GetMediaTime )( + IAMMediaTypeSample * This, + /* [out] */ LONGLONG *pTimeStart, + /* [out] */ LONGLONG *pTimeEnd); + + DECLSPEC_XFGVIRT(IAMMediaTypeSample, SetMediaTime) + HRESULT ( STDMETHODCALLTYPE *SetMediaTime )( + IAMMediaTypeSample * This, + /* [in] */ LONGLONG *pTimeStart, + /* [in] */ LONGLONG *pTimeEnd); + + END_INTERFACE + } IAMMediaTypeSampleVtbl; + + interface IAMMediaTypeSample + { + CONST_VTBL struct IAMMediaTypeSampleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAMMediaTypeSample_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAMMediaTypeSample_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAMMediaTypeSample_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAMMediaTypeSample_GetMediaStream(This,ppMediaStream) \ + ( (This)->lpVtbl -> GetMediaStream(This,ppMediaStream) ) + +#define IAMMediaTypeSample_GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) \ + ( (This)->lpVtbl -> GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) ) + +#define IAMMediaTypeSample_SetSampleTimes(This,pStartTime,pEndTime) \ + ( (This)->lpVtbl -> SetSampleTimes(This,pStartTime,pEndTime) ) + +#define IAMMediaTypeSample_Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) \ + ( (This)->lpVtbl -> Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) ) + +#define IAMMediaTypeSample_CompletionStatus(This,dwFlags,dwMilliseconds) \ + ( (This)->lpVtbl -> CompletionStatus(This,dwFlags,dwMilliseconds) ) + + +#define IAMMediaTypeSample_SetPointer(This,pBuffer,lSize) \ + ( (This)->lpVtbl -> SetPointer(This,pBuffer,lSize) ) + +#define IAMMediaTypeSample_GetPointer(This,ppBuffer) \ + ( (This)->lpVtbl -> GetPointer(This,ppBuffer) ) + +#define IAMMediaTypeSample_GetSize(This) \ + ( (This)->lpVtbl -> GetSize(This) ) + +#define IAMMediaTypeSample_GetTime(This,pTimeStart,pTimeEnd) \ + ( (This)->lpVtbl -> GetTime(This,pTimeStart,pTimeEnd) ) + +#define IAMMediaTypeSample_SetTime(This,pTimeStart,pTimeEnd) \ + ( (This)->lpVtbl -> SetTime(This,pTimeStart,pTimeEnd) ) + +#define IAMMediaTypeSample_IsSyncPoint(This) \ + ( (This)->lpVtbl -> IsSyncPoint(This) ) + +#define IAMMediaTypeSample_SetSyncPoint(This,bIsSyncPoint) \ + ( (This)->lpVtbl -> SetSyncPoint(This,bIsSyncPoint) ) + +#define IAMMediaTypeSample_IsPreroll(This) \ + ( (This)->lpVtbl -> IsPreroll(This) ) + +#define IAMMediaTypeSample_SetPreroll(This,bIsPreroll) \ + ( (This)->lpVtbl -> SetPreroll(This,bIsPreroll) ) + +#define IAMMediaTypeSample_GetActualDataLength(This) \ + ( (This)->lpVtbl -> GetActualDataLength(This) ) + +#define IAMMediaTypeSample_SetActualDataLength(This,__MIDL__IAMMediaTypeSample0000) \ + ( (This)->lpVtbl -> SetActualDataLength(This,__MIDL__IAMMediaTypeSample0000) ) + +#define IAMMediaTypeSample_GetMediaType(This,ppMediaType) \ + ( (This)->lpVtbl -> GetMediaType(This,ppMediaType) ) + +#define IAMMediaTypeSample_SetMediaType(This,pMediaType) \ + ( (This)->lpVtbl -> SetMediaType(This,pMediaType) ) + +#define IAMMediaTypeSample_IsDiscontinuity(This) \ + ( (This)->lpVtbl -> IsDiscontinuity(This) ) + +#define IAMMediaTypeSample_SetDiscontinuity(This,bDiscontinuity) \ + ( (This)->lpVtbl -> SetDiscontinuity(This,bDiscontinuity) ) + +#define IAMMediaTypeSample_GetMediaTime(This,pTimeStart,pTimeEnd) \ + ( (This)->lpVtbl -> GetMediaTime(This,pTimeStart,pTimeEnd) ) + +#define IAMMediaTypeSample_SetMediaTime(This,pTimeStart,pTimeEnd) \ + ( (This)->lpVtbl -> SetMediaTime(This,pTimeStart,pTimeEnd) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAMMediaTypeSample_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_amstream_0000_0007 */ +/* [local] */ + +DEFINE_GUID(CLSID_AMMultiMediaStream, /* 49c47ce5-9ba4-11d0-8212-00c04fc32c45 */ +0x49c47ce5, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45); +DEFINE_GUID(CLSID_AMDirectDrawStream, /* 49c47ce4-9ba4-11d0-8212-00c04fc32c45 */ +0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45); +DEFINE_GUID(CLSID_AMAudioStream, /* 8496e040-af4c-11d0-8212-00c04fc32c45 */ +0x8496e040, 0xaf4c, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45); +DEFINE_GUID(CLSID_AMAudioData, /* f2468580-af8a-11d0-8212-00c04fc32c45 */ +0xf2468580, 0xaf8a, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45); +DEFINE_GUID(CLSID_AMMediaTypeStream, /* CF0F2F7C-F7BF-11d0-900D-00C04FD9189D */ +0xcf0f2f7c, 0xf7bf, 0x11d0, 0x90, 0xd, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d); +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_amstream_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_amstream_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/amstream.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amstream.idl new file mode 100644 index 0000000000000000000000000000000000000000..ab95439b48e9213ecb397e4e73bf17c0e6665034 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amstream.idl @@ -0,0 +1,293 @@ +//------------------------------------------------------------------------------ +// File: AMStream.idl +// +// Desc: +// +// Copyright (c) 1998 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl"; +import "mmstream.idl"; +import "strmif.idl"; + +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("#include ") + + + +interface IAMMultiMediaStream; +interface IAMMediaStream; +interface IMediaStreamFilter; +interface IDirectDraw; +interface IDirectDrawSurface; +interface IAMMediaTypeStream; +interface IAMMediaTypeSample; + +// Flags definitions for IAMMultiMediaStream::Initialize +enum { + AMMSF_NOGRAPHTHREAD = 0x00000001 +}; + +// Flags definitions for AddMediaStream and IAMMediaStream::Initialize +enum { + // Don't add a stream - create a default renderer instead + // for the supplied purpose id + AMMSF_ADDDEFAULTRENDERER = 0x00000001, + AMMSF_CREATEPEER = 0x00000002, + + // If no samples are created when we run or the last sample + // is deleted then terminate this stream + AMMSF_STOPIFNOSAMPLES = 0x00000004, + + // If Update is not called keep going + AMMSF_NOSTALL = 0x00000008 +}; + + +// Flag definitions for OpenFile and OpenMoniker +enum { + AMMSF_RENDERTYPEMASK = 0x00000003, + AMMSF_RENDERTOEXISTING = 0x00000000, + AMMSF_RENDERALLSTREAMS = 0x00000001, + AMMSF_NORENDER = 0x00000002, + + AMMSF_NOCLOCK = 0x00000004, + AMMSF_RUN = 0x00000008 +}; + + +typedef [v1_enum] enum { + Disabled = 0, + ReadData = 1, + RenderData = 2 +} OUTPUT_STATE; + + +// IAMMultiMediaStream interface +[ +object, +uuid(BEBE595C-9A6F-11d0-8FDE-00C04FD9189D), +pointer_default(unique) +] +interface IAMMultiMediaStream : IMultiMediaStream +{ + HRESULT Initialize( + [in] STREAM_TYPE StreamType, + [in] DWORD dwFlags, + [in] IGraphBuilder *pFilterGraph); + + HRESULT GetFilterGraph( + [out] IGraphBuilder **ppGraphBuilder); + + HRESULT GetFilter( + [out] IMediaStreamFilter **ppFilter); + + HRESULT AddMediaStream( + [in] IUnknown *pStreamObject, + [in] const MSPID *PurposeId, + [in] DWORD dwFlags, + [out] IMediaStream **ppNewStream); + + HRESULT OpenFile( + [in] LPCWSTR pszFileName, + [in] DWORD dwFlags); + + HRESULT OpenMoniker( + [in] IBindCtx *pCtx, + [in] IMoniker *pMoniker, + [in] DWORD dwFlags); + + HRESULT Render( + [in] DWORD dwFlags); +} + + +// IAMMediaStream interface +[ +object, +uuid(BEBE595D-9A6F-11d0-8FDE-00C04FD9189D), +pointer_default(unique) +] +interface IAMMediaStream : IMediaStream +{ + HRESULT Initialize( + [in] IUnknown *pSourceObject, + [in] DWORD dwFlags, + [in] REFMSPID PurposeId, + [in] const STREAM_TYPE StreamType); + + HRESULT SetState( + [in] FILTER_STATE State); + + HRESULT JoinAMMultiMediaStream( + [in] IAMMultiMediaStream *pAMMultiMediaStream); + + HRESULT JoinFilter( + [in] IMediaStreamFilter *pMediaStreamFilter); + + HRESULT JoinFilterGraph( + [in] IFilterGraph *pFilterGraph); +}; + + + + +// IMediaStreamFilter interface +[ +object, +local, +uuid(BEBE595E-9A6F-11d0-8FDE-00C04FD9189D), +pointer_default(unique) +] +interface IMediaStreamFilter : IBaseFilter +{ + HRESULT AddMediaStream( + [in] IAMMediaStream *pAMMediaStream); + + HRESULT GetMediaStream( + [in] REFMSPID idPurpose, + [out] IMediaStream **ppMediaStream); + + HRESULT EnumMediaStreams( + [in] long Index, + [out] IMediaStream **ppMediaStream); + + HRESULT SupportSeeking( + [in] BOOL bRenderer); + + HRESULT ReferenceTimeToStreamTime( + [in] [out] REFERENCE_TIME *pTime); + + HRESULT GetCurrentStreamTime( + [out] REFERENCE_TIME *pCurrentStreamTime); + + HRESULT WaitUntil( + [in] REFERENCE_TIME WaitStreamTime); + + HRESULT Flush( + [in] BOOL bCancelEOS); + + HRESULT EndOfStream(); +}; + + + +[ +object, +local, +uuid(AB6B4AFC-F6E4-11d0-900D-00C04FD9189D), +pointer_default(unique) +] +interface IDirectDrawMediaSampleAllocator : IUnknown +{ + HRESULT GetDirectDraw(IDirectDraw **ppDirectDraw); +}; + + +[ +object, +local, +uuid(AB6B4AFE-F6E4-11d0-900D-00C04FD9189D), +pointer_default(unique) +] +interface IDirectDrawMediaSample : IUnknown +{ + HRESULT GetSurfaceAndReleaseLock( + [out] IDirectDrawSurface **ppDirectDrawSurface, + [out] RECT * pRect); + HRESULT LockMediaSamplePointer(void); +}; + + + + + +[ +object, +local, +uuid(AB6B4AFA-F6E4-11d0-900D-00C04FD9189D), +pointer_default(unique) +] + +interface IAMMediaTypeStream : IMediaStream +{ + HRESULT GetFormat( + [out] AM_MEDIA_TYPE * pMediaType, + [in] DWORD dwFlags); + + HRESULT SetFormat( + [in] AM_MEDIA_TYPE * pMediaType, + [in] DWORD dwFlags); + + HRESULT CreateSample( + [in] long lSampleSize, + [in] BYTE * pbBuffer, + [in] DWORD dwFlags, + [in] IUnknown *pUnkOuter, + [out] IAMMediaTypeSample ** ppAMMediaTypeSample); + + HRESULT GetStreamAllocatorRequirements( + [out] ALLOCATOR_PROPERTIES *pProps); + + HRESULT SetStreamAllocatorRequirements( + [in] ALLOCATOR_PROPERTIES *pProps); +}; + + +[ +object, +local, +uuid(AB6B4AFB-F6E4-11d0-900D-00C04FD9189D), +pointer_default(unique) +] +interface IAMMediaTypeSample : IStreamSample +{ + // + // Unique methods for IAMMediaTypeSample + // + HRESULT SetPointer([in, size_is(lSize)] BYTE *pBuffer, [in] long lSize); + + // + // Mirror of IMediaSample + // + HRESULT GetPointer([out] BYTE ** ppBuffer); + long GetSize(void); + HRESULT GetTime([out] REFERENCE_TIME * pTimeStart, [out] REFERENCE_TIME * pTimeEnd); + HRESULT SetTime([in] REFERENCE_TIME * pTimeStart, [in] REFERENCE_TIME * pTimeEnd); + HRESULT IsSyncPoint(void); + HRESULT SetSyncPoint(BOOL bIsSyncPoint); + HRESULT IsPreroll(void); + HRESULT SetPreroll(BOOL bIsPreroll); + long GetActualDataLength(void); + HRESULT SetActualDataLength(long); + HRESULT GetMediaType([out] AM_MEDIA_TYPE **ppMediaType); + HRESULT SetMediaType([in] AM_MEDIA_TYPE *pMediaType); + HRESULT IsDiscontinuity(void); + HRESULT SetDiscontinuity(BOOL bDiscontinuity); + HRESULT GetMediaTime([out] LONGLONG * pTimeStart, [out] LONGLONG * pTimeEnd); + HRESULT SetMediaTime([in] LONGLONG * pTimeStart, [in] LONGLONG * pTimeEnd); +}; + +cpp_quote("DEFINE_GUID(CLSID_AMMultiMediaStream, /* 49c47ce5-9ba4-11d0-8212-00c04fc32c45 */") +cpp_quote("0x49c47ce5, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") +cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, /* 49c47ce4-9ba4-11d0-8212-00c04fc32c45 */") +cpp_quote("0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") +cpp_quote("DEFINE_GUID(CLSID_AMAudioStream, /* 8496e040-af4c-11d0-8212-00c04fc32c45 */") +cpp_quote("0x8496e040, 0xaf4c, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") +cpp_quote("DEFINE_GUID(CLSID_AMAudioData, /* f2468580-af8a-11d0-8212-00c04fc32c45 */") +cpp_quote("0xf2468580, 0xaf8a, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") +cpp_quote("DEFINE_GUID(CLSID_AMMediaTypeStream, /* CF0F2F7C-F7BF-11d0-900D-00C04FD9189D */") +cpp_quote("0xcf0f2f7c, 0xf7bf, 0x11d0, 0x90, 0xd, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/amva.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amva.h new file mode 100644 index 0000000000000000000000000000000000000000..2deab723547fbb062add314ebc31b6324361b62a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amva.h @@ -0,0 +1,94 @@ +//------------------------------------------------------------------------------ +// File: AMVA.h +// +// Desc: DirectShowMotionComp include file. +// +// Copyright (c) 1997 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __AMVA_INCLUDED__ +#define __AMVA_INCLUDED__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + + +#define AMVA_TYPEINDEX_OUTPUTFRAME 0xFFFFFFFF + +// Flags for QueryRenderStatus +#define AMVA_QUERYRENDERSTATUSF_READ 0x00000001 // Query for read + // set this bit to 0 + // if query for update + +typedef struct _tag_AMVAUncompBufferInfo +{ + DWORD dwMinNumSurfaces; // IN min number of surfaces to be allocated + DWORD dwMaxNumSurfaces; // IN max number of surfaces to be allocated + DDPIXELFORMAT ddUncompPixelFormat; // IN pixel format of surfaces to be allocated +} AMVAUncompBufferInfo, *LPAMVAUncompBufferInfo; + +typedef struct _tag_AMVAUncompDataInfo +{ + DWORD dwUncompWidth; // [in] width of uncompressed data + DWORD dwUncompHeight; // [in] height of uncompressed data + DDPIXELFORMAT ddUncompPixelFormat; // [in] pixel-format of uncompressed data +} AMVAUncompDataInfo, *LPAMVAUncompDataInfo; + +typedef struct _tag_AMVAInternalMemInfo +{ + DWORD dwScratchMemAlloc; // [out] amount of scratch memory will the hal allocate for its private use +} AMVAInternalMemInfo, *LPAMVAInternalMemInfo; + + +typedef struct _tag_AMVACompBufferInfo +{ + DWORD dwNumCompBuffers; // [out] number of buffers reqd for compressed data + DWORD dwWidthToCreate; // [out] Width of surface to create + DWORD dwHeightToCreate; // [out] Height of surface to create + DWORD dwBytesToAllocate; // [out] Total number of bytes used by each surface + DDSCAPS2 ddCompCaps; // [out] caps to create surfaces to store compressed data + DDPIXELFORMAT ddPixelFormat; // [out] fourcc to create surfaces to store compressed data +} AMVACompBufferInfo, *LPAMVACompBufferInfo; + + +// Note that you are NOT allowed to store any pointer in pMiscData +typedef struct _tag_AMVABeginFrameInfo +{ + DWORD dwDestSurfaceIndex; // IN destination buffer in which to decoding this frame + LPVOID pInputData; // IN pointer to misc data + DWORD dwSizeInputData; // IN size of other misc data to begin frame + LPVOID pOutputData; // OUT pointer to data which the VGA is going to fill + DWORD dwSizeOutputData; // IN size of data which the VGA is going to fill +} AMVABeginFrameInfo, *LPAMVABeginFrameInfo; + +// Note that you are NOT allowed to store any pointer in pMiscData +typedef struct _tag_AMVAEndFrameInfo +{ + DWORD dwSizeMiscData; // [in] size of other misc data to begin frame + LPVOID pMiscData; // [in] pointer to misc data +} AMVAEndFrameInfo, *LPAMVAEndFrameInfo; + +typedef struct _tag_AMVABUFFERINFO +{ + DWORD dwTypeIndex; // [in] Type of buffer + DWORD dwBufferIndex; // [in] Buffer index + DWORD dwDataOffset; // [in] offset of relevant data from the beginning of buffer + DWORD dwDataSize; // [in] size of relevant data +} AMVABUFFERINFO, *LPAMVABUFFERINFO; + +#ifdef __cplusplus +}; +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _AMVA_INCLUDED diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/amvideo.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amvideo.h new file mode 100644 index 0000000000000000000000000000000000000000..037a2499ab4efa4afb44516b11f3f429c7ad12ba --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amvideo.h @@ -0,0 +1,499 @@ +//------------------------------------------------------------------------------ +// File: AMVideo.h +// +// Desc: Video related definitions and interfaces for ActiveMovie. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __AMVIDEO__ +#define __AMVIDEO__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +#include + +// Duplicate DirectShow definition +typedef LONGLONG REFERENCE_TIME; + +// This is an interface on the video renderer that provides information about +// DirectDraw with respect to its use by the renderer. For example it allows +// an application to get details of the surface and any hardware capabilities +// that are available. It also allows someone to adjust the surfaces that the +// renderer should use and furthermore even set the DirectDraw instance. We +// allow someone to set the DirectDraw instance because DirectDraw can only +// be opened once per process so it helps resolve conflicts. There is some +// duplication in this interface as the hardware/emulated/FOURCCs available +// can all be found through the IDirectDraw interface, this interface allows +// simple access to that information without calling the DirectDraw provider +// itself. The AMDDS prefix is ActiveMovie DirectDraw Switches abbreviated. + +#define AMDDS_NONE 0x00 // No use for DCI/DirectDraw +#define AMDDS_DCIPS 0x01 // Use DCI primary surface +#define AMDDS_PS 0x02 // Use DirectDraw primary +#define AMDDS_RGBOVR 0x04 // RGB overlay surfaces +#define AMDDS_YUVOVR 0x08 // YUV overlay surfaces +#define AMDDS_RGBOFF 0x10 // RGB offscreen surfaces +#define AMDDS_YUVOFF 0x20 // YUV offscreen surfaces +#define AMDDS_RGBFLP 0x40 // RGB flipping surfaces +#define AMDDS_YUVFLP 0x80 // YUV flipping surfaces +#define AMDDS_ALL 0xFF // ALL the previous flags +#define AMDDS_DEFAULT AMDDS_ALL // Use all available surfaces + +#define AMDDS_YUV (AMDDS_YUVOFF | AMDDS_YUVOVR | AMDDS_YUVFLP) +#define AMDDS_RGB (AMDDS_RGBOFF | AMDDS_RGBOVR | AMDDS_RGBFLP) +#define AMDDS_PRIMARY (AMDDS_DCIPS | AMDDS_PS) + +// be nice to our friends in C +#undef INTERFACE +#define INTERFACE IDirectDrawVideo + +DECLARE_INTERFACE_(IDirectDrawVideo, IUnknown) +{ + // IUnknown methods + + STDMETHOD(QueryInterface)(THIS_ REFIID riid, _Outptr_ LPVOID *ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + // IDirectDrawVideo methods + + STDMETHOD(GetSwitches)(THIS_ _Out_ DWORD *pSwitches) PURE; + STDMETHOD(SetSwitches)(THIS_ DWORD Switches) PURE; + STDMETHOD(GetCaps)(THIS_ _Out_ DDCAPS *pCaps) PURE; + STDMETHOD(GetEmulatedCaps)(THIS_ _Out_ DDCAPS *pCaps) PURE; + STDMETHOD(GetSurfaceDesc)(THIS_ _Inout_ DDSURFACEDESC *pSurfaceDesc) PURE; + STDMETHOD(GetFourCCCodes)(THIS_ _Out_ DWORD *pCount,_Out_ DWORD *pCodes) PURE; + STDMETHOD(SetDirectDraw)(THIS_ LPDIRECTDRAW pDirectDraw) PURE; + STDMETHOD(GetDirectDraw)(THIS_ _Outptr_ LPDIRECTDRAW *ppDirectDraw) PURE; + STDMETHOD(GetSurfaceType)(THIS_ _Out_ DWORD *pSurfaceType) PURE; + STDMETHOD(SetDefault)(THIS) PURE; + STDMETHOD(UseScanLine)(THIS_ long UseScanLine) PURE; + STDMETHOD(CanUseScanLine)(THIS_ _Out_ long *UseScanLine) PURE; + STDMETHOD(UseOverlayStretch)(THIS_ long UseOverlayStretch) PURE; + STDMETHOD(CanUseOverlayStretch)(THIS_ _Out_ long *UseOverlayStretch) PURE; + STDMETHOD(UseWhenFullScreen)(THIS_ long UseWhenFullScreen) PURE; + STDMETHOD(WillUseFullScreen)(THIS_ _Out_ long *UseWhenFullScreen) PURE; +}; + + +// be nice to our friends in C +#undef INTERFACE +#define INTERFACE IQualProp + +DECLARE_INTERFACE_(IQualProp, IUnknown) +{ + // IUnknown methods + + STDMETHOD(QueryInterface)(THIS_ REFIID riid, _Outptr_ LPVOID *ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + // Compare these with the functions in class CGargle in gargle.h + + STDMETHOD(get_FramesDroppedInRenderer)(THIS_ _Out_ int *pcFrames) PURE; // Out + STDMETHOD(get_FramesDrawn)(THIS_ _Out_ int *pcFramesDrawn) PURE; // Out + STDMETHOD(get_AvgFrameRate)(THIS_ _Out_ int *piAvgFrameRate) PURE; // Out + STDMETHOD(get_Jitter)(THIS_ _Out_ int *iJitter) PURE; // Out + STDMETHOD(get_AvgSyncOffset)(THIS_ _Out_ int *piAvg) PURE; // Out + STDMETHOD(get_DevSyncOffset)(THIS_ _Out_ int *piDev) PURE; // Out +}; + + +// This interface allows an application or plug in distributor to control a +// full screen renderer. The Modex renderer supports this interface. When +// connected a renderer should load the display modes it has available +// The number of modes available can be obtained through CountModes. Then +// information on each individual mode is available by calling GetModeInfo +// and IsModeAvailable. An application may enable and disable any modes +// by calling the SetEnabled flag with OATRUE or OAFALSE (not C/C++ TRUE +// and FALSE values) - the current value may be queried by IsModeEnabled + +// A more generic way of setting the modes enabled that is easier to use +// when writing applications is the clip loss factor. This defines the +// amount of video that can be lost when deciding which display mode to +// use. Assuming the decoder cannot compress the video then playing an +// MPEG file (say 352x288) into a 320x200 display will lose about 25% of +// the image. The clip loss factor specifies the upper range permissible. +// To allow typical MPEG video to be played in 320x200 it defaults to 25% + +// be nice to our friends in C +#undef INTERFACE +#define INTERFACE IFullScreenVideo + +DECLARE_INTERFACE_(IFullScreenVideo, IUnknown) +{ + // IUnknown methods + + STDMETHOD(QueryInterface)(THIS_ REFIID riid, _Outptr_ LPVOID *ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + // IFullScreenVideo methods + + STDMETHOD(CountModes)(THIS_ _Out_ long *pModes) PURE; + STDMETHOD(GetModeInfo)(THIS_ long Mode,_Out_ long *pWidth,_Out_ long *pHeight,_Out_ long *pDepth) PURE; + STDMETHOD(GetCurrentMode)(THIS_ _Out_ long *pMode) PURE; + STDMETHOD(IsModeAvailable)(THIS_ long Mode) PURE; + STDMETHOD(IsModeEnabled)(THIS_ long Mode) PURE; + STDMETHOD(SetEnabled)(THIS_ long Mode,long bEnabled) PURE; + STDMETHOD(GetClipFactor)(THIS_ _Out_ long *pClipFactor) PURE; + STDMETHOD(SetClipFactor)(THIS_ long ClipFactor) PURE; + STDMETHOD(SetMessageDrain)(THIS_ HWND hwnd) PURE; + STDMETHOD(GetMessageDrain)(THIS_ _Out_ HWND *hwnd) PURE; + STDMETHOD(SetMonitor)(THIS_ long Monitor) PURE; + STDMETHOD(GetMonitor)(THIS_ _Out_ long *Monitor) PURE; + STDMETHOD(HideOnDeactivate)(THIS_ long Hide) PURE; + STDMETHOD(IsHideOnDeactivate)(THIS) PURE; + STDMETHOD(SetCaption)(THIS_ _In_ BSTR strCaption) PURE; + STDMETHOD(GetCaption)(THIS_ _Outptr_ BSTR *pstrCaption) PURE; + STDMETHOD(SetDefault)(THIS) PURE; +}; + + +// This adds the accelerator table capabilities in fullscreen. This is being +// added between the original runtime release and the full SDK release. We +// cannot just add the method to IFullScreenVideo as we don't want to force +// applications to have to ship the ActiveMovie support DLLs - this is very +// important to applications that plan on being downloaded over the Internet + +// be nice to our friends in C +#undef INTERFACE +#define INTERFACE IFullScreenVideoEx + +DECLARE_INTERFACE_(IFullScreenVideoEx, IFullScreenVideo) +{ + // IUnknown methods + + STDMETHOD(QueryInterface)(THIS_ REFIID riid, _Outptr_ LPVOID *ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + // IFullScreenVideo methods + + STDMETHOD(CountModes)(THIS_ _Out_ long *pModes) PURE; + STDMETHOD(GetModeInfo)(THIS_ long Mode,_Out_ long *pWidth,_Out_ long *pHeight,_Out_ long *pDepth) PURE; + STDMETHOD(GetCurrentMode)(THIS_ _Out_ long *pMode) PURE; + STDMETHOD(IsModeAvailable)(THIS_ long Mode) PURE; + STDMETHOD(IsModeEnabled)(THIS_ long Mode) PURE; + STDMETHOD(SetEnabled)(THIS_ long Mode,long bEnabled) PURE; + STDMETHOD(GetClipFactor)(THIS_ _Out_ long *pClipFactor) PURE; + STDMETHOD(SetClipFactor)(THIS_ long ClipFactor) PURE; + STDMETHOD(SetMessageDrain)(THIS_ HWND hwnd) PURE; + STDMETHOD(GetMessageDrain)(THIS_ _Out_ HWND *hwnd) PURE; + STDMETHOD(SetMonitor)(THIS_ long Monitor) PURE; + STDMETHOD(GetMonitor)(THIS_ _Out_ long *Monitor) PURE; + STDMETHOD(HideOnDeactivate)(THIS_ long Hide) PURE; + STDMETHOD(IsHideOnDeactivate)(THIS) PURE; + STDMETHOD(SetCaption)(THIS_ _In_ BSTR strCaption) PURE; + STDMETHOD(GetCaption)(THIS_ _Outptr_ BSTR *pstrCaption) PURE; + STDMETHOD(SetDefault)(THIS) PURE; + + // IFullScreenVideoEx + + STDMETHOD(SetAcceleratorTable)(THIS_ HWND hwnd,HACCEL hAccel) PURE; + STDMETHOD(GetAcceleratorTable)(THIS_ _Out_ HWND *phwnd,HACCEL *phAccel) PURE; + STDMETHOD(KeepPixelAspectRatio)(THIS_ long KeepAspect) PURE; + STDMETHOD(IsKeepPixelAspectRatio)(THIS_ _Out_ long *pKeepAspect) PURE; +}; + + +// The SDK base classes contain a base video mixer class. Video mixing in a +// software environment is tricky because we typically have multiple streams +// each sending data at unpredictable times. To work with this we defined a +// pin that is the lead pin, when data arrives on this pin we do a mix. As +// an alternative we may not want to have a lead pin but output samples at +// predefined spaces, like one every 1/15 of a second, this interfaces also +// supports that mode of operations (there is a working video mixer sample) + +// be nice to our friends in C +#undef INTERFACE +#define INTERFACE IBaseVideoMixer + +DECLARE_INTERFACE_(IBaseVideoMixer, IUnknown) +{ + STDMETHOD(SetLeadPin)(THIS_ int iPin) PURE; + STDMETHOD(GetLeadPin)(THIS_ _Out_ int *piPin) PURE; + STDMETHOD(GetInputPinCount)(THIS_ _Out_ int *piPinCount) PURE; + STDMETHOD(IsUsingClock)(THIS_ _Out_ int *pbValue) PURE; + STDMETHOD(SetUsingClock)(THIS_ int bValue) PURE; + STDMETHOD(GetClockPeriod)(THIS_ _Out_ int *pbValue) PURE; + STDMETHOD(SetClockPeriod)(THIS_ int bValue) PURE; +}; + +#define iPALETTE_COLORS 256 // Maximum colours in palette +#define iEGA_COLORS 16 // Number colours in EGA palette +#define iMASK_COLORS 3 // Maximum three components +#define iTRUECOLOR 16 // Minimum true colour device +#define iRED 0 // Index position for RED mask +#define iGREEN 1 // Index position for GREEN mask +#define iBLUE 2 // Index position for BLUE mask +#define iPALETTE 8 // Maximum colour depth using a palette +#define iMAXBITS 8 // Maximum bits per colour component + + +// Used for true colour images that also have a palette + +typedef struct tag_TRUECOLORINFO { + DWORD dwBitMasks[iMASK_COLORS]; + RGBQUAD bmiColors[iPALETTE_COLORS]; +} TRUECOLORINFO; + + +// The BITMAPINFOHEADER contains all the details about the video stream such +// as the actual image dimensions and their pixel depth. A source filter may +// also request that the sink take only a section of the video by providing a +// clipping rectangle in rcSource. In the worst case where the sink filter +// forgets to check this on connection it will simply render the whole thing +// which isn't a disaster. Ideally a sink filter will check the rcSource and +// if it doesn't support image extraction and the rectangle is not empty then +// it will reject the connection. A filter should use SetRectEmpty to reset a +// rectangle to all zeroes (and IsRectEmpty to later check the rectangle). +// The rcTarget specifies the destination rectangle for the video, for most +// source filters they will set this to all zeroes, a downstream filter may +// request that the video be placed in a particular area of the buffers it +// supplies in which case it will call QueryAccept with a non empty target + +typedef struct tagVIDEOINFOHEADER { + + RECT rcSource; // The bit we really want to use + RECT rcTarget; // Where the video should go + DWORD dwBitRate; // Approximate bit data rate + DWORD dwBitErrorRate; // Bit error rate for this stream + REFERENCE_TIME AvgTimePerFrame; // Average time per frame (100ns units) + + BITMAPINFOHEADER bmiHeader; + +} VIDEOINFOHEADER; + +// make sure the pbmi is initialized before using these macros +#define TRUECOLOR(pbmi) ((TRUECOLORINFO *)(((LPBYTE)&((pbmi)->bmiHeader)) \ + + (pbmi)->bmiHeader.biSize)) +#define COLORS(pbmi) ((RGBQUAD *)(((LPBYTE)&((pbmi)->bmiHeader)) \ + + (pbmi)->bmiHeader.biSize)) +#define BITMASKS(pbmi) ((DWORD *)(((LPBYTE)&((pbmi)->bmiHeader)) \ + + (pbmi)->bmiHeader.biSize)) + +// All the image based filters use this to communicate their media types. It's +// centred principally around the BITMAPINFO. This structure always contains a +// BITMAPINFOHEADER followed by a number of other fields depending on what the +// BITMAPINFOHEADER contains. If it contains details of a palettised format it +// will be followed by one or more RGBQUADs defining the palette. If it holds +// details of a true colour format then it may be followed by a set of three +// DWORD bit masks that specify where the RGB data can be found in the image +// (For more information regarding BITMAPINFOs see the Win32 documentation) + +// The rcSource and rcTarget fields are not for use by filters supplying the +// data. The destination (target) rectangle should be set to all zeroes. The +// source may also be zero filled or set with the dimensions of the video. So +// if the video is 352x288 pixels then set it to (0,0,352,288). These fields +// are mainly used by downstream filters that want to ask the source filter +// to place the image in a different position in an output buffer. So when +// using for example the primary surface the video renderer may ask a filter +// to place the video images in a destination position of (100,100,452,388) +// on the display since that's where the window is positioned on the display + +// !!! WARNING !!! +// DO NOT use this structure unless you are sure that the BITMAPINFOHEADER +// has a normal biSize == sizeof(BITMAPINFOHEADER) ! +// !!! WARNING !!! + +typedef struct tagVIDEOINFO { + + RECT rcSource; // The bit we really want to use + RECT rcTarget; // Where the video should go + DWORD dwBitRate; // Approximate bit data rate + DWORD dwBitErrorRate; // Bit error rate for this stream + REFERENCE_TIME AvgTimePerFrame; // Average time per frame (100ns units) + + BITMAPINFOHEADER bmiHeader; + + union { + RGBQUAD bmiColors[iPALETTE_COLORS]; // Colour palette + DWORD dwBitMasks[iMASK_COLORS]; // True colour masks + TRUECOLORINFO TrueColorInfo; // Both of the above + }; + +} VIDEOINFO; + +// These macros define some standard bitmap format sizes + +#define SIZE_EGA_PALETTE (iEGA_COLORS * sizeof(RGBQUAD)) +#define SIZE_PALETTE (iPALETTE_COLORS * sizeof(RGBQUAD)) +#define SIZE_MASKS (iMASK_COLORS * sizeof(DWORD)) +#define SIZE_PREHEADER (FIELD_OFFSET(VIDEOINFOHEADER,bmiHeader)) +#define SIZE_VIDEOHEADER (sizeof(BITMAPINFOHEADER) + SIZE_PREHEADER) +// !!! for abnormal biSizes +// #define SIZE_VIDEOHEADER(pbmi) ((pbmi)->bmiHeader.biSize + SIZE_PREHEADER) + +// DIBSIZE calculates the number of bytes required by an image + +#define WIDTHBYTES(bits) ((DWORD)(((bits)+31) & (~31)) / 8) +#define DIBWIDTHBYTES(bi) (DWORD)WIDTHBYTES((DWORD)(bi).biWidth * (DWORD)(bi).biBitCount) +#define _DIBSIZE(bi) (DIBWIDTHBYTES(bi) * (DWORD)(bi).biHeight) +#define DIBSIZE(bi) ((bi).biHeight < 0 ? (-1)*(_DIBSIZE(bi)) : _DIBSIZE(bi)) + +// Different from DIBSIZE, RAWSIZE does NOT align the width to be multiple of 4 bytes. +// Given width, height, and bitCount, RAWSIZE calculates the image size without any extra padding at the end of each row. +#define WIDTHBYTES_RAW(bits) ((DWORD) ((bits) + 7) / 8) +#define RAWWIDTHBYTES(bi) (DWORD)WIDTHBYTES_RAW((DWORD)(bi).biWidth * (DWORD)(bi).biBitCount) +#define _RAWSIZE(bi) (RAWWIDTHBYTES(bi) * (DWORD)(bi).biHeight) +#define RAWSIZE(bi) ((bi).biHeight < 0 ? (-1)*(_RAWSIZE(bi)) : _RAWSIZE(bi)) + +#ifdef _INTSAFE_H_INCLUDED_ +__inline HRESULT SAFE_DIBWIDTHBYTES(_In_ const BITMAPINFOHEADER *pbi, _Out_ DWORD *pcbWidth) +{ + DWORD dw; + HRESULT hr; + if (pbi->biWidth < 0 || pbi->biBitCount <= 0) { + return E_INVALIDARG; + } + // Calculate width in bits + hr = DWordMult((DWORD)pbi->biWidth, (DWORD)pbi->biBitCount, &dw); + if (FAILED(hr)) { + return hr; + } + // Round up to bytes + dw = (dw & 7) ? dw / 8 + 1: dw / 8; + + // Round up to a multiple of 4 bytes + if (dw & 3) { + dw += 4 - (dw & 3); + } + + *pcbWidth = dw; + return S_OK; +} + +__inline HRESULT SAFE_DIBSIZE(_In_ const BITMAPINFOHEADER *pbi, _Out_ DWORD *pcbSize) +{ + DWORD dw; + DWORD dwWidthBytes; + HRESULT hr; + if (pbi->biHeight == 0x80000000) { + return E_INVALIDARG; + } + hr = SAFE_DIBWIDTHBYTES(pbi, &dwWidthBytes); + if (FAILED(hr)) { + return hr; + } + dw = abs(pbi->biHeight); + hr = DWordMult(dw, dwWidthBytes, &dw); + if (FAILED(hr)) { + return hr; + } + *pcbSize = dw; + return S_OK; +} + +#endif // _INTSAFE_H_INCLUDED + +// This compares the bit masks between two VIDEOINFOHEADERs + +#define BIT_MASKS_MATCH(pbmi1,pbmi2) \ + (((pbmi1)->dwBitMasks[iRED] == (pbmi2)->dwBitMasks[iRED]) && \ + ((pbmi1)->dwBitMasks[iGREEN] == (pbmi2)->dwBitMasks[iGREEN]) && \ + ((pbmi1)->dwBitMasks[iBLUE] == (pbmi2)->dwBitMasks[iBLUE])) + +// These zero fill different parts of the VIDEOINFOHEADER structure + +// Only use these macros for pbmi's with a normal BITMAPINFOHEADER biSize +#define RESET_MASKS(pbmi) (ZeroMemory((PVOID)(pbmi)->dwBitFields,SIZE_MASKS)) +#define RESET_HEADER(pbmi) (ZeroMemory((PVOID)(pbmi),SIZE_VIDEOHEADER)) +#define RESET_PALETTE(pbmi) (ZeroMemory((PVOID)(pbmi)->bmiColors,SIZE_PALETTE)); + +#if 0 +// !!! This is the right way to do it, but may break existing code +#define RESET_MASKS(pbmi) (ZeroMemory((PVOID)(((LPBYTE)(pbmi)->bmiHeader) + \ + (pbmi)->bmiHeader.biSize,SIZE_MASKS))) +#define RESET_HEADER(pbmi) (ZeroMemory((PVOID)(pbmi), SIZE_PREHEADER + \ + sizeof(BITMAPINFOHEADER))) +#define RESET_PALETTE(pbmi) (ZeroMemory((PVOID)(((LPBYTE)(pbmi)->bmiHeader) + \ + (pbmi)->bmiHeader.biSize,SIZE_PALETTE)) +#endif + +// Other (hopefully) useful bits and bobs + +#define PALETTISED(pbmi) ((pbmi)->bmiHeader.biBitCount <= iPALETTE) +#define PALETTE_ENTRIES(pbmi) ((DWORD) 1 << (pbmi)->bmiHeader.biBitCount) + +// Returns the address of the BITMAPINFOHEADER from the VIDEOINFOHEADER +#define HEADER(pVideoInfo) (&(((VIDEOINFOHEADER *) (pVideoInfo))->bmiHeader)) + + +// MPEG variant - includes a DWORD length followed by the +// video sequence header after the video header. +// +// The sequence header includes the sequence header start code and the +// quantization matrices associated with the first sequence header in the +// stream so is a maximum of 140 bytes long. + +typedef struct tagMPEG1VIDEOINFO { + + VIDEOINFOHEADER hdr; // Compatible with VIDEOINFO + DWORD dwStartTimeCode; // 25-bit Group of pictures time code + // at start of data + DWORD cbSequenceHeader; // Length in bytes of bSequenceHeader + BYTE bSequenceHeader[1]; // Sequence header including + // quantization matrices if any +} MPEG1VIDEOINFO; + +#define MAX_SIZE_MPEG1_SEQUENCE_INFO 140 +#define SIZE_MPEG1VIDEOINFO(pv) (FIELD_OFFSET(MPEG1VIDEOINFO, bSequenceHeader[0]) + (pv)->cbSequenceHeader) +#define MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader) + + +// Analog video variant - Use this when the format is FORMAT_AnalogVideo +// +// rcSource defines the portion of the active video signal to use +// rcTarget defines the destination rectangle +// both of the above are relative to the dwActiveWidth and dwActiveHeight fields +// dwActiveWidth is currently set to 720 for all formats (but could change for HDTV) +// dwActiveHeight is 483 for NTSC and 575 for PAL/SECAM (but could change for HDTV) + +typedef struct tagAnalogVideoInfo { + RECT rcSource; // Width max is 720, height varies w/ TransmissionStd + RECT rcTarget; // Where the video should go + DWORD dwActiveWidth; // Always 720 (CCIR-601 active samples per line) + DWORD dwActiveHeight; // 483 for NTSC, 575 for PAL/SECAM + REFERENCE_TIME AvgTimePerFrame; // Normal ActiveMovie units (100 nS) +} ANALOGVIDEOINFO; + +// +// AM_KSPROPSETID_FrameStep property set definitions +// +typedef enum { + // Step + AM_PROPERTY_FRAMESTEP_STEP = 0x01, + AM_PROPERTY_FRAMESTEP_CANCEL = 0x02, + + // S_OK for these 2 means we can - S_FALSE if we can't + AM_PROPERTY_FRAMESTEP_CANSTEP = 0x03, + AM_PROPERTY_FRAMESTEP_CANSTEPMULTIPLE = 0x04 +} AM_PROPERTY_FRAMESTEP; + +typedef struct _AM_FRAMESTEP_STEP +{ + // 1 means step 1 frame forward + // 0 is invalid + // n (n > 1) means skip n - 1 frames and show the nth + DWORD dwFramesToStep; +} AM_FRAMESTEP_STEP; + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __AMVIDEO__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/amxmlgraphbuilder.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amxmlgraphbuilder.h new file mode 100644 index 0000000000000000000000000000000000000000..eaa7d8726c8a361ab250bef874612659915ec20e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/amxmlgraphbuilder.h @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All Rights Reserved. + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// {1BB05960-5FBF-11d2-A521-44DF07C10000} +DEFINE_GUID(IID_IXMLGraphBuilder, +0x1bb05960, 0x5fbf, 0x11d2, 0xa5, 0x21, 0x44, 0xdf, 0x7, 0xc1, 0x0, 0x0); + +interface IXMLGraphBuilder : IUnknown +{ + STDMETHOD(BuildFromXML) (IGraphBuilder *pGraph, IXMLElement *pxml) = 0; + STDMETHOD(SaveToXML) (IGraphBuilder *pGraph, BSTR *pbstrxml) = 0; + STDMETHOD(BuildFromXMLFile) (IGraphBuilder *pGraph, LPCWSTR wszFileName, LPCWSTR wszBaseURL) = 0; +}; + +// CLSID_XMLGraphBuilder +// {1BB05961-5FBF-11d2-A521-44DF07C10000} +DEFINE_GUID(CLSID_XMLGraphBuilder, +0x1bb05961, 0x5fbf, 0x11d2, 0xa5, 0x21, 0x44, 0xdf, 0x7, 0xc1, 0x0, 0x0); + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/anchorsyncdeviceservice.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/anchorsyncdeviceservice.h new file mode 100644 index 0000000000000000000000000000000000000000..7d48825ca9385f9ffeda3318d54d4af6be364d4d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/anchorsyncdeviceservice.h @@ -0,0 +1,319 @@ +/* + * AnchorSyncDeviceService.h + * + * Contains definitions for the Anchor Sync Device Service + * + * Copyright (c) Microsoft Corporation, All Rights Reserved. + * + */ + + +#ifndef _ANCHORSYNCSERVICE_H_ +#define _ANCHORSYNCSERVICE_H_ + +#include + +#include + + +/***************************************************************************** + Anchor Sync Service Info +******************************************************************************/ + +DEFINE_DEVSVCGUID(SERVICE_AnchorSync, + 0x056d8b9e, 0xad7a, 0x44fc, 0x94, 0x6f, 0x1d, 0x63, 0xa2, 0x5c, 0xda, 0x9a ); + +#define NAME_AnchorSyncSvc L"AnchorSync" +#define TYPE_AnchorSyncSvc DEVSVCTYPE_ABSTRACT + + +/***************************************************************************** + Anchor Sync Service Properties +******************************************************************************/ + +DEFINE_DEVSVCGUID(NAMESPACE_AnchorSyncSvc, + 0xe65b8fb7, 0x8fc7, 0x4278, 0xb9, 0xa3, 0xba, 0x14, 0xc2, 0xdb, 0x40, 0xfa ); + + +/* PKEY_AnchorSyncSvc_VersionProps + * + * Provides information about change units and version properties. The + * format for the dataset is + * + * UINT32 Number of change units + * UINT128 Namespace GUID for first change unit property key + * UINT32 Namespace ID for the first change unit property key + * UINT32 Number of properties associated with this change unit + * UINT128 Namespace GUID for first property key in change unit + * UINT32 Namespace ID for first property key in change unit + * ... Repeat for number of property keys + * ... Repeat for number of change units + * + * NOTE: If all change units use the same property key specify a namespace + * GUID of GUID_NULL (all 0's) and a namespace ID of 0. + * + * Type: AUInt8 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AnchorSyncSvc_VersionProps, + 0xe65b8fb7, 0x8fc7, 0x4278, 0xb9, 0xa3, 0xba, 0x14, 0xc2, 0xdb, 0x40, 0xfa , + 2 ); + +#define NAME_AnchorSyncSvc_VersionProps L"AnchorVersionProps" + + +/* PKEY_AnchorSyncSvc_ReplicaID + * + * Contains the GUID representing this replica in the sync community. + * + * Type: UInt128 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AnchorSyncSvc_ReplicaID, + 0xe65b8fb7, 0x8fc7, 0x4278, 0xb9, 0xa3, 0xba, 0x14, 0xc2, 0xdb, 0x40, 0xfa , + 3 ); + +#define NAME_AnchorSyncSvc_ReplicaID L"AnchorReplicaID" + + +/* PKEY_AnchorSyncSvc_KnowledgeObjectID + * + * Object ID to be used for the knowledge object + * + * Type: UInt32 + * Form: ObjectID + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AnchorSyncSvc_KnowledgeObjectID, + 0xe65b8fb7, 0x8fc7, 0x4278, 0xb9, 0xa3, 0xba, 0x14, 0xc2, 0xdb, 0x40, 0xfa , + 4 ); + +#define NAME_AnchorSyncSvc_KnowledgeObjectID L"AnchorKnowledgeObjectID" + + +/* PKEY_AnchorSyncSvc_LastSyncProxyID + * + * Contains a GUID indicating the last sync proxy to perform a sync operation + * + * Type: UInt128 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AnchorSyncSvc_LastSyncProxyID, + 0xe65b8fb7, 0x8fc7, 0x4278, 0xb9, 0xa3, 0xba, 0x14, 0xc2, 0xdb, 0x40, 0xfa , + 5 ); + +#define NAME_AnchorSyncSvc_LastSyncProxyID L"AnchorLastSyncProxyID" + + +/* PKEY_AnchorSyncSvc_CurrentAnchor + * + * Contains a blob of data representing the current anchor for the device. + * As the anchor may be transient depending on the current state of the sync + * the value of PKEY_AnchorSyncSvc_CurrentAnchor may not reflect the current + * state of the database unless the current session holds a lock (via the + * BeginSync method) on the service. + * + * Type: AUInt8 + * Form: BinaryArray + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AnchorSyncSvc_CurrentAnchor, + 0xe65b8fb7, 0x8fc7, 0x4278, 0xb9, 0xa3, 0xba, 0x14, 0xc2, 0xdb, 0x40, 0xfa , + 6 ); + +#define NAME_AnchorSyncSvc_CurrentAnchor L"AnchorCurrentAnchor" + + +/* PKEY_AnchorSyncSvc_ProviderVersion + * + * Contains a device defined value giving the version of the provider + * currently in use on the device. This version must be incremented whenever + * new properties are added to the device implementation so that they will + * be recognized and managed as part of synchronization. 0 is reserved. + * + * Type: UInt16 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AnchorSyncSvc_ProviderVersion, + 0xe65b8fb7, 0x8fc7, 0x4278, 0xb9, 0xa3, 0xba, 0x14, 0xc2, 0xdb, 0x40, 0xfa , + 7 ); + +#define NAME_AnchorSyncSvc_ProviderVersion L"AnchorProviderVersion" + + +/* PKEY_AnchorSyncSvc_SyncFormat + * + * Indicates the format GUID for the object format that is to be used in the + * sync operation. + * + * Type: UInt128 + * Form: None + */ + +#define PKEY_AnchorSyncSvc_SyncFormat PKEY_SyncSvc_SyncFormat +#define NAME_AnchorSyncSvc_SyncFormat NAME_SyncSvc_SyncFormat + +/* PKEY_AnchorSyncSvc_LocalOnlyDelete + * + * Boolean flag indicating whether deletes of objects on the service host + * should be treated as "local only" and not propogated to other sync + * participants. The alternative is "true sync" in which deletes on the + * service host are propogated to all other sync participants. + * + * Type: UInt8 + * Form: None + */ + +#define PKEY_AnchorSyncSvc_LocalOnlyDelete PKEY_SyncSvc_LocalOnlyDelete +#define NAME_AnchorSyncSvc_LocalOnlyDelete NAME_SyncSvc_LocalOnlyDelete + +/* PKEY_AnchorSyncSvc_FilterType + * + * Boolean flag indicating whether the default filter is being applied to + * this endpoint. Note that the meaning of the default filter is determined + * by the content type service. + * + * Type: UInt8 + * Form: None + */ + +#define PKEY_AnchorSyncSvc_FilterType PKEY_SyncSvc_FilterType +#define NAME_AnchorSyncSvc_FilterType NAME_SyncSvc_FilterType + +/***************************************************************************** + Anchor Sync Service Object Formats +******************************************************************************/ + +/* FORMAT_AnchorSyncKnowledge + */ + +DEFINE_DEVSVCGUID(FORMAT_AnchorSyncKnowledge, + 0x37c550bc, 0xf231, 0x4727, 0xbb, 0xbc, 0x4c, 0xb3, 0x3a, 0x3f, 0x3e, 0xcd ); + +#define NAME_AnchorSyncKnowledge L"AnchorSyncKnowledge" + + +/* FORMAT_AnchorSyncSvc_AnchorResults + * + * GetChangesSinceAnchor results format + * + */ + +DEFINE_DEVSVCGUID(FORMAT_AnchorSyncSvc_AnchorResults, + 0xf35527c1, 0xce4a, 0x487a, 0x9d, 0x29, 0x93, 0x83, 0x35, 0x69, 0x32, 0x1e ); + +#define NAME_AnchorResults L"AnchorResults" + + + +/***************************************************************************** + Anchor Sync Service Object Property Keys +******************************************************************************/ + +DEFINE_DEVSVCGUID(NAMESPACE_AnchorResults, + 0x516b5dce, 0x8d45, 0x430f, 0x80, 0x5c, 0x25, 0xe5, 0x10, 0x6d, 0x8b, 0x1f ); + + +/* PKEY_AnchorResults_AnchorState + * + * Output parameter from GetChangesSinceAnchor method. Contains the state + * of the current anchor result: + * + * Type: UInt32 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AnchorResults_AnchorState, + 0x516b5dce, 0x8d45, 0x430f, 0x80, 0x5c, 0x25, 0xe5, 0x10, 0x6d, 0x8b, 0x1f , + 2 ); + +#define NAME_AnchorResults_AnchorState L"AnchorState" + +#define ENUM_AnchorResults_AnchorStateNormal 0x00000000 +#define ENUM_AnchorResults_AnchorStateInvalid 0x00000001 +#define ENUM_AnchorResults_AnchorStateOld 0x00000002 + + +/* PKEY_AnchorResults_Anchor + * + * Input parameter for GetChangesSinceAnchor method. Contains the anchor for + * which data is being requested. + * + * Type: AUInt8 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AnchorResults_Anchor, + 0x516b5dce, 0x8d45, 0x430f, 0x80, 0x5c, 0x25, 0xe5, 0x10, 0x6d, 0x8b, 0x1f , + 3 ); + +#define NAME_AnchorResults_Anchor L"Anchor" + + +/* PKEY_AnchorResults_ResultObjectID + * + * Output parameter from GetChangesSinceAnchor method. Contains the object + * ID of the AnchorResults object that has the results of the + * GetChangesSinceAnchor operation. + * + * Type: UInt32 + * Form: ObjectID + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AnchorResults_ResultObjectID, + 0x516b5dce, 0x8d45, 0x430f, 0x80, 0x5c, 0x25, 0xe5, 0x10, 0x6d, 0x8b, 0x1f , + 4 ); + +#define NAME_AnchorResults_ResultObjectID L"ResultObjectID" + + +/***************************************************************************** + Anchor Sync Service Methods +******************************************************************************/ + + +/* METHOD_AnchorSyncSvc_GetChangesSinceAnchor + */ + +DEFINE_DEVSVCGUID(METHOD_AnchorSyncSvc_GetChangesSinceAnchor, + 0x37c550bc, 0xf231, 0x4727, 0xbb, 0xbc, 0x4c, 0xb3, 0x3a, 0x3f, 0x3e, 0xcd ); + +#define NAME_AnchorSyncSvc_GetChangesSinceAnchor L"GetChangesSinceAnchor" + +/* Inherited methods */ + +#define METHOD_AnchorSyncSvc_BeginSync METHOD_SyncSvc_BeginSync +#define NAME_AnchorSyncSvc_BeginSync NAME_SyncSvc_BeginSync + +#define METHOD_AnchorSyncSvc_EndSync METHOD_SyncSvc_EndSync +#define NAME_AnchorSyncSvc_EndSync NAME_SyncSvc_EndSync + + +/***************************************************************************** + Anchor Sync Service Additional Defines +******************************************************************************/ + +/* ENUM_AnchorResults_ItemState* + * + * This enum is used when encoding the Anchor results stream. It defines the + * current state of an object. If a device is capable of distinguishing + * between item update and create operations the *_ItemStateCreated and + * *_ItemStateUpdated enumerations should be used. If the device cannot + * distinuish between a create and an up updated the *_ItemStateChanged result + * should be used. + * + * Type: UInt32 + * Form: Enum + */ + +#define ENUM_AnchorResults_ItemStateInvalid 0x00000000 +#define ENUM_AnchorResults_ItemStateDeleted 0x00000001 +#define ENUM_AnchorResults_ItemStateCreated 0x00000002 +#define ENUM_AnchorResults_ItemStateUpdated 0x00000003 +#define ENUM_AnchorResults_ItemStateChanged 0x00000004 + +#endif /*_ANCHORSYNCSERVICE_H_*/ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/animationcoordinator.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/animationcoordinator.h new file mode 100644 index 0000000000000000000000000000000000000000..57bcf7a39edb301c83ccd37b81b2a0857983a40b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/animationcoordinator.h @@ -0,0 +1,246 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __animationcoordinator_h__ +#define __animationcoordinator_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IInputPaneAnimationCoordinator_FWD_DEFINED__ +#define __IInputPaneAnimationCoordinator_FWD_DEFINED__ +typedef interface IInputPaneAnimationCoordinator IInputPaneAnimationCoordinator; + +#endif /* __IInputPaneAnimationCoordinator_FWD_DEFINED__ */ + + +#ifndef __ShowInputPaneAnimationCoordinator_FWD_DEFINED__ +#define __ShowInputPaneAnimationCoordinator_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ShowInputPaneAnimationCoordinator ShowInputPaneAnimationCoordinator; +#else +typedef struct ShowInputPaneAnimationCoordinator ShowInputPaneAnimationCoordinator; +#endif /* __cplusplus */ + +#endif /* __ShowInputPaneAnimationCoordinator_FWD_DEFINED__ */ + + +#ifndef __HideInputPaneAnimationCoordinator_FWD_DEFINED__ +#define __HideInputPaneAnimationCoordinator_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class HideInputPaneAnimationCoordinator HideInputPaneAnimationCoordinator; +#else +typedef struct HideInputPaneAnimationCoordinator HideInputPaneAnimationCoordinator; +#endif /* __cplusplus */ + +#endif /* __HideInputPaneAnimationCoordinator_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "unknwn.h" +#include "dcompanimation.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_animationcoordinator_0000_0000 */ +/* [local] */ + +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//--------------------------------------------------------------------------- +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + + +extern RPC_IF_HANDLE __MIDL_itf_animationcoordinator_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_animationcoordinator_0000_0000_v0_0_s_ifspec; + +#ifndef __IInputPaneAnimationCoordinator_INTERFACE_DEFINED__ +#define __IInputPaneAnimationCoordinator_INTERFACE_DEFINED__ + +/* interface IInputPaneAnimationCoordinator */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IInputPaneAnimationCoordinator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2AF16BA9-2DE5-4B75-82D9-01372AFBFFB4") + IInputPaneAnimationCoordinator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddAnimation( + /* [annotation][in] */ + _In_ IUnknown *device, + /* [annotation][in] */ + _In_ IDCompositionAnimation *animation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInputPaneAnimationCoordinatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IInputPaneAnimationCoordinator * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IInputPaneAnimationCoordinator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IInputPaneAnimationCoordinator * This); + + DECLSPEC_XFGVIRT(IInputPaneAnimationCoordinator, AddAnimation) + HRESULT ( STDMETHODCALLTYPE *AddAnimation )( + IInputPaneAnimationCoordinator * This, + /* [annotation][in] */ + _In_ IUnknown *device, + /* [annotation][in] */ + _In_ IDCompositionAnimation *animation); + + END_INTERFACE + } IInputPaneAnimationCoordinatorVtbl; + + interface IInputPaneAnimationCoordinator + { + CONST_VTBL struct IInputPaneAnimationCoordinatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInputPaneAnimationCoordinator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInputPaneAnimationCoordinator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInputPaneAnimationCoordinator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInputPaneAnimationCoordinator_AddAnimation(This,device,animation) \ + ( (This)->lpVtbl -> AddAnimation(This,device,animation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInputPaneAnimationCoordinator_INTERFACE_DEFINED__ */ + + + +#ifndef __AnimationCoordinatorLib_LIBRARY_DEFINED__ +#define __AnimationCoordinatorLib_LIBRARY_DEFINED__ + +/* library AnimationCoordinatorLib */ +/* [version][uuid] */ + + +EXTERN_C const IID LIBID_AnimationCoordinatorLib; + +EXTERN_C const CLSID CLSID_ShowInputPaneAnimationCoordinator; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1F046ABF-3202-4DC1-8CB5-3C67617CE1FA") +ShowInputPaneAnimationCoordinator; +#endif + +EXTERN_C const CLSID CLSID_HideInputPaneAnimationCoordinator; + +#ifdef __cplusplus + +class DECLSPEC_UUID("384742B1-2A77-4CB3-8CF8-1136F5E17E59") +HideInputPaneAnimationCoordinator; +#endif +#endif /* __AnimationCoordinatorLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_animationcoordinator_0000_0002 */ +/* [local] */ + +#endif // (NTDDI_VERSION >= NTDDI_WINBLUE) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_animationcoordinator_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_animationcoordinator_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/animationcoordinator.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/animationcoordinator.idl new file mode 100644 index 0000000000000000000000000000000000000000..041b644f7751eefed6a916cff33286d31ac82447 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/animationcoordinator.idl @@ -0,0 +1,68 @@ +//-------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- + +cpp_quote("//---------------------------------------------------------------------------") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//---------------------------------------------------------------------------") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "wtypes.idl"; +import "unknwn.idl"; +import "dcompanimation.idl"; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WINBLUE)") + +// Interface to coordinate a set of animations with the input pane. +// This interface is retrieved by CoCreating either: +// CLSID_ShowInputPaneAnimationCoordinator +// CLSID_HideInputPaneAnimationCoordinator +// The client can use these objects to notify the animation system +// about their individual animations they would like to coordinate with +// the input pane animation. +[ + local, + object, + uuid(2AF16BA9-2DE5-4B75-82D9-01372AFBFFB4), + pointer_default(unique) +] +interface IInputPaneAnimationCoordinator : IUnknown +{ + // Adds a direct composition animation to coordinate with on the specified IDCompositionDevice device. + // We use IUnknown here since IDCompositionDevice is not available in an IDL definition. + HRESULT AddAnimation([in, annotation("_In_")] IUnknown *device, + [in, annotation("_In_")] IDCompositionAnimation *animation); +} + +[ + uuid(CC15AF28-96D8-466F-893D-161DA58CE51E), + version(1.0) +] +library AnimationCoordinatorLib +{ + [ + uuid(1F046ABF-3202-4DC1-8CB5-3C67617CE1FA) + ] + coclass ShowInputPaneAnimationCoordinator + { + [default] interface IInputPaneAnimationCoordinator; + } + [ + uuid(384742B1-2A77-4CB3-8CF8-1136F5E17E59) + ] + coclass HideInputPaneAnimationCoordinator + { + [default] interface IInputPaneAnimationCoordinator; + } +} + +cpp_quote("#endif // (NTDDI_VERSION >= NTDDI_WINBLUE)") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/apiquery2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/apiquery2.h new file mode 100644 index 0000000000000000000000000000000000000000..f8a037836eddf921ff4ef23f8fae0c0f38b7472c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/apiquery2.h @@ -0,0 +1,58 @@ +/******************************************************************************** +* * +* apiquery2.h -- ApiSet Contract for api-ms-win-core-apiquery-l2 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _APIQUERY2_H_ +#define _APIQUERY2_H_ + +#include +#include +#include + +#undef APICONTRACT +#ifdef API_QUERY_IMPORT +#define APICONTRACT DECLSPEC_IMPORT +#else +#define APICONTRACT +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +APICONTRACT +BOOL +APIENTRY +IsApiSetImplemented( + _In_ PCSTR Contract + ); + +APICONTRACT +HRESULT +APIENTRY +GetApiSetModuleBaseName( + _In_ PCSTR contractName, + _In_ UINT32 bufferLength, + _Out_writes_to_(bufferLength,*actualNameLength) PWSTR moduleBaseName, + _Out_opt_ UINT32* actualNameLength + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _APIQUERY2_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/appcompatapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appcompatapi.h new file mode 100644 index 0000000000000000000000000000000000000000..4a121c2416345babde83c61b041e9ce76ed85855 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appcompatapi.h @@ -0,0 +1,43 @@ +/************************************************************************************* +* * +* AppCompat.h -- Appcompat procedure declarations, constant definitions and macros * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +**************************************************************************************/ + + +#ifndef __APPCOMPAT_H_ +#define __APPCOMPAT_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef SDBAPI +#define SDBAPI STDAPICALLTYPE +#endif + +BOOL +SDBAPI +ApphelpCheckShellObject( + _In_ REFCLSID ObjectCLSID, + _In_ BOOL bShimIfNecessary, + _Out_ ULONGLONG* pullFlags + ); + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __APPCOMPAT_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/appmgmt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appmgmt.h new file mode 100644 index 0000000000000000000000000000000000000000..7582307420fca6768a0af368d1a869574b18f3fb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appmgmt.h @@ -0,0 +1,239 @@ +//************************************************************* +// +// appmgmt.h +// +// APIs for operations on MSI applications which are deployed +// and managed in the NT Directory. +// +// Copyright (c) Microsoft Corporation 1998-1999 +// All rights reserved +// +//************************************************************* + +#ifndef _APPMGMT_H_ +#define _APPMGMT_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum _INSTALLSPECTYPE +{ + APPNAME = 1, + FILEEXT, + PROGID, + COMCLASS +} INSTALLSPECTYPE; + +typedef union _INSTALLSPEC +{ + struct + { + WCHAR * Name; + GUID GPOId; + } AppName; + WCHAR * FileExt; + WCHAR * ProgId; + struct + { + GUID Clsid; + DWORD ClsCtx; + } COMClass; +} INSTALLSPEC; + +typedef struct _INSTALLDATA +{ + INSTALLSPECTYPE Type; + INSTALLSPEC Spec; +} INSTALLDATA, *PINSTALLDATA; + +typedef enum +{ + ABSENT, + ASSIGNED, + PUBLISHED +} APPSTATE; + +#define LOCALSTATE_ASSIGNED 0x1 // app is assigned +#define LOCALSTATE_PUBLISHED 0x2 // app is published +#define LOCALSTATE_UNINSTALL_UNMANAGED 0x4 // uninstall any unmanaged version before assigning +#define LOCALSTATE_POLICYREMOVE_ORPHAN 0x8 // app is orphaned when policy removed +#define LOCALSTATE_POLICYREMOVE_UNINSTALL 0x10 // app is uninstalled when policy removed +#define LOCALSTATE_ORPHANED 0x20 // app is orphaned after being applied +#define LOCALSTATE_UNINSTALLED 0x40 // app is uninstalled after being applied + +typedef struct _LOCALMANAGEDAPPLICATION +{ + LPWSTR pszDeploymentName; + LPWSTR pszPolicyName; + LPWSTR pszProductId; + DWORD dwState; +} LOCALMANAGEDAPPLICATION, *PLOCALMANAGEDAPPLICATION; + +#define MANAGED_APPS_USERAPPLICATIONS 0x1 +#define MANAGED_APPS_FROMCATEGORY 0x2 +#define MANAGED_APPS_INFOLEVEL_DEFAULT 0x10000 + +#define MANAGED_APPTYPE_WINDOWSINSTALLER 0x1 +#define MANAGED_APPTYPE_SETUPEXE 0x2 +#define MANAGED_APPTYPE_UNSUPPORTED 0x3 + +typedef struct _MANAGEDAPPLICATION +{ + LPWSTR pszPackageName; + LPWSTR pszPublisher; + DWORD dwVersionHi; + DWORD dwVersionLo; + DWORD dwRevision; + GUID GpoId; + LPWSTR pszPolicyName; + GUID ProductId; + LANGID Language; + LPWSTR pszOwner; + LPWSTR pszCompany; + LPWSTR pszComments; + LPWSTR pszContact; + LPWSTR pszSupportUrl; + DWORD dwPathType; + BOOL bInstalled; +} MANAGEDAPPLICATION, *PMANAGEDAPPLICATION; + +typedef struct _APPCATEGORYINFO +{ + LCID Locale; + LPWSTR pszDescription; + GUID AppCategoryId; +} APPCATEGORYINFO; + +typedef struct _APPCATEGORYINFOLIST +{ + DWORD cCategory; +#ifdef MIDL_PASS + [size_is(cCategory)] +#endif + APPCATEGORYINFO * pCategoryInfo; +} APPCATEGORYINFOLIST; + +#ifndef WINAPI +#define WINAPI +#endif + +DWORD WINAPI +InstallApplication( +#if !defined(__midl) + _In_ +#endif + PINSTALLDATA pInstallInfo + ); + +DWORD WINAPI +UninstallApplication( +#if !defined(__midl) + _In_ +#endif + LPWSTR ProductCode, +#if !defined(__midl) + _In_ +#endif + DWORD dwStatus + ); + +DWORD WINAPI +CommandLineFromMsiDescriptor( +#if !defined(__midl) + _In_ +#endif + LPWSTR Descriptor, +#if !defined(__midl) + _Out_writes_( *CommandLineLength ) +#endif + LPWSTR CommandLine, + DWORD * CommandLineLength + ); + +DWORD WINAPI +GetManagedApplications( +#if !defined(__midl) + _In_ +#endif + GUID * pCategory, +#if !defined(__midl) + _In_ +#endif + DWORD dwQueryFlags, +#if !defined(__midl) + _In_ +#endif + DWORD dwInfoLevel, +#if !defined(__midl) + _Out_ +#endif + LPDWORD pdwApps, +#if !defined(__midl) + _Out_ +#endif + PMANAGEDAPPLICATION* prgManagedApps + ); + +DWORD WINAPI +GetLocalManagedApplications( +#if !defined(__midl) + _In_ +#endif + BOOL bUserApps, +#if !defined(__midl) + _Out_ +#endif + LPDWORD pdwApps, +#if !defined(__midl) + _Out_ +#endif + PLOCALMANAGEDAPPLICATION* prgLocalApps + ); + +void WINAPI +GetLocalManagedApplicationData( +#if !defined(__midl) + _In_ +#endif + LPWSTR ProductCode, +#if !defined(__midl) + _Outptr_ +#endif + LPWSTR * DisplayName, +#if !defined(__midl) + _Outptr_ +#endif + LPWSTR * SupportUrl + ); + +DWORD WINAPI +GetManagedApplicationCategories( +#if !defined(__midl) + _Reserved_ +#endif + DWORD dwReserved, +#if !defined(__midl) + _Out_ +#endif + APPCATEGORYINFOLIST* pAppCategory + ); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/appmodel.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appmodel.h new file mode 100644 index 0000000000000000000000000000000000000000..b9e2d1e4e41cf2e174c4c6cda1e5427b2ba6f148 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appmodel.h @@ -0,0 +1,1231 @@ +/*************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +***************************************************/ +// +// API Set Contract: +// +// api-ms-win-appmodel-runtime-l1 +// +// Abstract: +// +// This header file provides API function signatures and +// corollary type declarations for the Windows AppModel +// Runtime component. +// +//// + +#if defined(_MSC_VER) +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 +#endif // defined(_MSC_VER) + +#ifndef _APPMODEL_H_ +#define _APPMODEL_H_ + +#if defined(_CONTRACT_GEN) +#include +#include +#include +#include +#endif // defined(_CONTRACT_GEN) + +#if defined(_MSC_VER) +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif // _MSC_VER >= 1200 +#pragma warning(disable:4201) /* nonstandard extension used : nameless struct/union */ +#endif // defined(_MSC_VER) + +#include + +#if defined(__cplusplus) +extern "C" { +#endif // defined(__cplusplus) + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +/* ---------------------------------------------------------------- */ + +// Identity Types +#include + +typedef struct PACKAGE_VERSION { + union { + UINT64 Version; + struct { + USHORT Revision; + USHORT Build; + USHORT Minor; + USHORT Major; + } DUMMYSTRUCTNAME; + } DUMMYUNIONNAME; +} PACKAGE_VERSION; + +typedef struct PACKAGE_ID { + UINT32 reserved; + UINT32 processorArchitecture; + PACKAGE_VERSION version; + PWSTR name; + PWSTR publisher; + PWSTR resourceId; + PWSTR publisherId; +} PACKAGE_ID; + +#include + +// Identity Functions + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetCurrentPackageId( + _Inout_ UINT32* bufferLength, + _Out_writes_bytes_opt_(*bufferLength) BYTE* buffer + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetCurrentPackageFullName( + _Inout_ UINT32* packageFullNameLength, + _Out_writes_opt_(*packageFullNameLength) PWSTR packageFullName + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetCurrentPackageFamilyName( + _Inout_ UINT32* packageFamilyNameLength, + _Out_writes_opt_(*packageFamilyNameLength) PWSTR packageFamilyName + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetCurrentPackagePath( + _Inout_ UINT32* pathLength, + _Out_writes_opt_(*pathLength) PWSTR path + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackageId( + _In_ HANDLE hProcess, + _Inout_ UINT32* bufferLength, + _Out_writes_bytes_opt_(*bufferLength) BYTE* buffer + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackageFullName( + _In_ HANDLE hProcess, + _Inout_ UINT32* packageFullNameLength, + _Out_writes_opt_(*packageFullNameLength) PWSTR packageFullName + ); + +//TODO:8645770 Change 0x0101 to 0x0102 once THRESHOLD constants are available +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackageFullNameFromToken( + _In_ HANDLE token, + _Inout_ UINT32* packageFullNameLength, + _Out_writes_opt_(*packageFullNameLength) PWSTR packageFullName + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackageFamilyName( + _In_ HANDLE hProcess, + _Inout_ UINT32* packageFamilyNameLength, + _Out_writes_opt_(*packageFamilyNameLength) PWSTR packageFamilyName + ); + +//TODO:8645770 Change 0x0101 to 0x0102 once THRESHOLD constants are available +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackageFamilyNameFromToken( + _In_ HANDLE token, + _Inout_ UINT32* packageFamilyNameLength, + _Out_writes_opt_(*packageFamilyNameLength) PWSTR packageFamilyName + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackagePath( + _In_ const PACKAGE_ID* packageId, + _Reserved_ const UINT32 reserved, + _Inout_ UINT32* pathLength, + _Out_writes_opt_(*pathLength) PWSTR path + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackagePathByFullName( + _In_ PCWSTR packageFullName, + _Inout_ UINT32* pathLength, + _Out_writes_opt_(*pathLength) PWSTR path + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetStagedPackagePathByFullName( + _In_ PCWSTR packageFullName, + _Inout_ UINT32* pathLength, + _Out_writes_opt_(*pathLength) PWSTR path + ); + +#if NTDDI_VERSION >= NTDDI_WIN10_19H1 +typedef enum PackagePathType +{ + PackagePathType_Install = 0, + PackagePathType_Mutable = 1, + PackagePathType_Effective = 2, + +#if NTDDI_VERSION >= NTDDI_WIN10_VB + PackagePathType_MachineExternal = 3, + PackagePathType_UserExternal = 4, + PackagePathType_EffectiveExternal = 5 +#endif // NTDDI_VERSION >= NTDDI_WIN10_VB +} PackagePathType; + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackagePathByFullName2( + _In_ PCWSTR packageFullName, + _In_ PackagePathType packagePathType, + _Inout_ UINT32* pathLength, + _Out_writes_opt_(*pathLength) PWSTR path + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetStagedPackagePathByFullName2( + _In_ PCWSTR packageFullName, + _In_ PackagePathType packagePathType, + _Inout_ UINT32* pathLength, + _Out_writes_opt_(*pathLength) PWSTR path + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetCurrentPackageInfo2( + _In_ const UINT32 flags, + _In_ PackagePathType packagePathType, + _Inout_ UINT32* bufferLength, + _Out_writes_bytes_opt_(*bufferLength) BYTE* buffer, + _Out_opt_ UINT32* count + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetCurrentPackagePath2( + _In_ PackagePathType packagePathType, + _Inout_ UINT32* pathLength, + _Out_writes_opt_(*pathLength) PWSTR path + ); + +#endif // NTDDI_VERSION >= NTDDI_WIN10_19H1 + +/* ---------------------------------------------------------------- */ + +// Application Identity Functions + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetCurrentApplicationUserModelId( + _Inout_ UINT32* applicationUserModelIdLength, + _Out_writes_opt_(*applicationUserModelIdLength) PWSTR applicationUserModelId + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetApplicationUserModelId( + _In_ HANDLE hProcess, + _Inout_ UINT32* applicationUserModelIdLength, + _Out_writes_opt_(*applicationUserModelIdLength) PWSTR applicationUserModelId + ); + +//TODO:8645770 Change 0x0101 to 0x0102 once THRESHOLD constants are available +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetApplicationUserModelIdFromToken( + _In_ HANDLE token, + _Inout_ UINT32* applicationUserModelIdLength, + _Out_writes_opt_(*applicationUserModelIdLength) PWSTR applicationUserModelId + ); + +/* ---------------------------------------------------------------- */ + +// Verification Functions + +//TODO:8645770 Change 0x0101 to 0x0102 once THRESHOLD constants are available +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +VerifyPackageFullName( + _In_ PCWSTR packageFullName + ); + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +VerifyPackageFamilyName( + _In_ PCWSTR packageFamilyName + ); + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +VerifyPackageId( + _In_ const PACKAGE_ID* packageId + ); + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +VerifyApplicationUserModelId( + _In_ PCWSTR applicationUserModelId + ); + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +VerifyPackageRelativeApplicationId( + _In_ PCWSTR packageRelativeApplicationId + ); + +/* ---------------------------------------------------------------- */ + +// Conversion Functions + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +PackageIdFromFullName( + _In_ PCWSTR packageFullName, + _In_ const UINT32 flags, + _Inout_ UINT32* bufferLength, + _Out_writes_bytes_opt_(*bufferLength) BYTE* buffer + ); + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +PackageFullNameFromId( + _In_ const PACKAGE_ID* packageId, + _Inout_ UINT32* packageFullNameLength, + _Out_writes_opt_(*packageFullNameLength) PWSTR packageFullName + ); + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +PackageFamilyNameFromId( + _In_ const PACKAGE_ID* packageId, + _Inout_ UINT32* packageFamilyNameLength, + _Out_writes_opt_(*packageFamilyNameLength) PWSTR packageFamilyName + ); + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +PackageFamilyNameFromFullName( + _In_ PCWSTR packageFullName, + _Inout_ UINT32* packageFamilyNameLength, + _Out_writes_opt_(*packageFamilyNameLength) PWSTR packageFamilyName + ); + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +PackageNameAndPublisherIdFromFamilyName( + _In_ PCWSTR packageFamilyName, + _Inout_ UINT32* packageNameLength, + _Out_writes_opt_(*packageNameLength) PWSTR packageName, + _Inout_ UINT32* packagePublisherIdLength, + _Out_writes_opt_(*packagePublisherIdLength) PWSTR packagePublisherId + ); + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +FormatApplicationUserModelId( + _In_ PCWSTR packageFamilyName, + _In_ PCWSTR packageRelativeApplicationId, + _Inout_ UINT32* applicationUserModelIdLength, + _Out_writes_opt_(*applicationUserModelIdLength) PWSTR applicationUserModelId + ); + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +ParseApplicationUserModelId( + _In_ PCWSTR applicationUserModelId, + _Inout_ UINT32* packageFamilyNameLength, + _Out_writes_opt_(*packageFamilyNameLength) PWSTR packageFamilyName, + _Inout_ UINT32* packageRelativeApplicationIdLength, + _Out_writes_opt_(*packageRelativeApplicationIdLength) PWSTR packageRelativeApplicationId + ); + +/* ---------------------------------------------------------------- */ + +// Lookup Functions + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +_On_failure_(_Unchanged_(*count)) +_On_failure_(_Unchanged_(*bufferLength)) +LONG +WINAPI +GetPackagesByPackageFamily( + _In_ PCWSTR packageFamilyName, + _Inout_ UINT32* count, + _Out_writes_opt_(*count) PWSTR* packageFullNames, + _Inout_ UINT32* bufferLength, + _Out_writes_opt_(*bufferLength) WCHAR* buffer + ); + +/* Any combination of PACKAGE_FILTER_* */ +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +_On_failure_(_Unchanged_(*count)) +_On_failure_(_Unchanged_(*bufferLength)) +LONG +WINAPI +FindPackagesByPackageFamily( + _In_ PCWSTR packageFamilyName, + _In_ UINT32 packageFilters, + _Inout_ UINT32* count, + _Out_writes_opt_(*count) PWSTR* packageFullNames, + _Inout_ UINT32* bufferLength, + _Out_writes_opt_(*bufferLength) WCHAR* buffer, + _Out_writes_opt_(*count) UINT32* packageProperties + ); + +typedef enum PackageOrigin +{ + PackageOrigin_Unknown = 0, + PackageOrigin_Unsigned = 1, + PackageOrigin_Inbox = 2, + PackageOrigin_Store = 3, + PackageOrigin_DeveloperUnsigned = 4, + PackageOrigin_DeveloperSigned = 5, + PackageOrigin_LineOfBusiness = 6 +} PackageOrigin; + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetStagedPackageOrigin( + _In_ PCWSTR packageFullName, + _Out_ PackageOrigin* origin + ); + +/* ---------------------------------------------------------------- */ + +// Package Constants + +#define PACKAGE_PROPERTY_FRAMEWORK 0x00000001 +#define PACKAGE_PROPERTY_RESOURCE 0x00000002 +#define PACKAGE_PROPERTY_BUNDLE 0x00000004 +#define PACKAGE_PROPERTY_OPTIONAL 0x00000008 +#define PACKAGE_FILTER_HEAD 0x00000010 +#define PACKAGE_FILTER_DIRECT 0x00000020 +#define PACKAGE_FILTER_RESOURCE 0x00000040 +#define PACKAGE_FILTER_BUNDLE 0x00000080 +#define PACKAGE_INFORMATION_BASIC 0x00000000 +#define PACKAGE_INFORMATION_FULL 0x00000100 +#define PACKAGE_PROPERTY_DEVELOPMENT_MODE 0x00010000 +#define PACKAGE_FILTER_OPTIONAL 0x00020000 +#define PACKAGE_PROPERTY_IS_IN_RELATED_SET 0x00040000 +#define PACKAGE_FILTER_IS_IN_RELATED_SET PACKAGE_PROPERTY_IS_IN_RELATED_SET +#define PACKAGE_PROPERTY_STATIC 0x00080000 +#define PACKAGE_FILTER_STATIC PACKAGE_PROPERTY_STATIC +#define PACKAGE_PROPERTY_DYNAMIC 0x00100000 +#define PACKAGE_FILTER_DYNAMIC PACKAGE_PROPERTY_DYNAMIC +#if NTDDI_VERSION >= NTDDI_WIN10_MN +#define PACKAGE_PROPERTY_HOSTRUNTIME 0x00200000 +#define PACKAGE_FILTER_HOSTRUNTIME PACKAGE_PROPERTY_HOSTRUNTIME +#endif // NTDDI_VERSION >= NTDDI_WIN10_MN + +#if defined(NTDDI_VERSION) && (NTDDI_VERSION >= NTDDI_WINBLUE) +#pragma deprecated("PACKAGE_FILTER_ALL_LOADED") +#endif // defined(NTDDI_VERSION) && (NTDDI_VERSION >= NTDDI_WINBLUE) +// Use PACKAGE_FILTER_HEAD|PACKAGE_FILTER_DIRECT instead of PACKAGE_FILTER_ALL_LOADED +#define PACKAGE_FILTER_ALL_LOADED 0 + +// Dependency Types + +typedef struct _PACKAGE_INFO_REFERENCE { + void * reserved; +} * PACKAGE_INFO_REFERENCE; + +#include + +typedef struct PACKAGE_INFO { + UINT32 reserved; + UINT32 flags; + PWSTR path; + PWSTR packageFullName; + PWSTR packageFamilyName; + PACKAGE_ID packageId; +} PACKAGE_INFO; + +#include + +// Dependency Functions + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetCurrentPackageInfo( + _In_ const UINT32 flags, + _Inout_ UINT32* bufferLength, + _Out_writes_bytes_opt_(*bufferLength) BYTE* buffer, + _Out_opt_ UINT32* count + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +OpenPackageInfoByFullName( + _In_ PCWSTR packageFullName, + _Reserved_ const UINT32 reserved, + _Out_ PACKAGE_INFO_REFERENCE* packageInfoReference + ); + +//TODO:8645770 Change 0x0101 to 0x0102 once THRESHOLD constants are available +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +OpenPackageInfoByFullNameForUser( + _In_opt_ PSID userSid, + _In_ PCWSTR packageFullName, + _Reserved_ const UINT32 reserved, + _Out_ PACKAGE_INFO_REFERENCE* packageInfoReference + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +ClosePackageInfo( + _In_ PACKAGE_INFO_REFERENCE packageInfoReference + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackageInfo( + _In_ PACKAGE_INFO_REFERENCE packageInfoReference, + _In_ const UINT32 flags, + _Inout_ UINT32* bufferLength, + _Out_writes_bytes_opt_(*bufferLength) BYTE* buffer, + _Out_opt_ UINT32* count + ); + +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackageApplicationIds( + _In_ PACKAGE_INFO_REFERENCE packageInfoReference, + _Inout_ UINT32* bufferLength, + _Out_writes_bytes_opt_(*bufferLength) BYTE* buffer, + _Out_opt_ UINT32* count + ); + +#if NTDDI_VERSION >= NTDDI_WIN10_19H1 +WINBASEAPI +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +GetPackageInfo2( + _In_ PACKAGE_INFO_REFERENCE packageInfoReference, + _In_ const UINT32 flags, + _In_ PackagePathType packagePathType, + _Inout_ UINT32* bufferLength, + _Out_writes_bytes_opt_(*bufferLength) BYTE* buffer, + _Out_opt_ UINT32* count + ); + +#endif // NTDDI_VERSION >= NTDDI_WIN10_19H1 + +WINBASEAPI +_Check_return_ +HRESULT +WINAPI +CheckIsMSIXPackage( + _In_ PCWSTR packageFullName, + _Out_ BOOL* isMSIXPackage + ); + +/* ---------------------------------------------------------------- */ + +// Dynamic Dependencies + +#if NTDDI_VERSION >= NTDDI_WIN10_CO + +typedef enum CreatePackageDependencyOptions +{ + CreatePackageDependencyOptions_None = 0, + + /// Disable dependency resolution when pinning a package dependency. + CreatePackageDependencyOptions_DoNotVerifyDependencyResolution = 0x00000001, + + /// Define the package dependency for the system, accessible to all users + /// (default is the package dependency is defined for a specific user). + /// This option requires the caller has adminitrative privileges. + CreatePackageDependencyOptions_ScopeIsSystem = 0x00000002, +} CreatePackageDependencyOptions; +DEFINE_ENUM_FLAG_OPERATORS(CreatePackageDependencyOptions) + +typedef enum PackageDependencyLifetimeKind +{ + /// The current process is the lifetime artifact. The package dependency + /// is implicitly deleted when the process terminates. + PackageDependencyLifetimeKind_Process = 0, + + /// The lifetime artifact is an absolute filename or path. + /// The package dependency is implicitly deleted when this is deleted. + PackageDependencyLifetimeKind_FilePath = 1, + + /// The lifetime artifact is a registry key in the format + /// 'root\\subkey' where root is one of the following: HKLM, HKCU, HKCR, HKU. + /// The package dependency is implicitly deleted when this is deleted. + PackageDependencyLifetimeKind_RegistryKey = 2, +} PackageDependencyLifetimeKind; + +typedef enum AddPackageDependencyOptions +{ + AddPackageDependencyOptions_None = 0, + AddPackageDependencyOptions_PrependIfRankCollision = 0x00000001, +} AddPackageDependencyOptions; +DEFINE_ENUM_FLAG_OPERATORS(AddPackageDependencyOptions) + +#if NTDDI_VERSION >= NTDDI_WIN10_GA +typedef enum AddPackageDependencyOptions2 +{ + AddPackageDependencyOptions2_None = 0, + AddPackageDependencyOptions2_PrependIfRankCollision = 0x00000001, + AddPackageDependencyOptions2_SpecifiedPackageFamilyOnly = 0x00000002, +} AddPackageDependencyOptions2; +DEFINE_ENUM_FLAG_OPERATORS(AddPackageDependencyOptions2) +#endif // NTDDI_VERSION >= NTDDI_WIN10_GA + +#define PACKAGE_DEPENDENCY_RANK_DEFAULT 0 + +typedef enum PackageDependencyProcessorArchitectures +{ + PackageDependencyProcessorArchitectures_None = 0, + PackageDependencyProcessorArchitectures_Neutral = 0x00000001, + PackageDependencyProcessorArchitectures_X86 = 0x00000002, + PackageDependencyProcessorArchitectures_X64 = 0x00000004, + PackageDependencyProcessorArchitectures_Arm = 0x00000008, + PackageDependencyProcessorArchitectures_Arm64 = 0x00000010, + PackageDependencyProcessorArchitectures_X86A64 = 0x00000020, +} PackageDependencyProcessorArchitectures; +DEFINE_ENUM_FLAG_OPERATORS(PackageDependencyProcessorArchitectures) + +#if !defined(__PACKAGEDEPENDENCY_CONTEXT_DEFINED__) +#define __PACKAGEDEPENDENCY_CONTEXT_DEFINED__ +DECLARE_HANDLE(PACKAGEDEPENDENCY_CONTEXT); +#endif // !defined(__PACKAGEDEPENDENCY_CONTEXT_DEFINED__) + +/// Define a package dependency. The criteria for a PackageDependency +/// (package family name, minimum version, etc) +/// may match multiple packages, but ensures Deployment won't remove +/// a package if it's the only one satisfying the PackageDependency. +/// +/// @note A package matching a PackageDependency pin can still be removed +/// as long as there's another package that satisfies the PackageDependency. +/// For example, if Fwk-v1 is installed and a PackageDependency specifies +/// MinVersion=1 and then Fwk-v2 is installed, Deployment could remove +/// Fwk-v1 because Fwk-v2 will satisfy the PackageDependency. After Fwk-v1 +/// is removed Deployment won't remove Fwk-v2 because it's the only package +/// satisfying the PackageDependency. Thus Fwk-v1 and Fwk-v2 (and any other +/// package matching the PackageDependency) are 'loosely pinned'. Deployment +/// guarantees it won't remove a package if it would make a PackageDependency +/// unsatisfied. +/// +/// A PackageDependency specifies criteria (package family, minimum version, etc) +/// and not a specific package. Deployment reserves the right to use a different +/// package (e.g. higher version) to satisfy the PackageDependency if/when +/// one becomes available. +/// +/// @param user the user scope of the package dependency. If NULL the caller's +/// user context is used. MUST be NULL if CreatePackageDependencyOptions_ScopeIsSystem +/// is specified +/// @param lifetimeArtifact MUST be NULL if lifetimeKind=PackageDependencyLifetimeKind_Process +/// @param packageDependencyId allocated via HeapAlloc; use HeapFree to deallocate +/// +/// @note TryCreatePackageDependency() fails if the PackageDependency cannot be resolved to a specific +/// package. This package resolution check is skipped if +/// CreatePackageDependencyOptions_DoNotVerifyDependencyResolution is specified. This is useful +/// for installers running as user contexts other than the target user (e.g. installers +/// running as LocalSystem). +/// @see TryCreatePackageDependency2 +WINBASEAPI +HRESULT +WINAPI +TryCreatePackageDependency( + PSID user, + _In_ PCWSTR packageFamilyName, + PACKAGE_VERSION minVersion, + PackageDependencyProcessorArchitectures packageDependencyProcessorArchitectures, + PackageDependencyLifetimeKind lifetimeKind, + PCWSTR lifetimeArtifact, + CreatePackageDependencyOptions options, + _Outptr_result_maybenull_ PWSTR* packageDependencyId + ); + +#if NTDDI_VERSION >= NTDDI_WIN11_GA + +/// Define a package dependency. The criteria for a PackageDependency +/// (package family name, minimum version, etc) +/// may match multiple packages, but ensures Deployment won't remove +/// a package if it's the only one satisfying the PackageDependency. +/// +/// @note A package matching a PackageDependency pin can still be removed +/// as long as there's another package that satisfies the PackageDependency. +/// For example, if Fwk-v1 is installed and a PackageDependency specifies +/// MinVersion=1 and then Fwk-v2 is installed, Deployment could remove +/// Fwk-v1 because Fwk-v2 will satisfy the PackageDependency. After Fwk-v1 +/// is removed Deployment won't remove Fwk-v2 because it's the only package +/// satisfying the PackageDependency. Thus Fwk-v1 and Fwk-v2 (and any other +/// package matching the PackageDependency) are 'loosely pinned'. Deployment +/// guarantees it won't remove a package if it would make a PackageDependency +/// unsatisfied. +/// +/// A PackageDependency specifies criteria (package family, minimum version, etc) +/// and not a specific package. Deployment reserves the right to use a different +/// package (e.g. higher version) to satisfy the PackageDependency if/when +/// one becomes available. +/// +/// @param user the user scope of the package dependency. If NULL the caller's +/// user context is used. MUST be NULL if CreatePackageDependencyOptions_ScopeIsSystem +/// is specified +/// @param lifetimeArtifact MUST be NULL if lifetimeKind=PackageDependencyLifetimeKind_Process +/// @param packageDependencyId allocated via HeapAlloc; use HeapFree to deallocate +/// +/// @note TryCreatePackageDependency2() fails if the PackageDependency cannot be resolved to a specific +/// package. This package resolution check is skipped if +/// CreatePackageDependencyOptions_DoNotVerifyDependencyResolution is specified. This is useful +/// for installers running as user contexts other than the target user (e.g. installers +/// running as LocalSystem). +/// @see TryCreatePackageDependency +WINBASEAPI +HRESULT +WINAPI +TryCreatePackageDependency2( + PSID user, + _In_ PCWSTR packageFamilyName, + PACKAGE_VERSION minVersion, + PackageDependencyProcessorArchitectures packageDependencyProcessorArchitectures, + PackageDependencyLifetimeKind lifetimeKind, + PCWSTR lifetimeArtifact, + CreatePackageDependencyOptions options, + const FILETIME* lifetimeExpiration, + _Outptr_result_maybenull_ PWSTR* packageDependencyId + ); + +#endif // NTDDI_VERSION >= NTDDI_WIN11_GA + +/// Undefine a package dependency. Removing a pin on a PackageDependency is typically done at uninstall-time. +/// This implicitly occurs if the package dependency's 'lifetime artifact' (specified via TryCreatePackageDependency) +/// is deleted. Packages that are not referenced by other packages and have no pins are elegible to be removed. +/// +/// @warn DeletePackageDependency() requires the caller have administrative privileges +/// if the package dependency was pinned with CreatePackageDependencyOptions_ScopeIsSystem. +WINBASEAPI +HRESULT +WINAPI +DeletePackageDependency( + _In_ PCWSTR packageDependencyId + ); + +/// Resolve a previously-pinned PackageDependency to a specific package and +/// add it to the invoking process' package graph. Once the dependency has +/// been added other code-loading methods (LoadLibrary, CoCreateInstance, etc) +/// can find the binaries in the resolved package. +/// +/// Package resolution is specific to a user and can return different values +/// for different users on a system. +/// +/// Each successful AddPackageDependency() adds the resolve packaged to the +/// calling process' package graph, even if already present. There is no +/// duplicate 'detection' or 'filtering' applied by the API (multiple +/// references from a package is not harmful). Once resolution is complete +/// the package dependency stays resolved for that user until the last reference across +/// all processes for that user is removed via RemovePackageDependency (or +/// process termination). +/// +/// AddPackageDependency() adds the resolved package to the caller's package graph, +/// per the rank specified. A process' package graph is a list of packages sorted by +/// rank in ascending order (-infinity...0...+infinity). If package(s) are present in the +/// package graph with the same rank as the call to AddPackageDependency the resolved +/// package is (by default) added after others of the same rank. To add a package +/// before others o the same rank, specify AddPackageDependencyOptions_PrependIfRankCollision. +/// +/// Every AddPackageDependency can be balanced by a RemovePackageDependency +/// to remove the entry from the package graph. If the process terminates all package +/// references are removed, but any pins stay behind. +/// +/// AddPackageDependency adds the resolved package to the process' package +/// graph, per the rank and options parameters. The process' package +/// graph is used to search for DLLs (per Dynamic-Link Library Search Order), +/// WinRT objects and other resources; the caller can now load DLLs, activate +/// WinRT objects and use other resources from the framework package until +/// RemovePackageDependency is called. The packageDependencyId parameter +/// must match a package dependency defined for the calling user or the +/// system (i.e. pinned with CreatePackageDependencyOptions_ScopeIsSystem) else +/// an error is returned. +/// +/// @param packageDependencyContext valid until passed to RemovePackageDependency() +/// @param packageFullName allocated via HeapAlloc; use HeapFree to deallocate +/// @see AddPackageDependency2() +WINBASEAPI +HRESULT +WINAPI +AddPackageDependency( + _In_ PCWSTR packageDependencyId, + INT32 rank, + AddPackageDependencyOptions options, + _Out_ PACKAGEDEPENDENCY_CONTEXT* packageDependencyContext, + _Outptr_opt_result_maybenull_ PWSTR* packageFullName + ); + +#if NTDDI_VERSION >= NTDDI_WIN11_GA + +/// Resolve a previously-pinned PackageDependency to a specific package and +/// add it to the invoking process' package graph. Once the dependency has +/// been added other code-loading methods (LoadLibrary, CoCreateInstance, etc) +/// can find the binaries in the resolved package. +/// +/// Package resolution is specific to a user and can return different values +/// for different users on a system. +/// +/// Each successful AddPackageDependency2() adds the resolve packaged to the +/// calling process' package graph, even if already present. There is no +/// duplicate 'detection' or 'filtering' applied by the API (multiple +/// references from a package is not harmful). Once resolution is complete +/// the package dependency stays resolved for that user until the last reference across +/// all processes for that user is removed via RemovePackageDependency (or +/// process termination). +/// +/// AddPackageDependency2() adds the resolved package to the caller's package graph, +/// per the rank specified. A process' package graph is a list of packages sorted by +/// rank in ascending order (-infinity...0...+infinity). If package(s) are present in the +/// package graph with the same rank as the call to AddPackageDependency2 the resolved +/// package is (by default) added after others of the same rank. To add a package +/// before others o the same rank, specify AddPackageDependencyOptions2_PrependIfRankCollision. +/// +/// Every AddPackageDependency2 can be balanced by a RemovePackageDependency +/// to remove the entry from the package graph. If the process terminates all package +/// references are removed, but any pins stay behind. +/// +/// AddPackageDependency2 adds the resolved package to the process' package +/// graph, per the rank and options parameters. The process' package +/// graph is used to search for DLLs (per Dynamic-Link Library Search Order), +/// WinRT objects and other resources; the caller can now load DLLs, activate +/// WinRT objects and use other resources from the framework package until +/// RemovePackageDependency is called. The packageDependencyId parameter +/// must match a package dependency defined for the calling user or the +/// system (i.e. pinned with CreatePackageDependencyOptions_ScopeIsSystem) else +/// an error is returned. +/// +/// @param packageDependencyContext valid until passed to RemovePackageDependency() +/// @param packageFullName allocated via HeapAlloc; use HeapFree to deallocate +/// @see AddPackageDependency() +WINBASEAPI +HRESULT +WINAPI +AddPackageDependency2( + _In_ PCWSTR packageDependencyId, + INT32 rank, + AddPackageDependencyOptions2 options, + _Out_ PACKAGEDEPENDENCY_CONTEXT* packageDependencyContext, + _Outptr_opt_result_maybenull_ PWSTR* packageFullName + ); + +#endif // NTDDI_VERSION >= NTDDI_WIN11_GA + +/// Remove a resolved PackageDependency from the current process' package graph +/// (i.e. undo AddPackageDependency). Used at runtime (i.e. the moral equivalent +/// of Windows' RemoveDllDirectory()). +/// +/// @note This does not unload loaded resources (DLLs etc). After removing +/// a package dependency any files loaded from the package can continue +/// to be used; future file resolution will fail to see the removed +/// package dependency. +WINBASEAPI +HRESULT +WINAPI +RemovePackageDependency( + _In_ PACKAGEDEPENDENCY_CONTEXT packageDependencyContext + ); + +/// Return the package full name that would be used if the +/// PackageDependency were to be resolved. Does not add the +/// package to the process graph. +/// +/// @param packageFullName allocated via HeapAlloc; use HeapFree to deallocate. +/// If the package dependency cannot be resolved the function +/// succeeds but packageFullName is NULL. +/// @see GetResolvedPackageFullNameForPackageDependency2 +WINBASEAPI +HRESULT +WINAPI +GetResolvedPackageFullNameForPackageDependency( + _In_ PCWSTR packageDependencyId, + _Outptr_result_maybenull_ PWSTR* packageFullName + ); + +#if NTDDI_VERSION >= NTDDI_WIN11_GA + +/// Return the package full name that would be used if the +/// PackageDependency were to be resolved. Does not add the +/// package to the process graph. +/// +/// @param packageFullName allocated via HeapAlloc; use HeapFree to deallocate. +/// @return E_INVALIDARG if packageDependencyId is not a valid package dependency. +/// @see GetResolvedPackageFullNameForPackageDependency +WINBASEAPI +HRESULT +WINAPI +GetResolvedPackageFullNameForPackageDependency2( + _In_ PCWSTR packageDependencyId, + _Outptr_result_maybenull_ PWSTR* packageFullName + ); + +#endif // NTDDI_VERSION >= NTDDI_WIN11_GA + +/// Return the package dependency for the context. +/// +/// @param packageDependencyId allocated via HeapAlloc; use HeapFree to deallocate. +/// If the package dependency context cannot be resolved +/// the function succeeds but packageDependencyId is NULL. +WINBASEAPI +HRESULT +WINAPI +GetIdForPackageDependencyContext( + _In_ PACKAGEDEPENDENCY_CONTEXT packageDependencyContext, + _Outptr_result_maybenull_ PWSTR* packageDependencyId + ); + +#endif // NTDDI_VERSION >= NTDDI_WIN10_CO + +#if NTDDI_VERSION >= NTDDI_WIN10_NI + +/// Returns the package graph's current revision ID. +WINBASEAPI +UINT32 +WINAPI +GetPackageGraphRevisionId( + ); + +#endif // NTDDI_VERSION >= NTDDI_WIN10_NI + +typedef struct FindPackageDependencyCriteria { + + /// Match package dependencies for this user if not NULL. + /// Match package dependencies for the current user if NULL (and ScopeIsSystem=FALSE). + /// @note This MUST be NULL if ScopeIsSystem=TRUE. + /// @note Admin privilege is required if User is not NULL and not the current user. + PSID User; + + /// Match package dependencies created with CreatePackageDependencyOptions_ScopeIsSystem this is TRUE. + /// @note Admin privilege is required if ScopeIsSystem is TRUE. + BOOL ScopeIsSystem; + + /// Match package dependencies with this package family. Ignore if NULL or empty (""). + PCWSTR PackageFamilyName; + +} FindPackageDependencyCriteria; + +#if NTDDI_VERSION >= NTDDI_WIN11_GA + +/// Retrieve package dependencies. +/// @param packageDependencyIds allocated via HeapAlloc; use HeapFree to deallocate +/// +/// @see FindPackageDependencyCriteria +/// @see TryCreatePackageDependency2 +WINBASEAPI +HRESULT +WINAPI +FindPackageDependency( + _In_ const FindPackageDependencyCriteria* findPackageDependencyCriteria, + _Out_ UINT32* packageDependencyIdsCount, + _Outptr_result_buffer_maybenull_(*packageDependencyIdsCount) PWSTR** packageDependencyIds + ); + +/// Retrieve information about a package dependency. +/// +/// @param user allocated via HeapAlloc; use HeapFree to deallocate +/// @param packageFamilyName allocated via HeapAlloc; use HeapFree to deallocate +/// @param lifetimeArtifact allocated via HeapAlloc; use HeapFree to deallocate +/// @param lifetimeExpiration if specified, the value is zero if expiration date is not set. +/// @note Admin privilege is required the package dependency was created with CreatePackageDependencyOptions_ScopeIsSystem or user is not NULL and not the current user. +/// @see FindPackageDependency +WINBASEAPI +HRESULT +WINAPI +GetPackageDependencyInformation( + _In_ PCWSTR packageDependencyId, + _Outptr_opt_result_maybenull_ PSID* user, + _Outptr_opt_result_maybenull_ PWSTR* packageFamilyName, + _Out_opt_ PACKAGE_VERSION* minVersion, + _Out_opt_ PackageDependencyProcessorArchitectures* packageDependencyProcessorArchitectures, + _Out_opt_ PackageDependencyLifetimeKind* lifetimeKind, + _Outptr_opt_result_maybenull_ PWSTR* lifetimeArtifact, + _Out_opt_ CreatePackageDependencyOptions* options, + _Out_opt_ FILETIME* lifetimeExpiration + ); + +/// Retrieve the list of processes using a package dependency. +/// +/// @param user the user scope of the package dependency. If NULL the caller's +/// user context is used. MUST be NULL if scopeIsSystem=TRUE. +/// @param processIdsCount allocated via HeapAlloc; use HeapFree to deallocate +/// @param processIds allocated via HeapAlloc; use HeapFree to deallocate +/// @note Admin privilege is required if scopeIsSystem=TRUE or user is not NULL and not the current user. +/// @see FindPackageDependency +WINBASEAPI +HRESULT +WINAPI +GetProcessesUsingPackageDependency( + _In_ PCWSTR packageDependencyId, + _In_opt_ PSID user, + _In_ BOOL scopeIsSystem, + _Out_ UINT32* processIdsCount, + _Outptr_result_buffer_maybenull_(*processIdsCount) DWORD** processIds + ); + +#endif // NTDDI_VERSION >= NTDDI_WIN11_GA + +/* ---------------------------------------------------------------- */ + +// Appmodel Policy + +typedef enum AppPolicyLifecycleManagement +{ + AppPolicyLifecycleManagement_Unmanaged = 0, + AppPolicyLifecycleManagement_Managed = 1 +} AppPolicyLifecycleManagement; + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +AppPolicyGetLifecycleManagement( + _In_ HANDLE processToken, + _Out_ AppPolicyLifecycleManagement* policy + ); + +typedef enum AppPolicyWindowingModel +{ + AppPolicyWindowingModel_None = 0, + AppPolicyWindowingModel_Universal = 1, + AppPolicyWindowingModel_ClassicDesktop = 2, + AppPolicyWindowingModel_ClassicPhone = 3 +} AppPolicyWindowingModel; + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +AppPolicyGetWindowingModel( + _In_ HANDLE processToken, + _Out_ AppPolicyWindowingModel* policy + ); + +typedef enum AppPolicyMediaFoundationCodecLoading +{ + AppPolicyMediaFoundationCodecLoading_All = 0, + AppPolicyMediaFoundationCodecLoading_InboxOnly = 1 +} AppPolicyMediaFoundationCodecLoading; + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +AppPolicyGetMediaFoundationCodecLoading( + _In_ HANDLE processToken, + _Out_ AppPolicyMediaFoundationCodecLoading* policy + ); + +typedef enum AppPolicyClrCompat +{ + AppPolicyClrCompat_Other = 0, + AppPolicyClrCompat_ClassicDesktop = 1, + AppPolicyClrCompat_Universal = 2, + AppPolicyClrCompat_PackagedDesktop = 3 +} AppPolicyClrCompat; + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +AppPolicyGetClrCompat( + _In_ HANDLE processToken, + _Out_ AppPolicyClrCompat* policy + ); + +typedef enum AppPolicyThreadInitializationType +{ + AppPolicyThreadInitializationType_None = 0, + AppPolicyThreadInitializationType_InitializeWinRT = 1, +} AppPolicyThreadInitializationType; + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +AppPolicyGetThreadInitializationType( + _In_ HANDLE processToken, + _Out_ AppPolicyThreadInitializationType* policy + ); + +typedef enum AppPolicyShowDeveloperDiagnostic +{ + AppPolicyShowDeveloperDiagnostic_None = 0, + AppPolicyShowDeveloperDiagnostic_ShowUI = 1, +} AppPolicyShowDeveloperDiagnostic; + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +AppPolicyGetShowDeveloperDiagnostic( + _In_ HANDLE processToken, + _Out_ AppPolicyShowDeveloperDiagnostic* policy + ); + +typedef enum AppPolicyProcessTerminationMethod +{ + AppPolicyProcessTerminationMethod_ExitProcess = 0, + AppPolicyProcessTerminationMethod_TerminateProcess = 1, +} AppPolicyProcessTerminationMethod; + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +AppPolicyGetProcessTerminationMethod( + _In_ HANDLE processToken, + _Out_ AppPolicyProcessTerminationMethod* policy + ); + +typedef enum AppPolicyCreateFileAccess +{ + AppPolicyCreateFileAccess_Full = 0, + AppPolicyCreateFileAccess_Limited = 1, +} AppPolicyCreateFileAccess; + +WINBASEAPI +_Check_return_ +_Success_(return == ERROR_SUCCESS) +LONG +WINAPI +AppPolicyGetCreateFileAccess( + _In_ HANDLE processToken, + _Out_ AppPolicyCreateFileAccess* policy + ); + +/* ---------------------------------------------------------------- */ + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#pragma endregion + +#if defined(__cplusplus) +} // end extern "C" +#endif // defined(__cplusplus) + +#if defined(_MSC_VER) +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif // _MSC_VER >= 1200 +#endif // defined(_MSC_VER) + +#endif // _APPMODEL_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/appnotify.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appnotify.h new file mode 100644 index 0000000000000000000000000000000000000000..e1927c7442ad3da525e50929ced5bc207879c5f5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appnotify.h @@ -0,0 +1,92 @@ +/******************************************************************************** +* * +* psmapp.h - ApiSet Contract for api-ms-win-core-psm-app-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifndef _APISET_PSMAPPNOTIFY_H_ +#define _APISET_PSMAPPNOTIFY_H_ + +#include +#include + +#ifdef _CONTRACT_GEN // Header(s) needed for contract generation only. +#include + +#define PSM_APP_API_HOST +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#undef APICONTRACT +#ifndef PSM_APP_API_HOST +#define APICONTRACT DECLSPEC_IMPORT +#else +#define APICONTRACT +#endif + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) + +typedef +VOID +(*PAPPSTATE_CHANGE_ROUTINE) ( + _In_ BOOLEAN Quiesced, + _In_ PVOID Context + ); + +typedef struct _APPSTATE_REGISTRATION *PAPPSTATE_REGISTRATION; + +APICONTRACT +ULONG +NTAPI +RegisterAppStateChangeNotification( + _In_ PAPPSTATE_CHANGE_ROUTINE Routine, + _In_opt_ PVOID Context, + _Out_ PAPPSTATE_REGISTRATION* Registration + ); + +APICONTRACT +VOID +NTAPI +UnregisterAppStateChangeNotification( + _Inout_ PAPPSTATE_REGISTRATION Registration + ); + +typedef +VOID +(*PAPPCONSTRAIN_CHANGE_ROUTINE) ( + _In_ BOOLEAN Constrained, + _In_ PVOID Context +); + +typedef struct _APPCONSTRAIN_REGISTRATION *PAPPCONSTRAIN_REGISTRATION; + +APICONTRACT +ULONG +NTAPI +RegisterAppConstrainedChangeNotification( + _In_ PAPPCONSTRAIN_CHANGE_ROUTINE Routine, + _In_opt_ PVOID Context, + _Out_ PAPPCONSTRAIN_REGISTRATION* Registration + ); + +APICONTRACT +VOID +NTAPI +UnregisterAppConstrainedChangeNotification( + _Inout_ PAPPCONSTRAIN_REGISTRATION Registration + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _APISET_PSMAPPNOTIFY_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/appserviceinterop.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appserviceinterop.h new file mode 100644 index 0000000000000000000000000000000000000000..b50a20d52a2f873a09b33be14b1271ee6766836c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appserviceinterop.h @@ -0,0 +1,301 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __appserviceinterop_h__ +#define __appserviceinterop_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAppServiceConnectionExtendedExecution_FWD_DEFINED__ +#define __IAppServiceConnectionExtendedExecution_FWD_DEFINED__ +typedef interface IAppServiceConnectionExtendedExecution IAppServiceConnectionExtendedExecution; + +#endif /* __IAppServiceConnectionExtendedExecution_FWD_DEFINED__ */ + + +#ifndef __ICorrelationVectorSource_FWD_DEFINED__ +#define __ICorrelationVectorSource_FWD_DEFINED__ +typedef interface ICorrelationVectorSource ICorrelationVectorSource; + +#endif /* __ICorrelationVectorSource_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "inspectable.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_appserviceinterop_0000_0000 */ +/* [local] */ + +#include +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_appserviceinterop_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_appserviceinterop_0000_0000_v0_0_s_ifspec; + +#ifndef __IAppServiceConnectionExtendedExecution_INTERFACE_DEFINED__ +#define __IAppServiceConnectionExtendedExecution_INTERFACE_DEFINED__ + +/* interface IAppServiceConnectionExtendedExecution */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_IAppServiceConnectionExtendedExecution; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("65219584-F9CB-4AE3-81F9-A28A6CA450D9") + IAppServiceConnectionExtendedExecution : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OpenForExtendedExecutionAsync( + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **operation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAppServiceConnectionExtendedExecutionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAppServiceConnectionExtendedExecution * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAppServiceConnectionExtendedExecution * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAppServiceConnectionExtendedExecution * This); + + DECLSPEC_XFGVIRT(IAppServiceConnectionExtendedExecution, OpenForExtendedExecutionAsync) + HRESULT ( STDMETHODCALLTYPE *OpenForExtendedExecutionAsync )( + __RPC__in IAppServiceConnectionExtendedExecution * This, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **operation); + + END_INTERFACE + } IAppServiceConnectionExtendedExecutionVtbl; + + interface IAppServiceConnectionExtendedExecution + { + CONST_VTBL struct IAppServiceConnectionExtendedExecutionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAppServiceConnectionExtendedExecution_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAppServiceConnectionExtendedExecution_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAppServiceConnectionExtendedExecution_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAppServiceConnectionExtendedExecution_OpenForExtendedExecutionAsync(This,riid,operation) \ + ( (This)->lpVtbl -> OpenForExtendedExecutionAsync(This,riid,operation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAppServiceConnectionExtendedExecution_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_appserviceinterop_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif //(NTDDI_VERSION >= NTDDI_WIN10_RS2) +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_appserviceinterop_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_appserviceinterop_0000_0001_v0_0_s_ifspec; + +#ifndef __ICorrelationVectorSource_INTERFACE_DEFINED__ +#define __ICorrelationVectorSource_INTERFACE_DEFINED__ + +/* interface ICorrelationVectorSource */ +/* [uuid][unique][object] */ + + +EXTERN_C const IID IID_ICorrelationVectorSource; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("152B8A3B-B9B9-4685-B56E-974847BC7545") + ICorrelationVectorSource : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CorrelationVector( + /* [retval][out] */ __RPC__deref_out_opt HSTRING *cv) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICorrelationVectorSourceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICorrelationVectorSource * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICorrelationVectorSource * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICorrelationVectorSource * This); + + DECLSPEC_XFGVIRT(ICorrelationVectorSource, get_CorrelationVector) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CorrelationVector )( + __RPC__in ICorrelationVectorSource * This, + /* [retval][out] */ __RPC__deref_out_opt HSTRING *cv); + + END_INTERFACE + } ICorrelationVectorSourceVtbl; + + interface ICorrelationVectorSource + { + CONST_VTBL struct ICorrelationVectorSourceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICorrelationVectorSource_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICorrelationVectorSource_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICorrelationVectorSource_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICorrelationVectorSource_get_CorrelationVector(This,cv) \ + ( (This)->lpVtbl -> get_CorrelationVector(This,cv) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICorrelationVectorSource_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_appserviceinterop_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#endif //(NTDDI_VERSION >= NTDDI_WIN10_VB) + + +extern RPC_IF_HANDLE __MIDL_itf_appserviceinterop_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_appserviceinterop_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HSTRING_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HSTRING * ); +void __RPC_USER HSTRING_UserFree( __RPC__in unsigned long *, __RPC__in HSTRING * ); + +unsigned long __RPC_USER HSTRING_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HSTRING * ); +void __RPC_USER HSTRING_UserFree64( __RPC__in unsigned long *, __RPC__in HSTRING * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/appserviceinterop.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appserviceinterop.idl new file mode 100644 index 0000000000000000000000000000000000000000..7d96e857fdebe9fffb3889028579c28c4312a250 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/appserviceinterop.idl @@ -0,0 +1,47 @@ +/* AppContractsInterop.idl + * + * COM API extension for Windows.ApplicationModel.AppService + * + * Copyright (c) Microsoft Corporation. All rights reserved + */ + +import "oaidl.idl"; +import "ocidl.idl"; +import "inspectable.idl"; + +cpp_quote("#include ") + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_RS2)") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +[object, pointer_default(unique), uuid(65219584-F9CB-4AE3-81F9-A28A6CA450D9)] +interface IAppServiceConnectionExtendedExecution : IUnknown +{ + HRESULT OpenForExtendedExecutionAsync( + [in] REFIID riid, + [out, iid_is(riid)] void** operation); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WIN10_RS2)") + + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_VB)") + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +[object, pointer_default(unique), uuid(152B8A3B-B9B9-4685-B56E-974847BC7545)] +interface ICorrelationVectorSource : IUnknown +{ + [propget] HRESULT CorrelationVector([out, retval] HSTRING* cv); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WIN10_VB)") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/asferr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/asferr.h new file mode 100644 index 0000000000000000000000000000000000000000..d9d3f536d970ddd80abde0981c8fbaf749f772b8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/asferr.h @@ -0,0 +1,480 @@ +/////////////////////////////////////////////////////////////////////////// +// +// ASFErr.h - definition of ASF HRESULT codes +// +//========================================================================= +// +// Microsoft Windows Media Technologies +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +//========================================================================= +// +// This file is generated by the MC tool from ASFErr.mc +// + +#ifndef _ASFERR_H +#define _ASFERR_H + + +#define STATUS_SEVERITY(hr) (((hr) >> 30) & 0x3) + +#ifdef RC_INVOKED +#define _ASF_HRESULT_TYPEDEF_(_sc) _sc +#else // RC_INVOKED +#define _ASF_HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc) +#endif // RC_INVOKED + + +/////////////////////////////////////////////////////////////////////////// +// +// Advanced Streaming Format (ASF) Errors (2000 - 2999) +// +// +// Values are 32 bit values layed out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---+-+-+-----------------------+-------------------------------+ +// |Sev|C|R| Facility | Code | +// +---+-+-+-----------------------+-------------------------------+ +// +// where +// +// Sev - is the severity code +// +// 00 - Success +// 01 - Informational +// 10 - Warning +// 11 - Error +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_NS 0xD + + +// +// Define the severity codes +// +#define STATUS_SEVERITY_WARNING 0x2 +#define STATUS_SEVERITY_SUCCESS 0x0 +#define STATUS_SEVERITY_INFORMATIONAL 0x1 +#define STATUS_SEVERITY_ERROR 0x3 + + +// +// MessageId: ASF_E_BUFFEROVERRUN +// +// MessageText: +// +// An attempt was made to seek or position past the end of a buffer.%0 +// +#define ASF_E_BUFFEROVERRUN _ASF_HRESULT_TYPEDEF_(0xC00D07D0L) + +// +// MessageId: ASF_E_BUFFERTOOSMALL +// +// MessageText: +// +// The supplied input or output buffer was too small.%0 +// +#define ASF_E_BUFFERTOOSMALL _ASF_HRESULT_TYPEDEF_(0xC00D07D1L) + +// +// MessageId: ASF_E_BADLANGUAGEID +// +// MessageText: +// +// The language ID was not found.%0 +// +#define ASF_E_BADLANGUAGEID _ASF_HRESULT_TYPEDEF_(0xC00D07D2L) + +// +// MessageId: ASF_E_NOPAYLOADLENGTH +// +// MessageText: +// +// The multiple payload packet is missing the payload length.%0 +// +#define ASF_E_NOPAYLOADLENGTH _ASF_HRESULT_TYPEDEF_(0xC00D07DBL) + +// +// MessageId: ASF_E_TOOMANYPAYLOADS +// +// MessageText: +// +// The packet contains too many payloads.%0 +// +#define ASF_E_TOOMANYPAYLOADS _ASF_HRESULT_TYPEDEF_(0xC00D07DCL) + +// +// MessageId: ASF_E_PACKETCONTENTTOOLARGE +// +// MessageText: +// +// ASF_E_PACKETCONTENTTOOLARGE +// +#define ASF_E_PACKETCONTENTTOOLARGE _ASF_HRESULT_TYPEDEF_(0xC00D07DEL) + +// +// MessageId: ASF_E_UNKNOWNPACKETSIZE +// +// MessageText: +// +// Expecting a fixed packet size but min. and max. are not equal.%0 +// +#define ASF_E_UNKNOWNPACKETSIZE _ASF_HRESULT_TYPEDEF_(0xC00D07E0L) + +// +// MessageId: ASF_E_INVALIDHEADER +// +// MessageText: +// +// ASF_E_INVALIDHEADER +// +#define ASF_E_INVALIDHEADER _ASF_HRESULT_TYPEDEF_(0xC00D07E2L) + +// +// MessageId: ASF_E_NOCLOCKOBJECT +// +// MessageText: +// +// The object does not have a valid clock object.%0 +// +#define ASF_E_NOCLOCKOBJECT _ASF_HRESULT_TYPEDEF_(0xC00D07E6L) + +// +// MessageId: ASF_E_UNKNOWNCLOCKTYPE +// +// MessageText: +// +// ASF_E_UNKNOWNCLOCKTYPE +// +#define ASF_E_UNKNOWNCLOCKTYPE _ASF_HRESULT_TYPEDEF_(0xC00D07EBL) + +// +// MessageId: ASF_E_OPAQUEPACKET +// +// MessageText: +// +// An attempt was made to restore or access an opaque packet.%0 +// +#define ASF_E_OPAQUEPACKET _ASF_HRESULT_TYPEDEF_(0xC00D07EDL) + +// +// MessageId: ASF_E_WRONGVERSION +// +// MessageText: +// +// ASF_E_WRONGVERSION +// +#define ASF_E_WRONGVERSION _ASF_HRESULT_TYPEDEF_(0xC00D07EEL) + +// +// MessageId: ASF_E_OVERFLOW +// +// MessageText: +// +// An attempt was made to store a value which was larger than then destination's maximum value.%0 +// +#define ASF_E_OVERFLOW _ASF_HRESULT_TYPEDEF_(0xC00D07EFL) + +// +// MessageId: ASF_E_NOTFOUND +// +// MessageText: +// +// The object was not found.%0 +// +#define ASF_E_NOTFOUND _ASF_HRESULT_TYPEDEF_(0xC00D07F0L) + +// +// Someone else is using MessageIds 2033 & 2034, so we skip them +// +// 2033 = NS_E_NOTHING_TO_DO +// 2034 = NS_E_NO_MULTICAST + +// +// MessageId: ASF_E_OBJECTTOOBIG +// +// MessageText: +// +// The object is too large to be processed in the requested manner.%0 +// +#define ASF_E_OBJECTTOOBIG _ASF_HRESULT_TYPEDEF_(0xC00D07F3L) + +// +// MessageId: ASF_E_UNEXPECTEDVALUE +// +// MessageText: +// +// A value was not set as expected.%0 +// +#define ASF_E_UNEXPECTEDVALUE _ASF_HRESULT_TYPEDEF_(0xC00D07F4L) + +// +// MessageId: ASF_E_INVALIDSTATE +// +// MessageText: +// +// The request is not valid in the object's current state.%0 +// +#define ASF_E_INVALIDSTATE _ASF_HRESULT_TYPEDEF_(0xC00D07F5L) + +// +// MessageId: ASF_E_NOLIBRARY +// +// MessageText: +// +// This object does not have a valid library pointer; it was not properly created or it has been Shutdown().%0 +// +#define ASF_E_NOLIBRARY _ASF_HRESULT_TYPEDEF_(0xC00D07F6L) + +// +// MessageId: ASF_E_ALREADYINITIALIZED +// +// MessageText: +// +// This object has already been initialized; the setting cannot be changed.%0 +// +#define ASF_E_ALREADYINITIALIZED _ASF_HRESULT_TYPEDEF_(0xC00D07F7L) + +// +// MessageId: ASF_E_INVALIDINIT +// +// MessageText: +// +// This object has not been initialized properly; that operation cannot be performed.%0 +// +#define ASF_E_INVALIDINIT _ASF_HRESULT_TYPEDEF_(0xC00D07F8L) + +// +// MessageId: ASF_E_NOHEADEROBJECT +// +// MessageText: +// +// The ASF Header object could not be found.%0 +// +#define ASF_E_NOHEADEROBJECT _ASF_HRESULT_TYPEDEF_(0xC00D07F9L) + +// +// MessageId: ASF_E_NODATAOBJECT +// +// MessageText: +// +// The ASF Data object could not be found.%0 +// +#define ASF_E_NODATAOBJECT _ASF_HRESULT_TYPEDEF_(0xC00D07FAL) + +// +// MessageId: ASF_E_NOINDEXOBJECT +// +// MessageText: +// +// The ASF Index object could not be found.%0 +// +#define ASF_E_NOINDEXOBJECT _ASF_HRESULT_TYPEDEF_(0xC00D07FBL) + +// +// MessageId: ASF_E_NOSTREAMPROPS +// +// MessageText: +// +// A Stream Properties object with the correct stream number could not be found.%0 +// +#define ASF_E_NOSTREAMPROPS _ASF_HRESULT_TYPEDEF_(0xC00D07FCL) + +// +// MessageId: ASF_E_NOFILEPROPS +// +// MessageText: +// +// The File Properties object could not be found.%0 +// +#define ASF_E_NOFILEPROPS _ASF_HRESULT_TYPEDEF_(0xC00D07FDL) + +// +// MessageId: ASF_E_NOLANGUAGELIST +// +// MessageText: +// +// The Language List object could not be found.%0 +// +#define ASF_E_NOLANGUAGELIST _ASF_HRESULT_TYPEDEF_(0xC00D07FEL) + +// +// MessageId: ASF_E_NOINDEXPARAMETERS +// +// MessageText: +// +// The Index Parameters object could not be found.%0 +// +#define ASF_E_NOINDEXPARAMETERS _ASF_HRESULT_TYPEDEF_(0xC00D07FFL) + +// +// MessageId: ASF_E_UNSUPPORTEDERRORCONCEALMENT +// +// MessageText: +// +// The requested error concealment strategy is not supported by this component.%0 +// +#define ASF_E_UNSUPPORTEDERRORCONCEALMENT _ASF_HRESULT_TYPEDEF_(0xC00D0800L) + +// +// MessageId: ASF_E_INVALIDFLAGS +// +// MessageText: +// +// The flags for this object or set of objects are not properly set.%0 +// +#define ASF_E_INVALIDFLAGS _ASF_HRESULT_TYPEDEF_(0xC00D0801L) + +// +// MessageId: ASF_E_BADDATADESCRIPTOR +// +// MessageText: +// +// One or more data descriptors is not properly set.%0 +// +#define ASF_E_BADDATADESCRIPTOR _ASF_HRESULT_TYPEDEF_(0xC00D0802L) + +// +// MessageId: ASF_E_BADINDEXINTERVAL +// +// MessageText: +// +// The index has an invalid time interval (probably zero).%0 +// +#define ASF_E_BADINDEXINTERVAL _ASF_HRESULT_TYPEDEF_(0xC00D0803L) + +// +// MessageId: ASF_E_INVALIDTIME +// +// MessageText: +// +// The given time value is not valid.%0 +// +#define ASF_E_INVALIDTIME _ASF_HRESULT_TYPEDEF_(0xC00D0804L) + +// +// MessageId: ASF_E_INVALIDINDEX +// +// MessageText: +// +// The given index value is not valid.%0 +// +#define ASF_E_INVALIDINDEX _ASF_HRESULT_TYPEDEF_(0xC00D0805L) + +// +// MessageId: ASF_E_STREAMNUMBERINUSE +// +// MessageText: +// +// The specified stream number is already in use.%0 +// +#define ASF_E_STREAMNUMBERINUSE _ASF_HRESULT_TYPEDEF_(0xC00D0806L) + +// +// MessageId: ASF_E_BADMEDIATYPE +// +// MessageText: +// +// The specified media type does not work with this component.%0 +// +#define ASF_E_BADMEDIATYPE _ASF_HRESULT_TYPEDEF_(0xC00D0807L) + +// +// MessageId: ASF_E_WRITEFAILED +// +// MessageText: +// +// The object could not be written as specified.%0 +// +#define ASF_E_WRITEFAILED _ASF_HRESULT_TYPEDEF_(0xC00D0808L) + +// +// MessageId: ASF_E_NOTENOUGHDESCRIPTORS +// +// MessageText: +// +// The given data unit requires a larger number of descriptors to be fully parsed.%0 +// +#define ASF_E_NOTENOUGHDESCRIPTORS _ASF_HRESULT_TYPEDEF_(0xC00D0809L) + +// +// MessageId: ASF_E_INDEXBLOCKUNLOADED +// +// MessageText: +// +// The index entries for the specified index block have been unloaded from memory and are not available.%0 +// +#define ASF_E_INDEXBLOCKUNLOADED _ASF_HRESULT_TYPEDEF_(0xC00D080AL) + +// +// MessageId: ASF_E_NOTENOUGHBANDWIDTH +// +// MessageText: +// +// The specified bandwidth is not large enough.%0 +// +#define ASF_E_NOTENOUGHBANDWIDTH _ASF_HRESULT_TYPEDEF_(0xC00D080BL) + +// +// MessageId: ASF_E_EXCEEDEDMAXIMUMOBJECTSIZE +// +// MessageText: +// +// The object has exceeded its maximum size.%0 +// +#define ASF_E_EXCEEDEDMAXIMUMOBJECTSIZE _ASF_HRESULT_TYPEDEF_(0xC00D080CL) + +// +// MessageId: ASF_E_BADDATAUNIT +// +// MessageText: +// +// The given data unit is corrupted, badly formatted, or otherwise not valid.%0 +// +#define ASF_E_BADDATAUNIT _ASF_HRESULT_TYPEDEF_(0xC00D080DL) + +// +// MessageId: ASF_E_HEADERSIZE +// +// MessageText: +// +// The ASF header has exceeded the specified maximum size.%0 +// +#define ASF_E_HEADERSIZE _ASF_HRESULT_TYPEDEF_(0xC00D080EL) + + +/////////////////////////////////////////////////////////////////////////// +// +// Advanced Streaming Format (ASF) Success Codes (2000 - 2999) +// + +// +// MessageId: ASF_S_OPAQUEPACKET +// +// MessageText: +// +// ASF_S_OPAQUEPACKET +// +#define ASF_S_OPAQUEPACKET _ASF_HRESULT_TYPEDEF_(0x000D07F0L) + + +/////////////////////////////////////////////////////////////////////////// +// +// Advanced Streaming Format (ASF) Warnings (2000 - 2999) +// + + +#endif // _ASFERR_H + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/asynot.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/asynot.idl new file mode 100644 index 0000000000000000000000000000000000000000..57db530595ab5facdb52a5788b1c8aecee86b5fa --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/asynot.idl @@ -0,0 +1,78 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: asynot.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + REMOTED_INTERFACE(0c733a96-2a1c-11ce-ade5-00aa0044773d) + +interface IDBAsynchNotify : IUnknown { + + [local] + HRESULT OnLowResource( + [in] DB_DWRESERVE dwReserved + ); + + [call_as(OnLowResource)] + HRESULT RemoteOnLowResource( + [in] DB_DWRESERVE dwReserved + ); + + [local] + HRESULT OnProgress( + [in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] DBCOUNTITEM ulProgress, + [in] DBCOUNTITEM ulProgressMax, + [in] DBASYNCHPHASE eAsynchPhase, + [in, annotation("_In_opt_")] LPOLESTR pwszStatusText + ); + + [call_as(OnProgress)] + HRESULT RemoteOnProgress( + [in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] DBCOUNTITEM ulProgress, + [in] DBCOUNTITEM ulProgressMax, + [in] DBASYNCHPHASE eAsynchPhase, + [in,unique,string] LPOLESTR pwszStatusText + ); + + [local] + HRESULT OnStop( + [in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] HRESULT hrStatus, + [in, annotation("_In_opt_")] LPOLESTR pwszStatusText + ); + + [call_as(OnStop)] + HRESULT RemoteOnStop( + [in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in] HRESULT hrStatus, + [in,unique,string] LPOLESTR pwszStatusText + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/asysta.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/asysta.idl new file mode 100644 index 0000000000000000000000000000000000000000..de22e8e651ab004ad7a9754bcb6ee005441bd5b2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/asysta.idl @@ -0,0 +1,67 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: asysta.idl +// +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + REMOTED_INTERFACE(0c733a95-2a1c-11ce-ade5-00aa0044773d) + +interface IDBAsynchStatus : IUnknown { + + [local] + HRESULT Abort( + [in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation + ); + + [call_as(Abort)] + HRESULT RemoteAbort( + [in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetStatus( + [in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [out, annotation("_Out_opt_")] DBCOUNTITEM * pulProgress, + [out, annotation("_Out_opt_")] DBCOUNTITEM * pulProgressMax, + [out, annotation("_Out_")] DBASYNCHPHASE * peAsynchPhase, + [out, annotation("_Inout_opt_")] LPOLESTR * ppwszStatusText + ); + + [call_as(GetStatus)] + HRESULT RemoteGetStatus( + [in] HCHAPTER hChapter, + [in] DBASYNCHOP eOperation, + [in,out,unique] DBCOUNTITEM * pulProgress, + [in,out,unique] DBCOUNTITEM * pulProgressMax, + [in,out,unique] DBASYNCHPHASE * peAsynchPhase, + [in,out,unique] LPOLESTR * ppwszStatusText, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/atacct.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/atacct.h new file mode 100644 index 0000000000000000000000000000000000000000..9a15929012155aa014cac1c94b919fd36455ea11 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/atacct.h @@ -0,0 +1,52 @@ + +/*++ + +Copyright (c) 2002 Microsoft Corporation + +Module Name: + + atacct.h + +Abstract: + + Prototypes for the AT Service Account API. + +Revision History: + +--*/ + +#ifndef _ATACCT_H_ +#define _ATACCT_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +STDAPI +GetNetScheduleAccountInformation( + IN LPCWSTR pwszServerName, + OUT DWORD ccAccount, + OUT _Out_writes_(ccAccount) WCHAR wszAccount[] + ); + +STDAPI +SetNetScheduleAccountInformation( + IN LPCWSTR pwszServerName, + IN LPCWSTR pwszAccount, + IN LPCWSTR pwszPassword + ); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _ATACCT_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/atlthunk.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/atlthunk.h new file mode 100644 index 0000000000000000000000000000000000000000..67558895b767e9e50caf3edd4e10fcca35147c72 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/atlthunk.h @@ -0,0 +1,58 @@ +/*++ + +Module Name: + + atlthunk.h + +Abstract: + + ATL thunks without writable executable memory. + +Author: + + Jay Krell (jaykrell) 26-Apr-2013 + +--*/ + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef _MANAGED +struct AtlThunkData_t { }; +#else +struct AtlThunkData_t; // opaque +typedef struct AtlThunkData_t AtlThunkData_t; +#endif + +AtlThunkData_t* +__stdcall +AtlThunk_AllocateData( + void + ); + +void +__stdcall +AtlThunk_InitData( + AtlThunkData_t* Thunk, + void* /*WNDPROC*/ Proc, + size_t FirstParameter + ); + +WNDPROC +__stdcall +AtlThunk_DataToCode( + AtlThunkData_t* + ); + +void +__stdcall +AtlThunk_FreeData( + AtlThunkData_t* Thunk + ); + +#ifdef __cplusplus +} /* extern "C" */ +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audevcod.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audevcod.h new file mode 100644 index 0000000000000000000000000000000000000000..12476c5b840dcef5d65e3c98e6e6ddc8dc457a6d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audevcod.h @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// File: AudEvCod.h +// +// Desc: List of Audio device error event codes and the expected params. +// +// Copyright (c) 1999 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + + +#ifndef __AUDEVCOD__ +#define __AUDEVCOD__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#define EC_SND_DEVICE_ERROR_BASE 0x0200 + +typedef enum _tagSND_DEVICE_ERROR { + + SNDDEV_ERROR_Open=1, + SNDDEV_ERROR_Close=2, + SNDDEV_ERROR_GetCaps=3, + SNDDEV_ERROR_PrepareHeader=4, + SNDDEV_ERROR_UnprepareHeader=5, + SNDDEV_ERROR_Reset=6, + SNDDEV_ERROR_Restart=7, + SNDDEV_ERROR_GetPosition=8, + SNDDEV_ERROR_Write=9, + SNDDEV_ERROR_Pause=10, + SNDDEV_ERROR_Stop=11, + SNDDEV_ERROR_Start=12, + SNDDEV_ERROR_AddBuffer=13, + SNDDEV_ERROR_Query=14, + +} SNDDEV_ERR; + + +// Sound device error event codes +// ============================== +// +// All audio device error events are always passed on to the application, and are +// never processed by the filter graph + + +#define EC_SNDDEV_IN_ERROR (EC_SND_DEVICE_ERROR_BASE + 0x00) +#define EC_SNDDEV_OUT_ERROR (EC_SND_DEVICE_ERROR_BASE + 0x01) +// Parameters: ( DWORD, DWORD) +// lParam1 is an enum SND_DEVICE_ERROR which notifies the app how the device was +// being accessed when the failure occurred. +// +// lParam2 is the error returned from the sound device call. +// + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __AUDEVCOD__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioclientactivationparams.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioclientactivationparams.h new file mode 100644 index 0000000000000000000000000000000000000000..9b89c2ebc532db61df40eea4933f5a431a4a54ba --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioclientactivationparams.h @@ -0,0 +1,118 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __audioclientactivationparams_h__ +#define __audioclientactivationparams_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +/* header files for imported files */ +#include "wtypes.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_audioclientactivationparams_0000_0000 */ +/* [local] */ + +#include +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#if (NTDDI_VERSION >= NTDDI_WIN10_FE) +// Identifier for virtual audio device that supports audio loopback based on +// a process ID instead of the device interface path of a physical audio device. +// Use this for the deviceInterfacePath parameter of ActivateAudioInterfaceAsync when +// AUDIOCLIENT_ACTIVATION_PARAMS::ActivationType is set to AUDIOCLIENT_ACTIVATION_TYPE_PROCESS_LOOPBACK. +#define VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK L"VAD\\Process_Loopback" +typedef /* [v1_enum] */ +enum PROCESS_LOOPBACK_MODE + { + PROCESS_LOOPBACK_MODE_INCLUDE_TARGET_PROCESS_TREE = 0, + PROCESS_LOOPBACK_MODE_EXCLUDE_TARGET_PROCESS_TREE = 1 + } PROCESS_LOOPBACK_MODE; + +// This structure is used when creating an IAudioClient using ActivateAudioInterfaceAsync +// for process-based loopback capture. The captured audio either includes or excludes audio rendered +// by the specified process and its child processes, based on how the ProcessLoopbackMode field is set. +typedef struct AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS + { + DWORD TargetProcessId; + PROCESS_LOOPBACK_MODE ProcessLoopbackMode; + } AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS; + +typedef /* [v1_enum] */ +enum AUDIOCLIENT_ACTIVATION_TYPE + { + AUDIOCLIENT_ACTIVATION_TYPE_DEFAULT = 0, + AUDIOCLIENT_ACTIVATION_TYPE_PROCESS_LOOPBACK = 1 + } AUDIOCLIENT_ACTIVATION_TYPE; + +// Activation parameter structure that can be used with ActivateAudioInterfaceAsync +// to create an IAudioClient. +typedef struct AUDIOCLIENT_ACTIVATION_PARAMS + { + AUDIOCLIENT_ACTIVATION_TYPE ActivationType; + union + { + AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS ProcessLoopbackParams; + } DUMMYUNIONNAME; + } AUDIOCLIENT_ACTIVATION_PARAMS; + +#endif // (WINVER >= NTDDI_WIN10_FE) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_audioclientactivationparams_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioclientactivationparams_0000_0000_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioclientactivationparams.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioclientactivationparams.idl new file mode 100644 index 0000000000000000000000000000000000000000..8a69a55cef66cf88a17ad28082234e775f423a76 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioclientactivationparams.idl @@ -0,0 +1,55 @@ +// +// Copyright (C) Microsoft Corporation. All rights reserved. +// +cpp_quote("#include ") +import "wtypes.idl"; + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_FE) ") +cpp_quote("// Identifier for virtual audio device that supports audio loopback based on") +cpp_quote("// a process ID instead of the device interface path of a physical audio device.") +cpp_quote("// Use this for the deviceInterfacePath parameter of ActivateAudioInterfaceAsync when") +cpp_quote("// AUDIOCLIENT_ACTIVATION_PARAMS::ActivationType is set to AUDIOCLIENT_ACTIVATION_TYPE_PROCESS_LOOPBACK.") +cpp_quote("#define VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK L\"VAD\\\\Process_Loopback\"") + +typedef [v1_enum] enum PROCESS_LOOPBACK_MODE +{ + PROCESS_LOOPBACK_MODE_INCLUDE_TARGET_PROCESS_TREE = 0, + PROCESS_LOOPBACK_MODE_EXCLUDE_TARGET_PROCESS_TREE = 1 +} PROCESS_LOOPBACK_MODE; + +cpp_quote("// This structure is used when creating an IAudioClient using ActivateAudioInterfaceAsync") +cpp_quote("// for process-based loopback capture. The captured audio either includes or excludes audio rendered") +cpp_quote("// by the specified process and its child processes, based on how the ProcessLoopbackMode field is set.") + +typedef struct AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS +{ + DWORD TargetProcessId; + PROCESS_LOOPBACK_MODE ProcessLoopbackMode; +} AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS; + +typedef [v1_enum] enum AUDIOCLIENT_ACTIVATION_TYPE +{ + AUDIOCLIENT_ACTIVATION_TYPE_DEFAULT = 0, + AUDIOCLIENT_ACTIVATION_TYPE_PROCESS_LOOPBACK = 1 +} AUDIOCLIENT_ACTIVATION_TYPE; + +cpp_quote("// Activation parameter structure that can be used with ActivateAudioInterfaceAsync") +cpp_quote("// to create an IAudioClient.") + +typedef struct AUDIOCLIENT_ACTIVATION_PARAMS +{ + AUDIOCLIENT_ACTIVATION_TYPE ActivationType; + union + { + // Used when ActivationType is AUDIOCLIENT_ACTIVATION_TYPE_PROCESS_LOOPBACK. + AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS ProcessLoopbackParams; + } DUMMYUNIONNAME; +} AUDIOCLIENT_ACTIVATION_PARAMS; + +cpp_quote("#endif // (WINVER >= NTDDI_WIN10_FE) ") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioendpoints.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioendpoints.h new file mode 100644 index 0000000000000000000000000000000000000000..dd605391e111835c7afbe5de2a4a3cb1988e513c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioendpoints.h @@ -0,0 +1,183 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __audioendpoints_h__ +#define __audioendpoints_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAudioEndpointFormatControl_FWD_DEFINED__ +#define __IAudioEndpointFormatControl_FWD_DEFINED__ +typedef interface IAudioEndpointFormatControl IAudioEndpointFormatControl; + +#endif /* __IAudioEndpointFormatControl_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_audioendpoints_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define ENDPOINT_FORMAT_RESET_MIX_ONLY 0x00000001 + + +extern RPC_IF_HANDLE __MIDL_itf_audioendpoints_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioendpoints_0000_0000_v0_0_s_ifspec; + +#ifndef __IAudioEndpointFormatControl_INTERFACE_DEFINED__ +#define __IAudioEndpointFormatControl_INTERFACE_DEFINED__ + +/* interface IAudioEndpointFormatControl */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioEndpointFormatControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("784CFD40-9F89-456E-A1A6-873B006A664E") + IAudioEndpointFormatControl : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ResetToDefault( + /* [annotation][in] */ + _In_ DWORD ResetFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointFormatControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointFormatControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointFormatControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointFormatControl * This); + + DECLSPEC_XFGVIRT(IAudioEndpointFormatControl, ResetToDefault) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ResetToDefault )( + IAudioEndpointFormatControl * This, + /* [annotation][in] */ + _In_ DWORD ResetFlags); + + END_INTERFACE + } IAudioEndpointFormatControlVtbl; + + interface IAudioEndpointFormatControl + { + CONST_VTBL struct IAudioEndpointFormatControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointFormatControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointFormatControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointFormatControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointFormatControl_ResetToDefault(This,ResetFlags) \ + ( (This)->lpVtbl -> ResetToDefault(This,ResetFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointFormatControl_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioendpoints_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_audioendpoints_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioendpoints_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioendpoints.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioendpoints.idl new file mode 100644 index 0000000000000000000000000000000000000000..f15493d7a8a4b1345c1d22876c8201e10f6f7321 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioendpoints.idl @@ -0,0 +1,70 @@ +//**@@@*@@@**************************************************** +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//**@@@*@@@**************************************************** + +// +// FileName: AudioEndpoints.idl +// +// Abstract: Audio Endpoint related interfaces +// +// Author: Soccerl +// +// Created: 2009/02/02 +// -------------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl"; +cpp_quote("#define ENDPOINT_FORMAT_RESET_MIX_ONLY 0x00000001") + +// ---------------------------------------------------------------------- +// IAudioEndpointFormatControl +// +// Description: +// +// Interface for resetting the current audio endpoint device format. +// This setting is exposed to the user through the "Sounds" control panel +// and can be read from the endpoint propertystore using +// PKEY_AudioEngine_DeviceFormat +// +[ + object, + local, + uuid(784CFD40-9F89-456E-A1A6-873B006A664E), + nonextensible, + helpstring("IAudioEndpointFormat interface"), + pointer_default(unique) +] +interface IAudioEndpointFormatControl : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Resets the format to the default setting provided by the device manufacturer. + // + // Parameters: + // + // ResetFlags - [in] Allows the application to specify which formats are reset. If + // no flags are set, then this method reevaluates both the endpoint's + // device format and mix format and sets them to their default values. + // + // ENDPOINT_FORMAT_RESET_MIX_ONLY - Only reset the mix format. The endpoint's device + // format will not be reset if this flag is set. + // + // Return values: + // S_OK if successful + // + // + [helpstring("method ResetToDefault")] + HRESULT ResetToDefault([in, annotation("_In_")] DWORD ResetFlags); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioenginebaseapo.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioenginebaseapo.h new file mode 100644 index 0000000000000000000000000000000000000000..1d57d7a5f734fdfb2cd63651973f75d075aabcf8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioenginebaseapo.h @@ -0,0 +1,1621 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __audioenginebaseapo_h__ +#define __audioenginebaseapo_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAudioProcessingObjectRT_FWD_DEFINED__ +#define __IAudioProcessingObjectRT_FWD_DEFINED__ +typedef interface IAudioProcessingObjectRT IAudioProcessingObjectRT; + +#endif /* __IAudioProcessingObjectRT_FWD_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectVBR_FWD_DEFINED__ +#define __IAudioProcessingObjectVBR_FWD_DEFINED__ +typedef interface IAudioProcessingObjectVBR IAudioProcessingObjectVBR; + +#endif /* __IAudioProcessingObjectVBR_FWD_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectConfiguration_FWD_DEFINED__ +#define __IAudioProcessingObjectConfiguration_FWD_DEFINED__ +typedef interface IAudioProcessingObjectConfiguration IAudioProcessingObjectConfiguration; + +#endif /* __IAudioProcessingObjectConfiguration_FWD_DEFINED__ */ + + +#ifndef __IAudioProcessingObject_FWD_DEFINED__ +#define __IAudioProcessingObject_FWD_DEFINED__ +typedef interface IAudioProcessingObject IAudioProcessingObject; + +#endif /* __IAudioProcessingObject_FWD_DEFINED__ */ + + +#ifndef __IAudioDeviceModulesClient_FWD_DEFINED__ +#define __IAudioDeviceModulesClient_FWD_DEFINED__ +typedef interface IAudioDeviceModulesClient IAudioDeviceModulesClient; + +#endif /* __IAudioDeviceModulesClient_FWD_DEFINED__ */ + + +#ifndef __IAudioSystemEffects_FWD_DEFINED__ +#define __IAudioSystemEffects_FWD_DEFINED__ +typedef interface IAudioSystemEffects IAudioSystemEffects; + +#endif /* __IAudioSystemEffects_FWD_DEFINED__ */ + + +#ifndef __IAudioSystemEffects2_FWD_DEFINED__ +#define __IAudioSystemEffects2_FWD_DEFINED__ +typedef interface IAudioSystemEffects2 IAudioSystemEffects2; + +#endif /* __IAudioSystemEffects2_FWD_DEFINED__ */ + + +#ifndef __IAudioSystemEffectsCustomFormats_FWD_DEFINED__ +#define __IAudioSystemEffectsCustomFormats_FWD_DEFINED__ +typedef interface IAudioSystemEffectsCustomFormats IAudioSystemEffectsCustomFormats; + +#endif /* __IAudioSystemEffectsCustomFormats_FWD_DEFINED__ */ + + +#ifndef __IApoAuxiliaryInputConfiguration_FWD_DEFINED__ +#define __IApoAuxiliaryInputConfiguration_FWD_DEFINED__ +typedef interface IApoAuxiliaryInputConfiguration IApoAuxiliaryInputConfiguration; + +#endif /* __IApoAuxiliaryInputConfiguration_FWD_DEFINED__ */ + + +#ifndef __IApoAuxiliaryInputRT_FWD_DEFINED__ +#define __IApoAuxiliaryInputRT_FWD_DEFINED__ +typedef interface IApoAuxiliaryInputRT IApoAuxiliaryInputRT; + +#endif /* __IApoAuxiliaryInputRT_FWD_DEFINED__ */ + + +#ifndef __IApoAcousticEchoCancellation_FWD_DEFINED__ +#define __IApoAcousticEchoCancellation_FWD_DEFINED__ +typedef interface IApoAcousticEchoCancellation IApoAcousticEchoCancellation; + +#endif /* __IApoAcousticEchoCancellation_FWD_DEFINED__ */ + + +#ifndef __IApoAcousticEchoCancellation2_FWD_DEFINED__ +#define __IApoAcousticEchoCancellation2_FWD_DEFINED__ +typedef interface IApoAcousticEchoCancellation2 IApoAcousticEchoCancellation2; + +#endif /* __IApoAcousticEchoCancellation2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "mmdeviceapi.h" +#include "audiomediatype.h" +#include "AudioAPOTypes.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_audioenginebaseapo_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// +// Error Codes for APO +// The facility code for APOs is 0x87D. +// +// The object has already been initialized. +#define APOERR_ALREADY_INITIALIZED _HRESULT_TYPEDEF_(0x887D0001) +// Object/structure is not initialized. +#define APOERR_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x887D0002) +// a pin supporting the format cannot be found. +#define APOERR_FORMAT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x887D0003) +// Invalid CLSID in an APO Initialization structure +#define APOERR_INVALID_APO_CLSID _HRESULT_TYPEDEF_(0x887D0004) +// Buffers overlap on an APO that does not accept in-place buffers. +#define APOERR_BUFFERS_OVERLAP _HRESULT_TYPEDEF_(0x887D0005) +// APO is already in an unlocked state +#define APOERR_ALREADY_UNLOCKED _HRESULT_TYPEDEF_(0x887D0006) +// number of input or output connections not valid on this APO +#define APOERR_NUM_CONNECTIONS_INVALID _HRESULT_TYPEDEF_(0x887D0007) +// Output maxFrameCount not large enough. +#define APOERR_INVALID_OUTPUT_MAXFRAMECOUNT _HRESULT_TYPEDEF_(0x887D0008) +// Invalid connection format for this operation +#define APOERR_INVALID_CONNECTION_FORMAT _HRESULT_TYPEDEF_(0x887D0009) +// APO is locked ready to process and can not be changed +#define APOERR_APO_LOCKED _HRESULT_TYPEDEF_(0x887D000A) +// Invalid coefficient count +#define APOERR_INVALID_COEFFCOUNT _HRESULT_TYPEDEF_(0x887D000B) +// Invalid coefficient +#define APOERR_INVALID_COEFFICIENT _HRESULT_TYPEDEF_(0x887D000C) +// an invalid curve parameter was specified +#define APOERR_INVALID_CURVE_PARAM _HRESULT_TYPEDEF_(0x887D000D) +// Invalid auxiliary input index +#define APOERR_INVALID_INPUTID _HRESULT_TYPEDEF_(0x887D000E) +// +// Signatures for data structures. +// +#define APO_CONNECTION_DESCRIPTOR_SIGNATURE 'ACDS' +#define APO_CONNECTION_PROPERTY_SIGNATURE 'ACPS' +#define APO_CONNECTION_PROPERTY_V2_SIGNATURE 'ACP2' + +// Min and max framerates for the engine +#define AUDIO_MIN_FRAMERATE 10.0 // Minimum frame rate for APOs +#define AUDIO_MAX_FRAMERATE 384000.0 // Maximum frame rate for APOs + +// Min and max # of channels (samples per frame) for the APOs +#define AUDIO_MIN_CHANNELS 1 // Current minimum number of channels for APOs +#define AUDIO_MAX_CHANNELS 4096 // Current maximum number of channels for APOs + +//----------------------------------------------------------------------------- + +typedef +enum APO_CONNECTION_BUFFER_TYPE + { + APO_CONNECTION_BUFFER_TYPE_ALLOCATED = 0, + APO_CONNECTION_BUFFER_TYPE_EXTERNAL = 1, + APO_CONNECTION_BUFFER_TYPE_DEPENDANT = 2 + } APO_CONNECTION_BUFFER_TYPE; + +typedef struct APO_CONNECTION_DESCRIPTOR + { + APO_CONNECTION_BUFFER_TYPE Type; + UINT_PTR pBuffer; + UINT32 u32MaxFrameCount; + IAudioMediaType *pFormat; + UINT32 u32Signature; + } APO_CONNECTION_DESCRIPTOR; + +typedef +enum APO_FLAG + { + APO_FLAG_NONE = 0, + APO_FLAG_INPLACE = 0x1, + APO_FLAG_SAMPLESPERFRAME_MUST_MATCH = 0x2, + APO_FLAG_FRAMESPERSECOND_MUST_MATCH = 0x4, + APO_FLAG_BITSPERSAMPLE_MUST_MATCH = 0x8, + APO_FLAG_MIXER = 0x10, + APO_FLAG_DEFAULT = ( ( APO_FLAG_SAMPLESPERFRAME_MUST_MATCH | APO_FLAG_FRAMESPERSECOND_MUST_MATCH ) | APO_FLAG_BITSPERSAMPLE_MUST_MATCH ) + } APO_FLAG; + +typedef struct APO_REG_PROPERTIES + { + CLSID clsid; + APO_FLAG Flags; + WCHAR szFriendlyName[ 256 ]; + WCHAR szCopyrightInfo[ 256 ]; + UINT32 u32MajorVersion; + UINT32 u32MinorVersion; + UINT32 u32MinInputConnections; + UINT32 u32MaxInputConnections; + UINT32 u32MinOutputConnections; + UINT32 u32MaxOutputConnections; + UINT32 u32MaxInstances; + UINT32 u32NumAPOInterfaces; + /* [size_is] */ IID iidAPOInterfaceList[ 1 ]; + } APO_REG_PROPERTIES; + +typedef struct APO_REG_PROPERTIES *PAPO_REG_PROPERTIES; + +typedef struct APOInitBaseStruct + { + UINT32 cbSize; + CLSID clsid; + } APOInitBaseStruct; + +typedef +enum AUDIO_FLOW_TYPE + { + AUDIO_FLOW_PULL = 0, + AUDIO_FLOW_PUSH = ( AUDIO_FLOW_PULL + 1 ) + } AUDIO_FLOW_TYPE; + +typedef +enum EAudioConstriction + { + eAudioConstrictionOff = 0, + eAudioConstriction48_16 = ( eAudioConstrictionOff + 1 ) , + eAudioConstriction44_16 = ( eAudioConstriction48_16 + 1 ) , + eAudioConstriction14_14 = ( eAudioConstriction44_16 + 1 ) , + eAudioConstrictionMute = ( eAudioConstriction14_14 + 1 ) + } EAudioConstriction; + + + +extern RPC_IF_HANDLE __MIDL_itf_audioenginebaseapo_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioenginebaseapo_0000_0000_v0_0_s_ifspec; + +#ifndef __IAudioProcessingObjectRT_INTERFACE_DEFINED__ +#define __IAudioProcessingObjectRT_INTERFACE_DEFINED__ + +/* interface IAudioProcessingObjectRT */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioProcessingObjectRT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9E1D6A6D-DDBC-4E95-A4C7-AD64BA37846C") + IAudioProcessingObjectRT : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE APOProcess( + /* [annotation][in] */ + _In_ UINT32 u32NumInputConnections, + /* [annotation][in] */ + _In_ APO_CONNECTION_PROPERTY **ppInputConnections, + /* [annotation][in] */ + _In_ UINT32 u32NumOutputConnections, + /* [annotation][out][in] */ + _Inout_ APO_CONNECTION_PROPERTY **ppOutputConnections) = 0; + + virtual UINT32 STDMETHODCALLTYPE CalcInputFrames( + /* [in] */ UINT32 u32OutputFrameCount) = 0; + + virtual UINT32 STDMETHODCALLTYPE CalcOutputFrames( + /* [annotation][in] */ + _In_ UINT32 u32InputFrameCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioProcessingObjectRTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioProcessingObjectRT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioProcessingObjectRT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioProcessingObjectRT * This); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectRT, APOProcess) + void ( STDMETHODCALLTYPE *APOProcess )( + IAudioProcessingObjectRT * This, + /* [annotation][in] */ + _In_ UINT32 u32NumInputConnections, + /* [annotation][in] */ + _In_ APO_CONNECTION_PROPERTY **ppInputConnections, + /* [annotation][in] */ + _In_ UINT32 u32NumOutputConnections, + /* [annotation][out][in] */ + _Inout_ APO_CONNECTION_PROPERTY **ppOutputConnections); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectRT, CalcInputFrames) + UINT32 ( STDMETHODCALLTYPE *CalcInputFrames )( + IAudioProcessingObjectRT * This, + /* [in] */ UINT32 u32OutputFrameCount); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectRT, CalcOutputFrames) + UINT32 ( STDMETHODCALLTYPE *CalcOutputFrames )( + IAudioProcessingObjectRT * This, + /* [annotation][in] */ + _In_ UINT32 u32InputFrameCount); + + END_INTERFACE + } IAudioProcessingObjectRTVtbl; + + interface IAudioProcessingObjectRT + { + CONST_VTBL struct IAudioProcessingObjectRTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioProcessingObjectRT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioProcessingObjectRT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioProcessingObjectRT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioProcessingObjectRT_APOProcess(This,u32NumInputConnections,ppInputConnections,u32NumOutputConnections,ppOutputConnections) \ + ( (This)->lpVtbl -> APOProcess(This,u32NumInputConnections,ppInputConnections,u32NumOutputConnections,ppOutputConnections) ) + +#define IAudioProcessingObjectRT_CalcInputFrames(This,u32OutputFrameCount) \ + ( (This)->lpVtbl -> CalcInputFrames(This,u32OutputFrameCount) ) + +#define IAudioProcessingObjectRT_CalcOutputFrames(This,u32InputFrameCount) \ + ( (This)->lpVtbl -> CalcOutputFrames(This,u32InputFrameCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioProcessingObjectRT_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectVBR_INTERFACE_DEFINED__ +#define __IAudioProcessingObjectVBR_INTERFACE_DEFINED__ + +/* interface IAudioProcessingObjectVBR */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioProcessingObjectVBR; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7ba1db8f-78ad-49cd-9591-f79d80a17c81") + IAudioProcessingObjectVBR : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CalcMaxInputFrames( + /* [in] */ UINT32 u32MaxOutputFrameCount, + /* [out] */ __RPC__out UINT32 *pu32InputFrameCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE CalcMaxOutputFrames( + /* [in] */ UINT32 u32MaxInputFrameCount, + /* [out] */ __RPC__out UINT32 *pu32OutputFrameCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioProcessingObjectVBRVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAudioProcessingObjectVBR * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAudioProcessingObjectVBR * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAudioProcessingObjectVBR * This); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectVBR, CalcMaxInputFrames) + HRESULT ( STDMETHODCALLTYPE *CalcMaxInputFrames )( + __RPC__in IAudioProcessingObjectVBR * This, + /* [in] */ UINT32 u32MaxOutputFrameCount, + /* [out] */ __RPC__out UINT32 *pu32InputFrameCount); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectVBR, CalcMaxOutputFrames) + HRESULT ( STDMETHODCALLTYPE *CalcMaxOutputFrames )( + __RPC__in IAudioProcessingObjectVBR * This, + /* [in] */ UINT32 u32MaxInputFrameCount, + /* [out] */ __RPC__out UINT32 *pu32OutputFrameCount); + + END_INTERFACE + } IAudioProcessingObjectVBRVtbl; + + interface IAudioProcessingObjectVBR + { + CONST_VTBL struct IAudioProcessingObjectVBRVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioProcessingObjectVBR_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioProcessingObjectVBR_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioProcessingObjectVBR_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioProcessingObjectVBR_CalcMaxInputFrames(This,u32MaxOutputFrameCount,pu32InputFrameCount) \ + ( (This)->lpVtbl -> CalcMaxInputFrames(This,u32MaxOutputFrameCount,pu32InputFrameCount) ) + +#define IAudioProcessingObjectVBR_CalcMaxOutputFrames(This,u32MaxInputFrameCount,pu32OutputFrameCount) \ + ( (This)->lpVtbl -> CalcMaxOutputFrames(This,u32MaxInputFrameCount,pu32OutputFrameCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioProcessingObjectVBR_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectConfiguration_INTERFACE_DEFINED__ +#define __IAudioProcessingObjectConfiguration_INTERFACE_DEFINED__ + +/* interface IAudioProcessingObjectConfiguration */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioProcessingObjectConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0E5ED805-ABA6-49c3-8F9A-2B8C889C4FA8") + IAudioProcessingObjectConfiguration : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE LockForProcess( + /* [annotation][in] */ + _In_ UINT32 u32NumInputConnections, + /* [annotation][in] */ + _In_ APO_CONNECTION_DESCRIPTOR **ppInputConnections, + /* [annotation][in] */ + _In_ UINT32 u32NumOutputConnections, + /* [annotation][in] */ + _In_ APO_CONNECTION_DESCRIPTOR **ppOutputConnections) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnlockForProcess( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioProcessingObjectConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioProcessingObjectConfiguration * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioProcessingObjectConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioProcessingObjectConfiguration * This); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectConfiguration, LockForProcess) + HRESULT ( STDMETHODCALLTYPE *LockForProcess )( + IAudioProcessingObjectConfiguration * This, + /* [annotation][in] */ + _In_ UINT32 u32NumInputConnections, + /* [annotation][in] */ + _In_ APO_CONNECTION_DESCRIPTOR **ppInputConnections, + /* [annotation][in] */ + _In_ UINT32 u32NumOutputConnections, + /* [annotation][in] */ + _In_ APO_CONNECTION_DESCRIPTOR **ppOutputConnections); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectConfiguration, UnlockForProcess) + HRESULT ( STDMETHODCALLTYPE *UnlockForProcess )( + IAudioProcessingObjectConfiguration * This); + + END_INTERFACE + } IAudioProcessingObjectConfigurationVtbl; + + interface IAudioProcessingObjectConfiguration + { + CONST_VTBL struct IAudioProcessingObjectConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioProcessingObjectConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioProcessingObjectConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioProcessingObjectConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioProcessingObjectConfiguration_LockForProcess(This,u32NumInputConnections,ppInputConnections,u32NumOutputConnections,ppOutputConnections) \ + ( (This)->lpVtbl -> LockForProcess(This,u32NumInputConnections,ppInputConnections,u32NumOutputConnections,ppOutputConnections) ) + +#define IAudioProcessingObjectConfiguration_UnlockForProcess(This) \ + ( (This)->lpVtbl -> UnlockForProcess(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioProcessingObjectConfiguration_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioProcessingObject_INTERFACE_DEFINED__ +#define __IAudioProcessingObject_INTERFACE_DEFINED__ + +/* interface IAudioProcessingObject */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioProcessingObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FD7F2B29-24D0-4b5c-B177-592C39F9CA10") + IAudioProcessingObject : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLatency( + /* [out] */ __RPC__out HNSTIME *pTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRegistrationProperties( + /* [out] */ __RPC__deref_out_opt APO_REG_PROPERTIES **ppRegProps) = 0; + + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ UINT32 cbDataSize, + /* [size_is][in] */ __RPC__in_ecount_full(cbDataSize) BYTE *pbyData) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsInputFormatSupported( + /* [unique][in] */ __RPC__in_opt IAudioMediaType *pOppositeFormat, + /* [in] */ __RPC__in_opt IAudioMediaType *pRequestedInputFormat, + /* [out] */ __RPC__deref_out_opt IAudioMediaType **ppSupportedInputFormat) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsOutputFormatSupported( + /* [unique][in] */ __RPC__in_opt IAudioMediaType *pOppositeFormat, + /* [in] */ __RPC__in_opt IAudioMediaType *pRequestedOutputFormat, + /* [out] */ __RPC__deref_out_opt IAudioMediaType **ppSupportedOutputFormat) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInputChannelCount( + /* [out] */ __RPC__out UINT32 *pu32ChannelCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioProcessingObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAudioProcessingObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAudioProcessingObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAudioProcessingObject * This); + + DECLSPEC_XFGVIRT(IAudioProcessingObject, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IAudioProcessingObject * This); + + DECLSPEC_XFGVIRT(IAudioProcessingObject, GetLatency) + HRESULT ( STDMETHODCALLTYPE *GetLatency )( + __RPC__in IAudioProcessingObject * This, + /* [out] */ __RPC__out HNSTIME *pTime); + + DECLSPEC_XFGVIRT(IAudioProcessingObject, GetRegistrationProperties) + HRESULT ( STDMETHODCALLTYPE *GetRegistrationProperties )( + __RPC__in IAudioProcessingObject * This, + /* [out] */ __RPC__deref_out_opt APO_REG_PROPERTIES **ppRegProps); + + DECLSPEC_XFGVIRT(IAudioProcessingObject, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IAudioProcessingObject * This, + /* [in] */ UINT32 cbDataSize, + /* [size_is][in] */ __RPC__in_ecount_full(cbDataSize) BYTE *pbyData); + + DECLSPEC_XFGVIRT(IAudioProcessingObject, IsInputFormatSupported) + HRESULT ( STDMETHODCALLTYPE *IsInputFormatSupported )( + __RPC__in IAudioProcessingObject * This, + /* [unique][in] */ __RPC__in_opt IAudioMediaType *pOppositeFormat, + /* [in] */ __RPC__in_opt IAudioMediaType *pRequestedInputFormat, + /* [out] */ __RPC__deref_out_opt IAudioMediaType **ppSupportedInputFormat); + + DECLSPEC_XFGVIRT(IAudioProcessingObject, IsOutputFormatSupported) + HRESULT ( STDMETHODCALLTYPE *IsOutputFormatSupported )( + __RPC__in IAudioProcessingObject * This, + /* [unique][in] */ __RPC__in_opt IAudioMediaType *pOppositeFormat, + /* [in] */ __RPC__in_opt IAudioMediaType *pRequestedOutputFormat, + /* [out] */ __RPC__deref_out_opt IAudioMediaType **ppSupportedOutputFormat); + + DECLSPEC_XFGVIRT(IAudioProcessingObject, GetInputChannelCount) + HRESULT ( STDMETHODCALLTYPE *GetInputChannelCount )( + __RPC__in IAudioProcessingObject * This, + /* [out] */ __RPC__out UINT32 *pu32ChannelCount); + + END_INTERFACE + } IAudioProcessingObjectVtbl; + + interface IAudioProcessingObject + { + CONST_VTBL struct IAudioProcessingObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioProcessingObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioProcessingObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioProcessingObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioProcessingObject_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IAudioProcessingObject_GetLatency(This,pTime) \ + ( (This)->lpVtbl -> GetLatency(This,pTime) ) + +#define IAudioProcessingObject_GetRegistrationProperties(This,ppRegProps) \ + ( (This)->lpVtbl -> GetRegistrationProperties(This,ppRegProps) ) + +#define IAudioProcessingObject_Initialize(This,cbDataSize,pbyData) \ + ( (This)->lpVtbl -> Initialize(This,cbDataSize,pbyData) ) + +#define IAudioProcessingObject_IsInputFormatSupported(This,pOppositeFormat,pRequestedInputFormat,ppSupportedInputFormat) \ + ( (This)->lpVtbl -> IsInputFormatSupported(This,pOppositeFormat,pRequestedInputFormat,ppSupportedInputFormat) ) + +#define IAudioProcessingObject_IsOutputFormatSupported(This,pOppositeFormat,pRequestedOutputFormat,ppSupportedOutputFormat) \ + ( (This)->lpVtbl -> IsOutputFormatSupported(This,pOppositeFormat,pRequestedOutputFormat,ppSupportedOutputFormat) ) + +#define IAudioProcessingObject_GetInputChannelCount(This,pu32ChannelCount) \ + ( (This)->lpVtbl -> GetInputChannelCount(This,pu32ChannelCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioProcessingObject_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioDeviceModulesClient_INTERFACE_DEFINED__ +#define __IAudioDeviceModulesClient_INTERFACE_DEFINED__ + +/* interface IAudioDeviceModulesClient */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioDeviceModulesClient; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("98F37DAC-D0B6-49F5-896A-AA4D169A4C48") + IAudioDeviceModulesClient : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetAudioDeviceModulesManager( + /* [annotation][in] */ + _In_ IUnknown *pAudioDeviceModulesManager) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioDeviceModulesClientVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioDeviceModulesClient * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioDeviceModulesClient * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioDeviceModulesClient * This); + + DECLSPEC_XFGVIRT(IAudioDeviceModulesClient, SetAudioDeviceModulesManager) + HRESULT ( STDMETHODCALLTYPE *SetAudioDeviceModulesManager )( + IAudioDeviceModulesClient * This, + /* [annotation][in] */ + _In_ IUnknown *pAudioDeviceModulesManager); + + END_INTERFACE + } IAudioDeviceModulesClientVtbl; + + interface IAudioDeviceModulesClient + { + CONST_VTBL struct IAudioDeviceModulesClientVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioDeviceModulesClient_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioDeviceModulesClient_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioDeviceModulesClient_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioDeviceModulesClient_SetAudioDeviceModulesManager(This,pAudioDeviceModulesManager) \ + ( (This)->lpVtbl -> SetAudioDeviceModulesManager(This,pAudioDeviceModulesManager) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioDeviceModulesClient_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioenginebaseapo_0000_0005 */ +/* [local] */ + +// +// APO registration functions +// +typedef HRESULT (WINAPI FNAPONOTIFICATIONCALLBACK)(APO_REG_PROPERTIES* pProperties, VOID* pvRefData); +extern HRESULT WINAPI RegisterAPO(APO_REG_PROPERTIES const* pProperties); +extern HRESULT WINAPI UnregisterAPO(REFCLSID clsid); +extern HRESULT WINAPI RegisterAPONotification(HANDLE hEvent); +extern HRESULT WINAPI UnregisterAPONotification(HANDLE hEvent); +extern HRESULT WINAPI EnumerateAPOs(FNAPONOTIFICATIONCALLBACK pfnCallback, PVOID pvRefData); +extern HRESULT WINAPI GetAPOProperties(REFCLSID clsid, APO_REG_PROPERTIES* pProperties); + + +extern RPC_IF_HANDLE __MIDL_itf_audioenginebaseapo_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioenginebaseapo_0000_0005_v0_0_s_ifspec; + +#ifndef __IAudioSystemEffects_INTERFACE_DEFINED__ +#define __IAudioSystemEffects_INTERFACE_DEFINED__ + +/* interface IAudioSystemEffects */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IAudioSystemEffects; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5FA00F27-ADD6-499a-8A9D-6B98521FA75B") + IAudioSystemEffects : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct IAudioSystemEffectsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAudioSystemEffects * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAudioSystemEffects * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAudioSystemEffects * This); + + END_INTERFACE + } IAudioSystemEffectsVtbl; + + interface IAudioSystemEffects + { + CONST_VTBL struct IAudioSystemEffectsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSystemEffects_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSystemEffects_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSystemEffects_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSystemEffects_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioSystemEffects2_INTERFACE_DEFINED__ +#define __IAudioSystemEffects2_INTERFACE_DEFINED__ + +/* interface IAudioSystemEffects2 */ +/* [object][uuid][local] */ + + +EXTERN_C const IID IID_IAudioSystemEffects2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BAFE99D2-7436-44CE-9E0E-4D89AFBFFF56") + IAudioSystemEffects2 : public IAudioSystemEffects + { + public: + virtual HRESULT STDMETHODCALLTYPE GetEffectsList( + /* [annotation][out] */ + _Outptr_result_buffer_maybenull_(*pcEffects) LPGUID *ppEffectsIds, + /* [annotation][out] */ + _Out_ UINT *pcEffects, + /* [annotation][in] */ + _In_ HANDLE Event) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSystemEffects2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioSystemEffects2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioSystemEffects2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioSystemEffects2 * This); + + DECLSPEC_XFGVIRT(IAudioSystemEffects2, GetEffectsList) + HRESULT ( STDMETHODCALLTYPE *GetEffectsList )( + IAudioSystemEffects2 * This, + /* [annotation][out] */ + _Outptr_result_buffer_maybenull_(*pcEffects) LPGUID *ppEffectsIds, + /* [annotation][out] */ + _Out_ UINT *pcEffects, + /* [annotation][in] */ + _In_ HANDLE Event); + + END_INTERFACE + } IAudioSystemEffects2Vtbl; + + interface IAudioSystemEffects2 + { + CONST_VTBL struct IAudioSystemEffects2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSystemEffects2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSystemEffects2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSystemEffects2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + + +#define IAudioSystemEffects2_GetEffectsList(This,ppEffectsIds,pcEffects,Event) \ + ( (This)->lpVtbl -> GetEffectsList(This,ppEffectsIds,pcEffects,Event) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSystemEffects2_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioSystemEffectsCustomFormats_INTERFACE_DEFINED__ +#define __IAudioSystemEffectsCustomFormats_INTERFACE_DEFINED__ + +/* interface IAudioSystemEffectsCustomFormats */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IAudioSystemEffectsCustomFormats; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B1176E34-BB7F-4f05-BEBD-1B18A534E097") + IAudioSystemEffectsCustomFormats : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFormatCount( + /* [out] */ __RPC__out UINT *pcFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFormat( + /* [in] */ UINT nFormat, + /* [out] */ __RPC__deref_out_opt IAudioMediaType **ppFormat) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFormatRepresentation( + /* [in] */ UINT nFormat, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwstrFormatRep) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSystemEffectsCustomFormatsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAudioSystemEffectsCustomFormats * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAudioSystemEffectsCustomFormats * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAudioSystemEffectsCustomFormats * This); + + DECLSPEC_XFGVIRT(IAudioSystemEffectsCustomFormats, GetFormatCount) + HRESULT ( STDMETHODCALLTYPE *GetFormatCount )( + __RPC__in IAudioSystemEffectsCustomFormats * This, + /* [out] */ __RPC__out UINT *pcFormats); + + DECLSPEC_XFGVIRT(IAudioSystemEffectsCustomFormats, GetFormat) + HRESULT ( STDMETHODCALLTYPE *GetFormat )( + __RPC__in IAudioSystemEffectsCustomFormats * This, + /* [in] */ UINT nFormat, + /* [out] */ __RPC__deref_out_opt IAudioMediaType **ppFormat); + + DECLSPEC_XFGVIRT(IAudioSystemEffectsCustomFormats, GetFormatRepresentation) + HRESULT ( STDMETHODCALLTYPE *GetFormatRepresentation )( + __RPC__in IAudioSystemEffectsCustomFormats * This, + /* [in] */ UINT nFormat, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwstrFormatRep); + + END_INTERFACE + } IAudioSystemEffectsCustomFormatsVtbl; + + interface IAudioSystemEffectsCustomFormats + { + CONST_VTBL struct IAudioSystemEffectsCustomFormatsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSystemEffectsCustomFormats_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSystemEffectsCustomFormats_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSystemEffectsCustomFormats_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioSystemEffectsCustomFormats_GetFormatCount(This,pcFormats) \ + ( (This)->lpVtbl -> GetFormatCount(This,pcFormats) ) + +#define IAudioSystemEffectsCustomFormats_GetFormat(This,nFormat,ppFormat) \ + ( (This)->lpVtbl -> GetFormat(This,nFormat,ppFormat) ) + +#define IAudioSystemEffectsCustomFormats_GetFormatRepresentation(This,nFormat,ppwstrFormatRep) \ + ( (This)->lpVtbl -> GetFormatRepresentation(This,nFormat,ppwstrFormatRep) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSystemEffectsCustomFormats_INTERFACE_DEFINED__ */ + + +#ifndef __IApoAuxiliaryInputConfiguration_INTERFACE_DEFINED__ +#define __IApoAuxiliaryInputConfiguration_INTERFACE_DEFINED__ + +/* interface IApoAuxiliaryInputConfiguration */ +/* [local][uuid][object] */ + + +EXTERN_C const IID IID_IApoAuxiliaryInputConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4CEB0AAB-FA19-48ED-A857-87771AE1B768") + IApoAuxiliaryInputConfiguration : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddAuxiliaryInput( + /* [in] */ DWORD dwInputId, + /* [in] */ UINT32 cbDataSize, + /* [size_is][in] */ BYTE *pbyData, + /* [annotation][in] */ + _In_ APO_CONNECTION_DESCRIPTOR *pInputConnection) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveAuxiliaryInput( + /* [in] */ DWORD dwInputId) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsInputFormatSupported( + /* [in] */ IAudioMediaType *pRequestedInputFormat, + /* [out] */ IAudioMediaType **ppSupportedInputFormat) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IApoAuxiliaryInputConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IApoAuxiliaryInputConfiguration * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IApoAuxiliaryInputConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IApoAuxiliaryInputConfiguration * This); + + DECLSPEC_XFGVIRT(IApoAuxiliaryInputConfiguration, AddAuxiliaryInput) + HRESULT ( STDMETHODCALLTYPE *AddAuxiliaryInput )( + IApoAuxiliaryInputConfiguration * This, + /* [in] */ DWORD dwInputId, + /* [in] */ UINT32 cbDataSize, + /* [size_is][in] */ BYTE *pbyData, + /* [annotation][in] */ + _In_ APO_CONNECTION_DESCRIPTOR *pInputConnection); + + DECLSPEC_XFGVIRT(IApoAuxiliaryInputConfiguration, RemoveAuxiliaryInput) + HRESULT ( STDMETHODCALLTYPE *RemoveAuxiliaryInput )( + IApoAuxiliaryInputConfiguration * This, + /* [in] */ DWORD dwInputId); + + DECLSPEC_XFGVIRT(IApoAuxiliaryInputConfiguration, IsInputFormatSupported) + HRESULT ( STDMETHODCALLTYPE *IsInputFormatSupported )( + IApoAuxiliaryInputConfiguration * This, + /* [in] */ IAudioMediaType *pRequestedInputFormat, + /* [out] */ IAudioMediaType **ppSupportedInputFormat); + + END_INTERFACE + } IApoAuxiliaryInputConfigurationVtbl; + + interface IApoAuxiliaryInputConfiguration + { + CONST_VTBL struct IApoAuxiliaryInputConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IApoAuxiliaryInputConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IApoAuxiliaryInputConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IApoAuxiliaryInputConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IApoAuxiliaryInputConfiguration_AddAuxiliaryInput(This,dwInputId,cbDataSize,pbyData,pInputConnection) \ + ( (This)->lpVtbl -> AddAuxiliaryInput(This,dwInputId,cbDataSize,pbyData,pInputConnection) ) + +#define IApoAuxiliaryInputConfiguration_RemoveAuxiliaryInput(This,dwInputId) \ + ( (This)->lpVtbl -> RemoveAuxiliaryInput(This,dwInputId) ) + +#define IApoAuxiliaryInputConfiguration_IsInputFormatSupported(This,pRequestedInputFormat,ppSupportedInputFormat) \ + ( (This)->lpVtbl -> IsInputFormatSupported(This,pRequestedInputFormat,ppSupportedInputFormat) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IApoAuxiliaryInputConfiguration_INTERFACE_DEFINED__ */ + + +#ifndef __IApoAuxiliaryInputRT_INTERFACE_DEFINED__ +#define __IApoAuxiliaryInputRT_INTERFACE_DEFINED__ + +/* interface IApoAuxiliaryInputRT */ +/* [local][uuid][object] */ + + +EXTERN_C const IID IID_IApoAuxiliaryInputRT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F851809C-C177-49A0-B1B2-B66F017943AB") + IApoAuxiliaryInputRT : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE AcceptInput( + /* [annotation][in] */ + _In_ DWORD dwInputId, + /* [annotation][in] */ + _In_ const APO_CONNECTION_PROPERTY *pInputConnection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IApoAuxiliaryInputRTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IApoAuxiliaryInputRT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IApoAuxiliaryInputRT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IApoAuxiliaryInputRT * This); + + DECLSPEC_XFGVIRT(IApoAuxiliaryInputRT, AcceptInput) + void ( STDMETHODCALLTYPE *AcceptInput )( + IApoAuxiliaryInputRT * This, + /* [annotation][in] */ + _In_ DWORD dwInputId, + /* [annotation][in] */ + _In_ const APO_CONNECTION_PROPERTY *pInputConnection); + + END_INTERFACE + } IApoAuxiliaryInputRTVtbl; + + interface IApoAuxiliaryInputRT + { + CONST_VTBL struct IApoAuxiliaryInputRTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IApoAuxiliaryInputRT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IApoAuxiliaryInputRT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IApoAuxiliaryInputRT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IApoAuxiliaryInputRT_AcceptInput(This,dwInputId,pInputConnection) \ + ( (This)->lpVtbl -> AcceptInput(This,dwInputId,pInputConnection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IApoAuxiliaryInputRT_INTERFACE_DEFINED__ */ + + +#ifndef __IApoAcousticEchoCancellation_INTERFACE_DEFINED__ +#define __IApoAcousticEchoCancellation_INTERFACE_DEFINED__ + +/* interface IApoAcousticEchoCancellation */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IApoAcousticEchoCancellation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("25385759-3236-4101-A943-25693DFB5D2D") + IApoAcousticEchoCancellation : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct IApoAcousticEchoCancellationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IApoAcousticEchoCancellation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IApoAcousticEchoCancellation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IApoAcousticEchoCancellation * This); + + END_INTERFACE + } IApoAcousticEchoCancellationVtbl; + + interface IApoAcousticEchoCancellation + { + CONST_VTBL struct IApoAcousticEchoCancellationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IApoAcousticEchoCancellation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IApoAcousticEchoCancellation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IApoAcousticEchoCancellation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IApoAcousticEchoCancellation_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioenginebaseapo_0000_0011 */ +/* [local] */ + +typedef /* [v1_enum] */ +enum APO_REFERENCE_STREAM_PROPERTIES + { + APO_REFERENCE_STREAM_PROPERTIES_NONE = 0, + APO_REFERENCE_STREAM_PROPERTIES_POST_VOLUME_LOOPBACK = 0x1 + } APO_REFERENCE_STREAM_PROPERTIES; + +DEFINE_ENUM_FLAG_OPERATORS(APO_REFERENCE_STREAM_PROPERTIES); + + +extern RPC_IF_HANDLE __MIDL_itf_audioenginebaseapo_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioenginebaseapo_0000_0011_v0_0_s_ifspec; + +#ifndef __IApoAcousticEchoCancellation2_INTERFACE_DEFINED__ +#define __IApoAcousticEchoCancellation2_INTERFACE_DEFINED__ + +/* interface IApoAcousticEchoCancellation2 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IApoAcousticEchoCancellation2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F235855F-F06D-45B3-A63F-EE4B71509DC2") + IApoAcousticEchoCancellation2 : public IApoAcousticEchoCancellation + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDesiredReferenceStreamProperties( + /* [out] */ __RPC__out APO_REFERENCE_STREAM_PROPERTIES *pProperties) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IApoAcousticEchoCancellation2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IApoAcousticEchoCancellation2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IApoAcousticEchoCancellation2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IApoAcousticEchoCancellation2 * This); + + DECLSPEC_XFGVIRT(IApoAcousticEchoCancellation2, GetDesiredReferenceStreamProperties) + HRESULT ( STDMETHODCALLTYPE *GetDesiredReferenceStreamProperties )( + __RPC__in IApoAcousticEchoCancellation2 * This, + /* [out] */ __RPC__out APO_REFERENCE_STREAM_PROPERTIES *pProperties); + + END_INTERFACE + } IApoAcousticEchoCancellation2Vtbl; + + interface IApoAcousticEchoCancellation2 + { + CONST_VTBL struct IApoAcousticEchoCancellation2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IApoAcousticEchoCancellation2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IApoAcousticEchoCancellation2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IApoAcousticEchoCancellation2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + + +#define IApoAcousticEchoCancellation2_GetDesiredReferenceStreamProperties(This,pProperties) \ + ( (This)->lpVtbl -> GetDesiredReferenceStreamProperties(This,pProperties) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IApoAcousticEchoCancellation2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioenginebaseapo_0000_0012 */ +/* [local] */ + +typedef struct APOInitSystemEffects + { + APOInitBaseStruct APOInit; + IPropertyStore *pAPOEndpointProperties; + IPropertyStore *pAPOSystemEffectsProperties; + void *pReserved; + IMMDeviceCollection *pDeviceCollection; + } APOInitSystemEffects; + +typedef struct APOInitSystemEffects2 + { + APOInitBaseStruct APOInit; + IPropertyStore *pAPOEndpointProperties; + IPropertyStore *pAPOSystemEffectsProperties; + void *pReserved; + IMMDeviceCollection *pDeviceCollection; + UINT nSoftwareIoDeviceInCollection; + UINT nSoftwareIoConnectorIndex; + GUID AudioProcessingMode; + BOOL InitializeForDiscoveryOnly; + } APOInitSystemEffects2; + +typedef /* [public] */ struct __MIDL___MIDL_itf_audioenginebaseapo_0000_0012_0001 + { + LPARAM AddPageParam; + LPWSTR pwstrEndpointID; + IPropertyStore *pFxProperties; + } AudioFXExtensionParams; + +DEFINE_PROPERTYKEY(PKEY_FX_Association, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 0); +DEFINE_PROPERTYKEY(PKEY_FX_PreMixEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 1); +DEFINE_PROPERTYKEY(PKEY_FX_PostMixEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 2); +DEFINE_PROPERTYKEY(PKEY_FX_UserInterfaceClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 3); +DEFINE_PROPERTYKEY(PKEY_FX_FriendlyName, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 4); +DEFINE_PROPERTYKEY(PKEY_FX_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 5); +DEFINE_PROPERTYKEY(PKEY_FX_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 6); +DEFINE_PROPERTYKEY(PKEY_FX_EndpointEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 7); +DEFINE_PROPERTYKEY(PKEY_FX_KeywordDetector_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 8); +DEFINE_PROPERTYKEY(PKEY_FX_KeywordDetector_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 9); +DEFINE_PROPERTYKEY(PKEY_FX_KeywordDetector_EndpointEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 10); +DEFINE_PROPERTYKEY(PKEY_FX_Offload_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 11); +DEFINE_PROPERTYKEY(PKEY_FX_Offload_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 12); +DEFINE_PROPERTYKEY(PKEY_CompositeFX_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 13); +DEFINE_PROPERTYKEY(PKEY_CompositeFX_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 14); +DEFINE_PROPERTYKEY(PKEY_CompositeFX_EndpointEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 15); +DEFINE_PROPERTYKEY(PKEY_CompositeFX_KeywordDetector_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 16); +DEFINE_PROPERTYKEY(PKEY_CompositeFX_KeywordDetector_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 17); +DEFINE_PROPERTYKEY(PKEY_CompositeFX_KeywordDetector_EndpointEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 18); +DEFINE_PROPERTYKEY(PKEY_CompositeFX_Offload_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 19); +DEFINE_PROPERTYKEY(PKEY_CompositeFX_Offload_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 20); +DEFINE_PROPERTYKEY(PKEY_FX_SupportAppLauncher, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 21); +DEFINE_PROPERTYKEY(PKEY_FX_SupportedFormats, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 22); +DEFINE_PROPERTYKEY(PKEY_FX_Enumerator, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 23); +DEFINE_PROPERTYKEY(PKEY_FX_VersionMajor, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 24); +DEFINE_PROPERTYKEY(PKEY_FX_VersionMinor, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 25); +DEFINE_PROPERTYKEY(PKEY_FX_Author, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 26); +DEFINE_PROPERTYKEY(PKEY_FX_ObjectId, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 27); +DEFINE_PROPERTYKEY(PKEY_FX_State, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 28); +DEFINE_PROPERTYKEY(PKEY_FX_EffectPackSchema_Version, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 29); +DEFINE_PROPERTYKEY(PKEY_FX_ApplyToBluetooth, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 30); +DEFINE_PROPERTYKEY(PKEY_FX_ApplyToUsb, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 31); +DEFINE_PROPERTYKEY(PKEY_FX_ApplyToRender, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 32); +DEFINE_PROPERTYKEY(PKEY_FX_ApplyToCapture, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 33); +DEFINE_PROPERTYKEY(PKEY_FX_RequestSetAsDefault, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 34); +DEFINE_PROPERTYKEY(PKEY_FX_RequestSetAsDefaultPriority, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 35); +DEFINE_PROPERTYKEY(PKEY_FX_OEM_Preferred_EffectPack_Id, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 36); +DEFINE_PROPERTYKEY(PKEY_SFX_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 5); +DEFINE_PROPERTYKEY(PKEY_MFX_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 6); +DEFINE_PROPERTYKEY(PKEY_EFX_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 7); +DEFINE_PROPERTYKEY(PKEY_SFX_KeywordDetector_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 8); +DEFINE_PROPERTYKEY(PKEY_MFX_KeywordDetector_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 9); +DEFINE_PROPERTYKEY(PKEY_EFX_KeywordDetector_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 10); +DEFINE_PROPERTYKEY(PKEY_SFX_Offload_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 11); +DEFINE_PROPERTYKEY(PKEY_MFX_Offload_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 12); +DEFINE_PROPERTYKEY(PKEY_APO_SWFallback_ProcessingModes, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 13); +DEFINE_GUID(PKEY_FX_EffectPack_Schema_V1, 0x7abf23d9, 0x727e, 0x4d0b, 0x86, 0xa3, 0xdd, 0x50, 0x1d, 0x26, 0x0, 0x1); +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_audioenginebaseapo_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioenginebaseapo_0000_0012_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioenginebaseapo.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioenginebaseapo.idl new file mode 100644 index 0000000000000000000000000000000000000000..3d1e92ef63f9b08430ff90b069b6c0b440665fb9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioenginebaseapo.idl @@ -0,0 +1,1546 @@ +// +// audioenginebaseapo.idl -- Copyright (c) 2003 Microsoft Corporation +// +// Author: alpers +// +// Description: +// +// The interface and type definitions for base APO functionality. +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "mmdeviceapi.idl"; +import "audiomediatype.idl"; +import "AudioAPOTypes.h"; + +cpp_quote("//") +cpp_quote("// Error Codes for APO") +cpp_quote("// The facility code for APOs is 0x87D.") +cpp_quote("//") +cpp_quote("// The object has already been initialized.") +cpp_quote("#define APOERR_ALREADY_INITIALIZED _HRESULT_TYPEDEF_(0x887D0001)") +cpp_quote("// Object/structure is not initialized.") +cpp_quote("#define APOERR_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x887D0002)") +cpp_quote("// a pin supporting the format cannot be found.") +cpp_quote("#define APOERR_FORMAT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x887D0003)") +cpp_quote("// Invalid CLSID in an APO Initialization structure") +cpp_quote("#define APOERR_INVALID_APO_CLSID _HRESULT_TYPEDEF_(0x887D0004)") +cpp_quote("// Buffers overlap on an APO that does not accept in-place buffers.") +cpp_quote("#define APOERR_BUFFERS_OVERLAP _HRESULT_TYPEDEF_(0x887D0005)") +cpp_quote("// APO is already in an unlocked state") +cpp_quote("#define APOERR_ALREADY_UNLOCKED _HRESULT_TYPEDEF_(0x887D0006)") +cpp_quote("// number of input or output connections not valid on this APO") +cpp_quote("#define APOERR_NUM_CONNECTIONS_INVALID _HRESULT_TYPEDEF_(0x887D0007)") +cpp_quote("// Output maxFrameCount not large enough.") +cpp_quote("#define APOERR_INVALID_OUTPUT_MAXFRAMECOUNT _HRESULT_TYPEDEF_(0x887D0008)") +cpp_quote("// Invalid connection format for this operation") +cpp_quote("#define APOERR_INVALID_CONNECTION_FORMAT _HRESULT_TYPEDEF_(0x887D0009)") +cpp_quote("// APO is locked ready to process and can not be changed") +cpp_quote("#define APOERR_APO_LOCKED _HRESULT_TYPEDEF_(0x887D000A)") +cpp_quote("// Invalid coefficient count") +cpp_quote("#define APOERR_INVALID_COEFFCOUNT _HRESULT_TYPEDEF_(0x887D000B)") +cpp_quote("// Invalid coefficient") +cpp_quote("#define APOERR_INVALID_COEFFICIENT _HRESULT_TYPEDEF_(0x887D000C)") +cpp_quote("// an invalid curve parameter was specified") +cpp_quote("#define APOERR_INVALID_CURVE_PARAM _HRESULT_TYPEDEF_(0x887D000D)") +cpp_quote("// Invalid auxiliary input index") +cpp_quote("#define APOERR_INVALID_INPUTID _HRESULT_TYPEDEF_(0x887D000E)") + +cpp_quote("//") +cpp_quote("// Signatures for data structures.") +cpp_quote("//") +cpp_quote("#define APO_CONNECTION_DESCRIPTOR_SIGNATURE 'ACDS'") +cpp_quote("#define APO_CONNECTION_PROPERTY_SIGNATURE 'ACPS'") +cpp_quote("#define APO_CONNECTION_PROPERTY_V2_SIGNATURE 'ACP2'") +cpp_quote("") +cpp_quote("// Min and max framerates for the engine") +cpp_quote("#define AUDIO_MIN_FRAMERATE 10.0 // Minimum frame rate for APOs") +cpp_quote("#define AUDIO_MAX_FRAMERATE 384000.0 // Maximum frame rate for APOs") +cpp_quote("") +cpp_quote("// Min and max # of channels (samples per frame) for the APOs") +cpp_quote("#define AUDIO_MIN_CHANNELS 1 // Current minimum number of channels for APOs") +cpp_quote("#define AUDIO_MAX_CHANNELS 4096 // Current maximum number of channels for APOs") +cpp_quote("") +cpp_quote("//-----------------------------------------------------------------------------") +cpp_quote("") + +// Flags for APO connection creation. These flags are internally used by +// APO connection objects. +typedef enum APO_CONNECTION_BUFFER_TYPE +{ + // Connection buffer is internally allocated (Initialize) + APO_CONNECTION_BUFFER_TYPE_ALLOCATED = 0, + + // Connection buffer is passed as parameter (InitializeWithBuffer) + APO_CONNECTION_BUFFER_TYPE_EXTERNAL = 1, + + // Connection buffer is extracted from another Connection Object + // (InitializeWithConnection) + APO_CONNECTION_BUFFER_TYPE_DEPENDANT = 2 +} APO_CONNECTION_BUFFER_TYPE; + +// This structure is the descriptor for an APO connection. It is passed +// into the processor's CreateConnection call. +// +// See IAudioProcessor::CreateConnection. +// +// Structure of a connection buffer, including the extra space: +// +// {image:APO_CONN_DESC} +// +typedef struct APO_CONNECTION_DESCRIPTOR +{ + // Indicates how the connection buffer inside the APO Connection is allocated. + // This field is set only by APO Connection during initialization. It is a + // private field that should be cleared before making the + // CreateConnection call. + APO_CONNECTION_BUFFER_TYPE Type; + + // The buffer to be used for the APO connection. + // + // If NULL, the CreatConnection call will allocate memory. + // + // If not NULL, CreateConnetion will use the specified memory region as the + // connection buffer. pBuffer must be frame-aligned or 128 bit aligned, + // both at the beginning of the buffer and at the start of the audio + // buffer section. It must be large enough to hold u32MaxFrameCount + // frames. It must point to the beginning of the audio buffer area. + // See the diagram below. + UINT_PTR pBuffer; + + // Maximum size, in number of frames, of the connection buffer + // associated with the connection. Note that the actual space allocated + // depends on the exact format of the audio data specified in Format. + UINT32 u32MaxFrameCount; + + // The format of the connection. This also represents the format + // of the data in the connection buffer. + IAudioMediaType* pFormat; + + // A tag identifying a valid APO_CONNECTION_DESCRIPTOR structure. + UINT32 u32Signature; +} APO_CONNECTION_DESCRIPTOR; + +//--------------------------------------------------------------------------- +// These flags specify the basic properties of Audio Processing objects. If +// the APO is being used directly by a client without using an audio +// processor, the client needs to ensure these flags are respected. +typedef enum APO_FLAG +{ + // No flags set + APO_FLAG_NONE = 0x00000000, + + // APO can perform in-place processing. This allows the processor to + // connect a common buffer on input and output. + APO_FLAG_INPLACE = 0x00000001, + + // Samples Per Frame of input and output connections must match. + APO_FLAG_SAMPLESPERFRAME_MUST_MATCH = 0x00000002, + + // Frames per second of input and output connections must match + APO_FLAG_FRAMESPERSECOND_MUST_MATCH = 0x00000004, + + // Bits per sample AND bytes per sample containter of input and output + // connections must match. + APO_FLAG_BITSPERSAMPLE_MUST_MATCH = 0x00000008, + + // APO is a mix APO. This flag should be set only for the mixer APO. + APO_FLAG_MIXER = 0x00000010, + + // standard flags for default APOs + APO_FLAG_DEFAULT = (APO_FLAG_SAMPLESPERFRAME_MUST_MATCH | APO_FLAG_FRAMESPERSECOND_MUST_MATCH | + APO_FLAG_BITSPERSAMPLE_MUST_MATCH) +} APO_FLAG; + + +// Registration properties for an APO. This structure is used by the registration +// API functions and by IAudioProcessingObject::GetRegistrationProperties(). +typedef struct APO_REG_PROPERTIES +{ + // The CLSID that uniquely identifies this COM object. + CLSID clsid; + + // The basic properties of the APO. + APO_FLAG Flags; + + // String that identifies the friendly name of this APO. + WCHAR szFriendlyName[256]; + + // String that lists any relevant copyright information. + WCHAR szCopyrightInfo[256]; + + // The major version number of this APO. + UINT32 u32MajorVersion; + + // The minor version number of this APO. + UINT32 u32MinorVersion; + + // The minimum number of input connections this APO must have to operate properly. + UINT32 u32MinInputConnections; + + // The maximum number of input connections this APO can handle. + UINT32 u32MaxInputConnections; + + // The minimum number of output connections this APO must have to operate properly. + UINT32 u32MinOutputConnections; + + // The maximum number of output connections this APO can handle. + UINT32 u32MaxOutputConnections; + + // The maximum number of times this APO can be instantiated system-wide. This is + // primarily used to indicate a max instance count for a hardware based APO with + // limited hardware resources. For software APOs with no max instances, set to + // MAXUINT32. + UINT32 u32MaxInstances; + + // Number of GUIDs in the iidAPOInterfaceList. + UINT32 u32NumAPOInterfaces; + + // This is an array of GUIDs that define all the APO interfaces that can be found in + // this APO. There are u32NumAPOInterfaces in the list. + [size_is(u32NumAPOInterfaces)] IID iidAPOInterfaceList[]; +} APO_REG_PROPERTIES, *PAPO_REG_PROPERTIES; + + +// this the base initialization header that must preceed other +// initialization data in IAudioProcessingObject::Initialize +typedef struct APOInitBaseStruct +{ + // this is the total size in bytes of the structure + UINT32 cbSize; + + // this is the CLSID of the APO. If the CLSID does not match, this + // structure was not designed for this APO and this is an error. This + // may also be used for versioning, if the CLSID of the APO changes + // between versions. In this case a CLSID of a previous version MAY + // be still supported by the APO. + CLSID clsid; +} APOInitBaseStruct; + + +// Two flow types, push and pull may be supported for each SRC APO, +// and specified in the initialization structure for each particular APO. +// These flow types specify how the rate converter will consume and +// generate samples based on the amount of available input, or amount +// of requested output. +typedef enum AUDIO_FLOW_TYPE +{ + AUDIO_FLOW_PULL = 0, // If AUDIO_FLOW_PULL is specified then the converter will + // generate a fixed and equal number of output frames on + // each processing pass, and consume the entire input APO + // Connection buffer. + // + // The CalcMaxInputFrames API should be called initially to + // determine the maximum frameCount for APOC buffer allocation. + // CalcInputFrames should then be called before every call to + // APOProcess to determine the number of input frames required + // to fill the output APO Connection. On subsequent calls to APOProcess, + // the returned u32InputFrameCount must equal the input APO Connection�s + // u32ValidFrameCount value, or the APO will fail. + + AUDIO_FLOW_PUSH // With AUDIO_FLOW_PUSH the converter will generate as much output + // possible with the available input on each processing pass, and + // consume the entire input APO Connection buffer. + // + // CalcMaxOutputFrames should be called to determine the maximum + // frameCount that may be generated on a processing pass. + // This call should be made after Initialize to determine the + // size of APO output Connection buffer to allocate. + // CalcOutputFrames may be called to query the next output + // frameCount, however, this call is not required when + // using AUDIO_FLOW_PUSH. +} AUDIO_FLOW_TYPE; + +// Constriction levels +typedef enum EAudioConstriction +{ + // order least to most + eAudioConstrictionOff, + eAudioConstriction48_16, + eAudioConstriction44_16, + eAudioConstriction14_14, + eAudioConstrictionMute +} EAudioConstriction; + +// This is the realtime-safe interface for an APO. It may be called from +// a real-time processing thread. The implementation of these methods do not +// and should not block, touch paged memory, or call any blocking system +// routines. +// +// This interface is declared "local" and is not callable out of proc. +// +// This interface is hidden by the Audio Processor and is not available to +// clients when creating APOs with IAudioProcessor::CreateAPO. +[ + object, + uuid(9E1D6A6D-DDBC-4E95-A4C7-AD64BA37846C), + pointer_default(unique), + local +] +interface IAudioProcessingObjectRT : IUnknown{ + //------------------------------------------------------------------------- + // Description: + // + // Cause the APO to perform a processing pass. + // + // Parameters: + // + // u32NumInputConnections - [in] Number of input connections. + // ppInputConnections - [in] Array of input connection property + // structures, one per input connection. + // u32NumOutputConnections - [in] Number of output connections. + // ppOutputConnections - [in, out] Array of output connection + // property structures, one per output connection. + // + // Remarks: + // + // This method is called for the APO to process audio data. The process + // method must conform to the Real Time processing specification. + // + // An APO is required to propagate the time-stamp on the input connection + // to the output connection. It needs to subtract its own latency when it + // sets the output connection time-stamp. For example a zero-latency APO + // will set the same time-stamp on its output connection as that coming + // in on input. + // + // The data to process is described in the array of input connections. + // + // The APO may not change the ppOutputConnections array, but it can and + // should set the properties of the output connections after processing. + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + // + void APOProcess([in, annotation("_In_")] UINT32 u32NumInputConnections, [in, annotation("_In_")] APO_CONNECTION_PROPERTY** ppInputConnections, + [in, annotation("_In_")] UINT32 u32NumOutputConnections, [in, out, annotation("_Inout_")] APO_CONNECTION_PROPERTY** ppOutputConnections); + + + //------------------------------------------------------------------------- + // Description: + // + // Returns the number of input frames an APO requires to generate a given + // number of output frames. + // + // Parameters: + // + // u32OutputFrameCount - [in] Count of desired output frames. + // + // Return values: + // + // The required number of input frames to generate the given + // number of output frames. + // + // Remarks: + // + // This method returns the number of input frames an APO will require + // to generate a given number of output frames. + // + // This routine is useful for providing a "pull" model for audio + // processing. The main processing loop can use this call to determine + // the number of frames it should provide the APO in order to + // generate a specific desired number of output frames. + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + // + UINT32 CalcInputFrames([in] UINT32 u32OutputFrameCount); + + + //------------------------------------------------------------------------- + // Description: + // + // Returns the number of output frames an APO requires to generate a given + // amount of input frames. + // + // Parameters: + // + // u32InputFrameCount - [in] Count of desired input frames. + // + // Return values: + // + // The number of output frames that will be generated with + // the given number of input frames. + // + // Remarks: + // + // This method returns the number of output frames an APO will generate + // given a number of input frames. + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + UINT32 CalcOutputFrames([in, annotation("_In_")] UINT32 u32InputFrameCount); +}; + + +// The IAudioProcessingObjectVBR interface provides two APIs for calculating the +// maximum frameCounts needed based on a requested or provided +// number of output or input frames. Since VBR APOs may consume or +// output varying numbers of frames, these APIs should be used by clients to determine +// the largest possible input or output buffer size (in frames) that will be needed +// during processing. +// +[ + object, + uuid(7ba1db8f-78ad-49cd-9591-f79d80a17c81), + pointer_default(unique), +] +interface IAudioProcessingObjectVBR : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Calculates the maximum input frame count. + // + // Parameters: + // + // u32MaxOutputFrameCount - [in] maximum output frame count that will be requested + // pu32InputFrameCount - [out] pointer to UINT32 to receive input frame count + // + // Return values: + // + // S_OK + // E_POINTER + // + // Remarks: + // + // This method returns the maximum number of input frames that may be required + // given some number of output frames. This API should be called after APO + // initialization to determine the size of the input APO connection buffer to be allocated. + // The return value should be the minimum size of APO connection used on the + // APO's input connection. + // + // The returned count takes into account the maximum range of frequency shift, + // so that input connections are large enough during processing. This API should + // not be confused with CalcInputFrames which takes into account the current + // frame rate set on the APO which may change after initialization. + // + // This method may not be called from a real-time processing thread. + // + HRESULT CalcMaxInputFrames([in] UINT32 u32MaxOutputFrameCount, [out] UINT32* pu32InputFrameCount ); + + //------------------------------------------------------------------------- + // Description: + // + // Calculates the max output frameCount. + // + // Parameters: + // + // u32MaxInputFrameCount - [in] maxmimum input frame count that may occur + // during processing + // pu32OutputFrameCount - [out] pointer to UINT32 to receive the + // maxOutputFrameCount which may be generated. + // + // Return values: + // + // S_OK + // E_POINTER + // + // Remarks: + // + // This routine uses the input and output max and min frameRate ranges to determine + // the maximum output frameCount. The return value should be the minimum size + // connection used on this APOs output connection. + // + // The returned count takes into account the maximum range of frequency shift, + // so that output connections are large enough during processing. This API should + // not be confused with CalcOutputFrames which takes into account the current + // frame rate set on the APO which may change after initialization. + // + // This method may not be called from a real-time processing thread. + // + HRESULT CalcMaxOutputFrames([in] UINT32 u32MaxInputFrameCount, [out] UINT32* pu32OutputFrameCount ); +}; + + +// This is the configuration interface for an APO. The processor uses +// these methods to lock and unlock APOs for processing. Clients of APOs +// will not normally need to call this interface if the APOs are used with +// the AudioProcessor provided by the audio core team. +// +// This interface is hidden by the Audio Processor and is not available to +// clients when creating APOs with IAudioProcessor::CreateAPO. +// +// Clients writing their own processor, or using APOs "raw" will need to +// use this interface to enable processing with the APOs. +// +// This interface is declared "local" and is not callable out of proc. +// +[ + object, + uuid(0E5ED805-ABA6-49c3-8F9A-2B8C889C4FA8), + pointer_default(unique), + local +] +interface IAudioProcessingObjectConfiguration : IUnknown{ + //------------------------------------------------------------------------- + // Description: + // + // Verifies that the APO is ready to process and locks its state if so. + // + // Parameters: + // + // u32NumInputConnections - [in] number of input connections attached to this APO. + // ppInputConnections - [in] connection descriptor of each input connection attached to this APO. + // u32NumOutputConnections - [in] number of output connections attached to this APO. + // ppOutputConnections - [in] connection descriptor of each output connection attached to this APO. + // + // Return values: + // + // S_OK Object is locked and ready to process. + // E_POINTER Invalid pointer passed to function. + // APOERR_INVALID_CONNECTION_FORMAT Invalid connection format. + // APOERR_NUM_CONNECTIONS_INVALID Number of input or output + // connections is not valid on this APO. + // APOERR_APO_LOCKED APO is already locked. + // Other HRESULTs When another component is causing a failure. + // These failures will be tracked by the the Audio Engine. + // + // Remarks: + // + // LockForProcess performs an internal check to see if the APO is ready to + // process, meaning that it has been sufficiently initialized to perform + // useful processing. If this method call succeeds, the object will be + // locked in this state. + // + // Once locked, certain APO configuration changes will be disallowed. These + // include Add/Remove/Swap of Input/Output connections, as well as any specific + // APO re-configuration that cannot be performed dynamically. + // + // The APO can only be unlocked by calling UnlockForProcess. + // + // The latency of an APO must be fixed and unchangeable once a LockForProcess + // call succeeds. This is so that the latency of the graph cannot change while + // processing, which allows the client to optimize and not have to query all + // APO latencies constantly. + // + // Each APO will have different initialization requirements. APOs should + // define an Initialize routine if it needs one. LockForProcess should fail + // if this Initialize routine hasn�t been called. All non-modifiable parameters + // should be set in the initalize routine. All parameters that can be set + // after LockForProcess should have their own interface methods. + // + // This call must be made before calling APOProcess (if the APO is being used + // outside the Audio Processor). The Processor will call LockForProcess before + // the APO is added into its active APO list. See IAudioProcessor::ActivateAPO. + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT LockForProcess([in, annotation("_In_")] UINT32 u32NumInputConnections, [in, annotation("_In_")] APO_CONNECTION_DESCRIPTOR** ppInputConnections, + [in, annotation("_In_")] UINT32 u32NumOutputConnections, [in, annotation("_In_")] APO_CONNECTION_DESCRIPTOR** ppOutputConnections); + + //------------------------------------------------------------------------- + // Description: + // + // Releases the lock imposed by LockForProcess. + // + // Return values: + // + // S_OK Successful completion. + // APOERR_ALREADY_UNLOCKED APO was not locked. + // + // Remarks: + // + // UnlockForProcess releases the lock imposed by LockForProcess. This will + // allow certain APO configuration changes to occur without causing any + // problems for the Processor. These changes may include Add/Remove/Swap + // of Input/Output connections, as well as any specific APO re-configuration + // that can not be performed dynamically. + // + HRESULT UnlockForProcess(void); +}; + +// Effects, transforms, and synthesizers are enabled through the creation and +// usage of Audio Processing Objects (APOs). APOs may be supplied by Microsoft +// or by third parties. Part of the Audio Engine is an APO SDK that documents +// and provides examples of creating APOs. +// +// APOs typically have one input and one output connection; however, any number +// of input and output connections (including none) may be processed. +// +// For an APO which operates inplace, the same connection may be set for input and +// output. +// +// All APOs must be real-time compatible (RT-compatible). This implies the +// following. +// +// 1) All buffers (including connection buffers) that APOs are +// processing must be non-paged. +// +// 2) All APO code and data that is used in the processing path must be +// non-paged. +// +// 3) All IXXXRT interface methods must be implemented in a non-blocking +// fashion. They should not block, touch paged memory or call any +// blocking system routines. (Note that most system routines are +// blocking.) +// +// 4) RT-compliant APOs can be used in non-RT applications. +// +// There are three main interfaces for the APO: IAudioProcessingObject, +// IAudioProcessingObjectConfiguration, and IAudioProcessingObjectRT. APO +// specific methods not covered in the interface may be handled through a +// private or public interface that the caller can query for. See +// AudioEngineCoreAPO.idl for examples of these methods. +// +// APOs that require more functionality than what�s provided in the base APO +// interface may need to create their own interface. APOs may support any number +// of optional interfaces including IMediaParams, IPersistStream, etc. See +// individual APOs for examples. +// +// The IAudioProcessingObject interface exposes the non-real-time compliant +// parts of an Audio Processing Object to the client. This interface may not +// be called from a real time thread. +[ + object, + uuid(FD7F2B29-24D0-4b5c-B177-592C39F9CA10), + pointer_default(unique) +] +interface IAudioProcessingObject : IUnknown{ + //------------------------------------------------------------------------- + // Description: + // + // Resets the APO to its initial state. + // + // Return values: + // + // S_OK Successful completion. + // + // Remarks: + // + // This method resets the APO to a known state. It does not cause + // any changes in the connection objects attached to the input or output + // of the APO. The APO defines the initial state. + // + // See the documentation for each APO for specifics as to exactly what + // the "known" state of the APO is after this call. + // + // Note: This method may not be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch paged + // memory, or call any blocking system routines. + // + HRESULT Reset(void); + + + //------------------------------------------------------------------------- + // Description: + // + // Returns the latency for this APO. + // + // Parameters: + // + // pTime - [out] Points to a HNSTIME structure that will receive the + // number of 100 nanosecond units of delay that this APO + // introduces. + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER Invalid pointer passed to function. + // + // Remarks: + // + // Get the latency in 100 nanosecond units. If the caller knows the + // sampling rate, they can calculate the latency in number of frames. The + // latency is with respect to this APO. To get the total latency on the + // processing stream, the caller would query every APO in the processing + // chain for its latency and sum the results. + // + // Latency is the amount of time it takes a frame to traverse the + // processing pass of this APO. That is, it describes how long an APO + // will hold on to a frame before releasing it downstream to the remainder + // of the audio graph. Another way of looking at it is that it is the + // amount of time by which the timestamp of the output connection will + // be offset relative to the timestamp of the input connection. + // + // For instance, a typical APO such as volume or mixing will not introduce + // any latency. A frame going in the input connection buffer will come out at the + // corresponding position of the output connection buffer, and the timestamp on the + // output connection will match that of the input connection in a single APOProcess() + // call. An APO such as a delay or frame rate converter will introduce a + // latency into the stream. That is, the input frames will be held by the + // APO for a time (the latency time) and only output at a later time. So a + // frame coming in at time 10 on the input will still come out at time 10 + // on the output, but if there is a 5 time-unit latency for the APO, the + // APOProcess() pass made with an input connection of time 10 would generate an + // output connection of time 5. In effect, the input frames have been held or + // delayed by 5 time units. The APO would report a latency of 5 units. + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT GetLatency([out] HNSTIME* pTime); + + + //------------------------------------------------------------------------- + // Description: + // + // Returns the registration properties of the APO. + // + // Parameters: + // + // ppRegProps - [out] Pointer to an APO_REG_PROPERTIES pointer to be filled + // in by the APO with its registration properties pointer. + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER Invalid pointer passed to this function. + // + // Remarks: + // + // This method returns the registration properties of the APO. See the APO + // Registration API section for details on this struct. + // + // The caller must free the memory returned by this function using CoTaskMemFree. + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT GetRegistrationProperties([out] APO_REG_PROPERTIES** ppRegProps); + + + //------------------------------------------------------------------------- + // Description: + // + // Generic initialization routine for APOs. + // + // Parameters: + // + // cbDataSize - [in] the size in bytes of the initialization data. + // pbyData - [in] initialization data specific to this APO + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER Invalid pointer passed to this function. + // E_INVALIDARG Invalid argument + // APOERR_ALREADY_INITIALIZED APO is already initialized + // Other HRESULTs When another component is causing a failure. + // These failures will be tracked by the the Audio Engine. + // + // Remarks: + // + // This method initializes the APO. The data is variable length and + // should have the form of: + // + // struct MyAPOInitializationData + // { + // APOInitBaseStruct APOInit; + // // add additional fields here... + // }; + // + // If the APO needs no initialization or needs no data to initialize + // itself, it is valid to pass NULL as the pbyData parameter and 0 as + // the cbDataSize parameter. + // + // As part of designing an APO, decide which parameters should be + // immutable (set once during initialization) and which mutable (changeable + // during the lifetime of the APO instance). Immutable parameters must + // only be specifiable in the Initialize call; mutable parameters must be + // settable via methods on whichever parameter control interface(s) your + // APO provides. Mutable values should either be set in the initialize + // method (if they are required for proper operation of the APO prior to + // LockForProcess) or default to reasonable values upon initialize and not + // be required to be set before LockForProcess. + // + // Within the mutable parameters, you must also decide which can be changed + // while the APO is locked for processing and which cannot. + // + // All parameters should be considered immutable as a first choice, unless + // there is a specific scenario which requires them to be mutable; similarly, + // no mutable parameters should be changeable while the APO is locked, unless + // a specific scenario requires them to be. Following this guideline will + // simplify the APO's state diagram and implementation and prevent certain + // types of bug. + // + // If a parameter changes the APOs latency or MaxXXXFrames values, it must be + // immutable. + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT Initialize([in] UINT32 cbDataSize, [in, size_is(cbDataSize)] BYTE* pbyData); + + + //------------------------------------------------------------------------- + // Description: + // + // Verifies that a specific input format is supported. + // + // Parameters: + // + // pOppositeFormat - [in] the output format, or NULL for any + // pRequestedInputFormat - [in] the input format that is to be verified + // ppSupportedInputFormat - [out] the closest input format supported + // + // Return values: + // + // S_OK Successful completion. + // ppSupportedInputFormat returns pRequestedInputFormat. + // + // S_FALSE Format or input/output format pair is not supported. + // ppSupportedInputFormat returns new suggested format. + // + // APOERR_FORMAT_NOT_SUPPORTED Format is not supported. + // ppSupportedInputFormat is left untouched. + // + // E_POINTER Invalid pointer passed to this function. + // + // Other HRESULTs When another component is causing a failure. + // These failures will be tracked by the the Audio Engine. + // + // Remarks: + // + // When pOppositeFormat is not NULL, the APO will answer this query + // for the input/output (I/O) format pair. Some APOs may give + // different answers depending on the opposite format. For instance, a format + // converter may only support integer input if the output is float. + // + // If the APO can accept the requested format or I/O format pair it should add a + // reference to the requested format, return this as the supported output + // format, and return S_OK. + // + // If the APO cannot accept the requested format or I/O format pair it may suggest + // an alternate requested format. In this case it should create and return the + // suggested format, and return S_FALSE. + // + // The returned supported format should be 'closest' to + // the requested format (where 'close' means 'same sample format / bit depth / + // number of channels / sample rate' in roughly that order). This format may + // only be different from the requested format if S_FALSE is returned + // + // When returning any failure the suggested format should be left untouched. + // + // This API may be called at any time. The answers + // given will depend on the internal state of the APO which may + // be manipulated by external user-interfaces. Once the APO is locked for + // processing, however, these I/O formats cannot and will not change. + + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT IsInputFormatSupported([in, unique] IAudioMediaType* pOppositeFormat, + [in] IAudioMediaType* pRequestedInputFormat, + [out] IAudioMediaType** ppSupportedInputFormat); + + + //------------------------------------------------------------------------- + // Description: + // + // Verifies that a specific output format is supported. + // + // Parameters: + // + // pOppositeFormat - [in] the input format, or NULL for any + // pRequestedOutputFormat - [in] the output format that is to be verified + // ppSupportedOutputFormat - [out] the closest output format supported + // + // Return values: + // + // S_OK Successful completion. + // ppSupportedOutputFormat returns pRequestedOutputFormat. + // + // S_FALSE Format or input/output format pair is not supported. + // ppSupportedOutputFormat returns new suggested format. + // + // APOERR_FORMAT_NOT_SUPPORTED Format is not supported. + // ppSupportedOutputFormat is left untouched. + // + // E_POINTER Invalid pointer passed to this function. + // + // Other HRESULTs When another component is causing a failure. + // These failures will be tracked by the the Audio Engine. + // + // Remarks: + // + // When pOppositeFormat is not NULL, the APO will answer this query + // for the input/output (I/O) format pair. Some APOs may give + // different answers depending on the opposite format. For instance, a format + // converter may only support integer input if the output is float. + // + // If the APO can accept the requested format or I/O format pair it should add a + // reference to the requested format, return this as the supported output + // format, and return S_OK. + // + // If the APO cannot accept the requested format or I/O format pair it may suggest + // an alternate requested format. In this case it should create and return the + // suggested format, and return S_FALSE. + // + // The returned supported format should be 'closest' to + // the requested format (where 'close' means 'same sample format / bit depth / + // number of channels / sample rate' in roughly that order). This format may + // only be different from the requested format if S_FALSE is returned + // + // When returning any failure the suggested format should be left untouched. + // + // This API may be called at any time. The answers + // given will depend on the internal state of the APO which may + // be manipulated by external user-interfaces. Once the APO is locked for + // processing, however, these I/O formats cannot and will not change. + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT IsOutputFormatSupported([in, unique] IAudioMediaType* pOppositeFormat, + [in] IAudioMediaType* pRequestedOutputFormat, + [out] IAudioMediaType** ppSupportedOutputFormat); + + //------------------------------------------------------------------------- + // Description: + // + // Returns the input channel count (samples-per-frame) for this APO. + // + // Parameters: + // + // pu32ChannelCount - [out] Points to a UINT32 that will receive the channel count. + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER Invalid pointer passed to function. + // APOERR_NOT_INITIALIZED APO is not initialized. + // + // Remarks: + // + // The interface returns the number of channels on the input side of the APO. + // + HRESULT GetInputChannelCount([out] UINT32* pu32ChannelCount); + + +}; // IAudioProcessingObject + +[ + object, + local, + uuid(98F37DAC-D0B6-49F5-896A-AA4D169A4C48), + nonextensible, + helpstring("IAudioDeviceModulesClient"), + pointer_default(unique) +] +interface IAudioDeviceModulesClient : IUnknown +{ + HRESULT SetAudioDeviceModulesManager([in, annotation("_In_")] IUnknown* pAudioDeviceModulesManager); +}; + +cpp_quote("//") +cpp_quote("// APO registration functions") +cpp_quote("//") +cpp_quote("typedef HRESULT (WINAPI FNAPONOTIFICATIONCALLBACK)(APO_REG_PROPERTIES* pProperties, VOID* pvRefData);") + +cpp_quote("extern HRESULT WINAPI RegisterAPO(APO_REG_PROPERTIES const* pProperties);") +cpp_quote("extern HRESULT WINAPI UnregisterAPO(REFCLSID clsid);") +cpp_quote("extern HRESULT WINAPI RegisterAPONotification(HANDLE hEvent);") +cpp_quote("extern HRESULT WINAPI UnregisterAPONotification(HANDLE hEvent);") +cpp_quote("extern HRESULT WINAPI EnumerateAPOs(FNAPONOTIFICATIONCALLBACK pfnCallback, PVOID pvRefData);") +cpp_quote("extern HRESULT WINAPI GetAPOProperties(REFCLSID clsid, APO_REG_PROPERTIES* pProperties);") + +// +// System Effects settings/definitions +// + +// +// This is the interface by which system effects get identified. +// +[ + uuid(5FA00F27-ADD6-499a-8A9D-6B98521FA75B) +] +interface IAudioSystemEffects : IUnknown +{}; + +// +// This is the interface by which mode-aware system effects get identified. +// +[ + local, + uuid(BAFE99D2-7436-44CE-9E0E-4D89AFBFFF56) +] +interface IAudioSystemEffects2 : IAudioSystemEffects +{ + HRESULT GetEffectsList([out, annotation("_Outptr_result_buffer_maybenull_(*pcEffects)")] LPGUID* ppEffectsIds, [out, annotation("_Out_")] UINT *pcEffects, [in, annotation("_In_")] HANDLE Event); +}; + + +// +// System Effects APOs that support some form of encoding or want +// to drive the device at an atypical format (one not normally exposed +// in the audio control panel applet) can support this interface. +// +[ + uuid(B1176E34-BB7F-4f05-BEBD-1B18A534E097) +] +interface IAudioSystemEffectsCustomFormats : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the number of custom formats supported by this APO + // + // Parameters: + // + // pcFormats - [out] Receives the number of formats supported + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER Invalid pointer passed to function. + // + HRESULT GetFormatCount([out] UINT* pcFormats); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves a IAudioMediaType representation of a custom format + // + // Parameters: + // + // nFormat - [in] the index of the format (in the range 0 to GetFormatCount() result - 1) + // ppFormat - [out] the address of a pointer that will receive the format + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER Invalid pointer passed to function. + // E_OUTOFMEMORY Return buffer cannot be allocated. + // E_INVALIDARG nFormat is out of range. + // + // Remarks: + // + // The caller is responsible for deleting the IAudioMediaType object pointed to by *ppFormat. + // + HRESULT GetFormat([in] UINT nFormat, [out] IAudioMediaType** ppFormat); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves a string representation of a custom format for UI purposes + // + // Parameters: + // + // nFormat - [in] the index of the format (in the range 0 to GetFormatCount() result - 1) + // ppwstrFormatRep - [out] the address of a buffer pointer that will receive a null- + // terminated string describing the format + // + // Return values: + // + // S_OK Successful completion. + // E_POINTER Invalid pointer passed to function. + // E_OUTOFMEMORY Return buffer cannot be allocated. + // E_INVALIDARG nFormat is out of range. + // + // Remarks: + // + // The caller is responsible for freeing the buffer pointed to by *pwstrFormatRep + // using CoTaskMemFree. + // + HRESULT GetFormatRepresentation([in] UINT nFormat, [out] LPWSTR* ppwstrFormatRep); +}; + +// This is the configuration interface for an APO used to configure its auxiliary inputs. +// +// This interface is declared "local" and is not callable out of proc. +// +[ + object, + uuid(4CEB0AAB-FA19-48ED-A857-87771AE1B768), + local +] +interface IApoAuxiliaryInputConfiguration : IUnknown +{ + + //------------------------------------------------------------------------- + // Description: + // + // Adds an auxiliary input to the APO, and provides initialization parameters. + // + // Parameters: + // + // dwInputId - [in] identifier for the input. This is a unique identifier generated by the audio stack + // The APO can use this identifier to differentiate between multiple auxiliary inputs. + // + // cbDataSize - [in] the size in bytes of the initialization data. + // pbyData - [in] initialization data specific to this APO + // pInputConnection - [in] connection descriptor for this auxiliary input connection + // + // Return values: + // + // APOERR_NUM_CONNECTIONS_INVALID APO does not expect this auxiliary input. + // + // Remarks: + // + // This method initializes an auxiliary input of the APO. The data is variable length and + // should have the form of: + // + // struct MyAPOInitializationData + // { + // APOInitBaseStruct APOInit; + // // add additional fields here... + // }; + // See IAudioProcessingObject::Initialize for use of the initialization blob. + // + // This method may be called only when the APO is not locked for processing. + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT AddAuxiliaryInput([in] DWORD dwInputId, + [in] UINT32 cbDataSize, + [in, size_is(cbDataSize)] BYTE* pbyData, + [in, annotation("_In_")] APO_CONNECTION_DESCRIPTOR *pInputConnection); + + //------------------------------------------------------------------------- + // Description: + // + // Removes an auxiliary input from the APO. + // + // Parameters: + // + // dwInputId - [in] identifier for the input. This is a unique identifier generated by the audio stack + // The APO can use this identifier to differentiate between multiple auxiliary inputs. + // + // + // This method may be called only when the APO is not locked for processing + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT RemoveAuxiliaryInput([in] DWORD dwInputId); + + //------------------------------------------------------------------------- + // Description: + // + // Verifies that a specific auxiliary input format is supported. + // + // Parameters: + // + // pRequestedInputFormat - [in] the input format that is to be verified + // ppSupportedInputFormat - [out] the closest input format supported + // + // Return values: + // + // S_OK Successful completion. + // ppSupportedInputFormat returns pRequestedInputFormat. + // + // S_FALSE Format is not supported. + // ppSupportedInputFormat returns new suggested format. + // + // APOERR_FORMAT_NOT_SUPPORTED Format is not supported. + // ppSupportedInputFormat is left untouched. + // + // E_POINTER Invalid pointer passed to this function. + // + // Other HRESULTs When another component is causing a failure. + // These failures will be tracked by the the Audio Engine. + // + // Remarks: + // + // If the APO can accept the requested format it should add a + // reference to the requested format, return this as the supported output + // format, and return S_OK. + // + // If the APO cannot accept the requested format it may suggest + // an alternate requested format. In this case it should create and return the + // suggested format, and return S_FALSE. + // + // The returned supported format should be 'closest' to + // the requested format (where 'close' means 'same sample format / bit depth / + // number of channels / sample rate' in roughly that order). This format may + // only be different from the requested format if S_FALSE is returned + // + // When returning any failure the suggested format should be left untouched. + // + // This API may be called at any time. The answers + // given will depend on the internal state of the APO which may + // be manipulated by external user-interfaces. Once the APO is locked for + // processing, however, this format cannot and will not change. + + // + // Note: This method may not be called from a real-time processing thread. + // + HRESULT IsInputFormatSupported([in] IAudioMediaType* pRequestedInputFormat, + [out] IAudioMediaType** ppSupportedInputFormat); +}; + +// This is the realtime-safe interface used to drive the auxiliary inputs +// of an APO. It may be called from a real-time processing thread. The implementation +// of these methods do not and should not block, touch paged memory, or call any blocking +// system routines. +// +// Additionally these calls should not block the main processing method called on APOs - +// IAudioProcessingObjectRT::APOProcess +// +// This interface is declared "local" and is not callable out of proc. +// +[ + object, + uuid(F851809C-C177-49A0-B1B2-B66F017943AB), + local +] +interface IApoAuxiliaryInputRT : IUnknown +{ + + //------------------------------------------------------------------------- + // Description: + // + // Provides input to the APO on one of its auxiliary inputs + // + // Parameters: + // + // dwInputId - [in] the input identifier + // pInputConnections - [in] the input connection property structure + // + // Remarks: + // + // This method is called to provide input to the APO on one of its auxiliary inputs. + // + // Note: This method may be called from a real-time processing thread. The + // implementation of this method does not and should not block, touch + // paged memory, or call any blocking system routines. + // + // + void AcceptInput([in, annotation("_In_")] DWORD dwInputId, + [in, annotation("_In_")] const APO_CONNECTION_PROPERTY* pInputConnection); +}; + +// This interface is used to identify APOs that implement Acoustic Echo Cancellation +[ + object, + uuid(25385759-3236-4101-A943-25693DFB5D2D), + pointer_default(unique) +] +interface IApoAcousticEchoCancellation : IUnknown +{ +}; + +//------------------------------------------------------------------------- +// Description: Flags describing the desired characteristics of a refrence +// stream. +// +// APO_REFERENCE_STREAM_PROPERTIES_POST_VOLUME_LOOPBACK - +// If the device endpoint supports it, use the post volume tap point +// for the loopback stream. +typedef [v1_enum] enum APO_REFERENCE_STREAM_PROPERTIES +{ + APO_REFERENCE_STREAM_PROPERTIES_NONE = 0x00, + APO_REFERENCE_STREAM_PROPERTIES_POST_VOLUME_LOOPBACK = 0x01 +} APO_REFERENCE_STREAM_PROPERTIES; + +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(APO_REFERENCE_STREAM_PROPERTIES);") + +// This interface is used to identify APOs that implement Acoustic Echo Cancellation +// and wish to use post-volume processing loopback streams. +[ + object, + uuid(F235855F-F06D-45B3-A63F-EE4B71509DC2), + pointer_default(unique) +] +interface IApoAcousticEchoCancellation2 : IApoAcousticEchoCancellation +{ + HRESULT GetDesiredReferenceStreamProperties ([out] APO_REFERENCE_STREAM_PROPERTIES* pProperties); +}; + +// +// This is the structure that gets passed to the system effects APO for +// initialization. +// +typedef struct APOInitSystemEffects +{ + APOInitBaseStruct APOInit; // currently defined in AudioEngineBaseAPO.idl + IPropertyStore *pAPOEndpointProperties; + IPropertyStore *pAPOSystemEffectsProperties; + void *pReserved; // TBD for Transport Endpoint interface + IMMDeviceCollection *pDeviceCollection; // A collection of Endpoint, Topology filter, Wave filter. +} APOInitSystemEffects; + +// +// This is the structure that gets passed to a mode-aware system effects APO +// for initialization. +// +typedef struct APOInitSystemEffects2 +{ + APOInitBaseStruct APOInit; + IPropertyStore *pAPOEndpointProperties; + IPropertyStore *pAPOSystemEffectsProperties; + void *pReserved; + IMMDeviceCollection *pDeviceCollection; + UINT nSoftwareIoDeviceInCollection; + UINT nSoftwareIoConnectorIndex; + GUID AudioProcessingMode; + BOOL InitializeForDiscoveryOnly; +} APOInitSystemEffects2; + +// +// This is the structure that is passed to the system effects ControlPanel +// Extension PropertyPage via IShellPropSheetExt::AddPages +// +typedef struct +{ + LPARAM AddPageParam; + LPWSTR pwstrEndpointID; + IPropertyStore* pFxProperties; +} AudioFXExtensionParams; + +// ---------------------------------------------------------------------- +// _GFX_ properties + +// PKEY_FX_Association: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},0 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_Association, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 0);") + +// PKEY_FX_PreMixEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},1 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_PreMixEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 1);") + +// PKEY_FX_PostMixEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},2 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_PostMixEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 2);") + +// PKEY_FX_UserInterfaceClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},3 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_UserInterfaceClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 3);") + +// PKEY_FX_FriendlyName: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},4 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_FriendlyName, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 4);") + +// PKEY_FX_StreamEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},5 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 5);") + +// PKEY_FX_ModeEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},6 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 6);") + +// PKEY_FX_EndpointEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},7 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_EndpointEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 7);") + +// PKEY_FX_KeywordDetector_StreamEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},8 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_KeywordDetector_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 8);") + +// PKEY_FX_KeywordDetector_ModeEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},9 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_KeywordDetector_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 9);") + +// PKEY_FX_KeywordDetector_EndpointEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},10 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_KeywordDetector_EndpointEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 10);") + +// PKEY_FX_Offload_StreamEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},11 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_Offload_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 11);") + +// PKEY_FX_Offload_ModeEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},12 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_Offload_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 12);") + +// PKEY_CompositeFX_StreamEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},13 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_CompositeFX_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 13);") + +// PKEY_CompositeFX_ModeEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},14 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_CompositeFX_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 14);") + +// PKEY_CompositeFX_EndpointEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},15 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_CompositeFX_EndpointEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 15);") + +// PKEY_CompositeFX_KeywordDetector_StreamEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},16 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_CompositeFX_KeywordDetector_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 16);") + +// PKEY_CompositeFX_KeywordDetector_ModeEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},17 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_CompositeFX_KeywordDetector_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 17);") + +// PKEY_CompositeFX_KeywordDetector_EndpointEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},18 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_CompositeFX_KeywordDetector_EndpointEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 18);") + +// PKEY_CompositeFX_Offload_StreamEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},19 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_CompositeFX_Offload_StreamEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 19);") + +// PKEY_CompositeFX_Offload_ModeEffectClsid: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},20 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_CompositeFX_Offload_ModeEffectClsid, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 20);") + +// PKEY_FX_SupportAppLauncher: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},21 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_SupportAppLauncher, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 21);") + +// PKEY_FX_SupportedFormats: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},22 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_SupportedFormats, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 22);") + +// PKEY_FX_Enumerator: +// vartype = VT_VECTOR | VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},23 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_Enumerator, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 23);") + +// PKEY_FX_VersionMajor: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},24 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_VersionMajor, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 24);") + +// PKEY_FX_VersionMinor: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},25 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_VersionMinor, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 25);") + +// PKEY_FX_Author: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},26 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_Author, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 26);") + +// PKEY_FX_ObjectId: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},27 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_ObjectId, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 27);") + +// PKEY_FX_State: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},28 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_State, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 28);") + +// PKEY_FX_EffectPackSchema_Version: +// vartype = VT_LPWSTR +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},29 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_EffectPackSchema_Version, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 29);") + +// PKEY_FX_ApplyToBluetooth: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},30 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_ApplyToBluetooth, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 30);") + +// PKEY_FX_ApplyToUsb: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},31 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_ApplyToUsb, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 31);") + +// PKEY_FX_ApplyToRender: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},32 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_ApplyToRender, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 32);") + +// PKEY_FX_ApplyToCapture: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},33 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_ApplyToCapture, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 33);") + +// PKEY_FX_RequestSetAsDefault: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},34 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_RequestSetAsDefault, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 34);") + +// PKEY_FX_RequestSetAsDefaultPriority: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},35 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_RequestSetAsDefaultPriority, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 35);") + +// PKEY_FX_OEM_Preferred_EffectPack_Id: +// vartype = VT_I4 +// {D04E05A6-594B-4FB6-A80D-01AF5EED7D1D},36 +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_FX_OEM_Preferred_EffectPack_Id, 0xD04E05A6, 0x594B, 0x4fb6, 0xA8, 0x0D, 0x01, 0xAF, 0x5E, 0xED, 0x7D, 0x1D, 36);") + + +// PKEY_SFX_ProcessingModes_Supported_For_Streaming: +// vartype = VT_VECTOR | VT_LPWSTR +// {D3993A3F-99C2-4402-B5EC-A92A0367664B},5 +// Lists the signal processing modes supported by the stream effect APO. This list only includes signal processing modes where the APO actually +// processes the audio signal during streaming. This list does not include any signal processing modes supported by the APO for discovery purposes only. +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_SFX_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 5);") + +// PKEY_MFX_ProcessingModes_Supported_For_Streaming: +// vartype = VT_VECTOR | VT_LPWSTR +// {D3993A3F-99C2-4402-B5EC-A92A0367664B},6 +// Lists the signal processing modes supported by the mode effect APO. This list only includes signal processing modes where the APO actually +// processes the audio signal during streaming. This list does not include any signal processing modes supported by the APO for discovery purposes only. +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_MFX_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 6);") + +// PKEY_EFX_ProcessingModes_Supported_For_Streaming: +// vartype = VT_VECTOR | VT_LPWSTR +// {D3993A3F-99C2-4402-B5EC-A92A0367664B},7 +// Lists the signal processing modes supported by the endpoint effect APO. This list only includes signal processing modes where the APO actually +// processes the audio signal during streaming. This list does not include any signal processing modes supported by the APO for discovery purposes only. +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_EFX_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 7);") + +// PKEY_SFX_KeywordDetector_ProcessingModes_Supported_For_Streaming: +// vartype = VT_VECTOR | VT_LPWSTR +// {D3993A3F-99C2-4402-B5EC-A92A0367664B},8 +// Lists the signal processing modes supported by the stream effect APO. This list only includes signal processing modes where the APO actually +// processes the audio signal during streaming. This list does not include any signal processing modes supported by the APO for discovery purposes only. +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_SFX_KeywordDetector_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 8);") + +// PKEY_MFX_KeywordDetector_ProcessingModes_Supported_For_Streaming: +// vartype = VT_VECTOR | VT_LPWSTR +// {D3993A3F-99C2-4402-B5EC-A92A0367664B},9 +// Lists the signal processing modes supported by the mode effect APO. This list only includes signal processing modes where the APO actually +// processes the audio signal during streaming. This list does not include any signal processing modes supported by the APO for discovery purposes only. +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_MFX_KeywordDetector_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 9);") + +// PKEY_EFX_KeywordDetector_ProcessingModes_Supported_For_Streaming: +// vartype = VT_VECTOR | VT_LPWSTR +// {D3993A3F-99C2-4402-B5EC-A92A0367664B},10 +// Lists the signal processing modes supported by the endpoint effect APO. This list only includes signal processing modes where the APO actually +// processes the audio signal during streaming. This list does not include any signal processing modes supported by the APO for discovery purposes only. +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_EFX_KeywordDetector_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 10);") + +// PKEY_SFX_Offload_ProcessingModes_Supported_For_Streaming: +// vartype = VT_VECTOR | VT_LPWSTR +// {D3993A3F-99C2-4402-B5EC-A92A0367664B},11 +// Lists the signal processing modes supported by the stream effect APO. This list only includes signal processing modes where the APO actually +// processes the audio signal during streaming. This list does not include any signal processing modes supported by the APO for discovery purposes only. +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_SFX_Offload_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 11);") + +// PKEY_MFX_Offload_ProcessingModes_Supported_For_Streaming: +// vartype = VT_VECTOR | VT_LPWSTR +// {D3993A3F-99C2-4402-B5EC-A92A0367664B},12 +// Lists the signal processing modes supported by the mode effect APO. This list only includes signal processing modes where the APO actually +// processes the audio signal during streaming. This list does not include any signal processing modes supported by the APO for discovery purposes only. +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_MFX_Offload_ProcessingModes_Supported_For_Streaming, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 12);") + +// PKEY_APO_SWFallback_ProcessingModes: +// vartype = VT_VECTOR | VT_LPWSTR +// {D3993A3F-99C2-4402-B5EC-A92A0367664B},13 +// Lists the signal processing modes supported by the host connector that are available for fallback to SW APO if sufficient HW resources +// aren't available. +cpp_quote ("DEFINE_PROPERTYKEY(PKEY_APO_SWFallback_ProcessingModes, 0xd3993a3f, 0x99c2, 0x4402, 0xb5, 0xec, 0xa9, 0x2a, 0x3, 0x67, 0x66, 0x4b, 13);") + +// PKEY_FX_EffectPack_Schema_V1: +// {7abf23d9-727e-4d0b-86a3-dd501d260001} +// Effect pack schema version 1 GUID, used with PKEY_FX_EffectPackSchema_Version +cpp_quote ("DEFINE_GUID(PKEY_FX_EffectPack_Schema_V1, 0x7abf23d9, 0x727e, 0x4d0b, 0x86, 0xa3, 0xdd, 0x50, 0x1d, 0x26, 0x0, 0x1);") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioengineextensionapo.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioengineextensionapo.h new file mode 100644 index 0000000000000000000000000000000000000000..27a6e939d9259c57e089d5319b84c0f60e1fdee6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioengineextensionapo.h @@ -0,0 +1,954 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __audioengineextensionapo_h__ +#define __audioengineextensionapo_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAudioSystemEffects3_FWD_DEFINED__ +#define __IAudioSystemEffects3_FWD_DEFINED__ +typedef interface IAudioSystemEffects3 IAudioSystemEffects3; + +#endif /* __IAudioSystemEffects3_FWD_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectRTQueueService_FWD_DEFINED__ +#define __IAudioProcessingObjectRTQueueService_FWD_DEFINED__ +typedef interface IAudioProcessingObjectRTQueueService IAudioProcessingObjectRTQueueService; + +#endif /* __IAudioProcessingObjectRTQueueService_FWD_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectLoggingService_FWD_DEFINED__ +#define __IAudioProcessingObjectLoggingService_FWD_DEFINED__ +typedef interface IAudioProcessingObjectLoggingService IAudioProcessingObjectLoggingService; + +#endif /* __IAudioProcessingObjectLoggingService_FWD_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectPreferredFormatSupport_FWD_DEFINED__ +#define __IAudioProcessingObjectPreferredFormatSupport_FWD_DEFINED__ +typedef interface IAudioProcessingObjectPreferredFormatSupport IAudioProcessingObjectPreferredFormatSupport; + +#endif /* __IAudioProcessingObjectPreferredFormatSupport_FWD_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectNotifications_FWD_DEFINED__ +#define __IAudioProcessingObjectNotifications_FWD_DEFINED__ +typedef interface IAudioProcessingObjectNotifications IAudioProcessingObjectNotifications; + +#endif /* __IAudioProcessingObjectNotifications_FWD_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectNotifications2_FWD_DEFINED__ +#define __IAudioProcessingObjectNotifications2_FWD_DEFINED__ +typedef interface IAudioProcessingObjectNotifications2 IAudioProcessingObjectNotifications2; + +#endif /* __IAudioProcessingObjectNotifications2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "audioenginebaseapo.h" +#include "endpointvolume.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_audioengineextensionapo_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#ifdef DEFINE_PROPERTYKEY +#undef DEFINE_PROPERTYKEY +#endif +#ifdef INITGUID +#define DEFINE_PROPERTYKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const PROPERTYKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid } +#else +#define DEFINE_PROPERTYKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const PROPERTYKEY name +#endif // INITGUID +typedef /* [v1_enum] */ +enum AUDIO_SYSTEMEFFECT_STATE + { + AUDIO_SYSTEMEFFECT_STATE_OFF = 0, + AUDIO_SYSTEMEFFECT_STATE_ON = ( AUDIO_SYSTEMEFFECT_STATE_OFF + 1 ) + } AUDIO_SYSTEMEFFECT_STATE; + +typedef struct AUDIO_SYSTEMEFFECT + { + GUID id; + BOOL canSetState; + AUDIO_SYSTEMEFFECT_STATE state; + } AUDIO_SYSTEMEFFECT; + + + +extern RPC_IF_HANDLE __MIDL_itf_audioengineextensionapo_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioengineextensionapo_0000_0000_v0_0_s_ifspec; + +#ifndef __IAudioSystemEffects3_INTERFACE_DEFINED__ +#define __IAudioSystemEffects3_INTERFACE_DEFINED__ + +/* interface IAudioSystemEffects3 */ +/* [uuid][object][local] */ + + +EXTERN_C const IID IID_IAudioSystemEffects3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C58B31CD-FC6A-4255-BC1F-AD29BB0A4A17") + IAudioSystemEffects3 : public IAudioSystemEffects2 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetControllableSystemEffectsList( + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_maybenull_(*numEffects) AUDIO_SYSTEMEFFECT **effects, + /* [annotation][out] */ + _Out_ UINT *numEffects, + /* [annotation][in] */ + _In_opt_ HANDLE event) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAudioSystemEffectState( + /* [in] */ GUID effectId, + /* [in] */ AUDIO_SYSTEMEFFECT_STATE state) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSystemEffects3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioSystemEffects3 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioSystemEffects3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioSystemEffects3 * This); + + DECLSPEC_XFGVIRT(IAudioSystemEffects2, GetEffectsList) + HRESULT ( STDMETHODCALLTYPE *GetEffectsList )( + IAudioSystemEffects3 * This, + /* [annotation][out] */ + _Outptr_result_buffer_maybenull_(*pcEffects) LPGUID *ppEffectsIds, + /* [annotation][out] */ + _Out_ UINT *pcEffects, + /* [annotation][in] */ + _In_ HANDLE Event); + + DECLSPEC_XFGVIRT(IAudioSystemEffects3, GetControllableSystemEffectsList) + HRESULT ( STDMETHODCALLTYPE *GetControllableSystemEffectsList )( + IAudioSystemEffects3 * This, + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_maybenull_(*numEffects) AUDIO_SYSTEMEFFECT **effects, + /* [annotation][out] */ + _Out_ UINT *numEffects, + /* [annotation][in] */ + _In_opt_ HANDLE event); + + DECLSPEC_XFGVIRT(IAudioSystemEffects3, SetAudioSystemEffectState) + HRESULT ( STDMETHODCALLTYPE *SetAudioSystemEffectState )( + IAudioSystemEffects3 * This, + /* [in] */ GUID effectId, + /* [in] */ AUDIO_SYSTEMEFFECT_STATE state); + + END_INTERFACE + } IAudioSystemEffects3Vtbl; + + interface IAudioSystemEffects3 + { + CONST_VTBL struct IAudioSystemEffects3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSystemEffects3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSystemEffects3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSystemEffects3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + + +#define IAudioSystemEffects3_GetEffectsList(This,ppEffectsIds,pcEffects,Event) \ + ( (This)->lpVtbl -> GetEffectsList(This,ppEffectsIds,pcEffects,Event) ) + + +#define IAudioSystemEffects3_GetControllableSystemEffectsList(This,effects,numEffects,event) \ + ( (This)->lpVtbl -> GetControllableSystemEffectsList(This,effects,numEffects,event) ) + +#define IAudioSystemEffects3_SetAudioSystemEffectState(This,effectId,state) \ + ( (This)->lpVtbl -> SetAudioSystemEffectState(This,effectId,state) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSystemEffects3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioengineextensionapo_0000_0001 */ +/* [local] */ + +typedef struct APOInitSystemEffects3 + { + APOInitBaseStruct APOInit; + IPropertyStore *pAPOEndpointProperties; + IServiceProvider *pServiceProvider; + IMMDeviceCollection *pDeviceCollection; + UINT nSoftwareIoDeviceInCollection; + UINT nSoftwareIoConnectorIndex; + GUID AudioProcessingMode; + BOOL InitializeForDiscoveryOnly; + } APOInitSystemEffects3; + +typedef struct AcousticEchoCanceller_Reference_Input + { + APOInitSystemEffects3 apoInitSystemEffects; + APO_REFERENCE_STREAM_PROPERTIES streamProperties; + } AcousticEchoCanceller_Reference_Input; + + + +extern RPC_IF_HANDLE __MIDL_itf_audioengineextensionapo_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioengineextensionapo_0000_0001_v0_0_s_ifspec; + +#ifndef __IAudioProcessingObjectRTQueueService_INTERFACE_DEFINED__ +#define __IAudioProcessingObjectRTQueueService_INTERFACE_DEFINED__ + +/* interface IAudioProcessingObjectRTQueueService */ +/* [local][uuid][object] */ + + +EXTERN_C const IID IID_IAudioProcessingObjectRTQueueService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ACD65E2F-955B-4B57-B9BF-AC297BB752C9") + IAudioProcessingObjectRTQueueService : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRealTimeWorkQueue( + /* [annotation][out] */ + _Out_ DWORD *workQueueId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioProcessingObjectRTQueueServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioProcessingObjectRTQueueService * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioProcessingObjectRTQueueService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioProcessingObjectRTQueueService * This); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectRTQueueService, GetRealTimeWorkQueue) + HRESULT ( STDMETHODCALLTYPE *GetRealTimeWorkQueue )( + IAudioProcessingObjectRTQueueService * This, + /* [annotation][out] */ + _Out_ DWORD *workQueueId); + + END_INTERFACE + } IAudioProcessingObjectRTQueueServiceVtbl; + + interface IAudioProcessingObjectRTQueueService + { + CONST_VTBL struct IAudioProcessingObjectRTQueueServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioProcessingObjectRTQueueService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioProcessingObjectRTQueueService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioProcessingObjectRTQueueService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioProcessingObjectRTQueueService_GetRealTimeWorkQueue(This,workQueueId) \ + ( (This)->lpVtbl -> GetRealTimeWorkQueue(This,workQueueId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioProcessingObjectRTQueueService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioengineextensionapo_0000_0002 */ +/* [local] */ + +DEFINE_GUID(SID_AudioProcessingObjectRTQueue, 0x458c1a1f, 0x6899, 0x4c12, 0x99, 0xac, 0xe2, 0xe6, 0xac, 0x25, 0x31, 0x4); +typedef +enum APO_LOG_LEVEL + { + APO_LOG_LEVEL_ALWAYS = 0, + APO_LOG_LEVEL_CRITICAL = 1, + APO_LOG_LEVEL_ERROR = 2, + APO_LOG_LEVEL_WARNING = 3, + APO_LOG_LEVEL_INFO = 4, + APO_LOG_LEVEL_VERBOSE = 5 + } APO_LOG_LEVEL; + + + +extern RPC_IF_HANDLE __MIDL_itf_audioengineextensionapo_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioengineextensionapo_0000_0002_v0_0_s_ifspec; + +#ifndef __IAudioProcessingObjectLoggingService_INTERFACE_DEFINED__ +#define __IAudioProcessingObjectLoggingService_INTERFACE_DEFINED__ + +/* interface IAudioProcessingObjectLoggingService */ +/* [local][uuid][object] */ + + +EXTERN_C const IID IID_IAudioProcessingObjectLoggingService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("698f0107-1745-4708-95a5-d84478a62a65") + IAudioProcessingObjectLoggingService : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE ApoLog( + /* [in] */ APO_LOG_LEVEL level, + /* [annotation][in] */ + _In_ LPCWSTR format, + ...) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioProcessingObjectLoggingServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioProcessingObjectLoggingService * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioProcessingObjectLoggingService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioProcessingObjectLoggingService * This); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectLoggingService, ApoLog) + void ( STDMETHODCALLTYPE *ApoLog )( + IAudioProcessingObjectLoggingService * This, + /* [in] */ APO_LOG_LEVEL level, + /* [annotation][in] */ + _In_ LPCWSTR format, + ...); + + END_INTERFACE + } IAudioProcessingObjectLoggingServiceVtbl; + + interface IAudioProcessingObjectLoggingService + { + CONST_VTBL struct IAudioProcessingObjectLoggingServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioProcessingObjectLoggingService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioProcessingObjectLoggingService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioProcessingObjectLoggingService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioProcessingObjectLoggingService_ApoLog(This,level,format,...) \ + ( (This)->lpVtbl -> ApoLog(This,level,format,...) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioProcessingObjectLoggingService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioengineextensionapo_0000_0003 */ +/* [local] */ + +DEFINE_GUID(SID_AudioProcessingObjectLoggingService, 0x8b8008af, 0x9f9, 0x456e, 0xa1, 0x73, 0xbd, 0xb5, 0x84, 0x99, 0xbc, 0xe7); +typedef +enum APO_NOTIFICATION_TYPE + { + APO_NOTIFICATION_TYPE_NONE = 0, + APO_NOTIFICATION_TYPE_ENDPOINT_VOLUME = 1, + APO_NOTIFICATION_TYPE_ENDPOINT_PROPERTY_CHANGE = 2, + APO_NOTIFICATION_TYPE_SYSTEM_EFFECTS_PROPERTY_CHANGE = 3, + APO_NOTIFICATION_TYPE_ENDPOINT_VOLUME2 = 4, + APO_NOTIFICATION_TYPE_DEVICE_ORIENTATION = 5, + APO_NOTIFICATION_TYPE_MICROPHONE_BOOST = 6, + APO_NOTIFICATION_TYPE_AUDIO_ENVIRONMENT_STATE_CHANGE = 7 + } APO_NOTIFICATION_TYPE; + +typedef struct AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION + { + IMMDevice *endpoint; + PAUDIO_VOLUME_NOTIFICATION_DATA volume; + } AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION; + +typedef struct AUDIO_ENDPOINT_PROPERTY_CHANGE_NOTIFICATION + { + IMMDevice *endpoint; + IPropertyStore *propertyStore; + PROPERTYKEY propertyKey; + } AUDIO_ENDPOINT_PROPERTY_CHANGE_NOTIFICATION; + +typedef struct AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_NOTIFICATION + { + IMMDevice *endpoint; + GUID propertyStoreContext; + AUDIO_SYSTEMEFFECTS_PROPERTYSTORE_TYPE propertyStoreType; + IPropertyStore *propertyStore; + PROPERTYKEY propertyKey; + } AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_NOTIFICATION; + +typedef struct AUDIO_VOLUME_NOTIFICATION_DATA2 + { + PAUDIO_VOLUME_NOTIFICATION_DATA notificationData; + float masterVolumeInDb; + float volumeMinInDb; + float volumeMaxInDb; + float volumeIncrementInDb; + UINT step; + UINT stepCount; + float channelVolumesInDb[ 1 ]; + } AUDIO_VOLUME_NOTIFICATION_DATA2; + +typedef struct AUDIO_VOLUME_NOTIFICATION_DATA2 *PAUDIO_VOLUME_NOTIFICATION_DATA2; + +typedef struct AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION2 + { + IMMDevice *endpoint; + PAUDIO_VOLUME_NOTIFICATION_DATA2 volume; + } AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION2; + +typedef +enum DEVICE_ORIENTATION_TYPE + { + DEVICE_NOT_ROTATED = 0, + DEVICE_ROTATED_90_DEGREES_CLOCKWISE = ( DEVICE_NOT_ROTATED + 1 ) , + DEVICE_ROTATED_180_DEGREES_CLOCKWISE = ( DEVICE_ROTATED_90_DEGREES_CLOCKWISE + 1 ) , + DEVICE_ROTATED_270_DEGREES_CLOCKWISE = ( DEVICE_ROTATED_180_DEGREES_CLOCKWISE + 1 ) + } DEVICE_ORIENTATION_TYPE; + +typedef struct AUDIO_MICROPHONE_BOOST_NOTIFICATION + { + IMMDevice *endpoint; + GUID eventContext; + BOOL microphoneBoostEnabled; + float levelInDb; + float levelMinInDb; + float levelMaxInDb; + float levelStepInDb; + BOOL muteSupported; + BOOL mute; + } AUDIO_MICROPHONE_BOOST_NOTIFICATION; + +DEFINE_PROPERTYKEY(PKEY_AudioEnvironment_SpatialAudioActive, 0x4AFB7B88, 0xA653, 0x44A5, 0x99, 0xDB, 0x68, 0x7F, 0xD7, 0x4A, 0xF0, 0xBB, 2); +typedef struct AUDIO_ENVIRONMENT_STATE_CHANGE_NOTIFICATION + { + IPropertyStore *propertyStore; + PROPERTYKEY propertyKey; + } AUDIO_ENVIRONMENT_STATE_CHANGE_NOTIFICATION; + +typedef struct APO_NOTIFICATION + { + APO_NOTIFICATION_TYPE type; + union + { + AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION audioEndpointVolumeChange; + AUDIO_ENDPOINT_PROPERTY_CHANGE_NOTIFICATION audioEndpointPropertyChange; + AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_NOTIFICATION audioSystemEffectsPropertyChange; + AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION2 audioEndpointVolumeChange2; + DEVICE_ORIENTATION_TYPE deviceOrientation; + AUDIO_MICROPHONE_BOOST_NOTIFICATION audioMicrophoneBoostChange; + AUDIO_ENVIRONMENT_STATE_CHANGE_NOTIFICATION audioEnvironmentChange; + } DUMMYUNIONNAME; + } APO_NOTIFICATION; + +typedef struct AUDIO_ENDPOINT_VOLUME_APO_NOTIFICATION_DESCRIPTOR + { + IMMDevice *device; + } AUDIO_ENDPOINT_VOLUME_APO_NOTIFICATION_DESCRIPTOR; + +typedef struct AUDIO_ENDPOINT_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR + { + IMMDevice *device; + } AUDIO_ENDPOINT_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR; + +typedef struct AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR + { + IMMDevice *device; + GUID propertyStoreContext; + } AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR; + +typedef struct AUDIO_MICROPHONE_BOOST_APO_NOTIFICATION_DESCRIPTOR + { + IMMDevice *device; + } AUDIO_MICROPHONE_BOOST_APO_NOTIFICATION_DESCRIPTOR; + +typedef struct APO_NOTIFICATION_DESCRIPTOR + { + APO_NOTIFICATION_TYPE type; + union + { + AUDIO_ENDPOINT_VOLUME_APO_NOTIFICATION_DESCRIPTOR audioEndpointVolume; + AUDIO_ENDPOINT_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR audioEndpointPropertyChange; + AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR audioSystemEffectsPropertyChange; + AUDIO_MICROPHONE_BOOST_APO_NOTIFICATION_DESCRIPTOR audioMicrophoneBoost; + } DUMMYUNIONNAME; + } APO_NOTIFICATION_DESCRIPTOR; + + + +extern RPC_IF_HANDLE __MIDL_itf_audioengineextensionapo_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioengineextensionapo_0000_0003_v0_0_s_ifspec; + +#ifndef __IAudioProcessingObjectPreferredFormatSupport_INTERFACE_DEFINED__ +#define __IAudioProcessingObjectPreferredFormatSupport_INTERFACE_DEFINED__ + +/* interface IAudioProcessingObjectPreferredFormatSupport */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IAudioProcessingObjectPreferredFormatSupport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51CBD3C4-F1F3-4D2F-A0E1-7E9C4DD0FEB3") + IAudioProcessingObjectPreferredFormatSupport : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPreferredInputFormat( + /* [in] */ IAudioMediaType *outputFormat, + /* [out] */ IAudioMediaType **preferredFormat) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPreferredOutputFormat( + /* [in] */ IAudioMediaType *inputFormat, + /* [out] */ IAudioMediaType **preferredFormat) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioProcessingObjectPreferredFormatSupportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioProcessingObjectPreferredFormatSupport * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioProcessingObjectPreferredFormatSupport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioProcessingObjectPreferredFormatSupport * This); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectPreferredFormatSupport, GetPreferredInputFormat) + HRESULT ( STDMETHODCALLTYPE *GetPreferredInputFormat )( + IAudioProcessingObjectPreferredFormatSupport * This, + /* [in] */ IAudioMediaType *outputFormat, + /* [out] */ IAudioMediaType **preferredFormat); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectPreferredFormatSupport, GetPreferredOutputFormat) + HRESULT ( STDMETHODCALLTYPE *GetPreferredOutputFormat )( + IAudioProcessingObjectPreferredFormatSupport * This, + /* [in] */ IAudioMediaType *inputFormat, + /* [out] */ IAudioMediaType **preferredFormat); + + END_INTERFACE + } IAudioProcessingObjectPreferredFormatSupportVtbl; + + interface IAudioProcessingObjectPreferredFormatSupport + { + CONST_VTBL struct IAudioProcessingObjectPreferredFormatSupportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioProcessingObjectPreferredFormatSupport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioProcessingObjectPreferredFormatSupport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioProcessingObjectPreferredFormatSupport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioProcessingObjectPreferredFormatSupport_GetPreferredInputFormat(This,outputFormat,preferredFormat) \ + ( (This)->lpVtbl -> GetPreferredInputFormat(This,outputFormat,preferredFormat) ) + +#define IAudioProcessingObjectPreferredFormatSupport_GetPreferredOutputFormat(This,inputFormat,preferredFormat) \ + ( (This)->lpVtbl -> GetPreferredOutputFormat(This,inputFormat,preferredFormat) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioProcessingObjectPreferredFormatSupport_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectNotifications_INTERFACE_DEFINED__ +#define __IAudioProcessingObjectNotifications_INTERFACE_DEFINED__ + +/* interface IAudioProcessingObjectNotifications */ +/* [local][uuid][object] */ + + +EXTERN_C const IID IID_IAudioProcessingObjectNotifications; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56B0C76F-02FD-4B21-A52E-9F8219FC86E4") + IAudioProcessingObjectNotifications : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetApoNotificationRegistrationInfo( + /* [annotation][out] */ + _Out_writes_(*count) APO_NOTIFICATION_DESCRIPTOR **apoNotifications, + /* [annotation][out] */ + _Out_ DWORD *count) = 0; + + virtual void STDMETHODCALLTYPE HandleNotification( + /* [annotation][in] */ + _In_ APO_NOTIFICATION *apoNotification) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioProcessingObjectNotificationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioProcessingObjectNotifications * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioProcessingObjectNotifications * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioProcessingObjectNotifications * This); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectNotifications, GetApoNotificationRegistrationInfo) + HRESULT ( STDMETHODCALLTYPE *GetApoNotificationRegistrationInfo )( + IAudioProcessingObjectNotifications * This, + /* [annotation][out] */ + _Out_writes_(*count) APO_NOTIFICATION_DESCRIPTOR **apoNotifications, + /* [annotation][out] */ + _Out_ DWORD *count); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectNotifications, HandleNotification) + void ( STDMETHODCALLTYPE *HandleNotification )( + IAudioProcessingObjectNotifications * This, + /* [annotation][in] */ + _In_ APO_NOTIFICATION *apoNotification); + + END_INTERFACE + } IAudioProcessingObjectNotificationsVtbl; + + interface IAudioProcessingObjectNotifications + { + CONST_VTBL struct IAudioProcessingObjectNotificationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioProcessingObjectNotifications_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioProcessingObjectNotifications_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioProcessingObjectNotifications_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioProcessingObjectNotifications_GetApoNotificationRegistrationInfo(This,apoNotifications,count) \ + ( (This)->lpVtbl -> GetApoNotificationRegistrationInfo(This,apoNotifications,count) ) + +#define IAudioProcessingObjectNotifications_HandleNotification(This,apoNotification) \ + ( (This)->lpVtbl -> HandleNotification(This,apoNotification) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioProcessingObjectNotifications_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioProcessingObjectNotifications2_INTERFACE_DEFINED__ +#define __IAudioProcessingObjectNotifications2_INTERFACE_DEFINED__ + +/* interface IAudioProcessingObjectNotifications2 */ +/* [local][uuid][object] */ + + +EXTERN_C const IID IID_IAudioProcessingObjectNotifications2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ca2cfbde-a9d6-4eb0-bc95-c4d026b380f0") + IAudioProcessingObjectNotifications2 : public IAudioProcessingObjectNotifications + { + public: + virtual HRESULT STDMETHODCALLTYPE GetApoNotificationRegistrationInfo2( + APO_NOTIFICATION_TYPE maxApoNotificationTypeSupported, + /* [annotation][out] */ + _Out_writes_(count) APO_NOTIFICATION_DESCRIPTOR **apoNotifications, + /* [annotation][out] */ + _Out_ DWORD *count) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioProcessingObjectNotifications2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioProcessingObjectNotifications2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioProcessingObjectNotifications2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioProcessingObjectNotifications2 * This); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectNotifications, GetApoNotificationRegistrationInfo) + HRESULT ( STDMETHODCALLTYPE *GetApoNotificationRegistrationInfo )( + IAudioProcessingObjectNotifications2 * This, + /* [annotation][out] */ + _Out_writes_(*count) APO_NOTIFICATION_DESCRIPTOR **apoNotifications, + /* [annotation][out] */ + _Out_ DWORD *count); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectNotifications, HandleNotification) + void ( STDMETHODCALLTYPE *HandleNotification )( + IAudioProcessingObjectNotifications2 * This, + /* [annotation][in] */ + _In_ APO_NOTIFICATION *apoNotification); + + DECLSPEC_XFGVIRT(IAudioProcessingObjectNotifications2, GetApoNotificationRegistrationInfo2) + HRESULT ( STDMETHODCALLTYPE *GetApoNotificationRegistrationInfo2 )( + IAudioProcessingObjectNotifications2 * This, + APO_NOTIFICATION_TYPE maxApoNotificationTypeSupported, + /* [annotation][out] */ + _Out_writes_(count) APO_NOTIFICATION_DESCRIPTOR **apoNotifications, + /* [annotation][out] */ + _Out_ DWORD *count); + + END_INTERFACE + } IAudioProcessingObjectNotifications2Vtbl; + + interface IAudioProcessingObjectNotifications2 + { + CONST_VTBL struct IAudioProcessingObjectNotifications2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioProcessingObjectNotifications2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioProcessingObjectNotifications2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioProcessingObjectNotifications2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioProcessingObjectNotifications2_GetApoNotificationRegistrationInfo(This,apoNotifications,count) \ + ( (This)->lpVtbl -> GetApoNotificationRegistrationInfo(This,apoNotifications,count) ) + +#define IAudioProcessingObjectNotifications2_HandleNotification(This,apoNotification) \ + ( (This)->lpVtbl -> HandleNotification(This,apoNotification) ) + + +#define IAudioProcessingObjectNotifications2_GetApoNotificationRegistrationInfo2(This,maxApoNotificationTypeSupported,apoNotifications,count) \ + ( (This)->lpVtbl -> GetApoNotificationRegistrationInfo2(This,maxApoNotificationTypeSupported,apoNotifications,count) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioProcessingObjectNotifications2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audioengineextensionapo_0000_0006 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_audioengineextensionapo_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audioengineextensionapo_0000_0006_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioengineextensionapo.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioengineextensionapo.idl new file mode 100644 index 0000000000000000000000000000000000000000..0ce8af8e4057b16c773b892ba7052f7c4657f4ff --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audioengineextensionapo.idl @@ -0,0 +1,412 @@ +// +// Copyright (C) Microsoft Corporation. All rights reserved. +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "audioenginebaseapo.idl"; +import "endpointvolume.idl"; + +import "propsys.idl"; + +// public property keys + +cpp_quote("#ifdef DEFINE_PROPERTYKEY") +cpp_quote("#undef DEFINE_PROPERTYKEY") +cpp_quote("#endif") + +cpp_quote("#ifdef INITGUID") +cpp_quote("#define DEFINE_PROPERTYKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const PROPERTYKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }") +cpp_quote("#else") +cpp_quote("#define DEFINE_PROPERTYKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const PROPERTYKEY name") +cpp_quote("#endif // INITGUID") + + +typedef [v1_enum] enum AUDIO_SYSTEMEFFECT_STATE +{ + AUDIO_SYSTEMEFFECT_STATE_OFF = 0, + AUDIO_SYSTEMEFFECT_STATE_ON +} AUDIO_SYSTEMEFFECT_STATE; + +typedef struct AUDIO_SYSTEMEFFECT +{ + GUID id; + BOOL canSetState; + AUDIO_SYSTEMEFFECT_STATE state; +} AUDIO_SYSTEMEFFECT; + +// +// This is the interface by which system effects the implement and use the new settings, notification, logging and threading frameworks get identified. +// +[ + local, + object, + uuid(C58B31CD-FC6A-4255-BC1F-AD29BB0A4A17) +] +interface IAudioSystemEffects3 : IAudioSystemEffects2 +{ + HRESULT GetControllableSystemEffectsList( + [out, size_is(, *numEffects), annotation("_Outptr_result_buffer_maybenull_(*numEffects)")] AUDIO_SYSTEMEFFECT** effects, + [out, annotation("_Out_")] UINT* numEffects, + [in, annotation("_In_opt_")] HANDLE event); + + HRESULT SetAudioSystemEffectState( + [in] GUID effectId, + [in] AUDIO_SYSTEMEFFECT_STATE state); +} + +typedef struct APOInitSystemEffects3 +{ + APOInitBaseStruct APOInit; + IPropertyStore *pAPOEndpointProperties; + IServiceProvider *pServiceProvider; + IMMDeviceCollection *pDeviceCollection; + UINT nSoftwareIoDeviceInCollection; + UINT nSoftwareIoConnectorIndex; + GUID AudioProcessingMode; + BOOL InitializeForDiscoveryOnly; +} APOInitSystemEffects3; + +//----------------------------------------------------------------------------- +// Description: This structure contains expanded information pertaining to the +// configuration of the loopback provided to the AEC. +// +typedef struct AcousticEchoCanceller_Reference_Input +{ + APOInitSystemEffects3 apoInitSystemEffects; + APO_REFERENCE_STREAM_PROPERTIES streamProperties; +} AcousticEchoCanceller_Reference_Input; + +// +// Interface used by the threading framework to get the work queue id. +// +[ + object, + uuid(ACD65E2F-955B-4B57-B9BF-AC297BB752C9), + local +] +interface IAudioProcessingObjectRTQueueService : IUnknown +{ + HRESULT GetRealTimeWorkQueue([out, annotation("_Out_")] DWORD* workQueueId); +} + +// {458C1A1F-6899-4C12-99AC-E2E6AC253104} +cpp_quote("DEFINE_GUID(SID_AudioProcessingObjectRTQueue, 0x458c1a1f, 0x6899, 0x4c12, 0x99, 0xac, 0xe2, 0xe6, 0xac, 0x25, 0x31, 0x4);") + +// +// Interface used by the logging framework to associate all trace logging from the same APO with the same etw activity id. +// +typedef enum APO_LOG_LEVEL +{ + APO_LOG_LEVEL_ALWAYS = 0, + APO_LOG_LEVEL_CRITICAL = 1, // Abnormal exit or termination events. + APO_LOG_LEVEL_ERROR = 2, // Severe error events. + APO_LOG_LEVEL_WARNING = 3, // Warning events such as allocation failures. + APO_LOG_LEVEL_INFO = 4, // Non-error events such as entry or exit events. + APO_LOG_LEVEL_VERBOSE = 5 // Detailed trace events. +} APO_LOG_LEVEL; + +[ + object, + uuid(698f0107-1745-4708-95a5-d84478a62a65), + local +] +interface IAudioProcessingObjectLoggingService : IUnknown +{ + // This will generate events with the format specified in the API call. + void ApoLog([in] APO_LOG_LEVEL level, [in, annotation("_In_")] LPCWSTR format, ...); +} + +// {8B8008AF-09F9-456E-A173-BDB58499BCE7} +cpp_quote("DEFINE_GUID(SID_AudioProcessingObjectLoggingService, 0x8b8008af, 0x9f9, 0x456e, 0xa1, 0x73, 0xbd, 0xb5, 0x84, 0x99, 0xbc, 0xe7);") + +// An enumeration of the type of notifications that may be requested by an APO that is populated by the OS and sent to APOs that have registered for these notifications using IAudioProcessingObjectNotifications::GetApoNotificationRegistrationInfo +typedef enum APO_NOTIFICATION_TYPE +{ + APO_NOTIFICATION_TYPE_NONE = 0, + + // Endpoint volume notifications for an endpoint. + APO_NOTIFICATION_TYPE_ENDPOINT_VOLUME = 1, + + // Property change notifications for an endpoint. + APO_NOTIFICATION_TYPE_ENDPOINT_PROPERTY_CHANGE = 2, + + // Audio system effects property change notifications for an endpoint. + APO_NOTIFICATION_TYPE_SYSTEM_EFFECTS_PROPERTY_CHANGE = 3, + + // Endpoint volume notifications for an endpoint that includes master and channel volume in dB. + APO_NOTIFICATION_TYPE_ENDPOINT_VOLUME2 = 4, + + // Orientation notifications for the device. + APO_NOTIFICATION_TYPE_DEVICE_ORIENTATION = 5, + + // Microphone boost notifications + APO_NOTIFICATION_TYPE_MICROPHONE_BOOST = 6, + + // Audio environement state changed + APO_NOTIFICATION_TYPE_AUDIO_ENVIRONMENT_STATE_CHANGE = 7 + +} APO_NOTIFICATION_TYPE; + +// When an endpoint volume changes, the OS will send an object with the following structure to the APOs that are interested in volume change notifications. +typedef struct AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION +{ + // Device that the volume has changed on. + IMMDevice* endpoint; + // New volume as a pointer to AUDIO_VOLUME_NOTIFICATION_DATA structure. + PAUDIO_VOLUME_NOTIFICATION_DATA volume; +} AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION; + +// When an endpoint property is changed, the OS will send an object with the following structure to the APOs that are interested in endpoint property change notifications. +typedef struct AUDIO_ENDPOINT_PROPERTY_CHANGE_NOTIFICATION +{ + // Device that the property has changed on. + IMMDevice* endpoint; + // The property store that the change occurred on. Use this to query the new value of propertyKey below. + IPropertyStore* propertyStore; + // The PROPERTYKEY that has a new value. + PROPERTYKEY propertyKey; +} AUDIO_ENDPOINT_PROPERTY_CHANGE_NOTIFICATION; + +// When an audio system effects property is changed, the OS will send an object with the following structure to the APOs that are interested in audio system effects property change notifications. +typedef struct AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_NOTIFICATION +{ + // Device that the volume has changed on. + IMMDevice* endpoint; + // The property store context on this endpoint. + GUID propertyStoreContext; + // The property store type used to indicate if the default/user or volatile property store changed. + AUDIO_SYSTEMEFFECTS_PROPERTYSTORE_TYPE propertyStoreType; + // The property store that the change occurred on. Use this to query the new value of propertyKey below. + IPropertyStore* propertyStore; + // The PROPERTYKEY that has a new value. + PROPERTYKEY propertyKey; +} AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_NOTIFICATION; + +typedef struct AUDIO_VOLUME_NOTIFICATION_DATA2 +{ + PAUDIO_VOLUME_NOTIFICATION_DATA notificationData; + + // Specifies the current master volume level of the audio stream in dB. + float masterVolumeInDb; + + // The minimum volume level of the endpoint in decibels. This value remains constant for the lifetime of + // audio device specified in AUDIO_ENDPOINT_VOLUME_APO_NOTIFICATION_DESCRIPTOR. + float volumeMinInDb; + + // The maximum volume level of the endpoint in decibels. This value remains constant for the lifetime of + // the audio device specified in AUDIO_ENDPOINT_VOLUME_APO_NOTIFICATION_DESCRIPTOR. + float volumeMaxInDb; + + // The volume increment in decibels. This increment remains constant for the lifetime + // the audio device specified in AUDIO_ENDPOINT_VOLUME_APO_NOTIFICATION_DESCRIPTOR. + float volumeIncrementInDb; + + // Current step in the volume range. Is a value in the range from 0 to stepCount-1, where 0 represents + // the minimum volume level and stepCount–1 represents the maximum level. Audio applications can call the + // IAudioEndpointVolume::VolumeStepUp and IAudioEndpointVolume::VolumeStepDown methods to increase or + // decrease the volume level by one interval. + UINT step; + + // The number of steps in the volume range. This number remains constant for the lifetime of + // the audio device specified in AUDIO_ENDPOINT_VOLUME_APO_NOTIFICATION_DESCRIPTOR. + UINT stepCount; + + // The first element in an array of channel volumes in dB. This element contains the current volume level + // of channel 0 in the audio stream. If the audio stream contains more than one channel, the volume + // levels for the additional channels immediately follow the AUDIO_VOLUME_NOTIFICATION_DATA2 structure. + float channelVolumesInDb[ 1 ]; +} AUDIO_VOLUME_NOTIFICATION_DATA2, *PAUDIO_VOLUME_NOTIFICATION_DATA2; + +typedef struct AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION2 +{ + IMMDevice* endpoint; + PAUDIO_VOLUME_NOTIFICATION_DATA2 volume; +} AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION2; + +typedef enum DEVICE_ORIENTATION_TYPE +{ + DEVICE_NOT_ROTATED, + DEVICE_ROTATED_90_DEGREES_CLOCKWISE, + DEVICE_ROTATED_180_DEGREES_CLOCKWISE, + DEVICE_ROTATED_270_DEGREES_CLOCKWISE +}DEVICE_ORIENTATION_TYPE; + +typedef struct AUDIO_MICROPHONE_BOOST_NOTIFICATION +{ + // Device associated with mic boost notification. + IMMDevice* endpoint; + + // Context associated with the originator of the event. A client can use this method to keep track of + // control changes made by other processes and by the hardware. The functions IAudioVolumeLevel::SetLevel + // and IAudioMute::SetMute use the context. When this notification is recieved, a client can inspect the + // context GUID to discover whether it or another client is the source of the notification. + GUID eventContext; + + // Indicates the presence of a "Microphone Boost" part (connector or subunit) of an audio capture device + // topology. + BOOL microphoneBoostEnabled; + + // The volume level in decibels. + float levelInDb; + + // The minimum volume level in decibels. + float levelMinInDb; + + // The maximum volume level in decibels. + float levelMaxInDb; + + // The stepping value between consecutive volume levels in the range levelMinInDb to levelMaxInDb + float levelStepInDb; + + // Indicates if the IAudioMute interface is supported by the "Microphone Boost" part of the audio + // capture device topology. + BOOL muteSupported; + + // The current state (enabled or disabled) of the mute control + BOOL mute; +} AUDIO_MICROPHONE_BOOST_NOTIFICATION; + +// PKEY_AudioEnvironment_xxx +// GUID for PKEY_AudioEnvironment_XXX (public): 4AFB7B88-A653-44A5-99DB-687FD74AF0BB + +// PKEY_AudioEnvironment_SpatialStreams_Active: Boolean that when TRUE indicates that spatial audio is in use, FALSE otherwise. +// vartype = VT_BOOL +cpp_quote("DEFINE_PROPERTYKEY(PKEY_AudioEnvironment_SpatialAudioActive, 0x4AFB7B88, 0xA653, 0x44A5, 0x99, 0xDB, 0x68, 0x7F, 0xD7, 0x4A, 0xF0, 0xBB, 2);") + + +typedef struct AUDIO_ENVIRONMENT_STATE_CHANGE_NOTIFICATION +{ + // The property store that the change occurred on. Use this to query the new value of propertyKey below. + IPropertyStore* propertyStore; + + // The PROPERTYKEY that has a new value. + PROPERTYKEY propertyKey; +} AUDIO_ENVIRONMENT_STATE_CHANGE_NOTIFICATION; + +// This structure is used to describe the type of notification that is sent from the OS to the APO using IAudioProcessingObjectNotifications::HandleNotification. +typedef struct APO_NOTIFICATION +{ + APO_NOTIFICATION_TYPE type; + union + { + // Used when type is APO_NOTIFICATION_TYPE_ENDPOINT_VOLUME. + AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION audioEndpointVolumeChange; + + // Used when type is APO_NOTIFICATION_TYPE_ENDPOINT_PROPERTY_CHANGE. + AUDIO_ENDPOINT_PROPERTY_CHANGE_NOTIFICATION audioEndpointPropertyChange; + + // Used when type is AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_NOTIFICATION. + AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_NOTIFICATION audioSystemEffectsPropertyChange; + + // Used when type is APO_NOTIFICATION_TYPE_ENDPOINT_VOLUME2. + AUDIO_ENDPOINT_VOLUME_CHANGE_NOTIFICATION2 audioEndpointVolumeChange2; + + // Used when type is APO_NOTIFICATION_TYPE_DEVICE_ORIENTATION. + DEVICE_ORIENTATION_TYPE deviceOrientation; + + // Used when type is APO_NOTIFICATION_TYPE_MICROPHONE_BOOST. + AUDIO_MICROPHONE_BOOST_NOTIFICATION audioMicrophoneBoostChange; + + // Used when type is APO_NOTIFICATION_TYPE_AUDIO_ENVIRONMENT_STATE_CHANGE. + AUDIO_ENVIRONMENT_STATE_CHANGE_NOTIFICATION audioEnvironmentChange; + } DUMMYUNIONNAME; +} APO_NOTIFICATION; + +// Used to request endpoint volume change notifications on a specific endpoint. +typedef struct AUDIO_ENDPOINT_VOLUME_APO_NOTIFICATION_DESCRIPTOR +{ + IMMDevice* device; +} AUDIO_ENDPOINT_VOLUME_APO_NOTIFICATION_DESCRIPTOR; + +// Used to request endpoint property change notifications on a specific endpoint. +typedef struct AUDIO_ENDPOINT_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR +{ + IMMDevice* device; +} AUDIO_ENDPOINT_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR; + +// Used to request audio system effects property change notifications on a specific endpoint and property context. +typedef struct AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR +{ + IMMDevice* device; + GUID propertyStoreContext; +} AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR; + +// Used to request microphone boost notifications. +typedef struct AUDIO_MICROPHONE_BOOST_APO_NOTIFICATION_DESCRIPTOR +{ + IMMDevice* device; +} AUDIO_MICROPHONE_BOOST_APO_NOTIFICATION_DESCRIPTOR; + +// +// This is the structure provided by the APO to indicate the type of notification it is interested in. +// +typedef struct APO_NOTIFICATION_DESCRIPTOR +{ + APO_NOTIFICATION_TYPE type; + union + { + // Used for volume notifications on a specific endpoint. + AUDIO_ENDPOINT_VOLUME_APO_NOTIFICATION_DESCRIPTOR audioEndpointVolume; + // Used for property change notifications on a specific endpoint. + AUDIO_ENDPOINT_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR audioEndpointPropertyChange; + // Used for audio system effects property store notifications on a specific endpoint, property context pair. + AUDIO_SYSTEMEFFECTS_PROPERTY_CHANGE_APO_NOTIFICATION_DESCRIPTOR audioSystemEffectsPropertyChange; + // Used for microphone boost notifications. + AUDIO_MICROPHONE_BOOST_APO_NOTIFICATION_DESCRIPTOR audioMicrophoneBoost; + } DUMMYUNIONNAME; +} APO_NOTIFICATION_DESCRIPTOR; + +// +// Interface to be implemented by an APO that wishes to report its preferred audio input format +// +[ + object, + uuid(51CBD3C4-F1F3-4D2F-A0E1-7E9C4DD0FEB3), + pointer_default(unique), + local +] +interface IAudioProcessingObjectPreferredFormatSupport : IUnknown +{ + HRESULT GetPreferredInputFormat([in] IAudioMediaType* outputFormat, [out] IAudioMediaType** preferredFormat); + HRESULT GetPreferredOutputFormat([in] IAudioMediaType* inputFormat, [out] IAudioMediaType** preferredFormat); +}; + +// +// Interface to be implemented by an APO that wishes to use the notification service provided by the OS. +// +[ + object, + uuid(56B0C76F-02FD-4B21-A52E-9F8219FC86E4), + local +] +interface IAudioProcessingObjectNotifications : IUnknown +{ + // The APO provides an array of APO_NOTIFICATION_DESCRIPTORs indicating the type of notifications it is interested in. + HRESULT GetApoNotificationRegistrationInfo( + [out, annotation("_Out_writes_(*count)")] APO_NOTIFICATION_DESCRIPTOR** apoNotifications, + [out, annotation("_Out_")] DWORD* count); + + // This method is invoked by the OS to send notifications to the APO. + void HandleNotification([in, annotation("_In_")] APO_NOTIFICATION* apoNotification); +}; + +[ + object, + uuid(ca2cfbde-a9d6-4eb0-bc95-c4d026b380f0), + local +] +interface IAudioProcessingObjectNotifications2 : IAudioProcessingObjectNotifications +{ + HRESULT GetApoNotificationRegistrationInfo2( + APO_NOTIFICATION_TYPE maxApoNotificationTypeSupported, + [out, annotation("_Out_writes_(count)")] APO_NOTIFICATION_DESCRIPTOR** apoNotifications, + [out, annotation("_Out_")] DWORD* count); +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiomediatype.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiomediatype.h new file mode 100644 index 0000000000000000000000000000000000000000..adf1f110cf2b8285e7de58ffbe7fc7d5fde4f019 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiomediatype.h @@ -0,0 +1,256 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __audiomediatype_h__ +#define __audiomediatype_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAudioMediaType_FWD_DEFINED__ +#define __IAudioMediaType_FWD_DEFINED__ +typedef interface IAudioMediaType IAudioMediaType; + +#endif /* __IAudioMediaType_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "mmreg.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_audiomediatype_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if !defined( _UNCOMPRESSEDAUDIOFORMAT_ ) +#define _UNCOMPRESSEDAUDIOFORMAT_ +typedef struct _UNCOMPRESSEDAUDIOFORMAT + { + GUID guidFormatType; + DWORD dwSamplesPerFrame; + DWORD dwBytesPerSampleContainer; + DWORD dwValidBitsPerSample; + FLOAT fFramesPerSecond; + DWORD dwChannelMask; + } UNCOMPRESSEDAUDIOFORMAT; + +#endif + + + +extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0000_v0_0_s_ifspec; + +#ifndef __IAudioMediaType_INTERFACE_DEFINED__ +#define __IAudioMediaType_INTERFACE_DEFINED__ + +/* interface IAudioMediaType */ +/* [local][uuid][object] */ + + +EXTERN_C const IID IID_IAudioMediaType; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4E997F73-B71F-4798-873B-ED7DFCF15B4D") + IAudioMediaType : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsCompressedFormat( + /* [annotation][out] */ + _Out_ BOOL *pfCompressed) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsEqual( + /* [annotation][in] */ + _In_ IAudioMediaType *pIAudioType, + /* [annotation][out] */ + _Out_ DWORD *pdwFlags) = 0; + + virtual const WAVEFORMATEX *STDMETHODCALLTYPE GetAudioFormat( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUncompressedAudioFormat( + /* [annotation][out] */ + _Out_ UNCOMPRESSEDAUDIOFORMAT *pUncompressedAudioFormat) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioMediaTypeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioMediaType * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioMediaType * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioMediaType * This); + + DECLSPEC_XFGVIRT(IAudioMediaType, IsCompressedFormat) + HRESULT ( STDMETHODCALLTYPE *IsCompressedFormat )( + IAudioMediaType * This, + /* [annotation][out] */ + _Out_ BOOL *pfCompressed); + + DECLSPEC_XFGVIRT(IAudioMediaType, IsEqual) + HRESULT ( STDMETHODCALLTYPE *IsEqual )( + IAudioMediaType * This, + /* [annotation][in] */ + _In_ IAudioMediaType *pIAudioType, + /* [annotation][out] */ + _Out_ DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(IAudioMediaType, GetAudioFormat) + const WAVEFORMATEX *( STDMETHODCALLTYPE *GetAudioFormat )( + IAudioMediaType * This); + + DECLSPEC_XFGVIRT(IAudioMediaType, GetUncompressedAudioFormat) + HRESULT ( STDMETHODCALLTYPE *GetUncompressedAudioFormat )( + IAudioMediaType * This, + /* [annotation][out] */ + _Out_ UNCOMPRESSEDAUDIOFORMAT *pUncompressedAudioFormat); + + END_INTERFACE + } IAudioMediaTypeVtbl; + + interface IAudioMediaType + { + CONST_VTBL struct IAudioMediaTypeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioMediaType_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioMediaType_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioMediaType_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioMediaType_IsCompressedFormat(This,pfCompressed) \ + ( (This)->lpVtbl -> IsCompressedFormat(This,pfCompressed) ) + +#define IAudioMediaType_IsEqual(This,pIAudioType,pdwFlags) \ + ( (This)->lpVtbl -> IsEqual(This,pIAudioType,pdwFlags) ) + +#define IAudioMediaType_GetAudioFormat(This) \ + ( (This)->lpVtbl -> GetAudioFormat(This) ) + +#define IAudioMediaType_GetUncompressedAudioFormat(This,pUncompressedAudioFormat) \ + ( (This)->lpVtbl -> GetUncompressedAudioFormat(This,pUncompressedAudioFormat) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioMediaType_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audiomediatype_0000_0001 */ +/* [local] */ + +// +// CreateAudioMediaType +// +STDAPI CreateAudioMediaType( + const WAVEFORMATEX* pAudioFormat, + UINT32 cbAudioFormatSize, + IAudioMediaType** ppIAudioMediaType + ); +// +// CreateAudioMediaTypeFromUncompressedAudioFormat +// +STDAPI CreateAudioMediaTypeFromUncompressedAudioFormat( + const UNCOMPRESSEDAUDIOFORMAT* pUncompressedAudioFormat, + IAudioMediaType** ppIAudioMediaType + ); +#define AUDIOMEDIATYPE_EQUAL_FORMAT_TYPES 0x00000002 +#define AUDIOMEDIATYPE_EQUAL_FORMAT_DATA 0x00000004 +#define AUDIOMEDIATYPE_EQUAL_FORMAT_USER_DATA 0x00000008 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audiomediatype_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiomediatype.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiomediatype.idl new file mode 100644 index 0000000000000000000000000000000000000000..65dfad8bf6e1d2c27ea6539ad0c1e3db8188b5b8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiomediatype.idl @@ -0,0 +1,98 @@ +// +// AudioMediaType.idl +// +// +// Description: +// +// IAudioMediaType definition +// +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +// +// Include this for marshallable definition of WAVEFORMATEX +// +import "mmreg.h"; + +// +// UNCOMPRESSEDAUDIOFORMAT +// + +cpp_quote( "#if !defined( _UNCOMPRESSEDAUDIOFORMAT_ )" ) +cpp_quote( "#define _UNCOMPRESSEDAUDIOFORMAT_" ) + +typedef struct _UNCOMPRESSEDAUDIOFORMAT +{ + GUID guidFormatType; + DWORD dwSamplesPerFrame; + DWORD dwBytesPerSampleContainer; + DWORD dwValidBitsPerSample; + FLOAT fFramesPerSecond; + DWORD dwChannelMask; +} UNCOMPRESSEDAUDIOFORMAT; + +cpp_quote( "#endif" ) +cpp_quote( "" ) + +////////////////////////////////////////////////////////////////////////////// + +[ + object, + uuid(4E997F73-B71F-4798-873B-ED7DFCF15B4D), + local +] +interface IAudioMediaType : IUnknown +{ + HRESULT IsCompressedFormat( + [out, annotation("_Out_")] BOOL* pfCompressed + ); + HRESULT IsEqual( + [in, annotation("_In_")] IAudioMediaType* pIAudioType, + [out, annotation("_Out_")] DWORD* pdwFlags + ); + const WAVEFORMATEX* GetAudioFormat(); + HRESULT GetUncompressedAudioFormat( + [out, annotation("_Out_")] UNCOMPRESSEDAUDIOFORMAT* pUncompressedAudioFormat + ); +}; + +cpp_quote("//") +cpp_quote("// CreateAudioMediaType") +cpp_quote("//") + +cpp_quote("STDAPI CreateAudioMediaType(") +cpp_quote(" const WAVEFORMATEX* pAudioFormat,") +cpp_quote(" UINT32 cbAudioFormatSize,") +cpp_quote(" IAudioMediaType** ppIAudioMediaType") +cpp_quote(" );") + + +cpp_quote("//") +cpp_quote("// CreateAudioMediaTypeFromUncompressedAudioFormat") +cpp_quote("//") + +cpp_quote("STDAPI CreateAudioMediaTypeFromUncompressedAudioFormat(") +cpp_quote(" const UNCOMPRESSEDAUDIOFORMAT* pUncompressedAudioFormat,") +cpp_quote(" IAudioMediaType** ppIAudioMediaType") +cpp_quote(" );") + +// +// IsEqual flags +// + +// subtype match = format types match = iscompressed for both matches +// format_data match = format blocks match exactly + +cpp_quote( "#define AUDIOMEDIATYPE_EQUAL_FORMAT_TYPES 0x00000002" ) +cpp_quote( "#define AUDIOMEDIATYPE_EQUAL_FORMAT_DATA 0x00000004" ) +cpp_quote( "#define AUDIOMEDIATYPE_EQUAL_FORMAT_USER_DATA 0x00000008" ) +cpp_quote( "" ) + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiopolicy.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiopolicy.h new file mode 100644 index 0000000000000000000000000000000000000000..4d5f385250b7bde018d1dd33081fed1f0943fa95 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiopolicy.h @@ -0,0 +1,1325 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __audiopolicy_h__ +#define __audiopolicy_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAudioSessionEvents_FWD_DEFINED__ +#define __IAudioSessionEvents_FWD_DEFINED__ +typedef interface IAudioSessionEvents IAudioSessionEvents; + +#endif /* __IAudioSessionEvents_FWD_DEFINED__ */ + + +#ifndef __IAudioSessionControl_FWD_DEFINED__ +#define __IAudioSessionControl_FWD_DEFINED__ +typedef interface IAudioSessionControl IAudioSessionControl; + +#endif /* __IAudioSessionControl_FWD_DEFINED__ */ + + +#ifndef __IAudioSessionControl2_FWD_DEFINED__ +#define __IAudioSessionControl2_FWD_DEFINED__ +typedef interface IAudioSessionControl2 IAudioSessionControl2; + +#endif /* __IAudioSessionControl2_FWD_DEFINED__ */ + + +#ifndef __IAudioSessionManager_FWD_DEFINED__ +#define __IAudioSessionManager_FWD_DEFINED__ +typedef interface IAudioSessionManager IAudioSessionManager; + +#endif /* __IAudioSessionManager_FWD_DEFINED__ */ + + +#ifndef __IAudioVolumeDuckNotification_FWD_DEFINED__ +#define __IAudioVolumeDuckNotification_FWD_DEFINED__ +typedef interface IAudioVolumeDuckNotification IAudioVolumeDuckNotification; + +#endif /* __IAudioVolumeDuckNotification_FWD_DEFINED__ */ + + +#ifndef __IAudioSessionNotification_FWD_DEFINED__ +#define __IAudioSessionNotification_FWD_DEFINED__ +typedef interface IAudioSessionNotification IAudioSessionNotification; + +#endif /* __IAudioSessionNotification_FWD_DEFINED__ */ + + +#ifndef __IAudioSessionEnumerator_FWD_DEFINED__ +#define __IAudioSessionEnumerator_FWD_DEFINED__ +typedef interface IAudioSessionEnumerator IAudioSessionEnumerator; + +#endif /* __IAudioSessionEnumerator_FWD_DEFINED__ */ + + +#ifndef __IAudioSessionManager2_FWD_DEFINED__ +#define __IAudioSessionManager2_FWD_DEFINED__ +typedef interface IAudioSessionManager2 IAudioSessionManager2; + +#endif /* __IAudioSessionManager2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "propidl.h" +#include "AudioSessionTypes.h" +#include "AudioClient.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_audiopolicy_0000_0000 */ +/* [local] */ + +#include +#pragma region Application and Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) +typedef +enum AudioSessionDisconnectReason + { + DisconnectReasonDeviceRemoval = 0, + DisconnectReasonServerShutdown = ( DisconnectReasonDeviceRemoval + 1 ) , + DisconnectReasonFormatChanged = ( DisconnectReasonServerShutdown + 1 ) , + DisconnectReasonSessionLogoff = ( DisconnectReasonFormatChanged + 1 ) , + DisconnectReasonSessionDisconnected = ( DisconnectReasonSessionLogoff + 1 ) , + DisconnectReasonExclusiveModeOverride = ( DisconnectReasonSessionDisconnected + 1 ) + } AudioSessionDisconnectReason; + + + +extern RPC_IF_HANDLE __MIDL_itf_audiopolicy_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audiopolicy_0000_0000_v0_0_s_ifspec; + +#ifndef __IAudioSessionEvents_INTERFACE_DEFINED__ +#define __IAudioSessionEvents_INTERFACE_DEFINED__ + +/* interface IAudioSessionEvents */ +/* [local][uuid][unique][object] */ + + +EXTERN_C const IID IID_IAudioSessionEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("24918ACC-64B3-37C1-8CA9-74A66E9957A8") + IAudioSessionEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnDisplayNameChanged( + /* [annotation][string][in] */ + _In_ LPCWSTR NewDisplayName, + /* [in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnIconPathChanged( + /* [annotation][string][in] */ + _In_ LPCWSTR NewIconPath, + /* [in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnSimpleVolumeChanged( + /* [annotation][in] */ + _In_ float NewVolume, + /* [annotation][in] */ + _In_ BOOL NewMute, + /* [in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnChannelVolumeChanged( + /* [annotation][in] */ + _In_ DWORD ChannelCount, + /* [annotation][size_is][in] */ + _In_reads_(ChannelCount) float NewChannelVolumeArray[ ], + /* [annotation][in] */ + _In_ DWORD ChangedChannel, + /* [in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnGroupingParamChanged( + /* [annotation][in] */ + _In_ LPCGUID NewGroupingParam, + /* [in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnStateChanged( + /* [annotation][in] */ + _In_ AudioSessionState NewState) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnSessionDisconnected( + /* [annotation][in] */ + _In_ AudioSessionDisconnectReason DisconnectReason) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSessionEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioSessionEvents * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioSessionEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioSessionEvents * This); + + DECLSPEC_XFGVIRT(IAudioSessionEvents, OnDisplayNameChanged) + HRESULT ( STDMETHODCALLTYPE *OnDisplayNameChanged )( + IAudioSessionEvents * This, + /* [annotation][string][in] */ + _In_ LPCWSTR NewDisplayName, + /* [in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionEvents, OnIconPathChanged) + HRESULT ( STDMETHODCALLTYPE *OnIconPathChanged )( + IAudioSessionEvents * This, + /* [annotation][string][in] */ + _In_ LPCWSTR NewIconPath, + /* [in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionEvents, OnSimpleVolumeChanged) + HRESULT ( STDMETHODCALLTYPE *OnSimpleVolumeChanged )( + IAudioSessionEvents * This, + /* [annotation][in] */ + _In_ float NewVolume, + /* [annotation][in] */ + _In_ BOOL NewMute, + /* [in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionEvents, OnChannelVolumeChanged) + HRESULT ( STDMETHODCALLTYPE *OnChannelVolumeChanged )( + IAudioSessionEvents * This, + /* [annotation][in] */ + _In_ DWORD ChannelCount, + /* [annotation][size_is][in] */ + _In_reads_(ChannelCount) float NewChannelVolumeArray[ ], + /* [annotation][in] */ + _In_ DWORD ChangedChannel, + /* [in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionEvents, OnGroupingParamChanged) + HRESULT ( STDMETHODCALLTYPE *OnGroupingParamChanged )( + IAudioSessionEvents * This, + /* [annotation][in] */ + _In_ LPCGUID NewGroupingParam, + /* [in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionEvents, OnStateChanged) + HRESULT ( STDMETHODCALLTYPE *OnStateChanged )( + IAudioSessionEvents * This, + /* [annotation][in] */ + _In_ AudioSessionState NewState); + + DECLSPEC_XFGVIRT(IAudioSessionEvents, OnSessionDisconnected) + HRESULT ( STDMETHODCALLTYPE *OnSessionDisconnected )( + IAudioSessionEvents * This, + /* [annotation][in] */ + _In_ AudioSessionDisconnectReason DisconnectReason); + + END_INTERFACE + } IAudioSessionEventsVtbl; + + interface IAudioSessionEvents + { + CONST_VTBL struct IAudioSessionEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSessionEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSessionEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSessionEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioSessionEvents_OnDisplayNameChanged(This,NewDisplayName,EventContext) \ + ( (This)->lpVtbl -> OnDisplayNameChanged(This,NewDisplayName,EventContext) ) + +#define IAudioSessionEvents_OnIconPathChanged(This,NewIconPath,EventContext) \ + ( (This)->lpVtbl -> OnIconPathChanged(This,NewIconPath,EventContext) ) + +#define IAudioSessionEvents_OnSimpleVolumeChanged(This,NewVolume,NewMute,EventContext) \ + ( (This)->lpVtbl -> OnSimpleVolumeChanged(This,NewVolume,NewMute,EventContext) ) + +#define IAudioSessionEvents_OnChannelVolumeChanged(This,ChannelCount,NewChannelVolumeArray,ChangedChannel,EventContext) \ + ( (This)->lpVtbl -> OnChannelVolumeChanged(This,ChannelCount,NewChannelVolumeArray,ChangedChannel,EventContext) ) + +#define IAudioSessionEvents_OnGroupingParamChanged(This,NewGroupingParam,EventContext) \ + ( (This)->lpVtbl -> OnGroupingParamChanged(This,NewGroupingParam,EventContext) ) + +#define IAudioSessionEvents_OnStateChanged(This,NewState) \ + ( (This)->lpVtbl -> OnStateChanged(This,NewState) ) + +#define IAudioSessionEvents_OnSessionDisconnected(This,DisconnectReason) \ + ( (This)->lpVtbl -> OnSessionDisconnected(This,DisconnectReason) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSessionEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioSessionControl_INTERFACE_DEFINED__ +#define __IAudioSessionControl_INTERFACE_DEFINED__ + +/* interface IAudioSessionControl */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAudioSessionControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F4B1A599-7266-4319-A8CA-E70ACB11E8CD") + IAudioSessionControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetState( + /* [annotation][out] */ + _Out_ AudioSessionState *pRetVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDisplayName( + /* [annotation][string][out] */ + _Out_ LPWSTR *pRetVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDisplayName( + /* [annotation][string][in] */ + _In_ LPCWSTR Value, + /* [unique][in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIconPath( + /* [annotation][string][out] */ + _Out_ LPWSTR *pRetVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetIconPath( + /* [annotation][string][in] */ + _In_ LPCWSTR Value, + /* [unique][in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGroupingParam( + /* [annotation][out] */ + _Out_ GUID *pRetVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetGroupingParam( + /* [annotation][in] */ + _In_ LPCGUID Override, + /* [unique][in] */ LPCGUID EventContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterAudioSessionNotification( + /* [annotation][in] */ + _In_ IAudioSessionEvents *NewNotifications) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterAudioSessionNotification( + /* [annotation][in] */ + _In_ IAudioSessionEvents *NewNotifications) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSessionControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioSessionControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioSessionControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioSessionControl * This); + + DECLSPEC_XFGVIRT(IAudioSessionControl, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + IAudioSessionControl * This, + /* [annotation][out] */ + _Out_ AudioSessionState *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + IAudioSessionControl * This, + /* [annotation][string][out] */ + _Out_ LPWSTR *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl, SetDisplayName) + HRESULT ( STDMETHODCALLTYPE *SetDisplayName )( + IAudioSessionControl * This, + /* [annotation][string][in] */ + _In_ LPCWSTR Value, + /* [unique][in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionControl, GetIconPath) + HRESULT ( STDMETHODCALLTYPE *GetIconPath )( + IAudioSessionControl * This, + /* [annotation][string][out] */ + _Out_ LPWSTR *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl, SetIconPath) + HRESULT ( STDMETHODCALLTYPE *SetIconPath )( + IAudioSessionControl * This, + /* [annotation][string][in] */ + _In_ LPCWSTR Value, + /* [unique][in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionControl, GetGroupingParam) + HRESULT ( STDMETHODCALLTYPE *GetGroupingParam )( + IAudioSessionControl * This, + /* [annotation][out] */ + _Out_ GUID *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl, SetGroupingParam) + HRESULT ( STDMETHODCALLTYPE *SetGroupingParam )( + IAudioSessionControl * This, + /* [annotation][in] */ + _In_ LPCGUID Override, + /* [unique][in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionControl, RegisterAudioSessionNotification) + HRESULT ( STDMETHODCALLTYPE *RegisterAudioSessionNotification )( + IAudioSessionControl * This, + /* [annotation][in] */ + _In_ IAudioSessionEvents *NewNotifications); + + DECLSPEC_XFGVIRT(IAudioSessionControl, UnregisterAudioSessionNotification) + HRESULT ( STDMETHODCALLTYPE *UnregisterAudioSessionNotification )( + IAudioSessionControl * This, + /* [annotation][in] */ + _In_ IAudioSessionEvents *NewNotifications); + + END_INTERFACE + } IAudioSessionControlVtbl; + + interface IAudioSessionControl + { + CONST_VTBL struct IAudioSessionControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSessionControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSessionControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSessionControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioSessionControl_GetState(This,pRetVal) \ + ( (This)->lpVtbl -> GetState(This,pRetVal) ) + +#define IAudioSessionControl_GetDisplayName(This,pRetVal) \ + ( (This)->lpVtbl -> GetDisplayName(This,pRetVal) ) + +#define IAudioSessionControl_SetDisplayName(This,Value,EventContext) \ + ( (This)->lpVtbl -> SetDisplayName(This,Value,EventContext) ) + +#define IAudioSessionControl_GetIconPath(This,pRetVal) \ + ( (This)->lpVtbl -> GetIconPath(This,pRetVal) ) + +#define IAudioSessionControl_SetIconPath(This,Value,EventContext) \ + ( (This)->lpVtbl -> SetIconPath(This,Value,EventContext) ) + +#define IAudioSessionControl_GetGroupingParam(This,pRetVal) \ + ( (This)->lpVtbl -> GetGroupingParam(This,pRetVal) ) + +#define IAudioSessionControl_SetGroupingParam(This,Override,EventContext) \ + ( (This)->lpVtbl -> SetGroupingParam(This,Override,EventContext) ) + +#define IAudioSessionControl_RegisterAudioSessionNotification(This,NewNotifications) \ + ( (This)->lpVtbl -> RegisterAudioSessionNotification(This,NewNotifications) ) + +#define IAudioSessionControl_UnregisterAudioSessionNotification(This,NewNotifications) \ + ( (This)->lpVtbl -> UnregisterAudioSessionNotification(This,NewNotifications) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSessionControl_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audiopolicy_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_audiopolicy_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audiopolicy_0000_0002_v0_0_s_ifspec; + +#ifndef __IAudioSessionControl2_INTERFACE_DEFINED__ +#define __IAudioSessionControl2_INTERFACE_DEFINED__ + +/* interface IAudioSessionControl2 */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAudioSessionControl2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bfb7ff88-7239-4fc9-8fa2-07c950be9c6d") + IAudioSessionControl2 : public IAudioSessionControl + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSessionIdentifier( + /* [annotation][string][out] */ + _Out_ LPWSTR *pRetVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSessionInstanceIdentifier( + /* [annotation][string][out] */ + _Out_ LPWSTR *pRetVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProcessId( + /* [annotation][out] */ + _Out_ DWORD *pRetVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsSystemSoundsSession( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDuckingPreference( + /* [in] */ BOOL optOut) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSessionControl2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioSessionControl2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioSessionControl2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioSessionControl2 * This); + + DECLSPEC_XFGVIRT(IAudioSessionControl, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + IAudioSessionControl2 * This, + /* [annotation][out] */ + _Out_ AudioSessionState *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + IAudioSessionControl2 * This, + /* [annotation][string][out] */ + _Out_ LPWSTR *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl, SetDisplayName) + HRESULT ( STDMETHODCALLTYPE *SetDisplayName )( + IAudioSessionControl2 * This, + /* [annotation][string][in] */ + _In_ LPCWSTR Value, + /* [unique][in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionControl, GetIconPath) + HRESULT ( STDMETHODCALLTYPE *GetIconPath )( + IAudioSessionControl2 * This, + /* [annotation][string][out] */ + _Out_ LPWSTR *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl, SetIconPath) + HRESULT ( STDMETHODCALLTYPE *SetIconPath )( + IAudioSessionControl2 * This, + /* [annotation][string][in] */ + _In_ LPCWSTR Value, + /* [unique][in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionControl, GetGroupingParam) + HRESULT ( STDMETHODCALLTYPE *GetGroupingParam )( + IAudioSessionControl2 * This, + /* [annotation][out] */ + _Out_ GUID *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl, SetGroupingParam) + HRESULT ( STDMETHODCALLTYPE *SetGroupingParam )( + IAudioSessionControl2 * This, + /* [annotation][in] */ + _In_ LPCGUID Override, + /* [unique][in] */ LPCGUID EventContext); + + DECLSPEC_XFGVIRT(IAudioSessionControl, RegisterAudioSessionNotification) + HRESULT ( STDMETHODCALLTYPE *RegisterAudioSessionNotification )( + IAudioSessionControl2 * This, + /* [annotation][in] */ + _In_ IAudioSessionEvents *NewNotifications); + + DECLSPEC_XFGVIRT(IAudioSessionControl, UnregisterAudioSessionNotification) + HRESULT ( STDMETHODCALLTYPE *UnregisterAudioSessionNotification )( + IAudioSessionControl2 * This, + /* [annotation][in] */ + _In_ IAudioSessionEvents *NewNotifications); + + DECLSPEC_XFGVIRT(IAudioSessionControl2, GetSessionIdentifier) + HRESULT ( STDMETHODCALLTYPE *GetSessionIdentifier )( + IAudioSessionControl2 * This, + /* [annotation][string][out] */ + _Out_ LPWSTR *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl2, GetSessionInstanceIdentifier) + HRESULT ( STDMETHODCALLTYPE *GetSessionInstanceIdentifier )( + IAudioSessionControl2 * This, + /* [annotation][string][out] */ + _Out_ LPWSTR *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl2, GetProcessId) + HRESULT ( STDMETHODCALLTYPE *GetProcessId )( + IAudioSessionControl2 * This, + /* [annotation][out] */ + _Out_ DWORD *pRetVal); + + DECLSPEC_XFGVIRT(IAudioSessionControl2, IsSystemSoundsSession) + HRESULT ( STDMETHODCALLTYPE *IsSystemSoundsSession )( + IAudioSessionControl2 * This); + + DECLSPEC_XFGVIRT(IAudioSessionControl2, SetDuckingPreference) + HRESULT ( STDMETHODCALLTYPE *SetDuckingPreference )( + IAudioSessionControl2 * This, + /* [in] */ BOOL optOut); + + END_INTERFACE + } IAudioSessionControl2Vtbl; + + interface IAudioSessionControl2 + { + CONST_VTBL struct IAudioSessionControl2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSessionControl2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSessionControl2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSessionControl2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioSessionControl2_GetState(This,pRetVal) \ + ( (This)->lpVtbl -> GetState(This,pRetVal) ) + +#define IAudioSessionControl2_GetDisplayName(This,pRetVal) \ + ( (This)->lpVtbl -> GetDisplayName(This,pRetVal) ) + +#define IAudioSessionControl2_SetDisplayName(This,Value,EventContext) \ + ( (This)->lpVtbl -> SetDisplayName(This,Value,EventContext) ) + +#define IAudioSessionControl2_GetIconPath(This,pRetVal) \ + ( (This)->lpVtbl -> GetIconPath(This,pRetVal) ) + +#define IAudioSessionControl2_SetIconPath(This,Value,EventContext) \ + ( (This)->lpVtbl -> SetIconPath(This,Value,EventContext) ) + +#define IAudioSessionControl2_GetGroupingParam(This,pRetVal) \ + ( (This)->lpVtbl -> GetGroupingParam(This,pRetVal) ) + +#define IAudioSessionControl2_SetGroupingParam(This,Override,EventContext) \ + ( (This)->lpVtbl -> SetGroupingParam(This,Override,EventContext) ) + +#define IAudioSessionControl2_RegisterAudioSessionNotification(This,NewNotifications) \ + ( (This)->lpVtbl -> RegisterAudioSessionNotification(This,NewNotifications) ) + +#define IAudioSessionControl2_UnregisterAudioSessionNotification(This,NewNotifications) \ + ( (This)->lpVtbl -> UnregisterAudioSessionNotification(This,NewNotifications) ) + + +#define IAudioSessionControl2_GetSessionIdentifier(This,pRetVal) \ + ( (This)->lpVtbl -> GetSessionIdentifier(This,pRetVal) ) + +#define IAudioSessionControl2_GetSessionInstanceIdentifier(This,pRetVal) \ + ( (This)->lpVtbl -> GetSessionInstanceIdentifier(This,pRetVal) ) + +#define IAudioSessionControl2_GetProcessId(This,pRetVal) \ + ( (This)->lpVtbl -> GetProcessId(This,pRetVal) ) + +#define IAudioSessionControl2_IsSystemSoundsSession(This) \ + ( (This)->lpVtbl -> IsSystemSoundsSession(This) ) + +#define IAudioSessionControl2_SetDuckingPreference(This,optOut) \ + ( (This)->lpVtbl -> SetDuckingPreference(This,optOut) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSessionControl2_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioSessionManager_INTERFACE_DEFINED__ +#define __IAudioSessionManager_INTERFACE_DEFINED__ + +/* interface IAudioSessionManager */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAudioSessionManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BFA971F1-4D5E-40BB-935E-967039BFBEE4") + IAudioSessionManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAudioSessionControl( + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][out] */ + _Outptr_ IAudioSessionControl **SessionControl) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSimpleAudioVolume( + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][out] */ + _Outptr_ ISimpleAudioVolume **AudioVolume) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSessionManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioSessionManager * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioSessionManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioSessionManager * This); + + DECLSPEC_XFGVIRT(IAudioSessionManager, GetAudioSessionControl) + HRESULT ( STDMETHODCALLTYPE *GetAudioSessionControl )( + IAudioSessionManager * This, + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][out] */ + _Outptr_ IAudioSessionControl **SessionControl); + + DECLSPEC_XFGVIRT(IAudioSessionManager, GetSimpleAudioVolume) + HRESULT ( STDMETHODCALLTYPE *GetSimpleAudioVolume )( + IAudioSessionManager * This, + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][out] */ + _Outptr_ ISimpleAudioVolume **AudioVolume); + + END_INTERFACE + } IAudioSessionManagerVtbl; + + interface IAudioSessionManager + { + CONST_VTBL struct IAudioSessionManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSessionManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSessionManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSessionManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioSessionManager_GetAudioSessionControl(This,AudioSessionGuid,StreamFlags,SessionControl) \ + ( (This)->lpVtbl -> GetAudioSessionControl(This,AudioSessionGuid,StreamFlags,SessionControl) ) + +#define IAudioSessionManager_GetSimpleAudioVolume(This,AudioSessionGuid,StreamFlags,AudioVolume) \ + ( (This)->lpVtbl -> GetSimpleAudioVolume(This,AudioSessionGuid,StreamFlags,AudioVolume) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSessionManager_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioVolumeDuckNotification_INTERFACE_DEFINED__ +#define __IAudioVolumeDuckNotification_INTERFACE_DEFINED__ + +/* interface IAudioVolumeDuckNotification */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAudioVolumeDuckNotification; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C3B284D4-6D39-4359-B3CF-B56DDB3BB39C") + IAudioVolumeDuckNotification : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnVolumeDuckNotification( + /* [in] */ LPCWSTR sessionID, + /* [in] */ UINT32 countCommunicationSessions) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnVolumeUnduckNotification( + /* [in] */ LPCWSTR sessionID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioVolumeDuckNotificationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioVolumeDuckNotification * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioVolumeDuckNotification * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioVolumeDuckNotification * This); + + DECLSPEC_XFGVIRT(IAudioVolumeDuckNotification, OnVolumeDuckNotification) + HRESULT ( STDMETHODCALLTYPE *OnVolumeDuckNotification )( + IAudioVolumeDuckNotification * This, + /* [in] */ LPCWSTR sessionID, + /* [in] */ UINT32 countCommunicationSessions); + + DECLSPEC_XFGVIRT(IAudioVolumeDuckNotification, OnVolumeUnduckNotification) + HRESULT ( STDMETHODCALLTYPE *OnVolumeUnduckNotification )( + IAudioVolumeDuckNotification * This, + /* [in] */ LPCWSTR sessionID); + + END_INTERFACE + } IAudioVolumeDuckNotificationVtbl; + + interface IAudioVolumeDuckNotification + { + CONST_VTBL struct IAudioVolumeDuckNotificationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioVolumeDuckNotification_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioVolumeDuckNotification_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioVolumeDuckNotification_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioVolumeDuckNotification_OnVolumeDuckNotification(This,sessionID,countCommunicationSessions) \ + ( (This)->lpVtbl -> OnVolumeDuckNotification(This,sessionID,countCommunicationSessions) ) + +#define IAudioVolumeDuckNotification_OnVolumeUnduckNotification(This,sessionID) \ + ( (This)->lpVtbl -> OnVolumeUnduckNotification(This,sessionID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioVolumeDuckNotification_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioSessionNotification_INTERFACE_DEFINED__ +#define __IAudioSessionNotification_INTERFACE_DEFINED__ + +/* interface IAudioSessionNotification */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAudioSessionNotification; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("641DD20B-4D41-49CC-ABA3-174B9477BB08") + IAudioSessionNotification : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnSessionCreated( + /* [in] */ IAudioSessionControl *NewSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSessionNotificationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioSessionNotification * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioSessionNotification * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioSessionNotification * This); + + DECLSPEC_XFGVIRT(IAudioSessionNotification, OnSessionCreated) + HRESULT ( STDMETHODCALLTYPE *OnSessionCreated )( + IAudioSessionNotification * This, + /* [in] */ IAudioSessionControl *NewSession); + + END_INTERFACE + } IAudioSessionNotificationVtbl; + + interface IAudioSessionNotification + { + CONST_VTBL struct IAudioSessionNotificationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSessionNotification_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSessionNotification_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSessionNotification_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioSessionNotification_OnSessionCreated(This,NewSession) \ + ( (This)->lpVtbl -> OnSessionCreated(This,NewSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSessionNotification_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioSessionEnumerator_INTERFACE_DEFINED__ +#define __IAudioSessionEnumerator_INTERFACE_DEFINED__ + +/* interface IAudioSessionEnumerator */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAudioSessionEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E2F5BB11-0570-40CA-ACDD-3AA01277DEE8") + IAudioSessionEnumerator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ int *SessionCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSession( + /* [in] */ int SessionCount, + /* [out] */ IAudioSessionControl **Session) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSessionEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioSessionEnumerator * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioSessionEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioSessionEnumerator * This); + + DECLSPEC_XFGVIRT(IAudioSessionEnumerator, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + IAudioSessionEnumerator * This, + /* [out] */ int *SessionCount); + + DECLSPEC_XFGVIRT(IAudioSessionEnumerator, GetSession) + HRESULT ( STDMETHODCALLTYPE *GetSession )( + IAudioSessionEnumerator * This, + /* [in] */ int SessionCount, + /* [out] */ IAudioSessionControl **Session); + + END_INTERFACE + } IAudioSessionEnumeratorVtbl; + + interface IAudioSessionEnumerator + { + CONST_VTBL struct IAudioSessionEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSessionEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSessionEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSessionEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioSessionEnumerator_GetCount(This,SessionCount) \ + ( (This)->lpVtbl -> GetCount(This,SessionCount) ) + +#define IAudioSessionEnumerator_GetSession(This,SessionCount,Session) \ + ( (This)->lpVtbl -> GetSession(This,SessionCount,Session) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSessionEnumerator_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioSessionManager2_INTERFACE_DEFINED__ +#define __IAudioSessionManager2_INTERFACE_DEFINED__ + +/* interface IAudioSessionManager2 */ +/* [local][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAudioSessionManager2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("77AA99A0-1BD6-484F-8BC7-2C654C9A9B6F") + IAudioSessionManager2 : public IAudioSessionManager + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSessionEnumerator( + /* [retval][out] */ IAudioSessionEnumerator **SessionEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterSessionNotification( + IAudioSessionNotification *SessionNotification) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterSessionNotification( + IAudioSessionNotification *SessionNotification) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterDuckNotification( + /* [string][in] */ LPCWSTR sessionID, + /* [annotation][in] */ + _In_ IAudioVolumeDuckNotification *duckNotification) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterDuckNotification( + /* [annotation][in] */ + _In_ IAudioVolumeDuckNotification *duckNotification) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioSessionManager2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioSessionManager2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioSessionManager2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioSessionManager2 * This); + + DECLSPEC_XFGVIRT(IAudioSessionManager, GetAudioSessionControl) + HRESULT ( STDMETHODCALLTYPE *GetAudioSessionControl )( + IAudioSessionManager2 * This, + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][out] */ + _Outptr_ IAudioSessionControl **SessionControl); + + DECLSPEC_XFGVIRT(IAudioSessionManager, GetSimpleAudioVolume) + HRESULT ( STDMETHODCALLTYPE *GetSimpleAudioVolume )( + IAudioSessionManager2 * This, + /* [annotation][in] */ + _In_opt_ LPCGUID AudioSessionGuid, + /* [annotation][in] */ + _In_ DWORD StreamFlags, + /* [annotation][out] */ + _Outptr_ ISimpleAudioVolume **AudioVolume); + + DECLSPEC_XFGVIRT(IAudioSessionManager2, GetSessionEnumerator) + HRESULT ( STDMETHODCALLTYPE *GetSessionEnumerator )( + IAudioSessionManager2 * This, + /* [retval][out] */ IAudioSessionEnumerator **SessionEnum); + + DECLSPEC_XFGVIRT(IAudioSessionManager2, RegisterSessionNotification) + HRESULT ( STDMETHODCALLTYPE *RegisterSessionNotification )( + IAudioSessionManager2 * This, + IAudioSessionNotification *SessionNotification); + + DECLSPEC_XFGVIRT(IAudioSessionManager2, UnregisterSessionNotification) + HRESULT ( STDMETHODCALLTYPE *UnregisterSessionNotification )( + IAudioSessionManager2 * This, + IAudioSessionNotification *SessionNotification); + + DECLSPEC_XFGVIRT(IAudioSessionManager2, RegisterDuckNotification) + HRESULT ( STDMETHODCALLTYPE *RegisterDuckNotification )( + IAudioSessionManager2 * This, + /* [string][in] */ LPCWSTR sessionID, + /* [annotation][in] */ + _In_ IAudioVolumeDuckNotification *duckNotification); + + DECLSPEC_XFGVIRT(IAudioSessionManager2, UnregisterDuckNotification) + HRESULT ( STDMETHODCALLTYPE *UnregisterDuckNotification )( + IAudioSessionManager2 * This, + /* [annotation][in] */ + _In_ IAudioVolumeDuckNotification *duckNotification); + + END_INTERFACE + } IAudioSessionManager2Vtbl; + + interface IAudioSessionManager2 + { + CONST_VTBL struct IAudioSessionManager2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioSessionManager2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioSessionManager2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioSessionManager2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioSessionManager2_GetAudioSessionControl(This,AudioSessionGuid,StreamFlags,SessionControl) \ + ( (This)->lpVtbl -> GetAudioSessionControl(This,AudioSessionGuid,StreamFlags,SessionControl) ) + +#define IAudioSessionManager2_GetSimpleAudioVolume(This,AudioSessionGuid,StreamFlags,AudioVolume) \ + ( (This)->lpVtbl -> GetSimpleAudioVolume(This,AudioSessionGuid,StreamFlags,AudioVolume) ) + + +#define IAudioSessionManager2_GetSessionEnumerator(This,SessionEnum) \ + ( (This)->lpVtbl -> GetSessionEnumerator(This,SessionEnum) ) + +#define IAudioSessionManager2_RegisterSessionNotification(This,SessionNotification) \ + ( (This)->lpVtbl -> RegisterSessionNotification(This,SessionNotification) ) + +#define IAudioSessionManager2_UnregisterSessionNotification(This,SessionNotification) \ + ( (This)->lpVtbl -> UnregisterSessionNotification(This,SessionNotification) ) + +#define IAudioSessionManager2_RegisterDuckNotification(This,sessionID,duckNotification) \ + ( (This)->lpVtbl -> RegisterDuckNotification(This,sessionID,duckNotification) ) + +#define IAudioSessionManager2_UnregisterDuckNotification(This,duckNotification) \ + ( (This)->lpVtbl -> UnregisterDuckNotification(This,duckNotification) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioSessionManager2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_audiopolicy_0000_0008 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_audiopolicy_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_audiopolicy_0000_0008_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiopolicy.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiopolicy.idl new file mode 100644 index 0000000000000000000000000000000000000000..50140ba2c43546cf75b51e8eb0e490c2bf6a821a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiopolicy.idl @@ -0,0 +1,730 @@ +cpp_quote("#include ") + +// AudioPolicy.idl : IDL source for IAudioPolicy and associated interfaces +// + +// This file will be processed by the MIDL tool to +// produce the type library (AudioPolicy.tlb) and marshalling code. + +import "oaidl.idl"; +import "ocidl.idl"; +import "propidl.idl"; + +import "AudioSessionTypes.h"; +import "AudioClient.idl"; + +#pragma region Application and Games Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)") + +typedef enum AudioSessionDisconnectReason +{ + DisconnectReasonDeviceRemoval, + DisconnectReasonServerShutdown, + DisconnectReasonFormatChanged, + DisconnectReasonSessionLogoff, + DisconnectReasonSessionDisconnected, + DisconnectReasonExclusiveModeOverride + +} AudioSessionDisconnectReason; + +/*++ IAudioSessionEvents - Interface that encapsulates AudioSession change +* events. +*--*/ +[ + object, + pointer_default(unique), + uuid(24918ACC-64B3-37C1-8CA9-74A66E9957A8), + local +] +interface IAudioSessionEvents : IUnknown { + // + // Application initiated events. + // + + + //------------------------------------------------------------------------- + // Description: + // + // Called when the display name of an AudioSession changes. + // + // Parameters: + // + // newDisplayName - [in] The new display name for the Audio Session. + // EventContext - [in] Context passed to SetDisplayName routine. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + // Please note: The caller of this function ignores all return + // codes from this method. + // + HRESULT OnDisplayNameChanged([in, string, annotation("_In_")]LPCWSTR NewDisplayName, [in] LPCGUID EventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Called when the icon path of an AudioSession changes. + // + // Parameters: + // + // NewIconPath - [in] The new icon path for the Audio Session. + // EventContext - [in] Context passed to SetIconPath routine. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + // Please note: The caller of this function ignores all return + // codes from this method. + // + HRESULT OnIconPathChanged([in, string, annotation("_In_")]LPCWSTR NewIconPath, [in] LPCGUID EventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Called when the simple volume of an AudioSession changes. + // + // Parameters: + // + // newVolume - [in] The new volume for the AudioSession. + // newMute - [in] The new mute state for the AudioSession. + // EventContext - [in] Context passed to SetVolume routine. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + // Please note: The caller of this function ignores all return + // codes from this method. + // + HRESULT OnSimpleVolumeChanged([in, annotation("_In_")] float NewVolume, [in, annotation("_In_")] BOOL NewMute, [in] LPCGUID EventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Called when the channel volume of an AudioSession changes. + // + // Parameters: + // + // ChannelCount - [in] The number of channels in the channel array. + // NewChannelVolumeArray - [in] An array containing the new channel volumes. + // ChangedChannel - [in] -1 if all channnels were changed, otherwise the channel volume which changed, + // 0..ChannelCount-1 + // EventContext - [in] Context passed to SetVolume routine. + // + // Return values: + // S_OK Success + // FAILURECODE Failure (ignored) + // + // Please note: The caller of this function ignores all return + // codes from this method. + // + HRESULT OnChannelVolumeChanged([in, annotation("_In_")] DWORD ChannelCount, [in, size_is(ChannelCount), annotation("_In_reads_(ChannelCount)")]float NewChannelVolumeArray[*], [in, annotation("_In_")]DWORD ChangedChannel, [in] LPCGUID EventContext); + + //------------------------------------------------------------------------- + // Description: + // Called when the grouping param of an Audio Session changes. + // + // Parameters: + // NewGroupingParam - [in] The new gropuing param for the Audio Session. + // EventContext - [in] Context passed to SetGroupingParam routine. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + // Please note: The caller of this function ignores all return + // codes from this method. + // + HRESULT OnGroupingParamChanged([in, annotation("_In_")] LPCGUID NewGroupingParam, [in] LPCGUID EventContext); + + // + // System initiated events. + // + + //------------------------------------------------------------------------- + // Description: + // + // Called when the state of an AudioSession changes. + // + // Parameters: + // + // newState - [in] The new state for the AudioSession. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + // Please note: The caller of this function ignores all return + // codes from this method. + // + HRESULT OnStateChanged([in, annotation("_In_")] AudioSessionState NewState); + + //------------------------------------------------------------------------- + // Description: + // Called when the audio session has been disconnected. + // + // Parameters: + // DisconnectReason - [in] The reason for the disconnection. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + // Please note: The caller of this function ignores all return + // codes from this method. + // + HRESULT OnSessionDisconnected([in, annotation("_In_")] AudioSessionDisconnectReason DisconnectReason); +}; + +/*++ IAudioSessionControl - Client interface that allows control over a +* AudioSession. +*--*/ +[ + object, + uuid(F4B1A599-7266-4319-A8CA-E70ACB11E8CD), + helpstring("AudioSession Control Interface"), + pointer_default(unique), + local +] +interface IAudioSessionControl : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the current AudioSession state. + // + // Parameters: + // + // pRetVal - [out] The current AudioSession state, either + // AudioSessionStateActive or AudioSessionStateInactive + // + // Return values: + // + // S_OK Success + // FAILURECODE Failure + // + // Remarks: + // + // If an AudioSession has audio streams currently opened on the AudioSession, + // the AudioSession is considered active, otherwise it is inactive. + // + HRESULT GetState([out, annotation("_Out_")] AudioSessionState* pRetVal); + + + //------------------------------------------------------------------------- + // Description: + // + // Sets or retrieves the current display name of the AudioSession. + // + // Parameters: + // + // Value - [in] A string containing the current display name for the AudioSession. + // + // pRetVal - [out] A string containing the current display name for the + // AudioSession. Caller should free this with CoTaskMemFree. + // + // The DisplayName may be in the form of a shell resource spcification, in which case + // the volume UI will extract the display name for the current language from + // the specified path. + // + // The shell resource specification is of the form: + // \, + // So:"%windir%\system32\shell32.dll,-240" is an example. + // EventContext - [in] Context passed to OnDisplayNameChanged routine, GUID_NULL if NULL. + // + // Return values: + // + // S_OK Success + // FAILURECODE Failure + // Remarks: + // The application hosting the session controls the display name, if the application has NOT set the display name, + // then this will return an empty string (""). + // + //------------------------------------------------------------------------- + HRESULT GetDisplayName([out, string, annotation("_Out_")] LPWSTR* pRetVal); + HRESULT SetDisplayName([in, string, annotation("_In_")] LPCWSTR Value, [in, unique] LPCGUID EventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Sets or retrieves an icon resource associated with the session. + // + // Parameters: + // + // Value - [in] A string containing a shell resource specification used to retrieve + // the icon for the Audio Session. The volume UI will pass this string + // to the ExtractIcon(Ex) API to extract the icon that is displayed + // + // The shell resource specification is of the form: + // \, + // So:"%windir%\system32\shell32.dll,-240" is an example. + // + // pRetVal - [out] A string containing the shell resource specification for the + // Audio Session. Caller should free this with CoTaskMemFree. + // EventContext - [in] Context passed to OnIconPathChanged routine. + // + // Return values: + // + // S_OK Success + // FAILURECODE Failure + // Remarks: + // The application hosting the session controls the icon path, if the application has NOT set the icon path, + // then this will return an empty string (""). + // + //------------------------------------------------------------------------- + HRESULT GetIconPath([out, string, annotation("_Out_")] LPWSTR* pRetVal); + HRESULT SetIconPath([in, string, annotation("_In_")] LPCWSTR Value, [in, unique] LPCGUID EventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Gets or sets the current grouping param of the Audio Session. + // + // Parameters: + // + // GroupingParam - [in] The GUID grouping param for the current Audio Session. + // pRetVal - [out] The GUID grouping param for the current Audio Session. + // EventContext - [in] Context passed to OnGroupingParamChanged routine. + // + // Return values: + // + // S_OK Success + // FAILURECODE Failure + // + // Remarks: + // Normally the volume control application (sndvol.exe) will launch a separate slider + // for each audio session. If an application wishes to override this behavior, it can + // set the session grouping param to an application defined GUID. When the volume + // control application sees two sessions with the same session control, it will only + // display a single slider for those applications. + // + // As an example, normally, if you launch two copies of sndrec32.exe, then you will see + // two volume control sliders in the windows volume control application. If sndrec32.exe + // sets the grouping param, then the volume control will only show one slider, even though + // there are two sessions. + // + // Please note that there are still two sessions, each with its own volume control, and those + // volume controls may not have the same value. If this is the case, then it is the responsibility + // of the application to ensure that the volume control on each session has the same value. + // + // + // + HRESULT GetGroupingParam([out, annotation("_Out_")] GUID* pRetVal); + HRESULT SetGroupingParam([in, annotation("_In_")] LPCGUID Override, [in, unique] LPCGUID EventContext); + + + //------------------------------------------------------------------------- + // Description: + // + // Add a notification callback to the list of AudioSession notification + // callbacks. + // + // Parameters: + // + // NewNotifications - [in] An object implementing the IAudioSessionEvents + // interface. + // + // Return values: + // + // S_OK Success + // FAILURECODE Failure + // + HRESULT RegisterAudioSessionNotification([in, annotation("_In_")]IAudioSessionEvents *NewNotifications); + //------------------------------------------------------------------------- + // Description: + // + // Remove a notification callback to the list of AudioSession notification + // callbacks. + // + // Parameters: + // + // NewNotifications - [in] An object implementing the IAudioSessionEvents + // interface. + // + // Return values: + // + // S_OK Success + // FAILURECODE Failure + // + // Remarks: + // Please note: This function is a "finalizer". As such, + // assuming that the NewNotification parameter has been + // previously registered for notification, this function has + // no valid failure modes. + // + HRESULT UnregisterAudioSessionNotification([in, annotation("_In_")]IAudioSessionEvents *NewNotifications); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +/*++ IAudioSessionControl2 - Client interface that allows control over an +* AudioSession. +*--*/ +[ +object, +uuid(bfb7ff88-7239-4fc9-8fa2-07c950be9c6d), +helpstring("AudioSession Control Extended Interface"), +pointer_default(unique), +local +] +interface IAudioSessionControl2 : IAudioSessionControl +{ + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the AudioSession ID. + // + // Parameters: + // + // pRetVal - [out] A string containing the ID of the AudioSession. + // Freed with CoTaskMemFree + // + // Return values: + // + // S_OK Success + // FAILURECODE Failure + // + // Remarks: + // + // Each AudioSession has a unique identifier string associated with it. + // This ID string represents the identifier of the AudioSession. It is NOT unique across all instances - if there are two + // instances of the application playing, they will both have the same session identifier. + // + HRESULT GetSessionIdentifier([out, string, annotation("_Out_")] LPWSTR* pRetVal); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the AudioSession instance ID. + // + // Parameters: + // + // pRetVal - [out] A string containing the instance ID of the AudioSession. + // Freed with CoTaskMemFree + // + // Return values: + // + // S_OK Success + // FAILURECODE Failure + // + // Remarks: + // + // Each AudioSession has a unique identifier string associated with it. + // This ID string represents the particular instance of the AudioSession. + // + // The session instance identifier is unique across all instances, if there are two instances of the application playing, + // they will have different instance identifiers. + // + HRESULT GetSessionInstanceIdentifier([out, string, annotation("_Out_")] LPWSTR* pRetVal); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the AudioSession Process ID. + // + // Parameters: + // + // pRetVal - [out] A string containing the ID of the AudioSession. + // Freed with CoTaskMemFree + // + // Return values: + // + // S_OK Success + // AUDCLNT_E_NO_SINGLE_PROCESS Indicates that the session spans more than one process. + // FAILURECODE Failure + // + // Remarks: + // + // + // + HRESULT GetProcessId([out, annotation("_Out_")] DWORD* pRetVal); + + //------------------------------------------------------------------------- + // Description: + // + // Determines if the specified session is the system sounds session + // + // Parameters: + // + // None + // + // Return values: + // + // S_OK Success - The session is the system sounds session. + // S_FALSE Success - The session is NOT the system sounds session. + // FAILURECODE Failure + // + HRESULT IsSystemSoundsSession(); + + //------------------------------------------------------------------------- + // Description: + // + // Allows client to set its ducking preference + // + // Parameters: + // optOut - [in] indicates whether caller wants to opt out of + // system auto-ducking + // + // Remarks + // + // An application should call this method in advance of receiving + // a ducking notification (generally at stream create time). This + // method can be called dynamically (i.e. over and over) as its + // desire to opt in or opt out of ducking changes. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + HRESULT SetDuckingPreference([in] BOOL optOut); + +} // IAudioSessionControl2 + + +/*++ IAudioSessionManager. + * + * Provides support for accessing the session control and volume control for sessions in this process. + * + *--*/ +[ + object, + uuid(BFA971F1-4D5E-40BB-935E-967039BFBEE4), + helpstring("Audio Session Manager Interface"), + pointer_default(unique), + local +] +interface IAudioSessionManager : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Return an audio session control for the current process. + // + // Parameters: + // AudioSessionGuid - [in] Session ID for the session. + // StreamFlags - [in] combinarion of .AUDCLNT_STREAMFLAGS_XYZ flags + // SessionControl - [out] Returns a pointer to an audio session control for the current process. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + HRESULT GetAudioSessionControl([in, annotation("_In_opt_")]LPCGUID AudioSessionGuid, [in, annotation("_In_")] DWORD StreamFlags, [out, annotation("_Outptr_")] IAudioSessionControl **SessionControl); + + //------------------------------------------------------------------------- + // Description: + // + // Return an audio volume control for the current process. + // + // Parameters: + // AudioSessionGuid - [in] Session ID for the session. + // StreamFlags - [in] combinarion of .AUDCLNT_STREAMFLAGS_XYZ flags + // AudioVolume - [out] Returns a pointer to an audio volume control for a session in the current process. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + HRESULT GetSimpleAudioVolume([in, annotation("_In_opt_")]LPCGUID AudioSessionGuid, [in, annotation("_In_")] DWORD StreamFlags, [out, annotation("_Outptr_")] ISimpleAudioVolume **AudioVolume); +} + + +/*++ IAudioVolumeDuckNotification - Notification on session changes. +* +*--*/ +[ + object, + uuid(C3B284D4-6D39-4359-B3CF-B56DDB3BB39C), + helpstring("Audio Session Notification Interface"), + pointer_default(unique), + local +] +interface IAudioVolumeDuckNotification : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Notification of a pending system auto-duck + // + // Parameters: + // sessionID - [in] Session instance ID of the communications session + // creating the auto-ducking event. + // countCommunicationsSessions - [in] the number of active + // communications sessions (first + // session is 1). + // + // + // Remarks + // + // If applications wish to opt out of ducking, they must call + // IAudioVolumeDuck::SetDuckingPreference() + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + HRESULT OnVolumeDuckNotification([in] LPCWSTR sessionID, [in] UINT32 countCommunicationSessions); + + // Description: + // + // Notification of a pending system auto-unduck + // + // Parameters: + // sessionID - [in] Session instance ID of the communications session + // that is terminating. + // countCommunicationsSessions - [in] the number of active + // communications sessions (last + // session is 1). + // + // Remarks + // + // This is simply a notification that + // the communications stream that initiated the ducking is terminating. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + HRESULT OnVolumeUnduckNotification([in] LPCWSTR sessionID); +} + +/*++ IAudioSessionNotification - Notification on session changes. +* +*--*/ +[ + object, + uuid(641DD20B-4D41-49CC-ABA3-174B9477BB08), + helpstring("Audio Session Notification Interface"), + pointer_default(unique), + local +] +interface IAudioSessionNotification : IUnknown +{ + HRESULT OnSessionCreated([in] IAudioSessionControl *NewSession); +} + + +/*++ IAudioSessionEnumerator - Session enumeration. +* +*--*/ +[ + object, + uuid(E2F5BB11-0570-40CA-ACDD-3AA01277DEE8), + helpstring("Audio Session Enumerator Interface"), + pointer_default(unique), + local +] +interface IAudioSessionEnumerator : IUnknown +{ + HRESULT GetCount([out] int *SessionCount); + HRESULT GetSession([in] int SessionCount, [out] IAudioSessionControl **Session); +} + + +/*++ IAudioSessionManager2 - Manage interface for all submixes - Supports +* enumeration and notification of submixes. Also +* provides support for ducking notifications. +* +*--*/ +[ + object, + uuid(77AA99A0-1BD6-484F-8BC7-2C654C9A9B6F), + helpstring("Audio Session Manager Extended Interface"), + pointer_default(unique), + local +] +interface IAudioSessionManager2 : IAudioSessionManager +{ + //------------------------------------------------------------------------- + // Description: + // + // Return the audio session enumerator. + // + // Parameters: + // SessionList - [out] An IAudioSessionEnumerator interface that + // can enumerate the audio sessions. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + HRESULT GetSessionEnumerator([out, retval]IAudioSessionEnumerator **SessionEnum); + + //------------------------------------------------------------------------- + // Description: + // + // Add the specified process ID as a target for session + // notifications. + // + // Parameters: + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + HRESULT RegisterSessionNotification(IAudioSessionNotification *SessionNotification); + + //------------------------------------------------------------------------- + // Description: + // + // Remove the specified process ID as a target for session + // notifications. + // + // Parameters: + // + // Return values: + // S_OK Success + // FAILURECODE Failure + // + HRESULT UnregisterSessionNotification(IAudioSessionNotification *SessionNotification); + + //------------------------------------------------------------------------- + // Description: + // + // Register for notification of a pending system auto-duck + // + // Parameters: + // sessionID - [in] A filter. Applications like media players + // that are interested in their sessions will + // pass their own session instance ID. Other applications + // that want to see all the ducking notifications + // can pass NULL. + // duckNotification - [in] Object which implements the + // IAudioVolumeDuckNotification interface + // which will receive new notifications. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + HRESULT RegisterDuckNotification([in, string] LPCWSTR sessionID, [in, annotation("_In_")]IAudioVolumeDuckNotification * duckNotification); + + //------------------------------------------------------------------------- + // Description: + // + // Unregisters for notification of a pending system auto-duck + // + // Parameters: + // duckNotification - [in] Object which implements the + // IAudioVolumeDuckNotification interface + // previously registered, which will be + // no longer receive notifications. Please + // note that after this routine returns, no + // all pending notifications will have been + // processed. + // + // Return values: + // S_OK Success + // FAILURECODE Failure + HRESULT UnregisterDuckNotification([in, annotation("_In_")]IAudioVolumeDuckNotification * duckNotification); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiostatemonitorapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiostatemonitorapi.h new file mode 100644 index 0000000000000000000000000000000000000000..021f3987f27d2df65ef0997b990a10d181b860a2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/audiostatemonitorapi.h @@ -0,0 +1,83 @@ +/************************************************************************** + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * + **************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef __AUDIOSTATEMONITORAPI__ +#define __AUDIOSTATEMONITORAPI__ + +#include +#include +#include "AudioSessionTypes.h" + +#pragma region Desktop and Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_GAMES) + +interface IAudioStateMonitor; + +typedef void CALLBACK AudioStateMonitorCallback (_In_ IAudioStateMonitor* audioStateMonitor, _In_opt_ void* context); +typedef AudioStateMonitorCallback* PAudioStateMonitorCallback; +typedef __int64 AudioStateMonitorRegistrationHandle; + +enum class AudioStateMonitorSoundLevel +{ + Muted = 0, // Audio is muted + Low, // Audio is ducked + Full // Audio is unchanged +}; + +/************************************************************************** + * + * IAudioStateMonitor interface + * + **************************************************************************/ + +#undef INTERFACE +#define INTERFACE IAudioStateMonitor +DECLARE_INTERFACE_IID_(IAudioStateMonitor, IUnknown, "63BD8738-E30D-4C77-BF5C-834E87C657E2") +{ + // Registers a new callback with the AudioStateMonitor. + STDMETHOD(RegisterCallback) (_In_ PAudioStateMonitorCallback callback, _In_opt_ void* context, _Out_ AudioStateMonitorRegistrationHandle* registration) PURE; + + // Unregisters an existing callback with the AudioStateMonitor + // This method will block if any callbacks are in progress, until the callbacks have completed. + // This method may be called from within the callback (it will not block in this case) + STDMETHOD_(void, UnregisterCallback) (_In_ AudioStateMonitorRegistrationHandle registration) PURE; + + // Retrieves the current sound level for the AudioStateMonitor + STDMETHOD_(AudioStateMonitorSoundLevel, GetSoundLevel) () PURE; +}; + +/************************************************************************** + * + * Functions that create and return an AudioStateMonitor instance. + * + * There are four variants each for capture and render streams, to determine + * whether a process can + * - capture or render any audio of any category + * - capture or render audio of a specific category + * - capture or render audio of a specific category, to a specific endpoint. + * The endpoint may be specified using the MMDevice id (obtained using IMMDevice::GetId()), or + * by using its SWD id (obtained using Windows.Devices.Enumeration or Windows.Media.Devices.MediaDevice) + * - capture or render audio of a specific category to the default endpoint + * for a given role + **************************************************************************/ + +STDAPI CreateRenderAudioStateMonitor(_Outptr_ IAudioStateMonitor** audioStateMonitor); +STDAPI CreateRenderAudioStateMonitorForCategory(_In_ AUDIO_STREAM_CATEGORY category, _Outptr_ IAudioStateMonitor** audioStateMonitor); +STDAPI CreateRenderAudioStateMonitorForCategoryAndDeviceRole(_In_ AUDIO_STREAM_CATEGORY category, _In_ ERole role, _Outptr_ IAudioStateMonitor** audioStateMonitor); +STDAPI CreateRenderAudioStateMonitorForCategoryAndDeviceId(_In_ AUDIO_STREAM_CATEGORY category, _In_ PCWSTR deviceId, _Outptr_ IAudioStateMonitor** audioStateMonitor); + +STDAPI CreateCaptureAudioStateMonitor(_Outptr_ IAudioStateMonitor** audioStateMonitor); +STDAPI CreateCaptureAudioStateMonitorForCategory(_In_ AUDIO_STREAM_CATEGORY category, _Outptr_ IAudioStateMonitor** audioStateMonitor); +STDAPI CreateCaptureAudioStateMonitorForCategoryAndDeviceRole(_In_ AUDIO_STREAM_CATEGORY category, _In_ ERole role, _Outptr_ IAudioStateMonitor** audioStateMonitor); +STDAPI CreateCaptureAudioStateMonitorForCategoryAndDeviceId(_In_ AUDIO_STREAM_CATEGORY category, _In_ PCWSTR deviceId, _Outptr_ IAudioStateMonitor** audioStateMonitor); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_GAMES)" + +#endif // __AUDIOSTATEMONITORAPI__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/austream.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/austream.h new file mode 100644 index 0000000000000000000000000000000000000000..62a2c46ca03afd8186aaecf998583db58210cc12 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/austream.h @@ -0,0 +1,664 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __austream_h__ +#define __austream_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAudioMediaStream_FWD_DEFINED__ +#define __IAudioMediaStream_FWD_DEFINED__ +typedef interface IAudioMediaStream IAudioMediaStream; + +#endif /* __IAudioMediaStream_FWD_DEFINED__ */ + + +#ifndef __IAudioStreamSample_FWD_DEFINED__ +#define __IAudioStreamSample_FWD_DEFINED__ +typedef interface IAudioStreamSample IAudioStreamSample; + +#endif /* __IAudioStreamSample_FWD_DEFINED__ */ + + +#ifndef __IMemoryData_FWD_DEFINED__ +#define __IMemoryData_FWD_DEFINED__ +typedef interface IMemoryData IMemoryData; + +#endif /* __IMemoryData_FWD_DEFINED__ */ + + +#ifndef __IAudioData_FWD_DEFINED__ +#define __IAudioData_FWD_DEFINED__ +typedef interface IAudioData IAudioData; + +#endif /* __IAudioData_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "mmstream.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_austream_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// +// The following declarations within the 'if 0' block are dummy typedefs used to make +// the ddstream.idl file build. The actual definitions are contained in DDRAW.H +// +#if 0 +typedef struct tWAVEFORMATEX WAVEFORMATEX; + +#endif + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_austream_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_austream_0000_0000_v0_0_s_ifspec; + +#ifndef __IAudioMediaStream_INTERFACE_DEFINED__ +#define __IAudioMediaStream_INTERFACE_DEFINED__ + +/* interface IAudioMediaStream */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioMediaStream; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f7537560-a3be-11d0-8212-00c04fc32c45") + IAudioMediaStream : public IMediaStream + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFormat( + /* [out] */ WAVEFORMATEX *pWaveFormatCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFormat( + /* [in] */ const WAVEFORMATEX *lpWaveFormat) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSample( + /* [in] */ IAudioData *pAudioData, + /* [in] */ DWORD dwFlags, + /* [out] */ IAudioStreamSample **ppSample) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioMediaStreamVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioMediaStream * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioMediaStream * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioMediaStream * This); + + DECLSPEC_XFGVIRT(IMediaStream, GetMultiMediaStream) + HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )( + IAudioMediaStream * This, + /* [out] */ IMultiMediaStream **ppMultiMediaStream); + + DECLSPEC_XFGVIRT(IMediaStream, GetInformation) + HRESULT ( STDMETHODCALLTYPE *GetInformation )( + IAudioMediaStream * This, + /* [out] */ MSPID *pPurposeId, + /* [out] */ STREAM_TYPE *pType); + + DECLSPEC_XFGVIRT(IMediaStream, SetSameFormat) + HRESULT ( STDMETHODCALLTYPE *SetSameFormat )( + IAudioMediaStream * This, + /* [in] */ IMediaStream *pStreamThatHasDesiredFormat, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IMediaStream, AllocateSample) + HRESULT ( STDMETHODCALLTYPE *AllocateSample )( + IAudioMediaStream * This, + /* [in] */ DWORD dwFlags, + /* [out] */ IStreamSample **ppSample); + + DECLSPEC_XFGVIRT(IMediaStream, CreateSharedSample) + HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )( + IAudioMediaStream * This, + /* [in] */ IStreamSample *pExistingSample, + /* [in] */ DWORD dwFlags, + /* [out] */ IStreamSample **ppNewSample); + + DECLSPEC_XFGVIRT(IMediaStream, SendEndOfStream) + HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )( + IAudioMediaStream * This, + DWORD dwFlags); + + DECLSPEC_XFGVIRT(IAudioMediaStream, GetFormat) + HRESULT ( STDMETHODCALLTYPE *GetFormat )( + IAudioMediaStream * This, + /* [out] */ WAVEFORMATEX *pWaveFormatCurrent); + + DECLSPEC_XFGVIRT(IAudioMediaStream, SetFormat) + HRESULT ( STDMETHODCALLTYPE *SetFormat )( + IAudioMediaStream * This, + /* [in] */ const WAVEFORMATEX *lpWaveFormat); + + DECLSPEC_XFGVIRT(IAudioMediaStream, CreateSample) + HRESULT ( STDMETHODCALLTYPE *CreateSample )( + IAudioMediaStream * This, + /* [in] */ IAudioData *pAudioData, + /* [in] */ DWORD dwFlags, + /* [out] */ IAudioStreamSample **ppSample); + + END_INTERFACE + } IAudioMediaStreamVtbl; + + interface IAudioMediaStream + { + CONST_VTBL struct IAudioMediaStreamVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioMediaStream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioMediaStream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioMediaStream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioMediaStream_GetMultiMediaStream(This,ppMultiMediaStream) \ + ( (This)->lpVtbl -> GetMultiMediaStream(This,ppMultiMediaStream) ) + +#define IAudioMediaStream_GetInformation(This,pPurposeId,pType) \ + ( (This)->lpVtbl -> GetInformation(This,pPurposeId,pType) ) + +#define IAudioMediaStream_SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) \ + ( (This)->lpVtbl -> SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) ) + +#define IAudioMediaStream_AllocateSample(This,dwFlags,ppSample) \ + ( (This)->lpVtbl -> AllocateSample(This,dwFlags,ppSample) ) + +#define IAudioMediaStream_CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) \ + ( (This)->lpVtbl -> CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) ) + +#define IAudioMediaStream_SendEndOfStream(This,dwFlags) \ + ( (This)->lpVtbl -> SendEndOfStream(This,dwFlags) ) + + +#define IAudioMediaStream_GetFormat(This,pWaveFormatCurrent) \ + ( (This)->lpVtbl -> GetFormat(This,pWaveFormatCurrent) ) + +#define IAudioMediaStream_SetFormat(This,lpWaveFormat) \ + ( (This)->lpVtbl -> SetFormat(This,lpWaveFormat) ) + +#define IAudioMediaStream_CreateSample(This,pAudioData,dwFlags,ppSample) \ + ( (This)->lpVtbl -> CreateSample(This,pAudioData,dwFlags,ppSample) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioMediaStream_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioStreamSample_INTERFACE_DEFINED__ +#define __IAudioStreamSample_INTERFACE_DEFINED__ + +/* interface IAudioStreamSample */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioStreamSample; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("345fee00-aba5-11d0-8212-00c04fc32c45") + IAudioStreamSample : public IStreamSample + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAudioData( + /* [out] */ IAudioData **ppAudio) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioStreamSampleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioStreamSample * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioStreamSample * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioStreamSample * This); + + DECLSPEC_XFGVIRT(IStreamSample, GetMediaStream) + HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( + IAudioStreamSample * This, + /* [in] */ IMediaStream **ppMediaStream); + + DECLSPEC_XFGVIRT(IStreamSample, GetSampleTimes) + HRESULT ( STDMETHODCALLTYPE *GetSampleTimes )( + IAudioStreamSample * This, + /* [out] */ STREAM_TIME *pStartTime, + /* [out] */ STREAM_TIME *pEndTime, + /* [out] */ STREAM_TIME *pCurrentTime); + + DECLSPEC_XFGVIRT(IStreamSample, SetSampleTimes) + HRESULT ( STDMETHODCALLTYPE *SetSampleTimes )( + IAudioStreamSample * This, + /* [in] */ const STREAM_TIME *pStartTime, + /* [in] */ const STREAM_TIME *pEndTime); + + DECLSPEC_XFGVIRT(IStreamSample, Update) + HRESULT ( STDMETHODCALLTYPE *Update )( + IAudioStreamSample * This, + /* [in] */ DWORD dwFlags, + /* [in] */ HANDLE hEvent, + /* [in] */ PAPCFUNC pfnAPC, + /* [in] */ DWORD_PTR dwAPCData); + + DECLSPEC_XFGVIRT(IStreamSample, CompletionStatus) + HRESULT ( STDMETHODCALLTYPE *CompletionStatus )( + IAudioStreamSample * This, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwMilliseconds); + + DECLSPEC_XFGVIRT(IAudioStreamSample, GetAudioData) + HRESULT ( STDMETHODCALLTYPE *GetAudioData )( + IAudioStreamSample * This, + /* [out] */ IAudioData **ppAudio); + + END_INTERFACE + } IAudioStreamSampleVtbl; + + interface IAudioStreamSample + { + CONST_VTBL struct IAudioStreamSampleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioStreamSample_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioStreamSample_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioStreamSample_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioStreamSample_GetMediaStream(This,ppMediaStream) \ + ( (This)->lpVtbl -> GetMediaStream(This,ppMediaStream) ) + +#define IAudioStreamSample_GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) \ + ( (This)->lpVtbl -> GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) ) + +#define IAudioStreamSample_SetSampleTimes(This,pStartTime,pEndTime) \ + ( (This)->lpVtbl -> SetSampleTimes(This,pStartTime,pEndTime) ) + +#define IAudioStreamSample_Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) \ + ( (This)->lpVtbl -> Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) ) + +#define IAudioStreamSample_CompletionStatus(This,dwFlags,dwMilliseconds) \ + ( (This)->lpVtbl -> CompletionStatus(This,dwFlags,dwMilliseconds) ) + + +#define IAudioStreamSample_GetAudioData(This,ppAudio) \ + ( (This)->lpVtbl -> GetAudioData(This,ppAudio) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioStreamSample_INTERFACE_DEFINED__ */ + + +#ifndef __IMemoryData_INTERFACE_DEFINED__ +#define __IMemoryData_INTERFACE_DEFINED__ + +/* interface IMemoryData */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IMemoryData; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("327fc560-af60-11d0-8212-00c04fc32c45") + IMemoryData : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetBuffer( + /* [in] */ DWORD cbSize, + /* [in] */ BYTE *pbData, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInfo( + /* [out] */ DWORD *pdwLength, + /* [out] */ BYTE **ppbData, + /* [out] */ DWORD *pcbActualData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetActual( + /* [in] */ DWORD cbDataValid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMemoryDataVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMemoryData * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMemoryData * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMemoryData * This); + + DECLSPEC_XFGVIRT(IMemoryData, SetBuffer) + HRESULT ( STDMETHODCALLTYPE *SetBuffer )( + IMemoryData * This, + /* [in] */ DWORD cbSize, + /* [in] */ BYTE *pbData, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IMemoryData, GetInfo) + HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IMemoryData * This, + /* [out] */ DWORD *pdwLength, + /* [out] */ BYTE **ppbData, + /* [out] */ DWORD *pcbActualData); + + DECLSPEC_XFGVIRT(IMemoryData, SetActual) + HRESULT ( STDMETHODCALLTYPE *SetActual )( + IMemoryData * This, + /* [in] */ DWORD cbDataValid); + + END_INTERFACE + } IMemoryDataVtbl; + + interface IMemoryData + { + CONST_VTBL struct IMemoryDataVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMemoryData_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMemoryData_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMemoryData_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMemoryData_SetBuffer(This,cbSize,pbData,dwFlags) \ + ( (This)->lpVtbl -> SetBuffer(This,cbSize,pbData,dwFlags) ) + +#define IMemoryData_GetInfo(This,pdwLength,ppbData,pcbActualData) \ + ( (This)->lpVtbl -> GetInfo(This,pdwLength,ppbData,pcbActualData) ) + +#define IMemoryData_SetActual(This,cbDataValid) \ + ( (This)->lpVtbl -> SetActual(This,cbDataValid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMemoryData_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioData_INTERFACE_DEFINED__ +#define __IAudioData_INTERFACE_DEFINED__ + +/* interface IAudioData */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioData; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("54c719c0-af60-11d0-8212-00c04fc32c45") + IAudioData : public IMemoryData + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFormat( + /* [out] */ WAVEFORMATEX *pWaveFormatCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFormat( + /* [in] */ const WAVEFORMATEX *lpWaveFormat) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioDataVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioData * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioData * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioData * This); + + DECLSPEC_XFGVIRT(IMemoryData, SetBuffer) + HRESULT ( STDMETHODCALLTYPE *SetBuffer )( + IAudioData * This, + /* [in] */ DWORD cbSize, + /* [in] */ BYTE *pbData, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IMemoryData, GetInfo) + HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IAudioData * This, + /* [out] */ DWORD *pdwLength, + /* [out] */ BYTE **ppbData, + /* [out] */ DWORD *pcbActualData); + + DECLSPEC_XFGVIRT(IMemoryData, SetActual) + HRESULT ( STDMETHODCALLTYPE *SetActual )( + IAudioData * This, + /* [in] */ DWORD cbDataValid); + + DECLSPEC_XFGVIRT(IAudioData, GetFormat) + HRESULT ( STDMETHODCALLTYPE *GetFormat )( + IAudioData * This, + /* [out] */ WAVEFORMATEX *pWaveFormatCurrent); + + DECLSPEC_XFGVIRT(IAudioData, SetFormat) + HRESULT ( STDMETHODCALLTYPE *SetFormat )( + IAudioData * This, + /* [in] */ const WAVEFORMATEX *lpWaveFormat); + + END_INTERFACE + } IAudioDataVtbl; + + interface IAudioData + { + CONST_VTBL struct IAudioDataVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioData_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioData_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioData_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioData_SetBuffer(This,cbSize,pbData,dwFlags) \ + ( (This)->lpVtbl -> SetBuffer(This,cbSize,pbData,dwFlags) ) + +#define IAudioData_GetInfo(This,pdwLength,ppbData,pcbActualData) \ + ( (This)->lpVtbl -> GetInfo(This,pdwLength,ppbData,pcbActualData) ) + +#define IAudioData_SetActual(This,cbDataValid) \ + ( (This)->lpVtbl -> SetActual(This,cbDataValid) ) + + +#define IAudioData_GetFormat(This,pWaveFormatCurrent) \ + ( (This)->lpVtbl -> GetFormat(This,pWaveFormatCurrent) ) + +#define IAudioData_SetFormat(This,lpWaveFormat) \ + ( (This)->lpVtbl -> SetFormat(This,lpWaveFormat) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioData_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_austream_0000_0004 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_austream_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_austream_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/austream.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/austream.idl new file mode 100644 index 0000000000000000000000000000000000000000..30d9f772a7030339abdba706060fcd4ffafb49f2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/austream.idl @@ -0,0 +1,115 @@ +//------------------------------------------------------------------------------ +// File: AuStream.idl +// +// Desc: Used by MIDL tool to generate austream.h +// +// Copyright (c) 1998-2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl"; +import "mmstream.idl"; + +cpp_quote("//") +cpp_quote("// The following declarations within the 'if 0' block are dummy typedefs used to make") +cpp_quote("// the ddstream.idl file build. The actual definitions are contained in DDRAW.H") +cpp_quote("//") +cpp_quote("#if 0") +typedef struct tWAVEFORMATEX WAVEFORMATEX; +cpp_quote ("#endif") + +interface IAudioMediaStream; +interface IAudioStreamSample; +interface IMemoryData; +interface IAudioData; + +// IAudioMediaStream + + +[ +object, +local, +uuid(f7537560-a3be-11d0-8212-00c04fc32c45), +pointer_default(unique) +] +interface IAudioMediaStream : IMediaStream +{ + + HRESULT GetFormat( + [out] WAVEFORMATEX *pWaveFormatCurrent + ); + + HRESULT SetFormat( + [in] const WAVEFORMATEX *lpWaveFormat); + + HRESULT CreateSample( + [in] IAudioData *pAudioData, + [in] DWORD dwFlags, + [out] IAudioStreamSample **ppSample + ); +} + +[ +object, +local, +uuid(345fee00-aba5-11d0-8212-00c04fc32c45), +pointer_default(unique) +] +interface IAudioStreamSample : IStreamSample +{ + HRESULT GetAudioData( + [out] IAudioData **ppAudio + ); +} + + +[ +object, +local, +uuid(327fc560-af60-11d0-8212-00c04fc32c45), +pointer_default(unique) +] +interface IMemoryData : IUnknown +{ + HRESULT SetBuffer( + [in] DWORD cbSize, + [in] BYTE *pbData, + [in] DWORD dwFlags + ); + + HRESULT GetInfo( + [out] DWORD *pdwLength, + [out] BYTE **ppbData, + [out] DWORD *pcbActualData + ); + HRESULT SetActual( + [in] DWORD cbDataValid + ); +} + +[ +object, +local, +uuid(54c719c0-af60-11d0-8212-00c04fc32c45), +pointer_default(unique) +] +interface IAudioData : IMemoryData +{ + HRESULT GetFormat( + [out] WAVEFORMATEX *pWaveFormatCurrent + ); + + HRESULT SetFormat( + [in] const WAVEFORMATEX *lpWaveFormat + ); +} + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/aux_ulib.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/aux_ulib.h new file mode 100644 index 0000000000000000000000000000000000000000..a3ff54a00280b2ff3292f6af1a0317713c7e20be --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/aux_ulib.h @@ -0,0 +1,148 @@ +/*++ + +Copyright (c) 2004 Microsoft Corporation + +Module Name: + + aux_ulib.h + +Abstract: + + User mode shim to access system functionality that is not properly exposed + to applications in currently shipping operating systems. + +--*/ + +#ifndef _AUX_SHLD_LIB_H +#define _AUX_SHLD_LIB_H + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/*++ + +Routine Description: + + This routine must be successfully called by an application before any + other routine in the library may be called. It serves to initialize any global + state that may be required by other routines in the file. + + It is safe to call this routine in a multi-threaded environment. + +Arguments: + + None. + +Return Value: + + Boolean status. Error code available via GetLastError (). + +--*/ + +BOOL +WINAPI +AuxUlibInitialize ( + VOID + ); + +/*++ + +Routine Description: + + This routine is used to set the current file system cache working set size. It + requires that the caller has enabled the SE_INCREASE_QUOTA_PRIVILEGE + in the currently active token prior to invoking this routine. + + This API is supported on Windows 2000 and later. + +Arguments: + + MinimumFileCacheSize - The minimum file cache size. Use (SIZE_T)-1 if + the file cache is being flushed. + + MaximumFileCacheSize - The maximum file cache size. Use (SIZE_T)-1 + if the file cache is being flushed. + + Flags - Flags relevant to the file cache size adjustment. Currently this must + be zero. + +Return Value: + + Boolean status. Error code available via GetLastError (). If the routine is + invoked prior to invoking the initialization routine, the returned error code + will be ERROR_INVALID_FUNCTION. + +--*/ + +BOOL +WINAPI +AuxUlibSetSystemFileCacheSize ( + _In_ SIZE_T MinimumFileCacheSize, + _In_ SIZE_T MaximumFileCacheSize, + _In_ DWORD Flags + ); + +/*++ + +Routine Description: + + This routine is used to determine whether or not the caller is executing + code while holding a system synchronization primitive. Such a situation + can arise when the OS temporarily calls into user-specified code as part + of the DLL load procedure. + + A caller can benefit from this information by avoiding operations that + could potentially lead to deadlocks, e.g., acquiring a process private lock. + + For example, consider the following case: + + Thread A runs the THREAD_ATTACH routine for DLL X. This routine + is invoked with OS DLL synchronization held. Suppose further that + as part of this routine Thread A acquires some lock in DLL X (Lx). + + Thread B runs some code in DLL X that, while holding Lx, calls the OS + library loader to, e.g. GetModuleHandle. As this routine acquires + OS DLL synchronization, Thread B will deadlock with Thread A. + + This is an inherent limitation in the design of the OS loader as it + performs such callouts as THREAD_ATTACH while holding loader + synchronization. It can be partially ameliorated if Thread A detects + that it is running with DLL synchronization held and only try-acquires + other locks (such as Lx) that it may wish to take + +Arguments: + + SynchronizationHeld - Boolean value which indicates whether or not + synchronization is held. + +Return Value: + + Boolean status. Error code available via GetLastError (). If the routine is + invoked prior to invoking the initialization routine, the returned error code + will be ERROR_INVALID_FUNCTION. + +--*/ + +BOOL +WINAPI +AuxUlibIsDLLSynchronizationHeld ( + _Out_ PBOOL SynchronizationHeld + ); + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _AUX_SHLD_LIB_H + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/aviriff.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/aviriff.h new file mode 100644 index 0000000000000000000000000000000000000000..f55c039994c5e25d07a5ef1d3bf0190f85b2ae67 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/aviriff.h @@ -0,0 +1,418 @@ +//------------------------------------------------------------------------------ +// File: AVIRIFF.h +// +// Desc: Structures and defines for the RIFF AVI file format extended to +// handle very large/long files. +// +// Copyright (c) 1996 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#pragma warning(disable: 4097 4511 4512 4514 4705) + + +#if !defined AVIRIFF_H +#define AVIRIFF_H + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if !defined NUMELMS + #define NUMELMS(aa) (sizeof(aa)/sizeof((aa)[0])) +#endif + +// all structures in this file are packed on word boundaries +// +#include + +/* + * heres the general layout of an AVI riff file (new format) + * + * RIFF (3F??????) AVI <- not more than 1 GB in size + * LIST (size) hdrl + * avih (0038) + * LIST (size) strl + * strh (0038) + * strf (????) + * indx (3ff8) <- size may vary, should be sector sized + * LIST (size) strl + * strh (0038) + * strf (????) + * indx (3ff8) <- size may vary, should be sector sized + * LIST (size) odml + * dmlh (????) + * JUNK (size) <- fill to align to sector - 12 + * LIST (7f??????) movi <- aligned on sector - 12 + * 00dc (size) <- sector aligned + * 01wb (size) <- sector aligned + * ix00 (size) <- sector aligned + * idx1 (00??????) <- sector aligned + * RIFF (7F??????) AVIX + * JUNK (size) <- fill to align to sector -12 + * LIST (size) movi + * 00dc (size) <- sector aligned + * RIFF (7F??????) AVIX <- not more than 2GB in size + * JUNK (size) <- fill to align to sector - 12 + * LIST (size) movi + * 00dc (size) <- sector aligned + * + *-===================================================================*/ + +// +// structures for manipulating RIFF headers +// +#define FCC(ch4) ((((DWORD)(ch4) & 0xFF) << 24) | \ + (((DWORD)(ch4) & 0xFF00) << 8) | \ + (((DWORD)(ch4) & 0xFF0000) >> 8) | \ + (((DWORD)(ch4) & 0xFF000000) >> 24)) + +typedef struct _riffchunk { + FOURCC fcc; + DWORD cb; + } RIFFCHUNK, * LPRIFFCHUNK; +typedef struct _rifflist { + FOURCC fcc; + DWORD cb; + FOURCC fccListType; + } RIFFLIST, * LPRIFFLIST; + +#define RIFFROUND(cb) ((cb) + ((cb)&1)) +#define RIFFNEXT(pChunk) (LPRIFFCHUNK)((LPBYTE)(pChunk) \ + + sizeof(RIFFCHUNK) \ + + RIFFROUND(((LPRIFFCHUNK)pChunk)->cb)) + + +// +// ==================== avi header structures =========================== +// + +// main header for the avi file (compatibility header) +// +#define ckidMAINAVIHEADER FCC('avih') +typedef struct _avimainheader { + FOURCC fcc; // 'avih' + DWORD cb; // size of this structure -8 + DWORD dwMicroSecPerFrame; // frame display rate (or 0L) + DWORD dwMaxBytesPerSec; // max. transfer rate + DWORD dwPaddingGranularity; // pad to multiples of this size; normally 2K. + DWORD dwFlags; // the ever-present flags + #define AVIF_HASINDEX 0x00000010 // Index at end of file? + #define AVIF_MUSTUSEINDEX 0x00000020 + #define AVIF_ISINTERLEAVED 0x00000100 + #define AVIF_TRUSTCKTYPE 0x00000800 // Use CKType to find key frames + #define AVIF_WASCAPTUREFILE 0x00010000 + #define AVIF_COPYRIGHTED 0x00020000 + DWORD dwTotalFrames; // # frames in first movi list + DWORD dwInitialFrames; + DWORD dwStreams; + DWORD dwSuggestedBufferSize; + DWORD dwWidth; + DWORD dwHeight; + DWORD dwReserved[4]; + } AVIMAINHEADER; + +#define ckidODML FCC('odml') +#define ckidAVIEXTHEADER FCC('dmlh') +typedef struct _aviextheader { + FOURCC fcc; // 'dmlh' + DWORD cb; // size of this structure -8 + DWORD dwGrandFrames; // total number of frames in the file + DWORD dwFuture[61]; // to be defined later + } AVIEXTHEADER; + +// +// structure of an AVI stream header riff chunk +// +#define ckidSTREAMLIST FCC('strl') + +#ifndef ckidSTREAMHEADER +#define ckidSTREAMHEADER FCC('strh') +#endif +typedef struct _avistreamheader { + FOURCC fcc; // 'strh' + DWORD cb; // size of this structure - 8 + + FOURCC fccType; // stream type codes + + #ifndef streamtypeVIDEO + #define streamtypeVIDEO FCC('vids') + #define streamtypeAUDIO FCC('auds') + #define streamtypeMIDI FCC('mids') + #define streamtypeTEXT FCC('txts') + #endif + + FOURCC fccHandler; + DWORD dwFlags; + #define AVISF_DISABLED 0x00000001 + #define AVISF_VIDEO_PALCHANGES 0x00010000 + + WORD wPriority; + WORD wLanguage; + DWORD dwInitialFrames; + DWORD dwScale; + DWORD dwRate; // dwRate/dwScale is stream tick rate in ticks/sec + DWORD dwStart; + DWORD dwLength; + DWORD dwSuggestedBufferSize; + DWORD dwQuality; + DWORD dwSampleSize; + struct { + short int left; + short int top; + short int right; + short int bottom; + } rcFrame; + } AVISTREAMHEADER; + + +// +// structure of an AVI stream format chunk +// +#ifndef ckidSTREAMFORMAT +#define ckidSTREAMFORMAT FCC('strf') +#endif +// +// avi stream formats are different for each stream type +// +// BITMAPINFOHEADER for video streams +// WAVEFORMATEX or PCMWAVEFORMAT for audio streams +// nothing for text streams +// nothing for midi streams + + +#pragma warning(disable:4200) +// +// structure of old style AVI index +// +#define ckidAVIOLDINDEX FCC('idx1') +typedef struct _avioldindex { + FOURCC fcc; // 'idx1' + DWORD cb; // size of this structure -8 + struct _avioldindex_entry { + DWORD dwChunkId; + DWORD dwFlags; + + #ifndef AVIIF_LIST + #define AVIIF_LIST 0x00000001 + #define AVIIF_KEYFRAME 0x00000010 + #endif + + #define AVIIF_NO_TIME 0x00000100 + #define AVIIF_COMPRESSOR 0x0FFF0000 // unused? + DWORD dwOffset; // offset of riff chunk header for the data + DWORD dwSize; // size of the data (excluding riff header size) + } aIndex[]; // size of this array + } AVIOLDINDEX; + + +// +// ============ structures for timecode in an AVI file ================= +// + +#ifndef TIMECODE_DEFINED +#define TIMECODE_DEFINED + +// defined +// timecode time structure +// +typedef union _timecode { + struct { + WORD wFrameRate; + WORD wFrameFract; + LONG cFrames; + }; + DWORDLONG qw; + } TIMECODE; + +typedef struct tagTIMECODE_SAMPLE { + LONGLONG qwTick; + TIMECODE timecode; + DWORD dwUser; + DWORD dwFlags; +} TIMECODE_SAMPLE; + +#endif // TIMECODE_DEFINED + +#define TIMECODE_RATE_30DROP 0 // this MUST be zero + +// struct for all the SMPTE timecode info +// +typedef struct _timecodedata { + TIMECODE time; + DWORD dwSMPTEflags; + DWORD dwUser; + } TIMECODEDATA; + +// dwSMPTEflags masks/values +// +#define TIMECODE_SMPTE_BINARY_GROUP 0x07 +#define TIMECODE_SMPTE_COLOR_FRAME 0x08 + +// +// ============ structures for new style AVI indexes ================= +// + +// index type codes +// +#define AVI_INDEX_OF_INDEXES 0x00 +#define AVI_INDEX_OF_CHUNKS 0x01 +#define AVI_INDEX_OF_TIMED_CHUNKS 0x02 +#define AVI_INDEX_OF_SUB_2FIELD 0x03 +#define AVI_INDEX_IS_DATA 0x80 + +// index subtype codes +// +#define AVI_INDEX_SUB_DEFAULT 0x00 + +// INDEX_OF_CHUNKS subtype codes +// +#define AVI_INDEX_SUB_2FIELD 0x01 + +// meta structure of all avi indexes +// +typedef struct _avimetaindex { + FOURCC fcc; + UINT cb; + WORD wLongsPerEntry; + BYTE bIndexSubType; + BYTE bIndexType; + DWORD nEntriesInUse; + DWORD dwChunkId; + DWORD dwReserved[3]; + DWORD adwIndex[]; + } AVIMETAINDEX; + +#define STDINDEXSIZE 0x4000 +#define NUMINDEX(wLongsPerEntry) ((STDINDEXSIZE-32)/4/(wLongsPerEntry)) +#define NUMINDEXFILL(wLongsPerEntry) ((STDINDEXSIZE/4) - NUMINDEX(wLongsPerEntry)) + +// structure of a super index (INDEX_OF_INDEXES) +// +#define ckidAVISUPERINDEX FCC('indx') +typedef struct _avisuperindex { + FOURCC fcc; // 'indx' + UINT cb; // size of this structure + WORD wLongsPerEntry; // ==4 + BYTE bIndexSubType; // ==0 (frame index) or AVI_INDEX_SUB_2FIELD + BYTE bIndexType; // ==AVI_INDEX_OF_INDEXES + DWORD nEntriesInUse; // offset of next unused entry in aIndex + DWORD dwChunkId; // chunk ID of chunks being indexed, (i.e. RGB8) + DWORD dwReserved[3]; // must be 0 + struct _avisuperindex_entry { + DWORDLONG qwOffset; // 64 bit offset to sub index chunk + DWORD dwSize; // 32 bit size of sub index chunk + DWORD dwDuration; // time span of subindex chunk (in stream ticks) + } aIndex[NUMINDEX(4)]; + } AVISUPERINDEX; +#define Valid_SUPERINDEX(pi) (*(DWORD *)(&((pi)->wLongsPerEntry)) == (4 | (AVI_INDEX_OF_INDEXES << 24))) + +// struct of a standard index (AVI_INDEX_OF_CHUNKS) +// +typedef struct _avistdindex_entry { + DWORD dwOffset; // 32 bit offset to data (points to data, not riff header) + DWORD dwSize; // 31 bit size of data (does not include size of riff header), bit 31 is deltaframe bit + } AVISTDINDEX_ENTRY; +#define AVISTDINDEX_DELTAFRAME ( 0x80000000) // Delta frames have the high bit set +#define AVISTDINDEX_SIZEMASK (~0x80000000) + +typedef struct _avistdindex { + FOURCC fcc; // 'indx' or '##ix' + UINT cb; // size of this structure + WORD wLongsPerEntry; // ==2 + BYTE bIndexSubType; // ==0 + BYTE bIndexType; // ==AVI_INDEX_OF_CHUNKS + DWORD nEntriesInUse; // offset of next unused entry in aIndex + DWORD dwChunkId; // chunk ID of chunks being indexed, (i.e. RGB8) + DWORDLONG qwBaseOffset; // base offset that all index intries are relative to + DWORD dwReserved_3; // must be 0 + AVISTDINDEX_ENTRY aIndex[NUMINDEX(2)]; + } AVISTDINDEX; + +// struct of a time variant standard index (AVI_INDEX_OF_TIMED_CHUNKS) +// +typedef struct _avitimedindex_entry { + DWORD dwOffset; // 32 bit offset to data (points to data, not riff header) + DWORD dwSize; // 31 bit size of data (does not include size of riff header) (high bit is deltaframe bit) + DWORD dwDuration; // how much time the chunk should be played (in stream ticks) + } AVITIMEDINDEX_ENTRY; + +typedef struct _avitimedindex { + FOURCC fcc; // 'indx' or '##ix' + UINT cb; // size of this structure + WORD wLongsPerEntry; // ==3 + BYTE bIndexSubType; // ==0 + BYTE bIndexType; // ==AVI_INDEX_OF_TIMED_CHUNKS + DWORD nEntriesInUse; // offset of next unused entry in aIndex + DWORD dwChunkId; // chunk ID of chunks being indexed, (i.e. RGB8) + DWORDLONG qwBaseOffset; // base offset that all index intries are relative to + DWORD dwReserved_3; // must be 0 + AVITIMEDINDEX_ENTRY aIndex[NUMINDEX(3)]; + DWORD adwTrailingFill[NUMINDEXFILL(3)]; // to align struct to correct size + } AVITIMEDINDEX; + +// structure of a timecode stream +// +typedef struct _avitimecodeindex { + FOURCC fcc; // 'indx' or '##ix' + UINT cb; // size of this structure + WORD wLongsPerEntry; // ==4 + BYTE bIndexSubType; // ==0 + BYTE bIndexType; // ==AVI_INDEX_IS_DATA + DWORD nEntriesInUse; // offset of next unused entry in aIndex + DWORD dwChunkId; // 'time' + DWORD dwReserved[3]; // must be 0 + TIMECODEDATA aIndex[NUMINDEX(sizeof(TIMECODEDATA)/sizeof(LONG))]; + } AVITIMECODEINDEX; + +// structure of a timecode discontinuity list (when wLongsPerEntry == 7) +// +typedef struct _avitcdlindex_entry { + DWORD dwTick; // stream tick time that maps to this timecode value + TIMECODE time; + DWORD dwSMPTEflags; + DWORD dwUser; + TCHAR szReelId[12]; + } AVITCDLINDEX_ENTRY; + +typedef struct _avitcdlindex { + FOURCC fcc; // 'indx' or '##ix' + UINT cb; // size of this structure + WORD wLongsPerEntry; // ==7 (must be 4 or more all 'tcdl' indexes + BYTE bIndexSubType; // ==0 + BYTE bIndexType; // ==AVI_INDEX_IS_DATA + DWORD nEntriesInUse; // offset of next unused entry in aIndex + DWORD dwChunkId; // 'tcdl' + DWORD dwReserved[3]; // must be 0 + AVITCDLINDEX_ENTRY aIndex[NUMINDEX(7)]; + DWORD adwTrailingFill[NUMINDEXFILL(7)]; // to align struct to correct size + } AVITCDLINDEX; + +typedef struct _avifieldindex_chunk { + FOURCC fcc; // 'ix##' + DWORD cb; // size of this structure + WORD wLongsPerEntry; // must be 3 (size of each entry in + // aIndex array) + BYTE bIndexSubType; // AVI_INDEX_2FIELD + BYTE bIndexType; // AVI_INDEX_OF_CHUNKS + DWORD nEntriesInUse; // + DWORD dwChunkId; // '##dc' or '##db' + DWORDLONG qwBaseOffset; // offsets in aIndex array are relative to this + DWORD dwReserved3; // must be 0 + struct _avifieldindex_entry { + DWORD dwOffset; + DWORD dwSize; // size of all fields + // (bit 31 set for NON-keyframes) + DWORD dwOffsetField2; // offset to second field + } aIndex[ ]; +} AVIFIELDINDEX, * PAVIFIELDINDEX; + + +#include + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/avrfsdk.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/avrfsdk.h new file mode 100644 index 0000000000000000000000000000000000000000..a2c5a1128b58249bf1721079aa8f37e32ed3d982 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/avrfsdk.h @@ -0,0 +1,169 @@ +/*++ BUILD Version: 0011 // Increment this if a change has global effects + +Copyright (c) 2004 Microsoft Corporation + +Module Name: + + avrfsdk.h + +Abstract: + + This header file defines Application Verifier Exposed Interfaces + +Author: + + Ivan Brugiolo (ivanbrug) + + +Revision History: + + Creation: 15-Mar-2004 + +--*/ + +#ifndef _AVRFSDK_ +#define _AVRFSDK_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + + +// +// tool helper function +// + +#define AVRF_MAX_TRACES 32 + +typedef struct _AVRF_BACKTRACE_INFORMATION { + ULONG Depth; + ULONG Index; + ULONG64 ReturnAddresses[AVRF_MAX_TRACES]; +} AVRF_BACKTRACE_INFORMATION, *PAVRF_BACKTRACE_INFORMATION; + +enum eUserAllocationState { + AllocationStateUnknown, + AllocationStateBusy, + AllocationStateFree +}; + +enum eHeapAllocationState { + HeapFullPageHeap = 0x40000000, + HeapMetadata = 0x80000000, + HeapStateMask = 0xFFFF0000, +}; + +enum eHeapEnumerationLevel { + HeapEnumerationEverything = 0x0, + // reserved codes from 0x1 to oxFFFFFFFE + HeapEnumerationStop = 0xFFFFFFFF, +}; + +typedef struct _AVRF_HEAP_ALLOCATION { + ULONG64 HeapHandle; + ULONG64 UserAllocation; + ULONG64 UserAllocationSize; + ULONG64 Allocation; + ULONG64 AllocationSize; + ULONG UserAllocationState; + ULONG HeapState; + ULONG64 HeapContext; + PAVRF_BACKTRACE_INFORMATION BackTraceInformation; +} AVRF_HEAP_ALLOCATION, *PAVRF_HEAP_ALLOCATION; + + +enum eHANDLE_TRACE_OPERATIONS { + OperationDbUnused, + OperationDbOPEN, + OperationDbCLOSE, + OperationDbBADREF +}; + +typedef struct _AVRF_HANDLE_OPERATION { + ULONG64 Handle; + ULONG ProcessId; + ULONG ThreadId; + ULONG OperationType; + ULONG Spare0; + AVRF_BACKTRACE_INFORMATION BackTraceInformation; +} AVRF_HANDLE_OPERATION, * PAVRF_HANDLE_OPERATION; + + +enum eAvrfResourceTypes { + AvrfResourceHeapAllocation, + AvrfResourceHandleTrace, + AvrfResourceMax +}; + +// +// generic prototype +// + +typedef ULONG +(NTAPI * AVRF_RESOURCE_ENUMERATE_CALLBACK)( + PVOID ResourceDescription, + PVOID EnumerationContext, + PULONG EnumerationLevel + ); + +// +// Heap Allocations Specialized Prototype +// + +typedef ULONG +(NTAPI * AVRF_HEAPALLOCATION_ENUMERATE_CALLBACK)( + PAVRF_HEAP_ALLOCATION HeapAllocation, + PVOID EnumerationContext, + PULONG EnumerationLevel + ); + +// +// Handle Tracing Specialized Prototype +// + +typedef ULONG +(NTAPI * AVRF_HANDLEOPERATION_ENUMERATE_CALLBACK)( + PAVRF_HANDLE_OPERATION HandleOperation, + PVOID EnumerationContext, + PULONG EnumerationLevel + ); + +// +// flags for AvrfResourceHeapAllocation +// + +#define AVRF_ENUM_RESOURCES_FLAGS_SUSPEND 0x00000001 +#define AVRF_ENUM_RESOURCES_FLAGS_DONT_RESOLVE_TRACES 0x00000002 + +ULONG NTAPI +VerifierEnumerateResource( + HANDLE Process, + ULONG Flags, + ULONG ResourceType, + AVRF_RESOURCE_ENUMERATE_CALLBACK ResourceCallback, + PVOID EnumerationContext + ); + +// +// API to find out if per user verifier settings are enabled +// + +BOOL NTAPI +VerifierIsPerUserSettingsEnabled( + VOID + ); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /*AVRFSDK*/ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/avrt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/avrt.h new file mode 100644 index 0000000000000000000000000000000000000000..d7897b8c7bd6b6c0a12a20a2ea022d7b1bf94b30 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/avrt.h @@ -0,0 +1,214 @@ +#include + +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + avrt.h + +Abstract: + + This module contains the multimedia class scheduler APIs and any public data + structures needed to call these APIs. + +--*/ + +#ifndef _AVRT_H_ +#define _AVRT_H_ +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop and Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_GAMES) + +// +// AvRt Priorities +// + +typedef enum _AVRT_PRIORITY +{ + AVRT_PRIORITY_VERYLOW = -2, + AVRT_PRIORITY_LOW, + AVRT_PRIORITY_NORMAL, + AVRT_PRIORITY_HIGH, + AVRT_PRIORITY_CRITICAL +} AVRT_PRIORITY, *PAVRT_PRIORITY; + +// +// Infinite timeout for a thread order group. +// + +#define THREAD_ORDER_GROUP_INFINITE_TIMEOUT (-1I64) + +// +// Define API decoration for direct importing of DLL references. +// + +#define AVRTAPI DECLSPEC_IMPORT + +_Success_(return != NULL) +AVRTAPI +HANDLE +WINAPI +AvSetMmThreadCharacteristicsA ( + _In_ LPCSTR TaskName, + _Inout_ LPDWORD TaskIndex + ); +_Success_(return != NULL) +AVRTAPI +HANDLE +WINAPI +AvSetMmThreadCharacteristicsW ( + _In_ LPCWSTR TaskName, + _Inout_ LPDWORD TaskIndex + ); +#ifdef UNICODE +#define AvSetMmThreadCharacteristics AvSetMmThreadCharacteristicsW +#else +#define AvSetMmThreadCharacteristics AvSetMmThreadCharacteristicsA +#endif // !UNICODE + +_Success_(return != NULL) +AVRTAPI +HANDLE +WINAPI +AvSetMmMaxThreadCharacteristicsA ( + _In_ LPCSTR FirstTask, + _In_ LPCSTR SecondTask, + _Inout_ LPDWORD TaskIndex + ); +_Success_(return != NULL) +AVRTAPI +HANDLE +WINAPI +AvSetMmMaxThreadCharacteristicsW ( + _In_ LPCWSTR FirstTask, + _In_ LPCWSTR SecondTask, + _Inout_ LPDWORD TaskIndex + ); +#ifdef UNICODE +#define AvSetMmMaxThreadCharacteristics AvSetMmMaxThreadCharacteristicsW +#else +#define AvSetMmMaxThreadCharacteristics AvSetMmMaxThreadCharacteristicsA +#endif // !UNICODE + +_Success_(return != FALSE) +AVRTAPI +BOOL +WINAPI +AvRevertMmThreadCharacteristics ( + _In_ HANDLE AvrtHandle + ); + +_Success_(return != FALSE) +AVRTAPI +BOOL +WINAPI +AvSetMmThreadPriority ( + _In_ HANDLE AvrtHandle, + _In_ AVRT_PRIORITY Priority + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +_Success_(return != FALSE) +AVRTAPI +BOOL +WINAPI +AvRtCreateThreadOrderingGroup ( + _Out_ PHANDLE Context, + _In_ PLARGE_INTEGER Period, + _Inout_ GUID *ThreadOrderingGuid, + _In_opt_ PLARGE_INTEGER Timeout + ); + +_Success_(return != FALSE) +AVRTAPI +BOOL +WINAPI +AvRtCreateThreadOrderingGroupExA ( + _Out_ PHANDLE Context, + _In_ PLARGE_INTEGER Period, + _Inout_ GUID *ThreadOrderingGuid, + _In_opt_ PLARGE_INTEGER Timeout, + _In_ LPCSTR TaskName + ); +_Success_(return != FALSE) +AVRTAPI +BOOL +WINAPI +AvRtCreateThreadOrderingGroupExW ( + _Out_ PHANDLE Context, + _In_ PLARGE_INTEGER Period, + _Inout_ GUID *ThreadOrderingGuid, + _In_opt_ PLARGE_INTEGER Timeout, + _In_ LPCWSTR TaskName + ); +#ifdef UNICODE +#define AvRtCreateThreadOrderingGroupEx AvRtCreateThreadOrderingGroupExW +#else +#define AvRtCreateThreadOrderingGroupEx AvRtCreateThreadOrderingGroupExA +#endif // !UNICODE + +_Success_(return != FALSE) +AVRTAPI +BOOL +WINAPI +AvRtJoinThreadOrderingGroup ( + _Out_ PHANDLE Context, + _In_ GUID *ThreadOrderingGuid, + _In_ BOOL Before + ); + +_Success_(return != FALSE) +AVRTAPI +BOOL +WINAPI +AvRtWaitOnThreadOrderingGroup ( + _In_ HANDLE Context + ); + +_Success_(return != FALSE) +AVRTAPI +BOOL +WINAPI +AvRtLeaveThreadOrderingGroup ( + _In_ HANDLE Context + ); + +_Success_(return != FALSE) +AVRTAPI +BOOL +WINAPI +AvRtDeleteThreadOrderingGroup ( + _In_ HANDLE Context + ); + +_Success_(return != FALSE) +AVRTAPI +BOOL +WINAPI +AvQuerySystemResponsiveness ( + _In_ HANDLE AvrtHandle, + _Out_ PULONG SystemResponsivenessValue + ); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _AVRT_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/axcore.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/axcore.idl new file mode 100644 index 0000000000000000000000000000000000000000..5bb673d512c84d33f5eeea3c450029567ec6c396 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/axcore.idl @@ -0,0 +1,1350 @@ +//------------------------------------------------------------------------------ +// File: AXCore.idl +// +// Desc: Core streaming interfaces. Other ActiveMovie-only interfaces +// are in AXExtend.idl. +// +// Copyright (c) 1992-2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +// include unknwn.idl and objidl.idl first + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#define CHARS_IN_GUID 39 // 128 bits, plus { - } punctuation and terminal null + // chars NOT BYTES in the standard representation + // e.g. {D3588AB0-0781-11ce-B03A-0020AF0BA770} + null + +cpp_quote("#define CHARS_IN_GUID 39") + + +// Define for 'local' so that proxy-stubs can be generated for testing +#ifndef AM_LOCAL +#define AM_LOCAL local, +#define AM_ANNOTATION(_x_) ,annotation(_x_) +#endif + +//===================================================================== +//===================================================================== +// media types & formats +//===================================================================== +//===================================================================== + +// There is a high-level media type (audio, compressed video, +// mpeg video, midi). Within each type, there is a subtype (cinepak, pcm) +// and a length+untyped data block defining the format in a +// type-specific manner. EG for video/cinepak, the data block would be +// a bitmapinfo. +// The contents of the format block are defined by the formattype GUID. +// For example, FORMAT_VideoInfo, FORMAT_WaveFormatEx. In the future, this +// may be a pointer to an object supporting property style interfaces +// in which case the GUID may be something like FORMAT_IUnknown. When +// you are passed a media type you should check the format type, if +// it isn't a type you recognize, then don't touch the format block + +typedef struct _AMMediaType { + GUID majortype; + GUID subtype; + BOOL bFixedSizeSamples; + BOOL bTemporalCompression; + ULONG lSampleSize; + GUID formattype; + IUnknown *pUnk; + ULONG cbFormat; + [size_is(cbFormat)] BYTE * pbFormat; +} AM_MEDIA_TYPE; + +//===================================================================== +//===================================================================== +// pin information +//===================================================================== +//===================================================================== + +// is this an input or output pin +typedef enum _PinDirection { + PINDIR_INPUT, + PINDIR_OUTPUT +} PIN_DIRECTION; + +// other types that need defining +#define MAX_PIN_NAME 128 +cpp_quote("#define MAX_PIN_NAME 128") +cpp_quote("#define MAX_FILTER_NAME 128") +#define MAX_FILTER_NAME 128 + + +//===================================================================== +//===================================================================== +// time information +// +// This represents a time (either reference or stream) in 100ns units. +// The class library contains a CRefTime helper class +// that supports simple comparison and arithmetic operations +//===================================================================== +//===================================================================== + +typedef LONGLONG REFERENCE_TIME; +typedef double REFTIME; + +// Win32 HANDLEs have to be cast to these as the MIDL compiler doesn't +// like the HANDLE type or in fact anything remotely associated with +// them. If this ever gets ported to a MAC environment then these will +// have to become an alertable synchronisation object that it supports + +typedef DWORD_PTR HSEMAPHORE; +typedef DWORD_PTR HEVENT; + +//===================================================================== +//===================================================================== +// Allocator properties +// +// Used to describe the actual properties of an allocator, +// and used to request properties from an allocator or from an upstream +// filter that could create an allocator. See IMemAllocator and +// IMemInputPin. +//===================================================================== +//===================================================================== +typedef struct _AllocatorProperties { + long cBuffers; // count of buffers at this allocator + long cbBuffer; // size of each buffer, excluding any prefix + + // alignment of the buffer - buffer start will be aligned on a multiple of + // this amount + long cbAlign; + + // prefix amount. Each buffer is immediately preceeded by cbPrefix bytes. + // note that GetPointer points to the beginning of the buffer proper. + // the prefix is aligned, i.e. (GetPointer() - cbPrefix) is aligned on cbAlign. + long cbPrefix; +} ALLOCATOR_PROPERTIES; + + + + + +// forward declarations (in alphabetical order - we were getting duplicates) +interface IAMovieSetup; +interface IEnumFilters; +interface IEnumMediaTypes; +interface IEnumPins; +interface IBaseFilter; +interface IFilterGraph; +interface IMediaFilter; +interface IMediaSample; +interface IMemAllocator; +interface IMemAllocatorCallbackTemp; +interface IMemAllocatorNotifyCallbackTemp; +interface IMemInputPin; +interface IPin; +interface IReferenceClock; + + + +//===================================================================== +//===================================================================== +// Defines IPin interface +// +// interface representing a single, unidirection connection point on a +// filter. A Pin will connect to exactly one other pin on another filter. +// This interface represents the interface other objects can call on +// this pin. The interface between the filter and the pin is private to +// the implementation of a specific filter. +// +// During the connection process, one pin will be instructed to take +// the lead: the connect interface on this pin will be calling, passing +// the IPin* for the other pin. This connecting pin will call the +// ReceiveConnection member function on the other pin, as well as presumably +// other format-enumeration and queryinterface calls to establish whether +// the connection is possible. +//===================================================================== +//===================================================================== + +[ +AM_LOCAL +object, +uuid(56a86891-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IPin : IUnknown { + + // initiate a connection to another pin. calls ReceiveConnection on the + // other pin. Verifies that the connection is possible and may reject + // it. + // The mediatype parameter is optional. If it is not null, the pin must + // connect using that media type if possible. The subtype and/or format + // type can be GUID_NULL, meaning that the pin can fill them in as desired. + // This allows an application to partially specify the media type to be + // used for the connection, insisting on eg YUV 422 but leaving details + // (such as the image size) to be negotiated between the pins. + HRESULT Connect( + [in] IPin * pReceivePin, // connect yourself to this pin + [in AM_ANNOTATION("_In_opt_")] const AM_MEDIA_TYPE * pmt // (optional) connect using this type + ); + + // called by a connecting pin to make a connection + HRESULT ReceiveConnection( + [in] IPin * pConnector, + [in] const AM_MEDIA_TYPE *pmt // this is the media type we will exchange + ); + + // break a connection - no params since there is only one connection + // possible on this pin + HRESULT Disconnect(void); + + // Find the pin this pin is connected to (if any) + // The pointer returned is AddRef()d + // Fails if the pin is not connected + HRESULT ConnectedTo( + [out AM_ANNOTATION("_Out_")] IPin **pPin + ); + + // Return the media type of a connection if the pin is connected + HRESULT ConnectionMediaType( + [out AM_ANNOTATION("_Out_")] AM_MEDIA_TYPE *pmt + ); + + // get information about the pin itself + typedef struct _PinInfo { + IBaseFilter *pFilter; // the filter this pin is on + PIN_DIRECTION dir; // am I an input or output pin? + WCHAR achName[MAX_PIN_NAME]; // the name of this pin within this filter + } PIN_INFO; + + HRESULT QueryPinInfo( + [out AM_ANNOTATION("_Out_")] PIN_INFO * pInfo + ); + + // We often want to know the direction. Rather than use the + // relatively expensive QueryPinInfo, use this + HRESULT QueryDirection( + [out AM_ANNOTATION("_Out_")] PIN_DIRECTION *pPinDir + ); + + // Get an identifier for the pin (allows connections to be saved). + // The storage will be allocated by the filter using CoTaskMemAlloc + // The caller should free it using CoTaskMemFree + HRESULT QueryId( + [out AM_ANNOTATION("_Out_")] LPWSTR * Id + ); + + // will the pin accept the format type, S_OK yes, S_FALSE no + HRESULT QueryAccept( + [in] const AM_MEDIA_TYPE *pmt + ); + + // return an enumerator for this pin's preferred media types + HRESULT EnumMediaTypes( + [out AM_ANNOTATION("_Out_")] IEnumMediaTypes **ppEnum + ); + + // return an array of IPin* - the pins that this pin internally connects to + // All pins put in the array must be AddReffed (but no others) + // Errors: "Can't say" - FAIL; not enough slots - return S_FALSE + // Default: return E_NOTIMPL + // The filter graph will interpret E_NOTIMPL as any input pin connects to + // all visible output pins and vise versa. + // apPin can be NULL if nPin==0 (not otherwise). + HRESULT QueryInternalConnections( + [out AM_ANNOTATION("_Out_writes_to_opt_(*nPin, *nPin)")] IPin* *apPin, // array of IPin* + [in, out] ULONG *nPin // on input, the number of slots + // on output the number of pins + ); + + // notify the pin that no more data is expected until a new run + // command is issued. End of stream should be queued and delivered after + // all queued data is delivered. Pass through if there is no queued data. + // Flush should flush any queued EOS. + // returns S_OK unless there is some error. + // input pins only: output pins will normally return E_UNEXPECTED. + HRESULT EndOfStream(void); + + // Flush + + // Enter flush state: do the following steps (in order) + // -- prevent any more Receives succeeding (set a flushing flag) + // -- discard any queued data + // -- free anyone blocked on Receive in your filter + // -- pass BeginFlush to any downstream pins + HRESULT BeginFlush(void); + + // End flush state: do the following steps in order + // -- ensure no more data will be pushed by your filter + // (sync with thread if you have one, stop it pushing and + // discard any queued data) + // -- re-enable Receive (clear internal flushing flag) + // -- pass EndFlush to any downstream pins + HRESULT EndFlush(void); + + // informational: all data arriving after this call is part of a segment + // from StartTime to StopTime, played at rate. This allows filters that + // process buffers containing more than one sample to clip the rendering + // to within the start and stop times. + // + // A source pin will call a destination pin on this method after completing + // delivery of any previous data, and before any Receive calls for the + // new data + HRESULT NewSegment( + [in] REFERENCE_TIME tStart, + [in] REFERENCE_TIME tStop, + [in] double dRate); +} + +typedef IPin *PPIN; + + +//===================================================================== +//===================================================================== +// Defines IEnumPins interface +// +// interface returned from IBaseFilter::EnumPins(). based on IEnumXXXX +//===================================================================== +//===================================================================== + +[ +AM_LOCAL +object, +uuid(56a86892-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IEnumPins : IUnknown { + + HRESULT Next( + [in] ULONG cPins, // place this many pins... + [out, size_is(cPins) AM_ANNOTATION("_Out_writes_to_(cPins, *pcFetched)")] IPin ** ppPins, // ...in this array + [out AM_ANNOTATION("_Out_opt_")] ULONG * pcFetched // actual count passed + ); + + HRESULT Skip( + [in] ULONG cPins); + + HRESULT Reset(void); + + HRESULT Clone( + [out AM_ANNOTATION("_Out_")] IEnumPins **ppEnum + ); +} + +typedef IEnumPins *PENUMPINS; + + +//===================================================================== +//===================================================================== +// Defines IEnumMediaTypes interface +// +// Enumerates the preferred formats for a pin +//===================================================================== +//===================================================================== + +[ +AM_LOCAL +object, +uuid(89c31040-846b-11ce-97d3-00aa0055595a), +pointer_default(unique) +] +interface IEnumMediaTypes : IUnknown { + + // to call this member function pass in the address of a pointer to a + // media type. The interface will allocate the necessary AM_MEDIA_TYPE + // structures and initialise them with the variable format block + + HRESULT Next( + [in] ULONG cMediaTypes, // place this many types... + [out, size_is(cMediaTypes) AM_ANNOTATION("_Out_writes_to_(cMediaTypes, *pcFetched)")] + AM_MEDIA_TYPE ** ppMediaTypes, // ...in this array + [out AM_ANNOTATION("_Out_opt_")] ULONG * pcFetched // actual count passed + ); + + HRESULT Skip( + [in] ULONG cMediaTypes); + + HRESULT Reset(void); + + HRESULT Clone( + [out AM_ANNOTATION("_Out_")] IEnumMediaTypes **ppEnum + ); +} + +typedef IEnumMediaTypes *PENUMMEDIATYPES; + + + +//======================================================================== +//======================================================================== +// Defines IFilterGraph interface +// +// abstraction representing a graph of filters +// This allows filters to be joined into a graph and operated as a unit. +//======================================================================== +//======================================================================== + +[ +AM_LOCAL +object, +uuid(56a8689f-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IFilterGraph : IUnknown { + + //========================================================================== + // Low level filter functions + //========================================================================== + + // Add a filter to the graph and name it with *pName. + // If the name is not unique, The request will fail. + // The Filter graph will call the JoinFilterGraph + // member function of the filter to inform it. + // This must be called before attempting Connect, ConnectDirect or Render + // for pins of the filter. + + HRESULT AddFilter + ( [in] IBaseFilter * pFilter, + [in, string] LPCWSTR pName + ); + + + // Remove a filter from the graph. The filter graph implementation + // will inform the filter that it is being removed. + + HRESULT RemoveFilter + ( [in] IBaseFilter * pFilter + ); + + + // Set *ppEnum to be an enumerator for all filters in the graph. + + HRESULT EnumFilters + ( [out AM_ANNOTATION("_Out_")] IEnumFilters **ppEnum + ); + + + // Set *ppFilter to be the filter which was added with the name *pName + // Will fail and set *ppFilter to NULL if the name is not in this graph. + + HRESULT FindFilterByName + ( [in, string] LPCWSTR pName, + [out AM_ANNOTATION("_Out_")] IBaseFilter ** ppFilter + ); + + //========================================================================== + // Low level connection functions + //========================================================================== + + // Connect these two pins directly (i.e. without intervening filters) + // the media type is optional, and may be partially specified (that is + // the subtype and/or format type may be GUID_NULL). See IPin::Connect + // for details of the media type parameter. + HRESULT ConnectDirect + ( [in] IPin * ppinOut, // the output pin + [in] IPin * ppinIn, // the input pin + [in, unique AM_ANNOTATION("_In_opt_")] const AM_MEDIA_TYPE* pmt // optional mediatype + ); + + // Break the connection that this pin has and reconnect it to the + // same other pin. + + HRESULT Reconnect + ( [in] IPin * ppin // the pin to disconnect and reconnect + ); + + + + // Disconnect this pin, if connected. Successful no-op if not connected. + + HRESULT Disconnect + ( [in] IPin * ppin + ); + + //========================================================================== + // intelligent connectivity - now in IGraphBuilder, axextend.idl + //========================================================================== + + //========================================================================== + // Whole graph functions + //========================================================================== + + // Once a graph is built, it can behave as a (composite) filter. + // To control this filter, QueryInterface for IMediaFilter. + + // The filtergraph will by default ensure that the graph has a sync source + // when it is made to Run. SetSyncSource(NULL) will prevent that and allow + // all the filters to run unsynchronised until further notice. + // SetDefaultSyncSource will set the default sync source (the same as would + // have been set by default on the first call to Run). + HRESULT SetDefaultSyncSource(void); + +} + +typedef IFilterGraph *PFILTERGRAPH; + + + +//========================================================================== +//========================================================================== +// Defines IEnumFilters interface +// +// enumerator interface returned from IFilterGraph::EnumFilters(). +// based on IEnum pseudo-template +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(56a86893-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IEnumFilters : IUnknown { + + HRESULT Next + ( [in] ULONG cFilters, // place this many filters... + [out AM_ANNOTATION("_Out_writes_to_(cFilters, *pcFetched)")] IBaseFilter ** ppFilter, // ...in this array of IBaseFilter* + [out AM_ANNOTATION("_Out_opt_")] ULONG * pcFetched // actual count passed returned here + ); + + + HRESULT Skip + ( [in] ULONG cFilters + ); + + + HRESULT Reset(void); + + + HRESULT Clone + ( [out AM_ANNOTATION("_Out_")] IEnumFilters **ppEnum + ); +} + +typedef IEnumFilters *PENUMFILTERS; + + +//===================================================================== +//===================================================================== +// Defines IMediaFilter interface +// +// multimedia components that provide time-based data will expose this. +// this interface abstracts an object that processes time-based data streams +// and represents a multimedia device (possibly implemented in software). +// it controls the active/running state of the object and its synchronization +// to other objects in the system. +// +// derived from IPersist so that all filter-type objects in a graph +// can have their class id serialised. +//===================================================================== +//===================================================================== + +[ +AM_LOCAL +object, +uuid(56a86899-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IMediaFilter : IPersist { + + // tell the filter to transition to the new state. The state transition + // may not be instantaneous (external mechanical activity may be involved, + // for example). The state functions may return before the state + // transition has completed + + // these functions will return S_OK if the transition is complete, S_FALSE if + // the transition is not complete but no error has occurred, or some error value + // if the transition failed. + HRESULT Stop(void); + HRESULT Pause(void); + + // in order to synchronise independent streams, you must pass a time + // value with the Run command. This is the difference between stream + // time and reference time. That is, it is the amount to be added to + // the IMediaSample timestamp to get the time at which that sample + // should be rendered according to the reference clock. + // If we are starting at the beginning of the stream, it will thus be + // simply the time at which the first sample should appear. If we are + // restarting from Paused mode in midstream, then it will be the total + // time we have been paused added to the initial start time. + + // the filtergraph will provide this information to its filters. If you + // are an app calling the filtergraph, it's ok to pass a start time of + // 0, in which case the filter graph will calculate a soon-as-possible + // time. FilterGraphs will accept 0 meaning ASAP; most filters will not. + + HRESULT Run(REFERENCE_TIME tStart); + + + // possible states that the filter could be in + typedef enum _FilterState { + State_Stopped, // not in use + State_Paused, // holding resources, ready to go + State_Running // actively processing media stream + } FILTER_STATE; + + // find out what state the filter is in. + // If timeout is 0, will return immediately - if a state transition is + // not complete, it will return the state being transitioned into, and + // the return code will be VFW_S_STATE_INTERMEDIATE. if no state + // transition is in progress the state will be returned and the return + // code will be S_OK. + // + // If timeout is non-zero, GetState will not return until the state + // transition is complete, or the timeout expires. + // The timeout is in milliseconds. + // You can also pass in INFINITE as a special value for the timeout, in + // which case it will block indefinitely waiting for the state transition + // to complete. If the timeout expires, the state returned is the + // state we are trying to reach, and the return code will be + // VFW_S_STATE_INTERMEDIATE. If no state transition is in progress + // the routine returns immediately with return code S_OK. + + // + // return State is State_Running, State_Paused or State_Stopped. + // return code is S_OK, or VFW_S_STATE_INTERMEDIATE if state + // transition is not complete or an error value if the method failed. + HRESULT GetState( + [in] DWORD dwMilliSecsTimeout, + [out AM_ANNOTATION("_Out_")] FILTER_STATE *State); + + + // tell the filter the reference clock to which it should synchronize + // activity. This is most important to rendering filters and may not + // be of any interest to other filters. + HRESULT SetSyncSource( + [in AM_ANNOTATION("_In_opt_")] IReferenceClock * pClock); + + // get the reference clock currently in use (it may be NULL) + HRESULT GetSyncSource( + [out AM_ANNOTATION("_Outptr_result_maybenull_")] IReferenceClock ** pClock); +} + +typedef IMediaFilter *PMEDIAFILTER; + + +//===================================================================== +//===================================================================== +// Defines IBaseFilter interface +// +// all multimedia components will expose this interface +// this interface abstracts an object that has typed input and output +// connections and can be dynamically aggregated. +// +// IMediaFilter supports synchronisation and activity state: IBaseFilter +// is derived from that since all filters need to support IMediaFilter, +// whereas a few objects (plug-in control distributors for example) will +// support IMediaFilter but not IBaseFilter. +// +// IMediaFilter is itself derived from IPersist so that every filter +//supports GetClassID() +//===================================================================== +//===================================================================== + +[ +AM_LOCAL +object, +uuid(56a86895-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IBaseFilter : IMediaFilter { + + // enumerate all the pins available on this filter + // allows enumeration of all pins only. + // + HRESULT EnumPins( + [out AM_ANNOTATION("_Out_")] IEnumPins ** ppEnum // enum interface returned here + ); + + // Convert the external identifier of a pin to an IPin * + // This pin id is quite different from the pin Name in CreatePin. + // In CreatePin the Name is invented by the caller. In FindPin the Id + // must have come from a previous call to IPin::QueryId. Whether or not + // this operation would cause a pin to be created depends on the filter + // design, but if called twice with the same id it should certainly + // return the same pin both times. + HRESULT FindPin( + [in, string] LPCWSTR Id, + [out AM_ANNOTATION("_Out_")] IPin ** ppPin + ); + + // find out information about this filter + typedef struct _FilterInfo { + WCHAR achName[MAX_FILTER_NAME]; // maybe null if not part of graph + IFilterGraph * pGraph; // null if not part of graph + } FILTER_INFO; + + HRESULT QueryFilterInfo( + [out AM_ANNOTATION("_Out_")] FILTER_INFO * pInfo + ); + + // notify a filter that it has joined a filter graph. It is permitted to + // refuse. The filter should addref and store this interface for later use + // since it may need to notify events to this interface. A null pointer indicates + // that the filter is no longer part of a graph. + HRESULT JoinFilterGraph( + [in AM_ANNOTATION("_In_opt_")] IFilterGraph * pGraph, + [in, string AM_ANNOTATION("_In_opt_")] LPCWSTR pName + ); + + // return a Vendor information string. Optional - may return E_NOTIMPL. + // memory returned should be freed using CoTaskMemFree + HRESULT QueryVendorInfo( + [out, string AM_ANNOTATION("_Out_")] LPWSTR* pVendorInfo + ); +} + +typedef IBaseFilter *PFILTER; + + +//===================================================================== +//===================================================================== +// sync and state management +//===================================================================== +//===================================================================== + + +//===================================================================== +//===================================================================== +// Defines IReferenceClock interface +//===================================================================== +//===================================================================== + +[ + AM_LOCAL + object, + uuid(56a86897-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IReferenceClock : IUnknown { + + // get the time now + HRESULT GetTime( + [out AM_ANNOTATION("_Out_")] REFERENCE_TIME *pTime + ); + + // ask for an async notification that a time has elapsed + HRESULT AdviseTime( + [in] REFERENCE_TIME baseTime, // base reference time + [in] REFERENCE_TIME streamTime, // stream offset time + [in] HEVENT hEvent, // advise via this event + [out AM_ANNOTATION("_Out_")] DWORD_PTR * pdwAdviseCookie // where your cookie goes + ); + + // ask for an async periodic notification that a time has elapsed + HRESULT AdvisePeriodic( + [in] REFERENCE_TIME startTime, // starting at this time + [in] REFERENCE_TIME periodTime, // time between notifications + [in] HSEMAPHORE hSemaphore, // advise via a semaphore + [out AM_ANNOTATION("_Out_")] DWORD_PTR * pdwAdviseCookie // where your cookie goes + ); + + // cancel a request for notification + HRESULT Unadvise( + [in] DWORD_PTR dwAdviseCookie); +} + +typedef IReferenceClock *PREFERENCECLOCK; + +//===================================================================== +//===================================================================== +// Defines IReferenceClockTimerControl interface +//===================================================================== +//===================================================================== + +[ + local, + object, + uuid(ebec459c-2eca-4d42-a8af-30df557614b8), + pointer_default(unique) +] +interface IReferenceClockTimerControl : IUnknown { + + // Setting a default of 0 disables the default of 1ms + HRESULT SetDefaultTimerResolution( + REFERENCE_TIME timerResolution // in 100ns + ); + HRESULT GetDefaultTimerResolution( + [annotation("_Out_")] REFERENCE_TIME* pTimerResolution // in 100ns + ); +} + +//===================================================================== +//===================================================================== +// Defines IReferenceClock2 interface +//===================================================================== +//===================================================================== + +[ + AM_LOCAL + object, + uuid(36b73885-c2c8-11cf-8b46-00805f6cef60), + pointer_default(unique) +] +interface IReferenceClock2 : IReferenceClock { +} + +typedef IReferenceClock2 *PREFERENCECLOCK2; + + +//===================================================================== +//===================================================================== +// Data transport interfaces +//===================================================================== +//===================================================================== + + +//===================================================================== +//===================================================================== +// Defines IMediaSample interface +//===================================================================== +//===================================================================== + +[ + local, + object, + uuid(56a8689a-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IMediaSample : IUnknown { + + // get me a read/write pointer to this buffer's memory. I will actually + // want to use sizeUsed bytes. + HRESULT GetPointer([out, annotation("_Outptr_result_buffer_to_(_Inexpressible_(this->GetSize()), _Inexpressible_(this->GetActualDataLength()))")] BYTE ** ppBuffer); + + // return the size in bytes of the buffer data area + long GetSize(void); + + // get the stream time at which this sample should start and finish. + HRESULT GetTime( + [out, annotation("_Out_")] REFERENCE_TIME * pTimeStart, // put time here + [out, annotation("_Out_")] REFERENCE_TIME * pTimeEnd + ); + + // Set the stream time at which this sample should start and finish. + // pTimeStart==pTimeEnd==NULL will invalidate the time stamps in + // this sample + HRESULT SetTime( + [in, annotation("_In_opt_")] REFERENCE_TIME * pTimeStart, // put time here + [in, annotation("_In_opt_")] REFERENCE_TIME * pTimeEnd + ); + + // sync-point property. If true, then the beginning of this + // sample is a sync-point. (note that if AM_MEDIA_TYPE.bTemporalCompression + // is false then all samples are sync points). A filter can start + // a stream at any sync point. S_FALSE if not sync-point, S_OK if true. + + HRESULT IsSyncPoint(void); + HRESULT SetSyncPoint(BOOL bIsSyncPoint); + + // preroll property. If true, this sample is for preroll only and + // shouldn't be displayed. + HRESULT IsPreroll(void); + HRESULT SetPreroll(BOOL bIsPreroll); + + long GetActualDataLength(void); + HRESULT SetActualDataLength(long); + + // these allow for limited format changes in band - if no format change + // has been made when you receive a sample GetMediaType will return S_FALSE + + HRESULT GetMediaType([out, annotation("_Out_")] AM_MEDIA_TYPE **ppMediaType); + HRESULT SetMediaType([in, annotation("_In_")] AM_MEDIA_TYPE *pMediaType); + + // returns S_OK if there is a discontinuity in the data (this frame is + // not a continuation of the previous stream of data + // - there has been a seek or some dropped samples). + HRESULT IsDiscontinuity(void); + // set the discontinuity property - TRUE if this sample is not a + // continuation, but a new sample after a seek or a dropped sample. + HRESULT SetDiscontinuity(BOOL bDiscontinuity); + + // get the media times for this sample + HRESULT GetMediaTime( + [out, annotation("_Out_")] LONGLONG * pTimeStart, + [out, annotation("_Out_")] LONGLONG * pTimeEnd + ); + + // Set the media times for this sample + // pTimeStart==pTimeEnd==NULL will invalidate the media time stamps in + // this sample + HRESULT SetMediaTime( + [in, annotation("_In_opt_")] LONGLONG * pTimeStart, + [in, annotation("_In_opt_")] LONGLONG * pTimeEnd + ); +} + +typedef IMediaSample *PMEDIASAMPLE; + +// Values for dwFlags for AM_SAMPLE_PROPERTIES +enum tagAM_SAMPLE_PROPERTY_FLAGS + { AM_SAMPLE_SPLICEPOINT = 0x01, /* Is this a splice point + IE can it be decoded + without reference to + previous data */ + AM_SAMPLE_PREROLL = 0x02, /* Is this a preroll sample */ + AM_SAMPLE_DATADISCONTINUITY = 0x04, /* Set if start of new segment */ + AM_SAMPLE_TYPECHANGED = 0x08, /* Has the type changed */ + AM_SAMPLE_TIMEVALID = 0x10, /* Set if time is valid */ + AM_SAMPLE_TIMEDISCONTINUITY = 0x40, /* time gap in data starts after + this sample - pbBuffer can + be NULL + */ + AM_SAMPLE_FLUSH_ON_PAUSE = 0x80, /* For live data - discard + in paused state + */ + AM_SAMPLE_STOPVALID = 0x100, /* Stop time is valid */ + AM_SAMPLE_ENDOFSTREAM = 0x200, /* End of stream after + this data + This is reserved for + kernel streaming and is + not currently used by + ActiveMovie + */ + AM_STREAM_MEDIA = 0, /* Normal data stream id */ + AM_STREAM_CONTROL = 1 /* Control stream id */ + /* > 7FFFFFFF is application + defined stream + */ + }; + +// Media sample generic properties structure +typedef struct tagAM_SAMPLE2_PROPERTIES { + DWORD cbData; // Length of generic data for extensiblity + // Number of bytes INCLUDING this field + DWORD dwTypeSpecificFlags; // Type specific flag data + DWORD dwSampleFlags; // Flags bits defined by AM_SAMPLE_xxx flags + // All undefined bits RESERVED (set to 0, + // leave on copy) + LONG lActual; // Length of data in buffer + REFERENCE_TIME tStart; // Start time if valid + REFERENCE_TIME tStop; // Stop time if valid + DWORD dwStreamId; // Stream 0 is normal media transport + // Stream 1 is control + AM_MEDIA_TYPE *pMediaType; // Copy of media type - INVALID after Release() + BYTE *pbBuffer; // Pointer to buffer - INVALID after Release() + LONG cbBuffer; // Length of buffer +} AM_SAMPLE2_PROPERTIES; + +//===================================================================== +//===================================================================== +// Defines IMediaSample2 interface +//===================================================================== +//===================================================================== + +[ + local, + object, + uuid(36b73884-c2c8-11cf-8b46-00805f6cef60), + pointer_default(unique) +] +interface IMediaSample2 : IMediaSample { + + // Get sample properties + // + // cbProperties - length of generic data to retrieve + // pbProperties - pointer to generic data buffer - can + // be NULL if cbProperties is NULL + // data conforms to AM_SAMPLE_PROPERTIES + // + HRESULT GetProperties( + [in] DWORD cbProperties, + [out, size_is(cbProperties), annotation("_Out_writes_bytes_(cbProperties)")] BYTE * pbProperties + ); + // Set sample properties + // + // cbProperties - length of generic data to set + // pbProperties - pointer to generic data buffer - can + // be NULL if cbProperties is NULL + // data conforms to AM_SAMPLE_PROPERTIES + // + // + HRESULT SetProperties( + [in] DWORD cbProperties, + [in, size_is(cbProperties), annotation("_In_reads_bytes_(cbProperties)")] const BYTE * pbProperties + ); + + + // // Get the clock associated with the sample + // HRESULT GetClock( + // [out] IReferenceClock2 **ppClock + // ); + + // // Get a pointer to the object containing the data + // // + // // riid - IID of interface required on object + // // ppvobject - Pointer to object containing the data + // // + // // Returns + // // S_OK - Got the object + // // E_NOINTERFACE - object does not support this interface + // // if IUnknown is not supported + // // there is no backing object + // // E_NOTIMPL - samples don't have backing objects + // // + // // + // HRESULT GetBackingObject( + // [in] REFIID riid, + // [out] void **ppvObject + // ); +} + +typedef IMediaSample2 *PMEDIASAMPLE2; + +[ + object, + uuid(68961E68-832B-41ea-BC91-63593F3E70E3), + pointer_default(unique) +] +interface IMediaSample2Config : IUnknown +{ + HRESULT GetSurface( + [out] IUnknown **ppDirect3DSurface9 + ); +}; + +// flags for dwFlags in IMemAllocator::GetBuffer +// AM_GBF_PREVFRAMESKIPPED is only significant when asking for a buffer from the +// video renderer. It should be TRUE if and only if the previous frame +// was skipped. It affects quality management. +// AM_GBF_NOTASYNCPOINT indicates to the downstream filter (most likely the +// video renderer) that you are not going to fill this buffer with a sync point +// (keyframe) so now would be a bad time to return a buffer with a dynamic +// format change, because you will be unable to switch to the new format without +// waiting for the next sync point, causing some frames to be dropped. +#define AM_GBF_PREVFRAMESKIPPED 1 +#define AM_GBF_NOTASYNCPOINT 2 +cpp_quote("#define AM_GBF_PREVFRAMESKIPPED 1") +cpp_quote("#define AM_GBF_NOTASYNCPOINT 2") + +// This may not be supported by allocators +cpp_quote("#define AM_GBF_NOWAIT 4") + +// This flag is supported by the VMR's surface allocator +// When set the DDraw surface used for the media sample +// is returned is an un-locked state. Calls the GetPointer on +// the returned media sample will fail and return a NULL pointer +// +cpp_quote("#define AM_GBF_NODDSURFACELOCK 8") + +//===================================================================== +//===================================================================== +// Defines IMemAllocator interface +// +// an allocator of IMediaSample blocks to be used for data transfer between +// pins. Can be provided by input, output or a third party. Release +// the IMediaSample object obtained back to the pool by calling +// IMediaSample::Release. +//===================================================================== +//===================================================================== + +[ + local, + object, + uuid(56a8689c-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IMemAllocator : IUnknown { + + // negotiate buffer sizes, buffer count and alignment. pRequest is filled + // in by the caller with the requested values. pActual will be returned + // by the allocator with the closest that the allocator can come to this. + // Cannot be called unless the allocator is decommitted. + // Calls to GetBuffer need not succeed until Commit is called. + HRESULT SetProperties( + [in, annotation("_In_")] ALLOCATOR_PROPERTIES* pRequest, + [out, annotation("_Out_")] ALLOCATOR_PROPERTIES* pActual); + + // return the properties actually being used on this allocator + HRESULT GetProperties( + [out, annotation("_Out_")] ALLOCATOR_PROPERTIES* pProps); + + + // commit the memory for the agreed buffers + HRESULT Commit(void); + + // release the memory for the agreed buffers. Any threads waiting in + // GetBuffer will return with an error. GetBuffer calls will always fail + // if called before Commit or after Decommit. + HRESULT Decommit(void); + + // get container for a sample. Blocking, synchronous call to get the + // next free buffer (as represented by an IMediaSample interface). + // on return, the time etc properties will be invalid, but the buffer + // pointer and size will be correct. + // Will only succeed if memory is committed. If GetBuffer is blocked + // waiting for a buffer and Decommit is called on another thread, + // GetBuffer will return with an error. + HRESULT GetBuffer( + [out, annotation("_Out_")] IMediaSample **ppBuffer, + [in,unique, annotation("_In_opt_")] REFERENCE_TIME * pStartTime, + [in,unique, annotation("_In_opt_")] REFERENCE_TIME * pEndTime, + [in] DWORD dwFlags + ); + + // put a buffer back on the allocators free list. + // this is typically called by the Release() method of the media + // sample when the reference count goes to 0 + // + HRESULT ReleaseBuffer( + [in] IMediaSample *pBuffer + ); +} + +typedef IMemAllocator *PMEMALLOCATOR; + +//===================================================================== +//===================================================================== +// Defines IMemAllocatorCallbackTemp interface +// +// If the allocator supports IMemAllocator2 then callbacks are +// available +// +//===================================================================== +//===================================================================== +[ + local, + object, + uuid(379a0cf0-c1de-11d2-abf5-00a0c905f375), + pointer_default(unique) +] +interface IMemAllocatorCallbackTemp : IMemAllocator { + + // Set notification interface. pNotify can be NULL + HRESULT SetNotify( + [in] IMemAllocatorNotifyCallbackTemp *pNotify); + + // Get current stats + HRESULT GetFreeCount( + [out, annotation("_Out_")] LONG *plBuffersFree); +} + +//===================================================================== +//===================================================================== +// Defines IMemAllocatorNotify interface +// +//===================================================================== +//===================================================================== +[ + local, + object, + uuid(92980b30-c1de-11d2-abf5-00a0c905f375), + pointer_default(unique) +] +interface IMemAllocatorNotifyCallbackTemp : IUnknown { + + // Called whenever ReleaseBuffer is called in the allocator + // Note the caller may have acquired locks and this call may + // occur in any context so generally the implementor of this + // call will just set an event or post a message for another + // thread to take action. + HRESULT NotifyRelease(); +} + +//===================================================================== +//===================================================================== +// Defines IMemInputPin interface +// +// basic shared memory transport interface. +//===================================================================== +//===================================================================== + +[ + local, + object, + uuid(56a8689d-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IMemInputPin : IUnknown { + + // return the allocator interface that this input pin + // would like the output pin to use + HRESULT GetAllocator( + [out, annotation("_Out_")] IMemAllocator ** ppAllocator); + + // tell the input pin which allocator the output pin is actually + // going to use. + // If the readonly flag is set, then all samples from this allocator are + // to be treated as read-only, and should be copied before being modified. + HRESULT NotifyAllocator( + [in] IMemAllocator * pAllocator, + [in] BOOL bReadOnly + ); + + // this method is optional (can return E_NOTIMPL). Output pins are not obliged to call + // this method, nor are they obliged to fulfil the request. Input pins making such a + // request should check the allocator in NotifyAllocator to see if it meets their needs. If + // not, the input pin is responsible for any necessary data copy. + // Zero values will be treated as don't care: so a pin can return an alignment value + // and leave the other values 0. + HRESULT GetAllocatorRequirements( [out, annotation("_Out_")] ALLOCATOR_PROPERTIES*pProps); + + // here's the next block of data from the stream. AddRef it if + // you need to hold it beyond the end of the Receive call. + // call pSample->Release when done with it. + // + // This is a blocking synchronous call. Usually no blocking + // will occur but if a filter cannot process the sample immediately + // it may use the caller's thread to wait until it can. + HRESULT Receive( + [in] IMediaSample * pSample); + + // Same as Receive but with multiple samples. Useful for + // fragmented streams + HRESULT ReceiveMultiple( + [in, size_is(nSamples), annotation("_In_reads_(nSamples)")] IMediaSample **pSamples, + [in] long nSamples, + [out, annotation("_Out_")] long *nSamplesProcessed); + + // See if Receive might block + // Returns S_OK if it can block, S_FALSE if it can't or some + // failure code (assume it can in this case) + HRESULT ReceiveCanBlock(); +} + +typedef IMemInputPin *PMEMINPUTPIN; + + +//===================================================================== +//===================================================================== +// Defines IAMovieSetup interface +// +// exported by filter to allow it to be self-registering +//===================================================================== +//===================================================================== + +[ +AM_LOCAL +object, +uuid(a3d8cec0-7e5a-11cf-bbc5-00805f6cef20), +pointer_default(unique) +] +interface IAMovieSetup : IUnknown { + + // methods to register and unregister filter, etc. + + HRESULT Register( ); + HRESULT Unregister( ); +} + +typedef IAMovieSetup *PAMOVIESETUP; + + +//===================================================================== +//===================================================================== +// Defines IMediaSeeking interface +// +// Controls seeking (time, bytes, frames, fields and samples) +//===================================================================== +//===================================================================== + +typedef enum AM_SEEKING_SeekingFlags +{ + AM_SEEKING_NoPositioning = 0x00, // No change + AM_SEEKING_AbsolutePositioning = 0x01, // Position is supplied and is absolute + AM_SEEKING_RelativePositioning = 0x02, // Position is supplied and is relative + AM_SEEKING_IncrementalPositioning = 0x03, // (Stop) position relative to current + // Useful for seeking when paused (use +1) + AM_SEEKING_PositioningBitsMask = 0x03, // Useful mask + AM_SEEKING_SeekToKeyFrame = 0x04, // Just seek to key frame (performance gain) + AM_SEEKING_ReturnTime = 0x08, // Plug the media time equivalents back into the supplied LONGLONGs + + AM_SEEKING_Segment = 0x10, // At end just do EC_ENDOFSEGMENT, + // don't do EndOfStream + AM_SEEKING_NoFlush = 0x20 // Don't flush +} AM_SEEKING_SEEKING_FLAGS; + +typedef enum AM_SEEKING_SeekingCapabilities +{ + AM_SEEKING_CanSeekAbsolute = 0x001, + AM_SEEKING_CanSeekForwards = 0x002, + AM_SEEKING_CanSeekBackwards = 0x004, + AM_SEEKING_CanGetCurrentPos = 0x008, + AM_SEEKING_CanGetStopPos = 0x010, + AM_SEEKING_CanGetDuration = 0x020, + AM_SEEKING_CanPlayBackwards = 0x040, + AM_SEEKING_CanDoSegments = 0x080, + AM_SEEKING_Source = 0x100 // Doesn't pass thru used to + // count segment ends +} AM_SEEKING_SEEKING_CAPABILITIES; + +[ + AM_LOCAL + object, + uuid(36b73880-c2c8-11cf-8b46-00805f6cef60), + pointer_default(unique) +] +interface IMediaSeeking : IUnknown { + + // Returns the capability flags + HRESULT GetCapabilities( [out AM_ANNOTATION("_Out_")] DWORD * pCapabilities ); + + // And's the capabilities flag with the capabilities requested. + // Returns S_OK if all are present, S_FALSE if some are present, E_FAIL if none. + // *pCababilities is always updated with the result of the 'and'ing and can be + // checked in the case of an S_FALSE return code. + HRESULT CheckCapabilities( [in,out] DWORD * pCapabilities ); + + // returns S_OK if mode is supported, S_FALSE otherwise + HRESULT IsFormatSupported([in] const GUID * pFormat); + HRESULT QueryPreferredFormat([out AM_ANNOTATION("_Out_")] GUID * pFormat); + + HRESULT GetTimeFormat([out AM_ANNOTATION("_Out_")] GUID *pFormat); + // Returns S_OK if *pFormat is the current time format, otherwise S_FALSE + // This may be used instead of the above and will save the copying of the GUID + HRESULT IsUsingTimeFormat([in] const GUID * pFormat); + + // (may return VFE_E_WRONG_STATE if graph is stopped) + HRESULT SetTimeFormat([in] const GUID * pFormat); + + // return current properties + HRESULT GetDuration([out AM_ANNOTATION("_Out_")] LONGLONG *pDuration); + HRESULT GetStopPosition([out AM_ANNOTATION("_Out_")] LONGLONG *pStop); + HRESULT GetCurrentPosition([out AM_ANNOTATION("_Out_")] LONGLONG *pCurrent); + + // Convert time from one format to another. + // We must be able to convert between all of the formats that we say we support. + // (However, we can use intermediate formats (e.g. MEDIA_TIME).) + // If a pointer to a format is null, it implies the currently selected format. + HRESULT ConvertTimeFormat([out AM_ANNOTATION("_Out_")] LONGLONG * pTarget, + [in AM_ANNOTATION("_In_opt_")] const GUID * pTargetFormat, + [in] LONGLONG Source, + [in AM_ANNOTATION("_In_opt_")] const GUID * pSourceFormat ); + + + // Set current and end positions in one operation + // Either pointer may be null, implying no change + HRESULT SetPositions( [in,out AM_ANNOTATION("_Inout_opt_")] LONGLONG * pCurrent, [in] DWORD dwCurrentFlags + , [in,out AM_ANNOTATION("_Inout_opt_")] LONGLONG * pStop, [in] DWORD dwStopFlags ); + + // Get CurrentPosition & StopTime + // Either pointer may be null, implying not interested + HRESULT GetPositions( [out AM_ANNOTATION("_Out_opt_")] LONGLONG * pCurrent, + [out AM_ANNOTATION("_Out_opt_")] LONGLONG * pStop ); + + // Get earliest / latest times to which we can currently seek "efficiently". + // This method is intended to help with graphs where the source filter has + // a very high latency. Seeking within the returned limits should just + // result in a re-pushing of already cached data. Seeking beyond these + // limits may result in extended delays while the data is fetched (e.g. + // across a slow network). + // (NULL pointer is OK, means caller isn't interested.) + HRESULT GetAvailable( [out AM_ANNOTATION("_Out_opt_")] LONGLONG * pEarliest, [out AM_ANNOTATION("_Out_opt_")] LONGLONG * pLatest ); + + // Rate stuff + HRESULT SetRate([in] double dRate); + HRESULT GetRate([out AM_ANNOTATION("_Out_")] double * pdRate); + + // Preroll + HRESULT GetPreroll([out AM_ANNOTATION("_Out_")] LONGLONG * pllPreroll); +} + +typedef IMediaSeeking *PMEDIASEEKING; + +// Flags for IMediaEventEx +cpp_quote("enum tagAM_MEDIAEVENT_FLAGS") +cpp_quote("{") +cpp_quote(" AM_MEDIAEVENT_NONOTIFY = 0x01") +cpp_quote("};") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/axextend.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/axextend.idl new file mode 100644 index 0000000000000000000000000000000000000000..8ec2b4a89e419f651475ba0e9eb2fc900db4499a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/axextend.idl @@ -0,0 +1,5107 @@ +//------------------------------------------------------------------------------ +// File: AXExtend.idl +// +// Desc: Extended streaming interface definitions for the ActiveMovie +// streaming and synchronization architecture. Core streaming +// interfaces are in AXCore.idl, and control interfaces for the +// type library are in Control.odl. +// +// Copyright (c) 1992 - 2000, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// include after unknwn.idl, objidl.idl and axcore.idl +#include "icodecapi.idl" + +// Define for 'local' so that proxy-stubs can be generated for testing +#ifndef AM_LOCAL +#define AM_LOCAL local, +#define AM_ANNOTATION(_x_) ,annotation(_x_) +#endif + +// forward declarations - these are the interfaces declared in this file + +interface IEnumRegFilters; +interface IFileSourceFilter; +interface IFileSinkFilter; +interface IFileSinkFilter2; +interface IGraphBuilder; +interface ICaptureGraphBuilder; +interface ICaptureGraphBuilder2; +interface IAMCopyCaptureFileProgress; +interface IFilterMapper; +interface IFilterMapper2; +interface IMediaEventSink; +interface IOverlay; +interface IOverlayNotify; +interface IOverlayNotify2; +interface IQualityControl; +interface ISeekingPassThru; +interface IAMStreamConfig; +interface IAMDevMemoryAllocator; +interface IAMDevMemoryControl; +interface IConfigInterleaving; +interface IConfigAviMux; +interface IAMVideoCompression; +interface IAMVfwCaptureDialogs; +interface IAMVfwCompressDialogs; +interface IAMDroppedFrames; +interface IAMAudioInputMixer; +interface IAMBufferNegotiation; +interface IAMAnalogVideoDecoder; +interface IAMVideoProcAmp; +interface IAMAnalogVideoEncoder; +interface IAMCameraControl; +interface IAMCrossbar; +interface IAMTVTuner; +interface IKsPropertySet; +interface IAMPhysicalPinInfo; +interface IAMExtDevice; +interface IAMExtTransport; +interface IAMTimecodeReader; +interface IAMTimecodeGenerator; +interface IAMTimecodeDisplay; +interface IDrawVideoImage; +interface IDecimateVideoImage; +interface IAMVideoDecimationProperties; +interface IAMPushSource; +interface IAMAudioRendererStats; +interface IAMLatency; +interface IAMGraphStreams; +interface IAMOverlayFX; +interface IAMOpenProgress; +interface IMpeg2Demultiplexer ; +interface IMPEG2StreamIdMap ; +interface IEnumStreamIdMap ; +interface IAMClockSlave ; +interface IEncoderAPI; +interface IVideoEncoder; +interface IAMGraphBuilderCallback; +interface IAMCertifiedOutputProtection; + +//========================================================================== +//========================================================================== +// IEnumRegFilters interface -- enumerates registered filters. +// enumerator interface returned from IFilterMapper::gFilters(). +// based on IEnum pseudo-template +//========================================================================== +//========================================================================== + +typedef struct REGFILTER { + CLSID Clsid; // class id of the filter + LPWSTR Name; // name of filter +} REGFILTER; + +[ +AM_LOCAL +object, +uuid(56a868a4-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] + +// The point of the mapper is to avoid loading filters. By looking in the +// registry we can reduce the number of filters which must be loaded and tried. +// This enumerator returns descriptors of filters (including the GUIDs that +// CoCreateInstance can instantiate). The filters themselves are not loaded. + +interface IEnumRegFilters : IUnknown { + import "unknwn.idl"; + + // The caller must use CoTaskMemFree to free each REGFILTER* returned + // in the array. + HRESULT Next + ( [in] ULONG cFilters, // place this many filters... + [out AM_ANNOTATION("_Out_writes_to_(cFilters, *pcFetched)")] REGFILTER ** apRegFilter, // ...in this array of REGFILTER* + [out AM_ANNOTATION("_Inout_opt_")] ULONG * pcFetched // actual count passed returned here + ); + + // I can't think why anyone would want to skip, so it's not implemented. + // (anyone who thinks they know what they would be skipping over is probably + // missing some piece of the jigsaw). This ALWAYS returns E_NOTIMPL. + + HRESULT Skip( + [in] ULONG cFilters + ); + + HRESULT Reset(void); + + // No cloning either - also ALWAYS returns E_NOTIMPL. + + HRESULT Clone( + [out AM_ANNOTATION("_Out_")] IEnumRegFilters **ppEnum + ); +} + + +typedef IEnumRegFilters *PENUMREGFILTERS; + +//======================================================================== +//======================================================================== +// abstraction representing the registered information about filters. +// This allows properties of filters to be looked up without loading them. +//======================================================================== +//======================================================================== + +[ +AM_LOCAL +object, +uuid(56a868a3-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IFilterMapper : IUnknown { + import "unknwn.idl"; + + //========================================================================== + // Registration functions. + // A filter should be registered before any other use. + // The registration can be NON_VOLATILE (i.e. permanent, do once ever) + // or VOLATILE (once per boot of the system). + // UnregisterFilter (obviously) removes the registration. + // The action of any of the other calls on unregistered filters is undefined. + // it will either work or you'll get an error, but I'm not saying which. + //========================================================================== + + // Four predefined values controling the order in which filters are tried + // for intelligent graph building. Intermediate values are legal. + // Any value <=MERIT_DO_NOT_USE will mean that the filter will never + // be tried by the filtergrah to automatically complete a connection. + + enum { MERIT_PREFERRED = 0x800000, + MERIT_NORMAL = 0x600000, + MERIT_UNLIKELY = 0x400000, + MERIT_DO_NOT_USE = 0x200000, + MERIT_SW_COMPRESSOR = 0x100000, + MERIT_HW_COMPRESSOR = 0x100050 + }; + + // Register a filter + + HRESULT RegisterFilter + ( [in] CLSID clsid, // GUID of the filter + [in] LPCWSTR Name, // Descriptive name for the filter + [in] DWORD dwMerit // DO_NOT_USE, UNLIKELY, NORMAL or PREFERRED. + ); + + + // Register an identifiable instance of a filter. This deals with cases + // such as two similar sound cards which are driven by the same driver, + // but we want to choose which oif these cards the sound will come out of. + // This is not needed if there is only one instance of the filter + // (e.g. there is only one sound card in the machine) or if all instances + // of the filter are equivalent. + + // The filter itself must have already been registered // ??? Is that true? + HRESULT RegisterFilterInstance + ( [in] CLSID clsid, // GUID of the filter + [in] LPCWSTR Name, // Descriptive name of instance. + [out AM_ANNOTATION("_Out_")] CLSID *MRId // Returned Media Resource Id. A + // locally unique id for this instance + // of this filter + ); + + + HRESULT RegisterPin + ( [in] CLSID Filter, // GUID of filter + [in] LPCWSTR Name, // Name of the pin + [in] BOOL bRendered, // The filter renders this input + [in] BOOL bOutput, // TRUE if this is an Output pin + [in] BOOL bZero, // TRUE if OK for zero instances of pin + // In this case you will have to Create + // a pin to have even one instance + [in] BOOL bMany, // TRUE if OK for many instances of pin + [in] CLSID ConnectsToFilter, // Filter it connects to if it has + // subterranean connection, else NULL + [in] LPCWSTR ConnectsToPin // Name of pin it connects to + // NULL for output pins + ); + + HRESULT RegisterPinType + ( [in] CLSID clsFilter, // GUID of filter + [in] LPCWSTR strName, // Descriptive name of the pin + [in] CLSID clsMajorType, // Major type of the data stream + [in] CLSID clsSubType // Sub type of the data stream + ); + + + HRESULT UnregisterFilter + ( [in] CLSID Filter // GUID of filter + ); + + + HRESULT UnregisterFilterInstance + ( [in] CLSID MRId // Media Resource Id of this instance + ); + + + HRESULT UnregisterPin + ( [in] CLSID Filter, // GUID of filter + [in] LPCWSTR Name // Name of the pin + ); + + + // Set *ppEnum to be an enumerator for filters matching the requirements. + + HRESULT EnumMatchingFilters + ( [out AM_ANNOTATION("_Out_")] IEnumRegFilters **ppEnum // enumerator returned + , [in] DWORD dwMerit // at least this merit needed + , [in] BOOL bInputNeeded // need at least one input pin + , [in] CLSID clsInMaj // input major type + , [in] CLSID clsInSub // input sub type + , [in] BOOL bRender // must the input be rendered? + , [in] BOOL bOututNeeded // need at least one output pin + , [in] CLSID clsOutMaj // output major type + , [in] CLSID clsOutSub // output sub type + ); + +} + +// structure used to identify media types a pin handles. Used for +// registration through IFilterMapper and IFilterMapper2 +// +typedef struct REGPINTYPES +{ + const CLSID * clsMajorType; + const CLSID * clsMinorType; +} REGPINTYPES; + +// describes pin for filter registration. Used for registration +// through IFilterMapper and IFilterMapper2 +// +typedef struct REGFILTERPINS +{ + LPWSTR strName; + + // The filter renders this input + BOOL bRendered; + + // This is an Output pin + BOOL bOutput; + + // OK to have zero instances of pin In this case you will have to + // Create a pin to have even one instance + BOOL bZero; + + // OK to create many instance of pin + BOOL bMany; + + const CLSID * clsConnectsToFilter; + const WCHAR * strConnectsToPin; + + UINT nMediaTypes; + const REGPINTYPES * lpMediaType; +} REGFILTERPINS; + +// mediums (as defined in the Windows NT DDK) for registration with +// IFilterMapper2 +// +typedef struct REGPINMEDIUM +{ + CLSID clsMedium; + DWORD dw1; + DWORD dw2; +} REGPINMEDIUM; + +// flags for dwFlags in REFILTERPINS2 +enum +{ + // OK to have zero instances of pin In this case you will have to + // Create a pin to have even one instance + REG_PINFLAG_B_ZERO = 0x1, + + // The filter renders this input + REG_PINFLAG_B_RENDERER = 0x2, + + // OK to create many instance of pin + REG_PINFLAG_B_MANY = 0x4, + + // This is an Output pin + REG_PINFLAG_B_OUTPUT = 0x8 +}; + + +// describes pin for filter registration through IFilterMapper2 +typedef struct REGFILTERPINS2 +{ + // combination of REG_PINFLAG flags + DWORD dwFlags; + + // number of instances of the pin if known + UINT cInstances; + + UINT nMediaTypes; + [size_is(nMediaTypes)] const REGPINTYPES * lpMediaType; + + UINT nMediums; + [size_is(nMediums)] const REGPINMEDIUM *lpMedium; + + // pin category (for Kernel Streaming pins) as defined in the + // Windows NT DDK + const CLSID *clsPinCategory; + +} REGFILTERPINS2; + +// describes filter for registration through IFilterMapper2 +typedef struct REGFILTER2 +{ + DWORD dwVersion; // 1 or 2 + DWORD dwMerit; + + /* unnamed union */ + [switch_is(dwVersion)] [switch_type(DWORD)] union + { + [case(1)] + + struct + { + ULONG cPins; + [size_is(cPins)] const REGFILTERPINS *rgPins; + } DUMMYSTRUCTNAME; + + [case(2)] + + struct + { + ULONG cPins2; + [size_is(cPins2)] const REGFILTERPINS2 *rgPins2; + } DUMMYSTRUCTNAME2; + } DUMMYUNIONNAME; + +} REGFILTER2; + + + +[ +AM_LOCAL +object, +uuid(b79bb0b0-33c1-11d1-abe1-00a0c905f375), +pointer_default(unique) +] +interface IFilterMapper2 : IUnknown { + import "unknwn.idl"; + + // create or rename ActiveMovie category + HRESULT CreateCategory + ( [in] REFCLSID clsidCategory, + [in] DWORD dwCategoryMerit, + [in] LPCWSTR Description + ); + + HRESULT UnregisterFilter + ( [in] const CLSID *pclsidCategory, + [in] LPCOLESTR szInstance, + [in] REFCLSID Filter // GUID of filter + ); + + // Register a filter, pins, and media types under a category. + HRESULT RegisterFilter + ( [in] REFCLSID clsidFilter, // GUID of the filter + [in] LPCWSTR Name, // Descriptive name for the filter + + // ppMoniker can be null. or *ppMoniker can contain the + // moniker where this filter data will be written; + // *ppMoniker will be set to null on return. or *ppMoniker + // can be null in which case the moniker will be returned + // with refcount. + [in, out AM_ANNOTATION("_Inout_opt_")] IMoniker **ppMoniker, + + // can be null + [in] const CLSID *pclsidCategory, + + // cannot be null + [in AM_ANNOTATION("_In_")] LPCOLESTR szInstance, + + // rest of filter and pin registration + [in] const REGFILTER2 *prf2 + ); + + // Set *ppEnum to be an enumerator for filters matching the + // requirements. + HRESULT EnumMatchingFilters + ( [out AM_ANNOTATION("_Out_")] IEnumMoniker **ppEnum // enumerator returned + , [in] DWORD dwFlags // 0 + , [in] BOOL bExactMatch // don't match wildcards + , [in] DWORD dwMerit // at least this merit needed + , [in] BOOL bInputNeeded // need at least one input pin + , [in] DWORD cInputTypes // Number of input types to match + // Any match is OK + , [size_is(cInputTypes*2) AM_ANNOTATION("_In_reads_opt_(cInputTypes * 2)")] const GUID *pInputTypes // input major+subtype pair array + , [in AM_ANNOTATION("_In_opt_")] const REGPINMEDIUM *pMedIn // input medium + , [in AM_ANNOTATION("_In_opt_")] const CLSID *pPinCategoryIn // input pin category + , [in] BOOL bRender // must the input be rendered? + , [in] BOOL bOutputNeeded // need at least one output pin + , [in] DWORD cOutputTypes // Number of output types to match + // Any match is OK + , [size_is(cOutputTypes*2) AM_ANNOTATION("_In_reads_opt_(cOutputTypes * 2)")] const GUID *pOutputTypes // output major+subtype pair array + , [in AM_ANNOTATION("_In_opt_")] const REGPINMEDIUM *pMedOut // output medium + , [in AM_ANNOTATION("_In_opt_")] const CLSID *pPinCategoryOut // output pin category + ); +} + +[ +AM_LOCAL +object, +uuid(b79bb0b1-33c1-11d1-abe1-00a0c905f375), +pointer_default(unique) +] +interface IFilterMapper3 : IFilterMapper2 { + // new interface to allow creating filters using the mapper's devenum instance + // primarily needed for out-of-proc access to a graph + HRESULT GetICreateDevEnum( [out AM_ANNOTATION("_Out_")] ICreateDevEnum **ppEnum ); +} + +//======================================================================== +//======================================================================== +// Defines IQualityControl interface +// +// Defines quality messages and allows a quality manager to install itself +// as the sink for quality messages. +//======================================================================== +//======================================================================== + +typedef enum tagQualityMessageType { + Famine, + Flood +} QualityMessageType; + +typedef struct tagQuality { + QualityMessageType Type; + long Proportion; // milli-units. 1000 = no change + // for Flood: + // What proportion of the media samples currently + // coming through are required in the future. + // 800 means please drop another 20% + // For Famine: + // How much to "keep in" e.g. 800 means send me + // 20% less e.g. by dropping 20% of the samples. + // 1100 would mean "I'm coping, send me more". + REFERENCE_TIME Late; + // How much you need to catch up by + REFERENCE_TIME TimeStamp; + // The stream time when this was generated (probably + // corresponds to the start time on some sample). +} Quality; + +typedef IQualityControl *PQUALITYCONTROL; + + +[ +AM_LOCAL +object, +uuid(56a868a5-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IQualityControl : IUnknown { + + // Notify the recipient that a quality change is requested. + // pSelf is the IBaseFilter* of the sender. + // this is sent from a filter + // to (the quality manager or) an upstream peer. + HRESULT Notify + ( [in] IBaseFilter * pSelf, + [in] Quality q + ); + + // Notify the recipient that future quality messages are to be sent + // to iqc. If piqc is NULL then quality messages are to default back to + // the upstream peer. + // This is sent from the quality manager to a filter. + // The recipient should hold piqc as a WEAK reference, + // i.e. do not AddRef it, do not Release it. + HRESULT SetSink + ( [in] IQualityControl * piqc + ); +} + +//===================================================================== +//===================================================================== +// Definitions required for overlay transport +//===================================================================== +//===================================================================== + + +// Used to communicate the colour that the IOverlay client wants the window +// painted in so that it can draw directly to the correct clipping region +// A colour key can be described in two alternate ways, the first is by a +// range of one or more (system) palette indices. The second is by defining +// a colour cube with two RGB values, any of which would be acceptable. +// +// The CK values are consistent with GDI PALETTEINDEX and PALETTERGB macros + + +enum { CK_NOCOLORKEY = 0x0, // No color key is required + CK_INDEX = 0x1, // Index into the current system palette + CK_RGB = 0x2 }; // Color key is an RGB value (or range) + +typedef struct tagCOLORKEY { + + DWORD KeyType; // Explains meaning of the structure + DWORD PaletteIndex; // Palette index if available + COLORREF LowColorValue; // Low colour space RGB value + COLORREF HighColorValue; // Defines the high RGB value + +} COLORKEY; + +// When a filter sets up an advise link it can ask that only certain types +// of notifications be sent, for example just palette changes. While this +// doesn't mean that the other notification call backs won't ever be called +// the IOverlay implementation may use this as an efficiency optimisation + +enum { ADVISE_NONE = 0x0, // No notifications required + ADVISE_CLIPPING = 0x1, // Synchronous clip information + ADVISE_PALETTE = 0x2, // Palette change notifications + ADVISE_COLORKEY = 0x4, // Called when colour key changes + ADVISE_POSITION = 0x8, // Likewise when window moves etc + ADVISE_DISPLAY_CHANGE = 0x10 // Called on WM_DISPLAYCHANGE + }; + +const DWORD ADVISE_ALL = ADVISE_CLIPPING | + ADVISE_PALETTE | + ADVISE_COLORKEY | + ADVISE_POSITION; + +const DWORD ADVISE_ALL2 = ADVISE_ALL | + ADVISE_DISPLAY_CHANGE; + +// This isn't defined when you run IDL + +cpp_quote("#ifndef _WINGDI_") + +typedef struct _RGNDATAHEADER { + DWORD dwSize; + DWORD iType; + DWORD nCount; + DWORD nRgnSize; + RECT rcBound; +} RGNDATAHEADER; + +typedef struct _RGNDATA { + RGNDATAHEADER rdh; + char Buffer[1]; +} RGNDATA; + +cpp_quote("#endif") + + +//===================================================================== +//===================================================================== +// Defines IOverlayNotify interface +// +// This interface gives asynchronous notifications of changes to the +// rendering window - such as changes to the exposed window area +//===================================================================== +//===================================================================== + +[ +AM_LOCAL +object, +local, +uuid(56a868a0-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IOverlayNotify : IUnknown { + + // IOverlayNotify methods + + // This notifies the filter of palette changes, the filter should copy + // the array of RGBQUADs if it needs to use them after returning. This + // is not called when the palette is actually changed in the display + // but at a short time after (in sync with WM_PALETTECHANGED messages) + + HRESULT OnPaletteChange( + [in] DWORD dwColors, // Number of colours present + [in] const PALETTEENTRY *pPalette); // Array of palette colours + + // This provides synchronous clip changes so that the client is called + // before the window is moved to freeze the video, and then when the + // window has stabilised it is called again to start playback again. + // If the window rect is all zero then the window is invisible, the + // filter must take a copy of the information if it wants to keep it + + HRESULT OnClipChange( + [in] const RECT *pSourceRect, // Region of video to use + [in] const RECT *pDestinationRect, // Where video goes + [in] const RGNDATA *pRgnData); // Defines clipping information + + HRESULT OnColorKeyChange([in] const COLORKEY *pColorKey); + + // The calls to OnClipChange happen in sync with the window. So it is + // called with an empty clip list before the window moves to freeze + // the video, and then when the window has stabilised it is called + // again with the new clip list. The OnPositionChange callback is for + // overlay cards that don't want the expense of synchronous clipping + // updates and just want to know when the source or destination video + // positions change. They will NOT be called in sync with the window + // but at some point after the window has changed (basicly in time + // with WM_SIZE etc messages received). This is therefore suitable + // for overlay cards that don't inlay their data to the frame buffer + // NOTE the destination is NOT clipped to the visible display area + + HRESULT OnPositionChange([in] const RECT *pSourceRect, + [in] const RECT *pDestinationRect); +} + +typedef IOverlayNotify *POVERLAYNOTIFY; + + +//===================================================================== +//===================================================================== +// Defines IOverlayNotify2 interface +// +// This interface gives asynchronous notifications of changes to the +// rendering window - such as changes to the exposed window area +// This is optionally supported by the advise sink for the purposes +// of accepting OnDisplayChange notification. +//===================================================================== +//===================================================================== + +cpp_quote("#if !defined(HMONITOR_DECLARED) && !defined(HMONITOR) && (WINVER < 0x0500)") +cpp_quote("#define HMONITOR_DECLARED") +cpp_quote("#if 0") +typedef HANDLE HMONITOR; +cpp_quote("#endif") +cpp_quote("DECLARE_HANDLE(HMONITOR);") +cpp_quote("#endif") + +[ +object, +local, +uuid(680EFA10-D535-11D1-87C8-00A0C9223196), +pointer_default(unique) +] +interface IOverlayNotify2 : IOverlayNotify { + + // IOverlayNotify2 methods + + HRESULT OnDisplayChange( // ADVISE_DISPLAY_CHANGE + HMONITOR hMonitor); +} + +typedef IOverlayNotify2 *POVERLAYNOTIFY2; + + +//===================================================================== +//===================================================================== +// Defines IOverlay interface +// +// This interface provides information so that a filter can write direct to +// the frame buffer while placing the video in the correct window position +//===================================================================== +//===================================================================== + +[ +object, +local, +uuid(56a868a1-0ad4-11ce-b03a-0020af0ba770), +pointer_default(unique) +] +interface IOverlay : IUnknown { + + // IOverlay methods + + HRESULT GetPalette( + [out, annotation("_Inout_")] DWORD *pdwColors, // Number of colours present + [out, size_is(,*pdwColors), annotation("_Outptr_result_buffer_to_(*pdwColors, *pdwColors)")] PALETTEENTRY **ppPalette); // Where to put palette data + + HRESULT SetPalette( + [in] DWORD dwColors, // Number of colours present + [in, size_is(dwColors), annotation("_In_reads_(dwColors)")] PALETTEENTRY *pPalette); // Colours to use for palette + + // If you change the colour key through SetColorKey then all the advise + // links will receive an OnColorKeyChange callback with the new colour + + HRESULT GetDefaultColorKey([out, annotation("_Out_")] COLORKEY *pColorKey); + HRESULT GetColorKey([out, annotation("_Out_")] COLORKEY *pColorKey); + HRESULT SetColorKey([in,out] COLORKEY *pColorKey); + HRESULT GetWindowHandle([out, annotation("_Out_")] HWND *pHwnd); + + // The IOverlay implementation allocates the memory for the clipping + // rectangles as it can be variable in length. The filter calling + // this method should free the memory when it is finished with it + + HRESULT GetClipList([out, annotation("_Out_")] RECT *pSourceRect, + [out, annotation("_Out_")] RECT *pDestinationRect, + [out, annotation("_Out_")] RGNDATA **ppRgnData); + + // Returns the current video source and destination + + HRESULT GetVideoPosition([out, annotation("_Out_")] RECT *pSourceRect, + [out, annotation("_Out_")] RECT *pDestinationRect); + + HRESULT Advise( + [in] IOverlayNotify *pOverlayNotify, // Notification interface + [in] DWORD dwInterests); // Callbacks interested in + + HRESULT Unadvise(); // Stop the callbacks now +} + +typedef IOverlay *POVERLAY; + + +//===================================================================== +//===================================================================== +// control related interfaces (others are defined in control.odl) +//===================================================================== +//===================================================================== + + +//===================================================================== +//===================================================================== +// Defines IMediaEventSink interface +// +// Exposed by filtergraph. Called by filters to notify events. Will be +// passed on to application by the IMediaControl event methods. +//===================================================================== +//===================================================================== + +[ + local, + object, + uuid(56a868a2-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IMediaEventSink : IUnknown { + + // notify an event. will be queued, but not delivered to + // the application on this thread. + HRESULT Notify( + [in] long EventCode, + [in] LONG_PTR EventParam1, + [in] LONG_PTR EventParam2 + ); +} + +typedef IMediaEventSink *PMEDIAEVENTSINK; + +//===================================================================== +//===================================================================== +// Defines IFileSourceFilter interface +// +// Exposed by source filters to set the file name and media type. +//===================================================================== +//===================================================================== + +[ + AM_LOCAL + object, + uuid(56a868a6-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IFileSourceFilter : IUnknown { + + // Load a file and assign it the given media type + HRESULT Load( + [in] LPCOLESTR pszFileName, // Pointer to absolute path of file to open + [in, unique AM_ANNOTATION("_In_opt_")] const AM_MEDIA_TYPE *pmt // Media type of file - can be NULL + ); + // Get the currently loaded file name + HRESULT GetCurFile( + [out AM_ANNOTATION("_Out_")] LPOLESTR *ppszFileName, // Pointer to the path for the current file + [out AM_ANNOTATION("_Out_opt_")] AM_MEDIA_TYPE *pmt // Pointer to the media type + ); +} + +typedef IFileSourceFilter *PFILTERFILESOURCE; + +//===================================================================== +//===================================================================== +// Defines IFileSinkFilter interface +// +// Exposed by renderers to set the output file name. +//===================================================================== +//===================================================================== + +[ + AM_LOCAL + object, + uuid(a2104830-7c70-11cf-8bce-00aa00a3f1a6), + pointer_default(unique) +] +interface IFileSinkFilter : IUnknown { + + // Output to this file. default is to open the existing file + HRESULT SetFileName( + [in] LPCOLESTR pszFileName, // Pointer to absolute path of output file + [in, unique AM_ANNOTATION("_In_opt_")] const AM_MEDIA_TYPE *pmt // Media type of file - can be NULL + ); + // Get the current file name + HRESULT GetCurFile( + [out AM_ANNOTATION("_Out_")] LPOLESTR *ppszFileName, // Pointer to the path for the current file + [out AM_ANNOTATION("_Out_")] AM_MEDIA_TYPE *pmt // Pointer to the media type + ); +} + +typedef IFileSinkFilter *PFILTERFILESINK; + +[ + AM_LOCAL + object, + uuid(00855B90-CE1B-11d0-BD4F-00A0C911CE86), + pointer_default(unique) +] +interface IFileSinkFilter2 : IFileSinkFilter { + + HRESULT SetMode( + [in] DWORD dwFlags // AM_FILESINK_FLAGS + ); + + HRESULT GetMode( + [out AM_ANNOTATION("_Out_")] DWORD *pdwFlags // AM_FILESINK_FLAGS + ); +} + +typedef IFileSinkFilter2 *PFILESINKFILTER2; + +typedef enum AM_FILESINK_FLAGS { + + // create a new file + AM_FILE_OVERWRITE = 0x00000001, + +} AM_FILESINK_FLAGS; + + +// +// Intelligent connectivity for filters - an interface supported by +// filter graphs (since it is an extension to IFilterGraph) that supports +// building of graphs by automatic selection and connection of appropriate +// filters + +[ + AM_LOCAL + object, + uuid(56a868a9-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IGraphBuilder : IFilterGraph { + // Connect these two pins directly or indirectly, using transform filters + // if necessary. + + HRESULT Connect + ( [in] IPin * ppinOut, // the output pin + [in] IPin * ppinIn // the input pin + ); + + + // Connect this output pin directly or indirectly, using transform filters + // if necessary to something that will render it. + + HRESULT Render + ( [in] IPin * ppinOut // the output pin + ); + + + // Build a filter graph that will render this file using this play list. + // If lpwstrPlayList is NULL then it will use the default play list + // which will typically render the whole file. + + HRESULT RenderFile + ( [in] LPCWSTR lpcwstrFile, + [in, unique AM_ANNOTATION("_In_opt_")] LPCWSTR lpcwstrPlayList + ); + + + // Add to the filter graph a source filter for this file. This would + // be the same source filter that would be added by calling Render. + // This call gives you more control over building + // the rest of the graph, e.g. AddFilter() + // and then Connect the two. + // The IBaseFilter* interface exposed by the source filter is returned + // in ppFilter, addrefed already for you + // The filter will be known by the name lpcwstrFIlterName + // nn this filter graph, + HRESULT AddSourceFilter + ( [in] LPCWSTR lpcwstrFileName, + [in, unique AM_ANNOTATION("_In_opt_")] LPCWSTR lpcwstrFilterName, + [out AM_ANNOTATION("_Out_")] IBaseFilter* *ppFilter + ); + + + // If this call is made then trace information will be written to the + // file showing the actions taken in attempting to perform an operation. + HRESULT SetLogFile + ( [in] DWORD_PTR hFile // open file handle e.g. from CreateFile + ); + + + // Request that the graph builder should return as soon as possible from + // its current task. + // Note that it is possible fot the following to occur in the following + // sequence: + // Operation begins; Abort is requested; Operation completes normally. + // This would be normal whenever the quickest way to finish an operation + // was to simply continue to the end. + HRESULT Abort(); + + // Return S_OK if the curent operation is to continue, + // return S_FALSE if the current operation is to be aborted. + // This method can be called as a callback from a filter which is doing + // some operation at the request of the graph. + HRESULT ShouldOperationContinue(); + +} + + +// +// New capture graph builder + +[ + AM_LOCAL + object, + uuid(bf87b6e0-8c27-11d0-b3f0-00aa003761c5), + pointer_default(unique) +] +interface ICaptureGraphBuilder : IUnknown { + + // Use this filtergraph + HRESULT SetFiltergraph( + [in] IGraphBuilder *pfg); + + // what filtergraph are you using? + // *ppfg->Release() when you're done with it + HRESULT GetFiltergraph( + [out AM_ANNOTATION("_Out_")] IGraphBuilder **ppfg); + + // creates a rendering section in the filtergraph consisting of a MUX + // of some filetype, and a file writer (and connects them together) + // *ppf->Release() when you're done with it + // *ppSink->Release() when you're done with it + HRESULT SetOutputFileName( + [in] const GUID *pType, // type of file to write, eg. MEDIASUBTYPE_Avi + [in] LPCOLESTR lpstrFile, // filename given to file writer + [out AM_ANNOTATION("_Out_")] IBaseFilter **ppf, // returns pointer to the MUX + [out AM_ANNOTATION("_Out_")] IFileSinkFilter **ppSink);// queried from file writer + + // Looks for an interface on the filter and on the output pin of the given + // category. (Categories: CAPTURE/PREVIEW/VIDEOPORT/VBI etc. or + // NULL for "don't care". + // It will also look upstream and downstream of + // the pin for the interface, to find interfaces on renderers, MUXES, TV + // Tuners, etc. + // Call *ppint->Release() when you're done with it + [local] HRESULT FindInterface( + [in, unique AM_ANNOTATION("_In_opt_")] const GUID *pCategory, // can be NULL for all pins + [in] IBaseFilter *pf, + [in] REFIID riid, + [out AM_ANNOTATION("_Out_")] void **ppint); + [call_as(FindInterface)] HRESULT RemoteFindInterface( + [in, unique AM_ANNOTATION("_In_opt_")] const GUID *pCategory, // can be NULL for all pins + [in] IBaseFilter *pf, + [in] REFIID riid, + [out AM_ANNOTATION("_Out_")] IUnknown **ppint); + + // Connects the pin of the given category of the source filter to the + // rendering filter, optionally through another filter (compressor?) + // For a non-NULL category, it will instantiate and connect additional + // required filters upstream too, like TV Tuners and Crossbars. + // If there is only one output pin on the source, use a NULL + // category. You can also have pSource be a pin + HRESULT RenderStream( + [in AM_ANNOTATION("_In_opt_")] const GUID *pCategory, // can be NULL if only one output pin + [in] IUnknown *pSource, // filter or pin + [in] IBaseFilter *pfCompressor, + [in] IBaseFilter *pfRenderer); // can be NULL + + // Sends IAMStreamControl messages to the pin of the desired category, eg. + // "capture" or "preview" + // REFERENCE_TIME=NULL means NOW + // REFERENCE_TIME=MAX_TIME means never, or cancel previous request + // NULL controls all capture filters in the graph - you will get one + // notification for each filter with a pin of that category found + // returns S_FALSE if stop will be signalled before last sample is + // rendered. + // return a FAILURE code if the filter does not support IAMStreamControl + HRESULT ControlStream( + [in AM_ANNOTATION("_In_opt_")] const GUID *pCategory, + [in] IBaseFilter *pFilter, + [in] REFERENCE_TIME *pstart, + [in] REFERENCE_TIME *pstop, + [in] WORD wStartCookie, // high word reserved + [in] WORD wStopCookie); // high word reserved + + // creates a pre-allocated file of a given size in bytes + HRESULT AllocCapFile( + [in] LPCOLESTR lpstr, + [in] DWORDLONG dwlSize); + + // Copies the valid file data out of the old, possibly huge old capture + // file into a shorter new file. + // Return S_FALSE from your progress function to abort capture, S_OK to + // continue + HRESULT CopyCaptureFile( + [in AM_ANNOTATION("_In_")] LPOLESTR lpwstrOld, + [in AM_ANNOTATION("_In_")] LPOLESTR lpwstrNew, + [in] int fAllowEscAbort, // pressing ESC will abort? + [in] IAMCopyCaptureFileProgress *pCallback); // implement this to + // get progress +} + + +// +// Capture graph builder "CopyCapturedFile" progress callback + +[ + AM_LOCAL + object, + uuid(670d1d20-a068-11d0-b3f0-00aa003761c5), + pointer_default(unique) +] +interface IAMCopyCaptureFileProgress : IUnknown { + + // If you support this interface somewhere, this function will be called + // periodically while ICaptureGraphBuilder::CopyCaptureFile is executing + // to let you know the progress + // + // Return S_OK from this function to continue. Return S_FALSE to abort the + // copy + HRESULT Progress( + [in] int iProgress); // a number between 0 and 100 (%) +} + + +// +// Capture graph builder that can deal with a single filter having more than +// one pin of each category... some new devices can capture both audio and +// video, for example +// + +[ + AM_LOCAL + object, + uuid(93E5A4E0-2D50-11d2-ABFA-00A0C9C6E38D), + pointer_default(unique) +] +interface ICaptureGraphBuilder2 : IUnknown { + + // Use this filtergraph + HRESULT SetFiltergraph( + [in] IGraphBuilder *pfg); + + // what filtergraph are you using? + // *ppfg->Release() when you're done with it + HRESULT GetFiltergraph( + [out AM_ANNOTATION("_Out_")] IGraphBuilder **ppfg); + + // creates a rendering section in the filtergraph consisting of a MUX + // of some filetype, and a file writer (and connects them together) + // *ppf->Release() when you're done with it + // *ppSink->Release() when you're done with it + HRESULT SetOutputFileName( + [in] const GUID *pType, // GUID of MUX filter to use + [in] LPCOLESTR lpstrFile, // filename given to file writer + [out AM_ANNOTATION("_Outptr_")] IBaseFilter **ppf, // returns pointer to the MUX + [out AM_ANNOTATION("_Outptr_opt_")] IFileSinkFilter **ppSink);// queried from file writer + + // Looks for an interface on the filter and on the output pin of the given + // category and type. (Categories: CAPTURE/PREVIEW/VIDEOPORT/VBI etc. or + // NULL for "don't care". Type: MAJORTYPE_Video/Audio etc or NULL) + // !!! Will some filters have >1 capture pin? ie RGB and MPEG? + // It will also look upstream and downstream of + // the pin for the interface, to find interfaces on renderers, MUXES, TV + // Tuners, etc. + // Call *ppint->Release() when you're done with it + [local] HRESULT FindInterface( + [in AM_ANNOTATION("_In_opt_")] const GUID *pCategory, // can be NULL for all pins + [in AM_ANNOTATION("_In_opt_")] const GUID *pType, // Audio/Video/??? or NULL (don't care) + [in] IBaseFilter *pf, + [in] REFIID riid, + [out AM_ANNOTATION("_Out_")] void **ppint); + [call_as(FindInterface)] HRESULT RemoteFindInterface( + [in AM_ANNOTATION("_In_opt_")] const GUID *pCategory, // can be NULL for all pins + [in AM_ANNOTATION("_In_opt_")] const GUID *pType, // Audio/Video/??? or NULL (don't care) + [in] IBaseFilter *pf, + [in] REFIID riid, + [out AM_ANNOTATION("_Out_")] IUnknown **ppint); + + // Connects the pin of the given category and type of the source filter to + // the rendering filter, optionally through another filter (compressor?) + // (Type is a Majortype, like Video or Audio) + // For a non-NULL category, it will instantiate and connect additional + // required filters upstream too, like TV Tuners and Crossbars. + // If there is only one output pin on the source, use a NULL category + // and type. You can also have pSource be a pin + HRESULT RenderStream( + [in AM_ANNOTATION("_In_opt_")] const GUID *pCategory, // can be NULL if only one output pin + [in] const GUID *pType, // Major type (Video/Audio/etc) + [in] IUnknown *pSource, // filter or pin + [in] IBaseFilter *pfCompressor, + [in] IBaseFilter *pfRenderer); // can be NULL + + // Sends IAMStreamControl messages to the pin of the desired category, + // (eg. "capture" or "preview") and of the desired type (eg. VIDEO or AUDIO) + // A category MUST be given. If a filter is given, a type must be too. + // REFERENCE_TIME=NULL means NOW + // REFERENCE_TIME=MAX_TIME means never, or cancel previous request + // NULL controls all capture filters in the graph - you will get one + // notification for each filter with a pin of that category found + // returns S_FALSE if stop will be signalled before last sample is + // rendered. + // return a FAILURE code if the filter does not support IAMStreamControl + HRESULT ControlStream( + [in] const GUID *pCategory, + [in] const GUID *pType, // Major type (Video/Audio/etc) + [in] IBaseFilter *pFilter, + [in AM_ANNOTATION("_In_opt_")] REFERENCE_TIME *pstart, + [in AM_ANNOTATION("_In_opt_")] REFERENCE_TIME *pstop, + [in] WORD wStartCookie, // high word reserved + [in] WORD wStopCookie); // high word reserved + + // creates a pre-allocated file of a given size in bytes + HRESULT AllocCapFile( + [in] LPCOLESTR lpstr, + [in] DWORDLONG dwlSize); + + // Copies the valid file data out of the old, possibly huge old capture + // file into a shorter new file. + // Return S_FALSE from your progress function to abort capture, S_OK to + // continue + HRESULT CopyCaptureFile( + [in AM_ANNOTATION("_In_")] LPOLESTR lpwstrOld, + [in AM_ANNOTATION("_In_")] LPOLESTR lpwstrNew, + [in] int fAllowEscAbort, // pressing ESC will abort? + [in] IAMCopyCaptureFileProgress *pCallback); // implement this to + // get progress + // Helper fn to find a certain pin on a filter. + HRESULT FindPin( + [in] IUnknown *pSource, + [in] PIN_DIRECTION pindir, // input or output? + [in AM_ANNOTATION("_In_opt_")] const GUID *pCategory, // what category? (or NULL) + [in AM_ANNOTATION("_In_opt_")] const GUID *pType, // what Major type (or NULL) + [in] BOOL fUnconnected, // must it be unconnected? + [in] int num, // which pin matching this? (0 based) + [out AM_ANNOTATION("_Out_")] IPin **ppPin); +} + +enum _AM_RENSDEREXFLAGS { + AM_RENDEREX_RENDERTOEXISTINGRENDERERS = 0x01 // Dont add any renderers +}; + +// +// IFilterGraph2 +// +// New methods on for IFilterGraph and IGraphBuilder will have to go here. +// + +[ + AM_LOCAL + object, + uuid(36b73882-c2c8-11cf-8b46-00805f6cef60), + pointer_default(unique) +] +interface IFilterGraph2: IGraphBuilder { + + // Add a Moniker source moniker + HRESULT AddSourceFilterForMoniker( + [in] IMoniker *pMoniker, + [in] IBindCtx *pCtx, + [in, unique] LPCWSTR lpcwstrFilterName, + [out AM_ANNOTATION("_Out_")] IBaseFilter **ppFilter + ); + + // Specify the type for a reconnect + // This is better than Reconnect as sometime the parties to a + // reconnection can't remember what type they'd agreed (!) + HRESULT ReconnectEx + ( [in] IPin * ppin, // the pin to disconnect and reconnect + [in, unique AM_ANNOTATION("_In_opt_")] const AM_MEDIA_TYPE *pmt // the type to reconnect with - can be NULL + ); + + // Render a pin without adding any new renderers + HRESULT RenderEx( [in] IPin *pPinOut, // Pin to render + [in] DWORD dwFlags, // flags + [in, out AM_ANNOTATION("_Reserved_")] DWORD *pvContext // Unused - set to NULL + ); + +#if 0 + // Method looks for a filter which supports the specified interface. If such + // a filter exists, an AddRef()'ed pointer to the requested interface is placed + // in *ppInterface. + // + // *ppInterface will be NULL on return if such a filter could not be found, and + // the method will return E_NOINTERFACE. + // + // pdwIndex is an internal index that is used for obtaining subsequent interfaces. + // *pdwIndex should be initialized to zero. It is set on return to a value that + // allows the implementation of FindFilterInterface to search for further interfaces + // if called again. If no more such interfaces exist, the method will return E_NOINTERFACE. + // + // If pdwIndex is NULL, FindFilterInterface returns an interface only if there is just + // a single filter in the graph that supports the interface. Otherwise it returns + // E_NOINTERFACE. + // + HRESULT FindFilterInterface( [in] REFIID iid, [out AM_ANNOTATION("_Out_")] void ** ppInterface, [in,out] LPDWORD pdwIndex ); + + // Tries to obtain the interface from the filter graph itself. If this fails, + // it attempts to find the unique filter that supports the interface. + // On failure the method will return E_NOINTERFACE. On success, it returns + // S_OK and an AddRef()'ed pointer to the requested interface in *ppInterface. + // + HRESULT FindInterface( [in] REFIID iid, [out AM_ANNOTATION("_Out_")] void ** ppInterface ); + +#endif +} + +// +// IFilterGraph3 +// + +[ + AM_LOCAL + object, + uuid(aaf38154-b80b-422f-91e6-b66467509a07), + pointer_default(unique) +] +interface IFilterGraph3 : IFilterGraph2 { + + // + // SetSyncSourceEx() + // + // SetSyncSourceEx() allows applications to use two different clocks in + // the same filter graph. pClockForMostOfFilterGraph is used by every filter + // in the filter graph except for pFilter. pFilter uses pClockForFilter. + // + HRESULT SetSyncSourceEx( + [in AM_ANNOTATION("_In_")] IReferenceClock *pClockForMostOfFilterGraph, + [in AM_ANNOTATION("_In_")] IReferenceClock *pClockForFilter, + [in AM_ANNOTATION("_In_")] IBaseFilter *pFilter); +} + +// +// StreamBuilder +// aka Graph building with constraints +// aka convergent graphs +// aka Closed captioning + +[ + object, + local, + uuid(56a868bf-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IStreamBuilder : IUnknown { + + // Connect this output pin directly or indirectly, using transform filters + // if necessary to thing(s) that will render it, within this graph + // Move from Initial state to Rendered state. + + HRESULT Render + ( [in] IPin * ppinOut, // the output pin + [in] IGraphBuilder * pGraph // the graph + ); + + // Undo what you did in Render. Return to Initial state. + HRESULT Backout + ( [in] IPin * ppinOut, // the output pin + [in] IGraphBuilder * pGraph // the graph + ); +} + + +// async reader interface - supported by file source filters. Allows +// multiple overlapped reads from different positions + + +[ + AM_LOCAL + object, + uuid(56a868aa-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IAsyncReader : IUnknown +{ + // pass in your preferred allocator and your preferred properties. + // method returns the actual allocator to be used. Call GetProperties + // on returned allocator to learn alignment and prefix etc chosen. + // this allocator will be not be committed and decommitted by + // the async reader, only by the consumer. + // Must call this before calling Request. + HRESULT RequestAllocator( + [in] IMemAllocator* pPreferred, + [in AM_ANNOTATION("_In_")] ALLOCATOR_PROPERTIES* pProps, + [out AM_ANNOTATION("_Out_")] IMemAllocator ** ppActual); + + // queue a request for data. + // media sample start and stop times contain the requested absolute + // byte position (start inclusive, stop exclusive). + // may fail if sample not obtained from agreed allocator. + // may fail if start/stop position does not match agreed alignment. + // samples allocated from source pin's allocator may fail + // GetPointer until after returning from WaitForNext. + // Stop position must be aligned - this means it may exceed duration. + // on completion, stop position will be corrected to unaligned + // actual data. + HRESULT Request( + [in] IMediaSample* pSample, + [in] DWORD_PTR dwUser); // user context + + // block until the next sample is completed or the timeout occurs. + // timeout (millisecs) may be 0 or INFINITE. Samples may not + // be delivered in order. If there is a read error of any sort, a + // notification will already have been sent by the source filter, + // and HRESULT will be an error. + // If ppSample is not null, then a Request completed with the result + // code returned. + HRESULT WaitForNext( + [in] DWORD dwTimeout, + [out AM_ANNOTATION("_Out_opt_")] IMediaSample** ppSample, // completed sample + [out AM_ANNOTATION("_Out_")] DWORD_PTR * pdwUser); // user context + + // sync read of data. Sample passed in must have been acquired from + // the agreed allocator. Start and stop position must be aligned. + // equivalent to a Request/WaitForNext pair, but may avoid the + // need for a thread on the source filter. + HRESULT SyncReadAligned( + [in] IMediaSample* pSample); + + + // sync read. works in stopped state as well as run state. + // need not be aligned. Will fail if read is beyond actual total + // length. + HRESULT SyncRead( + [in] LONGLONG llPosition, // absolute file position + [in] LONG lLength, // nr bytes required + [out, size_is(lLength) AM_ANNOTATION("_Out_writes_bytes_(lLength)")] + BYTE* pBuffer); // write data here + + // return total length of stream, and currently available length. + // reads for beyond the available length but within the total length will + // normally succeed but may block for a long period. + HRESULT Length( + [out AM_ANNOTATION("_Out_")] LONGLONG* pTotal, + [out AM_ANNOTATION("_Out_")] LONGLONG* pAvailable); + + // cause all outstanding reads to return, possibly with a failure code + //(VFW_E_TIMEOUT) indicating they were cancelled. + // Between BeginFlush and EndFlush calls, Request calls will fail and + // WaitForNext calls will always complete immediately. + HRESULT BeginFlush(void); + HRESULT EndFlush(void); +} + + +// interface provided by the filtergraph itself to let other objects +// (especially plug-in distributors, but also apps like graphedt) know +// when the graph has changed. +[ + AM_LOCAL + object, + uuid(56a868ab-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IGraphVersion : IUnknown +{ + // returns the current graph version number + // this is incremented every time there is a change in the + // set of filters in the graph or in their connections + // + // if this is changed since your last enumeration, then re-enumerate + // the graph + HRESULT QueryVersion([AM_ANNOTATION("_Out_")] LONG* pVersion); +} + + + + +// +// interface describing an object that uses resources. +// +// implement if: you request resources using IResourceManager. You will +// need to pass your implementation of this pointer as an in param. +// +// use if: you are a resource manager who implements IResourceManager +[ + local, + object, + uuid(56a868ad-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IResourceConsumer : IUnknown +{ + // you may acquire the resource specified. + // return values: + // S_OK -- I have successfully acquired it + // S_FALSE -- I will acquire it and call NotifyAcquire afterwards + // VFW_S_NOT_NEEDED: I no longer need the resource + // FAILED(hr)-I tried to acquire it and failed. + + HRESULT + AcquireResource( + [in] LONG idResource); + + + + // Please release the resource. + // return values: + // S_OK -- I have released it (and want it again when available) + // S_FALSE -- I will call NotifyRelease when I have released it + // other something went wrong. + HRESULT + ReleaseResource( + [in] LONG idResource); +} + + + +// interface describing a resource manager that will resolve contention for +// named resources. +// +// implement if: you are a resource manager. The filtergraph will be a resource +// manager, internally delegating to the system wide resource manager +// (when there is one) +// +// use if: you need resources that are limited. Use the resource manager to +// resolve contention by registering the resource with this interface, +// and requesting it from this interface whenever needed. +// +// or use if: you detect focus changes which should affect resource usage. +// Notifying change of focus to the resource manager will cause the resource +// manager to switch contended resources to the objects that have the user's +// focus +[ + local, + object, + uuid(56a868ac-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IResourceManager : IUnknown +{ + // tell the manager how many there are of a resource. + // ok if already registered. will take new count. if new count + // is lower, will de-allocate resources to new count. + // + // You get back a token that will be used in further calls. + // + // Passing a count of 0 will eliminate this resource. There is currently + // no defined way to find the id without knowing the count. + // + HRESULT + Register( + [in] LPCWSTR pName, // this named resource + [in] LONG cResource, // has this many instances + [out, annotation("_Out_")] LONG* plToken // token placed here on return + ); + + HRESULT + RegisterGroup( + [in] LPCWSTR pName, // this named resource group + [in] LONG cResource, // has this many resources + [in, size_is(cResource), annotation("_In_reads_(cResource)")] + LONG* palTokens, // these are the contained resources + [out, annotation("_Out_")] LONG* plToken // group resource id put here on return + ); + + // request the use of a given, registered resource. + // possible return values: + // S_OK == yes you can use it now + // S_FALSE == you will be called back when the resource is available + // other - there is an error. + // + // The priority of this request should be affected by the associated + // focus object -- that is, when SetFocus is called for that focus + // object (or a 'related' object) then my request should be put through. + // + // A filter should pass the filter's IUnknown here. The filtergraph + // will match filters to the filtergraph, and will attempt to trace + // filters to common source filters when checking focus objects. + // The Focus object must be valid for the entire lifetime of the request + // -- until you call CancelRequest or NotifyRelease(id, p, FALSE) + HRESULT + RequestResource( + [in] LONG idResource, + [in] IUnknown* pFocusObject, + [in] IResourceConsumer* pConsumer + ); + + + // notify the resource manager that an acquisition attempt completed. + // Call this method after an AcquireResource method returned + // S_FALSE to indicate asynchronous acquisition. + // HR should be S_OK if the resource was successfully acquired, or a + // failure code if the resource could not be acquired. + HRESULT + NotifyAcquire( + [in] LONG idResource, + [in] IResourceConsumer* pConsumer, + [in] HRESULT hr); + + // Notify the resource manager that you have released a resource. Call + // this in response to a ReleaseResource method, or when you have finished + // with the resource. bStillWant should be TRUE if you still want the + // resource when it is next available, or FALSE if you no longer want + // the resource. + HRESULT + NotifyRelease( + [in] LONG idResource, + [in] IResourceConsumer* pConsumer, + [in] BOOL bStillWant); + + // I don't currently have the resource, and I no longer need it. + HRESULT + CancelRequest( + [in] LONG idResource, + [in] IResourceConsumer* pConsumer); + + // Notify the resource manager that a given object has been given the + // user's focus. In ActiveMovie, this will normally be a video renderer + // whose window has received the focus. The filter graph will switch + // contended resources to (in order): + // requests made with this same focus object + // requests whose focus object shares a common source with this + // requests whose focus object shares a common filter graph + // After calling this, you *must* call ReleaseFocus before the IUnknown + // becomes invalid, unless you can guarantee that another SetFocus + // of a different object is done in the meantime. No addref is held. + // + // The resource manager will hold this pointer until replaced or cancelled, + // and will use it to resolve resource contention. It will call + // QueryInterface for IBaseFilter at least and if found will call methods on + // that interface. + HRESULT + SetFocus( + [in] IUnknown* pFocusObject); + + // Sets the focus to NULL if the current focus object is still + // pFocusObject. Call this when + // the focus object is about to be destroyed to ensure that no-one is + // still referencing the object. + HRESULT + ReleaseFocus( + [in] IUnknown* pFocusObject); + + + +// !!! still need +// -- app override (some form of SetPriority) +// -- enumeration and description of resources + +} + + +// +// Interface representing an object that can be notified about state +// and other changes within a filter graph. The filtergraph will call plug-in +// distributors that expose this optional interface so that they can +// respond to appropriate changes. +// +// Implement if: you are a plug-in distributor (your class id is found +// under HKCR\Interface\\Distributor= for some interface). +// +// Use if: you are the filtergraph. +[ + AM_LOCAL + object, + uuid(56a868af-0ad4-11ce-b03a-0020af0ba770), + pointer_default(unique) +] +interface IDistributorNotify : IUnknown +{ + // called when graph is entering stop state. Called before + // filters are stopped. + HRESULT Stop(void); + + // called when graph is entering paused state, before filters are + // notified + HRESULT Pause(void); + + // called when graph is entering running state, before filters are + // notified. tStart is the stream-time offset parameter that will be + // given to each filter's IBaseFilter::Run method. + HRESULT Run(REFERENCE_TIME tStart); + + // called when the graph's clock is changing, with the new clock. Addref + // the clock if you hold it beyond this method. Called before + // the filters are notified. + HRESULT SetSyncSource( + [in] IReferenceClock * pClock); + + // called when the set of filters or their connections has changed. + // Called on every AddFilter, RemoveFilter or ConnectDirect (or anything + // that will lead to one of these). + // You don't need to rebuild your list of interesting filters at this point + // but you should release any refcounts you hold on any filters that + // have been removed. + HRESULT NotifyGraphChange(void); +} + +typedef enum AM_STREAM_INFO_FLAGS { + AM_STREAM_INFO_START_DEFINED = 0x00000001, + AM_STREAM_INFO_STOP_DEFINED = 0x00000002, + AM_STREAM_INFO_DISCARDING = 0x00000004, + AM_STREAM_INFO_STOP_SEND_EXTRA = 0x00000010 +} AM_STREAM_INFO_FLAGS; + +// Stream information +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4820) // Disable C4820: padding after data member") +cpp_quote("#endif") +typedef struct AM_STREAM_INFO { + REFERENCE_TIME tStart; + REFERENCE_TIME tStop; + DWORD dwStartCookie; + DWORD dwStopCookie; + DWORD dwFlags; +} AM_STREAM_INFO; +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(pop)") +cpp_quote("#endif") + +// +// IAMStreamControl +// + +[ + AM_LOCAL + object, + uuid(36b73881-c2c8-11cf-8b46-00805f6cef60), + pointer_default(unique) +] +interface IAMStreamControl : IUnknown +{ + // The REFERENCE_TIME pointers may be null, which + // indicates immediately. If the pointer is non-NULL + // and dwCookie is non-zero, then pins should send + // EC_STREAM_CONTROL_STOPPED / EC_STREAM_CONTROL_STARTED + // with an IPin pointer and the cookie, thus allowing + // apps to tie the events back to their requests. + // If either dwCookies is zero, or the pointer is null, + // then no event is sent. + + // If you have a capture pin hooked up to a MUX input pin and they + // both support IAMStreamControl, you'll want the MUX to signal the + // stop so you know the last frame was written out. In order for the + // MUX to know it's finished, the capture pin will have to send one + // extra sample after it was supposed to stop, so the MUX can trigger + // off that. So you would set bSendExtra to TRUE for the capture pin + // Leave it FALSE in all other cases. + + HRESULT StartAt( [in AM_ANNOTATION("_In_opt_")] const REFERENCE_TIME * ptStart, + [in] DWORD dwCookie ); + HRESULT StopAt( [in AM_ANNOTATION("_In_opt_")] const REFERENCE_TIME * ptStop, + [in] BOOL bSendExtra, + [in] DWORD dwCookie ); + HRESULT GetInfo( [out AM_ANNOTATION("_Out_")] AM_STREAM_INFO *pInfo); +} + + + +// +// ISeekingPassThru +// + +[ + AM_LOCAL + object, + uuid(36b73883-c2c8-11cf-8b46-00805f6cef60), + pointer_default(unique) +] +interface ISeekingPassThru : IUnknown +{ + HRESULT Init( [in] BOOL bSupportRendering, + [in] IPin *pPin); +} + + + +// +// IAMStreamConfig - pin interface +// + +// A capture filter or compression filter's output pin +// supports this interface - no matter what data type you produce. + +// This interface can be used to set the output format of a pin (as an +// alternative to connecting the pin using a specific media type). +// After setting an output format, the pin will use that format +// the next time it connects to somebody, so you can just Render that +// pin and get a desired format without using Connect(CMediaType) +// Your pin should do that by ONLY OFFERING the media type set in SetFormat +// in its enumeration of media types, and no others. This will ensure that +// that format is indeed used for connection (or at least offer it first). +// An application interested in enumerating accepted mediatypes may have to +// do so BEFORE calling SetFormat. + +// But this interface's GetStreamCaps function can get more information +// about accepted media types than the traditional way of enumerating a pin's +// media types, so it should typically be used instead. +// GetStreamCaps gets information about the kinds of formats allowed... how +// it can stretch and crop, and the frame rate and data rates allowed (for +// video) + +// VIDEO EXAMPLE +// +// GetStreamCaps returns a whole array of {MediaType, Capabilities}. +// Let's say your capture card supports JPEG anywhere between 160x120 and +// 320x240, and also the size 640x480. Also, say it supports RGB24 at +// resolutions between 160x120 and 320x240 but only multiples of 8. You would +// expose these properties by offering a media type of 320 x 240 JPEG +// (if that is your default or preferred size) coupled with +// capabilities saying minimum 160x120 and maximum 320x240 with granularity of +// 1. The next pair you expose is a media type of 640x480 JPEG coupled with +// capabilities of min 640x480 max 640x480. The third pair is media type +// 320x240 RGB24 with capabilities min 160x120 max 320x240 granularity 8. +// In this way you can expose almost every quirk your card might have. +// An application interested in knowing what compression formats you provide +// can get all the pairs and make a list of all the unique sub types of the +// media types. +// +// If a filter's output pin is connected with a media type that has rcSource +// and rcTarget not empty, it means the filter is being asked to stretch the +// rcSource sub-rectangle of its InputSize (the format of the input pin for +// a compressor, and the largest bitmap a capture filter can generate with +// every pixel unique) into the rcTarget sub-rectangle of its output format. +// For instance, if a video compressor has as input 160x120 RGB, and as output +// 320x240 MPEG with an rcSource of (10,10,20,20) and rcTarget of (0,0,100,100) +// this means the compressor is being asked to take a 10x10 piece of the 160x120 +// RGB bitmap, and make it fill the top 100x100 area of a 320x240 bitmap, +// leaving the rest of the 320x240 bitmap untouched. +// A filter does not have to support this and can fail to connect with a +// media type where rcSource and rcTarget are not empty. +// +// Your output pin is connected to the next filter with a certain media +// type (either directly or using the media type passed by SetFormat), +// and you need to look at the AvgBytesPerSecond field of the format +// of that mediatype to see what data rate you are being asked to compress +// the video to, and use that data rate. Using the number of frames per +// second in AvgTimePerFrame, you can figure out how many bytes each frame +// is supposed to be. You can make it smaller, but NEVER EVER make a bigger +// data rate. For a video compressor, your input pin's media type tells you +// the frame rate (use that AvgTimePerFrame). For a capture filter, the +// output media type tells you, so use that AvgTimePerFrame. +// +// The cropping rectangle described below is the same as the rcSrc of the +// output pin's media type. +// +// The output rectangle described below is the same of the width and height +// of the BITMAPINFOHEADER of the media type of the output pin's media type + + +// AUDIO EXAMPLE +// +// This API can return an array of pairs of (media type, capabilities). +// This can be used to expose all kinds of wierd capabilities. Let's say you +// do any PCM frequency from 11,025 to 44,100 at 8 or 16 bit mono or +// stereo, and you also do 48,000 16bit stereo as a special combination. +// You would expose 3 pairs. The first pair would have Min Freq of 11025 and +// Max Freq of 44100, with MaxChannels=2 and MinBits=8 and MaxBits=8 for the +// capabilites structure, and a media type of anything you like, maybe +// 22kHz, 8bit stereo as a default. +// The 2nd pair would be the same except for MinBits=16 and MaxBits=16 in +// the capabilities structure and the media type could be something like +// 44kHz, 16bit stereo as a default (the media type in the pair should always +// be something legal as described by the capabilities structure... the +// structure tells you how you can change the media type to produce other +// legal media types... for instance changing 44kHz to 29010Hz would be legal, +// but changing bits from 16 to 14 would not be.) +// The 3rd pair would be MinFreq=48000 MaxFreq=48000 MaxChannels=2 +// MinBits=16 and MaxBits=16, and the media type would be 48kHz 16bit stereo. +// You can also use the Granularity elements of the structure (like the example +// for video) if you support values that multiples of n, eg. you could say +// minimum bits per sample 8, max 16, and granularity 8 to describe doing +// either 8 or 16 bit all in one structure +// +// If you support non-PCM formats, the media type returned in GetStreamCaps +// can show which non-PCM formats you support (with a default sample rate, +// bit rate and channels) and the capabilities structure going with that +// media type can describe which other sample rates, bit rates and channels +// you support. + +[ + AM_LOCAL + object, + uuid(C6E13340-30AC-11d0-A18C-00A0C9118956), + pointer_default(unique) +] +interface IAMStreamConfig : IUnknown +{ + + // this is the structure returned by a VIDEO filter + // +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4820) // Disable C4820: padding after data member") +cpp_quote("#endif") + typedef struct _VIDEO_STREAM_CONFIG_CAPS { + + GUID guid; // will be MEDIATYPE_Video + + // the logical or of all the AnalogVideoStandard's supported + // typically zero if not supported + ULONG VideoStandard; + + // the inherent size of the incoming signal... taken from the input + // pin for a compressor, or the largest size a capture filter can + // digitize the signal with every pixel still unique + SIZE InputSize; + + // The input of a compressor filter may have to be connected for these + // to be known + + // smallest rcSrc cropping rect allowed + SIZE MinCroppingSize; + // largest rcSrc cropping rect allowed + SIZE MaxCroppingSize; + // granularity of cropping size - eg only widths a multiple of 4 allowed + int CropGranularityX; + int CropGranularityY; + // alignment of cropping rect - eg rect must start on multiple of 4 + int CropAlignX; + int CropAlignY; + + // The input of a compressor filter may have to be connected for these + // to be known + + // smallest bitmap this pin can produce + SIZE MinOutputSize; + // largest bitmap this pin can produce + SIZE MaxOutputSize; + // granularity of output bitmap size + int OutputGranularityX; + int OutputGranularityY; + // !!! what about alignment of rcTarget inside BIH if different? + + // how well can you stretch in the x direction? 0==not at all + // 1=pixel doubling 2=interpolation(2 taps) 3=better interpolation + // etc. + int StretchTapsX; + int StretchTapsY; + // how well can you shrink in the x direction? 0==not at all + // 1=pixel doubling 2=interpolation(2 taps) 3=better interpolation + // etc. + int ShrinkTapsX; + int ShrinkTapsY; + + // CAPTURE filter only - what frame rates are allowed? + LONGLONG MinFrameInterval; + LONGLONG MaxFrameInterval; + + // what data rates can this pin produce? + LONG MinBitsPerSecond; + LONG MaxBitsPerSecond; + } VIDEO_STREAM_CONFIG_CAPS; +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(pop)") +cpp_quote("#endif") + + + // this is the structure returned by an AUDIO filter + // + typedef struct _AUDIO_STREAM_CONFIG_CAPS { + + GUID guid; // will be MEDIATYPE_Audio + ULONG MinimumChannels; + ULONG MaximumChannels; + ULONG ChannelsGranularity; + ULONG MinimumBitsPerSample; + ULONG MaximumBitsPerSample; + ULONG BitsPerSampleGranularity; + ULONG MinimumSampleFrequency; + ULONG MaximumSampleFrequency; + ULONG SampleFrequencyGranularity; + } AUDIO_STREAM_CONFIG_CAPS; + + // - only allowed when pin is not streaming, else the call will FAIL + // - If your output pin is not yet connected, and you can + // connect your output pin with this media type, you should + // succeed the call, and start offering it first (enumerate as format#0) + // from GetMediaType so that this format will be used to connect with + // when you do connect to somebody + // - if your output pin is already connected, and you can provide this + // type, reconnect your pin. If the other pin can't accept it, FAIL + // this call and leave your connection alone. + HRESULT SetFormat( + [in] AM_MEDIA_TYPE *pmt); + + // the format it's connected with, or will connect with + // the application is responsible for calling DeleteMediaType(*ppmt); + HRESULT GetFormat( + [out AM_ANNOTATION("_Out_")] AM_MEDIA_TYPE **ppmt); + + // how many different Stream Caps structures are there? + // also, how big is the stream caps structure? + HRESULT GetNumberOfCapabilities( + [out AM_ANNOTATION("_Out_")] int *piCount, + [out AM_ANNOTATION("_Out_")] int *piSize); // pSCC of GetStreamCaps needs to be this big + + // - gets one of the pairs of {Mediatype, Caps} + // - return S_FALSE if iIndex is too high + // - the application is responsible for calling DeleteMediaType(*ppmt); + // - the first thing pSCC points to is a GUID saying MEDIATYPE_Video + // or MEDIATYPE_Audio, so you can tell if you have a pointer to a + // VIDEO_STREAM_CONFIG_CAPS or an AUDIO_STREAM_CONFIG_CAPS structure + // There could potentially be many more possibilities other than video + // or audio. + HRESULT GetStreamCaps( + [in] int iIndex, // 0 to #caps-1 + [out AM_ANNOTATION("_Out_")] AM_MEDIA_TYPE **ppmt, + [out AM_ANNOTATION("_Out_")] BYTE *pSCC); + +} + + + +// Interface to control interleaving of different streams in one file +[ +AM_LOCAL +object, +uuid(BEE3D220-157B-11d0-BD23-00A0C911CE86), +pointer_default(unique) +] +interface IConfigInterleaving : IUnknown +{ + import "unknwn.idl"; + + typedef enum InterleavingMode + { + // uninterleaved - samples written out in the order they + // arrive. + INTERLEAVE_NONE, + + // approximate interleaving with less overhead for video + // capture + INTERLEAVE_CAPTURE, + + // full, precise interleaving. slower. + INTERLEAVE_FULL, + + // samples written out in the order they arrive. writes are + // buffered + INTERLEAVE_NONE_BUFFERED + + } InterleavingMode; + + HRESULT put_Mode( + [in] InterleavingMode mode + ); + + HRESULT get_Mode( + [out AM_ANNOTATION("_Out_")] InterleavingMode *pMode + ); + + HRESULT put_Interleaving( + [in] const REFERENCE_TIME *prtInterleave, + [in] const REFERENCE_TIME *prtPreroll + ); + + HRESULT get_Interleaving( + [out AM_ANNOTATION("_Out_")] REFERENCE_TIME *prtInterleave, + [out AM_ANNOTATION("_Out_")] REFERENCE_TIME *prtPreroll + ); +} + +// Interface to control the AVI mux +[ +AM_LOCAL +object, +uuid(5ACD6AA0-F482-11ce-8B67-00AA00A3F1A6), +pointer_default(unique) +] +interface IConfigAviMux : IUnknown +{ + import "unknwn.idl"; + + // control whether the AVI mux adjusts the frame rate or audio + // sampling rate for drift when the file is closed. -1 to disables + // this behavior. + HRESULT SetMasterStream([in] LONG iStream); + HRESULT GetMasterStream([out AM_ANNOTATION("_Out_")] LONG *pStream); + + // control whether the AVI mux writes out an idx1 index chunk for + // compatibility with older AVI players. + HRESULT SetOutputCompatibilityIndex([in] BOOL fOldIndex); + HRESULT GetOutputCompatibilityIndex([out AM_ANNOTATION("_Out_")] BOOL *pfOldIndex); +} + + //--------------------------------------------------------------------- + // CompressionCaps enum + //--------------------------------------------------------------------- + + // This tells you which features of IAMVideoCompression are supported + + // CanCrunch means that it can compress video to a specified data rate + // If so, then the output pin's media type will contain that data rate + // in the format's AvgBytesPerSecond field, and that should be used. + + typedef enum CompressionCaps + { + CompressionCaps_CanQuality = 0x01, + CompressionCaps_CanCrunch = 0x02, + CompressionCaps_CanKeyFrame = 0x04, + CompressionCaps_CanBFrame = 0x08, + CompressionCaps_CanWindow = 0x10 + } CompressionCaps; + + + + //--------------------------------------------------------------------- + // IAMVideoCompression interface + // + // Control compression parameters - pin interface + //--------------------------------------------------------------------- + + // This interface is implemented by the output pin of a video capture + // filter or video compressor that provides video data + + // You use this interface to control how video is compressed... how + // many keyframes, etc., and to find information like capabilities and + // the description of this compressor + + [ + AM_LOCAL + object, + uuid(C6E13343-30AC-11d0-A18C-00A0C9118956), + pointer_default(unique) + ] + interface IAMVideoCompression : IUnknown + { + // - Only valid if GetInfo's pCapabilities sets + // CompressionCaps_CanKeyFrame + // - KeyFrameRate < 0 means use the compressor default + // - KeyFrames == 0 means only the first frame is a key + HRESULT put_KeyFrameRate ( + [in] long KeyFrameRate); + + HRESULT get_KeyFrameRate ( + [out AM_ANNOTATION("_Out_")] long * pKeyFrameRate); + + // - Only valid if GetInfo's pCapabilities sets + // CompressionCaps_CanBFrame + // - If keyframes are every 10, and there are 3 P Frames per key, + // they will be spaced evenly between the key frames and the other + // 6 frames will be B frames + // - PFramesPerKeyFrame < 0 means use the compressor default + HRESULT put_PFramesPerKeyFrame ( + [in] long PFramesPerKeyFrame); + + HRESULT get_PFramesPerKeyFrame ( + [out AM_ANNOTATION("_Out_")] long * pPFramesPerKeyFrame); + + // - Only valid if GetInfo's pCapabilities sets + // CompressionCaps_CanQuality + // - Controls image quality + // - If you are compressing to a fixed data rate, a high quality + // means try and use all of the data rate, and a low quality means + // feel free to use much lower than the data rate if you want to. + // - Quality < 0 means use the compressor default + HRESULT put_Quality ( + [in] double Quality); + + HRESULT get_Quality ( + [out AM_ANNOTATION("_Out_")] double * pQuality); + + // If you have set a data rate of 100K/sec on a 10fps movie, that + // will normally mean each frame must be <=10K. But a window size + // means every consecutive n frames must average to the data rate, + // but an individual frame (if n > 1) is allowed to exceed the + // frame size suggested by the data rate + HRESULT put_WindowSize ( + [in] DWORDLONG WindowSize); + + HRESULT get_WindowSize ( + [out AM_ANNOTATION("_Out_")] DWORDLONG * pWindowSize); + + // - pszVersion might be "Version 2.1.0" + // - pszDescription might be "Danny's awesome video compressor" + // - pcbVersion and pcbDescription will be filled in with the + // required length if they are too short + // - *pCapabilities is a logical OR of some CompressionCaps flags + HRESULT GetInfo( + [out, size_is(*pcbVersion) AM_ANNOTATION("_Out_writes_bytes_opt_(*pcbVersion)")] LPWSTR pszVersion, + [in,out AM_ANNOTATION("_Inout_opt_")] int *pcbVersion, + [out, size_is(*pcbDescription) AM_ANNOTATION("_Out_writes_bytes_opt_(*pcbDescription)")] LPWSTR pszDescription, + [in,out AM_ANNOTATION("_Inout_opt_")] int *pcbDescription, + [out AM_ANNOTATION("_Out_opt_")] long *pDefaultKeyFrameRate, + [out AM_ANNOTATION("_Out_opt_")] long *pDefaultPFramesPerKey, + [out AM_ANNOTATION("_Out_opt_")] double *pDefaultQuality, + [out AM_ANNOTATION("_Out_opt_")] long *pCapabilities //CompressionCaps + ); + + // - this means when this frame number comes along after the graph + // is running, make it a keyframe even if you weren't going to + HRESULT OverrideKeyFrame( + [in] long FrameNumber + ); + + // - Only valid if GetInfo's pCapabilities sets + // CompressionCaps_CanCrunch + // - this means when this frame number comes along after the graph + // is running, make it this many bytes big instead of whatever size + // you were going to make it. + HRESULT OverrideFrameSize( + [in] long FrameNumber, + [in] long Size + ); + + } + + //--------------------------------------------------------------------- + // VfwCaptureDialogs enum + //--------------------------------------------------------------------- + + typedef enum VfwCaptureDialogs + { + VfwCaptureDialog_Source = 0x01, + VfwCaptureDialog_Format = 0x02, + VfwCaptureDialog_Display = 0x04 + } VfwCaptureDialogs; + + + //--------------------------------------------------------------------- + // VfwCompressDialogs enum + //--------------------------------------------------------------------- + + typedef enum VfwCompressDialogs + { + VfwCompressDialog_Config = 0x01, + VfwCompressDialog_About = 0x02, + // returns S_OK if the dialog exists and can be shown, else S_FALSE + VfwCompressDialog_QueryConfig = 0x04, + VfwCompressDialog_QueryAbout = 0x08 + } VfwCompressDialogs; + + + //--------------------------------------------------------------------- + // IAMVfwCaptureDialogs - filter interface + // + // Show a VfW capture driver dialog - SOURCE, FORMAT, or DISPLAY + //--------------------------------------------------------------------- + + // This interface is supported only by Microsoft's Video For Windows + // capture driver Capture Filter. It allows an application to bring up + // one of the 3 driver dialogs that VfW capture drivers have. + + [ + object, + local, + uuid(D8D715A0-6E5E-11D0-B3F0-00AA003761C5), + pointer_default(unique) + ] + interface IAMVfwCaptureDialogs : IUnknown + { + HRESULT HasDialog( + [in] int iDialog // VfwCaptureDialogs enum + ); + + HRESULT ShowDialog( + [in] int iDialog, // VfwCaptureDialogs enum + [in] HWND hwnd + ); + + HRESULT SendDriverMessage( + [in] int iDialog, // VfwCaptureDialogs enum + [in] int uMsg, + [in] long dw1, + [in] long dw2 + ); + + // - iDialog can be one of the VfwCaptureDialogs enums + // - HasDialog returns S_OK if it has the dialog, else S_FALSE + // - ShowDialog can only be called when not streaming or when another + // dialog is not already up + // - SendDriverMessage can send a private message to the capture driver. + // USE IT AT YOUR OWN RISK! + } + + //--------------------------------------------------------------------- + // IAMVfwCompressDialogs - filter interface + // + // Show a VfW codec driver dialog - CONFIG or ABOUT + //--------------------------------------------------------------------- + + // This interface is supported only by Microsoft's ICM Compressor filter + // (Co). It allows an application to bring up either the Configure or + // About dialogs for the ICM codec that it is currently using. + + [ + object, + local, + uuid(D8D715A3-6E5E-11D0-B3F0-00AA003761C5), + pointer_default(unique) + ] + interface IAMVfwCompressDialogs : IUnknown + { + + // Bring up a dialog for this codec + HRESULT ShowDialog( + [in] int iDialog, // VfwCompressDialogs enum + [in] HWND hwnd + ); + + // Calls ICGetState and gives you the result + HRESULT GetState( + [out, size_is(*pcbState), annotation("_Out_writes_bytes_to_(*pcbState, *pcbState)")] LPVOID pState, + [in, out, annotation("_Inout_")] int *pcbState + ); + + // Calls ICSetState + HRESULT SetState( + [in, size_is(cbState), annotation("_In_reads_bytes_(cbState)")] LPVOID pState, + [in] int cbState + ); + + // Send a codec specific message + HRESULT SendDriverMessage( + [in] int uMsg, + [in] long dw1, + [in] long dw2 + ); + + // - iDialog can be one of the VfwCaptureDialogs enums + // - ShowDialog can only be called when not streaming or when no other + // dialog is up already + // - an application can call GetState after ShowDialog(CONFIG) to + // see how the compressor was configured and next time the graph + // is used, it can call SetState with the data it saved to return + // the codec to the state configured by the dialog box from last time + // - GetState with a NULL pointer returns the size needed + // - SendDriverMessage can send a private message to the codec. + // USE IT AT YOUR OWN RISK! + } + + + //--------------------------------------------------------------------- + // IAMDroppedFrames interface + // + // Report status of capture - pin interface + //--------------------------------------------------------------------- + + // A capture filter's video output pin supports this. It reports + // how many frames were not sent (dropped), etc. + + // Every time your filter goes from STOPPED-->PAUSED, you reset all your + // counts to zero. + + // An app may call this all the time while you are capturing to see how + // capturing is going. MAKE SURE you always return as current information + // as possible while you are running. + + // When your capture filter starts running, it starts by sending frame 0, + // then 1, 2, 3, etc. The time stamp of each frame sent should correspond + // to the graph clock's time when the image was digitized. The end time + // is the start time plus the duration of the video frame. + // You should also set the MediaTime of each sample (SetMediaTime) as well. + // This should be the frame number ie (0,1) (1,2) (2,3). + // If a frame is dropped, a downstream filter will be able to tell easily + // not by looking for gaps in the regular time stamps, but by noticing a + // frame number is missing (eg. (1,2) (2,3) (4,5) (5,6) means frame 3 + // was dropped. + + // Using the info provided by this interface, an application can figure out + // the number of frames dropped, the frame rate achieved (the length of + // time the graph was running divided by the number of frames not dropped), + // and the data rate acheived (the length of time the graph was running + // divided by the average frame size). + + // If your filter is running, then paused, and then run again, you need + // to continue to deliver frames as if it was never paused. The first + // frame after the second RUN cannot be time stamped earlier than the last + // frame sent before the pause. + + // Your filter must always increment the MediaTime of each sample sent. + // Never send the same frame # twice, and never go back in time. The + // regular time stamp of a sample can also never go back in time. + + [ + AM_LOCAL + object, + uuid(C6E13344-30AC-11d0-A18C-00A0C9118956), + pointer_default(unique) + ] + interface IAMDroppedFrames : IUnknown + { + // Get the number of dropped frames + HRESULT GetNumDropped( + [out AM_ANNOTATION("_Out_")] long * plDropped + + ); + + //Get the number of non-dropped frames + HRESULT GetNumNotDropped( + [out AM_ANNOTATION("_Out_")] long * plNotDropped + + ); + + // - plArray points to an array of lSize longs. The filter will + // fill it with the frame number of the first lSize frames dropped. + // A filter may not have bothered to remember as many as you asked + // for, so it will set *plNumCopied to the number of frames it filled + // in. + HRESULT GetDroppedInfo( + [in] long lSize, + [out AM_ANNOTATION("_Out_")] long * plArray, + [out AM_ANNOTATION("_Out_")] long * plNumCopied + ); + + // - This is the average size of the frames it didn't drop (in bytes) + HRESULT GetAverageFrameSize( + [out AM_ANNOTATION("_Out_")] long * plAverageSize + + ); + + } + + + + cpp_quote("#define AMF_AUTOMATICGAIN -1.0") + + //--------------------------------------------------------------------- + // IAMAudioInputMixer interface + // + // Sets the recording levels, pan and EQ for the audio card inputs + //--------------------------------------------------------------------- + + // This interface is implemented by each input pin of an audio capture + // filter, to tell it what level, panning, and EQ to use for each input. + // The name of each pin will reflect the type of input, eg. "Line input 1" + // or "Mic". An application uses the pin names to decide how it wants to + // set the recording levels + + // This interface can also be supported by the audio capture filter itself + // to control to overall record level and panning after the mix + + [ + AM_LOCAL + object, + uuid(54C39221-8380-11d0-B3F0-00AA003761C5), + pointer_default(unique) + ] + interface IAMAudioInputMixer : IUnknown + { + // This interface is only supported by the input pins, not the filter + // If disabled, this channel will not be mixed in as part of the + // recorded signal. + HRESULT put_Enable ( + [in] BOOL fEnable); // TRUE=enable FALSE=disable + + //Is this channel enabled? + HRESULT get_Enable ( + [out AM_ANNOTATION("_Out_")] BOOL *pfEnable); + + // When set to mono mode, making a stereo recording of this channel + // will have both channels contain the same data... a mixture of the + // left and right signals + HRESULT put_Mono ( + [in] BOOL fMono); // TRUE=mono FALSE=multi channel + + //all channels combined into a mono signal? + HRESULT get_Mono ( + [out AM_ANNOTATION("_Out_")] BOOL *pfMono); + + // !!! WILL CARDS BE ABLE TO BOOST THE GAIN? + //Set the record level for this channel + HRESULT put_MixLevel ( + [in] double Level); // 0 = off, 1 = full (unity?) volume + // AMF_AUTOMATICGAIN, if supported, + // means automatic + + //Get the record level for this channel + HRESULT get_MixLevel ( + [out AM_ANNOTATION("_Out_")] double *pLevel); + + // For instance, when panned full left, and you make a stereo recording + // of this channel, you will record a silent right channel. + HRESULT put_Pan ( + [in] double Pan); // -1 = full left, 0 = centre, 1 = right + + //Get the pan for this channel + HRESULT get_Pan ( + [out AM_ANNOTATION("_Out_")] double *pPan); + + // Boosts the bass of low volume signals before they are recorded + // to compensate for the fact that your ear has trouble hearing quiet + // bass sounds + HRESULT put_Loudness ( + [in] BOOL fLoudness);// TRUE=on FALSE=off + + HRESULT get_Loudness ( + [out AM_ANNOTATION("_Out_")] BOOL *pfLoudness); + + // boosts or cuts the treble of the signal before it's recorded by + // a certain amount of dB + HRESULT put_Treble ( + [in] double Treble); // gain in dB (-ve = attenuate) + + //Get the treble EQ for this channel + HRESULT get_Treble ( + [out AM_ANNOTATION("_Out_")] double *pTreble); + + // This is the maximum value allowed in put_Treble. ie 6.0 means + // any value between -6.0 and 6.0 is allowed + HRESULT get_TrebleRange ( + [out AM_ANNOTATION("_Out_")] double *pRange); // largest value allowed + + // boosts or cuts the bass of the signal before it's recorded by + // a certain amount of dB + HRESULT put_Bass ( + [in] double Bass); // gain in dB (-ve = attenuate) + + // Get the bass EQ for this channel + HRESULT get_Bass ( + [out AM_ANNOTATION("_Out_")] double *pBass); + + // This is the maximum value allowed in put_Bass. ie 6.0 means + // any value between -6.0 and 6.0 is allowed + HRESULT get_BassRange ( + [out AM_ANNOTATION("_Out_")] double *pRange); // largest value allowed + + } + + + //--------------------------------------------------------------------- + // IAMBufferNegotiation interface + // + // Tells a pin what kinds of buffers to use when connected + //--------------------------------------------------------------------- + + // This interface can be implemented by any pin that will connect to + // another pin using IMemInputPin. All capture filters should support + // this interface. + + // SuggestAllocatorProperties is a way for an application to get + // in on the buffer negotiation process for a pin. This pin will use + // the numbers given to it by the application as its request to the + // allocator. An application can use a negative number for any element + // in the ALLOCATOR_PROPERTIES to mean "don't care". An application must + // call this function before the pin is connected, or it will be too late + // To ensure that an application gets what it wants, it would be wise to + // call this method on both pins being connected together, so the other + // pin doesn't overrule the application's request. + + // GetAllocatorProperties can only be called after a pin is connected and + // it returns the properties of the current allocator being used + + [ + AM_LOCAL + object, + uuid(56ED71A0-AF5F-11D0-B3F0-00AA003761C5), + pointer_default(unique) + ] + interface IAMBufferNegotiation : IUnknown + { + HRESULT SuggestAllocatorProperties ( + [in] const ALLOCATOR_PROPERTIES *pprop); + + HRESULT GetAllocatorProperties ( + [out AM_ANNOTATION("_Out_")] ALLOCATOR_PROPERTIES *pprop); + + } + + +#include + + cpp_quote("#define AnalogVideo_NTSC_Mask 0x00000007") + cpp_quote("#define AnalogVideo_PAL_Mask 0x00100FF0") + cpp_quote("#define AnalogVideo_SECAM_Mask 0x000FF000") + + + //--------------------------------------------------------------------- + // VideoCopyProtectionType enum + //--------------------------------------------------------------------- + + typedef enum VideoCopyProtectionType + { + VideoCopyProtectionMacrovisionBasic, + VideoCopyProtectionMacrovisionCBI + } VideoCopyProtectionType; + + //--------------------------------------------------------------------- + // PhysicalConnectorType enum + //--------------------------------------------------------------------- + + typedef enum tagPhysicalConnectorType + { + PhysConn_Video_Tuner = 1, + PhysConn_Video_Composite, + PhysConn_Video_SVideo, + PhysConn_Video_RGB, + PhysConn_Video_YRYBY, + PhysConn_Video_SerialDigital, + PhysConn_Video_ParallelDigital, + PhysConn_Video_SCSI, + PhysConn_Video_AUX, + PhysConn_Video_1394, + PhysConn_Video_USB, + PhysConn_Video_VideoDecoder, + PhysConn_Video_VideoEncoder, + PhysConn_Video_SCART, + PhysConn_Video_Black, + + + PhysConn_Audio_Tuner = 0x1000, + PhysConn_Audio_Line, + PhysConn_Audio_Mic, + PhysConn_Audio_AESDigital, + PhysConn_Audio_SPDIFDigital, + PhysConn_Audio_SCSI, + PhysConn_Audio_AUX, + PhysConn_Audio_1394, + PhysConn_Audio_USB, + PhysConn_Audio_AudioDecoder, + } PhysicalConnectorType; + + //--------------------------------------------------------------------- + // IAMAnalogVideoDecoder interface + //--------------------------------------------------------------------- + + [ + AM_LOCAL + object, + uuid(C6E13350-30AC-11d0-A18C-00A0C9118956), + pointer_default(unique) + ] + interface IAMAnalogVideoDecoder : IUnknown + { + + //Gets the supported analog video standards (NTSC/M, PAL/B, SECAM/K1... + HRESULT get_AvailableTVFormats( + [out AM_ANNOTATION("_Out_")] long *lAnalogVideoStandard + ); + + //Sets or gets the current analog video standard (NTSC/M, PAL/B, SECAM/K1, ... + HRESULT put_TVFormat( + [in] long lAnalogVideoStandard + ); + + // Sets or gets the current analog video standard (NTSC/M, PAL/B, SECAM/K1, ... + HRESULT get_TVFormat( + [out AM_ANNOTATION("_Out_")] long * plAnalogVideoStandard + ); + + // True if horizontal sync is locked + HRESULT get_HorizontalLocked ( + [out AM_ANNOTATION("_Out_")] long * plLocked); + + // True if connected to a VCR (changes PLL timing) + HRESULT put_VCRHorizontalLocking ( + [in] long lVCRHorizontalLocking); + + HRESULT get_VCRHorizontalLocking ( + [out AM_ANNOTATION("_Out_")] long * plVCRHorizontalLocking); + + // Returns the number of lines in the video signal")] + HRESULT get_NumberOfLines ( + [out AM_ANNOTATION("_Out_")] long *plNumberOfLines); + + // Enables or disables the output bus + HRESULT put_OutputEnable ( + [in] long lOutputEnable); + + HRESULT get_OutputEnable ( + [out AM_ANNOTATION("_Out_")] long *plOutputEnable); + + } + + + //--------------------------------------------------------------------- + // VideoProcAmp Property enum + //--------------------------------------------------------------------- + + typedef enum tagVideoProcAmpProperty + { + VideoProcAmp_Brightness, + VideoProcAmp_Contrast, + VideoProcAmp_Hue, + VideoProcAmp_Saturation, + VideoProcAmp_Sharpness, + VideoProcAmp_Gamma, + VideoProcAmp_ColorEnable, + VideoProcAmp_WhiteBalance, + VideoProcAmp_BacklightCompensation, + VideoProcAmp_Gain + } VideoProcAmpProperty; + + //--------------------------------------------------------------------- + // VideoProcAmp Flags enum + //--------------------------------------------------------------------- + + typedef enum tagVideoProcAmpFlags + { + VideoProcAmp_Flags_Auto = 0x0001, + VideoProcAmp_Flags_Manual = 0x0002 + } VideoProcAmpFlags; + + //--------------------------------------------------------------------- + // IAMVideoProcAmp interface + // + // Adjusts video quality in either the analog or digital domain. + // + //--------------------------------------------------------------------- + + [ + AM_LOCAL + object, + uuid(C6E13360-30AC-11d0-A18C-00A0C9118956), + pointer_default(unique) + ] + interface IAMVideoProcAmp : IUnknown + { + // Returns min, max, step size, and default values + HRESULT GetRange( + [in] long Property, // Which property to query + [out AM_ANNOTATION("_Out_")] long * pMin, // Range minimum + [out AM_ANNOTATION("_Out_")] long * pMax, // Range maxumum + [out AM_ANNOTATION("_Out_")] long * pSteppingDelta,// Step size + [out AM_ANNOTATION("_Out_")] long * pDefault, // Default value + [out AM_ANNOTATION("_Out_")] long * pCapsFlags // VideoProcAmpFlags + + ); + + // Set a VideoProcAmp property + HRESULT Set( + [in] long Property, // VideoProcAmpProperty + [in] long lValue, // Value to set + [in] long Flags // VideoProcAmp_Flags_* + + ); + + // Get a VideoProcAmp property + HRESULT Get( + [in] long Property, // VideoProcAmpProperty + [out AM_ANNOTATION("_Out_")] long * lValue, // Current value + [out AM_ANNOTATION("_Out_")] long * Flags // VideoProcAmp_Flags_* + ); + } + + + //--------------------------------------------------------------------- + // CameraControl Property enum + //--------------------------------------------------------------------- + + typedef enum tagCameraControlProperty + { + CameraControl_Pan, + CameraControl_Tilt, + CameraControl_Roll, + CameraControl_Zoom, + CameraControl_Exposure, + CameraControl_Iris, + CameraControl_Focus + } CameraControlProperty; + + //--------------------------------------------------------------------- + // CameraControl Flags enum + //--------------------------------------------------------------------- + + typedef enum tagCameraControlFlags + { + CameraControl_Flags_Auto = 0x0001, + CameraControl_Flags_Manual = 0x0002 + } CameraControlFlags; + + //--------------------------------------------------------------------- + // IAMCameraControl interface + // + // Control of local or remote cameras + //--------------------------------------------------------------------- + + [ + AM_LOCAL + object, + uuid(C6E13370-30AC-11d0-A18C-00A0C9118956), + pointer_default(unique) + ] + interface IAMCameraControl : IUnknown + { + // Returns min, max, step size, and default values + HRESULT GetRange( + [in] long Property, // Which property to query + [out AM_ANNOTATION("_Out_")] long * pMin, // Range minimum + [out AM_ANNOTATION("_Out_")] long * pMax, // Range maxumum + [out AM_ANNOTATION("_Out_")] long * pSteppingDelta,// Step size + [out AM_ANNOTATION("_Out_")] long * pDefault, // Default value + [out AM_ANNOTATION("_Out_")] long * pCapsFlags // CamaeraControlFlags + + ); + + // Set a CameraControl property + HRESULT Set( + [in] long Property, // CameraControlProperty + [in] long lValue, // Value to set + [in] long Flags // CameraControl_Flags_* + + ); + + // Get a CameraControl property + HRESULT Get( + [in] long Property, // CameraControlProperty + [out AM_ANNOTATION("_Out_")] long * lValue, // Current value + [out AM_ANNOTATION("_Out_")] long * Flags // CameraControl_Flags_* + ); + } + + //--------------------------------------------------------------------- + // VideoControl Flags enum + //--------------------------------------------------------------------- + + typedef enum tagVideoControlFlags + { + VideoControlFlag_FlipHorizontal = 0x0001, + VideoControlFlag_FlipVertical = 0x0002, + VideoControlFlag_ExternalTriggerEnable = 0x0004, + VideoControlFlag_Trigger = 0x0008 + + } VideoControlFlags; + + //--------------------------------------------------------------------- + // IAMVideoControl interface + // + // Control of horizontal & vertical flip, external trigger, + // and listing available frame rates + //--------------------------------------------------------------------- + + [ + AM_LOCAL + object, + uuid(6a2e0670-28e4-11d0-a18c-00a0c9118956), + pointer_default(unique) + ] + interface IAMVideoControl : IUnknown + { + // What can the underlying hardware do? + HRESULT GetCaps( + [in] IPin * pPin, // the pin to query or control + [out AM_ANNOTATION("_Out_")] long * pCapsFlags // VideoControlFlag_* + + ); + + // Set the mode of operation + HRESULT SetMode( + [in] IPin * pPin, // the pin to query or control + [in] long Mode // VideoControlFlag_* + + ); + + // Get the mode of operation + HRESULT GetMode( + [in] IPin * pPin, // the pin to query or control + [out AM_ANNOTATION("_Out_")] long * Mode // VideoControlFlag_* + ); + + // Get actual frame rate info for USB and 1394 + // This is only available when streaming + HRESULT GetCurrentActualFrameRate( + [in] IPin * pPin, // the pin to query or control + [out AM_ANNOTATION("_Out_")] LONGLONG * ActualFrameRate // 100 nS units + ); + + // Get max available frame rate info for USB and 1394 + // Returns the max frame rate currently available based on bus bandwidth usage + HRESULT GetMaxAvailableFrameRate( + [in] IPin * pPin, // the pin to query or control + [in] long iIndex, // 0 to IAMStreamConfig->GetNumberOfCapabilities-1 + [in] SIZE Dimensions, // width and height + [out AM_ANNOTATION("_Out_")] LONGLONG * MaxAvailableFrameRate // 100 nS units + ); + + // Get List of available frame rates + HRESULT GetFrameRateList( + [in] IPin * pPin, // the pin to query or control + [in] long iIndex, // 0 to IAMStreamConfig->GetNumberOfCapabilities-1 + [in] SIZE Dimensions, // width and height + [out AM_ANNOTATION("_Out_")] long * ListSize, // Number of elements in the list + [out AM_ANNOTATION("_Out_")] LONGLONG ** FrameRates // Array of framerates in 100 nS units + // or NULL to just get ListSize + ); + + } + + + //--------------------------------------------------------------------- + // IAMCrossbar interface + // + // Controls a routing matrix for analog or digital video or audio + //--------------------------------------------------------------------- + + [ + AM_LOCAL + object, + uuid(C6E13380-30AC-11d0-A18C-00A0C9118956), + pointer_default(unique) + ] + interface IAMCrossbar : IUnknown + { + + // How many pins are there? + HRESULT get_PinCounts( + [out AM_ANNOTATION("_Out_")] long * OutputPinCount, // count of output pins + [out AM_ANNOTATION("_Out_")] long * InputPinCount); // count of input pins + + // True if routing is possible + HRESULT CanRoute ( + [in] long OutputPinIndex, // the output pin + [in] long InputPinIndex); // the input pin + + // Routes an input pin to an output pin + HRESULT Route ( + [in] long OutputPinIndex, // the output pin + [in] long InputPinIndex); // the input pin + + // Returns the input pin connected to a given output pin + HRESULT get_IsRoutedTo ( + [in] long OutputPinIndex, // the output pin + [out AM_ANNOTATION("_Out_")] long * InputPinIndex); // the connected input pin + + // Returns a pin which is related to a given pin + // (ie. this audio pin is related to a video pin) + HRESULT get_CrossbarPinInfo ( + [in] BOOL IsInputPin, // TRUE for input pins + [in] long PinIndex, // a pin + [out AM_ANNOTATION("_Out_")] long * PinIndexRelated, // Index of related pin + [out AM_ANNOTATION("_Out_")] long * PhysicalType); // Physical type of pin + + } + + + //--------------------------------------------------------------------- + // IAMTuner interface + // + // base tuner device + //--------------------------------------------------------------------- + + // predefined subchannel values + typedef enum tagAMTunerSubChannel + { + AMTUNER_SUBCHAN_NO_TUNE = -2, // don't tune + AMTUNER_SUBCHAN_DEFAULT = -1 // use default sub chan + } AMTunerSubChannel; + + // predefined signal strength values + typedef enum tagAMTunerSignalStrength + { + AMTUNER_HASNOSIGNALSTRENGTH = -1, // cannot indicate signal strength + AMTUNER_NOSIGNAL = 0, // no signal available + AMTUNER_SIGNALPRESENT = 1 // signal present + } AMTunerSignalStrength; + + // specifies the mode of operation of the tuner + typedef enum tagAMTunerModeType + { + AMTUNER_MODE_DEFAULT = 0x0000, // default tuner mode + AMTUNER_MODE_TV = 0x0001, // tv + AMTUNER_MODE_FM_RADIO = 0x0002, // fm radio + AMTUNER_MODE_AM_RADIO = 0x0004, // am radio + AMTUNER_MODE_DSS = 0x0008, // dss + } AMTunerModeType; + + // Events reported by IAMTunerNotification + typedef enum tagAMTunerEventType{ + AMTUNER_EVENT_CHANGED = 0x0001, // status changed + } AMTunerEventType; + + interface IAMTunerNotification; + + [ + AM_LOCAL + object, + uuid(211A8761-03AC-11d1-8D13-00AA00BD8339), + pointer_default(unique) + ] + interface IAMTuner : IUnknown + { + // Sets and gets the Channel + HRESULT put_Channel( + [in] long lChannel, + [in] long lVideoSubChannel, + [in] long lAudioSubChannel + ); + HRESULT get_Channel( + [out AM_ANNOTATION("_Out_")] long *plChannel, + [out AM_ANNOTATION("_Out_")] long *plVideoSubChannel, + [out AM_ANNOTATION("_Out_")] long *plAudioSubChannel + ); + + // Gets the minimum and maximum channel available + HRESULT ChannelMinMax( + [out AM_ANNOTATION("_Out_")] long *lChannelMin, + [out AM_ANNOTATION("_Out_")] long *lChannelMax + ); + + // CountryCode is the same as the international + // long distance telephone dialing prefix + + HRESULT put_CountryCode( + [in] long lCountryCode + ); + HRESULT get_CountryCode( + [out AM_ANNOTATION("_Out_")] long *plCountryCode + ); + + HRESULT put_TuningSpace( + [in] long lTuningSpace + ); + HRESULT get_TuningSpace( + [out AM_ANNOTATION("_Out_")] long *plTuningSpace + ); + + [local] HRESULT Logon( + [in] HANDLE hCurrentUser + ); + HRESULT Logout(); + + // Signal status for current channel + // signal strength == TUNER_NOSIGNAL, or strength value + HRESULT SignalPresent( + [out AM_ANNOTATION("_Out_")] long * plSignalStrength // AMTunerSignalStrength + ); + + // allow multifunction tuner to be switch between modes + HRESULT put_Mode( + [in] AMTunerModeType lMode // AMTunerModeType + ); + HRESULT get_Mode( + [out AM_ANNOTATION("_Out_")] AMTunerModeType *plMode // AMTunerModeType + ); + + // retrieve a bitmask of the possible modes + HRESULT GetAvailableModes( + [out AM_ANNOTATION("_Out_")] long *plModes // AMTunerModeType + ); + + // allow IAMTuner clients to receive event notification + HRESULT RegisterNotificationCallBack( + [in] IAMTunerNotification *pNotify, + [in] long lEvents // bitmask from AMTunerEventType enumeration + ); + HRESULT UnRegisterNotificationCallBack( + [in] IAMTunerNotification *pNotify + ); + } + + //--------------------------------------------------------------------- + // IAMTunerNotification interface + // + // Provided to IAMTuner if notification callbacks are desired + //--------------------------------------------------------------------- + + [ + AM_LOCAL + object, + uuid(211A8760-03AC-11d1-8D13-00AA00BD8339), + pointer_default(unique) + ] + interface IAMTunerNotification : IUnknown + { + HRESULT OnEvent([in] AMTunerEventType Event); + } + + + //--------------------------------------------------------------------- + // IAMTVTuner interface + // + // Controls an analog TV tuner device + //--------------------------------------------------------------------- + + [ + AM_LOCAL + object, + uuid(211A8766-03AC-11d1-8D13-00AA00BD8339), + pointer_default(unique) + ] + interface IAMTVTuner : IAMTuner + { + // Gets the supported analog video standards (NTSC/M, PAL/B, SECAM/K1, ... + HRESULT get_AvailableTVFormats( + [out AM_ANNOTATION("_Out_")] long *lAnalogVideoStandard + ); + + // Gets the current analog video standard (NTSC/M, PAL/B, SECAM/K1, ...) + HRESULT get_TVFormat( + [out AM_ANNOTATION("_Out_")] long * plAnalogVideoStandard + ); + + // Scans for a signal on a given channel + // NOTE: this is equivalent to put_Channel(), SignalStrength() + HRESULT AutoTune( + [in] long lChannel, + [out AM_ANNOTATION("_Out_")] long * plFoundSignal + ); + + // Saves the fine tuning information for all channels")] + HRESULT StoreAutoTune(); + + // The number of TV sources plugged into the tuner + HRESULT get_NumInputConnections( + [out AM_ANNOTATION("_Out_")] long * plNumInputConnections + ); + + // Sets or gets the tuner input type (Cable or Antenna) + HRESULT put_InputType( + [in] long lIndex, + [in] TunerInputType InputType + ); + HRESULT get_InputType( + [in] long lIndex, + [out AM_ANNOTATION("_Out_")] TunerInputType * pInputType + ); + + // Sets or gets the tuner input + HRESULT put_ConnectInput( + [in] long lIndex + ); + HRESULT get_ConnectInput( + [out AM_ANNOTATION("_Out_")] long *plIndex + ); + + // Gets the video and audio carrier frequencies + HRESULT get_VideoFrequency( + [out AM_ANNOTATION("_Out_")] long *lFreq + ); + HRESULT get_AudioFrequency( + [out AM_ANNOTATION("_Out_")] long *lFreq + ); + } + + + //--------------------------------------------------------------------- + // IBPCSatelliteTuner interface + // + // An interface supporting Satellite tuning-related functions + //--------------------------------------------------------------------- + [ + object, + local, + uuid(211A8765-03AC-11d1-8D13-00AA00BD8339), + pointer_default(unique) + ] + interface IBPCSatelliteTuner : IAMTuner + { + HRESULT get_DefaultSubChannelTypes( + [out, annotation("_Out_")] long *plDefaultVideoType, // Provider-specific service type + [out, annotation("_Out_")] long *plDefaultAudioType // Provider-specific service type + ); + + HRESULT put_DefaultSubChannelTypes( + [in] long lDefaultVideoType, // Provider-specific service type + [in] long lDefaultAudioType // Provider-specific service type + ); + + HRESULT IsTapingPermitted(); // S_OK yes, S_FALSE no + } + + + + //--------------------------------------------------------------------- + // IAMTVAudio interface + // + // TV Audio control + //--------------------------------------------------------------------- + + typedef enum tagTVAudioMode + { + AMTVAUDIO_MODE_MONO = 0x0001, // Mono + AMTVAUDIO_MODE_STEREO = 0x0002, // Stereo + AMTVAUDIO_MODE_LANG_A = 0x0010, // Primary language + AMTVAUDIO_MODE_LANG_B = 0x0020, // 2nd avail language + AMTVAUDIO_MODE_LANG_C = 0x0040, // 3rd avail language + AMTVAUDIO_PRESET_STEREO = 0x0200, // is present, stereo + AMTVAUDIO_PRESET_LANG_A = 0x1000, // if present, Language A + AMTVAUDIO_PRESET_LANG_B = 0x2000, // if present, Language B + AMTVAUDIO_PRESET_LANG_C = 0x4000, // if present, Language C + } TVAudioMode; + + // Events reported by IAMTVAudioNotification + typedef enum tagAMTVAudioEventType + { + AMTVAUDIO_EVENT_CHANGED = 0x0001, // mode changed + } AMTVAudioEventType; + + interface IAMTVAudioNotification; + + [ + AM_LOCAL + object, + local, + uuid(83EC1C30-23D1-11d1-99E6-00A0C9560266), + pointer_default(unique) + ] + interface IAMTVAudio : IUnknown + { + // retrieve a bitmask of the formats available in the hardware + HRESULT GetHardwareSupportedTVAudioModes( + [out AM_ANNOTATION("_Out_")] long *plModes // TVAudioMode + ); + + // retrieve a bitmask of the possible modes + HRESULT GetAvailableTVAudioModes( + [out AM_ANNOTATION("_Out_")] long *plModes // TVAudioMode + ); + + HRESULT get_TVAudioMode( + [out AM_ANNOTATION("_Out_")] long *plMode // TVAudioMode + ); + HRESULT put_TVAudioMode( + [in] long lMode // TVAudioMode + ); + + // allow IAMTVAudio clients to receive event notification + HRESULT RegisterNotificationCallBack( + [in] IAMTunerNotification *pNotify, + [in] long lEvents // bitmask from AMTVAudioEventType enumeration + ); + HRESULT UnRegisterNotificationCallBack( + IAMTunerNotification *pNotify + ); + } + + //--------------------------------------------------------------------- + // IAMTVAudioNotification interface + // + // Provided to IAMTVAudio clients if notification callbacks are desired + //--------------------------------------------------------------------- + + [ + object, + local, + uuid(83EC1C33-23D1-11d1-99E6-00A0C9560266), + pointer_default(unique) + ] + interface IAMTVAudioNotification : IUnknown + { + HRESULT OnEvent([in] AMTVAudioEventType Event); + } + + + + + //--------------------------------------------------------------------- + // IAMAnalogVideoEncoder interface + //--------------------------------------------------------------------- + + [ + AM_LOCAL + object, + uuid(C6E133B0-30AC-11d0-A18C-00A0C9118956), + pointer_default(unique) + ] + interface IAMAnalogVideoEncoder : IUnknown + { + // Gets the supported analog video standards (NTSC/M, PAL/B, SECAM/K1, ...) + HRESULT get_AvailableTVFormats( + [out AM_ANNOTATION("_Out_")] long *lAnalogVideoStandard + ); + + // Sets or gets the current analog video standard (NTSC/M, PAL/B, SECAM/K1, ...) + HRESULT put_TVFormat( + [in] long lAnalogVideoStandard + ); + + HRESULT get_TVFormat( + [out AM_ANNOTATION("_Out_")] long * plAnalogVideoStandard + ); + + // Sets or gets the copy protection + HRESULT put_CopyProtection ( + [in] long lVideoCopyProtection); // VideoCopyProtectionType + + HRESULT get_CopyProtection ( + [out AM_ANNOTATION("_Out_")] long *lVideoCopyProtection); // VideoCopyProtectionType + + + // Enables and disables close captioning + HRESULT put_CCEnable ( + [in] long lCCEnable); + + HRESULT get_CCEnable ( + [out AM_ANNOTATION("_Out_")] long *lCCEnable); + + } + + // used by IKsPropertySet set AMPROPSETID_Pin + typedef enum AMPROPERTY_PIN { + AMPROPERTY_PIN_CATEGORY, + AMPROPERTY_PIN_MEDIUM + } AMPROPERTY_PIN; + + //--------------------------------------------------------------------- + // IKsPropertySet interface + // + // Sets or gets a property identified by a property set GUID and a + // property ID. + // + // Return codes for all 3 methods: + // E_PROP_SET_UNSUPPORTED the property set is not supported + // E_PROP_ID_UNSUPPORTED the property ID is not supported + // for the specified property set + //--------------------------------------------------------------------- + +cpp_quote("#ifndef _IKsPropertySet_") +cpp_quote("#define _IKsPropertySet_") + + //--------------------------------------------------------------------- + // #defines for IKsPropertySet::QuerySupported return result in pTypeSupport + //--------------------------------------------------------------------- + +cpp_quote("#define KSPROPERTY_SUPPORT_GET 1") +cpp_quote("#define KSPROPERTY_SUPPORT_SET 2") + + + [ + AM_LOCAL + object, + uuid(31EFAC30-515C-11d0-A9AA-00AA0061BE93), + pointer_default(unique) + ] + interface IKsPropertySet : IUnknown + { + [local] HRESULT Set( + [in] REFGUID guidPropSet, + [in] DWORD dwPropID, + [in, size_is(cbInstanceData) AM_ANNOTATION("_In_reads_bytes_(cbInstanceData)")] LPVOID pInstanceData, + [in] DWORD cbInstanceData, + [in, size_is(cbPropData) AM_ANNOTATION("_In_reads_bytes_(cbPropData)")] LPVOID pPropData, + [in] DWORD cbPropData); + + [call_as(Set)] HRESULT RemoteSet( + [in] REFGUID guidPropSet, + [in] DWORD dwPropID, + [in, size_is(cbInstanceData)] byte * pInstanceData, + [in] DWORD cbInstanceData, + [in, size_is(cbPropData)] byte * pPropData, + [in] DWORD cbPropData); + + // To get a property, the caller allocates a buffer which the called + // function fills in. To determine necessary buffer size, call Get with + // pPropData=NULL and cbPropData=0. + [local] HRESULT Get( + [in] REFGUID guidPropSet, + [in] DWORD dwPropID, + [in, size_is(cbInstanceData) AM_ANNOTATION("_In_reads_bytes_(cbInstanceData)")] LPVOID pInstanceData, + [in] DWORD cbInstanceData, + [out, size_is(cbPropData) AM_ANNOTATION("_Out_writes_bytes_to_(cbPropData, *pcbReturned)")] LPVOID pPropData, + [in] DWORD cbPropData, + [out AM_ANNOTATION("_Out_")] DWORD * pcbReturned); + + [call_as(Get)] HRESULT RemoteGet( + [in] REFGUID guidPropSet, + [in] DWORD dwPropID, + [in, size_is(cbInstanceData)] byte * pInstanceData, + [in] DWORD cbInstanceData, + [out, size_is(cbPropData)] byte * pPropData, + [in] DWORD cbPropData, + [out AM_ANNOTATION("_Out_")] DWORD * pcbReturned); + // QuerySupported must either return E_NOTIMPL or correctly indicate + // if getting or setting the property set and property is supported. + // S_OK indicates the property set and property ID combination is + HRESULT QuerySupported( + [in] REFGUID guidPropSet, + [in] DWORD dwPropID, + [out AM_ANNOTATION("_Out_")] DWORD *pTypeSupport); + } +cpp_quote("#endif // _IKsPropertySet_") + +[ +AM_LOCAL +object, +uuid(6025A880-C0D5-11d0-BD4E-00A0C911CE86), +pointer_default(unique) +] +interface IMediaPropertyBag : IPropertyBag +{ + import "ocidl.idl"; + + typedef IMediaPropertyBag *LPMEDIAPROPERTYBAG; + + // return the i'th element in the property bag + HRESULT EnumProperty( + [in] ULONG iProperty, + [in, out] VARIANT * pvarPropertyName, + [in, out] VARIANT * pvarPropertyValue + ); + +} + + +[ +AM_LOCAL +object, +uuid(5738E040-B67F-11d0-BD4D-00A0C911CE86), +pointer_default(unique) +] +interface IPersistMediaPropertyBag : IPersist +{ + import "ocidl.idl"; + import "unknwn.idl"; + + HRESULT InitNew( + void + ); + + HRESULT Load( + [in] IMediaPropertyBag * pPropBag, + [in] IErrorLog * pErrorLog + ); + + HRESULT Save( + [in] IMediaPropertyBag * pPropBag, + [in] BOOL fClearDirty, + [in] BOOL fSaveAllProperties + ); + + + typedef IPersistMediaPropertyBag * LPPERSISTMEDIAPROPERTYBAG; +} + + + //--------------------------------------------------------------------- + // + // Defines IAMPhysicalPinInfo Interface + // + // Returns an enum and string that describes an input pin's physical type. + // + // Implement if: you have physical input pins such as video or audio (like + // on a video capture card or a VCR) + // + // Use if: you want to communicate to a user available physical input pins + // and allow them to select the active one if there is more than one + //--------------------------------------------------------------------- + + +[ + AM_LOCAL + object, + uuid(F938C991-3029-11cf-8C44-00AA006B6814), + pointer_default(unique) + ] +interface IAMPhysicalPinInfo : IUnknown { + + // Returns VFW_E_NO_ACCEPTABLE_TYPES if not a physical pin + HRESULT GetPhysicalType( + [out AM_ANNOTATION("_Out_")] long *pType, // the enum representing the Physical Type + [out AM_ANNOTATION("_Out_")] LPOLESTR *ppszType // a friendly name + ); +} +typedef IAMPhysicalPinInfo *PAMPHYSICALPININFO; + + //--------------------------------------------------------------------- + // Defines IAMExtDevice Interface + // + // Base interface for external professional devices + // + // Implement if: the filter controls an external device such as a VCR, + // timecode reader/generator, etc. The intent is to build a object from + // this implementation plus another that specifically describes the device, + // such as IAMExtTransport. + // + // Use if: you want to control and external device such as a VCR + // + // See edevdefs.h for the enumerated parameter list + //--------------------------------------------------------------------- + [ + AM_LOCAL + object, + uuid(B5730A90-1A2C-11cf-8C23-00AA006B6814), + pointer_default(unique) + ] + interface IAMExtDevice : IUnknown + { + // General device capabilities property. See edevdefs.h for supported + // values + HRESULT GetCapability( + [in] long Capability, // identify the property + [out AM_ANNOTATION("_Out_")] long *pValue, // return value + [out AM_ANNOTATION("_Out_")] double *pdblValue // return value + ); + + // Get external device identification string. Usually the model # + // of the device + HRESULT get_ExternalDeviceID( + [out AM_ANNOTATION("_Out_")] LPOLESTR *ppszData // ID string + ); + + HRESULT get_ExternalDeviceVersion( + [out AM_ANNOTATION("_Out_")] LPOLESTR *ppszData // revision string + ); + + // Controls the external device's power mode + HRESULT put_DevicePower([in] long PowerMode + ); + HRESULT get_DevicePower([out AM_ANNOTATION("_Out_")] long *pPowerMode + ); + + // Some devices need to be reset in some way, i.e., rewinding a VCR + // to the beginning of the tape and resetting the counter to zero. + HRESULT Calibrate( + [in] HEVENT hEvent, + [in] long Mode, + [out AM_ANNOTATION("_Out_")] long *pStatus // OATRUE is active, OAFALSE is inactive + ); + + // Selects the device's communications port, i.e.,COM1, IEEE1394, etc. + // See edevdefs.h for enums + HRESULT put_DevicePort([in] long DevicePort + ); + HRESULT get_DevicePort([out AM_ANNOTATION("_Out_")] long *pDevicePort + ); + +} +typedef IAMExtDevice *PEXTDEVICE; + + //--------------------------------------------------------------------- + // Defines IAMExtTransport Interface + // + // Contains properties and methods that control behavior of an external + // transport device such as a VTR + // + // Implement if: you control such a device. Intended to be agregated + // with IAMExtDevice. + // + // Use if: you want to control such a device + // + // See edevdefs.h for the parameter lists + //--------------------------------------------------------------------- +[ + AM_LOCAL + object, + uuid(A03CD5F0-3045-11cf-8C44-00AA006B6814), + pointer_default(unique) + ] +interface IAMExtTransport : IUnknown { + + // General transport capabilities property. See edevdefs.h for enums + HRESULT GetCapability( + [in] long Capability, // identify the property + [out AM_ANNOTATION("_Out_")] long *pValue, // return value + [out AM_ANNOTATION("_Out_")] double *pdblValue // return value + ); + + // For disc-based devices: spinning, or not spinning. + // For tape-based device: threaded, unthreaded or ejected + HRESULT put_MediaState([in] long State + ); + HRESULT get_MediaState([out AM_ANNOTATION("_Out_")] long *pState // see edevdefs.h + ); + + // Determines state of unit's front panel + HRESULT put_LocalControl([in] long State + ); + HRESULT get_LocalControl([out AM_ANNOTATION("_Out_")] long *pState // OATRUE or OAFALSE + ); + + // Transport status such as Play, Stop, etc. More extensive + // than AM states. + HRESULT GetStatus( + [in] long StatusItem, // see edevdefs.h + [out AM_ANNOTATION("_Out_")] long *pValue + ); + + + // Parameters such as recording speed, servo reference, ballistics, etc. + [local] HRESULT GetTransportBasicParameters( + [in] long Param, + [in, out AM_ANNOTATION("_Inout_")] long *pValue, + [in, out AM_ANNOTATION("_Inout_")] LPOLESTR *ppszData + ); + + HRESULT SetTransportBasicParameters( + [in] long Param, + [in] long Value, + [in] LPCOLESTR pszData + ); + + // Parameters such as video output mode + HRESULT GetTransportVideoParameters( + [in] long Param, + [out AM_ANNOTATION("_Out_")] long *pValue + ); + + HRESULT SetTransportVideoParameters( + [in] long Param, + [in] long Value + ); + + // Parameters such as audio channel enable + HRESULT GetTransportAudioParameters( + [in] long Param, + [out AM_ANNOTATION("_Out_")] long *pValue + ); + + HRESULT SetTransportAudioParameters( + [in] long Param, + [in] long Value + ); + + // Mode is the movement of the transport, i.e., Play, Stop, + // Record, Edit, etc. + HRESULT put_Mode([in] long Mode + ); + HRESULT get_Mode([out AM_ANNOTATION("_Out_")] long *pMode + ); + + // Rate is for variable speed control of the the device. This + // can be linked to IMediaControl::Rate() in the implementation + // if desired. + HRESULT put_Rate([in] double dblRate + ); + HRESULT get_Rate([out AM_ANNOTATION("_Out_")] double *pdblRate + ); + + // This is a lengthy method, that is, it is in effect until canceled or complete and + // requires housekeeping by the filter. It puts transport in play mode and maintains + // fixed relationship between master time reference and transport position. + HRESULT GetChase( + [out AM_ANNOTATION("_Out_")] long *pEnabled, // OATRUE | OAFALSE + [out AM_ANNOTATION("_Out_")] long *pOffset, // offset in current time format + [out AM_ANNOTATION("_Out_")] HEVENT *phEvent // completion notification + ); + HRESULT SetChase( + [in] long Enable, // OATRUE | OAFALSE + [in] long Offset, // offset in current time format + [in] HEVENT hEvent // completion notification + ); + + // Also a lengthy method: temporarily change transport speed (for synchronizing). + HRESULT GetBump( + [out AM_ANNOTATION("_Out_")] long *pSpeed, + [out AM_ANNOTATION("_Out_")] long *pDuration // in current time format + ); + HRESULT SetBump( + [in] long Speed, + [in] long Duration // in current time format + ); + + // Enable/Disable transport anti-headclog control. + HRESULT get_AntiClogControl([out AM_ANNOTATION("_Out_")] long *pEnabled // OATRUE | OAFALSE + ); + HRESULT put_AntiClogControl([in] long Enable // OATRUE | OAFALSE + ); + + // The following group of properties describes edit events. An edit event can be a + // standard insert or assemble edit or a memorized position called a bookmark. + // A NOTE ABOUT EVENTS: as with all lengthy commands, event objects must be created to + // signal completion or error. + + // Intended usage: an edit event is prepared for use by: + // 1. Registering an edit property set and getting an EditID + // 2. Setting the necessary edit properties + // 3. Setting the edit property set active + + // Please see edevdefs.h for properties and values + + // The reference clock's advance is the mechanism that puts an edit in motion (see + // ED_EDIT_REC_INPOINT). + + // Property set methods + HRESULT GetEditPropertySet( + [in] long EditID, + [out AM_ANNOTATION("_Out_")] long *pState // ED_SET_ACTIVE | ED_SET_INACTIVE | ED_SET_INVALID + // | ED_SET_EXECUTING + ); + + HRESULT SetEditPropertySet( + [in, out] long *pEditID, + [in] long State // ED_SET_REGISTER | ED_SET_DELETE | ED_SET_ACTIVE | + ); // ED_SET_INACTIVE + + // the following properties define an edit event such as a bookmark, seek point, or + // actual edit + HRESULT GetEditProperty( + [in] long EditID, + [in] long Param, + [out AM_ANNOTATION("_Out_")] long *pValue + ); + HRESULT SetEditProperty( + [in] long EditID, + [in] long Param, + [in] long Value + ); + + // Activates a capable transport's edit control (typically used for "on the fly" editing). + HRESULT get_EditStart([out AM_ANNOTATION("_Out_")] long *pValue // OATRUE or OAFALSE + ); + HRESULT put_EditStart([in] long Value // OATRUE or OAFALSE + ); +} +typedef IAMExtTransport *PIAMEXTTRANSPORT; + + //--------------------------------------------------------------------- + // Defines IAMTimecodeReader Interface + // + // Contains properties and methods that define behavior of a + // SMPTE/MIDI Timecode Reader. It is expected that this interface + // will be combined (aggregated) with IAMExtTransport to "build" a pro + // VCR. + // + // Implement if: you control such a device + // + // Use if: you want to control such a device + // + // See edevdefs.h for the parameter lists + //===================================================================== + + +// timecode structures +cpp_quote("#if 0") +cpp_quote("/* the following is what MIDL knows how to remote */") +typedef struct tagTIMECODE { + WORD wFrameRate; // will be replaced by AM defs, but see ED_FORMAT_SMPTE for now + WORD wFrameFract; // fractional frame. full scale is always 0x1000 + DWORD dwFrames; +}TIMECODE; +cpp_quote("#else /* 0 */") +cpp_quote("#ifndef TIMECODE_DEFINED") +cpp_quote("#define TIMECODE_DEFINED") +cpp_quote("typedef union _timecode {") +cpp_quote(" struct {") +cpp_quote(" WORD wFrameRate;") +cpp_quote(" WORD wFrameFract;") +cpp_quote(" DWORD dwFrames;") +cpp_quote(" } DUMMYSTRUCTNAME;") +cpp_quote(" DWORDLONG qw;") +cpp_quote(" } TIMECODE;") +cpp_quote("") +typedef struct tagTIMECODE_SAMPLE { + LONGLONG qwTick; // ActiveMovie 100ns timestamp + TIMECODE timecode; // timecode + DWORD dwUser; // timecode user data (aka user bits) + DWORD dwFlags; // timecode flags - see below +} TIMECODE_SAMPLE; + +cpp_quote("#endif /* TIMECODE_DEFINED */") +cpp_quote("#endif /* 0 */") + +typedef TIMECODE *PTIMECODE; +typedef TIMECODE_SAMPLE *PTIMECODE_SAMPLE; + +[ + AM_LOCAL + object, + uuid(9B496CE1-811B-11cf-8C77-00AA006B6814), + pointer_default(unique) +] +interface IAMTimecodeReader : IUnknown +{ + // Timecode Reader Mode - gets/sets the following properties + // ED_TCR_SOURCE - timecode gen (readback), LTC, VITC, or Control Track + HRESULT GetTCRMode( + [in] long Param, + [out AM_ANNOTATION("_Out_")] long *pValue); + HRESULT SetTCRMode( + [in] long Param, + [in] long Value); + + // Select which line of the vertical interval timecode will be read from (if VITC). + // To read VITC on specific multiple lines, the caller would make successive calls to + // put_VITCLine(), once for each line desired. + HRESULT put_VITCLine( + [in] long Line ); // valid lines are 11-20, 0 means autoselect, + // hi bit set means add to list of lines (for + // readers that test across multiple lines) + HRESULT get_VITCLine( + [out AM_ANNOTATION("_Out_")] long *pLine ); // hi bit set means multiple lines are used, + // and successive calls will cycle through the + // line numbers (like an enumerator, only simpler) + + // GetTimecode can be used to obtain the most recent timecode value available in the + // stream. The client can use this to monitor the timecode, parse duplicates and + // discontinuities. The source filter supplying the timecode or possibly a down stream + // filter might want to parse for discontinuities or errors since you have to look at + // every sample to do this properly. + // + + HRESULT GetTimecode( + [out AM_ANNOTATION("_Out_")] PTIMECODE_SAMPLE pTimecodeSample) ; + +} +typedef IAMTimecodeReader *PIAMTIMECODEREADER; + + //--------------------------------------------------------------------- + //===================================================================== + // Defines IAMTimecodeGenerator Interface + // + // Contains properties and methods that define behavior of an external + // SMPTE/MIDI Timecode Generator. It is expected that this interface + // will be combined (aggregated) with IAMExtTransport to "build" a pro + // VCR. + // + // Implement if: you control such a device + // + // Use if: you want to control such a device + // + // See edevdefs.h for the parameter lists + //--------------------------------------------------------------------- +[ + AM_LOCAL + object, + uuid(9B496CE0-811B-11cf-8C77-00AA006B6814), + pointer_default(unique) + ] +interface IAMTimecodeGenerator : IUnknown { + + // Timecode Generator Mode - gets/sets the following properties (see + // vcrdefss.h for detailed values): + // ED_TCG_TIMECODE_TYPE - LTC, VITC, or MIDI + // ED_TCG_FRAMERATE - 24, 25, 30 drop or 30 nondrop + // ED_TCG_SYNC_SOURCE - what is driving the bitclock + // ED_TCG_REFERENCE_SOURCE - what is driving the count value + HRESULT GetTCGMode( + [in] long Param, + [out AM_ANNOTATION("_Out_")] long *pValue); + + HRESULT SetTCGMode( + [in] long Param, + [in] long Value); + + // Select into which line(s) of the vertical interval timecode will be inserted (if VITC). + // Hi bit set means add this line to any previously set lines. + // To generate VITC on specific multiple lines, the caller would make successive calls to + // put_VITCLine(), once for each line desired. + HRESULT put_VITCLine( + [in] long Line // valid lines are 11-20, 0 means autoselect(this setting + ); // is for TC readers that decode from multiple lines) + HRESULT get_VITCLine( + [out AM_ANNOTATION("_Out_")] long *pLine + ); + + // Sets timecode and/or userbit value. If generator is running, takes effect + // immediately. If caller wants to set only timecode, set userbit value to -1L (and + // same for setting userbits only) + // + + HRESULT SetTimecode( + [in] PTIMECODE_SAMPLE pTimecodeSample) ; + + + // GetTimecode can be used to obtain the most recent timecode value available in the + // stream. The client can use this to monitor the timecode and verify the generator is + // working properly + // + + HRESULT GetTimecode( + [out AM_ANNOTATION("_Out_")] PTIMECODE_SAMPLE pTimecodeSample) ; + +} +typedef IAMTimecodeGenerator *PIAMTIMECODEGENERATOR; + + //--------------------------------------------------------------------- + // Defines IAMTimecodeDisplay Interface + // + // Contains properties and methods that define behavior of an external + // SMPTE/MIDI Timecode Display device (aka "character generator" for + // making "burn-ins" or "window dubs"). It is expected that this interface + // will be combined (aggregated) with IAMExtTransport and the timecode + // interfaces to "build" a pro VCR. + // + // Implement if: you control such a device + // + // Use if: you want to control such a device + // + // See edevdefs.h for the parameter lists + //--------------------------------------------------------------------- +[ + AM_LOCAL + object, + uuid(9B496CE2-811B-11cf-8C77-00AA006B6814), + pointer_default(unique) + ] +interface IAMTimecodeDisplay : IUnknown +{ + // Enable/disable external device's timecode reader's character generator output. Some + // readers have this feature - this is not intended for rendering inside the PC! + HRESULT GetTCDisplayEnable( + [out AM_ANNOTATION("_Out_")] long *pState); // OATRUE | OAFALSE + HRESULT SetTCDisplayEnable( + [in] long State); // OATRUE | OAFALSE + // Timecode reader's character generator output + // characteristics (size, position, intensity, etc.). + HRESULT GetTCDisplay( + [in] long Param, + [out AM_ANNOTATION("_Out_")] long *pValue); + HRESULT SetTCDisplay( + [in] long Param, + [in] long Value); + + /* Allowable params and values (see edevdefs.h for details): + ED_TCD_SOURCE + ED_TCR | ED_TCG + ED_TCD_SIZE + ED_SMALL | ED_MED | ED_LARGE + ED_TCD_POSITION + ED_TOP | ED_MIDDLE | ED_BOTTOM or'd with + ED_LEFT | ED_CENTER | ED_RIGHT + ED_TCD_INTENSITY + ED_HIGH | ED_LOW + ED_TCD_TRANSPARENCY // set from 0 to 4, 0 being completely opaque + ED_TCD_INVERT // white on black or black on white + OATRUE | OAFALSE + ED_TCD_BORDER // white border for black chars, black border for white letters + OATRUE | OAFALSE + */ +} +typedef IAMTimecodeDisplay *PIAMTIMECODEDISPLAY; + + +[ + AM_LOCAL + object, + uuid(c6545bf0-e76b-11d0-bd52-00a0c911ce86), + pointer_default(unique) +] +interface IAMDevMemoryAllocator : IUnknown +{ + HRESULT GetInfo( + [out AM_ANNOTATION("_Out_")] DWORD *pdwcbTotalFree, + [out AM_ANNOTATION("_Out_")] DWORD *pdwcbLargestFree, + [out AM_ANNOTATION("_Out_")] DWORD *pdwcbTotalMemory, + [out AM_ANNOTATION("_Out_")] DWORD *pdwcbMinimumChunk); + + HRESULT CheckMemory( + [in] const BYTE *pBuffer); + + HRESULT Alloc( + [out AM_ANNOTATION("_Outptr_result_bytebuffer_(*pdwcbBuffer)")] BYTE **ppBuffer, + [in, out AM_ANNOTATION("_Inout_")] DWORD *pdwcbBuffer); + + HRESULT Free( + [in] BYTE *pBuffer); + + HRESULT GetDevMemoryObject( + [out AM_ANNOTATION("_Out_")] IUnknown **ppUnkInnner, + [in] IUnknown *pUnkOuter); +} +typedef IAMDevMemoryAllocator *PAMDEVMEMORYALLOCATOR; + + +[ + AM_LOCAL + object, + uuid(c6545bf1-e76b-11d0-bd52-00a0c911ce86), + pointer_default(unique) +] +interface IAMDevMemoryControl : IUnknown +{ + HRESULT QueryWriteSync(); + + HRESULT WriteSync(); + + HRESULT GetDevId( + [out AM_ANNOTATION("_Out_")] DWORD *pdwDevId); + +} +typedef IAMDevMemoryControl *PAMDEVMEMORYCONTROL; + +// Flags for IAMStreamSelection::Info +enum _AMSTREAMSELECTINFOFLAGS { + AMSTREAMSELECTINFO_ENABLED = 0x01, // Enable - off for disable + AMSTREAMSELECTINFO_EXCLUSIVE = 0x02 // Turns off the others in the group + // when enabling this one +}; +// Flags for IAMStreamSelection::Enable +enum _AMSTREAMSELECTENABLEFLAGS { + // Currently valid values are : + // 0 - disable all streams in the group containing this stream + // ..._ENABLE - enable only this stream with in the given group + // and disable all others + // ..._ENABLEALL - send out all streams + AMSTREAMSELECTENABLE_ENABLE = 0x01, // Enable + AMSTREAMSELECTENABLE_ENABLEALL = 0x02 // Enable all streams in the group + // containing this stream +}; + +// Control which logical streams are played and find out information about +// them +// Normally supported by a filter +[ + AM_LOCAL + object, + uuid(c1960960-17f5-11d1-abe1-00a0c905f375), + pointer_default(unique) +] +interface IAMStreamSelect : IUnknown +{ + // Returns total count of streams + HRESULT Count( + [out AM_ANNOTATION("_Out_")] DWORD *pcStreams); // Count of logical streams + + // Return info for a given stream - S_FALSE if iIndex out of range + // The first steam in each group is the default + HRESULT Info( + [in] long lIndex, // 0-based index + [out AM_ANNOTATION("_Out_opt_")] AM_MEDIA_TYPE **ppmt, // Media type - optional + // Use DeleteMediaType to free + [out AM_ANNOTATION("_Out_opt_")] DWORD *pdwFlags, // flags - optional + [out AM_ANNOTATION("_Out_opt_")] LCID *plcid, // LCID (returns 0 if none) - optional + [out AM_ANNOTATION("_Out_opt_")] DWORD *pdwGroup, // Logical group - optional + [out AM_ANNOTATION("_Out_opt_")] LPWSTR *ppszName, // Name - optional - free with CoTaskMemFree + // optional + [out AM_ANNOTATION("_Out_opt_")] IUnknown **ppObject, // Associated object - optional + // Object may change if Enable is + // called on this interface + // - returns NULL if no associated object + // Returns pin or filter for DShow + [out AM_ANNOTATION("_Out_opt_")] IUnknown **ppUnk); // Stream specific interface + + // Enable or disable a given stream + HRESULT Enable( + [in] long lIndex, + [in] DWORD dwFlags); +} +typedef IAMStreamSelect *PAMSTREAMSELECT; + +enum _AMRESCTL_RESERVEFLAGS +{ + AMRESCTL_RESERVEFLAGS_RESERVE = 0x00, // Increment reserve count + AMRESCTL_RESERVEFLAGS_UNRESERVE = 0x01 // Decrement reserve count +}; + +// Reserve resources now so that playback can be subsequently +// guaranteed +// +// Normally supported by a filter +// +[ + AM_LOCAL + object, + uuid(8389d2d0-77d7-11d1-abe6-00a0c905f375), + pointer_default(unique), + local +] +interface IAMResourceControl : IUnknown +{ + // The reserve count is incremented/decremented if and only if + // S_OK is returned + // Unreserve once for every Reserve call + HRESULT Reserve( + [in] DWORD dwFlags, // From _AMRESCTL_RESERVEFLAGS enum + [in AM_ANNOTATION("_Reserved_")] PVOID pvReserved // Must be NULL + ); +} + + +// Set clock adjustments - supported by some clocks +[ + AM_LOCAL + object, + uuid(4d5466b0-a49c-11d1-abe8-00a0c905f375), + pointer_default(unique), + local +] +interface IAMClockAdjust : IUnknown +{ + // Set the following delta to clock times + // The clock will add adjust its times by the given delta + HRESULT SetClockDelta( + [in] REFERENCE_TIME rtDelta + ); +}; + +// Filter miscellaneous status flags + +enum _AM_FILTER_MISC_FLAGS { + AM_FILTER_MISC_FLAGS_IS_RENDERER = 0x00000001, /* Will deliver EC_COMPLETE + at end of media */ + AM_FILTER_MISC_FLAGS_IS_SOURCE = 0x00000002 /* Filter sources data */ +}; + +[ + AM_LOCAL + object, + uuid(2dd74950-a890-11d1-abe8-00a0c905f375), + pointer_default(unique), + local +] +interface IAMFilterMiscFlags : IUnknown +{ + // Get miscellaneous property flags + ULONG GetMiscFlags(void); +}; + + +// Video Image drawing interface +[ + AM_LOCAL + object, + local, + uuid(48efb120-ab49-11d2-aed2-00a0c995e8d5), + pointer_default(unique), +] +interface IDrawVideoImage : IUnknown +{ + HRESULT DrawVideoImageBegin(); + + HRESULT DrawVideoImageEnd(); + + HRESULT DrawVideoImageDraw( + [in] HDC hdc, + [in AM_ANNOTATION("_In_")] LPRECT lprcSrc, + [in AM_ANNOTATION("_In_")] LPRECT lprcDst + ); +} + +// +// Video Image decimation interface +// +// The aim of this interface is to enable a video renderer filter to +// control the decimation properties of a video decoder connected to +// the video renderer +// +// This interface should only be supported by decoders that are capable of +// decimating their output image by an arbitary amount. +// +// +[ + object, + local, + uuid(2e5ea3e0-e924-11d2-b6da-00a0c995e8df), + pointer_default(unique), +] +interface IDecimateVideoImage : IUnknown +{ + // + // Informs the decoder that it should decimate its output + // image to the specified width and height. If the decoder can + // decimate to this size it should return S_OK. + // If the decoder can't perform the requested decimation + // or wants to stop performing the decimation that it is + // currently doing it should return E_FAIL. + // + HRESULT SetDecimationImageSize( + [in] long lWidth, + [in] long lHeight); + + // + // Informs the decoder that it should stop decimating its output image + // and resume normal output. + // + HRESULT ResetDecimationImageSize(); +} + +typedef enum _DECIMATION_USAGE { + DECIMATION_LEGACY, // decimate at ovly then video port then crop + DECIMATION_USE_DECODER_ONLY, // decimate image at the decoder only + DECIMATION_USE_VIDEOPORT_ONLY, // decimate at the video port only + DECIMATION_USE_OVERLAY_ONLY, // decimate at the overlay only + DECIMATION_DEFAULT // decimate at decoder then ovly the vide port then crop +} DECIMATION_USAGE; + +[ + object, + local, + uuid(60d32930-13da-11d3-9ec6-c4fcaef5c7be), + pointer_default(unique), +] +interface IAMVideoDecimationProperties: IUnknown +{ + // + // Queries the current usage of the above IDecimateVideoImage + // interface. + // + HRESULT QueryDecimationUsage( + [out AM_ANNOTATION("_Out_")] DECIMATION_USAGE* lpUsage); // from DECIMATION_USAGE enum + + // + // Sets the current usage of the above IDecimateVideoImage + // interface. + // + HRESULT SetDecimationUsage( + [in] DECIMATION_USAGE Usage); // from DECIMATION_USAGE enum +} + +//--------------------------------------------------------------------- +// +// IVideoFrameStep interface +// +//--------------------------------------------------------------------- + +[ + AM_LOCAL + object, + uuid(e46a9787-2b71-444d-a4b5-1fab7b708d6a), + pointer_default(unique), +] +interface IVideoFrameStep : IUnknown +{ + // + // Stop(), Pause(), Run() all cancel Step as does any seeking + // request. + // + // The Step() and CancelStep() methods of this interface + // Cancel any previous step. + // + // When stepping is complete EC_STEP_COMPLETE is signalled. + // + // When the filter graph gets EC_STEP_COMPLETE it automatically + // sets the filter graph into paused state and forwards the + // notification to the application + // + // Returns S_OK if stepping initiated. + // + // dwFrames + // 1 means step 1 frame forward + // 0 is invalid + // n (n > 1) means skip n - 1 frames and show the nth + // + // pStepObject + // NULL - default step object (filter) picked + // non-NULL - use this object for stepping + // + HRESULT Step(DWORD dwFrames, [unique AM_ANNOTATION("_In_opt_")] IUnknown *pStepObject); + + // Can step? + // Returns S_OK if it can, S_FALSE if it can't or error code. + // bMultiple - if TRUE return whether can step n > 1 + HRESULT CanStep(long bMultiple, [unique AM_ANNOTATION("_In_opt_")] IUnknown *pStepObject); + + // Cancel stepping + HRESULT CancelStep(); +} + + + + +//--------------------------------------------------------------------- +// +// IAMPushSource interface +// +// Provides a means for source filters to describe information about the +// data that they source, such as whether the data is live or not, and +// what type of clock was used for timestamps. This information may be +// needed by other clocks in the graph in order to provide accurate +// synchronization. Also provides a way to specify an offset value for +// the filter to use when timestamping the streams it sources. Provides +// support for the IAMLatency interface as well. +// +//--------------------------------------------------------------------- + +enum _AM_PUSHSOURCE_FLAGS { + + // + // The default assumption is that the data is from a live source, + // time stamped with the graph clock, and the source does not + // attempt to rate match the data it delivers. + // The following flags can be used to override this assumption. + // + + // capability flags + AM_PUSHSOURCECAPS_INTERNAL_RM = 0x00000001, // source provides internal support for rate matching + AM_PUSHSOURCECAPS_NOT_LIVE = 0x00000002, // don't treat source data as live + AM_PUSHSOURCECAPS_PRIVATE_CLOCK = 0x00000004, // source data timestamped with clock not + // exposed to the graph + + // request flags, set by user via SetPushSourceFlags method + AM_PUSHSOURCEREQS_USE_STREAM_CLOCK = 0x00010000, // source was requested to timestamp + // using a clock that isn't the graph clock + + AM_PUSHSOURCEREQS_USE_CLOCK_CHAIN = 0x00020000, // source requests reference clock chaining +}; + +// +// Used to set a source filter to run in a "live" mode. +// +[ + AM_LOCAL + object, + uuid(F185FE76-E64E-11d2-B76E-00C04FB6BD3D), + pointer_default(unique) +] +interface IAMPushSource : IAMLatency +{ + // used to discover push source's capabilities. + // may be any combination of the AM_PUSHSOURCE_FLAGS flags. + HRESULT GetPushSourceFlags ( + [out AM_ANNOTATION("_Out_")] ULONG *pFlags + ); + + // used to set request flags for a push source. + // may be a combination of the AM_PUSHSOURCE_REQS_xxx flags. + HRESULT SetPushSourceFlags ( + [in] ULONG Flags + ); + + // specify an offset for push source time stamps + HRESULT SetStreamOffset ( + [in] REFERENCE_TIME rtOffset + ); + + // retrieve the offset this push source is using + HRESULT GetStreamOffset ( + [out AM_ANNOTATION("_Out_")] REFERENCE_TIME *prtOffset + ); + + // retrieve the maximum stream offset this push source thinks it can support + HRESULT GetMaxStreamOffset ( + [out AM_ANNOTATION("_Out_")] REFERENCE_TIME *prtMaxOffset + ); + + // allows the filter graph to tell a push source the maximum latency allowed on the graph + // this allows pins like the video capture preview pin to be more efficient with the amount + // of buffering required to support the maximum graph latency + HRESULT SetMaxStreamOffset ( + [in] REFERENCE_TIME rtMaxOffset + ); +}; + + +// ------------------------------------------------------------------------ +// +// IAMDeviceRemoval interface +// +// Implemented by filters to request and receive WM_DEVICECHANGE +// notifications +// +// ------------------------------------------------------------------------ + +[ + AM_LOCAL + object, + uuid(f90a6130-b658-11d2-ae49-0000f8754b99), + pointer_default(unique) +] +interface IAMDeviceRemoval : IUnknown +{ + + HRESULT DeviceInfo( + [out AM_ANNOTATION("_Out_")] CLSID *pclsidInterfaceClass, + [out AM_ANNOTATION("_Out_")] LPWSTR *pwszSymbolicLink); + + HRESULT Reassociate(); + + HRESULT Disassociate(); +} + +// +// for DV +// +typedef struct DVINFO { + //for 1st 5/6 DIF seq. + DWORD dwDVAAuxSrc; + DWORD dwDVAAuxCtl; + //for 2nd 5/6 DIF seq. + DWORD dwDVAAuxSrc1; + DWORD dwDVAAuxCtl1; + //for video information + DWORD dwDVVAuxSrc; + DWORD dwDVVAuxCtl; + DWORD dwDVReserved[2]; + +} DVINFO, *PDVINFO; + +// ------------------------------------------------------------------------ +// +// IDVEnc interface +// +// Implemented by DV encoder filters to set Encoder format +// +// ------------------------------------------------------------------------ +enum _DVENCODERRESOLUTION { //resolution + DVENCODERRESOLUTION_720x480 = 2012, + DVENCODERRESOLUTION_360x240 = 2013, + DVENCODERRESOLUTION_180x120 = 2014, + DVENCODERRESOLUTION_88x60 = 2015 +}; +enum _DVENCODERVIDEOFORMAT { //PAL/ntsc + DVENCODERVIDEOFORMAT_NTSC = 2000, + DVENCODERVIDEOFORMAT_PAL = 2001 +}; +enum _DVENCODERFORMAT { // dvsd/dvhd/dvsl + DVENCODERFORMAT_DVSD = 2007, + DVENCODERFORMAT_DVHD = 2008, + DVENCODERFORMAT_DVSL = 2009 +}; +[ + AM_LOCAL + object, + uuid(d18e17a0-aacb-11d0-afb0-00aa00b67a42), + pointer_default(unique) +] +interface IDVEnc : IUnknown +{ + + HRESULT get_IFormatResolution ( + [out AM_ANNOTATION("_Out_")] int *VideoFormat, //pal or ntsc + [out AM_ANNOTATION("_Out_")] int *DVFormat, //dvsd dvhd dvsl + [out AM_ANNOTATION("_Out_")] int *Resolution, //720, 360, 180,88 + [in] BYTE fDVInfo, //TRUE: DVINFO structure exist, FALSE: Do not care DVINFO + [out AM_ANNOTATION("_Out_")] DVINFO *sDVInfo //NULL if fDVInfo=FALSE, + ); + + HRESULT put_IFormatResolution ( + [in] int VideoFormat, + [in] int DVFormat, + [in] int Resolution, + [in] BYTE fDVInfo, //TRUE: DVINFO structure exist, FALSE: Do not care DVINFO + [in AM_ANNOTATION("_In_")] DVINFO *sDVInfo //NULL if fDVInfo=FALSE, + ); + +} + +// ------------------------------------------------------------------------ +// +// IDVDec interface +// +// Implemented by DV decoder filters to set decoder size +// +// ------------------------------------------------------------------------ +enum _DVDECODERRESOLUTION { + DVDECODERRESOLUTION_720x480 = 1000, + DVDECODERRESOLUTION_360x240 = 1001, + DVDECODERRESOLUTION_180x120 = 1002, + DVDECODERRESOLUTION_88x60 = 1003 +}; +enum _DVRESOLUTION { + DVRESOLUTION_FULL = 1000, + DVRESOLUTION_HALF = 1001, + DVRESOLUTION_QUARTER = 1002, + DVRESOLUTION_DC = 1003 +}; +[ + AM_LOCAL + object, + uuid(b8e8bd60-0bfe-11d0-af91-00aa00b67a42), + pointer_default(unique) +] +interface IIPDVDec : IUnknown +{ + HRESULT get_IPDisplay ( + [out AM_ANNOTATION("_Out_")] int *displayPix // The display pixels arrage + ); + + HRESULT put_IPDisplay ( + [in] int displayPix // Change to this display pixel arrage + ) ; +} + +//------------------------------------------------------------------------ +// +// IDVRGB219 interface +// +// Implemented by both the DV encoder and decoder filters +// Used for enabling the 219 mode in which the Range of RGB24 either received +// by the encoder or produced by the decoder becomes (16,16,16)--(235,235,235) +// instead of (0,0,0)--(255,255,255). +// The interface's method has no effect in case of any other color space than +// RGB 24 +// +//------------------------------------------------------------------------ + +[ + AM_LOCAL + object, + uuid(58473A19-2BC8-4663-8012-25F81BABDDD1), + pointer_default(unique) +] +interface IDVRGB219 : IUnknown +{ + HRESULT SetRGB219 ([in] BOOL bState); // State = True Turn 219 mode on else turn it off. +} + + +// ------------------------------------------------------------------------ +// +// IDVSplitter interface +// +// Implemented by DV splitter filters +// +// ------------------------------------------------------------------------ +[ + AM_LOCAL + object, + uuid(92a3a302-da7c-4a1f-ba7e-1802bb5d2d02) +] +interface IDVSplitter : IUnknown +{ + HRESULT DiscardAlternateVideoFrames( + [in] int nDiscard + ) ; +} + +// Audio Renderer statistics params for IAMAudioRendererStats interface +enum _AM_AUDIO_RENDERER_STAT_PARAM { + AM_AUDREND_STAT_PARAM_BREAK_COUNT = 1, // audio breaks + AM_AUDREND_STAT_PARAM_SLAVE_MODE, // current clock mode, see AM_AUDREND_SLAVE_MODEs + AM_AUDREND_STAT_PARAM_SILENCE_DUR, // silence inserted due to gaps (ms) + AM_AUDREND_STAT_PARAM_LAST_BUFFER_DUR, // duration of the last buffer received + AM_AUDREND_STAT_PARAM_DISCONTINUITIES, // discontinuities seen since running + AM_AUDREND_STAT_PARAM_SLAVE_RATE, // what rate are we currently slaving at? S_FALSE if not slaving + AM_AUDREND_STAT_PARAM_SLAVE_DROPWRITE_DUR, // for waveOut slaving - data dropped or added to stay in-sync + // dwParam1 - dropped duration(ms) + // dwParam2 - paused duration(ms) + AM_AUDREND_STAT_PARAM_SLAVE_HIGHLOWERROR, // highest & lowest clock differences seen + // dwParam1 - high err + // dwParam2 - low err + AM_AUDREND_STAT_PARAM_SLAVE_LASTHIGHLOWERROR, // last high and low errs seen + // dwParam1 - last high err + // dwParam2 - last low err + AM_AUDREND_STAT_PARAM_SLAVE_ACCUMERROR, // error between primary/secondary clocks + AM_AUDREND_STAT_PARAM_BUFFERFULLNESS, // percent audio buffer fullness + AM_AUDREND_STAT_PARAM_JITTER // input buffer jitter +}; + +//--------------------------------------------------------------------- +// +// IAMAudioRendererStats interface +// +// Interface to get at statistical information that is optionally stored +// in an audio renderer filter. Supported on the filter interface (although +// this might be better for ksproxy if we define it as a pin interface?) +// +//--------------------------------------------------------------------- + +[ + AM_LOCAL + object, + uuid(22320CB2-D41A-11d2-BF7C-D7CB9DF0BF93), + pointer_default(unique) +] +interface IAMAudioRendererStats : IUnknown +{ + // Get value corresponding to the passed in parameter id + HRESULT GetStatParam( + [in] DWORD dwParam, + [out AM_ANNOTATION("_Out_")] DWORD *pdwParam1, + [out AM_ANNOTATION("_Out_")] DWORD *pdwParam2 + ); +} + +//--------------------------------------------------------------------- +// +// IAMLatency interface +// +// Allows a filter to report the expected latency associated with a data +// stream flowing from its input to output pin. Supported on output pins. +// +//--------------------------------------------------------------------- + +[ + AM_LOCAL + object, + uuid(62EA93BA-EC62-11d2-B770-00C04FB6BD3D), + pointer_default(unique) +] +interface IAMLatency : IUnknown +{ + HRESULT GetLatency( + [in AM_ANNOTATION("_Out_")] REFERENCE_TIME *prtLatency + ); +} + + +enum _AM_INTF_SEARCH_FLAGS { + AM_INTF_SEARCH_INPUT_PIN = 0x00000001, // search input pins + AM_INTF_SEARCH_OUTPUT_PIN = 0x00000002, // search output pins + AM_INTF_SEARCH_FILTER = 0x00000004 // search filters +}; + +//--------------------------------------------------------------------- +// +// IAMGraphStreams interface +// +// Interface used to control or search over connected streams of data +// flow within a filter graph. +// +//--------------------------------------------------------------------- + +[ + AM_LOCAL + object, + uuid(632105FA-072E-11d3-8AF9-00C04FB6BD3D), + pointer_default(unique) +] +interface IAMGraphStreams : IUnknown +{ + // Search upstream from the current pin, for the specified interface. + // dwFlags can be any combination of the AM_INTF_SEARCH_FLAGS, and allows + // control over what objects to search. A value of 0 means to search all. + HRESULT FindUpstreamInterface( + [in] IPin *pPin, + [in] REFIID riid, + [out, iid_is(riid) AM_ANNOTATION("_Out_")] void **ppvInterface, + [in] DWORD dwFlags ); + + // Enable or disable the graph's setting of a timestamp offset + // on push sources. + HRESULT SyncUsingStreamOffset( [in] BOOL bUseStreamOffset ); + + // allow an app to set the maximum offset used on push source filters + HRESULT SetMaxGraphLatency( [in] REFERENCE_TIME rtMaxGraphLatency ); +} + + +// +// IAMOverlayFX +// +// This interface is exposed by the overlay mixer filter and allows +// an application to apply various "effects" to the overlay surface +// used by the overlay mixer. +// +// The effects that can be applied are described by the AMOVERLAYFX +// enumeration. +// +enum AMOVERLAYFX { + // Normal (ie. top down, left to right) video + AMOVERFX_NOFX = 0x00000000, + + // Mirror the overlay across the vertical axis + AMOVERFX_MIRRORLEFTRIGHT = 0x00000002, + + // Mirror the overlay across the horizontal axis + AMOVERFX_MIRRORUPDOWN = 0x00000004, + + // Deinterlace the overlay, if possible + AMOVERFX_DEINTERLACE = 0x00000008 +}; + +[ + AM_LOCAL + object, + uuid(62fae250-7e65-4460-bfc9-6398b322073c), + pointer_default(unique) +] +interface IAMOverlayFX : IUnknown +{ + // Use this method to determine what overlay effects are currently available + // for the overlay surface used by the overlay mixer filter. + // + HRESULT QueryOverlayFXCaps( + [out AM_ANNOTATION("_Out_")] DWORD *lpdwOverlayFXCaps + ); + + // Use this method to apply a new overlay effect to the overlay surface + // used by the overlay mixer filter. This method can be called while the + // filter graph is running, the effect is applied immediately + // + HRESULT SetOverlayFX( + [in] DWORD dwOverlayFX + ); + + // Use this method to determine what effect (if any) is currently being + // applied to the overlay surface by the overlay mixer filter. + // + HRESULT GetOverlayFX( + [out AM_ANNOTATION("_Out_")] DWORD *lpdwOverlayFX + ); +} + + + +// IAMOpenProgress interface provides information about current progress through +// a download + +[ +AM_LOCAL +object, +uuid(8E1C39A1-DE53-11cf-AA63-0080C744528D), +pointer_default(unique) +] + +interface IAMOpenProgress : IUnknown +{ + // QueryProgress can be used to query the source filter which supports this interface + // for progress information during a renderfile operation. + HRESULT QueryProgress( + [out AM_ANNOTATION("_Out_")] LONGLONG* pllTotal, + [out AM_ANNOTATION("_Out_")] LONGLONG* pllCurrent + ); + + // AbortOperation can be used to request an abort of RenderFile operation + // causing it to stop downloading. This methods instructs the exporter of + // the IAMOpenProgress interface to hold up their internal abort flag until + // further notice. + HRESULT AbortOperation( + ); +} + + +/*++ + IMpeg2Demultiplexer + + This interface is implemented by the MPEG-2 Demultiplexer filter, + irrespective of program vs. transport stream splitting functionality. +--*/ +[ + object, + local, + uuid (436eee9c-264f-4242-90e1-4e330c107512), + pointer_default(unique) +] +interface IMpeg2Demultiplexer : IUnknown +{ + /*++ + ------------------------------------------------------------------------ + purpose: Creates an output pin of the specified media type. + + pMediaType media type specifier for the new pin + pszPinName pin name; cannot be a duplicate of an existing pin + ppIPin IPin interface pointer to the newly created pin + --*/ + HRESULT + CreateOutputPin ( + [in] AM_MEDIA_TYPE * pMediaType, + [in, annotation("_In_")] LPWSTR pszPinName, + [out, annotation("_Out_")] IPin ** ppIPin + ) ; + + /*++ + ------------------------------------------------------------------------ + purpose: Updates the media type of the specified output pin. If no + connection exists, the media type is updated always. If + the pin is connected, the success/failure of the call will + depend on downstream input pin's accetance/rejection of + the specified media type, and subsequent success/failure + of a reconnect. + + pszPinName pin name + pMediaType new media type specifier + --*/ + HRESULT + SetOutputPinMediaType ( + [in, annotation("_In_")] LPWSTR pszPinName, + [in, annotation("_In_")] AM_MEDIA_TYPE * pMediaType + ) ; + + /*++ + ------------------------------------------------------------------------ + purpose: Deletes the specified output pin. + + pszPinName pin name + --*/ + HRESULT + DeleteOutputPin ( + [in, annotation("_In_")] LPWSTR pszPinName + ) ; +} ; + + +//--------------------------------------------------------------------- +// IEnumStreamIdMap interface +//--------------------------------------------------------------------- + +cpp_quote("#define MPEG2_PROGRAM_STREAM_MAP 0x00000000") +cpp_quote("#define MPEG2_PROGRAM_ELEMENTARY_STREAM 0x00000001") +cpp_quote("#define MPEG2_PROGRAM_DIRECTORY_PES_PACKET 0x00000002") +cpp_quote("#define MPEG2_PROGRAM_PACK_HEADER 0x00000003") +cpp_quote("#define MPEG2_PROGRAM_PES_STREAM 0x00000004") +cpp_quote("#define MPEG2_PROGRAM_SYSTEM_HEADER 0x00000005") + +cpp_quote("#define SUBSTREAM_FILTER_VAL_NONE 0x10000000") + +typedef struct STREAM_ID_MAP { + ULONG stream_id ; // mpeg-2 stream_id + DWORD dwMediaSampleContent ; // #define'd above + ULONG ulSubstreamFilterValue ; // filtering value + int iDataOffset ; // offset to elementary stream +} STREAM_ID_MAP ; + +/*++ + Enumerates the StreamIds mapped on a pin +--*/ +[ + object, + local, + uuid (945C1566-6202-46fc-96C7-D87F289C6534), + pointer_default(unique) +] +interface IEnumStreamIdMap : IUnknown +{ + HRESULT + Next ( + [in] ULONG cRequest, + [in, out, size_is (cRequest), annotation("_Out_writes_to_(cRequest, *pcReceived)")] STREAM_ID_MAP * pStreamIdMap, + [out, annotation("_Out_opt_")] ULONG * pcReceived + ) ; + + HRESULT + Skip ( + [in] ULONG cRecords + ) ; + + HRESULT + Reset ( + ) ; + + HRESULT + Clone ( + [out, annotation("_Out_")] IEnumStreamIdMap ** ppIEnumStreamIdMap + ) ; +} ; + +/*++ + Implemented on the output pin. + + Provides the ability to map/unmap a stream_id to/from an output pin. +--*/ +[ + object, + local, + uuid (D0E04C47-25B8-4369-925A-362A01D95444), + pointer_default(unique) +] +interface IMPEG2StreamIdMap : IUnknown +{ + HRESULT + MapStreamId ( + [in] ULONG ulStreamId, // mpeg-2 stream_id + [in] DWORD MediaSampleContent, // #define'd above IEnumStreamIdMap + [in] ULONG ulSubstreamFilterValue, // filter value + [in] int iDataOffset // elementary stream offset + ) ; + + HRESULT + UnmapStreamId ( + [in] ULONG culStreamId, // number of stream_id's in pulStreamId + [in, annotation("_In_reads_(culStreamId)")] ULONG * pulStreamId // array of stream_id's to unmap + ) ; + + HRESULT + EnumStreamIdMap ( + [out, annotation("_Out_")] IEnumStreamIdMap ** ppIEnumStreamIdMap + ) ; +} ; + + +// Register a service provider with the filter graph +[ + object, + local, + uuid(7B3A2F01-0751-48DD-B556-004785171C54), + pointer_default(unique) +] +interface IRegisterServiceProvider : IUnknown +{ + // registers one service into it's internal table.. Object is refcounted. + // register a NULL value to remove the service + HRESULT RegisterService([in] REFGUID guidService, [in] IUnknown *pUnkObject); +}; + + + +//--------------------------------------------------------------------- +// +// IAMClockSlave interface +// +// When the audio renderer is slaving to a separate graph clock this +// interface provides a way for an app to specify how closely in sync +// the slaving renderer should try to stay to the graph clock. Note that +// using a larger tolerance for a video & audio playback graph will likely +// result in looser a/v sync, so it recommended not to change this setting +// except under special circumstances. +// +//--------------------------------------------------------------------- + +// +// Used to set/get the error tolerance used by a slaving audio renderer +// +[ + AM_LOCAL + object, + uuid(9FD52741-176D-4b36-8F51-CA8F933223BE), + pointer_default(unique) +] +interface IAMClockSlave : IUnknown +{ + // set millisecond value to use for slaving tolerance + // the allowed range is 1 to 1000ms + HRESULT SetErrorTolerance ( + [in] DWORD dwTolerance + ); + + // get millisecond value currently being used for slaving tolerance + HRESULT GetErrorTolerance ( + [out AM_ANNOTATION("_Out_")] DWORD *pdwTolerance + ); +}; + + + +//--------------------------------------------------------------------- +// +// IAMGraphBuilderCallback interface +// +// Interface which gives the app a chance to configure filters +// before a connection is attempted. +// +// If this interface is supported by the site passed in to the graph +// via IObjectWithSite::SetSite, the graph will call back with each +// filter it creates as part of the Render or Connect process. Does +// not call back for source filters. Filter may be discarded and not +// used in graph or may be connected and disconnected more than once +// +// The callback occurs with the graph lock held, so do not call into +// the graph again and do not wait on other threads calling into the +// graph. +// +//--------------------------------------------------------------------- + +[ + object, + uuid(4995f511-9ddb-4f12-bd3b-f04611807b79), + local, + pointer_default(unique) +] +interface IAMGraphBuilderCallback : IUnknown +{ + // graph builder selected a filter to create and attempt to + // connect. failure indicates filter should be rejected. + HRESULT SelectedFilter( + [in] IMoniker *pMon + ); + + // app configures filter during this call. failure indicates + // filter should be rejected. + HRESULT CreatedFilter( + [in] IBaseFilter *pFil + ); +}; + +cpp_quote("#ifdef __cplusplus") +cpp_quote("#ifndef _IAMFilterGraphCallback_") +cpp_quote("#define _IAMFilterGraphCallback_") +cpp_quote("// Note: Because this interface was not defined as a proper interface it is") +cpp_quote("// supported under C++ only. Methods aren't stdcall.") +cpp_quote("EXTERN_GUID(IID_IAMFilterGraphCallback,0x56a868fd,0x0ad4,0x11ce,0xb0,0xa3,0x0,0x20,0xaf,0x0b,0xa7,0x70);") +cpp_quote("interface IAMFilterGraphCallback : public IUnknown") +cpp_quote("{") +cpp_quote(" // S_OK means rendering complete, S_FALSE means retry now.") +cpp_quote(" virtual HRESULT UnableToRender(IPin *pPin) = 0;") +cpp_quote(" ") +cpp_quote("};") +cpp_quote("#endif // _IAMFilterGraphCallback_") +cpp_quote("#endif") + +//------------------------------------------------------------------------------ +// File: EncAPI.idl +// +// Desc: Encoder (and future decoder) interface definitions. +// +// Copyright (c) 1992 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + +[ + object, + local, + uuid(a8809222-07bb-48ea-951c-33158100625b), + pointer_default(unique) +] +interface IGetCapabilitiesKey : IUnknown +{ + HRESULT GetCapabilitiesKey( [out, annotation("_Out_")] HKEY* pHKey ); +}; + +// ----------------------------------------------------------------------------------------- +// From this point on, this is retained for backwards compatiblity only +// Do not use this for future encoders +// ----------------------------------------------------------------------------------------- +[ + AM_LOCAL + object, + uuid(70423839-6ACC-4b23-B079-21DBF08156A5), + pointer_default(unique) +] +interface IEncoderAPI : IUnknown +{ + HRESULT IsSupported ( [in] const GUID *Api ); + HRESULT IsAvailable ( [in] const GUID *Api ); + HRESULT GetParameterRange ( [in] const GUID *Api, + [out AM_ANNOTATION("_Out_")] VARIANT *ValueMin, [out AM_ANNOTATION("_Out_")] VARIANT *ValueMax, + [out AM_ANNOTATION("_Out_")] VARIANT *SteppingDelta ); + HRESULT GetParameterValues ( [in] const GUID *Api, + [out, size_is(,*ValuesCount) AM_ANNOTATION("_Outptr_result_buffer_all_(*ValuesCount)")] VARIANT **Values, + [out AM_ANNOTATION("_Out_")] ULONG *ValuesCount ); + HRESULT GetDefaultValue ( [in] const GUID *Api, [out AM_ANNOTATION("_Out_")] VARIANT *Value ); + HRESULT GetValue ( [in] const GUID *Api, [out AM_ANNOTATION("_Out_")] VARIANT *Value ); + HRESULT SetValue ( [in] const GUID *Api, [in AM_ANNOTATION("_In_")] VARIANT *Value ); +} + +[ + AM_LOCAL + object, + uuid(02997C3B-8E1B-460e-9270-545E0DE9563E), + pointer_default(unique) +] +interface IVideoEncoder : IEncoderAPI +{ +} +//--------------------------------------------------------------------- +// +// Old Encoder API Interfaces +// +//--------------------------------------------------------------------- + +cpp_quote ("#ifndef __ENCODER_API_DEFINES__") +cpp_quote ("#define __ENCODER_API_DEFINES__") + +typedef enum VIDEOENCODER_BITRATE_MODE { + + // + // Bit rate used for encoding is constant + // + ConstantBitRate = 0, + + // + // Bit rate used for encoding is variable with the specified bitrate used + // as a guaranteed average over a specified window. The default window + // size is considered to be 5 minutes. + // + VariableBitRateAverage, + + // + // Bit rate used for encoding is variable with the specified bitrate used + // as a peak rate over a specified window. The default window size + // is considered to be 500ms (classically one GOP). + // + VariableBitRatePeak + +} VIDEOENCODER_BITRATE_MODE; + +cpp_quote ("#endif // __ENCODER_API_DEFINES__") + +cpp_quote("#define AM_GETDECODERCAP_QUERY_VMR_SUPPORT 0x00000001") +cpp_quote("#define VMR_NOTSUPPORTED 0x00000000") +cpp_quote("#define VMR_SUPPORTED 0x00000001") + +cpp_quote("#define AM_QUERY_DECODER_VMR_SUPPORT 0x00000001") +cpp_quote("#define AM_QUERY_DECODER_DXVA_1_SUPPORT 0x00000002") + +cpp_quote("#define AM_QUERY_DECODER_DVD_SUPPORT 0x00000003") +cpp_quote("#define AM_QUERY_DECODER_ATSC_SD_SUPPORT 0x00000004") +cpp_quote("#define AM_QUERY_DECODER_ATSC_HD_SUPPORT 0x00000005") +cpp_quote("#define AM_GETDECODERCAP_QUERY_VMR9_SUPPORT 0x00000006") +cpp_quote("#define AM_GETDECODERCAP_QUERY_EVR_SUPPORT 0x00000007") + +cpp_quote("#define DECODER_CAP_NOTSUPPORTED 0x00000000") +cpp_quote("#define DECODER_CAP_SUPPORTED 0x00000001") + +[ + object, + local, + uuid(c0dff467-d499-4986-972b-e1d9090fa941), + pointer_default(unique) +] +interface IAMDecoderCaps : IUnknown +{ + HRESULT GetDecoderCaps([in] DWORD dwCapIndex, [out, annotation("_Out_")] DWORD* lpdwCap); +}; + +/////////////////////////////////////////////////////////////////////////////// +// +// IAMCertifiedOutputProtection +// +/////////////////////////////////////////////////////////////////////////////// +typedef struct _AMCOPPSignature { + BYTE Signature[256]; +} AMCOPPSignature; + +typedef struct _AMCOPPCommand { + GUID macKDI; // 16 bytes + GUID guidCommandID; // 16 bytes + DWORD dwSequence; // 4 bytes + DWORD cbSizeData; // 4 bytes + BYTE CommandData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096) +} AMCOPPCommand, *LPAMCOPPCommand; + +typedef struct _AMCOPPStatusInput { + GUID rApp; // 16 bytes + GUID guidStatusRequestID;// 16 bytes + DWORD dwSequence; // 4 bytes + DWORD cbSizeData; // 4 bytes + BYTE StatusData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096) +} AMCOPPStatusInput, *LPAMCOPPStatusInput; + +typedef struct _AMCOPPStatusOutput { + GUID macKDI; // 16 bytes + DWORD cbSizeData; // 4 bytes + BYTE COPPStatus[4076]; // 4076 bytes (4076+16+4 = 4096) +} AMCOPPStatusOutput, *LPAMCOPPStatusOutput; + + +[ + object, + local, + uuid(6feded3e-0ff1-4901-a2f1-43f7012c8515), + pointer_default(unique) +] +interface IAMCertifiedOutputProtection : IUnknown +{ + HRESULT KeyExchange ( + [out, annotation("_Out_")] GUID* pRandom, // 128-bit random number generated by Graphics Driver + [out, annotation("_Outptr_result_bytebuffer_(*pdwLengthCertGH)")] BYTE** VarLenCertGH, // Graphics Hardware certificate, memory released by CoTaskMemFree + [out, annotation("_Out_")] DWORD* pdwLengthCertGH); // Length of Graphics Hardware certificate + + HRESULT SessionSequenceStart( + [in] AMCOPPSignature*pSig); // Concatenation of 128-bit random data security session key, + // 128-bit random data integrity session key, 32-bit random + // starting status sequence number and 32-bit random starting + // command sequence number encrypted with the public key of + // the graphic hardware. This value is 2048 bits long. + + HRESULT ProtectionCommand( + [in] const AMCOPPCommand* cmd); // Encrypted command + + HRESULT ProtectionStatus( + [in] const AMCOPPStatusInput* pStatusInput, // Encrypted Status request + [out, annotation("_Out_")] AMCOPPStatusOutput* pStatusOutput); // Encrypted Status results +}; + +// Can be implemented by implementors of IAsyncReader on a Filter's output pin +// fRaw = TRUE means sample timestamp = byte position +// fRaw = FALSE (default) means sample timestamp = 10000000 * (byte position) +[ + object, + local, + uuid(cf7b26fc-9a00-485b-8147-3e789d5e8f67), + pointer_default(unique) +] +interface IAMAsyncReaderTimestampScaling : IUnknown +{ + HRESULT GetTimestampMode([annotation("_Out_")] BOOL *pfRaw); + HRESULT SetTimestampMode(BOOL fRaw); +}; + +// +// Control DirectShow plugins +// + +// +// This interface is implemented by filter monikers +// Objects are controlled by CLSID for regular filter and DMOs +// and by DLL name for legacy ACM and ICM codecs +// +// This interface is implemented by the CLSID_DirectShowPluginControl +// COM object +// + +[ + object, + local, + uuid(0e26a181-f40c-4635-8786-976284b52981), + pointer_default(unique) +] +interface IAMPluginControl : IUnknown +{ + HRESULT GetPreferredClsid( + [annotation("_In_")] REFGUID subType, + [annotation("_Out_")] CLSID *clsid + ); + HRESULT GetPreferredClsidByIndex( + DWORD index, + [annotation("_Out_")] GUID *subType, + [annotation("_Out_")] CLSID *clsid + ); + HRESULT SetPreferredClsid( + [annotation("_In_")] REFGUID subType, + [annotation("_In_opt_")] const CLSID *clsid + ); + HRESULT IsDisabled( + REFCLSID clsid + ); + HRESULT GetDisabledByIndex( + DWORD index, + [annotation("_Out_")] CLSID *clsid + ); + HRESULT SetDisabled( + REFCLSID clsid, + BOOL disabled + ); + HRESULT IsLegacyDisabled( + LPCWSTR dllName + ); +} + + + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/axextendenums.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/axextendenums.h new file mode 100644 index 0000000000000000000000000000000000000000..eafe590c1e9c982e95e5c4bfd1846a3135424060 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/axextendenums.h @@ -0,0 +1,95 @@ +//------------------------------------------------------------------------------ +// File: AXExtendenums.h +// +// Desc: axextend.idl enums that must be exposed in managed code +// +// Copyright (c) 1992 - 2004, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + +#ifndef AXEXTEND_ENUM_H +#define AXEXTEND_ENUM_H + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// !!!! do not #pragma once, we use this file twice(once for native and once for mgd) in managed interop +#include + +// +//--------------------------------------------------------------------- +// AnalogVideoStandard enum +//--------------------------------------------------------------------- + +FLAGS TAG(AnalogVideoStandard) +{ + AnalogVideo_None = 0x00000000, // This is a digital sensor + AnalogVideo_NTSC_M = 0x00000001, // 75 IRE Setup + AnalogVideo_NTSC_M_J = 0x00000002, // Japan, 0 IRE Setup + AnalogVideo_NTSC_433 = 0x00000004, + + AnalogVideo_PAL_B = 0x00000010, + AnalogVideo_PAL_D = 0x00000020, + AnalogVideo_PAL_G = 0x00000040, + AnalogVideo_PAL_H = 0x00000080, + AnalogVideo_PAL_I = 0x00000100, + AnalogVideo_PAL_M = 0x00000200, + AnalogVideo_PAL_N = 0x00000400, + + AnalogVideo_PAL_60 = 0x00000800, + + AnalogVideo_SECAM_B = 0x00001000, + AnalogVideo_SECAM_D = 0x00002000, + AnalogVideo_SECAM_G = 0x00004000, + AnalogVideo_SECAM_H = 0x00008000, + AnalogVideo_SECAM_K = 0x00010000, + AnalogVideo_SECAM_K1 = 0x00020000, + AnalogVideo_SECAM_L = 0x00040000, + AnalogVideo_SECAM_L1 = 0x00080000, + + AnalogVideo_PAL_N_COMBO // Argentina + = 0x00100000, + + AnalogVideoMask_MCE_NTSC = AnalogVideo_NTSC_M | // add pal n, n combo, m and 60 since they can be done on a ntsc tuner + AnalogVideo_NTSC_M_J | + AnalogVideo_NTSC_433 | + AnalogVideo_PAL_M | + AnalogVideo_PAL_N | + AnalogVideo_PAL_60 | + AnalogVideo_PAL_N_COMBO, + + AnalogVideoMask_MCE_PAL = AnalogVideo_PAL_B | // pull out pal n, n combo, m and 60 + AnalogVideo_PAL_D | + AnalogVideo_PAL_G | + AnalogVideo_PAL_H | + AnalogVideo_PAL_I, + + AnalogVideoMask_MCE_SECAM = AnalogVideo_SECAM_B | // secam looks ok + AnalogVideo_SECAM_D | + AnalogVideo_SECAM_G | + AnalogVideo_SECAM_H | + AnalogVideo_SECAM_K | + AnalogVideo_SECAM_K1 | + AnalogVideo_SECAM_L | + AnalogVideo_SECAM_L1, +} AnalogVideoStandard; + +//--------------------------------------------------------------------- +// TunerInputType enum +//--------------------------------------------------------------------- + +ENUM16 TAG(TunerInputType) +{ + TunerInputCable, + TunerInputAntenna +} TunerInputType; + +#include + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif +// end of file axextendenum.h diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/azroles.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/azroles.h new file mode 100644 index 0000000000000000000000000000000000000000..93f682634e90f9ab4d864def8e5cb8a4146aae9e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/azroles.h @@ -0,0 +1,13475 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __azroles_h__ +#define __azroles_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAzAuthorizationStore_FWD_DEFINED__ +#define __IAzAuthorizationStore_FWD_DEFINED__ +typedef interface IAzAuthorizationStore IAzAuthorizationStore; + +#endif /* __IAzAuthorizationStore_FWD_DEFINED__ */ + + +#ifndef __IAzAuthorizationStore2_FWD_DEFINED__ +#define __IAzAuthorizationStore2_FWD_DEFINED__ +typedef interface IAzAuthorizationStore2 IAzAuthorizationStore2; + +#endif /* __IAzAuthorizationStore2_FWD_DEFINED__ */ + + +#ifndef __IAzAuthorizationStore3_FWD_DEFINED__ +#define __IAzAuthorizationStore3_FWD_DEFINED__ +typedef interface IAzAuthorizationStore3 IAzAuthorizationStore3; + +#endif /* __IAzAuthorizationStore3_FWD_DEFINED__ */ + + +#ifndef __IAzApplication_FWD_DEFINED__ +#define __IAzApplication_FWD_DEFINED__ +typedef interface IAzApplication IAzApplication; + +#endif /* __IAzApplication_FWD_DEFINED__ */ + + +#ifndef __IAzApplication2_FWD_DEFINED__ +#define __IAzApplication2_FWD_DEFINED__ +typedef interface IAzApplication2 IAzApplication2; + +#endif /* __IAzApplication2_FWD_DEFINED__ */ + + +#ifndef __IAzApplications_FWD_DEFINED__ +#define __IAzApplications_FWD_DEFINED__ +typedef interface IAzApplications IAzApplications; + +#endif /* __IAzApplications_FWD_DEFINED__ */ + + +#ifndef __IAzOperation_FWD_DEFINED__ +#define __IAzOperation_FWD_DEFINED__ +typedef interface IAzOperation IAzOperation; + +#endif /* __IAzOperation_FWD_DEFINED__ */ + + +#ifndef __IAzOperations_FWD_DEFINED__ +#define __IAzOperations_FWD_DEFINED__ +typedef interface IAzOperations IAzOperations; + +#endif /* __IAzOperations_FWD_DEFINED__ */ + + +#ifndef __IAzTask_FWD_DEFINED__ +#define __IAzTask_FWD_DEFINED__ +typedef interface IAzTask IAzTask; + +#endif /* __IAzTask_FWD_DEFINED__ */ + + +#ifndef __IAzTasks_FWD_DEFINED__ +#define __IAzTasks_FWD_DEFINED__ +typedef interface IAzTasks IAzTasks; + +#endif /* __IAzTasks_FWD_DEFINED__ */ + + +#ifndef __IAzScope_FWD_DEFINED__ +#define __IAzScope_FWD_DEFINED__ +typedef interface IAzScope IAzScope; + +#endif /* __IAzScope_FWD_DEFINED__ */ + + +#ifndef __IAzScopes_FWD_DEFINED__ +#define __IAzScopes_FWD_DEFINED__ +typedef interface IAzScopes IAzScopes; + +#endif /* __IAzScopes_FWD_DEFINED__ */ + + +#ifndef __IAzApplicationGroup_FWD_DEFINED__ +#define __IAzApplicationGroup_FWD_DEFINED__ +typedef interface IAzApplicationGroup IAzApplicationGroup; + +#endif /* __IAzApplicationGroup_FWD_DEFINED__ */ + + +#ifndef __IAzApplicationGroups_FWD_DEFINED__ +#define __IAzApplicationGroups_FWD_DEFINED__ +typedef interface IAzApplicationGroups IAzApplicationGroups; + +#endif /* __IAzApplicationGroups_FWD_DEFINED__ */ + + +#ifndef __IAzRole_FWD_DEFINED__ +#define __IAzRole_FWD_DEFINED__ +typedef interface IAzRole IAzRole; + +#endif /* __IAzRole_FWD_DEFINED__ */ + + +#ifndef __IAzRoles_FWD_DEFINED__ +#define __IAzRoles_FWD_DEFINED__ +typedef interface IAzRoles IAzRoles; + +#endif /* __IAzRoles_FWD_DEFINED__ */ + + +#ifndef __IAzClientContext_FWD_DEFINED__ +#define __IAzClientContext_FWD_DEFINED__ +typedef interface IAzClientContext IAzClientContext; + +#endif /* __IAzClientContext_FWD_DEFINED__ */ + + +#ifndef __IAzClientContext2_FWD_DEFINED__ +#define __IAzClientContext2_FWD_DEFINED__ +typedef interface IAzClientContext2 IAzClientContext2; + +#endif /* __IAzClientContext2_FWD_DEFINED__ */ + + +#ifndef __IAzBizRuleContext_FWD_DEFINED__ +#define __IAzBizRuleContext_FWD_DEFINED__ +typedef interface IAzBizRuleContext IAzBizRuleContext; + +#endif /* __IAzBizRuleContext_FWD_DEFINED__ */ + + +#ifndef __IAzBizRuleParameters_FWD_DEFINED__ +#define __IAzBizRuleParameters_FWD_DEFINED__ +typedef interface IAzBizRuleParameters IAzBizRuleParameters; + +#endif /* __IAzBizRuleParameters_FWD_DEFINED__ */ + + +#ifndef __IAzBizRuleInterfaces_FWD_DEFINED__ +#define __IAzBizRuleInterfaces_FWD_DEFINED__ +typedef interface IAzBizRuleInterfaces IAzBizRuleInterfaces; + +#endif /* __IAzBizRuleInterfaces_FWD_DEFINED__ */ + + +#ifndef __IAzClientContext3_FWD_DEFINED__ +#define __IAzClientContext3_FWD_DEFINED__ +typedef interface IAzClientContext3 IAzClientContext3; + +#endif /* __IAzClientContext3_FWD_DEFINED__ */ + + +#ifndef __IAzScope2_FWD_DEFINED__ +#define __IAzScope2_FWD_DEFINED__ +typedef interface IAzScope2 IAzScope2; + +#endif /* __IAzScope2_FWD_DEFINED__ */ + + +#ifndef __IAzApplication3_FWD_DEFINED__ +#define __IAzApplication3_FWD_DEFINED__ +typedef interface IAzApplication3 IAzApplication3; + +#endif /* __IAzApplication3_FWD_DEFINED__ */ + + +#ifndef __IAzOperation2_FWD_DEFINED__ +#define __IAzOperation2_FWD_DEFINED__ +typedef interface IAzOperation2 IAzOperation2; + +#endif /* __IAzOperation2_FWD_DEFINED__ */ + + +#ifndef __IAzRoleDefinitions_FWD_DEFINED__ +#define __IAzRoleDefinitions_FWD_DEFINED__ +typedef interface IAzRoleDefinitions IAzRoleDefinitions; + +#endif /* __IAzRoleDefinitions_FWD_DEFINED__ */ + + +#ifndef __IAzRoleDefinition_FWD_DEFINED__ +#define __IAzRoleDefinition_FWD_DEFINED__ +typedef interface IAzRoleDefinition IAzRoleDefinition; + +#endif /* __IAzRoleDefinition_FWD_DEFINED__ */ + + +#ifndef __IAzRoleAssignment_FWD_DEFINED__ +#define __IAzRoleAssignment_FWD_DEFINED__ +typedef interface IAzRoleAssignment IAzRoleAssignment; + +#endif /* __IAzRoleAssignment_FWD_DEFINED__ */ + + +#ifndef __IAzRoleAssignments_FWD_DEFINED__ +#define __IAzRoleAssignments_FWD_DEFINED__ +typedef interface IAzRoleAssignments IAzRoleAssignments; + +#endif /* __IAzRoleAssignments_FWD_DEFINED__ */ + + +#ifndef __IAzPrincipalLocator_FWD_DEFINED__ +#define __IAzPrincipalLocator_FWD_DEFINED__ +typedef interface IAzPrincipalLocator IAzPrincipalLocator; + +#endif /* __IAzPrincipalLocator_FWD_DEFINED__ */ + + +#ifndef __IAzNameResolver_FWD_DEFINED__ +#define __IAzNameResolver_FWD_DEFINED__ +typedef interface IAzNameResolver IAzNameResolver; + +#endif /* __IAzNameResolver_FWD_DEFINED__ */ + + +#ifndef __IAzObjectPicker_FWD_DEFINED__ +#define __IAzObjectPicker_FWD_DEFINED__ +typedef interface IAzObjectPicker IAzObjectPicker; + +#endif /* __IAzObjectPicker_FWD_DEFINED__ */ + + +#ifndef __IAzApplicationGroup2_FWD_DEFINED__ +#define __IAzApplicationGroup2_FWD_DEFINED__ +typedef interface IAzApplicationGroup2 IAzApplicationGroup2; + +#endif /* __IAzApplicationGroup2_FWD_DEFINED__ */ + + +#ifndef __IAzTask2_FWD_DEFINED__ +#define __IAzTask2_FWD_DEFINED__ +typedef interface IAzTask2 IAzTask2; + +#endif /* __IAzTask2_FWD_DEFINED__ */ + + +#ifndef __IAzAuthorizationStore_FWD_DEFINED__ +#define __IAzAuthorizationStore_FWD_DEFINED__ +typedef interface IAzAuthorizationStore IAzAuthorizationStore; + +#endif /* __IAzAuthorizationStore_FWD_DEFINED__ */ + + +#ifndef __IAzAuthorizationStore2_FWD_DEFINED__ +#define __IAzAuthorizationStore2_FWD_DEFINED__ +typedef interface IAzAuthorizationStore2 IAzAuthorizationStore2; + +#endif /* __IAzAuthorizationStore2_FWD_DEFINED__ */ + + +#ifndef __IAzAuthorizationStore3_FWD_DEFINED__ +#define __IAzAuthorizationStore3_FWD_DEFINED__ +typedef interface IAzAuthorizationStore3 IAzAuthorizationStore3; + +#endif /* __IAzAuthorizationStore3_FWD_DEFINED__ */ + + +#ifndef __IAzApplication_FWD_DEFINED__ +#define __IAzApplication_FWD_DEFINED__ +typedef interface IAzApplication IAzApplication; + +#endif /* __IAzApplication_FWD_DEFINED__ */ + + +#ifndef __IAzApplication2_FWD_DEFINED__ +#define __IAzApplication2_FWD_DEFINED__ +typedef interface IAzApplication2 IAzApplication2; + +#endif /* __IAzApplication2_FWD_DEFINED__ */ + + +#ifndef __IAzApplication3_FWD_DEFINED__ +#define __IAzApplication3_FWD_DEFINED__ +typedef interface IAzApplication3 IAzApplication3; + +#endif /* __IAzApplication3_FWD_DEFINED__ */ + + +#ifndef __IAzApplications_FWD_DEFINED__ +#define __IAzApplications_FWD_DEFINED__ +typedef interface IAzApplications IAzApplications; + +#endif /* __IAzApplications_FWD_DEFINED__ */ + + +#ifndef __IAzOperation_FWD_DEFINED__ +#define __IAzOperation_FWD_DEFINED__ +typedef interface IAzOperation IAzOperation; + +#endif /* __IAzOperation_FWD_DEFINED__ */ + + +#ifndef __IAzOperation2_FWD_DEFINED__ +#define __IAzOperation2_FWD_DEFINED__ +typedef interface IAzOperation2 IAzOperation2; + +#endif /* __IAzOperation2_FWD_DEFINED__ */ + + +#ifndef __IAzOperations_FWD_DEFINED__ +#define __IAzOperations_FWD_DEFINED__ +typedef interface IAzOperations IAzOperations; + +#endif /* __IAzOperations_FWD_DEFINED__ */ + + +#ifndef __IAzTask_FWD_DEFINED__ +#define __IAzTask_FWD_DEFINED__ +typedef interface IAzTask IAzTask; + +#endif /* __IAzTask_FWD_DEFINED__ */ + + +#ifndef __IAzTask2_FWD_DEFINED__ +#define __IAzTask2_FWD_DEFINED__ +typedef interface IAzTask2 IAzTask2; + +#endif /* __IAzTask2_FWD_DEFINED__ */ + + +#ifndef __IAzTasks_FWD_DEFINED__ +#define __IAzTasks_FWD_DEFINED__ +typedef interface IAzTasks IAzTasks; + +#endif /* __IAzTasks_FWD_DEFINED__ */ + + +#ifndef __IAzRoleDefinition_FWD_DEFINED__ +#define __IAzRoleDefinition_FWD_DEFINED__ +typedef interface IAzRoleDefinition IAzRoleDefinition; + +#endif /* __IAzRoleDefinition_FWD_DEFINED__ */ + + +#ifndef __IAzRoleDefinitions_FWD_DEFINED__ +#define __IAzRoleDefinitions_FWD_DEFINED__ +typedef interface IAzRoleDefinitions IAzRoleDefinitions; + +#endif /* __IAzRoleDefinitions_FWD_DEFINED__ */ + + +#ifndef __IAzApplicationGroup_FWD_DEFINED__ +#define __IAzApplicationGroup_FWD_DEFINED__ +typedef interface IAzApplicationGroup IAzApplicationGroup; + +#endif /* __IAzApplicationGroup_FWD_DEFINED__ */ + + +#ifndef __IAzApplicationGroup2_FWD_DEFINED__ +#define __IAzApplicationGroup2_FWD_DEFINED__ +typedef interface IAzApplicationGroup2 IAzApplicationGroup2; + +#endif /* __IAzApplicationGroup2_FWD_DEFINED__ */ + + +#ifndef __IAzApplicationGroups_FWD_DEFINED__ +#define __IAzApplicationGroups_FWD_DEFINED__ +typedef interface IAzApplicationGroups IAzApplicationGroups; + +#endif /* __IAzApplicationGroups_FWD_DEFINED__ */ + + +#ifndef __IAzRole_FWD_DEFINED__ +#define __IAzRole_FWD_DEFINED__ +typedef interface IAzRole IAzRole; + +#endif /* __IAzRole_FWD_DEFINED__ */ + + +#ifndef __IAzRoles_FWD_DEFINED__ +#define __IAzRoles_FWD_DEFINED__ +typedef interface IAzRoles IAzRoles; + +#endif /* __IAzRoles_FWD_DEFINED__ */ + + +#ifndef __IAzRoleAssignment_FWD_DEFINED__ +#define __IAzRoleAssignment_FWD_DEFINED__ +typedef interface IAzRoleAssignment IAzRoleAssignment; + +#endif /* __IAzRoleAssignment_FWD_DEFINED__ */ + + +#ifndef __IAzRoleAssignments_FWD_DEFINED__ +#define __IAzRoleAssignments_FWD_DEFINED__ +typedef interface IAzRoleAssignments IAzRoleAssignments; + +#endif /* __IAzRoleAssignments_FWD_DEFINED__ */ + + +#ifndef __IAzScope_FWD_DEFINED__ +#define __IAzScope_FWD_DEFINED__ +typedef interface IAzScope IAzScope; + +#endif /* __IAzScope_FWD_DEFINED__ */ + + +#ifndef __IAzScope2_FWD_DEFINED__ +#define __IAzScope2_FWD_DEFINED__ +typedef interface IAzScope2 IAzScope2; + +#endif /* __IAzScope2_FWD_DEFINED__ */ + + +#ifndef __IAzScopes_FWD_DEFINED__ +#define __IAzScopes_FWD_DEFINED__ +typedef interface IAzScopes IAzScopes; + +#endif /* __IAzScopes_FWD_DEFINED__ */ + + +#ifndef __IAzClientContext_FWD_DEFINED__ +#define __IAzClientContext_FWD_DEFINED__ +typedef interface IAzClientContext IAzClientContext; + +#endif /* __IAzClientContext_FWD_DEFINED__ */ + + +#ifndef __IAzClientContext2_FWD_DEFINED__ +#define __IAzClientContext2_FWD_DEFINED__ +typedef interface IAzClientContext2 IAzClientContext2; + +#endif /* __IAzClientContext2_FWD_DEFINED__ */ + + +#ifndef __IAzClientContext3_FWD_DEFINED__ +#define __IAzClientContext3_FWD_DEFINED__ +typedef interface IAzClientContext3 IAzClientContext3; + +#endif /* __IAzClientContext3_FWD_DEFINED__ */ + + +#ifndef __IAzBizRuleContext_FWD_DEFINED__ +#define __IAzBizRuleContext_FWD_DEFINED__ +typedef interface IAzBizRuleContext IAzBizRuleContext; + +#endif /* __IAzBizRuleContext_FWD_DEFINED__ */ + + +#ifndef __IAzBizRuleParameters_FWD_DEFINED__ +#define __IAzBizRuleParameters_FWD_DEFINED__ +typedef interface IAzBizRuleParameters IAzBizRuleParameters; + +#endif /* __IAzBizRuleParameters_FWD_DEFINED__ */ + + +#ifndef __IAzBizRuleInterfaces_FWD_DEFINED__ +#define __IAzBizRuleInterfaces_FWD_DEFINED__ +typedef interface IAzBizRuleInterfaces IAzBizRuleInterfaces; + +#endif /* __IAzBizRuleInterfaces_FWD_DEFINED__ */ + + +#ifndef __IAzPrincipalLocator_FWD_DEFINED__ +#define __IAzPrincipalLocator_FWD_DEFINED__ +typedef interface IAzPrincipalLocator IAzPrincipalLocator; + +#endif /* __IAzPrincipalLocator_FWD_DEFINED__ */ + + +#ifndef __IAzNameResolver_FWD_DEFINED__ +#define __IAzNameResolver_FWD_DEFINED__ +typedef interface IAzNameResolver IAzNameResolver; + +#endif /* __IAzNameResolver_FWD_DEFINED__ */ + + +#ifndef __IAzObjectPicker_FWD_DEFINED__ +#define __IAzObjectPicker_FWD_DEFINED__ +typedef interface IAzObjectPicker IAzObjectPicker; + +#endif /* __IAzObjectPicker_FWD_DEFINED__ */ + + +#ifndef __AzAuthorizationStore_FWD_DEFINED__ +#define __AzAuthorizationStore_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AzAuthorizationStore AzAuthorizationStore; +#else +typedef struct AzAuthorizationStore AzAuthorizationStore; +#endif /* __cplusplus */ + +#endif /* __AzAuthorizationStore_FWD_DEFINED__ */ + + +#ifndef __AzBizRuleContext_FWD_DEFINED__ +#define __AzBizRuleContext_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AzBizRuleContext AzBizRuleContext; +#else +typedef struct AzBizRuleContext AzBizRuleContext; +#endif /* __cplusplus */ + +#endif /* __AzBizRuleContext_FWD_DEFINED__ */ + + +#ifndef __AzPrincipalLocator_FWD_DEFINED__ +#define __AzPrincipalLocator_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AzPrincipalLocator AzPrincipalLocator; +#else +typedef struct AzPrincipalLocator AzPrincipalLocator; +#endif /* __cplusplus */ + +#endif /* __AzPrincipalLocator_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_azroles_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// +// IAzAuthorizationStore interface id +// +//edbd9ca9-9b82-4f6a-9e8b-98301e450f14 +DEFINE_GUID(IID_IAzAuthorizationStore, 0xedbd9ca9, 0x9b82, 0x4f6a, 0x9e, 0x8b, 0x98, 0x30, 0x1e, 0x45, 0x0f, 0x14); +// +// IAzAuthorizationStore2 interface id +// +//b11e5584-d577-4273-b6c5-0973e0f8e80d +DEFINE_GUID(IID_IAzAuthorizationStore2,0xb11e5584, 0xd577, 0x4273, 0xb6, 0xc5, 0x9, 0x73, 0xe0, 0xf8, 0xe8, 0xd); +// +// IAzAuthorizationStore3 interface id +// +//abc08425-0c86-4fa0-9be3-7189956c926e +DEFINE_GUID(IID_IAzAuthorizationStore3,0xabc08425, 0x0c86, 0x4fa0, 0x9b, 0xe3, 0x71, 0x89, 0x95, 0x6c, 0x92, 0x6e); + +// +// AzAuthorizationStore class id +// +//b2bcff59-a757-4b0b-a1bc-ea69981da69e +DEFINE_GUID(CLSID_AzAuthorizationStore, 0xb2bcff59, 0xa757, 0x4b0b, 0xa1, 0xbc, 0xea, 0x69, 0x98, 0x1d, 0xa6, 0x9e); + +// +// IAzBizRuleContext interface id +// +//e192f17d-d59f-455e-a152-940316cd77b2 +DEFINE_GUID(IID_IAzBizRuleContext, 0xe192f17d, 0xd59f, 0x455e, 0xa1, 0x52, 0x94, 0x03, 0x16, 0xcd, 0x77, 0xb2); + +// +// AzBizRuleContext class id +// +//5c2dc96f-8d51-434b-b33c-379bccae77c3 +DEFINE_GUID(CLSID_AzBizRuleContext, 0x5c2dc96f, 0x8d51, 0x434b, 0xb3, 0x3c, 0x37, 0x9b, 0xcc, 0xae, 0x77, 0xc3); + +// +// AzPrincipalLocator class id +// +//483afb5d-70df-4e16-abdc-a1de4d015a3e +DEFINE_GUID(CLSID_AzPrincipalLocator, 0x483afb5d, 0x70df, 0x4e16, 0xab, 0xdc, 0xa1, 0xde, 0x4d, 0x01, 0x5a, 0x3e); + +// +// IAzPrincipalLocator interface id +// +//e5c3507d-ad6a-4992-9c7f-74ab480b44cc +DEFINE_GUID(IID_IAzPrincipalLocator, 0xe5c3507d, 0xad6a, 0x4992, 0x9c, 0x7f, 0x74, 0xab, 0x48, 0x0b, 0x44, 0xcc); + +// +// IAzNameResolver interface id +// +//504d0f15-73e2-43df-a870-a64f40714f53 +DEFINE_GUID(IID_IAzNameResolver, 0x504d0f15, 0x73e2, 0x43df, 0xa8, 0x70, 0xa6, 0x4f, 0x40, 0x71, 0x4f, 0x53); + +// +// IAzObjectPicker interface id +// +//63130a48-699a-42d8-bf01-c62ac3fb79f9 +DEFINE_GUID(IID_IAzObjectPicker, 0x63130a48, 0x699a, 0x42d8, 0xbf, 0x01, 0xc6, 0x2a, 0xc3, 0xfb, 0x79, 0xf9); + +// +// IAzApplication3 interface id +// +//181c845e-7196-4a7d-ac2e-020c0bb7a303 +DEFINE_GUID(IID_IAzApplication3, 0x181c845e, 0x7196, 0x4a7d, 0xac, 0x2e, 0x02, 0x0c, 0x0b, 0xb7, 0xa3, 0x03); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_azroles_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_azroles_0000_0000_v0_0_s_ifspec; + +#ifndef __IAzAuthorizationStore_INTERFACE_DEFINED__ +#define __IAzAuthorizationStore_INTERFACE_DEFINED__ + +/* interface IAzAuthorizationStore */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzAuthorizationStore; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("edbd9ca9-9b82-4f6a-9e8b-98301e450f14") + IAzAuthorizationStore : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplicationData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ApplicationData( + /* [in] */ __RPC__in BSTR bstrApplicationData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DomainTimeout( + /* [retval][out] */ __RPC__out LONG *plProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_DomainTimeout( + /* [in] */ LONG lProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ScriptEngineTimeout( + /* [retval][out] */ __RPC__out LONG *plProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ScriptEngineTimeout( + /* [in] */ LONG lProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MaxScriptEngines( + /* [retval][out] */ __RPC__out LONG *plProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_MaxScriptEngines( + /* [in] */ LONG lProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_GenerateAudits( + /* [retval][out] */ __RPC__out BOOL *pbProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_GenerateAudits( + /* [in] */ BOOL bProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Writable( + /* [retval][out] */ __RPC__out BOOL *pfProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyAdministrators( + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyReaders( + /* [retval][out] */ __RPC__out VARIANT *pvarReaders) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyAdministrator( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyAdministrator( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyReader( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyReader( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ LONG lFlags, + /* [in] */ __RPC__in BSTR bstrPolicyURL, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateCache( + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Delete( + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Applications( + /* [retval][out] */ __RPC__deref_out_opt IAzApplications **ppAppCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenApplication( + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication **ppApplication) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateApplication( + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication **ppApplication) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteApplication( + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplicationGroups( + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateApplicationGroup( + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenApplicationGroup( + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteApplicationGroup( + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Submit( + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DelegatedPolicyUsers( + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddDelegatedPolicyUser( + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteDelegatedPolicyUser( + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_TargetMachine( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTargetMachine) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplyStoreSacl( + /* [retval][out] */ __RPC__out BOOL *pbApplyStoreSacl) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ApplyStoreSacl( + /* [in] */ BOOL bApplyStoreSacl) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyAdministratorsName( + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyReadersName( + /* [retval][out] */ __RPC__out VARIANT *pvarReaders) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyAdministratorName( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyAdministratorName( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyReaderName( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyReaderName( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DelegatedPolicyUsersName( + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddDelegatedPolicyUserName( + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteDelegatedPolicyUserName( + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE CloseApplication( + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [in] */ LONG lFlag) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzAuthorizationStoreVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzAuthorizationStore * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzAuthorizationStore * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzAuthorizationStore * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzAuthorizationStore * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_DomainTimeout) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainTimeout )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_DomainTimeout) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DomainTimeout )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ScriptEngineTimeout) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScriptEngineTimeout )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_ScriptEngineTimeout) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ScriptEngineTimeout )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_MaxScriptEngines) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxScriptEngines )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_MaxScriptEngines) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxScriptEngines )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_GenerateAudits) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_GenerateAudits )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out BOOL *pbProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_GenerateAudits) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_GenerateAudits )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ BOOL bProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyAdministrators) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministrators )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyReaders) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReaders )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministrator )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministrator )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyReader) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReader )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyReader) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReader )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ LONG lFlags, + /* [in] */ __RPC__in BSTR bstrPolicyURL, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, UpdateCache) + HRESULT ( STDMETHODCALLTYPE *UpdateCache )( + __RPC__in IAzAuthorizationStore * This, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IAzAuthorizationStore * This, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_Applications) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Applications )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplications **ppAppCollection); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, OpenApplication) + HRESULT ( STDMETHODCALLTYPE *OpenApplication )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication **ppApplication); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, CreateApplication) + HRESULT ( STDMETHODCALLTYPE *CreateApplication )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication **ppApplication); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteApplication) + HRESULT ( STDMETHODCALLTYPE *DeleteApplication )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ApplicationGroups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationGroups )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, CreateApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *CreateApplicationGroup )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, OpenApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *OpenApplicationGroup )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *DeleteApplicationGroup )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzAuthorizationStore * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_DelegatedPolicyUsers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsers )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUser )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUser )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_TargetMachine) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TargetMachine )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTargetMachine); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ApplyStoreSacl) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplyStoreSacl )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out BOOL *pbApplyStoreSacl); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_ApplyStoreSacl) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplyStoreSacl )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ BOOL bApplyStoreSacl); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyAdministratorsName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministratorsName )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyReadersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReadersName )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministratorName )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministratorName )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReaderName )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReaderName )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_DelegatedPolicyUsersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsersName )( + __RPC__in IAzAuthorizationStore * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUserName )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUserName )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, CloseApplication) + HRESULT ( STDMETHODCALLTYPE *CloseApplication )( + __RPC__in IAzAuthorizationStore * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [in] */ LONG lFlag); + + END_INTERFACE + } IAzAuthorizationStoreVtbl; + + interface IAzAuthorizationStore + { + CONST_VTBL struct IAzAuthorizationStoreVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzAuthorizationStore_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzAuthorizationStore_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzAuthorizationStore_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzAuthorizationStore_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzAuthorizationStore_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzAuthorizationStore_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzAuthorizationStore_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzAuthorizationStore_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzAuthorizationStore_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzAuthorizationStore_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzAuthorizationStore_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzAuthorizationStore_get_DomainTimeout(This,plProp) \ + ( (This)->lpVtbl -> get_DomainTimeout(This,plProp) ) + +#define IAzAuthorizationStore_put_DomainTimeout(This,lProp) \ + ( (This)->lpVtbl -> put_DomainTimeout(This,lProp) ) + +#define IAzAuthorizationStore_get_ScriptEngineTimeout(This,plProp) \ + ( (This)->lpVtbl -> get_ScriptEngineTimeout(This,plProp) ) + +#define IAzAuthorizationStore_put_ScriptEngineTimeout(This,lProp) \ + ( (This)->lpVtbl -> put_ScriptEngineTimeout(This,lProp) ) + +#define IAzAuthorizationStore_get_MaxScriptEngines(This,plProp) \ + ( (This)->lpVtbl -> get_MaxScriptEngines(This,plProp) ) + +#define IAzAuthorizationStore_put_MaxScriptEngines(This,lProp) \ + ( (This)->lpVtbl -> put_MaxScriptEngines(This,lProp) ) + +#define IAzAuthorizationStore_get_GenerateAudits(This,pbProp) \ + ( (This)->lpVtbl -> get_GenerateAudits(This,pbProp) ) + +#define IAzAuthorizationStore_put_GenerateAudits(This,bProp) \ + ( (This)->lpVtbl -> put_GenerateAudits(This,bProp) ) + +#define IAzAuthorizationStore_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzAuthorizationStore_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzAuthorizationStore_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzAuthorizationStore_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzAuthorizationStore_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzAuthorizationStore_get_PolicyAdministrators(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministrators(This,pvarAdmins) ) + +#define IAzAuthorizationStore_get_PolicyReaders(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReaders(This,pvarReaders) ) + +#define IAzAuthorizationStore_AddPolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore_DeletePolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore_AddPolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReader(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore_DeletePolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReader(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore_Initialize(This,lFlags,bstrPolicyURL,varReserved) \ + ( (This)->lpVtbl -> Initialize(This,lFlags,bstrPolicyURL,varReserved) ) + +#define IAzAuthorizationStore_UpdateCache(This,varReserved) \ + ( (This)->lpVtbl -> UpdateCache(This,varReserved) ) + +#define IAzAuthorizationStore_Delete(This,varReserved) \ + ( (This)->lpVtbl -> Delete(This,varReserved) ) + +#define IAzAuthorizationStore_get_Applications(This,ppAppCollection) \ + ( (This)->lpVtbl -> get_Applications(This,ppAppCollection) ) + +#define IAzAuthorizationStore_OpenApplication(This,bstrApplicationName,varReserved,ppApplication) \ + ( (This)->lpVtbl -> OpenApplication(This,bstrApplicationName,varReserved,ppApplication) ) + +#define IAzAuthorizationStore_CreateApplication(This,bstrApplicationName,varReserved,ppApplication) \ + ( (This)->lpVtbl -> CreateApplication(This,bstrApplicationName,varReserved,ppApplication) ) + +#define IAzAuthorizationStore_DeleteApplication(This,bstrApplicationName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplication(This,bstrApplicationName,varReserved) ) + +#define IAzAuthorizationStore_get_ApplicationGroups(This,ppGroupCollection) \ + ( (This)->lpVtbl -> get_ApplicationGroups(This,ppGroupCollection) ) + +#define IAzAuthorizationStore_CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzAuthorizationStore_OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzAuthorizationStore_DeleteApplicationGroup(This,bstrGroupName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplicationGroup(This,bstrGroupName,varReserved) ) + +#define IAzAuthorizationStore_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzAuthorizationStore_get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) ) + +#define IAzAuthorizationStore_AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore_DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore_get_TargetMachine(This,pbstrTargetMachine) \ + ( (This)->lpVtbl -> get_TargetMachine(This,pbstrTargetMachine) ) + +#define IAzAuthorizationStore_get_ApplyStoreSacl(This,pbApplyStoreSacl) \ + ( (This)->lpVtbl -> get_ApplyStoreSacl(This,pbApplyStoreSacl) ) + +#define IAzAuthorizationStore_put_ApplyStoreSacl(This,bApplyStoreSacl) \ + ( (This)->lpVtbl -> put_ApplyStoreSacl(This,bApplyStoreSacl) ) + +#define IAzAuthorizationStore_get_PolicyAdministratorsName(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministratorsName(This,pvarAdmins) ) + +#define IAzAuthorizationStore_get_PolicyReadersName(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReadersName(This,pvarReaders) ) + +#define IAzAuthorizationStore_AddPolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore_DeletePolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore_AddPolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore_DeletePolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore_get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) ) + +#define IAzAuthorizationStore_AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore_DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore_CloseApplication(This,bstrApplicationName,lFlag) \ + ( (This)->lpVtbl -> CloseApplication(This,bstrApplicationName,lFlag) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzAuthorizationStore_INTERFACE_DEFINED__ */ + + +#ifndef __IAzAuthorizationStore2_INTERFACE_DEFINED__ +#define __IAzAuthorizationStore2_INTERFACE_DEFINED__ + +/* interface IAzAuthorizationStore2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzAuthorizationStore2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b11e5584-d577-4273-b6c5-0973e0f8e80d") + IAzAuthorizationStore2 : public IAzAuthorizationStore + { + public: + virtual HRESULT STDMETHODCALLTYPE OpenApplication2( + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication2 **ppApplication) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateApplication2( + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication2 **ppApplication) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzAuthorizationStore2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzAuthorizationStore2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzAuthorizationStore2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzAuthorizationStore2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzAuthorizationStore2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_DomainTimeout) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainTimeout )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_DomainTimeout) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DomainTimeout )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ScriptEngineTimeout) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScriptEngineTimeout )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_ScriptEngineTimeout) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ScriptEngineTimeout )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_MaxScriptEngines) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxScriptEngines )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_MaxScriptEngines) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxScriptEngines )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_GenerateAudits) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_GenerateAudits )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out BOOL *pbProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_GenerateAudits) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_GenerateAudits )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ BOOL bProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyAdministrators) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministrators )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyReaders) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReaders )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministrator )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministrator )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyReader) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReader )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyReader) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReader )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ LONG lFlags, + /* [in] */ __RPC__in BSTR bstrPolicyURL, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, UpdateCache) + HRESULT ( STDMETHODCALLTYPE *UpdateCache )( + __RPC__in IAzAuthorizationStore2 * This, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IAzAuthorizationStore2 * This, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_Applications) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Applications )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplications **ppAppCollection); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, OpenApplication) + HRESULT ( STDMETHODCALLTYPE *OpenApplication )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication **ppApplication); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, CreateApplication) + HRESULT ( STDMETHODCALLTYPE *CreateApplication )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication **ppApplication); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteApplication) + HRESULT ( STDMETHODCALLTYPE *DeleteApplication )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ApplicationGroups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationGroups )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, CreateApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *CreateApplicationGroup )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, OpenApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *OpenApplicationGroup )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *DeleteApplicationGroup )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzAuthorizationStore2 * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_DelegatedPolicyUsers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsers )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUser )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUser )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_TargetMachine) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TargetMachine )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTargetMachine); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ApplyStoreSacl) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplyStoreSacl )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out BOOL *pbApplyStoreSacl); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_ApplyStoreSacl) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplyStoreSacl )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ BOOL bApplyStoreSacl); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyAdministratorsName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministratorsName )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyReadersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReadersName )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministratorName )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministratorName )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReaderName )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReaderName )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_DelegatedPolicyUsersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsersName )( + __RPC__in IAzAuthorizationStore2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUserName )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUserName )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, CloseApplication) + HRESULT ( STDMETHODCALLTYPE *CloseApplication )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [in] */ LONG lFlag); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore2, OpenApplication2) + HRESULT ( STDMETHODCALLTYPE *OpenApplication2 )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication2 **ppApplication); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore2, CreateApplication2) + HRESULT ( STDMETHODCALLTYPE *CreateApplication2 )( + __RPC__in IAzAuthorizationStore2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication2 **ppApplication); + + END_INTERFACE + } IAzAuthorizationStore2Vtbl; + + interface IAzAuthorizationStore2 + { + CONST_VTBL struct IAzAuthorizationStore2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzAuthorizationStore2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzAuthorizationStore2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzAuthorizationStore2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzAuthorizationStore2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzAuthorizationStore2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzAuthorizationStore2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzAuthorizationStore2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzAuthorizationStore2_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzAuthorizationStore2_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzAuthorizationStore2_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzAuthorizationStore2_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzAuthorizationStore2_get_DomainTimeout(This,plProp) \ + ( (This)->lpVtbl -> get_DomainTimeout(This,plProp) ) + +#define IAzAuthorizationStore2_put_DomainTimeout(This,lProp) \ + ( (This)->lpVtbl -> put_DomainTimeout(This,lProp) ) + +#define IAzAuthorizationStore2_get_ScriptEngineTimeout(This,plProp) \ + ( (This)->lpVtbl -> get_ScriptEngineTimeout(This,plProp) ) + +#define IAzAuthorizationStore2_put_ScriptEngineTimeout(This,lProp) \ + ( (This)->lpVtbl -> put_ScriptEngineTimeout(This,lProp) ) + +#define IAzAuthorizationStore2_get_MaxScriptEngines(This,plProp) \ + ( (This)->lpVtbl -> get_MaxScriptEngines(This,plProp) ) + +#define IAzAuthorizationStore2_put_MaxScriptEngines(This,lProp) \ + ( (This)->lpVtbl -> put_MaxScriptEngines(This,lProp) ) + +#define IAzAuthorizationStore2_get_GenerateAudits(This,pbProp) \ + ( (This)->lpVtbl -> get_GenerateAudits(This,pbProp) ) + +#define IAzAuthorizationStore2_put_GenerateAudits(This,bProp) \ + ( (This)->lpVtbl -> put_GenerateAudits(This,bProp) ) + +#define IAzAuthorizationStore2_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzAuthorizationStore2_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzAuthorizationStore2_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzAuthorizationStore2_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzAuthorizationStore2_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzAuthorizationStore2_get_PolicyAdministrators(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministrators(This,pvarAdmins) ) + +#define IAzAuthorizationStore2_get_PolicyReaders(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReaders(This,pvarReaders) ) + +#define IAzAuthorizationStore2_AddPolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore2_DeletePolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore2_AddPolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReader(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore2_DeletePolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReader(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore2_Initialize(This,lFlags,bstrPolicyURL,varReserved) \ + ( (This)->lpVtbl -> Initialize(This,lFlags,bstrPolicyURL,varReserved) ) + +#define IAzAuthorizationStore2_UpdateCache(This,varReserved) \ + ( (This)->lpVtbl -> UpdateCache(This,varReserved) ) + +#define IAzAuthorizationStore2_Delete(This,varReserved) \ + ( (This)->lpVtbl -> Delete(This,varReserved) ) + +#define IAzAuthorizationStore2_get_Applications(This,ppAppCollection) \ + ( (This)->lpVtbl -> get_Applications(This,ppAppCollection) ) + +#define IAzAuthorizationStore2_OpenApplication(This,bstrApplicationName,varReserved,ppApplication) \ + ( (This)->lpVtbl -> OpenApplication(This,bstrApplicationName,varReserved,ppApplication) ) + +#define IAzAuthorizationStore2_CreateApplication(This,bstrApplicationName,varReserved,ppApplication) \ + ( (This)->lpVtbl -> CreateApplication(This,bstrApplicationName,varReserved,ppApplication) ) + +#define IAzAuthorizationStore2_DeleteApplication(This,bstrApplicationName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplication(This,bstrApplicationName,varReserved) ) + +#define IAzAuthorizationStore2_get_ApplicationGroups(This,ppGroupCollection) \ + ( (This)->lpVtbl -> get_ApplicationGroups(This,ppGroupCollection) ) + +#define IAzAuthorizationStore2_CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzAuthorizationStore2_OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzAuthorizationStore2_DeleteApplicationGroup(This,bstrGroupName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplicationGroup(This,bstrGroupName,varReserved) ) + +#define IAzAuthorizationStore2_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzAuthorizationStore2_get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) ) + +#define IAzAuthorizationStore2_AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore2_DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore2_get_TargetMachine(This,pbstrTargetMachine) \ + ( (This)->lpVtbl -> get_TargetMachine(This,pbstrTargetMachine) ) + +#define IAzAuthorizationStore2_get_ApplyStoreSacl(This,pbApplyStoreSacl) \ + ( (This)->lpVtbl -> get_ApplyStoreSacl(This,pbApplyStoreSacl) ) + +#define IAzAuthorizationStore2_put_ApplyStoreSacl(This,bApplyStoreSacl) \ + ( (This)->lpVtbl -> put_ApplyStoreSacl(This,bApplyStoreSacl) ) + +#define IAzAuthorizationStore2_get_PolicyAdministratorsName(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministratorsName(This,pvarAdmins) ) + +#define IAzAuthorizationStore2_get_PolicyReadersName(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReadersName(This,pvarReaders) ) + +#define IAzAuthorizationStore2_AddPolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore2_DeletePolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore2_AddPolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore2_DeletePolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore2_get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) ) + +#define IAzAuthorizationStore2_AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore2_DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore2_CloseApplication(This,bstrApplicationName,lFlag) \ + ( (This)->lpVtbl -> CloseApplication(This,bstrApplicationName,lFlag) ) + + +#define IAzAuthorizationStore2_OpenApplication2(This,bstrApplicationName,varReserved,ppApplication) \ + ( (This)->lpVtbl -> OpenApplication2(This,bstrApplicationName,varReserved,ppApplication) ) + +#define IAzAuthorizationStore2_CreateApplication2(This,bstrApplicationName,varReserved,ppApplication) \ + ( (This)->lpVtbl -> CreateApplication2(This,bstrApplicationName,varReserved,ppApplication) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzAuthorizationStore2_INTERFACE_DEFINED__ */ + + +#ifndef __IAzAuthorizationStore3_INTERFACE_DEFINED__ +#define __IAzAuthorizationStore3_INTERFACE_DEFINED__ + +/* interface IAzAuthorizationStore3 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzAuthorizationStore3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("abc08425-0c86-4fa0-9be3-7189956c926e") + IAzAuthorizationStore3 : public IAzAuthorizationStore2 + { + public: + virtual HRESULT STDMETHODCALLTYPE IsUpdateNeeded( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsUpdateNeeded) = 0; + + virtual HRESULT STDMETHODCALLTYPE BizruleGroupSupported( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSupported) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpgradeStoresFunctionalLevel( + /* [in] */ LONG lFunctionalLevel) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsFunctionalLevelUpgradeSupported( + /* [in] */ LONG lFunctionalLevel, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSupported) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSchemaVersion( + /* [out] */ __RPC__out LONG *plMajorVersion, + /* [out] */ __RPC__out LONG *plMinorVersion) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzAuthorizationStore3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzAuthorizationStore3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzAuthorizationStore3 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzAuthorizationStore3 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzAuthorizationStore3 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_DomainTimeout) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainTimeout )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_DomainTimeout) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DomainTimeout )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ScriptEngineTimeout) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ScriptEngineTimeout )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_ScriptEngineTimeout) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ScriptEngineTimeout )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_MaxScriptEngines) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxScriptEngines )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_MaxScriptEngines) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_MaxScriptEngines )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_GenerateAudits) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_GenerateAudits )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out BOOL *pbProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_GenerateAudits) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_GenerateAudits )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ BOOL bProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyAdministrators) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministrators )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyReaders) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReaders )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministrator )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministrator )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyReader) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReader )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyReader) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReader )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ LONG lFlags, + /* [in] */ __RPC__in BSTR bstrPolicyURL, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, UpdateCache) + HRESULT ( STDMETHODCALLTYPE *UpdateCache )( + __RPC__in IAzAuthorizationStore3 * This, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IAzAuthorizationStore3 * This, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_Applications) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Applications )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplications **ppAppCollection); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, OpenApplication) + HRESULT ( STDMETHODCALLTYPE *OpenApplication )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication **ppApplication); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, CreateApplication) + HRESULT ( STDMETHODCALLTYPE *CreateApplication )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication **ppApplication); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteApplication) + HRESULT ( STDMETHODCALLTYPE *DeleteApplication )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ApplicationGroups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationGroups )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, CreateApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *CreateApplicationGroup )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, OpenApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *OpenApplicationGroup )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *DeleteApplicationGroup )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzAuthorizationStore3 * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_DelegatedPolicyUsers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsers )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUser )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUser )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_TargetMachine) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TargetMachine )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTargetMachine); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_ApplyStoreSacl) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplyStoreSacl )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out BOOL *pbApplyStoreSacl); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, put_ApplyStoreSacl) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplyStoreSacl )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ BOOL bApplyStoreSacl); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyAdministratorsName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministratorsName )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_PolicyReadersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReadersName )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministratorName )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministratorName )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddPolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReaderName )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeletePolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReaderName )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, get_DelegatedPolicyUsersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsersName )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, AddDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUserName )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, DeleteDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUserName )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore, CloseApplication) + HRESULT ( STDMETHODCALLTYPE *CloseApplication )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [in] */ LONG lFlag); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore2, OpenApplication2) + HRESULT ( STDMETHODCALLTYPE *OpenApplication2 )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication2 **ppApplication); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore2, CreateApplication2) + HRESULT ( STDMETHODCALLTYPE *CreateApplication2 )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ __RPC__in BSTR bstrApplicationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplication2 **ppApplication); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore3, IsUpdateNeeded) + HRESULT ( STDMETHODCALLTYPE *IsUpdateNeeded )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsUpdateNeeded); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore3, BizruleGroupSupported) + HRESULT ( STDMETHODCALLTYPE *BizruleGroupSupported )( + __RPC__in IAzAuthorizationStore3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSupported); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore3, UpgradeStoresFunctionalLevel) + HRESULT ( STDMETHODCALLTYPE *UpgradeStoresFunctionalLevel )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ LONG lFunctionalLevel); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore3, IsFunctionalLevelUpgradeSupported) + HRESULT ( STDMETHODCALLTYPE *IsFunctionalLevelUpgradeSupported )( + __RPC__in IAzAuthorizationStore3 * This, + /* [in] */ LONG lFunctionalLevel, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbSupported); + + DECLSPEC_XFGVIRT(IAzAuthorizationStore3, GetSchemaVersion) + HRESULT ( STDMETHODCALLTYPE *GetSchemaVersion )( + __RPC__in IAzAuthorizationStore3 * This, + /* [out] */ __RPC__out LONG *plMajorVersion, + /* [out] */ __RPC__out LONG *plMinorVersion); + + END_INTERFACE + } IAzAuthorizationStore3Vtbl; + + interface IAzAuthorizationStore3 + { + CONST_VTBL struct IAzAuthorizationStore3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzAuthorizationStore3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzAuthorizationStore3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzAuthorizationStore3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzAuthorizationStore3_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzAuthorizationStore3_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzAuthorizationStore3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzAuthorizationStore3_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzAuthorizationStore3_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzAuthorizationStore3_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzAuthorizationStore3_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzAuthorizationStore3_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzAuthorizationStore3_get_DomainTimeout(This,plProp) \ + ( (This)->lpVtbl -> get_DomainTimeout(This,plProp) ) + +#define IAzAuthorizationStore3_put_DomainTimeout(This,lProp) \ + ( (This)->lpVtbl -> put_DomainTimeout(This,lProp) ) + +#define IAzAuthorizationStore3_get_ScriptEngineTimeout(This,plProp) \ + ( (This)->lpVtbl -> get_ScriptEngineTimeout(This,plProp) ) + +#define IAzAuthorizationStore3_put_ScriptEngineTimeout(This,lProp) \ + ( (This)->lpVtbl -> put_ScriptEngineTimeout(This,lProp) ) + +#define IAzAuthorizationStore3_get_MaxScriptEngines(This,plProp) \ + ( (This)->lpVtbl -> get_MaxScriptEngines(This,plProp) ) + +#define IAzAuthorizationStore3_put_MaxScriptEngines(This,lProp) \ + ( (This)->lpVtbl -> put_MaxScriptEngines(This,lProp) ) + +#define IAzAuthorizationStore3_get_GenerateAudits(This,pbProp) \ + ( (This)->lpVtbl -> get_GenerateAudits(This,pbProp) ) + +#define IAzAuthorizationStore3_put_GenerateAudits(This,bProp) \ + ( (This)->lpVtbl -> put_GenerateAudits(This,bProp) ) + +#define IAzAuthorizationStore3_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzAuthorizationStore3_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzAuthorizationStore3_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzAuthorizationStore3_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzAuthorizationStore3_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzAuthorizationStore3_get_PolicyAdministrators(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministrators(This,pvarAdmins) ) + +#define IAzAuthorizationStore3_get_PolicyReaders(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReaders(This,pvarReaders) ) + +#define IAzAuthorizationStore3_AddPolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore3_DeletePolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore3_AddPolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReader(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore3_DeletePolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReader(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore3_Initialize(This,lFlags,bstrPolicyURL,varReserved) \ + ( (This)->lpVtbl -> Initialize(This,lFlags,bstrPolicyURL,varReserved) ) + +#define IAzAuthorizationStore3_UpdateCache(This,varReserved) \ + ( (This)->lpVtbl -> UpdateCache(This,varReserved) ) + +#define IAzAuthorizationStore3_Delete(This,varReserved) \ + ( (This)->lpVtbl -> Delete(This,varReserved) ) + +#define IAzAuthorizationStore3_get_Applications(This,ppAppCollection) \ + ( (This)->lpVtbl -> get_Applications(This,ppAppCollection) ) + +#define IAzAuthorizationStore3_OpenApplication(This,bstrApplicationName,varReserved,ppApplication) \ + ( (This)->lpVtbl -> OpenApplication(This,bstrApplicationName,varReserved,ppApplication) ) + +#define IAzAuthorizationStore3_CreateApplication(This,bstrApplicationName,varReserved,ppApplication) \ + ( (This)->lpVtbl -> CreateApplication(This,bstrApplicationName,varReserved,ppApplication) ) + +#define IAzAuthorizationStore3_DeleteApplication(This,bstrApplicationName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplication(This,bstrApplicationName,varReserved) ) + +#define IAzAuthorizationStore3_get_ApplicationGroups(This,ppGroupCollection) \ + ( (This)->lpVtbl -> get_ApplicationGroups(This,ppGroupCollection) ) + +#define IAzAuthorizationStore3_CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzAuthorizationStore3_OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzAuthorizationStore3_DeleteApplicationGroup(This,bstrGroupName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplicationGroup(This,bstrGroupName,varReserved) ) + +#define IAzAuthorizationStore3_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzAuthorizationStore3_get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) ) + +#define IAzAuthorizationStore3_AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore3_DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore3_get_TargetMachine(This,pbstrTargetMachine) \ + ( (This)->lpVtbl -> get_TargetMachine(This,pbstrTargetMachine) ) + +#define IAzAuthorizationStore3_get_ApplyStoreSacl(This,pbApplyStoreSacl) \ + ( (This)->lpVtbl -> get_ApplyStoreSacl(This,pbApplyStoreSacl) ) + +#define IAzAuthorizationStore3_put_ApplyStoreSacl(This,bApplyStoreSacl) \ + ( (This)->lpVtbl -> put_ApplyStoreSacl(This,bApplyStoreSacl) ) + +#define IAzAuthorizationStore3_get_PolicyAdministratorsName(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministratorsName(This,pvarAdmins) ) + +#define IAzAuthorizationStore3_get_PolicyReadersName(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReadersName(This,pvarReaders) ) + +#define IAzAuthorizationStore3_AddPolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore3_DeletePolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzAuthorizationStore3_AddPolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore3_DeletePolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzAuthorizationStore3_get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) ) + +#define IAzAuthorizationStore3_AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore3_DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzAuthorizationStore3_CloseApplication(This,bstrApplicationName,lFlag) \ + ( (This)->lpVtbl -> CloseApplication(This,bstrApplicationName,lFlag) ) + + +#define IAzAuthorizationStore3_OpenApplication2(This,bstrApplicationName,varReserved,ppApplication) \ + ( (This)->lpVtbl -> OpenApplication2(This,bstrApplicationName,varReserved,ppApplication) ) + +#define IAzAuthorizationStore3_CreateApplication2(This,bstrApplicationName,varReserved,ppApplication) \ + ( (This)->lpVtbl -> CreateApplication2(This,bstrApplicationName,varReserved,ppApplication) ) + + +#define IAzAuthorizationStore3_IsUpdateNeeded(This,pbIsUpdateNeeded) \ + ( (This)->lpVtbl -> IsUpdateNeeded(This,pbIsUpdateNeeded) ) + +#define IAzAuthorizationStore3_BizruleGroupSupported(This,pbSupported) \ + ( (This)->lpVtbl -> BizruleGroupSupported(This,pbSupported) ) + +#define IAzAuthorizationStore3_UpgradeStoresFunctionalLevel(This,lFunctionalLevel) \ + ( (This)->lpVtbl -> UpgradeStoresFunctionalLevel(This,lFunctionalLevel) ) + +#define IAzAuthorizationStore3_IsFunctionalLevelUpgradeSupported(This,lFunctionalLevel,pbSupported) \ + ( (This)->lpVtbl -> IsFunctionalLevelUpgradeSupported(This,lFunctionalLevel,pbSupported) ) + +#define IAzAuthorizationStore3_GetSchemaVersion(This,plMajorVersion,plMinorVersion) \ + ( (This)->lpVtbl -> GetSchemaVersion(This,plMajorVersion,plMinorVersion) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzAuthorizationStore3_INTERFACE_DEFINED__ */ + + +#ifndef __IAzApplication_INTERFACE_DEFINED__ +#define __IAzApplication_INTERFACE_DEFINED__ + +/* interface IAzApplication */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzApplication; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("987bc7c7-b813-4d27-bede-6ba5ae867e95") + IAzApplication : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplicationData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ApplicationData( + /* [in] */ __RPC__in BSTR bstrApplicationData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AuthzInterfaceClsid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AuthzInterfaceClsid( + /* [in] */ __RPC__in BSTR bstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Version( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Version( + /* [in] */ __RPC__in BSTR bstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_GenerateAudits( + /* [retval][out] */ __RPC__out BOOL *pbProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_GenerateAudits( + /* [in] */ BOOL bProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplyStoreSacl( + /* [retval][out] */ __RPC__out BOOL *pbProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ApplyStoreSacl( + /* [in] */ BOOL bProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Writable( + /* [retval][out] */ __RPC__out BOOL *pfProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyAdministrators( + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyReaders( + /* [retval][out] */ __RPC__out VARIANT *pvarReaders) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyAdministrator( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyAdministrator( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyReader( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyReader( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Scopes( + /* [retval][out] */ __RPC__deref_out_opt IAzScopes **ppScopeCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenScope( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzScope **ppScope) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateScope( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzScope **ppScope) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteScope( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Operations( + /* [retval][out] */ __RPC__deref_out_opt IAzOperations **ppOperationCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenOperation( + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzOperation **ppOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateOperation( + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzOperation **ppOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteOperation( + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Tasks( + /* [retval][out] */ __RPC__deref_out_opt IAzTasks **ppTaskCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenTask( + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateTask( + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteTask( + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplicationGroups( + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenApplicationGroup( + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateApplicationGroup( + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteApplicationGroup( + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Roles( + /* [retval][out] */ __RPC__deref_out_opt IAzRoles **ppRoleCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenRole( + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRole( + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRole( + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeClientContextFromToken( + /* [in] */ ULONGLONG ullTokenHandle, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Submit( + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeClientContextFromName( + /* [in] */ __RPC__in BSTR ClientName, + /* [defaultvalue][in] */ __RPC__in BSTR DomainName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DelegatedPolicyUsers( + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddDelegatedPolicyUser( + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteDelegatedPolicyUser( + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeClientContextFromStringSid( + /* [in] */ __RPC__in BSTR SidString, + /* [in] */ LONG lOptions, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyAdministratorsName( + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyReadersName( + /* [retval][out] */ __RPC__out VARIANT *pvarReaders) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyAdministratorName( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyAdministratorName( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyReaderName( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyReaderName( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DelegatedPolicyUsersName( + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddDelegatedPolicyUserName( + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteDelegatedPolicyUserName( + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzApplicationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzApplication * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzApplication * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzApplication * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzApplication * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzApplication * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzApplication, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzApplication, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzApplication, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzApplication, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzApplication, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzApplication, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzApplication, get_AuthzInterfaceClsid) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AuthzInterfaceClsid )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_AuthzInterfaceClsid) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AuthzInterfaceClsid )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_Version) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_Version) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Version )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_GenerateAudits) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_GenerateAudits )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__out BOOL *pbProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_GenerateAudits) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_GenerateAudits )( + __RPC__in IAzApplication * This, + /* [in] */ BOOL bProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_ApplyStoreSacl) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplyStoreSacl )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__out BOOL *pbProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_ApplyStoreSacl) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplyStoreSacl )( + __RPC__in IAzApplication * This, + /* [in] */ BOOL bProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzApplication, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzApplication * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplication, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzApplication * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyAdministrators) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministrators )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyReaders) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReaders )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministrator )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministrator )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyReader) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReader )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyReader) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReader )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Scopes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Scopes )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__deref_out_opt IAzScopes **ppScopeCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenScope) + HRESULT ( STDMETHODCALLTYPE *OpenScope )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzScope **ppScope); + + DECLSPEC_XFGVIRT(IAzApplication, CreateScope) + HRESULT ( STDMETHODCALLTYPE *CreateScope )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzScope **ppScope); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteScope) + HRESULT ( STDMETHODCALLTYPE *DeleteScope )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Operations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Operations )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__deref_out_opt IAzOperations **ppOperationCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenOperation) + HRESULT ( STDMETHODCALLTYPE *OpenOperation )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzOperation **ppOperation); + + DECLSPEC_XFGVIRT(IAzApplication, CreateOperation) + HRESULT ( STDMETHODCALLTYPE *CreateOperation )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzOperation **ppOperation); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteOperation) + HRESULT ( STDMETHODCALLTYPE *DeleteOperation )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Tasks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tasks )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__deref_out_opt IAzTasks **ppTaskCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenTask) + HRESULT ( STDMETHODCALLTYPE *OpenTask )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask); + + DECLSPEC_XFGVIRT(IAzApplication, CreateTask) + HRESULT ( STDMETHODCALLTYPE *CreateTask )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteTask) + HRESULT ( STDMETHODCALLTYPE *DeleteTask )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_ApplicationGroups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationGroups )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *OpenApplicationGroup )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzApplication, CreateApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *CreateApplicationGroup )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *DeleteApplicationGroup )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Roles) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Roles )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoles **ppRoleCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenRole) + HRESULT ( STDMETHODCALLTYPE *OpenRole )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole); + + DECLSPEC_XFGVIRT(IAzApplication, CreateRole) + HRESULT ( STDMETHODCALLTYPE *CreateRole )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteRole) + HRESULT ( STDMETHODCALLTYPE *DeleteRole )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, InitializeClientContextFromToken) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromToken )( + __RPC__in IAzApplication * This, + /* [in] */ ULONGLONG ullTokenHandle, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzApplication * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzApplication * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzApplication * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, InitializeClientContextFromName) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromName )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR ClientName, + /* [defaultvalue][in] */ __RPC__in BSTR DomainName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication, get_DelegatedPolicyUsers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsers )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzApplication, AddDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUser )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUser )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, InitializeClientContextFromStringSid) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromStringSid )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR SidString, + /* [in] */ LONG lOptions, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyAdministratorsName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministratorsName )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyReadersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReadersName )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministratorName )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministratorName )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReaderName )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReaderName )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_DelegatedPolicyUsersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsersName )( + __RPC__in IAzApplication * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzApplication, AddDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUserName )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUserName )( + __RPC__in IAzApplication * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + END_INTERFACE + } IAzApplicationVtbl; + + interface IAzApplication + { + CONST_VTBL struct IAzApplicationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzApplication_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzApplication_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzApplication_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzApplication_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzApplication_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzApplication_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzApplication_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzApplication_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzApplication_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzApplication_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzApplication_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzApplication_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzApplication_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzApplication_get_AuthzInterfaceClsid(This,pbstrProp) \ + ( (This)->lpVtbl -> get_AuthzInterfaceClsid(This,pbstrProp) ) + +#define IAzApplication_put_AuthzInterfaceClsid(This,bstrProp) \ + ( (This)->lpVtbl -> put_AuthzInterfaceClsid(This,bstrProp) ) + +#define IAzApplication_get_Version(This,pbstrProp) \ + ( (This)->lpVtbl -> get_Version(This,pbstrProp) ) + +#define IAzApplication_put_Version(This,bstrProp) \ + ( (This)->lpVtbl -> put_Version(This,bstrProp) ) + +#define IAzApplication_get_GenerateAudits(This,pbProp) \ + ( (This)->lpVtbl -> get_GenerateAudits(This,pbProp) ) + +#define IAzApplication_put_GenerateAudits(This,bProp) \ + ( (This)->lpVtbl -> put_GenerateAudits(This,bProp) ) + +#define IAzApplication_get_ApplyStoreSacl(This,pbProp) \ + ( (This)->lpVtbl -> get_ApplyStoreSacl(This,pbProp) ) + +#define IAzApplication_put_ApplyStoreSacl(This,bProp) \ + ( (This)->lpVtbl -> put_ApplyStoreSacl(This,bProp) ) + +#define IAzApplication_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzApplication_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzApplication_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzApplication_get_PolicyAdministrators(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministrators(This,pvarAdmins) ) + +#define IAzApplication_get_PolicyReaders(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReaders(This,pvarReaders) ) + +#define IAzApplication_AddPolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzApplication_DeletePolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzApplication_AddPolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReader(This,bstrReader,varReserved) ) + +#define IAzApplication_DeletePolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReader(This,bstrReader,varReserved) ) + +#define IAzApplication_get_Scopes(This,ppScopeCollection) \ + ( (This)->lpVtbl -> get_Scopes(This,ppScopeCollection) ) + +#define IAzApplication_OpenScope(This,bstrScopeName,varReserved,ppScope) \ + ( (This)->lpVtbl -> OpenScope(This,bstrScopeName,varReserved,ppScope) ) + +#define IAzApplication_CreateScope(This,bstrScopeName,varReserved,ppScope) \ + ( (This)->lpVtbl -> CreateScope(This,bstrScopeName,varReserved,ppScope) ) + +#define IAzApplication_DeleteScope(This,bstrScopeName,varReserved) \ + ( (This)->lpVtbl -> DeleteScope(This,bstrScopeName,varReserved) ) + +#define IAzApplication_get_Operations(This,ppOperationCollection) \ + ( (This)->lpVtbl -> get_Operations(This,ppOperationCollection) ) + +#define IAzApplication_OpenOperation(This,bstrOperationName,varReserved,ppOperation) \ + ( (This)->lpVtbl -> OpenOperation(This,bstrOperationName,varReserved,ppOperation) ) + +#define IAzApplication_CreateOperation(This,bstrOperationName,varReserved,ppOperation) \ + ( (This)->lpVtbl -> CreateOperation(This,bstrOperationName,varReserved,ppOperation) ) + +#define IAzApplication_DeleteOperation(This,bstrOperationName,varReserved) \ + ( (This)->lpVtbl -> DeleteOperation(This,bstrOperationName,varReserved) ) + +#define IAzApplication_get_Tasks(This,ppTaskCollection) \ + ( (This)->lpVtbl -> get_Tasks(This,ppTaskCollection) ) + +#define IAzApplication_OpenTask(This,bstrTaskName,varReserved,ppTask) \ + ( (This)->lpVtbl -> OpenTask(This,bstrTaskName,varReserved,ppTask) ) + +#define IAzApplication_CreateTask(This,bstrTaskName,varReserved,ppTask) \ + ( (This)->lpVtbl -> CreateTask(This,bstrTaskName,varReserved,ppTask) ) + +#define IAzApplication_DeleteTask(This,bstrTaskName,varReserved) \ + ( (This)->lpVtbl -> DeleteTask(This,bstrTaskName,varReserved) ) + +#define IAzApplication_get_ApplicationGroups(This,ppGroupCollection) \ + ( (This)->lpVtbl -> get_ApplicationGroups(This,ppGroupCollection) ) + +#define IAzApplication_OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzApplication_CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzApplication_DeleteApplicationGroup(This,bstrGroupName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplicationGroup(This,bstrGroupName,varReserved) ) + +#define IAzApplication_get_Roles(This,ppRoleCollection) \ + ( (This)->lpVtbl -> get_Roles(This,ppRoleCollection) ) + +#define IAzApplication_OpenRole(This,bstrRoleName,varReserved,ppRole) \ + ( (This)->lpVtbl -> OpenRole(This,bstrRoleName,varReserved,ppRole) ) + +#define IAzApplication_CreateRole(This,bstrRoleName,varReserved,ppRole) \ + ( (This)->lpVtbl -> CreateRole(This,bstrRoleName,varReserved,ppRole) ) + +#define IAzApplication_DeleteRole(This,bstrRoleName,varReserved) \ + ( (This)->lpVtbl -> DeleteRole(This,bstrRoleName,varReserved) ) + +#define IAzApplication_InitializeClientContextFromToken(This,ullTokenHandle,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromToken(This,ullTokenHandle,varReserved,ppClientContext) ) + +#define IAzApplication_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzApplication_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzApplication_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzApplication_InitializeClientContextFromName(This,ClientName,DomainName,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromName(This,ClientName,DomainName,varReserved,ppClientContext) ) + +#define IAzApplication_get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) ) + +#define IAzApplication_AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzApplication_DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzApplication_InitializeClientContextFromStringSid(This,SidString,lOptions,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromStringSid(This,SidString,lOptions,varReserved,ppClientContext) ) + +#define IAzApplication_get_PolicyAdministratorsName(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministratorsName(This,pvarAdmins) ) + +#define IAzApplication_get_PolicyReadersName(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReadersName(This,pvarReaders) ) + +#define IAzApplication_AddPolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzApplication_DeletePolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzApplication_AddPolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzApplication_DeletePolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzApplication_get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) ) + +#define IAzApplication_AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzApplication_DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzApplication_INTERFACE_DEFINED__ */ + + +#ifndef __IAzApplication2_INTERFACE_DEFINED__ +#define __IAzApplication2_INTERFACE_DEFINED__ + +/* interface IAzApplication2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzApplication2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("086a68af-a249-437c-b18d-d4d86d6a9660") + IAzApplication2 : public IAzApplication + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeClientContextFromToken2( + /* [in] */ ULONG ulTokenHandleLowPart, + /* [in] */ ULONG ulTokenHandleHighPart, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext2 **ppClientContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeClientContext2( + /* [in] */ __RPC__in BSTR IdentifyingString, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext2 **ppClientContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzApplication2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzApplication2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzApplication2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzApplication2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzApplication2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzApplication2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzApplication, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzApplication, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzApplication, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzApplication, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzApplication, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzApplication, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzApplication, get_AuthzInterfaceClsid) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AuthzInterfaceClsid )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_AuthzInterfaceClsid) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AuthzInterfaceClsid )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_Version) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_Version) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Version )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_GenerateAudits) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_GenerateAudits )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__out BOOL *pbProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_GenerateAudits) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_GenerateAudits )( + __RPC__in IAzApplication2 * This, + /* [in] */ BOOL bProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_ApplyStoreSacl) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplyStoreSacl )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__out BOOL *pbProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_ApplyStoreSacl) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplyStoreSacl )( + __RPC__in IAzApplication2 * This, + /* [in] */ BOOL bProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzApplication, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzApplication2 * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplication, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzApplication2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyAdministrators) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministrators )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyReaders) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReaders )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministrator )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministrator )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyReader) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReader )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyReader) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReader )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Scopes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Scopes )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzScopes **ppScopeCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenScope) + HRESULT ( STDMETHODCALLTYPE *OpenScope )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzScope **ppScope); + + DECLSPEC_XFGVIRT(IAzApplication, CreateScope) + HRESULT ( STDMETHODCALLTYPE *CreateScope )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzScope **ppScope); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteScope) + HRESULT ( STDMETHODCALLTYPE *DeleteScope )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Operations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Operations )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzOperations **ppOperationCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenOperation) + HRESULT ( STDMETHODCALLTYPE *OpenOperation )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzOperation **ppOperation); + + DECLSPEC_XFGVIRT(IAzApplication, CreateOperation) + HRESULT ( STDMETHODCALLTYPE *CreateOperation )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzOperation **ppOperation); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteOperation) + HRESULT ( STDMETHODCALLTYPE *DeleteOperation )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Tasks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tasks )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzTasks **ppTaskCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenTask) + HRESULT ( STDMETHODCALLTYPE *OpenTask )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask); + + DECLSPEC_XFGVIRT(IAzApplication, CreateTask) + HRESULT ( STDMETHODCALLTYPE *CreateTask )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteTask) + HRESULT ( STDMETHODCALLTYPE *DeleteTask )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_ApplicationGroups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationGroups )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *OpenApplicationGroup )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzApplication, CreateApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *CreateApplicationGroup )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *DeleteApplicationGroup )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Roles) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Roles )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoles **ppRoleCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenRole) + HRESULT ( STDMETHODCALLTYPE *OpenRole )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole); + + DECLSPEC_XFGVIRT(IAzApplication, CreateRole) + HRESULT ( STDMETHODCALLTYPE *CreateRole )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteRole) + HRESULT ( STDMETHODCALLTYPE *DeleteRole )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, InitializeClientContextFromToken) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromToken )( + __RPC__in IAzApplication2 * This, + /* [in] */ ULONGLONG ullTokenHandle, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzApplication2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzApplication2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzApplication2 * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, InitializeClientContextFromName) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromName )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR ClientName, + /* [defaultvalue][in] */ __RPC__in BSTR DomainName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication, get_DelegatedPolicyUsers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsers )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzApplication, AddDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUser )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUser )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, InitializeClientContextFromStringSid) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromStringSid )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR SidString, + /* [in] */ LONG lOptions, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyAdministratorsName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministratorsName )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyReadersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReadersName )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministratorName )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministratorName )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReaderName )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReaderName )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_DelegatedPolicyUsersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsersName )( + __RPC__in IAzApplication2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzApplication, AddDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUserName )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUserName )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication2, InitializeClientContextFromToken2) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromToken2 )( + __RPC__in IAzApplication2 * This, + /* [in] */ ULONG ulTokenHandleLowPart, + /* [in] */ ULONG ulTokenHandleHighPart, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext2 **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication2, InitializeClientContext2) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContext2 )( + __RPC__in IAzApplication2 * This, + /* [in] */ __RPC__in BSTR IdentifyingString, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext2 **ppClientContext); + + END_INTERFACE + } IAzApplication2Vtbl; + + interface IAzApplication2 + { + CONST_VTBL struct IAzApplication2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzApplication2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzApplication2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzApplication2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzApplication2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzApplication2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzApplication2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzApplication2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzApplication2_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzApplication2_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzApplication2_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzApplication2_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzApplication2_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzApplication2_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzApplication2_get_AuthzInterfaceClsid(This,pbstrProp) \ + ( (This)->lpVtbl -> get_AuthzInterfaceClsid(This,pbstrProp) ) + +#define IAzApplication2_put_AuthzInterfaceClsid(This,bstrProp) \ + ( (This)->lpVtbl -> put_AuthzInterfaceClsid(This,bstrProp) ) + +#define IAzApplication2_get_Version(This,pbstrProp) \ + ( (This)->lpVtbl -> get_Version(This,pbstrProp) ) + +#define IAzApplication2_put_Version(This,bstrProp) \ + ( (This)->lpVtbl -> put_Version(This,bstrProp) ) + +#define IAzApplication2_get_GenerateAudits(This,pbProp) \ + ( (This)->lpVtbl -> get_GenerateAudits(This,pbProp) ) + +#define IAzApplication2_put_GenerateAudits(This,bProp) \ + ( (This)->lpVtbl -> put_GenerateAudits(This,bProp) ) + +#define IAzApplication2_get_ApplyStoreSacl(This,pbProp) \ + ( (This)->lpVtbl -> get_ApplyStoreSacl(This,pbProp) ) + +#define IAzApplication2_put_ApplyStoreSacl(This,bProp) \ + ( (This)->lpVtbl -> put_ApplyStoreSacl(This,bProp) ) + +#define IAzApplication2_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzApplication2_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzApplication2_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzApplication2_get_PolicyAdministrators(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministrators(This,pvarAdmins) ) + +#define IAzApplication2_get_PolicyReaders(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReaders(This,pvarReaders) ) + +#define IAzApplication2_AddPolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzApplication2_DeletePolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzApplication2_AddPolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReader(This,bstrReader,varReserved) ) + +#define IAzApplication2_DeletePolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReader(This,bstrReader,varReserved) ) + +#define IAzApplication2_get_Scopes(This,ppScopeCollection) \ + ( (This)->lpVtbl -> get_Scopes(This,ppScopeCollection) ) + +#define IAzApplication2_OpenScope(This,bstrScopeName,varReserved,ppScope) \ + ( (This)->lpVtbl -> OpenScope(This,bstrScopeName,varReserved,ppScope) ) + +#define IAzApplication2_CreateScope(This,bstrScopeName,varReserved,ppScope) \ + ( (This)->lpVtbl -> CreateScope(This,bstrScopeName,varReserved,ppScope) ) + +#define IAzApplication2_DeleteScope(This,bstrScopeName,varReserved) \ + ( (This)->lpVtbl -> DeleteScope(This,bstrScopeName,varReserved) ) + +#define IAzApplication2_get_Operations(This,ppOperationCollection) \ + ( (This)->lpVtbl -> get_Operations(This,ppOperationCollection) ) + +#define IAzApplication2_OpenOperation(This,bstrOperationName,varReserved,ppOperation) \ + ( (This)->lpVtbl -> OpenOperation(This,bstrOperationName,varReserved,ppOperation) ) + +#define IAzApplication2_CreateOperation(This,bstrOperationName,varReserved,ppOperation) \ + ( (This)->lpVtbl -> CreateOperation(This,bstrOperationName,varReserved,ppOperation) ) + +#define IAzApplication2_DeleteOperation(This,bstrOperationName,varReserved) \ + ( (This)->lpVtbl -> DeleteOperation(This,bstrOperationName,varReserved) ) + +#define IAzApplication2_get_Tasks(This,ppTaskCollection) \ + ( (This)->lpVtbl -> get_Tasks(This,ppTaskCollection) ) + +#define IAzApplication2_OpenTask(This,bstrTaskName,varReserved,ppTask) \ + ( (This)->lpVtbl -> OpenTask(This,bstrTaskName,varReserved,ppTask) ) + +#define IAzApplication2_CreateTask(This,bstrTaskName,varReserved,ppTask) \ + ( (This)->lpVtbl -> CreateTask(This,bstrTaskName,varReserved,ppTask) ) + +#define IAzApplication2_DeleteTask(This,bstrTaskName,varReserved) \ + ( (This)->lpVtbl -> DeleteTask(This,bstrTaskName,varReserved) ) + +#define IAzApplication2_get_ApplicationGroups(This,ppGroupCollection) \ + ( (This)->lpVtbl -> get_ApplicationGroups(This,ppGroupCollection) ) + +#define IAzApplication2_OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzApplication2_CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzApplication2_DeleteApplicationGroup(This,bstrGroupName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplicationGroup(This,bstrGroupName,varReserved) ) + +#define IAzApplication2_get_Roles(This,ppRoleCollection) \ + ( (This)->lpVtbl -> get_Roles(This,ppRoleCollection) ) + +#define IAzApplication2_OpenRole(This,bstrRoleName,varReserved,ppRole) \ + ( (This)->lpVtbl -> OpenRole(This,bstrRoleName,varReserved,ppRole) ) + +#define IAzApplication2_CreateRole(This,bstrRoleName,varReserved,ppRole) \ + ( (This)->lpVtbl -> CreateRole(This,bstrRoleName,varReserved,ppRole) ) + +#define IAzApplication2_DeleteRole(This,bstrRoleName,varReserved) \ + ( (This)->lpVtbl -> DeleteRole(This,bstrRoleName,varReserved) ) + +#define IAzApplication2_InitializeClientContextFromToken(This,ullTokenHandle,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromToken(This,ullTokenHandle,varReserved,ppClientContext) ) + +#define IAzApplication2_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzApplication2_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzApplication2_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzApplication2_InitializeClientContextFromName(This,ClientName,DomainName,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromName(This,ClientName,DomainName,varReserved,ppClientContext) ) + +#define IAzApplication2_get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) ) + +#define IAzApplication2_AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzApplication2_DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzApplication2_InitializeClientContextFromStringSid(This,SidString,lOptions,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromStringSid(This,SidString,lOptions,varReserved,ppClientContext) ) + +#define IAzApplication2_get_PolicyAdministratorsName(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministratorsName(This,pvarAdmins) ) + +#define IAzApplication2_get_PolicyReadersName(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReadersName(This,pvarReaders) ) + +#define IAzApplication2_AddPolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzApplication2_DeletePolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzApplication2_AddPolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzApplication2_DeletePolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzApplication2_get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) ) + +#define IAzApplication2_AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzApplication2_DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + + +#define IAzApplication2_InitializeClientContextFromToken2(This,ulTokenHandleLowPart,ulTokenHandleHighPart,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromToken2(This,ulTokenHandleLowPart,ulTokenHandleHighPart,varReserved,ppClientContext) ) + +#define IAzApplication2_InitializeClientContext2(This,IdentifyingString,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContext2(This,IdentifyingString,varReserved,ppClientContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzApplication2_INTERFACE_DEFINED__ */ + + +#ifndef __IAzApplications_INTERFACE_DEFINED__ +#define __IAzApplications_INTERFACE_DEFINED__ + +/* interface IAzApplications */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzApplications; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("929b11a9-95c5-4a84-a29a-20ad42c2f16c") + IAzApplications : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *plCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzApplicationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzApplications * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzApplications * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzApplications * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzApplications * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzApplications * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzApplications * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzApplications * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzApplications, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAzApplications * This, + /* [in] */ long Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr); + + DECLSPEC_XFGVIRT(IAzApplications, get_Count) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAzApplications * This, + /* [retval][out] */ __RPC__out long *plCount); + + DECLSPEC_XFGVIRT(IAzApplications, get__NewEnum) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IAzApplications * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr); + + END_INTERFACE + } IAzApplicationsVtbl; + + interface IAzApplications + { + CONST_VTBL struct IAzApplicationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzApplications_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzApplications_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzApplications_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzApplications_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzApplications_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzApplications_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzApplications_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzApplications_get_Item(This,Index,pvarObtPtr) \ + ( (This)->lpVtbl -> get_Item(This,Index,pvarObtPtr) ) + +#define IAzApplications_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IAzApplications_get__NewEnum(This,ppEnumPtr) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumPtr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzApplications_INTERFACE_DEFINED__ */ + + +#ifndef __IAzOperation_INTERFACE_DEFINED__ +#define __IAzOperation_INTERFACE_DEFINED__ + +/* interface IAzOperation */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzOperation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5e56b24f-ea01-4d61-be44-c49b5e4eaf74") + IAzOperation : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplicationData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ApplicationData( + /* [in] */ __RPC__in BSTR bstrApplicationData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_OperationID( + /* [retval][out] */ __RPC__out LONG *plProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_OperationID( + /* [in] */ LONG lProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Writable( + /* [retval][out] */ __RPC__out BOOL *pfProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Submit( + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzOperationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzOperation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzOperation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzOperation * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzOperation * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzOperation * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzOperation * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzOperation * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzOperation, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzOperation * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzOperation, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzOperation * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzOperation, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzOperation * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzOperation, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzOperation * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzOperation, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzOperation * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzOperation, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzOperation * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzOperation, get_OperationID) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OperationID )( + __RPC__in IAzOperation * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzOperation, put_OperationID) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_OperationID )( + __RPC__in IAzOperation * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzOperation, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzOperation * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzOperation, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzOperation * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzOperation, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzOperation * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzOperation, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzOperation * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + END_INTERFACE + } IAzOperationVtbl; + + interface IAzOperation + { + CONST_VTBL struct IAzOperationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzOperation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzOperation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzOperation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzOperation_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzOperation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzOperation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzOperation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzOperation_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzOperation_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzOperation_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzOperation_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzOperation_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzOperation_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzOperation_get_OperationID(This,plProp) \ + ( (This)->lpVtbl -> get_OperationID(This,plProp) ) + +#define IAzOperation_put_OperationID(This,lProp) \ + ( (This)->lpVtbl -> put_OperationID(This,lProp) ) + +#define IAzOperation_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzOperation_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzOperation_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzOperation_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzOperation_INTERFACE_DEFINED__ */ + + +#ifndef __IAzOperations_INTERFACE_DEFINED__ +#define __IAzOperations_INTERFACE_DEFINED__ + +/* interface IAzOperations */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzOperations; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("90ef9c07-9706-49d9-af80-0438a5f3ec35") + IAzOperations : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *plCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzOperationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzOperations * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzOperations * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzOperations * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzOperations * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzOperations * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzOperations * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzOperations, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAzOperations * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr); + + DECLSPEC_XFGVIRT(IAzOperations, get_Count) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAzOperations * This, + /* [retval][out] */ __RPC__out LONG *plCount); + + DECLSPEC_XFGVIRT(IAzOperations, get__NewEnum) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IAzOperations * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr); + + END_INTERFACE + } IAzOperationsVtbl; + + interface IAzOperations + { + CONST_VTBL struct IAzOperationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzOperations_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzOperations_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzOperations_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzOperations_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzOperations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzOperations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzOperations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzOperations_get_Item(This,Index,pvarObtPtr) \ + ( (This)->lpVtbl -> get_Item(This,Index,pvarObtPtr) ) + +#define IAzOperations_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IAzOperations_get__NewEnum(This,ppEnumPtr) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumPtr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzOperations_INTERFACE_DEFINED__ */ + + +#ifndef __IAzTask_INTERFACE_DEFINED__ +#define __IAzTask_INTERFACE_DEFINED__ + +/* interface IAzTask */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzTask; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cb94e592-2e0e-4a6c-a336-b89a6dc1e388") + IAzTask : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplicationData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ApplicationData( + /* [in] */ __RPC__in BSTR bstrApplicationData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BizRule( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BizRule( + /* [in] */ __RPC__in BSTR bstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BizRuleLanguage( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BizRuleLanguage( + /* [in] */ __RPC__in BSTR bstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BizRuleImportedPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BizRuleImportedPath( + /* [in] */ __RPC__in BSTR bstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsRoleDefinition( + /* [retval][out] */ __RPC__out BOOL *pfProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_IsRoleDefinition( + /* [in] */ BOOL fProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Operations( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Tasks( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddOperation( + /* [in] */ __RPC__in BSTR bstrOp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteOperation( + /* [in] */ __RPC__in BSTR bstrOp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddTask( + /* [in] */ __RPC__in BSTR bstrTask, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteTask( + /* [in] */ __RPC__in BSTR bstrTask, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Writable( + /* [retval][out] */ __RPC__out BOOL *pfProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Submit( + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzTaskVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzTask * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzTask * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzTask * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzTask * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzTask * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzTask, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzTask * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzTask, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzTask, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzTask * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzTask, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzTask, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzTask * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzTask, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzTask, get_BizRule) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRule )( + __RPC__in IAzTask * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzTask, put_BizRule) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRule )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzTask, get_BizRuleLanguage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRuleLanguage )( + __RPC__in IAzTask * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzTask, put_BizRuleLanguage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRuleLanguage )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzTask, get_BizRuleImportedPath) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRuleImportedPath )( + __RPC__in IAzTask * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzTask, put_BizRuleImportedPath) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRuleImportedPath )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzTask, get_IsRoleDefinition) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsRoleDefinition )( + __RPC__in IAzTask * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzTask, put_IsRoleDefinition) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsRoleDefinition )( + __RPC__in IAzTask * This, + /* [in] */ BOOL fProp); + + DECLSPEC_XFGVIRT(IAzTask, get_Operations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Operations )( + __RPC__in IAzTask * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzTask, get_Tasks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tasks )( + __RPC__in IAzTask * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzTask, AddOperation) + HRESULT ( STDMETHODCALLTYPE *AddOperation )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in BSTR bstrOp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, DeleteOperation) + HRESULT ( STDMETHODCALLTYPE *DeleteOperation )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in BSTR bstrOp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, AddTask) + HRESULT ( STDMETHODCALLTYPE *AddTask )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in BSTR bstrTask, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, DeleteTask) + HRESULT ( STDMETHODCALLTYPE *DeleteTask )( + __RPC__in IAzTask * This, + /* [in] */ __RPC__in BSTR bstrTask, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzTask * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzTask, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzTask * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzTask, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzTask * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzTask * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzTask * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzTask * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + END_INTERFACE + } IAzTaskVtbl; + + interface IAzTask + { + CONST_VTBL struct IAzTaskVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzTask_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzTask_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzTask_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzTask_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzTask_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzTask_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzTask_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzTask_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzTask_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzTask_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzTask_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzTask_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzTask_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzTask_get_BizRule(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRule(This,pbstrProp) ) + +#define IAzTask_put_BizRule(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRule(This,bstrProp) ) + +#define IAzTask_get_BizRuleLanguage(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRuleLanguage(This,pbstrProp) ) + +#define IAzTask_put_BizRuleLanguage(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRuleLanguage(This,bstrProp) ) + +#define IAzTask_get_BizRuleImportedPath(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRuleImportedPath(This,pbstrProp) ) + +#define IAzTask_put_BizRuleImportedPath(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRuleImportedPath(This,bstrProp) ) + +#define IAzTask_get_IsRoleDefinition(This,pfProp) \ + ( (This)->lpVtbl -> get_IsRoleDefinition(This,pfProp) ) + +#define IAzTask_put_IsRoleDefinition(This,fProp) \ + ( (This)->lpVtbl -> put_IsRoleDefinition(This,fProp) ) + +#define IAzTask_get_Operations(This,pvarProp) \ + ( (This)->lpVtbl -> get_Operations(This,pvarProp) ) + +#define IAzTask_get_Tasks(This,pvarProp) \ + ( (This)->lpVtbl -> get_Tasks(This,pvarProp) ) + +#define IAzTask_AddOperation(This,bstrOp,varReserved) \ + ( (This)->lpVtbl -> AddOperation(This,bstrOp,varReserved) ) + +#define IAzTask_DeleteOperation(This,bstrOp,varReserved) \ + ( (This)->lpVtbl -> DeleteOperation(This,bstrOp,varReserved) ) + +#define IAzTask_AddTask(This,bstrTask,varReserved) \ + ( (This)->lpVtbl -> AddTask(This,bstrTask,varReserved) ) + +#define IAzTask_DeleteTask(This,bstrTask,varReserved) \ + ( (This)->lpVtbl -> DeleteTask(This,bstrTask,varReserved) ) + +#define IAzTask_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzTask_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzTask_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzTask_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzTask_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzTask_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzTask_INTERFACE_DEFINED__ */ + + +#ifndef __IAzTasks_INTERFACE_DEFINED__ +#define __IAzTasks_INTERFACE_DEFINED__ + +/* interface IAzTasks */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzTasks; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b338ccab-4c85-4388-8c0a-c58592bad398") + IAzTasks : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *plCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzTasksVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzTasks * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzTasks * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzTasks * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzTasks * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzTasks * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzTasks * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzTasks * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzTasks, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAzTasks * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr); + + DECLSPEC_XFGVIRT(IAzTasks, get_Count) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAzTasks * This, + /* [retval][out] */ __RPC__out LONG *plCount); + + DECLSPEC_XFGVIRT(IAzTasks, get__NewEnum) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IAzTasks * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr); + + END_INTERFACE + } IAzTasksVtbl; + + interface IAzTasks + { + CONST_VTBL struct IAzTasksVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzTasks_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzTasks_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzTasks_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzTasks_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzTasks_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzTasks_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzTasks_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzTasks_get_Item(This,Index,pvarObtPtr) \ + ( (This)->lpVtbl -> get_Item(This,Index,pvarObtPtr) ) + +#define IAzTasks_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IAzTasks_get__NewEnum(This,ppEnumPtr) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumPtr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzTasks_INTERFACE_DEFINED__ */ + + +#ifndef __IAzScope_INTERFACE_DEFINED__ +#define __IAzScope_INTERFACE_DEFINED__ + +/* interface IAzScope */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzScope; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00e52487-e08d-4514-b62e-877d5645f5ab") + IAzScope : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplicationData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ApplicationData( + /* [in] */ __RPC__in BSTR bstrApplicationData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Writable( + /* [retval][out] */ __RPC__out BOOL *pfProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyAdministrators( + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyReaders( + /* [retval][out] */ __RPC__out VARIANT *pvarReaders) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyAdministrator( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyAdministrator( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyReader( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyReader( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplicationGroups( + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenApplicationGroup( + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateApplicationGroup( + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteApplicationGroup( + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Roles( + /* [retval][out] */ __RPC__deref_out_opt IAzRoles **ppRoleCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenRole( + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRole( + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRole( + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Tasks( + /* [retval][out] */ __RPC__deref_out_opt IAzTasks **ppTaskCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenTask( + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateTask( + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteTask( + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Submit( + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CanBeDelegated( + /* [retval][out] */ __RPC__out BOOL *pfProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BizrulesWritable( + /* [retval][out] */ __RPC__out BOOL *pfProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyAdministratorsName( + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyReadersName( + /* [retval][out] */ __RPC__out VARIANT *pvarReaders) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyAdministratorName( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyAdministratorName( + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPolicyReaderName( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePolicyReaderName( + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzScopeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzScope * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzScope * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzScope * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzScope * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzScope * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzScope, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzScope, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzScope, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzScope, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzScope, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzScope, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzScope, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzScope, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzScope * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzScope, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzScope * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzScope * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzScope * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, get_PolicyAdministrators) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministrators )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzScope, get_PolicyReaders) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReaders )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzScope, AddPolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministrator )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, DeletePolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministrator )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, AddPolicyReader) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReader )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, DeletePolicyReader) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReader )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, get_ApplicationGroups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationGroups )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection); + + DECLSPEC_XFGVIRT(IAzScope, OpenApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *OpenApplicationGroup )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzScope, CreateApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *CreateApplicationGroup )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzScope, DeleteApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *DeleteApplicationGroup )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, get_Roles) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Roles )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoles **ppRoleCollection); + + DECLSPEC_XFGVIRT(IAzScope, OpenRole) + HRESULT ( STDMETHODCALLTYPE *OpenRole )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole); + + DECLSPEC_XFGVIRT(IAzScope, CreateRole) + HRESULT ( STDMETHODCALLTYPE *CreateRole )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole); + + DECLSPEC_XFGVIRT(IAzScope, DeleteRole) + HRESULT ( STDMETHODCALLTYPE *DeleteRole )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, get_Tasks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tasks )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__deref_out_opt IAzTasks **ppTaskCollection); + + DECLSPEC_XFGVIRT(IAzScope, OpenTask) + HRESULT ( STDMETHODCALLTYPE *OpenTask )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask); + + DECLSPEC_XFGVIRT(IAzScope, CreateTask) + HRESULT ( STDMETHODCALLTYPE *CreateTask )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask); + + DECLSPEC_XFGVIRT(IAzScope, DeleteTask) + HRESULT ( STDMETHODCALLTYPE *DeleteTask )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzScope * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, get_CanBeDelegated) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CanBeDelegated )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzScope, get_BizrulesWritable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizrulesWritable )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzScope, get_PolicyAdministratorsName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministratorsName )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzScope, get_PolicyReadersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReadersName )( + __RPC__in IAzScope * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzScope, AddPolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministratorName )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, DeletePolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministratorName )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, AddPolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReaderName )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, DeletePolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReaderName )( + __RPC__in IAzScope * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + END_INTERFACE + } IAzScopeVtbl; + + interface IAzScope + { + CONST_VTBL struct IAzScopeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzScope_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzScope_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzScope_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzScope_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzScope_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzScope_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzScope_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzScope_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzScope_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzScope_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzScope_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzScope_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzScope_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzScope_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzScope_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzScope_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzScope_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzScope_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzScope_get_PolicyAdministrators(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministrators(This,pvarAdmins) ) + +#define IAzScope_get_PolicyReaders(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReaders(This,pvarReaders) ) + +#define IAzScope_AddPolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzScope_DeletePolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzScope_AddPolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReader(This,bstrReader,varReserved) ) + +#define IAzScope_DeletePolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReader(This,bstrReader,varReserved) ) + +#define IAzScope_get_ApplicationGroups(This,ppGroupCollection) \ + ( (This)->lpVtbl -> get_ApplicationGroups(This,ppGroupCollection) ) + +#define IAzScope_OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzScope_CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzScope_DeleteApplicationGroup(This,bstrGroupName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplicationGroup(This,bstrGroupName,varReserved) ) + +#define IAzScope_get_Roles(This,ppRoleCollection) \ + ( (This)->lpVtbl -> get_Roles(This,ppRoleCollection) ) + +#define IAzScope_OpenRole(This,bstrRoleName,varReserved,ppRole) \ + ( (This)->lpVtbl -> OpenRole(This,bstrRoleName,varReserved,ppRole) ) + +#define IAzScope_CreateRole(This,bstrRoleName,varReserved,ppRole) \ + ( (This)->lpVtbl -> CreateRole(This,bstrRoleName,varReserved,ppRole) ) + +#define IAzScope_DeleteRole(This,bstrRoleName,varReserved) \ + ( (This)->lpVtbl -> DeleteRole(This,bstrRoleName,varReserved) ) + +#define IAzScope_get_Tasks(This,ppTaskCollection) \ + ( (This)->lpVtbl -> get_Tasks(This,ppTaskCollection) ) + +#define IAzScope_OpenTask(This,bstrTaskName,varReserved,ppTask) \ + ( (This)->lpVtbl -> OpenTask(This,bstrTaskName,varReserved,ppTask) ) + +#define IAzScope_CreateTask(This,bstrTaskName,varReserved,ppTask) \ + ( (This)->lpVtbl -> CreateTask(This,bstrTaskName,varReserved,ppTask) ) + +#define IAzScope_DeleteTask(This,bstrTaskName,varReserved) \ + ( (This)->lpVtbl -> DeleteTask(This,bstrTaskName,varReserved) ) + +#define IAzScope_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzScope_get_CanBeDelegated(This,pfProp) \ + ( (This)->lpVtbl -> get_CanBeDelegated(This,pfProp) ) + +#define IAzScope_get_BizrulesWritable(This,pfProp) \ + ( (This)->lpVtbl -> get_BizrulesWritable(This,pfProp) ) + +#define IAzScope_get_PolicyAdministratorsName(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministratorsName(This,pvarAdmins) ) + +#define IAzScope_get_PolicyReadersName(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReadersName(This,pvarReaders) ) + +#define IAzScope_AddPolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzScope_DeletePolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzScope_AddPolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzScope_DeletePolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReaderName(This,bstrReader,varReserved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzScope_INTERFACE_DEFINED__ */ + + +#ifndef __IAzScopes_INTERFACE_DEFINED__ +#define __IAzScopes_INTERFACE_DEFINED__ + +/* interface IAzScopes */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzScopes; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("78e14853-9f5e-406d-9b91-6bdba6973510") + IAzScopes : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *plCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzScopesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzScopes * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzScopes * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzScopes * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzScopes * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzScopes * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzScopes * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzScopes * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzScopes, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAzScopes * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr); + + DECLSPEC_XFGVIRT(IAzScopes, get_Count) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAzScopes * This, + /* [retval][out] */ __RPC__out LONG *plCount); + + DECLSPEC_XFGVIRT(IAzScopes, get__NewEnum) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IAzScopes * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr); + + END_INTERFACE + } IAzScopesVtbl; + + interface IAzScopes + { + CONST_VTBL struct IAzScopesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzScopes_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzScopes_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzScopes_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzScopes_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzScopes_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzScopes_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzScopes_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzScopes_get_Item(This,Index,pvarObtPtr) \ + ( (This)->lpVtbl -> get_Item(This,Index,pvarObtPtr) ) + +#define IAzScopes_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IAzScopes_get__NewEnum(This,ppEnumPtr) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumPtr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzScopes_INTERFACE_DEFINED__ */ + + +#ifndef __IAzApplicationGroup_INTERFACE_DEFINED__ +#define __IAzApplicationGroup_INTERFACE_DEFINED__ + +/* interface IAzApplicationGroup */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzApplicationGroup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f1b744cd-58a6-4e06-9fbf-36f6d779e21e") + IAzApplicationGroup : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out LONG *plProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ LONG lProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_LdapQuery( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_LdapQuery( + /* [in] */ __RPC__in BSTR bstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AppMembers( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AppNonMembers( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Members( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NonMembers( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddAppMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteAppMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddAppNonMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteAppNonMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddNonMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteNonMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Writable( + /* [retval][out] */ __RPC__out BOOL *pfProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Submit( + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMemberName( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteMemberName( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddNonMemberName( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteNonMemberName( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MembersName( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NonMembersName( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzApplicationGroupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzApplicationGroup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzApplicationGroup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzApplicationGroup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzApplicationGroup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, put_Type) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_LdapQuery) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_LdapQuery )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, put_LdapQuery) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_LdapQuery )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_AppMembers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AppMembers )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_AppNonMembers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AppNonMembers )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_Members) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Members )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_NonMembers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NonMembers )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddAppMember) + HRESULT ( STDMETHODCALLTYPE *AddAppMember )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteAppMember) + HRESULT ( STDMETHODCALLTYPE *DeleteAppMember )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddAppNonMember) + HRESULT ( STDMETHODCALLTYPE *AddAppNonMember )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteAppNonMember) + HRESULT ( STDMETHODCALLTYPE *DeleteAppNonMember )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddMember) + HRESULT ( STDMETHODCALLTYPE *AddMember )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteMember) + HRESULT ( STDMETHODCALLTYPE *DeleteMember )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddNonMember) + HRESULT ( STDMETHODCALLTYPE *AddNonMember )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteNonMember) + HRESULT ( STDMETHODCALLTYPE *DeleteNonMember )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzApplicationGroup * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddMemberName) + HRESULT ( STDMETHODCALLTYPE *AddMemberName )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteMemberName) + HRESULT ( STDMETHODCALLTYPE *DeleteMemberName )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddNonMemberName) + HRESULT ( STDMETHODCALLTYPE *AddNonMemberName )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteNonMemberName) + HRESULT ( STDMETHODCALLTYPE *DeleteNonMemberName )( + __RPC__in IAzApplicationGroup * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_MembersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MembersName )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_NonMembersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NonMembersName )( + __RPC__in IAzApplicationGroup * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + END_INTERFACE + } IAzApplicationGroupVtbl; + + interface IAzApplicationGroup + { + CONST_VTBL struct IAzApplicationGroupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzApplicationGroup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzApplicationGroup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzApplicationGroup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzApplicationGroup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzApplicationGroup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzApplicationGroup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzApplicationGroup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzApplicationGroup_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzApplicationGroup_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzApplicationGroup_get_Type(This,plProp) \ + ( (This)->lpVtbl -> get_Type(This,plProp) ) + +#define IAzApplicationGroup_put_Type(This,lProp) \ + ( (This)->lpVtbl -> put_Type(This,lProp) ) + +#define IAzApplicationGroup_get_LdapQuery(This,pbstrProp) \ + ( (This)->lpVtbl -> get_LdapQuery(This,pbstrProp) ) + +#define IAzApplicationGroup_put_LdapQuery(This,bstrProp) \ + ( (This)->lpVtbl -> put_LdapQuery(This,bstrProp) ) + +#define IAzApplicationGroup_get_AppMembers(This,pvarProp) \ + ( (This)->lpVtbl -> get_AppMembers(This,pvarProp) ) + +#define IAzApplicationGroup_get_AppNonMembers(This,pvarProp) \ + ( (This)->lpVtbl -> get_AppNonMembers(This,pvarProp) ) + +#define IAzApplicationGroup_get_Members(This,pvarProp) \ + ( (This)->lpVtbl -> get_Members(This,pvarProp) ) + +#define IAzApplicationGroup_get_NonMembers(This,pvarProp) \ + ( (This)->lpVtbl -> get_NonMembers(This,pvarProp) ) + +#define IAzApplicationGroup_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzApplicationGroup_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzApplicationGroup_AddAppMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddAppMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_DeleteAppMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteAppMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_AddAppNonMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddAppNonMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_DeleteAppNonMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteAppNonMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_AddMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_DeleteMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_AddNonMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddNonMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_DeleteNonMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteNonMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzApplicationGroup_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzApplicationGroup_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzApplicationGroup_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzApplicationGroup_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzApplicationGroup_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzApplicationGroup_AddMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddMemberName(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_DeleteMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteMemberName(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_AddNonMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddNonMemberName(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_DeleteNonMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteNonMemberName(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup_get_MembersName(This,pvarProp) \ + ( (This)->lpVtbl -> get_MembersName(This,pvarProp) ) + +#define IAzApplicationGroup_get_NonMembersName(This,pvarProp) \ + ( (This)->lpVtbl -> get_NonMembersName(This,pvarProp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzApplicationGroup_INTERFACE_DEFINED__ */ + + +#ifndef __IAzApplicationGroups_INTERFACE_DEFINED__ +#define __IAzApplicationGroups_INTERFACE_DEFINED__ + +/* interface IAzApplicationGroups */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzApplicationGroups; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4ce66ad5-9f3c-469d-a911-b99887a7e685") + IAzApplicationGroups : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *plCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzApplicationGroupsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzApplicationGroups * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzApplicationGroups * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzApplicationGroups * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzApplicationGroups * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzApplicationGroups * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzApplicationGroups * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzApplicationGroups * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzApplicationGroups, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAzApplicationGroups * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr); + + DECLSPEC_XFGVIRT(IAzApplicationGroups, get_Count) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAzApplicationGroups * This, + /* [retval][out] */ __RPC__out LONG *plCount); + + DECLSPEC_XFGVIRT(IAzApplicationGroups, get__NewEnum) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IAzApplicationGroups * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr); + + END_INTERFACE + } IAzApplicationGroupsVtbl; + + interface IAzApplicationGroups + { + CONST_VTBL struct IAzApplicationGroupsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzApplicationGroups_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzApplicationGroups_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzApplicationGroups_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzApplicationGroups_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzApplicationGroups_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzApplicationGroups_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzApplicationGroups_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzApplicationGroups_get_Item(This,Index,pvarObtPtr) \ + ( (This)->lpVtbl -> get_Item(This,Index,pvarObtPtr) ) + +#define IAzApplicationGroups_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IAzApplicationGroups_get__NewEnum(This,ppEnumPtr) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumPtr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzApplicationGroups_INTERFACE_DEFINED__ */ + + +#ifndef __IAzRole_INTERFACE_DEFINED__ +#define __IAzRole_INTERFACE_DEFINED__ + +/* interface IAzRole */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzRole; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("859e0d8d-62d7-41d8-a034-c0cd5d43fdfa") + IAzRole : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR bstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR bstrDescription) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ApplicationData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ApplicationData( + /* [in] */ __RPC__in BSTR bstrApplicationData) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddAppMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteAppMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddTask( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteTask( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddOperation( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteOperation( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteMember( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Writable( + /* [retval][out] */ __RPC__out BOOL *pfProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AppMembers( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Members( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Operations( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Tasks( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePropertyItem( + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE Submit( + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMemberName( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteMemberName( + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MembersName( + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzRoleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzRole * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzRole * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzRole * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzRole * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzRole * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzRole, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzRole * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzRole, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzRole, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzRole * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzRole, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzRole, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzRole * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzRole, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzRole, AddAppMember) + HRESULT ( STDMETHODCALLTYPE *AddAppMember )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeleteAppMember) + HRESULT ( STDMETHODCALLTYPE *DeleteAppMember )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, AddTask) + HRESULT ( STDMETHODCALLTYPE *AddTask )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeleteTask) + HRESULT ( STDMETHODCALLTYPE *DeleteTask )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, AddOperation) + HRESULT ( STDMETHODCALLTYPE *AddOperation )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeleteOperation) + HRESULT ( STDMETHODCALLTYPE *DeleteOperation )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, AddMember) + HRESULT ( STDMETHODCALLTYPE *AddMember )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeleteMember) + HRESULT ( STDMETHODCALLTYPE *DeleteMember )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzRole * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzRole, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzRole * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRole, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzRole * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, get_AppMembers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AppMembers )( + __RPC__in IAzRole * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRole, get_Members) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Members )( + __RPC__in IAzRole * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRole, get_Operations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Operations )( + __RPC__in IAzRole * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRole, get_Tasks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tasks )( + __RPC__in IAzRole * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRole, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzRole * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzRole * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzRole * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, AddMemberName) + HRESULT ( STDMETHODCALLTYPE *AddMemberName )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeleteMemberName) + HRESULT ( STDMETHODCALLTYPE *DeleteMemberName )( + __RPC__in IAzRole * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, get_MembersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MembersName )( + __RPC__in IAzRole * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + END_INTERFACE + } IAzRoleVtbl; + + interface IAzRole + { + CONST_VTBL struct IAzRoleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzRole_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzRole_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzRole_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzRole_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzRole_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzRole_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzRole_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzRole_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzRole_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzRole_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzRole_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzRole_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzRole_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzRole_AddAppMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddAppMember(This,bstrProp,varReserved) ) + +#define IAzRole_DeleteAppMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteAppMember(This,bstrProp,varReserved) ) + +#define IAzRole_AddTask(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddTask(This,bstrProp,varReserved) ) + +#define IAzRole_DeleteTask(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteTask(This,bstrProp,varReserved) ) + +#define IAzRole_AddOperation(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddOperation(This,bstrProp,varReserved) ) + +#define IAzRole_DeleteOperation(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteOperation(This,bstrProp,varReserved) ) + +#define IAzRole_AddMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddMember(This,bstrProp,varReserved) ) + +#define IAzRole_DeleteMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteMember(This,bstrProp,varReserved) ) + +#define IAzRole_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzRole_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzRole_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzRole_get_AppMembers(This,pvarProp) \ + ( (This)->lpVtbl -> get_AppMembers(This,pvarProp) ) + +#define IAzRole_get_Members(This,pvarProp) \ + ( (This)->lpVtbl -> get_Members(This,pvarProp) ) + +#define IAzRole_get_Operations(This,pvarProp) \ + ( (This)->lpVtbl -> get_Operations(This,pvarProp) ) + +#define IAzRole_get_Tasks(This,pvarProp) \ + ( (This)->lpVtbl -> get_Tasks(This,pvarProp) ) + +#define IAzRole_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzRole_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzRole_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzRole_AddMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddMemberName(This,bstrProp,varReserved) ) + +#define IAzRole_DeleteMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteMemberName(This,bstrProp,varReserved) ) + +#define IAzRole_get_MembersName(This,pvarProp) \ + ( (This)->lpVtbl -> get_MembersName(This,pvarProp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzRole_INTERFACE_DEFINED__ */ + + +#ifndef __IAzRoles_INTERFACE_DEFINED__ +#define __IAzRoles_INTERFACE_DEFINED__ + +/* interface IAzRoles */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzRoles; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("95e0f119-13b4-4dae-b65f-2f7d60d822e4") + IAzRoles : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *plCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzRolesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzRoles * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzRoles * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzRoles * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzRoles * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzRoles * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzRoles * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzRoles * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzRoles, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAzRoles * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr); + + DECLSPEC_XFGVIRT(IAzRoles, get_Count) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAzRoles * This, + /* [retval][out] */ __RPC__out LONG *plCount); + + DECLSPEC_XFGVIRT(IAzRoles, get__NewEnum) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IAzRoles * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr); + + END_INTERFACE + } IAzRolesVtbl; + + interface IAzRoles + { + CONST_VTBL struct IAzRolesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzRoles_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzRoles_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzRoles_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzRoles_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzRoles_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzRoles_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzRoles_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzRoles_get_Item(This,Index,pvarObtPtr) \ + ( (This)->lpVtbl -> get_Item(This,Index,pvarObtPtr) ) + +#define IAzRoles_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IAzRoles_get__NewEnum(This,ppEnumPtr) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumPtr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzRoles_INTERFACE_DEFINED__ */ + + +#ifndef __IAzClientContext_INTERFACE_DEFINED__ +#define __IAzClientContext_INTERFACE_DEFINED__ + +/* interface IAzClientContext */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzClientContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("eff1f00b-488a-466d-afd9-a401c5f9eef5") + IAzClientContext : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE AccessCheck( + /* [in] */ __RPC__in BSTR bstrObjectName, + /* [in] */ VARIANT varScopeNames, + /* [in] */ VARIANT varOperations, + /* [optional][in] */ VARIANT varParameterNames, + /* [optional][in] */ VARIANT varParameterValues, + /* [optional][in] */ VARIANT varInterfaceNames, + /* [optional][in] */ VARIANT varInterfaceFlags, + /* [optional][in] */ VARIANT varInterfaces, + /* [retval][out] */ __RPC__out VARIANT *pvarResults) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBusinessRuleString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBusinessRuleString) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UserDn( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UserSamCompat( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UserDisplay( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UserGuid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UserCanonical( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UserUpn( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UserDnsSamCompat( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRoles( + /* [defaultvalue][in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__out VARIANT *pvarRoleNames) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RoleForAccessCheck( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_RoleForAccessCheck( + /* [in] */ __RPC__in BSTR bstrProp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzClientContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzClientContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzClientContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzClientContext * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzClientContext * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzClientContext * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzClientContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzClientContext * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzClientContext, AccessCheck) + HRESULT ( STDMETHODCALLTYPE *AccessCheck )( + __RPC__in IAzClientContext * This, + /* [in] */ __RPC__in BSTR bstrObjectName, + /* [in] */ VARIANT varScopeNames, + /* [in] */ VARIANT varOperations, + /* [optional][in] */ VARIANT varParameterNames, + /* [optional][in] */ VARIANT varParameterValues, + /* [optional][in] */ VARIANT varInterfaceNames, + /* [optional][in] */ VARIANT varInterfaceFlags, + /* [optional][in] */ VARIANT varInterfaces, + /* [retval][out] */ __RPC__out VARIANT *pvarResults); + + DECLSPEC_XFGVIRT(IAzClientContext, GetBusinessRuleString) + HRESULT ( STDMETHODCALLTYPE *GetBusinessRuleString )( + __RPC__in IAzClientContext * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBusinessRuleString); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserDn) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDn )( + __RPC__in IAzClientContext * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserSamCompat) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSamCompat )( + __RPC__in IAzClientContext * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserDisplay) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDisplay )( + __RPC__in IAzClientContext * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserGuid) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserGuid )( + __RPC__in IAzClientContext * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserCanonical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserCanonical )( + __RPC__in IAzClientContext * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserUpn) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserUpn )( + __RPC__in IAzClientContext * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserDnsSamCompat) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDnsSamCompat )( + __RPC__in IAzClientContext * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzClientContext * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzClientContext, GetRoles) + HRESULT ( STDMETHODCALLTYPE *GetRoles )( + __RPC__in IAzClientContext * This, + /* [defaultvalue][in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__out VARIANT *pvarRoleNames); + + DECLSPEC_XFGVIRT(IAzClientContext, get_RoleForAccessCheck) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoleForAccessCheck )( + __RPC__in IAzClientContext * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, put_RoleForAccessCheck) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RoleForAccessCheck )( + __RPC__in IAzClientContext * This, + /* [in] */ __RPC__in BSTR bstrProp); + + END_INTERFACE + } IAzClientContextVtbl; + + interface IAzClientContext + { + CONST_VTBL struct IAzClientContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzClientContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzClientContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzClientContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzClientContext_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzClientContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzClientContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzClientContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzClientContext_AccessCheck(This,bstrObjectName,varScopeNames,varOperations,varParameterNames,varParameterValues,varInterfaceNames,varInterfaceFlags,varInterfaces,pvarResults) \ + ( (This)->lpVtbl -> AccessCheck(This,bstrObjectName,varScopeNames,varOperations,varParameterNames,varParameterValues,varInterfaceNames,varInterfaceFlags,varInterfaces,pvarResults) ) + +#define IAzClientContext_GetBusinessRuleString(This,pbstrBusinessRuleString) \ + ( (This)->lpVtbl -> GetBusinessRuleString(This,pbstrBusinessRuleString) ) + +#define IAzClientContext_get_UserDn(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserDn(This,pbstrProp) ) + +#define IAzClientContext_get_UserSamCompat(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserSamCompat(This,pbstrProp) ) + +#define IAzClientContext_get_UserDisplay(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserDisplay(This,pbstrProp) ) + +#define IAzClientContext_get_UserGuid(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserGuid(This,pbstrProp) ) + +#define IAzClientContext_get_UserCanonical(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserCanonical(This,pbstrProp) ) + +#define IAzClientContext_get_UserUpn(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserUpn(This,pbstrProp) ) + +#define IAzClientContext_get_UserDnsSamCompat(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserDnsSamCompat(This,pbstrProp) ) + +#define IAzClientContext_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzClientContext_GetRoles(This,bstrScopeName,pvarRoleNames) \ + ( (This)->lpVtbl -> GetRoles(This,bstrScopeName,pvarRoleNames) ) + +#define IAzClientContext_get_RoleForAccessCheck(This,pbstrProp) \ + ( (This)->lpVtbl -> get_RoleForAccessCheck(This,pbstrProp) ) + +#define IAzClientContext_put_RoleForAccessCheck(This,bstrProp) \ + ( (This)->lpVtbl -> put_RoleForAccessCheck(This,bstrProp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzClientContext_INTERFACE_DEFINED__ */ + + +#ifndef __IAzClientContext2_INTERFACE_DEFINED__ +#define __IAzClientContext2_INTERFACE_DEFINED__ + +/* interface IAzClientContext2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzClientContext2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2b0c92b8-208a-488a-8f81-e4edb22111cd") + IAzClientContext2 : public IAzClientContext + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAssignedScopesPage( + /* [in] */ LONG lOptions, + /* [in] */ LONG PageSize, + /* [out][in] */ __RPC__inout VARIANT *pvarCursor, + /* [retval][out] */ __RPC__out VARIANT *pvarScopeNames) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRoles( + /* [in] */ VARIANT varRoles, + /* [in] */ __RPC__in BSTR bstrScopeName) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddApplicationGroups( + /* [in] */ VARIANT varApplicationGroups) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddStringSids( + /* [in] */ VARIANT varStringSids) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_LDAPQueryDN( + /* [in] */ __RPC__in BSTR bstrLDAPQueryDN) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_LDAPQueryDN( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrLDAPQueryDN) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzClientContext2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzClientContext2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzClientContext2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzClientContext2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzClientContext2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzClientContext2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzClientContext2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzClientContext2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzClientContext, AccessCheck) + HRESULT ( STDMETHODCALLTYPE *AccessCheck )( + __RPC__in IAzClientContext2 * This, + /* [in] */ __RPC__in BSTR bstrObjectName, + /* [in] */ VARIANT varScopeNames, + /* [in] */ VARIANT varOperations, + /* [optional][in] */ VARIANT varParameterNames, + /* [optional][in] */ VARIANT varParameterValues, + /* [optional][in] */ VARIANT varInterfaceNames, + /* [optional][in] */ VARIANT varInterfaceFlags, + /* [optional][in] */ VARIANT varInterfaces, + /* [retval][out] */ __RPC__out VARIANT *pvarResults); + + DECLSPEC_XFGVIRT(IAzClientContext, GetBusinessRuleString) + HRESULT ( STDMETHODCALLTYPE *GetBusinessRuleString )( + __RPC__in IAzClientContext2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBusinessRuleString); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserDn) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDn )( + __RPC__in IAzClientContext2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserSamCompat) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSamCompat )( + __RPC__in IAzClientContext2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserDisplay) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDisplay )( + __RPC__in IAzClientContext2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserGuid) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserGuid )( + __RPC__in IAzClientContext2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserCanonical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserCanonical )( + __RPC__in IAzClientContext2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserUpn) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserUpn )( + __RPC__in IAzClientContext2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserDnsSamCompat) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDnsSamCompat )( + __RPC__in IAzClientContext2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzClientContext2 * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzClientContext, GetRoles) + HRESULT ( STDMETHODCALLTYPE *GetRoles )( + __RPC__in IAzClientContext2 * This, + /* [defaultvalue][in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__out VARIANT *pvarRoleNames); + + DECLSPEC_XFGVIRT(IAzClientContext, get_RoleForAccessCheck) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoleForAccessCheck )( + __RPC__in IAzClientContext2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, put_RoleForAccessCheck) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RoleForAccessCheck )( + __RPC__in IAzClientContext2 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext2, GetAssignedScopesPage) + HRESULT ( STDMETHODCALLTYPE *GetAssignedScopesPage )( + __RPC__in IAzClientContext2 * This, + /* [in] */ LONG lOptions, + /* [in] */ LONG PageSize, + /* [out][in] */ __RPC__inout VARIANT *pvarCursor, + /* [retval][out] */ __RPC__out VARIANT *pvarScopeNames); + + DECLSPEC_XFGVIRT(IAzClientContext2, AddRoles) + HRESULT ( STDMETHODCALLTYPE *AddRoles )( + __RPC__in IAzClientContext2 * This, + /* [in] */ VARIANT varRoles, + /* [in] */ __RPC__in BSTR bstrScopeName); + + DECLSPEC_XFGVIRT(IAzClientContext2, AddApplicationGroups) + HRESULT ( STDMETHODCALLTYPE *AddApplicationGroups )( + __RPC__in IAzClientContext2 * This, + /* [in] */ VARIANT varApplicationGroups); + + DECLSPEC_XFGVIRT(IAzClientContext2, AddStringSids) + HRESULT ( STDMETHODCALLTYPE *AddStringSids )( + __RPC__in IAzClientContext2 * This, + /* [in] */ VARIANT varStringSids); + + DECLSPEC_XFGVIRT(IAzClientContext2, put_LDAPQueryDN) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_LDAPQueryDN )( + __RPC__in IAzClientContext2 * This, + /* [in] */ __RPC__in BSTR bstrLDAPQueryDN); + + DECLSPEC_XFGVIRT(IAzClientContext2, get_LDAPQueryDN) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_LDAPQueryDN )( + __RPC__in IAzClientContext2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrLDAPQueryDN); + + END_INTERFACE + } IAzClientContext2Vtbl; + + interface IAzClientContext2 + { + CONST_VTBL struct IAzClientContext2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzClientContext2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzClientContext2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzClientContext2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzClientContext2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzClientContext2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzClientContext2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzClientContext2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzClientContext2_AccessCheck(This,bstrObjectName,varScopeNames,varOperations,varParameterNames,varParameterValues,varInterfaceNames,varInterfaceFlags,varInterfaces,pvarResults) \ + ( (This)->lpVtbl -> AccessCheck(This,bstrObjectName,varScopeNames,varOperations,varParameterNames,varParameterValues,varInterfaceNames,varInterfaceFlags,varInterfaces,pvarResults) ) + +#define IAzClientContext2_GetBusinessRuleString(This,pbstrBusinessRuleString) \ + ( (This)->lpVtbl -> GetBusinessRuleString(This,pbstrBusinessRuleString) ) + +#define IAzClientContext2_get_UserDn(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserDn(This,pbstrProp) ) + +#define IAzClientContext2_get_UserSamCompat(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserSamCompat(This,pbstrProp) ) + +#define IAzClientContext2_get_UserDisplay(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserDisplay(This,pbstrProp) ) + +#define IAzClientContext2_get_UserGuid(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserGuid(This,pbstrProp) ) + +#define IAzClientContext2_get_UserCanonical(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserCanonical(This,pbstrProp) ) + +#define IAzClientContext2_get_UserUpn(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserUpn(This,pbstrProp) ) + +#define IAzClientContext2_get_UserDnsSamCompat(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserDnsSamCompat(This,pbstrProp) ) + +#define IAzClientContext2_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzClientContext2_GetRoles(This,bstrScopeName,pvarRoleNames) \ + ( (This)->lpVtbl -> GetRoles(This,bstrScopeName,pvarRoleNames) ) + +#define IAzClientContext2_get_RoleForAccessCheck(This,pbstrProp) \ + ( (This)->lpVtbl -> get_RoleForAccessCheck(This,pbstrProp) ) + +#define IAzClientContext2_put_RoleForAccessCheck(This,bstrProp) \ + ( (This)->lpVtbl -> put_RoleForAccessCheck(This,bstrProp) ) + + +#define IAzClientContext2_GetAssignedScopesPage(This,lOptions,PageSize,pvarCursor,pvarScopeNames) \ + ( (This)->lpVtbl -> GetAssignedScopesPage(This,lOptions,PageSize,pvarCursor,pvarScopeNames) ) + +#define IAzClientContext2_AddRoles(This,varRoles,bstrScopeName) \ + ( (This)->lpVtbl -> AddRoles(This,varRoles,bstrScopeName) ) + +#define IAzClientContext2_AddApplicationGroups(This,varApplicationGroups) \ + ( (This)->lpVtbl -> AddApplicationGroups(This,varApplicationGroups) ) + +#define IAzClientContext2_AddStringSids(This,varStringSids) \ + ( (This)->lpVtbl -> AddStringSids(This,varStringSids) ) + +#define IAzClientContext2_put_LDAPQueryDN(This,bstrLDAPQueryDN) \ + ( (This)->lpVtbl -> put_LDAPQueryDN(This,bstrLDAPQueryDN) ) + +#define IAzClientContext2_get_LDAPQueryDN(This,pbstrLDAPQueryDN) \ + ( (This)->lpVtbl -> get_LDAPQueryDN(This,pbstrLDAPQueryDN) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzClientContext2_INTERFACE_DEFINED__ */ + + +#ifndef __IAzBizRuleContext_INTERFACE_DEFINED__ +#define __IAzBizRuleContext_INTERFACE_DEFINED__ + +/* interface IAzBizRuleContext */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzBizRuleContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e192f17d-d59f-455e-a152-940316cd77b2") + IAzBizRuleContext : public IDispatch + { + public: + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BusinessRuleResult( + /* [in] */ BOOL bResult) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BusinessRuleString( + /* [in] */ __RPC__in BSTR bstrBusinessRuleString) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BusinessRuleString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBusinessRuleString) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParameter( + /* [in] */ __RPC__in BSTR bstrParameterName, + /* [retval][out] */ __RPC__out VARIANT *pvarParameterValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzBizRuleContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzBizRuleContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzBizRuleContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzBizRuleContext * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzBizRuleContext * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzBizRuleContext * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzBizRuleContext * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzBizRuleContext * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzBizRuleContext, put_BusinessRuleResult) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BusinessRuleResult )( + __RPC__in IAzBizRuleContext * This, + /* [in] */ BOOL bResult); + + DECLSPEC_XFGVIRT(IAzBizRuleContext, put_BusinessRuleString) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BusinessRuleString )( + __RPC__in IAzBizRuleContext * This, + /* [in] */ __RPC__in BSTR bstrBusinessRuleString); + + DECLSPEC_XFGVIRT(IAzBizRuleContext, get_BusinessRuleString) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BusinessRuleString )( + __RPC__in IAzBizRuleContext * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBusinessRuleString); + + DECLSPEC_XFGVIRT(IAzBizRuleContext, GetParameter) + HRESULT ( STDMETHODCALLTYPE *GetParameter )( + __RPC__in IAzBizRuleContext * This, + /* [in] */ __RPC__in BSTR bstrParameterName, + /* [retval][out] */ __RPC__out VARIANT *pvarParameterValue); + + END_INTERFACE + } IAzBizRuleContextVtbl; + + interface IAzBizRuleContext + { + CONST_VTBL struct IAzBizRuleContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzBizRuleContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzBizRuleContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzBizRuleContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzBizRuleContext_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzBizRuleContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzBizRuleContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzBizRuleContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzBizRuleContext_put_BusinessRuleResult(This,bResult) \ + ( (This)->lpVtbl -> put_BusinessRuleResult(This,bResult) ) + +#define IAzBizRuleContext_put_BusinessRuleString(This,bstrBusinessRuleString) \ + ( (This)->lpVtbl -> put_BusinessRuleString(This,bstrBusinessRuleString) ) + +#define IAzBizRuleContext_get_BusinessRuleString(This,pbstrBusinessRuleString) \ + ( (This)->lpVtbl -> get_BusinessRuleString(This,pbstrBusinessRuleString) ) + +#define IAzBizRuleContext_GetParameter(This,bstrParameterName,pvarParameterValue) \ + ( (This)->lpVtbl -> GetParameter(This,bstrParameterName,pvarParameterValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzBizRuleContext_INTERFACE_DEFINED__ */ + + +#ifndef __IAzBizRuleParameters_INTERFACE_DEFINED__ +#define __IAzBizRuleParameters_INTERFACE_DEFINED__ + +/* interface IAzBizRuleParameters */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzBizRuleParameters; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fc17685f-e25d-4dcd-bae1-276ec9533cb5") + IAzBizRuleParameters : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE AddParameter( + /* [in] */ __RPC__in BSTR bstrParameterName, + /* [in] */ VARIANT varParameterValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddParameters( + /* [in] */ VARIANT varParameterNames, + /* [in] */ VARIANT varParameterValues) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParameterValue( + /* [in] */ __RPC__in BSTR bstrParameterName, + /* [retval][out] */ __RPC__out VARIANT *pvarParameterValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ __RPC__in BSTR varParameterName) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out unsigned long *plCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzBizRuleParametersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzBizRuleParameters * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzBizRuleParameters * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzBizRuleParameters * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzBizRuleParameters * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzBizRuleParameters * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzBizRuleParameters * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzBizRuleParameters * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzBizRuleParameters, AddParameter) + HRESULT ( STDMETHODCALLTYPE *AddParameter )( + __RPC__in IAzBizRuleParameters * This, + /* [in] */ __RPC__in BSTR bstrParameterName, + /* [in] */ VARIANT varParameterValue); + + DECLSPEC_XFGVIRT(IAzBizRuleParameters, AddParameters) + HRESULT ( STDMETHODCALLTYPE *AddParameters )( + __RPC__in IAzBizRuleParameters * This, + /* [in] */ VARIANT varParameterNames, + /* [in] */ VARIANT varParameterValues); + + DECLSPEC_XFGVIRT(IAzBizRuleParameters, GetParameterValue) + HRESULT ( STDMETHODCALLTYPE *GetParameterValue )( + __RPC__in IAzBizRuleParameters * This, + /* [in] */ __RPC__in BSTR bstrParameterName, + /* [retval][out] */ __RPC__out VARIANT *pvarParameterValue); + + DECLSPEC_XFGVIRT(IAzBizRuleParameters, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IAzBizRuleParameters * This, + /* [in] */ __RPC__in BSTR varParameterName); + + DECLSPEC_XFGVIRT(IAzBizRuleParameters, RemoveAll) + HRESULT ( STDMETHODCALLTYPE *RemoveAll )( + __RPC__in IAzBizRuleParameters * This); + + DECLSPEC_XFGVIRT(IAzBizRuleParameters, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAzBizRuleParameters * This, + /* [retval][out] */ __RPC__out unsigned long *plCount); + + END_INTERFACE + } IAzBizRuleParametersVtbl; + + interface IAzBizRuleParameters + { + CONST_VTBL struct IAzBizRuleParametersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzBizRuleParameters_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzBizRuleParameters_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzBizRuleParameters_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzBizRuleParameters_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzBizRuleParameters_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzBizRuleParameters_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzBizRuleParameters_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzBizRuleParameters_AddParameter(This,bstrParameterName,varParameterValue) \ + ( (This)->lpVtbl -> AddParameter(This,bstrParameterName,varParameterValue) ) + +#define IAzBizRuleParameters_AddParameters(This,varParameterNames,varParameterValues) \ + ( (This)->lpVtbl -> AddParameters(This,varParameterNames,varParameterValues) ) + +#define IAzBizRuleParameters_GetParameterValue(This,bstrParameterName,pvarParameterValue) \ + ( (This)->lpVtbl -> GetParameterValue(This,bstrParameterName,pvarParameterValue) ) + +#define IAzBizRuleParameters_Remove(This,varParameterName) \ + ( (This)->lpVtbl -> Remove(This,varParameterName) ) + +#define IAzBizRuleParameters_RemoveAll(This) \ + ( (This)->lpVtbl -> RemoveAll(This) ) + +#define IAzBizRuleParameters_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzBizRuleParameters_INTERFACE_DEFINED__ */ + + +#ifndef __IAzBizRuleInterfaces_INTERFACE_DEFINED__ +#define __IAzBizRuleInterfaces_INTERFACE_DEFINED__ + +/* interface IAzBizRuleInterfaces */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzBizRuleInterfaces; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e94128c7-e9da-44cc-b0bd-53036f3aab3d") + IAzBizRuleInterfaces : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE AddInterface( + /* [in] */ __RPC__in BSTR bstrInterfaceName, + /* [in] */ LONG lInterfaceFlag, + /* [in] */ VARIANT varInterface) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddInterfaces( + /* [in] */ VARIANT varInterfaceNames, + /* [in] */ VARIANT varInterfaceFlags, + /* [in] */ VARIANT varInterfaces) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInterfaceValue( + /* [in] */ __RPC__in BSTR bstrInterfaceName, + /* [out] */ __RPC__out LONG *lInterfaceFlag, + /* [out] */ __RPC__out VARIANT *varInterface) = 0; + + virtual HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ __RPC__in BSTR bstrInterfaceName) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveAll( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out unsigned long *plCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzBizRuleInterfacesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzBizRuleInterfaces * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzBizRuleInterfaces * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzBizRuleInterfaces * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzBizRuleInterfaces * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzBizRuleInterfaces * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzBizRuleInterfaces * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzBizRuleInterfaces * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzBizRuleInterfaces, AddInterface) + HRESULT ( STDMETHODCALLTYPE *AddInterface )( + __RPC__in IAzBizRuleInterfaces * This, + /* [in] */ __RPC__in BSTR bstrInterfaceName, + /* [in] */ LONG lInterfaceFlag, + /* [in] */ VARIANT varInterface); + + DECLSPEC_XFGVIRT(IAzBizRuleInterfaces, AddInterfaces) + HRESULT ( STDMETHODCALLTYPE *AddInterfaces )( + __RPC__in IAzBizRuleInterfaces * This, + /* [in] */ VARIANT varInterfaceNames, + /* [in] */ VARIANT varInterfaceFlags, + /* [in] */ VARIANT varInterfaces); + + DECLSPEC_XFGVIRT(IAzBizRuleInterfaces, GetInterfaceValue) + HRESULT ( STDMETHODCALLTYPE *GetInterfaceValue )( + __RPC__in IAzBizRuleInterfaces * This, + /* [in] */ __RPC__in BSTR bstrInterfaceName, + /* [out] */ __RPC__out LONG *lInterfaceFlag, + /* [out] */ __RPC__out VARIANT *varInterface); + + DECLSPEC_XFGVIRT(IAzBizRuleInterfaces, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IAzBizRuleInterfaces * This, + /* [in] */ __RPC__in BSTR bstrInterfaceName); + + DECLSPEC_XFGVIRT(IAzBizRuleInterfaces, RemoveAll) + HRESULT ( STDMETHODCALLTYPE *RemoveAll )( + __RPC__in IAzBizRuleInterfaces * This); + + DECLSPEC_XFGVIRT(IAzBizRuleInterfaces, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAzBizRuleInterfaces * This, + /* [retval][out] */ __RPC__out unsigned long *plCount); + + END_INTERFACE + } IAzBizRuleInterfacesVtbl; + + interface IAzBizRuleInterfaces + { + CONST_VTBL struct IAzBizRuleInterfacesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzBizRuleInterfaces_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzBizRuleInterfaces_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzBizRuleInterfaces_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzBizRuleInterfaces_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzBizRuleInterfaces_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzBizRuleInterfaces_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzBizRuleInterfaces_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzBizRuleInterfaces_AddInterface(This,bstrInterfaceName,lInterfaceFlag,varInterface) \ + ( (This)->lpVtbl -> AddInterface(This,bstrInterfaceName,lInterfaceFlag,varInterface) ) + +#define IAzBizRuleInterfaces_AddInterfaces(This,varInterfaceNames,varInterfaceFlags,varInterfaces) \ + ( (This)->lpVtbl -> AddInterfaces(This,varInterfaceNames,varInterfaceFlags,varInterfaces) ) + +#define IAzBizRuleInterfaces_GetInterfaceValue(This,bstrInterfaceName,lInterfaceFlag,varInterface) \ + ( (This)->lpVtbl -> GetInterfaceValue(This,bstrInterfaceName,lInterfaceFlag,varInterface) ) + +#define IAzBizRuleInterfaces_Remove(This,bstrInterfaceName) \ + ( (This)->lpVtbl -> Remove(This,bstrInterfaceName) ) + +#define IAzBizRuleInterfaces_RemoveAll(This) \ + ( (This)->lpVtbl -> RemoveAll(This) ) + +#define IAzBizRuleInterfaces_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzBizRuleInterfaces_INTERFACE_DEFINED__ */ + + +#ifndef __IAzClientContext3_INTERFACE_DEFINED__ +#define __IAzClientContext3_INTERFACE_DEFINED__ + +/* interface IAzClientContext3 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzClientContext3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("11894fde-1deb-4b4b-8907-6d1cda1f5d4f") + IAzClientContext3 : public IAzClientContext2 + { + public: + virtual HRESULT STDMETHODCALLTYPE AccessCheck2( + /* [in] */ __RPC__in BSTR bstrObjectName, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ long lOperation, + /* [retval][out] */ __RPC__out unsigned long *plResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsInRoleAssignment( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsInRole) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOperations( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__deref_out_opt IAzOperations **ppOperationCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTasks( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__deref_out_opt IAzTasks **ppTaskCollection) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BizRuleParameters( + /* [retval][out] */ __RPC__deref_out_opt IAzBizRuleParameters **ppBizRuleParam) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BizRuleInterfaces( + /* [retval][out] */ __RPC__deref_out_opt IAzBizRuleInterfaces **ppBizRuleInterfaces) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGroups( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ ULONG ulOptions, + /* [retval][out] */ __RPC__out VARIANT *pGroupArray) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Sids( + /* [retval][out] */ __RPC__out VARIANT *pStringSidArray) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzClientContext3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzClientContext3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzClientContext3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzClientContext3 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzClientContext3 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzClientContext3 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzClientContext3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzClientContext3 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzClientContext, AccessCheck) + HRESULT ( STDMETHODCALLTYPE *AccessCheck )( + __RPC__in IAzClientContext3 * This, + /* [in] */ __RPC__in BSTR bstrObjectName, + /* [in] */ VARIANT varScopeNames, + /* [in] */ VARIANT varOperations, + /* [optional][in] */ VARIANT varParameterNames, + /* [optional][in] */ VARIANT varParameterValues, + /* [optional][in] */ VARIANT varInterfaceNames, + /* [optional][in] */ VARIANT varInterfaceFlags, + /* [optional][in] */ VARIANT varInterfaces, + /* [retval][out] */ __RPC__out VARIANT *pvarResults); + + DECLSPEC_XFGVIRT(IAzClientContext, GetBusinessRuleString) + HRESULT ( STDMETHODCALLTYPE *GetBusinessRuleString )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBusinessRuleString); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserDn) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDn )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserSamCompat) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSamCompat )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserDisplay) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDisplay )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserGuid) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserGuid )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserCanonical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserCanonical )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserUpn) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserUpn )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, get_UserDnsSamCompat) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDnsSamCompat )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzClientContext3 * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzClientContext, GetRoles) + HRESULT ( STDMETHODCALLTYPE *GetRoles )( + __RPC__in IAzClientContext3 * This, + /* [defaultvalue][in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__out VARIANT *pvarRoleNames); + + DECLSPEC_XFGVIRT(IAzClientContext, get_RoleForAccessCheck) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoleForAccessCheck )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext, put_RoleForAccessCheck) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RoleForAccessCheck )( + __RPC__in IAzClientContext3 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzClientContext2, GetAssignedScopesPage) + HRESULT ( STDMETHODCALLTYPE *GetAssignedScopesPage )( + __RPC__in IAzClientContext3 * This, + /* [in] */ LONG lOptions, + /* [in] */ LONG PageSize, + /* [out][in] */ __RPC__inout VARIANT *pvarCursor, + /* [retval][out] */ __RPC__out VARIANT *pvarScopeNames); + + DECLSPEC_XFGVIRT(IAzClientContext2, AddRoles) + HRESULT ( STDMETHODCALLTYPE *AddRoles )( + __RPC__in IAzClientContext3 * This, + /* [in] */ VARIANT varRoles, + /* [in] */ __RPC__in BSTR bstrScopeName); + + DECLSPEC_XFGVIRT(IAzClientContext2, AddApplicationGroups) + HRESULT ( STDMETHODCALLTYPE *AddApplicationGroups )( + __RPC__in IAzClientContext3 * This, + /* [in] */ VARIANT varApplicationGroups); + + DECLSPEC_XFGVIRT(IAzClientContext2, AddStringSids) + HRESULT ( STDMETHODCALLTYPE *AddStringSids )( + __RPC__in IAzClientContext3 * This, + /* [in] */ VARIANT varStringSids); + + DECLSPEC_XFGVIRT(IAzClientContext2, put_LDAPQueryDN) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_LDAPQueryDN )( + __RPC__in IAzClientContext3 * This, + /* [in] */ __RPC__in BSTR bstrLDAPQueryDN); + + DECLSPEC_XFGVIRT(IAzClientContext2, get_LDAPQueryDN) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_LDAPQueryDN )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrLDAPQueryDN); + + DECLSPEC_XFGVIRT(IAzClientContext3, AccessCheck2) + HRESULT ( STDMETHODCALLTYPE *AccessCheck2 )( + __RPC__in IAzClientContext3 * This, + /* [in] */ __RPC__in BSTR bstrObjectName, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ long lOperation, + /* [retval][out] */ __RPC__out unsigned long *plResult); + + DECLSPEC_XFGVIRT(IAzClientContext3, IsInRoleAssignment) + HRESULT ( STDMETHODCALLTYPE *IsInRoleAssignment )( + __RPC__in IAzClientContext3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbIsInRole); + + DECLSPEC_XFGVIRT(IAzClientContext3, GetOperations) + HRESULT ( STDMETHODCALLTYPE *GetOperations )( + __RPC__in IAzClientContext3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__deref_out_opt IAzOperations **ppOperationCollection); + + DECLSPEC_XFGVIRT(IAzClientContext3, GetTasks) + HRESULT ( STDMETHODCALLTYPE *GetTasks )( + __RPC__in IAzClientContext3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__deref_out_opt IAzTasks **ppTaskCollection); + + DECLSPEC_XFGVIRT(IAzClientContext3, get_BizRuleParameters) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRuleParameters )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzBizRuleParameters **ppBizRuleParam); + + DECLSPEC_XFGVIRT(IAzClientContext3, get_BizRuleInterfaces) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRuleInterfaces )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzBizRuleInterfaces **ppBizRuleInterfaces); + + DECLSPEC_XFGVIRT(IAzClientContext3, GetGroups) + HRESULT ( STDMETHODCALLTYPE *GetGroups )( + __RPC__in IAzClientContext3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ ULONG ulOptions, + /* [retval][out] */ __RPC__out VARIANT *pGroupArray); + + DECLSPEC_XFGVIRT(IAzClientContext3, get_Sids) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Sids )( + __RPC__in IAzClientContext3 * This, + /* [retval][out] */ __RPC__out VARIANT *pStringSidArray); + + END_INTERFACE + } IAzClientContext3Vtbl; + + interface IAzClientContext3 + { + CONST_VTBL struct IAzClientContext3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzClientContext3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzClientContext3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzClientContext3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzClientContext3_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzClientContext3_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzClientContext3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzClientContext3_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzClientContext3_AccessCheck(This,bstrObjectName,varScopeNames,varOperations,varParameterNames,varParameterValues,varInterfaceNames,varInterfaceFlags,varInterfaces,pvarResults) \ + ( (This)->lpVtbl -> AccessCheck(This,bstrObjectName,varScopeNames,varOperations,varParameterNames,varParameterValues,varInterfaceNames,varInterfaceFlags,varInterfaces,pvarResults) ) + +#define IAzClientContext3_GetBusinessRuleString(This,pbstrBusinessRuleString) \ + ( (This)->lpVtbl -> GetBusinessRuleString(This,pbstrBusinessRuleString) ) + +#define IAzClientContext3_get_UserDn(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserDn(This,pbstrProp) ) + +#define IAzClientContext3_get_UserSamCompat(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserSamCompat(This,pbstrProp) ) + +#define IAzClientContext3_get_UserDisplay(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserDisplay(This,pbstrProp) ) + +#define IAzClientContext3_get_UserGuid(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserGuid(This,pbstrProp) ) + +#define IAzClientContext3_get_UserCanonical(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserCanonical(This,pbstrProp) ) + +#define IAzClientContext3_get_UserUpn(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserUpn(This,pbstrProp) ) + +#define IAzClientContext3_get_UserDnsSamCompat(This,pbstrProp) \ + ( (This)->lpVtbl -> get_UserDnsSamCompat(This,pbstrProp) ) + +#define IAzClientContext3_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzClientContext3_GetRoles(This,bstrScopeName,pvarRoleNames) \ + ( (This)->lpVtbl -> GetRoles(This,bstrScopeName,pvarRoleNames) ) + +#define IAzClientContext3_get_RoleForAccessCheck(This,pbstrProp) \ + ( (This)->lpVtbl -> get_RoleForAccessCheck(This,pbstrProp) ) + +#define IAzClientContext3_put_RoleForAccessCheck(This,bstrProp) \ + ( (This)->lpVtbl -> put_RoleForAccessCheck(This,bstrProp) ) + + +#define IAzClientContext3_GetAssignedScopesPage(This,lOptions,PageSize,pvarCursor,pvarScopeNames) \ + ( (This)->lpVtbl -> GetAssignedScopesPage(This,lOptions,PageSize,pvarCursor,pvarScopeNames) ) + +#define IAzClientContext3_AddRoles(This,varRoles,bstrScopeName) \ + ( (This)->lpVtbl -> AddRoles(This,varRoles,bstrScopeName) ) + +#define IAzClientContext3_AddApplicationGroups(This,varApplicationGroups) \ + ( (This)->lpVtbl -> AddApplicationGroups(This,varApplicationGroups) ) + +#define IAzClientContext3_AddStringSids(This,varStringSids) \ + ( (This)->lpVtbl -> AddStringSids(This,varStringSids) ) + +#define IAzClientContext3_put_LDAPQueryDN(This,bstrLDAPQueryDN) \ + ( (This)->lpVtbl -> put_LDAPQueryDN(This,bstrLDAPQueryDN) ) + +#define IAzClientContext3_get_LDAPQueryDN(This,pbstrLDAPQueryDN) \ + ( (This)->lpVtbl -> get_LDAPQueryDN(This,pbstrLDAPQueryDN) ) + + +#define IAzClientContext3_AccessCheck2(This,bstrObjectName,bstrScopeName,lOperation,plResult) \ + ( (This)->lpVtbl -> AccessCheck2(This,bstrObjectName,bstrScopeName,lOperation,plResult) ) + +#define IAzClientContext3_IsInRoleAssignment(This,bstrScopeName,bstrRoleName,pbIsInRole) \ + ( (This)->lpVtbl -> IsInRoleAssignment(This,bstrScopeName,bstrRoleName,pbIsInRole) ) + +#define IAzClientContext3_GetOperations(This,bstrScopeName,ppOperationCollection) \ + ( (This)->lpVtbl -> GetOperations(This,bstrScopeName,ppOperationCollection) ) + +#define IAzClientContext3_GetTasks(This,bstrScopeName,ppTaskCollection) \ + ( (This)->lpVtbl -> GetTasks(This,bstrScopeName,ppTaskCollection) ) + +#define IAzClientContext3_get_BizRuleParameters(This,ppBizRuleParam) \ + ( (This)->lpVtbl -> get_BizRuleParameters(This,ppBizRuleParam) ) + +#define IAzClientContext3_get_BizRuleInterfaces(This,ppBizRuleInterfaces) \ + ( (This)->lpVtbl -> get_BizRuleInterfaces(This,ppBizRuleInterfaces) ) + +#define IAzClientContext3_GetGroups(This,bstrScopeName,ulOptions,pGroupArray) \ + ( (This)->lpVtbl -> GetGroups(This,bstrScopeName,ulOptions,pGroupArray) ) + +#define IAzClientContext3_get_Sids(This,pStringSidArray) \ + ( (This)->lpVtbl -> get_Sids(This,pStringSidArray) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzClientContext3_INTERFACE_DEFINED__ */ + + +#ifndef __IAzScope2_INTERFACE_DEFINED__ +#define __IAzScope2_INTERFACE_DEFINED__ + +/* interface IAzScope2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzScope2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ee9fe8c9-c9f3-40e2-aa12-d1d8599727fd") + IAzScope2 : public IAzScope + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RoleDefinitions( + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinitions **ppRoleDefinitions) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRoleDefinition( + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinition **ppRoleDefinitions) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenRoleDefinition( + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinition **ppRoleDefinitions) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRoleDefinition( + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RoleAssignments( + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRoleAssignment( + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignment **ppRoleAssignment) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenRoleAssignment( + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignment **ppRoleAssignment) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRoleAssignment( + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzScope2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzScope2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzScope2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzScope2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzScope2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzScope2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzScope, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzScope, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzScope, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzScope, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzScope, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzScope, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzScope, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzScope, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzScope2 * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzScope, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzScope2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzScope2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzScope2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, get_PolicyAdministrators) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministrators )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzScope, get_PolicyReaders) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReaders )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzScope, AddPolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministrator )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, DeletePolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministrator )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, AddPolicyReader) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReader )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, DeletePolicyReader) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReader )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, get_ApplicationGroups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationGroups )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection); + + DECLSPEC_XFGVIRT(IAzScope, OpenApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *OpenApplicationGroup )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzScope, CreateApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *CreateApplicationGroup )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzScope, DeleteApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *DeleteApplicationGroup )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, get_Roles) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Roles )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoles **ppRoleCollection); + + DECLSPEC_XFGVIRT(IAzScope, OpenRole) + HRESULT ( STDMETHODCALLTYPE *OpenRole )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole); + + DECLSPEC_XFGVIRT(IAzScope, CreateRole) + HRESULT ( STDMETHODCALLTYPE *CreateRole )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole); + + DECLSPEC_XFGVIRT(IAzScope, DeleteRole) + HRESULT ( STDMETHODCALLTYPE *DeleteRole )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, get_Tasks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tasks )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzTasks **ppTaskCollection); + + DECLSPEC_XFGVIRT(IAzScope, OpenTask) + HRESULT ( STDMETHODCALLTYPE *OpenTask )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask); + + DECLSPEC_XFGVIRT(IAzScope, CreateTask) + HRESULT ( STDMETHODCALLTYPE *CreateTask )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask); + + DECLSPEC_XFGVIRT(IAzScope, DeleteTask) + HRESULT ( STDMETHODCALLTYPE *DeleteTask )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzScope2 * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, get_CanBeDelegated) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CanBeDelegated )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzScope, get_BizrulesWritable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizrulesWritable )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzScope, get_PolicyAdministratorsName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministratorsName )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzScope, get_PolicyReadersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReadersName )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzScope, AddPolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministratorName )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, DeletePolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministratorName )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, AddPolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReaderName )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope, DeletePolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReaderName )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzScope2, get_RoleDefinitions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoleDefinitions )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinitions **ppRoleDefinitions); + + DECLSPEC_XFGVIRT(IAzScope2, CreateRoleDefinition) + HRESULT ( STDMETHODCALLTYPE *CreateRoleDefinition )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinition **ppRoleDefinitions); + + DECLSPEC_XFGVIRT(IAzScope2, OpenRoleDefinition) + HRESULT ( STDMETHODCALLTYPE *OpenRoleDefinition )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinition **ppRoleDefinitions); + + DECLSPEC_XFGVIRT(IAzScope2, DeleteRoleDefinition) + HRESULT ( STDMETHODCALLTYPE *DeleteRoleDefinition )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName); + + DECLSPEC_XFGVIRT(IAzScope2, get_RoleAssignments) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoleAssignments )( + __RPC__in IAzScope2 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments); + + DECLSPEC_XFGVIRT(IAzScope2, CreateRoleAssignment) + HRESULT ( STDMETHODCALLTYPE *CreateRoleAssignment )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignment **ppRoleAssignment); + + DECLSPEC_XFGVIRT(IAzScope2, OpenRoleAssignment) + HRESULT ( STDMETHODCALLTYPE *OpenRoleAssignment )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignment **ppRoleAssignment); + + DECLSPEC_XFGVIRT(IAzScope2, DeleteRoleAssignment) + HRESULT ( STDMETHODCALLTYPE *DeleteRoleAssignment )( + __RPC__in IAzScope2 * This, + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName); + + END_INTERFACE + } IAzScope2Vtbl; + + interface IAzScope2 + { + CONST_VTBL struct IAzScope2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzScope2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzScope2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzScope2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzScope2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzScope2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzScope2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzScope2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzScope2_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzScope2_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzScope2_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzScope2_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzScope2_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzScope2_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzScope2_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzScope2_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzScope2_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzScope2_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzScope2_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzScope2_get_PolicyAdministrators(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministrators(This,pvarAdmins) ) + +#define IAzScope2_get_PolicyReaders(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReaders(This,pvarReaders) ) + +#define IAzScope2_AddPolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzScope2_DeletePolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzScope2_AddPolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReader(This,bstrReader,varReserved) ) + +#define IAzScope2_DeletePolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReader(This,bstrReader,varReserved) ) + +#define IAzScope2_get_ApplicationGroups(This,ppGroupCollection) \ + ( (This)->lpVtbl -> get_ApplicationGroups(This,ppGroupCollection) ) + +#define IAzScope2_OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzScope2_CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzScope2_DeleteApplicationGroup(This,bstrGroupName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplicationGroup(This,bstrGroupName,varReserved) ) + +#define IAzScope2_get_Roles(This,ppRoleCollection) \ + ( (This)->lpVtbl -> get_Roles(This,ppRoleCollection) ) + +#define IAzScope2_OpenRole(This,bstrRoleName,varReserved,ppRole) \ + ( (This)->lpVtbl -> OpenRole(This,bstrRoleName,varReserved,ppRole) ) + +#define IAzScope2_CreateRole(This,bstrRoleName,varReserved,ppRole) \ + ( (This)->lpVtbl -> CreateRole(This,bstrRoleName,varReserved,ppRole) ) + +#define IAzScope2_DeleteRole(This,bstrRoleName,varReserved) \ + ( (This)->lpVtbl -> DeleteRole(This,bstrRoleName,varReserved) ) + +#define IAzScope2_get_Tasks(This,ppTaskCollection) \ + ( (This)->lpVtbl -> get_Tasks(This,ppTaskCollection) ) + +#define IAzScope2_OpenTask(This,bstrTaskName,varReserved,ppTask) \ + ( (This)->lpVtbl -> OpenTask(This,bstrTaskName,varReserved,ppTask) ) + +#define IAzScope2_CreateTask(This,bstrTaskName,varReserved,ppTask) \ + ( (This)->lpVtbl -> CreateTask(This,bstrTaskName,varReserved,ppTask) ) + +#define IAzScope2_DeleteTask(This,bstrTaskName,varReserved) \ + ( (This)->lpVtbl -> DeleteTask(This,bstrTaskName,varReserved) ) + +#define IAzScope2_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzScope2_get_CanBeDelegated(This,pfProp) \ + ( (This)->lpVtbl -> get_CanBeDelegated(This,pfProp) ) + +#define IAzScope2_get_BizrulesWritable(This,pfProp) \ + ( (This)->lpVtbl -> get_BizrulesWritable(This,pfProp) ) + +#define IAzScope2_get_PolicyAdministratorsName(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministratorsName(This,pvarAdmins) ) + +#define IAzScope2_get_PolicyReadersName(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReadersName(This,pvarReaders) ) + +#define IAzScope2_AddPolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzScope2_DeletePolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzScope2_AddPolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzScope2_DeletePolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReaderName(This,bstrReader,varReserved) ) + + +#define IAzScope2_get_RoleDefinitions(This,ppRoleDefinitions) \ + ( (This)->lpVtbl -> get_RoleDefinitions(This,ppRoleDefinitions) ) + +#define IAzScope2_CreateRoleDefinition(This,bstrRoleDefinitionName,ppRoleDefinitions) \ + ( (This)->lpVtbl -> CreateRoleDefinition(This,bstrRoleDefinitionName,ppRoleDefinitions) ) + +#define IAzScope2_OpenRoleDefinition(This,bstrRoleDefinitionName,ppRoleDefinitions) \ + ( (This)->lpVtbl -> OpenRoleDefinition(This,bstrRoleDefinitionName,ppRoleDefinitions) ) + +#define IAzScope2_DeleteRoleDefinition(This,bstrRoleDefinitionName) \ + ( (This)->lpVtbl -> DeleteRoleDefinition(This,bstrRoleDefinitionName) ) + +#define IAzScope2_get_RoleAssignments(This,ppRoleAssignments) \ + ( (This)->lpVtbl -> get_RoleAssignments(This,ppRoleAssignments) ) + +#define IAzScope2_CreateRoleAssignment(This,bstrRoleAssignmentName,ppRoleAssignment) \ + ( (This)->lpVtbl -> CreateRoleAssignment(This,bstrRoleAssignmentName,ppRoleAssignment) ) + +#define IAzScope2_OpenRoleAssignment(This,bstrRoleAssignmentName,ppRoleAssignment) \ + ( (This)->lpVtbl -> OpenRoleAssignment(This,bstrRoleAssignmentName,ppRoleAssignment) ) + +#define IAzScope2_DeleteRoleAssignment(This,bstrRoleAssignmentName) \ + ( (This)->lpVtbl -> DeleteRoleAssignment(This,bstrRoleAssignmentName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzScope2_INTERFACE_DEFINED__ */ + + +#ifndef __IAzApplication3_INTERFACE_DEFINED__ +#define __IAzApplication3_INTERFACE_DEFINED__ + +/* interface IAzApplication3 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzApplication3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("181c845e-7196-4a7d-ac2e-020c0bb7a303") + IAzApplication3 : public IAzApplication2 + { + public: + virtual HRESULT STDMETHODCALLTYPE ScopeExists( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbExist) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenScope2( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__deref_out_opt IAzScope2 **ppScope2) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateScope2( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__deref_out_opt IAzScope2 **ppScope2) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteScope2( + /* [in] */ __RPC__in BSTR bstrScopeName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RoleDefinitions( + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinitions **ppRoleDefinitions) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRoleDefinition( + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinition **ppRoleDefinitions) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenRoleDefinition( + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinition **ppRoleDefinitions) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRoleDefinition( + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RoleAssignments( + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRoleAssignment( + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignment **ppRoleAssignment) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenRoleAssignment( + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignment **ppRoleAssignment) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRoleAssignment( + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BizRulesEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbEnabled) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BizRulesEnabled( + /* [in] */ VARIANT_BOOL bEnabled) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzApplication3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzApplication3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzApplication3 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzApplication3 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzApplication3 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzApplication3 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzApplication, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzApplication, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzApplication, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzApplication, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzApplication, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzApplication, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzApplication, get_AuthzInterfaceClsid) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AuthzInterfaceClsid )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_AuthzInterfaceClsid) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AuthzInterfaceClsid )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_Version) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_Version) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Version )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_GenerateAudits) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_GenerateAudits )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__out BOOL *pbProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_GenerateAudits) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_GenerateAudits )( + __RPC__in IAzApplication3 * This, + /* [in] */ BOOL bProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_ApplyStoreSacl) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplyStoreSacl )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__out BOOL *pbProp); + + DECLSPEC_XFGVIRT(IAzApplication, put_ApplyStoreSacl) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplyStoreSacl )( + __RPC__in IAzApplication3 * This, + /* [in] */ BOOL bProp); + + DECLSPEC_XFGVIRT(IAzApplication, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzApplication, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzApplication3 * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplication, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzApplication3 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyAdministrators) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministrators )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyReaders) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReaders )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministrator )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyAdministrator) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministrator )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyReader) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReader )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyReader) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReader )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Scopes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Scopes )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzScopes **ppScopeCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenScope) + HRESULT ( STDMETHODCALLTYPE *OpenScope )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzScope **ppScope); + + DECLSPEC_XFGVIRT(IAzApplication, CreateScope) + HRESULT ( STDMETHODCALLTYPE *CreateScope )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzScope **ppScope); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteScope) + HRESULT ( STDMETHODCALLTYPE *DeleteScope )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Operations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Operations )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzOperations **ppOperationCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenOperation) + HRESULT ( STDMETHODCALLTYPE *OpenOperation )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzOperation **ppOperation); + + DECLSPEC_XFGVIRT(IAzApplication, CreateOperation) + HRESULT ( STDMETHODCALLTYPE *CreateOperation )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzOperation **ppOperation); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteOperation) + HRESULT ( STDMETHODCALLTYPE *DeleteOperation )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrOperationName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Tasks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tasks )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzTasks **ppTaskCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenTask) + HRESULT ( STDMETHODCALLTYPE *OpenTask )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask); + + DECLSPEC_XFGVIRT(IAzApplication, CreateTask) + HRESULT ( STDMETHODCALLTYPE *CreateTask )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzTask **ppTask); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteTask) + HRESULT ( STDMETHODCALLTYPE *DeleteTask )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrTaskName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_ApplicationGroups) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationGroups )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroups **ppGroupCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *OpenApplicationGroup )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzApplication, CreateApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *CreateApplicationGroup )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzApplicationGroup **ppGroup); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteApplicationGroup) + HRESULT ( STDMETHODCALLTYPE *DeleteApplicationGroup )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrGroupName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_Roles) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Roles )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoles **ppRoleCollection); + + DECLSPEC_XFGVIRT(IAzApplication, OpenRole) + HRESULT ( STDMETHODCALLTYPE *OpenRole )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole); + + DECLSPEC_XFGVIRT(IAzApplication, CreateRole) + HRESULT ( STDMETHODCALLTYPE *CreateRole )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzRole **ppRole); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteRole) + HRESULT ( STDMETHODCALLTYPE *DeleteRole )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrRoleName, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, InitializeClientContextFromToken) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromToken )( + __RPC__in IAzApplication3 * This, + /* [in] */ ULONGLONG ullTokenHandle, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzApplication3 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzApplication3 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzApplication3 * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, InitializeClientContextFromName) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromName )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR ClientName, + /* [defaultvalue][in] */ __RPC__in BSTR DomainName, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication, get_DelegatedPolicyUsers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsers )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzApplication, AddDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUser )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteDelegatedPolicyUser) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUser )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, InitializeClientContextFromStringSid) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromStringSid )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR SidString, + /* [in] */ LONG lOptions, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyAdministratorsName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyAdministratorsName )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarAdmins); + + DECLSPEC_XFGVIRT(IAzApplication, get_PolicyReadersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyReadersName )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarReaders); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyAdministratorName )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyAdministratorName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyAdministratorName )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrAdmin, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, AddPolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *AddPolicyReaderName )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeletePolicyReaderName) + HRESULT ( STDMETHODCALLTYPE *DeletePolicyReaderName )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrReader, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, get_DelegatedPolicyUsersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelegatedPolicyUsersName )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarDelegatedPolicyUsers); + + DECLSPEC_XFGVIRT(IAzApplication, AddDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *AddDelegatedPolicyUserName )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication, DeleteDelegatedPolicyUserName) + HRESULT ( STDMETHODCALLTYPE *DeleteDelegatedPolicyUserName )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrDelegatedPolicyUser, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplication2, InitializeClientContextFromToken2) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContextFromToken2 )( + __RPC__in IAzApplication3 * This, + /* [in] */ ULONG ulTokenHandleLowPart, + /* [in] */ ULONG ulTokenHandleHighPart, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext2 **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication2, InitializeClientContext2) + HRESULT ( STDMETHODCALLTYPE *InitializeClientContext2 )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR IdentifyingString, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__deref_out_opt IAzClientContext2 **ppClientContext); + + DECLSPEC_XFGVIRT(IAzApplication3, ScopeExists) + HRESULT ( STDMETHODCALLTYPE *ScopeExists )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbExist); + + DECLSPEC_XFGVIRT(IAzApplication3, OpenScope2) + HRESULT ( STDMETHODCALLTYPE *OpenScope2 )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__deref_out_opt IAzScope2 **ppScope2); + + DECLSPEC_XFGVIRT(IAzApplication3, CreateScope2) + HRESULT ( STDMETHODCALLTYPE *CreateScope2 )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [retval][out] */ __RPC__deref_out_opt IAzScope2 **ppScope2); + + DECLSPEC_XFGVIRT(IAzApplication3, DeleteScope2) + HRESULT ( STDMETHODCALLTYPE *DeleteScope2 )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrScopeName); + + DECLSPEC_XFGVIRT(IAzApplication3, get_RoleDefinitions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoleDefinitions )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinitions **ppRoleDefinitions); + + DECLSPEC_XFGVIRT(IAzApplication3, CreateRoleDefinition) + HRESULT ( STDMETHODCALLTYPE *CreateRoleDefinition )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinition **ppRoleDefinitions); + + DECLSPEC_XFGVIRT(IAzApplication3, OpenRoleDefinition) + HRESULT ( STDMETHODCALLTYPE *OpenRoleDefinition )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinition **ppRoleDefinitions); + + DECLSPEC_XFGVIRT(IAzApplication3, DeleteRoleDefinition) + HRESULT ( STDMETHODCALLTYPE *DeleteRoleDefinition )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrRoleDefinitionName); + + DECLSPEC_XFGVIRT(IAzApplication3, get_RoleAssignments) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoleAssignments )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments); + + DECLSPEC_XFGVIRT(IAzApplication3, CreateRoleAssignment) + HRESULT ( STDMETHODCALLTYPE *CreateRoleAssignment )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignment **ppRoleAssignment); + + DECLSPEC_XFGVIRT(IAzApplication3, OpenRoleAssignment) + HRESULT ( STDMETHODCALLTYPE *OpenRoleAssignment )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignment **ppRoleAssignment); + + DECLSPEC_XFGVIRT(IAzApplication3, DeleteRoleAssignment) + HRESULT ( STDMETHODCALLTYPE *DeleteRoleAssignment )( + __RPC__in IAzApplication3 * This, + /* [in] */ __RPC__in BSTR bstrRoleAssignmentName); + + DECLSPEC_XFGVIRT(IAzApplication3, get_BizRulesEnabled) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRulesEnabled )( + __RPC__in IAzApplication3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbEnabled); + + DECLSPEC_XFGVIRT(IAzApplication3, put_BizRulesEnabled) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRulesEnabled )( + __RPC__in IAzApplication3 * This, + /* [in] */ VARIANT_BOOL bEnabled); + + END_INTERFACE + } IAzApplication3Vtbl; + + interface IAzApplication3 + { + CONST_VTBL struct IAzApplication3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzApplication3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzApplication3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzApplication3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzApplication3_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzApplication3_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzApplication3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzApplication3_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzApplication3_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzApplication3_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzApplication3_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzApplication3_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzApplication3_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzApplication3_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzApplication3_get_AuthzInterfaceClsid(This,pbstrProp) \ + ( (This)->lpVtbl -> get_AuthzInterfaceClsid(This,pbstrProp) ) + +#define IAzApplication3_put_AuthzInterfaceClsid(This,bstrProp) \ + ( (This)->lpVtbl -> put_AuthzInterfaceClsid(This,bstrProp) ) + +#define IAzApplication3_get_Version(This,pbstrProp) \ + ( (This)->lpVtbl -> get_Version(This,pbstrProp) ) + +#define IAzApplication3_put_Version(This,bstrProp) \ + ( (This)->lpVtbl -> put_Version(This,bstrProp) ) + +#define IAzApplication3_get_GenerateAudits(This,pbProp) \ + ( (This)->lpVtbl -> get_GenerateAudits(This,pbProp) ) + +#define IAzApplication3_put_GenerateAudits(This,bProp) \ + ( (This)->lpVtbl -> put_GenerateAudits(This,bProp) ) + +#define IAzApplication3_get_ApplyStoreSacl(This,pbProp) \ + ( (This)->lpVtbl -> get_ApplyStoreSacl(This,pbProp) ) + +#define IAzApplication3_put_ApplyStoreSacl(This,bProp) \ + ( (This)->lpVtbl -> put_ApplyStoreSacl(This,bProp) ) + +#define IAzApplication3_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzApplication3_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzApplication3_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzApplication3_get_PolicyAdministrators(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministrators(This,pvarAdmins) ) + +#define IAzApplication3_get_PolicyReaders(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReaders(This,pvarReaders) ) + +#define IAzApplication3_AddPolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzApplication3_DeletePolicyAdministrator(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministrator(This,bstrAdmin,varReserved) ) + +#define IAzApplication3_AddPolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReader(This,bstrReader,varReserved) ) + +#define IAzApplication3_DeletePolicyReader(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReader(This,bstrReader,varReserved) ) + +#define IAzApplication3_get_Scopes(This,ppScopeCollection) \ + ( (This)->lpVtbl -> get_Scopes(This,ppScopeCollection) ) + +#define IAzApplication3_OpenScope(This,bstrScopeName,varReserved,ppScope) \ + ( (This)->lpVtbl -> OpenScope(This,bstrScopeName,varReserved,ppScope) ) + +#define IAzApplication3_CreateScope(This,bstrScopeName,varReserved,ppScope) \ + ( (This)->lpVtbl -> CreateScope(This,bstrScopeName,varReserved,ppScope) ) + +#define IAzApplication3_DeleteScope(This,bstrScopeName,varReserved) \ + ( (This)->lpVtbl -> DeleteScope(This,bstrScopeName,varReserved) ) + +#define IAzApplication3_get_Operations(This,ppOperationCollection) \ + ( (This)->lpVtbl -> get_Operations(This,ppOperationCollection) ) + +#define IAzApplication3_OpenOperation(This,bstrOperationName,varReserved,ppOperation) \ + ( (This)->lpVtbl -> OpenOperation(This,bstrOperationName,varReserved,ppOperation) ) + +#define IAzApplication3_CreateOperation(This,bstrOperationName,varReserved,ppOperation) \ + ( (This)->lpVtbl -> CreateOperation(This,bstrOperationName,varReserved,ppOperation) ) + +#define IAzApplication3_DeleteOperation(This,bstrOperationName,varReserved) \ + ( (This)->lpVtbl -> DeleteOperation(This,bstrOperationName,varReserved) ) + +#define IAzApplication3_get_Tasks(This,ppTaskCollection) \ + ( (This)->lpVtbl -> get_Tasks(This,ppTaskCollection) ) + +#define IAzApplication3_OpenTask(This,bstrTaskName,varReserved,ppTask) \ + ( (This)->lpVtbl -> OpenTask(This,bstrTaskName,varReserved,ppTask) ) + +#define IAzApplication3_CreateTask(This,bstrTaskName,varReserved,ppTask) \ + ( (This)->lpVtbl -> CreateTask(This,bstrTaskName,varReserved,ppTask) ) + +#define IAzApplication3_DeleteTask(This,bstrTaskName,varReserved) \ + ( (This)->lpVtbl -> DeleteTask(This,bstrTaskName,varReserved) ) + +#define IAzApplication3_get_ApplicationGroups(This,ppGroupCollection) \ + ( (This)->lpVtbl -> get_ApplicationGroups(This,ppGroupCollection) ) + +#define IAzApplication3_OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> OpenApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzApplication3_CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) \ + ( (This)->lpVtbl -> CreateApplicationGroup(This,bstrGroupName,varReserved,ppGroup) ) + +#define IAzApplication3_DeleteApplicationGroup(This,bstrGroupName,varReserved) \ + ( (This)->lpVtbl -> DeleteApplicationGroup(This,bstrGroupName,varReserved) ) + +#define IAzApplication3_get_Roles(This,ppRoleCollection) \ + ( (This)->lpVtbl -> get_Roles(This,ppRoleCollection) ) + +#define IAzApplication3_OpenRole(This,bstrRoleName,varReserved,ppRole) \ + ( (This)->lpVtbl -> OpenRole(This,bstrRoleName,varReserved,ppRole) ) + +#define IAzApplication3_CreateRole(This,bstrRoleName,varReserved,ppRole) \ + ( (This)->lpVtbl -> CreateRole(This,bstrRoleName,varReserved,ppRole) ) + +#define IAzApplication3_DeleteRole(This,bstrRoleName,varReserved) \ + ( (This)->lpVtbl -> DeleteRole(This,bstrRoleName,varReserved) ) + +#define IAzApplication3_InitializeClientContextFromToken(This,ullTokenHandle,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromToken(This,ullTokenHandle,varReserved,ppClientContext) ) + +#define IAzApplication3_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzApplication3_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzApplication3_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzApplication3_InitializeClientContextFromName(This,ClientName,DomainName,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromName(This,ClientName,DomainName,varReserved,ppClientContext) ) + +#define IAzApplication3_get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsers(This,pvarDelegatedPolicyUsers) ) + +#define IAzApplication3_AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzApplication3_DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUser(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzApplication3_InitializeClientContextFromStringSid(This,SidString,lOptions,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromStringSid(This,SidString,lOptions,varReserved,ppClientContext) ) + +#define IAzApplication3_get_PolicyAdministratorsName(This,pvarAdmins) \ + ( (This)->lpVtbl -> get_PolicyAdministratorsName(This,pvarAdmins) ) + +#define IAzApplication3_get_PolicyReadersName(This,pvarReaders) \ + ( (This)->lpVtbl -> get_PolicyReadersName(This,pvarReaders) ) + +#define IAzApplication3_AddPolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> AddPolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzApplication3_DeletePolicyAdministratorName(This,bstrAdmin,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyAdministratorName(This,bstrAdmin,varReserved) ) + +#define IAzApplication3_AddPolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> AddPolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzApplication3_DeletePolicyReaderName(This,bstrReader,varReserved) \ + ( (This)->lpVtbl -> DeletePolicyReaderName(This,bstrReader,varReserved) ) + +#define IAzApplication3_get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) \ + ( (This)->lpVtbl -> get_DelegatedPolicyUsersName(This,pvarDelegatedPolicyUsers) ) + +#define IAzApplication3_AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> AddDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + +#define IAzApplication3_DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) \ + ( (This)->lpVtbl -> DeleteDelegatedPolicyUserName(This,bstrDelegatedPolicyUser,varReserved) ) + + +#define IAzApplication3_InitializeClientContextFromToken2(This,ulTokenHandleLowPart,ulTokenHandleHighPart,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContextFromToken2(This,ulTokenHandleLowPart,ulTokenHandleHighPart,varReserved,ppClientContext) ) + +#define IAzApplication3_InitializeClientContext2(This,IdentifyingString,varReserved,ppClientContext) \ + ( (This)->lpVtbl -> InitializeClientContext2(This,IdentifyingString,varReserved,ppClientContext) ) + + +#define IAzApplication3_ScopeExists(This,bstrScopeName,pbExist) \ + ( (This)->lpVtbl -> ScopeExists(This,bstrScopeName,pbExist) ) + +#define IAzApplication3_OpenScope2(This,bstrScopeName,ppScope2) \ + ( (This)->lpVtbl -> OpenScope2(This,bstrScopeName,ppScope2) ) + +#define IAzApplication3_CreateScope2(This,bstrScopeName,ppScope2) \ + ( (This)->lpVtbl -> CreateScope2(This,bstrScopeName,ppScope2) ) + +#define IAzApplication3_DeleteScope2(This,bstrScopeName) \ + ( (This)->lpVtbl -> DeleteScope2(This,bstrScopeName) ) + +#define IAzApplication3_get_RoleDefinitions(This,ppRoleDefinitions) \ + ( (This)->lpVtbl -> get_RoleDefinitions(This,ppRoleDefinitions) ) + +#define IAzApplication3_CreateRoleDefinition(This,bstrRoleDefinitionName,ppRoleDefinitions) \ + ( (This)->lpVtbl -> CreateRoleDefinition(This,bstrRoleDefinitionName,ppRoleDefinitions) ) + +#define IAzApplication3_OpenRoleDefinition(This,bstrRoleDefinitionName,ppRoleDefinitions) \ + ( (This)->lpVtbl -> OpenRoleDefinition(This,bstrRoleDefinitionName,ppRoleDefinitions) ) + +#define IAzApplication3_DeleteRoleDefinition(This,bstrRoleDefinitionName) \ + ( (This)->lpVtbl -> DeleteRoleDefinition(This,bstrRoleDefinitionName) ) + +#define IAzApplication3_get_RoleAssignments(This,ppRoleAssignments) \ + ( (This)->lpVtbl -> get_RoleAssignments(This,ppRoleAssignments) ) + +#define IAzApplication3_CreateRoleAssignment(This,bstrRoleAssignmentName,ppRoleAssignment) \ + ( (This)->lpVtbl -> CreateRoleAssignment(This,bstrRoleAssignmentName,ppRoleAssignment) ) + +#define IAzApplication3_OpenRoleAssignment(This,bstrRoleAssignmentName,ppRoleAssignment) \ + ( (This)->lpVtbl -> OpenRoleAssignment(This,bstrRoleAssignmentName,ppRoleAssignment) ) + +#define IAzApplication3_DeleteRoleAssignment(This,bstrRoleAssignmentName) \ + ( (This)->lpVtbl -> DeleteRoleAssignment(This,bstrRoleAssignmentName) ) + +#define IAzApplication3_get_BizRulesEnabled(This,pbEnabled) \ + ( (This)->lpVtbl -> get_BizRulesEnabled(This,pbEnabled) ) + +#define IAzApplication3_put_BizRulesEnabled(This,bEnabled) \ + ( (This)->lpVtbl -> put_BizRulesEnabled(This,bEnabled) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzApplication3_INTERFACE_DEFINED__ */ + + +#ifndef __IAzOperation2_INTERFACE_DEFINED__ +#define __IAzOperation2_INTERFACE_DEFINED__ + +/* interface IAzOperation2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzOperation2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1f5ea01f-44a2-4184-9c48-a75b4dcc8ccc") + IAzOperation2 : public IAzOperation + { + public: + virtual HRESULT STDMETHODCALLTYPE RoleAssignments( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ VARIANT_BOOL bRecursive, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzOperation2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzOperation2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzOperation2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzOperation2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzOperation2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzOperation2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzOperation2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzOperation2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzOperation, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzOperation2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzOperation, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzOperation2 * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzOperation, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzOperation2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzOperation, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzOperation2 * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzOperation, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzOperation2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzOperation, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzOperation2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzOperation, get_OperationID) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OperationID )( + __RPC__in IAzOperation2 * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzOperation, put_OperationID) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_OperationID )( + __RPC__in IAzOperation2 * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzOperation, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzOperation2 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzOperation, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzOperation2 * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzOperation, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzOperation2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzOperation, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzOperation2 * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzOperation2, RoleAssignments) + HRESULT ( STDMETHODCALLTYPE *RoleAssignments )( + __RPC__in IAzOperation2 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ VARIANT_BOOL bRecursive, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments); + + END_INTERFACE + } IAzOperation2Vtbl; + + interface IAzOperation2 + { + CONST_VTBL struct IAzOperation2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzOperation2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzOperation2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzOperation2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzOperation2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzOperation2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzOperation2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzOperation2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzOperation2_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzOperation2_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzOperation2_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzOperation2_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzOperation2_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzOperation2_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzOperation2_get_OperationID(This,plProp) \ + ( (This)->lpVtbl -> get_OperationID(This,plProp) ) + +#define IAzOperation2_put_OperationID(This,lProp) \ + ( (This)->lpVtbl -> put_OperationID(This,lProp) ) + +#define IAzOperation2_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzOperation2_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzOperation2_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzOperation2_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + + +#define IAzOperation2_RoleAssignments(This,bstrScopeName,bRecursive,ppRoleAssignments) \ + ( (This)->lpVtbl -> RoleAssignments(This,bstrScopeName,bRecursive,ppRoleAssignments) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzOperation2_INTERFACE_DEFINED__ */ + + +#ifndef __IAzRoleDefinitions_INTERFACE_DEFINED__ +#define __IAzRoleDefinitions_INTERFACE_DEFINED__ + +/* interface IAzRoleDefinitions */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzRoleDefinitions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("881f25a5-d755-4550-957a-d503a3b34001") + IAzRoleDefinitions : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *plCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzRoleDefinitionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzRoleDefinitions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzRoleDefinitions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzRoleDefinitions * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzRoleDefinitions * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzRoleDefinitions * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzRoleDefinitions * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzRoleDefinitions * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzRoleDefinitions, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAzRoleDefinitions * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr); + + DECLSPEC_XFGVIRT(IAzRoleDefinitions, get_Count) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAzRoleDefinitions * This, + /* [retval][out] */ __RPC__out LONG *plCount); + + DECLSPEC_XFGVIRT(IAzRoleDefinitions, get__NewEnum) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IAzRoleDefinitions * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr); + + END_INTERFACE + } IAzRoleDefinitionsVtbl; + + interface IAzRoleDefinitions + { + CONST_VTBL struct IAzRoleDefinitionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzRoleDefinitions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzRoleDefinitions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzRoleDefinitions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzRoleDefinitions_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzRoleDefinitions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzRoleDefinitions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzRoleDefinitions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzRoleDefinitions_get_Item(This,Index,pvarObtPtr) \ + ( (This)->lpVtbl -> get_Item(This,Index,pvarObtPtr) ) + +#define IAzRoleDefinitions_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IAzRoleDefinitions_get__NewEnum(This,ppEnumPtr) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumPtr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzRoleDefinitions_INTERFACE_DEFINED__ */ + + +#ifndef __IAzRoleDefinition_INTERFACE_DEFINED__ +#define __IAzRoleDefinition_INTERFACE_DEFINED__ + +/* interface IAzRoleDefinition */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzRoleDefinition; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d97fcea1-2599-44f1-9fc3-58e9fbe09466") + IAzRoleDefinition : public IAzTask + { + public: + virtual HRESULT STDMETHODCALLTYPE RoleAssignments( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ VARIANT_BOOL bRecursive, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRoleDefinition( + /* [in] */ __RPC__in BSTR bstrRoleDefinition) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRoleDefinition( + /* [in] */ __RPC__in BSTR bstrRoleDefinition) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RoleDefinitions( + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinitions **ppRoleDefinitions) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzRoleDefinitionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzRoleDefinition * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzRoleDefinition * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzRoleDefinition * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzRoleDefinition * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzTask, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzTask, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzTask, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzTask, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzTask, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzTask, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzTask, get_BizRule) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRule )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzTask, put_BizRule) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRule )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzTask, get_BizRuleLanguage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRuleLanguage )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzTask, put_BizRuleLanguage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRuleLanguage )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzTask, get_BizRuleImportedPath) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRuleImportedPath )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzTask, put_BizRuleImportedPath) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRuleImportedPath )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzTask, get_IsRoleDefinition) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsRoleDefinition )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzTask, put_IsRoleDefinition) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsRoleDefinition )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ BOOL fProp); + + DECLSPEC_XFGVIRT(IAzTask, get_Operations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Operations )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzTask, get_Tasks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tasks )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzTask, AddOperation) + HRESULT ( STDMETHODCALLTYPE *AddOperation )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrOp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, DeleteOperation) + HRESULT ( STDMETHODCALLTYPE *DeleteOperation )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrOp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, AddTask) + HRESULT ( STDMETHODCALLTYPE *AddTask )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrTask, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, DeleteTask) + HRESULT ( STDMETHODCALLTYPE *DeleteTask )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrTask, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzTask, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzTask, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzRoleDefinition * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRoleDefinition, RoleAssignments) + HRESULT ( STDMETHODCALLTYPE *RoleAssignments )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ VARIANT_BOOL bRecursive, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments); + + DECLSPEC_XFGVIRT(IAzRoleDefinition, AddRoleDefinition) + HRESULT ( STDMETHODCALLTYPE *AddRoleDefinition )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrRoleDefinition); + + DECLSPEC_XFGVIRT(IAzRoleDefinition, DeleteRoleDefinition) + HRESULT ( STDMETHODCALLTYPE *DeleteRoleDefinition )( + __RPC__in IAzRoleDefinition * This, + /* [in] */ __RPC__in BSTR bstrRoleDefinition); + + DECLSPEC_XFGVIRT(IAzRoleDefinition, get_RoleDefinitions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoleDefinitions )( + __RPC__in IAzRoleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinitions **ppRoleDefinitions); + + END_INTERFACE + } IAzRoleDefinitionVtbl; + + interface IAzRoleDefinition + { + CONST_VTBL struct IAzRoleDefinitionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzRoleDefinition_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzRoleDefinition_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzRoleDefinition_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzRoleDefinition_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzRoleDefinition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzRoleDefinition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzRoleDefinition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzRoleDefinition_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzRoleDefinition_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzRoleDefinition_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzRoleDefinition_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzRoleDefinition_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzRoleDefinition_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzRoleDefinition_get_BizRule(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRule(This,pbstrProp) ) + +#define IAzRoleDefinition_put_BizRule(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRule(This,bstrProp) ) + +#define IAzRoleDefinition_get_BizRuleLanguage(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRuleLanguage(This,pbstrProp) ) + +#define IAzRoleDefinition_put_BizRuleLanguage(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRuleLanguage(This,bstrProp) ) + +#define IAzRoleDefinition_get_BizRuleImportedPath(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRuleImportedPath(This,pbstrProp) ) + +#define IAzRoleDefinition_put_BizRuleImportedPath(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRuleImportedPath(This,bstrProp) ) + +#define IAzRoleDefinition_get_IsRoleDefinition(This,pfProp) \ + ( (This)->lpVtbl -> get_IsRoleDefinition(This,pfProp) ) + +#define IAzRoleDefinition_put_IsRoleDefinition(This,fProp) \ + ( (This)->lpVtbl -> put_IsRoleDefinition(This,fProp) ) + +#define IAzRoleDefinition_get_Operations(This,pvarProp) \ + ( (This)->lpVtbl -> get_Operations(This,pvarProp) ) + +#define IAzRoleDefinition_get_Tasks(This,pvarProp) \ + ( (This)->lpVtbl -> get_Tasks(This,pvarProp) ) + +#define IAzRoleDefinition_AddOperation(This,bstrOp,varReserved) \ + ( (This)->lpVtbl -> AddOperation(This,bstrOp,varReserved) ) + +#define IAzRoleDefinition_DeleteOperation(This,bstrOp,varReserved) \ + ( (This)->lpVtbl -> DeleteOperation(This,bstrOp,varReserved) ) + +#define IAzRoleDefinition_AddTask(This,bstrTask,varReserved) \ + ( (This)->lpVtbl -> AddTask(This,bstrTask,varReserved) ) + +#define IAzRoleDefinition_DeleteTask(This,bstrTask,varReserved) \ + ( (This)->lpVtbl -> DeleteTask(This,bstrTask,varReserved) ) + +#define IAzRoleDefinition_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzRoleDefinition_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzRoleDefinition_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzRoleDefinition_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzRoleDefinition_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzRoleDefinition_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + + +#define IAzRoleDefinition_RoleAssignments(This,bstrScopeName,bRecursive,ppRoleAssignments) \ + ( (This)->lpVtbl -> RoleAssignments(This,bstrScopeName,bRecursive,ppRoleAssignments) ) + +#define IAzRoleDefinition_AddRoleDefinition(This,bstrRoleDefinition) \ + ( (This)->lpVtbl -> AddRoleDefinition(This,bstrRoleDefinition) ) + +#define IAzRoleDefinition_DeleteRoleDefinition(This,bstrRoleDefinition) \ + ( (This)->lpVtbl -> DeleteRoleDefinition(This,bstrRoleDefinition) ) + +#define IAzRoleDefinition_get_RoleDefinitions(This,ppRoleDefinitions) \ + ( (This)->lpVtbl -> get_RoleDefinitions(This,ppRoleDefinitions) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzRoleDefinition_INTERFACE_DEFINED__ */ + + +#ifndef __IAzRoleAssignment_INTERFACE_DEFINED__ +#define __IAzRoleAssignment_INTERFACE_DEFINED__ + +/* interface IAzRoleAssignment */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzRoleAssignment; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("55647d31-0d5a-4fa3-b4ac-2b5f9ad5ab76") + IAzRoleAssignment : public IAzRole + { + public: + virtual HRESULT STDMETHODCALLTYPE AddRoleDefinition( + /* [in] */ __RPC__in BSTR bstrRoleDefinition) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRoleDefinition( + /* [in] */ __RPC__in BSTR bstrRoleDefinition) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RoleDefinitions( + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinitions **ppRoleDefinitions) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Scope( + /* [retval][out] */ __RPC__deref_out_opt IAzScope **ppScope) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzRoleAssignmentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzRoleAssignment * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzRoleAssignment * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzRoleAssignment * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzRoleAssignment * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzRole, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzRole, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzRole, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzRole, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzRole, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzRole, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzRole, AddAppMember) + HRESULT ( STDMETHODCALLTYPE *AddAppMember )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeleteAppMember) + HRESULT ( STDMETHODCALLTYPE *DeleteAppMember )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, AddTask) + HRESULT ( STDMETHODCALLTYPE *AddTask )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeleteTask) + HRESULT ( STDMETHODCALLTYPE *DeleteTask )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, AddOperation) + HRESULT ( STDMETHODCALLTYPE *AddOperation )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeleteOperation) + HRESULT ( STDMETHODCALLTYPE *DeleteOperation )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, AddMember) + HRESULT ( STDMETHODCALLTYPE *AddMember )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeleteMember) + HRESULT ( STDMETHODCALLTYPE *DeleteMember )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzRole, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRole, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, get_AppMembers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AppMembers )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRole, get_Members) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Members )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRole, get_Operations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Operations )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRole, get_Tasks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tasks )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRole, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzRoleAssignment * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, AddMemberName) + HRESULT ( STDMETHODCALLTYPE *AddMemberName )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, DeleteMemberName) + HRESULT ( STDMETHODCALLTYPE *DeleteMemberName )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzRole, get_MembersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MembersName )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzRoleAssignment, AddRoleDefinition) + HRESULT ( STDMETHODCALLTYPE *AddRoleDefinition )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrRoleDefinition); + + DECLSPEC_XFGVIRT(IAzRoleAssignment, DeleteRoleDefinition) + HRESULT ( STDMETHODCALLTYPE *DeleteRoleDefinition )( + __RPC__in IAzRoleAssignment * This, + /* [in] */ __RPC__in BSTR bstrRoleDefinition); + + DECLSPEC_XFGVIRT(IAzRoleAssignment, get_RoleDefinitions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RoleDefinitions )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleDefinitions **ppRoleDefinitions); + + DECLSPEC_XFGVIRT(IAzRoleAssignment, get_Scope) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Scope )( + __RPC__in IAzRoleAssignment * This, + /* [retval][out] */ __RPC__deref_out_opt IAzScope **ppScope); + + END_INTERFACE + } IAzRoleAssignmentVtbl; + + interface IAzRoleAssignment + { + CONST_VTBL struct IAzRoleAssignmentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzRoleAssignment_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzRoleAssignment_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzRoleAssignment_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzRoleAssignment_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzRoleAssignment_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzRoleAssignment_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzRoleAssignment_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzRoleAssignment_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzRoleAssignment_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzRoleAssignment_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzRoleAssignment_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzRoleAssignment_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzRoleAssignment_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzRoleAssignment_AddAppMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddAppMember(This,bstrProp,varReserved) ) + +#define IAzRoleAssignment_DeleteAppMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteAppMember(This,bstrProp,varReserved) ) + +#define IAzRoleAssignment_AddTask(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddTask(This,bstrProp,varReserved) ) + +#define IAzRoleAssignment_DeleteTask(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteTask(This,bstrProp,varReserved) ) + +#define IAzRoleAssignment_AddOperation(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddOperation(This,bstrProp,varReserved) ) + +#define IAzRoleAssignment_DeleteOperation(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteOperation(This,bstrProp,varReserved) ) + +#define IAzRoleAssignment_AddMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddMember(This,bstrProp,varReserved) ) + +#define IAzRoleAssignment_DeleteMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteMember(This,bstrProp,varReserved) ) + +#define IAzRoleAssignment_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzRoleAssignment_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzRoleAssignment_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzRoleAssignment_get_AppMembers(This,pvarProp) \ + ( (This)->lpVtbl -> get_AppMembers(This,pvarProp) ) + +#define IAzRoleAssignment_get_Members(This,pvarProp) \ + ( (This)->lpVtbl -> get_Members(This,pvarProp) ) + +#define IAzRoleAssignment_get_Operations(This,pvarProp) \ + ( (This)->lpVtbl -> get_Operations(This,pvarProp) ) + +#define IAzRoleAssignment_get_Tasks(This,pvarProp) \ + ( (This)->lpVtbl -> get_Tasks(This,pvarProp) ) + +#define IAzRoleAssignment_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzRoleAssignment_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzRoleAssignment_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzRoleAssignment_AddMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddMemberName(This,bstrProp,varReserved) ) + +#define IAzRoleAssignment_DeleteMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteMemberName(This,bstrProp,varReserved) ) + +#define IAzRoleAssignment_get_MembersName(This,pvarProp) \ + ( (This)->lpVtbl -> get_MembersName(This,pvarProp) ) + + +#define IAzRoleAssignment_AddRoleDefinition(This,bstrRoleDefinition) \ + ( (This)->lpVtbl -> AddRoleDefinition(This,bstrRoleDefinition) ) + +#define IAzRoleAssignment_DeleteRoleDefinition(This,bstrRoleDefinition) \ + ( (This)->lpVtbl -> DeleteRoleDefinition(This,bstrRoleDefinition) ) + +#define IAzRoleAssignment_get_RoleDefinitions(This,ppRoleDefinitions) \ + ( (This)->lpVtbl -> get_RoleDefinitions(This,ppRoleDefinitions) ) + +#define IAzRoleAssignment_get_Scope(This,ppScope) \ + ( (This)->lpVtbl -> get_Scope(This,ppScope) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzRoleAssignment_INTERFACE_DEFINED__ */ + + +#ifndef __IAzRoleAssignments_INTERFACE_DEFINED__ +#define __IAzRoleAssignments_INTERFACE_DEFINED__ + +/* interface IAzRoleAssignments */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzRoleAssignments; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9c80b900-fceb-4d73-a0f4-c83b0bbf2481") + IAzRoleAssignments : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *plCount) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzRoleAssignmentsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzRoleAssignments * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzRoleAssignments * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzRoleAssignments * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzRoleAssignments * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzRoleAssignments * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzRoleAssignments * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzRoleAssignments * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzRoleAssignments, get_Item) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IAzRoleAssignments * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pvarObtPtr); + + DECLSPEC_XFGVIRT(IAzRoleAssignments, get_Count) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAzRoleAssignments * This, + /* [retval][out] */ __RPC__out LONG *plCount); + + DECLSPEC_XFGVIRT(IAzRoleAssignments, get__NewEnum) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IAzRoleAssignments * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *ppEnumPtr); + + END_INTERFACE + } IAzRoleAssignmentsVtbl; + + interface IAzRoleAssignments + { + CONST_VTBL struct IAzRoleAssignmentsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzRoleAssignments_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzRoleAssignments_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzRoleAssignments_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzRoleAssignments_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzRoleAssignments_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzRoleAssignments_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzRoleAssignments_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzRoleAssignments_get_Item(This,Index,pvarObtPtr) \ + ( (This)->lpVtbl -> get_Item(This,Index,pvarObtPtr) ) + +#define IAzRoleAssignments_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IAzRoleAssignments_get__NewEnum(This,ppEnumPtr) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnumPtr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzRoleAssignments_INTERFACE_DEFINED__ */ + + +#ifndef __IAzPrincipalLocator_INTERFACE_DEFINED__ +#define __IAzPrincipalLocator_INTERFACE_DEFINED__ + +/* interface IAzPrincipalLocator */ +/* [unique][dual][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IAzPrincipalLocator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e5c3507d-ad6a-4992-9c7f-74ab480b44cc") + IAzPrincipalLocator : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NameResolver( + /* [retval][out] */ __RPC__deref_out_opt IAzNameResolver **ppNameResolver) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ObjectPicker( + /* [retval][out] */ __RPC__deref_out_opt IAzObjectPicker **ppObjectPicker) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzPrincipalLocatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzPrincipalLocator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzPrincipalLocator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzPrincipalLocator * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzPrincipalLocator * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzPrincipalLocator * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzPrincipalLocator * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzPrincipalLocator * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzPrincipalLocator, get_NameResolver) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NameResolver )( + __RPC__in IAzPrincipalLocator * This, + /* [retval][out] */ __RPC__deref_out_opt IAzNameResolver **ppNameResolver); + + DECLSPEC_XFGVIRT(IAzPrincipalLocator, get_ObjectPicker) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectPicker )( + __RPC__in IAzPrincipalLocator * This, + /* [retval][out] */ __RPC__deref_out_opt IAzObjectPicker **ppObjectPicker); + + END_INTERFACE + } IAzPrincipalLocatorVtbl; + + interface IAzPrincipalLocator + { + CONST_VTBL struct IAzPrincipalLocatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzPrincipalLocator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzPrincipalLocator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzPrincipalLocator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzPrincipalLocator_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzPrincipalLocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzPrincipalLocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzPrincipalLocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzPrincipalLocator_get_NameResolver(This,ppNameResolver) \ + ( (This)->lpVtbl -> get_NameResolver(This,ppNameResolver) ) + +#define IAzPrincipalLocator_get_ObjectPicker(This,ppObjectPicker) \ + ( (This)->lpVtbl -> get_ObjectPicker(This,ppObjectPicker) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzPrincipalLocator_INTERFACE_DEFINED__ */ + + +#ifndef __IAzNameResolver_INTERFACE_DEFINED__ +#define __IAzNameResolver_INTERFACE_DEFINED__ + +/* interface IAzNameResolver */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzNameResolver; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("504d0f15-73e2-43df-a870-a64f40714f53") + IAzNameResolver : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE NameFromSid( + /* [in] */ __RPC__in BSTR bstrSid, + /* [out] */ __RPC__out long *pSidType, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE NamesFromSids( + /* [in] */ VARIANT vSids, + /* [out] */ __RPC__out VARIANT *pvSidTypes, + /* [retval][out] */ __RPC__out VARIANT *pvNames) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzNameResolverVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzNameResolver * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzNameResolver * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzNameResolver * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzNameResolver * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzNameResolver * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzNameResolver * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzNameResolver * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzNameResolver, NameFromSid) + HRESULT ( STDMETHODCALLTYPE *NameFromSid )( + __RPC__in IAzNameResolver * This, + /* [in] */ __RPC__in BSTR bstrSid, + /* [out] */ __RPC__out long *pSidType, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzNameResolver, NamesFromSids) + HRESULT ( STDMETHODCALLTYPE *NamesFromSids )( + __RPC__in IAzNameResolver * This, + /* [in] */ VARIANT vSids, + /* [out] */ __RPC__out VARIANT *pvSidTypes, + /* [retval][out] */ __RPC__out VARIANT *pvNames); + + END_INTERFACE + } IAzNameResolverVtbl; + + interface IAzNameResolver + { + CONST_VTBL struct IAzNameResolverVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzNameResolver_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzNameResolver_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzNameResolver_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzNameResolver_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzNameResolver_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzNameResolver_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzNameResolver_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzNameResolver_NameFromSid(This,bstrSid,pSidType,pbstrName) \ + ( (This)->lpVtbl -> NameFromSid(This,bstrSid,pSidType,pbstrName) ) + +#define IAzNameResolver_NamesFromSids(This,vSids,pvSidTypes,pvNames) \ + ( (This)->lpVtbl -> NamesFromSids(This,vSids,pvSidTypes,pvNames) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzNameResolver_INTERFACE_DEFINED__ */ + + +#ifndef __IAzObjectPicker_INTERFACE_DEFINED__ +#define __IAzObjectPicker_INTERFACE_DEFINED__ + +/* interface IAzObjectPicker */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzObjectPicker; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("63130a48-699a-42d8-bf01-c62ac3fb79f9") + IAzObjectPicker : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPrincipals( + /* [in] */ __RPC__in HWND hParentWnd, + /* [in] */ __RPC__in BSTR bstrTitle, + /* [out] */ __RPC__out VARIANT *pvSidTypes, + /* [out] */ __RPC__out VARIANT *pvNames, + /* [retval][out] */ __RPC__out VARIANT *pvSids) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzObjectPickerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzObjectPicker * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzObjectPicker * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzObjectPicker * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzObjectPicker * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzObjectPicker * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzObjectPicker * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzObjectPicker * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzObjectPicker, GetPrincipals) + HRESULT ( STDMETHODCALLTYPE *GetPrincipals )( + __RPC__in IAzObjectPicker * This, + /* [in] */ __RPC__in HWND hParentWnd, + /* [in] */ __RPC__in BSTR bstrTitle, + /* [out] */ __RPC__out VARIANT *pvSidTypes, + /* [out] */ __RPC__out VARIANT *pvNames, + /* [retval][out] */ __RPC__out VARIANT *pvSids); + + DECLSPEC_XFGVIRT(IAzObjectPicker, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzObjectPicker * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + END_INTERFACE + } IAzObjectPickerVtbl; + + interface IAzObjectPicker + { + CONST_VTBL struct IAzObjectPickerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzObjectPicker_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzObjectPicker_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzObjectPicker_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzObjectPicker_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzObjectPicker_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzObjectPicker_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzObjectPicker_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzObjectPicker_GetPrincipals(This,hParentWnd,bstrTitle,pvSidTypes,pvNames,pvSids) \ + ( (This)->lpVtbl -> GetPrincipals(This,hParentWnd,bstrTitle,pvSidTypes,pvNames,pvSids) ) + +#define IAzObjectPicker_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzObjectPicker_INTERFACE_DEFINED__ */ + + +#ifndef __IAzApplicationGroup2_INTERFACE_DEFINED__ +#define __IAzApplicationGroup2_INTERFACE_DEFINED__ + +/* interface IAzApplicationGroup2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzApplicationGroup2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3f0613fc-b71a-464e-a11d-5b881a56cefa") + IAzApplicationGroup2 : public IAzApplicationGroup + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BizRule( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BizRule( + /* [in] */ __RPC__in BSTR bstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BizRuleLanguage( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BizRuleLanguage( + /* [in] */ __RPC__in BSTR bstrProp) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BizRuleImportedPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BizRuleImportedPath( + /* [in] */ __RPC__in BSTR bstrProp) = 0; + + virtual HRESULT STDMETHODCALLTYPE RoleAssignments( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ VARIANT_BOOL bRecursive, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzApplicationGroup2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzApplicationGroup2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzApplicationGroup2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzApplicationGroup2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzApplicationGroup2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__out LONG *plProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, put_Type) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ LONG lProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_LdapQuery) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_LdapQuery )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, put_LdapQuery) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_LdapQuery )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_AppMembers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AppMembers )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_AppNonMembers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AppNonMembers )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_Members) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Members )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_NonMembers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NonMembers )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddAppMember) + HRESULT ( STDMETHODCALLTYPE *AddAppMember )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteAppMember) + HRESULT ( STDMETHODCALLTYPE *DeleteAppMember )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddAppNonMember) + HRESULT ( STDMETHODCALLTYPE *AddAppNonMember )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteAppNonMember) + HRESULT ( STDMETHODCALLTYPE *DeleteAppNonMember )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddMember) + HRESULT ( STDMETHODCALLTYPE *AddMember )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteMember) + HRESULT ( STDMETHODCALLTYPE *DeleteMember )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddNonMember) + HRESULT ( STDMETHODCALLTYPE *AddNonMember )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteNonMember) + HRESULT ( STDMETHODCALLTYPE *DeleteNonMember )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzApplicationGroup2 * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddMemberName) + HRESULT ( STDMETHODCALLTYPE *AddMemberName )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteMemberName) + HRESULT ( STDMETHODCALLTYPE *DeleteMemberName )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, AddNonMemberName) + HRESULT ( STDMETHODCALLTYPE *AddNonMemberName )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, DeleteNonMemberName) + HRESULT ( STDMETHODCALLTYPE *DeleteNonMemberName )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_MembersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MembersName )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup, get_NonMembersName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NonMembersName )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup2, get_BizRule) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRule )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup2, put_BizRule) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRule )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup2, get_BizRuleLanguage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRuleLanguage )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup2, put_BizRuleLanguage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRuleLanguage )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup2, get_BizRuleImportedPath) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRuleImportedPath )( + __RPC__in IAzApplicationGroup2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup2, put_BizRuleImportedPath) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRuleImportedPath )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzApplicationGroup2, RoleAssignments) + HRESULT ( STDMETHODCALLTYPE *RoleAssignments )( + __RPC__in IAzApplicationGroup2 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ VARIANT_BOOL bRecursive, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments); + + END_INTERFACE + } IAzApplicationGroup2Vtbl; + + interface IAzApplicationGroup2 + { + CONST_VTBL struct IAzApplicationGroup2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzApplicationGroup2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzApplicationGroup2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzApplicationGroup2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzApplicationGroup2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzApplicationGroup2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzApplicationGroup2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzApplicationGroup2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzApplicationGroup2_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzApplicationGroup2_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzApplicationGroup2_get_Type(This,plProp) \ + ( (This)->lpVtbl -> get_Type(This,plProp) ) + +#define IAzApplicationGroup2_put_Type(This,lProp) \ + ( (This)->lpVtbl -> put_Type(This,lProp) ) + +#define IAzApplicationGroup2_get_LdapQuery(This,pbstrProp) \ + ( (This)->lpVtbl -> get_LdapQuery(This,pbstrProp) ) + +#define IAzApplicationGroup2_put_LdapQuery(This,bstrProp) \ + ( (This)->lpVtbl -> put_LdapQuery(This,bstrProp) ) + +#define IAzApplicationGroup2_get_AppMembers(This,pvarProp) \ + ( (This)->lpVtbl -> get_AppMembers(This,pvarProp) ) + +#define IAzApplicationGroup2_get_AppNonMembers(This,pvarProp) \ + ( (This)->lpVtbl -> get_AppNonMembers(This,pvarProp) ) + +#define IAzApplicationGroup2_get_Members(This,pvarProp) \ + ( (This)->lpVtbl -> get_Members(This,pvarProp) ) + +#define IAzApplicationGroup2_get_NonMembers(This,pvarProp) \ + ( (This)->lpVtbl -> get_NonMembers(This,pvarProp) ) + +#define IAzApplicationGroup2_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzApplicationGroup2_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzApplicationGroup2_AddAppMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddAppMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_DeleteAppMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteAppMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_AddAppNonMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddAppNonMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_DeleteAppNonMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteAppNonMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_AddMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_DeleteMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_AddNonMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddNonMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_DeleteNonMember(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteNonMember(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzApplicationGroup2_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzApplicationGroup2_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzApplicationGroup2_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzApplicationGroup2_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzApplicationGroup2_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + +#define IAzApplicationGroup2_AddMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddMemberName(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_DeleteMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteMemberName(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_AddNonMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> AddNonMemberName(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_DeleteNonMemberName(This,bstrProp,varReserved) \ + ( (This)->lpVtbl -> DeleteNonMemberName(This,bstrProp,varReserved) ) + +#define IAzApplicationGroup2_get_MembersName(This,pvarProp) \ + ( (This)->lpVtbl -> get_MembersName(This,pvarProp) ) + +#define IAzApplicationGroup2_get_NonMembersName(This,pvarProp) \ + ( (This)->lpVtbl -> get_NonMembersName(This,pvarProp) ) + + +#define IAzApplicationGroup2_get_BizRule(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRule(This,pbstrProp) ) + +#define IAzApplicationGroup2_put_BizRule(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRule(This,bstrProp) ) + +#define IAzApplicationGroup2_get_BizRuleLanguage(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRuleLanguage(This,pbstrProp) ) + +#define IAzApplicationGroup2_put_BizRuleLanguage(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRuleLanguage(This,bstrProp) ) + +#define IAzApplicationGroup2_get_BizRuleImportedPath(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRuleImportedPath(This,pbstrProp) ) + +#define IAzApplicationGroup2_put_BizRuleImportedPath(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRuleImportedPath(This,bstrProp) ) + +#define IAzApplicationGroup2_RoleAssignments(This,bstrScopeName,bRecursive,ppRoleAssignments) \ + ( (This)->lpVtbl -> RoleAssignments(This,bstrScopeName,bRecursive,ppRoleAssignments) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzApplicationGroup2_INTERFACE_DEFINED__ */ + + +#ifndef __IAzTask2_INTERFACE_DEFINED__ +#define __IAzTask2_INTERFACE_DEFINED__ + +/* interface IAzTask2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAzTask2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("03a9a5ee-48c8-4832-9025-aad503c46526") + IAzTask2 : public IAzTask + { + public: + virtual HRESULT STDMETHODCALLTYPE RoleAssignments( + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ VARIANT_BOOL bRecursive, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAzTask2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAzTask2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAzTask2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAzTask2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAzTask2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAzTask2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAzTask, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IAzTask2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IAzTask, put_Name) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrName); + + DECLSPEC_XFGVIRT(IAzTask, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IAzTask2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDescription); + + DECLSPEC_XFGVIRT(IAzTask, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrDescription); + + DECLSPEC_XFGVIRT(IAzTask, get_ApplicationData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ApplicationData )( + __RPC__in IAzTask2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrApplicationData); + + DECLSPEC_XFGVIRT(IAzTask, put_ApplicationData) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ApplicationData )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrApplicationData); + + DECLSPEC_XFGVIRT(IAzTask, get_BizRule) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRule )( + __RPC__in IAzTask2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzTask, put_BizRule) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRule )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzTask, get_BizRuleLanguage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRuleLanguage )( + __RPC__in IAzTask2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzTask, put_BizRuleLanguage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRuleLanguage )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzTask, get_BizRuleImportedPath) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BizRuleImportedPath )( + __RPC__in IAzTask2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrProp); + + DECLSPEC_XFGVIRT(IAzTask, put_BizRuleImportedPath) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BizRuleImportedPath )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrProp); + + DECLSPEC_XFGVIRT(IAzTask, get_IsRoleDefinition) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsRoleDefinition )( + __RPC__in IAzTask2 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzTask, put_IsRoleDefinition) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsRoleDefinition )( + __RPC__in IAzTask2 * This, + /* [in] */ BOOL fProp); + + DECLSPEC_XFGVIRT(IAzTask, get_Operations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Operations )( + __RPC__in IAzTask2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzTask, get_Tasks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Tasks )( + __RPC__in IAzTask2 * This, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzTask, AddOperation) + HRESULT ( STDMETHODCALLTYPE *AddOperation )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrOp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, DeleteOperation) + HRESULT ( STDMETHODCALLTYPE *DeleteOperation )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrOp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, AddTask) + HRESULT ( STDMETHODCALLTYPE *AddTask )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrTask, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, DeleteTask) + HRESULT ( STDMETHODCALLTYPE *DeleteTask )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrTask, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, get_Writable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Writable )( + __RPC__in IAzTask2 * This, + /* [retval][out] */ __RPC__out BOOL *pfProp); + + DECLSPEC_XFGVIRT(IAzTask, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IAzTask2 * This, + /* [in] */ LONG lPropId, + /* [optional][in] */ VARIANT varReserved, + /* [retval][out] */ __RPC__out VARIANT *pvarProp); + + DECLSPEC_XFGVIRT(IAzTask, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IAzTask2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, AddPropertyItem) + HRESULT ( STDMETHODCALLTYPE *AddPropertyItem )( + __RPC__in IAzTask2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, DeletePropertyItem) + HRESULT ( STDMETHODCALLTYPE *DeletePropertyItem )( + __RPC__in IAzTask2 * This, + /* [in] */ LONG lPropId, + /* [in] */ VARIANT varProp, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask, Submit) + HRESULT ( STDMETHODCALLTYPE *Submit )( + __RPC__in IAzTask2 * This, + /* [defaultvalue][in] */ LONG lFlags, + /* [optional][in] */ VARIANT varReserved); + + DECLSPEC_XFGVIRT(IAzTask2, RoleAssignments) + HRESULT ( STDMETHODCALLTYPE *RoleAssignments )( + __RPC__in IAzTask2 * This, + /* [in] */ __RPC__in BSTR bstrScopeName, + /* [in] */ VARIANT_BOOL bRecursive, + /* [retval][out] */ __RPC__deref_out_opt IAzRoleAssignments **ppRoleAssignments); + + END_INTERFACE + } IAzTask2Vtbl; + + interface IAzTask2 + { + CONST_VTBL struct IAzTask2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAzTask2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAzTask2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAzTask2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAzTask2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAzTask2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAzTask2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAzTask2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAzTask2_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IAzTask2_put_Name(This,bstrName) \ + ( (This)->lpVtbl -> put_Name(This,bstrName) ) + +#define IAzTask2_get_Description(This,pbstrDescription) \ + ( (This)->lpVtbl -> get_Description(This,pbstrDescription) ) + +#define IAzTask2_put_Description(This,bstrDescription) \ + ( (This)->lpVtbl -> put_Description(This,bstrDescription) ) + +#define IAzTask2_get_ApplicationData(This,pbstrApplicationData) \ + ( (This)->lpVtbl -> get_ApplicationData(This,pbstrApplicationData) ) + +#define IAzTask2_put_ApplicationData(This,bstrApplicationData) \ + ( (This)->lpVtbl -> put_ApplicationData(This,bstrApplicationData) ) + +#define IAzTask2_get_BizRule(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRule(This,pbstrProp) ) + +#define IAzTask2_put_BizRule(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRule(This,bstrProp) ) + +#define IAzTask2_get_BizRuleLanguage(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRuleLanguage(This,pbstrProp) ) + +#define IAzTask2_put_BizRuleLanguage(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRuleLanguage(This,bstrProp) ) + +#define IAzTask2_get_BizRuleImportedPath(This,pbstrProp) \ + ( (This)->lpVtbl -> get_BizRuleImportedPath(This,pbstrProp) ) + +#define IAzTask2_put_BizRuleImportedPath(This,bstrProp) \ + ( (This)->lpVtbl -> put_BizRuleImportedPath(This,bstrProp) ) + +#define IAzTask2_get_IsRoleDefinition(This,pfProp) \ + ( (This)->lpVtbl -> get_IsRoleDefinition(This,pfProp) ) + +#define IAzTask2_put_IsRoleDefinition(This,fProp) \ + ( (This)->lpVtbl -> put_IsRoleDefinition(This,fProp) ) + +#define IAzTask2_get_Operations(This,pvarProp) \ + ( (This)->lpVtbl -> get_Operations(This,pvarProp) ) + +#define IAzTask2_get_Tasks(This,pvarProp) \ + ( (This)->lpVtbl -> get_Tasks(This,pvarProp) ) + +#define IAzTask2_AddOperation(This,bstrOp,varReserved) \ + ( (This)->lpVtbl -> AddOperation(This,bstrOp,varReserved) ) + +#define IAzTask2_DeleteOperation(This,bstrOp,varReserved) \ + ( (This)->lpVtbl -> DeleteOperation(This,bstrOp,varReserved) ) + +#define IAzTask2_AddTask(This,bstrTask,varReserved) \ + ( (This)->lpVtbl -> AddTask(This,bstrTask,varReserved) ) + +#define IAzTask2_DeleteTask(This,bstrTask,varReserved) \ + ( (This)->lpVtbl -> DeleteTask(This,bstrTask,varReserved) ) + +#define IAzTask2_get_Writable(This,pfProp) \ + ( (This)->lpVtbl -> get_Writable(This,pfProp) ) + +#define IAzTask2_GetProperty(This,lPropId,varReserved,pvarProp) \ + ( (This)->lpVtbl -> GetProperty(This,lPropId,varReserved,pvarProp) ) + +#define IAzTask2_SetProperty(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> SetProperty(This,lPropId,varProp,varReserved) ) + +#define IAzTask2_AddPropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> AddPropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzTask2_DeletePropertyItem(This,lPropId,varProp,varReserved) \ + ( (This)->lpVtbl -> DeletePropertyItem(This,lPropId,varProp,varReserved) ) + +#define IAzTask2_Submit(This,lFlags,varReserved) \ + ( (This)->lpVtbl -> Submit(This,lFlags,varReserved) ) + + +#define IAzTask2_RoleAssignments(This,bstrScopeName,bRecursive,ppRoleAssignments) \ + ( (This)->lpVtbl -> RoleAssignments(This,bstrScopeName,bRecursive,ppRoleAssignments) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAzTask2_INTERFACE_DEFINED__ */ + + + +#ifndef __AZROLESLib_LIBRARY_DEFINED__ +#define __AZROLESLib_LIBRARY_DEFINED__ + +/* library AZROLESLib */ +/* [helpstring][version][uuid] */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +// List of poperty IDs for Az objects. + +typedef +enum tagAZ_PROP_CONSTANTS + { + AZ_PROP_NAME = 1, + AZ_PROP_DESCRIPTION = 2, + AZ_PROP_WRITABLE = 3, + AZ_PROP_APPLICATION_DATA = 4, + AZ_PROP_CHILD_CREATE = 5, + AZ_MAX_APPLICATION_NAME_LENGTH = 512, + AZ_MAX_OPERATION_NAME_LENGTH = 64, + AZ_MAX_TASK_NAME_LENGTH = 64, + AZ_MAX_SCOPE_NAME_LENGTH = 65536, + AZ_MAX_GROUP_NAME_LENGTH = 64, + AZ_MAX_ROLE_NAME_LENGTH = 64, + AZ_MAX_NAME_LENGTH = 65536, + AZ_MAX_DESCRIPTION_LENGTH = 1024, + AZ_MAX_APPLICATION_DATA_LENGTH = 4096, + AZ_SUBMIT_FLAG_ABORT = 0x1, + AZ_SUBMIT_FLAG_FLUSH = 0x2, + AZ_MAX_POLICY_URL_LENGTH = 65536, + AZ_AZSTORE_FLAG_CREATE = 0x1, + AZ_AZSTORE_FLAG_MANAGE_STORE_ONLY = 0x2, + AZ_AZSTORE_FLAG_BATCH_UPDATE = 0x4, + AZ_AZSTORE_FLAG_AUDIT_IS_CRITICAL = 0x8, + AZ_AZSTORE_FORCE_APPLICATION_CLOSE = 0x10, + AZ_AZSTORE_NT6_FUNCTION_LEVEL = 0x20, + AZ_AZSTORE_FLAG_MANAGE_ONLY_PASSIVE_SUBMIT = 0x8000, + AZ_PROP_AZSTORE_DOMAIN_TIMEOUT = 100, + AZ_AZSTORE_DEFAULT_DOMAIN_TIMEOUT = ( 15 * 1000 ) , + AZ_PROP_AZSTORE_SCRIPT_ENGINE_TIMEOUT = 101, + AZ_AZSTORE_MIN_DOMAIN_TIMEOUT = 500, + AZ_AZSTORE_MIN_SCRIPT_ENGINE_TIMEOUT = ( 5 * 1000 ) , + AZ_AZSTORE_DEFAULT_SCRIPT_ENGINE_TIMEOUT = ( 45 * 1000 ) , + AZ_PROP_AZSTORE_MAX_SCRIPT_ENGINES = 102, + AZ_AZSTORE_DEFAULT_MAX_SCRIPT_ENGINES = 120, + AZ_PROP_AZSTORE_MAJOR_VERSION = 103, + AZ_PROP_AZSTORE_MINOR_VERSION = 104, + AZ_PROP_AZSTORE_TARGET_MACHINE = 105, + AZ_PROP_AZTORE_IS_ADAM_INSTANCE = 106, + AZ_PROP_OPERATION_ID = 200, + AZ_PROP_TASK_OPERATIONS = 300, + AZ_PROP_TASK_BIZRULE = 301, + AZ_PROP_TASK_BIZRULE_LANGUAGE = 302, + AZ_PROP_TASK_TASKS = 303, + AZ_PROP_TASK_BIZRULE_IMPORTED_PATH = 304, + AZ_PROP_TASK_IS_ROLE_DEFINITION = 305, + AZ_MAX_TASK_BIZRULE_LENGTH = 65536, + AZ_MAX_TASK_BIZRULE_LANGUAGE_LENGTH = 64, + AZ_MAX_TASK_BIZRULE_IMPORTED_PATH_LENGTH = 512, + AZ_MAX_BIZRULE_STRING = 65536, + AZ_PROP_GROUP_TYPE = 400, + AZ_GROUPTYPE_LDAP_QUERY = 1, + AZ_GROUPTYPE_BASIC = 2, + AZ_GROUPTYPE_BIZRULE = 3, + AZ_PROP_GROUP_APP_MEMBERS = 401, + AZ_PROP_GROUP_APP_NON_MEMBERS = 402, + AZ_PROP_GROUP_LDAP_QUERY = 403, + AZ_MAX_GROUP_LDAP_QUERY_LENGTH = 4096, + AZ_PROP_GROUP_MEMBERS = 404, + AZ_PROP_GROUP_NON_MEMBERS = 405, + AZ_PROP_GROUP_MEMBERS_NAME = 406, + AZ_PROP_GROUP_NON_MEMBERS_NAME = 407, + AZ_PROP_GROUP_BIZRULE = 408, + AZ_PROP_GROUP_BIZRULE_LANGUAGE = 409, + AZ_PROP_GROUP_BIZRULE_IMPORTED_PATH = 410, + AZ_MAX_GROUP_BIZRULE_LENGTH = 65536, + AZ_MAX_GROUP_BIZRULE_LANGUAGE_LENGTH = 64, + AZ_MAX_GROUP_BIZRULE_IMPORTED_PATH_LENGTH = 512, + AZ_PROP_ROLE_APP_MEMBERS = 500, + AZ_PROP_ROLE_MEMBERS = 501, + AZ_PROP_ROLE_OPERATIONS = 502, + AZ_PROP_ROLE_TASKS = 504, + AZ_PROP_ROLE_MEMBERS_NAME = 505, + AZ_PROP_SCOPE_BIZRULES_WRITABLE = 600, + AZ_PROP_SCOPE_CAN_BE_DELEGATED = 601, + AZ_PROP_CLIENT_CONTEXT_USER_DN = 700, + AZ_PROP_CLIENT_CONTEXT_USER_SAM_COMPAT = 701, + AZ_PROP_CLIENT_CONTEXT_USER_DISPLAY = 702, + AZ_PROP_CLIENT_CONTEXT_USER_GUID = 703, + AZ_PROP_CLIENT_CONTEXT_USER_CANONICAL = 704, + AZ_PROP_CLIENT_CONTEXT_USER_UPN = 705, + AZ_PROP_CLIENT_CONTEXT_USER_DNS_SAM_COMPAT = 707, + AZ_PROP_CLIENT_CONTEXT_ROLE_FOR_ACCESS_CHECK = 708, + AZ_PROP_CLIENT_CONTEXT_LDAP_QUERY_DN = 709, + AZ_PROP_APPLICATION_AUTHZ_INTERFACE_CLSID = 800, + AZ_PROP_APPLICATION_VERSION = 801, + AZ_MAX_APPLICATION_VERSION_LENGTH = 512, + AZ_PROP_APPLICATION_NAME = 802, + AZ_PROP_APPLICATION_BIZRULE_ENABLED = 803, + AZ_PROP_APPLY_STORE_SACL = 900, + AZ_PROP_GENERATE_AUDITS = 901, + AZ_PROP_POLICY_ADMINS = 902, + AZ_PROP_POLICY_READERS = 903, + AZ_PROP_DELEGATED_POLICY_USERS = 904, + AZ_PROP_POLICY_ADMINS_NAME = 905, + AZ_PROP_POLICY_READERS_NAME = 906, + AZ_PROP_DELEGATED_POLICY_USERS_NAME = 907, + AZ_CLIENT_CONTEXT_SKIP_GROUP = 1, + AZ_CLIENT_CONTEXT_SKIP_LDAP_QUERY = 1, + AZ_CLIENT_CONTEXT_GET_GROUP_RECURSIVE = 2, + AZ_CLIENT_CONTEXT_GET_GROUPS_STORE_LEVEL_ONLY = 2 + } AZ_PROP_CONSTANTS; + + +EXTERN_C const IID LIBID_AZROLESLib; + +EXTERN_C const CLSID CLSID_AzAuthorizationStore; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b2bcff59-a757-4b0b-a1bc-ea69981da69e") +AzAuthorizationStore; +#endif + +EXTERN_C const CLSID CLSID_AzBizRuleContext; + +#ifdef __cplusplus + +class DECLSPEC_UUID("5c2dc96f-8d51-434b-b33c-379bccae77c3") +AzBizRuleContext; +#endif + +EXTERN_C const CLSID CLSID_AzPrincipalLocator; + +#ifdef __cplusplus + +class DECLSPEC_UUID("483afb5d-70df-4e16-abdc-a1de4d015a3e") +AzPrincipalLocator; +#endif +#endif /* __AZROLESLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_azroles_0000_0035 */ +/* [local] */ + +#ifndef OLESCRIPT_E_SYNTAX +#define OLESCRIPT_E_SYNTAX _HRESULT_TYPEDEF_(0x80020101L) +#endif // OLESCRIPT_E_SYNTAX +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_azroles_0000_0035_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_azroles_0000_0035_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/baseaudioprocessingobject.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/baseaudioprocessingobject.h new file mode 100644 index 0000000000000000000000000000000000000000..5ac2cb00c4cd001691f12924edff638688c35937 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/baseaudioprocessingobject.h @@ -0,0 +1,329 @@ +// BaseAudioProcessingObject.h -- Copyright (c) 2002 Microsoft Corporation +// +// Description: +// +// CBaseAudioProcessingObject declaration +// + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include + +// define this to keep older string functions from being deprecated +// this is needed because some windows headers are still using deprecated string functions. +#define STRSAFE_NO_DEPRECATE +#include +#include +#include + +#include +#include + + +// Locked memory utility APIs for System Effect APOs +extern "C" +{ + //------------------------------------------------------------------------- + // Description: Locked memory allocator + // + // Parameters: + // size - [in] Number of input connections. + // pMemory - [out] Void** pointer. + // + // Return codes: + // S_OK - pMemory points to allocated memory. + // E_OUTOFMEMORY - No memory is available. + // + _Success_(return == S_OK) + STDAPI AERT_Allocate(_In_ size_t size, _Outptr_result_bytebuffer_(size) void **pMemory); + + //------------------------------------------------------------------------- + // Description: Locked memory free + // + // Parameters: + // pMemory - [in] Pointer to memory to free. + // + // Return codes: + // S_OK + // + STDAPI AERT_Free(_In_ void *pMemory); +} + + +// TODO: REMOVE THESE WHEN WE HAVE THESE IN OFFICIAL HEADERS" +#ifndef AVRT_CODE_BEGIN +// These are copied out of the old AvRt.h file. +#define AVRT_CODE_BEGIN code_seg( push, "RT_CODE" ) +#define AVRT_DATA_BEGIN data_seg( push, "RT_DATA" ) +#define AVRT_BSS_BEGIN bss_seg( push, "RT_BSS" ) +#define AVRT_CONST_BEGIN const_seg( push, "RT_CONST" ) +#define AVRT_VTABLES_BEGIN AVRT_CONST_BEGIN +#define AVRT_CODE_END code_seg( pop ) +#define AVRT_DATA_END data_seg( pop ) +#define AVRT_BSS_END bss_seg( pop ) +#define AVRT_CONST_END const_seg( pop ) +#define AVRT_VTABLES_END AVRT_CONST_END +#define AVRT_DATA __declspec(allocate("RT_DATA")) +#define AVRT_BSS __declspec(allocate("RT_BSS")) +#define AVRT_CONST __declspec(allocate("RT_CONST")) + +// Now declare our sections to the compiler so AVRT_DATA, AVRT_BSS and +// AVRT_CONST work. + +#if defined(_IA64_) +#pragma section( "RT_CONST", read, long) +#endif + +#pragma AVRT_CODE_BEGIN +#pragma AVRT_CODE_END +#pragma AVRT_CONST_BEGIN +#pragma AVRT_CONST_END +#pragma AVRT_BSS_BEGIN +#pragma AVRT_BSS_END +#pragma AVRT_DATA_BEGIN +#pragma AVRT_DATA_END + +#define ASSERT_REALTIME() // Used to mark real-time code. +#define ASSERT_NONREALTIME() // Used to mark non-real time code +#endif + +#pragma AVRT_VTABLES_BEGIN +// Base class for APOs +class __declspec(novtable) CBaseAudioProcessingObject : public IAudioProcessingObject, public IAudioProcessingObjectRT, public IAudioProcessingObjectConfiguration +{ +public: + CBaseAudioProcessingObject(_In_ const APO_REG_PROPERTIES* pRegProperties); + virtual ~CBaseAudioProcessingObject(); + +public: + + //------------------------------------------------------------------------- + // Description: + // + // This must be implemented by subclasses. + // + // Parameters: + // + // u32NumInputConnections - [in] Number of input connections. + // + // ppInputConnections - [in] Array of input connection property + // structures, one per input connection. + // + // u32NumOutputConnections - [in] Number of output connections. + // + // ppOutputConnections - [in, out] Array of output connection + // property structures, one per output connection. + // + STDMETHOD_(void, APOProcess)(_In_ UINT32 u32NumInputConnections, + _In_reads_(u32NumInputConnections) APO_CONNECTION_PROPERTY** ppInputConnections, + _In_ UINT32 u32NumOutputConnections, + _Inout_updates_(u32NumOutputConnections) APO_CONNECTION_PROPERTY** ppOutputConnections) = 0; + STDMETHOD_(UINT32, CalcInputFrames)(_In_ UINT32 u32OutputFrameCount); + STDMETHOD_(UINT32, CalcOutputFrames)(_In_ UINT32 u32InputFrameCount); + + STDMETHOD(LockForProcess)(_In_ UINT32 u32NumInputConnections, _In_reads_(u32NumInputConnections) APO_CONNECTION_DESCRIPTOR** ppInputConnections, _In_ UINT32 u32NumOutputConnections, _In_reads_(u32NumOutputConnections) APO_CONNECTION_DESCRIPTOR** ppOutputConnections); + STDMETHOD(UnlockForProcess)(void); + STDMETHOD(Reset)(void); + STDMETHOD(GetLatency)(_Out_ HNSTIME* pTime); + STDMETHOD(GetRegistrationProperties)(_Outptr_opt_ APO_REG_PROPERTIES** ppRegProps); + STDMETHOD(Initialize)(_In_ UINT32 cbDataSize, _In_reads_bytes_(cbDataSize) BYTE* pbyData); + STDMETHOD(IsInputFormatSupported)(_In_opt_ IAudioMediaType* pOutputFormat, _In_opt_ IAudioMediaType* pRequestedInputFormat, _Outptr_opt_ IAudioMediaType** ppSupportedInputFormat); + STDMETHOD(IsOutputFormatSupported)(_In_opt_ IAudioMediaType* pInputFormat, _In_opt_ IAudioMediaType* pRequestedOutputFormat, _Outptr_opt_ IAudioMediaType** ppSupportedOutputFormat); + STDMETHOD(GetInputChannelCount)(_Out_ UINT32* pu32ChannelCount); + +protected: + HRESULT IsFormatTypeSupported( + _In_ IAudioMediaType* pOppositeFormat, + _In_ IAudioMediaType* pRequestedFormat, + _Outptr_ IAudioMediaType** ppSupportedFormat, + _In_ bool bIsInput ); + HRESULT __fastcall ValidateConnection(_In_ const UNCOMPRESSEDAUDIOFORMAT &pUncompressedAudioFormat); + virtual HRESULT ValidateAndCacheConnectionInfo(_In_ UINT32 u32NumInputConnections, + _In_reads_(u32NumInputConnections) APO_CONNECTION_DESCRIPTOR** ppInputConnections, + _In_ UINT32 u32NumOutputConnections, + _In_reads_(u32NumOutputConnections) APO_CONNECTION_DESCRIPTOR** ppOutputConnections); + + bool BuffersOverlap(_In_ UINT32 u32NumInputConnections, + _In_reads_(u32NumInputConnections) APO_CONNECTION_DESCRIPTOR** ppInputConnections, + _In_ UINT32 u32NumOutputConnections, + _In_reads_(u32NumOutputConnections) APO_CONNECTION_DESCRIPTOR** ppOutputConnections); + + UINT32 __fastcall GetSamplesPerFrame(); + UINT32 __fastcall GetBytesPerSampleContainer(); + UINT32 __fastcall GetValidBitsPerSample(); + FLOAT32 __fastcall GetFramesPerSecond(); + + HRESULT __fastcall ValidateInitializeParameters(_In_ UINT32 cbDataSize, _In_reads_bytes_(cbDataSize) BYTE* pbyData, _In_ REFCLSID clsid, _In_ UINT32 cbStructSize); + virtual HRESULT __fastcall ValidateDefaultAPOFormat(_In_ UNCOMPRESSEDAUDIOFORMAT& audioFormat, _In_ bool bIsInput); + +protected: + // Flag that determines if the APO is locked. + bool m_bIsLocked; + + // Flag that determines if the APO has been initialized. + bool m_bIsInitialized; + + // pointer to registration properties for this APO + const APO_REG_PROPERTIES* m_pRegProperties; + + // critical section for APOs + CRITICAL_SECTION m_CritSec; + + // Number of samples per frame. Only valid if the APO_FLAG_SAMPLESPERFRAME_MUST_MATCH + // registry property is set. + UINT32 m_u32SamplesPerFrame; + +private: + // The following variables are stored for convenience and for validation purposes. They are all set to + // zero initially and any time there are no valid connections attached to the APO. + + // The size of the container for each audio sample. Only valid if the APO_FLAG_BITSPERSAMPLE_MUST_MATCH + // registry property is set. + UINT32 m_u32BytesPerSampleContainer; + + // Valid number of bits per sample. Only valid if the APO_FLAG_BITSPERSAMPLE_MUST_MATCH + // registry property is set. + UINT32 m_u32ValidBitsPerSample; + + // Frame rate, in frames per second (hertz). Only valid if the APO_FLAG_FRAMESPERSECOND_MUST_MATCH + // registry property is set. + FLOAT32 m_f32FramesPerSecond; +}; +#pragma AVRT_VTABLES_END + +// The default APO registration flags +#define DEFAULT_APOREG_FLAGS APO_FLAG_DEFAULT +// The default minimum number of connection for input +#define DEFAULT_APOREG_MININPUTCONNECTIONS 1 +// The default maximum number of connection for input +#define DEFAULT_APOREG_MAXINPUTCONNECTIONS 1 +// The default minimum number of connections for output +#define DEFAULT_APOREG_MINOUTPUTCONNECTIONS 1 +// The default maximum number of connections for output +#define DEFAULT_APOREG_MAXOUTPUTCONNECTIONS 1 +// The maximum number of instances +#define DEFAULT_APOREG_MAXINSTANCES ULONG_MAX + + +// default format values, used in ValidateDefaultAPOFormat() + +// The default format +#define DEFAULT_APO_FORMAT KSDATAFORMAT_SUBTYPE_IEEE_FLOAT +// The default minimum samples per frame +#define DEFAULT_APO_MINSAMPLESPERFRAME AUDIO_MIN_CHANNELS +// The default maximum samples per frame +#define DEFAULT_APO_MAXSAMPLESPERFRAME AUDIO_MAX_CHANNELS +// The default bytes per sample contrainer +#define DEFAULT_APO_BYTESPERSAMPLECONTAINER 4 +// The default bits per sample +#define DEFAULT_APO_VALIDBITSPERSAMPLE 32 +// The default minimum frames per second +#define DEFAULT_APO_MINFRAMESPERSECOND AUDIO_MIN_FRAMERATE +// The default maximum frames per second +#define DEFAULT_APO_MAXFRAMESPERSECOND AUDIO_MAX_FRAMERATE + + +//------------------------------------------------------------------------- +// Description: +// +// Template class for CRegAPOProperties. +// +// Helper class for APO_REG_PROPERTIES that handles the variable-size issue +// and does some default initialization of the struct. +// +// Parameters: +// +// NumAPOInterfaces - [in] The number of APO interfaces in this properties class. +// +template +class CRegAPOProperties +{ +public: + CRegAPOProperties(_In_ REFCLSID clsid, + _In_z_ LPCWSTR pszFriendlyName, _In_z_ LPCWSTR pszCopyrightInfo, + _In_ UINT32 u32MajorVersion, _In_ UINT32 u32MinorVersion, + _In_ REFIID iidAPOInterface1, + _In_ APO_FLAG Flags = DEFAULT_APOREG_FLAGS, + _In_ UINT32 u32MinInputConnections = DEFAULT_APOREG_MININPUTCONNECTIONS, + _In_ UINT32 u32MaxInputConnections = DEFAULT_APOREG_MAXINPUTCONNECTIONS, + _In_ UINT32 u32MinOutputConnections = DEFAULT_APOREG_MINOUTPUTCONNECTIONS, + _In_ UINT32 u32MaxOutputConnections = DEFAULT_APOREG_MAXOUTPUTCONNECTIONS, + _In_ UINT32 u32MaxInstances = DEFAULT_APOREG_MAXINSTANCES, + ...) + { + int index; + va_list va; + + m_Properties.clsid = clsid; + m_Properties.Flags = Flags; +#ifdef _DEBUG + HRESULT hResult = StringCbCopyW(m_Properties.szFriendlyName, sizeof(m_Properties.szFriendlyName), pszFriendlyName); + _ASSERTE(S_OK == hResult); // nothing to do here except assert + hResult = StringCbCopyW(m_Properties.szCopyrightInfo, sizeof(m_Properties.szCopyrightInfo), pszCopyrightInfo); + _ASSERTE(S_OK == hResult); // nothing to do here except assert +#else + StringCbCopyW(m_Properties.szFriendlyName, sizeof(m_Properties.szFriendlyName), pszFriendlyName); + StringCbCopyW(m_Properties.szCopyrightInfo, sizeof(m_Properties.szCopyrightInfo), pszCopyrightInfo); +#endif + m_Properties.u32MajorVersion = u32MajorVersion; + m_Properties.u32MinorVersion = u32MinorVersion; + m_Properties.u32MinInputConnections = u32MinInputConnections; + m_Properties.u32MaxInputConnections = u32MaxInputConnections; + m_Properties.u32MinOutputConnections = u32MinOutputConnections; + m_Properties.u32MaxOutputConnections = u32MaxOutputConnections; + m_Properties.u32MaxInstances = u32MaxInstances; + m_Properties.u32NumAPOInterfaces = NumAPOInterfaces; + m_Properties.iidAPOInterfaceList[0] = iidAPOInterface1; + va_start(va, u32MaxInstances); + // this is a "while" instead of a "for" loop for Prefast conformance + index = 0; + while (index < NumAPOInterfaces - 1) + { + m_aAdditionalAPOIIDs[index] = va_arg(va, IID); + index++; + } + va_end(va); + } + + operator const APO_REG_PROPERTIES&() const + { + return m_Properties; + } + + //------------------------------------------------------------------------- + // Description: + // + // The dereference operator returns a reference to the APO registration + // properties. + // + // Return values: + // + // Address of property member + // + operator const APO_REG_PROPERTIES*() const + { + return &m_Properties; + } + +public: + // + // Holds the properties for this APO + // + APO_REG_PROPERTIES m_Properties; +#pragma warning(push) +#pragma warning(disable: 4200) // zero length array + IID m_aAdditionalAPOIIDs[NumAPOInterfaces - 1]; // Set up the array of interface IDs this APO supports +#pragma warning(pop) +}; + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bcp47mrm.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bcp47mrm.h new file mode 100644 index 0000000000000000000000000000000000000000..cb54c28507924d2ddb13f8bdfa813b616fa6286e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bcp47mrm.h @@ -0,0 +1,17 @@ +// Copyright (C) Microsoft Corporation. All rights reserved. +#pragma once + +#ifndef _BCP47MRM_H_ +#define _BCP47MRM_H_ + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +STDAPI GetDistanceOfClosestLanguageInList( + _In_ PCWSTR pszLanguage, + _In_ PCWSTR pszLanguagesList, + _In_ wchar_t wchListDelimiter, + _Out_ double * pClosestDistance); + +STDAPI_(bool) IsWellFormedTag(_In_ PCWSTR pszTag); +#endif + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdaiface.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdaiface.h new file mode 100644 index 0000000000000000000000000000000000000000..bbf1615a5e67f91db11312c97572cde703d2c3be --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdaiface.h @@ -0,0 +1,7517 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bdaiface_h__ +#define __bdaiface_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBDA_NetworkProvider_FWD_DEFINED__ +#define __IBDA_NetworkProvider_FWD_DEFINED__ +typedef interface IBDA_NetworkProvider IBDA_NetworkProvider; + +#endif /* __IBDA_NetworkProvider_FWD_DEFINED__ */ + + +#ifndef __IBDA_EthernetFilter_FWD_DEFINED__ +#define __IBDA_EthernetFilter_FWD_DEFINED__ +typedef interface IBDA_EthernetFilter IBDA_EthernetFilter; + +#endif /* __IBDA_EthernetFilter_FWD_DEFINED__ */ + + +#ifndef __IBDA_IPV4Filter_FWD_DEFINED__ +#define __IBDA_IPV4Filter_FWD_DEFINED__ +typedef interface IBDA_IPV4Filter IBDA_IPV4Filter; + +#endif /* __IBDA_IPV4Filter_FWD_DEFINED__ */ + + +#ifndef __IBDA_IPV6Filter_FWD_DEFINED__ +#define __IBDA_IPV6Filter_FWD_DEFINED__ +typedef interface IBDA_IPV6Filter IBDA_IPV6Filter; + +#endif /* __IBDA_IPV6Filter_FWD_DEFINED__ */ + + +#ifndef __IBDA_DeviceControl_FWD_DEFINED__ +#define __IBDA_DeviceControl_FWD_DEFINED__ +typedef interface IBDA_DeviceControl IBDA_DeviceControl; + +#endif /* __IBDA_DeviceControl_FWD_DEFINED__ */ + + +#ifndef __IBDA_PinControl_FWD_DEFINED__ +#define __IBDA_PinControl_FWD_DEFINED__ +typedef interface IBDA_PinControl IBDA_PinControl; + +#endif /* __IBDA_PinControl_FWD_DEFINED__ */ + + +#ifndef __IBDA_SignalProperties_FWD_DEFINED__ +#define __IBDA_SignalProperties_FWD_DEFINED__ +typedef interface IBDA_SignalProperties IBDA_SignalProperties; + +#endif /* __IBDA_SignalProperties_FWD_DEFINED__ */ + + +#ifndef __IBDA_SignalStatistics_FWD_DEFINED__ +#define __IBDA_SignalStatistics_FWD_DEFINED__ +typedef interface IBDA_SignalStatistics IBDA_SignalStatistics; + +#endif /* __IBDA_SignalStatistics_FWD_DEFINED__ */ + + +#ifndef __IBDA_Topology_FWD_DEFINED__ +#define __IBDA_Topology_FWD_DEFINED__ +typedef interface IBDA_Topology IBDA_Topology; + +#endif /* __IBDA_Topology_FWD_DEFINED__ */ + + +#ifndef __IBDA_VoidTransform_FWD_DEFINED__ +#define __IBDA_VoidTransform_FWD_DEFINED__ +typedef interface IBDA_VoidTransform IBDA_VoidTransform; + +#endif /* __IBDA_VoidTransform_FWD_DEFINED__ */ + + +#ifndef __IBDA_NullTransform_FWD_DEFINED__ +#define __IBDA_NullTransform_FWD_DEFINED__ +typedef interface IBDA_NullTransform IBDA_NullTransform; + +#endif /* __IBDA_NullTransform_FWD_DEFINED__ */ + + +#ifndef __IBDA_FrequencyFilter_FWD_DEFINED__ +#define __IBDA_FrequencyFilter_FWD_DEFINED__ +typedef interface IBDA_FrequencyFilter IBDA_FrequencyFilter; + +#endif /* __IBDA_FrequencyFilter_FWD_DEFINED__ */ + + +#ifndef __IBDA_LNBInfo_FWD_DEFINED__ +#define __IBDA_LNBInfo_FWD_DEFINED__ +typedef interface IBDA_LNBInfo IBDA_LNBInfo; + +#endif /* __IBDA_LNBInfo_FWD_DEFINED__ */ + + +#ifndef __IBDA_DiseqCommand_FWD_DEFINED__ +#define __IBDA_DiseqCommand_FWD_DEFINED__ +typedef interface IBDA_DiseqCommand IBDA_DiseqCommand; + +#endif /* __IBDA_DiseqCommand_FWD_DEFINED__ */ + + +#ifndef __IBDA_AutoDemodulate_FWD_DEFINED__ +#define __IBDA_AutoDemodulate_FWD_DEFINED__ +typedef interface IBDA_AutoDemodulate IBDA_AutoDemodulate; + +#endif /* __IBDA_AutoDemodulate_FWD_DEFINED__ */ + + +#ifndef __IBDA_AutoDemodulateEx_FWD_DEFINED__ +#define __IBDA_AutoDemodulateEx_FWD_DEFINED__ +typedef interface IBDA_AutoDemodulateEx IBDA_AutoDemodulateEx; + +#endif /* __IBDA_AutoDemodulateEx_FWD_DEFINED__ */ + + +#ifndef __IBDA_DigitalDemodulator_FWD_DEFINED__ +#define __IBDA_DigitalDemodulator_FWD_DEFINED__ +typedef interface IBDA_DigitalDemodulator IBDA_DigitalDemodulator; + +#endif /* __IBDA_DigitalDemodulator_FWD_DEFINED__ */ + + +#ifndef __IBDA_DigitalDemodulator2_FWD_DEFINED__ +#define __IBDA_DigitalDemodulator2_FWD_DEFINED__ +typedef interface IBDA_DigitalDemodulator2 IBDA_DigitalDemodulator2; + +#endif /* __IBDA_DigitalDemodulator2_FWD_DEFINED__ */ + + +#ifndef __IBDA_DigitalDemodulator3_FWD_DEFINED__ +#define __IBDA_DigitalDemodulator3_FWD_DEFINED__ +typedef interface IBDA_DigitalDemodulator3 IBDA_DigitalDemodulator3; + +#endif /* __IBDA_DigitalDemodulator3_FWD_DEFINED__ */ + + +#ifndef __ICCSubStreamFiltering_FWD_DEFINED__ +#define __ICCSubStreamFiltering_FWD_DEFINED__ +typedef interface ICCSubStreamFiltering ICCSubStreamFiltering; + +#endif /* __ICCSubStreamFiltering_FWD_DEFINED__ */ + + +#ifndef __IBDA_IPSinkControl_FWD_DEFINED__ +#define __IBDA_IPSinkControl_FWD_DEFINED__ +typedef interface IBDA_IPSinkControl IBDA_IPSinkControl; + +#endif /* __IBDA_IPSinkControl_FWD_DEFINED__ */ + + +#ifndef __IBDA_IPSinkInfo_FWD_DEFINED__ +#define __IBDA_IPSinkInfo_FWD_DEFINED__ +typedef interface IBDA_IPSinkInfo IBDA_IPSinkInfo; + +#endif /* __IBDA_IPSinkInfo_FWD_DEFINED__ */ + + +#ifndef __IEnumPIDMap_FWD_DEFINED__ +#define __IEnumPIDMap_FWD_DEFINED__ +typedef interface IEnumPIDMap IEnumPIDMap; + +#endif /* __IEnumPIDMap_FWD_DEFINED__ */ + + +#ifndef __IMPEG2PIDMap_FWD_DEFINED__ +#define __IMPEG2PIDMap_FWD_DEFINED__ +typedef interface IMPEG2PIDMap IMPEG2PIDMap; + +#endif /* __IMPEG2PIDMap_FWD_DEFINED__ */ + + +#ifndef __IFrequencyMap_FWD_DEFINED__ +#define __IFrequencyMap_FWD_DEFINED__ +typedef interface IFrequencyMap IFrequencyMap; + +#endif /* __IFrequencyMap_FWD_DEFINED__ */ + + +#ifndef __IBDA_EasMessage_FWD_DEFINED__ +#define __IBDA_EasMessage_FWD_DEFINED__ +typedef interface IBDA_EasMessage IBDA_EasMessage; + +#endif /* __IBDA_EasMessage_FWD_DEFINED__ */ + + +#ifndef __IBDA_TransportStreamInfo_FWD_DEFINED__ +#define __IBDA_TransportStreamInfo_FWD_DEFINED__ +typedef interface IBDA_TransportStreamInfo IBDA_TransportStreamInfo; + +#endif /* __IBDA_TransportStreamInfo_FWD_DEFINED__ */ + + +#ifndef __IBDA_ConditionalAccess_FWD_DEFINED__ +#define __IBDA_ConditionalAccess_FWD_DEFINED__ +typedef interface IBDA_ConditionalAccess IBDA_ConditionalAccess; + +#endif /* __IBDA_ConditionalAccess_FWD_DEFINED__ */ + + +#ifndef __IBDA_DiagnosticProperties_FWD_DEFINED__ +#define __IBDA_DiagnosticProperties_FWD_DEFINED__ +typedef interface IBDA_DiagnosticProperties IBDA_DiagnosticProperties; + +#endif /* __IBDA_DiagnosticProperties_FWD_DEFINED__ */ + + +#ifndef __IBDA_DRM_FWD_DEFINED__ +#define __IBDA_DRM_FWD_DEFINED__ +typedef interface IBDA_DRM IBDA_DRM; + +#endif /* __IBDA_DRM_FWD_DEFINED__ */ + + +#ifndef __IBDA_NameValueService_FWD_DEFINED__ +#define __IBDA_NameValueService_FWD_DEFINED__ +typedef interface IBDA_NameValueService IBDA_NameValueService; + +#endif /* __IBDA_NameValueService_FWD_DEFINED__ */ + + +#ifndef __IBDA_ConditionalAccessEx_FWD_DEFINED__ +#define __IBDA_ConditionalAccessEx_FWD_DEFINED__ +typedef interface IBDA_ConditionalAccessEx IBDA_ConditionalAccessEx; + +#endif /* __IBDA_ConditionalAccessEx_FWD_DEFINED__ */ + + +#ifndef __IBDA_ISDBConditionalAccess_FWD_DEFINED__ +#define __IBDA_ISDBConditionalAccess_FWD_DEFINED__ +typedef interface IBDA_ISDBConditionalAccess IBDA_ISDBConditionalAccess; + +#endif /* __IBDA_ISDBConditionalAccess_FWD_DEFINED__ */ + + +#ifndef __IBDA_EventingService_FWD_DEFINED__ +#define __IBDA_EventingService_FWD_DEFINED__ +typedef interface IBDA_EventingService IBDA_EventingService; + +#endif /* __IBDA_EventingService_FWD_DEFINED__ */ + + +#ifndef __IBDA_AUX_FWD_DEFINED__ +#define __IBDA_AUX_FWD_DEFINED__ +typedef interface IBDA_AUX IBDA_AUX; + +#endif /* __IBDA_AUX_FWD_DEFINED__ */ + + +#ifndef __IBDA_Encoder_FWD_DEFINED__ +#define __IBDA_Encoder_FWD_DEFINED__ +typedef interface IBDA_Encoder IBDA_Encoder; + +#endif /* __IBDA_Encoder_FWD_DEFINED__ */ + + +#ifndef __IBDA_FDC_FWD_DEFINED__ +#define __IBDA_FDC_FWD_DEFINED__ +typedef interface IBDA_FDC IBDA_FDC; + +#endif /* __IBDA_FDC_FWD_DEFINED__ */ + + +#ifndef __IBDA_GuideDataDeliveryService_FWD_DEFINED__ +#define __IBDA_GuideDataDeliveryService_FWD_DEFINED__ +typedef interface IBDA_GuideDataDeliveryService IBDA_GuideDataDeliveryService; + +#endif /* __IBDA_GuideDataDeliveryService_FWD_DEFINED__ */ + + +#ifndef __IBDA_DRMService_FWD_DEFINED__ +#define __IBDA_DRMService_FWD_DEFINED__ +typedef interface IBDA_DRMService IBDA_DRMService; + +#endif /* __IBDA_DRMService_FWD_DEFINED__ */ + + +#ifndef __IBDA_WMDRMSession_FWD_DEFINED__ +#define __IBDA_WMDRMSession_FWD_DEFINED__ +typedef interface IBDA_WMDRMSession IBDA_WMDRMSession; + +#endif /* __IBDA_WMDRMSession_FWD_DEFINED__ */ + + +#ifndef __IBDA_WMDRMTuner_FWD_DEFINED__ +#define __IBDA_WMDRMTuner_FWD_DEFINED__ +typedef interface IBDA_WMDRMTuner IBDA_WMDRMTuner; + +#endif /* __IBDA_WMDRMTuner_FWD_DEFINED__ */ + + +#ifndef __IBDA_DRIDRMService_FWD_DEFINED__ +#define __IBDA_DRIDRMService_FWD_DEFINED__ +typedef interface IBDA_DRIDRMService IBDA_DRIDRMService; + +#endif /* __IBDA_DRIDRMService_FWD_DEFINED__ */ + + +#ifndef __IBDA_DRIWMDRMSession_FWD_DEFINED__ +#define __IBDA_DRIWMDRMSession_FWD_DEFINED__ +typedef interface IBDA_DRIWMDRMSession IBDA_DRIWMDRMSession; + +#endif /* __IBDA_DRIWMDRMSession_FWD_DEFINED__ */ + + +#ifndef __IBDA_MUX_FWD_DEFINED__ +#define __IBDA_MUX_FWD_DEFINED__ +typedef interface IBDA_MUX IBDA_MUX; + +#endif /* __IBDA_MUX_FWD_DEFINED__ */ + + +#ifndef __IBDA_TransportStreamSelector_FWD_DEFINED__ +#define __IBDA_TransportStreamSelector_FWD_DEFINED__ +typedef interface IBDA_TransportStreamSelector IBDA_TransportStreamSelector; + +#endif /* __IBDA_TransportStreamSelector_FWD_DEFINED__ */ + + +#ifndef __IBDA_UserActivityService_FWD_DEFINED__ +#define __IBDA_UserActivityService_FWD_DEFINED__ +typedef interface IBDA_UserActivityService IBDA_UserActivityService; + +#endif /* __IBDA_UserActivityService_FWD_DEFINED__ */ + + +#ifndef __IESEvent_FWD_DEFINED__ +#define __IESEvent_FWD_DEFINED__ +typedef interface IESEvent IESEvent; + +#endif /* __IESEvent_FWD_DEFINED__ */ + + +#ifndef __IESEvents_FWD_DEFINED__ +#define __IESEvents_FWD_DEFINED__ +typedef interface IESEvents IESEvents; + +#endif /* __IESEvents_FWD_DEFINED__ */ + + +#ifndef __IBroadcastEvent_FWD_DEFINED__ +#define __IBroadcastEvent_FWD_DEFINED__ +typedef interface IBroadcastEvent IBroadcastEvent; + +#endif /* __IBroadcastEvent_FWD_DEFINED__ */ + + +#ifndef __IBroadcastEventEx_FWD_DEFINED__ +#define __IBroadcastEventEx_FWD_DEFINED__ +typedef interface IBroadcastEventEx IBroadcastEventEx; + +#endif /* __IBroadcastEventEx_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "strmif.h" +#include "BdaTypes.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bdaiface_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(pop) +#pragma warning(pop) +#pragma region Desktop Family +#pragma region Desktop Family +#pragma endregion +typedef /* [v1_enum] */ +enum SmartCardStatusType + { + CardInserted = 0, + CardRemoved = ( CardInserted + 1 ) , + CardError = ( CardRemoved + 1 ) , + CardDataChanged = ( CardError + 1 ) , + CardFirmwareUpgrade = ( CardDataChanged + 1 ) + } SmartCardStatusType; + +typedef /* [v1_enum] */ +enum SmartCardAssociationType + { + NotAssociated = 0, + Associated = ( NotAssociated + 1 ) , + AssociationUnknown = ( Associated + 1 ) + } SmartCardAssociationType; + +typedef /* [v1_enum] */ +enum LocationCodeSchemeType + { + SCTE_18 = 0 + } LocationCodeSchemeType; + +typedef struct EALocationCodeType + { + LocationCodeSchemeType LocationCodeScheme; + BYTE state_code; + BYTE county_subdivision; + WORD county_code; + } EALocationCodeType; + +typedef /* [v1_enum] */ +enum EntitlementType + { + Entitled = 0, + NotEntitled = ( Entitled + 1 ) , + TechnicalFailure = ( NotEntitled + 1 ) + } EntitlementType; + +typedef /* [v1_enum] */ +enum UICloseReasonType + { + NotReady = 0, + UserClosed = ( NotReady + 1 ) , + SystemClosed = ( UserClosed + 1 ) , + DeviceClosed = ( SystemClosed + 1 ) , + ErrorClosed = ( DeviceClosed + 1 ) + } UICloseReasonType; + +typedef struct SmartCardApplication + { + ApplicationTypeType ApplicationType; + USHORT ApplicationVersion; + BSTR pbstrApplicationName; + BSTR pbstrApplicationURL; + } SmartCardApplication; + +typedef /* [v1_enum] */ +enum BDA_DrmPairingError + { + BDA_DrmPairing_Succeeded = 0, + BDA_DrmPairing_HardwareFailure = ( BDA_DrmPairing_Succeeded + 1 ) , + BDA_DrmPairing_NeedRevocationData = ( BDA_DrmPairing_HardwareFailure + 1 ) , + BDA_DrmPairing_NeedIndiv = ( BDA_DrmPairing_NeedRevocationData + 1 ) , + BDA_DrmPairing_Other = ( BDA_DrmPairing_NeedIndiv + 1 ) , + BDA_DrmPairing_DrmInitFailed = ( BDA_DrmPairing_Other + 1 ) , + BDA_DrmPairing_DrmNotPaired = ( BDA_DrmPairing_DrmInitFailed + 1 ) , + BDA_DrmPairing_DrmRePairSoon = ( BDA_DrmPairing_DrmNotPaired + 1 ) , + BDA_DrmPairing_Aborted = ( BDA_DrmPairing_DrmRePairSoon + 1 ) , + BDA_DrmPairing_NeedSDKUpdate = ( BDA_DrmPairing_Aborted + 1 ) + } BDA_DrmPairingError; + +#pragma region Desktop Family +#pragma endregion +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0000_v0_0_s_ifspec; + +#ifndef __IBDA_NetworkProvider_INTERFACE_DEFINED__ +#define __IBDA_NetworkProvider_INTERFACE_DEFINED__ + +/* interface IBDA_NetworkProvider */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_NetworkProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fd501041-8ebe-11ce-8183-00aa00577da2") + IBDA_NetworkProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE PutSignalSource( + /* [in] */ ULONG ulSignalSource) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSignalSource( + /* [out][in] */ __RPC__inout ULONG *pulSignalSource) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNetworkType( + /* [out][in] */ __RPC__inout GUID *pguidNetworkType) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutTuningSpace( + /* [in] */ __RPC__in REFGUID guidTuningSpace) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTuningSpace( + /* [out][in] */ __RPC__inout GUID *pguidTuingSpace) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterDeviceFilter( + /* [in] */ __RPC__in_opt IUnknown *pUnkFilterControl, + /* [out][in] */ __RPC__inout ULONG *ppvRegisitrationContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnRegisterDeviceFilter( + /* [in] */ ULONG pvRegistrationContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_NetworkProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_NetworkProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_NetworkProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_NetworkProvider * This); + + DECLSPEC_XFGVIRT(IBDA_NetworkProvider, PutSignalSource) + HRESULT ( STDMETHODCALLTYPE *PutSignalSource )( + __RPC__in IBDA_NetworkProvider * This, + /* [in] */ ULONG ulSignalSource); + + DECLSPEC_XFGVIRT(IBDA_NetworkProvider, GetSignalSource) + HRESULT ( STDMETHODCALLTYPE *GetSignalSource )( + __RPC__in IBDA_NetworkProvider * This, + /* [out][in] */ __RPC__inout ULONG *pulSignalSource); + + DECLSPEC_XFGVIRT(IBDA_NetworkProvider, GetNetworkType) + HRESULT ( STDMETHODCALLTYPE *GetNetworkType )( + __RPC__in IBDA_NetworkProvider * This, + /* [out][in] */ __RPC__inout GUID *pguidNetworkType); + + DECLSPEC_XFGVIRT(IBDA_NetworkProvider, PutTuningSpace) + HRESULT ( STDMETHODCALLTYPE *PutTuningSpace )( + __RPC__in IBDA_NetworkProvider * This, + /* [in] */ __RPC__in REFGUID guidTuningSpace); + + DECLSPEC_XFGVIRT(IBDA_NetworkProvider, GetTuningSpace) + HRESULT ( STDMETHODCALLTYPE *GetTuningSpace )( + __RPC__in IBDA_NetworkProvider * This, + /* [out][in] */ __RPC__inout GUID *pguidTuingSpace); + + DECLSPEC_XFGVIRT(IBDA_NetworkProvider, RegisterDeviceFilter) + HRESULT ( STDMETHODCALLTYPE *RegisterDeviceFilter )( + __RPC__in IBDA_NetworkProvider * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkFilterControl, + /* [out][in] */ __RPC__inout ULONG *ppvRegisitrationContext); + + DECLSPEC_XFGVIRT(IBDA_NetworkProvider, UnRegisterDeviceFilter) + HRESULT ( STDMETHODCALLTYPE *UnRegisterDeviceFilter )( + __RPC__in IBDA_NetworkProvider * This, + /* [in] */ ULONG pvRegistrationContext); + + END_INTERFACE + } IBDA_NetworkProviderVtbl; + + interface IBDA_NetworkProvider + { + CONST_VTBL struct IBDA_NetworkProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_NetworkProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_NetworkProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_NetworkProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_NetworkProvider_PutSignalSource(This,ulSignalSource) \ + ( (This)->lpVtbl -> PutSignalSource(This,ulSignalSource) ) + +#define IBDA_NetworkProvider_GetSignalSource(This,pulSignalSource) \ + ( (This)->lpVtbl -> GetSignalSource(This,pulSignalSource) ) + +#define IBDA_NetworkProvider_GetNetworkType(This,pguidNetworkType) \ + ( (This)->lpVtbl -> GetNetworkType(This,pguidNetworkType) ) + +#define IBDA_NetworkProvider_PutTuningSpace(This,guidTuningSpace) \ + ( (This)->lpVtbl -> PutTuningSpace(This,guidTuningSpace) ) + +#define IBDA_NetworkProvider_GetTuningSpace(This,pguidTuingSpace) \ + ( (This)->lpVtbl -> GetTuningSpace(This,pguidTuingSpace) ) + +#define IBDA_NetworkProvider_RegisterDeviceFilter(This,pUnkFilterControl,ppvRegisitrationContext) \ + ( (This)->lpVtbl -> RegisterDeviceFilter(This,pUnkFilterControl,ppvRegisitrationContext) ) + +#define IBDA_NetworkProvider_UnRegisterDeviceFilter(This,pvRegistrationContext) \ + ( (This)->lpVtbl -> UnRegisterDeviceFilter(This,pvRegistrationContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_NetworkProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_EthernetFilter_INTERFACE_DEFINED__ +#define __IBDA_EthernetFilter_INTERFACE_DEFINED__ + +/* interface IBDA_EthernetFilter */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_EthernetFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("71985F43-1CA1-11d3-9CC8-00C04F7971E0") + IBDA_EthernetFilter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetMulticastListSize( + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutMulticastList( + /* [in] */ ULONG ulcbAddresses, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbAddresses) BYTE pAddressList[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMulticastList( + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses, + /* [size_is][out][in] */ __RPC__inout_ecount_full(*pulcbAddresses) BYTE pAddressList[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutMulticastMode( + /* [in] */ ULONG ulModeMask) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMulticastMode( + /* [out] */ __RPC__out ULONG *pulModeMask) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_EthernetFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_EthernetFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_EthernetFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_EthernetFilter * This); + + DECLSPEC_XFGVIRT(IBDA_EthernetFilter, GetMulticastListSize) + HRESULT ( STDMETHODCALLTYPE *GetMulticastListSize )( + __RPC__in IBDA_EthernetFilter * This, + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses); + + DECLSPEC_XFGVIRT(IBDA_EthernetFilter, PutMulticastList) + HRESULT ( STDMETHODCALLTYPE *PutMulticastList )( + __RPC__in IBDA_EthernetFilter * This, + /* [in] */ ULONG ulcbAddresses, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbAddresses) BYTE pAddressList[ ]); + + DECLSPEC_XFGVIRT(IBDA_EthernetFilter, GetMulticastList) + HRESULT ( STDMETHODCALLTYPE *GetMulticastList )( + __RPC__in IBDA_EthernetFilter * This, + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses, + /* [size_is][out][in] */ __RPC__inout_ecount_full(*pulcbAddresses) BYTE pAddressList[ ]); + + DECLSPEC_XFGVIRT(IBDA_EthernetFilter, PutMulticastMode) + HRESULT ( STDMETHODCALLTYPE *PutMulticastMode )( + __RPC__in IBDA_EthernetFilter * This, + /* [in] */ ULONG ulModeMask); + + DECLSPEC_XFGVIRT(IBDA_EthernetFilter, GetMulticastMode) + HRESULT ( STDMETHODCALLTYPE *GetMulticastMode )( + __RPC__in IBDA_EthernetFilter * This, + /* [out] */ __RPC__out ULONG *pulModeMask); + + END_INTERFACE + } IBDA_EthernetFilterVtbl; + + interface IBDA_EthernetFilter + { + CONST_VTBL struct IBDA_EthernetFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_EthernetFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_EthernetFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_EthernetFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_EthernetFilter_GetMulticastListSize(This,pulcbAddresses) \ + ( (This)->lpVtbl -> GetMulticastListSize(This,pulcbAddresses) ) + +#define IBDA_EthernetFilter_PutMulticastList(This,ulcbAddresses,pAddressList) \ + ( (This)->lpVtbl -> PutMulticastList(This,ulcbAddresses,pAddressList) ) + +#define IBDA_EthernetFilter_GetMulticastList(This,pulcbAddresses,pAddressList) \ + ( (This)->lpVtbl -> GetMulticastList(This,pulcbAddresses,pAddressList) ) + +#define IBDA_EthernetFilter_PutMulticastMode(This,ulModeMask) \ + ( (This)->lpVtbl -> PutMulticastMode(This,ulModeMask) ) + +#define IBDA_EthernetFilter_GetMulticastMode(This,pulModeMask) \ + ( (This)->lpVtbl -> GetMulticastMode(This,pulModeMask) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_EthernetFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_IPV4Filter_INTERFACE_DEFINED__ +#define __IBDA_IPV4Filter_INTERFACE_DEFINED__ + +/* interface IBDA_IPV4Filter */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_IPV4Filter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("71985F44-1CA1-11d3-9CC8-00C04F7971E0") + IBDA_IPV4Filter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetMulticastListSize( + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutMulticastList( + /* [in] */ ULONG ulcbAddresses, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbAddresses) BYTE pAddressList[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMulticastList( + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses, + /* [size_is][out] */ __RPC__out_ecount_full(*pulcbAddresses) BYTE pAddressList[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutMulticastMode( + /* [in] */ ULONG ulModeMask) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMulticastMode( + /* [out] */ __RPC__out ULONG *pulModeMask) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_IPV4FilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_IPV4Filter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_IPV4Filter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_IPV4Filter * This); + + DECLSPEC_XFGVIRT(IBDA_IPV4Filter, GetMulticastListSize) + HRESULT ( STDMETHODCALLTYPE *GetMulticastListSize )( + __RPC__in IBDA_IPV4Filter * This, + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses); + + DECLSPEC_XFGVIRT(IBDA_IPV4Filter, PutMulticastList) + HRESULT ( STDMETHODCALLTYPE *PutMulticastList )( + __RPC__in IBDA_IPV4Filter * This, + /* [in] */ ULONG ulcbAddresses, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbAddresses) BYTE pAddressList[ ]); + + DECLSPEC_XFGVIRT(IBDA_IPV4Filter, GetMulticastList) + HRESULT ( STDMETHODCALLTYPE *GetMulticastList )( + __RPC__in IBDA_IPV4Filter * This, + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses, + /* [size_is][out] */ __RPC__out_ecount_full(*pulcbAddresses) BYTE pAddressList[ ]); + + DECLSPEC_XFGVIRT(IBDA_IPV4Filter, PutMulticastMode) + HRESULT ( STDMETHODCALLTYPE *PutMulticastMode )( + __RPC__in IBDA_IPV4Filter * This, + /* [in] */ ULONG ulModeMask); + + DECLSPEC_XFGVIRT(IBDA_IPV4Filter, GetMulticastMode) + HRESULT ( STDMETHODCALLTYPE *GetMulticastMode )( + __RPC__in IBDA_IPV4Filter * This, + /* [out] */ __RPC__out ULONG *pulModeMask); + + END_INTERFACE + } IBDA_IPV4FilterVtbl; + + interface IBDA_IPV4Filter + { + CONST_VTBL struct IBDA_IPV4FilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_IPV4Filter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_IPV4Filter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_IPV4Filter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_IPV4Filter_GetMulticastListSize(This,pulcbAddresses) \ + ( (This)->lpVtbl -> GetMulticastListSize(This,pulcbAddresses) ) + +#define IBDA_IPV4Filter_PutMulticastList(This,ulcbAddresses,pAddressList) \ + ( (This)->lpVtbl -> PutMulticastList(This,ulcbAddresses,pAddressList) ) + +#define IBDA_IPV4Filter_GetMulticastList(This,pulcbAddresses,pAddressList) \ + ( (This)->lpVtbl -> GetMulticastList(This,pulcbAddresses,pAddressList) ) + +#define IBDA_IPV4Filter_PutMulticastMode(This,ulModeMask) \ + ( (This)->lpVtbl -> PutMulticastMode(This,ulModeMask) ) + +#define IBDA_IPV4Filter_GetMulticastMode(This,pulModeMask) \ + ( (This)->lpVtbl -> GetMulticastMode(This,pulModeMask) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_IPV4Filter_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_IPV6Filter_INTERFACE_DEFINED__ +#define __IBDA_IPV6Filter_INTERFACE_DEFINED__ + +/* interface IBDA_IPV6Filter */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_IPV6Filter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E1785A74-2A23-4fb3-9245-A8F88017EF33") + IBDA_IPV6Filter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetMulticastListSize( + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutMulticastList( + /* [in] */ ULONG ulcbAddresses, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbAddresses) BYTE pAddressList[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMulticastList( + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses, + /* [size_is][out] */ __RPC__out_ecount_full(*pulcbAddresses) BYTE pAddressList[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutMulticastMode( + /* [in] */ ULONG ulModeMask) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMulticastMode( + /* [out] */ __RPC__out ULONG *pulModeMask) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_IPV6FilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_IPV6Filter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_IPV6Filter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_IPV6Filter * This); + + DECLSPEC_XFGVIRT(IBDA_IPV6Filter, GetMulticastListSize) + HRESULT ( STDMETHODCALLTYPE *GetMulticastListSize )( + __RPC__in IBDA_IPV6Filter * This, + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses); + + DECLSPEC_XFGVIRT(IBDA_IPV6Filter, PutMulticastList) + HRESULT ( STDMETHODCALLTYPE *PutMulticastList )( + __RPC__in IBDA_IPV6Filter * This, + /* [in] */ ULONG ulcbAddresses, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbAddresses) BYTE pAddressList[ ]); + + DECLSPEC_XFGVIRT(IBDA_IPV6Filter, GetMulticastList) + HRESULT ( STDMETHODCALLTYPE *GetMulticastList )( + __RPC__in IBDA_IPV6Filter * This, + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses, + /* [size_is][out] */ __RPC__out_ecount_full(*pulcbAddresses) BYTE pAddressList[ ]); + + DECLSPEC_XFGVIRT(IBDA_IPV6Filter, PutMulticastMode) + HRESULT ( STDMETHODCALLTYPE *PutMulticastMode )( + __RPC__in IBDA_IPV6Filter * This, + /* [in] */ ULONG ulModeMask); + + DECLSPEC_XFGVIRT(IBDA_IPV6Filter, GetMulticastMode) + HRESULT ( STDMETHODCALLTYPE *GetMulticastMode )( + __RPC__in IBDA_IPV6Filter * This, + /* [out] */ __RPC__out ULONG *pulModeMask); + + END_INTERFACE + } IBDA_IPV6FilterVtbl; + + interface IBDA_IPV6Filter + { + CONST_VTBL struct IBDA_IPV6FilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_IPV6Filter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_IPV6Filter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_IPV6Filter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_IPV6Filter_GetMulticastListSize(This,pulcbAddresses) \ + ( (This)->lpVtbl -> GetMulticastListSize(This,pulcbAddresses) ) + +#define IBDA_IPV6Filter_PutMulticastList(This,ulcbAddresses,pAddressList) \ + ( (This)->lpVtbl -> PutMulticastList(This,ulcbAddresses,pAddressList) ) + +#define IBDA_IPV6Filter_GetMulticastList(This,pulcbAddresses,pAddressList) \ + ( (This)->lpVtbl -> GetMulticastList(This,pulcbAddresses,pAddressList) ) + +#define IBDA_IPV6Filter_PutMulticastMode(This,ulModeMask) \ + ( (This)->lpVtbl -> PutMulticastMode(This,ulModeMask) ) + +#define IBDA_IPV6Filter_GetMulticastMode(This,pulModeMask) \ + ( (This)->lpVtbl -> GetMulticastMode(This,pulModeMask) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_IPV6Filter_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_DeviceControl_INTERFACE_DEFINED__ +#define __IBDA_DeviceControl_INTERFACE_DEFINED__ + +/* interface IBDA_DeviceControl */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_DeviceControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FD0A5AF3-B41D-11d2-9C95-00C04F7971E0") + IBDA_DeviceControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE StartChanges( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckChanges( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CommitChanges( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChangeState( + /* [out][in] */ __RPC__inout ULONG *pState) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_DeviceControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_DeviceControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_DeviceControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_DeviceControl * This); + + DECLSPEC_XFGVIRT(IBDA_DeviceControl, StartChanges) + HRESULT ( STDMETHODCALLTYPE *StartChanges )( + __RPC__in IBDA_DeviceControl * This); + + DECLSPEC_XFGVIRT(IBDA_DeviceControl, CheckChanges) + HRESULT ( STDMETHODCALLTYPE *CheckChanges )( + __RPC__in IBDA_DeviceControl * This); + + DECLSPEC_XFGVIRT(IBDA_DeviceControl, CommitChanges) + HRESULT ( STDMETHODCALLTYPE *CommitChanges )( + __RPC__in IBDA_DeviceControl * This); + + DECLSPEC_XFGVIRT(IBDA_DeviceControl, GetChangeState) + HRESULT ( STDMETHODCALLTYPE *GetChangeState )( + __RPC__in IBDA_DeviceControl * This, + /* [out][in] */ __RPC__inout ULONG *pState); + + END_INTERFACE + } IBDA_DeviceControlVtbl; + + interface IBDA_DeviceControl + { + CONST_VTBL struct IBDA_DeviceControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_DeviceControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_DeviceControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_DeviceControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_DeviceControl_StartChanges(This) \ + ( (This)->lpVtbl -> StartChanges(This) ) + +#define IBDA_DeviceControl_CheckChanges(This) \ + ( (This)->lpVtbl -> CheckChanges(This) ) + +#define IBDA_DeviceControl_CommitChanges(This) \ + ( (This)->lpVtbl -> CommitChanges(This) ) + +#define IBDA_DeviceControl_GetChangeState(This,pState) \ + ( (This)->lpVtbl -> GetChangeState(This,pState) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_DeviceControl_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_PinControl_INTERFACE_DEFINED__ +#define __IBDA_PinControl_INTERFACE_DEFINED__ + +/* interface IBDA_PinControl */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_PinControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0DED49D5-A8B7-4d5d-97A1-12B0C195874D") + IBDA_PinControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPinID( + /* [out][in] */ __RPC__inout ULONG *pulPinID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPinType( + /* [out][in] */ __RPC__inout ULONG *pulPinType) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegistrationContext( + /* [out][in] */ __RPC__inout ULONG *pulRegistrationCtx) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_PinControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_PinControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_PinControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_PinControl * This); + + DECLSPEC_XFGVIRT(IBDA_PinControl, GetPinID) + HRESULT ( STDMETHODCALLTYPE *GetPinID )( + __RPC__in IBDA_PinControl * This, + /* [out][in] */ __RPC__inout ULONG *pulPinID); + + DECLSPEC_XFGVIRT(IBDA_PinControl, GetPinType) + HRESULT ( STDMETHODCALLTYPE *GetPinType )( + __RPC__in IBDA_PinControl * This, + /* [out][in] */ __RPC__inout ULONG *pulPinType); + + DECLSPEC_XFGVIRT(IBDA_PinControl, RegistrationContext) + HRESULT ( STDMETHODCALLTYPE *RegistrationContext )( + __RPC__in IBDA_PinControl * This, + /* [out][in] */ __RPC__inout ULONG *pulRegistrationCtx); + + END_INTERFACE + } IBDA_PinControlVtbl; + + interface IBDA_PinControl + { + CONST_VTBL struct IBDA_PinControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_PinControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_PinControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_PinControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_PinControl_GetPinID(This,pulPinID) \ + ( (This)->lpVtbl -> GetPinID(This,pulPinID) ) + +#define IBDA_PinControl_GetPinType(This,pulPinType) \ + ( (This)->lpVtbl -> GetPinType(This,pulPinType) ) + +#define IBDA_PinControl_RegistrationContext(This,pulRegistrationCtx) \ + ( (This)->lpVtbl -> RegistrationContext(This,pulRegistrationCtx) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_PinControl_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_SignalProperties_INTERFACE_DEFINED__ +#define __IBDA_SignalProperties_INTERFACE_DEFINED__ + +/* interface IBDA_SignalProperties */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_SignalProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D2F1644B-B409-11d2-BC69-00A0C9EE9E16") + IBDA_SignalProperties : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE PutNetworkType( + /* [in] */ __RPC__in REFGUID guidNetworkType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNetworkType( + /* [out][in] */ __RPC__inout GUID *pguidNetworkType) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutSignalSource( + /* [in] */ ULONG ulSignalSource) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSignalSource( + /* [out][in] */ __RPC__inout ULONG *pulSignalSource) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutTuningSpace( + /* [in] */ __RPC__in REFGUID guidTuningSpace) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTuningSpace( + /* [out][in] */ __RPC__inout GUID *pguidTuingSpace) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_SignalPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_SignalProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_SignalProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_SignalProperties * This); + + DECLSPEC_XFGVIRT(IBDA_SignalProperties, PutNetworkType) + HRESULT ( STDMETHODCALLTYPE *PutNetworkType )( + __RPC__in IBDA_SignalProperties * This, + /* [in] */ __RPC__in REFGUID guidNetworkType); + + DECLSPEC_XFGVIRT(IBDA_SignalProperties, GetNetworkType) + HRESULT ( STDMETHODCALLTYPE *GetNetworkType )( + __RPC__in IBDA_SignalProperties * This, + /* [out][in] */ __RPC__inout GUID *pguidNetworkType); + + DECLSPEC_XFGVIRT(IBDA_SignalProperties, PutSignalSource) + HRESULT ( STDMETHODCALLTYPE *PutSignalSource )( + __RPC__in IBDA_SignalProperties * This, + /* [in] */ ULONG ulSignalSource); + + DECLSPEC_XFGVIRT(IBDA_SignalProperties, GetSignalSource) + HRESULT ( STDMETHODCALLTYPE *GetSignalSource )( + __RPC__in IBDA_SignalProperties * This, + /* [out][in] */ __RPC__inout ULONG *pulSignalSource); + + DECLSPEC_XFGVIRT(IBDA_SignalProperties, PutTuningSpace) + HRESULT ( STDMETHODCALLTYPE *PutTuningSpace )( + __RPC__in IBDA_SignalProperties * This, + /* [in] */ __RPC__in REFGUID guidTuningSpace); + + DECLSPEC_XFGVIRT(IBDA_SignalProperties, GetTuningSpace) + HRESULT ( STDMETHODCALLTYPE *GetTuningSpace )( + __RPC__in IBDA_SignalProperties * This, + /* [out][in] */ __RPC__inout GUID *pguidTuingSpace); + + END_INTERFACE + } IBDA_SignalPropertiesVtbl; + + interface IBDA_SignalProperties + { + CONST_VTBL struct IBDA_SignalPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_SignalProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_SignalProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_SignalProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_SignalProperties_PutNetworkType(This,guidNetworkType) \ + ( (This)->lpVtbl -> PutNetworkType(This,guidNetworkType) ) + +#define IBDA_SignalProperties_GetNetworkType(This,pguidNetworkType) \ + ( (This)->lpVtbl -> GetNetworkType(This,pguidNetworkType) ) + +#define IBDA_SignalProperties_PutSignalSource(This,ulSignalSource) \ + ( (This)->lpVtbl -> PutSignalSource(This,ulSignalSource) ) + +#define IBDA_SignalProperties_GetSignalSource(This,pulSignalSource) \ + ( (This)->lpVtbl -> GetSignalSource(This,pulSignalSource) ) + +#define IBDA_SignalProperties_PutTuningSpace(This,guidTuningSpace) \ + ( (This)->lpVtbl -> PutTuningSpace(This,guidTuningSpace) ) + +#define IBDA_SignalProperties_GetTuningSpace(This,pguidTuingSpace) \ + ( (This)->lpVtbl -> GetTuningSpace(This,pguidTuingSpace) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_SignalProperties_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_SignalStatistics_INTERFACE_DEFINED__ +#define __IBDA_SignalStatistics_INTERFACE_DEFINED__ + +/* interface IBDA_SignalStatistics */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_SignalStatistics; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1347D106-CF3A-428a-A5CB-AC0D9A2A4338") + IBDA_SignalStatistics : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE put_SignalStrength( + /* [in] */ LONG lDbStrength) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_SignalStrength( + /* [out][in] */ __RPC__inout LONG *plDbStrength) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_SignalQuality( + /* [in] */ LONG lPercentQuality) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_SignalQuality( + /* [out][in] */ __RPC__inout LONG *plPercentQuality) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_SignalPresent( + /* [in] */ BOOLEAN fPresent) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_SignalPresent( + /* [out][in] */ __RPC__inout BOOLEAN *pfPresent) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_SignalLocked( + /* [in] */ BOOLEAN fLocked) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_SignalLocked( + /* [out][in] */ __RPC__inout BOOLEAN *pfLocked) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_SampleTime( + /* [in] */ LONG lmsSampleTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_SampleTime( + /* [out][in] */ __RPC__inout LONG *plmsSampleTime) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_SignalStatisticsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_SignalStatistics * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_SignalStatistics * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_SignalStatistics * This); + + DECLSPEC_XFGVIRT(IBDA_SignalStatistics, put_SignalStrength) + HRESULT ( STDMETHODCALLTYPE *put_SignalStrength )( + __RPC__in IBDA_SignalStatistics * This, + /* [in] */ LONG lDbStrength); + + DECLSPEC_XFGVIRT(IBDA_SignalStatistics, get_SignalStrength) + HRESULT ( STDMETHODCALLTYPE *get_SignalStrength )( + __RPC__in IBDA_SignalStatistics * This, + /* [out][in] */ __RPC__inout LONG *plDbStrength); + + DECLSPEC_XFGVIRT(IBDA_SignalStatistics, put_SignalQuality) + HRESULT ( STDMETHODCALLTYPE *put_SignalQuality )( + __RPC__in IBDA_SignalStatistics * This, + /* [in] */ LONG lPercentQuality); + + DECLSPEC_XFGVIRT(IBDA_SignalStatistics, get_SignalQuality) + HRESULT ( STDMETHODCALLTYPE *get_SignalQuality )( + __RPC__in IBDA_SignalStatistics * This, + /* [out][in] */ __RPC__inout LONG *plPercentQuality); + + DECLSPEC_XFGVIRT(IBDA_SignalStatistics, put_SignalPresent) + HRESULT ( STDMETHODCALLTYPE *put_SignalPresent )( + __RPC__in IBDA_SignalStatistics * This, + /* [in] */ BOOLEAN fPresent); + + DECLSPEC_XFGVIRT(IBDA_SignalStatistics, get_SignalPresent) + HRESULT ( STDMETHODCALLTYPE *get_SignalPresent )( + __RPC__in IBDA_SignalStatistics * This, + /* [out][in] */ __RPC__inout BOOLEAN *pfPresent); + + DECLSPEC_XFGVIRT(IBDA_SignalStatistics, put_SignalLocked) + HRESULT ( STDMETHODCALLTYPE *put_SignalLocked )( + __RPC__in IBDA_SignalStatistics * This, + /* [in] */ BOOLEAN fLocked); + + DECLSPEC_XFGVIRT(IBDA_SignalStatistics, get_SignalLocked) + HRESULT ( STDMETHODCALLTYPE *get_SignalLocked )( + __RPC__in IBDA_SignalStatistics * This, + /* [out][in] */ __RPC__inout BOOLEAN *pfLocked); + + DECLSPEC_XFGVIRT(IBDA_SignalStatistics, put_SampleTime) + HRESULT ( STDMETHODCALLTYPE *put_SampleTime )( + __RPC__in IBDA_SignalStatistics * This, + /* [in] */ LONG lmsSampleTime); + + DECLSPEC_XFGVIRT(IBDA_SignalStatistics, get_SampleTime) + HRESULT ( STDMETHODCALLTYPE *get_SampleTime )( + __RPC__in IBDA_SignalStatistics * This, + /* [out][in] */ __RPC__inout LONG *plmsSampleTime); + + END_INTERFACE + } IBDA_SignalStatisticsVtbl; + + interface IBDA_SignalStatistics + { + CONST_VTBL struct IBDA_SignalStatisticsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_SignalStatistics_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_SignalStatistics_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_SignalStatistics_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_SignalStatistics_put_SignalStrength(This,lDbStrength) \ + ( (This)->lpVtbl -> put_SignalStrength(This,lDbStrength) ) + +#define IBDA_SignalStatistics_get_SignalStrength(This,plDbStrength) \ + ( (This)->lpVtbl -> get_SignalStrength(This,plDbStrength) ) + +#define IBDA_SignalStatistics_put_SignalQuality(This,lPercentQuality) \ + ( (This)->lpVtbl -> put_SignalQuality(This,lPercentQuality) ) + +#define IBDA_SignalStatistics_get_SignalQuality(This,plPercentQuality) \ + ( (This)->lpVtbl -> get_SignalQuality(This,plPercentQuality) ) + +#define IBDA_SignalStatistics_put_SignalPresent(This,fPresent) \ + ( (This)->lpVtbl -> put_SignalPresent(This,fPresent) ) + +#define IBDA_SignalStatistics_get_SignalPresent(This,pfPresent) \ + ( (This)->lpVtbl -> get_SignalPresent(This,pfPresent) ) + +#define IBDA_SignalStatistics_put_SignalLocked(This,fLocked) \ + ( (This)->lpVtbl -> put_SignalLocked(This,fLocked) ) + +#define IBDA_SignalStatistics_get_SignalLocked(This,pfLocked) \ + ( (This)->lpVtbl -> get_SignalLocked(This,pfLocked) ) + +#define IBDA_SignalStatistics_put_SampleTime(This,lmsSampleTime) \ + ( (This)->lpVtbl -> put_SampleTime(This,lmsSampleTime) ) + +#define IBDA_SignalStatistics_get_SampleTime(This,plmsSampleTime) \ + ( (This)->lpVtbl -> get_SampleTime(This,plmsSampleTime) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_SignalStatistics_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_Topology_INTERFACE_DEFINED__ +#define __IBDA_Topology_INTERFACE_DEFINED__ + +/* interface IBDA_Topology */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_Topology; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79B56888-7FEA-4690-B45D-38FD3C7849BE") + IBDA_Topology : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetNodeTypes( + /* [out][in] */ __RPC__inout ULONG *pulcNodeTypes, + /* [in] */ ULONG ulcNodeTypesMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcNodeTypesMax) ULONG rgulNodeTypes[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNodeDescriptors( + /* [out][in] */ __RPC__inout ULONG *ulcNodeDescriptors, + /* [in] */ ULONG ulcNodeDescriptorsMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcNodeDescriptorsMax) BDANODE_DESCRIPTOR rgNodeDescriptors[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNodeInterfaces( + /* [in] */ ULONG ulNodeType, + /* [out][in] */ __RPC__inout ULONG *pulcInterfaces, + /* [in] */ ULONG ulcInterfacesMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcInterfacesMax) GUID rgguidInterfaces[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPinTypes( + /* [out][in] */ __RPC__inout ULONG *pulcPinTypes, + /* [in] */ ULONG ulcPinTypesMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcPinTypesMax) ULONG rgulPinTypes[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTemplateConnections( + /* [out][in] */ __RPC__inout ULONG *pulcConnections, + /* [in] */ ULONG ulcConnectionsMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcConnectionsMax) BDA_TEMPLATE_CONNECTION rgConnections[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePin( + /* [in] */ ULONG ulPinType, + /* [out][in] */ __RPC__inout ULONG *pulPinId) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePin( + /* [in] */ ULONG ulPinId) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMediaType( + /* [in] */ ULONG ulPinId, + /* [in] */ __RPC__in AM_MEDIA_TYPE *pMediaType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMedium( + /* [in] */ ULONG ulPinId, + /* [in] */ __RPC__in REGPINMEDIUM *pMedium) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateTopology( + /* [in] */ ULONG ulInputPinId, + /* [in] */ ULONG ulOutputPinId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetControlNode( + /* [in] */ ULONG ulInputPinId, + /* [in] */ ULONG ulOutputPinId, + /* [in] */ ULONG ulNodeType, + /* [out][in] */ __RPC__deref_inout_opt IUnknown **ppControlNode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_TopologyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_Topology * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_Topology * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_Topology * This); + + DECLSPEC_XFGVIRT(IBDA_Topology, GetNodeTypes) + HRESULT ( STDMETHODCALLTYPE *GetNodeTypes )( + __RPC__in IBDA_Topology * This, + /* [out][in] */ __RPC__inout ULONG *pulcNodeTypes, + /* [in] */ ULONG ulcNodeTypesMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcNodeTypesMax) ULONG rgulNodeTypes[ ]); + + DECLSPEC_XFGVIRT(IBDA_Topology, GetNodeDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetNodeDescriptors )( + __RPC__in IBDA_Topology * This, + /* [out][in] */ __RPC__inout ULONG *ulcNodeDescriptors, + /* [in] */ ULONG ulcNodeDescriptorsMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcNodeDescriptorsMax) BDANODE_DESCRIPTOR rgNodeDescriptors[ ]); + + DECLSPEC_XFGVIRT(IBDA_Topology, GetNodeInterfaces) + HRESULT ( STDMETHODCALLTYPE *GetNodeInterfaces )( + __RPC__in IBDA_Topology * This, + /* [in] */ ULONG ulNodeType, + /* [out][in] */ __RPC__inout ULONG *pulcInterfaces, + /* [in] */ ULONG ulcInterfacesMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcInterfacesMax) GUID rgguidInterfaces[ ]); + + DECLSPEC_XFGVIRT(IBDA_Topology, GetPinTypes) + HRESULT ( STDMETHODCALLTYPE *GetPinTypes )( + __RPC__in IBDA_Topology * This, + /* [out][in] */ __RPC__inout ULONG *pulcPinTypes, + /* [in] */ ULONG ulcPinTypesMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcPinTypesMax) ULONG rgulPinTypes[ ]); + + DECLSPEC_XFGVIRT(IBDA_Topology, GetTemplateConnections) + HRESULT ( STDMETHODCALLTYPE *GetTemplateConnections )( + __RPC__in IBDA_Topology * This, + /* [out][in] */ __RPC__inout ULONG *pulcConnections, + /* [in] */ ULONG ulcConnectionsMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcConnectionsMax) BDA_TEMPLATE_CONNECTION rgConnections[ ]); + + DECLSPEC_XFGVIRT(IBDA_Topology, CreatePin) + HRESULT ( STDMETHODCALLTYPE *CreatePin )( + __RPC__in IBDA_Topology * This, + /* [in] */ ULONG ulPinType, + /* [out][in] */ __RPC__inout ULONG *pulPinId); + + DECLSPEC_XFGVIRT(IBDA_Topology, DeletePin) + HRESULT ( STDMETHODCALLTYPE *DeletePin )( + __RPC__in IBDA_Topology * This, + /* [in] */ ULONG ulPinId); + + DECLSPEC_XFGVIRT(IBDA_Topology, SetMediaType) + HRESULT ( STDMETHODCALLTYPE *SetMediaType )( + __RPC__in IBDA_Topology * This, + /* [in] */ ULONG ulPinId, + /* [in] */ __RPC__in AM_MEDIA_TYPE *pMediaType); + + DECLSPEC_XFGVIRT(IBDA_Topology, SetMedium) + HRESULT ( STDMETHODCALLTYPE *SetMedium )( + __RPC__in IBDA_Topology * This, + /* [in] */ ULONG ulPinId, + /* [in] */ __RPC__in REGPINMEDIUM *pMedium); + + DECLSPEC_XFGVIRT(IBDA_Topology, CreateTopology) + HRESULT ( STDMETHODCALLTYPE *CreateTopology )( + __RPC__in IBDA_Topology * This, + /* [in] */ ULONG ulInputPinId, + /* [in] */ ULONG ulOutputPinId); + + DECLSPEC_XFGVIRT(IBDA_Topology, GetControlNode) + HRESULT ( STDMETHODCALLTYPE *GetControlNode )( + __RPC__in IBDA_Topology * This, + /* [in] */ ULONG ulInputPinId, + /* [in] */ ULONG ulOutputPinId, + /* [in] */ ULONG ulNodeType, + /* [out][in] */ __RPC__deref_inout_opt IUnknown **ppControlNode); + + END_INTERFACE + } IBDA_TopologyVtbl; + + interface IBDA_Topology + { + CONST_VTBL struct IBDA_TopologyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_Topology_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_Topology_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_Topology_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_Topology_GetNodeTypes(This,pulcNodeTypes,ulcNodeTypesMax,rgulNodeTypes) \ + ( (This)->lpVtbl -> GetNodeTypes(This,pulcNodeTypes,ulcNodeTypesMax,rgulNodeTypes) ) + +#define IBDA_Topology_GetNodeDescriptors(This,ulcNodeDescriptors,ulcNodeDescriptorsMax,rgNodeDescriptors) \ + ( (This)->lpVtbl -> GetNodeDescriptors(This,ulcNodeDescriptors,ulcNodeDescriptorsMax,rgNodeDescriptors) ) + +#define IBDA_Topology_GetNodeInterfaces(This,ulNodeType,pulcInterfaces,ulcInterfacesMax,rgguidInterfaces) \ + ( (This)->lpVtbl -> GetNodeInterfaces(This,ulNodeType,pulcInterfaces,ulcInterfacesMax,rgguidInterfaces) ) + +#define IBDA_Topology_GetPinTypes(This,pulcPinTypes,ulcPinTypesMax,rgulPinTypes) \ + ( (This)->lpVtbl -> GetPinTypes(This,pulcPinTypes,ulcPinTypesMax,rgulPinTypes) ) + +#define IBDA_Topology_GetTemplateConnections(This,pulcConnections,ulcConnectionsMax,rgConnections) \ + ( (This)->lpVtbl -> GetTemplateConnections(This,pulcConnections,ulcConnectionsMax,rgConnections) ) + +#define IBDA_Topology_CreatePin(This,ulPinType,pulPinId) \ + ( (This)->lpVtbl -> CreatePin(This,ulPinType,pulPinId) ) + +#define IBDA_Topology_DeletePin(This,ulPinId) \ + ( (This)->lpVtbl -> DeletePin(This,ulPinId) ) + +#define IBDA_Topology_SetMediaType(This,ulPinId,pMediaType) \ + ( (This)->lpVtbl -> SetMediaType(This,ulPinId,pMediaType) ) + +#define IBDA_Topology_SetMedium(This,ulPinId,pMedium) \ + ( (This)->lpVtbl -> SetMedium(This,ulPinId,pMedium) ) + +#define IBDA_Topology_CreateTopology(This,ulInputPinId,ulOutputPinId) \ + ( (This)->lpVtbl -> CreateTopology(This,ulInputPinId,ulOutputPinId) ) + +#define IBDA_Topology_GetControlNode(This,ulInputPinId,ulOutputPinId,ulNodeType,ppControlNode) \ + ( (This)->lpVtbl -> GetControlNode(This,ulInputPinId,ulOutputPinId,ulNodeType,ppControlNode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_Topology_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_VoidTransform_INTERFACE_DEFINED__ +#define __IBDA_VoidTransform_INTERFACE_DEFINED__ + +/* interface IBDA_VoidTransform */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_VoidTransform; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("71985F46-1CA1-11d3-9CC8-00C04F7971E0") + IBDA_VoidTransform : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Start( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_VoidTransformVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_VoidTransform * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_VoidTransform * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_VoidTransform * This); + + DECLSPEC_XFGVIRT(IBDA_VoidTransform, Start) + HRESULT ( STDMETHODCALLTYPE *Start )( + __RPC__in IBDA_VoidTransform * This); + + DECLSPEC_XFGVIRT(IBDA_VoidTransform, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IBDA_VoidTransform * This); + + END_INTERFACE + } IBDA_VoidTransformVtbl; + + interface IBDA_VoidTransform + { + CONST_VTBL struct IBDA_VoidTransformVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_VoidTransform_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_VoidTransform_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_VoidTransform_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_VoidTransform_Start(This) \ + ( (This)->lpVtbl -> Start(This) ) + +#define IBDA_VoidTransform_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_VoidTransform_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_NullTransform_INTERFACE_DEFINED__ +#define __IBDA_NullTransform_INTERFACE_DEFINED__ + +/* interface IBDA_NullTransform */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_NullTransform; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DDF15B0D-BD25-11d2-9CA0-00C04F7971E0") + IBDA_NullTransform : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Start( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_NullTransformVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_NullTransform * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_NullTransform * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_NullTransform * This); + + DECLSPEC_XFGVIRT(IBDA_NullTransform, Start) + HRESULT ( STDMETHODCALLTYPE *Start )( + __RPC__in IBDA_NullTransform * This); + + DECLSPEC_XFGVIRT(IBDA_NullTransform, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IBDA_NullTransform * This); + + END_INTERFACE + } IBDA_NullTransformVtbl; + + interface IBDA_NullTransform + { + CONST_VTBL struct IBDA_NullTransformVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_NullTransform_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_NullTransform_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_NullTransform_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_NullTransform_Start(This) \ + ( (This)->lpVtbl -> Start(This) ) + +#define IBDA_NullTransform_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_NullTransform_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_FrequencyFilter_INTERFACE_DEFINED__ +#define __IBDA_FrequencyFilter_INTERFACE_DEFINED__ + +/* interface IBDA_FrequencyFilter */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_FrequencyFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("71985F47-1CA1-11d3-9CC8-00C04F7971E0") + IBDA_FrequencyFilter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE put_Autotune( + /* [in] */ ULONG ulTransponder) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_Autotune( + /* [out][in] */ __RPC__inout ULONG *pulTransponder) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_Frequency( + /* [in] */ ULONG ulFrequency) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_Frequency( + /* [out][in] */ __RPC__inout ULONG *pulFrequency) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_Polarity( + /* [in] */ Polarisation Polarity) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_Polarity( + /* [out][in] */ __RPC__inout Polarisation *pPolarity) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_Range( + /* [in] */ ULONG ulRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_Range( + /* [out][in] */ __RPC__inout ULONG *pulRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_Bandwidth( + /* [in] */ ULONG ulBandwidth) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_Bandwidth( + /* [out][in] */ __RPC__inout ULONG *pulBandwidth) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_FrequencyMultiplier( + /* [in] */ ULONG ulMultiplier) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_FrequencyMultiplier( + /* [out][in] */ __RPC__inout ULONG *pulMultiplier) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_FrequencyFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_FrequencyFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_FrequencyFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_FrequencyFilter * This); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, put_Autotune) + HRESULT ( STDMETHODCALLTYPE *put_Autotune )( + __RPC__in IBDA_FrequencyFilter * This, + /* [in] */ ULONG ulTransponder); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, get_Autotune) + HRESULT ( STDMETHODCALLTYPE *get_Autotune )( + __RPC__in IBDA_FrequencyFilter * This, + /* [out][in] */ __RPC__inout ULONG *pulTransponder); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, put_Frequency) + HRESULT ( STDMETHODCALLTYPE *put_Frequency )( + __RPC__in IBDA_FrequencyFilter * This, + /* [in] */ ULONG ulFrequency); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, get_Frequency) + HRESULT ( STDMETHODCALLTYPE *get_Frequency )( + __RPC__in IBDA_FrequencyFilter * This, + /* [out][in] */ __RPC__inout ULONG *pulFrequency); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, put_Polarity) + HRESULT ( STDMETHODCALLTYPE *put_Polarity )( + __RPC__in IBDA_FrequencyFilter * This, + /* [in] */ Polarisation Polarity); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, get_Polarity) + HRESULT ( STDMETHODCALLTYPE *get_Polarity )( + __RPC__in IBDA_FrequencyFilter * This, + /* [out][in] */ __RPC__inout Polarisation *pPolarity); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, put_Range) + HRESULT ( STDMETHODCALLTYPE *put_Range )( + __RPC__in IBDA_FrequencyFilter * This, + /* [in] */ ULONG ulRange); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, get_Range) + HRESULT ( STDMETHODCALLTYPE *get_Range )( + __RPC__in IBDA_FrequencyFilter * This, + /* [out][in] */ __RPC__inout ULONG *pulRange); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, put_Bandwidth) + HRESULT ( STDMETHODCALLTYPE *put_Bandwidth )( + __RPC__in IBDA_FrequencyFilter * This, + /* [in] */ ULONG ulBandwidth); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, get_Bandwidth) + HRESULT ( STDMETHODCALLTYPE *get_Bandwidth )( + __RPC__in IBDA_FrequencyFilter * This, + /* [out][in] */ __RPC__inout ULONG *pulBandwidth); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, put_FrequencyMultiplier) + HRESULT ( STDMETHODCALLTYPE *put_FrequencyMultiplier )( + __RPC__in IBDA_FrequencyFilter * This, + /* [in] */ ULONG ulMultiplier); + + DECLSPEC_XFGVIRT(IBDA_FrequencyFilter, get_FrequencyMultiplier) + HRESULT ( STDMETHODCALLTYPE *get_FrequencyMultiplier )( + __RPC__in IBDA_FrequencyFilter * This, + /* [out][in] */ __RPC__inout ULONG *pulMultiplier); + + END_INTERFACE + } IBDA_FrequencyFilterVtbl; + + interface IBDA_FrequencyFilter + { + CONST_VTBL struct IBDA_FrequencyFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_FrequencyFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_FrequencyFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_FrequencyFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_FrequencyFilter_put_Autotune(This,ulTransponder) \ + ( (This)->lpVtbl -> put_Autotune(This,ulTransponder) ) + +#define IBDA_FrequencyFilter_get_Autotune(This,pulTransponder) \ + ( (This)->lpVtbl -> get_Autotune(This,pulTransponder) ) + +#define IBDA_FrequencyFilter_put_Frequency(This,ulFrequency) \ + ( (This)->lpVtbl -> put_Frequency(This,ulFrequency) ) + +#define IBDA_FrequencyFilter_get_Frequency(This,pulFrequency) \ + ( (This)->lpVtbl -> get_Frequency(This,pulFrequency) ) + +#define IBDA_FrequencyFilter_put_Polarity(This,Polarity) \ + ( (This)->lpVtbl -> put_Polarity(This,Polarity) ) + +#define IBDA_FrequencyFilter_get_Polarity(This,pPolarity) \ + ( (This)->lpVtbl -> get_Polarity(This,pPolarity) ) + +#define IBDA_FrequencyFilter_put_Range(This,ulRange) \ + ( (This)->lpVtbl -> put_Range(This,ulRange) ) + +#define IBDA_FrequencyFilter_get_Range(This,pulRange) \ + ( (This)->lpVtbl -> get_Range(This,pulRange) ) + +#define IBDA_FrequencyFilter_put_Bandwidth(This,ulBandwidth) \ + ( (This)->lpVtbl -> put_Bandwidth(This,ulBandwidth) ) + +#define IBDA_FrequencyFilter_get_Bandwidth(This,pulBandwidth) \ + ( (This)->lpVtbl -> get_Bandwidth(This,pulBandwidth) ) + +#define IBDA_FrequencyFilter_put_FrequencyMultiplier(This,ulMultiplier) \ + ( (This)->lpVtbl -> put_FrequencyMultiplier(This,ulMultiplier) ) + +#define IBDA_FrequencyFilter_get_FrequencyMultiplier(This,pulMultiplier) \ + ( (This)->lpVtbl -> get_FrequencyMultiplier(This,pulMultiplier) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_FrequencyFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_LNBInfo_INTERFACE_DEFINED__ +#define __IBDA_LNBInfo_INTERFACE_DEFINED__ + +/* interface IBDA_LNBInfo */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_LNBInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("992CF102-49F9-4719-A664-C4F23E2408F4") + IBDA_LNBInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE put_LocalOscilatorFrequencyLowBand( + /* [in] */ ULONG ulLOFLow) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_LocalOscilatorFrequencyLowBand( + /* [out][in] */ __RPC__inout ULONG *pulLOFLow) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_LocalOscilatorFrequencyHighBand( + /* [in] */ ULONG ulLOFHigh) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_LocalOscilatorFrequencyHighBand( + /* [out][in] */ __RPC__inout ULONG *pulLOFHigh) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_HighLowSwitchFrequency( + /* [in] */ ULONG ulSwitchFrequency) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_HighLowSwitchFrequency( + /* [out][in] */ __RPC__inout ULONG *pulSwitchFrequency) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_LNBInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_LNBInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_LNBInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_LNBInfo * This); + + DECLSPEC_XFGVIRT(IBDA_LNBInfo, put_LocalOscilatorFrequencyLowBand) + HRESULT ( STDMETHODCALLTYPE *put_LocalOscilatorFrequencyLowBand )( + __RPC__in IBDA_LNBInfo * This, + /* [in] */ ULONG ulLOFLow); + + DECLSPEC_XFGVIRT(IBDA_LNBInfo, get_LocalOscilatorFrequencyLowBand) + HRESULT ( STDMETHODCALLTYPE *get_LocalOscilatorFrequencyLowBand )( + __RPC__in IBDA_LNBInfo * This, + /* [out][in] */ __RPC__inout ULONG *pulLOFLow); + + DECLSPEC_XFGVIRT(IBDA_LNBInfo, put_LocalOscilatorFrequencyHighBand) + HRESULT ( STDMETHODCALLTYPE *put_LocalOscilatorFrequencyHighBand )( + __RPC__in IBDA_LNBInfo * This, + /* [in] */ ULONG ulLOFHigh); + + DECLSPEC_XFGVIRT(IBDA_LNBInfo, get_LocalOscilatorFrequencyHighBand) + HRESULT ( STDMETHODCALLTYPE *get_LocalOscilatorFrequencyHighBand )( + __RPC__in IBDA_LNBInfo * This, + /* [out][in] */ __RPC__inout ULONG *pulLOFHigh); + + DECLSPEC_XFGVIRT(IBDA_LNBInfo, put_HighLowSwitchFrequency) + HRESULT ( STDMETHODCALLTYPE *put_HighLowSwitchFrequency )( + __RPC__in IBDA_LNBInfo * This, + /* [in] */ ULONG ulSwitchFrequency); + + DECLSPEC_XFGVIRT(IBDA_LNBInfo, get_HighLowSwitchFrequency) + HRESULT ( STDMETHODCALLTYPE *get_HighLowSwitchFrequency )( + __RPC__in IBDA_LNBInfo * This, + /* [out][in] */ __RPC__inout ULONG *pulSwitchFrequency); + + END_INTERFACE + } IBDA_LNBInfoVtbl; + + interface IBDA_LNBInfo + { + CONST_VTBL struct IBDA_LNBInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_LNBInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_LNBInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_LNBInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_LNBInfo_put_LocalOscilatorFrequencyLowBand(This,ulLOFLow) \ + ( (This)->lpVtbl -> put_LocalOscilatorFrequencyLowBand(This,ulLOFLow) ) + +#define IBDA_LNBInfo_get_LocalOscilatorFrequencyLowBand(This,pulLOFLow) \ + ( (This)->lpVtbl -> get_LocalOscilatorFrequencyLowBand(This,pulLOFLow) ) + +#define IBDA_LNBInfo_put_LocalOscilatorFrequencyHighBand(This,ulLOFHigh) \ + ( (This)->lpVtbl -> put_LocalOscilatorFrequencyHighBand(This,ulLOFHigh) ) + +#define IBDA_LNBInfo_get_LocalOscilatorFrequencyHighBand(This,pulLOFHigh) \ + ( (This)->lpVtbl -> get_LocalOscilatorFrequencyHighBand(This,pulLOFHigh) ) + +#define IBDA_LNBInfo_put_HighLowSwitchFrequency(This,ulSwitchFrequency) \ + ( (This)->lpVtbl -> put_HighLowSwitchFrequency(This,ulSwitchFrequency) ) + +#define IBDA_LNBInfo_get_HighLowSwitchFrequency(This,pulSwitchFrequency) \ + ( (This)->lpVtbl -> get_HighLowSwitchFrequency(This,pulSwitchFrequency) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_LNBInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_DiseqCommand_INTERFACE_DEFINED__ +#define __IBDA_DiseqCommand_INTERFACE_DEFINED__ + +/* interface IBDA_DiseqCommand */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_DiseqCommand; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F84E2AB0-3C6B-45e3-A0FC-8669D4B81F11") + IBDA_DiseqCommand : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE put_EnableDiseqCommands( + /* [in] */ BOOLEAN bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_DiseqLNBSource( + /* [in] */ ULONG ulLNBSource) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_DiseqUseToneBurst( + /* [in] */ BOOLEAN bUseToneBurst) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_DiseqRepeats( + /* [in] */ ULONG ulRepeats) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_DiseqSendCommand( + /* [in] */ ULONG ulRequestId, + /* [in] */ ULONG ulcbCommandLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbCommandLen) BYTE *pbCommand) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_DiseqResponse( + /* [in] */ ULONG ulRequestId, + /* [out][in] */ __RPC__inout ULONG *pulcbResponseLen, + /* [size_is][out][in] */ __RPC__inout_ecount_full(*pulcbResponseLen) BYTE pbResponse[ ]) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_DiseqCommandVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_DiseqCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_DiseqCommand * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_DiseqCommand * This); + + DECLSPEC_XFGVIRT(IBDA_DiseqCommand, put_EnableDiseqCommands) + HRESULT ( STDMETHODCALLTYPE *put_EnableDiseqCommands )( + __RPC__in IBDA_DiseqCommand * This, + /* [in] */ BOOLEAN bEnable); + + DECLSPEC_XFGVIRT(IBDA_DiseqCommand, put_DiseqLNBSource) + HRESULT ( STDMETHODCALLTYPE *put_DiseqLNBSource )( + __RPC__in IBDA_DiseqCommand * This, + /* [in] */ ULONG ulLNBSource); + + DECLSPEC_XFGVIRT(IBDA_DiseqCommand, put_DiseqUseToneBurst) + HRESULT ( STDMETHODCALLTYPE *put_DiseqUseToneBurst )( + __RPC__in IBDA_DiseqCommand * This, + /* [in] */ BOOLEAN bUseToneBurst); + + DECLSPEC_XFGVIRT(IBDA_DiseqCommand, put_DiseqRepeats) + HRESULT ( STDMETHODCALLTYPE *put_DiseqRepeats )( + __RPC__in IBDA_DiseqCommand * This, + /* [in] */ ULONG ulRepeats); + + DECLSPEC_XFGVIRT(IBDA_DiseqCommand, put_DiseqSendCommand) + HRESULT ( STDMETHODCALLTYPE *put_DiseqSendCommand )( + __RPC__in IBDA_DiseqCommand * This, + /* [in] */ ULONG ulRequestId, + /* [in] */ ULONG ulcbCommandLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbCommandLen) BYTE *pbCommand); + + DECLSPEC_XFGVIRT(IBDA_DiseqCommand, get_DiseqResponse) + HRESULT ( STDMETHODCALLTYPE *get_DiseqResponse )( + __RPC__in IBDA_DiseqCommand * This, + /* [in] */ ULONG ulRequestId, + /* [out][in] */ __RPC__inout ULONG *pulcbResponseLen, + /* [size_is][out][in] */ __RPC__inout_ecount_full(*pulcbResponseLen) BYTE pbResponse[ ]); + + END_INTERFACE + } IBDA_DiseqCommandVtbl; + + interface IBDA_DiseqCommand + { + CONST_VTBL struct IBDA_DiseqCommandVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_DiseqCommand_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_DiseqCommand_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_DiseqCommand_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_DiseqCommand_put_EnableDiseqCommands(This,bEnable) \ + ( (This)->lpVtbl -> put_EnableDiseqCommands(This,bEnable) ) + +#define IBDA_DiseqCommand_put_DiseqLNBSource(This,ulLNBSource) \ + ( (This)->lpVtbl -> put_DiseqLNBSource(This,ulLNBSource) ) + +#define IBDA_DiseqCommand_put_DiseqUseToneBurst(This,bUseToneBurst) \ + ( (This)->lpVtbl -> put_DiseqUseToneBurst(This,bUseToneBurst) ) + +#define IBDA_DiseqCommand_put_DiseqRepeats(This,ulRepeats) \ + ( (This)->lpVtbl -> put_DiseqRepeats(This,ulRepeats) ) + +#define IBDA_DiseqCommand_put_DiseqSendCommand(This,ulRequestId,ulcbCommandLen,pbCommand) \ + ( (This)->lpVtbl -> put_DiseqSendCommand(This,ulRequestId,ulcbCommandLen,pbCommand) ) + +#define IBDA_DiseqCommand_get_DiseqResponse(This,ulRequestId,pulcbResponseLen,pbResponse) \ + ( (This)->lpVtbl -> get_DiseqResponse(This,ulRequestId,pulcbResponseLen,pbResponse) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_DiseqCommand_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_AutoDemodulate_INTERFACE_DEFINED__ +#define __IBDA_AutoDemodulate_INTERFACE_DEFINED__ + +/* interface IBDA_AutoDemodulate */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_AutoDemodulate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DDF15B12-BD25-11d2-9CA0-00C04F7971E0") + IBDA_AutoDemodulate : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE put_AutoDemodulate( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_AutoDemodulateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_AutoDemodulate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_AutoDemodulate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_AutoDemodulate * This); + + DECLSPEC_XFGVIRT(IBDA_AutoDemodulate, put_AutoDemodulate) + HRESULT ( STDMETHODCALLTYPE *put_AutoDemodulate )( + __RPC__in IBDA_AutoDemodulate * This); + + END_INTERFACE + } IBDA_AutoDemodulateVtbl; + + interface IBDA_AutoDemodulate + { + CONST_VTBL struct IBDA_AutoDemodulateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_AutoDemodulate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_AutoDemodulate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_AutoDemodulate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_AutoDemodulate_put_AutoDemodulate(This) \ + ( (This)->lpVtbl -> put_AutoDemodulate(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_AutoDemodulate_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_AutoDemodulateEx_INTERFACE_DEFINED__ +#define __IBDA_AutoDemodulateEx_INTERFACE_DEFINED__ + +/* interface IBDA_AutoDemodulateEx */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_AutoDemodulateEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("34518D13-1182-48e6-B28F-B24987787326") + IBDA_AutoDemodulateEx : public IBDA_AutoDemodulate + { + public: + virtual HRESULT STDMETHODCALLTYPE get_SupportedDeviceNodeTypes( + /* [in] */ ULONG ulcDeviceNodeTypesMax, + /* [out] */ __RPC__out ULONG *pulcDeviceNodeTypes, + /* [out][in] */ __RPC__inout GUID *pguidDeviceNodeTypes) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_SupportedVideoFormats( + /* [out] */ __RPC__out ULONG *pulAMTunerModeType, + /* [out] */ __RPC__out ULONG *pulAnalogVideoStandard) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_AuxInputCount( + /* [out][in] */ __RPC__inout ULONG *pulCompositeCount, + /* [out][in] */ __RPC__inout ULONG *pulSvideoCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_AutoDemodulateExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_AutoDemodulateEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_AutoDemodulateEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_AutoDemodulateEx * This); + + DECLSPEC_XFGVIRT(IBDA_AutoDemodulate, put_AutoDemodulate) + HRESULT ( STDMETHODCALLTYPE *put_AutoDemodulate )( + __RPC__in IBDA_AutoDemodulateEx * This); + + DECLSPEC_XFGVIRT(IBDA_AutoDemodulateEx, get_SupportedDeviceNodeTypes) + HRESULT ( STDMETHODCALLTYPE *get_SupportedDeviceNodeTypes )( + __RPC__in IBDA_AutoDemodulateEx * This, + /* [in] */ ULONG ulcDeviceNodeTypesMax, + /* [out] */ __RPC__out ULONG *pulcDeviceNodeTypes, + /* [out][in] */ __RPC__inout GUID *pguidDeviceNodeTypes); + + DECLSPEC_XFGVIRT(IBDA_AutoDemodulateEx, get_SupportedVideoFormats) + HRESULT ( STDMETHODCALLTYPE *get_SupportedVideoFormats )( + __RPC__in IBDA_AutoDemodulateEx * This, + /* [out] */ __RPC__out ULONG *pulAMTunerModeType, + /* [out] */ __RPC__out ULONG *pulAnalogVideoStandard); + + DECLSPEC_XFGVIRT(IBDA_AutoDemodulateEx, get_AuxInputCount) + HRESULT ( STDMETHODCALLTYPE *get_AuxInputCount )( + __RPC__in IBDA_AutoDemodulateEx * This, + /* [out][in] */ __RPC__inout ULONG *pulCompositeCount, + /* [out][in] */ __RPC__inout ULONG *pulSvideoCount); + + END_INTERFACE + } IBDA_AutoDemodulateExVtbl; + + interface IBDA_AutoDemodulateEx + { + CONST_VTBL struct IBDA_AutoDemodulateExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_AutoDemodulateEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_AutoDemodulateEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_AutoDemodulateEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_AutoDemodulateEx_put_AutoDemodulate(This) \ + ( (This)->lpVtbl -> put_AutoDemodulate(This) ) + + +#define IBDA_AutoDemodulateEx_get_SupportedDeviceNodeTypes(This,ulcDeviceNodeTypesMax,pulcDeviceNodeTypes,pguidDeviceNodeTypes) \ + ( (This)->lpVtbl -> get_SupportedDeviceNodeTypes(This,ulcDeviceNodeTypesMax,pulcDeviceNodeTypes,pguidDeviceNodeTypes) ) + +#define IBDA_AutoDemodulateEx_get_SupportedVideoFormats(This,pulAMTunerModeType,pulAnalogVideoStandard) \ + ( (This)->lpVtbl -> get_SupportedVideoFormats(This,pulAMTunerModeType,pulAnalogVideoStandard) ) + +#define IBDA_AutoDemodulateEx_get_AuxInputCount(This,pulCompositeCount,pulSvideoCount) \ + ( (This)->lpVtbl -> get_AuxInputCount(This,pulCompositeCount,pulSvideoCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_AutoDemodulateEx_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_DigitalDemodulator_INTERFACE_DEFINED__ +#define __IBDA_DigitalDemodulator_INTERFACE_DEFINED__ + +/* interface IBDA_DigitalDemodulator */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_DigitalDemodulator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EF30F379-985B-4d10-B640-A79D5E04E1E0") + IBDA_DigitalDemodulator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE put_ModulationType( + /* [in] */ __RPC__in ModulationType *pModulationType) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_ModulationType( + /* [out][in] */ __RPC__inout ModulationType *pModulationType) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_InnerFECMethod( + /* [in] */ __RPC__in FECMethod *pFECMethod) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_InnerFECMethod( + /* [out][in] */ __RPC__inout FECMethod *pFECMethod) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_InnerFECRate( + /* [in] */ __RPC__in BinaryConvolutionCodeRate *pFECRate) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_InnerFECRate( + /* [out][in] */ __RPC__inout BinaryConvolutionCodeRate *pFECRate) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_OuterFECMethod( + /* [in] */ __RPC__in FECMethod *pFECMethod) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_OuterFECMethod( + /* [out][in] */ __RPC__inout FECMethod *pFECMethod) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_OuterFECRate( + /* [in] */ __RPC__in BinaryConvolutionCodeRate *pFECRate) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_OuterFECRate( + /* [out][in] */ __RPC__inout BinaryConvolutionCodeRate *pFECRate) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_SymbolRate( + /* [in] */ __RPC__in ULONG *pSymbolRate) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_SymbolRate( + /* [out][in] */ __RPC__inout ULONG *pSymbolRate) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_SpectralInversion( + /* [in] */ __RPC__in SpectralInversion *pSpectralInversion) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_SpectralInversion( + /* [out][in] */ __RPC__inout SpectralInversion *pSpectralInversion) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_DigitalDemodulatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_DigitalDemodulator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_DigitalDemodulator * This); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_ModulationType) + HRESULT ( STDMETHODCALLTYPE *put_ModulationType )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [in] */ __RPC__in ModulationType *pModulationType); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_ModulationType) + HRESULT ( STDMETHODCALLTYPE *get_ModulationType )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [out][in] */ __RPC__inout ModulationType *pModulationType); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_InnerFECMethod) + HRESULT ( STDMETHODCALLTYPE *put_InnerFECMethod )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [in] */ __RPC__in FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_InnerFECMethod) + HRESULT ( STDMETHODCALLTYPE *get_InnerFECMethod )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [out][in] */ __RPC__inout FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_InnerFECRate) + HRESULT ( STDMETHODCALLTYPE *put_InnerFECRate )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [in] */ __RPC__in BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_InnerFECRate) + HRESULT ( STDMETHODCALLTYPE *get_InnerFECRate )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [out][in] */ __RPC__inout BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_OuterFECMethod) + HRESULT ( STDMETHODCALLTYPE *put_OuterFECMethod )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [in] */ __RPC__in FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_OuterFECMethod) + HRESULT ( STDMETHODCALLTYPE *get_OuterFECMethod )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [out][in] */ __RPC__inout FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_OuterFECRate) + HRESULT ( STDMETHODCALLTYPE *put_OuterFECRate )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [in] */ __RPC__in BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_OuterFECRate) + HRESULT ( STDMETHODCALLTYPE *get_OuterFECRate )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [out][in] */ __RPC__inout BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_SymbolRate) + HRESULT ( STDMETHODCALLTYPE *put_SymbolRate )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [in] */ __RPC__in ULONG *pSymbolRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_SymbolRate) + HRESULT ( STDMETHODCALLTYPE *get_SymbolRate )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [out][in] */ __RPC__inout ULONG *pSymbolRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_SpectralInversion) + HRESULT ( STDMETHODCALLTYPE *put_SpectralInversion )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [in] */ __RPC__in SpectralInversion *pSpectralInversion); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_SpectralInversion) + HRESULT ( STDMETHODCALLTYPE *get_SpectralInversion )( + __RPC__in IBDA_DigitalDemodulator * This, + /* [out][in] */ __RPC__inout SpectralInversion *pSpectralInversion); + + END_INTERFACE + } IBDA_DigitalDemodulatorVtbl; + + interface IBDA_DigitalDemodulator + { + CONST_VTBL struct IBDA_DigitalDemodulatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_DigitalDemodulator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_DigitalDemodulator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_DigitalDemodulator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_DigitalDemodulator_put_ModulationType(This,pModulationType) \ + ( (This)->lpVtbl -> put_ModulationType(This,pModulationType) ) + +#define IBDA_DigitalDemodulator_get_ModulationType(This,pModulationType) \ + ( (This)->lpVtbl -> get_ModulationType(This,pModulationType) ) + +#define IBDA_DigitalDemodulator_put_InnerFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> put_InnerFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator_get_InnerFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> get_InnerFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator_put_InnerFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> put_InnerFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator_get_InnerFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> get_InnerFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator_put_OuterFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> put_OuterFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator_get_OuterFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> get_OuterFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator_put_OuterFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> put_OuterFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator_get_OuterFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> get_OuterFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator_put_SymbolRate(This,pSymbolRate) \ + ( (This)->lpVtbl -> put_SymbolRate(This,pSymbolRate) ) + +#define IBDA_DigitalDemodulator_get_SymbolRate(This,pSymbolRate) \ + ( (This)->lpVtbl -> get_SymbolRate(This,pSymbolRate) ) + +#define IBDA_DigitalDemodulator_put_SpectralInversion(This,pSpectralInversion) \ + ( (This)->lpVtbl -> put_SpectralInversion(This,pSpectralInversion) ) + +#define IBDA_DigitalDemodulator_get_SpectralInversion(This,pSpectralInversion) \ + ( (This)->lpVtbl -> get_SpectralInversion(This,pSpectralInversion) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_DigitalDemodulator_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_DigitalDemodulator2_INTERFACE_DEFINED__ +#define __IBDA_DigitalDemodulator2_INTERFACE_DEFINED__ + +/* interface IBDA_DigitalDemodulator2 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_DigitalDemodulator2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("525ED3EE-5CF3-4e1e-9A06-5368A84F9A6E") + IBDA_DigitalDemodulator2 : public IBDA_DigitalDemodulator + { + public: + virtual HRESULT STDMETHODCALLTYPE put_GuardInterval( + /* [in] */ __RPC__in GuardInterval *pGuardInterval) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_GuardInterval( + /* [out][in] */ __RPC__inout GuardInterval *pGuardInterval) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_TransmissionMode( + /* [in] */ __RPC__in TransmissionMode *pTransmissionMode) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_TransmissionMode( + /* [out][in] */ __RPC__inout TransmissionMode *pTransmissionMode) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_RollOff( + /* [in] */ __RPC__in RollOff *pRollOff) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_RollOff( + /* [out][in] */ __RPC__inout RollOff *pRollOff) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_Pilot( + /* [in] */ __RPC__in Pilot *pPilot) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_Pilot( + /* [out][in] */ __RPC__inout Pilot *pPilot) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_DigitalDemodulator2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_DigitalDemodulator2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_DigitalDemodulator2 * This); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_ModulationType) + HRESULT ( STDMETHODCALLTYPE *put_ModulationType )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in ModulationType *pModulationType); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_ModulationType) + HRESULT ( STDMETHODCALLTYPE *get_ModulationType )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout ModulationType *pModulationType); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_InnerFECMethod) + HRESULT ( STDMETHODCALLTYPE *put_InnerFECMethod )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_InnerFECMethod) + HRESULT ( STDMETHODCALLTYPE *get_InnerFECMethod )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_InnerFECRate) + HRESULT ( STDMETHODCALLTYPE *put_InnerFECRate )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_InnerFECRate) + HRESULT ( STDMETHODCALLTYPE *get_InnerFECRate )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_OuterFECMethod) + HRESULT ( STDMETHODCALLTYPE *put_OuterFECMethod )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_OuterFECMethod) + HRESULT ( STDMETHODCALLTYPE *get_OuterFECMethod )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_OuterFECRate) + HRESULT ( STDMETHODCALLTYPE *put_OuterFECRate )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_OuterFECRate) + HRESULT ( STDMETHODCALLTYPE *get_OuterFECRate )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_SymbolRate) + HRESULT ( STDMETHODCALLTYPE *put_SymbolRate )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in ULONG *pSymbolRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_SymbolRate) + HRESULT ( STDMETHODCALLTYPE *get_SymbolRate )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout ULONG *pSymbolRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_SpectralInversion) + HRESULT ( STDMETHODCALLTYPE *put_SpectralInversion )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in SpectralInversion *pSpectralInversion); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_SpectralInversion) + HRESULT ( STDMETHODCALLTYPE *get_SpectralInversion )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout SpectralInversion *pSpectralInversion); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, put_GuardInterval) + HRESULT ( STDMETHODCALLTYPE *put_GuardInterval )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in GuardInterval *pGuardInterval); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, get_GuardInterval) + HRESULT ( STDMETHODCALLTYPE *get_GuardInterval )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout GuardInterval *pGuardInterval); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, put_TransmissionMode) + HRESULT ( STDMETHODCALLTYPE *put_TransmissionMode )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in TransmissionMode *pTransmissionMode); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, get_TransmissionMode) + HRESULT ( STDMETHODCALLTYPE *get_TransmissionMode )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout TransmissionMode *pTransmissionMode); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, put_RollOff) + HRESULT ( STDMETHODCALLTYPE *put_RollOff )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in RollOff *pRollOff); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, get_RollOff) + HRESULT ( STDMETHODCALLTYPE *get_RollOff )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout RollOff *pRollOff); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, put_Pilot) + HRESULT ( STDMETHODCALLTYPE *put_Pilot )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [in] */ __RPC__in Pilot *pPilot); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, get_Pilot) + HRESULT ( STDMETHODCALLTYPE *get_Pilot )( + __RPC__in IBDA_DigitalDemodulator2 * This, + /* [out][in] */ __RPC__inout Pilot *pPilot); + + END_INTERFACE + } IBDA_DigitalDemodulator2Vtbl; + + interface IBDA_DigitalDemodulator2 + { + CONST_VTBL struct IBDA_DigitalDemodulator2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_DigitalDemodulator2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_DigitalDemodulator2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_DigitalDemodulator2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_DigitalDemodulator2_put_ModulationType(This,pModulationType) \ + ( (This)->lpVtbl -> put_ModulationType(This,pModulationType) ) + +#define IBDA_DigitalDemodulator2_get_ModulationType(This,pModulationType) \ + ( (This)->lpVtbl -> get_ModulationType(This,pModulationType) ) + +#define IBDA_DigitalDemodulator2_put_InnerFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> put_InnerFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator2_get_InnerFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> get_InnerFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator2_put_InnerFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> put_InnerFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator2_get_InnerFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> get_InnerFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator2_put_OuterFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> put_OuterFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator2_get_OuterFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> get_OuterFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator2_put_OuterFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> put_OuterFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator2_get_OuterFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> get_OuterFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator2_put_SymbolRate(This,pSymbolRate) \ + ( (This)->lpVtbl -> put_SymbolRate(This,pSymbolRate) ) + +#define IBDA_DigitalDemodulator2_get_SymbolRate(This,pSymbolRate) \ + ( (This)->lpVtbl -> get_SymbolRate(This,pSymbolRate) ) + +#define IBDA_DigitalDemodulator2_put_SpectralInversion(This,pSpectralInversion) \ + ( (This)->lpVtbl -> put_SpectralInversion(This,pSpectralInversion) ) + +#define IBDA_DigitalDemodulator2_get_SpectralInversion(This,pSpectralInversion) \ + ( (This)->lpVtbl -> get_SpectralInversion(This,pSpectralInversion) ) + + +#define IBDA_DigitalDemodulator2_put_GuardInterval(This,pGuardInterval) \ + ( (This)->lpVtbl -> put_GuardInterval(This,pGuardInterval) ) + +#define IBDA_DigitalDemodulator2_get_GuardInterval(This,pGuardInterval) \ + ( (This)->lpVtbl -> get_GuardInterval(This,pGuardInterval) ) + +#define IBDA_DigitalDemodulator2_put_TransmissionMode(This,pTransmissionMode) \ + ( (This)->lpVtbl -> put_TransmissionMode(This,pTransmissionMode) ) + +#define IBDA_DigitalDemodulator2_get_TransmissionMode(This,pTransmissionMode) \ + ( (This)->lpVtbl -> get_TransmissionMode(This,pTransmissionMode) ) + +#define IBDA_DigitalDemodulator2_put_RollOff(This,pRollOff) \ + ( (This)->lpVtbl -> put_RollOff(This,pRollOff) ) + +#define IBDA_DigitalDemodulator2_get_RollOff(This,pRollOff) \ + ( (This)->lpVtbl -> get_RollOff(This,pRollOff) ) + +#define IBDA_DigitalDemodulator2_put_Pilot(This,pPilot) \ + ( (This)->lpVtbl -> put_Pilot(This,pPilot) ) + +#define IBDA_DigitalDemodulator2_get_Pilot(This,pPilot) \ + ( (This)->lpVtbl -> get_Pilot(This,pPilot) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_DigitalDemodulator2_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_DigitalDemodulator3_INTERFACE_DEFINED__ +#define __IBDA_DigitalDemodulator3_INTERFACE_DEFINED__ + +/* interface IBDA_DigitalDemodulator3 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_DigitalDemodulator3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("13F19604-7D32-4359-93A2-A05205D90AC9") + IBDA_DigitalDemodulator3 : public IBDA_DigitalDemodulator2 + { + public: + virtual HRESULT STDMETHODCALLTYPE put_SignalTimeouts( + /* [in] */ __RPC__in BDA_SIGNAL_TIMEOUTS *pSignalTimeouts) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_SignalTimeouts( + /* [out][in] */ __RPC__inout BDA_SIGNAL_TIMEOUTS *pSignalTimeouts) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_PLPNumber( + /* [in] */ __RPC__in ULONG *pPLPNumber) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_PLPNumber( + /* [out][in] */ __RPC__inout ULONG *pPLPNumber) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_DigitalDemodulator3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_DigitalDemodulator3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_DigitalDemodulator3 * This); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_ModulationType) + HRESULT ( STDMETHODCALLTYPE *put_ModulationType )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in ModulationType *pModulationType); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_ModulationType) + HRESULT ( STDMETHODCALLTYPE *get_ModulationType )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout ModulationType *pModulationType); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_InnerFECMethod) + HRESULT ( STDMETHODCALLTYPE *put_InnerFECMethod )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_InnerFECMethod) + HRESULT ( STDMETHODCALLTYPE *get_InnerFECMethod )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_InnerFECRate) + HRESULT ( STDMETHODCALLTYPE *put_InnerFECRate )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_InnerFECRate) + HRESULT ( STDMETHODCALLTYPE *get_InnerFECRate )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_OuterFECMethod) + HRESULT ( STDMETHODCALLTYPE *put_OuterFECMethod )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_OuterFECMethod) + HRESULT ( STDMETHODCALLTYPE *get_OuterFECMethod )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout FECMethod *pFECMethod); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_OuterFECRate) + HRESULT ( STDMETHODCALLTYPE *put_OuterFECRate )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_OuterFECRate) + HRESULT ( STDMETHODCALLTYPE *get_OuterFECRate )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout BinaryConvolutionCodeRate *pFECRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_SymbolRate) + HRESULT ( STDMETHODCALLTYPE *put_SymbolRate )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in ULONG *pSymbolRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_SymbolRate) + HRESULT ( STDMETHODCALLTYPE *get_SymbolRate )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout ULONG *pSymbolRate); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, put_SpectralInversion) + HRESULT ( STDMETHODCALLTYPE *put_SpectralInversion )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in SpectralInversion *pSpectralInversion); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator, get_SpectralInversion) + HRESULT ( STDMETHODCALLTYPE *get_SpectralInversion )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout SpectralInversion *pSpectralInversion); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, put_GuardInterval) + HRESULT ( STDMETHODCALLTYPE *put_GuardInterval )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in GuardInterval *pGuardInterval); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, get_GuardInterval) + HRESULT ( STDMETHODCALLTYPE *get_GuardInterval )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout GuardInterval *pGuardInterval); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, put_TransmissionMode) + HRESULT ( STDMETHODCALLTYPE *put_TransmissionMode )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in TransmissionMode *pTransmissionMode); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, get_TransmissionMode) + HRESULT ( STDMETHODCALLTYPE *get_TransmissionMode )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout TransmissionMode *pTransmissionMode); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, put_RollOff) + HRESULT ( STDMETHODCALLTYPE *put_RollOff )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in RollOff *pRollOff); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, get_RollOff) + HRESULT ( STDMETHODCALLTYPE *get_RollOff )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout RollOff *pRollOff); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, put_Pilot) + HRESULT ( STDMETHODCALLTYPE *put_Pilot )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in Pilot *pPilot); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator2, get_Pilot) + HRESULT ( STDMETHODCALLTYPE *get_Pilot )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout Pilot *pPilot); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator3, put_SignalTimeouts) + HRESULT ( STDMETHODCALLTYPE *put_SignalTimeouts )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in BDA_SIGNAL_TIMEOUTS *pSignalTimeouts); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator3, get_SignalTimeouts) + HRESULT ( STDMETHODCALLTYPE *get_SignalTimeouts )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout BDA_SIGNAL_TIMEOUTS *pSignalTimeouts); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator3, put_PLPNumber) + HRESULT ( STDMETHODCALLTYPE *put_PLPNumber )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [in] */ __RPC__in ULONG *pPLPNumber); + + DECLSPEC_XFGVIRT(IBDA_DigitalDemodulator3, get_PLPNumber) + HRESULT ( STDMETHODCALLTYPE *get_PLPNumber )( + __RPC__in IBDA_DigitalDemodulator3 * This, + /* [out][in] */ __RPC__inout ULONG *pPLPNumber); + + END_INTERFACE + } IBDA_DigitalDemodulator3Vtbl; + + interface IBDA_DigitalDemodulator3 + { + CONST_VTBL struct IBDA_DigitalDemodulator3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_DigitalDemodulator3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_DigitalDemodulator3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_DigitalDemodulator3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_DigitalDemodulator3_put_ModulationType(This,pModulationType) \ + ( (This)->lpVtbl -> put_ModulationType(This,pModulationType) ) + +#define IBDA_DigitalDemodulator3_get_ModulationType(This,pModulationType) \ + ( (This)->lpVtbl -> get_ModulationType(This,pModulationType) ) + +#define IBDA_DigitalDemodulator3_put_InnerFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> put_InnerFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator3_get_InnerFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> get_InnerFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator3_put_InnerFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> put_InnerFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator3_get_InnerFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> get_InnerFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator3_put_OuterFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> put_OuterFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator3_get_OuterFECMethod(This,pFECMethod) \ + ( (This)->lpVtbl -> get_OuterFECMethod(This,pFECMethod) ) + +#define IBDA_DigitalDemodulator3_put_OuterFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> put_OuterFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator3_get_OuterFECRate(This,pFECRate) \ + ( (This)->lpVtbl -> get_OuterFECRate(This,pFECRate) ) + +#define IBDA_DigitalDemodulator3_put_SymbolRate(This,pSymbolRate) \ + ( (This)->lpVtbl -> put_SymbolRate(This,pSymbolRate) ) + +#define IBDA_DigitalDemodulator3_get_SymbolRate(This,pSymbolRate) \ + ( (This)->lpVtbl -> get_SymbolRate(This,pSymbolRate) ) + +#define IBDA_DigitalDemodulator3_put_SpectralInversion(This,pSpectralInversion) \ + ( (This)->lpVtbl -> put_SpectralInversion(This,pSpectralInversion) ) + +#define IBDA_DigitalDemodulator3_get_SpectralInversion(This,pSpectralInversion) \ + ( (This)->lpVtbl -> get_SpectralInversion(This,pSpectralInversion) ) + + +#define IBDA_DigitalDemodulator3_put_GuardInterval(This,pGuardInterval) \ + ( (This)->lpVtbl -> put_GuardInterval(This,pGuardInterval) ) + +#define IBDA_DigitalDemodulator3_get_GuardInterval(This,pGuardInterval) \ + ( (This)->lpVtbl -> get_GuardInterval(This,pGuardInterval) ) + +#define IBDA_DigitalDemodulator3_put_TransmissionMode(This,pTransmissionMode) \ + ( (This)->lpVtbl -> put_TransmissionMode(This,pTransmissionMode) ) + +#define IBDA_DigitalDemodulator3_get_TransmissionMode(This,pTransmissionMode) \ + ( (This)->lpVtbl -> get_TransmissionMode(This,pTransmissionMode) ) + +#define IBDA_DigitalDemodulator3_put_RollOff(This,pRollOff) \ + ( (This)->lpVtbl -> put_RollOff(This,pRollOff) ) + +#define IBDA_DigitalDemodulator3_get_RollOff(This,pRollOff) \ + ( (This)->lpVtbl -> get_RollOff(This,pRollOff) ) + +#define IBDA_DigitalDemodulator3_put_Pilot(This,pPilot) \ + ( (This)->lpVtbl -> put_Pilot(This,pPilot) ) + +#define IBDA_DigitalDemodulator3_get_Pilot(This,pPilot) \ + ( (This)->lpVtbl -> get_Pilot(This,pPilot) ) + + +#define IBDA_DigitalDemodulator3_put_SignalTimeouts(This,pSignalTimeouts) \ + ( (This)->lpVtbl -> put_SignalTimeouts(This,pSignalTimeouts) ) + +#define IBDA_DigitalDemodulator3_get_SignalTimeouts(This,pSignalTimeouts) \ + ( (This)->lpVtbl -> get_SignalTimeouts(This,pSignalTimeouts) ) + +#define IBDA_DigitalDemodulator3_put_PLPNumber(This,pPLPNumber) \ + ( (This)->lpVtbl -> put_PLPNumber(This,pPLPNumber) ) + +#define IBDA_DigitalDemodulator3_get_PLPNumber(This,pPLPNumber) \ + ( (This)->lpVtbl -> get_PLPNumber(This,pPLPNumber) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_DigitalDemodulator3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0019 */ +/* [local] */ + +typedef /* [public] */ +enum __MIDL___MIDL_itf_bdaiface_0000_0019_0001 + { + KSPROPERTY_IPSINK_MULTICASTLIST = 0, + KSPROPERTY_IPSINK_ADAPTER_DESCRIPTION = ( KSPROPERTY_IPSINK_MULTICASTLIST + 1 ) , + KSPROPERTY_IPSINK_ADAPTER_ADDRESS = ( KSPROPERTY_IPSINK_ADAPTER_DESCRIPTION + 1 ) + } KSPROPERTY_IPSINK; + + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0019_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0019_v0_0_s_ifspec; + +#ifndef __ICCSubStreamFiltering_INTERFACE_DEFINED__ +#define __ICCSubStreamFiltering_INTERFACE_DEFINED__ + +/* interface ICCSubStreamFiltering */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICCSubStreamFiltering; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4B2BD7EA-8347-467b-8DBF-62F784929CC3") + ICCSubStreamFiltering : public IUnknown + { + public: + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SubstreamTypes( + /* [retval][out] */ __RPC__out long *pTypes) = 0; + + virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_SubstreamTypes( + /* [in] */ long Types) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICCSubStreamFilteringVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICCSubStreamFiltering * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICCSubStreamFiltering * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICCSubStreamFiltering * This); + + DECLSPEC_XFGVIRT(ICCSubStreamFiltering, get_SubstreamTypes) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubstreamTypes )( + __RPC__in ICCSubStreamFiltering * This, + /* [retval][out] */ __RPC__out long *pTypes); + + DECLSPEC_XFGVIRT(ICCSubStreamFiltering, put_SubstreamTypes) + /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SubstreamTypes )( + __RPC__in ICCSubStreamFiltering * This, + /* [in] */ long Types); + + END_INTERFACE + } ICCSubStreamFilteringVtbl; + + interface ICCSubStreamFiltering + { + CONST_VTBL struct ICCSubStreamFilteringVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICCSubStreamFiltering_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICCSubStreamFiltering_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICCSubStreamFiltering_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICCSubStreamFiltering_get_SubstreamTypes(This,pTypes) \ + ( (This)->lpVtbl -> get_SubstreamTypes(This,pTypes) ) + +#define ICCSubStreamFiltering_put_SubstreamTypes(This,Types) \ + ( (This)->lpVtbl -> put_SubstreamTypes(This,Types) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICCSubStreamFiltering_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_IPSinkControl_INTERFACE_DEFINED__ +#define __IBDA_IPSinkControl_INTERFACE_DEFINED__ + +/* interface IBDA_IPSinkControl */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_IPSinkControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3F4DC8E2-4050-11d3-8F4B-00C04F7971E2") + IBDA_IPSinkControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetMulticastList( + /* [out][in] */ __RPC__inout unsigned long *pulcbSize, + /* [out][in] */ __RPC__deref_inout_opt BYTE **pbBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAdapterIPAddress( + /* [out][in] */ __RPC__inout unsigned long *pulcbSize, + /* [out][in] */ __RPC__deref_inout_opt BYTE **pbBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_IPSinkControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_IPSinkControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_IPSinkControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_IPSinkControl * This); + + DECLSPEC_XFGVIRT(IBDA_IPSinkControl, GetMulticastList) + HRESULT ( STDMETHODCALLTYPE *GetMulticastList )( + __RPC__in IBDA_IPSinkControl * This, + /* [out][in] */ __RPC__inout unsigned long *pulcbSize, + /* [out][in] */ __RPC__deref_inout_opt BYTE **pbBuffer); + + DECLSPEC_XFGVIRT(IBDA_IPSinkControl, GetAdapterIPAddress) + HRESULT ( STDMETHODCALLTYPE *GetAdapterIPAddress )( + __RPC__in IBDA_IPSinkControl * This, + /* [out][in] */ __RPC__inout unsigned long *pulcbSize, + /* [out][in] */ __RPC__deref_inout_opt BYTE **pbBuffer); + + END_INTERFACE + } IBDA_IPSinkControlVtbl; + + interface IBDA_IPSinkControl + { + CONST_VTBL struct IBDA_IPSinkControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_IPSinkControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_IPSinkControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_IPSinkControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_IPSinkControl_GetMulticastList(This,pulcbSize,pbBuffer) \ + ( (This)->lpVtbl -> GetMulticastList(This,pulcbSize,pbBuffer) ) + +#define IBDA_IPSinkControl_GetAdapterIPAddress(This,pulcbSize,pbBuffer) \ + ( (This)->lpVtbl -> GetAdapterIPAddress(This,pulcbSize,pbBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_IPSinkControl_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_IPSinkInfo_INTERFACE_DEFINED__ +#define __IBDA_IPSinkInfo_INTERFACE_DEFINED__ + +/* interface IBDA_IPSinkInfo */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_IPSinkInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A750108F-492E-4d51-95F7-649B23FF7AD7") + IBDA_IPSinkInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE get_MulticastList( + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses, + /* [size_is][out] */ __RPC__out_ecount_full(*pulcbAddresses) BYTE **ppbAddressList) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_AdapterIPAddress( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_AdapterDescription( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_IPSinkInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_IPSinkInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_IPSinkInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_IPSinkInfo * This); + + DECLSPEC_XFGVIRT(IBDA_IPSinkInfo, get_MulticastList) + HRESULT ( STDMETHODCALLTYPE *get_MulticastList )( + __RPC__in IBDA_IPSinkInfo * This, + /* [out][in] */ __RPC__inout ULONG *pulcbAddresses, + /* [size_is][out] */ __RPC__out_ecount_full(*pulcbAddresses) BYTE **ppbAddressList); + + DECLSPEC_XFGVIRT(IBDA_IPSinkInfo, get_AdapterIPAddress) + HRESULT ( STDMETHODCALLTYPE *get_AdapterIPAddress )( + __RPC__in IBDA_IPSinkInfo * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrBuffer); + + DECLSPEC_XFGVIRT(IBDA_IPSinkInfo, get_AdapterDescription) + HRESULT ( STDMETHODCALLTYPE *get_AdapterDescription )( + __RPC__in IBDA_IPSinkInfo * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrBuffer); + + END_INTERFACE + } IBDA_IPSinkInfoVtbl; + + interface IBDA_IPSinkInfo + { + CONST_VTBL struct IBDA_IPSinkInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_IPSinkInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_IPSinkInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_IPSinkInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_IPSinkInfo_get_MulticastList(This,pulcbAddresses,ppbAddressList) \ + ( (This)->lpVtbl -> get_MulticastList(This,pulcbAddresses,ppbAddressList) ) + +#define IBDA_IPSinkInfo_get_AdapterIPAddress(This,pbstrBuffer) \ + ( (This)->lpVtbl -> get_AdapterIPAddress(This,pbstrBuffer) ) + +#define IBDA_IPSinkInfo_get_AdapterDescription(This,pbstrBuffer) \ + ( (This)->lpVtbl -> get_AdapterDescription(This,pbstrBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_IPSinkInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumPIDMap_INTERFACE_DEFINED__ +#define __IEnumPIDMap_INTERFACE_DEFINED__ + +/* interface IEnumPIDMap */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumPIDMap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("afb6c2a2-2c41-11d3-8a60-0000f81e0e4a") + IEnumPIDMap : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG cRequest, + /* [size_is][out][in] */ __RPC__inout_ecount_full(cRequest) PID_MAP *pPIDMap, + /* [out] */ __RPC__out ULONG *pcReceived) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG cRecords) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumPIDMap **ppIEnumPIDMap) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumPIDMapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumPIDMap * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumPIDMap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumPIDMap * This); + + DECLSPEC_XFGVIRT(IEnumPIDMap, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumPIDMap * This, + /* [in] */ ULONG cRequest, + /* [size_is][out][in] */ __RPC__inout_ecount_full(cRequest) PID_MAP *pPIDMap, + /* [out] */ __RPC__out ULONG *pcReceived); + + DECLSPEC_XFGVIRT(IEnumPIDMap, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumPIDMap * This, + /* [in] */ ULONG cRecords); + + DECLSPEC_XFGVIRT(IEnumPIDMap, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumPIDMap * This); + + DECLSPEC_XFGVIRT(IEnumPIDMap, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumPIDMap * This, + /* [out] */ __RPC__deref_out_opt IEnumPIDMap **ppIEnumPIDMap); + + END_INTERFACE + } IEnumPIDMapVtbl; + + interface IEnumPIDMap + { + CONST_VTBL struct IEnumPIDMapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumPIDMap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumPIDMap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumPIDMap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumPIDMap_Next(This,cRequest,pPIDMap,pcReceived) \ + ( (This)->lpVtbl -> Next(This,cRequest,pPIDMap,pcReceived) ) + +#define IEnumPIDMap_Skip(This,cRecords) \ + ( (This)->lpVtbl -> Skip(This,cRecords) ) + +#define IEnumPIDMap_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumPIDMap_Clone(This,ppIEnumPIDMap) \ + ( (This)->lpVtbl -> Clone(This,ppIEnumPIDMap) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumPIDMap_INTERFACE_DEFINED__ */ + + +#ifndef __IMPEG2PIDMap_INTERFACE_DEFINED__ +#define __IMPEG2PIDMap_INTERFACE_DEFINED__ + +/* interface IMPEG2PIDMap */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IMPEG2PIDMap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("afb6c2a1-2c41-11d3-8a60-0000f81e0e4a") + IMPEG2PIDMap : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE MapPID( + /* [in] */ ULONG culPID, + /* [in] */ __RPC__in ULONG *pulPID, + /* [in] */ MEDIA_SAMPLE_CONTENT MediaSampleContent) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnmapPID( + /* [in] */ ULONG culPID, + /* [in] */ __RPC__in ULONG *pulPID) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumPIDMap( + /* [out] */ __RPC__deref_out_opt IEnumPIDMap **pIEnumPIDMap) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMPEG2PIDMapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMPEG2PIDMap * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMPEG2PIDMap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMPEG2PIDMap * This); + + DECLSPEC_XFGVIRT(IMPEG2PIDMap, MapPID) + HRESULT ( STDMETHODCALLTYPE *MapPID )( + __RPC__in IMPEG2PIDMap * This, + /* [in] */ ULONG culPID, + /* [in] */ __RPC__in ULONG *pulPID, + /* [in] */ MEDIA_SAMPLE_CONTENT MediaSampleContent); + + DECLSPEC_XFGVIRT(IMPEG2PIDMap, UnmapPID) + HRESULT ( STDMETHODCALLTYPE *UnmapPID )( + __RPC__in IMPEG2PIDMap * This, + /* [in] */ ULONG culPID, + /* [in] */ __RPC__in ULONG *pulPID); + + DECLSPEC_XFGVIRT(IMPEG2PIDMap, EnumPIDMap) + HRESULT ( STDMETHODCALLTYPE *EnumPIDMap )( + __RPC__in IMPEG2PIDMap * This, + /* [out] */ __RPC__deref_out_opt IEnumPIDMap **pIEnumPIDMap); + + END_INTERFACE + } IMPEG2PIDMapVtbl; + + interface IMPEG2PIDMap + { + CONST_VTBL struct IMPEG2PIDMapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMPEG2PIDMap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMPEG2PIDMap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMPEG2PIDMap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMPEG2PIDMap_MapPID(This,culPID,pulPID,MediaSampleContent) \ + ( (This)->lpVtbl -> MapPID(This,culPID,pulPID,MediaSampleContent) ) + +#define IMPEG2PIDMap_UnmapPID(This,culPID,pulPID) \ + ( (This)->lpVtbl -> UnmapPID(This,culPID,pulPID) ) + +#define IMPEG2PIDMap_EnumPIDMap(This,pIEnumPIDMap) \ + ( (This)->lpVtbl -> EnumPIDMap(This,pIEnumPIDMap) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMPEG2PIDMap_INTERFACE_DEFINED__ */ + + +#ifndef __IFrequencyMap_INTERFACE_DEFINED__ +#define __IFrequencyMap_INTERFACE_DEFINED__ + +/* interface IFrequencyMap */ +/* [restricted][hidden][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFrequencyMap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("06FB45C1-693C-4ea7-B79F-7A6A54D8DEF2") + IFrequencyMap : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_FrequencyMapping( + /* [out] */ __RPC__out ULONG *ulCount, + /* [size_is][size_is][out] */ __RPC__out_ecount_full(1) ULONG **ppulList) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE put_FrequencyMapping( + /* [in] */ ULONG ulCount, + /* [size_is][in] */ __RPC__in_ecount_full(ulCount) ULONG pList[ ]) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_CountryCode( + /* [out] */ __RPC__out ULONG *pulCountryCode) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE put_CountryCode( + /* [in] */ ULONG ulCountryCode) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_DefaultFrequencyMapping( + /* [in] */ ULONG ulCountryCode, + /* [out] */ __RPC__out ULONG *pulCount, + /* [size_is][size_is][out] */ __RPC__out_ecount_full(1) ULONG **ppulList) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_CountryCodeList( + /* [out] */ __RPC__out ULONG *pulCount, + /* [size_is][size_is][out] */ __RPC__out_ecount_full(1) ULONG **ppulList) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFrequencyMapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFrequencyMap * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFrequencyMap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFrequencyMap * This); + + DECLSPEC_XFGVIRT(IFrequencyMap, get_FrequencyMapping) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_FrequencyMapping )( + __RPC__in IFrequencyMap * This, + /* [out] */ __RPC__out ULONG *ulCount, + /* [size_is][size_is][out] */ __RPC__out_ecount_full(1) ULONG **ppulList); + + DECLSPEC_XFGVIRT(IFrequencyMap, put_FrequencyMapping) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *put_FrequencyMapping )( + __RPC__in IFrequencyMap * This, + /* [in] */ ULONG ulCount, + /* [size_is][in] */ __RPC__in_ecount_full(ulCount) ULONG pList[ ]); + + DECLSPEC_XFGVIRT(IFrequencyMap, get_CountryCode) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_CountryCode )( + __RPC__in IFrequencyMap * This, + /* [out] */ __RPC__out ULONG *pulCountryCode); + + DECLSPEC_XFGVIRT(IFrequencyMap, put_CountryCode) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *put_CountryCode )( + __RPC__in IFrequencyMap * This, + /* [in] */ ULONG ulCountryCode); + + DECLSPEC_XFGVIRT(IFrequencyMap, get_DefaultFrequencyMapping) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultFrequencyMapping )( + __RPC__in IFrequencyMap * This, + /* [in] */ ULONG ulCountryCode, + /* [out] */ __RPC__out ULONG *pulCount, + /* [size_is][size_is][out] */ __RPC__out_ecount_full(1) ULONG **ppulList); + + DECLSPEC_XFGVIRT(IFrequencyMap, get_CountryCodeList) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_CountryCodeList )( + __RPC__in IFrequencyMap * This, + /* [out] */ __RPC__out ULONG *pulCount, + /* [size_is][size_is][out] */ __RPC__out_ecount_full(1) ULONG **ppulList); + + END_INTERFACE + } IFrequencyMapVtbl; + + interface IFrequencyMap + { + CONST_VTBL struct IFrequencyMapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFrequencyMap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFrequencyMap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFrequencyMap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFrequencyMap_get_FrequencyMapping(This,ulCount,ppulList) \ + ( (This)->lpVtbl -> get_FrequencyMapping(This,ulCount,ppulList) ) + +#define IFrequencyMap_put_FrequencyMapping(This,ulCount,pList) \ + ( (This)->lpVtbl -> put_FrequencyMapping(This,ulCount,pList) ) + +#define IFrequencyMap_get_CountryCode(This,pulCountryCode) \ + ( (This)->lpVtbl -> get_CountryCode(This,pulCountryCode) ) + +#define IFrequencyMap_put_CountryCode(This,ulCountryCode) \ + ( (This)->lpVtbl -> put_CountryCode(This,ulCountryCode) ) + +#define IFrequencyMap_get_DefaultFrequencyMapping(This,ulCountryCode,pulCount,ppulList) \ + ( (This)->lpVtbl -> get_DefaultFrequencyMapping(This,ulCountryCode,pulCount,ppulList) ) + +#define IFrequencyMap_get_CountryCodeList(This,pulCount,ppulList) \ + ( (This)->lpVtbl -> get_CountryCodeList(This,pulCount,ppulList) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFrequencyMap_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_EasMessage_INTERFACE_DEFINED__ +#define __IBDA_EasMessage_INTERFACE_DEFINED__ + +/* interface IBDA_EasMessage */ +/* [restricted][hidden][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_EasMessage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D806973D-3EBE-46de-8FBB-6358FE784208") + IBDA_EasMessage : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_EasMessage( + /* [in] */ ULONG ulEventID, + /* [out][in] */ __RPC__deref_inout_opt IUnknown **ppEASObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_EasMessageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_EasMessage * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_EasMessage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_EasMessage * This); + + DECLSPEC_XFGVIRT(IBDA_EasMessage, get_EasMessage) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_EasMessage )( + __RPC__in IBDA_EasMessage * This, + /* [in] */ ULONG ulEventID, + /* [out][in] */ __RPC__deref_inout_opt IUnknown **ppEASObject); + + END_INTERFACE + } IBDA_EasMessageVtbl; + + interface IBDA_EasMessage + { + CONST_VTBL struct IBDA_EasMessageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_EasMessage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_EasMessage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_EasMessage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_EasMessage_get_EasMessage(This,ulEventID,ppEASObject) \ + ( (This)->lpVtbl -> get_EasMessage(This,ulEventID,ppEASObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_EasMessage_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0026 */ +/* [local] */ + +#define SID_BDA_EasMessage __uuidof(IBDA_EasMessage) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0026_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0026_v0_0_s_ifspec; + +#ifndef __IBDA_TransportStreamInfo_INTERFACE_DEFINED__ +#define __IBDA_TransportStreamInfo_INTERFACE_DEFINED__ + +/* interface IBDA_TransportStreamInfo */ +/* [restricted][hidden][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_TransportStreamInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8E882535-5F86-47AB-86CF-C281A72A0549") + IBDA_TransportStreamInfo : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_PatTableTickCount( + /* [out] */ __RPC__out ULONG *pPatTickCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_TransportStreamInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_TransportStreamInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_TransportStreamInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_TransportStreamInfo * This); + + DECLSPEC_XFGVIRT(IBDA_TransportStreamInfo, get_PatTableTickCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_PatTableTickCount )( + __RPC__in IBDA_TransportStreamInfo * This, + /* [out] */ __RPC__out ULONG *pPatTickCount); + + END_INTERFACE + } IBDA_TransportStreamInfoVtbl; + + interface IBDA_TransportStreamInfo + { + CONST_VTBL struct IBDA_TransportStreamInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_TransportStreamInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_TransportStreamInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_TransportStreamInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_TransportStreamInfo_get_PatTableTickCount(This,pPatTickCount) \ + ( (This)->lpVtbl -> get_PatTableTickCount(This,pPatTickCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_TransportStreamInfo_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0027 */ +/* [local] */ + +#define SID_BDA_TransportStreamInfo __uuidof(IBDA_TransportStreamInfo) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0027_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0027_v0_0_s_ifspec; + +#ifndef __IBDA_ConditionalAccess_INTERFACE_DEFINED__ +#define __IBDA_ConditionalAccess_INTERFACE_DEFINED__ + +/* interface IBDA_ConditionalAccess */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_ConditionalAccess; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD51F1E0-7BE9-4123-8482-A2A796C0A6B0") + IBDA_ConditionalAccess : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_SmartCardStatus( + /* [out] */ __RPC__out SmartCardStatusType *pCardStatus, + /* [out] */ __RPC__out SmartCardAssociationType *pCardAssociation, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrCardError, + /* [out] */ __RPC__out VARIANT_BOOL *pfOOBLocked) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_SmartCardInfo( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrCardName, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrCardManufacturer, + /* [out] */ __RPC__out VARIANT_BOOL *pfDaylightSavings, + /* [out] */ __RPC__out BYTE *pbyRatingRegion, + /* [out] */ __RPC__out LONG *plTimeZoneOffsetMinutes, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLanguage, + /* [out] */ __RPC__out EALocationCodeType *pEALocationCode) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_SmartCardApplications( + /* [out][in] */ __RPC__inout ULONG *pulcApplications, + /* [in] */ ULONG ulcApplicationsMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcApplicationsMax) SmartCardApplication rgApplications[ ]) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_Entitlement( + /* [in] */ USHORT usVirtualChannel, + /* [out] */ __RPC__out EntitlementType *pEntitlement) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE TuneByChannel( + /* [in] */ USHORT usVirtualChannel) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetProgram( + /* [in] */ USHORT usProgramNumber) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddProgram( + /* [in] */ USHORT usProgramNumber) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RemoveProgram( + /* [in] */ USHORT usProgramNumber) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetModuleUI( + /* [in] */ BYTE byDialogNumber, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrURL) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE InformUIClosed( + /* [in] */ BYTE byDialogNumber, + /* [in] */ UICloseReasonType CloseReason) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_ConditionalAccessVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_ConditionalAccess * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_ConditionalAccess * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_ConditionalAccess * This); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccess, get_SmartCardStatus) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_SmartCardStatus )( + __RPC__in IBDA_ConditionalAccess * This, + /* [out] */ __RPC__out SmartCardStatusType *pCardStatus, + /* [out] */ __RPC__out SmartCardAssociationType *pCardAssociation, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrCardError, + /* [out] */ __RPC__out VARIANT_BOOL *pfOOBLocked); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccess, get_SmartCardInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_SmartCardInfo )( + __RPC__in IBDA_ConditionalAccess * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrCardName, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrCardManufacturer, + /* [out] */ __RPC__out VARIANT_BOOL *pfDaylightSavings, + /* [out] */ __RPC__out BYTE *pbyRatingRegion, + /* [out] */ __RPC__out LONG *plTimeZoneOffsetMinutes, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrLanguage, + /* [out] */ __RPC__out EALocationCodeType *pEALocationCode); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccess, get_SmartCardApplications) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_SmartCardApplications )( + __RPC__in IBDA_ConditionalAccess * This, + /* [out][in] */ __RPC__inout ULONG *pulcApplications, + /* [in] */ ULONG ulcApplicationsMax, + /* [size_is][out][in] */ __RPC__inout_ecount_full(ulcApplicationsMax) SmartCardApplication rgApplications[ ]); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccess, get_Entitlement) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_Entitlement )( + __RPC__in IBDA_ConditionalAccess * This, + /* [in] */ USHORT usVirtualChannel, + /* [out] */ __RPC__out EntitlementType *pEntitlement); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccess, TuneByChannel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *TuneByChannel )( + __RPC__in IBDA_ConditionalAccess * This, + /* [in] */ USHORT usVirtualChannel); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccess, SetProgram) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetProgram )( + __RPC__in IBDA_ConditionalAccess * This, + /* [in] */ USHORT usProgramNumber); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccess, AddProgram) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddProgram )( + __RPC__in IBDA_ConditionalAccess * This, + /* [in] */ USHORT usProgramNumber); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccess, RemoveProgram) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveProgram )( + __RPC__in IBDA_ConditionalAccess * This, + /* [in] */ USHORT usProgramNumber); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccess, GetModuleUI) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetModuleUI )( + __RPC__in IBDA_ConditionalAccess * This, + /* [in] */ BYTE byDialogNumber, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrURL); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccess, InformUIClosed) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *InformUIClosed )( + __RPC__in IBDA_ConditionalAccess * This, + /* [in] */ BYTE byDialogNumber, + /* [in] */ UICloseReasonType CloseReason); + + END_INTERFACE + } IBDA_ConditionalAccessVtbl; + + interface IBDA_ConditionalAccess + { + CONST_VTBL struct IBDA_ConditionalAccessVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_ConditionalAccess_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_ConditionalAccess_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_ConditionalAccess_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_ConditionalAccess_get_SmartCardStatus(This,pCardStatus,pCardAssociation,pbstrCardError,pfOOBLocked) \ + ( (This)->lpVtbl -> get_SmartCardStatus(This,pCardStatus,pCardAssociation,pbstrCardError,pfOOBLocked) ) + +#define IBDA_ConditionalAccess_get_SmartCardInfo(This,pbstrCardName,pbstrCardManufacturer,pfDaylightSavings,pbyRatingRegion,plTimeZoneOffsetMinutes,pbstrLanguage,pEALocationCode) \ + ( (This)->lpVtbl -> get_SmartCardInfo(This,pbstrCardName,pbstrCardManufacturer,pfDaylightSavings,pbyRatingRegion,plTimeZoneOffsetMinutes,pbstrLanguage,pEALocationCode) ) + +#define IBDA_ConditionalAccess_get_SmartCardApplications(This,pulcApplications,ulcApplicationsMax,rgApplications) \ + ( (This)->lpVtbl -> get_SmartCardApplications(This,pulcApplications,ulcApplicationsMax,rgApplications) ) + +#define IBDA_ConditionalAccess_get_Entitlement(This,usVirtualChannel,pEntitlement) \ + ( (This)->lpVtbl -> get_Entitlement(This,usVirtualChannel,pEntitlement) ) + +#define IBDA_ConditionalAccess_TuneByChannel(This,usVirtualChannel) \ + ( (This)->lpVtbl -> TuneByChannel(This,usVirtualChannel) ) + +#define IBDA_ConditionalAccess_SetProgram(This,usProgramNumber) \ + ( (This)->lpVtbl -> SetProgram(This,usProgramNumber) ) + +#define IBDA_ConditionalAccess_AddProgram(This,usProgramNumber) \ + ( (This)->lpVtbl -> AddProgram(This,usProgramNumber) ) + +#define IBDA_ConditionalAccess_RemoveProgram(This,usProgramNumber) \ + ( (This)->lpVtbl -> RemoveProgram(This,usProgramNumber) ) + +#define IBDA_ConditionalAccess_GetModuleUI(This,byDialogNumber,pbstrURL) \ + ( (This)->lpVtbl -> GetModuleUI(This,byDialogNumber,pbstrURL) ) + +#define IBDA_ConditionalAccess_InformUIClosed(This,byDialogNumber,CloseReason) \ + ( (This)->lpVtbl -> InformUIClosed(This,byDialogNumber,CloseReason) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_ConditionalAccess_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0028 */ +/* [local] */ + +#define SID_BDA_ConditionalAccess __uuidof(IBDA_ConditionalAccess) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0028_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0028_v0_0_s_ifspec; + +#ifndef __IBDA_DiagnosticProperties_INTERFACE_DEFINED__ +#define __IBDA_DiagnosticProperties_INTERFACE_DEFINED__ + +/* interface IBDA_DiagnosticProperties */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_DiagnosticProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("20e80cb5-c543-4c1b-8eb3-49e719eee7d4") + IBDA_DiagnosticProperties : public IPropertyBag + { + public: + }; + + +#else /* C style interface */ + + typedef struct IBDA_DiagnosticPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_DiagnosticProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_DiagnosticProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_DiagnosticProperties * This); + + DECLSPEC_XFGVIRT(IPropertyBag, Read) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )( + IBDA_DiagnosticProperties * This, + /* [in] */ LPCOLESTR pszPropName, + /* [out][in] */ VARIANT *pVar, + /* [unique][in] */ IErrorLog *pErrorLog); + + DECLSPEC_XFGVIRT(IPropertyBag, Write) + HRESULT ( STDMETHODCALLTYPE *Write )( + __RPC__in IBDA_DiagnosticProperties * This, + /* [in] */ __RPC__in LPCOLESTR pszPropName, + /* [in] */ __RPC__in VARIANT *pVar); + + END_INTERFACE + } IBDA_DiagnosticPropertiesVtbl; + + interface IBDA_DiagnosticProperties + { + CONST_VTBL struct IBDA_DiagnosticPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_DiagnosticProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_DiagnosticProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_DiagnosticProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_DiagnosticProperties_Read(This,pszPropName,pVar,pErrorLog) \ + ( (This)->lpVtbl -> Read(This,pszPropName,pVar,pErrorLog) ) + +#define IBDA_DiagnosticProperties_Write(This,pszPropName,pVar) \ + ( (This)->lpVtbl -> Write(This,pszPropName,pVar) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_DiagnosticProperties_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0029 */ +/* [local] */ + +#define SID_BDA_DiagnosticProperties __uuidof(IBDA_DiagnosticProperties) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0029_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0029_v0_0_s_ifspec; + +#ifndef __IBDA_DRM_INTERFACE_DEFINED__ +#define __IBDA_DRM_INTERFACE_DEFINED__ + +/* interface IBDA_DRM */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_DRM; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F98D88B0-1992-4cd6-A6D9-B9AFAB99330D") + IBDA_DRM : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDRMPairingStatus( + /* [out] */ __RPC__out DWORD *pdwStatus, + /* [out] */ __RPC__out HRESULT *phError) = 0; + + virtual HRESULT STDMETHODCALLTYPE PerformDRMPairing( + BOOL fSync) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_DRMVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_DRM * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_DRM * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_DRM * This); + + DECLSPEC_XFGVIRT(IBDA_DRM, GetDRMPairingStatus) + HRESULT ( STDMETHODCALLTYPE *GetDRMPairingStatus )( + __RPC__in IBDA_DRM * This, + /* [out] */ __RPC__out DWORD *pdwStatus, + /* [out] */ __RPC__out HRESULT *phError); + + DECLSPEC_XFGVIRT(IBDA_DRM, PerformDRMPairing) + HRESULT ( STDMETHODCALLTYPE *PerformDRMPairing )( + __RPC__in IBDA_DRM * This, + BOOL fSync); + + END_INTERFACE + } IBDA_DRMVtbl; + + interface IBDA_DRM + { + CONST_VTBL struct IBDA_DRMVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_DRM_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_DRM_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_DRM_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_DRM_GetDRMPairingStatus(This,pdwStatus,phError) \ + ( (This)->lpVtbl -> GetDRMPairingStatus(This,pdwStatus,phError) ) + +#define IBDA_DRM_PerformDRMPairing(This,fSync) \ + ( (This)->lpVtbl -> PerformDRMPairing(This,fSync) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_DRM_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0030 */ +/* [local] */ + +#define SID_BDA_DRM __uuidof(IBDA_DRM) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0030_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0030_v0_0_s_ifspec; + +#ifndef __IBDA_NameValueService_INTERFACE_DEFINED__ +#define __IBDA_NameValueService_INTERFACE_DEFINED__ + +/* interface IBDA_NameValueService */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_NameValueService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7F0B3150-7B81-4ad4-98E3-7E9097094301") + IBDA_NameValueService : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetValueNameByIndex( + /* [in] */ ULONG ulIndex, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetValue( + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrValue) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetValue( + /* [in] */ ULONG ulDialogRequest, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrValue, + /* [in] */ ULONG ulReserved) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_NameValueServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_NameValueService * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_NameValueService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_NameValueService * This); + + DECLSPEC_XFGVIRT(IBDA_NameValueService, GetValueNameByIndex) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetValueNameByIndex )( + __RPC__in IBDA_NameValueService * This, + /* [in] */ ULONG ulIndex, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IBDA_NameValueService, GetValue) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in IBDA_NameValueService * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrValue); + + DECLSPEC_XFGVIRT(IBDA_NameValueService, SetValue) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetValue )( + __RPC__in IBDA_NameValueService * This, + /* [in] */ ULONG ulDialogRequest, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [in] */ __RPC__in BSTR bstrName, + /* [in] */ __RPC__in BSTR bstrValue, + /* [in] */ ULONG ulReserved); + + END_INTERFACE + } IBDA_NameValueServiceVtbl; + + interface IBDA_NameValueService + { + CONST_VTBL struct IBDA_NameValueServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_NameValueService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_NameValueService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_NameValueService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_NameValueService_GetValueNameByIndex(This,ulIndex,pbstrName) \ + ( (This)->lpVtbl -> GetValueNameByIndex(This,ulIndex,pbstrName) ) + +#define IBDA_NameValueService_GetValue(This,bstrName,bstrLanguage,pbstrValue) \ + ( (This)->lpVtbl -> GetValue(This,bstrName,bstrLanguage,pbstrValue) ) + +#define IBDA_NameValueService_SetValue(This,ulDialogRequest,bstrLanguage,bstrName,bstrValue,ulReserved) \ + ( (This)->lpVtbl -> SetValue(This,ulDialogRequest,bstrLanguage,bstrName,bstrValue,ulReserved) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_NameValueService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0031 */ +/* [local] */ + +#define SID_BDA_NameValueService __uuidof(IBDA_NameValueService) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0031_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0031_v0_0_s_ifspec; + +#ifndef __IBDA_ConditionalAccessEx_INTERFACE_DEFINED__ +#define __IBDA_ConditionalAccessEx_INTERFACE_DEFINED__ + +/* interface IBDA_ConditionalAccessEx */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_ConditionalAccessEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("497C3418-23CB-44ba-BB62-769F506FCEA7") + IBDA_ConditionalAccessEx : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CheckEntitlementToken( + /* [in] */ ULONG ulDialogRequest, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [in] */ BDA_CONDITIONALACCESS_REQUESTTYPE RequestType, + /* [in] */ ULONG ulcbEntitlementTokenLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbEntitlementTokenLen) BYTE *pbEntitlementToken, + /* [out] */ __RPC__out ULONG *pulDescrambleStatus) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCaptureToken( + /* [in] */ ULONG ulcbCaptureTokenLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbCaptureTokenLen) BYTE *pbCaptureToken) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OpenBroadcastMmi( + /* [in] */ ULONG ulDialogRequest, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [in] */ ULONG EventId) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CloseMmiDialog( + /* [in] */ ULONG ulDialogRequest, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [in] */ ULONG ulDialogNumber, + /* [in] */ BDA_CONDITIONALACCESS_MMICLOSEREASON ReasonCode, + /* [out] */ __RPC__out ULONG *pulSessionResult) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateDialogRequestNumber( + /* [out] */ __RPC__out ULONG *pulDialogRequestNumber) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_ConditionalAccessExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_ConditionalAccessEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_ConditionalAccessEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_ConditionalAccessEx * This); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccessEx, CheckEntitlementToken) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CheckEntitlementToken )( + __RPC__in IBDA_ConditionalAccessEx * This, + /* [in] */ ULONG ulDialogRequest, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [in] */ BDA_CONDITIONALACCESS_REQUESTTYPE RequestType, + /* [in] */ ULONG ulcbEntitlementTokenLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbEntitlementTokenLen) BYTE *pbEntitlementToken, + /* [out] */ __RPC__out ULONG *pulDescrambleStatus); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccessEx, SetCaptureToken) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCaptureToken )( + __RPC__in IBDA_ConditionalAccessEx * This, + /* [in] */ ULONG ulcbCaptureTokenLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbCaptureTokenLen) BYTE *pbCaptureToken); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccessEx, OpenBroadcastMmi) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OpenBroadcastMmi )( + __RPC__in IBDA_ConditionalAccessEx * This, + /* [in] */ ULONG ulDialogRequest, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [in] */ ULONG EventId); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccessEx, CloseMmiDialog) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CloseMmiDialog )( + __RPC__in IBDA_ConditionalAccessEx * This, + /* [in] */ ULONG ulDialogRequest, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [in] */ ULONG ulDialogNumber, + /* [in] */ BDA_CONDITIONALACCESS_MMICLOSEREASON ReasonCode, + /* [out] */ __RPC__out ULONG *pulSessionResult); + + DECLSPEC_XFGVIRT(IBDA_ConditionalAccessEx, CreateDialogRequestNumber) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateDialogRequestNumber )( + __RPC__in IBDA_ConditionalAccessEx * This, + /* [out] */ __RPC__out ULONG *pulDialogRequestNumber); + + END_INTERFACE + } IBDA_ConditionalAccessExVtbl; + + interface IBDA_ConditionalAccessEx + { + CONST_VTBL struct IBDA_ConditionalAccessExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_ConditionalAccessEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_ConditionalAccessEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_ConditionalAccessEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_ConditionalAccessEx_CheckEntitlementToken(This,ulDialogRequest,bstrLanguage,RequestType,ulcbEntitlementTokenLen,pbEntitlementToken,pulDescrambleStatus) \ + ( (This)->lpVtbl -> CheckEntitlementToken(This,ulDialogRequest,bstrLanguage,RequestType,ulcbEntitlementTokenLen,pbEntitlementToken,pulDescrambleStatus) ) + +#define IBDA_ConditionalAccessEx_SetCaptureToken(This,ulcbCaptureTokenLen,pbCaptureToken) \ + ( (This)->lpVtbl -> SetCaptureToken(This,ulcbCaptureTokenLen,pbCaptureToken) ) + +#define IBDA_ConditionalAccessEx_OpenBroadcastMmi(This,ulDialogRequest,bstrLanguage,EventId) \ + ( (This)->lpVtbl -> OpenBroadcastMmi(This,ulDialogRequest,bstrLanguage,EventId) ) + +#define IBDA_ConditionalAccessEx_CloseMmiDialog(This,ulDialogRequest,bstrLanguage,ulDialogNumber,ReasonCode,pulSessionResult) \ + ( (This)->lpVtbl -> CloseMmiDialog(This,ulDialogRequest,bstrLanguage,ulDialogNumber,ReasonCode,pulSessionResult) ) + +#define IBDA_ConditionalAccessEx_CreateDialogRequestNumber(This,pulDialogRequestNumber) \ + ( (This)->lpVtbl -> CreateDialogRequestNumber(This,pulDialogRequestNumber) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_ConditionalAccessEx_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0032 */ +/* [local] */ + +#define SID_BDA_ConditionalAccessEx __uuidof(IBDA_ConditionalAccessEx) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0032_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0032_v0_0_s_ifspec; + +#ifndef __IBDA_ISDBConditionalAccess_INTERFACE_DEFINED__ +#define __IBDA_ISDBConditionalAccess_INTERFACE_DEFINED__ + +/* interface IBDA_ISDBConditionalAccess */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_ISDBConditionalAccess; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5E68C627-16C2-4e6c-B1E2-D00170CDAA0F") + IBDA_ISDBConditionalAccess : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetIsdbCasRequest( + /* [in] */ ULONG ulRequestId, + /* [in] */ ULONG ulcbRequestBufferLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbRequestBufferLen) BYTE *pbRequestBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_ISDBConditionalAccessVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_ISDBConditionalAccess * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_ISDBConditionalAccess * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_ISDBConditionalAccess * This); + + DECLSPEC_XFGVIRT(IBDA_ISDBConditionalAccess, SetIsdbCasRequest) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetIsdbCasRequest )( + __RPC__in IBDA_ISDBConditionalAccess * This, + /* [in] */ ULONG ulRequestId, + /* [in] */ ULONG ulcbRequestBufferLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbRequestBufferLen) BYTE *pbRequestBuffer); + + END_INTERFACE + } IBDA_ISDBConditionalAccessVtbl; + + interface IBDA_ISDBConditionalAccess + { + CONST_VTBL struct IBDA_ISDBConditionalAccessVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_ISDBConditionalAccess_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_ISDBConditionalAccess_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_ISDBConditionalAccess_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_ISDBConditionalAccess_SetIsdbCasRequest(This,ulRequestId,ulcbRequestBufferLen,pbRequestBuffer) \ + ( (This)->lpVtbl -> SetIsdbCasRequest(This,ulRequestId,ulcbRequestBufferLen,pbRequestBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_ISDBConditionalAccess_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0033 */ +/* [local] */ + +#define SID_BDA_ISDBConditionalAccess __uuidof(IBDA_ISDBConditionalAccess) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0033_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0033_v0_0_s_ifspec; + +#ifndef __IBDA_EventingService_INTERFACE_DEFINED__ +#define __IBDA_EventingService_INTERFACE_DEFINED__ + +/* interface IBDA_EventingService */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_EventingService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("207C413F-00DC-4c61-BAD6-6FEE1FF07064") + IBDA_EventingService : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CompleteEvent( + /* [in] */ ULONG ulEventID, + /* [in] */ ULONG ulEventResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_EventingServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_EventingService * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_EventingService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_EventingService * This); + + DECLSPEC_XFGVIRT(IBDA_EventingService, CompleteEvent) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CompleteEvent )( + __RPC__in IBDA_EventingService * This, + /* [in] */ ULONG ulEventID, + /* [in] */ ULONG ulEventResult); + + END_INTERFACE + } IBDA_EventingServiceVtbl; + + interface IBDA_EventingService + { + CONST_VTBL struct IBDA_EventingServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_EventingService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_EventingService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_EventingService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_EventingService_CompleteEvent(This,ulEventID,ulEventResult) \ + ( (This)->lpVtbl -> CompleteEvent(This,ulEventID,ulEventResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_EventingService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0034 */ +/* [local] */ + +#define SID_BDA_EventingService __uuidof(IBDA_EventingService) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0034_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0034_v0_0_s_ifspec; + +#ifndef __IBDA_AUX_INTERFACE_DEFINED__ +#define __IBDA_AUX_INTERFACE_DEFINED__ + +/* interface IBDA_AUX */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_AUX; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7DEf4C09-6E66-4567-A819-F0E17F4A81AB") + IBDA_AUX : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryCapabilities( + /* [out] */ __RPC__out DWORD *pdwNumAuxInputsBSTR) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EnumCapability( + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__out DWORD *dwInputID, + /* [out] */ __RPC__out GUID *pConnectorType, + /* [out] */ __RPC__out DWORD *ConnTypeNum, + /* [out] */ __RPC__out DWORD *NumVideoStds, + /* [out] */ __RPC__out ULONGLONG *AnalogStds) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_AUXVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_AUX * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_AUX * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_AUX * This); + + DECLSPEC_XFGVIRT(IBDA_AUX, QueryCapabilities) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryCapabilities )( + __RPC__in IBDA_AUX * This, + /* [out] */ __RPC__out DWORD *pdwNumAuxInputsBSTR); + + DECLSPEC_XFGVIRT(IBDA_AUX, EnumCapability) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumCapability )( + __RPC__in IBDA_AUX * This, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__out DWORD *dwInputID, + /* [out] */ __RPC__out GUID *pConnectorType, + /* [out] */ __RPC__out DWORD *ConnTypeNum, + /* [out] */ __RPC__out DWORD *NumVideoStds, + /* [out] */ __RPC__out ULONGLONG *AnalogStds); + + END_INTERFACE + } IBDA_AUXVtbl; + + interface IBDA_AUX + { + CONST_VTBL struct IBDA_AUXVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_AUX_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_AUX_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_AUX_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_AUX_QueryCapabilities(This,pdwNumAuxInputsBSTR) \ + ( (This)->lpVtbl -> QueryCapabilities(This,pdwNumAuxInputsBSTR) ) + +#define IBDA_AUX_EnumCapability(This,dwIndex,dwInputID,pConnectorType,ConnTypeNum,NumVideoStds,AnalogStds) \ + ( (This)->lpVtbl -> EnumCapability(This,dwIndex,dwInputID,pConnectorType,ConnTypeNum,NumVideoStds,AnalogStds) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_AUX_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0035 */ +/* [local] */ + +DEFINE_GUID(PBDA_AUX_CONNECTOR_TYPE_SVideo, 0xa0e905f4,0x24c9,0x4a54, 0xb7, 0x61, 0x21, 0x33, 0x55, 0xef, 0xc1, 0x3A); +DEFINE_GUID(PBDA_AUX_CONNECTOR_TYPE_Composite, 0xf6298b4c,0xc725,0x4d42, 0x84, 0x9b, 0x41, 0x0b, 0xbb, 0x14, 0xea, 0x62); +#define SID_BDA_AUX __uuidof(IBDA_AUX) +DEFINE_GUID(CLSID_PBDA_AUX_DATA_TYPE, /* fd456373-3323-4090-adca-8ed45f55cf10 */ +0xfd456373, 0x3323, 0x4090, 0xad, 0xca, 0x8e, 0xd4, 0x5f, 0x55, 0xcf, 0x10); + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0035_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0035_v0_0_s_ifspec; + +#ifndef __IBDA_Encoder_INTERFACE_DEFINED__ +#define __IBDA_Encoder_INTERFACE_DEFINED__ + +/* interface IBDA_Encoder */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_Encoder; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3a8bad59-59fe-4559-a0ba-396cfaa98ae3") + IBDA_Encoder : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryCapabilities( + /* [out] */ __RPC__out DWORD *NumAudioFmts, + /* [out] */ __RPC__out DWORD *NumVideoFmts) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EnumAudioCapability( + /* [in] */ DWORD FmtIndex, + /* [out] */ __RPC__out DWORD *MethodID, + /* [out] */ __RPC__out DWORD *AlgorithmType, + /* [out] */ __RPC__out DWORD *SamplingRate, + /* [out] */ __RPC__out DWORD *BitDepth, + /* [out] */ __RPC__out DWORD *NumChannels) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EnumVideoCapability( + /* [in] */ DWORD FmtIndex, + /* [out] */ __RPC__out DWORD *MethodID, + /* [out] */ __RPC__out DWORD *AlgorithmType, + /* [out] */ __RPC__out DWORD *VerticalSize, + /* [out] */ __RPC__out DWORD *HorizontalSize, + /* [out] */ __RPC__out DWORD *AspectRatio, + /* [out] */ __RPC__out DWORD *FrameRateCode, + /* [out] */ __RPC__out DWORD *ProgressiveSequence) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetParameters( + /* [in] */ DWORD AudioBitrateMode, + /* [in] */ DWORD AudioBitrate, + /* [in] */ DWORD AudioMethodID, + /* [in] */ DWORD AudioProgram, + /* [in] */ DWORD VideoBitrateMode, + /* [in] */ DWORD VideoBitrate, + /* [in] */ DWORD VideoMethodID) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetState( + /* [out] */ __RPC__out DWORD *AudioBitrateMax, + /* [out] */ __RPC__out DWORD *AudioBitrateMin, + /* [out] */ __RPC__out DWORD *AudioBitrateMode, + /* [out] */ __RPC__out DWORD *AudioBitrateStepping, + /* [out] */ __RPC__out DWORD *AudioBitrate, + /* [out] */ __RPC__out DWORD *AudioMethodID, + /* [out] */ __RPC__out DWORD *AvailableAudioPrograms, + /* [out] */ __RPC__out DWORD *AudioProgram, + /* [out] */ __RPC__out DWORD *VideoBitrateMax, + /* [out] */ __RPC__out DWORD *VideoBitrateMin, + /* [out] */ __RPC__out DWORD *VideoBitrateMode, + /* [out] */ __RPC__out DWORD *VideoBitrate, + /* [out] */ __RPC__out DWORD *VideoBitrateStepping, + /* [out] */ __RPC__out DWORD *VideoMethodID, + /* [out] */ __RPC__out DWORD *SignalSourceID, + /* [out] */ __RPC__out ULONGLONG *SignalFormat, + /* [out] */ __RPC__out BOOL *SignalLock, + /* [out] */ __RPC__out LONG *SignalLevel, + /* [out] */ __RPC__out DWORD *SignalToNoiseRatio) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_EncoderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_Encoder * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_Encoder * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_Encoder * This); + + DECLSPEC_XFGVIRT(IBDA_Encoder, QueryCapabilities) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryCapabilities )( + __RPC__in IBDA_Encoder * This, + /* [out] */ __RPC__out DWORD *NumAudioFmts, + /* [out] */ __RPC__out DWORD *NumVideoFmts); + + DECLSPEC_XFGVIRT(IBDA_Encoder, EnumAudioCapability) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumAudioCapability )( + __RPC__in IBDA_Encoder * This, + /* [in] */ DWORD FmtIndex, + /* [out] */ __RPC__out DWORD *MethodID, + /* [out] */ __RPC__out DWORD *AlgorithmType, + /* [out] */ __RPC__out DWORD *SamplingRate, + /* [out] */ __RPC__out DWORD *BitDepth, + /* [out] */ __RPC__out DWORD *NumChannels); + + DECLSPEC_XFGVIRT(IBDA_Encoder, EnumVideoCapability) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumVideoCapability )( + __RPC__in IBDA_Encoder * This, + /* [in] */ DWORD FmtIndex, + /* [out] */ __RPC__out DWORD *MethodID, + /* [out] */ __RPC__out DWORD *AlgorithmType, + /* [out] */ __RPC__out DWORD *VerticalSize, + /* [out] */ __RPC__out DWORD *HorizontalSize, + /* [out] */ __RPC__out DWORD *AspectRatio, + /* [out] */ __RPC__out DWORD *FrameRateCode, + /* [out] */ __RPC__out DWORD *ProgressiveSequence); + + DECLSPEC_XFGVIRT(IBDA_Encoder, SetParameters) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetParameters )( + __RPC__in IBDA_Encoder * This, + /* [in] */ DWORD AudioBitrateMode, + /* [in] */ DWORD AudioBitrate, + /* [in] */ DWORD AudioMethodID, + /* [in] */ DWORD AudioProgram, + /* [in] */ DWORD VideoBitrateMode, + /* [in] */ DWORD VideoBitrate, + /* [in] */ DWORD VideoMethodID); + + DECLSPEC_XFGVIRT(IBDA_Encoder, GetState) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetState )( + __RPC__in IBDA_Encoder * This, + /* [out] */ __RPC__out DWORD *AudioBitrateMax, + /* [out] */ __RPC__out DWORD *AudioBitrateMin, + /* [out] */ __RPC__out DWORD *AudioBitrateMode, + /* [out] */ __RPC__out DWORD *AudioBitrateStepping, + /* [out] */ __RPC__out DWORD *AudioBitrate, + /* [out] */ __RPC__out DWORD *AudioMethodID, + /* [out] */ __RPC__out DWORD *AvailableAudioPrograms, + /* [out] */ __RPC__out DWORD *AudioProgram, + /* [out] */ __RPC__out DWORD *VideoBitrateMax, + /* [out] */ __RPC__out DWORD *VideoBitrateMin, + /* [out] */ __RPC__out DWORD *VideoBitrateMode, + /* [out] */ __RPC__out DWORD *VideoBitrate, + /* [out] */ __RPC__out DWORD *VideoBitrateStepping, + /* [out] */ __RPC__out DWORD *VideoMethodID, + /* [out] */ __RPC__out DWORD *SignalSourceID, + /* [out] */ __RPC__out ULONGLONG *SignalFormat, + /* [out] */ __RPC__out BOOL *SignalLock, + /* [out] */ __RPC__out LONG *SignalLevel, + /* [out] */ __RPC__out DWORD *SignalToNoiseRatio); + + END_INTERFACE + } IBDA_EncoderVtbl; + + interface IBDA_Encoder + { + CONST_VTBL struct IBDA_EncoderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_Encoder_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_Encoder_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_Encoder_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_Encoder_QueryCapabilities(This,NumAudioFmts,NumVideoFmts) \ + ( (This)->lpVtbl -> QueryCapabilities(This,NumAudioFmts,NumVideoFmts) ) + +#define IBDA_Encoder_EnumAudioCapability(This,FmtIndex,MethodID,AlgorithmType,SamplingRate,BitDepth,NumChannels) \ + ( (This)->lpVtbl -> EnumAudioCapability(This,FmtIndex,MethodID,AlgorithmType,SamplingRate,BitDepth,NumChannels) ) + +#define IBDA_Encoder_EnumVideoCapability(This,FmtIndex,MethodID,AlgorithmType,VerticalSize,HorizontalSize,AspectRatio,FrameRateCode,ProgressiveSequence) \ + ( (This)->lpVtbl -> EnumVideoCapability(This,FmtIndex,MethodID,AlgorithmType,VerticalSize,HorizontalSize,AspectRatio,FrameRateCode,ProgressiveSequence) ) + +#define IBDA_Encoder_SetParameters(This,AudioBitrateMode,AudioBitrate,AudioMethodID,AudioProgram,VideoBitrateMode,VideoBitrate,VideoMethodID) \ + ( (This)->lpVtbl -> SetParameters(This,AudioBitrateMode,AudioBitrate,AudioMethodID,AudioProgram,VideoBitrateMode,VideoBitrate,VideoMethodID) ) + +#define IBDA_Encoder_GetState(This,AudioBitrateMax,AudioBitrateMin,AudioBitrateMode,AudioBitrateStepping,AudioBitrate,AudioMethodID,AvailableAudioPrograms,AudioProgram,VideoBitrateMax,VideoBitrateMin,VideoBitrateMode,VideoBitrate,VideoBitrateStepping,VideoMethodID,SignalSourceID,SignalFormat,SignalLock,SignalLevel,SignalToNoiseRatio) \ + ( (This)->lpVtbl -> GetState(This,AudioBitrateMax,AudioBitrateMin,AudioBitrateMode,AudioBitrateStepping,AudioBitrate,AudioMethodID,AvailableAudioPrograms,AudioProgram,VideoBitrateMax,VideoBitrateMin,VideoBitrateMode,VideoBitrate,VideoBitrateStepping,VideoMethodID,SignalSourceID,SignalFormat,SignalLock,SignalLevel,SignalToNoiseRatio) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_Encoder_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0036 */ +/* [local] */ + +#define SID_BDA_Encoder __uuidof(IBDA_Encoder) +DEFINE_GUID(CLSID_PBDA_Encoder_DATA_TYPE, /* 728fd6bc-5546-4716-b103-f899f5a1fa68 */ +0x728fd6bc, 0x5546, 0x4716, 0xb1, 0x03, 0xf8, 0x99, 0xf5, 0xa1, 0xfa, 0x68); +#define PBDA_Encoder_Audio_AlgorithmType_MPEG1LayerII 0x00000000 +#define PBDA_Encoder_Audio_AlgorithmType_AC3 0x00000001 +#define PBDA_Encoder_Video_MPEG2PartII 0x00000000 +#define PBDA_Encoder_Video_MPEG4Part10 0x00000001 +#define PBDA_Encoder_Video_AVC 0x00000001 +#define PBDA_Encoder_Video_H264 0x00000001 +#define PBDA_Encoder_BitrateMode_Constant 0x00000001 +#define PBDA_Encoder_BitrateMode_Variable 0x00000002 +#define PBDA_Encoder_BitrateMode_Average 0x00000003 + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0036_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0036_v0_0_s_ifspec; + +#ifndef __IBDA_FDC_INTERFACE_DEFINED__ +#define __IBDA_FDC_INTERFACE_DEFINED__ + +/* interface IBDA_FDC */ +/* [unique][helpstring][uuid][object] */ + +#define SID_BDA_FDC __uuidof(IBDA_FDC +DEFINE_GUID(CLSID_PBDA_FDC_DATA_TYPE, /* E7DBF9A0-22AB-4047-8E67-EF9AD504E729 */ +0xe7dbf9a0, 0x22ab, 0x4047, 0x8e, 0x67, 0xef, 0x9a, 0xd5, 0x4, 0xe7, 0x29); + +EXTERN_C const IID IID_IBDA_FDC; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("138adc7e-58ae-437f-b0b4-c9fe19d5b4ac") + IBDA_FDC : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetStatus( + /* [out] */ __RPC__out DWORD *CurrentBitrate, + /* [out] */ __RPC__out BOOL *CarrierLock, + /* [out] */ __RPC__out DWORD *CurrentFrequency, + /* [out] */ __RPC__out BOOL *CurrentSpectrumInversion, + /* [out] */ __RPC__deref_out_opt BSTR *CurrentPIDList, + /* [out] */ __RPC__deref_out_opt BSTR *CurrentTIDList, + /* [out] */ __RPC__out BOOL *Overflow) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RequestTables( + /* [in] */ __RPC__in BSTR TableIDs) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddPid( + /* [in] */ __RPC__in BSTR PidsToAdd, + /* [out] */ __RPC__out DWORD *RemainingFilterEntries) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RemovePid( + /* [in] */ __RPC__in BSTR PidsToRemove) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddTid( + /* [in] */ __RPC__in BSTR TidsToAdd, + /* [out] */ __RPC__deref_out_opt BSTR *CurrentTidList) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RemoveTid( + /* [in] */ __RPC__in BSTR TidsToRemove) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTableSection( + /* [out] */ __RPC__out DWORD *Pid, + /* [in] */ DWORD MaxBufferSize, + /* [out] */ __RPC__out DWORD *ActualSize, + /* [out] */ __RPC__out BYTE *SecBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_FDCVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_FDC * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_FDC * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_FDC * This); + + DECLSPEC_XFGVIRT(IBDA_FDC, GetStatus) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in IBDA_FDC * This, + /* [out] */ __RPC__out DWORD *CurrentBitrate, + /* [out] */ __RPC__out BOOL *CarrierLock, + /* [out] */ __RPC__out DWORD *CurrentFrequency, + /* [out] */ __RPC__out BOOL *CurrentSpectrumInversion, + /* [out] */ __RPC__deref_out_opt BSTR *CurrentPIDList, + /* [out] */ __RPC__deref_out_opt BSTR *CurrentTIDList, + /* [out] */ __RPC__out BOOL *Overflow); + + DECLSPEC_XFGVIRT(IBDA_FDC, RequestTables) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RequestTables )( + __RPC__in IBDA_FDC * This, + /* [in] */ __RPC__in BSTR TableIDs); + + DECLSPEC_XFGVIRT(IBDA_FDC, AddPid) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddPid )( + __RPC__in IBDA_FDC * This, + /* [in] */ __RPC__in BSTR PidsToAdd, + /* [out] */ __RPC__out DWORD *RemainingFilterEntries); + + DECLSPEC_XFGVIRT(IBDA_FDC, RemovePid) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemovePid )( + __RPC__in IBDA_FDC * This, + /* [in] */ __RPC__in BSTR PidsToRemove); + + DECLSPEC_XFGVIRT(IBDA_FDC, AddTid) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddTid )( + __RPC__in IBDA_FDC * This, + /* [in] */ __RPC__in BSTR TidsToAdd, + /* [out] */ __RPC__deref_out_opt BSTR *CurrentTidList); + + DECLSPEC_XFGVIRT(IBDA_FDC, RemoveTid) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveTid )( + __RPC__in IBDA_FDC * This, + /* [in] */ __RPC__in BSTR TidsToRemove); + + DECLSPEC_XFGVIRT(IBDA_FDC, GetTableSection) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTableSection )( + __RPC__in IBDA_FDC * This, + /* [out] */ __RPC__out DWORD *Pid, + /* [in] */ DWORD MaxBufferSize, + /* [out] */ __RPC__out DWORD *ActualSize, + /* [out] */ __RPC__out BYTE *SecBuffer); + + END_INTERFACE + } IBDA_FDCVtbl; + + interface IBDA_FDC + { + CONST_VTBL struct IBDA_FDCVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_FDC_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_FDC_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_FDC_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_FDC_GetStatus(This,CurrentBitrate,CarrierLock,CurrentFrequency,CurrentSpectrumInversion,CurrentPIDList,CurrentTIDList,Overflow) \ + ( (This)->lpVtbl -> GetStatus(This,CurrentBitrate,CarrierLock,CurrentFrequency,CurrentSpectrumInversion,CurrentPIDList,CurrentTIDList,Overflow) ) + +#define IBDA_FDC_RequestTables(This,TableIDs) \ + ( (This)->lpVtbl -> RequestTables(This,TableIDs) ) + +#define IBDA_FDC_AddPid(This,PidsToAdd,RemainingFilterEntries) \ + ( (This)->lpVtbl -> AddPid(This,PidsToAdd,RemainingFilterEntries) ) + +#define IBDA_FDC_RemovePid(This,PidsToRemove) \ + ( (This)->lpVtbl -> RemovePid(This,PidsToRemove) ) + +#define IBDA_FDC_AddTid(This,TidsToAdd,CurrentTidList) \ + ( (This)->lpVtbl -> AddTid(This,TidsToAdd,CurrentTidList) ) + +#define IBDA_FDC_RemoveTid(This,TidsToRemove) \ + ( (This)->lpVtbl -> RemoveTid(This,TidsToRemove) ) + +#define IBDA_FDC_GetTableSection(This,Pid,MaxBufferSize,ActualSize,SecBuffer) \ + ( (This)->lpVtbl -> GetTableSection(This,Pid,MaxBufferSize,ActualSize,SecBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_FDC_INTERFACE_DEFINED__ */ + + +#ifndef __IBDA_GuideDataDeliveryService_INTERFACE_DEFINED__ +#define __IBDA_GuideDataDeliveryService_INTERFACE_DEFINED__ + +/* interface IBDA_GuideDataDeliveryService */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_GuideDataDeliveryService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C0AFCB73-23E7-4bc6-BAFA-FDC167B4719F") + IBDA_GuideDataDeliveryService : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetGuideDataType( + /* [out] */ __RPC__out GUID *pguidDataType) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetGuideData( + /* [out][in] */ __RPC__inout ULONG *pulcbBufferLen, + /* [out] */ __RPC__out BYTE *pbBuffer, + /* [out] */ __RPC__out ULONG *pulGuideDataPercentageProgress) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RequestGuideDataUpdate( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTuneXmlFromServiceIdx( + /* [in] */ ULONG64 ul64ServiceIdx, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrTuneXml) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetServices( + /* [out][in] */ __RPC__inout ULONG *pulcbBufferLen, + /* [out] */ __RPC__out BYTE *pbBuffer) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetServiceInfoFromTuneXml( + /* [in] */ __RPC__in BSTR bstrTuneXml, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrServiceDescription) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_GuideDataDeliveryServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_GuideDataDeliveryService * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_GuideDataDeliveryService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_GuideDataDeliveryService * This); + + DECLSPEC_XFGVIRT(IBDA_GuideDataDeliveryService, GetGuideDataType) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetGuideDataType )( + __RPC__in IBDA_GuideDataDeliveryService * This, + /* [out] */ __RPC__out GUID *pguidDataType); + + DECLSPEC_XFGVIRT(IBDA_GuideDataDeliveryService, GetGuideData) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetGuideData )( + __RPC__in IBDA_GuideDataDeliveryService * This, + /* [out][in] */ __RPC__inout ULONG *pulcbBufferLen, + /* [out] */ __RPC__out BYTE *pbBuffer, + /* [out] */ __RPC__out ULONG *pulGuideDataPercentageProgress); + + DECLSPEC_XFGVIRT(IBDA_GuideDataDeliveryService, RequestGuideDataUpdate) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RequestGuideDataUpdate )( + __RPC__in IBDA_GuideDataDeliveryService * This); + + DECLSPEC_XFGVIRT(IBDA_GuideDataDeliveryService, GetTuneXmlFromServiceIdx) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTuneXmlFromServiceIdx )( + __RPC__in IBDA_GuideDataDeliveryService * This, + /* [in] */ ULONG64 ul64ServiceIdx, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrTuneXml); + + DECLSPEC_XFGVIRT(IBDA_GuideDataDeliveryService, GetServices) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetServices )( + __RPC__in IBDA_GuideDataDeliveryService * This, + /* [out][in] */ __RPC__inout ULONG *pulcbBufferLen, + /* [out] */ __RPC__out BYTE *pbBuffer); + + DECLSPEC_XFGVIRT(IBDA_GuideDataDeliveryService, GetServiceInfoFromTuneXml) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetServiceInfoFromTuneXml )( + __RPC__in IBDA_GuideDataDeliveryService * This, + /* [in] */ __RPC__in BSTR bstrTuneXml, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrServiceDescription); + + END_INTERFACE + } IBDA_GuideDataDeliveryServiceVtbl; + + interface IBDA_GuideDataDeliveryService + { + CONST_VTBL struct IBDA_GuideDataDeliveryServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_GuideDataDeliveryService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_GuideDataDeliveryService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_GuideDataDeliveryService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_GuideDataDeliveryService_GetGuideDataType(This,pguidDataType) \ + ( (This)->lpVtbl -> GetGuideDataType(This,pguidDataType) ) + +#define IBDA_GuideDataDeliveryService_GetGuideData(This,pulcbBufferLen,pbBuffer,pulGuideDataPercentageProgress) \ + ( (This)->lpVtbl -> GetGuideData(This,pulcbBufferLen,pbBuffer,pulGuideDataPercentageProgress) ) + +#define IBDA_GuideDataDeliveryService_RequestGuideDataUpdate(This) \ + ( (This)->lpVtbl -> RequestGuideDataUpdate(This) ) + +#define IBDA_GuideDataDeliveryService_GetTuneXmlFromServiceIdx(This,ul64ServiceIdx,pbstrTuneXml) \ + ( (This)->lpVtbl -> GetTuneXmlFromServiceIdx(This,ul64ServiceIdx,pbstrTuneXml) ) + +#define IBDA_GuideDataDeliveryService_GetServices(This,pulcbBufferLen,pbBuffer) \ + ( (This)->lpVtbl -> GetServices(This,pulcbBufferLen,pbBuffer) ) + +#define IBDA_GuideDataDeliveryService_GetServiceInfoFromTuneXml(This,bstrTuneXml,pbstrServiceDescription) \ + ( (This)->lpVtbl -> GetServiceInfoFromTuneXml(This,bstrTuneXml,pbstrServiceDescription) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_GuideDataDeliveryService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0038 */ +/* [local] */ + +#define SID_BDA_GuideDataDeliveryService __uuidof(IBDA_GuideDataDeliveryService) +DEFINE_GUID(CLSID_PBDA_GDDS_DATA_TYPE, /* C80C0DF3-6052-4c16-9F56-C44C21F73C45 */ +0xC80C0DF3, 0x6052, 0x4c16, 0x9F, 0x56, 0xC4, 0x4C, 0x21, 0xF7, 0x3C, 0x45); + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0038_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0038_v0_0_s_ifspec; + +#ifndef __IBDA_DRMService_INTERFACE_DEFINED__ +#define __IBDA_DRMService_INTERFACE_DEFINED__ + +/* interface IBDA_DRMService */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_DRMService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BFF6B5BB-B0AE-484c-9DCA-73528FB0B46E") + IBDA_DRMService : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetDRM( + /* [in] */ __RPC__in GUID *puuidNewDrm) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDRMStatus( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDrmUuidList, + /* [out] */ __RPC__out GUID *DrmUuid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_DRMServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_DRMService * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_DRMService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_DRMService * This); + + DECLSPEC_XFGVIRT(IBDA_DRMService, SetDRM) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetDRM )( + __RPC__in IBDA_DRMService * This, + /* [in] */ __RPC__in GUID *puuidNewDrm); + + DECLSPEC_XFGVIRT(IBDA_DRMService, GetDRMStatus) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDRMStatus )( + __RPC__in IBDA_DRMService * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDrmUuidList, + /* [out] */ __RPC__out GUID *DrmUuid); + + END_INTERFACE + } IBDA_DRMServiceVtbl; + + interface IBDA_DRMService + { + CONST_VTBL struct IBDA_DRMServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_DRMService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_DRMService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_DRMService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_DRMService_SetDRM(This,puuidNewDrm) \ + ( (This)->lpVtbl -> SetDRM(This,puuidNewDrm) ) + +#define IBDA_DRMService_GetDRMStatus(This,pbstrDrmUuidList,DrmUuid) \ + ( (This)->lpVtbl -> GetDRMStatus(This,pbstrDrmUuidList,DrmUuid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_DRMService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0039 */ +/* [local] */ + +#define SID_BDA_DRMService __uuidof(IBDA_DRMService) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0039_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0039_v0_0_s_ifspec; + +#ifndef __IBDA_WMDRMSession_INTERFACE_DEFINED__ +#define __IBDA_WMDRMSession_INTERFACE_DEFINED__ + +/* interface IBDA_WMDRMSession */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_WMDRMSession; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4BE6FA3D-07CD-4139-8B80-8C18BA3AEC88") + IBDA_WMDRMSession : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetStatus( + /* [out] */ __RPC__out ULONG *MaxCaptureToken, + /* [out] */ __RPC__out ULONG *MaxStreamingPid, + /* [out] */ __RPC__out ULONG *MaxLicense, + /* [out] */ __RPC__out ULONG *MinSecurityLevel, + /* [out] */ __RPC__out ULONG *RevInfoSequenceNumber, + /* [out] */ __RPC__out ULONGLONG *RevInfoIssuedTime, + /* [out] */ __RPC__out ULONG *RevInfoTTL, + /* [out] */ __RPC__out ULONG *RevListVersion, + /* [out] */ __RPC__out ULONG *ulState) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetRevInfo( + /* [in] */ ULONG ulRevInfoLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulRevInfoLen) BYTE *pbRevInfo) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCrl( + /* [in] */ ULONG ulCrlLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulCrlLen) BYTE *pbCrlLen) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE TransactMessage( + /* [in] */ ULONG ulcbRequest, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbRequest) BYTE *pbRequest, + /* [out][in] */ __RPC__inout ULONG *pulcbResponse, + /* [out][in] */ __RPC__inout BYTE *pbResponse) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetLicense( + /* [in] */ __RPC__in GUID *uuidKey, + /* [out][in] */ __RPC__inout ULONG *pulPackageLen, + /* [out][in] */ __RPC__inout BYTE *pbPackage) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ReissueLicense( + /* [in] */ __RPC__in GUID *uuidKey) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RenewLicense( + /* [in] */ ULONG ulInXmrLicenseLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulInXmrLicenseLen) BYTE *pbInXmrLicense, + /* [in] */ ULONG ulEntitlementTokenLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulEntitlementTokenLen) BYTE *pbEntitlementToken, + /* [out] */ __RPC__out ULONG *pulDescrambleStatus, + /* [out][in] */ __RPC__inout ULONG *pulOutXmrLicenseLen, + /* [out][in] */ __RPC__inout BYTE *pbOutXmrLicense) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetKeyInfo( + /* [out][in] */ __RPC__inout ULONG *pulKeyInfoLen, + /* [out][in] */ __RPC__inout BYTE *pbKeyInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_WMDRMSessionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_WMDRMSession * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_WMDRMSession * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_WMDRMSession * This); + + DECLSPEC_XFGVIRT(IBDA_WMDRMSession, GetStatus) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in IBDA_WMDRMSession * This, + /* [out] */ __RPC__out ULONG *MaxCaptureToken, + /* [out] */ __RPC__out ULONG *MaxStreamingPid, + /* [out] */ __RPC__out ULONG *MaxLicense, + /* [out] */ __RPC__out ULONG *MinSecurityLevel, + /* [out] */ __RPC__out ULONG *RevInfoSequenceNumber, + /* [out] */ __RPC__out ULONGLONG *RevInfoIssuedTime, + /* [out] */ __RPC__out ULONG *RevInfoTTL, + /* [out] */ __RPC__out ULONG *RevListVersion, + /* [out] */ __RPC__out ULONG *ulState); + + DECLSPEC_XFGVIRT(IBDA_WMDRMSession, SetRevInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetRevInfo )( + __RPC__in IBDA_WMDRMSession * This, + /* [in] */ ULONG ulRevInfoLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulRevInfoLen) BYTE *pbRevInfo); + + DECLSPEC_XFGVIRT(IBDA_WMDRMSession, SetCrl) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCrl )( + __RPC__in IBDA_WMDRMSession * This, + /* [in] */ ULONG ulCrlLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulCrlLen) BYTE *pbCrlLen); + + DECLSPEC_XFGVIRT(IBDA_WMDRMSession, TransactMessage) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *TransactMessage )( + __RPC__in IBDA_WMDRMSession * This, + /* [in] */ ULONG ulcbRequest, + /* [size_is][in] */ __RPC__in_ecount_full(ulcbRequest) BYTE *pbRequest, + /* [out][in] */ __RPC__inout ULONG *pulcbResponse, + /* [out][in] */ __RPC__inout BYTE *pbResponse); + + DECLSPEC_XFGVIRT(IBDA_WMDRMSession, GetLicense) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetLicense )( + __RPC__in IBDA_WMDRMSession * This, + /* [in] */ __RPC__in GUID *uuidKey, + /* [out][in] */ __RPC__inout ULONG *pulPackageLen, + /* [out][in] */ __RPC__inout BYTE *pbPackage); + + DECLSPEC_XFGVIRT(IBDA_WMDRMSession, ReissueLicense) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ReissueLicense )( + __RPC__in IBDA_WMDRMSession * This, + /* [in] */ __RPC__in GUID *uuidKey); + + DECLSPEC_XFGVIRT(IBDA_WMDRMSession, RenewLicense) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RenewLicense )( + __RPC__in IBDA_WMDRMSession * This, + /* [in] */ ULONG ulInXmrLicenseLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulInXmrLicenseLen) BYTE *pbInXmrLicense, + /* [in] */ ULONG ulEntitlementTokenLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulEntitlementTokenLen) BYTE *pbEntitlementToken, + /* [out] */ __RPC__out ULONG *pulDescrambleStatus, + /* [out][in] */ __RPC__inout ULONG *pulOutXmrLicenseLen, + /* [out][in] */ __RPC__inout BYTE *pbOutXmrLicense); + + DECLSPEC_XFGVIRT(IBDA_WMDRMSession, GetKeyInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetKeyInfo )( + __RPC__in IBDA_WMDRMSession * This, + /* [out][in] */ __RPC__inout ULONG *pulKeyInfoLen, + /* [out][in] */ __RPC__inout BYTE *pbKeyInfo); + + END_INTERFACE + } IBDA_WMDRMSessionVtbl; + + interface IBDA_WMDRMSession + { + CONST_VTBL struct IBDA_WMDRMSessionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_WMDRMSession_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_WMDRMSession_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_WMDRMSession_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_WMDRMSession_GetStatus(This,MaxCaptureToken,MaxStreamingPid,MaxLicense,MinSecurityLevel,RevInfoSequenceNumber,RevInfoIssuedTime,RevInfoTTL,RevListVersion,ulState) \ + ( (This)->lpVtbl -> GetStatus(This,MaxCaptureToken,MaxStreamingPid,MaxLicense,MinSecurityLevel,RevInfoSequenceNumber,RevInfoIssuedTime,RevInfoTTL,RevListVersion,ulState) ) + +#define IBDA_WMDRMSession_SetRevInfo(This,ulRevInfoLen,pbRevInfo) \ + ( (This)->lpVtbl -> SetRevInfo(This,ulRevInfoLen,pbRevInfo) ) + +#define IBDA_WMDRMSession_SetCrl(This,ulCrlLen,pbCrlLen) \ + ( (This)->lpVtbl -> SetCrl(This,ulCrlLen,pbCrlLen) ) + +#define IBDA_WMDRMSession_TransactMessage(This,ulcbRequest,pbRequest,pulcbResponse,pbResponse) \ + ( (This)->lpVtbl -> TransactMessage(This,ulcbRequest,pbRequest,pulcbResponse,pbResponse) ) + +#define IBDA_WMDRMSession_GetLicense(This,uuidKey,pulPackageLen,pbPackage) \ + ( (This)->lpVtbl -> GetLicense(This,uuidKey,pulPackageLen,pbPackage) ) + +#define IBDA_WMDRMSession_ReissueLicense(This,uuidKey) \ + ( (This)->lpVtbl -> ReissueLicense(This,uuidKey) ) + +#define IBDA_WMDRMSession_RenewLicense(This,ulInXmrLicenseLen,pbInXmrLicense,ulEntitlementTokenLen,pbEntitlementToken,pulDescrambleStatus,pulOutXmrLicenseLen,pbOutXmrLicense) \ + ( (This)->lpVtbl -> RenewLicense(This,ulInXmrLicenseLen,pbInXmrLicense,ulEntitlementTokenLen,pbEntitlementToken,pulDescrambleStatus,pulOutXmrLicenseLen,pbOutXmrLicense) ) + +#define IBDA_WMDRMSession_GetKeyInfo(This,pulKeyInfoLen,pbKeyInfo) \ + ( (This)->lpVtbl -> GetKeyInfo(This,pulKeyInfoLen,pbKeyInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_WMDRMSession_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0040 */ +/* [local] */ + +#define SID_BDA_WMDRMSession __uuidof(IBDA_WMDRMSession) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0040_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0040_v0_0_s_ifspec; + +#ifndef __IBDA_WMDRMTuner_INTERFACE_DEFINED__ +#define __IBDA_WMDRMTuner_INTERFACE_DEFINED__ + +/* interface IBDA_WMDRMTuner */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_WMDRMTuner; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("86D979CF-A8A7-4f94-B5FB-14C0ACA68FE6") + IBDA_WMDRMTuner : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PurchaseEntitlement( + /* [in] */ ULONG ulDialogRequest, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [in] */ ULONG ulPurchaseTokenLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulPurchaseTokenLen) BYTE *pbPurchaseToken, + /* [out] */ __RPC__out ULONG *pulDescrambleStatus, + /* [out][in] */ __RPC__inout ULONG *pulCaptureTokenLen, + /* [out][in] */ __RPC__inout BYTE *pbCaptureToken) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CancelCaptureToken( + /* [in] */ ULONG ulCaptureTokenLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulCaptureTokenLen) BYTE *pbCaptureToken) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetPidProtection( + /* [in] */ ULONG ulPid, + /* [in] */ __RPC__in GUID *uuidKey) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPidProtection( + /* [in] */ ULONG pulPid, + /* [out] */ __RPC__out GUID *uuidKey) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetSyncValue( + /* [in] */ ULONG ulSyncValue) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetStartCodeProfile( + /* [out][in] */ __RPC__inout ULONG *pulStartCodeProfileLen, + /* [out][in] */ __RPC__inout BYTE *pbStartCodeProfile) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_WMDRMTunerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_WMDRMTuner * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_WMDRMTuner * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_WMDRMTuner * This); + + DECLSPEC_XFGVIRT(IBDA_WMDRMTuner, PurchaseEntitlement) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *PurchaseEntitlement )( + __RPC__in IBDA_WMDRMTuner * This, + /* [in] */ ULONG ulDialogRequest, + /* [in] */ __RPC__in BSTR bstrLanguage, + /* [in] */ ULONG ulPurchaseTokenLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulPurchaseTokenLen) BYTE *pbPurchaseToken, + /* [out] */ __RPC__out ULONG *pulDescrambleStatus, + /* [out][in] */ __RPC__inout ULONG *pulCaptureTokenLen, + /* [out][in] */ __RPC__inout BYTE *pbCaptureToken); + + DECLSPEC_XFGVIRT(IBDA_WMDRMTuner, CancelCaptureToken) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CancelCaptureToken )( + __RPC__in IBDA_WMDRMTuner * This, + /* [in] */ ULONG ulCaptureTokenLen, + /* [size_is][in] */ __RPC__in_ecount_full(ulCaptureTokenLen) BYTE *pbCaptureToken); + + DECLSPEC_XFGVIRT(IBDA_WMDRMTuner, SetPidProtection) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetPidProtection )( + __RPC__in IBDA_WMDRMTuner * This, + /* [in] */ ULONG ulPid, + /* [in] */ __RPC__in GUID *uuidKey); + + DECLSPEC_XFGVIRT(IBDA_WMDRMTuner, GetPidProtection) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPidProtection )( + __RPC__in IBDA_WMDRMTuner * This, + /* [in] */ ULONG pulPid, + /* [out] */ __RPC__out GUID *uuidKey); + + DECLSPEC_XFGVIRT(IBDA_WMDRMTuner, SetSyncValue) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetSyncValue )( + __RPC__in IBDA_WMDRMTuner * This, + /* [in] */ ULONG ulSyncValue); + + DECLSPEC_XFGVIRT(IBDA_WMDRMTuner, GetStartCodeProfile) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStartCodeProfile )( + __RPC__in IBDA_WMDRMTuner * This, + /* [out][in] */ __RPC__inout ULONG *pulStartCodeProfileLen, + /* [out][in] */ __RPC__inout BYTE *pbStartCodeProfile); + + END_INTERFACE + } IBDA_WMDRMTunerVtbl; + + interface IBDA_WMDRMTuner + { + CONST_VTBL struct IBDA_WMDRMTunerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_WMDRMTuner_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_WMDRMTuner_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_WMDRMTuner_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_WMDRMTuner_PurchaseEntitlement(This,ulDialogRequest,bstrLanguage,ulPurchaseTokenLen,pbPurchaseToken,pulDescrambleStatus,pulCaptureTokenLen,pbCaptureToken) \ + ( (This)->lpVtbl -> PurchaseEntitlement(This,ulDialogRequest,bstrLanguage,ulPurchaseTokenLen,pbPurchaseToken,pulDescrambleStatus,pulCaptureTokenLen,pbCaptureToken) ) + +#define IBDA_WMDRMTuner_CancelCaptureToken(This,ulCaptureTokenLen,pbCaptureToken) \ + ( (This)->lpVtbl -> CancelCaptureToken(This,ulCaptureTokenLen,pbCaptureToken) ) + +#define IBDA_WMDRMTuner_SetPidProtection(This,ulPid,uuidKey) \ + ( (This)->lpVtbl -> SetPidProtection(This,ulPid,uuidKey) ) + +#define IBDA_WMDRMTuner_GetPidProtection(This,pulPid,uuidKey) \ + ( (This)->lpVtbl -> GetPidProtection(This,pulPid,uuidKey) ) + +#define IBDA_WMDRMTuner_SetSyncValue(This,ulSyncValue) \ + ( (This)->lpVtbl -> SetSyncValue(This,ulSyncValue) ) + +#define IBDA_WMDRMTuner_GetStartCodeProfile(This,pulStartCodeProfileLen,pbStartCodeProfile) \ + ( (This)->lpVtbl -> GetStartCodeProfile(This,pulStartCodeProfileLen,pbStartCodeProfile) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_WMDRMTuner_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0041 */ +/* [local] */ + +#define SID_BDA_WMDRMTuner __uuidof(IBDA_WMDRMTuner) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0041_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0041_v0_0_s_ifspec; + +#ifndef __IBDA_DRIDRMService_INTERFACE_DEFINED__ +#define __IBDA_DRIDRMService_INTERFACE_DEFINED__ + +/* interface IBDA_DRIDRMService */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_DRIDRMService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1F9BC2A5-44A3-4c52-AAB1-0BBCE5A1381D") + IBDA_DRIDRMService : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetDRM( + /* [in] */ __RPC__in BSTR bstrNewDrm) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDRMStatus( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDrmUuidList, + /* [out] */ __RPC__out GUID *DrmUuid) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPairingStatus( + /* [out][in] */ __RPC__inout BDA_DrmPairingError *penumPairingStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_DRIDRMServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_DRIDRMService * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_DRIDRMService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_DRIDRMService * This); + + DECLSPEC_XFGVIRT(IBDA_DRIDRMService, SetDRM) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetDRM )( + __RPC__in IBDA_DRIDRMService * This, + /* [in] */ __RPC__in BSTR bstrNewDrm); + + DECLSPEC_XFGVIRT(IBDA_DRIDRMService, GetDRMStatus) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDRMStatus )( + __RPC__in IBDA_DRIDRMService * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrDrmUuidList, + /* [out] */ __RPC__out GUID *DrmUuid); + + DECLSPEC_XFGVIRT(IBDA_DRIDRMService, GetPairingStatus) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPairingStatus )( + __RPC__in IBDA_DRIDRMService * This, + /* [out][in] */ __RPC__inout BDA_DrmPairingError *penumPairingStatus); + + END_INTERFACE + } IBDA_DRIDRMServiceVtbl; + + interface IBDA_DRIDRMService + { + CONST_VTBL struct IBDA_DRIDRMServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_DRIDRMService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_DRIDRMService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_DRIDRMService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_DRIDRMService_SetDRM(This,bstrNewDrm) \ + ( (This)->lpVtbl -> SetDRM(This,bstrNewDrm) ) + +#define IBDA_DRIDRMService_GetDRMStatus(This,pbstrDrmUuidList,DrmUuid) \ + ( (This)->lpVtbl -> GetDRMStatus(This,pbstrDrmUuidList,DrmUuid) ) + +#define IBDA_DRIDRMService_GetPairingStatus(This,penumPairingStatus) \ + ( (This)->lpVtbl -> GetPairingStatus(This,penumPairingStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_DRIDRMService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0042 */ +/* [local] */ + +#define SID_BDA_DRIDRMService __uuidof(IBDA_DRIDRMService) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0042_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0042_v0_0_s_ifspec; + +#ifndef __IBDA_DRIWMDRMSession_INTERFACE_DEFINED__ +#define __IBDA_DRIWMDRMSession_INTERFACE_DEFINED__ + +/* interface IBDA_DRIWMDRMSession */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_DRIWMDRMSession; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("05C690F8-56DB-4bb2-B053-79C12098BB26") + IBDA_DRIWMDRMSession : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AcknowledgeLicense( + /* [in] */ HRESULT hrLicenseAck) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ProcessLicenseChallenge( + /* [in] */ DWORD dwcbLicenseMessage, + /* [size_is][in] */ __RPC__in_ecount_full(dwcbLicenseMessage) BYTE *pbLicenseMessage, + /* [out][in] */ __RPC__inout DWORD *pdwcbLicenseResponse, + /* [size_is][out][in] */ __RPC__inout_ecount_full(*pdwcbLicenseResponse) BYTE **ppbLicenseResponse) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ProcessRegistrationChallenge( + /* [in] */ DWORD dwcbRegistrationMessage, + /* [size_is][in] */ __RPC__in_ecount_full(dwcbRegistrationMessage) BYTE *pbRegistrationMessage, + /* [out][in] */ __RPC__inout DWORD *pdwcbRegistrationResponse, + /* [out][in] */ __RPC__deref_inout_opt BYTE **ppbRegistrationResponse) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetRevInfo( + /* [in] */ DWORD dwRevInfoLen, + /* [size_is][in] */ __RPC__in_ecount_full(dwRevInfoLen) BYTE *pbRevInfo, + /* [out][in] */ __RPC__inout DWORD *pdwResponse) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCrl( + /* [in] */ DWORD dwCrlLen, + /* [size_is][in] */ __RPC__in_ecount_full(dwCrlLen) BYTE *pbCrlLen, + /* [out][in] */ __RPC__inout DWORD *pdwResponse) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetHMSAssociationData( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetLastCardeaError( + /* [out][in] */ __RPC__inout DWORD *pdwError) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_DRIWMDRMSessionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_DRIWMDRMSession * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_DRIWMDRMSession * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_DRIWMDRMSession * This); + + DECLSPEC_XFGVIRT(IBDA_DRIWMDRMSession, AcknowledgeLicense) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AcknowledgeLicense )( + __RPC__in IBDA_DRIWMDRMSession * This, + /* [in] */ HRESULT hrLicenseAck); + + DECLSPEC_XFGVIRT(IBDA_DRIWMDRMSession, ProcessLicenseChallenge) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ProcessLicenseChallenge )( + __RPC__in IBDA_DRIWMDRMSession * This, + /* [in] */ DWORD dwcbLicenseMessage, + /* [size_is][in] */ __RPC__in_ecount_full(dwcbLicenseMessage) BYTE *pbLicenseMessage, + /* [out][in] */ __RPC__inout DWORD *pdwcbLicenseResponse, + /* [size_is][out][in] */ __RPC__inout_ecount_full(*pdwcbLicenseResponse) BYTE **ppbLicenseResponse); + + DECLSPEC_XFGVIRT(IBDA_DRIWMDRMSession, ProcessRegistrationChallenge) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ProcessRegistrationChallenge )( + __RPC__in IBDA_DRIWMDRMSession * This, + /* [in] */ DWORD dwcbRegistrationMessage, + /* [size_is][in] */ __RPC__in_ecount_full(dwcbRegistrationMessage) BYTE *pbRegistrationMessage, + /* [out][in] */ __RPC__inout DWORD *pdwcbRegistrationResponse, + /* [out][in] */ __RPC__deref_inout_opt BYTE **ppbRegistrationResponse); + + DECLSPEC_XFGVIRT(IBDA_DRIWMDRMSession, SetRevInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetRevInfo )( + __RPC__in IBDA_DRIWMDRMSession * This, + /* [in] */ DWORD dwRevInfoLen, + /* [size_is][in] */ __RPC__in_ecount_full(dwRevInfoLen) BYTE *pbRevInfo, + /* [out][in] */ __RPC__inout DWORD *pdwResponse); + + DECLSPEC_XFGVIRT(IBDA_DRIWMDRMSession, SetCrl) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCrl )( + __RPC__in IBDA_DRIWMDRMSession * This, + /* [in] */ DWORD dwCrlLen, + /* [size_is][in] */ __RPC__in_ecount_full(dwCrlLen) BYTE *pbCrlLen, + /* [out][in] */ __RPC__inout DWORD *pdwResponse); + + DECLSPEC_XFGVIRT(IBDA_DRIWMDRMSession, GetHMSAssociationData) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetHMSAssociationData )( + __RPC__in IBDA_DRIWMDRMSession * This); + + DECLSPEC_XFGVIRT(IBDA_DRIWMDRMSession, GetLastCardeaError) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetLastCardeaError )( + __RPC__in IBDA_DRIWMDRMSession * This, + /* [out][in] */ __RPC__inout DWORD *pdwError); + + END_INTERFACE + } IBDA_DRIWMDRMSessionVtbl; + + interface IBDA_DRIWMDRMSession + { + CONST_VTBL struct IBDA_DRIWMDRMSessionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_DRIWMDRMSession_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_DRIWMDRMSession_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_DRIWMDRMSession_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_DRIWMDRMSession_AcknowledgeLicense(This,hrLicenseAck) \ + ( (This)->lpVtbl -> AcknowledgeLicense(This,hrLicenseAck) ) + +#define IBDA_DRIWMDRMSession_ProcessLicenseChallenge(This,dwcbLicenseMessage,pbLicenseMessage,pdwcbLicenseResponse,ppbLicenseResponse) \ + ( (This)->lpVtbl -> ProcessLicenseChallenge(This,dwcbLicenseMessage,pbLicenseMessage,pdwcbLicenseResponse,ppbLicenseResponse) ) + +#define IBDA_DRIWMDRMSession_ProcessRegistrationChallenge(This,dwcbRegistrationMessage,pbRegistrationMessage,pdwcbRegistrationResponse,ppbRegistrationResponse) \ + ( (This)->lpVtbl -> ProcessRegistrationChallenge(This,dwcbRegistrationMessage,pbRegistrationMessage,pdwcbRegistrationResponse,ppbRegistrationResponse) ) + +#define IBDA_DRIWMDRMSession_SetRevInfo(This,dwRevInfoLen,pbRevInfo,pdwResponse) \ + ( (This)->lpVtbl -> SetRevInfo(This,dwRevInfoLen,pbRevInfo,pdwResponse) ) + +#define IBDA_DRIWMDRMSession_SetCrl(This,dwCrlLen,pbCrlLen,pdwResponse) \ + ( (This)->lpVtbl -> SetCrl(This,dwCrlLen,pbCrlLen,pdwResponse) ) + +#define IBDA_DRIWMDRMSession_GetHMSAssociationData(This) \ + ( (This)->lpVtbl -> GetHMSAssociationData(This) ) + +#define IBDA_DRIWMDRMSession_GetLastCardeaError(This,pdwError) \ + ( (This)->lpVtbl -> GetLastCardeaError(This,pdwError) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_DRIWMDRMSession_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0043 */ +/* [local] */ + +#define SID_BDA_DRIWMDRMSession __uuidof(IBDA_DRIWMDRMSession) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0043_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0043_v0_0_s_ifspec; + +#ifndef __IBDA_MUX_INTERFACE_DEFINED__ +#define __IBDA_MUX_INTERFACE_DEFINED__ + +/* interface IBDA_MUX */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_MUX; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("942AAFEC-4C05-4c74-B8EB-8706C2A4943F") + IBDA_MUX : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetPidList( + /* [in] */ ULONG ulPidListCount, + /* [size_is][in] */ __RPC__in_ecount_full(ulPidListCount) BDA_MUX_PIDLISTITEM *pbPidListBuffer) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPidList( + /* [out][in] */ __RPC__inout ULONG *pulPidListCount, + /* [out][in] */ __RPC__inout BDA_MUX_PIDLISTITEM *pbPidListBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_MUXVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_MUX * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_MUX * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_MUX * This); + + DECLSPEC_XFGVIRT(IBDA_MUX, SetPidList) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetPidList )( + __RPC__in IBDA_MUX * This, + /* [in] */ ULONG ulPidListCount, + /* [size_is][in] */ __RPC__in_ecount_full(ulPidListCount) BDA_MUX_PIDLISTITEM *pbPidListBuffer); + + DECLSPEC_XFGVIRT(IBDA_MUX, GetPidList) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPidList )( + __RPC__in IBDA_MUX * This, + /* [out][in] */ __RPC__inout ULONG *pulPidListCount, + /* [out][in] */ __RPC__inout BDA_MUX_PIDLISTITEM *pbPidListBuffer); + + END_INTERFACE + } IBDA_MUXVtbl; + + interface IBDA_MUX + { + CONST_VTBL struct IBDA_MUXVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_MUX_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_MUX_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_MUX_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_MUX_SetPidList(This,ulPidListCount,pbPidListBuffer) \ + ( (This)->lpVtbl -> SetPidList(This,ulPidListCount,pbPidListBuffer) ) + +#define IBDA_MUX_GetPidList(This,pulPidListCount,pbPidListBuffer) \ + ( (This)->lpVtbl -> GetPidList(This,pulPidListCount,pbPidListBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_MUX_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0044 */ +/* [local] */ + +#define SID_BDA_MUX __uuidof(IBDA_MUX) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0044_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0044_v0_0_s_ifspec; + +#ifndef __IBDA_TransportStreamSelector_INTERFACE_DEFINED__ +#define __IBDA_TransportStreamSelector_INTERFACE_DEFINED__ + +/* interface IBDA_TransportStreamSelector */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_TransportStreamSelector; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1DCFAFE9-B45E-41b3-BB2A-561EB129AE98") + IBDA_TransportStreamSelector : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetTSID( + /* [in] */ USHORT usTSID) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTSInformation( + /* [out][in] */ __RPC__inout ULONG *pulTSInformationBufferLen, + /* [size_is][out] */ __RPC__out_ecount_full(*pulTSInformationBufferLen) BYTE *pbTSInformationBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_TransportStreamSelectorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_TransportStreamSelector * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_TransportStreamSelector * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_TransportStreamSelector * This); + + DECLSPEC_XFGVIRT(IBDA_TransportStreamSelector, SetTSID) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetTSID )( + __RPC__in IBDA_TransportStreamSelector * This, + /* [in] */ USHORT usTSID); + + DECLSPEC_XFGVIRT(IBDA_TransportStreamSelector, GetTSInformation) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTSInformation )( + __RPC__in IBDA_TransportStreamSelector * This, + /* [out][in] */ __RPC__inout ULONG *pulTSInformationBufferLen, + /* [size_is][out] */ __RPC__out_ecount_full(*pulTSInformationBufferLen) BYTE *pbTSInformationBuffer); + + END_INTERFACE + } IBDA_TransportStreamSelectorVtbl; + + interface IBDA_TransportStreamSelector + { + CONST_VTBL struct IBDA_TransportStreamSelectorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_TransportStreamSelector_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_TransportStreamSelector_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_TransportStreamSelector_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_TransportStreamSelector_SetTSID(This,usTSID) \ + ( (This)->lpVtbl -> SetTSID(This,usTSID) ) + +#define IBDA_TransportStreamSelector_GetTSInformation(This,pulTSInformationBufferLen,pbTSInformationBuffer) \ + ( (This)->lpVtbl -> GetTSInformation(This,pulTSInformationBufferLen,pbTSInformationBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_TransportStreamSelector_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0045 */ +/* [local] */ + +#define SID_BDA_TransportStreamSelector __uuidof(IBDA_TransportStreamSelector) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0045_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0045_v0_0_s_ifspec; + +#ifndef __IBDA_UserActivityService_INTERFACE_DEFINED__ +#define __IBDA_UserActivityService_INTERFACE_DEFINED__ + +/* interface IBDA_UserActivityService */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_UserActivityService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("53B14189-E478-4b7a-A1FF-506DB4B99DFE") + IBDA_UserActivityService : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCurrentTunerUseReason( + /* [in] */ DWORD dwUseReason) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetUserActivityInterval( + /* [out] */ __RPC__out DWORD *pdwActivityInterval) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UserActivityDetected( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_UserActivityServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_UserActivityService * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_UserActivityService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_UserActivityService * This); + + DECLSPEC_XFGVIRT(IBDA_UserActivityService, SetCurrentTunerUseReason) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCurrentTunerUseReason )( + __RPC__in IBDA_UserActivityService * This, + /* [in] */ DWORD dwUseReason); + + DECLSPEC_XFGVIRT(IBDA_UserActivityService, GetUserActivityInterval) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetUserActivityInterval )( + __RPC__in IBDA_UserActivityService * This, + /* [out] */ __RPC__out DWORD *pdwActivityInterval); + + DECLSPEC_XFGVIRT(IBDA_UserActivityService, UserActivityDetected) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UserActivityDetected )( + __RPC__in IBDA_UserActivityService * This); + + END_INTERFACE + } IBDA_UserActivityServiceVtbl; + + interface IBDA_UserActivityService + { + CONST_VTBL struct IBDA_UserActivityServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_UserActivityService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_UserActivityService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_UserActivityService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_UserActivityService_SetCurrentTunerUseReason(This,dwUseReason) \ + ( (This)->lpVtbl -> SetCurrentTunerUseReason(This,dwUseReason) ) + +#define IBDA_UserActivityService_GetUserActivityInterval(This,pdwActivityInterval) \ + ( (This)->lpVtbl -> GetUserActivityInterval(This,pdwActivityInterval) ) + +#define IBDA_UserActivityService_UserActivityDetected(This) \ + ( (This)->lpVtbl -> UserActivityDetected(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_UserActivityService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0046 */ +/* [local] */ + +#define SID_BDA_UserActivityService __uuidof(IBDA_UserActivityService) + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0046_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0046_v0_0_s_ifspec; + +#ifndef __IESEvent_INTERFACE_DEFINED__ +#define __IESEvent_INTERFACE_DEFINED__ + +/* interface IESEvent */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IESEvent; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1F0E5357-AF43-44e6-8547-654C645145D2") + IESEvent : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetEventId( + /* [retval][out] */ __RPC__out DWORD *pdwEventId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEventType( + /* [retval][out] */ __RPC__out GUID *pguidEventType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompletionStatus( + /* [in] */ DWORD dwResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetData( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *pbData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStringData( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IESEventVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IESEvent * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IESEvent * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IESEvent * This); + + DECLSPEC_XFGVIRT(IESEvent, GetEventId) + HRESULT ( STDMETHODCALLTYPE *GetEventId )( + __RPC__in IESEvent * This, + /* [retval][out] */ __RPC__out DWORD *pdwEventId); + + DECLSPEC_XFGVIRT(IESEvent, GetEventType) + HRESULT ( STDMETHODCALLTYPE *GetEventType )( + __RPC__in IESEvent * This, + /* [retval][out] */ __RPC__out GUID *pguidEventType); + + DECLSPEC_XFGVIRT(IESEvent, SetCompletionStatus) + HRESULT ( STDMETHODCALLTYPE *SetCompletionStatus )( + __RPC__in IESEvent * This, + /* [in] */ DWORD dwResult); + + DECLSPEC_XFGVIRT(IESEvent, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + __RPC__in IESEvent * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *pbData); + + DECLSPEC_XFGVIRT(IESEvent, GetStringData) + HRESULT ( STDMETHODCALLTYPE *GetStringData )( + __RPC__in IESEvent * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrData); + + END_INTERFACE + } IESEventVtbl; + + interface IESEvent + { + CONST_VTBL struct IESEventVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IESEvent_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IESEvent_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IESEvent_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IESEvent_GetEventId(This,pdwEventId) \ + ( (This)->lpVtbl -> GetEventId(This,pdwEventId) ) + +#define IESEvent_GetEventType(This,pguidEventType) \ + ( (This)->lpVtbl -> GetEventType(This,pguidEventType) ) + +#define IESEvent_SetCompletionStatus(This,dwResult) \ + ( (This)->lpVtbl -> SetCompletionStatus(This,dwResult) ) + +#define IESEvent_GetData(This,pbData) \ + ( (This)->lpVtbl -> GetData(This,pbData) ) + +#define IESEvent_GetStringData(This,pbstrData) \ + ( (This)->lpVtbl -> GetStringData(This,pbstrData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IESEvent_INTERFACE_DEFINED__ */ + + +#ifndef __IESEvents_INTERFACE_DEFINED__ +#define __IESEvents_INTERFACE_DEFINED__ + +/* interface IESEvents */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IESEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ABD414BF-CFE5-4e5e-AF5B-4B4E49C5BFEB") + IESEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnESEventReceived( + /* [in] */ GUID guidEventType, + /* [in] */ __RPC__in_opt IESEvent *pESEvent) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IESEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IESEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IESEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IESEvents * This); + + DECLSPEC_XFGVIRT(IESEvents, OnESEventReceived) + HRESULT ( STDMETHODCALLTYPE *OnESEventReceived )( + __RPC__in IESEvents * This, + /* [in] */ GUID guidEventType, + /* [in] */ __RPC__in_opt IESEvent *pESEvent); + + END_INTERFACE + } IESEventsVtbl; + + interface IESEvents + { + CONST_VTBL struct IESEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IESEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IESEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IESEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IESEvents_OnESEventReceived(This,guidEventType,pESEvent) \ + ( (This)->lpVtbl -> OnESEventReceived(This,guidEventType,pESEvent) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IESEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IBroadcastEvent_INTERFACE_DEFINED__ +#define __IBroadcastEvent_INTERFACE_DEFINED__ + +/* interface IBroadcastEvent */ +/* [unique][helpstring][uuid][nonextensible][hidden][object] */ + + +EXTERN_C const IID IID_IBroadcastEvent; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3B21263F-26E8-489d-AAC4-924F7EFD9511") + IBroadcastEvent : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Fire( + /* [in] */ GUID EventID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBroadcastEventVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBroadcastEvent * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBroadcastEvent * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBroadcastEvent * This); + + DECLSPEC_XFGVIRT(IBroadcastEvent, Fire) + HRESULT ( STDMETHODCALLTYPE *Fire )( + __RPC__in IBroadcastEvent * This, + /* [in] */ GUID EventID); + + END_INTERFACE + } IBroadcastEventVtbl; + + interface IBroadcastEvent + { + CONST_VTBL struct IBroadcastEventVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBroadcastEvent_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBroadcastEvent_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBroadcastEvent_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBroadcastEvent_Fire(This,EventID) \ + ( (This)->lpVtbl -> Fire(This,EventID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBroadcastEvent_INTERFACE_DEFINED__ */ + + +#ifndef __IBroadcastEventEx_INTERFACE_DEFINED__ +#define __IBroadcastEventEx_INTERFACE_DEFINED__ + +/* interface IBroadcastEventEx */ +/* [unique][helpstring][uuid][nonextensible][hidden][object] */ + + +EXTERN_C const IID IID_IBroadcastEventEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3d9e3887-1929-423f-8021-43682de95448") + IBroadcastEventEx : public IBroadcastEvent + { + public: + virtual HRESULT STDMETHODCALLTYPE FireEx( + /* [in] */ GUID EventID, + /* [in] */ ULONG Param1, + /* [in] */ ULONG Param2, + /* [in] */ ULONG Param3, + /* [in] */ ULONG Param4) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBroadcastEventExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBroadcastEventEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBroadcastEventEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBroadcastEventEx * This); + + DECLSPEC_XFGVIRT(IBroadcastEvent, Fire) + HRESULT ( STDMETHODCALLTYPE *Fire )( + __RPC__in IBroadcastEventEx * This, + /* [in] */ GUID EventID); + + DECLSPEC_XFGVIRT(IBroadcastEventEx, FireEx) + HRESULT ( STDMETHODCALLTYPE *FireEx )( + __RPC__in IBroadcastEventEx * This, + /* [in] */ GUID EventID, + /* [in] */ ULONG Param1, + /* [in] */ ULONG Param2, + /* [in] */ ULONG Param3, + /* [in] */ ULONG Param4); + + END_INTERFACE + } IBroadcastEventExVtbl; + + interface IBroadcastEventEx + { + CONST_VTBL struct IBroadcastEventExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBroadcastEventEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBroadcastEventEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBroadcastEventEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBroadcastEventEx_Fire(This,EventID) \ + ( (This)->lpVtbl -> Fire(This,EventID) ) + + +#define IBroadcastEventEx_FireEx(This,EventID,Param1,Param2,Param3,Param4) \ + ( (This)->lpVtbl -> FireEx(This,EventID,Param1,Param2,Param3,Param4) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBroadcastEventEx_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_bdaiface_0000_0050 */ +/* [local] */ + +DEFINE_GUID(CLSID_BroadcastEventService, 0x0B3FFB92, 0x0919, 0x4934, 0x9D, 0x5B, 0x61, 0x9C, 0x71, 0x9D, 0x02, 0x02); +#define SID_SBroadcastEventService CLSID_BroadcastEventService +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0050_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdaiface_0000_0050_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdaiface.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdaiface.idl new file mode 100644 index 0000000000000000000000000000000000000000..dd7af9a976de4ed5484776864f63ebeff1bc8551 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdaiface.idl @@ -0,0 +1,2185 @@ +//------------------------------------------------------------------------------ +// File: BDAIface.idl +// +// Desc: This file defines the Ring 3 BDA interfaces that are common to +// all BDA network and device types. +// +// The interfaces specific to a particular Network Type or filter +// implementation are defined in a separate include file for that +// Network Type or filter implementation. +// +// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +//--------------------------------------------------------------------- +// IUnknown import idl +//--------------------------------------------------------------------- +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#ifndef DO_NO_IMPORTS +import "unknwn.idl"; +import "strmif.idl"; +import "BdaTypes.h"; +#endif + +#include "bdaiface_enums.h" + +//--------------------------------------------------------------------- +// +// IBDA_NetworkProvider interface +// +// Implemented by a BDA Network Provider +// +// Used by a BDA device filter to register itself with +// a Network Provider and query information about the +// the current tuning request. +// +//--------------------------------------------------------------------- +[ + object, + uuid(fd501041-8ebe-11ce-8183-00aa00577da2), + pointer_default(unique) +] + +interface IBDA_NetworkProvider : IUnknown +{ + + HRESULT + PutSignalSource ( + [in] ULONG ulSignalSource + ); + + + HRESULT + GetSignalSource ( + [in, out] ULONG * pulSignalSource + ); + + HRESULT + GetNetworkType ( + [in, out] GUID * pguidNetworkType + ); + + HRESULT + PutTuningSpace ( + [in] REFGUID guidTuningSpace + ); + + HRESULT + GetTuningSpace ( + [in, out] GUID * pguidTuingSpace + ); + + HRESULT + RegisterDeviceFilter ( + [in] IUnknown * pUnkFilterControl, + [in, out] ULONG * ppvRegisitrationContext + ); + + HRESULT + UnRegisterDeviceFilter ( + [in] ULONG pvRegistrationContext + ); + +} + +//--------------------------------------------------------------------- +// +// IBDA_EthernetFilter interface +// +// Implemented by a BDA Network Provider +// +// Used by an Ethernet Network Data Sink filter (eg. IPSink) to +// request that the Network Provider make its best effort to tune +// to the stream(s) on which a list of Ethernet multicast addresses +// may be transmitted. +// +// Addresses in the address list are byte aligned in Network order. +// UlcbAddresses will always be an integer multiple of the +// size of an ethernet address. +// +//--------------------------------------------------------------------- +[ + object, + uuid(71985F43-1CA1-11d3-9CC8-00C04F7971E0), + pointer_default(unique) +] + +interface IBDA_EthernetFilter : IUnknown +{ + HRESULT + GetMulticastListSize ( + [in, out] ULONG * pulcbAddresses + ); + + HRESULT + PutMulticastList ( + [in] ULONG ulcbAddresses, + [in, size_is(ulcbAddresses)] BYTE pAddressList [] + ); + + HRESULT + GetMulticastList ( + [in, out] ULONG * pulcbAddresses, + [in, out, size_is(*pulcbAddresses)] BYTE pAddressList [] + ); + + HRESULT + PutMulticastMode ( + [in] ULONG ulModeMask + ); + + HRESULT + GetMulticastMode ( + [out] ULONG * pulModeMask + ); + +} + + + +//--------------------------------------------------------------------- +// +// IBDA_IPV4Filter interface +// +// Implemented by a BDA Network Provider +// +// Used by an IPv4 Network Data Sink filter to request +// that the Network Provider make its best effort to tune +// to the stream(s) on which a list of IPv4 multicast addresses +// may be transmitted. +// +// Addresses in the address list are byte aligned in Network order. +// UlcbAddresses will always be an integer multiple of the +// size of an IPv4 address. +// +//--------------------------------------------------------------------- +[ + object, + uuid(71985F44-1CA1-11d3-9CC8-00C04F7971E0), + pointer_default(unique) +] + +interface IBDA_IPV4Filter : IUnknown +{ + + HRESULT + GetMulticastListSize ( + [in, out] ULONG * pulcbAddresses + ); + + HRESULT + PutMulticastList ( + [in] ULONG ulcbAddresses, + [in, size_is(ulcbAddresses)] BYTE pAddressList [] + ); + + HRESULT + GetMulticastList ( + [in, out] ULONG * pulcbAddresses, + [out, size_is(*pulcbAddresses)] BYTE pAddressList [] + ); + + HRESULT + PutMulticastMode ( + [in] ULONG ulModeMask + ); + + HRESULT + GetMulticastMode ( + [out] ULONG* pulModeMask + ); +} + + + +//--------------------------------------------------------------------- +// +// IBDA_IPV6Filter interface +// +// Implemented by a BDA Network Provider +// +// Used by an IPv6 Network Data Sink filter to request +// that the Network Provider make its best effort to tune +// to the stream(s) on which a list of IPv6 multicast addresses +// may be transmitted. +// +// Addresses in the address list are byte aligned in Network order. +// UlcbAddresses will always be an integer multiple of the +// size of an IPv6 address. +// +//--------------------------------------------------------------------- +[ + object, + uuid(E1785A74-2A23-4fb3-9245-A8F88017EF33), + pointer_default(unique) +] + +interface IBDA_IPV6Filter : IUnknown +{ + + HRESULT + GetMulticastListSize ( + [in, out] ULONG * pulcbAddresses + ); + + HRESULT + PutMulticastList ( + [in] ULONG ulcbAddresses, + [in, size_is(ulcbAddresses)] BYTE pAddressList [] + ); + + HRESULT + GetMulticastList ( + [in, out] ULONG * pulcbAddresses, + [out, size_is(*pulcbAddresses)] BYTE pAddressList [] + ); + + HRESULT + PutMulticastMode ( + [in] ULONG ulModeMask + ); + + HRESULT + GetMulticastMode ( + [out] ULONG* pulModeMask + ); +} + + + +//--------------------------------------------------------------------- +// +// IBDA_DeviceControl interface +// +// Implemented by a BDA Device Filter +// +// Used by the Network Provider to commit a series of changes +// on a BDA device filter. The device filter validates and +// accumulates all changes requested after StartChanges(). It +// effects the accumulated list of changes when CommitChanges() is +// called. +// +//--------------------------------------------------------------------- +[ + object, + uuid(FD0A5AF3-B41D-11d2-9C95-00C04F7971E0), + pointer_default(unique) +] + +interface IBDA_DeviceControl : IUnknown +{ + HRESULT + StartChanges ( + void + ); + + HRESULT + CheckChanges ( + void + ); + + HRESULT + CommitChanges ( + void + ); + + HRESULT + GetChangeState ( + [in, out] ULONG * pState + ); + +} + + + +//--------------------------------------------------------------------- +// +// IBDA_PinControl interface +// +// Implemented by a BDA Device Filter's Pin +// +// Used by the Network Provider to determine the BDA PinID and +// PinType on a BDA Filter's Pin +// +//--------------------------------------------------------------------- +[ + object, + uuid(0DED49D5-A8B7-4d5d-97A1-12B0C195874D), + pointer_default(unique) +] + +interface IBDA_PinControl : IUnknown +{ + HRESULT + GetPinID ( + [in, out] ULONG * pulPinID + ); + + HRESULT + GetPinType ( + [in, out] ULONG * pulPinType + ); + + HRESULT + RegistrationContext ( + [in, out] ULONG * pulRegistrationCtx + ); +} + + + +//--------------------------------------------------------------------- +// +// IBDA_SignalProperties interface +// +// Implemented by a BDA Device Filter +// +// BDA Signal Properties is used by a Network Provider to inform +// a BDA Device Filter about the current tuning request. The +// Network Provider will call the Put functions when the BDA +// device is first registered with the Network Provider and whenever +// the current tuning request is modified. +// +//--------------------------------------------------------------------- +[ + object, + uuid(D2F1644B-B409-11d2-BC69-00A0C9EE9E16), + pointer_default(unique) +] + +interface IBDA_SignalProperties : IUnknown +{ + HRESULT + PutNetworkType ( + [in] REFGUID guidNetworkType + ); + + HRESULT + GetNetworkType ( + [in, out] GUID * pguidNetworkType + ); + + HRESULT + PutSignalSource ( + [in] ULONG ulSignalSource + ); + + HRESULT + GetSignalSource ( + [in, out] ULONG * pulSignalSource + ); + + HRESULT + PutTuningSpace ( + [in] REFGUID guidTuningSpace + ); + + HRESULT + GetTuningSpace ( + [in, out] GUID * pguidTuingSpace + ); +} + + +//--------------------------------------------------------------------- +// +// IBDA_SignalStatistics interface +// +// Implemented by a BDA Control Node +// +// A BDA Control Node may return these properties to describe +// the condition of a signal that is being received. +// +// +// +// +//--------------------------------------------------------------------- +[ + object, + uuid(1347D106-CF3A-428a-A5CB-AC0D9A2A4338), + pointer_default(unique) +] + +interface IBDA_SignalStatistics : IUnknown +{ + HRESULT + put_SignalStrength ( + [in] LONG lDbStrength + ); + + HRESULT + get_SignalStrength ( + [in, out] LONG * plDbStrength + ); + + HRESULT + put_SignalQuality ( + [in] LONG lPercentQuality + ); + + HRESULT + get_SignalQuality ( + [in, out] LONG * plPercentQuality + ); + + HRESULT + put_SignalPresent ( + [in] BOOLEAN fPresent + ); + + HRESULT + get_SignalPresent ( + [in, out] BOOLEAN * pfPresent + ); + + HRESULT + put_SignalLocked ( + [in] BOOLEAN fLocked + ); + + HRESULT + get_SignalLocked ( + [in, out] BOOLEAN * pfLocked + ); + + HRESULT + put_SampleTime ( + [in] LONG lmsSampleTime + ); + + HRESULT + get_SampleTime ( + [in, out] LONG * plmsSampleTime + ); +} + + +//--------------------------------------------------------------------- +// +// IBDA_Topology interface +// +// Implemented by a BDA Device Filter +// +// Used by the Network Provider to query a BDA Device Filter's +// possible topologies (template topology) and to configure +// the device with an appropriate topology for the current +// tuning request. It is also used to get an IUnknown to +// a control node which may be used to set specific tuning +// information. +// +//--------------------------------------------------------------------- +[ + object, + uuid(79B56888-7FEA-4690-B45D-38FD3C7849BE), + pointer_default(unique) +] + +interface IBDA_Topology : IUnknown +{ + HRESULT + GetNodeTypes ( + [in, out] ULONG * pulcNodeTypes, + [in] ULONG ulcNodeTypesMax, + [in, out, size_is (ulcNodeTypesMax)] ULONG rgulNodeTypes[] + ); + + HRESULT + GetNodeDescriptors ( + [in, out] ULONG * ulcNodeDescriptors, + [in] ULONG ulcNodeDescriptorsMax, + [in, out, size_is (ulcNodeDescriptorsMax)] BDANODE_DESCRIPTOR rgNodeDescriptors[] + ); + + HRESULT + GetNodeInterfaces ( + [in] ULONG ulNodeType, + [in, out] ULONG * pulcInterfaces, + [in] ULONG ulcInterfacesMax, + [in, out, size_is (ulcInterfacesMax)] GUID rgguidInterfaces[] + ); + + HRESULT + GetPinTypes ( + [in, out] ULONG * pulcPinTypes, + [in] ULONG ulcPinTypesMax, + [in, out, size_is (ulcPinTypesMax)] ULONG rgulPinTypes[] + ); + + HRESULT + GetTemplateConnections ( + [in, out] ULONG * pulcConnections, + [in] ULONG ulcConnectionsMax, + [in, out, size_is (ulcConnectionsMax)] BDA_TEMPLATE_CONNECTION rgConnections[] + ); + + HRESULT + CreatePin ( + [in] ULONG ulPinType, + [in, out] ULONG * pulPinId + ); + + HRESULT + DeletePin ( + [in] ULONG ulPinId + ); + + HRESULT + SetMediaType ( + [in] ULONG ulPinId, + [in] AM_MEDIA_TYPE * pMediaType + ); + + HRESULT + SetMedium ( + [in] ULONG ulPinId, + [in] REGPINMEDIUM * pMedium + ); + + HRESULT + CreateTopology ( + [in] ULONG ulInputPinId, + [in] ULONG ulOutputPinId + ); + + HRESULT + GetControlNode ( + [in] ULONG ulInputPinId, + [in] ULONG ulOutputPinId, + [in] ULONG ulNodeType, + [in, out] IUnknown ** ppControlNode + ); +} + +//--------------------------------------------------------------------- +// IBDA_VoidTransform interface +//--------------------------------------------------------------------- +[ + object, + uuid(71985F46-1CA1-11d3-9CC8-00C04F7971E0), + pointer_default(unique) +] + +interface IBDA_VoidTransform : IUnknown +{ + HRESULT + Start ( + void + ); + + HRESULT + Stop ( + void + ); + +} + +//--------------------------------------------------------------------- +// IBDA_NullTransform interface +//--------------------------------------------------------------------- +[ + object, + uuid(DDF15B0D-BD25-11d2-9CA0-00C04F7971E0), + pointer_default(unique) +] + +interface IBDA_NullTransform : IUnknown +{ + HRESULT + Start ( + void + ); + + HRESULT + Stop ( + void + ); + +} + +//--------------------------------------------------------------------- +// IBDA_FrequencyFilter interface +//--------------------------------------------------------------------- +[ + object, + uuid(71985F47-1CA1-11d3-9CC8-00C04F7971E0), + pointer_default(unique) +] + +interface IBDA_FrequencyFilter : IUnknown +{ + HRESULT + put_Autotune ( + [in] ULONG ulTransponder + ); + + HRESULT + get_Autotune ( + [in, out] ULONG * pulTransponder + ); + + HRESULT + put_Frequency ( + [in] ULONG ulFrequency + ); + + HRESULT + get_Frequency ( + [in, out] ULONG * pulFrequency + ); + + HRESULT + put_Polarity ( + [in] Polarisation Polarity + ); + + HRESULT + get_Polarity ( + [in, out] Polarisation * pPolarity + ); + + HRESULT + put_Range ( + [in] ULONG ulRange + ); + + HRESULT + get_Range ( + [in, out] ULONG * pulRange + ); + + HRESULT + put_Bandwidth ( + [in] ULONG ulBandwidth + ); + + HRESULT + get_Bandwidth ( + [in, out] ULONG * pulBandwidth + ); + + HRESULT + put_FrequencyMultiplier ( + [in] ULONG ulMultiplier + ); + + HRESULT + get_FrequencyMultiplier ( + [in, out] ULONG * pulMultiplier + ); +} + + +//--------------------------------------------------------------------- +// IBDA_LNBInfo interface +//--------------------------------------------------------------------- +[ + object, + uuid(992CF102-49F9-4719-A664-C4F23E2408F4), + pointer_default(unique) +] + +interface IBDA_LNBInfo : IUnknown +{ + HRESULT + put_LocalOscilatorFrequencyLowBand ( + [in] ULONG ulLOFLow + ); + + HRESULT + get_LocalOscilatorFrequencyLowBand ( + [in, out] ULONG * pulLOFLow + ); + + HRESULT + put_LocalOscilatorFrequencyHighBand ( + [in] ULONG ulLOFHigh + ); + + HRESULT + get_LocalOscilatorFrequencyHighBand ( + [in, out] ULONG * pulLOFHigh + ); + + HRESULT + put_HighLowSwitchFrequency ( + [in] ULONG ulSwitchFrequency + ); + + HRESULT + get_HighLowSwitchFrequency ( + [in, out] ULONG * pulSwitchFrequency + ); +} + +//--------------------------------------------------------------------- +// IBDA_DiseqCommand interface +//--------------------------------------------------------------------- +[ + object, + uuid(F84E2AB0-3C6B-45e3-A0FC-8669D4B81F11), + pointer_default(unique) +] + +interface IBDA_DiseqCommand : IUnknown +{ + HRESULT + put_EnableDiseqCommands ( + [in] BOOLEAN bEnable + ); + + HRESULT + put_DiseqLNBSource ( + [in] ULONG ulLNBSource + ); + + HRESULT + put_DiseqUseToneBurst ( + [in] BOOLEAN bUseToneBurst + ); + + HRESULT + put_DiseqRepeats ( + [in] ULONG ulRepeats + ); + + HRESULT + put_DiseqSendCommand ( + [in] ULONG ulRequestId, + [in] ULONG ulcbCommandLen, + [in, size_is(ulcbCommandLen)] BYTE *pbCommand + ); + + HRESULT + get_DiseqResponse ( + [in] ULONG ulRequestId, + [in, out] ULONG* pulcbResponseLen, + [in, out, size_is(*pulcbResponseLen)] BYTE pbResponse[] + ); +} + +//--------------------------------------------------------------------- +// IBDA_AutoDemodulate interface +//--------------------------------------------------------------------- +[ + object, + uuid(DDF15B12-BD25-11d2-9CA0-00C04F7971E0), + pointer_default(unique) +] + +interface IBDA_AutoDemodulate : IUnknown +{ + HRESULT + put_AutoDemodulate ( + void + ); +} + +//--------------------------------------------------------------------- +// IBDA_AutoDemodulateEx interface +//--------------------------------------------------------------------- +[ + object, + uuid(34518D13-1182-48e6-B28F-B24987787326), + pointer_default(unique) +] + +interface IBDA_AutoDemodulateEx : IBDA_AutoDemodulate +{ + HRESULT + get_SupportedDeviceNodeTypes( + [in] ULONG ulcDeviceNodeTypesMax, + [out] ULONG *pulcDeviceNodeTypes, + [in, out] GUID *pguidDeviceNodeTypes + ); + + HRESULT + get_SupportedVideoFormats( + [out] ULONG /* AMTunerModeType */ *pulAMTunerModeType, + [out] ULONG /* AnalogVideoStandard */ *pulAnalogVideoStandard + ); + + HRESULT + get_AuxInputCount( + [in, out] ULONG *pulCompositeCount, + [in, out] ULONG *pulSvideoCount + ); +} + +//--------------------------------------------------------------------- +// IBDA_DigitalDemodulator interface +//--------------------------------------------------------------------- +[ + object, + uuid(EF30F379-985B-4d10-B640-A79D5E04E1E0), + pointer_default(unique) +] + +interface IBDA_DigitalDemodulator : IUnknown +{ + HRESULT + put_ModulationType ( + [in] ModulationType * pModulationType + ); + + HRESULT + get_ModulationType ( + [in, out] ModulationType * pModulationType + ); + + HRESULT + put_InnerFECMethod ( + [in] FECMethod * pFECMethod + ); + + HRESULT + get_InnerFECMethod ( + [in, out] FECMethod * pFECMethod + ); + + HRESULT + put_InnerFECRate ( + [in] BinaryConvolutionCodeRate * pFECRate + ); + + HRESULT + get_InnerFECRate ( + [in, out] BinaryConvolutionCodeRate * pFECRate + ); + + HRESULT + put_OuterFECMethod ( + [in] FECMethod * pFECMethod + ); + + HRESULT + get_OuterFECMethod ( + [in, out] FECMethod * pFECMethod + ); + + HRESULT + put_OuterFECRate ( + [in] BinaryConvolutionCodeRate * pFECRate + ); + + HRESULT + get_OuterFECRate ( + [in, out] BinaryConvolutionCodeRate * pFECRate + ); + + HRESULT + put_SymbolRate ( + [in] ULONG * pSymbolRate + ); + + HRESULT + get_SymbolRate ( + [in, out] ULONG * pSymbolRate + ); + + HRESULT + put_SpectralInversion ( + [in] SpectralInversion * pSpectralInversion + ); + + HRESULT + get_SpectralInversion ( + [in, out] SpectralInversion * pSpectralInversion + ); +} + +//--------------------------------------------------------------------- +// IBDA_DigitalDemodulator2 interface +//--------------------------------------------------------------------- + +[ + object, + uuid(525ED3EE-5CF3-4e1e-9A06-5368A84F9A6E), + pointer_default(unique) +] +interface IBDA_DigitalDemodulator2 : IBDA_DigitalDemodulator +{ + HRESULT + put_GuardInterval ( + [in] GuardInterval * pGuardInterval + ); + + HRESULT + get_GuardInterval ( + [in, out] GuardInterval * pGuardInterval + ); + + HRESULT + put_TransmissionMode ( + [in] TransmissionMode * pTransmissionMode + ); + + HRESULT + get_TransmissionMode ( + [in, out] TransmissionMode * pTransmissionMode + ); + + HRESULT + put_RollOff ( + [in] RollOff * pRollOff + ); + + HRESULT + get_RollOff ( + [in, out] RollOff * pRollOff + ); + + HRESULT + put_Pilot ( + [in] Pilot * pPilot + ); + + HRESULT + get_Pilot ( + [in, out] Pilot * pPilot + ); +} + +//--------------------------------------------------------------------- +// IBDA_DigitalDemodulator3 interface +//--------------------------------------------------------------------- + +[ + object, + uuid(13F19604-7D32-4359-93A2-A05205D90AC9), + pointer_default(unique) +] +interface IBDA_DigitalDemodulator3 : IBDA_DigitalDemodulator2 +{ + HRESULT + put_SignalTimeouts ( + [in] BDA_SIGNAL_TIMEOUTS * pSignalTimeouts + ); + + HRESULT + get_SignalTimeouts ( + [in, out] BDA_SIGNAL_TIMEOUTS * pSignalTimeouts + ); + + HRESULT + put_PLPNumber ( + [in] ULONG * pPLPNumber + ); + + HRESULT + get_PLPNumber ( + [in, out] ULONG * pPLPNumber + ); +} + +typedef enum +{ + KSPROPERTY_IPSINK_MULTICASTLIST, + KSPROPERTY_IPSINK_ADAPTER_DESCRIPTION, + KSPROPERTY_IPSINK_ADAPTER_ADDRESS + +} KSPROPERTY_IPSINK; + + + +//--------------------------------------------------------------------- +// ICCSubStreamFiltering interface +// +// Sets the filtering on the closed captioning (CC) pins +// of the VBICodec filter. +//--------------------------------------------------------------------- +[ + object, + uuid(4B2BD7EA-8347-467b-8DBF-62F784929CC3), + helpstring("ICCSubStreamFiltering Interface"), + pointer_default(unique) +] +interface ICCSubStreamFiltering : IUnknown +{ + [propget, helpstring("property SubstreamTypes")] HRESULT SubstreamTypes( [out, retval] long* pTypes ); + [propput, helpstring("property SubstreamTypes")] HRESULT SubstreamTypes( [in] long Types ); +}; + +//--------------------------------------------------------------------- +// IBDA_IPSinkControl interface (mutlimedia\filters.ks\ipsink) +// IBDA_IPSinkInfo interface +// +// IBDA_IPSinkControl is no longer being supported for Ring3 clients. +// Use the BDA_IPSinkInfo interface instead. +//--------------------------------------------------------------------- + +[ + object, + uuid(3F4DC8E2-4050-11d3-8F4B-00C04F7971E2), + pointer_default(unique), + helpstring("Not supported - Use IBDA_IPSinkInfo instead") +] +interface IBDA_IPSinkControl : IUnknown +{ + HRESULT GetMulticastList ( + [in, out] unsigned long *pulcbSize, + [in, out] BYTE **pbBuffer + ); + + + HRESULT GetAdapterIPAddress ( + [in,out] unsigned long *pulcbSize, + [in,out] BYTE **pbBuffer + ); + +} + +[ + object, + uuid(A750108F-492E-4d51-95F7-649B23FF7AD7), + pointer_default(unique) +] +interface IBDA_IPSinkInfo : IUnknown +{ + HRESULT get_MulticastList ( // returns N 6-byte 802.3 IP addreses. + [in, out] ULONG * pulcbAddresses, // 6*N + [out, size_is(*pulcbAddresses)] BYTE **ppbAddressList // Allocated by caller, must deallocate in callee with CoTaskMemFree() + ); + + HRESULT get_AdapterIPAddress ( + [out] BSTR *pbstrBuffer + ); + + HRESULT get_AdapterDescription ( + [out] BSTR *pbstrBuffer + ); +} +// +// mpeg-2 demultiplexer-specific interfaces follow +// + +//--------------------------------------------------------------------- +// IEnumPIDMap interface +//--------------------------------------------------------------------- + +#ifdef REMOVE_THESE +typedef enum { + MEDIA_TRANSPORT_PACKET, // complete TS packet e.g. pass-through mode + MEDIA_ELEMENTARY_STREAM, // PES payloads; audio/video only + MEDIA_MPEG2_PSI, // PAT, PMT, CAT, Private + MEDIA_TRANSPORT_PAYLOAD // gathered TS packet payloads (PES packets, etc...) +} MEDIA_SAMPLE_CONTENT ; + +typedef struct { + ULONG ulPID ; + MEDIA_SAMPLE_CONTENT MediaSampleContent ; +} PID_MAP ; +#endif // REMOVE_THESE + +[ + object, + uuid (afb6c2a2-2c41-11d3-8a60-0000f81e0e4a), + pointer_default(unique) +] +interface IEnumPIDMap : IUnknown +{ + HRESULT + Next ( + [in] ULONG cRequest, + [in, out, size_is (cRequest)] PID_MAP * pPIDMap, + [out] ULONG * pcReceived + ) ; + + HRESULT + Skip ( + [in] ULONG cRecords + ) ; + + HRESULT + Reset ( + ) ; + + HRESULT + Clone ( + [out] IEnumPIDMap ** ppIEnumPIDMap + ) ; +} ; + +//--------------------------------------------------------------------- +// IMPEG2PIDMap interface +//--------------------------------------------------------------------- + +[ + object, + uuid (afb6c2a1-2c41-11d3-8a60-0000f81e0e4a), + pointer_default(unique) +] +interface IMPEG2PIDMap : IUnknown +{ + HRESULT + MapPID ( + [in] ULONG culPID, + [in] ULONG * pulPID, + [in] MEDIA_SAMPLE_CONTENT MediaSampleContent + ) ; + + HRESULT + UnmapPID ( + [in] ULONG culPID, + [in] ULONG * pulPID + ) ; + + HRESULT + EnumPIDMap ( + [out] IEnumPIDMap ** pIEnumPIDMap + ) ; +} ; + +//--------------------------------------------------------------------- +// IFrequencyMap interface +// Currently implemented on the TIF. The interface can be QIed on the NP +//--------------------------------------------------------------------- + + + [ + object, + uuid(06FB45C1-693C-4ea7-B79F-7A6A54D8DEF2), + helpstring("IFrequencyMap Interface"), + pointer_default(unique), + hidden, restricted + ] + + interface IFrequencyMap : IUnknown + { + [helpstring("method get_FrequencyMapping")] + HRESULT + get_FrequencyMapping( + [out] ULONG* ulCount, + [out, size_is(1, *ulCount)] ULONG** ppulList + ); + [helpstring("method put_FrequencyMapping")] + HRESULT + put_FrequencyMapping( + [in] ULONG ulCount, + [in, size_is(ulCount)] ULONG pList[] + ); + [helpstring("method get_CountryCode")] + HRESULT + get_CountryCode( + [out] ULONG *pulCountryCode + ); + [helpstring("method put_CountryCode")] + HRESULT + put_CountryCode( + [in] ULONG ulCountryCode + ); + + [helpstring("method get_DefaultFrequencyMapping")] + HRESULT + get_DefaultFrequencyMapping( + [in] ULONG ulCountryCode, + [out] ULONG* pulCount, + [out, size_is(1, *pulCount)] ULONG** ppulList + ); + + + [helpstring("method get_CountryCodeList")] + HRESULT + get_CountryCodeList( + [out] ULONG* pulCount, + [out, size_is(1, *pulCount)] ULONG** ppulList + ); + }; + +//--------------------------------------------------------------------- +// IBDA_EasMessage interface +// Currently implemented on the TIF and registered as a service by TIF. +//--------------------------------------------------------------------- + + [ + object, + uuid(D806973D-3EBE-46de-8FBB-6358FE784208), + helpstring("IBDA_EasMessage Interface"), + pointer_default(unique), + hidden, restricted + ] + + interface IBDA_EasMessage : IUnknown + { + [helpstring("method get_EasMessage")] + HRESULT + get_EasMessage( + [in] ULONG ulEventID, + [in, out] IUnknown ** ppEASObject + ); + }; + +cpp_quote("#define SID_BDA_EasMessage __uuidof(IBDA_EasMessage)") + +//--------------------------------------------------------------------- +// IBDA_TransportStreamInfo interface +// Currently implemented on the TIF and registered as a service by TIF. +//--------------------------------------------------------------------- + + [ + object, + uuid(8E882535-5F86-47AB-86CF-C281A72A0549), + helpstring("IBDA_TransportStreamInfo Interface"), + pointer_default(unique), + hidden, restricted + ] + + interface IBDA_TransportStreamInfo : IUnknown + { + [helpstring("method get_PatTableTickCount")] + HRESULT + get_PatTableTickCount( + [out] ULONG * pPatTickCount + ); + }; + +cpp_quote("#define SID_BDA_TransportStreamInfo __uuidof(IBDA_TransportStreamInfo)") + +//--------------------------------------------------------------------- +// IBDA_ConditionalAccess interface +//--------------------------------------------------------------------- +[ + object, + uuid(CD51F1E0-7BE9-4123-8482-A2A796C0A6B0), + helpstring("IBDA_ConditionalAccess Interface"), + pointer_default(unique) +] + +interface IBDA_ConditionalAccess : IUnknown +{ + [helpstring("method get_SmartCardStatus")] + HRESULT + get_SmartCardStatus( + [out] SmartCardStatusType* pCardStatus, + [out] SmartCardAssociationType *pCardAssociation, + [out] BSTR *pbstrCardError, + [out] VARIANT_BOOL *pfOOBLocked + ); + + [helpstring("method get_SmartCardInfo")] + HRESULT + get_SmartCardInfo( + [out] BSTR *pbstrCardName, + [out] BSTR *pbstrCardManufacturer, + [out] VARIANT_BOOL *pfDaylightSavings, + [out] BYTE *pbyRatingRegion, + [out] LONG *plTimeZoneOffsetMinutes, + [out] BSTR *pbstrLanguage, + [out] EALocationCodeType *pEALocationCode + ); + + [helpstring("method get_SmartCardApplications")] + HRESULT + get_SmartCardApplications( + [in, out] ULONG * pulcApplications, + [in] ULONG ulcApplicationsMax, + [in, out, size_is (ulcApplicationsMax)] SmartCardApplication rgApplications[] + ); + + [helpstring("method get_Entitlement")] + HRESULT + get_Entitlement( + [in] USHORT usVirtualChannel, + [out] EntitlementType *pEntitlement + ); + + [helpstring("method TuneByChannel")] + HRESULT + TuneByChannel( + [in] USHORT usVirtualChannel + ); + + [helpstring("method SetProgram")] + HRESULT + SetProgram( + [in] USHORT usProgramNumber + ); + + [helpstring("method AddProgram")] + HRESULT + AddProgram( + [in] USHORT usProgramNumber + ); + + [helpstring("method RemoveProgram")] + HRESULT + RemoveProgram( + [in] USHORT usProgramNumber + ); + + [helpstring("method GetModuleUI")] + HRESULT + GetModuleUI( + [in] BYTE byDialogNumber, + [out] BSTR *pbstrURL + ); + + [helpstring("method InformUIClosed")] + HRESULT + InformUIClosed( + [in] BYTE byDialogNumber, + [in] UICloseReasonType CloseReason + ); + +} + +cpp_quote("#define SID_BDA_ConditionalAccess __uuidof(IBDA_ConditionalAccess)") + +//--------------------------------------------------------------------- +// IBDA_DiagnosticProperties interface +//--------------------------------------------------------------------- + + [ + object, + uuid(20e80cb5-c543-4c1b-8eb3-49e719eee7d4), + helpstring("IBDA_DiagnosticProperties Interface"), + pointer_default(unique), + ] + + interface IBDA_DiagnosticProperties : IPropertyBag + { + }; + +cpp_quote("#define SID_BDA_DiagnosticProperties __uuidof(IBDA_DiagnosticProperties)") + +//--------------------------------------------------------------------- +// IBDA_DRM interface +//--------------------------------------------------------------------- + + [ + object, + uuid(F98D88B0-1992-4cd6-A6D9-B9AFAB99330D), + helpstring("IBDA_DRM Interface"), + pointer_default(unique), + ] + + interface IBDA_DRM : IUnknown + { + // Get the DRM pairing status + HRESULT GetDRMPairingStatus([out] DWORD* pdwStatus, // Bit array indicating the status of DRM pairing + [out] HRESULT* phError); // Error code returned + // Request a DRM pairing + HRESULT PerformDRMPairing(BOOL fSync); + }; + +cpp_quote("#define SID_BDA_DRM __uuidof(IBDA_DRM)") + +//--------------------------------------------------------------------- +// IBDA_NameValueService interface +//--------------------------------------------------------------------- +[ + object, + uuid(7F0B3150-7B81-4ad4-98E3-7E9097094301), + helpstring("IBDA_NameValueService Interface"), + pointer_default(unique) +] +interface IBDA_NameValueService : IUnknown +{ + + [helpstring("method GetNameByIndex")] + HRESULT + GetValueNameByIndex( + [in] ULONG ulIndex, + [out] BSTR *pbstrName + ); + + [helpstring("method GetValue")] + HRESULT + GetValue( + [in] BSTR bstrName, + [in] BSTR bstrLanguage, + [out] BSTR *pbstrValue + ); + + [helpstring("method SetValue")] + HRESULT + SetValue( + [in] ULONG ulDialogRequest, + [in] BSTR bstrLanguage, + [in] BSTR bstrName, + [in] BSTR bstrValue, + [in] ULONG ulReserved + ); + +}; + + +cpp_quote("#define SID_BDA_NameValueService __uuidof(IBDA_NameValueService)") + + +//--------------------------------------------------------------------- +// IBDA_ConditionalAccessEx interface +//--------------------------------------------------------------------- +[ + object, + uuid(497C3418-23CB-44ba-BB62-769F506FCEA7), + helpstring("IBDA_ConditionalAccessEx Interface"), + pointer_default(unique) +] + +interface IBDA_ConditionalAccessEx : IUnknown +{ + [helpstring("method CheckEntitlementToken")] + HRESULT + CheckEntitlementToken( + [in] ULONG ulDialogRequest, + [in] BSTR bstrLanguage, + [in] BDA_CONDITIONALACCESS_REQUESTTYPE RequestType, + [in] ULONG ulcbEntitlementTokenLen, + [in, size_is(ulcbEntitlementTokenLen)] BYTE *pbEntitlementToken, + [out] ULONG *pulDescrambleStatus + ); + + [helpstring("method SetCaptureToken")] + HRESULT + SetCaptureToken( + [in] ULONG ulcbCaptureTokenLen, + [in, size_is(ulcbCaptureTokenLen)] BYTE *pbCaptureToken + ); + + [helpstring("method OpenBroadcastMmi")] + HRESULT + OpenBroadcastMmi( + [in] ULONG ulDialogRequest, + [in] BSTR bstrLanguage, + [in] ULONG EventId + ); + + [helpstring("method CloseMmiDialog")] + HRESULT + CloseMmiDialog( + [in] ULONG ulDialogRequest, + [in] BSTR bstrLanguage, + [in] ULONG ulDialogNumber, + [in] BDA_CONDITIONALACCESS_MMICLOSEREASON ReasonCode, + [out] ULONG *pulSessionResult + ); + + + [helpstring("method CreateDialogRequestNumber")] + HRESULT + CreateDialogRequestNumber( + [out] ULONG *pulDialogRequestNumber + ); +}; + +cpp_quote("#define SID_BDA_ConditionalAccessEx __uuidof(IBDA_ConditionalAccessEx)") + +//--------------------------------------------------------------------- +// IBDA_ISDBConditionalAccess interface +//--------------------------------------------------------------------- +[ + object, + uuid(5E68C627-16C2-4e6c-B1E2-D00170CDAA0F), + helpstring("IBDA_ISDBConditionalAccess Interface"), + pointer_default(unique) +] + +interface IBDA_ISDBConditionalAccess : IUnknown +{ + [helpstring("method SetIsdbCasRequest")] + HRESULT + SetIsdbCasRequest( + [in] ULONG ulRequestId, + [in] ULONG ulcbRequestBufferLen, + [in, size_is(ulcbRequestBufferLen)] BYTE *pbRequestBuffer + ); +}; + +cpp_quote("#define SID_BDA_ISDBConditionalAccess __uuidof(IBDA_ISDBConditionalAccess)") + +//--------------------------------------------------------------------- +// IBDA_EventingService interface +//--------------------------------------------------------------------- +[ + object, + uuid(207C413F-00DC-4c61-BAD6-6FEE1FF07064), + helpstring("IBDA_EventingService Interface"), + pointer_default(unique) +] +interface IBDA_EventingService : IUnknown +{ + [helpstring("method CompleteEvent")] + HRESULT + CompleteEvent ( + [in] ULONG ulEventID, + [in] ULONG ulEventResult + ); + +} + +cpp_quote("#define SID_BDA_EventingService __uuidof(IBDA_EventingService)") + +//--------------------------------------------------------------------- +// IBDA_AUX interface +//--------------------------------------------------------------------- +[ + object, + uuid(7DEf4C09-6E66-4567-A819-F0E17F4A81AB), + helpstring("IBDA_AUX Interface"), + pointer_default(unique) +] +interface IBDA_AUX : IUnknown +{ + + [helpstring("method QueryCapabilities")] + HRESULT + QueryCapabilities( + [out] DWORD *pdwNumAuxInputsBSTR + ); + + [helpstring("method EnumCapability")] + HRESULT + EnumCapability( + [in] DWORD dwIndex, + [out] DWORD *dwInputID, + [out] GUID *pConnectorType, + [out] DWORD *ConnTypeNum, + [out] DWORD *NumVideoStds, + [out] ULONGLONG *AnalogStds + ); +}; + +cpp_quote("DEFINE_GUID(PBDA_AUX_CONNECTOR_TYPE_SVideo, 0xa0e905f4,0x24c9,0x4a54, 0xb7, 0x61, 0x21, 0x33, 0x55, 0xef, 0xc1, 0x3A);") +cpp_quote("DEFINE_GUID(PBDA_AUX_CONNECTOR_TYPE_Composite, 0xf6298b4c,0xc725,0x4d42, 0x84, 0x9b, 0x41, 0x0b, 0xbb, 0x14, 0xea, 0x62);") + +cpp_quote("#define SID_BDA_AUX __uuidof(IBDA_AUX)") +cpp_quote("DEFINE_GUID(CLSID_PBDA_AUX_DATA_TYPE, /* fd456373-3323-4090-adca-8ed45f55cf10 */") +cpp_quote("0xfd456373, 0x3323, 0x4090, 0xad, 0xca, 0x8e, 0xd4, 0x5f, 0x55, 0xcf, 0x10);") + +//--------------------------------------------------------------------- +// IBDA_Encoder interface +//--------------------------------------------------------------------- +[ + object, + uuid(3a8bad59-59fe-4559-a0ba-396cfaa98ae3), + helpstring("IBDA_ Encoder Interface"), + pointer_default(unique) +] +interface IBDA_Encoder : IUnknown +{ + + [helpstring("method QueryCapabilities")] + HRESULT + QueryCapabilities( + [out] DWORD *NumAudioFmts, + [out] DWORD *NumVideoFmts + ); + + [helpstring("method EnumAudioCapability")] + HRESULT + EnumAudioCapability( + [in] DWORD FmtIndex, + [out] DWORD *MethodID, + [out] DWORD *AlgorithmType, + [out] DWORD *SamplingRate, + [out] DWORD *BitDepth, + [out] DWORD *NumChannels + ); + + [helpstring("method EnumVideoCapability")] + HRESULT + EnumVideoCapability( + [in] DWORD FmtIndex, + [out] DWORD *MethodID, + [out] DWORD *AlgorithmType, + [out] DWORD *VerticalSize, + [out] DWORD *HorizontalSize, + [out] DWORD *AspectRatio, + [out] DWORD *FrameRateCode, + [out] DWORD *ProgressiveSequence + ); + + [helpstring("method SetParameters")] + HRESULT + SetParameters( + [in] DWORD AudioBitrateMode, + [in] DWORD AudioBitrate, + [in] DWORD AudioMethodID, + [in] DWORD AudioProgram, + [in] DWORD VideoBitrateMode, + [in] DWORD VideoBitrate, + [in] DWORD VideoMethodID + ); + + [helpstring("method GetState")] + HRESULT + GetState( + [out] DWORD *AudioBitrateMax, + [out] DWORD *AudioBitrateMin, + [out] DWORD *AudioBitrateMode, + [out] DWORD *AudioBitrateStepping, + [out] DWORD *AudioBitrate, + [out] DWORD *AudioMethodID, + [out] DWORD *AvailableAudioPrograms, + [out] DWORD *AudioProgram, + [out] DWORD *VideoBitrateMax, + [out] DWORD *VideoBitrateMin, + [out] DWORD *VideoBitrateMode, + [out] DWORD *VideoBitrate, + [out] DWORD *VideoBitrateStepping, + [out] DWORD *VideoMethodID, + [out] DWORD *SignalSourceID, + [out] ULONGLONG *SignalFormat, + [out] BOOL *SignalLock, + [out] LONG *SignalLevel, + [out] DWORD *SignalToNoiseRatio); + +}; + + +cpp_quote("#define SID_BDA_Encoder __uuidof(IBDA_Encoder)") +cpp_quote("DEFINE_GUID(CLSID_PBDA_Encoder_DATA_TYPE, /* 728fd6bc-5546-4716-b103-f899f5a1fa68 */") +cpp_quote("0x728fd6bc, 0x5546, 0x4716, 0xb1, 0x03, 0xf8, 0x99, 0xf5, 0xa1, 0xfa, 0x68);") +cpp_quote("#define PBDA_Encoder_Audio_AlgorithmType_MPEG1LayerII 0x00000000") +cpp_quote("#define PBDA_Encoder_Audio_AlgorithmType_AC3 0x00000001") +cpp_quote("#define PBDA_Encoder_Video_MPEG2PartII 0x00000000") +cpp_quote("#define PBDA_Encoder_Video_MPEG4Part10 0x00000001") +cpp_quote("#define PBDA_Encoder_Video_AVC 0x00000001") +cpp_quote("#define PBDA_Encoder_Video_H264 0x00000001") +cpp_quote("#define PBDA_Encoder_BitrateMode_Constant 0x00000001") +cpp_quote("#define PBDA_Encoder_BitrateMode_Variable 0x00000002") +cpp_quote("#define PBDA_Encoder_BitrateMode_Average 0x00000003") + +//--------------------------------------------------------------------- +// IBDA_FDC interface +//--------------------------------------------------------------------- +[ + object, + uuid(138adc7e-58ae-437f-b0b4-c9fe19d5b4ac), + helpstring("IBDA_ FDC Interface"), + pointer_default(unique) +] +interface IBDA_FDC : IUnknown +{ + + [helpstring("method GetStatus")] + HRESULT + GetStatus( + [out] DWORD *CurrentBitrate, + [out] BOOL *CarrierLock, + [out] DWORD *CurrentFrequency, + [out] BOOL *CurrentSpectrumInversion, + [out] BSTR *CurrentPIDList, + [out] BSTR *CurrentTIDList, + [out] BOOL *Overflow + ); + + [helpstring("method RequestTables")] + HRESULT + RequestTables( + [in] BSTR TableIDs + ); + + [helpstring("method AddPid")] + HRESULT + AddPid( + [in] BSTR PidsToAdd, + [out] DWORD *RemainingFilterEntries + ); + + [helpstring("method RemovePid")] + HRESULT + RemovePid( + [in] BSTR PidsToRemove + ); + + [helpstring("method AddTid")] + HRESULT + AddTid( + [in] BSTR TidsToAdd, + [out] BSTR *CurrentTidList + ); + + [helpstring("method RemoveTid")] + HRESULT + RemoveTid( + [in] BSTR TidsToRemove + ); + + [helpstring("method GetTableSection")] + HRESULT + GetTableSection( + [out] DWORD *Pid, + [in] DWORD MaxBufferSize, + [out] DWORD *ActualSize, + [out] BYTE *SecBuffer + ); + +cpp_quote("#define SID_BDA_FDC __uuidof(IBDA_FDC") +cpp_quote("DEFINE_GUID(CLSID_PBDA_FDC_DATA_TYPE, /* E7DBF9A0-22AB-4047-8E67-EF9AD504E729 */") +cpp_quote("0xe7dbf9a0, 0x22ab, 0x4047, 0x8e, 0x67, 0xef, 0x9a, 0xd5, 0x4, 0xe7, 0x29);") + +}; + + + +//--------------------------------------------------------------------- +// IBDA_GuideDataDeliveryService interface +//--------------------------------------------------------------------- +[ + object, + uuid(C0AFCB73-23E7-4bc6-BAFA-FDC167B4719F), + helpstring("IBDA_ GuideDataDeliveryService Interface"), + pointer_default(unique) +] +interface IBDA_GuideDataDeliveryService: IUnknown +{ + [helpstring("method GetGuideDataType")] + HRESULT + GetGuideDataType( + [out] GUID *pguidDataType + ); + + [helpstring("method GetGuideData")] + HRESULT + GetGuideData( + [in, out] ULONG *pulcbBufferLen, + [out] BYTE *pbBuffer, + [out] ULONG *pulGuideDataPercentageProgress + ); + + [helpstring("method RequestGuideDataUpdate")] + HRESULT + RequestGuideDataUpdate (); + + [helpstring("method GetTuneXmlFromServiceIdx ")] + HRESULT + GetTuneXmlFromServiceIdx( + [in] ULONG64 ul64ServiceIdx, + [out] BSTR *pbstrTuneXml + ); + + [helpstring("method GetServices")] + HRESULT + GetServices( + [in, out] ULONG *pulcbBufferLen, + [out] BYTE *pbBuffer + ); + + [helpstring("method GetServiceInfoFromTuneXml")] + HRESULT + GetServiceInfoFromTuneXml( + [in] BSTR bstrTuneXml, + [out] BSTR *pbstrServiceDescription + ); +} +cpp_quote("#define SID_BDA_GuideDataDeliveryService __uuidof(IBDA_GuideDataDeliveryService)") +cpp_quote("DEFINE_GUID(CLSID_PBDA_GDDS_DATA_TYPE, /* C80C0DF3-6052-4c16-9F56-C44C21F73C45 */") +cpp_quote("0xC80C0DF3, 0x6052, 0x4c16, 0x9F, 0x56, 0xC4, 0x4C, 0x21, 0xF7, 0x3C, 0x45);") + +//--------------------------------------------------------------------- +// IBDA_DRMService interface +//--------------------------------------------------------------------- +[ + object, + uuid(BFF6B5BB-B0AE-484c-9DCA-73528FB0B46E), + helpstring("IBDA_DRMService Interface"), + pointer_default(unique) +] +interface IBDA_DRMService: IUnknown +{ + [helpstring("method SetDRM")] + HRESULT SetDRM( + [in] GUID *puuidNewDrm + ); + + [helpstring("method GetDRMStatus")] + HRESULT GetDRMStatus( + [out] BSTR* pbstrDrmUuidList, + [out] GUID* DrmUuid + ); + +} + +cpp_quote("#define SID_BDA_DRMService __uuidof(IBDA_DRMService)") + +//--------------------------------------------------------------------- +// IBDA_WMDRMSession interface +//--------------------------------------------------------------------- +[ + object, + uuid(4BE6FA3D-07CD-4139-8B80-8C18BA3AEC88), + helpstring("IBDA_WMDRMSession Interface"), + pointer_default(unique) +] +interface IBDA_WMDRMSession: IUnknown +{ + + [helpstring("method GetStatus")] + HRESULT GetStatus ( + [out] ULONG* MaxCaptureToken, + [out] ULONG* MaxStreamingPid, + [out] ULONG* MaxLicense, + [out] ULONG* MinSecurityLevel, + [out] ULONG* RevInfoSequenceNumber, + [out] ULONGLONG* RevInfoIssuedTime, + [out] ULONG* RevInfoTTL, + [out] ULONG* RevListVersion, + [out] ULONG* ulState + ); + + [helpstring("method SetRevInfo ")] + HRESULT SetRevInfo ( + [in] ULONG ulRevInfoLen, + [in, size_is(ulRevInfoLen)] BYTE* pbRevInfo + ); + + [helpstring("method SetCrl ")] + HRESULT SetCrl ( + [in] ULONG ulCrlLen, + [in, size_is(ulCrlLen)] BYTE* pbCrlLen + ); + + [helpstring("method TransactMessage")] + HRESULT TransactMessage ( + [in] ULONG ulcbRequest, + [in, size_is(ulcbRequest)] BYTE* pbRequest, + [in, out] ULONG* pulcbResponse, + [in, out] BYTE* pbResponse + ); + + [helpstring("method GetLicense")] + HRESULT GetLicense ( + [in] GUID* uuidKey, + [in, out] ULONG* pulPackageLen, + [in, out] BYTE* pbPackage + ); + + [helpstring("method ReissueLicense")] + HRESULT ReissueLicense( + [in] GUID* uuidKey + ); + + [helpstring("method RenewLicense")] + HRESULT RenewLicense( + [in] ULONG ulInXmrLicenseLen, + [in, size_is(ulInXmrLicenseLen)] BYTE* pbInXmrLicense, + [in] ULONG ulEntitlementTokenLen, + [in, size_is(ulEntitlementTokenLen)] BYTE* pbEntitlementToken, + [out] ULONG* pulDescrambleStatus, + [in, out] ULONG* pulOutXmrLicenseLen, + [in, out] BYTE* pbOutXmrLicense + ); + + [helpstring("method GetKeyInfo")] + HRESULT GetKeyInfo( + [in, out] ULONG* pulKeyInfoLen, + [in, out] BYTE* pbKeyInfo + ); + +} + +cpp_quote("#define SID_BDA_WMDRMSession __uuidof(IBDA_WMDRMSession)") + + +//--------------------------------------------------------------------- +// IBDA_WMDRMTuner interface +//--------------------------------------------------------------------- +[ + object, + uuid(86D979CF-A8A7-4f94-B5FB-14C0ACA68FE6), + helpstring("IBDA_WMDRMTuner Interface"), + pointer_default(unique) +] +interface IBDA_WMDRMTuner: IUnknown +{ + [helpstring("method PurchaseEntitlement ")] + HRESULT PurchaseEntitlement ( + [in] ULONG ulDialogRequest, + [in] BSTR bstrLanguage, + [in] ULONG ulPurchaseTokenLen, + [in, size_is(ulPurchaseTokenLen)] BYTE* pbPurchaseToken, + [out] ULONG* pulDescrambleStatus, + [in, out] ULONG* pulCaptureTokenLen, + [in, out] BYTE* pbCaptureToken + ); + + [helpstring("method CancelCaptureToken ")] + HRESULT CancelCaptureToken ( + [in] ULONG ulCaptureTokenLen, + [in, size_is(ulCaptureTokenLen)] BYTE* pbCaptureToken + ); + + [helpstring("method SetPidProtection")] + HRESULT SetPidProtection ( + [in] ULONG ulPid, + [in] GUID* uuidKey + ); + + [helpstring("method GetPidProtection ")] + HRESULT GetPidProtection ( + [in] ULONG pulPid, + [out] GUID* uuidKey + ); + + [helpstring("method SetSyncValue ")] + HRESULT SetSyncValue ( + [in] ULONG ulSyncValue + ); + + [helpstring("method GetStartCodeProfile ")] + HRESULT GetStartCodeProfile ( + [in, out] ULONG* pulStartCodeProfileLen, + [in, out] BYTE* pbStartCodeProfile + ); + +} + +cpp_quote("#define SID_BDA_WMDRMTuner __uuidof(IBDA_WMDRMTuner)") + + +//--------------------------------------------------------------------- +// IBDA_DRIDRMService interface +//--------------------------------------------------------------------- +[ + object, + uuid(1F9BC2A5-44A3-4c52-AAB1-0BBCE5A1381D), + helpstring("IBDA_DRIDRMService Interface"), + pointer_default(unique) +] +interface IBDA_DRIDRMService: IUnknown +{ + [helpstring("method SetDRM")] + HRESULT SetDRM( + [in] BSTR bstrNewDrm + ); + + [helpstring("method GetDRMStatus")] + HRESULT GetDRMStatus( + [out] BSTR* pbstrDrmUuidList, + [out] GUID* DrmUuid + ); + + [helpstring("method GetPairingStatus")] + HRESULT GetPairingStatus( + [in, out] BDA_DrmPairingError* penumPairingStatus + ); +} + +cpp_quote("#define SID_BDA_DRIDRMService __uuidof(IBDA_DRIDRMService)") + + +//--------------------------------------------------------------------- +// IBDA_DRIWMDRMSession interface +//--------------------------------------------------------------------- +[ + object, + uuid(05C690F8-56DB-4bb2-B053-79C12098BB26), + helpstring("IBDA_DRIWMDRMSession Interface"), + pointer_default(unique) +] +interface IBDA_DRIWMDRMSession: IUnknown +{ + [helpstring("method AcknowledgeLicense")] + HRESULT AcknowledgeLicense ( + [in] HRESULT hrLicenseAck + ); + + [helpstring("method ProcessLicenseChallenge")] + HRESULT ProcessLicenseChallenge ( + [in] DWORD dwcbLicenseMessage, + [in, size_is(dwcbLicenseMessage)] BYTE* pbLicenseMessage, + [in, out] DWORD* pdwcbLicenseResponse, + [in, out, size_is(* pdwcbLicenseResponse)] BYTE** ppbLicenseResponse + ); + + [helpstring("method ProcessRegistrationChallenge")] + HRESULT ProcessRegistrationChallenge ( + [in] DWORD dwcbRegistrationMessage, + [in, size_is(dwcbRegistrationMessage)] BYTE* pbRegistrationMessage, + [in, out] DWORD* pdwcbRegistrationResponse, + [in, out] BYTE** ppbRegistrationResponse + ); + + [helpstring("method SetRevInfo ")] + HRESULT SetRevInfo ( + [in] DWORD dwRevInfoLen, + [in, size_is(dwRevInfoLen)] BYTE* pbRevInfo, + [in, out] DWORD* pdwResponse + ); + + [helpstring("method SetCrl ")] + HRESULT SetCrl ( + [in] DWORD dwCrlLen, + [in, size_is(dwCrlLen)] BYTE* pbCrlLen, + [in, out] DWORD* pdwResponse + ); + + [helpstring("method GetHMSAssociationData ")] + HRESULT GetHMSAssociationData ( ); + + [helpstring("method GetLastCardeaError ")] + HRESULT GetLastCardeaError ( + [in, out] DWORD* pdwError + ); +} + +cpp_quote("#define SID_BDA_DRIWMDRMSession __uuidof(IBDA_DRIWMDRMSession)") + + + +//--------------------------------------------------------------------- +// IBDA_MUX interface +//--------------------------------------------------------------------- +[ + object, + uuid(942AAFEC-4C05-4c74-B8EB-8706C2A4943F), + helpstring("IBDA_MUX Interface"), + pointer_default(unique) +] +interface IBDA_MUX: IUnknown +{ + [helpstring("method SetPidList")] + HRESULT SetPidList( + [in] ULONG ulPidListCount, + [in, size_is(ulPidListCount)] BDA_MUX_PIDLISTITEM* pbPidListBuffer + ); + + [helpstring("method GetPidList")] + HRESULT GetPidList( + [in, out] ULONG* pulPidListCount, + [in, out] BDA_MUX_PIDLISTITEM* pbPidListBuffer + ); +} + +cpp_quote("#define SID_BDA_MUX __uuidof(IBDA_MUX)") + + + +//--------------------------------------------------------------------- +// IBDA_TransportStreamSelector interface +//--------------------------------------------------------------------- +[ + object, + uuid(1DCFAFE9-B45E-41b3-BB2A-561EB129AE98), + helpstring("IBDA_TransportStreamSelector Interface"), + pointer_default(unique) +] + +interface IBDA_TransportStreamSelector : IUnknown +{ + [helpstring("method SetTSID")] + HRESULT + SetTSID ( + [in] USHORT usTSID + ); + + [helpstring("method GetTSInformation")] + HRESULT + GetTSInformation ( + [in, out] ULONG* pulTSInformationBufferLen, + [out, size_is(*pulTSInformationBufferLen)] BYTE* pbTSInformationBuffer // BDA_TS_SELECTORINFO + ); +} + +cpp_quote("#define SID_BDA_TransportStreamSelector __uuidof(IBDA_TransportStreamSelector)") + + +//--------------------------------------------------------------------- +// IBDA_UserActivityService interface +//--------------------------------------------------------------------- +[ + object, + uuid(53B14189-E478-4b7a-A1FF-506DB4B99DFE), + helpstring("IBDA_UserActivityService Interface"), + pointer_default(unique) +] +interface IBDA_UserActivityService: IUnknown +{ + [helpstring("method SetCurrentTunerUseReason")] + HRESULT SetCurrentTunerUseReason( + [in] DWORD dwUseReason + ); + + [helpstring("method GetUserActivityInterval")] + HRESULT GetUserActivityInterval( + [out] DWORD* pdwActivityInterval + ); + + [helpstring("method UserActivityDetected")] + HRESULT UserActivityDetected( ); +} + +cpp_quote("#define SID_BDA_UserActivityService __uuidof(IBDA_UserActivityService)") + +/////////////////////////////////////////////////////////////////////////////////////// +// Eventing System interfaces +// See also tuner.idl +/////////////////////////////////////////////////////////////////////////////////////// + +// +// Generic and specific events that could return +// in OnESEventReceived +// +[ + object, + uuid(1F0E5357-AF43-44e6-8547-654C645145D2), + helpstring("IESEvent Interface"), + pointer_default(unique) +] +interface IESEvent : IUnknown +{ + // Get current information of the event + HRESULT GetEventId ([out, retval] DWORD* pdwEventId); + HRESULT GetEventType ([out, retval] GUID* pguidEventType); + + // Set the completion status of the event if the callee processes the event. + HRESULT SetCompletionStatus ([in]DWORD dwResult); + + // Get the data in byte array. + // use NULL pbData to determine data length + // Get the data in byte array. + HRESULT GetData ([out, retval] SAFEARRAY(BYTE)* pbData); + + // Get the data in unicode string format. + HRESULT GetStringData ([out, retval] BSTR* pbstrData); +}; + +[ + object, + uuid(ABD414BF-CFE5-4e5e-AF5B-4B4E49C5BFEB), + helpstring("Eventing out-going client interface"), + pointer_default(unique) +] +interface IESEvents : IUnknown +{ + HRESULT OnESEventReceived([in] GUID guidEventType, [in] IESEvent* pESEvent); +}; + +[ + object, + hidden, + nonextensible, + uuid(3B21263F-26E8-489d-AAC4-924F7EFD9511), + helpstring("Broadcast Event Service Firing/Reflecting Interface"), + pointer_default(unique) +] +interface IBroadcastEvent : IUnknown +{ + HRESULT Fire([in] GUID EventID); +}; + +[ + object, + hidden, + nonextensible, + uuid(3d9e3887-1929-423f-8021-43682de95448), + helpstring("Enhanced Broadcast Event Service Firing/Reflecting Interface"), + pointer_default(unique) +] +interface IBroadcastEventEx : IBroadcastEvent +{ + HRESULT FireEx([in] GUID EventID, [in] ULONG Param1, [in] ULONG Param2, [in] ULONG Param3, [in] ULONG Param4); +}; + +cpp_quote ("DEFINE_GUID(CLSID_BroadcastEventService, 0x0B3FFB92, 0x0919, 0x4934, 0x9D, 0x5B, 0x61, 0x9C, 0x71, 0x9D, 0x02, 0x02);") +cpp_quote("#define SID_SBroadcastEventService CLSID_BroadcastEventService") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdaiface_enums.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdaiface_enums.h new file mode 100644 index 0000000000000000000000000000000000000000..69417646faa5f186ecfddda160fe1d0d0962dba2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdaiface_enums.h @@ -0,0 +1,108 @@ +//// +// copyright (c) Microsoft Corp. +//// + +#ifndef BDAIFACE_ENUMS_H +#define BDAIFACE_ENUMS_H + +// !!!! do not #pragma once, we use this file twice(once for native and once for mgd) in managed interop +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include "exposeenums2managed.h" + +ENUM SmartCardStatusType +{ + CardInserted = 0, + CardRemoved, + CardError, + CardDataChanged, + CardFirmwareUpgrade +}SmartCardStatusType; + +ENUM SmartCardAssociationType +{ + NotAssociated = 0, + Associated, + AssociationUnknown +}SmartCardAssociationType; + +ENUM LocationCodeSchemeType +{ + SCTE_18 = 0 +}LocationCodeSchemeType; + +typedef struct EALocationCodeType { + LocationCodeSchemeType LocationCodeScheme; + BYTE state_code; + BYTE county_subdivision; + WORD county_code; +} EALocationCodeType ; + +ENUM EntitlementType +{ + Entitled = 0, + NotEntitled, + TechnicalFailure +}EntitlementType; + +ENUM UICloseReasonType +{ + NotReady = 0, + UserClosed, + SystemClosed, + DeviceClosed, + ErrorClosed +}UICloseReasonType; + +typedef struct SmartCardApplication { + ApplicationTypeType ApplicationType; + USHORT ApplicationVersion; + BSTR pbstrApplicationName; + BSTR pbstrApplicationURL; +} SmartCardApplication ; + +/* + +// this enum is maintained in ehrecvr_enums.h, they need to be kept in sync +// they should also be merged at some point if possible. + +ENUM DrmPairingStatus +{ + DrmPairing_Succeeded = 0, + DrmPairing_HardwareFailure, + DrmPairing_NeedRevocationData, + DrmPairing_NeedIndiv, + DrmPairing_Other, + DrmPairing_DrmInitFailed, + DrmPairing_DrmNotPaired, + DrmPairing_DrmRePairSoon, + DrmPairing_Aborted, + DrmPairing_NeedSDKUpdate +}DrmPairingStatus; +*/ + +ENUM BDA_DrmPairingError +{ + BDA_DrmPairing_Succeeded = 0, + BDA_DrmPairing_HardwareFailure, + BDA_DrmPairing_NeedRevocationData, + BDA_DrmPairing_NeedIndiv, + BDA_DrmPairing_Other, + BDA_DrmPairing_DrmInitFailed, + BDA_DrmPairing_DrmNotPaired, + BDA_DrmPairing_DrmRePairSoon, + BDA_DrmPairing_Aborted, + BDA_DrmPairing_NeedSDKUpdate +}BDA_DrmPairingError; + +#include "unexposeenums2managed.h" + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif +// end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdatif.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdatif.h new file mode 100644 index 0000000000000000000000000000000000000000..b7060899609fc2012120434b625a47c6d21961c2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdatif.h @@ -0,0 +1,1715 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bdatif_h__ +#define __bdatif_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBDA_TIF_REGISTRATION_FWD_DEFINED__ +#define __IBDA_TIF_REGISTRATION_FWD_DEFINED__ +typedef interface IBDA_TIF_REGISTRATION IBDA_TIF_REGISTRATION; + +#endif /* __IBDA_TIF_REGISTRATION_FWD_DEFINED__ */ + + +#ifndef __IMPEG2_TIF_CONTROL_FWD_DEFINED__ +#define __IMPEG2_TIF_CONTROL_FWD_DEFINED__ +typedef interface IMPEG2_TIF_CONTROL IMPEG2_TIF_CONTROL; + +#endif /* __IMPEG2_TIF_CONTROL_FWD_DEFINED__ */ + + +#ifndef __ITuneRequestInfo_FWD_DEFINED__ +#define __ITuneRequestInfo_FWD_DEFINED__ +typedef interface ITuneRequestInfo ITuneRequestInfo; + +#endif /* __ITuneRequestInfo_FWD_DEFINED__ */ + + +#ifndef __ITuneRequestInfoEx_FWD_DEFINED__ +#define __ITuneRequestInfoEx_FWD_DEFINED__ +typedef interface ITuneRequestInfoEx ITuneRequestInfoEx; + +#endif /* __ITuneRequestInfoEx_FWD_DEFINED__ */ + + +#ifndef __ISIInbandEPGEvent_FWD_DEFINED__ +#define __ISIInbandEPGEvent_FWD_DEFINED__ +typedef interface ISIInbandEPGEvent ISIInbandEPGEvent; + +#endif /* __ISIInbandEPGEvent_FWD_DEFINED__ */ + + +#ifndef __ISIInbandEPG_FWD_DEFINED__ +#define __ISIInbandEPG_FWD_DEFINED__ +typedef interface ISIInbandEPG ISIInbandEPG; + +#endif /* __ISIInbandEPG_FWD_DEFINED__ */ + + +#ifndef __IGuideDataEvent_FWD_DEFINED__ +#define __IGuideDataEvent_FWD_DEFINED__ +typedef interface IGuideDataEvent IGuideDataEvent; + +#endif /* __IGuideDataEvent_FWD_DEFINED__ */ + + +#ifndef __IGuideDataProperty_FWD_DEFINED__ +#define __IGuideDataProperty_FWD_DEFINED__ +typedef interface IGuideDataProperty IGuideDataProperty; + +#endif /* __IGuideDataProperty_FWD_DEFINED__ */ + + +#ifndef __IEnumGuideDataProperties_FWD_DEFINED__ +#define __IEnumGuideDataProperties_FWD_DEFINED__ +typedef interface IEnumGuideDataProperties IEnumGuideDataProperties; + +#endif /* __IEnumGuideDataProperties_FWD_DEFINED__ */ + + +#ifndef __IEnumTuneRequests_FWD_DEFINED__ +#define __IEnumTuneRequests_FWD_DEFINED__ +typedef interface IEnumTuneRequests IEnumTuneRequests; + +#endif /* __IEnumTuneRequests_FWD_DEFINED__ */ + + +#ifndef __IGuideData_FWD_DEFINED__ +#define __IGuideData_FWD_DEFINED__ +typedef interface IGuideData IGuideData; + +#endif /* __IGuideData_FWD_DEFINED__ */ + + +#ifndef __IGuideDataLoader_FWD_DEFINED__ +#define __IGuideDataLoader_FWD_DEFINED__ +typedef interface IGuideDataLoader IGuideDataLoader; + +#endif /* __IGuideDataLoader_FWD_DEFINED__ */ + + +#ifndef __TIFLoad_FWD_DEFINED__ +#define __TIFLoad_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class TIFLoad TIFLoad; +#else +typedef struct TIFLoad TIFLoad; +#endif /* __cplusplus */ + +#endif /* __TIFLoad_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "strmif.h" +#include "tuner.h" +#include "dvbsiparser.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bdatif_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1999-2002. +// +//-------------------------------------------------------------------------- +#if ( _MSC_VER >= 800 ) +#pragma warning(disable:4201) /* Nameless struct/union */ +#endif +#if ( _MSC_VER >= 1020 ) +#pragma once +#endif +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + +extern RPC_IF_HANDLE __MIDL_itf_bdatif_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdatif_0000_0000_v0_0_s_ifspec; + +#ifndef __IBDA_TIF_REGISTRATION_INTERFACE_DEFINED__ +#define __IBDA_TIF_REGISTRATION_INTERFACE_DEFINED__ + +/* interface IBDA_TIF_REGISTRATION */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IBDA_TIF_REGISTRATION; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DFEF4A68-EE61-415f-9CCB-CD95F2F98A3A") + IBDA_TIF_REGISTRATION : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterTIFEx( + /* [in] */ __RPC__in_opt IPin *pTIFInputPin, + /* [out][in] */ __RPC__inout ULONG *ppvRegistrationContext, + /* [out][in] */ __RPC__deref_inout_opt IUnknown **ppMpeg2DataControl) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterTIF( + /* [in] */ ULONG pvRegistrationContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBDA_TIF_REGISTRATIONVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBDA_TIF_REGISTRATION * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBDA_TIF_REGISTRATION * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBDA_TIF_REGISTRATION * This); + + DECLSPEC_XFGVIRT(IBDA_TIF_REGISTRATION, RegisterTIFEx) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterTIFEx )( + __RPC__in IBDA_TIF_REGISTRATION * This, + /* [in] */ __RPC__in_opt IPin *pTIFInputPin, + /* [out][in] */ __RPC__inout ULONG *ppvRegistrationContext, + /* [out][in] */ __RPC__deref_inout_opt IUnknown **ppMpeg2DataControl); + + DECLSPEC_XFGVIRT(IBDA_TIF_REGISTRATION, UnregisterTIF) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterTIF )( + __RPC__in IBDA_TIF_REGISTRATION * This, + /* [in] */ ULONG pvRegistrationContext); + + END_INTERFACE + } IBDA_TIF_REGISTRATIONVtbl; + + interface IBDA_TIF_REGISTRATION + { + CONST_VTBL struct IBDA_TIF_REGISTRATIONVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBDA_TIF_REGISTRATION_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBDA_TIF_REGISTRATION_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBDA_TIF_REGISTRATION_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBDA_TIF_REGISTRATION_RegisterTIFEx(This,pTIFInputPin,ppvRegistrationContext,ppMpeg2DataControl) \ + ( (This)->lpVtbl -> RegisterTIFEx(This,pTIFInputPin,ppvRegistrationContext,ppMpeg2DataControl) ) + +#define IBDA_TIF_REGISTRATION_UnregisterTIF(This,pvRegistrationContext) \ + ( (This)->lpVtbl -> UnregisterTIF(This,pvRegistrationContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBDA_TIF_REGISTRATION_INTERFACE_DEFINED__ */ + + +#ifndef __IMPEG2_TIF_CONTROL_INTERFACE_DEFINED__ +#define __IMPEG2_TIF_CONTROL_INTERFACE_DEFINED__ + +/* interface IMPEG2_TIF_CONTROL */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMPEG2_TIF_CONTROL; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F9BAC2F9-4149-4916-B2EF-FAA202326862") + IMPEG2_TIF_CONTROL : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterTIF( + /* [in] */ __RPC__in_opt IUnknown *pUnkTIF, + /* [out][in] */ __RPC__inout ULONG *ppvRegistrationContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterTIF( + /* [in] */ ULONG pvRegistrationContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddPIDs( + /* [in] */ ULONG ulcPIDs, + /* [in] */ __RPC__in ULONG *pulPIDs) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE DeletePIDs( + /* [in] */ ULONG ulcPIDs, + /* [in] */ __RPC__in ULONG *pulPIDs) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPIDCount( + /* [out] */ __RPC__out ULONG *pulcPIDs) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPIDs( + /* [out] */ __RPC__out ULONG *pulcPIDs, + /* [out] */ __RPC__out ULONG *pulPIDs) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMPEG2_TIF_CONTROLVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMPEG2_TIF_CONTROL * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMPEG2_TIF_CONTROL * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMPEG2_TIF_CONTROL * This); + + DECLSPEC_XFGVIRT(IMPEG2_TIF_CONTROL, RegisterTIF) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterTIF )( + __RPC__in IMPEG2_TIF_CONTROL * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkTIF, + /* [out][in] */ __RPC__inout ULONG *ppvRegistrationContext); + + DECLSPEC_XFGVIRT(IMPEG2_TIF_CONTROL, UnregisterTIF) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterTIF )( + __RPC__in IMPEG2_TIF_CONTROL * This, + /* [in] */ ULONG pvRegistrationContext); + + DECLSPEC_XFGVIRT(IMPEG2_TIF_CONTROL, AddPIDs) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddPIDs )( + __RPC__in IMPEG2_TIF_CONTROL * This, + /* [in] */ ULONG ulcPIDs, + /* [in] */ __RPC__in ULONG *pulPIDs); + + DECLSPEC_XFGVIRT(IMPEG2_TIF_CONTROL, DeletePIDs) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *DeletePIDs )( + __RPC__in IMPEG2_TIF_CONTROL * This, + /* [in] */ ULONG ulcPIDs, + /* [in] */ __RPC__in ULONG *pulPIDs); + + DECLSPEC_XFGVIRT(IMPEG2_TIF_CONTROL, GetPIDCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPIDCount )( + __RPC__in IMPEG2_TIF_CONTROL * This, + /* [out] */ __RPC__out ULONG *pulcPIDs); + + DECLSPEC_XFGVIRT(IMPEG2_TIF_CONTROL, GetPIDs) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPIDs )( + __RPC__in IMPEG2_TIF_CONTROL * This, + /* [out] */ __RPC__out ULONG *pulcPIDs, + /* [out] */ __RPC__out ULONG *pulPIDs); + + END_INTERFACE + } IMPEG2_TIF_CONTROLVtbl; + + interface IMPEG2_TIF_CONTROL + { + CONST_VTBL struct IMPEG2_TIF_CONTROLVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMPEG2_TIF_CONTROL_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMPEG2_TIF_CONTROL_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMPEG2_TIF_CONTROL_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMPEG2_TIF_CONTROL_RegisterTIF(This,pUnkTIF,ppvRegistrationContext) \ + ( (This)->lpVtbl -> RegisterTIF(This,pUnkTIF,ppvRegistrationContext) ) + +#define IMPEG2_TIF_CONTROL_UnregisterTIF(This,pvRegistrationContext) \ + ( (This)->lpVtbl -> UnregisterTIF(This,pvRegistrationContext) ) + +#define IMPEG2_TIF_CONTROL_AddPIDs(This,ulcPIDs,pulPIDs) \ + ( (This)->lpVtbl -> AddPIDs(This,ulcPIDs,pulPIDs) ) + +#define IMPEG2_TIF_CONTROL_DeletePIDs(This,ulcPIDs,pulPIDs) \ + ( (This)->lpVtbl -> DeletePIDs(This,ulcPIDs,pulPIDs) ) + +#define IMPEG2_TIF_CONTROL_GetPIDCount(This,pulcPIDs) \ + ( (This)->lpVtbl -> GetPIDCount(This,pulcPIDs) ) + +#define IMPEG2_TIF_CONTROL_GetPIDs(This,pulcPIDs,pulPIDs) \ + ( (This)->lpVtbl -> GetPIDs(This,pulcPIDs,pulPIDs) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMPEG2_TIF_CONTROL_INTERFACE_DEFINED__ */ + + +#ifndef __ITuneRequestInfo_INTERFACE_DEFINED__ +#define __ITuneRequestInfo_INTERFACE_DEFINED__ + +/* interface ITuneRequestInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ITuneRequestInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A3B152DF-7A90-4218-AC54-9830BEE8C0B6") + ITuneRequestInfo : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetLocatorData( + /* [in] */ __RPC__in_opt ITuneRequest *Request) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetComponentData( + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateComponentList( + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetNextProgram( + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPreviousProgram( + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetNextLocator( + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPreviousLocator( + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITuneRequestInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITuneRequestInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITuneRequestInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITuneRequestInfo * This); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetLocatorData) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetLocatorData )( + __RPC__in ITuneRequestInfo * This, + /* [in] */ __RPC__in_opt ITuneRequest *Request); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetComponentData) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetComponentData )( + __RPC__in ITuneRequestInfo * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, CreateComponentList) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateComponentList )( + __RPC__in ITuneRequestInfo * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetNextProgram) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNextProgram )( + __RPC__in ITuneRequestInfo * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetPreviousProgram) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPreviousProgram )( + __RPC__in ITuneRequestInfo * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetNextLocator) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNextLocator )( + __RPC__in ITuneRequestInfo * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetPreviousLocator) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPreviousLocator )( + __RPC__in ITuneRequestInfo * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest); + + END_INTERFACE + } ITuneRequestInfoVtbl; + + interface ITuneRequestInfo + { + CONST_VTBL struct ITuneRequestInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITuneRequestInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITuneRequestInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITuneRequestInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITuneRequestInfo_GetLocatorData(This,Request) \ + ( (This)->lpVtbl -> GetLocatorData(This,Request) ) + +#define ITuneRequestInfo_GetComponentData(This,CurrentRequest) \ + ( (This)->lpVtbl -> GetComponentData(This,CurrentRequest) ) + +#define ITuneRequestInfo_CreateComponentList(This,CurrentRequest) \ + ( (This)->lpVtbl -> CreateComponentList(This,CurrentRequest) ) + +#define ITuneRequestInfo_GetNextProgram(This,CurrentRequest,TuneRequest) \ + ( (This)->lpVtbl -> GetNextProgram(This,CurrentRequest,TuneRequest) ) + +#define ITuneRequestInfo_GetPreviousProgram(This,CurrentRequest,TuneRequest) \ + ( (This)->lpVtbl -> GetPreviousProgram(This,CurrentRequest,TuneRequest) ) + +#define ITuneRequestInfo_GetNextLocator(This,CurrentRequest,TuneRequest) \ + ( (This)->lpVtbl -> GetNextLocator(This,CurrentRequest,TuneRequest) ) + +#define ITuneRequestInfo_GetPreviousLocator(This,CurrentRequest,TuneRequest) \ + ( (This)->lpVtbl -> GetPreviousLocator(This,CurrentRequest,TuneRequest) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITuneRequestInfo_INTERFACE_DEFINED__ */ + + +#ifndef __ITuneRequestInfoEx_INTERFACE_DEFINED__ +#define __ITuneRequestInfoEx_INTERFACE_DEFINED__ + +/* interface ITuneRequestInfoEx */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ITuneRequestInfoEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EE957C52-B0D0-4e78-8DD1-B87A08BFD893") + ITuneRequestInfoEx : public ITuneRequestInfo + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateComponentListEx( + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [out] */ __RPC__deref_out_opt IUnknown **ppCurPMT) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITuneRequestInfoExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITuneRequestInfoEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITuneRequestInfoEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITuneRequestInfoEx * This); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetLocatorData) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetLocatorData )( + __RPC__in ITuneRequestInfoEx * This, + /* [in] */ __RPC__in_opt ITuneRequest *Request); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetComponentData) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetComponentData )( + __RPC__in ITuneRequestInfoEx * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, CreateComponentList) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateComponentList )( + __RPC__in ITuneRequestInfoEx * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetNextProgram) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNextProgram )( + __RPC__in ITuneRequestInfoEx * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetPreviousProgram) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPreviousProgram )( + __RPC__in ITuneRequestInfoEx * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetNextLocator) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNextLocator )( + __RPC__in ITuneRequestInfoEx * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfo, GetPreviousLocator) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPreviousLocator )( + __RPC__in ITuneRequestInfoEx * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [retval][out] */ __RPC__deref_out_opt ITuneRequest **TuneRequest); + + DECLSPEC_XFGVIRT(ITuneRequestInfoEx, CreateComponentListEx) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateComponentListEx )( + __RPC__in ITuneRequestInfoEx * This, + /* [in] */ __RPC__in_opt ITuneRequest *CurrentRequest, + /* [out] */ __RPC__deref_out_opt IUnknown **ppCurPMT); + + END_INTERFACE + } ITuneRequestInfoExVtbl; + + interface ITuneRequestInfoEx + { + CONST_VTBL struct ITuneRequestInfoExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITuneRequestInfoEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITuneRequestInfoEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITuneRequestInfoEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITuneRequestInfoEx_GetLocatorData(This,Request) \ + ( (This)->lpVtbl -> GetLocatorData(This,Request) ) + +#define ITuneRequestInfoEx_GetComponentData(This,CurrentRequest) \ + ( (This)->lpVtbl -> GetComponentData(This,CurrentRequest) ) + +#define ITuneRequestInfoEx_CreateComponentList(This,CurrentRequest) \ + ( (This)->lpVtbl -> CreateComponentList(This,CurrentRequest) ) + +#define ITuneRequestInfoEx_GetNextProgram(This,CurrentRequest,TuneRequest) \ + ( (This)->lpVtbl -> GetNextProgram(This,CurrentRequest,TuneRequest) ) + +#define ITuneRequestInfoEx_GetPreviousProgram(This,CurrentRequest,TuneRequest) \ + ( (This)->lpVtbl -> GetPreviousProgram(This,CurrentRequest,TuneRequest) ) + +#define ITuneRequestInfoEx_GetNextLocator(This,CurrentRequest,TuneRequest) \ + ( (This)->lpVtbl -> GetNextLocator(This,CurrentRequest,TuneRequest) ) + +#define ITuneRequestInfoEx_GetPreviousLocator(This,CurrentRequest,TuneRequest) \ + ( (This)->lpVtbl -> GetPreviousLocator(This,CurrentRequest,TuneRequest) ) + + +#define ITuneRequestInfoEx_CreateComponentListEx(This,CurrentRequest,ppCurPMT) \ + ( (This)->lpVtbl -> CreateComponentListEx(This,CurrentRequest,ppCurPMT) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITuneRequestInfoEx_INTERFACE_DEFINED__ */ + + +#ifndef __ISIInbandEPGEvent_INTERFACE_DEFINED__ +#define __ISIInbandEPGEvent_INTERFACE_DEFINED__ + +/* interface ISIInbandEPGEvent */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ISIInbandEPGEvent; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7E47913A-5A89-423d-9A2B-E15168858934") + ISIInbandEPGEvent : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SIObjectEvent( + /* [in] */ __RPC__in_opt IDVB_EIT2 *pIDVB_EIT, + /* [in] */ DWORD dwTable_ID, + /* [in] */ DWORD dwService_ID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISIInbandEPGEventVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISIInbandEPGEvent * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISIInbandEPGEvent * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISIInbandEPGEvent * This); + + DECLSPEC_XFGVIRT(ISIInbandEPGEvent, SIObjectEvent) + HRESULT ( STDMETHODCALLTYPE *SIObjectEvent )( + __RPC__in ISIInbandEPGEvent * This, + /* [in] */ __RPC__in_opt IDVB_EIT2 *pIDVB_EIT, + /* [in] */ DWORD dwTable_ID, + /* [in] */ DWORD dwService_ID); + + END_INTERFACE + } ISIInbandEPGEventVtbl; + + interface ISIInbandEPGEvent + { + CONST_VTBL struct ISIInbandEPGEventVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISIInbandEPGEvent_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISIInbandEPGEvent_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISIInbandEPGEvent_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISIInbandEPGEvent_SIObjectEvent(This,pIDVB_EIT,dwTable_ID,dwService_ID) \ + ( (This)->lpVtbl -> SIObjectEvent(This,pIDVB_EIT,dwTable_ID,dwService_ID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISIInbandEPGEvent_INTERFACE_DEFINED__ */ + + +#ifndef __ISIInbandEPG_INTERFACE_DEFINED__ +#define __ISIInbandEPG_INTERFACE_DEFINED__ + +/* interface ISIInbandEPG */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ISIInbandEPG; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F90AD9D0-B854-4b68-9CC1-B2CC96119D85") + ISIInbandEPG : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE StartSIEPGScan( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE StopSIEPGScan( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsSIEPGScanRunning( + /* [retval][out] */ __RPC__out BOOL *bRunning) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISIInbandEPGVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISIInbandEPG * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISIInbandEPG * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISIInbandEPG * This); + + DECLSPEC_XFGVIRT(ISIInbandEPG, StartSIEPGScan) + HRESULT ( STDMETHODCALLTYPE *StartSIEPGScan )( + __RPC__in ISIInbandEPG * This); + + DECLSPEC_XFGVIRT(ISIInbandEPG, StopSIEPGScan) + HRESULT ( STDMETHODCALLTYPE *StopSIEPGScan )( + __RPC__in ISIInbandEPG * This); + + DECLSPEC_XFGVIRT(ISIInbandEPG, IsSIEPGScanRunning) + HRESULT ( STDMETHODCALLTYPE *IsSIEPGScanRunning )( + __RPC__in ISIInbandEPG * This, + /* [retval][out] */ __RPC__out BOOL *bRunning); + + END_INTERFACE + } ISIInbandEPGVtbl; + + interface ISIInbandEPG + { + CONST_VTBL struct ISIInbandEPGVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISIInbandEPG_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISIInbandEPG_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISIInbandEPG_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISIInbandEPG_StartSIEPGScan(This) \ + ( (This)->lpVtbl -> StartSIEPGScan(This) ) + +#define ISIInbandEPG_StopSIEPGScan(This) \ + ( (This)->lpVtbl -> StopSIEPGScan(This) ) + +#define ISIInbandEPG_IsSIEPGScanRunning(This,bRunning) \ + ( (This)->lpVtbl -> IsSIEPGScanRunning(This,bRunning) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISIInbandEPG_INTERFACE_DEFINED__ */ + + +#ifndef __IGuideDataEvent_INTERFACE_DEFINED__ +#define __IGuideDataEvent_INTERFACE_DEFINED__ + +/* interface IGuideDataEvent */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGuideDataEvent; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EFDA0C80-F395-42c3-9B3C-56B37DEC7BB7") + IGuideDataEvent : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GuideDataAcquired( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProgramChanged( + /* [in] */ VARIANT varProgramDescriptionID) = 0; + + virtual HRESULT STDMETHODCALLTYPE ServiceChanged( + /* [in] */ VARIANT varServiceDescriptionID) = 0; + + virtual HRESULT STDMETHODCALLTYPE ScheduleEntryChanged( + /* [in] */ VARIANT varScheduleEntryDescriptionID) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProgramDeleted( + /* [in] */ VARIANT varProgramDescriptionID) = 0; + + virtual HRESULT STDMETHODCALLTYPE ServiceDeleted( + /* [in] */ VARIANT varServiceDescriptionID) = 0; + + virtual HRESULT STDMETHODCALLTYPE ScheduleDeleted( + /* [in] */ VARIANT varScheduleEntryDescriptionID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGuideDataEventVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGuideDataEvent * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGuideDataEvent * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGuideDataEvent * This); + + DECLSPEC_XFGVIRT(IGuideDataEvent, GuideDataAcquired) + HRESULT ( STDMETHODCALLTYPE *GuideDataAcquired )( + __RPC__in IGuideDataEvent * This); + + DECLSPEC_XFGVIRT(IGuideDataEvent, ProgramChanged) + HRESULT ( STDMETHODCALLTYPE *ProgramChanged )( + __RPC__in IGuideDataEvent * This, + /* [in] */ VARIANT varProgramDescriptionID); + + DECLSPEC_XFGVIRT(IGuideDataEvent, ServiceChanged) + HRESULT ( STDMETHODCALLTYPE *ServiceChanged )( + __RPC__in IGuideDataEvent * This, + /* [in] */ VARIANT varServiceDescriptionID); + + DECLSPEC_XFGVIRT(IGuideDataEvent, ScheduleEntryChanged) + HRESULT ( STDMETHODCALLTYPE *ScheduleEntryChanged )( + __RPC__in IGuideDataEvent * This, + /* [in] */ VARIANT varScheduleEntryDescriptionID); + + DECLSPEC_XFGVIRT(IGuideDataEvent, ProgramDeleted) + HRESULT ( STDMETHODCALLTYPE *ProgramDeleted )( + __RPC__in IGuideDataEvent * This, + /* [in] */ VARIANT varProgramDescriptionID); + + DECLSPEC_XFGVIRT(IGuideDataEvent, ServiceDeleted) + HRESULT ( STDMETHODCALLTYPE *ServiceDeleted )( + __RPC__in IGuideDataEvent * This, + /* [in] */ VARIANT varServiceDescriptionID); + + DECLSPEC_XFGVIRT(IGuideDataEvent, ScheduleDeleted) + HRESULT ( STDMETHODCALLTYPE *ScheduleDeleted )( + __RPC__in IGuideDataEvent * This, + /* [in] */ VARIANT varScheduleEntryDescriptionID); + + END_INTERFACE + } IGuideDataEventVtbl; + + interface IGuideDataEvent + { + CONST_VTBL struct IGuideDataEventVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGuideDataEvent_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGuideDataEvent_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGuideDataEvent_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGuideDataEvent_GuideDataAcquired(This) \ + ( (This)->lpVtbl -> GuideDataAcquired(This) ) + +#define IGuideDataEvent_ProgramChanged(This,varProgramDescriptionID) \ + ( (This)->lpVtbl -> ProgramChanged(This,varProgramDescriptionID) ) + +#define IGuideDataEvent_ServiceChanged(This,varServiceDescriptionID) \ + ( (This)->lpVtbl -> ServiceChanged(This,varServiceDescriptionID) ) + +#define IGuideDataEvent_ScheduleEntryChanged(This,varScheduleEntryDescriptionID) \ + ( (This)->lpVtbl -> ScheduleEntryChanged(This,varScheduleEntryDescriptionID) ) + +#define IGuideDataEvent_ProgramDeleted(This,varProgramDescriptionID) \ + ( (This)->lpVtbl -> ProgramDeleted(This,varProgramDescriptionID) ) + +#define IGuideDataEvent_ServiceDeleted(This,varServiceDescriptionID) \ + ( (This)->lpVtbl -> ServiceDeleted(This,varServiceDescriptionID) ) + +#define IGuideDataEvent_ScheduleDeleted(This,varScheduleEntryDescriptionID) \ + ( (This)->lpVtbl -> ScheduleDeleted(This,varScheduleEntryDescriptionID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGuideDataEvent_INTERFACE_DEFINED__ */ + + +#ifndef __IGuideDataProperty_INTERFACE_DEFINED__ +#define __IGuideDataProperty_INTERFACE_DEFINED__ + +/* interface IGuideDataProperty */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGuideDataProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("88EC5E58-BB73-41d6-99CE-66C524B8B591") + IGuideDataProperty : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Language( + /* [out] */ __RPC__out long *idLang) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [out] */ __RPC__out VARIANT *pvar) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGuideDataPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGuideDataProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGuideDataProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGuideDataProperty * This); + + DECLSPEC_XFGVIRT(IGuideDataProperty, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IGuideDataProperty * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IGuideDataProperty, get_Language) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Language )( + __RPC__in IGuideDataProperty * This, + /* [out] */ __RPC__out long *idLang); + + DECLSPEC_XFGVIRT(IGuideDataProperty, get_Value) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IGuideDataProperty * This, + /* [out] */ __RPC__out VARIANT *pvar); + + END_INTERFACE + } IGuideDataPropertyVtbl; + + interface IGuideDataProperty + { + CONST_VTBL struct IGuideDataPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGuideDataProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGuideDataProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGuideDataProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGuideDataProperty_get_Name(This,pbstrName) \ + ( (This)->lpVtbl -> get_Name(This,pbstrName) ) + +#define IGuideDataProperty_get_Language(This,idLang) \ + ( (This)->lpVtbl -> get_Language(This,idLang) ) + +#define IGuideDataProperty_get_Value(This,pvar) \ + ( (This)->lpVtbl -> get_Value(This,pvar) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGuideDataProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumGuideDataProperties_INTERFACE_DEFINED__ +#define __IEnumGuideDataProperties_INTERFACE_DEFINED__ + +/* interface IEnumGuideDataProperties */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumGuideDataProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AE44423B-4571-475c-AD2C-F40A771D80EF") + IEnumGuideDataProperties : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ unsigned long celt, + /* [out] */ __RPC__deref_out_opt IGuideDataProperty **ppprop, + /* [out] */ __RPC__out unsigned long *pcelt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ unsigned long celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumGuideDataProperties **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumGuideDataPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumGuideDataProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumGuideDataProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumGuideDataProperties * This); + + DECLSPEC_XFGVIRT(IEnumGuideDataProperties, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumGuideDataProperties * This, + /* [in] */ unsigned long celt, + /* [out] */ __RPC__deref_out_opt IGuideDataProperty **ppprop, + /* [out] */ __RPC__out unsigned long *pcelt); + + DECLSPEC_XFGVIRT(IEnumGuideDataProperties, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumGuideDataProperties * This, + /* [in] */ unsigned long celt); + + DECLSPEC_XFGVIRT(IEnumGuideDataProperties, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumGuideDataProperties * This); + + DECLSPEC_XFGVIRT(IEnumGuideDataProperties, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumGuideDataProperties * This, + /* [out] */ __RPC__deref_out_opt IEnumGuideDataProperties **ppenum); + + END_INTERFACE + } IEnumGuideDataPropertiesVtbl; + + interface IEnumGuideDataProperties + { + CONST_VTBL struct IEnumGuideDataPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumGuideDataProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumGuideDataProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumGuideDataProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumGuideDataProperties_Next(This,celt,ppprop,pcelt) \ + ( (This)->lpVtbl -> Next(This,celt,ppprop,pcelt) ) + +#define IEnumGuideDataProperties_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumGuideDataProperties_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumGuideDataProperties_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumGuideDataProperties_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumTuneRequests_INTERFACE_DEFINED__ +#define __IEnumTuneRequests_INTERFACE_DEFINED__ + +/* interface IEnumTuneRequests */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumTuneRequests; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1993299C-CED6-4788-87A3-420067DCE0C7") + IEnumTuneRequests : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ unsigned long celt, + /* [out] */ __RPC__deref_out_opt ITuneRequest **ppprop, + /* [out] */ __RPC__out unsigned long *pcelt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ unsigned long celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumTuneRequests **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumTuneRequestsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumTuneRequests * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumTuneRequests * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumTuneRequests * This); + + DECLSPEC_XFGVIRT(IEnumTuneRequests, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumTuneRequests * This, + /* [in] */ unsigned long celt, + /* [out] */ __RPC__deref_out_opt ITuneRequest **ppprop, + /* [out] */ __RPC__out unsigned long *pcelt); + + DECLSPEC_XFGVIRT(IEnumTuneRequests, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumTuneRequests * This, + /* [in] */ unsigned long celt); + + DECLSPEC_XFGVIRT(IEnumTuneRequests, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumTuneRequests * This); + + DECLSPEC_XFGVIRT(IEnumTuneRequests, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumTuneRequests * This, + /* [out] */ __RPC__deref_out_opt IEnumTuneRequests **ppenum); + + END_INTERFACE + } IEnumTuneRequestsVtbl; + + interface IEnumTuneRequests + { + CONST_VTBL struct IEnumTuneRequestsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumTuneRequests_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumTuneRequests_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumTuneRequests_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumTuneRequests_Next(This,celt,ppprop,pcelt) \ + ( (This)->lpVtbl -> Next(This,celt,ppprop,pcelt) ) + +#define IEnumTuneRequests_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumTuneRequests_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumTuneRequests_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumTuneRequests_INTERFACE_DEFINED__ */ + + +#ifndef __IGuideData_INTERFACE_DEFINED__ +#define __IGuideData_INTERFACE_DEFINED__ + +/* interface IGuideData */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGuideData; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("61571138-5B01-43cd-AEAF-60B784A0BF93") + IGuideData : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetServices( + /* [retval][out] */ __RPC__deref_out_opt IEnumTuneRequests **ppEnumTuneRequests) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetServiceProperties( + /* [in] */ __RPC__in_opt ITuneRequest *pTuneRequest, + /* [retval][out] */ __RPC__deref_out_opt IEnumGuideDataProperties **ppEnumProperties) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetGuideProgramIDs( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **pEnumPrograms) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetProgramProperties( + /* [in] */ VARIANT varProgramDescriptionID, + /* [retval][out] */ __RPC__deref_out_opt IEnumGuideDataProperties **ppEnumProperties) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetScheduleEntryIDs( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **pEnumScheduleEntries) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetScheduleEntryProperties( + /* [in] */ VARIANT varScheduleEntryDescriptionID, + /* [retval][out] */ __RPC__deref_out_opt IEnumGuideDataProperties **ppEnumProperties) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGuideDataVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGuideData * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGuideData * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGuideData * This); + + DECLSPEC_XFGVIRT(IGuideData, GetServices) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetServices )( + __RPC__in IGuideData * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumTuneRequests **ppEnumTuneRequests); + + DECLSPEC_XFGVIRT(IGuideData, GetServiceProperties) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetServiceProperties )( + __RPC__in IGuideData * This, + /* [in] */ __RPC__in_opt ITuneRequest *pTuneRequest, + /* [retval][out] */ __RPC__deref_out_opt IEnumGuideDataProperties **ppEnumProperties); + + DECLSPEC_XFGVIRT(IGuideData, GetGuideProgramIDs) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetGuideProgramIDs )( + __RPC__in IGuideData * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **pEnumPrograms); + + DECLSPEC_XFGVIRT(IGuideData, GetProgramProperties) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetProgramProperties )( + __RPC__in IGuideData * This, + /* [in] */ VARIANT varProgramDescriptionID, + /* [retval][out] */ __RPC__deref_out_opt IEnumGuideDataProperties **ppEnumProperties); + + DECLSPEC_XFGVIRT(IGuideData, GetScheduleEntryIDs) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetScheduleEntryIDs )( + __RPC__in IGuideData * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **pEnumScheduleEntries); + + DECLSPEC_XFGVIRT(IGuideData, GetScheduleEntryProperties) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetScheduleEntryProperties )( + __RPC__in IGuideData * This, + /* [in] */ VARIANT varScheduleEntryDescriptionID, + /* [retval][out] */ __RPC__deref_out_opt IEnumGuideDataProperties **ppEnumProperties); + + END_INTERFACE + } IGuideDataVtbl; + + interface IGuideData + { + CONST_VTBL struct IGuideDataVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGuideData_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGuideData_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGuideData_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGuideData_GetServices(This,ppEnumTuneRequests) \ + ( (This)->lpVtbl -> GetServices(This,ppEnumTuneRequests) ) + +#define IGuideData_GetServiceProperties(This,pTuneRequest,ppEnumProperties) \ + ( (This)->lpVtbl -> GetServiceProperties(This,pTuneRequest,ppEnumProperties) ) + +#define IGuideData_GetGuideProgramIDs(This,pEnumPrograms) \ + ( (This)->lpVtbl -> GetGuideProgramIDs(This,pEnumPrograms) ) + +#define IGuideData_GetProgramProperties(This,varProgramDescriptionID,ppEnumProperties) \ + ( (This)->lpVtbl -> GetProgramProperties(This,varProgramDescriptionID,ppEnumProperties) ) + +#define IGuideData_GetScheduleEntryIDs(This,pEnumScheduleEntries) \ + ( (This)->lpVtbl -> GetScheduleEntryIDs(This,pEnumScheduleEntries) ) + +#define IGuideData_GetScheduleEntryProperties(This,varScheduleEntryDescriptionID,ppEnumProperties) \ + ( (This)->lpVtbl -> GetScheduleEntryProperties(This,varScheduleEntryDescriptionID,ppEnumProperties) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGuideData_INTERFACE_DEFINED__ */ + + +#ifndef __IGuideDataLoader_INTERFACE_DEFINED__ +#define __IGuideDataLoader_INTERFACE_DEFINED__ + +/* interface IGuideDataLoader */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGuideDataLoader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4764ff7c-fa95-4525-af4d-d32236db9e38") + IGuideDataLoader : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Init( + /* [in] */ __RPC__in_opt IGuideData *pGuideStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Terminate( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGuideDataLoaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGuideDataLoader * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGuideDataLoader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGuideDataLoader * This); + + DECLSPEC_XFGVIRT(IGuideDataLoader, Init) + HRESULT ( STDMETHODCALLTYPE *Init )( + __RPC__in IGuideDataLoader * This, + /* [in] */ __RPC__in_opt IGuideData *pGuideStore); + + DECLSPEC_XFGVIRT(IGuideDataLoader, Terminate) + HRESULT ( STDMETHODCALLTYPE *Terminate )( + __RPC__in IGuideDataLoader * This); + + END_INTERFACE + } IGuideDataLoaderVtbl; + + interface IGuideDataLoader + { + CONST_VTBL struct IGuideDataLoaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGuideDataLoader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGuideDataLoader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGuideDataLoader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGuideDataLoader_Init(This,pGuideStore) \ + ( (This)->lpVtbl -> Init(This,pGuideStore) ) + +#define IGuideDataLoader_Terminate(This) \ + ( (This)->lpVtbl -> Terminate(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGuideDataLoader_INTERFACE_DEFINED__ */ + + + +#ifndef __PSISLOADLib_LIBRARY_DEFINED__ +#define __PSISLOADLib_LIBRARY_DEFINED__ + +/* library PSISLOADLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_PSISLOADLib; + +EXTERN_C const CLSID CLSID_TIFLoad; + +#ifdef __cplusplus + +class DECLSPEC_UUID("14EB8748-1753-4393-95AE-4F7E7A87AAD6") +TIFLoad; +#endif +#endif /* __PSISLOADLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bdatif_0000_0013 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#if ( _MSC_VER >= 800 ) +#pragma warning(default:4201) /* Nameless struct/union */ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_bdatif_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bdatif_0000_0013_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdatif.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdatif.idl new file mode 100644 index 0000000000000000000000000000000000000000..203ec2d6896acd57625fd695e2e06252c10b7779 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bdatif.idl @@ -0,0 +1,736 @@ +//--------------------------------------------------------------------- +// +// Copyright (c) 1999-2002 Microsoft Corporation +// +// BDATIF.idl +// +//--------------------------------------------------------------------- + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (C) Microsoft Corporation, 1999-2002.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("#if ( _MSC_VER >= 800 )") +cpp_quote("#pragma warning(disable:4201) /* Nameless struct/union */") +cpp_quote("#endif") +cpp_quote("#if ( _MSC_VER >= 1020 )") +cpp_quote("#pragma once") +cpp_quote("#endif") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + + +//--------------------------------------------------------------------- +// IUnknown import idl +//--------------------------------------------------------------------- + +#ifndef DO_NO_IMPORTS +import "unknwn.idl"; +import "strmif.idl"; +import "tuner.idl"; +import "bdaiface.idl"; +import "dvbsiparser.idl"; +#endif + + +interface IMPEG2_TIF_CONTROL; +interface IMPEG2PIDMap; + + + + +//****************************************************************************** +// +// IBDA_TIF_REGISTRATION interface +// +// Implemented by the Microsoft ATSC/DVB BDA Network Provider +// +// Used by a transport information filter (TIF) to Register with the NP +// AND obtain an Interface to the Demux to set/ Remove PIDs.The TIF here passes +// IUNKNOWN of the pin it is connecting to and obtains the IMPEG2PIDMAP interface +// implemented by the NP to Map/ UnMap pids. +// + +[ + object, + uuid(DFEF4A68-EE61-415f-9CCB-CD95F2F98A3A), + helpstring("BDA Network Provider Registration Inteface for DVB/ATSC Transport Information Filters"), + pointer_default(unique) +] +interface IBDA_TIF_REGISTRATION : IUnknown +{ + + [helpstring("Used to register a transport analyzer with the Network Provider")] + HRESULT + RegisterTIFEx ( + [in] IPin * pTIFInputPin, + [in, out] ULONG * ppvRegistrationContext, + [in, out] IUnknown ** ppMpeg2DataControl + ); + + [helpstring("Used to unregister TIF with the Network Provider")] + HRESULT + UnregisterTIF ( + [in] ULONG pvRegistrationContext + ); +} + + +//****************************************************************************** +// +// IMPEG2_TIF_CONTROL interface +// +// Implemented by the Microsoft ATSC/DVB BDA Network Provider +// +// Used by a transport information filter (TIF) to request table +// sections carried on specific PIDs within the transport stream. +// The Network Provider Filter will, in turn, do the necessary +// control on the Demux Filter. All sections are delivered as comlete +// mpeg2 table sections via the TIF's connection to the Demux Filter. +// +[ + object, + uuid(F9BAC2F9-4149-4916-B2EF-FAA202326862), + helpstring("BDA Network Provider Inteface for DVB/ATSC Transport Information Filters"), + pointer_default(unique) +] +interface IMPEG2_TIF_CONTROL : IUnknown +{ + + [helpstring("Used to register a transport analyzer with the Network Provider")] + HRESULT + RegisterTIF ( + [in] IUnknown * pUnkTIF, + [in, out] ULONG * ppvRegistrationContext + ); + + [helpstring("Used to unregister TIF with the Network Provider")] + HRESULT + UnregisterTIF ( + [in] ULONG pvRegistrationContext + ); + + [helpstring("Used to add PSI/SI MPEG2 packet IDs to the TIF's data stream")] + HRESULT + AddPIDs ( + [in] ULONG ulcPIDs, + [in] ULONG * pulPIDs + ); + + [helpstring("Used to remove PSI/SI MPEG2 packet IDs from the TIF's data stream")] + HRESULT + DeletePIDs ( + [in] ULONG ulcPIDs, + [in] ULONG * pulPIDs + ); + + [helpstring("Returns the number of MPEG2 Packet IDs being filtered into the TIF's input data.")] + HRESULT + GetPIDCount ( + [out] ULONG * pulcPIDs + ); + + [helpstring("Returns the the list of MPEG2 Packet IDs being filtered into the TIF's input data.")] + HRESULT + GetPIDs ( + [out] ULONG * pulcPIDs, + [out] ULONG * pulPIDs + ); + +} + + +//****************************************************************************** +// +// ITuneRequestInfo interface +// +// Implemented by a BDA transport information filter (TIF) +// +// Used by the BDA Network Provider to obtain network specific +// information about locating transport streams and aquiring +// services. +// +// +// GetLocatorData - +// +// GetComponentData - +// +// CreateComponentList - +// +// GetNextService - +// +// GetPreviouService - +// +// GetNextLocator - +// +// GetPreviousLocator - +// +[ + object, + uuid(A3B152DF-7A90-4218-AC54-9830BEE8C0B6), + helpstring("Interface provided by the Mpeg2 Transport Information Filter to supply tuning details."), + pointer_default(unique) +] +interface ITuneRequestInfo : IUnknown +{ + + [helpstring("TIF fills in channel/program locator information for the given tune request.")] + HRESULT + GetLocatorData ( + [in] ITuneRequest *Request + ); + + [helpstring("TIF fills in all network specific component data for the existing component list on the given tune request.")] + HRESULT + GetComponentData ( + [in] ITuneRequest *CurrentRequest + ); + + [helpstring("TIF creates a complete component list and fills in all network specific component data on the given tune request")] + HRESULT + CreateComponentList ( + [in] ITuneRequest *CurrentRequest + ); + + [helpstring("TIF creates a new TuneRequest with channel/program locator information for the next service.")] + HRESULT + GetNextProgram ( + [in] ITuneRequest *CurrentRequest, + [out, retval] ITuneRequest **TuneRequest + ); + + [helpstring("TIF creates a new TuneRequest with channel/program locator information for the previous service.")] + HRESULT + GetPreviousProgram ( + [in] ITuneRequest *CurrentRequest, + [out, retval] ITuneRequest **TuneRequest + ); + + [helpstring("TIF creates a new TuneRequest with locator information for the next transport stream.")] + HRESULT + GetNextLocator ( + [in] ITuneRequest *CurrentRequest, + [out, retval] ITuneRequest **TuneRequest + ); + + [helpstring("TIF creates a new TuneRequest with locator information for the previous transport stream.")] + HRESULT + GetPreviousLocator ( + [in] ITuneRequest *CurrentRequest, + [out, retval] ITuneRequest **TuneRequest + ); +} + +[ + object, + uuid(EE957C52-B0D0-4e78-8DD1-B87A08BFD893), + helpstring("Interface provided by the Mpeg2 Transport Information Filter to supply tuning details."), + pointer_default(unique) +] +interface ITuneRequestInfoEx : ITuneRequestInfo +{ + [helpstring("TIF creates a complete component list and fills in all network specific component data on the given tune request")] + HRESULT + CreateComponentListEx ( + [in] ITuneRequest *CurrentRequest, + [out] IUnknown **ppCurPMT + ); +} + +//****************************************************************************** +// +// ISIInbandEPGEvent +// +[ + object, + uuid(7E47913A-5A89-423d-9A2B-E15168858934), + helpstring("Consumers of EIT data events must implement this callback interface."), + pointer_default(unique) +] +interface ISIInbandEPGEvent : IUnknown +{ + HRESULT SIObjectEvent([in] IDVB_EIT2* pIDVB_EIT, [in]DWORD dwTable_ID, [in]DWORD dwService_ID ); +} + +//****************************************************************************** +// +// ISIInbandEPG +// +[ + object, + uuid(F90AD9D0-B854-4b68-9CC1-B2CC96119D85), + helpstring("ISIInbandEPG"), + pointer_default(unique) +] +interface ISIInbandEPG : IUnknown +{ + HRESULT StartSIEPGScan(); + HRESULT StopSIEPGScan(); + HRESULT IsSIEPGScanRunning([out, retval] BOOL *bRunning); +} + +//****************************************************************************** +// +// IGuideDataEvent +// +// This is the guide data event notification callback interface. The +// callback interface is registered on a transport analyzer's +// IConnectionPoint by the event consumer. +// +// The event consumer MUST NOT BLOCK THE CALLING THREAD. +// +// If the consumer requires additional information about the event, it +// should queue the event to a separate thread. +// +// {EFDA0C80-F395-42c3-9B3C-56B37DEC7BB7} +// +[ + object, + uuid(EFDA0C80-F395-42c3-9B3C-56B37DEC7BB7), + helpstring("Consumers of a guide data events must implement this callback interface."), + pointer_default(unique) +] +interface IGuideDataEvent : IUnknown +{ + // Indicates that a complete set of guide data has been acquire from + // the current transport stream. + // + // MANDATORY - If a transport analyzer supports IGuideDataEvent then + // it must supply this event. + // + HRESULT GuideDataAcquired( + ); + + // Indicates that information about one or more programs changed. + // + // If varProgramDescriptionID is NULL then the consumer + // must get properties for all programs to determine which ones + // changed. + // + // MANDATORY - If a transport analyzer supports IGuideDataEvent then + // it must supply this event. + // + HRESULT ProgramChanged( + [in] VARIANT varProgramDescriptionID + ); + + // Indicates that information about one or more services changed. + // + // If varServiceDescriptionID is NULL then the consumer + // must get properties for all services to determine which ones + // changed. + // + // MANDATORY - If a transport analyzer supports IGuideDataEvent then + // it must supply this event. + // + HRESULT ServiceChanged( + [in] VARIANT varServiceDescriptionID + ); + + // Indicates that information about one or more schedule entries + // changed. + // + // If varScheduleEntryDescriptionID is NULL then the consumer + // must get properties for all schedule entries to determine which ones + // changed. + // + // MANDATORY - If a transport analyzer supports IGuideDataEvent then + // it must supply this event. + // + HRESULT ScheduleEntryChanged( + [in] VARIANT varScheduleEntryDescriptionID + ); + + // Indicates that the program with the given Description.ID + // has been deleted. + // + // + // Optional - Transport analyzer may supply this event. Consumer + // may return E_NOTIMPL. + // + HRESULT ProgramDeleted( + [in] VARIANT varProgramDescriptionID + ); + + // Indicates that the service with the given Description.ID + // has been deleted. + // + // + // Optional - Transport analyzer may supply this event. Consumer + // may return E_NOTIMPL. + // + HRESULT ServiceDeleted( + [in] VARIANT varServiceDescriptionID + ); + + + // Indicates that the schedule entry with the given Description.ID + // has been deleted. + // + // + // Optional - Transport analyzer may supply this event. Consumer + // may return E_NOTIMPL. + // + HRESULT ScheduleDeleted( + [in] VARIANT varScheduleEntryDescriptionID + ); +} + + +//****************************************************************************** +// +// IGuideDataPropery +// +// {88EC5E58-BB73-41d6-99CE-66C524B8B591} +// +[ + object, + uuid(88EC5E58-BB73-41d6-99CE-66C524B8B591), + helpstring("Interface provided by a transport analyzer to represent a guide data property."), + pointer_default(unique) +] +interface IGuideDataProperty : IUnknown +{ + [propget] HRESULT Name([out] BSTR *pbstrName); + [propget] HRESULT Language([out] long *idLang); + [propget] HRESULT Value([out] VARIANT *pvar); +} + + +//****************************************************************************** +// +// IEnumGuideDataProperties +// +// {AE44423B-4571-475c-AD2C-F40A771D80EF} +// +[ + object, + uuid(AE44423B-4571-475c-AD2C-F40A771D80EF), + helpstring("Interface provided by a transport analyzer to enumerate guide data properties."), + pointer_default(unique) +] +interface IEnumGuideDataProperties : IUnknown +{ + HRESULT Next([in] unsigned long celt, [out] IGuideDataProperty **ppprop, [out] unsigned long *pcelt); + HRESULT Skip([in] unsigned long celt); + HRESULT Reset(); + HRESULT Clone([out] IEnumGuideDataProperties **ppenum); +} + + +//****************************************************************************** +// +// IEnumTuneRequests +// +// {1993299C-CED6-4788-87A3-420067DCE0C7} +// +[ + object, + uuid(1993299C-CED6-4788-87A3-420067DCE0C7), + helpstring("Interface provided by a transport analyzer to enumerate service tune requests ."), + pointer_default(unique) +] +interface IEnumTuneRequests : IUnknown +{ + HRESULT Next([in] unsigned long celt, [out] ITuneRequest **ppprop, [out] unsigned long *pcelt); + HRESULT Skip([in] unsigned long celt); + HRESULT Reset(); + HRESULT Clone([out] IEnumTuneRequests **ppenum); +} + + +//****************************************************************************** +// +// IGuideData +// +// {61571138-5B01-43cd-AEAF-60B784A0BF93} +// +[ + object, + uuid(61571138-5B01-43cd-AEAF-60B784A0BF93), + helpstring("Interface provided by a transport analyzer to supply guide data information."), + pointer_default(unique) +] +interface IGuideData : IUnknown +{ + //------------------------------------------------------------------------- + // + // GetServices + // Returns an enumeration of tune requests for all services whose + // information is found in the current transport stream. + // + // Parameters + // + // IEnumTuneRequests ** + // Location in which a reference to the resulting + // IEnumTuneRequests is placed. The caller must release + // this reference when finished with it. + // + // Comments + // This call is used to enumerate all services whose information + // can be found in the service descriptor table. Each tune request + // in the IEnumTuneRequest * contains the tune request including the + // locator data for the service. + // + [helpstring("Returns an enumeration of services whose information is found in the given transport stream")] + HRESULT + GetServices ( + [out, retval] IEnumTuneRequests ** ppEnumTuneRequests + ); + + + //------------------------------------------------------------------------- + // + // GetServiceProperties + // Returns an enumeration of all guide data properties for + // the service with the given Description.ID. + // + // Parameters + // ITuneRequest * + // Pointer to a tune request that contains information needed + // to indentify the requested transport stream. + // A NULL ITuneRequest * indicates that information about the + // current transport stream is requested. + // + // IEnumGuideDataProperties ** + // Location in which a reference to the resulting + // IEnumGuideDataProperties is placed. The caller must release + // this reference when finished with it. + // + // Required Properties + // The following properties MUST be included in the returned + // property enumeration. + // + // Description.ID + // Uniquely identifies a service. + // + // Description.Name + // The default name to use for this service in the channel lineup. + // + // Description.Version + // Identifies the current version of the properties associated + // with this service. + // + // Provider.Name + // Name of the service provider (e.g. "KCTS") + // + // Provider.NetworkName + // Name of the network on which the service is provided. + // (e.g. "PBS") + // + // Service.TuneRequest + // Contains a tune request in the variant + // + // + [helpstring("Returns an enumeration of all guide data properties for the service specified by a tune request.")] + HRESULT + GetServiceProperties ( + [in] ITuneRequest * pTuneRequest, + [out, retval] IEnumGuideDataProperties ** ppEnumProperties + ); + + //------------------------------------------------------------------------- + // + // GetProgramIDs + // Returns an enumeration of the unique identifiers (Description.ID) + // of programs with description contained in all transport + // streams + // + // Parameters + // + // IEnumVARIANT ** + // Location in which a reference to the resulting + // IEnumVARIANT is placed. The caller must release + // this reference when finished with it. + // + // Comments + // This call is used to get a list of programs that have + // guide data properties in all transport streams. + // Each variant returned in the IEnumVARIANT * contains the + // unique Description.ID property for a program. + // Note that more than on transport stream may contain properties + // for the same program. In this case the properties should be + // merged. + // + [helpstring("Returns an enumeration of the Description.ID property for all programs on the given transport stream.")] + HRESULT + GetGuideProgramIDs ( + [out, retval] IEnumVARIANT ** pEnumPrograms + ); + + //------------------------------------------------------------------------- + // + // GetProgramProperties + // Returns an enumeration of all guide data properties for + // the program with the given Description.ID. + // + // Parameters + // varProgramDescriptionID + // Variant containing the unique identifier for the program + // for which properties are requested. + // + // IEnumGuideDataProperties ** + // Location in which a reference to the resulting + // IEnumGuideDataProperties is placed. The caller must release + // this reference when finished with it. + // + // Required Properties + // The following properties MUST be included in the returned + // property enumeration. + // + // Description.ID + // Uniquely identifies a program. + // + // Description.Version + // Identifies the current version of the properties associated + // with this program. + // + // Description.Title + // Human readable title of the program (e.g. "") + // + // Description.Long + // A description of the program. + // + [helpstring("Returns an enumeration of all guide data properties for the program with the given Description.ID.")] + HRESULT + GetProgramProperties ( + [in] VARIANT varProgramDescriptionID, + [out, retval] IEnumGuideDataProperties ** ppEnumProperties + ); + + //------------------------------------------------------------------------- + // + // GetScheduleIDs + // Returns an enumeration of the unique identifiers (Description.ID) + // transport of schedule entries with description contained in the + // given transport stream. + // + // Parameters + // + // IEnumVARIANT ** + // Location in which a reference to the resulting + // IEnumVARIANT is placed. The caller must release + // this reference when finished with it. + // + // Comments + // This call is used to get a list of schedule entries that have + // guide data properties in all transport streams. + // Each variant returned in the IEnumVARIANT * contains the + // unique Description.ID property for a schedule entry. + // Note that more than on transport stream may contain properties + // for the same schedule entry. In this case the properties + // should be merged. + // + [helpstring("Returns an enumeration of the Description.ID property for all schedule entries in the transport stream specified by a tune request.")] + HRESULT + GetScheduleEntryIDs ( + [out, retval] IEnumVARIANT ** pEnumScheduleEntries + ); + + //------------------------------------------------------------------------- + // + // GetScheduleEntryProperties + // Returns an enumeration of all guide data properties for + // the schedule entry with the given Description.ID. + // + // Parameters + // varScheduleEntryDescriptionID + // Variant containing the unique identifier for the schedule + // entry for which properties are requested. + // + // IEnumGuideDataProperties ** + // Location in which a reference to the resulting + // IEnumGuideDataProperties is placed. The caller must release + // this reference when finished with it. + // + // Required Properties + // The following properties MUST be included in the returned + // property enumeration. + // + // Description.ID + // Uniquely identifies a schedule entry. + // + // Description.Version + // Identifies the current version of the properties associated + // with this program. + // + // Time.Start + // The starting time and date of this schedule entry. + // + // Time.End + // The ending time and date of this schedule entry. + // + // Schedule.Program + // The Description.ID of the program that will play at the + // time specified by this schedule entry. + // + // Schedule.Service + // The Description.ID of the Service that carries the + // program that will play at the time specified by this + // schedule entry. + // + [helpstring("Returns an enumeration of all guide data properties for the schedule entry with the given Description.ID.")] + HRESULT + GetScheduleEntryProperties ( + [in] VARIANT varScheduleEntryDescriptionID, + [out, retval] IEnumGuideDataProperties ** ppEnumProperties + ); + +} + + +//****************************************************************************** +// +// IGuideDataLoader +// +// All Guide Data Loaders MUST implement this interface. It is how they are +// provided with the IGuideData interface that they will use. +// +// {4764ff7c-fa95-4525-af4d-d32236db9e38} +[ + object, + uuid(4764ff7c-fa95-4525-af4d-d32236db9e38), + helpstring("IGuideDataLoader Interface"), + pointer_default(unique) +] +interface IGuideDataLoader : IUnknown +{ + HRESULT Init([in] IGuideData *pGuideStore); + HRESULT Terminate(); +}; + +[ + uuid(8224A083-7F8C-432D-B83E-3C5E9BDE3528), + version(1.0), + helpstring("psisload 1.0 Type Library") +] +library PSISLOADLib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + uuid(14EB8748-1753-4393-95AE-4F7E7A87AAD6), + helpstring("TIFLoad Class") + ] + coclass TIFLoad + { + interface IGuideDataLoader; + interface IGuideDataEvent; + interface ISIInbandEPG; + interface ISIInbandEPGEvent; + }; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#if ( _MSC_VER >= 800 )") +cpp_quote("#pragma warning(default:4201) /* Nameless struct/union */") +cpp_quote("#endif") + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bindlink.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bindlink.h new file mode 100644 index 0000000000000000000000000000000000000000..311d1922c03d46ad9a4dbf3655229e6838045ab8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bindlink.h @@ -0,0 +1,50 @@ +/*++ +Copyright (c) Microsoft Corporation. All rights reserved. +Module Name: + bindlink.h +Abstract: + This file contains public APIs for the creation and removal of + bind links. +Environment: + User mode. +--*/ + +#ifndef BINDLINK_H +#define BINDLINK_H + +#if _MSC_VER > 1000 +#pragma once +#endif + +#pragma region Desktop Family + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if defined(BINDLINK_API_IMPL) || (defined(NTDDI_WIN10_CU) && (NTDDI_VERSION >= NTDDI_WIN10_CU)) + +typedef enum CREATE_BIND_LINK_FLAGS +{ + CREATE_BIND_LINK_FLAG_NONE = 0x00000000, + CREATE_BIND_LINK_FLAG_READ_ONLY = 0x00000001, + CREATE_BIND_LINK_FLAG_MERGED = 0x00000002, +} CREATE_BIND_LINK_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(CREATE_BIND_LINK_FLAGS); + +STDAPI +CreateBindLink( + _In_ PCWSTR virtualPath, + _In_ PCWSTR backingPath, + CREATE_BIND_LINK_FLAGS createBindLinkFlags, + UINT32 exceptionCount, + _In_reads_opt_(exceptionCount) PCWSTR* const exceptionPaths); + +STDAPI +RemoveBindLink( + _In_ PCWSTR virtualPath); + +#pragma endregion + +#endif /* #if defined(BINDLINK_API_IMPL) || (defined(NTDDI_WIN10_CU) && (NTDDI_VERSION > = NTDDI_WIN10_CU)) */ +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#endif /* #ifndef BINDLINK_H */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/binres.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/binres.idl new file mode 100644 index 0000000000000000000000000000000000000000..279737c613a1c65a35a6fb487529cb6aac5fd045 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/binres.idl @@ -0,0 +1,61 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: binres.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" + + REMOTED_INTERFACE(0c733ab1-2a1c-11ce-ade5-00aa0044773d) + +interface IBindResource : IUnknown +{ + +[local] +HRESULT Bind( + [in, annotation("_In_opt_")] IUnknown* pUnkOuter, + [in, annotation("_In_z_")] LPCOLESTR pwszURL, + [in] DBBINDURLFLAG dwBindURLFlags, + [in] REFGUID rguid, + [in] REFIID riid, + [in, annotation("_In_opt_")] IAuthenticate* pAuthenticate, + [in, out, unique, annotation("_Inout_opt_")] DBIMPLICITSESSION* pImplSession, + [in, out, unique, annotation("_Out_opt_")] DBBINDURLSTATUS* pdwBindStatus, + [out, iid_is(riid), annotation("_Outptr_")] IUnknown** ppUnk + ); + +[call_as(Bind)] +HRESULT RemoteBind( + [in] IUnknown * pUnkOuter, + [in] LPCOLESTR pwszURL, + [in] DBBINDURLFLAG dwBindURLFlags, + [in] REFGUID rguid, + [in] REFIID riid, + [in] IAuthenticate * pAuthenticate, + [in] IUnknown *pSessionUnkOuter, + [in, unique] IID *piid, + [in, out, unique, iid_is(piid)] IUnknown **ppSession, + [in, out, unique] DBBINDURLSTATUS * pdwBindStatus, + [out, iid_is(riid)] IUnknown ** ppUnk + ); + +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_1.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_1.h new file mode 100644 index 0000000000000000000000000000000000000000..568b001122c18fef4da4ef675e9f955c5bda7641 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_1.h @@ -0,0 +1,508 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bits10_1_h__ +#define __bits10_1_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBackgroundCopyCallback3_FWD_DEFINED__ +#define __IBackgroundCopyCallback3_FWD_DEFINED__ +typedef interface IBackgroundCopyCallback3 IBackgroundCopyCallback3; + +#endif /* __IBackgroundCopyCallback3_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile6_FWD_DEFINED__ +#define __IBackgroundCopyFile6_FWD_DEFINED__ +typedef interface IBackgroundCopyFile6 IBackgroundCopyFile6; + +#endif /* __IBackgroundCopyFile6_FWD_DEFINED__ */ + + +#ifndef __BackgroundCopyManager10_1_FWD_DEFINED__ +#define __BackgroundCopyManager10_1_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackgroundCopyManager10_1 BackgroundCopyManager10_1; +#else +typedef struct BackgroundCopyManager10_1 BackgroundCopyManager10_1; +#endif /* __cplusplus */ + +#endif /* __BackgroundCopyManager10_1_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyCallback3_FWD_DEFINED__ +#define __IBackgroundCopyCallback3_FWD_DEFINED__ +typedef interface IBackgroundCopyCallback3 IBackgroundCopyCallback3; + +#endif /* __IBackgroundCopyCallback3_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile6_FWD_DEFINED__ +#define __IBackgroundCopyFile6_FWD_DEFINED__ +typedef interface IBackgroundCopyFile6 IBackgroundCopyFile6; + +#endif /* __IBackgroundCopyFile6_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "bits.h" +#include "bits1_5.h" +#include "bits2_0.h" +#include "bits2_5.h" +#include "bits3_0.h" +#include "bits4_0.h" +#include "bits5_0.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bits10_1_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_bits10_1_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits10_1_0000_0000_v0_0_s_ifspec; + +#ifndef __IBackgroundCopyCallback3_INTERFACE_DEFINED__ +#define __IBackgroundCopyCallback3_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyCallback3 */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyCallback3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("98c97bd2-e32b-4ad8-a528-95fd8b16bd42") + IBackgroundCopyCallback3 : public IBackgroundCopyCallback2 + { + public: + virtual HRESULT STDMETHODCALLTYPE FileRangesTransferred( + /* [in] */ __RPC__in_opt IBackgroundCopyJob *job, + /* [in] */ __RPC__in_opt IBackgroundCopyFile *file, + /* [in] */ DWORD rangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(rangeCount) const BG_FILE_RANGE ranges[ ]) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyCallback3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyCallback3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyCallback3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyCallback3 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback, JobTransferred) + HRESULT ( STDMETHODCALLTYPE *JobTransferred )( + __RPC__in IBackgroundCopyCallback3 * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback, JobError) + HRESULT ( STDMETHODCALLTYPE *JobError )( + __RPC__in IBackgroundCopyCallback3 * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ __RPC__in_opt IBackgroundCopyError *pError); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback, JobModification) + HRESULT ( STDMETHODCALLTYPE *JobModification )( + __RPC__in IBackgroundCopyCallback3 * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ DWORD dwReserved); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback2, FileTransferred) + HRESULT ( STDMETHODCALLTYPE *FileTransferred )( + __RPC__in IBackgroundCopyCallback3 * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *pJob, + /* [in] */ __RPC__in_opt IBackgroundCopyFile *pFile); + + DECLSPEC_XFGVIRT(IBackgroundCopyCallback3, FileRangesTransferred) + HRESULT ( STDMETHODCALLTYPE *FileRangesTransferred )( + __RPC__in IBackgroundCopyCallback3 * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *job, + /* [in] */ __RPC__in_opt IBackgroundCopyFile *file, + /* [in] */ DWORD rangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(rangeCount) const BG_FILE_RANGE ranges[ ]); + + END_INTERFACE + } IBackgroundCopyCallback3Vtbl; + + interface IBackgroundCopyCallback3 + { + CONST_VTBL struct IBackgroundCopyCallback3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyCallback3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyCallback3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyCallback3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyCallback3_JobTransferred(This,pJob) \ + ( (This)->lpVtbl -> JobTransferred(This,pJob) ) + +#define IBackgroundCopyCallback3_JobError(This,pJob,pError) \ + ( (This)->lpVtbl -> JobError(This,pJob,pError) ) + +#define IBackgroundCopyCallback3_JobModification(This,pJob,dwReserved) \ + ( (This)->lpVtbl -> JobModification(This,pJob,dwReserved) ) + + +#define IBackgroundCopyCallback3_FileTransferred(This,pJob,pFile) \ + ( (This)->lpVtbl -> FileTransferred(This,pJob,pFile) ) + + +#define IBackgroundCopyCallback3_FileRangesTransferred(This,job,file,rangeCount,ranges) \ + ( (This)->lpVtbl -> FileRangesTransferred(This,job,file,rangeCount,ranges) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyCallback3_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile6_INTERFACE_DEFINED__ +#define __IBackgroundCopyFile6_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyFile6 */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyFile6; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CF6784F7-D677-49FD-9368-CB47AEE9D1AD") + IBackgroundCopyFile6 : public IBackgroundCopyFile5 + { + public: + virtual HRESULT STDMETHODCALLTYPE UpdateDownloadPosition( + /* [in] */ UINT64 offset) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestFileRanges( + /* [in] */ DWORD rangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(rangeCount) const BG_FILE_RANGE ranges[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFilledFileRanges( + /* [ref][out] */ __RPC__out DWORD *rangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*rangeCount) BG_FILE_RANGE **ranges) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyFile6Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyFile6 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyFile6 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyFile6 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetRemoteName) + HRESULT ( STDMETHODCALLTYPE *GetRemoteName )( + __RPC__in IBackgroundCopyFile6 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetLocalName) + HRESULT ( STDMETHODCALLTYPE *GetLocalName )( + __RPC__in IBackgroundCopyFile6 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyFile6 * This, + /* [out] */ __RPC__out BG_FILE_PROGRESS *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile2, GetFileRanges) + HRESULT ( STDMETHODCALLTYPE *GetFileRanges )( + __RPC__in IBackgroundCopyFile6 * This, + /* [unique][out][in] */ __RPC__inout_opt DWORD *RangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*RangeCount) BG_FILE_RANGE **Ranges); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile2, SetRemoteName) + HRESULT ( STDMETHODCALLTYPE *SetRemoteName )( + __RPC__in IBackgroundCopyFile6 * This, + __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, GetTemporaryName) + HRESULT ( STDMETHODCALLTYPE *GetTemporaryName )( + __RPC__in IBackgroundCopyFile6 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pFilename); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, SetValidationState) + HRESULT ( STDMETHODCALLTYPE *SetValidationState )( + __RPC__in IBackgroundCopyFile6 * This, + /* [in] */ BOOL state); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, GetValidationState) + HRESULT ( STDMETHODCALLTYPE *GetValidationState )( + __RPC__in IBackgroundCopyFile6 * This, + /* [out] */ __RPC__out BOOL *pState); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, IsDownloadedFromPeer) + HRESULT ( STDMETHODCALLTYPE *IsDownloadedFromPeer )( + __RPC__in IBackgroundCopyFile6 * This, + /* [out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile4, GetPeerDownloadStats) + HRESULT ( STDMETHODCALLTYPE *GetPeerDownloadStats )( + __RPC__in IBackgroundCopyFile6 * This, + /* [out] */ __RPC__out PUINT64 pFromOrigin, + /* [out] */ __RPC__out PUINT64 pFromPeers); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile5, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IBackgroundCopyFile6 * This, + /* [in] */ BITS_FILE_PROPERTY_ID PropertyId, + /* [switch_is][in] */ BITS_FILE_PROPERTY_VALUE PropertyValue); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile5, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IBackgroundCopyFile6 * This, + /* [in] */ BITS_FILE_PROPERTY_ID PropertyId, + /* [switch_is][out] */ __RPC__out BITS_FILE_PROPERTY_VALUE *PropertyValue); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile6, UpdateDownloadPosition) + HRESULT ( STDMETHODCALLTYPE *UpdateDownloadPosition )( + __RPC__in IBackgroundCopyFile6 * This, + /* [in] */ UINT64 offset); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile6, RequestFileRanges) + HRESULT ( STDMETHODCALLTYPE *RequestFileRanges )( + __RPC__in IBackgroundCopyFile6 * This, + /* [in] */ DWORD rangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(rangeCount) const BG_FILE_RANGE ranges[ ]); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile6, GetFilledFileRanges) + HRESULT ( STDMETHODCALLTYPE *GetFilledFileRanges )( + __RPC__in IBackgroundCopyFile6 * This, + /* [ref][out] */ __RPC__out DWORD *rangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*rangeCount) BG_FILE_RANGE **ranges); + + END_INTERFACE + } IBackgroundCopyFile6Vtbl; + + interface IBackgroundCopyFile6 + { + CONST_VTBL struct IBackgroundCopyFile6Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyFile6_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyFile6_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyFile6_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyFile6_GetRemoteName(This,pVal) \ + ( (This)->lpVtbl -> GetRemoteName(This,pVal) ) + +#define IBackgroundCopyFile6_GetLocalName(This,pVal) \ + ( (This)->lpVtbl -> GetLocalName(This,pVal) ) + +#define IBackgroundCopyFile6_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + + +#define IBackgroundCopyFile6_GetFileRanges(This,RangeCount,Ranges) \ + ( (This)->lpVtbl -> GetFileRanges(This,RangeCount,Ranges) ) + +#define IBackgroundCopyFile6_SetRemoteName(This,Val) \ + ( (This)->lpVtbl -> SetRemoteName(This,Val) ) + + +#define IBackgroundCopyFile6_GetTemporaryName(This,pFilename) \ + ( (This)->lpVtbl -> GetTemporaryName(This,pFilename) ) + +#define IBackgroundCopyFile6_SetValidationState(This,state) \ + ( (This)->lpVtbl -> SetValidationState(This,state) ) + +#define IBackgroundCopyFile6_GetValidationState(This,pState) \ + ( (This)->lpVtbl -> GetValidationState(This,pState) ) + +#define IBackgroundCopyFile6_IsDownloadedFromPeer(This,pVal) \ + ( (This)->lpVtbl -> IsDownloadedFromPeer(This,pVal) ) + + +#define IBackgroundCopyFile6_GetPeerDownloadStats(This,pFromOrigin,pFromPeers) \ + ( (This)->lpVtbl -> GetPeerDownloadStats(This,pFromOrigin,pFromPeers) ) + + +#define IBackgroundCopyFile6_SetProperty(This,PropertyId,PropertyValue) \ + ( (This)->lpVtbl -> SetProperty(This,PropertyId,PropertyValue) ) + +#define IBackgroundCopyFile6_GetProperty(This,PropertyId,PropertyValue) \ + ( (This)->lpVtbl -> GetProperty(This,PropertyId,PropertyValue) ) + + +#define IBackgroundCopyFile6_UpdateDownloadPosition(This,offset) \ + ( (This)->lpVtbl -> UpdateDownloadPosition(This,offset) ) + +#define IBackgroundCopyFile6_RequestFileRanges(This,rangeCount,ranges) \ + ( (This)->lpVtbl -> RequestFileRanges(This,rangeCount,ranges) ) + +#define IBackgroundCopyFile6_GetFilledFileRanges(This,rangeCount,ranges) \ + ( (This)->lpVtbl -> GetFilledFileRanges(This,rangeCount,ranges) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyFile6_INTERFACE_DEFINED__ */ + + + +#ifndef __BackgroundCopyManager10_1_LIBRARY_DEFINED__ +#define __BackgroundCopyManager10_1_LIBRARY_DEFINED__ + +/* library BackgroundCopyManager10_1 */ +/* [version][lcid][uuid] */ + + + + + + + + + + + + +EXTERN_C const IID LIBID_BackgroundCopyManager10_1; + +EXTERN_C const CLSID CLSID_BackgroundCopyManager10_1; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4BD3E4E1-7BD4-4A2B-9964-496400DE5193") +BackgroundCopyManager10_1; +#endif +#endif /* __BackgroundCopyManager10_1_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bits10_1_0000_0003 */ +/* [local] */ + +#include "bits10_2.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bits10_1_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits10_1_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_1.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_1.idl new file mode 100644 index 0000000000000000000000000000000000000000..20b5f64ae2431578243eb2fa6443b3456f10d3e3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_1.idl @@ -0,0 +1,82 @@ +/********************************************************* +* * +* Copyright (c) Microsoft. All rights reserved. * +* * +*********************************************************/ + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "bits.idl"; +import "bits1_5.idl"; +import "bits2_0.idl"; +import "bits2_5.idl"; +import "bits3_0.idl"; +import "bits4_0.idl"; +import "bits5_0.idl"; + +[ + uuid(98c97bd2-e32b-4ad8-a528-95fd8b16bd42) +] +interface IBackgroundCopyCallback3 : IBackgroundCopyCallback2 +{ + HRESULT FileRangesTransferred( + [in] IBackgroundCopyJob *job, + [in] IBackgroundCopyFile *file, + [in] DWORD rangeCount, + [in, size_is(rangeCount)] const BG_FILE_RANGE ranges[] + ); +} + +[ + uuid(CF6784F7-D677-49FD-9368-CB47AEE9D1AD) +] +interface IBackgroundCopyFile6 : IBackgroundCopyFile5 +{ + HRESULT UpdateDownloadPosition([in] UINT64 offset); + + HRESULT + RequestFileRanges( + [in] DWORD rangeCount, + [in, size_is(rangeCount)] const BG_FILE_RANGE ranges[] + ); + + HRESULT + GetFilledFileRanges( + [out, ref] DWORD *rangeCount, + [out, size_is(, *rangeCount)] BG_FILE_RANGE **ranges + ); +} + +[ + uuid(8A39E4B6-22C9-4B39-9E0C-B1CDF5F967FD), + lcid(0x0000), + version(1.0) +] +library BackgroundCopyManager10_1 +{ + [ + uuid(4BD3E4E1-7BD4-4A2B-9964-496400DE5193) + ] + coclass BackgroundCopyManager10_1 + { + [default] interface IBackgroundCopyManager; + }; + interface IBackgroundCopyCallback3; + interface IBackgroundCopyFile6; + interface IBackgroundCopyJob5; + interface IBackgroundCopyJobHttpOptions; + interface IBitsPeer; + interface IBitsPeerCacheAdministration; + interface IBitsPeerCacheRecord; + interface IBitsTokenOptions; + interface IEnumBitsPeerCacheRecords; + interface IEnumBitsPeers; +} + +cpp_quote("#include \"bits10_2.h\"") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_2.h new file mode 100644 index 0000000000000000000000000000000000000000..38cab5ab48b3fb795f17bce7bf81c74c8e53ea46 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_2.h @@ -0,0 +1,321 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bits10_2_h__ +#define __bits10_2_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBackgroundCopyJobHttpOptions2_FWD_DEFINED__ +#define __IBackgroundCopyJobHttpOptions2_FWD_DEFINED__ +typedef interface IBackgroundCopyJobHttpOptions2 IBackgroundCopyJobHttpOptions2; + +#endif /* __IBackgroundCopyJobHttpOptions2_FWD_DEFINED__ */ + + +#ifndef __BackgroundCopyManager10_2_FWD_DEFINED__ +#define __BackgroundCopyManager10_2_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackgroundCopyManager10_2 BackgroundCopyManager10_2; +#else +typedef struct BackgroundCopyManager10_2 BackgroundCopyManager10_2; +#endif /* __cplusplus */ + +#endif /* __BackgroundCopyManager10_2_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyJobHttpOptions2_FWD_DEFINED__ +#define __IBackgroundCopyJobHttpOptions2_FWD_DEFINED__ +typedef interface IBackgroundCopyJobHttpOptions2 IBackgroundCopyJobHttpOptions2; + +#endif /* __IBackgroundCopyJobHttpOptions2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "bits.h" +#include "bits1_5.h" +#include "bits2_0.h" +#include "bits2_5.h" +#include "bits3_0.h" +#include "bits4_0.h" +#include "bits5_0.h" +#include "bits10_1.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bits10_2_0000_0000 */ +/* [local] */ + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_bits10_2_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits10_2_0000_0000_v0_0_s_ifspec; + +#ifndef __IBackgroundCopyJobHttpOptions2_INTERFACE_DEFINED__ +#define __IBackgroundCopyJobHttpOptions2_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyJobHttpOptions2 */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyJobHttpOptions2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B591A192-A405-4FC3-8323-4C5C542578FC") + IBackgroundCopyJobHttpOptions2 : public IBackgroundCopyJobHttpOptions + { + public: + virtual HRESULT STDMETHODCALLTYPE SetHttpMethod( + /* [in] */ __RPC__in LPCWSTR method) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHttpMethod( + /* [out] */ __RPC__deref_out_opt LPWSTR *method) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyJobHttpOptions2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetClientCertificateByID) + HRESULT ( STDMETHODCALLTYPE *SetClientCertificateByID )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This, + /* [in] */ BG_CERT_STORE_LOCATION StoreLocation, + /* [in] */ __RPC__in LPCWSTR StoreName, + /* [ref][size_is][in] */ __RPC__in_ecount_full(20) byte *pCertHashBlob); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetClientCertificateByName) + HRESULT ( STDMETHODCALLTYPE *SetClientCertificateByName )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This, + /* [in] */ BG_CERT_STORE_LOCATION StoreLocation, + /* [in] */ __RPC__in LPCWSTR StoreName, + /* [in] */ __RPC__in LPCWSTR SubjectName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, RemoveClientCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveClientCertificate )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, GetClientCertificate) + HRESULT ( STDMETHODCALLTYPE *GetClientCertificate )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This, + /* [ref][out] */ __RPC__out BG_CERT_STORE_LOCATION *pStoreLocation, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pStoreName, + /* [ref][size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(20) byte **ppCertHashBlob, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pSubjectName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetCustomHeaders) + HRESULT ( STDMETHODCALLTYPE *SetCustomHeaders )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR RequestHeaders); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, GetCustomHeaders) + HRESULT ( STDMETHODCALLTYPE *GetCustomHeaders )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pRequestHeaders); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetSecurityFlags) + HRESULT ( STDMETHODCALLTYPE *SetSecurityFlags )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This, + /* [in] */ ULONG Flags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, GetSecurityFlags) + HRESULT ( STDMETHODCALLTYPE *GetSecurityFlags )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This, + /* [ref][out] */ __RPC__out ULONG *pFlags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions2, SetHttpMethod) + HRESULT ( STDMETHODCALLTYPE *SetHttpMethod )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This, + /* [in] */ __RPC__in LPCWSTR method); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions2, GetHttpMethod) + HRESULT ( STDMETHODCALLTYPE *GetHttpMethod )( + __RPC__in IBackgroundCopyJobHttpOptions2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *method); + + END_INTERFACE + } IBackgroundCopyJobHttpOptions2Vtbl; + + interface IBackgroundCopyJobHttpOptions2 + { + CONST_VTBL struct IBackgroundCopyJobHttpOptions2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyJobHttpOptions2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyJobHttpOptions2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyJobHttpOptions2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyJobHttpOptions2_SetClientCertificateByID(This,StoreLocation,StoreName,pCertHashBlob) \ + ( (This)->lpVtbl -> SetClientCertificateByID(This,StoreLocation,StoreName,pCertHashBlob) ) + +#define IBackgroundCopyJobHttpOptions2_SetClientCertificateByName(This,StoreLocation,StoreName,SubjectName) \ + ( (This)->lpVtbl -> SetClientCertificateByName(This,StoreLocation,StoreName,SubjectName) ) + +#define IBackgroundCopyJobHttpOptions2_RemoveClientCertificate(This) \ + ( (This)->lpVtbl -> RemoveClientCertificate(This) ) + +#define IBackgroundCopyJobHttpOptions2_GetClientCertificate(This,pStoreLocation,pStoreName,ppCertHashBlob,pSubjectName) \ + ( (This)->lpVtbl -> GetClientCertificate(This,pStoreLocation,pStoreName,ppCertHashBlob,pSubjectName) ) + +#define IBackgroundCopyJobHttpOptions2_SetCustomHeaders(This,RequestHeaders) \ + ( (This)->lpVtbl -> SetCustomHeaders(This,RequestHeaders) ) + +#define IBackgroundCopyJobHttpOptions2_GetCustomHeaders(This,pRequestHeaders) \ + ( (This)->lpVtbl -> GetCustomHeaders(This,pRequestHeaders) ) + +#define IBackgroundCopyJobHttpOptions2_SetSecurityFlags(This,Flags) \ + ( (This)->lpVtbl -> SetSecurityFlags(This,Flags) ) + +#define IBackgroundCopyJobHttpOptions2_GetSecurityFlags(This,pFlags) \ + ( (This)->lpVtbl -> GetSecurityFlags(This,pFlags) ) + + +#define IBackgroundCopyJobHttpOptions2_SetHttpMethod(This,method) \ + ( (This)->lpVtbl -> SetHttpMethod(This,method) ) + +#define IBackgroundCopyJobHttpOptions2_GetHttpMethod(This,method) \ + ( (This)->lpVtbl -> GetHttpMethod(This,method) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyJobHttpOptions2_INTERFACE_DEFINED__ */ + + + +#ifndef __BackgroundCopyManager10_2_LIBRARY_DEFINED__ +#define __BackgroundCopyManager10_2_LIBRARY_DEFINED__ + +/* library BackgroundCopyManager10_2 */ +/* [version][lcid][uuid] */ + + + + + + + + + + + + +EXTERN_C const IID LIBID_BackgroundCopyManager10_2; + +EXTERN_C const CLSID CLSID_BackgroundCopyManager10_2; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4575438F-A6C8-4976-B0FE-2F26B80D959E") +BackgroundCopyManager10_2; +#endif +#endif /* __BackgroundCopyManager10_2_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bits10_2_0000_0002 */ +/* [local] */ + +#include "bits10_3.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif /* NTDDI_VERSION >= NTDDI_WIN10_RS5 */ + + +extern RPC_IF_HANDLE __MIDL_itf_bits10_2_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits10_2_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_2.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_2.idl new file mode 100644 index 0000000000000000000000000000000000000000..702530ac84ce6df0aea7e9beb4dda0919cded659 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_2.idl @@ -0,0 +1,67 @@ +/********************************************************* +* * +* Copyright (c) Microsoft. All rights reserved. * +* * +*********************************************************/ + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_RS5)") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "bits.idl"; +import "bits1_5.idl"; +import "bits2_0.idl"; +import "bits2_5.idl"; +import "bits3_0.idl"; +import "bits4_0.idl"; +import "bits5_0.idl"; +import "bits10_1.idl"; + +[ + uuid(B591A192-A405-4FC3-8323-4C5C542578FC) +] +interface IBackgroundCopyJobHttpOptions2 : IBackgroundCopyJobHttpOptions +{ + HRESULT SetHttpMethod( + [in] LPCWSTR method + ); + + HRESULT GetHttpMethod( + [out] LPWSTR *method + ); +} + +[ + uuid(70CDC92E-4B95-49EB-8CDA-AD39AA7CC4A0), + lcid(0x0000), + version(1.0) +] +library BackgroundCopyManager10_2 +{ + [ + uuid(4575438F-A6C8-4976-B0FE-2F26B80D959E) + ] + coclass BackgroundCopyManager10_2 + { + [default] interface IBackgroundCopyManager; + }; + interface IBackgroundCopyCallback3; + interface IBackgroundCopyFile6; + interface IBackgroundCopyJob5; + interface IBackgroundCopyJobHttpOptions2; + interface IBitsPeer; + interface IBitsPeerCacheAdministration; + interface IBitsPeerCacheRecord; + interface IBitsTokenOptions; + interface IEnumBitsPeerCacheRecords; + interface IEnumBitsPeers; +} + +cpp_quote("#include \"bits10_3.h\"") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif /* NTDDI_VERSION >= NTDDI_WIN10_RS5 */") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_3.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_3.h new file mode 100644 index 0000000000000000000000000000000000000000..64ee76e968c7b3198acff76b668f339389d12f08 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_3.h @@ -0,0 +1,445 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bits10_3_h__ +#define __bits10_3_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBackgroundCopyServerCertificateValidationCallback_FWD_DEFINED__ +#define __IBackgroundCopyServerCertificateValidationCallback_FWD_DEFINED__ +typedef interface IBackgroundCopyServerCertificateValidationCallback IBackgroundCopyServerCertificateValidationCallback; + +#endif /* __IBackgroundCopyServerCertificateValidationCallback_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyJobHttpOptions3_FWD_DEFINED__ +#define __IBackgroundCopyJobHttpOptions3_FWD_DEFINED__ +typedef interface IBackgroundCopyJobHttpOptions3 IBackgroundCopyJobHttpOptions3; + +#endif /* __IBackgroundCopyJobHttpOptions3_FWD_DEFINED__ */ + + +#ifndef __BackgroundCopyManager10_3_FWD_DEFINED__ +#define __BackgroundCopyManager10_3_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackgroundCopyManager10_3 BackgroundCopyManager10_3; +#else +typedef struct BackgroundCopyManager10_3 BackgroundCopyManager10_3; +#endif /* __cplusplus */ + +#endif /* __BackgroundCopyManager10_3_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyJobHttpOptions3_FWD_DEFINED__ +#define __IBackgroundCopyJobHttpOptions3_FWD_DEFINED__ +typedef interface IBackgroundCopyJobHttpOptions3 IBackgroundCopyJobHttpOptions3; + +#endif /* __IBackgroundCopyJobHttpOptions3_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyServerCertificateValidationCallback_FWD_DEFINED__ +#define __IBackgroundCopyServerCertificateValidationCallback_FWD_DEFINED__ +typedef interface IBackgroundCopyServerCertificateValidationCallback IBackgroundCopyServerCertificateValidationCallback; + +#endif /* __IBackgroundCopyServerCertificateValidationCallback_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "bits.h" +#include "bits1_5.h" +#include "bits2_0.h" +#include "bits2_5.h" +#include "bits3_0.h" +#include "bits4_0.h" +#include "bits5_0.h" +#include "bits10_1.h" +#include "bits10_2.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bits10_3_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_bits10_3_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits10_3_0000_0000_v0_0_s_ifspec; + +#ifndef __IBackgroundCopyServerCertificateValidationCallback_INTERFACE_DEFINED__ +#define __IBackgroundCopyServerCertificateValidationCallback_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyServerCertificateValidationCallback */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyServerCertificateValidationCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4CEC0D02-DEF7-4158-813A-C32A46945FF7") + IBackgroundCopyServerCertificateValidationCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ValidateServerCertificate( + /* [in] */ __RPC__in_opt IBackgroundCopyJob *job, + /* [in] */ __RPC__in_opt IBackgroundCopyFile *file, + /* [in] */ DWORD certLength, + /* [size_is][in] */ __RPC__in_ecount_full(certLength) const BYTE certData[ ], + /* [in] */ DWORD certEncodingType, + /* [in] */ DWORD certStoreLength, + /* [size_is][in] */ __RPC__in_ecount_full(certStoreLength) const BYTE certStoreData[ ]) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyServerCertificateValidationCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyServerCertificateValidationCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyServerCertificateValidationCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyServerCertificateValidationCallback * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyServerCertificateValidationCallback, ValidateServerCertificate) + HRESULT ( STDMETHODCALLTYPE *ValidateServerCertificate )( + __RPC__in IBackgroundCopyServerCertificateValidationCallback * This, + /* [in] */ __RPC__in_opt IBackgroundCopyJob *job, + /* [in] */ __RPC__in_opt IBackgroundCopyFile *file, + /* [in] */ DWORD certLength, + /* [size_is][in] */ __RPC__in_ecount_full(certLength) const BYTE certData[ ], + /* [in] */ DWORD certEncodingType, + /* [in] */ DWORD certStoreLength, + /* [size_is][in] */ __RPC__in_ecount_full(certStoreLength) const BYTE certStoreData[ ]); + + END_INTERFACE + } IBackgroundCopyServerCertificateValidationCallbackVtbl; + + interface IBackgroundCopyServerCertificateValidationCallback + { + CONST_VTBL struct IBackgroundCopyServerCertificateValidationCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyServerCertificateValidationCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyServerCertificateValidationCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyServerCertificateValidationCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyServerCertificateValidationCallback_ValidateServerCertificate(This,job,file,certLength,certData,certEncodingType,certStoreLength,certStoreData) \ + ( (This)->lpVtbl -> ValidateServerCertificate(This,job,file,certLength,certData,certEncodingType,certStoreLength,certStoreData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyServerCertificateValidationCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyJobHttpOptions3_INTERFACE_DEFINED__ +#define __IBackgroundCopyJobHttpOptions3_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyJobHttpOptions3 */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyJobHttpOptions3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8A9263D3-FD4C-4EDA-9B28-30132A4D4E3C") + IBackgroundCopyJobHttpOptions3 : public IBackgroundCopyJobHttpOptions2 + { + public: + virtual HRESULT STDMETHODCALLTYPE SetServerCertificateValidationInterface( + /* [in] */ __RPC__in_opt IUnknown *certValidationCallback) = 0; + + virtual HRESULT STDMETHODCALLTYPE MakeCustomHeadersWriteOnly( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyJobHttpOptions3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetClientCertificateByID) + HRESULT ( STDMETHODCALLTYPE *SetClientCertificateByID )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [in] */ BG_CERT_STORE_LOCATION StoreLocation, + /* [in] */ __RPC__in LPCWSTR StoreName, + /* [ref][size_is][in] */ __RPC__in_ecount_full(20) byte *pCertHashBlob); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetClientCertificateByName) + HRESULT ( STDMETHODCALLTYPE *SetClientCertificateByName )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [in] */ BG_CERT_STORE_LOCATION StoreLocation, + /* [in] */ __RPC__in LPCWSTR StoreName, + /* [in] */ __RPC__in LPCWSTR SubjectName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, RemoveClientCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveClientCertificate )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, GetClientCertificate) + HRESULT ( STDMETHODCALLTYPE *GetClientCertificate )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [ref][out] */ __RPC__out BG_CERT_STORE_LOCATION *pStoreLocation, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pStoreName, + /* [ref][size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(20) byte **ppCertHashBlob, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pSubjectName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetCustomHeaders) + HRESULT ( STDMETHODCALLTYPE *SetCustomHeaders )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR RequestHeaders); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, GetCustomHeaders) + HRESULT ( STDMETHODCALLTYPE *GetCustomHeaders )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pRequestHeaders); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetSecurityFlags) + HRESULT ( STDMETHODCALLTYPE *SetSecurityFlags )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [in] */ ULONG Flags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, GetSecurityFlags) + HRESULT ( STDMETHODCALLTYPE *GetSecurityFlags )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [ref][out] */ __RPC__out ULONG *pFlags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions2, SetHttpMethod) + HRESULT ( STDMETHODCALLTYPE *SetHttpMethod )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [in] */ __RPC__in LPCWSTR method); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions2, GetHttpMethod) + HRESULT ( STDMETHODCALLTYPE *GetHttpMethod )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *method); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions3, SetServerCertificateValidationInterface) + HRESULT ( STDMETHODCALLTYPE *SetServerCertificateValidationInterface )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This, + /* [in] */ __RPC__in_opt IUnknown *certValidationCallback); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions3, MakeCustomHeadersWriteOnly) + HRESULT ( STDMETHODCALLTYPE *MakeCustomHeadersWriteOnly )( + __RPC__in IBackgroundCopyJobHttpOptions3 * This); + + END_INTERFACE + } IBackgroundCopyJobHttpOptions3Vtbl; + + interface IBackgroundCopyJobHttpOptions3 + { + CONST_VTBL struct IBackgroundCopyJobHttpOptions3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyJobHttpOptions3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyJobHttpOptions3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyJobHttpOptions3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyJobHttpOptions3_SetClientCertificateByID(This,StoreLocation,StoreName,pCertHashBlob) \ + ( (This)->lpVtbl -> SetClientCertificateByID(This,StoreLocation,StoreName,pCertHashBlob) ) + +#define IBackgroundCopyJobHttpOptions3_SetClientCertificateByName(This,StoreLocation,StoreName,SubjectName) \ + ( (This)->lpVtbl -> SetClientCertificateByName(This,StoreLocation,StoreName,SubjectName) ) + +#define IBackgroundCopyJobHttpOptions3_RemoveClientCertificate(This) \ + ( (This)->lpVtbl -> RemoveClientCertificate(This) ) + +#define IBackgroundCopyJobHttpOptions3_GetClientCertificate(This,pStoreLocation,pStoreName,ppCertHashBlob,pSubjectName) \ + ( (This)->lpVtbl -> GetClientCertificate(This,pStoreLocation,pStoreName,ppCertHashBlob,pSubjectName) ) + +#define IBackgroundCopyJobHttpOptions3_SetCustomHeaders(This,RequestHeaders) \ + ( (This)->lpVtbl -> SetCustomHeaders(This,RequestHeaders) ) + +#define IBackgroundCopyJobHttpOptions3_GetCustomHeaders(This,pRequestHeaders) \ + ( (This)->lpVtbl -> GetCustomHeaders(This,pRequestHeaders) ) + +#define IBackgroundCopyJobHttpOptions3_SetSecurityFlags(This,Flags) \ + ( (This)->lpVtbl -> SetSecurityFlags(This,Flags) ) + +#define IBackgroundCopyJobHttpOptions3_GetSecurityFlags(This,pFlags) \ + ( (This)->lpVtbl -> GetSecurityFlags(This,pFlags) ) + + +#define IBackgroundCopyJobHttpOptions3_SetHttpMethod(This,method) \ + ( (This)->lpVtbl -> SetHttpMethod(This,method) ) + +#define IBackgroundCopyJobHttpOptions3_GetHttpMethod(This,method) \ + ( (This)->lpVtbl -> GetHttpMethod(This,method) ) + + +#define IBackgroundCopyJobHttpOptions3_SetServerCertificateValidationInterface(This,certValidationCallback) \ + ( (This)->lpVtbl -> SetServerCertificateValidationInterface(This,certValidationCallback) ) + +#define IBackgroundCopyJobHttpOptions3_MakeCustomHeadersWriteOnly(This) \ + ( (This)->lpVtbl -> MakeCustomHeadersWriteOnly(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyJobHttpOptions3_INTERFACE_DEFINED__ */ + + + +#ifndef __BackgroundCopyManager10_3_LIBRARY_DEFINED__ +#define __BackgroundCopyManager10_3_LIBRARY_DEFINED__ + +/* library BackgroundCopyManager10_3 */ +/* [version][lcid][uuid] */ + + + + + + + + + + + + + +EXTERN_C const IID LIBID_BackgroundCopyManager10_3; + +EXTERN_C const CLSID CLSID_BackgroundCopyManager10_3; + +#ifdef __cplusplus + +class DECLSPEC_UUID("5FD42AD5-C04E-4D36-ADC7-E08FF15737AD") +BackgroundCopyManager10_3; +#endif +#endif /* __BackgroundCopyManager10_3_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bits10_3_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bits10_3_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits10_3_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_3.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_3.idl new file mode 100644 index 0000000000000000000000000000000000000000..145ff7a01ef87470546716555b60031b80b092dd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits10_3.idl @@ -0,0 +1,76 @@ +/********************************************************* +* * +* Copyright (c) Microsoft. All rights reserved. * +* * +*********************************************************/ + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "bits.idl"; +import "bits1_5.idl"; +import "bits2_0.idl"; +import "bits2_5.idl"; +import "bits3_0.idl"; +import "bits4_0.idl"; +import "bits5_0.idl"; +import "bits10_1.idl"; +import "bits10_2.idl"; + +[ + uuid(4CEC0D02-DEF7-4158-813A-C32A46945FF7) +] +interface IBackgroundCopyServerCertificateValidationCallback : IUnknown +{ + HRESULT ValidateServerCertificate( + [in] IBackgroundCopyJob* job, + [in] IBackgroundCopyFile* file, + [in] DWORD certLength, + [in, size_is(certLength)] const BYTE certData[], + [in] DWORD certEncodingType, + [in] DWORD certStoreLength, + [in, size_is(certStoreLength)] const BYTE certStoreData[]); +} + +[ + uuid(8A9263D3-FD4C-4EDA-9B28-30132A4D4E3C) +] +interface IBackgroundCopyJobHttpOptions3 : IBackgroundCopyJobHttpOptions2 +{ + HRESULT SetServerCertificateValidationInterface( + [in] IUnknown* certValidationCallback); + + HRESULT MakeCustomHeadersWriteOnly(); +} + +[ + uuid(9FD340E7-BB7E-46E6-B912-C6D0894F9AC9), + lcid(0x0000), + version(1.0) +] +library BackgroundCopyManager10_3 +{ + [ + uuid(5FD42AD5-C04E-4D36-ADC7-E08FF15737AD) + ] + coclass BackgroundCopyManager10_3 + { + [default] interface IBackgroundCopyManager; + }; + interface IBackgroundCopyCallback3; + interface IBackgroundCopyFile6; + interface IBackgroundCopyJob5; + interface IBackgroundCopyJobHttpOptions3; + interface IBackgroundCopyServerCertificateValidationCallback; + interface IBitsPeer; + interface IBitsPeerCacheAdministration; + interface IBitsPeerCacheRecord; + interface IBitsTokenOptions; + interface IEnumBitsPeerCacheRecords; + interface IEnumBitsPeers; +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits1_5.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits1_5.h new file mode 100644 index 0000000000000000000000000000000000000000..5a24dd1ef04b28580d69538e655946748728af7a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits1_5.h @@ -0,0 +1,611 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bits1_5_h__ +#define __bits1_5_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBackgroundCopyJob2_FWD_DEFINED__ +#define __IBackgroundCopyJob2_FWD_DEFINED__ +typedef interface IBackgroundCopyJob2 IBackgroundCopyJob2; + +#endif /* __IBackgroundCopyJob2_FWD_DEFINED__ */ + + +#ifndef __BackgroundCopyManager1_5_FWD_DEFINED__ +#define __BackgroundCopyManager1_5_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackgroundCopyManager1_5 BackgroundCopyManager1_5; +#else +typedef struct BackgroundCopyManager1_5 BackgroundCopyManager1_5; +#endif /* __cplusplus */ + +#endif /* __BackgroundCopyManager1_5_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyJob2_FWD_DEFINED__ +#define __IBackgroundCopyJob2_FWD_DEFINED__ +typedef interface IBackgroundCopyJob2 IBackgroundCopyJob2; + +#endif /* __IBackgroundCopyJob2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "bits.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bits1_5_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_bits1_5_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits1_5_0000_0000_v0_0_s_ifspec; + +#ifndef __IBackgroundCopyJob2_INTERFACE_DEFINED__ +#define __IBackgroundCopyJob2_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyJob2 */ +/* [object][helpstring][uuid] */ + +typedef struct _BG_JOB_REPLY_PROGRESS + { + UINT64 BytesTotal; + UINT64 BytesTransferred; + } BG_JOB_REPLY_PROGRESS; + +typedef +enum BG_AUTH_TARGET + { + BG_AUTH_TARGET_SERVER = 1, + BG_AUTH_TARGET_PROXY = ( BG_AUTH_TARGET_SERVER + 1 ) + } BG_AUTH_TARGET; + +typedef +enum BG_AUTH_SCHEME + { + BG_AUTH_SCHEME_BASIC = 1, + BG_AUTH_SCHEME_DIGEST = ( BG_AUTH_SCHEME_BASIC + 1 ) , + BG_AUTH_SCHEME_NTLM = ( BG_AUTH_SCHEME_DIGEST + 1 ) , + BG_AUTH_SCHEME_NEGOTIATE = ( BG_AUTH_SCHEME_NTLM + 1 ) , + BG_AUTH_SCHEME_PASSPORT = ( BG_AUTH_SCHEME_NEGOTIATE + 1 ) + } BG_AUTH_SCHEME; + +typedef /* [public][public][public][public][public][public] */ struct __MIDL_IBackgroundCopyJob2_0001 + { + LPWSTR UserName; + LPWSTR Password; + } BG_BASIC_CREDENTIALS; + +typedef BG_BASIC_CREDENTIALS *PBG_BASIC_CREDENTIALS; + +typedef /* [public][public][public][public][switch_type] */ union __MIDL_IBackgroundCopyJob2_0002 + { + /* [case()] */ BG_BASIC_CREDENTIALS Basic; + /* [default] */ /* Empty union arm */ + } BG_AUTH_CREDENTIALS_UNION; + +typedef /* [public][public][public] */ struct __MIDL_IBackgroundCopyJob2_0003 + { + BG_AUTH_TARGET Target; + BG_AUTH_SCHEME Scheme; + /* [switch_is] */ BG_AUTH_CREDENTIALS_UNION Credentials; + } BG_AUTH_CREDENTIALS; + +typedef BG_AUTH_CREDENTIALS *PBG_AUTH_CREDENTIALS; + + +EXTERN_C const IID IID_IBackgroundCopyJob2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("54b50739-686f-45eb-9dff-d6a9a0faa9af") + IBackgroundCopyJob2 : public IBackgroundCopyJob + { + public: + virtual HRESULT STDMETHODCALLTYPE SetNotifyCmdLine( + /* [unique][in] */ __RPC__in_opt LPCWSTR Program, + /* [unique][in] */ __RPC__in_opt LPCWSTR Parameters) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNotifyCmdLine( + /* [out] */ __RPC__deref_out_opt LPWSTR *pProgram, + /* [out] */ __RPC__deref_out_opt LPWSTR *pParameters) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReplyProgress( + /* [out][in] */ __RPC__inout BG_JOB_REPLY_PROGRESS *pProgress) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReplyData( + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(( unsigned long )*pLength) byte **ppBuffer, + /* [unique][out][in] */ __RPC__inout_opt UINT64 *pLength) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetReplyFileName( + /* [unique][in] */ __RPC__in_opt LPCWSTR ReplyFileName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReplyFileName( + /* [out] */ __RPC__deref_out_opt LPWSTR *pReplyFileName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCredentials( + __RPC__in BG_AUTH_CREDENTIALS *credentials) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveCredentials( + BG_AUTH_TARGET Target, + BG_AUTH_SCHEME Scheme) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyJob2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyJob2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyJob2 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, AddFileSet) + HRESULT ( STDMETHODCALLTYPE *AddFileSet )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ ULONG cFileCount, + /* [size_is][in] */ __RPC__in_ecount_full(cFileCount) BG_FILE_INFO *pFileSet); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, AddFile) + HRESULT ( STDMETHODCALLTYPE *AddFile )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ __RPC__in LPCWSTR RemoteUrl, + /* [in] */ __RPC__in LPCWSTR LocalName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, EnumFiles) + HRESULT ( STDMETHODCALLTYPE *EnumFiles )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyFiles **pEnum); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + __RPC__in IBackgroundCopyJob2 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IBackgroundCopyJob2 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IBackgroundCopyJob2 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Complete) + HRESULT ( STDMETHODCALLTYPE *Complete )( + __RPC__in IBackgroundCopyJob2 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetId) + HRESULT ( STDMETHODCALLTYPE *GetId )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out GUID *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetType) + HRESULT ( STDMETHODCALLTYPE *GetType )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out BG_JOB_TYPE *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out BG_JOB_PROGRESS *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetTimes) + HRESULT ( STDMETHODCALLTYPE *GetTimes )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out BG_JOB_TIMES *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out BG_JOB_STATE *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetError) + HRESULT ( STDMETHODCALLTYPE *GetError )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__deref_out_opt IBackgroundCopyError **ppError); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetOwner) + HRESULT ( STDMETHODCALLTYPE *GetOwner )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetDisplayName) + HRESULT ( STDMETHODCALLTYPE *SetDisplayName )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetDescription) + HRESULT ( STDMETHODCALLTYPE *SetDescription )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetPriority) + HRESULT ( STDMETHODCALLTYPE *SetPriority )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ BG_JOB_PRIORITY Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetPriority) + HRESULT ( STDMETHODCALLTYPE *GetPriority )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out BG_JOB_PRIORITY *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *SetNotifyFlags )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ ULONG Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *GetNotifyFlags )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNotifyInterface) + HRESULT ( STDMETHODCALLTYPE *SetNotifyInterface )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ __RPC__in_opt IUnknown *Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNotifyInterface) + HRESULT ( STDMETHODCALLTYPE *GetNotifyInterface )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__deref_out_opt IUnknown **pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetMinimumRetryDelay) + HRESULT ( STDMETHODCALLTYPE *SetMinimumRetryDelay )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ ULONG Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetMinimumRetryDelay) + HRESULT ( STDMETHODCALLTYPE *GetMinimumRetryDelay )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out ULONG *Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNoProgressTimeout) + HRESULT ( STDMETHODCALLTYPE *SetNoProgressTimeout )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ ULONG Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNoProgressTimeout) + HRESULT ( STDMETHODCALLTYPE *GetNoProgressTimeout )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out ULONG *Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetErrorCount) + HRESULT ( STDMETHODCALLTYPE *GetErrorCount )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out ULONG *Errors); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetProxySettings) + HRESULT ( STDMETHODCALLTYPE *SetProxySettings )( + __RPC__in IBackgroundCopyJob2 * This, + /* [in] */ BG_JOB_PROXY_USAGE ProxyUsage, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyList, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyBypassList); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetProxySettings) + HRESULT ( STDMETHODCALLTYPE *GetProxySettings )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__out BG_JOB_PROXY_USAGE *pProxyUsage, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyList, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyBypassList); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, TakeOwnership) + HRESULT ( STDMETHODCALLTYPE *TakeOwnership )( + __RPC__in IBackgroundCopyJob2 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetNotifyCmdLine) + HRESULT ( STDMETHODCALLTYPE *SetNotifyCmdLine )( + __RPC__in IBackgroundCopyJob2 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR Program, + /* [unique][in] */ __RPC__in_opt LPCWSTR Parameters); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetNotifyCmdLine) + HRESULT ( STDMETHODCALLTYPE *GetNotifyCmdLine )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProgram, + /* [out] */ __RPC__deref_out_opt LPWSTR *pParameters); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyProgress) + HRESULT ( STDMETHODCALLTYPE *GetReplyProgress )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out][in] */ __RPC__inout BG_JOB_REPLY_PROGRESS *pProgress); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyData) + HRESULT ( STDMETHODCALLTYPE *GetReplyData )( + __RPC__in IBackgroundCopyJob2 * This, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(( unsigned long )*pLength) byte **ppBuffer, + /* [unique][out][in] */ __RPC__inout_opt UINT64 *pLength); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetReplyFileName) + HRESULT ( STDMETHODCALLTYPE *SetReplyFileName )( + __RPC__in IBackgroundCopyJob2 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR ReplyFileName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyFileName) + HRESULT ( STDMETHODCALLTYPE *GetReplyFileName )( + __RPC__in IBackgroundCopyJob2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pReplyFileName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetCredentials) + HRESULT ( STDMETHODCALLTYPE *SetCredentials )( + __RPC__in IBackgroundCopyJob2 * This, + __RPC__in BG_AUTH_CREDENTIALS *credentials); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, RemoveCredentials) + HRESULT ( STDMETHODCALLTYPE *RemoveCredentials )( + __RPC__in IBackgroundCopyJob2 * This, + BG_AUTH_TARGET Target, + BG_AUTH_SCHEME Scheme); + + END_INTERFACE + } IBackgroundCopyJob2Vtbl; + + interface IBackgroundCopyJob2 + { + CONST_VTBL struct IBackgroundCopyJob2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyJob2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyJob2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyJob2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyJob2_AddFileSet(This,cFileCount,pFileSet) \ + ( (This)->lpVtbl -> AddFileSet(This,cFileCount,pFileSet) ) + +#define IBackgroundCopyJob2_AddFile(This,RemoteUrl,LocalName) \ + ( (This)->lpVtbl -> AddFile(This,RemoteUrl,LocalName) ) + +#define IBackgroundCopyJob2_EnumFiles(This,pEnum) \ + ( (This)->lpVtbl -> EnumFiles(This,pEnum) ) + +#define IBackgroundCopyJob2_Suspend(This) \ + ( (This)->lpVtbl -> Suspend(This) ) + +#define IBackgroundCopyJob2_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#define IBackgroundCopyJob2_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IBackgroundCopyJob2_Complete(This) \ + ( (This)->lpVtbl -> Complete(This) ) + +#define IBackgroundCopyJob2_GetId(This,pVal) \ + ( (This)->lpVtbl -> GetId(This,pVal) ) + +#define IBackgroundCopyJob2_GetType(This,pVal) \ + ( (This)->lpVtbl -> GetType(This,pVal) ) + +#define IBackgroundCopyJob2_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + +#define IBackgroundCopyJob2_GetTimes(This,pVal) \ + ( (This)->lpVtbl -> GetTimes(This,pVal) ) + +#define IBackgroundCopyJob2_GetState(This,pVal) \ + ( (This)->lpVtbl -> GetState(This,pVal) ) + +#define IBackgroundCopyJob2_GetError(This,ppError) \ + ( (This)->lpVtbl -> GetError(This,ppError) ) + +#define IBackgroundCopyJob2_GetOwner(This,pVal) \ + ( (This)->lpVtbl -> GetOwner(This,pVal) ) + +#define IBackgroundCopyJob2_SetDisplayName(This,Val) \ + ( (This)->lpVtbl -> SetDisplayName(This,Val) ) + +#define IBackgroundCopyJob2_GetDisplayName(This,pVal) \ + ( (This)->lpVtbl -> GetDisplayName(This,pVal) ) + +#define IBackgroundCopyJob2_SetDescription(This,Val) \ + ( (This)->lpVtbl -> SetDescription(This,Val) ) + +#define IBackgroundCopyJob2_GetDescription(This,pVal) \ + ( (This)->lpVtbl -> GetDescription(This,pVal) ) + +#define IBackgroundCopyJob2_SetPriority(This,Val) \ + ( (This)->lpVtbl -> SetPriority(This,Val) ) + +#define IBackgroundCopyJob2_GetPriority(This,pVal) \ + ( (This)->lpVtbl -> GetPriority(This,pVal) ) + +#define IBackgroundCopyJob2_SetNotifyFlags(This,Val) \ + ( (This)->lpVtbl -> SetNotifyFlags(This,Val) ) + +#define IBackgroundCopyJob2_GetNotifyFlags(This,pVal) \ + ( (This)->lpVtbl -> GetNotifyFlags(This,pVal) ) + +#define IBackgroundCopyJob2_SetNotifyInterface(This,Val) \ + ( (This)->lpVtbl -> SetNotifyInterface(This,Val) ) + +#define IBackgroundCopyJob2_GetNotifyInterface(This,pVal) \ + ( (This)->lpVtbl -> GetNotifyInterface(This,pVal) ) + +#define IBackgroundCopyJob2_SetMinimumRetryDelay(This,Seconds) \ + ( (This)->lpVtbl -> SetMinimumRetryDelay(This,Seconds) ) + +#define IBackgroundCopyJob2_GetMinimumRetryDelay(This,Seconds) \ + ( (This)->lpVtbl -> GetMinimumRetryDelay(This,Seconds) ) + +#define IBackgroundCopyJob2_SetNoProgressTimeout(This,Seconds) \ + ( (This)->lpVtbl -> SetNoProgressTimeout(This,Seconds) ) + +#define IBackgroundCopyJob2_GetNoProgressTimeout(This,Seconds) \ + ( (This)->lpVtbl -> GetNoProgressTimeout(This,Seconds) ) + +#define IBackgroundCopyJob2_GetErrorCount(This,Errors) \ + ( (This)->lpVtbl -> GetErrorCount(This,Errors) ) + +#define IBackgroundCopyJob2_SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) \ + ( (This)->lpVtbl -> SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) ) + +#define IBackgroundCopyJob2_GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) \ + ( (This)->lpVtbl -> GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) ) + +#define IBackgroundCopyJob2_TakeOwnership(This) \ + ( (This)->lpVtbl -> TakeOwnership(This) ) + + +#define IBackgroundCopyJob2_SetNotifyCmdLine(This,Program,Parameters) \ + ( (This)->lpVtbl -> SetNotifyCmdLine(This,Program,Parameters) ) + +#define IBackgroundCopyJob2_GetNotifyCmdLine(This,pProgram,pParameters) \ + ( (This)->lpVtbl -> GetNotifyCmdLine(This,pProgram,pParameters) ) + +#define IBackgroundCopyJob2_GetReplyProgress(This,pProgress) \ + ( (This)->lpVtbl -> GetReplyProgress(This,pProgress) ) + +#define IBackgroundCopyJob2_GetReplyData(This,ppBuffer,pLength) \ + ( (This)->lpVtbl -> GetReplyData(This,ppBuffer,pLength) ) + +#define IBackgroundCopyJob2_SetReplyFileName(This,ReplyFileName) \ + ( (This)->lpVtbl -> SetReplyFileName(This,ReplyFileName) ) + +#define IBackgroundCopyJob2_GetReplyFileName(This,pReplyFileName) \ + ( (This)->lpVtbl -> GetReplyFileName(This,pReplyFileName) ) + +#define IBackgroundCopyJob2_SetCredentials(This,credentials) \ + ( (This)->lpVtbl -> SetCredentials(This,credentials) ) + +#define IBackgroundCopyJob2_RemoveCredentials(This,Target,Scheme) \ + ( (This)->lpVtbl -> RemoveCredentials(This,Target,Scheme) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyJob2_INTERFACE_DEFINED__ */ + + + +#ifndef __BackgroundCopyManager1_5_LIBRARY_DEFINED__ +#define __BackgroundCopyManager1_5_LIBRARY_DEFINED__ + +/* library BackgroundCopyManager1_5 */ +/* [version][lcid][helpstring][uuid] */ + + + + +EXTERN_C const IID LIBID_BackgroundCopyManager1_5; + +EXTERN_C const CLSID CLSID_BackgroundCopyManager1_5; + +#ifdef __cplusplus + +class DECLSPEC_UUID("f087771f-d74f-4c1a-bb8a-e16aca9124ea") +BackgroundCopyManager1_5; +#endif +#endif /* __BackgroundCopyManager1_5_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bits1_5_0000_0002 */ +/* [local] */ + +#include "bits2_0.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bits1_5_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits1_5_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits1_5.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits1_5.idl new file mode 100644 index 0000000000000000000000000000000000000000..0acdbb52961e8ba7ec48c34bdf570f6ab5c2b690 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits1_5.idl @@ -0,0 +1,140 @@ + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "bits.idl"; + +[ + uuid(54b50739-686f-45eb-9dff-d6a9a0faa9af), + helpstring("IBackgroundCopyJob2 Interface"), + odl +] +interface IBackgroundCopyJob2 : IBackgroundCopyJob +{ + // a progam and optional arguments to launch when the job enters + // ERROR or TRANSFERRED state. + // + HRESULT SetNotifyCmdLine( [in, unique] LPCWSTR Program, [in, unique] LPCWSTR Parameters ); + HRESULT GetNotifyCmdLine( [out] LPWSTR *pProgram, [out] LPWSTR *pParameters ); + + // + // Measure the progress of the reply of an upload-reply job. + // ReplyBytesTotal is BG_SIZE_UNKNOWN if the reply has not begun yet, + // and zero if the job type is not BG_JOB_TYPE_UPLOAD_REPLY. + // + typedef struct _BG_JOB_REPLY_PROGRESS + { + UINT64 BytesTotal; + UINT64 BytesTransferred; + } + BG_JOB_REPLY_PROGRESS; + + HRESULT + GetReplyProgress( + [in, out] BG_JOB_REPLY_PROGRESS * pProgress + ); + + // + // Retrieve the reply data as an in-memory buffer. + // + HRESULT + GetReplyData( + [out, size_is( , (unsigned long) (*pLength))] byte ** ppBuffer, + [in, out, unique] UINT64 * pLength + ); + + // + // Set a location to place the reply as a file. + // + HRESULT SetReplyFileName( [in, unique] LPCWSTR ReplyFileName ); + HRESULT GetReplyFileName( [out] LPWSTR * pReplyFileName ); + + // + // Security controls. + // + typedef enum BG_AUTH_TARGET + { + BG_AUTH_TARGET_SERVER = 1, + BG_AUTH_TARGET_PROXY + + } BG_AUTH_TARGET; + + typedef enum BG_AUTH_SCHEME + { + BG_AUTH_SCHEME_BASIC = 1, + BG_AUTH_SCHEME_DIGEST, + BG_AUTH_SCHEME_NTLM, + BG_AUTH_SCHEME_NEGOTIATE, + BG_AUTH_SCHEME_PASSPORT + + } BG_AUTH_SCHEME; + + typedef struct + { + LPWSTR UserName; + LPWSTR Password; + + } BG_BASIC_CREDENTIALS; + + typedef BG_BASIC_CREDENTIALS * PBG_BASIC_CREDENTIALS; + + typedef [switch_type(BG_AUTH_SCHEME)] union + { + + [case( BG_AUTH_SCHEME_BASIC, BG_AUTH_SCHEME_DIGEST, BG_AUTH_SCHEME_NTLM, + BG_AUTH_SCHEME_NEGOTIATE, BG_AUTH_SCHEME_PASSPORT )] BG_BASIC_CREDENTIALS Basic; + [default] ; + + } BG_AUTH_CREDENTIALS_UNION; + + typedef struct + { + BG_AUTH_TARGET Target; + BG_AUTH_SCHEME Scheme; + [switch_is(Scheme)] BG_AUTH_CREDENTIALS_UNION Credentials; + } + BG_AUTH_CREDENTIALS; + + typedef BG_AUTH_CREDENTIALS * PBG_AUTH_CREDENTIALS; + + // + // Sets the explicit credentials for a particular auth scheme. + // The app calls this through the IBackgroundCopyJob2 interface. + // If the { target, scheme } pair match an existing credential, + // the existing credential is replaced with the new one. + // + HRESULT SetCredentials( BG_AUTH_CREDENTIALS * credentials ); + + HRESULT RemoveCredentials( BG_AUTH_TARGET Target, BG_AUTH_SCHEME Scheme ); + +} + +//--------------------------------------------------------------------------- + +[ + uuid(ea9319ea-c628-480f-8331-768fac397e4e), + helpstring("Microsoft Background Copy Manager 1.5"), + lcid(0x0000), + version(1.0) +] +library BackgroundCopyManager1_5 +{ + [ + uuid(f087771f-d74f-4c1a-bb8a-e16aca9124ea), + helpstring("Background copy job 2") + ] + coclass BackgroundCopyManager1_5 + { + [default] interface IBackgroundCopyManager; + }; + interface IBackgroundCopyCallback; + interface IBackgroundCopyJob2; +} + +cpp_quote("#include \"bits2_0.h\"") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_0.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_0.h new file mode 100644 index 0000000000000000000000000000000000000000..2aa89b3c74aa3f865a2b60455fc876562274e622 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_0.h @@ -0,0 +1,740 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bits2_0_h__ +#define __bits2_0_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBackgroundCopyJob3_FWD_DEFINED__ +#define __IBackgroundCopyJob3_FWD_DEFINED__ +typedef interface IBackgroundCopyJob3 IBackgroundCopyJob3; + +#endif /* __IBackgroundCopyJob3_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile2_FWD_DEFINED__ +#define __IBackgroundCopyFile2_FWD_DEFINED__ +typedef interface IBackgroundCopyFile2 IBackgroundCopyFile2; + +#endif /* __IBackgroundCopyFile2_FWD_DEFINED__ */ + + +#ifndef __BackgroundCopyManager2_0_FWD_DEFINED__ +#define __BackgroundCopyManager2_0_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackgroundCopyManager2_0 BackgroundCopyManager2_0; +#else +typedef struct BackgroundCopyManager2_0 BackgroundCopyManager2_0; +#endif /* __cplusplus */ + +#endif /* __BackgroundCopyManager2_0_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyJob3_FWD_DEFINED__ +#define __IBackgroundCopyJob3_FWD_DEFINED__ +typedef interface IBackgroundCopyJob3 IBackgroundCopyJob3; + +#endif /* __IBackgroundCopyJob3_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile2_FWD_DEFINED__ +#define __IBackgroundCopyFile2_FWD_DEFINED__ +typedef interface IBackgroundCopyFile2 IBackgroundCopyFile2; + +#endif /* __IBackgroundCopyFile2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "bits.h" +#include "bits1_5.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bits2_0_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define BG_LENGTH_TO_EOF (UINT64)(-1) +typedef struct _BG_FILE_RANGE + { + UINT64 InitialOffset; + UINT64 Length; + } BG_FILE_RANGE; + +#define BG_COPY_FILE_OWNER 1 +#define BG_COPY_FILE_GROUP 2 +#define BG_COPY_FILE_DACL 4 +#define BG_COPY_FILE_SACL 8 +#define BG_COPY_FILE_ALL 15 + + +extern RPC_IF_HANDLE __MIDL_itf_bits2_0_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits2_0_0000_0000_v0_0_s_ifspec; + +#ifndef __IBackgroundCopyJob3_INTERFACE_DEFINED__ +#define __IBackgroundCopyJob3_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyJob3 */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyJob3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("443c8934-90ff-48ed-bcde-26f5c7450042") + IBackgroundCopyJob3 : public IBackgroundCopyJob2 + { + public: + virtual HRESULT STDMETHODCALLTYPE ReplaceRemotePrefix( + /* [in] */ __RPC__in LPCWSTR OldPrefix, + /* [in] */ __RPC__in LPCWSTR NewPrefix) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddFileWithRanges( + /* [in] */ __RPC__in LPCWSTR RemoteUrl, + /* [in] */ __RPC__in LPCWSTR LocalName, + /* [in] */ DWORD RangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) BG_FILE_RANGE Ranges[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFileACLFlags( + /* [in] */ DWORD Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileACLFlags( + /* [ref][out] */ __RPC__out DWORD *Flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyJob3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyJob3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyJob3 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, AddFileSet) + HRESULT ( STDMETHODCALLTYPE *AddFileSet )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ ULONG cFileCount, + /* [size_is][in] */ __RPC__in_ecount_full(cFileCount) BG_FILE_INFO *pFileSet); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, AddFile) + HRESULT ( STDMETHODCALLTYPE *AddFile )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ __RPC__in LPCWSTR RemoteUrl, + /* [in] */ __RPC__in LPCWSTR LocalName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, EnumFiles) + HRESULT ( STDMETHODCALLTYPE *EnumFiles )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyFiles **pEnum); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + __RPC__in IBackgroundCopyJob3 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IBackgroundCopyJob3 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IBackgroundCopyJob3 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Complete) + HRESULT ( STDMETHODCALLTYPE *Complete )( + __RPC__in IBackgroundCopyJob3 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetId) + HRESULT ( STDMETHODCALLTYPE *GetId )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out GUID *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetType) + HRESULT ( STDMETHODCALLTYPE *GetType )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out BG_JOB_TYPE *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out BG_JOB_PROGRESS *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetTimes) + HRESULT ( STDMETHODCALLTYPE *GetTimes )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out BG_JOB_TIMES *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out BG_JOB_STATE *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetError) + HRESULT ( STDMETHODCALLTYPE *GetError )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__deref_out_opt IBackgroundCopyError **ppError); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetOwner) + HRESULT ( STDMETHODCALLTYPE *GetOwner )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetDisplayName) + HRESULT ( STDMETHODCALLTYPE *SetDisplayName )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetDescription) + HRESULT ( STDMETHODCALLTYPE *SetDescription )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetPriority) + HRESULT ( STDMETHODCALLTYPE *SetPriority )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ BG_JOB_PRIORITY Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetPriority) + HRESULT ( STDMETHODCALLTYPE *GetPriority )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out BG_JOB_PRIORITY *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *SetNotifyFlags )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ ULONG Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *GetNotifyFlags )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNotifyInterface) + HRESULT ( STDMETHODCALLTYPE *SetNotifyInterface )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ __RPC__in_opt IUnknown *Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNotifyInterface) + HRESULT ( STDMETHODCALLTYPE *GetNotifyInterface )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__deref_out_opt IUnknown **pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetMinimumRetryDelay) + HRESULT ( STDMETHODCALLTYPE *SetMinimumRetryDelay )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ ULONG Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetMinimumRetryDelay) + HRESULT ( STDMETHODCALLTYPE *GetMinimumRetryDelay )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out ULONG *Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNoProgressTimeout) + HRESULT ( STDMETHODCALLTYPE *SetNoProgressTimeout )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ ULONG Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNoProgressTimeout) + HRESULT ( STDMETHODCALLTYPE *GetNoProgressTimeout )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out ULONG *Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetErrorCount) + HRESULT ( STDMETHODCALLTYPE *GetErrorCount )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out ULONG *Errors); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetProxySettings) + HRESULT ( STDMETHODCALLTYPE *SetProxySettings )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ BG_JOB_PROXY_USAGE ProxyUsage, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyList, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyBypassList); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetProxySettings) + HRESULT ( STDMETHODCALLTYPE *GetProxySettings )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__out BG_JOB_PROXY_USAGE *pProxyUsage, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyList, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyBypassList); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, TakeOwnership) + HRESULT ( STDMETHODCALLTYPE *TakeOwnership )( + __RPC__in IBackgroundCopyJob3 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetNotifyCmdLine) + HRESULT ( STDMETHODCALLTYPE *SetNotifyCmdLine )( + __RPC__in IBackgroundCopyJob3 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR Program, + /* [unique][in] */ __RPC__in_opt LPCWSTR Parameters); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetNotifyCmdLine) + HRESULT ( STDMETHODCALLTYPE *GetNotifyCmdLine )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProgram, + /* [out] */ __RPC__deref_out_opt LPWSTR *pParameters); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyProgress) + HRESULT ( STDMETHODCALLTYPE *GetReplyProgress )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out][in] */ __RPC__inout BG_JOB_REPLY_PROGRESS *pProgress); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyData) + HRESULT ( STDMETHODCALLTYPE *GetReplyData )( + __RPC__in IBackgroundCopyJob3 * This, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(( unsigned long )*pLength) byte **ppBuffer, + /* [unique][out][in] */ __RPC__inout_opt UINT64 *pLength); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetReplyFileName) + HRESULT ( STDMETHODCALLTYPE *SetReplyFileName )( + __RPC__in IBackgroundCopyJob3 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR ReplyFileName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyFileName) + HRESULT ( STDMETHODCALLTYPE *GetReplyFileName )( + __RPC__in IBackgroundCopyJob3 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pReplyFileName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetCredentials) + HRESULT ( STDMETHODCALLTYPE *SetCredentials )( + __RPC__in IBackgroundCopyJob3 * This, + __RPC__in BG_AUTH_CREDENTIALS *credentials); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, RemoveCredentials) + HRESULT ( STDMETHODCALLTYPE *RemoveCredentials )( + __RPC__in IBackgroundCopyJob3 * This, + BG_AUTH_TARGET Target, + BG_AUTH_SCHEME Scheme); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, ReplaceRemotePrefix) + HRESULT ( STDMETHODCALLTYPE *ReplaceRemotePrefix )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ __RPC__in LPCWSTR OldPrefix, + /* [in] */ __RPC__in LPCWSTR NewPrefix); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, AddFileWithRanges) + HRESULT ( STDMETHODCALLTYPE *AddFileWithRanges )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ __RPC__in LPCWSTR RemoteUrl, + /* [in] */ __RPC__in LPCWSTR LocalName, + /* [in] */ DWORD RangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) BG_FILE_RANGE Ranges[ ]); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, SetFileACLFlags) + HRESULT ( STDMETHODCALLTYPE *SetFileACLFlags )( + __RPC__in IBackgroundCopyJob3 * This, + /* [in] */ DWORD Flags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, GetFileACLFlags) + HRESULT ( STDMETHODCALLTYPE *GetFileACLFlags )( + __RPC__in IBackgroundCopyJob3 * This, + /* [ref][out] */ __RPC__out DWORD *Flags); + + END_INTERFACE + } IBackgroundCopyJob3Vtbl; + + interface IBackgroundCopyJob3 + { + CONST_VTBL struct IBackgroundCopyJob3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyJob3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyJob3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyJob3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyJob3_AddFileSet(This,cFileCount,pFileSet) \ + ( (This)->lpVtbl -> AddFileSet(This,cFileCount,pFileSet) ) + +#define IBackgroundCopyJob3_AddFile(This,RemoteUrl,LocalName) \ + ( (This)->lpVtbl -> AddFile(This,RemoteUrl,LocalName) ) + +#define IBackgroundCopyJob3_EnumFiles(This,pEnum) \ + ( (This)->lpVtbl -> EnumFiles(This,pEnum) ) + +#define IBackgroundCopyJob3_Suspend(This) \ + ( (This)->lpVtbl -> Suspend(This) ) + +#define IBackgroundCopyJob3_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#define IBackgroundCopyJob3_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IBackgroundCopyJob3_Complete(This) \ + ( (This)->lpVtbl -> Complete(This) ) + +#define IBackgroundCopyJob3_GetId(This,pVal) \ + ( (This)->lpVtbl -> GetId(This,pVal) ) + +#define IBackgroundCopyJob3_GetType(This,pVal) \ + ( (This)->lpVtbl -> GetType(This,pVal) ) + +#define IBackgroundCopyJob3_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + +#define IBackgroundCopyJob3_GetTimes(This,pVal) \ + ( (This)->lpVtbl -> GetTimes(This,pVal) ) + +#define IBackgroundCopyJob3_GetState(This,pVal) \ + ( (This)->lpVtbl -> GetState(This,pVal) ) + +#define IBackgroundCopyJob3_GetError(This,ppError) \ + ( (This)->lpVtbl -> GetError(This,ppError) ) + +#define IBackgroundCopyJob3_GetOwner(This,pVal) \ + ( (This)->lpVtbl -> GetOwner(This,pVal) ) + +#define IBackgroundCopyJob3_SetDisplayName(This,Val) \ + ( (This)->lpVtbl -> SetDisplayName(This,Val) ) + +#define IBackgroundCopyJob3_GetDisplayName(This,pVal) \ + ( (This)->lpVtbl -> GetDisplayName(This,pVal) ) + +#define IBackgroundCopyJob3_SetDescription(This,Val) \ + ( (This)->lpVtbl -> SetDescription(This,Val) ) + +#define IBackgroundCopyJob3_GetDescription(This,pVal) \ + ( (This)->lpVtbl -> GetDescription(This,pVal) ) + +#define IBackgroundCopyJob3_SetPriority(This,Val) \ + ( (This)->lpVtbl -> SetPriority(This,Val) ) + +#define IBackgroundCopyJob3_GetPriority(This,pVal) \ + ( (This)->lpVtbl -> GetPriority(This,pVal) ) + +#define IBackgroundCopyJob3_SetNotifyFlags(This,Val) \ + ( (This)->lpVtbl -> SetNotifyFlags(This,Val) ) + +#define IBackgroundCopyJob3_GetNotifyFlags(This,pVal) \ + ( (This)->lpVtbl -> GetNotifyFlags(This,pVal) ) + +#define IBackgroundCopyJob3_SetNotifyInterface(This,Val) \ + ( (This)->lpVtbl -> SetNotifyInterface(This,Val) ) + +#define IBackgroundCopyJob3_GetNotifyInterface(This,pVal) \ + ( (This)->lpVtbl -> GetNotifyInterface(This,pVal) ) + +#define IBackgroundCopyJob3_SetMinimumRetryDelay(This,Seconds) \ + ( (This)->lpVtbl -> SetMinimumRetryDelay(This,Seconds) ) + +#define IBackgroundCopyJob3_GetMinimumRetryDelay(This,Seconds) \ + ( (This)->lpVtbl -> GetMinimumRetryDelay(This,Seconds) ) + +#define IBackgroundCopyJob3_SetNoProgressTimeout(This,Seconds) \ + ( (This)->lpVtbl -> SetNoProgressTimeout(This,Seconds) ) + +#define IBackgroundCopyJob3_GetNoProgressTimeout(This,Seconds) \ + ( (This)->lpVtbl -> GetNoProgressTimeout(This,Seconds) ) + +#define IBackgroundCopyJob3_GetErrorCount(This,Errors) \ + ( (This)->lpVtbl -> GetErrorCount(This,Errors) ) + +#define IBackgroundCopyJob3_SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) \ + ( (This)->lpVtbl -> SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) ) + +#define IBackgroundCopyJob3_GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) \ + ( (This)->lpVtbl -> GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) ) + +#define IBackgroundCopyJob3_TakeOwnership(This) \ + ( (This)->lpVtbl -> TakeOwnership(This) ) + + +#define IBackgroundCopyJob3_SetNotifyCmdLine(This,Program,Parameters) \ + ( (This)->lpVtbl -> SetNotifyCmdLine(This,Program,Parameters) ) + +#define IBackgroundCopyJob3_GetNotifyCmdLine(This,pProgram,pParameters) \ + ( (This)->lpVtbl -> GetNotifyCmdLine(This,pProgram,pParameters) ) + +#define IBackgroundCopyJob3_GetReplyProgress(This,pProgress) \ + ( (This)->lpVtbl -> GetReplyProgress(This,pProgress) ) + +#define IBackgroundCopyJob3_GetReplyData(This,ppBuffer,pLength) \ + ( (This)->lpVtbl -> GetReplyData(This,ppBuffer,pLength) ) + +#define IBackgroundCopyJob3_SetReplyFileName(This,ReplyFileName) \ + ( (This)->lpVtbl -> SetReplyFileName(This,ReplyFileName) ) + +#define IBackgroundCopyJob3_GetReplyFileName(This,pReplyFileName) \ + ( (This)->lpVtbl -> GetReplyFileName(This,pReplyFileName) ) + +#define IBackgroundCopyJob3_SetCredentials(This,credentials) \ + ( (This)->lpVtbl -> SetCredentials(This,credentials) ) + +#define IBackgroundCopyJob3_RemoveCredentials(This,Target,Scheme) \ + ( (This)->lpVtbl -> RemoveCredentials(This,Target,Scheme) ) + + +#define IBackgroundCopyJob3_ReplaceRemotePrefix(This,OldPrefix,NewPrefix) \ + ( (This)->lpVtbl -> ReplaceRemotePrefix(This,OldPrefix,NewPrefix) ) + +#define IBackgroundCopyJob3_AddFileWithRanges(This,RemoteUrl,LocalName,RangeCount,Ranges) \ + ( (This)->lpVtbl -> AddFileWithRanges(This,RemoteUrl,LocalName,RangeCount,Ranges) ) + +#define IBackgroundCopyJob3_SetFileACLFlags(This,Flags) \ + ( (This)->lpVtbl -> SetFileACLFlags(This,Flags) ) + +#define IBackgroundCopyJob3_GetFileACLFlags(This,Flags) \ + ( (This)->lpVtbl -> GetFileACLFlags(This,Flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyJob3_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile2_INTERFACE_DEFINED__ +#define __IBackgroundCopyFile2_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyFile2 */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyFile2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("83e81b93-0873-474d-8a8c-f2018b1a939c") + IBackgroundCopyFile2 : public IBackgroundCopyFile + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFileRanges( + /* [unique][out][in] */ __RPC__inout_opt DWORD *RangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*RangeCount) BG_FILE_RANGE **Ranges) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetRemoteName( + __RPC__in LPCWSTR Val) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyFile2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyFile2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyFile2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyFile2 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetRemoteName) + HRESULT ( STDMETHODCALLTYPE *GetRemoteName )( + __RPC__in IBackgroundCopyFile2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetLocalName) + HRESULT ( STDMETHODCALLTYPE *GetLocalName )( + __RPC__in IBackgroundCopyFile2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyFile2 * This, + /* [out] */ __RPC__out BG_FILE_PROGRESS *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile2, GetFileRanges) + HRESULT ( STDMETHODCALLTYPE *GetFileRanges )( + __RPC__in IBackgroundCopyFile2 * This, + /* [unique][out][in] */ __RPC__inout_opt DWORD *RangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*RangeCount) BG_FILE_RANGE **Ranges); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile2, SetRemoteName) + HRESULT ( STDMETHODCALLTYPE *SetRemoteName )( + __RPC__in IBackgroundCopyFile2 * This, + __RPC__in LPCWSTR Val); + + END_INTERFACE + } IBackgroundCopyFile2Vtbl; + + interface IBackgroundCopyFile2 + { + CONST_VTBL struct IBackgroundCopyFile2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyFile2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyFile2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyFile2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyFile2_GetRemoteName(This,pVal) \ + ( (This)->lpVtbl -> GetRemoteName(This,pVal) ) + +#define IBackgroundCopyFile2_GetLocalName(This,pVal) \ + ( (This)->lpVtbl -> GetLocalName(This,pVal) ) + +#define IBackgroundCopyFile2_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + + +#define IBackgroundCopyFile2_GetFileRanges(This,RangeCount,Ranges) \ + ( (This)->lpVtbl -> GetFileRanges(This,RangeCount,Ranges) ) + +#define IBackgroundCopyFile2_SetRemoteName(This,Val) \ + ( (This)->lpVtbl -> SetRemoteName(This,Val) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyFile2_INTERFACE_DEFINED__ */ + + + +#ifndef __BackgroundCopyManager2_0_LIBRARY_DEFINED__ +#define __BackgroundCopyManager2_0_LIBRARY_DEFINED__ + +/* library BackgroundCopyManager2_0 */ +/* [version][lcid][helpstring][uuid] */ + + + + + +EXTERN_C const IID LIBID_BackgroundCopyManager2_0; + +EXTERN_C const CLSID CLSID_BackgroundCopyManager2_0; + +#ifdef __cplusplus + +class DECLSPEC_UUID("6d18ad12-bde3-4393-b311-099c346e6df9") +BackgroundCopyManager2_0; +#endif +#endif /* __BackgroundCopyManager2_0_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bits2_0_0000_0003 */ +/* [local] */ + +#include "bits2_5.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bits2_0_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits2_0_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_0.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_0.idl new file mode 100644 index 0000000000000000000000000000000000000000..e83fc621fe01986e9204a7dd043fbb3e2baf265e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_0.idl @@ -0,0 +1,109 @@ + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "bits.idl"; +import "bits1_5.idl"; + +// +// if BG_FILE_RANGE.Length == BG_LENGTH_TO_EOF, the file range extends to the end of the file. +// +cpp_quote("#define BG_LENGTH_TO_EOF (UINT64)(-1)") + +typedef struct _BG_FILE_RANGE +{ + UINT64 InitialOffset; + UINT64 Length; +} +BG_FILE_RANGE; + +cpp_quote("#define BG_COPY_FILE_OWNER 1") +cpp_quote("#define BG_COPY_FILE_GROUP 2") +cpp_quote("#define BG_COPY_FILE_DACL 4") +cpp_quote("#define BG_COPY_FILE_SACL 8") +cpp_quote("#define BG_COPY_FILE_ALL 15") + +[ + uuid(443c8934-90ff-48ed-bcde-26f5c7450042), + helpstring("IBackgroundCopyJob3 Interface"), + odl +] +interface IBackgroundCopyJob3 : IBackgroundCopyJob2 +{ + // Changes all remote names that match the prefix. + // + HRESULT + ReplaceRemotePrefix( + [in] LPCWSTR OldPrefix, + [in] LPCWSTR NewPrefix + ); + + // Like AddFile, but only downloads specific ranges (subsets) of a file. + // + HRESULT + AddFileWithRanges( + [in] LPCWSTR RemoteUrl, + [in] LPCWSTR LocalName, + [in] DWORD RangeCount, + [in, size_is(RangeCount)] BG_FILE_RANGE Ranges[] + ); + + HRESULT + SetFileACLFlags( + [in] DWORD Flags ); + + HRESULT + GetFileACLFlags( + [out,ref] DWORD* Flags ); + +} + +[ + uuid(83e81b93-0873-474d-8a8c-f2018b1a939c), + helpstring("IBackgroundCopyFile2"), + odl +] +interface IBackgroundCopyFile2 : IBackgroundCopyFile +{ + HRESULT + GetFileRanges( + [in, out, unique] DWORD * RangeCount, + [out, size_is( , *RangeCount)] BG_FILE_RANGE ** Ranges + ); + + HRESULT + SetRemoteName( + LPCWSTR Val + ); +} + +//--------------------------------------------------------------------------- + +[ + uuid(2289a9af-dc96-486e-b268-89c9e3397c3d), + helpstring("Microsoft Background Copy Manager 2.0"), + lcid(0x0000), + version(1.0) +] +library BackgroundCopyManager2_0 +{ + [ + uuid(6d18ad12-bde3-4393-b311-099c346e6df9), + helpstring("Background copy manager 2.0") + ] + coclass BackgroundCopyManager2_0 + { + [default] interface IBackgroundCopyManager; + }; + interface IBackgroundCopyCallback; + interface IBackgroundCopyJob3; + interface IBackgroundCopyFile2; +} + +cpp_quote("#include \"bits2_5.h\"") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_5.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_5.h new file mode 100644 index 0000000000000000000000000000000000000000..54b66fb3778f6d2cb144879664fb827799074ced --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_5.h @@ -0,0 +1,338 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bits2_5_h__ +#define __bits2_5_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBackgroundCopyJobHttpOptions_FWD_DEFINED__ +#define __IBackgroundCopyJobHttpOptions_FWD_DEFINED__ +typedef interface IBackgroundCopyJobHttpOptions IBackgroundCopyJobHttpOptions; + +#endif /* __IBackgroundCopyJobHttpOptions_FWD_DEFINED__ */ + + +#ifndef __BackgroundCopyManager2_5_FWD_DEFINED__ +#define __BackgroundCopyManager2_5_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackgroundCopyManager2_5 BackgroundCopyManager2_5; +#else +typedef struct BackgroundCopyManager2_5 BackgroundCopyManager2_5; +#endif /* __cplusplus */ + +#endif /* __BackgroundCopyManager2_5_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyJobHttpOptions_FWD_DEFINED__ +#define __IBackgroundCopyJobHttpOptions_FWD_DEFINED__ +typedef interface IBackgroundCopyJobHttpOptions IBackgroundCopyJobHttpOptions; + +#endif /* __IBackgroundCopyJobHttpOptions_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "bits.h" +#include "bits1_5.h" +#include "bits2_0.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bits2_5_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_bits2_5_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits2_5_0000_0000_v0_0_s_ifspec; + +#ifndef __IBackgroundCopyJobHttpOptions_INTERFACE_DEFINED__ +#define __IBackgroundCopyJobHttpOptions_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyJobHttpOptions */ +/* [object][helpstring][uuid] */ + +typedef +enum BG_CERT_STORE_LOCATION + { + BG_CERT_STORE_LOCATION_CURRENT_USER = 0, + BG_CERT_STORE_LOCATION_LOCAL_MACHINE = ( BG_CERT_STORE_LOCATION_CURRENT_USER + 1 ) , + BG_CERT_STORE_LOCATION_CURRENT_SERVICE = ( BG_CERT_STORE_LOCATION_LOCAL_MACHINE + 1 ) , + BG_CERT_STORE_LOCATION_SERVICES = ( BG_CERT_STORE_LOCATION_CURRENT_SERVICE + 1 ) , + BG_CERT_STORE_LOCATION_USERS = ( BG_CERT_STORE_LOCATION_SERVICES + 1 ) , + BG_CERT_STORE_LOCATION_CURRENT_USER_GROUP_POLICY = ( BG_CERT_STORE_LOCATION_USERS + 1 ) , + BG_CERT_STORE_LOCATION_LOCAL_MACHINE_GROUP_POLICY = ( BG_CERT_STORE_LOCATION_CURRENT_USER_GROUP_POLICY + 1 ) , + BG_CERT_STORE_LOCATION_LOCAL_MACHINE_ENTERPRISE = ( BG_CERT_STORE_LOCATION_LOCAL_MACHINE_GROUP_POLICY + 1 ) + } BG_CERT_STORE_LOCATION; + + +EXTERN_C const IID IID_IBackgroundCopyJobHttpOptions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f1bd1079-9f01-4bdc-8036-f09b70095066") + IBackgroundCopyJobHttpOptions : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetClientCertificateByID( + /* [in] */ BG_CERT_STORE_LOCATION StoreLocation, + /* [in] */ __RPC__in LPCWSTR StoreName, + /* [ref][size_is][in] */ __RPC__in_ecount_full(20) byte *pCertHashBlob) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetClientCertificateByName( + /* [in] */ BG_CERT_STORE_LOCATION StoreLocation, + /* [in] */ __RPC__in LPCWSTR StoreName, + /* [in] */ __RPC__in LPCWSTR SubjectName) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveClientCertificate( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetClientCertificate( + /* [ref][out] */ __RPC__out BG_CERT_STORE_LOCATION *pStoreLocation, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pStoreName, + /* [ref][size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(20) byte **ppCertHashBlob, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pSubjectName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCustomHeaders( + /* [unique][in] */ __RPC__in_opt LPCWSTR RequestHeaders) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCustomHeaders( + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pRequestHeaders) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSecurityFlags( + /* [in] */ ULONG Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSecurityFlags( + /* [ref][out] */ __RPC__out ULONG *pFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyJobHttpOptionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyJobHttpOptions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyJobHttpOptions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyJobHttpOptions * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetClientCertificateByID) + HRESULT ( STDMETHODCALLTYPE *SetClientCertificateByID )( + __RPC__in IBackgroundCopyJobHttpOptions * This, + /* [in] */ BG_CERT_STORE_LOCATION StoreLocation, + /* [in] */ __RPC__in LPCWSTR StoreName, + /* [ref][size_is][in] */ __RPC__in_ecount_full(20) byte *pCertHashBlob); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetClientCertificateByName) + HRESULT ( STDMETHODCALLTYPE *SetClientCertificateByName )( + __RPC__in IBackgroundCopyJobHttpOptions * This, + /* [in] */ BG_CERT_STORE_LOCATION StoreLocation, + /* [in] */ __RPC__in LPCWSTR StoreName, + /* [in] */ __RPC__in LPCWSTR SubjectName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, RemoveClientCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveClientCertificate )( + __RPC__in IBackgroundCopyJobHttpOptions * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, GetClientCertificate) + HRESULT ( STDMETHODCALLTYPE *GetClientCertificate )( + __RPC__in IBackgroundCopyJobHttpOptions * This, + /* [ref][out] */ __RPC__out BG_CERT_STORE_LOCATION *pStoreLocation, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pStoreName, + /* [ref][size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(20) byte **ppCertHashBlob, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pSubjectName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetCustomHeaders) + HRESULT ( STDMETHODCALLTYPE *SetCustomHeaders )( + __RPC__in IBackgroundCopyJobHttpOptions * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR RequestHeaders); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, GetCustomHeaders) + HRESULT ( STDMETHODCALLTYPE *GetCustomHeaders )( + __RPC__in IBackgroundCopyJobHttpOptions * This, + /* [ref][out] */ __RPC__deref_out_opt LPWSTR *pRequestHeaders); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, SetSecurityFlags) + HRESULT ( STDMETHODCALLTYPE *SetSecurityFlags )( + __RPC__in IBackgroundCopyJobHttpOptions * This, + /* [in] */ ULONG Flags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJobHttpOptions, GetSecurityFlags) + HRESULT ( STDMETHODCALLTYPE *GetSecurityFlags )( + __RPC__in IBackgroundCopyJobHttpOptions * This, + /* [ref][out] */ __RPC__out ULONG *pFlags); + + END_INTERFACE + } IBackgroundCopyJobHttpOptionsVtbl; + + interface IBackgroundCopyJobHttpOptions + { + CONST_VTBL struct IBackgroundCopyJobHttpOptionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyJobHttpOptions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyJobHttpOptions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyJobHttpOptions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyJobHttpOptions_SetClientCertificateByID(This,StoreLocation,StoreName,pCertHashBlob) \ + ( (This)->lpVtbl -> SetClientCertificateByID(This,StoreLocation,StoreName,pCertHashBlob) ) + +#define IBackgroundCopyJobHttpOptions_SetClientCertificateByName(This,StoreLocation,StoreName,SubjectName) \ + ( (This)->lpVtbl -> SetClientCertificateByName(This,StoreLocation,StoreName,SubjectName) ) + +#define IBackgroundCopyJobHttpOptions_RemoveClientCertificate(This) \ + ( (This)->lpVtbl -> RemoveClientCertificate(This) ) + +#define IBackgroundCopyJobHttpOptions_GetClientCertificate(This,pStoreLocation,pStoreName,ppCertHashBlob,pSubjectName) \ + ( (This)->lpVtbl -> GetClientCertificate(This,pStoreLocation,pStoreName,ppCertHashBlob,pSubjectName) ) + +#define IBackgroundCopyJobHttpOptions_SetCustomHeaders(This,RequestHeaders) \ + ( (This)->lpVtbl -> SetCustomHeaders(This,RequestHeaders) ) + +#define IBackgroundCopyJobHttpOptions_GetCustomHeaders(This,pRequestHeaders) \ + ( (This)->lpVtbl -> GetCustomHeaders(This,pRequestHeaders) ) + +#define IBackgroundCopyJobHttpOptions_SetSecurityFlags(This,Flags) \ + ( (This)->lpVtbl -> SetSecurityFlags(This,Flags) ) + +#define IBackgroundCopyJobHttpOptions_GetSecurityFlags(This,pFlags) \ + ( (This)->lpVtbl -> GetSecurityFlags(This,pFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyJobHttpOptions_INTERFACE_DEFINED__ */ + + + +#ifndef __BackgroundCopyManager2_5_LIBRARY_DEFINED__ +#define __BackgroundCopyManager2_5_LIBRARY_DEFINED__ + +/* library BackgroundCopyManager2_5 */ +/* [version][lcid][helpstring][uuid] */ + + + + + + +EXTERN_C const IID LIBID_BackgroundCopyManager2_5; + +EXTERN_C const CLSID CLSID_BackgroundCopyManager2_5; + +#ifdef __cplusplus + +class DECLSPEC_UUID("03ca98d6-ff5d-49b8-abc6-03dd84127020") +BackgroundCopyManager2_5; +#endif +#endif /* __BackgroundCopyManager2_5_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bits2_5_0000_0002 */ +/* [local] */ + +#define BG_SSL_ENABLE_CRL_CHECK 0x0001 +#define BG_SSL_IGNORE_CERT_CN_INVALID 0x0002 +#define BG_SSL_IGNORE_CERT_DATE_INVALID 0x0004 +#define BG_SSL_IGNORE_UNKNOWN_CA 0x0008 +#define BG_SSL_IGNORE_CERT_WRONG_USAGE 0x0010 +#define BG_HTTP_REDIRECT_POLICY_MASK 0x0700 +#define BG_HTTP_REDIRECT_POLICY_ALLOW_SILENT 0x0000 +#define BG_HTTP_REDIRECT_POLICY_ALLOW_REPORT 0x0100 +#define BG_HTTP_REDIRECT_POLICY_DISALLOW 0x0200 +#define BG_HTTP_REDIRECT_POLICY_ALLOW_HTTPS_TO_HTTP 0x0800 +#include "bits3_0.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bits2_5_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits2_5_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_5.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_5.idl new file mode 100644 index 0000000000000000000000000000000000000000..7b86ad8638cd5733f27b6ced7f72e6255e037446 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits2_5.idl @@ -0,0 +1,125 @@ + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "bits.idl"; +import "bits1_5.idl"; +import "bits2_0.idl"; + +[ + uuid(f1bd1079-9f01-4bdc-8036-f09b70095066), + helpstring("IBackgroundCopyJobHttpOptions Interface"), + odl +] +interface IBackgroundCopyJobHttpOptions : IUnknown +{ + typedef enum BG_CERT_STORE_LOCATION { + BG_CERT_STORE_LOCATION_CURRENT_USER = 0, + BG_CERT_STORE_LOCATION_LOCAL_MACHINE, + BG_CERT_STORE_LOCATION_CURRENT_SERVICE, + BG_CERT_STORE_LOCATION_SERVICES, + BG_CERT_STORE_LOCATION_USERS, + BG_CERT_STORE_LOCATION_CURRENT_USER_GROUP_POLICY, + BG_CERT_STORE_LOCATION_LOCAL_MACHINE_GROUP_POLICY, + BG_CERT_STORE_LOCATION_LOCAL_MACHINE_ENTERPRISE + } BG_CERT_STORE_LOCATION; + + HRESULT SetClientCertificateByID( + [in] BG_CERT_STORE_LOCATION StoreLocation, + [in] LPCWSTR StoreName, + [in, size_is(20), ref] byte * pCertHashBlob + ); + + HRESULT SetClientCertificateByName( + [in] BG_CERT_STORE_LOCATION StoreLocation, + [in] LPCWSTR StoreName, + [in] LPCWSTR SubjectName + ); + + HRESULT RemoveClientCertificate( + ); + + HRESULT GetClientCertificate( + [out, ref] BG_CERT_STORE_LOCATION * pStoreLocation, + [out, ref] LPWSTR * pStoreName, + [out, size_is( , 20), ref] byte ** ppCertHashBlob, + [out, ref] LPWSTR* pSubjectName + ); + + HRESULT SetCustomHeaders( + [in, unique] LPCWSTR RequestHeaders + ); + + HRESULT GetCustomHeaders( + [out, ref] LPWSTR* pRequestHeaders + ); + + HRESULT SetSecurityFlags( + [in] ULONG Flags + ); + + HRESULT GetSecurityFlags( + [out, ref] ULONG* pFlags + ); + +} + +//--------------------------------------------------------------------------- + +[ + uuid(4974177c-3bb6-4c37-9ff0-6b7426f0aba9), + helpstring("Microsoft Background Copy Manager 2.5"), + lcid(0x0000), + version(1.0) +] +library BackgroundCopyManager2_5 +{ + [ + uuid(03ca98d6-ff5d-49b8-abc6-03dd84127020), + helpstring("Background copy manager 2.5") + ] + coclass BackgroundCopyManager2_5 + { + [default] interface IBackgroundCopyManager; + }; + interface IBackgroundCopyCallback; + interface IBackgroundCopyFile2; + interface IBackgroundCopyJob3; + interface IBackgroundCopyJobHttpOptions; +} + +cpp_quote("#define BG_SSL_ENABLE_CRL_CHECK 0x0001") +cpp_quote("#define BG_SSL_IGNORE_CERT_CN_INVALID 0x0002") +cpp_quote("#define BG_SSL_IGNORE_CERT_DATE_INVALID 0x0004") +cpp_quote("#define BG_SSL_IGNORE_UNKNOWN_CA 0x0008") +cpp_quote("#define BG_SSL_IGNORE_CERT_WRONG_USAGE 0x0010") + +// +// Main redirection policy: defines how BITS treats HTTP redirects +// - default = BG_HTTP_REDIRECT_POLICY_SILENT; for any other value +// BITS will update IBackgroundCopyFile's RemoteName with the final URL +// - DISALLOW will cause bits to enter error state when a redirect occurs +// +// ALLOW_SILENT and ALLOW_REPORT may be combined with +// BG_HTTP_REDIRECT_POLICY_ALLOW_HTTPS_TO_HTTP (see below) +// +cpp_quote("#define BG_HTTP_REDIRECT_POLICY_MASK 0x0700") + +cpp_quote("#define BG_HTTP_REDIRECT_POLICY_ALLOW_SILENT 0x0000") +cpp_quote("#define BG_HTTP_REDIRECT_POLICY_ALLOW_REPORT 0x0100") +cpp_quote("#define BG_HTTP_REDIRECT_POLICY_DISALLOW 0x0200") + +// +// Supplemental redirection policy: +// By default, redirection from HTTPS to HTTP is not allowed. +// Set this flag to allow it. +// +cpp_quote("#define BG_HTTP_REDIRECT_POLICY_ALLOW_HTTPS_TO_HTTP 0x0800") + +cpp_quote("#include \"bits3_0.h\"") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits3_0.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits3_0.idl new file mode 100644 index 0000000000000000000000000000000000000000..7cb425e86000b6015101b1f9887da63654ef0dac --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits3_0.idl @@ -0,0 +1,314 @@ + +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module name: + + bits3_0.idl + +Abstract: + + Contains interfaces, types, and macros for Background Intelligent Transfer Service. + +--*/ + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "bits.idl"; +import "bits1_5.idl"; +import "bits2_0.idl"; +import "bits2_5.idl"; + +#define BG_ENUM_SIZEIS(maxcount) maxcount +#define BG_ENUM_LENGTHIS(maxcount,lengthptr) \ + lengthptr ? *lengthptr : maxcount + +/** + * IBitsPeerCacheRecord - deprecated interface + */ +[ + uuid(659cdeaf-489e-11d9-a9cd-000d56965251), + helpstring("IBitsPeerCacheRecord"), + odl +] +interface IBitsPeerCacheRecord : IUnknown +{ + HRESULT GetId( [out, ref] GUID * pVal ); + + HRESULT GetOriginUrl( [out] LPWSTR *pVal ); + + HRESULT GetFileSize( [out, ref] UINT64 * pVal ); + + HRESULT GetFileModificationTime( [out, ref] FILETIME * pVal ); + + HRESULT GetLastAccessTime( [out, ref] FILETIME * pVal ); + + /** + * returns S_OK if validated, S_FALSE if not + */ + HRESULT IsFileValidated(); + + HRESULT + GetFileRanges( + [out, ref] DWORD * pRangeCount, + [out, size_is( , *pRangeCount)] BG_FILE_RANGE ** ppRanges ); + +}; + +/** + * IEnumBitsPeerCacheRecords - deprecated interface + */ +[ + uuid(659cdea4-489e-11d9-a9cd-000d56965251), + helpstring("IEnumBitsPeerCacheRecords"), + odl +] +interface IEnumBitsPeerCacheRecords : IUnknown +{ + HRESULT + Next( + [in] ULONG celt, + [out, size_is(BG_ENUM_SIZEIS(celt)), length_is(BG_ENUM_LENGTHIS(celt,pceltFetched))] IBitsPeerCacheRecord **rgelt, + [in,out,unique] ULONG *pceltFetched ); + + HRESULT + Skip( + [in] ULONG celt); + + HRESULT + Reset(); + + HRESULT + Clone( + [out] IEnumBitsPeerCacheRecords **ppenum ); + + HRESULT + GetCount( + [out] ULONG *puCount ); +}; + + +[ + uuid(659cdea2-489e-11d9-a9cd-000d56965251), + helpstring("IBitsPeer"), + odl +] +interface IBitsPeer : IUnknown +{ + HRESULT GetPeerName( [out, ref] LPWSTR * pName ); + + HRESULT IsAuthenticated( [out, ref] BOOL * pAuth ); + + HRESULT IsAvailable( [out, ref] BOOL * pOnline ); +}; + +/** + * IEnumBitsPeers - deprecated interface + */ +[ + uuid(659cdea5-489e-11d9-a9cd-000d56965251), + helpstring("IEnumBitsPeers"), + odl +] +interface IEnumBitsPeers : IUnknown +{ + HRESULT + Next( + [in] ULONG celt, + [out, size_is(BG_ENUM_SIZEIS(celt)), length_is(BG_ENUM_LENGTHIS(celt,pceltFetched))] IBitsPeer **rgelt, + [in,out,unique] ULONG *pceltFetched ); + + HRESULT + Skip( + [in] ULONG celt); + + HRESULT + Reset(); + + HRESULT + Clone( + [out] IEnumBitsPeers **ppenum ); + + HRESULT + GetCount( + [out] ULONG *puCount ); +} + +/** + * IBitsPeerCacheAdministration - deprecated interface + */ +[ + uuid(659cdead-489e-11d9-a9cd-000d56965251), + helpstring("IBitsPeerCacheAdministration"), + odl +] +interface IBitsPeerCacheAdministration : IUnknown +{ +cpp_quote("#define BG_ENABLE_PEERCACHING_CLIENT 0x0001") +cpp_quote("#define BG_ENABLE_PEERCACHING_SERVER 0x0002") +cpp_quote("#define BG_DISABLE_BRANCH_CACHE 0x0004") + + /** + * control of caching policy in general + */ + HRESULT GetMaximumCacheSize( [ref,out] DWORD * pBytes ); + HRESULT SetMaximumCacheSize( DWORD Bytes ); + + HRESULT GetMaximumContentAge( [ref,out] ULONG * pSeconds ); + HRESULT SetMaximumContentAge( ULONG Seconds ); + + HRESULT GetConfigurationFlags( [ref, out] DWORD * pFlags ); + HRESULT SetConfigurationFlags( DWORD Flags ); + + /** + * cache record management + */ + HRESULT EnumRecords( [out] IEnumBitsPeerCacheRecords ** ppEnum ); + + HRESULT GetRecord( [in] REFGUID id, + [out] IBitsPeerCacheRecord **ppRecord ); + + HRESULT ClearRecords(); + + HRESULT DeleteRecord( [in] REFGUID id ); + + HRESULT DeleteUrl( [in, ref] LPCWSTR url ); + + /** + * peer management + */ + HRESULT EnumPeers( [out, ref] IEnumBitsPeers ** ppEnum ); + + HRESULT ClearPeers(); + + HRESULT DiscoverPeers(); +}; + +[ + uuid(659cdeae-489e-11d9-a9cd-000d56965251), + helpstring("IBackgroundCopyJob4 Interface"), + odl +] +interface IBackgroundCopyJob4 : IBackgroundCopyJob3 +{ +cpp_quote("#define BG_JOB_ENABLE_PEERCACHING_CLIENT 0x0001") +cpp_quote("#define BG_JOB_ENABLE_PEERCACHING_SERVER 0x0002") +cpp_quote("#define BG_JOB_DISABLE_BRANCH_CACHE 0x0004") + + // + // control of peer-caching + // + HRESULT SetPeerCachingFlags( DWORD Flags ); + + HRESULT GetPeerCachingFlags( [out, ref] DWORD * pFlags ); + + // + // inspecting token characteristics + // + HRESULT GetOwnerIntegrityLevel( [out, ref] ULONG * pLevel ); + + HRESULT GetOwnerElevationState( [out, ref] BOOL * pElevated ); + + + // Download Timeout + + HRESULT SetMaximumDownloadTime( ULONG Timeout ); + + HRESULT GetMaximumDownloadTime([out,ref] ULONG* pTimeout ); + +}; + +[ + uuid(659cdeaa-489e-11d9-a9cd-000d56965251), + helpstring("IBackgroundCopyFile3 interface"), + odl +] +interface IBackgroundCopyFile3 : IBackgroundCopyFile2 +{ + // + // Get the name of the temporary file, allowing access to data before + // the job is complete. + // + HRESULT GetTemporaryName( [out] LPWSTR * pFilename ); + + // + // Calling SetValidationState(TRUE) allows the data to be shared with peers, + // if peer-caching is otherwise enabled for this job. + // + // Calling SetValidationState(FALSE) triggers another download attempt if the + // file was downloaded from a peer; otherwise, it puts the job in ERROR state. + // + HRESULT SetValidationState( [in] BOOL state ); + + // + // Retrieves the current validation state of this file. + // + HRESULT GetValidationState( [out] BOOL * pState ); + + // + // *pVal is set to TRUE if any part of the file was downloaded from a peer server. + // + HRESULT IsDownloadedFromPeer( [out] BOOL * pVal ); +} + + +[ + uuid(659cdeac-489e-11d9-a9cd-000d56965251), + helpstring("IBackgroundCopyCallback2 Interface"), + odl +] +interface IBackgroundCopyCallback2 : IBackgroundCopyCallback +{ + // + // A file has been transferred. + // + HRESULT FileTransferred( [in] IBackgroundCopyJob *pJob, + [in] IBackgroundCopyFile * pFile ); +} + + + +//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +// enumerators +//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + + +//--------------------------------------------------------------------------- + +[ + uuid(659cdea6-489e-11d9-a9cd-000d56965251), + helpstring("Microsoft Background Copy Manager 3.0"), + lcid(0x0000), + version(1.0) +] +library BackgroundCopyManager3_0 +{ + [ + uuid(659cdea7-489e-11d9-a9cd-000d56965251), + helpstring("Background copy manager 3.0") + ] + coclass BackgroundCopyManager3_0 + { + [default] interface IBackgroundCopyManager; + }; + interface IBackgroundCopyCallback2; + interface IBackgroundCopyFile3; + interface IBackgroundCopyJob4; + interface IBackgroundCopyJobHttpOptions; + interface IBitsPeer; + interface IBitsPeerCacheAdministration; + interface IBitsPeerCacheRecord; + interface IEnumBitsPeerCacheRecords; + interface IEnumBitsPeers; +} + +cpp_quote("#include \"bits4_0.h\"") + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits4_0.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits4_0.h new file mode 100644 index 0000000000000000000000000000000000000000..44675e4af9ea0a53ee0f07df0de4e136fd737896 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits4_0.h @@ -0,0 +1,452 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bits4_0_h__ +#define __bits4_0_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBitsTokenOptions_FWD_DEFINED__ +#define __IBitsTokenOptions_FWD_DEFINED__ +typedef interface IBitsTokenOptions IBitsTokenOptions; + +#endif /* __IBitsTokenOptions_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile4_FWD_DEFINED__ +#define __IBackgroundCopyFile4_FWD_DEFINED__ +typedef interface IBackgroundCopyFile4 IBackgroundCopyFile4; + +#endif /* __IBackgroundCopyFile4_FWD_DEFINED__ */ + + +#ifndef __BackgroundCopyManager4_0_FWD_DEFINED__ +#define __BackgroundCopyManager4_0_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackgroundCopyManager4_0 BackgroundCopyManager4_0; +#else +typedef struct BackgroundCopyManager4_0 BackgroundCopyManager4_0; +#endif /* __cplusplus */ + +#endif /* __BackgroundCopyManager4_0_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile4_FWD_DEFINED__ +#define __IBackgroundCopyFile4_FWD_DEFINED__ +typedef interface IBackgroundCopyFile4 IBackgroundCopyFile4; + +#endif /* __IBackgroundCopyFile4_FWD_DEFINED__ */ + + +#ifndef __IBitsTokenOptions_FWD_DEFINED__ +#define __IBitsTokenOptions_FWD_DEFINED__ +typedef interface IBitsTokenOptions IBitsTokenOptions; + +#endif /* __IBitsTokenOptions_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "bits.h" +#include "bits1_5.h" +#include "bits2_0.h" +#include "bits2_5.h" +#include "bits3_0.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bits4_0_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_bits4_0_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits4_0_0000_0000_v0_0_s_ifspec; + +#ifndef __IBitsTokenOptions_INTERFACE_DEFINED__ +#define __IBitsTokenOptions_INTERFACE_DEFINED__ + +/* interface IBitsTokenOptions */ +/* [object][helpstring][uuid] */ + +#define BG_TOKEN_LOCAL_FILE 0x0001 +#define BG_TOKEN_NETWORK 0x0002 + +EXTERN_C const IID IID_IBitsTokenOptions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9a2584c3-f7d2-457a-9a5e-22b67bffc7d2") + IBitsTokenOptions : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetHelperTokenFlags( + DWORD UsageFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHelperTokenFlags( + /* [out] */ __RPC__out DWORD *pFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetHelperToken( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ClearHelperToken( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHelperTokenSid( + /* [out] */ __RPC__deref_out_opt LPWSTR *pSid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBitsTokenOptionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBitsTokenOptions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBitsTokenOptions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBitsTokenOptions * This); + + DECLSPEC_XFGVIRT(IBitsTokenOptions, SetHelperTokenFlags) + HRESULT ( STDMETHODCALLTYPE *SetHelperTokenFlags )( + __RPC__in IBitsTokenOptions * This, + DWORD UsageFlags); + + DECLSPEC_XFGVIRT(IBitsTokenOptions, GetHelperTokenFlags) + HRESULT ( STDMETHODCALLTYPE *GetHelperTokenFlags )( + __RPC__in IBitsTokenOptions * This, + /* [out] */ __RPC__out DWORD *pFlags); + + DECLSPEC_XFGVIRT(IBitsTokenOptions, SetHelperToken) + HRESULT ( STDMETHODCALLTYPE *SetHelperToken )( + __RPC__in IBitsTokenOptions * This); + + DECLSPEC_XFGVIRT(IBitsTokenOptions, ClearHelperToken) + HRESULT ( STDMETHODCALLTYPE *ClearHelperToken )( + __RPC__in IBitsTokenOptions * This); + + DECLSPEC_XFGVIRT(IBitsTokenOptions, GetHelperTokenSid) + HRESULT ( STDMETHODCALLTYPE *GetHelperTokenSid )( + __RPC__in IBitsTokenOptions * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pSid); + + END_INTERFACE + } IBitsTokenOptionsVtbl; + + interface IBitsTokenOptions + { + CONST_VTBL struct IBitsTokenOptionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBitsTokenOptions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBitsTokenOptions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBitsTokenOptions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBitsTokenOptions_SetHelperTokenFlags(This,UsageFlags) \ + ( (This)->lpVtbl -> SetHelperTokenFlags(This,UsageFlags) ) + +#define IBitsTokenOptions_GetHelperTokenFlags(This,pFlags) \ + ( (This)->lpVtbl -> GetHelperTokenFlags(This,pFlags) ) + +#define IBitsTokenOptions_SetHelperToken(This) \ + ( (This)->lpVtbl -> SetHelperToken(This) ) + +#define IBitsTokenOptions_ClearHelperToken(This) \ + ( (This)->lpVtbl -> ClearHelperToken(This) ) + +#define IBitsTokenOptions_GetHelperTokenSid(This,pSid) \ + ( (This)->lpVtbl -> GetHelperTokenSid(This,pSid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBitsTokenOptions_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile4_INTERFACE_DEFINED__ +#define __IBackgroundCopyFile4_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyFile4 */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyFile4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ef7e0655-7888-4960-b0e5-730846e03492") + IBackgroundCopyFile4 : public IBackgroundCopyFile3 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPeerDownloadStats( + /* [out] */ __RPC__out PUINT64 pFromOrigin, + /* [out] */ __RPC__out PUINT64 pFromPeers) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyFile4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyFile4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyFile4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyFile4 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetRemoteName) + HRESULT ( STDMETHODCALLTYPE *GetRemoteName )( + __RPC__in IBackgroundCopyFile4 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetLocalName) + HRESULT ( STDMETHODCALLTYPE *GetLocalName )( + __RPC__in IBackgroundCopyFile4 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyFile4 * This, + /* [out] */ __RPC__out BG_FILE_PROGRESS *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile2, GetFileRanges) + HRESULT ( STDMETHODCALLTYPE *GetFileRanges )( + __RPC__in IBackgroundCopyFile4 * This, + /* [unique][out][in] */ __RPC__inout_opt DWORD *RangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*RangeCount) BG_FILE_RANGE **Ranges); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile2, SetRemoteName) + HRESULT ( STDMETHODCALLTYPE *SetRemoteName )( + __RPC__in IBackgroundCopyFile4 * This, + __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, GetTemporaryName) + HRESULT ( STDMETHODCALLTYPE *GetTemporaryName )( + __RPC__in IBackgroundCopyFile4 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pFilename); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, SetValidationState) + HRESULT ( STDMETHODCALLTYPE *SetValidationState )( + __RPC__in IBackgroundCopyFile4 * This, + /* [in] */ BOOL state); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, GetValidationState) + HRESULT ( STDMETHODCALLTYPE *GetValidationState )( + __RPC__in IBackgroundCopyFile4 * This, + /* [out] */ __RPC__out BOOL *pState); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, IsDownloadedFromPeer) + HRESULT ( STDMETHODCALLTYPE *IsDownloadedFromPeer )( + __RPC__in IBackgroundCopyFile4 * This, + /* [out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile4, GetPeerDownloadStats) + HRESULT ( STDMETHODCALLTYPE *GetPeerDownloadStats )( + __RPC__in IBackgroundCopyFile4 * This, + /* [out] */ __RPC__out PUINT64 pFromOrigin, + /* [out] */ __RPC__out PUINT64 pFromPeers); + + END_INTERFACE + } IBackgroundCopyFile4Vtbl; + + interface IBackgroundCopyFile4 + { + CONST_VTBL struct IBackgroundCopyFile4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyFile4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyFile4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyFile4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyFile4_GetRemoteName(This,pVal) \ + ( (This)->lpVtbl -> GetRemoteName(This,pVal) ) + +#define IBackgroundCopyFile4_GetLocalName(This,pVal) \ + ( (This)->lpVtbl -> GetLocalName(This,pVal) ) + +#define IBackgroundCopyFile4_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + + +#define IBackgroundCopyFile4_GetFileRanges(This,RangeCount,Ranges) \ + ( (This)->lpVtbl -> GetFileRanges(This,RangeCount,Ranges) ) + +#define IBackgroundCopyFile4_SetRemoteName(This,Val) \ + ( (This)->lpVtbl -> SetRemoteName(This,Val) ) + + +#define IBackgroundCopyFile4_GetTemporaryName(This,pFilename) \ + ( (This)->lpVtbl -> GetTemporaryName(This,pFilename) ) + +#define IBackgroundCopyFile4_SetValidationState(This,state) \ + ( (This)->lpVtbl -> SetValidationState(This,state) ) + +#define IBackgroundCopyFile4_GetValidationState(This,pState) \ + ( (This)->lpVtbl -> GetValidationState(This,pState) ) + +#define IBackgroundCopyFile4_IsDownloadedFromPeer(This,pVal) \ + ( (This)->lpVtbl -> IsDownloadedFromPeer(This,pVal) ) + + +#define IBackgroundCopyFile4_GetPeerDownloadStats(This,pFromOrigin,pFromPeers) \ + ( (This)->lpVtbl -> GetPeerDownloadStats(This,pFromOrigin,pFromPeers) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyFile4_INTERFACE_DEFINED__ */ + + + +#ifndef __BackgroundCopyManager4_0_LIBRARY_DEFINED__ +#define __BackgroundCopyManager4_0_LIBRARY_DEFINED__ + +/* library BackgroundCopyManager4_0 */ +/* [version][lcid][helpstring][uuid] */ + + + + + + + + + + + + +EXTERN_C const IID LIBID_BackgroundCopyManager4_0; + +EXTERN_C const CLSID CLSID_BackgroundCopyManager4_0; + +#ifdef __cplusplus + +class DECLSPEC_UUID("bb6df56b-cace-11dc-9992-0019b93a3a84") +BackgroundCopyManager4_0; +#endif +#endif /* __BackgroundCopyManager4_0_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bits4_0_0000_0003 */ +/* [local] */ + +#include "bits5_0.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bits4_0_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits4_0_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits4_0.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits4_0.idl new file mode 100644 index 0000000000000000000000000000000000000000..db102204058e54748163e5fbcbbe6917c534d6b0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits4_0.idl @@ -0,0 +1,122 @@ + +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module name: + + bits4_0.idl + +Abstract: + + Contains interfaces, types, and macros for Background Intelligent Transfer Service. + +--*/ + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "bits.idl"; +import "bits1_5.idl"; +import "bits2_0.idl"; +import "bits2_5.idl"; +import "bits3_0.idl"; + +/* +sequential uuids that can be used for new interfaces, etc: + + + +bb6df56d-cace-11dc-9992-0019b93a3a84 +bb6df56e-cace-11dc-9992-0019b93a3a84 +bb6df56f-cace-11dc-9992-0019b93a3a84 +bb6df570-cace-11dc-9992-0019b93a3a84 +bb6df571-cace-11dc-9992-0019b93a3a84 +bb6df572-cace-11dc-9992-0019b93a3a84 +bb6df573-cace-11dc-9992-0019b93a3a84 +*/ + +[ + uuid(9a2584c3-f7d2-457a-9a5e-22b67bffc7d2), + helpstring("IBitsTokenOptions"), + odl +] +interface IBitsTokenOptions : IUnknown +{ + cpp_quote("#define BG_TOKEN_LOCAL_FILE 0x0001") + cpp_quote("#define BG_TOKEN_NETWORK 0x0002") + + // set the usage flags (only) + // + HRESULT SetHelperTokenFlags( DWORD UsageFlags ); + + // return the usage flags + // + HRESULT GetHelperTokenFlags( [out] DWORD * pFlags ); + + + // Set the helper token to be the COM client's token. + // Requires that the proxy blanket use + // RPC_C_IMP_LEVEL_IMPERSONATE or RPC_C_IMP_LEVEL_DELEGATE + // + HRESULT SetHelperToken(); + + // discard the token without changing the usage flags + // + HRESULT ClearHelperToken(); + + // return the SID of the helper token in pVal, if one is set. + // If no token available, set pVal to NULL. + // + HRESULT GetHelperTokenSid( [out] LPWSTR * pSid ); +}; + + +[ + uuid(ef7e0655-7888-4960-b0e5-730846e03492), + helpstring("IBackgroundCopyFile4 interface"), + odl +] +interface IBackgroundCopyFile4 : IBackgroundCopyFile3 +{ + HRESULT GetPeerDownloadStats( [out] PUINT64 pFromOrigin, [out] PUINT64 pFromPeers ); +} + +//--------------------------------------------------------------------------- + +[ + uuid(bb6df56a-cace-11dc-9992-0019b93a3a84), + helpstring("Microsoft Background Copy Manager 4.0"), + lcid(0x0000), + version(1.0) +] +library BackgroundCopyManager4_0 +{ + [ + uuid(bb6df56b-cace-11dc-9992-0019b93a3a84), + helpstring("Background copy manager 3.0") + ] + coclass BackgroundCopyManager4_0 + { + [default] interface IBackgroundCopyManager; + }; + interface IBackgroundCopyCallback2; + interface IBackgroundCopyFile4; + interface IBackgroundCopyJob4; + interface IBackgroundCopyJobHttpOptions; + interface IBitsPeer; + interface IBitsPeerCacheAdministration; + interface IBitsPeerCacheRecord; + interface IBitsTokenOptions; + interface IEnumBitsPeerCacheRecords; + interface IEnumBitsPeers; +} + +cpp_quote("#include \"bits5_0.h\"") + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits5_0.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits5_0.h new file mode 100644 index 0000000000000000000000000000000000000000..c8ff2cc6d6aea6f5ff4a58715de9499c76fb6432 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits5_0.h @@ -0,0 +1,920 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bits5_0_h__ +#define __bits5_0_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBackgroundCopyJob5_FWD_DEFINED__ +#define __IBackgroundCopyJob5_FWD_DEFINED__ +typedef interface IBackgroundCopyJob5 IBackgroundCopyJob5; + +#endif /* __IBackgroundCopyJob5_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile5_FWD_DEFINED__ +#define __IBackgroundCopyFile5_FWD_DEFINED__ +typedef interface IBackgroundCopyFile5 IBackgroundCopyFile5; + +#endif /* __IBackgroundCopyFile5_FWD_DEFINED__ */ + + +#ifndef __BackgroundCopyManager5_0_FWD_DEFINED__ +#define __BackgroundCopyManager5_0_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BackgroundCopyManager5_0 BackgroundCopyManager5_0; +#else +typedef struct BackgroundCopyManager5_0 BackgroundCopyManager5_0; +#endif /* __cplusplus */ + +#endif /* __BackgroundCopyManager5_0_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile5_FWD_DEFINED__ +#define __IBackgroundCopyFile5_FWD_DEFINED__ +typedef interface IBackgroundCopyFile5 IBackgroundCopyFile5; + +#endif /* __IBackgroundCopyFile5_FWD_DEFINED__ */ + + +#ifndef __IBackgroundCopyJob5_FWD_DEFINED__ +#define __IBackgroundCopyJob5_FWD_DEFINED__ +typedef interface IBackgroundCopyJob5 IBackgroundCopyJob5; + +#endif /* __IBackgroundCopyJob5_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "bits.h" +#include "bits1_5.h" +#include "bits2_0.h" +#include "bits2_5.h" +#include "bits3_0.h" +#include "bits4_0.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bits5_0_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define BITS_COST_STATE_UNRESTRICTED 0x1 +#define BITS_COST_STATE_CAPPED_USAGE_UNKNOWN 0x2 +#define BITS_COST_STATE_BELOW_CAP 0x4 +#define BITS_COST_STATE_NEAR_CAP 0x8 +#define BITS_COST_STATE_OVERCAP_CHARGED 0x10 +#define BITS_COST_STATE_OVERCAP_THROTTLED 0x20 +#define BITS_COST_STATE_USAGE_BASED 0x40 +#define BITS_COST_STATE_ROAMING 0x80 +#define BITS_COST_OPTION_IGNORE_CONGESTION 0x80000000 +#define BITS_COST_STATE_RESERVED 0x40000000 +#define BITS_COST_STATE_TRANSFER_NOT_ROAMING (BITS_COST_OPTION_IGNORE_CONGESTION|BITS_COST_STATE_USAGE_BASED|BITS_COST_STATE_OVERCAP_THROTTLED|BITS_COST_STATE_OVERCAP_CHARGED|BITS_COST_STATE_NEAR_CAP|BITS_COST_STATE_BELOW_CAP|BITS_COST_STATE_CAPPED_USAGE_UNKNOWN|BITS_COST_STATE_UNRESTRICTED) +#define BITS_COST_STATE_TRANSFER_NO_SURCHARGE (BITS_COST_OPTION_IGNORE_CONGESTION|BITS_COST_STATE_USAGE_BASED|BITS_COST_STATE_OVERCAP_THROTTLED|BITS_COST_STATE_NEAR_CAP|BITS_COST_STATE_BELOW_CAP|BITS_COST_STATE_CAPPED_USAGE_UNKNOWN|BITS_COST_STATE_UNRESTRICTED) +#define BITS_COST_STATE_TRANSFER_STANDARD (BITS_COST_OPTION_IGNORE_CONGESTION|BITS_COST_STATE_USAGE_BASED|BITS_COST_STATE_OVERCAP_THROTTLED|BITS_COST_STATE_BELOW_CAP|BITS_COST_STATE_CAPPED_USAGE_UNKNOWN|BITS_COST_STATE_UNRESTRICTED) +#define BITS_COST_STATE_TRANSFER_UNRESTRICTED (BITS_COST_OPTION_IGNORE_CONGESTION|BITS_COST_STATE_OVERCAP_THROTTLED|BITS_COST_STATE_UNRESTRICTED) +#define BITS_COST_STATE_TRANSFER_ALWAYS (BITS_COST_OPTION_IGNORE_CONGESTION|BITS_COST_STATE_ROAMING|BITS_COST_STATE_USAGE_BASED|BITS_COST_STATE_OVERCAP_THROTTLED|BITS_COST_STATE_OVERCAP_CHARGED|BITS_COST_STATE_NEAR_CAP|BITS_COST_STATE_BELOW_CAP|BITS_COST_STATE_CAPPED_USAGE_UNKNOWN|BITS_COST_STATE_UNRESTRICTED) +typedef +enum BITS_JOB_TRANSFER_POLICY + { + BITS_JOB_TRANSFER_POLICY_ALWAYS = 0x800000ff, + BITS_JOB_TRANSFER_POLICY_NOT_ROAMING = 0x8000007f, + BITS_JOB_TRANSFER_POLICY_NO_SURCHARGE = 0x8000006f, + BITS_JOB_TRANSFER_POLICY_STANDARD = 0x80000067, + BITS_JOB_TRANSFER_POLICY_UNRESTRICTED = 0x80000021 + } BITS_JOB_TRANSFER_POLICY; + +typedef +enum BITS_JOB_PROPERTY_ID + { + BITS_JOB_PROPERTY_ID_COST_FLAGS = 1, + BITS_JOB_PROPERTY_NOTIFICATION_CLSID = 2, + BITS_JOB_PROPERTY_DYNAMIC_CONTENT = 3, + BITS_JOB_PROPERTY_HIGH_PERFORMANCE = 4, + BITS_JOB_PROPERTY_MAX_DOWNLOAD_SIZE = 5, + BITS_JOB_PROPERTY_USE_STORED_CREDENTIALS = 7, + BITS_JOB_PROPERTY_MINIMUM_NOTIFICATION_INTERVAL_MS = 9, + BITS_JOB_PROPERTY_ON_DEMAND_MODE = 10 + } BITS_JOB_PROPERTY_ID; + +typedef /* [public][public][public][switch_type] */ union __MIDL___MIDL_itf_bits5_0_0000_0000_0001 + { + /* [case()] */ DWORD Dword; + /* [case()] */ GUID ClsID; + /* [case()] */ BOOL Enable; + /* [case()] */ UINT64 Uint64; + /* [case()] */ BG_AUTH_TARGET Target; + } BITS_JOB_PROPERTY_VALUE; + +typedef +enum BITS_FILE_PROPERTY_ID + { + BITS_FILE_PROPERTY_ID_HTTP_RESPONSE_HEADERS = 1 + } BITS_FILE_PROPERTY_ID; + +typedef /* [public][public][public][switch_type] */ union __MIDL___MIDL_itf_bits5_0_0000_0000_0002 + { + /* [case()] */ LPWSTR String; + } BITS_FILE_PROPERTY_VALUE; + + + +extern RPC_IF_HANDLE __MIDL_itf_bits5_0_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits5_0_0000_0000_v0_0_s_ifspec; + +#ifndef __IBackgroundCopyJob5_INTERFACE_DEFINED__ +#define __IBackgroundCopyJob5_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyJob5 */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyJob5; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E847030C-BBBA-4657-AF6D-484AA42BF1FE") + IBackgroundCopyJob5 : public IBackgroundCopyJob4 + { + public: + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ BITS_JOB_PROPERTY_ID PropertyId, + /* [switch_is][in] */ BITS_JOB_PROPERTY_VALUE PropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ BITS_JOB_PROPERTY_ID PropertyId, + /* [switch_is][out] */ __RPC__out BITS_JOB_PROPERTY_VALUE *PropertyValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyJob5Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyJob5 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyJob5 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, AddFileSet) + HRESULT ( STDMETHODCALLTYPE *AddFileSet )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ ULONG cFileCount, + /* [size_is][in] */ __RPC__in_ecount_full(cFileCount) BG_FILE_INFO *pFileSet); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, AddFile) + HRESULT ( STDMETHODCALLTYPE *AddFile )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ __RPC__in LPCWSTR RemoteUrl, + /* [in] */ __RPC__in LPCWSTR LocalName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, EnumFiles) + HRESULT ( STDMETHODCALLTYPE *EnumFiles )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__deref_out_opt IEnumBackgroundCopyFiles **pEnum); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + __RPC__in IBackgroundCopyJob5 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IBackgroundCopyJob5 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IBackgroundCopyJob5 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, Complete) + HRESULT ( STDMETHODCALLTYPE *Complete )( + __RPC__in IBackgroundCopyJob5 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetId) + HRESULT ( STDMETHODCALLTYPE *GetId )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out GUID *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetType) + HRESULT ( STDMETHODCALLTYPE *GetType )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out BG_JOB_TYPE *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out BG_JOB_PROGRESS *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetTimes) + HRESULT ( STDMETHODCALLTYPE *GetTimes )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out BG_JOB_TIMES *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out BG_JOB_STATE *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetError) + HRESULT ( STDMETHODCALLTYPE *GetError )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__deref_out_opt IBackgroundCopyError **ppError); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetOwner) + HRESULT ( STDMETHODCALLTYPE *GetOwner )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetDisplayName) + HRESULT ( STDMETHODCALLTYPE *SetDisplayName )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetDescription) + HRESULT ( STDMETHODCALLTYPE *SetDescription )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetPriority) + HRESULT ( STDMETHODCALLTYPE *SetPriority )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ BG_JOB_PRIORITY Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetPriority) + HRESULT ( STDMETHODCALLTYPE *GetPriority )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out BG_JOB_PRIORITY *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *SetNotifyFlags )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ ULONG Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *GetNotifyFlags )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNotifyInterface) + HRESULT ( STDMETHODCALLTYPE *SetNotifyInterface )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ __RPC__in_opt IUnknown *Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNotifyInterface) + HRESULT ( STDMETHODCALLTYPE *GetNotifyInterface )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__deref_out_opt IUnknown **pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetMinimumRetryDelay) + HRESULT ( STDMETHODCALLTYPE *SetMinimumRetryDelay )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ ULONG Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetMinimumRetryDelay) + HRESULT ( STDMETHODCALLTYPE *GetMinimumRetryDelay )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out ULONG *Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetNoProgressTimeout) + HRESULT ( STDMETHODCALLTYPE *SetNoProgressTimeout )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ ULONG Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetNoProgressTimeout) + HRESULT ( STDMETHODCALLTYPE *GetNoProgressTimeout )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out ULONG *Seconds); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetErrorCount) + HRESULT ( STDMETHODCALLTYPE *GetErrorCount )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out ULONG *Errors); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, SetProxySettings) + HRESULT ( STDMETHODCALLTYPE *SetProxySettings )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ BG_JOB_PROXY_USAGE ProxyUsage, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyList, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *ProxyBypassList); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, GetProxySettings) + HRESULT ( STDMETHODCALLTYPE *GetProxySettings )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__out BG_JOB_PROXY_USAGE *pProxyUsage, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyList, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProxyBypassList); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob, TakeOwnership) + HRESULT ( STDMETHODCALLTYPE *TakeOwnership )( + __RPC__in IBackgroundCopyJob5 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetNotifyCmdLine) + HRESULT ( STDMETHODCALLTYPE *SetNotifyCmdLine )( + __RPC__in IBackgroundCopyJob5 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR Program, + /* [unique][in] */ __RPC__in_opt LPCWSTR Parameters); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetNotifyCmdLine) + HRESULT ( STDMETHODCALLTYPE *GetNotifyCmdLine )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pProgram, + /* [out] */ __RPC__deref_out_opt LPWSTR *pParameters); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyProgress) + HRESULT ( STDMETHODCALLTYPE *GetReplyProgress )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out][in] */ __RPC__inout BG_JOB_REPLY_PROGRESS *pProgress); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyData) + HRESULT ( STDMETHODCALLTYPE *GetReplyData )( + __RPC__in IBackgroundCopyJob5 * This, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(( unsigned long )*pLength) byte **ppBuffer, + /* [unique][out][in] */ __RPC__inout_opt UINT64 *pLength); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetReplyFileName) + HRESULT ( STDMETHODCALLTYPE *SetReplyFileName )( + __RPC__in IBackgroundCopyJob5 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR ReplyFileName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, GetReplyFileName) + HRESULT ( STDMETHODCALLTYPE *GetReplyFileName )( + __RPC__in IBackgroundCopyJob5 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pReplyFileName); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, SetCredentials) + HRESULT ( STDMETHODCALLTYPE *SetCredentials )( + __RPC__in IBackgroundCopyJob5 * This, + __RPC__in BG_AUTH_CREDENTIALS *credentials); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob2, RemoveCredentials) + HRESULT ( STDMETHODCALLTYPE *RemoveCredentials )( + __RPC__in IBackgroundCopyJob5 * This, + BG_AUTH_TARGET Target, + BG_AUTH_SCHEME Scheme); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, ReplaceRemotePrefix) + HRESULT ( STDMETHODCALLTYPE *ReplaceRemotePrefix )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ __RPC__in LPCWSTR OldPrefix, + /* [in] */ __RPC__in LPCWSTR NewPrefix); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, AddFileWithRanges) + HRESULT ( STDMETHODCALLTYPE *AddFileWithRanges )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ __RPC__in LPCWSTR RemoteUrl, + /* [in] */ __RPC__in LPCWSTR LocalName, + /* [in] */ DWORD RangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) BG_FILE_RANGE Ranges[ ]); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, SetFileACLFlags) + HRESULT ( STDMETHODCALLTYPE *SetFileACLFlags )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ DWORD Flags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob3, GetFileACLFlags) + HRESULT ( STDMETHODCALLTYPE *GetFileACLFlags )( + __RPC__in IBackgroundCopyJob5 * This, + /* [ref][out] */ __RPC__out DWORD *Flags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, SetPeerCachingFlags) + HRESULT ( STDMETHODCALLTYPE *SetPeerCachingFlags )( + __RPC__in IBackgroundCopyJob5 * This, + DWORD Flags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, GetPeerCachingFlags) + HRESULT ( STDMETHODCALLTYPE *GetPeerCachingFlags )( + __RPC__in IBackgroundCopyJob5 * This, + /* [ref][out] */ __RPC__out DWORD *pFlags); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, GetOwnerIntegrityLevel) + HRESULT ( STDMETHODCALLTYPE *GetOwnerIntegrityLevel )( + __RPC__in IBackgroundCopyJob5 * This, + /* [ref][out] */ __RPC__out ULONG *pLevel); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, GetOwnerElevationState) + HRESULT ( STDMETHODCALLTYPE *GetOwnerElevationState )( + __RPC__in IBackgroundCopyJob5 * This, + /* [ref][out] */ __RPC__out BOOL *pElevated); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, SetMaximumDownloadTime) + HRESULT ( STDMETHODCALLTYPE *SetMaximumDownloadTime )( + __RPC__in IBackgroundCopyJob5 * This, + ULONG Timeout); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob4, GetMaximumDownloadTime) + HRESULT ( STDMETHODCALLTYPE *GetMaximumDownloadTime )( + __RPC__in IBackgroundCopyJob5 * This, + /* [ref][out] */ __RPC__out ULONG *pTimeout); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob5, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ BITS_JOB_PROPERTY_ID PropertyId, + /* [switch_is][in] */ BITS_JOB_PROPERTY_VALUE PropertyValue); + + DECLSPEC_XFGVIRT(IBackgroundCopyJob5, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IBackgroundCopyJob5 * This, + /* [in] */ BITS_JOB_PROPERTY_ID PropertyId, + /* [switch_is][out] */ __RPC__out BITS_JOB_PROPERTY_VALUE *PropertyValue); + + END_INTERFACE + } IBackgroundCopyJob5Vtbl; + + interface IBackgroundCopyJob5 + { + CONST_VTBL struct IBackgroundCopyJob5Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyJob5_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyJob5_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyJob5_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyJob5_AddFileSet(This,cFileCount,pFileSet) \ + ( (This)->lpVtbl -> AddFileSet(This,cFileCount,pFileSet) ) + +#define IBackgroundCopyJob5_AddFile(This,RemoteUrl,LocalName) \ + ( (This)->lpVtbl -> AddFile(This,RemoteUrl,LocalName) ) + +#define IBackgroundCopyJob5_EnumFiles(This,pEnum) \ + ( (This)->lpVtbl -> EnumFiles(This,pEnum) ) + +#define IBackgroundCopyJob5_Suspend(This) \ + ( (This)->lpVtbl -> Suspend(This) ) + +#define IBackgroundCopyJob5_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#define IBackgroundCopyJob5_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IBackgroundCopyJob5_Complete(This) \ + ( (This)->lpVtbl -> Complete(This) ) + +#define IBackgroundCopyJob5_GetId(This,pVal) \ + ( (This)->lpVtbl -> GetId(This,pVal) ) + +#define IBackgroundCopyJob5_GetType(This,pVal) \ + ( (This)->lpVtbl -> GetType(This,pVal) ) + +#define IBackgroundCopyJob5_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + +#define IBackgroundCopyJob5_GetTimes(This,pVal) \ + ( (This)->lpVtbl -> GetTimes(This,pVal) ) + +#define IBackgroundCopyJob5_GetState(This,pVal) \ + ( (This)->lpVtbl -> GetState(This,pVal) ) + +#define IBackgroundCopyJob5_GetError(This,ppError) \ + ( (This)->lpVtbl -> GetError(This,ppError) ) + +#define IBackgroundCopyJob5_GetOwner(This,pVal) \ + ( (This)->lpVtbl -> GetOwner(This,pVal) ) + +#define IBackgroundCopyJob5_SetDisplayName(This,Val) \ + ( (This)->lpVtbl -> SetDisplayName(This,Val) ) + +#define IBackgroundCopyJob5_GetDisplayName(This,pVal) \ + ( (This)->lpVtbl -> GetDisplayName(This,pVal) ) + +#define IBackgroundCopyJob5_SetDescription(This,Val) \ + ( (This)->lpVtbl -> SetDescription(This,Val) ) + +#define IBackgroundCopyJob5_GetDescription(This,pVal) \ + ( (This)->lpVtbl -> GetDescription(This,pVal) ) + +#define IBackgroundCopyJob5_SetPriority(This,Val) \ + ( (This)->lpVtbl -> SetPriority(This,Val) ) + +#define IBackgroundCopyJob5_GetPriority(This,pVal) \ + ( (This)->lpVtbl -> GetPriority(This,pVal) ) + +#define IBackgroundCopyJob5_SetNotifyFlags(This,Val) \ + ( (This)->lpVtbl -> SetNotifyFlags(This,Val) ) + +#define IBackgroundCopyJob5_GetNotifyFlags(This,pVal) \ + ( (This)->lpVtbl -> GetNotifyFlags(This,pVal) ) + +#define IBackgroundCopyJob5_SetNotifyInterface(This,Val) \ + ( (This)->lpVtbl -> SetNotifyInterface(This,Val) ) + +#define IBackgroundCopyJob5_GetNotifyInterface(This,pVal) \ + ( (This)->lpVtbl -> GetNotifyInterface(This,pVal) ) + +#define IBackgroundCopyJob5_SetMinimumRetryDelay(This,Seconds) \ + ( (This)->lpVtbl -> SetMinimumRetryDelay(This,Seconds) ) + +#define IBackgroundCopyJob5_GetMinimumRetryDelay(This,Seconds) \ + ( (This)->lpVtbl -> GetMinimumRetryDelay(This,Seconds) ) + +#define IBackgroundCopyJob5_SetNoProgressTimeout(This,Seconds) \ + ( (This)->lpVtbl -> SetNoProgressTimeout(This,Seconds) ) + +#define IBackgroundCopyJob5_GetNoProgressTimeout(This,Seconds) \ + ( (This)->lpVtbl -> GetNoProgressTimeout(This,Seconds) ) + +#define IBackgroundCopyJob5_GetErrorCount(This,Errors) \ + ( (This)->lpVtbl -> GetErrorCount(This,Errors) ) + +#define IBackgroundCopyJob5_SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) \ + ( (This)->lpVtbl -> SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) ) + +#define IBackgroundCopyJob5_GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) \ + ( (This)->lpVtbl -> GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) ) + +#define IBackgroundCopyJob5_TakeOwnership(This) \ + ( (This)->lpVtbl -> TakeOwnership(This) ) + + +#define IBackgroundCopyJob5_SetNotifyCmdLine(This,Program,Parameters) \ + ( (This)->lpVtbl -> SetNotifyCmdLine(This,Program,Parameters) ) + +#define IBackgroundCopyJob5_GetNotifyCmdLine(This,pProgram,pParameters) \ + ( (This)->lpVtbl -> GetNotifyCmdLine(This,pProgram,pParameters) ) + +#define IBackgroundCopyJob5_GetReplyProgress(This,pProgress) \ + ( (This)->lpVtbl -> GetReplyProgress(This,pProgress) ) + +#define IBackgroundCopyJob5_GetReplyData(This,ppBuffer,pLength) \ + ( (This)->lpVtbl -> GetReplyData(This,ppBuffer,pLength) ) + +#define IBackgroundCopyJob5_SetReplyFileName(This,ReplyFileName) \ + ( (This)->lpVtbl -> SetReplyFileName(This,ReplyFileName) ) + +#define IBackgroundCopyJob5_GetReplyFileName(This,pReplyFileName) \ + ( (This)->lpVtbl -> GetReplyFileName(This,pReplyFileName) ) + +#define IBackgroundCopyJob5_SetCredentials(This,credentials) \ + ( (This)->lpVtbl -> SetCredentials(This,credentials) ) + +#define IBackgroundCopyJob5_RemoveCredentials(This,Target,Scheme) \ + ( (This)->lpVtbl -> RemoveCredentials(This,Target,Scheme) ) + + +#define IBackgroundCopyJob5_ReplaceRemotePrefix(This,OldPrefix,NewPrefix) \ + ( (This)->lpVtbl -> ReplaceRemotePrefix(This,OldPrefix,NewPrefix) ) + +#define IBackgroundCopyJob5_AddFileWithRanges(This,RemoteUrl,LocalName,RangeCount,Ranges) \ + ( (This)->lpVtbl -> AddFileWithRanges(This,RemoteUrl,LocalName,RangeCount,Ranges) ) + +#define IBackgroundCopyJob5_SetFileACLFlags(This,Flags) \ + ( (This)->lpVtbl -> SetFileACLFlags(This,Flags) ) + +#define IBackgroundCopyJob5_GetFileACLFlags(This,Flags) \ + ( (This)->lpVtbl -> GetFileACLFlags(This,Flags) ) + + +#define IBackgroundCopyJob5_SetPeerCachingFlags(This,Flags) \ + ( (This)->lpVtbl -> SetPeerCachingFlags(This,Flags) ) + +#define IBackgroundCopyJob5_GetPeerCachingFlags(This,pFlags) \ + ( (This)->lpVtbl -> GetPeerCachingFlags(This,pFlags) ) + +#define IBackgroundCopyJob5_GetOwnerIntegrityLevel(This,pLevel) \ + ( (This)->lpVtbl -> GetOwnerIntegrityLevel(This,pLevel) ) + +#define IBackgroundCopyJob5_GetOwnerElevationState(This,pElevated) \ + ( (This)->lpVtbl -> GetOwnerElevationState(This,pElevated) ) + +#define IBackgroundCopyJob5_SetMaximumDownloadTime(This,Timeout) \ + ( (This)->lpVtbl -> SetMaximumDownloadTime(This,Timeout) ) + +#define IBackgroundCopyJob5_GetMaximumDownloadTime(This,pTimeout) \ + ( (This)->lpVtbl -> GetMaximumDownloadTime(This,pTimeout) ) + + +#define IBackgroundCopyJob5_SetProperty(This,PropertyId,PropertyValue) \ + ( (This)->lpVtbl -> SetProperty(This,PropertyId,PropertyValue) ) + +#define IBackgroundCopyJob5_GetProperty(This,PropertyId,PropertyValue) \ + ( (This)->lpVtbl -> GetProperty(This,PropertyId,PropertyValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyJob5_INTERFACE_DEFINED__ */ + + +#ifndef __IBackgroundCopyFile5_INTERFACE_DEFINED__ +#define __IBackgroundCopyFile5_INTERFACE_DEFINED__ + +/* interface IBackgroundCopyFile5 */ +/* [object][helpstring][uuid] */ + + +EXTERN_C const IID IID_IBackgroundCopyFile5; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("85C1657F-DAFC-40E8-8834-DF18EA25717E") + IBackgroundCopyFile5 : public IBackgroundCopyFile4 + { + public: + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ BITS_FILE_PROPERTY_ID PropertyId, + /* [switch_is][in] */ BITS_FILE_PROPERTY_VALUE PropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ BITS_FILE_PROPERTY_ID PropertyId, + /* [switch_is][out] */ __RPC__out BITS_FILE_PROPERTY_VALUE *PropertyValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBackgroundCopyFile5Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBackgroundCopyFile5 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBackgroundCopyFile5 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBackgroundCopyFile5 * This); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetRemoteName) + HRESULT ( STDMETHODCALLTYPE *GetRemoteName )( + __RPC__in IBackgroundCopyFile5 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetLocalName) + HRESULT ( STDMETHODCALLTYPE *GetLocalName )( + __RPC__in IBackgroundCopyFile5 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IBackgroundCopyFile5 * This, + /* [out] */ __RPC__out BG_FILE_PROGRESS *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile2, GetFileRanges) + HRESULT ( STDMETHODCALLTYPE *GetFileRanges )( + __RPC__in IBackgroundCopyFile5 * This, + /* [unique][out][in] */ __RPC__inout_opt DWORD *RangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*RangeCount) BG_FILE_RANGE **Ranges); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile2, SetRemoteName) + HRESULT ( STDMETHODCALLTYPE *SetRemoteName )( + __RPC__in IBackgroundCopyFile5 * This, + __RPC__in LPCWSTR Val); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, GetTemporaryName) + HRESULT ( STDMETHODCALLTYPE *GetTemporaryName )( + __RPC__in IBackgroundCopyFile5 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pFilename); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, SetValidationState) + HRESULT ( STDMETHODCALLTYPE *SetValidationState )( + __RPC__in IBackgroundCopyFile5 * This, + /* [in] */ BOOL state); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, GetValidationState) + HRESULT ( STDMETHODCALLTYPE *GetValidationState )( + __RPC__in IBackgroundCopyFile5 * This, + /* [out] */ __RPC__out BOOL *pState); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile3, IsDownloadedFromPeer) + HRESULT ( STDMETHODCALLTYPE *IsDownloadedFromPeer )( + __RPC__in IBackgroundCopyFile5 * This, + /* [out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile4, GetPeerDownloadStats) + HRESULT ( STDMETHODCALLTYPE *GetPeerDownloadStats )( + __RPC__in IBackgroundCopyFile5 * This, + /* [out] */ __RPC__out PUINT64 pFromOrigin, + /* [out] */ __RPC__out PUINT64 pFromPeers); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile5, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IBackgroundCopyFile5 * This, + /* [in] */ BITS_FILE_PROPERTY_ID PropertyId, + /* [switch_is][in] */ BITS_FILE_PROPERTY_VALUE PropertyValue); + + DECLSPEC_XFGVIRT(IBackgroundCopyFile5, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IBackgroundCopyFile5 * This, + /* [in] */ BITS_FILE_PROPERTY_ID PropertyId, + /* [switch_is][out] */ __RPC__out BITS_FILE_PROPERTY_VALUE *PropertyValue); + + END_INTERFACE + } IBackgroundCopyFile5Vtbl; + + interface IBackgroundCopyFile5 + { + CONST_VTBL struct IBackgroundCopyFile5Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBackgroundCopyFile5_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBackgroundCopyFile5_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBackgroundCopyFile5_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBackgroundCopyFile5_GetRemoteName(This,pVal) \ + ( (This)->lpVtbl -> GetRemoteName(This,pVal) ) + +#define IBackgroundCopyFile5_GetLocalName(This,pVal) \ + ( (This)->lpVtbl -> GetLocalName(This,pVal) ) + +#define IBackgroundCopyFile5_GetProgress(This,pVal) \ + ( (This)->lpVtbl -> GetProgress(This,pVal) ) + + +#define IBackgroundCopyFile5_GetFileRanges(This,RangeCount,Ranges) \ + ( (This)->lpVtbl -> GetFileRanges(This,RangeCount,Ranges) ) + +#define IBackgroundCopyFile5_SetRemoteName(This,Val) \ + ( (This)->lpVtbl -> SetRemoteName(This,Val) ) + + +#define IBackgroundCopyFile5_GetTemporaryName(This,pFilename) \ + ( (This)->lpVtbl -> GetTemporaryName(This,pFilename) ) + +#define IBackgroundCopyFile5_SetValidationState(This,state) \ + ( (This)->lpVtbl -> SetValidationState(This,state) ) + +#define IBackgroundCopyFile5_GetValidationState(This,pState) \ + ( (This)->lpVtbl -> GetValidationState(This,pState) ) + +#define IBackgroundCopyFile5_IsDownloadedFromPeer(This,pVal) \ + ( (This)->lpVtbl -> IsDownloadedFromPeer(This,pVal) ) + + +#define IBackgroundCopyFile5_GetPeerDownloadStats(This,pFromOrigin,pFromPeers) \ + ( (This)->lpVtbl -> GetPeerDownloadStats(This,pFromOrigin,pFromPeers) ) + + +#define IBackgroundCopyFile5_SetProperty(This,PropertyId,PropertyValue) \ + ( (This)->lpVtbl -> SetProperty(This,PropertyId,PropertyValue) ) + +#define IBackgroundCopyFile5_GetProperty(This,PropertyId,PropertyValue) \ + ( (This)->lpVtbl -> GetProperty(This,PropertyId,PropertyValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBackgroundCopyFile5_INTERFACE_DEFINED__ */ + + + +#ifndef __BackgroundCopyManager5_0_LIBRARY_DEFINED__ +#define __BackgroundCopyManager5_0_LIBRARY_DEFINED__ + +/* library BackgroundCopyManager5_0 */ +/* [version][lcid][helpstring][uuid] */ + + + + + + + + + + + + +EXTERN_C const IID LIBID_BackgroundCopyManager5_0; + +EXTERN_C const CLSID CLSID_BackgroundCopyManager5_0; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1ECCA34C-E88A-44E3-8D6A-8921BDE9E452") +BackgroundCopyManager5_0; +#endif +#endif /* __BackgroundCopyManager5_0_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bits5_0_0000_0003 */ +/* [local] */ + +#include "bits10_1.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bits5_0_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bits5_0_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits5_0.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits5_0.idl new file mode 100644 index 0000000000000000000000000000000000000000..0800b58728efa1efcd2ec45417355a2238618c1a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bits5_0.idl @@ -0,0 +1,238 @@ + +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module name: + + bits5_0.idl + +Abstract: + + Contains interfaces, types, and macros for Background Intelligent Transfer Service. +--*/ + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "bits.idl"; +import "bits1_5.idl"; +import "bits2_0.idl"; +import "bits2_5.idl"; +import "bits3_0.idl"; +import "bits4_0.idl"; + + +// OR'able Cost Flags constants +cpp_quote("#define BITS_COST_STATE_UNRESTRICTED 0x1") +cpp_quote("#define BITS_COST_STATE_CAPPED_USAGE_UNKNOWN 0x2") +cpp_quote("#define BITS_COST_STATE_BELOW_CAP 0x4") +cpp_quote("#define BITS_COST_STATE_NEAR_CAP 0x8") +cpp_quote("#define BITS_COST_STATE_OVERCAP_CHARGED 0x10") +cpp_quote("#define BITS_COST_STATE_OVERCAP_THROTTLED 0x20") +cpp_quote("#define BITS_COST_STATE_USAGE_BASED 0x40") +cpp_quote("#define BITS_COST_STATE_ROAMING 0x80") +cpp_quote("#define BITS_COST_OPTION_IGNORE_CONGESTION 0x80000000") + +// placeholder - for internal use +cpp_quote("#define BITS_COST_STATE_RESERVED 0x40000000") + + +cpp_quote("#define BITS_COST_STATE_TRANSFER_NOT_ROAMING (BITS_COST_OPTION_IGNORE_CONGESTION|BITS_COST_STATE_USAGE_BASED|BITS_COST_STATE_OVERCAP_THROTTLED|BITS_COST_STATE_OVERCAP_CHARGED|BITS_COST_STATE_NEAR_CAP|BITS_COST_STATE_BELOW_CAP|BITS_COST_STATE_CAPPED_USAGE_UNKNOWN|BITS_COST_STATE_UNRESTRICTED)") +cpp_quote("#define BITS_COST_STATE_TRANSFER_NO_SURCHARGE (BITS_COST_OPTION_IGNORE_CONGESTION|BITS_COST_STATE_USAGE_BASED|BITS_COST_STATE_OVERCAP_THROTTLED|BITS_COST_STATE_NEAR_CAP|BITS_COST_STATE_BELOW_CAP|BITS_COST_STATE_CAPPED_USAGE_UNKNOWN|BITS_COST_STATE_UNRESTRICTED)") +cpp_quote("#define BITS_COST_STATE_TRANSFER_STANDARD (BITS_COST_OPTION_IGNORE_CONGESTION|BITS_COST_STATE_USAGE_BASED|BITS_COST_STATE_OVERCAP_THROTTLED|BITS_COST_STATE_BELOW_CAP|BITS_COST_STATE_CAPPED_USAGE_UNKNOWN|BITS_COST_STATE_UNRESTRICTED)") +cpp_quote("#define BITS_COST_STATE_TRANSFER_UNRESTRICTED (BITS_COST_OPTION_IGNORE_CONGESTION|BITS_COST_STATE_OVERCAP_THROTTLED|BITS_COST_STATE_UNRESTRICTED)") +cpp_quote("#define BITS_COST_STATE_TRANSFER_ALWAYS (BITS_COST_OPTION_IGNORE_CONGESTION|BITS_COST_STATE_ROAMING|BITS_COST_STATE_USAGE_BASED|BITS_COST_STATE_OVERCAP_THROTTLED|BITS_COST_STATE_OVERCAP_CHARGED|BITS_COST_STATE_NEAR_CAP|BITS_COST_STATE_BELOW_CAP|BITS_COST_STATE_CAPPED_USAGE_UNKNOWN|BITS_COST_STATE_UNRESTRICTED)") + +typedef enum BITS_JOB_TRANSFER_POLICY +{ + BITS_JOB_TRANSFER_POLICY_ALWAYS = 0x800000FF, // BITS_COST_STATE_TRANSFER_ALWAYS + BITS_JOB_TRANSFER_POLICY_NOT_ROAMING = 0x8000007F, // BITS_COST_STATE_TRANSFER_NOT_ROAMING + BITS_JOB_TRANSFER_POLICY_NO_SURCHARGE = 0x8000006F, // BITS_COST_STATE_TRANSFER_NO_SURCHARGE + BITS_JOB_TRANSFER_POLICY_STANDARD = 0x80000067, // BITS_COST_STATE_TRANSFER_STANDARD + BITS_JOB_TRANSFER_POLICY_UNRESTRICTED = 0x80000021, // BITS_COST_STATE_TRANSFER_UNRESTRICTED +} +BITS_JOB_TRANSFER_POLICY; + + +// Enum values that define ID values corresponding to BITS properties +typedef enum BITS_JOB_PROPERTY_ID +{ + // ID for the 'CostFlags' property (read-write) used to control transfer behavior over cellular and similar networks + BITS_JOB_PROPERTY_ID_COST_FLAGS = 1, + + // ID for the CLSID notification for BITS (read-write). + BITS_JOB_PROPERTY_NOTIFICATION_CLSID = 2, + + // ID for marking the BITS job adaptive to dynamic contents. + BITS_JOB_PROPERTY_DYNAMIC_CONTENT = 3, + + // ID for marking the BITS job as optimized download. + BITS_JOB_PROPERTY_HIGH_PERFORMANCE = 4, + + // ID for marking the BITS job as optimized download. + BITS_JOB_PROPERTY_MAX_DOWNLOAD_SIZE = 5, + + // ID for marking the BITS job to use stored or automatic credentials. + BITS_JOB_PROPERTY_USE_STORED_CREDENTIALS = 7, + + // ID for setting the minimum notification interval for job modifications (in milliseconds). + BITS_JOB_PROPERTY_MINIMUM_NOTIFICATION_INTERVAL_MS = 9, + + // ID for configuring the BITS job to transfer data only when the application explicitly asks for it. + BITS_JOB_PROPERTY_ON_DEMAND_MODE = 10, +} +BITS_JOB_PROPERTY_ID; + + +typedef [switch_type(BITS_JOB_PROPERTY_ID)] union +{ + [case( BITS_JOB_PROPERTY_ID_COST_FLAGS, 6, 8, BITS_JOB_PROPERTY_MINIMUM_NOTIFICATION_INTERVAL_MS )] + DWORD Dword; + + [case( BITS_JOB_PROPERTY_NOTIFICATION_CLSID )] + GUID ClsID; + + [case( BITS_JOB_PROPERTY_DYNAMIC_CONTENT, BITS_JOB_PROPERTY_HIGH_PERFORMANCE, BITS_JOB_PROPERTY_ON_DEMAND_MODE )] + BOOL Enable; + + [case( BITS_JOB_PROPERTY_MAX_DOWNLOAD_SIZE )] + UINT64 Uint64; + + [case( BITS_JOB_PROPERTY_USE_STORED_CREDENTIALS )] + BG_AUTH_TARGET Target; +} +BITS_JOB_PROPERTY_VALUE; + + +// Enum values that define ID values corresponding to BackgroundCopyFile properties +typedef enum BITS_FILE_PROPERTY_ID +{ + // ID for the 'HttpResponseHeaders' property (read-write) used for CDN identification. + BITS_FILE_PROPERTY_ID_HTTP_RESPONSE_HEADERS = 1 +} +BITS_FILE_PROPERTY_ID; + + +typedef [switch_type(BITS_FILE_PROPERTY_ID)] union +{ + [case( BITS_FILE_PROPERTY_ID_HTTP_RESPONSE_HEADERS )] + LPWSTR String; +} +BITS_FILE_PROPERTY_VALUE; + + +// ------------------ New extended BITS API ------------------ + +[ + uuid(E847030C-BBBA-4657-AF6D-484AA42BF1FE), + helpstring("IBackgroundCopyJob5 interface"), + odl +] +interface IBackgroundCopyJob5 : IBackgroundCopyJob4 +{ + + /** + * Generic job property setter method. + * + * The caller specifies the property that they want to set and its value. + * This provides looser coupling between new job properties in the future + * and the need to create new 'extension' interfaces to provide explicit + * setters and getters for these properties. + */ + HRESULT SetProperty( + [in] BITS_JOB_PROPERTY_ID PropertyId, + [in, switch_is(PropertyId)] BITS_JOB_PROPERTY_VALUE PropertyValue + ); + + + /** + * Generic job property getter method. + * + * The caller specifies the property that they want to obtain the value of. + * This provides looser coupling between new job properties in the future + * and the need to create new 'extension' interfaces to provide explicit + * setters and getters for these properties. + */ + HRESULT GetProperty( + [in] BITS_JOB_PROPERTY_ID PropertyId, + [out, switch_is(PropertyId)] BITS_JOB_PROPERTY_VALUE *PropertyValue + ); + +} + + +[ + uuid(85C1657F-DAFC-40E8-8834-DF18EA25717E), + helpstring("IBackgroundCopyFile5 interface"), + odl +] +interface IBackgroundCopyFile5 : IBackgroundCopyFile4 +{ + + /** + * Generic file property setter method. + * + * The caller specifies the file property that they want to set and its value. + * This provides looser coupling between new file properties in the future + * and the need to create new 'extension' interfaces to provide explicit + * setters and getters for these properties. + */ + HRESULT SetProperty( + [in] BITS_FILE_PROPERTY_ID PropertyId, + [in, switch_is(PropertyId)] BITS_FILE_PROPERTY_VALUE PropertyValue + ); + + + /** + * Generic file property getter method. + * + * The caller specifies the property that they want to obtain the value of. + * This provides looser coupling between new file properties in the future + * and the need to create new 'extension' interfaces to provide explicit + * setters and getters for these properties. + */ + HRESULT GetProperty( + [in] BITS_FILE_PROPERTY_ID PropertyId, + [out, switch_is(PropertyId)] BITS_FILE_PROPERTY_VALUE *PropertyValue + ); + +} + + +[ + uuid(D548BC1B-6C12-432E-B176-A96E10681A31), + helpstring("Microsoft Background Copy Manager 5.0"), + lcid(0x0000), + version(1.0) +] +library BackgroundCopyManager5_0 +{ + [ + uuid(1ECCA34C-E88A-44E3-8D6A-8921BDE9E452), + helpstring("Background copy manager 5.0") + ] + coclass BackgroundCopyManager5_0 + { + [default] interface IBackgroundCopyManager; + }; + interface IBackgroundCopyCallback2; + interface IBackgroundCopyFile5; + interface IBackgroundCopyJob5; + interface IBackgroundCopyJobHttpOptions; + interface IBitsPeer; + interface IBitsPeerCacheAdministration; + interface IBitsPeerCacheRecord; + interface IBitsTokenOptions; + interface IEnumBitsPeerCacheRecords; + interface IEnumBitsPeers; +} + +// Intentionally skipping bits10_0.h (which is internal only) +cpp_quote("#include \"bits10_1.h\"") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bitscfg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bitscfg.h new file mode 100644 index 0000000000000000000000000000000000000000..754d0227218addae1489c2c8ab4cb0d4c6debb12 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bitscfg.h @@ -0,0 +1,455 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __bitscfg_h__ +#define __bitscfg_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBITSExtensionSetup_FWD_DEFINED__ +#define __IBITSExtensionSetup_FWD_DEFINED__ +typedef interface IBITSExtensionSetup IBITSExtensionSetup; + +#endif /* __IBITSExtensionSetup_FWD_DEFINED__ */ + + +#ifndef __IBITSExtensionSetupFactory_FWD_DEFINED__ +#define __IBITSExtensionSetupFactory_FWD_DEFINED__ +typedef interface IBITSExtensionSetupFactory IBITSExtensionSetupFactory; + +#endif /* __IBITSExtensionSetupFactory_FWD_DEFINED__ */ + + +#ifndef __BITSExtensionSetupFactory_FWD_DEFINED__ +#define __BITSExtensionSetupFactory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BITSExtensionSetupFactory BITSExtensionSetupFactory; +#else +typedef struct BITSExtensionSetupFactory BITSExtensionSetupFactory; +#endif /* __cplusplus */ + +#endif /* __BITSExtensionSetupFactory_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "mstask.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_bitscfg_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_bitscfg_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bitscfg_0000_0000_v0_0_s_ifspec; + +#ifndef __IBITSExtensionSetup_INTERFACE_DEFINED__ +#define __IBITSExtensionSetup_INTERFACE_DEFINED__ + +/* interface IBITSExtensionSetup */ +/* [object][dual][uuid] */ + + +EXTERN_C const IID IID_IBITSExtensionSetup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("29cfbbf7-09e4-4b97-b0bc-f2287e3d8eb3") + IBITSExtensionSetup : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE EnableBITSUploads( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE DisableBITSUploads( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetCleanupTaskName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pTaskName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetCleanupTask( + /* [in] */ __RPC__in REFIID riid, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBITSExtensionSetupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBITSExtensionSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBITSExtensionSetup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBITSExtensionSetup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBITSExtensionSetup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBITSExtensionSetup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBITSExtensionSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBITSExtensionSetup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBITSExtensionSetup, EnableBITSUploads) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableBITSUploads )( + __RPC__in IBITSExtensionSetup * This); + + DECLSPEC_XFGVIRT(IBITSExtensionSetup, DisableBITSUploads) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DisableBITSUploads )( + __RPC__in IBITSExtensionSetup * This); + + DECLSPEC_XFGVIRT(IBITSExtensionSetup, GetCleanupTaskName) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetCleanupTaskName )( + __RPC__in IBITSExtensionSetup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pTaskName); + + DECLSPEC_XFGVIRT(IBITSExtensionSetup, GetCleanupTask) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetCleanupTask )( + __RPC__in IBITSExtensionSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + END_INTERFACE + } IBITSExtensionSetupVtbl; + + interface IBITSExtensionSetup + { + CONST_VTBL struct IBITSExtensionSetupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBITSExtensionSetup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBITSExtensionSetup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBITSExtensionSetup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBITSExtensionSetup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBITSExtensionSetup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBITSExtensionSetup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBITSExtensionSetup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBITSExtensionSetup_EnableBITSUploads(This) \ + ( (This)->lpVtbl -> EnableBITSUploads(This) ) + +#define IBITSExtensionSetup_DisableBITSUploads(This) \ + ( (This)->lpVtbl -> DisableBITSUploads(This) ) + +#define IBITSExtensionSetup_GetCleanupTaskName(This,pTaskName) \ + ( (This)->lpVtbl -> GetCleanupTaskName(This,pTaskName) ) + +#define IBITSExtensionSetup_GetCleanupTask(This,riid,ppUnk) \ + ( (This)->lpVtbl -> GetCleanupTask(This,riid,ppUnk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBITSExtensionSetup_INTERFACE_DEFINED__ */ + + +#ifndef __IBITSExtensionSetupFactory_INTERFACE_DEFINED__ +#define __IBITSExtensionSetupFactory_INTERFACE_DEFINED__ + +/* interface IBITSExtensionSetupFactory */ +/* [object][dual][uuid] */ + + +EXTERN_C const IID IID_IBITSExtensionSetupFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d5d2d542-5503-4e64-8b48-72ef91a32ee1") + IBITSExtensionSetupFactory : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetObject( + /* [in] */ __RPC__in BSTR Path, + /* [retval][out] */ __RPC__deref_out_opt IBITSExtensionSetup **ppExtensionSetup) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBITSExtensionSetupFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBITSExtensionSetupFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBITSExtensionSetupFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBITSExtensionSetupFactory * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBITSExtensionSetupFactory * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBITSExtensionSetupFactory * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBITSExtensionSetupFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBITSExtensionSetupFactory * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBITSExtensionSetupFactory, GetObject) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetObject )( + __RPC__in IBITSExtensionSetupFactory * This, + /* [in] */ __RPC__in BSTR Path, + /* [retval][out] */ __RPC__deref_out_opt IBITSExtensionSetup **ppExtensionSetup); + + END_INTERFACE + } IBITSExtensionSetupFactoryVtbl; + + interface IBITSExtensionSetupFactory + { + CONST_VTBL struct IBITSExtensionSetupFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBITSExtensionSetupFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBITSExtensionSetupFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBITSExtensionSetupFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBITSExtensionSetupFactory_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBITSExtensionSetupFactory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBITSExtensionSetupFactory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBITSExtensionSetupFactory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBITSExtensionSetupFactory_GetObject(This,Path,ppExtensionSetup) \ + ( (This)->lpVtbl -> GetObject(This,Path,ppExtensionSetup) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBITSExtensionSetupFactory_INTERFACE_DEFINED__ */ + + + +#ifndef __BITSExtensionSetup_LIBRARY_DEFINED__ +#define __BITSExtensionSetup_LIBRARY_DEFINED__ + +/* library BITSExtensionSetup */ +/* [version][helpstring][uuid] */ + + +EXTERN_C const IID LIBID_BITSExtensionSetup; + +EXTERN_C const CLSID CLSID_BITSExtensionSetupFactory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("efbbab68-7286-4783-94bf-9461d8b7e7e9") +BITSExtensionSetupFactory; +#endif +#endif /* __BITSExtensionSetup_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_bitscfg_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_bitscfg_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_bitscfg_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bitscfg.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bitscfg.idl new file mode 100644 index 0000000000000000000000000000000000000000..93c84264519449ea2c713def3922bda0d04cc1df --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bitscfg.idl @@ -0,0 +1,83 @@ +//======================================================================= +// +// Copyright (c) 2002 Microsoft Corporation. All Rights Reserved. +// +// File: bitscfg.idl +// +// Description: +// +// Interface to the ADSI extension for the BITS IIS server extensions +// +//======================================================================= + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "mstask.idl"; + +// +// ============================= +// Marshalled interfaces +// ============================= +// + +[ + uuid(29cfbbf7-09e4-4b97-b0bc-f2287e3d8eb3), + odl, + dual +] +interface IBITSExtensionSetup : IDispatch +{ + + [id(1)] HRESULT EnableBITSUploads(); + + [id(2)] HRESULT DisableBITSUploads(); + + // Returns the MSTask scheduled task name for this virtual directory + // if one has been created. If one has not been created, NULL is + // returned and the HRESULT is S_FALSE; + [id(3)] HRESULT GetCleanupTaskName( [out,retval] BSTR *pTaskName ); + + // Returns the MSTask scheduled task for this virtual directory + // if one has been created. If one has not been created, NULL is + // returned and the HRESULT is S_FALSE. Set riid to the UUID of + // the task interface required. See ITaskScheduler::Activate for details. + + [id(4)] HRESULT GetCleanupTask( [in] REFIID riid, [out,retval] IUnknown **ppUnk ); +} + +[ + uuid(d5d2d542-5503-4e64-8b48-72ef91a32ee1), + odl, + dual +] +interface IBITSExtensionSetupFactory : IDispatch +{ + + [id(1)] HRESULT GetObject( [ in ] BSTR Path, [out,retval] IBITSExtensionSetup **ppExtensionSetup ); +} + +[ + uuid(B0937B9C-D66D-4d9b-B741-49C6D66A1CD5), + helpstring("Microsoft BITS Server Extensions Setup 1.0"), + version(1.0) +] +library BITSExtensionSetup +{ + [ + uuid(efbbab68-7286-4783-94bf-9461d8b7e7e9), + helpstring("BITS Server Extensions Setup Factory") + ] + coclass BITSExtensionSetupFactory + { + [default] interface IBITSExtensionSetupFactory; + }; +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bluetoothapis.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bluetoothapis.h new file mode 100644 index 0000000000000000000000000000000000000000..8e828074ecf9dbfcb8459188fc787d0cfe6e8b8e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bluetoothapis.h @@ -0,0 +1,1971 @@ +// +// Copyright 2002 - 2004, Microsoft Corporation +// +////////////////////////////////////////////////////////////////////////////// + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include + + +#define BLUETOOTH_MAX_NAME_SIZE (248) +#define BLUETOOTH_MAX_PASSKEY_SIZE (16) +#define BLUETOOTH_MAX_PASSKEY_BUFFER_SIZE (BLUETOOTH_MAX_PASSKEY_SIZE + 1) +#define BLUETOOTH_MAX_SERVICE_NAME_SIZE (256) +#define BLUETOOTH_DEVICE_NAME_SIZE (256) + + +#ifdef __cplusplus +extern "C" { +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXPSP2) + +// *************************************************************************** +// +// Bluetooth Address +// +// *************************************************************************** + +typedef ULONGLONG BTH_ADDR; + +typedef struct _BLUETOOTH_ADDRESS { + union { + BTH_ADDR ullLong; // easier to compare again BLUETOOTH_NULL_ADDRESS + BYTE rgBytes[ 6 ]; // easier to format when broken out + }; + +} BLUETOOTH_ADDRESS_STRUCT; + +#define BLUETOOTH_ADDRESS BLUETOOTH_ADDRESS_STRUCT + +#define BLUETOOTH_NULL_ADDRESS ( (ULONGLONG) 0x0 ) + + + +typedef struct _BLUETOOTH_LOCAL_SERVICE_INFO { + BOOL Enabled; // If TRUE, the enable the services + + BLUETOOTH_ADDRESS btAddr; // If service is to be advertised for a particular remote device + + WCHAR szName[ BLUETOOTH_MAX_SERVICE_NAME_SIZE ]; // SDP Service Name to be advertised. + WCHAR szDeviceString[ BLUETOOTH_DEVICE_NAME_SIZE ]; // Local device name (if any) like COM4 or LPT1 + +} BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT; + +#define BLUETOOTH_LOCAL_SERVICE_INFO BLUETOOTH_LOCAL_SERVICE_INFO_STRUCT + +typedef BLUETOOTH_LOCAL_SERVICE_INFO * PBLUETOOTH_LOCAL_SERVICE_INFO; + + + + + +// *************************************************************************** +// +// Radio Enumeration +// +// Description: +// This group of APIs enumerates the installed Bluetooth radios. +// +// Sample Usage: +// HANDLE hRadio; +// BLUETOOTH_FIND_RADIO_PARAMS btfrp = { sizeof(btfrp) }; +// +// HBLUETOOTH_RADIO_FIND hFind = BluetoothFindFirstRadio( &btfrp, &hRadio ); +// if ( NULL != hFind ) +// { +// do +// { +// // +// // TODO: Do something with the radio handle. +// // +// +// CloseHandle( hRadio ); +// +// } while( BluetoothFindNextRadio( hFind, &hRadio ) ); +// +// BluetoothFindRadioClose( hFind ); +// } +// +// *************************************************************************** + +typedef struct _BLUETOOTH_FIND_RADIO_PARAMS { + DWORD dwSize; // IN sizeof this structure + +} BLUETOOTH_FIND_RADIO_PARAMS; + +typedef HANDLE HBLUETOOTH_RADIO_FIND; + +// +// Description: +// Begins the enumeration of local Bluetooth radios. +// +// Parameters: +// pbtfrp +// A pointer to a BLUETOOTH_FIND_RADIO_PARAMS structure. The dwSize +// member of this structure must match the sizeof the of the structure. +// +// phRadio +// A pointer where the first radio HANDLE enumerated will be returned. +// +// Return Values: +// NULL +// Error opening radios or no devices found. Use GetLastError() for +// more info. +// +// ERROR_INVALID_PARAMETER +// pbtfrp parameter is NULL. +// +// ERROR_REVISION_MISMATCH +// The pbtfrp structure is not the right length. +// +// ERROR_OUTOFMEMORY +// Out of memory. +// +// other Win32 errors. +// +// any other +// Success. The return handle is valid and phRadio points to a valid handle. +// +_Must_inspect_result_ +_Success_(return != NULL) +HBLUETOOTH_RADIO_FIND +WINAPI +BluetoothFindFirstRadio( + _In_ const BLUETOOTH_FIND_RADIO_PARAMS * pbtfrp, + _Out_ HANDLE * phRadio + ); + +// +// Description: +// Finds the next installed Bluetooth radio. +// +// Parameters: +// hFind +// The handle returned by BluetoothFindFirstRadio(). +// +// phRadio +// A pointer where the next radio HANDLE enumerated will be returned. +// +// Return Values: +// TRUE +// Next device succesfully found. pHandleOut points to valid handle. +// +// FALSE +// No device found. pHandleOut points to an invalid handle. Call +// GetLastError() for more details. +// +// ERROR_INVALID_HANDLE +// The handle is NULL. +// +// ERROR_NO_MORE_ITEMS +// No more radios found. +// +// ERROR_OUTOFMEMORY +// Out of memory. +// +// other Win32 errors +// +_Must_inspect_result_ +_Success_(return) +BOOL +WINAPI +BluetoothFindNextRadio( + _In_ HBLUETOOTH_RADIO_FIND hFind, + _Out_ HANDLE * phRadio + ); + +// +// Description: +// Closes the enumeration handle. +// +// Parameters +// hFind +// The handle returned by BluetoothFindFirstRadio(). +// +// Return Values: +// TRUE +// Handle succesfully closed. +// +// FALSE +// Failure. Check GetLastError() for details. +// +// ERROR_INVALID_HANDLE +// The handle is NULL. +// +BOOL +WINAPI +BluetoothFindRadioClose( + _In_ HBLUETOOTH_RADIO_FIND hFind + ); + +// *************************************************************************** +// +// Radio Information +// +// *************************************************************************** + +typedef struct _BLUETOOTH_RADIO_INFO { + DWORD dwSize; // Size, in bytes, of this entire data structure + + BLUETOOTH_ADDRESS address; // Address of the local radio + + WCHAR szName[ BLUETOOTH_MAX_NAME_SIZE ]; // Name of the local radio + + ULONG ulClassofDevice; // Class of device for the local radio + + USHORT lmpSubversion; // lmpSubversion, manufacturer specifc. + USHORT manufacturer; // Manufacturer of the radio, BTH_MFG_Xxx value. For the most up to date + // list, goto the Bluetooth specification website and get the Bluetooth + // assigned numbers document. +} BLUETOOTH_RADIO_INFO, *PBLUETOOTH_RADIO_INFO; + +// +// Description: +// Retrieves the information about the radio represented by the handle. +// +// Parameters: +// hRadio +// Handle to a local radio retrieved through BluetoothFindFirstRadio() +// et al or SetupDiEnumerateDeviceInterfaces() +// +// pRadioInfo +// Radio information to be filled in. The dwSize member must match the +// size of the structure. +// +// Return Values: +// ERROR_SUCCESS +// The information was retrieved successfully. +// +// ERROR_INVALID_PARAMETER +// pRadioInfo or hRadio is NULL. +// +// ERROR_REVISION_MISMATCH +// pRadioInfo->dwSize is invalid. +// +// other Win32 error codes. +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothGetRadioInfo( + _In_ HANDLE hRadio, + _Inout_ PBLUETOOTH_RADIO_INFO pRadioInfo + ); + +// *************************************************************************** +// +// Device Information Stuctures +// +// *************************************************************************** + +typedef struct _BLUETOOTH_DEVICE_INFO { + _Field_range_(==, sizeof(BLUETOOTH_DEVICE_INFO_STRUCT)) + DWORD dwSize; // size, in bytes, of this structure - must be the sizeof(BLUETOOTH_DEVICE_INFO) + + BLUETOOTH_ADDRESS Address; // Bluetooth address + + ULONG ulClassofDevice; // Bluetooth "Class of Device" + + BOOL fConnected; // Device connected/in use + BOOL fRemembered; // Device remembered + BOOL fAuthenticated; // Device authenticated/paired/bonded + + SYSTEMTIME stLastSeen; // Last time the device was seen + SYSTEMTIME stLastUsed; // Last time the device was used for other than RNR, inquiry, or SDP + + WCHAR szName[ BLUETOOTH_MAX_NAME_SIZE ]; // Name of the device + +} BLUETOOTH_DEVICE_INFO_STRUCT; + +#define BLUETOOTH_DEVICE_INFO BLUETOOTH_DEVICE_INFO_STRUCT + +typedef BLUETOOTH_DEVICE_INFO * PBLUETOOTH_DEVICE_INFO; + +// +// Support added after KB942567 +// +#if (NTDDI_VERSION > NTDDI_VISTASP1 || \ + (NTDDI_VERSION == NTDDI_VISTASP1 && defined(VISTA_KB942567))) + +typedef enum _BLUETOOTH_AUTHENTICATION_METHOD { + BLUETOOTH_AUTHENTICATION_METHOD_LEGACY = 0x1, + BLUETOOTH_AUTHENTICATION_METHOD_OOB, + BLUETOOTH_AUTHENTICATION_METHOD_NUMERIC_COMPARISON, + BLUETOOTH_AUTHENTICATION_METHOD_PASSKEY_NOTIFICATION, + BLUETOOTH_AUTHENTICATION_METHOD_PASSKEY +} BLUETOOTH_AUTHENTICATION_METHOD, * PBLUETOOTH_AUTHENTICATION_METHOD; + +typedef enum _BLUETOOTH_IO_CAPABILITY { + BLUETOOTH_IO_CAPABILITY_DISPLAYONLY = 0x00, + BLUETOOTH_IO_CAPABILITY_DISPLAYYESNO = 0x01, + BLUETOOTH_IO_CAPABILITY_KEYBOARDONLY = 0x02, + BLUETOOTH_IO_CAPABILITY_NOINPUTNOOUTPUT = 0x03, + BLUETOOTH_IO_CAPABILITY_UNDEFINED = 0xff +}BLUETOOTH_IO_CAPABILITY; + +typedef enum _BLUETOOTH_AUTHENTICATION_REQUIREMENTS{ + BLUETOOTH_MITM_ProtectionNotRequired = 0, + BLUETOOTH_MITM_ProtectionRequired = 0x1, + BLUETOOTH_MITM_ProtectionNotRequiredBonding = 0x2, + BLUETOOTH_MITM_ProtectionRequiredBonding = 0x3, + BLUETOOTH_MITM_ProtectionNotRequiredGeneralBonding = 0x4, + BLUETOOTH_MITM_ProtectionRequiredGeneralBonding = 0x5, + BLUETOOTH_MITM_ProtectionNotDefined = 0xff +}BLUETOOTH_AUTHENTICATION_REQUIREMENTS; + + +typedef struct _BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS { + BLUETOOTH_DEVICE_INFO deviceInfo; + BLUETOOTH_AUTHENTICATION_METHOD authenticationMethod; + BLUETOOTH_IO_CAPABILITY ioCapability; + BLUETOOTH_AUTHENTICATION_REQUIREMENTS authenticationRequirements; + + union{ + ULONG Numeric_Value; + ULONG Passkey; + }; +}BLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS, *PBLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS; + +#endif // >= SP1+KB942567 + +// *************************************************************************** +// +// Device Enumeration +// +// Description: +// Enumerates the Bluetooth devices. The types of returned device depends +// on the flags set in the BLUETOOTH_DEVICE_SEARCH_PARAMS (see structure +// definition for details). +// +// Sample Usage: +// HBLUETOOTH_DEVICE_FIND hFind; +// BLUETOOTH_DEVICE_SEARCH_PARAMS btsp = { sizeof(btsp) }; +// BLUETOOTH_DEVICE_INFO btdi = { sizeof(btdi) }; +// +// btsp.fReturnAuthenticated = TRUE; +// btsp.fReturnRemembered = TRUE; +// +// hFind = BluetoothFindFirstDevice( &btsp, &btdi ); +// if ( NULL != hFind ) +// { +// do +// { +// // +// // TODO: Do something useful with the device info. +// // +// +// } while( BluetoothFindNextDevice( hFind, &btdi ) ); +// +// BluetoothFindDeviceClose( hFind ); +// } +// +// *************************************************************************** + +typedef struct _BLUETOOTH_DEVICE_SEARCH_PARAMS { + DWORD dwSize; // IN sizeof this structure + + BOOL fReturnAuthenticated; // IN return authenticated devices + BOOL fReturnRemembered; // IN return remembered devices + BOOL fReturnUnknown; // IN return unknown devices + BOOL fReturnConnected; // IN return connected devices + + BOOL fIssueInquiry; // IN issue a new inquiry + UCHAR cTimeoutMultiplier; // IN timeout for the inquiry + + HANDLE hRadio; // IN handle to radio to enumerate - NULL == all radios will be searched + +} BLUETOOTH_DEVICE_SEARCH_PARAMS; + +typedef HANDLE HBLUETOOTH_DEVICE_FIND; + +// +// Description: +// Begins the enumeration of Bluetooth devices. +// +// Parameters: +// pbtsp +// A pointer to a BLUETOOTH_DEVICE_SEARCH_PARAMS structure. This +// structure contains the flags and inputs used to conduct the search. +// See BLUETOOTH_DEVICE_SEARCH_PARAMS for details. +// +// pbtdi +// A pointer to a BLUETOOTH_DEVICE_INFO structure to return information +// about the first Bluetooth device found. Note that the dwSize member +// of the structure must be the sizeof(BLUETOOTH_DEVICE_INFO) before +// calling because the APIs hast to know the size of the buffer being +// past in. The dwSize member must also match the exact +// sizeof(BLUETOOTH_DEVICE_INFO) or the call will fail. +// +// Return Values: +// NULL +// Error opening radios or not devices found. Use GetLastError for more info. +// +// ERROR_INVALID_PARAMETER +// pbtsp parameter or pbtdi parameter is NULL. +// +// ERROR_REVISION_MISMATCH +// The pbtfrp structure is not the right length. +// +// other Win32 errors +// +// any other value +// Success. The return handle is valid and pbtdi points to valid data. +// +_Must_inspect_result_ +_Success_(return != NULL) +HBLUETOOTH_DEVICE_FIND +WINAPI +BluetoothFindFirstDevice( + _In_ const BLUETOOTH_DEVICE_SEARCH_PARAMS * pbtsp, + _Inout_ BLUETOOTH_DEVICE_INFO * pbtdi + ); + +// +// Description: +// Finds the next Bluetooth device in the enumeration. +// +// Parameters: +// hFind +// The handle returned from BluetoothFindFirstDevice(). +// +// pbtdi +// A pointer to a BLUETOOTH_DEVICE_INFO structure to return information +// about the first Bluetooth device found. Note that the dwSize member +// of the structure must be the sizeof(BLUETOOTH_DEVICE_INFO) before +// calling because the APIs hast to know the size of the buffer being +// past in. The dwSize member must also match the exact +// sizeof(BLUETOOTH_DEVICE_INFO) or the call will fail. +// +// Return Values: +// TRUE +// Next device succesfully found. pHandleOut points to valid handle. +// +// FALSE +// No device found. pHandleOut points to an invalid handle. Call +// GetLastError() for more details. +// +// ERROR_INVALID_HANDLE +// The handle is NULL. +// +// ERROR_NO_MORE_ITEMS +// No more radios found. +// +// ERROR_OUTOFMEMORY +// Out of memory. +// +// other Win32 errors +// +_Must_inspect_result_ +BOOL +WINAPI +BluetoothFindNextDevice( + _In_ HBLUETOOTH_DEVICE_FIND hFind, + _Inout_ BLUETOOTH_DEVICE_INFO * pbtdi + ); + +// +// Description: +// Closes the enumeration handle. +// +// Parameters: +// hFind +// The handle returned from BluetoothFindFirstDevice(). +// +// Return Values: +// TRUE +// Handle succesfully closed. +// +// FALSE +// Failure. Check GetLastError() for details. +// +// ERROR_INVALID_HANDLE +// The handle is NULL. +// +BOOL +WINAPI +BluetoothFindDeviceClose( + _In_ HBLUETOOTH_DEVICE_FIND hFind + ); + +// +// Description: +// Retrieves information about a remote device. +// +// Fill in the dwSize and the Address members of the pbtdi structure +// being passed in. On success, the rest of the members will be filled +// out with the information that the system knows. +// +// Parameters: +// hRadio +// Handle to a local radio retrieved through BluetoothFindFirstRadio() +// et al or SetupDiEnumerateDeviceInterfaces() +// +// pbtdi +// A pointer to a BLUETOOTH_DEVICE_INFO structure to return information +// about the first Bluetooth device found. The dwSize member of the +// structure must be the sizeof the structure in bytes. The Address +// member must be filled out with the Bluetooth address of the remote +// device. +// +// Return Values: +// ERROR_SUCCESS +// Success. Information returned. +// +// ERROR_REVISION_MISMATCH +// The size of the BLUETOOTH_DEVICE_INFO isn't compatible. Check +// the dwSize member of the BLUETOOTH_DEVICE_INFO structure you +// passed in. +// +// ERROR_NOT_FOUND +// The radio is not known by the system or the Address field of +// the BLUETOOTH_DEVICE_INFO structure is all zeros. +// +// ERROR_INVALID_PARAMETER +// pbtdi is NULL. +// +// other error codes +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothGetDeviceInfo( + _In_opt_ HANDLE hRadio, + _Inout_ BLUETOOTH_DEVICE_INFO * pbtdi + ); + +// +// Description: +// Updates the computer local cache about the device. +// +// Parameters: +// pbtdi +// A pointer to the BLUETOOTH_DEVICE_INFO structure to be updated. +// The following members must be valid: +// dwSize +// Must match the size of the structure. +// Address +// Must be a previously found radio address. +// szName +// New name to be stored. +// +// Return Values: +// ERROR_SUCCESS +// The device information was updated successfully. +// +// ERROR_INVALID_PARAMETER +// pbtdi is NULL. +// +// ERROR_REVISION_MISMATCH +// pbtdi->dwSize is invalid. +// +// other Win32 error codes. +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothUpdateDeviceRecord( + _In_ const BLUETOOTH_DEVICE_INFO * pbtdi + ); + +// +// Description: +// Delete the authentication (aka "bond") between the computer and the +// device. Also purges any cached information about the device. +// +// Return Values: +// ERROR_SUCCESS +// The device was removed successfully. +// +// ERROR_NOT_FOUND +// The device was not found. If no Bluetooth radio is installed, +// the devices could not be enumerated or removed. +// +DWORD +WINAPI +BluetoothRemoveDevice( + _In_ const BLUETOOTH_ADDRESS * pAddress + ); + +#if !defined(_ARM_) +// *************************************************************************** +// +// Device Picker Dialog +// +// Description: +// Invokes a common dialog for selecting Bluetooth devices. The list +// of devices displayed to the user is determined by the flags and +// settings the caller specifies in the BLUETOOTH_SELECT_DEVICE_PARAMS +// (see structure definition for more details). +// +// If BluetoothSelectDevices() returns TRUE, the caller must call +// BluetoothSelectDevicesFree() or memory will be leaked within the +// process. +// +// Sample Usage: +// +// BLUETOOTH_SELECT_DEVICE_PARAMS btsdp = { sizeof(btsdp) }; +// +// btsdp.hwndParent = hDlg; +// btsdp.fShowUnknown = TRUE; +// btsdp.fAddNewDeviceWizard = TRUE; +// +// BOOL b = BluetoothSelectDevices( &btsdp ); +// if ( b ) +// { +// BLUETOOTH_DEVICE_INFO * pbtdi = btsdp.pDevices; +// for ( ULONG cDevice = 0; cDevice < btsdp.cNumDevices; cDevice ++ ) +// { +// if ( pbtdi->fAuthenticated || pbtdi->fRemembered ) +// { +// // +// // TODO: Do something usefull with the device info +// // +// } +// +// pbtdi = (BLUETOOTH_DEVICE_INFO *) ((LPBYTE)pbtdi + pbtdi->dwSize); +// } +// +// BluetoothSelectDevicesFree( &btsdp ); +// } +// +// *************************************************************************** + + +typedef struct _BLUETOOTH_COD_PAIRS { + ULONG ulCODMask; // ClassOfDevice mask to compare + LPCWSTR pcszDescription; // Descriptive string of mask + +} BLUETOOTH_COD_PAIRS; + +typedef BOOL (WINAPI *PFN_DEVICE_CALLBACK)(LPVOID pvParam, const BLUETOOTH_DEVICE_INFO * pDevice); + +typedef struct _BLUETOOTH_SELECT_DEVICE_PARAMS { + DWORD dwSize; // IN sizeof this structure + + ULONG cNumOfClasses; // IN Number in prgClassOfDevice - if ZERO search for all devices + BLUETOOTH_COD_PAIRS * prgClassOfDevices; // IN Array of CODs to find. + + LPWSTR pszInfo; // IN If not NULL, sets the "information" text + + HWND hwndParent; // IN parent window - NULL == no parent + + BOOL fForceAuthentication; // IN If TRUE, authenication will be forced before returning + BOOL fShowAuthenticated; // IN If TRUE, authenticated devices will be shown in the picker + BOOL fShowRemembered; // IN If TRUE, remembered devices will be shown in the picker + BOOL fShowUnknown; // IN If TRUE, unknown devices that are not authenticated or "remember" will be shown. + + BOOL fAddNewDeviceWizard; // IN If TRUE, invokes the add new device wizard. + BOOL fSkipServicesPage; // IN If TRUE, skips the "Services" page in the wizard. + + PFN_DEVICE_CALLBACK pfnDeviceCallback; // IN If non-NULL, a callback that will be called for each device. If the + // the callback returns TRUE, the item will be added. If the callback is + // is FALSE, the item will not be shown. + LPVOID pvParam; // IN Parameter to be passed to pfnDeviceCallback as the pvParam. + + DWORD cNumDevices; // IN number calles wants - ZERO == no limit. + // OUT the number of devices returned. + + _Field_size_opt_(cNumDevices) PBLUETOOTH_DEVICE_INFO pDevices; // OUT pointer to an array for BLUETOOTH_DEVICE_INFOs. + // call BluetoothSelectDevicesFree() to free + +} BLUETOOTH_SELECT_DEVICE_PARAMS; + +// +// Description: +// (See header above) +// +// Return Values: +// TRUE +// User selected a device. pbtsdp->pDevices points to valid data. +// Caller should check the fAuthenticated && fRemembered flags to +// determine which devices we successfuly authenticated or valid +// selections by the user. +// +// Use BluetoothSelectDevicesFree() to free the nessecary data +// such as pDevices only if this function returns TRUE. +// +// FALSE +// No valid data returned. Call GetLastError() for possible details +// of the failure. If GLE() is: +// +// ERROR_CANCELLED +// The user cancelled the request. +// +// ERROR_INVALID_PARAMETER +// The pbtsdp is NULL. +// +// ERROR_REVISION_MISMATCH +// The structure passed in as pbtsdp is of an unknown size. +// +// other WIN32 errors +// +_Must_inspect_result_ +BOOL +WINAPI +BluetoothSelectDevices( + _Inout_ BLUETOOTH_SELECT_DEVICE_PARAMS * pbtsdp + ); + +// +// Description: +// This function should only be called if BluetoothSelectDevices() returns +// TRUE. This function will free any memory and resource returned by the +// BluetoothSelectDevices() in the BLUETOOTH_SELECT_DEVICE_PARAMS +// structure. +// +// Return Values: +// TRUE +// Success. +// +// FALSE +// Nothing to free. +// +BOOL +WINAPI +BluetoothSelectDevicesFree( + _Inout_ BLUETOOTH_SELECT_DEVICE_PARAMS * pbtsdp + ); + +#endif //!defined(_ARM_) + +// *************************************************************************** +// +// Device Property Sheet +// +// *************************************************************************** + +// +// Description: +// Invokes the CPLs device info property sheet. +// +// Parameters: +// hwndParent +// HWND to parent the property sheet. +// +// pbtdi +// A pointer to a BLUETOOTH_DEVICE_INFO structure of the device +// to be displayed. +// +// Return Values: +// TRUE +// The property page was successfully displayed. +// +// FALSE +// Failure. The property page was not displayed. Check GetLastError +// for more details. +// +BOOL +WINAPI +BluetoothDisplayDeviceProperties( + _In_opt_ HWND hwndParent, + _Inout_ BLUETOOTH_DEVICE_INFO * pbtdi + ); + + +// *************************************************************************** +// +// Radio Authentication +// +// *************************************************************************** + +// +// Description: +// Sends an authentication request to a remote device. +// +// There are two modes of operation. "Wizard mode" and "Blind mode." +// +// "Wizard mode" is invoked when the pszPasskey is NULL. This will cause +// the "Bluetooth Connection Wizard" to be invoked. The user will be +// prompted to enter a passkey during the wizard after which the +// authentication request will be sent. The user will see the success +// or failure of the authentication attempt. The user will also be +// given the oppurtunity to try to fix a failed authentication. +// +// "Blind mode" is invoked when the pszPasskey is non-NULL. This will +// cause the computer to send a authentication request to the remote +// device. No UI is ever displayed. The Bluetooth status code will be +// mapped to a Win32 Error code. +// +// Parameters: +// +// hwndParent +// The window to parent the authentication wizard. If NULL, the +// wizard will be parented off the desktop. +// +// hRadio +// A valid local radio handle or NULL. If NULL, then all radios will +// be tired. If any of the radios succeed, then the call will +// succeed. +// +// pbtdi +// BLUETOOTH_DEVICE_INFO record of the device to be authenticated. +// +// pszPasskey +// PIN to be used to authenticate the device. If NULL, then UI is +// displayed and the user steps through the authentication process. +// If not NULL, no UI is shown. The passkey is NOT NULL terminated. +// +// ulPasskeyLength +// Length of szPassKey in bytes. The length must be less than or +// equal to BLUETOOTH_MAX_PASSKEY_SIZE * sizeof(WCHAR). +// +// Return Values: +// +// ERROR_SUCCESS +// Success. +// +// ERROR_CANCELLED +// User aborted the operation. +// +// ERROR_INVALID_PARAMETER +// The device structure in pbtdi is invalid. +// +// ERROR_NO_MORE_ITEMS +// The device in pbtdi is already been marked as authenticated. +// +// other WIN32 error +// Failure. Return value is the error code. +// +// For "Blind mode," here is the current mapping of Bluetooth status +// code to Win32 error codes: +// +// { BTH_ERROR_SUCCESS, ERROR_SUCCESS }, +// { BTH_ERROR_NO_CONNECTION, ERROR_DEVICE_NOT_CONNECTED }, +// { BTH_ERROR_PAGE_TIMEOUT, WAIT_TIMEOUT }, +// { BTH_ERROR_HARDWARE_FAILURE, ERROR_GEN_FAILURE }, +// { BTH_ERROR_AUTHENTICATION_FAILURE, ERROR_NOT_AUTHENTICATED }, +// { BTH_ERROR_MEMORY_FULL, ERROR_NOT_ENOUGH_MEMORY }, +// { BTH_ERROR_CONNECTION_TIMEOUT, WAIT_TIMEOUT }, +// { BTH_ERROR_LMP_RESPONSE_TIMEOUT, WAIT_TIMEOUT }, +// { BTH_ERROR_MAX_NUMBER_OF_CONNECTIONS, ERROR_REQ_NOT_ACCEP }, +// { BTH_ERROR_PAIRING_NOT_ALLOWED, ERROR_ACCESS_DENIED }, +// { BTH_ERROR_UNSPECIFIED_ERROR, ERROR_NOT_READY }, +// { BTH_ERROR_LOCAL_HOST_TERMINATED_CONNECTION, ERROR_VC_DISCONNECTED }, +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothAuthenticateDevice( + _In_opt_ HWND hwndParent, + _In_opt_ HANDLE hRadio, + _Inout_ BLUETOOTH_DEVICE_INFO * pbtbi, + _In_reads_opt_(ulPasskeyLength) PWSTR pszPasskey, + _In_ ULONG ulPasskeyLength + ); + + +// +// Support added after KB942567 +// +#if (NTDDI_VERSION > NTDDI_VISTASP1 || \ + (NTDDI_VERSION == NTDDI_VISTASP1 && defined(VISTA_KB942567))) + +// +// Replaces previous API +// +#pragma deprecated("BluetoothAuthenticateDevice") + +// +// Common header for all PIN related structures +// +typedef struct _BLUETOOTH_PIN_INFO { + UCHAR pin[BTH_MAX_PIN_SIZE]; + UCHAR pinLength; +} BLUETOOTH_PIN_INFO, *PBLUETOOTH_PIN_INFO; + +typedef struct _BLUETOOTH_OOB_DATA_INFO { + UCHAR C[16]; + UCHAR R[16]; +}BLUETOOTH_OOB_DATA_INFO, *PBLUETOOTH_OOB_DATA_INFO; + +typedef struct _BLUETOOTH_NUMERIC_COMPARISON_INFO { + ULONG NumericValue; +}BLUETOOTH_NUMERIC_COMPARISON_INFO, *PBLUETOOTH_NUMERIC_COMPARISON_INFO; + +typedef struct _BLUETOOTH_PASSKEY_INFO { + ULONG passkey; +}BLUETOOTH_PASSKEY_INFO, *PBLUETOOTH_PASSKEY_INFO; + +// +// Description: +// Sends an authentication request to a remote device. +// +// There are two modes of operation. "Wizard mode" and "Blind mode." +// +// "Wizard mode" is invoked when the pbtOobData is NULL. This will cause +// the "Bluetooth Connection Wizard" to be invoked. The user will be +// prompted to respond to the device authentication during the wizard +// after which the authentication request will be sent. The user will see the success +// or failure of the authentication attempt. The user will also be +// given the oppurtunity to try to fix a failed authentication. +// +// "Blind mode" is invoked when the pbtOobData is non-NULL. This will +// cause the computer to send a authentication request to the remote +// device. No UI is ever displayed. The Bluetooth status code will be +// mapped to a Win32 Error code. +// +// Parameters: +// +// hwndParent +// The window to parent the authentication wizard. If NULL, the +// wizard will be parented off the desktop. +// +// hRadio +// A valid local radio handle or NULL. If NULL, then all radios will +// be tired. If any of the radios succeed, then the call will +// succeed. +// +// pbtdi +// BLUETOOTH_DEVICE_INFO record of the device to be authenticated. +// +// pbtOobData +// Out of band data to be used to authenticate the device. If NULL, then UI is +// displayed and the user steps through the authentication process. +// If not NULL, no UI is shown. +// +// authenticationRequirement +// The Authentication Requirement of the caller. MITMProtection* +// +// +// Return Values: +// +// ERROR_SUCCESS +// Success. +// +// ERROR_CANCELLED +// User aborted the operation. +// +// ERROR_INVALID_PARAMETER +// The device structure in pbtdi is invalid. +// +// ERROR_NO_MORE_ITEMS +// The device in pbtdi is already been marked as authenticated. +// +// other WIN32 error +// Failure. Return value is the error code. +// +// For "Blind mode," here is the current mapping of Bluetooth status +// code to Win32 error codes: +// +// { BTH_ERROR_SUCCESS, ERROR_SUCCESS }, +// { BTH_ERROR_NO_CONNECTION, ERROR_DEVICE_NOT_CONNECTED }, +// { BTH_ERROR_PAGE_TIMEOUT, WAIT_TIMEOUT }, +// { BTH_ERROR_HARDWARE_FAILURE, ERROR_GEN_FAILURE }, +// { BTH_ERROR_AUTHENTICATION_FAILURE, ERROR_NOT_AUTHENTICATED }, +// { BTH_ERROR_MEMORY_FULL, ERROR_NOT_ENOUGH_MEMORY }, +// { BTH_ERROR_CONNECTION_TIMEOUT, WAIT_TIMEOUT }, +// { BTH_ERROR_LMP_RESPONSE_TIMEOUT, WAIT_TIMEOUT }, +// { BTH_ERROR_MAX_NUMBER_OF_CONNECTIONS, ERROR_REQ_NOT_ACCEP }, +// { BTH_ERROR_PAIRING_NOT_ALLOWED, ERROR_ACCESS_DENIED }, +// { BTH_ERROR_UNSPECIFIED_ERROR, ERROR_NOT_READY }, +// { BTH_ERROR_LOCAL_HOST_TERMINATED_CONNECTION, ERROR_VC_DISCONNECTED }, +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothAuthenticateDeviceEx( + _In_opt_ HWND hwndParentIn + , _In_opt_ HANDLE hRadioIn + , _Inout_ BLUETOOTH_DEVICE_INFO * pbtdiInout + , _In_opt_ PBLUETOOTH_OOB_DATA_INFO pbtOobData + , _In_ AUTHENTICATION_REQUIREMENTS authenticationRequirement + ); + +#endif // >= SP1+KB942567 + +// +// Description: +// Allows the caller to prompt for multiple devices to be authenticated +// within a single instance of the "Bluetooth Connection Wizard." +// +// Parameters: +// +// hwndParent +// The window to parent the authentication wizard. If NULL, the +// wizard will be parented off the desktop. +// +// hRadio +// A valid local radio handle or NULL. If NULL, then all radios will +// be tired. If any of the radios succeed, then the call will +// succeed. +// +// cDevices +// Number of devices in the rgbtdi array. +// +// rgbtdi +// An array BLUETOOTH_DEVICE_INFO records of the devices to be +// authenticated. +// +// Return Values: +// +// ERROR_SUCCESS +// Success. Check the fAuthenticate flag on each of the devices. +// +// ERROR_CANCELLED +// User aborted the operation. Check the fAuthenticate flags on +// each device to determine if any of the devices were authenticated +// before the user cancelled the operation. +// +// ERROR_INVALID_PARAMETER +// One of the items in the array of devices is invalid. +// +// ERROR_NO_MORE_ITEMS +// All the devices in the array of devices are already been marked as +// being authenticated. +// +// other WIN32 error +// Failure. Return value is the error code. +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothAuthenticateMultipleDevices( + _In_opt_ HWND hwndParent, + _In_opt_ HANDLE hRadio, + _In_ DWORD cDevices, + _Inout_updates_(cDevices) BLUETOOTH_DEVICE_INFO * rgbtdi + ); + +// +// Deprecated after Vista SP1 and KB942567 +// +#if (NTDDI_VERSION > NTDDI_VISTASP1 || \ + (NTDDI_VERSION == NTDDI_VISTASP1 && defined(VISTA_KB942567))) + +#pragma deprecated("BluetoothAuthenticateMultipleDevices") + +#endif // >= SP1+KB942567 + + +// *************************************************************************** +// +// Bluetooth Services +// +// *************************************************************************** + +#define BLUETOOTH_SERVICE_DISABLE 0x00 +#define BLUETOOTH_SERVICE_ENABLE 0x01 +#define BLUETOOTH_SERVICE_MASK ( BLUETOOTH_SERVICE_DISABLE | BLUETOOTH_SERVICE_ENABLE ) + +// +// Description: +// Enables/disables the services for a particular device. +// +// The system maintains a mapping of service guids to supported drivers for +// Bluetooth-enabled devices. Enabling a service installs the corresponding +// device driver. Disabling a service removes the corresponding device driver. +// +// If a non-supported service is enabled, a driver will not be installed. +// +// Parameters +// hRadio +// Handle of the local Bluetooth radio device. +// +// pbtdi +// Pointer to a BLUETOOTH_DEVICE_INFO record. +// +// pGuidService +// The service GUID on the remote device. +// +// dwServiceFlags +// Flags to adjust the service. +// BLUETOOTH_SERVICE_DISABLE - disable the service +// BLUETOOTH_SERVICE_ENABLE - enables the service +// +// Return Values: +// ERROR_SUCCESS +// The call was successful. +// +// ERROR_INVALID_PARAMETER +// dwServiceFlags are invalid. +// +// ERROR_SERVICE_DOES_NOT_EXIST +// The GUID in pGuidService is not supported. +// +// other WIN32 error +// The call failed. +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothSetServiceState( + _In_opt_ HANDLE hRadio, + _In_ const BLUETOOTH_DEVICE_INFO * pbtdi, + _In_ const GUID * pGuidService, + _In_ DWORD dwServiceFlags + ); + +// +// Description: +// Enumerates the services guids enabled on a particular device. If hRadio +// is NULL, all device will be searched for the device and all the services +// enabled will be returned. +// +// Parameters: +// hRadio +// Handle of the local Bluetooth radio device. If NULL, it will search +// all the radios for the address in the pbtdi. +// +// pbtdi +// Pointer to a BLUETOOTH_DEVICE_INFO record. +// +// pcService +// On input, the number of records pointed to by pGuidServices. +// On output, the number of valid records return in pGuidServices. +// +// pGuidServices +// Pointer to memory that is at least *pcService in length. +// +// Return Values: +// ERROR_SUCCESS +// The call succeeded. pGuidServices is valid. +// +// ERROR_MORE_DATA +// The call succeeded. pGuidService contains an incomplete list of +// enabled service GUIDs. +// +// other WIN32 errors +// The call failed. +// +_Must_inspect_result_ +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +BluetoothEnumerateInstalledServices( + _In_opt_ HANDLE hRadio, + _In_ const BLUETOOTH_DEVICE_INFO * pbtdi, + _Inout_ DWORD * pcServiceInout, + _Out_writes_to_opt_(*pcServiceInout, *pcServiceInout) GUID * pGuidServices + ); + +// +// Description: +// Change the discovery state of the local radio(s). +// If hRadio is NULL, all the radios will be set. +// +// Use BluetoothIsDiscoverable() to determine the radios current state. +// +// The system ensures that a discoverable system is connectable, thus +// the radio must allow incoming connections (see +// BluetoothEnableIncomingConnections) prior to making a radio +// discoverable. Failure to do so will result in this call failing +// (returns FALSE). +// +// Parameters: +// hRadio +// If not NULL, changes the state of a specific radio. +// If NULL, the API will interate through all the radios. +// +// fEnabled +// If FALSE, discovery will be disabled. +// +// Return Values +// TRUE +// State was successfully changed. If the caller specified NULL for +// hRadio, at least of the radios accepted the state change. +// +// FALSE +// State was not changed. If the caller specified NULL for hRadio, all +// of the radios did not accept the state change. +// +BOOL +WINAPI +BluetoothEnableDiscovery( + _In_opt_ HANDLE hRadio, + _In_ BOOL fEnabled + ); + +// +// Description: +// Determines if the Bluetooth radios are discoverable. If there are +// multiple radios, the first one to say it is discoverable will cause +// this function to return TRUE. +// +// Parameters: +// hRadio +// Handle of the radio to check. If NULL, it will check all local +// radios. +// +// Return Values: +// TRUE +// A least one radio is discoverable. +// +// FALSE +// No radios are discoverable. +// +_Must_inspect_result_ +BOOL +WINAPI +BluetoothIsDiscoverable( + _In_opt_ HANDLE hRadio + ); + +// +// Description: +// Enables/disables the state of a radio to accept incoming connections. +// If hRadio is NULL, all the radios will be set. +// +// Use BluetoothIsConnectable() to determine the radios current state. +// +// The system enforces that a radio that is not connectable is not +// discoverable too. The radio must be made non-discoverable (see +// BluetoothEnableDiscovery) prior to making a radio non-connectionable. +// Failure to do so will result in this call failing (returns FALSE). +// +// Parameters: +// hRadio +// If not NULL, changes the state of a specific radio. +// If NULL, the API will interate through all the radios. +// +// fEnabled +// If FALSE, incoming connection will be disabled. +// +// Return Values +// TRUE +// State was successfully changed. If the caller specified NULL for +// hRadio, at least of the radios accepted the state change. +// +// FALSE +// State was not changed. If the caller specified NULL for hRadio, all +// of the radios did not accept the state change. +// +_Must_inspect_result_ +BOOL +WINAPI +BluetoothEnableIncomingConnections( + _In_opt_ HANDLE hRadio, + _In_ BOOL fEnabled + ); + +// +// Description: +// Determines if the Bluetooth radios are connectable. If there are +// multiple radios, the first one to say it is connectable will cause +// this function to return TRUE. +// +// Parameters: +// hRadio +// Handle of the radio to check. If NULL, it will check all local +// radios. +// +// Return Values: +// TRUE +// A least one radio is allowing incoming connections. +// +// FALSE +// No radios are allowing incoming connections. +// +_Must_inspect_result_ +BOOL +WINAPI +BluetoothIsConnectable( + _In_opt_ HANDLE hRadio + ); + +// *************************************************************************** +// +// Authentication Registration +// +// *************************************************************************** + +typedef HANDLE HBLUETOOTH_AUTHENTICATION_REGISTRATION; + +typedef BOOL (CALLBACK *PFN_AUTHENTICATION_CALLBACK)(LPVOID pvParam, PBLUETOOTH_DEVICE_INFO pDevice); + +// +// Description: +// Registers a callback function to be called when a particular device +// requests authentication. The request is sent to the last application +// that requested authentication for a particular device. +// +// Parameters: +// pbtdi +// A pointer to a BLUETOOTH_DEVICE_INFO structure. The Bluetooth +// address will be used for comparision. +// +// phRegHandle +// A pointer to where the registration HANDLE value will be +// stored. Call BluetoothUnregisterAuthentication() to close +// the handle. +// +// pfnCallback +// The function that will be called when the authentication event +// occurs. This function should match PFN_AUTHENTICATION_CALLBACK's +// prototype. +// +// pvParam +// Optional parameter to be passed through to the callback function. +// This can be anything the application was to define. +// +// Return Values: +// ERROR_SUCCESS +// Success. A valid registration handle was returned. +// +// ERROR_OUTOFMEMORY +// Out of memory. +// +// other Win32 error. +// Failure. The registration handle is invalid. +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothRegisterForAuthentication( + _In_opt_ const BLUETOOTH_DEVICE_INFO * pbtdi, + _Out_ HBLUETOOTH_AUTHENTICATION_REGISTRATION * phRegHandle, + _In_opt_ PFN_AUTHENTICATION_CALLBACK pfnCallback, + _In_opt_ PVOID pvParam + ); + +// +// Support added in KB942567 +// +#if (NTDDI_VERSION > NTDDI_VISTASP1 || \ + (NTDDI_VERSION == NTDDI_VISTASP1 && defined(VISTA_KB942567))) + +// +// Replaces previous API +// +#pragma deprecated("BluetoothRegisterForAuthentication") + +typedef BOOL (CALLBACK *PFN_AUTHENTICATION_CALLBACK_EX)(_In_opt_ LPVOID pvParam, _In_ PBLUETOOTH_AUTHENTICATION_CALLBACK_PARAMS pAuthCallbackParams); + +// +// Description: +// Registers a callback function to be called when a particular device +// requests authentication. The request is sent to the last application +// that requested authentication for a particular device. +// +// Parameters: +// pbtdi +// A pointer to a BLUETOOTH_DEVICE_INFO structure. The Bluetooth +// address will be used for comparision. +// +// phRegHandle +// A pointer to where the registration HANDLE value will be +// stored. Call BluetoothUnregisterAuthentication() to close +// the handle. +// +// pfnCallback +// The function that will be called when the authentication event +// occurs. This function should match PFN_AUTHENTICATION_CALLBACK_EX's +// prototype. +// +// pvParam +// Optional parameter to be passed through to the callback function. +// This can be anything the application was to define. +// +// Return Values: +// ERROR_SUCCESS +// Success. A valid registration handle was returned. +// +// ERROR_OUTOFMEMORY +// Out of memory. +// +// other Win32 error. +// Failure. The registration handle is invalid. +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothRegisterForAuthenticationEx( + _In_opt_ const BLUETOOTH_DEVICE_INFO * pbtdiIn + , _Out_ HBLUETOOTH_AUTHENTICATION_REGISTRATION * phRegHandleOut + , _In_opt_ PFN_AUTHENTICATION_CALLBACK_EX pfnCallbackIn + , _In_opt_ PVOID pvParam + ); + +#endif // >= SP1+KB942567 + +// +// Description: +// Unregisters an authentication callback and closes the handle. See +// BluetoothRegisterForAuthentication() for more information about +// authentication registration. +// +// Parameters: +// hRegHandle +// Handle returned by BluetoothRegisterForAuthentication(). +// +// Return Value: +// TRUE +// The handle was successfully closed. +// +// FALSE +// The handle was not successfully closed. Check GetLastError for +// more details. +// +// ERROR_INVALID_HANDLE +// The handle is NULL. +// +// other Win32 errors. +// +BOOL +WINAPI +BluetoothUnregisterAuthentication( + _In_ HBLUETOOTH_AUTHENTICATION_REGISTRATION hRegHandle + ); + +// +// Description: +// This function should be called after receiving an authentication request +// to send the passkey response. +// +// Parameters: +// +// hRadio +// Optional handle to the local radio. If NULL, the function will try +// each radio until one succeeds. +// +// pbtdi +// A pointer to a BLUETOOTH_DEVICE_INFO structure describing the device +// being authenticated. This can be the same structure passed to the +// callback function. +// +// pszPasskey +// A pointer to UNICODE zero-terminated string of the passkey response +// that should be sent back to the authenticating device. +// +// Return Values: +// ERROR_SUCESS +// The device accepted the passkey response. The device is authenticated. +// +// ERROR_CANCELED +// The device denied the passkey reponse. This also will returned if there +// is a communications problem with the local radio. +// +// E_FAIL +// The device returned a failure code during authentication. +// +// other Win32 error codes +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothSendAuthenticationResponse( + _In_opt_ HANDLE hRadio, + _In_ const BLUETOOTH_DEVICE_INFO * pbtdi, + _In_ LPCWSTR pszPasskey + ); + + +// +// Support added in KB942567 +// +#if (NTDDI_VERSION > NTDDI_VISTASP1 || \ + (NTDDI_VERSION == NTDDI_VISTASP1 && defined(VISTA_KB942567))) + +// +// Replaces previous API +// +#pragma deprecated("BluetoothSendAuthenticationResponse") + +// +// Structure used when responding to BTH_REMOTE_AUTHENTICATE_REQUEST event +// +typedef struct _BLUETOOTH_AUTHENTICATE_RESPONSE { + BLUETOOTH_ADDRESS bthAddressRemote; + BLUETOOTH_AUTHENTICATION_METHOD authMethod; + + union{ + BLUETOOTH_PIN_INFO pinInfo; + BLUETOOTH_OOB_DATA_INFO oobInfo; + BLUETOOTH_NUMERIC_COMPARISON_INFO numericCompInfo; + BLUETOOTH_PASSKEY_INFO passkeyInfo; + }; + + UCHAR negativeResponse; +} BLUETOOTH_AUTHENTICATE_RESPONSE, *PBLUETOOTH_AUTHENTICATE_RESPONSE; + + +// +// Description: +// This function should be called after receiving an authentication request +// to send the authentication response. (Bluetooth 2.1 and above) +// +// Parameters: +// +// hRadio +// Optional handle to the local radio. If NULL, the function will try +// each radio until one succeeds. +// +// pbtdi +// A pointer to a BLUETOOTH_DEVICE_INFO structure describing the device +// being authenticated. This can be the same structure passed to the +// callback function. +// +// pauthResponse +// A pointer to a BTH_AUTHENTICATION_RESPONSE structure. +// +// Return Values: +// ERROR_SUCESS +// The device accepted the passkey response. The device is authenticated. +// +// ERROR_CANCELED +// The device denied the passkey reponse. This also will returned if there +// is a communications problem with the local radio. +// +// E_FAIL +// The device returned a failure code during authentication. +// +// other Win32 error codes +// +_Must_inspect_result_ +DWORD +WINAPI +BluetoothSendAuthenticationResponseEx( + _In_opt_ HANDLE hRadioIn + , _In_ PBLUETOOTH_AUTHENTICATE_RESPONSE pauthResponse + ); + +#endif // >= SP1+KB942567 + +// *************************************************************************** +// +// SDP Parsing Functions +// +// *************************************************************************** + +typedef struct _SDP_ELEMENT_DATA { + // + // Enumeration of SDP element types. Generic element types will have a + // specificType value other then SDP_ST_NONE. The generic types are: + // o SDP_TYPE_UINT + // o SDP_TYPE_INT + // o SDP_TYPE_UUID + // + SDP_TYPE type; + + // + // Specific types for the generic SDP element types. + // + SDP_SPECIFICTYPE specificType; + + // + // Union of all possible data types. type and specificType will indicate + // which field is valid. For types which do not have a valid specificType, + // specific type will be SDP_ST_NONE. + // + union { + // type == SDP_TYPE_INT + SDP_LARGE_INTEGER_16 int128; // specificType == SDP_ST_INT128 + LONGLONG int64; // specificType == SDP_ST_INT64 + LONG int32; // specificType == SDP_ST_INT32 + SHORT int16; // specificType == SDP_ST_INT16 + CHAR int8; // specificType == SDP_ST_INT8 + + // type == SDP_TYPE_UINT + SDP_ULARGE_INTEGER_16 uint128; // specificType == SDP_ST_UINT128 + ULONGLONG uint64; // specificType == SDP_ST_UINT64 + ULONG uint32; // specificType == SDP_ST_UINT32 + USHORT uint16; // specificType == SDP_ST_UINT16 + UCHAR uint8; // specificType == SDP_ST_UINT8 + + // type == SDP_TYPE_BOOLEAN + UCHAR booleanVal; + + // type == SDP_TYPE_UUID + GUID uuid128; // specificType == SDP_ST_UUID128 + ULONG uuid32; // specificType == SDP_ST_UUID32 + USHORT uuid16; // specificType == SDP_ST_UUID32 + + // type == SDP_TYPE_STRING + struct { + // raw string buffer, may not be encoded as ANSI, use + // BluetoothSdpGetString to convert the value if it is described + // by the base language attribute ID list + LPBYTE value; + + // raw length of the string, may not be NULL terminuated + ULONG length; + } string; + + // type == SDP_TYPE_URL + struct { + LPBYTE value; + ULONG length; + } url; + + // type == SDP_TYPE_SEQUENCE + struct { + // raw sequence, starts at sequence element header + LPBYTE value; + + // raw sequence length + ULONG length; + } sequence; + + // type == SDP_TYPE_ALTERNATIVE + struct { + // raw alternative, starts at alternative element header + LPBYTE value; + + // raw alternative length + ULONG length; + } alternative; + + } data; + +} SDP_ELEMENT_DATA, *PSDP_ELEMENT_DATA; + +// +// Description: +// Retrieves and parses the element found at pSdpStream +// +// Parameters: +// IN pSdpStream +// pointer to valid SDP stream +// +// IN cbSdpStreamLength +// length of pSdpStream in bytes +// +// OUT pData +// pointer to be filled in with the data of the SDP element at the +// beginning of pSdpStream +// +// Return Values: +// ERROR_INVALID_PARAMETER +// one of required parameters is NULL or the pSdpStream is invalid +// +// ERROR_SUCCESS +// the sdp element was parsed correctly +// +_Must_inspect_result_ +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +BluetoothSdpGetElementData( + _In_reads_bytes_(cbSdpStreamLength) LPBYTE pSdpStream, + _In_ ULONG cbSdpStreamLength, + _Out_ PSDP_ELEMENT_DATA pData + ); + +typedef HANDLE HBLUETOOTH_CONTAINER_ELEMENT; + +// +// Description: +// Iterates over a container stream, returning each elemetn contained with +// in the container element at the beginning of pContainerStream +// +// Parameters: +// IN pContainerStream +// pointer to valid SDP stream whose first element is either a sequence +// or alternative +// +// IN cbContainerlength +// length in bytes of pContainerStream +// +// IN OUT pElement +// Value used to keep track of location within the stream. The first +// time this function is called for a particular container, *pElement +// should equal NULL. Upon subsequent calls, the value should be +// unmodified. +// +// OUT pData +// pointer to be filled in with the data of the SDP element at the +// current element of pContainerStream +// +// Return Values: +// ERROR_SUCCESS +// The call succeeded, pData contains the data +// +// ERROR_NO_MORE_ITEMS +// There are no more items in the list, the caller should cease calling +// BluetoothSdpGetContainerElementData for this container. +// +// ERROR_INVALID_PARAMETER +// A required pointer is NULL or the container is not a valid SDP +// stream +// +// Usage example: +// +// HBLUETOOTH_CONTAINER_ELEMENT element; +// SDP_ELEMENT_DATA data; +// ULONG result; +// +// element = NULL; +// +// while (TRUE) { +// result = BluetoothSdpGetContainerElementData( +// pContainer, ulContainerLength, &element, &data); +// +// if (result == ERROR_NO_MORE_ITEMS) { +// // We are done +// break; +// } +// else if (result != ERROR_SUCCESS) { +// // error +// } +// +// // do something with data ... +// } +// +// +_Must_inspect_result_ +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +BluetoothSdpGetContainerElementData( + _In_reads_bytes_(cbContainerLength) LPBYTE pContainerStream, + _In_ ULONG cbContainerLength, + _Inout_ HBLUETOOTH_CONTAINER_ELEMENT* pElement, + _Out_ PSDP_ELEMENT_DATA pData + ); + +// +// Description: +// Retrieves the attribute value for the given attribute ID. pRecordStream +// must be an SDP stream that is formatted as an SDP record, a SEQUENCE +// containing UINT16 + element pairs. +// +// Parameters: +// IN pRecordStream +// pointer to a valid SDP stream which is formatted as a singl SDP +// record +// +// IN cbRecordlnegh +// length of pRecordStream in bytes +// +// IN usAttributeId +// the attribute ID to search for. see bthdef.h for SDP_ATTRIB_Xxx +// values. +// +// OUT pAttributeData +// pointer that will contain the attribute ID's value +// +// Return Values: +// ERRROR_SUCCESS +// Call succeeded, pAttributeData contains the attribute value +// +// ERROR_INVALID_PARAMETER +// One of the required pointers was NULL, pRecordStream was not a valid +// SDP stream, or pRecordStream was not a properly formatted SDP record +// +// ERROR_FILE_NOT_FOUND +// usAttributeId was not found in the record +// +// Usage: +// +// ULONG result; +// SDP_DATA_ELEMENT data; +// +// result = BluetoothSdpGetAttributeValue( +// pRecordStream, cbRecordLength, SDP_ATTRIB_RECORD_HANDLE, &data); +// if (result == ERROR_SUCCESS) { +// printf("record handle is 0x%x\n", data.data.uint32); +// } +// +_Must_inspect_result_ +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +BluetoothSdpGetAttributeValue( + _In_reads_bytes_(cbRecordLength) LPBYTE pRecordStream, + _In_ ULONG cbRecordLength, + _In_ USHORT usAttributeId, + _Out_ PSDP_ELEMENT_DATA pAttributeData + ); + +// +// These three fields correspond one to one with the triplets defined in the +// SDP specification for the language base attribute ID list. +// +typedef struct _SDP_STRING_TYPE_DATA { + // + // How the string is encoded according to ISO 639:1988 (E/F): "Code + // for the representation of names of languages". + // + USHORT encoding; + + // + // MIBE number from IANA database + // + USHORT mibeNum; + + // + // The base attribute where the string is to be found in the record + // + USHORT attributeId; + +} SDP_STRING_TYPE_DATA, *PSDP_STRING_TYPE_DATA; + +// +// Description: +// Converts a raw string embedded in the SDP record into a UNICODE string +// +// Parameters: +// IN pRecordStream +// a valid SDP stream which is formatted as an SDP record +// +// IN cbRecordLength +// length of pRecordStream in bytes +// +// IN pStringData +// if NULL, then the calling thread's locale will be used to search +// for a matching string in the SDP record. If not NUL, the mibeNum +// and attributeId will be used to find the string to convert. +// +// IN usStringOffset +// the SDP string type offset to convert. usStringOffset is added to +// the base attribute id of the string. SDP specification defined +// offsets are: STRING_NAME_OFFSET, STRING_DESCRIPTION_OFFSET, and +// STRING_PROVIDER_NAME_OFFSET (found in bthdef.h). +// +// OUT pszString +// if NULL, pcchStringLength will be filled in with the required number +// of characters (not bytes) to retrieve the converted string. +// +// IN OUT pcchStringLength +// Upon input, if pszString is not NULL, will contain the length of +// pszString in characters. Upon output, it will contain either the +// number of required characters including NULL if an error is returned +// or the number of characters written to pszString (including NULL). +// +// Return Values: +// ERROR_SUCCES +// Call was successful and pszString contains the converted string +// +// ERROR_MORE_DATA +// pszString was NULL or too small to contain the converted string, +// pccxhStringLength contains the required length in characters +// +// ERROR_INVALID_DATA +// Could not perform the conversion +// +// ERROR_NO_SYSTEM_RESOURCES +// Could not allocate memory internally to perform the conversion +// +// ERROR_INVALID_PARAMETER +// One of the rquired pointers was NULL, pRecordStream was not a valid +// SDP stream, pRecordStream was not a properly formatted record, or +// the desired attribute + offset was not a string. +// +// Other HRESULTs returned by COM +// +_Must_inspect_result_ +_Success_(return == 0) +DWORD +WINAPI +BluetoothSdpGetString( + _In_reads_bytes_(cbRecordLength) LPBYTE pRecordStream, + _In_ ULONG cbRecordLength, + _In_opt_ const PSDP_STRING_TYPE_DATA pStringData, + _In_ USHORT usStringOffset, + _Out_writes_to_(*pcchStringLength, *pcchStringLength) PWSTR pszString, + _Inout_ PULONG pcchStringLength + ); + +// *************************************************************************** +// +// Raw Attribute Enumeration +// +// *************************************************************************** + +typedef BOOL (CALLBACK *PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK)( + _In_ ULONG uAttribId, + _In_reads_bytes_(cbStreamSize) LPBYTE pValueStream, + _In_ ULONG cbStreamSize, + _In_opt_ LPVOID pvParam + ); + +// +// Description: +// Enumerates through the SDP record stream calling the Callback function +// for each attribute in the record. If the Callback function returns +// FALSE, the enumeration is stopped. +// +// Return Values: +// TRUE +// Success! Something was enumerated. +// +// FALSE +// Failure. GetLastError() could be one of the following: +// +// ERROR_INVALID_PARAMETER +// pSDPStream or pfnCallback is NULL. +// +// ERROR_INVALID_DATA +// The SDP stream is corrupt. +// +// other Win32 errors. +// +#define BluetoothEnumAttributes BluetoothSdpEnumAttributes + +_Must_inspect_result_ +BOOL +WINAPI +BluetoothSdpEnumAttributes( + _In_reads_bytes_(cbStreamSize) LPBYTE pSDPStream, + _In_ ULONG cbStreamSize, + _In_ PFN_BLUETOOTH_ENUM_ATTRIBUTES_CALLBACK pfnCallback, + _In_ LPVOID pvParam + ); + +#endif // (NTDDI_VERSION >= NTDDI_WINXPSP2) + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +// +// The following APIs are only available on Vista or later +// + +_Must_inspect_result_ +DWORD +WINAPI +BluetoothSetLocalServiceInfo( + _In_opt_ HANDLE hRadioIn + , _In_ const GUID * pClassGuid + , _In_ ULONG ulInstance + , _In_ const BLUETOOTH_LOCAL_SERVICE_INFO * pServiceInfoIn + ); + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + + +// +// Support added in KB942567 +// +#if (NTDDI_VERSION > NTDDI_VISTASP1 || \ + (NTDDI_VERSION == NTDDI_VISTASP1 && defined(VISTA_KB942567))) + +// +// IsBluetoothVersionAvailable +// +// Description: +// Indicate if the installed Bluetooth binary set supports +// the requested version +// +// Return Values: +// TRUE if the installed bluetooth binaries support the given +// Major & Minor versions +// +// Note this function is only exported in version 2.1 and later. +// +_Must_inspect_result_ +BOOL +WINAPI +BluetoothIsVersionAvailable( + _In_ UCHAR MajorVersion, + _In_ UCHAR MinorVersion + ); + + +#endif // >= SP1+KB942567 + +#ifdef __cplusplus +} + + +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bluetoothleapis.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bluetoothleapis.h new file mode 100644 index 0000000000000000000000000000000000000000..69cd0501d2906eab0957a35213a5d625a06018c1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bluetoothleapis.h @@ -0,0 +1,727 @@ +/*++ + +Copyright (c) 2010 Microsoft Corporation + +Module Name: + + BluetoothLEApis.h + +Abstract: + + Public Bluetooth Low Energy Application Development Interfaces + +Environment: + + User mode + --*/ + +#ifdef _MSC_VER +#pragma once +#endif //_MSC_VER +#include +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C"{ +#endif + +#if NTDDI_VERSION >= NTDDI_WIN8 + + + +// +// Description: +// The BluetoothGATTGetServices function gets all the primary services available for a server. +// +// Parameters: +// hDevice [in] +// Handle to the Bluetooth device from which to obtain the list of primary services. +// +// ServicesBufferCount [in] +// The number of elements allocated for the ServicesBuffer parameter. +// +// ServicesBuffer [out, optional] +// Pointer to buffer into which to return services. +// +// ServicesBufferActual [out] +// Pointer to buffer into which the actual number of services were returned in the ServicesBuffer parameter. +// +// Flags [in] +// BLUETOOTH_GATT_FLAG_NONE: The client does not have specific GATT requirements (default). +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_MORE_DATA +// The buffer parameter is NULL and the number of items available is being returned. +// +// ERROR_INVALID_PARAMETER +// One of the parameters were invalid. +// +// ERROR_INVALID_USER_BUFFER +// A buffer is specified, but the buffer count size is smaller than what is required, in bytes. +// +// ERROR_INVALID_FUNCTION +// No services are present in the cache. +// +// ERROR_BAD_COMMAND +// The current data in the cache appears to be inconsistent, and is leading to internal errors. +// +// ERROR_NO_SYSTEM_RESOURCES +// The operation ran out of memory. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTGetServices( + _In_ HANDLE hDevice, + _In_ USHORT ServicesBufferCount, + _Out_writes_to_opt_(ServicesBufferCount, *ServicesBufferActual) PBTH_LE_GATT_SERVICE ServicesBuffer, + _Out_ USHORT* ServicesBufferActual, + _In_ ULONG Flags + ); + +// +// Description: +// The BluetoothGATTGetIncludedServices function gets all the included services available for a given service. +// +// Parameters: +// hDevice [in] +// Handle to the Bluetooth device or parent service. +// +// ParentService [in] +// The parent service of the included services to be retrieved. This parameter +// is required if a device handle is passed to hDevice. This parameter is optional +// if a service handle was passed to hDevice, in which case the service specified +// by the service handle will be treated as the parent unless the parent service +// is provided. If both a parent service and a service handle is provided and the +// parent service hierarchy do not roll up to the service handle that is provided, +// the function will fail with ERROR_ACCESS_DENIED. +// +// IncludedServicesBufferCount [in] +// The number of elements allocated for the IncludedServicesBuffer parameter. +// +// IncludedServicesBuffer [out, optional] +// Pointer to buffer into which to return included services. +// +// IncludedServicesBufferActual [out] +// Pointer to buffer into which the actual number of included services were returned in +// the IncludedServicesBuffer parameter. +// +// Flags [in] +// BLUETOOTH_GATT_FLAG_NONE: The client does not have specific GATT requirements (default). +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_MORE_DATA +// The buffer parameter is NULL and the number of items available is being returned. +// +// ERROR_INVALID_PARAMETER +// One of the parameters were invalid. +// +// ERROR_INVALID_USER_BUFFER +// A buffer is specified, but the buffer count size is smaller than what is required, in bytes. +// +// ERROR_INVALID_FUNCTION +// No services are present in the cache. +// +// ERROR_BAD_COMMAND +// The current data in the cache appears to be inconsistent, and is leading to internal errors. +// +// ERROR_NO_SYSTEM_RESOURCES +// The operation ran out of memory. +// +// ERROR_ACCESS_DENIED +// If both a parent service and a service handle is provided and the +// parent service hierarchy do not roll up to the service handle that is provided. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTGetIncludedServices( + _In_ HANDLE hDevice, + _In_opt_ PBTH_LE_GATT_SERVICE ParentService, + _In_ USHORT IncludedServicesBufferCount, + _Out_writes_to_opt_(IncludedServicesBufferCount, *IncludedServicesBufferActual) PBTH_LE_GATT_SERVICE IncludedServicesBuffer, + _Out_ USHORT* IncludedServicesBufferActual, + _In_ ULONG Flags + ); + +// +// Description: +// The BluetoothGATTGetCharacteristics function gets all the characteristics available for the specified service. +// +// Parameters: +// hDevice [in] +// Handle to the Bluetooth device or service. +// +// Service [in] +// The parent service of the characteristics to be retrieved. This parameter +// is required if a device handle is passed to hDevice. This parameter is optional +// if a service handle was passed to hDevice, in which case the service specified +// by the service handle will be treated as the parent. +// +// CharacteristicsBufferCount [in] +// The number of elements allocated for the CharacteristicsBuffer parameter. +// +// CharacteristicsBuffer [out, optional] +// Pointer to buffer into which to return characteristics. +// +// IncludedServicesBufferActual [out] +// Pointer to buffer into which the actual number of characteristics were returned in +// the CharacteristicsBuffer parameter. +// +// Flags [in] +// BLUETOOTH_GATT_FLAG_NONE: The client does not have specific GATT requirements (default). +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_MORE_DATA +// The buffer parameter is NULL and the number of items available is being returned. +// +// ERROR_INVALID_PARAMETER +// One of the parameters were invalid. +// +// ERROR_INVALID_USER_BUFFER +// A buffer is specified, but the buffer count size is smaller than what is required, in bytes. +// +// ERROR_BAD_COMMAND +// The current data in the cache appears to be inconsistent, and is leading to internal errors. +// +/// ERROR_NO_SYSTEM_RESOURCES +// The operation ran out of memory. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTGetCharacteristics( + _In_ HANDLE hDevice, + _In_opt_ PBTH_LE_GATT_SERVICE Service, + _In_ USHORT CharacteristicsBufferCount, + _Out_writes_to_opt_(CharacteristicsBufferCount, *CharacteristicsBufferActual) PBTH_LE_GATT_CHARACTERISTIC CharacteristicsBuffer, + _Out_ USHORT* CharacteristicsBufferActual, + _In_ ULONG Flags + ); + +// +// Description: +// The BluetoothGATTGetDescriptors function gets all the descriptors available for the specified characteristic. +// +// Parameters: +// hDevice [in] +// Handle to the Bluetooth device or service. If a service handle is passed, then the service must be +// the grandparent of the descriptor. +// +// Characteristic [in] +// The parent characteristic of the descriptors to be retrieved. +// +// DescriptorsBufferCount [in] +// The number of elements allocated for the DescriptorsBuffer parameter. +// +// DescriptorsBuffer [out, optional] +// Pointer to buffer into which to return descriptors. +// +// DescriptorsBufferActual [out] +// Pointer to buffer into which the actual number of descriptors were returned in +// the DescriptorsBuffer parameter. +// +// Flags [in] +// BLUETOOTH_GATT_FLAG_NONE: The client does not have specific GATT requirements (default). +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_MORE_DATA +// The buffer parameter is NULL and the number of items available is being returned. +// +// ERROR_INVALID_PARAMETER +// One of the parameters were invalid. +// +// ERROR_INVALID_USER_BUFFER +// A buffer is specified, but the buffer count size is smaller than what is required, in bytes. +// +// ERROR_BAD_COMMAND +// The current data in the cache appears to be inconsistent, and is leading to internal errors. +// +/// ERROR_NO_SYSTEM_RESOURCES +// The operation ran out of memory. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTGetDescriptors( + _In_ HANDLE hDevice, + _In_ PBTH_LE_GATT_CHARACTERISTIC Characteristic, + _In_ USHORT DescriptorsBufferCount, + _Out_writes_to_opt_(DescriptorsBufferCount, *DescriptorsBufferActual) PBTH_LE_GATT_DESCRIPTOR DescriptorsBuffer, + _Out_ USHORT* DescriptorsBufferActual, + _In_ ULONG Flags + ); + +// +// Description: +// The BluetoothGATTGetCharacteristicValue function gets the value of the specified characteristic. +// +// Parameters: +// hDevice [in] +// Handle to the service. +// +// Characteristic [in] +// The parent characteristic of the characteristic value to be retrieved. +// +// CharacteristicValueDataSize [in] +// The number of elements allocated for the CharacteristicValue parameter. +// +// CharacteristicValue [out, optional] +// Pointer to buffer into which to return characteristic value. +// +// CharacteristicValueSizeRequired [out] +// Pointer to buffer into which to store the number of bytes +// needed to return data in the buffer pointed to by CharacteristicValue. +// +// Flags [in] +// BLUETOOTH_GATT_FLAG_NONE: The client does not have specific GATT requirements (default). +// BLUETOOTH_GATT_FLAG_CONNECTION_ENCRYPTED: The client requests the data to be transmitted over an encrypted channel. +// BLUETOOTH_GATT_FLAG_CONNECTION_AUTHENTICATED: The client requests the data to be transmitted over an authenticated channel. +// BLUETOOTH_GATT_FLAG_FORCE_READ_FROM_CACHE: The characteristic value is to be read from the cache +// (regardless of whether it is present in the cache or not). +// BLUETOOTH_GATT_FLAG_FORCE_READ_FROM_DEVICE: The characteristic value is to be read directly from the device. +// This overwrites the one in the cache if one is already present. +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_MORE_DATA +// The buffer parameter is NULL and the number of bytes needed is being returned. +// +// ERROR_INVALID_PARAMETER +// One of the parameters were invalid. +// +// ERROR_INVALID_USER_BUFFER +// A buffer is specified, but the buffer count size is smaller than what is required, in bytes. +// +// ERROR_BAD_COMMAND +// The current data in the cache appears to be inconsistent, and is leading to internal errors. +// +// ERROR_BAD_NET_RESP +// The target server did not provide an appropriate network response. +// +// ERROR_SEM_TIMEOUT +// The request timed-out. +// +// ERROR_PRIVILEGE_NOT_HELD +// The characteristic value is not readable as dictated by the characteristic properties. +// +/// ERROR_NO_SYSTEM_RESOURCES +// The operation ran out of memory. +// +// E_BLUETOOTH_ATT_ +// An error code returned by the device indicating a specific error has occured. +// Consult the Bluetooth specification for more information. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTGetCharacteristicValue( + _In_ HANDLE hDevice, + _In_ PBTH_LE_GATT_CHARACTERISTIC Characteristic, + _In_ ULONG CharacteristicValueDataSize, + _Out_opt_ PBTH_LE_GATT_CHARACTERISTIC_VALUE CharacteristicValue, + _Out_opt_ USHORT* CharacteristicValueSizeRequired, + _In_ ULONG Flags + ); + +// +// Description: +// The BluetoothGATTGetDescriptorValue function gets the value of the specified descriptor. +// +// Parameters: +// hDevice [in] +// Handle to the service. +// +// Descriptor [in] +// The parent descriptor of the descriptor value to be retrieved. +// +// DescriptorValueDataSize [in] +// The number of elements allocated for the DescriptorValue parameter. +// +// DescriptorValue [out, optional] +// Pointer to buffer into which to return descriptor value. +// +// DescriptorValueSizeRequired [out] +// Pointer to buffer into which to store the number of bytes +// needed to return data in the buffer pointed to by DescriptorValue. +// +// Flags [in] +// BLUETOOTH_GATT_FLAG_NONE: The client does not have specific GATT requirements (default). +// BLUETOOTH_GATT_FLAG_CONNECTION_ENCRYPTED: The client requests the data to be transmitted over an encrypted channel. +// BLUETOOTH_GATT_FLAG_CONNECTION_AUTHENTICATED: The client requests the data to be transmitted over an authenticated channel. +// BLUETOOTH_GATT_FLAG_FORCE_READ_FROM_CACHE: The descriptor value is to be read from the cache +// (regardless of whether it is present in the cache or not). +// BLUETOOTH_GATT_FLAG_FORCE_READ_FROM_DEVICE: The descriptor value is to be read directly from the device. +// This overwrites the one in the cache if one is already present. +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_MORE_DATA +// The buffer parameter is NULL and the number of bytes needed is being returned. +// +// ERROR_INVALID_PARAMETER +// One of the parameters were invalid. +// +// ERROR_INVALID_USER_BUFFER +// A buffer is specified, but the buffer count size is smaller than what is required, in bytes. +// +// ERROR_BAD_COMMAND +// The current data in the cache appears to be inconsistent, and is leading to internal errors. +// +// ERROR_BAD_NET_RESP +// The target server did not provide an appropriate network response. +// +// ERROR_SEM_TIMEOUT +// The request timed-out. +// +/// ERROR_NO_SYSTEM_RESOURCES +// The operation ran out of memory. +// +// E_BLUETOOTH_ATT_ +// An error code returned by the device indicating a specific error has occured. +// Consult the Bluetooth specification for more information. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTGetDescriptorValue( + _In_ HANDLE hDevice, + _In_ PBTH_LE_GATT_DESCRIPTOR Descriptor, + _In_ ULONG DescriptorValueDataSize, + _Out_opt_ PBTH_LE_GATT_DESCRIPTOR_VALUE DescriptorValue, + _Out_opt_ USHORT* DescriptorValueSizeRequired, + _In_ ULONG Flags + ); + +// +// Description: +// The BluetoothGATTBeginReliableWrite function specifies that reliable writes are about to begin. +// +// Parameters: +// hDevice [in] +// Handle to the service. +// +// ReliableWriteContext [out] +// Pointer to the context describing the reliable write operation. +// +// Flags [in] +// Reserved. Must be set to BLUETOOTH_GATT_FLAG_NONE. +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_INVALID_FUNCTION +// A reliable write operation is already presently underway. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTBeginReliableWrite( + _In_ HANDLE hDevice, + _Out_ PBTH_LE_GATT_RELIABLE_WRITE_CONTEXT ReliableWriteContext, + _In_ ULONG Flags + ); + +// +// Description: +// The BluetoothGATTSetCharacteristicValue function writes the specified characteristic value to the Bluetooth device. +// +// Parameters: +// hDevice [in] +// Handle to the service. +// +// Characteristic [in] +// The parent characteristic. +// +// CharacteristicValue [in] +// Pointer to the characteristic value. +// +// ReliableWriteContext [in] +// The context describing the reliable write operation returned from a +// previous call to BluetoothGATTBeginReliableWrite. +// +// Flags [in] +// BLUETOOTH_GATT_FLAG_NONE: The client does not have specific GATT requirements (default). +// BLUETOOTH_GATT_FLAG_CONNECTION_ENCRYPTED: The client requests the data to be transmitted over an encrypted channel. +// BLUETOOTH_GATT_FLAG_CONNECTION_AUTHENTICATED: The client requests the data to be transmitted over an authenticated channel. +// BLUETOOTH_GATT_FLAG_WRITE_WITHOUT_RESPONSE : Write without response. +// BLUETOOTH_GATT_FLAG_SIGNED_WRITE: Signed write. Profile drivers must use with +// BLUETOOTH_GATT_FLAG_WRITE_WITHOUT_RESPONSE in order to produce +// signed write without a response. +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_INVALID_PARAMETER +// One of the parameters were invalid. +// +// ERROR_BAD_NET_RESP +// The target server did not provide an appropriate network response. +// +// ERROR_SEM_TIMEOUT +// The request timed-out. +// +/// ERROR_NO_SYSTEM_RESOURCES +// The operation ran out of memory. +// +// ERROR_INVALID_FUNCTION +// A reliable write operation is already presently underway. +// +// E_BLUETOOTH_ATT_ +// An error code returned by the device indicating a specific error has occured. +// Consult the Bluetooth specification for more information. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTSetCharacteristicValue( + _In_ HANDLE hDevice, + _In_ PBTH_LE_GATT_CHARACTERISTIC Characteristic, + _In_ PBTH_LE_GATT_CHARACTERISTIC_VALUE CharacteristicValue, + _In_opt_ BTH_LE_GATT_RELIABLE_WRITE_CONTEXT ReliableWriteContext, + _In_ ULONG Flags + ); + +// +// Description: +// The BluetoothGATTEndReliableWrite function specifies the end of reliable writes, +// and the writes should be committed. +// +// Parameters: +// hDevice [in] +// Handle to the service. +// +// ReliableWriteContext [in] +// The context describing the reliable write operation returned from a previous +// call to BluetoothGATTBeginReliableWrite. +// +// Flags [in] +// Reserved. Must be set to BLUETOOTH_GATT_FLAG_NONE. +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_INVALID_FUNCTION +// A reliable write operation is no presently underway. +// +// ERROR_BAD_NET_RESP +// The target server did not provide an appropriate network response. +// +// ERROR_SEM_TIMEOUT +// The request timed-out. +// +/// ERROR_NO_SYSTEM_RESOURCES +// The operation ran out of memory. +// +// E_BLUETOOTH_ATT_ +// An error code returned by the device indicating a specific error has occured. +// Consult the Bluetooth specification for more information. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTEndReliableWrite( + _In_ HANDLE hDevice, + _In_ BTH_LE_GATT_RELIABLE_WRITE_CONTEXT ReliableWriteContext, + _In_ ULONG Flags + ); + + +// +// Description: +// The BluetoothGATTAbortReliableWrite function specifies the end of reliable +// write procedures, and the writes should be aborted. +// +// Parameters: +// hDevice [in] +// Handle to the service. +// +// ReliableWriteContext [in] +// The context describing the reliable write operation returned from a previous +// call to BluetoothGATTBeginReliableWrite. +// +// Flags [in] +// Reserved. Must be set to BLUETOOTH_GATT_FLAG_NONE. +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_INVALID_FUNCTION +// A reliable write operation is no presently underway. +// +// ERROR_BAD_NET_RESP +// The target server did not provide an appropriate network response. +// +// ERROR_SEM_TIMEOUT +// The request timed-out. +// +/// ERROR_NO_SYSTEM_RESOURCES +// The operation ran out of memory. +// +// E_BLUETOOTH_ATT_ +// An error code returned by the device indicating a specific error has occured. +// Consult the Bluetooth specification for more information. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTAbortReliableWrite( + _In_ HANDLE hDevice, + _In_ BTH_LE_GATT_RELIABLE_WRITE_CONTEXT ReliableWriteContext, + _In_ ULONG Flags + ); + + +// +// Description: +// The BluetoothGATTSetDescriptorValue function writes the specified descriptor value to the Bluetooth device. +// +// Parameters: +// hDevice [in] +// Handle to the service. +// +// Descriptor [in] +// The parent descriptor. +// +// DescriptorValue [in] +// Pointer to the descriptor value. +// +// Flags [in] +// BLUETOOTH_GATT_FLAG_NONE: The client does not have specific GATT requirements (default). +// BLUETOOTH_GATT_FLAG_CONNECTION_ENCRYPTED: The client requests the data to be transmitted over an encrypted channel. +// BLUETOOTH_GATT_FLAG_CONNECTION_AUTHENTICATED: The client requests the data to be transmitted over an authenticated channel. +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_INVALID_PARAMETER +// One of the parameters were invalid. +// +// ERROR_BAD_NET_RESP +// The target server did not provide an appropriate network response. +// +// ERROR_SEM_TIMEOUT +// The request timed-out. +// +/// ERROR_NO_SYSTEM_RESOURCES +// The operation ran out of memory. +// +// ERROR_INVALID_FUNCTION +// A reliable write operation is already presently underway. +// +// E_BLUETOOTH_ATT_ +// An error code returned by the device indicating a specific error has occured. +// Consult the Bluetooth specification for more information. +// +_Success_(S_OK == return) +HRESULT WINAPI +BluetoothGATTSetDescriptorValue( + _In_ HANDLE hDevice, + _In_ PBTH_LE_GATT_DESCRIPTOR Descriptor, + _In_ PBTH_LE_GATT_DESCRIPTOR_VALUE DescriptorValue, + _In_ ULONG Flags + ); + + +// +// Description: +// Registers for a characteristic value change event on the given characteristic +// identified by its characteristic handle. +// +// Parameters: +// hDevice [in] +// Handle to the Bluetooth device or a service in the Bluetooth device. +// For CharacteristicValueChangedEvent, this must be a service handle. +// +// EventType [in] +// CharacteristicValueChangedEvent: event callback to receive Handle Value Notifications or Handle Value Indications. +// +// EventParameters [in] +// CharacteristicValueChangedEvent: A pointer to BLUETOOTH_GATT_NOTIFICATION_REGISTRATION +// that specifies the characteristics to be registered for the changed event notifications. +// +// Callback [in] +// The callback method to call when the Characteristic value changes. +// +// CallbackContext [in] +// A client context provided in the client provided callback function. +// +// EventHandle [out] +// Upon successful registration, this parameter receives a handle to this registration. +// The client shall use this handle when calling BluetoothGATTUnregisterEvent. +// +// Flags [in] +// BLUETOOTH_GATT_FLAG_NONE: The client does not have specific GATT requirements (default). +// BLUETOOTH_GATT_FLAG_CONNECTION_ENCRYPTED: The client requests the data to be transmitted over an encrypted channel. +// BLUETOOTH_GATT_FLAG_CONNECTION_AUTHENTICATED: The client requests the data to be transmitted over an authenticated channel. +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_INVALID_PARAMETER +// One of the parameters were invalid. +// +HRESULT WINAPI +BluetoothGATTRegisterEvent( + _In_ HANDLE hService, + _In_ BTH_LE_GATT_EVENT_TYPE EventType, + _In_ PVOID EventParameterIn, + _In_ PFNBLUETOOTH_GATT_EVENT_CALLBACK Callback, + _In_opt_ PVOID CallbackContext, + _Out_ BLUETOOTH_GATT_EVENT_HANDLE * pEventHandle, + _In_ ULONG Flags + ); + +// +// Description: +// Unregisters the given characteristic value change event. +// +// Parameters: +// EventHandle [in] +// Obtained via BluetoothGATTRegisterEvent +// +// Flags [in] +// BLUETOOTH_GATT_FLAG_NONE: The client does not have specific GATT requirements (default). +// +// Return Value: +// S_OK +// The operation completed successfully. +// +// ERROR_INVALID_PARAMETER +// One of the parameters were invalid. +// +HRESULT WINAPI +BluetoothGATTUnregisterEvent( + _In_ BLUETOOTH_GATT_EVENT_HANDLE EventHandle, + _In_ ULONG Flags + ); + + +#endif //NTDDI_WIN8 + +#ifdef __cplusplus + } +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bridgedeviceservice.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bridgedeviceservice.h new file mode 100644 index 0000000000000000000000000000000000000000..cf0c8b06c56974fd7c7af3ebe041b30509f84574 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bridgedeviceservice.h @@ -0,0 +1,2109 @@ +/* + * BridgeDeviceService.h + * + * Contains declaration of Services PKEYs to support classic MTP-style + * formats and generic/media object properties. + * + * Copyright (c) Microsoft Corporation, All Rights Reserved. + * + */ + +#ifndef _BRIDGEDEVICESERVICE_H_ +#define _BRIDGEDEVICESERVICE_H_ + +/*****************************************************************************/ +/* MTP Format Codes for Generic and Media Types */ +/*****************************************************************************/ + +/* FORMAT_Undefined + * + * MTP Format: Undefined (0x3000) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_Undefined, + 0x30000000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_Undefined L"Undefined" + + +/* FORMAT_Association + * + * MTP Format: Association (0x3001) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_Association, + 0x30010000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_Association L"Association" + + +/* FORMAT_DeviceScript + * + * MTP Format: Device model-specific script (0x3002) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_DeviceScript, + 0x30020000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_DeviceScript L"DeviceScript" + + +/* FORMAT_DeviceExecutable + * + * MTP Format: Device model-specific executable (0x3003) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_DeviceExecutable, + 0x30030000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_DeviceExecutable L"DeviceExecutable" + + +/* FORMAT_TextDocument + * + * MTP Format: Text file (0x3004) + * Suggested MIME Type: text/plain + */ + +DEFINE_DEVSVCGUID(FORMAT_TextDocument, + 0x30040000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_TextDocument L"TextDocument" + + +/* FORMAT_HTMLDocument + * + * MTP Format: HTML file (0x3005) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_HTMLDocument, + 0x30050000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_HTMLDocument L"HTMLDocument" + + +/* FORMAT_DPOFDocument + * + * MTP Format: Digital Print Order Format file (0x3006) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_DPOFDocument, + 0x30060000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_DPOFDocument L"DPOFDocument" + + +/* FORMAT_AIFFFile + * + * MTP Format: AIFF file (0x3007) + * Suggested MIME Type: audio/aiff + */ + +DEFINE_DEVSVCGUID(FORMAT_AIFFFile, + 0x30070000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AIFFFile L"AIFFFile" + + +/* FORMAT_WAVFile + * + * MTP Format: WAV file (0x3008) + * Suggested MIME Type: audio/wav + */ + +DEFINE_DEVSVCGUID(FORMAT_WAVFile, + 0x30080000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_WAVFile L"WAVFile" + + +/* FORMAT_MP3File + * + * MTP Format: MP3 file (0x3009) + * Suggested MIME Type: audio/mpeg + */ + +DEFINE_DEVSVCGUID(FORMAT_MP3File, + 0x30090000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_MP3File L"MP3File" + + +/* FORMAT_AVIFile + * + * MTP Format: AVI file (0x300A) + * Suggested MIME Type: video/avi + */ + +DEFINE_DEVSVCGUID(FORMAT_AVIFile, + 0x300A0000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AVIFile L"AVIFile" + + +/* FORMAT_MPEGFile + * + * MTP Format: MPEG file (0x300B) + * Suggested MIME Type: video/mpeg + */ + +DEFINE_DEVSVCGUID(FORMAT_MPEGFile, + 0x300B0000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_MPEGFile L"MPEGFile" + + +/* FORMAT_ASFFile + * + * MTP Format: ASF File (0x300C) + * Suggested MIME Type: audio/asf + */ + +DEFINE_DEVSVCGUID(FORMAT_ASFFile, + 0x300C0000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_ASFFile L"ASFFile" + + +/* FORMAT_UnknownImage + * + * MTP Format: Unknown Image (0x3800) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_UnknownImage, + 0x38000000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_UnknownImage L"UnknownImage" + + +/* FORMAT_EXIFImage + * + * MTP Format: EXIF/JPEG file (0x3801) + * Suggested MIME Type: image/jpeg + */ + +DEFINE_DEVSVCGUID(FORMAT_EXIFImage, + 0x38010000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_EXIFImage L"EXIFImage" + + +/* FORMAT_TIFFEPImage + * + * MTP Format: TIFF/EP (Electronic Photography) file (0x3802) + * Suggested MIME Type: image/tif + */ + +DEFINE_DEVSVCGUID(FORMAT_TIFFEPImage, + 0x38020000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_TIFFEPImage L"TIFFEPImage" + + +/* FORMAT_FlashPixImage + * + * MTP Format: Structured Storage Image Format (0x3803) + * Suggested MIME Type: image/fpx + */ + +DEFINE_DEVSVCGUID(FORMAT_FlashPixImage, + 0x38030000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_FlashPixImage L"FlashPixImage" + + +/* FORMAT_BMPImage + * + * MTP Format: Microsoft Windows Bitmap file (0x3804) + * Suggested MIME Type: image/bmp + */ + +DEFINE_DEVSVCGUID(FORMAT_BMPImage, + 0x38040000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_BMPImage L"BMPImage" + + +/* FORMAT_CIFFImage + * + * MTP Format: Canon Camera Image File format (0x3805) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_CIFFImage, + 0x38050000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_CIFFImage L"CIFFImage" + + +/* FORMAT_GIFImage + * + * MTP Format: Graphics Interchange Format (0x3807) + * Suggested MIME Type: image/gif + */ + +DEFINE_DEVSVCGUID(FORMAT_GIFImage, + 0x38070000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_GIFImage L"GIFImage" + + +/* FORMAT_JFIFImage + * + * MTP Format: JPEF File Interchange Format (0x3808) + * Suggested MIME Type: image/jfif + */ + +DEFINE_DEVSVCGUID(FORMAT_JFIFImage, + 0x38080000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_JFIFImage L"JFIFImage" + + +/* FORMAT_PCDImage + * + * MTP Format: PhotoCD Image Pac (0x3809) + * Suggested MIME Type: image/pcd + */ + +DEFINE_DEVSVCGUID(FORMAT_PCDImage, + 0x38090000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_PCDImage L"PCDImage" + + +/* FORMAT_PICTImage + * + * MTP Format: Quickdraw Image Format (0x380A) + * Suggested MIME Type: image/pict + */ + +DEFINE_DEVSVCGUID(FORMAT_PICTImage, + 0x380A0000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_PICTImage L"PICTImage" + + +/* FORMAT_PNGImage + * + * MTP Format: Portable Network Graphics (0x380B) + * Suggested MIME Type: image/png + */ + +DEFINE_DEVSVCGUID(FORMAT_PNGImage, + 0x380B0000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_PNGImage L"PNGImage" + + +/* FORMAT_TIFFImage + * + * MTP Format: TIFF File (0x380D) + * Suggested MIME Type: image/tif + */ + +DEFINE_DEVSVCGUID(FORMAT_TIFFImage, + 0x380D0000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_TIFFImage L"TIFFImage" + + +/* FORMAT_TIFFITImage + * + * MTP Format: TIFF/IT (Graphics Arts) file (0x380E) + * Suggested MIME Type: image/tif + */ + +DEFINE_DEVSVCGUID(FORMAT_TIFFITImage, + 0x380E0000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_TIFFITImage L"TIFFITImage" + + +/* FORMAT_JP2Image + * + * MTP Format: JPEG2000 Baseline File Format (0x380F) + * Suggested MIME Type: image/jp2 + */ + +DEFINE_DEVSVCGUID(FORMAT_JP2Image, + 0x380F0000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_JP2Image L"JP2Image" + + +/* FORMAT_JPXImage + * + * MTP Format: JPEG2000 Extended File Format (0x3810) + * Suggested MIME Type: image/jp2 + */ + +DEFINE_DEVSVCGUID(FORMAT_JPXImage, + 0x38100000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_JPXImage L"JPXImage" + + +/* FORMAT_FirmwareFile + * + * MTP Format: Firmware (0xB802) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_FirmwareFile, + 0xB8020000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_FirmwareFile L"FirmwareFile" + + +/* FORMAT_WBMPImage + * + * MTP Format: Wireless Application Protocol Bitmap Format (0xB803) + * Suggested MIME Type: image/vnd.wap.wbmp + */ + +DEFINE_DEVSVCGUID(FORMAT_WBMPImage, + 0xB8030000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_WBMPImage L"WBMPImage" + + +/* FORMAT_JPEGXRImage + * + * MTP Format: JPEG XR, also known as HD Photo (0xB804) + * Suggested MIME Type: image/vnd.ms-photo + */ + +DEFINE_DEVSVCGUID(FORMAT_JPEGXRImage, + 0xB8040000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_JPEGXRImage L"JPEGXRImage" + + +/* FORMAT_HDPhotoImage + * + * MTP Format: HD Photo (Windows Media Photo) file (0xB881) + * Suggested MIME Type: image/vnd.ms-photo + */ + +DEFINE_DEVSVCGUID(FORMAT_HDPhotoImage, + 0xB8810000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_HDPhotoImage L"HDPhotoImage" + + +/* FORMAT_UndefinedAudio + * + * MTP Format: Undefined Audio (0xB900) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_UndefinedAudio, + 0xB9000000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_UndefinedAudio L"UndefinedAudio" + + +/* FORMAT_WMAFile + * + * MTP Format: WMA file (0xB901) + * Suggested MIME Type: audio/x-ms-wma + */ + +DEFINE_DEVSVCGUID(FORMAT_WMAFile, + 0xB9010000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_WMAFile L"WMAFile" + + +/* FORMAT_OGGFile + * + * MTP Format: OGG file (0xB902) + * Suggested MIME Type: audio/x-ogg + */ + +DEFINE_DEVSVCGUID(FORMAT_OGGFile, + 0xB9020000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_OGGFile L"OGGFile" + + +/* FORMAT_AACFile + * + * MTP Format: AAC file (0xB903) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AACFile, + 0xB9030000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AACFile L"AACFile" + + +/* FORMAT_AudibleFile + * + * MTP Format: Audible file (0xB904) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AudibleFile, + 0xB9040000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AudibleFile L"AudibleFile" + + +/* FORMAT_FLACFile + * + * MTP Format: FLAC file (0xB906) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_FLACFile, + 0xB9060000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_FLACFile L"FLACFile" + + +/* FORMAT_QCELPFile + * + * MTP Format: QCELP file (0xB907) + * Suggested MIME Type: audio/qcelp + */ + +DEFINE_DEVSVCGUID(FORMAT_QCELPFile, + 0xB9070000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_QCELPFile L"QCELPFile" + + +/* FORMAT_AMRFile + * + * MTP Format: AMR file (0xB908) + * Suggested MIME Type: audio/amr + */ + +DEFINE_DEVSVCGUID(FORMAT_AMRFile, + 0xB9080000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AMRFile L"AMRFile" + + +/* FORMAT_UndefinedVideo + * + * MTP Format: Undefined Video (0xB980) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_UndefinedVideo, + 0xB9890000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_UndefinedVideo L"UndefinedVideo" + + +/* FORMAT_WMVFile + * + * MTP Format: WMV file (0xB981) + * Suggested MIME Type: video/x-ms-wmv + */ + +DEFINE_DEVSVCGUID(FORMAT_WMVFile, + 0xB9810000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_WMVFile L"WMVFile" + + +/* FORMAT_MPEG4File + * + * MTP Format: MPEG-4 Video file (0xB982) + * Suggested MIME Type: video/mp4v-es + */ + +DEFINE_DEVSVCGUID(FORMAT_MPEG4File, + 0xB9820000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_MPEG4File L"MPEG4File" + + +/* FORMAT_MPEG2File + * + * MTP Format: MPEG-2 Video file (0xB983) + * Suggested MIME Type: video/mpeg + */ + +DEFINE_DEVSVCGUID(FORMAT_MPEG2File, + 0xB9830000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_MPEG2File L"MPEG2File" + + +/* FORMAT_3GPPFile + * + * MTP Format: 3GPP Video file (0xB984) + * Suggested MIME Type: video/3gpp + */ + +DEFINE_DEVSVCGUID(FORMAT_3GPPFile, + 0xB9840000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_3GPPFile L"3GPPFile" + + +/* FORMAT_3GPP2File + * + * MTP Format: 3GPP2 Video file (0xB985) + * Suggested MIME Type: video/3gpp2 + */ + +DEFINE_DEVSVCGUID(FORMAT_3GPP2File, + 0xB9850000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_3GPP2File L"3GPP2File" + + +/* FORMAT_AVCHDFile + * + * MTP Format: AVCHD Video file (0xB986) + * Suggested MIME Type: video/mp2t + */ + +DEFINE_DEVSVCGUID(FORMAT_AVCHDFile, + 0xB9860000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AVCHDFile L"AVCHDFile" + + +/* FORMAT_ATSCTSFile + * + * MTP Format: ATSC-TS Video file (0xB987) + * Suggested MIME Type: video/mp2t + */ + +DEFINE_DEVSVCGUID(FORMAT_ATSCTSFile, + 0xB9870000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_ATSCTSFile L"ATSCTSFile" + + +/* FORMAT_DVBTSFile + * + * MTP Format: DVB-TS Video file (0xB988) + * Suggested MIME Type: video/mp2t + */ + +DEFINE_DEVSVCGUID(FORMAT_DVBTSFile, + 0xB9880000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_DVBTSFile L"DVBTSFile" + + +/* FORMAT_UndefinedCollection + * + * MTP Format: Undefined Collection (0xBA00) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_UndefinedCollection, + 0xBA000000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_UndefinedCollection L"UndefinedCollection" + + +/* FORMAT_AbstractMultimediaAlbum + * + * MTP Format: Abstract Multimedia Album (0xBA01) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractMultimediaAlbum, + 0xBA010000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractMultimediaAlbum L"AbstractMultimediaAlbum" + + +/* FORMAT_AbstractImageAlbum + * + * MTP Format: Abstract Image Album (0xBA02) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractImageAlbum, + 0xBA020000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractImageAlbum L"AbstractImageAlbum" + + +/* FORMAT_AbstractAudioAlbum + * + * MTP Format: Abstract Audio Album (0xBA03) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractAudioAlbum, + 0xBA030000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractAudioAlbum L"AbstractAudioAlbum" + + +/* FORMAT_AbstractVideoAlbum + * + * MTP Format: Abstract Video Album (0xBA04) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractVideoAlbum, + 0xBA040000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractVideoAlbum L"AbstractVideoAlbum" + + +/* FORMAT_AbstractAudioVideoAlbum + * + * MTP Format: Abstract Audio & Video Playlist (0xBA05) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractAudioVideoAlbum, + 0xBA050000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractAudioVideoAlbum L"AbstractAudioVideoAlbum" + + +/* FORMAT_AbstractChapteredProduction + * + * MTP Format: Abstract Chaptered Production (0xBA08) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractChapteredProduction, + 0xBA080000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractChapteredProduction L"AbstractChapteredProduction" + + +/* FORMAT_AbstractAudioPlaylist + * + * MTP Format: Abstract Audio Playlist (0xBA09) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractAudioPlaylist, + 0xBA090000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractAudioPlaylist L"AbstractAudioPlaylist" + + +/* FORMAT_AbstractVideoPlaylist + * + * MTP Format: Abstract Video Playlist (0xBA0A) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractVideoPlaylist, + 0xBA0A0000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractVideoPlaylist L"AbstractVideoPlaylist" + + +/* FORMAT_AbstractMediacast + * + * MTP Format: Abstract Mediacast (0xBA0B) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractMediacast, + 0xBA0B0000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractMediacast L"AbstractMediacast" + + +/* FORMAT_WPLPlaylist + * + * MTP Format: WPL Playlist (0xBA10) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_WPLPlaylist, + 0xBA100000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_WPLPlaylist L"WPLPlaylist" + + +/* FORMAT_M3UPlaylist + * + * MTP Format: M3U Playlist (0xBA11) + * Suggested MIME Type: audio/mpeg-url + */ + +DEFINE_DEVSVCGUID(FORMAT_M3UPlaylist, + 0xBA110000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_M3UPlaylist L"M3UPlaylist" + + +/* FORMAT_MPLPlaylist + * + * MTP Format: MPL Playlist (0xBA12) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_MPLPlaylist, + 0xBA120000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_MPLPlaylist L"MPLPlaylist" + + +/* FORMAT_ASXPlaylist + * + * MTP Format: ASX Playlist (0xBA13) + * Suggested MIME Type: video/x-ms-asf + */ + +DEFINE_DEVSVCGUID(FORMAT_ASXPlaylist, + 0xBA130000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_ASXPlaylist L"ASXPlaylist" + + +/* FORMAT_PSLPlaylist + * + * MTP Format: PLS Playlist (0xBA14) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_PSLPlaylist, + 0xBA140000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_PSLPlaylist L"PSLPlaylist" + + +/* FORMAT_UndefinedDocument + * + * MTP Format: Undefined Document (0xBA80) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_UndefinedDocument, + 0xBA800000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_UndefinedDocument L"UndefinedDocument" + + +/* FORMAT_AbstractDocument + * + * MTP Format: Abstract Document (0xBA81) + * Suggested MIME Type: + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractDocument, + 0xBA810000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractDocument L"AbstractDocument" + + +/* FORMAT_XMLDocument + * + * MTP Format: XML Document (0xBA82) + * Suggested MIME Type: text/xml + */ + +DEFINE_DEVSVCGUID(FORMAT_XMLDocument, + 0xBA820000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_XMLDocument L"XMLDocument" + + +/* FORMAT_WordDocument + * + * MTP Format: Microsoft Word Document (0xBA83) + * Suggested MIME Type: application/msword + */ + +DEFINE_DEVSVCGUID(FORMAT_WordDocument, + 0xBA830000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_WordDocument L"WordDocument" + + +/* FORMAT_MHTDocument + * + * MTP Format: MHT Compiled HTML Document (0xBA84) + * Suggested MIME Type: message/rfc822 + */ + +DEFINE_DEVSVCGUID(FORMAT_MHTDocument, + 0xBA840000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_MHTDocument L"MHTDocument" + + +/* FORMAT_ExcelDocument + * + * MTP Format: Microsoft Excel Document (0xBA85) + * Suggested MIME Type: application/msexcel + */ + +DEFINE_DEVSVCGUID(FORMAT_ExcelDocument, + 0xBA850000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_ExcelDocument L"ExcelDocument" + + +/* FORMAT_PowerPointDocument + * + * MTP Format: Microsoft PowerPoint Document (0xBA86) + * Suggested MIME Type: application/mspowerpoint + */ + +DEFINE_DEVSVCGUID(FORMAT_PowerPointDocument, + 0xBA860000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_PowerPointDocument L"PowerPointDocument" + + +/*****************************************************************************/ +/* MTP Object Property Codes for Generic and Media Types */ +/*****************************************************************************/ + +/* GenericObj.ObjectID + * + * MTP Property: () + * Type: UInt128 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_ObjectID, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 2); + +#define NAME_GenericObj_ObjectID L"ObjectID" + + +/* GenericObj.ReferenceParentID + * + * MTP Property: This write only property is used when creating object references to help + hint the responder implementation to the parent item that this object will + be associated with. + () + * Type: UInt32 + * Form: ObjectID + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_ReferenceParentID, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +47); + +#define NAME_GenericObj_ReferenceParentID L"ReferenceParentID" + + +/* GenericObj.StorageID + * + * MTP Property: Storage ID (0xDC01) + * Type: UInt32 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_StorageID, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 23); + +#define NAME_GenericObj_StorageID L"StorageID" + + +/* GenericObj.ObjectFormat + * + * MTP Property: Object Format (0xDC02) + * Type: UInt16 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_ObjectFormat, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 6); + +#define NAME_GenericObj_ObjectFormat L"ObjectFormat" + + +/* GenericObj.ProtectionStatus + * + * MTP Property: Protection Status (0xDC03) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_ProtectionStatus, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 26); + +#define NAME_GenericObj_ProtectionStatus L"ProtectionStatus" + + +/* GenericObj.ObjectSize + * + * MTP Property: Object Size (0xDC04) + * Type: UInt64 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_ObjectSize, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 11); + +#define NAME_GenericObj_ObjectSize L"ObjectSize" + + +/* GenericObj.AssociationType + * + * MTP Property: Association Type (0xDC05) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_AssociationType, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +32); + +#define NAME_GenericObj_AssociationType L"AssociationType" + + +/* GenericObj.AssociationDesc + * + * MTP Property: Association Desc (0xDC06) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_AssociationDesc, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +33); + +#define NAME_GenericObj_AssociationDesc L"AssociationDesc" + + +/* GenericObj.ObjectFileName + * + * MTP Property: Object File Name (0xDC07) + * Type: String + * Form: None/RegEx + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_ObjectFileName, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 12); + +#define NAME_GenericObj_ObjectFileName L"ObjectFileName" + + +/* GenericObj.DateCreated + * + * MTP Property: Date Created (0xDC08) + * Type: String + * Form: DateTime + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_DateCreated, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +39); + +#define NAME_GenericObj_DateCreated L"DateCreated" + + +/* GenericObj.DateModified + * + * MTP Property: Date Modified (0xDC09) + * Type: String + * Form: DateTime + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_DateModified, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +40); + +#define NAME_GenericObj_DateModified L"DateModified" + + +/* GenericObj.Keywords + * + * MTP Property: Keywords (0xDC0A) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_Keywords, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 15); + +#define NAME_GenericObj_Keywords L"Keywords" + + +/* GenericObj.ParentID + * + * MTP Property: Parent Object (0xDC0B) + * Type: UInt32 + * Form: ObjectID + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_ParentID, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 3); + +#define NAME_GenericObj_ParentID L"ParentID" + + +/* GenericObj.AllowedFolderContents + * + * MTP Property: Allowed Folder Contents (0xDC0C) + * Type: AUInt16 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_AllowedFolderContents, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +34); + +#define NAME_GenericObj_AllowedFolderContents L"AllowedFolderContents" + + +/* GenericObj.Hidden + * + * MTP Property: Hidden (0xDC0D) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_Hidden, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +28); + +#define NAME_GenericObj_Hidden L"Hidden" + + +/* GenericObj.SystemObject + * + * MTP Property: System Object (0xDC0E) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_SystemObject, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +29); + +#define NAME_GenericObj_SystemObject L"SystemObject" + + +/* GenericObj.PersistentUID + * + * MTP Property: Persistent Unique Object ID (0xDC41) + * Type: UInt128 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_PersistentUID, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 5); + +#define NAME_GenericObj_PersistentUID L"PersistentUID" + + +/* GenericObj.SyncID + * + * MTP Property: Sync ID (0xDC42) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_SyncID, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 16); + +#define NAME_GenericObj_SyncID L"SyncID" + + +/* GenericObj.PropertyBag + * + * MTP Property: Property Bag (0xDC43) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_PropertyBag, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +35); + +#define NAME_GenericObj_PropertyBag L"PropertyBag" + + +/* GenericObj.Name + * + * MTP Property: Name (0xDC44) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_Name, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 4); + +#define NAME_GenericObj_Name L"Name" + + +/* MediaObj.Artist + * + * MTP Property: Artist (0xDC46) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Artist, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 24); + +#define NAME_MediaObj_Artist L"Artist" + + +/* GenericObj.DateAuthored + * + * MTP Property: Date Authored (0xDC47) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_DateAuthored, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +41); + +#define NAME_GenericObj_DateAuthored L"DateAuthored" + + +/* GenericObj.Description + * + * MTP Property: Description (0xDC48) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_Description, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +45); + +#define NAME_GenericObj_Description L"Description" + + +/* GenericObj.LanguageLocale + * + * MTP Property: Language Locale (0xDC4A) + * Type: String + * Form: RegEx + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_LanguageLocale, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, + 27); + +#define NAME_GenericObj_LanguageLocale L"LanguageLocale" + + +/* GenericObj.Copyright + * + * MTP Property: Copyright Information (0xDC4B) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_Copyright, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +38); + +#define NAME_GenericObj_Copyright L"Copyright" + + +/* VideoObj.Source + * + * MTP Property: Source (0xDC4C) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_VideoObj_Source, + 0x346F2163, 0xF998, 0x4146, 0x8B, 0x01, 0xD1, 0x9B, 0x4C, 0x00, 0xDE, 0x9A, + 4); + +#define NAME_VideoObj_Source L"Source" + + +/* MediaObj.GeographicOrigin + * + * MTP Property: Origin Location (0xDC4D) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_GeographicOrigin, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, +40); + +#define NAME_MediaObj_GeographicOrigin L"GeographicOrigin" + + +/* GenericObj.DateAdded + * + * MTP Property: Date Added (0xDC4E) + * Type: String + * Form: DateTime + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_DateAdded, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +36); + +#define NAME_GenericObj_DateAdded L"DateAdded" + + +/* GenericObj.NonConsumable + * + * MTP Property: Non-Consumable (0xDC4F) + * Type: UInt8 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_NonConsumable, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +30); + +#define NAME_GenericObj_NonConsumable L"NonConsumable" + + +/* GenericObj.Corrupt + * + * MTP Property: Corrupt (0xDC50) + * Type: UInt8 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_Corrupt, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +37); + +#define NAME_GenericObj_Corrupt L"Corrupt" + + +/* MediaObj.Width + * + * MTP Property: Width (0xDC87) + * Type: UInt32 + * Form: Range + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Width, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 22); + +#define NAME_MediaObj_Width L"Width" + + +/* MediaObj.Height + * + * MTP Property: Height (0xDC88) + * Type: UInt32 + * Form: Range + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Height, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 23); + +#define NAME_MediaObj_Height L"Height" + + +/* MediaObj.Duration + * + * MTP Property: Duration (0xDC89) + * Type: UInt32 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Duration, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 19); + +#define NAME_MediaObj_Duration L"Duration" + + +/* MediaObj.UserRating + * + * MTP Property: Rating (0xDC8A) + * Type: UInt16 + * Form: Range + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_UserRating, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 17); + +#define NAME_MediaObj_UserRating L"UserRating" + + +/* MediaObj.Track + * + * MTP Property: Track (0xDC8B) + * Type: UInt16 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Track, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, +43); + +#define NAME_MediaObj_Track L"Track" + + +/* MediaObj.Genre + * + * MTP Property: Genre (0xDC8C) + * Type: String + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Genre, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 32); + +#define NAME_MediaObj_Genre L"Genre" + + +/* MediaObj.Credits + * + * MTP Property: Credits (0xDC8D) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Credits, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, +47); + +#define NAME_MediaObj_Credits L"Credits" + + +/* AudioObj.Lyrics + * + * MTP Property: Lyrics (0xDC8E) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AudioObj_Lyrics, + 0xB324F56A, 0xDC5D, 0x46E5, 0xB6, 0xDF, 0xD2, 0xEA, 0x41, 0x48, 0x88, 0xC6, + 6); + +#define NAME_AudioObj_Lyrics L"Lyrics" + + +/* MediaObj.SubscriptionContentID + * + * MTP Property: Subscription Content ID (0xDC8F) + * Type: String + * Form: RegEx + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_SubscriptionContentID, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 5); + +#define NAME_MediaObj_SubscriptionContentID L"SubscriptionContentID" + + +/* MediaObj.Producer + * + * MTP Property: Produced By (0xDC90) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Producer, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, +45); + +#define NAME_MediaObj_Producer L"Producer" + + +/* MediaObj.UseCount + * + * MTP Property: Use Count (0xDC91) + * Type: UInt32 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_UseCount, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 6); + +#define NAME_MediaObj_UseCount L"UseCount" + + +/* MediaObj.SkipCount + * + * MTP Property: Skip Count (0xDC92) + * Type: UInt32 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_SkipCount, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 7); + +#define NAME_MediaObj_SkipCount L"SkipCount" + + +/* GenericObj.DateAccessed + * + * MTP Property: Last Accessed (0xDC93) + * Type: String + * Form: DateTime + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_DateAccessed, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +42); + +#define NAME_GenericObj_DateAccessed L"DateAccessed" + + +/* MediaObj.ParentalRating + * + * MTP Property: Parental Rating (0xDC94) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_ParentalRating, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 9); + +#define NAME_MediaObj_ParentalRating L"ParentalRating" + + +/* MediaObj.MediaType + * + * MTP Property: Meta Genre (0xDC95) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_MediaType, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 10); + +#define NAME_MediaObj_MediaType L"MediaType" + + +/* MediaObj.Composer + * + * MTP Property: Composer (0xDC96) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Composer, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 11); + +#define NAME_MediaObj_Composer L"Composer" + + +/* MediaObj.EffectiveRating + * + * MTP Property: Effective Rating (0xDC97) + * Type: UInt16 + * Form: Range + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_EffectiveRating, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 12); + +#define NAME_MediaObj_EffectiveRating L"EffectiveRating" + + +/* MediaObj.Subtitle + * + * MTP Property: Subtitle (0xDC98) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Subtitle, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 13); + +#define NAME_MediaObj_Subtitle L"Subtitle" + + +/* MediaObj.DateOriginalRelease + * + * MTP Property: Original Release Date (0xDC99) + * Type: String + * Form: DateTime + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_DateOriginalRelease, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, +41); + +#define NAME_MediaObj_DateOriginalRelease L"DateOriginalRelease" + + +/* MediaObj.AlbumName + * + * MTP Property: Album Name (0xDC9A) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_AlbumName, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, +42); + +#define NAME_MediaObj_AlbumName L"AlbumName" + + +/* MediaObj.AlbumArtist + * + * MTP Property: Album Artist (0xDC9B) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_AlbumArtist, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 25); + +#define NAME_MediaObj_AlbumArtist L"AlbumArtist" + + +/* MediaObj.Mood + * + * MTP Property: Mood (0xDC9C) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Mood, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, +44); + +#define NAME_MediaObj_Mood L"Mood" + + +/* GenericObj.DRMStatus + * + * MTP Property: DRM Status (0xDC9D) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_DRMStatus, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +31); + +#define NAME_GenericObj_DRMStatus L"DRMStatus" + + +/* GenericObj.SubDescription + * + * MTP Property: Sub Description (0xDC9E) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_SubDescription, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +46); + +#define NAME_GenericObj_SubDescription L"SubDescription" + + +/* ImageObj.IsCropped + * + * MTP Property: Is Cropped (0xDCD1) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ImageObj_IsCropped, + 0x63D64908, 0x9FA1, 0x479F, 0x85, 0xBA, 0x99, 0x52, 0x21, 0x64, 0x47, 0xDB, + 4); + +#define NAME_ImageObj_IsCropped L"IsCropped" + + +/* ImageObj.IsColorCorrected + * + * MTP Property: Is Colour Corrected (0xDCD2) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ImageObj_IsColorCorrected, + 0x63D64908, 0x9FA1, 0x479F, 0x85, 0xBA, 0x99, 0x52, 0x21, 0x64, 0x47, 0xDB, + 5); + +#define NAME_ImageObj_IsColorCorrected L"IsColorCorrected" + + +/* ImageObj.ImageBitDepth + * + * MTP Property: Image Bit Depth (0xDCD3) + * Type: UInt32 + * Form: Range/Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ImageObj_ImageBitDepth, + 0x63D64908, 0x9FA1, 0x479F, 0x85, 0xBA, 0x99, 0x52, 0x21, 0x64, 0x47, 0xDB, + 3); + +#define NAME_ImageObj_ImageBitDepth L"ImageBitDepth" + + +/* ImageObj.Aperature + * + * MTP Property: Fnumber (0xDCD4) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ImageObj_Aperature, + 0x63D64908, 0x9FA1, 0x479F, 0x85, 0xBA, 0x99, 0x52, 0x21, 0x64, 0x47, 0xDB, + 6); + +#define NAME_ImageObj_Aperature L"Aperature" + + +/* ImageObj.Exposure + * + * MTP Property: Exposure Time (0xDCD5) + * Type: UInt32 + * Form: Range/Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ImageObj_Exposure, + 0x63D64908, 0x9FA1, 0x479F, 0x85, 0xBA, 0x99, 0x52, 0x21, 0x64, 0x47, 0xDB, + 7); + +#define NAME_ImageObj_Exposure L"Exposure" + + +/* ImageObj.ISOSpeed + * + * MTP Property: Exposure Index (0xDCD6) + * Type: UInt16 + * Form: Range/Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ImageObj_ISOSpeed, + 0x63D64908, 0x9FA1, 0x479F, 0x85, 0xBA, 0x99, 0x52, 0x21, 0x64, 0x47, 0xDB, + 8); + +#define NAME_ImageObj_ISOSpeed L"ISOSpeed" + + +/* MediaObj.Owner + * + * MTP Property: Owner (0xDD5D) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Owner, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 26); + +#define NAME_MediaObj_Owner L"Owner" + + +/* MediaObj.Editor + * + * MTP Property: Editor (0xDD5E) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_Editor, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 27); + +#define NAME_MediaObj_Editor L"Editor" + + +/* MediaObj.WebMaster + * + * MTP Property: WebMaster (0xDD5F) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_WebMaster, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 28); + +#define NAME_MediaObj_WebMaster L"WebMaster" + + +/* MediaObj.URLSource + * + * MTP Property: URL Source (0xDD60) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_URLSource, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 29); + +#define NAME_MediaObj_URLSource L"URLSource" + + +/* MediaObj.URLLink + * + * MTP Property: URL Destination (0xDD61) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_URLLink, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 30); + +#define NAME_MediaObj_URLLink L"URLLink" + + +/* MediaObj.BookmarkTime + * + * MTP Property: Time Bookmark (0xDD62) + * Type: UInt32 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_BookmarkTime, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 33); + +#define NAME_MediaObj_BookmarkTime L"BookmarkTime" + + +/* MediaObj.BookmarkObject + * + * MTP Property: Object Bookmark (0xDD63) + * Type: UInt32 + * Form: ObjectID + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_BookmarkObject, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 34); + +#define NAME_MediaObj_BookmarkObject L"BookmarkObject" + + +/* MediaObj.BookmarkByte + * + * MTP Property: Byte Bookmark (0xDD64) + * Type: UInt64 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_BookmarkByte, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 36); + +#define NAME_MediaObj_BookmarkByte L"BookmarkByte" + + +/* GenericObj.DateRevised + * + * MTP Property: Last Build Date (0xDD70) + * Type: String + * Form: DateTime + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_DateRevised, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +43); + +#define NAME_GenericObj_DateRevised L"DateRevised" + + +/* GenericObj.TimeToLive + * + * MTP Property: Time To Live (0xDD71) + * Type: UInt64 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_GenericObj_TimeToLive, + 0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, +44); + +#define NAME_GenericObj_TimeToLive L"TimeToLive" + + +/* MediaObj.MediaUID + * + * MTP Property: Media GUID (0xDD72) + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_MediaUID, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 38); + +#define NAME_MediaObj_MediaUID L"MediaUID" + + +/* MediaObj.TotalBitRate + * + * MTP Property: Total Bit Rate (0xDE91) + * Type: UInt32 + * Form: Range/Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_TotalBitRate, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 2); + +#define NAME_MediaObj_TotalBitRate L"TotalBitRate" + + +/* MediaObj.BitRateType + * + * MTP Property: Bit Rate Type (0xDE92) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_BitRateType, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 3); + +#define NAME_MediaObj_BitRateType L"BitRateType" + + +/* MediaObj.SampleRate + * + * MTP Property: Sample Rate (0xDE93) + * Type: UInt32 + * Form: Range/Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_SampleRate, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 15); + +#define NAME_MediaObj_SampleRate L"SampleRate" + + +/* AudioObj.Channels + * + * MTP Property: Number of Channels (0xDE94) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AudioObj_Channels, + 0xB324F56A, 0xDC5D, 0x46E5, 0xB6, 0xDF, 0xD2, 0xEA, 0x41, 0x48, 0x88, 0xC6, + 10); + +#define NAME_AudioObj_Channels L"Channels" + + +/* AudioObj.AudioBitDepth + * + * MTP Property: Audio Bit Depth (0xDE95) + * Type: UInt32 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AudioObj_AudioBitDepth, + 0xB324F56A, 0xDC5D, 0x46E5, 0xB6, 0xDF, 0xD2, 0xEA, 0x41, 0x48, 0x88, 0xC6, + 12); + +#define NAME_AudioObj_AudioBitDepth L"AudioBitDepth" + + +/* AudioObj.AudioBlockAlignment + * + * MTP Property: Audio Block Alignment (0xDE96) + * Type: UInt32 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AudioObj_AudioBlockAlignment, + 0xB324F56A, 0xDC5D, 0x46E5, 0xB6, 0xDF, 0xD2, 0xEA, 0x41, 0x48, 0x88, 0xC6, + 13); + +#define NAME_AudioObj_AudioBlockAlignment L"AudioBlockAlignment" + + +/* VideoObj.ScanType + * + * MTP Property: Video Scan Type (0xDE97) + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_VideoObj_ScanType, + 0x346F2163, 0xF998, 0x4146, 0x8B, 0x01, 0xD1, 0x9B, 0x4C, 0x00, 0xDE, 0x9A, + 12); + +#define NAME_VideoObj_ScanType L"ScanType" + + +/* AudioObj.AudioFormatCode + * + * MTP Property: Audio WAVE Codec (0xDE99) + * Type: UInt32 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AudioObj_AudioFormatCode, + 0xB324F56A, 0xDC5D, 0x46E5, 0xB6, 0xDF, 0xD2, 0xEA, 0x41, 0x48, 0x88, 0xC6, + 11); + +#define NAME_AudioObj_AudioFormatCode L"AudioFormatCode" + + +/* AudioObj.AudioBitRate + * + * MTP Property: Audio Bit Rate (0xDE9A) + * Type: UInt32 + * Form: Range/Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_AudioObj_AudioBitRate, + 0xB324F56A, 0xDC5D, 0x46E5, 0xB6, 0xDF, 0xD2, 0xEA, 0x41, 0x48, 0x88, 0xC6, + 9); + +#define NAME_AudioObj_AudioBitRate L"AudioBitRate" + + +/* VideoObj.VideoFormatCode + * + * MTP Property: Video FourCC Codec (0xDE9B) + * Type: UInt32 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_VideoObj_VideoFormatCode, + 0x346F2163, 0xF998, 0x4146, 0x8B, 0x01, 0xD1, 0x9B, 0x4C, 0x00, 0xDE, 0x9A, + 14); + +#define NAME_VideoObj_VideoFormatCode L"VideoFormatCode" + + +/* VideoObj.VideoBitRate + * + * MTP Property: Video Bit Rate (0xDE9C) + * Type: UInt32 + * Form: Range/Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_VideoObj_VideoBitRate, + 0x346F2163, 0xF998, 0x4146, 0x8B, 0x01, 0xD1, 0x9B, 0x4C, 0x00, 0xDE, 0x9A, + 13); + +#define NAME_VideoObj_VideoBitRate L"VideoBitRate" + + +/* VideoObj.VideoFrameRate + * + * MTP Property: Frames Per Thousand Seconds (0xDE9D) + * Type: UInt32 + * Form: Range/Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_VideoObj_VideoFrameRate, + 0x346F2163, 0xF998, 0x4146, 0x8B, 0x01, 0xD1, 0x9B, 0x4C, 0x00, 0xDE, 0x9A, + 15); + +#define NAME_VideoObj_VideoFrameRate L"VideoFrameRate" + + +/* VideoObj.KeyFrameDistance + * + * MTP Property: Key Frame Distance (0xDE9E) + * Type: UInt32 + * Form: Range + */ + +DEFINE_DEVSVCPROPKEY(PKEY_VideoObj_KeyFrameDistance, + 0x346F2163, 0xF998, 0x4146, 0x8B, 0x01, 0xD1, 0x9B, 0x4C, 0x00, 0xDE, 0x9A, + 10); + +#define NAME_VideoObj_KeyFrameDistance L"KeyFrameDistance" + + +/* MediaObj.BufferSize + * + * MTP Property: Buffer Size (0xDE9F) + * Type: UInt32 + * Form: Range + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_BufferSize, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, +46); + +#define NAME_MediaObj_BufferSize L"BufferSize" + + +/* MediaObj.EncodingQuality + * + * MTP Property: Encoding Quality (0xDEA0) + * Type: UInt32 + * Form: Range + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_EncodingQuality, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, +48); + +#define NAME_MediaObj_EncodingQuality L"EncodingQuality" + + +/* MediaObj.EncodingProfile + * + * MTP Property: Encoding Profile (0xDEA1) + * Type: String + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_EncodingProfile, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 21); + +#define NAME_MediaObj_EncodingProfile L"EncodingProfile" + + +/* MediaObj.AudioEncodingProfile + * + * MTP Property: Audio Encoding Profile (0xDEA2) + * Type: String + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_MediaObj_AudioEncodingProfile, + 0x2ED8BA05, 0x0AD3, 0x42DC, 0xB0, 0xD0, 0xBC, 0x95, 0xAC, 0x39, 0x6A, 0xC8, + 49); + +#define NAME_MediaObj_AudioEncodingProfile L"AudioEncodingProfile" + + +#endif /* _BRIDGEDEVICESERVICE_H_ */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/bthledef.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bthledef.h new file mode 100644 index 0000000000000000000000000000000000000000..8781f42ffe0a5897f2c3e561235f7999f4a91644 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/bthledef.h @@ -0,0 +1,593 @@ +/*++ + +Copyright (c) 2010 Microsoft Corporation + +Module Name: + + BthLEDef.h + +Abstract: + + Public Bluetooth Low Energy Definitions + +Environment: + + User mode + --*/ + +#ifndef __BTHLEDEF_H__ +#define __BTHLEDEF_H__ + +#ifdef _MSC_VER +#pragma once +#endif //_MSC_VER +#include + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4200) // +#pragma warning(disable:4201) // nameless struct/union +#pragma warning(disable:4214) // bit field types other than int +#endif //_MSC_VER + +#if NTDDI_VERSION >= NTDDI_WIN8 + + +// +// Bluetooth LE device interface GUID +// +// {781aee18-7733-4ce4-add0-91f41c67b592} +DEFINE_GUID(GUID_BLUETOOTHLE_DEVICE_INTERFACE, 0x781aee18, 0x7733, 0x4ce4, 0xad, 0xd0, 0x91, 0xf4, 0x1c, 0x67, 0xb5, 0x92); + +// +// Bluetooth LE Service device interface GUID +// +// {6e3bb679-4372-40c8-9eaa-4509df260cd8} +DEFINE_GUID(GUID_BLUETOOTH_GATT_SERVICE_DEVICE_INTERFACE, 0x6e3bb679, 0x4372, 0x40c8, 0x9e, 0xaa, 0x45, 0x09, 0xdf, 0x26, 0x0c, 0xd8); + + + +DEFINE_GUID(BTH_LE_ATT_BLUETOOTH_BASE_GUID, 0x00000000, 0x0000, 0x1000, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB); + + +//////////////////////////////////////////////////////////////////////////////// +// GATT Constants +//////////////////////////////////////////////////////////////////////////////// + +// +// Services UUIDs (Assigned numbers) +// +#define BTH_LE_SERVICE_GAP (0x1800) +#define BTH_LE_SERVICE_GATT (0x1801) + +// +// GATT attribute types (Assigned numbers) +// +#define BTH_LE_GATT_ATTRIBUTE_TYPE_PRIMARY_SERVICE (0x2800) +#define BTH_LE_GATT_ATTRIBUTE_TYPE_SECONDARY_SERVICE (0x2801) +#define BTH_LE_GATT_ATTRIBUTE_TYPE_INCLUDE (0x2802) +#define BTH_LE_GATT_ATTRIBUTE_TYPE_CHARACTERISTIC (0x2803) + +// +// GATT Characteristic Descriptors (Assigned numbers) +// +#define BTH_LE_GATT_CHARACTERISTIC_DESCRIPTOR_EXTENDED_PROPERTIES (0x2900) +#define BTH_LE_GATT_CHARACTERISTIC_DESCRIPTOR_USER_DESCRIPTION (0x2901) +#define BTH_LE_GATT_CHARACTERISTIC_DESCRIPTOR_CLIENT_CONFIGURATION (0x2902) +#define BTH_LE_GATT_CHARACTERISTIC_DESCRIPTOR_SERVER_CONFIGURATION (0x2903) +#define BTH_LE_GATT_CHARACTERISTIC_DESCRIPTOR_FORMAT (0x2904) +#define BTH_LE_GATT_CHARACTERISTIC_DESCRIPTOR_AGGREGATE_FORMAT (0x2905) + +// +// GATT Characteristic Types (Assigned numbers) +// +#define BTH_LE_GATT_CHARACTERISTIC_TYPE_DEVICE_NAME (0x2A00) +#define BTH_LE_GATT_CHARACTERISTIC_TYPE_APPEARANCE (0x2A01) +#define BTH_LE_GATT_CHARACTERISTIC_TYPE_PERIPHERAL_PRIVACY_FLAG (0x2A02) +#define BTH_LE_GATT_CHARACTERISTIC_TYPE_RECONNECTION_ADDRESS (0x2A03) +#define BTH_LE_GATT_CHARACTERISTIC_TYPE_PERIPHERAL_PREFERED_CONNECTION_PARAMETER \ + (0x2A04) +#define BTH_LE_GATT_CHARACTERISTIC_TYPE_SERVICE_CHANGED (0x2A05) + + +#define BTH_LE_GAP_APPEARANCE_CATEGORY_OFFSET 0x6 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_MASK 0x3ff + + +#define BTH_LE_GAP_APPEARANCE_GET_CATEGORY(a) \ + ((a >> BTH_LE_GAP_APPEARANCE_CATEGORY_OFFSET) & BTH_LE_GAP_APPEARANCE_CATEGORY_MASK) + +#define BTH_LE_GAP_APPEARANCE_SET_CATEGORY(a, c) \ + a = ((a & ~BTH_LE_GAP_APPEARANCE_CATEGORY_MASK) | (c << BTH_LE_GAP_APPEARANCE_CATEGORY_OFFSET)) + +#define BTH_LE_GAP_APPEARANCE_SUB_CATEGORY_MASK 0x3f + +#define BTH_LE_GAP_APPEARANCE_GET_SUB_CATEGORY(a) \ + ((UCHAR)(a & BTH_LE_GAP_APPEARANCE_SUB_CATEGORY_MASK)) + +#define BTH_LE_GAP_APPEARANCE_SET_SUB_CATEGORY(a, s) \ + a = ((a & ~BTH_LE_GAP_APPEARANCE_SUB_CATEGORY_MASK) | s) + +#define BTH_LE_GAP_APPEARANCE_CATEGORY_UNCATEGORIZED 0x0000 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_PHONE 0x0001 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_COMPUTER 0x0002 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_WATCH 0x0003 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_CLOCK 0x0004 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_DISPLAY 0x0005 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_REMOTE_CONTROL 0x0006 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_EYE_GLASSES 0x0007 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_TAG 0x0008 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_KEYRING 0x0009 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_MEDIA_PLAYER 0x000a +#define BTH_LE_GAP_APPEARANCE_CATEGORY_BARCODE_SCANNER 0x000b +#define BTH_LE_GAP_APPEARANCE_CATEGORY_THERMOMETER 0x000c +#define BTH_LE_GAP_APPEARANCE_CATEGORY_HEART_RATE 0x000d +#define BTH_LE_GAP_APPEARANCE_CATEGORY_BLOOD_PRESSURE 0x000e +#define BTH_LE_GAP_APPEARANCE_CATEGORY_HID 0x000f +#define BTH_LE_GAP_APPEARANCE_CATEGORY_GLUCOSE_METER 0x0010 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_RUNNING_WALKING_SENSOR \ + 0x0011 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_CYCLING 0x0012 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_CONTROL_DEVICE 0x0013 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_NETWORK_DEVICE 0x0014 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_SENSOR 0x0015 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_LIGHT_FIXTURES 0x0016 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_FAN 0x0017 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_HVAC 0x0018 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_AIR_CONDITIONING 0x0019 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_HUMIDIFIER 0x001A +#define BTH_LE_GAP_APPEARANCE_CATEGORY_HEATING 0x001B +#define BTH_LE_GAP_APPEARANCE_CATEGORY_ACCESS_CONTROL 0x001C +#define BTH_LE_GAP_APPEARANCE_CATEGORY_MOTORIZED_DEVICE 0x001D +#define BTH_LE_GAP_APPEARANCE_CATEGORY_POWER_DEVICE 0x001E +#define BTH_LE_GAP_APPEARANCE_CATEGORY_LIGHT_SOURCE 0x001F +#define BTH_LE_GAP_APPEARANCE_CATEGORY_WINDOW_COVERING 0x0020 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_AUDIO_SINK 0x0021 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_AUDIO_SOURCE 0x0022 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_MOTORIZED_VEHICLE 0x0023 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_DOMESTIC_APPLIANCE 0x0024 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_WEARABLE_AUDIO_DEVICE \ + 0x0025 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_AIRCRAFT 0x0026 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_AV_EQUIPMENT 0x0027 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_DISPLAY_EQUIPMENT 0x0028 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_HEARING_AID 0x0029 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_GAMING 0x002A +#define BTH_LE_GAP_APPEARANCE_CATEGORY_SIGNAGE 0x002B +#define BTH_LE_GAP_APPEARANCE_CATEGORY_PLUSE_OXIMETER 0x0031 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_WEIGHT_SCALE 0x0032 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_PERSONAL_MOBILITY_DEVICE \ + 0x0033 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_CONTINUOUS_GLUCOSE_MONITOR \ + 0x0034 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_INSULIN_PUMP 0x0035 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_MEDICATION_DELIVERY 0x0036 +#define BTH_LE_GAP_APPEARANCE_CATEGORY_OUTDOOR_SPORTS_ACTIVITY \ + 0x0051 + +#define BTH_LE_GAP_APPEARANCE_SUBCATEGORY_GENERIC 0x00 + +#define BTH_LE_GAP_APPEARANCE_WATCH_SUBCATEGORY_SPORTS_WATCH \ + 0x01 + +#define BTH_LE_GAP_APPEARANCE_THERMOMETER_SUBCATEGORY_EAR 0x01 + +#define BTH_LE_GAP_APPEARANCE_HEART_RATE_SUBCATEGORY_HEART_RATE_BELT \ + 0x01 + +#define BTH_LE_GAP_APPEARANCE_BLOOD_PRESSURE_SUBCATEGORY_ARM \ + 0x01 +#define BTH_LE_GAP_APPEARANCE_BLOOD_PRESSURE_SUBCATEGORY_WRIST \ + 0x02 + +#define BTH_LE_GAP_APPEARANCE_HID_SUBCATEGORY_KEYBOARD 0x01 +#define BTH_LE_GAP_APPEARANCE_HID_SUBCATEGORY_MOUSE 0x02 +#define BTH_LE_GAP_APPEARANCE_HID_SUBCATEGORY_JOYSTICK 0x03 +#define BTH_LE_GAP_APPEARANCE_HID_SUBCATEGORY_GAMEPAD 0x04 +#define BTH_LE_GAP_APPEARANCE_HID_SUBCATEGORY_DIGITIZER_TABLET \ + 0x05 +#define BTH_LE_GAP_APPEARANCE_HID_SUBCATEGORY_CARD_READER 0x06 +#define BTH_LE_GAP_APPEARANCE_HID_SUBCATEGORY_DIGITAL_PEN 0x07 +#define BTH_LE_GAP_APPEARANCE_HID_SUBCATEGORY_BARCODE_SCANNER \ + 0x08 +#define BTH_LE_GAP_APPEARANCE_HID_SUBCATEGORY_TOUCHPAD 0x09 +#define BTH_LE_GAP_APPEARANCE_HID_SUBCATEGORY_PRESENTATION_REMOTE \ + 0x0A + +#define BTH_LE_GAP_APPEARANCE_RUNNING_WALKING_SENSOR_SUBCATEGORY_IN_SHOE \ + 0x01 +#define BTH_LE_GAP_APPEARANCE_RUNNING_WALKING_SENSOR_SUBCATEGORY_ON_SHOE \ + 0x02 +#define BTH_LE_GAP_APPEARANCE_RUNNING_WALKING_SENSOR_SUBCATEGORY_ON_HIP \ + 0x03 + +#define BTH_LE_GAP_APPEARANCE_CYCLING_SUBCATEGORY_CYCLING_COMPUTER \ + 0x01 +#define BTH_LE_GAP_APPEARANCE_CYCLING_SUBCATEGORY_SPEED_SENSOR \ + 0x02 +#define BTH_LE_GAP_APPEARANCE_CYCLING_SUBCATEGORY_CADENCE_SENSOR \ + 0x03 +#define BTH_LE_GAP_APPEARANCE_CYCLING_SUBCATEGORY_POWER_SENSOR \ + 0x04 +#define BTH_LE_GAP_APPEARANCE_CYCLING_SUBCATEGORY_SPEED_AND_CADENCE_SENSOR \ + 0x05 + +#define BTH_LE_GAP_APPEARANCE_AUDIO_SINK_SUBCATEGORY_STANDALONE_SPEAKER \ + 0x01 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SINK_SUBCATEGORY_SOUNDBAR \ + 0x02 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SINK_SUBCATEGORY_BOOKSHELF_SPEAKER \ + 0x03 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SINK_SUBCATEGORY_STANDMOUNTED_SPEAKER \ + 0x04 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SINK_SUBCATEGORY_SPEAKERPHONE \ + 0x05 + +#define BTH_LE_GAP_APPEARANCE_AUDIO_SOURCE_SUBCATEGORY_MICROPHONE \ + 0x01 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SOURCE_SUBCATEGORY_ALARM \ + 0x02 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SOURCE_SUBCATEGORY_BELL 0x03 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SOURCE_SUBCATEGORY_HORN 0x04 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SOURCE_SUBCATEGORY_BROADCASTING_DEVICE \ + 0x05 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SOURCE_SUBCATEGORY_SERVICE_DESK \ + 0x06 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SOURCE_SUBCATEGORY_KIOSK \ + 0x07 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SOURCE_SUBCATEGORY_BROADCASTING_ROOM \ + 0x08 +#define BTH_LE_GAP_APPEARANCE_AUDIO_SOURCE_SUBCATEGORY_AUDITORIUM \ + 0x09 + +#define BTH_LE_GAP_APPEARANCE_WEARABLE_AUDIO_DEVICE_SUBCATEGORY_EARBUD \ + 0x01 +#define BTH_LE_GAP_APPEARANCE_WEARABLE_AUDIO_DEVICE_SUBCATEGORY_HEADSET \ + 0x02 +#define BTH_LE_GAP_APPEARANCE_WEARABLE_AUDIO_DEVICE_SUBCATEGORY_HEADPHONES \ + 0x03 +#define BTH_LE_GAP_APPEARANCE_WEARABLE_AUDIO_DEVICE_SUBCATEGORY_NECKBAND \ + 0x04 + +#define BTH_LE_GAP_APPEARANCE_HEARING_AID_SUBCATEGORY_IN_EAR_HEARING_AID \ + 0x01 +#define BTH_LE_GAP_APPEARANCE_HEARING_AID_SUBCATEGORY_BEHIND_EAR_HEARING_AID \ + 0x02 +#define BTH_LE_GAP_APPEARANCE_HEARING_AID_SUBCATEGORY_COCHLEAR_IMPLANT \ + 0x03 + +#define BTH_LE_GAP_APPEARANCE_PULSE_OXIMETER_SUBCATEGORY_FINGERTIP \ + 0x01 +#define BTH_LE_GAP_APPEARANCE_PULSE_OXIMETER_SUBCATEGORY_WRIST_WORN \ + 0x02 + +#define BTH_LE_GAP_APPEARANCE_OUTDOOR_SPORTS_ACTIVITY_SUBCATEGORY_LOCATION_DISPLAY_DEVICE \ + 0x01 +#define BTH_LE_GAP_APPEARANCE_OUTDOOR_SPORTS_ACTIVITY_SUBCATEGORY_LOCATION_NAVIGATION_DISPLAY_DEVICE \ + 0x02 +#define BTH_LE_GAP_APPEARANCE_OUTDOOR_SPORTS_ACTIVITY_SUBCATEGORY_LOCATION_POD \ + 0x03 +#define BTH_LE_GAP_APPEARANCE_OUTDOOR_SPORTS_ACTIVITY_SUBCATEGORY_LOCATION_NAVIGATION_POD \ + 0x04 + +// +// GATT Included Services Default Maximum Nested Depth +// +#define BTH_LE_GATT_DEFAULT_MAX_INCLUDED_SERVICES_DEPTH (3) + +//////////////////////////////////////////////////////////////////////////////// +// ATT Constants +//////////////////////////////////////////////////////////////////////////////// + +// +// Transation timeout +// +#define BTH_LE_ATT_TRANSACTION_TIMEOUT 30 // seconds + +// +// Maximum size of any attribute value +// +#define BTH_LE_ATT_MAX_VALUE_SIZE 512 + +// +// CID +// +#define BTH_LE_ATT_CID (0x0004) + +// +// MTU +// +#define BTHLEENUM_ATT_MTU_MIN (23) +#define BTHLEENUM_ATT_MTU_MAX (0xFFFF) +#define BTHLEENUM_ATT_MTU_DEFAULT (BTHLEENUM_ATT_MTU_MIN) +#define BTHLEENUM_ATT_MTU_INITIAL_NEGOTIATION (525) + +//////////////////////////////////////////////////////////////////////////////// +// ATT-specific Error Codes +//////////////////////////////////////////////////////////////////////////////// + +#define BTH_LE_ERROR_INVALID_HANDLE (0x01) +#define BTH_LE_ERROR_READ_NOT_PERMITTED (0x02) +#define BTH_LE_ERROR_WRITE_NOT_PERMITTED (0x03) +#define BTH_LE_ERROR_INVALID_PDU (0x04) +#define BTH_LE_ERROR_INSUFFICIENT_AUTHENTICATION (0x05) +#define BTH_LE_ERROR_REQUEST_NOT_SUPPORTED (0x06) +#define BTH_LE_ERROR_INVALID_OFFSET (0x07) +#define BTH_LE_ERROR_INSUFFICIENT_AUTHORIZATION (0x08) +#define BTH_LE_ERROR_PREPARE_QUEUE_FULL (0x09) +#define BTH_LE_ERROR_ATTRIBUTE_NOT_FOUND (0x0A) +#define BTH_LE_ERROR_ATTRIBUTE_NOT_LONG (0x0B) +#define BTH_LE_ERROR_INSUFFICIENT_ENCRYPTION_KEY_SIZE (0x0C) +#define BTH_LE_ERROR_INVALID_ATTRIBUTE_VALUE_LENGTH (0x0D) +#define BTH_LE_ERROR_UNLIKELY (0x0E) +#define BTH_LE_ERROR_INSUFFICIENT_ENCRYPTION (0x0F) +#define BTH_LE_ERROR_UNSUPPORTED_GROUP_TYPE (0x10) +#define BTH_LE_ERROR_INSUFFICIENT_RESOURCES (0x11) +#define BTH_LE_ERROR_UNKNOWN (0x1000) + +//////////////////////////////////////////////////////////////////////////////// +// GATT Security and Other Flag-related Facilities +//////////////////////////////////////////////////////////////////////////////// + +#define BLUETOOTH_GATT_FLAG_NONE 0x00000000 +#define BLUETOOTH_GATT_FLAG_CONNECTION_ENCRYPTED 0x00000001 +#define BLUETOOTH_GATT_FLAG_CONNECTION_AUTHENTICATED 0x00000002 +#define BLUETOOTH_GATT_FLAG_FORCE_READ_FROM_DEVICE 0x00000004 +#define BLUETOOTH_GATT_FLAG_FORCE_READ_FROM_CACHE 0x00000008 +#define BLUETOOTH_GATT_FLAG_SIGNED_WRITE 0x00000010 +#define BLUETOOTH_GATT_FLAG_WRITE_WITHOUT_RESPONSE 0x00000020 +#define BLUETOOTH_GATT_FLAG_RETURN_ALL 0x00000040 + +#define BLUETOOTH_GATT_FLAG_VALID_MASK \ +( BLUETOOTH_GATT_FLAG_NONE \ +| BLUETOOTH_GATT_FLAG_CONNECTION_ENCRYPTED \ +| BLUETOOTH_GATT_FLAG_CONNECTION_AUTHENTICATED \ +| BLUETOOTH_GATT_FLAG_FORCE_READ_FROM_DEVICE \ +| BLUETOOTH_GATT_FLAG_FORCE_READ_FROM_CACHE \ +| BLUETOOTH_GATT_FLAG_SIGNED_WRITE \ +| BLUETOOTH_GATT_FLAG_WRITE_WITHOUT_RESPONSE \ +| BLUETOOTH_GATT_FLAG_RETURN_ALL \ +) + +#define IS_BLUETOOTH_GATT_FLAG_VALID(f) (0 == (f & ~BLUETOOTH_GATT_FLAG_VALID_MASK)) + +//////////////////////////////////////////////////////////////////////////////// +// GATT Structures +//////////////////////////////////////////////////////////////////////////////// + +typedef HANDLE BLUETOOTH_GATT_EVENT_HANDLE; + +typedef struct _BTH_LE_UUID { + BOOLEAN IsShortUuid; + +#ifdef MIDL_PASS + [switch_type(BOOLEAN), switch_is((BOOLEAN)IsShortUuid)] +#endif + union { + +#ifdef MIDL_PASS + [case(TRUE)] +#endif + USHORT ShortUuid; + +#ifdef MIDL_PASS + [case(FALSE)] +#endif + GUID LongUuid; + } Value; +} BTH_LE_UUID, *PBTH_LE_UUID; + +typedef struct _BTH_LE_GATT_SERVICE { + BTH_LE_UUID ServiceUuid; + USHORT AttributeHandle; +} BTH_LE_GATT_SERVICE, *PBTH_LE_GATT_SERVICE; + +typedef enum _BTH_LE_GATT_DESCRIPTOR_TYPE { + CharacteristicExtendedProperties, + CharacteristicUserDescription, + ClientCharacteristicConfiguration, + ServerCharacteristicConfiguration, + CharacteristicFormat, + CharacteristicAggregateFormat, + CustomDescriptor +} BTH_LE_GATT_DESCRIPTOR_TYPE, *PBTH_LE_GATT_DESCRIPTOR_TYPE; + +typedef struct _BTH_LE_GATT_CHARACTERISTIC { + USHORT ServiceHandle; + BTH_LE_UUID CharacteristicUuid; + USHORT AttributeHandle; + USHORT CharacteristicValueHandle; + BOOLEAN IsBroadcastable; + BOOLEAN IsReadable; + BOOLEAN IsWritable; + BOOLEAN IsWritableWithoutResponse; + BOOLEAN IsSignedWritable; + BOOLEAN IsNotifiable; + BOOLEAN IsIndicatable; + BOOLEAN HasExtendedProperties; +} BTH_LE_GATT_CHARACTERISTIC, *PBTH_LE_GATT_CHARACTERISTIC; + +typedef struct _BTH_LE_GATT_CHARACTERISTIC_VALUE { + ULONG DataSize; + +#ifdef MIDL_PASS + [size_is(DataSize)] UCHAR Data[*]; +#else + _Field_size_bytes_(DataSize) UCHAR Data[1]; +#endif +} BTH_LE_GATT_CHARACTERISTIC_VALUE, *PBTH_LE_GATT_CHARACTERISTIC_VALUE; + +typedef struct _BTH_LE_GATT_DESCRIPTOR { + USHORT ServiceHandle; + USHORT CharacteristicHandle; + BTH_LE_GATT_DESCRIPTOR_TYPE DescriptorType; + BTH_LE_UUID DescriptorUuid; + USHORT AttributeHandle; +} BTH_LE_GATT_DESCRIPTOR, *PBTH_LE_GATT_DESCRIPTOR; + +typedef struct _BTH_LE_GATT_DESCRIPTOR_VALUE { + BTH_LE_GATT_DESCRIPTOR_TYPE DescriptorType; + BTH_LE_UUID DescriptorUuid; + +#ifdef MIDL_PASS + [switch_type(BTH_LE_GATT_DESCRIPTOR_TYPE), + switch_is((BTH_LE_GATT_DESCRIPTOR_TYPE)DescriptorType)] +#endif + union { + +#ifdef MIDL_PASS + [case(CharacteristicExtendedProperties)] +#endif + struct { + BOOLEAN IsReliableWriteEnabled; + BOOLEAN IsAuxiliariesWritable; + } CharacteristicExtendedProperties; + +#ifdef MIDL_PASS + [case(ClientCharacteristicConfiguration)] +#endif + struct { + BOOLEAN IsSubscribeToNotification; + BOOLEAN IsSubscribeToIndication; + } ClientCharacteristicConfiguration; + +#ifdef MIDL_PASS + [case(ServerCharacteristicConfiguration)] +#endif + struct { + BOOLEAN IsBroadcast; + } ServerCharacteristicConfiguration; + +#ifdef MIDL_PASS + [case(CharacteristicFormat)] +#endif + struct { + UCHAR Format; + UCHAR Exponent; + BTH_LE_UUID Unit; + UCHAR NameSpace; + BTH_LE_UUID Description; + } CharacteristicFormat; + +#ifdef MIDL_PASS + [default] + ; +#endif + }; + + ULONG DataSize; + +#ifdef MIDL_PASS + [size_is(DataSize)] UCHAR Data[*]; +#else + _Field_size_bytes_(DataSize) UCHAR Data[1]; +#endif +} BTH_LE_GATT_DESCRIPTOR_VALUE, *PBTH_LE_GATT_DESCRIPTOR_VALUE; + +typedef enum _BTH_LE_GATT_EVENT_TYPE { + CharacteristicValueChangedEvent, + +} BTH_LE_GATT_EVENT_TYPE; + + +// +// Callback function signature for Bluetooth GATT events. +// +typedef VOID (CALLBACK *PFNBLUETOOTH_GATT_EVENT_CALLBACK)( + _In_ BTH_LE_GATT_EVENT_TYPE EventType, + _In_ PVOID EventOutParameter, + _In_opt_ PVOID Context +); + +// +// Structure associated with a CharacteristicValueChanged Event +// +typedef struct _BLUETOOTH_GATT_VALUE_CHANGED_EVENT_REGISTRATION { + USHORT NumCharacteristics; + BTH_LE_GATT_CHARACTERISTIC Characteristics[1]; +} BLUETOOTH_GATT_VALUE_CHANGED_EVENT_REGISTRATION, *PBLUETOOTH_GATT_VALUE_CHANGED_EVENT_REGISTRATION; + +typedef struct _BLUETOOTH_GATT_VALUE_CHANGED_EVENT { + USHORT ChangedAttributeHandle; + size_t CharacteristicValueDataSize; + PBTH_LE_GATT_CHARACTERISTIC_VALUE CharacteristicValue; +} BLUETOOTH_GATT_VALUE_CHANGED_EVENT, *PBLUETOOTH_GATT_VALUE_CHANGED_EVENT; + + +typedef ULONG64 BTH_LE_GATT_RELIABLE_WRITE_CONTEXT, *PBTH_LE_GATT_RELIABLE_WRITE_CONTEXT; + +#ifdef __cplusplus +extern "C"{ +#endif + +FORCEINLINE +BOOLEAN +IsBthLEUuidMatch( + _In_ BTH_LE_UUID uuid1, + _In_ BTH_LE_UUID uuid2 + ) +/*++ + +Routine Description: + + Determines if the two UUIDs match each other. If both of the are + short UUIDs, or if they are both long UUIDs, they will be compared + directly. Otherwise, the short UUID will be converted to a long UUID + using the Bluetooth BASE UUID, and then compared against the long one. + +Arguments: + uuid1 - left comparand + uuid2 - right comparand + + +Return Value: + TRUE if the values are equal, FALSE otherwise + + --*/ +{ + BTH_LE_UUID tempLongUuid = {0}; + + tempLongUuid.IsShortUuid = FALSE; + tempLongUuid.Value.LongUuid = BTH_LE_ATT_BLUETOOTH_BASE_GUID; + + if (uuid1.IsShortUuid && uuid2.IsShortUuid) { + return (uuid1.Value.ShortUuid == uuid2.Value.ShortUuid); + } else if (!uuid1.IsShortUuid && !uuid2.IsShortUuid) { + return (0 == memcmp(&uuid1.Value.LongUuid, &uuid2.Value.LongUuid, sizeof(GUID))); + } else if (uuid1.IsShortUuid) { + tempLongUuid.Value.LongUuid.Data1 += uuid1.Value.ShortUuid; + return (0 == memcmp(&tempLongUuid, &uuid2.Value.LongUuid, sizeof(GUID))); + } else if (uuid2.IsShortUuid) { + tempLongUuid.Value.LongUuid.Data1 += uuid2.Value.ShortUuid; + return (0 == memcmp(&uuid1.Value.LongUuid, &tempLongUuid.Value.LongUuid, sizeof(GUID))); + } + + return FALSE; +} + +#ifdef __cplusplus + } +#endif + + +#endif //NTDDI_WIN8 + +#ifdef _MSC_VER +#pragma warning(pop) +#endif //_MSC_VER + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __BTHLEDEF_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/calendardeviceservice.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/calendardeviceservice.h new file mode 100644 index 0000000000000000000000000000000000000000..01fc3a5d91611612ffe3e6a366ba63035e259bff --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/calendardeviceservice.h @@ -0,0 +1,300 @@ +/* + * CalendarDeviceService.h + * + * Contains declarations for the Calendar Device Service + * + * Copyright (c) Microsoft Corporation, All Rights Reserved. + * + */ + + +#ifndef _CALENDARDEVICESERVICE_H_ +#define _CALENDARDEVICESERVICE_H_ + +#include + +#include + +#include + + +/***************************************************************************** + Calendar Service Info +******************************************************************************/ + +DEFINE_DEVSVCGUID(SERVICE_Calendar, + 0xE4DFDBD3, 0x7F04, 0x45E9, 0x9F, 0xA1, 0x5C, 0xA0, 0xEA, 0xEB, 0x0A, 0xE3 ); + +#define NAME_CalendarSvc L"Calendar" +#define TYPE_CalendarSvc DEVSVCTYPE_DEFAULT + + +/***************************************************************************** + Calendar Service Properties +******************************************************************************/ + +DEFINE_DEVSVCGUID(NAMESPACE_CalendarSvc, + 0x63816297, 0x61E5, 0x4306, 0xB1, 0xA3, 0xCE, 0xDF, 0x48, 0x1B, 0x86, 0x29 ); + + +/* PKEY_CalendarSvc_SyncInWindowOnly + * + * Type: UInt8 + * Form: None + */ + +#define PKEY_CalendarSvc_SyncInWindowOnly PKEY_SyncSvc_FilterType +#define NAME_CalendarSvc_SyncInWindowOnly NAME_SyncSvc_FilterType + +/* PKEY_CalendarSvc_SyncWindowStart + * + * Indicates the number of minutes before TODAY that the sync window starts + * + * Type: UInt32 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarSvc_SyncWindowStart, + 0x63816297, 0x61E5, 0x4306, 0xB1, 0xA3, 0xCE, 0xDF, 0x48, 0x1B, 0x86, 0x29 , + 2 ); + +#define NAME_CalendarSvc_SyncWindowStart L"SyncWindowStart" + + +/* PKEY_CalendarSvc_SyncWindowEnd + * + * Indicates the number of minutes after TODAY that the sync window ends + * + * Type: UInt32 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarSvc_SyncWindowEnd, + 0x63816297, 0x61E5, 0x4306, 0xB1, 0xA3, 0xCE, 0xDF, 0x48, 0x1B, 0x86, 0x29 , + 3 ); + +#define NAME_CalendarSvc_SyncWindowEnd L"SyncWindowEnd" + + +/***************************************************************************** + Calendar Service Object Formats +******************************************************************************/ + +/* FORMAT_AbstractActivity + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractActivity, + 0xbf70e114, 0x3901, 0x4449, 0xbe, 0xe7, 0xd9, 0xea, 0x14, 0x93, 0xc3, 0x09 ); + +#define NAME_AbstractActivity L"AbstractActivity" + + +/* FORMAT_AbstractActivityOccurrence + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractActivityOccurrence, + 0xE87A7008, 0x32D1, 0x42C5, 0x84, 0x88, 0x4C, 0x23, 0x58, 0x66, 0xAF, 0x32 ); + +#define NAME_AbstractActivityOccurrence L"AbstractActivityOccurrence" + + +/* FORMAT_VCalendar1Activity + */ + +DEFINE_DEVSVCGUID(FORMAT_VCalendar1Activity, + 0x23F7A5A5, 0xF7D3, 0x4585, 0xA1, 0xFF, 0x76, 0xE2, 0xD4, 0x5C, 0x91, 0x21 ); + +#define NAME_VCalendar1Activity L"VCalendar1" + + +/* FORMAT_ICalendarActivity + * + * iCalendar file format (vCalendar Version 2) + * + */ + +DEFINE_DEVSVCGUID(FORMAT_ICalendarActivity, + 0xCC4538CB, 0x7890, 0x41B7, 0xA3, 0xF1, 0xB6, 0xE6, 0x0B, 0xDD, 0x2A, 0x61 ); + +#define NAME_ICalendarActivity L"ICalendar" + + + +/***************************************************************************** + Calendar Service Object Property Keys +******************************************************************************/ + +DEFINE_DEVSVCGUID(NAMESPACE_CalendarObj, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 ); + + +/* CalendarObj.Location + * + * MTP Property: Activity Location (0xDD52) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_Location, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 3 ); + +#define NAME_CalendarObj_Location L"Location" + + +/* CalendarObj.Accepted + * + * MTP Property: Activity Accepted (0xDD57) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_Accepted, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 10 ); + +#define NAME_CalendarObj_Accepted L"Accepted" + + +/* CalendarObj.Tentative + * + * MTP Property: Activity Tentative (0xDD58) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_Tentative, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 12 ); + +#define NAME_CalendarObj_Tentative L"Tentative" + + +/* CalendarObj.Declined + * + * MTP Property: Activity Declined (0xDD59) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_Declined, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 13 ); + +#define NAME_CalendarObj_Declined L"Declined" + + +/* CalendarObj.TimeZone + * + * Contains the TZ Database name for the time zone in which the appointment + * was created. + * + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_TimeZone, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 14 ); + +#define NAME_CalendarObj_TimeZone L"TimeZone" + + +/* CalendarObj.ReminderOffset + * + * Contains the offset in minutes from the start of the appointment that + * a reminder is to be fired. + * + * Type: UInt32 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_ReminderOffset, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 15 ); + +#define NAME_CalendarObj_ReminderOffset L"ReminderOffset" + + +/* CalendarObj.BusyStatus + * + * Contains the free/busy status for the specified appointment. + * + * Type: UInt16 + * Form: Enum + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_BusyStatus, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 16 ); + +#define NAME_CalendarObj_BusyStatus L"BusyStatus" + +#define ENUM_CalendarObj_BusyStatusFree 0x0000 +#define ENUM_CalendarObj_BusyStatusBusy 0x0001 +#define ENUM_CalendarObj_BusyStatusOutOfOffice 0x0002 +#define ENUM_CalendarObj_BusyStatusTentative 0x0003 + + +/* CalendarObj.PatternStartTime + * + * Contains the time of day at which a recurring item is to start. The + * format is the time portion of an ISO 8601 DateTime value- e.g. HHMMSS.S + * + * Type: String + * Form: ISO 8601 Time + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_PatternStartTime, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 17 ); + +#define NAME_CalendarObj_PatternStartTime L"PatternStartTime" + + +/* CalendarObj.PatternDuration + * + * Contains the duration of the recurring item in minutes. + * + * Type: UInt32 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_PatternDuration, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 18 ); + +#define NAME_CalendarObj_PatternDuration L"PatternDuration" + + +/* CalendarObj.BeginDateTime + * + * Contains the UTC date and time that the calendar item begins + * + * Type: String + * Form: DateTime + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_BeginDateTime, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 19 ); + +#define NAME_CalendarObj_BeginDateTime L"BeginDateTime" + + +/* CalendarObj.EndDateTime + * + * Contains the UTC date and time that the calendar item ends + * + * Type: String + * Form: DateTime + */ + +DEFINE_DEVSVCPROPKEY(PKEY_CalendarObj_EndDateTime, + 0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3 , + 20 ); + +#define NAME_CalendarObj_EndDateTime L"EndDateTime" + + +#endif /*_CALENDARDEVICESERVICE_H_*/ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/callobj.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/callobj.h new file mode 100644 index 0000000000000000000000000000000000000000..a3124df411f28db229fd907b6adf7613db0b6fd1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/callobj.h @@ -0,0 +1,1268 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __callobj_h__ +#define __callobj_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICallFrame_FWD_DEFINED__ +#define __ICallFrame_FWD_DEFINED__ +typedef interface ICallFrame ICallFrame; + +#endif /* __ICallFrame_FWD_DEFINED__ */ + + +#ifndef __ICallIndirect_FWD_DEFINED__ +#define __ICallIndirect_FWD_DEFINED__ +typedef interface ICallIndirect ICallIndirect; + +#endif /* __ICallIndirect_FWD_DEFINED__ */ + + +#ifndef __ICallInterceptor_FWD_DEFINED__ +#define __ICallInterceptor_FWD_DEFINED__ +typedef interface ICallInterceptor ICallInterceptor; + +#endif /* __ICallInterceptor_FWD_DEFINED__ */ + + +#ifndef __ICallFrameEvents_FWD_DEFINED__ +#define __ICallFrameEvents_FWD_DEFINED__ +typedef interface ICallFrameEvents ICallFrameEvents; + +#endif /* __ICallFrameEvents_FWD_DEFINED__ */ + + +#ifndef __ICallUnmarshal_FWD_DEFINED__ +#define __ICallUnmarshal_FWD_DEFINED__ +typedef interface ICallUnmarshal ICallUnmarshal; + +#endif /* __ICallUnmarshal_FWD_DEFINED__ */ + + +#ifndef __ICallFrameWalker_FWD_DEFINED__ +#define __ICallFrameWalker_FWD_DEFINED__ +typedef interface ICallFrameWalker ICallFrameWalker; + +#endif /* __ICallFrameWalker_FWD_DEFINED__ */ + + +#ifndef __IInterfaceRelated_FWD_DEFINED__ +#define __IInterfaceRelated_FWD_DEFINED__ +typedef interface IInterfaceRelated IInterfaceRelated; + +#endif /* __IInterfaceRelated_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_callobj_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_callobj_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_callobj_0000_0000_v0_0_s_ifspec; + +#ifndef __ICallFrame_INTERFACE_DEFINED__ +#define __ICallFrame_INTERFACE_DEFINED__ + +/* interface ICallFrame */ +/* [local][unique][object][uuid] */ + +typedef /* [public][public][public] */ struct __MIDL_ICallFrame_0001 + { + ULONG iMethod; + BOOL fHasInValues; + BOOL fHasInOutValues; + BOOL fHasOutValues; + BOOL fDerivesFromIDispatch; + LONG cInInterfacesMax; + LONG cInOutInterfacesMax; + LONG cOutInterfacesMax; + LONG cTopLevelInInterfaces; + IID iid; + ULONG cMethod; + ULONG cParams; + } CALLFRAMEINFO; + +typedef /* [public][public] */ struct __MIDL_ICallFrame_0002 + { + BOOLEAN fIn; + BOOLEAN fOut; + ULONG stackOffset; + ULONG cbParam; + } CALLFRAMEPARAMINFO; + +typedef /* [public][public] */ +enum __MIDL_ICallFrame_0003 + { + CALLFRAME_COPY_NESTED = 1, + CALLFRAME_COPY_INDEPENDENT = 2 + } CALLFRAME_COPY; + + +enum CALLFRAME_FREE + { + CALLFRAME_FREE_NONE = 0, + CALLFRAME_FREE_IN = 1, + CALLFRAME_FREE_INOUT = 2, + CALLFRAME_FREE_OUT = 4, + CALLFRAME_FREE_TOP_INOUT = 8, + CALLFRAME_FREE_TOP_OUT = 16, + CALLFRAME_FREE_ALL = 31 + } ; + +enum CALLFRAME_NULL + { + CALLFRAME_NULL_NONE = 0, + CALLFRAME_NULL_INOUT = 2, + CALLFRAME_NULL_OUT = 4, + CALLFRAME_NULL_ALL = 6 + } ; + +enum CALLFRAME_WALK + { + CALLFRAME_WALK_IN = 1, + CALLFRAME_WALK_INOUT = 2, + CALLFRAME_WALK_OUT = 4 + } ; +typedef /* [public][public][public][public][public][public][public] */ struct __MIDL_ICallFrame_0004 + { + BOOLEAN fIn; + DWORD dwDestContext; + LPVOID pvDestContext; + IUnknown *punkReserved; + GUID guidTransferSyntax; + } CALLFRAME_MARSHALCONTEXT; + + +EXTERN_C const IID IID_ICallFrame; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D573B4B0-894E-11d2-B8B6-00C04FB9618A") + ICallFrame : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetInfo( + /* [out] */ CALLFRAMEINFO *pInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIIDAndMethod( + /* [out] */ IID *pIID, + /* [out] */ ULONG *piMethod) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNames( + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *pwszInterface, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *pwszMethod) = 0; + + virtual PVOID STDMETHODCALLTYPE GetStackLocation( void) = 0; + + virtual void STDMETHODCALLTYPE SetStackLocation( + /* [in] */ PVOID pvStack) = 0; + + virtual void STDMETHODCALLTYPE SetReturnValue( + /* [in] */ HRESULT hr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReturnValue( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParamInfo( + /* [in] */ ULONG iparam, + /* [out] */ CALLFRAMEPARAMINFO *pInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetParam( + /* [in] */ ULONG iparam, + /* [in] */ VARIANT *pvar) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParam( + /* [in] */ ULONG iparam, + /* [out] */ VARIANT *pvar) = 0; + + virtual HRESULT STDMETHODCALLTYPE Copy( + /* [in] */ CALLFRAME_COPY copyControl, + /* [in] */ ICallFrameWalker *pWalker, + /* [out] */ ICallFrame **ppFrame) = 0; + + virtual HRESULT STDMETHODCALLTYPE Free( + /* [in] */ ICallFrame *pframeArgsDest, + /* [in] */ ICallFrameWalker *pWalkerDestFree, + /* [in] */ ICallFrameWalker *pWalkerCopy, + /* [in] */ DWORD freeFlags, + /* [in] */ ICallFrameWalker *pWalkerFree, + /* [in] */ DWORD nullFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE FreeParam( + /* [in] */ ULONG iparam, + /* [in] */ DWORD freeFlags, + /* [in] */ ICallFrameWalker *pWalkerFree, + /* [in] */ DWORD nullFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE WalkFrame( + /* [in] */ DWORD walkWhat, + /* [in] */ ICallFrameWalker *pWalker) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMarshalSizeMax( + /* [in] */ CALLFRAME_MARSHALCONTEXT *pmshlContext, + /* [in] */ MSHLFLAGS mshlflags, + /* [out] */ ULONG *pcbBufferNeeded) = 0; + + virtual HRESULT STDMETHODCALLTYPE Marshal( + /* [in] */ CALLFRAME_MARSHALCONTEXT *pmshlContext, + /* [in] */ MSHLFLAGS mshlflags, + /* [size_is][in] */ PVOID pBuffer, + /* [in] */ ULONG cbBuffer, + /* [out] */ ULONG *pcbBufferUsed, + /* [out] */ RPCOLEDATAREP *pdataRep, + /* [out] */ ULONG *prpcFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE Unmarshal( + /* [size_is][in] */ PVOID pBuffer, + /* [in] */ ULONG cbBuffer, + /* [in] */ RPCOLEDATAREP dataRep, + /* [in] */ CALLFRAME_MARSHALCONTEXT *pcontext, + /* [out] */ ULONG *pcbUnmarshalled) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseMarshalData( + /* [size_is][in] */ PVOID pBuffer, + /* [in] */ ULONG cbBuffer, + /* [in] */ ULONG ibFirstRelease, + /* [in] */ RPCOLEDATAREP dataRep, + /* [in] */ CALLFRAME_MARSHALCONTEXT *pcontext) = 0; + + virtual HRESULT STDMETHODCALLTYPE Invoke( + /* [in] */ void *pvReceiver, + ...) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICallFrameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICallFrame * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICallFrame * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICallFrame * This); + + DECLSPEC_XFGVIRT(ICallFrame, GetInfo) + HRESULT ( STDMETHODCALLTYPE *GetInfo )( + ICallFrame * This, + /* [out] */ CALLFRAMEINFO *pInfo); + + DECLSPEC_XFGVIRT(ICallFrame, GetIIDAndMethod) + HRESULT ( STDMETHODCALLTYPE *GetIIDAndMethod )( + ICallFrame * This, + /* [out] */ IID *pIID, + /* [out] */ ULONG *piMethod); + + DECLSPEC_XFGVIRT(ICallFrame, GetNames) + HRESULT ( STDMETHODCALLTYPE *GetNames )( + ICallFrame * This, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *pwszInterface, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *pwszMethod); + + DECLSPEC_XFGVIRT(ICallFrame, GetStackLocation) + PVOID ( STDMETHODCALLTYPE *GetStackLocation )( + ICallFrame * This); + + DECLSPEC_XFGVIRT(ICallFrame, SetStackLocation) + void ( STDMETHODCALLTYPE *SetStackLocation )( + ICallFrame * This, + /* [in] */ PVOID pvStack); + + DECLSPEC_XFGVIRT(ICallFrame, SetReturnValue) + void ( STDMETHODCALLTYPE *SetReturnValue )( + ICallFrame * This, + /* [in] */ HRESULT hr); + + DECLSPEC_XFGVIRT(ICallFrame, GetReturnValue) + HRESULT ( STDMETHODCALLTYPE *GetReturnValue )( + ICallFrame * This); + + DECLSPEC_XFGVIRT(ICallFrame, GetParamInfo) + HRESULT ( STDMETHODCALLTYPE *GetParamInfo )( + ICallFrame * This, + /* [in] */ ULONG iparam, + /* [out] */ CALLFRAMEPARAMINFO *pInfo); + + DECLSPEC_XFGVIRT(ICallFrame, SetParam) + HRESULT ( STDMETHODCALLTYPE *SetParam )( + ICallFrame * This, + /* [in] */ ULONG iparam, + /* [in] */ VARIANT *pvar); + + DECLSPEC_XFGVIRT(ICallFrame, GetParam) + HRESULT ( STDMETHODCALLTYPE *GetParam )( + ICallFrame * This, + /* [in] */ ULONG iparam, + /* [out] */ VARIANT *pvar); + + DECLSPEC_XFGVIRT(ICallFrame, Copy) + HRESULT ( STDMETHODCALLTYPE *Copy )( + ICallFrame * This, + /* [in] */ CALLFRAME_COPY copyControl, + /* [in] */ ICallFrameWalker *pWalker, + /* [out] */ ICallFrame **ppFrame); + + DECLSPEC_XFGVIRT(ICallFrame, Free) + HRESULT ( STDMETHODCALLTYPE *Free )( + ICallFrame * This, + /* [in] */ ICallFrame *pframeArgsDest, + /* [in] */ ICallFrameWalker *pWalkerDestFree, + /* [in] */ ICallFrameWalker *pWalkerCopy, + /* [in] */ DWORD freeFlags, + /* [in] */ ICallFrameWalker *pWalkerFree, + /* [in] */ DWORD nullFlags); + + DECLSPEC_XFGVIRT(ICallFrame, FreeParam) + HRESULT ( STDMETHODCALLTYPE *FreeParam )( + ICallFrame * This, + /* [in] */ ULONG iparam, + /* [in] */ DWORD freeFlags, + /* [in] */ ICallFrameWalker *pWalkerFree, + /* [in] */ DWORD nullFlags); + + DECLSPEC_XFGVIRT(ICallFrame, WalkFrame) + HRESULT ( STDMETHODCALLTYPE *WalkFrame )( + ICallFrame * This, + /* [in] */ DWORD walkWhat, + /* [in] */ ICallFrameWalker *pWalker); + + DECLSPEC_XFGVIRT(ICallFrame, GetMarshalSizeMax) + HRESULT ( STDMETHODCALLTYPE *GetMarshalSizeMax )( + ICallFrame * This, + /* [in] */ CALLFRAME_MARSHALCONTEXT *pmshlContext, + /* [in] */ MSHLFLAGS mshlflags, + /* [out] */ ULONG *pcbBufferNeeded); + + DECLSPEC_XFGVIRT(ICallFrame, Marshal) + HRESULT ( STDMETHODCALLTYPE *Marshal )( + ICallFrame * This, + /* [in] */ CALLFRAME_MARSHALCONTEXT *pmshlContext, + /* [in] */ MSHLFLAGS mshlflags, + /* [size_is][in] */ PVOID pBuffer, + /* [in] */ ULONG cbBuffer, + /* [out] */ ULONG *pcbBufferUsed, + /* [out] */ RPCOLEDATAREP *pdataRep, + /* [out] */ ULONG *prpcFlags); + + DECLSPEC_XFGVIRT(ICallFrame, Unmarshal) + HRESULT ( STDMETHODCALLTYPE *Unmarshal )( + ICallFrame * This, + /* [size_is][in] */ PVOID pBuffer, + /* [in] */ ULONG cbBuffer, + /* [in] */ RPCOLEDATAREP dataRep, + /* [in] */ CALLFRAME_MARSHALCONTEXT *pcontext, + /* [out] */ ULONG *pcbUnmarshalled); + + DECLSPEC_XFGVIRT(ICallFrame, ReleaseMarshalData) + HRESULT ( STDMETHODCALLTYPE *ReleaseMarshalData )( + ICallFrame * This, + /* [size_is][in] */ PVOID pBuffer, + /* [in] */ ULONG cbBuffer, + /* [in] */ ULONG ibFirstRelease, + /* [in] */ RPCOLEDATAREP dataRep, + /* [in] */ CALLFRAME_MARSHALCONTEXT *pcontext); + + DECLSPEC_XFGVIRT(ICallFrame, Invoke) + HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICallFrame * This, + /* [in] */ void *pvReceiver, + ...); + + END_INTERFACE + } ICallFrameVtbl; + + interface ICallFrame + { + CONST_VTBL struct ICallFrameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICallFrame_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICallFrame_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICallFrame_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICallFrame_GetInfo(This,pInfo) \ + ( (This)->lpVtbl -> GetInfo(This,pInfo) ) + +#define ICallFrame_GetIIDAndMethod(This,pIID,piMethod) \ + ( (This)->lpVtbl -> GetIIDAndMethod(This,pIID,piMethod) ) + +#define ICallFrame_GetNames(This,pwszInterface,pwszMethod) \ + ( (This)->lpVtbl -> GetNames(This,pwszInterface,pwszMethod) ) + +#define ICallFrame_GetStackLocation(This) \ + ( (This)->lpVtbl -> GetStackLocation(This) ) + +#define ICallFrame_SetStackLocation(This,pvStack) \ + ( (This)->lpVtbl -> SetStackLocation(This,pvStack) ) + +#define ICallFrame_SetReturnValue(This,hr) \ + ( (This)->lpVtbl -> SetReturnValue(This,hr) ) + +#define ICallFrame_GetReturnValue(This) \ + ( (This)->lpVtbl -> GetReturnValue(This) ) + +#define ICallFrame_GetParamInfo(This,iparam,pInfo) \ + ( (This)->lpVtbl -> GetParamInfo(This,iparam,pInfo) ) + +#define ICallFrame_SetParam(This,iparam,pvar) \ + ( (This)->lpVtbl -> SetParam(This,iparam,pvar) ) + +#define ICallFrame_GetParam(This,iparam,pvar) \ + ( (This)->lpVtbl -> GetParam(This,iparam,pvar) ) + +#define ICallFrame_Copy(This,copyControl,pWalker,ppFrame) \ + ( (This)->lpVtbl -> Copy(This,copyControl,pWalker,ppFrame) ) + +#define ICallFrame_Free(This,pframeArgsDest,pWalkerDestFree,pWalkerCopy,freeFlags,pWalkerFree,nullFlags) \ + ( (This)->lpVtbl -> Free(This,pframeArgsDest,pWalkerDestFree,pWalkerCopy,freeFlags,pWalkerFree,nullFlags) ) + +#define ICallFrame_FreeParam(This,iparam,freeFlags,pWalkerFree,nullFlags) \ + ( (This)->lpVtbl -> FreeParam(This,iparam,freeFlags,pWalkerFree,nullFlags) ) + +#define ICallFrame_WalkFrame(This,walkWhat,pWalker) \ + ( (This)->lpVtbl -> WalkFrame(This,walkWhat,pWalker) ) + +#define ICallFrame_GetMarshalSizeMax(This,pmshlContext,mshlflags,pcbBufferNeeded) \ + ( (This)->lpVtbl -> GetMarshalSizeMax(This,pmshlContext,mshlflags,pcbBufferNeeded) ) + +#define ICallFrame_Marshal(This,pmshlContext,mshlflags,pBuffer,cbBuffer,pcbBufferUsed,pdataRep,prpcFlags) \ + ( (This)->lpVtbl -> Marshal(This,pmshlContext,mshlflags,pBuffer,cbBuffer,pcbBufferUsed,pdataRep,prpcFlags) ) + +#define ICallFrame_Unmarshal(This,pBuffer,cbBuffer,dataRep,pcontext,pcbUnmarshalled) \ + ( (This)->lpVtbl -> Unmarshal(This,pBuffer,cbBuffer,dataRep,pcontext,pcbUnmarshalled) ) + +#define ICallFrame_ReleaseMarshalData(This,pBuffer,cbBuffer,ibFirstRelease,dataRep,pcontext) \ + ( (This)->lpVtbl -> ReleaseMarshalData(This,pBuffer,cbBuffer,ibFirstRelease,dataRep,pcontext) ) + +#define ICallFrame_Invoke(This,pvReceiver,...) \ + ( (This)->lpVtbl -> Invoke(This,pvReceiver,...) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICallFrame_INTERFACE_DEFINED__ */ + + +#ifndef __ICallIndirect_INTERFACE_DEFINED__ +#define __ICallIndirect_INTERFACE_DEFINED__ + +/* interface ICallIndirect */ +/* [local][unique][object][uuid] */ + + +EXTERN_C const IID IID_ICallIndirect; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D573B4B1-894E-11d2-B8B6-00C04FB9618A") + ICallIndirect : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CallIndirect( + /* [out] */ HRESULT *phrReturn, + /* [in] */ ULONG iMethod, + /* [in] */ void *pvArgs, + /* [out] */ ULONG *cbArgs) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMethodInfo( + /* [in] */ ULONG iMethod, + /* [out] */ CALLFRAMEINFO *pInfo, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *pwszMethod) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStackSize( + /* [in] */ ULONG iMethod, + /* [out] */ ULONG *cbArgs) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIID( + /* [annotation][out] */ + _Out_opt_ IID *piid, + /* [annotation][out] */ + _Out_opt_ BOOL *pfDerivesFromIDispatch, + /* [annotation][out] */ + _Out_opt_ ULONG *pcMethod, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *pwszInterface) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICallIndirectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICallIndirect * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICallIndirect * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICallIndirect * This); + + DECLSPEC_XFGVIRT(ICallIndirect, CallIndirect) + HRESULT ( STDMETHODCALLTYPE *CallIndirect )( + ICallIndirect * This, + /* [out] */ HRESULT *phrReturn, + /* [in] */ ULONG iMethod, + /* [in] */ void *pvArgs, + /* [out] */ ULONG *cbArgs); + + DECLSPEC_XFGVIRT(ICallIndirect, GetMethodInfo) + HRESULT ( STDMETHODCALLTYPE *GetMethodInfo )( + ICallIndirect * This, + /* [in] */ ULONG iMethod, + /* [out] */ CALLFRAMEINFO *pInfo, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *pwszMethod); + + DECLSPEC_XFGVIRT(ICallIndirect, GetStackSize) + HRESULT ( STDMETHODCALLTYPE *GetStackSize )( + ICallIndirect * This, + /* [in] */ ULONG iMethod, + /* [out] */ ULONG *cbArgs); + + DECLSPEC_XFGVIRT(ICallIndirect, GetIID) + HRESULT ( STDMETHODCALLTYPE *GetIID )( + ICallIndirect * This, + /* [annotation][out] */ + _Out_opt_ IID *piid, + /* [annotation][out] */ + _Out_opt_ BOOL *pfDerivesFromIDispatch, + /* [annotation][out] */ + _Out_opt_ ULONG *pcMethod, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *pwszInterface); + + END_INTERFACE + } ICallIndirectVtbl; + + interface ICallIndirect + { + CONST_VTBL struct ICallIndirectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICallIndirect_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICallIndirect_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICallIndirect_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICallIndirect_CallIndirect(This,phrReturn,iMethod,pvArgs,cbArgs) \ + ( (This)->lpVtbl -> CallIndirect(This,phrReturn,iMethod,pvArgs,cbArgs) ) + +#define ICallIndirect_GetMethodInfo(This,iMethod,pInfo,pwszMethod) \ + ( (This)->lpVtbl -> GetMethodInfo(This,iMethod,pInfo,pwszMethod) ) + +#define ICallIndirect_GetStackSize(This,iMethod,cbArgs) \ + ( (This)->lpVtbl -> GetStackSize(This,iMethod,cbArgs) ) + +#define ICallIndirect_GetIID(This,piid,pfDerivesFromIDispatch,pcMethod,pwszInterface) \ + ( (This)->lpVtbl -> GetIID(This,piid,pfDerivesFromIDispatch,pcMethod,pwszInterface) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICallIndirect_INTERFACE_DEFINED__ */ + + +#ifndef __ICallInterceptor_INTERFACE_DEFINED__ +#define __ICallInterceptor_INTERFACE_DEFINED__ + +/* interface ICallInterceptor */ +/* [local][unique][object][uuid] */ + + +EXTERN_C const IID IID_ICallInterceptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("60C7CA75-896D-11d2-B8B6-00C04FB9618A") + ICallInterceptor : public ICallIndirect + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterSink( + /* [in] */ ICallFrameEvents *psink) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRegisteredSink( + /* [out] */ ICallFrameEvents **ppsink) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICallInterceptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICallInterceptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICallInterceptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICallInterceptor * This); + + DECLSPEC_XFGVIRT(ICallIndirect, CallIndirect) + HRESULT ( STDMETHODCALLTYPE *CallIndirect )( + ICallInterceptor * This, + /* [out] */ HRESULT *phrReturn, + /* [in] */ ULONG iMethod, + /* [in] */ void *pvArgs, + /* [out] */ ULONG *cbArgs); + + DECLSPEC_XFGVIRT(ICallIndirect, GetMethodInfo) + HRESULT ( STDMETHODCALLTYPE *GetMethodInfo )( + ICallInterceptor * This, + /* [in] */ ULONG iMethod, + /* [out] */ CALLFRAMEINFO *pInfo, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *pwszMethod); + + DECLSPEC_XFGVIRT(ICallIndirect, GetStackSize) + HRESULT ( STDMETHODCALLTYPE *GetStackSize )( + ICallInterceptor * This, + /* [in] */ ULONG iMethod, + /* [out] */ ULONG *cbArgs); + + DECLSPEC_XFGVIRT(ICallIndirect, GetIID) + HRESULT ( STDMETHODCALLTYPE *GetIID )( + ICallInterceptor * This, + /* [annotation][out] */ + _Out_opt_ IID *piid, + /* [annotation][out] */ + _Out_opt_ BOOL *pfDerivesFromIDispatch, + /* [annotation][out] */ + _Out_opt_ ULONG *pcMethod, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *pwszInterface); + + DECLSPEC_XFGVIRT(ICallInterceptor, RegisterSink) + HRESULT ( STDMETHODCALLTYPE *RegisterSink )( + ICallInterceptor * This, + /* [in] */ ICallFrameEvents *psink); + + DECLSPEC_XFGVIRT(ICallInterceptor, GetRegisteredSink) + HRESULT ( STDMETHODCALLTYPE *GetRegisteredSink )( + ICallInterceptor * This, + /* [out] */ ICallFrameEvents **ppsink); + + END_INTERFACE + } ICallInterceptorVtbl; + + interface ICallInterceptor + { + CONST_VTBL struct ICallInterceptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICallInterceptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICallInterceptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICallInterceptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICallInterceptor_CallIndirect(This,phrReturn,iMethod,pvArgs,cbArgs) \ + ( (This)->lpVtbl -> CallIndirect(This,phrReturn,iMethod,pvArgs,cbArgs) ) + +#define ICallInterceptor_GetMethodInfo(This,iMethod,pInfo,pwszMethod) \ + ( (This)->lpVtbl -> GetMethodInfo(This,iMethod,pInfo,pwszMethod) ) + +#define ICallInterceptor_GetStackSize(This,iMethod,cbArgs) \ + ( (This)->lpVtbl -> GetStackSize(This,iMethod,cbArgs) ) + +#define ICallInterceptor_GetIID(This,piid,pfDerivesFromIDispatch,pcMethod,pwszInterface) \ + ( (This)->lpVtbl -> GetIID(This,piid,pfDerivesFromIDispatch,pcMethod,pwszInterface) ) + + +#define ICallInterceptor_RegisterSink(This,psink) \ + ( (This)->lpVtbl -> RegisterSink(This,psink) ) + +#define ICallInterceptor_GetRegisteredSink(This,ppsink) \ + ( (This)->lpVtbl -> GetRegisteredSink(This,ppsink) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICallInterceptor_INTERFACE_DEFINED__ */ + + +#ifndef __ICallFrameEvents_INTERFACE_DEFINED__ +#define __ICallFrameEvents_INTERFACE_DEFINED__ + +/* interface ICallFrameEvents */ +/* [local][unique][object][uuid] */ + + +EXTERN_C const IID IID_ICallFrameEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FD5E0843-FC91-11d0-97D7-00C04FB9618A") + ICallFrameEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnCall( + /* [in] */ ICallFrame *pFrame) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICallFrameEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICallFrameEvents * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICallFrameEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICallFrameEvents * This); + + DECLSPEC_XFGVIRT(ICallFrameEvents, OnCall) + HRESULT ( STDMETHODCALLTYPE *OnCall )( + ICallFrameEvents * This, + /* [in] */ ICallFrame *pFrame); + + END_INTERFACE + } ICallFrameEventsVtbl; + + interface ICallFrameEvents + { + CONST_VTBL struct ICallFrameEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICallFrameEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICallFrameEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICallFrameEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICallFrameEvents_OnCall(This,pFrame) \ + ( (This)->lpVtbl -> OnCall(This,pFrame) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICallFrameEvents_INTERFACE_DEFINED__ */ + + +#ifndef __ICallUnmarshal_INTERFACE_DEFINED__ +#define __ICallUnmarshal_INTERFACE_DEFINED__ + +/* interface ICallUnmarshal */ +/* [local][unique][object][uuid] */ + + +EXTERN_C const IID IID_ICallUnmarshal; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5333B003-2E42-11d2-B89D-00C04FB9618A") + ICallUnmarshal : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Unmarshal( + /* [in] */ ULONG iMethod, + /* [size_is][in] */ PVOID pBuffer, + /* [in] */ ULONG cbBuffer, + /* [in] */ BOOL fForceBufferCopy, + /* [in] */ RPCOLEDATAREP dataRep, + /* [in] */ CALLFRAME_MARSHALCONTEXT *pcontext, + /* [out] */ ULONG *pcbUnmarshalled, + /* [out] */ ICallFrame **ppFrame) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseMarshalData( + /* [in] */ ULONG iMethod, + /* [size_is][in] */ PVOID pBuffer, + /* [in] */ ULONG cbBuffer, + /* [in] */ ULONG ibFirstRelease, + /* [in] */ RPCOLEDATAREP dataRep, + /* [in] */ CALLFRAME_MARSHALCONTEXT *pcontext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICallUnmarshalVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICallUnmarshal * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICallUnmarshal * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICallUnmarshal * This); + + DECLSPEC_XFGVIRT(ICallUnmarshal, Unmarshal) + HRESULT ( STDMETHODCALLTYPE *Unmarshal )( + ICallUnmarshal * This, + /* [in] */ ULONG iMethod, + /* [size_is][in] */ PVOID pBuffer, + /* [in] */ ULONG cbBuffer, + /* [in] */ BOOL fForceBufferCopy, + /* [in] */ RPCOLEDATAREP dataRep, + /* [in] */ CALLFRAME_MARSHALCONTEXT *pcontext, + /* [out] */ ULONG *pcbUnmarshalled, + /* [out] */ ICallFrame **ppFrame); + + DECLSPEC_XFGVIRT(ICallUnmarshal, ReleaseMarshalData) + HRESULT ( STDMETHODCALLTYPE *ReleaseMarshalData )( + ICallUnmarshal * This, + /* [in] */ ULONG iMethod, + /* [size_is][in] */ PVOID pBuffer, + /* [in] */ ULONG cbBuffer, + /* [in] */ ULONG ibFirstRelease, + /* [in] */ RPCOLEDATAREP dataRep, + /* [in] */ CALLFRAME_MARSHALCONTEXT *pcontext); + + END_INTERFACE + } ICallUnmarshalVtbl; + + interface ICallUnmarshal + { + CONST_VTBL struct ICallUnmarshalVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICallUnmarshal_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICallUnmarshal_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICallUnmarshal_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICallUnmarshal_Unmarshal(This,iMethod,pBuffer,cbBuffer,fForceBufferCopy,dataRep,pcontext,pcbUnmarshalled,ppFrame) \ + ( (This)->lpVtbl -> Unmarshal(This,iMethod,pBuffer,cbBuffer,fForceBufferCopy,dataRep,pcontext,pcbUnmarshalled,ppFrame) ) + +#define ICallUnmarshal_ReleaseMarshalData(This,iMethod,pBuffer,cbBuffer,ibFirstRelease,dataRep,pcontext) \ + ( (This)->lpVtbl -> ReleaseMarshalData(This,iMethod,pBuffer,cbBuffer,ibFirstRelease,dataRep,pcontext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICallUnmarshal_INTERFACE_DEFINED__ */ + + +#ifndef __ICallFrameWalker_INTERFACE_DEFINED__ +#define __ICallFrameWalker_INTERFACE_DEFINED__ + +/* interface ICallFrameWalker */ +/* [local][unique][object][uuid] */ + + +EXTERN_C const IID IID_ICallFrameWalker; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("08B23919-392D-11d2-B8A4-00C04FB9618A") + ICallFrameWalker : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnWalkInterface( + /* [in] */ REFIID iid, + /* [in] */ PVOID *ppvInterface, + /* [in] */ BOOL fIn, + /* [in] */ BOOL fOut) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICallFrameWalkerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICallFrameWalker * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICallFrameWalker * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICallFrameWalker * This); + + DECLSPEC_XFGVIRT(ICallFrameWalker, OnWalkInterface) + HRESULT ( STDMETHODCALLTYPE *OnWalkInterface )( + ICallFrameWalker * This, + /* [in] */ REFIID iid, + /* [in] */ PVOID *ppvInterface, + /* [in] */ BOOL fIn, + /* [in] */ BOOL fOut); + + END_INTERFACE + } ICallFrameWalkerVtbl; + + interface ICallFrameWalker + { + CONST_VTBL struct ICallFrameWalkerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICallFrameWalker_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICallFrameWalker_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICallFrameWalker_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICallFrameWalker_OnWalkInterface(This,iid,ppvInterface,fIn,fOut) \ + ( (This)->lpVtbl -> OnWalkInterface(This,iid,ppvInterface,fIn,fOut) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICallFrameWalker_INTERFACE_DEFINED__ */ + + +#ifndef __IInterfaceRelated_INTERFACE_DEFINED__ +#define __IInterfaceRelated_INTERFACE_DEFINED__ + +/* interface IInterfaceRelated */ +/* [local][unique][object][uuid] */ + + +EXTERN_C const IID IID_IInterfaceRelated; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D1FB5A79-7706-11d1-ADBA-00C04FC2ADC0") + IInterfaceRelated : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetIID( + /* [in] */ REFIID iid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIID( + /* [out] */ IID *piid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInterfaceRelatedVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IInterfaceRelated * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IInterfaceRelated * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IInterfaceRelated * This); + + DECLSPEC_XFGVIRT(IInterfaceRelated, SetIID) + HRESULT ( STDMETHODCALLTYPE *SetIID )( + IInterfaceRelated * This, + /* [in] */ REFIID iid); + + DECLSPEC_XFGVIRT(IInterfaceRelated, GetIID) + HRESULT ( STDMETHODCALLTYPE *GetIID )( + IInterfaceRelated * This, + /* [out] */ IID *piid); + + END_INTERFACE + } IInterfaceRelatedVtbl; + + interface IInterfaceRelated + { + CONST_VTBL struct IInterfaceRelatedVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInterfaceRelated_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInterfaceRelated_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInterfaceRelated_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInterfaceRelated_SetIID(This,iid) \ + ( (This)->lpVtbl -> SetIID(This,iid) ) + +#define IInterfaceRelated_GetIID(This,piid) \ + ( (This)->lpVtbl -> GetIID(This,piid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInterfaceRelated_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_callobj_0000_0007 */ +/* [local] */ + +#define CALLFRAME_E_ALREADYINVOKED _HRESULT_TYPEDEF_( 0x8004d090 ) +#define CALLFRAME_E_COULDNTMAKECALL _HRESULT_TYPEDEF_( 0x8004d091 ) + + +extern RPC_IF_HANDLE __MIDL_itf_callobj_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_callobj_0000_0007_v0_0_s_ifspec; + +#ifndef __ICallFrameAPIs_INTERFACE_DEFINED__ +#define __ICallFrameAPIs_INTERFACE_DEFINED__ + +/* interface ICallFrameAPIs */ +/* [local][uuid] */ + +HRESULT __stdcall CoGetInterceptor( + /* [in] */ REFIID iidIntercepted, + /* [in] */ IUnknown *punkOuter, + /* [in] */ REFIID iid, + /* [out] */ void **ppv); + +HRESULT __stdcall CoGetInterceptorFromTypeInfo( + /* [in] */ REFIID iidIntercepted, + /* [in] */ IUnknown *punkOuter, + /* [in] */ ITypeInfo *typeInfo, + /* [in] */ REFIID iid, + /* [out] */ void **ppv); + + + +extern RPC_IF_HANDLE ICallFrameAPIs_v0_0_c_ifspec; +extern RPC_IF_HANDLE ICallFrameAPIs_v0_0_s_ifspec; +#endif /* __ICallFrameAPIs_INTERFACE_DEFINED__ */ + +/* interface __MIDL_itf_callobj_0000_0008 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_callobj_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_callobj_0000_0008_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/callobj.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/callobj.idl new file mode 100644 index 0000000000000000000000000000000000000000..1b2716fccc434734a732e619f26b1e21336ea150 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/callobj.idl @@ -0,0 +1,363 @@ +/* + + CallObjects: A Suite of Interfaces for Manipulating CallFrames as Objects + + Copyright (c) Microsoft Corporation. All rights reserved. + +*/ +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +import "oaidl.idl"; + +interface ICallInterceptor; +interface ICallUnmarshal; +interface ICallFrame; +interface ICallFrameEvents; +interface ICallFrameWalker; +interface IInterfaceRelated; + + +[uuid(D573B4B0-894E-11d2-B8B6-00C04FB9618A), object, pointer_default(unique), local] +interface ICallFrame : IUnknown +{ + + typedef struct + { + ULONG iMethod; + BOOL fHasInValues; + BOOL fHasInOutValues; + BOOL fHasOutValues; + BOOL fDerivesFromIDispatch; + LONG cInInterfacesMax; + LONG cInOutInterfacesMax; + LONG cOutInterfacesMax; + LONG cTopLevelInInterfaces; + IID iid; + ULONG cMethod; + ULONG cParams; + } CALLFRAMEINFO; + + typedef struct + { + BOOLEAN fIn; + BOOLEAN fOut; + ULONG stackOffset; + ULONG cbParam; + } CALLFRAMEPARAMINFO; + + HRESULT GetInfo + ( + [out] CALLFRAMEINFO* pInfo + ); + + HRESULT GetIIDAndMethod + ( + [out] IID* pIID, + [out] ULONG* piMethod + ); + + HRESULT GetNames + ( + [out,annotation("_Outptr_result_maybenull_")] LPWSTR* pwszInterface, + [out,annotation("_Outptr_result_maybenull_")] LPWSTR* pwszMethod + ); + + PVOID GetStackLocation (); + + void SetStackLocation + ( + [in] PVOID pvStack + ); + + void SetReturnValue + ( + [in] HRESULT hr + ); + + HRESULT GetReturnValue (); + + HRESULT GetParamInfo + ( + [in] ULONG iparam, + [out] CALLFRAMEPARAMINFO* pInfo + ); + + HRESULT SetParam + ( + [in] ULONG iparam, + [in] VARIANT* pvar + ); + + HRESULT GetParam + ( + [in] ULONG iparam, + [out] VARIANT* pvar + ); + + typedef enum + { + CALLFRAME_COPY_NESTED = 1, + CALLFRAME_COPY_INDEPENDENT = 2 + } CALLFRAME_COPY; + + + HRESULT Copy + ( + [in] CALLFRAME_COPY copyControl, + [in] ICallFrameWalker* pWalker, + [out] ICallFrame** ppFrame + ); + + HRESULT Free + ( + [in] ICallFrame* pframeArgsDest, + [in] ICallFrameWalker* pWalkerDestFree, + [in] ICallFrameWalker* pWalkerCopy, + [in] DWORD freeFlags, + [in] ICallFrameWalker* pWalkerFree, + [in] DWORD nullFlags + ); + + enum CALLFRAME_FREE + { + CALLFRAME_FREE_NONE = 0, + CALLFRAME_FREE_IN = 1, + CALLFRAME_FREE_INOUT = 2, + CALLFRAME_FREE_OUT = 4, + CALLFRAME_FREE_TOP_INOUT = 8, + CALLFRAME_FREE_TOP_OUT = 16, + CALLFRAME_FREE_ALL = 31, + }; + + enum CALLFRAME_NULL + { + CALLFRAME_NULL_NONE = 0, + CALLFRAME_NULL_INOUT = 2, + CALLFRAME_NULL_OUT = 4, + CALLFRAME_NULL_ALL = 6, + }; + + HRESULT FreeParam + ( + [in] ULONG iparam, + [in] DWORD freeFlags, + [in] ICallFrameWalker* pWalkerFree, + [in] DWORD nullFlags + ); + + HRESULT WalkFrame + ( + [in] DWORD walkWhat, + [in] ICallFrameWalker* pWalker + ); + + enum CALLFRAME_WALK + { + CALLFRAME_WALK_IN = 1, + CALLFRAME_WALK_INOUT = 2, + CALLFRAME_WALK_OUT = 4, + }; + + typedef struct + { + BOOLEAN fIn; + DWORD dwDestContext; + LPVOID pvDestContext; + IUnknown* punkReserved; + GUID guidTransferSyntax; + } CALLFRAME_MARSHALCONTEXT; + + HRESULT GetMarshalSizeMax + ( + [in] CALLFRAME_MARSHALCONTEXT* pmshlContext, + [in] MSHLFLAGS mshlflags, + [out] ULONG* pcbBufferNeeded + ); + + HRESULT Marshal + ( + [in] CALLFRAME_MARSHALCONTEXT* pmshlContext, + [in] MSHLFLAGS mshlflags, + [in,size_is(cbBuffer)] PVOID pBuffer, + [in] ULONG cbBuffer, + [out] ULONG* pcbBufferUsed, + [out] RPCOLEDATAREP* pdataRep, + [out] ULONG* prpcFlags + ); + + HRESULT Unmarshal + ( + [in,size_is(cbBuffer)] PVOID pBuffer, + [in] ULONG cbBuffer, + [in] RPCOLEDATAREP dataRep, + [in] CALLFRAME_MARSHALCONTEXT* pcontext, + [out] ULONG* pcbUnmarshalled + ); + + HRESULT ReleaseMarshalData + ( + [in,size_is(cbBuffer)] PVOID pBuffer, + [in] ULONG cbBuffer, + [in] ULONG ibFirstRelease, + [in] RPCOLEDATAREP dataRep, + [in] CALLFRAME_MARSHALCONTEXT* pcontext + ); + + HRESULT Invoke + ( + [in] void* pvReceiver, + ... + ); + +}; + +[uuid(D573B4B1-894E-11d2-B8B6-00C04FB9618A), object, pointer_default(unique), local] +interface ICallIndirect : IUnknown +{ + + HRESULT CallIndirect + ( + [out] HRESULT* phrReturn, + [in] ULONG iMethod, + [in] void* pvArgs, + [out] ULONG* cbArgs + ); + + + HRESULT GetMethodInfo + ( + [in] ULONG iMethod, + [out] CALLFRAMEINFO* pInfo, + [out,annotation("_Outptr_result_maybenull_")] LPWSTR* pwszMethod + ); + + + HRESULT GetStackSize + ( + [in] ULONG iMethod, + [out] ULONG* cbArgs + ); + + + HRESULT GetIID + ( + [out,annotation("_Out_opt_")] IID* piid, + [out,annotation("_Out_opt_")] BOOL* pfDerivesFromIDispatch, + [out,annotation("_Out_opt_")] ULONG* pcMethod, + [out,annotation("_Outptr_result_maybenull_")] LPWSTR* pwszInterface + ); + +}; + +[uuid(60C7CA75-896D-11d2-B8B6-00C04FB9618A), object, pointer_default(unique), local] +interface ICallInterceptor : ICallIndirect +{ + HRESULT RegisterSink + ( + [in] ICallFrameEvents* psink + ); + + HRESULT GetRegisteredSink + ( + [out] ICallFrameEvents** ppsink + ); +}; + +[uuid(FD5E0843-FC91-11d0-97D7-00C04FB9618A), object, pointer_default(unique), local] +interface ICallFrameEvents : IUnknown +{ + HRESULT OnCall + ( + [in] ICallFrame* pFrame /* A call frame bound to the just-received invocation */ + ); +}; + + +[uuid(5333B003-2E42-11d2-B89D-00C04FB9618A), object, pointer_default(unique), local] +interface ICallUnmarshal : IUnknown +{ + HRESULT Unmarshal + ( + [in] ULONG iMethod, + [in,size_is(cbBuffer)] PVOID pBuffer, + [in] ULONG cbBuffer, + [in] BOOL fForceBufferCopy, + [in] RPCOLEDATAREP dataRep, + [in] CALLFRAME_MARSHALCONTEXT *pcontext, + [out] ULONG* pcbUnmarshalled, + [out] ICallFrame** ppFrame + ); + + HRESULT ReleaseMarshalData + ( + [in] ULONG iMethod, + [in,size_is(cbBuffer)] PVOID pBuffer, + [in] ULONG cbBuffer, + [in] ULONG ibFirstRelease, + [in] RPCOLEDATAREP dataRep, + [in] CALLFRAME_MARSHALCONTEXT* pcontext + ); +}; + + +[uuid(08B23919-392D-11d2-B8A4-00C04FB9618A), object, pointer_default(unique), local] +interface ICallFrameWalker : IUnknown +{ + + HRESULT OnWalkInterface + ( + [in] REFIID iid, + [in] PVOID* ppvInterface, + [in] BOOL fIn, + [in] BOOL fOut + ); + +}; + +[uuid(D1FB5A79-7706-11d1-ADBA-00C04FC2ADC0), object, pointer_default(unique), local] +interface IInterfaceRelated : IUnknown +{ + HRESULT SetIID + ( + [in] REFIID iid + ); + + HRESULT GetIID + ( + [out] IID* piid + ); +}; + +cpp_quote("#define CALLFRAME_E_ALREADYINVOKED _HRESULT_TYPEDEF_( 0x8004d090 )") +cpp_quote("#define CALLFRAME_E_COULDNTMAKECALL _HRESULT_TYPEDEF_( 0x8004d091 )") + + +[uuid(15B51D8B-9BF6-11d1-B888-00C04FB9618A), local] +interface ICallFrameAPIs { + + HRESULT __stdcall CoGetInterceptor + ( + [in] REFIID iidIntercepted, + [in] IUnknown* punkOuter, + [in] REFIID iid, + [out] void** ppv + ); + + + HRESULT __stdcall CoGetInterceptorFromTypeInfo + ( + [in] REFIID iidIntercepted, + [in] IUnknown* punkOuter, + [in] ITypeInfo* typeInfo, + [in] REFIID iid, + [out] void** ppv + ); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/capi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/capi.h new file mode 100644 index 0000000000000000000000000000000000000000..7edf992ce3dacaeee00043f1e4851efcd2ec012e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/capi.h @@ -0,0 +1,54 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: capi.h +// +//---------------------------------------------------------------------------- + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include +#include +#include +#include + +#ifndef _JTRUST_H +#define _JTRUST_H + +#if !defined(JAVA_TRUST_PROVIDER) + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct _JAVA_TRUST { + DWORD cbSize; // Size of structure + DWORD flag; // Reserved + BOOL fAllActiveXPermissions; // ActiveX explicitly asked for all (must have been signed) + BOOL fAllPermissions; // Java permissions, explicit ask for all + DWORD dwEncodingType; // Encoding type + PBYTE pbJavaPermissions; // Encoded java permission blob + DWORD cbJavaPermissions; + PBYTE pbSigner; // Encoded signer. + DWORD cbSigner; + LPCWSTR pwszZone; // Zone index (copied from action data) + GUID guidZone; // Not used currently + HRESULT hVerify; // Authenticode policy return +} JAVA_TRUST, *PJAVA_TRUST; + +#ifdef __cplusplus +} +#endif + +#endif // !defined(JAVA_TRUST_PROVIDER) +#endif // _JTRUST_H + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/casetup.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/casetup.h new file mode 100644 index 0000000000000000000000000000000000000000..6cf26e3ad64f690c8ffc7de284c44e47c5125da1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/casetup.h @@ -0,0 +1,1829 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __casetup_h__ +#define __casetup_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICertSrvSetupKeyInformation_FWD_DEFINED__ +#define __ICertSrvSetupKeyInformation_FWD_DEFINED__ +typedef interface ICertSrvSetupKeyInformation ICertSrvSetupKeyInformation; + +#endif /* __ICertSrvSetupKeyInformation_FWD_DEFINED__ */ + + +#ifndef __ICertSrvSetupKeyInformationCollection_FWD_DEFINED__ +#define __ICertSrvSetupKeyInformationCollection_FWD_DEFINED__ +typedef interface ICertSrvSetupKeyInformationCollection ICertSrvSetupKeyInformationCollection; + +#endif /* __ICertSrvSetupKeyInformationCollection_FWD_DEFINED__ */ + + +#ifndef __ICertSrvSetup_FWD_DEFINED__ +#define __ICertSrvSetup_FWD_DEFINED__ +typedef interface ICertSrvSetup ICertSrvSetup; + +#endif /* __ICertSrvSetup_FWD_DEFINED__ */ + + +#ifndef __IMSCEPSetup_FWD_DEFINED__ +#define __IMSCEPSetup_FWD_DEFINED__ +typedef interface IMSCEPSetup IMSCEPSetup; + +#endif /* __IMSCEPSetup_FWD_DEFINED__ */ + + +#ifndef __ICertificateEnrollmentServerSetup_FWD_DEFINED__ +#define __ICertificateEnrollmentServerSetup_FWD_DEFINED__ +typedef interface ICertificateEnrollmentServerSetup ICertificateEnrollmentServerSetup; + +#endif /* __ICertificateEnrollmentServerSetup_FWD_DEFINED__ */ + + +#ifndef __ICertificateEnrollmentPolicyServerSetup_FWD_DEFINED__ +#define __ICertificateEnrollmentPolicyServerSetup_FWD_DEFINED__ +typedef interface ICertificateEnrollmentPolicyServerSetup ICertificateEnrollmentPolicyServerSetup; + +#endif /* __ICertificateEnrollmentPolicyServerSetup_FWD_DEFINED__ */ + + +#ifndef __CCertSrvSetupKeyInformation_FWD_DEFINED__ +#define __CCertSrvSetupKeyInformation_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertSrvSetupKeyInformation CCertSrvSetupKeyInformation; +#else +typedef struct CCertSrvSetupKeyInformation CCertSrvSetupKeyInformation; +#endif /* __cplusplus */ + +#endif /* __CCertSrvSetupKeyInformation_FWD_DEFINED__ */ + + +#ifndef __CCertSrvSetup_FWD_DEFINED__ +#define __CCertSrvSetup_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertSrvSetup CCertSrvSetup; +#else +typedef struct CCertSrvSetup CCertSrvSetup; +#endif /* __cplusplus */ + +#endif /* __CCertSrvSetup_FWD_DEFINED__ */ + + +#ifndef __CMSCEPSetup_FWD_DEFINED__ +#define __CMSCEPSetup_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CMSCEPSetup CMSCEPSetup; +#else +typedef struct CMSCEPSetup CMSCEPSetup; +#endif /* __cplusplus */ + +#endif /* __CMSCEPSetup_FWD_DEFINED__ */ + + +#ifndef __CCertificateEnrollmentServerSetup_FWD_DEFINED__ +#define __CCertificateEnrollmentServerSetup_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertificateEnrollmentServerSetup CCertificateEnrollmentServerSetup; +#else +typedef struct CCertificateEnrollmentServerSetup CCertificateEnrollmentServerSetup; +#endif /* __cplusplus */ + +#endif /* __CCertificateEnrollmentServerSetup_FWD_DEFINED__ */ + + +#ifndef __CCertificateEnrollmentPolicyServerSetup_FWD_DEFINED__ +#define __CCertificateEnrollmentPolicyServerSetup_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertificateEnrollmentPolicyServerSetup CCertificateEnrollmentPolicyServerSetup; +#else +typedef struct CCertificateEnrollmentPolicyServerSetup CCertificateEnrollmentPolicyServerSetup; +#endif /* __cplusplus */ + +#endif /* __CCertificateEnrollmentPolicyServerSetup_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_casetup_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0000_v0_0_s_ifspec; + +#ifndef __ICertSrvSetupKeyInformation_INTERFACE_DEFINED__ +#define __ICertSrvSetupKeyInformation_INTERFACE_DEFINED__ + +/* interface ICertSrvSetupKeyInformation */ +/* [unique][dual][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICertSrvSetupKeyInformation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6ba73778-36da-4c39-8a85-bcfa7d000793") + ICertSrvSetupKeyInformation : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProviderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ProviderName( + /* [in] */ __RPC__in const BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Length( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Length( + /* [in] */ LONG lVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Existing( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Existing( + /* [in] */ VARIANT_BOOL bVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ContainerName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ContainerName( + /* [in] */ __RPC__in const BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HashAlgorithm( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_HashAlgorithm( + /* [in] */ __RPC__in const BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExistingCACertificate( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ExistingCACertificate( + /* [in] */ VARIANT varVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertSrvSetupKeyInformationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertSrvSetupKeyInformation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertSrvSetupKeyInformation * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertSrvSetupKeyInformation * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, get_ProviderName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProviderName )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, put_ProviderName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProviderName )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [in] */ __RPC__in const BSTR bstrVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, get_Length) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, put_Length) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Length )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [in] */ LONG lVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, get_Existing) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Existing )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, put_Existing) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Existing )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [in] */ VARIANT_BOOL bVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, get_ContainerName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ContainerName )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, put_ContainerName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ContainerName )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [in] */ __RPC__in const BSTR bstrVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, get_HashAlgorithm) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, put_HashAlgorithm) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [in] */ __RPC__in const BSTR bstrVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, get_ExistingCACertificate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExistingCACertificate )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformation, put_ExistingCACertificate) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExistingCACertificate )( + __RPC__in ICertSrvSetupKeyInformation * This, + /* [in] */ VARIANT varVal); + + END_INTERFACE + } ICertSrvSetupKeyInformationVtbl; + + interface ICertSrvSetupKeyInformation + { + CONST_VTBL struct ICertSrvSetupKeyInformationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertSrvSetupKeyInformation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertSrvSetupKeyInformation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertSrvSetupKeyInformation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertSrvSetupKeyInformation_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertSrvSetupKeyInformation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertSrvSetupKeyInformation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertSrvSetupKeyInformation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertSrvSetupKeyInformation_get_ProviderName(This,pVal) \ + ( (This)->lpVtbl -> get_ProviderName(This,pVal) ) + +#define ICertSrvSetupKeyInformation_put_ProviderName(This,bstrVal) \ + ( (This)->lpVtbl -> put_ProviderName(This,bstrVal) ) + +#define ICertSrvSetupKeyInformation_get_Length(This,pVal) \ + ( (This)->lpVtbl -> get_Length(This,pVal) ) + +#define ICertSrvSetupKeyInformation_put_Length(This,lVal) \ + ( (This)->lpVtbl -> put_Length(This,lVal) ) + +#define ICertSrvSetupKeyInformation_get_Existing(This,pVal) \ + ( (This)->lpVtbl -> get_Existing(This,pVal) ) + +#define ICertSrvSetupKeyInformation_put_Existing(This,bVal) \ + ( (This)->lpVtbl -> put_Existing(This,bVal) ) + +#define ICertSrvSetupKeyInformation_get_ContainerName(This,pVal) \ + ( (This)->lpVtbl -> get_ContainerName(This,pVal) ) + +#define ICertSrvSetupKeyInformation_put_ContainerName(This,bstrVal) \ + ( (This)->lpVtbl -> put_ContainerName(This,bstrVal) ) + +#define ICertSrvSetupKeyInformation_get_HashAlgorithm(This,pVal) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,pVal) ) + +#define ICertSrvSetupKeyInformation_put_HashAlgorithm(This,bstrVal) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,bstrVal) ) + +#define ICertSrvSetupKeyInformation_get_ExistingCACertificate(This,pVal) \ + ( (This)->lpVtbl -> get_ExistingCACertificate(This,pVal) ) + +#define ICertSrvSetupKeyInformation_put_ExistingCACertificate(This,varVal) \ + ( (This)->lpVtbl -> put_ExistingCACertificate(This,varVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertSrvSetupKeyInformation_INTERFACE_DEFINED__ */ + + +#ifndef __ICertSrvSetupKeyInformationCollection_INTERFACE_DEFINED__ +#define __ICertSrvSetupKeyInformationCollection_INTERFACE_DEFINED__ + +/* interface ICertSrvSetupKeyInformationCollection */ +/* [unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertSrvSetupKeyInformationCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e65c8b00-e58f-41f9-a9ec-a28d7427c844") + ICertSrvSetupKeyInformationCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt ICertSrvSetupKeyInformation *pIKeyInformation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertSrvSetupKeyInformationCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertSrvSetupKeyInformationCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertSrvSetupKeyInformationCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertSrvSetupKeyInformationCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertSrvSetupKeyInformationCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertSrvSetupKeyInformationCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertSrvSetupKeyInformationCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertSrvSetupKeyInformationCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformationCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICertSrvSetupKeyInformationCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformationCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in ICertSrvSetupKeyInformationCollection * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformationCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICertSrvSetupKeyInformationCollection * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetupKeyInformationCollection, Add) + HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ICertSrvSetupKeyInformationCollection * This, + /* [in] */ __RPC__in_opt ICertSrvSetupKeyInformation *pIKeyInformation); + + END_INTERFACE + } ICertSrvSetupKeyInformationCollectionVtbl; + + interface ICertSrvSetupKeyInformationCollection + { + CONST_VTBL struct ICertSrvSetupKeyInformationCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertSrvSetupKeyInformationCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertSrvSetupKeyInformationCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertSrvSetupKeyInformationCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertSrvSetupKeyInformationCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertSrvSetupKeyInformationCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertSrvSetupKeyInformationCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertSrvSetupKeyInformationCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertSrvSetupKeyInformationCollection_get__NewEnum(This,ppVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppVal) ) + +#define ICertSrvSetupKeyInformationCollection_get_Item(This,Index,pVal) \ + ( (This)->lpVtbl -> get_Item(This,Index,pVal) ) + +#define ICertSrvSetupKeyInformationCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ICertSrvSetupKeyInformationCollection_Add(This,pIKeyInformation) \ + ( (This)->lpVtbl -> Add(This,pIKeyInformation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertSrvSetupKeyInformationCollection_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_casetup_0000_0002 */ +/* [local] */ + +typedef /* [public][public][public][public] */ +enum __MIDL___MIDL_itf_casetup_0000_0002_0001 + { + ENUM_SETUPPROP_INVALID = -1, + ENUM_SETUPPROP_CATYPE = 0, + ENUM_SETUPPROP_CAKEYINFORMATION = 1, + ENUM_SETUPPROP_INTERACTIVE = 2, + ENUM_SETUPPROP_CANAME = 3, + ENUM_SETUPPROP_CADSSUFFIX = 4, + ENUM_SETUPPROP_VALIDITYPERIOD = 5, + ENUM_SETUPPROP_VALIDITYPERIODUNIT = 6, + ENUM_SETUPPROP_EXPIRATIONDATE = 7, + ENUM_SETUPPROP_PRESERVEDATABASE = 8, + ENUM_SETUPPROP_DATABASEDIRECTORY = 9, + ENUM_SETUPPROP_LOGDIRECTORY = 10, + ENUM_SETUPPROP_SHAREDFOLDER = 11, + ENUM_SETUPPROP_PARENTCAMACHINE = 12, + ENUM_SETUPPROP_PARENTCANAME = 13, + ENUM_SETUPPROP_REQUESTFILE = 14, + ENUM_SETUPPROP_WEBCAMACHINE = 15, + ENUM_SETUPPROP_WEBCANAME = 16 + } CASetupProperty; + + + +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0002_v0_0_s_ifspec; + +#ifndef __ICertSrvSetup_INTERFACE_DEFINED__ +#define __ICertSrvSetup_INTERFACE_DEFINED__ + +/* interface ICertSrvSetup */ +/* [unique][dual][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICertSrvSetup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b760a1bb-4784-44c0-8f12-555f0780ff25") + ICertSrvSetup : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CAErrorId( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CAErrorString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDefaults( + /* [in] */ VARIANT_BOOL bServer, + /* [in] */ VARIANT_BOOL bClient) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCASetupProperty( + /* [in] */ CASetupProperty propertyId, + /* [retval][out] */ __RPC__out VARIANT *pPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCASetupProperty( + /* [in] */ CASetupProperty propertyId, + /* [in] */ __RPC__in VARIANT *pPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsPropertyEditable( + /* [in] */ CASetupProperty propertyId, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbEditable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSupportedCATypes( + /* [retval][out] */ __RPC__out VARIANT *pCATypes) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProviderNameList( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetKeyLengthList( + /* [in] */ __RPC__in const BSTR bstrProviderName, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHashAlgorithmList( + /* [in] */ __RPC__in const BSTR bstrProviderName, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateKeyContainerList( + /* [in] */ __RPC__in const BSTR bstrProviderName, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExistingCACertificates( + /* [retval][out] */ __RPC__deref_out_opt ICertSrvSetupKeyInformationCollection **ppVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE CAImportPFX( + /* [in] */ __RPC__in const BSTR bstrFileName, + /* [in] */ __RPC__in const BSTR bstrPasswd, + /* [in] */ VARIANT_BOOL bOverwriteExistingKey, + /* [retval][out] */ __RPC__deref_out_opt ICertSrvSetupKeyInformation **ppVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCADistinguishedName( + /* [in] */ __RPC__in const BSTR bstrCADN, + /* [in] */ VARIANT_BOOL bIgnoreUnicode, + /* [in] */ VARIANT_BOOL bOverwriteExistingKey, + /* [in] */ VARIANT_BOOL bOverwriteExistingCAInDS) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDatabaseInformation( + /* [in] */ __RPC__in const BSTR bstrDBDirectory, + /* [in] */ __RPC__in const BSTR bstrLogDirectory, + /* [in] */ __RPC__in const BSTR bstrSharedFolder, + /* [in] */ VARIANT_BOOL bForceOverwrite) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetParentCAInformation( + /* [in] */ __RPC__in const BSTR bstrCAConfiguration) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetWebCAInformation( + /* [in] */ __RPC__in const BSTR bstrCAConfiguration) = 0; + + virtual HRESULT STDMETHODCALLTYPE Install( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PreUnInstall( + /* [in] */ VARIANT_BOOL bClientOnly) = 0; + + virtual HRESULT STDMETHODCALLTYPE PostUnInstall( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertSrvSetupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertSrvSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertSrvSetup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertSrvSetup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertSrvSetup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertSrvSetup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertSrvSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertSrvSetup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertSrvSetup, get_CAErrorId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAErrorId )( + __RPC__in ICertSrvSetup * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetup, get_CAErrorString) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAErrorString )( + __RPC__in ICertSrvSetup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetup, InitializeDefaults) + HRESULT ( STDMETHODCALLTYPE *InitializeDefaults )( + __RPC__in ICertSrvSetup * This, + /* [in] */ VARIANT_BOOL bServer, + /* [in] */ VARIANT_BOOL bClient); + + DECLSPEC_XFGVIRT(ICertSrvSetup, GetCASetupProperty) + HRESULT ( STDMETHODCALLTYPE *GetCASetupProperty )( + __RPC__in ICertSrvSetup * This, + /* [in] */ CASetupProperty propertyId, + /* [retval][out] */ __RPC__out VARIANT *pPropertyValue); + + DECLSPEC_XFGVIRT(ICertSrvSetup, SetCASetupProperty) + HRESULT ( STDMETHODCALLTYPE *SetCASetupProperty )( + __RPC__in ICertSrvSetup * This, + /* [in] */ CASetupProperty propertyId, + /* [in] */ __RPC__in VARIANT *pPropertyValue); + + DECLSPEC_XFGVIRT(ICertSrvSetup, IsPropertyEditable) + HRESULT ( STDMETHODCALLTYPE *IsPropertyEditable )( + __RPC__in ICertSrvSetup * This, + /* [in] */ CASetupProperty propertyId, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbEditable); + + DECLSPEC_XFGVIRT(ICertSrvSetup, GetSupportedCATypes) + HRESULT ( STDMETHODCALLTYPE *GetSupportedCATypes )( + __RPC__in ICertSrvSetup * This, + /* [retval][out] */ __RPC__out VARIANT *pCATypes); + + DECLSPEC_XFGVIRT(ICertSrvSetup, GetProviderNameList) + HRESULT ( STDMETHODCALLTYPE *GetProviderNameList )( + __RPC__in ICertSrvSetup * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetup, GetKeyLengthList) + HRESULT ( STDMETHODCALLTYPE *GetKeyLengthList )( + __RPC__in ICertSrvSetup * This, + /* [in] */ __RPC__in const BSTR bstrProviderName, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetup, GetHashAlgorithmList) + HRESULT ( STDMETHODCALLTYPE *GetHashAlgorithmList )( + __RPC__in ICertSrvSetup * This, + /* [in] */ __RPC__in const BSTR bstrProviderName, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetup, GetPrivateKeyContainerList) + HRESULT ( STDMETHODCALLTYPE *GetPrivateKeyContainerList )( + __RPC__in ICertSrvSetup * This, + /* [in] */ __RPC__in const BSTR bstrProviderName, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(ICertSrvSetup, GetExistingCACertificates) + HRESULT ( STDMETHODCALLTYPE *GetExistingCACertificates )( + __RPC__in ICertSrvSetup * This, + /* [retval][out] */ __RPC__deref_out_opt ICertSrvSetupKeyInformationCollection **ppVal); + + DECLSPEC_XFGVIRT(ICertSrvSetup, CAImportPFX) + HRESULT ( STDMETHODCALLTYPE *CAImportPFX )( + __RPC__in ICertSrvSetup * This, + /* [in] */ __RPC__in const BSTR bstrFileName, + /* [in] */ __RPC__in const BSTR bstrPasswd, + /* [in] */ VARIANT_BOOL bOverwriteExistingKey, + /* [retval][out] */ __RPC__deref_out_opt ICertSrvSetupKeyInformation **ppVal); + + DECLSPEC_XFGVIRT(ICertSrvSetup, SetCADistinguishedName) + HRESULT ( STDMETHODCALLTYPE *SetCADistinguishedName )( + __RPC__in ICertSrvSetup * This, + /* [in] */ __RPC__in const BSTR bstrCADN, + /* [in] */ VARIANT_BOOL bIgnoreUnicode, + /* [in] */ VARIANT_BOOL bOverwriteExistingKey, + /* [in] */ VARIANT_BOOL bOverwriteExistingCAInDS); + + DECLSPEC_XFGVIRT(ICertSrvSetup, SetDatabaseInformation) + HRESULT ( STDMETHODCALLTYPE *SetDatabaseInformation )( + __RPC__in ICertSrvSetup * This, + /* [in] */ __RPC__in const BSTR bstrDBDirectory, + /* [in] */ __RPC__in const BSTR bstrLogDirectory, + /* [in] */ __RPC__in const BSTR bstrSharedFolder, + /* [in] */ VARIANT_BOOL bForceOverwrite); + + DECLSPEC_XFGVIRT(ICertSrvSetup, SetParentCAInformation) + HRESULT ( STDMETHODCALLTYPE *SetParentCAInformation )( + __RPC__in ICertSrvSetup * This, + /* [in] */ __RPC__in const BSTR bstrCAConfiguration); + + DECLSPEC_XFGVIRT(ICertSrvSetup, SetWebCAInformation) + HRESULT ( STDMETHODCALLTYPE *SetWebCAInformation )( + __RPC__in ICertSrvSetup * This, + /* [in] */ __RPC__in const BSTR bstrCAConfiguration); + + DECLSPEC_XFGVIRT(ICertSrvSetup, Install) + HRESULT ( STDMETHODCALLTYPE *Install )( + __RPC__in ICertSrvSetup * This); + + DECLSPEC_XFGVIRT(ICertSrvSetup, PreUnInstall) + HRESULT ( STDMETHODCALLTYPE *PreUnInstall )( + __RPC__in ICertSrvSetup * This, + /* [in] */ VARIANT_BOOL bClientOnly); + + DECLSPEC_XFGVIRT(ICertSrvSetup, PostUnInstall) + HRESULT ( STDMETHODCALLTYPE *PostUnInstall )( + __RPC__in ICertSrvSetup * This); + + END_INTERFACE + } ICertSrvSetupVtbl; + + interface ICertSrvSetup + { + CONST_VTBL struct ICertSrvSetupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertSrvSetup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertSrvSetup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertSrvSetup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertSrvSetup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertSrvSetup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertSrvSetup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertSrvSetup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertSrvSetup_get_CAErrorId(This,pVal) \ + ( (This)->lpVtbl -> get_CAErrorId(This,pVal) ) + +#define ICertSrvSetup_get_CAErrorString(This,pVal) \ + ( (This)->lpVtbl -> get_CAErrorString(This,pVal) ) + +#define ICertSrvSetup_InitializeDefaults(This,bServer,bClient) \ + ( (This)->lpVtbl -> InitializeDefaults(This,bServer,bClient) ) + +#define ICertSrvSetup_GetCASetupProperty(This,propertyId,pPropertyValue) \ + ( (This)->lpVtbl -> GetCASetupProperty(This,propertyId,pPropertyValue) ) + +#define ICertSrvSetup_SetCASetupProperty(This,propertyId,pPropertyValue) \ + ( (This)->lpVtbl -> SetCASetupProperty(This,propertyId,pPropertyValue) ) + +#define ICertSrvSetup_IsPropertyEditable(This,propertyId,pbEditable) \ + ( (This)->lpVtbl -> IsPropertyEditable(This,propertyId,pbEditable) ) + +#define ICertSrvSetup_GetSupportedCATypes(This,pCATypes) \ + ( (This)->lpVtbl -> GetSupportedCATypes(This,pCATypes) ) + +#define ICertSrvSetup_GetProviderNameList(This,pVal) \ + ( (This)->lpVtbl -> GetProviderNameList(This,pVal) ) + +#define ICertSrvSetup_GetKeyLengthList(This,bstrProviderName,pVal) \ + ( (This)->lpVtbl -> GetKeyLengthList(This,bstrProviderName,pVal) ) + +#define ICertSrvSetup_GetHashAlgorithmList(This,bstrProviderName,pVal) \ + ( (This)->lpVtbl -> GetHashAlgorithmList(This,bstrProviderName,pVal) ) + +#define ICertSrvSetup_GetPrivateKeyContainerList(This,bstrProviderName,pVal) \ + ( (This)->lpVtbl -> GetPrivateKeyContainerList(This,bstrProviderName,pVal) ) + +#define ICertSrvSetup_GetExistingCACertificates(This,ppVal) \ + ( (This)->lpVtbl -> GetExistingCACertificates(This,ppVal) ) + +#define ICertSrvSetup_CAImportPFX(This,bstrFileName,bstrPasswd,bOverwriteExistingKey,ppVal) \ + ( (This)->lpVtbl -> CAImportPFX(This,bstrFileName,bstrPasswd,bOverwriteExistingKey,ppVal) ) + +#define ICertSrvSetup_SetCADistinguishedName(This,bstrCADN,bIgnoreUnicode,bOverwriteExistingKey,bOverwriteExistingCAInDS) \ + ( (This)->lpVtbl -> SetCADistinguishedName(This,bstrCADN,bIgnoreUnicode,bOverwriteExistingKey,bOverwriteExistingCAInDS) ) + +#define ICertSrvSetup_SetDatabaseInformation(This,bstrDBDirectory,bstrLogDirectory,bstrSharedFolder,bForceOverwrite) \ + ( (This)->lpVtbl -> SetDatabaseInformation(This,bstrDBDirectory,bstrLogDirectory,bstrSharedFolder,bForceOverwrite) ) + +#define ICertSrvSetup_SetParentCAInformation(This,bstrCAConfiguration) \ + ( (This)->lpVtbl -> SetParentCAInformation(This,bstrCAConfiguration) ) + +#define ICertSrvSetup_SetWebCAInformation(This,bstrCAConfiguration) \ + ( (This)->lpVtbl -> SetWebCAInformation(This,bstrCAConfiguration) ) + +#define ICertSrvSetup_Install(This) \ + ( (This)->lpVtbl -> Install(This) ) + +#define ICertSrvSetup_PreUnInstall(This,bClientOnly) \ + ( (This)->lpVtbl -> PreUnInstall(This,bClientOnly) ) + +#define ICertSrvSetup_PostUnInstall(This) \ + ( (This)->lpVtbl -> PostUnInstall(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertSrvSetup_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_casetup_0000_0003 */ +/* [local] */ + +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_casetup_0000_0003_0001 + { + ENUM_CEPSETUPPROP_USELOCALSYSTEM = 0, + ENUM_CEPSETUPPROP_USECHALLENGE = 1, + ENUM_CEPSETUPPROP_RANAME_CN = 2, + ENUM_CEPSETUPPROP_RANAME_EMAIL = 3, + ENUM_CEPSETUPPROP_RANAME_COMPANY = 4, + ENUM_CEPSETUPPROP_RANAME_DEPT = 5, + ENUM_CEPSETUPPROP_RANAME_CITY = 6, + ENUM_CEPSETUPPROP_RANAME_STATE = 7, + ENUM_CEPSETUPPROP_RANAME_COUNTRY = 8, + ENUM_CEPSETUPPROP_SIGNINGKEYINFORMATION = 9, + ENUM_CEPSETUPPROP_EXCHANGEKEYINFORMATION = 10, + ENUM_CEPSETUPPROP_CAINFORMATION = 11, + ENUM_CEPSETUPPROP_MSCEPURL = 12, + ENUM_CEPSETUPPROP_CHALLENGEURL = 13 + } MSCEPSetupProperty; + + + +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0003_v0_0_s_ifspec; + +#ifndef __IMSCEPSetup_INTERFACE_DEFINED__ +#define __IMSCEPSetup_INTERFACE_DEFINED__ + +/* interface IMSCEPSetup */ +/* [unique][dual][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMSCEPSetup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4f7761bb-9f3b-4592-9ee0-9a73259c313e") + IMSCEPSetup : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MSCEPErrorId( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MSCEPErrorString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDefaults( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMSCEPSetupProperty( + /* [in] */ MSCEPSetupProperty propertyId, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetMSCEPSetupProperty( + /* [in] */ MSCEPSetupProperty propertyId, + /* [in] */ __RPC__in VARIANT *pPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAccountInformation( + /* [in] */ __RPC__in const BSTR bstrUserName, + /* [in] */ __RPC__in const BSTR bstrPassword) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsMSCEPStoreEmpty( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbEmpty) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProviderNameList( + /* [in] */ VARIANT_BOOL bExchange, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetKeyLengthList( + /* [in] */ VARIANT_BOOL bExchange, + /* [in] */ __RPC__in const BSTR bstrProviderName, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE Install( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PreUnInstall( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PostUnInstall( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMSCEPSetupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMSCEPSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMSCEPSetup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMSCEPSetup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMSCEPSetup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMSCEPSetup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMSCEPSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMSCEPSetup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMSCEPSetup, get_MSCEPErrorId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MSCEPErrorId )( + __RPC__in IMSCEPSetup * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IMSCEPSetup, get_MSCEPErrorString) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MSCEPErrorString )( + __RPC__in IMSCEPSetup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IMSCEPSetup, InitializeDefaults) + HRESULT ( STDMETHODCALLTYPE *InitializeDefaults )( + __RPC__in IMSCEPSetup * This); + + DECLSPEC_XFGVIRT(IMSCEPSetup, GetMSCEPSetupProperty) + HRESULT ( STDMETHODCALLTYPE *GetMSCEPSetupProperty )( + __RPC__in IMSCEPSetup * This, + /* [in] */ MSCEPSetupProperty propertyId, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IMSCEPSetup, SetMSCEPSetupProperty) + HRESULT ( STDMETHODCALLTYPE *SetMSCEPSetupProperty )( + __RPC__in IMSCEPSetup * This, + /* [in] */ MSCEPSetupProperty propertyId, + /* [in] */ __RPC__in VARIANT *pPropertyValue); + + DECLSPEC_XFGVIRT(IMSCEPSetup, SetAccountInformation) + HRESULT ( STDMETHODCALLTYPE *SetAccountInformation )( + __RPC__in IMSCEPSetup * This, + /* [in] */ __RPC__in const BSTR bstrUserName, + /* [in] */ __RPC__in const BSTR bstrPassword); + + DECLSPEC_XFGVIRT(IMSCEPSetup, IsMSCEPStoreEmpty) + HRESULT ( STDMETHODCALLTYPE *IsMSCEPStoreEmpty )( + __RPC__in IMSCEPSetup * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pbEmpty); + + DECLSPEC_XFGVIRT(IMSCEPSetup, GetProviderNameList) + HRESULT ( STDMETHODCALLTYPE *GetProviderNameList )( + __RPC__in IMSCEPSetup * This, + /* [in] */ VARIANT_BOOL bExchange, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IMSCEPSetup, GetKeyLengthList) + HRESULT ( STDMETHODCALLTYPE *GetKeyLengthList )( + __RPC__in IMSCEPSetup * This, + /* [in] */ VARIANT_BOOL bExchange, + /* [in] */ __RPC__in const BSTR bstrProviderName, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IMSCEPSetup, Install) + HRESULT ( STDMETHODCALLTYPE *Install )( + __RPC__in IMSCEPSetup * This); + + DECLSPEC_XFGVIRT(IMSCEPSetup, PreUnInstall) + HRESULT ( STDMETHODCALLTYPE *PreUnInstall )( + __RPC__in IMSCEPSetup * This); + + DECLSPEC_XFGVIRT(IMSCEPSetup, PostUnInstall) + HRESULT ( STDMETHODCALLTYPE *PostUnInstall )( + __RPC__in IMSCEPSetup * This); + + END_INTERFACE + } IMSCEPSetupVtbl; + + interface IMSCEPSetup + { + CONST_VTBL struct IMSCEPSetupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMSCEPSetup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMSCEPSetup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMSCEPSetup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMSCEPSetup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMSCEPSetup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMSCEPSetup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMSCEPSetup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMSCEPSetup_get_MSCEPErrorId(This,pVal) \ + ( (This)->lpVtbl -> get_MSCEPErrorId(This,pVal) ) + +#define IMSCEPSetup_get_MSCEPErrorString(This,pVal) \ + ( (This)->lpVtbl -> get_MSCEPErrorString(This,pVal) ) + +#define IMSCEPSetup_InitializeDefaults(This) \ + ( (This)->lpVtbl -> InitializeDefaults(This) ) + +#define IMSCEPSetup_GetMSCEPSetupProperty(This,propertyId,pVal) \ + ( (This)->lpVtbl -> GetMSCEPSetupProperty(This,propertyId,pVal) ) + +#define IMSCEPSetup_SetMSCEPSetupProperty(This,propertyId,pPropertyValue) \ + ( (This)->lpVtbl -> SetMSCEPSetupProperty(This,propertyId,pPropertyValue) ) + +#define IMSCEPSetup_SetAccountInformation(This,bstrUserName,bstrPassword) \ + ( (This)->lpVtbl -> SetAccountInformation(This,bstrUserName,bstrPassword) ) + +#define IMSCEPSetup_IsMSCEPStoreEmpty(This,pbEmpty) \ + ( (This)->lpVtbl -> IsMSCEPStoreEmpty(This,pbEmpty) ) + +#define IMSCEPSetup_GetProviderNameList(This,bExchange,pVal) \ + ( (This)->lpVtbl -> GetProviderNameList(This,bExchange,pVal) ) + +#define IMSCEPSetup_GetKeyLengthList(This,bExchange,bstrProviderName,pVal) \ + ( (This)->lpVtbl -> GetKeyLengthList(This,bExchange,bstrProviderName,pVal) ) + +#define IMSCEPSetup_Install(This) \ + ( (This)->lpVtbl -> Install(This) ) + +#define IMSCEPSetup_PreUnInstall(This) \ + ( (This)->lpVtbl -> PreUnInstall(This) ) + +#define IMSCEPSetup_PostUnInstall(This) \ + ( (This)->lpVtbl -> PostUnInstall(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMSCEPSetup_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_casetup_0000_0004 */ +/* [local] */ + +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_casetup_0000_0004_0001 + { + ENUM_CESSETUPPROP_USE_IISAPPPOOLIDENTITY = 0, + ENUM_CESSETUPPROP_CACONFIG = 1, + ENUM_CESSETUPPROP_AUTHENTICATION = 2, + ENUM_CESSETUPPROP_SSLCERTHASH = 3, + ENUM_CESSETUPPROP_URL = 4, + ENUM_CESSETUPPROP_RENEWALONLY = 5, + ENUM_CESSETUPPROP_ALLOW_KEYBASED_RENEWAL = 6 + } CESSetupProperty; + + + +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0004_v0_0_s_ifspec; + +#ifndef __ICertificateEnrollmentServerSetup_INTERFACE_DEFINED__ +#define __ICertificateEnrollmentServerSetup_INTERFACE_DEFINED__ + +/* interface ICertificateEnrollmentServerSetup */ +/* [unique][dual][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICertificateEnrollmentServerSetup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("70027FDB-9DD9-4921-8944-B35CB31BD2EC") + ICertificateEnrollmentServerSetup : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ErrorString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeInstallDefaults( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ CESSetupProperty propertyId, + /* [retval][out] */ __RPC__out VARIANT *pPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ CESSetupProperty propertyId, + /* [in] */ __RPC__in VARIANT *pPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetApplicationPoolCredentials( + /* [in] */ __RPC__in const BSTR bstrUsername, + /* [in] */ __RPC__in const BSTR bstrPassword) = 0; + + virtual HRESULT STDMETHODCALLTYPE Install( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnInstall( + /* [optional][in] */ __RPC__in VARIANT *pCAConfig, + /* [optional][in] */ __RPC__in VARIANT *pAuthentication) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertificateEnrollmentServerSetupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertificateEnrollmentServerSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertificateEnrollmentServerSetup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertificateEnrollmentServerSetup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertificateEnrollmentServerSetup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertificateEnrollmentServerSetup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertificateEnrollmentServerSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertificateEnrollmentServerSetup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentServerSetup, get_ErrorString) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorString )( + __RPC__in ICertificateEnrollmentServerSetup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentServerSetup, InitializeInstallDefaults) + HRESULT ( STDMETHODCALLTYPE *InitializeInstallDefaults )( + __RPC__in ICertificateEnrollmentServerSetup * This); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentServerSetup, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in ICertificateEnrollmentServerSetup * This, + /* [in] */ CESSetupProperty propertyId, + /* [retval][out] */ __RPC__out VARIANT *pPropertyValue); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentServerSetup, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in ICertificateEnrollmentServerSetup * This, + /* [in] */ CESSetupProperty propertyId, + /* [in] */ __RPC__in VARIANT *pPropertyValue); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentServerSetup, SetApplicationPoolCredentials) + HRESULT ( STDMETHODCALLTYPE *SetApplicationPoolCredentials )( + __RPC__in ICertificateEnrollmentServerSetup * This, + /* [in] */ __RPC__in const BSTR bstrUsername, + /* [in] */ __RPC__in const BSTR bstrPassword); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentServerSetup, Install) + HRESULT ( STDMETHODCALLTYPE *Install )( + __RPC__in ICertificateEnrollmentServerSetup * This); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentServerSetup, UnInstall) + HRESULT ( STDMETHODCALLTYPE *UnInstall )( + __RPC__in ICertificateEnrollmentServerSetup * This, + /* [optional][in] */ __RPC__in VARIANT *pCAConfig, + /* [optional][in] */ __RPC__in VARIANT *pAuthentication); + + END_INTERFACE + } ICertificateEnrollmentServerSetupVtbl; + + interface ICertificateEnrollmentServerSetup + { + CONST_VTBL struct ICertificateEnrollmentServerSetupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertificateEnrollmentServerSetup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertificateEnrollmentServerSetup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertificateEnrollmentServerSetup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertificateEnrollmentServerSetup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertificateEnrollmentServerSetup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertificateEnrollmentServerSetup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertificateEnrollmentServerSetup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertificateEnrollmentServerSetup_get_ErrorString(This,pVal) \ + ( (This)->lpVtbl -> get_ErrorString(This,pVal) ) + +#define ICertificateEnrollmentServerSetup_InitializeInstallDefaults(This) \ + ( (This)->lpVtbl -> InitializeInstallDefaults(This) ) + +#define ICertificateEnrollmentServerSetup_GetProperty(This,propertyId,pPropertyValue) \ + ( (This)->lpVtbl -> GetProperty(This,propertyId,pPropertyValue) ) + +#define ICertificateEnrollmentServerSetup_SetProperty(This,propertyId,pPropertyValue) \ + ( (This)->lpVtbl -> SetProperty(This,propertyId,pPropertyValue) ) + +#define ICertificateEnrollmentServerSetup_SetApplicationPoolCredentials(This,bstrUsername,bstrPassword) \ + ( (This)->lpVtbl -> SetApplicationPoolCredentials(This,bstrUsername,bstrPassword) ) + +#define ICertificateEnrollmentServerSetup_Install(This) \ + ( (This)->lpVtbl -> Install(This) ) + +#define ICertificateEnrollmentServerSetup_UnInstall(This,pCAConfig,pAuthentication) \ + ( (This)->lpVtbl -> UnInstall(This,pCAConfig,pAuthentication) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertificateEnrollmentServerSetup_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_casetup_0000_0005 */ +/* [local] */ + +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_casetup_0000_0005_0001 + { + ENUM_CEPSETUPPROP_AUTHENTICATION = 0, + ENUM_CEPSETUPPROP_SSLCERTHASH = 1, + ENUM_CEPSETUPPROP_URL = 2, + ENUM_CEPSETUPPROP_KEYBASED_RENEWAL = 3 + } CEPSetupProperty; + + + +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0005_v0_0_s_ifspec; + +#ifndef __ICertificateEnrollmentPolicyServerSetup_INTERFACE_DEFINED__ +#define __ICertificateEnrollmentPolicyServerSetup_INTERFACE_DEFINED__ + +/* interface ICertificateEnrollmentPolicyServerSetup */ +/* [unique][dual][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICertificateEnrollmentPolicyServerSetup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("859252CC-238C-4a88-B8FD-A37E7D04E68B") + ICertificateEnrollmentPolicyServerSetup : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ErrorString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeInstallDefaults( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ CEPSetupProperty propertyId, + /* [retval][out] */ __RPC__out VARIANT *pPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ CEPSetupProperty propertyId, + /* [in] */ __RPC__in VARIANT *pPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Install( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnInstall( + /* [optional][in] */ __RPC__in VARIANT *pAuthKeyBasedRenewal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertificateEnrollmentPolicyServerSetupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertificateEnrollmentPolicyServerSetup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentPolicyServerSetup, get_ErrorString) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorString )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentPolicyServerSetup, InitializeInstallDefaults) + HRESULT ( STDMETHODCALLTYPE *InitializeInstallDefaults )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentPolicyServerSetup, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This, + /* [in] */ CEPSetupProperty propertyId, + /* [retval][out] */ __RPC__out VARIANT *pPropertyValue); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentPolicyServerSetup, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This, + /* [in] */ CEPSetupProperty propertyId, + /* [in] */ __RPC__in VARIANT *pPropertyValue); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentPolicyServerSetup, Install) + HRESULT ( STDMETHODCALLTYPE *Install )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This); + + DECLSPEC_XFGVIRT(ICertificateEnrollmentPolicyServerSetup, UnInstall) + HRESULT ( STDMETHODCALLTYPE *UnInstall )( + __RPC__in ICertificateEnrollmentPolicyServerSetup * This, + /* [optional][in] */ __RPC__in VARIANT *pAuthKeyBasedRenewal); + + END_INTERFACE + } ICertificateEnrollmentPolicyServerSetupVtbl; + + interface ICertificateEnrollmentPolicyServerSetup + { + CONST_VTBL struct ICertificateEnrollmentPolicyServerSetupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertificateEnrollmentPolicyServerSetup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertificateEnrollmentPolicyServerSetup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertificateEnrollmentPolicyServerSetup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertificateEnrollmentPolicyServerSetup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertificateEnrollmentPolicyServerSetup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertificateEnrollmentPolicyServerSetup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertificateEnrollmentPolicyServerSetup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertificateEnrollmentPolicyServerSetup_get_ErrorString(This,pVal) \ + ( (This)->lpVtbl -> get_ErrorString(This,pVal) ) + +#define ICertificateEnrollmentPolicyServerSetup_InitializeInstallDefaults(This) \ + ( (This)->lpVtbl -> InitializeInstallDefaults(This) ) + +#define ICertificateEnrollmentPolicyServerSetup_GetProperty(This,propertyId,pPropertyValue) \ + ( (This)->lpVtbl -> GetProperty(This,propertyId,pPropertyValue) ) + +#define ICertificateEnrollmentPolicyServerSetup_SetProperty(This,propertyId,pPropertyValue) \ + ( (This)->lpVtbl -> SetProperty(This,propertyId,pPropertyValue) ) + +#define ICertificateEnrollmentPolicyServerSetup_Install(This) \ + ( (This)->lpVtbl -> Install(This) ) + +#define ICertificateEnrollmentPolicyServerSetup_UnInstall(This,pAuthKeyBasedRenewal) \ + ( (This)->lpVtbl -> UnInstall(This,pAuthKeyBasedRenewal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertificateEnrollmentPolicyServerSetup_INTERFACE_DEFINED__ */ + + + +#ifndef __CertSrvSetupLib_LIBRARY_DEFINED__ +#define __CertSrvSetupLib_LIBRARY_DEFINED__ + +/* library CertSrvSetupLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_CertSrvSetupLib; + +EXTERN_C const CLSID CLSID_CCertSrvSetupKeyInformation; + +#ifdef __cplusplus + +class DECLSPEC_UUID("38373906-5433-4633-b0fb-29b7e78262e1") +CCertSrvSetupKeyInformation; +#endif + +EXTERN_C const CLSID CLSID_CCertSrvSetup; + +#ifdef __cplusplus + +class DECLSPEC_UUID("961f180f-f55c-413d-a9b3-7d2af4d8e42f") +CCertSrvSetup; +#endif + +EXTERN_C const CLSID CLSID_CMSCEPSetup; + +#ifdef __cplusplus + +class DECLSPEC_UUID("aa4f5c02-8e7c-49c4-94fa-67a5cc5eadb4") +CMSCEPSetup; +#endif + +EXTERN_C const CLSID CLSID_CCertificateEnrollmentServerSetup; + +#ifdef __cplusplus + +class DECLSPEC_UUID("9902F3BC-88AF-4cf8-AE62-7140531552B6") +CCertificateEnrollmentServerSetup; +#endif + +EXTERN_C const CLSID CLSID_CCertificateEnrollmentPolicyServerSetup; + +#ifdef __cplusplus + +class DECLSPEC_UUID("AFE2FA32-41B1-459d-A5DE-49ADD8A72182") +CCertificateEnrollmentPolicyServerSetup; +#endif +#endif /* __CertSrvSetupLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_casetup_0000_0007 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_casetup_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/casetup.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/casetup.idl new file mode 100644 index 0000000000000000000000000000000000000000..295d43d5e3818f04c855fda35fb374fd6d79d8f7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/casetup.idl @@ -0,0 +1,455 @@ +//+-------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1996 - 2001 +// +// File: casetup.idl +// +// Contents: Definition of COM Interface for Certification Authority Setup +// +//--------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "wtypes.idl"; +import "oaidl.idl"; + +// +// Interface ICertSrvSetupKeyInformation +// +[ + object, + uuid(6ba73778-36da-4c39-8a85-bcfa7d000793), + helpstring("ICertSrvSetupKeyInformation COM Interface"), + dual, + pointer_default(unique) +] +interface ICertSrvSetupKeyInformation: IDispatch +{ + // Properties + [propget, id(1), helpstring("property ProviderName")] + HRESULT ProviderName( + [out, retval] BSTR* pVal); + + [propput, id(1), helpstring("property ProviderName")] + HRESULT ProviderName( + [in] BSTR const bstrVal); + + [propget, id(2), helpstring("property Length")] + HRESULT Length( + [out, retval] LONG* pVal); + + [propput, id(2), helpstring("property Length")] + HRESULT Length( + [in] LONG lVal); + + [propget, id(3), helpstring("property Existing")] + HRESULT Existing( + [out, retval] VARIANT_BOOL* pVal); + + [propput, id(3), helpstring("property Existing")] + HRESULT Existing( + [in] VARIANT_BOOL bVal); + + [propget, id(4), helpstring("property ContainerName")] + HRESULT ContainerName( + [out, retval] BSTR* pVal); + + [propput, id(4), helpstring("property ContainerName")] + HRESULT ContainerName( + [in] BSTR const bstrVal); + + [propget, id(5), helpstring("property HashAlgorithm")] + HRESULT HashAlgorithm( + [out, retval] BSTR* pVal); + + [propput, id(5), helpstring("property HashAlgorithm")] + HRESULT HashAlgorithm( + [in] BSTR const bstrVal); + + [propget, id(6), helpstring("property ExistingCACertificate")] + HRESULT ExistingCACertificate( + [out, retval] VARIANT* pVal); + + [propput, id(6), helpstring("property ExistingCACertificate")] + HRESULT ExistingCACertificate( + [in] VARIANT varVal); + +}; + +//+-------------------------------------------------------------------------- +// ICertSrvSetupKeyInformationCollection -- local COM interface +//+-------------------------------------------------------------------------- +[ + object, + uuid(e65c8b00-e58f-41f9-a9ec-a28d7427c844), + dual, + nonextensible, + helpstring("ICertSrvSetupKeyInformationCollection Interface"), + pointer_default(unique) +] +interface ICertSrvSetupKeyInformationCollection : IDispatch +{ + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] + HRESULT _NewEnum( + [out, retval] IUnknown** ppVal); + + [propget, id(DISPID_VALUE), helpstring("property Item")] + HRESULT Item( + [in] LONG Index, + [out, retval] VARIANT* pVal); + + [propget, id(1), helpstring("property Count")] + HRESULT Count( + [out, retval] LONG* pVal); + + HRESULT Add( + [in] ICertSrvSetupKeyInformation* pIKeyInformation); +}; + +typedef enum { + ENUM_SETUPPROP_INVALID = -1, + ENUM_SETUPPROP_CATYPE = 0, // VT_UI4, ENUM_CATYPES + ENUM_SETUPPROP_CAKEYINFORMATION = 1, // VT_DISPATCH, ICertSrvSetupKeyInformation + ENUM_SETUPPROP_INTERACTIVE = 2, // VT_BOOL + ENUM_SETUPPROP_CANAME = 3, // VT_BSTR + ENUM_SETUPPROP_CADSSUFFIX = 4, // VT_BSTR + ENUM_SETUPPROP_VALIDITYPERIOD = 5, // VT_UI4, enum ENUM_PERIOD + ENUM_SETUPPROP_VALIDITYPERIODUNIT = 6, // VT_UI4 + ENUM_SETUPPROP_EXPIRATIONDATE = 7, // VT_BSTR + ENUM_SETUPPROP_PRESERVEDATABASE = 8, // VT_BOOL + ENUM_SETUPPROP_DATABASEDIRECTORY = 9, // VT_BSTR + ENUM_SETUPPROP_LOGDIRECTORY = 10, // VT_BSTR + ENUM_SETUPPROP_SHAREDFOLDER = 11, // VT_BSTR + ENUM_SETUPPROP_PARENTCAMACHINE = 12, // VT_BSTR + ENUM_SETUPPROP_PARENTCANAME = 13, // VT_BSTR + ENUM_SETUPPROP_REQUESTFILE = 14, // VT_BSTR + ENUM_SETUPPROP_WEBCAMACHINE = 15, // VT_BSTR + ENUM_SETUPPROP_WEBCANAME = 16 // VT_BSTR +} CASetupProperty; + +// +// Interface ICertSrvSetup +// +[ + object, + uuid(b760a1bb-4784-44c0-8f12-555f0780ff25), + helpstring("ICertSrvSetup COM Interface"), + dual, + pointer_default(unique) +] +interface ICertSrvSetup: IDispatch +{ + // Properties + + [propget, id(1), helpstring("property CAErrorId")] + HRESULT CAErrorId( + [out, retval] LONG* pVal); + + [propget, id(2), helpstring("property CAErrorString")] + HRESULT CAErrorString( + [out, retval] BSTR* pVal); + + // Methods + HRESULT InitializeDefaults( + [in] VARIANT_BOOL bServer, + [in] VARIANT_BOOL bClient); + + HRESULT GetCASetupProperty( + [in] CASetupProperty propertyId, + [out, retval] VARIANT* pPropertyValue); + + HRESULT SetCASetupProperty( + [in] CASetupProperty propertyId, + [in] VARIANT* pPropertyValue); + + HRESULT IsPropertyEditable( + [in] CASetupProperty propertyId, + [out, retval] VARIANT_BOOL* pbEditable); + + HRESULT GetSupportedCATypes( + [out, retval] VARIANT* pCATypes); + + HRESULT GetProviderNameList( + [out, retval] VARIANT* pVal); + + HRESULT GetKeyLengthList( + [in] BSTR const bstrProviderName, + [out, retval] VARIANT* pVal); + + HRESULT GetHashAlgorithmList( + [in] BSTR const bstrProviderName, + [out, retval] VARIANT* pVal); + + HRESULT GetPrivateKeyContainerList( + [in] BSTR const bstrProviderName, + [out, retval] VARIANT* pVal); + + HRESULT GetExistingCACertificates( + [out, retval] ICertSrvSetupKeyInformationCollection** ppVal); + + HRESULT CAImportPFX( + [in] const BSTR bstrFileName, + [in] const BSTR bstrPasswd, + [in] VARIANT_BOOL bOverwriteExistingKey, + [out, retval] ICertSrvSetupKeyInformation** ppVal); + + HRESULT SetCADistinguishedName( + [in] BSTR const bstrCADN, + [in] VARIANT_BOOL bIgnoreUnicode, + [in] VARIANT_BOOL bOverwriteExistingKey, + [in] VARIANT_BOOL bOverwriteExistingCAInDS); + + HRESULT SetDatabaseInformation( + [in] BSTR const bstrDBDirectory, + [in] BSTR const bstrLogDirectory, + [in] BSTR const bstrSharedFolder, + [in] VARIANT_BOOL bForceOverwrite); + + HRESULT SetParentCAInformation( + [in] BSTR const bstrCAConfiguration); + + HRESULT SetWebCAInformation( + [in] BSTR const bstrCAConfiguration); + + + HRESULT Install(); + + HRESULT PreUnInstall( + [in] VARIANT_BOOL bClientOnly); + + HRESULT PostUnInstall(); + +}; + +typedef enum +{ + ENUM_CEPSETUPPROP_USELOCALSYSTEM = 0, // VT_BOOL + ENUM_CEPSETUPPROP_USECHALLENGE = 1, // VT_BOOL + ENUM_CEPSETUPPROP_RANAME_CN = 2, // VT_BSTR + ENUM_CEPSETUPPROP_RANAME_EMAIL = 3, // VT_BSTR + ENUM_CEPSETUPPROP_RANAME_COMPANY = 4, // VT_BSTR + ENUM_CEPSETUPPROP_RANAME_DEPT = 5, // VT_BSTR + ENUM_CEPSETUPPROP_RANAME_CITY = 6, // VT_BSTR + ENUM_CEPSETUPPROP_RANAME_STATE = 7, // VT_BSTR + ENUM_CEPSETUPPROP_RANAME_COUNTRY = 8, // VT_BSTR + ENUM_CEPSETUPPROP_SIGNINGKEYINFORMATION = 9, // VT_IDISPATCH, ICertSrvSetupKeyInformation + ENUM_CEPSETUPPROP_EXCHANGEKEYINFORMATION = 10, // VT_IDISPATCH, ICertSrvSetupKeyInformation + ENUM_CEPSETUPPROP_CAINFORMATION = 11, //VT_BSTR + ENUM_CEPSETUPPROP_MSCEPURL=12, // VT_BSTR + ENUM_CEPSETUPPROP_CHALLENGEURL =13, // VT_BSTR +} MSCEPSetupProperty; + +// +// Interface IMSCEPSetup +// +[ + object, + uuid(4f7761bb-9f3b-4592-9ee0-9a73259c313e), + helpstring("IMSCEPSetup COM Interface"), + dual, + pointer_default(unique) +] +interface IMSCEPSetup: IDispatch +{ + // Properties + [propget, id(1), helpstring("property MSCEPErrorId")] + HRESULT MSCEPErrorId( + [out, retval] LONG* pVal); + + [propget, id(2), helpstring("property MSCEPErrorString")] + HRESULT MSCEPErrorString( + [out, retval] BSTR* pVal); + + HRESULT InitializeDefaults(); + + HRESULT GetMSCEPSetupProperty( + [in] MSCEPSetupProperty propertyId, + [out, retval] VARIANT* pVal); + + HRESULT SetMSCEPSetupProperty( + [in] MSCEPSetupProperty propertyId, + [in] VARIANT* pPropertyValue); + + HRESULT SetAccountInformation( + [in] BSTR const bstrUserName, + [in] BSTR const bstrPassword); + + HRESULT IsMSCEPStoreEmpty( + [out, retval] VARIANT_BOOL* pbEmpty); + + HRESULT GetProviderNameList( + [in] VARIANT_BOOL bExchange, + [out, retval] VARIANT* pVal); + + HRESULT GetKeyLengthList( + [in] VARIANT_BOOL bExchange, + [in] BSTR const bstrProviderName, + [out, retval] VARIANT* pVal); + + HRESULT Install(); + + HRESULT PreUnInstall(); + HRESULT PostUnInstall(); + +}; + + +typedef enum +{ + ENUM_CESSETUPPROP_USE_IISAPPPOOLIDENTITY = 0, // VT_BOOL + ENUM_CESSETUPPROP_CACONFIG = 1, // VT_BSTR + ENUM_CESSETUPPROP_AUTHENTICATION = 2, // VT_UI4, VT_I4, VT_I2 + ENUM_CESSETUPPROP_SSLCERTHASH = 3, // VT_BSTR + ENUM_CESSETUPPROP_URL = 4, // VT_BSTR + ENUM_CESSETUPPROP_RENEWALONLY = 5, // VT_BOOL + ENUM_CESSETUPPROP_ALLOW_KEYBASED_RENEWAL = 6, // VT_BOOL +} CESSetupProperty; + +// +// Interface ICertificateEnrollmentServerSetup +// +[ + object, + uuid(70027FDB-9DD9-4921-8944-B35CB31BD2EC), + helpstring("ICertificateEnrollmentServerSetup COM Interface"), + dual, + pointer_default(unique) +] +interface ICertificateEnrollmentServerSetup: IDispatch +{ + // Properties + [propget, id(1), helpstring("property ErrorString")] + HRESULT ErrorString( + [out, retval] BSTR* pVal); + + // Methods + HRESULT InitializeInstallDefaults(); + + HRESULT GetProperty( + [in] CESSetupProperty propertyId, + [out, retval] VARIANT* pPropertyValue); + + HRESULT SetProperty( + [in] CESSetupProperty propertyId, + [in] VARIANT* pPropertyValue); + + HRESULT SetApplicationPoolCredentials( + [in] BSTR const bstrUsername, + [in] BSTR const bstrPassword); + + HRESULT Install(); + + HRESULT UnInstall( + [in, optional] VARIANT* pCAConfig, + [in, optional] VARIANT* pAuthentication); +}; + +typedef enum +{ + ENUM_CEPSETUPPROP_AUTHENTICATION = 0, // VT_UI4, VT_I4, VT_I2 + ENUM_CEPSETUPPROP_SSLCERTHASH = 1, // VT_BSTR + ENUM_CEPSETUPPROP_URL = 2, // VT_BSTR + ENUM_CEPSETUPPROP_KEYBASED_RENEWAL = 3, // VT_BOOL +} CEPSetupProperty; + +// +// Interface ICertificateEnrollmentPolicyServerSetup +// +[ + object, + uuid(859252CC-238C-4a88-B8FD-A37E7D04E68B), + helpstring("ICertificateEnrollmentPolicyServerSetup COM Interface"), + dual, + pointer_default(unique) +] +interface ICertificateEnrollmentPolicyServerSetup: IDispatch +{ + // Properties + [propget, id(1), helpstring("property ErrorString")] + HRESULT ErrorString( + [out, retval] BSTR* pVal); + + // Methods + HRESULT InitializeInstallDefaults(); + + HRESULT GetProperty( + [in] CEPSetupProperty propertyId, + [out, retval] VARIANT* pPropertyValue); + + HRESULT SetProperty( + [in] CEPSetupProperty propertyId, + [in] VARIANT* pPropertyValue); + + HRESULT Install(); + + HRESULT UnInstall( + [in, optional] VARIANT* pAuthKeyBasedRenewal); +}; + + +//+-------------------------------------------------------------------------- +// casetup Type library +//+-------------------------------------------------------------------------- + +[ + uuid(8abc9d1a-02d4-42e4-b542-17b1ebcb2f51), + version(1.0), + helpstring("Certificate Server Installer Type Library") +] + +library CertSrvSetupLib +{ + importlib("stdole2.tlb"); + + [ + uuid(38373906-5433-4633-b0fb-29b7e78262e1), + helpstring("CCertSrvSetup Class") + ] + coclass CCertSrvSetupKeyInformation + { + [default] interface ICertSrvSetupKeyInformation; + }; + + [ + uuid(961f180f-f55c-413d-a9b3-7d2af4d8e42f), + helpstring("CCertSrvSetup Class") + ] + coclass CCertSrvSetup + { + [default] interface ICertSrvSetup; + }; + + [ + uuid(aa4f5c02-8e7c-49c4-94fa-67a5cc5eadb4), + helpstring("CMSCEPSetup Class") + ] + coclass CMSCEPSetup + { + [default] interface IMSCEPSetup; + }; + [ + uuid(9902F3BC-88AF-4cf8-AE62-7140531552B6), + helpstring("CCertificateEnrollmentServerSetup Class") + ] + + coclass CCertificateEnrollmentServerSetup + { + [default] interface ICertificateEnrollmentServerSetup; + }; + [ + uuid(AFE2FA32-41B1-459d-A5DE-49ADD8A72182), + helpstring("CCertificateEnrollmentPolicyServerSetup Class") + ] + coclass CCertificateEnrollmentPolicyServerSetup + { + [default] interface ICertificateEnrollmentPolicyServerSetup; + }; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ccgplugins.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ccgplugins.h new file mode 100644 index 0000000000000000000000000000000000000000..faa900ff85c84a758851e4168f4ca2bbe6b7a56e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ccgplugins.h @@ -0,0 +1,165 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ccgplugins_h__ +#define __ccgplugins_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICcgDomainAuthCredentials_FWD_DEFINED__ +#define __ICcgDomainAuthCredentials_FWD_DEFINED__ +typedef interface ICcgDomainAuthCredentials ICcgDomainAuthCredentials; + +#endif /* __ICcgDomainAuthCredentials_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +#ifndef __ICcgDomainAuthCredentials_INTERFACE_DEFINED__ +#define __ICcgDomainAuthCredentials_INTERFACE_DEFINED__ + +/* interface ICcgDomainAuthCredentials */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ICcgDomainAuthCredentials; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6ecda518-2010-4437-8bc3-46e752b7b172") + ICcgDomainAuthCredentials : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPasswordCredentials( + /* [in] */ __RPC__in LPCWSTR pluginInput, + /* [out] */ __RPC__deref_out_opt LPWSTR *domainName, + /* [out] */ __RPC__deref_out_opt LPWSTR *username, + /* [out] */ __RPC__deref_out_opt LPWSTR *password) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICcgDomainAuthCredentialsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICcgDomainAuthCredentials * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICcgDomainAuthCredentials * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICcgDomainAuthCredentials * This); + + DECLSPEC_XFGVIRT(ICcgDomainAuthCredentials, GetPasswordCredentials) + HRESULT ( STDMETHODCALLTYPE *GetPasswordCredentials )( + __RPC__in ICcgDomainAuthCredentials * This, + /* [in] */ __RPC__in LPCWSTR pluginInput, + /* [out] */ __RPC__deref_out_opt LPWSTR *domainName, + /* [out] */ __RPC__deref_out_opt LPWSTR *username, + /* [out] */ __RPC__deref_out_opt LPWSTR *password); + + END_INTERFACE + } ICcgDomainAuthCredentialsVtbl; + + interface ICcgDomainAuthCredentials + { + CONST_VTBL struct ICcgDomainAuthCredentialsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICcgDomainAuthCredentials_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICcgDomainAuthCredentials_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICcgDomainAuthCredentials_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICcgDomainAuthCredentials_GetPasswordCredentials(This,pluginInput,domainName,username,password) \ + ( (This)->lpVtbl -> GetPasswordCredentials(This,pluginInput,domainName,username,password) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICcgDomainAuthCredentials_INTERFACE_DEFINED__ */ + + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ccgplugins.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ccgplugins.idl new file mode 100644 index 0000000000000000000000000000000000000000..ff78cd744889ab1481532bc9748543ef2388c37c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ccgplugins.idl @@ -0,0 +1,18 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +import "oaidl.idl"; +import "wtypes.idl"; + +[ + object, + uuid(6ecda518-2010-4437-8bc3-46e752b7b172), + pointer_default(unique) +] +interface ICcgDomainAuthCredentials : IUnknown +{ + HRESULT GetPasswordCredentials([in] LPCWSTR pluginInput, [out] LPWSTR* domainName, [out] LPWSTR* username, [out] LPWSTR* password); +} diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cchannel.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cchannel.h new file mode 100644 index 0000000000000000000000000000000000000000..a7032a870ee1a514dee5c6ebc98b441aee2b67d1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cchannel.h @@ -0,0 +1,367 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + pchannel.h + +Abstract: + + Windows Terminal Server Virtual Channel Client API + +Revision History: + +--*/ + +#ifndef H_CCHANNEL +#define H_CCHANNEL + +/****************************************************************************/ +/* Include Virtual Channel Protocol header */ +/****************************************************************************/ +#include + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if (NTDDI_VERSION >= NTDDI_XP) + +#ifdef _WIN32 +#define VCAPITYPE _stdcall +#define VCEXPORT +#else // _WIN32 +#define VCAPITYPE CALLBACK +#define VCEXPORT __export +#endif // _WIN32 + +/****************************************************************************/ +/* Name: CHANNEL_INIT_EVENT_FN */ +/* */ +/* Purpose: */ +/* */ +/* This function is passed to MSTSC on VirtualChannelInit. It is called by */ +/* MSTSC to tell the application about interesting events. */ +/* */ +/* Returns: */ +/* */ +/* none */ +/* */ +/* Params: */ +/* */ +/* - pInitHandle - a handle uniquely identifying this connection */ +/* - event - the event that has occurred - see CHANNEL_EVENT_XXX below */ +/* - pData - data associated with the event - see CHANNEL_EVENT_XXX below */ +/* - dataLength - length of the data. */ +/* */ +/****************************************************************************/ +typedef VOID VCAPITYPE CHANNEL_INIT_EVENT_FN(LPVOID pInitHandle, + UINT event, + LPVOID pData, + UINT dataLength); + +typedef CHANNEL_INIT_EVENT_FN FAR * PCHANNEL_INIT_EVENT_FN; + +/****************************************************************************/ +/* Events passed to VirtualChannelInitEvent */ +/****************************************************************************/ +/* Client initialized (no data) */ +#define CHANNEL_EVENT_INITIALIZED 0 + +/* Connection established (data = name of Server) */ +#define CHANNEL_EVENT_CONNECTED 1 + +/* Connection established with old Server, so no channel support */ +#define CHANNEL_EVENT_V1_CONNECTED 2 + +/* Connection ended (no data) */ +#define CHANNEL_EVENT_DISCONNECTED 3 + +/* Client terminated (no data) */ +#define CHANNEL_EVENT_TERMINATED 4 + +/****************************************************************************/ +/* Name: CHANNEL_OPEN_EVENT_FN */ +/* */ +/* Purpose: */ +/* */ +/* This function is passed to MSTSC on VirtualChannelOpen. It is called by */ +/* MSTSC when data is available on the channel. */ +/* */ +/* Returns: */ +/* */ +/* none */ +/* */ +/* Params: */ +/* */ +/* - openHandle - a handle uniquely identifying this channel */ +/* - event - event that has occurred - see CHANNEL_EVENT_XXX below */ +/* - pData - data received */ +/* - dataLength - length of the data */ +/* - totalLength - total length of data written by the Server */ +/* - dataFlags - flags, zero, one or more of: */ +/* - 0x01 - beginning of data from a single write operation at the Server */ +/* - 0x02 - end of data from a single write operation at the Server. */ +/* */ +/****************************************************************************/ +typedef VOID VCAPITYPE CHANNEL_OPEN_EVENT_FN(DWORD openHandle, + UINT event, + LPVOID pData, + UINT32 dataLength, + UINT32 totalLength, + UINT32 dataFlags); + +typedef CHANNEL_OPEN_EVENT_FN FAR * PCHANNEL_OPEN_EVENT_FN; + + +/****************************************************************************/ +/* Events passed to VirtualChannelOpenEvent */ +/****************************************************************************/ +/* Data received from Server (data = incoming data) */ +#define CHANNEL_EVENT_DATA_RECEIVED 10 + +/* VirtualChannelWrite completed (pData - pUserData passed on + VirtualChannelWrite) */ +#define CHANNEL_EVENT_WRITE_COMPLETE 11 + +/* VirtualChannelWrite cancelled (pData - pUserData passed on + VirtualChannelWrite) */ +#define CHANNEL_EVENT_WRITE_CANCELLED 12 + + +/****************************************************************************/ +/* Return codes from VirtualChannelXxx functions */ +/****************************************************************************/ +#define CHANNEL_RC_OK 0 +#define CHANNEL_RC_ALREADY_INITIALIZED 1 +#define CHANNEL_RC_NOT_INITIALIZED 2 +#define CHANNEL_RC_ALREADY_CONNECTED 3 +#define CHANNEL_RC_NOT_CONNECTED 4 +#define CHANNEL_RC_TOO_MANY_CHANNELS 5 +#define CHANNEL_RC_BAD_CHANNEL 6 +#define CHANNEL_RC_BAD_CHANNEL_HANDLE 7 +#define CHANNEL_RC_NO_BUFFER 8 +#define CHANNEL_RC_BAD_INIT_HANDLE 9 +#define CHANNEL_RC_NOT_OPEN 10 +#define CHANNEL_RC_BAD_PROC 11 +#define CHANNEL_RC_NO_MEMORY 12 +#define CHANNEL_RC_UNKNOWN_CHANNEL_NAME 13 +#define CHANNEL_RC_ALREADY_OPEN 14 +#define CHANNEL_RC_NOT_IN_VIRTUALCHANNELENTRY 15 +#define CHANNEL_RC_NULL_DATA 16 +#define CHANNEL_RC_ZERO_LENGTH 17 +#define CHANNEL_RC_INVALID_INSTANCE 18 +#define CHANNEL_RC_UNSUPPORTED_VERSION 19 +#define CHANNEL_RC_INITIALIZATION_ERROR 20 + +/****************************************************************************/ +/* Levels of Virtual Channel Support */ +/****************************************************************************/ +#define VIRTUAL_CHANNEL_VERSION_WIN2000 1 + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ +/****************************************************************************/ +/* Name: VirtualChannelInit */ +/* */ +/* Purpose: */ +/* */ +/* This function is called by the application to register the virtual */ +/* channels it wants to have access to. Note that this does not open the */ +/* channels, merely reserves the names for use by this application. This */ +/* function must be called before the Client connects to the Server, hence */ +/* it is recommended that it is called from the DLL's initialization */ +/* procedure. */ +/* */ +/* */ +/* On_return, the channels requested have been registered. However, other */ +/* MSTSC initialization may not yet have completed. The application */ +/* receives a VirtualChannelInitEvent callback with the "Client */ +/* initialized" event when all MSTSC initialization is complete. */ +/* */ +/* Returns: */ +/* */ +/* CHANNEL_RC_OK */ +/* CHANNEL_RC_ALREADY_INITIALIZED */ +/* CHANNEL_RC_ALREADY_CONNECTED */ +/* CHANNEL_RC_TOO_MANY_CHANNELS */ +/* CHANNEL_RC_NOT_IN_VIRTUALCHANNELENTRY */ +/* */ +/* Parameters */ +/* */ +/* - ppInitHandle (returned) - handle to pass to subsequent */ +/* VirtualChannelXxx calls */ +/* - pChannel - list of names registered by this application */ +/* - channelCount - number of channels registered. */ +/* - versionRequested - level of virtual channel support requested (one of */ +/* the VIRTUAL_CHANNEL_LEVEL_XXX parameters) */ +/* - pChannelInitEventProc - address of VirtualChannelInitEvent procedure */ +/* */ +/****************************************************************************/ +typedef UINT VCAPITYPE VIRTUALCHANNELINIT( + LPVOID FAR * ppInitHandle, + PCHANNEL_DEF pChannel, + INT channelCount, + ULONG versionRequested, + PCHANNEL_INIT_EVENT_FN pChannelInitEventProc); + +typedef VIRTUALCHANNELINIT FAR * PVIRTUALCHANNELINIT; + + +/****************************************************************************/ +/* Name: VirtualChannelOpen */ +/* */ +/* Purpose: */ +/* */ +/* This function is called by the application to open a channel. It cannot */ +/* be called until a connection is established with a Server. */ +/* */ +/* Returns: */ +/* */ +/* CHANNEL_RC_OK */ +/* CHANNEL_RC_NOT_INITIALIZED */ +/* CHANNEL_RC_NOT_CONNECTED */ +/* CHANNEL_RC_BAD_CHANNEL_NAME */ +/* CHANNEL_RC_BAD_INIT_HANDLE */ +/* */ +/* Params: */ +/* */ +/* - pInitHandle - handle from VirtualChannelInit */ +/* */ +/* - pOpenHandle (returned) - handle to pass to subsequent */ +/* VirtualChannelXxx calls */ +/* - pChannelName - name of channel to open */ +/* - pChannelOpenEventProc - address of VirtualChannelOpenEvent procedure */ +/* */ +/****************************************************************************/ +typedef UINT VCAPITYPE VIRTUALCHANNELOPEN( + LPVOID pInitHandle, + LPDWORD pOpenHandle, + PCHAR pChannelName, + PCHANNEL_OPEN_EVENT_FN pChannelOpenEventProc); + +typedef VIRTUALCHANNELOPEN FAR * PVIRTUALCHANNELOPEN; + + +/****************************************************************************/ +/* Name: VirtualChannelClose */ +/* */ +/* Purpose: */ +/* */ +/* This function is called to close a previously opened channel. */ +/* */ +/* Returns: */ +/* */ +/* CHANNEL_RC_OK */ +/* CHANNEL_RC_BAD_CHANNEL_HANDLE */ +/* */ +/* Params: */ +/* */ +/* - openHandle - handle returned on VirtualChannelOpen */ +/* */ +/****************************************************************************/ +typedef UINT VCAPITYPE VIRTUALCHANNELCLOSE(DWORD openHandle); + +typedef VIRTUALCHANNELCLOSE FAR * PVIRTUALCHANNELCLOSE; + + +/****************************************************************************/ +/* Name: VirtualChannelWrite */ +/* */ +/* Purpose: */ +/* */ +/* This function is used to send data to the partner app on the Server. */ +/* */ +/* VirtualChannelWrite copies the data to one or more network buffers as */ +/* necessary. VirtualChannelWrite ensures that data is sent to the Server */ +/* on the right context. It sends all data on MS TC's Sender thread. */ +/* */ +/* VirtualChannelWrite is asynchronous - the VirtualChannelOpenEvent */ +/* procedure is called when the write completes. Until that callback is */ +/* made, the caller must not free or reuse the buffer passed on */ +/* VirtualChannelWrite. The caller passes a piece of data (pUserData) to */ +/* VirtualChannelWrite, which is returned on the VirtualChannelOpenEvent */ +/* callback. The caller can use this data to identify the write which has */ +/* completed. */ +/* */ +/* */ +/* Returns: */ +/* */ +/* CHANNEL_RC_OK */ +/* CHANNEL_RC_NOT_INITIALIZED */ +/* CHANNEL_RC_NOT_CONNECTED */ +/* CHANNEL_RC_BAD_CHANNEL_HANDLE */ +/* */ +/* Params: */ +/* - openHandle - handle from VirtualChannelOpen */ +/* - pData - data to write */ +/* - datalength - length of data to write */ +/* - pUserData - user supplied data, returned on VirtualChannelOpenEvent */ +/* when the write completes */ +/* */ +/****************************************************************************/ +typedef UINT VCAPITYPE VIRTUALCHANNELWRITE(DWORD openHandle, + LPVOID pData, + ULONG dataLength, + LPVOID pUserData); + +typedef VIRTUALCHANNELWRITE FAR * PVIRTUALCHANNELWRITE; + + +/****************************************************************************/ +/* Structure: CHANNEL_ENTRY_POINTS */ +/* */ +/* Description: Virtual Channel entry points passed to VirtualChannelEntry */ +/****************************************************************************/ +typedef struct tagCHANNEL_ENTRY_POINTS +{ + DWORD cbSize; + DWORD protocolVersion; + PVIRTUALCHANNELINIT pVirtualChannelInit; + PVIRTUALCHANNELOPEN pVirtualChannelOpen; + PVIRTUALCHANNELCLOSE pVirtualChannelClose; + PVIRTUALCHANNELWRITE pVirtualChannelWrite; +} CHANNEL_ENTRY_POINTS, FAR * PCHANNEL_ENTRY_POINTS; + + +/****************************************************************************/ +/* Name: VirtualChannelEntry */ +/* */ +/* Purpose: */ +/* */ +/* This function is provided by addin DLLS. It is called by MSTSC at */ +/* initialization to tell the addin DLL the addresses of the */ +/* VirtualChannelXxx functions. */ +/* */ +/* Returns: */ +/* */ +/* TRUE - everything OK */ +/* FALSE - error, unload the DLL */ +/* */ +/* Parameters: */ +/* */ +/* - pVirtualChannelInit - pointers to VirtualChannelXxx functions */ +/* - pVirtualChannelOpen */ +/* - pVirtualChannelClose */ +/* - pVirtualChannelWrite */ +/* */ +/****************************************************************************/ +typedef BOOL VCAPITYPE VIRTUALCHANNELENTRY( + PCHANNEL_ENTRY_POINTS pEntryPoints); + +typedef VIRTUALCHANNELENTRY FAR * PVIRTUALCHANNELENTRY; + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* (NTDDI_VERSION >= NTDDI_XP) */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* H_CCHANNEL */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/celib.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/celib.h new file mode 100644 index 0000000000000000000000000000000000000000..289ccfa4ed656a3c8ba01a5d1c598f6277ff4eb5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/celib.h @@ -0,0 +1,520 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// +// Copyright (C) Microsoft Corporation, 1995 - 1999 +// +// File: celib.h +// +// Contents: helper functions +// +//-------------------------------------------------------------------------- + +#ifndef __CELIB_H__ +#define __CELIB_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include + + +#define MAX_DECODE_BUFFER_SIZE (1024 * 1000 * 100) // allow 100MB max +#define CENCODEMAX (64 * 1024) + +// Bitmap manipulation routines. Fetch or set a bit, given a base and index. +#define GETBIT(pb, i) ((pb)[(i) / 8] & (1 << ((i) % 8))) +#define SETBIT(pb, i) ((pb)[(i) / 8] |= (1 << ((i) % 8))) +#define CLEARBIT(pb, i) ((pb)[(i) / 8] &= ~(1 << ((i) % 8))) + +#define BITSTOBYTES(b) ((int)(((b) + 7) / 8)) + +#define ceCASIGN_KEY_USAGE \ + (CERT_KEY_CERT_SIGN_KEY_USAGE | CERT_DIGITAL_SIGNATURE_KEY_USAGE | \ + CERT_CRL_SIGN_KEY_USAGE) + +// Size of a fixed array: Use ARRAYSIZE(a) + +// wcslen of a static string: +#define WSZARRAYSIZE(a) ((sizeof(a)/sizeof((a)[0])) - 1) + +#define wszCERTENROLLSHAREPATH L"CertSrv\\CertEnroll" + +#define cwcHRESULTSTRING 40 +#define cwcDWORDSPRINTF (1 + 10 + 1) // DWORD "%d" w/sign & '\0' + +#define SAFE_SUBTRACT_POINTERS(p1, p2) \ + (assert(sizeof((*p1)) == sizeof(*(p2))), (DWORD)((p1) - (p2))) + +#define printf Use_wprintf_Instead_Of_printf + +#define _LeaveError(hr, label, pszMessage) \ + _LeaveErrorStr2((hr), label, (pszMessage), NULL, S_OK) + +#define _LeaveError2(hr, label, pszMessage, hr2) \ + _LeaveErrorStr2((hr), label, (pszMessage), NULL, (hr2)) + +#define _LeaveErrorStr(hr, label, pszMessage, pwszData) \ + _LeaveErrorStr2((hr), label, (pszMessage), (pwszData), S_OK) + +#define _LeaveErrorStr2(hr, label, pszMessage, pwszData, hr2) \ + { \ + ceERRORPRINTLINESTR((pszMessage), (pwszData), (hr)); \ + goto label; \ + } + +#define _LeaveIfError(hr, label, pszMessage) \ + _LeaveIfErrorStr2((hr), label, (pszMessage), NULL, S_OK) + +#define _LeaveIfError2(hr, label, pszMessage, hr2) \ + _LeaveIfErrorStr2((hr), label, (pszMessage), NULL, (hr2)) + +#define _LeaveIfErrorStr(hr, label, pszMessage, pwszData) \ + _LeaveIfErrorStr2((hr), label, (pszMessage), (pwszData), S_OK) + +#define _LeaveIfErrorStr2(hr, label, pszMessage, pwszData, hr2) \ + { \ + if (S_OK != (hr)) \ + { \ + ceERRORPRINTLINESTR((pszMessage), (pwszData), (hr)); \ + goto label; \ + } \ + } + +#define _PrintErrorStr(hr, pszMessage, pwsz) \ + ceERRORPRINTLINESTR((pszMessage), (pwsz), (hr)) + +#define _PrintErrorStr2(hr, pszMessage, pwsz, hr2) \ + _PrintErrorStr((hr), (pszMessage), (pwsz)) + +#define _PrintError2(hr, pszMessage, hr2) \ + _PrintErrorStr((hr), (pszMessage), NULL) + +#define _PrintError(hr, pszMessage) \ + _PrintErrorStr((hr), (pszMessage), NULL) + + +#define _PrintIfErrorStr(hr, pszMessage, pwsz) \ + { \ + if (S_OK != (hr)) \ + { \ + ceERRORPRINTLINESTR((pszMessage), (pwsz), (hr)); \ + } \ + } + +#define _PrintIfErrorStr2(hr, pszMessage, pwsz, hr2) \ + _PrintIfErrorStr((hr), (pszMessage), (pwsz)) + +#define _PrintIfError2(hr, pszMessage, hr2) \ + _PrintIfErrorStr((hr), (pszMessage), NULL) + +#define _PrintIfError(hr, pszMessage) \ + _PrintIfErrorStr((hr), (pszMessage), NULL) + + +#define _JumpErrorStr(hr, label, pszMessage, pwsz) \ + _JumpError((hr), label, (pszMessage)) + +#define _JumpError(hr, label, pszMessage) \ + { \ + ceERRORPRINTLINESTR((pszMessage), NULL, (hr)); \ + goto label; \ + } + + +#define _JumpIfErrorStr(hr, label, pszMessage, pwsz) \ + { \ + if (S_OK != (hr)) \ + { \ + ceERRORPRINTLINESTR((pszMessage), (pwsz), (hr)); \ + goto label; \ + } \ + } + +#define _JumpIfErrorStr2(hr, label, pszMessage, pwsz, hr2) \ + _JumpIfErrorStr((hr), label, (pszMessage), NULL) + +#define _JumpIfError2(hr, label, pszMessage, hr2) \ + _JumpIfErrorStr((hr), label, (pszMessage), NULL) + +#define _JumpIfError(hr, label, pszMessage) \ + _JumpIfErrorStr((hr), label, (pszMessage), NULL) + + +#if DBG +#define ceERRORPRINTLINE(pszMessage, hr) \ + ceErrorPrintLine(__FILE__, __LINE__, (pszMessage), NULL, (hr)) + +#define ceERRORPRINTLINESTR(pszMessage, pwszData, hr) \ + ceErrorPrintLine(__FILE__, __LINE__, (pszMessage), (pwszData), (hr)) + +#define DBGPRINT(a) ceDbgPrintf a +#else +// Windows OS Bug:1412284 +#define ceERRORPRINTLINE(pszMessage, hr) +#define ceERRORPRINTLINESTR(pszMessage, pwszData, hr) +#define DBGPRINT(a) + +#endif + +// typedef for buffers that may be read up to and including the first sequence +// of two NULL characters: +typedef _NullNull_terminated_ WCHAR * CSPZZWSTR; +typedef _NullNull_terminated_ WCHAR const * CSPCZZWSTR; + +// typedef for buffers that may be read up to and including the first NULL +// pointer: +typedef _Null_terminated_ PCWSTR const * CSPCZPCWSTR; + + +int WINAPIV ceDbgPrintf(BOOL fDebug, char const *pszfmt, ...); + + +VOID +ceErrorPrintLine( + IN char const *pszFile, + IN DWORD line, + IN char const *pszMessage, + IN WCHAR const *pwszData, + IN HRESULT hr); + +HRESULT +ceHLastError(VOID); + +HRESULT +ceHError( + IN HRESULT hr); + +#define ceHEXCEPTIONCODE(_ex) ceHError((_ex).GetSeCode()) + +#define chLBRACE '{' +#define chRBRACE '}' +#define szLBRACE "{" +#define szRBRACE "}" +#define wcLBRACE L'{' +#define wcRBRACE L'}' +#define wszLBRACE L"{" +#define wszRBRACE L"}" + +#define chLPAREN '(' +#define chRPAREN ')' +#define szLPAREN "(" +#define szRPAREN ")" +#define wcLPAREN L'(' +#define wcRPAREN L')' +#define wszLPAREN L"(" +#define wszRPAREN L")" + +// Constants chosen to avoid DWORD overflow: + +#define CVT_WEEKS (7 * CVT_DAYS) +#define CVT_DAYS (24 * CVT_HOURS) +#define CVT_HOURS (60 * CVT_MINUTES) +#define CVT_MINUTES (60 * CVT_SECONDS) +#define CVT_SECONDS (1) +#define CVT_BASE (1000 * 1000 * 10) + + +enum ENUM_PERIOD +{ + ENUM_PERIOD_INVALID = -1, + ENUM_PERIOD_SECONDS = 0, + ENUM_PERIOD_MINUTES, + ENUM_PERIOD_HOURS, + ENUM_PERIOD_DAYS, + ENUM_PERIOD_WEEKS, + ENUM_PERIOD_MONTHS, + ENUM_PERIOD_YEARS +}; + + +#define IsNullOrEmptyBStr(str) \ + __pragma(prefast(suppress: __WARNING_325, "Intentional NULL check, avoid SysStringLen")) \ + (NULL == str || 0 == SysStringByteLen(str)) + +#define IsNullBStr(str) \ + __pragma(prefast(suppress: __WARNING_325, "Intentional NULL check")) \ + (NULL == str) + + +HMODULE +ceLoadSystem32Library( + IN WCHAR const *pwszLibFileName); + +typedef struct _LLFILETIME +{ + union { + LONGLONG ll; + FILETIME ft; + }; +} LLFILETIME; + + +__inline VOID +ceAddToFileTime( + IN OUT FILETIME *pft, + IN LONGLONG ll) +{ + LLFILETIME llft; + + llft.ft = *pft; + llft.ll += ll; + *pft = llft.ft; +} + + +__inline LONGLONG +ceSubtractFileTimes( + IN FILETIME const *pft1, + IN FILETIME const *pft2) +{ + LLFILETIME llft1; + LLFILETIME llft2; + + llft1.ft = *pft1; + llft2.ft = *pft2; + return(llft1.ll - llft2.ll); +} + + +HRESULT +ceMakeExprDate( + IN OUT DATE *pDate, + IN LONG lDelta, + IN enum ENUM_PERIOD enumPeriod); + +HRESULT +ceTranslatePeriodUnits( + IN WCHAR const *pwszPeriod, + IN LONG lCount, + OUT enum ENUM_PERIOD *penumPeriod, + OUT LONG *plCount); + +WCHAR const * +ceGetOIDNameA( + IN char const *pszObjId); + +WCHAR const * +ceGetOIDName( + IN WCHAR const *pwszObjId); + +BOOL +ceDecodeObject( + IN DWORD dwEncodingType, + IN LPCSTR lpszStructType, + IN BYTE const *pbEncoded, + IN DWORD cbEncoded, + IN BOOL fCoTaskMemAlloc, + OUT VOID **ppvStructInfo, + OUT DWORD *pcbStructInfo); + +BOOL +ceDecodeObjectEx( + IN DWORD dwEncodingType, + IN LPCSTR lpszStructType, + IN BYTE const *pbEncoded, + IN DWORD cbEncoded, + IN DWORD dwFlags, + OUT VOID **ppvStructInfo, + OUT DWORD *pcbStructInfo); + +BOOL +ceEncodeObject( + DWORD dwEncodingType, + IN LPCSTR lpszStructType, + IN VOID const *pvStructInfo, + IN DWORD dwFlags, + IN BOOL fCoTaskMemAlloc, + OUT BYTE **ppbEncoded, + OUT DWORD *pcbEncoded); + +VOID +ceGetBStrBuffer( + _In_opt_ BSTR str, + _Out_ DWORD *pcbOut, + _Outptr_result_buffer_(*pcbOut) PBYTE *ppbOut); + +BSTR +ceAllocBStrBlob( + _In_reads_bytes_opt_(cbIn) BYTE const *pbIn, + _In_ DWORD cbIn); + +HRESULT +ceDecodeCertString( + _In_ BSTR const bstrIn, + _In_ DWORD Flags, + _Outptr_result_bytebuffer_(*pcbOut) BYTE **ppbOut, + _Out_ DWORD *pcbOut); + +HRESULT +ceEncodeCertString( + _In_reads_bytes_(cbIn) BYTE const *pbIn, + _In_ DWORD cbIn, + _In_ DWORD Flags, + _Outptr_ BSTR *pbstrOut); + +WCHAR * +ceDuplicateString( + IN WCHAR const *pwsz); + +HRESULT +ceDupString( + IN WCHAR const *pwszIn, + _Outptr_ PWSTR *ppwszOut); + +BOOL +ceConvertWszToSz( + _Outptr_ PSTR *ppsz, + IN WCHAR const *pwc, + IN LONG cb); + +BOOL +ceConvertWszToBstr( + OUT BSTR *pbstr, + IN WCHAR const *pwc, + IN LONG cb); + +BOOL +ceConvertSzToWsz( + _Outptr_ PWSTR *ppwsz, + IN char const *pch, + IN LONG cch); + +BOOL +ceConvertSzToBstr( + OUT BSTR *pbstr, + IN CHAR const *pch, + IN LONG cch); + +HRESULT +ceDateToFileTime( + IN DATE const *pDate, + OUT FILETIME *pft); + +HRESULT +ceFileTimeToDate( + IN FILETIME const *pft, + OUT DATE *pDate); + +HRESULT +ceVerifyObjIdA( + IN char const *pszObjId); + +HRESULT +ceVerifyObjId( + IN WCHAR const *pwszObjId); + +HRESULT +ceVerifyAndConvertWszToSzObjIds( + _In_opt_ CSPZZWSTR ppwszObjIds, + _Out_ DWORD* pdwcObjIds, + _Outptr_ PZPSTR *pppszObjIds); + +HRESULT +ceVerifyAltNameString( + IN LONG NameChoice, + IN BSTR strName); + +HRESULT +ceDispatchSetErrorInfo( + IN HRESULT hrError, + IN WCHAR const *pwszDescription, + OPTIONAL IN WCHAR const *pwszProgId, + OPTIONAL IN IID const *piid); + +VOID +ceDispatchClearErrorInfo(VOID); + +VOID +ceInitErrorMessageText( + IN HMODULE hMod, + IN DWORD idsUnexpected, + IN DWORD idsUnknownErrorCode); // L"Error %ws %ws" + +WCHAR const * +ceGetErrorMessageText( + IN HRESULT hr, + IN BOOL fHResultString); + +WCHAR const * +ceGetErrorMessageTextEx( + IN HRESULT hr, + IN BOOL fHResultString, + IN OPTIONAL WCHAR const * const *papwszInsertionText); + +WCHAR const * +ceHResultToString( + _Inout_ PWSTR awchr, + IN HRESULT hr); + + +#define cwcFILENAMESUFFIXMAX 20 +#define cwcSUFFIXMAX (1 + 5 + 1) // five decimal digits plus parentheses + +#define wszFCSAPARM_SERVERDNSNAME L"%1" +#define wszFCSAPARM_SERVERSHORTNAME L"%2" +#define wszFCSAPARM_SANITIZEDCANAME L"%3" +#define wszFCSAPARM_CERTFILENAMESUFFIX L"%4" +#define wszFCSAPARM_DOMAINDN L"%5" +#define wszFCSAPARM_CONFIGDN L"%6" +#define wszFCSAPARM_SANITIZEDCANAMEHASH L"%7" +#define wszFCSAPARM_CRLFILENAMESUFFIX L"%8" +#define wszFCSAPARM_CRLDELTAFILENAMESUFFIX L"%9" +#define wszFCSAPARM_DSCRLATTRIBUTE L"%10" +#define wszFCSAPARM_DSCACERTATTRIBUTE L"%11" +#define wszFCSAPARM_DSUSERCERTATTRIBUTE L"%12" +#define wszFCSAPARM_DSKRACERTATTRIBUTE L"%13" +#define wszFCSAPARM_DSCROSSCERTPAIRATTRIBUTE L"%14" + + +HRESULT +ceFormatCertsrvStringArray( + IN BOOL fURL, + IN LPCWSTR pwszServerName_p1_2, + IN LPCWSTR pwszSanitizedName_p3_7, + IN DWORD iCert_p4, + IN DWORD iCertTarget_p4, + IN LPCWSTR pwszDomainDN_p5, + IN LPCWSTR pwszConfigDN_p6, + IN DWORD iCRL_p8, + IN BOOL fDeltaCRL_p9, + IN BOOL fDSAttrib_p10_11, + IN DWORD cStrings, + IN LPCWSTR *apwszStringsIn, + _Outptr_ LPWSTR *apwszStringsOut); + +HRESULT +ceBuildPathAndExt( + IN WCHAR const *pwszDir, + IN WCHAR const *pwszFile, + OPTIONAL IN WCHAR const *pwszExt, + _Outptr_ PWSTR *ppwszPath); + +HRESULT +ceInternetCanonicalizeUrl( + IN WCHAR const *pwszIn, + _Outptr_ PWSTR *ppwszOut); + +int +ceWtoI( + IN WCHAR const *pwszDigitString, + OUT BOOL *pfValid); + +int +celstrcmpiL( + IN WCHAR const *pwsz1, + IN WCHAR const *pwsz2); + +HRESULT +ceIsConfigLocal( + _In_ PCWSTR pwszConfig, + _Outptr_opt_ PCWSTR *ppwszMachine, + _Out_ BOOL *pfLocal); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __CELIB_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cellularapi_oem.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cellularapi_oem.h new file mode 100644 index 0000000000000000000000000000000000000000..f8f205697b28362a6e4279ffc87a6c228eb77690 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cellularapi_oem.h @@ -0,0 +1,5108 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __cellularapi_oem_h__ +#define __cellularapi_oem_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IOemCellular_FWD_DEFINED__ +#define __IOemCellular_FWD_DEFINED__ +typedef interface IOemCellular IOemCellular; + +#endif /* __IOemCellular_FWD_DEFINED__ */ + + +#ifndef __IOemCellularDataStore_FWD_DEFINED__ +#define __IOemCellularDataStore_FWD_DEFINED__ +typedef interface IOemCellularDataStore IOemCellularDataStore; + +#endif /* __IOemCellularDataStore_FWD_DEFINED__ */ + + +#ifndef __IOemCellularModem_FWD_DEFINED__ +#define __IOemCellularModem_FWD_DEFINED__ +typedef interface IOemCellularModem IOemCellularModem; + +#endif /* __IOemCellularModem_FWD_DEFINED__ */ + + +#ifndef __IOemCellularModemEx_FWD_DEFINED__ +#define __IOemCellularModemEx_FWD_DEFINED__ +typedef interface IOemCellularModemEx IOemCellularModemEx; + +#endif /* __IOemCellularModemEx_FWD_DEFINED__ */ + + +#ifndef __IOemCan_FWD_DEFINED__ +#define __IOemCan_FWD_DEFINED__ +typedef interface IOemCan IOemCan; + +#endif /* __IOemCan_FWD_DEFINED__ */ + + +#ifndef __IOemCanExtForIMS_FWD_DEFINED__ +#define __IOemCanExtForIMS_FWD_DEFINED__ +typedef interface IOemCanExtForIMS IOemCanExtForIMS; + +#endif /* __IOemCanExtForIMS_FWD_DEFINED__ */ + + +#ifndef __IOemSlot_FWD_DEFINED__ +#define __IOemSlot_FWD_DEFINED__ +typedef interface IOemSlot IOemSlot; + +#endif /* __IOemSlot_FWD_DEFINED__ */ + + +#ifndef __IOemUicc_FWD_DEFINED__ +#define __IOemUicc_FWD_DEFINED__ +typedef interface IOemUicc IOemUicc; + +#endif /* __IOemUicc_FWD_DEFINED__ */ + + +#ifndef __IOemUiccApp_FWD_DEFINED__ +#define __IOemUiccApp_FWD_DEFINED__ +typedef interface IOemUiccApp IOemUiccApp; + +#endif /* __IOemUiccApp_FWD_DEFINED__ */ + + +#ifndef __IOemUiccAppEx_FWD_DEFINED__ +#define __IOemUiccAppEx_FWD_DEFINED__ +typedef interface IOemUiccAppEx IOemUiccAppEx; + +#endif /* __IOemUiccAppEx_FWD_DEFINED__ */ + + +#ifndef __IOemUiccAppEx2_FWD_DEFINED__ +#define __IOemUiccAppEx2_FWD_DEFINED__ +typedef interface IOemUiccAppEx2 IOemUiccAppEx2; + +#endif /* __IOemUiccAppEx2_FWD_DEFINED__ */ + + +#ifndef __IOem3GPPSupServices_FWD_DEFINED__ +#define __IOem3GPPSupServices_FWD_DEFINED__ +typedef interface IOem3GPPSupServices IOem3GPPSupServices; + +#endif /* __IOem3GPPSupServices_FWD_DEFINED__ */ + + +#ifndef __IOemCellularModemExistenceChange_FWD_DEFINED__ +#define __IOemCellularModemExistenceChange_FWD_DEFINED__ +typedef interface IOemCellularModemExistenceChange IOemCellularModemExistenceChange; + +#endif /* __IOemCellularModemExistenceChange_FWD_DEFINED__ */ + + +#ifndef __IOemCellularCanAvailabilityChange_FWD_DEFINED__ +#define __IOemCellularCanAvailabilityChange_FWD_DEFINED__ +typedef interface IOemCellularCanAvailabilityChange IOemCellularCanAvailabilityChange; + +#endif /* __IOemCellularCanAvailabilityChange_FWD_DEFINED__ */ + + +#ifndef __IOemSlotChange_FWD_DEFINED__ +#define __IOemSlotChange_FWD_DEFINED__ +typedef interface IOemSlotChange IOemSlotChange; + +#endif /* __IOemSlotChange_FWD_DEFINED__ */ + + +#ifndef __IOemCanRegistrationStateChange_FWD_DEFINED__ +#define __IOemCanRegistrationStateChange_FWD_DEFINED__ +typedef interface IOemCanRegistrationStateChange IOemCanRegistrationStateChange; + +#endif /* __IOemCanRegistrationStateChange_FWD_DEFINED__ */ + + +#ifndef __IOemSlotStateChange_FWD_DEFINED__ +#define __IOemSlotStateChange_FWD_DEFINED__ +typedef interface IOemSlotStateChange IOemSlotStateChange; + +#endif /* __IOemSlotStateChange_FWD_DEFINED__ */ + + +#ifndef __IOemUiccChange_FWD_DEFINED__ +#define __IOemUiccChange_FWD_DEFINED__ +typedef interface IOemUiccChange IOemUiccChange; + +#endif /* __IOemUiccChange_FWD_DEFINED__ */ + + +#ifndef __IOemRegistrationStatus_FWD_DEFINED__ +#define __IOemRegistrationStatus_FWD_DEFINED__ +typedef interface IOemRegistrationStatus IOemRegistrationStatus; + +#endif /* __IOemRegistrationStatus_FWD_DEFINED__ */ + + +#ifndef __IPowerStateChange_FWD_DEFINED__ +#define __IPowerStateChange_FWD_DEFINED__ +typedef interface IPowerStateChange IPowerStateChange; + +#endif /* __IPowerStateChange_FWD_DEFINED__ */ + + +#ifndef __IModemOpaqueCommandCompletion_FWD_DEFINED__ +#define __IModemOpaqueCommandCompletion_FWD_DEFINED__ +typedef interface IModemOpaqueCommandCompletion IModemOpaqueCommandCompletion; + +#endif /* __IModemOpaqueCommandCompletion_FWD_DEFINED__ */ + + +#ifndef __IOpaqueModemNotifications_FWD_DEFINED__ +#define __IOpaqueModemNotifications_FWD_DEFINED__ +typedef interface IOpaqueModemNotifications IOpaqueModemNotifications; + +#endif /* __IOpaqueModemNotifications_FWD_DEFINED__ */ + + +#ifndef __ISetRFStateCompletion_FWD_DEFINED__ +#define __ISetRFStateCompletion_FWD_DEFINED__ +typedef interface ISetRFStateCompletion ISetRFStateCompletion; + +#endif /* __ISetRFStateCompletion_FWD_DEFINED__ */ + + +#ifndef __IGetRFStateCompletion_FWD_DEFINED__ +#define __IGetRFStateCompletion_FWD_DEFINED__ +typedef interface IGetRFStateCompletion IGetRFStateCompletion; + +#endif /* __IGetRFStateCompletion_FWD_DEFINED__ */ + + +#ifndef __IGetRFStateExCompletion_FWD_DEFINED__ +#define __IGetRFStateExCompletion_FWD_DEFINED__ +typedef interface IGetRFStateExCompletion IGetRFStateExCompletion; + +#endif /* __IGetRFStateExCompletion_FWD_DEFINED__ */ + + +#ifndef __ICanInfoCompletion_FWD_DEFINED__ +#define __ICanInfoCompletion_FWD_DEFINED__ +typedef interface ICanInfoCompletion ICanInfoCompletion; + +#endif /* __ICanInfoCompletion_FWD_DEFINED__ */ + + +#ifndef __IPositionInfoCompletion_FWD_DEFINED__ +#define __IPositionInfoCompletion_FWD_DEFINED__ +typedef interface IPositionInfoCompletion IPositionInfoCompletion; + +#endif /* __IPositionInfoCompletion_FWD_DEFINED__ */ + + +#ifndef __IPinLockStateCompletion_FWD_DEFINED__ +#define __IPinLockStateCompletion_FWD_DEFINED__ +typedef interface IPinLockStateCompletion IPinLockStateCompletion; + +#endif /* __IPinLockStateCompletion_FWD_DEFINED__ */ + + +#ifndef __IGetRecordStatusCompletion_FWD_DEFINED__ +#define __IGetRecordStatusCompletion_FWD_DEFINED__ +typedef interface IGetRecordStatusCompletion IGetRecordStatusCompletion; + +#endif /* __IGetRecordStatusCompletion_FWD_DEFINED__ */ + + +#ifndef __IReadRecordCompletion_FWD_DEFINED__ +#define __IReadRecordCompletion_FWD_DEFINED__ +typedef interface IReadRecordCompletion IReadRecordCompletion; + +#endif /* __IReadRecordCompletion_FWD_DEFINED__ */ + + +#ifndef __IWriteRecordCompletion_FWD_DEFINED__ +#define __IWriteRecordCompletion_FWD_DEFINED__ +typedef interface IWriteRecordCompletion IWriteRecordCompletion; + +#endif /* __IWriteRecordCompletion_FWD_DEFINED__ */ + + +#ifndef __IIMSICompletion_FWD_DEFINED__ +#define __IIMSICompletion_FWD_DEFINED__ +typedef interface IIMSICompletion IIMSICompletion; + +#endif /* __IIMSICompletion_FWD_DEFINED__ */ + + +#ifndef __IGetSIDNIDCompletion_FWD_DEFINED__ +#define __IGetSIDNIDCompletion_FWD_DEFINED__ +typedef interface IGetSIDNIDCompletion IGetSIDNIDCompletion; + +#endif /* __IGetSIDNIDCompletion_FWD_DEFINED__ */ + + +#ifndef __IGetNAICompletion_FWD_DEFINED__ +#define __IGetNAICompletion_FWD_DEFINED__ +typedef interface IGetNAICompletion IGetNAICompletion; + +#endif /* __IGetNAICompletion_FWD_DEFINED__ */ + + +#ifndef __ISubscriberNumbersCompletion_FWD_DEFINED__ +#define __ISubscriberNumbersCompletion_FWD_DEFINED__ +typedef interface ISubscriberNumbersCompletion ISubscriberNumbersCompletion; + +#endif /* __ISubscriberNumbersCompletion_FWD_DEFINED__ */ + + +#ifndef __IGetPLMNwAcT_FWD_DEFINED__ +#define __IGetPLMNwAcT_FWD_DEFINED__ +typedef interface IGetPLMNwAcT IGetPLMNwAcT; + +#endif /* __IGetPLMNwAcT_FWD_DEFINED__ */ + + +#ifndef __ISetPLMNwAcT_FWD_DEFINED__ +#define __ISetPLMNwAcT_FWD_DEFINED__ +typedef interface ISetPLMNwAcT ISetPLMNwAcT; + +#endif /* __ISetPLMNwAcT_FWD_DEFINED__ */ + + +#ifndef __IGetCallForwardingCompletion_FWD_DEFINED__ +#define __IGetCallForwardingCompletion_FWD_DEFINED__ +typedef interface IGetCallForwardingCompletion IGetCallForwardingCompletion; + +#endif /* __IGetCallForwardingCompletion_FWD_DEFINED__ */ + + +#ifndef __ISimpleModemCompletion_FWD_DEFINED__ +#define __ISimpleModemCompletion_FWD_DEFINED__ +typedef interface ISimpleModemCompletion ISimpleModemCompletion; + +#endif /* __ISimpleModemCompletion_FWD_DEFINED__ */ + + +#ifndef __ICallWaitingSettingsCompletion_FWD_DEFINED__ +#define __ICallWaitingSettingsCompletion_FWD_DEFINED__ +typedef interface ICallWaitingSettingsCompletion ICallWaitingSettingsCompletion; + +#endif /* __ICallWaitingSettingsCompletion_FWD_DEFINED__ */ + + +#ifndef __IOemIMSStatusChange_FWD_DEFINED__ +#define __IOemIMSStatusChange_FWD_DEFINED__ +typedef interface IOemIMSStatusChange IOemIMSStatusChange; + +#endif /* __IOemIMSStatusChange_FWD_DEFINED__ */ + + +#ifndef __ICanInfoCompletion_FWD_DEFINED__ +#define __ICanInfoCompletion_FWD_DEFINED__ +typedef interface ICanInfoCompletion ICanInfoCompletion; + +#endif /* __ICanInfoCompletion_FWD_DEFINED__ */ + + +#ifndef __IGetRecordStatusCompletion_FWD_DEFINED__ +#define __IGetRecordStatusCompletion_FWD_DEFINED__ +typedef interface IGetRecordStatusCompletion IGetRecordStatusCompletion; + +#endif /* __IGetRecordStatusCompletion_FWD_DEFINED__ */ + + +#ifndef __IGetRFStateCompletion_FWD_DEFINED__ +#define __IGetRFStateCompletion_FWD_DEFINED__ +typedef interface IGetRFStateCompletion IGetRFStateCompletion; + +#endif /* __IGetRFStateCompletion_FWD_DEFINED__ */ + + +#ifndef __IGetSIDNIDCompletion_FWD_DEFINED__ +#define __IGetSIDNIDCompletion_FWD_DEFINED__ +typedef interface IGetSIDNIDCompletion IGetSIDNIDCompletion; + +#endif /* __IGetSIDNIDCompletion_FWD_DEFINED__ */ + + +#ifndef __IGetNAICompletion_FWD_DEFINED__ +#define __IGetNAICompletion_FWD_DEFINED__ +typedef interface IGetNAICompletion IGetNAICompletion; + +#endif /* __IGetNAICompletion_FWD_DEFINED__ */ + + +#ifndef __IIMSICompletion_FWD_DEFINED__ +#define __IIMSICompletion_FWD_DEFINED__ +typedef interface IIMSICompletion IIMSICompletion; + +#endif /* __IIMSICompletion_FWD_DEFINED__ */ + + +#ifndef __IModemOpaqueCommandCompletion_FWD_DEFINED__ +#define __IModemOpaqueCommandCompletion_FWD_DEFINED__ +typedef interface IModemOpaqueCommandCompletion IModemOpaqueCommandCompletion; + +#endif /* __IModemOpaqueCommandCompletion_FWD_DEFINED__ */ + + +#ifndef __IOemCan_FWD_DEFINED__ +#define __IOemCan_FWD_DEFINED__ +typedef interface IOemCan IOemCan; + +#endif /* __IOemCan_FWD_DEFINED__ */ + + +#ifndef __IOemCanExtForIMS_FWD_DEFINED__ +#define __IOemCanExtForIMS_FWD_DEFINED__ +typedef interface IOemCanExtForIMS IOemCanExtForIMS; + +#endif /* __IOemCanExtForIMS_FWD_DEFINED__ */ + + +#ifndef __IOemCanRegistrationStateChange_FWD_DEFINED__ +#define __IOemCanRegistrationStateChange_FWD_DEFINED__ +typedef interface IOemCanRegistrationStateChange IOemCanRegistrationStateChange; + +#endif /* __IOemCanRegistrationStateChange_FWD_DEFINED__ */ + + +#ifndef __IOemCellular_FWD_DEFINED__ +#define __IOemCellular_FWD_DEFINED__ +typedef interface IOemCellular IOemCellular; + +#endif /* __IOemCellular_FWD_DEFINED__ */ + + +#ifndef __IOemCellularCanAvailabilityChange_FWD_DEFINED__ +#define __IOemCellularCanAvailabilityChange_FWD_DEFINED__ +typedef interface IOemCellularCanAvailabilityChange IOemCellularCanAvailabilityChange; + +#endif /* __IOemCellularCanAvailabilityChange_FWD_DEFINED__ */ + + +#ifndef __IOemCellularModem_FWD_DEFINED__ +#define __IOemCellularModem_FWD_DEFINED__ +typedef interface IOemCellularModem IOemCellularModem; + +#endif /* __IOemCellularModem_FWD_DEFINED__ */ + + +#ifndef __IOemCellularModemExistenceChange_FWD_DEFINED__ +#define __IOemCellularModemExistenceChange_FWD_DEFINED__ +typedef interface IOemCellularModemExistenceChange IOemCellularModemExistenceChange; + +#endif /* __IOemCellularModemExistenceChange_FWD_DEFINED__ */ + + +#ifndef __IOemRegistrationStatus_FWD_DEFINED__ +#define __IOemRegistrationStatus_FWD_DEFINED__ +typedef interface IOemRegistrationStatus IOemRegistrationStatus; + +#endif /* __IOemRegistrationStatus_FWD_DEFINED__ */ + + +#ifndef __IOemSlot_FWD_DEFINED__ +#define __IOemSlot_FWD_DEFINED__ +typedef interface IOemSlot IOemSlot; + +#endif /* __IOemSlot_FWD_DEFINED__ */ + + +#ifndef __IOemSlotChange_FWD_DEFINED__ +#define __IOemSlotChange_FWD_DEFINED__ +typedef interface IOemSlotChange IOemSlotChange; + +#endif /* __IOemSlotChange_FWD_DEFINED__ */ + + +#ifndef __IOemSlotStateChange_FWD_DEFINED__ +#define __IOemSlotStateChange_FWD_DEFINED__ +typedef interface IOemSlotStateChange IOemSlotStateChange; + +#endif /* __IOemSlotStateChange_FWD_DEFINED__ */ + + +#ifndef __IOemUiccChange_FWD_DEFINED__ +#define __IOemUiccChange_FWD_DEFINED__ +typedef interface IOemUiccChange IOemUiccChange; + +#endif /* __IOemUiccChange_FWD_DEFINED__ */ + + +#ifndef __IOpaqueModemNotifications_FWD_DEFINED__ +#define __IOpaqueModemNotifications_FWD_DEFINED__ +typedef interface IOpaqueModemNotifications IOpaqueModemNotifications; + +#endif /* __IOpaqueModemNotifications_FWD_DEFINED__ */ + + +#ifndef __IPinLockStateCompletion_FWD_DEFINED__ +#define __IPinLockStateCompletion_FWD_DEFINED__ +typedef interface IPinLockStateCompletion IPinLockStateCompletion; + +#endif /* __IPinLockStateCompletion_FWD_DEFINED__ */ + + +#ifndef __IPositionInfoCompletion_FWD_DEFINED__ +#define __IPositionInfoCompletion_FWD_DEFINED__ +typedef interface IPositionInfoCompletion IPositionInfoCompletion; + +#endif /* __IPositionInfoCompletion_FWD_DEFINED__ */ + + +#ifndef __IPowerStateChange_FWD_DEFINED__ +#define __IPowerStateChange_FWD_DEFINED__ +typedef interface IPowerStateChange IPowerStateChange; + +#endif /* __IPowerStateChange_FWD_DEFINED__ */ + + +#ifndef __IReadRecordCompletion_FWD_DEFINED__ +#define __IReadRecordCompletion_FWD_DEFINED__ +typedef interface IReadRecordCompletion IReadRecordCompletion; + +#endif /* __IReadRecordCompletion_FWD_DEFINED__ */ + + +#ifndef __ISetRFStateCompletion_FWD_DEFINED__ +#define __ISetRFStateCompletion_FWD_DEFINED__ +typedef interface ISetRFStateCompletion ISetRFStateCompletion; + +#endif /* __ISetRFStateCompletion_FWD_DEFINED__ */ + + +#ifndef __ISubscriberNumbersCompletion_FWD_DEFINED__ +#define __ISubscriberNumbersCompletion_FWD_DEFINED__ +typedef interface ISubscriberNumbersCompletion ISubscriberNumbersCompletion; + +#endif /* __ISubscriberNumbersCompletion_FWD_DEFINED__ */ + + +#ifndef __IWriteRecordCompletion_FWD_DEFINED__ +#define __IWriteRecordCompletion_FWD_DEFINED__ +typedef interface IWriteRecordCompletion IWriteRecordCompletion; + +#endif /* __IWriteRecordCompletion_FWD_DEFINED__ */ + + +#ifndef __IGetPLMNwAcT_FWD_DEFINED__ +#define __IGetPLMNwAcT_FWD_DEFINED__ +typedef interface IGetPLMNwAcT IGetPLMNwAcT; + +#endif /* __IGetPLMNwAcT_FWD_DEFINED__ */ + + +#ifndef __ISetPLMNwAcT_FWD_DEFINED__ +#define __ISetPLMNwAcT_FWD_DEFINED__ +typedef interface ISetPLMNwAcT ISetPLMNwAcT; + +#endif /* __ISetPLMNwAcT_FWD_DEFINED__ */ + + +#ifndef __IOem3GPPSupServices_FWD_DEFINED__ +#define __IOem3GPPSupServices_FWD_DEFINED__ +typedef interface IOem3GPPSupServices IOem3GPPSupServices; + +#endif /* __IOem3GPPSupServices_FWD_DEFINED__ */ + + +#ifndef __IGetCallForwardingCompletion_FWD_DEFINED__ +#define __IGetCallForwardingCompletion_FWD_DEFINED__ +typedef interface IGetCallForwardingCompletion IGetCallForwardingCompletion; + +#endif /* __IGetCallForwardingCompletion_FWD_DEFINED__ */ + + +#ifndef __ISimpleModemCompletion_FWD_DEFINED__ +#define __ISimpleModemCompletion_FWD_DEFINED__ +typedef interface ISimpleModemCompletion ISimpleModemCompletion; + +#endif /* __ISimpleModemCompletion_FWD_DEFINED__ */ + + +#ifndef __ICallWaitingSettingsCompletion_FWD_DEFINED__ +#define __ICallWaitingSettingsCompletion_FWD_DEFINED__ +typedef interface ICallWaitingSettingsCompletion ICallWaitingSettingsCompletion; + +#endif /* __ICallWaitingSettingsCompletion_FWD_DEFINED__ */ + + +#ifndef __IOemIMSStatusChange_FWD_DEFINED__ +#define __IOemIMSStatusChange_FWD_DEFINED__ +typedef interface IOemIMSStatusChange IOemIMSStatusChange; + +#endif /* __IOemIMSStatusChange_FWD_DEFINED__ */ + + +#ifndef __OemCellular_FWD_DEFINED__ +#define __OemCellular_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class OemCellular OemCellular; +#else +typedef struct OemCellular OemCellular; +#endif /* __cplusplus */ + +#endif /* __OemCellular_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "RilAPITypes.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_cellularapi_oem_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#if ( _MSC_VER >= 1020 ) +#pragma once +#endif +DEFINE_GUID(SID_3GPP_SUPSVCMODEL, 0xd7d08e07, 0xd767, 0x4478, 0xb1, 0x4a, 0xee, 0xcc, 0x87, 0xea, 0x12, 0xf7); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +#define MAXLENGTH_NAI ( 72 ) + + +enum MODEMPOWERSTATE + { + MODEM_POWER_OFF = 0x1, + MODEM_POWER_GOING_ON = 0x2, + MODEM_POWER_ON = 0x3, + MODEM_POWER_GOING_OFF = 0x4, + MODEM_POWER_SHUTING_DOWN = 0x5 + } ; +typedef struct RILSIDNID RILSIDNID; + +typedef struct RILSIDNID *LPRILSIDNID; + +typedef struct RILNAI NAI; + +typedef struct RILNAI *LPRILNAI; + + +enum RILNAIPARAMMASK + { + RIL_PARAM_NAI_NAI = 0x1, + RIL_PARAM_NAI_ALL = 0x1 + } ; +struct RILNAI + { + DWORD cbSize; + DWORD dwParams; + WCHAR wszNAI[ 73 ]; + } ; + +enum RILSIDNIDPARAMMASK + { + RIL_PARAM_SIDNID_SID = 0x1, + RIL_PARAM_SIDNID_NID = 0x2, + RIL_PARAM_SIDNID_ALL = 0x3 + } ; +typedef enum RILSIDNIDPARAMMASK RILSIDNIDPARAMMASK; + +struct RILSIDNID + { + DWORD cbSize; + DWORD dwParams; + DWORD dwSid; + DWORD dwNid; + } ; + +enum UICCDATASTOREACCESSMODE + { + UICCDATASTORE_PUBLIC = 0x1, + UICCDATASTORE_PRIVATE = 0x2 + } ; +typedef enum UICCDATASTOREACCESSMODE UICCDATASTOREACCESSMODE; + +#define MAXLENGTH_UICCDATASTORE ( 10 ) + +struct UICCDATASTOREENTRY + { + DWORD position; + DWORD lengthIccId; + BYTE iccId[ 10 ]; + } ; +struct UICCDATASTOREINFO + { + DWORD dwCount; + struct UICCDATASTOREENTRY entries[ 10 ]; + } ; +typedef struct UICCDATASTOREINFO UICCDATASTOREINFO; + + + +extern RPC_IF_HANDLE __MIDL_itf_cellularapi_oem_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cellularapi_oem_0000_0000_v0_0_s_ifspec; + +#ifndef __IOemCellular_INTERFACE_DEFINED__ +#define __IOemCellular_INTERFACE_DEFINED__ + +/* interface IOemCellular */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemCellular; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("17AE6DC1-3723-4085-99BA-7160CDB8BFC1") + IOemCellular : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterForOemModemExistenceChanges( + /* [in] */ __RPC__in_opt IOemCellularModemExistenceChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterForOemModemExistenceChanges( + /* [in] */ __RPC__in_opt IOemCellularModemExistenceChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Destroy( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE WaitForDestroyCompletion( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemCellularVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemCellular * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemCellular * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemCellular * This); + + DECLSPEC_XFGVIRT(IOemCellular, RegisterForOemModemExistenceChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterForOemModemExistenceChanges )( + __RPC__in IOemCellular * This, + /* [in] */ __RPC__in_opt IOemCellularModemExistenceChange *pCallback); + + DECLSPEC_XFGVIRT(IOemCellular, UnregisterForOemModemExistenceChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterForOemModemExistenceChanges )( + __RPC__in IOemCellular * This, + /* [in] */ __RPC__in_opt IOemCellularModemExistenceChange *pCallback); + + DECLSPEC_XFGVIRT(IOemCellular, Destroy) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Destroy )( + __RPC__in IOemCellular * This); + + DECLSPEC_XFGVIRT(IOemCellular, WaitForDestroyCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *WaitForDestroyCompletion )( + __RPC__in IOemCellular * This); + + END_INTERFACE + } IOemCellularVtbl; + + interface IOemCellular + { + CONST_VTBL struct IOemCellularVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemCellular_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemCellular_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemCellular_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemCellular_RegisterForOemModemExistenceChanges(This,pCallback) \ + ( (This)->lpVtbl -> RegisterForOemModemExistenceChanges(This,pCallback) ) + +#define IOemCellular_UnregisterForOemModemExistenceChanges(This,pCallback) \ + ( (This)->lpVtbl -> UnregisterForOemModemExistenceChanges(This,pCallback) ) + +#define IOemCellular_Destroy(This) \ + ( (This)->lpVtbl -> Destroy(This) ) + +#define IOemCellular_WaitForDestroyCompletion(This) \ + ( (This)->lpVtbl -> WaitForDestroyCompletion(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemCellular_INTERFACE_DEFINED__ */ + + +#ifndef __IOemCellularDataStore_INTERFACE_DEFINED__ +#define __IOemCellularDataStore_INTERFACE_DEFINED__ + +/* interface IOemCellularDataStore */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemCellularDataStore; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b470078a-2784-4d09-ad35-42b2290abc54") + IOemCellularDataStore : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetNamedValue( + /* [in] */ __RPC__in const BYTE *pIccId, + /* [in] */ DWORD lengthIccId, + /* [in] */ __RPC__in LPCWSTR pClientId, + /* [in] */ __RPC__in LPCWSTR pPropertyName, + /* [in] */ __RPC__in const BYTE *pPropertyValue, + /* [in] */ DWORD lengthValue, + /* [in] */ UICCDATASTOREACCESSMODE accessMode) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetNamedValue( + /* [in] */ __RPC__in const BYTE *pIccId, + /* [in] */ DWORD lengthIccId, + /* [in] */ __RPC__in LPCWSTR pClientId, + /* [in] */ __RPC__in LPCWSTR pPropertyName, + /* [out] */ __RPC__out BYTE *pPropertyValue, + /* [out][in] */ __RPC__inout DWORD *pLengthValue, + /* [in] */ UICCDATASTOREACCESSMODE accessMode) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetUiccDataStoreInfo( + /* [out][in] */ __RPC__inout struct UICCDATASTOREINFO *pDatastoreInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemCellularDataStoreVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemCellularDataStore * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemCellularDataStore * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemCellularDataStore * This); + + DECLSPEC_XFGVIRT(IOemCellularDataStore, SetNamedValue) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetNamedValue )( + __RPC__in IOemCellularDataStore * This, + /* [in] */ __RPC__in const BYTE *pIccId, + /* [in] */ DWORD lengthIccId, + /* [in] */ __RPC__in LPCWSTR pClientId, + /* [in] */ __RPC__in LPCWSTR pPropertyName, + /* [in] */ __RPC__in const BYTE *pPropertyValue, + /* [in] */ DWORD lengthValue, + /* [in] */ UICCDATASTOREACCESSMODE accessMode); + + DECLSPEC_XFGVIRT(IOemCellularDataStore, GetNamedValue) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNamedValue )( + __RPC__in IOemCellularDataStore * This, + /* [in] */ __RPC__in const BYTE *pIccId, + /* [in] */ DWORD lengthIccId, + /* [in] */ __RPC__in LPCWSTR pClientId, + /* [in] */ __RPC__in LPCWSTR pPropertyName, + /* [out] */ __RPC__out BYTE *pPropertyValue, + /* [out][in] */ __RPC__inout DWORD *pLengthValue, + /* [in] */ UICCDATASTOREACCESSMODE accessMode); + + DECLSPEC_XFGVIRT(IOemCellularDataStore, GetUiccDataStoreInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetUiccDataStoreInfo )( + __RPC__in IOemCellularDataStore * This, + /* [out][in] */ __RPC__inout struct UICCDATASTOREINFO *pDatastoreInfo); + + END_INTERFACE + } IOemCellularDataStoreVtbl; + + interface IOemCellularDataStore + { + CONST_VTBL struct IOemCellularDataStoreVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemCellularDataStore_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemCellularDataStore_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemCellularDataStore_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemCellularDataStore_SetNamedValue(This,pIccId,lengthIccId,pClientId,pPropertyName,pPropertyValue,lengthValue,accessMode) \ + ( (This)->lpVtbl -> SetNamedValue(This,pIccId,lengthIccId,pClientId,pPropertyName,pPropertyValue,lengthValue,accessMode) ) + +#define IOemCellularDataStore_GetNamedValue(This,pIccId,lengthIccId,pClientId,pPropertyName,pPropertyValue,pLengthValue,accessMode) \ + ( (This)->lpVtbl -> GetNamedValue(This,pIccId,lengthIccId,pClientId,pPropertyName,pPropertyValue,pLengthValue,accessMode) ) + +#define IOemCellularDataStore_GetUiccDataStoreInfo(This,pDatastoreInfo) \ + ( (This)->lpVtbl -> GetUiccDataStoreInfo(This,pDatastoreInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemCellularDataStore_INTERFACE_DEFINED__ */ + + +#ifndef __IOemCellularModem_INTERFACE_DEFINED__ +#define __IOemCellularModem_INTERFACE_DEFINED__ + +/* interface IOemCellularModem */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemCellularModem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("82F4E49E-1E6B-43C9-8769-FE3D437AE8A9") + IOemCellularModem : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterForOemCanAvailabilityChanges( + /* [in] */ __RPC__in_opt IOemCellularCanAvailabilityChange *pCallBack) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterForOemCanAvailabilityChanges( + /* [in] */ __RPC__in_opt IOemCellularCanAvailabilityChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterForOemSlotChanges( + /* [in] */ __RPC__in_opt IOemSlotChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterForOemSlotChanges( + /* [in] */ __RPC__in_opt IOemSlotChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterForPowerStateChanges( + /* [in] */ __RPC__in_opt IPowerStateChange *pCallback, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterForPowerStateChanges( + /* [in] */ __RPC__in_opt IPowerStateChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SendModemOpaqueCommand( + /* [in] */ __RPC__in_opt IModemOpaqueCommandCompletion *pCallback, + /* [size_is][in] */ __RPC__in_ecount_full(cbSize) BYTE *pOpaquePayload, + /* [in] */ DWORD cbSize, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterForOpaqueModemNotifications( + /* [in] */ __RPC__in_opt IOpaqueModemNotifications *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnRegisterForOpaqueModemNotifications( + /* [in] */ __RPC__in_opt IOpaqueModemNotifications *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetRFState( + /* [in] */ __RPC__in_opt ISetRFStateCompletion *pCallback, + /* [in] */ DWORD dwRFPowerState, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetRFState( + /* [in] */ __RPC__in_opt IGetRFStateCompletion *pCallback, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemCellularModemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemCellularModem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemCellularModem * This); + + DECLSPEC_XFGVIRT(IOemCellularModem, RegisterForOemCanAvailabilityChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterForOemCanAvailabilityChanges )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt IOemCellularCanAvailabilityChange *pCallBack); + + DECLSPEC_XFGVIRT(IOemCellularModem, UnregisterForOemCanAvailabilityChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterForOemCanAvailabilityChanges )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt IOemCellularCanAvailabilityChange *pCallback); + + DECLSPEC_XFGVIRT(IOemCellularModem, RegisterForOemSlotChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterForOemSlotChanges )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt IOemSlotChange *pCallback); + + DECLSPEC_XFGVIRT(IOemCellularModem, UnregisterForOemSlotChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterForOemSlotChanges )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt IOemSlotChange *pCallback); + + DECLSPEC_XFGVIRT(IOemCellularModem, RegisterForPowerStateChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterForPowerStateChanges )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt IPowerStateChange *pCallback, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemCellularModem, UnregisterForPowerStateChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterForPowerStateChanges )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt IPowerStateChange *pCallback); + + DECLSPEC_XFGVIRT(IOemCellularModem, SendModemOpaqueCommand) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SendModemOpaqueCommand )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt IModemOpaqueCommandCompletion *pCallback, + /* [size_is][in] */ __RPC__in_ecount_full(cbSize) BYTE *pOpaquePayload, + /* [in] */ DWORD cbSize, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemCellularModem, RegisterForOpaqueModemNotifications) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterForOpaqueModemNotifications )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt IOpaqueModemNotifications *pCallback); + + DECLSPEC_XFGVIRT(IOemCellularModem, UnRegisterForOpaqueModemNotifications) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnRegisterForOpaqueModemNotifications )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt IOpaqueModemNotifications *pCallback); + + DECLSPEC_XFGVIRT(IOemCellularModem, SetRFState) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetRFState )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt ISetRFStateCompletion *pCallback, + /* [in] */ DWORD dwRFPowerState, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemCellularModem, GetRFState) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRFState )( + __RPC__in IOemCellularModem * This, + /* [in] */ __RPC__in_opt IGetRFStateCompletion *pCallback, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IOemCellularModemVtbl; + + interface IOemCellularModem + { + CONST_VTBL struct IOemCellularModemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemCellularModem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemCellularModem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemCellularModem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemCellularModem_RegisterForOemCanAvailabilityChanges(This,pCallBack) \ + ( (This)->lpVtbl -> RegisterForOemCanAvailabilityChanges(This,pCallBack) ) + +#define IOemCellularModem_UnregisterForOemCanAvailabilityChanges(This,pCallback) \ + ( (This)->lpVtbl -> UnregisterForOemCanAvailabilityChanges(This,pCallback) ) + +#define IOemCellularModem_RegisterForOemSlotChanges(This,pCallback) \ + ( (This)->lpVtbl -> RegisterForOemSlotChanges(This,pCallback) ) + +#define IOemCellularModem_UnregisterForOemSlotChanges(This,pCallback) \ + ( (This)->lpVtbl -> UnregisterForOemSlotChanges(This,pCallback) ) + +#define IOemCellularModem_RegisterForPowerStateChanges(This,pCallback,context) \ + ( (This)->lpVtbl -> RegisterForPowerStateChanges(This,pCallback,context) ) + +#define IOemCellularModem_UnregisterForPowerStateChanges(This,pCallback) \ + ( (This)->lpVtbl -> UnregisterForPowerStateChanges(This,pCallback) ) + +#define IOemCellularModem_SendModemOpaqueCommand(This,pCallback,pOpaquePayload,cbSize,context) \ + ( (This)->lpVtbl -> SendModemOpaqueCommand(This,pCallback,pOpaquePayload,cbSize,context) ) + +#define IOemCellularModem_RegisterForOpaqueModemNotifications(This,pCallback) \ + ( (This)->lpVtbl -> RegisterForOpaqueModemNotifications(This,pCallback) ) + +#define IOemCellularModem_UnRegisterForOpaqueModemNotifications(This,pCallback) \ + ( (This)->lpVtbl -> UnRegisterForOpaqueModemNotifications(This,pCallback) ) + +#define IOemCellularModem_SetRFState(This,pCallback,dwRFPowerState,context) \ + ( (This)->lpVtbl -> SetRFState(This,pCallback,dwRFPowerState,context) ) + +#define IOemCellularModem_GetRFState(This,pCallback,context) \ + ( (This)->lpVtbl -> GetRFState(This,pCallback,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemCellularModem_INTERFACE_DEFINED__ */ + + +#ifndef __IOemCellularModemEx_INTERFACE_DEFINED__ +#define __IOemCellularModemEx_INTERFACE_DEFINED__ + +/* interface IOemCellularModemEx */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemCellularModemEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1902f624-534e-4624-a815-3546021f0854") + IOemCellularModemEx : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetRFState( + /* [in] */ __RPC__in_opt ISetRFStateCompletion *pCallback, + /* [in] */ __RPC__in LPRILRFSTATE lpRFState, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetRFState( + /* [in] */ __RPC__in_opt IGetRFStateExCompletion *pCallback, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemCellularModemExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemCellularModemEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemCellularModemEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemCellularModemEx * This); + + DECLSPEC_XFGVIRT(IOemCellularModemEx, SetRFState) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetRFState )( + __RPC__in IOemCellularModemEx * This, + /* [in] */ __RPC__in_opt ISetRFStateCompletion *pCallback, + /* [in] */ __RPC__in LPRILRFSTATE lpRFState, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemCellularModemEx, GetRFState) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRFState )( + __RPC__in IOemCellularModemEx * This, + /* [in] */ __RPC__in_opt IGetRFStateExCompletion *pCallback, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IOemCellularModemExVtbl; + + interface IOemCellularModemEx + { + CONST_VTBL struct IOemCellularModemExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemCellularModemEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemCellularModemEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemCellularModemEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemCellularModemEx_SetRFState(This,pCallback,lpRFState,context) \ + ( (This)->lpVtbl -> SetRFState(This,pCallback,lpRFState,context) ) + +#define IOemCellularModemEx_GetRFState(This,pCallback,context) \ + ( (This)->lpVtbl -> GetRFState(This,pCallback,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemCellularModemEx_INTERFACE_DEFINED__ */ + + +#ifndef __IOemCan_INTERFACE_DEFINED__ +#define __IOemCan_INTERFACE_DEFINED__ + +/* interface IOemCan */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemCan; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A3822E4E-FFB5-4E46-8980-0182B8454E2E") + IOemCan : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterForOemCanRegistrationChanges( + /* [in] */ __RPC__in_opt IOemCanRegistrationStateChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterForOemCanRegistrationChanges( + /* [in] */ __RPC__in_opt IOemCanRegistrationStateChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetInfo( + /* [in] */ enum RILDEVICEINFORMATION deviceInfo, + /* [in] */ __RPC__in_opt ICanInfoCompletion *pCallback, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPositionInfo( + /* [in] */ __RPC__in_opt IPositionInfoCompletion *pCallback, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryService( + /* [in] */ __RPC__in REFGUID guidService, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppv) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemCanVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemCan * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemCan * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemCan * This); + + DECLSPEC_XFGVIRT(IOemCan, RegisterForOemCanRegistrationChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterForOemCanRegistrationChanges )( + __RPC__in IOemCan * This, + /* [in] */ __RPC__in_opt IOemCanRegistrationStateChange *pCallback); + + DECLSPEC_XFGVIRT(IOemCan, UnregisterForOemCanRegistrationChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterForOemCanRegistrationChanges )( + __RPC__in IOemCan * This, + /* [in] */ __RPC__in_opt IOemCanRegistrationStateChange *pCallback); + + DECLSPEC_XFGVIRT(IOemCan, GetInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in IOemCan * This, + /* [in] */ enum RILDEVICEINFORMATION deviceInfo, + /* [in] */ __RPC__in_opt ICanInfoCompletion *pCallback, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemCan, GetPositionInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPositionInfo )( + __RPC__in IOemCan * This, + /* [in] */ __RPC__in_opt IPositionInfoCompletion *pCallback, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemCan, QueryService) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryService )( + __RPC__in IOemCan * This, + /* [in] */ __RPC__in REFGUID guidService, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppv); + + END_INTERFACE + } IOemCanVtbl; + + interface IOemCan + { + CONST_VTBL struct IOemCanVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemCan_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemCan_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemCan_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemCan_RegisterForOemCanRegistrationChanges(This,pCallback) \ + ( (This)->lpVtbl -> RegisterForOemCanRegistrationChanges(This,pCallback) ) + +#define IOemCan_UnregisterForOemCanRegistrationChanges(This,pCallback) \ + ( (This)->lpVtbl -> UnregisterForOemCanRegistrationChanges(This,pCallback) ) + +#define IOemCan_GetInfo(This,deviceInfo,pCallback,context) \ + ( (This)->lpVtbl -> GetInfo(This,deviceInfo,pCallback,context) ) + +#define IOemCan_GetPositionInfo(This,pCallback,context) \ + ( (This)->lpVtbl -> GetPositionInfo(This,pCallback,context) ) + +#define IOemCan_QueryService(This,guidService,riid,ppv) \ + ( (This)->lpVtbl -> QueryService(This,guidService,riid,ppv) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemCan_INTERFACE_DEFINED__ */ + + +#ifndef __IOemCanExtForIMS_INTERFACE_DEFINED__ +#define __IOemCanExtForIMS_INTERFACE_DEFINED__ + +/* interface IOemCanExtForIMS */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemCanExtForIMS; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C5310A1A-E885-4450-B823-84AD7FD15CBF") + IOemCanExtForIMS : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterForOemIMSStatusChanges( + /* [in] */ __RPC__in_opt IOemIMSStatusChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterForOemIMSStatusChanges( + /* [in] */ __RPC__in_opt IOemIMSStatusChange *pCallback) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemCanExtForIMSVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemCanExtForIMS * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemCanExtForIMS * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemCanExtForIMS * This); + + DECLSPEC_XFGVIRT(IOemCanExtForIMS, RegisterForOemIMSStatusChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterForOemIMSStatusChanges )( + __RPC__in IOemCanExtForIMS * This, + /* [in] */ __RPC__in_opt IOemIMSStatusChange *pCallback); + + DECLSPEC_XFGVIRT(IOemCanExtForIMS, UnregisterForOemIMSStatusChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterForOemIMSStatusChanges )( + __RPC__in IOemCanExtForIMS * This, + /* [in] */ __RPC__in_opt IOemIMSStatusChange *pCallback); + + END_INTERFACE + } IOemCanExtForIMSVtbl; + + interface IOemCanExtForIMS + { + CONST_VTBL struct IOemCanExtForIMSVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemCanExtForIMS_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemCanExtForIMS_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemCanExtForIMS_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemCanExtForIMS_RegisterForOemIMSStatusChanges(This,pCallback) \ + ( (This)->lpVtbl -> RegisterForOemIMSStatusChanges(This,pCallback) ) + +#define IOemCanExtForIMS_UnregisterForOemIMSStatusChanges(This,pCallback) \ + ( (This)->lpVtbl -> UnregisterForOemIMSStatusChanges(This,pCallback) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemCanExtForIMS_INTERFACE_DEFINED__ */ + + +#ifndef __IOemSlot_INTERFACE_DEFINED__ +#define __IOemSlot_INTERFACE_DEFINED__ + +/* interface IOemSlot */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemSlot; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DAE67DE6-0C18-4158-9323-CF7FB14EC216") + IOemSlot : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterForOemSlotChanges( + /* [in] */ __RPC__in_opt IOemSlotStateChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterForOemSlotChanges( + /* [in] */ __RPC__in_opt IOemSlotStateChange *pCallback) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemSlotVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemSlot * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemSlot * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemSlot * This); + + DECLSPEC_XFGVIRT(IOemSlot, RegisterForOemSlotChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterForOemSlotChanges )( + __RPC__in IOemSlot * This, + /* [in] */ __RPC__in_opt IOemSlotStateChange *pCallback); + + DECLSPEC_XFGVIRT(IOemSlot, UnregisterForOemSlotChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterForOemSlotChanges )( + __RPC__in IOemSlot * This, + /* [in] */ __RPC__in_opt IOemSlotStateChange *pCallback); + + END_INTERFACE + } IOemSlotVtbl; + + interface IOemSlot + { + CONST_VTBL struct IOemSlotVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemSlot_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemSlot_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemSlot_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemSlot_RegisterForOemSlotChanges(This,pCallback) \ + ( (This)->lpVtbl -> RegisterForOemSlotChanges(This,pCallback) ) + +#define IOemSlot_UnregisterForOemSlotChanges(This,pCallback) \ + ( (This)->lpVtbl -> UnregisterForOemSlotChanges(This,pCallback) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemSlot_INTERFACE_DEFINED__ */ + + +#ifndef __IOemUicc_INTERFACE_DEFINED__ +#define __IOemUicc_INTERFACE_DEFINED__ + +/* interface IOemUicc */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemUicc; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FD5DBCF6-810D-4CE8-AC06-1B8628808950") + IOemUicc : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterForOemUiccChanges( + /* [in] */ __RPC__in_opt IOemUiccChange *pCallback) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterForOemUiccChanges( + /* [in] */ __RPC__in_opt IOemUiccChange *pCallback) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemUiccVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemUicc * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemUicc * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemUicc * This); + + DECLSPEC_XFGVIRT(IOemUicc, RegisterForOemUiccChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterForOemUiccChanges )( + __RPC__in IOemUicc * This, + /* [in] */ __RPC__in_opt IOemUiccChange *pCallback); + + DECLSPEC_XFGVIRT(IOemUicc, UnregisterForOemUiccChanges) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterForOemUiccChanges )( + __RPC__in IOemUicc * This, + /* [in] */ __RPC__in_opt IOemUiccChange *pCallback); + + END_INTERFACE + } IOemUiccVtbl; + + interface IOemUicc + { + CONST_VTBL struct IOemUiccVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemUicc_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemUicc_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemUicc_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemUicc_RegisterForOemUiccChanges(This,pCallback) \ + ( (This)->lpVtbl -> RegisterForOemUiccChanges(This,pCallback) ) + +#define IOemUicc_UnregisterForOemUiccChanges(This,pCallback) \ + ( (This)->lpVtbl -> UnregisterForOemUiccChanges(This,pCallback) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemUicc_INTERFACE_DEFINED__ */ + + +#ifndef __IOemUiccApp_INTERFACE_DEFINED__ +#define __IOemUiccApp_INTERFACE_DEFINED__ + +/* interface IOemUiccApp */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemUiccApp; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2D00BFEE-AA9F-48FD-9D2B-E8D3D3EDDC60") + IOemUiccApp : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetAppId( + /* [out] */ __RPC__out BYTE *appId, + /* [out][in] */ __RPC__inout DWORD *length) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetType( + /* [out] */ __RPC__out RILUICCAPPTYPE *pType) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPinLockState( + /* [in] */ __RPC__in_opt IPinLockStateCompletion *pCallback, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ReadRecord( + /* [in] */ __RPC__in_opt IReadRecordCompletion *pCallback, + /* [in] */ DWORD fileID, + /* [in] */ DWORD recordIndex, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE WriteRecord( + /* [in] */ __RPC__in_opt IWriteRecordCompletion *pCallback, + /* [in] */ DWORD fileID, + /* [in] */ DWORD recordIndex, + /* [in] */ __RPC__in const BYTE *bData, + /* [in] */ DWORD cbSize, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetRecordStatusOnFilePath( + /* [in] */ __RPC__in_opt IGetRecordStatusCompletion *pCallback, + /* [size_is][in] */ __RPC__in_ecount_full(filePathLen) const WORD *uiccFilePath, + /* [in] */ DWORD filePathLen, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ReadRecordOnFilePath( + /* [in] */ __RPC__in_opt IReadRecordCompletion *pCallback, + /* [size_is][in] */ __RPC__in_ecount_full(filePathLen) const WORD *uiccFilePath, + /* [in] */ DWORD filePathLen, + /* [in] */ DWORD recordIndex, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE WriteRecordOnFilePath( + /* [in] */ __RPC__in_opt IWriteRecordCompletion *pCallback, + /* [size_is][in] */ __RPC__in_ecount_full(filePathLen) const WORD *uiccFilePath, + /* [in] */ DWORD filePathLen, + /* [in] */ DWORD recordIndex, + /* [in] */ __RPC__in const BYTE *bData, + /* [in] */ DWORD cbSize, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetIMSI( + /* [in] */ __RPC__in_opt IIMSICompletion *pCallback, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSIDNID( + /* [in] */ __RPC__in_opt IGetSIDNIDCompletion *pCallback, + /* [in] */ INT_PTR context) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSubscriberNumbers( + /* [in] */ __RPC__in_opt ISubscriberNumbersCompletion *pCallback, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemUiccAppVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemUiccApp * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemUiccApp * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemUiccApp * This); + + DECLSPEC_XFGVIRT(IOemUiccApp, GetAppId) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetAppId )( + __RPC__in IOemUiccApp * This, + /* [out] */ __RPC__out BYTE *appId, + /* [out][in] */ __RPC__inout DWORD *length); + + DECLSPEC_XFGVIRT(IOemUiccApp, GetType) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetType )( + __RPC__in IOemUiccApp * This, + /* [out] */ __RPC__out RILUICCAPPTYPE *pType); + + DECLSPEC_XFGVIRT(IOemUiccApp, GetPinLockState) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPinLockState )( + __RPC__in IOemUiccApp * This, + /* [in] */ __RPC__in_opt IPinLockStateCompletion *pCallback, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemUiccApp, ReadRecord) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ReadRecord )( + __RPC__in IOemUiccApp * This, + /* [in] */ __RPC__in_opt IReadRecordCompletion *pCallback, + /* [in] */ DWORD fileID, + /* [in] */ DWORD recordIndex, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemUiccApp, WriteRecord) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *WriteRecord )( + __RPC__in IOemUiccApp * This, + /* [in] */ __RPC__in_opt IWriteRecordCompletion *pCallback, + /* [in] */ DWORD fileID, + /* [in] */ DWORD recordIndex, + /* [in] */ __RPC__in const BYTE *bData, + /* [in] */ DWORD cbSize, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemUiccApp, GetRecordStatusOnFilePath) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRecordStatusOnFilePath )( + __RPC__in IOemUiccApp * This, + /* [in] */ __RPC__in_opt IGetRecordStatusCompletion *pCallback, + /* [size_is][in] */ __RPC__in_ecount_full(filePathLen) const WORD *uiccFilePath, + /* [in] */ DWORD filePathLen, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemUiccApp, ReadRecordOnFilePath) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ReadRecordOnFilePath )( + __RPC__in IOemUiccApp * This, + /* [in] */ __RPC__in_opt IReadRecordCompletion *pCallback, + /* [size_is][in] */ __RPC__in_ecount_full(filePathLen) const WORD *uiccFilePath, + /* [in] */ DWORD filePathLen, + /* [in] */ DWORD recordIndex, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemUiccApp, WriteRecordOnFilePath) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *WriteRecordOnFilePath )( + __RPC__in IOemUiccApp * This, + /* [in] */ __RPC__in_opt IWriteRecordCompletion *pCallback, + /* [size_is][in] */ __RPC__in_ecount_full(filePathLen) const WORD *uiccFilePath, + /* [in] */ DWORD filePathLen, + /* [in] */ DWORD recordIndex, + /* [in] */ __RPC__in const BYTE *bData, + /* [in] */ DWORD cbSize, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemUiccApp, GetIMSI) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetIMSI )( + __RPC__in IOemUiccApp * This, + /* [in] */ __RPC__in_opt IIMSICompletion *pCallback, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemUiccApp, GetSIDNID) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSIDNID )( + __RPC__in IOemUiccApp * This, + /* [in] */ __RPC__in_opt IGetSIDNIDCompletion *pCallback, + /* [in] */ INT_PTR context); + + DECLSPEC_XFGVIRT(IOemUiccApp, GetSubscriberNumbers) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSubscriberNumbers )( + __RPC__in IOemUiccApp * This, + /* [in] */ __RPC__in_opt ISubscriberNumbersCompletion *pCallback, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IOemUiccAppVtbl; + + interface IOemUiccApp + { + CONST_VTBL struct IOemUiccAppVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemUiccApp_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemUiccApp_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemUiccApp_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemUiccApp_GetAppId(This,appId,length) \ + ( (This)->lpVtbl -> GetAppId(This,appId,length) ) + +#define IOemUiccApp_GetType(This,pType) \ + ( (This)->lpVtbl -> GetType(This,pType) ) + +#define IOemUiccApp_GetPinLockState(This,pCallback,context) \ + ( (This)->lpVtbl -> GetPinLockState(This,pCallback,context) ) + +#define IOemUiccApp_ReadRecord(This,pCallback,fileID,recordIndex,context) \ + ( (This)->lpVtbl -> ReadRecord(This,pCallback,fileID,recordIndex,context) ) + +#define IOemUiccApp_WriteRecord(This,pCallback,fileID,recordIndex,bData,cbSize,context) \ + ( (This)->lpVtbl -> WriteRecord(This,pCallback,fileID,recordIndex,bData,cbSize,context) ) + +#define IOemUiccApp_GetRecordStatusOnFilePath(This,pCallback,uiccFilePath,filePathLen,context) \ + ( (This)->lpVtbl -> GetRecordStatusOnFilePath(This,pCallback,uiccFilePath,filePathLen,context) ) + +#define IOemUiccApp_ReadRecordOnFilePath(This,pCallback,uiccFilePath,filePathLen,recordIndex,context) \ + ( (This)->lpVtbl -> ReadRecordOnFilePath(This,pCallback,uiccFilePath,filePathLen,recordIndex,context) ) + +#define IOemUiccApp_WriteRecordOnFilePath(This,pCallback,uiccFilePath,filePathLen,recordIndex,bData,cbSize,context) \ + ( (This)->lpVtbl -> WriteRecordOnFilePath(This,pCallback,uiccFilePath,filePathLen,recordIndex,bData,cbSize,context) ) + +#define IOemUiccApp_GetIMSI(This,pCallback,context) \ + ( (This)->lpVtbl -> GetIMSI(This,pCallback,context) ) + +#define IOemUiccApp_GetSIDNID(This,pCallback,context) \ + ( (This)->lpVtbl -> GetSIDNID(This,pCallback,context) ) + +#define IOemUiccApp_GetSubscriberNumbers(This,pCallback,context) \ + ( (This)->lpVtbl -> GetSubscriberNumbers(This,pCallback,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemUiccApp_INTERFACE_DEFINED__ */ + + +#ifndef __IOemUiccAppEx_INTERFACE_DEFINED__ +#define __IOemUiccAppEx_INTERFACE_DEFINED__ + +/* interface IOemUiccAppEx */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemUiccAppEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0C50366C-D5ED-4F00-AA54-1537A63D8A01") + IOemUiccAppEx : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPreferredOperatorList( + /* [in] */ __RPC__in_opt IGetPLMNwAcT *pResponseHandler) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetPreferredOperatorList( + /* [in] */ __RPC__in_opt ISetPLMNwAcT *pResponseHandler, + /* [size_is][in] */ __RPC__in_ecount_full(dwLength) RILOPERATORNAMES *pOperatorList, + /* [in] */ DWORD dwLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemUiccAppExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemUiccAppEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemUiccAppEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemUiccAppEx * This); + + DECLSPEC_XFGVIRT(IOemUiccAppEx, GetPreferredOperatorList) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPreferredOperatorList )( + __RPC__in IOemUiccAppEx * This, + /* [in] */ __RPC__in_opt IGetPLMNwAcT *pResponseHandler); + + DECLSPEC_XFGVIRT(IOemUiccAppEx, SetPreferredOperatorList) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetPreferredOperatorList )( + __RPC__in IOemUiccAppEx * This, + /* [in] */ __RPC__in_opt ISetPLMNwAcT *pResponseHandler, + /* [size_is][in] */ __RPC__in_ecount_full(dwLength) RILOPERATORNAMES *pOperatorList, + /* [in] */ DWORD dwLength); + + END_INTERFACE + } IOemUiccAppExVtbl; + + interface IOemUiccAppEx + { + CONST_VTBL struct IOemUiccAppExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemUiccAppEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemUiccAppEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemUiccAppEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemUiccAppEx_GetPreferredOperatorList(This,pResponseHandler) \ + ( (This)->lpVtbl -> GetPreferredOperatorList(This,pResponseHandler) ) + +#define IOemUiccAppEx_SetPreferredOperatorList(This,pResponseHandler,pOperatorList,dwLength) \ + ( (This)->lpVtbl -> SetPreferredOperatorList(This,pResponseHandler,pOperatorList,dwLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemUiccAppEx_INTERFACE_DEFINED__ */ + + +#ifndef __IOemUiccAppEx2_INTERFACE_DEFINED__ +#define __IOemUiccAppEx2_INTERFACE_DEFINED__ + +/* interface IOemUiccAppEx2 */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemUiccAppEx2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C9772450-A940-4E27-A3EA-AFCC5ECC7556") + IOemUiccAppEx2 : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetNAI( + /* [in] */ __RPC__in_opt IGetNAICompletion *pCallback, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemUiccAppEx2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemUiccAppEx2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemUiccAppEx2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemUiccAppEx2 * This); + + DECLSPEC_XFGVIRT(IOemUiccAppEx2, GetNAI) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetNAI )( + __RPC__in IOemUiccAppEx2 * This, + /* [in] */ __RPC__in_opt IGetNAICompletion *pCallback, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IOemUiccAppEx2Vtbl; + + interface IOemUiccAppEx2 + { + CONST_VTBL struct IOemUiccAppEx2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemUiccAppEx2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemUiccAppEx2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemUiccAppEx2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemUiccAppEx2_GetNAI(This,pCallback,context) \ + ( (This)->lpVtbl -> GetNAI(This,pCallback,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemUiccAppEx2_INTERFACE_DEFINED__ */ + + +#ifndef __IOem3GPPSupServices_INTERFACE_DEFINED__ +#define __IOem3GPPSupServices_INTERFACE_DEFINED__ + +/* interface IOem3GPPSupServices */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOem3GPPSupServices; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("138820C5-299D-4d1d-80B9-1664A17B1B41") + IOem3GPPSupServices : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCallForwardingSettings( + /* [in] */ __RPC__in_opt IGetCallForwardingCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ RILCALLFORWARDINGSETTINGSREASON reason, + /* [in] */ BOOL allClasses, + /* [in] */ DWORD infoClasses) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCallForwardingStatus( + /* [in] */ __RPC__in_opt ISimpleModemCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ RILCALLFORWARDINGSETTINGSREASON dwReason, + /* [in] */ BOOL fAllClasses, + /* [in] */ DWORD dwInfoClasses, + /* [in] */ RILSERVICESETTINGSSTATUS dwStatus) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddCallForwarding( + /* [in] */ __RPC__in_opt ISimpleModemCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ RILCALLFORWARDINGSETTINGSREASON dwReason, + /* [in] */ __RPC__in const RILCALLFORWARDINGSETTINGS *lpSettings) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RemoveCallForwarding( + /* [in] */ __RPC__in_opt ISimpleModemCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ RILCALLFORWARDINGSETTINGSREASON dwReason, + /* [in] */ DWORD dwInfoClasses) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCallWaitingSettings( + /* [in] */ __RPC__in_opt ICallWaitingSettingsCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ BOOL fAllClasses, + /* [in] */ DWORD dwInfoClasses) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCallWaitingSettings( + /* [in] */ __RPC__in_opt ISimpleModemCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ BOOL fAllClasses, + /* [in] */ DWORD dwInfoClasses, + /* [in] */ RILSERVICESETTINGSSTATUS dwStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOem3GPPSupServicesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOem3GPPSupServices * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOem3GPPSupServices * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOem3GPPSupServices * This); + + DECLSPEC_XFGVIRT(IOem3GPPSupServices, GetCallForwardingSettings) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCallForwardingSettings )( + __RPC__in IOem3GPPSupServices * This, + /* [in] */ __RPC__in_opt IGetCallForwardingCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ RILCALLFORWARDINGSETTINGSREASON reason, + /* [in] */ BOOL allClasses, + /* [in] */ DWORD infoClasses); + + DECLSPEC_XFGVIRT(IOem3GPPSupServices, SetCallForwardingStatus) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCallForwardingStatus )( + __RPC__in IOem3GPPSupServices * This, + /* [in] */ __RPC__in_opt ISimpleModemCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ RILCALLFORWARDINGSETTINGSREASON dwReason, + /* [in] */ BOOL fAllClasses, + /* [in] */ DWORD dwInfoClasses, + /* [in] */ RILSERVICESETTINGSSTATUS dwStatus); + + DECLSPEC_XFGVIRT(IOem3GPPSupServices, AddCallForwarding) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddCallForwarding )( + __RPC__in IOem3GPPSupServices * This, + /* [in] */ __RPC__in_opt ISimpleModemCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ RILCALLFORWARDINGSETTINGSREASON dwReason, + /* [in] */ __RPC__in const RILCALLFORWARDINGSETTINGS *lpSettings); + + DECLSPEC_XFGVIRT(IOem3GPPSupServices, RemoveCallForwarding) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveCallForwarding )( + __RPC__in IOem3GPPSupServices * This, + /* [in] */ __RPC__in_opt ISimpleModemCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ RILCALLFORWARDINGSETTINGSREASON dwReason, + /* [in] */ DWORD dwInfoClasses); + + DECLSPEC_XFGVIRT(IOem3GPPSupServices, GetCallWaitingSettings) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCallWaitingSettings )( + __RPC__in IOem3GPPSupServices * This, + /* [in] */ __RPC__in_opt ICallWaitingSettingsCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ BOOL fAllClasses, + /* [in] */ DWORD dwInfoClasses); + + DECLSPEC_XFGVIRT(IOem3GPPSupServices, SetCallWaitingSettings) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCallWaitingSettings )( + __RPC__in IOem3GPPSupServices * This, + /* [in] */ __RPC__in_opt ISimpleModemCompletion *pCallback, + /* [in] */ INT_PTR context, + /* [in] */ BOOL fAllClasses, + /* [in] */ DWORD dwInfoClasses, + /* [in] */ RILSERVICESETTINGSSTATUS dwStatus); + + END_INTERFACE + } IOem3GPPSupServicesVtbl; + + interface IOem3GPPSupServices + { + CONST_VTBL struct IOem3GPPSupServicesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOem3GPPSupServices_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOem3GPPSupServices_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOem3GPPSupServices_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOem3GPPSupServices_GetCallForwardingSettings(This,pCallback,context,reason,allClasses,infoClasses) \ + ( (This)->lpVtbl -> GetCallForwardingSettings(This,pCallback,context,reason,allClasses,infoClasses) ) + +#define IOem3GPPSupServices_SetCallForwardingStatus(This,pCallback,context,dwReason,fAllClasses,dwInfoClasses,dwStatus) \ + ( (This)->lpVtbl -> SetCallForwardingStatus(This,pCallback,context,dwReason,fAllClasses,dwInfoClasses,dwStatus) ) + +#define IOem3GPPSupServices_AddCallForwarding(This,pCallback,context,dwReason,lpSettings) \ + ( (This)->lpVtbl -> AddCallForwarding(This,pCallback,context,dwReason,lpSettings) ) + +#define IOem3GPPSupServices_RemoveCallForwarding(This,pCallback,context,dwReason,dwInfoClasses) \ + ( (This)->lpVtbl -> RemoveCallForwarding(This,pCallback,context,dwReason,dwInfoClasses) ) + +#define IOem3GPPSupServices_GetCallWaitingSettings(This,pCallback,context,fAllClasses,dwInfoClasses) \ + ( (This)->lpVtbl -> GetCallWaitingSettings(This,pCallback,context,fAllClasses,dwInfoClasses) ) + +#define IOem3GPPSupServices_SetCallWaitingSettings(This,pCallback,context,fAllClasses,dwInfoClasses,dwStatus) \ + ( (This)->lpVtbl -> SetCallWaitingSettings(This,pCallback,context,fAllClasses,dwInfoClasses,dwStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOem3GPPSupServices_INTERFACE_DEFINED__ */ + + +#ifndef __IOemCellularModemExistenceChange_INTERFACE_DEFINED__ +#define __IOemCellularModemExistenceChange_INTERFACE_DEFINED__ + +/* interface IOemCellularModemExistenceChange */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemCellularModemExistenceChange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A2CBC3C1-79D5-4F9D-A6F9-FDE497848EC1") + IOemCellularModemExistenceChange : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemModemAdded( + /* [in] */ __RPC__in_opt IOemCellularModem *pModem) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemModemRemoved( + /* [in] */ __RPC__in_opt IOemCellularModem *pModem) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemModemExistenceDone( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemCellularModemExistenceChangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemCellularModemExistenceChange * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemCellularModemExistenceChange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemCellularModemExistenceChange * This); + + DECLSPEC_XFGVIRT(IOemCellularModemExistenceChange, OnOemModemAdded) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemModemAdded )( + __RPC__in IOemCellularModemExistenceChange * This, + /* [in] */ __RPC__in_opt IOemCellularModem *pModem); + + DECLSPEC_XFGVIRT(IOemCellularModemExistenceChange, OnOemModemRemoved) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemModemRemoved )( + __RPC__in IOemCellularModemExistenceChange * This, + /* [in] */ __RPC__in_opt IOemCellularModem *pModem); + + DECLSPEC_XFGVIRT(IOemCellularModemExistenceChange, OnOemModemExistenceDone) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemModemExistenceDone )( + __RPC__in IOemCellularModemExistenceChange * This); + + END_INTERFACE + } IOemCellularModemExistenceChangeVtbl; + + interface IOemCellularModemExistenceChange + { + CONST_VTBL struct IOemCellularModemExistenceChangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemCellularModemExistenceChange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemCellularModemExistenceChange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemCellularModemExistenceChange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemCellularModemExistenceChange_OnOemModemAdded(This,pModem) \ + ( (This)->lpVtbl -> OnOemModemAdded(This,pModem) ) + +#define IOemCellularModemExistenceChange_OnOemModemRemoved(This,pModem) \ + ( (This)->lpVtbl -> OnOemModemRemoved(This,pModem) ) + +#define IOemCellularModemExistenceChange_OnOemModemExistenceDone(This) \ + ( (This)->lpVtbl -> OnOemModemExistenceDone(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemCellularModemExistenceChange_INTERFACE_DEFINED__ */ + + +#ifndef __IOemCellularCanAvailabilityChange_INTERFACE_DEFINED__ +#define __IOemCellularCanAvailabilityChange_INTERFACE_DEFINED__ + +/* interface IOemCellularCanAvailabilityChange */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemCellularCanAvailabilityChange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CF34841C-A795-4EC6-B1BC-C3744A2D6DCA") + IOemCellularCanAvailabilityChange : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemCanAdded( + /* [in] */ __RPC__in_opt IOemCan *pCan) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemCanRemoved( + /* [in] */ __RPC__in_opt IOemCan *pCan) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemCanDone( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemCellularCanAvailabilityChangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemCellularCanAvailabilityChange * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemCellularCanAvailabilityChange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemCellularCanAvailabilityChange * This); + + DECLSPEC_XFGVIRT(IOemCellularCanAvailabilityChange, OnOemCanAdded) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemCanAdded )( + __RPC__in IOemCellularCanAvailabilityChange * This, + /* [in] */ __RPC__in_opt IOemCan *pCan); + + DECLSPEC_XFGVIRT(IOemCellularCanAvailabilityChange, OnOemCanRemoved) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemCanRemoved )( + __RPC__in IOemCellularCanAvailabilityChange * This, + /* [in] */ __RPC__in_opt IOemCan *pCan); + + DECLSPEC_XFGVIRT(IOemCellularCanAvailabilityChange, OnOemCanDone) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemCanDone )( + __RPC__in IOemCellularCanAvailabilityChange * This); + + END_INTERFACE + } IOemCellularCanAvailabilityChangeVtbl; + + interface IOemCellularCanAvailabilityChange + { + CONST_VTBL struct IOemCellularCanAvailabilityChangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemCellularCanAvailabilityChange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemCellularCanAvailabilityChange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemCellularCanAvailabilityChange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemCellularCanAvailabilityChange_OnOemCanAdded(This,pCan) \ + ( (This)->lpVtbl -> OnOemCanAdded(This,pCan) ) + +#define IOemCellularCanAvailabilityChange_OnOemCanRemoved(This,pCan) \ + ( (This)->lpVtbl -> OnOemCanRemoved(This,pCan) ) + +#define IOemCellularCanAvailabilityChange_OnOemCanDone(This) \ + ( (This)->lpVtbl -> OnOemCanDone(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemCellularCanAvailabilityChange_INTERFACE_DEFINED__ */ + + +#ifndef __IOemSlotChange_INTERFACE_DEFINED__ +#define __IOemSlotChange_INTERFACE_DEFINED__ + +/* interface IOemSlotChange */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemSlotChange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("20C4AF87-BC47-4150-BA97-4F53FFD95E48") + IOemSlotChange : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemSlotAdded( + /* [in] */ __RPC__in_opt IOemSlot *pSlot, + /* [in] */ __RPC__in_opt IOemCellularModem *pCellularModem) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemSlotRemoved( + /* [in] */ __RPC__in_opt IOemSlot *pSlot, + /* [in] */ __RPC__in_opt IOemCellularModem *pCellularModem) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemSlotExistenceDone( + /* [in] */ __RPC__in_opt IOemCellularModem *pCellularModem) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemSlotChangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemSlotChange * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemSlotChange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemSlotChange * This); + + DECLSPEC_XFGVIRT(IOemSlotChange, OnOemSlotAdded) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemSlotAdded )( + __RPC__in IOemSlotChange * This, + /* [in] */ __RPC__in_opt IOemSlot *pSlot, + /* [in] */ __RPC__in_opt IOemCellularModem *pCellularModem); + + DECLSPEC_XFGVIRT(IOemSlotChange, OnOemSlotRemoved) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemSlotRemoved )( + __RPC__in IOemSlotChange * This, + /* [in] */ __RPC__in_opt IOemSlot *pSlot, + /* [in] */ __RPC__in_opt IOemCellularModem *pCellularModem); + + DECLSPEC_XFGVIRT(IOemSlotChange, OnOemSlotExistenceDone) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemSlotExistenceDone )( + __RPC__in IOemSlotChange * This, + /* [in] */ __RPC__in_opt IOemCellularModem *pCellularModem); + + END_INTERFACE + } IOemSlotChangeVtbl; + + interface IOemSlotChange + { + CONST_VTBL struct IOemSlotChangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemSlotChange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemSlotChange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemSlotChange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemSlotChange_OnOemSlotAdded(This,pSlot,pCellularModem) \ + ( (This)->lpVtbl -> OnOemSlotAdded(This,pSlot,pCellularModem) ) + +#define IOemSlotChange_OnOemSlotRemoved(This,pSlot,pCellularModem) \ + ( (This)->lpVtbl -> OnOemSlotRemoved(This,pSlot,pCellularModem) ) + +#define IOemSlotChange_OnOemSlotExistenceDone(This,pCellularModem) \ + ( (This)->lpVtbl -> OnOemSlotExistenceDone(This,pCellularModem) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemSlotChange_INTERFACE_DEFINED__ */ + + +#ifndef __IOemCanRegistrationStateChange_INTERFACE_DEFINED__ +#define __IOemCanRegistrationStateChange_INTERFACE_DEFINED__ + +/* interface IOemCanRegistrationStateChange */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemCanRegistrationStateChange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B8E5DF58-2329-400C-93C5-FFB951BF3415") + IOemCanRegistrationStateChange : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemRegistrationStatusChanged( + /* [size_is][in] */ __RPC__in_ecount_full(cStatus) IOemRegistrationStatus **status, + /* [in] */ DWORD cStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemCanRegistrationStateChangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemCanRegistrationStateChange * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemCanRegistrationStateChange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemCanRegistrationStateChange * This); + + DECLSPEC_XFGVIRT(IOemCanRegistrationStateChange, OnOemRegistrationStatusChanged) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemRegistrationStatusChanged )( + __RPC__in IOemCanRegistrationStateChange * This, + /* [size_is][in] */ __RPC__in_ecount_full(cStatus) IOemRegistrationStatus **status, + /* [in] */ DWORD cStatus); + + END_INTERFACE + } IOemCanRegistrationStateChangeVtbl; + + interface IOemCanRegistrationStateChange + { + CONST_VTBL struct IOemCanRegistrationStateChangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemCanRegistrationStateChange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemCanRegistrationStateChange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemCanRegistrationStateChange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemCanRegistrationStateChange_OnOemRegistrationStatusChanged(This,status,cStatus) \ + ( (This)->lpVtbl -> OnOemRegistrationStatusChanged(This,status,cStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemCanRegistrationStateChange_INTERFACE_DEFINED__ */ + + +#ifndef __IOemSlotStateChange_INTERFACE_DEFINED__ +#define __IOemSlotStateChange_INTERFACE_DEFINED__ + +/* interface IOemSlotStateChange */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemSlotStateChange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("59BB79ED-5435-456C-A8D1-6680D56AAD1E") + IOemSlotStateChange : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemSlotStateChanged( + /* [in] */ RILUICCSLOTSTATE currentSlotState, + /* [in] */ __RPC__in_opt IOemSlot *pSlot) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemUiccAdded( + /* [in] */ __RPC__in_opt IOemUicc *pUicc, + /* [in] */ __RPC__in_opt IOemSlot *pSlot) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemUiccRemoved( + /* [in] */ __RPC__in_opt IOemUicc *pUicc, + /* [in] */ __RPC__in_opt IOemSlot *pSlot) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemFirstSnapshotDone( + /* [in] */ __RPC__in_opt IOemSlot *pSlot) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemSlotStateChangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemSlotStateChange * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemSlotStateChange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemSlotStateChange * This); + + DECLSPEC_XFGVIRT(IOemSlotStateChange, OnOemSlotStateChanged) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemSlotStateChanged )( + __RPC__in IOemSlotStateChange * This, + /* [in] */ RILUICCSLOTSTATE currentSlotState, + /* [in] */ __RPC__in_opt IOemSlot *pSlot); + + DECLSPEC_XFGVIRT(IOemSlotStateChange, OnOemUiccAdded) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemUiccAdded )( + __RPC__in IOemSlotStateChange * This, + /* [in] */ __RPC__in_opt IOemUicc *pUicc, + /* [in] */ __RPC__in_opt IOemSlot *pSlot); + + DECLSPEC_XFGVIRT(IOemSlotStateChange, OnOemUiccRemoved) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemUiccRemoved )( + __RPC__in IOemSlotStateChange * This, + /* [in] */ __RPC__in_opt IOemUicc *pUicc, + /* [in] */ __RPC__in_opt IOemSlot *pSlot); + + DECLSPEC_XFGVIRT(IOemSlotStateChange, OnOemFirstSnapshotDone) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemFirstSnapshotDone )( + __RPC__in IOemSlotStateChange * This, + /* [in] */ __RPC__in_opt IOemSlot *pSlot); + + END_INTERFACE + } IOemSlotStateChangeVtbl; + + interface IOemSlotStateChange + { + CONST_VTBL struct IOemSlotStateChangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemSlotStateChange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemSlotStateChange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemSlotStateChange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemSlotStateChange_OnOemSlotStateChanged(This,currentSlotState,pSlot) \ + ( (This)->lpVtbl -> OnOemSlotStateChanged(This,currentSlotState,pSlot) ) + +#define IOemSlotStateChange_OnOemUiccAdded(This,pUicc,pSlot) \ + ( (This)->lpVtbl -> OnOemUiccAdded(This,pUicc,pSlot) ) + +#define IOemSlotStateChange_OnOemUiccRemoved(This,pUicc,pSlot) \ + ( (This)->lpVtbl -> OnOemUiccRemoved(This,pUicc,pSlot) ) + +#define IOemSlotStateChange_OnOemFirstSnapshotDone(This,pSlot) \ + ( (This)->lpVtbl -> OnOemFirstSnapshotDone(This,pSlot) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemSlotStateChange_INTERFACE_DEFINED__ */ + + +#ifndef __IOemUiccChange_INTERFACE_DEFINED__ +#define __IOemUiccChange_INTERFACE_DEFINED__ + +/* interface IOemUiccChange */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemUiccChange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("302739D6-299D-4B82-A12E-EF930FD8BD16") + IOemUiccChange : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UiccIccId( + /* [in] */ __RPC__in BYTE *iccID, + /* [in] */ DWORD length, + /* [in] */ __RPC__in_opt IOemUicc *pUicc) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemUiccAppAdded( + /* [in] */ __RPC__in_opt IOemUiccApp *uiccApp, + /* [in] */ __RPC__in_opt IOemUicc *pUicc) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemUiccAppRemoved( + /* [in] */ __RPC__in_opt IOemUiccApp *uiccApp, + /* [in] */ __RPC__in_opt IOemUicc *pUicc) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemUiccAppFetchDone( + /* [in] */ __RPC__in_opt IOemUicc *pUicc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemUiccChangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemUiccChange * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemUiccChange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemUiccChange * This); + + DECLSPEC_XFGVIRT(IOemUiccChange, UiccIccId) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UiccIccId )( + __RPC__in IOemUiccChange * This, + /* [in] */ __RPC__in BYTE *iccID, + /* [in] */ DWORD length, + /* [in] */ __RPC__in_opt IOemUicc *pUicc); + + DECLSPEC_XFGVIRT(IOemUiccChange, OnOemUiccAppAdded) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemUiccAppAdded )( + __RPC__in IOemUiccChange * This, + /* [in] */ __RPC__in_opt IOemUiccApp *uiccApp, + /* [in] */ __RPC__in_opt IOemUicc *pUicc); + + DECLSPEC_XFGVIRT(IOemUiccChange, OnOemUiccAppRemoved) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemUiccAppRemoved )( + __RPC__in IOemUiccChange * This, + /* [in] */ __RPC__in_opt IOemUiccApp *uiccApp, + /* [in] */ __RPC__in_opt IOemUicc *pUicc); + + DECLSPEC_XFGVIRT(IOemUiccChange, OnOemUiccAppFetchDone) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemUiccAppFetchDone )( + __RPC__in IOemUiccChange * This, + /* [in] */ __RPC__in_opt IOemUicc *pUicc); + + END_INTERFACE + } IOemUiccChangeVtbl; + + interface IOemUiccChange + { + CONST_VTBL struct IOemUiccChangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemUiccChange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemUiccChange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemUiccChange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemUiccChange_UiccIccId(This,iccID,length,pUicc) \ + ( (This)->lpVtbl -> UiccIccId(This,iccID,length,pUicc) ) + +#define IOemUiccChange_OnOemUiccAppAdded(This,uiccApp,pUicc) \ + ( (This)->lpVtbl -> OnOemUiccAppAdded(This,uiccApp,pUicc) ) + +#define IOemUiccChange_OnOemUiccAppRemoved(This,uiccApp,pUicc) \ + ( (This)->lpVtbl -> OnOemUiccAppRemoved(This,uiccApp,pUicc) ) + +#define IOemUiccChange_OnOemUiccAppFetchDone(This,pUicc) \ + ( (This)->lpVtbl -> OnOemUiccAppFetchDone(This,pUicc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemUiccChange_INTERFACE_DEFINED__ */ + + +#ifndef __IOemRegistrationStatus_INTERFACE_DEFINED__ +#define __IOemRegistrationStatus_INTERFACE_DEFINED__ + +/* interface IOemRegistrationStatus */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemRegistrationStatus; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F8C3B6D1-4629-414B-8E38-DD396FEBE730") + IOemRegistrationStatus : public IUnknown + { + public: + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_Subscription( + /* [retval][out] */ __RPC__deref_out_opt IOemUiccApp **ret) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_SystemType( + /* [retval][out] */ __RPC__out enum RILSYSTEMTYPE *systemType) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RejectReason( + /* [retval][out] */ __RPC__out DWORD *reason) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_OperatorName( + /* [retval][out] */ __RPC__out struct RILOPERATORNAMES *name) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_RegistrationStatus( + /* [retval][out] */ __RPC__out enum RILREGSTAT *status) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_NetworkCode( + /* [retval][out] */ __RPC__out struct RILNETWORKCODE *pNetworkCode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemRegistrationStatusVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemRegistrationStatus * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemRegistrationStatus * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemRegistrationStatus * This); + + DECLSPEC_XFGVIRT(IOemRegistrationStatus, get_Subscription) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subscription )( + __RPC__in IOemRegistrationStatus * This, + /* [retval][out] */ __RPC__deref_out_opt IOemUiccApp **ret); + + DECLSPEC_XFGVIRT(IOemRegistrationStatus, get_SystemType) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SystemType )( + __RPC__in IOemRegistrationStatus * This, + /* [retval][out] */ __RPC__out enum RILSYSTEMTYPE *systemType); + + DECLSPEC_XFGVIRT(IOemRegistrationStatus, get_RejectReason) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RejectReason )( + __RPC__in IOemRegistrationStatus * This, + /* [retval][out] */ __RPC__out DWORD *reason); + + DECLSPEC_XFGVIRT(IOemRegistrationStatus, get_OperatorName) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OperatorName )( + __RPC__in IOemRegistrationStatus * This, + /* [retval][out] */ __RPC__out struct RILOPERATORNAMES *name); + + DECLSPEC_XFGVIRT(IOemRegistrationStatus, get_RegistrationStatus) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RegistrationStatus )( + __RPC__in IOemRegistrationStatus * This, + /* [retval][out] */ __RPC__out enum RILREGSTAT *status); + + DECLSPEC_XFGVIRT(IOemRegistrationStatus, get_NetworkCode) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkCode )( + __RPC__in IOemRegistrationStatus * This, + /* [retval][out] */ __RPC__out struct RILNETWORKCODE *pNetworkCode); + + END_INTERFACE + } IOemRegistrationStatusVtbl; + + interface IOemRegistrationStatus + { + CONST_VTBL struct IOemRegistrationStatusVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemRegistrationStatus_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemRegistrationStatus_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemRegistrationStatus_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemRegistrationStatus_get_Subscription(This,ret) \ + ( (This)->lpVtbl -> get_Subscription(This,ret) ) + +#define IOemRegistrationStatus_get_SystemType(This,systemType) \ + ( (This)->lpVtbl -> get_SystemType(This,systemType) ) + +#define IOemRegistrationStatus_get_RejectReason(This,reason) \ + ( (This)->lpVtbl -> get_RejectReason(This,reason) ) + +#define IOemRegistrationStatus_get_OperatorName(This,name) \ + ( (This)->lpVtbl -> get_OperatorName(This,name) ) + +#define IOemRegistrationStatus_get_RegistrationStatus(This,status) \ + ( (This)->lpVtbl -> get_RegistrationStatus(This,status) ) + +#define IOemRegistrationStatus_get_NetworkCode(This,pNetworkCode) \ + ( (This)->lpVtbl -> get_NetworkCode(This,pNetworkCode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemRegistrationStatus_INTERFACE_DEFINED__ */ + + +#ifndef __IPowerStateChange_INTERFACE_DEFINED__ +#define __IPowerStateChange_INTERFACE_DEFINED__ + +/* interface IPowerStateChange */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IPowerStateChange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0e7d938e-d7fb-49a4-8cac-4db70d952c03") + IPowerStateChange : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnPowerStateChange( + /* [in] */ enum MODEMPOWERSTATE state, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPowerStateChangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPowerStateChange * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPowerStateChange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPowerStateChange * This); + + DECLSPEC_XFGVIRT(IPowerStateChange, OnPowerStateChange) + HRESULT ( STDMETHODCALLTYPE *OnPowerStateChange )( + __RPC__in IPowerStateChange * This, + /* [in] */ enum MODEMPOWERSTATE state, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IPowerStateChangeVtbl; + + interface IPowerStateChange + { + CONST_VTBL struct IPowerStateChangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPowerStateChange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPowerStateChange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPowerStateChange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPowerStateChange_OnPowerStateChange(This,state,context) \ + ( (This)->lpVtbl -> OnPowerStateChange(This,state,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPowerStateChange_INTERFACE_DEFINED__ */ + + +#ifndef __IModemOpaqueCommandCompletion_INTERFACE_DEFINED__ +#define __IModemOpaqueCommandCompletion_INTERFACE_DEFINED__ + +/* interface IModemOpaqueCommandCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IModemOpaqueCommandCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C9B4415B-0643-4855-BB04-A5354F038E62") + IModemOpaqueCommandCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnModemOpaqueCommandCompletion( + /* [in] */ HRESULT result, + /* [size_is][in] */ __RPC__in_ecount_full(cbSize) BYTE *pOpaqueResponse, + /* [in] */ DWORD cbSize, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IModemOpaqueCommandCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IModemOpaqueCommandCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IModemOpaqueCommandCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IModemOpaqueCommandCompletion * This); + + DECLSPEC_XFGVIRT(IModemOpaqueCommandCompletion, OnModemOpaqueCommandCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnModemOpaqueCommandCompletion )( + __RPC__in IModemOpaqueCommandCompletion * This, + /* [in] */ HRESULT result, + /* [size_is][in] */ __RPC__in_ecount_full(cbSize) BYTE *pOpaqueResponse, + /* [in] */ DWORD cbSize, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IModemOpaqueCommandCompletionVtbl; + + interface IModemOpaqueCommandCompletion + { + CONST_VTBL struct IModemOpaqueCommandCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IModemOpaqueCommandCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IModemOpaqueCommandCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IModemOpaqueCommandCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IModemOpaqueCommandCompletion_OnModemOpaqueCommandCompletion(This,result,pOpaqueResponse,cbSize,context) \ + ( (This)->lpVtbl -> OnModemOpaqueCommandCompletion(This,result,pOpaqueResponse,cbSize,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IModemOpaqueCommandCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IOpaqueModemNotifications_INTERFACE_DEFINED__ +#define __IOpaqueModemNotifications_INTERFACE_DEFINED__ + +/* interface IOpaqueModemNotifications */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOpaqueModemNotifications; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("85A26F4E-CD62-4B6E-90A1-0D5E2D6EE3FF") + IOpaqueModemNotifications : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOpaqueModemNotifications( + /* [in] */ DWORD dwCode, + /* [in] */ __RPC__in BYTE *pOpaqueNotification, + /* [in] */ DWORD cbSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOpaqueModemNotificationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOpaqueModemNotifications * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOpaqueModemNotifications * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOpaqueModemNotifications * This); + + DECLSPEC_XFGVIRT(IOpaqueModemNotifications, OnOpaqueModemNotifications) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOpaqueModemNotifications )( + __RPC__in IOpaqueModemNotifications * This, + /* [in] */ DWORD dwCode, + /* [in] */ __RPC__in BYTE *pOpaqueNotification, + /* [in] */ DWORD cbSize); + + END_INTERFACE + } IOpaqueModemNotificationsVtbl; + + interface IOpaqueModemNotifications + { + CONST_VTBL struct IOpaqueModemNotificationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOpaqueModemNotifications_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOpaqueModemNotifications_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOpaqueModemNotifications_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOpaqueModemNotifications_OnOpaqueModemNotifications(This,dwCode,pOpaqueNotification,cbSize) \ + ( (This)->lpVtbl -> OnOpaqueModemNotifications(This,dwCode,pOpaqueNotification,cbSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOpaqueModemNotifications_INTERFACE_DEFINED__ */ + + +#ifndef __ISetRFStateCompletion_INTERFACE_DEFINED__ +#define __ISetRFStateCompletion_INTERFACE_DEFINED__ + +/* interface ISetRFStateCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_ISetRFStateCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("340B4A01-07CE-4334-B367-05C87085CBB0") + ISetRFStateCompletion : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnSetRFStateCompletion( + /* [in] */ HRESULT result, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISetRFStateCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISetRFStateCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISetRFStateCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISetRFStateCompletion * This); + + DECLSPEC_XFGVIRT(ISetRFStateCompletion, OnSetRFStateCompletion) + HRESULT ( STDMETHODCALLTYPE *OnSetRFStateCompletion )( + __RPC__in ISetRFStateCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ INT_PTR context); + + END_INTERFACE + } ISetRFStateCompletionVtbl; + + interface ISetRFStateCompletion + { + CONST_VTBL struct ISetRFStateCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISetRFStateCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISetRFStateCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISetRFStateCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISetRFStateCompletion_OnSetRFStateCompletion(This,result,context) \ + ( (This)->lpVtbl -> OnSetRFStateCompletion(This,result,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISetRFStateCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IGetRFStateCompletion_INTERFACE_DEFINED__ +#define __IGetRFStateCompletion_INTERFACE_DEFINED__ + +/* interface IGetRFStateCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IGetRFStateCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4255DD18-D829-4C04-849A-624727B990A2") + IGetRFStateCompletion : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnGetRFStateCompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in DWORD *pRFState, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetRFStateCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetRFStateCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetRFStateCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetRFStateCompletion * This); + + DECLSPEC_XFGVIRT(IGetRFStateCompletion, OnGetRFStateCompletion) + HRESULT ( STDMETHODCALLTYPE *OnGetRFStateCompletion )( + __RPC__in IGetRFStateCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in DWORD *pRFState, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IGetRFStateCompletionVtbl; + + interface IGetRFStateCompletion + { + CONST_VTBL struct IGetRFStateCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetRFStateCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetRFStateCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetRFStateCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetRFStateCompletion_OnGetRFStateCompletion(This,result,pRFState,context) \ + ( (This)->lpVtbl -> OnGetRFStateCompletion(This,result,pRFState,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetRFStateCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IGetRFStateExCompletion_INTERFACE_DEFINED__ +#define __IGetRFStateExCompletion_INTERFACE_DEFINED__ + +/* interface IGetRFStateExCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IGetRFStateExCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("74e511fd-f17b-48fc-bd56-93af42e71031") + IGetRFStateExCompletion : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnGetRFStateCompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in LPRILRFSTATE lpRFState, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetRFStateExCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetRFStateExCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetRFStateExCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetRFStateExCompletion * This); + + DECLSPEC_XFGVIRT(IGetRFStateExCompletion, OnGetRFStateCompletion) + HRESULT ( STDMETHODCALLTYPE *OnGetRFStateCompletion )( + __RPC__in IGetRFStateExCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in LPRILRFSTATE lpRFState, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IGetRFStateExCompletionVtbl; + + interface IGetRFStateExCompletion + { + CONST_VTBL struct IGetRFStateExCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetRFStateExCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetRFStateExCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetRFStateExCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetRFStateExCompletion_OnGetRFStateCompletion(This,result,lpRFState,context) \ + ( (This)->lpVtbl -> OnGetRFStateCompletion(This,result,lpRFState,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetRFStateExCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __ICanInfoCompletion_INTERFACE_DEFINED__ +#define __ICanInfoCompletion_INTERFACE_DEFINED__ + +/* interface ICanInfoCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_ICanInfoCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b5bb6a5e-8d3f-4203-b58b-26c3d4e8eedc") + ICanInfoCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnGetInfoCompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in const WCHAR *value, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICanInfoCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICanInfoCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICanInfoCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICanInfoCompletion * This); + + DECLSPEC_XFGVIRT(ICanInfoCompletion, OnGetInfoCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnGetInfoCompletion )( + __RPC__in ICanInfoCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in const WCHAR *value, + /* [in] */ INT_PTR context); + + END_INTERFACE + } ICanInfoCompletionVtbl; + + interface ICanInfoCompletion + { + CONST_VTBL struct ICanInfoCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICanInfoCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICanInfoCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICanInfoCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICanInfoCompletion_OnGetInfoCompletion(This,result,value,context) \ + ( (This)->lpVtbl -> OnGetInfoCompletion(This,result,value,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICanInfoCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IPositionInfoCompletion_INTERFACE_DEFINED__ +#define __IPositionInfoCompletion_INTERFACE_DEFINED__ + +/* interface IPositionInfoCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IPositionInfoCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("03569923-a28f-47bd-9315-38d8fb11717d") + IPositionInfoCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnGetPositionInfoCompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in LPRILPOSITIONINFO lpPositionInfo, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPositionInfoCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPositionInfoCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPositionInfoCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPositionInfoCompletion * This); + + DECLSPEC_XFGVIRT(IPositionInfoCompletion, OnGetPositionInfoCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnGetPositionInfoCompletion )( + __RPC__in IPositionInfoCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in LPRILPOSITIONINFO lpPositionInfo, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IPositionInfoCompletionVtbl; + + interface IPositionInfoCompletion + { + CONST_VTBL struct IPositionInfoCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPositionInfoCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPositionInfoCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPositionInfoCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPositionInfoCompletion_OnGetPositionInfoCompletion(This,result,lpPositionInfo,context) \ + ( (This)->lpVtbl -> OnGetPositionInfoCompletion(This,result,lpPositionInfo,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPositionInfoCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IPinLockStateCompletion_INTERFACE_DEFINED__ +#define __IPinLockStateCompletion_INTERFACE_DEFINED__ + +/* interface IPinLockStateCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IPinLockStateCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3b2481a7-aee9-462f-bd38-31f15c15ff88") + IPinLockStateCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnGetPinLockStateCompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in LPRILUICCLOCKSTATE pUICCLockState, + /* [in] */ DWORD length, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPinLockStateCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPinLockStateCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPinLockStateCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPinLockStateCompletion * This); + + DECLSPEC_XFGVIRT(IPinLockStateCompletion, OnGetPinLockStateCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnGetPinLockStateCompletion )( + __RPC__in IPinLockStateCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in LPRILUICCLOCKSTATE pUICCLockState, + /* [in] */ DWORD length, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IPinLockStateCompletionVtbl; + + interface IPinLockStateCompletion + { + CONST_VTBL struct IPinLockStateCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPinLockStateCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPinLockStateCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPinLockStateCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPinLockStateCompletion_OnGetPinLockStateCompletion(This,result,pUICCLockState,length,context) \ + ( (This)->lpVtbl -> OnGetPinLockStateCompletion(This,result,pUICCLockState,length,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPinLockStateCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IGetRecordStatusCompletion_INTERFACE_DEFINED__ +#define __IGetRecordStatusCompletion_INTERFACE_DEFINED__ + +/* interface IGetRecordStatusCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IGetRecordStatusCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2d033fa3-ae5c-495c-bcf5-459ffa07036a") + IGetRecordStatusCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnGetRecordStatusCompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in LPRILUICCRECORDSTATUS recordStatus, + /* [in] */ DWORD length, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetRecordStatusCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetRecordStatusCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetRecordStatusCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetRecordStatusCompletion * This); + + DECLSPEC_XFGVIRT(IGetRecordStatusCompletion, OnGetRecordStatusCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnGetRecordStatusCompletion )( + __RPC__in IGetRecordStatusCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in LPRILUICCRECORDSTATUS recordStatus, + /* [in] */ DWORD length, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IGetRecordStatusCompletionVtbl; + + interface IGetRecordStatusCompletion + { + CONST_VTBL struct IGetRecordStatusCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetRecordStatusCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetRecordStatusCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetRecordStatusCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetRecordStatusCompletion_OnGetRecordStatusCompletion(This,result,recordStatus,length,context) \ + ( (This)->lpVtbl -> OnGetRecordStatusCompletion(This,result,recordStatus,length,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetRecordStatusCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IReadRecordCompletion_INTERFACE_DEFINED__ +#define __IReadRecordCompletion_INTERFACE_DEFINED__ + +/* interface IReadRecordCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IReadRecordCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5a8c7c5f-aace-47b8-b38b-41785a9fc090") + IReadRecordCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnReadRecordCompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in BYTE *record, + /* [in] */ DWORD cbSize, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IReadRecordCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IReadRecordCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IReadRecordCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IReadRecordCompletion * This); + + DECLSPEC_XFGVIRT(IReadRecordCompletion, OnReadRecordCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnReadRecordCompletion )( + __RPC__in IReadRecordCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in BYTE *record, + /* [in] */ DWORD cbSize, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IReadRecordCompletionVtbl; + + interface IReadRecordCompletion + { + CONST_VTBL struct IReadRecordCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IReadRecordCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IReadRecordCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IReadRecordCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IReadRecordCompletion_OnReadRecordCompletion(This,result,record,cbSize,context) \ + ( (This)->lpVtbl -> OnReadRecordCompletion(This,result,record,cbSize,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IReadRecordCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IWriteRecordCompletion_INTERFACE_DEFINED__ +#define __IWriteRecordCompletion_INTERFACE_DEFINED__ + +/* interface IWriteRecordCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IWriteRecordCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f9b2b7de-3ab4-4af8-bac0-fd9a83113242") + IWriteRecordCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnWriteRecordCompletion( + /* [in] */ HRESULT result, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWriteRecordCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWriteRecordCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWriteRecordCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWriteRecordCompletion * This); + + DECLSPEC_XFGVIRT(IWriteRecordCompletion, OnWriteRecordCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnWriteRecordCompletion )( + __RPC__in IWriteRecordCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IWriteRecordCompletionVtbl; + + interface IWriteRecordCompletion + { + CONST_VTBL struct IWriteRecordCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWriteRecordCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWriteRecordCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWriteRecordCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWriteRecordCompletion_OnWriteRecordCompletion(This,result,context) \ + ( (This)->lpVtbl -> OnWriteRecordCompletion(This,result,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWriteRecordCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IIMSICompletion_INTERFACE_DEFINED__ +#define __IIMSICompletion_INTERFACE_DEFINED__ + +/* interface IIMSICompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IIMSICompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A9342324-DA50-46B2-BA1C-2B1CB60C3817") + IIMSICompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnGetIMSICompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in const LPRILIMSI rilImsi, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIMSICompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIMSICompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIMSICompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIMSICompletion * This); + + DECLSPEC_XFGVIRT(IIMSICompletion, OnGetIMSICompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnGetIMSICompletion )( + __RPC__in IIMSICompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in const LPRILIMSI rilImsi, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IIMSICompletionVtbl; + + interface IIMSICompletion + { + CONST_VTBL struct IIMSICompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIMSICompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIMSICompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIMSICompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIMSICompletion_OnGetIMSICompletion(This,result,rilImsi,context) \ + ( (This)->lpVtbl -> OnGetIMSICompletion(This,result,rilImsi,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIMSICompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IGetSIDNIDCompletion_INTERFACE_DEFINED__ +#define __IGetSIDNIDCompletion_INTERFACE_DEFINED__ + +/* interface IGetSIDNIDCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IGetSIDNIDCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e7d5d35e-a770-4adc-8bb1-a677ea6e89ac") + IGetSIDNIDCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnGetSIDNIDCompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in const LPRILSIDNID rilSidNid, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetSIDNIDCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetSIDNIDCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetSIDNIDCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetSIDNIDCompletion * This); + + DECLSPEC_XFGVIRT(IGetSIDNIDCompletion, OnGetSIDNIDCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnGetSIDNIDCompletion )( + __RPC__in IGetSIDNIDCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in const LPRILSIDNID rilSidNid, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IGetSIDNIDCompletionVtbl; + + interface IGetSIDNIDCompletion + { + CONST_VTBL struct IGetSIDNIDCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetSIDNIDCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetSIDNIDCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetSIDNIDCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetSIDNIDCompletion_OnGetSIDNIDCompletion(This,result,rilSidNid,context) \ + ( (This)->lpVtbl -> OnGetSIDNIDCompletion(This,result,rilSidNid,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetSIDNIDCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IGetNAICompletion_INTERFACE_DEFINED__ +#define __IGetNAICompletion_INTERFACE_DEFINED__ + +/* interface IGetNAICompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IGetNAICompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4AFE7F70-7D1F-45D1-BC93-908161FEBC58") + IGetNAICompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnGetNAICompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in const LPRILNAI rilNai, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetNAICompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetNAICompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetNAICompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetNAICompletion * This); + + DECLSPEC_XFGVIRT(IGetNAICompletion, OnGetNAICompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnGetNAICompletion )( + __RPC__in IGetNAICompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in const LPRILNAI rilNai, + /* [in] */ INT_PTR context); + + END_INTERFACE + } IGetNAICompletionVtbl; + + interface IGetNAICompletion + { + CONST_VTBL struct IGetNAICompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetNAICompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetNAICompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetNAICompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetNAICompletion_OnGetNAICompletion(This,result,rilNai,context) \ + ( (This)->lpVtbl -> OnGetNAICompletion(This,result,rilNai,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetNAICompletion_INTERFACE_DEFINED__ */ + + +#ifndef __ISubscriberNumbersCompletion_INTERFACE_DEFINED__ +#define __ISubscriberNumbersCompletion_INTERFACE_DEFINED__ + +/* interface ISubscriberNumbersCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_ISubscriberNumbersCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("be6d7c2a-ba04-4fcc-a611-d33000643d4f") + ISubscriberNumbersCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnGetSubscriberNumbersCompletion( + /* [in] */ HRESULT result, + /* [in] */ __RPC__in LPRILUICCSUBSCRIBERNUMBERS pSubscriberNumbers, + /* [in] */ DWORD length, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISubscriberNumbersCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISubscriberNumbersCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISubscriberNumbersCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISubscriberNumbersCompletion * This); + + DECLSPEC_XFGVIRT(ISubscriberNumbersCompletion, OnGetSubscriberNumbersCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnGetSubscriberNumbersCompletion )( + __RPC__in ISubscriberNumbersCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ __RPC__in LPRILUICCSUBSCRIBERNUMBERS pSubscriberNumbers, + /* [in] */ DWORD length, + /* [in] */ INT_PTR context); + + END_INTERFACE + } ISubscriberNumbersCompletionVtbl; + + interface ISubscriberNumbersCompletion + { + CONST_VTBL struct ISubscriberNumbersCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISubscriberNumbersCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISubscriberNumbersCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISubscriberNumbersCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISubscriberNumbersCompletion_OnGetSubscriberNumbersCompletion(This,result,pSubscriberNumbers,length,context) \ + ( (This)->lpVtbl -> OnGetSubscriberNumbersCompletion(This,result,pSubscriberNumbers,length,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISubscriberNumbersCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IGetPLMNwAcT_INTERFACE_DEFINED__ +#define __IGetPLMNwAcT_INTERFACE_DEFINED__ + +/* interface IGetPLMNwAcT */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IGetPLMNwAcT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E9BEB716-6ADD-492B-BBEA-B2FE1068A86E") + IGetPLMNwAcT : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnGetPreferredOperatorListCompletion( + /* [in] */ HRESULT result, + /* [size_is][in] */ __RPC__in_ecount_full(dwLength) RILOPERATORNAMES *pOperatorList, + /* [in] */ DWORD dwLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetPLMNwAcTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetPLMNwAcT * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetPLMNwAcT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetPLMNwAcT * This); + + DECLSPEC_XFGVIRT(IGetPLMNwAcT, OnGetPreferredOperatorListCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnGetPreferredOperatorListCompletion )( + __RPC__in IGetPLMNwAcT * This, + /* [in] */ HRESULT result, + /* [size_is][in] */ __RPC__in_ecount_full(dwLength) RILOPERATORNAMES *pOperatorList, + /* [in] */ DWORD dwLength); + + END_INTERFACE + } IGetPLMNwAcTVtbl; + + interface IGetPLMNwAcT + { + CONST_VTBL struct IGetPLMNwAcTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetPLMNwAcT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetPLMNwAcT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetPLMNwAcT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetPLMNwAcT_OnGetPreferredOperatorListCompletion(This,result,pOperatorList,dwLength) \ + ( (This)->lpVtbl -> OnGetPreferredOperatorListCompletion(This,result,pOperatorList,dwLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetPLMNwAcT_INTERFACE_DEFINED__ */ + + +#ifndef __ISetPLMNwAcT_INTERFACE_DEFINED__ +#define __ISetPLMNwAcT_INTERFACE_DEFINED__ + +/* interface ISetPLMNwAcT */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_ISetPLMNwAcT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4E331477-F454-4DE7-8B18-5130B891B012") + ISetPLMNwAcT : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnSetPreferredOperatorListCompletion( + /* [in] */ HRESULT result) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISetPLMNwAcTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISetPLMNwAcT * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISetPLMNwAcT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISetPLMNwAcT * This); + + DECLSPEC_XFGVIRT(ISetPLMNwAcT, OnSetPreferredOperatorListCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnSetPreferredOperatorListCompletion )( + __RPC__in ISetPLMNwAcT * This, + /* [in] */ HRESULT result); + + END_INTERFACE + } ISetPLMNwAcTVtbl; + + interface ISetPLMNwAcT + { + CONST_VTBL struct ISetPLMNwAcTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISetPLMNwAcT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISetPLMNwAcT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISetPLMNwAcT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISetPLMNwAcT_OnSetPreferredOperatorListCompletion(This,result) \ + ( (This)->lpVtbl -> OnSetPreferredOperatorListCompletion(This,result) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISetPLMNwAcT_INTERFACE_DEFINED__ */ + + +#ifndef __IGetCallForwardingCompletion_INTERFACE_DEFINED__ +#define __IGetCallForwardingCompletion_INTERFACE_DEFINED__ + +/* interface IGetCallForwardingCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IGetCallForwardingCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c329148f-3374-438b-8ed4-e1b9ab28eee3") + IGetCallForwardingCompletion : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnGetCallForwardingSettingsCompletion( + /* [in] */ HRESULT result, + /* [in] */ INT_PTR context, + /* [in] */ __RPC__in RILCALLFORWARDINGSETTINGS *settings, + /* [in] */ DWORD cSettings) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGetCallForwardingCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGetCallForwardingCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGetCallForwardingCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGetCallForwardingCompletion * This); + + DECLSPEC_XFGVIRT(IGetCallForwardingCompletion, OnGetCallForwardingSettingsCompletion) + HRESULT ( STDMETHODCALLTYPE *OnGetCallForwardingSettingsCompletion )( + __RPC__in IGetCallForwardingCompletion * This, + /* [in] */ HRESULT result, + /* [in] */ INT_PTR context, + /* [in] */ __RPC__in RILCALLFORWARDINGSETTINGS *settings, + /* [in] */ DWORD cSettings); + + END_INTERFACE + } IGetCallForwardingCompletionVtbl; + + interface IGetCallForwardingCompletion + { + CONST_VTBL struct IGetCallForwardingCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGetCallForwardingCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGetCallForwardingCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGetCallForwardingCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGetCallForwardingCompletion_OnGetCallForwardingSettingsCompletion(This,result,context,settings,cSettings) \ + ( (This)->lpVtbl -> OnGetCallForwardingSettingsCompletion(This,result,context,settings,cSettings) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGetCallForwardingCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __ISimpleModemCompletion_INTERFACE_DEFINED__ +#define __ISimpleModemCompletion_INTERFACE_DEFINED__ + +/* interface ISimpleModemCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_ISimpleModemCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9A189741-DED1-4535-B116-B6D287BF70D2") + ISimpleModemCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnFinished( + HRESULT result, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISimpleModemCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISimpleModemCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISimpleModemCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISimpleModemCompletion * This); + + DECLSPEC_XFGVIRT(ISimpleModemCompletion, OnFinished) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnFinished )( + __RPC__in ISimpleModemCompletion * This, + HRESULT result, + /* [in] */ INT_PTR context); + + END_INTERFACE + } ISimpleModemCompletionVtbl; + + interface ISimpleModemCompletion + { + CONST_VTBL struct ISimpleModemCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISimpleModemCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISimpleModemCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISimpleModemCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISimpleModemCompletion_OnFinished(This,result,context) \ + ( (This)->lpVtbl -> OnFinished(This,result,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISimpleModemCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __ICallWaitingSettingsCompletion_INTERFACE_DEFINED__ +#define __ICallWaitingSettingsCompletion_INTERFACE_DEFINED__ + +/* interface ICallWaitingSettingsCompletion */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_ICallWaitingSettingsCompletion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f9581718-2283-4336-9397-1c6c067299d2") + ICallWaitingSettingsCompletion : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnCallWaitingSettingsCompletion( + /* [in] */ HRESULT hr, + /* [in] */ DWORD dwInfoClasses, + /* [in] */ INT_PTR context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICallWaitingSettingsCompletionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICallWaitingSettingsCompletion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICallWaitingSettingsCompletion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICallWaitingSettingsCompletion * This); + + DECLSPEC_XFGVIRT(ICallWaitingSettingsCompletion, OnCallWaitingSettingsCompletion) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnCallWaitingSettingsCompletion )( + __RPC__in ICallWaitingSettingsCompletion * This, + /* [in] */ HRESULT hr, + /* [in] */ DWORD dwInfoClasses, + /* [in] */ INT_PTR context); + + END_INTERFACE + } ICallWaitingSettingsCompletionVtbl; + + interface ICallWaitingSettingsCompletion + { + CONST_VTBL struct ICallWaitingSettingsCompletionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICallWaitingSettingsCompletion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICallWaitingSettingsCompletion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICallWaitingSettingsCompletion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICallWaitingSettingsCompletion_OnCallWaitingSettingsCompletion(This,hr,dwInfoClasses,context) \ + ( (This)->lpVtbl -> OnCallWaitingSettingsCompletion(This,hr,dwInfoClasses,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICallWaitingSettingsCompletion_INTERFACE_DEFINED__ */ + + +#ifndef __IOemIMSStatusChange_INTERFACE_DEFINED__ +#define __IOemIMSStatusChange_INTERFACE_DEFINED__ + +/* interface IOemIMSStatusChange */ +/* [uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IOemIMSStatusChange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7d034a18-baef-4f86-ad84-bb0bbfb9f834") + IOemIMSStatusChange : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OnOemIMSStatusChanged( + /* [in] */ __RPC__in LPRILIMSSTATUS rilIMSStatus, + /* [in] */ __RPC__in_opt IOemCanExtForIMS *pCan) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOemIMSStatusChangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOemIMSStatusChange * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOemIMSStatusChange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOemIMSStatusChange * This); + + DECLSPEC_XFGVIRT(IOemIMSStatusChange, OnOemIMSStatusChanged) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OnOemIMSStatusChanged )( + __RPC__in IOemIMSStatusChange * This, + /* [in] */ __RPC__in LPRILIMSSTATUS rilIMSStatus, + /* [in] */ __RPC__in_opt IOemCanExtForIMS *pCan); + + END_INTERFACE + } IOemIMSStatusChangeVtbl; + + interface IOemIMSStatusChange + { + CONST_VTBL struct IOemIMSStatusChangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOemIMSStatusChange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOemIMSStatusChange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOemIMSStatusChange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOemIMSStatusChange_OnOemIMSStatusChanged(This,rilIMSStatus,pCan) \ + ( (This)->lpVtbl -> OnOemIMSStatusChanged(This,rilIMSStatus,pCan) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOemIMSStatusChange_INTERFACE_DEFINED__ */ + + + +#ifndef __OemCellularIF_LIBRARY_DEFINED__ +#define __OemCellularIF_LIBRARY_DEFINED__ + +/* library OemCellularIF */ +/* [version][uuid] */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +EXTERN_C const IID LIBID_OemCellularIF; + +EXTERN_C const CLSID CLSID_OemCellular; + +#ifdef __cplusplus + +class DECLSPEC_UUID("9D27B916-4F17-4EE8-A71C-D84222993D64") +OemCellular; +#endif +#endif /* __OemCellularIF_LIBRARY_DEFINED__ */ + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cellularapi_oem.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cellularapi_oem.idl new file mode 100644 index 0000000000000000000000000000000000000000..168b9e7bbb00cb03a42e13a3817257463ee3056f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cellularapi_oem.idl @@ -0,0 +1,724 @@ +// ==++== +// +// Copyright (C) Microsoft Corporation. All rights reserved. +// +// ==--== + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("#if ( _MSC_VER >= 1020 )") +cpp_quote("#pragma once") +cpp_quote("#endif") + +cpp_quote("DEFINE_GUID(SID_3GPP_SUPSVCMODEL, 0xd7d08e07, 0xd767, 0x4478, 0xb1, 0x4a, 0xee, 0xcc, 0x87, 0xea, 0x12, 0xf7);") + +import "oaidl.idl"; +import "ocidl.idl"; + +midl_pragma warning( disable: 2456 ) + +import "RilAPITypes.idl"; + +// +// Forward declarations - major objects +// +interface IOemCellular; +interface IOemCellularModem; +interface IOemCan; +interface IOemCanExtForIMS; +interface IOemSlot; +interface IOemUICCApp; +interface IOemUICCAppEx; +interface IOemUICCAppEx2; +interface IOemUICC; +interface IOem3GPPSupServices; +interface IOemIMSStatusChange; + +// +// State change interfaces unique to the OEM API +// +interface IOemCellularModemExistenceChange; +interface IOemSlotChange; +interface IOemCellularCanAvailabilityChange; +interface IOemCanRegistrationStateChange; +interface IOemSlotStateChange; +interface IOemUiccChange; +interface IOemUiccAppChange; + +// +// State change interfaces shared with CellularAPI.idl +// +interface IPowerStateChange; + +// +// Completion interfaces unique to the OEM API +// + +// +// Completion interfaces shared with CellularAPI.idl +// +interface IModemOpaqueCommandCompletion; +interface IOpaqueModemNotifications; +interface ISetRFStateCompletion; +interface IGetRFStateCompletion; +interface IGetRFStateExCompletion; +interface ICanInfoCompletion; +interface IPositionInfoCompletion; +interface IPinLockStateCompletion; +interface IGetRecordStatusCompletion; +interface IReadRecordCompletion; +interface IWriteRecordCompletion; +interface IIMSICompletion; +interface IGetSIDNIDCompletion; +interface IGetNAICompletion; +interface ISubscriberNumbersCompletion; +interface IGetPLMNwAcT; +interface ISetPLMNwAcT; +interface IGetCallForwardingCompletion; +interface ISimpleModemCompletion; +interface ICallWaitingSettingsCompletion; + +// +// Other classes that are unique to the OEM API +// +interface IOemRegistrationStatus; + +const int MAXLENGTH_NAI = 72; + +// +// Data types shared with CellularAPI.idl +enum MODEMPOWERSTATE +{ + MODEM_POWER_OFF = 0x0001, + MODEM_POWER_GOING_ON = 0x0002, + MODEM_POWER_ON = 0x0003, + MODEM_POWER_GOING_OFF = 0x0004, + MODEM_POWER_SHUTING_DOWN = 0x0005 +} ; + +// BUGBUG: These should have been defined in RilAPITypes.idl or given a different name, since only idertifiers in the IHVRIL +// interface should have names beginning with the prefix RIL +typedef struct RILSIDNID RILSIDNID; +typedef struct RILSIDNID *LPRILSIDNID; +typedef struct RILNAI NAI; +typedef struct RILNAI* LPRILNAI; + +enum RILNAIPARAMMASK { + RIL_PARAM_NAI_NAI = 0x00000001, + RIL_PARAM_NAI_ALL = 0x00000001 +} ; + +struct RILNAI { + DWORD cbSize; + DWORD dwParams; + WCHAR wszNAI[MAXLENGTH_NAI + 1]; +} ; + +enum RILSIDNIDPARAMMASK { + RIL_PARAM_SIDNID_SID = 0x00000001, + RIL_PARAM_SIDNID_NID = 0x00000002, + RIL_PARAM_SIDNID_ALL = 0x00000003 +} ; +typedef enum RILSIDNIDPARAMMASK RILSIDNIDPARAMMASK; + +struct RILSIDNID { + DWORD cbSize; + DWORD dwParams; + DWORD dwSid; + DWORD dwNid; +} ; + +enum UICCDATASTOREACCESSMODE +{ + UICCDATASTORE_PUBLIC = 0x0001, + UICCDATASTORE_PRIVATE = 0x0002 +} ; +typedef enum UICCDATASTOREACCESSMODE UICCDATASTOREACCESSMODE; + +const int MAXLENGTH_UICCDATASTORE = 10; + +struct UICCDATASTOREENTRY +{ + DWORD position; + DWORD lengthIccId; + BYTE iccId[MAXLENGTH_ICCID]; +} ; + +struct UICCDATASTOREINFO +{ + DWORD dwCount; + struct UICCDATASTOREENTRY entries[MAXLENGTH_UICCDATASTORE]; +} ; + +typedef struct UICCDATASTOREINFO UICCDATASTOREINFO; + +/////////////////////////////////////////////////////////////////////////////////////////////// +// +// Major Objects +// + +// IOemCellular - external version of ICellular +[object, oleautomation, uuid(17AE6DC1-3723-4085-99BA-7160CDB8BFC1)] +interface IOemCellular : IUnknown +{ + [helpstring("Register to be informed of modems within the system")] + HRESULT RegisterForOemModemExistenceChanges([in] IOemCellularModemExistenceChange *pCallback); + + [helpstring("Unregister for information about modems within the system")] + HRESULT UnregisterForOemModemExistenceChanges([in] IOemCellularModemExistenceChange *pCallback); + + [helpstring("Close/clean up all objects (does not alter actual hardware state)")] + HRESULT Destroy(); + + [helpstring("Wait for the Destroy operation to finish")] + HRESULT WaitForDestroyCompletion(); +} + +// IOemCellular - external version of ICellularDatastrore +[object, oleautomation, uuid(b470078a-2784-4d09-ad35-42b2290abc54)] +interface IOemCellularDataStore : IUnknown +{ + // + // UICC data Store functionality + // Allows clients to store and retrive per UICC setting from the datastore + // setting related to up to 10 UICC will be stored + [helpstring("Set a Name-value pair for a card identified by IccID")] + HRESULT SetNamedValue([in] const BYTE *pIccId, [in] DWORD lengthIccId, [in] LPCWSTR pClientId, [in] LPCWSTR pPropertyName, [in] const BYTE *pPropertyValue, [in] DWORD lengthValue, [in] UICCDATASTOREACCESSMODE accessMode); + + [helpstring("Get a Name-value pair for a card identified by IccID")] + HRESULT GetNamedValue([in] const BYTE *pIccId, [in] DWORD lengthIccId, [in] LPCWSTR pClientId, [in] LPCWSTR pPropertyName, [out] BYTE *pPropertyValue, [in, out] DWORD *pLengthValue, [in] UICCDATASTOREACCESSMODE accessMode); + + [helpstring("Get a list with all IccIds stored in the data store and the corresponding position in usage history")] + HRESULT GetUiccDataStoreInfo([in, out] struct UICCDATASTOREINFO *pDatastoreInfo); +} + +// IOemCellularModem - external version of ICellularModem +[object, oleautomation, uuid(82F4E49E-1E6B-43C9-8769-FE3D437AE8A9)] +interface IOemCellularModem : IUnknown +{ + // + // Can state changes - OEM version + // + [helpstring("Register for Can state changes on this modem")] + HRESULT RegisterForOemCanAvailabilityChanges([in] IOemCellularCanAvailabilityChange *pCallBack); + + [helpstring("Unregister for Can state changes on this modem")] + HRESULT UnregisterForOemCanAvailabilityChanges([in] IOemCellularCanAvailabilityChange *pCallback); + + // + // Slot state changes - OEM version + // + [helpstring("Register for slot insertion/removal notifications.")] + HRESULT RegisterForOemSlotChanges([in] IOemSlotChange *pCallback); + + [helpstring("Unregister for slot insertion/removal notifications.")] + HRESULT UnregisterForOemSlotChanges([in] IOemSlotChange *pCallback); + + // + // Power state changes + // + [helpstring("Register for power state changes on this modem")] + HRESULT RegisterForPowerStateChanges([in] IPowerStateChange *pCallback, [in] INT_PTR context); + + [helpstring("Unregister for power state changes on this modem")] + HRESULT UnregisterForPowerStateChanges([in] IPowerStateChange *pCallback); + + // + // DevSpecific and SAR related APIs + // + [helpstring ("Send an Opaque Command to the Modem")] + HRESULT SendModemOpaqueCommand([in] IModemOpaqueCommandCompletion *pCallback, [in,size_is(cbSize)] BYTE *pOpaquePayload, [in] DWORD cbSize, [in] INT_PTR context); + + [helpstring("Register for Opaque Modem Notifications")] + HRESULT RegisterForOpaqueModemNotifications([in] IOpaqueModemNotifications *pCallback); + + [helpstring("UnRegister for Opaque Modem Notifications")] + HRESULT UnRegisterForOpaqueModemNotifications([in] IOpaqueModemNotifications *pCallback); + + [helpstring ("Set the RF Power (Level) State for SAR")] + HRESULT SetRFState([in] ISetRFStateCompletion *pCallback, [in] DWORD dwRFPowerState, [in] INT_PTR context); + + [helpstring ("Gets the RF Power(Level)State for SAR")] + HRESULT GetRFState([in] IGetRFStateCompletion *pCallback, [in] INT_PTR context); +} + +// IOemCellularModemEx - extended external version of ICellularModem +[object, oleautomation, uuid(1902f624-534e-4624-a815-3546021f0854)] +interface IOemCellularModemEx : IUnknown +{ + [helpstring ("Set the RF Power (Level) State for SAR")] + HRESULT SetRFState([in] ISetRFStateCompletion *pCallback, [in] LPRILRFSTATE lpRFState, [in] INT_PTR context); + + [helpstring ("Gets the RF Power(Level)State for SAR")] + HRESULT GetRFState([in] IGetRFStateExCompletion *pCallback, [in] INT_PTR context); + +} + +// IOemCan - external version of ICan +[object, oleautomation, uuid(A3822E4E-FFB5-4E46-8980-0182B8454E2E)] +interface IOemCan : IUnknown +{ + // + // Registration changes + // + [helpstring("Register for can registration status")] + HRESULT RegisterForOemCanRegistrationChanges([in] IOemCanRegistrationStateChange *pCallback); + + [helpstring("UnRegister for can registration status")] + HRESULT UnregisterForOemCanRegistrationChanges([in] IOemCanRegistrationStateChange *pCallback); + + // + // GetDeviceInfo + // + [helpstring("Get Can information such as radio serial number, revision number, etc.")] + HRESULT GetInfo([in] enum RILDEVICEINFORMATION deviceInfo, [in] ICanInfoCompletion *pCallback, [in] INT_PTR context); + + // + // GetPositionInfo + // + [helpstring("Get radio measurments used to determine position")] + HRESULT GetPositionInfo([in] IPositionInfoCompletion *pCallback, [in] INT_PTR context); + + // + // IServiceProvider + // + [helpstring("Used to get a 3GPP or 3GPP2 call provider")] + HRESULT QueryService([in] REFGUID guidService, [in] REFIID riid, [out, iid_is(riid)] void **ppv); +} + +// IOemCanExtForIMS - external version of ICan +[object, oleautomation, uuid(C5310A1A-E885-4450-B823-84AD7FD15CBF)] +interface IOemCanExtForIMS : IUnknown +{ + // + // (Un)Register for IMS status changes + // + [helpstring ("Register for IMS status changes. The callback is invoked at least once with current IMS status")] + HRESULT RegisterForOemIMSStatusChanges([in] IOemIMSStatusChange *pCallback); + + [helpstring ("Unregister for IMS status changes")] + HRESULT UnregisterForOemIMSStatusChanges([in] IOemIMSStatusChange *pCallback); +} + +// IOemSlot - external version of ISlot +[object, oleautomation, uuid(DAE67DE6-0C18-4158-9323-CF7FB14EC216)] +interface IOemSlot : IUnknown +{ + [helpstring("Register for state changes on this slot")] + HRESULT RegisterForOemSlotChanges([in] IOemSlotStateChange *pCallback); + + [helpstring("Unregister for state changes on this slot")] + HRESULT UnregisterForOemSlotChanges([in] IOemSlotStateChange *pCallback); +} + +// IOemUICC - external version of IUICC +[object, oleautomation, uuid(FD5DBCF6-810D-4CE8-AC06-1B8628808950)] +interface IOemUicc : IUnknown +{ + [helpstring("Register for changes on this UICC")] + HRESULT RegisterForOemUiccChanges([in] IOemUiccChange *pCallback); + + [helpstring("Un-register for changes on this UICC")] + HRESULT UnregisterForOemUiccChanges([in] IOemUiccChange *pCallback); +} + +// IOemUiccApp - external version of IUICCApp and ILine +// Attempting to use an ILine method on a non-ILine will fail with E_INVALIDARG +[object, oleautomation, uuid(2D00BFEE-AA9F-48FD-9D2B-E8D3D3EDDC60)] +interface IOemUiccApp : IUnknown +{ + [helpstring("Gets the application ID for this UICC application")] + HRESULT GetAppId([out] BYTE *appId, [in, out] DWORD *length); + + [helpstring("Gets the type of this UICC application")] + HRESULT GetType([out] RILUICCAPPTYPE *pType); + + [helpstring("Get pin lock state of this UICC application")] + HRESULT GetPinLockState([in] IPinLockStateCompletion *pCallback, [in] INT_PTR context); + + [helpstring("Read from a specific file on this application")] + HRESULT ReadRecord([in] IReadRecordCompletion *pCallback, [in] DWORD fileID, [in] DWORD recordIndex, [in] INT_PTR context); + + [helpstring("Write to a specific file on this application")] + HRESULT WriteRecord([in] IWriteRecordCompletion *pCallback, [in] DWORD fileID, [in] DWORD recordIndex, [in] const BYTE *bData, [in] DWORD cbSize, [in] INT_PTR context); + + [helpstring("Get record status for a specific file path on the UICC application")] + HRESULT GetRecordStatusOnFilePath([in] IGetRecordStatusCompletion *pCallback, [in, size_is(filePathLen)] const WORD *uiccFilePath, [in] DWORD filePathLen, [in] INT_PTR context); + + [helpstring("Read from a specific file path on this application")] + HRESULT ReadRecordOnFilePath([in] IReadRecordCompletion *pCallback, [in, size_is(filePathLen)] const WORD *uiccFilePath, [in] DWORD filePathLen, [in] DWORD recordIndex, [in] INT_PTR context); + + [helpstring("Write to a specific file path on this application")] + HRESULT WriteRecordOnFilePath([in] IWriteRecordCompletion *pCallback, [in, size_is(filePathLen)] const WORD *uiccFilePath, [in] DWORD filePathLen, [in] DWORD recordIndex, [in] const BYTE *bData, [in] DWORD cbSize, [in] INT_PTR context); + + // need read/write binary + + [helpstring("Get the IMSI from the application")] + HRESULT GetIMSI([in] IIMSICompletion *pCallback, [in] INT_PTR context); + + [helpstring("Get the SID and NID for the application")] + HRESULT GetSIDNID([in] IGetSIDNIDCompletion *pCallback, [in] INT_PTR context); + + [helpstring("Get the subscriber numbers")] + HRESULT GetSubscriberNumbers([in] ISubscriberNumbersCompletion *pCallback, [in] INT_PTR context); + +} + +// IOemUiccAppEx - external version of IUICCApp and ILine +// implemented in Portico +[object, oleautomation, uuid(0C50366C-D5ED-4F00-AA54-1537A63D8A01)] +interface IOemUiccAppEx : IUnknown +{ + [helpstring("Get Prefered Operator List")] + HRESULT GetPreferredOperatorList([in] IGetPLMNwAcT * pResponseHandler); + + [helpstring("Set Prefered Operator List")] + HRESULT SetPreferredOperatorList([in] ISetPLMNwAcT * pResponseHandler, [in,size_is(dwLength)] RILOPERATORNAMES * pOperatorList, [in] DWORD dwLength); +} + +// IOemUiccAppEx2 - external version of IUICCApp and ILine +[object, oleautomation, uuid(C9772450-A940-4E27-A3EA-AFCC5ECC7556)] +interface IOemUiccAppEx2 : IUnknown +{ + [helpstring("Get NAI")] + HRESULT GetNAI([in] IGetNAICompletion *pCallback, [in] INT_PTR context); +} + +[object, oleautomation, uuid(138820C5-299D-4d1d-80B9-1664A17B1B41)] +interface IOem3GPPSupServices : IUnknown +{ + [helpstring("Get call forwarding settings, infoClasses is a mask of RIL_INFOCLASS_ values")] + HRESULT GetCallForwardingSettings([in] IGetCallForwardingCompletion *pCallback, [in] INT_PTR context, [in] RILCALLFORWARDINGSETTINGSREASON reason, [in] BOOL allClasses, [in] DWORD infoClasses); + + [helpstring("Set callforwarding status")] + HRESULT SetCallForwardingStatus([in] ISimpleModemCompletion *pCallback, [in] INT_PTR context, [in] RILCALLFORWARDINGSETTINGSREASON dwReason, [in] BOOL fAllClasses, [in] DWORD dwInfoClasses, [in] RILSERVICESETTINGSSTATUS dwStatus); + + [helpstring("Add a call forwarding rule")] + HRESULT AddCallForwarding([in] ISimpleModemCompletion *pCallback, [in] INT_PTR context, [in] RILCALLFORWARDINGSETTINGSREASON dwReason, [in] const RILCALLFORWARDINGSETTINGS *lpSettings); + + [helpstring("Remove a call forwarding rule")] + HRESULT RemoveCallForwarding([in] ISimpleModemCompletion *pCallback, [in] INT_PTR context, [in] RILCALLFORWARDINGSETTINGSREASON dwReason, [in] DWORD dwInfoClasses); + + [helpstring("Get callwaiting settings")] + HRESULT GetCallWaitingSettings([in] ICallWaitingSettingsCompletion *pCallback, [in] INT_PTR context, [in] BOOL fAllClasses, [in] DWORD dwInfoClasses); + + [helpstring("Set callwaiting settings")] + HRESULT SetCallWaitingSettings([in] ISimpleModemCompletion *pCallback, [in] INT_PTR context, [in] BOOL fAllClasses, [in] DWORD dwInfoClasses, [in] RILSERVICESETTINGSSTATUS dwStatus ); +} + +/////////////////////////////////////////////////////////////////////////////////////////////// +// +// State Change Interfaces +// +[object, oleautomation, uuid(A2CBC3C1-79D5-4F9D-A6F9-FDE497848EC1)] +interface IOemCellularModemExistenceChange : IUnknown +{ + [helpstring("Called when a modem is added [becomes available]")] + HRESULT OnOemModemAdded([in] IOemCellularModem *pModem); + + [helpstring("Called when a modem is removed [is no longer available]")] + HRESULT OnOemModemRemoved([in] IOemCellularModem *pModem); + + [helpstring("Called when the initial list of modems is determined")] + HRESULT OnOemModemExistenceDone(); +} + +[object, oleautomation, uuid(CF34841C-A795-4EC6-B1BC-C3744A2D6DCA)] +interface IOemCellularCanAvailabilityChange : IUnknown +{ + [helpstring("Called when a can is added")] + HRESULT OnOemCanAdded([in] IOemCan *pCan); + + [helpstring("Called when a Can is removed")] + HRESULT OnOemCanRemoved([in] IOemCan *pCan); + + [helpstring("Called when the initial list of cans is determined.")] + HRESULT OnOemCanDone(); +} + +[object, oleautomation, uuid(20C4AF87-BC47-4150-BA97-4F53FFD95E48)] +interface IOemSlotChange : IUnknown +{ + [helpstring("Called when a slot is added")] + HRESULT OnOemSlotAdded([in] IOemSlot *pSlot, [in] IOemCellularModem *pCellularModem); + + [helpstring("Called when a slot is removed")] + HRESULT OnOemSlotRemoved([in] IOemSlot *pSlot, [in] IOemCellularModem *pCellularModem); + + [helpstring("Called when the initial list of slots is determined.")] + HRESULT OnOemSlotExistenceDone([in] IOemCellularModem *pCellularModem); +} + +[object, oleautomation, uuid(B8E5DF58-2329-400C-93C5-FFB951BF3415)] +interface IOemCanRegistrationStateChange : IUnknown +{ + [helpstring("Notification for when registration status changes")] + HRESULT OnOemRegistrationStatusChanged([in, size_is(cStatus)] IOemRegistrationStatus **status, [in] DWORD cStatus); +} + +[object, oleautomation, uuid(59BB79ED-5435-456C-A8D1-6680D56AAD1E)] +interface IOemSlotStateChange : IUnknown +{ + [helpstring("Slot state changed")] + HRESULT OnOemSlotStateChanged([in] RILUICCSLOTSTATE currentSlotState, [in] IOemSlot *pSlot); + + [helpstring("On UICC added")] + HRESULT OnOemUiccAdded([in] IOemUicc *pUicc, [in] IOemSlot *pSlot); + + [helpstring("On UICC removed")] + HRESULT OnOemUiccRemoved([in] IOemUicc *pUicc, [in] IOemSlot *pSlot); + + [helpstring("Done with the first snapshot")] + HRESULT OnOemFirstSnapshotDone([in] IOemSlot *pSlot); +} + +[object, oleautomation, uuid(302739D6-299D-4B82-A12E-EF930FD8BD16)] +interface IOemUiccChange : IUnknown +{ + [helpstring("Provide the UICC ICCID")] + HRESULT UiccIccId([in] BYTE *iccID, [in] DWORD length, [in] IOemUicc *pUicc); + + [helpstring("New line got added on the UICC in the slot")] + HRESULT OnOemUiccAppAdded([in] IOemUiccApp *uiccApp, [in] IOemUicc* pUicc); + + [helpstring("A existing line got removed from the UICC in the slot")] + HRESULT OnOemUiccAppRemoved([in] IOemUiccApp *uiccApp, [in] IOemUicc *pUicc); + + [helpstring("Done with the first snapshot")] + HRESULT OnOemUiccAppFetchDone([in] IOemUicc *pUicc); +} + +/////////////////////////////////////////////////////////////////////////////////////////////// +// Interfaces representing other objects that are different in CellularAPI_OEM +[object, oleautomation, uuid(F8C3B6D1-4629-414B-8E38-DD396FEBE730)] +interface IOemRegistrationStatus : IUnknown +{ + [propget, helpstring("Retrieves the active line.")] + HRESULT Subscription([out, retval] IOemUiccApp **ret); + + [propget, helpstring("Retrieves the system type of the registered network")] + HRESULT SystemType([out, retval] enum RILSYSTEMTYPE *systemType); + + [propget, helpstring("Retrieves the reject code as sent by the network. Is only valid till the time regstat doesn't return back to home or roaming.")] + HRESULT RejectReason([out, retval] DWORD *reason); + + [propget, helpstring("Retrieves the operator name struct")] + HRESULT OperatorName([out, retval] struct RILOPERATORNAMES *name); + + [propget, helpstring("Retrieves the actual registration state as reported by the modem")] + HRESULT RegistrationStatus([out, retval] enum RILREGSTAT *status); + + [propget, helpstring("Retrieves the network code information for the operator")] + HRESULT NetworkCode([out, retval] struct RILNETWORKCODE *pNetworkCode); +} + +/////////////////////////////////////////////////////////////////////////////////////////////// +// The following interfaces are shared by CellularAPI and CellularAPI_OEM + +[object, oleautomation, uuid(0e7d938e-d7fb-49a4-8cac-4db70d952c03)] +interface IPowerStateChange : IUnknown +{ + HRESULT OnPowerStateChange([in] enum MODEMPOWERSTATE state, [in] INT_PTR context); +} + +[object, oleautomation, uuid(C9B4415B-0643-4855-BB04-A5354F038E62)] +interface IModemOpaqueCommandCompletion : IUnknown +{ + [helpstring("Modem Opaque Command Completion")] + HRESULT OnModemOpaqueCommandCompletion([in] HRESULT result, [in,size_is(cbSize)] BYTE *pOpaqueResponse, [in] DWORD cbSize, [in] INT_PTR context); +} + +[object, oleautomation, uuid(85A26F4E-CD62-4B6E-90A1-0D5E2D6EE3FF)] +interface IOpaqueModemNotifications : IUnknown +{ + [helpstring("Unsolicited Modem Opaque Notification")] + HRESULT OnOpaqueModemNotifications([in] DWORD dwCode, [in] BYTE* pOpaqueNotification, [in] DWORD cbSize); +} + +[object, oleautomation, uuid(340B4A01-07CE-4334-B367-05C87085CBB0)] +interface ISetRFStateCompletion : IUnknown +{ + HRESULT OnSetRFStateCompletion([in] HRESULT result, [in] INT_PTR context); +} + +[object, oleautomation, uuid(4255DD18-D829-4C04-849A-624727B990A2)] +interface IGetRFStateCompletion : IUnknown +{ + HRESULT OnGetRFStateCompletion([in] HRESULT result, [in] DWORD *pRFState, [in] INT_PTR context); +} + +[object, oleautomation, uuid(74e511fd-f17b-48fc-bd56-93af42e71031)] +interface IGetRFStateExCompletion : IUnknown +{ + HRESULT OnGetRFStateCompletion([in] HRESULT result, [in] LPRILRFSTATE lpRFState, [in] INT_PTR context); +} + +[object, oleautomation, uuid(b5bb6a5e-8d3f-4203-b58b-26c3d4e8eedc)] +interface ICanInfoCompletion : IUnknown +{ + [helpstring ("On Can GetInfo completion")] + HRESULT OnGetInfoCompletion([in] HRESULT result, [in] const WCHAR *value, [in] INT_PTR context); +} + +[object, oleautomation, uuid(03569923-a28f-47bd-9315-38d8fb11717d)] +interface IPositionInfoCompletion : IUnknown +{ + [helpstring ("On get position information")] + HRESULT OnGetPositionInfoCompletion([in] HRESULT result, [in] LPRILPOSITIONINFO lpPositionInfo, [in] INT_PTR context); +} + +[object, oleautomation, uuid(3b2481a7-aee9-462f-bd38-31f15c15ff88)] +interface IPinLockStateCompletion : IUnknown +{ + [helpstring ("Completion of a GetPinLockState call")] + HRESULT OnGetPinLockStateCompletion([in] HRESULT result, [in] LPRILUICCLOCKSTATE pUICCLockState, [in] DWORD length, [in] INT_PTR context); +} + +[object, oleautomation, uuid(2d033fa3-ae5c-495c-bcf5-459ffa07036a)] +interface IGetRecordStatusCompletion : IUnknown +{ + [helpstring ("On record status completion")] + HRESULT OnGetRecordStatusCompletion([in] HRESULT result, [in] LPRILUICCRECORDSTATUS recordStatus, [in] DWORD length, [in] INT_PTR context); +} + +[object, oleautomation, uuid(5a8c7c5f-aace-47b8-b38b-41785a9fc090)] +interface IReadRecordCompletion : IUnknown +{ + [helpstring ("On read record completion")] + HRESULT OnReadRecordCompletion([in] HRESULT result, [in] BYTE *record, [in] DWORD cbSize, [in] INT_PTR context); +} + +[object, oleautomation, uuid(f9b2b7de-3ab4-4af8-bac0-fd9a83113242)] +interface IWriteRecordCompletion : IUnknown +{ + [helpstring ("On write record completion")] + HRESULT OnWriteRecordCompletion([in] HRESULT result, [in] INT_PTR context); +} + +[object, oleautomation, uuid(A9342324-DA50-46B2-BA1C-2B1CB60C3817)] +interface IIMSICompletion : IUnknown +{ + [helpstring ("On get IMSI completion")] + HRESULT OnGetIMSICompletion([in] HRESULT result, [in] const LPRILIMSI rilImsi, [in] INT_PTR context); +} + +[object, oleautomation, uuid(e7d5d35e-a770-4adc-8bb1-a677ea6e89ac)] +interface IGetSIDNIDCompletion : IUnknown +{ + [helpstring ("On get SID NID completion")] + HRESULT OnGetSIDNIDCompletion([in] HRESULT result, [in] const LPRILSIDNID rilSidNid, [in] INT_PTR context); +} + +[object, oleautomation, uuid(4AFE7F70-7D1F-45D1-BC93-908161FEBC58)] +interface IGetNAICompletion : IUnknown +{ + [helpstring ("On get NAI completion")] + HRESULT OnGetNAICompletion([in] HRESULT result, [in] const LPRILNAI rilNai, [in] INT_PTR context); +} + +[object, oleautomation, uuid(be6d7c2a-ba04-4fcc-a611-d33000643d4f)] +interface ISubscriberNumbersCompletion : IUnknown +{ + [helpstring ("On get subscriber numbers")] + HRESULT OnGetSubscriberNumbersCompletion([in] HRESULT result, [in] LPRILUICCSUBSCRIBERNUMBERS pSubscriberNumbers, [in] DWORD length, [in] INT_PTR context); +} + +[object,oleautomation, uuid(E9BEB716-6ADD-492B-BBEA-B2FE1068A86E)] +interface IGetPLMNwAcT: IUnknown +{ + [helpstring("On get Prefered Operator List")] + HRESULT OnGetPreferredOperatorListCompletion([in] HRESULT result, [in,size_is(dwLength)] RILOPERATORNAMES * pOperatorList, [in] DWORD dwLength); + +} +[object,oleautomation, uuid(4E331477-F454-4DE7-8B18-5130B891B012)] +interface ISetPLMNwAcT: IUnknown +{ + [helpstring("On set Prefered Operator List")] + HRESULT OnSetPreferredOperatorListCompletion([in] HRESULT result); +} + +[object, oleautomation, uuid(c329148f-3374-438b-8ed4-e1b9ab28eee3)] +interface IGetCallForwardingCompletion : IUnknown +{ + HRESULT OnGetCallForwardingSettingsCompletion([in] HRESULT result, [in] INT_PTR context, [in] RILCALLFORWARDINGSETTINGS *settings, [in] DWORD cSettings); +} + +[object, oleautomation, uuid(9A189741-DED1-4535-B116-B6D287BF70D2)] +interface ISimpleModemCompletion : IUnknown +{ + [helpstring("Called when a simple async command is completed")] + HRESULT OnFinished(HRESULT result, [in] INT_PTR context); +} + +[object, oleautomation, uuid(f9581718-2283-4336-9397-1c6c067299d2)] +interface ICallWaitingSettingsCompletion : IUnknown +{ + [helpstring("Called when getting CallWaitingSettings has completed")] + HRESULT OnCallWaitingSettingsCompletion([in] HRESULT hr, [in] DWORD dwInfoClasses, [in] INT_PTR context); +} + +[object, oleautomation, uuid(7d034a18-baef-4f86-ad84-bb0bbfb9f834)] +interface IOemIMSStatusChange : IUnknown +{ + [helpstring("Indicates that the IMS status has been changed")] + HRESULT OnOemIMSStatusChanged([in] LPRILIMSSTATUS rilIMSStatus, [in] IOemCanExtForIMS * pCan); +} + +/////////////////////////////////////////////////////////////////////////////////////////////// +[uuid(32A11B9F-9C1D-46C2-B66F-6C05211135E1), version(1.0)] +library OemCellularIF +{ + importlib("stdole32.tlb"); + + interface ICanInfoCompletion; + interface IGetRecordStatusCompletion; + interface IGetRFStateCompletion; + interface IGetSIDNIDCompletion; + interface IGetNAICompletion; + interface IIMSICompletion; + interface IModemOpaqueCommandCompletion; + interface IOemCan; + interface IOemCanExtForIMS; + interface IOemCanRegistrationStateChange; + interface IOemCellular; + interface IOemCellularCanAvailabilityChange; + interface IOemCellularModem; + interface IOemCellularModemExistenceChange; + interface IOemRegistrationStatus; + interface IOemSlot; + interface IOemSlotChange; + interface IOemSlotStateChange; + interface IOemUICC; + interface IOemUICCApp; + interface IOemUICCAppEx; + interface IOemUICCAppEx2; + interface IOemUiccAppChange; + interface IOemUiccChange; + interface IOpaqueModemNotifications; + interface IPinLockStateCompletion; + interface IPositionInfoCompletion; + interface IPowerStateChange; + interface IReadRecordCompletion; + interface ISetRFStateCompletion; + interface ISubscriberNumbersCompletion; + interface IWriteRecordCompletion; + interface IGetPLMNwAcT; + interface ISetPLMNwAcT; + interface IOem3GPPSupServices; + interface IGetCallForwardingCompletion; + interface ISimpleModemCompletion; + interface ICallWaitingSettingsCompletion; + interface IOemIMSStatusChange; + + [uuid(9D27B916-4F17-4EE8-A71C-D84222993D64) ] + coclass OemCellular + { + [default] interface IOemCellular; + interface IOemCellular; + }; + +} diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/certbcli.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/certbcli.idl new file mode 100644 index 0000000000000000000000000000000000000000..2c380ce2a379726df9e30286fb2b5332f08d542c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/certbcli.idl @@ -0,0 +1,25 @@ +//+-------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1996 - 1999 +// +// File: certbcli.idl +// +// Contents: IDL imports for certbcli.h +// +//--------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include +typedef _Null_terminated_ WCHAR * PWSTR; +typedef _Null_terminated_ WCHAR const * PCWSTR; +typedef _Null_terminated_ CHAR * PSTR; +typedef _Null_terminated_ CHAR const * PCSTR; +#include "certbcli.h" + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/certenroll.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/certenroll.h new file mode 100644 index 0000000000000000000000000000000000000000..6d1b04c23370c22156362b956f14881c93ee8325 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/certenroll.h @@ -0,0 +1,31322 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __certenroll_h__ +#define __certenroll_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IObjectId_FWD_DEFINED__ +#define __IObjectId_FWD_DEFINED__ +typedef interface IObjectId IObjectId; + +#endif /* __IObjectId_FWD_DEFINED__ */ + + +#ifndef __IObjectIds_FWD_DEFINED__ +#define __IObjectIds_FWD_DEFINED__ +typedef interface IObjectIds IObjectIds; + +#endif /* __IObjectIds_FWD_DEFINED__ */ + + +#ifndef __IBinaryConverter_FWD_DEFINED__ +#define __IBinaryConverter_FWD_DEFINED__ +typedef interface IBinaryConverter IBinaryConverter; + +#endif /* __IBinaryConverter_FWD_DEFINED__ */ + + +#ifndef __IBinaryConverter2_FWD_DEFINED__ +#define __IBinaryConverter2_FWD_DEFINED__ +typedef interface IBinaryConverter2 IBinaryConverter2; + +#endif /* __IBinaryConverter2_FWD_DEFINED__ */ + + +#ifndef __IX500DistinguishedName_FWD_DEFINED__ +#define __IX500DistinguishedName_FWD_DEFINED__ +typedef interface IX500DistinguishedName IX500DistinguishedName; + +#endif /* __IX500DistinguishedName_FWD_DEFINED__ */ + + +#ifndef __IX509EnrollmentStatus_FWD_DEFINED__ +#define __IX509EnrollmentStatus_FWD_DEFINED__ +typedef interface IX509EnrollmentStatus IX509EnrollmentStatus; + +#endif /* __IX509EnrollmentStatus_FWD_DEFINED__ */ + + +#ifndef __ICspAlgorithm_FWD_DEFINED__ +#define __ICspAlgorithm_FWD_DEFINED__ +typedef interface ICspAlgorithm ICspAlgorithm; + +#endif /* __ICspAlgorithm_FWD_DEFINED__ */ + + +#ifndef __ICspAlgorithms_FWD_DEFINED__ +#define __ICspAlgorithms_FWD_DEFINED__ +typedef interface ICspAlgorithms ICspAlgorithms; + +#endif /* __ICspAlgorithms_FWD_DEFINED__ */ + + +#ifndef __ICspInformation_FWD_DEFINED__ +#define __ICspInformation_FWD_DEFINED__ +typedef interface ICspInformation ICspInformation; + +#endif /* __ICspInformation_FWD_DEFINED__ */ + + +#ifndef __ICspInformations_FWD_DEFINED__ +#define __ICspInformations_FWD_DEFINED__ +typedef interface ICspInformations ICspInformations; + +#endif /* __ICspInformations_FWD_DEFINED__ */ + + +#ifndef __ICspStatus_FWD_DEFINED__ +#define __ICspStatus_FWD_DEFINED__ +typedef interface ICspStatus ICspStatus; + +#endif /* __ICspStatus_FWD_DEFINED__ */ + + +#ifndef __ICspStatuses_FWD_DEFINED__ +#define __ICspStatuses_FWD_DEFINED__ +typedef interface ICspStatuses ICspStatuses; + +#endif /* __ICspStatuses_FWD_DEFINED__ */ + + +#ifndef __IX509PublicKey_FWD_DEFINED__ +#define __IX509PublicKey_FWD_DEFINED__ +typedef interface IX509PublicKey IX509PublicKey; + +#endif /* __IX509PublicKey_FWD_DEFINED__ */ + + +#ifndef __IX509PrivateKey_FWD_DEFINED__ +#define __IX509PrivateKey_FWD_DEFINED__ +typedef interface IX509PrivateKey IX509PrivateKey; + +#endif /* __IX509PrivateKey_FWD_DEFINED__ */ + + +#ifndef __IX509PrivateKey2_FWD_DEFINED__ +#define __IX509PrivateKey2_FWD_DEFINED__ +typedef interface IX509PrivateKey2 IX509PrivateKey2; + +#endif /* __IX509PrivateKey2_FWD_DEFINED__ */ + + +#ifndef __IX509EndorsementKey_FWD_DEFINED__ +#define __IX509EndorsementKey_FWD_DEFINED__ +typedef interface IX509EndorsementKey IX509EndorsementKey; + +#endif /* __IX509EndorsementKey_FWD_DEFINED__ */ + + +#ifndef __IX509Extension_FWD_DEFINED__ +#define __IX509Extension_FWD_DEFINED__ +typedef interface IX509Extension IX509Extension; + +#endif /* __IX509Extension_FWD_DEFINED__ */ + + +#ifndef __IX509Extensions_FWD_DEFINED__ +#define __IX509Extensions_FWD_DEFINED__ +typedef interface IX509Extensions IX509Extensions; + +#endif /* __IX509Extensions_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionKeyUsage_FWD_DEFINED__ +#define __IX509ExtensionKeyUsage_FWD_DEFINED__ +typedef interface IX509ExtensionKeyUsage IX509ExtensionKeyUsage; + +#endif /* __IX509ExtensionKeyUsage_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionEnhancedKeyUsage_FWD_DEFINED__ +#define __IX509ExtensionEnhancedKeyUsage_FWD_DEFINED__ +typedef interface IX509ExtensionEnhancedKeyUsage IX509ExtensionEnhancedKeyUsage; + +#endif /* __IX509ExtensionEnhancedKeyUsage_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionTemplateName_FWD_DEFINED__ +#define __IX509ExtensionTemplateName_FWD_DEFINED__ +typedef interface IX509ExtensionTemplateName IX509ExtensionTemplateName; + +#endif /* __IX509ExtensionTemplateName_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionTemplate_FWD_DEFINED__ +#define __IX509ExtensionTemplate_FWD_DEFINED__ +typedef interface IX509ExtensionTemplate IX509ExtensionTemplate; + +#endif /* __IX509ExtensionTemplate_FWD_DEFINED__ */ + + +#ifndef __IAlternativeName_FWD_DEFINED__ +#define __IAlternativeName_FWD_DEFINED__ +typedef interface IAlternativeName IAlternativeName; + +#endif /* __IAlternativeName_FWD_DEFINED__ */ + + +#ifndef __IAlternativeNames_FWD_DEFINED__ +#define __IAlternativeNames_FWD_DEFINED__ +typedef interface IAlternativeNames IAlternativeNames; + +#endif /* __IAlternativeNames_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionAlternativeNames_FWD_DEFINED__ +#define __IX509ExtensionAlternativeNames_FWD_DEFINED__ +typedef interface IX509ExtensionAlternativeNames IX509ExtensionAlternativeNames; + +#endif /* __IX509ExtensionAlternativeNames_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionBasicConstraints_FWD_DEFINED__ +#define __IX509ExtensionBasicConstraints_FWD_DEFINED__ +typedef interface IX509ExtensionBasicConstraints IX509ExtensionBasicConstraints; + +#endif /* __IX509ExtensionBasicConstraints_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionSubjectKeyIdentifier_FWD_DEFINED__ +#define __IX509ExtensionSubjectKeyIdentifier_FWD_DEFINED__ +typedef interface IX509ExtensionSubjectKeyIdentifier IX509ExtensionSubjectKeyIdentifier; + +#endif /* __IX509ExtensionSubjectKeyIdentifier_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionAuthorityKeyIdentifier_FWD_DEFINED__ +#define __IX509ExtensionAuthorityKeyIdentifier_FWD_DEFINED__ +typedef interface IX509ExtensionAuthorityKeyIdentifier IX509ExtensionAuthorityKeyIdentifier; + +#endif /* __IX509ExtensionAuthorityKeyIdentifier_FWD_DEFINED__ */ + + +#ifndef __ISmimeCapability_FWD_DEFINED__ +#define __ISmimeCapability_FWD_DEFINED__ +typedef interface ISmimeCapability ISmimeCapability; + +#endif /* __ISmimeCapability_FWD_DEFINED__ */ + + +#ifndef __ISmimeCapabilities_FWD_DEFINED__ +#define __ISmimeCapabilities_FWD_DEFINED__ +typedef interface ISmimeCapabilities ISmimeCapabilities; + +#endif /* __ISmimeCapabilities_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionSmimeCapabilities_FWD_DEFINED__ +#define __IX509ExtensionSmimeCapabilities_FWD_DEFINED__ +typedef interface IX509ExtensionSmimeCapabilities IX509ExtensionSmimeCapabilities; + +#endif /* __IX509ExtensionSmimeCapabilities_FWD_DEFINED__ */ + + +#ifndef __IPolicyQualifier_FWD_DEFINED__ +#define __IPolicyQualifier_FWD_DEFINED__ +typedef interface IPolicyQualifier IPolicyQualifier; + +#endif /* __IPolicyQualifier_FWD_DEFINED__ */ + + +#ifndef __IPolicyQualifiers_FWD_DEFINED__ +#define __IPolicyQualifiers_FWD_DEFINED__ +typedef interface IPolicyQualifiers IPolicyQualifiers; + +#endif /* __IPolicyQualifiers_FWD_DEFINED__ */ + + +#ifndef __ICertificatePolicy_FWD_DEFINED__ +#define __ICertificatePolicy_FWD_DEFINED__ +typedef interface ICertificatePolicy ICertificatePolicy; + +#endif /* __ICertificatePolicy_FWD_DEFINED__ */ + + +#ifndef __ICertificatePolicies_FWD_DEFINED__ +#define __ICertificatePolicies_FWD_DEFINED__ +typedef interface ICertificatePolicies ICertificatePolicies; + +#endif /* __ICertificatePolicies_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionCertificatePolicies_FWD_DEFINED__ +#define __IX509ExtensionCertificatePolicies_FWD_DEFINED__ +typedef interface IX509ExtensionCertificatePolicies IX509ExtensionCertificatePolicies; + +#endif /* __IX509ExtensionCertificatePolicies_FWD_DEFINED__ */ + + +#ifndef __IX509ExtensionMSApplicationPolicies_FWD_DEFINED__ +#define __IX509ExtensionMSApplicationPolicies_FWD_DEFINED__ +typedef interface IX509ExtensionMSApplicationPolicies IX509ExtensionMSApplicationPolicies; + +#endif /* __IX509ExtensionMSApplicationPolicies_FWD_DEFINED__ */ + + +#ifndef __IX509Attribute_FWD_DEFINED__ +#define __IX509Attribute_FWD_DEFINED__ +typedef interface IX509Attribute IX509Attribute; + +#endif /* __IX509Attribute_FWD_DEFINED__ */ + + +#ifndef __IX509Attributes_FWD_DEFINED__ +#define __IX509Attributes_FWD_DEFINED__ +typedef interface IX509Attributes IX509Attributes; + +#endif /* __IX509Attributes_FWD_DEFINED__ */ + + +#ifndef __IX509AttributeExtensions_FWD_DEFINED__ +#define __IX509AttributeExtensions_FWD_DEFINED__ +typedef interface IX509AttributeExtensions IX509AttributeExtensions; + +#endif /* __IX509AttributeExtensions_FWD_DEFINED__ */ + + +#ifndef __IX509AttributeClientId_FWD_DEFINED__ +#define __IX509AttributeClientId_FWD_DEFINED__ +typedef interface IX509AttributeClientId IX509AttributeClientId; + +#endif /* __IX509AttributeClientId_FWD_DEFINED__ */ + + +#ifndef __IX509AttributeRenewalCertificate_FWD_DEFINED__ +#define __IX509AttributeRenewalCertificate_FWD_DEFINED__ +typedef interface IX509AttributeRenewalCertificate IX509AttributeRenewalCertificate; + +#endif /* __IX509AttributeRenewalCertificate_FWD_DEFINED__ */ + + +#ifndef __IX509AttributeArchiveKey_FWD_DEFINED__ +#define __IX509AttributeArchiveKey_FWD_DEFINED__ +typedef interface IX509AttributeArchiveKey IX509AttributeArchiveKey; + +#endif /* __IX509AttributeArchiveKey_FWD_DEFINED__ */ + + +#ifndef __IX509AttributeArchiveKeyHash_FWD_DEFINED__ +#define __IX509AttributeArchiveKeyHash_FWD_DEFINED__ +typedef interface IX509AttributeArchiveKeyHash IX509AttributeArchiveKeyHash; + +#endif /* __IX509AttributeArchiveKeyHash_FWD_DEFINED__ */ + + +#ifndef __IX509AttributeOSVersion_FWD_DEFINED__ +#define __IX509AttributeOSVersion_FWD_DEFINED__ +typedef interface IX509AttributeOSVersion IX509AttributeOSVersion; + +#endif /* __IX509AttributeOSVersion_FWD_DEFINED__ */ + + +#ifndef __IX509AttributeCspProvider_FWD_DEFINED__ +#define __IX509AttributeCspProvider_FWD_DEFINED__ +typedef interface IX509AttributeCspProvider IX509AttributeCspProvider; + +#endif /* __IX509AttributeCspProvider_FWD_DEFINED__ */ + + +#ifndef __ICryptAttribute_FWD_DEFINED__ +#define __ICryptAttribute_FWD_DEFINED__ +typedef interface ICryptAttribute ICryptAttribute; + +#endif /* __ICryptAttribute_FWD_DEFINED__ */ + + +#ifndef __ICryptAttributes_FWD_DEFINED__ +#define __ICryptAttributes_FWD_DEFINED__ +typedef interface ICryptAttributes ICryptAttributes; + +#endif /* __ICryptAttributes_FWD_DEFINED__ */ + + +#ifndef __ICertProperty_FWD_DEFINED__ +#define __ICertProperty_FWD_DEFINED__ +typedef interface ICertProperty ICertProperty; + +#endif /* __ICertProperty_FWD_DEFINED__ */ + + +#ifndef __ICertProperties_FWD_DEFINED__ +#define __ICertProperties_FWD_DEFINED__ +typedef interface ICertProperties ICertProperties; + +#endif /* __ICertProperties_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyFriendlyName_FWD_DEFINED__ +#define __ICertPropertyFriendlyName_FWD_DEFINED__ +typedef interface ICertPropertyFriendlyName ICertPropertyFriendlyName; + +#endif /* __ICertPropertyFriendlyName_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyDescription_FWD_DEFINED__ +#define __ICertPropertyDescription_FWD_DEFINED__ +typedef interface ICertPropertyDescription ICertPropertyDescription; + +#endif /* __ICertPropertyDescription_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyAutoEnroll_FWD_DEFINED__ +#define __ICertPropertyAutoEnroll_FWD_DEFINED__ +typedef interface ICertPropertyAutoEnroll ICertPropertyAutoEnroll; + +#endif /* __ICertPropertyAutoEnroll_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyRequestOriginator_FWD_DEFINED__ +#define __ICertPropertyRequestOriginator_FWD_DEFINED__ +typedef interface ICertPropertyRequestOriginator ICertPropertyRequestOriginator; + +#endif /* __ICertPropertyRequestOriginator_FWD_DEFINED__ */ + + +#ifndef __ICertPropertySHA1Hash_FWD_DEFINED__ +#define __ICertPropertySHA1Hash_FWD_DEFINED__ +typedef interface ICertPropertySHA1Hash ICertPropertySHA1Hash; + +#endif /* __ICertPropertySHA1Hash_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyKeyProvInfo_FWD_DEFINED__ +#define __ICertPropertyKeyProvInfo_FWD_DEFINED__ +typedef interface ICertPropertyKeyProvInfo ICertPropertyKeyProvInfo; + +#endif /* __ICertPropertyKeyProvInfo_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyArchived_FWD_DEFINED__ +#define __ICertPropertyArchived_FWD_DEFINED__ +typedef interface ICertPropertyArchived ICertPropertyArchived; + +#endif /* __ICertPropertyArchived_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyBackedUp_FWD_DEFINED__ +#define __ICertPropertyBackedUp_FWD_DEFINED__ +typedef interface ICertPropertyBackedUp ICertPropertyBackedUp; + +#endif /* __ICertPropertyBackedUp_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyEnrollment_FWD_DEFINED__ +#define __ICertPropertyEnrollment_FWD_DEFINED__ +typedef interface ICertPropertyEnrollment ICertPropertyEnrollment; + +#endif /* __ICertPropertyEnrollment_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyRenewal_FWD_DEFINED__ +#define __ICertPropertyRenewal_FWD_DEFINED__ +typedef interface ICertPropertyRenewal ICertPropertyRenewal; + +#endif /* __ICertPropertyRenewal_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyArchivedKeyHash_FWD_DEFINED__ +#define __ICertPropertyArchivedKeyHash_FWD_DEFINED__ +typedef interface ICertPropertyArchivedKeyHash ICertPropertyArchivedKeyHash; + +#endif /* __ICertPropertyArchivedKeyHash_FWD_DEFINED__ */ + + +#ifndef __ICertPropertyEnrollmentPolicyServer_FWD_DEFINED__ +#define __ICertPropertyEnrollmentPolicyServer_FWD_DEFINED__ +typedef interface ICertPropertyEnrollmentPolicyServer ICertPropertyEnrollmentPolicyServer; + +#endif /* __ICertPropertyEnrollmentPolicyServer_FWD_DEFINED__ */ + + +#ifndef __IX509SignatureInformation_FWD_DEFINED__ +#define __IX509SignatureInformation_FWD_DEFINED__ +typedef interface IX509SignatureInformation IX509SignatureInformation; + +#endif /* __IX509SignatureInformation_FWD_DEFINED__ */ + + +#ifndef __ISignerCertificate_FWD_DEFINED__ +#define __ISignerCertificate_FWD_DEFINED__ +typedef interface ISignerCertificate ISignerCertificate; + +#endif /* __ISignerCertificate_FWD_DEFINED__ */ + + +#ifndef __ISignerCertificates_FWD_DEFINED__ +#define __ISignerCertificates_FWD_DEFINED__ +typedef interface ISignerCertificates ISignerCertificates; + +#endif /* __ISignerCertificates_FWD_DEFINED__ */ + + +#ifndef __IX509NameValuePair_FWD_DEFINED__ +#define __IX509NameValuePair_FWD_DEFINED__ +typedef interface IX509NameValuePair IX509NameValuePair; + +#endif /* __IX509NameValuePair_FWD_DEFINED__ */ + + +#ifndef __IX509NameValuePairs_FWD_DEFINED__ +#define __IX509NameValuePairs_FWD_DEFINED__ +typedef interface IX509NameValuePairs IX509NameValuePairs; + +#endif /* __IX509NameValuePairs_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateTemplate_FWD_DEFINED__ +#define __IX509CertificateTemplate_FWD_DEFINED__ +typedef interface IX509CertificateTemplate IX509CertificateTemplate; + +#endif /* __IX509CertificateTemplate_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateTemplates_FWD_DEFINED__ +#define __IX509CertificateTemplates_FWD_DEFINED__ +typedef interface IX509CertificateTemplates IX509CertificateTemplates; + +#endif /* __IX509CertificateTemplates_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateTemplateWritable_FWD_DEFINED__ +#define __IX509CertificateTemplateWritable_FWD_DEFINED__ +typedef interface IX509CertificateTemplateWritable IX509CertificateTemplateWritable; + +#endif /* __IX509CertificateTemplateWritable_FWD_DEFINED__ */ + + +#ifndef __ICertificationAuthority_FWD_DEFINED__ +#define __ICertificationAuthority_FWD_DEFINED__ +typedef interface ICertificationAuthority ICertificationAuthority; + +#endif /* __ICertificationAuthority_FWD_DEFINED__ */ + + +#ifndef __ICertificationAuthorities_FWD_DEFINED__ +#define __ICertificationAuthorities_FWD_DEFINED__ +typedef interface ICertificationAuthorities ICertificationAuthorities; + +#endif /* __ICertificationAuthorities_FWD_DEFINED__ */ + + +#ifndef __IX509EnrollmentPolicyServer_FWD_DEFINED__ +#define __IX509EnrollmentPolicyServer_FWD_DEFINED__ +typedef interface IX509EnrollmentPolicyServer IX509EnrollmentPolicyServer; + +#endif /* __IX509EnrollmentPolicyServer_FWD_DEFINED__ */ + + +#ifndef __IX509PolicyServerUrl_FWD_DEFINED__ +#define __IX509PolicyServerUrl_FWD_DEFINED__ +typedef interface IX509PolicyServerUrl IX509PolicyServerUrl; + +#endif /* __IX509PolicyServerUrl_FWD_DEFINED__ */ + + +#ifndef __IX509PolicyServerListManager_FWD_DEFINED__ +#define __IX509PolicyServerListManager_FWD_DEFINED__ +typedef interface IX509PolicyServerListManager IX509PolicyServerListManager; + +#endif /* __IX509PolicyServerListManager_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequest_FWD_DEFINED__ +#define __IX509CertificateRequest_FWD_DEFINED__ +typedef interface IX509CertificateRequest IX509CertificateRequest; + +#endif /* __IX509CertificateRequest_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequestPkcs10_FWD_DEFINED__ +#define __IX509CertificateRequestPkcs10_FWD_DEFINED__ +typedef interface IX509CertificateRequestPkcs10 IX509CertificateRequestPkcs10; + +#endif /* __IX509CertificateRequestPkcs10_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequestPkcs10V2_FWD_DEFINED__ +#define __IX509CertificateRequestPkcs10V2_FWD_DEFINED__ +typedef interface IX509CertificateRequestPkcs10V2 IX509CertificateRequestPkcs10V2; + +#endif /* __IX509CertificateRequestPkcs10V2_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequestPkcs10V3_FWD_DEFINED__ +#define __IX509CertificateRequestPkcs10V3_FWD_DEFINED__ +typedef interface IX509CertificateRequestPkcs10V3 IX509CertificateRequestPkcs10V3; + +#endif /* __IX509CertificateRequestPkcs10V3_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequestPkcs10V4_FWD_DEFINED__ +#define __IX509CertificateRequestPkcs10V4_FWD_DEFINED__ +typedef interface IX509CertificateRequestPkcs10V4 IX509CertificateRequestPkcs10V4; + +#endif /* __IX509CertificateRequestPkcs10V4_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequestCertificate_FWD_DEFINED__ +#define __IX509CertificateRequestCertificate_FWD_DEFINED__ +typedef interface IX509CertificateRequestCertificate IX509CertificateRequestCertificate; + +#endif /* __IX509CertificateRequestCertificate_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequestCertificate2_FWD_DEFINED__ +#define __IX509CertificateRequestCertificate2_FWD_DEFINED__ +typedef interface IX509CertificateRequestCertificate2 IX509CertificateRequestCertificate2; + +#endif /* __IX509CertificateRequestCertificate2_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequestPkcs7_FWD_DEFINED__ +#define __IX509CertificateRequestPkcs7_FWD_DEFINED__ +typedef interface IX509CertificateRequestPkcs7 IX509CertificateRequestPkcs7; + +#endif /* __IX509CertificateRequestPkcs7_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequestPkcs7V2_FWD_DEFINED__ +#define __IX509CertificateRequestPkcs7V2_FWD_DEFINED__ +typedef interface IX509CertificateRequestPkcs7V2 IX509CertificateRequestPkcs7V2; + +#endif /* __IX509CertificateRequestPkcs7V2_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequestCmc_FWD_DEFINED__ +#define __IX509CertificateRequestCmc_FWD_DEFINED__ +typedef interface IX509CertificateRequestCmc IX509CertificateRequestCmc; + +#endif /* __IX509CertificateRequestCmc_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRequestCmc2_FWD_DEFINED__ +#define __IX509CertificateRequestCmc2_FWD_DEFINED__ +typedef interface IX509CertificateRequestCmc2 IX509CertificateRequestCmc2; + +#endif /* __IX509CertificateRequestCmc2_FWD_DEFINED__ */ + + +#ifndef __IX509Enrollment_FWD_DEFINED__ +#define __IX509Enrollment_FWD_DEFINED__ +typedef interface IX509Enrollment IX509Enrollment; + +#endif /* __IX509Enrollment_FWD_DEFINED__ */ + + +#ifndef __IX509Enrollment2_FWD_DEFINED__ +#define __IX509Enrollment2_FWD_DEFINED__ +typedef interface IX509Enrollment2 IX509Enrollment2; + +#endif /* __IX509Enrollment2_FWD_DEFINED__ */ + + +#ifndef __IX509EnrollmentHelper_FWD_DEFINED__ +#define __IX509EnrollmentHelper_FWD_DEFINED__ +typedef interface IX509EnrollmentHelper IX509EnrollmentHelper; + +#endif /* __IX509EnrollmentHelper_FWD_DEFINED__ */ + + +#ifndef __IX509EnrollmentWebClassFactory_FWD_DEFINED__ +#define __IX509EnrollmentWebClassFactory_FWD_DEFINED__ +typedef interface IX509EnrollmentWebClassFactory IX509EnrollmentWebClassFactory; + +#endif /* __IX509EnrollmentWebClassFactory_FWD_DEFINED__ */ + + +#ifndef __IX509MachineEnrollmentFactory_FWD_DEFINED__ +#define __IX509MachineEnrollmentFactory_FWD_DEFINED__ +typedef interface IX509MachineEnrollmentFactory IX509MachineEnrollmentFactory; + +#endif /* __IX509MachineEnrollmentFactory_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRevocationListEntry_FWD_DEFINED__ +#define __IX509CertificateRevocationListEntry_FWD_DEFINED__ +typedef interface IX509CertificateRevocationListEntry IX509CertificateRevocationListEntry; + +#endif /* __IX509CertificateRevocationListEntry_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRevocationListEntries_FWD_DEFINED__ +#define __IX509CertificateRevocationListEntries_FWD_DEFINED__ +typedef interface IX509CertificateRevocationListEntries IX509CertificateRevocationListEntries; + +#endif /* __IX509CertificateRevocationListEntries_FWD_DEFINED__ */ + + +#ifndef __IX509CertificateRevocationList_FWD_DEFINED__ +#define __IX509CertificateRevocationList_FWD_DEFINED__ +typedef interface IX509CertificateRevocationList IX509CertificateRevocationList; + +#endif /* __IX509CertificateRevocationList_FWD_DEFINED__ */ + + +#ifndef __ICertificateAttestationChallenge_FWD_DEFINED__ +#define __ICertificateAttestationChallenge_FWD_DEFINED__ +typedef interface ICertificateAttestationChallenge ICertificateAttestationChallenge; + +#endif /* __ICertificateAttestationChallenge_FWD_DEFINED__ */ + + +#ifndef __ICertificateAttestationChallenge2_FWD_DEFINED__ +#define __ICertificateAttestationChallenge2_FWD_DEFINED__ +typedef interface ICertificateAttestationChallenge2 ICertificateAttestationChallenge2; + +#endif /* __ICertificateAttestationChallenge2_FWD_DEFINED__ */ + + +#ifndef __IX509SCEPEnrollment_FWD_DEFINED__ +#define __IX509SCEPEnrollment_FWD_DEFINED__ +typedef interface IX509SCEPEnrollment IX509SCEPEnrollment; + +#endif /* __IX509SCEPEnrollment_FWD_DEFINED__ */ + + +#ifndef __IX509SCEPEnrollment2_FWD_DEFINED__ +#define __IX509SCEPEnrollment2_FWD_DEFINED__ +typedef interface IX509SCEPEnrollment2 IX509SCEPEnrollment2; + +#endif /* __IX509SCEPEnrollment2_FWD_DEFINED__ */ + + +#ifndef __IX509SCEPEnrollmentHelper_FWD_DEFINED__ +#define __IX509SCEPEnrollmentHelper_FWD_DEFINED__ +typedef interface IX509SCEPEnrollmentHelper IX509SCEPEnrollmentHelper; + +#endif /* __IX509SCEPEnrollmentHelper_FWD_DEFINED__ */ + + +#ifndef __CObjectId_FWD_DEFINED__ +#define __CObjectId_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CObjectId CObjectId; +#else +typedef struct CObjectId CObjectId; +#endif /* __cplusplus */ + +#endif /* __CObjectId_FWD_DEFINED__ */ + + +#ifndef __CObjectIds_FWD_DEFINED__ +#define __CObjectIds_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CObjectIds CObjectIds; +#else +typedef struct CObjectIds CObjectIds; +#endif /* __cplusplus */ + +#endif /* __CObjectIds_FWD_DEFINED__ */ + + +#ifndef __CBinaryConverter_FWD_DEFINED__ +#define __CBinaryConverter_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CBinaryConverter CBinaryConverter; +#else +typedef struct CBinaryConverter CBinaryConverter; +#endif /* __cplusplus */ + +#endif /* __CBinaryConverter_FWD_DEFINED__ */ + + +#ifndef __CX500DistinguishedName_FWD_DEFINED__ +#define __CX500DistinguishedName_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX500DistinguishedName CX500DistinguishedName; +#else +typedef struct CX500DistinguishedName CX500DistinguishedName; +#endif /* __cplusplus */ + +#endif /* __CX500DistinguishedName_FWD_DEFINED__ */ + + +#ifndef __CCspInformation_FWD_DEFINED__ +#define __CCspInformation_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCspInformation CCspInformation; +#else +typedef struct CCspInformation CCspInformation; +#endif /* __cplusplus */ + +#endif /* __CCspInformation_FWD_DEFINED__ */ + + +#ifndef __CCspInformations_FWD_DEFINED__ +#define __CCspInformations_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCspInformations CCspInformations; +#else +typedef struct CCspInformations CCspInformations; +#endif /* __cplusplus */ + +#endif /* __CCspInformations_FWD_DEFINED__ */ + + +#ifndef __CCspStatus_FWD_DEFINED__ +#define __CCspStatus_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCspStatus CCspStatus; +#else +typedef struct CCspStatus CCspStatus; +#endif /* __cplusplus */ + +#endif /* __CCspStatus_FWD_DEFINED__ */ + + +#ifndef __CX509PublicKey_FWD_DEFINED__ +#define __CX509PublicKey_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509PublicKey CX509PublicKey; +#else +typedef struct CX509PublicKey CX509PublicKey; +#endif /* __cplusplus */ + +#endif /* __CX509PublicKey_FWD_DEFINED__ */ + + +#ifndef __CX509PrivateKey_FWD_DEFINED__ +#define __CX509PrivateKey_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509PrivateKey CX509PrivateKey; +#else +typedef struct CX509PrivateKey CX509PrivateKey; +#endif /* __cplusplus */ + +#endif /* __CX509PrivateKey_FWD_DEFINED__ */ + + +#ifndef __CX509EndorsementKey_FWD_DEFINED__ +#define __CX509EndorsementKey_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509EndorsementKey CX509EndorsementKey; +#else +typedef struct CX509EndorsementKey CX509EndorsementKey; +#endif /* __cplusplus */ + +#endif /* __CX509EndorsementKey_FWD_DEFINED__ */ + + +#ifndef __CX509Extension_FWD_DEFINED__ +#define __CX509Extension_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509Extension CX509Extension; +#else +typedef struct CX509Extension CX509Extension; +#endif /* __cplusplus */ + +#endif /* __CX509Extension_FWD_DEFINED__ */ + + +#ifndef __CX509Extensions_FWD_DEFINED__ +#define __CX509Extensions_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509Extensions CX509Extensions; +#else +typedef struct CX509Extensions CX509Extensions; +#endif /* __cplusplus */ + +#endif /* __CX509Extensions_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionKeyUsage_FWD_DEFINED__ +#define __CX509ExtensionKeyUsage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionKeyUsage CX509ExtensionKeyUsage; +#else +typedef struct CX509ExtensionKeyUsage CX509ExtensionKeyUsage; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionKeyUsage_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionEnhancedKeyUsage_FWD_DEFINED__ +#define __CX509ExtensionEnhancedKeyUsage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionEnhancedKeyUsage CX509ExtensionEnhancedKeyUsage; +#else +typedef struct CX509ExtensionEnhancedKeyUsage CX509ExtensionEnhancedKeyUsage; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionEnhancedKeyUsage_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionTemplateName_FWD_DEFINED__ +#define __CX509ExtensionTemplateName_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionTemplateName CX509ExtensionTemplateName; +#else +typedef struct CX509ExtensionTemplateName CX509ExtensionTemplateName; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionTemplateName_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionTemplate_FWD_DEFINED__ +#define __CX509ExtensionTemplate_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionTemplate CX509ExtensionTemplate; +#else +typedef struct CX509ExtensionTemplate CX509ExtensionTemplate; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionTemplate_FWD_DEFINED__ */ + + +#ifndef __CAlternativeName_FWD_DEFINED__ +#define __CAlternativeName_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CAlternativeName CAlternativeName; +#else +typedef struct CAlternativeName CAlternativeName; +#endif /* __cplusplus */ + +#endif /* __CAlternativeName_FWD_DEFINED__ */ + + +#ifndef __CAlternativeNames_FWD_DEFINED__ +#define __CAlternativeNames_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CAlternativeNames CAlternativeNames; +#else +typedef struct CAlternativeNames CAlternativeNames; +#endif /* __cplusplus */ + +#endif /* __CAlternativeNames_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionAlternativeNames_FWD_DEFINED__ +#define __CX509ExtensionAlternativeNames_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionAlternativeNames CX509ExtensionAlternativeNames; +#else +typedef struct CX509ExtensionAlternativeNames CX509ExtensionAlternativeNames; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionAlternativeNames_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionBasicConstraints_FWD_DEFINED__ +#define __CX509ExtensionBasicConstraints_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionBasicConstraints CX509ExtensionBasicConstraints; +#else +typedef struct CX509ExtensionBasicConstraints CX509ExtensionBasicConstraints; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionBasicConstraints_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionSubjectKeyIdentifier_FWD_DEFINED__ +#define __CX509ExtensionSubjectKeyIdentifier_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionSubjectKeyIdentifier CX509ExtensionSubjectKeyIdentifier; +#else +typedef struct CX509ExtensionSubjectKeyIdentifier CX509ExtensionSubjectKeyIdentifier; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionSubjectKeyIdentifier_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionAuthorityKeyIdentifier_FWD_DEFINED__ +#define __CX509ExtensionAuthorityKeyIdentifier_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionAuthorityKeyIdentifier CX509ExtensionAuthorityKeyIdentifier; +#else +typedef struct CX509ExtensionAuthorityKeyIdentifier CX509ExtensionAuthorityKeyIdentifier; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionAuthorityKeyIdentifier_FWD_DEFINED__ */ + + +#ifndef __CSmimeCapability_FWD_DEFINED__ +#define __CSmimeCapability_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CSmimeCapability CSmimeCapability; +#else +typedef struct CSmimeCapability CSmimeCapability; +#endif /* __cplusplus */ + +#endif /* __CSmimeCapability_FWD_DEFINED__ */ + + +#ifndef __CSmimeCapabilities_FWD_DEFINED__ +#define __CSmimeCapabilities_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CSmimeCapabilities CSmimeCapabilities; +#else +typedef struct CSmimeCapabilities CSmimeCapabilities; +#endif /* __cplusplus */ + +#endif /* __CSmimeCapabilities_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionSmimeCapabilities_FWD_DEFINED__ +#define __CX509ExtensionSmimeCapabilities_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionSmimeCapabilities CX509ExtensionSmimeCapabilities; +#else +typedef struct CX509ExtensionSmimeCapabilities CX509ExtensionSmimeCapabilities; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionSmimeCapabilities_FWD_DEFINED__ */ + + +#ifndef __CPolicyQualifier_FWD_DEFINED__ +#define __CPolicyQualifier_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CPolicyQualifier CPolicyQualifier; +#else +typedef struct CPolicyQualifier CPolicyQualifier; +#endif /* __cplusplus */ + +#endif /* __CPolicyQualifier_FWD_DEFINED__ */ + + +#ifndef __CPolicyQualifiers_FWD_DEFINED__ +#define __CPolicyQualifiers_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CPolicyQualifiers CPolicyQualifiers; +#else +typedef struct CPolicyQualifiers CPolicyQualifiers; +#endif /* __cplusplus */ + +#endif /* __CPolicyQualifiers_FWD_DEFINED__ */ + + +#ifndef __CCertificatePolicy_FWD_DEFINED__ +#define __CCertificatePolicy_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertificatePolicy CCertificatePolicy; +#else +typedef struct CCertificatePolicy CCertificatePolicy; +#endif /* __cplusplus */ + +#endif /* __CCertificatePolicy_FWD_DEFINED__ */ + + +#ifndef __CCertificatePolicies_FWD_DEFINED__ +#define __CCertificatePolicies_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertificatePolicies CCertificatePolicies; +#else +typedef struct CCertificatePolicies CCertificatePolicies; +#endif /* __cplusplus */ + +#endif /* __CCertificatePolicies_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionCertificatePolicies_FWD_DEFINED__ +#define __CX509ExtensionCertificatePolicies_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionCertificatePolicies CX509ExtensionCertificatePolicies; +#else +typedef struct CX509ExtensionCertificatePolicies CX509ExtensionCertificatePolicies; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionCertificatePolicies_FWD_DEFINED__ */ + + +#ifndef __CX509ExtensionMSApplicationPolicies_FWD_DEFINED__ +#define __CX509ExtensionMSApplicationPolicies_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509ExtensionMSApplicationPolicies CX509ExtensionMSApplicationPolicies; +#else +typedef struct CX509ExtensionMSApplicationPolicies CX509ExtensionMSApplicationPolicies; +#endif /* __cplusplus */ + +#endif /* __CX509ExtensionMSApplicationPolicies_FWD_DEFINED__ */ + + +#ifndef __CX509Attribute_FWD_DEFINED__ +#define __CX509Attribute_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509Attribute CX509Attribute; +#else +typedef struct CX509Attribute CX509Attribute; +#endif /* __cplusplus */ + +#endif /* __CX509Attribute_FWD_DEFINED__ */ + + +#ifndef __CX509Attributes_FWD_DEFINED__ +#define __CX509Attributes_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509Attributes CX509Attributes; +#else +typedef struct CX509Attributes CX509Attributes; +#endif /* __cplusplus */ + +#endif /* __CX509Attributes_FWD_DEFINED__ */ + + +#ifndef __CX509AttributeExtensions_FWD_DEFINED__ +#define __CX509AttributeExtensions_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509AttributeExtensions CX509AttributeExtensions; +#else +typedef struct CX509AttributeExtensions CX509AttributeExtensions; +#endif /* __cplusplus */ + +#endif /* __CX509AttributeExtensions_FWD_DEFINED__ */ + + +#ifndef __CX509AttributeClientId_FWD_DEFINED__ +#define __CX509AttributeClientId_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509AttributeClientId CX509AttributeClientId; +#else +typedef struct CX509AttributeClientId CX509AttributeClientId; +#endif /* __cplusplus */ + +#endif /* __CX509AttributeClientId_FWD_DEFINED__ */ + + +#ifndef __CX509AttributeRenewalCertificate_FWD_DEFINED__ +#define __CX509AttributeRenewalCertificate_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509AttributeRenewalCertificate CX509AttributeRenewalCertificate; +#else +typedef struct CX509AttributeRenewalCertificate CX509AttributeRenewalCertificate; +#endif /* __cplusplus */ + +#endif /* __CX509AttributeRenewalCertificate_FWD_DEFINED__ */ + + +#ifndef __CX509AttributeArchiveKey_FWD_DEFINED__ +#define __CX509AttributeArchiveKey_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509AttributeArchiveKey CX509AttributeArchiveKey; +#else +typedef struct CX509AttributeArchiveKey CX509AttributeArchiveKey; +#endif /* __cplusplus */ + +#endif /* __CX509AttributeArchiveKey_FWD_DEFINED__ */ + + +#ifndef __CX509AttributeArchiveKeyHash_FWD_DEFINED__ +#define __CX509AttributeArchiveKeyHash_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509AttributeArchiveKeyHash CX509AttributeArchiveKeyHash; +#else +typedef struct CX509AttributeArchiveKeyHash CX509AttributeArchiveKeyHash; +#endif /* __cplusplus */ + +#endif /* __CX509AttributeArchiveKeyHash_FWD_DEFINED__ */ + + +#ifndef __CX509AttributeOSVersion_FWD_DEFINED__ +#define __CX509AttributeOSVersion_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509AttributeOSVersion CX509AttributeOSVersion; +#else +typedef struct CX509AttributeOSVersion CX509AttributeOSVersion; +#endif /* __cplusplus */ + +#endif /* __CX509AttributeOSVersion_FWD_DEFINED__ */ + + +#ifndef __CX509AttributeCspProvider_FWD_DEFINED__ +#define __CX509AttributeCspProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509AttributeCspProvider CX509AttributeCspProvider; +#else +typedef struct CX509AttributeCspProvider CX509AttributeCspProvider; +#endif /* __cplusplus */ + +#endif /* __CX509AttributeCspProvider_FWD_DEFINED__ */ + + +#ifndef __CCryptAttribute_FWD_DEFINED__ +#define __CCryptAttribute_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCryptAttribute CCryptAttribute; +#else +typedef struct CCryptAttribute CCryptAttribute; +#endif /* __cplusplus */ + +#endif /* __CCryptAttribute_FWD_DEFINED__ */ + + +#ifndef __CCryptAttributes_FWD_DEFINED__ +#define __CCryptAttributes_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCryptAttributes CCryptAttributes; +#else +typedef struct CCryptAttributes CCryptAttributes; +#endif /* __cplusplus */ + +#endif /* __CCryptAttributes_FWD_DEFINED__ */ + + +#ifndef __CCertProperty_FWD_DEFINED__ +#define __CCertProperty_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertProperty CCertProperty; +#else +typedef struct CCertProperty CCertProperty; +#endif /* __cplusplus */ + +#endif /* __CCertProperty_FWD_DEFINED__ */ + + +#ifndef __CCertProperties_FWD_DEFINED__ +#define __CCertProperties_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertProperties CCertProperties; +#else +typedef struct CCertProperties CCertProperties; +#endif /* __cplusplus */ + +#endif /* __CCertProperties_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyFriendlyName_FWD_DEFINED__ +#define __CCertPropertyFriendlyName_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyFriendlyName CCertPropertyFriendlyName; +#else +typedef struct CCertPropertyFriendlyName CCertPropertyFriendlyName; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyFriendlyName_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyDescription_FWD_DEFINED__ +#define __CCertPropertyDescription_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyDescription CCertPropertyDescription; +#else +typedef struct CCertPropertyDescription CCertPropertyDescription; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyDescription_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyAutoEnroll_FWD_DEFINED__ +#define __CCertPropertyAutoEnroll_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyAutoEnroll CCertPropertyAutoEnroll; +#else +typedef struct CCertPropertyAutoEnroll CCertPropertyAutoEnroll; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyAutoEnroll_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyRequestOriginator_FWD_DEFINED__ +#define __CCertPropertyRequestOriginator_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyRequestOriginator CCertPropertyRequestOriginator; +#else +typedef struct CCertPropertyRequestOriginator CCertPropertyRequestOriginator; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyRequestOriginator_FWD_DEFINED__ */ + + +#ifndef __CCertPropertySHA1Hash_FWD_DEFINED__ +#define __CCertPropertySHA1Hash_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertySHA1Hash CCertPropertySHA1Hash; +#else +typedef struct CCertPropertySHA1Hash CCertPropertySHA1Hash; +#endif /* __cplusplus */ + +#endif /* __CCertPropertySHA1Hash_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyKeyProvInfo_FWD_DEFINED__ +#define __CCertPropertyKeyProvInfo_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyKeyProvInfo CCertPropertyKeyProvInfo; +#else +typedef struct CCertPropertyKeyProvInfo CCertPropertyKeyProvInfo; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyKeyProvInfo_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyArchived_FWD_DEFINED__ +#define __CCertPropertyArchived_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyArchived CCertPropertyArchived; +#else +typedef struct CCertPropertyArchived CCertPropertyArchived; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyArchived_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyBackedUp_FWD_DEFINED__ +#define __CCertPropertyBackedUp_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyBackedUp CCertPropertyBackedUp; +#else +typedef struct CCertPropertyBackedUp CCertPropertyBackedUp; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyBackedUp_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyEnrollment_FWD_DEFINED__ +#define __CCertPropertyEnrollment_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyEnrollment CCertPropertyEnrollment; +#else +typedef struct CCertPropertyEnrollment CCertPropertyEnrollment; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyEnrollment_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyRenewal_FWD_DEFINED__ +#define __CCertPropertyRenewal_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyRenewal CCertPropertyRenewal; +#else +typedef struct CCertPropertyRenewal CCertPropertyRenewal; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyRenewal_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyArchivedKeyHash_FWD_DEFINED__ +#define __CCertPropertyArchivedKeyHash_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyArchivedKeyHash CCertPropertyArchivedKeyHash; +#else +typedef struct CCertPropertyArchivedKeyHash CCertPropertyArchivedKeyHash; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyArchivedKeyHash_FWD_DEFINED__ */ + + +#ifndef __CCertPropertyEnrollmentPolicyServer_FWD_DEFINED__ +#define __CCertPropertyEnrollmentPolicyServer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertPropertyEnrollmentPolicyServer CCertPropertyEnrollmentPolicyServer; +#else +typedef struct CCertPropertyEnrollmentPolicyServer CCertPropertyEnrollmentPolicyServer; +#endif /* __cplusplus */ + +#endif /* __CCertPropertyEnrollmentPolicyServer_FWD_DEFINED__ */ + + +#ifndef __CSignerCertificate_FWD_DEFINED__ +#define __CSignerCertificate_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CSignerCertificate CSignerCertificate; +#else +typedef struct CSignerCertificate CSignerCertificate; +#endif /* __cplusplus */ + +#endif /* __CSignerCertificate_FWD_DEFINED__ */ + + +#ifndef __CX509NameValuePair_FWD_DEFINED__ +#define __CX509NameValuePair_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509NameValuePair CX509NameValuePair; +#else +typedef struct CX509NameValuePair CX509NameValuePair; +#endif /* __cplusplus */ + +#endif /* __CX509NameValuePair_FWD_DEFINED__ */ + + +#ifndef __CCertificateAttestationChallenge_FWD_DEFINED__ +#define __CCertificateAttestationChallenge_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CCertificateAttestationChallenge CCertificateAttestationChallenge; +#else +typedef struct CCertificateAttestationChallenge CCertificateAttestationChallenge; +#endif /* __cplusplus */ + +#endif /* __CCertificateAttestationChallenge_FWD_DEFINED__ */ + + +#ifndef __CX509CertificateRequestPkcs10_FWD_DEFINED__ +#define __CX509CertificateRequestPkcs10_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509CertificateRequestPkcs10 CX509CertificateRequestPkcs10; +#else +typedef struct CX509CertificateRequestPkcs10 CX509CertificateRequestPkcs10; +#endif /* __cplusplus */ + +#endif /* __CX509CertificateRequestPkcs10_FWD_DEFINED__ */ + + +#ifndef __CX509CertificateRequestCertificate_FWD_DEFINED__ +#define __CX509CertificateRequestCertificate_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509CertificateRequestCertificate CX509CertificateRequestCertificate; +#else +typedef struct CX509CertificateRequestCertificate CX509CertificateRequestCertificate; +#endif /* __cplusplus */ + +#endif /* __CX509CertificateRequestCertificate_FWD_DEFINED__ */ + + +#ifndef __CX509CertificateRequestPkcs7_FWD_DEFINED__ +#define __CX509CertificateRequestPkcs7_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509CertificateRequestPkcs7 CX509CertificateRequestPkcs7; +#else +typedef struct CX509CertificateRequestPkcs7 CX509CertificateRequestPkcs7; +#endif /* __cplusplus */ + +#endif /* __CX509CertificateRequestPkcs7_FWD_DEFINED__ */ + + +#ifndef __CX509CertificateRequestCmc_FWD_DEFINED__ +#define __CX509CertificateRequestCmc_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509CertificateRequestCmc CX509CertificateRequestCmc; +#else +typedef struct CX509CertificateRequestCmc CX509CertificateRequestCmc; +#endif /* __cplusplus */ + +#endif /* __CX509CertificateRequestCmc_FWD_DEFINED__ */ + + +#ifndef __CX509Enrollment_FWD_DEFINED__ +#define __CX509Enrollment_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509Enrollment CX509Enrollment; +#else +typedef struct CX509Enrollment CX509Enrollment; +#endif /* __cplusplus */ + +#endif /* __CX509Enrollment_FWD_DEFINED__ */ + + +#ifndef __CX509EnrollmentWebClassFactory_FWD_DEFINED__ +#define __CX509EnrollmentWebClassFactory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509EnrollmentWebClassFactory CX509EnrollmentWebClassFactory; +#else +typedef struct CX509EnrollmentWebClassFactory CX509EnrollmentWebClassFactory; +#endif /* __cplusplus */ + +#endif /* __CX509EnrollmentWebClassFactory_FWD_DEFINED__ */ + + +#ifndef __CX509EnrollmentHelper_FWD_DEFINED__ +#define __CX509EnrollmentHelper_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509EnrollmentHelper CX509EnrollmentHelper; +#else +typedef struct CX509EnrollmentHelper CX509EnrollmentHelper; +#endif /* __cplusplus */ + +#endif /* __CX509EnrollmentHelper_FWD_DEFINED__ */ + + +#ifndef __CX509MachineEnrollmentFactory_FWD_DEFINED__ +#define __CX509MachineEnrollmentFactory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509MachineEnrollmentFactory CX509MachineEnrollmentFactory; +#else +typedef struct CX509MachineEnrollmentFactory CX509MachineEnrollmentFactory; +#endif /* __cplusplus */ + +#endif /* __CX509MachineEnrollmentFactory_FWD_DEFINED__ */ + + +#ifndef __CX509EnrollmentPolicyActiveDirectory_FWD_DEFINED__ +#define __CX509EnrollmentPolicyActiveDirectory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509EnrollmentPolicyActiveDirectory CX509EnrollmentPolicyActiveDirectory; +#else +typedef struct CX509EnrollmentPolicyActiveDirectory CX509EnrollmentPolicyActiveDirectory; +#endif /* __cplusplus */ + +#endif /* __CX509EnrollmentPolicyActiveDirectory_FWD_DEFINED__ */ + + +#ifndef __CX509EnrollmentPolicyWebService_FWD_DEFINED__ +#define __CX509EnrollmentPolicyWebService_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509EnrollmentPolicyWebService CX509EnrollmentPolicyWebService; +#else +typedef struct CX509EnrollmentPolicyWebService CX509EnrollmentPolicyWebService; +#endif /* __cplusplus */ + +#endif /* __CX509EnrollmentPolicyWebService_FWD_DEFINED__ */ + + +#ifndef __CX509PolicyServerListManager_FWD_DEFINED__ +#define __CX509PolicyServerListManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509PolicyServerListManager CX509PolicyServerListManager; +#else +typedef struct CX509PolicyServerListManager CX509PolicyServerListManager; +#endif /* __cplusplus */ + +#endif /* __CX509PolicyServerListManager_FWD_DEFINED__ */ + + +#ifndef __CX509PolicyServerUrl_FWD_DEFINED__ +#define __CX509PolicyServerUrl_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509PolicyServerUrl CX509PolicyServerUrl; +#else +typedef struct CX509PolicyServerUrl CX509PolicyServerUrl; +#endif /* __cplusplus */ + +#endif /* __CX509PolicyServerUrl_FWD_DEFINED__ */ + + +#ifndef __CX509CertificateTemplateADWritable_FWD_DEFINED__ +#define __CX509CertificateTemplateADWritable_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509CertificateTemplateADWritable CX509CertificateTemplateADWritable; +#else +typedef struct CX509CertificateTemplateADWritable CX509CertificateTemplateADWritable; +#endif /* __cplusplus */ + +#endif /* __CX509CertificateTemplateADWritable_FWD_DEFINED__ */ + + +#ifndef __CX509CertificateRevocationListEntry_FWD_DEFINED__ +#define __CX509CertificateRevocationListEntry_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509CertificateRevocationListEntry CX509CertificateRevocationListEntry; +#else +typedef struct CX509CertificateRevocationListEntry CX509CertificateRevocationListEntry; +#endif /* __cplusplus */ + +#endif /* __CX509CertificateRevocationListEntry_FWD_DEFINED__ */ + + +#ifndef __CX509CertificateRevocationListEntries_FWD_DEFINED__ +#define __CX509CertificateRevocationListEntries_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509CertificateRevocationListEntries CX509CertificateRevocationListEntries; +#else +typedef struct CX509CertificateRevocationListEntries CX509CertificateRevocationListEntries; +#endif /* __cplusplus */ + +#endif /* __CX509CertificateRevocationListEntries_FWD_DEFINED__ */ + + +#ifndef __CX509CertificateRevocationList_FWD_DEFINED__ +#define __CX509CertificateRevocationList_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509CertificateRevocationList CX509CertificateRevocationList; +#else +typedef struct CX509CertificateRevocationList CX509CertificateRevocationList; +#endif /* __cplusplus */ + +#endif /* __CX509CertificateRevocationList_FWD_DEFINED__ */ + + +#ifndef __CX509SCEPEnrollment_FWD_DEFINED__ +#define __CX509SCEPEnrollment_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509SCEPEnrollment CX509SCEPEnrollment; +#else +typedef struct CX509SCEPEnrollment CX509SCEPEnrollment; +#endif /* __cplusplus */ + +#endif /* __CX509SCEPEnrollment_FWD_DEFINED__ */ + + +#ifndef __CX509SCEPEnrollmentHelper_FWD_DEFINED__ +#define __CX509SCEPEnrollmentHelper_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CX509SCEPEnrollmentHelper CX509SCEPEnrollmentHelper; +#else +typedef struct CX509SCEPEnrollmentHelper CX509SCEPEnrollmentHelper; +#endif /* __cplusplus */ + +#endif /* __CX509SCEPEnrollmentHelper_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "oaidl.h" +#include "certcli.h" +#include "certpol.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certenroll_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if defined(MIDL_PASS) +typedef typedef void VOID; +; + +#endif +typedef +enum CERTENROLL_OBJECTID + { + XCN_OID_NONE = 0, + XCN_OID_RSA = 1, + XCN_OID_PKCS = 2, + XCN_OID_RSA_HASH = 3, + XCN_OID_RSA_ENCRYPT = 4, + XCN_OID_PKCS_1 = 5, + XCN_OID_PKCS_2 = 6, + XCN_OID_PKCS_3 = 7, + XCN_OID_PKCS_4 = 8, + XCN_OID_PKCS_5 = 9, + XCN_OID_PKCS_6 = 10, + XCN_OID_PKCS_7 = 11, + XCN_OID_PKCS_8 = 12, + XCN_OID_PKCS_9 = 13, + XCN_OID_PKCS_10 = 14, + XCN_OID_PKCS_12 = 15, + XCN_OID_RSA_RSA = 16, + XCN_OID_RSA_MD2RSA = 17, + XCN_OID_RSA_MD4RSA = 18, + XCN_OID_RSA_MD5RSA = 19, + XCN_OID_RSA_SHA1RSA = 20, + XCN_OID_RSA_SETOAEP_RSA = 21, + XCN_OID_RSA_DH = 22, + XCN_OID_RSA_data = 23, + XCN_OID_RSA_signedData = 24, + XCN_OID_RSA_envelopedData = 25, + XCN_OID_RSA_signEnvData = 26, + XCN_OID_RSA_digestedData = 27, + XCN_OID_RSA_hashedData = 28, + XCN_OID_RSA_encryptedData = 29, + XCN_OID_RSA_emailAddr = 30, + XCN_OID_RSA_unstructName = 31, + XCN_OID_RSA_contentType = 32, + XCN_OID_RSA_messageDigest = 33, + XCN_OID_RSA_signingTime = 34, + XCN_OID_RSA_counterSign = 35, + XCN_OID_RSA_challengePwd = 36, + XCN_OID_RSA_unstructAddr = 37, + XCN_OID_RSA_extCertAttrs = 38, + XCN_OID_RSA_certExtensions = 39, + XCN_OID_RSA_SMIMECapabilities = 40, + XCN_OID_RSA_preferSignedData = 41, + XCN_OID_RSA_SMIMEalg = 42, + XCN_OID_RSA_SMIMEalgESDH = 43, + XCN_OID_RSA_SMIMEalgCMS3DESwrap = 44, + XCN_OID_RSA_SMIMEalgCMSRC2wrap = 45, + XCN_OID_RSA_MD2 = 46, + XCN_OID_RSA_MD4 = 47, + XCN_OID_RSA_MD5 = 48, + XCN_OID_RSA_RC2CBC = 49, + XCN_OID_RSA_RC4 = 50, + XCN_OID_RSA_DES_EDE3_CBC = 51, + XCN_OID_RSA_RC5_CBCPad = 52, + XCN_OID_ANSI_X942 = 53, + XCN_OID_ANSI_X942_DH = 54, + XCN_OID_X957 = 55, + XCN_OID_X957_DSA = 56, + XCN_OID_X957_SHA1DSA = 57, + XCN_OID_DS = 58, + XCN_OID_DSALG = 59, + XCN_OID_DSALG_CRPT = 60, + XCN_OID_DSALG_HASH = 61, + XCN_OID_DSALG_SIGN = 62, + XCN_OID_DSALG_RSA = 63, + XCN_OID_OIW = 64, + XCN_OID_OIWSEC = 65, + XCN_OID_OIWSEC_md4RSA = 66, + XCN_OID_OIWSEC_md5RSA = 67, + XCN_OID_OIWSEC_md4RSA2 = 68, + XCN_OID_OIWSEC_desECB = 69, + XCN_OID_OIWSEC_desCBC = 70, + XCN_OID_OIWSEC_desOFB = 71, + XCN_OID_OIWSEC_desCFB = 72, + XCN_OID_OIWSEC_desMAC = 73, + XCN_OID_OIWSEC_rsaSign = 74, + XCN_OID_OIWSEC_dsa = 75, + XCN_OID_OIWSEC_shaDSA = 76, + XCN_OID_OIWSEC_mdc2RSA = 77, + XCN_OID_OIWSEC_shaRSA = 78, + XCN_OID_OIWSEC_dhCommMod = 79, + XCN_OID_OIWSEC_desEDE = 80, + XCN_OID_OIWSEC_sha = 81, + XCN_OID_OIWSEC_mdc2 = 82, + XCN_OID_OIWSEC_dsaComm = 83, + XCN_OID_OIWSEC_dsaCommSHA = 84, + XCN_OID_OIWSEC_rsaXchg = 85, + XCN_OID_OIWSEC_keyHashSeal = 86, + XCN_OID_OIWSEC_md2RSASign = 87, + XCN_OID_OIWSEC_md5RSASign = 88, + XCN_OID_OIWSEC_sha1 = 89, + XCN_OID_OIWSEC_dsaSHA1 = 90, + XCN_OID_OIWSEC_dsaCommSHA1 = 91, + XCN_OID_OIWSEC_sha1RSASign = 92, + XCN_OID_OIWDIR = 93, + XCN_OID_OIWDIR_CRPT = 94, + XCN_OID_OIWDIR_HASH = 95, + XCN_OID_OIWDIR_SIGN = 96, + XCN_OID_OIWDIR_md2 = 97, + XCN_OID_OIWDIR_md2RSA = 98, + XCN_OID_INFOSEC = 99, + XCN_OID_INFOSEC_sdnsSignature = 100, + XCN_OID_INFOSEC_mosaicSignature = 101, + XCN_OID_INFOSEC_sdnsConfidentiality = 102, + XCN_OID_INFOSEC_mosaicConfidentiality = 103, + XCN_OID_INFOSEC_sdnsIntegrity = 104, + XCN_OID_INFOSEC_mosaicIntegrity = 105, + XCN_OID_INFOSEC_sdnsTokenProtection = 106, + XCN_OID_INFOSEC_mosaicTokenProtection = 107, + XCN_OID_INFOSEC_sdnsKeyManagement = 108, + XCN_OID_INFOSEC_mosaicKeyManagement = 109, + XCN_OID_INFOSEC_sdnsKMandSig = 110, + XCN_OID_INFOSEC_mosaicKMandSig = 111, + XCN_OID_INFOSEC_SuiteASignature = 112, + XCN_OID_INFOSEC_SuiteAConfidentiality = 113, + XCN_OID_INFOSEC_SuiteAIntegrity = 114, + XCN_OID_INFOSEC_SuiteATokenProtection = 115, + XCN_OID_INFOSEC_SuiteAKeyManagement = 116, + XCN_OID_INFOSEC_SuiteAKMandSig = 117, + XCN_OID_INFOSEC_mosaicUpdatedSig = 118, + XCN_OID_INFOSEC_mosaicKMandUpdSig = 119, + XCN_OID_INFOSEC_mosaicUpdatedInteg = 120, + XCN_OID_COMMON_NAME = 121, + XCN_OID_SUR_NAME = 122, + XCN_OID_DEVICE_SERIAL_NUMBER = 123, + XCN_OID_COUNTRY_NAME = 124, + XCN_OID_LOCALITY_NAME = 125, + XCN_OID_STATE_OR_PROVINCE_NAME = 126, + XCN_OID_STREET_ADDRESS = 127, + XCN_OID_ORGANIZATION_NAME = 128, + XCN_OID_ORGANIZATIONAL_UNIT_NAME = 129, + XCN_OID_TITLE = 130, + XCN_OID_DESCRIPTION = 131, + XCN_OID_SEARCH_GUIDE = 132, + XCN_OID_BUSINESS_CATEGORY = 133, + XCN_OID_POSTAL_ADDRESS = 134, + XCN_OID_POSTAL_CODE = 135, + XCN_OID_POST_OFFICE_BOX = 136, + XCN_OID_PHYSICAL_DELIVERY_OFFICE_NAME = 137, + XCN_OID_TELEPHONE_NUMBER = 138, + XCN_OID_TELEX_NUMBER = 139, + XCN_OID_TELETEXT_TERMINAL_IDENTIFIER = 140, + XCN_OID_FACSIMILE_TELEPHONE_NUMBER = 141, + XCN_OID_X21_ADDRESS = 142, + XCN_OID_INTERNATIONAL_ISDN_NUMBER = 143, + XCN_OID_REGISTERED_ADDRESS = 144, + XCN_OID_DESTINATION_INDICATOR = 145, + XCN_OID_PREFERRED_DELIVERY_METHOD = 146, + XCN_OID_PRESENTATION_ADDRESS = 147, + XCN_OID_SUPPORTED_APPLICATION_CONTEXT = 148, + XCN_OID_MEMBER = 149, + XCN_OID_OWNER = 150, + XCN_OID_ROLE_OCCUPANT = 151, + XCN_OID_SEE_ALSO = 152, + XCN_OID_USER_PASSWORD = 153, + XCN_OID_USER_CERTIFICATE = 154, + XCN_OID_CA_CERTIFICATE = 155, + XCN_OID_AUTHORITY_REVOCATION_LIST = 156, + XCN_OID_CERTIFICATE_REVOCATION_LIST = 157, + XCN_OID_CROSS_CERTIFICATE_PAIR = 158, + XCN_OID_GIVEN_NAME = 159, + XCN_OID_INITIALS = 160, + XCN_OID_DN_QUALIFIER = 161, + XCN_OID_DOMAIN_COMPONENT = 162, + XCN_OID_PKCS_12_FRIENDLY_NAME_ATTR = 163, + XCN_OID_PKCS_12_LOCAL_KEY_ID = 164, + XCN_OID_PKCS_12_KEY_PROVIDER_NAME_ATTR = 165, + XCN_OID_LOCAL_MACHINE_KEYSET = 166, + XCN_OID_PKCS_12_EXTENDED_ATTRIBUTES = 167, + XCN_OID_KEYID_RDN = 168, + XCN_OID_AUTHORITY_KEY_IDENTIFIER = 169, + XCN_OID_KEY_ATTRIBUTES = 170, + XCN_OID_CERT_POLICIES_95 = 171, + XCN_OID_KEY_USAGE_RESTRICTION = 172, + XCN_OID_SUBJECT_ALT_NAME = 173, + XCN_OID_ISSUER_ALT_NAME = 174, + XCN_OID_BASIC_CONSTRAINTS = 175, + XCN_OID_KEY_USAGE = 176, + XCN_OID_PRIVATEKEY_USAGE_PERIOD = 177, + XCN_OID_BASIC_CONSTRAINTS2 = 178, + XCN_OID_CERT_POLICIES = 179, + XCN_OID_ANY_CERT_POLICY = 180, + XCN_OID_AUTHORITY_KEY_IDENTIFIER2 = 181, + XCN_OID_SUBJECT_KEY_IDENTIFIER = 182, + XCN_OID_SUBJECT_ALT_NAME2 = 183, + XCN_OID_ISSUER_ALT_NAME2 = 184, + XCN_OID_CRL_REASON_CODE = 185, + XCN_OID_REASON_CODE_HOLD = 186, + XCN_OID_CRL_DIST_POINTS = 187, + XCN_OID_ENHANCED_KEY_USAGE = 188, + XCN_OID_CRL_NUMBER = 189, + XCN_OID_DELTA_CRL_INDICATOR = 190, + XCN_OID_ISSUING_DIST_POINT = 191, + XCN_OID_FRESHEST_CRL = 192, + XCN_OID_NAME_CONSTRAINTS = 193, + XCN_OID_POLICY_MAPPINGS = 194, + XCN_OID_LEGACY_POLICY_MAPPINGS = 195, + XCN_OID_POLICY_CONSTRAINTS = 196, + XCN_OID_RENEWAL_CERTIFICATE = 197, + XCN_OID_ENROLLMENT_NAME_VALUE_PAIR = 198, + XCN_OID_ENROLLMENT_CSP_PROVIDER = 199, + XCN_OID_OS_VERSION = 200, + XCN_OID_ENROLLMENT_AGENT = 201, + XCN_OID_PKIX = 202, + XCN_OID_PKIX_PE = 203, + XCN_OID_AUTHORITY_INFO_ACCESS = 204, + XCN_OID_BIOMETRIC_EXT = 205, + XCN_OID_LOGOTYPE_EXT = 206, + XCN_OID_CERT_EXTENSIONS = 207, + XCN_OID_NEXT_UPDATE_LOCATION = 208, + XCN_OID_REMOVE_CERTIFICATE = 209, + XCN_OID_CROSS_CERT_DIST_POINTS = 210, + XCN_OID_CTL = 211, + XCN_OID_SORTED_CTL = 212, + XCN_OID_SERIALIZED = 213, + XCN_OID_NT_PRINCIPAL_NAME = 214, + XCN_OID_PRODUCT_UPDATE = 215, + XCN_OID_ANY_APPLICATION_POLICY = 216, + XCN_OID_AUTO_ENROLL_CTL_USAGE = 217, + XCN_OID_ENROLL_CERTTYPE_EXTENSION = 218, + XCN_OID_CERT_MANIFOLD = 219, + XCN_OID_CERTSRV_CA_VERSION = 220, + XCN_OID_CERTSRV_PREVIOUS_CERT_HASH = 221, + XCN_OID_CRL_VIRTUAL_BASE = 222, + XCN_OID_CRL_NEXT_PUBLISH = 223, + XCN_OID_KP_CA_EXCHANGE = 224, + XCN_OID_KP_KEY_RECOVERY_AGENT = 225, + XCN_OID_CERTIFICATE_TEMPLATE = 226, + XCN_OID_ENTERPRISE_OID_ROOT = 227, + XCN_OID_RDN_DUMMY_SIGNER = 228, + XCN_OID_APPLICATION_CERT_POLICIES = 229, + XCN_OID_APPLICATION_POLICY_MAPPINGS = 230, + XCN_OID_APPLICATION_POLICY_CONSTRAINTS = 231, + XCN_OID_ARCHIVED_KEY_ATTR = 232, + XCN_OID_CRL_SELF_CDP = 233, + XCN_OID_REQUIRE_CERT_CHAIN_POLICY = 234, + XCN_OID_ARCHIVED_KEY_CERT_HASH = 235, + XCN_OID_ISSUED_CERT_HASH = 236, + XCN_OID_DS_EMAIL_REPLICATION = 237, + XCN_OID_REQUEST_CLIENT_INFO = 238, + XCN_OID_ENCRYPTED_KEY_HASH = 239, + XCN_OID_CERTSRV_CROSSCA_VERSION = 240, + XCN_OID_NTDS_REPLICATION = 241, + XCN_OID_SUBJECT_DIR_ATTRS = 242, + XCN_OID_PKIX_KP = 243, + XCN_OID_PKIX_KP_SERVER_AUTH = 244, + XCN_OID_PKIX_KP_CLIENT_AUTH = 245, + XCN_OID_PKIX_KP_CODE_SIGNING = 246, + XCN_OID_PKIX_KP_EMAIL_PROTECTION = 247, + XCN_OID_PKIX_KP_IPSEC_END_SYSTEM = 248, + XCN_OID_PKIX_KP_IPSEC_TUNNEL = 249, + XCN_OID_PKIX_KP_IPSEC_USER = 250, + XCN_OID_PKIX_KP_TIMESTAMP_SIGNING = 251, + XCN_OID_PKIX_KP_OCSP_SIGNING = 252, + XCN_OID_PKIX_OCSP_NOCHECK = 253, + XCN_OID_IPSEC_KP_IKE_INTERMEDIATE = 254, + XCN_OID_KP_CTL_USAGE_SIGNING = 255, + XCN_OID_KP_TIME_STAMP_SIGNING = 256, + XCN_OID_SERVER_GATED_CRYPTO = 257, + XCN_OID_SGC_NETSCAPE = 258, + XCN_OID_KP_EFS = 259, + XCN_OID_EFS_RECOVERY = 260, + XCN_OID_WHQL_CRYPTO = 261, + XCN_OID_NT5_CRYPTO = 262, + XCN_OID_OEM_WHQL_CRYPTO = 263, + XCN_OID_EMBEDDED_NT_CRYPTO = 264, + XCN_OID_ROOT_LIST_SIGNER = 265, + XCN_OID_KP_QUALIFIED_SUBORDINATION = 266, + XCN_OID_KP_KEY_RECOVERY = 267, + XCN_OID_KP_DOCUMENT_SIGNING = 268, + XCN_OID_KP_LIFETIME_SIGNING = 269, + XCN_OID_KP_MOBILE_DEVICE_SOFTWARE = 270, + XCN_OID_KP_SMART_DISPLAY = 271, + XCN_OID_KP_CSP_SIGNATURE = 272, + XCN_OID_DRM = 273, + XCN_OID_DRM_INDIVIDUALIZATION = 274, + XCN_OID_LICENSES = 275, + XCN_OID_LICENSE_SERVER = 276, + XCN_OID_KP_SMARTCARD_LOGON = 277, + XCN_OID_YESNO_TRUST_ATTR = 278, + XCN_OID_PKIX_POLICY_QUALIFIER_CPS = 279, + XCN_OID_PKIX_POLICY_QUALIFIER_USERNOTICE = 280, + XCN_OID_CERT_POLICIES_95_QUALIFIER1 = 281, + XCN_OID_PKIX_ACC_DESCR = 282, + XCN_OID_PKIX_OCSP = 283, + XCN_OID_PKIX_CA_ISSUERS = 284, + XCN_OID_VERISIGN_PRIVATE_6_9 = 285, + XCN_OID_VERISIGN_ONSITE_JURISDICTION_HASH = 286, + XCN_OID_VERISIGN_BITSTRING_6_13 = 287, + XCN_OID_VERISIGN_ISS_STRONG_CRYPTO = 288, + XCN_OID_NETSCAPE = 289, + XCN_OID_NETSCAPE_CERT_EXTENSION = 290, + XCN_OID_NETSCAPE_CERT_TYPE = 291, + XCN_OID_NETSCAPE_BASE_URL = 292, + XCN_OID_NETSCAPE_REVOCATION_URL = 293, + XCN_OID_NETSCAPE_CA_REVOCATION_URL = 294, + XCN_OID_NETSCAPE_CERT_RENEWAL_URL = 295, + XCN_OID_NETSCAPE_CA_POLICY_URL = 296, + XCN_OID_NETSCAPE_SSL_SERVER_NAME = 297, + XCN_OID_NETSCAPE_COMMENT = 298, + XCN_OID_NETSCAPE_DATA_TYPE = 299, + XCN_OID_NETSCAPE_CERT_SEQUENCE = 300, + XCN_OID_CT_PKI_DATA = 301, + XCN_OID_CT_PKI_RESPONSE = 302, + XCN_OID_PKIX_NO_SIGNATURE = 303, + XCN_OID_CMC = 304, + XCN_OID_CMC_STATUS_INFO = 305, + XCN_OID_CMC_IDENTIFICATION = 306, + XCN_OID_CMC_IDENTITY_PROOF = 307, + XCN_OID_CMC_DATA_RETURN = 308, + XCN_OID_CMC_TRANSACTION_ID = 309, + XCN_OID_CMC_SENDER_NONCE = 310, + XCN_OID_CMC_RECIPIENT_NONCE = 311, + XCN_OID_CMC_ADD_EXTENSIONS = 312, + XCN_OID_CMC_ENCRYPTED_POP = 313, + XCN_OID_CMC_DECRYPTED_POP = 314, + XCN_OID_CMC_LRA_POP_WITNESS = 315, + XCN_OID_CMC_GET_CERT = 316, + XCN_OID_CMC_GET_CRL = 317, + XCN_OID_CMC_REVOKE_REQUEST = 318, + XCN_OID_CMC_REG_INFO = 319, + XCN_OID_CMC_RESPONSE_INFO = 320, + XCN_OID_CMC_QUERY_PENDING = 321, + XCN_OID_CMC_ID_POP_LINK_RANDOM = 322, + XCN_OID_CMC_ID_POP_LINK_WITNESS = 323, + XCN_OID_CMC_ID_CONFIRM_CERT_ACCEPTANCE = 324, + XCN_OID_CMC_ADD_ATTRIBUTES = 325, + XCN_OID_LOYALTY_OTHER_LOGOTYPE = 326, + XCN_OID_BACKGROUND_OTHER_LOGOTYPE = 327, + XCN_OID_PKIX_OCSP_BASIC_SIGNED_RESPONSE = 328, + XCN_OID_PKCS_7_DATA = 329, + XCN_OID_PKCS_7_SIGNED = 330, + XCN_OID_PKCS_7_ENVELOPED = 331, + XCN_OID_PKCS_7_SIGNEDANDENVELOPED = 332, + XCN_OID_PKCS_7_DIGESTED = 333, + XCN_OID_PKCS_7_ENCRYPTED = 334, + XCN_OID_PKCS_9_CONTENT_TYPE = 335, + XCN_OID_PKCS_9_MESSAGE_DIGEST = 336, + XCN_OID_CERT_PROP_ID_PREFIX = 337, + XCN_OID_CERT_KEY_IDENTIFIER_PROP_ID = 338, + XCN_OID_CERT_ISSUER_SERIAL_NUMBER_MD5_HASH_PROP_ID = 339, + XCN_OID_CERT_SUBJECT_NAME_MD5_HASH_PROP_ID = 340, + XCN_OID_CERT_MD5_HASH_PROP_ID = 341, + XCN_OID_RSA_SHA256RSA = 342, + XCN_OID_RSA_SHA384RSA = 343, + XCN_OID_RSA_SHA512RSA = 344, + XCN_OID_NIST_sha256 = 345, + XCN_OID_NIST_sha384 = 346, + XCN_OID_NIST_sha512 = 347, + XCN_OID_RSA_MGF1 = 348, + XCN_OID_ECC_PUBLIC_KEY = 349, + XCN_OID_ECDSA_SHA1 = 350, + XCN_OID_ECDSA_SPECIFIED = 351, + XCN_OID_ANY_ENHANCED_KEY_USAGE = 352, + XCN_OID_RSA_SSA_PSS = 353, + XCN_OID_ATTR_SUPPORTED_ALGORITHMS = 355, + XCN_OID_ATTR_TPM_SECURITY_ASSERTIONS = 356, + XCN_OID_ATTR_TPM_SPECIFICATION = 357, + XCN_OID_CERT_DISALLOWED_FILETIME_PROP_ID = 358, + XCN_OID_CERT_SIGNATURE_HASH_PROP_ID = 359, + XCN_OID_CERT_STRONG_KEY_OS_1 = 360, + XCN_OID_CERT_STRONG_KEY_OS_CURRENT = 361, + XCN_OID_CERT_STRONG_KEY_OS_PREFIX = 362, + XCN_OID_CERT_STRONG_SIGN_OS_1 = 363, + XCN_OID_CERT_STRONG_SIGN_OS_CURRENT = 364, + XCN_OID_CERT_STRONG_SIGN_OS_PREFIX = 365, + XCN_OID_DH_SINGLE_PASS_STDDH_SHA1_KDF = 366, + XCN_OID_DH_SINGLE_PASS_STDDH_SHA256_KDF = 367, + XCN_OID_DH_SINGLE_PASS_STDDH_SHA384_KDF = 368, + XCN_OID_DISALLOWED_HASH = 369, + XCN_OID_DISALLOWED_LIST = 370, + XCN_OID_ECC_CURVE_P256 = 371, + XCN_OID_ECC_CURVE_P384 = 372, + XCN_OID_ECC_CURVE_P521 = 373, + XCN_OID_ECDSA_SHA256 = 374, + XCN_OID_ECDSA_SHA384 = 375, + XCN_OID_ECDSA_SHA512 = 376, + XCN_OID_ENROLL_CAXCHGCERT_HASH = 377, + XCN_OID_ENROLL_EK_INFO = 378, + XCN_OID_ENROLL_EKPUB_CHALLENGE = 379, + XCN_OID_ENROLL_EKVERIFYCERT = 380, + XCN_OID_ENROLL_EKVERIFYCREDS = 381, + XCN_OID_ENROLL_EKVERIFYKEY = 382, + XCN_OID_EV_RDN_COUNTRY = 383, + XCN_OID_EV_RDN_LOCALE = 384, + XCN_OID_EV_RDN_STATE_OR_PROVINCE = 385, + XCN_OID_INHIBIT_ANY_POLICY = 386, + XCN_OID_INTERNATIONALIZED_EMAIL_ADDRESS = 387, + XCN_OID_KP_KERNEL_MODE_CODE_SIGNING = 388, + XCN_OID_KP_KERNEL_MODE_HAL_EXTENSION_SIGNING = 389, + XCN_OID_KP_KERNEL_MODE_TRUSTED_BOOT_SIGNING = 390, + XCN_OID_KP_TPM_AIK_CERTIFICATE = 391, + XCN_OID_KP_TPM_EK_CERTIFICATE = 392, + XCN_OID_KP_TPM_PLATFORM_CERTIFICATE = 393, + XCN_OID_NIST_AES128_CBC = 394, + XCN_OID_NIST_AES128_WRAP = 395, + XCN_OID_NIST_AES192_CBC = 396, + XCN_OID_NIST_AES192_WRAP = 397, + XCN_OID_NIST_AES256_CBC = 398, + XCN_OID_NIST_AES256_WRAP = 399, + XCN_OID_PKCS_12_PbeIds = 400, + XCN_OID_PKCS_12_pbeWithSHA1And128BitRC2 = 401, + XCN_OID_PKCS_12_pbeWithSHA1And128BitRC4 = 402, + XCN_OID_PKCS_12_pbeWithSHA1And2KeyTripleDES = 403, + XCN_OID_PKCS_12_pbeWithSHA1And3KeyTripleDES = 404, + XCN_OID_PKCS_12_pbeWithSHA1And40BitRC2 = 405, + XCN_OID_PKCS_12_pbeWithSHA1And40BitRC4 = 406, + XCN_OID_PKCS_12_PROTECTED_PASSWORD_SECRET_BAG_TYPE_ID = 407, + XCN_OID_PKINIT_KP_KDC = 408, + XCN_OID_PKIX_CA_REPOSITORY = 409, + XCN_OID_PKIX_OCSP_NONCE = 410, + XCN_OID_PKIX_TIME_STAMPING = 411, + XCN_OID_QC_EU_COMPLIANCE = 412, + XCN_OID_QC_SSCD = 413, + XCN_OID_QC_STATEMENTS_EXT = 414, + XCN_OID_RDN_TPM_MANUFACTURER = 415, + XCN_OID_RDN_TPM_MODEL = 416, + XCN_OID_RDN_TPM_VERSION = 417, + XCN_OID_REVOKED_LIST_SIGNER = 418, + XCN_OID_RFC3161_counterSign = 419, + XCN_OID_ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION = 420, + XCN_OID_ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION = 421, + XCN_OID_ROOT_PROGRAM_FLAGS = 422, + XCN_OID_ROOT_PROGRAM_NO_OCSP_FAILOVER_TO_CRL = 423, + XCN_OID_RSA_PSPECIFIED = 424, + XCN_OID_RSAES_OAEP = 425, + XCN_OID_SUBJECT_INFO_ACCESS = 426, + XCN_OID_TIMESTAMP_TOKEN = 427, + XCN_OID_ENROLL_SCEP_ERROR = 428, + XCN_OIDVerisign_MessageType = 429, + XCN_OIDVerisign_PkiStatus = 430, + XCN_OIDVerisign_FailInfo = 431, + XCN_OIDVerisign_SenderNonce = 432, + XCN_OIDVerisign_RecipientNonce = 433, + XCN_OIDVerisign_TransactionID = 434, + XCN_OID_ENROLL_ATTESTATION_CHALLENGE = 435, + XCN_OID_ENROLL_ATTESTATION_STATEMENT = 436, + XCN_OID_ENROLL_ENCRYPTION_ALGORITHM = 437, + XCN_OID_ENROLL_KSP_NAME = 438 + } CERTENROLL_OBJECTID; + +typedef +enum WebSecurityLevel + { + LevelUnsafe = 0, + LevelSafe = 1 + } WebSecurityLevel; + +#define CERTENROLL_INDEX_BASE ( 0 ) + +typedef +enum EncodingType + { + XCN_CRYPT_STRING_BASE64HEADER = 0, + XCN_CRYPT_STRING_BASE64 = 0x1, + XCN_CRYPT_STRING_BINARY = 0x2, + XCN_CRYPT_STRING_BASE64REQUESTHEADER = 0x3, + XCN_CRYPT_STRING_HEX = 0x4, + XCN_CRYPT_STRING_HEXASCII = 0x5, + XCN_CRYPT_STRING_BASE64_ANY = 0x6, + XCN_CRYPT_STRING_ANY = 0x7, + XCN_CRYPT_STRING_HEX_ANY = 0x8, + XCN_CRYPT_STRING_BASE64X509CRLHEADER = 0x9, + XCN_CRYPT_STRING_HEXADDR = 0xa, + XCN_CRYPT_STRING_HEXASCIIADDR = 0xb, + XCN_CRYPT_STRING_HEXRAW = 0xc, + XCN_CRYPT_STRING_BASE64URI = 0xd, + XCN_CRYPT_STRING_ENCODEMASK = 0xff, + XCN_CRYPT_STRING_CHAIN = 0x100, + XCN_CRYPT_STRING_TEXT = 0x200, + XCN_CRYPT_STRING_PERCENTESCAPE = 0x8000000, + XCN_CRYPT_STRING_HASHDATA = 0x10000000, + XCN_CRYPT_STRING_STRICT = 0x20000000, + XCN_CRYPT_STRING_NOCRLF = 0x40000000, + XCN_CRYPT_STRING_NOCR = 0x80000000 + } EncodingType; + +typedef +enum PFXExportOptions + { + PFXExportEEOnly = 0, + PFXExportChainNoRoot = 1, + PFXExportChainWithRoot = 2 + } PFXExportOptions; + +typedef +enum ObjectIdGroupId + { + XCN_CRYPT_ANY_GROUP_ID = 0, + XCN_CRYPT_HASH_ALG_OID_GROUP_ID = 1, + XCN_CRYPT_ENCRYPT_ALG_OID_GROUP_ID = 2, + XCN_CRYPT_PUBKEY_ALG_OID_GROUP_ID = 3, + XCN_CRYPT_SIGN_ALG_OID_GROUP_ID = 4, + XCN_CRYPT_RDN_ATTR_OID_GROUP_ID = 5, + XCN_CRYPT_EXT_OR_ATTR_OID_GROUP_ID = 6, + XCN_CRYPT_ENHKEY_USAGE_OID_GROUP_ID = 7, + XCN_CRYPT_POLICY_OID_GROUP_ID = 8, + XCN_CRYPT_TEMPLATE_OID_GROUP_ID = 9, + XCN_CRYPT_KDF_OID_GROUP_ID = 10, + XCN_CRYPT_LAST_OID_GROUP_ID = 10, + XCN_CRYPT_FIRST_ALG_OID_GROUP_ID = 1, + XCN_CRYPT_LAST_ALG_OID_GROUP_ID = 4, + XCN_CRYPT_GROUP_ID_MASK = 0xffff, + XCN_CRYPT_OID_PREFER_CNG_ALGID_FLAG = 0x40000000, + XCN_CRYPT_OID_DISABLE_SEARCH_DS_FLAG = 0x80000000, + XCN_CRYPT_OID_INFO_OID_GROUP_BIT_LEN_MASK = 0xfff0000, + XCN_CRYPT_OID_INFO_OID_GROUP_BIT_LEN_SHIFT = 16, + XCN_CRYPT_KEY_LENGTH_MASK = 0xfff0000 + } ObjectIdGroupId; + +typedef +enum ObjectIdPublicKeyFlags + { + XCN_CRYPT_OID_INFO_PUBKEY_ANY = 0, + XCN_CRYPT_OID_INFO_PUBKEY_SIGN_KEY_FLAG = 0x80000000, + XCN_CRYPT_OID_INFO_PUBKEY_ENCRYPT_KEY_FLAG = 0x40000000 + } ObjectIdPublicKeyFlags; + +typedef +enum AlgorithmFlags + { + AlgorithmFlagsNone = 0, + AlgorithmFlagsWrap = 0x1 + } AlgorithmFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0000_v0_0_s_ifspec; + +#ifndef __IObjectId_INTERFACE_DEFINED__ +#define __IObjectId_INTERFACE_DEFINED__ + +/* interface IObjectId */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IObjectId; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab300-217d-11da-b2a4-000e7bbb2b09") + IObjectId : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeFromName( + /* [in] */ CERTENROLL_OBJECTID Name) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeFromValue( + /* [in] */ __RPC__in BSTR strValue) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeFromAlgorithmName( + /* [in] */ ObjectIdGroupId GroupId, + /* [in] */ ObjectIdPublicKeyFlags KeyFlags, + /* [in] */ AlgorithmFlags AlgFlags, + /* [in] */ __RPC__in BSTR strAlgorithmName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__out CERTENROLL_OBJECTID *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_FriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_FriendlyName( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAlgorithmName( + /* [in] */ ObjectIdGroupId GroupId, + /* [in] */ ObjectIdPublicKeyFlags KeyFlags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrAlgorithmName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectIdVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IObjectId * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IObjectId * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IObjectId * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IObjectId * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IObjectId * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IObjectId * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IObjectId * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IObjectId, InitializeFromName) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromName )( + __RPC__in IObjectId * This, + /* [in] */ CERTENROLL_OBJECTID Name); + + DECLSPEC_XFGVIRT(IObjectId, InitializeFromValue) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromValue )( + __RPC__in IObjectId * This, + /* [in] */ __RPC__in BSTR strValue); + + DECLSPEC_XFGVIRT(IObjectId, InitializeFromAlgorithmName) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromAlgorithmName )( + __RPC__in IObjectId * This, + /* [in] */ ObjectIdGroupId GroupId, + /* [in] */ ObjectIdPublicKeyFlags KeyFlags, + /* [in] */ AlgorithmFlags AlgFlags, + /* [in] */ __RPC__in BSTR strAlgorithmName); + + DECLSPEC_XFGVIRT(IObjectId, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IObjectId * This, + /* [retval][out] */ __RPC__out CERTENROLL_OBJECTID *pValue); + + DECLSPEC_XFGVIRT(IObjectId, get_FriendlyName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( + __RPC__in IObjectId * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IObjectId, put_FriendlyName) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( + __RPC__in IObjectId * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IObjectId, get_Value) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IObjectId * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IObjectId, GetAlgorithmName) + HRESULT ( STDMETHODCALLTYPE *GetAlgorithmName )( + __RPC__in IObjectId * This, + /* [in] */ ObjectIdGroupId GroupId, + /* [in] */ ObjectIdPublicKeyFlags KeyFlags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrAlgorithmName); + + END_INTERFACE + } IObjectIdVtbl; + + interface IObjectId + { + CONST_VTBL struct IObjectIdVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectId_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectId_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectId_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectId_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IObjectId_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IObjectId_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IObjectId_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IObjectId_InitializeFromName(This,Name) \ + ( (This)->lpVtbl -> InitializeFromName(This,Name) ) + +#define IObjectId_InitializeFromValue(This,strValue) \ + ( (This)->lpVtbl -> InitializeFromValue(This,strValue) ) + +#define IObjectId_InitializeFromAlgorithmName(This,GroupId,KeyFlags,AlgFlags,strAlgorithmName) \ + ( (This)->lpVtbl -> InitializeFromAlgorithmName(This,GroupId,KeyFlags,AlgFlags,strAlgorithmName) ) + +#define IObjectId_get_Name(This,pValue) \ + ( (This)->lpVtbl -> get_Name(This,pValue) ) + +#define IObjectId_get_FriendlyName(This,pValue) \ + ( (This)->lpVtbl -> get_FriendlyName(This,pValue) ) + +#define IObjectId_put_FriendlyName(This,Value) \ + ( (This)->lpVtbl -> put_FriendlyName(This,Value) ) + +#define IObjectId_get_Value(This,pValue) \ + ( (This)->lpVtbl -> get_Value(This,pValue) ) + +#define IObjectId_GetAlgorithmName(This,GroupId,KeyFlags,pstrAlgorithmName) \ + ( (This)->lpVtbl -> GetAlgorithmName(This,GroupId,KeyFlags,pstrAlgorithmName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectId_INTERFACE_DEFINED__ */ + + +#ifndef __IObjectIds_INTERFACE_DEFINED__ +#define __IObjectIds_INTERFACE_DEFINED__ + +/* interface IObjectIds */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IObjectIds; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab301-217d-11da-b2a4-000e7bbb2b09") + IObjectIds : public IDispatch + { + public: + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **pVal) = 0; + + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id][custom] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IObjectId *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRange( + /* [in] */ __RPC__in_opt IObjectIds *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IObjectIdsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IObjectIds * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IObjectIds * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IObjectIds * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IObjectIds * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IObjectIds * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IObjectIds * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IObjectIds * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IObjectIds, get_ItemByIndex) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in IObjectIds * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **pVal); + + DECLSPEC_XFGVIRT(IObjectIds, get_Count) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IObjectIds * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IObjectIds, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IObjectIds * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(IObjectIds, Add) + /* [helpstring][id][custom] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IObjectIds * This, + /* [in] */ __RPC__in_opt IObjectId *pVal); + + DECLSPEC_XFGVIRT(IObjectIds, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IObjectIds * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(IObjectIds, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IObjectIds * This); + + DECLSPEC_XFGVIRT(IObjectIds, AddRange) + HRESULT ( STDMETHODCALLTYPE *AddRange )( + __RPC__in IObjectIds * This, + /* [in] */ __RPC__in_opt IObjectIds *pValue); + + END_INTERFACE + } IObjectIdsVtbl; + + interface IObjectIds + { + CONST_VTBL struct IObjectIdsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IObjectIds_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IObjectIds_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IObjectIds_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IObjectIds_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IObjectIds_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IObjectIds_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IObjectIds_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IObjectIds_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define IObjectIds_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IObjectIds_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define IObjectIds_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define IObjectIds_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define IObjectIds_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IObjectIds_AddRange(This,pValue) \ + ( (This)->lpVtbl -> AddRange(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IObjectIds_INTERFACE_DEFINED__ */ + + +#ifndef __IBinaryConverter_INTERFACE_DEFINED__ +#define __IBinaryConverter_INTERFACE_DEFINED__ + +/* interface IBinaryConverter */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IBinaryConverter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab302-217d-11da-b2a4-000e7bbb2b09") + IBinaryConverter : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE StringToString( + /* [in] */ __RPC__in BSTR strEncodedIn, + /* [in] */ EncodingType EncodingIn, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncoded) = 0; + + virtual HRESULT STDMETHODCALLTYPE VariantByteArrayToString( + /* [in] */ __RPC__in VARIANT *pvarByteArray, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncoded) = 0; + + virtual HRESULT STDMETHODCALLTYPE StringToVariantByteArray( + /* [in] */ __RPC__in BSTR strEncoded, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__out VARIANT *pvarByteArray) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBinaryConverterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBinaryConverter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBinaryConverter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBinaryConverter * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBinaryConverter * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBinaryConverter * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBinaryConverter * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBinaryConverter * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBinaryConverter, StringToString) + HRESULT ( STDMETHODCALLTYPE *StringToString )( + __RPC__in IBinaryConverter * This, + /* [in] */ __RPC__in BSTR strEncodedIn, + /* [in] */ EncodingType EncodingIn, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncoded); + + DECLSPEC_XFGVIRT(IBinaryConverter, VariantByteArrayToString) + HRESULT ( STDMETHODCALLTYPE *VariantByteArrayToString )( + __RPC__in IBinaryConverter * This, + /* [in] */ __RPC__in VARIANT *pvarByteArray, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncoded); + + DECLSPEC_XFGVIRT(IBinaryConverter, StringToVariantByteArray) + HRESULT ( STDMETHODCALLTYPE *StringToVariantByteArray )( + __RPC__in IBinaryConverter * This, + /* [in] */ __RPC__in BSTR strEncoded, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__out VARIANT *pvarByteArray); + + END_INTERFACE + } IBinaryConverterVtbl; + + interface IBinaryConverter + { + CONST_VTBL struct IBinaryConverterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBinaryConverter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBinaryConverter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBinaryConverter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBinaryConverter_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBinaryConverter_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBinaryConverter_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBinaryConverter_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBinaryConverter_StringToString(This,strEncodedIn,EncodingIn,Encoding,pstrEncoded) \ + ( (This)->lpVtbl -> StringToString(This,strEncodedIn,EncodingIn,Encoding,pstrEncoded) ) + +#define IBinaryConverter_VariantByteArrayToString(This,pvarByteArray,Encoding,pstrEncoded) \ + ( (This)->lpVtbl -> VariantByteArrayToString(This,pvarByteArray,Encoding,pstrEncoded) ) + +#define IBinaryConverter_StringToVariantByteArray(This,strEncoded,Encoding,pvarByteArray) \ + ( (This)->lpVtbl -> StringToVariantByteArray(This,strEncoded,Encoding,pvarByteArray) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBinaryConverter_INTERFACE_DEFINED__ */ + + +#ifndef __IBinaryConverter2_INTERFACE_DEFINED__ +#define __IBinaryConverter2_INTERFACE_DEFINED__ + +/* interface IBinaryConverter2 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IBinaryConverter2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8D7928B4-4E17-428D-9A17-728DF00D1B2B") + IBinaryConverter2 : public IBinaryConverter + { + public: + virtual HRESULT STDMETHODCALLTYPE StringArrayToVariantArray( + /* [in] */ __RPC__in VARIANT *pvarStringArray, + /* [retval][out] */ __RPC__out VARIANT *pvarVariantArray) = 0; + + virtual HRESULT STDMETHODCALLTYPE VariantArrayToStringArray( + /* [in] */ __RPC__in VARIANT *pvarVariantArray, + /* [retval][out] */ __RPC__out VARIANT *pvarStringArray) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBinaryConverter2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBinaryConverter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBinaryConverter2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBinaryConverter2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBinaryConverter2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBinaryConverter2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBinaryConverter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBinaryConverter2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBinaryConverter, StringToString) + HRESULT ( STDMETHODCALLTYPE *StringToString )( + __RPC__in IBinaryConverter2 * This, + /* [in] */ __RPC__in BSTR strEncodedIn, + /* [in] */ EncodingType EncodingIn, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncoded); + + DECLSPEC_XFGVIRT(IBinaryConverter, VariantByteArrayToString) + HRESULT ( STDMETHODCALLTYPE *VariantByteArrayToString )( + __RPC__in IBinaryConverter2 * This, + /* [in] */ __RPC__in VARIANT *pvarByteArray, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncoded); + + DECLSPEC_XFGVIRT(IBinaryConverter, StringToVariantByteArray) + HRESULT ( STDMETHODCALLTYPE *StringToVariantByteArray )( + __RPC__in IBinaryConverter2 * This, + /* [in] */ __RPC__in BSTR strEncoded, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__out VARIANT *pvarByteArray); + + DECLSPEC_XFGVIRT(IBinaryConverter2, StringArrayToVariantArray) + HRESULT ( STDMETHODCALLTYPE *StringArrayToVariantArray )( + __RPC__in IBinaryConverter2 * This, + /* [in] */ __RPC__in VARIANT *pvarStringArray, + /* [retval][out] */ __RPC__out VARIANT *pvarVariantArray); + + DECLSPEC_XFGVIRT(IBinaryConverter2, VariantArrayToStringArray) + HRESULT ( STDMETHODCALLTYPE *VariantArrayToStringArray )( + __RPC__in IBinaryConverter2 * This, + /* [in] */ __RPC__in VARIANT *pvarVariantArray, + /* [retval][out] */ __RPC__out VARIANT *pvarStringArray); + + END_INTERFACE + } IBinaryConverter2Vtbl; + + interface IBinaryConverter2 + { + CONST_VTBL struct IBinaryConverter2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBinaryConverter2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBinaryConverter2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBinaryConverter2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBinaryConverter2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBinaryConverter2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBinaryConverter2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBinaryConverter2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBinaryConverter2_StringToString(This,strEncodedIn,EncodingIn,Encoding,pstrEncoded) \ + ( (This)->lpVtbl -> StringToString(This,strEncodedIn,EncodingIn,Encoding,pstrEncoded) ) + +#define IBinaryConverter2_VariantByteArrayToString(This,pvarByteArray,Encoding,pstrEncoded) \ + ( (This)->lpVtbl -> VariantByteArrayToString(This,pvarByteArray,Encoding,pstrEncoded) ) + +#define IBinaryConverter2_StringToVariantByteArray(This,strEncoded,Encoding,pvarByteArray) \ + ( (This)->lpVtbl -> StringToVariantByteArray(This,strEncoded,Encoding,pvarByteArray) ) + + +#define IBinaryConverter2_StringArrayToVariantArray(This,pvarStringArray,pvarVariantArray) \ + ( (This)->lpVtbl -> StringArrayToVariantArray(This,pvarStringArray,pvarVariantArray) ) + +#define IBinaryConverter2_VariantArrayToStringArray(This,pvarVariantArray,pvarStringArray) \ + ( (This)->lpVtbl -> VariantArrayToStringArray(This,pvarVariantArray,pvarStringArray) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBinaryConverter2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0004 */ +/* [local] */ + +typedef +enum X500NameFlags + { + XCN_CERT_NAME_STR_NONE = 0, + XCN_CERT_SIMPLE_NAME_STR = 1, + XCN_CERT_OID_NAME_STR = 2, + XCN_CERT_X500_NAME_STR = 3, + XCN_CERT_XML_NAME_STR = 4, + XCN_CERT_NAME_STR_SEMICOLON_FLAG = 0x40000000, + XCN_CERT_NAME_STR_NO_PLUS_FLAG = 0x20000000, + XCN_CERT_NAME_STR_NO_QUOTING_FLAG = 0x10000000, + XCN_CERT_NAME_STR_CRLF_FLAG = 0x8000000, + XCN_CERT_NAME_STR_COMMA_FLAG = 0x4000000, + XCN_CERT_NAME_STR_REVERSE_FLAG = 0x2000000, + XCN_CERT_NAME_STR_FORWARD_FLAG = 0x1000000, + XCN_CERT_NAME_STR_AMBIGUOUS_SEPARATOR_FLAGS = ( ( 0x40000000 | 0x8000000 ) | 0x4000000 ) , + XCN_CERT_NAME_STR_DISABLE_IE4_UTF8_FLAG = 0x10000, + XCN_CERT_NAME_STR_ENABLE_T61_UNICODE_FLAG = 0x20000, + XCN_CERT_NAME_STR_ENABLE_UTF8_UNICODE_FLAG = 0x40000, + XCN_CERT_NAME_STR_FORCE_UTF8_DIR_STR_FLAG = 0x80000, + XCN_CERT_NAME_STR_DISABLE_UTF8_DIR_STR_FLAG = 0x100000, + XCN_CERT_NAME_STR_ENABLE_PUNYCODE_FLAG = 0x200000, + XCN_CERT_NAME_STR_DS_ESCAPED = 0x800000 + } X500NameFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0004_v0_0_s_ifspec; + +#ifndef __IX500DistinguishedName_INTERFACE_DEFINED__ +#define __IX500DistinguishedName_INTERFACE_DEFINED__ + +/* interface IX500DistinguishedName */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX500DistinguishedName; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab303-217d-11da-b2a4-000e7bbb2b09") + IX500DistinguishedName : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Decode( + /* [in] */ __RPC__in BSTR strEncodedName, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64, + /* [defaultvalue][in] */ X500NameFlags NameFlags = XCN_CERT_NAME_STR_NONE) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE Encode( + /* [in] */ __RPC__in BSTR strName, + /* [defaultvalue][in] */ X500NameFlags NameFlags = XCN_CERT_NAME_STR_NONE) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EncodedName( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX500DistinguishedNameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX500DistinguishedName * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX500DistinguishedName * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX500DistinguishedName * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX500DistinguishedName * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX500DistinguishedName * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX500DistinguishedName * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX500DistinguishedName * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX500DistinguishedName, Decode) + HRESULT ( STDMETHODCALLTYPE *Decode )( + __RPC__in IX500DistinguishedName * This, + /* [in] */ __RPC__in BSTR strEncodedName, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X500NameFlags NameFlags); + + DECLSPEC_XFGVIRT(IX500DistinguishedName, Encode) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX500DistinguishedName * This, + /* [in] */ __RPC__in BSTR strName, + /* [defaultvalue][in] */ X500NameFlags NameFlags); + + DECLSPEC_XFGVIRT(IX500DistinguishedName, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IX500DistinguishedName * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX500DistinguishedName, get_EncodedName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncodedName )( + __RPC__in IX500DistinguishedName * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX500DistinguishedNameVtbl; + + interface IX500DistinguishedName + { + CONST_VTBL struct IX500DistinguishedNameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX500DistinguishedName_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX500DistinguishedName_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX500DistinguishedName_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX500DistinguishedName_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX500DistinguishedName_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX500DistinguishedName_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX500DistinguishedName_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX500DistinguishedName_Decode(This,strEncodedName,Encoding,NameFlags) \ + ( (This)->lpVtbl -> Decode(This,strEncodedName,Encoding,NameFlags) ) + +#define IX500DistinguishedName_Encode(This,strName,NameFlags) \ + ( (This)->lpVtbl -> Encode(This,strName,NameFlags) ) + +#define IX500DistinguishedName_get_Name(This,pValue) \ + ( (This)->lpVtbl -> get_Name(This,pValue) ) + +#define IX500DistinguishedName_get_EncodedName(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_EncodedName(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX500DistinguishedName_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0005 */ +/* [local] */ + +typedef +enum X509CertificateEnrollmentContext + { + ContextNone = 0, + ContextUser = 0x1, + ContextMachine = 0x2, + ContextAdministratorForceMachine = 0x3 + } X509CertificateEnrollmentContext; + +typedef +enum EnrollmentEnrollStatus + { + Enrolled = 0x1, + EnrollPended = 0x2, + EnrollUIDeferredEnrollmentRequired = 0x4, + EnrollError = 0x10, + EnrollUnknown = 0x20, + EnrollSkipped = 0x40, + EnrollDenied = 0x100 + } EnrollmentEnrollStatus; + +typedef +enum EnrollmentSelectionStatus + { + SelectedNo = 0, + SelectedYes = 1 + } EnrollmentSelectionStatus; + +typedef +enum EnrollmentDisplayStatus + { + DisplayNo = 0, + DisplayYes = 1 + } EnrollmentDisplayStatus; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0005_v0_0_s_ifspec; + +#ifndef __IX509EnrollmentStatus_INTERFACE_DEFINED__ +#define __IX509EnrollmentStatus_INTERFACE_DEFINED__ + +/* interface IX509EnrollmentStatus */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509EnrollmentStatus; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab304-217d-11da-b2a4-000e7bbb2b09") + IX509EnrollmentStatus : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE AppendText( + /* [in] */ __RPC__in BSTR strText) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Text( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Text( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Selected( + /* [retval][out] */ __RPC__out EnrollmentSelectionStatus *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Selected( + /* [in] */ EnrollmentSelectionStatus Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Display( + /* [retval][out] */ __RPC__out EnrollmentDisplayStatus *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Display( + /* [in] */ EnrollmentDisplayStatus Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out EnrollmentEnrollStatus *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Status( + /* [in] */ EnrollmentEnrollStatus Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Error( + /* [retval][out] */ __RPC__out HRESULT *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Error( + /* [in] */ HRESULT Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ErrorText( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509EnrollmentStatusVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509EnrollmentStatus * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509EnrollmentStatus * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509EnrollmentStatus * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509EnrollmentStatus * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509EnrollmentStatus * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509EnrollmentStatus * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509EnrollmentStatus * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, AppendText) + HRESULT ( STDMETHODCALLTYPE *AppendText )( + __RPC__in IX509EnrollmentStatus * This, + /* [in] */ __RPC__in BSTR strText); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, get_Text) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Text )( + __RPC__in IX509EnrollmentStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, put_Text) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Text )( + __RPC__in IX509EnrollmentStatus * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, get_Selected) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Selected )( + __RPC__in IX509EnrollmentStatus * This, + /* [retval][out] */ __RPC__out EnrollmentSelectionStatus *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, put_Selected) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Selected )( + __RPC__in IX509EnrollmentStatus * This, + /* [in] */ EnrollmentSelectionStatus Value); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, get_Display) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Display )( + __RPC__in IX509EnrollmentStatus * This, + /* [retval][out] */ __RPC__out EnrollmentDisplayStatus *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, put_Display) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Display )( + __RPC__in IX509EnrollmentStatus * This, + /* [in] */ EnrollmentDisplayStatus Value); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, get_Status) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IX509EnrollmentStatus * This, + /* [retval][out] */ __RPC__out EnrollmentEnrollStatus *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, put_Status) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Status )( + __RPC__in IX509EnrollmentStatus * This, + /* [in] */ EnrollmentEnrollStatus Value); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, get_Error) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Error )( + __RPC__in IX509EnrollmentStatus * This, + /* [retval][out] */ __RPC__out HRESULT *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, put_Error) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Error )( + __RPC__in IX509EnrollmentStatus * This, + /* [in] */ HRESULT Value); + + DECLSPEC_XFGVIRT(IX509EnrollmentStatus, get_ErrorText) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorText )( + __RPC__in IX509EnrollmentStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509EnrollmentStatusVtbl; + + interface IX509EnrollmentStatus + { + CONST_VTBL struct IX509EnrollmentStatusVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509EnrollmentStatus_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509EnrollmentStatus_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509EnrollmentStatus_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509EnrollmentStatus_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509EnrollmentStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509EnrollmentStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509EnrollmentStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509EnrollmentStatus_AppendText(This,strText) \ + ( (This)->lpVtbl -> AppendText(This,strText) ) + +#define IX509EnrollmentStatus_get_Text(This,pValue) \ + ( (This)->lpVtbl -> get_Text(This,pValue) ) + +#define IX509EnrollmentStatus_put_Text(This,Value) \ + ( (This)->lpVtbl -> put_Text(This,Value) ) + +#define IX509EnrollmentStatus_get_Selected(This,pValue) \ + ( (This)->lpVtbl -> get_Selected(This,pValue) ) + +#define IX509EnrollmentStatus_put_Selected(This,Value) \ + ( (This)->lpVtbl -> put_Selected(This,Value) ) + +#define IX509EnrollmentStatus_get_Display(This,pValue) \ + ( (This)->lpVtbl -> get_Display(This,pValue) ) + +#define IX509EnrollmentStatus_put_Display(This,Value) \ + ( (This)->lpVtbl -> put_Display(This,Value) ) + +#define IX509EnrollmentStatus_get_Status(This,pValue) \ + ( (This)->lpVtbl -> get_Status(This,pValue) ) + +#define IX509EnrollmentStatus_put_Status(This,Value) \ + ( (This)->lpVtbl -> put_Status(This,Value) ) + +#define IX509EnrollmentStatus_get_Error(This,pValue) \ + ( (This)->lpVtbl -> get_Error(This,pValue) ) + +#define IX509EnrollmentStatus_put_Error(This,Value) \ + ( (This)->lpVtbl -> put_Error(This,Value) ) + +#define IX509EnrollmentStatus_get_ErrorText(This,pValue) \ + ( (This)->lpVtbl -> get_ErrorText(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509EnrollmentStatus_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0006 */ +/* [local] */ + +typedef +enum X509ProviderType + { + XCN_PROV_NONE = 0, + XCN_PROV_RSA_FULL = 1, + XCN_PROV_RSA_SIG = 2, + XCN_PROV_DSS = 3, + XCN_PROV_FORTEZZA = 4, + XCN_PROV_MS_EXCHANGE = 5, + XCN_PROV_SSL = 6, + XCN_PROV_RSA_SCHANNEL = 12, + XCN_PROV_DSS_DH = 13, + XCN_PROV_EC_ECDSA_SIG = 14, + XCN_PROV_EC_ECNRA_SIG = 15, + XCN_PROV_EC_ECDSA_FULL = 16, + XCN_PROV_EC_ECNRA_FULL = 17, + XCN_PROV_DH_SCHANNEL = 18, + XCN_PROV_SPYRUS_LYNKS = 20, + XCN_PROV_RNG = 21, + XCN_PROV_INTEL_SEC = 22, + XCN_PROV_REPLACE_OWF = 23, + XCN_PROV_RSA_AES = 24 + } X509ProviderType; + +// XCN_BCRYPT_SIGNATURE_INTERFACE: RSA, DSA, ECDSA_P* signature +// XCN_BCRYPT_ASYMMETRIC_ENCRYPTION_INTERFACE: RSA encryption +// XCN_BCRYPT_CIPHER_INTERFACE: RC2, RC4, DES, 3DES, AES symmetric encryption +// XCN_BCRYPT_HASH_INTERFACE: MD2, MD4, SHA1, SHA256, SHA384, SHA512 MAC, HMAC Hash +// XCN_BCRYPT_SECRET_AGREEMENT_INTERFACE: DH, ECDH_P* key agreement +// XCN_BCRYPT_RNG_INTERFACE: RNG +typedef +enum AlgorithmType + { + XCN_BCRYPT_UNKNOWN_INTERFACE = 0, + XCN_BCRYPT_CIPHER_INTERFACE = 0x1, + XCN_BCRYPT_HASH_INTERFACE = 0x2, + XCN_BCRYPT_ASYMMETRIC_ENCRYPTION_INTERFACE = 0x3, + XCN_BCRYPT_SIGNATURE_INTERFACE = 0x5, + XCN_BCRYPT_SECRET_AGREEMENT_INTERFACE = 0x4, + XCN_BCRYPT_RNG_INTERFACE = 0x6, + XCN_BCRYPT_KEY_DERIVATION_INTERFACE = 0x7 + } AlgorithmType; + +typedef +enum AlgorithmOperationFlags + { + XCN_NCRYPT_NO_OPERATION = 0, + XCN_NCRYPT_CIPHER_OPERATION = 0x1, + XCN_NCRYPT_HASH_OPERATION = 0x2, + XCN_NCRYPT_ASYMMETRIC_ENCRYPTION_OPERATION = 0x4, + XCN_NCRYPT_SECRET_AGREEMENT_OPERATION = 0x8, + XCN_NCRYPT_SIGNATURE_OPERATION = 0x10, + XCN_NCRYPT_RNG_OPERATION = 0x20, + XCN_NCRYPT_KEY_DERIVATION_OPERATION = 0x40, + XCN_NCRYPT_KEY_ENCAPSULATION_OPERATION = 0x80, + XCN_NCRYPT_ANY_ASYMMETRIC_OPERATION = ( ( ( 0x4 | 0x8 ) | 0x80 ) | 0x10 ) , + XCN_NCRYPT_PREFER_SIGNATURE_ONLY_OPERATION = 0x200000, + XCN_NCRYPT_PREFER_NON_SIGNATURE_OPERATION = 0x400000, + XCN_NCRYPT_EXACT_MATCH_OPERATION = 0x800000, + XCN_NCRYPT_PREFERENCE_MASK_OPERATION = 0xe00000 + } AlgorithmOperationFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0006_v0_0_s_ifspec; + +#ifndef __ICspAlgorithm_INTERFACE_DEFINED__ +#define __ICspAlgorithm_INTERFACE_DEFINED__ + +/* interface ICspAlgorithm */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICspAlgorithm; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab305-217d-11da-b2a4-000e7bbb2b09") + ICspAlgorithm : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE GetAlgorithmOid( + /* [in] */ LONG Length, + /* [in] */ AlgorithmFlags AlgFlags, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_DefaultLength( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_IncrementLength( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_LongName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Valid( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_MaxLength( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_MinLength( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out AlgorithmType *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_Operations( + /* [retval][out] */ __RPC__out AlgorithmOperationFlags *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICspAlgorithmVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICspAlgorithm * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICspAlgorithm * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICspAlgorithm * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICspAlgorithm * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICspAlgorithm * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICspAlgorithm * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICspAlgorithm * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICspAlgorithm, GetAlgorithmOid) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *GetAlgorithmOid )( + __RPC__in ICspAlgorithm * This, + /* [in] */ LONG Length, + /* [in] */ AlgorithmFlags AlgFlags, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(ICspAlgorithm, get_DefaultLength) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultLength )( + __RPC__in ICspAlgorithm * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ICspAlgorithm, get_IncrementLength) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IncrementLength )( + __RPC__in ICspAlgorithm * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ICspAlgorithm, get_LongName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_LongName )( + __RPC__in ICspAlgorithm * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICspAlgorithm, get_Valid) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Valid )( + __RPC__in ICspAlgorithm * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(ICspAlgorithm, get_MaxLength) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxLength )( + __RPC__in ICspAlgorithm * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ICspAlgorithm, get_MinLength) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinLength )( + __RPC__in ICspAlgorithm * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ICspAlgorithm, get_Name) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in ICspAlgorithm * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICspAlgorithm, get_Type) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in ICspAlgorithm * This, + /* [retval][out] */ __RPC__out AlgorithmType *pValue); + + DECLSPEC_XFGVIRT(ICspAlgorithm, get_Operations) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Operations )( + __RPC__in ICspAlgorithm * This, + /* [retval][out] */ __RPC__out AlgorithmOperationFlags *pValue); + + END_INTERFACE + } ICspAlgorithmVtbl; + + interface ICspAlgorithm + { + CONST_VTBL struct ICspAlgorithmVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICspAlgorithm_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICspAlgorithm_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICspAlgorithm_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICspAlgorithm_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICspAlgorithm_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICspAlgorithm_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICspAlgorithm_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICspAlgorithm_GetAlgorithmOid(This,Length,AlgFlags,ppValue) \ + ( (This)->lpVtbl -> GetAlgorithmOid(This,Length,AlgFlags,ppValue) ) + +#define ICspAlgorithm_get_DefaultLength(This,pValue) \ + ( (This)->lpVtbl -> get_DefaultLength(This,pValue) ) + +#define ICspAlgorithm_get_IncrementLength(This,pValue) \ + ( (This)->lpVtbl -> get_IncrementLength(This,pValue) ) + +#define ICspAlgorithm_get_LongName(This,pValue) \ + ( (This)->lpVtbl -> get_LongName(This,pValue) ) + +#define ICspAlgorithm_get_Valid(This,pValue) \ + ( (This)->lpVtbl -> get_Valid(This,pValue) ) + +#define ICspAlgorithm_get_MaxLength(This,pValue) \ + ( (This)->lpVtbl -> get_MaxLength(This,pValue) ) + +#define ICspAlgorithm_get_MinLength(This,pValue) \ + ( (This)->lpVtbl -> get_MinLength(This,pValue) ) + +#define ICspAlgorithm_get_Name(This,pValue) \ + ( (This)->lpVtbl -> get_Name(This,pValue) ) + +#define ICspAlgorithm_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define ICspAlgorithm_get_Operations(This,pValue) \ + ( (This)->lpVtbl -> get_Operations(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICspAlgorithm_INTERFACE_DEFINED__ */ + + +#ifndef __ICspAlgorithms_INTERFACE_DEFINED__ +#define __ICspAlgorithms_INTERFACE_DEFINED__ + +/* interface ICspAlgorithms */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICspAlgorithms; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab306-217d-11da-b2a4-000e7bbb2b09") + ICspAlgorithms : public IDispatch + { + public: + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICspAlgorithm **pVal) = 0; + + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id][custom] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt ICspAlgorithm *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByName( + /* [in] */ __RPC__in BSTR strName, + /* [retval][out] */ __RPC__deref_out_opt ICspAlgorithm **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IndexByObjectId( + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [retval][out] */ __RPC__out LONG *pIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICspAlgorithmsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICspAlgorithms * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICspAlgorithms * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICspAlgorithms * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICspAlgorithms * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICspAlgorithms * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICspAlgorithms * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICspAlgorithms * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICspAlgorithms, get_ItemByIndex) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in ICspAlgorithms * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICspAlgorithm **pVal); + + DECLSPEC_XFGVIRT(ICspAlgorithms, get_Count) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICspAlgorithms * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ICspAlgorithms, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICspAlgorithms * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(ICspAlgorithms, Add) + /* [helpstring][id][custom] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ICspAlgorithms * This, + /* [in] */ __RPC__in_opt ICspAlgorithm *pVal); + + DECLSPEC_XFGVIRT(ICspAlgorithms, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ICspAlgorithms * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(ICspAlgorithms, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in ICspAlgorithms * This); + + DECLSPEC_XFGVIRT(ICspAlgorithms, get_ItemByName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByName )( + __RPC__in ICspAlgorithms * This, + /* [in] */ __RPC__in BSTR strName, + /* [retval][out] */ __RPC__deref_out_opt ICspAlgorithm **ppValue); + + DECLSPEC_XFGVIRT(ICspAlgorithms, get_IndexByObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IndexByObjectId )( + __RPC__in ICspAlgorithms * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [retval][out] */ __RPC__out LONG *pIndex); + + END_INTERFACE + } ICspAlgorithmsVtbl; + + interface ICspAlgorithms + { + CONST_VTBL struct ICspAlgorithmsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICspAlgorithms_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICspAlgorithms_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICspAlgorithms_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICspAlgorithms_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICspAlgorithms_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICspAlgorithms_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICspAlgorithms_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICspAlgorithms_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define ICspAlgorithms_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ICspAlgorithms_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define ICspAlgorithms_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define ICspAlgorithms_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define ICspAlgorithms_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define ICspAlgorithms_get_ItemByName(This,strName,ppValue) \ + ( (This)->lpVtbl -> get_ItemByName(This,strName,ppValue) ) + +#define ICspAlgorithms_get_IndexByObjectId(This,pObjectId,pIndex) \ + ( (This)->lpVtbl -> get_IndexByObjectId(This,pObjectId,pIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICspAlgorithms_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0008 */ +/* [local] */ + +typedef +enum X509KeySpec + { + XCN_AT_NONE = 0, + XCN_AT_KEYEXCHANGE = 1, + XCN_AT_SIGNATURE = 2 + } X509KeySpec; + + + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0008_v0_0_s_ifspec; + +#ifndef __ICspInformation_INTERFACE_DEFINED__ +#define __ICspInformation_INTERFACE_DEFINED__ + +/* interface ICspInformation */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICspInformation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab307-217d-11da-b2a4-000e7bbb2b09") + ICspInformation : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeFromName( + /* [in] */ __RPC__in BSTR strName) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromType( + /* [in] */ X509ProviderType Type, + /* [in] */ __RPC__in_opt IObjectId *pAlgorithm, + /* [in] */ VARIANT_BOOL MachineContext) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_CspAlgorithms( + /* [retval][out] */ __RPC__deref_out_opt ICspAlgorithms **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_HasHardwareRandomNumberGenerator( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsHardwareDevice( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsRemovable( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsSoftwareDevice( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Valid( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MaxKeyContainerNameLength( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out X509ProviderType *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Version( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_KeySpec( + /* [retval][out] */ __RPC__out X509KeySpec *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsSmartCard( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefaultSecurityDescriptor( + /* [in] */ VARIANT_BOOL MachineContext, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_LegacyCsp( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCspStatusFromOperations( + /* [in] */ __RPC__in_opt IObjectId *pAlgorithm, + /* [in] */ AlgorithmOperationFlags Operations, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICspInformationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICspInformation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICspInformation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICspInformation * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICspInformation * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICspInformation * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICspInformation * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICspInformation * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICspInformation, InitializeFromName) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromName )( + __RPC__in ICspInformation * This, + /* [in] */ __RPC__in BSTR strName); + + DECLSPEC_XFGVIRT(ICspInformation, InitializeFromType) + HRESULT ( STDMETHODCALLTYPE *InitializeFromType )( + __RPC__in ICspInformation * This, + /* [in] */ X509ProviderType Type, + /* [in] */ __RPC__in_opt IObjectId *pAlgorithm, + /* [in] */ VARIANT_BOOL MachineContext); + + DECLSPEC_XFGVIRT(ICspInformation, get_CspAlgorithms) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspAlgorithms )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__deref_out_opt ICspAlgorithms **ppValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_HasHardwareRandomNumberGenerator) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_HasHardwareRandomNumberGenerator )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_IsHardwareDevice) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsHardwareDevice )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_IsRemovable) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsRemovable )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_IsSoftwareDevice) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsSoftwareDevice )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_Valid) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Valid )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_MaxKeyContainerNameLength) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MaxKeyContainerNameLength )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_Name) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_Type) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out X509ProviderType *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_Version) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_KeySpec) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeySpec )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out X509KeySpec *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_IsSmartCard) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsSmartCard )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, GetDefaultSecurityDescriptor) + HRESULT ( STDMETHODCALLTYPE *GetDefaultSecurityDescriptor )( + __RPC__in ICspInformation * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, get_LegacyCsp) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LegacyCsp )( + __RPC__in ICspInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(ICspInformation, GetCspStatusFromOperations) + HRESULT ( STDMETHODCALLTYPE *GetCspStatusFromOperations )( + __RPC__in ICspInformation * This, + /* [in] */ __RPC__in_opt IObjectId *pAlgorithm, + /* [in] */ AlgorithmOperationFlags Operations, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue); + + END_INTERFACE + } ICspInformationVtbl; + + interface ICspInformation + { + CONST_VTBL struct ICspInformationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICspInformation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICspInformation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICspInformation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICspInformation_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICspInformation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICspInformation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICspInformation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICspInformation_InitializeFromName(This,strName) \ + ( (This)->lpVtbl -> InitializeFromName(This,strName) ) + +#define ICspInformation_InitializeFromType(This,Type,pAlgorithm,MachineContext) \ + ( (This)->lpVtbl -> InitializeFromType(This,Type,pAlgorithm,MachineContext) ) + +#define ICspInformation_get_CspAlgorithms(This,ppValue) \ + ( (This)->lpVtbl -> get_CspAlgorithms(This,ppValue) ) + +#define ICspInformation_get_HasHardwareRandomNumberGenerator(This,pValue) \ + ( (This)->lpVtbl -> get_HasHardwareRandomNumberGenerator(This,pValue) ) + +#define ICspInformation_get_IsHardwareDevice(This,pValue) \ + ( (This)->lpVtbl -> get_IsHardwareDevice(This,pValue) ) + +#define ICspInformation_get_IsRemovable(This,pValue) \ + ( (This)->lpVtbl -> get_IsRemovable(This,pValue) ) + +#define ICspInformation_get_IsSoftwareDevice(This,pValue) \ + ( (This)->lpVtbl -> get_IsSoftwareDevice(This,pValue) ) + +#define ICspInformation_get_Valid(This,pValue) \ + ( (This)->lpVtbl -> get_Valid(This,pValue) ) + +#define ICspInformation_get_MaxKeyContainerNameLength(This,pValue) \ + ( (This)->lpVtbl -> get_MaxKeyContainerNameLength(This,pValue) ) + +#define ICspInformation_get_Name(This,pValue) \ + ( (This)->lpVtbl -> get_Name(This,pValue) ) + +#define ICspInformation_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define ICspInformation_get_Version(This,pValue) \ + ( (This)->lpVtbl -> get_Version(This,pValue) ) + +#define ICspInformation_get_KeySpec(This,pValue) \ + ( (This)->lpVtbl -> get_KeySpec(This,pValue) ) + +#define ICspInformation_get_IsSmartCard(This,pValue) \ + ( (This)->lpVtbl -> get_IsSmartCard(This,pValue) ) + +#define ICspInformation_GetDefaultSecurityDescriptor(This,MachineContext,pValue) \ + ( (This)->lpVtbl -> GetDefaultSecurityDescriptor(This,MachineContext,pValue) ) + +#define ICspInformation_get_LegacyCsp(This,pValue) \ + ( (This)->lpVtbl -> get_LegacyCsp(This,pValue) ) + +#define ICspInformation_GetCspStatusFromOperations(This,pAlgorithm,Operations,ppValue) \ + ( (This)->lpVtbl -> GetCspStatusFromOperations(This,pAlgorithm,Operations,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICspInformation_INTERFACE_DEFINED__ */ + + +#ifndef __ICspInformations_INTERFACE_DEFINED__ +#define __ICspInformations_INTERFACE_DEFINED__ + +/* interface ICspInformations */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICspInformations; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab308-217d-11da-b2a4-000e7bbb2b09") + ICspInformations : public IDispatch + { + public: + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICspInformation **pVal) = 0; + + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id][custom] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt ICspInformation *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE AddAvailableCsps( void) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByName( + /* [in] */ __RPC__in BSTR strName, + /* [retval][out] */ __RPC__deref_out_opt ICspInformation **ppCspInformation) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE GetCspStatusFromProviderName( + /* [in] */ __RPC__in BSTR strProviderName, + /* [in] */ X509KeySpec LegacyKeySpec, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE GetCspStatusesFromOperations( + /* [in] */ AlgorithmOperationFlags Operations, + /* [in] */ __RPC__in_opt ICspInformation *pCspInformation, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEncryptionCspAlgorithms( + /* [in] */ __RPC__in_opt ICspInformation *pCspInformation, + /* [retval][out] */ __RPC__deref_out_opt ICspAlgorithms **ppValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHashAlgorithms( + /* [in] */ __RPC__in_opt ICspInformation *pCspInformation, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICspInformationsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICspInformations * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICspInformations * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICspInformations * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICspInformations * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICspInformations * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICspInformations * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICspInformations * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICspInformations, get_ItemByIndex) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in ICspInformations * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICspInformation **pVal); + + DECLSPEC_XFGVIRT(ICspInformations, get_Count) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICspInformations * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ICspInformations, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICspInformations * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(ICspInformations, Add) + /* [helpstring][id][custom] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ICspInformations * This, + /* [in] */ __RPC__in_opt ICspInformation *pVal); + + DECLSPEC_XFGVIRT(ICspInformations, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ICspInformations * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(ICspInformations, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in ICspInformations * This); + + DECLSPEC_XFGVIRT(ICspInformations, AddAvailableCsps) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *AddAvailableCsps )( + __RPC__in ICspInformations * This); + + DECLSPEC_XFGVIRT(ICspInformations, get_ItemByName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByName )( + __RPC__in ICspInformations * This, + /* [in] */ __RPC__in BSTR strName, + /* [retval][out] */ __RPC__deref_out_opt ICspInformation **ppCspInformation); + + DECLSPEC_XFGVIRT(ICspInformations, GetCspStatusFromProviderName) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *GetCspStatusFromProviderName )( + __RPC__in ICspInformations * This, + /* [in] */ __RPC__in BSTR strProviderName, + /* [in] */ X509KeySpec LegacyKeySpec, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue); + + DECLSPEC_XFGVIRT(ICspInformations, GetCspStatusesFromOperations) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *GetCspStatusesFromOperations )( + __RPC__in ICspInformations * This, + /* [in] */ AlgorithmOperationFlags Operations, + /* [in] */ __RPC__in_opt ICspInformation *pCspInformation, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppValue); + + DECLSPEC_XFGVIRT(ICspInformations, GetEncryptionCspAlgorithms) + HRESULT ( STDMETHODCALLTYPE *GetEncryptionCspAlgorithms )( + __RPC__in ICspInformations * This, + /* [in] */ __RPC__in_opt ICspInformation *pCspInformation, + /* [retval][out] */ __RPC__deref_out_opt ICspAlgorithms **ppValue); + + DECLSPEC_XFGVIRT(ICspInformations, GetHashAlgorithms) + HRESULT ( STDMETHODCALLTYPE *GetHashAlgorithms )( + __RPC__in ICspInformations * This, + /* [in] */ __RPC__in_opt ICspInformation *pCspInformation, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + END_INTERFACE + } ICspInformationsVtbl; + + interface ICspInformations + { + CONST_VTBL struct ICspInformationsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICspInformations_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICspInformations_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICspInformations_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICspInformations_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICspInformations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICspInformations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICspInformations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICspInformations_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define ICspInformations_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ICspInformations_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define ICspInformations_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define ICspInformations_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define ICspInformations_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define ICspInformations_AddAvailableCsps(This) \ + ( (This)->lpVtbl -> AddAvailableCsps(This) ) + +#define ICspInformations_get_ItemByName(This,strName,ppCspInformation) \ + ( (This)->lpVtbl -> get_ItemByName(This,strName,ppCspInformation) ) + +#define ICspInformations_GetCspStatusFromProviderName(This,strProviderName,LegacyKeySpec,ppValue) \ + ( (This)->lpVtbl -> GetCspStatusFromProviderName(This,strProviderName,LegacyKeySpec,ppValue) ) + +#define ICspInformations_GetCspStatusesFromOperations(This,Operations,pCspInformation,ppValue) \ + ( (This)->lpVtbl -> GetCspStatusesFromOperations(This,Operations,pCspInformation,ppValue) ) + +#define ICspInformations_GetEncryptionCspAlgorithms(This,pCspInformation,ppValue) \ + ( (This)->lpVtbl -> GetEncryptionCspAlgorithms(This,pCspInformation,ppValue) ) + +#define ICspInformations_GetHashAlgorithms(This,pCspInformation,ppValue) \ + ( (This)->lpVtbl -> GetHashAlgorithms(This,pCspInformation,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICspInformations_INTERFACE_DEFINED__ */ + + +#ifndef __ICspStatus_INTERFACE_DEFINED__ +#define __ICspStatus_INTERFACE_DEFINED__ + +/* interface ICspStatus */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICspStatus; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab309-217d-11da-b2a4-000e7bbb2b09") + ICspStatus : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt ICspInformation *pCsp, + /* [in] */ __RPC__in_opt ICspAlgorithm *pAlgorithm) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Ordinal( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Ordinal( + /* [in] */ LONG Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_CspAlgorithm( + /* [retval][out] */ __RPC__deref_out_opt ICspAlgorithm **ppValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_CspInformation( + /* [retval][out] */ __RPC__deref_out_opt ICspInformation **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EnrollmentStatus( + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentStatus **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICspStatusVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICspStatus * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICspStatus * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICspStatus * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICspStatus * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICspStatus * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICspStatus * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICspStatus * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICspStatus, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICspStatus * This, + /* [in] */ __RPC__in_opt ICspInformation *pCsp, + /* [in] */ __RPC__in_opt ICspAlgorithm *pAlgorithm); + + DECLSPEC_XFGVIRT(ICspStatus, get_Ordinal) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Ordinal )( + __RPC__in ICspStatus * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ICspStatus, put_Ordinal) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Ordinal )( + __RPC__in ICspStatus * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(ICspStatus, get_CspAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspAlgorithm )( + __RPC__in ICspStatus * This, + /* [retval][out] */ __RPC__deref_out_opt ICspAlgorithm **ppValue); + + DECLSPEC_XFGVIRT(ICspStatus, get_CspInformation) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformation )( + __RPC__in ICspStatus * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformation **ppValue); + + DECLSPEC_XFGVIRT(ICspStatus, get_EnrollmentStatus) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentStatus )( + __RPC__in ICspStatus * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentStatus **ppValue); + + DECLSPEC_XFGVIRT(ICspStatus, get_DisplayName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in ICspStatus * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } ICspStatusVtbl; + + interface ICspStatus + { + CONST_VTBL struct ICspStatusVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICspStatus_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICspStatus_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICspStatus_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICspStatus_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICspStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICspStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICspStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICspStatus_Initialize(This,pCsp,pAlgorithm) \ + ( (This)->lpVtbl -> Initialize(This,pCsp,pAlgorithm) ) + +#define ICspStatus_get_Ordinal(This,pValue) \ + ( (This)->lpVtbl -> get_Ordinal(This,pValue) ) + +#define ICspStatus_put_Ordinal(This,Value) \ + ( (This)->lpVtbl -> put_Ordinal(This,Value) ) + +#define ICspStatus_get_CspAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_CspAlgorithm(This,ppValue) ) + +#define ICspStatus_get_CspInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformation(This,ppValue) ) + +#define ICspStatus_get_EnrollmentStatus(This,ppValue) \ + ( (This)->lpVtbl -> get_EnrollmentStatus(This,ppValue) ) + +#define ICspStatus_get_DisplayName(This,pValue) \ + ( (This)->lpVtbl -> get_DisplayName(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICspStatus_INTERFACE_DEFINED__ */ + + +#ifndef __ICspStatuses_INTERFACE_DEFINED__ +#define __ICspStatuses_INTERFACE_DEFINED__ + +/* interface ICspStatuses */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICspStatuses; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab30a-217d-11da-b2a4-000e7bbb2b09") + ICspStatuses : public IDispatch + { + public: + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **pVal) = 0; + + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id][custom] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt ICspStatus *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [helpstring][custom][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByName( + /* [in] */ __RPC__in BSTR strCspName, + /* [in] */ __RPC__in BSTR strAlgorithmName, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByOrdinal( + /* [in] */ LONG Ordinal, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByOperations( + /* [in] */ __RPC__in BSTR strCspName, + /* [in] */ __RPC__in BSTR strAlgorithmName, + /* [in] */ AlgorithmOperationFlags Operations, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue) = 0; + + virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByProvider( + /* [in] */ __RPC__in_opt ICspStatus *pCspStatus, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICspStatusesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICspStatuses * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICspStatuses * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICspStatuses * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICspStatuses * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICspStatuses * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICspStatuses * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICspStatuses * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICspStatuses, get_ItemByIndex) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in ICspStatuses * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **pVal); + + DECLSPEC_XFGVIRT(ICspStatuses, get_Count) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICspStatuses * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ICspStatuses, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICspStatuses * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(ICspStatuses, Add) + /* [helpstring][id][custom] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ICspStatuses * This, + /* [in] */ __RPC__in_opt ICspStatus *pVal); + + DECLSPEC_XFGVIRT(ICspStatuses, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ICspStatuses * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(ICspStatuses, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in ICspStatuses * This); + + DECLSPEC_XFGVIRT(ICspStatuses, get_ItemByName) + /* [helpstring][custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByName )( + __RPC__in ICspStatuses * This, + /* [in] */ __RPC__in BSTR strCspName, + /* [in] */ __RPC__in BSTR strAlgorithmName, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue); + + DECLSPEC_XFGVIRT(ICspStatuses, get_ItemByOrdinal) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByOrdinal )( + __RPC__in ICspStatuses * This, + /* [in] */ LONG Ordinal, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue); + + DECLSPEC_XFGVIRT(ICspStatuses, get_ItemByOperations) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByOperations )( + __RPC__in ICspStatuses * This, + /* [in] */ __RPC__in BSTR strCspName, + /* [in] */ __RPC__in BSTR strAlgorithmName, + /* [in] */ AlgorithmOperationFlags Operations, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue); + + DECLSPEC_XFGVIRT(ICspStatuses, get_ItemByProvider) + /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByProvider )( + __RPC__in ICspStatuses * This, + /* [in] */ __RPC__in_opt ICspStatus *pCspStatus, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue); + + END_INTERFACE + } ICspStatusesVtbl; + + interface ICspStatuses + { + CONST_VTBL struct ICspStatusesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICspStatuses_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICspStatuses_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICspStatuses_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICspStatuses_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICspStatuses_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICspStatuses_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICspStatuses_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICspStatuses_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define ICspStatuses_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ICspStatuses_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define ICspStatuses_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define ICspStatuses_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define ICspStatuses_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define ICspStatuses_get_ItemByName(This,strCspName,strAlgorithmName,ppValue) \ + ( (This)->lpVtbl -> get_ItemByName(This,strCspName,strAlgorithmName,ppValue) ) + +#define ICspStatuses_get_ItemByOrdinal(This,Ordinal,ppValue) \ + ( (This)->lpVtbl -> get_ItemByOrdinal(This,Ordinal,ppValue) ) + +#define ICspStatuses_get_ItemByOperations(This,strCspName,strAlgorithmName,Operations,ppValue) \ + ( (This)->lpVtbl -> get_ItemByOperations(This,strCspName,strAlgorithmName,Operations,ppValue) ) + +#define ICspStatuses_get_ItemByProvider(This,pCspStatus,ppValue) \ + ( (This)->lpVtbl -> get_ItemByProvider(This,pCspStatus,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICspStatuses_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0012 */ +/* [local] */ + +typedef +enum KeyIdentifierHashAlgorithm + { + SKIHashDefault = 0, + SKIHashSha1 = 1, + SKIHashCapiSha1 = 2, + SKIHashSha256 = 3, + SKIHashHPKP = 5 + } KeyIdentifierHashAlgorithm; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0012_v0_0_s_ifspec; + +#ifndef __IX509PublicKey_INTERFACE_DEFINED__ +#define __IX509PublicKey_INTERFACE_DEFINED__ + +/* interface IX509PublicKey */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509PublicKey; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab30b-217d-11da-b2a4-000e7bbb2b09") + IX509PublicKey : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ __RPC__in BSTR strEncodedKey, + /* [in] */ __RPC__in BSTR strEncodedParameters, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromEncodedPublicKeyInfo( + /* [in] */ __RPC__in BSTR strEncodedPublicKeyInfo, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Algorithm( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Length( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EncodedKey( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EncodedParameters( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE ComputeKeyIdentifier( + /* [in] */ KeyIdentifierHashAlgorithm Algorithm, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509PublicKeyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509PublicKey * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509PublicKey * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509PublicKey * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509PublicKey * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509PublicKey * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509PublicKey * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509PublicKey * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509PublicKey, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509PublicKey * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ __RPC__in BSTR strEncodedKey, + /* [in] */ __RPC__in BSTR strEncodedParameters, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509PublicKey, InitializeFromEncodedPublicKeyInfo) + HRESULT ( STDMETHODCALLTYPE *InitializeFromEncodedPublicKeyInfo )( + __RPC__in IX509PublicKey * This, + /* [in] */ __RPC__in BSTR strEncodedPublicKeyInfo, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509PublicKey, get_Algorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Algorithm )( + __RPC__in IX509PublicKey * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509PublicKey, get_Length) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )( + __RPC__in IX509PublicKey * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509PublicKey, get_EncodedKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncodedKey )( + __RPC__in IX509PublicKey * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PublicKey, get_EncodedParameters) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncodedParameters )( + __RPC__in IX509PublicKey * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PublicKey, ComputeKeyIdentifier) + HRESULT ( STDMETHODCALLTYPE *ComputeKeyIdentifier )( + __RPC__in IX509PublicKey * This, + /* [in] */ KeyIdentifierHashAlgorithm Algorithm, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509PublicKeyVtbl; + + interface IX509PublicKey + { + CONST_VTBL struct IX509PublicKeyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509PublicKey_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509PublicKey_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509PublicKey_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509PublicKey_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509PublicKey_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509PublicKey_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509PublicKey_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509PublicKey_Initialize(This,pObjectId,strEncodedKey,strEncodedParameters,Encoding) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,strEncodedKey,strEncodedParameters,Encoding) ) + +#define IX509PublicKey_InitializeFromEncodedPublicKeyInfo(This,strEncodedPublicKeyInfo,Encoding) \ + ( (This)->lpVtbl -> InitializeFromEncodedPublicKeyInfo(This,strEncodedPublicKeyInfo,Encoding) ) + +#define IX509PublicKey_get_Algorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_Algorithm(This,ppValue) ) + +#define IX509PublicKey_get_Length(This,pValue) \ + ( (This)->lpVtbl -> get_Length(This,pValue) ) + +#define IX509PublicKey_get_EncodedKey(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_EncodedKey(This,Encoding,pValue) ) + +#define IX509PublicKey_get_EncodedParameters(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_EncodedParameters(This,Encoding,pValue) ) + +#define IX509PublicKey_ComputeKeyIdentifier(This,Algorithm,Encoding,pValue) \ + ( (This)->lpVtbl -> ComputeKeyIdentifier(This,Algorithm,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509PublicKey_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0013 */ +/* [local] */ + +typedef +enum X509PrivateKeyExportFlags + { + XCN_NCRYPT_ALLOW_EXPORT_NONE = 0, + XCN_NCRYPT_ALLOW_EXPORT_FLAG = 0x1, + XCN_NCRYPT_ALLOW_PLAINTEXT_EXPORT_FLAG = 0x2, + XCN_NCRYPT_ALLOW_ARCHIVING_FLAG = 0x4, + XCN_NCRYPT_ALLOW_PLAINTEXT_ARCHIVING_FLAG = 0x8 + } X509PrivateKeyExportFlags; + +typedef +enum X509PrivateKeyUsageFlags + { + XCN_NCRYPT_ALLOW_USAGES_NONE = 0, + XCN_NCRYPT_ALLOW_DECRYPT_FLAG = 0x1, + XCN_NCRYPT_ALLOW_SIGNING_FLAG = 0x2, + XCN_NCRYPT_ALLOW_KEY_AGREEMENT_FLAG = 0x4, + XCN_NCRYPT_ALLOW_KEY_IMPORT_FLAG = 0x8, + XCN_NCRYPT_ALLOW_ALL_USAGES = 0xffffff + } X509PrivateKeyUsageFlags; + +typedef +enum X509PrivateKeyProtection + { + XCN_NCRYPT_UI_NO_PROTECTION_FLAG = 0, + XCN_NCRYPT_UI_PROTECT_KEY_FLAG = 0x1, + XCN_NCRYPT_UI_FORCE_HIGH_PROTECTION_FLAG = 0x2, + XCN_NCRYPT_UI_FINGERPRINT_PROTECTION_FLAG = 0x4, + XCN_NCRYPT_UI_APPCONTAINER_ACCESS_MEDIUM_FLAG = 0x8 + } X509PrivateKeyProtection; + +typedef +enum X509PrivateKeyVerify + { + VerifyNone = 0, + VerifySilent = 1, + VerifySmartCardNone = 2, + VerifySmartCardSilent = 3, + VerifyAllowUI = 4 + } X509PrivateKeyVerify; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0013_v0_0_s_ifspec; + +#ifndef __IX509PrivateKey_INTERFACE_DEFINED__ +#define __IX509PrivateKey_INTERFACE_DEFINED__ + +/* interface IX509PrivateKey */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509PrivateKey; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab30c-217d-11da-b2a4-000e7bbb2b09") + IX509PrivateKey : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Open( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Create( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Verify( + /* [in] */ X509PrivateKeyVerify VerifyType) = 0; + + virtual HRESULT STDMETHODCALLTYPE Import( + /* [in] */ __RPC__in BSTR strExportType, + /* [in] */ __RPC__in BSTR strEncodedKey, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual HRESULT STDMETHODCALLTYPE Export( + /* [in] */ __RPC__in BSTR strExportType, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedKey) = 0; + + virtual HRESULT STDMETHODCALLTYPE ExportPublicKey( + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppPublicKey) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_ContainerName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_ContainerName( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ContainerNamePrefix( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ContainerNamePrefix( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ReaderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ReaderName( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_CspInformations( + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_CspInformations( + /* [in] */ __RPC__in_opt ICspInformations *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_CspStatus( + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_CspStatus( + /* [in] */ __RPC__in_opt ICspStatus *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_ProviderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_ProviderName( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_ProviderType( + /* [retval][out] */ __RPC__out X509ProviderType *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_ProviderType( + /* [in] */ X509ProviderType Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_LegacyCsp( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_LegacyCsp( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_Algorithm( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_Algorithm( + /* [in] */ __RPC__in_opt IObjectId *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_KeySpec( + /* [retval][out] */ __RPC__out X509KeySpec *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_KeySpec( + /* [in] */ X509KeySpec Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_Length( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_Length( + /* [in] */ LONG Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_ExportPolicy( + /* [retval][out] */ __RPC__out X509PrivateKeyExportFlags *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_ExportPolicy( + /* [in] */ X509PrivateKeyExportFlags Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_KeyUsage( + /* [retval][out] */ __RPC__out X509PrivateKeyUsageFlags *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_KeyUsage( + /* [in] */ X509PrivateKeyUsageFlags Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_KeyProtection( + /* [retval][out] */ __RPC__out X509PrivateKeyProtection *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_KeyProtection( + /* [in] */ X509PrivateKeyProtection Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_MachineContext( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_MachineContext( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SecurityDescriptor( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SecurityDescriptor( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Certificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Certificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UniqueContainerName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Opened( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DefaultContainer( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_Existing( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_Existing( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Silent( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Silent( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ParentWindow( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ParentWindow( + /* [in] */ LONG Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UIContextMessage( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_UIContextMessage( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Pin( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_FriendlyName( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR Value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509PrivateKeyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509PrivateKey * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509PrivateKey * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509PrivateKey * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509PrivateKey * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509PrivateKey * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Open) + HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in IX509PrivateKey * This); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Create) + HRESULT ( STDMETHODCALLTYPE *Create )( + __RPC__in IX509PrivateKey * This); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IX509PrivateKey * This); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IX509PrivateKey * This); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Verify) + HRESULT ( STDMETHODCALLTYPE *Verify )( + __RPC__in IX509PrivateKey * This, + /* [in] */ X509PrivateKeyVerify VerifyType); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Import) + HRESULT ( STDMETHODCALLTYPE *Import )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR strExportType, + /* [in] */ __RPC__in BSTR strEncodedKey, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Export) + HRESULT ( STDMETHODCALLTYPE *Export )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR strExportType, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedKey); + + DECLSPEC_XFGVIRT(IX509PrivateKey, ExportPublicKey) + HRESULT ( STDMETHODCALLTYPE *ExportPublicKey )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppPublicKey); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ContainerName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ContainerName )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ContainerName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ContainerName )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ContainerNamePrefix) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ContainerNamePrefix )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ContainerNamePrefix) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ContainerNamePrefix )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ReaderName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReaderName )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ReaderName) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReaderName )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_CspInformations) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_CspInformations) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_CspStatus) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspStatus )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_CspStatus) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspStatus )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in_opt ICspStatus *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ProviderName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProviderName )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ProviderName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProviderName )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ProviderType) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProviderType )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out X509ProviderType *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ProviderType) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProviderType )( + __RPC__in IX509PrivateKey * This, + /* [in] */ X509ProviderType Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_LegacyCsp) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LegacyCsp )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_LegacyCsp) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LegacyCsp )( + __RPC__in IX509PrivateKey * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Algorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Algorithm )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Algorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Algorithm )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_KeySpec) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeySpec )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out X509KeySpec *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_KeySpec) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeySpec )( + __RPC__in IX509PrivateKey * This, + /* [in] */ X509KeySpec Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Length) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Length) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Length )( + __RPC__in IX509PrivateKey * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ExportPolicy) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExportPolicy )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out X509PrivateKeyExportFlags *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ExportPolicy) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExportPolicy )( + __RPC__in IX509PrivateKey * This, + /* [in] */ X509PrivateKeyExportFlags Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_KeyUsage) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyUsage )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out X509PrivateKeyUsageFlags *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_KeyUsage) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyUsage )( + __RPC__in IX509PrivateKey * This, + /* [in] */ X509PrivateKeyUsageFlags Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_KeyProtection) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyProtection )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out X509PrivateKeyProtection *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_KeyProtection) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyProtection )( + __RPC__in IX509PrivateKey * This, + /* [in] */ X509PrivateKeyProtection Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_MachineContext) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MachineContext )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_MachineContext) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MachineContext )( + __RPC__in IX509PrivateKey * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_SecurityDescriptor) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SecurityDescriptor )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_SecurityDescriptor) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SecurityDescriptor )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Certificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Certificate )( + __RPC__in IX509PrivateKey * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Certificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Certificate )( + __RPC__in IX509PrivateKey * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_UniqueContainerName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueContainerName )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Opened) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Opened )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_DefaultContainer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultContainer )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Existing) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Existing )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Existing) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Existing )( + __RPC__in IX509PrivateKey * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509PrivateKey * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509PrivateKey * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Pin) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Pin )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_FriendlyName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_FriendlyName) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IX509PrivateKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IX509PrivateKey * This, + /* [in] */ __RPC__in BSTR Value); + + END_INTERFACE + } IX509PrivateKeyVtbl; + + interface IX509PrivateKey + { + CONST_VTBL struct IX509PrivateKeyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509PrivateKey_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509PrivateKey_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509PrivateKey_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509PrivateKey_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509PrivateKey_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509PrivateKey_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509PrivateKey_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509PrivateKey_Open(This) \ + ( (This)->lpVtbl -> Open(This) ) + +#define IX509PrivateKey_Create(This) \ + ( (This)->lpVtbl -> Create(This) ) + +#define IX509PrivateKey_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define IX509PrivateKey_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IX509PrivateKey_Verify(This,VerifyType) \ + ( (This)->lpVtbl -> Verify(This,VerifyType) ) + +#define IX509PrivateKey_Import(This,strExportType,strEncodedKey,Encoding) \ + ( (This)->lpVtbl -> Import(This,strExportType,strEncodedKey,Encoding) ) + +#define IX509PrivateKey_Export(This,strExportType,Encoding,pstrEncodedKey) \ + ( (This)->lpVtbl -> Export(This,strExportType,Encoding,pstrEncodedKey) ) + +#define IX509PrivateKey_ExportPublicKey(This,ppPublicKey) \ + ( (This)->lpVtbl -> ExportPublicKey(This,ppPublicKey) ) + +#define IX509PrivateKey_get_ContainerName(This,pValue) \ + ( (This)->lpVtbl -> get_ContainerName(This,pValue) ) + +#define IX509PrivateKey_put_ContainerName(This,Value) \ + ( (This)->lpVtbl -> put_ContainerName(This,Value) ) + +#define IX509PrivateKey_get_ContainerNamePrefix(This,pValue) \ + ( (This)->lpVtbl -> get_ContainerNamePrefix(This,pValue) ) + +#define IX509PrivateKey_put_ContainerNamePrefix(This,Value) \ + ( (This)->lpVtbl -> put_ContainerNamePrefix(This,Value) ) + +#define IX509PrivateKey_get_ReaderName(This,pValue) \ + ( (This)->lpVtbl -> get_ReaderName(This,pValue) ) + +#define IX509PrivateKey_put_ReaderName(This,Value) \ + ( (This)->lpVtbl -> put_ReaderName(This,Value) ) + +#define IX509PrivateKey_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509PrivateKey_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509PrivateKey_get_CspStatus(This,ppValue) \ + ( (This)->lpVtbl -> get_CspStatus(This,ppValue) ) + +#define IX509PrivateKey_put_CspStatus(This,pValue) \ + ( (This)->lpVtbl -> put_CspStatus(This,pValue) ) + +#define IX509PrivateKey_get_ProviderName(This,pValue) \ + ( (This)->lpVtbl -> get_ProviderName(This,pValue) ) + +#define IX509PrivateKey_put_ProviderName(This,Value) \ + ( (This)->lpVtbl -> put_ProviderName(This,Value) ) + +#define IX509PrivateKey_get_ProviderType(This,pValue) \ + ( (This)->lpVtbl -> get_ProviderType(This,pValue) ) + +#define IX509PrivateKey_put_ProviderType(This,Value) \ + ( (This)->lpVtbl -> put_ProviderType(This,Value) ) + +#define IX509PrivateKey_get_LegacyCsp(This,pValue) \ + ( (This)->lpVtbl -> get_LegacyCsp(This,pValue) ) + +#define IX509PrivateKey_put_LegacyCsp(This,Value) \ + ( (This)->lpVtbl -> put_LegacyCsp(This,Value) ) + +#define IX509PrivateKey_get_Algorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_Algorithm(This,ppValue) ) + +#define IX509PrivateKey_put_Algorithm(This,pValue) \ + ( (This)->lpVtbl -> put_Algorithm(This,pValue) ) + +#define IX509PrivateKey_get_KeySpec(This,pValue) \ + ( (This)->lpVtbl -> get_KeySpec(This,pValue) ) + +#define IX509PrivateKey_put_KeySpec(This,Value) \ + ( (This)->lpVtbl -> put_KeySpec(This,Value) ) + +#define IX509PrivateKey_get_Length(This,pValue) \ + ( (This)->lpVtbl -> get_Length(This,pValue) ) + +#define IX509PrivateKey_put_Length(This,Value) \ + ( (This)->lpVtbl -> put_Length(This,Value) ) + +#define IX509PrivateKey_get_ExportPolicy(This,pValue) \ + ( (This)->lpVtbl -> get_ExportPolicy(This,pValue) ) + +#define IX509PrivateKey_put_ExportPolicy(This,Value) \ + ( (This)->lpVtbl -> put_ExportPolicy(This,Value) ) + +#define IX509PrivateKey_get_KeyUsage(This,pValue) \ + ( (This)->lpVtbl -> get_KeyUsage(This,pValue) ) + +#define IX509PrivateKey_put_KeyUsage(This,Value) \ + ( (This)->lpVtbl -> put_KeyUsage(This,Value) ) + +#define IX509PrivateKey_get_KeyProtection(This,pValue) \ + ( (This)->lpVtbl -> get_KeyProtection(This,pValue) ) + +#define IX509PrivateKey_put_KeyProtection(This,Value) \ + ( (This)->lpVtbl -> put_KeyProtection(This,Value) ) + +#define IX509PrivateKey_get_MachineContext(This,pValue) \ + ( (This)->lpVtbl -> get_MachineContext(This,pValue) ) + +#define IX509PrivateKey_put_MachineContext(This,Value) \ + ( (This)->lpVtbl -> put_MachineContext(This,Value) ) + +#define IX509PrivateKey_get_SecurityDescriptor(This,pValue) \ + ( (This)->lpVtbl -> get_SecurityDescriptor(This,pValue) ) + +#define IX509PrivateKey_put_SecurityDescriptor(This,Value) \ + ( (This)->lpVtbl -> put_SecurityDescriptor(This,Value) ) + +#define IX509PrivateKey_get_Certificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Certificate(This,Encoding,pValue) ) + +#define IX509PrivateKey_put_Certificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_Certificate(This,Encoding,Value) ) + +#define IX509PrivateKey_get_UniqueContainerName(This,pValue) \ + ( (This)->lpVtbl -> get_UniqueContainerName(This,pValue) ) + +#define IX509PrivateKey_get_Opened(This,pValue) \ + ( (This)->lpVtbl -> get_Opened(This,pValue) ) + +#define IX509PrivateKey_get_DefaultContainer(This,pValue) \ + ( (This)->lpVtbl -> get_DefaultContainer(This,pValue) ) + +#define IX509PrivateKey_get_Existing(This,pValue) \ + ( (This)->lpVtbl -> get_Existing(This,pValue) ) + +#define IX509PrivateKey_put_Existing(This,Value) \ + ( (This)->lpVtbl -> put_Existing(This,Value) ) + +#define IX509PrivateKey_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509PrivateKey_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509PrivateKey_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509PrivateKey_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509PrivateKey_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509PrivateKey_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509PrivateKey_put_Pin(This,Value) \ + ( (This)->lpVtbl -> put_Pin(This,Value) ) + +#define IX509PrivateKey_get_FriendlyName(This,pValue) \ + ( (This)->lpVtbl -> get_FriendlyName(This,pValue) ) + +#define IX509PrivateKey_put_FriendlyName(This,Value) \ + ( (This)->lpVtbl -> put_FriendlyName(This,Value) ) + +#define IX509PrivateKey_get_Description(This,pValue) \ + ( (This)->lpVtbl -> get_Description(This,pValue) ) + +#define IX509PrivateKey_put_Description(This,Value) \ + ( (This)->lpVtbl -> put_Description(This,Value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509PrivateKey_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0014 */ +/* [local] */ + +typedef +enum X509HardwareKeyUsageFlags + { + XCN_NCRYPT_PCP_NONE = 0, + XCN_NCRYPT_TPM12_PROVIDER = 0x10000, + XCN_NCRYPT_PCP_SIGNATURE_KEY = 0x1, + XCN_NCRYPT_PCP_ENCRYPTION_KEY = 0x2, + XCN_NCRYPT_PCP_GENERIC_KEY = ( 0x1 | 0x2 ) , + XCN_NCRYPT_PCP_STORAGE_KEY = 0x4, + XCN_NCRYPT_PCP_IDENTITY_KEY = 0x8 + } X509HardwareKeyUsageFlags; + +typedef +enum X509KeyParametersExportType + { + XCN_CRYPT_OID_USE_CURVE_NONE = 0, + XCN_CRYPT_OID_USE_CURVE_NAME_FOR_ENCODE_FLAG = 0x20000000, + XCN_CRYPT_OID_USE_CURVE_PARAMETERS_FOR_ENCODE_FLAG = 0x10000000 + } X509KeyParametersExportType; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0014_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0014_v0_0_s_ifspec; + +#ifndef __IX509PrivateKey2_INTERFACE_DEFINED__ +#define __IX509PrivateKey2_INTERFACE_DEFINED__ + +/* interface IX509PrivateKey2 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509PrivateKey2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab362-217d-11da-b2a4-000e7bbb2b09") + IX509PrivateKey2 : public IX509PrivateKey + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_HardwareKeyUsage( + /* [retval][out] */ __RPC__out X509HardwareKeyUsageFlags *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_HardwareKeyUsage( + /* [in] */ X509HardwareKeyUsageFlags Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AlternateStorageLocation( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AlternateStorageLocation( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_AlgorithmName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_AlgorithmName( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AlgorithmParameters( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AlgorithmParameters( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ParametersExportType( + /* [retval][out] */ __RPC__out X509KeyParametersExportType *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ParametersExportType( + /* [in] */ X509KeyParametersExportType Value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509PrivateKey2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509PrivateKey2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509PrivateKey2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509PrivateKey2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509PrivateKey2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Open) + HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in IX509PrivateKey2 * This); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Create) + HRESULT ( STDMETHODCALLTYPE *Create )( + __RPC__in IX509PrivateKey2 * This); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IX509PrivateKey2 * This); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IX509PrivateKey2 * This); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Verify) + HRESULT ( STDMETHODCALLTYPE *Verify )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ X509PrivateKeyVerify VerifyType); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Import) + HRESULT ( STDMETHODCALLTYPE *Import )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR strExportType, + /* [in] */ __RPC__in BSTR strEncodedKey, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509PrivateKey, Export) + HRESULT ( STDMETHODCALLTYPE *Export )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR strExportType, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEncodedKey); + + DECLSPEC_XFGVIRT(IX509PrivateKey, ExportPublicKey) + HRESULT ( STDMETHODCALLTYPE *ExportPublicKey )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppPublicKey); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ContainerName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ContainerName )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ContainerName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ContainerName )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ContainerNamePrefix) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ContainerNamePrefix )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ContainerNamePrefix) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ContainerNamePrefix )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ReaderName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReaderName )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ReaderName) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReaderName )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_CspInformations) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_CspInformations) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_CspStatus) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspStatus )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspStatus **ppValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_CspStatus) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspStatus )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in_opt ICspStatus *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ProviderName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProviderName )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ProviderName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProviderName )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ProviderType) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProviderType )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out X509ProviderType *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ProviderType) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProviderType )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ X509ProviderType Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_LegacyCsp) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LegacyCsp )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_LegacyCsp) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LegacyCsp )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Algorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Algorithm )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Algorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Algorithm )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_KeySpec) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeySpec )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out X509KeySpec *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_KeySpec) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeySpec )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ X509KeySpec Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Length) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Length) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Length )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ExportPolicy) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExportPolicy )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out X509PrivateKeyExportFlags *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ExportPolicy) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExportPolicy )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ X509PrivateKeyExportFlags Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_KeyUsage) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyUsage )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out X509PrivateKeyUsageFlags *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_KeyUsage) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyUsage )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ X509PrivateKeyUsageFlags Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_KeyProtection) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyProtection )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out X509PrivateKeyProtection *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_KeyProtection) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyProtection )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ X509PrivateKeyProtection Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_MachineContext) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MachineContext )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_MachineContext) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MachineContext )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_SecurityDescriptor) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SecurityDescriptor )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_SecurityDescriptor) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SecurityDescriptor )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Certificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Certificate )( + __RPC__in IX509PrivateKey2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Certificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Certificate )( + __RPC__in IX509PrivateKey2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_UniqueContainerName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueContainerName )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Opened) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Opened )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_DefaultContainer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DefaultContainer )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Existing) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Existing )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Existing) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Existing )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Pin) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Pin )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_FriendlyName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_FriendlyName) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_FriendlyName )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey, put_Description) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey2, get_HardwareKeyUsage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_HardwareKeyUsage )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out X509HardwareKeyUsageFlags *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey2, put_HardwareKeyUsage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_HardwareKeyUsage )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ X509HardwareKeyUsageFlags Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey2, get_AlternateStorageLocation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateStorageLocation )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey2, put_AlternateStorageLocation) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateStorageLocation )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey2, get_AlgorithmName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlgorithmName )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey2, put_AlgorithmName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlgorithmName )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey2, get_AlgorithmParameters) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlgorithmParameters )( + __RPC__in IX509PrivateKey2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey2, put_AlgorithmParameters) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlgorithmParameters )( + __RPC__in IX509PrivateKey2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509PrivateKey2, get_ParametersExportType) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParametersExportType )( + __RPC__in IX509PrivateKey2 * This, + /* [retval][out] */ __RPC__out X509KeyParametersExportType *pValue); + + DECLSPEC_XFGVIRT(IX509PrivateKey2, put_ParametersExportType) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParametersExportType )( + __RPC__in IX509PrivateKey2 * This, + /* [in] */ X509KeyParametersExportType Value); + + END_INTERFACE + } IX509PrivateKey2Vtbl; + + interface IX509PrivateKey2 + { + CONST_VTBL struct IX509PrivateKey2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509PrivateKey2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509PrivateKey2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509PrivateKey2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509PrivateKey2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509PrivateKey2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509PrivateKey2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509PrivateKey2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509PrivateKey2_Open(This) \ + ( (This)->lpVtbl -> Open(This) ) + +#define IX509PrivateKey2_Create(This) \ + ( (This)->lpVtbl -> Create(This) ) + +#define IX509PrivateKey2_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define IX509PrivateKey2_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IX509PrivateKey2_Verify(This,VerifyType) \ + ( (This)->lpVtbl -> Verify(This,VerifyType) ) + +#define IX509PrivateKey2_Import(This,strExportType,strEncodedKey,Encoding) \ + ( (This)->lpVtbl -> Import(This,strExportType,strEncodedKey,Encoding) ) + +#define IX509PrivateKey2_Export(This,strExportType,Encoding,pstrEncodedKey) \ + ( (This)->lpVtbl -> Export(This,strExportType,Encoding,pstrEncodedKey) ) + +#define IX509PrivateKey2_ExportPublicKey(This,ppPublicKey) \ + ( (This)->lpVtbl -> ExportPublicKey(This,ppPublicKey) ) + +#define IX509PrivateKey2_get_ContainerName(This,pValue) \ + ( (This)->lpVtbl -> get_ContainerName(This,pValue) ) + +#define IX509PrivateKey2_put_ContainerName(This,Value) \ + ( (This)->lpVtbl -> put_ContainerName(This,Value) ) + +#define IX509PrivateKey2_get_ContainerNamePrefix(This,pValue) \ + ( (This)->lpVtbl -> get_ContainerNamePrefix(This,pValue) ) + +#define IX509PrivateKey2_put_ContainerNamePrefix(This,Value) \ + ( (This)->lpVtbl -> put_ContainerNamePrefix(This,Value) ) + +#define IX509PrivateKey2_get_ReaderName(This,pValue) \ + ( (This)->lpVtbl -> get_ReaderName(This,pValue) ) + +#define IX509PrivateKey2_put_ReaderName(This,Value) \ + ( (This)->lpVtbl -> put_ReaderName(This,Value) ) + +#define IX509PrivateKey2_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509PrivateKey2_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509PrivateKey2_get_CspStatus(This,ppValue) \ + ( (This)->lpVtbl -> get_CspStatus(This,ppValue) ) + +#define IX509PrivateKey2_put_CspStatus(This,pValue) \ + ( (This)->lpVtbl -> put_CspStatus(This,pValue) ) + +#define IX509PrivateKey2_get_ProviderName(This,pValue) \ + ( (This)->lpVtbl -> get_ProviderName(This,pValue) ) + +#define IX509PrivateKey2_put_ProviderName(This,Value) \ + ( (This)->lpVtbl -> put_ProviderName(This,Value) ) + +#define IX509PrivateKey2_get_ProviderType(This,pValue) \ + ( (This)->lpVtbl -> get_ProviderType(This,pValue) ) + +#define IX509PrivateKey2_put_ProviderType(This,Value) \ + ( (This)->lpVtbl -> put_ProviderType(This,Value) ) + +#define IX509PrivateKey2_get_LegacyCsp(This,pValue) \ + ( (This)->lpVtbl -> get_LegacyCsp(This,pValue) ) + +#define IX509PrivateKey2_put_LegacyCsp(This,Value) \ + ( (This)->lpVtbl -> put_LegacyCsp(This,Value) ) + +#define IX509PrivateKey2_get_Algorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_Algorithm(This,ppValue) ) + +#define IX509PrivateKey2_put_Algorithm(This,pValue) \ + ( (This)->lpVtbl -> put_Algorithm(This,pValue) ) + +#define IX509PrivateKey2_get_KeySpec(This,pValue) \ + ( (This)->lpVtbl -> get_KeySpec(This,pValue) ) + +#define IX509PrivateKey2_put_KeySpec(This,Value) \ + ( (This)->lpVtbl -> put_KeySpec(This,Value) ) + +#define IX509PrivateKey2_get_Length(This,pValue) \ + ( (This)->lpVtbl -> get_Length(This,pValue) ) + +#define IX509PrivateKey2_put_Length(This,Value) \ + ( (This)->lpVtbl -> put_Length(This,Value) ) + +#define IX509PrivateKey2_get_ExportPolicy(This,pValue) \ + ( (This)->lpVtbl -> get_ExportPolicy(This,pValue) ) + +#define IX509PrivateKey2_put_ExportPolicy(This,Value) \ + ( (This)->lpVtbl -> put_ExportPolicy(This,Value) ) + +#define IX509PrivateKey2_get_KeyUsage(This,pValue) \ + ( (This)->lpVtbl -> get_KeyUsage(This,pValue) ) + +#define IX509PrivateKey2_put_KeyUsage(This,Value) \ + ( (This)->lpVtbl -> put_KeyUsage(This,Value) ) + +#define IX509PrivateKey2_get_KeyProtection(This,pValue) \ + ( (This)->lpVtbl -> get_KeyProtection(This,pValue) ) + +#define IX509PrivateKey2_put_KeyProtection(This,Value) \ + ( (This)->lpVtbl -> put_KeyProtection(This,Value) ) + +#define IX509PrivateKey2_get_MachineContext(This,pValue) \ + ( (This)->lpVtbl -> get_MachineContext(This,pValue) ) + +#define IX509PrivateKey2_put_MachineContext(This,Value) \ + ( (This)->lpVtbl -> put_MachineContext(This,Value) ) + +#define IX509PrivateKey2_get_SecurityDescriptor(This,pValue) \ + ( (This)->lpVtbl -> get_SecurityDescriptor(This,pValue) ) + +#define IX509PrivateKey2_put_SecurityDescriptor(This,Value) \ + ( (This)->lpVtbl -> put_SecurityDescriptor(This,Value) ) + +#define IX509PrivateKey2_get_Certificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Certificate(This,Encoding,pValue) ) + +#define IX509PrivateKey2_put_Certificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_Certificate(This,Encoding,Value) ) + +#define IX509PrivateKey2_get_UniqueContainerName(This,pValue) \ + ( (This)->lpVtbl -> get_UniqueContainerName(This,pValue) ) + +#define IX509PrivateKey2_get_Opened(This,pValue) \ + ( (This)->lpVtbl -> get_Opened(This,pValue) ) + +#define IX509PrivateKey2_get_DefaultContainer(This,pValue) \ + ( (This)->lpVtbl -> get_DefaultContainer(This,pValue) ) + +#define IX509PrivateKey2_get_Existing(This,pValue) \ + ( (This)->lpVtbl -> get_Existing(This,pValue) ) + +#define IX509PrivateKey2_put_Existing(This,Value) \ + ( (This)->lpVtbl -> put_Existing(This,Value) ) + +#define IX509PrivateKey2_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509PrivateKey2_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509PrivateKey2_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509PrivateKey2_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509PrivateKey2_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509PrivateKey2_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509PrivateKey2_put_Pin(This,Value) \ + ( (This)->lpVtbl -> put_Pin(This,Value) ) + +#define IX509PrivateKey2_get_FriendlyName(This,pValue) \ + ( (This)->lpVtbl -> get_FriendlyName(This,pValue) ) + +#define IX509PrivateKey2_put_FriendlyName(This,Value) \ + ( (This)->lpVtbl -> put_FriendlyName(This,Value) ) + +#define IX509PrivateKey2_get_Description(This,pValue) \ + ( (This)->lpVtbl -> get_Description(This,pValue) ) + +#define IX509PrivateKey2_put_Description(This,Value) \ + ( (This)->lpVtbl -> put_Description(This,Value) ) + + +#define IX509PrivateKey2_get_HardwareKeyUsage(This,pValue) \ + ( (This)->lpVtbl -> get_HardwareKeyUsage(This,pValue) ) + +#define IX509PrivateKey2_put_HardwareKeyUsage(This,Value) \ + ( (This)->lpVtbl -> put_HardwareKeyUsage(This,Value) ) + +#define IX509PrivateKey2_get_AlternateStorageLocation(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateStorageLocation(This,pValue) ) + +#define IX509PrivateKey2_put_AlternateStorageLocation(This,Value) \ + ( (This)->lpVtbl -> put_AlternateStorageLocation(This,Value) ) + +#define IX509PrivateKey2_get_AlgorithmName(This,pValue) \ + ( (This)->lpVtbl -> get_AlgorithmName(This,pValue) ) + +#define IX509PrivateKey2_put_AlgorithmName(This,Value) \ + ( (This)->lpVtbl -> put_AlgorithmName(This,Value) ) + +#define IX509PrivateKey2_get_AlgorithmParameters(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_AlgorithmParameters(This,Encoding,pValue) ) + +#define IX509PrivateKey2_put_AlgorithmParameters(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_AlgorithmParameters(This,Encoding,Value) ) + +#define IX509PrivateKey2_get_ParametersExportType(This,pValue) \ + ( (This)->lpVtbl -> get_ParametersExportType(This,pValue) ) + +#define IX509PrivateKey2_put_ParametersExportType(This,Value) \ + ( (This)->lpVtbl -> put_ParametersExportType(This,Value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509PrivateKey2_INTERFACE_DEFINED__ */ + + +#ifndef __IX509EndorsementKey_INTERFACE_DEFINED__ +#define __IX509EndorsementKey_INTERFACE_DEFINED__ + +/* interface IX509EndorsementKey */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509EndorsementKey; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B11CD855-F4C4-4FC6-B710-4422237F09E9") + IX509EndorsementKey : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProviderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ProviderName( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Length( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Opened( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddCertificate( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveCertificate( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificateByIndex( + /* [in] */ VARIANT_BOOL ManufacturerOnly, + /* [in] */ LONG dwIndex, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificateCount( + /* [in] */ VARIANT_BOOL ManufacturerOnly, + /* [retval][out] */ __RPC__out LONG *pCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE ExportPublicKey( + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppPublicKey) = 0; + + virtual HRESULT STDMETHODCALLTYPE Open( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509EndorsementKeyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509EndorsementKey * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509EndorsementKey * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509EndorsementKey * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509EndorsementKey * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509EndorsementKey * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509EndorsementKey * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509EndorsementKey * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, get_ProviderName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProviderName )( + __RPC__in IX509EndorsementKey * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, put_ProviderName) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ProviderName )( + __RPC__in IX509EndorsementKey * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, get_Length) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Length )( + __RPC__in IX509EndorsementKey * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, get_Opened) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Opened )( + __RPC__in IX509EndorsementKey * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, AddCertificate) + HRESULT ( STDMETHODCALLTYPE *AddCertificate )( + __RPC__in IX509EndorsementKey * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, RemoveCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveCertificate )( + __RPC__in IX509EndorsementKey * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, GetCertificateByIndex) + HRESULT ( STDMETHODCALLTYPE *GetCertificateByIndex )( + __RPC__in IX509EndorsementKey * This, + /* [in] */ VARIANT_BOOL ManufacturerOnly, + /* [in] */ LONG dwIndex, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, GetCertificateCount) + HRESULT ( STDMETHODCALLTYPE *GetCertificateCount )( + __RPC__in IX509EndorsementKey * This, + /* [in] */ VARIANT_BOOL ManufacturerOnly, + /* [retval][out] */ __RPC__out LONG *pCount); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, ExportPublicKey) + HRESULT ( STDMETHODCALLTYPE *ExportPublicKey )( + __RPC__in IX509EndorsementKey * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppPublicKey); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, Open) + HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in IX509EndorsementKey * This); + + DECLSPEC_XFGVIRT(IX509EndorsementKey, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IX509EndorsementKey * This); + + END_INTERFACE + } IX509EndorsementKeyVtbl; + + interface IX509EndorsementKey + { + CONST_VTBL struct IX509EndorsementKeyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509EndorsementKey_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509EndorsementKey_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509EndorsementKey_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509EndorsementKey_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509EndorsementKey_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509EndorsementKey_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509EndorsementKey_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509EndorsementKey_get_ProviderName(This,pValue) \ + ( (This)->lpVtbl -> get_ProviderName(This,pValue) ) + +#define IX509EndorsementKey_put_ProviderName(This,Value) \ + ( (This)->lpVtbl -> put_ProviderName(This,Value) ) + +#define IX509EndorsementKey_get_Length(This,pValue) \ + ( (This)->lpVtbl -> get_Length(This,pValue) ) + +#define IX509EndorsementKey_get_Opened(This,pValue) \ + ( (This)->lpVtbl -> get_Opened(This,pValue) ) + +#define IX509EndorsementKey_AddCertificate(This,Encoding,strCertificate) \ + ( (This)->lpVtbl -> AddCertificate(This,Encoding,strCertificate) ) + +#define IX509EndorsementKey_RemoveCertificate(This,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveCertificate(This,Encoding,strCertificate) ) + +#define IX509EndorsementKey_GetCertificateByIndex(This,ManufacturerOnly,dwIndex,Encoding,pValue) \ + ( (This)->lpVtbl -> GetCertificateByIndex(This,ManufacturerOnly,dwIndex,Encoding,pValue) ) + +#define IX509EndorsementKey_GetCertificateCount(This,ManufacturerOnly,pCount) \ + ( (This)->lpVtbl -> GetCertificateCount(This,ManufacturerOnly,pCount) ) + +#define IX509EndorsementKey_ExportPublicKey(This,ppPublicKey) \ + ( (This)->lpVtbl -> ExportPublicKey(This,ppPublicKey) ) + +#define IX509EndorsementKey_Open(This) \ + ( (This)->lpVtbl -> Open(This) ) + +#define IX509EndorsementKey_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509EndorsementKey_INTERFACE_DEFINED__ */ + + +#ifndef __IX509Extension_INTERFACE_DEFINED__ +#define __IX509Extension_INTERFACE_DEFINED__ + +/* interface IX509Extension */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509Extension; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab30d-217d-11da-b2a4-000e7bbb2b09") + IX509Extension : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ObjectId( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawData( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Critical( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_Critical( + /* [in] */ VARIANT_BOOL Value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509Extension * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509Extension * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509Extension * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509Extension * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509Extension * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509Extension * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509Extension * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509Extension * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509Extension * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509Extension * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509Extension * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509Extension * This, + /* [in] */ VARIANT_BOOL Value); + + END_INTERFACE + } IX509ExtensionVtbl; + + interface IX509Extension + { + CONST_VTBL struct IX509ExtensionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509Extension_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509Extension_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509Extension_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509Extension_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509Extension_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509Extension_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509Extension_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509Extension_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509Extension_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509Extension_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509Extension_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509Extension_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509Extension_INTERFACE_DEFINED__ */ + + +#ifndef __IX509Extensions_INTERFACE_DEFINED__ +#define __IX509Extensions_INTERFACE_DEFINED__ + +/* interface IX509Extensions */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509Extensions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab30e-217d-11da-b2a4-000e7bbb2b09") + IX509Extensions : public IDispatch + { + public: + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509Extension **pVal) = 0; + + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id][custom] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IX509Extension *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IndexByObjectId( + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [retval][out] */ __RPC__out LONG *pIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRange( + /* [in] */ __RPC__in_opt IX509Extensions *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509Extensions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509Extensions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509Extensions * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509Extensions * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509Extensions * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509Extensions * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509Extensions * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extensions, get_ItemByIndex) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in IX509Extensions * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509Extension **pVal); + + DECLSPEC_XFGVIRT(IX509Extensions, get_Count) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IX509Extensions * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IX509Extensions, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IX509Extensions * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(IX509Extensions, Add) + /* [helpstring][id][custom] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IX509Extensions * This, + /* [in] */ __RPC__in_opt IX509Extension *pVal); + + DECLSPEC_XFGVIRT(IX509Extensions, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IX509Extensions * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(IX509Extensions, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IX509Extensions * This); + + DECLSPEC_XFGVIRT(IX509Extensions, get_IndexByObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IndexByObjectId )( + __RPC__in IX509Extensions * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [retval][out] */ __RPC__out LONG *pIndex); + + DECLSPEC_XFGVIRT(IX509Extensions, AddRange) + HRESULT ( STDMETHODCALLTYPE *AddRange )( + __RPC__in IX509Extensions * This, + /* [in] */ __RPC__in_opt IX509Extensions *pValue); + + END_INTERFACE + } IX509ExtensionsVtbl; + + interface IX509Extensions + { + CONST_VTBL struct IX509ExtensionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509Extensions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509Extensions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509Extensions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509Extensions_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509Extensions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509Extensions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509Extensions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509Extensions_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define IX509Extensions_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IX509Extensions_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define IX509Extensions_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define IX509Extensions_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define IX509Extensions_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IX509Extensions_get_IndexByObjectId(This,pObjectId,pIndex) \ + ( (This)->lpVtbl -> get_IndexByObjectId(This,pObjectId,pIndex) ) + +#define IX509Extensions_AddRange(This,pValue) \ + ( (This)->lpVtbl -> AddRange(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509Extensions_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0018 */ +/* [local] */ + +typedef +enum X509KeyUsageFlags + { + XCN_CERT_NO_KEY_USAGE = 0, + XCN_CERT_DIGITAL_SIGNATURE_KEY_USAGE = 0x80, + XCN_CERT_NON_REPUDIATION_KEY_USAGE = 0x40, + XCN_CERT_KEY_ENCIPHERMENT_KEY_USAGE = 0x20, + XCN_CERT_DATA_ENCIPHERMENT_KEY_USAGE = 0x10, + XCN_CERT_KEY_AGREEMENT_KEY_USAGE = 0x8, + XCN_CERT_KEY_CERT_SIGN_KEY_USAGE = 0x4, + XCN_CERT_OFFLINE_CRL_SIGN_KEY_USAGE = 0x2, + XCN_CERT_CRL_SIGN_KEY_USAGE = 0x2, + XCN_CERT_ENCIPHER_ONLY_KEY_USAGE = 0x1, + XCN_CERT_DECIPHER_ONLY_KEY_USAGE = ( 0x80 << 8 ) + } X509KeyUsageFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0018_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0018_v0_0_s_ifspec; + +#ifndef __IX509ExtensionKeyUsage_INTERFACE_DEFINED__ +#define __IX509ExtensionKeyUsage_INTERFACE_DEFINED__ + +/* interface IX509ExtensionKeyUsage */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionKeyUsage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab30f-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionKeyUsage : public IX509Extension + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ X509KeyUsageFlags UsageFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_KeyUsage( + /* [retval][out] */ __RPC__out X509KeyUsageFlags *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionKeyUsageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionKeyUsage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionKeyUsage * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionKeyUsage * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionKeyUsage, InitializeEncode) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [in] */ X509KeyUsageFlags UsageFlags); + + DECLSPEC_XFGVIRT(IX509ExtensionKeyUsage, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionKeyUsage, get_KeyUsage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyUsage )( + __RPC__in IX509ExtensionKeyUsage * This, + /* [retval][out] */ __RPC__out X509KeyUsageFlags *pValue); + + END_INTERFACE + } IX509ExtensionKeyUsageVtbl; + + interface IX509ExtensionKeyUsage + { + CONST_VTBL struct IX509ExtensionKeyUsageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionKeyUsage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionKeyUsage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionKeyUsage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionKeyUsage_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionKeyUsage_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionKeyUsage_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionKeyUsage_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionKeyUsage_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionKeyUsage_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionKeyUsage_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionKeyUsage_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionKeyUsage_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionKeyUsage_InitializeEncode(This,UsageFlags) \ + ( (This)->lpVtbl -> InitializeEncode(This,UsageFlags) ) + +#define IX509ExtensionKeyUsage_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionKeyUsage_get_KeyUsage(This,pValue) \ + ( (This)->lpVtbl -> get_KeyUsage(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionKeyUsage_INTERFACE_DEFINED__ */ + + +#ifndef __IX509ExtensionEnhancedKeyUsage_INTERFACE_DEFINED__ +#define __IX509ExtensionEnhancedKeyUsage_INTERFACE_DEFINED__ + +/* interface IX509ExtensionEnhancedKeyUsage */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionEnhancedKeyUsage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab310-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionEnhancedKeyUsage : public IX509Extension + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in_opt IObjectIds *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EnhancedKeyUsage( + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionEnhancedKeyUsageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionEnhancedKeyUsage * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionEnhancedKeyUsage, InitializeEncode) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [in] */ __RPC__in_opt IObjectIds *pValue); + + DECLSPEC_XFGVIRT(IX509ExtensionEnhancedKeyUsage, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionEnhancedKeyUsage, get_EnhancedKeyUsage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnhancedKeyUsage )( + __RPC__in IX509ExtensionEnhancedKeyUsage * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + END_INTERFACE + } IX509ExtensionEnhancedKeyUsageVtbl; + + interface IX509ExtensionEnhancedKeyUsage + { + CONST_VTBL struct IX509ExtensionEnhancedKeyUsageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionEnhancedKeyUsage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionEnhancedKeyUsage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionEnhancedKeyUsage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionEnhancedKeyUsage_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionEnhancedKeyUsage_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionEnhancedKeyUsage_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionEnhancedKeyUsage_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionEnhancedKeyUsage_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionEnhancedKeyUsage_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionEnhancedKeyUsage_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionEnhancedKeyUsage_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionEnhancedKeyUsage_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionEnhancedKeyUsage_InitializeEncode(This,pValue) \ + ( (This)->lpVtbl -> InitializeEncode(This,pValue) ) + +#define IX509ExtensionEnhancedKeyUsage_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionEnhancedKeyUsage_get_EnhancedKeyUsage(This,ppValue) \ + ( (This)->lpVtbl -> get_EnhancedKeyUsage(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionEnhancedKeyUsage_INTERFACE_DEFINED__ */ + + +#ifndef __IX509ExtensionTemplateName_INTERFACE_DEFINED__ +#define __IX509ExtensionTemplateName_INTERFACE_DEFINED__ + +/* interface IX509ExtensionTemplateName */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionTemplateName; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab311-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionTemplateName : public IX509Extension + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in BSTR strTemplateName) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_TemplateName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionTemplateNameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionTemplateName * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionTemplateName * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionTemplateName * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionTemplateName * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionTemplateName * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionTemplateName * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionTemplateName * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionTemplateName * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionTemplateName * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionTemplateName * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionTemplateName * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionTemplateName * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionTemplateName, InitializeEncode) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionTemplateName * This, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509ExtensionTemplateName, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionTemplateName * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionTemplateName, get_TemplateName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateName )( + __RPC__in IX509ExtensionTemplateName * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509ExtensionTemplateNameVtbl; + + interface IX509ExtensionTemplateName + { + CONST_VTBL struct IX509ExtensionTemplateNameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionTemplateName_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionTemplateName_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionTemplateName_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionTemplateName_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionTemplateName_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionTemplateName_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionTemplateName_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionTemplateName_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionTemplateName_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionTemplateName_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionTemplateName_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionTemplateName_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionTemplateName_InitializeEncode(This,strTemplateName) \ + ( (This)->lpVtbl -> InitializeEncode(This,strTemplateName) ) + +#define IX509ExtensionTemplateName_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionTemplateName_get_TemplateName(This,pValue) \ + ( (This)->lpVtbl -> get_TemplateName(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionTemplateName_INTERFACE_DEFINED__ */ + + +#ifndef __IX509ExtensionTemplate_INTERFACE_DEFINED__ +#define __IX509ExtensionTemplate_INTERFACE_DEFINED__ + +/* interface IX509ExtensionTemplate */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionTemplate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab312-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionTemplate : public IX509Extension + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in_opt IObjectId *pTemplateOid, + /* [in] */ LONG MajorVersion, + /* [in] */ LONG MinorVersion) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_TemplateOid( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MajorVersion( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MinorVersion( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionTemplateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionTemplate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionTemplate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionTemplate * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionTemplate * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionTemplate * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionTemplate * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionTemplate * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionTemplate * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionTemplate * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionTemplate * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionTemplate * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionTemplate * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionTemplate, InitializeEncode) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionTemplate * This, + /* [in] */ __RPC__in_opt IObjectId *pTemplateOid, + /* [in] */ LONG MajorVersion, + /* [in] */ LONG MinorVersion); + + DECLSPEC_XFGVIRT(IX509ExtensionTemplate, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionTemplate * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionTemplate, get_TemplateOid) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateOid )( + __RPC__in IX509ExtensionTemplate * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509ExtensionTemplate, get_MajorVersion) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MajorVersion )( + __RPC__in IX509ExtensionTemplate * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509ExtensionTemplate, get_MinorVersion) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MinorVersion )( + __RPC__in IX509ExtensionTemplate * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + END_INTERFACE + } IX509ExtensionTemplateVtbl; + + interface IX509ExtensionTemplate + { + CONST_VTBL struct IX509ExtensionTemplateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionTemplate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionTemplate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionTemplate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionTemplate_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionTemplate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionTemplate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionTemplate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionTemplate_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionTemplate_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionTemplate_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionTemplate_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionTemplate_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionTemplate_InitializeEncode(This,pTemplateOid,MajorVersion,MinorVersion) \ + ( (This)->lpVtbl -> InitializeEncode(This,pTemplateOid,MajorVersion,MinorVersion) ) + +#define IX509ExtensionTemplate_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionTemplate_get_TemplateOid(This,ppValue) \ + ( (This)->lpVtbl -> get_TemplateOid(This,ppValue) ) + +#define IX509ExtensionTemplate_get_MajorVersion(This,pValue) \ + ( (This)->lpVtbl -> get_MajorVersion(This,pValue) ) + +#define IX509ExtensionTemplate_get_MinorVersion(This,pValue) \ + ( (This)->lpVtbl -> get_MinorVersion(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionTemplate_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0022 */ +/* [local] */ + +typedef +enum AlternativeNameType + { + XCN_CERT_ALT_NAME_UNKNOWN = 0, + XCN_CERT_ALT_NAME_OTHER_NAME = 1, + XCN_CERT_ALT_NAME_RFC822_NAME = 2, + XCN_CERT_ALT_NAME_DNS_NAME = 3, + XCN_CERT_ALT_NAME_X400_ADDRESS = 4, + XCN_CERT_ALT_NAME_DIRECTORY_NAME = 5, + XCN_CERT_ALT_NAME_EDI_PARTY_NAME = 6, + XCN_CERT_ALT_NAME_URL = 7, + XCN_CERT_ALT_NAME_IP_ADDRESS = 8, + XCN_CERT_ALT_NAME_REGISTERED_ID = 9, + XCN_CERT_ALT_NAME_GUID = 10, + XCN_CERT_ALT_NAME_USER_PRINCIPLE_NAME = 11 + } AlternativeNameType; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0022_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0022_v0_0_s_ifspec; + +#ifndef __IAlternativeName_INTERFACE_DEFINED__ +#define __IAlternativeName_INTERFACE_DEFINED__ + +/* interface IAlternativeName */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAlternativeName; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab313-217d-11da-b2a4-000e7bbb2b09") + IAlternativeName : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromString( + /* [in] */ AlternativeNameType Type, + /* [in] */ __RPC__in BSTR strValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromRawData( + /* [in] */ AlternativeNameType Type, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strRawData) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromOtherName( + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strRawData, + /* [in] */ VARIANT_BOOL ToBeWrapped) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out AlternativeNameType *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_StrValue( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ObjectId( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawData( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAlternativeNameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAlternativeName * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAlternativeName * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAlternativeName * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAlternativeName * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAlternativeName * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAlternativeName * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAlternativeName * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAlternativeName, InitializeFromString) + HRESULT ( STDMETHODCALLTYPE *InitializeFromString )( + __RPC__in IAlternativeName * This, + /* [in] */ AlternativeNameType Type, + /* [in] */ __RPC__in BSTR strValue); + + DECLSPEC_XFGVIRT(IAlternativeName, InitializeFromRawData) + HRESULT ( STDMETHODCALLTYPE *InitializeFromRawData )( + __RPC__in IAlternativeName * This, + /* [in] */ AlternativeNameType Type, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strRawData); + + DECLSPEC_XFGVIRT(IAlternativeName, InitializeFromOtherName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromOtherName )( + __RPC__in IAlternativeName * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strRawData, + /* [in] */ VARIANT_BOOL ToBeWrapped); + + DECLSPEC_XFGVIRT(IAlternativeName, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IAlternativeName * This, + /* [retval][out] */ __RPC__out AlternativeNameType *pValue); + + DECLSPEC_XFGVIRT(IAlternativeName, get_StrValue) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_StrValue )( + __RPC__in IAlternativeName * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IAlternativeName, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IAlternativeName * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IAlternativeName, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IAlternativeName * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IAlternativeNameVtbl; + + interface IAlternativeName + { + CONST_VTBL struct IAlternativeNameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAlternativeName_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAlternativeName_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAlternativeName_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAlternativeName_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAlternativeName_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAlternativeName_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAlternativeName_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAlternativeName_InitializeFromString(This,Type,strValue) \ + ( (This)->lpVtbl -> InitializeFromString(This,Type,strValue) ) + +#define IAlternativeName_InitializeFromRawData(This,Type,Encoding,strRawData) \ + ( (This)->lpVtbl -> InitializeFromRawData(This,Type,Encoding,strRawData) ) + +#define IAlternativeName_InitializeFromOtherName(This,pObjectId,Encoding,strRawData,ToBeWrapped) \ + ( (This)->lpVtbl -> InitializeFromOtherName(This,pObjectId,Encoding,strRawData,ToBeWrapped) ) + +#define IAlternativeName_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IAlternativeName_get_StrValue(This,pValue) \ + ( (This)->lpVtbl -> get_StrValue(This,pValue) ) + +#define IAlternativeName_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IAlternativeName_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAlternativeName_INTERFACE_DEFINED__ */ + + +#ifndef __IAlternativeNames_INTERFACE_DEFINED__ +#define __IAlternativeNames_INTERFACE_DEFINED__ + +/* interface IAlternativeNames */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAlternativeNames; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab314-217d-11da-b2a4-000e7bbb2b09") + IAlternativeNames : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IAlternativeName **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IAlternativeName *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAlternativeNamesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAlternativeNames * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAlternativeNames * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAlternativeNames * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAlternativeNames * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAlternativeNames * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAlternativeNames * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAlternativeNames * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAlternativeNames, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in IAlternativeNames * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IAlternativeName **pVal); + + DECLSPEC_XFGVIRT(IAlternativeNames, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAlternativeNames * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IAlternativeNames, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IAlternativeNames * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(IAlternativeNames, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IAlternativeNames * This, + /* [in] */ __RPC__in_opt IAlternativeName *pVal); + + DECLSPEC_XFGVIRT(IAlternativeNames, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IAlternativeNames * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(IAlternativeNames, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IAlternativeNames * This); + + END_INTERFACE + } IAlternativeNamesVtbl; + + interface IAlternativeNames + { + CONST_VTBL struct IAlternativeNamesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAlternativeNames_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAlternativeNames_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAlternativeNames_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAlternativeNames_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAlternativeNames_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAlternativeNames_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAlternativeNames_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAlternativeNames_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define IAlternativeNames_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IAlternativeNames_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define IAlternativeNames_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define IAlternativeNames_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define IAlternativeNames_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAlternativeNames_INTERFACE_DEFINED__ */ + + +#ifndef __IX509ExtensionAlternativeNames_INTERFACE_DEFINED__ +#define __IX509ExtensionAlternativeNames_INTERFACE_DEFINED__ + +/* interface IX509ExtensionAlternativeNames */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionAlternativeNames; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab315-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionAlternativeNames : public IX509Extension + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in_opt IAlternativeNames *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AlternativeNames( + /* [retval][out] */ __RPC__deref_out_opt IAlternativeNames **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionAlternativeNamesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionAlternativeNames * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionAlternativeNames * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionAlternativeNames * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionAlternativeNames, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [in] */ __RPC__in_opt IAlternativeNames *pValue); + + DECLSPEC_XFGVIRT(IX509ExtensionAlternativeNames, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionAlternativeNames, get_AlternativeNames) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternativeNames )( + __RPC__in IX509ExtensionAlternativeNames * This, + /* [retval][out] */ __RPC__deref_out_opt IAlternativeNames **ppValue); + + END_INTERFACE + } IX509ExtensionAlternativeNamesVtbl; + + interface IX509ExtensionAlternativeNames + { + CONST_VTBL struct IX509ExtensionAlternativeNamesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionAlternativeNames_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionAlternativeNames_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionAlternativeNames_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionAlternativeNames_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionAlternativeNames_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionAlternativeNames_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionAlternativeNames_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionAlternativeNames_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionAlternativeNames_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionAlternativeNames_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionAlternativeNames_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionAlternativeNames_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionAlternativeNames_InitializeEncode(This,pValue) \ + ( (This)->lpVtbl -> InitializeEncode(This,pValue) ) + +#define IX509ExtensionAlternativeNames_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionAlternativeNames_get_AlternativeNames(This,ppValue) \ + ( (This)->lpVtbl -> get_AlternativeNames(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionAlternativeNames_INTERFACE_DEFINED__ */ + + +#ifndef __IX509ExtensionBasicConstraints_INTERFACE_DEFINED__ +#define __IX509ExtensionBasicConstraints_INTERFACE_DEFINED__ + +/* interface IX509ExtensionBasicConstraints */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionBasicConstraints; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab316-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionBasicConstraints : public IX509Extension + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ VARIANT_BOOL IsCA, + /* [in] */ LONG PathLenConstraint) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsCA( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PathLenConstraint( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionBasicConstraintsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionBasicConstraints * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionBasicConstraints * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionBasicConstraints * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionBasicConstraints, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [in] */ VARIANT_BOOL IsCA, + /* [in] */ LONG PathLenConstraint); + + DECLSPEC_XFGVIRT(IX509ExtensionBasicConstraints, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionBasicConstraints, get_IsCA) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsCA )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509ExtensionBasicConstraints, get_PathLenConstraint) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PathLenConstraint )( + __RPC__in IX509ExtensionBasicConstraints * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + END_INTERFACE + } IX509ExtensionBasicConstraintsVtbl; + + interface IX509ExtensionBasicConstraints + { + CONST_VTBL struct IX509ExtensionBasicConstraintsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionBasicConstraints_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionBasicConstraints_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionBasicConstraints_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionBasicConstraints_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionBasicConstraints_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionBasicConstraints_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionBasicConstraints_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionBasicConstraints_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionBasicConstraints_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionBasicConstraints_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionBasicConstraints_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionBasicConstraints_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionBasicConstraints_InitializeEncode(This,IsCA,PathLenConstraint) \ + ( (This)->lpVtbl -> InitializeEncode(This,IsCA,PathLenConstraint) ) + +#define IX509ExtensionBasicConstraints_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionBasicConstraints_get_IsCA(This,pValue) \ + ( (This)->lpVtbl -> get_IsCA(This,pValue) ) + +#define IX509ExtensionBasicConstraints_get_PathLenConstraint(This,pValue) \ + ( (This)->lpVtbl -> get_PathLenConstraint(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionBasicConstraints_INTERFACE_DEFINED__ */ + + +#ifndef __IX509ExtensionSubjectKeyIdentifier_INTERFACE_DEFINED__ +#define __IX509ExtensionSubjectKeyIdentifier_INTERFACE_DEFINED__ + +/* interface IX509ExtensionSubjectKeyIdentifier */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionSubjectKeyIdentifier; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab317-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionSubjectKeyIdentifier : public IX509Extension + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strKeyIdentifier) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SubjectKeyIdentifier( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionSubjectKeyIdentifierVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionSubjectKeyIdentifier * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionSubjectKeyIdentifier, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strKeyIdentifier); + + DECLSPEC_XFGVIRT(IX509ExtensionSubjectKeyIdentifier, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionSubjectKeyIdentifier, get_SubjectKeyIdentifier) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SubjectKeyIdentifier )( + __RPC__in IX509ExtensionSubjectKeyIdentifier * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509ExtensionSubjectKeyIdentifierVtbl; + + interface IX509ExtensionSubjectKeyIdentifier + { + CONST_VTBL struct IX509ExtensionSubjectKeyIdentifierVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionSubjectKeyIdentifier_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionSubjectKeyIdentifier_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionSubjectKeyIdentifier_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionSubjectKeyIdentifier_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionSubjectKeyIdentifier_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionSubjectKeyIdentifier_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionSubjectKeyIdentifier_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionSubjectKeyIdentifier_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionSubjectKeyIdentifier_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionSubjectKeyIdentifier_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionSubjectKeyIdentifier_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionSubjectKeyIdentifier_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionSubjectKeyIdentifier_InitializeEncode(This,Encoding,strKeyIdentifier) \ + ( (This)->lpVtbl -> InitializeEncode(This,Encoding,strKeyIdentifier) ) + +#define IX509ExtensionSubjectKeyIdentifier_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionSubjectKeyIdentifier_get_SubjectKeyIdentifier(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_SubjectKeyIdentifier(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionSubjectKeyIdentifier_INTERFACE_DEFINED__ */ + + +#ifndef __IX509ExtensionAuthorityKeyIdentifier_INTERFACE_DEFINED__ +#define __IX509ExtensionAuthorityKeyIdentifier_INTERFACE_DEFINED__ + +/* interface IX509ExtensionAuthorityKeyIdentifier */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionAuthorityKeyIdentifier; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab318-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionAuthorityKeyIdentifier : public IX509Extension + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strKeyIdentifier) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AuthorityKeyIdentifier( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionAuthorityKeyIdentifierVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionAuthorityKeyIdentifier * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionAuthorityKeyIdentifier, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strKeyIdentifier); + + DECLSPEC_XFGVIRT(IX509ExtensionAuthorityKeyIdentifier, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionAuthorityKeyIdentifier, get_AuthorityKeyIdentifier) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AuthorityKeyIdentifier )( + __RPC__in IX509ExtensionAuthorityKeyIdentifier * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509ExtensionAuthorityKeyIdentifierVtbl; + + interface IX509ExtensionAuthorityKeyIdentifier + { + CONST_VTBL struct IX509ExtensionAuthorityKeyIdentifierVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionAuthorityKeyIdentifier_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionAuthorityKeyIdentifier_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionAuthorityKeyIdentifier_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionAuthorityKeyIdentifier_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionAuthorityKeyIdentifier_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionAuthorityKeyIdentifier_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionAuthorityKeyIdentifier_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionAuthorityKeyIdentifier_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionAuthorityKeyIdentifier_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionAuthorityKeyIdentifier_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionAuthorityKeyIdentifier_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionAuthorityKeyIdentifier_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionAuthorityKeyIdentifier_InitializeEncode(This,Encoding,strKeyIdentifier) \ + ( (This)->lpVtbl -> InitializeEncode(This,Encoding,strKeyIdentifier) ) + +#define IX509ExtensionAuthorityKeyIdentifier_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionAuthorityKeyIdentifier_get_AuthorityKeyIdentifier(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_AuthorityKeyIdentifier(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionAuthorityKeyIdentifier_INTERFACE_DEFINED__ */ + + +#ifndef __ISmimeCapability_INTERFACE_DEFINED__ +#define __ISmimeCapability_INTERFACE_DEFINED__ + +/* interface ISmimeCapability */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ISmimeCapability; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab319-217d-11da-b2a4-000e7bbb2b09") + ISmimeCapability : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ LONG BitCount) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ObjectId( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BitCount( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISmimeCapabilityVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISmimeCapability * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISmimeCapability * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISmimeCapability * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISmimeCapability * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISmimeCapability * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISmimeCapability * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISmimeCapability * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISmimeCapability, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ISmimeCapability * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ LONG BitCount); + + DECLSPEC_XFGVIRT(ISmimeCapability, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in ISmimeCapability * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(ISmimeCapability, get_BitCount) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitCount )( + __RPC__in ISmimeCapability * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + END_INTERFACE + } ISmimeCapabilityVtbl; + + interface ISmimeCapability + { + CONST_VTBL struct ISmimeCapabilityVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISmimeCapability_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISmimeCapability_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISmimeCapability_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISmimeCapability_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISmimeCapability_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISmimeCapability_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISmimeCapability_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISmimeCapability_Initialize(This,pObjectId,BitCount) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,BitCount) ) + +#define ISmimeCapability_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define ISmimeCapability_get_BitCount(This,pValue) \ + ( (This)->lpVtbl -> get_BitCount(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISmimeCapability_INTERFACE_DEFINED__ */ + + +#ifndef __ISmimeCapabilities_INTERFACE_DEFINED__ +#define __ISmimeCapabilities_INTERFACE_DEFINED__ + +/* interface ISmimeCapabilities */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ISmimeCapabilities; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab31a-217d-11da-b2a4-000e7bbb2b09") + ISmimeCapabilities : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ISmimeCapability **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt ISmimeCapability *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddFromCsp( + /* [in] */ __RPC__in_opt ICspInformation *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddAvailableSmimeCapabilities( + /* [in] */ VARIANT_BOOL MachineContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISmimeCapabilitiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISmimeCapabilities * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISmimeCapabilities * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISmimeCapabilities * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISmimeCapabilities * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISmimeCapabilities * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISmimeCapabilities * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISmimeCapabilities * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISmimeCapabilities, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in ISmimeCapabilities * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ISmimeCapability **pVal); + + DECLSPEC_XFGVIRT(ISmimeCapabilities, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ISmimeCapabilities * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ISmimeCapabilities, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ISmimeCapabilities * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(ISmimeCapabilities, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ISmimeCapabilities * This, + /* [in] */ __RPC__in_opt ISmimeCapability *pVal); + + DECLSPEC_XFGVIRT(ISmimeCapabilities, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ISmimeCapabilities * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(ISmimeCapabilities, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in ISmimeCapabilities * This); + + DECLSPEC_XFGVIRT(ISmimeCapabilities, AddFromCsp) + HRESULT ( STDMETHODCALLTYPE *AddFromCsp )( + __RPC__in ISmimeCapabilities * This, + /* [in] */ __RPC__in_opt ICspInformation *pValue); + + DECLSPEC_XFGVIRT(ISmimeCapabilities, AddAvailableSmimeCapabilities) + HRESULT ( STDMETHODCALLTYPE *AddAvailableSmimeCapabilities )( + __RPC__in ISmimeCapabilities * This, + /* [in] */ VARIANT_BOOL MachineContext); + + END_INTERFACE + } ISmimeCapabilitiesVtbl; + + interface ISmimeCapabilities + { + CONST_VTBL struct ISmimeCapabilitiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISmimeCapabilities_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISmimeCapabilities_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISmimeCapabilities_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISmimeCapabilities_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISmimeCapabilities_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISmimeCapabilities_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISmimeCapabilities_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISmimeCapabilities_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define ISmimeCapabilities_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ISmimeCapabilities_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define ISmimeCapabilities_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define ISmimeCapabilities_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define ISmimeCapabilities_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define ISmimeCapabilities_AddFromCsp(This,pValue) \ + ( (This)->lpVtbl -> AddFromCsp(This,pValue) ) + +#define ISmimeCapabilities_AddAvailableSmimeCapabilities(This,MachineContext) \ + ( (This)->lpVtbl -> AddAvailableSmimeCapabilities(This,MachineContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISmimeCapabilities_INTERFACE_DEFINED__ */ + + +#ifndef __IX509ExtensionSmimeCapabilities_INTERFACE_DEFINED__ +#define __IX509ExtensionSmimeCapabilities_INTERFACE_DEFINED__ + +/* interface IX509ExtensionSmimeCapabilities */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionSmimeCapabilities; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab31b-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionSmimeCapabilities : public IX509Extension + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in_opt ISmimeCapabilities *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SmimeCapabilities( + /* [retval][out] */ __RPC__deref_out_opt ISmimeCapabilities **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionSmimeCapabilitiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionSmimeCapabilities * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionSmimeCapabilities * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionSmimeCapabilities * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionSmimeCapabilities, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [in] */ __RPC__in_opt ISmimeCapabilities *pValue); + + DECLSPEC_XFGVIRT(IX509ExtensionSmimeCapabilities, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionSmimeCapabilities, get_SmimeCapabilities) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SmimeCapabilities )( + __RPC__in IX509ExtensionSmimeCapabilities * This, + /* [retval][out] */ __RPC__deref_out_opt ISmimeCapabilities **ppValue); + + END_INTERFACE + } IX509ExtensionSmimeCapabilitiesVtbl; + + interface IX509ExtensionSmimeCapabilities + { + CONST_VTBL struct IX509ExtensionSmimeCapabilitiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionSmimeCapabilities_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionSmimeCapabilities_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionSmimeCapabilities_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionSmimeCapabilities_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionSmimeCapabilities_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionSmimeCapabilities_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionSmimeCapabilities_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionSmimeCapabilities_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionSmimeCapabilities_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionSmimeCapabilities_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionSmimeCapabilities_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionSmimeCapabilities_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionSmimeCapabilities_InitializeEncode(This,pValue) \ + ( (This)->lpVtbl -> InitializeEncode(This,pValue) ) + +#define IX509ExtensionSmimeCapabilities_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionSmimeCapabilities_get_SmimeCapabilities(This,ppValue) \ + ( (This)->lpVtbl -> get_SmimeCapabilities(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionSmimeCapabilities_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0031 */ +/* [local] */ + +typedef +enum PolicyQualifierType + { + PolicyQualifierTypeUnknown = 0, + PolicyQualifierTypeUrl = 1, + PolicyQualifierTypeUserNotice = 2, + PolicyQualifierTypeFlags = 3 + } PolicyQualifierType; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0031_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0031_v0_0_s_ifspec; + +#ifndef __IPolicyQualifier_INTERFACE_DEFINED__ +#define __IPolicyQualifier_INTERFACE_DEFINED__ + +/* interface IPolicyQualifier */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IPolicyQualifier; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab31c-217d-11da-b2a4-000e7bbb2b09") + IPolicyQualifier : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in BSTR strQualifier, + /* [in] */ PolicyQualifierType Type) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ObjectId( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Qualifier( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out PolicyQualifierType *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawData( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPolicyQualifierVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPolicyQualifier * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPolicyQualifier * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPolicyQualifier * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IPolicyQualifier * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IPolicyQualifier * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IPolicyQualifier * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IPolicyQualifier * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IPolicyQualifier, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IPolicyQualifier * This, + /* [in] */ __RPC__in BSTR strQualifier, + /* [in] */ PolicyQualifierType Type); + + DECLSPEC_XFGVIRT(IPolicyQualifier, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IPolicyQualifier * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IPolicyQualifier, get_Qualifier) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Qualifier )( + __RPC__in IPolicyQualifier * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IPolicyQualifier, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IPolicyQualifier * This, + /* [retval][out] */ __RPC__out PolicyQualifierType *pValue); + + DECLSPEC_XFGVIRT(IPolicyQualifier, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IPolicyQualifier * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IPolicyQualifierVtbl; + + interface IPolicyQualifier + { + CONST_VTBL struct IPolicyQualifierVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPolicyQualifier_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPolicyQualifier_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPolicyQualifier_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPolicyQualifier_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IPolicyQualifier_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IPolicyQualifier_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IPolicyQualifier_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IPolicyQualifier_InitializeEncode(This,strQualifier,Type) \ + ( (This)->lpVtbl -> InitializeEncode(This,strQualifier,Type) ) + +#define IPolicyQualifier_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IPolicyQualifier_get_Qualifier(This,pValue) \ + ( (This)->lpVtbl -> get_Qualifier(This,pValue) ) + +#define IPolicyQualifier_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IPolicyQualifier_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPolicyQualifier_INTERFACE_DEFINED__ */ + + +#ifndef __IPolicyQualifiers_INTERFACE_DEFINED__ +#define __IPolicyQualifiers_INTERFACE_DEFINED__ + +/* interface IPolicyQualifiers */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IPolicyQualifiers; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab31d-217d-11da-b2a4-000e7bbb2b09") + IPolicyQualifiers : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IPolicyQualifier **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IPolicyQualifier *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPolicyQualifiersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPolicyQualifiers * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPolicyQualifiers * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPolicyQualifiers * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IPolicyQualifiers * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IPolicyQualifiers * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IPolicyQualifiers * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IPolicyQualifiers * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IPolicyQualifiers, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in IPolicyQualifiers * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IPolicyQualifier **pVal); + + DECLSPEC_XFGVIRT(IPolicyQualifiers, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IPolicyQualifiers * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IPolicyQualifiers, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IPolicyQualifiers * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(IPolicyQualifiers, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IPolicyQualifiers * This, + /* [in] */ __RPC__in_opt IPolicyQualifier *pVal); + + DECLSPEC_XFGVIRT(IPolicyQualifiers, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IPolicyQualifiers * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(IPolicyQualifiers, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IPolicyQualifiers * This); + + END_INTERFACE + } IPolicyQualifiersVtbl; + + interface IPolicyQualifiers + { + CONST_VTBL struct IPolicyQualifiersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPolicyQualifiers_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPolicyQualifiers_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPolicyQualifiers_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPolicyQualifiers_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IPolicyQualifiers_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IPolicyQualifiers_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IPolicyQualifiers_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IPolicyQualifiers_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define IPolicyQualifiers_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IPolicyQualifiers_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define IPolicyQualifiers_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define IPolicyQualifiers_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define IPolicyQualifiers_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPolicyQualifiers_INTERFACE_DEFINED__ */ + + +#ifndef __ICertificatePolicy_INTERFACE_DEFINED__ +#define __ICertificatePolicy_INTERFACE_DEFINED__ + +/* interface ICertificatePolicy */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertificatePolicy; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab31e-217d-11da-b2a4-000e7bbb2b09") + ICertificatePolicy : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IObjectId *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ObjectId( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyQualifiers( + /* [retval][out] */ __RPC__deref_out_opt IPolicyQualifiers **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertificatePolicyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertificatePolicy * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertificatePolicy * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertificatePolicy * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertificatePolicy * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertificatePolicy * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertificatePolicy * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertificatePolicy * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertificatePolicy, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertificatePolicy * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(ICertificatePolicy, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in ICertificatePolicy * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(ICertificatePolicy, get_PolicyQualifiers) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyQualifiers )( + __RPC__in ICertificatePolicy * This, + /* [retval][out] */ __RPC__deref_out_opt IPolicyQualifiers **ppValue); + + END_INTERFACE + } ICertificatePolicyVtbl; + + interface ICertificatePolicy + { + CONST_VTBL struct ICertificatePolicyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertificatePolicy_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertificatePolicy_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertificatePolicy_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertificatePolicy_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertificatePolicy_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertificatePolicy_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertificatePolicy_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertificatePolicy_Initialize(This,pValue) \ + ( (This)->lpVtbl -> Initialize(This,pValue) ) + +#define ICertificatePolicy_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define ICertificatePolicy_get_PolicyQualifiers(This,ppValue) \ + ( (This)->lpVtbl -> get_PolicyQualifiers(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertificatePolicy_INTERFACE_DEFINED__ */ + + +#ifndef __ICertificatePolicies_INTERFACE_DEFINED__ +#define __ICertificatePolicies_INTERFACE_DEFINED__ + +/* interface ICertificatePolicies */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertificatePolicies; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab31f-217d-11da-b2a4-000e7bbb2b09") + ICertificatePolicies : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICertificatePolicy **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt ICertificatePolicy *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertificatePoliciesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertificatePolicies * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertificatePolicies * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertificatePolicies * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertificatePolicies * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertificatePolicies * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertificatePolicies * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertificatePolicies * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertificatePolicies, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in ICertificatePolicies * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICertificatePolicy **pVal); + + DECLSPEC_XFGVIRT(ICertificatePolicies, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICertificatePolicies * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ICertificatePolicies, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICertificatePolicies * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(ICertificatePolicies, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ICertificatePolicies * This, + /* [in] */ __RPC__in_opt ICertificatePolicy *pVal); + + DECLSPEC_XFGVIRT(ICertificatePolicies, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ICertificatePolicies * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(ICertificatePolicies, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in ICertificatePolicies * This); + + END_INTERFACE + } ICertificatePoliciesVtbl; + + interface ICertificatePolicies + { + CONST_VTBL struct ICertificatePoliciesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertificatePolicies_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertificatePolicies_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertificatePolicies_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertificatePolicies_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertificatePolicies_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertificatePolicies_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertificatePolicies_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertificatePolicies_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define ICertificatePolicies_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ICertificatePolicies_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define ICertificatePolicies_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define ICertificatePolicies_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define ICertificatePolicies_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertificatePolicies_INTERFACE_DEFINED__ */ + + +#ifndef __IX509ExtensionCertificatePolicies_INTERFACE_DEFINED__ +#define __IX509ExtensionCertificatePolicies_INTERFACE_DEFINED__ + +/* interface IX509ExtensionCertificatePolicies */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionCertificatePolicies; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab320-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionCertificatePolicies : public IX509Extension + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in_opt ICertificatePolicies *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Policies( + /* [retval][out] */ __RPC__deref_out_opt ICertificatePolicies **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionCertificatePoliciesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionCertificatePolicies * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionCertificatePolicies * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionCertificatePolicies * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionCertificatePolicies, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [in] */ __RPC__in_opt ICertificatePolicies *pValue); + + DECLSPEC_XFGVIRT(IX509ExtensionCertificatePolicies, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionCertificatePolicies, get_Policies) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Policies )( + __RPC__in IX509ExtensionCertificatePolicies * This, + /* [retval][out] */ __RPC__deref_out_opt ICertificatePolicies **ppValue); + + END_INTERFACE + } IX509ExtensionCertificatePoliciesVtbl; + + interface IX509ExtensionCertificatePolicies + { + CONST_VTBL struct IX509ExtensionCertificatePoliciesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionCertificatePolicies_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionCertificatePolicies_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionCertificatePolicies_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionCertificatePolicies_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionCertificatePolicies_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionCertificatePolicies_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionCertificatePolicies_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionCertificatePolicies_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionCertificatePolicies_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionCertificatePolicies_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionCertificatePolicies_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionCertificatePolicies_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionCertificatePolicies_InitializeEncode(This,pValue) \ + ( (This)->lpVtbl -> InitializeEncode(This,pValue) ) + +#define IX509ExtensionCertificatePolicies_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionCertificatePolicies_get_Policies(This,ppValue) \ + ( (This)->lpVtbl -> get_Policies(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionCertificatePolicies_INTERFACE_DEFINED__ */ + + +#ifndef __IX509ExtensionMSApplicationPolicies_INTERFACE_DEFINED__ +#define __IX509ExtensionMSApplicationPolicies_INTERFACE_DEFINED__ + +/* interface IX509ExtensionMSApplicationPolicies */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509ExtensionMSApplicationPolicies; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab321-217d-11da-b2a4-000e7bbb2b09") + IX509ExtensionMSApplicationPolicies : public IX509Extension + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in_opt ICertificatePolicies *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Policies( + /* [retval][out] */ __RPC__deref_out_opt ICertificatePolicies **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509ExtensionMSApplicationPoliciesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509ExtensionMSApplicationPolicies * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509ExtensionMSApplicationPolicies * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509ExtensionMSApplicationPolicies * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Extension, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Extension, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, get_Critical) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Critical )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Extension, put_Critical) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Critical )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509ExtensionMSApplicationPolicies, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [in] */ __RPC__in_opt ICertificatePolicies *pValue); + + DECLSPEC_XFGVIRT(IX509ExtensionMSApplicationPolicies, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509ExtensionMSApplicationPolicies, get_Policies) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Policies )( + __RPC__in IX509ExtensionMSApplicationPolicies * This, + /* [retval][out] */ __RPC__deref_out_opt ICertificatePolicies **ppValue); + + END_INTERFACE + } IX509ExtensionMSApplicationPoliciesVtbl; + + interface IX509ExtensionMSApplicationPolicies + { + CONST_VTBL struct IX509ExtensionMSApplicationPoliciesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509ExtensionMSApplicationPolicies_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509ExtensionMSApplicationPolicies_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509ExtensionMSApplicationPolicies_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509ExtensionMSApplicationPolicies_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509ExtensionMSApplicationPolicies_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509ExtensionMSApplicationPolicies_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509ExtensionMSApplicationPolicies_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509ExtensionMSApplicationPolicies_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509ExtensionMSApplicationPolicies_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509ExtensionMSApplicationPolicies_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509ExtensionMSApplicationPolicies_get_Critical(This,pValue) \ + ( (This)->lpVtbl -> get_Critical(This,pValue) ) + +#define IX509ExtensionMSApplicationPolicies_put_Critical(This,Value) \ + ( (This)->lpVtbl -> put_Critical(This,Value) ) + + +#define IX509ExtensionMSApplicationPolicies_InitializeEncode(This,pValue) \ + ( (This)->lpVtbl -> InitializeEncode(This,pValue) ) + +#define IX509ExtensionMSApplicationPolicies_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509ExtensionMSApplicationPolicies_get_Policies(This,ppValue) \ + ( (This)->lpVtbl -> get_Policies(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509ExtensionMSApplicationPolicies_INTERFACE_DEFINED__ */ + + +#ifndef __IX509Attribute_INTERFACE_DEFINED__ +#define __IX509Attribute_INTERFACE_DEFINED__ + +/* interface IX509Attribute */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509Attribute; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab322-217d-11da-b2a4-000e7bbb2b09") + IX509Attribute : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ObjectId( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawData( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509AttributeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509Attribute * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509Attribute * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509Attribute * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509Attribute * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509Attribute * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509Attribute * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509Attribute * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Attribute, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509Attribute * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Attribute, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509Attribute * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Attribute, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509Attribute * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509AttributeVtbl; + + interface IX509Attribute + { + CONST_VTBL struct IX509AttributeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509Attribute_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509Attribute_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509Attribute_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509Attribute_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509Attribute_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509Attribute_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509Attribute_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509Attribute_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509Attribute_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509Attribute_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509Attribute_INTERFACE_DEFINED__ */ + + +#ifndef __IX509Attributes_INTERFACE_DEFINED__ +#define __IX509Attributes_INTERFACE_DEFINED__ + +/* interface IX509Attributes */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509Attributes; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab323-217d-11da-b2a4-000e7bbb2b09") + IX509Attributes : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509Attribute **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IX509Attribute *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509AttributesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509Attributes * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509Attributes * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509Attributes * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509Attributes * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509Attributes * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509Attributes * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509Attributes * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Attributes, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in IX509Attributes * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509Attribute **pVal); + + DECLSPEC_XFGVIRT(IX509Attributes, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IX509Attributes * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IX509Attributes, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IX509Attributes * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(IX509Attributes, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IX509Attributes * This, + /* [in] */ __RPC__in_opt IX509Attribute *pVal); + + DECLSPEC_XFGVIRT(IX509Attributes, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IX509Attributes * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(IX509Attributes, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IX509Attributes * This); + + END_INTERFACE + } IX509AttributesVtbl; + + interface IX509Attributes + { + CONST_VTBL struct IX509AttributesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509Attributes_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509Attributes_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509Attributes_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509Attributes_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509Attributes_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509Attributes_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509Attributes_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509Attributes_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define IX509Attributes_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IX509Attributes_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define IX509Attributes_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define IX509Attributes_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define IX509Attributes_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509Attributes_INTERFACE_DEFINED__ */ + + +#ifndef __IX509AttributeExtensions_INTERFACE_DEFINED__ +#define __IX509AttributeExtensions_INTERFACE_DEFINED__ + +/* interface IX509AttributeExtensions */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509AttributeExtensions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab324-217d-11da-b2a4-000e7bbb2b09") + IX509AttributeExtensions : public IX509Attribute + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in_opt IX509Extensions *pExtensions) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_X509Extensions( + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509AttributeExtensionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509AttributeExtensions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509AttributeExtensions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509AttributeExtensions * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509AttributeExtensions * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509AttributeExtensions * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509AttributeExtensions * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509AttributeExtensions * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Attribute, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509AttributeExtensions * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Attribute, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509AttributeExtensions * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Attribute, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509AttributeExtensions * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeExtensions, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509AttributeExtensions * This, + /* [in] */ __RPC__in_opt IX509Extensions *pExtensions); + + DECLSPEC_XFGVIRT(IX509AttributeExtensions, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509AttributeExtensions * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509AttributeExtensions, get_X509Extensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509AttributeExtensions * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + END_INTERFACE + } IX509AttributeExtensionsVtbl; + + interface IX509AttributeExtensions + { + CONST_VTBL struct IX509AttributeExtensionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509AttributeExtensions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509AttributeExtensions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509AttributeExtensions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509AttributeExtensions_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509AttributeExtensions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509AttributeExtensions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509AttributeExtensions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509AttributeExtensions_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509AttributeExtensions_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509AttributeExtensions_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509AttributeExtensions_InitializeEncode(This,pExtensions) \ + ( (This)->lpVtbl -> InitializeEncode(This,pExtensions) ) + +#define IX509AttributeExtensions_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509AttributeExtensions_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509AttributeExtensions_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0040 */ +/* [local] */ + +typedef +enum RequestClientInfoClientId + { + ClientIdNone = 0, + ClientIdXEnroll2003 = 1, + ClientIdAutoEnroll2003 = 2, + ClientIdWizard2003 = 3, + ClientIdCertReq2003 = 4, + ClientIdDefaultRequest = 5, + ClientIdAutoEnroll = 6, + ClientIdRequestWizard = 7, + ClientIdEOBO = 8, + ClientIdCertReq = 9, + ClientIdTest = 10, + ClientIdWinRT = 11, + ClientIdUserStart = 1000 + } RequestClientInfoClientId; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0040_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0040_v0_0_s_ifspec; + +#ifndef __IX509AttributeClientId_INTERFACE_DEFINED__ +#define __IX509AttributeClientId_INTERFACE_DEFINED__ + +/* interface IX509AttributeClientId */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509AttributeClientId; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab325-217d-11da-b2a4-000e7bbb2b09") + IX509AttributeClientId : public IX509Attribute + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ RequestClientInfoClientId ClientId, + /* [in] */ __RPC__in BSTR strMachineDnsName, + /* [in] */ __RPC__in BSTR strUserSamName, + /* [in] */ __RPC__in BSTR strProcessName) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ClientId( + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MachineDnsName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UserSamName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProcessName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509AttributeClientIdVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509AttributeClientId * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509AttributeClientId * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509AttributeClientId * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509AttributeClientId * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509AttributeClientId * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509AttributeClientId * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509AttributeClientId * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Attribute, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509AttributeClientId * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Attribute, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509AttributeClientId * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Attribute, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509AttributeClientId * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeClientId, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509AttributeClientId * This, + /* [in] */ RequestClientInfoClientId ClientId, + /* [in] */ __RPC__in BSTR strMachineDnsName, + /* [in] */ __RPC__in BSTR strUserSamName, + /* [in] */ __RPC__in BSTR strProcessName); + + DECLSPEC_XFGVIRT(IX509AttributeClientId, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509AttributeClientId * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509AttributeClientId, get_ClientId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509AttributeClientId * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeClientId, get_MachineDnsName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MachineDnsName )( + __RPC__in IX509AttributeClientId * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeClientId, get_UserSamName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSamName )( + __RPC__in IX509AttributeClientId * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeClientId, get_ProcessName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProcessName )( + __RPC__in IX509AttributeClientId * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509AttributeClientIdVtbl; + + interface IX509AttributeClientId + { + CONST_VTBL struct IX509AttributeClientIdVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509AttributeClientId_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509AttributeClientId_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509AttributeClientId_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509AttributeClientId_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509AttributeClientId_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509AttributeClientId_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509AttributeClientId_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509AttributeClientId_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509AttributeClientId_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509AttributeClientId_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509AttributeClientId_InitializeEncode(This,ClientId,strMachineDnsName,strUserSamName,strProcessName) \ + ( (This)->lpVtbl -> InitializeEncode(This,ClientId,strMachineDnsName,strUserSamName,strProcessName) ) + +#define IX509AttributeClientId_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509AttributeClientId_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509AttributeClientId_get_MachineDnsName(This,pValue) \ + ( (This)->lpVtbl -> get_MachineDnsName(This,pValue) ) + +#define IX509AttributeClientId_get_UserSamName(This,pValue) \ + ( (This)->lpVtbl -> get_UserSamName(This,pValue) ) + +#define IX509AttributeClientId_get_ProcessName(This,pValue) \ + ( (This)->lpVtbl -> get_ProcessName(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509AttributeClientId_INTERFACE_DEFINED__ */ + + +#ifndef __IX509AttributeRenewalCertificate_INTERFACE_DEFINED__ +#define __IX509AttributeRenewalCertificate_INTERFACE_DEFINED__ + +/* interface IX509AttributeRenewalCertificate */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509AttributeRenewalCertificate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab326-217d-11da-b2a4-000e7bbb2b09") + IX509AttributeRenewalCertificate : public IX509Attribute + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCert) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RenewalCertificate( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509AttributeRenewalCertificateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509AttributeRenewalCertificate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509AttributeRenewalCertificate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509AttributeRenewalCertificate * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509AttributeRenewalCertificate * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509AttributeRenewalCertificate * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509AttributeRenewalCertificate * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509AttributeRenewalCertificate * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Attribute, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509AttributeRenewalCertificate * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Attribute, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509AttributeRenewalCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Attribute, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509AttributeRenewalCertificate * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeRenewalCertificate, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509AttributeRenewalCertificate * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCert); + + DECLSPEC_XFGVIRT(IX509AttributeRenewalCertificate, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509AttributeRenewalCertificate * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509AttributeRenewalCertificate, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509AttributeRenewalCertificate * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509AttributeRenewalCertificateVtbl; + + interface IX509AttributeRenewalCertificate + { + CONST_VTBL struct IX509AttributeRenewalCertificateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509AttributeRenewalCertificate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509AttributeRenewalCertificate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509AttributeRenewalCertificate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509AttributeRenewalCertificate_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509AttributeRenewalCertificate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509AttributeRenewalCertificate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509AttributeRenewalCertificate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509AttributeRenewalCertificate_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509AttributeRenewalCertificate_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509AttributeRenewalCertificate_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509AttributeRenewalCertificate_InitializeEncode(This,Encoding,strCert) \ + ( (This)->lpVtbl -> InitializeEncode(This,Encoding,strCert) ) + +#define IX509AttributeRenewalCertificate_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509AttributeRenewalCertificate_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509AttributeRenewalCertificate_INTERFACE_DEFINED__ */ + + +#ifndef __IX509AttributeArchiveKey_INTERFACE_DEFINED__ +#define __IX509AttributeArchiveKey_INTERFACE_DEFINED__ + +/* interface IX509AttributeArchiveKey */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509AttributeArchiveKey; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab327-217d-11da-b2a4-000e7bbb2b09") + IX509AttributeArchiveKey : public IX509Attribute + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in_opt IX509PrivateKey *pKey, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCAXCert, + /* [in] */ __RPC__in_opt IObjectId *pAlgorithm, + /* [in] */ LONG EncryptionStrength) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EncryptedKeyBlob( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EncryptionAlgorithm( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EncryptionStrength( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509AttributeArchiveKeyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509AttributeArchiveKey * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509AttributeArchiveKey * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509AttributeArchiveKey * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509AttributeArchiveKey * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509AttributeArchiveKey * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509AttributeArchiveKey * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509AttributeArchiveKey * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Attribute, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509AttributeArchiveKey * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Attribute, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509AttributeArchiveKey * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Attribute, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509AttributeArchiveKey * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeArchiveKey, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509AttributeArchiveKey * This, + /* [in] */ __RPC__in_opt IX509PrivateKey *pKey, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCAXCert, + /* [in] */ __RPC__in_opt IObjectId *pAlgorithm, + /* [in] */ LONG EncryptionStrength); + + DECLSPEC_XFGVIRT(IX509AttributeArchiveKey, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509AttributeArchiveKey * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509AttributeArchiveKey, get_EncryptedKeyBlob) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptedKeyBlob )( + __RPC__in IX509AttributeArchiveKey * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeArchiveKey, get_EncryptionAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptionAlgorithm )( + __RPC__in IX509AttributeArchiveKey * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509AttributeArchiveKey, get_EncryptionStrength) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptionStrength )( + __RPC__in IX509AttributeArchiveKey * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + END_INTERFACE + } IX509AttributeArchiveKeyVtbl; + + interface IX509AttributeArchiveKey + { + CONST_VTBL struct IX509AttributeArchiveKeyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509AttributeArchiveKey_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509AttributeArchiveKey_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509AttributeArchiveKey_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509AttributeArchiveKey_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509AttributeArchiveKey_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509AttributeArchiveKey_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509AttributeArchiveKey_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509AttributeArchiveKey_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509AttributeArchiveKey_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509AttributeArchiveKey_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509AttributeArchiveKey_InitializeEncode(This,pKey,Encoding,strCAXCert,pAlgorithm,EncryptionStrength) \ + ( (This)->lpVtbl -> InitializeEncode(This,pKey,Encoding,strCAXCert,pAlgorithm,EncryptionStrength) ) + +#define IX509AttributeArchiveKey_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509AttributeArchiveKey_get_EncryptedKeyBlob(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_EncryptedKeyBlob(This,Encoding,pValue) ) + +#define IX509AttributeArchiveKey_get_EncryptionAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_EncryptionAlgorithm(This,ppValue) ) + +#define IX509AttributeArchiveKey_get_EncryptionStrength(This,pValue) \ + ( (This)->lpVtbl -> get_EncryptionStrength(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509AttributeArchiveKey_INTERFACE_DEFINED__ */ + + +#ifndef __IX509AttributeArchiveKeyHash_INTERFACE_DEFINED__ +#define __IX509AttributeArchiveKeyHash_INTERFACE_DEFINED__ + +/* interface IX509AttributeArchiveKeyHash */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509AttributeArchiveKeyHash; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab328-217d-11da-b2a4-000e7bbb2b09") + IX509AttributeArchiveKeyHash : public IX509Attribute + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncodeFromEncryptedKeyBlob( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncryptedKeyBlob) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EncryptedKeyHashBlob( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509AttributeArchiveKeyHashVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509AttributeArchiveKeyHash * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509AttributeArchiveKeyHash * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509AttributeArchiveKeyHash * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509AttributeArchiveKeyHash * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509AttributeArchiveKeyHash * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509AttributeArchiveKeyHash * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509AttributeArchiveKeyHash * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Attribute, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509AttributeArchiveKeyHash * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Attribute, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509AttributeArchiveKeyHash * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Attribute, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509AttributeArchiveKeyHash * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeArchiveKeyHash, InitializeEncodeFromEncryptedKeyBlob) + HRESULT ( STDMETHODCALLTYPE *InitializeEncodeFromEncryptedKeyBlob )( + __RPC__in IX509AttributeArchiveKeyHash * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncryptedKeyBlob); + + DECLSPEC_XFGVIRT(IX509AttributeArchiveKeyHash, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509AttributeArchiveKeyHash * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509AttributeArchiveKeyHash, get_EncryptedKeyHashBlob) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptedKeyHashBlob )( + __RPC__in IX509AttributeArchiveKeyHash * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509AttributeArchiveKeyHashVtbl; + + interface IX509AttributeArchiveKeyHash + { + CONST_VTBL struct IX509AttributeArchiveKeyHashVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509AttributeArchiveKeyHash_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509AttributeArchiveKeyHash_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509AttributeArchiveKeyHash_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509AttributeArchiveKeyHash_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509AttributeArchiveKeyHash_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509AttributeArchiveKeyHash_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509AttributeArchiveKeyHash_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509AttributeArchiveKeyHash_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509AttributeArchiveKeyHash_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509AttributeArchiveKeyHash_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509AttributeArchiveKeyHash_InitializeEncodeFromEncryptedKeyBlob(This,Encoding,strEncryptedKeyBlob) \ + ( (This)->lpVtbl -> InitializeEncodeFromEncryptedKeyBlob(This,Encoding,strEncryptedKeyBlob) ) + +#define IX509AttributeArchiveKeyHash_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509AttributeArchiveKeyHash_get_EncryptedKeyHashBlob(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_EncryptedKeyHashBlob(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509AttributeArchiveKeyHash_INTERFACE_DEFINED__ */ + + +#ifndef __IX509AttributeOSVersion_INTERFACE_DEFINED__ +#define __IX509AttributeOSVersion_INTERFACE_DEFINED__ + +/* interface IX509AttributeOSVersion */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509AttributeOSVersion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab32a-217d-11da-b2a4-000e7bbb2b09") + IX509AttributeOSVersion : public IX509Attribute + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ __RPC__in BSTR strOSVersion) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_OSVersion( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509AttributeOSVersionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509AttributeOSVersion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509AttributeOSVersion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509AttributeOSVersion * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509AttributeOSVersion * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509AttributeOSVersion * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509AttributeOSVersion * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509AttributeOSVersion * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Attribute, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509AttributeOSVersion * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Attribute, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509AttributeOSVersion * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Attribute, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509AttributeOSVersion * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeOSVersion, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509AttributeOSVersion * This, + /* [in] */ __RPC__in BSTR strOSVersion); + + DECLSPEC_XFGVIRT(IX509AttributeOSVersion, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509AttributeOSVersion * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509AttributeOSVersion, get_OSVersion) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OSVersion )( + __RPC__in IX509AttributeOSVersion * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509AttributeOSVersionVtbl; + + interface IX509AttributeOSVersion + { + CONST_VTBL struct IX509AttributeOSVersionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509AttributeOSVersion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509AttributeOSVersion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509AttributeOSVersion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509AttributeOSVersion_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509AttributeOSVersion_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509AttributeOSVersion_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509AttributeOSVersion_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509AttributeOSVersion_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509AttributeOSVersion_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509AttributeOSVersion_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509AttributeOSVersion_InitializeEncode(This,strOSVersion) \ + ( (This)->lpVtbl -> InitializeEncode(This,strOSVersion) ) + +#define IX509AttributeOSVersion_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509AttributeOSVersion_get_OSVersion(This,pValue) \ + ( (This)->lpVtbl -> get_OSVersion(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509AttributeOSVersion_INTERFACE_DEFINED__ */ + + +#ifndef __IX509AttributeCspProvider_INTERFACE_DEFINED__ +#define __IX509AttributeCspProvider_INTERFACE_DEFINED__ + +/* interface IX509AttributeCspProvider */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509AttributeCspProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab32b-217d-11da-b2a4-000e7bbb2b09") + IX509AttributeCspProvider : public IX509Attribute + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeEncode( + /* [in] */ X509KeySpec KeySpec, + /* [in] */ __RPC__in BSTR strProviderName, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strSignature) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_KeySpec( + /* [retval][out] */ __RPC__out X509KeySpec *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProviderName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Signature( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509AttributeCspProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509AttributeCspProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509AttributeCspProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509AttributeCspProvider * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509AttributeCspProvider * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509AttributeCspProvider * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509AttributeCspProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509AttributeCspProvider * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Attribute, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509AttributeCspProvider * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509Attribute, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in IX509AttributeCspProvider * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509Attribute, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509AttributeCspProvider * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeCspProvider, InitializeEncode) + HRESULT ( STDMETHODCALLTYPE *InitializeEncode )( + __RPC__in IX509AttributeCspProvider * This, + /* [in] */ X509KeySpec KeySpec, + /* [in] */ __RPC__in BSTR strProviderName, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strSignature); + + DECLSPEC_XFGVIRT(IX509AttributeCspProvider, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509AttributeCspProvider * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(IX509AttributeCspProvider, get_KeySpec) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeySpec )( + __RPC__in IX509AttributeCspProvider * This, + /* [retval][out] */ __RPC__out X509KeySpec *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeCspProvider, get_ProviderName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProviderName )( + __RPC__in IX509AttributeCspProvider * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509AttributeCspProvider, get_Signature) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Signature )( + __RPC__in IX509AttributeCspProvider * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509AttributeCspProviderVtbl; + + interface IX509AttributeCspProvider + { + CONST_VTBL struct IX509AttributeCspProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509AttributeCspProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509AttributeCspProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509AttributeCspProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509AttributeCspProvider_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509AttributeCspProvider_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509AttributeCspProvider_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509AttributeCspProvider_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509AttributeCspProvider_Initialize(This,pObjectId,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> Initialize(This,pObjectId,Encoding,strEncodedData) ) + +#define IX509AttributeCspProvider_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define IX509AttributeCspProvider_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509AttributeCspProvider_InitializeEncode(This,KeySpec,strProviderName,Encoding,strSignature) \ + ( (This)->lpVtbl -> InitializeEncode(This,KeySpec,strProviderName,Encoding,strSignature) ) + +#define IX509AttributeCspProvider_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define IX509AttributeCspProvider_get_KeySpec(This,pValue) \ + ( (This)->lpVtbl -> get_KeySpec(This,pValue) ) + +#define IX509AttributeCspProvider_get_ProviderName(This,pValue) \ + ( (This)->lpVtbl -> get_ProviderName(This,pValue) ) + +#define IX509AttributeCspProvider_get_Signature(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Signature(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509AttributeCspProvider_INTERFACE_DEFINED__ */ + + +#ifndef __ICryptAttribute_INTERFACE_DEFINED__ +#define __ICryptAttribute_INTERFACE_DEFINED__ + +/* interface ICryptAttribute */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICryptAttribute; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab32c-217d-11da-b2a4-000e7bbb2b09") + ICryptAttribute : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromObjectId( + /* [in] */ __RPC__in_opt IObjectId *pObjectId) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromValues( + /* [in] */ __RPC__in_opt IX509Attributes *pAttributes) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ObjectId( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Values( + /* [retval][out] */ __RPC__deref_out_opt IX509Attributes **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICryptAttributeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICryptAttribute * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICryptAttribute * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICryptAttribute * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICryptAttribute * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICryptAttribute * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICryptAttribute * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICryptAttribute * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICryptAttribute, InitializeFromObjectId) + HRESULT ( STDMETHODCALLTYPE *InitializeFromObjectId )( + __RPC__in ICryptAttribute * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId); + + DECLSPEC_XFGVIRT(ICryptAttribute, InitializeFromValues) + HRESULT ( STDMETHODCALLTYPE *InitializeFromValues )( + __RPC__in ICryptAttribute * This, + /* [in] */ __RPC__in_opt IX509Attributes *pAttributes); + + DECLSPEC_XFGVIRT(ICryptAttribute, get_ObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectId )( + __RPC__in ICryptAttribute * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(ICryptAttribute, get_Values) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Values )( + __RPC__in ICryptAttribute * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Attributes **ppValue); + + END_INTERFACE + } ICryptAttributeVtbl; + + interface ICryptAttribute + { + CONST_VTBL struct ICryptAttributeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICryptAttribute_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICryptAttribute_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICryptAttribute_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICryptAttribute_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICryptAttribute_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICryptAttribute_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICryptAttribute_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICryptAttribute_InitializeFromObjectId(This,pObjectId) \ + ( (This)->lpVtbl -> InitializeFromObjectId(This,pObjectId) ) + +#define ICryptAttribute_InitializeFromValues(This,pAttributes) \ + ( (This)->lpVtbl -> InitializeFromValues(This,pAttributes) ) + +#define ICryptAttribute_get_ObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_ObjectId(This,ppValue) ) + +#define ICryptAttribute_get_Values(This,ppValue) \ + ( (This)->lpVtbl -> get_Values(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICryptAttribute_INTERFACE_DEFINED__ */ + + +#ifndef __ICryptAttributes_INTERFACE_DEFINED__ +#define __ICryptAttributes_INTERFACE_DEFINED__ + +/* interface ICryptAttributes */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICryptAttributes; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab32d-217d-11da-b2a4-000e7bbb2b09") + ICryptAttributes : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICryptAttribute **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt ICryptAttribute *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IndexByObjectId( + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [retval][out] */ __RPC__out LONG *pIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRange( + /* [in] */ __RPC__in_opt ICryptAttributes *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICryptAttributesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICryptAttributes * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICryptAttributes * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICryptAttributes * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICryptAttributes * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICryptAttributes * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICryptAttributes * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICryptAttributes * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICryptAttributes, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in ICryptAttributes * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICryptAttribute **pVal); + + DECLSPEC_XFGVIRT(ICryptAttributes, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICryptAttributes * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ICryptAttributes, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICryptAttributes * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(ICryptAttributes, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ICryptAttributes * This, + /* [in] */ __RPC__in_opt ICryptAttribute *pVal); + + DECLSPEC_XFGVIRT(ICryptAttributes, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ICryptAttributes * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(ICryptAttributes, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in ICryptAttributes * This); + + DECLSPEC_XFGVIRT(ICryptAttributes, get_IndexByObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IndexByObjectId )( + __RPC__in ICryptAttributes * This, + /* [in] */ __RPC__in_opt IObjectId *pObjectId, + /* [retval][out] */ __RPC__out LONG *pIndex); + + DECLSPEC_XFGVIRT(ICryptAttributes, AddRange) + HRESULT ( STDMETHODCALLTYPE *AddRange )( + __RPC__in ICryptAttributes * This, + /* [in] */ __RPC__in_opt ICryptAttributes *pValue); + + END_INTERFACE + } ICryptAttributesVtbl; + + interface ICryptAttributes + { + CONST_VTBL struct ICryptAttributesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICryptAttributes_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICryptAttributes_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICryptAttributes_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICryptAttributes_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICryptAttributes_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICryptAttributes_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICryptAttributes_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICryptAttributes_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define ICryptAttributes_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ICryptAttributes_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define ICryptAttributes_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define ICryptAttributes_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define ICryptAttributes_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define ICryptAttributes_get_IndexByObjectId(This,pObjectId,pIndex) \ + ( (This)->lpVtbl -> get_IndexByObjectId(This,pObjectId,pIndex) ) + +#define ICryptAttributes_AddRange(This,pValue) \ + ( (This)->lpVtbl -> AddRange(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICryptAttributes_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0048 */ +/* [local] */ + +typedef +enum CERTENROLL_PROPERTYID + { + XCN_PROPERTYID_NONE = 0, + XCN_CERT_KEY_PROV_HANDLE_PROP_ID = 1, + XCN_CERT_KEY_PROV_INFO_PROP_ID = 2, + XCN_CERT_SHA1_HASH_PROP_ID = 3, + XCN_CERT_MD5_HASH_PROP_ID = 4, + XCN_CERT_HASH_PROP_ID = 3, + XCN_CERT_KEY_CONTEXT_PROP_ID = 5, + XCN_CERT_KEY_SPEC_PROP_ID = 6, + XCN_CERT_IE30_RESERVED_PROP_ID = 7, + XCN_CERT_PUBKEY_HASH_RESERVED_PROP_ID = 8, + XCN_CERT_ENHKEY_USAGE_PROP_ID = 9, + XCN_CERT_CTL_USAGE_PROP_ID = 9, + XCN_CERT_NEXT_UPDATE_LOCATION_PROP_ID = 10, + XCN_CERT_FRIENDLY_NAME_PROP_ID = 11, + XCN_CERT_PVK_FILE_PROP_ID = 12, + XCN_CERT_DESCRIPTION_PROP_ID = 13, + XCN_CERT_ACCESS_STATE_PROP_ID = 14, + XCN_CERT_SIGNATURE_HASH_PROP_ID = 15, + XCN_CERT_SMART_CARD_DATA_PROP_ID = 16, + XCN_CERT_EFS_PROP_ID = 17, + XCN_CERT_FORTEZZA_DATA_PROP_ID = 18, + XCN_CERT_ARCHIVED_PROP_ID = 19, + XCN_CERT_KEY_IDENTIFIER_PROP_ID = 20, + XCN_CERT_AUTO_ENROLL_PROP_ID = 21, + XCN_CERT_PUBKEY_ALG_PARA_PROP_ID = 22, + XCN_CERT_CROSS_CERT_DIST_POINTS_PROP_ID = 23, + XCN_CERT_ISSUER_PUBLIC_KEY_MD5_HASH_PROP_ID = 24, + XCN_CERT_SUBJECT_PUBLIC_KEY_MD5_HASH_PROP_ID = 25, + XCN_CERT_ENROLLMENT_PROP_ID = 26, + XCN_CERT_DATE_STAMP_PROP_ID = 27, + XCN_CERT_ISSUER_SERIAL_NUMBER_MD5_HASH_PROP_ID = 28, + XCN_CERT_SUBJECT_NAME_MD5_HASH_PROP_ID = 29, + XCN_CERT_EXTENDED_ERROR_INFO_PROP_ID = 30, + XCN_CERT_RENEWAL_PROP_ID = 64, + XCN_CERT_ARCHIVED_KEY_HASH_PROP_ID = 65, + XCN_CERT_AUTO_ENROLL_RETRY_PROP_ID = 66, + XCN_CERT_AIA_URL_RETRIEVED_PROP_ID = 67, + XCN_CERT_AUTHORITY_INFO_ACCESS_PROP_ID = 68, + XCN_CERT_BACKED_UP_PROP_ID = 69, + XCN_CERT_OCSP_RESPONSE_PROP_ID = 70, + XCN_CERT_REQUEST_ORIGINATOR_PROP_ID = 71, + XCN_CERT_SOURCE_LOCATION_PROP_ID = 72, + XCN_CERT_SOURCE_URL_PROP_ID = 73, + XCN_CERT_NEW_KEY_PROP_ID = 74, + XCN_CERT_OCSP_CACHE_PREFIX_PROP_ID = 75, + XCN_CERT_SMART_CARD_ROOT_INFO_PROP_ID = 76, + XCN_CERT_NO_AUTO_EXPIRE_CHECK_PROP_ID = 77, + XCN_CERT_NCRYPT_KEY_HANDLE_PROP_ID = 78, + XCN_CERT_HCRYPTPROV_OR_NCRYPT_KEY_HANDLE_PROP_ID = 79, + XCN_CERT_SUBJECT_INFO_ACCESS_PROP_ID = 80, + XCN_CERT_CA_OCSP_AUTHORITY_INFO_ACCESS_PROP_ID = 81, + XCN_CERT_CA_DISABLE_CRL_PROP_ID = 82, + XCN_CERT_ROOT_PROGRAM_CERT_POLICIES_PROP_ID = 83, + XCN_CERT_ROOT_PROGRAM_NAME_CONSTRAINTS_PROP_ID = 84, + XCN_CERT_SUBJECT_OCSP_AUTHORITY_INFO_ACCESS_PROP_ID = 85, + XCN_CERT_SUBJECT_DISABLE_CRL_PROP_ID = 86, + XCN_CERT_CEP_PROP_ID = 87, + XCN_CERT_SIGN_HASH_CNG_ALG_PROP_ID = 89, + XCN_CERT_SCARD_PIN_ID_PROP_ID = 90, + XCN_CERT_SCARD_PIN_INFO_PROP_ID = 91, + XCN_CERT_SUBJECT_PUB_KEY_BIT_LENGTH_PROP_ID = 92, + XCN_CERT_PUB_KEY_CNG_ALG_BIT_LENGTH_PROP_ID = 93, + XCN_CERT_ISSUER_PUB_KEY_BIT_LENGTH_PROP_ID = 94, + XCN_CERT_ISSUER_CHAIN_SIGN_HASH_CNG_ALG_PROP_ID = 95, + XCN_CERT_ISSUER_CHAIN_PUB_KEY_CNG_ALG_BIT_LENGTH_PROP_ID = 96, + XCN_CERT_NO_EXPIRE_NOTIFICATION_PROP_ID = 97, + XCN_CERT_AUTH_ROOT_SHA256_HASH_PROP_ID = 98, + XCN_CERT_NCRYPT_KEY_HANDLE_TRANSFER_PROP_ID = 99, + XCN_CERT_HCRYPTPROV_TRANSFER_PROP_ID = 100, + XCN_CERT_SMART_CARD_READER_PROP_ID = 101, + XCN_CERT_SEND_AS_TRUSTED_ISSUER_PROP_ID = 102, + XCN_CERT_KEY_REPAIR_ATTEMPTED_PROP_ID = 103, + XCN_CERT_DISALLOWED_FILETIME_PROP_ID = 104, + XCN_CERT_ROOT_PROGRAM_CHAIN_POLICIES_PROP_ID = 105, + XCN_CERT_SMART_CARD_READER_NON_REMOVABLE_PROP_ID = 106, + XCN_CERT_SHA256_HASH_PROP_ID = 107, + XCN_CERT_SCEP_SERVER_CERTS_PROP_ID = 108, + XCN_CERT_SCEP_RA_SIGNATURE_CERT_PROP_ID = 109, + XCN_CERT_SCEP_RA_ENCRYPTION_CERT_PROP_ID = 110, + XCN_CERT_SCEP_CA_CERT_PROP_ID = 111, + XCN_CERT_SCEP_SIGNER_CERT_PROP_ID = 112, + XCN_CERT_SCEP_NONCE_PROP_ID = 113, + XCN_CERT_SCEP_ENCRYPT_HASH_CNG_ALG_PROP_ID = 114, + XCN_CERT_SCEP_FLAGS_PROP_ID = 115, + XCN_CERT_SCEP_GUID_PROP_ID = 116, + XCN_CERT_SERIALIZABLE_KEY_CONTEXT_PROP_ID = 117, + XCN_CERT_ISOLATED_KEY_PROP_ID = 118, + XCN_CERT_SERIAL_CHAIN_PROP_ID = 119, + XCN_CERT_KEY_CLASSIFICATION_PROP_ID = 120, + XCN_CERT_DISALLOWED_ENHKEY_USAGE_PROP_ID = 122, + XCN_CERT_NONCOMPLIANT_ROOT_URL_PROP_ID = 123, + XCN_CERT_PIN_SHA256_HASH_PROP_ID = 124, + XCN_CERT_CLR_DELETE_KEY_PROP_ID = 125, + XCN_CERT_NOT_BEFORE_FILETIME_PROP_ID = 126, + XCN_CERT_CERT_NOT_BEFORE_ENHKEY_USAGE_PROP_ID = 127, + XCN_CERT_FIRST_RESERVED_PROP_ID = 130, + XCN_CERT_LAST_RESERVED_PROP_ID = 0x7fff, + XCN_CERT_FIRST_USER_PROP_ID = 0x8000, + XCN_CERT_LAST_USER_PROP_ID = 0xffff, + XCN_CERT_STORE_LOCALIZED_NAME_PROP_ID = 0x1000 + } CERTENROLL_PROPERTYID; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0048_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0048_v0_0_s_ifspec; + +#ifndef __ICertProperty_INTERFACE_DEFINED__ +#define __ICertProperty_INTERFACE_DEFINED__ + +/* interface ICertProperty */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab32e-217d-11da-b2a4-000e7bbb2b09") + ICertProperty : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromCertificate( + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PropertyId( + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_PropertyId( + /* [in] */ CERTENROLL_PROPERTYID Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawData( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveFromCertificate( + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetValueOnCertificate( + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertProperty * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertProperty * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertProperty * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertProperty * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertProperty * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertProperty * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertProperty * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertProperty * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertProperty * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + END_INTERFACE + } ICertPropertyVtbl; + + interface ICertProperty + { + CONST_VTBL struct ICertPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertProperty_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertProperty_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertProperty_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertProperty_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertProperty_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertProperty_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertProperty_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertProperty_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertProperty_INTERFACE_DEFINED__ */ + + +#ifndef __ICertProperties_INTERFACE_DEFINED__ +#define __ICertProperties_INTERFACE_DEFINED__ + +/* interface ICertProperties */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab32f-217d-11da-b2a4-000e7bbb2b09") + ICertProperties : public IDispatch + { + public: + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICertProperty **pVal) = 0; + + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id][custom] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt ICertProperty *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromCertificate( + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertProperties * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertProperties * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertProperties * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertProperties * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperties, get_ItemByIndex) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in ICertProperties * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICertProperty **pVal); + + DECLSPEC_XFGVIRT(ICertProperties, get_Count) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICertProperties * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ICertProperties, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICertProperties * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(ICertProperties, Add) + /* [helpstring][id][custom] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ICertProperties * This, + /* [in] */ __RPC__in_opt ICertProperty *pVal); + + DECLSPEC_XFGVIRT(ICertProperties, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ICertProperties * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(ICertProperties, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in ICertProperties * This); + + DECLSPEC_XFGVIRT(ICertProperties, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertProperties * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + END_INTERFACE + } ICertPropertiesVtbl; + + interface ICertProperties + { + CONST_VTBL struct ICertPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertProperties_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertProperties_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertProperties_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertProperties_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertProperties_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define ICertProperties_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ICertProperties_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define ICertProperties_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define ICertProperties_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define ICertProperties_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define ICertProperties_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertProperties_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertyFriendlyName_INTERFACE_DEFINED__ +#define __ICertPropertyFriendlyName_INTERFACE_DEFINED__ + +/* interface ICertPropertyFriendlyName */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyFriendlyName; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab330-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyFriendlyName : public ICertProperty + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in BSTR strFriendlyName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyFriendlyNameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyFriendlyName * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyFriendlyName * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyFriendlyName * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyFriendlyName * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyFriendlyName * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyFriendlyName * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyFriendlyName * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyFriendlyName * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyFriendlyName * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyFriendlyName * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyFriendlyName * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyFriendlyName * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyFriendlyName * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyFriendlyName * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyFriendlyName, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyFriendlyName * This, + /* [in] */ __RPC__in BSTR strFriendlyName); + + DECLSPEC_XFGVIRT(ICertPropertyFriendlyName, get_FriendlyName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( + __RPC__in ICertPropertyFriendlyName * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } ICertPropertyFriendlyNameVtbl; + + interface ICertPropertyFriendlyName + { + CONST_VTBL struct ICertPropertyFriendlyNameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyFriendlyName_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyFriendlyName_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyFriendlyName_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyFriendlyName_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyFriendlyName_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyFriendlyName_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyFriendlyName_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyFriendlyName_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyFriendlyName_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyFriendlyName_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyFriendlyName_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyFriendlyName_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyFriendlyName_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyFriendlyName_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyFriendlyName_Initialize(This,strFriendlyName) \ + ( (This)->lpVtbl -> Initialize(This,strFriendlyName) ) + +#define ICertPropertyFriendlyName_get_FriendlyName(This,pValue) \ + ( (This)->lpVtbl -> get_FriendlyName(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyFriendlyName_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertyDescription_INTERFACE_DEFINED__ +#define __ICertPropertyDescription_INTERFACE_DEFINED__ + +/* interface ICertPropertyDescription */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyDescription; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab331-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyDescription : public ICertProperty + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in BSTR strDescription) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyDescriptionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyDescription * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyDescription * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyDescription * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyDescription * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyDescription * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyDescription * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyDescription * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyDescription * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyDescription * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyDescription * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyDescription * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyDescription * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyDescription * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyDescription * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyDescription, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyDescription * This, + /* [in] */ __RPC__in BSTR strDescription); + + DECLSPEC_XFGVIRT(ICertPropertyDescription, get_Description) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in ICertPropertyDescription * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } ICertPropertyDescriptionVtbl; + + interface ICertPropertyDescription + { + CONST_VTBL struct ICertPropertyDescriptionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyDescription_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyDescription_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyDescription_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyDescription_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyDescription_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyDescription_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyDescription_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyDescription_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyDescription_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyDescription_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyDescription_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyDescription_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyDescription_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyDescription_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyDescription_Initialize(This,strDescription) \ + ( (This)->lpVtbl -> Initialize(This,strDescription) ) + +#define ICertPropertyDescription_get_Description(This,pValue) \ + ( (This)->lpVtbl -> get_Description(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyDescription_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertyAutoEnroll_INTERFACE_DEFINED__ +#define __ICertPropertyAutoEnroll_INTERFACE_DEFINED__ + +/* interface ICertPropertyAutoEnroll */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyAutoEnroll; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab332-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyAutoEnroll : public ICertProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in BSTR strTemplateName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_TemplateName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyAutoEnrollVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyAutoEnroll * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyAutoEnroll * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyAutoEnroll * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyAutoEnroll, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(ICertPropertyAutoEnroll, get_TemplateName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateName )( + __RPC__in ICertPropertyAutoEnroll * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } ICertPropertyAutoEnrollVtbl; + + interface ICertPropertyAutoEnroll + { + CONST_VTBL struct ICertPropertyAutoEnrollVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyAutoEnroll_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyAutoEnroll_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyAutoEnroll_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyAutoEnroll_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyAutoEnroll_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyAutoEnroll_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyAutoEnroll_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyAutoEnroll_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyAutoEnroll_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyAutoEnroll_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyAutoEnroll_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyAutoEnroll_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyAutoEnroll_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyAutoEnroll_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyAutoEnroll_Initialize(This,strTemplateName) \ + ( (This)->lpVtbl -> Initialize(This,strTemplateName) ) + +#define ICertPropertyAutoEnroll_get_TemplateName(This,pValue) \ + ( (This)->lpVtbl -> get_TemplateName(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyAutoEnroll_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertyRequestOriginator_INTERFACE_DEFINED__ +#define __ICertPropertyRequestOriginator_INTERFACE_DEFINED__ + +/* interface ICertPropertyRequestOriginator */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyRequestOriginator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab333-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyRequestOriginator : public ICertProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in BSTR strRequestOriginator) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromLocalRequestOriginator( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RequestOriginator( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyRequestOriginatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyRequestOriginator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyRequestOriginator * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyRequestOriginator * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyRequestOriginator, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [in] */ __RPC__in BSTR strRequestOriginator); + + DECLSPEC_XFGVIRT(ICertPropertyRequestOriginator, InitializeFromLocalRequestOriginator) + HRESULT ( STDMETHODCALLTYPE *InitializeFromLocalRequestOriginator )( + __RPC__in ICertPropertyRequestOriginator * This); + + DECLSPEC_XFGVIRT(ICertPropertyRequestOriginator, get_RequestOriginator) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestOriginator )( + __RPC__in ICertPropertyRequestOriginator * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } ICertPropertyRequestOriginatorVtbl; + + interface ICertPropertyRequestOriginator + { + CONST_VTBL struct ICertPropertyRequestOriginatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyRequestOriginator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyRequestOriginator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyRequestOriginator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyRequestOriginator_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyRequestOriginator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyRequestOriginator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyRequestOriginator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyRequestOriginator_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyRequestOriginator_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyRequestOriginator_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyRequestOriginator_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyRequestOriginator_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyRequestOriginator_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyRequestOriginator_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyRequestOriginator_Initialize(This,strRequestOriginator) \ + ( (This)->lpVtbl -> Initialize(This,strRequestOriginator) ) + +#define ICertPropertyRequestOriginator_InitializeFromLocalRequestOriginator(This) \ + ( (This)->lpVtbl -> InitializeFromLocalRequestOriginator(This) ) + +#define ICertPropertyRequestOriginator_get_RequestOriginator(This,pValue) \ + ( (This)->lpVtbl -> get_RequestOriginator(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyRequestOriginator_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertySHA1Hash_INTERFACE_DEFINED__ +#define __ICertPropertySHA1Hash_INTERFACE_DEFINED__ + +/* interface ICertPropertySHA1Hash */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertySHA1Hash; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab334-217d-11da-b2a4-000e7bbb2b09") + ICertPropertySHA1Hash : public ICertProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strRenewalValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SHA1Hash( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertySHA1HashVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertySHA1Hash * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertySHA1Hash * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertySHA1Hash * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertySHA1Hash * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertySHA1Hash * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertySHA1Hash, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strRenewalValue); + + DECLSPEC_XFGVIRT(ICertPropertySHA1Hash, get_SHA1Hash) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SHA1Hash )( + __RPC__in ICertPropertySHA1Hash * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } ICertPropertySHA1HashVtbl; + + interface ICertPropertySHA1Hash + { + CONST_VTBL struct ICertPropertySHA1HashVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertySHA1Hash_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertySHA1Hash_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertySHA1Hash_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertySHA1Hash_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertySHA1Hash_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertySHA1Hash_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertySHA1Hash_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertySHA1Hash_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertySHA1Hash_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertySHA1Hash_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertySHA1Hash_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertySHA1Hash_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertySHA1Hash_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertySHA1Hash_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertySHA1Hash_Initialize(This,Encoding,strRenewalValue) \ + ( (This)->lpVtbl -> Initialize(This,Encoding,strRenewalValue) ) + +#define ICertPropertySHA1Hash_get_SHA1Hash(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_SHA1Hash(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertySHA1Hash_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertyKeyProvInfo_INTERFACE_DEFINED__ +#define __ICertPropertyKeyProvInfo_INTERFACE_DEFINED__ + +/* interface ICertPropertyKeyProvInfo */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyKeyProvInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab336-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyKeyProvInfo : public ICertProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IX509PrivateKey *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PrivateKey( + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyKeyProvInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyKeyProvInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyKeyProvInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyKeyProvInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyKeyProvInfo, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [in] */ __RPC__in_opt IX509PrivateKey *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyKeyProvInfo, get_PrivateKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrivateKey )( + __RPC__in ICertPropertyKeyProvInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue); + + END_INTERFACE + } ICertPropertyKeyProvInfoVtbl; + + interface ICertPropertyKeyProvInfo + { + CONST_VTBL struct ICertPropertyKeyProvInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyKeyProvInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyKeyProvInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyKeyProvInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyKeyProvInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyKeyProvInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyKeyProvInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyKeyProvInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyKeyProvInfo_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyKeyProvInfo_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyKeyProvInfo_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyKeyProvInfo_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyKeyProvInfo_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyKeyProvInfo_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyKeyProvInfo_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyKeyProvInfo_Initialize(This,pValue) \ + ( (This)->lpVtbl -> Initialize(This,pValue) ) + +#define ICertPropertyKeyProvInfo_get_PrivateKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PrivateKey(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyKeyProvInfo_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertyArchived_INTERFACE_DEFINED__ +#define __ICertPropertyArchived_INTERFACE_DEFINED__ + +/* interface ICertPropertyArchived */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyArchived; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab337-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyArchived : public ICertProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ VARIANT_BOOL ArchivedValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Archived( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyArchivedVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyArchived * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyArchived * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyArchived * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyArchived * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyArchived * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyArchived * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyArchived * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyArchived * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyArchived * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyArchived * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyArchived * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyArchived * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyArchived * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyArchived * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyArchived, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyArchived * This, + /* [in] */ VARIANT_BOOL ArchivedValue); + + DECLSPEC_XFGVIRT(ICertPropertyArchived, get_Archived) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Archived )( + __RPC__in ICertPropertyArchived * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + END_INTERFACE + } ICertPropertyArchivedVtbl; + + interface ICertPropertyArchived + { + CONST_VTBL struct ICertPropertyArchivedVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyArchived_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyArchived_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyArchived_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyArchived_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyArchived_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyArchived_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyArchived_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyArchived_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyArchived_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyArchived_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyArchived_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyArchived_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyArchived_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyArchived_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyArchived_Initialize(This,ArchivedValue) \ + ( (This)->lpVtbl -> Initialize(This,ArchivedValue) ) + +#define ICertPropertyArchived_get_Archived(This,pValue) \ + ( (This)->lpVtbl -> get_Archived(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyArchived_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertyBackedUp_INTERFACE_DEFINED__ +#define __ICertPropertyBackedUp_INTERFACE_DEFINED__ + +/* interface ICertPropertyBackedUp */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyBackedUp; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab338-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyBackedUp : public ICertProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromCurrentTime( + /* [in] */ VARIANT_BOOL BackedUpValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ VARIANT_BOOL BackedUpValue, + /* [in] */ DATE Date) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BackedUpValue( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BackedUpTime( + /* [retval][out] */ __RPC__out DATE *pDate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyBackedUpVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyBackedUp * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyBackedUp * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyBackedUp * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyBackedUp * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyBackedUp * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyBackedUp, InitializeFromCurrentTime) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCurrentTime )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ VARIANT_BOOL BackedUpValue); + + DECLSPEC_XFGVIRT(ICertPropertyBackedUp, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyBackedUp * This, + /* [in] */ VARIANT_BOOL BackedUpValue, + /* [in] */ DATE Date); + + DECLSPEC_XFGVIRT(ICertPropertyBackedUp, get_BackedUpValue) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackedUpValue )( + __RPC__in ICertPropertyBackedUp * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyBackedUp, get_BackedUpTime) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackedUpTime )( + __RPC__in ICertPropertyBackedUp * This, + /* [retval][out] */ __RPC__out DATE *pDate); + + END_INTERFACE + } ICertPropertyBackedUpVtbl; + + interface ICertPropertyBackedUp + { + CONST_VTBL struct ICertPropertyBackedUpVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyBackedUp_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyBackedUp_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyBackedUp_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyBackedUp_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyBackedUp_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyBackedUp_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyBackedUp_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyBackedUp_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyBackedUp_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyBackedUp_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyBackedUp_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyBackedUp_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyBackedUp_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyBackedUp_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyBackedUp_InitializeFromCurrentTime(This,BackedUpValue) \ + ( (This)->lpVtbl -> InitializeFromCurrentTime(This,BackedUpValue) ) + +#define ICertPropertyBackedUp_Initialize(This,BackedUpValue,Date) \ + ( (This)->lpVtbl -> Initialize(This,BackedUpValue,Date) ) + +#define ICertPropertyBackedUp_get_BackedUpValue(This,pValue) \ + ( (This)->lpVtbl -> get_BackedUpValue(This,pValue) ) + +#define ICertPropertyBackedUp_get_BackedUpTime(This,pDate) \ + ( (This)->lpVtbl -> get_BackedUpTime(This,pDate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyBackedUp_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertyEnrollment_INTERFACE_DEFINED__ +#define __ICertPropertyEnrollment_INTERFACE_DEFINED__ + +/* interface ICertPropertyEnrollment */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyEnrollment; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab339-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyEnrollment : public ICertProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in BSTR strCADnsName, + /* [in] */ __RPC__in BSTR strCAName, + /* [defaultvalue][in] */ __RPC__in BSTR strFriendlyName = 0) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RequestId( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CADnsName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CAName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyEnrollmentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyEnrollment * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyEnrollment * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyEnrollment * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyEnrollment * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyEnrollment * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyEnrollment * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyEnrollment * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyEnrollment * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyEnrollment * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyEnrollment * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyEnrollment * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyEnrollment * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyEnrollment * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyEnrollment * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollment, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyEnrollment * This, + /* [in] */ LONG RequestId, + /* [in] */ __RPC__in BSTR strCADnsName, + /* [in] */ __RPC__in BSTR strCAName, + /* [defaultvalue][in] */ __RPC__in BSTR strFriendlyName); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollment, get_RequestId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestId )( + __RPC__in ICertPropertyEnrollment * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollment, get_CADnsName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CADnsName )( + __RPC__in ICertPropertyEnrollment * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollment, get_CAName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAName )( + __RPC__in ICertPropertyEnrollment * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollment, get_FriendlyName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FriendlyName )( + __RPC__in ICertPropertyEnrollment * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } ICertPropertyEnrollmentVtbl; + + interface ICertPropertyEnrollment + { + CONST_VTBL struct ICertPropertyEnrollmentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyEnrollment_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyEnrollment_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyEnrollment_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyEnrollment_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyEnrollment_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyEnrollment_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyEnrollment_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyEnrollment_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyEnrollment_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyEnrollment_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyEnrollment_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyEnrollment_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyEnrollment_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyEnrollment_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyEnrollment_Initialize(This,RequestId,strCADnsName,strCAName,strFriendlyName) \ + ( (This)->lpVtbl -> Initialize(This,RequestId,strCADnsName,strCAName,strFriendlyName) ) + +#define ICertPropertyEnrollment_get_RequestId(This,pValue) \ + ( (This)->lpVtbl -> get_RequestId(This,pValue) ) + +#define ICertPropertyEnrollment_get_CADnsName(This,pValue) \ + ( (This)->lpVtbl -> get_CADnsName(This,pValue) ) + +#define ICertPropertyEnrollment_get_CAName(This,pValue) \ + ( (This)->lpVtbl -> get_CAName(This,pValue) ) + +#define ICertPropertyEnrollment_get_FriendlyName(This,pValue) \ + ( (This)->lpVtbl -> get_FriendlyName(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyEnrollment_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertyRenewal_INTERFACE_DEFINED__ +#define __ICertPropertyRenewal_INTERFACE_DEFINED__ + +/* interface ICertPropertyRenewal */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyRenewal; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab33a-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyRenewal : public ICertProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strRenewalValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromCertificateHash( + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Renewal( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyRenewalVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyRenewal * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyRenewal * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyRenewal * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyRenewal * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyRenewal * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyRenewal, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strRenewalValue); + + DECLSPEC_XFGVIRT(ICertPropertyRenewal, InitializeFromCertificateHash) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificateHash )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyRenewal, get_Renewal) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Renewal )( + __RPC__in ICertPropertyRenewal * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } ICertPropertyRenewalVtbl; + + interface ICertPropertyRenewal + { + CONST_VTBL struct ICertPropertyRenewalVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyRenewal_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyRenewal_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyRenewal_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyRenewal_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyRenewal_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyRenewal_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyRenewal_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyRenewal_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyRenewal_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyRenewal_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyRenewal_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyRenewal_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyRenewal_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyRenewal_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyRenewal_Initialize(This,Encoding,strRenewalValue) \ + ( (This)->lpVtbl -> Initialize(This,Encoding,strRenewalValue) ) + +#define ICertPropertyRenewal_InitializeFromCertificateHash(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificateHash(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyRenewal_get_Renewal(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Renewal(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyRenewal_INTERFACE_DEFINED__ */ + + +#ifndef __ICertPropertyArchivedKeyHash_INTERFACE_DEFINED__ +#define __ICertPropertyArchivedKeyHash_INTERFACE_DEFINED__ + +/* interface ICertPropertyArchivedKeyHash */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyArchivedKeyHash; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab33b-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyArchivedKeyHash : public ICertProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strArchivedKeyHashValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ArchivedKeyHash( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyArchivedKeyHashVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyArchivedKeyHash * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyArchivedKeyHash * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyArchivedKeyHash * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyArchivedKeyHash, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strArchivedKeyHashValue); + + DECLSPEC_XFGVIRT(ICertPropertyArchivedKeyHash, get_ArchivedKeyHash) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchivedKeyHash )( + __RPC__in ICertPropertyArchivedKeyHash * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } ICertPropertyArchivedKeyHashVtbl; + + interface ICertPropertyArchivedKeyHash + { + CONST_VTBL struct ICertPropertyArchivedKeyHashVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyArchivedKeyHash_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyArchivedKeyHash_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyArchivedKeyHash_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyArchivedKeyHash_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyArchivedKeyHash_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyArchivedKeyHash_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyArchivedKeyHash_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyArchivedKeyHash_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyArchivedKeyHash_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyArchivedKeyHash_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyArchivedKeyHash_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyArchivedKeyHash_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyArchivedKeyHash_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyArchivedKeyHash_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyArchivedKeyHash_Initialize(This,Encoding,strArchivedKeyHashValue) \ + ( (This)->lpVtbl -> Initialize(This,Encoding,strArchivedKeyHashValue) ) + +#define ICertPropertyArchivedKeyHash_get_ArchivedKeyHash(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_ArchivedKeyHash(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyArchivedKeyHash_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0061 */ +/* [local] */ + +typedef +enum EnrollmentPolicyServerPropertyFlags + { + DefaultNone = 0, + DefaultPolicyServer = 0x1 + } EnrollmentPolicyServerPropertyFlags; + +typedef +enum PolicyServerUrlFlags + { + PsfNone = 0, + PsfLocationGroupPolicy = 1, + PsfLocationRegistry = 2, + PsfUseClientId = 4, + PsfAutoEnrollmentEnabled = 16, + PsfAllowUnTrustedCA = 32 + } PolicyServerUrlFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0061_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0061_v0_0_s_ifspec; + +#ifndef __ICertPropertyEnrollmentPolicyServer_INTERFACE_DEFINED__ +#define __ICertPropertyEnrollmentPolicyServer_INTERFACE_DEFINED__ + +/* interface ICertPropertyEnrollmentPolicyServer */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertPropertyEnrollmentPolicyServer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab34a-217d-11da-b2a4-000e7bbb2b09") + ICertPropertyEnrollmentPolicyServer : public ICertProperty + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ EnrollmentPolicyServerPropertyFlags PropertyFlags, + /* [in] */ X509EnrollmentAuthFlags AuthFlags, + /* [in] */ X509EnrollmentAuthFlags EnrollmentServerAuthFlags, + /* [in] */ PolicyServerUrlFlags UrlFlags, + /* [in] */ __RPC__in BSTR strRequestId, + /* [in] */ __RPC__in BSTR strUrl, + /* [in] */ __RPC__in BSTR strId, + /* [in] */ __RPC__in BSTR strEnrollmentServerUrl) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPolicyServerUrl( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPolicyServerId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEnrollmentServerUrl( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRequestIdString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropertyFlags( + /* [retval][out] */ __RPC__out EnrollmentPolicyServerPropertyFlags *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUrlFlags( + /* [retval][out] */ __RPC__out PolicyServerUrlFlags *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAuthentication( + /* [retval][out] */ __RPC__out X509EnrollmentAuthFlags *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEnrollmentServerAuthentication( + /* [retval][out] */ __RPC__out X509EnrollmentAuthFlags *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertPropertyEnrollmentPolicyServerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertPropertyEnrollmentPolicyServer * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strEncodedData); + + DECLSPEC_XFGVIRT(ICertProperty, get_PropertyId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out CERTENROLL_PROPERTYID *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, put_PropertyId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [in] */ CERTENROLL_PROPERTYID Value); + + DECLSPEC_XFGVIRT(ICertProperty, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertProperty, RemoveFromCertificate) + HRESULT ( STDMETHODCALLTYPE *RemoveFromCertificate )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertProperty, SetValueOnCertificate) + HRESULT ( STDMETHODCALLTYPE *SetValueOnCertificate )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollmentPolicyServer, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [in] */ EnrollmentPolicyServerPropertyFlags PropertyFlags, + /* [in] */ X509EnrollmentAuthFlags AuthFlags, + /* [in] */ X509EnrollmentAuthFlags EnrollmentServerAuthFlags, + /* [in] */ PolicyServerUrlFlags UrlFlags, + /* [in] */ __RPC__in BSTR strRequestId, + /* [in] */ __RPC__in BSTR strUrl, + /* [in] */ __RPC__in BSTR strId, + /* [in] */ __RPC__in BSTR strEnrollmentServerUrl); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollmentPolicyServer, GetPolicyServerUrl) + HRESULT ( STDMETHODCALLTYPE *GetPolicyServerUrl )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollmentPolicyServer, GetPolicyServerId) + HRESULT ( STDMETHODCALLTYPE *GetPolicyServerId )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollmentPolicyServer, GetEnrollmentServerUrl) + HRESULT ( STDMETHODCALLTYPE *GetEnrollmentServerUrl )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollmentPolicyServer, GetRequestIdString) + HRESULT ( STDMETHODCALLTYPE *GetRequestIdString )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollmentPolicyServer, GetPropertyFlags) + HRESULT ( STDMETHODCALLTYPE *GetPropertyFlags )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out EnrollmentPolicyServerPropertyFlags *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollmentPolicyServer, GetUrlFlags) + HRESULT ( STDMETHODCALLTYPE *GetUrlFlags )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out PolicyServerUrlFlags *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollmentPolicyServer, GetAuthentication) + HRESULT ( STDMETHODCALLTYPE *GetAuthentication )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out X509EnrollmentAuthFlags *pValue); + + DECLSPEC_XFGVIRT(ICertPropertyEnrollmentPolicyServer, GetEnrollmentServerAuthentication) + HRESULT ( STDMETHODCALLTYPE *GetEnrollmentServerAuthentication )( + __RPC__in ICertPropertyEnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out X509EnrollmentAuthFlags *pValue); + + END_INTERFACE + } ICertPropertyEnrollmentPolicyServerVtbl; + + interface ICertPropertyEnrollmentPolicyServer + { + CONST_VTBL struct ICertPropertyEnrollmentPolicyServerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertPropertyEnrollmentPolicyServer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertPropertyEnrollmentPolicyServer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertPropertyEnrollmentPolicyServer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertPropertyEnrollmentPolicyServer_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertPropertyEnrollmentPolicyServer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertPropertyEnrollmentPolicyServer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertPropertyEnrollmentPolicyServer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertPropertyEnrollmentPolicyServer_InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyEnrollmentPolicyServer_InitializeDecode(This,Encoding,strEncodedData) \ + ( (This)->lpVtbl -> InitializeDecode(This,Encoding,strEncodedData) ) + +#define ICertPropertyEnrollmentPolicyServer_get_PropertyId(This,pValue) \ + ( (This)->lpVtbl -> get_PropertyId(This,pValue) ) + +#define ICertPropertyEnrollmentPolicyServer_put_PropertyId(This,Value) \ + ( (This)->lpVtbl -> put_PropertyId(This,Value) ) + +#define ICertPropertyEnrollmentPolicyServer_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define ICertPropertyEnrollmentPolicyServer_RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> RemoveFromCertificate(This,MachineContext,Encoding,strCertificate) ) + +#define ICertPropertyEnrollmentPolicyServer_SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) \ + ( (This)->lpVtbl -> SetValueOnCertificate(This,MachineContext,Encoding,strCertificate) ) + + +#define ICertPropertyEnrollmentPolicyServer_Initialize(This,PropertyFlags,AuthFlags,EnrollmentServerAuthFlags,UrlFlags,strRequestId,strUrl,strId,strEnrollmentServerUrl) \ + ( (This)->lpVtbl -> Initialize(This,PropertyFlags,AuthFlags,EnrollmentServerAuthFlags,UrlFlags,strRequestId,strUrl,strId,strEnrollmentServerUrl) ) + +#define ICertPropertyEnrollmentPolicyServer_GetPolicyServerUrl(This,pValue) \ + ( (This)->lpVtbl -> GetPolicyServerUrl(This,pValue) ) + +#define ICertPropertyEnrollmentPolicyServer_GetPolicyServerId(This,pValue) \ + ( (This)->lpVtbl -> GetPolicyServerId(This,pValue) ) + +#define ICertPropertyEnrollmentPolicyServer_GetEnrollmentServerUrl(This,pValue) \ + ( (This)->lpVtbl -> GetEnrollmentServerUrl(This,pValue) ) + +#define ICertPropertyEnrollmentPolicyServer_GetRequestIdString(This,pValue) \ + ( (This)->lpVtbl -> GetRequestIdString(This,pValue) ) + +#define ICertPropertyEnrollmentPolicyServer_GetPropertyFlags(This,pValue) \ + ( (This)->lpVtbl -> GetPropertyFlags(This,pValue) ) + +#define ICertPropertyEnrollmentPolicyServer_GetUrlFlags(This,pValue) \ + ( (This)->lpVtbl -> GetUrlFlags(This,pValue) ) + +#define ICertPropertyEnrollmentPolicyServer_GetAuthentication(This,pValue) \ + ( (This)->lpVtbl -> GetAuthentication(This,pValue) ) + +#define ICertPropertyEnrollmentPolicyServer_GetEnrollmentServerAuthentication(This,pValue) \ + ( (This)->lpVtbl -> GetEnrollmentServerAuthentication(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertPropertyEnrollmentPolicyServer_INTERFACE_DEFINED__ */ + + +#ifndef __IX509SignatureInformation_INTERFACE_DEFINED__ +#define __IX509SignatureInformation_INTERFACE_DEFINED__ + +/* interface IX509SignatureInformation */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509SignatureInformation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab33c-217d-11da-b2a4-000e7bbb2b09") + IX509SignatureInformation : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_HashAlgorithm( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_HashAlgorithm( + /* [in] */ __RPC__in_opt IObjectId *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PublicKeyAlgorithm( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_PublicKeyAlgorithm( + /* [in] */ __RPC__in_opt IObjectId *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Parameters( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Parameters( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AlternateSignatureAlgorithm( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AlternateSignatureAlgorithm( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AlternateSignatureAlgorithmSet( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NullSigned( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_NullSigned( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSignatureAlgorithm( + /* [in] */ VARIANT_BOOL Pkcs7Signature, + /* [in] */ VARIANT_BOOL SignatureKey, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDefaultValues( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509SignatureInformationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509SignatureInformation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509SignatureInformation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509SignatureInformation * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509SignatureInformation * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509SignatureInformation * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509SignatureInformation * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509SignatureInformation * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, get_HashAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509SignatureInformation * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, put_HashAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509SignatureInformation * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, get_PublicKeyAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublicKeyAlgorithm )( + __RPC__in IX509SignatureInformation * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, put_PublicKeyAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PublicKeyAlgorithm )( + __RPC__in IX509SignatureInformation * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, get_Parameters) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in IX509SignatureInformation * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, put_Parameters) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Parameters )( + __RPC__in IX509SignatureInformation * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509SignatureInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509SignatureInformation * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, get_AlternateSignatureAlgorithmSet) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithmSet )( + __RPC__in IX509SignatureInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, get_NullSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NullSigned )( + __RPC__in IX509SignatureInformation * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, put_NullSigned) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_NullSigned )( + __RPC__in IX509SignatureInformation * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, GetSignatureAlgorithm) + HRESULT ( STDMETHODCALLTYPE *GetSignatureAlgorithm )( + __RPC__in IX509SignatureInformation * This, + /* [in] */ VARIANT_BOOL Pkcs7Signature, + /* [in] */ VARIANT_BOOL SignatureKey, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509SignatureInformation, SetDefaultValues) + HRESULT ( STDMETHODCALLTYPE *SetDefaultValues )( + __RPC__in IX509SignatureInformation * This); + + END_INTERFACE + } IX509SignatureInformationVtbl; + + interface IX509SignatureInformation + { + CONST_VTBL struct IX509SignatureInformationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509SignatureInformation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509SignatureInformation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509SignatureInformation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509SignatureInformation_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509SignatureInformation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509SignatureInformation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509SignatureInformation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509SignatureInformation_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509SignatureInformation_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509SignatureInformation_get_PublicKeyAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_PublicKeyAlgorithm(This,ppValue) ) + +#define IX509SignatureInformation_put_PublicKeyAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_PublicKeyAlgorithm(This,pValue) ) + +#define IX509SignatureInformation_get_Parameters(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Parameters(This,Encoding,pValue) ) + +#define IX509SignatureInformation_put_Parameters(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_Parameters(This,Encoding,Value) ) + +#define IX509SignatureInformation_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509SignatureInformation_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509SignatureInformation_get_AlternateSignatureAlgorithmSet(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithmSet(This,pValue) ) + +#define IX509SignatureInformation_get_NullSigned(This,pValue) \ + ( (This)->lpVtbl -> get_NullSigned(This,pValue) ) + +#define IX509SignatureInformation_put_NullSigned(This,Value) \ + ( (This)->lpVtbl -> put_NullSigned(This,Value) ) + +#define IX509SignatureInformation_GetSignatureAlgorithm(This,Pkcs7Signature,SignatureKey,ppValue) \ + ( (This)->lpVtbl -> GetSignatureAlgorithm(This,Pkcs7Signature,SignatureKey,ppValue) ) + +#define IX509SignatureInformation_SetDefaultValues(This) \ + ( (This)->lpVtbl -> SetDefaultValues(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509SignatureInformation_INTERFACE_DEFINED__ */ + + +#ifndef __ISignerCertificate_INTERFACE_DEFINED__ +#define __ISignerCertificate_INTERFACE_DEFINED__ + +/* interface ISignerCertificate */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ISignerCertificate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab33d-217d-11da-b2a4-000e7bbb2b09") + ISignerCertificate : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ X509PrivateKeyVerify VerifyType, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Certificate( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PrivateKey( + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Silent( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Silent( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ParentWindow( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ParentWindow( + /* [in] */ LONG Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UIContextMessage( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_UIContextMessage( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Pin( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SignatureInformation( + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISignerCertificateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISignerCertificate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISignerCertificate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISignerCertificate * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISignerCertificate * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISignerCertificate * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISignerCertificate * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISignerCertificate * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISignerCertificate, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ISignerCertificate * This, + /* [in] */ VARIANT_BOOL MachineContext, + /* [in] */ X509PrivateKeyVerify VerifyType, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strCertificate); + + DECLSPEC_XFGVIRT(ISignerCertificate, get_Certificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Certificate )( + __RPC__in ISignerCertificate * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ISignerCertificate, get_PrivateKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrivateKey )( + __RPC__in ISignerCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue); + + DECLSPEC_XFGVIRT(ISignerCertificate, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in ISignerCertificate * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(ISignerCertificate, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in ISignerCertificate * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(ISignerCertificate, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in ISignerCertificate * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(ISignerCertificate, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in ISignerCertificate * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(ISignerCertificate, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in ISignerCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(ISignerCertificate, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in ISignerCertificate * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(ISignerCertificate, put_Pin) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Pin )( + __RPC__in ISignerCertificate * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(ISignerCertificate, get_SignatureInformation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureInformation )( + __RPC__in ISignerCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue); + + END_INTERFACE + } ISignerCertificateVtbl; + + interface ISignerCertificate + { + CONST_VTBL struct ISignerCertificateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISignerCertificate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISignerCertificate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISignerCertificate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISignerCertificate_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISignerCertificate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISignerCertificate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISignerCertificate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISignerCertificate_Initialize(This,MachineContext,VerifyType,Encoding,strCertificate) \ + ( (This)->lpVtbl -> Initialize(This,MachineContext,VerifyType,Encoding,strCertificate) ) + +#define ISignerCertificate_get_Certificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Certificate(This,Encoding,pValue) ) + +#define ISignerCertificate_get_PrivateKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PrivateKey(This,ppValue) ) + +#define ISignerCertificate_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define ISignerCertificate_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define ISignerCertificate_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define ISignerCertificate_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define ISignerCertificate_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define ISignerCertificate_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define ISignerCertificate_put_Pin(This,Value) \ + ( (This)->lpVtbl -> put_Pin(This,Value) ) + +#define ISignerCertificate_get_SignatureInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_SignatureInformation(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISignerCertificate_INTERFACE_DEFINED__ */ + + +#ifndef __ISignerCertificates_INTERFACE_DEFINED__ +#define __ISignerCertificates_INTERFACE_DEFINED__ + +/* interface ISignerCertificates */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ISignerCertificates; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab33e-217d-11da-b2a4-000e7bbb2b09") + ISignerCertificates : public IDispatch + { + public: + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **pVal) = 0; + + virtual /* [helpstring][id][propget][custom] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id][custom] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt ISignerCertificate *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Find( + /* [in] */ __RPC__in_opt ISignerCertificate *pSignerCert, + /* [retval][out] */ __RPC__out LONG *piSignerCert) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISignerCertificatesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISignerCertificates * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISignerCertificates * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISignerCertificates * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ISignerCertificates * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ISignerCertificates * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ISignerCertificates * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ISignerCertificates * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ISignerCertificates, get_ItemByIndex) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in ISignerCertificates * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **pVal); + + DECLSPEC_XFGVIRT(ISignerCertificates, get_Count) + /* [helpstring][id][propget][custom] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ISignerCertificates * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ISignerCertificates, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ISignerCertificates * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(ISignerCertificates, Add) + /* [helpstring][id][custom] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ISignerCertificates * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pVal); + + DECLSPEC_XFGVIRT(ISignerCertificates, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ISignerCertificates * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(ISignerCertificates, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in ISignerCertificates * This); + + DECLSPEC_XFGVIRT(ISignerCertificates, Find) + HRESULT ( STDMETHODCALLTYPE *Find )( + __RPC__in ISignerCertificates * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pSignerCert, + /* [retval][out] */ __RPC__out LONG *piSignerCert); + + END_INTERFACE + } ISignerCertificatesVtbl; + + interface ISignerCertificates + { + CONST_VTBL struct ISignerCertificatesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISignerCertificates_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISignerCertificates_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISignerCertificates_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISignerCertificates_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ISignerCertificates_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ISignerCertificates_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ISignerCertificates_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ISignerCertificates_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define ISignerCertificates_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ISignerCertificates_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define ISignerCertificates_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define ISignerCertificates_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define ISignerCertificates_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define ISignerCertificates_Find(This,pSignerCert,piSignerCert) \ + ( (This)->lpVtbl -> Find(This,pSignerCert,piSignerCert) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISignerCertificates_INTERFACE_DEFINED__ */ + + +#ifndef __IX509NameValuePair_INTERFACE_DEFINED__ +#define __IX509NameValuePair_INTERFACE_DEFINED__ + +/* interface IX509NameValuePair */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509NameValuePair; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab33f-217d-11da-b2a4-000e7bbb2b09") + IX509NameValuePair : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in BSTR strName, + /* [in] */ __RPC__in BSTR strValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509NameValuePairVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509NameValuePair * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509NameValuePair * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509NameValuePair * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509NameValuePair * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509NameValuePair * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509NameValuePair * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509NameValuePair * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509NameValuePair, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509NameValuePair * This, + /* [in] */ __RPC__in BSTR strName, + /* [in] */ __RPC__in BSTR strValue); + + DECLSPEC_XFGVIRT(IX509NameValuePair, get_Value) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IX509NameValuePair * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509NameValuePair, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IX509NameValuePair * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509NameValuePairVtbl; + + interface IX509NameValuePair + { + CONST_VTBL struct IX509NameValuePairVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509NameValuePair_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509NameValuePair_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509NameValuePair_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509NameValuePair_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509NameValuePair_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509NameValuePair_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509NameValuePair_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509NameValuePair_Initialize(This,strName,strValue) \ + ( (This)->lpVtbl -> Initialize(This,strName,strValue) ) + +#define IX509NameValuePair_get_Value(This,pValue) \ + ( (This)->lpVtbl -> get_Value(This,pValue) ) + +#define IX509NameValuePair_get_Name(This,pValue) \ + ( (This)->lpVtbl -> get_Name(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509NameValuePair_INTERFACE_DEFINED__ */ + + +#ifndef __IX509NameValuePairs_INTERFACE_DEFINED__ +#define __IX509NameValuePairs_INTERFACE_DEFINED__ + +/* interface IX509NameValuePairs */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509NameValuePairs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab340-217d-11da-b2a4-000e7bbb2b09") + IX509NameValuePairs : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePair **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IX509NameValuePair *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509NameValuePairsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509NameValuePairs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509NameValuePairs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509NameValuePairs * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509NameValuePairs * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509NameValuePairs * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509NameValuePairs * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509NameValuePairs * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509NameValuePairs, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in IX509NameValuePairs * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePair **pVal); + + DECLSPEC_XFGVIRT(IX509NameValuePairs, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IX509NameValuePairs * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IX509NameValuePairs, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IX509NameValuePairs * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(IX509NameValuePairs, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IX509NameValuePairs * This, + /* [in] */ __RPC__in_opt IX509NameValuePair *pVal); + + DECLSPEC_XFGVIRT(IX509NameValuePairs, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IX509NameValuePairs * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(IX509NameValuePairs, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IX509NameValuePairs * This); + + END_INTERFACE + } IX509NameValuePairsVtbl; + + interface IX509NameValuePairs + { + CONST_VTBL struct IX509NameValuePairsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509NameValuePairs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509NameValuePairs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509NameValuePairs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509NameValuePairs_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509NameValuePairs_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509NameValuePairs_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509NameValuePairs_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509NameValuePairs_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define IX509NameValuePairs_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IX509NameValuePairs_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define IX509NameValuePairs_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define IX509NameValuePairs_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define IX509NameValuePairs_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509NameValuePairs_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0067 */ +/* [local] */ + +typedef +enum EnrollmentTemplateProperty + { + TemplatePropCommonName = 1, + TemplatePropFriendlyName = 2, + TemplatePropEKUs = 3, + TemplatePropCryptoProviders = 4, + TemplatePropMajorRevision = 5, + TemplatePropDescription = 6, + TemplatePropKeySpec = 7, + TemplatePropSchemaVersion = 8, + TemplatePropMinorRevision = 9, + TemplatePropRASignatureCount = 10, + TemplatePropMinimumKeySize = 11, + TemplatePropOID = 12, + TemplatePropSupersede = 13, + TemplatePropRACertificatePolicies = 14, + TemplatePropRAEKUs = 15, + TemplatePropCertificatePolicies = 16, + TemplatePropV1ApplicationPolicy = 17, + TemplatePropAsymmetricAlgorithm = 18, + TemplatePropKeySecurityDescriptor = 19, + TemplatePropSymmetricAlgorithm = 20, + TemplatePropSymmetricKeyLength = 21, + TemplatePropHashAlgorithm = 22, + TemplatePropKeyUsage = 23, + TemplatePropEnrollmentFlags = 24, + TemplatePropSubjectNameFlags = 25, + TemplatePropPrivateKeyFlags = 26, + TemplatePropGeneralFlags = 27, + TemplatePropSecurityDescriptor = 28, + TemplatePropExtensions = 29, + TemplatePropValidityPeriod = 30, + TemplatePropRenewalPeriod = 31 + } EnrollmentTemplateProperty; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0067_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0067_v0_0_s_ifspec; + +#ifndef __IX509CertificateTemplate_INTERFACE_DEFINED__ +#define __IX509CertificateTemplate_INTERFACE_DEFINED__ + +/* interface IX509CertificateTemplate */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateTemplate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("54244A13-555A-4e22-896D-1B0E52F76406") + IX509CertificateTemplate : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Property( + /* [in] */ enum EnrollmentTemplateProperty property, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateTemplateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateTemplate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateTemplate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateTemplate * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateTemplate * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateTemplate * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateTemplate * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateTemplate * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateTemplate, get_Property) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Property )( + __RPC__in IX509CertificateTemplate * This, + /* [in] */ enum EnrollmentTemplateProperty property, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + END_INTERFACE + } IX509CertificateTemplateVtbl; + + interface IX509CertificateTemplate + { + CONST_VTBL struct IX509CertificateTemplateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateTemplate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateTemplate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateTemplate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateTemplate_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateTemplate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateTemplate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateTemplate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateTemplate_get_Property(This,property,pValue) \ + ( (This)->lpVtbl -> get_Property(This,property,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateTemplate_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateTemplates_INTERFACE_DEFINED__ +#define __IX509CertificateTemplates_INTERFACE_DEFINED__ + +/* interface IX509CertificateTemplates */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateTemplates; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("13b79003-2181-11da-b2a4-000e7bbb2b09") + IX509CertificateTemplates : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ItemByName( + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ItemByOid( + /* [in] */ __RPC__in_opt IObjectId *pOid, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateTemplatesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateTemplates * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateTemplates * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateTemplates * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateTemplates * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateTemplates * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateTemplates * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateTemplates * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateTemplates, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in IX509CertificateTemplates * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **pVal); + + DECLSPEC_XFGVIRT(IX509CertificateTemplates, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IX509CertificateTemplates * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IX509CertificateTemplates, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IX509CertificateTemplates * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(IX509CertificateTemplates, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IX509CertificateTemplates * This, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pVal); + + DECLSPEC_XFGVIRT(IX509CertificateTemplates, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IX509CertificateTemplates * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(IX509CertificateTemplates, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IX509CertificateTemplates * This); + + DECLSPEC_XFGVIRT(IX509CertificateTemplates, get_ItemByName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByName )( + __RPC__in IX509CertificateTemplates * This, + /* [in] */ __RPC__in BSTR bstrName, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateTemplates, get_ItemByOid) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByOid )( + __RPC__in IX509CertificateTemplates * This, + /* [in] */ __RPC__in_opt IObjectId *pOid, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppValue); + + END_INTERFACE + } IX509CertificateTemplatesVtbl; + + interface IX509CertificateTemplates + { + CONST_VTBL struct IX509CertificateTemplatesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateTemplates_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateTemplates_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateTemplates_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateTemplates_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateTemplates_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateTemplates_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateTemplates_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateTemplates_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define IX509CertificateTemplates_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IX509CertificateTemplates_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define IX509CertificateTemplates_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define IX509CertificateTemplates_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define IX509CertificateTemplates_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IX509CertificateTemplates_get_ItemByName(This,bstrName,ppValue) \ + ( (This)->lpVtbl -> get_ItemByName(This,bstrName,ppValue) ) + +#define IX509CertificateTemplates_get_ItemByOid(This,pOid,ppValue) \ + ( (This)->lpVtbl -> get_ItemByOid(This,pOid,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateTemplates_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0069 */ +/* [local] */ + +typedef +enum CommitTemplateFlags + { + CommitFlagSaveTemplateGenerateOID = 1, + CommitFlagSaveTemplateUseCurrentOID = 2, + CommitFlagSaveTemplateOverwrite = 3, + CommitFlagDeleteTemplate = 4 + } CommitTemplateFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0069_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0069_v0_0_s_ifspec; + +#ifndef __IX509CertificateTemplateWritable_INTERFACE_DEFINED__ +#define __IX509CertificateTemplateWritable_INTERFACE_DEFINED__ + +/* interface IX509CertificateTemplateWritable */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateTemplateWritable; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F49466A7-395A-4e9e-B6E7-32B331600DC0") + IX509CertificateTemplateWritable : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Commit( + /* [in] */ CommitTemplateFlags commitFlags, + /* [in] */ __RPC__in BSTR strServerContext) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Property( + /* [in] */ enum EnrollmentTemplateProperty property, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Property( + /* [in] */ enum EnrollmentTemplateProperty property, + /* [in] */ VARIANT value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Template( + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateTemplateWritableVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateTemplateWritable * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateTemplateWritable * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateTemplateWritable * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateTemplateWritable * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateTemplateWritable * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateTemplateWritable * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateTemplateWritable * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateTemplateWritable, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateTemplateWritable * This, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateTemplateWritable, Commit) + HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IX509CertificateTemplateWritable * This, + /* [in] */ CommitTemplateFlags commitFlags, + /* [in] */ __RPC__in BSTR strServerContext); + + DECLSPEC_XFGVIRT(IX509CertificateTemplateWritable, get_Property) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Property )( + __RPC__in IX509CertificateTemplateWritable * This, + /* [in] */ enum EnrollmentTemplateProperty property, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateTemplateWritable, put_Property) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Property )( + __RPC__in IX509CertificateTemplateWritable * This, + /* [in] */ enum EnrollmentTemplateProperty property, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(IX509CertificateTemplateWritable, get_Template) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Template )( + __RPC__in IX509CertificateTemplateWritable * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppValue); + + END_INTERFACE + } IX509CertificateTemplateWritableVtbl; + + interface IX509CertificateTemplateWritable + { + CONST_VTBL struct IX509CertificateTemplateWritableVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateTemplateWritable_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateTemplateWritable_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateTemplateWritable_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateTemplateWritable_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateTemplateWritable_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateTemplateWritable_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateTemplateWritable_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateTemplateWritable_Initialize(This,pValue) \ + ( (This)->lpVtbl -> Initialize(This,pValue) ) + +#define IX509CertificateTemplateWritable_Commit(This,commitFlags,strServerContext) \ + ( (This)->lpVtbl -> Commit(This,commitFlags,strServerContext) ) + +#define IX509CertificateTemplateWritable_get_Property(This,property,pValue) \ + ( (This)->lpVtbl -> get_Property(This,property,pValue) ) + +#define IX509CertificateTemplateWritable_put_Property(This,property,value) \ + ( (This)->lpVtbl -> put_Property(This,property,value) ) + +#define IX509CertificateTemplateWritable_get_Template(This,ppValue) \ + ( (This)->lpVtbl -> get_Template(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateTemplateWritable_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0070 */ +/* [local] */ + +typedef +enum EnrollmentCAProperty + { + CAPropCommonName = 1, + CAPropDistinguishedName = 2, + CAPropSanitizedName = 3, + CAPropSanitizedShortName = 4, + CAPropDNSName = 5, + CAPropCertificateTypes = 6, + CAPropCertificate = 7, + CAPropDescription = 8, + CAPropWebServers = 9, + CAPropSiteName = 10, + CAPropSecurity = 11, + CAPropRenewalOnly = 12 + } EnrollmentCAProperty; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0070_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0070_v0_0_s_ifspec; + +#ifndef __ICertificationAuthority_INTERFACE_DEFINED__ +#define __ICertificationAuthority_INTERFACE_DEFINED__ + +/* interface ICertificationAuthority */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertificationAuthority; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("835D1F61-1E95-4bc8-B4D3-976C42B968F7") + ICertificationAuthority : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Property( + /* [in] */ enum EnrollmentCAProperty property, + /* [retval][out] */ __RPC__out VARIANT *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertificationAuthorityVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertificationAuthority * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertificationAuthority * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertificationAuthority * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertificationAuthority * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertificationAuthority * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertificationAuthority * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertificationAuthority * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertificationAuthority, get_Property) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Property )( + __RPC__in ICertificationAuthority * This, + /* [in] */ enum EnrollmentCAProperty property, + /* [retval][out] */ __RPC__out VARIANT *pValue); + + END_INTERFACE + } ICertificationAuthorityVtbl; + + interface ICertificationAuthority + { + CONST_VTBL struct ICertificationAuthorityVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertificationAuthority_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertificationAuthority_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertificationAuthority_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertificationAuthority_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertificationAuthority_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertificationAuthority_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertificationAuthority_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertificationAuthority_get_Property(This,property,pValue) \ + ( (This)->lpVtbl -> get_Property(This,property,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertificationAuthority_INTERFACE_DEFINED__ */ + + +#ifndef __ICertificationAuthorities_INTERFACE_DEFINED__ +#define __ICertificationAuthorities_INTERFACE_DEFINED__ + +/* interface ICertificationAuthorities */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertificationAuthorities; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("13b79005-2181-11da-b2a4-000e7bbb2b09") + ICertificationAuthorities : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICertificationAuthority **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt ICertificationAuthority *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ComputeSiteCosts( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ItemByName( + /* [in] */ __RPC__in BSTR strName, + /* [retval][out] */ __RPC__deref_out_opt ICertificationAuthority **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertificationAuthoritiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertificationAuthorities * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertificationAuthorities * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertificationAuthorities * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertificationAuthorities * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertificationAuthorities * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertificationAuthorities * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertificationAuthorities * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertificationAuthorities, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in ICertificationAuthorities * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt ICertificationAuthority **pVal); + + DECLSPEC_XFGVIRT(ICertificationAuthorities, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in ICertificationAuthorities * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(ICertificationAuthorities, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in ICertificationAuthorities * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(ICertificationAuthorities, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in ICertificationAuthorities * This, + /* [in] */ __RPC__in_opt ICertificationAuthority *pVal); + + DECLSPEC_XFGVIRT(ICertificationAuthorities, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in ICertificationAuthorities * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(ICertificationAuthorities, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in ICertificationAuthorities * This); + + DECLSPEC_XFGVIRT(ICertificationAuthorities, ComputeSiteCosts) + HRESULT ( STDMETHODCALLTYPE *ComputeSiteCosts )( + __RPC__in ICertificationAuthorities * This); + + DECLSPEC_XFGVIRT(ICertificationAuthorities, get_ItemByName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByName )( + __RPC__in ICertificationAuthorities * This, + /* [in] */ __RPC__in BSTR strName, + /* [retval][out] */ __RPC__deref_out_opt ICertificationAuthority **ppValue); + + END_INTERFACE + } ICertificationAuthoritiesVtbl; + + interface ICertificationAuthorities + { + CONST_VTBL struct ICertificationAuthoritiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertificationAuthorities_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertificationAuthorities_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertificationAuthorities_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertificationAuthorities_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertificationAuthorities_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertificationAuthorities_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertificationAuthorities_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertificationAuthorities_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define ICertificationAuthorities_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define ICertificationAuthorities_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define ICertificationAuthorities_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define ICertificationAuthorities_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define ICertificationAuthorities_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define ICertificationAuthorities_ComputeSiteCosts(This) \ + ( (This)->lpVtbl -> ComputeSiteCosts(This) ) + +#define ICertificationAuthorities_get_ItemByName(This,strName,ppValue) \ + ( (This)->lpVtbl -> get_ItemByName(This,strName,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertificationAuthorities_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0072 */ +/* [local] */ + +typedef +enum X509EnrollmentPolicyLoadOption + { + LoadOptionDefault = 0, + LoadOptionCacheOnly = 1, + LoadOptionReload = 2, + LoadOptionRegisterForADChanges = 4 + } X509EnrollmentPolicyLoadOption; + + +enum EnrollmentPolicyFlags + { + DisableGroupPolicyList = 0x2, + DisableUserServerList = 0x4 + } ; +typedef +enum PolicyServerUrlPropertyID + { + PsPolicyID = 0, + PsFriendlyName = 1 + } PolicyServerUrlPropertyID; + +typedef +enum X509EnrollmentPolicyExportFlags + { + ExportTemplates = 0x1, + ExportOIDs = 0x2, + ExportCAs = 0x4 + } X509EnrollmentPolicyExportFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0072_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0072_v0_0_s_ifspec; + +#ifndef __IX509EnrollmentPolicyServer_INTERFACE_DEFINED__ +#define __IX509EnrollmentPolicyServer_INTERFACE_DEFINED__ + +/* interface IX509EnrollmentPolicyServer */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509EnrollmentPolicyServer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("13b79026-2181-11da-b2a4-000e7bbb2b09") + IX509EnrollmentPolicyServer : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in BSTR bstrPolicyServerUrl, + /* [in] */ __RPC__in BSTR bstrPolicyServerId, + /* [in] */ X509EnrollmentAuthFlags authFlags, + /* [in] */ VARIANT_BOOL fIsUnTrusted, + /* [in] */ X509CertificateEnrollmentContext context) = 0; + + virtual HRESULT STDMETHODCALLTYPE LoadPolicy( + /* [in] */ X509EnrollmentPolicyLoadOption option) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTemplates( + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplates **pTemplates) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAsForTemplate( + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate, + /* [retval][out] */ __RPC__deref_out_opt ICertificationAuthorities **ppCAs) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAs( + /* [retval][out] */ __RPC__deref_out_opt ICertificationAuthorities **ppCAs) = 0; + + virtual HRESULT STDMETHODCALLTYPE Validate( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCustomOids( + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppObjectIds) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextUpdateTime( + /* [retval][out] */ __RPC__out DATE *pDate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLastUpdateTime( + /* [retval][out] */ __RPC__out DATE *pDate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPolicyServerUrl( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPolicyServerId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIsDefaultCEP( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUseClientId( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAllowUnTrustedCA( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCachePath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCacheDir( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAuthFlags( + /* [retval][out] */ __RPC__out X509EnrollmentAuthFlags *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCredential( + /* [in] */ LONG hWndParent, + /* [in] */ X509EnrollmentAuthFlags flag, + /* [in] */ __RPC__in BSTR strCredential, + /* [in] */ __RPC__in BSTR strPassword) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryChanges( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeImport( + /* [in] */ VARIANT val) = 0; + + virtual HRESULT STDMETHODCALLTYPE Export( + /* [in] */ X509EnrollmentPolicyExportFlags exportFlags, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Cost( + /* [retval][out] */ __RPC__out DWORD *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Cost( + /* [in] */ DWORD value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509EnrollmentPolicyServerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509EnrollmentPolicyServer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509EnrollmentPolicyServer * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509EnrollmentPolicyServer * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [in] */ __RPC__in BSTR bstrPolicyServerUrl, + /* [in] */ __RPC__in BSTR bstrPolicyServerId, + /* [in] */ X509EnrollmentAuthFlags authFlags, + /* [in] */ VARIANT_BOOL fIsUnTrusted, + /* [in] */ X509CertificateEnrollmentContext context); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, LoadPolicy) + HRESULT ( STDMETHODCALLTYPE *LoadPolicy )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [in] */ X509EnrollmentPolicyLoadOption option); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetTemplates) + HRESULT ( STDMETHODCALLTYPE *GetTemplates )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplates **pTemplates); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetCAsForTemplate) + HRESULT ( STDMETHODCALLTYPE *GetCAsForTemplate )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate, + /* [retval][out] */ __RPC__deref_out_opt ICertificationAuthorities **ppCAs); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetCAs) + HRESULT ( STDMETHODCALLTYPE *GetCAs )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt ICertificationAuthorities **ppCAs); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, Validate) + HRESULT ( STDMETHODCALLTYPE *Validate )( + __RPC__in IX509EnrollmentPolicyServer * This); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetCustomOids) + HRESULT ( STDMETHODCALLTYPE *GetCustomOids )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppObjectIds); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetNextUpdateTime) + HRESULT ( STDMETHODCALLTYPE *GetNextUpdateTime )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetLastUpdateTime) + HRESULT ( STDMETHODCALLTYPE *GetLastUpdateTime )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetPolicyServerUrl) + HRESULT ( STDMETHODCALLTYPE *GetPolicyServerUrl )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetPolicyServerId) + HRESULT ( STDMETHODCALLTYPE *GetPolicyServerId )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetFriendlyName) + HRESULT ( STDMETHODCALLTYPE *GetFriendlyName )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetIsDefaultCEP) + HRESULT ( STDMETHODCALLTYPE *GetIsDefaultCEP )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetUseClientId) + HRESULT ( STDMETHODCALLTYPE *GetUseClientId )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetAllowUnTrustedCA) + HRESULT ( STDMETHODCALLTYPE *GetAllowUnTrustedCA )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetCachePath) + HRESULT ( STDMETHODCALLTYPE *GetCachePath )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetCacheDir) + HRESULT ( STDMETHODCALLTYPE *GetCacheDir )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, GetAuthFlags) + HRESULT ( STDMETHODCALLTYPE *GetAuthFlags )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out X509EnrollmentAuthFlags *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, SetCredential) + HRESULT ( STDMETHODCALLTYPE *SetCredential )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [in] */ LONG hWndParent, + /* [in] */ X509EnrollmentAuthFlags flag, + /* [in] */ __RPC__in BSTR strCredential, + /* [in] */ __RPC__in BSTR strPassword); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, QueryChanges) + HRESULT ( STDMETHODCALLTYPE *QueryChanges )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, InitializeImport) + HRESULT ( STDMETHODCALLTYPE *InitializeImport )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [in] */ VARIANT val); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, Export) + HRESULT ( STDMETHODCALLTYPE *Export )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [in] */ X509EnrollmentPolicyExportFlags exportFlags, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, get_Cost) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Cost )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [retval][out] */ __RPC__out DWORD *pValue); + + DECLSPEC_XFGVIRT(IX509EnrollmentPolicyServer, put_Cost) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Cost )( + __RPC__in IX509EnrollmentPolicyServer * This, + /* [in] */ DWORD value); + + END_INTERFACE + } IX509EnrollmentPolicyServerVtbl; + + interface IX509EnrollmentPolicyServer + { + CONST_VTBL struct IX509EnrollmentPolicyServerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509EnrollmentPolicyServer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509EnrollmentPolicyServer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509EnrollmentPolicyServer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509EnrollmentPolicyServer_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509EnrollmentPolicyServer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509EnrollmentPolicyServer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509EnrollmentPolicyServer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509EnrollmentPolicyServer_Initialize(This,bstrPolicyServerUrl,bstrPolicyServerId,authFlags,fIsUnTrusted,context) \ + ( (This)->lpVtbl -> Initialize(This,bstrPolicyServerUrl,bstrPolicyServerId,authFlags,fIsUnTrusted,context) ) + +#define IX509EnrollmentPolicyServer_LoadPolicy(This,option) \ + ( (This)->lpVtbl -> LoadPolicy(This,option) ) + +#define IX509EnrollmentPolicyServer_GetTemplates(This,pTemplates) \ + ( (This)->lpVtbl -> GetTemplates(This,pTemplates) ) + +#define IX509EnrollmentPolicyServer_GetCAsForTemplate(This,pTemplate,ppCAs) \ + ( (This)->lpVtbl -> GetCAsForTemplate(This,pTemplate,ppCAs) ) + +#define IX509EnrollmentPolicyServer_GetCAs(This,ppCAs) \ + ( (This)->lpVtbl -> GetCAs(This,ppCAs) ) + +#define IX509EnrollmentPolicyServer_Validate(This) \ + ( (This)->lpVtbl -> Validate(This) ) + +#define IX509EnrollmentPolicyServer_GetCustomOids(This,ppObjectIds) \ + ( (This)->lpVtbl -> GetCustomOids(This,ppObjectIds) ) + +#define IX509EnrollmentPolicyServer_GetNextUpdateTime(This,pDate) \ + ( (This)->lpVtbl -> GetNextUpdateTime(This,pDate) ) + +#define IX509EnrollmentPolicyServer_GetLastUpdateTime(This,pDate) \ + ( (This)->lpVtbl -> GetLastUpdateTime(This,pDate) ) + +#define IX509EnrollmentPolicyServer_GetPolicyServerUrl(This,pValue) \ + ( (This)->lpVtbl -> GetPolicyServerUrl(This,pValue) ) + +#define IX509EnrollmentPolicyServer_GetPolicyServerId(This,pValue) \ + ( (This)->lpVtbl -> GetPolicyServerId(This,pValue) ) + +#define IX509EnrollmentPolicyServer_GetFriendlyName(This,pValue) \ + ( (This)->lpVtbl -> GetFriendlyName(This,pValue) ) + +#define IX509EnrollmentPolicyServer_GetIsDefaultCEP(This,pValue) \ + ( (This)->lpVtbl -> GetIsDefaultCEP(This,pValue) ) + +#define IX509EnrollmentPolicyServer_GetUseClientId(This,pValue) \ + ( (This)->lpVtbl -> GetUseClientId(This,pValue) ) + +#define IX509EnrollmentPolicyServer_GetAllowUnTrustedCA(This,pValue) \ + ( (This)->lpVtbl -> GetAllowUnTrustedCA(This,pValue) ) + +#define IX509EnrollmentPolicyServer_GetCachePath(This,pValue) \ + ( (This)->lpVtbl -> GetCachePath(This,pValue) ) + +#define IX509EnrollmentPolicyServer_GetCacheDir(This,pValue) \ + ( (This)->lpVtbl -> GetCacheDir(This,pValue) ) + +#define IX509EnrollmentPolicyServer_GetAuthFlags(This,pValue) \ + ( (This)->lpVtbl -> GetAuthFlags(This,pValue) ) + +#define IX509EnrollmentPolicyServer_SetCredential(This,hWndParent,flag,strCredential,strPassword) \ + ( (This)->lpVtbl -> SetCredential(This,hWndParent,flag,strCredential,strPassword) ) + +#define IX509EnrollmentPolicyServer_QueryChanges(This,pValue) \ + ( (This)->lpVtbl -> QueryChanges(This,pValue) ) + +#define IX509EnrollmentPolicyServer_InitializeImport(This,val) \ + ( (This)->lpVtbl -> InitializeImport(This,val) ) + +#define IX509EnrollmentPolicyServer_Export(This,exportFlags,pVal) \ + ( (This)->lpVtbl -> Export(This,exportFlags,pVal) ) + +#define IX509EnrollmentPolicyServer_get_Cost(This,pValue) \ + ( (This)->lpVtbl -> get_Cost(This,pValue) ) + +#define IX509EnrollmentPolicyServer_put_Cost(This,value) \ + ( (This)->lpVtbl -> put_Cost(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509EnrollmentPolicyServer_INTERFACE_DEFINED__ */ + + +#ifndef __IX509PolicyServerUrl_INTERFACE_DEFINED__ +#define __IX509PolicyServerUrl_INTERFACE_DEFINED__ + +/* interface IX509PolicyServerUrl */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509PolicyServerUrl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("884e204a-217d-11da-b2a4-000e7bbb2b09") + IX509PolicyServerUrl : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ X509CertificateEnrollmentContext context) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Url( + /* [retval][out] */ __RPC__deref_out_opt BSTR *ppValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Url( + /* [in] */ __RPC__in BSTR pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Default( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Default( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Flags( + /* [retval][out] */ __RPC__out PolicyServerUrlFlags *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Flags( + /* [in] */ PolicyServerUrlFlags Flags) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AuthFlags( + /* [retval][out] */ __RPC__out X509EnrollmentAuthFlags *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AuthFlags( + /* [in] */ X509EnrollmentAuthFlags Flags) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Cost( + /* [retval][out] */ __RPC__out DWORD *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Cost( + /* [in] */ DWORD value) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStringProperty( + /* [in] */ PolicyServerUrlPropertyID propertyId, + /* [retval][out] */ __RPC__deref_out_opt BSTR *ppValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStringProperty( + /* [in] */ PolicyServerUrlPropertyID propertyId, + /* [in] */ __RPC__in BSTR pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateRegistry( + /* [in] */ X509CertificateEnrollmentContext context) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveFromRegistry( + /* [in] */ X509CertificateEnrollmentContext context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509PolicyServerUrlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509PolicyServerUrl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509PolicyServerUrl * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509PolicyServerUrl * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509PolicyServerUrl * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ X509CertificateEnrollmentContext context); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, get_Url) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Url )( + __RPC__in IX509PolicyServerUrl * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *ppValue); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, put_Url) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Url )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ __RPC__in BSTR pValue); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, get_Default) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Default )( + __RPC__in IX509PolicyServerUrl * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, put_Default) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Default )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, get_Flags) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Flags )( + __RPC__in IX509PolicyServerUrl * This, + /* [retval][out] */ __RPC__out PolicyServerUrlFlags *pValue); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, put_Flags) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Flags )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ PolicyServerUrlFlags Flags); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, get_AuthFlags) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AuthFlags )( + __RPC__in IX509PolicyServerUrl * This, + /* [retval][out] */ __RPC__out X509EnrollmentAuthFlags *pValue); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, put_AuthFlags) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AuthFlags )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ X509EnrollmentAuthFlags Flags); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, get_Cost) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Cost )( + __RPC__in IX509PolicyServerUrl * This, + /* [retval][out] */ __RPC__out DWORD *pValue); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, put_Cost) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Cost )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ DWORD value); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, GetStringProperty) + HRESULT ( STDMETHODCALLTYPE *GetStringProperty )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ PolicyServerUrlPropertyID propertyId, + /* [retval][out] */ __RPC__deref_out_opt BSTR *ppValue); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, SetStringProperty) + HRESULT ( STDMETHODCALLTYPE *SetStringProperty )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ PolicyServerUrlPropertyID propertyId, + /* [in] */ __RPC__in BSTR pValue); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, UpdateRegistry) + HRESULT ( STDMETHODCALLTYPE *UpdateRegistry )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ X509CertificateEnrollmentContext context); + + DECLSPEC_XFGVIRT(IX509PolicyServerUrl, RemoveFromRegistry) + HRESULT ( STDMETHODCALLTYPE *RemoveFromRegistry )( + __RPC__in IX509PolicyServerUrl * This, + /* [in] */ X509CertificateEnrollmentContext context); + + END_INTERFACE + } IX509PolicyServerUrlVtbl; + + interface IX509PolicyServerUrl + { + CONST_VTBL struct IX509PolicyServerUrlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509PolicyServerUrl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509PolicyServerUrl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509PolicyServerUrl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509PolicyServerUrl_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509PolicyServerUrl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509PolicyServerUrl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509PolicyServerUrl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509PolicyServerUrl_Initialize(This,context) \ + ( (This)->lpVtbl -> Initialize(This,context) ) + +#define IX509PolicyServerUrl_get_Url(This,ppValue) \ + ( (This)->lpVtbl -> get_Url(This,ppValue) ) + +#define IX509PolicyServerUrl_put_Url(This,pValue) \ + ( (This)->lpVtbl -> put_Url(This,pValue) ) + +#define IX509PolicyServerUrl_get_Default(This,pValue) \ + ( (This)->lpVtbl -> get_Default(This,pValue) ) + +#define IX509PolicyServerUrl_put_Default(This,value) \ + ( (This)->lpVtbl -> put_Default(This,value) ) + +#define IX509PolicyServerUrl_get_Flags(This,pValue) \ + ( (This)->lpVtbl -> get_Flags(This,pValue) ) + +#define IX509PolicyServerUrl_put_Flags(This,Flags) \ + ( (This)->lpVtbl -> put_Flags(This,Flags) ) + +#define IX509PolicyServerUrl_get_AuthFlags(This,pValue) \ + ( (This)->lpVtbl -> get_AuthFlags(This,pValue) ) + +#define IX509PolicyServerUrl_put_AuthFlags(This,Flags) \ + ( (This)->lpVtbl -> put_AuthFlags(This,Flags) ) + +#define IX509PolicyServerUrl_get_Cost(This,pValue) \ + ( (This)->lpVtbl -> get_Cost(This,pValue) ) + +#define IX509PolicyServerUrl_put_Cost(This,value) \ + ( (This)->lpVtbl -> put_Cost(This,value) ) + +#define IX509PolicyServerUrl_GetStringProperty(This,propertyId,ppValue) \ + ( (This)->lpVtbl -> GetStringProperty(This,propertyId,ppValue) ) + +#define IX509PolicyServerUrl_SetStringProperty(This,propertyId,pValue) \ + ( (This)->lpVtbl -> SetStringProperty(This,propertyId,pValue) ) + +#define IX509PolicyServerUrl_UpdateRegistry(This,context) \ + ( (This)->lpVtbl -> UpdateRegistry(This,context) ) + +#define IX509PolicyServerUrl_RemoveFromRegistry(This,context) \ + ( (This)->lpVtbl -> RemoveFromRegistry(This,context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509PolicyServerUrl_INTERFACE_DEFINED__ */ + + +#ifndef __IX509PolicyServerListManager_INTERFACE_DEFINED__ +#define __IX509PolicyServerListManager_INTERFACE_DEFINED__ + +/* interface IX509PolicyServerListManager */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509PolicyServerListManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("884e204b-217d-11da-b2a4-000e7bbb2b09") + IX509PolicyServerListManager : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509PolicyServerUrl **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IX509PolicyServerUrl *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ PolicyServerUrlFlags Flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509PolicyServerListManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509PolicyServerListManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509PolicyServerListManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509PolicyServerListManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509PolicyServerListManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509PolicyServerListManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509PolicyServerListManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509PolicyServerListManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509PolicyServerListManager, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in IX509PolicyServerListManager * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509PolicyServerUrl **pVal); + + DECLSPEC_XFGVIRT(IX509PolicyServerListManager, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IX509PolicyServerListManager * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IX509PolicyServerListManager, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IX509PolicyServerListManager * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(IX509PolicyServerListManager, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IX509PolicyServerListManager * This, + /* [in] */ __RPC__in_opt IX509PolicyServerUrl *pVal); + + DECLSPEC_XFGVIRT(IX509PolicyServerListManager, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IX509PolicyServerListManager * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(IX509PolicyServerListManager, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IX509PolicyServerListManager * This); + + DECLSPEC_XFGVIRT(IX509PolicyServerListManager, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509PolicyServerListManager * This, + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ PolicyServerUrlFlags Flags); + + END_INTERFACE + } IX509PolicyServerListManagerVtbl; + + interface IX509PolicyServerListManager + { + CONST_VTBL struct IX509PolicyServerListManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509PolicyServerListManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509PolicyServerListManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509PolicyServerListManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509PolicyServerListManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509PolicyServerListManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509PolicyServerListManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509PolicyServerListManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509PolicyServerListManager_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define IX509PolicyServerListManager_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IX509PolicyServerListManager_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define IX509PolicyServerListManager_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define IX509PolicyServerListManager_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define IX509PolicyServerListManager_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IX509PolicyServerListManager_Initialize(This,context,Flags) \ + ( (This)->lpVtbl -> Initialize(This,context,Flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509PolicyServerListManager_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0075 */ +/* [local] */ + +typedef +enum X509RequestType + { + TypeAny = 0, + TypePkcs10 = 1, + TypePkcs7 = 2, + TypeCmc = 3, + TypeCertificate = 4 + } X509RequestType; + +typedef +enum X509RequestInheritOptions + { + InheritDefault = 0, + InheritNewDefaultKey = 0x1, + InheritNewSimilarKey = 0x2, + InheritPrivateKey = 0x3, + InheritPublicKey = 0x4, + InheritKeyMask = 0xf, + InheritNone = 0x10, + InheritRenewalCertificateFlag = 0x20, + InheritTemplateFlag = 0x40, + InheritSubjectFlag = 0x80, + InheritExtensionsFlag = 0x100, + InheritSubjectAltNameFlag = 0x200, + InheritValidityPeriodFlag = 0x400, + InheritReserved80000000 = 0x80000000 + } X509RequestInheritOptions; + +typedef +enum InnerRequestLevel + { + LevelInnermost = 0, + LevelNext = 1 + } InnerRequestLevel; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0075_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0075_v0_0_s_ifspec; + +#ifndef __IX509CertificateRequest_INTERFACE_DEFINED__ +#define __IX509CertificateRequest_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequest */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequest; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab341-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRequest : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ X509CertificateEnrollmentContext Context) = 0; + + virtual HRESULT STDMETHODCALLTYPE Encode( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ResetForEncode( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInnerRequest( + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out X509RequestType *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EnrollmentContext( + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Silent( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Silent( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ParentWindow( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ParentWindow( + /* [in] */ LONG Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_UIContextMessage( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_UIContextMessage( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SuppressDefaults( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SuppressDefaults( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RenewalCertificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_RenewalCertificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_ClientId( + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_ClientId( + /* [in] */ RequestClientInfoClientId Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CspInformations( + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CspInformations( + /* [in] */ __RPC__in_opt ICspInformations *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_HashAlgorithm( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_HashAlgorithm( + /* [in] */ __RPC__in_opt IObjectId *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AlternateSignatureAlgorithm( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AlternateSignatureAlgorithm( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawData( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequest * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequest * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequest * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequest * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequest * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequest * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequest * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequest * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequest * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequest * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequest * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequest * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequest * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequest * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequest * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequest * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequest * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequest * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequest * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequest * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509CertificateRequestVtbl; + + interface IX509CertificateRequest + { + CONST_VTBL struct IX509CertificateRequestVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequest_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequest_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequest_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequest_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequest_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequest_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequest_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequest_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequest_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequest_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequest_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequest_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequest_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequest_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequest_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequest_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequest_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequest_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequest_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequest_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequest_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequest_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequest_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequest_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequest_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequest_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequest_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequest_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequest_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequest_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0076 */ +/* [local] */ + +typedef +enum Pkcs10AllowedSignatureTypes + { + AllowedKeySignature = 0x1, + AllowedNullSignature = 0x2 + } Pkcs10AllowedSignatureTypes; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0076_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0076_v0_0_s_ifspec; + +#ifndef __IX509CertificateRequestPkcs10_INTERFACE_DEFINED__ +#define __IX509CertificateRequestPkcs10_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequestPkcs10 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequestPkcs10; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab342-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRequestPkcs10 : public IX509CertificateRequest + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromTemplateName( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeFromPrivateKey( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in BSTR strTemplateName) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromPublicKey( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in BSTR strTemplateName) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromCertificate( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions = InheritDefault) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckSignature( + /* [defaultvalue][in] */ Pkcs10AllowedSignatureTypes AllowedSignatureTypes = AllowedKeySignature) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsSmartCard( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_TemplateObjectId( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PublicKey( + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_PrivateKey( + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NullSigned( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ReuseKey( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_OldCertificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_Subject( + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_Subject( + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CspStatuses( + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_SmimeCapabilities( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_SmimeCapabilities( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SignatureInformation( + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_KeyContainerNamePrefix( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_KeyContainerNamePrefix( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CryptAttributes( + /* [retval][out] */ __RPC__deref_out_opt ICryptAttributes **ppValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_X509Extensions( + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CriticalExtensions( + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SuppressOids( + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawDataToBeSigned( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Signature( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCspStatuses( + /* [in] */ X509KeySpec KeySpec, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppCspStatuses) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestPkcs10Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequestPkcs10 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequestPkcs10 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequestPkcs10 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequestPkcs10 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequestPkcs10 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPrivateKey) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromPrivateKey )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPublicKey) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPublicKey )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, CheckSignature) + HRESULT ( STDMETHODCALLTYPE *CheckSignature )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [defaultvalue][in] */ Pkcs10AllowedSignatureTypes AllowedSignatureTypes); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, IsSmartCard) + HRESULT ( STDMETHODCALLTYPE *IsSmartCard )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_TemplateObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateObjectId )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PublicKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublicKey )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PrivateKey) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrivateKey )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_NullSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NullSigned )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_ReuseKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReuseKey )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_OldCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OldCertificate )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Subject) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_Subject) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Subject )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CspStatuses) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspStatuses )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SmimeCapabilities) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SmimeCapabilities )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_SmimeCapabilities) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SmimeCapabilities )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SignatureInformation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureInformation )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_KeyContainerNamePrefix) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_KeyContainerNamePrefix) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CryptAttributes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CryptAttributes )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt ICryptAttributes **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_X509Extensions) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CriticalExtensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CriticalExtensions )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SuppressOids) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressOids )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_RawDataToBeSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawDataToBeSigned )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Signature) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Signature )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, GetCspStatuses) + HRESULT ( STDMETHODCALLTYPE *GetCspStatuses )( + __RPC__in IX509CertificateRequestPkcs10 * This, + /* [in] */ X509KeySpec KeySpec, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppCspStatuses); + + END_INTERFACE + } IX509CertificateRequestPkcs10Vtbl; + + interface IX509CertificateRequestPkcs10 + { + CONST_VTBL struct IX509CertificateRequestPkcs10Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequestPkcs10_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequestPkcs10_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequestPkcs10_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequestPkcs10_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequestPkcs10_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequestPkcs10_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequestPkcs10_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequestPkcs10_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequestPkcs10_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequestPkcs10_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequestPkcs10_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequestPkcs10_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequestPkcs10_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequestPkcs10_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequestPkcs10_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequestPkcs10_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequestPkcs10_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequestPkcs10_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequestPkcs10_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequestPkcs10_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequestPkcs10_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequestPkcs10_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestPkcs10_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequestPkcs10_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequestPkcs10_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequestPkcs10_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs10_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs10_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequestPkcs10_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509CertificateRequestPkcs10_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509CertificateRequestPkcs10_InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) ) + +#define IX509CertificateRequestPkcs10_InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) ) + +#define IX509CertificateRequestPkcs10_InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) ) + +#define IX509CertificateRequestPkcs10_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRequestPkcs10_CheckSignature(This,AllowedSignatureTypes) \ + ( (This)->lpVtbl -> CheckSignature(This,AllowedSignatureTypes) ) + +#define IX509CertificateRequestPkcs10_IsSmartCard(This,pValue) \ + ( (This)->lpVtbl -> IsSmartCard(This,pValue) ) + +#define IX509CertificateRequestPkcs10_get_TemplateObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_TemplateObjectId(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_get_PublicKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PublicKey(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_get_PrivateKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PrivateKey(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_get_NullSigned(This,pValue) \ + ( (This)->lpVtbl -> get_NullSigned(This,pValue) ) + +#define IX509CertificateRequestPkcs10_get_ReuseKey(This,pValue) \ + ( (This)->lpVtbl -> get_ReuseKey(This,pValue) ) + +#define IX509CertificateRequestPkcs10_get_OldCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_OldCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10_get_Subject(This,ppValue) \ + ( (This)->lpVtbl -> get_Subject(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_put_Subject(This,pValue) \ + ( (This)->lpVtbl -> put_Subject(This,pValue) ) + +#define IX509CertificateRequestPkcs10_get_CspStatuses(This,ppValue) \ + ( (This)->lpVtbl -> get_CspStatuses(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_get_SmimeCapabilities(This,pValue) \ + ( (This)->lpVtbl -> get_SmimeCapabilities(This,pValue) ) + +#define IX509CertificateRequestPkcs10_put_SmimeCapabilities(This,Value) \ + ( (This)->lpVtbl -> put_SmimeCapabilities(This,Value) ) + +#define IX509CertificateRequestPkcs10_get_SignatureInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_SignatureInformation(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_get_KeyContainerNamePrefix(This,pValue) \ + ( (This)->lpVtbl -> get_KeyContainerNamePrefix(This,pValue) ) + +#define IX509CertificateRequestPkcs10_put_KeyContainerNamePrefix(This,Value) \ + ( (This)->lpVtbl -> put_KeyContainerNamePrefix(This,Value) ) + +#define IX509CertificateRequestPkcs10_get_CryptAttributes(This,ppValue) \ + ( (This)->lpVtbl -> get_CryptAttributes(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_get_CriticalExtensions(This,ppValue) \ + ( (This)->lpVtbl -> get_CriticalExtensions(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_get_SuppressOids(This,ppValue) \ + ( (This)->lpVtbl -> get_SuppressOids(This,ppValue) ) + +#define IX509CertificateRequestPkcs10_get_RawDataToBeSigned(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawDataToBeSigned(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10_get_Signature(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Signature(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10_GetCspStatuses(This,KeySpec,ppCspStatuses) \ + ( (This)->lpVtbl -> GetCspStatuses(This,KeySpec,ppCspStatuses) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequestPkcs10_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateRequestPkcs10V2_INTERFACE_DEFINED__ +#define __IX509CertificateRequestPkcs10V2_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequestPkcs10V2 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequestPkcs10V2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab35b-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRequestPkcs10V2 : public IX509CertificateRequestPkcs10 + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromTemplate( + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromPrivateKeyTemplate( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromPublicKeyTemplate( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyServer( + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Template( + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestPkcs10V2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequestPkcs10V2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequestPkcs10V2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequestPkcs10V2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequestPkcs10V2 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequestPkcs10V2 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPrivateKey) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromPrivateKey )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPublicKey) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPublicKey )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, CheckSignature) + HRESULT ( STDMETHODCALLTYPE *CheckSignature )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [defaultvalue][in] */ Pkcs10AllowedSignatureTypes AllowedSignatureTypes); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, IsSmartCard) + HRESULT ( STDMETHODCALLTYPE *IsSmartCard )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_TemplateObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateObjectId )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PublicKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublicKey )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PrivateKey) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrivateKey )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_NullSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NullSigned )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_ReuseKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReuseKey )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_OldCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OldCertificate )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Subject) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_Subject) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Subject )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CspStatuses) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspStatuses )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SmimeCapabilities) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SmimeCapabilities )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_SmimeCapabilities) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SmimeCapabilities )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SignatureInformation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureInformation )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_KeyContainerNamePrefix) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_KeyContainerNamePrefix) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CryptAttributes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CryptAttributes )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICryptAttributes **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_X509Extensions) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CriticalExtensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CriticalExtensions )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SuppressOids) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressOids )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_RawDataToBeSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawDataToBeSigned )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Signature) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Signature )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, GetCspStatuses) + HRESULT ( STDMETHODCALLTYPE *GetCspStatuses )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ X509KeySpec KeySpec, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppCspStatuses); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, InitializeFromTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplate )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, InitializeFromPrivateKeyTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPrivateKeyTemplate )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, InitializeFromPublicKeyTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPublicKeyTemplate )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, get_PolicyServer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyServer )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, get_Template) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Template )( + __RPC__in IX509CertificateRequestPkcs10V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate); + + END_INTERFACE + } IX509CertificateRequestPkcs10V2Vtbl; + + interface IX509CertificateRequestPkcs10V2 + { + CONST_VTBL struct IX509CertificateRequestPkcs10V2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequestPkcs10V2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequestPkcs10V2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequestPkcs10V2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequestPkcs10V2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequestPkcs10V2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequestPkcs10V2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequestPkcs10V2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequestPkcs10V2_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequestPkcs10V2_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequestPkcs10V2_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequestPkcs10V2_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequestPkcs10V2_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequestPkcs10V2_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequestPkcs10V2_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequestPkcs10V2_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V2_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestPkcs10V2_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequestPkcs10V2_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequestPkcs10V2_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509CertificateRequestPkcs10V2_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509CertificateRequestPkcs10V2_InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) ) + +#define IX509CertificateRequestPkcs10V2_InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) ) + +#define IX509CertificateRequestPkcs10V2_InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) ) + +#define IX509CertificateRequestPkcs10V2_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRequestPkcs10V2_CheckSignature(This,AllowedSignatureTypes) \ + ( (This)->lpVtbl -> CheckSignature(This,AllowedSignatureTypes) ) + +#define IX509CertificateRequestPkcs10V2_IsSmartCard(This,pValue) \ + ( (This)->lpVtbl -> IsSmartCard(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_get_TemplateObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_TemplateObjectId(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_get_PublicKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PublicKey(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_get_PrivateKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PrivateKey(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_get_NullSigned(This,pValue) \ + ( (This)->lpVtbl -> get_NullSigned(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_get_ReuseKey(This,pValue) \ + ( (This)->lpVtbl -> get_ReuseKey(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_get_OldCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_OldCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V2_get_Subject(This,ppValue) \ + ( (This)->lpVtbl -> get_Subject(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_put_Subject(This,pValue) \ + ( (This)->lpVtbl -> put_Subject(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_get_CspStatuses(This,ppValue) \ + ( (This)->lpVtbl -> get_CspStatuses(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_get_SmimeCapabilities(This,pValue) \ + ( (This)->lpVtbl -> get_SmimeCapabilities(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_put_SmimeCapabilities(This,Value) \ + ( (This)->lpVtbl -> put_SmimeCapabilities(This,Value) ) + +#define IX509CertificateRequestPkcs10V2_get_SignatureInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_SignatureInformation(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_get_KeyContainerNamePrefix(This,pValue) \ + ( (This)->lpVtbl -> get_KeyContainerNamePrefix(This,pValue) ) + +#define IX509CertificateRequestPkcs10V2_put_KeyContainerNamePrefix(This,Value) \ + ( (This)->lpVtbl -> put_KeyContainerNamePrefix(This,Value) ) + +#define IX509CertificateRequestPkcs10V2_get_CryptAttributes(This,ppValue) \ + ( (This)->lpVtbl -> get_CryptAttributes(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_get_CriticalExtensions(This,ppValue) \ + ( (This)->lpVtbl -> get_CriticalExtensions(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_get_SuppressOids(This,ppValue) \ + ( (This)->lpVtbl -> get_SuppressOids(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V2_get_RawDataToBeSigned(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawDataToBeSigned(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V2_get_Signature(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Signature(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V2_GetCspStatuses(This,KeySpec,ppCspStatuses) \ + ( (This)->lpVtbl -> GetCspStatuses(This,KeySpec,ppCspStatuses) ) + + +#define IX509CertificateRequestPkcs10V2_InitializeFromTemplate(This,context,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromTemplate(This,context,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestPkcs10V2_InitializeFromPrivateKeyTemplate(This,Context,pPrivateKey,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromPrivateKeyTemplate(This,Context,pPrivateKey,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestPkcs10V2_InitializeFromPublicKeyTemplate(This,Context,pPublicKey,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromPublicKeyTemplate(This,Context,pPublicKey,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestPkcs10V2_get_PolicyServer(This,ppPolicyServer) \ + ( (This)->lpVtbl -> get_PolicyServer(This,ppPolicyServer) ) + +#define IX509CertificateRequestPkcs10V2_get_Template(This,ppTemplate) \ + ( (This)->lpVtbl -> get_Template(This,ppTemplate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequestPkcs10V2_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateRequestPkcs10V3_INTERFACE_DEFINED__ +#define __IX509CertificateRequestPkcs10V3_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequestPkcs10V3 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequestPkcs10V3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("54EA9942-3D66-4530-B76E-7C9170D3EC52") + IX509CertificateRequestPkcs10V3 : public IX509CertificateRequestPkcs10V2 + { + public: + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_AttestPrivateKey( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_AttestPrivateKey( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_AttestationEncryptionCertificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_AttestationEncryptionCertificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_EncryptionAlgorithm( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_EncryptionAlgorithm( + /* [in] */ __RPC__in_opt IObjectId *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_EncryptionStrength( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_EncryptionStrength( + /* [in] */ LONG Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ChallengePassword( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ChallengePassword( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NameValuePairs( + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePairs **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestPkcs10V3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequestPkcs10V3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequestPkcs10V3 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequestPkcs10V3 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequestPkcs10V3 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequestPkcs10V3 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPrivateKey) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromPrivateKey )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPublicKey) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPublicKey )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, CheckSignature) + HRESULT ( STDMETHODCALLTYPE *CheckSignature )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [defaultvalue][in] */ Pkcs10AllowedSignatureTypes AllowedSignatureTypes); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, IsSmartCard) + HRESULT ( STDMETHODCALLTYPE *IsSmartCard )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_TemplateObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateObjectId )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PublicKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublicKey )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PrivateKey) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrivateKey )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_NullSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NullSigned )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_ReuseKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReuseKey )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_OldCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OldCertificate )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Subject) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_Subject) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Subject )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CspStatuses) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspStatuses )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SmimeCapabilities) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SmimeCapabilities )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_SmimeCapabilities) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SmimeCapabilities )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SignatureInformation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureInformation )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_KeyContainerNamePrefix) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_KeyContainerNamePrefix) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CryptAttributes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CryptAttributes )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt ICryptAttributes **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_X509Extensions) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CriticalExtensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CriticalExtensions )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SuppressOids) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressOids )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_RawDataToBeSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawDataToBeSigned )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Signature) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Signature )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, GetCspStatuses) + HRESULT ( STDMETHODCALLTYPE *GetCspStatuses )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ X509KeySpec KeySpec, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppCspStatuses); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, InitializeFromTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplate )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, InitializeFromPrivateKeyTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPrivateKeyTemplate )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, InitializeFromPublicKeyTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPublicKeyTemplate )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, get_PolicyServer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyServer )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, get_Template) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Template )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_AttestPrivateKey) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AttestPrivateKey )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, put_AttestPrivateKey) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AttestPrivateKey )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_AttestationEncryptionCertificate) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AttestationEncryptionCertificate )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, put_AttestationEncryptionCertificate) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AttestationEncryptionCertificate )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_EncryptionAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptionAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, put_EncryptionAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EncryptionAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_EncryptionStrength) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptionStrength )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, put_EncryptionStrength) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EncryptionStrength )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_ChallengePassword) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChallengePassword )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, put_ChallengePassword) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ChallengePassword )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_NameValuePairs) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NameValuePairs )( + __RPC__in IX509CertificateRequestPkcs10V3 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePairs **ppValue); + + END_INTERFACE + } IX509CertificateRequestPkcs10V3Vtbl; + + interface IX509CertificateRequestPkcs10V3 + { + CONST_VTBL struct IX509CertificateRequestPkcs10V3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequestPkcs10V3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequestPkcs10V3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequestPkcs10V3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequestPkcs10V3_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequestPkcs10V3_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequestPkcs10V3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequestPkcs10V3_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequestPkcs10V3_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequestPkcs10V3_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequestPkcs10V3_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequestPkcs10V3_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509CertificateRequestPkcs10V3_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509CertificateRequestPkcs10V3_InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) ) + +#define IX509CertificateRequestPkcs10V3_InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) ) + +#define IX509CertificateRequestPkcs10V3_InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) ) + +#define IX509CertificateRequestPkcs10V3_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRequestPkcs10V3_CheckSignature(This,AllowedSignatureTypes) \ + ( (This)->lpVtbl -> CheckSignature(This,AllowedSignatureTypes) ) + +#define IX509CertificateRequestPkcs10V3_IsSmartCard(This,pValue) \ + ( (This)->lpVtbl -> IsSmartCard(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_TemplateObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_TemplateObjectId(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_get_PublicKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PublicKey(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_get_PrivateKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PrivateKey(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_get_NullSigned(This,pValue) \ + ( (This)->lpVtbl -> get_NullSigned(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_ReuseKey(This,pValue) \ + ( (This)->lpVtbl -> get_ReuseKey(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_OldCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_OldCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_Subject(This,ppValue) \ + ( (This)->lpVtbl -> get_Subject(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_put_Subject(This,pValue) \ + ( (This)->lpVtbl -> put_Subject(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_CspStatuses(This,ppValue) \ + ( (This)->lpVtbl -> get_CspStatuses(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_get_SmimeCapabilities(This,pValue) \ + ( (This)->lpVtbl -> get_SmimeCapabilities(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_SmimeCapabilities(This,Value) \ + ( (This)->lpVtbl -> put_SmimeCapabilities(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_SignatureInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_SignatureInformation(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_get_KeyContainerNamePrefix(This,pValue) \ + ( (This)->lpVtbl -> get_KeyContainerNamePrefix(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_KeyContainerNamePrefix(This,Value) \ + ( (This)->lpVtbl -> put_KeyContainerNamePrefix(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_CryptAttributes(This,ppValue) \ + ( (This)->lpVtbl -> get_CryptAttributes(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_get_CriticalExtensions(This,ppValue) \ + ( (This)->lpVtbl -> get_CriticalExtensions(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_get_SuppressOids(This,ppValue) \ + ( (This)->lpVtbl -> get_SuppressOids(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_get_RawDataToBeSigned(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawDataToBeSigned(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_Signature(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Signature(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V3_GetCspStatuses(This,KeySpec,ppCspStatuses) \ + ( (This)->lpVtbl -> GetCspStatuses(This,KeySpec,ppCspStatuses) ) + + +#define IX509CertificateRequestPkcs10V3_InitializeFromTemplate(This,context,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromTemplate(This,context,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestPkcs10V3_InitializeFromPrivateKeyTemplate(This,Context,pPrivateKey,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromPrivateKeyTemplate(This,Context,pPrivateKey,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestPkcs10V3_InitializeFromPublicKeyTemplate(This,Context,pPublicKey,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromPublicKeyTemplate(This,Context,pPublicKey,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestPkcs10V3_get_PolicyServer(This,ppPolicyServer) \ + ( (This)->lpVtbl -> get_PolicyServer(This,ppPolicyServer) ) + +#define IX509CertificateRequestPkcs10V3_get_Template(This,ppTemplate) \ + ( (This)->lpVtbl -> get_Template(This,ppTemplate) ) + + +#define IX509CertificateRequestPkcs10V3_get_AttestPrivateKey(This,pValue) \ + ( (This)->lpVtbl -> get_AttestPrivateKey(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_AttestPrivateKey(This,Value) \ + ( (This)->lpVtbl -> put_AttestPrivateKey(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_AttestationEncryptionCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_AttestationEncryptionCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_AttestationEncryptionCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_AttestationEncryptionCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_EncryptionAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_EncryptionAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V3_put_EncryptionAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_EncryptionAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_get_EncryptionStrength(This,pValue) \ + ( (This)->lpVtbl -> get_EncryptionStrength(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_EncryptionStrength(This,Value) \ + ( (This)->lpVtbl -> put_EncryptionStrength(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_ChallengePassword(This,pValue) \ + ( (This)->lpVtbl -> get_ChallengePassword(This,pValue) ) + +#define IX509CertificateRequestPkcs10V3_put_ChallengePassword(This,Value) \ + ( (This)->lpVtbl -> put_ChallengePassword(This,Value) ) + +#define IX509CertificateRequestPkcs10V3_get_NameValuePairs(This,ppValue) \ + ( (This)->lpVtbl -> get_NameValuePairs(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequestPkcs10V3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0079 */ +/* [local] */ + +typedef +enum KeyAttestationClaimType + { + XCN_NCRYPT_CLAIM_NONE = 0, + XCN_NCRYPT_CLAIM_AUTHORITY_AND_SUBJECT = 0x3, + XCN_NCRYPT_CLAIM_AUTHORITY_ONLY = 0x1, + XCN_NCRYPT_CLAIM_SUBJECT_ONLY = 0x2, + XCN_NCRYPT_CLAIM_UNKNOWN = 0x1000 + } KeyAttestationClaimType; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0079_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0079_v0_0_s_ifspec; + +#ifndef __IX509CertificateRequestPkcs10V4_INTERFACE_DEFINED__ +#define __IX509CertificateRequestPkcs10V4_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequestPkcs10V4 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequestPkcs10V4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab363-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRequestPkcs10V4 : public IX509CertificateRequestPkcs10V3 + { + public: + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_ClaimType( + /* [retval][out] */ __RPC__out KeyAttestationClaimType *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_ClaimType( + /* [in] */ KeyAttestationClaimType Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_AttestPrivateKeyPreferred( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_AttestPrivateKeyPreferred( + /* [in] */ VARIANT_BOOL Value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestPkcs10V4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequestPkcs10V4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequestPkcs10V4 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequestPkcs10V4 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequestPkcs10V4 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequestPkcs10V4 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPrivateKey) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromPrivateKey )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPublicKey) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPublicKey )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, CheckSignature) + HRESULT ( STDMETHODCALLTYPE *CheckSignature )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [defaultvalue][in] */ Pkcs10AllowedSignatureTypes AllowedSignatureTypes); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, IsSmartCard) + HRESULT ( STDMETHODCALLTYPE *IsSmartCard )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_TemplateObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateObjectId )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PublicKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublicKey )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PrivateKey) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrivateKey )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_NullSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NullSigned )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_ReuseKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReuseKey )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_OldCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OldCertificate )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Subject) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_Subject) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Subject )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CspStatuses) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspStatuses )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SmimeCapabilities) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SmimeCapabilities )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_SmimeCapabilities) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SmimeCapabilities )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SignatureInformation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureInformation )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_KeyContainerNamePrefix) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_KeyContainerNamePrefix) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CryptAttributes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CryptAttributes )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt ICryptAttributes **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_X509Extensions) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CriticalExtensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CriticalExtensions )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SuppressOids) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressOids )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_RawDataToBeSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawDataToBeSigned )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Signature) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Signature )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, GetCspStatuses) + HRESULT ( STDMETHODCALLTYPE *GetCspStatuses )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ X509KeySpec KeySpec, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppCspStatuses); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, InitializeFromTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplate )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, InitializeFromPrivateKeyTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPrivateKeyTemplate )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, InitializeFromPublicKeyTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPublicKeyTemplate )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, get_PolicyServer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyServer )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V2, get_Template) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Template )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_AttestPrivateKey) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AttestPrivateKey )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, put_AttestPrivateKey) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AttestPrivateKey )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_AttestationEncryptionCertificate) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AttestationEncryptionCertificate )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, put_AttestationEncryptionCertificate) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AttestationEncryptionCertificate )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_EncryptionAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptionAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, put_EncryptionAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EncryptionAlgorithm )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_EncryptionStrength) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptionStrength )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, put_EncryptionStrength) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EncryptionStrength )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_ChallengePassword) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChallengePassword )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, put_ChallengePassword) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ChallengePassword )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V3, get_NameValuePairs) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NameValuePairs )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePairs **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V4, get_ClaimType) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClaimType )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out KeyAttestationClaimType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V4, put_ClaimType) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClaimType )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ KeyAttestationClaimType Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V4, get_AttestPrivateKeyPreferred) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AttestPrivateKeyPreferred )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10V4, put_AttestPrivateKeyPreferred) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AttestPrivateKeyPreferred )( + __RPC__in IX509CertificateRequestPkcs10V4 * This, + /* [in] */ VARIANT_BOOL Value); + + END_INTERFACE + } IX509CertificateRequestPkcs10V4Vtbl; + + interface IX509CertificateRequestPkcs10V4 + { + CONST_VTBL struct IX509CertificateRequestPkcs10V4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequestPkcs10V4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequestPkcs10V4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequestPkcs10V4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequestPkcs10V4_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequestPkcs10V4_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequestPkcs10V4_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequestPkcs10V4_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequestPkcs10V4_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequestPkcs10V4_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequestPkcs10V4_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequestPkcs10V4_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509CertificateRequestPkcs10V4_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509CertificateRequestPkcs10V4_InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) ) + +#define IX509CertificateRequestPkcs10V4_InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) ) + +#define IX509CertificateRequestPkcs10V4_InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) ) + +#define IX509CertificateRequestPkcs10V4_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRequestPkcs10V4_CheckSignature(This,AllowedSignatureTypes) \ + ( (This)->lpVtbl -> CheckSignature(This,AllowedSignatureTypes) ) + +#define IX509CertificateRequestPkcs10V4_IsSmartCard(This,pValue) \ + ( (This)->lpVtbl -> IsSmartCard(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_TemplateObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_TemplateObjectId(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_get_PublicKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PublicKey(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_get_PrivateKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PrivateKey(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_get_NullSigned(This,pValue) \ + ( (This)->lpVtbl -> get_NullSigned(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_ReuseKey(This,pValue) \ + ( (This)->lpVtbl -> get_ReuseKey(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_OldCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_OldCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_Subject(This,ppValue) \ + ( (This)->lpVtbl -> get_Subject(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_put_Subject(This,pValue) \ + ( (This)->lpVtbl -> put_Subject(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_CspStatuses(This,ppValue) \ + ( (This)->lpVtbl -> get_CspStatuses(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_get_SmimeCapabilities(This,pValue) \ + ( (This)->lpVtbl -> get_SmimeCapabilities(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_SmimeCapabilities(This,Value) \ + ( (This)->lpVtbl -> put_SmimeCapabilities(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_SignatureInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_SignatureInformation(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_get_KeyContainerNamePrefix(This,pValue) \ + ( (This)->lpVtbl -> get_KeyContainerNamePrefix(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_KeyContainerNamePrefix(This,Value) \ + ( (This)->lpVtbl -> put_KeyContainerNamePrefix(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_CryptAttributes(This,ppValue) \ + ( (This)->lpVtbl -> get_CryptAttributes(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_get_CriticalExtensions(This,ppValue) \ + ( (This)->lpVtbl -> get_CriticalExtensions(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_get_SuppressOids(This,ppValue) \ + ( (This)->lpVtbl -> get_SuppressOids(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_get_RawDataToBeSigned(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawDataToBeSigned(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_Signature(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Signature(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V4_GetCspStatuses(This,KeySpec,ppCspStatuses) \ + ( (This)->lpVtbl -> GetCspStatuses(This,KeySpec,ppCspStatuses) ) + + +#define IX509CertificateRequestPkcs10V4_InitializeFromTemplate(This,context,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromTemplate(This,context,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestPkcs10V4_InitializeFromPrivateKeyTemplate(This,Context,pPrivateKey,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromPrivateKeyTemplate(This,Context,pPrivateKey,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestPkcs10V4_InitializeFromPublicKeyTemplate(This,Context,pPublicKey,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromPublicKeyTemplate(This,Context,pPublicKey,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestPkcs10V4_get_PolicyServer(This,ppPolicyServer) \ + ( (This)->lpVtbl -> get_PolicyServer(This,ppPolicyServer) ) + +#define IX509CertificateRequestPkcs10V4_get_Template(This,ppTemplate) \ + ( (This)->lpVtbl -> get_Template(This,ppTemplate) ) + + +#define IX509CertificateRequestPkcs10V4_get_AttestPrivateKey(This,pValue) \ + ( (This)->lpVtbl -> get_AttestPrivateKey(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_AttestPrivateKey(This,Value) \ + ( (This)->lpVtbl -> put_AttestPrivateKey(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_AttestationEncryptionCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_AttestationEncryptionCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_AttestationEncryptionCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_AttestationEncryptionCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_EncryptionAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_EncryptionAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestPkcs10V4_put_EncryptionAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_EncryptionAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_get_EncryptionStrength(This,pValue) \ + ( (This)->lpVtbl -> get_EncryptionStrength(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_EncryptionStrength(This,Value) \ + ( (This)->lpVtbl -> put_EncryptionStrength(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_ChallengePassword(This,pValue) \ + ( (This)->lpVtbl -> get_ChallengePassword(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_ChallengePassword(This,Value) \ + ( (This)->lpVtbl -> put_ChallengePassword(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_NameValuePairs(This,ppValue) \ + ( (This)->lpVtbl -> get_NameValuePairs(This,ppValue) ) + + +#define IX509CertificateRequestPkcs10V4_get_ClaimType(This,pValue) \ + ( (This)->lpVtbl -> get_ClaimType(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_ClaimType(This,Value) \ + ( (This)->lpVtbl -> put_ClaimType(This,Value) ) + +#define IX509CertificateRequestPkcs10V4_get_AttestPrivateKeyPreferred(This,pValue) \ + ( (This)->lpVtbl -> get_AttestPrivateKeyPreferred(This,pValue) ) + +#define IX509CertificateRequestPkcs10V4_put_AttestPrivateKeyPreferred(This,Value) \ + ( (This)->lpVtbl -> put_AttestPrivateKeyPreferred(This,Value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequestPkcs10V4_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateRequestCertificate_INTERFACE_DEFINED__ +#define __IX509CertificateRequestCertificate_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequestCertificate */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequestCertificate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab343-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRequestCertificate : public IX509CertificateRequestPkcs10 + { + public: + virtual HRESULT STDMETHODCALLTYPE CheckPublicKeySignature( + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Issuer( + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Issuer( + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NotBefore( + /* [retval][out] */ __RPC__out DATE *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_NotBefore( + /* [in] */ DATE Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NotAfter( + /* [retval][out] */ __RPC__out DATE *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_NotAfter( + /* [in] */ DATE Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SerialNumber( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SerialNumber( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SignerCertificate( + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SignerCertificate( + /* [in] */ __RPC__in_opt ISignerCertificate *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestCertificateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequestCertificate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequestCertificate * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequestCertificate * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequestCertificate * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequestCertificate * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPrivateKey) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromPrivateKey )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPublicKey) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPublicKey )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, CheckSignature) + HRESULT ( STDMETHODCALLTYPE *CheckSignature )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [defaultvalue][in] */ Pkcs10AllowedSignatureTypes AllowedSignatureTypes); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, IsSmartCard) + HRESULT ( STDMETHODCALLTYPE *IsSmartCard )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_TemplateObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateObjectId )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PublicKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublicKey )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PrivateKey) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrivateKey )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_NullSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NullSigned )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_ReuseKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReuseKey )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_OldCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OldCertificate )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Subject) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_Subject) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Subject )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CspStatuses) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspStatuses )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SmimeCapabilities) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SmimeCapabilities )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_SmimeCapabilities) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SmimeCapabilities )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SignatureInformation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureInformation )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_KeyContainerNamePrefix) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_KeyContainerNamePrefix) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CryptAttributes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CryptAttributes )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt ICryptAttributes **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_X509Extensions) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CriticalExtensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CriticalExtensions )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SuppressOids) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressOids )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_RawDataToBeSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawDataToBeSigned )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Signature) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Signature )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, GetCspStatuses) + HRESULT ( STDMETHODCALLTYPE *GetCspStatuses )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ X509KeySpec KeySpec, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppCspStatuses); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, CheckPublicKeySignature) + HRESULT ( STDMETHODCALLTYPE *CheckPublicKeySignature )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, get_Issuer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Issuer )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, put_Issuer) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Issuer )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, get_NotBefore) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NotBefore )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out DATE *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, put_NotBefore) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_NotBefore )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ DATE Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, get_NotAfter) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NotAfter )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__out DATE *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, put_NotAfter) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_NotAfter )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ DATE Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, get_SerialNumber) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SerialNumber )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, put_SerialNumber) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SerialNumber )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, get_SignerCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificate )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, put_SignerCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SignerCertificate )( + __RPC__in IX509CertificateRequestCertificate * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + END_INTERFACE + } IX509CertificateRequestCertificateVtbl; + + interface IX509CertificateRequestCertificate + { + CONST_VTBL struct IX509CertificateRequestCertificateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequestCertificate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequestCertificate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequestCertificate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequestCertificate_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequestCertificate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequestCertificate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequestCertificate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequestCertificate_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequestCertificate_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequestCertificate_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequestCertificate_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequestCertificate_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequestCertificate_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequestCertificate_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequestCertificate_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequestCertificate_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequestCertificate_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequestCertificate_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequestCertificate_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequestCertificate_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequestCertificate_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequestCertificate_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestCertificate_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestCertificate_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequestCertificate_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequestCertificate_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequestCertificate_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequestCertificate_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestCertificate_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequestCertificate_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequestCertificate_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequestCertificate_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509CertificateRequestCertificate_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509CertificateRequestCertificate_InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) ) + +#define IX509CertificateRequestCertificate_InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) ) + +#define IX509CertificateRequestCertificate_InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) ) + +#define IX509CertificateRequestCertificate_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRequestCertificate_CheckSignature(This,AllowedSignatureTypes) \ + ( (This)->lpVtbl -> CheckSignature(This,AllowedSignatureTypes) ) + +#define IX509CertificateRequestCertificate_IsSmartCard(This,pValue) \ + ( (This)->lpVtbl -> IsSmartCard(This,pValue) ) + +#define IX509CertificateRequestCertificate_get_TemplateObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_TemplateObjectId(This,ppValue) ) + +#define IX509CertificateRequestCertificate_get_PublicKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PublicKey(This,ppValue) ) + +#define IX509CertificateRequestCertificate_get_PrivateKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PrivateKey(This,ppValue) ) + +#define IX509CertificateRequestCertificate_get_NullSigned(This,pValue) \ + ( (This)->lpVtbl -> get_NullSigned(This,pValue) ) + +#define IX509CertificateRequestCertificate_get_ReuseKey(This,pValue) \ + ( (This)->lpVtbl -> get_ReuseKey(This,pValue) ) + +#define IX509CertificateRequestCertificate_get_OldCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_OldCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestCertificate_get_Subject(This,ppValue) \ + ( (This)->lpVtbl -> get_Subject(This,ppValue) ) + +#define IX509CertificateRequestCertificate_put_Subject(This,pValue) \ + ( (This)->lpVtbl -> put_Subject(This,pValue) ) + +#define IX509CertificateRequestCertificate_get_CspStatuses(This,ppValue) \ + ( (This)->lpVtbl -> get_CspStatuses(This,ppValue) ) + +#define IX509CertificateRequestCertificate_get_SmimeCapabilities(This,pValue) \ + ( (This)->lpVtbl -> get_SmimeCapabilities(This,pValue) ) + +#define IX509CertificateRequestCertificate_put_SmimeCapabilities(This,Value) \ + ( (This)->lpVtbl -> put_SmimeCapabilities(This,Value) ) + +#define IX509CertificateRequestCertificate_get_SignatureInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_SignatureInformation(This,ppValue) ) + +#define IX509CertificateRequestCertificate_get_KeyContainerNamePrefix(This,pValue) \ + ( (This)->lpVtbl -> get_KeyContainerNamePrefix(This,pValue) ) + +#define IX509CertificateRequestCertificate_put_KeyContainerNamePrefix(This,Value) \ + ( (This)->lpVtbl -> put_KeyContainerNamePrefix(This,Value) ) + +#define IX509CertificateRequestCertificate_get_CryptAttributes(This,ppValue) \ + ( (This)->lpVtbl -> get_CryptAttributes(This,ppValue) ) + +#define IX509CertificateRequestCertificate_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#define IX509CertificateRequestCertificate_get_CriticalExtensions(This,ppValue) \ + ( (This)->lpVtbl -> get_CriticalExtensions(This,ppValue) ) + +#define IX509CertificateRequestCertificate_get_SuppressOids(This,ppValue) \ + ( (This)->lpVtbl -> get_SuppressOids(This,ppValue) ) + +#define IX509CertificateRequestCertificate_get_RawDataToBeSigned(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawDataToBeSigned(This,Encoding,pValue) ) + +#define IX509CertificateRequestCertificate_get_Signature(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Signature(This,Encoding,pValue) ) + +#define IX509CertificateRequestCertificate_GetCspStatuses(This,KeySpec,ppCspStatuses) \ + ( (This)->lpVtbl -> GetCspStatuses(This,KeySpec,ppCspStatuses) ) + + +#define IX509CertificateRequestCertificate_CheckPublicKeySignature(This,pPublicKey) \ + ( (This)->lpVtbl -> CheckPublicKeySignature(This,pPublicKey) ) + +#define IX509CertificateRequestCertificate_get_Issuer(This,ppValue) \ + ( (This)->lpVtbl -> get_Issuer(This,ppValue) ) + +#define IX509CertificateRequestCertificate_put_Issuer(This,pValue) \ + ( (This)->lpVtbl -> put_Issuer(This,pValue) ) + +#define IX509CertificateRequestCertificate_get_NotBefore(This,pValue) \ + ( (This)->lpVtbl -> get_NotBefore(This,pValue) ) + +#define IX509CertificateRequestCertificate_put_NotBefore(This,Value) \ + ( (This)->lpVtbl -> put_NotBefore(This,Value) ) + +#define IX509CertificateRequestCertificate_get_NotAfter(This,pValue) \ + ( (This)->lpVtbl -> get_NotAfter(This,pValue) ) + +#define IX509CertificateRequestCertificate_put_NotAfter(This,Value) \ + ( (This)->lpVtbl -> put_NotAfter(This,Value) ) + +#define IX509CertificateRequestCertificate_get_SerialNumber(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_SerialNumber(This,Encoding,pValue) ) + +#define IX509CertificateRequestCertificate_put_SerialNumber(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_SerialNumber(This,Encoding,Value) ) + +#define IX509CertificateRequestCertificate_get_SignerCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificate(This,ppValue) ) + +#define IX509CertificateRequestCertificate_put_SignerCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_SignerCertificate(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequestCertificate_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateRequestCertificate2_INTERFACE_DEFINED__ +#define __IX509CertificateRequestCertificate2_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequestCertificate2 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequestCertificate2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab35a-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRequestCertificate2 : public IX509CertificateRequestCertificate + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromTemplate( + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromPrivateKeyTemplate( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyServer( + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Template( + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestCertificate2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequestCertificate2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequestCertificate2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequestCertificate2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequestCertificate2 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequestCertificate2 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPrivateKey) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromPrivateKey )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromPublicKey) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPublicKey )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, CheckSignature) + HRESULT ( STDMETHODCALLTYPE *CheckSignature )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [defaultvalue][in] */ Pkcs10AllowedSignatureTypes AllowedSignatureTypes); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, IsSmartCard) + HRESULT ( STDMETHODCALLTYPE *IsSmartCard )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_TemplateObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateObjectId )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PublicKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PublicKey )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PublicKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_PrivateKey) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrivateKey )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509PrivateKey **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_NullSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NullSigned )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_ReuseKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReuseKey )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_OldCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OldCertificate )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Subject) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subject )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_Subject) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Subject )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CspStatuses) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspStatuses )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SmimeCapabilities) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SmimeCapabilities )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_SmimeCapabilities) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SmimeCapabilities )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SignatureInformation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureInformation )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_KeyContainerNamePrefix) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, put_KeyContainerNamePrefix) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyContainerNamePrefix )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CryptAttributes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CryptAttributes )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICryptAttributes **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_X509Extensions) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_CriticalExtensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CriticalExtensions )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_SuppressOids) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressOids )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_RawDataToBeSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawDataToBeSigned )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, get_Signature) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Signature )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs10, GetCspStatuses) + HRESULT ( STDMETHODCALLTYPE *GetCspStatuses )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ X509KeySpec KeySpec, + /* [retval][out] */ __RPC__deref_out_opt ICspStatuses **ppCspStatuses); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, CheckPublicKeySignature) + HRESULT ( STDMETHODCALLTYPE *CheckPublicKeySignature )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, get_Issuer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Issuer )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, put_Issuer) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Issuer )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, get_NotBefore) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NotBefore )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out DATE *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, put_NotBefore) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_NotBefore )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ DATE Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, get_NotAfter) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NotAfter )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__out DATE *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, put_NotAfter) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_NotAfter )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ DATE Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, get_SerialNumber) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SerialNumber )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, put_SerialNumber) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SerialNumber )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, get_SignerCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificate )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate, put_SignerCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SignerCertificate )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate2, InitializeFromTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplate )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate2, InitializeFromPrivateKeyTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromPrivateKeyTemplate )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in_opt IX509PrivateKey *pPrivateKey, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate2, get_PolicyServer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyServer )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCertificate2, get_Template) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Template )( + __RPC__in IX509CertificateRequestCertificate2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate); + + END_INTERFACE + } IX509CertificateRequestCertificate2Vtbl; + + interface IX509CertificateRequestCertificate2 + { + CONST_VTBL struct IX509CertificateRequestCertificate2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequestCertificate2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequestCertificate2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequestCertificate2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequestCertificate2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequestCertificate2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequestCertificate2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequestCertificate2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequestCertificate2_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequestCertificate2_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequestCertificate2_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequestCertificate2_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequestCertificate2_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequestCertificate2_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequestCertificate2_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequestCertificate2_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequestCertificate2_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequestCertificate2_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequestCertificate2_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequestCertificate2_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequestCertificate2_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequestCertificate2_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequestCertificate2_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestCertificate2_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestCertificate2_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequestCertificate2_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequestCertificate2_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequestCertificate2_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequestCertificate2_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequestCertificate2_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequestCertificate2_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509CertificateRequestCertificate2_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509CertificateRequestCertificate2_InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPrivateKey(This,Context,pPrivateKey,strTemplateName) ) + +#define IX509CertificateRequestCertificate2_InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromPublicKey(This,Context,pPublicKey,strTemplateName) ) + +#define IX509CertificateRequestCertificate2_InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,Context,strCertificate,Encoding,InheritOptions) ) + +#define IX509CertificateRequestCertificate2_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRequestCertificate2_CheckSignature(This,AllowedSignatureTypes) \ + ( (This)->lpVtbl -> CheckSignature(This,AllowedSignatureTypes) ) + +#define IX509CertificateRequestCertificate2_IsSmartCard(This,pValue) \ + ( (This)->lpVtbl -> IsSmartCard(This,pValue) ) + +#define IX509CertificateRequestCertificate2_get_TemplateObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_TemplateObjectId(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_get_PublicKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PublicKey(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_get_PrivateKey(This,ppValue) \ + ( (This)->lpVtbl -> get_PrivateKey(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_get_NullSigned(This,pValue) \ + ( (This)->lpVtbl -> get_NullSigned(This,pValue) ) + +#define IX509CertificateRequestCertificate2_get_ReuseKey(This,pValue) \ + ( (This)->lpVtbl -> get_ReuseKey(This,pValue) ) + +#define IX509CertificateRequestCertificate2_get_OldCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_OldCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestCertificate2_get_Subject(This,ppValue) \ + ( (This)->lpVtbl -> get_Subject(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_put_Subject(This,pValue) \ + ( (This)->lpVtbl -> put_Subject(This,pValue) ) + +#define IX509CertificateRequestCertificate2_get_CspStatuses(This,ppValue) \ + ( (This)->lpVtbl -> get_CspStatuses(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_get_SmimeCapabilities(This,pValue) \ + ( (This)->lpVtbl -> get_SmimeCapabilities(This,pValue) ) + +#define IX509CertificateRequestCertificate2_put_SmimeCapabilities(This,Value) \ + ( (This)->lpVtbl -> put_SmimeCapabilities(This,Value) ) + +#define IX509CertificateRequestCertificate2_get_SignatureInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_SignatureInformation(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_get_KeyContainerNamePrefix(This,pValue) \ + ( (This)->lpVtbl -> get_KeyContainerNamePrefix(This,pValue) ) + +#define IX509CertificateRequestCertificate2_put_KeyContainerNamePrefix(This,Value) \ + ( (This)->lpVtbl -> put_KeyContainerNamePrefix(This,Value) ) + +#define IX509CertificateRequestCertificate2_get_CryptAttributes(This,ppValue) \ + ( (This)->lpVtbl -> get_CryptAttributes(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_get_CriticalExtensions(This,ppValue) \ + ( (This)->lpVtbl -> get_CriticalExtensions(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_get_SuppressOids(This,ppValue) \ + ( (This)->lpVtbl -> get_SuppressOids(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_get_RawDataToBeSigned(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawDataToBeSigned(This,Encoding,pValue) ) + +#define IX509CertificateRequestCertificate2_get_Signature(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Signature(This,Encoding,pValue) ) + +#define IX509CertificateRequestCertificate2_GetCspStatuses(This,KeySpec,ppCspStatuses) \ + ( (This)->lpVtbl -> GetCspStatuses(This,KeySpec,ppCspStatuses) ) + + +#define IX509CertificateRequestCertificate2_CheckPublicKeySignature(This,pPublicKey) \ + ( (This)->lpVtbl -> CheckPublicKeySignature(This,pPublicKey) ) + +#define IX509CertificateRequestCertificate2_get_Issuer(This,ppValue) \ + ( (This)->lpVtbl -> get_Issuer(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_put_Issuer(This,pValue) \ + ( (This)->lpVtbl -> put_Issuer(This,pValue) ) + +#define IX509CertificateRequestCertificate2_get_NotBefore(This,pValue) \ + ( (This)->lpVtbl -> get_NotBefore(This,pValue) ) + +#define IX509CertificateRequestCertificate2_put_NotBefore(This,Value) \ + ( (This)->lpVtbl -> put_NotBefore(This,Value) ) + +#define IX509CertificateRequestCertificate2_get_NotAfter(This,pValue) \ + ( (This)->lpVtbl -> get_NotAfter(This,pValue) ) + +#define IX509CertificateRequestCertificate2_put_NotAfter(This,Value) \ + ( (This)->lpVtbl -> put_NotAfter(This,Value) ) + +#define IX509CertificateRequestCertificate2_get_SerialNumber(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_SerialNumber(This,Encoding,pValue) ) + +#define IX509CertificateRequestCertificate2_put_SerialNumber(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_SerialNumber(This,Encoding,Value) ) + +#define IX509CertificateRequestCertificate2_get_SignerCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificate(This,ppValue) ) + +#define IX509CertificateRequestCertificate2_put_SignerCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_SignerCertificate(This,pValue) ) + + +#define IX509CertificateRequestCertificate2_InitializeFromTemplate(This,context,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromTemplate(This,context,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestCertificate2_InitializeFromPrivateKeyTemplate(This,Context,pPrivateKey,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromPrivateKeyTemplate(This,Context,pPrivateKey,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestCertificate2_get_PolicyServer(This,ppPolicyServer) \ + ( (This)->lpVtbl -> get_PolicyServer(This,ppPolicyServer) ) + +#define IX509CertificateRequestCertificate2_get_Template(This,ppTemplate) \ + ( (This)->lpVtbl -> get_Template(This,ppTemplate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequestCertificate2_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateRequestPkcs7_INTERFACE_DEFINED__ +#define __IX509CertificateRequestPkcs7_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequestPkcs7 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequestPkcs7; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab344-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRequestPkcs7 : public IX509CertificateRequest + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromTemplateName( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromCertificate( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ VARIANT_BOOL RenewalRequest, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions = InheritDefault) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeFromInnerRequest( + /* [in] */ __RPC__in_opt IX509CertificateRequest *pInnerRequest) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_RequesterName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_RequesterName( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_SignerCertificate( + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_SignerCertificate( + /* [in] */ __RPC__in_opt ISignerCertificate *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestPkcs7Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequestPkcs7 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequestPkcs7 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequestPkcs7 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequestPkcs7 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequestPkcs7 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ VARIANT_BOOL RenewalRequest, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromInnerRequest) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromInnerRequest )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ __RPC__in_opt IX509CertificateRequest *pInnerRequest); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, get_RequesterName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequesterName )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, put_RequesterName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RequesterName )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, get_SignerCertificate) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificate )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, put_SignerCertificate) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SignerCertificate )( + __RPC__in IX509CertificateRequestPkcs7 * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + END_INTERFACE + } IX509CertificateRequestPkcs7Vtbl; + + interface IX509CertificateRequestPkcs7 + { + CONST_VTBL struct IX509CertificateRequestPkcs7Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequestPkcs7_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequestPkcs7_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequestPkcs7_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequestPkcs7_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequestPkcs7_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequestPkcs7_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequestPkcs7_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequestPkcs7_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequestPkcs7_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequestPkcs7_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequestPkcs7_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequestPkcs7_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequestPkcs7_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequestPkcs7_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequestPkcs7_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequestPkcs7_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequestPkcs7_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequestPkcs7_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequestPkcs7_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequestPkcs7_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequestPkcs7_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequestPkcs7_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs7_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestPkcs7_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequestPkcs7_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequestPkcs7_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequestPkcs7_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequestPkcs7_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestPkcs7_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs7_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs7_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequestPkcs7_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509CertificateRequestPkcs7_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509CertificateRequestPkcs7_InitializeFromCertificate(This,Context,RenewalRequest,strCertificate,Encoding,InheritOptions) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,Context,RenewalRequest,strCertificate,Encoding,InheritOptions) ) + +#define IX509CertificateRequestPkcs7_InitializeFromInnerRequest(This,pInnerRequest) \ + ( (This)->lpVtbl -> InitializeFromInnerRequest(This,pInnerRequest) ) + +#define IX509CertificateRequestPkcs7_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRequestPkcs7_get_RequesterName(This,pValue) \ + ( (This)->lpVtbl -> get_RequesterName(This,pValue) ) + +#define IX509CertificateRequestPkcs7_put_RequesterName(This,Value) \ + ( (This)->lpVtbl -> put_RequesterName(This,Value) ) + +#define IX509CertificateRequestPkcs7_get_SignerCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificate(This,ppValue) ) + +#define IX509CertificateRequestPkcs7_put_SignerCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_SignerCertificate(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequestPkcs7_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateRequestPkcs7V2_INTERFACE_DEFINED__ +#define __IX509CertificateRequestPkcs7V2_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequestPkcs7V2 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequestPkcs7V2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab35c-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRequestPkcs7V2 : public IX509CertificateRequestPkcs7 + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromTemplate( + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyServer( + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Template( + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckCertificateSignature( + /* [in] */ VARIANT_BOOL ValidateCertificateChain) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestPkcs7V2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequestPkcs7V2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequestPkcs7V2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequestPkcs7V2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequestPkcs7V2 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequestPkcs7V2 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ VARIANT_BOOL RenewalRequest, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromInnerRequest) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromInnerRequest )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ __RPC__in_opt IX509CertificateRequest *pInnerRequest); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, get_RequesterName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequesterName )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, put_RequesterName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RequesterName )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, get_SignerCertificate) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificate )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, put_SignerCertificate) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SignerCertificate )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7V2, InitializeFromTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplate )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7V2, get_PolicyServer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyServer )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7V2, get_Template) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Template )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7V2, CheckCertificateSignature) + HRESULT ( STDMETHODCALLTYPE *CheckCertificateSignature )( + __RPC__in IX509CertificateRequestPkcs7V2 * This, + /* [in] */ VARIANT_BOOL ValidateCertificateChain); + + END_INTERFACE + } IX509CertificateRequestPkcs7V2Vtbl; + + interface IX509CertificateRequestPkcs7V2 + { + CONST_VTBL struct IX509CertificateRequestPkcs7V2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequestPkcs7V2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequestPkcs7V2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequestPkcs7V2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequestPkcs7V2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequestPkcs7V2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequestPkcs7V2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequestPkcs7V2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequestPkcs7V2_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequestPkcs7V2_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequestPkcs7V2_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequestPkcs7V2_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequestPkcs7V2_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequestPkcs7V2_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequestPkcs7V2_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequestPkcs7V2_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequestPkcs7V2_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestPkcs7V2_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestPkcs7V2_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequestPkcs7V2_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequestPkcs7V2_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestPkcs7V2_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequestPkcs7V2_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509CertificateRequestPkcs7V2_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509CertificateRequestPkcs7V2_InitializeFromCertificate(This,Context,RenewalRequest,strCertificate,Encoding,InheritOptions) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,Context,RenewalRequest,strCertificate,Encoding,InheritOptions) ) + +#define IX509CertificateRequestPkcs7V2_InitializeFromInnerRequest(This,pInnerRequest) \ + ( (This)->lpVtbl -> InitializeFromInnerRequest(This,pInnerRequest) ) + +#define IX509CertificateRequestPkcs7V2_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRequestPkcs7V2_get_RequesterName(This,pValue) \ + ( (This)->lpVtbl -> get_RequesterName(This,pValue) ) + +#define IX509CertificateRequestPkcs7V2_put_RequesterName(This,Value) \ + ( (This)->lpVtbl -> put_RequesterName(This,Value) ) + +#define IX509CertificateRequestPkcs7V2_get_SignerCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificate(This,ppValue) ) + +#define IX509CertificateRequestPkcs7V2_put_SignerCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_SignerCertificate(This,pValue) ) + + +#define IX509CertificateRequestPkcs7V2_InitializeFromTemplate(This,context,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromTemplate(This,context,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestPkcs7V2_get_PolicyServer(This,ppPolicyServer) \ + ( (This)->lpVtbl -> get_PolicyServer(This,ppPolicyServer) ) + +#define IX509CertificateRequestPkcs7V2_get_Template(This,ppTemplate) \ + ( (This)->lpVtbl -> get_Template(This,ppTemplate) ) + +#define IX509CertificateRequestPkcs7V2_CheckCertificateSignature(This,ValidateCertificateChain) \ + ( (This)->lpVtbl -> CheckCertificateSignature(This,ValidateCertificateChain) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequestPkcs7V2_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateRequestCmc_INTERFACE_DEFINED__ +#define __IX509CertificateRequestCmc_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequestCmc */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequestCmc; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab345-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRequestCmc : public IX509CertificateRequestPkcs7 + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromInnerRequestTemplateName( + /* [in] */ __RPC__in_opt IX509CertificateRequest *pInnerRequest, + /* [in] */ __RPC__in BSTR strTemplateName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_TemplateObjectId( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NullSigned( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CryptAttributes( + /* [retval][out] */ __RPC__deref_out_opt ICryptAttributes **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NameValuePairs( + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePairs **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_X509Extensions( + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CriticalExtensions( + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SuppressOids( + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_TransactionId( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_TransactionId( + /* [in] */ LONG Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SenderNonce( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SenderNonce( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SignatureInformation( + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ArchivePrivateKey( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ArchivePrivateKey( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_KeyArchivalCertificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_KeyArchivalCertificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_EncryptionAlgorithm( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_EncryptionAlgorithm( + /* [in] */ __RPC__in_opt IObjectId *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EncryptionStrength( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_EncryptionStrength( + /* [in] */ LONG Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EncryptedKeyHash( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_SignerCertificates( + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificates **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestCmcVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequestCmc * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequestCmc * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequestCmc * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequestCmc * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequestCmc * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequestCmc * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequestCmc * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequestCmc * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequestCmc * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ VARIANT_BOOL RenewalRequest, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromInnerRequest) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromInnerRequest )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in_opt IX509CertificateRequest *pInnerRequest); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, get_RequesterName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequesterName )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, put_RequesterName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RequesterName )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, get_SignerCertificate) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificate )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, put_SignerCertificate) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SignerCertificate )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, InitializeFromInnerRequestTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromInnerRequestTemplateName )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in_opt IX509CertificateRequest *pInnerRequest, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_TemplateObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateObjectId )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_NullSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NullSigned )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_CryptAttributes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CryptAttributes )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt ICryptAttributes **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_NameValuePairs) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NameValuePairs )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePairs **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_X509Extensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_CriticalExtensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CriticalExtensions )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_SuppressOids) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressOids )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_TransactionId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransactionId )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_TransactionId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_TransactionId )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_SenderNonce) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderNonce )( + __RPC__in IX509CertificateRequestCmc * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_SenderNonce) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderNonce )( + __RPC__in IX509CertificateRequestCmc * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_SignatureInformation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureInformation )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_ArchivePrivateKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchivePrivateKey )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_ArchivePrivateKey) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ArchivePrivateKey )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_KeyArchivalCertificate) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyArchivalCertificate )( + __RPC__in IX509CertificateRequestCmc * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_KeyArchivalCertificate) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyArchivalCertificate )( + __RPC__in IX509CertificateRequestCmc * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_EncryptionAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptionAlgorithm )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_EncryptionAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EncryptionAlgorithm )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_EncryptionStrength) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptionStrength )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_EncryptionStrength) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_EncryptionStrength )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_EncryptedKeyHash) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptedKeyHash )( + __RPC__in IX509CertificateRequestCmc * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_SignerCertificates) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificates )( + __RPC__in IX509CertificateRequestCmc * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificates **ppValue); + + END_INTERFACE + } IX509CertificateRequestCmcVtbl; + + interface IX509CertificateRequestCmc + { + CONST_VTBL struct IX509CertificateRequestCmcVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequestCmc_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequestCmc_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequestCmc_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequestCmc_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequestCmc_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequestCmc_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequestCmc_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequestCmc_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequestCmc_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequestCmc_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequestCmc_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequestCmc_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequestCmc_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequestCmc_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequestCmc_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequestCmc_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequestCmc_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequestCmc_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequestCmc_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequestCmc_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequestCmc_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequestCmc_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestCmc_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestCmc_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequestCmc_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequestCmc_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequestCmc_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequestCmc_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestCmc_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequestCmc_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequestCmc_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequestCmc_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509CertificateRequestCmc_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509CertificateRequestCmc_InitializeFromCertificate(This,Context,RenewalRequest,strCertificate,Encoding,InheritOptions) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,Context,RenewalRequest,strCertificate,Encoding,InheritOptions) ) + +#define IX509CertificateRequestCmc_InitializeFromInnerRequest(This,pInnerRequest) \ + ( (This)->lpVtbl -> InitializeFromInnerRequest(This,pInnerRequest) ) + +#define IX509CertificateRequestCmc_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRequestCmc_get_RequesterName(This,pValue) \ + ( (This)->lpVtbl -> get_RequesterName(This,pValue) ) + +#define IX509CertificateRequestCmc_put_RequesterName(This,Value) \ + ( (This)->lpVtbl -> put_RequesterName(This,Value) ) + +#define IX509CertificateRequestCmc_get_SignerCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificate(This,ppValue) ) + +#define IX509CertificateRequestCmc_put_SignerCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_SignerCertificate(This,pValue) ) + + +#define IX509CertificateRequestCmc_InitializeFromInnerRequestTemplateName(This,pInnerRequest,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromInnerRequestTemplateName(This,pInnerRequest,strTemplateName) ) + +#define IX509CertificateRequestCmc_get_TemplateObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_TemplateObjectId(This,ppValue) ) + +#define IX509CertificateRequestCmc_get_NullSigned(This,pValue) \ + ( (This)->lpVtbl -> get_NullSigned(This,pValue) ) + +#define IX509CertificateRequestCmc_get_CryptAttributes(This,ppValue) \ + ( (This)->lpVtbl -> get_CryptAttributes(This,ppValue) ) + +#define IX509CertificateRequestCmc_get_NameValuePairs(This,ppValue) \ + ( (This)->lpVtbl -> get_NameValuePairs(This,ppValue) ) + +#define IX509CertificateRequestCmc_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#define IX509CertificateRequestCmc_get_CriticalExtensions(This,ppValue) \ + ( (This)->lpVtbl -> get_CriticalExtensions(This,ppValue) ) + +#define IX509CertificateRequestCmc_get_SuppressOids(This,ppValue) \ + ( (This)->lpVtbl -> get_SuppressOids(This,ppValue) ) + +#define IX509CertificateRequestCmc_get_TransactionId(This,pValue) \ + ( (This)->lpVtbl -> get_TransactionId(This,pValue) ) + +#define IX509CertificateRequestCmc_put_TransactionId(This,Value) \ + ( (This)->lpVtbl -> put_TransactionId(This,Value) ) + +#define IX509CertificateRequestCmc_get_SenderNonce(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_SenderNonce(This,Encoding,pValue) ) + +#define IX509CertificateRequestCmc_put_SenderNonce(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_SenderNonce(This,Encoding,Value) ) + +#define IX509CertificateRequestCmc_get_SignatureInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_SignatureInformation(This,ppValue) ) + +#define IX509CertificateRequestCmc_get_ArchivePrivateKey(This,pValue) \ + ( (This)->lpVtbl -> get_ArchivePrivateKey(This,pValue) ) + +#define IX509CertificateRequestCmc_put_ArchivePrivateKey(This,Value) \ + ( (This)->lpVtbl -> put_ArchivePrivateKey(This,Value) ) + +#define IX509CertificateRequestCmc_get_KeyArchivalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_KeyArchivalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestCmc_put_KeyArchivalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_KeyArchivalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestCmc_get_EncryptionAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_EncryptionAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestCmc_put_EncryptionAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_EncryptionAlgorithm(This,pValue) ) + +#define IX509CertificateRequestCmc_get_EncryptionStrength(This,pValue) \ + ( (This)->lpVtbl -> get_EncryptionStrength(This,pValue) ) + +#define IX509CertificateRequestCmc_put_EncryptionStrength(This,Value) \ + ( (This)->lpVtbl -> put_EncryptionStrength(This,Value) ) + +#define IX509CertificateRequestCmc_get_EncryptedKeyHash(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_EncryptedKeyHash(This,Encoding,pValue) ) + +#define IX509CertificateRequestCmc_get_SignerCertificates(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificates(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequestCmc_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateRequestCmc2_INTERFACE_DEFINED__ +#define __IX509CertificateRequestCmc2_INTERFACE_DEFINED__ + +/* interface IX509CertificateRequestCmc2 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRequestCmc2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab35d-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRequestCmc2 : public IX509CertificateRequestCmc + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromTemplate( + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromInnerRequestTemplate( + /* [in] */ __RPC__in_opt IX509CertificateRequest *pInnerRequest, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyServer( + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Template( + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckSignature( + /* [defaultvalue][in] */ Pkcs10AllowedSignatureTypes AllowedSignatureTypes = AllowedKeySignature) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckCertificateSignature( + /* [in] */ __RPC__in_opt ISignerCertificate *pSignerCertificate, + /* [in] */ VARIANT_BOOL ValidateCertificateChain) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRequestCmc2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRequestCmc2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRequestCmc2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRequestCmc2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRequestCmc2 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRequestCmc2 * This); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, GetInnerRequest) + HRESULT ( STDMETHODCALLTYPE *GetInnerRequest )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ InnerRequestLevel Level, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out X509RequestType *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_UIContextMessage) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_UIContextMessage )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_UIContextMessage) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_UIContextMessage )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_SuppressDefaults) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressDefaults )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_SuppressDefaults) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SuppressDefaults )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RenewalCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RenewalCertificate )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_RenewalCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RenewalCertificate )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_ClientId) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientId )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out RequestClientInfoClientId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_ClientId) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientId )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ RequestClientInfoClientId Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_CspInformations) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CspInformations )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICspInformations **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_CspInformations) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CspInformations )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in_opt ICspInformations *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequest, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromCertificate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromCertificate )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ VARIANT_BOOL RenewalRequest, + /* [in] */ __RPC__in BSTR strCertificate, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [defaultvalue][in] */ X509RequestInheritOptions InheritOptions); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeFromInnerRequest) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromInnerRequest )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in_opt IX509CertificateRequest *pInnerRequest); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, get_RequesterName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequesterName )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, put_RequesterName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RequesterName )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, get_SignerCertificate) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificate )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestPkcs7, put_SignerCertificate) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SignerCertificate )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, InitializeFromInnerRequestTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromInnerRequestTemplateName )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in_opt IX509CertificateRequest *pInnerRequest, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_TemplateObjectId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TemplateObjectId )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_NullSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NullSigned )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_CryptAttributes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CryptAttributes )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt ICryptAttributes **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_NameValuePairs) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NameValuePairs )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePairs **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_X509Extensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_CriticalExtensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CriticalExtensions )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_SuppressOids) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SuppressOids )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_TransactionId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransactionId )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_TransactionId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_TransactionId )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_SenderNonce) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SenderNonce )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_SenderNonce) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SenderNonce )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_SignatureInformation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureInformation )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_ArchivePrivateKey) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ArchivePrivateKey )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_ArchivePrivateKey) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ArchivePrivateKey )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_KeyArchivalCertificate) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KeyArchivalCertificate )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_KeyArchivalCertificate) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyArchivalCertificate )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_EncryptionAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptionAlgorithm )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_EncryptionAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EncryptionAlgorithm )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_EncryptionStrength) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptionStrength )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, put_EncryptionStrength) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_EncryptionStrength )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_EncryptedKeyHash) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EncryptedKeyHash )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc, get_SignerCertificates) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificates )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificates **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc2, InitializeFromTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplate )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc2, InitializeFromInnerRequestTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromInnerRequestTemplate )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in_opt IX509CertificateRequest *pInnerRequest, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc2, get_PolicyServer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyServer )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc2, get_Template) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Template )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc2, CheckSignature) + HRESULT ( STDMETHODCALLTYPE *CheckSignature )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [defaultvalue][in] */ Pkcs10AllowedSignatureTypes AllowedSignatureTypes); + + DECLSPEC_XFGVIRT(IX509CertificateRequestCmc2, CheckCertificateSignature) + HRESULT ( STDMETHODCALLTYPE *CheckCertificateSignature )( + __RPC__in IX509CertificateRequestCmc2 * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pSignerCertificate, + /* [in] */ VARIANT_BOOL ValidateCertificateChain); + + END_INTERFACE + } IX509CertificateRequestCmc2Vtbl; + + interface IX509CertificateRequestCmc2 + { + CONST_VTBL struct IX509CertificateRequestCmc2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRequestCmc2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRequestCmc2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRequestCmc2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRequestCmc2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRequestCmc2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRequestCmc2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRequestCmc2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRequestCmc2_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509CertificateRequestCmc2_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRequestCmc2_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRequestCmc2_GetInnerRequest(This,Level,ppValue) \ + ( (This)->lpVtbl -> GetInnerRequest(This,Level,ppValue) ) + +#define IX509CertificateRequestCmc2_get_Type(This,pValue) \ + ( (This)->lpVtbl -> get_Type(This,pValue) ) + +#define IX509CertificateRequestCmc2_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509CertificateRequestCmc2_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509CertificateRequestCmc2_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509CertificateRequestCmc2_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509CertificateRequestCmc2_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509CertificateRequestCmc2_get_UIContextMessage(This,pValue) \ + ( (This)->lpVtbl -> get_UIContextMessage(This,pValue) ) + +#define IX509CertificateRequestCmc2_put_UIContextMessage(This,Value) \ + ( (This)->lpVtbl -> put_UIContextMessage(This,Value) ) + +#define IX509CertificateRequestCmc2_get_SuppressDefaults(This,pValue) \ + ( (This)->lpVtbl -> get_SuppressDefaults(This,pValue) ) + +#define IX509CertificateRequestCmc2_put_SuppressDefaults(This,Value) \ + ( (This)->lpVtbl -> put_SuppressDefaults(This,Value) ) + +#define IX509CertificateRequestCmc2_get_RenewalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RenewalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestCmc2_put_RenewalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_RenewalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestCmc2_get_ClientId(This,pValue) \ + ( (This)->lpVtbl -> get_ClientId(This,pValue) ) + +#define IX509CertificateRequestCmc2_put_ClientId(This,Value) \ + ( (This)->lpVtbl -> put_ClientId(This,Value) ) + +#define IX509CertificateRequestCmc2_get_CspInformations(This,ppValue) \ + ( (This)->lpVtbl -> get_CspInformations(This,ppValue) ) + +#define IX509CertificateRequestCmc2_put_CspInformations(This,pValue) \ + ( (This)->lpVtbl -> put_CspInformations(This,pValue) ) + +#define IX509CertificateRequestCmc2_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestCmc2_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRequestCmc2_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRequestCmc2_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRequestCmc2_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + + +#define IX509CertificateRequestCmc2_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509CertificateRequestCmc2_InitializeFromCertificate(This,Context,RenewalRequest,strCertificate,Encoding,InheritOptions) \ + ( (This)->lpVtbl -> InitializeFromCertificate(This,Context,RenewalRequest,strCertificate,Encoding,InheritOptions) ) + +#define IX509CertificateRequestCmc2_InitializeFromInnerRequest(This,pInnerRequest) \ + ( (This)->lpVtbl -> InitializeFromInnerRequest(This,pInnerRequest) ) + +#define IX509CertificateRequestCmc2_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRequestCmc2_get_RequesterName(This,pValue) \ + ( (This)->lpVtbl -> get_RequesterName(This,pValue) ) + +#define IX509CertificateRequestCmc2_put_RequesterName(This,Value) \ + ( (This)->lpVtbl -> put_RequesterName(This,Value) ) + +#define IX509CertificateRequestCmc2_get_SignerCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificate(This,ppValue) ) + +#define IX509CertificateRequestCmc2_put_SignerCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_SignerCertificate(This,pValue) ) + + +#define IX509CertificateRequestCmc2_InitializeFromInnerRequestTemplateName(This,pInnerRequest,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromInnerRequestTemplateName(This,pInnerRequest,strTemplateName) ) + +#define IX509CertificateRequestCmc2_get_TemplateObjectId(This,ppValue) \ + ( (This)->lpVtbl -> get_TemplateObjectId(This,ppValue) ) + +#define IX509CertificateRequestCmc2_get_NullSigned(This,pValue) \ + ( (This)->lpVtbl -> get_NullSigned(This,pValue) ) + +#define IX509CertificateRequestCmc2_get_CryptAttributes(This,ppValue) \ + ( (This)->lpVtbl -> get_CryptAttributes(This,ppValue) ) + +#define IX509CertificateRequestCmc2_get_NameValuePairs(This,ppValue) \ + ( (This)->lpVtbl -> get_NameValuePairs(This,ppValue) ) + +#define IX509CertificateRequestCmc2_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#define IX509CertificateRequestCmc2_get_CriticalExtensions(This,ppValue) \ + ( (This)->lpVtbl -> get_CriticalExtensions(This,ppValue) ) + +#define IX509CertificateRequestCmc2_get_SuppressOids(This,ppValue) \ + ( (This)->lpVtbl -> get_SuppressOids(This,ppValue) ) + +#define IX509CertificateRequestCmc2_get_TransactionId(This,pValue) \ + ( (This)->lpVtbl -> get_TransactionId(This,pValue) ) + +#define IX509CertificateRequestCmc2_put_TransactionId(This,Value) \ + ( (This)->lpVtbl -> put_TransactionId(This,Value) ) + +#define IX509CertificateRequestCmc2_get_SenderNonce(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_SenderNonce(This,Encoding,pValue) ) + +#define IX509CertificateRequestCmc2_put_SenderNonce(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_SenderNonce(This,Encoding,Value) ) + +#define IX509CertificateRequestCmc2_get_SignatureInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_SignatureInformation(This,ppValue) ) + +#define IX509CertificateRequestCmc2_get_ArchivePrivateKey(This,pValue) \ + ( (This)->lpVtbl -> get_ArchivePrivateKey(This,pValue) ) + +#define IX509CertificateRequestCmc2_put_ArchivePrivateKey(This,Value) \ + ( (This)->lpVtbl -> put_ArchivePrivateKey(This,Value) ) + +#define IX509CertificateRequestCmc2_get_KeyArchivalCertificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_KeyArchivalCertificate(This,Encoding,pValue) ) + +#define IX509CertificateRequestCmc2_put_KeyArchivalCertificate(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_KeyArchivalCertificate(This,Encoding,Value) ) + +#define IX509CertificateRequestCmc2_get_EncryptionAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_EncryptionAlgorithm(This,ppValue) ) + +#define IX509CertificateRequestCmc2_put_EncryptionAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_EncryptionAlgorithm(This,pValue) ) + +#define IX509CertificateRequestCmc2_get_EncryptionStrength(This,pValue) \ + ( (This)->lpVtbl -> get_EncryptionStrength(This,pValue) ) + +#define IX509CertificateRequestCmc2_put_EncryptionStrength(This,Value) \ + ( (This)->lpVtbl -> put_EncryptionStrength(This,Value) ) + +#define IX509CertificateRequestCmc2_get_EncryptedKeyHash(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_EncryptedKeyHash(This,Encoding,pValue) ) + +#define IX509CertificateRequestCmc2_get_SignerCertificates(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificates(This,ppValue) ) + + +#define IX509CertificateRequestCmc2_InitializeFromTemplate(This,context,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromTemplate(This,context,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestCmc2_InitializeFromInnerRequestTemplate(This,pInnerRequest,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromInnerRequestTemplate(This,pInnerRequest,pPolicyServer,pTemplate) ) + +#define IX509CertificateRequestCmc2_get_PolicyServer(This,ppPolicyServer) \ + ( (This)->lpVtbl -> get_PolicyServer(This,ppPolicyServer) ) + +#define IX509CertificateRequestCmc2_get_Template(This,ppTemplate) \ + ( (This)->lpVtbl -> get_Template(This,ppTemplate) ) + +#define IX509CertificateRequestCmc2_CheckSignature(This,AllowedSignatureTypes) \ + ( (This)->lpVtbl -> CheckSignature(This,AllowedSignatureTypes) ) + +#define IX509CertificateRequestCmc2_CheckCertificateSignature(This,pSignerCertificate,ValidateCertificateChain) \ + ( (This)->lpVtbl -> CheckCertificateSignature(This,pSignerCertificate,ValidateCertificateChain) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRequestCmc2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0086 */ +/* [local] */ + +typedef +enum InstallResponseRestrictionFlags + { + AllowNone = 0, + AllowNoOutstandingRequest = 0x1, + AllowUntrustedCertificate = 0x2, + AllowUntrustedRoot = 0x4 + } InstallResponseRestrictionFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0086_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0086_v0_0_s_ifspec; + +#ifndef __IX509Enrollment_INTERFACE_DEFINED__ +#define __IX509Enrollment_INTERFACE_DEFINED__ + +/* interface IX509Enrollment */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509Enrollment; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab346-217d-11da-b2a4-000e7bbb2b09") + IX509Enrollment : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ X509CertificateEnrollmentContext Context) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeFromTemplateName( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InitializeFromRequest( + /* [in] */ __RPC__in_opt IX509CertificateRequest *pRequest) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE CreateRequest( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Enroll( void) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InstallResponse( + /* [in] */ InstallResponseRestrictionFlags Restrictions, + /* [in] */ __RPC__in BSTR strResponse, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strPassword) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePFX( + /* [in] */ __RPC__in BSTR strPassword, + /* [in] */ PFXExportOptions ExportOptions, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Request( + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Silent( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Silent( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ParentWindow( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ParentWindow( + /* [in] */ LONG Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NameValuePairs( + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePairs **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_EnrollmentContext( + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentStatus **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Certificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Response( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_CertificateFriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_CertificateFriendlyName( + /* [in] */ __RPC__in BSTR strValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_CertificateDescription( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_CertificateDescription( + /* [in] */ __RPC__in BSTR strValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RequestId( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CAConfigString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509EnrollmentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509Enrollment * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509Enrollment * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509Enrollment * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509Enrollment * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509Enrollment * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509Enrollment * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509Enrollment * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Enrollment, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509Enrollment * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509Enrollment, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509Enrollment * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509Enrollment, InitializeFromRequest) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromRequest )( + __RPC__in IX509Enrollment * This, + /* [in] */ __RPC__in_opt IX509CertificateRequest *pRequest); + + DECLSPEC_XFGVIRT(IX509Enrollment, CreateRequest) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *CreateRequest )( + __RPC__in IX509Enrollment * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, Enroll) + HRESULT ( STDMETHODCALLTYPE *Enroll )( + __RPC__in IX509Enrollment * This); + + DECLSPEC_XFGVIRT(IX509Enrollment, InstallResponse) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InstallResponse )( + __RPC__in IX509Enrollment * This, + /* [in] */ InstallResponseRestrictionFlags Restrictions, + /* [in] */ __RPC__in BSTR strResponse, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strPassword); + + DECLSPEC_XFGVIRT(IX509Enrollment, CreatePFX) + HRESULT ( STDMETHODCALLTYPE *CreatePFX )( + __RPC__in IX509Enrollment * This, + /* [in] */ __RPC__in BSTR strPassword, + /* [in] */ PFXExportOptions ExportOptions, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_Request) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Request )( + __RPC__in IX509Enrollment * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509Enrollment * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509Enrollment * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509Enrollment * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509Enrollment * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_NameValuePairs) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NameValuePairs )( + __RPC__in IX509Enrollment * This, + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePairs **ppValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509Enrollment * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_Status) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IX509Enrollment * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentStatus **ppValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_Certificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Certificate )( + __RPC__in IX509Enrollment * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_Response) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Response )( + __RPC__in IX509Enrollment * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_CertificateFriendlyName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CertificateFriendlyName )( + __RPC__in IX509Enrollment * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, put_CertificateFriendlyName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CertificateFriendlyName )( + __RPC__in IX509Enrollment * This, + /* [in] */ __RPC__in BSTR strValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_CertificateDescription) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CertificateDescription )( + __RPC__in IX509Enrollment * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, put_CertificateDescription) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CertificateDescription )( + __RPC__in IX509Enrollment * This, + /* [in] */ __RPC__in BSTR strValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_RequestId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestId )( + __RPC__in IX509Enrollment * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_CAConfigString) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAConfigString )( + __RPC__in IX509Enrollment * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509EnrollmentVtbl; + + interface IX509Enrollment + { + CONST_VTBL struct IX509EnrollmentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509Enrollment_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509Enrollment_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509Enrollment_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509Enrollment_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509Enrollment_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509Enrollment_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509Enrollment_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509Enrollment_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509Enrollment_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509Enrollment_InitializeFromRequest(This,pRequest) \ + ( (This)->lpVtbl -> InitializeFromRequest(This,pRequest) ) + +#define IX509Enrollment_CreateRequest(This,Encoding,pValue) \ + ( (This)->lpVtbl -> CreateRequest(This,Encoding,pValue) ) + +#define IX509Enrollment_Enroll(This) \ + ( (This)->lpVtbl -> Enroll(This) ) + +#define IX509Enrollment_InstallResponse(This,Restrictions,strResponse,Encoding,strPassword) \ + ( (This)->lpVtbl -> InstallResponse(This,Restrictions,strResponse,Encoding,strPassword) ) + +#define IX509Enrollment_CreatePFX(This,strPassword,ExportOptions,Encoding,pValue) \ + ( (This)->lpVtbl -> CreatePFX(This,strPassword,ExportOptions,Encoding,pValue) ) + +#define IX509Enrollment_get_Request(This,pValue) \ + ( (This)->lpVtbl -> get_Request(This,pValue) ) + +#define IX509Enrollment_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509Enrollment_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509Enrollment_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509Enrollment_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509Enrollment_get_NameValuePairs(This,ppValue) \ + ( (This)->lpVtbl -> get_NameValuePairs(This,ppValue) ) + +#define IX509Enrollment_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509Enrollment_get_Status(This,ppValue) \ + ( (This)->lpVtbl -> get_Status(This,ppValue) ) + +#define IX509Enrollment_get_Certificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Certificate(This,Encoding,pValue) ) + +#define IX509Enrollment_get_Response(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Response(This,Encoding,pValue) ) + +#define IX509Enrollment_get_CertificateFriendlyName(This,pValue) \ + ( (This)->lpVtbl -> get_CertificateFriendlyName(This,pValue) ) + +#define IX509Enrollment_put_CertificateFriendlyName(This,strValue) \ + ( (This)->lpVtbl -> put_CertificateFriendlyName(This,strValue) ) + +#define IX509Enrollment_get_CertificateDescription(This,pValue) \ + ( (This)->lpVtbl -> get_CertificateDescription(This,pValue) ) + +#define IX509Enrollment_put_CertificateDescription(This,strValue) \ + ( (This)->lpVtbl -> put_CertificateDescription(This,strValue) ) + +#define IX509Enrollment_get_RequestId(This,pValue) \ + ( (This)->lpVtbl -> get_RequestId(This,pValue) ) + +#define IX509Enrollment_get_CAConfigString(This,pValue) \ + ( (This)->lpVtbl -> get_CAConfigString(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509Enrollment_INTERFACE_DEFINED__ */ + + +#ifndef __IX509Enrollment2_INTERFACE_DEFINED__ +#define __IX509Enrollment2_INTERFACE_DEFINED__ + +/* interface IX509Enrollment2 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509Enrollment2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab350-217d-11da-b2a4-000e7bbb2b09") + IX509Enrollment2 : public IX509Enrollment + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromTemplate( + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE InstallResponse2( + /* [in] */ InstallResponseRestrictionFlags Restrictions, + /* [in] */ __RPC__in BSTR strResponse, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strPassword, + /* [in] */ __RPC__in BSTR strEnrollmentPolicyServerUrl, + /* [in] */ __RPC__in BSTR strEnrollmentPolicyServerID, + /* [in] */ PolicyServerUrlFlags EnrollmentPolicyServerFlags, + /* [in] */ X509EnrollmentAuthFlags authFlags) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PolicyServer( + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Template( + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RequestIdString( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509Enrollment2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509Enrollment2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509Enrollment2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509Enrollment2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509Enrollment2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509Enrollment, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509Enrollment, InitializeFromTemplateName) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplateName )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTemplateName); + + DECLSPEC_XFGVIRT(IX509Enrollment, InitializeFromRequest) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InitializeFromRequest )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ __RPC__in_opt IX509CertificateRequest *pRequest); + + DECLSPEC_XFGVIRT(IX509Enrollment, CreateRequest) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *CreateRequest )( + __RPC__in IX509Enrollment2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, Enroll) + HRESULT ( STDMETHODCALLTYPE *Enroll )( + __RPC__in IX509Enrollment2 * This); + + DECLSPEC_XFGVIRT(IX509Enrollment, InstallResponse) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InstallResponse )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ InstallResponseRestrictionFlags Restrictions, + /* [in] */ __RPC__in BSTR strResponse, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strPassword); + + DECLSPEC_XFGVIRT(IX509Enrollment, CreatePFX) + HRESULT ( STDMETHODCALLTYPE *CreatePFX )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ __RPC__in BSTR strPassword, + /* [in] */ PFXExportOptions ExportOptions, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_Request) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Request )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequest **pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_ParentWindow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentWindow )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, put_ParentWindow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ParentWindow )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ LONG Value); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_NameValuePairs) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NameValuePairs )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509NameValuePairs **ppValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_EnrollmentContext) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnrollmentContext )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__out X509CertificateEnrollmentContext *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_Status) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentStatus **ppValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_Certificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Certificate )( + __RPC__in IX509Enrollment2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_Response) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Response )( + __RPC__in IX509Enrollment2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_CertificateFriendlyName) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CertificateFriendlyName )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, put_CertificateFriendlyName) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CertificateFriendlyName )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ __RPC__in BSTR strValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_CertificateDescription) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CertificateDescription )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, put_CertificateDescription) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CertificateDescription )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ __RPC__in BSTR strValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_RequestId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestId )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment, get_CAConfigString) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAConfigString )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509Enrollment2, InitializeFromTemplate) + HRESULT ( STDMETHODCALLTYPE *InitializeFromTemplate )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ X509CertificateEnrollmentContext context, + /* [in] */ __RPC__in_opt IX509EnrollmentPolicyServer *pPolicyServer, + /* [in] */ __RPC__in_opt IX509CertificateTemplate *pTemplate); + + DECLSPEC_XFGVIRT(IX509Enrollment2, InstallResponse2) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *InstallResponse2 )( + __RPC__in IX509Enrollment2 * This, + /* [in] */ InstallResponseRestrictionFlags Restrictions, + /* [in] */ __RPC__in BSTR strResponse, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strPassword, + /* [in] */ __RPC__in BSTR strEnrollmentPolicyServerUrl, + /* [in] */ __RPC__in BSTR strEnrollmentPolicyServerID, + /* [in] */ PolicyServerUrlFlags EnrollmentPolicyServerFlags, + /* [in] */ X509EnrollmentAuthFlags authFlags); + + DECLSPEC_XFGVIRT(IX509Enrollment2, get_PolicyServer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PolicyServer )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentPolicyServer **ppPolicyServer); + + DECLSPEC_XFGVIRT(IX509Enrollment2, get_Template) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Template )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateTemplate **ppTemplate); + + DECLSPEC_XFGVIRT(IX509Enrollment2, get_RequestIdString) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestIdString )( + __RPC__in IX509Enrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509Enrollment2Vtbl; + + interface IX509Enrollment2 + { + CONST_VTBL struct IX509Enrollment2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509Enrollment2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509Enrollment2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509Enrollment2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509Enrollment2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509Enrollment2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509Enrollment2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509Enrollment2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509Enrollment2_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#define IX509Enrollment2_InitializeFromTemplateName(This,Context,strTemplateName) \ + ( (This)->lpVtbl -> InitializeFromTemplateName(This,Context,strTemplateName) ) + +#define IX509Enrollment2_InitializeFromRequest(This,pRequest) \ + ( (This)->lpVtbl -> InitializeFromRequest(This,pRequest) ) + +#define IX509Enrollment2_CreateRequest(This,Encoding,pValue) \ + ( (This)->lpVtbl -> CreateRequest(This,Encoding,pValue) ) + +#define IX509Enrollment2_Enroll(This) \ + ( (This)->lpVtbl -> Enroll(This) ) + +#define IX509Enrollment2_InstallResponse(This,Restrictions,strResponse,Encoding,strPassword) \ + ( (This)->lpVtbl -> InstallResponse(This,Restrictions,strResponse,Encoding,strPassword) ) + +#define IX509Enrollment2_CreatePFX(This,strPassword,ExportOptions,Encoding,pValue) \ + ( (This)->lpVtbl -> CreatePFX(This,strPassword,ExportOptions,Encoding,pValue) ) + +#define IX509Enrollment2_get_Request(This,pValue) \ + ( (This)->lpVtbl -> get_Request(This,pValue) ) + +#define IX509Enrollment2_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509Enrollment2_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509Enrollment2_get_ParentWindow(This,pValue) \ + ( (This)->lpVtbl -> get_ParentWindow(This,pValue) ) + +#define IX509Enrollment2_put_ParentWindow(This,Value) \ + ( (This)->lpVtbl -> put_ParentWindow(This,Value) ) + +#define IX509Enrollment2_get_NameValuePairs(This,ppValue) \ + ( (This)->lpVtbl -> get_NameValuePairs(This,ppValue) ) + +#define IX509Enrollment2_get_EnrollmentContext(This,pValue) \ + ( (This)->lpVtbl -> get_EnrollmentContext(This,pValue) ) + +#define IX509Enrollment2_get_Status(This,ppValue) \ + ( (This)->lpVtbl -> get_Status(This,ppValue) ) + +#define IX509Enrollment2_get_Certificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Certificate(This,Encoding,pValue) ) + +#define IX509Enrollment2_get_Response(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Response(This,Encoding,pValue) ) + +#define IX509Enrollment2_get_CertificateFriendlyName(This,pValue) \ + ( (This)->lpVtbl -> get_CertificateFriendlyName(This,pValue) ) + +#define IX509Enrollment2_put_CertificateFriendlyName(This,strValue) \ + ( (This)->lpVtbl -> put_CertificateFriendlyName(This,strValue) ) + +#define IX509Enrollment2_get_CertificateDescription(This,pValue) \ + ( (This)->lpVtbl -> get_CertificateDescription(This,pValue) ) + +#define IX509Enrollment2_put_CertificateDescription(This,strValue) \ + ( (This)->lpVtbl -> put_CertificateDescription(This,strValue) ) + +#define IX509Enrollment2_get_RequestId(This,pValue) \ + ( (This)->lpVtbl -> get_RequestId(This,pValue) ) + +#define IX509Enrollment2_get_CAConfigString(This,pValue) \ + ( (This)->lpVtbl -> get_CAConfigString(This,pValue) ) + + +#define IX509Enrollment2_InitializeFromTemplate(This,context,pPolicyServer,pTemplate) \ + ( (This)->lpVtbl -> InitializeFromTemplate(This,context,pPolicyServer,pTemplate) ) + +#define IX509Enrollment2_InstallResponse2(This,Restrictions,strResponse,Encoding,strPassword,strEnrollmentPolicyServerUrl,strEnrollmentPolicyServerID,EnrollmentPolicyServerFlags,authFlags) \ + ( (This)->lpVtbl -> InstallResponse2(This,Restrictions,strResponse,Encoding,strPassword,strEnrollmentPolicyServerUrl,strEnrollmentPolicyServerID,EnrollmentPolicyServerFlags,authFlags) ) + +#define IX509Enrollment2_get_PolicyServer(This,ppPolicyServer) \ + ( (This)->lpVtbl -> get_PolicyServer(This,ppPolicyServer) ) + +#define IX509Enrollment2_get_Template(This,ppTemplate) \ + ( (This)->lpVtbl -> get_Template(This,ppTemplate) ) + +#define IX509Enrollment2_get_RequestIdString(This,pValue) \ + ( (This)->lpVtbl -> get_RequestIdString(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509Enrollment2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0088 */ +/* [local] */ + +typedef +enum WebEnrollmentFlags + { + EnrollPrompt = 0x1 + } WebEnrollmentFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0088_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0088_v0_0_s_ifspec; + +#ifndef __IX509EnrollmentHelper_INTERFACE_DEFINED__ +#define __IX509EnrollmentHelper_INTERFACE_DEFINED__ + +/* interface IX509EnrollmentHelper */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509EnrollmentHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab351-217d-11da-b2a4-000e7bbb2b09") + IX509EnrollmentHelper : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE AddPolicyServer( + /* [in] */ __RPC__in BSTR strEnrollmentPolicyServerURI, + /* [in] */ __RPC__in BSTR strEnrollmentPolicyID, + /* [in] */ PolicyServerUrlFlags EnrollmentPolicyServerFlags, + /* [in] */ X509EnrollmentAuthFlags authFlags, + /* [in] */ __RPC__in BSTR strCredential, + /* [in] */ __RPC__in BSTR strPassword) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE AddEnrollmentServer( + /* [in] */ __RPC__in BSTR strEnrollmentServerURI, + /* [in] */ X509EnrollmentAuthFlags authFlags, + /* [in] */ __RPC__in BSTR strCredential, + /* [in] */ __RPC__in BSTR strPassword) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE Enroll( + /* [in] */ __RPC__in BSTR strEnrollmentPolicyServerURI, + /* [in] */ __RPC__in BSTR strTemplateName, + /* [in] */ EncodingType Encoding, + /* [in] */ WebEnrollmentFlags enrollFlags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCertificate) = 0; + + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ X509CertificateEnrollmentContext Context) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509EnrollmentHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509EnrollmentHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509EnrollmentHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509EnrollmentHelper * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509EnrollmentHelper * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509EnrollmentHelper * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509EnrollmentHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509EnrollmentHelper * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509EnrollmentHelper, AddPolicyServer) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *AddPolicyServer )( + __RPC__in IX509EnrollmentHelper * This, + /* [in] */ __RPC__in BSTR strEnrollmentPolicyServerURI, + /* [in] */ __RPC__in BSTR strEnrollmentPolicyID, + /* [in] */ PolicyServerUrlFlags EnrollmentPolicyServerFlags, + /* [in] */ X509EnrollmentAuthFlags authFlags, + /* [in] */ __RPC__in BSTR strCredential, + /* [in] */ __RPC__in BSTR strPassword); + + DECLSPEC_XFGVIRT(IX509EnrollmentHelper, AddEnrollmentServer) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *AddEnrollmentServer )( + __RPC__in IX509EnrollmentHelper * This, + /* [in] */ __RPC__in BSTR strEnrollmentServerURI, + /* [in] */ X509EnrollmentAuthFlags authFlags, + /* [in] */ __RPC__in BSTR strCredential, + /* [in] */ __RPC__in BSTR strPassword); + + DECLSPEC_XFGVIRT(IX509EnrollmentHelper, Enroll) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Enroll )( + __RPC__in IX509EnrollmentHelper * This, + /* [in] */ __RPC__in BSTR strEnrollmentPolicyServerURI, + /* [in] */ __RPC__in BSTR strTemplateName, + /* [in] */ EncodingType Encoding, + /* [in] */ WebEnrollmentFlags enrollFlags, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrCertificate); + + DECLSPEC_XFGVIRT(IX509EnrollmentHelper, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509EnrollmentHelper * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + END_INTERFACE + } IX509EnrollmentHelperVtbl; + + interface IX509EnrollmentHelper + { + CONST_VTBL struct IX509EnrollmentHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509EnrollmentHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509EnrollmentHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509EnrollmentHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509EnrollmentHelper_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509EnrollmentHelper_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509EnrollmentHelper_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509EnrollmentHelper_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509EnrollmentHelper_AddPolicyServer(This,strEnrollmentPolicyServerURI,strEnrollmentPolicyID,EnrollmentPolicyServerFlags,authFlags,strCredential,strPassword) \ + ( (This)->lpVtbl -> AddPolicyServer(This,strEnrollmentPolicyServerURI,strEnrollmentPolicyID,EnrollmentPolicyServerFlags,authFlags,strCredential,strPassword) ) + +#define IX509EnrollmentHelper_AddEnrollmentServer(This,strEnrollmentServerURI,authFlags,strCredential,strPassword) \ + ( (This)->lpVtbl -> AddEnrollmentServer(This,strEnrollmentServerURI,authFlags,strCredential,strPassword) ) + +#define IX509EnrollmentHelper_Enroll(This,strEnrollmentPolicyServerURI,strTemplateName,Encoding,enrollFlags,pstrCertificate) \ + ( (This)->lpVtbl -> Enroll(This,strEnrollmentPolicyServerURI,strTemplateName,Encoding,enrollFlags,pstrCertificate) ) + +#define IX509EnrollmentHelper_Initialize(This,Context) \ + ( (This)->lpVtbl -> Initialize(This,Context) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509EnrollmentHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IX509EnrollmentWebClassFactory_INTERFACE_DEFINED__ +#define __IX509EnrollmentWebClassFactory_INTERFACE_DEFINED__ + +/* interface IX509EnrollmentWebClassFactory */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509EnrollmentWebClassFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab349-217d-11da-b2a4-000e7bbb2b09") + IX509EnrollmentWebClassFactory : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE CreateObject( + /* [in] */ __RPC__in BSTR strProgID, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppIUnknown) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509EnrollmentWebClassFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509EnrollmentWebClassFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509EnrollmentWebClassFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509EnrollmentWebClassFactory * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509EnrollmentWebClassFactory * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509EnrollmentWebClassFactory * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509EnrollmentWebClassFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509EnrollmentWebClassFactory * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509EnrollmentWebClassFactory, CreateObject) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *CreateObject )( + __RPC__in IX509EnrollmentWebClassFactory * This, + /* [in] */ __RPC__in BSTR strProgID, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppIUnknown); + + END_INTERFACE + } IX509EnrollmentWebClassFactoryVtbl; + + interface IX509EnrollmentWebClassFactory + { + CONST_VTBL struct IX509EnrollmentWebClassFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509EnrollmentWebClassFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509EnrollmentWebClassFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509EnrollmentWebClassFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509EnrollmentWebClassFactory_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509EnrollmentWebClassFactory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509EnrollmentWebClassFactory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509EnrollmentWebClassFactory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509EnrollmentWebClassFactory_CreateObject(This,strProgID,ppIUnknown) \ + ( (This)->lpVtbl -> CreateObject(This,strProgID,ppIUnknown) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509EnrollmentWebClassFactory_INTERFACE_DEFINED__ */ + + +#ifndef __IX509MachineEnrollmentFactory_INTERFACE_DEFINED__ +#define __IX509MachineEnrollmentFactory_INTERFACE_DEFINED__ + +/* interface IX509MachineEnrollmentFactory */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509MachineEnrollmentFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab352-217d-11da-b2a4-000e7bbb2b09") + IX509MachineEnrollmentFactory : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE CreateObject( + /* [in] */ __RPC__in BSTR strProgID, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentHelper **ppIHelper) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509MachineEnrollmentFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509MachineEnrollmentFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509MachineEnrollmentFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509MachineEnrollmentFactory * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509MachineEnrollmentFactory * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509MachineEnrollmentFactory * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509MachineEnrollmentFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509MachineEnrollmentFactory * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509MachineEnrollmentFactory, CreateObject) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *CreateObject )( + __RPC__in IX509MachineEnrollmentFactory * This, + /* [in] */ __RPC__in BSTR strProgID, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentHelper **ppIHelper); + + END_INTERFACE + } IX509MachineEnrollmentFactoryVtbl; + + interface IX509MachineEnrollmentFactory + { + CONST_VTBL struct IX509MachineEnrollmentFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509MachineEnrollmentFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509MachineEnrollmentFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509MachineEnrollmentFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509MachineEnrollmentFactory_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509MachineEnrollmentFactory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509MachineEnrollmentFactory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509MachineEnrollmentFactory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509MachineEnrollmentFactory_CreateObject(This,strProgID,ppIHelper) \ + ( (This)->lpVtbl -> CreateObject(This,strProgID,ppIHelper) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509MachineEnrollmentFactory_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0091 */ +/* [local] */ + +typedef +enum CRLRevocationReason + { + XCN_CRL_REASON_UNSPECIFIED = 0, + XCN_CRL_REASON_KEY_COMPROMISE = 1, + XCN_CRL_REASON_CA_COMPROMISE = 2, + XCN_CRL_REASON_AFFILIATION_CHANGED = 3, + XCN_CRL_REASON_SUPERSEDED = 4, + XCN_CRL_REASON_CESSATION_OF_OPERATION = 5, + XCN_CRL_REASON_CERTIFICATE_HOLD = 6, + XCN_CRL_REASON_REMOVE_FROM_CRL = 8, + XCN_CRL_REASON_PRIVILEGE_WITHDRAWN = 9, + XCN_CRL_REASON_AA_COMPROMISE = 10 + } CRLRevocationReason; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0091_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0091_v0_0_s_ifspec; + +#ifndef __IX509CertificateRevocationListEntry_INTERFACE_DEFINED__ +#define __IX509CertificateRevocationListEntry_INTERFACE_DEFINED__ + +/* interface IX509CertificateRevocationListEntry */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRevocationListEntry; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab35e-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRevocationListEntry : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR SerialNumber, + /* [in] */ DATE RevocationDate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SerialNumber( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RevocationDate( + /* [retval][out] */ __RPC__out DATE *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RevocationReason( + /* [retval][out] */ __RPC__out CRLRevocationReason *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_RevocationReason( + /* [in] */ CRLRevocationReason Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_X509Extensions( + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CriticalExtensions( + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRevocationListEntryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRevocationListEntry * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRevocationListEntry * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRevocationListEntry * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntry, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR SerialNumber, + /* [in] */ DATE RevocationDate); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntry, get_SerialNumber) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SerialNumber )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntry, get_RevocationDate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RevocationDate )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [retval][out] */ __RPC__out DATE *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntry, get_RevocationReason) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RevocationReason )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [retval][out] */ __RPC__out CRLRevocationReason *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntry, put_RevocationReason) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_RevocationReason )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [in] */ CRLRevocationReason Value); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntry, get_X509Extensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntry, get_CriticalExtensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CriticalExtensions )( + __RPC__in IX509CertificateRevocationListEntry * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + END_INTERFACE + } IX509CertificateRevocationListEntryVtbl; + + interface IX509CertificateRevocationListEntry + { + CONST_VTBL struct IX509CertificateRevocationListEntryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRevocationListEntry_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRevocationListEntry_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRevocationListEntry_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRevocationListEntry_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRevocationListEntry_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRevocationListEntry_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRevocationListEntry_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRevocationListEntry_Initialize(This,Encoding,SerialNumber,RevocationDate) \ + ( (This)->lpVtbl -> Initialize(This,Encoding,SerialNumber,RevocationDate) ) + +#define IX509CertificateRevocationListEntry_get_SerialNumber(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_SerialNumber(This,Encoding,pValue) ) + +#define IX509CertificateRevocationListEntry_get_RevocationDate(This,pValue) \ + ( (This)->lpVtbl -> get_RevocationDate(This,pValue) ) + +#define IX509CertificateRevocationListEntry_get_RevocationReason(This,pValue) \ + ( (This)->lpVtbl -> get_RevocationReason(This,pValue) ) + +#define IX509CertificateRevocationListEntry_put_RevocationReason(This,Value) \ + ( (This)->lpVtbl -> put_RevocationReason(This,Value) ) + +#define IX509CertificateRevocationListEntry_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#define IX509CertificateRevocationListEntry_get_CriticalExtensions(This,ppValue) \ + ( (This)->lpVtbl -> get_CriticalExtensions(This,ppValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRevocationListEntry_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateRevocationListEntries_INTERFACE_DEFINED__ +#define __IX509CertificateRevocationListEntries_INTERFACE_DEFINED__ + +/* interface IX509CertificateRevocationListEntries */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRevocationListEntries; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab35f-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRevocationListEntries : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ItemByIndex( + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRevocationListEntry **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IX509CertificateRevocationListEntry *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ LONG Index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clear( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IndexBySerialNumber( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR SerialNumber, + /* [retval][out] */ __RPC__out LONG *pIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRange( + /* [in] */ __RPC__in_opt IX509CertificateRevocationListEntries *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRevocationListEntriesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRevocationListEntries * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRevocationListEntries * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRevocationListEntries * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntries, get_ItemByIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ItemByIndex )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [in] */ LONG Index, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRevocationListEntry **pVal); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntries, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntries, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [retval][out] */ __RPC__deref_out_opt LPUNKNOWN *pVal); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntries, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [in] */ __RPC__in_opt IX509CertificateRevocationListEntry *pVal); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntries, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [in] */ LONG Index); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntries, Clear) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clear )( + __RPC__in IX509CertificateRevocationListEntries * This); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntries, get_IndexBySerialNumber) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IndexBySerialNumber )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR SerialNumber, + /* [retval][out] */ __RPC__out LONG *pIndex); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationListEntries, AddRange) + HRESULT ( STDMETHODCALLTYPE *AddRange )( + __RPC__in IX509CertificateRevocationListEntries * This, + /* [in] */ __RPC__in_opt IX509CertificateRevocationListEntries *pValue); + + END_INTERFACE + } IX509CertificateRevocationListEntriesVtbl; + + interface IX509CertificateRevocationListEntries + { + CONST_VTBL struct IX509CertificateRevocationListEntriesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRevocationListEntries_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRevocationListEntries_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRevocationListEntries_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRevocationListEntries_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRevocationListEntries_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRevocationListEntries_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRevocationListEntries_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRevocationListEntries_get_ItemByIndex(This,Index,pVal) \ + ( (This)->lpVtbl -> get_ItemByIndex(This,Index,pVal) ) + +#define IX509CertificateRevocationListEntries_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IX509CertificateRevocationListEntries_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#define IX509CertificateRevocationListEntries_Add(This,pVal) \ + ( (This)->lpVtbl -> Add(This,pVal) ) + +#define IX509CertificateRevocationListEntries_Remove(This,Index) \ + ( (This)->lpVtbl -> Remove(This,Index) ) + +#define IX509CertificateRevocationListEntries_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#define IX509CertificateRevocationListEntries_get_IndexBySerialNumber(This,Encoding,SerialNumber,pIndex) \ + ( (This)->lpVtbl -> get_IndexBySerialNumber(This,Encoding,SerialNumber,pIndex) ) + +#define IX509CertificateRevocationListEntries_AddRange(This,pValue) \ + ( (This)->lpVtbl -> AddRange(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRevocationListEntries_INTERFACE_DEFINED__ */ + + +#ifndef __IX509CertificateRevocationList_INTERFACE_DEFINED__ +#define __IX509CertificateRevocationList_INTERFACE_DEFINED__ + +/* interface IX509CertificateRevocationList */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509CertificateRevocationList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab360-217d-11da-b2a4-000e7bbb2b09") + IX509CertificateRevocationList : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeDecode( + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_HEXRAW) = 0; + + virtual HRESULT STDMETHODCALLTYPE Encode( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ResetForEncode( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckPublicKeySignature( + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckSignature( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Issuer( + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Issuer( + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ThisUpdate( + /* [retval][out] */ __RPC__out DATE *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ThisUpdate( + /* [in] */ DATE Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NextUpdate( + /* [retval][out] */ __RPC__out DATE *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_NextUpdate( + /* [in] */ DATE Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_X509CRLEntries( + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRevocationListEntries **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_X509Extensions( + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CriticalExtensions( + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SignerCertificate( + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SignerCertificate( + /* [in] */ __RPC__in_opt ISignerCertificate *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CRLNumber( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CRLNumber( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CAVersion( + /* [retval][out] */ __RPC__out LONG *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CAVersion( + /* [in] */ LONG pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BaseCRL( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NullSigned( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_HashAlgorithm( + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue) = 0; + + virtual /* [custom][propput] */ HRESULT STDMETHODCALLTYPE put_HashAlgorithm( + /* [in] */ __RPC__in_opt IObjectId *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AlternateSignatureAlgorithm( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AlternateSignatureAlgorithm( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SignatureInformation( + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawData( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RawDataToBeSigned( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Signature( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509CertificateRevocationListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509CertificateRevocationList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509CertificateRevocationList * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509CertificateRevocationList * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509CertificateRevocationList * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509CertificateRevocationList * This); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, InitializeDecode) + HRESULT ( STDMETHODCALLTYPE *InitializeDecode )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ __RPC__in BSTR strEncodedData, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, Encode) + HRESULT ( STDMETHODCALLTYPE *Encode )( + __RPC__in IX509CertificateRevocationList * This); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, ResetForEncode) + HRESULT ( STDMETHODCALLTYPE *ResetForEncode )( + __RPC__in IX509CertificateRevocationList * This); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, CheckPublicKeySignature) + HRESULT ( STDMETHODCALLTYPE *CheckPublicKeySignature )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ __RPC__in_opt IX509PublicKey *pPublicKey); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, CheckSignature) + HRESULT ( STDMETHODCALLTYPE *CheckSignature )( + __RPC__in IX509CertificateRevocationList * This); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_Issuer) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Issuer )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__deref_out_opt IX500DistinguishedName **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, put_Issuer) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Issuer )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ __RPC__in_opt IX500DistinguishedName *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_ThisUpdate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ThisUpdate )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__out DATE *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, put_ThisUpdate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ThisUpdate )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ DATE Value); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_NextUpdate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NextUpdate )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__out DATE *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, put_NextUpdate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_NextUpdate )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ DATE Value); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_X509CRLEntries) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509CRLEntries )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRevocationListEntries **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_X509Extensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509Extensions )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__deref_out_opt IX509Extensions **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_CriticalExtensions) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CriticalExtensions )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectIds **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_SignerCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificate )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, put_SignerCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SignerCertificate )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_CRLNumber) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CRLNumber )( + __RPC__in IX509CertificateRevocationList * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, put_CRLNumber) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CRLNumber )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_CAVersion) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CAVersion )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__out LONG *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, put_CAVersion) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CAVersion )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ LONG pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_BaseCRL) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BaseCRL )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_NullSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NullSigned )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_HashAlgorithm) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HashAlgorithm )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__deref_out_opt IObjectId **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, put_HashAlgorithm) + /* [custom][propput] */ HRESULT ( STDMETHODCALLTYPE *put_HashAlgorithm )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ __RPC__in_opt IObjectId *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_AlternateSignatureAlgorithm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, put_AlternateSignatureAlgorithm) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AlternateSignatureAlgorithm )( + __RPC__in IX509CertificateRevocationList * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_SignatureInformation) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureInformation )( + __RPC__in IX509CertificateRevocationList * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SignatureInformation **ppValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_RawData) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawData )( + __RPC__in IX509CertificateRevocationList * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_RawDataToBeSigned) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RawDataToBeSigned )( + __RPC__in IX509CertificateRevocationList * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509CertificateRevocationList, get_Signature) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Signature )( + __RPC__in IX509CertificateRevocationList * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509CertificateRevocationListVtbl; + + interface IX509CertificateRevocationList + { + CONST_VTBL struct IX509CertificateRevocationListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509CertificateRevocationList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509CertificateRevocationList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509CertificateRevocationList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509CertificateRevocationList_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509CertificateRevocationList_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509CertificateRevocationList_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509CertificateRevocationList_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509CertificateRevocationList_Initialize(This) \ + ( (This)->lpVtbl -> Initialize(This) ) + +#define IX509CertificateRevocationList_InitializeDecode(This,strEncodedData,Encoding) \ + ( (This)->lpVtbl -> InitializeDecode(This,strEncodedData,Encoding) ) + +#define IX509CertificateRevocationList_Encode(This) \ + ( (This)->lpVtbl -> Encode(This) ) + +#define IX509CertificateRevocationList_ResetForEncode(This) \ + ( (This)->lpVtbl -> ResetForEncode(This) ) + +#define IX509CertificateRevocationList_CheckPublicKeySignature(This,pPublicKey) \ + ( (This)->lpVtbl -> CheckPublicKeySignature(This,pPublicKey) ) + +#define IX509CertificateRevocationList_CheckSignature(This) \ + ( (This)->lpVtbl -> CheckSignature(This) ) + +#define IX509CertificateRevocationList_get_Issuer(This,ppValue) \ + ( (This)->lpVtbl -> get_Issuer(This,ppValue) ) + +#define IX509CertificateRevocationList_put_Issuer(This,pValue) \ + ( (This)->lpVtbl -> put_Issuer(This,pValue) ) + +#define IX509CertificateRevocationList_get_ThisUpdate(This,pValue) \ + ( (This)->lpVtbl -> get_ThisUpdate(This,pValue) ) + +#define IX509CertificateRevocationList_put_ThisUpdate(This,Value) \ + ( (This)->lpVtbl -> put_ThisUpdate(This,Value) ) + +#define IX509CertificateRevocationList_get_NextUpdate(This,pValue) \ + ( (This)->lpVtbl -> get_NextUpdate(This,pValue) ) + +#define IX509CertificateRevocationList_put_NextUpdate(This,Value) \ + ( (This)->lpVtbl -> put_NextUpdate(This,Value) ) + +#define IX509CertificateRevocationList_get_X509CRLEntries(This,ppValue) \ + ( (This)->lpVtbl -> get_X509CRLEntries(This,ppValue) ) + +#define IX509CertificateRevocationList_get_X509Extensions(This,ppValue) \ + ( (This)->lpVtbl -> get_X509Extensions(This,ppValue) ) + +#define IX509CertificateRevocationList_get_CriticalExtensions(This,ppValue) \ + ( (This)->lpVtbl -> get_CriticalExtensions(This,ppValue) ) + +#define IX509CertificateRevocationList_get_SignerCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificate(This,ppValue) ) + +#define IX509CertificateRevocationList_put_SignerCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_SignerCertificate(This,pValue) ) + +#define IX509CertificateRevocationList_get_CRLNumber(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_CRLNumber(This,Encoding,pValue) ) + +#define IX509CertificateRevocationList_put_CRLNumber(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_CRLNumber(This,Encoding,Value) ) + +#define IX509CertificateRevocationList_get_CAVersion(This,pValue) \ + ( (This)->lpVtbl -> get_CAVersion(This,pValue) ) + +#define IX509CertificateRevocationList_put_CAVersion(This,pValue) \ + ( (This)->lpVtbl -> put_CAVersion(This,pValue) ) + +#define IX509CertificateRevocationList_get_BaseCRL(This,pValue) \ + ( (This)->lpVtbl -> get_BaseCRL(This,pValue) ) + +#define IX509CertificateRevocationList_get_NullSigned(This,pValue) \ + ( (This)->lpVtbl -> get_NullSigned(This,pValue) ) + +#define IX509CertificateRevocationList_get_HashAlgorithm(This,ppValue) \ + ( (This)->lpVtbl -> get_HashAlgorithm(This,ppValue) ) + +#define IX509CertificateRevocationList_put_HashAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> put_HashAlgorithm(This,pValue) ) + +#define IX509CertificateRevocationList_get_AlternateSignatureAlgorithm(This,pValue) \ + ( (This)->lpVtbl -> get_AlternateSignatureAlgorithm(This,pValue) ) + +#define IX509CertificateRevocationList_put_AlternateSignatureAlgorithm(This,Value) \ + ( (This)->lpVtbl -> put_AlternateSignatureAlgorithm(This,Value) ) + +#define IX509CertificateRevocationList_get_SignatureInformation(This,ppValue) \ + ( (This)->lpVtbl -> get_SignatureInformation(This,ppValue) ) + +#define IX509CertificateRevocationList_get_RawData(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawData(This,Encoding,pValue) ) + +#define IX509CertificateRevocationList_get_RawDataToBeSigned(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_RawDataToBeSigned(This,Encoding,pValue) ) + +#define IX509CertificateRevocationList_get_Signature(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Signature(This,Encoding,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509CertificateRevocationList_INTERFACE_DEFINED__ */ + + +#ifndef __ICertificateAttestationChallenge_INTERFACE_DEFINED__ +#define __ICertificateAttestationChallenge_INTERFACE_DEFINED__ + +/* interface ICertificateAttestationChallenge */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertificateAttestationChallenge; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6F175A7C-4A3A-40AE-9DBA-592FD6BBF9B8") + ICertificateAttestationChallenge : public IDispatch + { + public: + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strPendingFullCmcResponseWithChallenge) = 0; + + virtual /* [custom] */ HRESULT STDMETHODCALLTYPE DecryptChallenge( + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEnvelopedPkcs7ReencryptedToCA) = 0; + + virtual /* [custom][propget] */ HRESULT STDMETHODCALLTYPE get_RequestID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrRequestID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertificateAttestationChallengeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertificateAttestationChallenge * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertificateAttestationChallenge * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertificateAttestationChallenge * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertificateAttestationChallenge * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertificateAttestationChallenge * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertificateAttestationChallenge * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertificateAttestationChallenge * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertificateAttestationChallenge, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertificateAttestationChallenge * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strPendingFullCmcResponseWithChallenge); + + DECLSPEC_XFGVIRT(ICertificateAttestationChallenge, DecryptChallenge) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *DecryptChallenge )( + __RPC__in ICertificateAttestationChallenge * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEnvelopedPkcs7ReencryptedToCA); + + DECLSPEC_XFGVIRT(ICertificateAttestationChallenge, get_RequestID) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestID )( + __RPC__in ICertificateAttestationChallenge * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrRequestID); + + END_INTERFACE + } ICertificateAttestationChallengeVtbl; + + interface ICertificateAttestationChallenge + { + CONST_VTBL struct ICertificateAttestationChallengeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertificateAttestationChallenge_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertificateAttestationChallenge_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertificateAttestationChallenge_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertificateAttestationChallenge_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertificateAttestationChallenge_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertificateAttestationChallenge_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertificateAttestationChallenge_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertificateAttestationChallenge_Initialize(This,Encoding,strPendingFullCmcResponseWithChallenge) \ + ( (This)->lpVtbl -> Initialize(This,Encoding,strPendingFullCmcResponseWithChallenge) ) + +#define ICertificateAttestationChallenge_DecryptChallenge(This,Encoding,pstrEnvelopedPkcs7ReencryptedToCA) \ + ( (This)->lpVtbl -> DecryptChallenge(This,Encoding,pstrEnvelopedPkcs7ReencryptedToCA) ) + +#define ICertificateAttestationChallenge_get_RequestID(This,pstrRequestID) \ + ( (This)->lpVtbl -> get_RequestID(This,pstrRequestID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertificateAttestationChallenge_INTERFACE_DEFINED__ */ + + +#ifndef __ICertificateAttestationChallenge2_INTERFACE_DEFINED__ +#define __ICertificateAttestationChallenge2_INTERFACE_DEFINED__ + +/* interface ICertificateAttestationChallenge2 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICertificateAttestationChallenge2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4631334d-e266-47d6-bd79-be53cb2e2753") + ICertificateAttestationChallenge2 : public ICertificateAttestationChallenge + { + public: + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_KeyContainerName( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_KeyBlob( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertificateAttestationChallenge2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertificateAttestationChallenge2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertificateAttestationChallenge2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertificateAttestationChallenge2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICertificateAttestationChallenge2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICertificateAttestationChallenge2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICertificateAttestationChallenge2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICertificateAttestationChallenge2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICertificateAttestationChallenge, Initialize) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ICertificateAttestationChallenge2 * This, + /* [in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR strPendingFullCmcResponseWithChallenge); + + DECLSPEC_XFGVIRT(ICertificateAttestationChallenge, DecryptChallenge) + /* [custom] */ HRESULT ( STDMETHODCALLTYPE *DecryptChallenge )( + __RPC__in ICertificateAttestationChallenge2 * This, + /* [in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrEnvelopedPkcs7ReencryptedToCA); + + DECLSPEC_XFGVIRT(ICertificateAttestationChallenge, get_RequestID) + /* [custom][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestID )( + __RPC__in ICertificateAttestationChallenge2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrRequestID); + + DECLSPEC_XFGVIRT(ICertificateAttestationChallenge2, put_KeyContainerName) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyContainerName )( + __RPC__in ICertificateAttestationChallenge2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(ICertificateAttestationChallenge2, put_KeyBlob) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_KeyBlob )( + __RPC__in ICertificateAttestationChallenge2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + END_INTERFACE + } ICertificateAttestationChallenge2Vtbl; + + interface ICertificateAttestationChallenge2 + { + CONST_VTBL struct ICertificateAttestationChallenge2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertificateAttestationChallenge2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertificateAttestationChallenge2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertificateAttestationChallenge2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertificateAttestationChallenge2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICertificateAttestationChallenge2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICertificateAttestationChallenge2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICertificateAttestationChallenge2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICertificateAttestationChallenge2_Initialize(This,Encoding,strPendingFullCmcResponseWithChallenge) \ + ( (This)->lpVtbl -> Initialize(This,Encoding,strPendingFullCmcResponseWithChallenge) ) + +#define ICertificateAttestationChallenge2_DecryptChallenge(This,Encoding,pstrEnvelopedPkcs7ReencryptedToCA) \ + ( (This)->lpVtbl -> DecryptChallenge(This,Encoding,pstrEnvelopedPkcs7ReencryptedToCA) ) + +#define ICertificateAttestationChallenge2_get_RequestID(This,pstrRequestID) \ + ( (This)->lpVtbl -> get_RequestID(This,pstrRequestID) ) + + +#define ICertificateAttestationChallenge2_put_KeyContainerName(This,Value) \ + ( (This)->lpVtbl -> put_KeyContainerName(This,Value) ) + +#define ICertificateAttestationChallenge2_put_KeyBlob(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_KeyBlob(This,Encoding,Value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertificateAttestationChallenge2_INTERFACE_DEFINED__ */ + + +#ifndef __IX509SCEPEnrollment_INTERFACE_DEFINED__ +#define __IX509SCEPEnrollment_INTERFACE_DEFINED__ + +/* interface IX509SCEPEnrollment */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509SCEPEnrollment; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab361-217d-11da-b2a4-000e7bbb2b09") + IX509SCEPEnrollment : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IX509CertificateRequestPkcs10 *pRequest, + /* [in] */ __RPC__in BSTR strThumbprint, + /* [in] */ EncodingType ThumprintEncoding, + /* [in] */ __RPC__in BSTR strServerCertificates, + /* [defaultvalue][in] */ EncodingType Encoding = XCN_CRYPT_STRING_BASE64) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeForPending( + /* [in] */ X509CertificateEnrollmentContext Context) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRequestMessage( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRetrievePendingMessage( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRetrieveCertificateMessage( + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strIssuer, + /* [in] */ EncodingType IssuerEncoding, + /* [in] */ __RPC__in BSTR strSerialNumber, + /* [defaultvalue][in] */ EncodingType SerialNumberEncoding, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessResponseMessage( + /* [in] */ __RPC__in BSTR strResponse, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__out X509SCEPDisposition *pDisposition) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ServerCapabilities( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FailInfo( + /* [retval][out] */ __RPC__out X509SCEPFailInfo *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SignerCertificate( + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SignerCertificate( + /* [in] */ __RPC__in_opt ISignerCertificate *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_OldCertificate( + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_OldCertificate( + /* [in] */ __RPC__in_opt ISignerCertificate *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_TransactionId( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_TransactionId( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Request( + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequestPkcs10 **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CertificateFriendlyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CertificateFriendlyName( + /* [in] */ __RPC__in BSTR Value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentStatus **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Certificate( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Silent( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Silent( + /* [in] */ VARIANT_BOOL Value) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteRequest( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509SCEPEnrollmentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509SCEPEnrollment * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509SCEPEnrollment * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509SCEPEnrollment * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509SCEPEnrollment * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ __RPC__in_opt IX509CertificateRequestPkcs10 *pRequest, + /* [in] */ __RPC__in BSTR strThumbprint, + /* [in] */ EncodingType ThumprintEncoding, + /* [in] */ __RPC__in BSTR strServerCertificates, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, InitializeForPending) + HRESULT ( STDMETHODCALLTYPE *InitializeForPending )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, CreateRequestMessage) + HRESULT ( STDMETHODCALLTYPE *CreateRequestMessage )( + __RPC__in IX509SCEPEnrollment * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, CreateRetrievePendingMessage) + HRESULT ( STDMETHODCALLTYPE *CreateRetrievePendingMessage )( + __RPC__in IX509SCEPEnrollment * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, CreateRetrieveCertificateMessage) + HRESULT ( STDMETHODCALLTYPE *CreateRetrieveCertificateMessage )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strIssuer, + /* [in] */ EncodingType IssuerEncoding, + /* [in] */ __RPC__in BSTR strSerialNumber, + /* [defaultvalue][in] */ EncodingType SerialNumberEncoding, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, ProcessResponseMessage) + HRESULT ( STDMETHODCALLTYPE *ProcessResponseMessage )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ __RPC__in BSTR strResponse, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__out X509SCEPDisposition *pDisposition); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_ServerCapabilities) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServerCapabilities )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_FailInfo) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FailInfo )( + __RPC__in IX509SCEPEnrollment * This, + /* [retval][out] */ __RPC__out X509SCEPFailInfo *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_SignerCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificate )( + __RPC__in IX509SCEPEnrollment * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_SignerCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SignerCertificate )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_OldCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OldCertificate )( + __RPC__in IX509SCEPEnrollment * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_OldCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_OldCertificate )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_TransactionId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransactionId )( + __RPC__in IX509SCEPEnrollment * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_TransactionId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_TransactionId )( + __RPC__in IX509SCEPEnrollment * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_Request) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Request )( + __RPC__in IX509SCEPEnrollment * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequestPkcs10 **ppValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_CertificateFriendlyName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CertificateFriendlyName )( + __RPC__in IX509SCEPEnrollment * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_CertificateFriendlyName) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CertificateFriendlyName )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_Status) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IX509SCEPEnrollment * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentStatus **ppValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_Certificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Certificate )( + __RPC__in IX509SCEPEnrollment * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509SCEPEnrollment * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509SCEPEnrollment * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, DeleteRequest) + HRESULT ( STDMETHODCALLTYPE *DeleteRequest )( + __RPC__in IX509SCEPEnrollment * This); + + END_INTERFACE + } IX509SCEPEnrollmentVtbl; + + interface IX509SCEPEnrollment + { + CONST_VTBL struct IX509SCEPEnrollmentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509SCEPEnrollment_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509SCEPEnrollment_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509SCEPEnrollment_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509SCEPEnrollment_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509SCEPEnrollment_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509SCEPEnrollment_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509SCEPEnrollment_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509SCEPEnrollment_Initialize(This,pRequest,strThumbprint,ThumprintEncoding,strServerCertificates,Encoding) \ + ( (This)->lpVtbl -> Initialize(This,pRequest,strThumbprint,ThumprintEncoding,strServerCertificates,Encoding) ) + +#define IX509SCEPEnrollment_InitializeForPending(This,Context) \ + ( (This)->lpVtbl -> InitializeForPending(This,Context) ) + +#define IX509SCEPEnrollment_CreateRequestMessage(This,Encoding,pValue) \ + ( (This)->lpVtbl -> CreateRequestMessage(This,Encoding,pValue) ) + +#define IX509SCEPEnrollment_CreateRetrievePendingMessage(This,Encoding,pValue) \ + ( (This)->lpVtbl -> CreateRetrievePendingMessage(This,Encoding,pValue) ) + +#define IX509SCEPEnrollment_CreateRetrieveCertificateMessage(This,Context,strIssuer,IssuerEncoding,strSerialNumber,SerialNumberEncoding,Encoding,pValue) \ + ( (This)->lpVtbl -> CreateRetrieveCertificateMessage(This,Context,strIssuer,IssuerEncoding,strSerialNumber,SerialNumberEncoding,Encoding,pValue) ) + +#define IX509SCEPEnrollment_ProcessResponseMessage(This,strResponse,Encoding,pDisposition) \ + ( (This)->lpVtbl -> ProcessResponseMessage(This,strResponse,Encoding,pDisposition) ) + +#define IX509SCEPEnrollment_put_ServerCapabilities(This,Value) \ + ( (This)->lpVtbl -> put_ServerCapabilities(This,Value) ) + +#define IX509SCEPEnrollment_get_FailInfo(This,pValue) \ + ( (This)->lpVtbl -> get_FailInfo(This,pValue) ) + +#define IX509SCEPEnrollment_get_SignerCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificate(This,ppValue) ) + +#define IX509SCEPEnrollment_put_SignerCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_SignerCertificate(This,pValue) ) + +#define IX509SCEPEnrollment_get_OldCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_OldCertificate(This,ppValue) ) + +#define IX509SCEPEnrollment_put_OldCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_OldCertificate(This,pValue) ) + +#define IX509SCEPEnrollment_get_TransactionId(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_TransactionId(This,Encoding,pValue) ) + +#define IX509SCEPEnrollment_put_TransactionId(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_TransactionId(This,Encoding,Value) ) + +#define IX509SCEPEnrollment_get_Request(This,ppValue) \ + ( (This)->lpVtbl -> get_Request(This,ppValue) ) + +#define IX509SCEPEnrollment_get_CertificateFriendlyName(This,pValue) \ + ( (This)->lpVtbl -> get_CertificateFriendlyName(This,pValue) ) + +#define IX509SCEPEnrollment_put_CertificateFriendlyName(This,Value) \ + ( (This)->lpVtbl -> put_CertificateFriendlyName(This,Value) ) + +#define IX509SCEPEnrollment_get_Status(This,ppValue) \ + ( (This)->lpVtbl -> get_Status(This,ppValue) ) + +#define IX509SCEPEnrollment_get_Certificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Certificate(This,Encoding,pValue) ) + +#define IX509SCEPEnrollment_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509SCEPEnrollment_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509SCEPEnrollment_DeleteRequest(This) \ + ( (This)->lpVtbl -> DeleteRequest(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509SCEPEnrollment_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certenroll_0000_0097 */ +/* [local] */ + +typedef +enum X509SCEPProcessMessageFlags + { + SCEPProcessDefault = 0, + SCEPProcessSkipCertInstall = 0x1 + } X509SCEPProcessMessageFlags; + +typedef +enum DelayRetryAction + { + DelayRetryUnknown = 0, + DelayRetryNone = 1, + DelayRetryShort = 2, + DelayRetryLong = 3, + DelayRetrySuccess = 4, + DelayRetryPastSuccess = 5 + } DelayRetryAction; + + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0097_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0097_v0_0_s_ifspec; + +#ifndef __IX509SCEPEnrollment2_INTERFACE_DEFINED__ +#define __IX509SCEPEnrollment2_INTERFACE_DEFINED__ + +/* interface IX509SCEPEnrollment2 */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509SCEPEnrollment2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab364-217d-11da-b2a4-000e7bbb2b09") + IX509SCEPEnrollment2 : public IX509SCEPEnrollment + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateChallengeAnswerMessage( + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessResponseMessage2( + /* [in] */ X509SCEPProcessMessageFlags Flags, + /* [in] */ __RPC__in BSTR strResponse, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__out X509SCEPDisposition *pDisposition) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ResultMessageText( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DelayRetry( + /* [retval][out] */ __RPC__out DelayRetryAction *pValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ActivityId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_ActivityId( + /* [in] */ __RPC__in BSTR Value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509SCEPEnrollment2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509SCEPEnrollment2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509SCEPEnrollment2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509SCEPEnrollment2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ __RPC__in_opt IX509CertificateRequestPkcs10 *pRequest, + /* [in] */ __RPC__in BSTR strThumbprint, + /* [in] */ EncodingType ThumprintEncoding, + /* [in] */ __RPC__in BSTR strServerCertificates, + /* [defaultvalue][in] */ EncodingType Encoding); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, InitializeForPending) + HRESULT ( STDMETHODCALLTYPE *InitializeForPending )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ X509CertificateEnrollmentContext Context); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, CreateRequestMessage) + HRESULT ( STDMETHODCALLTYPE *CreateRequestMessage )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, CreateRetrievePendingMessage) + HRESULT ( STDMETHODCALLTYPE *CreateRetrievePendingMessage )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, CreateRetrieveCertificateMessage) + HRESULT ( STDMETHODCALLTYPE *CreateRetrieveCertificateMessage )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strIssuer, + /* [in] */ EncodingType IssuerEncoding, + /* [in] */ __RPC__in BSTR strSerialNumber, + /* [defaultvalue][in] */ EncodingType SerialNumberEncoding, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, ProcessResponseMessage) + HRESULT ( STDMETHODCALLTYPE *ProcessResponseMessage )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ __RPC__in BSTR strResponse, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__out X509SCEPDisposition *pDisposition); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_ServerCapabilities) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ServerCapabilities )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_FailInfo) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FailInfo )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [retval][out] */ __RPC__out X509SCEPFailInfo *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_SignerCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignerCertificate )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_SignerCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SignerCertificate )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_OldCertificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_OldCertificate )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt ISignerCertificate **ppValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_OldCertificate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_OldCertificate )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ __RPC__in_opt ISignerCertificate *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_TransactionId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_TransactionId )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_TransactionId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_TransactionId )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_Request) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Request )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509CertificateRequestPkcs10 **ppValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_CertificateFriendlyName) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CertificateFriendlyName )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_CertificateFriendlyName) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CertificateFriendlyName )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ __RPC__in BSTR Value); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_Status) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt IX509EnrollmentStatus **ppValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_Certificate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Certificate )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, get_Silent) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Silent )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, put_Silent) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Silent )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ VARIANT_BOOL Value); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment, DeleteRequest) + HRESULT ( STDMETHODCALLTYPE *DeleteRequest )( + __RPC__in IX509SCEPEnrollment2 * This); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment2, CreateChallengeAnswerMessage) + HRESULT ( STDMETHODCALLTYPE *CreateChallengeAnswerMessage )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment2, ProcessResponseMessage2) + HRESULT ( STDMETHODCALLTYPE *ProcessResponseMessage2 )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ X509SCEPProcessMessageFlags Flags, + /* [in] */ __RPC__in BSTR strResponse, + /* [defaultvalue][in] */ EncodingType Encoding, + /* [retval][out] */ __RPC__out X509SCEPDisposition *pDisposition); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment2, get_ResultMessageText) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ResultMessageText )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment2, get_DelayRetry) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DelayRetry )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [retval][out] */ __RPC__out DelayRetryAction *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment2, get_ActivityId) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActivityId )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollment2, put_ActivityId) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_ActivityId )( + __RPC__in IX509SCEPEnrollment2 * This, + /* [in] */ __RPC__in BSTR Value); + + END_INTERFACE + } IX509SCEPEnrollment2Vtbl; + + interface IX509SCEPEnrollment2 + { + CONST_VTBL struct IX509SCEPEnrollment2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509SCEPEnrollment2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509SCEPEnrollment2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509SCEPEnrollment2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509SCEPEnrollment2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509SCEPEnrollment2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509SCEPEnrollment2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509SCEPEnrollment2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509SCEPEnrollment2_Initialize(This,pRequest,strThumbprint,ThumprintEncoding,strServerCertificates,Encoding) \ + ( (This)->lpVtbl -> Initialize(This,pRequest,strThumbprint,ThumprintEncoding,strServerCertificates,Encoding) ) + +#define IX509SCEPEnrollment2_InitializeForPending(This,Context) \ + ( (This)->lpVtbl -> InitializeForPending(This,Context) ) + +#define IX509SCEPEnrollment2_CreateRequestMessage(This,Encoding,pValue) \ + ( (This)->lpVtbl -> CreateRequestMessage(This,Encoding,pValue) ) + +#define IX509SCEPEnrollment2_CreateRetrievePendingMessage(This,Encoding,pValue) \ + ( (This)->lpVtbl -> CreateRetrievePendingMessage(This,Encoding,pValue) ) + +#define IX509SCEPEnrollment2_CreateRetrieveCertificateMessage(This,Context,strIssuer,IssuerEncoding,strSerialNumber,SerialNumberEncoding,Encoding,pValue) \ + ( (This)->lpVtbl -> CreateRetrieveCertificateMessage(This,Context,strIssuer,IssuerEncoding,strSerialNumber,SerialNumberEncoding,Encoding,pValue) ) + +#define IX509SCEPEnrollment2_ProcessResponseMessage(This,strResponse,Encoding,pDisposition) \ + ( (This)->lpVtbl -> ProcessResponseMessage(This,strResponse,Encoding,pDisposition) ) + +#define IX509SCEPEnrollment2_put_ServerCapabilities(This,Value) \ + ( (This)->lpVtbl -> put_ServerCapabilities(This,Value) ) + +#define IX509SCEPEnrollment2_get_FailInfo(This,pValue) \ + ( (This)->lpVtbl -> get_FailInfo(This,pValue) ) + +#define IX509SCEPEnrollment2_get_SignerCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_SignerCertificate(This,ppValue) ) + +#define IX509SCEPEnrollment2_put_SignerCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_SignerCertificate(This,pValue) ) + +#define IX509SCEPEnrollment2_get_OldCertificate(This,ppValue) \ + ( (This)->lpVtbl -> get_OldCertificate(This,ppValue) ) + +#define IX509SCEPEnrollment2_put_OldCertificate(This,pValue) \ + ( (This)->lpVtbl -> put_OldCertificate(This,pValue) ) + +#define IX509SCEPEnrollment2_get_TransactionId(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_TransactionId(This,Encoding,pValue) ) + +#define IX509SCEPEnrollment2_put_TransactionId(This,Encoding,Value) \ + ( (This)->lpVtbl -> put_TransactionId(This,Encoding,Value) ) + +#define IX509SCEPEnrollment2_get_Request(This,ppValue) \ + ( (This)->lpVtbl -> get_Request(This,ppValue) ) + +#define IX509SCEPEnrollment2_get_CertificateFriendlyName(This,pValue) \ + ( (This)->lpVtbl -> get_CertificateFriendlyName(This,pValue) ) + +#define IX509SCEPEnrollment2_put_CertificateFriendlyName(This,Value) \ + ( (This)->lpVtbl -> put_CertificateFriendlyName(This,Value) ) + +#define IX509SCEPEnrollment2_get_Status(This,ppValue) \ + ( (This)->lpVtbl -> get_Status(This,ppValue) ) + +#define IX509SCEPEnrollment2_get_Certificate(This,Encoding,pValue) \ + ( (This)->lpVtbl -> get_Certificate(This,Encoding,pValue) ) + +#define IX509SCEPEnrollment2_get_Silent(This,pValue) \ + ( (This)->lpVtbl -> get_Silent(This,pValue) ) + +#define IX509SCEPEnrollment2_put_Silent(This,Value) \ + ( (This)->lpVtbl -> put_Silent(This,Value) ) + +#define IX509SCEPEnrollment2_DeleteRequest(This) \ + ( (This)->lpVtbl -> DeleteRequest(This) ) + + +#define IX509SCEPEnrollment2_CreateChallengeAnswerMessage(This,Encoding,pValue) \ + ( (This)->lpVtbl -> CreateChallengeAnswerMessage(This,Encoding,pValue) ) + +#define IX509SCEPEnrollment2_ProcessResponseMessage2(This,Flags,strResponse,Encoding,pDisposition) \ + ( (This)->lpVtbl -> ProcessResponseMessage2(This,Flags,strResponse,Encoding,pDisposition) ) + +#define IX509SCEPEnrollment2_get_ResultMessageText(This,pValue) \ + ( (This)->lpVtbl -> get_ResultMessageText(This,pValue) ) + +#define IX509SCEPEnrollment2_get_DelayRetry(This,pValue) \ + ( (This)->lpVtbl -> get_DelayRetry(This,pValue) ) + +#define IX509SCEPEnrollment2_get_ActivityId(This,pValue) \ + ( (This)->lpVtbl -> get_ActivityId(This,pValue) ) + +#define IX509SCEPEnrollment2_put_ActivityId(This,Value) \ + ( (This)->lpVtbl -> put_ActivityId(This,Value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509SCEPEnrollment2_INTERFACE_DEFINED__ */ + + +#ifndef __IX509SCEPEnrollmentHelper_INTERFACE_DEFINED__ +#define __IX509SCEPEnrollmentHelper_INTERFACE_DEFINED__ + +/* interface IX509SCEPEnrollmentHelper */ +/* [helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IX509SCEPEnrollmentHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("728ab365-217d-11da-b2a4-000e7bbb2b09") + IX509SCEPEnrollmentHelper : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in BSTR strServerUrl, + /* [in] */ __RPC__in BSTR strRequestHeaders, + /* [in] */ __RPC__in_opt IX509CertificateRequestPkcs10 *pRequest, + /* [in] */ __RPC__in BSTR strCACertificateThumbprint) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitializeForPending( + /* [in] */ __RPC__in BSTR strServerUrl, + /* [in] */ __RPC__in BSTR strRequestHeaders, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTransactionId) = 0; + + virtual HRESULT STDMETHODCALLTYPE Enroll( + /* [in] */ X509SCEPProcessMessageFlags ProcessFlags, + /* [retval][out] */ __RPC__out X509SCEPDisposition *pDisposition) = 0; + + virtual HRESULT STDMETHODCALLTYPE FetchPending( + /* [in] */ X509SCEPProcessMessageFlags ProcessFlags, + /* [retval][out] */ __RPC__out X509SCEPDisposition *pDisposition) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_X509SCEPEnrollment( + /* [retval][out] */ __RPC__deref_out_opt IX509SCEPEnrollment **ppValue) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ResultMessageText( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IX509SCEPEnrollmentHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IX509SCEPEnrollmentHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IX509SCEPEnrollmentHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IX509SCEPEnrollmentHelper * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IX509SCEPEnrollmentHelper * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IX509SCEPEnrollmentHelper * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IX509SCEPEnrollmentHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IX509SCEPEnrollmentHelper * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollmentHelper, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IX509SCEPEnrollmentHelper * This, + /* [in] */ __RPC__in BSTR strServerUrl, + /* [in] */ __RPC__in BSTR strRequestHeaders, + /* [in] */ __RPC__in_opt IX509CertificateRequestPkcs10 *pRequest, + /* [in] */ __RPC__in BSTR strCACertificateThumbprint); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollmentHelper, InitializeForPending) + HRESULT ( STDMETHODCALLTYPE *InitializeForPending )( + __RPC__in IX509SCEPEnrollmentHelper * This, + /* [in] */ __RPC__in BSTR strServerUrl, + /* [in] */ __RPC__in BSTR strRequestHeaders, + /* [in] */ X509CertificateEnrollmentContext Context, + /* [in] */ __RPC__in BSTR strTransactionId); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollmentHelper, Enroll) + HRESULT ( STDMETHODCALLTYPE *Enroll )( + __RPC__in IX509SCEPEnrollmentHelper * This, + /* [in] */ X509SCEPProcessMessageFlags ProcessFlags, + /* [retval][out] */ __RPC__out X509SCEPDisposition *pDisposition); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollmentHelper, FetchPending) + HRESULT ( STDMETHODCALLTYPE *FetchPending )( + __RPC__in IX509SCEPEnrollmentHelper * This, + /* [in] */ X509SCEPProcessMessageFlags ProcessFlags, + /* [retval][out] */ __RPC__out X509SCEPDisposition *pDisposition); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollmentHelper, get_X509SCEPEnrollment) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_X509SCEPEnrollment )( + __RPC__in IX509SCEPEnrollmentHelper * This, + /* [retval][out] */ __RPC__deref_out_opt IX509SCEPEnrollment **ppValue); + + DECLSPEC_XFGVIRT(IX509SCEPEnrollmentHelper, get_ResultMessageText) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ResultMessageText )( + __RPC__in IX509SCEPEnrollmentHelper * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pValue); + + END_INTERFACE + } IX509SCEPEnrollmentHelperVtbl; + + interface IX509SCEPEnrollmentHelper + { + CONST_VTBL struct IX509SCEPEnrollmentHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IX509SCEPEnrollmentHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IX509SCEPEnrollmentHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IX509SCEPEnrollmentHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IX509SCEPEnrollmentHelper_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IX509SCEPEnrollmentHelper_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IX509SCEPEnrollmentHelper_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IX509SCEPEnrollmentHelper_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IX509SCEPEnrollmentHelper_Initialize(This,strServerUrl,strRequestHeaders,pRequest,strCACertificateThumbprint) \ + ( (This)->lpVtbl -> Initialize(This,strServerUrl,strRequestHeaders,pRequest,strCACertificateThumbprint) ) + +#define IX509SCEPEnrollmentHelper_InitializeForPending(This,strServerUrl,strRequestHeaders,Context,strTransactionId) \ + ( (This)->lpVtbl -> InitializeForPending(This,strServerUrl,strRequestHeaders,Context,strTransactionId) ) + +#define IX509SCEPEnrollmentHelper_Enroll(This,ProcessFlags,pDisposition) \ + ( (This)->lpVtbl -> Enroll(This,ProcessFlags,pDisposition) ) + +#define IX509SCEPEnrollmentHelper_FetchPending(This,ProcessFlags,pDisposition) \ + ( (This)->lpVtbl -> FetchPending(This,ProcessFlags,pDisposition) ) + +#define IX509SCEPEnrollmentHelper_get_X509SCEPEnrollment(This,ppValue) \ + ( (This)->lpVtbl -> get_X509SCEPEnrollment(This,ppValue) ) + +#define IX509SCEPEnrollmentHelper_get_ResultMessageText(This,pValue) \ + ( (This)->lpVtbl -> get_ResultMessageText(This,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IX509SCEPEnrollmentHelper_INTERFACE_DEFINED__ */ + + + +#ifndef __CERTENROLLLib_LIBRARY_DEFINED__ +#define __CERTENROLLLib_LIBRARY_DEFINED__ + +/* library CERTENROLLLib */ +/* [helpstring][version][uuid] */ + +typedef +enum X509CertificateTemplateGeneralFlag + { + GeneralMachineType = 0x40, + GeneralCA = 0x80, + GeneralCrossCA = 0x800, + GeneralDefault = 0x10000, + GeneralModified = 0x20000, + GeneralDonotPersist = 0x1000 + } X509CertificateTemplateGeneralFlag; + +typedef +enum X509CertificateTemplateEnrollmentFlag + { + EnrollmentIncludeSymmetricAlgorithms = 0x1, + EnrollmentPendAllRequests = 0x2, + EnrollmentPublishToKRAContainer = 0x4, + EnrollmentPublishToDS = 0x8, + EnrollmentAutoEnrollmentCheckUserDSCertificate = 0x10, + EnrollmentAutoEnrollment = 0x20, + EnrollmentDomainAuthenticationNotRequired = 0x80, + EnrollmentPreviousApprovalValidateReenrollment = 0x40, + EnrollmentUserInteractionRequired = 0x100, + EnrollmentAddTemplateName = 0x200, + EnrollmentRemoveInvalidCertificateFromPersonalStore = 0x400, + EnrollmentAllowEnrollOnBehalfOf = 0x800, + EnrollmentAddOCSPNoCheck = 0x1000, + EnrollmentReuseKeyOnFullSmartCard = 0x2000, + EnrollmentNoRevocationInfoInCerts = 0x4000, + EnrollmentIncludeBasicConstraintsForEECerts = 0x8000, + EnrollmentPreviousApprovalKeyBasedValidateReenrollment = 0x10000, + EnrollmentCertificateIssuancePoliciesFromRequest = 0x20000, + EnrollmentSkipAutoRenewal = 0x40000 + } X509CertificateTemplateEnrollmentFlag; + +typedef +enum X509CertificateTemplateSubjectNameFlag + { + SubjectNameEnrolleeSupplies = 0x1, + SubjectNameRequireDirectoryPath = 0x80000000, + SubjectNameRequireCommonName = 0x40000000, + SubjectNameRequireEmail = 0x20000000, + SubjectNameRequireDNS = 0x10000000, + SubjectNameAndAlternativeNameOldCertSupplies = 0x8, + SubjectAlternativeNameEnrolleeSupplies = 0x10000, + SubjectAlternativeNameRequireDirectoryGUID = 0x1000000, + SubjectAlternativeNameRequireUPN = 0x2000000, + SubjectAlternativeNameRequireEmail = 0x4000000, + SubjectAlternativeNameRequireSPN = 0x800000, + SubjectAlternativeNameRequireDNS = 0x8000000, + SubjectAlternativeNameRequireDomainDNS = 0x400000 + } X509CertificateTemplateSubjectNameFlag; + +typedef +enum X509CertificateTemplatePrivateKeyFlag + { + PrivateKeyRequireArchival = 0x1, + PrivateKeyExportable = 0x10, + PrivateKeyRequireStrongKeyProtection = 0x20, + PrivateKeyRequireAlternateSignatureAlgorithm = 0x40, + PrivateKeyRequireSameKeyRenewal = 0x80, + PrivateKeyUseLegacyProvider = 0x100, + PrivateKeyEKTrustOnUse = 0x200, + PrivateKeyEKValidateCert = 0x400, + PrivateKeyEKValidateKey = 0x800, + PrivateKeyAttestNone = 0, + PrivateKeyAttestPreferred = 0x1000, + PrivateKeyAttestRequired = 0x2000, + PrivateKeyAttestMask = 0x3000, + PrivateKeyAttestWithoutPolicy = 0x4000, + PrivateKeyServerVersionMask = 0xf0000, + PrivateKeyServerVersionShift = 16, + PrivateKeyHelloKspKey = 0x100000, + PrivateKeyHelloLogonKey = 0x200000, + PrivateKeyClientVersionMask = 0xf000000, + PrivateKeyClientVersionShift = 24 + } X509CertificateTemplatePrivateKeyFlag; + + +EXTERN_C const IID LIBID_CERTENROLLLib; + +EXTERN_C const CLSID CLSID_CObjectId; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2000-217d-11da-b2a4-000e7bbb2b09") +CObjectId; +#endif + +EXTERN_C const CLSID CLSID_CObjectIds; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2001-217d-11da-b2a4-000e7bbb2b09") +CObjectIds; +#endif + +EXTERN_C const CLSID CLSID_CBinaryConverter; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2002-217d-11da-b2a4-000e7bbb2b09") +CBinaryConverter; +#endif + +EXTERN_C const CLSID CLSID_CX500DistinguishedName; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2003-217d-11da-b2a4-000e7bbb2b09") +CX500DistinguishedName; +#endif + +EXTERN_C const CLSID CLSID_CCspInformation; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2007-217d-11da-b2a4-000e7bbb2b09") +CCspInformation; +#endif + +EXTERN_C const CLSID CLSID_CCspInformations; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2008-217d-11da-b2a4-000e7bbb2b09") +CCspInformations; +#endif + +EXTERN_C const CLSID CLSID_CCspStatus; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2009-217d-11da-b2a4-000e7bbb2b09") +CCspStatus; +#endif + +EXTERN_C const CLSID CLSID_CX509PublicKey; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e200b-217d-11da-b2a4-000e7bbb2b09") +CX509PublicKey; +#endif + +EXTERN_C const CLSID CLSID_CX509PrivateKey; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e200c-217d-11da-b2a4-000e7bbb2b09") +CX509PrivateKey; +#endif + +EXTERN_C const CLSID CLSID_CX509EndorsementKey; + +#ifdef __cplusplus + +class DECLSPEC_UUID("11A25A1D-B9A3-4EDD-AF83-3B59ADBED361") +CX509EndorsementKey; +#endif + +EXTERN_C const CLSID CLSID_CX509Extension; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e200d-217d-11da-b2a4-000e7bbb2b09") +CX509Extension; +#endif + +EXTERN_C const CLSID CLSID_CX509Extensions; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e200e-217d-11da-b2a4-000e7bbb2b09") +CX509Extensions; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionKeyUsage; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e200f-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionKeyUsage; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionEnhancedKeyUsage; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2010-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionEnhancedKeyUsage; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionTemplateName; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2011-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionTemplateName; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionTemplate; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2012-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionTemplate; +#endif + +EXTERN_C const CLSID CLSID_CAlternativeName; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2013-217d-11da-b2a4-000e7bbb2b09") +CAlternativeName; +#endif + +EXTERN_C const CLSID CLSID_CAlternativeNames; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2014-217d-11da-b2a4-000e7bbb2b09") +CAlternativeNames; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionAlternativeNames; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2015-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionAlternativeNames; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionBasicConstraints; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2016-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionBasicConstraints; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionSubjectKeyIdentifier; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2017-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionSubjectKeyIdentifier; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionAuthorityKeyIdentifier; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2018-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionAuthorityKeyIdentifier; +#endif + +EXTERN_C const CLSID CLSID_CSmimeCapability; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2019-217d-11da-b2a4-000e7bbb2b09") +CSmimeCapability; +#endif + +EXTERN_C const CLSID CLSID_CSmimeCapabilities; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e201a-217d-11da-b2a4-000e7bbb2b09") +CSmimeCapabilities; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionSmimeCapabilities; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e201b-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionSmimeCapabilities; +#endif + +EXTERN_C const CLSID CLSID_CPolicyQualifier; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e201c-217d-11da-b2a4-000e7bbb2b09") +CPolicyQualifier; +#endif + +EXTERN_C const CLSID CLSID_CPolicyQualifiers; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e201d-217d-11da-b2a4-000e7bbb2b09") +CPolicyQualifiers; +#endif + +EXTERN_C const CLSID CLSID_CCertificatePolicy; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e201e-217d-11da-b2a4-000e7bbb2b09") +CCertificatePolicy; +#endif + +EXTERN_C const CLSID CLSID_CCertificatePolicies; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e201f-217d-11da-b2a4-000e7bbb2b09") +CCertificatePolicies; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionCertificatePolicies; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2020-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionCertificatePolicies; +#endif + +EXTERN_C const CLSID CLSID_CX509ExtensionMSApplicationPolicies; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2021-217d-11da-b2a4-000e7bbb2b09") +CX509ExtensionMSApplicationPolicies; +#endif + +EXTERN_C const CLSID CLSID_CX509Attribute; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2022-217d-11da-b2a4-000e7bbb2b09") +CX509Attribute; +#endif + +EXTERN_C const CLSID CLSID_CX509Attributes; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2023-217d-11da-b2a4-000e7bbb2b09") +CX509Attributes; +#endif + +EXTERN_C const CLSID CLSID_CX509AttributeExtensions; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2024-217d-11da-b2a4-000e7bbb2b09") +CX509AttributeExtensions; +#endif + +EXTERN_C const CLSID CLSID_CX509AttributeClientId; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2025-217d-11da-b2a4-000e7bbb2b09") +CX509AttributeClientId; +#endif + +EXTERN_C const CLSID CLSID_CX509AttributeRenewalCertificate; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2026-217d-11da-b2a4-000e7bbb2b09") +CX509AttributeRenewalCertificate; +#endif + +EXTERN_C const CLSID CLSID_CX509AttributeArchiveKey; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2027-217d-11da-b2a4-000e7bbb2b09") +CX509AttributeArchiveKey; +#endif + +EXTERN_C const CLSID CLSID_CX509AttributeArchiveKeyHash; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2028-217d-11da-b2a4-000e7bbb2b09") +CX509AttributeArchiveKeyHash; +#endif + +EXTERN_C const CLSID CLSID_CX509AttributeOSVersion; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e202a-217d-11da-b2a4-000e7bbb2b09") +CX509AttributeOSVersion; +#endif + +EXTERN_C const CLSID CLSID_CX509AttributeCspProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e202b-217d-11da-b2a4-000e7bbb2b09") +CX509AttributeCspProvider; +#endif + +EXTERN_C const CLSID CLSID_CCryptAttribute; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e202c-217d-11da-b2a4-000e7bbb2b09") +CCryptAttribute; +#endif + +EXTERN_C const CLSID CLSID_CCryptAttributes; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e202d-217d-11da-b2a4-000e7bbb2b09") +CCryptAttributes; +#endif + +EXTERN_C const CLSID CLSID_CCertProperty; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e202e-217d-11da-b2a4-000e7bbb2b09") +CCertProperty; +#endif + +EXTERN_C const CLSID CLSID_CCertProperties; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e202f-217d-11da-b2a4-000e7bbb2b09") +CCertProperties; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyFriendlyName; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2030-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyFriendlyName; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyDescription; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2031-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyDescription; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyAutoEnroll; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2032-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyAutoEnroll; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyRequestOriginator; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2033-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyRequestOriginator; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertySHA1Hash; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2034-217d-11da-b2a4-000e7bbb2b09") +CCertPropertySHA1Hash; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyKeyProvInfo; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2036-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyKeyProvInfo; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyArchived; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2037-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyArchived; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyBackedUp; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2038-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyBackedUp; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyEnrollment; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2039-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyEnrollment; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyRenewal; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e203a-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyRenewal; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyArchivedKeyHash; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e203b-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyArchivedKeyHash; +#endif + +EXTERN_C const CLSID CLSID_CCertPropertyEnrollmentPolicyServer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e204c-217d-11da-b2a4-000e7bbb2b09") +CCertPropertyEnrollmentPolicyServer; +#endif + +EXTERN_C const CLSID CLSID_CSignerCertificate; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e203d-217d-11da-b2a4-000e7bbb2b09") +CSignerCertificate; +#endif + +EXTERN_C const CLSID CLSID_CX509NameValuePair; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e203f-217d-11da-b2a4-000e7bbb2b09") +CX509NameValuePair; +#endif + +EXTERN_C const CLSID CLSID_CCertificateAttestationChallenge; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1362ADA1-EB60-456A-B6E1-118050DB741B") +CCertificateAttestationChallenge; +#endif + +EXTERN_C const CLSID CLSID_CX509CertificateRequestPkcs10; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2042-217d-11da-b2a4-000e7bbb2b09") +CX509CertificateRequestPkcs10; +#endif + +EXTERN_C const CLSID CLSID_CX509CertificateRequestCertificate; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2043-217d-11da-b2a4-000e7bbb2b09") +CX509CertificateRequestCertificate; +#endif + +EXTERN_C const CLSID CLSID_CX509CertificateRequestPkcs7; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2044-217d-11da-b2a4-000e7bbb2b09") +CX509CertificateRequestPkcs7; +#endif + +EXTERN_C const CLSID CLSID_CX509CertificateRequestCmc; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2045-217d-11da-b2a4-000e7bbb2b09") +CX509CertificateRequestCmc; +#endif + +EXTERN_C const CLSID CLSID_CX509Enrollment; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2046-217d-11da-b2a4-000e7bbb2b09") +CX509Enrollment; +#endif + +EXTERN_C const CLSID CLSID_CX509EnrollmentWebClassFactory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2049-217d-11da-b2a4-000e7bbb2b09") +CX509EnrollmentWebClassFactory; +#endif + +EXTERN_C const CLSID CLSID_CX509EnrollmentHelper; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2050-217d-11da-b2a4-000e7bbb2b09") +CX509EnrollmentHelper; +#endif + +EXTERN_C const CLSID CLSID_CX509MachineEnrollmentFactory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2051-217d-11da-b2a4-000e7bbb2b09") +CX509MachineEnrollmentFactory; +#endif + +EXTERN_C const CLSID CLSID_CX509EnrollmentPolicyActiveDirectory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("91f39027-217f-11da-b2a4-000e7bbb2b09") +CX509EnrollmentPolicyActiveDirectory; +#endif + +EXTERN_C const CLSID CLSID_CX509EnrollmentPolicyWebService; + +#ifdef __cplusplus + +class DECLSPEC_UUID("91f39028-217f-11da-b2a4-000e7bbb2b09") +CX509EnrollmentPolicyWebService; +#endif + +EXTERN_C const CLSID CLSID_CX509PolicyServerListManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("91f39029-217f-11da-b2a4-000e7bbb2b09") +CX509PolicyServerListManager; +#endif + +EXTERN_C const CLSID CLSID_CX509PolicyServerUrl; + +#ifdef __cplusplus + +class DECLSPEC_UUID("91f3902a-217f-11da-b2a4-000e7bbb2b09") +CX509PolicyServerUrl; +#endif + +EXTERN_C const CLSID CLSID_CX509CertificateTemplateADWritable; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8336E323-2E6A-4a04-937C-548F681839B3") +CX509CertificateTemplateADWritable; +#endif + +EXTERN_C const CLSID CLSID_CX509CertificateRevocationListEntry; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e205e-217d-11da-b2a4-000e7bbb2b09") +CX509CertificateRevocationListEntry; +#endif + +EXTERN_C const CLSID CLSID_CX509CertificateRevocationListEntries; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e205f-217d-11da-b2a4-000e7bbb2b09") +CX509CertificateRevocationListEntries; +#endif + +EXTERN_C const CLSID CLSID_CX509CertificateRevocationList; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2060-217d-11da-b2a4-000e7bbb2b09") +CX509CertificateRevocationList; +#endif + +EXTERN_C const CLSID CLSID_CX509SCEPEnrollment; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2061-217d-11da-b2a4-000e7bbb2b09") +CX509SCEPEnrollment; +#endif + +EXTERN_C const CLSID CLSID_CX509SCEPEnrollmentHelper; + +#ifdef __cplusplus + +class DECLSPEC_UUID("884e2062-217d-11da-b2a4-000e7bbb2b09") +CX509SCEPEnrollmentHelper; +#endif +#endif /* __CERTENROLLLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_certenroll_0000_0100 */ +/* [local] */ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ +typedef +enum ImportPFXFlags + { + ImportNone = 0, + ImportMachineContext = 0x1, + ImportForceOverwrite = 0x2, + ImportSilent = 0x4, + ImportSaveProperties = 0x8, + ImportExportable = 0x10, + ImportExportableEncrypted = 0x20, + ImportNoUserProtected = 0x40, + ImportUserProtected = 0x80, + ImportUserProtectedHigh = 0x100, + ImportInstallCertificate = 0x200, + ImportInstallChain = 0x400, + ImportInstallChainAndRoot = 0x800 + } ImportPFXFlags; + +#ifdef __WINCRYPT_H__ +typedef HRESULT (FNIMPORTPFXTOPROVIDER)( + _In_ HWND hWndParent, + _In_reads_bytes_(cbPFX) BYTE const *pbPFX, + _In_ DWORD cbPFX, + _In_ ImportPFXFlags ImportFlags, + _In_opt_ PCWSTR pwszPassword, + _In_opt_ PCWSTR pwszProviderName, + _In_opt_ PCWSTR pwszReaderName, + _In_opt_ PCWSTR pwszContainerNamePrefix, + _In_opt_ PCWSTR pwszPin, + _In_opt_ PCWSTR pwszFriendlyName, + _Out_opt_ DWORD *pcCertOut, + _Outptr_opt_result_buffer_(*pcCertOut) PCCERT_CONTEXT **prgpCertOut); +typedef VOID (FNIMPORTPFXTOPROVIDERFREEDATA)( + _In_ DWORD cCert, + _In_reads_opt_(cCert) PCCERT_CONTEXT *rgpCert); +FNIMPORTPFXTOPROVIDER ImportPFXToProvider; +FNIMPORTPFXTOPROVIDERFREEDATA ImportPFXToProviderFreeData; +#endif // __WINCRYPT_H__ +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0100_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certenroll_0000_0100_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/certreqd.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/certreqd.h new file mode 100644 index 0000000000000000000000000000000000000000..f3dffca11c11c386b44237cb24ac0d3676d39b8f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/certreqd.h @@ -0,0 +1,412 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __certreqd_h__ +#define __certreqd_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICertRequestD_FWD_DEFINED__ +#define __ICertRequestD_FWD_DEFINED__ +typedef interface ICertRequestD ICertRequestD; + +#endif /* __ICertRequestD_FWD_DEFINED__ */ + + +#ifndef __ICertRequestD2_FWD_DEFINED__ +#define __ICertRequestD2_FWD_DEFINED__ +typedef interface ICertRequestD2 ICertRequestD2; + +#endif /* __ICertRequestD2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "certbase.h" +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_certreqd_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_certreqd_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certreqd_0000_0000_v0_0_s_ifspec; + +#ifndef __ICertRequestD_INTERFACE_DEFINED__ +#define __ICertRequestD_INTERFACE_DEFINED__ + +/* interface ICertRequestD */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICertRequestD; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d99e6e70-fc88-11d0-b498-00a0c90312f3") + ICertRequestD : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Request( + /* [in] */ DWORD dwFlags, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [ref][out][in] */ __RPC__inout DWORD *pdwRequestId, + /* [out] */ __RPC__out DWORD *pdwDisposition, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAttributes, + /* [ref][in] */ __RPC__in const CERTTRANSBLOB *pctbRequest, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbCertChain, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbEncodedCert, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbDispositionMessage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCACert( + /* [in] */ DWORD fchain, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbOut) = 0; + + virtual HRESULT STDMETHODCALLTYPE Ping( + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertRequestDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertRequestD * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertRequestD * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertRequestD * This); + + DECLSPEC_XFGVIRT(ICertRequestD, Request) + HRESULT ( STDMETHODCALLTYPE *Request )( + __RPC__in ICertRequestD * This, + /* [in] */ DWORD dwFlags, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [ref][out][in] */ __RPC__inout DWORD *pdwRequestId, + /* [out] */ __RPC__out DWORD *pdwDisposition, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAttributes, + /* [ref][in] */ __RPC__in const CERTTRANSBLOB *pctbRequest, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbCertChain, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbEncodedCert, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbDispositionMessage); + + DECLSPEC_XFGVIRT(ICertRequestD, GetCACert) + HRESULT ( STDMETHODCALLTYPE *GetCACert )( + __RPC__in ICertRequestD * This, + /* [in] */ DWORD fchain, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbOut); + + DECLSPEC_XFGVIRT(ICertRequestD, Ping) + HRESULT ( STDMETHODCALLTYPE *Ping )( + __RPC__in ICertRequestD * This, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority); + + END_INTERFACE + } ICertRequestDVtbl; + + interface ICertRequestD + { + CONST_VTBL struct ICertRequestDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertRequestD_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertRequestD_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertRequestD_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertRequestD_Request(This,dwFlags,pwszAuthority,pdwRequestId,pdwDisposition,pwszAttributes,pctbRequest,pctbCertChain,pctbEncodedCert,pctbDispositionMessage) \ + ( (This)->lpVtbl -> Request(This,dwFlags,pwszAuthority,pdwRequestId,pdwDisposition,pwszAttributes,pctbRequest,pctbCertChain,pctbEncodedCert,pctbDispositionMessage) ) + +#define ICertRequestD_GetCACert(This,fchain,pwszAuthority,pctbOut) \ + ( (This)->lpVtbl -> GetCACert(This,fchain,pwszAuthority,pctbOut) ) + +#define ICertRequestD_Ping(This,pwszAuthority) \ + ( (This)->lpVtbl -> Ping(This,pwszAuthority) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertRequestD_INTERFACE_DEFINED__ */ + + +#ifndef __ICertRequestD2_INTERFACE_DEFINED__ +#define __ICertRequestD2_INTERFACE_DEFINED__ + +/* interface ICertRequestD2 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ICertRequestD2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5422fd3a-d4b8-4cef-a12e-e87d4ca22e90") + ICertRequestD2 : public ICertRequestD + { + public: + virtual HRESULT STDMETHODCALLTYPE Request2( + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [in] */ DWORD dwFlags, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszSerialNumber, + /* [ref][out][in] */ __RPC__inout DWORD *pdwRequestId, + /* [out] */ __RPC__out DWORD *pdwDisposition, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAttributes, + /* [ref][in] */ __RPC__in const CERTTRANSBLOB *pctbRequest, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbFullResponse, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbEncodedCert, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbDispositionMessage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAProperty( + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbPropertyValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAPropertyInfo( + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [out] */ __RPC__out LONG *pcProperty, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbPropInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE Ping2( + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICertRequestD2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICertRequestD2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICertRequestD2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICertRequestD2 * This); + + DECLSPEC_XFGVIRT(ICertRequestD, Request) + HRESULT ( STDMETHODCALLTYPE *Request )( + __RPC__in ICertRequestD2 * This, + /* [in] */ DWORD dwFlags, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [ref][out][in] */ __RPC__inout DWORD *pdwRequestId, + /* [out] */ __RPC__out DWORD *pdwDisposition, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAttributes, + /* [ref][in] */ __RPC__in const CERTTRANSBLOB *pctbRequest, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbCertChain, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbEncodedCert, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbDispositionMessage); + + DECLSPEC_XFGVIRT(ICertRequestD, GetCACert) + HRESULT ( STDMETHODCALLTYPE *GetCACert )( + __RPC__in ICertRequestD2 * This, + /* [in] */ DWORD fchain, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbOut); + + DECLSPEC_XFGVIRT(ICertRequestD, Ping) + HRESULT ( STDMETHODCALLTYPE *Ping )( + __RPC__in ICertRequestD2 * This, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority); + + DECLSPEC_XFGVIRT(ICertRequestD2, Request2) + HRESULT ( STDMETHODCALLTYPE *Request2 )( + __RPC__in ICertRequestD2 * This, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [in] */ DWORD dwFlags, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszSerialNumber, + /* [ref][out][in] */ __RPC__inout DWORD *pdwRequestId, + /* [out] */ __RPC__out DWORD *pdwDisposition, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAttributes, + /* [ref][in] */ __RPC__in const CERTTRANSBLOB *pctbRequest, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbFullResponse, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbEncodedCert, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbDispositionMessage); + + DECLSPEC_XFGVIRT(ICertRequestD2, GetCAProperty) + HRESULT ( STDMETHODCALLTYPE *GetCAProperty )( + __RPC__in ICertRequestD2 * This, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [in] */ LONG PropId, + /* [in] */ LONG PropIndex, + /* [in] */ LONG PropType, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbPropertyValue); + + DECLSPEC_XFGVIRT(ICertRequestD2, GetCAPropertyInfo) + HRESULT ( STDMETHODCALLTYPE *GetCAPropertyInfo )( + __RPC__in ICertRequestD2 * This, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority, + /* [out] */ __RPC__out LONG *pcProperty, + /* [ref][out] */ __RPC__out CERTTRANSBLOB *pctbPropInfo); + + DECLSPEC_XFGVIRT(ICertRequestD2, Ping2) + HRESULT ( STDMETHODCALLTYPE *Ping2 )( + __RPC__in ICertRequestD2 * This, + /* [range][unique][string][in] */ __RPC__in_opt_string const wchar_t *pwszAuthority); + + END_INTERFACE + } ICertRequestD2Vtbl; + + interface ICertRequestD2 + { + CONST_VTBL struct ICertRequestD2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICertRequestD2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICertRequestD2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICertRequestD2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICertRequestD2_Request(This,dwFlags,pwszAuthority,pdwRequestId,pdwDisposition,pwszAttributes,pctbRequest,pctbCertChain,pctbEncodedCert,pctbDispositionMessage) \ + ( (This)->lpVtbl -> Request(This,dwFlags,pwszAuthority,pdwRequestId,pdwDisposition,pwszAttributes,pctbRequest,pctbCertChain,pctbEncodedCert,pctbDispositionMessage) ) + +#define ICertRequestD2_GetCACert(This,fchain,pwszAuthority,pctbOut) \ + ( (This)->lpVtbl -> GetCACert(This,fchain,pwszAuthority,pctbOut) ) + +#define ICertRequestD2_Ping(This,pwszAuthority) \ + ( (This)->lpVtbl -> Ping(This,pwszAuthority) ) + + +#define ICertRequestD2_Request2(This,pwszAuthority,dwFlags,pwszSerialNumber,pdwRequestId,pdwDisposition,pwszAttributes,pctbRequest,pctbFullResponse,pctbEncodedCert,pctbDispositionMessage) \ + ( (This)->lpVtbl -> Request2(This,pwszAuthority,dwFlags,pwszSerialNumber,pdwRequestId,pdwDisposition,pwszAttributes,pctbRequest,pctbFullResponse,pctbEncodedCert,pctbDispositionMessage) ) + +#define ICertRequestD2_GetCAProperty(This,pwszAuthority,PropId,PropIndex,PropType,pctbPropertyValue) \ + ( (This)->lpVtbl -> GetCAProperty(This,pwszAuthority,PropId,PropIndex,PropType,pctbPropertyValue) ) + +#define ICertRequestD2_GetCAPropertyInfo(This,pwszAuthority,pcProperty,pctbPropInfo) \ + ( (This)->lpVtbl -> GetCAPropertyInfo(This,pwszAuthority,pcProperty,pctbPropInfo) ) + +#define ICertRequestD2_Ping2(This,pwszAuthority) \ + ( (This)->lpVtbl -> Ping2(This,pwszAuthority) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICertRequestD2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_certreqd_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_certreqd_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_certreqd_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cfapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cfapi.h new file mode 100644 index 0000000000000000000000000000000000000000..8a77485d62a8ec71f9158425c95a101dc747aeba --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cfapi.h @@ -0,0 +1,1175 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + cfapi.h + +Abstract: + + This module defines the constants, data structures, and exported functions + for the Cloud Files API. + +--*/ + +#ifndef CFAPI_H +#define CFAPI_H + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION( WINAPI_PARTITION_DESKTOP ) + +#if ( NTDDI_VERSION >= NTDDI_WIN10_RS2 ) + +#pragma region Common Structures + +#define CF_EOF ( -1LL ) +#define CF_REQUEST_KEY_DEFAULT ( 0 ) + + +#define DECLARE_OPAQUE_KEY( name ) \ + typedef struct name##__ { \ + LONGLONG Internal; \ + } name, *P##name + +DECLARE_OPAQUE_KEY( CF_CONNECTION_KEY ); + +typedef LARGE_INTEGER CF_TRANSFER_KEY; +typedef LARGE_INTEGER CF_REQUEST_KEY; + +#ifdef __cplusplus + +#define DEFINE_USHORT_ENUM(ENUMTYPE) \ + struct ENUMTYPE##_USHORT { \ + USHORT us; \ + ENUMTYPE##_USHORT() { us = 0; } \ + ENUMTYPE##_USHORT(const ENUMTYPE e) { us = (USHORT)e; } \ + operator ENUMTYPE() const { return (ENUMTYPE)us; } \ + ENUMTYPE##_USHORT &operator|=(const ENUMTYPE##_USHORT &e) { \ + us |= e.us; \ + return *this; \ + } \ + ENUMTYPE##_USHORT &operator&=(const ENUMTYPE##_USHORT &e) { \ + us &= e.us; \ + return *this; \ + } \ + }; + +#else + +#define DEFINE_USHORT_ENUM( ENUMTYPE ) typedef USHORT ENUMTYPE##_USHORT + +#endif + +#define CF_PLACEHOLDER_MAX_FILE_IDENTITY_LENGTH 4096 + +typedef struct CF_FS_METADATA { + FILE_BASIC_INFO BasicInfo; + LARGE_INTEGER FileSize; +} CF_FS_METADATA; + +typedef enum CF_PLACEHOLDER_CREATE_FLAGS { + CF_PLACEHOLDER_CREATE_FLAG_NONE = 0x00000000, + CF_PLACEHOLDER_CREATE_FLAG_DISABLE_ON_DEMAND_POPULATION = 0x00000001, + CF_PLACEHOLDER_CREATE_FLAG_MARK_IN_SYNC = 0x00000002, + CF_PLACEHOLDER_CREATE_FLAG_SUPERSEDE = 0x00000004, + CF_PLACEHOLDER_CREATE_FLAG_ALWAYS_FULL = 0x00000008, +} CF_PLACEHOLDER_CREATE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_PLACEHOLDER_CREATE_FLAGS ); + +typedef struct CF_PLACEHOLDER_CREATE_INFO { + LPCWSTR RelativeFileName; + CF_FS_METADATA FsMetadata; + LPCVOID FileIdentity; + DWORD FileIdentityLength; + CF_PLACEHOLDER_CREATE_FLAGS Flags; + HRESULT Result; + USN CreateUsn; +} CF_PLACEHOLDER_CREATE_INFO; + +typedef enum CF_SYNC_PROVIDER_STATUS { + CF_PROVIDER_STATUS_DISCONNECTED = 0x00000000, + CF_PROVIDER_STATUS_IDLE = 0x00000001, + CF_PROVIDER_STATUS_POPULATE_NAMESPACE = 0x00000002, + CF_PROVIDER_STATUS_POPULATE_METADATA = 0x00000004, + CF_PROVIDER_STATUS_POPULATE_CONTENT = 0x00000008, + CF_PROVIDER_STATUS_SYNC_INCREMENTAL = 0x00000010, + CF_PROVIDER_STATUS_SYNC_FULL = 0x00000020, + CF_PROVIDER_STATUS_CONNECTIVITY_LOST = 0x00000040, + + CF_PROVIDER_STATUS_CLEAR_FLAGS = 0x80000000, + CF_PROVIDER_STATUS_TERMINATED = 0xC0000001, + CF_PROVIDER_STATUS_ERROR = 0xC0000002, +} CF_SYNC_PROVIDER_STATUS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_SYNC_PROVIDER_STATUS ); + +typedef struct CF_PROCESS_INFO { + DWORD StructSize; + DWORD ProcessId; + PCWSTR ImagePath; + PCWSTR PackageName; + PCWSTR ApplicationId; + PCWSTR CommandLine; + DWORD SessionId; +} CF_PROCESS_INFO; + +#pragma endregion + + +#pragma region Platform APIs + +typedef struct CF_PLATFORM_INFO { + DWORD BuildNumber; + DWORD RevisionNumber; + DWORD IntegrationNumber; +} CF_PLATFORM_INFO; + +STDAPI +CfGetPlatformInfo ( + _Out_ CF_PLATFORM_INFO *PlatformVersion + ); + +#pragma endregion + + +// +// Sync Engine APIs +// + +#pragma region Sync Engine APIs + +typedef enum CF_REGISTER_FLAGS { + CF_REGISTER_FLAG_NONE = 0x00000000, + CF_REGISTER_FLAG_UPDATE = 0x00000001, + CF_REGISTER_FLAG_DISABLE_ON_DEMAND_POPULATION_ON_ROOT = 0x00000002, + CF_REGISTER_FLAG_MARK_IN_SYNC_ON_ROOT = 0x00000004, +} CF_REGISTER_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_REGISTER_FLAGS ); + +typedef enum CF_HYDRATION_POLICY_PRIMARY { + CF_HYDRATION_POLICY_PARTIAL = 0, + CF_HYDRATION_POLICY_PROGRESSIVE = 1, + CF_HYDRATION_POLICY_FULL = 2, + CF_HYDRATION_POLICY_ALWAYS_FULL = 3, +} CF_HYDRATION_POLICY_PRIMARY; + +DEFINE_USHORT_ENUM( CF_HYDRATION_POLICY_PRIMARY ); + +typedef enum CF_HYDRATION_POLICY_MODIFIER { + CF_HYDRATION_POLICY_MODIFIER_NONE = 0x0000, + CF_HYDRATION_POLICY_MODIFIER_VALIDATION_REQUIRED = 0x0001, + CF_HYDRATION_POLICY_MODIFIER_STREAMING_ALLOWED = 0x0002, + CF_HYDRATION_POLICY_MODIFIER_AUTO_DEHYDRATION_ALLOWED = 0x0004, + CF_HYDRATION_POLICY_MODIFIER_ALLOW_FULL_RESTART_HYDRATION = 0x0008, +} CF_HYDRATION_POLICY_MODIFIER; + +DEFINE_USHORT_ENUM( CF_HYDRATION_POLICY_MODIFIER ); +DEFINE_ENUM_FLAG_OPERATORS( CF_HYDRATION_POLICY_MODIFIER ); + +typedef struct CF_HYDRATION_POLICY { + CF_HYDRATION_POLICY_PRIMARY_USHORT Primary; + CF_HYDRATION_POLICY_MODIFIER_USHORT Modifier; +} CF_HYDRATION_POLICY; + +typedef enum CF_POPULATION_POLICY_PRIMARY { + CF_POPULATION_POLICY_PARTIAL = 0, + CF_POPULATION_POLICY_FULL = 2, + CF_POPULATION_POLICY_ALWAYS_FULL = 3, +} CF_POPULATION_POLICY_PRIMARY; + +DEFINE_USHORT_ENUM( CF_POPULATION_POLICY_PRIMARY ); + +typedef enum CF_POPULATION_POLICY_MODIFIER { + CF_POPULATION_POLICY_MODIFIER_NONE = 0x0000, +} CF_POPULATION_POLICY_MODIFIER; + +DEFINE_USHORT_ENUM( CF_POPULATION_POLICY_MODIFIER ); +DEFINE_ENUM_FLAG_OPERATORS( CF_POPULATION_POLICY_MODIFIER ); + +typedef struct CF_POPULATION_POLICY { + CF_POPULATION_POLICY_PRIMARY_USHORT Primary; + CF_POPULATION_POLICY_MODIFIER_USHORT Modifier; +} CF_POPULATION_POLICY; + +typedef enum CF_PLACEHOLDER_MANAGEMENT_POLICY { + CF_PLACEHOLDER_MANAGEMENT_POLICY_DEFAULT = 0x00000000, + CF_PLACEHOLDER_MANAGEMENT_POLICY_CREATE_UNRESTRICTED = 0x00000001, + CF_PLACEHOLDER_MANAGEMENT_POLICY_CONVERT_TO_UNRESTRICTED = 0x00000002, + CF_PLACEHOLDER_MANAGEMENT_POLICY_UPDATE_UNRESTRICTED = 0x00000004, +} CF_PLACEHOLDER_MANAGEMENT_POLICY; + +typedef enum CF_INSYNC_POLICY { + CF_INSYNC_POLICY_NONE = 0x00000000, + CF_INSYNC_POLICY_TRACK_FILE_CREATION_TIME = 0x00000001, + CF_INSYNC_POLICY_TRACK_FILE_READONLY_ATTRIBUTE = 0x00000002, + CF_INSYNC_POLICY_TRACK_FILE_HIDDEN_ATTRIBUTE = 0x00000004, + CF_INSYNC_POLICY_TRACK_FILE_SYSTEM_ATTRIBUTE = 0x00000008, + CF_INSYNC_POLICY_TRACK_DIRECTORY_CREATION_TIME = 0x00000010, + CF_INSYNC_POLICY_TRACK_DIRECTORY_READONLY_ATTRIBUTE = 0x00000020, + CF_INSYNC_POLICY_TRACK_DIRECTORY_HIDDEN_ATTRIBUTE = 0x00000040, + CF_INSYNC_POLICY_TRACK_DIRECTORY_SYSTEM_ATTRIBUTE = 0x00000080, + CF_INSYNC_POLICY_TRACK_FILE_LAST_WRITE_TIME = 0x00000100, + CF_INSYNC_POLICY_TRACK_DIRECTORY_LAST_WRITE_TIME = 0x00000200, + CF_INSYNC_POLICY_TRACK_FILE_ALL = 0x0055550f, + CF_INSYNC_POLICY_TRACK_DIRECTORY_ALL = 0x00aaaaf0, + CF_INSYNC_POLICY_TRACK_ALL = 0x00ffffff, + CF_INSYNC_POLICY_PRESERVE_INSYNC_FOR_SYNC_ENGINE = 0x80000000, +} CF_INSYNC_POLICY; + +DEFINE_ENUM_FLAG_OPERATORS( CF_INSYNC_POLICY ); + +typedef enum CF_HARDLINK_POLICY { + CF_HARDLINK_POLICY_NONE = 0x00000000, + CF_HARDLINK_POLICY_ALLOWED = 0x00000001, +} CF_HARDLINK_POLICY; + +DEFINE_ENUM_FLAG_OPERATORS( CF_HARDLINK_POLICY ); + +typedef struct CF_SYNC_POLICIES { + ULONG StructSize; + CF_HYDRATION_POLICY Hydration; + CF_POPULATION_POLICY Population; + CF_INSYNC_POLICY InSync; + CF_HARDLINK_POLICY HardLink; + CF_PLACEHOLDER_MANAGEMENT_POLICY PlaceholderManagement; +} CF_SYNC_POLICIES; + +typedef struct CF_SYNC_REGISTRATION { + ULONG StructSize; + LPCWSTR ProviderName; + LPCWSTR ProviderVersion; + _Field_size_bytes_( SyncRootIdentityLength ) LPCVOID SyncRootIdentity; + DWORD SyncRootIdentityLength; + _Field_size_bytes_( FileIdentityLength ) LPCVOID FileIdentity; + DWORD FileIdentityLength; + GUID ProviderId; +} CF_SYNC_REGISTRATION; + +STDAPI +CfRegisterSyncRoot ( + _In_ LPCWSTR SyncRootPath, + _In_ CONST CF_SYNC_REGISTRATION *Registration, + _In_ CONST CF_SYNC_POLICIES *Policies, + _In_ CF_REGISTER_FLAGS RegisterFlags + ); + +STDAPI +CfUnregisterSyncRoot ( + _In_ LPCWSTR SyncRootPath + ); + +#define CF_MAX_PRIORITY_HINT 15 + + +typedef struct CF_CALLBACK_INFO { + DWORD StructSize; + CF_CONNECTION_KEY ConnectionKey; + LPVOID CallbackContext; + PCWSTR VolumeGuidName; + PCWSTR VolumeDosName; + DWORD VolumeSerialNumber; + LARGE_INTEGER SyncRootFileId; + _Field_size_bytes_( SyncRootIdentityLength ) LPCVOID SyncRootIdentity; + DWORD SyncRootIdentityLength; + LARGE_INTEGER FileId; + LARGE_INTEGER FileSize; + _Field_size_bytes_( FileIdentityLength ) LPCVOID FileIdentity; + DWORD FileIdentityLength; + PCWSTR NormalizedPath; + CF_TRANSFER_KEY TransferKey; + UCHAR PriorityHint; + PCORRELATION_VECTOR CorrelationVector; + CF_PROCESS_INFO* ProcessInfo; + CF_REQUEST_KEY RequestKey; +} CF_CALLBACK_INFO; + + +typedef enum CF_CALLBACK_CANCEL_FLAGS { + CF_CALLBACK_CANCEL_FLAG_NONE = 0x00000000, + CF_CALLBACK_CANCEL_FLAG_IO_TIMEOUT = 0x00000001, + CF_CALLBACK_CANCEL_FLAG_IO_ABORTED = 0x00000002, +} CF_CALLBACK_CANCEL_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_CANCEL_FLAGS ); + +typedef enum CF_CALLBACK_FETCH_DATA_FLAGS { + CF_CALLBACK_FETCH_DATA_FLAG_NONE = 0x00000000, + CF_CALLBACK_FETCH_DATA_FLAG_RECOVERY = 0x00000001, + CF_CALLBACK_FETCH_DATA_FLAG_EXPLICIT_HYDRATION = 0x00000002, +} CF_CALLBACK_FETCH_DATA_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_FETCH_DATA_FLAGS ); + +typedef enum CF_CALLBACK_VALIDATE_DATA_FLAGS { + CF_CALLBACK_VALIDATE_DATA_FLAG_NONE = 0x00000000, + CF_CALLBACK_VALIDATE_DATA_FLAG_EXPLICIT_HYDRATION = 0x00000002, +} CF_CALLBACK_VALIDATE_DATA_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_VALIDATE_DATA_FLAGS ); + +typedef enum CF_CALLBACK_FETCH_PLACEHOLDERS_FLAGS { + CF_CALLBACK_FETCH_PLACEHOLDERS_FLAG_NONE = 0x00000000, +} CF_CALLBACK_FETCH_PLACEHOLDERS_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_FETCH_PLACEHOLDERS_FLAGS ); + +typedef enum CF_CALLBACK_OPEN_COMPLETION_FLAGS { + CF_CALLBACK_OPEN_COMPLETION_FLAG_NONE = 0x00000000, + CF_CALLBACK_OPEN_COMPLETION_FLAG_PLACEHOLDER_UNKNOWN = 0x00000001, + CF_CALLBACK_OPEN_COMPLETION_FLAG_PLACEHOLDER_UNSUPPORTED = 0x00000002, +} CF_CALLBACK_OPEN_COMPLETION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_OPEN_COMPLETION_FLAGS ); + +typedef enum CF_CALLBACK_CLOSE_COMPLETION_FLAGS { + CF_CALLBACK_CLOSE_COMPLETION_FLAG_NONE = 0x00000000, + CF_CALLBACK_CLOSE_COMPLETION_FLAG_DELETED = 0x00000001, +} CF_CALLBACK_CLOSE_COMPLETION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_CLOSE_COMPLETION_FLAGS ); + +typedef enum CF_CALLBACK_DEHYDRATE_FLAGS { + CF_CALLBACK_DEHYDRATE_FLAG_NONE = 0x00000000, + CF_CALLBACK_DEHYDRATE_FLAG_BACKGROUND = 0x00000001, +} CF_CALLBACK_DEHYDRATE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_DEHYDRATE_FLAGS ); + +typedef enum CF_CALLBACK_DEHYDRATE_COMPLETION_FLAGS { + CF_CALLBACK_DEHYDRATE_COMPLETION_FLAG_NONE = 0x00000000, + CF_CALLBACK_DEHYDRATE_COMPLETION_FLAG_BACKGROUND = 0x00000001, + CF_CALLBACK_DEHYDRATE_COMPLETION_FLAG_DEHYDRATED = 0x00000002, +} CF_CALLBACK_DEHYDRATE_COMPLETION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_DEHYDRATE_COMPLETION_FLAGS ); + +typedef enum CF_CALLBACK_DELETE_FLAGS { + CF_CALLBACK_DELETE_FLAG_NONE = 0x00000000, + CF_CALLBACK_DELETE_FLAG_IS_DIRECTORY = 0x00000001, + CF_CALLBACK_DELETE_FLAG_IS_UNDELETE = 0x00000002, +} CF_CALLBACK_DELETE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_DELETE_FLAGS ); + +typedef enum CF_CALLBACK_DELETE_COMPLETION_FLAGS { + CF_CALLBACK_DELETE_COMPLETION_FLAG_NONE = 0x00000000, +} CF_CALLBACK_DELETE_COMPLETION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_DELETE_COMPLETION_FLAGS ); + +typedef enum CF_CALLBACK_RENAME_FLAGS { + CF_CALLBACK_RENAME_FLAG_NONE = 0x00000000, + CF_CALLBACK_RENAME_FLAG_IS_DIRECTORY = 0x00000001, + CF_CALLBACK_RENAME_FLAG_SOURCE_IN_SCOPE = 0x00000002, + CF_CALLBACK_RENAME_FLAG_TARGET_IN_SCOPE = 0x00000004, +} CF_CALLBACK_RENAME_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_RENAME_FLAGS ); + +typedef enum CF_CALLBACK_RENAME_COMPLETION_FLAGS { + CF_CALLBACK_RENAME_COMPLETION_FLAG_NONE = 0x00000000, +} CF_CALLBACK_RENAME_COMPLETION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CALLBACK_RENAME_COMPLETION_FLAGS ); + +typedef enum CF_CALLBACK_DEHYDRATION_REASON { + + CF_CALLBACK_DEHYDRATION_REASON_NONE, + CF_CALLBACK_DEHYDRATION_REASON_USER_MANUAL, + CF_CALLBACK_DEHYDRATION_REASON_SYSTEM_LOW_SPACE, + CF_CALLBACK_DEHYDRATION_REASON_SYSTEM_INACTIVITY, + CF_CALLBACK_DEHYDRATION_REASON_SYSTEM_OS_UPGRADE, + +} CF_CALLBACK_DEHYDRATION_REASON; + +#pragma warning( push ) +#pragma warning( disable : 4201 ) + +typedef struct CF_CALLBACK_PARAMETERS { + + ULONG ParamSize; + + union { + + struct { + + CF_CALLBACK_CANCEL_FLAGS Flags; + + union { + + struct { + LARGE_INTEGER FileOffset; + LARGE_INTEGER Length; + } FetchData; + + } DUMMYUNIONNAME; + + } Cancel; + + struct { + CF_CALLBACK_FETCH_DATA_FLAGS Flags; + LARGE_INTEGER RequiredFileOffset; + LARGE_INTEGER RequiredLength; + LARGE_INTEGER OptionalFileOffset; + LARGE_INTEGER OptionalLength; + LARGE_INTEGER LastDehydrationTime; + CF_CALLBACK_DEHYDRATION_REASON LastDehydrationReason; + } FetchData; + + struct { + CF_CALLBACK_VALIDATE_DATA_FLAGS Flags; + LARGE_INTEGER RequiredFileOffset; + LARGE_INTEGER RequiredLength; + } ValidateData; + + struct { + CF_CALLBACK_FETCH_PLACEHOLDERS_FLAGS Flags; + PCWSTR Pattern; + } FetchPlaceholders; + + struct { + CF_CALLBACK_OPEN_COMPLETION_FLAGS Flags; + } OpenCompletion; + + struct { + CF_CALLBACK_CLOSE_COMPLETION_FLAGS Flags; + } CloseCompletion; + + struct { + CF_CALLBACK_DEHYDRATE_FLAGS Flags; + CF_CALLBACK_DEHYDRATION_REASON Reason; + } Dehydrate; + + struct { + CF_CALLBACK_DEHYDRATE_COMPLETION_FLAGS Flags; + CF_CALLBACK_DEHYDRATION_REASON Reason; + } DehydrateCompletion; + + struct { + CF_CALLBACK_DELETE_FLAGS Flags; + } Delete; + + struct { + CF_CALLBACK_DELETE_COMPLETION_FLAGS Flags; + } DeleteCompletion; + + struct { + CF_CALLBACK_RENAME_FLAGS Flags; + PCWSTR TargetPath; + } Rename; + + struct { + CF_CALLBACK_RENAME_COMPLETION_FLAGS Flags; + PCWSTR SourcePath; + } RenameCompletion; + + } DUMMYUNIONNAME; + +} CF_CALLBACK_PARAMETERS; + +#pragma warning( pop ) + +typedef +VOID +(CALLBACK *CF_CALLBACK) ( + _In_ CONST CF_CALLBACK_INFO *CallbackInfo, + _In_ CONST CF_CALLBACK_PARAMETERS *CallbackParameters + ); + +typedef enum CF_CALLBACK_TYPE { + CF_CALLBACK_TYPE_FETCH_DATA, + CF_CALLBACK_TYPE_VALIDATE_DATA, + CF_CALLBACK_TYPE_CANCEL_FETCH_DATA, + CF_CALLBACK_TYPE_FETCH_PLACEHOLDERS, + CF_CALLBACK_TYPE_CANCEL_FETCH_PLACEHOLDERS, + CF_CALLBACK_TYPE_NOTIFY_FILE_OPEN_COMPLETION, + CF_CALLBACK_TYPE_NOTIFY_FILE_CLOSE_COMPLETION, + CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE, + CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE_COMPLETION, + CF_CALLBACK_TYPE_NOTIFY_DELETE, + CF_CALLBACK_TYPE_NOTIFY_DELETE_COMPLETION, + CF_CALLBACK_TYPE_NOTIFY_RENAME, + CF_CALLBACK_TYPE_NOTIFY_RENAME_COMPLETION, + CF_CALLBACK_TYPE_NONE = 0xffffffff +} CF_CALLBACK_TYPE; + +typedef struct CF_CALLBACK_REGISTRATION { + CF_CALLBACK_TYPE Type; + CF_CALLBACK Callback; +} CF_CALLBACK_REGISTRATION; + +#define CF_CALLBACK_REGISTRATION_END {CF_CALLBACK_TYPE_NONE, NULL} + +typedef enum CF_CONNECT_FLAGS { + CF_CONNECT_FLAG_NONE = 0x00000000, + CF_CONNECT_FLAG_REQUIRE_PROCESS_INFO = 0x00000002, + CF_CONNECT_FLAG_REQUIRE_FULL_FILE_PATH = 0x00000004, + CF_CONNECT_FLAG_BLOCK_SELF_IMPLICIT_HYDRATION = 0x00000008, +} CF_CONNECT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CONNECT_FLAGS ); + +STDAPI +CfConnectSyncRoot ( + _In_ LPCWSTR SyncRootPath, + _In_ CONST CF_CALLBACK_REGISTRATION *CallbackTable, + _In_opt_ LPCVOID CallbackContext, + _In_ CF_CONNECT_FLAGS ConnectFlags, + _Out_ CF_CONNECTION_KEY *ConnectionKey + ); + +STDAPI +CfDisconnectSyncRoot ( + _In_ CF_CONNECTION_KEY ConnectionKey + ); + +STDAPI +CfGetTransferKey( + _In_ HANDLE FileHandle, + _Out_ CF_TRANSFER_KEY* TransferKey + ); + +STDAPI_(VOID) +CfReleaseTransferKey( + _In_ HANDLE FileHandle, + _Out_ CF_TRANSFER_KEY* TransferKey + ); + + +typedef enum CF_OPERATION_TYPE { + CF_OPERATION_TYPE_TRANSFER_DATA, + CF_OPERATION_TYPE_RETRIEVE_DATA, + CF_OPERATION_TYPE_ACK_DATA, + CF_OPERATION_TYPE_RESTART_HYDRATION, + CF_OPERATION_TYPE_TRANSFER_PLACEHOLDERS, + CF_OPERATION_TYPE_ACK_DEHYDRATE, + CF_OPERATION_TYPE_ACK_DELETE, + CF_OPERATION_TYPE_ACK_RENAME, +} CF_OPERATION_TYPE; + + +typedef struct CF_SYNC_STATUS { + ULONG StructSize; + ULONG Code; + ULONG DescriptionOffset; + ULONG DescriptionLength; + ULONG DeviceIdOffset; + ULONG DeviceIdLength; +} CF_SYNC_STATUS; + + +typedef struct CF_OPERATION_INFO { + ULONG StructSize; + CF_OPERATION_TYPE Type; + CF_CONNECTION_KEY ConnectionKey; + CF_TRANSFER_KEY TransferKey; + CONST CORRELATION_VECTOR* CorrelationVector; + CONST CF_SYNC_STATUS* SyncStatus; + CF_REQUEST_KEY RequestKey; +} CF_OPERATION_INFO; + + +typedef enum CF_OPERATION_TRANSFER_DATA_FLAGS { + CF_OPERATION_TRANSFER_DATA_FLAG_NONE = 0x00000000, +} CF_OPERATION_TRANSFER_DATA_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_OPERATION_TRANSFER_DATA_FLAGS ); + +typedef enum CF_OPERATION_RETRIEVE_DATA_FLAGS { + CF_OPERATION_RETRIEVE_DATA_FLAG_NONE = 0x00000000, +} CF_OPERATION_RETRIEVE_DATA_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_OPERATION_RETRIEVE_DATA_FLAGS ); + +typedef enum CF_OPERATION_ACK_DATA_FLAGS { + CF_OPERATION_ACK_DATA_FLAG_NONE = 0x00000000, +} CF_OPERATION_ACK_DATA_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_OPERATION_ACK_DATA_FLAGS ); + +typedef enum CF_OPERATION_RESTART_HYDRATION_FLAGS { + CF_OPERATION_RESTART_HYDRATION_FLAG_NONE = 0x00000000, + CF_OPERATION_RESTART_HYDRATION_FLAG_MARK_IN_SYNC = 0x00000001, +} CF_OPERATION_RESTART_HYDRATION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_OPERATION_RESTART_HYDRATION_FLAGS ); + +typedef enum CF_OPERATION_TRANSFER_PLACEHOLDERS_FLAGS { + CF_OPERATION_TRANSFER_PLACEHOLDERS_FLAG_NONE = 0x00000000, + CF_OPERATION_TRANSFER_PLACEHOLDERS_FLAG_STOP_ON_ERROR = 0x00000001, + CF_OPERATION_TRANSFER_PLACEHOLDERS_FLAG_DISABLE_ON_DEMAND_POPULATION = 0x00000002, +} CF_OPERATION_TRANSFER_PLACEHOLDERS_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_OPERATION_TRANSFER_PLACEHOLDERS_FLAGS ); + +typedef enum CF_OPERATION_ACK_DEHYDRATE_FLAGS { + CF_OPERATION_ACK_DEHYDRATE_FLAG_NONE = 0x00000000, +} CF_OPERATION_ACK_DEHYDRATE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_OPERATION_ACK_DEHYDRATE_FLAGS ); + +typedef enum CF_OPERATION_ACK_RENAME_FLAGS { + CF_OPERATION_ACK_RENAME_FLAG_NONE = 0x00000000, +} CF_OPERATION_ACK_RENAME_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_OPERATION_ACK_RENAME_FLAGS ); + +typedef enum CF_OPERATION_ACK_DELETE_FLAGS { + CF_OPERATION_ACK_DELETE_FLAG_NONE = 0x00000000, +} CF_OPERATION_ACK_DELETE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_OPERATION_ACK_DELETE_FLAGS ); + +#pragma warning( push ) +#pragma warning( disable : 4201 ) + +typedef struct CF_OPERATION_PARAMETERS { + + ULONG ParamSize; + + union { + + struct { + CF_OPERATION_TRANSFER_DATA_FLAGS Flags; + NTSTATUS CompletionStatus; + _Field_size_bytes_( Length.QuadPart ) LPCVOID Buffer; + LARGE_INTEGER Offset; + LARGE_INTEGER Length; + } TransferData; + + struct { + CF_OPERATION_RETRIEVE_DATA_FLAGS Flags; + _Field_size_bytes_( Length.QuadPart ) LPVOID Buffer; + LARGE_INTEGER Offset; + LARGE_INTEGER Length; + LARGE_INTEGER ReturnedLength; + } RetrieveData; + + struct { + CF_OPERATION_ACK_DATA_FLAGS Flags; + NTSTATUS CompletionStatus; + LARGE_INTEGER Offset; + LARGE_INTEGER Length; + } AckData; + + struct { + CF_OPERATION_RESTART_HYDRATION_FLAGS Flags; + CONST CF_FS_METADATA* FsMetadata; + _Field_size_bytes_( FileIdentityLength ) LPCVOID FileIdentity; + DWORD FileIdentityLength; + } RestartHydration; + + struct { + CF_OPERATION_TRANSFER_PLACEHOLDERS_FLAGS Flags; + NTSTATUS CompletionStatus; + LARGE_INTEGER PlaceholderTotalCount; + CF_PLACEHOLDER_CREATE_INFO* PlaceholderArray; + DWORD PlaceholderCount; + DWORD EntriesProcessed; + } TransferPlaceholders; + + struct { + CF_OPERATION_ACK_DEHYDRATE_FLAGS Flags; + NTSTATUS CompletionStatus; + _Field_size_bytes_( FileIdentityLength ) LPCVOID FileIdentity; + DWORD FileIdentityLength; + } AckDehydrate; + + struct { + CF_OPERATION_ACK_RENAME_FLAGS Flags; + NTSTATUS CompletionStatus; + } AckRename; + + struct { + CF_OPERATION_ACK_DELETE_FLAGS Flags; + NTSTATUS CompletionStatus; + } AckDelete; + + } DUMMYUNIONNAME; + +} CF_OPERATION_PARAMETERS; + +#pragma warning( pop ) + +STDAPI +CfExecute( + _In_ CONST CF_OPERATION_INFO *OpInfo, + _Inout_ CF_OPERATION_PARAMETERS *OpParams + ); + + +STDAPI +CfUpdateSyncProviderStatus( + _In_ CF_CONNECTION_KEY ConnectionKey, + _In_ CF_SYNC_PROVIDER_STATUS ProviderStatus + ); + +STDAPI +CfQuerySyncProviderStatus( + _In_ CF_CONNECTION_KEY ConnectionKey, + _Out_ CF_SYNC_PROVIDER_STATUS *ProviderStatus + ); + +#pragma endregion + + +STDAPI +CfReportSyncStatus( + _In_ LPCWSTR SyncRootPath, + _In_opt_ CF_SYNC_STATUS *SyncStatus + ); + + +// +// Placeholder Management APIs +// + +#pragma region Placeholder Management APIs + +typedef enum CF_CREATE_FLAGS { + CF_CREATE_FLAG_NONE = 0x00000000, + CF_CREATE_FLAG_STOP_ON_ERROR = 0x00000001, +} CF_CREATE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CREATE_FLAGS ); + +STDAPI +CfCreatePlaceholders ( + _In_ LPCWSTR BaseDirectoryPath, + _Inout_updates_(PlaceholderCount) CF_PLACEHOLDER_CREATE_INFO *PlaceholderArray, + _In_ DWORD PlaceholderCount, + _In_ CF_CREATE_FLAGS CreateFlags, + _Out_opt_ PDWORD EntriesProcessed + ); + +typedef enum CF_OPEN_FILE_FLAGS { + CF_OPEN_FILE_FLAG_NONE = 0x00000000, + CF_OPEN_FILE_FLAG_EXCLUSIVE = 0x00000001, + CF_OPEN_FILE_FLAG_WRITE_ACCESS = 0x00000002, + CF_OPEN_FILE_FLAG_DELETE_ACCESS = 0x00000004, + CF_OPEN_FILE_FLAG_FOREGROUND = 0x00000008, +} CF_OPEN_FILE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_OPEN_FILE_FLAGS ); + +STDAPI +CfOpenFileWithOplock ( + _In_ LPCWSTR FilePath, + _In_ CF_OPEN_FILE_FLAGS Flags, + _Out_ PHANDLE ProtectedHandle + ); + +STDAPI_( BOOLEAN ) +CfReferenceProtectedHandle ( + _In_ HANDLE ProtectedHandle + ); + +STDAPI_( HANDLE ) +CfGetWin32HandleFromProtectedHandle ( + _In_ HANDLE ProtectedHandle + ); + +STDAPI_( VOID ) +CfReleaseProtectedHandle( + _In_ HANDLE ProtectedHandle + ); + +STDAPI_(VOID) +CfCloseHandle( + _In_ HANDLE FileHandle + ); + +typedef struct CF_FILE_RANGE { + LARGE_INTEGER StartingOffset; + LARGE_INTEGER Length; +} CF_FILE_RANGE; + +typedef enum CF_CONVERT_FLAGS { + CF_CONVERT_FLAG_NONE = 0x00000000, + CF_CONVERT_FLAG_MARK_IN_SYNC = 0x00000001, + CF_CONVERT_FLAG_DEHYDRATE = 0x00000002, + CF_CONVERT_FLAG_ENABLE_ON_DEMAND_POPULATION = 0x00000004, + CF_CONVERT_FLAG_ALWAYS_FULL = 0x00000008, + CF_CONVERT_FLAG_FORCE_CONVERT_TO_CLOUD_FILE = 0x00000010, +} CF_CONVERT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_CONVERT_FLAGS ); + +STDAPI +CfConvertToPlaceholder ( + _In_ HANDLE FileHandle, + _In_reads_bytes_opt_(FileIdentityLength) LPCVOID FileIdentity, + _In_ DWORD FileIdentityLength, + _In_ CF_CONVERT_FLAGS ConvertFlags, + _Out_opt_ USN *ConvertUsn, + _Inout_opt_ LPOVERLAPPED Overlapped + ); + +typedef enum CF_UPDATE_FLAGS { + CF_UPDATE_FLAG_NONE = 0x00000000, + CF_UPDATE_FLAG_VERIFY_IN_SYNC = 0x00000001, + CF_UPDATE_FLAG_MARK_IN_SYNC = 0x00000002, + CF_UPDATE_FLAG_DEHYDRATE = 0x00000004, + CF_UPDATE_FLAG_ENABLE_ON_DEMAND_POPULATION = 0x00000008, + CF_UPDATE_FLAG_DISABLE_ON_DEMAND_POPULATION = 0x00000010, + CF_UPDATE_FLAG_REMOVE_FILE_IDENTITY = 0x00000020, + CF_UPDATE_FLAG_CLEAR_IN_SYNC = 0x00000040, + CF_UPDATE_FLAG_REMOVE_PROPERTY = 0x00000080, + CF_UPDATE_FLAG_PASSTHROUGH_FS_METADATA = 0x00000100, + CF_UPDATE_FLAG_ALWAYS_FULL = 0x00000200, + CF_UPDATE_FLAG_ALLOW_PARTIAL = 0x00000400, +} CF_UPDATE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_UPDATE_FLAGS ); + +STDAPI +CfUpdatePlaceholder ( + _In_ HANDLE FileHandle, + _In_opt_ CONST CF_FS_METADATA *FsMetadata, + _In_reads_bytes_opt_(FileIdentityLength) LPCVOID FileIdentity, + _In_ DWORD FileIdentityLength, + _In_reads_opt_(DehydrateRangeCount) CONST CF_FILE_RANGE *DehydrateRangeArray, + _In_ DWORD DehydrateRangeCount, + _In_ CF_UPDATE_FLAGS UpdateFlags, + _Inout_opt_ USN *UpdateUsn, + _Inout_opt_ LPOVERLAPPED Overlapped + ); + +typedef enum CF_REVERT_FLAGS { + CF_REVERT_FLAG_NONE = 0x00000000, +} CF_REVERT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_REVERT_FLAGS ); + +STDAPI +CfRevertPlaceholder ( + _In_ HANDLE FileHandle, + _In_ CF_REVERT_FLAGS RevertFlags, + _Inout_opt_ LPOVERLAPPED Overlapped + ); + +typedef enum CF_HYDRATE_FLAGS { + CF_HYDRATE_FLAG_NONE = 0x00000000, +} CF_HYDRATE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_HYDRATE_FLAGS ); + +STDAPI +CfHydratePlaceholder ( + _In_ HANDLE FileHandle, + _In_ LARGE_INTEGER StartingOffset, + _In_ LARGE_INTEGER Length, + _In_ CF_HYDRATE_FLAGS HydrateFlags, + _Inout_opt_ LPOVERLAPPED Overlapped + ); + +typedef enum CF_DEHYDRATE_FLAGS { + CF_DEHYDRATE_FLAG_NONE = 0x00000000, + CF_DEHYDRATE_FLAG_BACKGROUND = 0x00000001, +} CF_DEHYDRATE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_DEHYDRATE_FLAGS ); + +STDAPI +CfDehydratePlaceholder ( + _In_ HANDLE FileHandle, + _In_ LARGE_INTEGER StartingOffset, + _In_ LARGE_INTEGER Length, + _In_ CF_DEHYDRATE_FLAGS DehydrateFlags, + _Inout_opt_ LPOVERLAPPED Overlapped + ); + +typedef enum CF_PIN_STATE { + CF_PIN_STATE_UNSPECIFIED = 0, + CF_PIN_STATE_PINNED = 1, + CF_PIN_STATE_UNPINNED = 2, + CF_PIN_STATE_EXCLUDED = 3, + CF_PIN_STATE_INHERIT = 4 // set only +} CF_PIN_STATE; + +typedef enum CF_SET_PIN_FLAGS { + CF_SET_PIN_FLAG_NONE = 0x00000000, + CF_SET_PIN_FLAG_RECURSE = 0x00000001, + CF_SET_PIN_FLAG_RECURSE_ONLY = 0x00000002, + CF_SET_PIN_FLAG_RECURSE_STOP_ON_ERROR = 0x00000004 +} CF_SET_PIN_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_SET_PIN_FLAGS ); + +STDAPI +CfSetPinState ( + _In_ HANDLE FileHandle, + _In_ CF_PIN_STATE PinState, + _In_ CF_SET_PIN_FLAGS PinFlags, + _Inout_opt_ LPOVERLAPPED Overlapped + ); + +typedef enum CF_IN_SYNC_STATE { + CF_IN_SYNC_STATE_NOT_IN_SYNC = 0, + CF_IN_SYNC_STATE_IN_SYNC = 1 +} CF_IN_SYNC_STATE; + +typedef enum CF_SET_IN_SYNC_FLAGS { + CF_SET_IN_SYNC_FLAG_NONE = 0x00000000, +} CF_SET_IN_SYNC_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( CF_SET_IN_SYNC_FLAGS ); + +STDAPI +CfSetInSyncState ( + _In_ HANDLE FileHandle, + _In_ CF_IN_SYNC_STATE InSyncState, + _In_ CF_SET_IN_SYNC_FLAGS InSyncFlags, + _Inout_opt_ USN *InSyncUsn + ); + +STDAPI +CfSetCorrelationVector ( + _In_ HANDLE FileHandle, + _In_ const PCORRELATION_VECTOR CorrelationVector + ); + +STDAPI +CfGetCorrelationVector ( + _In_ HANDLE FileHandle, + _Out_ PCORRELATION_VECTOR CorrelationVector + ); + +typedef enum CF_PLACEHOLDER_STATE { + CF_PLACEHOLDER_STATE_NO_STATES = 0x00000000, + CF_PLACEHOLDER_STATE_PLACEHOLDER = 0x00000001, + CF_PLACEHOLDER_STATE_SYNC_ROOT = 0x00000002, + CF_PLACEHOLDER_STATE_ESSENTIAL_PROP_PRESENT = 0x00000004, + CF_PLACEHOLDER_STATE_IN_SYNC = 0x00000008, + CF_PLACEHOLDER_STATE_PARTIAL = 0x00000010, + CF_PLACEHOLDER_STATE_PARTIALLY_ON_DISK = 0x00000020, + CF_PLACEHOLDER_STATE_INVALID = 0xffffffff, +} CF_PLACEHOLDER_STATE; + +DEFINE_ENUM_FLAG_OPERATORS( CF_PLACEHOLDER_STATE ); + +STDAPI_( CF_PLACEHOLDER_STATE ) +CfGetPlaceholderStateFromAttributeTag ( + _In_ DWORD FileAttributes, + _In_ DWORD ReparseTag + ); + +STDAPI_( CF_PLACEHOLDER_STATE ) +CfGetPlaceholderStateFromFileInfo ( + _In_ LPCVOID InfoBuffer, + _In_ FILE_INFO_BY_HANDLE_CLASS InfoClass + ); + +STDAPI_( CF_PLACEHOLDER_STATE ) +CfGetPlaceholderStateFromFindData ( + _In_ CONST WIN32_FIND_DATA *FindData + ); + +typedef enum CF_PLACEHOLDER_INFO_CLASS { + + CF_PLACEHOLDER_INFO_BASIC = 0, + CF_PLACEHOLDER_INFO_STANDARD = 1, + +} CF_PLACEHOLDER_INFO_CLASS; + +// +// Placeholder basic info +// + +typedef struct CF_PLACEHOLDER_BASIC_INFO { + + CF_PIN_STATE PinState; + CF_IN_SYNC_STATE InSyncState; + LARGE_INTEGER FileId; + LARGE_INTEGER SyncRootFileId; + ULONG FileIdentityLength; + BYTE FileIdentity[1]; + +} CF_PLACEHOLDER_BASIC_INFO; + +// +// Placeholder standard info +// + +typedef struct CF_PLACEHOLDER_STANDARD_INFO { + + LARGE_INTEGER OnDiskDataSize; + LARGE_INTEGER ValidatedDataSize; + LARGE_INTEGER ModifiedDataSize; + LARGE_INTEGER PropertiesSize; + CF_PIN_STATE PinState; + CF_IN_SYNC_STATE InSyncState; + LARGE_INTEGER FileId; + LARGE_INTEGER SyncRootFileId; + ULONG FileIdentityLength; + BYTE FileIdentity[1]; + +} CF_PLACEHOLDER_STANDARD_INFO; + +STDAPI +CfGetPlaceholderInfo ( + _In_ HANDLE FileHandle, + _In_ CF_PLACEHOLDER_INFO_CLASS InfoClass, + _Out_bytecapcount_(InfoBufferLength) PVOID InfoBuffer, + _In_ DWORD InfoBufferLength, + _Out_opt_ PDWORD ReturnedLength + ); + +typedef enum CF_SYNC_ROOT_INFO_CLASS { + + CF_SYNC_ROOT_INFO_BASIC = 0, + CF_SYNC_ROOT_INFO_STANDARD = 1, + CF_SYNC_ROOT_INFO_PROVIDER = 2, + +} CF_SYNC_ROOT_INFO_CLASS; + +// +// SyncRoot basic info +// + +typedef struct CF_SYNC_ROOT_BASIC_INFO { + + LARGE_INTEGER SyncRootFileId; + +} CF_SYNC_ROOT_BASIC_INFO; + + +#define CF_MAX_PROVIDER_NAME_LENGTH 255 +#define CF_MAX_PROVIDER_VERSION_LENGTH 255 + + +// +// SyncRoot provider info +// + +typedef struct CF_SYNC_ROOT_PROVIDER_INFO { + + CF_SYNC_PROVIDER_STATUS ProviderStatus; + WCHAR ProviderName[CF_MAX_PROVIDER_NAME_LENGTH + 1]; + WCHAR ProviderVersion[CF_MAX_PROVIDER_VERSION_LENGTH + 1]; + +} CF_SYNC_ROOT_PROVIDER_INFO; + + +// +// SyncRoot standard info +// + +typedef struct CF_SYNC_ROOT_STANDARD_INFO { + + LARGE_INTEGER SyncRootFileId; + CF_HYDRATION_POLICY HydrationPolicy; + CF_POPULATION_POLICY PopulationPolicy; + CF_INSYNC_POLICY InSyncPolicy; + CF_HARDLINK_POLICY HardLinkPolicy; + CF_SYNC_PROVIDER_STATUS ProviderStatus; + WCHAR ProviderName[CF_MAX_PROVIDER_NAME_LENGTH + 1]; + WCHAR ProviderVersion[CF_MAX_PROVIDER_VERSION_LENGTH + 1]; + ULONG SyncRootIdentityLength; + BYTE SyncRootIdentity[1]; + +} CF_SYNC_ROOT_STANDARD_INFO; + + +STDAPI +CfGetSyncRootInfoByPath( + _In_ LPCWSTR FilePath, + _In_ CF_SYNC_ROOT_INFO_CLASS InfoClass, + _Out_ PVOID InfoBuffer, + _In_ DWORD InfoBufferLength, + _Out_opt_ DWORD *ReturnedLength + ); + +STDAPI +CfGetSyncRootInfoByHandle( + _In_ HANDLE FileHandle, + _In_ CF_SYNC_ROOT_INFO_CLASS InfoClass, + _Out_ PVOID InfoBuffer, + _In_ DWORD InfoBufferLength, + _Out_opt_ DWORD *ReturnedLength + ); + +typedef enum CF_PLACEHOLDER_RANGE_INFO_CLASS { + + CF_PLACEHOLDER_RANGE_INFO_ONDISK = 1, + CF_PLACEHOLDER_RANGE_INFO_VALIDATED = 2, + CF_PLACEHOLDER_RANGE_INFO_MODIFIED = 3, + +} CF_PLACEHOLDER_RANGE_INFO_CLASS; + +STDAPI +CfGetPlaceholderRangeInfo ( + _In_ HANDLE FileHandle, + _In_ CF_PLACEHOLDER_RANGE_INFO_CLASS InfoClass, + _In_ LARGE_INTEGER StartingOffset, + _In_ LARGE_INTEGER Length, + _Out_bytecapcount_(InfoBufferLength) PVOID InfoBuffer, + _In_ DWORD InfoBufferLength, + _Out_opt_ PDWORD ReturnedLength + ); + +STDAPI +CfGetPlaceholderRangeInfoForHydration( + _In_ CF_CONNECTION_KEY ConnectionKey, + _In_ CF_TRANSFER_KEY TransferKey, + _In_ LARGE_INTEGER FileId, + _In_ CF_PLACEHOLDER_RANGE_INFO_CLASS InfoClass, + _In_ LARGE_INTEGER StartingOffset, + _In_ LARGE_INTEGER RangeLength, + _Out_writes_bytes_to_(InfoBufferSize, *InfoBufferWritten) PVOID InfoBuffer, + _In_ DWORD InfoBufferSize, + _Out_opt_ PDWORD InfoBufferWritten + ); + + +#pragma endregion + + +// +// Progress APIs +// + +#pragma region Progress APIs + +STDAPI +CfReportProviderProgress ( + _In_ CF_CONNECTION_KEY ConnectionKey, + _In_ CF_TRANSFER_KEY TransferKey, + _In_ LARGE_INTEGER ProviderProgressTotal, + _In_ LARGE_INTEGER ProviderProgressCompleted + ); + +#if ( NTDDI_VERSION >= NTDDI_WIN10_RS5 ) + +STDAPI +CfReportProviderProgress2( + _In_ CF_CONNECTION_KEY ConnectionKey, + _In_ CF_TRANSFER_KEY TransferKey, + _In_ CF_REQUEST_KEY RequestKey, + _In_ LARGE_INTEGER ProviderProgressTotal, + _In_ LARGE_INTEGER ProviderProgressCompleted, + _In_ DWORD TargetSessionId + ); + +#endif // #if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#pragma endregion + + +#pragma region Deprecated APIs + +#pragma endregion + +#endif // #if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#endif // CFAPI_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cfgmgr32.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cfgmgr32.h new file mode 100644 index 0000000000000000000000000000000000000000..cfd6383749284e6878221a2461802d4496dd06c0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cfgmgr32.h @@ -0,0 +1,4768 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + cfgmgr32.h + +Abstract: + + This module contains the user APIs for the Configuration Manager, + along with any public data structures needed to call these APIs. + +--*/ + +#ifndef _CFGMGR32_H_ +#define _CFGMGR32_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family, OneCore Family, or App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) + + +#include +#include + +#ifndef GUID_DEFINED +#include +#endif /* GUID_DEFINED */ + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined (CMAPI) +#undef CMAPI +#endif + +#if !defined (_CFGMGR32_) +#define CMAPI DECLSPEC_IMPORT +#else +#define CMAPI +#endif + +typedef CONST VOID *PCVOID; + +//-------------------------------------------------------------- +// General size definitions +//-------------------------------------------------------------- + +#define MAX_DEVICE_ID_LEN 200 +#define MAX_DEVNODE_ID_LEN MAX_DEVICE_ID_LEN + +#define MAX_GUID_STRING_LEN 39 // 38 chars + terminator null +#define MAX_CLASS_NAME_LEN 32 +#define MAX_PROFILE_LEN 80 + +#define MAX_CONFIG_VALUE 9999 +#define MAX_INSTANCE_VALUE 9999 + +#define MAX_MEM_REGISTERS 9 // Win95 compatibility--not applicable to 32-bit ConfigMgr +#define MAX_IO_PORTS 20 // Win95 compatibility--not applicable to 32-bit ConfigMgr +#define MAX_IRQS 7 // Win95 compatibility--not applicable to 32-bit ConfigMgr +#define MAX_DMA_CHANNELS 7 // Win95 compatibility--not applicable to 32-bit ConfigMgr + +#define DWORD_MAX 0xffffffffUL +#define DWORDLONG_MAX 0xffffffffffffffffui64 + +#define CONFIGMG_VERSION 0x0400 + +//-------------------------------------------------------------- +// Data types +//-------------------------------------------------------------- + +#ifdef NT_INCLUDED + +typedef unsigned __int64 DWORDLONG; +typedef DWORDLONG *PDWORDLONG; + +#endif /* NT_INCLUDED */ + +// +// Standardized Return Value data type +// +typedef _Return_type_success_(return == 0) DWORD RETURN_TYPE; +typedef RETURN_TYPE CONFIGRET; + +// +// Device Instance Handle data type +// +typedef DWORD DEVNODE, DEVINST; +typedef DEVNODE *PDEVNODE, *PDEVINST; + +// +// Device Instance Identifier data type +// The device instance ID specifies the registry path, relative to the +// Enum key , for a device instance. For example: \Root\*PNP0500\0000. +// +typedef _Null_terminated_ CHAR *DEVNODEID_A, *DEVINSTID_A; // Device ID ANSI name. +typedef _Null_terminated_ WCHAR *DEVNODEID_W, *DEVINSTID_W; // Device ID Unicode name. +#ifdef UNICODE +typedef DEVNODEID_W DEVNODEID; +typedef DEVINSTID_W DEVINSTID; +#else +typedef DEVNODEID_A DEVNODEID; +typedef DEVINSTID_A DEVINSTID; +#endif + +// +// Logical Configuration Handle data type +// +typedef DWORD_PTR LOG_CONF; +typedef LOG_CONF *PLOG_CONF; + +// +// Resource Descriptor Handle data type +// +typedef DWORD_PTR RES_DES; +typedef RES_DES *PRES_DES; + +// +// Resource ID data type (may take any of the ResType_* values) +// +typedef ULONG RESOURCEID; +typedef RESOURCEID *PRESOURCEID; + +// +// Priority data type (may take any of the LCPRI_* values) +// +typedef ULONG PRIORITY; +typedef PRIORITY *PPRIORITY; + +// +// Range List Handle data type +// +typedef DWORD_PTR RANGE_LIST; +typedef RANGE_LIST *PRANGE_LIST; + +// +// Range Element Handle data type +// +typedef DWORD_PTR RANGE_ELEMENT; +typedef RANGE_ELEMENT *PRANGE_ELEMENT; + +// +// Machine Handle data type +// +typedef HANDLE HMACHINE; +typedef HMACHINE *PHMACHINE; + +// +// Conflict List data types +// +typedef ULONG_PTR CONFLICT_LIST; +typedef CONFLICT_LIST *PCONFLICT_LIST; + +typedef struct _CONFLICT_DETAILS_A { + ULONG CD_ulSize; // size of structure, ie: sizeof(CONFLICT_DETAILS) + ULONG CD_ulMask; // indicates what information is required/valid + DEVINST CD_dnDevInst; // filled with DevInst of conflicting device if CM_CDMASK_DEVINST set + RES_DES CD_rdResDes; // filled with a ResDes of conflict if CM_CDMASK_RESDES set + ULONG CD_ulFlags; // various flags regarding conflict + CHAR CD_szDescription[MAX_PATH]; // description of conflicting device +} CONFLICT_DETAILS_A , *PCONFLICT_DETAILS_A; + +typedef struct _CONFLICT_DETAILS_W { + ULONG CD_ulSize; // size of structure, ie: sizeof(CONFLICT_DETAILS) + ULONG CD_ulMask; // indicates what information is required/valid + DEVINST CD_dnDevInst; // filled with DevInst of conflicting device if CM_CDMASK_DEVINST set + RES_DES CD_rdResDes; // filled with a ResDes of conflict if CM_CDMASK_RESDES set + ULONG CD_ulFlags; // various flags regarding conflict + WCHAR CD_szDescription[MAX_PATH]; // description of conflicting device +} CONFLICT_DETAILS_W , *PCONFLICT_DETAILS_W; + +#ifdef UNICODE +typedef CONFLICT_DETAILS_W CONFLICT_DETAILS; +typedef PCONFLICT_DETAILS_W PCONFLICT_DETAILS; +#else +typedef CONFLICT_DETAILS_A CONFLICT_DETAILS; +typedef PCONFLICT_DETAILS_A PCONFLICT_DETAILS; +#endif + +#define CM_CDMASK_DEVINST (0x00000001) // mask to retrieve CD_dnDevInst attribute for conflict +#define CM_CDMASK_RESDES (0x00000002) // mask to retrieve CD_rdResDes attribute for conflict +#define CM_CDMASK_FLAGS (0x00000004) // mask to retrieve CD_ulFlags attribute for conflict +#define CM_CDMASK_DESCRIPTION (0x00000008) // mask to retrieve CD_szDescription attribute for conflict +#define CM_CDMASK_VALID (0x0000000F) // valid bits + +#define CM_CDFLAGS_DRIVER (0x00000001) // CD_ulFlags: CD_szDescription reports back legacy driver name +#define CM_CDFLAGS_ROOT_OWNED (0x00000002) // CD_ulFlags: Root owned device +#define CM_CDFLAGS_RESERVED (0x00000004) // CD_ulFlags: Specified range is not available for use + +typedef ULONG REGDISPOSITION; + +// +// use 1 byte packing for the data structures +// +#include "pshpack1.h" + +//-------------------------------------------------------------- +// Memory resource +//-------------------------------------------------------------- + +// +// Define the attribute flags for memory ranges. Each bit flag is +// identified by a constant bitmask. Following the bitmask definition, +// are the two possible values. +// +#define mMD_MemoryType (0x1) // Bitmask, whether memory is writable +#define fMD_MemoryType mMD_MemoryType // compatibility +#define fMD_ROM (0x0) // Memory range is read-only +#define fMD_RAM (0x1) // Memory range may be written to + +#define mMD_32_24 (0x2) // Bitmask, memory is 24 or 32-bit +#define fMD_32_24 mMD_32_24 // compatibility +#define fMD_24 (0x0) // Memory range is 24-bit +#define fMD_32 (0x2) // Memory range is 32-bit + +#define mMD_Prefetchable (0x4) // Bitmask,whether memory prefetchable +#define fMD_Prefetchable mMD_Prefetchable // compatibility +#define fMD_Pref mMD_Prefetchable // compatibility +#define fMD_PrefetchDisallowed (0x0) // Memory range is not prefetchable +#define fMD_PrefetchAllowed (0x4) // Memory range is prefetchable + +#define mMD_Readable (0x8) // Bitmask,whether memory is readable +#define fMD_Readable mMD_Readable // compatibility +#define fMD_ReadAllowed (0x0) // Memory range is readable +#define fMD_ReadDisallowed (0x8) // Memory range is write-only + +#define mMD_CombinedWrite (0x10) // Bitmask,supports write-behind +#define fMD_CombinedWrite mMD_CombinedWrite // compatibility +#define fMD_CombinedWriteDisallowed (0x0) // no combined-write caching +#define fMD_CombinedWriteAllowed (0x10) // supports combined-write caching + +#define mMD_Cacheable (0x20) // Bitmask,whether memory is cacheable +#define fMD_NonCacheable (0x0) // Memory range is non-cacheable +#define fMD_Cacheable (0x20) // Memory range is cacheable + +#define fMD_WINDOW_DECODE (0x40) // Memory range is bridge window decode. +#define fMD_MEMORY_BAR (0x80) // Memory BAR resource. + +// +// MEM_RANGE Structure +// +typedef struct Mem_Range_s { + DWORDLONG MR_Align; // specifies mask for base alignment + ULONG MR_nBytes; // specifies number of bytes required + DWORDLONG MR_Min; // specifies minimum address of the range + DWORDLONG MR_Max; // specifies maximum address of the range + DWORD MR_Flags; // specifies flags describing range (fMD flags) + DWORD MR_Reserved; +} MEM_RANGE, *PMEM_RANGE; + +// +// MEM_DES structure +// +typedef struct Mem_Des_s { + DWORD MD_Count; // number of MEM_RANGE structs in MEM_RESOURCE + DWORD MD_Type; // size (in bytes) of MEM_RANGE (MType_Range) + DWORDLONG MD_Alloc_Base; // base memory address of range allocated + DWORDLONG MD_Alloc_End; // end of allocated range + DWORD MD_Flags; // flags describing allocated range (fMD flags) + DWORD MD_Reserved; +} MEM_DES, *PMEM_DES; + +// +// MEM_RESOURCE structure +// +typedef struct Mem_Resource_s { + MEM_DES MEM_Header; // info about memory range list + MEM_RANGE MEM_Data[ANYSIZE_ARRAY]; // list of memory ranges +} MEM_RESOURCE, *PMEM_RESOURCE; + +// +// Define the size of each range structure +// +#define MType_Range sizeof(struct Mem_Range_s) + +//-------------------------------------------------------------- +// Large Memory Resource +//-------------------------------------------------------------- + +// +// Note that large memory ranges use the same attribute flags as memory ranges. +// + +// +// MEM_LARGE_RANGE Structure +// +typedef struct Mem_Large_Range_s { + DWORDLONG MLR_Align; // specifies mask for base alignment + ULONGLONG MLR_nBytes; // specifies number of bytes required + DWORDLONG MLR_Min; // specifies minimum address of the range + DWORDLONG MLR_Max; // specifies maximum address of the range + DWORD MLR_Flags; // specifies flags describing range (fMD flags) + DWORD MLR_Reserved; +} MEM_LARGE_RANGE, *PMEM_LARGE_RANGE; + +// +// MEM_LARGE_DES structure +// +typedef struct Mem_Large_Des_s { + DWORD MLD_Count; // number of LARGE_MEM_RANGE structs in LARGE_MEM_RESOURCE + DWORD MLD_Type; // size (in bytes) of MEM_RANGE (MType_Range) + DWORDLONG MLD_Alloc_Base; // base memory address of range allocated + DWORDLONG MLD_Alloc_End; // end of allocated range + DWORD MLD_Flags; // flags describing allocated range (fMD flags) + DWORD MLD_Reserved; +} MEM_LARGE_DES, *PMEM_LARGE_DES; + +// +// MEM_LARGE_RESOURCE structure +// +typedef struct Mem_Large_Resource_s { + MEM_LARGE_DES MEM_LARGE_Header; // info about memory range list + MEM_LARGE_RANGE MEM_LARGE_Data[ANYSIZE_ARRAY]; // list of memory ranges +} MEM_LARGE_RESOURCE, *PMEM_LARGE_RESOURCE; + +// +// Define the size of each range structure +// +#define MLType_Range sizeof(struct Mem_Large_Range_s) + +//-------------------------------------------------------------- +// I/O Port Resource +//-------------------------------------------------------------- + +// +// Define the attribute flags for port resources. Each bit flag is +// identified by a constant bitmask. Following the bitmask definition, +// are the two possible values. +// +#define fIOD_PortType (0x1) // Bitmask,whether port is IO or memory +#define fIOD_Memory (0x0) // Port resource really uses memory +#define fIOD_IO (0x1) // Port resource uses IO ports +#define fIOD_DECODE (0x00fc) // decode flags +#define fIOD_10_BIT_DECODE (0x0004) +#define fIOD_12_BIT_DECODE (0x0008) +#define fIOD_16_BIT_DECODE (0x0010) +#define fIOD_POSITIVE_DECODE (0x0020) +#define fIOD_PASSIVE_DECODE (0x0040) +#define fIOD_WINDOW_DECODE (0x0080) +#define fIOD_PORT_BAR (0x0100) + +// +// these are for compatiblity +// +#define IO_ALIAS_10_BIT_DECODE (0x00000004) +#define IO_ALIAS_12_BIT_DECODE (0x00000010) +#define IO_ALIAS_16_BIT_DECODE (0x00000000) +#define IO_ALIAS_POSITIVE_DECODE (0x000000FF) + +// +// IO_RANGE structure +// +typedef struct IO_Range_s { + DWORDLONG IOR_Align; // mask for base alignment + DWORD IOR_nPorts; // number of ports + DWORDLONG IOR_Min; // minimum port address + DWORDLONG IOR_Max; // maximum port address + DWORD IOR_RangeFlags; // flags for this port range + DWORDLONG IOR_Alias; // multiplier that generates aliases for port(s) +} IO_RANGE, *PIO_RANGE; + +// +// IO_DES structure +// +typedef struct IO_Des_s { + DWORD IOD_Count; // number of IO_RANGE structs in IO_RESOURCE + DWORD IOD_Type; // size (in bytes) of IO_RANGE (IOType_Range) + DWORDLONG IOD_Alloc_Base; // base of allocated port range + DWORDLONG IOD_Alloc_End; // end of allocated port range + DWORD IOD_DesFlags; // flags relating to allocated port range +} IO_DES, *PIO_DES; + +// +// IO_RESOURCE +// +typedef struct IO_Resource_s { + IO_DES IO_Header; // info about I/O port range list + IO_RANGE IO_Data[ANYSIZE_ARRAY]; // list of I/O port ranges +} IO_RESOURCE, *PIO_RESOURCE; + +#define IOA_Local 0xff + +// +// Define the size of each range structure +// +#define IOType_Range sizeof(struct IO_Range_s) + +//-------------------------------------------------------------- +// DMA Resource +//-------------------------------------------------------------- + +// +// Define the attribute flags for a DMA resource range. Each bit flag is +// identified with a constant bitmask. Following the bitmask definition +// are the possible values. +// +#define mDD_Width (0x3) // Bitmask, width of the DMA channel: +#define fDD_BYTE (0x0) // 8-bit DMA channel +#define fDD_WORD (0x1) // 16-bit DMA channel +#define fDD_DWORD (0x2) // 32-bit DMA channel +#define fDD_BYTE_AND_WORD (0x3) // 8-bit and 16-bit DMA channel + +#define mDD_BusMaster (0x4) // Bitmask, whether bus mastering is supported +#define fDD_NoBusMaster (0x0) // no bus mastering +#define fDD_BusMaster (0x4) // bus mastering + +#define mDD_Type (0x18) // Bitmask, specifies type of DMA +#define fDD_TypeStandard (0x00) // standard DMA +#define fDD_TypeA (0x08) // Type-A DMA +#define fDD_TypeB (0x10) // Type-B DMA +#define fDD_TypeF (0x18) // Type-F DMA + +// +// DMA_RANGE structure +// +typedef struct DMA_Range_s { + ULONG DR_Min; // minimum DMA port in the range + ULONG DR_Max; // maximum DMA port in the range + ULONG DR_Flags; // flags describing the range (fDD flags) +} DMA_RANGE, *PDMA_RANGE; + +// +// DMA_DES structure +// +typedef struct DMA_Des_s { + DWORD DD_Count; // number of DMA_RANGE structs in DMA_RESOURCE + DWORD DD_Type; // size (in bytes) of DMA_RANGE struct (DType_Range) + DWORD DD_Flags; // Flags describing DMA channel (fDD flags) + ULONG DD_Alloc_Chan; // Specifies the DMA channel that was allocated +} DMA_DES, *PDMA_DES; + +// +// DMA_RESOURCE +// +typedef struct DMA_Resource_s { + DMA_DES DMA_Header; // info about DMA channel range list + DMA_RANGE DMA_Data[ANYSIZE_ARRAY]; // list of DMA ranges +} DMA_RESOURCE, *PDMA_RESOURCE; + +// +// Define the size of each range structure +// +#define DType_Range sizeof(struct DMA_Range_s) + +//-------------------------------------------------------------- +// Interrupt Resource +//-------------------------------------------------------------- + +// +// Define the attribute flags for an interrupt resource range. Each bit flag +// is identified with a constant bitmask. Following the bitmask definition +// are the possible values. +// +#define mIRQD_Share (0x1) // Bitmask,whether the IRQ may be shared: +#define fIRQD_Exclusive (0x0) // The IRQ may not be shared +#define fIRQD_Share (0x1) // The IRQ may be shared + +#define fIRQD_Share_Bit 0 // compatibility +#define fIRQD_Level_Bit 1 // compatibility + +// +// ** NOTE: 16-bit ConfigMgr uses fIRQD_Level_Bit being set to indicate that the +// ** interrupt is _level-sensitive_. For 32-bit ConfigMgr, if this bit is set, +// ** then the interrupt is _edge-sensitive_. +// +#define mIRQD_Edge_Level (0x2) // Bitmask,whether edge or level triggered: +#define fIRQD_Level (0x0) // The IRQ is level-sensitive +#define fIRQD_Edge (0x2) // The IRQ is edge-sensitive + +// +// IRQ_RANGE +// +typedef struct IRQ_Range_s { + ULONG IRQR_Min; // minimum IRQ in the range + ULONG IRQR_Max; // maximum IRQ in the range +#if defined(NT_PROCESSOR_GROUPS) + USHORT IRQR_Flags; // flags describing the range (fIRQD flags) + USHORT IRQR_Rsvdz; // Reserved, must be zero. +#else + ULONG IRQR_Flags; // flags describing the range (fIRQD flags) +#endif +} IRQ_RANGE, *PIRQ_RANGE; + +// +// IRQ_DES structure +// +typedef struct IRQ_Des_32_s { + DWORD IRQD_Count; // number of IRQ_RANGE structs in IRQ_RESOURCE + DWORD IRQD_Type; // size (in bytes) of IRQ_RANGE (IRQType_Range) +#if defined(NT_PROCESSOR_GROUPS) + USHORT IRQD_Flags; // flags describing the IRQ (fIRQD flags) + USHORT IRQD_Group; // Group number of interrupt target. +#else + DWORD IRQD_Flags; // flags describing the IRQ (fIRQD flags) +#endif + ULONG IRQD_Alloc_Num; // specifies the IRQ that was allocated + ULONG32 IRQD_Affinity; +} IRQ_DES_32, *PIRQ_DES_32; + +typedef struct IRQ_Des_64_s { + DWORD IRQD_Count; // number of IRQ_RANGE structs in IRQ_RESOURCE + DWORD IRQD_Type; // size (in bytes) of IRQ_RANGE (IRQType_Range) +#if defined(NT_PROCESSOR_GROUPS) + USHORT IRQD_Flags; // flags describing the IRQ (fIRQD flags) + USHORT IRQD_Group; // Group number of interrupt target. +#else + DWORD IRQD_Flags; // flags describing the IRQ (fIRQD flags) +#endif + ULONG IRQD_Alloc_Num; // specifies the IRQ that was allocated + ULONG64 IRQD_Affinity; +} IRQ_DES_64, *PIRQ_DES_64; + +#ifdef _WIN64 +typedef IRQ_DES_64 IRQ_DES; +typedef PIRQ_DES_64 PIRQ_DES; +#else +typedef IRQ_DES_32 IRQ_DES; +typedef PIRQ_DES_32 PIRQ_DES; +#endif + +// +// IRQ_RESOURCE structure +// +typedef struct IRQ_Resource_32_s { + IRQ_DES_32 IRQ_Header; // info about IRQ range list + IRQ_RANGE IRQ_Data[ANYSIZE_ARRAY]; // list of IRQ ranges +} IRQ_RESOURCE_32, *PIRQ_RESOURCE_32; + +typedef struct IRQ_Resource_64_s { + IRQ_DES_64 IRQ_Header; // info about IRQ range list + IRQ_RANGE IRQ_Data[ANYSIZE_ARRAY]; // list of IRQ ranges +} IRQ_RESOURCE_64, *PIRQ_RESOURCE_64; + +#ifdef _WIN64 +typedef IRQ_RESOURCE_64 IRQ_RESOURCE; +typedef PIRQ_RESOURCE_64 PIRQ_RESOURCE; +#else +typedef IRQ_RESOURCE_32 IRQ_RESOURCE; +typedef PIRQ_RESOURCE_32 PIRQ_RESOURCE; +#endif + +// +// Define the size of each range structure +// +#define IRQType_Range sizeof(struct IRQ_Range_s) + +#if (WINVER >= _WIN32_WINNT_WINXP) +// +// Flags for resource descriptor APIs indicating the width of certain +// variable-size resource descriptor structure fields, where applicable. +// +#define CM_RESDES_WIDTH_DEFAULT (0x00000000) // 32 or 64-bit IRQ_RESOURCE / IRQ_DES, based on client +#define CM_RESDES_WIDTH_32 (0x00000001) // 32-bit IRQ_RESOURCE / IRQ_DES +#define CM_RESDES_WIDTH_64 (0x00000002) // 64-bit IRQ_RESOURCE / IRQ_DES +#define CM_RESDES_WIDTH_BITS (0x00000003) +#endif // (WINVER >= _WIN32_WINNT_WINXP) + +//-------------------------------------------------------------- +// Device Private Resource +//-------------------------------------------------------------- + +// +// DEVICEPRIVATE_RANGE structure +// + +typedef struct DevPrivate_Range_s { + DWORD PR_Data1; // mask for base alignment + DWORD PR_Data2; // number of bytes + DWORD PR_Data3; // minimum address +} DEVPRIVATE_RANGE, *PDEVPRIVATE_RANGE; + +// +// DEVPRIVATE_DES structure +// +typedef struct DevPrivate_Des_s { + DWORD PD_Count; + DWORD PD_Type; + DWORD PD_Data1; + DWORD PD_Data2; + DWORD PD_Data3; + DWORD PD_Flags; +} DEVPRIVATE_DES, *PDEVPRIVATE_DES; + +// +// DEVPRIVATE_RESOURCE +// +typedef struct DevPrivate_Resource_s { + DEVPRIVATE_DES PRV_Header; + DEVPRIVATE_RANGE PRV_Data[ANYSIZE_ARRAY]; +} DEVPRIVATE_RESOURCE, *PDEVPRIVATE_RESOURCE; + +// +// Define the size of each range structure +// +#define PType_Range sizeof(struct DevPrivate_Range_s) + +//-------------------------------------------------------------- +// Class-Specific Resource +//-------------------------------------------------------------- + +typedef struct CS_Des_s { + DWORD CSD_SignatureLength; + DWORD CSD_LegacyDataOffset; + DWORD CSD_LegacyDataSize; + DWORD CSD_Flags; + GUID CSD_ClassGuid; + BYTE CSD_Signature[ANYSIZE_ARRAY]; +} CS_DES, *PCS_DES; + +typedef struct CS_Resource_s { + CS_DES CS_Header; +} CS_RESOURCE, *PCS_RESOURCE; + +//-------------------------------------------------------------- +// PC Card Configuration Resource +//-------------------------------------------------------------- + +// +// Define the attribute flags for a PC Card configuration resource descriptor. +// Each bit flag is identified with a constant bitmask. Following the bitmask +// definition are the possible values. +// +#define mPCD_IO_8_16 (0x1) // Bitmask, whether I/O is 8 or 16 bits +#define fPCD_IO_8 (0x0) // I/O is 8-bit +#define fPCD_IO_16 (0x1) // I/O is 16-bit +#define mPCD_MEM_8_16 (0x2) // Bitmask, whether MEM is 8 or 16 bits +#define fPCD_MEM_8 (0x0) // MEM is 8-bit +#define fPCD_MEM_16 (0x2) // MEM is 16-bit +#define mPCD_MEM_A_C (0xC) // Bitmask, whether MEMx is Attribute or Common +#define fPCD_MEM1_A (0x4) // MEM1 is Attribute +#define fPCD_MEM2_A (0x8) // MEM2 is Attribute +#define fPCD_IO_ZW_8 (0x10) // zero wait on 8 bit I/O +#define fPCD_IO_SRC_16 (0x20) // iosrc 16 +#define fPCD_IO_WS_16 (0x40) // wait states on 16 bit io +#define mPCD_MEM_WS (0x300) // Bitmask, for additional wait states on memory windows +#define fPCD_MEM_WS_ONE (0x100) // 1 wait state +#define fPCD_MEM_WS_TWO (0x200) // 2 wait states +#define fPCD_MEM_WS_THREE (0x300) // 3 wait states + +#if (WINVER >= _WIN32_WINNT_WINXP) +#define fPCD_MEM_A (0x4) // MEM is Attribute + +#define fPCD_ATTRIBUTES_PER_WINDOW (0x8000) + +#define fPCD_IO1_16 (0x00010000) // I/O window 1 is 16-bit +#define fPCD_IO1_ZW_8 (0x00020000) // I/O window 1 zero wait on 8 bit I/O +#define fPCD_IO1_SRC_16 (0x00040000) // I/O window 1 iosrc 16 +#define fPCD_IO1_WS_16 (0x00080000) // I/O window 1 wait states on 16 bit io + +#define fPCD_IO2_16 (0x00100000) // I/O window 2 is 16-bit +#define fPCD_IO2_ZW_8 (0x00200000) // I/O window 2 zero wait on 8 bit I/O +#define fPCD_IO2_SRC_16 (0x00400000) // I/O window 2 iosrc 16 +#define fPCD_IO2_WS_16 (0x00800000) // I/O window 2 wait states on 16 bit io + +#define mPCD_MEM1_WS (0x03000000) // MEM window 1 Bitmask, for additional wait states on memory windows +#define fPCD_MEM1_WS_ONE (0x01000000) // MEM window 1, 1 wait state +#define fPCD_MEM1_WS_TWO (0x02000000) // MEM window 1, 2 wait states +#define fPCD_MEM1_WS_THREE (0x03000000) // MEM window 1, 3 wait states +#define fPCD_MEM1_16 (0x04000000) // MEM window 1 is 16-bit + +#define mPCD_MEM2_WS (0x30000000) // MEM window 2 Bitmask, for additional wait states on memory windows +#define fPCD_MEM2_WS_ONE (0x10000000) // MEM window 2, 1 wait state +#define fPCD_MEM2_WS_TWO (0x20000000) // MEM window 2, 2 wait states +#define fPCD_MEM2_WS_THREE (0x30000000) // MEM window 2, 3 wait states +#define fPCD_MEM2_16 (0x40000000) // MEM window 2 is 16-bit + +#define PCD_MAX_MEMORY 2 +#define PCD_MAX_IO 2 +#endif // (WINVER >= _WIN32_WINNT_WINXP) + +typedef struct PcCard_Des_s { + DWORD PCD_Count; + DWORD PCD_Type; + DWORD PCD_Flags; + BYTE PCD_ConfigIndex; + BYTE PCD_Reserved[3]; + DWORD PCD_MemoryCardBase1; + DWORD PCD_MemoryCardBase2; + +#if (WINVER >= _WIN32_WINNT_WINXP) + DWORD PCD_MemoryCardBase[PCD_MAX_MEMORY]; // will soon be removed + WORD PCD_MemoryFlags[PCD_MAX_MEMORY]; // will soon be removed + BYTE PCD_IoFlags[PCD_MAX_IO]; // will soon be removed +#endif // (WINVER >= _WIN32_WINNT_WINXP) + +} PCCARD_DES, *PPCCARD_DES; + +typedef struct PcCard_Resource_s { + PCCARD_DES PcCard_Header; +} PCCARD_RESOURCE, *PPCCARD_RESOURCE; + +//-------------------------------------------------------------- +// MF (multifunction) PCCard Configuration Resource +//-------------------------------------------------------------- + +#define mPMF_AUDIO_ENABLE (0x8) // Bitmask, whether audio is enabled or not +#define fPMF_AUDIO_ENABLE (0x8) // Audio is enabled + +typedef struct MfCard_Des_s { + DWORD PMF_Count; + DWORD PMF_Type; + DWORD PMF_Flags; + BYTE PMF_ConfigOptions; + BYTE PMF_IoResourceIndex; + BYTE PMF_Reserved[2]; + DWORD PMF_ConfigRegisterBase; +} MFCARD_DES, *PMFCARD_DES; + +typedef struct MfCard_Resource_s { + MFCARD_DES MfCard_Header; +} MFCARD_RESOURCE, *PMFCARD_RESOURCE; + +//-------------------------------------------------------------- +// Bus Number Resource +//-------------------------------------------------------------- + +// +// Define the attribute flags for a Bus Number resource descriptor. +// Each bit flag is identified with a constant bitmask. Following the bitmask +// definition are the possible values. +// +// Currently unused. +// + +// +// BUSNUMBER_RANGE +// +typedef struct BusNumber_Range_s { + ULONG BUSR_Min; // minimum Bus Number in the range + ULONG BUSR_Max; // maximum Bus Number in the range + ULONG BUSR_nBusNumbers; // specifies number of buses required + ULONG BUSR_Flags; // flags describing the range (currently unused) +} BUSNUMBER_RANGE, *PBUSNUMBER_RANGE; + +// +// BUSNUMBER_DES structure +// +typedef struct BusNumber_Des_s { + DWORD BUSD_Count; // number of BUSNUMBER_RANGE structs in BUSNUMBER_RESOURCE + DWORD BUSD_Type; // size (in bytes) of BUSNUMBER_RANGE (BusNumberType_Range) + DWORD BUSD_Flags; // flags describing the range (currently unused) + ULONG BUSD_Alloc_Base; // specifies the first Bus that was allocated + ULONG BUSD_Alloc_End; // specifies the last Bus number that was allocated +} BUSNUMBER_DES, *PBUSNUMBER_DES; + +// +// BUSNUMBER_RESOURCE structure +// +typedef struct BusNumber_Resource_s { + BUSNUMBER_DES BusNumber_Header; // info about Bus Number range list + BUSNUMBER_RANGE BusNumber_Data[ANYSIZE_ARRAY]; // list of Bus Number ranges +} BUSNUMBER_RESOURCE, *PBUSNUMBER_RESOURCE; + +// +// Define the size of each range structure +// +#define BusNumberType_Range sizeof(struct BusNumber_Range_s) + +#if (WINVER >= _WIN32_WINNT_WIN8) + +//-------------------------------------------------------------- +// Connection (Resource Hub) Resource +//-------------------------------------------------------------- + +// +// CONNECTION_DES structure +// +typedef struct Connection_Des_s { + DWORD COND_Type; // currently unused + DWORD COND_Flags; // flags describing the connection + BYTE COND_Class; // class-type of connection + BYTE COND_ClassType; // sub-type of connection class + BYTE COND_Reserved1; // reserved for future use + BYTE COND_Reserved2; // reserved for future use + LARGE_INTEGER COND_Id; // unique connection identifier for use by this connection +} CONNECTION_DES, *PCONNECTION_DES; + +// +// CONNECTION_RESOURCE +// +typedef struct Connection_Resource_s { + CONNECTION_DES Connection_Header; // info about Connection range list +} CONNECTION_RESOURCE, *PCONNECTION_RESOURCE; + +#endif // (WINVER >= _WIN32_WINNT_WIN8) + +//-------------------------------------------------------------- +// Hardware Profile Information +//-------------------------------------------------------------- + +// +// Define flags relating to hardware profiles +// +#define CM_HWPI_NOT_DOCKABLE (0x00000000) // machine is not dockable +#define CM_HWPI_UNDOCKED (0x00000001) // hw profile for docked config +#define CM_HWPI_DOCKED (0x00000002) // hw profile for undocked config + +// +// HWPROFILEINFO structure +// +typedef struct HWProfileInfo_sA { + ULONG HWPI_ulHWProfile; // handle of hw profile + CHAR HWPI_szFriendlyName[MAX_PROFILE_LEN]; // friendly name of hw profile + DWORD HWPI_dwFlags; // profile flags (CM_HWPI_*) +} HWPROFILEINFO_A, *PHWPROFILEINFO_A; + +typedef struct HWProfileInfo_sW { + ULONG HWPI_ulHWProfile; // handle of hw profile + WCHAR HWPI_szFriendlyName[MAX_PROFILE_LEN]; // friendly name of hw profile + DWORD HWPI_dwFlags; // profile flags (CM_HWPI_*) +} HWPROFILEINFO_W, *PHWPROFILEINFO_W; + +#ifdef UNICODE +typedef HWPROFILEINFO_W HWPROFILEINFO; +typedef PHWPROFILEINFO_W PHWPROFILEINFO; +#else +typedef HWPROFILEINFO_A HWPROFILEINFO; +typedef PHWPROFILEINFO_A PHWPROFILEINFO; +#endif + +// +// revert back to normal default packing +// +#include "poppack.h" + +//-------------------------------------------------------------- +// Miscellaneous +//-------------------------------------------------------------- + +// +// Resource types +// +#define ResType_All (0x00000000) // Return all resource types +#define ResType_None (0x00000000) // Arbitration always succeeded +#define ResType_Mem (0x00000001) // Physical address resource +#define ResType_IO (0x00000002) // Physical I/O address resource +#define ResType_DMA (0x00000003) // DMA channels resource +#define ResType_IRQ (0x00000004) // IRQ resource +#define ResType_DoNotUse (0x00000005) // Used as spacer to sync subsequent ResTypes w/NT +#define ResType_BusNumber (0x00000006) // bus number resource +#define ResType_MemLarge (0x00000007) // Memory resources >= 4GB +#define ResType_MAX (0x00000007) // Maximum known (arbitrated) ResType + +#define ResType_Ignored_Bit (0x00008000) // Ignore this resource +#define ResType_ClassSpecific (0x0000FFFF) // class-specific resource +#define ResType_Reserved (0x00008000) // reserved for internal use +#define ResType_DevicePrivate (0x00008001) // device private data +#define ResType_PcCardConfig (0x00008002) // PC Card configuration data +#define ResType_MfCardConfig (0x00008003) // MF Card configuration data +#if (WINVER >= _WIN32_WINNT_WIN8) +#define ResType_Connection (0x00008004) // Connection (Resource Hub) resource +#endif // (WINVER >= _WIN32_WINNT_WIN8) + +// +// Flags specifying options for ranges that conflict with ranges already in +// the range list (CM_Add_Range) +// +#define CM_ADD_RANGE_ADDIFCONFLICT (0x00000000) // merg with conflicting range +#define CM_ADD_RANGE_DONOTADDIFCONFLICT (0x00000001) // error if range conflicts +#define CM_ADD_RANGE_BITS (0x00000001) + +// +// Logical Config Flags (specified in call to CM_Get_First_Log_Conf +// +#define BASIC_LOG_CONF 0x00000000 // Specifies the req list. +#define FILTERED_LOG_CONF 0x00000001 // Specifies the filtered req list. +#define ALLOC_LOG_CONF 0x00000002 // Specifies the Alloc Element. +#define BOOT_LOG_CONF 0x00000003 // Specifies the RM Alloc Element. +#define FORCED_LOG_CONF 0x00000004 // Specifies the Forced Log Conf +#define OVERRIDE_LOG_CONF 0x00000005 // Specifies the Override req list. +#define NUM_LOG_CONF 0x00000006 // Number of Log Conf type +#define LOG_CONF_BITS 0x00000007 // The bits of the log conf type. + +#define PRIORITY_EQUAL_FIRST (0x00000008) // Same priority, new one first +#define PRIORITY_EQUAL_LAST (0x00000000) // Same priority, new one last +#define PRIORITY_BIT (0x00000008) + +// +// Registry disposition values +// (specified in call to CM_Open_DevNode_Key and CM_Open_Class_Key) +// +#define RegDisposition_OpenAlways (0x00000000) // open if exists else create +#define RegDisposition_OpenExisting (0x00000001) // open key only if exists +#define RegDisposition_Bits (0x00000001) + +// +// ulFlags values for CM API routines +// + +// +// Flags for CM_Add_ID +// +#define CM_ADD_ID_HARDWARE (0x00000000) +#define CM_ADD_ID_COMPATIBLE (0x00000001) +#define CM_ADD_ID_BITS (0x00000001) + +// +// Flags for CM_Create_DevNode +// +#define CM_CREATE_DEVNODE_NORMAL (0x00000000) // install later +#define CM_CREATE_DEVNODE_NO_WAIT_INSTALL (0x00000001) // NOT SUPPORTED ON NT +#define CM_CREATE_DEVNODE_PHANTOM (0x00000002) +#define CM_CREATE_DEVNODE_GENERATE_ID (0x00000004) +#define CM_CREATE_DEVNODE_DO_NOT_INSTALL (0x00000008) +#define CM_CREATE_DEVNODE_BITS (0x0000000F) + +#define CM_CREATE_DEVINST_NORMAL CM_CREATE_DEVNODE_NORMAL +#define CM_CREATE_DEVINST_NO_WAIT_INSTALL CM_CREATE_DEVNODE_NO_WAIT_INSTALL +#define CM_CREATE_DEVINST_PHANTOM CM_CREATE_DEVNODE_PHANTOM +#define CM_CREATE_DEVINST_GENERATE_ID CM_CREATE_DEVNODE_GENERATE_ID +#define CM_CREATE_DEVINST_DO_NOT_INSTALL CM_CREATE_DEVNODE_DO_NOT_INSTALL +#define CM_CREATE_DEVINST_BITS CM_CREATE_DEVNODE_BITS + +// +// Flags for CM_Delete_Class_Key +// +#define CM_DELETE_CLASS_ONLY (0x00000000) +#define CM_DELETE_CLASS_SUBKEYS (0x00000001) + +#if (WINVER >= _WIN32_WINNT_LONGHORN) +#define CM_DELETE_CLASS_INTERFACE (0x00000002) +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + +#define CM_DELETE_CLASS_BITS (0x00000003) + +#if (WINVER >= _WIN32_WINNT_WIN8) +// +// Flags for CM_Enumerate_Classes +// +#define CM_ENUMERATE_CLASSES_INSTALLER (0x00000000) +#define CM_ENUMERATE_CLASSES_INTERFACE (0x00000001) +#define CM_ENUMERATE_CLASSES_BITS (0x00000001) +#endif // (WINVER >= _WIN32_WINNT_WIN8) + +// +// Detection reason flags (specified in call to CM_Run_Detection) +// +#define CM_DETECT_NEW_PROFILE (0x00000001) // detection for new hw profile +#define CM_DETECT_CRASHED (0x00000002) // Previous detection crashed +#define CM_DETECT_HWPROF_FIRST_BOOT (0x00000004) +#define CM_DETECT_RUN (0x80000000) +#define CM_DETECT_BITS (0x80000007) + +// +// Flags for CM_Disable_DevNode +// +#define CM_DISABLE_POLITE (0x00000000) // Ask the driver +#define CM_DISABLE_ABSOLUTE (0x00000001) // Don't ask the driver +#define CM_DISABLE_HARDWARE (0x00000002) // Don't ask the driver, and won't be restarteable +#define CM_DISABLE_UI_NOT_OK (0x00000004) // Don't popup any veto API +#define CM_DISABLE_PERSIST (0x00000008) // Persists through restart by setting CONFIGFLAG_DISABLED in the registry +#define CM_DISABLE_BITS (0x0000000F) // The bits for the disable function + +// +// Flags for CM_Get_Device_ID_List, CM_Get_Device_ID_List_Size +// +#define CM_GETIDLIST_FILTER_NONE (0x00000000) +#define CM_GETIDLIST_FILTER_ENUMERATOR (0x00000001) +#define CM_GETIDLIST_FILTER_SERVICE (0x00000002) +#define CM_GETIDLIST_FILTER_EJECTRELATIONS (0x00000004) +#define CM_GETIDLIST_FILTER_REMOVALRELATIONS (0x00000008) +#define CM_GETIDLIST_FILTER_POWERRELATIONS (0x00000010) +#define CM_GETIDLIST_FILTER_BUSRELATIONS (0x00000020) +#define CM_GETIDLIST_DONOTGENERATE (0x10000040) +#if (WINVER <= _WIN32_WINNT_LONGHORN) +#define CM_GETIDLIST_FILTER_BITS (0x1000007F) +#endif // (WINVER <= _WIN32_WINNT_LONGHORN) +#if (WINVER >= _WIN32_WINNT_WIN7) +#define CM_GETIDLIST_FILTER_TRANSPORTRELATIONS (0x00000080) +#define CM_GETIDLIST_FILTER_PRESENT (0x00000100) +#define CM_GETIDLIST_FILTER_CLASS (0x00000200) +#define CM_GETIDLIST_FILTER_BITS (0x100003FF) +#endif // (WINVER >= _WIN32_WINNT_WIN7) + +// +// Flags for CM_Get_Device_Interface_List, CM_Get_Device_Interface_List_Size +// +#define CM_GET_DEVICE_INTERFACE_LIST_PRESENT (0x00000000) // only currently 'live' device interfaces +#define CM_GET_DEVICE_INTERFACE_LIST_ALL_DEVICES (0x00000001) // all registered device interfaces, live or not +#define CM_GET_DEVICE_INTERFACE_LIST_BITS (0x00000001) + +// +// Registry properties (specified in call to CM_Get_DevInst_Registry_Property or CM_Get_Class_Registry_Property, +// some are allowed in calls to CM_Set_DevInst_Registry_Property and CM_Set_Class_Registry_Property) +// CM_DRP_xxxx values should be used for CM_Get_DevInst_Registry_Property / CM_Set_DevInst_Registry_Property +// CM_CRP_xxxx values should be used for CM_Get_Class_Registry_Property / CM_Set_Class_Registry_Property +// DRP/CRP values that overlap must have a 1:1 correspondence with each other +// +#define CM_DRP_DEVICEDESC (0x00000001) // DeviceDesc REG_SZ property (RW) +#define CM_DRP_HARDWAREID (0x00000002) // HardwareID REG_MULTI_SZ property (RW) +#define CM_DRP_COMPATIBLEIDS (0x00000003) // CompatibleIDs REG_MULTI_SZ property (RW) +#define CM_DRP_UNUSED0 (0x00000004) // unused +#define CM_DRP_SERVICE (0x00000005) // Service REG_SZ property (RW) +#define CM_DRP_UNUSED1 (0x00000006) // unused +#define CM_DRP_UNUSED2 (0x00000007) // unused +#define CM_DRP_CLASS (0x00000008) // Class REG_SZ property (RW) +#define CM_DRP_CLASSGUID (0x00000009) // ClassGUID REG_SZ property (RW) +#define CM_DRP_DRIVER (0x0000000A) // Driver REG_SZ property (RW) +#define CM_DRP_CONFIGFLAGS (0x0000000B) // ConfigFlags REG_DWORD property (RW) +#define CM_DRP_MFG (0x0000000C) // Mfg REG_SZ property (RW) +#define CM_DRP_FRIENDLYNAME (0x0000000D) // FriendlyName REG_SZ property (RW) +#define CM_DRP_LOCATION_INFORMATION (0x0000000E) // LocationInformation REG_SZ property (RW) +#define CM_DRP_PHYSICAL_DEVICE_OBJECT_NAME (0x0000000F) // PhysicalDeviceObjectName REG_SZ property (R) +#define CM_DRP_CAPABILITIES (0x00000010) // Capabilities REG_DWORD property (R) +#define CM_DRP_UI_NUMBER (0x00000011) // UiNumber REG_DWORD property (R) +#define CM_DRP_UPPERFILTERS (0x00000012) // UpperFilters REG_MULTI_SZ property (RW) + +#if (WINVER >= _WIN32_WINNT_LONGHORN) +#define CM_CRP_UPPERFILTERS CM_DRP_UPPERFILTERS // UpperFilters REG_MULTI_SZ property (RW) +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + +#define CM_DRP_LOWERFILTERS (0x00000013) // LowerFilters REG_MULTI_SZ property (RW) + +#if (WINVER >= _WIN32_WINNT_LONGHORN) +#define CM_CRP_LOWERFILTERS CM_DRP_LOWERFILTERS // LowerFilters REG_MULTI_SZ property (RW) +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + +#define CM_DRP_BUSTYPEGUID (0x00000014) // Bus Type Guid, GUID, (R) +#define CM_DRP_LEGACYBUSTYPE (0x00000015) // Legacy bus type, INTERFACE_TYPE, (R) +#define CM_DRP_BUSNUMBER (0x00000016) // Bus Number, DWORD, (R) +#define CM_DRP_ENUMERATOR_NAME (0x00000017) // Enumerator Name REG_SZ property (R) +#define CM_DRP_SECURITY (0x00000018) // Security - Device override (RW) +#define CM_CRP_SECURITY CM_DRP_SECURITY // Class default security (RW) +#define CM_DRP_SECURITY_SDS (0x00000019) // Security - Device override (RW) +#define CM_CRP_SECURITY_SDS CM_DRP_SECURITY_SDS // Class default security (RW) +#define CM_DRP_DEVTYPE (0x0000001A) // Device Type - Device override (RW) +#define CM_CRP_DEVTYPE CM_DRP_DEVTYPE // Class default Device-type (RW) +#define CM_DRP_EXCLUSIVE (0x0000001B) // Exclusivity - Device override (RW) +#define CM_CRP_EXCLUSIVE CM_DRP_EXCLUSIVE // Class default (RW) +#define CM_DRP_CHARACTERISTICS (0x0000001C) // Characteristics - Device Override (RW) +#define CM_CRP_CHARACTERISTICS CM_DRP_CHARACTERISTICS // Class default (RW) +#define CM_DRP_ADDRESS (0x0000001D) // Device Address (R) +#define CM_DRP_UI_NUMBER_DESC_FORMAT (0x0000001E) // UINumberDescFormat REG_SZ property (RW) + +#if (WINVER >= _WIN32_WINNT_WINXP) +#define CM_DRP_DEVICE_POWER_DATA (0x0000001F) // CM_POWER_DATA REG_BINARY property (R) +#define CM_DRP_REMOVAL_POLICY (0x00000020) // CM_DEVICE_REMOVAL_POLICY REG_DWORD (R) +#define CM_DRP_REMOVAL_POLICY_HW_DEFAULT (0x00000021) // CM_DRP_REMOVAL_POLICY_HW_DEFAULT REG_DWORD (R) +#define CM_DRP_REMOVAL_POLICY_OVERRIDE (0x00000022) // CM_DRP_REMOVAL_POLICY_OVERRIDE REG_DWORD (RW) +#define CM_DRP_INSTALL_STATE (0x00000023) // CM_DRP_INSTALL_STATE REG_DWORD (R) +#endif // (WINVER >= _WIN32_WINNT_WINXP) + +#if (WINVER >= _WIN32_WINNT_WS03) +#define CM_DRP_LOCATION_PATHS (0x00000024) // CM_DRP_LOCATION_PATHS REG_MULTI_SZ (R) +#endif // (WINVER >= _WIN32_WINNT_WS03) + +#if (WINVER >= _WIN32_WINNT_WIN7) +#define CM_DRP_BASE_CONTAINERID (0x00000025) // Base ContainerID REG_SZ property (R) +#endif // (WINVER >= _WIN32_WINNT_WIN7) + +#define CM_DRP_MIN (0x00000001) // First device register +#define CM_CRP_MIN CM_DRP_MIN // First class register +#define CM_DRP_MAX (0x00000025) // Last device register +#define CM_CRP_MAX CM_DRP_MAX // Last class register + +// +// Capabilities bits (the capability value is returned from calling +// CM_Get_DevInst_Registry_Property with CM_DRP_CAPABILITIES property) +// +#define CM_DEVCAP_LOCKSUPPORTED (0x00000001) +#define CM_DEVCAP_EJECTSUPPORTED (0x00000002) +#define CM_DEVCAP_REMOVABLE (0x00000004) +#define CM_DEVCAP_DOCKDEVICE (0x00000008) +#define CM_DEVCAP_UNIQUEID (0x00000010) +#define CM_DEVCAP_SILENTINSTALL (0x00000020) +#define CM_DEVCAP_RAWDEVICEOK (0x00000040) +#define CM_DEVCAP_SURPRISEREMOVALOK (0x00000080) +#define CM_DEVCAP_HARDWAREDISABLED (0x00000100) +#define CM_DEVCAP_NONDYNAMIC (0x00000200) +#define CM_DEVCAP_SECUREDEVICE (0x00000400) + +#if (WINVER >= _WIN32_WINNT_WINXP) +// +// Removal policies (retrievable via CM_Get_DevInst_Registry_Property with +// the CM_DRP_REMOVAL_POLICY, CM_DRP_REMOVAL_POLICY_OVERRIDE, or +// CM_DRP_REMOVAL_POLICY_HW_DEFAULT properties) +// +#define CM_REMOVAL_POLICY_EXPECT_NO_REMOVAL 1 +#define CM_REMOVAL_POLICY_EXPECT_ORDERLY_REMOVAL 2 +#define CM_REMOVAL_POLICY_EXPECT_SURPRISE_REMOVAL 3 + +// +// Device install states (retrievable via CM_Get_DevInst_Registry_Property with +// the CM_DRP_INSTALL_STATE properties) +// +#define CM_INSTALL_STATE_INSTALLED 0 +#define CM_INSTALL_STATE_NEEDS_REINSTALL 1 +#define CM_INSTALL_STATE_FAILED_INSTALL 2 +#define CM_INSTALL_STATE_FINISH_INSTALL 3 +#endif // (WINVER >= _WIN32_WINNT_WINXP) + +// +// Flags for CM_Locate_DevNode +// +#define CM_LOCATE_DEVNODE_NORMAL 0x00000000 +#define CM_LOCATE_DEVNODE_PHANTOM 0x00000001 +#define CM_LOCATE_DEVNODE_CANCELREMOVE 0x00000002 +#define CM_LOCATE_DEVNODE_NOVALIDATION 0x00000004 +#define CM_LOCATE_DEVNODE_BITS 0x00000007 + +#define CM_LOCATE_DEVINST_NORMAL CM_LOCATE_DEVNODE_NORMAL +#define CM_LOCATE_DEVINST_PHANTOM CM_LOCATE_DEVNODE_PHANTOM +#define CM_LOCATE_DEVINST_CANCELREMOVE CM_LOCATE_DEVNODE_CANCELREMOVE +#define CM_LOCATE_DEVINST_NOVALIDATION CM_LOCATE_DEVNODE_NOVALIDATION +#define CM_LOCATE_DEVINST_BITS CM_LOCATE_DEVNODE_BITS + +// +// Flags for CM_Open_Class_Key +// +#define CM_OPEN_CLASS_KEY_INSTALLER (0x00000000) +#define CM_OPEN_CLASS_KEY_INTERFACE (0x00000001) +#define CM_OPEN_CLASS_KEY_BITS (0x00000001) + +// +// Flags for CM_Query_And_Remove_SubTree +// +#define CM_REMOVE_UI_OK 0x00000000 +#define CM_REMOVE_UI_NOT_OK 0x00000001 +#define CM_REMOVE_NO_RESTART 0x00000002 + +#if (WINVER >= _WIN32_WINNT_WIN10) +#define CM_REMOVE_DISABLE 0x00000004 +#endif // (WINVER >= _WIN32_WINNT_WIN10) + +#define CM_REMOVE_BITS 0x00000007 + +// +// Backward compatibility--do not use +// (use above CM_REMOVE_* flags instead) +// +#define CM_QUERY_REMOVE_UI_OK (CM_REMOVE_UI_OK) +#define CM_QUERY_REMOVE_UI_NOT_OK (CM_REMOVE_UI_NOT_OK) +#define CM_QUERY_REMOVE_BITS (CM_QUERY_REMOVE_UI_OK|CM_QUERY_REMOVE_UI_NOT_OK) + +// +// Flags for CM_Reenumerate_DevNode +// +#define CM_REENUMERATE_NORMAL 0x00000000 +#define CM_REENUMERATE_SYNCHRONOUS 0x00000001 + +#if (WINVER >= _WIN32_WINNT_WINXP) +#define CM_REENUMERATE_RETRY_INSTALLATION 0x00000002 +#define CM_REENUMERATE_ASYNCHRONOUS 0x00000004 +#endif // (WINVER >= _WIN32_WINNT_WINXP) + +#define CM_REENUMERATE_BITS 0x00000007 + +// +// Flags for CM_Register_Device_Driver +// +#define CM_REGISTER_DEVICE_DRIVER_STATIC (0x00000000) +#define CM_REGISTER_DEVICE_DRIVER_DISABLEABLE (0x00000001) +#define CM_REGISTER_DEVICE_DRIVER_REMOVABLE (0x00000002) +#define CM_REGISTER_DEVICE_DRIVER_BITS (0x00000003) + +// +// Registry Branch Locations (for CM_Open_DevNode_Key) +// +#define CM_REGISTRY_HARDWARE (0x00000000) +#define CM_REGISTRY_SOFTWARE (0x00000001) +#define CM_REGISTRY_USER (0x00000100) +#define CM_REGISTRY_CONFIG (0x00000200) +#define CM_REGISTRY_BITS (0x00000301) + +// +// Flags for CM_Set_DevNode_Problem +// +#define CM_SET_DEVNODE_PROBLEM_NORMAL (0x00000000) // only set problem if currently no problem +#define CM_SET_DEVNODE_PROBLEM_OVERRIDE (0x00000001) // override current problem with new problem +#define CM_SET_DEVNODE_PROBLEM_BITS (0x00000001) + +#define CM_SET_DEVINST_PROBLEM_NORMAL CM_SET_DEVNODE_PROBLEM_NORMAL +#define CM_SET_DEVINST_PROBLEM_OVERRIDE CM_SET_DEVNODE_PROBLEM_OVERRIDE +#define CM_SET_DEVINST_PROBLEM_BITS CM_SET_DEVNODE_PROBLEM_BITS + +// +// Flags for CM_Set_HW_Prof_Flags +// +#define CM_SET_HW_PROF_FLAGS_UI_NOT_OK (0x00000001) // Don't popup any veto UI +#define CM_SET_HW_PROF_FLAGS_BITS (0x00000001) + +// +// Re-enable and configuration actions (specified in call to CM_Setup_DevInst) +// +#define CM_SETUP_DEVNODE_READY (0x00000000) // Reenable problem devinst +#define CM_SETUP_DEVINST_READY CM_SETUP_DEVNODE_READY +#define CM_SETUP_DOWNLOAD (0x00000001) // Get info about devinst +#define CM_SETUP_WRITE_LOG_CONFS (0x00000002) +#define CM_SETUP_PROP_CHANGE (0x00000003) + +#if (WINVER >= _WIN32_WINNT_WINXP) +#define CM_SETUP_DEVNODE_RESET (0x00000004) // Reset problem devinst without starting +#define CM_SETUP_DEVINST_RESET CM_SETUP_DEVNODE_RESET +#endif // (WINVER >= _WIN32_WINNT_WINXP) +#if (WINVER >= _WIN32_WINNT_WIN8) +#define CM_SETUP_DEVNODE_CONFIG (0x00000005) // Configure devinst without (re)starting +#define CM_SETUP_DEVINST_CONFIG CM_SETUP_DEVNODE_CONFIG +#define CM_SETUP_DEVNODE_CONFIG_CLASS (0x00000006) // Configure devinst class without (re)starting +#define CM_SETUP_DEVINST_CONFIG_CLASS CM_SETUP_DEVNODE_CONFIG_CLASS +#endif // (WINVER >= _WIN32_WINNT_WIN8) +#if (WINVER >= _WIN32_WINNT_WINBLUE) +#define CM_SETUP_DEVNODE_CONFIG_EXTENSIONS (0x00000007) // Configure devinst extensions without (re)starting +#define CM_SETUP_DEVINST_CONFIG_EXTENSIONS CM_SETUP_DEVNODE_CONFIG_EXTENSIONS +#endif // (WINVER >= _WIN32_WINNT_WINBLUE) +#if (WINVER >= _WIN32_WINNT_WINTHRESHOLD) +#define CM_SETUP_DEVNODE_CONFIG_RESET (0x00000008) // Reset devinst configuration without (re)starting +#define CM_SETUP_DEVINST_CONFIG_RESET CM_SETUP_DEVNODE_CONFIG_RESET +#endif // (WINVER >= _WIN32_WINNT_WINTHRESHOLD) +#define CM_SETUP_BITS (0x0000000F) + +// +// Flags for CM_Query_Arbitrator_Free_Data and +// CM_Query_Arbitrator_Free_Data_Size. +// +#define CM_QUERY_ARBITRATOR_RAW (0x00000000) +#define CM_QUERY_ARBITRATOR_TRANSLATED (0x00000001) +#define CM_QUERY_ARBITRATOR_BITS (0x00000001) + +#if (WINVER >= _WIN32_WINNT_WINXP) +// +// Flags for CM_Get_DevNode_Custom_Property +// +#define CM_CUSTOMDEVPROP_MERGE_MULTISZ (0x00000001) +#define CM_CUSTOMDEVPROP_BITS (0x00000001) +#endif // (WINVER >= _WIN32_WINNT_WINXP) + +// +// Name attibute bitmasks +// +#define CM_NAME_ATTRIBUTE_NAME_RETRIEVED_FROM_DEVICE (0x1) +#define CM_NAME_ATTRIBUTE_USER_ASSIGNED_NAME (0x2) + +#if (WINVER >= _WIN32_WINNT_LONGHORN) +// +// Flags for CM_Get_Class_Property_Keys_Ex, CM_Get_Class_Property_Ex, +// and CM_Set_Class_Property_Ex +// +#define CM_CLASS_PROPERTY_INSTALLER (0x00000000) +#define CM_CLASS_PROPERTY_INTERFACE (0x00000001) +#define CM_CLASS_PROPERTY_BITS (0x00000001) +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + + +#if (WINVER >= _WIN32_WINNT_WIN8) + +// +// Device notification registration handle +// + +DECLARE_HANDLE(HCMNOTIFICATION); +typedef HCMNOTIFICATION *PHCMNOTIFICATION; + +// +// Device notification flags for registration filters +// + +#define CM_NOTIFY_FILTER_FLAG_ALL_INTERFACE_CLASSES 0x00000001 +#define CM_NOTIFY_FILTER_FLAG_ALL_DEVICE_INSTANCES 0x00000002 + +#define CM_NOTIFY_FILTER_VALID_FLAGS (CM_NOTIFY_FILTER_FLAG_ALL_INTERFACE_CLASSES |\ + CM_NOTIFY_FILTER_FLAG_ALL_DEVICE_INSTANCES) + +// +// Device notification filter types +// + +typedef enum _CM_NOTIFY_FILTER_TYPE { + + CM_NOTIFY_FILTER_TYPE_DEVICEINTERFACE = 0, + CM_NOTIFY_FILTER_TYPE_DEVICEHANDLE, + CM_NOTIFY_FILTER_TYPE_DEVICEINSTANCE, + CM_NOTIFY_FILTER_TYPE_MAX + +} CM_NOTIFY_FILTER_TYPE, *PCM_NOTIFY_FILTER_TYPE; + +// +// Device notification filter structure +// + +typedef struct _CM_NOTIFY_FILTER { + DWORD cbSize; + DWORD Flags; + CM_NOTIFY_FILTER_TYPE FilterType; + DWORD Reserved; + union { + struct { + GUID ClassGuid; + } DeviceInterface; + + struct { + HANDLE hTarget; + } DeviceHandle; + + struct { + WCHAR InstanceId[MAX_DEVICE_ID_LEN]; + } DeviceInstance; + + } u; +} CM_NOTIFY_FILTER, *PCM_NOTIFY_FILTER; + +// +// Device notification event action types +// + +typedef enum _CM_NOTIFY_ACTION { + /* Filter type: CM_NOTIFY_FILTER_TYPE_DEVICEINTERFACE */ + + CM_NOTIFY_ACTION_DEVICEINTERFACEARRIVAL = 0, + CM_NOTIFY_ACTION_DEVICEINTERFACEREMOVAL, + + /* Filter type: CM_NOTIFY_FILTER_TYPE_DEVICEHANDLE */ + + CM_NOTIFY_ACTION_DEVICEQUERYREMOVE, + CM_NOTIFY_ACTION_DEVICEQUERYREMOVEFAILED, + CM_NOTIFY_ACTION_DEVICEREMOVEPENDING, + CM_NOTIFY_ACTION_DEVICEREMOVECOMPLETE, + CM_NOTIFY_ACTION_DEVICECUSTOMEVENT, + + /* Filter type: CM_NOTIFY_FILTER_TYPE_DEVICEINSTANCE */ + + CM_NOTIFY_ACTION_DEVICEINSTANCEENUMERATED, + CM_NOTIFY_ACTION_DEVICEINSTANCESTARTED, + CM_NOTIFY_ACTION_DEVICEINSTANCEREMOVED, + + CM_NOTIFY_ACTION_MAX +} CM_NOTIFY_ACTION, *PCM_NOTIFY_ACTION; + +// +// Device notification event data structure +// + +typedef struct _CM_NOTIFY_EVENT_DATA { + + CM_NOTIFY_FILTER_TYPE FilterType; + DWORD Reserved; + + union { + + struct { + GUID ClassGuid; + WCHAR SymbolicLink[ANYSIZE_ARRAY]; + } DeviceInterface; + + struct { + GUID EventGuid; + LONG NameOffset; + DWORD DataSize; + BYTE Data[ANYSIZE_ARRAY]; + } DeviceHandle; + + struct { + WCHAR InstanceId[ANYSIZE_ARRAY]; + } DeviceInstance; + + } u; + +} CM_NOTIFY_EVENT_DATA, *PCM_NOTIFY_EVENT_DATA; + +// +// Device notification event callback definiton +// + +_Pre_satisfies_(EventDataSize >= sizeof(CM_NOTIFY_EVENT_DATA)) +typedef __callback DWORD (CALLBACK *PCM_NOTIFY_CALLBACK)( + _In_ HCMNOTIFICATION hNotify, + _In_opt_ PVOID Context, + _In_ CM_NOTIFY_ACTION Action, + _In_reads_bytes_(EventDataSize) PCM_NOTIFY_EVENT_DATA EventData, + _In_ DWORD EventDataSize + ); + +#endif // (WINVER >= _WIN32_WINNT_WIN8) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +//-------------------------------------------------------------- +// Function prototypes +//-------------------------------------------------------------- + +CMAPI +CONFIGRET +WINAPI +CM_Add_Empty_Log_Conf( + _Out_ PLOG_CONF plcLogConf, + _In_ DEVINST dnDevInst, + _In_ PRIORITY Priority, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Add_Empty_Log_Conf_Ex( + _Out_ PLOG_CONF plcLogConf, + _In_ DEVINST dnDevInst, + _In_ PRIORITY Priority, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Add_IDA( + _In_ DEVINST dnDevInst, + _In_ PSTR pszID, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Add_IDW( + _In_ DEVINST dnDevInst, + _In_ PWSTR pszID, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Add_ID_ExA( + _In_ DEVINST dnDevInst, + _In_ PSTR pszID, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Add_ID_ExW( + _In_ DEVINST dnDevInst, + _In_ PWSTR pszID, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Add_ID CM_Add_IDW +#define CM_Add_ID_Ex CM_Add_ID_ExW +#else +#define CM_Add_ID CM_Add_IDA +#define CM_Add_ID_Ex CM_Add_ID_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Add_Range( + _In_ DWORDLONG ullStartValue, + _In_ DWORDLONG ullEndValue, + _In_ RANGE_LIST rlh, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Add_Res_Des( + _Out_opt_ PRES_DES prdResDes, + _In_ LOG_CONF lcLogConf, + _In_ RESOURCEID ResourceID, + _In_reads_bytes_(ResourceLen) PCVOID ResourceData, + _In_ ULONG ResourceLen, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Add_Res_Des_Ex( + _Out_opt_ PRES_DES prdResDes, + _In_ LOG_CONF lcLogConf, + _In_ RESOURCEID ResourceID, + _In_reads_bytes_(ResourceLen) PCVOID ResourceData, + _In_ ULONG ResourceLen, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Connect_MachineA( + _In_opt_ PCSTR UNCServerName, + _Out_ PHMACHINE phMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Connect_MachineW( + _In_opt_ PCWSTR UNCServerName, + _Out_ PHMACHINE phMachine + ); +#ifdef UNICODE +#define CM_Connect_Machine CM_Connect_MachineW +#else +#define CM_Connect_Machine CM_Connect_MachineA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Create_DevNodeA( + _Out_ PDEVINST pdnDevInst, + _In_ DEVINSTID_A pDeviceID, + _In_ DEVINST dnParent, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Create_DevNodeW( + _Out_ PDEVINST pdnDevInst, + _In_ DEVINSTID_W pDeviceID, + _In_ DEVINST dnParent, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Create_DevNode_ExA( + _Out_ PDEVINST pdnDevInst, + _In_ DEVINSTID_A pDeviceID, + _In_ DEVINST dnParent, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Create_DevNode_ExW( + _Out_ PDEVINST pdnDevInst, + _In_ DEVINSTID_W pDeviceID, + _In_ DEVINST dnParent, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Create_DevInstW CM_Create_DevNodeW +#define CM_Create_DevInstA CM_Create_DevNodeA +#define CM_Create_DevInst_ExW CM_Create_DevNode_ExW +#define CM_Create_DevInst_ExA CM_Create_DevNode_ExA +#ifdef UNICODE +#define CM_Create_DevNode CM_Create_DevNodeW +#define CM_Create_DevInst CM_Create_DevNodeW +#define CM_Create_DevNode_Ex CM_Create_DevNode_ExW +#define CM_Create_DevInst_Ex CM_Create_DevInst_ExW +#else +#define CM_Create_DevNode CM_Create_DevNodeA +#define CM_Create_DevInst CM_Create_DevNodeA +#define CM_Create_DevNode_Ex CM_Create_DevNode_ExA +#define CM_Create_DevInst_Ex CM_Create_DevNode_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Create_Range_List( + _Out_ PRANGE_LIST prlh, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Delete_Class_Key( + _In_ LPGUID ClassGuid, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Delete_Class_Key_Ex( + _In_ LPGUID ClassGuid, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Delete_DevNode_Key( + _In_ DEVNODE dnDevNode, + _In_ ULONG ulHardwareProfile, + _In_ ULONG ulFlags + ); + +#define CM_Delete_DevInst_Key CM_Delete_DevNode_Key + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Delete_DevNode_Key_Ex( + _In_ DEVNODE dnDevNode, + _In_ ULONG ulHardwareProfile, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Delete_DevInst_Key_Ex CM_Delete_DevNode_Key_Ex + +CMAPI +CONFIGRET +WINAPI +CM_Delete_Range( + _In_ DWORDLONG ullStartValue, + _In_ DWORDLONG ullEndValue, + _In_ RANGE_LIST rlh, + _In_ ULONG ulFlags + ); + +__drv_preferredFunction("CM_Query_Resource_Conflict_List", "Obsolete") +CMAPI +CONFIGRET +WINAPI +CM_Detect_Resource_Conflict( + _In_ DEVINST dnDevInst, + _In_ RESOURCEID ResourceID, + _In_reads_bytes_(ResourceLen) PCVOID ResourceData, + _In_ ULONG ResourceLen, + _Out_ PBOOL pbConflictDetected, + _In_ ULONG ulFlags + ); + +__drv_preferredFunction("CM_Query_Resource_Conflict_List", "Obsolete") +CMAPI +CONFIGRET +WINAPI +CM_Detect_Resource_Conflict_Ex( + _In_ DEVINST dnDevInst, + _In_ RESOURCEID ResourceID, + _In_reads_bytes_(ResourceLen) PCVOID ResourceData, + _In_ ULONG ResourceLen, + _Out_ PBOOL pbConflictDetected, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Disable_DevNode( + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +#define CM_Disable_DevInst CM_Disable_DevNode + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Disable_DevNode_Ex( + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Disable_DevInst_Ex CM_Disable_DevNode_Ex + +CMAPI +CONFIGRET +WINAPI +CM_Disconnect_Machine( + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Dup_Range_List( + _In_ RANGE_LIST rlhOld, + _In_ RANGE_LIST rlhNew, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Enable_DevNode( + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +#define CM_Enable_DevInst CM_Enable_DevNode + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Enable_DevNode_Ex( + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Enable_DevInst_Ex CM_Enable_DevNode_Ex + +CMAPI +CONFIGRET +WINAPI +CM_Enumerate_Classes( + _In_ ULONG ulClassIndex, + _Out_ LPGUID ClassGuid, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Enumerate_Classes_Ex( + _In_ ULONG ulClassIndex, + _Out_ LPGUID ClassGuid, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Enumerate_EnumeratorsA( + _In_ ULONG ulEnumIndex, + _Out_writes_(*pulLength) PSTR Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Enumerate_EnumeratorsW( + _In_ ULONG ulEnumIndex, + _Out_writes_(*pulLength) PWSTR Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Enumerate_Enumerators_ExA( + _In_ ULONG ulEnumIndex, + _Out_writes_(*pulLength) PSTR Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Enumerate_Enumerators_ExW( + _In_ ULONG ulEnumIndex, + _Out_writes_(*pulLength) PWSTR Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Enumerate_Enumerators CM_Enumerate_EnumeratorsW +#define CM_Enumerate_Enumerators_Ex CM_Enumerate_Enumerators_ExW +#else +#define CM_Enumerate_Enumerators CM_Enumerate_EnumeratorsA +#define CM_Enumerate_Enumerators_Ex CM_Enumerate_Enumerators_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Find_Range( + _Out_ PDWORDLONG pullStart, + _In_ DWORDLONG ullStart, + _In_ ULONG ulLength, + _In_ DWORDLONG ullAlignment, + _In_ DWORDLONG ullEnd, + _In_ RANGE_LIST rlh, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_First_Range( + _In_ RANGE_LIST rlh, + _Out_ PDWORDLONG pullStart, + _Out_ PDWORDLONG pullEnd, + _Out_ PRANGE_ELEMENT preElement, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Free_Log_Conf( + _In_ LOG_CONF lcLogConfToBeFreed, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Free_Log_Conf_Ex( + _In_ LOG_CONF lcLogConfToBeFreed, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Free_Log_Conf_Handle( + _In_ LOG_CONF lcLogConf + ); + +CMAPI +CONFIGRET +WINAPI +CM_Free_Range_List( + _In_ RANGE_LIST rlh, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Free_Res_Des( + _Out_opt_ PRES_DES prdResDes, + _In_ RES_DES rdResDes, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Free_Res_Des_Ex( + _Out_opt_ PRES_DES prdResDes, + _In_ RES_DES rdResDes, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Free_Res_Des_Handle( + _In_ RES_DES rdResDes + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Child( + _Out_ PDEVINST pdnDevInst, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Child_Ex( + _Out_ PDEVINST pdnDevInst, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_NameA( + _In_ LPGUID ClassGuid, + _Out_writes_opt_(*pulLength) PSTR Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_NameW( + _In_ LPGUID ClassGuid, + _Out_writes_opt_(*pulLength) PWSTR Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Name_ExA( + _In_ LPGUID ClassGuid, + _Out_writes_opt_(*pulLength) PSTR Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Name_ExW( + _In_ LPGUID ClassGuid, + _Out_writes_opt_(*pulLength) PWSTR Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Class_Name CM_Get_Class_NameW +#define CM_Get_Class_Name_Ex CM_Get_Class_Name_ExW +#else +#define CM_Get_Class_Name CM_Get_Class_NameA +#define CM_Get_Class_Name_Ex CM_Get_Class_Name_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Key_NameA( + _In_ LPGUID ClassGuid, + _Out_writes_opt_(*pulLength) LPSTR pszKeyName, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Key_NameW( + _In_ LPGUID ClassGuid, + _Out_writes_opt_(*pulLength) LPWSTR pszKeyName, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Key_Name_ExA( + _In_ LPGUID ClassGuid, + _Out_writes_opt_(*pulLength) LPSTR pszKeyName, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Key_Name_ExW( + _In_ LPGUID ClassGuid, + _Out_writes_opt_(*pulLength) LPWSTR pszKeyName, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Class_Key_Name CM_Get_Class_Key_NameW +#define CM_Get_Class_Key_Name_Ex CM_Get_Class_Key_Name_ExW +#else +#define CM_Get_Class_Key_Name CM_Get_Class_Key_NameA +#define CM_Get_Class_Key_Name_Ex CM_Get_Class_Key_Name_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Depth( + _Out_ PULONG pulDepth, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Depth_Ex( + _Out_ PULONG pulDepth, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_IDA( + _In_ DEVINST dnDevInst, + _Out_writes_(BufferLen) PSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_IDW( + _In_ DEVINST dnDevInst, + _Out_writes_(BufferLen) PWSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Get_Device_ID CM_Get_Device_IDW +#else +#define CM_Get_Device_ID CM_Get_Device_IDA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_ExA( + _In_ DEVINST dnDevInst, + _Out_writes_(BufferLen) PSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_ExW( + _In_ DEVINST dnDevInst, + _Out_writes_(BufferLen) PWSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExW +#else +#define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_ListA( + _In_opt_ PCSTR pszFilter, + _Out_writes_(BufferLen) PZZSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_ListW( + _In_opt_ PCWSTR pszFilter, + _Out_writes_(BufferLen) PZZWSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Get_Device_ID_List CM_Get_Device_ID_ListW +#else +#define CM_Get_Device_ID_List CM_Get_Device_ID_ListA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_List_ExA( + _In_opt_ PCSTR pszFilter, + _Out_writes_(BufferLen) PZZSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_List_ExW( + _In_opt_ PCWSTR pszFilter, + _Out_writes_(BufferLen) PZZWSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Device_ID_List_Ex CM_Get_Device_ID_List_ExW +#else +#define CM_Get_Device_ID_List_Ex CM_Get_Device_ID_List_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_List_SizeA( + _Out_ PULONG pulLen, + _In_opt_ PCSTR pszFilter, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_List_SizeW( + _Out_ PULONG pulLen, + _In_opt_ PCWSTR pszFilter, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Get_Device_ID_List_Size CM_Get_Device_ID_List_SizeW +#else +#define CM_Get_Device_ID_List_Size CM_Get_Device_ID_List_SizeA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_List_Size_ExA( + _Out_ PULONG pulLen, + _In_opt_ PCSTR pszFilter, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_List_Size_ExW( + _Out_ PULONG pulLen, + _In_opt_ PCWSTR pszFilter, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Device_ID_List_Size_Ex CM_Get_Device_ID_List_Size_ExW +#else +#define CM_Get_Device_ID_List_Size_Ex CM_Get_Device_ID_List_Size_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_Size( + _Out_ PULONG pulLen, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_ID_Size_Ex( + _Out_ PULONG pulLen, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#if (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_PropertyW( + _In_ DEVINST dnDevInst, + _In_ CONST DEVPROPKEY *PropertyKey, + _Out_ DEVPROPTYPE *PropertyType, + _Out_writes_bytes_opt_(*PropertyBufferSize) PBYTE PropertyBuffer, + _Inout_ PULONG PropertyBufferSize, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Get_DevNode_Property CM_Get_DevNode_PropertyW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Property_ExW( + _In_ DEVINST dnDevInst, + _In_ CONST DEVPROPKEY *PropertyKey, + _Out_ DEVPROPTYPE *PropertyType, + _Out_writes_bytes_opt_(*PropertyBufferSize) PBYTE PropertyBuffer, + _Inout_ PULONG PropertyBufferSize, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_DevNode_Property_Ex CM_Get_DevNode_Property_ExW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Property_Keys( + _In_ DEVINST dnDevInst, + _Out_writes_opt_(*PropertyKeyCount) DEVPROPKEY *PropertyKeyArray, + _Inout_ PULONG PropertyKeyCount, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Property_Keys_Ex( + _In_ DEVINST dnDevInst, + _Out_writes_opt_(*PropertyKeyCount) DEVPROPKEY *PropertyKeyArray, + _Inout_ PULONG PropertyKeyCount, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Registry_PropertyA( + _In_ DEVINST dnDevInst, + _In_ ULONG ulProperty, + _Out_opt_ PULONG pulRegDataType, + _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Registry_PropertyW( + _In_ DEVINST dnDevInst, + _In_ ULONG ulProperty, + _Out_opt_ PULONG pulRegDataType, + _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +#define CM_Get_DevInst_Registry_PropertyW CM_Get_DevNode_Registry_PropertyW +#define CM_Get_DevInst_Registry_PropertyA CM_Get_DevNode_Registry_PropertyA +#ifdef UNICODE +#define CM_Get_DevInst_Registry_Property CM_Get_DevNode_Registry_PropertyW +#define CM_Get_DevNode_Registry_Property CM_Get_DevNode_Registry_PropertyW +#else +#define CM_Get_DevInst_Registry_Property CM_Get_DevNode_Registry_PropertyA +#define CM_Get_DevNode_Registry_Property CM_Get_DevNode_Registry_PropertyA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Registry_Property_ExA( + _In_ DEVINST dnDevInst, + _In_ ULONG ulProperty, + _Out_opt_ PULONG pulRegDataType, + _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Registry_Property_ExW( + _In_ DEVINST dnDevInst, + _In_ ULONG ulProperty, + _Out_opt_ PULONG pulRegDataType, + _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Get_DevInst_Registry_Property_ExW CM_Get_DevNode_Registry_Property_ExW +#define CM_Get_DevInst_Registry_Property_ExA CM_Get_DevNode_Registry_Property_ExA +#ifdef UNICODE +#define CM_Get_DevInst_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExW +#define CM_Get_DevNode_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExW +#else +#define CM_Get_DevInst_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExA +#define CM_Get_DevNode_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExA +#endif // UNICODE + +#if (WINVER >= _WIN32_WINNT_WINXP) +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Custom_PropertyA( + _In_ DEVINST dnDevInst, + _In_ PCSTR pszCustomPropertyName, + _Out_opt_ PULONG pulRegDataType, + _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Custom_PropertyW( + _In_ DEVINST dnDevInst, + _In_ PCWSTR pszCustomPropertyName, + _Out_opt_ PULONG pulRegDataType, + _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Custom_Property_ExA( + _In_ DEVINST dnDevInst, + _In_ PCSTR pszCustomPropertyName, + _Out_opt_ PULONG pulRegDataType, + _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Custom_Property_ExW( + _In_ DEVINST dnDevInst, + _In_ PCWSTR pszCustomPropertyName, + _Out_opt_ PULONG pulRegDataType, + _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Get_DevInst_Custom_PropertyW CM_Get_DevNode_Custom_PropertyW +#define CM_Get_DevInst_Custom_PropertyA CM_Get_DevNode_Custom_PropertyA +#define CM_Get_DevInst_Custom_Property_ExW CM_Get_DevNode_Custom_Property_ExW +#define CM_Get_DevInst_Custom_Property_ExA CM_Get_DevNode_Custom_Property_ExA +#ifdef UNICODE +#define CM_Get_DevInst_Custom_Property CM_Get_DevNode_Custom_PropertyW +#define CM_Get_DevInst_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExW +#define CM_Get_DevNode_Custom_Property CM_Get_DevNode_Custom_PropertyW +#define CM_Get_DevNode_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExW +#else +#define CM_Get_DevInst_Custom_Property CM_Get_DevNode_Custom_PropertyA +#define CM_Get_DevInst_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExA +#define CM_Get_DevNode_Custom_Property CM_Get_DevNode_Custom_PropertyA +#define CM_Get_DevNode_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExA +#endif // UNICODE +#endif // (WINVER >= _WIN32_WINNT_WINXP) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Status( + _Out_ PULONG pulStatus, + _Out_ PULONG pulProblemNumber, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +#define CM_Get_DevInst_Status CM_Get_DevNode_Status + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_DevNode_Status_Ex( + _Out_ PULONG pulStatus, + _Out_ PULONG pulProblemNumber, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Get_DevInst_Status_Ex CM_Get_DevNode_Status_Ex + +CMAPI +CONFIGRET +WINAPI +CM_Get_First_Log_Conf( + _Out_opt_ PLOG_CONF plcLogConf, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_First_Log_Conf_Ex( + _Out_opt_ PLOG_CONF plcLogConf, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Global_State( + _Out_ PULONG pulState, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Global_State_Ex( + _Out_ PULONG pulState, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_GLOBAL_STATE_CAN_DO_UI (0x00000001) // Can do UI +#define CM_GLOBAL_STATE_ON_BIG_STACK (0x00000002) // Not used (reserved) +#define CM_GLOBAL_STATE_SERVICES_AVAILABLE (0x00000004) // CM APIs available? +#define CM_GLOBAL_STATE_SHUTTING_DOWN (0x00000008) // CM shutting down +#define CM_GLOBAL_STATE_DETECTION_PENDING (0x00000010) // Not used (reserved) +#if (WINVER >= _WIN32_WINNT_WIN7) +#define CM_GLOBAL_STATE_REBOOT_REQUIRED (0x00000020) // system reboot is required +#endif // (WINVER >= _WIN32_WINNT_WIN7) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Hardware_Profile_InfoA( + _In_ ULONG ulIndex, + _Out_ PHWPROFILEINFO_A pHWProfileInfo, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Hardware_Profile_Info_ExA( + _In_ ULONG ulIndex, + _Out_ PHWPROFILEINFO_A pHWProfileInfo, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); +CMAPI +CONFIGRET +WINAPI +CM_Get_Hardware_Profile_InfoW( + _In_ ULONG ulIndex, + _Out_ PHWPROFILEINFO_W pHWProfileInfo, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Hardware_Profile_Info_ExW( + _In_ ULONG ulIndex, + _Out_ PHWPROFILEINFO_W pHWProfileInfo, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Hardware_Profile_Info CM_Get_Hardware_Profile_InfoW +#define CM_Get_Hardware_Profile_Info_Ex CM_Get_Hardware_Profile_Info_ExW +#else +#define CM_Get_Hardware_Profile_Info CM_Get_Hardware_Profile_InfoA +#define CM_Get_Hardware_Profile_Info_Ex CM_Get_Hardware_Profile_Info_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Get_HW_Prof_FlagsA( + _In_ DEVINSTID_A pDeviceID, + _In_ ULONG ulHardwareProfile, + _Out_ PULONG pulValue, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_HW_Prof_FlagsW( + _In_ DEVINSTID_W pDeviceID, + _In_ ULONG ulHardwareProfile, + _Out_ PULONG pulValue, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_HW_Prof_Flags_ExA( + _In_ DEVINSTID_A pDeviceID, + _In_ ULONG ulHardwareProfile, + _Out_ PULONG pulValue, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_HW_Prof_Flags_ExW( + _In_ DEVINSTID_W pDeviceID, + _In_ ULONG ulHardwareProfile, + _Out_ PULONG pulValue, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_HW_Prof_Flags CM_Get_HW_Prof_FlagsW +#define CM_Get_HW_Prof_Flags_Ex CM_Get_HW_Prof_Flags_ExW +#else +#define CM_Get_HW_Prof_Flags CM_Get_HW_Prof_FlagsA +#define CM_Get_HW_Prof_Flags_Ex CM_Get_HW_Prof_Flags_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_AliasA( + _In_ LPCSTR pszDeviceInterface, + _In_ LPGUID AliasInterfaceGuid, + _Out_writes_(*pulLength) LPSTR pszAliasDeviceInterface, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_AliasW( + _In_ LPCWSTR pszDeviceInterface, + _In_ LPGUID AliasInterfaceGuid, + _Out_writes_(*pulLength) LPWSTR pszAliasDeviceInterface, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_Alias_ExA( + _In_ LPCSTR pszDeviceInterface, + _In_ LPGUID AliasInterfaceGuid, + _Out_writes_(*pulLength) LPSTR pszAliasDeviceInterface, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_Alias_ExW( + _In_ LPCWSTR pszDeviceInterface, + _In_ LPGUID AliasInterfaceGuid, + _Out_writes_(*pulLength) LPWSTR pszAliasDeviceInterface, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Device_Interface_Alias CM_Get_Device_Interface_AliasW +#define CM_Get_Device_Interface_Alias_Ex CM_Get_Device_Interface_Alias_ExW +#else +#define CM_Get_Device_Interface_Alias CM_Get_Device_Interface_AliasA +#define CM_Get_Device_Interface_Alias_Ex CM_Get_Device_Interface_Alias_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family, OneCore Family, or App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_ListA( + _In_ LPGUID InterfaceClassGuid, + _In_opt_ DEVINSTID_A pDeviceID, + _Out_writes_(BufferLen) PZZSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_ListW( + _In_ LPGUID InterfaceClassGuid, + _In_opt_ DEVINSTID_W pDeviceID, + _Out_writes_(BufferLen) PZZWSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Get_Device_Interface_List CM_Get_Device_Interface_ListW +#else +#define CM_Get_Device_Interface_List CM_Get_Device_Interface_ListA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_List_ExA( + _In_ LPGUID InterfaceClassGuid, + _In_opt_ DEVINSTID_A pDeviceID, + _Out_writes_(BufferLen) PZZSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_List_ExW( + _In_ LPGUID InterfaceClassGuid, + _In_opt_ DEVINSTID_W pDeviceID, + _Out_writes_(BufferLen) PZZWSTR Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); +#ifdef UNICODE +#define CM_Get_Device_Interface_List_Ex CM_Get_Device_Interface_List_ExW +#else +#define CM_Get_Device_Interface_List_Ex CM_Get_Device_Interface_List_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family, OneCore Family, or App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_List_SizeA( + _Out_ PULONG pulLen, + _In_ LPGUID InterfaceClassGuid, + _In_opt_ DEVINSTID_A pDeviceID, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_List_SizeW( + _Out_ PULONG pulLen, + _In_ LPGUID InterfaceClassGuid, + _In_opt_ DEVINSTID_W pDeviceID, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Get_Device_Interface_List_Size CM_Get_Device_Interface_List_SizeW +#else +#define CM_Get_Device_Interface_List_Size CM_Get_Device_Interface_List_SizeA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_List_Size_ExA( + _Out_ PULONG pulLen, + _In_ LPGUID InterfaceClassGuid, + _In_opt_ DEVINSTID_A pDeviceID, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_List_Size_ExW( + _Out_ PULONG pulLen, + _In_ LPGUID InterfaceClassGuid, + _In_opt_ DEVINSTID_W pDeviceID, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Device_Interface_List_Size_Ex CM_Get_Device_Interface_List_Size_ExW +#else +#define CM_Get_Device_Interface_List_Size_Ex CM_Get_Device_Interface_List_Size_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#if (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_PropertyW( + _In_ LPCWSTR pszDeviceInterface, + _In_ CONST DEVPROPKEY *PropertyKey, + _Out_ DEVPROPTYPE *PropertyType, + _Out_writes_bytes_opt_(*PropertyBufferSize) PBYTE PropertyBuffer, + _Inout_ PULONG PropertyBufferSize, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Get_Device_Interface_Property CM_Get_Device_Interface_PropertyW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_Property_ExW( + _In_ LPCWSTR pszDeviceInterface, + _In_ CONST DEVPROPKEY *PropertyKey, + _Out_ DEVPROPTYPE *PropertyType, + _Out_writes_bytes_opt_(*PropertyBufferSize) PBYTE PropertyBuffer, + _Inout_ PULONG PropertyBufferSize, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Device_Interface_Property_Ex CM_Get_Device_Interface_Property_ExW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_Property_KeysW( + _In_ LPCWSTR pszDeviceInterface, + _Out_writes_opt_(*PropertyKeyCount) DEVPROPKEY *PropertyKeyArray, + _Inout_ PULONG PropertyKeyCount, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Get_Device_Interface_Property_Keys CM_Get_Device_Interface_Property_KeysW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Device_Interface_Property_Keys_ExW( + _In_ LPCWSTR pszDeviceInterface, + _Out_writes_opt_(*PropertyKeyCount) DEVPROPKEY *PropertyKeyArray, + _Inout_ PULONG PropertyKeyCount, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Device_Interface_Property_Keys_Ex CM_Get_Device_Interface_Property_Keys_ExW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Log_Conf_Priority( + _In_ LOG_CONF lcLogConf, + _Out_ PPRIORITY pPriority, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Log_Conf_Priority_Ex( + _In_ LOG_CONF lcLogConf, + _Out_ PPRIORITY pPriority, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Next_Log_Conf( + _Out_opt_ PLOG_CONF plcLogConf, + _In_ LOG_CONF lcLogConf, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Next_Log_Conf_Ex( + _Out_opt_ PLOG_CONF plcLogConf, + _In_ LOG_CONF lcLogConf, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Parent( + _Out_ PDEVINST pdnDevInst, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Parent_Ex( + _Out_ PDEVINST pdnDevInst, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Res_Des_Data( + _In_ RES_DES rdResDes, + _Out_writes_bytes_(BufferLen) PVOID Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Res_Des_Data_Ex( + _In_ RES_DES rdResDes, + _Out_writes_bytes_(BufferLen) PVOID Buffer, + _In_ ULONG BufferLen, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Res_Des_Data_Size( + _Out_ PULONG pulSize, + _In_ RES_DES rdResDes, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Res_Des_Data_Size_Ex( + _Out_ PULONG pulSize, + _In_ RES_DES rdResDes, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Sibling( + _Out_ PDEVINST pdnDevInst, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Sibling_Ex( + _Out_ PDEVINST pdnDevInst, + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +WORD +WINAPI +CM_Get_Version( + VOID + ); + +CMAPI +WORD +WINAPI +CM_Get_Version_Ex( + _In_opt_ HMACHINE hMachine + ); + +#if (WINVER >= _WIN32_WINNT_WINXP) +CMAPI +BOOL +WINAPI +CM_Is_Version_Available( + _In_ WORD wVersion + ); + +CMAPI +BOOL +WINAPI +CM_Is_Version_Available_Ex( + _In_ WORD wVersion, + _In_opt_ HMACHINE hMachine + ); +#endif // (WINVER >= _WIN32_WINNT_WINXP) + +CMAPI +CONFIGRET +WINAPI +CM_Intersect_Range_List( + _In_ RANGE_LIST rlhOld1, + _In_ RANGE_LIST rlhOld2, + _In_ RANGE_LIST rlhNew, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Invert_Range_List( + _In_ RANGE_LIST rlhOld, + _In_ RANGE_LIST rlhNew, + _In_ DWORDLONG ullMaxValue, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Locate_DevNodeA( + _Out_ PDEVINST pdnDevInst, + _In_opt_ DEVINSTID_A pDeviceID, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Locate_DevNodeW( + _Out_ PDEVINST pdnDevInst, + _In_opt_ DEVINSTID_W pDeviceID, + _In_ ULONG ulFlags + ); + +#define CM_Locate_DevInstA CM_Locate_DevNodeA +#define CM_Locate_DevInstW CM_Locate_DevNodeW +#ifdef UNICODE +#define CM_Locate_DevNode CM_Locate_DevNodeW +#define CM_Locate_DevInst CM_Locate_DevNodeW +#else +#define CM_Locate_DevNode CM_Locate_DevNodeA +#define CM_Locate_DevInst CM_Locate_DevNodeA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Locate_DevNode_ExA( + _Out_ PDEVINST pdnDevInst, + _In_opt_ DEVINSTID_A pDeviceID, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); +CMAPI +CONFIGRET +WINAPI +CM_Locate_DevNode_ExW( + _Out_ PDEVINST pdnDevInst, + _In_opt_ DEVINSTID_W pDeviceID, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Locate_DevInst_ExA CM_Locate_DevNode_ExA +#define CM_Locate_DevInst_ExW CM_Locate_DevNode_ExW +#ifdef UNICODE +#define CM_Locate_DevNode_Ex CM_Locate_DevNode_ExW +#define CM_Locate_DevInst_Ex CM_Locate_DevNode_ExW +#else +#define CM_Locate_DevNode_Ex CM_Locate_DevNode_ExA +#define CM_Locate_DevInst_Ex CM_Locate_DevNode_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Merge_Range_List( + _In_ RANGE_LIST rlhOld1, + _In_ RANGE_LIST rlhOld2, + _In_ RANGE_LIST rlhNew, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Modify_Res_Des( + _Out_ PRES_DES prdResDes, + _In_ RES_DES rdResDes, + _In_ RESOURCEID ResourceID, + _In_reads_bytes_(ResourceLen) PCVOID ResourceData, + _In_ ULONG ResourceLen, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Modify_Res_Des_Ex( + _Out_ PRES_DES prdResDes, + _In_ RES_DES rdResDes, + _In_ RESOURCEID ResourceID, + _In_reads_bytes_(ResourceLen) PCVOID ResourceData, + _In_ ULONG ResourceLen, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Move_DevNode( + _In_ DEVINST dnFromDevInst, + _In_ DEVINST dnToDevInst, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Move_DevNode_Ex( + _In_ DEVINST dnFromDevInst, + _In_ DEVINST dnToDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Move_DevInst CM_Move_DevNode +#define CM_Move_DevInst_Ex CM_Move_DevNode_Ex + +CMAPI +CONFIGRET +WINAPI +CM_Next_Range( + _Inout_ PRANGE_ELEMENT preElement, + _Out_ PDWORDLONG pullStart, + _Out_ PDWORDLONG pullEnd, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Next_Res_Des( + _Out_ PRES_DES prdResDes, + _In_ RES_DES rdResDes, + _In_ RESOURCEID ForResource, + _Out_opt_ PRESOURCEID pResourceID, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Next_Res_Des_Ex( + _Out_ PRES_DES prdResDes, + _In_ RES_DES rdResDes, + _In_ RESOURCEID ForResource, + _Out_opt_ PRESOURCEID pResourceID, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Open_Class_KeyA( + _In_opt_ LPGUID ClassGuid, + _In_opt_ LPCSTR pszClassName, + _In_ REGSAM samDesired, + _In_ REGDISPOSITION Disposition, + _Out_ PHKEY phkClass, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Open_Class_KeyW( + _In_opt_ LPGUID ClassGuid, + _In_opt_ LPCWSTR pszClassName, + _In_ REGSAM samDesired, + _In_ REGDISPOSITION Disposition, + _Out_ PHKEY phkClass, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Open_Class_Key CM_Open_Class_KeyW +#else +#define CM_Open_Class_Key CM_Open_Class_KeyA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Open_Class_Key_ExA( + _In_opt_ LPGUID ClassGuid, + _In_opt_ LPCSTR pszClassName, + _In_ REGSAM samDesired, + _In_ REGDISPOSITION Disposition, + _Out_ PHKEY phkClass, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Open_Class_Key_ExW( + _In_opt_ LPGUID ClassGuid, + _In_opt_ LPCWSTR pszClassName, + _In_ REGSAM samDesired, + _In_ REGDISPOSITION Disposition, + _Out_ PHKEY phkClass, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Open_Class_Key_Ex CM_Open_Class_Key_ExW +#else +#define CM_Open_Class_Key_Ex CM_Open_Class_Key_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Open_DevNode_Key( + _In_ DEVINST dnDevNode, + _In_ REGSAM samDesired, + _In_ ULONG ulHardwareProfile, + _In_ REGDISPOSITION Disposition, + _Out_ PHKEY phkDevice, + _In_ ULONG ulFlags + ); + +#define CM_Open_DevInst_Key CM_Open_DevNode_Key + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Open_DevNode_Key_Ex( + _In_ DEVINST dnDevNode, + _In_ REGSAM samDesired, + _In_ ULONG ulHardwareProfile, + _In_ REGDISPOSITION Disposition, + _Out_ PHKEY phkDevice, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Open_DevInst_Key_Ex CM_Open_DevNode_Key_Ex + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#if (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Open_Device_Interface_KeyA( + _In_ LPCSTR pszDeviceInterface, + _In_ REGSAM samDesired, + _In_ REGDISPOSITION Disposition, + _Out_ PHKEY phkDeviceInterface, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Open_Device_Interface_KeyW( + _In_ LPCWSTR pszDeviceInterface, + _In_ REGSAM samDesired, + _In_ REGDISPOSITION Disposition, + _Out_ PHKEY phkDeviceInterface, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Open_Device_Interface_Key CM_Open_Device_Interface_KeyW +#else +#define CM_Open_Device_Interface_Key CM_Open_Device_Interface_KeyA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Open_Device_Interface_Key_ExA( + _In_ LPCSTR pszDeviceInterface, + _In_ REGSAM samDesired, + _In_ REGDISPOSITION Disposition, + _Out_ PHKEY phkDeviceInterface, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Open_Device_Interface_Key_ExW( + _In_ LPCWSTR pszDeviceInterface, + _In_ REGSAM samDesired, + _In_ REGDISPOSITION Disposition, + _Out_ PHKEY phkDeviceInterface, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Open_Device_Interface_Key_Ex CM_Open_Device_Interface_Key_ExW +#else +#define CM_Open_Device_Interface_Key_Ex CM_Open_Device_Interface_Key_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Delete_Device_Interface_KeyA( + _In_ LPCSTR pszDeviceInterface, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Delete_Device_Interface_KeyW( + _In_ LPCWSTR pszDeviceInterface, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Delete_Device_Interface_Key CM_Delete_Device_Interface_KeyW +#else +#define CM_Delete_Device_Interface_Key CM_Delete_Device_Interface_KeyA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Delete_Device_Interface_Key_ExA( + _In_ LPCSTR pszDeviceInterface, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Delete_Device_Interface_Key_ExW( + _In_ LPCWSTR pszDeviceInterface, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Delete_Device_Interface_Key_Ex CM_Delete_Device_Interface_Key_ExW +#else +#define CM_Delete_Device_Interface_Key_Ex CM_Delete_Device_Interface_Key_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Query_Arbitrator_Free_Data( + _Out_writes_bytes_(DataLen) PVOID pData, + _In_ ULONG DataLen, + _In_ DEVINST dnDevInst, + _In_ RESOURCEID ResourceID, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Query_Arbitrator_Free_Data_Ex( + _Out_writes_bytes_(DataLen) PVOID pData, + _In_ ULONG DataLen, + _In_ DEVINST dnDevInst, + _In_ RESOURCEID ResourceID, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Query_Arbitrator_Free_Size( + _Out_ PULONG pulSize, + _In_ DEVINST dnDevInst, + _In_ RESOURCEID ResourceID, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Query_Arbitrator_Free_Size_Ex( + _Out_ PULONG pulSize, + _In_ DEVINST dnDevInst, + _In_ RESOURCEID ResourceID, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Query_Remove_SubTree( + _In_ DEVINST dnAncestor, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Query_Remove_SubTree_Ex( + _In_ DEVINST dnAncestor, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Query_And_Remove_SubTreeA( + _In_ DEVINST dnAncestor, + _Out_opt_ PPNP_VETO_TYPE pVetoType, + _Out_writes_opt_(ulNameLength) LPSTR pszVetoName, + _In_ ULONG ulNameLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Query_And_Remove_SubTreeW( + _In_ DEVINST dnAncestor, + _Out_opt_ PPNP_VETO_TYPE pVetoType, + _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName, + _In_ ULONG ulNameLength, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Query_And_Remove_SubTree CM_Query_And_Remove_SubTreeW +#else +#define CM_Query_And_Remove_SubTree CM_Query_And_Remove_SubTreeA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Query_And_Remove_SubTree_ExA( + _In_ DEVINST dnAncestor, + _Out_opt_ PPNP_VETO_TYPE pVetoType, + _Out_writes_opt_(ulNameLength) LPSTR pszVetoName, + _In_ ULONG ulNameLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Query_And_Remove_SubTree_ExW( + _In_ DEVINST dnAncestor, + _Out_opt_ PPNP_VETO_TYPE pVetoType, + _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName, + _In_ ULONG ulNameLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Query_And_Remove_SubTree_Ex CM_Query_And_Remove_SubTree_ExW +#else +#define CM_Query_And_Remove_SubTree_Ex CM_Query_And_Remove_SubTree_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Request_Device_EjectA( + _In_ DEVINST dnDevInst, + _Out_opt_ PPNP_VETO_TYPE pVetoType, + _Out_writes_opt_(ulNameLength) LPSTR pszVetoName, + _In_ ULONG ulNameLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Request_Device_Eject_ExA( + _In_ DEVINST dnDevInst, + _Out_opt_ PPNP_VETO_TYPE pVetoType, + _Out_writes_opt_(ulNameLength) LPSTR pszVetoName, + _In_ ULONG ulNameLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Request_Device_EjectW( + _In_ DEVINST dnDevInst, + _Out_opt_ PPNP_VETO_TYPE pVetoType, + _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName, + _In_ ULONG ulNameLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Request_Device_Eject_ExW( + _In_ DEVINST dnDevInst, + _Out_opt_ PPNP_VETO_TYPE pVetoType, + _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName, + _In_ ULONG ulNameLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Request_Device_Eject CM_Request_Device_EjectW +#define CM_Request_Device_Eject_Ex CM_Request_Device_Eject_ExW +#else +#define CM_Request_Device_Eject CM_Request_Device_EjectA +#define CM_Request_Device_Eject_Ex CM_Request_Device_Eject_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Reenumerate_DevNode( + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Reenumerate_DevNode_Ex( + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); +#define CM_Reenumerate_DevInst CM_Reenumerate_DevNode +#define CM_Reenumerate_DevInst_Ex CM_Reenumerate_DevNode_Ex + +CMAPI +CONFIGRET +WINAPI +CM_Register_Device_InterfaceA( + _In_ DEVINST dnDevInst, + _In_ LPGUID InterfaceClassGuid, + _In_opt_ LPCSTR pszReference, + _Out_writes_(*pulLength) LPSTR pszDeviceInterface, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Register_Device_InterfaceW( + _In_ DEVINST dnDevInst, + _In_ LPGUID InterfaceClassGuid, + _In_opt_ LPCWSTR pszReference, + _Out_writes_(*pulLength) LPWSTR pszDeviceInterface, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Register_Device_Interface_ExA( + _In_ DEVINST dnDevInst, + _In_ LPGUID InterfaceClassGuid, + _In_opt_ LPCSTR pszReference, + _Out_writes_(*pulLength) LPSTR pszDeviceInterface, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Register_Device_Interface_ExW( + _In_ DEVINST dnDevInst, + _In_ LPGUID InterfaceClassGuid, + _In_opt_ LPCWSTR pszReference, + _Out_writes_(*pulLength) LPWSTR pszDeviceInterface, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Register_Device_Interface CM_Register_Device_InterfaceW +#define CM_Register_Device_Interface_Ex CM_Register_Device_Interface_ExW +#else +#define CM_Register_Device_Interface CM_Register_Device_InterfaceA +#define CM_Register_Device_Interface_Ex CM_Register_Device_Interface_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Set_DevNode_Problem_Ex( + _In_ DEVINST dnDevInst, + _In_ ULONG ulProblem, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Set_DevNode_Problem( + _In_ DEVINST dnDevInst, + _In_ ULONG ulProblem, + _In_ ULONG ulFlags + ); + +#define CM_Set_DevInst_Problem CM_Set_DevNode_Problem +#define CM_Set_DevInst_Problem_Ex CM_Set_DevNode_Problem_Ex + +CMAPI +CONFIGRET +WINAPI +CM_Unregister_Device_InterfaceA( + _In_ LPCSTR pszDeviceInterface, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Unregister_Device_InterfaceW( + _In_ LPCWSTR pszDeviceInterface, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Unregister_Device_Interface_ExA( + _In_ LPCSTR pszDeviceInterface, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Unregister_Device_Interface_ExW( + _In_ LPCWSTR pszDeviceInterface, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Unregister_Device_Interface CM_Unregister_Device_InterfaceW +#define CM_Unregister_Device_Interface_Ex CM_Unregister_Device_Interface_ExW +#else +#define CM_Unregister_Device_Interface CM_Unregister_Device_InterfaceA +#define CM_Unregister_Device_Interface_Ex CM_Unregister_Device_Interface_ExA +#endif // UNICODE + +CMAPI +CONFIGRET +WINAPI +CM_Register_Device_Driver( + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Register_Device_Driver_Ex( + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +__drv_preferredFunction("CM_Query_And_Remove_Subtree", "Obsolete") +CMAPI +CONFIGRET +WINAPI +CM_Remove_SubTree( + _In_ DEVINST dnAncestor, + _In_ ULONG ulFlags + ); + +__drv_preferredFunction("CM_Query_And_Remove_Subtree_Ex", "Obsolete") +CMAPI +CONFIGRET +WINAPI +CM_Remove_SubTree_Ex( + _In_ DEVINST dnAncestor, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#if (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Set_DevNode_PropertyW( + _In_ DEVINST dnDevInst, + _In_ CONST DEVPROPKEY *PropertyKey, + _In_ DEVPROPTYPE PropertyType, + _In_reads_bytes_opt_(PropertyBufferSize) CONST PBYTE PropertyBuffer, + _In_ ULONG PropertyBufferSize, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Set_DevNode_Property CM_Set_DevNode_PropertyW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Set_DevNode_Property_ExW( + _In_ DEVINST dnDevInst, + _In_ CONST DEVPROPKEY *PropertyKey, + _In_ DEVPROPTYPE PropertyType, + _In_reads_bytes_opt_(PropertyBufferSize) CONST PBYTE PropertyBuffer, + _In_ ULONG PropertyBufferSize, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Set_DevNode_Property_Ex CM_Set_DevNode_Property_ExW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Set_DevNode_Registry_PropertyA( + _In_ DEVINST dnDevInst, + _In_ ULONG ulProperty, + _In_reads_bytes_opt_(ulLength) PCVOID Buffer, + _In_ ULONG ulLength, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Set_DevNode_Registry_PropertyW( + _In_ DEVINST dnDevInst, + _In_ ULONG ulProperty, + _In_reads_bytes_opt_(ulLength) PCVOID Buffer, + _In_ ULONG ulLength, + _In_ ULONG ulFlags + ); + +#define CM_Set_DevInst_Registry_PropertyW CM_Set_DevNode_Registry_PropertyW +#define CM_Set_DevInst_Registry_PropertyA CM_Set_DevNode_Registry_PropertyA +#ifdef UNICODE +#define CM_Set_DevInst_Registry_Property CM_Set_DevNode_Registry_PropertyW +#define CM_Set_DevNode_Registry_Property CM_Set_DevNode_Registry_PropertyW +#else +#define CM_Set_DevInst_Registry_Property CM_Set_DevNode_Registry_PropertyA +#define CM_Set_DevNode_Registry_Property CM_Set_DevNode_Registry_PropertyA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Set_DevNode_Registry_Property_ExA( + _In_ DEVINST dnDevInst, + _In_ ULONG ulProperty, + _In_reads_bytes_opt_(ulLength) PCVOID Buffer, + _In_ ULONG ulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Set_DevNode_Registry_Property_ExW( + _In_ DEVINST dnDevInst, + _In_ ULONG ulProperty, + _In_reads_bytes_opt_(ulLength) PCVOID Buffer, + _In_ ULONG ulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Set_DevInst_Registry_Property_ExW CM_Set_DevNode_Registry_Property_ExW +#define CM_Set_DevInst_Registry_Property_ExA CM_Set_DevNode_Registry_Property_ExA +#ifdef UNICODE +#define CM_Set_DevInst_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExW +#define CM_Set_DevNode_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExW +#else +#define CM_Set_DevInst_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExA +#define CM_Set_DevNode_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#if (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Set_Device_Interface_PropertyW( + _In_ LPCWSTR pszDeviceInterface, + _In_ CONST DEVPROPKEY *PropertyKey, + _In_ DEVPROPTYPE PropertyType, + _In_reads_bytes_opt_(PropertyBufferSize) CONST PBYTE PropertyBuffer, + _In_ ULONG PropertyBufferSize, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Set_Device_Interface_Property CM_Set_Device_Interface_PropertyW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Set_Device_Interface_Property_ExW( + _In_ LPCWSTR pszDeviceInterface, + _In_ CONST DEVPROPKEY *PropertyKey, + _In_ DEVPROPTYPE PropertyType, + _In_reads_bytes_opt_(PropertyBufferSize) CONST PBYTE PropertyBuffer, + _In_ ULONG PropertyBufferSize, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Set_Device_Interface_Property_Ex CM_Set_Device_Interface_Property_ExW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Is_Dock_Station_Present( + _Out_ PBOOL pbPresent + ); + +CMAPI +CONFIGRET +WINAPI +CM_Is_Dock_Station_Present_Ex( + _Out_ PBOOL pbPresent, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Request_Eject_PC( + VOID + ); + +CMAPI +CONFIGRET +WINAPI +CM_Request_Eject_PC_Ex( + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Set_HW_Prof_FlagsA( + _In_ DEVINSTID_A pDeviceID, + _In_ ULONG ulConfig, + _In_ ULONG ulValue, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Set_HW_Prof_FlagsW( + _In_ DEVINSTID_W pDeviceID, + _In_ ULONG ulConfig, + _In_ ULONG ulValue, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Set_HW_Prof_Flags_ExA( + _In_ DEVINSTID_A pDeviceID, + _In_ ULONG ulConfig, + _In_ ULONG ulValue, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Set_HW_Prof_Flags_ExW( + _In_ DEVINSTID_W pDeviceID, + _In_ ULONG ulConfig, + _In_ ULONG ulValue, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Set_HW_Prof_Flags CM_Set_HW_Prof_FlagsW +#define CM_Set_HW_Prof_Flags_Ex CM_Set_HW_Prof_Flags_ExW +#else +#define CM_Set_HW_Prof_Flags CM_Set_HW_Prof_FlagsA +#define CM_Set_HW_Prof_Flags_Ex CM_Set_HW_Prof_Flags_ExA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Setup_DevNode( + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags + ); + +#define CM_Setup_DevInst CM_Setup_DevNode + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Setup_DevNode_Ex( + _In_ DEVINST dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Setup_DevInst_Ex CM_Setup_DevNode_Ex + +CMAPI +CONFIGRET +WINAPI +CM_Test_Range_Available( + _In_ DWORDLONG ullStartValue, + _In_ DWORDLONG ullEndValue, + _In_ RANGE_LIST rlh, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Uninstall_DevNode( + _In_ DEVNODE dnDevInst, + _In_ ULONG ulFlags + ); + +#define CM_Uninstall_DevInst CM_Uninstall_DevNode + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Uninstall_DevNode_Ex( + _In_ DEVNODE dnDevInst, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#define CM_Uninstall_DevInst_Ex CM_Uninstall_DevNode_Ex + +CMAPI +CONFIGRET +WINAPI +CM_Run_Detection( + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Run_Detection_Ex( + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#if (WINVER >= _WIN32_WINNT_LONGHORN) +CONFIGRET +CM_Apply_PowerScheme( + VOID + ); + +CONFIGRET +CM_Write_UserPowerKey( + _In_opt_ CONST GUID *SchemeGuid, + _In_opt_ CONST GUID *SubGroupOfPowerSettingsGuid, + _In_opt_ CONST GUID *PowerSettingGuid, + _In_ ULONG AccessFlags, + _In_ ULONG Type, + _In_reads_bytes_(BufferSize) UCHAR *Buffer, + _In_ DWORD BufferSize, + _Out_ PDWORD Error + ); + +CONFIGRET +CM_Set_ActiveScheme( + _In_ CONST GUID *SchemeGuid, + _Out_ PDWORD Error + ); + +CONFIGRET +CM_Restore_DefaultPowerScheme( + _In_ CONST GUID *SchemeGuid, + _Out_ PDWORD Error + ); + +CONFIGRET +CM_RestoreAll_DefaultPowerSchemes( + _Out_ PDWORD Error + ); + +CONFIGRET +CM_Duplicate_PowerScheme ( + _In_ CONST GUID *SourceSchemeGuid, + _Inout_ GUID **DestinationSchemeGuid, + _Out_ PDWORD Error + ); + +CONFIGRET +CM_Delete_PowerScheme ( + _In_ CONST GUID *SchemeGuid, + _Out_ PDWORD Error + ); + +CONFIGRET +CM_Import_PowerScheme ( + _In_ LPCWSTR ImportFileNamePath, + _Inout_ GUID **DestinationSchemeGuid, + _Out_ PDWORD Error + ); + +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + +CMAPI +CONFIGRET +WINAPI +CM_Set_HW_Prof( + _In_ ULONG ulHardwareProfile, + _In_ ULONG ulFlags + ); + +CMAPI +CONFIGRET +WINAPI +CM_Set_HW_Prof_Ex( + _In_ ULONG ulHardwareProfile, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Query_Resource_Conflict_List( + _Out_ PCONFLICT_LIST pclConflictList, + _In_ DEVINST dnDevInst, + _In_ RESOURCEID ResourceID, + _In_reads_bytes_(ResourceLen) PCVOID ResourceData, + _In_ ULONG ResourceLen, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Free_Resource_Conflict_Handle( + _In_ CONFLICT_LIST clConflictList + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Resource_Conflict_Count( + _In_ CONFLICT_LIST clConflictList, + _Out_ PULONG pulCount + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Resource_Conflict_DetailsA( + _In_ CONFLICT_LIST clConflictList, + _In_ ULONG ulIndex, + _Inout_ PCONFLICT_DETAILS_A pConflictDetails + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Resource_Conflict_DetailsW( + _In_ CONFLICT_LIST clConflictList, + _In_ ULONG ulIndex, + _Inout_ PCONFLICT_DETAILS_W pConflictDetails + ); + +#ifdef UNICODE +#define CM_Get_Resource_Conflict_Details CM_Get_Resource_Conflict_DetailsW +#else +#define CM_Get_Resource_Conflict_Details CM_Get_Resource_Conflict_DetailsA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#if (WINVER >= _WIN32_WINNT_LONGHORN) + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_PropertyW( + _In_ LPCGUID ClassGUID, + _In_ CONST DEVPROPKEY *PropertyKey, + _Out_ DEVPROPTYPE *PropertyType, + _Out_writes_bytes_opt_(*PropertyBufferSize) PBYTE PropertyBuffer, + _Inout_ PULONG PropertyBufferSize, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Get_Class_Property CM_Get_Class_PropertyW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Property_ExW( + _In_ LPCGUID ClassGUID, + _In_ CONST DEVPROPKEY *PropertyKey, + _Out_ DEVPROPTYPE *PropertyType, + _Out_writes_bytes_opt_(*PropertyBufferSize) PBYTE PropertyBuffer, + _Inout_ PULONG PropertyBufferSize, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Class_Property_Ex CM_Get_Class_Property_ExW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Property_Keys( + _In_ LPCGUID ClassGUID, + _Out_writes_opt_(*PropertyKeyCount) DEVPROPKEY *PropertyKeyArray, + _Inout_ PULONG PropertyKeyCount, + _In_ ULONG ulFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Property_Keys_Ex( + _In_ LPCGUID ClassGUID, + _Out_writes_opt_(*PropertyKeyCount) DEVPROPKEY *PropertyKeyArray, + _Inout_ PULONG PropertyKeyCount, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Set_Class_PropertyW( + _In_ LPCGUID ClassGUID, + _In_ CONST DEVPROPKEY *PropertyKey, + _In_ DEVPROPTYPE PropertyType, + _In_reads_bytes_opt_(PropertyBufferSize) CONST PBYTE PropertyBuffer, + _In_ ULONG PropertyBufferSize, + _In_ ULONG ulFlags + ); + +#ifdef UNICODE +#define CM_Set_Class_Property CM_Set_Class_PropertyW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +CMAPI +CONFIGRET +WINAPI +CM_Set_Class_Property_ExW( + _In_ LPCGUID ClassGUID, + _In_ CONST DEVPROPKEY *PropertyKey, + _In_ DEVPROPTYPE PropertyType, + _In_reads_bytes_opt_(PropertyBufferSize) CONST PBYTE PropertyBuffer, + _In_ ULONG PropertyBufferSize, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Set_Class_Property_Ex CM_Set_Class_Property_ExW +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // (WINVER >= _WIN32_WINNT_LONGHORN) + + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Registry_PropertyA( + _In_ LPGUID ClassGuid, + _In_ ULONG ulProperty, + _Out_opt_ PULONG pulRegDataType, + _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Get_Class_Registry_PropertyW( + _In_ LPGUID ClassGuid, + _In_ ULONG ulProperty, + _Out_opt_ PULONG pulRegDataType, + _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, + _Inout_ PULONG pulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Set_Class_Registry_PropertyA( + _In_ LPGUID ClassGuid, + _In_ ULONG ulProperty, + _In_reads_bytes_opt_(ulLength) PCVOID Buffer, + _In_ ULONG ulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +CMAPI +CONFIGRET +WINAPI +CM_Set_Class_Registry_PropertyW( + _In_ LPGUID ClassGuid, + _In_ ULONG ulProperty, + _In_reads_bytes_opt_(ulLength) PCVOID Buffer, + _In_ ULONG ulLength, + _In_ ULONG ulFlags, + _In_opt_ HMACHINE hMachine + ); + +#ifdef UNICODE +#define CM_Get_Class_Registry_Property CM_Get_Class_Registry_PropertyW +#define CM_Set_Class_Registry_Property CM_Set_Class_Registry_PropertyW +#else +#define CM_Get_Class_Registry_Property CM_Get_Class_Registry_PropertyA +#define CM_Set_Class_Registry_Property CM_Set_Class_Registry_PropertyA +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if (WINVER >= _WIN32_WINNT_WIN2K) +#define CM_WaitNoPendingInstallEvents CMP_WaitNoPendingInstallEvents + +DWORD +WINAPI +CM_WaitNoPendingInstallEvents( + _In_ DWORD dwTimeout + ); +#endif // (WINVER >= _WIN32_WINNT_WIN2K) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family, OneCore Family, or App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) + +#if (WINVER >= _WIN32_WINNT_WIN8) + +CMAPI +CONFIGRET +WINAPI +CM_Register_Notification( + _In_ PCM_NOTIFY_FILTER pFilter, + _In_opt_ PVOID pContext, + _In_ PCM_NOTIFY_CALLBACK pCallback, + _Out_ PHCMNOTIFICATION pNotifyContext + ); + +CMAPI +CONFIGRET +WINAPI +CM_Unregister_Notification( + _In_ HCMNOTIFICATION NotifyContext + ); + +#endif // (WINVER >= _WIN32_WINNT_WIN8) + +#if (WINVER >= _WIN32_WINNT_WIN7) + +// +// CONFIGRET to Win32 error mapping routine +// + +CMAPI +DWORD +WINAPI +CM_MapCrToWin32Err( + _In_ CONFIGRET CmReturnCode, + _In_ DWORD DefaultErr + ); + +#endif // (WINVER >= _WIN32_WINNT_WIN7) + +// +// Configuration Manager CONFIGRET return status codes +// + +#define CR_SUCCESS (0x00000000) +#define CR_DEFAULT (0x00000001) +#define CR_OUT_OF_MEMORY (0x00000002) +#define CR_INVALID_POINTER (0x00000003) +#define CR_INVALID_FLAG (0x00000004) +#define CR_INVALID_DEVNODE (0x00000005) +#define CR_INVALID_DEVINST CR_INVALID_DEVNODE +#define CR_INVALID_RES_DES (0x00000006) +#define CR_INVALID_LOG_CONF (0x00000007) +#define CR_INVALID_ARBITRATOR (0x00000008) +#define CR_INVALID_NODELIST (0x00000009) +#define CR_DEVNODE_HAS_REQS (0x0000000A) +#define CR_DEVINST_HAS_REQS CR_DEVNODE_HAS_REQS +#define CR_INVALID_RESOURCEID (0x0000000B) +#define CR_DLVXD_NOT_FOUND (0x0000000C) // WIN 95 ONLY +#define CR_NO_SUCH_DEVNODE (0x0000000D) +#define CR_NO_SUCH_DEVINST CR_NO_SUCH_DEVNODE +#define CR_NO_MORE_LOG_CONF (0x0000000E) +#define CR_NO_MORE_RES_DES (0x0000000F) +#define CR_ALREADY_SUCH_DEVNODE (0x00000010) +#define CR_ALREADY_SUCH_DEVINST CR_ALREADY_SUCH_DEVNODE +#define CR_INVALID_RANGE_LIST (0x00000011) +#define CR_INVALID_RANGE (0x00000012) +#define CR_FAILURE (0x00000013) +#define CR_NO_SUCH_LOGICAL_DEV (0x00000014) +#define CR_CREATE_BLOCKED (0x00000015) +#define CR_NOT_SYSTEM_VM (0x00000016) // WIN 95 ONLY +#define CR_REMOVE_VETOED (0x00000017) +#define CR_APM_VETOED (0x00000018) +#define CR_INVALID_LOAD_TYPE (0x00000019) +#define CR_BUFFER_SMALL (0x0000001A) +#define CR_NO_ARBITRATOR (0x0000001B) +#define CR_NO_REGISTRY_HANDLE (0x0000001C) +#define CR_REGISTRY_ERROR (0x0000001D) +#define CR_INVALID_DEVICE_ID (0x0000001E) +#define CR_INVALID_DATA (0x0000001F) +#define CR_INVALID_API (0x00000020) +#define CR_DEVLOADER_NOT_READY (0x00000021) +#define CR_NEED_RESTART (0x00000022) +#define CR_NO_MORE_HW_PROFILES (0x00000023) +#define CR_DEVICE_NOT_THERE (0x00000024) +#define CR_NO_SUCH_VALUE (0x00000025) +#define CR_WRONG_TYPE (0x00000026) +#define CR_INVALID_PRIORITY (0x00000027) +#define CR_NOT_DISABLEABLE (0x00000028) +#define CR_FREE_RESOURCES (0x00000029) +#define CR_QUERY_VETOED (0x0000002A) +#define CR_CANT_SHARE_IRQ (0x0000002B) +#define CR_NO_DEPENDENT (0x0000002C) +#define CR_SAME_RESOURCES (0x0000002D) +#define CR_NO_SUCH_REGISTRY_KEY (0x0000002E) +#define CR_INVALID_MACHINENAME (0x0000002F) // NT ONLY +#define CR_REMOTE_COMM_FAILURE (0x00000030) // NT ONLY +#define CR_MACHINE_UNAVAILABLE (0x00000031) // NT ONLY +#define CR_NO_CM_SERVICES (0x00000032) // NT ONLY +#define CR_ACCESS_DENIED (0x00000033) // NT ONLY +#define CR_CALL_NOT_IMPLEMENTED (0x00000034) +#define CR_INVALID_PROPERTY (0x00000035) +#define CR_DEVICE_INTERFACE_ACTIVE (0x00000036) +#define CR_NO_SUCH_DEVICE_INTERFACE (0x00000037) +#define CR_INVALID_REFERENCE_STRING (0x00000038) +#define CR_INVALID_CONFLICT_LIST (0x00000039) +#define CR_INVALID_INDEX (0x0000003A) +#define CR_INVALID_STRUCTURE_SIZE (0x0000003B) +#define NUM_CR_RESULTS (0x0000003C) + + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // _CFGMGR32_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cguid.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cguid.h new file mode 100644 index 0000000000000000000000000000000000000000..1a3fefc15ba328ac0d690a635c7445fbdd44e970 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cguid.h @@ -0,0 +1,208 @@ +#include + +/*+------------------------------------------------------------------------- + + Microsoft Windows + Copyright (c) Microsoft Corporation. All rights reserved. + + File: cguid.h + +--------------------------------------------------------------------------*/ + +#ifndef __CGUID_H__ +#define __CGUID_H__ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#if (_MSC_VER >= 800) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif +#pragma warning(disable:4001) /* non standard extension : single line comment */ +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) + +extern const IID GUID_NULL; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if(NTDDI_VERSION >= NTDDI_WINXP) +extern const IID CATID_MARSHALER; +#endif + +extern const IID IID_IRpcChannel; +extern const IID IID_IRpcStub; +extern const IID IID_IStubManager; +extern const IID IID_IRpcProxy; +extern const IID IID_IProxyManager; +extern const IID IID_IPSFactory; +extern const IID IID_IInternalMoniker; +extern const IID IID_IDfReserved1; +extern const IID IID_IDfReserved2; +extern const IID IID_IDfReserved3; +extern const CLSID CLSID_StdMarshal; +extern const CLSID CLSID_AggStdMarshal; +extern const CLSID CLSID_StdAsyncActManager; +extern const IID IID_IStub; +extern const IID IID_IProxy; +extern const IID IID_IEnumGeneric; +extern const IID IID_IEnumHolder; +extern const IID IID_IEnumCallback; +extern const IID IID_IOleManager; +extern const IID IID_IOlePresObj; +extern const IID IID_IDebug; +extern const IID IID_IDebugStream; +extern const CLSID CLSID_PSGenObject; +extern const CLSID CLSID_PSClientSite; +extern const CLSID CLSID_PSClassObject; +extern const CLSID CLSID_PSInPlaceActive; +extern const CLSID CLSID_PSInPlaceFrame; +extern const CLSID CLSID_PSDragDrop; +extern const CLSID CLSID_PSBindCtx; +extern const CLSID CLSID_PSEnumerators; +extern const CLSID CLSID_StaticMetafile; +extern const CLSID CLSID_StaticDib; +extern const CLSID CID_CDfsVolume; +extern const CLSID CLSID_DCOMAccessControl; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +extern const CLSID CLSID_GlobalOptions; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +extern const CLSID CLSID_StdGlobalInterfaceTable; +extern const CLSID CLSID_MachineGlobalObjectTable; +extern const CLSID CLSID_ActivationCapabilities; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +extern const CLSID CLSID_ComBinding; +extern const CLSID CLSID_StdEvent; +extern const CLSID CLSID_ManualResetEvent; +extern const CLSID CLSID_SynchronizeContainer; + +#if(NTDDI_VERSION >= NTDDI_WINXP) +extern const CLSID CLSID_AddrControl; +#endif + +#if(NTDDI_VERSION >= NTDDI_VISTA) +extern const CLSID CLSID_ContextSwitcher; +#endif + +//-------------------------------------------- +// +// CD Forms CLSIDs +// +//-------------------------------------------- + +// +// Form Kernel objects +// +extern const CLSID CLSID_CCDFormKrnl; +extern const CLSID CLSID_CCDPropertyPage; +extern const CLSID CLSID_CCDFormDialog; + +// +// Control objects +// +extern const CLSID CLSID_CCDCommandButton; +extern const CLSID CLSID_CCDComboBox; +extern const CLSID CLSID_CCDTextBox; +extern const CLSID CLSID_CCDCheckBox; +extern const CLSID CLSID_CCDLabel; +extern const CLSID CLSID_CCDOptionButton; +extern const CLSID CLSID_CCDListBox; +extern const CLSID CLSID_CCDScrollBar; +extern const CLSID CLSID_CCDGroupBox; + +// +// Property Pages +// +extern const CLSID CLSID_CCDGeneralPropertyPage; +extern const CLSID CLSID_CCDGenericPropertyPage; +extern const CLSID CLSID_CCDFontPropertyPage; +extern const CLSID CLSID_CCDColorPropertyPage; +extern const CLSID CLSID_CCDLabelPropertyPage; +extern const CLSID CLSID_CCDCheckBoxPropertyPage; +extern const CLSID CLSID_CCDTextBoxPropertyPage; +extern const CLSID CLSID_CCDOptionButtonPropertyPage; +extern const CLSID CLSID_CCDListBoxPropertyPage; +extern const CLSID CLSID_CCDCommandButtonPropertyPage; +extern const CLSID CLSID_CCDComboBoxPropertyPage; +extern const CLSID CLSID_CCDScrollBarPropertyPage; +extern const CLSID CLSID_CCDGroupBoxPropertyPage; +extern const CLSID CLSID_CCDXObjectPropertyPage; + +extern const CLSID CLSID_CStdPropertyFrame; + +extern const CLSID CLSID_CFormPropertyPage; +extern const CLSID CLSID_CGridPropertyPage; + +extern const CLSID CLSID_CWSJArticlePage; +extern const CLSID CLSID_CSystemPage; +extern const CLSID CLSID_IdentityUnmarshal; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +extern const CLSID CLSID_InProcFreeMarshaler; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +extern const CLSID CLSID_Picture_Metafile; +extern const CLSID CLSID_Picture_EnhMetafile; +extern const CLSID CLSID_Picture_Dib; + +// +// Enumerations +// +extern const GUID GUID_TRISTATE; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#if (_MSC_VER >= 800) +#if (_MSC_VER >= 1200) +#pragma warning(pop) +#else +#pragma warning(default:4001) +#endif +#endif + +#endif /* __CGUID_H__ */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/chakrart.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/chakrart.h new file mode 100644 index 0000000000000000000000000000000000000000..8ac7e3aa982a015dec4a45651dab5143003e3888 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/chakrart.h @@ -0,0 +1,2845 @@ +//------------------------------------------------------------------------------------------------------- +// Copyright (C) Microsoft. All rights reserved. +//------------------------------------------------------------------------------------------------------- +/// \mainpage Chakra Hosting API Reference +/// +/// Chakra is Microsoft's JavaScript engine. It is an integral part of Internet Explorer but can +/// also be hosted independently by other applications. This reference describes the APIs available +/// to applications to host Chakra. + +/// \file +/// \brief The base Chakra hosting API. +/// +/// This file contains a flat C API layer. This is the API exported by chakra.dll. + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _JSRT_ +#error "You should include instead of or ." +#endif + +#ifdef _JSRT9_H_ +#error "It is invalid to include both jscript9-mode and edge-mode JsRT headers. To include edge, use #define USE_EDGEMODE_JSRT and then include jsrt.h, and link against chakrart.lib. To use jscript9 mode, include jsrt.h and link against jsrt.lib." +#endif + +#ifndef _CHAKRART_H_ +#define _CHAKRART_H_ + +#if NTDDI_VERSION >= NTDDI_WIN7 + +#include +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + /// + /// An error code returned from a Chakra hosting API. + /// + typedef _Return_type_success_(return == 0) enum _JsErrorCode : unsigned int + { + /// + /// Success error code. + /// + JsNoError = 0, + + /// + /// Category of errors that relates to incorrect usage of the API itself. + /// + JsErrorCategoryUsage = 0x10000, + /// + /// An argument to a hosting API was invalid. + /// + JsErrorInvalidArgument, + /// + /// An argument to a hosting API was null in a context where null is not allowed. + /// + JsErrorNullArgument, + /// + /// The hosting API requires that a context be current, but there is no current context. + /// + JsErrorNoCurrentContext, + /// + /// The engine is in an exception state and no APIs can be called until the exception is + /// cleared. + /// + JsErrorInExceptionState, + /// + /// A hosting API is not yet implemented. + /// + JsErrorNotImplemented, + /// + /// A hosting API was called on the wrong thread. + /// + JsErrorWrongThread, + /// + /// A runtime that is still in use cannot be disposed. + /// + JsErrorRuntimeInUse, + /// + /// A bad serialized script was used, or the serialized script was serialized by a + /// different version of the Chakra engine. + /// + JsErrorBadSerializedScript, + /// + /// The runtime is in a disabled state. + /// + JsErrorInDisabledState, + /// + /// Runtime does not support reliable script interruption. + /// + JsErrorCannotDisableExecution, + /// + /// A heap enumeration is currently underway in the script context. + /// + JsErrorHeapEnumInProgress, + /// + /// A hosting API that operates on object values was called with a non-object value. + /// + JsErrorArgumentNotObject, + /// + /// A script context is in the middle of a profile callback. + /// + JsErrorInProfileCallback, + /// + /// A thread service callback is currently underway. + /// + JsErrorInThreadServiceCallback, + /// + /// Scripts cannot be serialized in debug contexts. + /// + JsErrorCannotSerializeDebugScript, + /// + /// The context cannot be put into a debug state because it is already in a debug state. + /// + JsErrorAlreadyDebuggingContext, + /// + /// The context cannot start profiling because it is already profiling. + /// + JsErrorAlreadyProfilingContext, + /// + /// Idle notification given when the host did not enable idle processing. + /// + JsErrorIdleNotEnabled, + /// + /// The context did not accept the enqueue callback. + /// + JsCannotSetProjectionEnqueueCallback, + /// + /// Failed to start projection. + /// + JsErrorCannotStartProjection, + /// + /// The operation is not supported in an object before collect callback. + /// + JsErrorInObjectBeforeCollectCallback, + /// + /// Object cannot be unwrapped to IInspectable pointer. + /// + JsErrorObjectNotInspectable, + /// + /// A hosting API that operates on symbol property ids but was called with a non-symbol property id. + /// The error code is returned by JsGetSymbolFromPropertyId if the function is called with non-symbol property id. + /// + JsErrorPropertyNotSymbol, + /// + /// A hosting API that operates on string property ids but was called with a non-string property id. + /// The error code is returned by existing JsGetPropertyNamefromId if the function is called with non-string property id. + /// + JsErrorPropertyNotString, + + /// + /// Category of errors that relates to errors occurring within the engine itself. + /// + JsErrorCategoryEngine = 0x20000, + /// + /// The Chakra engine has run out of memory. + /// + JsErrorOutOfMemory, + + /// + /// Category of errors that relates to errors in a script. + /// + JsErrorCategoryScript = 0x30000, + /// + /// A JavaScript exception occurred while running a script. + /// + JsErrorScriptException, + /// + /// JavaScript failed to compile. + /// + JsErrorScriptCompile, + /// + /// A script was terminated due to a request to suspend a runtime. + /// + JsErrorScriptTerminated, + /// + /// A script was terminated because it tried to use eval or function and eval + /// was disabled. + /// + JsErrorScriptEvalDisabled, + + /// + /// Category of errors that are fatal and signify failure of the engine. + /// + JsErrorCategoryFatal = 0x40000, + /// + /// A fatal error in the engine has occurred. + /// + JsErrorFatal, + /// + /// A hosting API was called with object created on different javascript runtime. + /// + JsErrorWrongRuntime, + } JsErrorCode; + + /// + /// A handle to a Chakra runtime. + /// + /// + /// + /// Each Chakra runtime has its own independent execution engine, JIT compiler, and garbage + /// collected heap. As such, each runtime is completely isolated from other runtimes. + /// + /// + /// Runtimes can be used on any thread, but only one thread can call into a runtime at any + /// time. + /// + /// + /// NOTE: A JsRuntimeHandle, unlike other object references in the Chakra hosting API, + /// is not garbage collected since it contains the garbage collected heap itself. A runtime + /// will continue to exist until JsDisposeRuntime is called. + /// + /// + typedef void *JsRuntimeHandle; + + /// + /// An invalid runtime handle. + /// + const JsRuntimeHandle JS_INVALID_RUNTIME_HANDLE = NULL; + + /// + /// A reference to an object owned by the Chakra garbage collector. + /// + /// + /// A Chakra runtime will automatically track JsRef references as long as they are + /// stored in local variables or in parameters (i.e. on the stack). Storing a JsRef + /// somewhere other than on the stack requires calling JsAddRef and JsRelease to + /// manage the lifetime of the object, otherwise the garbage collector may free the object + /// while it is still in use. + /// + typedef void *JsRef; + + /// + /// An invalid reference. + /// + const JsRef JS_INVALID_REFERENCE = NULL; + + /// + /// A reference to a script context. + /// + /// + /// + /// Each script context contains its own global object, distinct from the global object in + /// other script contexts. + /// + /// + /// Many Chakra hosting APIs require an "active" script context, which can be set using + /// JsSetCurrentContext. Chakra hosting APIs that require a current context to be set + /// will note that explicitly in their documentation. + /// + /// + typedef JsRef JsContextRef; + + /// + /// A reference to a JavaScript value. + /// + /// + /// A JavaScript value is one of the following types of values: undefined, null, Boolean, + /// string, number, or object. + /// + typedef JsRef JsValueRef; + + /// + /// A cookie that identifies a script for debugging purposes. + /// + typedef DWORD_PTR JsSourceContext; + + /// + /// An empty source context. + /// + const JsSourceContext JS_SOURCE_CONTEXT_NONE = (JsSourceContext)-1; + + /// + /// A property identifier. + /// + /// + /// Property identifiers are used to refer to properties of JavaScript objects instead of using + /// strings. + /// + typedef JsRef JsPropertyIdRef; + + /// + /// Attributes of a runtime. + /// + typedef enum _JsRuntimeAttributes + { + /// + /// No special attributes. + /// + JsRuntimeAttributeNone = 0x00000000, + /// + /// The runtime will not do any work (such as garbage collection) on background threads. + /// + JsRuntimeAttributeDisableBackgroundWork = 0x00000001, + /// + /// The runtime should support reliable script interruption. This increases the number of + /// places where the runtime will check for a script interrupt request at the cost of a + /// small amount of runtime performance. + /// + JsRuntimeAttributeAllowScriptInterrupt = 0x00000002, + /// + /// Host will call JsIdle, so enable idle processing. Otherwise, the runtime will + /// manage memory slightly more aggressively. + /// + JsRuntimeAttributeEnableIdleProcessing = 0x00000004, + /// + /// Runtime will not generate native code. + /// + JsRuntimeAttributeDisableNativeCodeGeneration = 0x00000008, + /// + /// Using eval or function constructor will throw an exception. + /// + JsRuntimeAttributeDisableEval = 0x00000010, + /// + /// Runtime will enable all experimental features. + /// + JsRuntimeAttributeEnableExperimentalFeatures = 0x00000020, + /// + /// Calling JsSetException will also dispatch the exception to the script debugger + /// (if any) giving the debugger a chance to break on the exception. + /// + JsRuntimeAttributeDispatchSetExceptionsToDebugger = 0x00000040, + /// + /// Disable Failfast fatal error on OOM + /// + JsRuntimeAttributeDisableFatalOnOOM = 0x00000080, + /// + /// Runtime will not allocate executable code pages + /// This also implies that Native Code generation will be turned off + /// Note that this will break JavaScript stack decoding in tools + // like WPA since they rely on allocation of unique thunks to + // interpret each function and allocation of those thunks will be + // disabled as well + /// + JsRuntimeAttributeDisableExecutablePageAllocation = 0x00000100 + } JsRuntimeAttributes; + + /// + /// The type of a typed JavaScript array. + /// + typedef enum _JsTypedArrayType + { + /// + /// An int8 array. + /// + JsArrayTypeInt8, + /// + /// An uint8 array. + /// + JsArrayTypeUint8, + /// + /// An uint8 clamped array. + /// + JsArrayTypeUint8Clamped, + /// + /// An int16 array. + /// + JsArrayTypeInt16, + /// + /// An uint16 array. + /// + JsArrayTypeUint16, + /// + /// An int32 array. + /// + JsArrayTypeInt32, + /// + /// An uint32 array. + /// + JsArrayTypeUint32, + /// + /// A float32 array. + /// + JsArrayTypeFloat32, + /// + /// A float64 array. + /// + JsArrayTypeFloat64 + } JsTypedArrayType; + + /// + /// Allocation callback event type. + /// + typedef enum _JsMemoryEventType + { + /// + /// Indicates a request for memory allocation. + /// + JsMemoryAllocate = 0, + /// + /// Indicates a memory freeing event. + /// + JsMemoryFree = 1, + /// + /// Indicates a failed allocation event. + /// + JsMemoryFailure = 2 + } JsMemoryEventType; + + /// + /// User implemented callback routine for memory allocation events + /// + /// + /// Use JsSetRuntimeMemoryAllocationCallback to register this callback. + /// + /// + /// The state passed to JsSetRuntimeMemoryAllocationCallback. + /// + /// The type of type allocation event. + /// The size of the allocation. + /// + /// For the JsMemoryAllocate event, returning true allows the runtime to continue + /// with the allocation. Returning false indicates the allocation request is rejected. The + /// return value is ignored for other allocation events. + /// + typedef bool (CALLBACK * JsMemoryAllocationCallback)(_In_opt_ void *callbackState, _In_ JsMemoryEventType allocationEvent, _In_ size_t allocationSize); + + /// + /// A callback called before collection. + /// + /// + /// Use JsSetBeforeCollectCallback to register this callback. + /// + /// The state passed to JsSetBeforeCollectCallback. + typedef void (CALLBACK *JsBeforeCollectCallback)(_In_opt_ void *callbackState); + + /// + /// A callback called before collecting an object. + /// + /// + /// Use JsSetObjectBeforeCollectCallback to register this callback. + /// + /// The object to be collected. + /// The state passed to JsSetObjectBeforeCollectCallback. + typedef void (CALLBACK *JsObjectBeforeCollectCallback)(_In_ JsRef ref, _In_opt_ void *callbackState); + + /// + /// A background work item callback. + /// + /// + /// This is passed to the host's thread service (if provided) to allow the host to + /// invoke the work item callback on the background thread of its choice. + /// + /// Data argument passed to the thread service. + typedef void (CALLBACK *JsBackgroundWorkItemCallback)(_In_opt_ void *callbackState); + + /// + /// A thread service callback. + /// + /// + /// The host can specify a background thread service when calling JsCreateRuntime. If + /// specified, then background work items will be passed to the host using this callback. The + /// host is expected to either begin executing the background work item immediately and return + /// true or return false and the runtime will handle the work item in-thread. + /// + /// The callback for the background work item. + /// The data argument to be passed to the callback. + typedef bool (CALLBACK *JsThreadServiceCallback)(_In_ JsBackgroundWorkItemCallback callback, _In_opt_ void *callbackState); + + /// + /// Version of the runtime. + /// + typedef enum _JsRuntimeVersion + { + /// + /// Create runtime with highest version present on the machine at runtime. + /// + JsRuntimeVersionEdge = -1, + } JsRuntimeVersion; + + /// + /// Create runtime with IE10 version. + /// + __declspec(deprecated("Only JsRuntimeVersionEdge is supported when targeting the edge-mode JavaScript Runtime header. To use jscript9 mode, which supports targeting docmode 10 or 11, omit USE_EDGEMODE_JSRT before including jsrt.h, and link against jsrt.lib. For more information, go to https://go.microsoft.com/fwlink/?LinkId=522493")) const JsRuntimeVersion JsRuntimeVersion10 = (JsRuntimeVersion)0; + /// + /// Create runtime with IE11 version. + /// + __declspec(deprecated("Only JsRuntimeVersionEdge is supported when targeting the edge-mode JavaScript Runtime header. To use jscript9 mode, which supports targeting docmode 10 or 11, omit USE_EDGEMODE_JSRT before including jsrt.h, and link against jsrt.lib. For more information, go to https://go.microsoft.com/fwlink/?LinkId=522493")) const JsRuntimeVersion JsRuntimeVersion11 = (JsRuntimeVersion)1; + + /// + /// Creates a new runtime. + /// + /// The attributes of the runtime to be created. + /// The thread service for the runtime. Can be null. + /// The runtime created. + /// In the edge-mode binary, chakra.dll, this function lacks the runtimeVersion + /// parameter (compare to jsrt9.h). + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateRuntime( + _In_ JsRuntimeAttributes attributes, + _In_opt_ JsThreadServiceCallback threadService, + _Out_ JsRuntimeHandle *runtime); + + /// + /// Performs a full garbage collection. + /// + /// The runtime in which the garbage collection will be performed. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCollectGarbage( + _In_ JsRuntimeHandle runtime); + + /// + /// Disposes a runtime. + /// + /// + /// Once a runtime has been disposed, all resources owned by it are invalid and cannot be used. + /// If the runtime is active (i.e. it is set to be current on a particular thread), it cannot + /// be disposed. + /// + /// The runtime to dispose. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDisposeRuntime( + _In_ JsRuntimeHandle runtime); + + /// + /// Gets the current memory usage for a runtime. + /// + /// + /// Memory usage can be always be retrieved, regardless of whether or not the runtime is active + /// on another thread. + /// + /// The runtime whose memory usage is to be retrieved. + /// The runtime's current memory usage, in bytes. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetRuntimeMemoryUsage( + _In_ JsRuntimeHandle runtime, + _Out_ size_t *memoryUsage); + + /// + /// Gets the current memory limit for a runtime. + /// + /// + /// The memory limit of a runtime can be always be retrieved, regardless of whether or not the + /// runtime is active on another thread. + /// + /// The runtime whose memory limit is to be retrieved. + /// + /// The runtime's current memory limit, in bytes, or -1 if no limit has been set. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetRuntimeMemoryLimit( + _In_ JsRuntimeHandle runtime, + _Out_ size_t *memoryLimit); + + /// + /// Sets the current memory limit for a runtime. + /// + /// + /// + /// A memory limit will cause any operation which exceeds the limit to fail with an "out of + /// memory" error. Setting a runtime's memory limit to -1 means that the runtime has no memory + /// limit. New runtimes default to having no memory limit. If the new memory limit exceeds + /// current usage, the call will succeed and any future allocations in this runtime will fail + /// until the runtime's memory usage drops below the limit. + /// + /// + /// A runtime's memory limit can be always be set, regardless of whether or not the runtime is + /// active on another thread. + /// + /// + /// The runtime whose memory limit is to be set. + /// + /// The new runtime memory limit, in bytes, or -1 for no memory limit. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetRuntimeMemoryLimit( + _In_ JsRuntimeHandle runtime, + _In_ size_t memoryLimit); + + /// + /// Sets a memory allocation callback for specified runtime + /// + /// + /// + /// Registering a memory allocation callback will cause the runtime to call back to the host + /// whenever it acquires memory from, or releases memory to, the OS. The callback routine is + /// called before the runtime memory manager allocates a block of memory. The allocation will + /// be rejected if the callback returns false. The runtime memory manager will also invoke the + /// callback routine after freeing a block of memory, as well as after allocation failures. + /// + /// + /// The callback is invoked on the current runtime execution thread, therefore execution is + /// blocked until the callback completes. + /// + /// + /// The return value of the callback is not stored; previously rejected allocations will not + /// prevent the runtime from invoking the callback again later for new memory allocations. + /// + /// + /// The runtime for which to register the allocation callback. + /// + /// User provided state that will be passed back to the callback. + /// + /// + /// Memory allocation callback to be called for memory allocation events. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetRuntimeMemoryAllocationCallback( + _In_ JsRuntimeHandle runtime, + _In_opt_ void *callbackState, + _In_ JsMemoryAllocationCallback allocationCallback); + + /// + /// Sets a callback function that is called by the runtime before garbage collection. + /// + /// + /// + /// The callback is invoked on the current runtime execution thread, therefore execution is + /// blocked until the callback completes. + /// + /// + /// The callback can be used by hosts to prepare for garbage collection. For example, by + /// releasing unnecessary references on Chakra objects. + /// + /// + /// The runtime for which to register the allocation callback. + /// + /// User provided state that will be passed back to the callback. + /// + /// The callback function being set. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetRuntimeBeforeCollectCallback( + _In_ JsRuntimeHandle runtime, + _In_opt_ void *callbackState, + _In_ JsBeforeCollectCallback beforeCollectCallback); + + /// + /// Adds a reference to a garbage collected object. + /// + /// + /// This only needs to be called on JsRef handles that are not going to be stored + /// somewhere on the stack. Calling JsAddRef ensures that the object the JsRef + /// refers to will not be freed until JsRelease is called. + /// + /// The object to add a reference to. + /// The object's new reference count (can pass in null). + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsAddRef( + _In_ JsRef ref, + _Out_opt_ unsigned int *count); + + /// + /// Releases a reference to a garbage collected object. + /// + /// + /// Removes a reference to a JsRef handle that was created by JsAddRef. + /// + /// The object to add a reference to. + /// The object's new reference count (can pass in null). + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsRelease( + _In_ JsRef ref, + _Out_opt_ unsigned int *count); + + /// + /// Sets a callback function that is called by the runtime before garbage collection of + /// an object. + /// + /// + /// + /// The callback is invoked on the current runtime execution thread, therefore execution is + /// blocked until the callback completes. + /// + /// + /// The object for which to register the callback. + /// + /// User provided state that will be passed back to the callback. + /// + /// The callback function being set. Use null to clear + /// previously registered callback. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetObjectBeforeCollectCallback( + _In_ JsRef ref, + _In_opt_ void *callbackState, + _In_ JsObjectBeforeCollectCallback objectBeforeCollectCallback); + + /// + /// Creates a script context for running scripts. + /// + /// + /// Each script context has its own global object that is isolated from all other script + /// contexts. + /// + /// The runtime the script context is being created in. + /// The created script context. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateContext( + _In_ JsRuntimeHandle runtime, + _Out_ JsContextRef *newContext); + + /// + /// Starts debugging in the current context. + /// + /// + /// + /// The host should make sure that CoInitializeEx is called with COINIT_MULTITHREADED or COINIT_APARTMENTTHREADED at least once before using this API + /// + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsStartDebugging(); + + /// + /// Gets the current script context on the thread. + /// + /// + /// The current script context on the thread, null if there is no current script context. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetCurrentContext( + _Out_ JsContextRef *currentContext); + + /// + /// Sets the current script context on the thread. + /// + /// The script context to make current. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetCurrentContext( + _In_ JsContextRef context); + + /// + /// Gets the script context that the object belongs to. + /// + /// The object to get the context from. + /// The context the object belongs to. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetContextOfObject( + _In_ JsValueRef object, + _Out_ JsContextRef *context); + + /// + /// Gets the internal data set on JsrtContext. + /// + /// The context to get the data from. + /// The pointer to the data where data will be returned. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetContextData( + _In_ JsContextRef context, + _Out_ void **data); + + /// + /// Sets the internal data of JsrtContext. + /// + /// The context to set the data to. + /// The pointer to the data to be set. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetContextData( + _In_ JsContextRef context, + _In_ void *data); + + /// + /// Gets the runtime that the context belongs to. + /// + /// The context to get the runtime from. + /// The runtime the context belongs to. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetRuntime( + _In_ JsContextRef context, + _Out_ JsRuntimeHandle *runtime); + + /// + /// Tells the runtime to do any idle processing it need to do. + /// + /// + /// + /// If idle processing has been enabled for the current runtime, calling JsIdle will + /// inform the current runtime that the host is idle and that the runtime can perform + /// memory cleanup tasks. + /// + /// + /// JsIdle can also return the number of system ticks until there will be more idle work + /// for the runtime to do. Calling JsIdle before this number of ticks has passed will do + /// no work. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// The next system tick when there will be more idle work to do. Can be null. Returns the + /// maximum number of ticks if there no upcoming idle work to do. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsIdle( + _Out_opt_ unsigned int *nextIdleTick); + + /// + /// Parses a script and returns a function representing the script. + /// + /// + /// Requires an active script context. + /// + /// The script to parse. + /// + /// A cookie identifying the script that can be used by debuggable script contexts. + /// + /// The location the script came from. + /// A function representing the script code. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsParseScript( + _In_z_ const wchar_t *script, + _In_ JsSourceContext sourceContext, + _In_z_ const wchar_t *sourceUrl, + _Out_ JsValueRef *result); + + /// + /// Executes a script. + /// + /// + /// Requires an active script context. + /// + /// The script to run. + /// + /// A cookie identifying the script that can be used by debuggable script contexts. + /// + /// The location the script came from. + /// The result of the script, if any. This parameter can be null. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsRunScript( + _In_z_ const wchar_t *script, + _In_ JsSourceContext sourceContext, + _In_z_ const wchar_t *sourceUrl, + _Out_ JsValueRef *result); + + /// + /// Serializes a parsed script to a buffer than can be reused. + /// + /// + /// + /// JsSerializeScript parses a script and then stores the parsed form of the script in a + /// runtime-independent format. The serialized script then can be deserialized in any + /// runtime without requiring the script to be re-parsed. + /// + /// + /// Requires an active script context. + /// + /// + /// The script to serialize. + /// The buffer to put the serialized script into. Can be null. + /// + /// On entry, the size of the buffer, in bytes; on exit, the size of the buffer, in bytes, + /// required to hold the serialized script. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSerializeScript( + _In_z_ const wchar_t *script, + _Out_writes_to_opt_(*bufferSize, *bufferSize) BYTE *buffer, + _Inout_ unsigned long *bufferSize); + + /// + /// Called by the runtime to load the source code of the serialized script. + /// The caller must keep the script buffer valid until the JsSerializedScriptUnloadCallback. + /// + /// The context passed to Js[Parse|Run]SerializedScriptWithCallback + /// The script returned. + /// + /// true if the operation succeeded, false otherwise. + /// + typedef bool (CALLBACK * JsSerializedScriptLoadSourceCallback)(_In_ JsSourceContext sourceContext, _Outptr_result_z_ const wchar_t** scriptBuffer); + + /// + /// Called by the runtime when it is finished with all resources related to the script execution. + /// The caller should free the source if loaded, the byte code, and the context at this time. + /// + /// The context passed to Js[Parse|Run]SerializedScriptWithCallback + typedef void (CALLBACK * JsSerializedScriptUnloadCallback)(_In_ JsSourceContext sourceContext); + + /// + /// Parses a serialized script and returns a function representing the script. + /// Provides the ability to lazy load the script source only if/when it is needed. + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The runtime will hold on to the buffer until all instances of any functions created from + /// the buffer are garbage collected. It will then call scriptUnloadCallback to inform the + /// caller it is safe to release. + /// + /// + /// Callback called when the source code of the script needs to be loaded. + /// Callback called when the serialized script and source code are no longer needed. + /// The serialized script. + /// + /// A cookie identifying the script that can be used by debuggable script contexts. + /// This context will passed into scriptLoadCallback and scriptUnloadCallback. + /// + /// The location the script came from. + /// A function representing the script code. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsParseSerializedScriptWithCallback( + _In_ JsSerializedScriptLoadSourceCallback scriptLoadCallback, + _In_ JsSerializedScriptUnloadCallback scriptUnloadCallback, + _In_ BYTE *buffer, + _In_ JsSourceContext sourceContext, + _In_z_ const wchar_t *sourceUrl, + _Out_ JsValueRef * result); + + /// + /// Runs a serialized script. + /// Provides the ability to lazy load the script source only if/when it is needed. + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The runtime will hold on to the buffer until all instances of any functions created from + /// the buffer are garbage collected. It will then call scriptUnloadCallback to inform the + /// caller it is safe to release. + /// + /// + /// Callback called when the source code of the script needs to be loaded. + /// Callback called when the serialized script and source code are no longer needed. + /// The serialized script. + /// + /// A cookie identifying the script that can be used by debuggable script contexts. + /// This context will passed into scriptLoadCallback and scriptUnloadCallback. + /// + /// The location the script came from. + /// + /// The result of running the script, if any. This parameter can be null. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsRunSerializedScriptWithCallback( + _In_ JsSerializedScriptLoadSourceCallback scriptLoadCallback, + _In_ JsSerializedScriptUnloadCallback scriptUnloadCallback, + _In_ BYTE *buffer, + _In_ JsSourceContext sourceContext, + _In_z_ const wchar_t *sourceUrl, + _Out_opt_ JsValueRef * result); + + /// + /// Parses a serialized script and returns a function representing the script. + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The runtime will hold on to the buffer until all instances of any functions created from + /// the buffer are garbage collected. + /// + /// + /// The script to parse. + /// The serialized script. + /// + /// A cookie identifying the script that can be used by debuggable script contexts. + /// + /// The location the script came from. + /// A function representing the script code. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsParseSerializedScript( + _In_z_ const wchar_t *script, + _In_ BYTE *buffer, + _In_ JsSourceContext sourceContext, + _In_z_ const wchar_t *sourceUrl, + _Out_ JsValueRef *result); + + /// + /// Runs a serialized script. + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The runtime will hold on to the buffer until all instances of any functions created from + /// the buffer are garbage collected. + /// + /// + /// The source code of the serialized script. + /// The serialized script. + /// + /// A cookie identifying the script that can be used by debuggable script contexts. + /// + /// The location the script came from. + /// + /// The result of running the script, if any. This parameter can be null. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsRunSerializedScript( + _In_z_ const wchar_t *script, + _In_ BYTE *buffer, + _In_ JsSourceContext sourceContext, + _In_z_ const wchar_t *sourceUrl, + _Out_ JsValueRef *result); + + /// + /// Gets the property ID associated with the name. + /// + /// + /// + /// Property IDs are specific to a context and cannot be used across contexts. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// The name of the property ID to get or create. The name may consist of only digits. + /// + /// The property ID in this runtime for the given name. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetPropertyIdFromName( + _In_z_ const wchar_t *name, + _Out_ JsPropertyIdRef *propertyId); + + /// + /// Gets the name associated with the property ID. + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The returned buffer is valid as long as the runtime is alive and cannot be used + /// once the runtime has been disposed. + /// + /// + /// The property ID to get the name of. + /// The name associated with the property ID. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetPropertyNameFromId( + _In_ JsPropertyIdRef propertyId, + _Outptr_result_z_ const wchar_t **name); + + /// + /// Gets the symbol associated with the property ID. + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The property ID to get the symbol of. + /// The symbol associated with the property ID. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetSymbolFromPropertyId( + _In_ JsPropertyIdRef propertyId, + _Out_ JsValueRef *symbol); + + /// + /// Type enumeration of a JavaScript property + /// + typedef enum _JsPropertyIdType { + /// + /// Type enumeration of a JavaScript string property + /// + JsPropertyIdTypeString, + /// + /// Type enumeration of a JavaScript symbol property + /// + JsPropertyIdTypeSymbol + } JsPropertyIdType; + + /// + /// Gets the type of property + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The property ID to get the type of. + /// The JsPropertyIdType of the given property ID + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetPropertyIdType( + _In_ JsPropertyIdRef propertyId, + _Out_ JsPropertyIdType* propertyIdType); + + + /// + /// Gets the property ID associated with the symbol. + /// + /// + /// + /// Property IDs are specific to a context and cannot be used across contexts. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// The symbol whose property ID is being retrieved. + /// + /// The property ID for the given symbol. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetPropertyIdFromSymbol( + _In_ JsValueRef symbol, + _Out_ JsPropertyIdRef *propertyId); + + /// + /// Creates a Javascript symbol. + /// + /// + /// Requires an active script context. + /// + /// The string description of the symbol. Can be null. + /// The new symbol. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateSymbol( + _In_ JsValueRef description, + _Out_ JsValueRef *result); + + /// + /// Gets the list of all symbol properties on the object. + /// + /// + /// Requires an active script context. + /// + /// The object from which to get the property symbols. + /// An array of property symbols. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetOwnPropertySymbols( + _In_ JsValueRef object, + _Out_ JsValueRef *propertySymbols); + + /// + /// Gets the value of undefined in the current script context. + /// + /// + /// Requires an active script context. + /// + /// The undefined value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetUndefinedValue( + _Out_ JsValueRef *undefinedValue); + + /// + /// Gets the value of null in the current script context. + /// + /// + /// Requires an active script context. + /// + /// The null value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetNullValue( + _Out_ JsValueRef *nullValue); + + /// + /// Gets the value of true in the current script context. + /// + /// + /// Requires an active script context. + /// + /// The true value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetTrueValue( + _Out_ JsValueRef *trueValue); + + /// + /// Gets the value of false in the current script context. + /// + /// + /// Requires an active script context. + /// + /// The false value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetFalseValue( + _Out_ JsValueRef *falseValue); + + /// + /// Creates a Boolean value from a bool value. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsBoolToBoolean( + _In_ bool value, + _Out_ JsValueRef *booleanValue); + + /// + /// Retrieves the bool value of a Boolean value. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsBooleanToBool( + _In_ JsValueRef value, + _Out_ bool *boolValue); + + /// + /// Converts the value to Boolean using standard JavaScript semantics. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsConvertValueToBoolean( + _In_ JsValueRef value, + _Out_ JsValueRef *booleanValue); + + /// + /// The JavaScript type of a JsValueRef. + /// + typedef enum _JsValueType + { + /// + /// The value is the undefined value. + /// + JsUndefined = 0, + /// + /// The value is the null value. + /// + JsNull = 1, + /// + /// The value is a JavaScript number value. + /// + JsNumber = 2, + /// + /// The value is a JavaScript string value. + /// + JsString = 3, + /// + /// The value is a JavaScript Boolean value. + /// + JsBoolean = 4, + /// + /// The value is a JavaScript object value. + /// + JsObject = 5, + /// + /// The value is a JavaScript function object value. + /// + JsFunction = 6, + /// + /// The value is a JavaScript error object value. + /// + JsError = 7, + /// + /// The value is a JavaScript array object value. + /// + JsArray = 8, + /// + /// The value is a JavaScript symbol value. + /// + JsSymbol = 9, + /// + /// The value is a JavaScript ArrayBuffer object value. + /// + JsArrayBuffer = 10, + /// + /// The value is a JavaScript typed array object value. + /// + JsTypedArray = 11, + /// + /// The value is a JavaScript DataView object value. + /// + JsDataView = 12, + } JsValueType; + + /// + /// Gets the JavaScript type of a JsValueRef. + /// + /// The value whose type is to be returned. + /// The type of the value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetValueType( + _In_ JsValueRef value, + _Out_ JsValueType *type); + + /// + /// Creates a number value from a double value. + /// + /// + /// Requires an active script context. + /// + /// The double to convert to a number value. + /// The new number value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDoubleToNumber( + _In_ double doubleValue, + _Out_ JsValueRef *value); + + /// + /// Creates a number value from an int value. + /// + /// + /// Requires an active script context. + /// + /// The int to convert to a number value. + /// The new number value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsIntToNumber( + _In_ int intValue, + _Out_ JsValueRef *value); + + /// + /// Retrieves the double value of a number value. + /// + /// + /// This function retrieves the value of a number value. It will fail with + /// JsErrorInvalidArgument if the type of the value is not number. + /// + /// The number value to convert to a double value. + /// The double value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsNumberToDouble( + _In_ JsValueRef value, + _Out_ double *doubleValue); + + /// + /// Retrieves the int value of a number value. + /// + /// + /// This function retrieves the value of a number value and converts to an int value. + /// It will fail with JsErrorInvalidArgument if the type of the value is not number. + /// + /// The number value to convert to an int value. + /// The int value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsNumberToInt( + _In_ JsValueRef value, + _Out_ int *intValue); + + /// + /// Converts the value to number using standard JavaScript semantics. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsConvertValueToNumber( + _In_ JsValueRef value, + _Out_ JsValueRef *numberValue); + + /// + /// Gets the length of a string value. + /// + /// The string value to get the length of. + /// The length of the string. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetStringLength( + _In_ JsValueRef stringValue, + _Out_ int *length); + + /// + /// Creates a string value from a string pointer. + /// + /// + /// Requires an active script context. + /// + /// The string pointer to convert to a string value. + /// The length of the string to convert. + /// The new string value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsPointerToString( + _In_reads_(stringLength) const wchar_t *stringValue, + _In_ size_t stringLength, + _Out_ JsValueRef *value); + + /// + /// Retrieves the string pointer of a string value. + /// + /// + /// + /// This function retrieves the string pointer of a string value. It will fail with + /// JsErrorInvalidArgument if the type of the value is not string. The lifetime + /// of the string returned will be the same as the lifetime of the value it came from, however + /// the string pointer is not considered a reference to the value (and so will not keep it + /// from being collected). + /// + /// + /// Requires an active script context. + /// + /// + /// The string value to convert to a string pointer. + /// The string pointer. + /// The length of the string. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsStringToPointer( + _In_ JsValueRef value, + _Outptr_result_buffer_(*stringLength) const wchar_t **stringValue, + _Out_ size_t *stringLength); + + /// + /// Converts the value to string using standard JavaScript semantics. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsConvertValueToString( + _In_ JsValueRef value, + _Out_ JsValueRef *stringValue); + + /// + /// Creates a JavaScript value that is a projection of the passed in VARIANT. + /// + /// + /// + /// The projected value can be used by script to call a COM automation object from script. + /// Hosts are responsible for enforcing COM threading rules. + /// + /// + /// Requires an active script context. + /// + /// + /// A VARIANT to be projected. + /// A JavaScript value that is a projection of the VARIANT. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsVariantToValue( + _In_ VARIANT *variant, + _Out_ JsValueRef *value); + + /// + /// Initializes the passed in VARIANT as a projection of a JavaScript value. + /// + /// + /// + /// The projection VARIANT can be used by COM automation clients to call into the + /// projected JavaScript object. + /// + /// + /// Requires an active script context. + /// + /// + /// A JavaScript value to project as a VARIANT. + /// + /// A pointer to a VARIANT struct that will be initialized as a projection. + /// + STDAPI_(JsErrorCode) + JsValueToVariant( + _In_ JsValueRef object, + _Out_ VARIANT *variant); + + /// + /// Gets the global object in the current script context. + /// + /// + /// Requires an active script context. + /// + /// The global object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetGlobalObject( + _Out_ JsValueRef *globalObject); + + /// + /// Creates a new object. + /// + /// + /// Requires an active script context. + /// + /// The new object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateObject( + _Out_ JsValueRef *object); + + /// + /// A finalizer callback. + /// + /// + /// The external data that was passed in when creating the object being finalized. + /// + typedef void (CALLBACK *JsFinalizeCallback)(_In_opt_ void *data); + + /// + /// Creates a new object that stores some external data. + /// + /// + /// Requires an active script context. + /// + /// External data that the object will represent. May be null. + /// + /// A callback for when the object is finalized. May be null. + /// + /// The new object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateExternalObject( + _In_opt_ void *data, + _In_opt_ JsFinalizeCallback finalizeCallback, + _Out_ JsValueRef *object); + + /// + /// Converts the value to object using standard JavaScript semantics. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsConvertValueToObject( + _In_ JsValueRef value, + _Out_ JsValueRef *object); + + /// + /// Returns the prototype of an object. + /// + /// + /// Requires an active script context. + /// + /// The object whose prototype is to be returned. + /// The object's prototype. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetPrototype( + _In_ JsValueRef object, + _Out_ JsValueRef *prototypeObject); + + /// + /// Sets the prototype of an object. + /// + /// + /// Requires an active script context. + /// + /// The object whose prototype is to be changed. + /// The object's new prototype. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetPrototype( + _In_ JsValueRef object, + _In_ JsValueRef prototypeObject); + + /// + /// Performs JavaScript "instanceof" operator test. + /// + /// + /// Requires an active script context. + /// + /// The object to test. + /// The constructor function to test against. + /// Whether "object instanceof constructor" is true. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsInstanceOf( + _In_ JsValueRef object, + _In_ JsValueRef constructor, + _Out_ bool *result); + + /// + /// Returns a value that indicates whether an object is extensible or not. + /// + /// + /// Requires an active script context. + /// + /// The object to test. + /// Whether the object is extensible or not. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetExtensionAllowed( + _In_ JsValueRef object, + _Out_ bool *value); + + /// + /// Makes an object non-extensible. + /// + /// + /// Requires an active script context. + /// + /// The object to make non-extensible. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsPreventExtension( + _In_ JsValueRef object); + + /// + /// Gets an object's property. + /// + /// + /// Requires an active script context. + /// + /// The object that contains the property. + /// The ID of the property. + /// The value of the property. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetProperty( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _Out_ JsValueRef *value); + + /// + /// Gets a property descriptor for an object's own property. + /// + /// + /// Requires an active script context. + /// + /// The object that has the property. + /// The ID of the property. + /// The property descriptor. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetOwnPropertyDescriptor( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _Out_ JsValueRef *propertyDescriptor); + + /// + /// Gets the list of all properties on the object. + /// + /// + /// Requires an active script context. + /// + /// The object from which to get the property names. + /// An array of property names. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetOwnPropertyNames( + _In_ JsValueRef object, + _Out_ JsValueRef *propertyNames); + + /// + /// Puts an object's property. + /// + /// + /// Requires an active script context. + /// + /// The object that contains the property. + /// The ID of the property. + /// The new value of the property. + /// The property set should follow strict mode rules. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetProperty( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _In_ JsValueRef value, + _In_ bool useStrictRules); + + /// + /// Determines whether an object has a property. + /// + /// + /// Requires an active script context. + /// + /// The object that may contain the property. + /// The ID of the property. + /// Whether the object (or a prototype) has the property. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsHasProperty( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _Out_ bool *hasProperty); + + /// + /// Deletes an object's property. + /// + /// + /// Requires an active script context. + /// + /// The object that contains the property. + /// The ID of the property. + /// The property set should follow strict mode rules. + /// Whether the property was deleted. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDeleteProperty( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _In_ bool useStrictRules, + _Out_ JsValueRef *result); + + /// + /// Defines a new object's own property from a property descriptor. + /// + /// + /// Requires an active script context. + /// + /// The object that has the property. + /// The ID of the property. + /// The property descriptor. + /// Whether the property was defined. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDefineProperty( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _In_ JsValueRef propertyDescriptor, + _Out_ bool *result); + + /// + /// Tests whether an object has a value at the specified index. + /// + /// + /// Requires an active script context. + /// + /// The object to operate on. + /// The index to test. + /// Whether the object has an value at the specified index. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsHasIndexedProperty( + _In_ JsValueRef object, + _In_ JsValueRef index, + _Out_ bool *result); + + /// + /// Retrieve the value at the specified index of an object. + /// + /// + /// Requires an active script context. + /// + /// The object to operate on. + /// The index to retrieve. + /// The retrieved value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetIndexedProperty( + _In_ JsValueRef object, + _In_ JsValueRef index, + _Out_ JsValueRef *result); + + /// + /// Set the value at the specified index of an object. + /// + /// + /// Requires an active script context. + /// + /// The object to operate on. + /// The index to set. + /// The value to set. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetIndexedProperty( + _In_ JsValueRef object, + _In_ JsValueRef index, + _In_ JsValueRef value); + + /// + /// Delete the value at the specified index of an object. + /// + /// + /// Requires an active script context. + /// + /// The object to operate on. + /// The index to delete. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDeleteIndexedProperty( + _In_ JsValueRef object, + _In_ JsValueRef index); + + /// + /// Determines whether an object has its indexed properties in external data. + /// + /// The object. + /// Whether the object has its indexed properties in external data. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsHasIndexedPropertiesExternalData( + _In_ JsValueRef object, + _Out_ bool* value); + + /// + /// Retrieves an object's indexed properties external data information. + /// + /// The object. + /// The external data back store for the object's indexed properties. + /// The array element type in external data. + /// The number of array elements in external data. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetIndexedPropertiesExternalData( + _In_ JsValueRef object, + _Out_ void** data, + _Out_ JsTypedArrayType* arrayType, + _Out_ unsigned int* elementLength); + + /// + /// Sets an object's indexed properties to external data. The external data will be used as back + /// store for the object's indexed properties and accessed like a typed array. + /// + /// + /// Requires an active script context. + /// + /// The object to operate on. + /// The external data to be used as back store for the object's indexed properties. + /// The array element type in external data. + /// The number of array elements in external data. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetIndexedPropertiesToExternalData( + _In_ JsValueRef object, + _In_ void* data, + _In_ JsTypedArrayType arrayType, + _In_ unsigned int elementLength); + + /// + /// Compare two JavaScript values for equality. + /// + /// + /// + /// This function is equivalent to the == operator in Javascript. + /// + /// + /// Requires an active script context. + /// + /// + /// The first object to compare. + /// The second object to compare. + /// Whether the values are equal. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsEquals( + _In_ JsValueRef object1, + _In_ JsValueRef object2, + _Out_ bool *result); + + /// + /// Compare two JavaScript values for strict equality. + /// + /// + /// + /// This function is equivalent to the === operator in Javascript. + /// + /// + /// Requires an active script context. + /// + /// + /// The first object to compare. + /// The second object to compare. + /// Whether the values are strictly equal. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsStrictEquals( + _In_ JsValueRef object1, + _In_ JsValueRef object2, + _Out_ bool *result); + + /// + /// Determines whether an object is an external object. + /// + /// The object. + /// Whether the object is an external object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsHasExternalData( + _In_ JsValueRef object, + _Out_ bool *value); + + /// + /// Retrieves the data from an external object. + /// + /// The external object. + /// + /// The external data stored in the object. Can be null if no external data is stored in the + /// object. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetExternalData( + _In_ JsValueRef object, + _Out_ void **externalData); + + /// + /// Sets the external data on an external object. + /// + /// The external object. + /// + /// The external data to be stored in the object. Can be null if no external data is + /// to be stored in the object. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetExternalData( + _In_ JsValueRef object, + _In_opt_ void *externalData); + + /// + /// Creates a Javascript array object. + /// + /// + /// Requires an active script context. + /// + /// The initial length of the array. + /// The new array object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateArray( + _In_ unsigned int length, + _Out_ JsValueRef *result); + + /// + /// Creates a Javascript ArrayBuffer object. + /// + /// + /// Requires an active script context. + /// + /// + /// The number of bytes in the ArrayBuffer. + /// + /// The new ArrayBuffer object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateArrayBuffer( + _In_ unsigned int byteLength, + _Out_ JsValueRef *result); + + /// + /// Creates a Javascript ArrayBuffer object to access external memory. + /// + /// Requires an active script context. + /// A pointer to the external memory. + /// The number of bytes in the external memory. + /// A callback for when the object is finalized. May be null. + /// User provided state that will be passed back to finalizeCallback. + /// The new ArrayBuffer object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateExternalArrayBuffer( + _Pre_maybenull_ _Pre_writable_byte_size_(byteLength) void *data, + _In_ unsigned int byteLength, + _In_opt_ JsFinalizeCallback finalizeCallback, + _In_opt_ void *callbackState, + _Out_ JsValueRef *result); + + /// + /// Creates a Javascript typed array object. + /// + /// + /// + /// The baseArray can be an ArrayBuffer, another typed array, or a JavaScript + /// Array. The returned typed array will use the baseArray if it is an ArrayBuffer, or + /// otherwise create and use a copy of the underlying source array. + /// + /// + /// Requires an active script context. + /// + /// + /// The type of the array to create. + /// + /// The base array of the new array. Use JS_INVALID_REFERENCE if no base array. + /// + /// + /// The offset in bytes from the start of baseArray (ArrayBuffer) for result typed array to reference. + /// Only applicable when baseArray is an ArrayBuffer object. Must be 0 otherwise. + /// + /// + /// The number of elements in the array. Only applicable when creating a new typed array without + /// baseArray (baseArray is JS_INVALID_REFERENCE) or when baseArray is an ArrayBuffer object. + /// Must be 0 otherwise. + /// + /// The new typed array object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateTypedArray( + _In_ JsTypedArrayType arrayType, + _In_ JsValueRef baseArray, + _In_ unsigned int byteOffset, + _In_ unsigned int elementLength, + _Out_ JsValueRef *result); + + /// + /// Creates a Javascript DataView object. + /// + /// + /// Requires an active script context. + /// + /// + /// An existing ArrayBuffer object to use as the storage for the result DataView object. + /// + /// + /// The offset in bytes from the start of arrayBuffer for result DataView to reference. + /// + /// + /// The number of bytes in the ArrayBuffer for result DataView to reference. + /// + /// The new DataView object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateDataView( + _In_ JsValueRef arrayBuffer, + _In_ unsigned int byteOffset, + _In_ unsigned int byteLength, + _Out_ JsValueRef *result); + + /// + /// Obtains frequently used properties of a typed array. + /// + /// The typed array instance. + /// The type of the array. + /// The ArrayBuffer backstore of the array. + /// The offset in bytes from the start of arrayBuffer referenced by the array. + /// The number of bytes in the array. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetTypedArrayInfo( + _In_ JsValueRef typedArray, + _Out_opt_ JsTypedArrayType *arrayType, + _Out_opt_ JsValueRef *arrayBuffer, + _Out_opt_ unsigned int *byteOffset, + _Out_opt_ unsigned int *byteLength); + + /// + /// Obtains the underlying memory storage used by an ArrayBuffer. + /// + /// The ArrayBuffer instance. + /// + /// The ArrayBuffer's buffer. The lifetime of the buffer returned is the same as the lifetime of the + /// the ArrayBuffer. The buffer pointer does not count as a reference to the ArrayBuffer for the purpose + /// of garbage collection. + /// + /// The number of bytes in the buffer. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetArrayBufferStorage( + _In_ JsValueRef arrayBuffer, + _Outptr_result_bytebuffer_(*bufferLength) BYTE **buffer, + _Out_ unsigned int *bufferLength); + + /// + /// Obtains the underlying memory storage used by a typed array. + /// + /// The typed array instance. + /// + /// The array's buffer. The lifetime of the buffer returned is the same as the lifetime of the + /// the array. The buffer pointer does not count as a reference to the array for the purpose + /// of garbage collection. + /// + /// The number of bytes in the buffer. + /// The type of the array. + /// + /// The size of an element of the array. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetTypedArrayStorage( + _In_ JsValueRef typedArray, + _Outptr_result_bytebuffer_(*bufferLength) BYTE **buffer, + _Out_ unsigned int *bufferLength, + _Out_opt_ JsTypedArrayType *arrayType, + _Out_opt_ int *elementSize); + + /// + /// Obtains the underlying memory storage used by a DataView. + /// + /// The DataView instance. + /// + /// The DataView's buffer. The lifetime of the buffer returned is the same as the lifetime of the + /// the DataView. The buffer pointer does not count as a reference to the DataView for the purpose + /// of garbage collection. + /// + /// The number of bytes in the buffer. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetDataViewStorage( + _In_ JsValueRef dataView, + _Outptr_result_bytebuffer_(*bufferLength) BYTE **buffer, + _Out_ unsigned int *bufferLength); + + /// + /// Invokes a function. + /// + /// + /// Requires an active script context. + /// + /// The function to invoke. + /// The arguments to the call. + /// The number of arguments being passed in to the function. + /// The value returned from the function invocation, if any. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCallFunction( + _In_ JsValueRef function, + _In_reads_(argumentCount) JsValueRef *arguments, + _In_ unsigned short argumentCount, + _Out_opt_ JsValueRef *result); + + /// + /// Invokes a function as a constructor. + /// + /// + /// Requires an active script context. + /// + /// The function to invoke as a constructor. + /// The arguments to the call. + /// The number of arguments being passed in to the function. + /// The value returned from the function invocation. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsConstructObject( + _In_ JsValueRef function, + _In_reads_(argumentCount) JsValueRef *arguments, + _In_ unsigned short argumentCount, + _Out_ JsValueRef *result); + + /// + /// A function callback. + /// + /// + /// A function object that represents the function being invoked. + /// + /// Indicates whether this is a regular call or a 'new' call. + /// The arguments to the call. + /// The number of arguments. + /// + /// The state passed to JsCreateFunction. + /// + /// The result of the call, if any. + typedef _Ret_maybenull_ JsValueRef(CALLBACK * JsNativeFunction)(_In_ JsValueRef callee, _In_ bool isConstructCall, _In_ JsValueRef *arguments, _In_ unsigned short argumentCount, _In_opt_ void *callbackState); + + /// + /// Creates a new JavaScript function. + /// + /// + /// Requires an active script context. + /// + /// The method to call when the function is invoked. + /// + /// User provided state that will be passed back to the callback. + /// + /// The new function object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateFunction( + _In_ JsNativeFunction nativeFunction, + _In_opt_ void *callbackState, + _Out_ JsValueRef *function); + + /// + /// Creates a new JavaScript function with name. + /// + /// + /// Requires an active script context. + /// + /// The name of this function that will be used for diagnostics and stringification purposes. + /// The method to call when the function is invoked. + /// + /// User provided state that will be passed back to the callback. + /// + /// The new function object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateNamedFunction( + _In_ JsValueRef name, + _In_ JsNativeFunction nativeFunction, + _In_opt_ void *callbackState, + _Out_ JsValueRef *function); + + /// + /// Creates a new JavaScript error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Creates a new JavaScript RangeError error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateRangeError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Creates a new JavaScript ReferenceError error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateReferenceError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Creates a new JavaScript SyntaxError error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateSyntaxError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Creates a new JavaScript TypeError error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateTypeError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Creates a new JavaScript URIError error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateURIError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Determines whether the runtime of the current context is in an exception state. + /// + /// + /// + /// If a call into the runtime results in an exception (either as the result of running a + /// script or due to something like a conversion failure), the runtime is placed into an + /// "exception state." All calls into any context created by the runtime (except for the + /// exception APIs) will fail with JsErrorInExceptionState until the exception is + /// cleared. + /// + /// + /// If the runtime of the current context is in the exception state when a callback returns + /// into the engine, the engine will automatically rethrow the exception. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// Whether the runtime of the current context is in the exception state. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsHasException( + _Out_ bool *hasException); + + /// + /// Returns the exception that caused the runtime of the current context to be in the + /// exception state and resets the exception state for that runtime. + /// + /// + /// + /// If the runtime of the current context is not in an exception state, this API will return + /// JsErrorInvalidArgument. If the runtime is disabled, this will return an exception + /// indicating that the script was terminated, but it will not clear the exception (the + /// exception will be cleared if the runtime is re-enabled using + /// JsEnableRuntimeExecution). + /// + /// + /// Requires an active script context. + /// + /// + /// The exception for the runtime of the current context. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetAndClearException( + _Out_ JsValueRef *exception); + + /// + /// Sets the runtime of the current context to an exception state. + /// + /// + /// + /// If the runtime of the current context is already in an exception state, this API will + /// return JsErrorInExceptionState. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// The JavaScript exception to set for the runtime of the current context. + /// + /// + /// JsNoError if the engine was set into an exception state, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetException( + _In_ JsValueRef exception); + + /// + /// Suspends script execution and terminates any running scripts in a runtime. + /// + /// + /// + /// Calls to a suspended runtime will fail until JsEnableRuntimeExecution is called. + /// + /// + /// This API does not have to be called on the thread the runtime is active on. Although the + /// runtime will be set into a suspended state, an executing script may not be suspended + /// immediately; a running script will be terminated with an uncatchable exception as soon as + /// possible. + /// + /// + /// Suspending execution in a runtime that is already suspended is a no-op. + /// + /// + /// The runtime to be suspended. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDisableRuntimeExecution( + _In_ JsRuntimeHandle runtime); + + /// + /// Enables script execution in a runtime. + /// + /// + /// Enabling script execution in a runtime that already has script execution enabled is a + /// no-op. + /// + /// The runtime to be enabled. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsEnableRuntimeExecution( + _In_ JsRuntimeHandle runtime); + + /// + /// Returns a value that indicates whether script execution is disabled in the runtime. + /// + /// Specifies the runtime to check if execution is disabled. + /// If execution is disabled, true, false otherwise. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsIsRuntimeExecutionDisabled( + _In_ JsRuntimeHandle runtime, + _Out_ bool *isDisabled); + + /// + /// A promise continuation callback. + /// + /// + /// The host can specify a promise continuation callback in JsSetPromiseContinuationCallback. If + /// a script creates a task to be run later, then the promise continuation callback will be called with + /// the task and the task should be put in a FIFO queue, to be run when the current script is + /// done executing. + /// + /// The task, represented as a JavaScript function. + /// The data argument to be passed to the callback. + typedef void (CALLBACK *JsPromiseContinuationCallback)(_In_ JsValueRef task, _In_opt_ void *callbackState); + + /// + /// Sets a promise continuation callback function that is called by the context when a task + /// needs to be queued for future execution + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The callback function being set. + /// + /// User provided state that will be passed back to the callback. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetPromiseContinuationCallback( + _In_ JsPromiseContinuationCallback promiseContinuationCallback, + _In_opt_ void *callbackState); + + /// + /// Creates a JavaScript value that is a projection of the passed in IInspectable pointer. + /// + /// + /// + /// The projected value can be used by script to call an IInspectable object. + /// Hosts are responsible for enforcing COM threading rules. + /// + /// + /// Requires an active script context. + /// + /// + /// A IInspectable to be projected. + /// A JavaScript value that is a projection of the IInspectable. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsInspectableToObject( + _In_ IInspectable *inspectable, + _Out_ JsValueRef *value); + + /// + /// Unwraps a JavaScript object to an IInspectable pointer + /// + /// + /// + /// Hosts are responsible for enforcing COM threading rules. + /// + /// + /// Requires an active script context. + /// + /// + /// A JavaScript value that should be projected to IInspectable. + /// A IInspectable value of the object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsObjectToInspectable( + _In_ JsValueRef value, + _Out_ IInspectable **inspectable); + + /// + /// The context passed into application callback, JsProjectionEnqueueCallback, from Jsrt and + /// then passed back to Jsrt in the provided callback, JsProjectionCallback, by the application + /// on the correct thread. + /// + /// + /// Requires calling JsSetProjectionEnqueueCallback to receive callbacks. + /// + typedef void *JsProjectionCallbackContext; + + /// + /// The Jsrt callback which should be called with the context passed to JsProjectionEnqueueCallback on + /// the correct thread. + /// + /// + /// Requires calling JsSetProjectionEnqueueCallback to receive callbacks. + /// + /// The context originally received by a call to JsProjectionEnqueueCallback. + typedef void (CALLBACK *JsProjectionCallback)(_In_ JsProjectionCallbackContext jsContext); + + /// + /// The application callback which is called by Jsrt when a projection API is completed on + /// a different thread than the original. + /// + /// + /// Requires calling JsSetProjectionEnqueueCallback to receive callbacks. + /// + /// The callback to be invoked on the original thread. + /// The Jsrt context that must be passed into jsCallback. + /// The state passed to JsSetProjectionEnqueueCallback. + typedef void (CALLBACK *JsProjectionEnqueueCallback)(_In_ JsProjectionCallback jsCallback, _In_ JsProjectionCallbackContext jsContext, _In_opt_ void *callbackState); + + /// + /// Sets the callback to be used in order to invoke a projection completion back to the + /// callers required thread. + /// + /// + /// Requires an active script context. + /// + /// The caller must be running in an different thread in the MTA or free threaded apartment. + /// When running on STA,COM manages the return to the required thread. + /// + /// + /// + /// The callback that will be invoked any time a projection completion occurs on a background thread. + /// + /// + /// User provided state that will be passed back to the callback. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetProjectionEnqueueCallback( + _In_ JsProjectionEnqueueCallback projectionEnqueueCallback, + _In_opt_ void *callbackState); + + /// + /// Project a UWP namespace. + /// + /// + /// Requires an active script context. + /// WinRT was the platform name before Universal Windows Platform (UWP). + /// + /// The UWP namespace to be projected. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsProjectWinRTNamespace( + _In_z_ const wchar_t *namespaceName); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include + + /// + /// Starts profiling in the current context. + /// + /// + /// Requires an active script context. + /// + /// The profiling callback to use. + /// The profiling events to callback with. + /// A context to pass to the profiling callback. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsStartProfiling( + _In_ IActiveScriptProfilerCallback *callback, + _In_ PROFILER_EVENT_MASK eventMask, + _In_ unsigned long context); + + /// + /// Stops profiling in the current context. + /// + /// + /// + /// Will not return an error if profiling has not started. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// The reason for stopping profiling to pass to the profiler callback. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsStopProfiling( + _In_ HRESULT reason); + + /// + /// Enumerates the heap of the current context. + /// + /// + /// + /// While the heap is being enumerated, the current context cannot be removed, and all calls to + /// modify the state of the context will fail until the heap enumerator is released. + /// + /// + /// Requires an active script context. + /// + /// + /// The heap enumerator. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsEnumerateHeap( + _Out_ IActiveScriptProfilerHeapEnum **enumerator); + + /// + /// Returns a value that indicates whether the heap of the current context is being enumerated. + /// + /// + /// Requires an active script context. + /// + /// Whether the heap is being enumerated. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsIsEnumeratingHeap( + _Out_ bool *isEnumeratingHeap); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma endregion + +#endif // NTDDI_VERSION + +#endif // _CHAKRART_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/chprst.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/chprst.idl new file mode 100644 index 0000000000000000000000000000000000000000..e640270a27ba624a26c01052256319ce2e662e86 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/chprst.idl @@ -0,0 +1,58 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: chprst.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + REMOTED_INTERFACE(0c733a93-2a1c-11ce-ade5-00aa0044773d) + +interface IChapteredRowset : IUnknown { + + [local] + HRESULT AddRefChapter( + [in] HCHAPTER hChapter, + [out, annotation("_Out_opt_")] DBREFCOUNT * pcRefCount + ); + + [call_as(AddRefChapter)] + HRESULT RemoteAddRefChapter( + [in] HCHAPTER hChapter, + [out] DBREFCOUNT * pcRefCount, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT ReleaseChapter( + [in] HCHAPTER hChapter, + [out, annotation("_Out_opt_")] DBREFCOUNT * pcRefCount + ); + + [call_as(ReleaseChapter)] + HRESULT RemoteReleaseChapter( + [in] HCHAPTER hChapter, + [out] DBREFCOUNT * pcRefCount, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/clfsmgmt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/clfsmgmt.h new file mode 100644 index 0000000000000000000000000000000000000000..5dace4e7f522ff2d93a737dba390cbd3f63eec21 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/clfsmgmt.h @@ -0,0 +1,500 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + clfsmgmt.h + +Abstract: + + This module exposes the API for managing CLFS logs for kernel + mode clients. "Managing" in this sense means manipulating + log file policies and performing operations (such as log growth) + which honor the policies. + +Author: + + J.R. Tipton (jrtipton) 15-Aug-2003 + +Revision History: + +--*/ + +#ifndef _CLFSMGMT_H_ +#define _CLFSMGMT_H_ +#pragma once +#include + +#pragma region Desktop Family or BootableSku Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_BOOTABLESKU) + + +// begin_wdm + +#ifdef __cplusplus +extern "C" { +#endif + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// We start with the information that is shared +// between user and kernel mode. +// + +typedef enum _CLFS_MGMT_POLICY_TYPE { + + ClfsMgmtPolicyMaximumSize = 0x0, + ClfsMgmtPolicyMinimumSize, + ClfsMgmtPolicyNewContainerSize, + ClfsMgmtPolicyGrowthRate, + ClfsMgmtPolicyLogTail, + ClfsMgmtPolicyAutoShrink, + ClfsMgmtPolicyAutoGrow, + ClfsMgmtPolicyNewContainerPrefix, + ClfsMgmtPolicyNewContainerSuffix, + ClfsMgmtPolicyNewContainerExtension, + + ClfsMgmtPolicyInvalid + +} CLFS_MGMT_POLICY_TYPE, *PCLFS_MGMT_POLICY_TYPE; +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +#define CLFS_MGMT_NUM_POLICIES ((ULONG)ClfsMgmtPolicyInvalid) +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// Relative sizes used when explicitly setting log size. +// +#define CLFS_LOG_SIZE_MINIMUM ((ULONGLONG)(0)) +#define CLFS_LOG_SIZE_MAXIMUM ((ULONGLONG)(-1)) +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// The version of a given policy structure. See CLFS_MGMT_POLICY. +// +#define CLFS_MGMT_POLICY_VERSION (0x01) +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// Log policy flags. +// +// LOG_POLICY_OVERWRITE: If set when adding a log policy, the previous +// policy of given type will be replaced. +// +// LOG_POLICY_PERSIST: If set when adding a log policy, the policy +// will be persisted with the log metadata. +// +#define LOG_POLICY_OVERWRITE (0x01) +#define LOG_POLICY_PERSIST (0x02) +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// CLFS_MGMT_POLICY +// +// This structure describes one particular policy that +// may be present on a log file. These are installed +// via InstallLogPolicy (Win32) or ClfsMgmtInstallPolicy (kernel). +// +typedef struct _CLFS_MGMT_POLICY { + + // + // Version of the structure. Should be CLFS_MGMT_POLICY_VERSION. + // + ULONG Version; + + // + // The entire length of the structure. + // + ULONG LengthInBytes; + + // + // Flags which apply to all policies, such as LOG_POLICY_OVERWRITE + // and LOG_POLICY_PERSIST. + // + ULONG PolicyFlags; + + // + // Determines how PolicyParameters union is interpreted. + // + CLFS_MGMT_POLICY_TYPE PolicyType; + + // + // The way to interpret the PolicyParameters union is + // determined by the value of PolicyType -- if it is + // ClfsMgmtPolicyMaximumSize, for instance, then the + // MaximumSize structure is the relevant one. + // + + union { + + struct { + ULONG Containers; + } MaximumSize; + + struct { + ULONG Containers; + } MinimumSize; + + struct { + ULONG SizeInBytes; + } NewContainerSize; + + struct { + ULONG AbsoluteGrowthInContainers; + ULONG RelativeGrowthPercentage; + } GrowthRate; + + struct { + ULONG MinimumAvailablePercentage; + ULONG MinimumAvailableContainers; + } LogTail; + + struct { + ULONG Percentage; + } AutoShrink; + + struct { + ULONG Enabled; + } AutoGrow; + + struct { + USHORT PrefixLengthInBytes; + WCHAR PrefixString[1]; // dynamic in length depending on PrefixLength + } NewContainerPrefix; + + struct { + ULONGLONG NextContainerSuffix; + } NewContainerSuffix; + + struct { + USHORT ExtensionLengthInBytes; + WCHAR ExtensionString[1]; // dynamic in length depending on ExtensionLengthInBytes + } NewContainerExtension; + + } PolicyParameters; + + // + // Nothing will be added down here since the structure above + // can be of dynamic length. + // + +} CLFS_MGMT_POLICY, *PCLFS_MGMT_POLICY; +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// CLFS_MGMT_NOTIFICATION_TYPE +// +// The types of notifications given to either the callback proxy +// or to readers of notifications. +// + +typedef enum _CLFS_MGMT_NOTIFICATION_TYPE +{ + + // + // Notification to advance base LSN. + // + + ClfsMgmtAdvanceTailNotification = 0, + + // + // Notification that a request to handle log full condition + // has completed. + // + + ClfsMgmtLogFullHandlerNotification, + + // + // Notification that a previously pinned log is now considered + // unpinned. + // + + ClfsMgmtLogUnpinnedNotification, + + // + // Notification that a non-zero number of bytes has been written + // to the log. + // + + ClfsMgmtLogWriteNotification + +} CLFS_MGMT_NOTIFICATION_TYPE, *PCLFS_MGMT_NOTIFICATION_TYPE; +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// CLFS_MGMT_NOTIFICATION +// +// A notification and associated parameters. +// + +typedef struct _CLFS_MGMT_NOTIFICATION +{ + + // + // Nature of the notification. + // + + CLFS_MGMT_NOTIFICATION_TYPE Notification; + + // + // Target LSN for base LSN advancement if the + // notification type is ClfsMgmtAdvanceTailNotification. + // + + CLFS_LSN Lsn; + + // + // TRUE if the log is pinned, FALSE otherwise. + // Especially meaningful when receiving an error + // status for ClfsMgmtLogFullHandlerNotification. + // + + USHORT LogIsPinned; + +} CLFS_MGMT_NOTIFICATION, *PCLFS_MGMT_NOTIFICATION; +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +// +// Kernel interface described below. +// + +// end_wdm + +#ifdef CLFS_KERNEL_MODE + +// begin_wdm + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// The advance tail callback is required when log clients +// register for management. It is invoked whenever the +// management library decides that this client needs to +// advance the tail of its log. Only minimal processing is +// allowed. +// +typedef +NTSTATUS +(*PCLFS_CLIENT_ADVANCE_TAIL_CALLBACK) ( + _In_ PLOG_FILE_OBJECT LogFile, + _In_ PCLFS_LSN TargetLsn, + _In_ PVOID ClientData + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// The log file full handler complete callback is invoked upon +// completion of a log growth request (that is, via a call +// to ClfsMgmtHandleLogFileFull). +// +typedef +VOID +(*PCLFS_CLIENT_LFF_HANDLER_COMPLETE_CALLBACK) ( + _In_ PLOG_FILE_OBJECT LogFile, + _In_ NTSTATUS OperationStatus, + _In_ BOOLEAN LogIsPinned, + _In_ PVOID ClientData + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// The log pinned callback is invoked when log space is freed up +// after a log file full handler completion callback indicates an +// NT_ERROR status code and LogIsPinned = TRUE. +// + +typedef +VOID +(*PCLFS_CLIENT_LOG_UNPINNED_CALLBACK) ( + _In_ PLOG_FILE_OBJECT LogFile, + _In_ PVOID ClientData + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// The log size complete callback is invoked whenever +// ClfsMgmtSetLogFileSize operation which returned +// STATUS_PENDING is completed. +// + +typedef +VOID +(*PCLFS_SET_LOG_SIZE_COMPLETE_CALLBACK) ( + _In_ PLOG_FILE_OBJECT LogFile, + _In_ NTSTATUS OperationStatus, + _In_ PVOID ClientData + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// CLFS_MGMT_CLIENT_REGISTRATION +// +// This structure is given to the CLFS management infrastructure +// by clients who wish to be managed (via ClfsMgmtRegisterManagedClient). +// The CLFS_MGMT_CLIENT_REGISTRATION_VERSION value must be stored +// in the 'Version' field of the structure. +// + +#define CLFS_MGMT_CLIENT_REGISTRATION_VERSION (0x1) + +typedef struct _CLFS_MGMT_CLIENT_REGISTRATION { + + // + // Initialize Version to CLFS_MGMT_CLIENT_REGISTRATION_VERSION. + // + + ULONG Version; + + PCLFS_CLIENT_ADVANCE_TAIL_CALLBACK AdvanceTailCallback; + PVOID AdvanceTailCallbackData; + + PCLFS_CLIENT_LFF_HANDLER_COMPLETE_CALLBACK LogGrowthCompleteCallback; + PVOID LogGrowthCompleteCallbackData; + + PCLFS_CLIENT_LOG_UNPINNED_CALLBACK LogUnpinnedCallback; + PVOID LogUnpinnedCallbackData; + +} CLFS_MGMT_CLIENT_REGISTRATION, *PCLFS_MGMT_CLIENT_REGISTRATION; +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// CLFS_MGMT_CLIENT +// +// This is the cookie that clients are given when registering and +// must give back to the management infrastructure whenever +// performing an operation. +// +typedef PVOID CLFS_MGMT_CLIENT, *PCLFS_MGMT_CLIENT; +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +CLFSUSER_API +NTSTATUS +ClfsMgmtRegisterManagedClient( + _In_ PLOG_FILE_OBJECT LogFile, + _In_ PCLFS_MGMT_CLIENT_REGISTRATION RegistrationData, + _Out_ PCLFS_MGMT_CLIENT ClientCookie + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +CLFSUSER_API +NTSTATUS +ClfsMgmtDeregisterManagedClient( + _In_ CLFS_MGMT_CLIENT ClientCookie + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +CLFSUSER_API +NTSTATUS +ClfsMgmtTailAdvanceFailure( + _In_ CLFS_MGMT_CLIENT Client, + _In_ NTSTATUS Reason + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +CLFSUSER_API +NTSTATUS +ClfsMgmtHandleLogFileFull( + _In_ CLFS_MGMT_CLIENT Client + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +CLFSUSER_API +NTSTATUS +ClfsMgmtInstallPolicy( + _In_ PLOG_FILE_OBJECT LogFile, + _In_reads_bytes_(PolicyLength) PCLFS_MGMT_POLICY Policy, + _In_ ULONG PolicyLength + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +CLFSUSER_API +NTSTATUS +ClfsMgmtQueryPolicy( + _In_ PLOG_FILE_OBJECT LogFile, + _In_ CLFS_MGMT_POLICY_TYPE PolicyType, + _Out_writes_bytes_(*PolicyLength) PCLFS_MGMT_POLICY Policy, + _Out_ PULONG PolicyLength + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +CLFSUSER_API +NTSTATUS +ClfsMgmtRemovePolicy( + _In_ PLOG_FILE_OBJECT LogFile, + _In_ CLFS_MGMT_POLICY_TYPE PolicyType + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +#if (NTDDI_VERSION >= NTDDI_WS03SP1) || (_WIN32_WINNT >= _WIN32_WINNT_WS03) +CLFSUSER_API +NTSTATUS +ClfsMgmtSetLogFileSize( + _In_ PLOG_FILE_OBJECT LogFile, + _In_ PULONGLONG NewSizeInContainers, + _Out_opt_ PULONGLONG ResultingSizeInContainers, + _In_opt_ PCLFS_SET_LOG_SIZE_COMPLETE_CALLBACK CompletionRoutine, + _In_opt_ PVOID CompletionRoutineData + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + + +#if (NTDDI_VERSION >= NTDDI_VISTA) || (_WIN32_WINNT >= _WIN32_WINNT_LONGHORN) +CLFSUSER_API +NTSTATUS +ClfsMgmtSetLogFileSizeAsClient( + _In_ PLOG_FILE_OBJECT LogFile, + _In_opt_ CLFS_MGMT_CLIENT ClientCookie, + _In_ PULONGLONG NewSizeInContainers, + _Out_opt_ PULONGLONG ResultingSizeInContainers, + _In_opt_ PCLFS_SET_LOG_SIZE_COMPLETE_CALLBACK CompletionRoutine, + _In_opt_ PVOID CompletionRoutineData + ); +#endif /* NTDDI_VERSION || _WIN32_WINNT */ + +// end_wdm + +#endif // CLFS_KERNEL_MODE + +// begin_wdm + +#ifdef __cplusplus +} // extern "C" +#endif + +// end_wdm + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_BOOTABLESKU) */ +#pragma endregion + +#endif // _CLFSMGMT_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/clfsmgmtw32.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/clfsmgmtw32.h new file mode 100644 index 0000000000000000000000000000000000000000..de6fa8c07d3b07eb4d299e03b78d0b24eb07771e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/clfsmgmtw32.h @@ -0,0 +1,240 @@ +/*============================================================================= + + Copyright (c) 2003 Microsoft Corporation + + Module Name: + + clfsmgmtw32.h + + Abstract: + + Declares the exported API set for the Common Log Win32 + Management API. + + Author: + + JR Tipton [jrtipton] 24-Aug-2003 + + Environment: + + User Mode + + Revision History: + + +=============================================================================*/ +#ifndef __CLFSMGMTW32_H__ +#define __CLFSMGMTW32_H__ +#include + +#pragma region Desktop Family or BootableSku Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_BOOTABLESKU) + + + +#ifdef CLFS_KERNEL_MODE +# undef CLFS_KERNEL_MODE +#endif /* CLFS_KERNEL_MODE */ + +#include + +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +typedef +VOID +(*PLOG_TAIL_ADVANCE_CALLBACK) ( + IN HANDLE hLogFile, + IN CLFS_LSN lsnTarget, + IN PVOID pvClientContext + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +typedef +VOID +(*PLOG_FULL_HANDLER_CALLBACK) ( + IN HANDLE hLogFile, + IN DWORD dwError, + IN BOOL fLogIsPinned, + IN PVOID pvClientContext + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +typedef +VOID +(*PLOG_UNPINNED_CALLBACK) ( + IN HANDLE hLogFile, + IN PVOID pvClientContext + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +typedef struct _LOG_MANAGEMENT_CALLBACKS +{ + PVOID CallbackContext; + + PLOG_TAIL_ADVANCE_CALLBACK AdvanceTailCallback; + PLOG_FULL_HANDLER_CALLBACK LogFullHandlerCallback; + PLOG_UNPINNED_CALLBACK LogUnpinnedCallback; + +} LOG_MANAGEMENT_CALLBACKS, *PLOG_MANAGEMENT_CALLBACKS; +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// RegisterManageableLogClient +// +// Registers a client as one that wishes to participate in the CLFS management +// scheme. The client can receive notifications such as "advance base lsn" if +// pCallbacks is non-null. +//------------------------------------------------------------------------------ +CLFSUSER_API BOOL WINAPI RegisterManageableLogClient ( + IN HANDLE hLog, + IN PLOG_MANAGEMENT_CALLBACKS pCallbacks + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// DeregisterManageableLogClient +// +// When a log client no longer wishes to be registered, either the log handle +// can be closed (deregistering the client implicitly) or this routine can +// be invoked which will deregister the client explicitly. The client will +// no longer receive notifications related to management. +//------------------------------------------------------------------------------ +CLFSUSER_API BOOL WINAPI DeregisterManageableLogClient ( + IN HANDLE hLog + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// ReadLogNotification +// +// Allows a registered log management client to read a management notification. +// Only possible if the client is not receiving callbacks. Can function in +// synchronous or asynchronous mode. +//------------------------------------------------------------------------------ +CLFSUSER_API BOOL WINAPI ReadLogNotification ( + IN HANDLE hLog, + OUT PCLFS_MGMT_NOTIFICATION pNotification, + IN LPOVERLAPPED lpOverlapped + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// InstallLogPolicy +// +// Installs a policy on a log. The possible policies are described by the +// enumerated type CLFS_MGMT_POLICY_TYPE. +//------------------------------------------------------------------------------ +CLFSUSER_API BOOL WINAPI InstallLogPolicy ( + IN HANDLE hLog, + IN PCLFS_MGMT_POLICY pPolicy + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// InstallLogPolicy +// +// Removes a policy from a log, reverting back to the default behavior for the +// policy indicated. The possible policies are described by the enumerated type +// CLFS_MGMT_POLICY_TYPE. +//------------------------------------------------------------------------------ +CLFSUSER_API BOOL WINAPI RemoveLogPolicy ( + IN HANDLE hLog, + IN CLFS_MGMT_POLICY_TYPE ePolicyType + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// QueryLogPolicy +// +// Given a policy type, returns the associated policy data. +//------------------------------------------------------------------------------ +CLFSUSER_API BOOL WINAPI QueryLogPolicy ( + IN HANDLE hLog, + IN CLFS_MGMT_POLICY_TYPE ePolicyType, + OUT PCLFS_MGMT_POLICY pPolicyBuffer, + IN OUT PULONG pcbPolicyBuffer + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// SetLogFileSizeWithPolicy +// +// Sets the size of a log file, obeying any policies present on the log file +// at the time. +//------------------------------------------------------------------------------ +CLFSUSER_API BOOL WINAPI SetLogFileSizeWithPolicy( + IN HANDLE hLog, + IN PULONGLONG pDesiredSize, + OUT PULONGLONG pResultingSize + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// HandleLogFull +// +// Handles a log full condition according to policy (either by growing the log +// or demanding that other streams advance their log bases). +// +// This routine may do the work asynchronously (returning FALSE with last error +// of ERROR_IO_PENDING). +//------------------------------------------------------------------------------ +CLFSUSER_API BOOL WINAPI HandleLogFull( + IN HANDLE hLog + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// LogTailAdvanceFailure +// +// Allows a log client to indicate that it cannot comply with a request from +// log management to advance its tail. +//------------------------------------------------------------------------------ +CLFSUSER_API BOOL WINAPI LogTailAdvanceFailure( + IN HANDLE hLog, + IN DWORD dwReason + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// RegisterForLogWriteNotification +// +// Registers a client as one may not wish to participate in the CLFS management +// scheme but does wish to be notified of certain events in the log. +//------------------------------------------------------------------------------ +CLFSUSER_API BOOL WINAPI RegisterForLogWriteNotification ( + IN HANDLE hLog, + IN ULONG cbThreshold, + IN BOOL fEnable + ); +#endif /* _WIN32_WINNT */ + +#ifdef __cplusplus +} // extern "C" +#endif /* __cplusplus */ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_BOOTABLESKU) */ +#pragma endregion + +#endif /* __CLFSMGMTW32_H__ */ + +//----------------------------------------------------------------------------- +// END OF FILE +//----------------------------------------------------------------------------- diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/clfsw32.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/clfsw32.h new file mode 100644 index 0000000000000000000000000000000000000000..90d850f66cd4b6dd67b52305ee031c140e469d03 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/clfsw32.h @@ -0,0 +1,847 @@ +/*============================================================================= + + Copyright (c) 1998-2001 Microsoft Corporation + + Module Name: + + clfsw32.h + + Abstract: + + Declares the exported API set for the Common Log Win32 + API dynamic link library and static library. + + Author: + + Dexter Bradshaw [DexterB] 24-Apr-2001 + + Environment: + + User Mode + + Revision History: + + +=============================================================================*/ +#ifndef __CLFSW32_H__ +#define __CLFSW32_H__ +#include + +#pragma region Desktop Family or BootableSku Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_BOOTABLESKU) + + +//----------------------------------------------------------------------------- +// CLFS INCLUDES +//----------------------------------------------------------------------------- + + +#ifdef CLFS_KERNEL_MODE +# undef CLFS_KERNEL_MODE +#endif // CLFS_KERNEL_MODE + +#include + + +//------------------------------------------------------------------------------ +// TYPE DEFINITIONS +//------------------------------------------------------------------------------ + + +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// PCLFS_COMPLETION_ROUTINE +// + +typedef void (__stdcall * PCLFS_COMPLETION_ROUTINE) ( + IN PVOID pvOverlapped, + IN ULONG ulReserved + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// PCLFS_PRINT_RECORD_ROUTINE +// +// User defined callback deciphering the format of a log record +// buffer and dumping its content to the log stream. +// + +typedef ULONG (__stdcall * CLFS_PRINT_RECORD_ROUTINE) ( + IN PFILE pstrmOut, + IN CLFS_RECORD_TYPE fRecordType, + IN PVOID pvBuffer, + IN ULONG cbBuffer + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +// +// CLFS_LOG_ARCHIVE_CONTEXT +// +// The log archive context is an opaque user data structure allocated by the CLFS +// user-mode runtime after successfully preparing for archival. Log archive +// clients should make no assumptions about the contents of this data structure +// nor in any way attempt to change it. The log archive context maintains a copy +// (not a reference) to the log file handle and maintains the cursor state during +// iteration throught the archive descriptor set returned from preparing for +// archival. +// + +typedef PVOID CLFS_LOG_ARCHIVE_CONTEXT, *PCLFS_LOG_ARCHIVE_CONTEXT; +#endif /* _WIN32_WINNT */ + + +//------------------------------------------------------------------------------ +// EXPORTED ENTRY POINT DECLARATION +//------------------------------------------------------------------------------ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// LsnCreate +// +// Create an LSN given a log identifier, a container identifier, a block +// offset and a bucket identifier. Caller must test for invalid LSN after +// making this call. +//------------------------------------------------------------------------------ + +CLFSUSER_API CLFS_LSN WINAPI LsnCreate ( + IN CLFS_CONTAINER_ID cidContainer, + IN ULONG offBlock, + IN ULONG cRecord + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//----------------------------------------------------------------------------- +// LsnContainer +// +// Entry point to extract the container identifier from the LSN. +//----------------------------------------------------------------------------- + +CLFSUSER_API CLFS_CONTAINER_ID WINAPI LsnContainer ( + IN const CLFS_LSN* plsn + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//----------------------------------------------------------------------------- +// LsnBlockOffset +// +// Entry point to extract the block offset from the LSN. +//----------------------------------------------------------------------------- + +CLFSUSER_API ULONG WINAPI LsnBlockOffset ( + IN const CLFS_LSN* plsn + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//----------------------------------------------------------------------------- +// LsnRecordSequence +// +// Entry point to extract the bucket identifier from the LSN. +//----------------------------------------------------------------------------- + +CLFSUSER_API ULONG WINAPI LsnRecordSequence ( + IN const CLFS_LSN* plsn + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// CreateLogFile +// +// Entry point to create a physical log file consisting of uniformly sized +// containers lying in a given directory path. +//------------------------------------------------------------------------------ + +CLFSUSER_API HANDLE WINAPI CreateLogFile ( + IN LPCWSTR pszLogFileName, + IN ACCESS_MASK fDesiredAccess, + IN DWORD dwShareMode, + IN LPSECURITY_ATTRIBUTES psaLogFile OPTIONAL, + IN ULONG fCreateDisposition, + IN ULONG fFlagsAndAttributes + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// DeleteLogByHandle +// +// Entry point to delete a physical log file and its underlying container +// storage by handle. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI DeleteLogByHandle (IN HANDLE hLog); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// DeleteLogFile +// +// Entry point to delete a physical log file and its underlying container +// storage by name. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI DeleteLogFile ( + IN LPCWSTR pszLogFileName, + IN PVOID pvReserved OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// AddLogContainer +// +// Adds a log container to a given physical file identified by the log +// handle. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI AddLogContainer ( + _In_ HANDLE hLog, + _In_opt_ PULONGLONG pcbContainer, + _In_ LPWSTR pwszContainerPath, + _Inout_opt_ LPVOID pReserved + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// AddLogContainerSet +// +// Adds a set of log containers to a given physical file identified by the log +// handle. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI AddLogContainerSet ( + _In_ HANDLE hLog, + _In_ USHORT cContainer, + _In_opt_ PULONGLONG pcbContainer, + _In_reads_(cContainer) LPWSTR *rgwszContainerPath, + _Inout_opt_ LPVOID pReserved + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// RemoveLogContainer +// +// Removes a log container from a physical log file identified by +// the log handle. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI RemoveLogContainer ( + _In_ HANDLE hLog, + _In_ LPWSTR pwszContainerPath, + _In_ BOOL fForce, + _Inout_opt_ LPVOID pReserved + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// RemoveLogContainerSet +// +// Removes a set of log containers from a physical log file identified by +// the log handle. +//------------------------------------------------------------------------------ + + +CLFSUSER_API BOOL WINAPI RemoveLogContainerSet ( + _In_ HANDLE hLog, + _In_ USHORT cContainer, + _In_reads_(cContainer) LPWSTR *rgwszContainerPath, + _In_ BOOL fForce, + _Inout_opt_ LPVOID pReserved + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// SetLogArchiveTail +// +// Sets the archive tail for either a client or physical log file +// depending on the type of the log handle. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI SetLogArchiveTail ( + IN HANDLE hLog, + IN PCLFS_LSN plsnArchiveTail, + IN OUT LPVOID pReserved OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// SetEndOfLog +// +// This function sets the end of log to the value specified by the plsnEnd +// parameter. The operation only works on non-ephemeral logs and is usually +// called by archival or log-shipping engines during dynamic roll forward +// recovery. +// +// Deprecated. See TruncateLog. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI SetEndOfLog ( + IN HANDLE hLog, + IN PCLFS_LSN plsnEnd, + IN OUT LPOVERLAPPED lpOverlapped + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_LONGHORN) +//------------------------------------------------------------------------------ +// TruncateLog +// +// This function sets the end of log to the value specified by the plsnEnd +// parameter. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI TruncateLog ( + _In_ PVOID pvMarshal, + _In_ PCLFS_LSN plsnEnd, + _Inout_opt_ LPOVERLAPPED lpOverlapped + ); +#endif /* _WIN32_WINNT */ + + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// CreateLogContainerScanContext +// +// Create a scan context to enumerate scan descriptors for storage containers +// that back the physical log file stream. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI CreateLogContainerScanContext ( + IN HANDLE hLog, + IN ULONG cFromContainer, + IN ULONG cContainers, + IN CLFS_SCAN_MODE eScanMode, + IN OUT PCLFS_SCAN_CONTEXT pcxScan, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// ScanLogContainers +// +// Scan descriptors for storage containers backing the physical +// log file stream. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI ScanLogContainers ( + IN OUT PCLFS_SCAN_CONTEXT pcxScan, + IN CLFS_SCAN_MODE eScanMode, + IN OUT LPVOID pReserved OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// AlignReservedLog +// +// Given a valid marshalling context calculate the sector algined aggregate +// number of reserved records and bytes. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI AlignReservedLog ( + IN OUT PVOID pvMarshal, + IN ULONG cReservedRecords, + IN LONGLONG rgcbReservation [], + OUT PLONGLONG pcbAlignReservation + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// AllocReservedLog +// +// Given a valid marshalling context, allocate an aggregate number of reserved +// records and bytes. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI AllocReservedLog ( + IN OUT PVOID pvMarshal, + IN ULONG cReservedRecords, + IN OUT PLONGLONG pcbAdjustment + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// FreeReservedLog +// +// Set the reserved log space to a new size or specify a delta +// for the reserved space. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI FreeReservedLog ( + IN OUT PVOID pvMarshal, + IN ULONG cReservedRecords, + IN OUT PLONGLONG pcbAdjustment + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// GetLogFileInformation +// +// Get log file information for a physical log and client stream +// specific to the handle. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI GetLogFileInformation ( + IN HANDLE hLog, + IN OUT PCLFS_INFORMATION pinfoBuffer, + IN OUT PULONG cbBuffer + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// SetLogArchiveMode +// +// Enable or disable the log's archive support mechanisms. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI SetLogArchiveMode ( + IN HANDLE hLog, + IN CLFS_LOG_ARCHIVE_MODE eMode + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// ReadLogRestartArea +// +// Read the last restart area successfully written to a physical or +// client log stream. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI ReadLogRestartArea ( + IN PVOID pvMarshal, + OUT PVOID* ppvRestartBuffer, + OUT PULONG pcbRestartBuffer, + OUT PCLFS_LSN plsn, + OUT PVOID *ppvContext, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// ReadPreviousLogRestartArea +// +// Read the previous restart area successfully written to a physical or +// client log stream given the read context created by the a call to +// ReadRestartArea. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI ReadPreviousLogRestartArea ( + IN PVOID pvReadContext, + OUT PVOID *ppvRestartBuffer, + OUT PULONG pcbRestartBuffer, + OUT PCLFS_LSN plsnRestart, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// WriteLogRestartArea +// +// Write a new restart area to a physical or client log stream. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI WriteLogRestartArea ( + IN OUT PVOID pvMarshal, + IN PVOID pvRestartBuffer, + IN ULONG cbRestartBuffer, + IN PCLFS_LSN plsnBase OPTIONAL, + IN ULONG fFlags, + OUT PULONG pcbWritten OPTIONAL, + OUT PCLFS_LSN plsnNext OPTIONAL, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_LONGHORN) +//------------------------------------------------------------------------------ +// GetLogReservationInfo +// +// Get the reservation information from a marshalling context +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI GetLogReservationInfo ( + _In_ PVOID pvMarshal, + _Out_ PULONG pcbRecordNumber, + _Out_ PLONGLONG pcbUserReservation, + _Out_ PLONGLONG pcbCommitReservation + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// AdvanceLogBase +// +// Set a new base LSN for a log stream without writing a restart record. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI AdvanceLogBase ( + IN OUT PVOID pvMarshal, + IN PCLFS_LSN plsnBase, + IN ULONG fFlags, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// CloseAndResetLogFile +// +// Orderly shutdown of a client log stream. This call only works on client +// stream handles and will return ERROR_INVALID_HANDLE on a physical stream. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI CloseAndResetLogFile (IN HANDLE hLog); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// CreateLogMarshallingArea +// +// Initalize a marshalling area for a physical or client log +// file stream. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI CreateLogMarshallingArea ( + IN HANDLE hLog, + IN CLFS_BLOCK_ALLOCATION pfnAllocBuffer OPTIONAL, + IN CLFS_BLOCK_DEALLOCATION pfnFreeBuffer OPTIONAL, + IN PVOID pvBlockAllocContext OPTIONAL, + IN ULONG cbMarshallingBuffer, + IN ULONG cMaxWriteBuffers, + IN ULONG cMaxReadBuffers, + OUT PVOID *ppvMarshal + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// DeleteLogMarshallingArea +// +// Delete a marshalling area for a physical or client log +// file stream. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI DeleteLogMarshallingArea (IN PVOID pvMarshal); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// ReserveAndAppendLog +// +// Reserve space and append log buffers to a physical or client +// log stream. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI ReserveAndAppendLog ( + IN PVOID pvMarshal, + IN PCLFS_WRITE_ENTRY rgWriteEntries OPTIONAL, + IN ULONG cWriteEntries, + IN PCLFS_LSN plsnUndoNext OPTIONAL, + IN PCLFS_LSN plsnPrevious OPTIONAL, + IN ULONG cReserveRecords, + IN OUT LONGLONG rgcbReservation [] OPTIONAL, + IN ULONG fFlags, + OUT PCLFS_LSN plsn OPTIONAL, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// ReserveAndAppendLogAligned +// +// Reserve space and append log buffers to a physical or client +// log stream, honoring an alignment between write entries. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI ReserveAndAppendLogAligned ( + IN PVOID pvMarshal, + IN PCLFS_WRITE_ENTRY rgWriteEntries OPTIONAL, + IN ULONG cWriteEntries, + IN ULONG cbEntryAlignment, + IN PCLFS_LSN plsnUndoNext OPTIONAL, + IN PCLFS_LSN plsnPrevious OPTIONAL, + IN ULONG cReserveRecords, + IN OUT LONGLONG rgcbReservation [] OPTIONAL, + IN ULONG fFlags, + OUT PCLFS_LSN plsn OPTIONAL, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// FlushLogBuffers +// +// Flush move all current buffers in the marshalling area to the flush queue and +// flush all buffers to the disk. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI FlushLogBuffers ( + IN PVOID pvMarshal, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// FlushLogToLsn +// +// Flush all buffers in the marshalling area up to a target LSN to the flush +// queue and flush all buffers up to the target LSN to the disk. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI FlushLogToLsn ( + IN PVOID pvMarshalContext, + IN PCLFS_LSN plsnFlush, + OUT PCLFS_LSN plsnLastFlushed OPTIONAL, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// ReadLogRecord +// +// Read a log record from a physical or client log stream given +// a starting LSN. +//------------------------------------------------------------------------------ + + +CLFSUSER_API BOOL WINAPI ReadLogRecord ( + IN PVOID pvMarshal, + IN PCLFS_LSN plsnFirst, + IN CLFS_CONTEXT_MODE eContextMode, + OUT PVOID* ppvReadBuffer, + OUT PULONG pcbReadBuffer, + OUT PCLFS_RECORD_TYPE peRecordType, + OUT PCLFS_LSN plsnUndoNext, + OUT PCLFS_LSN plsnPrevious, + OUT PVOID* ppvReadContext, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// ReadNextLogRecord +// +// Read the next log record from a given marshalling context. +//------------------------------------------------------------------------------ + + +CLFSUSER_API BOOL WINAPI ReadNextLogRecord ( + IN OUT PVOID pvReadContext, + OUT PVOID* ppvBuffer, + OUT PULONG pcbBuffer, + IN OUT PCLFS_RECORD_TYPE peRecordType, + IN PCLFS_LSN plsnUser OPTIONAL, + OUT PCLFS_LSN plsnUndoNext, + OUT PCLFS_LSN plsnPrevious, + OUT PCLFS_LSN plsnRecord, + IN OUT LPOVERLAPPED pOverlapped OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// TerminateReadLog +// +// Terminate the read context. +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI TerminateReadLog (IN PVOID pvCursorContext); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// DumpLogRecords +// +// Given log file name, scan a log file and dump log records to a file stream. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI DumpLogRecords ( + _In_ PWSTR pwszLogFileName, + _In_ CLFS_RECORD_TYPE fRecordType, + _In_opt_ PCLFS_LSN plsnStart, + _In_opt_ PCLFS_LSN plsnEnd, + _In_opt_ PFILE pstrmOut, + _In_opt_ CLFS_PRINT_RECORD_ROUTINE pfnPrintRecord, + _In_opt_ CLFS_BLOCK_ALLOCATION pfnAllocBlock, + _In_opt_ CLFS_BLOCK_DEALLOCATION pfnFreeBlock, + _In_opt_ PVOID pvBlockAllocContext, + _In_ ULONG cbBlock, + _In_ ULONG cMaxBlocks + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// PrepareLogArchive +// +// Snapshots the current active log and builds an ordered set of log archive +// descriptors describing the logically contiguous active log extents. This +// function also allocates and initializes a log archvie context for use in +// GetNextLogArchiveExtent and ReadLogArchiveMetadata. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI PrepareLogArchive ( + _In_ HANDLE hLog, + _Inout_updates_(cLen) PWSTR pszBaseLogFileName, + _In_ ULONG cLen, + _In_opt_ const PCLFS_LSN plsnLow, + _In_opt_ const PCLFS_LSN plsnHigh, + _Out_opt_ PULONG pcActualLength, + _Out_ PULONGLONG poffBaseLogFileData, + _Out_ PULONGLONG pcbBaseLogFileLength, + _Out_ PCLFS_LSN plsnBase, + _Out_ PCLFS_LSN plsnLast, + _Out_ PCLFS_LSN plsnCurrentArchiveTail, + _Out_ PCLFS_LOG_ARCHIVE_CONTEXT ppvArchiveContext + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// ReadLogArchiveMetadata +// +// Copies a portion of the metadata snapshot taken at the time of an invocation +// of PrepareLogArchvie to a user buffer. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI ReadLogArchiveMetadata( + IN CLFS_LOG_ARCHIVE_CONTEXT pvArchiveContext, + IN ULONG cbOffset, + IN ULONG cbBytesToRead, + IN OUT PBYTE pbReadBuffer, + OUT PULONG pcbBytesRead + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// GetNextLogArchiveExtent +// +// Iterates through the ordered set of log archive descriptors maintaining +// cursor state through the log archive context returned in PrepareLogArchive. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI GetNextLogArchiveExtent ( + IN CLFS_LOG_ARCHIVE_CONTEXT pvArchiveContext, + IN OUT CLFS_ARCHIVE_DESCRIPTOR rgadExtent [], + IN ULONG cDescriptors, + OUT PULONG pcDescriptorsReturned + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// TerminateLogArchive +// +// De-allocates all system resources allocated to a valid log archive context +// on completion of enumeration of all log descriptors. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI TerminateLogArchive ( + IN CLFS_LOG_ARCHIVE_CONTEXT pvArchiveContext + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// ValidateLog +// +// Validates the consistency of both log metadata and data before archival and +// after log restore. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI ValidateLog ( + IN LPCWSTR pszLogFileName, + IN LPSECURITY_ATTRIBUTES psaLogFile OPTIONAL, + OUT PCLFS_INFORMATION pinfoBuffer OPTIONAL, + IN OUT PULONG pcbBuffer + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// GetLogContainerName +// +// Gets the name of a container given the container identifier. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI GetLogContainerName ( + IN HANDLE hLog, + IN CLFS_CONTAINER_ID cidLogicalContainer, + IN OUT LPCWSTR pwstrContainerName, + IN ULONG cLenContainerName, + IN OUT PULONG pcActualLenContainerName OPTIONAL + ); +#endif /* _WIN32_WINNT */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WS03) +//------------------------------------------------------------------------------ +// GetLogIoStatistics +// +// Gets the log I/O statistics for the log associated with a given log handle. +// +//------------------------------------------------------------------------------ + +CLFSUSER_API BOOL WINAPI GetLogIoStatistics ( + IN HANDLE hLog, + IN OUT PVOID pvStatsBuffer, + IN ULONG cbStatsBuffer, + IN CLFS_IOSTATS_CLASS eStatsClass, + OUT PULONG pcbStatsWritten OPTIONAL + ); +#endif /* _WIN32_WINNT */ + + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_BOOTABLESKU) */ +#pragma endregion + +#endif // __CLFSW32_H__ + +//----------------------------------------------------------------------------- +// END OF FILE +//----------------------------------------------------------------------------- diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/clinf2.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/clinf2.idl new file mode 100644 index 0000000000000000000000000000000000000000..ddc48e9813c2d108ebccc4adadd73479307bb9be --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/clinf2.idl @@ -0,0 +1,90 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: clinf2.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" + + REMOTED_INTERFACE(0c733ab8-2a1c-11ce-ade5-00aa0044773d) + +interface IColumnsInfo2 : IColumnsInfo +{ +#ifdef _WIN64 //Use casting by ULONG in attribute size_is under 64-bit environment. +[local] +HRESULT GetRestrictedColumnInfo( + [in] DBORDINAL cColumnIDMasks, + [in, size_is((ULONG)cColumnIDMasks), annotation("_In_reads_(cColumnIDMasks)")] const DBID rgColumnIDMasks[], + [in] DWORD dwFlags, + [in, out, annotation("_Out_")] DBORDINAL * pcColumns, + [out, size_is(,(ULONG)*pcColumns), annotation("_Outptr_result_buffer_(*pcColumns)")] DBID ** prgColumnIDs, + [out, size_is(,(ULONG)*pcColumns), annotation("_Outptr_result_buffer_(*pcColumns)")] DBCOLUMNINFO ** prgColumnInfo, + [out, annotation("_Outptr_opt_result_z_")] OLECHAR ** ppStringsBuffer + ); + +#ifndef NO_REMOTE +[call_as(GetRestrictedColumnInfo)] +HRESULT RemoteGetRestrictedColumnInfo( + [in] DBORDINAL cColumnIDMasks, + [in, unique, size_is((ULONG)cColumnIDMasks)] const DBID * rgColumnIDMasks, + [in] DWORD dwFlags, + [in, out] DBORDINAL * pcColumns, + [in, out, unique, size_is(,(ULONG)*pcColumns)] DBID ** prgColumnIDs, + [in, out, unique, size_is(,(ULONG)*pcColumns)] DBCOLUMNINFO ** prgColumnInfo, + [out, size_is(,(ULONG)*pcColumns)] DBBYTEOFFSET ** prgNameOffsets, + [out, size_is(,(ULONG)*pcColumns)] DBBYTEOFFSET ** prgcolumnidOffsets, + [in, out] DBLENGTH * pcbStringsBuffer, + [in, out, unique, size_is(,(ULONG)*pcbStringsBuffer)] OLECHAR ** ppStringsBuffer + ); +#endif + +#else //No casting by ULONG for 32-bit. + +[local] +HRESULT GetRestrictedColumnInfo( + [in] DBORDINAL cColumnIDMasks, + [in, size_is(cColumnIDMasks), annotation("_In_reads_(cColumnIDMasks)")] const DBID rgColumnIDMasks[], + [in] DWORD dwFlags, + [in, out, annotation("_Out_")] DBORDINAL * pcColumns, + [out, size_is(,*pcColumns), annotation("_Outptr_result_buffer_(*pcColumns)")] DBID ** prgColumnIDs, + [out, size_is(,*pcColumns) , annotation("_Outptr_result_buffer_(*pcColumns)")] DBCOLUMNINFO ** prgColumnInfo, + [out, annotation("_Outptr_opt_result_z_")] OLECHAR ** ppStringsBuffer + ); + +#ifndef NO_REMOTE +[call_as(GetRestrictedColumnInfo)] +HRESULT RemoteGetRestrictedColumnInfo( + [in] DBORDINAL cColumnIDMasks, + [in, unique, size_is(cColumnIDMasks)] const DBID * rgColumnIDMasks, + [in] DWORD dwFlags, + [in, out] DBORDINAL * pcColumns, + [in, out, unique, size_is(,*pcColumns)] DBID ** prgColumnIDs, + [in, out, unique, size_is(,*pcColumns)] DBCOLUMNINFO ** prgColumnInfo, + [out, size_is(,*pcColumns)] DBBYTEOFFSET ** prgNameOffsets, + [out, size_is(,*pcColumns)] DBBYTEOFFSET ** prgcolumnidOffsets, + [in, out] DBLENGTH * pcbStringsBuffer, + [in, out, unique, size_is(,*pcbStringsBuffer)] OLECHAR ** ppStringsBuffer + ); +#endif + +#endif +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cloneviewhelper.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cloneviewhelper.h new file mode 100644 index 0000000000000000000000000000000000000000..95bcb22afe38d1bf6d97330d9cc7ef736a54ee9c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cloneviewhelper.h @@ -0,0 +1,440 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __cloneviewhelper_h__ +#define __cloneviewhelper_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICloneViewHelper_FWD_DEFINED__ +#define __ICloneViewHelper_FWD_DEFINED__ +typedef interface ICloneViewHelper ICloneViewHelper; + +#endif /* __ICloneViewHelper_FWD_DEFINED__ */ + + +#ifndef __IViewHelper_FWD_DEFINED__ +#define __IViewHelper_FWD_DEFINED__ +typedef interface IViewHelper IViewHelper; + +#endif /* __IViewHelper_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_cloneviewhelper_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define GETCONNECTEDIDS_TARGET 0 +#define GETCONNECTEDIDS_SOURCE 1 +#define S_INIT 2 +// 0 == TMM's passed in configuration was applied +#define SETCONFIGURATION_STATUS_APPLIED 0 +// 1 == TMM's passed in configuration was applied, with additional proprietary IHV settings +#define SETCONFIGURATION_STATUS_ADDITIONAL 1 +// 2 == TMM's passed in configuration was overridden and IHV's own settings were applied +#define SETCONFIGURATION_STATUS_OVERRIDDEN 2 + +// Topology Data + +typedef struct tagSources +{ + ULONG sourceId; + int numTargets; + ULONG aTargets[1]; +} Sources; + +typedef struct tagAdapter +{ + WCHAR AdapterName[128]; + int numSources; + Sources sources[1]; +} Adapter; + +typedef struct tagAdapters +{ + int numAdapters; + Adapter adapter[1]; +} Adapters; + +// Display Mode Data + +typedef struct tagDisplayMode +{ + WCHAR DeviceName[32]; + DEVMODEW devMode; +} DisplayMode; + +typedef struct tagDisplayModes +{ + int numDisplayModes; + DisplayMode displayMode[1]; +} DisplayModes; + + + +extern RPC_IF_HANDLE __MIDL_itf_cloneviewhelper_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cloneviewhelper_0000_0000_v0_0_s_ifspec; + +#ifndef __ICloneViewHelper_INTERFACE_DEFINED__ +#define __ICloneViewHelper_INTERFACE_DEFINED__ + +/* interface ICloneViewHelper */ +/* [unique][helpstring][nonextensible][uuid][object] */ + + +EXTERN_C const IID IID_ICloneViewHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F6A3D4C4-5632-4D83-B0A1-FB88712B1EB7") + ICloneViewHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetConnectedIDs( + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [out][in] */ __RPC__inout ULONG *pulCount, + /* [out][in] */ __RPC__inout ULONG *pulID, + /* [in] */ ULONG ulFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetActiveTopology( + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [in] */ ULONG ulSourceID, + /* [out][in] */ __RPC__inout ULONG *pulCount, + /* [out][in] */ __RPC__inout ULONG *pulTargetID) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetActiveTopology( + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [in] */ ULONG ulSourceID, + /* [in] */ ULONG ulCount, + /* [in] */ __RPC__in ULONG *pulTargetID) = 0; + + virtual HRESULT STDMETHODCALLTYPE Commit( + /* [in] */ BOOL fFinalCall) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICloneViewHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICloneViewHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICloneViewHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICloneViewHelper * This); + + DECLSPEC_XFGVIRT(ICloneViewHelper, GetConnectedIDs) + HRESULT ( STDMETHODCALLTYPE *GetConnectedIDs )( + __RPC__in ICloneViewHelper * This, + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [out][in] */ __RPC__inout ULONG *pulCount, + /* [out][in] */ __RPC__inout ULONG *pulID, + /* [in] */ ULONG ulFlags); + + DECLSPEC_XFGVIRT(ICloneViewHelper, GetActiveTopology) + HRESULT ( STDMETHODCALLTYPE *GetActiveTopology )( + __RPC__in ICloneViewHelper * This, + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [in] */ ULONG ulSourceID, + /* [out][in] */ __RPC__inout ULONG *pulCount, + /* [out][in] */ __RPC__inout ULONG *pulTargetID); + + DECLSPEC_XFGVIRT(ICloneViewHelper, SetActiveTopology) + HRESULT ( STDMETHODCALLTYPE *SetActiveTopology )( + __RPC__in ICloneViewHelper * This, + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [in] */ ULONG ulSourceID, + /* [in] */ ULONG ulCount, + /* [in] */ __RPC__in ULONG *pulTargetID); + + DECLSPEC_XFGVIRT(ICloneViewHelper, Commit) + HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in ICloneViewHelper * This, + /* [in] */ BOOL fFinalCall); + + END_INTERFACE + } ICloneViewHelperVtbl; + + interface ICloneViewHelper + { + CONST_VTBL struct ICloneViewHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICloneViewHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICloneViewHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICloneViewHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICloneViewHelper_GetConnectedIDs(This,wszAdaptorName,pulCount,pulID,ulFlags) \ + ( (This)->lpVtbl -> GetConnectedIDs(This,wszAdaptorName,pulCount,pulID,ulFlags) ) + +#define ICloneViewHelper_GetActiveTopology(This,wszAdaptorName,ulSourceID,pulCount,pulTargetID) \ + ( (This)->lpVtbl -> GetActiveTopology(This,wszAdaptorName,ulSourceID,pulCount,pulTargetID) ) + +#define ICloneViewHelper_SetActiveTopology(This,wszAdaptorName,ulSourceID,ulCount,pulTargetID) \ + ( (This)->lpVtbl -> SetActiveTopology(This,wszAdaptorName,ulSourceID,ulCount,pulTargetID) ) + +#define ICloneViewHelper_Commit(This,fFinalCall) \ + ( (This)->lpVtbl -> Commit(This,fFinalCall) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICloneViewHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IViewHelper_INTERFACE_DEFINED__ +#define __IViewHelper_INTERFACE_DEFINED__ + +/* interface IViewHelper */ +/* [unique][helpstring][nonextensible][uuid][object] */ + + +EXTERN_C const IID IID_IViewHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E85CCEF5-AAAA-47f0-B5E3-61F7AECDC4C1") + IViewHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetConnectedIDs( + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [out][in] */ __RPC__inout ULONG *pulCount, + /* [out][in] */ __RPC__inout ULONG *pulID, + /* [in] */ ULONG ulFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetActiveTopology( + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [in] */ ULONG ulSourceID, + /* [out][in] */ __RPC__inout ULONG *pulCount, + /* [out][in] */ __RPC__inout ULONG *pulTargetID) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetActiveTopology( + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [in] */ ULONG ulSourceID, + /* [in] */ ULONG ulCount, + /* [in] */ __RPC__in ULONG *pulTargetID) = 0; + + virtual HRESULT STDMETHODCALLTYPE Commit( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetConfiguration( + /* [in] */ __RPC__in_opt IStream *pIStream, + /* [out] */ __RPC__out ULONG *pulStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProceedOnNewConfiguration( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IViewHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IViewHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IViewHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IViewHelper * This); + + DECLSPEC_XFGVIRT(IViewHelper, GetConnectedIDs) + HRESULT ( STDMETHODCALLTYPE *GetConnectedIDs )( + __RPC__in IViewHelper * This, + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [out][in] */ __RPC__inout ULONG *pulCount, + /* [out][in] */ __RPC__inout ULONG *pulID, + /* [in] */ ULONG ulFlags); + + DECLSPEC_XFGVIRT(IViewHelper, GetActiveTopology) + HRESULT ( STDMETHODCALLTYPE *GetActiveTopology )( + __RPC__in IViewHelper * This, + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [in] */ ULONG ulSourceID, + /* [out][in] */ __RPC__inout ULONG *pulCount, + /* [out][in] */ __RPC__inout ULONG *pulTargetID); + + DECLSPEC_XFGVIRT(IViewHelper, SetActiveTopology) + HRESULT ( STDMETHODCALLTYPE *SetActiveTopology )( + __RPC__in IViewHelper * This, + /* [in] */ __RPC__in LPCWSTR wszAdaptorName, + /* [in] */ ULONG ulSourceID, + /* [in] */ ULONG ulCount, + /* [in] */ __RPC__in ULONG *pulTargetID); + + DECLSPEC_XFGVIRT(IViewHelper, Commit) + HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IViewHelper * This); + + DECLSPEC_XFGVIRT(IViewHelper, SetConfiguration) + HRESULT ( STDMETHODCALLTYPE *SetConfiguration )( + __RPC__in IViewHelper * This, + /* [in] */ __RPC__in_opt IStream *pIStream, + /* [out] */ __RPC__out ULONG *pulStatus); + + DECLSPEC_XFGVIRT(IViewHelper, GetProceedOnNewConfiguration) + HRESULT ( STDMETHODCALLTYPE *GetProceedOnNewConfiguration )( + __RPC__in IViewHelper * This); + + END_INTERFACE + } IViewHelperVtbl; + + interface IViewHelper + { + CONST_VTBL struct IViewHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IViewHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IViewHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IViewHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IViewHelper_GetConnectedIDs(This,wszAdaptorName,pulCount,pulID,ulFlags) \ + ( (This)->lpVtbl -> GetConnectedIDs(This,wszAdaptorName,pulCount,pulID,ulFlags) ) + +#define IViewHelper_GetActiveTopology(This,wszAdaptorName,ulSourceID,pulCount,pulTargetID) \ + ( (This)->lpVtbl -> GetActiveTopology(This,wszAdaptorName,ulSourceID,pulCount,pulTargetID) ) + +#define IViewHelper_SetActiveTopology(This,wszAdaptorName,ulSourceID,ulCount,pulTargetID) \ + ( (This)->lpVtbl -> SetActiveTopology(This,wszAdaptorName,ulSourceID,ulCount,pulTargetID) ) + +#define IViewHelper_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + +#define IViewHelper_SetConfiguration(This,pIStream,pulStatus) \ + ( (This)->lpVtbl -> SetConfiguration(This,pIStream,pulStatus) ) + +#define IViewHelper_GetProceedOnNewConfiguration(This) \ + ( (This)->lpVtbl -> GetProceedOnNewConfiguration(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IViewHelper_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_cloneviewhelper_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_cloneviewhelper_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cloneviewhelper_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cloneviewhelper.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cloneviewhelper.idl new file mode 100644 index 0000000000000000000000000000000000000000..66c857a7ac485254e529828a1578bf6d85c1870b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cloneviewhelper.idl @@ -0,0 +1,111 @@ +// CloneViewHelper.idl : IDL source for ICloneViewHelper +// +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote("#define GETCONNECTEDIDS_TARGET 0") +cpp_quote("#define GETCONNECTEDIDS_SOURCE 1") +cpp_quote("#define S_INIT 2") +cpp_quote("// 0 == TMM's passed in configuration was applied") +cpp_quote("#define SETCONFIGURATION_STATUS_APPLIED 0") +cpp_quote("// 1 == TMM's passed in configuration was applied, with additional proprietary IHV settings") +cpp_quote("#define SETCONFIGURATION_STATUS_ADDITIONAL 1") +cpp_quote("// 2 == TMM's passed in configuration was overridden and IHV's own settings were applied") +cpp_quote("#define SETCONFIGURATION_STATUS_OVERRIDDEN 2") +cpp_quote("") +cpp_quote("// Topology Data") +cpp_quote("") +cpp_quote("typedef struct tagSources") +cpp_quote("{") +cpp_quote(" ULONG sourceId;") +cpp_quote(" int numTargets;") +cpp_quote(" ULONG aTargets[1];") +cpp_quote("} Sources;") +cpp_quote("") +cpp_quote("typedef struct tagAdapter") +cpp_quote("{") +cpp_quote(" WCHAR AdapterName[128];") +cpp_quote(" int numSources;") +cpp_quote(" Sources sources[1];") +cpp_quote("} Adapter;") +cpp_quote("") +cpp_quote("typedef struct tagAdapters") +cpp_quote("{") +cpp_quote(" int numAdapters;") +cpp_quote(" Adapter adapter[1];") +cpp_quote("} Adapters;") +cpp_quote("") +cpp_quote("// Display Mode Data") +cpp_quote("") +cpp_quote("typedef struct tagDisplayMode") +cpp_quote("{") +cpp_quote(" WCHAR DeviceName[32];") +cpp_quote(" DEVMODEW devMode;") +cpp_quote("} DisplayMode;") +cpp_quote("") +cpp_quote("typedef struct tagDisplayModes") +cpp_quote("{") +cpp_quote(" int numDisplayModes;") +cpp_quote(" DisplayMode displayMode[1];") +cpp_quote("} DisplayModes;") +cpp_quote("") + +[ + object, + uuid(F6A3D4C4-5632-4D83-B0A1-FB88712B1EB7), + nonextensible, + helpstring("ICloneViewHelper Interface"), + pointer_default(unique) +] +interface ICloneViewHelper : IUnknown +{ + HRESULT GetConnectedIDs( [in] LPCWSTR wszAdaptorName, + [in,out] ULONG * pulCount, + [in,out] ULONG * pulID, + [in] ULONG ulFlags); + HRESULT GetActiveTopology([in] LPCWSTR wszAdaptorName, + [in] ULONG ulSourceID, + [in,out] ULONG * pulCount, + [in,out] ULONG * pulTargetID); + HRESULT SetActiveTopology([in] LPCWSTR wszAdaptorName, + [in] ULONG ulSourceID, + [in] ULONG ulCount, + [in] ULONG * pulTargetID); + HRESULT Commit( [in] BOOL fFinalCall); +}; + +[ + object, + uuid(E85CCEF5-AAAA-47f0-B5E3-61F7AECDC4C1), + nonextensible, + helpstring("IViewHelper Interface"), + pointer_default(unique) +] +interface IViewHelper : IUnknown +{ + HRESULT GetConnectedIDs( [in] LPCWSTR wszAdaptorName, + [in,out] ULONG * pulCount, + [in,out] ULONG * pulID, + [in] ULONG ulFlags); + HRESULT GetActiveTopology([in] LPCWSTR wszAdaptorName, + [in] ULONG ulSourceID, + [in,out] ULONG * pulCount, + [in,out] ULONG * pulTargetID); + HRESULT SetActiveTopology([in] LPCWSTR wszAdaptorName, + [in] ULONG ulSourceID, + [in] ULONG ulCount, + [in] ULONG * pulTargetID); + HRESULT Commit(); + HRESULT SetConfiguration( [in] IStream * pIStream, + [out] ULONG * pulStatus); + HRESULT GetProceedOnNewConfiguration(); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdbas.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdbas.idl new file mode 100644 index 0000000000000000000000000000000000000000..ee580e5931616802c66bcb9955e1e5ec52a828be --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdbas.idl @@ -0,0 +1,107 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdbas.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a63-2a1c-11ce-ade5-00aa0044773d) + + +interface ICommand : IUnknown { + + [local] + HRESULT Cancel( + ); + + [call_as(Cancel)] + HRESULT RemoteCancel( + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT Execute( + [in, annotation("_In_opt_")] IUnknown * pUnkOuter, + [in] REFIID riid, + [in, out, annotation("_Inout_opt_")] DBPARAMS * pParams, + [out, annotation("_Out_opt_")] DBROWCOUNT * pcRowsAffected, + [out, iid_is(riid), annotation("_Outptr_opt_")] IUnknown ** ppRowset + ); + +#ifndef NO_REMOTE + +#ifdef _WIN64 //Use casting by ULONG in attribute size_is under 64-bit environment. + [call_as(Execute)] + HRESULT RemoteExecute( + [in] IUnknown * pUnkOuter, + [in] REFIID riid, + [in] HACCESSOR hAccessor, + [in] DB_UPARAMS cParamSets, + [in, unique] GUID * pGuid, + [in] ULONG ulGuidOffset, + [in, unique] RMTPACK * pInputParams, + [in, out, unique] RMTPACK * pOutputParams, + [in] DBCOUNTITEM cBindings, + [in, unique, size_is((ULONG)cBindings)] DBBINDING * rgBindings, + [in, out, unique, size_is((ULONG)cBindings)] DBSTATUS * rgStatus, + [in, out, unique] DBROWCOUNT * pcRowsAffected, + [in, out, unique, iid_is(riid)] IUnknown ** ppRowset + ); + +#else //No casting by ULONG for 32-bit. + + [call_as(Execute)] + HRESULT RemoteExecute( + [in] IUnknown * pUnkOuter, + [in] REFIID riid, + [in] HACCESSOR hAccessor, + [in] DB_UPARAMS cParamSets, + [in, unique] GUID * pGuid, + [in] ULONG ulGuidOffset, + [in, unique] RMTPACK * pInputParams, + [in, out, unique] RMTPACK * pOutputParams, + [in] DBCOUNTITEM cBindings, + [in, unique, size_is(cBindings)] DBBINDING * rgBindings, + [in, out, unique, size_is(cBindings)] DBSTATUS * rgStatus, + [in, out, unique] DBROWCOUNT * pcRowsAffected, + [in, out, unique, iid_is(riid)] IUnknown ** ppRowset + ); +#endif + +#endif + + [local] + HRESULT GetDBSession( + [in] REFIID riid, + [out, iid_is(riid), annotation("_Outptr_result_maybenull_")] IUnknown ** ppSession + ); + + [call_as(GetDBSession)] + HRESULT RemoteGetDBSession( + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppSession, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdcst.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdcst.idl new file mode 100644 index 0000000000000000000000000000000000000000..252a71439e85da57921f60c91883bac0cc674bb6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdcst.idl @@ -0,0 +1,126 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdcst.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + +#if( OLEDBVER >= 0x0200 ) + REMOTED_INTERFACE(0c733a4e-2a1c-11ce-ade5-00aa0044773d) +#else + LOCAL_INTERFACE(0c733a4e-2a1c-11ce-ade5-00aa0044773d) +#endif + + +interface ICommandCost : IUnknown { + +typedef DWORD DBRESOURCEKIND; + +enum DBRESOURCEKINDENUM { + DBRESOURCE_INVALID = 0, + DBRESOURCE_TOTAL = 1, + DBRESOURCE_CPU = 2, + DBRESOURCE_MEMORY = 3, + DBRESOURCE_DISK = 4, + DBRESOURCE_NETWORK = 5, + DBRESOURCE_RESPONSE = 6, + DBRESOURCE_ROWS = 7, + DBRESOURCE_OTHER = 8, +}; + +typedef DWORD DBCOSTUNIT; + +enum DBCOSTUNITENUM { + DBUNIT_INVALID = 0x00000, + DBUNIT_WEIGHT = 0x00001, + DBUNIT_PERCENT = 0x00002, + DBUNIT_MAXIMUM = 0x00004, + DBUNIT_MINIMUM = 0x00008, + DBUNIT_MICRO_SECOND = 0x00010, + DBUNIT_MILLI_SECOND = 0x00020, + DBUNIT_SECOND = 0x00040, + DBUNIT_MINUTE = 0x00080, + DBUNIT_HOUR = 0x00100, + DBUNIT_BYTE = 0x00200, + DBUNIT_KILO_BYTE = 0x00400, + DBUNIT_MEGA_BYTE = 0x00800, + DBUNIT_GIGA_BYTE = 0x01000, + DBUNIT_NUM_MSGS = 0x02000, + DBUNIT_NUM_LOCKS = 0x04000, + DBUNIT_NUM_ROWS = 0x08000, + DBUNIT_OTHER = 0x10000, +}; + +typedef struct tagDBCOST { + DBRESOURCEKIND eKind; + DBCOSTUNIT dwUnits; + LONG lValue; +} DBCOST; + +typedef DWORD DBEXECLIMITS; + +enum DBEXECLIMITSENUM { + DBEXECLIMITS_ABORT = 1, + DBEXECLIMITS_STOP = 2, + DBEXECLIMITS_SUSPEND = 3 +}; + + HRESULT GetAccumulatedCost( + [in] LPCOLESTR pwszRowsetName, + [in, out] ULONG * pcCostLimits, + [out, size_is(,*pcCostLimits)] DBCOST ** prgCostLimits + ); + + HRESULT GetCostEstimate( + [in] LPCOLESTR pwszRowsetName, + [out] ULONG * pcCostEstimates, + [out] DBCOST * prgCostEstimates + ); + + HRESULT GetCostGoals( + [in] LPCOLESTR pwszRowsetName, + [out] ULONG * pcCostGoals, + [out] DBCOST * prgCostGoals + ); + + HRESULT GetCostLimits( + [in] LPCOLESTR pwszRowsetName, + [out] ULONG * pcCostLimits, + [out] DBCOST * prgCostLimits + ); + + HRESULT SetCostGoals( + [in] LPCOLESTR pwszRowsetName, + [in] ULONG cCostGoals, + [in, size_is(cCostGoals)] const DBCOST rgCostGoals[] + ); + + HRESULT SetCostLimits( + [in] LPCOLESTR pwszRowsetName, + [in] ULONG cCostLimits, + [in] DBCOST * prgCostLimits, + [in] DBEXECLIMITS dwExecutionFlags + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdpre.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdpre.idl new file mode 100644 index 0000000000000000000000000000000000000000..f95c5181ec1a76052d37e28eed8f714324d93c53 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdpre.idl @@ -0,0 +1,54 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdpre.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a26-2a1c-11ce-ade5-00aa0044773d) + + +interface ICommandPrepare : IUnknown { + + [local] + HRESULT Prepare( + [in] ULONG cExpectedRuns + ); + + [call_as(Prepare)] + HRESULT RemotePrepare( + [in] ULONG cExpectedRuns, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT Unprepare( + ); + + [call_as(Unprepare)] + HRESULT RemoteUnprepare( + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdprp.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdprp.idl new file mode 100644 index 0000000000000000000000000000000000000000..cb3cd81256afe89ac7292a01a7595f700128aa27 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdprp.idl @@ -0,0 +1,66 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdprp.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a79-2a1c-11ce-ade5-00aa0044773d) + + +interface ICommandProperties : IUnknown { + + [local] + HRESULT GetProperties( + [in] const ULONG cPropertyIDSets, + [in, size_is(cPropertyIDSets), annotation("_In_reads_opt_(cPropertyIDSets)")] const DBPROPIDSET rgPropertyIDSets[], + [in, out, annotation("_Out_")] ULONG * pcPropertySets, + [out, size_is(,*pcPropertySets), annotation("_Outptr_result_buffer_maybenull_(*pcPropertySets)")] DBPROPSET ** prgPropertySets + ); + + [call_as(GetProperties)] + HRESULT RemoteGetProperties( + [in] const ULONG cPropertyIDSets, + [in, unique, size_is(cPropertyIDSets)] const DBPROPIDSET *rgPropertyIDSets, + [in, out] ULONG * pcPropertySets, + [out, size_is(,*pcPropertySets)] DBPROPSET ** prgPropertySets, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT SetProperties( + [in] ULONG cPropertySets, + [in, out, unique, size_is(cPropertySets), annotation("_In_reads_(cPropertySets)")] DBPROPSET rgPropertySets[] + ); + + [call_as(SetProperties)] + HRESULT RemoteSetProperties( + [in] ULONG cPropertySets, + [in, unique, size_is(cPropertySets)] DBPROPSET * rgPropertySets, + [in] ULONG cTotalProps, + [out, size_is(cTotalProps)] DBPROPSTATUS * rgPropStatus, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdprst.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdprst.idl new file mode 100644 index 0000000000000000000000000000000000000000..bfe7c8a2301b7fdb4fc9d0e16fb09650feee6737 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdprst.idl @@ -0,0 +1,57 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdprst.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + +#if( OLEDBVER >= 0x0200 ) + REMOTED_INTERFACE(0c733aa7-2a1c-11ce-ade5-00aa0044773d) +#else + LOCAL_INTERFACE(0c733aa7-2a1c-11ce-ade5-00aa0044773d) +#endif + + +interface ICommandPersist : IUnknown { + + HRESULT DeleteCommand( + [in] DBID * pCommandID + ); + + + HRESULT GetCurrentCommand( + [out] DBID ** ppCommandID + ); + + HRESULT LoadCommand( + [in] DBID * pCommandID, + [in] DWORD dwFlags + ); + + HRESULT SaveCommand( + [in] DBID * pCommandID, + [in] DWORD dwFlags + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdstrm.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdstrm.idl new file mode 100644 index 0000000000000000000000000000000000000000..a2df9cb3f5ce110cc8759bccb13bbf02249585e4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdstrm.idl @@ -0,0 +1,48 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdstrm.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + LOCAL_INTERFACE(0c733abf-2a1c-11ce-ade5-00aa0044773d) + + +interface ICommandStream : IUnknown { + + [local] + HRESULT GetCommandStream( + [out, annotation("_Out_opt_")] IID * piid, + [in,out, annotation("_Inout_opt_")] GUID * pguidDialect, + [out, iid_is(*piid), annotation("_Outptr_")] IUnknown ** ppCommandStream + ); + + [local] + HRESULT SetCommandStream( + [in] REFIID riid, + [in] REFGUID rguidDialect, + [in, iid_is(riid), annotation("_In_opt_")] IUnknown * pCommandStream + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtre.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtre.idl new file mode 100644 index 0000000000000000000000000000000000000000..c66ea37f61a6fe3eacae63986f5c72d5d03768e1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtre.idl @@ -0,0 +1,298 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdtre.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + LOCAL_INTERFACE(0c733a87-2a1c-11ce-ade5-00aa0044773d) + + +interface ICommandTree : IUnknown { + +typedef DWORD DBCOMMANDREUSE; + +enum DBCOMMANDREUSEENUM { + DBCOMMANDREUSE_NONE = 0x00, + DBCOMMANDREUSE_PROPERTIES = 0x01, + DBCOMMANDREUSE_PARAMETERS = 0x02, +}; + +typedef DWORD DBVALUEKIND; + +enum DBVALUEKINDENUM { + DBVALUEKIND_BYGUID = 256, + DBVALUEKIND_COLDESC = DBVALUEKIND_BYGUID + 1, + DBVALUEKIND_ID = DBVALUEKIND_COLDESC + 1, + DBVALUEKIND_CONTENT = DBVALUEKIND_ID + 1, + DBVALUEKIND_CONTENTVECTOR = DBVALUEKIND_CONTENT + 1, + DBVALUEKIND_GROUPINFO = DBVALUEKIND_CONTENTVECTOR + 1, + DBVALUEKIND_PARAMETER = DBVALUEKIND_GROUPINFO + 1, + DBVALUEKIND_PROPERTY = DBVALUEKIND_PARAMETER + 1, + DBVALUEKIND_SETFUNC = DBVALUEKIND_PROPERTY + 1, + DBVALUEKIND_SORTINFO = DBVALUEKIND_SETFUNC + 1, + DBVALUEKIND_TEXT = DBVALUEKIND_SORTINFO + 1, + + DBVALUEKIND_COMMAND = DBVALUEKIND_TEXT + 1, + DBVALUEKIND_MONIKER = DBVALUEKIND_COMMAND + 1, + DBVALUEKIND_ROWSET = DBVALUEKIND_MONIKER + 1, + DBVALUEKIND_LIKE = DBVALUEKIND_ROWSET + 1, + DBVALUEKIND_CONTENTPROXIMITY= DBVALUEKIND_LIKE + 1, + DBVALUEKIND_CONTENTSCOPE = DBVALUEKIND_CONTENTPROXIMITY + 1, + DBVALUEKIND_CONTENTTABLE = DBVALUEKIND_CONTENTSCOPE + 1, + DBVALUEKIND_IDISPATCH = 9, + DBVALUEKIND_IUNKNOWN = 13, + + DBVALUEKIND_EMPTY = 0, + DBVALUEKIND_NULL = 1, + DBVALUEKIND_I2 = 2, + DBVALUEKIND_I4 = 3, + DBVALUEKIND_R4 = 4, + DBVALUEKIND_R8 = 5, + DBVALUEKIND_CY = 6, + DBVALUEKIND_DATE = 7, + DBVALUEKIND_BSTR = 8, + + DBVALUEKIND_ERROR = 10, + DBVALUEKIND_BOOL = 11, + DBVALUEKIND_VARIANT = 12, + + DBVALUEKIND_VECTOR = 0x1000, + DBVALUEKIND_ARRAY = 0x2000, + DBVALUEKIND_BYREF = 0x4000, + + DBVALUEKIND_I1 = 16, + DBVALUEKIND_UI1 = 17, + DBVALUEKIND_UI2 = 18, + DBVALUEKIND_UI4 = DBVALUEKIND_UI2 + 1, + DBVALUEKIND_I8 = DBVALUEKIND_UI4 + 1, + DBVALUEKIND_UI8 = DBVALUEKIND_I8 + 1, + DBVALUEKIND_GUID = 72, + + DBVALUEKIND_BYTES = 128, + DBVALUEKIND_STR = 129, + DBVALUEKIND_WSTR = 130, + DBVALUEKIND_NUMERIC = 131, + DBVALUEKIND_DBDATE = 133, + DBVALUEKIND_DBTIME = 134, + DBVALUEKIND_DBTIMESTAMP = 135, + DBVALUEKIND_PROBABILISTIC = 136, + DBVALUEKIND_RELEVANTDOCUMENT = 137, +}; + +typedef struct tagDBBYGUID { + [size_is((ULONG)cbInfo)] BYTE * pbInfo; + DBLENGTH cbInfo; + GUID guid; +} DBBYGUID; + +cpp_quote("#define GENERATE_METHOD_EXACT ( 0 )") +cpp_quote("#define GENERATE_METHOD_PREFIX ( 1 )") +cpp_quote("#define GENERATE_METHOD_INFLECT ( 2 )") + +typedef struct tagDBCONTENT { + LPOLESTR pwszPhrase; + DWORD dwGenerateMethod; + LONG lWeight; + LCID lcid; +} DBCONTENT; + +cpp_quote("#define SCOPE_FLAG_MASK ( 0x000000ff )") +cpp_quote("#define SCOPE_FLAG_INCLUDE ( 0x00000001 )") +cpp_quote("#define SCOPE_FLAG_DEEP ( 0x00000002 )") + +cpp_quote("#define SCOPE_TYPE_MASK ( 0xffffff00 )") +cpp_quote("#define SCOPE_TYPE_WINPATH ( 0x00000100 )") +cpp_quote("#define SCOPE_TYPE_VPATH ( 0x00000200 )") + +typedef struct tagDBCONTENTSCOPE { + DWORD dwFlags; + LPOLESTR * rgpwszTagName; + LPOLESTR pwszElementValue; +} DBCONTENTSCOPE; + +typedef struct tagDBCONTENTTABLE { + LPOLESTR pwszMachine; + LPOLESTR pwszCatalog; +} DBCONTENTTABLE; + +cpp_quote("#define PROPID_QUERY_RANKVECTOR ( 0x2 )") +cpp_quote("#define PROPID_QUERY_RANK ( 0x3 )") +cpp_quote("#define PROPID_QUERY_HITCOUNT ( 0x4 )") +cpp_quote("#define PROPID_QUERY_ALL ( 0x6 )") +cpp_quote("#define PROPID_STG_CONTENTS ( 0x13 )") + +cpp_quote("#define VECTOR_RANK_MIN ( 0 )") +cpp_quote("#define VECTOR_RANK_MAX ( 1 )") +cpp_quote("#define VECTOR_RANK_INNER ( 2 )") +cpp_quote("#define VECTOR_RANK_DICE ( 3 )") +cpp_quote("#define VECTOR_RANK_JACCARD ( 4 )") + +typedef struct tagDBCONTENTVECTOR { + LONG lWeight; + DWORD dwRankingMethod; +} DBCONTENTVECTOR; + +typedef struct tagDBGROUPINFO { + LCID lcid; +} DBGROUPINFO; + +typedef struct tagDBPARAMETER { + LPOLESTR pwszName; + ITypeInfo * pTypeInfo; + DB_NUMERIC * pNum; + DBLENGTH cbMaxLength; + DBPARAMFLAGS dwFlags; + DBTYPE wType; +} DBPARAMETER; + +cpp_quote("#define DBSETFUNC_NONE 0x0") +cpp_quote("#define DBSETFUNC_ALL 0x1") +cpp_quote("#define DBSETFUNC_DISTINCT 0x2") + +typedef struct tagDBSETFUNC { + DWORD dwSetQuantifier; +} DBSETFUNC; + +typedef struct tagDBSORTINFO { + BOOL fDesc; + LCID lcid; +} DBSORTINFO; + +typedef struct tagDBTEXT { + LPOLESTR pwszText; + ULONG ulErrorLocator; + ULONG ulTokenLength; + GUID guidDialect; +} DBTEXT; + +typedef struct tagDBLIKE { + LONG lWeight; + GUID guidDialect; +} DBLIKE; + +cpp_quote("#define PROXIMITY_UNIT_WORD ( 0 )") +cpp_quote("#define PROXIMITY_UNIT_SENTENCE ( 1 )") +cpp_quote("#define PROXIMITY_UNIT_PARAGRAPH ( 2 )") +cpp_quote("#define PROXIMITY_UNIT_CHAPTER ( 3 )") + +typedef struct tagDBCONTENTPROXIMITY { + DWORD dwProximityUnit; + ULONG ulProximityDistance; + LONG lWeight; +} DBCONTENTPROXIMITY; + +typedef struct tagDBPROBABILISTIC { + LONG lWeight; // Weight of this node in tree + float flK1; // K1 parameter in BM25 + float flK2; // K2 parameter in BM25 (must be 0) + float flK3; // K3 parameter in BM25 + float flB; // b parameter in BM25 +} DBPROBABILISTIC; + +typedef struct tagDBRELEVANTDOCUMENT { + LONG lWeight; // Weight of this node in the tree + VARIANT vDocument; // Relevant document +} DBRELEVANTDOCUMENT; + +typedef struct tagDBCOMMANDTREE { + DBCOMMANDOP op; + WORD wKind; + struct tagDBCOMMANDTREE * pctFirstChild; + struct tagDBCOMMANDTREE * pctNextSibling; + [switch_type(WORD),switch_is(wKind)] union { + [case(DBVALUEKIND_I8)] __int64 llValue; + [case(DBVALUEKIND_UI8)] unsigned __int64 ullValue; + [case(DBVALUEKIND_BOOL)] BOOL fValue; + [case(DBVALUEKIND_UI1)] unsigned char uchValue; + [case(DBVALUEKIND_I1)] signed char schValue; + [case(DBVALUEKIND_UI2)] unsigned short usValue; + [case(DBVALUEKIND_I2)] short sValue; + [case(DBVALUEKIND_WSTR)] LPOLESTR pwszValue; + [case(DBVALUEKIND_I4)] LONG lValue; + [case(DBVALUEKIND_UI4)] ULONG ulValue; + [case(DBVALUEKIND_R4)] float flValue; + [case(DBVALUEKIND_R8)] double dblValue; + [case(DBVALUEKIND_CY)] CY cyValue; + [case(DBVALUEKIND_DATE)] DATE dateValue; + [case(DBVALUEKIND_DBDATE)] DBDATE dbdateValue; + [case(DBVALUEKIND_DBTIME)] DBTIME dbtimeValue; + [case(DBVALUEKIND_ERROR)] SCODE scodeValue; + [case(DBVALUEKIND_BSTR)] BSTR * pbstrValue; + [case(DBVALUEKIND_COMMAND)] ICommand * pCommand; + [case(DBVALUEKIND_IDISPATCH)] IDispatch * pDispatch; + [case(DBVALUEKIND_MONIKER)] IMoniker * pMoniker; + [case(DBVALUEKIND_ROWSET)] IRowset * pRowset; + [case(DBVALUEKIND_IUNKNOWN)] IUnknown * pUnknown; + [case(DBVALUEKIND_BYGUID)] DBBYGUID * pdbbygdValue; + [case(DBVALUEKIND_COLDESC)] DBCOLUMNDESC * pcoldescValue; + [case(DBVALUEKIND_ID)] DBID * pdbidValue; + [case(DBVALUEKIND_LIKE)] DBLIKE * pdblikeValue; + [case(DBVALUEKIND_CONTENT)] DBCONTENT * pdbcntntValue; + [case(DBVALUEKIND_CONTENTSCOPE)] DBCONTENTSCOPE * pdbcntntscpValue; + [case(DBVALUEKIND_CONTENTTABLE)] DBCONTENTTABLE * pdbcntnttblValue; + [case(DBVALUEKIND_CONTENTVECTOR)] DBCONTENTVECTOR * pdbcntntvcValue; + [case(DBVALUEKIND_CONTENTPROXIMITY)] DBCONTENTPROXIMITY * pdbcntntproxValue; + [case(DBVALUEKIND_GROUPINFO)] DBGROUPINFO * pdbgrpinfValue; + [case(DBVALUEKIND_PARAMETER)] DBPARAMETER * pdbparamValue; + [case(DBVALUEKIND_PROPERTY)] DBPROPSET * pdbpropValue; + [case(DBVALUEKIND_SETFUNC)] DBSETFUNC * pdbstfncValue; + [case(DBVALUEKIND_SORTINFO)] DBSORTINFO * pdbsrtinfValue; + [case(DBVALUEKIND_TEXT)] DBTEXT * pdbtxtValue; + [case(DBVALUEKIND_VECTOR)] DBVECTOR * pdbvectorValue; + [case(DBVALUEKIND_ARRAY)] SAFEARRAY * parrayValue; + [case(DBVALUEKIND_VARIANT)] VARIANT * pvarValue; + [case(DBVALUEKIND_GUID)] GUID * pGuid; + [case(DBVALUEKIND_BYTES)] BYTE * pbValue; + [case(DBVALUEKIND_STR)] char * pzValue; + [case(DBVALUEKIND_NUMERIC)] DB_NUMERIC * pdbnValue; + [case(DBVALUEKIND_DBTIMESTAMP)] DBTIMESTAMP * pdbtsValue; + [case(DBVALUEKIND_BYREF)] void * pvValue; + [case(DBVALUEKIND_PROBABILISTIC)] DBPROBABILISTIC * pdbprobValue; + [case(DBVALUEKIND_RELEVANTDOCUMENT)] DBRELEVANTDOCUMENT * pdbreldocValue; + } value; + HRESULT hrError; +} DBCOMMANDTREE; + + HRESULT FindErrorNodes( + [in] const DBCOMMANDTREE * pRoot, + [out] ULONG * pcErrorNodes, + [out] DBCOMMANDTREE *** prgErrorNodes + ); + + HRESULT FreeCommandTree( + [in] DBCOMMANDTREE ** ppRoot + ); + + HRESULT GetCommandTree( + [out] DBCOMMANDTREE ** ppRoot + ); + + HRESULT SetCommandTree( + [in] DBCOMMANDTREE ** ppRoot, + [in] DBCOMMANDREUSE dwCommandReuse, + [in] BOOL fCopy + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtree.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtree.h new file mode 100644 index 0000000000000000000000000000000000000000..3f0e7bb4bab8cf767e181cdd5dba438da821387b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtree.h @@ -0,0 +1,934 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __cmdtree_h__ +#define __cmdtree_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICommandTree_FWD_DEFINED__ +#define __ICommandTree_FWD_DEFINED__ +typedef interface ICommandTree ICommandTree; + +#endif /* __ICommandTree_FWD_DEFINED__ */ + + +#ifndef __IQuery_FWD_DEFINED__ +#define __IQuery_FWD_DEFINED__ +typedef interface IQuery IQuery; + +#endif /* __IQuery_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oledb.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_cmdtree_0000_0000 */ +/* [local] */ + +//+--------------------------------------------------------------------------- +// +// Microsoft OLE DB +// Copyright (C) Microsoft Corporation, 1994 - 1999. +// +//---------------------------------------------------------------------------- + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if defined(_WIN64) || defined(_ARM_) +#include // 8-byte structure packing +#else +#include // 2-byte structure packing +#endif + + + +extern RPC_IF_HANDLE __MIDL_itf_cmdtree_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cmdtree_0000_0000_v0_0_s_ifspec; + +#ifndef __CommandTreeStructureDefinitions_INTERFACE_DEFINED__ +#define __CommandTreeStructureDefinitions_INTERFACE_DEFINED__ + +/* interface CommandTreeStructureDefinitions */ +/* [unique][uuid] */ + +typedef WORD DBCOMMANDOP; + + +enum DBCOMMANDOPENUM + { + DBOP_scalar_constant = 0, + DBOP_DEFAULT = ( DBOP_scalar_constant + 1 ) , + DBOP_NULL = ( DBOP_DEFAULT + 1 ) , + DBOP_bookmark_name = ( DBOP_NULL + 1 ) , + DBOP_catalog_name = ( DBOP_bookmark_name + 1 ) , + DBOP_column_name = ( DBOP_catalog_name + 1 ) , + DBOP_schema_name = ( DBOP_column_name + 1 ) , + DBOP_outall_name = ( DBOP_schema_name + 1 ) , + DBOP_qualifier_name = ( DBOP_outall_name + 1 ) , + DBOP_qualified_column_name = ( DBOP_qualifier_name + 1 ) , + DBOP_table_name = ( DBOP_qualified_column_name + 1 ) , + DBOP_nested_table_name = ( DBOP_table_name + 1 ) , + DBOP_nested_column_name = ( DBOP_nested_table_name + 1 ) , + DBOP_row = ( DBOP_nested_column_name + 1 ) , + DBOP_table = ( DBOP_row + 1 ) , + DBOP_sort = ( DBOP_table + 1 ) , + DBOP_distinct = ( DBOP_sort + 1 ) , + DBOP_distinct_order_preserving = ( DBOP_distinct + 1 ) , + DBOP_alias = ( DBOP_distinct_order_preserving + 1 ) , + DBOP_cross_join = ( DBOP_alias + 1 ) , + DBOP_union_join = ( DBOP_cross_join + 1 ) , + DBOP_inner_join = ( DBOP_union_join + 1 ) , + DBOP_left_semi_join = ( DBOP_inner_join + 1 ) , + DBOP_right_semi_join = ( DBOP_left_semi_join + 1 ) , + DBOP_left_anti_semi_join = ( DBOP_right_semi_join + 1 ) , + DBOP_right_anti_semi_join = ( DBOP_left_anti_semi_join + 1 ) , + DBOP_left_outer_join = ( DBOP_right_anti_semi_join + 1 ) , + DBOP_right_outer_join = ( DBOP_left_outer_join + 1 ) , + DBOP_full_outer_join = ( DBOP_right_outer_join + 1 ) , + DBOP_natural_join = ( DBOP_full_outer_join + 1 ) , + DBOP_natural_left_outer_join = ( DBOP_natural_join + 1 ) , + DBOP_natural_right_outer_join = ( DBOP_natural_left_outer_join + 1 ) , + DBOP_natural_full_outer_join = ( DBOP_natural_right_outer_join + 1 ) , + DBOP_set_intersection = ( DBOP_natural_full_outer_join + 1 ) , + DBOP_set_union = ( DBOP_set_intersection + 1 ) , + DBOP_set_left_difference = ( DBOP_set_union + 1 ) , + DBOP_set_right_difference = ( DBOP_set_left_difference + 1 ) , + DBOP_set_anti_difference = ( DBOP_set_right_difference + 1 ) , + DBOP_bag_intersection = ( DBOP_set_anti_difference + 1 ) , + DBOP_bag_union = ( DBOP_bag_intersection + 1 ) , + DBOP_bag_left_difference = ( DBOP_bag_union + 1 ) , + DBOP_bag_right_difference = ( DBOP_bag_left_difference + 1 ) , + DBOP_bag_anti_difference = ( DBOP_bag_right_difference + 1 ) , + DBOP_division = ( DBOP_bag_anti_difference + 1 ) , + DBOP_relative_sampling = ( DBOP_division + 1 ) , + DBOP_absolute_sampling = ( DBOP_relative_sampling + 1 ) , + DBOP_transitive_closure = ( DBOP_absolute_sampling + 1 ) , + DBOP_recursive_union = ( DBOP_transitive_closure + 1 ) , + DBOP_aggregate = ( DBOP_recursive_union + 1 ) , + DBOP_remote_table = ( DBOP_aggregate + 1 ) , + DBOP_select = ( DBOP_remote_table + 1 ) , + DBOP_order_preserving_select = ( DBOP_select + 1 ) , + DBOP_project = ( DBOP_order_preserving_select + 1 ) , + DBOP_project_order_preserving = ( DBOP_project + 1 ) , + DBOP_top = ( DBOP_project_order_preserving + 1 ) , + DBOP_top_percent = ( DBOP_top + 1 ) , + DBOP_top_plus_ties = ( DBOP_top_percent + 1 ) , + DBOP_top_percent_plus_ties = ( DBOP_top_plus_ties + 1 ) , + DBOP_rank = ( DBOP_top_percent_plus_ties + 1 ) , + DBOP_rank_ties_equally = ( DBOP_rank + 1 ) , + DBOP_rank_ties_equally_and_skip = ( DBOP_rank_ties_equally + 1 ) , + DBOP_navigate = ( DBOP_rank_ties_equally_and_skip + 1 ) , + DBOP_nesting = ( DBOP_navigate + 1 ) , + DBOP_unnesting = ( DBOP_nesting + 1 ) , + DBOP_nested_apply = ( DBOP_unnesting + 1 ) , + DBOP_cross_tab = ( DBOP_nested_apply + 1 ) , + DBOP_is_NULL = ( DBOP_cross_tab + 1 ) , + DBOP_is_NOT_NULL = ( DBOP_is_NULL + 1 ) , + DBOP_equal = ( DBOP_is_NOT_NULL + 1 ) , + DBOP_not_equal = ( DBOP_equal + 1 ) , + DBOP_less = ( DBOP_not_equal + 1 ) , + DBOP_less_equal = ( DBOP_less + 1 ) , + DBOP_greater = ( DBOP_less_equal + 1 ) , + DBOP_greater_equal = ( DBOP_greater + 1 ) , + DBOP_equal_all = ( DBOP_greater_equal + 1 ) , + DBOP_not_equal_all = ( DBOP_equal_all + 1 ) , + DBOP_less_all = ( DBOP_not_equal_all + 1 ) , + DBOP_less_equal_all = ( DBOP_less_all + 1 ) , + DBOP_greater_all = ( DBOP_less_equal_all + 1 ) , + DBOP_greater_equal_all = ( DBOP_greater_all + 1 ) , + DBOP_equal_any = ( DBOP_greater_equal_all + 1 ) , + DBOP_not_equal_any = ( DBOP_equal_any + 1 ) , + DBOP_less_any = ( DBOP_not_equal_any + 1 ) , + DBOP_less_equal_any = ( DBOP_less_any + 1 ) , + DBOP_greater_any = ( DBOP_less_equal_any + 1 ) , + DBOP_greater_equal_any = ( DBOP_greater_any + 1 ) , + DBOP_anybits = ( DBOP_greater_equal_any + 1 ) , + DBOP_allbits = ( DBOP_anybits + 1 ) , + DBOP_anybits_any = ( DBOP_allbits + 1 ) , + DBOP_allbits_any = ( DBOP_anybits_any + 1 ) , + DBOP_anybits_all = ( DBOP_allbits_any + 1 ) , + DBOP_allbits_all = ( DBOP_anybits_all + 1 ) , + DBOP_between = ( DBOP_allbits_all + 1 ) , + DBOP_between_unordered = ( DBOP_between + 1 ) , + DBOP_match = ( DBOP_between_unordered + 1 ) , + DBOP_match_unique = ( DBOP_match + 1 ) , + DBOP_match_partial = ( DBOP_match_unique + 1 ) , + DBOP_match_partial_unique = ( DBOP_match_partial + 1 ) , + DBOP_match_full = ( DBOP_match_partial_unique + 1 ) , + DBOP_match_full_unique = ( DBOP_match_full + 1 ) , + DBOP_scalar_parameter = ( DBOP_match_full_unique + 1 ) , + DBOP_scalar_function = ( DBOP_scalar_parameter + 1 ) , + DBOP_plus = ( DBOP_scalar_function + 1 ) , + DBOP_minus = ( DBOP_plus + 1 ) , + DBOP_times = ( DBOP_minus + 1 ) , + DBOP_over = ( DBOP_times + 1 ) , + DBOP_div = ( DBOP_over + 1 ) , + DBOP_modulo = ( DBOP_div + 1 ) , + DBOP_power = ( DBOP_modulo + 1 ) , + DBOP_like = ( DBOP_power + 1 ) , + DBOP_sounds_like = ( DBOP_like + 1 ) , + DBOP_like_any = ( DBOP_sounds_like + 1 ) , + DBOP_like_all = ( DBOP_like_any + 1 ) , + DBOP_is_INVALID = ( DBOP_like_all + 1 ) , + DBOP_is_TRUE = ( DBOP_is_INVALID + 1 ) , + DBOP_is_FALSE = ( DBOP_is_TRUE + 1 ) , + DBOP_and = ( DBOP_is_FALSE + 1 ) , + DBOP_or = ( DBOP_and + 1 ) , + DBOP_xor = ( DBOP_or + 1 ) , + DBOP_equivalent = ( DBOP_xor + 1 ) , + DBOP_not = ( DBOP_equivalent + 1 ) , + DBOP_implies = ( DBOP_not + 1 ) , + DBOP_overlaps = ( DBOP_implies + 1 ) , + DBOP_case_condition = ( DBOP_overlaps + 1 ) , + DBOP_case_value = ( DBOP_case_condition + 1 ) , + DBOP_nullif = ( DBOP_case_value + 1 ) , + DBOP_cast = ( DBOP_nullif + 1 ) , + DBOP_coalesce = ( DBOP_cast + 1 ) , + DBOP_position = ( DBOP_coalesce + 1 ) , + DBOP_extract = ( DBOP_position + 1 ) , + DBOP_char_length = ( DBOP_extract + 1 ) , + DBOP_octet_length = ( DBOP_char_length + 1 ) , + DBOP_bit_length = ( DBOP_octet_length + 1 ) , + DBOP_substring = ( DBOP_bit_length + 1 ) , + DBOP_upper = ( DBOP_substring + 1 ) , + DBOP_lower = ( DBOP_upper + 1 ) , + DBOP_trim = ( DBOP_lower + 1 ) , + DBOP_translate = ( DBOP_trim + 1 ) , + DBOP_convert = ( DBOP_translate + 1 ) , + DBOP_string_concat = ( DBOP_convert + 1 ) , + DBOP_current_date = ( DBOP_string_concat + 1 ) , + DBOP_current_time = ( DBOP_current_date + 1 ) , + DBOP_current_timestamp = ( DBOP_current_time + 1 ) , + DBOP_content_select = ( DBOP_current_timestamp + 1 ) , + DBOP_content = ( DBOP_content_select + 1 ) , + DBOP_content_freetext = ( DBOP_content + 1 ) , + DBOP_content_proximity = ( DBOP_content_freetext + 1 ) , + DBOP_content_vector_or = ( DBOP_content_proximity + 1 ) , + DBOP_delete = ( DBOP_content_vector_or + 1 ) , + DBOP_update = ( DBOP_delete + 1 ) , + DBOP_insert = ( DBOP_update + 1 ) , + DBOP_min = ( DBOP_insert + 1 ) , + DBOP_max = ( DBOP_min + 1 ) , + DBOP_count = ( DBOP_max + 1 ) , + DBOP_sum = ( DBOP_count + 1 ) , + DBOP_avg = ( DBOP_sum + 1 ) , + DBOP_any_sample = ( DBOP_avg + 1 ) , + DBOP_stddev = ( DBOP_any_sample + 1 ) , + DBOP_stddev_pop = ( DBOP_stddev + 1 ) , + DBOP_var = ( DBOP_stddev_pop + 1 ) , + DBOP_var_pop = ( DBOP_var + 1 ) , + DBOP_first = ( DBOP_var_pop + 1 ) , + DBOP_last = ( DBOP_first + 1 ) , + DBOP_in = ( DBOP_last + 1 ) , + DBOP_exists = ( DBOP_in + 1 ) , + DBOP_unique = ( DBOP_exists + 1 ) , + DBOP_subset = ( DBOP_unique + 1 ) , + DBOP_proper_subset = ( DBOP_subset + 1 ) , + DBOP_superset = ( DBOP_proper_subset + 1 ) , + DBOP_proper_superset = ( DBOP_superset + 1 ) , + DBOP_disjoint = ( DBOP_proper_superset + 1 ) , + DBOP_pass_through = ( DBOP_disjoint + 1 ) , + DBOP_defined_by_GUID = ( DBOP_pass_through + 1 ) , + DBOP_text_command = ( DBOP_defined_by_GUID + 1 ) , + DBOP_SQL_select = ( DBOP_text_command + 1 ) , + DBOP_prior_command_tree = ( DBOP_SQL_select + 1 ) , + DBOP_add_columns = ( DBOP_prior_command_tree + 1 ) , + DBOP_column_list_anchor = ( DBOP_add_columns + 1 ) , + DBOP_column_list_element = ( DBOP_column_list_anchor + 1 ) , + DBOP_command_list_anchor = ( DBOP_column_list_element + 1 ) , + DBOP_command_list_element = ( DBOP_command_list_anchor + 1 ) , + DBOP_from_list_anchor = ( DBOP_command_list_element + 1 ) , + DBOP_from_list_element = ( DBOP_from_list_anchor + 1 ) , + DBOP_project_list_anchor = ( DBOP_from_list_element + 1 ) , + DBOP_project_list_element = ( DBOP_project_list_anchor + 1 ) , + DBOP_row_list_anchor = ( DBOP_project_list_element + 1 ) , + DBOP_row_list_element = ( DBOP_row_list_anchor + 1 ) , + DBOP_scalar_list_anchor = ( DBOP_row_list_element + 1 ) , + DBOP_scalar_list_element = ( DBOP_scalar_list_anchor + 1 ) , + DBOP_set_list_anchor = ( DBOP_scalar_list_element + 1 ) , + DBOP_set_list_element = ( DBOP_set_list_anchor + 1 ) , + DBOP_sort_list_anchor = ( DBOP_set_list_element + 1 ) , + DBOP_sort_list_element = ( DBOP_sort_list_anchor + 1 ) , + DBOP_alter_character_set = ( DBOP_sort_list_element + 1 ) , + DBOP_alter_collation = ( DBOP_alter_character_set + 1 ) , + DBOP_alter_domain = ( DBOP_alter_collation + 1 ) , + DBOP_alter_index = ( DBOP_alter_domain + 1 ) , + DBOP_alter_procedure = ( DBOP_alter_index + 1 ) , + DBOP_alter_schema = ( DBOP_alter_procedure + 1 ) , + DBOP_alter_table = ( DBOP_alter_schema + 1 ) , + DBOP_alter_trigger = ( DBOP_alter_table + 1 ) , + DBOP_alter_view = ( DBOP_alter_trigger + 1 ) , + DBOP_coldef_list_anchor = ( DBOP_alter_view + 1 ) , + DBOP_coldef_list_element = ( DBOP_coldef_list_anchor + 1 ) , + DBOP_create_assertion = ( DBOP_coldef_list_element + 1 ) , + DBOP_create_character_set = ( DBOP_create_assertion + 1 ) , + DBOP_create_collation = ( DBOP_create_character_set + 1 ) , + DBOP_create_domain = ( DBOP_create_collation + 1 ) , + DBOP_create_index = ( DBOP_create_domain + 1 ) , + DBOP_create_procedure = ( DBOP_create_index + 1 ) , + DBOP_create_schema = ( DBOP_create_procedure + 1 ) , + DBOP_create_synonym = ( DBOP_create_schema + 1 ) , + DBOP_create_table = ( DBOP_create_synonym + 1 ) , + DBOP_create_temporary_table = ( DBOP_create_table + 1 ) , + DBOP_create_translation = ( DBOP_create_temporary_table + 1 ) , + DBOP_create_trigger = ( DBOP_create_translation + 1 ) , + DBOP_create_view = ( DBOP_create_trigger + 1 ) , + DBOP_drop_assertion = ( DBOP_create_view + 1 ) , + DBOP_drop_character_set = ( DBOP_drop_assertion + 1 ) , + DBOP_drop_collation = ( DBOP_drop_character_set + 1 ) , + DBOP_drop_domain = ( DBOP_drop_collation + 1 ) , + DBOP_drop_index = ( DBOP_drop_domain + 1 ) , + DBOP_drop_procedure = ( DBOP_drop_index + 1 ) , + DBOP_drop_schema = ( DBOP_drop_procedure + 1 ) , + DBOP_drop_synonym = ( DBOP_drop_schema + 1 ) , + DBOP_drop_table = ( DBOP_drop_synonym + 1 ) , + DBOP_drop_translation = ( DBOP_drop_table + 1 ) , + DBOP_drop_trigger = ( DBOP_drop_translation + 1 ) , + DBOP_drop_view = ( DBOP_drop_trigger + 1 ) , + DBOP_foreign_key = ( DBOP_drop_view + 1 ) , + DBOP_grant_privileges = ( DBOP_foreign_key + 1 ) , + DBOP_index_list_anchor = ( DBOP_grant_privileges + 1 ) , + DBOP_index_list_element = ( DBOP_index_list_anchor + 1 ) , + DBOP_primary_key = ( DBOP_index_list_element + 1 ) , + DBOP_property_list_anchor = ( DBOP_primary_key + 1 ) , + DBOP_property_list_element = ( DBOP_property_list_anchor + 1 ) , + DBOP_referenced_table = ( DBOP_property_list_element + 1 ) , + DBOP_rename_object = ( DBOP_referenced_table + 1 ) , + DBOP_revoke_privileges = ( DBOP_rename_object + 1 ) , + DBOP_schema_authorization = ( DBOP_revoke_privileges + 1 ) , + DBOP_unique_key = ( DBOP_schema_authorization + 1 ) , + DBOP_scope_list_anchor = ( DBOP_unique_key + 1 ) , + DBOP_scope_list_element = ( DBOP_scope_list_anchor + 1 ) , + DBOP_content_table = ( DBOP_scope_list_element + 1 ) + } ; +#ifdef DBINITCONSTANTS +extern const OLEDBDECLSPEC GUID DBGUID_LIKE_SQL = {0xc8b521f6,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}}; +extern const OLEDBDECLSPEC GUID DBGUID_LIKE_DOS = {0xc8b521f7,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}}; +extern const OLEDBDECLSPEC GUID DBGUID_LIKE_OFS = {0xc8b521f8,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}}; +extern const OLEDBDECLSPEC GUID DBGUID_LIKE_MAPI = {0xc8b521f9,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}}; +#else // !DBINITCONSTANTS +extern const GUID DBGUID_LIKE_SQL; +extern const GUID DBGUID_LIKE_DOS; +extern const GUID DBGUID_LIKE_OFS; +extern const GUID DBGUID_LIKE_MAPI; +#endif // DBINITCONSTANTS + + +extern RPC_IF_HANDLE CommandTreeStructureDefinitions_v0_0_c_ifspec; +extern RPC_IF_HANDLE CommandTreeStructureDefinitions_v0_0_s_ifspec; +#endif /* __CommandTreeStructureDefinitions_INTERFACE_DEFINED__ */ + +/* interface __MIDL_itf_cmdtree_0000_0001 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(pop) +#pragma warning(pop) +#pragma region Desktop Family +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_cmdtree_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cmdtree_0000_0001_v0_0_s_ifspec; + +#ifndef __ICommandTree_INTERFACE_DEFINED__ +#define __ICommandTree_INTERFACE_DEFINED__ + +/* interface ICommandTree */ +/* [unique][uuid][object][local] */ + +typedef DWORD DBCOMMANDREUSE; + + +enum DBCOMMANDREUSEENUM + { + DBCOMMANDREUSE_NONE = 0, + DBCOMMANDREUSE_PROPERTIES = 0x1, + DBCOMMANDREUSE_PARAMETERS = 0x2 + } ; +typedef DWORD DBVALUEKIND; + + +enum DBVALUEKINDENUM + { + DBVALUEKIND_BYGUID = 256, + DBVALUEKIND_COLDESC = ( DBVALUEKIND_BYGUID + 1 ) , + DBVALUEKIND_ID = ( DBVALUEKIND_COLDESC + 1 ) , + DBVALUEKIND_CONTENT = ( DBVALUEKIND_ID + 1 ) , + DBVALUEKIND_CONTENTVECTOR = ( DBVALUEKIND_CONTENT + 1 ) , + DBVALUEKIND_GROUPINFO = ( DBVALUEKIND_CONTENTVECTOR + 1 ) , + DBVALUEKIND_PARAMETER = ( DBVALUEKIND_GROUPINFO + 1 ) , + DBVALUEKIND_PROPERTY = ( DBVALUEKIND_PARAMETER + 1 ) , + DBVALUEKIND_SETFUNC = ( DBVALUEKIND_PROPERTY + 1 ) , + DBVALUEKIND_SORTINFO = ( DBVALUEKIND_SETFUNC + 1 ) , + DBVALUEKIND_TEXT = ( DBVALUEKIND_SORTINFO + 1 ) , + DBVALUEKIND_COMMAND = ( DBVALUEKIND_TEXT + 1 ) , + DBVALUEKIND_MONIKER = ( DBVALUEKIND_COMMAND + 1 ) , + DBVALUEKIND_ROWSET = ( DBVALUEKIND_MONIKER + 1 ) , + DBVALUEKIND_LIKE = ( DBVALUEKIND_ROWSET + 1 ) , + DBVALUEKIND_CONTENTPROXIMITY = ( DBVALUEKIND_LIKE + 1 ) , + DBVALUEKIND_CONTENTSCOPE = ( DBVALUEKIND_CONTENTPROXIMITY + 1 ) , + DBVALUEKIND_CONTENTTABLE = ( DBVALUEKIND_CONTENTSCOPE + 1 ) , + DBVALUEKIND_IDISPATCH = 9, + DBVALUEKIND_IUNKNOWN = 13, + DBVALUEKIND_EMPTY = 0, + DBVALUEKIND_NULL = 1, + DBVALUEKIND_I2 = 2, + DBVALUEKIND_I4 = 3, + DBVALUEKIND_R4 = 4, + DBVALUEKIND_R8 = 5, + DBVALUEKIND_CY = 6, + DBVALUEKIND_DATE = 7, + DBVALUEKIND_BSTR = 8, + DBVALUEKIND_ERROR = 10, + DBVALUEKIND_BOOL = 11, + DBVALUEKIND_VARIANT = 12, + DBVALUEKIND_VECTOR = 0x1000, + DBVALUEKIND_ARRAY = 0x2000, + DBVALUEKIND_BYREF = 0x4000, + DBVALUEKIND_I1 = 16, + DBVALUEKIND_UI1 = 17, + DBVALUEKIND_UI2 = 18, + DBVALUEKIND_UI4 = ( DBVALUEKIND_UI2 + 1 ) , + DBVALUEKIND_I8 = ( DBVALUEKIND_UI4 + 1 ) , + DBVALUEKIND_UI8 = ( DBVALUEKIND_I8 + 1 ) , + DBVALUEKIND_GUID = 72, + DBVALUEKIND_BYTES = 128, + DBVALUEKIND_STR = 129, + DBVALUEKIND_WSTR = 130, + DBVALUEKIND_NUMERIC = 131, + DBVALUEKIND_DBDATE = 133, + DBVALUEKIND_DBTIME = 134, + DBVALUEKIND_DBTIMESTAMP = 135, + DBVALUEKIND_PROBABILISTIC = 136, + DBVALUEKIND_RELEVANTDOCUMENT = 137 + } ; +typedef struct tagDBBYGUID + { + /* [size_is] */ BYTE *pbInfo; + DBLENGTH cbInfo; + GUID guid; + } DBBYGUID; + +#define GENERATE_METHOD_EXACT ( 0 ) +#define GENERATE_METHOD_PREFIX ( 1 ) +#define GENERATE_METHOD_INFLECT ( 2 ) +typedef struct tagDBCONTENT + { + LPOLESTR pwszPhrase; + DWORD dwGenerateMethod; + LONG lWeight; + LCID lcid; + } DBCONTENT; + +#define SCOPE_FLAG_MASK ( 0x000000ff ) +#define SCOPE_FLAG_INCLUDE ( 0x00000001 ) +#define SCOPE_FLAG_DEEP ( 0x00000002 ) +#define SCOPE_TYPE_MASK ( 0xffffff00 ) +#define SCOPE_TYPE_WINPATH ( 0x00000100 ) +#define SCOPE_TYPE_VPATH ( 0x00000200 ) +typedef struct tagDBCONTENTSCOPE + { + DWORD dwFlags; + LPOLESTR *rgpwszTagName; + LPOLESTR pwszElementValue; + } DBCONTENTSCOPE; + +typedef struct tagDBCONTENTTABLE + { + LPOLESTR pwszMachine; + LPOLESTR pwszCatalog; + } DBCONTENTTABLE; + +#define PROPID_QUERY_RANKVECTOR ( 0x2 ) +#define PROPID_QUERY_RANK ( 0x3 ) +#define PROPID_QUERY_HITCOUNT ( 0x4 ) +#define PROPID_QUERY_ALL ( 0x6 ) +#define PROPID_STG_CONTENTS ( 0x13 ) +#define VECTOR_RANK_MIN ( 0 ) +#define VECTOR_RANK_MAX ( 1 ) +#define VECTOR_RANK_INNER ( 2 ) +#define VECTOR_RANK_DICE ( 3 ) +#define VECTOR_RANK_JACCARD ( 4 ) +typedef struct tagDBCONTENTVECTOR + { + LONG lWeight; + DWORD dwRankingMethod; + } DBCONTENTVECTOR; + +typedef struct tagDBGROUPINFO + { + LCID lcid; + } DBGROUPINFO; + +typedef struct tagDBPARAMETER + { + LPOLESTR pwszName; + ITypeInfo *pTypeInfo; + DB_NUMERIC *pNum; + DBLENGTH cbMaxLength; + DBPARAMFLAGS dwFlags; + DBTYPE wType; + } DBPARAMETER; + +#define DBSETFUNC_NONE 0x0 +#define DBSETFUNC_ALL 0x1 +#define DBSETFUNC_DISTINCT 0x2 +typedef struct tagDBSETFUNC + { + DWORD dwSetQuantifier; + } DBSETFUNC; + +typedef struct tagDBSORTINFO + { + BOOL fDesc; + LCID lcid; + } DBSORTINFO; + +typedef struct tagDBTEXT + { + LPOLESTR pwszText; + ULONG ulErrorLocator; + ULONG ulTokenLength; + GUID guidDialect; + } DBTEXT; + +typedef struct tagDBLIKE + { + LONG lWeight; + GUID guidDialect; + } DBLIKE; + +#define PROXIMITY_UNIT_WORD ( 0 ) +#define PROXIMITY_UNIT_SENTENCE ( 1 ) +#define PROXIMITY_UNIT_PARAGRAPH ( 2 ) +#define PROXIMITY_UNIT_CHAPTER ( 3 ) +typedef struct tagDBCONTENTPROXIMITY + { + DWORD dwProximityUnit; + ULONG ulProximityDistance; + LONG lWeight; + } DBCONTENTPROXIMITY; + +typedef struct tagDBPROBABILISTIC + { + LONG lWeight; + float flK1; + float flK2; + float flK3; + float flB; + } DBPROBABILISTIC; + +typedef struct tagDBRELEVANTDOCUMENT + { + LONG lWeight; + VARIANT vDocument; + } DBRELEVANTDOCUMENT; + +typedef struct tagDBCOMMANDTREE + { + DBCOMMANDOP op; + WORD wKind; + struct tagDBCOMMANDTREE *pctFirstChild; + struct tagDBCOMMANDTREE *pctNextSibling; + /* [switch_is][switch_type] */ union + { + /* [case()] */ __int64 llValue; + /* [case()] */ unsigned __int64 ullValue; + /* [case()] */ BOOL fValue; + /* [case()] */ unsigned char uchValue; + /* [case()] */ signed char schValue; + /* [case()] */ unsigned short usValue; + /* [case()] */ short sValue; + /* [case()] */ LPOLESTR pwszValue; + /* [case()] */ LONG lValue; + /* [case()] */ ULONG ulValue; + /* [case()] */ float flValue; + /* [case()] */ double dblValue; + /* [case()] */ CY cyValue; + /* [case()] */ DATE dateValue; + /* [case()] */ DBDATE dbdateValue; + /* [case()] */ DBTIME dbtimeValue; + /* [case()] */ SCODE scodeValue; + /* [case()] */ BSTR *pbstrValue; + /* [case()] */ ICommand *pCommand; + /* [case()] */ IDispatch *pDispatch; + /* [case()] */ IMoniker *pMoniker; + /* [case()] */ IRowset *pRowset; + /* [case()] */ IUnknown *pUnknown; + /* [case()] */ DBBYGUID *pdbbygdValue; + /* [case()] */ DBCOLUMNDESC *pcoldescValue; + /* [case()] */ DBID *pdbidValue; + /* [case()] */ DBLIKE *pdblikeValue; + /* [case()] */ DBCONTENT *pdbcntntValue; + /* [case()] */ DBCONTENTSCOPE *pdbcntntscpValue; + /* [case()] */ DBCONTENTTABLE *pdbcntnttblValue; + /* [case()] */ DBCONTENTVECTOR *pdbcntntvcValue; + /* [case()] */ DBCONTENTPROXIMITY *pdbcntntproxValue; + /* [case()] */ DBGROUPINFO *pdbgrpinfValue; + /* [case()] */ DBPARAMETER *pdbparamValue; + /* [case()] */ DBPROPSET *pdbpropValue; + /* [case()] */ DBSETFUNC *pdbstfncValue; + /* [case()] */ DBSORTINFO *pdbsrtinfValue; + /* [case()] */ DBTEXT *pdbtxtValue; + /* [case()] */ DBVECTOR *pdbvectorValue; + /* [case()] */ SAFEARRAY *parrayValue; + /* [case()] */ VARIANT *pvarValue; + /* [case()] */ GUID *pGuid; + /* [case()] */ BYTE *pbValue; + /* [case()] */ char *pzValue; + /* [case()] */ DB_NUMERIC *pdbnValue; + /* [case()] */ DBTIMESTAMP *pdbtsValue; + /* [case()] */ void *pvValue; + /* [case()] */ DBPROBABILISTIC *pdbprobValue; + /* [case()] */ DBRELEVANTDOCUMENT *pdbreldocValue; + } value; + HRESULT hrError; + } DBCOMMANDTREE; + + +EXTERN_C const IID IID_ICommandTree; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0c733a87-2a1c-11ce-ade5-00aa0044773d") + ICommandTree : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FindErrorNodes( + /* [in] */ const DBCOMMANDTREE *pRoot, + /* [out] */ ULONG *pcErrorNodes, + /* [out] */ DBCOMMANDTREE ***prgErrorNodes) = 0; + + virtual HRESULT STDMETHODCALLTYPE FreeCommandTree( + /* [in] */ DBCOMMANDTREE **ppRoot) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCommandTree( + /* [out] */ DBCOMMANDTREE **ppRoot) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCommandTree( + /* [in] */ DBCOMMANDTREE **ppRoot, + /* [in] */ DBCOMMANDREUSE dwCommandReuse, + /* [in] */ BOOL fCopy) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICommandTreeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICommandTree * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICommandTree * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICommandTree * This); + + DECLSPEC_XFGVIRT(ICommandTree, FindErrorNodes) + HRESULT ( STDMETHODCALLTYPE *FindErrorNodes )( + ICommandTree * This, + /* [in] */ const DBCOMMANDTREE *pRoot, + /* [out] */ ULONG *pcErrorNodes, + /* [out] */ DBCOMMANDTREE ***prgErrorNodes); + + DECLSPEC_XFGVIRT(ICommandTree, FreeCommandTree) + HRESULT ( STDMETHODCALLTYPE *FreeCommandTree )( + ICommandTree * This, + /* [in] */ DBCOMMANDTREE **ppRoot); + + DECLSPEC_XFGVIRT(ICommandTree, GetCommandTree) + HRESULT ( STDMETHODCALLTYPE *GetCommandTree )( + ICommandTree * This, + /* [out] */ DBCOMMANDTREE **ppRoot); + + DECLSPEC_XFGVIRT(ICommandTree, SetCommandTree) + HRESULT ( STDMETHODCALLTYPE *SetCommandTree )( + ICommandTree * This, + /* [in] */ DBCOMMANDTREE **ppRoot, + /* [in] */ DBCOMMANDREUSE dwCommandReuse, + /* [in] */ BOOL fCopy); + + END_INTERFACE + } ICommandTreeVtbl; + + interface ICommandTree + { + CONST_VTBL struct ICommandTreeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICommandTree_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICommandTree_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICommandTree_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICommandTree_FindErrorNodes(This,pRoot,pcErrorNodes,prgErrorNodes) \ + ( (This)->lpVtbl -> FindErrorNodes(This,pRoot,pcErrorNodes,prgErrorNodes) ) + +#define ICommandTree_FreeCommandTree(This,ppRoot) \ + ( (This)->lpVtbl -> FreeCommandTree(This,ppRoot) ) + +#define ICommandTree_GetCommandTree(This,ppRoot) \ + ( (This)->lpVtbl -> GetCommandTree(This,ppRoot) ) + +#define ICommandTree_SetCommandTree(This,ppRoot,dwCommandReuse,fCopy) \ + ( (This)->lpVtbl -> SetCommandTree(This,ppRoot,dwCommandReuse,fCopy) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICommandTree_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_cmdtree_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_cmdtree_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cmdtree_0000_0002_v0_0_s_ifspec; + +#ifndef __IQuery_INTERFACE_DEFINED__ +#define __IQuery_INTERFACE_DEFINED__ + +/* interface IQuery */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IQuery; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0c733a51-2a1c-11ce-ade5-00aa0044773d") + IQuery : public ICommandTree + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPostProcessing( + /* [in] */ DBCOMMANDTREE **ppRoot, + /* [in] */ BOOL fCopy) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCardinalityEstimate( + /* [out] */ DBORDINAL *pulCardinality) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IQueryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IQuery * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IQuery * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IQuery * This); + + DECLSPEC_XFGVIRT(ICommandTree, FindErrorNodes) + HRESULT ( STDMETHODCALLTYPE *FindErrorNodes )( + IQuery * This, + /* [in] */ const DBCOMMANDTREE *pRoot, + /* [out] */ ULONG *pcErrorNodes, + /* [out] */ DBCOMMANDTREE ***prgErrorNodes); + + DECLSPEC_XFGVIRT(ICommandTree, FreeCommandTree) + HRESULT ( STDMETHODCALLTYPE *FreeCommandTree )( + IQuery * This, + /* [in] */ DBCOMMANDTREE **ppRoot); + + DECLSPEC_XFGVIRT(ICommandTree, GetCommandTree) + HRESULT ( STDMETHODCALLTYPE *GetCommandTree )( + IQuery * This, + /* [out] */ DBCOMMANDTREE **ppRoot); + + DECLSPEC_XFGVIRT(ICommandTree, SetCommandTree) + HRESULT ( STDMETHODCALLTYPE *SetCommandTree )( + IQuery * This, + /* [in] */ DBCOMMANDTREE **ppRoot, + /* [in] */ DBCOMMANDREUSE dwCommandReuse, + /* [in] */ BOOL fCopy); + + DECLSPEC_XFGVIRT(IQuery, AddPostProcessing) + HRESULT ( STDMETHODCALLTYPE *AddPostProcessing )( + IQuery * This, + /* [in] */ DBCOMMANDTREE **ppRoot, + /* [in] */ BOOL fCopy); + + DECLSPEC_XFGVIRT(IQuery, GetCardinalityEstimate) + HRESULT ( STDMETHODCALLTYPE *GetCardinalityEstimate )( + IQuery * This, + /* [out] */ DBORDINAL *pulCardinality); + + END_INTERFACE + } IQueryVtbl; + + interface IQuery + { + CONST_VTBL struct IQueryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IQuery_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IQuery_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IQuery_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IQuery_FindErrorNodes(This,pRoot,pcErrorNodes,prgErrorNodes) \ + ( (This)->lpVtbl -> FindErrorNodes(This,pRoot,pcErrorNodes,prgErrorNodes) ) + +#define IQuery_FreeCommandTree(This,ppRoot) \ + ( (This)->lpVtbl -> FreeCommandTree(This,ppRoot) ) + +#define IQuery_GetCommandTree(This,ppRoot) \ + ( (This)->lpVtbl -> GetCommandTree(This,ppRoot) ) + +#define IQuery_SetCommandTree(This,ppRoot,dwCommandReuse,fCopy) \ + ( (This)->lpVtbl -> SetCommandTree(This,ppRoot,dwCommandReuse,fCopy) ) + + +#define IQuery_AddPostProcessing(This,ppRoot,fCopy) \ + ( (This)->lpVtbl -> AddPostProcessing(This,ppRoot,fCopy) ) + +#define IQuery_GetCardinalityEstimate(This,pulCardinality) \ + ( (This)->lpVtbl -> GetCardinalityEstimate(This,pulCardinality) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IQuery_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_cmdtree_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#include // restore original structure packing +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_cmdtree_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cmdtree_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtree.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtree.idl new file mode 100644 index 0000000000000000000000000000000000000000..da464b0c2d6dff77e4f1c9674107cffa6af6fe69 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtree.idl @@ -0,0 +1,453 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdtree.idl +// +// Contents: OLE DB Command Tree +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("//+---------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft OLE DB") +cpp_quote("// Copyright (C) Microsoft Corporation, 1994 - 1999.") +cpp_quote("//") +cpp_quote("//----------------------------------------------------------------------------") +cpp_quote("") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#if defined(_WIN64) || defined(_ARM_)") +cpp_quote("#include // 8-byte structure packing") +cpp_quote("#else") +cpp_quote("#include // 2-byte structure packing") +cpp_quote("#endif") +cpp_quote("") + +import "oledb.idl"; + +[ + uuid(0c733aac-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] + +interface CommandTreeStructureDefinitions { + + // + // DBCOMMANDTREE related definitions + // + +typedef WORD DBCOMMANDOP; + +enum DBCOMMANDOPENUM { + DBOP_scalar_constant, + + DBOP_DEFAULT, + DBOP_NULL, + + DBOP_bookmark_name, + + DBOP_catalog_name, + DBOP_column_name, + + DBOP_schema_name, + + DBOP_outall_name, + + DBOP_qualifier_name, + + DBOP_qualified_column_name, + + DBOP_table_name, + + DBOP_nested_table_name, + + DBOP_nested_column_name, + + DBOP_row, + + DBOP_table, + + DBOP_sort, + + DBOP_distinct, + DBOP_distinct_order_preserving, + + DBOP_alias, + + DBOP_cross_join, + + DBOP_union_join, + + DBOP_inner_join, + DBOP_left_semi_join, + DBOP_right_semi_join, + DBOP_left_anti_semi_join, + DBOP_right_anti_semi_join, + DBOP_left_outer_join, + DBOP_right_outer_join, + DBOP_full_outer_join, + + DBOP_natural_join, + DBOP_natural_left_outer_join, + DBOP_natural_right_outer_join, + DBOP_natural_full_outer_join, + + DBOP_set_intersection, + DBOP_set_union, + DBOP_set_left_difference, + DBOP_set_right_difference, + DBOP_set_anti_difference, + + DBOP_bag_intersection, + DBOP_bag_union, + DBOP_bag_left_difference, + DBOP_bag_right_difference, + DBOP_bag_anti_difference, + + DBOP_division, + + DBOP_relative_sampling, + + DBOP_absolute_sampling, + + DBOP_transitive_closure, + + DBOP_recursive_union, + + DBOP_aggregate, + + DBOP_remote_table, + + DBOP_select, + DBOP_order_preserving_select, + + DBOP_project, + DBOP_project_order_preserving, + + DBOP_top, + DBOP_top_percent, + DBOP_top_plus_ties, + DBOP_top_percent_plus_ties, + + DBOP_rank, + DBOP_rank_ties_equally, + DBOP_rank_ties_equally_and_skip, + + DBOP_navigate, + + DBOP_nesting, + + DBOP_unnesting, + + DBOP_nested_apply, + + DBOP_cross_tab, + + DBOP_is_NULL, + DBOP_is_NOT_NULL, + + DBOP_equal, + DBOP_not_equal, + DBOP_less, + DBOP_less_equal, + DBOP_greater, + DBOP_greater_equal, + DBOP_equal_all, + DBOP_not_equal_all, + DBOP_less_all, + DBOP_less_equal_all, + DBOP_greater_all, + DBOP_greater_equal_all, + DBOP_equal_any, + DBOP_not_equal_any, + DBOP_less_any, + DBOP_less_equal_any, + DBOP_greater_any, + DBOP_greater_equal_any, + + DBOP_anybits, + DBOP_allbits, + DBOP_anybits_any, + DBOP_allbits_any, + DBOP_anybits_all, + DBOP_allbits_all, + + DBOP_between, + DBOP_between_unordered, + + DBOP_match, + DBOP_match_unique, + DBOP_match_partial, + DBOP_match_partial_unique, + DBOP_match_full, + DBOP_match_full_unique, + + DBOP_scalar_parameter, + + DBOP_scalar_function, + + DBOP_plus, + DBOP_minus, + DBOP_times, + DBOP_over, + DBOP_div, + DBOP_modulo, + DBOP_power, + + DBOP_like, + DBOP_sounds_like, + + DBOP_like_any, + DBOP_like_all, + + DBOP_is_INVALID, + DBOP_is_TRUE, + DBOP_is_FALSE, + + DBOP_and, + DBOP_or, + DBOP_xor, + DBOP_equivalent, + + DBOP_not, + + DBOP_implies, + + DBOP_overlaps, + DBOP_case_condition, + DBOP_case_value, + DBOP_nullif, + DBOP_cast, + DBOP_coalesce, + DBOP_position, + DBOP_extract, + DBOP_char_length, + DBOP_octet_length, + DBOP_bit_length, + DBOP_substring, + DBOP_upper, + DBOP_lower, + DBOP_trim, + DBOP_translate, + DBOP_convert, + DBOP_string_concat, + DBOP_current_date, + DBOP_current_time, + DBOP_current_timestamp, + + DBOP_content_select, + + DBOP_content, + DBOP_content_freetext, + + DBOP_content_proximity, + + DBOP_content_vector_or, + + DBOP_delete, + DBOP_update, + DBOP_insert, + + DBOP_min, + DBOP_max, + DBOP_count, + DBOP_sum, + DBOP_avg, + DBOP_any_sample, + DBOP_stddev, + DBOP_stddev_pop, + DBOP_var, + DBOP_var_pop, + DBOP_first, + DBOP_last, + + DBOP_in, + + DBOP_exists, + DBOP_unique, + + DBOP_subset, + DBOP_proper_subset, + DBOP_superset, + DBOP_proper_superset, + DBOP_disjoint, + + DBOP_pass_through, + + DBOP_defined_by_GUID, + + DBOP_text_command, + + DBOP_SQL_select, + + DBOP_prior_command_tree, + + DBOP_add_columns, + + DBOP_column_list_anchor, + DBOP_column_list_element, + + DBOP_command_list_anchor, + DBOP_command_list_element, + + DBOP_from_list_anchor, + DBOP_from_list_element, + + DBOP_project_list_anchor, + DBOP_project_list_element, + + DBOP_row_list_anchor, + DBOP_row_list_element, + + DBOP_scalar_list_anchor, + DBOP_scalar_list_element, + + DBOP_set_list_anchor, + DBOP_set_list_element, + + DBOP_sort_list_anchor, + DBOP_sort_list_element, + + DBOP_alter_character_set, + + DBOP_alter_collation, + + DBOP_alter_domain, + + DBOP_alter_index, + + DBOP_alter_procedure, + + DBOP_alter_schema, + + DBOP_alter_table, + + DBOP_alter_trigger, + + DBOP_alter_view, + + DBOP_coldef_list_anchor, + + DBOP_coldef_list_element, + + DBOP_create_assertion, + + DBOP_create_character_set, + + DBOP_create_collation, + + DBOP_create_domain, + + DBOP_create_index, + + DBOP_create_procedure, + + DBOP_create_schema, + + DBOP_create_synonym, + + DBOP_create_table, + + DBOP_create_temporary_table, + + DBOP_create_translation, + + DBOP_create_trigger, + + DBOP_create_view, + + DBOP_drop_assertion, + + DBOP_drop_character_set, + + DBOP_drop_collation, + + DBOP_drop_domain, + + DBOP_drop_index, + + DBOP_drop_procedure, + + DBOP_drop_schema, + + DBOP_drop_synonym, + + DBOP_drop_table, + + DBOP_drop_translation, + + DBOP_drop_trigger, + + DBOP_drop_view, + + DBOP_foreign_key, + + DBOP_grant_privileges, + + DBOP_index_list_anchor, + + DBOP_index_list_element, + + DBOP_primary_key, + + DBOP_property_list_anchor, + + DBOP_property_list_element, + + DBOP_referenced_table, + + DBOP_rename_object, + + DBOP_revoke_privileges, + + DBOP_schema_authorization, + +// PPP -- nice duplicate here +// DBOP_schema_name, + + DBOP_unique_key, + + DBOP_scope_list_anchor, + + DBOP_scope_list_element, + + DBOP_content_table, +}; + +cpp_quote("#ifdef DBINITCONSTANTS") + +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_LIKE_SQL = {0xc8b521f6,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_LIKE_DOS = {0xc8b521f7,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_LIKE_OFS = {0xc8b521f8,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_LIKE_MAPI = {0xc8b521f9,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") + +cpp_quote("#else // !DBINITCONSTANTS") + +cpp_quote("extern const GUID DBGUID_LIKE_SQL;") +cpp_quote("extern const GUID DBGUID_LIKE_DOS;") +cpp_quote("extern const GUID DBGUID_LIKE_OFS;") +cpp_quote("extern const GUID DBGUID_LIKE_MAPI;") + +cpp_quote("#endif // DBINITCONSTANTS") + + +} // ComandTreeStructureDefinitions + +#include "cmdtre.idl" // ICommandTree : IUnknown +#include "qrybas.idl" // IQuery : ICommandTree + +cpp_quote("#include // restore original structure packing") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtxt.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtxt.idl new file mode 100644 index 0000000000000000000000000000000000000000..b09d0fb1136785d2ead6474b000c9043e9406ec7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdtxt.idl @@ -0,0 +1,60 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdtxt.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a27-2a1c-11ce-ade5-00aa0044773d) + + +interface ICommandText : ICommand { + + [local] + HRESULT GetCommandText( + [in, out, annotation("_Inout_opt_")] GUID * pguidDialect, + [out, annotation("_Outptr_")] LPOLESTR * ppwszCommand + ); + + [call_as(GetCommandText)] + HRESULT RemoteGetCommandText( + [in, out, unique] GUID * pguidDialect, + [out] LPOLESTR * ppwszCommand, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT SetCommandText( + [in] REFGUID rguidDialect, + [in, unique, annotation("_In_opt_z_")] LPCOLESTR pwszCommand + ); + + [call_as(SetCommandText)] + HRESULT RemoteSetCommandText( + [in] REFGUID rguidDialect, + [in, unique] LPCOLESTR pwszCommand, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdval.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdval.idl new file mode 100644 index 0000000000000000000000000000000000000000..71824eb6f3793f580f4b60404194f05d7ef7083b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdval.idl @@ -0,0 +1,44 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdval.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + +#if( OLEDBVER >= 0x0200 ) + REMOTED_INTERFACE(0c733a18-2a1c-11ce-ade5-00aa0044773d) +#else + LOCAL_INTERFACE(0c733a18-2a1c-11ce-ade5-00aa0044773d) +#endif + + +interface ICommandValidate : IUnknown { + + HRESULT ValidateCompletely( + ); + + HRESULT ValidateSyntax( + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdwpr.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdwpr.idl new file mode 100644 index 0000000000000000000000000000000000000000..eeb8bee089b5c57ae33f34bd0047ec0445eec3d2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cmdwpr.idl @@ -0,0 +1,139 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cmdwpr.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a64-2a1c-11ce-ade5-00aa0044773d) + + +interface ICommandWithParameters : IUnknown { + +typedef struct tagDBPARAMBINDINFO { + LPOLESTR pwszDataSourceType; + LPOLESTR pwszName; + DBLENGTH ulParamSize; + DBPARAMFLAGS dwFlags; + BYTE bPrecision; + BYTE bScale; +} DBPARAMBINDINFO; + + [local] + HRESULT GetParameterInfo( + [in, out, annotation("_Out_")] DB_UPARAMS * pcParams, + [out, size_is(,*pcParams), annotation("_Outptr_result_buffer_maybenull_(*pcParams)")] DBPARAMINFO ** prgParamInfo, + [out, annotation("_Outptr_opt_result_z_")] OLECHAR ** ppNamesBuffer + ); + +#ifdef _WIN64 //Use casting by ULONG in attribute size_is under 64-bit environment. + +#ifndef NO_REMOTE + [call_as(GetParameterInfo)] + HRESULT RemoteGetParameterInfo( + [in, out] DB_UPARAMS * pcParams, + [out, size_is(,(ULONG)*pcParams)] DBPARAMINFO ** prgParamInfo, + [out, size_is(,(ULONG)*pcParams)] DBBYTEOFFSET ** prgNameOffsets, + [in, out] DBLENGTH * pcbNamesBuffer, + [in, out, unique, size_is(,(ULONG)*pcbNamesBuffer)] OLECHAR ** ppNamesBuffer, + [out] IErrorInfo ** ppErrorInfoRem + ); +#endif + + [local] + HRESULT MapParameterNames( + [in] DB_UPARAMS cParamNames, + [in, size_is((ULONG)cParamNames), annotation("_In_reads_(cParamNames)")] LPCWSTR rgParamNames[], + [out, size_is((ULONG)cParamNames), annotation("_Out_writes_(cParamNames)")] DB_LPARAMS rgParamOrdinals[] + ); + + [call_as(MapParameterNames)] + HRESULT RemoteMapParameterNames( + [in] DB_UPARAMS cParamNames, + [in, size_is((ULONG)cParamNames)] LPCOLESTR *rgParamNames, + [out, size_is((ULONG)cParamNames)] DB_LPARAMS * rgParamOrdinals, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT SetParameterInfo( + [in] DB_UPARAMS cParams, + [in, unique, size_is((ULONG)cParams), annotation("_In_reads_opt_(cParams)")] const DB_UPARAMS rgParamOrdinals[], + [in, unique, size_is((ULONG)cParams), annotation("_In_reads_opt_(cParams)")] const DBPARAMBINDINFO rgParamBindInfo[] + ); + + [call_as(SetParameterInfo)] + HRESULT RemoteSetParameterInfo( + [in] DB_UPARAMS cParams, + [in, unique, size_is((ULONG)cParams)] const DB_UPARAMS * rgParamOrdinals, + [in, unique, size_is((ULONG)cParams)] const DBPARAMBINDINFO * rgParamBindInfo, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#else //No casting by ULONG for 32-bit. + +#ifndef NO_REMOTE + [call_as(GetParameterInfo)] + HRESULT RemoteGetParameterInfo( + [in, out] DB_UPARAMS * pcParams, + [out, size_is(,*pcParams)] DBPARAMINFO ** prgParamInfo, + [out, size_is(,*pcParams)] DBBYTEOFFSET ** prgNameOffsets, + [in, out] DBLENGTH * pcbNamesBuffer, + [in, out, unique, size_is(,*pcbNamesBuffer)] OLECHAR ** ppNamesBuffer, + [out] IErrorInfo ** ppErrorInfoRem + ); +#endif + + [local] + HRESULT MapParameterNames( + [in] DB_UPARAMS cParamNames, + [in, size_is(cParamNames), annotation("_In_reads_(cParamNames)")] LPCWSTR rgParamNames[], + [out, size_is(cParamNames), annotation("_Out_writes_(cParamNames)")] DB_LPARAMS rgParamOrdinals[] + ); + + [call_as(MapParameterNames)] + HRESULT RemoteMapParameterNames( + [in] DB_UPARAMS cParamNames, + [in, size_is(cParamNames)] LPCOLESTR *rgParamNames, + [out, size_is(cParamNames)] DB_LPARAMS * rgParamOrdinals, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT SetParameterInfo( + [in] DB_UPARAMS cParams, + [in, unique, size_is(cParams), annotation("_In_reads_opt_(cParams)")] const DB_UPARAMS rgParamOrdinals[], + [in, unique, size_is(cParams), annotation("_In_reads_opt_(cParams)")] const DBPARAMBINDINFO rgParamBindInfo[] + ); + + [call_as(SetParameterInfo)] + HRESULT RemoteSetParameterInfo( + [in] DB_UPARAMS cParams, + [in, unique, size_is(cParams)] const DB_UPARAMS * rgParamOrdinals, + [in, unique, size_is(cParams)] const DBPARAMBINDINFO * rgParamBindInfo, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#endif +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/codecapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/codecapi.h new file mode 100644 index 0000000000000000000000000000000000000000..87196568cbb24b32c38c3f8609d48ab1409d37f9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/codecapi.h @@ -0,0 +1,2562 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + codecapi.h + +Abstract: + + CodecAPI Definitions. + +--*/ + +#ifndef __CODECAPI_H +#define __CODECAPI_H +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +#ifdef UUID_GEN + #define DEFINE_CODECAPI_GUID( name, guidstr, g1, g2, g3, g4, g5, g6, g7, g8, g9, g10, g11 ) \ + OUR_GUID_ENTRY( CODECAPI_##name, g1, g2, g3, g4, g5, g6, g7, g8, g9, g10, g11 ) +#else + #ifndef DEFINE_GUIDSTRUCT + #if defined(__cplusplus) && _MSC_VER >= 1100 + #define DEFINE_GUIDSTRUCT(g, n) struct __declspec(uuid(g)) n + #define DEFINE_GUIDNAMED(n) __uuidof(struct n) + #else // !defined(__cplusplus) + #define DEFINE_GUIDSTRUCT(g, n) DEFINE_GUIDEX(n) + #define DEFINE_GUIDNAMED(n) n + #endif // !defined(__cplusplus) + #endif + +/* Ideally we would like: + #define DEFINE_CODECAPI_GUID( name, guidstr, g1, g2, g3, g4, g5, g6, g7, g8, g9, g10, g11 ) \ + #define STATIC_CODECAPI_##name 0x##g1, 0x##g2, 0x##g3, 0x##g4, 0x##g5, 0x##g6, 0x##g7, 0x##g8, 0x##g9, 0x##g10, 0x##g11 + DEFINE_GUIDSTRUCT( guidstr, CODECAPI_##name ) + #define CODECAPI_##name DEFINE_GUIDNAMED( CODECAPI_##name ) + Unfortunately you can't invoke multiple defines from a single statement +*/ + #define DEFINE_CODECAPI_GUID( name, guidstr, g1, g2, g3, g4, g5, g6, g7, g8, g9, g10, g11 ) DEFINE_GUIDSTRUCT( guidstr, CODECAPI_##name ); + #define DEFINE_CODECAPI_GUIDNAMED( name ) DEFINE_GUIDNAMED( CODECAPI_##name ) +#endif + +// Windows CodecAPI Properties + +// Legend for the +// Reference VariantType VariantField +// UINT8 VT_UI1 bVal +// UINT16 VT_UI2 uiVal +// UINT32 VT_UI4 ulVal +// UINT64 VT_UI8 ullVal +// INT8 VT_I1 eVal +// INT16 VT_I2 iVal +// INT32 VT_I4 lVal +// INT64 VT_I8 llVal +// BOOL VT_BOOL boolVal +// GUID VT_BSTR bstrVal (guid string) +// UINT32/UNINT32 VT_UI8 ullVal (ratio) + +// { Static definitions + #define STATIC_CODECAPI_AVEncCommonFormatConstraint 0x57cbb9b8, 0x116f, 0x4951, 0xb4, 0x0c, 0xc2, 0xa0, 0x35, 0xed, 0x8f, 0x17 + #define STATIC_CODECAPI_GUID_AVEncCommonFormatUnSpecified 0xaf46a35a, 0x6024, 0x4525, 0xa4, 0x8a, 0x09, 0x4b, 0x97, 0xf5, 0xb3, 0xc2 + #define STATIC_CODECAPI_GUID_AVEncCommonFormatDVD_V 0xcc9598c4, 0xe7fe, 0x451d, 0xb1, 0xca, 0x76, 0x1b, 0xc8, 0x40, 0xb7, 0xf3 + #define STATIC_CODECAPI_GUID_AVEncCommonFormatDVD_DashVR 0xe55199d6, 0x044c, 0x4dae, 0xa4, 0x88, 0x53, 0x1e, 0xd3, 0x06, 0x23, 0x5b + #define STATIC_CODECAPI_GUID_AVEncCommonFormatDVD_PlusVR 0xe74c6f2e, 0xec37, 0x478d, 0x9a, 0xf4, 0xa5, 0xe1, 0x35, 0xb6, 0x27, 0x1c + #define STATIC_CODECAPI_GUID_AVEncCommonFormatVCD 0x95035bf7, 0x9d90, 0x40ff, 0xad, 0x5c, 0x5c, 0xf8, 0xcf, 0x71, 0xca, 0x1d + #define STATIC_CODECAPI_GUID_AVEncCommonFormatSVCD 0x51d85818, 0x8220, 0x448c, 0x80, 0x66, 0xd6, 0x9b, 0xed, 0x16, 0xc9, 0xad + #define STATIC_CODECAPI_GUID_AVEncCommonFormatATSC 0x8d7b897c, 0xa019, 0x4670, 0xaa, 0x76, 0x2e, 0xdc, 0xac, 0x7a, 0xc2, 0x96 + #define STATIC_CODECAPI_GUID_AVEncCommonFormatDVB 0x71830d8f, 0x6c33, 0x430d, 0x84, 0x4b, 0xc2, 0x70, 0x5b, 0xaa, 0xe6, 0xdb + #define STATIC_CODECAPI_GUID_AVEncCommonFormatMP3 0x349733cd, 0xeb08, 0x4dc2, 0x81, 0x97, 0xe4, 0x98, 0x35, 0xef, 0x82, 0x8b + #define STATIC_CODECAPI_GUID_AVEncCommonFormatHighMAT 0x1eabe760, 0xfb2b, 0x4928, 0x90, 0xd1, 0x78, 0xdb, 0x88, 0xee, 0xe8, 0x89 + #define STATIC_CODECAPI_GUID_AVEncCommonFormatHighMPV 0xa2d25db8, 0xb8f9, 0x42c2, 0x8b, 0xc7, 0x0b, 0x93, 0xcf, 0x60, 0x47, 0x88 + #define STATIC_CODECAPI_AVEncCodecType 0x08af4ac1, 0xf3f2, 0x4c74, 0x9d, 0xcf, 0x37, 0xf2, 0xec, 0x79, 0xf8, 0x26 + #define STATIC_CODECAPI_GUID_AVEncMPEG1Video 0xc8dafefe, 0xda1e, 0x4774, 0xb2, 0x7d, 0x11, 0x83, 0x0c, 0x16, 0xb1, 0xfe + #define STATIC_CODECAPI_GUID_AVEncMPEG2Video 0x046dc19a, 0x6677, 0x4aaa, 0xa3, 0x1d, 0xc1, 0xab, 0x71, 0x6f, 0x45, 0x60 + #define STATIC_CODECAPI_GUID_AVEncMPEG1Audio 0xd4dd1362, 0xcd4a, 0x4cd6, 0x81, 0x38, 0xb9, 0x4d, 0xb4, 0x54, 0x2b, 0x04 + #define STATIC_CODECAPI_GUID_AVEncMPEG2Audio 0xee4cbb1f, 0x9c3f, 0x4770, 0x92, 0xb5, 0xfc, 0xb7, 0xc2, 0xa8, 0xd3, 0x81 + #define STATIC_CODECAPI_GUID_AVEncWMV 0x4e0fef9b, 0x1d43, 0x41bd, 0xb8, 0xbd, 0x4d, 0x7b, 0xf7, 0x45, 0x7a, 0x2a + #define STATIC_CODECAPI_GUID_AVEndMPEG4Video 0xdd37b12a, 0x9503, 0x4f8b, 0xb8, 0xd0, 0x32, 0x4a, 0x00, 0xc0, 0xa1, 0xcf + #define STATIC_CODECAPI_GUID_AVEncH264Video 0x95044eab, 0x31b3, 0x47de, 0x8e, 0x75, 0x38, 0xa4, 0x2b, 0xb0, 0x3e, 0x28 + #define STATIC_CODECAPI_GUID_AVEncDV 0x09b769c7, 0x3329, 0x44fb, 0x89, 0x54, 0xfa, 0x30, 0x93, 0x7d, 0x3d, 0x5a + #define STATIC_CODECAPI_GUID_AVEncWMAPro 0x1955f90c, 0x33f7, 0x4a68, 0xab, 0x81, 0x53, 0xf5, 0x65, 0x71, 0x25, 0xc4 + #define STATIC_CODECAPI_GUID_AVEncWMALossless 0x55ca7265, 0x23d8, 0x4761, 0x90, 0x31, 0xb7, 0x4f, 0xbe, 0x12, 0xf4, 0xc1 + #define STATIC_CODECAPI_GUID_AVEncWMAVoice 0x13ed18cb, 0x50e8, 0x4276, 0xa2, 0x88, 0xa6, 0xaa, 0x22, 0x83, 0x82, 0xd9 + #define STATIC_CODECAPI_GUID_AVEncDolbyDigitalPro 0xf5be76cc, 0x0ff8, 0x40eb, 0x9c, 0xb1, 0xbb, 0xa9, 0x40, 0x04, 0xd4, 0x4f + #define STATIC_CODECAPI_GUID_AVEncDolbyDigitalConsumer 0xc1a7bf6c, 0x0059, 0x4bfa, 0x94, 0xef, 0xef, 0x74, 0x7a, 0x76, 0x8d, 0x52 + #define STATIC_CODECAPI_GUID_AVEncDolbyDigitalPlus 0x698d1b80, 0xf7dd, 0x415c, 0x97, 0x1c, 0x42, 0x49, 0x2a, 0x20, 0x56, 0xc6 + #define STATIC_CODECAPI_GUID_AVEncDTSHD 0x2052e630, 0x469d, 0x4bfb, 0x80, 0xca, 0x1d, 0x65, 0x6e, 0x7e, 0x91, 0x8f + #define STATIC_CODECAPI_GUID_AVEncDTS 0x45fbcaa2, 0x5e6e, 0x4ab0, 0x88, 0x93, 0x59, 0x03, 0xbe, 0xe9, 0x3a, 0xcf + #define STATIC_CODECAPI_GUID_AVEncMLP 0x05f73e29, 0xf0d1, 0x431e, 0xa4, 0x1c, 0xa4, 0x74, 0x32, 0xec, 0x5a, 0x66 + #define STATIC_CODECAPI_GUID_AVEncPCM 0x844be7f4, 0x26cf, 0x4779, 0xb3, 0x86, 0xcc, 0x05, 0xd1, 0x87, 0x99, 0x0c + #define STATIC_CODECAPI_GUID_AVEncSDDS 0x1dc1b82f, 0x11c8, 0x4c71, 0xb7, 0xb6, 0xee, 0x3e, 0xb9, 0xbc, 0x2b, 0x94 + #define STATIC_CODECAPI_AVEncCommonRateControlMode 0x1c0608e9, 0x370c, 0x4710, 0x8a, 0x58, 0xcb, 0x61, 0x81, 0xc4, 0x24, 0x23 + #define STATIC_CODECAPI_AVEncCommonLowLatency 0x9d3ecd55, 0x89e8, 0x490a, 0x97, 0x0a, 0x0c, 0x95, 0x48, 0xd5, 0xa5, 0x6e + #define STATIC_CODECAPI_AVEncCommonMultipassMode 0x22533d4c, 0x47e1, 0x41b5, 0x93, 0x52, 0xa2, 0xb7, 0x78, 0x0e, 0x7a, 0xc4 + #define STATIC_CODECAPI_AVEncCommonPassStart 0x6a67739f, 0x4eb5, 0x4385, 0x99, 0x28, 0xf2, 0x76, 0xa9, 0x39, 0xef, 0x95 + #define STATIC_CODECAPI_AVEncCommonPassEnd 0x0e3d01bc, 0xc85c, 0x467d, 0x8b, 0x60, 0xc4, 0x10, 0x12, 0xee, 0x3b, 0xf6 + #define STATIC_CODECAPI_AVEncCommonRealTime 0x143a0ff6, 0xa131, 0x43da, 0xb8, 0x1e, 0x98, 0xfb, 0xb8, 0xec, 0x37, 0x8e + #define STATIC_CODECAPI_AVEncCommonQuality 0xfcbf57a3, 0x7ea5, 0x4b0c, 0x96, 0x44, 0x69, 0xb4, 0x0c, 0x39, 0xc3, 0x91 + #define STATIC_CODECAPI_AVEncCommonQualityVsSpeed 0x98332df8, 0x03cd, 0x476b, 0x89, 0xfa, 0x3f, 0x9e, 0x44, 0x2d, 0xec, 0x9f + #define STATIC_CODECAPI_AVEncCommonTranscodeEncodingProfile 0x6947787C, 0xF508, 0x4EA9, 0xB1, 0xE9, 0xA1, 0xFE, 0x3A, 0x49, 0xFB, 0xC9 + #define STATIC_CODECAPI_AVEncCommonMeanBitRate 0xf7222374, 0x2144, 0x4815, 0xb5, 0x50, 0xa3, 0x7f, 0x8e, 0x12, 0xee, 0x52 + #define STATIC_CODECAPI_AVEncCommonMeanBitRateInterval 0xbfaa2f0c, 0xcb82, 0x4bc0, 0x84, 0x74, 0xf0, 0x6a, 0x8a, 0x0d, 0x02, 0x58 + #define STATIC_CODECAPI_AVEncCommonMaxBitRate 0x9651eae4, 0x39b9, 0x4ebf, 0x85, 0xef, 0xd7, 0xf4, 0x44, 0xec, 0x74, 0x65 + #define STATIC_CODECAPI_AVEncCommonMinBitRate 0x101405b2, 0x2083, 0x4034, 0xa8, 0x06, 0xef, 0xbe, 0xdd, 0xd7, 0xc9, 0xff + #define STATIC_CODECAPI_AVEncCommonBufferSize 0x0db96574, 0xb6a4, 0x4c8b, 0x81, 0x06, 0x37, 0x73, 0xde, 0x03, 0x10, 0xcd + #define STATIC_CODECAPI_AVEncCommonBufferInLevel 0xd9c5c8db, 0xfc74, 0x4064, 0x94, 0xe9, 0xcd, 0x19, 0xf9, 0x47, 0xed, 0x45 + #define STATIC_CODECAPI_AVEncCommonBufferOutLevel 0xccae7f49, 0xd0bc, 0x4e3d, 0xa5, 0x7e, 0xfb, 0x57, 0x40, 0x14, 0x00, 0x69 + #define STATIC_CODECAPI_AVEncCommonStreamEndHandling 0x6aad30af, 0x6ba8, 0x4ccc, 0x8f, 0xca, 0x18, 0xd1, 0x9b, 0xea, 0xeb, 0x1c + #define STATIC_CODECAPI_AVEncStatCommonCompletedPasses 0x3e5de533, 0x9df7, 0x438c, 0x85, 0x4f, 0x9f, 0x7d, 0xd3, 0x68, 0x3d, 0x34 + #define STATIC_CODECAPI_AVEncVideoOutputFrameRate 0xea85e7c3, 0x9567, 0x4d99, 0x87, 0xc4, 0x02, 0xc1, 0xc2, 0x78, 0xca, 0x7c + #define STATIC_CODECAPI_AVEncVideoOutputFrameRateConversion 0x8c068bf4, 0x369a, 0x4ba3, 0x82, 0xfd, 0xb2, 0x51, 0x8f, 0xb3, 0x39, 0x6e + #define STATIC_CODECAPI_AVEncVideoPixelAspectRatio 0x3cdc718f, 0xb3e9, 0x4eb6, 0xa5, 0x7f, 0xcf, 0x1f, 0x1b, 0x32, 0x1b, 0x87 + #define STATIC_CODECAPI_AVEncVideoForceSourceScanType 0x1ef2065f, 0x058a, 0x4765, 0xa4, 0xfc, 0x8a, 0x86, 0x4c, 0x10, 0x30, 0x12 + #define STATIC_CODECAPI_AVEncVideoNoOfFieldsToEncode 0x61e4bbe2, 0x4ee0, 0x40e7, 0x80, 0xab, 0x51, 0xdd, 0xee, 0xbe, 0x62, 0x91 + #define STATIC_CODECAPI_AVEncVideoNoOfFieldsToSkip 0xa97e1240, 0x1427, 0x4c16, 0xa7, 0xf7, 0x3d, 0xcf, 0xd8, 0xba, 0x4c, 0xc5 + #define STATIC_CODECAPI_AVEncVideoEncodeDimension 0x1074df28, 0x7e0f, 0x47a4, 0xa4, 0x53, 0xcd, 0xd7, 0x38, 0x70, 0xf5, 0xce + #define STATIC_CODECAPI_AVEncVideoEncodeOffsetOrigin 0x6bc098fe, 0xa71a, 0x4454, 0x85, 0x2e, 0x4d, 0x2d, 0xde, 0xb2, 0xcd, 0x24 + #define STATIC_CODECAPI_AVEncVideoDisplayDimension 0xde053668, 0xf4ec, 0x47a9, 0x86, 0xd0, 0x83, 0x67, 0x70, 0xf0, 0xc1, 0xd5 + #define STATIC_CODECAPI_AVEncVideoOutputScanType 0x460b5576, 0x842e, 0x49ab, 0xa6, 0x2d, 0xb3, 0x6f, 0x73, 0x12, 0xc9, 0xdb + #define STATIC_CODECAPI_AVEncVideoInverseTelecineEnable 0x2ea9098b, 0xe76d, 0x4ccd, 0xa0, 0x30, 0xd3, 0xb8, 0x89, 0xc1, 0xb6, 0x4c + #define STATIC_CODECAPI_AVEncVideoInverseTelecineThreshold 0x40247d84, 0xe895, 0x497f, 0xb4, 0x4c, 0xb7, 0x45, 0x60, 0xac, 0xfe, 0x27 + #define STATIC_CODECAPI_AVEncVideoSourceFilmContent 0x1791c64b, 0xccfc, 0x4827, 0xa0, 0xed, 0x25, 0x57, 0x79, 0x3b, 0x2b, 0x1c + #define STATIC_CODECAPI_AVEncVideoSourceIsBW 0x42ffc49b, 0x1812, 0x4fdc, 0x8d, 0x24, 0x70, 0x54, 0xc5, 0x21, 0xe6, 0xeb + #define STATIC_CODECAPI_AVEncVideoFieldSwap 0xfefd7569, 0x4e0a, 0x49f2, 0x9f, 0x2b, 0x36, 0x0e, 0xa4, 0x8c, 0x19, 0xa2 + #define STATIC_CODECAPI_AVEncVideoInputChromaResolution 0xbb0cec33, 0x16f1, 0x47b0, 0x8a, 0x88, 0x37, 0x81, 0x5b, 0xee, 0x17, 0x39 + #define STATIC_CODECAPI_AVEncVideoOutputChromaResolution 0x6097b4c9, 0x7c1d, 0x4e64, 0xbf, 0xcc, 0x9e, 0x97, 0x65, 0x31, 0x8a, 0xe7 + #define STATIC_CODECAPI_AVEncVideoInputChromaSubsampling 0xa8e73a39, 0x4435, 0x4ec3, 0xa6, 0xea, 0x98, 0x30, 0x0f, 0x4b, 0x36, 0xf7 + #define STATIC_CODECAPI_AVEncVideoOutputChromaSubsampling 0xfa561c6c, 0x7d17, 0x44f0, 0x83, 0xc9, 0x32, 0xed, 0x12, 0xe9, 0x63, 0x43 + #define STATIC_CODECAPI_AVEncVideoInputColorPrimaries 0xc24d783f, 0x7ce6, 0x4278, 0x90, 0xab, 0x28, 0xa4, 0xf1, 0xe5, 0xf8, 0x6c + #define STATIC_CODECAPI_AVEncVideoOutputColorPrimaries 0xbe95907c, 0x9d04, 0x4921, 0x89, 0x85, 0xa6, 0xd6, 0xd8, 0x7d, 0x1a, 0x6c + #define STATIC_CODECAPI_AVEncVideoInputColorTransferFunction 0x8c056111, 0xa9c3, 0x4b08, 0xa0, 0xa0, 0xce, 0x13, 0xf8, 0xa2, 0x7c, 0x75 + #define STATIC_CODECAPI_AVEncVideoOutputColorTransferFunction 0x4a7f884a, 0xea11, 0x460d, 0xbf, 0x57, 0xb8, 0x8b, 0xc7, 0x59, 0x00, 0xde + #define STATIC_CODECAPI_AVEncVideoInputColorTransferMatrix 0x52ed68b9, 0x72d5, 0x4089, 0x95, 0x8d, 0xf5, 0x40, 0x5d, 0x55, 0x08, 0x1c + #define STATIC_CODECAPI_AVEncVideoOutputColorTransferMatrix 0xa9b90444, 0xaf40, 0x4310, 0x8f, 0xbe, 0xed, 0x6d, 0x93, 0x3f, 0x89, 0x2b + #define STATIC_CODECAPI_AVEncVideoInputColorLighting 0x46a99549, 0x0015, 0x4a45, 0x9c, 0x30, 0x1d, 0x5c, 0xfa, 0x25, 0x83, 0x16 + #define STATIC_CODECAPI_AVEncVideoOutputColorLighting 0x0e5aaac6, 0xace6, 0x4c5c, 0x99, 0x8e, 0x1a, 0x8c, 0x9c, 0x6c, 0x0f, 0x89 + #define STATIC_CODECAPI_AVEncVideoInputColorNominalRange 0x16cf25c6, 0xa2a6, 0x48e9, 0xae, 0x80, 0x21, 0xae, 0xc4, 0x1d, 0x42, 0x7e + #define STATIC_CODECAPI_AVEncVideoOutputColorNominalRange 0x972835ed, 0x87b5, 0x4e95, 0x95, 0x00, 0xc7, 0x39, 0x58, 0x56, 0x6e, 0x54 + #define STATIC_CODECAPI_AVEncInputVideoSystem 0xbede146d, 0xb616, 0x4dc7, 0x92, 0xb2, 0xf5, 0xd9, 0xfa, 0x92, 0x98, 0xf7 + #define STATIC_CODECAPI_AVEncVideoHeaderDropFrame 0x6ed9e124, 0x7925, 0x43fe, 0x97, 0x1b, 0xe0, 0x19, 0xf6, 0x22, 0x22, 0xb4 + #define STATIC_CODECAPI_AVEncVideoHeaderHours 0x2acc7702, 0xe2da, 0x4158, 0xbf, 0x9b, 0x88, 0x88, 0x01, 0x29, 0xd7, 0x40 + #define STATIC_CODECAPI_AVEncVideoHeaderMinutes 0xdc1a99ce, 0x0307, 0x408b, 0x88, 0x0b, 0xb8, 0x34, 0x8e, 0xe8, 0xca, 0x7f + #define STATIC_CODECAPI_AVEncVideoHeaderSeconds 0x4a2e1a05, 0xa780, 0x4f58, 0x81, 0x20, 0x9a, 0x44, 0x9d, 0x69, 0x65, 0x6b + #define STATIC_CODECAPI_AVEncVideoHeaderFrames 0xafd5f567, 0x5c1b, 0x4adc, 0xbd, 0xaf, 0x73, 0x56, 0x10, 0x38, 0x14, 0x36 + #define STATIC_CODECAPI_AVEncVideoDefaultUpperFieldDominant 0x810167c4, 0x0bc1, 0x47ca, 0x8f, 0xc2, 0x57, 0x05, 0x5a, 0x14, 0x74, 0xa5 + #define STATIC_CODECAPI_AVEncVideoCBRMotionTradeoff 0x0d49451e, 0x18d5, 0x4367, 0xa4, 0xef, 0x32, 0x40, 0xdf, 0x16, 0x93, 0xc4 + #define STATIC_CODECAPI_AVEncVideoCodedVideoAccessUnitSize 0xb4b10c15, 0x14a7, 0x4ce8, 0xb1, 0x73, 0xdc, 0x90, 0xa0, 0xb4, 0xfc, 0xdb + #define STATIC_CODECAPI_AVEncVideoMaxKeyframeDistance 0x2987123a, 0xba93, 0x4704, 0xb4, 0x89, 0xec, 0x1e, 0x5f, 0x25, 0x29, 0x2c + #define STATIC_CODECAPI_AVEncH264CABACEnable 0xee6cad62, 0xd305, 0x4248, 0xa5, 0xe, 0xe1, 0xb2, 0x55, 0xf7, 0xca, 0xf8 + #define STATIC_CODECAPI_AVEncVideoContentType 0x66117aca, 0xeb77, 0x459d, 0x93, 0xc, 0xa4, 0x8d, 0x9d, 0x6, 0x83, 0xfc + #define STATIC_CODECAPI_AVEncNumWorkerThreads 0xb0c8bf60, 0x16f7, 0x4951, 0xa3, 0xb, 0x1d, 0xb1, 0x60, 0x92, 0x93, 0xd6 + #define STATIC_CODECAPI_AVEncVideoEncodeQP 0x2cb5696b, 0x23fb, 0x4ce1, 0xa0, 0xf9, 0xef, 0x5b, 0x90, 0xfd, 0x55, 0xca + #define STATIC_CODECAPI_AVEncVideoMinQP 0x0ee22c6a, 0xa37c, 0x4568, 0xb5, 0xf1, 0x9d, 0x4c, 0x2b, 0x3a, 0xb8, 0x86 + #define STATIC_CODECAPI_AVEncVideoForceKeyFrame 0x398c1b98, 0x8353, 0x475a, 0x9e, 0xf2, 0x8f, 0x26, 0x5d, 0x26, 0x3, 0x45 + #define STATIC_CODECAPI_AVEncH264SPSID 0x50f38f51, 0x2b79, 0x40e3, 0xb3, 0x9c, 0x7e, 0x9f, 0xa0, 0x77, 0x5, 0x1 + #define STATIC_CODECAPI_AVEncH264PPSID 0xbfe29ec2, 0x56c, 0x4d68, 0xa3, 0x8d, 0xae, 0x59, 0x44, 0xc8, 0x58, 0x2e + #define STATIC_CODECAPI_AVEncAdaptiveMode 0x4419b185, 0xda1f, 0x4f53, 0xbc, 0x76, 0x9, 0x7d, 0xc, 0x1e, 0xfb, 0x1e + #define STATIC_CODECAPI_AVEncVideoTemporalLayerCount 0x19caebff, 0xb74d, 0x4cfd, 0x8c, 0x27, 0xc2, 0xf9, 0xd9, 0x7d, 0x5f, 0x52 + #define STATIC_CODECAPI_AVEncVideoUsage 0x1f636849, 0x5dc1, 0x49f1, 0xb1, 0xd8, 0xce, 0x3c, 0xf6, 0x2e, 0xa3, 0x85 + #define STATIC_CODECAPI_AVEncVideoSelectLayer 0xeb1084f5, 0x6aaa, 0x4914, 0xbb, 0x2f, 0x61, 0x47, 0x22, 0x7f, 0x12, 0xe7 + #define STATIC_CODECAPI_AVEncVideoRateControlParams 0x87d43767, 0x7645, 0x44ec, 0xb4, 0x38, 0xd3, 0x32, 0x2f, 0xbc, 0xa2, 0x9f + #define STATIC_CODECAPI_AVEncVideoSupportedControls 0xd3f40fdd, 0x77b9, 0x473d, 0x81, 0x96, 0x6, 0x12, 0x59, 0xe6, 0x9c, 0xff + #define STATIC_CODECAPI_AVEncVideoEncodeFrameTypeQP 0xaa70b610, 0xe03f, 0x450c, 0xad, 0x07, 0x07, 0x31, 0x4e, 0x63, 0x9c, 0xe7 + #define STATIC_CODECAPI_AVEncSliceControlMode 0xe9e782ef, 0x5f18, 0x44c9, 0xa9, 0x0b, 0xe9, 0xc3, 0xc2, 0xc1, 0x7b, 0x0b + #define STATIC_CODECAPI_AVEncSliceControlSize 0x92f51df3, 0x07a5, 0x4172, 0xae, 0xfe, 0xc6, 0x9c, 0xa3, 0xb6, 0x0e, 0x35 + #define STATIC_CODECAPI_AVEncSliceGenerationMode 0x8a6bc67f, 0x9497, 0x4286, 0xb4, 0x6b, 0x02, 0xdb, 0x8d, 0x60, 0xed, 0xbc + #define STATIC_CODECAPI_AVEncVideoMaxNumRefFrame 0x964829ed, 0x94f9, 0x43b4, 0xb7, 0x4d, 0xef, 0x40, 0x94, 0x4b, 0x69, 0xa0 + #define STATIC_CODECAPI_AVEncVideoMeanAbsoluteDifference 0xe5c0c10f, 0x81a4, 0x422d, 0x8c, 0x3f, 0xb4, 0x74, 0xa4, 0x58, 0x13, 0x36 + #define STATIC_CODECAPI_AVEncVideoMaxQP 0x3daf6f66, 0xa6a7, 0x45e0, 0xa8, 0xe5, 0xf2, 0x74, 0x3f, 0x46, 0xa3, 0xa2 + #define STATIC_CODECAPI_AVEncVideoLTRBufferControl 0xa4a0e93d, 0x4cbc, 0x444c, 0x89, 0xf4, 0x82, 0x6d, 0x31, 0x0e, 0x92, 0xa7 + #define STATIC_CODECAPI_AVEncVideoMarkLTRFrame 0xe42f4748, 0xa06d, 0x4ef9, 0x8c, 0xea, 0x3d, 0x05, 0xfd, 0xe3, 0xbd, 0x3b + #define STATIC_CODECAPI_AVEncVideoUseLTRFrame 0x00752db8, 0x55f7, 0x4f80, 0x89, 0x5b, 0x27, 0x63, 0x91, 0x95, 0xf2, 0xad + #define STATIC_CODECAPI_AVEncVideoROIEnabled 0xd74f7f18, 0x44dd, 0x4b85, 0xab, 0xa3, 0x5, 0xd9, 0xf4, 0x2a, 0x82, 0x80 + #define STATIC_CODECAPI_AVEncVideoDirtyRectEnabled 0x8acb8fdd, 0x5e0c, 0x4c66, 0x87, 0x29, 0xb8, 0xf6, 0x29, 0xab, 0x04, 0xfb + #define STATIC_CODECAPI_AVScenarioInfo 0xb28a6e64, 0x3ff9, 0x446a, 0x8a, 0x4b, 0x0d, 0x7a, 0x53, 0x41, 0x32, 0x36 + #define STATIC_CODECAPI_AVEncMPVGOPSizeMin 0x7155cf20, 0xd440, 0x4852, 0xad, 0x0f, 0x9c, 0x4a, 0xbf, 0xe3, 0x7a, 0x6a + #define STATIC_CODECAPI_AVEncMPVGOPSizeMax 0xfe7de4c4, 0x1936, 0x4fe2, 0xbd, 0xf7, 0x1f, 0x18, 0xca, 0x1d, 0x00, 0x1f + #define STATIC_CODECAPI_AVEncVideoMaxCTBSize 0x822363ff, 0xcec8, 0x43e5, 0x92, 0xfd, 0xe0, 0x97, 0x48, 0x84, 0x85, 0xe9 + #define STATIC_CODECAPI_AVEncVideoCTBSize 0xd47db8b2, 0xe73b, 0x4cb9, 0x8c, 0x3e, 0xbd, 0x87, 0x7d, 0x06, 0xd7, 0x7b + #define STATIC_CODECAPI_VideoEncoderDisplayContentType 0x79b90b27, 0xf4b1, 0x42dc, 0x9d, 0xd7, 0xcd, 0xaf, 0x81, 0x35, 0xc4, 0x00 + #define STATIC_CODECAPI_AVEncEnableVideoProcessing 0x006f4bf6, 0x0ea3, 0x4d42, 0x87, 0x02, 0xb5, 0xd8, 0xbe, 0x0f, 0x7a, 0x92 + #define STATIC_CODECAPI_AVEncVideoGradualIntraRefresh 0x8f347dee, 0xcb0d, 0x49ba, 0xb4, 0x62, 0xdb, 0x69, 0x27, 0xee, 0x21, 0x01 + #define STATIC_CODECAPI_GetOPMContext 0x2f036c05, 0x4c14, 0x4689, 0x88, 0x39, 0x29, 0x4c, 0x6d, 0x73, 0xe0, 0x53 + #define STATIC_CODECAPI_SetHDCPManagerContext 0x6d2d1fc8, 0x3dc9, 0x47eb, 0xa1, 0xa2, 0x47, 0x1c, 0x80, 0xcd, 0x60, 0xd0 + #define STATIC_CODECAPI_AVEncVideoMaxTemporalLayers 0x9c668cfe, 0x08e1, 0x424a, 0x93, 0x4e, 0xb7, 0x64, 0xb0, 0x64, 0x80, 0x2a + #define STATIC_CODECAPI_AVEncVideoNumGOPsPerIDR 0x83bc5bdb, 0x5b89, 0x4521, 0x8f, 0x66, 0x33, 0x15, 0x1c, 0x37, 0x31, 0x76 + #define STATIC_CODECAPI_AVEncCommonAllowFrameDrops 0xd8477dcb, 0x9598, 0x48e3, 0x8d, 0x0c, 0x75, 0x2b, 0xf2, 0x06, 0x09, 0x3e + #define STATIC_CODECAPI_AVEncVideoIntraLayerPrediction 0xd3af46b8, 0xbf47, 0x44bb, 0xa2, 0x83, 0x69, 0xf0, 0xb0, 0x22, 0x8f, 0xf9 + #define STATIC_CODECAPI_AVEncVideoInstantTemporalUpSwitching 0xa3308307, 0x0d96, 0x4ba4, 0xb1, 0xf0, 0xb9, 0x1a, 0x5e, 0x49, 0xdf, 0x10 + #define STATIC_CODECAPI_AVEncLowPowerEncoder 0xb668d582, 0x8bad, 0x4f6a, 0x91, 0x41, 0x37, 0x5a, 0x95, 0x35, 0x8b, 0x6d + #define STATIC_CODECAPI_AVEnableInLoopDeblockFilter 0xd2e8e399, 0x0623, 0x4bf3, 0x92, 0xa8, 0x4d, 0x18, 0x18, 0x52, 0x9d, 0xed + + #define STATIC_CODECAPI_AVEncMuxOutputStreamType 0xcedd9e8f, 0x34d3, 0x44db, 0xa1, 0xd8, 0xf8, 0x15, 0x20, 0x25, 0x4f, 0x3e + + #define STATIC_CODECAPI_AVEncStatVideoOutputFrameRate 0xbe747849, 0x9ab4, 0x4a63, 0x98, 0xfe, 0xf1, 0x43, 0xf0, 0x4f, 0x8e, 0xe9 + #define STATIC_CODECAPI_AVEncStatVideoCodedFrames 0xd47f8d61, 0x6f5a, 0x4a26, 0xbb, 0x9f, 0xcd, 0x95, 0x18, 0x46, 0x2b, 0xcd + #define STATIC_CODECAPI_AVEncStatVideoTotalFrames 0xfdaa9916, 0x119a, 0x4222, 0x9a, 0xd6, 0x3f, 0x7c, 0xab, 0x99, 0xcc, 0x8b + #define STATIC_CODECAPI_AVEncAudioIntervalToEncode 0x866e4b4d, 0x725a, 0x467c, 0xbb, 0x01, 0xb4, 0x96, 0xb2, 0x3b, 0x25, 0xf9 + #define STATIC_CODECAPI_AVEncAudioIntervalToSkip 0x88c15f94, 0xc38c, 0x4796, 0xa9, 0xe8, 0x96, 0xe9, 0x67, 0x98, 0x3f, 0x26 + #define STATIC_CODECAPI_AVEncAudioDualMono 0x3648126b, 0xa3e8, 0x4329, 0x9b, 0x3a, 0x5c, 0xe5, 0x66, 0xa4, 0x3b, 0xd3 + #define STATIC_CODECAPI_AVEncAudioMeanBitRate 0x921295bb, 0x4fca, 0x4679, 0xaa, 0xb8, 0x9e, 0x2a, 0x1d, 0x75, 0x33, 0x84 + + #define STATIC_CODECAPI_AVEncAudioMapDestChannel0 0xbc5d0b60, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel1 0xbc5d0b61, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel2 0xbc5d0b62, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel3 0xbc5d0b63, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel4 0xbc5d0b64, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel5 0xbc5d0b65, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel6 0xbc5d0b66, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel7 0xbc5d0b67, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel8 0xbc5d0b68, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel9 0xbc5d0b69, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel10 0xbc5d0b6a, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel11 0xbc5d0b6b, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel12 0xbc5d0b6c, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel13 0xbc5d0b6d, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel14 0xbc5d0b6e, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + #define STATIC_CODECAPI_AVEncAudioMapDestChannel15 0xbc5d0b6f, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d + + #define STATIC_CODECAPI_AVEncAudioInputContent 0x3e226c2b, 0x60b9, 0x4a39, 0xb0, 0x0b, 0xa7, 0xb4, 0x0f, 0x70, 0xd5, 0x66 + #define STATIC_CODECAPI_AVEncStatAudioPeakPCMValue 0xdce7fd34, 0xdc00, 0x4c16, 0x82, 0x1b, 0x35, 0xd9, 0xeb, 0x00, 0xfb, 0x1a + #define STATIC_CODECAPI_AVEncStatAudioAveragePCMValue 0x979272f8, 0xd17f, 0x4e32, 0xbb, 0x73, 0x4e, 0x73, 0x1c, 0x68, 0xba, 0x2d + #define STATIC_CODECAPI_AVEncStatAudioAverageBPS 0xca6724db, 0x7059, 0x4351, 0x8b, 0x43, 0xf8, 0x21, 0x98, 0x82, 0x6a, 0x14 + #define STATIC_CODECAPI_AVEncStatAverageBPS 0xca6724db, 0x7059, 0x4351, 0x8b, 0x43, 0xf8, 0x21, 0x98, 0x82, 0x6a, 0x14 + #define STATIC_CODECAPI_AVEncStatHardwareProcessorUtilitization 0x995dc027, 0xcb95, 0x49e6, 0xb9, 0x1b, 0x59, 0x67, 0x75, 0x3c, 0xdc, 0xb8 + #define STATIC_CODECAPI_AVEncStatHardwareBandwidthUtilitization 0x0124ba9b, 0xdc41, 0x4826, 0xb4, 0x5f, 0x18, 0xac, 0x01, 0xb3, 0xd5, 0xa8 + #define STATIC_CODECAPI_AVEncMPVGOPSize 0x95f31b26, 0x95a4, 0x41aa, 0x93, 0x03, 0x24, 0x6a, 0x7f, 0xc6, 0xee, 0xf1 + #define STATIC_CODECAPI_AVEncMPVGOPOpen 0xb1d5d4a6, 0x3300, 0x49b1, 0xae, 0x61, 0xa0, 0x99, 0x37, 0xab, 0x0e, 0x49 + #define STATIC_CODECAPI_AVEncMPVDefaultBPictureCount 0x8d390aac, 0xdc5c, 0x4200, 0xb5, 0x7f, 0x81, 0x4d, 0x04, 0xba, 0xba, 0xb2 + #define STATIC_CODECAPI_AVEncMPVProfile 0xdabb534a, 0x1d99, 0x4284, 0x97, 0x5a, 0xd9, 0x0e, 0x22, 0x39, 0xba, 0xa1 + #define STATIC_CODECAPI_AVEncMPVLevel 0x6ee40c40, 0xa60c, 0x41ef, 0x8f, 0x50, 0x37, 0xc2, 0x24, 0x9e, 0x2c, 0xb3 + #define STATIC_CODECAPI_AVEncMPVFrameFieldMode 0xacb5de96, 0x7b93, 0x4c2f, 0x88, 0x25, 0xb0, 0x29, 0x5f, 0xa9, 0x3b, 0xf4 + #define STATIC_CODECAPI_AVEncMPVAddSeqEndCode 0xa823178f, 0x57df, 0x4c7a, 0xb8, 0xfd, 0xe5, 0xec, 0x88, 0x87, 0x70, 0x8d + #define STATIC_CODECAPI_AVEncMPVGOPSInSeq 0x993410d4, 0x2691, 0x4192, 0x99, 0x78, 0x98, 0xdc, 0x26, 0x03, 0x66, 0x9f + #define STATIC_CODECAPI_AVEncMPVUseConcealmentMotionVectors 0xec770cf3, 0x6908, 0x4b4b, 0xaa, 0x30, 0x7f, 0xb9, 0x86, 0x21, 0x4f, 0xea + #define STATIC_CODECAPI_AVEncMPVSceneDetection 0x552799f1, 0xdb4c, 0x405b, 0x8a, 0x3a, 0xc9, 0x3f, 0x2d, 0x06, 0x74, 0xdc + #define STATIC_CODECAPI_AVEncMPVGenerateHeaderSeqExt 0xd5e78611, 0x082d, 0x4e6b, 0x98, 0xaf, 0x0f, 0x51, 0xab, 0x13, 0x92, 0x22 + #define STATIC_CODECAPI_AVEncMPVGenerateHeaderSeqDispExt 0x6437aa6f, 0x5a3c, 0x4de9, 0x8a, 0x16, 0x53, 0xd9, 0xc4, 0xad, 0x32, 0x6f + #define STATIC_CODECAPI_AVEncMPVGenerateHeaderPicExt 0x1b8464ab, 0x944f, 0x45f0, 0xb7, 0x4e, 0x3a, 0x58, 0xda, 0xd1, 0x1f, 0x37 + #define STATIC_CODECAPI_AVEncMPVGenerateHeaderPicDispExt 0xc6412f84, 0xc03f, 0x4f40, 0xa0, 0x0c, 0x42, 0x93, 0xdf, 0x83, 0x95, 0xbb + #define STATIC_CODECAPI_AVEncMPVGenerateHeaderSeqScaleExt 0x0722d62f, 0xdd59, 0x4a86, 0x9c, 0xd5, 0x64, 0x4f, 0x8e, 0x26, 0x53, 0xd8 + #define STATIC_CODECAPI_AVEncMPVScanPattern 0x7f8a478e, 0x7bbb, 0x4ae2, 0xb2, 0xfc, 0x96, 0xd1, 0x7f, 0xc4, 0xa2, 0xd6 + #define STATIC_CODECAPI_AVEncMPVIntraDCPrecision 0xa0116151, 0xcbc8, 0x4af3, 0x97, 0xdc, 0xd0, 0x0c, 0xce, 0xb8, 0x2d, 0x79 + #define STATIC_CODECAPI_AVEncMPVQScaleType 0x2b79ebb7, 0xf484, 0x4af7, 0xbb, 0x58, 0xa2, 0xa1, 0x88, 0xc5, 0xcb, 0xbe + #define STATIC_CODECAPI_AVEncMPVIntraVLCTable 0xa2b83ff5, 0x1a99, 0x405a, 0xaf, 0x95, 0xc5, 0x99, 0x7d, 0x55, 0x8d, 0x3a + #define STATIC_CODECAPI_AVEncMPVQuantMatrixIntra 0x9bea04f3, 0x6621, 0x442c, 0x8b, 0xa1, 0x3a, 0xc3, 0x78, 0x97, 0x96, 0x98 + #define STATIC_CODECAPI_AVEncMPVQuantMatrixNonIntra 0x87f441d8, 0x0997, 0x4beb, 0xa0, 0x8e, 0x85, 0x73, 0xd4, 0x09, 0xcf, 0x75 + #define STATIC_CODECAPI_AVEncMPVQuantMatrixChromaIntra 0x9eb9ecd4, 0x018d, 0x4ffd, 0x8f, 0x2d, 0x39, 0xe4, 0x9f, 0x07, 0xb1, 0x7a + #define STATIC_CODECAPI_AVEncMPVQuantMatrixChromaNonIntra 0x1415b6b1, 0x362a, 0x4338, 0xba, 0x9a, 0x1e, 0xf5, 0x87, 0x03, 0xc0, 0x5b + #define STATIC_CODECAPI_AVEncMPALayer 0x9d377230, 0xf91b, 0x453d, 0x9c, 0xe0, 0x78, 0x44, 0x54, 0x14, 0xc2, 0x2d + #define STATIC_CODECAPI_AVEncMPACodingMode 0xb16ade03, 0x4b93, 0x43d7, 0xa5, 0x50, 0x90, 0xb4, 0xfe, 0x22, 0x45, 0x37 + #define STATIC_CODECAPI_AVEncDDService 0xd2e1bec7, 0x5172, 0x4d2a, 0xa5, 0x0e, 0x2f, 0x3b, 0x82, 0xb1, 0xdd, 0xf8 + #define STATIC_CODECAPI_AVEncDDDialogNormalization 0xd7055acf, 0xf125, 0x437d, 0xa7, 0x04, 0x79, 0xc7, 0x9f, 0x04, 0x04, 0xa8 + #define STATIC_CODECAPI_AVEncDDCentreDownMixLevel 0xe285072c, 0xc958, 0x4a81, 0xaf, 0xd2, 0xe5, 0xe0, 0xda, 0xf1, 0xb1, 0x48 + #define STATIC_CODECAPI_AVEncDDSurroundDownMixLevel 0x7b20d6e5, 0x0bcf, 0x4273, 0xa4, 0x87, 0x50, 0x6b, 0x04, 0x79, 0x97, 0xe9 + #define STATIC_CODECAPI_AVEncDDProductionInfoExists 0xb0b7fe5f, 0xb6ab, 0x4f40, 0x96, 0x4d, 0x8d, 0x91, 0xf1, 0x7c, 0x19, 0xe8 + #define STATIC_CODECAPI_AVEncDDProductionRoomType 0xdad7ad60, 0x23d8, 0x4ab7, 0xa2, 0x84, 0x55, 0x69, 0x86, 0xd8, 0xa6, 0xfe + #define STATIC_CODECAPI_AVEncDDProductionMixLevel 0x301d103a, 0xcbf9, 0x4776, 0x88, 0x99, 0x7c, 0x15, 0xb4, 0x61, 0xab, 0x26 + #define STATIC_CODECAPI_AVEncDDCopyright 0x8694f076, 0xcd75, 0x481d, 0xa5, 0xc6, 0xa9, 0x04, 0xdc, 0xc8, 0x28, 0xf0 + #define STATIC_CODECAPI_AVEncDDOriginalBitstream 0x966ae800, 0x5bd3, 0x4ff9, 0x95, 0xb9, 0xd3, 0x05, 0x66, 0x27, 0x38, 0x56 + #define STATIC_CODECAPI_AVEncDDDigitalDeemphasis 0xe024a2c2, 0x947c, 0x45ac, 0x87, 0xd8, 0xf1, 0x03, 0x0c, 0x5c, 0x00, 0x82 + #define STATIC_CODECAPI_AVEncDDDCHighPassFilter 0x9565239f, 0x861c, 0x4ac8, 0xbf, 0xda, 0xe0, 0x0c, 0xb4, 0xdb, 0x85, 0x48 + #define STATIC_CODECAPI_AVEncDDChannelBWLowPassFilter 0xe197821d, 0xd2e7, 0x43e2, 0xad, 0x2c, 0x00, 0x58, 0x2f, 0x51, 0x85, 0x45 + #define STATIC_CODECAPI_AVEncDDLFELowPassFilter 0xd3b80f6f, 0x9d15, 0x45e5, 0x91, 0xbe, 0x01, 0x9c, 0x3f, 0xab, 0x1f, 0x01 + #define STATIC_CODECAPI_AVEncDDSurround90DegreeePhaseShift 0x25ecec9d, 0x3553, 0x42c0, 0xbb, 0x56, 0xd2, 0x57, 0x92, 0x10, 0x4f, 0x80 + #define STATIC_CODECAPI_AVEncDDSurround3dBAttenuation 0x4d43b99d, 0x31e2, 0x48b9, 0xbf, 0x2e, 0x5c, 0xbf, 0x1a, 0x57, 0x27, 0x84 + #define STATIC_CODECAPI_AVEncDDDynamicRangeCompressionControl 0xcfc2ff6d, 0x79b8, 0x4b8d, 0xa8, 0xaa, 0xa0, 0xc9, 0xbd, 0x1c, 0x29, 0x40 + #define STATIC_CODECAPI_AVEncDDRFPreEmphasisFilter 0x21af44c0, 0x244e, 0x4f3d, 0xa2, 0xcc, 0x3d, 0x30, 0x68, 0xb2, 0xe7, 0x3f + #define STATIC_CODECAPI_AVEncDDSurroundExMode 0x91607cee, 0xdbdd, 0x4eb6, 0xbc, 0xa2, 0xaa, 0xdf, 0xaf, 0xa3, 0xdd, 0x68 + #define STATIC_CODECAPI_AVEncDDPreferredStereoDownMixMode 0x7f4e6b31, 0x9185, 0x403d, 0xb0, 0xa2, 0x76, 0x37, 0x43, 0xe6, 0xf0, 0x63 + #define STATIC_CODECAPI_AVEncDDLtRtCenterMixLvl_x10 0xdca128a2, 0x491f, 0x4600, 0xb2, 0xda, 0x76, 0xe3, 0x34, 0x4b, 0x41, 0x97 + #define STATIC_CODECAPI_AVEncDDLtRtSurroundMixLvl_x10 0x212246c7, 0x3d2c, 0x4dfa, 0xbc, 0x21, 0x65, 0x2a, 0x90, 0x98, 0x69, 0x0d + #define STATIC_CODECAPI_AVEncDDLoRoCenterMixLvl_x10 0x1cfba222, 0x25b3, 0x4bf4, 0x9b, 0xfd, 0xe7, 0x11, 0x12, 0x67, 0x85, 0x8c + #define STATIC_CODECAPI_AVEncDDLoRoSurroundMixLvl_x10 0xe725cff6, 0xeb56, 0x40c7, 0x84, 0x50, 0x2b, 0x93, 0x67, 0xe9, 0x15, 0x55 + #define STATIC_CODECAPI_AVEncDDAtoDConverterType 0x719f9612, 0x81a1, 0x47e0, 0x9a, 0x05, 0xd9, 0x4a, 0xd5, 0xfc, 0xa9, 0x48 + #define STATIC_CODECAPI_AVEncDDHeadphoneMode 0x4052dbec, 0x52f5, 0x42f5, 0x9b, 0x00, 0xd1, 0x34, 0xb1, 0x34, 0x1b, 0x9d + #define STATIC_CODECAPI_AVEncWMVKeyFrameDistance 0x5569055e, 0xe268, 0x4771, 0xb8, 0x3e, 0x95, 0x55, 0xea, 0x28, 0xae, 0xd3 + #define STATIC_CODECAPI_AVEncWMVInterlacedEncoding 0xe3d00f8a, 0xc6f5, 0x4e14, 0xa5, 0x88, 0x0e, 0xc8, 0x7a, 0x72, 0x6f, 0x9b + #define STATIC_CODECAPI_AVEncWMVDecoderComplexity 0xf32c0dab, 0xf3cb, 0x4217, 0xb7, 0x9f, 0x87, 0x62, 0x76, 0x8b, 0x5f, 0x67 + #define STATIC_CODECAPI_AVEncWMVKeyFrameBufferLevelMarker 0x51ff1115, 0x33ac, 0x426c, 0xa1, 0xb1, 0x09, 0x32, 0x1b, 0xdf, 0x96, 0xb4 + #define STATIC_CODECAPI_AVEncWMVProduceDummyFrames 0xd669d001, 0x183c, 0x42e3, 0xa3, 0xca, 0x2f, 0x45, 0x86, 0xd2, 0x39, 0x6c + #define STATIC_CODECAPI_AVEncStatWMVCBAvg 0x6aa6229f, 0xd602, 0x4b9d, 0xb6, 0x8c, 0xc1, 0xad, 0x78, 0x88, 0x4b, 0xef + #define STATIC_CODECAPI_AVEncStatWMVCBMax 0xe976bef8, 0x00fe, 0x44b4, 0xb6, 0x25, 0x8f, 0x23, 0x8b, 0xc0, 0x34, 0x99 + #define STATIC_CODECAPI_AVEncStatWMVDecoderComplexityProfile 0x89e69fc3, 0x0f9b, 0x436c, 0x97, 0x4a, 0xdf, 0x82, 0x12, 0x27, 0xc9, 0x0d + #define STATIC_CODECAPI_AVEncStatMPVSkippedEmptyFrames 0x32195fd3, 0x590d, 0x4812, 0xa7, 0xed, 0x6d, 0x63, 0x9a, 0x1f, 0x97, 0x11 + #define STATIC_CODECAPI_AVEncMP12PktzSTDBuffer 0x0b751bd0, 0x819e, 0x478c, 0x94, 0x35, 0x75, 0x20, 0x89, 0x26, 0xb3, 0x77 + #define STATIC_CODECAPI_AVEncMP12PktzStreamID 0xc834d038, 0xf5e8, 0x4408, 0x9b, 0x60, 0x88, 0xf3, 0x64, 0x93, 0xfe, 0xdf + #define STATIC_CODECAPI_AVEncMP12PktzInitialPTS 0x2a4f2065, 0x9a63, 0x4d20, 0xae, 0x22, 0x0a, 0x1b, 0xc8, 0x96, 0xa3, 0x15 + #define STATIC_CODECAPI_AVEncMP12PktzPacketSize 0xab71347a, 0x1332, 0x4dde, 0xa0, 0xe5, 0xcc, 0xf7, 0xda, 0x8a, 0x0f, 0x22 + #define STATIC_CODECAPI_AVEncMP12PktzCopyright 0xc8f4b0c1, 0x094c, 0x43c7, 0x8e, 0x68, 0xa5, 0x95, 0x40, 0x5a, 0x6e, 0xf8 + #define STATIC_CODECAPI_AVEncMP12PktzOriginal 0x6b178416, 0x31b9, 0x4964, 0x94, 0xcb, 0x6b, 0xff, 0x86, 0x6c, 0xdf, 0x83 + #define STATIC_CODECAPI_AVEncMP12MuxPacketOverhead 0xe40bd720, 0x3955, 0x4453, 0xac, 0xf9, 0xb7, 0x91, 0x32, 0xa3, 0x8f, 0xa0 + #define STATIC_CODECAPI_AVEncMP12MuxNumStreams 0xf7164a41, 0xdced, 0x4659, 0xa8, 0xf2, 0xfb, 0x69, 0x3f, 0x2a, 0x4c, 0xd0 + #define STATIC_CODECAPI_AVEncMP12MuxEarliestPTS 0x157232b6, 0xf809, 0x474e, 0x94, 0x64, 0xa7, 0xf9, 0x30, 0x14, 0xa8, 0x17 + #define STATIC_CODECAPI_AVEncMP12MuxLargestPacketSize 0x35ceb711, 0xf461, 0x4b92, 0xa4, 0xef, 0x17, 0xb6, 0x84, 0x1e, 0xd2, 0x54 + #define STATIC_CODECAPI_AVEncMP12MuxInitialSCR 0x3433ad21, 0x1b91, 0x4a0b, 0xb1, 0x90, 0x2b, 0x77, 0x06, 0x3b, 0x63, 0xa4 + #define STATIC_CODECAPI_AVEncMP12MuxMuxRate 0xee047c72, 0x4bdb, 0x4a9d, 0x8e, 0x21, 0x41, 0x92, 0x6c, 0x82, 0x3d, 0xa7 + #define STATIC_CODECAPI_AVEncMP12MuxPackSize 0xf916053a, 0x1ce8, 0x4faf, 0xaa, 0x0b, 0xba, 0x31, 0xc8, 0x00, 0x34, 0xb8 + #define STATIC_CODECAPI_AVEncMP12MuxSysSTDBufferBound 0x35746903, 0xb545, 0x43e7, 0xbb, 0x35, 0xc5, 0xe0, 0xa7, 0xd5, 0x09, 0x3c + #define STATIC_CODECAPI_AVEncMP12MuxSysRateBound 0x05f0428a, 0xee30, 0x489d, 0xae, 0x28, 0x20, 0x5c, 0x72, 0x44, 0x67, 0x10 + #define STATIC_CODECAPI_AVEncMP12MuxTargetPacketizer 0xd862212a, 0x2015, 0x45dd, 0x9a, 0x32, 0x1b, 0x3a, 0xa8, 0x82, 0x05, 0xa0 + #define STATIC_CODECAPI_AVEncMP12MuxSysFixed 0xcefb987e, 0x894f, 0x452e, 0x8f, 0x89, 0xa4, 0xef, 0x8c, 0xec, 0x06, 0x3a + #define STATIC_CODECAPI_AVEncMP12MuxSysCSPS 0x7952ff45, 0x9c0d, 0x4822, 0xbc, 0x82, 0x8a, 0xd7, 0x72, 0xe0, 0x29, 0x93 + #define STATIC_CODECAPI_AVEncMP12MuxSysVideoLock 0xb8296408, 0x2430, 0x4d37, 0xa2, 0xa1, 0x95, 0xb3, 0xe4, 0x35, 0xa9, 0x1d + #define STATIC_CODECAPI_AVEncMP12MuxSysAudioLock 0x0fbb5752, 0x1d43, 0x47bf, 0xbd, 0x79, 0xf2, 0x29, 0x3d, 0x8c, 0xe3, 0x37 + #define STATIC_CODECAPI_AVEncMP12MuxDVDNavPacks 0xc7607ced, 0x8cf1, 0x4a99, 0x83, 0xa1, 0xee, 0x54, 0x61, 0xbe, 0x35, 0x74 + + #define STATIC_CODECAPI_AVEncMPACopyright 0xa6ae762a, 0xd0a9, 0x4454, 0xb8, 0xef, 0xf2, 0xdb, 0xee, 0xfd, 0xd3, 0xbd + #define STATIC_CODECAPI_AVEncMPAOriginalBitstream 0x3cfb7855, 0x9cc9, 0x47ff, 0xb8, 0x29, 0xb3, 0x67, 0x86, 0xc9, 0x23, 0x46 + #define STATIC_CODECAPI_AVEncMPAEnableRedundancyProtection 0x5e54b09e, 0xb2e7, 0x4973, 0xa8, 0x9b, 0x0b, 0x36, 0x50, 0xa3, 0xbe, 0xda + #define STATIC_CODECAPI_AVEncMPAPrivateUserBit 0xafa505ce, 0xc1e3, 0x4e3d, 0x85, 0x1b, 0x61, 0xb7, 0x00, 0xe5, 0xe6, 0xcc + #define STATIC_CODECAPI_AVEncMPAEmphasisType 0x2d59fcda, 0xbf4e, 0x4ed6, 0xb5, 0xdf, 0x5b, 0x03, 0xb3, 0x6b, 0x0a, 0x1f + + + #define STATIC_CODECAPI_AVDecCommonMeanBitRate 0x59488217, 0x007a, 0x4f7a, 0x8e, 0x41, 0x5c, 0x48, 0xb1, 0xea, 0xc5, 0xc6 + #define STATIC_CODECAPI_AVDecCommonMeanBitRateInterval 0x0ee437c6, 0x38a7, 0x4c5c, 0x94, 0x4c, 0x68, 0xab, 0x42, 0x11, 0x6b, 0x85 + #define STATIC_CODECAPI_AVDecCommonInputFormat 0xe5005239, 0xbd89, 0x4be3, 0x9c, 0x0f, 0x5d, 0xde, 0x31, 0x79, 0x88, 0xcc + #define STATIC_CODECAPI_AVDecCommonOutputFormat 0x3c790028, 0xc0ce, 0x4256, 0xb1, 0xa2, 0x1b, 0x0f, 0xc8, 0xb1, 0xdc, 0xdc + + #define STATIC_CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded 0x696e1d30, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd + #define STATIC_CODECAPI_GUID_AVDecAudioOutputFormat_PCM 0x696e1d31, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd + #define STATIC_CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_PCM 0x696e1d32, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd + #define STATIC_CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_Bitstream 0x696e1d33, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd + #define STATIC_CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Headphones 0x696e1d34, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd + #define STATIC_CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto 0x696e1d35, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd + + #define STATIC_CODECAPI_AVDecVideoImageSize 0x5ee5747c, 0x6801, 0x4cab, 0xaa, 0xf1, 0x62, 0x48, 0xfa, 0x84, 0x1b, 0xa4 + #define STATIC_CODECAPI_AVDecVideoInputScanType 0x38477e1f, 0x0ea7, 0x42cd, 0x8c, 0xd1, 0x13, 0x0c, 0xed, 0x57, 0xc5, 0x80 + #define STATIC_CODECAPI_AVDecVideoPixelAspectRatio 0xb0cf8245, 0xf32d, 0x41df, 0xb0, 0x2c, 0x87, 0xbd, 0x30, 0x4d, 0x12, 0xab + #define STATIC_CODECAPI_AVDecVideoAcceleration_MPEG2 0xf7db8a2e, 0x4f48, 0x4ee8, 0xae, 0x31, 0x8b, 0x6e, 0xbe, 0x55, 0x8a, 0xe2 + #define STATIC_CODECAPI_AVDecVideoAcceleration_H264 0xf7db8a2f, 0x4f48, 0x4ee8, 0xae, 0x31, 0x8b, 0x6e, 0xbe, 0x55, 0x8a, 0xe2 + #define STATIC_CODECAPI_AVDecVideoAcceleration_VC1 0xf7db8a30, 0x4f48, 0x4ee8, 0xae, 0x31, 0x8b, 0x6e, 0xbe, 0x55, 0x8a, 0xe2 + #define STATIC_CODECAPI_AVDecVideoProcDeinterlaceCSC 0xf7db8a31, 0x4f48, 0x4ee8, 0xae, 0x31, 0x8b, 0x6e, 0xbe, 0x55, 0x8a, 0xe2 + + #define STATIC_CODECAPI_AVDecVideoThumbnailGenerationMode 0x2efd8eee, 0x1150, 0x4328, 0x9c, 0xf5, 0x66, 0xdc, 0xe9, 0x33, 0xfc, 0xf4 + #define STATIC_CODECAPI_AVDecVideoDropPicWithMissingRef 0xf8226383, 0x14c2, 0x4567, 0x97, 0x34, 0x50, 0x4, 0xe9, 0x6f, 0xf8, 0x87 + #define STATIC_CODECAPI_AVDecVideoSoftwareDeinterlaceMode 0x0c08d1ce, 0x9ced, 0x4540, 0xba, 0xe3, 0xce, 0xb3, 0x80, 0x14, 0x11, 0x09 + #define STATIC_CODECAPI_AVDecVideoFastDecodeMode 0x6b529f7d, 0xd3b1, 0x49c6, 0xa9, 0x99, 0x9e, 0xc6, 0x91, 0x1b, 0xed, 0xbf + #define STATIC_CODECAPI_AVLowLatencyMode 0x9c27891a, 0xed7a, 0x40e1, 0x88, 0xe8, 0xb2, 0x27, 0x27, 0xa0, 0x24, 0xee + #define STATIC_CODECAPI_AVDecVideoH264ErrorConcealment 0xececace8, 0x3436, 0x462c, 0x92, 0x94, 0xcd, 0x7b, 0xac, 0xd7, 0x58, 0xa9 + #define STATIC_CODECAPI_AVDecVideoMPEG2ErrorConcealment 0x9d2bfe18, 0x728d, 0x48d2, 0xb3, 0x58, 0xbc, 0x7e, 0x43, 0x6c, 0x66, 0x74 + #define STATIC_CODECAPI_AVDecVideoCodecType 0x434528e5, 0x21f0, 0x46b6, 0xb6, 0x2c, 0x9b, 0x1b, 0x6b, 0x65, 0x8c, 0xd1 + #define STATIC_CODECAPI_AVDecVideoDXVAMode 0xf758f09e, 0x7337, 0x4ae7, 0x83, 0x87, 0x73, 0xdc, 0x2d, 0x54, 0xe6, 0x7d + #define STATIC_CODECAPI_AVDecVideoDXVABusEncryption 0x42153c8b, 0xfd0b, 0x4765, 0xa4, 0x62, 0xdd, 0xd9, 0xe8, 0xbc, 0xc3, 0x88 + #define STATIC_CODECAPI_AVDecVideoSWPowerLevel 0xfb5d2347, 0x4dd8, 0x4509, 0xae, 0xd0, 0xdb, 0x5f, 0xa9, 0xaa, 0x93, 0xf4 + #define STATIC_CODECAPI_AVDecVideoMaxCodedWidth 0x5ae557b8, 0x77af, 0x41f5, 0x9f, 0xa6, 0x4d, 0xb2, 0xfe, 0x1d, 0x4b, 0xca + #define STATIC_CODECAPI_AVDecVideoMaxCodedHeight 0x7262a16a, 0xd2dc, 0x4e75, 0x9b, 0xa8, 0x65, 0xc0, 0xc6, 0xd3, 0x2b, 0x13 + #define STATIC_CODECAPI_AVDecNumWorkerThreads 0x9561c3e8, 0xea9e, 0x4435, 0x9b, 0x1e, 0xa9, 0x3e, 0x69, 0x18, 0x94, 0xd8 + #define STATIC_CODECAPI_AVDecSoftwareDynamicFormatChange 0x862e2f0a, 0x507b, 0x47ff, 0xaf, 0x47, 0x1, 0xe2, 0x62, 0x42, 0x98, 0xb7 + #define STATIC_CODECAPI_AVDecDisableVideoPostProcessing 0xf8749193, 0x667a, 0x4f2c, 0xa9, 0xe8, 0x5d, 0x4a, 0xf9, 0x24, 0xf0, 0x8f + + #define STATIC_CODECAPI_GUID_AVDecAudioInputWMA 0xc95e8dcf, 0x4058, 0x4204, 0x8c, 0x42, 0xcb, 0x24, 0xd9, 0x1e, 0x4b, 0x9b + #define STATIC_CODECAPI_GUID_AVDecAudioInputWMAPro 0x0128b7c7, 0xda72, 0x4fe3, 0xbe, 0xf8, 0x5c, 0x52, 0xe3, 0x55, 0x77, 0x04 + #define STATIC_CODECAPI_GUID_AVDecAudioInputDolby 0x8e4228a0, 0xf000, 0x4e0b, 0x8f, 0x54, 0xab, 0x8d, 0x24, 0xad, 0x61, 0xa2 + #define STATIC_CODECAPI_GUID_AVDecAudioInputDTS 0x600bc0ca, 0x6a1f, 0x4e91, 0xb2, 0x41, 0x1b, 0xbe, 0xb1, 0xcb, 0x19, 0xe0 + #define STATIC_CODECAPI_GUID_AVDecAudioInputPCM 0xf2421da5, 0xbbb4, 0x4cd5, 0xa9, 0x96, 0x93, 0x3c, 0x6b, 0x5d, 0x13, 0x47 + #define STATIC_CODECAPI_GUID_AVDecAudioInputMPEG 0x91106f36, 0x02c5, 0x4f75, 0x97, 0x19, 0x3b, 0x7a, 0xbf, 0x75, 0xe1, 0xf6 + #define STATIC_CODECAPI_GUID_AVDecAudioInputAAC 0x97df7828, 0xb94a, 0x47e2, 0xa4, 0xbc, 0x51, 0x19, 0x4d, 0xb2, 0x2a, 0x4d + #define STATIC_CODECAPI_GUID_AVDecAudioInputHEAAC 0x16efb4aa, 0x330e, 0x4f5c, 0x98, 0xa8, 0xcf, 0x6a, 0xc5, 0x5c, 0xbe, 0x60 + #define STATIC_CODECAPI_GUID_AVDecAudioInputDolbyDigitalPlus 0x0803e185, 0x8f5d, 0x47f5, 0x99, 0x08, 0x19, 0xa5, 0xbb, 0xc9, 0xfe, 0x34 + + #define STATIC_CODECAPI_AVDecAACDownmixMode 0x01274475, 0xf6bb, 0x4017, 0xb0, 0x84, 0x81, 0xa7, 0x63, 0xc9, 0x42, 0xd4 + #define STATIC_CODECAPI_AVDecHEAACDynamicRangeControl 0x287c8abe, 0x69a4, 0x4d39, 0x80, 0x80, 0xd3, 0xd9, 0x71, 0x21, 0x78, 0xa0 + + #define STATIC_CODECAPI_AVDecAudioDualMono 0x4a52cda8, 0x30f8, 0x4216, 0xbe, 0x0f, 0xba, 0x0b, 0x20, 0x25, 0x92, 0x1d + #define STATIC_CODECAPI_AVDecAudioDualMonoReproMode 0xa5106186, 0xcc94, 0x4bc9, 0x8c, 0xd9, 0xaa, 0x2f, 0x61, 0xf6, 0x80, 0x7e + + #define STATIC_CODECAPI_AVAudioChannelCount 0x1d3583c4, 0x1583, 0x474e, 0xb7, 0x1a, 0x5e, 0xe4, 0x63, 0xc1, 0x98, 0xe4 + #define STATIC_CODECAPI_AVAudioChannelConfig 0x17f89cb3, 0xc38d, 0x4368, 0x9e, 0xde, 0x63, 0xb9, 0x4d, 0x17, 0x7f, 0x9f + #define STATIC_CODECAPI_AVAudioSampleRate 0x971d2723, 0x1acb, 0x42e7, 0x85, 0x5c, 0x52, 0x0a, 0x4b, 0x70, 0xa5, 0xf2 + + #define STATIC_CODECAPI_AVDDSurroundMode 0x99f2f386, 0x98d1, 0x4452, 0xa1, 0x63, 0xab, 0xc7, 0x8a, 0x6e, 0xb7, 0x70 + #define STATIC_CODECAPI_AVDecDDOperationalMode 0xd6d6c6d1, 0x064e, 0x4fdd, 0xa4, 0x0e, 0x3e, 0xcb, 0xfc, 0xb7, 0xeb, 0xd0 + #define STATIC_CODECAPI_AVDecDDMatrixDecodingMode 0xddc811a5, 0x04ed, 0x4bf3, 0xa0, 0xca, 0xd0, 0x04, 0x49, 0xf9, 0x35, 0x5f + #define STATIC_CODECAPI_AVDecDDDynamicRangeScaleHigh 0x50196c21, 0x1f33, 0x4af5, 0xb2, 0x96, 0x11, 0x42, 0x6d, 0x6c, 0x87, 0x89 + #define STATIC_CODECAPI_AVDecDDDynamicRangeScaleLow 0x044e62e4, 0x11a5, 0x42d5, 0xa3, 0xb2, 0x3b, 0xb2, 0xc7, 0xc2, 0xd7, 0xcf + #define STATIC_CODECAPI_AVDecDDStereoDownMixMode 0x6ce4122c, 0x3ee9, 0x4182, 0xb4, 0xae, 0xc1, 0x0f, 0xc0, 0x88, 0x64, 0x9d + + #define STATIC_CODECAPI_AVDSPLoudnessEqualization 0x8afd1a15, 0x1812, 0x4cbf, 0x93, 0x19, 0x43, 0x3a, 0x5b, 0x2a, 0x3b, 0x27 + #define STATIC_CODECAPI_AVDSPSpeakerFill 0x5612bca1, 0x56da, 0x4582, 0x8d, 0xa1, 0xca, 0x80, 0x90, 0xf9, 0x27, 0x68 + + #define STATIC_CODECAPI_AVPriorityControl 0x54ba3dc8, 0xbdde, 0x4329, 0xb1, 0x87, 0x20, 0x18, 0xbc, 0x5c, 0x2b, 0xa1 + #define STATIC_CODECAPI_AVRealtimeControl 0x6f440632, 0xc4ad, 0x4bf7, 0x9e, 0x52, 0x45, 0x69, 0x42, 0xb4, 0x54, 0xb0 + #define STATIC_CODECAPI_AVEncMaxFrameRate 0xb98e1b31, 0x19fa, 0x4d4f, 0x99, 0x31, 0xd6, 0xa5, 0xb8, 0xaa, 0xb9, 0x3c + + #define STATIC_CODECAPI_AVEncNoInputCopy 0xd2b46a2a, 0xe8ee, 0x4ec5, 0x86, 0x9e, 0x44, 0x9b, 0x6c, 0x62, 0xc8, 0x1a + + #define STATIC_CODECAPI_AVEncChromaEncodeMode 0x8a47ab5a, 0x4798, 0x4c93, 0xb5, 0xa5, 0x55, 0x4f, 0x9a, 0x3b, 0x9f, 0x50 + #define STATIC_CODECAPI_AVEncProgressiveUpdateTime 0x649faf66, 0xafc6, 0x4828, 0x8f, 0xdc, 0x07, 0x71, 0xcd, 0x9a, 0xb1, 0x7d + #define STATIC_CODECAPI_AVEncChromaUpdateTime 0x4b4fd998, 0x4274, 0x40bb, 0x8e, 0xe4, 0x07, 0x55, 0x3e, 0x7e, 0x2d, 0x3a + #define STATIC_CODECAPI_AVEncAACEnableVBR 0xe836bb98, 0xfca3, 0x44b6, 0x9a, 0x39, 0x24, 0x78, 0x6b, 0xe4, 0x1b, 0xe1 + #define STATIC_CODECAPI_AVEncVideoConsecutiveFramesForLayer 0x0AF35522, 0xD984, 0x45ae, 0xBB, 0xB8, 0x53, 0x93, 0x3E, 0x0A, 0xB1, 0xB5 + #define STATIC_CODECAPI_AVEncVideoMaxNumRefFrameForLayer 0x3141C639, 0x6329, 0x40d1, 0xB7, 0xE7, 0x2F, 0x0E, 0x3A, 0xC1, 0x8E, 0x02 + #define STATIC_CODECAPI_AVEncTileRows 0xFBC650FC, 0x41AB, 0x4f9b, 0x84, 0xB5, 0x06, 0x5B, 0xE9, 0xCD, 0x99, 0xEE + #define STATIC_CODECAPI_AVEncTileColumns 0xB4B31205, 0x01E8, 0x452c, 0xB8, 0x76, 0x8C, 0x65, 0x06, 0x54, 0x59, 0x25 + #define STATIC_CODECAPI_FeatureMapFlagsUsed 0x8bfda3b8, 0x7387, 0x4c07, 0x92, 0x4f, 0xfe, 0x63, 0x0, 0x6c, 0xf2, 0x2b + + #define STATIC_CODECAPI_AVEncVideoEnableSpatialAdaptiveQuantization 0x659cb943, 0x15ca, 0x448d, 0xb9, 0x9a, 0x87, 0x56, 0x19, 0xdb, 0x4d, 0xe4 + #define STATIC_CODECAPI_AVEncVideoEnableFramePsnrYuv 0x2bbcdd1d, 0xbc47, 0x430e, 0xb2, 0xe8, 0x64, 0x80, 0x1b, 0x47, 0xf5, 0xf0 + #define STATIC_CODECAPI_AVEncVideoOutputQPMapBlockSize 0x97038743, 0x4ae3, 0x44c3, 0xa0, 0xf2, 0x5b, 0xd5, 0x8a, 0x46, 0x34, 0xef + #define STATIC_CODECAPI_AVEncVideoOutputBitsUsedMapBlockSize 0x6c2cd11a, 0xca3b, 0x44bd, 0x9a, 0x9e, 0x93, 0xb0, 0x36, 0x34, 0xc3, 0x6e + #define STATIC_CODECAPI_AVEncVideoSatdMapBlockSize 0x596f1106, 0x8ce0, 0x4302, 0xaf, 0x79, 0xc4, 0xec, 0x67, 0xaa, 0xdc, 0x6 + + #define STATIC_CODECAPI_AVEncVideoInputDeltaQPBlockSettings 0x5a4787dc, 0x648, 0x47aa, 0xb9, 0x45, 0x55, 0x2b, 0xfa, 0xd2, 0xa6, 0xd8 + #define STATIC_CODECAPI_AVEncVideoInputAbsoluteQPBlockSettings 0xef95a145, 0x4f91, 0x4dea, 0x81, 0x73, 0xac, 0xff, 0x11, 0x43, 0x42, 0x10 +// end of static definitions } + +// +// Common Parameters +// + +// AVEncCommonFormatConstraint (GUID) + +DEFINE_CODECAPI_GUID( AVEncCommonFormatConstraint, "57cbb9b8-116f-4951-b40c-c2a035ed8f17", 0x57cbb9b8, 0x116f, 0x4951, 0xb4, 0x0c, 0xc2, 0xa0, 0x35, 0xed, 0x8f, 0x17 ) + +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatUnSpecified, "af46a35a-6024-4525-a48a-094b97f5b3c2", 0xaf46a35a, 0x6024, 0x4525, 0xa4, 0x8a, 0x09, 0x4b, 0x97, 0xf5, 0xb3, 0xc2 ) +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatDVD_V, "cc9598c4-e7fe-451d-b1ca-761bc840b7f3", 0xcc9598c4, 0xe7fe, 0x451d, 0xb1, 0xca, 0x76, 0x1b, 0xc8, 0x40, 0xb7, 0xf3 ) +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatDVD_DashVR, "e55199d6-044c-4dae-a488-531ed306235b", 0xe55199d6, 0x044c, 0x4dae, 0xa4, 0x88, 0x53, 0x1e, 0xd3, 0x06, 0x23, 0x5b ) +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatDVD_PlusVR, "e74c6f2e-ec37-478d-9af4-a5e135b6271c", 0xe74c6f2e, 0xec37, 0x478d, 0x9a, 0xf4, 0xa5, 0xe1, 0x35, 0xb6, 0x27, 0x1c ) +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatVCD, "95035bf7-9d90-40ff-ad5c-5cf8cf71ca1d", 0x95035bf7, 0x9d90, 0x40ff, 0xad, 0x5c, 0x5c, 0xf8, 0xcf, 0x71, 0xca, 0x1d ) +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatSVCD, "51d85818-8220-448c-8066-d69bed16c9ad", 0x51d85818, 0x8220, 0x448c, 0x80, 0x66, 0xd6, 0x9b, 0xed, 0x16, 0xc9, 0xad ) +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatATSC, "8d7b897c-a019-4670-aa76-2edcac7ac296", 0x8d7b897c, 0xa019, 0x4670, 0xaa, 0x76, 0x2e, 0xdc, 0xac, 0x7a, 0xc2, 0x96 ) +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatDVB, "71830d8f-6c33-430d-844b-c2705baae6db", 0x71830d8f, 0x6c33, 0x430d, 0x84, 0x4b, 0xc2, 0x70, 0x5b, 0xaa, 0xe6, 0xdb ) +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatMP3, "349733cd-eb08-4dc2-8197-e49835ef828b", 0x349733cd, 0xeb08, 0x4dc2, 0x81, 0x97, 0xe4, 0x98, 0x35, 0xef, 0x82, 0x8b ) +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatHighMAT, "1eabe760-fb2b-4928-90d1-78db88eee889", 0x1eabe760, 0xfb2b, 0x4928, 0x90, 0xd1, 0x78, 0xdb, 0x88, 0xee, 0xe8, 0x89 ) +DEFINE_CODECAPI_GUID( GUID_AVEncCommonFormatHighMPV, "a2d25db8-b8f9-42c2-8bc7-0b93cf604788", 0xa2d25db8, 0xb8f9, 0x42c2, 0x8b, 0xc7, 0x0b, 0x93, 0xcf, 0x60, 0x47, 0x88 ) + +// AVEncCodecType (GUID) +DEFINE_CODECAPI_GUID( AVEncCodecType, "08af4ac1-f3f2-4c74-9dcf-37f2ec79f826", 0x08af4ac1, 0xf3f2, 0x4c74, 0x9d, 0xcf, 0x37, 0xf2, 0xec, 0x79, 0xf8, 0x26 ) + +DEFINE_CODECAPI_GUID( GUID_AVEncMPEG1Video, "c8dafefe-da1e-4774-b27d-11830c16b1fe", 0xc8dafefe, 0xda1e, 0x4774, 0xb2, 0x7d, 0x11, 0x83, 0x0c, 0x16, 0xb1, 0xfe ) +DEFINE_CODECAPI_GUID( GUID_AVEncMPEG2Video, "046dc19a-6677-4aaa-a31d-c1ab716f4560", 0x046dc19a, 0x6677, 0x4aaa, 0xa3, 0x1d, 0xc1, 0xab, 0x71, 0x6f, 0x45, 0x60 ) +DEFINE_CODECAPI_GUID( GUID_AVEncMPEG1Audio, "d4dd1362-cd4a-4cd6-8138-b94db4542b04", 0xd4dd1362, 0xcd4a, 0x4cd6, 0x81, 0x38, 0xb9, 0x4d, 0xb4, 0x54, 0x2b, 0x04 ) +DEFINE_CODECAPI_GUID( GUID_AVEncMPEG2Audio, "ee4cbb1f-9c3f-4770-92b5-fcb7c2a8d381", 0xee4cbb1f, 0x9c3f, 0x4770, 0x92, 0xb5, 0xfc, 0xb7, 0xc2, 0xa8, 0xd3, 0x81 ) +DEFINE_CODECAPI_GUID( GUID_AVEncWMV, "4e0fef9b-1d43-41bd-b8bd-4d7bf7457a2a", 0x4e0fef9b, 0x1d43, 0x41bd, 0xb8, 0xbd, 0x4d, 0x7b, 0xf7, 0x45, 0x7a, 0x2a ) +DEFINE_CODECAPI_GUID( GUID_AVEndMPEG4Video, "dd37b12a-9503-4f8b-b8d0-324a00c0a1cf", 0xdd37b12a, 0x9503, 0x4f8b, 0xb8, 0xd0, 0x32, 0x4a, 0x00, 0xc0, 0xa1, 0xcf ) +DEFINE_CODECAPI_GUID( GUID_AVEncH264Video, "95044eab-31b3-47de-8e75-38a42bb03e28", 0x95044eab, 0x31b3, 0x47de, 0x8e, 0x75, 0x38, 0xa4, 0x2b, 0xb0, 0x3e, 0x28 ) +DEFINE_CODECAPI_GUID( GUID_AVEncDV, "09b769c7-3329-44fb-8954-fa30937d3d5a", 0x09b769c7, 0x3329, 0x44fb, 0x89, 0x54, 0xfa, 0x30, 0x93, 0x7d, 0x3d, 0x5a ) +DEFINE_CODECAPI_GUID( GUID_AVEncWMAPro, "1955f90c-33f7-4a68-ab81-53f5657125c4", 0x1955f90c, 0x33f7, 0x4a68, 0xab, 0x81, 0x53, 0xf5, 0x65, 0x71, 0x25, 0xc4 ) +DEFINE_CODECAPI_GUID( GUID_AVEncWMALossless, "55ca7265-23d8-4761-9031-b74fbe12f4c1", 0x55ca7265, 0x23d8, 0x4761, 0x90, 0x31, 0xb7, 0x4f, 0xbe, 0x12, 0xf4, 0xc1 ) +DEFINE_CODECAPI_GUID( GUID_AVEncWMAVoice, "13ed18cb-50e8-4276-a288-a6aa228382d9", 0x13ed18cb, 0x50e8, 0x4276, 0xa2, 0x88, 0xa6, 0xaa, 0x22, 0x83, 0x82, 0xd9 ) +DEFINE_CODECAPI_GUID( GUID_AVEncDolbyDigitalPro, "f5be76cc-0ff8-40eb-9cb1-bba94004d44f", 0xf5be76cc, 0x0ff8, 0x40eb, 0x9c, 0xb1, 0xbb, 0xa9, 0x40, 0x04, 0xd4, 0x4f ) +DEFINE_CODECAPI_GUID( GUID_AVEncDolbyDigitalConsumer, "c1a7bf6c-0059-4bfa-94ef-ef747a768d52", 0xc1a7bf6c, 0x0059, 0x4bfa, 0x94, 0xef, 0xef, 0x74, 0x7a, 0x76, 0x8d, 0x52 ) +DEFINE_CODECAPI_GUID( GUID_AVEncDolbyDigitalPlus, "698d1b80-f7dd-415c-971c-42492a2056c6", 0x698d1b80, 0xf7dd, 0x415c, 0x97, 0x1c, 0x42, 0x49, 0x2a, 0x20, 0x56, 0xc6 ) +DEFINE_CODECAPI_GUID( GUID_AVEncDTSHD, "2052e630-469d-4bfb-80ca-1d656e7e918f", 0x2052e630, 0x469d, 0x4bfb, 0x80, 0xca, 0x1d, 0x65, 0x6e, 0x7e, 0x91, 0x8f ) +DEFINE_CODECAPI_GUID( GUID_AVEncDTS, "45fbcaa2-5e6e-4ab0-8893-5903bee93acf", 0x45fbcaa2, 0x5e6e, 0x4ab0, 0x88, 0x93, 0x59, 0x03, 0xbe, 0xe9, 0x3a, 0xcf ) +DEFINE_CODECAPI_GUID( GUID_AVEncMLP, "05f73e29-f0d1-431e-a41c-a47432ec5a66", 0x05f73e29, 0xf0d1, 0x431e, 0xa4, 0x1c, 0xa4, 0x74, 0x32, 0xec, 0x5a, 0x66 ) +DEFINE_CODECAPI_GUID( GUID_AVEncPCM, "844be7f4-26cf-4779-b386-cc05d187990c", 0x844be7f4, 0x26cf, 0x4779, 0xb3, 0x86, 0xcc, 0x05, 0xd1, 0x87, 0x99, 0x0c ) +DEFINE_CODECAPI_GUID( GUID_AVEncSDDS, "1dc1b82f-11c8-4c71-b7b6-ee3eb9bc2b94", 0x1dc1b82f, 0x11c8, 0x4c71, 0xb7, 0xb6, 0xee, 0x3e, 0xb9, 0xbc, 0x2b, 0x94 ) + + + + +// AVEncCommonRateControlMode (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonRateControlMode, "1c0608e9-370c-4710-8a58-cb6181c42423", 0x1c0608e9, 0x370c, 0x4710, 0x8a, 0x58, 0xcb, 0x61, 0x81, 0xc4, 0x24, 0x23 ) + +enum eAVEncCommonRateControlMode +{ + eAVEncCommonRateControlMode_CBR = 0, + eAVEncCommonRateControlMode_PeakConstrainedVBR = 1, + eAVEncCommonRateControlMode_UnconstrainedVBR = 2, + eAVEncCommonRateControlMode_Quality = 3, + + eAVEncCommonRateControlMode_LowDelayVBR = 4, + eAVEncCommonRateControlMode_GlobalVBR = 5, + eAVEncCommonRateControlMode_GlobalLowDelayVBR = 6 +}; + +// AVEncCommonLowLatency (BOOL) +DEFINE_CODECAPI_GUID( AVEncCommonLowLatency, "9d3ecd55-89e8-490a-970a-0c9548d5a56e", 0x9d3ecd55, 0x89e8, 0x490a, 0x97, 0x0a, 0x0c, 0x95, 0x48, 0xd5, 0xa5, 0x6e ) + +// AVEncCommonMultipassMode (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonMultipassMode, "22533d4c-47e1-41b5-9352-a2b7780e7ac4", 0x22533d4c, 0x47e1, 0x41b5, 0x93, 0x52, 0xa2, 0xb7, 0x78, 0x0e, 0x7a, 0xc4 ) + +// AVEncCommonPassStart (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonPassStart, "6a67739f-4eb5-4385-9928-f276a939ef95", 0x6a67739f, 0x4eb5, 0x4385, 0x99, 0x28, 0xf2, 0x76, 0xa9, 0x39, 0xef, 0x95 ) + +// AVEncCommonPassEnd (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonPassEnd, "0e3d01bc-c85c-467d-8b60-c41012ee3bf6", 0x0e3d01bc, 0xc85c, 0x467d, 0x8b, 0x60, 0xc4, 0x10, 0x12, 0xee, 0x3b, 0xf6 ) + +// AVEncCommonRealTime (BOOL) +DEFINE_CODECAPI_GUID( AVEncCommonRealTime, "143a0ff6-a131-43da-b81e-98fbb8ec378e", 0x143a0ff6, 0xa131, 0x43da, 0xb8, 0x1e, 0x98, 0xfb, 0xb8, 0xec, 0x37, 0x8e ) + +// AVEncCommonQuality (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonQuality, "fcbf57a3-7ea5-4b0c-9644-69b40c39c391", 0xfcbf57a3, 0x7ea5, 0x4b0c, 0x96, 0x44, 0x69, 0xb4, 0x0c, 0x39, 0xc3, 0x91 ) + +// AVEncCommonQualityVsSpeed (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonQualityVsSpeed, "98332df8-03cd-476b-89fa-3f9e442dec9f", 0x98332df8, 0x03cd, 0x476b, 0x89, 0xfa, 0x3f, 0x9e, 0x44, 0x2d, 0xec, 0x9f ) + +// AVEncCommonTranscodeEncodingProfile (BSTR) +DEFINE_CODECAPI_GUID( AVEncCommonTranscodeEncodingProfile, "6947787C-F508-4EA9-B1E9-A1FE3A49FBC9", 0x6947787C, 0xF508, 0x4EA9, 0xB1, 0xE9, 0xA1, 0xFE, 0x3A, 0x49, 0xFB, 0xC9 ) + +// AVEncCommonMeanBitRate (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonMeanBitRate, "f7222374-2144-4815-b550-a37f8e12ee52", 0xf7222374, 0x2144, 0x4815, 0xb5, 0x50, 0xa3, 0x7f, 0x8e, 0x12, 0xee, 0x52 ) + +// AVEncCommonMeanBitRateInterval (UINT64) +DEFINE_CODECAPI_GUID( AVEncCommonMeanBitRateInterval, "bfaa2f0c-cb82-4bc0-8474-f06a8a0d0258", 0xbfaa2f0c, 0xcb82, 0x4bc0, 0x84, 0x74, 0xf0, 0x6a, 0x8a, 0x0d, 0x02, 0x58 ) + +// AVEncCommonMaxBitRate (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonMaxBitRate, "9651eae4-39b9-4ebf-85ef-d7f444ec7465", 0x9651eae4, 0x39b9, 0x4ebf, 0x85, 0xef, 0xd7, 0xf4, 0x44, 0xec, 0x74, 0x65 ) + +// AVEncCommonMinBitRate (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonMinBitRate, "101405b2-2083-4034-a806-efbeddd7c9ff", 0x101405b2, 0x2083, 0x4034, 0xa8, 0x06, 0xef, 0xbe, 0xdd, 0xd7, 0xc9, 0xff ) + +// AVEncCommonBufferSize (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonBufferSize, "0db96574-b6a4-4c8b-8106-3773de0310cd", 0x0db96574, 0xb6a4, 0x4c8b, 0x81, 0x06, 0x37, 0x73, 0xde, 0x03, 0x10, 0xcd ) + +// AVEncCommonBufferInLevel (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonBufferInLevel, "d9c5c8db-fc74-4064-94e9-cd19f947ed45", 0xd9c5c8db, 0xfc74, 0x4064, 0x94, 0xe9, 0xcd, 0x19, 0xf9, 0x47, 0xed, 0x45 ) + +// AVEncCommonBufferOutLevel (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonBufferOutLevel, "ccae7f49-d0bc-4e3d-a57e-fb5740140069", 0xccae7f49, 0xd0bc, 0x4e3d, 0xa5, 0x7e, 0xfb, 0x57, 0x40, 0x14, 0x00, 0x69 ) + +// AVEncCommonStreamEndHandling (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonStreamEndHandling, "6aad30af-6ba8-4ccc-8fca-18d19beaeb1c", 0x6aad30af, 0x6ba8, 0x4ccc, 0x8f, 0xca, 0x18, 0xd1, 0x9b, 0xea, 0xeb, 0x1c ) + +enum eAVEncCommonStreamEndHandling +{ + eAVEncCommonStreamEndHandling_DiscardPartial = 0, + eAVEncCommonStreamEndHandling_EnsureComplete = 1 +}; + +// +// Common Post Encode Statistical Parameters +// + +// AVEncStatCommonCompletedPasses (UINT32) +DEFINE_CODECAPI_GUID( AVEncStatCommonCompletedPasses, "3e5de533-9df7-438c-854f-9f7dd3683d34", 0x3e5de533, 0x9df7, 0x438c, 0x85, 0x4f, 0x9f, 0x7d, 0xd3, 0x68, 0x3d, 0x34 ) + +// +// Common Video Parameters +// + +// AVEncVideoOutputFrameRate (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoOutputFrameRate, "ea85e7c3-9567-4d99-87c4-02c1c278ca7c", 0xea85e7c3, 0x9567, 0x4d99, 0x87, 0xc4, 0x02, 0xc1, 0xc2, 0x78, 0xca, 0x7c ) + +// AVEncVideoOutputFrameRateConversion (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoOutputFrameRateConversion, "8c068bf4-369a-4ba3-82fd-b2518fb3396e", 0x8c068bf4, 0x369a, 0x4ba3, 0x82, 0xfd, 0xb2, 0x51, 0x8f, 0xb3, 0x39, 0x6e ) + +enum eAVEncVideoOutputFrameRateConversion +{ + eAVEncVideoOutputFrameRateConversion_Disable = 0, + eAVEncVideoOutputFrameRateConversion_Enable = 1, + eAVEncVideoOutputFrameRateConversion_Alias = 2 +}; + +// AVEncVideoPixelAspectRatio (UINT32 as UINT16/UNIT16) <---- You have WORD in the doc +DEFINE_CODECAPI_GUID( AVEncVideoPixelAspectRatio, "3cdc718f-b3e9-4eb6-a57f-cf1f1b321b87", 0x3cdc718f, 0xb3e9, 0x4eb6, 0xa5, 0x7f, 0xcf, 0x1f, 0x1b, 0x32, 0x1b, 0x87 ) + +// AVDecVideoAcceleration_MPEG2 (UINT32) +DEFINE_CODECAPI_GUID( AVDecVideoAcceleration_MPEG2, "f7db8a2e-4f48-4ee8-ae31-8b6ebe558ae2", 0xf7db8a2e, 0x4f48, 0x4ee8, 0xae, 0x31, 0x8b, 0x6e, 0xbe, 0x55, 0x8a, 0xe2 ) +DEFINE_CODECAPI_GUID( AVDecVideoAcceleration_H264, "f7db8a2f-4f48-4ee8-ae31-8b6ebe558ae2", 0xf7db8a2f, 0x4f48, 0x4ee8, 0xae, 0x31, 0x8b, 0x6e, 0xbe, 0x55, 0x8a, 0xe2 ) +DEFINE_CODECAPI_GUID( AVDecVideoAcceleration_VC1, "f7db8a30-4f48-4ee8-ae31-8b6ebe558ae2", 0xf7db8a30, 0x4f48, 0x4ee8, 0xae, 0x31, 0x8b, 0x6e, 0xbe, 0x55, 0x8a, 0xe2 ) + +// AVDecVideoProcDeinterlaceCSC (UINT32) +DEFINE_CODECAPI_GUID( AVDecVideoProcDeinterlaceCSC, "f7db8a31-4f48-4ee8-ae31-8b6ebe558ae2", 0xf7db8a31, 0x4f48, 0x4ee8, 0xae, 0x31, 0x8b, 0x6e, 0xbe, 0x55, 0x8a, 0xe2 ) + + +// AVDecVideoThumbnailGenerationMode (BOOL) +// Related to video thumbnail generation. +// Video decoders can have special configurations for fast thumbnail generation. +// For example: +// - They can use only one decoding thread so that multiple instances can be used at the same time. +// - They can also decode I frames only. +DEFINE_CODECAPI_GUID( AVDecVideoThumbnailGenerationMode, "2EFD8EEE-1150-4328-9CF5-66DCE933FCF4", 0x2efd8eee, 0x1150, 0x4328, 0x9c, 0xf5, 0x66, 0xdc, 0xe9, 0x33, 0xfc, 0xf4) + +// AVDecVideoMaxCodedWidth and AVDecVideoMaxCodedHeight +// Maximum codec width and height for current stream. +// This is used to optimize memory usage for a particular stream. +DEFINE_CODECAPI_GUID( AVDecVideoMaxCodedWidth, "5AE557B8-77AF-41f5-9FA6-4DB2FE1D4BCA", 0x5ae557b8, 0x77af, 0x41f5, 0x9f, 0xa6, 0x4d, 0xb2, 0xfe, 0x1d, 0x4b, 0xca) +DEFINE_CODECAPI_GUID( AVDecVideoMaxCodedHeight, "7262A16A-D2DC-4e75-9BA8-65C0C6D32B13", 0x7262a16a, 0xd2dc, 0x4e75, 0x9b, 0xa8, 0x65, 0xc0, 0xc6, 0xd3, 0x2b, 0x13) + +// AVDecNumWorkerThreads (INT32) +// Number of worker threads used in decoder core. +// If this number is set to -1, it means that the decoder will decide how many threads to create. +DEFINE_CODECAPI_GUID( AVDecNumWorkerThreads, "9561C3E8-EA9E-4435-9B1E-A93E691894D8", 0x9561c3e8, 0xea9e, 0x4435, 0x9b, 0x1e, 0xa9, 0x3e, 0x69, 0x18, 0x94, 0xd8) + +// AVDecSoftwareDynamicFormatChange (BOOL) +// Set whether to use software dynamic format change to internal resizing +DEFINE_CODECAPI_GUID( AVDecSoftwareDynamicFormatChange, "862E2F0A-507B-47FF-AF47-01E2624298B7", 0x862e2f0a, 0x507b, 0x47ff, 0xaf, 0x47, 0x1, 0xe2, 0x62, 0x42, 0x98, 0xb7) + +// AVDecDisableVideoPostProcessing (UINT32) +// Default value is 0 +// If this is non-zero, decoder should not do post processing like deblocking/deringing. This only controls the out of loop post processing +// all processing required by video standard (like in-loop deblocking) should still be performed. +DEFINE_CODECAPI_GUID(AVDecDisableVideoPostProcessing, "F8749193-667A-4F2C-A9E8-5D4AF924F08F", 0xf8749193, 0x667a, 0x4f2c, 0xa9, 0xe8, 0x5d, 0x4a, 0xf9, 0x24, 0xf0, 0x8f); + +// AVDecVideoDropPicWithMissingRef (BOOL) +// Related to Video decoding mode of whether to drop pictures with missing references. +// For DVD playback, we may want to do so to avoid bad blocking. For Digital TV, we may +// want to decode all pictures no matter what. +DEFINE_CODECAPI_GUID( AVDecVideoDropPicWithMissingRef, "F8226383-14C2-4567-9734-5004E96FF887", 0xf8226383, 0x14c2, 0x4567, 0x97, 0x34, 0x50, 0x4, 0xe9, 0x6f, 0xf8, 0x87) + + +// AVDecSoftwareVideoDeinterlaceMode (UINT32) +DEFINE_CODECAPI_GUID( AVDecVideoSoftwareDeinterlaceMode, "0c08d1ce-9ced-4540-bae3-ceb380141109", 0x0c08d1ce, 0x9ced, 0x4540, 0xba, 0xe3, 0xce, 0xb3, 0x80, 0x14, 0x11, 0x09); + +enum eAVDecVideoSoftwareDeinterlaceMode +{ + eAVDecVideoSoftwareDeinterlaceMode_NoDeinterlacing = 0, // do not use software deinterlace + eAVDecVideoSoftwareDeinterlaceMode_ProgressiveDeinterlacing = 1, // Use progressive deinterlace + eAVDecVideoSoftwareDeinterlaceMode_BOBDeinterlacing = 2, // BOB deinterlacing + eAVDecVideoSoftwareDeinterlaceMode_SmartBOBDeinterlacing = 3 // Smart BOB deinterlacing +}; + +// AVDecVideoFastDecodeMode (UINT32) +// 0: normal decoding +// 1-32 : Where 32 is fastest decoding. Any value between (and including) 1 to 32 is valid +DEFINE_CODECAPI_GUID( AVDecVideoFastDecodeMode, "6B529F7D-D3B1-49c6-A999-9EC6911BEDBF", 0x6b529f7d, 0xd3b1, 0x49c6, 0xa9, 0x99, 0x9e, 0xc6, 0x91, 0x1b, 0xed, 0xbf); + +enum eAVFastDecodeMode +{ + eVideoDecodeCompliant = 0, + eVideoDecodeOptimalLF = 1, // Optimal Loop Filter + eVideoDecodeDisableLF = 2, // Disable Loop Filter + eVideoDecodeFastest = 32, +}; + +// AVLowLatencyMode (DWORD) +// Related to low latency processing/decoding. +// This GUID lets the application to decrease latency. +DEFINE_CODECAPI_GUID( AVLowLatencyMode, "9C27891A-ED7A-40e1-88E8-B22727A024EE", 0x9c27891a, 0xed7a, 0x40e1, 0x88, 0xe8, 0xb2, 0x27, 0x27, 0xa0, 0x24, 0xee) + +// AVDecVideoH264ErrorConcealment (UINT32) +// Related to Video decoding mode of whether to conceal pictures with corruptions. +// For DVD playback, we may not want to do so to avoid unnecessary computation. For Digital TV, we may +// want to perform error concealment. +DEFINE_CODECAPI_GUID( AVDecVideoH264ErrorConcealment, "ECECACE8-3436-462c-9294-CD7BACD758A9", 0xececace8, 0x3436, 0x462c, 0x92, 0x94, 0xcd, 0x7b, 0xac, 0xd7, 0x58, 0xa9) + +enum eAVDecVideoH264ErrorConcealment +{ + eErrorConcealmentTypeDrop = 0, // ERR_CONCEALMENT_TYPE_DROP + eErrorConcealmentTypeBasic = 1, // ERR_CONCEALMENT_TYPE_BASIC (the default, and good mode used most of the time) + eErrorConcealmentTypeAdvanced = 2, // ERR_CONCEALMENT_TYPE_ADVANCED + eErrorConcealmentTypeDXVASetBlack = 3, // ERR_CONCEALMENT_TYPE_DXVA_SET_BLACK +}; + + +// AVDecVideoMPEG2ErrorConcealment (UINT32) +// Related to Video decoding mode of whether to conceal pictures with corruptions. +// For DVD playback, we may not want to do so to avoid unnecessary computation. For Digital TV, we may +// want to perform error concealment. +DEFINE_CODECAPI_GUID( AVDecVideoMPEG2ErrorConcealment, "9D2BFE18-728D-48d2-B358-BC7E436C6674", 0x9d2bfe18, 0x728d, 0x48d2, 0xb3, 0x58, 0xbc, 0x7e, 0x43, 0x6c, 0x66, 0x74) + +enum eAVDecVideoMPEG2ErrorConcealment +{ + eErrorConcealmentOff = 0, // + eErrorConcealmentOn = 1, // the default and good mode used most of the time +}; + + +// CODECAPI_AVDecVideoCodecType (UINT32) +DEFINE_CODECAPI_GUID(AVDecVideoCodecType, "434528E5-21F0-46b6-B62C-9B1B6B658CD1", 0x434528e5, 0x21f0, 0x46b6, 0xb6, 0x2c, 0x9b, 0x1b, 0x6b, 0x65, 0x8c, 0xd1); + +enum eAVDecVideoCodecType +{ + eAVDecVideoCodecType_NOTPLAYING = 0, + eAVDecVideoCodecType_MPEG2 = 1, + eAVDecVideoCodecType_H264 = 2 +}; + +// CODECAPI_AVDecVideoDXVAMode (UINT32) +DEFINE_CODECAPI_GUID(AVDecVideoDXVAMode, "F758F09E-7337-4ae7-8387-73DC2D54E67D", 0xf758f09e, 0x7337, 0x4ae7, 0x83, 0x87, 0x73, 0xdc, 0x2d, 0x54, 0xe6, 0x7d); + +enum eAVDecVideoDXVAMode +{ + eAVDecVideoDXVAMode_NOTPLAYING = 0, + eAVDecVideoDXVAMode_SW = 1, + eAVDecVideoDXVAMode_MC = 2, + eAVDecVideoDXVAMode_IDCT = 3, + eAVDecVideoDXVAMode_VLD = 4 +}; + + + +// CODECAPI_AVDecVideoDXVABusEncryption (UINT32) +DEFINE_CODECAPI_GUID(AVDecVideoDXVABusEncryption, "42153C8B-FD0B-4765-A462-DDD9E8BCC388", 0x42153c8b, 0xfd0b, 0x4765, 0xa4, 0x62, 0xdd, 0xd9, 0xe8, 0xbc, 0xc3, 0x88); + +enum eAVDecVideoDXVABusEncryption +{ + eAVDecVideoDXVABusEncryption_NONE = 0, + eAVDecVideoDXVABusEncryption_PRIVATE = 1, + eAVDecVideoDXVABusEncryption_AES = 2 +}; + + +// AVEncVideoForceSourceScanType (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoForceSourceScanType, "1ef2065f-058a-4765-a4fc-8a864c103012", 0x1ef2065f, 0x058a, 0x4765, 0xa4, 0xfc, 0x8a, 0x86, 0x4c, 0x10, 0x30, 0x12 ) +enum eAVEncVideoSourceScanType +{ + eAVEncVideoSourceScan_Automatic = 0, + eAVEncVideoSourceScan_Interlaced = 1, + eAVEncVideoSourceScan_Progressive = 2 +}; + +// AVEncVideoNoOfFieldsToEncode (UINT64) +DEFINE_CODECAPI_GUID( AVEncVideoNoOfFieldsToEncode, "61e4bbe2-4ee0-40e7-80ab-51ddeebe6291", 0x61e4bbe2, 0x4ee0, 0x40e7, 0x80, 0xab, 0x51, 0xdd, 0xee, 0xbe, 0x62, 0x91 ) + +// AVEncVideoNoOfFieldsToSkip (UINT64) +DEFINE_CODECAPI_GUID( AVEncVideoNoOfFieldsToSkip, "a97e1240-1427-4c16-a7f7-3dcfd8ba4cc5", 0xa97e1240, 0x1427, 0x4c16, 0xa7, 0xf7, 0x3d, 0xcf, 0xd8, 0xba, 0x4c, 0xc5 ) + +// AVEncVideoEncodeDimension (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoEncodeDimension, "1074df28-7e0f-47a4-a453-cdd73870f5ce", 0x1074df28, 0x7e0f, 0x47a4, 0xa4, 0x53, 0xcd, 0xd7, 0x38, 0x70, 0xf5, 0xce ) + +// AVEncVideoEncodeOffsetOrigin (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoEncodeOffsetOrigin, "6bc098fe-a71a-4454-852e-4d2ddeb2cd24", 0x6bc098fe, 0xa71a, 0x4454, 0x85, 0x2e, 0x4d, 0x2d, 0xde, 0xb2, 0xcd, 0x24 ) + +// AVEncVideoDisplayDimension (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoDisplayDimension, "de053668-f4ec-47a9-86d0-836770f0c1d5", 0xde053668, 0xf4ec, 0x47a9, 0x86, 0xd0, 0x83, 0x67, 0x70, 0xf0, 0xc1, 0xd5 ) + +// AVEncVideoOutputScanType (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoOutputScanType, "460b5576-842e-49ab-a62d-b36f7312c9db", 0x460b5576, 0x842e, 0x49ab, 0xa6, 0x2d, 0xb3, 0x6f, 0x73, 0x12, 0xc9, 0xdb ) +enum eAVEncVideoOutputScanType +{ + eAVEncVideoOutputScan_Progressive = 0, + eAVEncVideoOutputScan_Interlaced = 1, + eAVEncVideoOutputScan_SameAsInput = 2, + eAVEncVideoOutputScan_Automatic = 3 +}; + +// AVEncVideoInverseTelecineEnable (BOOL) +DEFINE_CODECAPI_GUID( AVEncVideoInverseTelecineEnable, "2ea9098b-e76d-4ccd-a030-d3b889c1b64c", 0x2ea9098b, 0xe76d, 0x4ccd, 0xa0, 0x30, 0xd3, 0xb8, 0x89, 0xc1, 0xb6, 0x4c ) + +// AVEncVideoInverseTelecineThreshold (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoInverseTelecineThreshold, "40247d84-e895-497f-b44c-b74560acfe27", 0x40247d84, 0xe895, 0x497f, 0xb4, 0x4c, 0xb7, 0x45, 0x60, 0xac, 0xfe, 0x27 ) + +// AVEncVideoSourceFilmContent (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoSourceFilmContent, "1791c64b-ccfc-4827-a0ed-2557793b2b1c", 0x1791c64b, 0xccfc, 0x4827, 0xa0, 0xed, 0x25, 0x57, 0x79, 0x3b, 0x2b, 0x1c ) + +enum eAVEncVideoFilmContent +{ + eAVEncVideoFilmContent_VideoOnly = 0, + eAVEncVideoFilmContent_FilmOnly = 1, + eAVEncVideoFilmContent_Mixed = 2 +}; + +// AVEncVideoSourceIsBW (BOOL) +DEFINE_CODECAPI_GUID( AVEncVideoSourceIsBW, "42ffc49b-1812-4fdc-8d24-7054c521e6eb", 0x42ffc49b, 0x1812, 0x4fdc, 0x8d, 0x24, 0x70, 0x54, 0xc5, 0x21, 0xe6, 0xeb ) + +// AVEncVideoFieldSwap (BOOL) +DEFINE_CODECAPI_GUID( AVEncVideoFieldSwap, "fefd7569-4e0a-49f2-9f2b-360ea48c19a2", 0xfefd7569, 0x4e0a, 0x49f2, 0x9f, 0x2b, 0x36, 0x0e, 0xa4, 0x8c, 0x19, 0xa2 ) + +// AVEncVideoInputChromaResolution (UINT32) +// AVEncVideoOutputChromaSubsamplingFormat (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoInputChromaResolution, "bb0cec33-16f1-47b0-8a88-37815bee1739", 0xbb0cec33, 0x16f1, 0x47b0, 0x8a, 0x88, 0x37, 0x81, 0x5b, 0xee, 0x17, 0x39 ) +DEFINE_CODECAPI_GUID( AVEncVideoOutputChromaResolution, "6097b4c9-7c1d-4e64-bfcc-9e9765318ae7", 0x6097b4c9, 0x7c1d, 0x4e64, 0xbf, 0xcc, 0x9e, 0x97, 0x65, 0x31, 0x8a, 0xe7 ) + +enum eAVEncVideoChromaResolution +{ + eAVEncVideoChromaResolution_SameAsSource =0 , + eAVEncVideoChromaResolution_444 = 1, + eAVEncVideoChromaResolution_422 = 2, + eAVEncVideoChromaResolution_420 = 3, + eAVEncVideoChromaResolution_411 = 4 +}; + +// AVEncVideoInputChromaSubsampling (UINT32) +// AVEncVideoOutputChromaSubsampling (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoInputChromaSubsampling, "a8e73a39-4435-4ec3-a6ea-98300f4b36f7", 0xa8e73a39, 0x4435, 0x4ec3, 0xa6, 0xea, 0x98, 0x30, 0x0f, 0x4b, 0x36, 0xf7 ) +DEFINE_CODECAPI_GUID( AVEncVideoOutputChromaSubsampling, "fa561c6c-7d17-44f0-83c9-32ed12e96343", 0xfa561c6c, 0x7d17, 0x44f0, 0x83, 0xc9, 0x32, 0xed, 0x12, 0xe9, 0x63, 0x43 ) + +enum eAVEncVideoChromaSubsampling +{ + eAVEncVideoChromaSubsamplingFormat_SameAsSource = 0, + eAVEncVideoChromaSubsamplingFormat_ProgressiveChroma = 0x8, + eAVEncVideoChromaSubsamplingFormat_Horizontally_Cosited = 0x4, + eAVEncVideoChromaSubsamplingFormat_Vertically_Cosited = 0x2, + eAVEncVideoChromaSubsamplingFormat_Vertically_AlignedChromaPlanes = 0x1, +}; + +// AVEncVideoInputColorPrimaries (UINT32) +// AVEncVideoOutputColorPrimaries (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoInputColorPrimaries, "c24d783f-7ce6-4278-90ab-28a4f1e5f86c", 0xc24d783f, 0x7ce6, 0x4278, 0x90, 0xab, 0x28, 0xa4, 0xf1, 0xe5, 0xf8, 0x6c ) +DEFINE_CODECAPI_GUID( AVEncVideoOutputColorPrimaries, "be95907c-9d04-4921-8985-a6d6d87d1a6c", 0xbe95907c, 0x9d04, 0x4921, 0x89, 0x85, 0xa6, 0xd6, 0xd8, 0x7d, 0x1a, 0x6c ) + +enum eAVEncVideoColorPrimaries +{ + eAVEncVideoColorPrimaries_SameAsSource = 0, + eAVEncVideoColorPrimaries_Reserved = 1, + eAVEncVideoColorPrimaries_BT709 = 2, + eAVEncVideoColorPrimaries_BT470_2_SysM = 3, + eAVEncVideoColorPrimaries_BT470_2_SysBG = 4, + eAVEncVideoColorPrimaries_SMPTE170M = 5, + eAVEncVideoColorPrimaries_SMPTE240M = 6, + eAVEncVideoColorPrimaries_EBU3231 = 7, + eAVEncVideoColorPrimaries_SMPTE_C = 8 +}; + +// AVEncVideoInputColorTransferFunction (UINT32) +// AVEncVideoOutputColorTransferFunction (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoInputColorTransferFunction, "8c056111-a9c3-4b08-a0a0-ce13f8a27c75", 0x8c056111, 0xa9c3, 0x4b08, 0xa0, 0xa0, 0xce, 0x13, 0xf8, 0xa2, 0x7c, 0x75 ) +DEFINE_CODECAPI_GUID( AVEncVideoOutputColorTransferFunction, "4a7f884a-ea11-460d-bf57-b88bc75900de", 0x4a7f884a, 0xea11, 0x460d, 0xbf, 0x57, 0xb8, 0x8b, 0xc7, 0x59, 0x00, 0xde ) + +enum eAVEncVideoColorTransferFunction +{ + eAVEncVideoColorTransferFunction_SameAsSource = 0, + eAVEncVideoColorTransferFunction_10 = 1, // (Linear, scRGB) + eAVEncVideoColorTransferFunction_18 = 2, + eAVEncVideoColorTransferFunction_20 = 3, + eAVEncVideoColorTransferFunction_22 = 4, // (BT470-2 SysM) + eAVEncVideoColorTransferFunction_22_709 = 5, // (BT709, SMPTE296M, SMPTE170M, BT470, SMPTE274M, BT.1361) + eAVEncVideoColorTransferFunction_22_240M = 6, // (SMPTE240M, interim 274M) + eAVEncVideoColorTransferFunction_22_8bit_sRGB = 7, // (sRGB) + eAVEncVideoColorTransferFunction_28 = 8 +}; + +// AVEncVideoInputColorTransferMatrix (UINT32) +// AVEncVideoOutputColorTransferMatrix (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoInputColorTransferMatrix, "52ed68b9-72d5-4089-958d-f5405d55081c", 0x52ed68b9, 0x72d5, 0x4089, 0x95, 0x8d, 0xf5, 0x40, 0x5d, 0x55, 0x08, 0x1c ) +DEFINE_CODECAPI_GUID( AVEncVideoOutputColorTransferMatrix , "a9b90444-af40-4310-8fbe-ed6d933f892b", 0xa9b90444, 0xaf40, 0x4310, 0x8f, 0xbe, 0xed, 0x6d, 0x93, 0x3f, 0x89, 0x2b ) + + +enum eAVEncVideoColorTransferMatrix +{ + eAVEncVideoColorTransferMatrix_SameAsSource = 0, + eAVEncVideoColorTransferMatrix_BT709 = 1, + eAVEncVideoColorTransferMatrix_BT601 = 2, // (601, BT470-2 B,B, 170M) + eAVEncVideoColorTransferMatrix_SMPTE240M = 3 +}; + +// AVEncVideoInputColorLighting (UINT32) +// AVEncVideoOutputColorLighting (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoInputColorLighting, "46a99549-0015-4a45-9c30-1d5cfa258316", 0x46a99549, 0x0015, 0x4a45, 0x9c, 0x30, 0x1d, 0x5c, 0xfa, 0x25, 0x83, 0x16 ) +DEFINE_CODECAPI_GUID( AVEncVideoOutputColorLighting , "0e5aaac6-ace6-4c5c-998e-1a8c9c6c0f89", 0x0e5aaac6, 0xace6, 0x4c5c, 0x99, 0x8e, 0x1a, 0x8c, 0x9c, 0x6c, 0x0f, 0x89 ) + +enum eAVEncVideoColorLighting +{ + eAVEncVideoColorLighting_SameAsSource = 0, + eAVEncVideoColorLighting_Unknown = 1, + eAVEncVideoColorLighting_Bright = 2, + eAVEncVideoColorLighting_Office = 3, + eAVEncVideoColorLighting_Dim = 4, + eAVEncVideoColorLighting_Dark = 5 +}; + +// AVEncVideoInputColorNominalRange (UINT32) +// AVEncVideoOutputColorNominalRange (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoInputColorNominalRange, "16cf25c6-a2a6-48e9-ae80-21aec41d427e", 0x16cf25c6, 0xa2a6, 0x48e9, 0xae, 0x80, 0x21, 0xae, 0xc4, 0x1d, 0x42, 0x7e ) +DEFINE_CODECAPI_GUID( AVEncVideoOutputColorNominalRange , "972835ed-87b5-4e95-9500-c73958566e54", 0x972835ed, 0x87b5, 0x4e95, 0x95, 0x00, 0xc7, 0x39, 0x58, 0x56, 0x6e, 0x54 ) + +enum eAVEncVideoColorNominalRange +{ + eAVEncVideoColorNominalRange_SameAsSource = 0, + eAVEncVideoColorNominalRange_0_255 = 1, // (8 bit: 0..255, 10 bit: 0..1023) + eAVEncVideoColorNominalRange_16_235 = 2, // (16..235, 64..940 (16*4...235*4) + eAVEncVideoColorNominalRange_48_208 = 3 // (48..208) +}; + +// AVEncInputVideoSystem (UINT32) +DEFINE_CODECAPI_GUID( AVEncInputVideoSystem, "bede146d-b616-4dc7-92b2-f5d9fa9298f7", 0xbede146d, 0xb616, 0x4dc7, 0x92, 0xb2, 0xf5, 0xd9, 0xfa, 0x92, 0x98, 0xf7 ) + +enum eAVEncInputVideoSystem +{ + eAVEncInputVideoSystem_Unspecified = 0, + eAVEncInputVideoSystem_PAL = 1, + eAVEncInputVideoSystem_NTSC = 2, + eAVEncInputVideoSystem_SECAM = 3, + eAVEncInputVideoSystem_MAC = 4, + eAVEncInputVideoSystem_HDV = 5, + eAVEncInputVideoSystem_Component = 6 +}; + +// AVEncVideoHeaderDropFrame (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoHeaderDropFrame, "6ed9e124-7925-43fe-971b-e019f62222b4", 0x6ed9e124, 0x7925, 0x43fe, 0x97, 0x1b, 0xe0, 0x19, 0xf6, 0x22, 0x22, 0xb4 ) + +// AVEncVideoHeaderHours (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoHeaderHours, "2acc7702-e2da-4158-bf9b-88880129d740", 0x2acc7702, 0xe2da, 0x4158, 0xbf, 0x9b, 0x88, 0x88, 0x01, 0x29, 0xd7, 0x40 ) + +// AVEncVideoHeaderMinutes (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoHeaderMinutes, "dc1a99ce-0307-408b-880b-b8348ee8ca7f", 0xdc1a99ce, 0x0307, 0x408b, 0x88, 0x0b, 0xb8, 0x34, 0x8e, 0xe8, 0xca, 0x7f ) + +// AVEncVideoHeaderSeconds (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoHeaderSeconds, "4a2e1a05-a780-4f58-8120-9a449d69656b", 0x4a2e1a05, 0xa780, 0x4f58, 0x81, 0x20, 0x9a, 0x44, 0x9d, 0x69, 0x65, 0x6b ) + +// AVEncVideoHeaderFrames (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoHeaderFrames, "afd5f567-5c1b-4adc-bdaf-735610381436", 0xafd5f567, 0x5c1b, 0x4adc, 0xbd, 0xaf, 0x73, 0x56, 0x10, 0x38, 0x14, 0x36 ) + +// AVEncVideoDefaultUpperFieldDominant (BOOL) +DEFINE_CODECAPI_GUID( AVEncVideoDefaultUpperFieldDominant, "810167c4-0bc1-47ca-8fc2-57055a1474a5", 0x810167c4, 0x0bc1, 0x47ca, 0x8f, 0xc2, 0x57, 0x05, 0x5a, 0x14, 0x74, 0xa5 ) + +// AVEncVideoCBRMotionTradeoff (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoCBRMotionTradeoff, "0d49451e-18d5-4367-a4ef-3240df1693c4", 0x0d49451e, 0x18d5, 0x4367, 0xa4, 0xef, 0x32, 0x40, 0xdf, 0x16, 0x93, 0xc4 ) + +// AVEncVideoCodedVideoAccessUnitSize (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoCodedVideoAccessUnitSize, "b4b10c15-14a7-4ce8-b173-dc90a0b4fcdb", 0xb4b10c15, 0x14a7, 0x4ce8, 0xb1, 0x73, 0xdc, 0x90, 0xa0, 0xb4, 0xfc, 0xdb ) + +// AVEncVideoMaxKeyframeDistance (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoMaxKeyframeDistance, "2987123a-ba93-4704-b489-ec1e5f25292c", 0x2987123a, 0xba93, 0x4704, 0xb4, 0x89, 0xec, 0x1e, 0x5f, 0x25, 0x29, 0x2c ) + +// AVEncH264CABACEnable (BOOL) +DEFINE_CODECAPI_GUID( AVEncH264CABACEnable, "EE6CAD62-D305-4248-A50E-E1B255F7CAF8", 0xee6cad62, 0xd305, 0x4248, 0xa5, 0xe, 0xe1, 0xb2, 0x55, 0xf7, 0xca, 0xf8 ) + +// AVEncVideoContentType (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoContentType, "66117ACA-EB77-459D-930C-A48D9D0683FC", 0x66117aca, 0xeb77, 0x459d, 0x93, 0xc, 0xa4, 0x8d, 0x9d, 0x6, 0x83, 0xfc ) + +enum eAVEncVideoContentType +{ + eAVEncVideoContentType_Unknown = 0, + eAVEncVideoContentType_FixedCameraAngle = 1 +}; + +// AVEncNumWorkerThreads (UINT32) +DEFINE_CODECAPI_GUID( AVEncNumWorkerThreads, "B0C8BF60-16F7-4951-A30B-1DB1609293D6", 0xb0c8bf60, 0x16f7, 0x4951, 0xa3, 0xb, 0x1d, 0xb1, 0x60, 0x92, 0x93, 0xd6 ) + +// AVEncVideoEncodeQP (UINT64) +DEFINE_CODECAPI_GUID( AVEncVideoEncodeQP, "2cb5696b-23fb-4ce1-a0f9-ef5b90fd55ca", 0x2cb5696b, 0x23fb, 0x4ce1, 0xa0, 0xf9, 0xef, 0x5b, 0x90, 0xfd, 0x55, 0xca ) + +// AVEncVideoMinQP (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoMinQP, "0ee22c6a-a37c-4568-b5f1-9d4c2b3ab886", 0xee22c6a, 0xa37c, 0x4568, 0xb5, 0xf1, 0x9d, 0x4c, 0x2b, 0x3a, 0xb8, 0x86 ) + +// AVEncVideoForceKeyFrame (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoForceKeyFrame, "398c1b98-8353-475a-9ef2-8f265d260345", 0x398c1b98, 0x8353, 0x475a, 0x9e, 0xf2, 0x8f, 0x26, 0x5d, 0x26, 0x3, 0x45 ) + +// AVEncH264SPSID (UINT32) +DEFINE_CODECAPI_GUID( AVEncH264SPSID, "50f38f51-2b79-40e3-b39c-7e9fa0770501", 0x50f38f51, 0x2b79, 0x40e3, 0xb3, 0x9c, 0x7e, 0x9f, 0xa0, 0x77, 0x5, 0x1 ) + +// AVEncH264PPSID (UINT32) +DEFINE_CODECAPI_GUID( AVEncH264PPSID, "BFE29EC2-056C-4D68-A38D-AE5944C8582E", 0xbfe29ec2, 0x56c, 0x4d68, 0xa3, 0x8d, 0xae, 0x59, 0x44, 0xc8, 0x58, 0x2e ) + +// AVEncAdaptiveMode (UINT32) +DEFINE_CODECAPI_GUID( AVEncAdaptiveMode, "4419b185-da1f-4f53-bc76-097d0c1efb1e", 0x4419b185, 0xda1f, 0x4f53, 0xbc, 0x76, 0x9, 0x7d, 0xc, 0x1e, 0xfb, 0x1e ) + +// AVScenarioInfo (UINT32) +DEFINE_CODECAPI_GUID( AVScenarioInfo, "b28a6e64-3ff9-446a-8a4b-0d7a53413236", 0xb28a6e64, 0x3ff9, 0x446a, 0x8a, 0x4b, 0x0d, 0x7a, 0x53, 0x41, 0x32, 0x36 ) + +// AVEncMPVGOPSizeMin (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVGOPSizeMin, "7155cf20-d440-4852-ad0f-9c4abfe37a6a", 0x7155cf20, 0xd440, 0x4852, 0xad, 0x0f, 0x9c, 0x4a, 0xbf, 0xe3, 0x7a, 0x6a ) + +//AVEncMPVGOPSizeMax (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVGOPSizeMax, "fe7de4c4-1936-4fe2-bdf7-1f18ca1d001f", 0xfe7de4c4, 0x1936, 0x4fe2, 0xbd, 0xf7, 0x1f, 0x18, 0xca, 0x1d, 0x00, 0x1f ) + +// AVEncVideoMaxCTBSize (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoMaxCTBSize, "822363ff-cec8-43e5-92fd-e097488485e9", 0x822363ff, 0xcec8, 0x43e5, 0x92, 0xfd, 0xe0, 0x97, 0x48, 0x84, 0x85, 0xe9 ) + +// AVEncVideoCTBSize (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoCTBSize, "d47db8b2-e73b-4cb9-8c3e-bd877d06d77b", 0xd47db8b2, 0xe73b, 0x4cb9, 0x8c, 0x3e, 0xbd, 0x87, 0x7d, 0x06, 0xd7, 0x7b ) + +// VideoEncoderDisplayContentType (UINT32) +DEFINE_CODECAPI_GUID( VideoEncoderDisplayContentType, "79b90b27-f4b1-42dc-9dd7-cdaf8135c400", 0x79b90b27, 0xf4b1, 0x42dc, 0x9d, 0xd7, 0xcd, 0xaf, 0x81, 0x35, 0xc4, 0x00 ) + +// AVEncEnableVideoProcessing (UINT32) +DEFINE_CODECAPI_GUID( AVEncEnableVideoProcessing, "006f4bf6-0ea3-4d42-8702-b5d8be0f7a92", 0x006f4bf6, 0x0ea3, 0x4d42, 0x87, 0x02, 0xb5, 0xd8, 0xbe, 0x0f, 0x7a, 0x92 ) + +// AVEncVideoGradualIntraRefresh (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoGradualIntraRefresh, "8f347dee-cb0d-49ba-b462-db6927ee2101", 0x8f347dee, 0xcb0d, 0x49ba, 0xb4, 0x62, 0xdb, 0x69, 0x27, 0xee, 0x21, 0x01 ) + +// GetOPMContext (UINT64) +DEFINE_CODECAPI_GUID( GetOPMContext, "2f036c05-4c14-4689-8839-294c6d73e053", 0x2f036c05, 0x4c14, 0x4689, 0x88, 0x39, 0x29, 0x4c, 0x6d, 0x73, 0xe0, 0x53 ) + +// SetHDCPManagerContext (VOID) +DEFINE_CODECAPI_GUID( SetHDCPManagerContext, "6d2d1fc8-3dc9-47eb-a1a2-471c80cd60d0", 0x6d2d1fc8, 0x3dc9, 0x47eb, 0xa1, 0xa2, 0x47, 0x1c, 0x80, 0xcd, 0x60, 0xd0 ) + +// AVEncVideoMaxTemporalLayers (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoMaxTemporalLayers, "9c668cfe-08e1-424a-934e-b764b064802a", 0x9c668cfe, 0x08e1, 0x424a, 0x93, 0x4e, 0xb7, 0x64, 0xb0, 0x64, 0x80, 0x2a ) + +// AVEncVideoNumGOPsPerIDR (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoNumGOPsPerIDR, "83bc5bdb-5b89-4521-8f66-33151c373176", 0x83bc5bdb, 0x5b89, 0x4521, 0x8f, 0x66, 0x33, 0x15, 0x1c, 0x37, 0x31, 0x76 ) + +// AVEncCommonAllowFrameDrops (UINT32) +DEFINE_CODECAPI_GUID( AVEncCommonAllowFrameDrops, "d8477dcb-9598-48e3-8d0c-752bf206093e", 0xd8477dcb, 0x9598, 0x48e3, 0x8d, 0x0c, 0x75, 0x2b, 0xf2, 0x06, 0x09, 0x3e ) + +// AVEncVideoIntraLayerPrediction (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoIntraLayerPrediction, "d3af46b8-bf47-44bb-a283-69f0b0228ff9", 0xd3af46b8, 0xbf47, 0x44bb, 0xa2, 0x83, 0x69, 0xf0, 0xb0, 0x22, 0x8f, 0xf9 ) + +// AVEncVideoInstantTemporalUpSwitching (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoInstantTemporalUpSwitching, "a3308307-0d96-4ba4-b1f0-b91a5e49df10", 0xa3308307, 0x0d96, 0x4ba4, 0xb1, 0xf0, 0xb9, 0x1a, 0x5e, 0x49, 0xdf, 0x10 ) + +// AVEncLowPowerEncoder (UINT32) +DEFINE_CODECAPI_GUID( AVEncLowPowerEncoder, "b668d582-8bad-4f6a-9141-375a95358b6d", 0xb668d582, 0x8bad, 0x4f6a, 0x91, 0x41, 0x37, 0x5a, 0x95, 0x35, 0x8b, 0x6d ) + +// AVEnableInLoopDeblockFilter (UINT32) +DEFINE_CODECAPI_GUID( AVEnableInLoopDeblockFilter, "d2e8e399-0623-4bf3-92a8-4d1818529ded", 0xd2e8e399, 0x0623, 0x4bf3, 0x92, 0xa8, 0x4d, 0x18, 0x18, 0x52, 0x9d, 0xed ) + + +enum eAVEncAdaptiveMode +{ + eAVEncAdaptiveMode_None = 0, + eAVEncAdaptiveMode_Resolution = 1, + eAVEncAdaptiveMode_FrameRate = 2 + }; + +enum eAVScenarioInfo +{ + eAVScenarioInfo_Unknown = 0, + eAVScenarioInfo_DisplayRemoting = 1, + eAVScenarioInfo_VideoConference = 2, + eAVScenarioInfo_Archive = 3, + eAVScenarioInfo_LiveStreaming = 4, + eAVScenarioInfo_CameraRecord = 5, + eAVScenarioInfo_DisplayRemotingWithFeatureMap = 6 +}; + +enum eVideoEncoderDisplayContentType +{ + eVideoEncoderDisplayContent_Unknown = 0, + eVideoEncoderDisplayContent_FullScreenVideo = 1, +}; + + +// AVEncVideoSelectLayer (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoSelectLayer, "EB1084F5-6AAA-4914-BB2F-6147227F12E7", 0xeb1084f5, 0x6aaa, 0x4914, 0xbb, 0x2f, 0x61, 0x47, 0x22, 0x7f, 0x12, 0xe7 ) + +// AVEncVideoTemporalLayerCount (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoTemporalLayerCount, "19CAEBFF-B74D-4CFD-8C27-C2F9D97D5F52", 0x19caebff, 0xb74d, 0x4cfd, 0x8c, 0x27, 0xc2, 0xf9, 0xd9, 0x7d, 0x5f, 0x52 ) + +// AVEncVideoUsage (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoUsage, "1f636849-5dc1-49f1-b1d8-ce3cf62ea385", 0x1f636849, 0x5dc1, 0x49f1, 0xb1, 0xd8, 0xce, 0x3c, 0xf6, 0x2e, 0xa3, 0x85 ) + +// AVEncVideoRateControlParams (UINT64) +DEFINE_CODECAPI_GUID( AVEncVideoRateControlParams, "87D43767-7645-44ec-B438-D3322FBCA29F", 0x87d43767, 0x7645, 0x44ec, 0xb4, 0x38, 0xd3, 0x32, 0x2f, 0xbc, 0xa2, 0x9f ) + +// AVEncVideoSupportedControls (UINT64) +DEFINE_CODECAPI_GUID( AVEncVideoSupportedControls, "D3F40FDD-77B9-473d-8196-061259E69CFF", 0xd3f40fdd, 0x77b9, 0x473d, 0x81, 0x96, 0x06, 0x12, 0x59, 0xe6, 0x9c, 0xff ) + +// AVEncVideoEncodeFrameTypeQP (UINT64) +DEFINE_CODECAPI_GUID( AVEncVideoEncodeFrameTypeQP, "aa70b610-e03f-450c-ad07-07314e639ce7", 0xaa70b610, 0xe03f, 0x450c, 0xad, 0x07, 0x07, 0x31, 0x4e, 0x63, 0x9c, 0xe7 ) + +// AVEncSliceControlMode (UINT32) +DEFINE_CODECAPI_GUID( AVEncSliceControlMode, "e9e782ef-5f18-44c9-a90b-e9c3c2c17b0b", 0xe9e782ef, 0x5f18, 0x44c9, 0xa9, 0x0b, 0xe9, 0xc3, 0xc2, 0xc1, 0x7b, 0x0b ) + +// AVEncSliceControlSize (UINT32) +DEFINE_CODECAPI_GUID( AVEncSliceControlSize, "92f51df3-07a5-4172-aefe-c69ca3b60e35", 0x92f51df3, 0x07a5, 0x4172, 0xae, 0xfe, 0xc6, 0x9c, 0xa3, 0xb6, 0x0e, 0x35 ) + +// CODECAPI_AVEncSliceGenerationMode (UINT32) +DEFINE_CODECAPI_GUID( AVEncSliceGenerationMode, "8a6bc67f-9497-4286-b46b-02db8d60edbc", 0x8a6bc67f, 0x9497, 0x4286, 0xb4, 0x6b, 0x02, 0xdb, 0x8d, 0x60, 0xed, 0xbc ) + +// AVEncVideoMaxNumRefFrame (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoMaxNumRefFrame, "964829ed-94f9-43b4-b74d-ef40944b69a0", 0x964829ed, 0x94f9, 0x43b4, 0xb7, 0x4d, 0xef, 0x40, 0x94, 0x4b, 0x69, 0xa0 ) + +// AVEncVideoMeanAbsoluteDifference (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoMeanAbsoluteDifference, "e5c0c10f-81a4-422d-8c3f-b474a4581336", 0xe5c0c10f, 0x81a4, 0x422d, 0x8c, 0x3f, 0xb4, 0x74, 0xa4, 0x58, 0x13, 0x36 ) + +// AVEncVideoMaxQP (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoMaxQP, "3daf6f66-a6a7-45e0-a8e5-f2743f46a3a2", 0x3daf6f66, 0xa6a7, 0x45e0, 0xa8, 0xe5, 0xf2, 0x74, 0x3f, 0x46, 0xa3, 0xa2 ) + +// AVEncVideoLTRBufferControl (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoLTRBufferControl, "a4a0e93d-4cbc-444c-89f4-826d310e92a7", 0xa4a0e93d, 0x4cbc, 0x444c, 0x89, 0xf4, 0x82, 0x6d, 0x31, 0x0e, 0x92, 0xa7 ) + +// AVEncVideoMarkLTRFrame (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoMarkLTRFrame, "e42f4748-a06d-4ef9-8cea-3d05fde3bd3b", 0xe42f4748, 0xa06d, 0x4ef9, 0x8c, 0xea, 0x3d, 0x05, 0xfd, 0xe3, 0xbd, 0x3b ) + +// AVEncVideoUseLTRFrame (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoUseLTRFrame, "00752db8-55f7-4f80-895b-27639195f2ad", 0x00752db8, 0x55f7, 0x4f80, 0x89, 0x5b, 0x27, 0x63, 0x91, 0x95, 0xf2, 0xad ) + +// AVEncVideoROIEnabled (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoROIEnabled, "d74f7f18-44dd-4b85-aba3-05d9f42a8280", 0xd74f7f18, 0x44dd, 0x4b85, 0xab, 0xa3, 0x5, 0xd9, 0xf4, 0x2a, 0x82, 0x80 ) + +// AVEncVideoDirtyRectEnabled (UINT32) +DEFINE_CODECAPI_GUID( AVEncVideoDirtyRectEnabled, "8acb8fdd-5e0c-4c66-8729-b8f629ab04fb", 0x8acb8fdd, 0x5e0c, 0x4c66, 0x87, 0x29, 0xb8, 0xf6, 0x29, 0xab, 0x04, 0xfb ) + +// AVEncMaxFrameRate (UINT64) +DEFINE_CODECAPI_GUID( AVEncMaxFrameRate, "B98E1B31-19FA-4D4F-9931-D6A5B8AAB93C", 0xb98e1b31, 0x19fa, 0x4d4f, 0x99, 0x31, 0xd6, 0xa5, 0xb8, 0xaa, 0xb9, 0x3c ) + +// +// Audio/Video Mux +// + +// AVEncMuxOutputStreamType (UINT32) +DEFINE_CODECAPI_GUID( AVEncMuxOutputStreamType, "CEDD9E8F-34D3-44db-A1D8-F81520254F3E", 0xcedd9e8f, 0x34d3, 0x44db, 0xa1, 0xd8, 0xf8, 0x15, 0x20, 0x25, 0x4f, 0x3e) + +enum eAVEncMuxOutput +{ + eAVEncMuxOutputAuto = 0, // Decision is made automatically be the mux (elementary stream, program stream or transport stream) + eAVEncMuxOutputPS = 1, // Program stream + eAVEncMuxOutputTS = 2 // Transport stream +}; + + +// +// Common Post-Encode Video Statistical Parameters +// + +// AVEncStatVideoOutputFrameRate (UINT32/UINT32) +DEFINE_CODECAPI_GUID( AVEncStatVideoOutputFrameRate, "be747849-9ab4-4a63-98fe-f143f04f8ee9", 0xbe747849, 0x9ab4, 0x4a63, 0x98, 0xfe, 0xf1, 0x43, 0xf0, 0x4f, 0x8e, 0xe9 ) + +// AVEncStatVideoCodedFrames (UINT32) +DEFINE_CODECAPI_GUID( AVEncStatVideoCodedFrames, "d47f8d61-6f5a-4a26-bb9f-cd9518462bcd", 0xd47f8d61, 0x6f5a, 0x4a26, 0xbb, 0x9f, 0xcd, 0x95, 0x18, 0x46, 0x2b, 0xcd ) + +// AVEncStatVideoTotalFrames (UINT32) +DEFINE_CODECAPI_GUID( AVEncStatVideoTotalFrames, "fdaa9916-119a-4222-9ad6-3f7cab99cc8b", 0xfdaa9916, 0x119a, 0x4222, 0x9a, 0xd6, 0x3f, 0x7c, 0xab, 0x99, 0xcc, 0x8b ) + +// +// Common Audio Parameters +// + +// AVEncAudioIntervalToEncode (UINT64) +DEFINE_CODECAPI_GUID( AVEncAudioIntervalToEncode, "866e4b4d-725a-467c-bb01-b496b23b25f9", 0x866e4b4d, 0x725a, 0x467c, 0xbb, 0x01, 0xb4, 0x96, 0xb2, 0x3b, 0x25, 0xf9 ) + +// AVEncAudioIntervalToSkip (UINT64) +DEFINE_CODECAPI_GUID( AVEncAudioIntervalToSkip, "88c15f94-c38c-4796-a9e8-96e967983f26", 0x88c15f94, 0xc38c, 0x4796, 0xa9, 0xe8, 0x96, 0xe9, 0x67, 0x98, 0x3f, 0x26 ) + +// AVEncAudioDualMono (UINT32) - Read/Write +// Some audio encoders can encode 2 channel input as "dual mono". Use this +// property to set the appropriate field in the bitstream header to indicate that the +// 2 channel bitstream is or isn't dual mono. +// For encoding MPEG audio, use the DualChannel option in AVEncMPACodingMode instead +DEFINE_CODECAPI_GUID( AVEncAudioDualMono, "3648126b-a3e8-4329-9b3a-5ce566a43bd3", 0x3648126b, 0xa3e8, 0x4329, 0x9b, 0x3a, 0x5c, 0xe5, 0x66, 0xa4, 0x3b, 0xd3 ) + +enum eAVEncAudioDualMono +{ + eAVEncAudioDualMono_SameAsInput = 0, // As indicated by input media type + eAVEncAudioDualMono_Off = 1, // 2-ch output bitstream should not be dual mono + eAVEncAudioDualMono_On = 2 // 2-ch output bitstream should be dual mono +}; + +// AVEncAudioMeanBitRate (UINT32) - Read/Write - Used to specify audio bitrate (in bits per second) when the encoder is instantiated as an audio+video encoder. +DEFINE_CODECAPI_GUID( AVEncAudioMeanBitRate, "921295bb-4fca-4679-aab8-9e2a1d753384", 0x921295bb, 0x4fca, 0x4679, 0xaa, 0xb8, 0x9e, 0x2a, 0x1d, 0x75, 0x33, 0x84 ) + +// AVEncAudioMapDestChannel0..15 (UINT32) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel0, "bc5d0b60-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b60, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel1, "bc5d0b61-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b61, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel2, "bc5d0b62-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b62, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel3, "bc5d0b63-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b63, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel4, "bc5d0b64-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b64, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel5, "bc5d0b65-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b65, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel6, "bc5d0b66-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b66, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel7, "bc5d0b67-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b67, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel8, "bc5d0b68-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b68, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel9, "bc5d0b69-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b69, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel10, "bc5d0b6a-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b6a, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel11, "bc5d0b6b-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b6b, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel12, "bc5d0b6c-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b6c, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel13, "bc5d0b6d-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b6d, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel14, "bc5d0b6e-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b6e, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) +DEFINE_CODECAPI_GUID( AVEncAudioMapDestChannel15, "bc5d0b6f-df6a-4e16-9803-b82007a30c8d", 0xbc5d0b6f, 0xdf6a, 0x4e16, 0x98, 0x03, 0xb8, 0x20, 0x07, 0xa3, 0x0c, 0x8d ) + +// AVEncAudioInputContent (UINT32) <---- You have ENUM in the doc +DEFINE_CODECAPI_GUID( AVEncAudioInputContent, "3e226c2b-60b9-4a39-b00b-a7b40f70d566", 0x3e226c2b, 0x60b9, 0x4a39, 0xb0, 0x0b, 0xa7, 0xb4, 0x0f, 0x70, 0xd5, 0x66 ) + +enum eAVEncAudioInputContent +{ + AVEncAudioInputContent_Unknown =0, + AVEncAudioInputContent_Voice = 1, + AVEncAudioInputContent_Music = 2 +}; + +// +// Common Post-Encode Audio Statistical Parameters +// + +// AVEncStatAudioPeakPCMValue (UINT32) +DEFINE_CODECAPI_GUID( AVEncStatAudioPeakPCMValue, "dce7fd34-dc00-4c16-821b-35d9eb00fb1a", 0xdce7fd34, 0xdc00, 0x4c16, 0x82, 0x1b, 0x35, 0xd9, 0xeb, 0x00, 0xfb, 0x1a ) + +// AVEncStatAudioAveragePCMValue (UINT32) +DEFINE_CODECAPI_GUID( AVEncStatAudioAveragePCMValue, "979272f8-d17f-4e32-bb73-4e731c68ba2d", 0x979272f8, 0xd17f, 0x4e32, 0xbb, 0x73, 0x4e, 0x73, 0x1c, 0x68, 0xba, 0x2d ) + +// AVEncStatAverageBPS (UINT32) +DEFINE_CODECAPI_GUID( AVEncStatAudioAverageBPS, "ca6724db-7059-4351-8b43-f82198826a14", 0xca6724db, 0x7059, 0x4351, 0x8b, 0x43, 0xf8, 0x21, 0x98, 0x82, 0x6a, 0x14 ) +DEFINE_CODECAPI_GUID( AVEncStatAverageBPS, "ca6724db-7059-4351-8b43-f82198826a14", 0xca6724db, 0x7059, 0x4351, 0x8b, 0x43, 0xf8, 0x21, 0x98, 0x82, 0x6a, 0x14 ) + +// AVEncStatHardwareProcessorUtilitization (UINT32) +// HW usage % x 1000 +DEFINE_CODECAPI_GUID( AVEncStatHardwareProcessorUtilitization, "995dc027-cb95-49e6-b91b-5967753cdcb8", 0x995dc027, 0xcb95, 0x49e6, 0xb9, 0x1b, 0x59, 0x67, 0x75, 0x3c, 0xdc, 0xb8 ) + +// AVEncStatHardwareBandwidthUtilitization (UINT32) +// HW usage % x 1000 +DEFINE_CODECAPI_GUID( AVEncStatHardwareBandwidthUtilitization, "0124ba9b-dc41-4826-b45f-18ac01b3d5a8", 0x0124ba9b, 0xdc41, 0x4826, 0xb4, 0x5f, 0x18, 0xac, 0x01, 0xb3, 0xd5, 0xa8 ) + +// +// MPEG Video Encoding Interface +// + +// +// MPV Encoder Specific Parameters +// + +// AVEncMPVGOPSize (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVGOPSize, "95f31b26-95a4-41aa-9303-246a7fc6eef1", 0x95f31b26, 0x95a4, 0x41aa, 0x93, 0x03, 0x24, 0x6a, 0x7f, 0xc6, 0xee, 0xf1 ) + +// AVEncMPVGOPOpen (BOOL) +DEFINE_CODECAPI_GUID( AVEncMPVGOPOpen, "b1d5d4a6-3300-49b1-ae61-a09937ab0e49", 0xb1d5d4a6, 0x3300, 0x49b1, 0xae, 0x61, 0xa0, 0x99, 0x37, 0xab, 0x0e, 0x49 ) + +// AVEncMPVDefaultBPictureCount (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVDefaultBPictureCount, "8d390aac-dc5c-4200-b57f-814d04babab2", 0x8d390aac, 0xdc5c, 0x4200, 0xb5, 0x7f, 0x81, 0x4d, 0x04, 0xba, 0xba, 0xb2 ) + +// AVEncMPVProfile (UINT32) <---- You have GUID in the doc +DEFINE_CODECAPI_GUID( AVEncMPVProfile, "dabb534a-1d99-4284-975a-d90e2239baa1", 0xdabb534a, 0x1d99, 0x4284, 0x97, 0x5a, 0xd9, 0x0e, 0x22, 0x39, 0xba, 0xa1 ) + +enum eAVEncMPVProfile +{ + eAVEncMPVProfile_unknown = 0, + eAVEncMPVProfile_Simple = 1, + eAVEncMPVProfile_Main = 2, + eAVEncMPVProfile_High = 3, + eAVEncMPVProfile_422 = 4, +}; + +// AVEncMPVLevel (UINT32) <---- You have GUID in the doc +DEFINE_CODECAPI_GUID( AVEncMPVLevel, "6ee40c40-a60c-41ef-8f50-37c2249e2cb3", 0x6ee40c40, 0xa60c, 0x41ef, 0x8f, 0x50, 0x37, 0xc2, 0x24, 0x9e, 0x2c, 0xb3 ) + +enum eAVEncMPVLevel +{ + eAVEncMPVLevel_Low = 1, + eAVEncMPVLevel_Main = 2, + eAVEncMPVLevel_High1440 = 3, + eAVEncMPVLevel_High = 4, +}; + +enum eAVEncH263VProfile +{ + eAVEncH263VProfile_Base = 0, + eAVEncH263VProfile_CompatibilityV2 = 1, + eAVEncH263VProfile_CompatibilityV1 = 2, + eAVEncH263VProfile_WirelessV2 = 3, + eAVEncH263VProfile_WirelessV3 = 4, + eAVEncH263VProfile_HighCompression = 5, + eAVEncH263VProfile_Internet = 6, + eAVEncH263VProfile_Interlace = 7, + eAVEncH263VProfile_HighLatency = 8 +}; + +enum eAVEncH264VProfile +{ + eAVEncH264VProfile_unknown = 0, + eAVEncH264VProfile_Simple = 66, + eAVEncH264VProfile_Base = 66, + eAVEncH264VProfile_Main = 77, + eAVEncH264VProfile_High = 100, + eAVEncH264VProfile_422 = 122, + eAVEncH264VProfile_High10 = 110, + eAVEncH264VProfile_444 = 244, + eAVEncH264VProfile_Extended = 88, + +// UVC 1.2 H.264 extension + eAVEncH264VProfile_ScalableBase = 83, + eAVEncH264VProfile_ScalableHigh = 86, + eAVEncH264VProfile_MultiviewHigh = 118, + eAVEncH264VProfile_StereoHigh = 128, + eAVEncH264VProfile_ConstrainedBase = 256, + eAVEncH264VProfile_UCConstrainedHigh = 257, + eAVEncH264VProfile_UCScalableConstrainedBase = 258, + eAVEncH264VProfile_UCScalableConstrainedHigh = 259 +}; + +#define eAVEncH264VProfile_ConstrainedHigh eAVEncH264VProfile_UCConstrainedHigh + +enum eAVEncH265VProfile +{ + eAVEncH265VProfile_unknown = 0, + eAVEncH265VProfile_Main_420_8 = 1, + eAVEncH265VProfile_Main_420_10 = 2, + eAVEncH265VProfile_Main_420_12 = 3, + eAVEncH265VProfile_Main_422_10 = 4, + eAVEncH265VProfile_Main_422_12 = 5, + eAVEncH265VProfile_Main_444_8 = 6, + eAVEncH265VProfile_Main_444_10 = 7, + eAVEncH265VProfile_Main_444_12 = 8, + eAVEncH265VProfile_Monochrome_12 = 9, + eAVEncH265VProfile_Monochrome_16 = 10, + eAVEncH265VProfile_MainIntra_420_8 = 11, + eAVEncH265VProfile_MainIntra_420_10 = 12, + eAVEncH265VProfile_MainIntra_420_12 = 13, + eAVEncH265VProfile_MainIntra_422_10 = 14, + eAVEncH265VProfile_MainIntra_422_12 = 15, + eAVEncH265VProfile_MainIntra_444_8 = 16, + eAVEncH265VProfile_MainIntra_444_10 = 17, + eAVEncH265VProfile_MainIntra_444_12 = 18, + eAVEncH265VProfile_MainIntra_444_16 = 19, + eAVEncH265VProfile_MainStill_420_8 = 20, + eAVEncH265VProfile_MainStill_444_8 = 21, + eAVEncH265VProfile_MainStill_444_16 = 22 +}; + +enum eAVEncVP9VProfile +{ + eAVEncVP9VProfile_unknown = 0, + eAVEncVP9VProfile_420_8 = 1, + eAVEncVP9VProfile_420_10 = 2, + eAVEncVP9VProfile_420_12 = 3, +}; + +enum eAVEncAV1VProfile +{ + eAVEncAV1VProfile_unknown = 0, + eAVEncAV1VProfile_Main_420_8, + eAVEncAV1VProfile_Main_420_10, + eAVEncAV1VProfile_Main_400_8, + eAVEncAV1VProfile_Main_400_10, + eAVEncAV1VProfile_High_444_8, + eAVEncAV1VProfile_High_444_10, + eAVEncAV1VProfile_Professional_420_12, + eAVEncAV1VProfile_Professional_400_12, + eAVEncAV1VProfile_Professional_444_12, + eAVEncAV1VProfile_Professional_422_8, + eAVEncAV1VProfile_Professional_422_10, + eAVEncAV1VProfile_Professional_422_12, +}; + +enum eAVEncH263PictureType +{ + eAVEncH263PictureType_I = 0, + eAVEncH263PictureType_P, + eAVEncH263PictureType_B +}; + +enum eAVEncH264PictureType { + eAVEncH264PictureType_IDR = 0, + eAVEncH264PictureType_P, + eAVEncH264PictureType_B +}; + +enum eAVEncAV1PictureType { + eAVEncAV1PictureType_Key = 0, + eAVEncAV1PictureType_Intra_Only, + eAVEncAV1PictureType_Inter, + eAVEncAV1PictureType_Switch +}; + +#define AVENC_H263V_LEVELCOUNT 8 + +enum eAVEncH263VLevel +{ + eAVEncH263VLevel1 = 10, + eAVEncH263VLevel2 = 20, + eAVEncH263VLevel3 = 30, + eAVEncH263VLevel4 = 40, + eAVEncH263VLevel4_5 = 45, + eAVEncH263VLevel5 = 50, + eAVEncH263VLevel6 = 60, + eAVEncH263VLevel7 = 70 +}; + +#define AVENC_H264V_LEVELCOUNT 16 +#define AVENC_H264V_MAX_MBBITS 3200 //Only applies to Baseline, Main, Extended profiles + +enum eAVEncH264VLevel +{ + eAVEncH264VLevel1 = 10, + eAVEncH264VLevel1_b = 11, + eAVEncH264VLevel1_1 = 11, + eAVEncH264VLevel1_2 = 12, + eAVEncH264VLevel1_3 = 13, + eAVEncH264VLevel2 = 20, + eAVEncH264VLevel2_1 = 21, + eAVEncH264VLevel2_2 = 22, + eAVEncH264VLevel3 = 30, + eAVEncH264VLevel3_1 = 31, + eAVEncH264VLevel3_2 = 32, + eAVEncH264VLevel4 = 40, + eAVEncH264VLevel4_1 = 41, + eAVEncH264VLevel4_2 = 42, + eAVEncH264VLevel5 = 50, + eAVEncH264VLevel5_1 = 51, + eAVEncH264VLevel5_2 = 52, + eAVEncH264VLevel6 = 60, + eAVEncH264VLevel6_1 = 61, + eAVEncH264VLevel6_2 = 62 +}; + +enum eAVEncH265VLevel +{ + eAVEncH265VLevel1 = 30, + eAVEncH265VLevel2 = 60, + eAVEncH265VLevel2_1 = 63, + eAVEncH265VLevel3 = 90, + eAVEncH265VLevel3_1 = 93, + eAVEncH265VLevel4 = 120, + eAVEncH265VLevel4_1 = 123, + eAVEncH265VLevel5 = 150, + eAVEncH265VLevel5_1 = 153, + eAVEncH265VLevel5_2 = 156, + eAVEncH265VLevel6 = 180, + eAVEncH265VLevel6_1 = 183, + eAVEncH265VLevel6_2 = 186 +}; + +enum eAVEncAV1VLevel +{ + eAVEncAV1VLevel2 = 0, + eAVEncAV1VLevel2_1 = 1, + eAVEncAV1VLevel3 = 4, + eAVEncAV1VLevel3_1 = 5, + eAVEncAV1VLevel4 = 8, + eAVEncAV1VLevel4_1 = 9, + eAVEncAV1VLevel5 = 12, + eAVEncAV1VLevel5_1 = 13, + eAVEncAV1VLevel5_2 = 14, + eAVEncAV1VLevel5_3 = 15, + eAVEncAV1VLevel6 = 16, + eAVEncAV1VLevel6_1 = 17, + eAVEncAV1VLevel6_2 = 18, + eAVEncAV1VLevel6_3 = 19, +}; + +// AVEncMPVFrameFieldMode (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVFrameFieldMode, "acb5de96-7b93-4c2f-8825-b0295fa93bf4", 0xacb5de96, 0x7b93, 0x4c2f, 0x88, 0x25, 0xb0, 0x29, 0x5f, 0xa9, 0x3b, 0xf4 ) + +enum eAVEncMPVFrameFieldMode +{ + eAVEncMPVFrameFieldMode_FieldMode = 0, + eAVEncMPVFrameFieldMode_FrameMode = 1 +}; + +// +// Advanced MPV Encoder Specific Parameters +// + +// AVEncMPVAddSeqEndCode (BOOL) +DEFINE_CODECAPI_GUID( AVEncMPVAddSeqEndCode, "a823178f-57df-4c7a-b8fd-e5ec8887708d", 0xa823178f, 0x57df, 0x4c7a, 0xb8, 0xfd, 0xe5, 0xec, 0x88, 0x87, 0x70, 0x8d ) + +// AVEncMPVGOPSInSeq (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVGOPSInSeq, "993410d4-2691-4192-9978-98dc2603669f", 0x993410d4, 0x2691, 0x4192, 0x99, 0x78, 0x98, 0xdc, 0x26, 0x03, 0x66, 0x9f ) + +// AVEncMPVUseConcealmentMotionVectors (BOOL) +DEFINE_CODECAPI_GUID( AVEncMPVUseConcealmentMotionVectors, "ec770cf3-6908-4b4b-aa30-7fb986214fea", 0xec770cf3, 0x6908, 0x4b4b, 0xaa, 0x30, 0x7f, 0xb9, 0x86, 0x21, 0x4f, 0xea ) + +// AVEncMPVSceneDetection (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVSceneDetection, "552799f1-db4c-405b-8a3a-c93f2d0674dc", 0x552799f1, 0xdb4c, 0x405b, 0x8a, 0x3a, 0xc9, 0x3f, 0x2d, 0x06, 0x74, 0xdc ) + +enum eAVEncMPVSceneDetection +{ + eAVEncMPVSceneDetection_None = 0, + eAVEncMPVSceneDetection_InsertIPicture = 1, + eAVEncMPVSceneDetection_StartNewGOP = 2, + eAVEncMPVSceneDetection_StartNewLocatableGOP = 3 +}; + +// AVEncMPVGenerateHeaderSeqExt (BOOL) +DEFINE_CODECAPI_GUID( AVEncMPVGenerateHeaderSeqExt, "d5e78611-082d-4e6b-98af-0f51ab139222", 0xd5e78611, 0x082d, 0x4e6b, 0x98, 0xaf, 0x0f, 0x51, 0xab, 0x13, 0x92, 0x22 ) + +// AVEncMPVGenerateHeaderSeqDispExt (BOOL) +DEFINE_CODECAPI_GUID( AVEncMPVGenerateHeaderSeqDispExt, "6437aa6f-5a3c-4de9-8a16-53d9c4ad326f", 0x6437aa6f, 0x5a3c, 0x4de9, 0x8a, 0x16, 0x53, 0xd9, 0xc4, 0xad, 0x32, 0x6f ) + +// AVEncMPVGenerateHeaderPicExt (BOOL) +DEFINE_CODECAPI_GUID( AVEncMPVGenerateHeaderPicExt, "1b8464ab-944f-45f0-b74e-3a58dad11f37", 0x1b8464ab, 0x944f, 0x45f0, 0xb7, 0x4e, 0x3a, 0x58, 0xda, 0xd1, 0x1f, 0x37 ) + +// AVEncMPVGenerateHeaderPicDispExt (BOOL) +DEFINE_CODECAPI_GUID( AVEncMPVGenerateHeaderPicDispExt, "c6412f84-c03f-4f40-a00c-4293df8395bb", 0xc6412f84, 0xc03f, 0x4f40, 0xa0, 0x0c, 0x42, 0x93, 0xdf, 0x83, 0x95, 0xbb ) + +// AVEncMPVGenerateHeaderSeqScaleExt (BOOL) +DEFINE_CODECAPI_GUID( AVEncMPVGenerateHeaderSeqScaleExt, "0722d62f-dd59-4a86-9cd5-644f8e2653d8", 0x0722d62f, 0xdd59, 0x4a86, 0x9c, 0xd5, 0x64, 0x4f, 0x8e, 0x26, 0x53, 0xd8 ) + +// AVEncMPVScanPattern (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVScanPattern, "7f8a478e-7bbb-4ae2-b2fc-96d17fc4a2d6", 0x7f8a478e, 0x7bbb, 0x4ae2, 0xb2, 0xfc, 0x96, 0xd1, 0x7f, 0xc4, 0xa2, 0xd6 ) + +enum eAVEncMPVScanPattern +{ + eAVEncMPVScanPattern_Auto = 0, + eAVEncMPVScanPattern_ZigZagScan = 1, + eAVEncMPVScanPattern_AlternateScan = 2 +}; + +// AVEncMPVIntraDCPrecision (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVIntraDCPrecision, "a0116151-cbc8-4af3-97dc-d00cceb82d79", 0xa0116151, 0xcbc8, 0x4af3, 0x97, 0xdc, 0xd0, 0x0c, 0xce, 0xb8, 0x2d, 0x79 ) + +// AVEncMPVQScaleType (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVQScaleType, "2b79ebb7-f484-4af7-bb58-a2a188c5cbbe", 0x2b79ebb7, 0xf484, 0x4af7, 0xbb, 0x58, 0xa2, 0xa1, 0x88, 0xc5, 0xcb, 0xbe ) + +enum eAVEncMPVQScaleType +{ + eAVEncMPVQScaleType_Auto = 0, + eAVEncMPVQScaleType_Linear = 1, + eAVEncMPVQScaleType_NonLinear = 2 +}; + +// AVEncMPVIntraVLCTable (UINT32) +DEFINE_CODECAPI_GUID( AVEncMPVIntraVLCTable, "a2b83ff5-1a99-405a-af95-c5997d558d3a", 0xa2b83ff5, 0x1a99, 0x405a, 0xaf, 0x95, 0xc5, 0x99, 0x7d, 0x55, 0x8d, 0x3a ) + +enum eAVEncMPVIntraVLCTable +{ + eAVEncMPVIntraVLCTable_Auto = 0, + eAVEncMPVIntraVLCTable_MPEG1 = 1, + eAVEncMPVIntraVLCTable_Alternate = 2 +}; + +// AVEncMPVQuantMatrixIntra (BYTE[64] encoded as a string of 128 hex digits) +DEFINE_CODECAPI_GUID( AVEncMPVQuantMatrixIntra, "9bea04f3-6621-442c-8ba1-3ac378979698", 0x9bea04f3, 0x6621, 0x442c, 0x8b, 0xa1, 0x3a, 0xc3, 0x78, 0x97, 0x96, 0x98 ) + +// AVEncMPVQuantMatrixNonIntra (BYTE[64] encoded as a string of 128 hex digits) +DEFINE_CODECAPI_GUID( AVEncMPVQuantMatrixNonIntra, "87f441d8-0997-4beb-a08e-8573d409cf75", 0x87f441d8, 0x0997, 0x4beb, 0xa0, 0x8e, 0x85, 0x73, 0xd4, 0x09, 0xcf, 0x75 ) + +// AVEncMPVQuantMatrixChromaIntra (BYTE[64] encoded as a string of 128 hex digits) +DEFINE_CODECAPI_GUID( AVEncMPVQuantMatrixChromaIntra, "9eb9ecd4-018d-4ffd-8f2d-39e49f07b17a", 0x9eb9ecd4, 0x018d, 0x4ffd, 0x8f, 0x2d, 0x39, 0xe4, 0x9f, 0x07, 0xb1, 0x7a ) + +// AVEncMPVQuantMatrixChromaNonIntra (BYTE[64] encoded as a string of 128 hex digits) +DEFINE_CODECAPI_GUID( AVEncMPVQuantMatrixChromaNonIntra, "1415b6b1-362a-4338-ba9a-1ef58703c05b", 0x1415b6b1, 0x362a, 0x4338, 0xba, 0x9a, 0x1e, 0xf5, 0x87, 0x03, 0xc0, 0x5b ) + +// +// MPEG1 Audio Encoding Interface +// + +// +// MPEG1 Audio Specific Parameters +// + +// AVEncMPALayer (UINT) +DEFINE_CODECAPI_GUID( AVEncMPALayer, "9d377230-f91b-453d-9ce0-78445414c22d", 0x9d377230, 0xf91b, 0x453d, 0x9c, 0xe0, 0x78, 0x44, 0x54, 0x14, 0xc2, 0x2d ) + +enum eAVEncMPALayer +{ + eAVEncMPALayer_1 = 1, + eAVEncMPALayer_2 = 2, + eAVEncMPALayer_3 = 3 +}; + +// AVEncMPACodingMode (UINT) +DEFINE_CODECAPI_GUID( AVEncMPACodingMode, "b16ade03-4b93-43d7-a550-90b4fe224537", 0xb16ade03, 0x4b93, 0x43d7, 0xa5, 0x50, 0x90, 0xb4, 0xfe, 0x22, 0x45, 0x37 ) + +enum eAVEncMPACodingMode +{ + eAVEncMPACodingMode_Mono = 0, + eAVEncMPACodingMode_Stereo = 1, + eAVEncMPACodingMode_DualChannel = 2, + eAVEncMPACodingMode_JointStereo = 3, + eAVEncMPACodingMode_Surround = 4 +}; + +// AVEncMPACopyright (BOOL) - default state to encode into the stream (may be overridden by input) +// 1 (true) - copyright protected +// 0 (false) - not copyright protected +DEFINE_CODECAPI_GUID( AVEncMPACopyright, "a6ae762a-d0a9-4454-b8ef-f2dbeefdd3bd", 0xa6ae762a, 0xd0a9, 0x4454, 0xb8, 0xef, 0xf2, 0xdb, 0xee, 0xfd, 0xd3, 0xbd ) + +// AVEncMPAOriginalBitstream (BOOL) - default value to encode into the stream (may be overridden by input) +// 1 (true) - for original bitstream +// 0 (false) - for copy bitstream +DEFINE_CODECAPI_GUID( AVEncMPAOriginalBitstream, "3cfb7855-9cc9-47ff-b829-b36786c92346", 0x3cfb7855, 0x9cc9, 0x47ff, 0xb8, 0x29, 0xb3, 0x67, 0x86, 0xc9, 0x23, 0x46 ) + +// AVEncMPAEnableRedundancyProtection (BOOL) +// 1 (true) - Redundancy should be added to facilitate error detection and concealment (CRC) +// 0 (false) - No redundancy should be added +DEFINE_CODECAPI_GUID( AVEncMPAEnableRedundancyProtection, "5e54b09e-b2e7-4973-a89b-0b3650a3beda", 0x5e54b09e, 0xb2e7, 0x4973, 0xa8, 0x9b, 0x0b, 0x36, 0x50, 0xa3, 0xbe, 0xda ) + +// AVEncMPAPrivateUserBit (UINT) - User data bit value to encode in the stream +DEFINE_CODECAPI_GUID( AVEncMPAPrivateUserBit, "afa505ce-c1e3-4e3d-851b-61b700e5e6cc", 0xafa505ce, 0xc1e3, 0x4e3d, 0x85, 0x1b, 0x61, 0xb7, 0x00, 0xe5, 0xe6, 0xcc ) + +// AVEncMPAEmphasisType (UINT) +// Indicates type of de-emphasis filter to be used +DEFINE_CODECAPI_GUID( AVEncMPAEmphasisType, "2d59fcda-bf4e-4ed6-b5df-5b03b36b0a1f", 0x2d59fcda, 0xbf4e, 0x4ed6, 0xb5, 0xdf, 0x5b, 0x03, 0xb3, 0x6b, 0x0a, 0x1f ) + +enum eAVEncMPAEmphasisType +{ + eAVEncMPAEmphasisType_None = 0, + eAVEncMPAEmphasisType_50_15 = 1, + eAVEncMPAEmphasisType_Reserved = 2, + eAVEncMPAEmphasisType_CCITT_J17 = 3, +}; + +// +// Dolby Digital(TM) Audio Encoding Interface +// + +// +// Dolby Digital(TM) Audio Specific Parameters +// + +// AVEncDDService (UINT) +DEFINE_CODECAPI_GUID( AVEncDDService, "d2e1bec7-5172-4d2a-a50e-2f3b82b1ddf8", 0xd2e1bec7, 0x5172, 0x4d2a, 0xa5, 0x0e, 0x2f, 0x3b, 0x82, 0xb1, 0xdd, 0xf8 ) + +enum eAVEncDDService +{ + eAVEncDDService_CM = 0, // (Main Service: Complete Main) + eAVEncDDService_ME = 1, // (Main Service: Music and Effects (ME)) + eAVEncDDService_VI = 2, // (Associated Service: Visually-Impaired (VI) + eAVEncDDService_HI = 3, // (Associated Service: Hearing-Impaired (HI)) + eAVEncDDService_D = 4, // (Associated Service: Dialog (D)) + eAVEncDDService_C = 5, // (Associated Service: Commentary (C)) + eAVEncDDService_E = 6, // (Associated Service: Emergency (E)) + eAVEncDDService_VO = 7 // (Associated Service: Voice Over (VO) / Karaoke) +}; + +// AVEncDDDialogNormalization (UINT32) +DEFINE_CODECAPI_GUID( AVEncDDDialogNormalization, "d7055acf-f125-437d-a704-79c79f0404a8", 0xd7055acf, 0xf125, 0x437d, 0xa7, 0x04, 0x79, 0xc7, 0x9f, 0x04, 0x04, 0xa8 ) + +// AVEncDDCentreDownMixLevel (UINT32) +DEFINE_CODECAPI_GUID( AVEncDDCentreDownMixLevel, "e285072c-c958-4a81-afd2-e5e0daf1b148", 0xe285072c, 0xc958, 0x4a81, 0xaf, 0xd2, 0xe5, 0xe0, 0xda, 0xf1, 0xb1, 0x48 ) + +// AVEncDDSurroundDownMixLevel (UINT32) +DEFINE_CODECAPI_GUID( AVEncDDSurroundDownMixLevel, "7b20d6e5-0bcf-4273-a487-506b047997e9", 0x7b20d6e5, 0x0bcf, 0x4273, 0xa4, 0x87, 0x50, 0x6b, 0x04, 0x79, 0x97, 0xe9 ) + +// AVEncDDProductionInfoExists (BOOL) +DEFINE_CODECAPI_GUID( AVEncDDProductionInfoExists, "b0b7fe5f-b6ab-4f40-964d-8d91f17c19e8", 0xb0b7fe5f, 0xb6ab, 0x4f40, 0x96, 0x4d, 0x8d, 0x91, 0xf1, 0x7c, 0x19, 0xe8 ) + +// AVEncDDProductionRoomType (UINT32) +DEFINE_CODECAPI_GUID( AVEncDDProductionRoomType, "dad7ad60-23d8-4ab7-a284-556986d8a6fe", 0xdad7ad60, 0x23d8, 0x4ab7, 0xa2, 0x84, 0x55, 0x69, 0x86, 0xd8, 0xa6, 0xfe ) + +enum eAVEncDDProductionRoomType +{ + eAVEncDDProductionRoomType_NotIndicated = 0, + eAVEncDDProductionRoomType_Large = 1, + eAVEncDDProductionRoomType_Small = 2 +}; + +// AVEncDDProductionMixLevel (UINT32) +DEFINE_CODECAPI_GUID( AVEncDDProductionMixLevel, "301d103a-cbf9-4776-8899-7c15b461ab26", 0x301d103a, 0xcbf9, 0x4776, 0x88, 0x99, 0x7c, 0x15, 0xb4, 0x61, 0xab, 0x26 ) + +// AVEncDDCopyright (BOOL) +DEFINE_CODECAPI_GUID( AVEncDDCopyright, "8694f076-cd75-481d-a5c6-a904dcc828f0", 0x8694f076, 0xcd75, 0x481d, 0xa5, 0xc6, 0xa9, 0x04, 0xdc, 0xc8, 0x28, 0xf0 ) + +// AVEncDDOriginalBitstream (BOOL) +DEFINE_CODECAPI_GUID( AVEncDDOriginalBitstream, "966ae800-5bd3-4ff9-95b9-d30566273856", 0x966ae800, 0x5bd3, 0x4ff9, 0x95, 0xb9, 0xd3, 0x05, 0x66, 0x27, 0x38, 0x56 ) + +// AVEncDDDigitalDeemphasis (BOOL) +DEFINE_CODECAPI_GUID( AVEncDDDigitalDeemphasis, "e024a2c2-947c-45ac-87d8-f1030c5c0082", 0xe024a2c2, 0x947c, 0x45ac, 0x87, 0xd8, 0xf1, 0x03, 0x0c, 0x5c, 0x00, 0x82 ) + +// AVEncDDDCHighPassFilter (BOOL) +DEFINE_CODECAPI_GUID( AVEncDDDCHighPassFilter, "9565239f-861c-4ac8-bfda-e00cb4db8548", 0x9565239f, 0x861c, 0x4ac8, 0xbf, 0xda, 0xe0, 0x0c, 0xb4, 0xdb, 0x85, 0x48 ) + +// AVEncDDChannelBWLowPassFilter (BOOL) +DEFINE_CODECAPI_GUID( AVEncDDChannelBWLowPassFilter, "e197821d-d2e7-43e2-ad2c-00582f518545", 0xe197821d, 0xd2e7, 0x43e2, 0xad, 0x2c, 0x00, 0x58, 0x2f, 0x51, 0x85, 0x45 ) + +// AVEncDDLFELowPassFilter (BOOL) +DEFINE_CODECAPI_GUID( AVEncDDLFELowPassFilter, "d3b80f6f-9d15-45e5-91be-019c3fab1f01", 0xd3b80f6f, 0x9d15, 0x45e5, 0x91, 0xbe, 0x01, 0x9c, 0x3f, 0xab, 0x1f, 0x01 ) + +// AVEncDDSurround90DegreeePhaseShift (BOOL) +DEFINE_CODECAPI_GUID( AVEncDDSurround90DegreeePhaseShift, "25ecec9d-3553-42c0-bb56-d25792104f80", 0x25ecec9d, 0x3553, 0x42c0, 0xbb, 0x56, 0xd2, 0x57, 0x92, 0x10, 0x4f, 0x80 ) + +// AVEncDDSurround3dBAttenuation (BOOL) +DEFINE_CODECAPI_GUID( AVEncDDSurround3dBAttenuation, "4d43b99d-31e2-48b9-bf2e-5cbf1a572784", 0x4d43b99d, 0x31e2, 0x48b9, 0xbf, 0x2e, 0x5c, 0xbf, 0x1a, 0x57, 0x27, 0x84 ) + +// AVEncDDDynamicRangeCompressionControl (UINT32) +DEFINE_CODECAPI_GUID( AVEncDDDynamicRangeCompressionControl, "cfc2ff6d-79b8-4b8d-a8aa-a0c9bd1c2940", 0xcfc2ff6d, 0x79b8, 0x4b8d, 0xa8, 0xaa, 0xa0, 0xc9, 0xbd, 0x1c, 0x29, 0x40 ) + +enum eAVEncDDDynamicRangeCompressionControl +{ + eAVEncDDDynamicRangeCompressionControl_None = 0, + eAVEncDDDynamicRangeCompressionControl_FilmStandard = 1, + eAVEncDDDynamicRangeCompressionControl_FilmLight = 2, + eAVEncDDDynamicRangeCompressionControl_MusicStandard = 3, + eAVEncDDDynamicRangeCompressionControl_MusicLight = 4, + eAVEncDDDynamicRangeCompressionControl_Speech = 5 +}; + +// AVEncDDRFPreEmphasisFilter (BOOL) +DEFINE_CODECAPI_GUID( AVEncDDRFPreEmphasisFilter, "21af44c0-244e-4f3d-a2cc-3d3068b2e73f", 0x21af44c0, 0x244e, 0x4f3d, 0xa2, 0xcc, 0x3d, 0x30, 0x68, 0xb2, 0xe7, 0x3f ) + +// AVEncDDSurroundExMode (UINT32) +DEFINE_CODECAPI_GUID( AVEncDDSurroundExMode, "91607cee-dbdd-4eb6-bca2-aadfafa3dd68", 0x91607cee, 0xdbdd, 0x4eb6, 0xbc, 0xa2, 0xaa, 0xdf, 0xaf, 0xa3, 0xdd, 0x68 ) + +enum eAVEncDDSurroundExMode +{ + eAVEncDDSurroundExMode_NotIndicated = 0, + eAVEncDDSurroundExMode_No = 1, + eAVEncDDSurroundExMode_Yes = 2 +}; + +// AVEncDDPreferredStereoDownMixMode (UINT32) +DEFINE_CODECAPI_GUID( AVEncDDPreferredStereoDownMixMode, "7f4e6b31-9185-403d-b0a2-763743e6f063", 0x7f4e6b31, 0x9185, 0x403d, 0xb0, 0xa2, 0x76, 0x37, 0x43, 0xe6, 0xf0, 0x63 ) + +enum eAVEncDDPreferredStereoDownMixMode +{ + eAVEncDDPreferredStereoDownMixMode_LtRt = 0, + eAVEncDDPreferredStereoDownMixMode_LoRo = 1 +}; + +// AVEncDDLtRtCenterMixLvl_x10 (INT32) +DEFINE_CODECAPI_GUID( AVEncDDLtRtCenterMixLvl_x10, "dca128a2-491f-4600-b2da-76e3344b4197", 0xdca128a2, 0x491f, 0x4600, 0xb2, 0xda, 0x76, 0xe3, 0x34, 0x4b, 0x41, 0x97 ) + +// AVEncDDLtRtSurroundMixLvl_x10 (INT32) +DEFINE_CODECAPI_GUID( AVEncDDLtRtSurroundMixLvl_x10, "212246c7-3d2c-4dfa-bc21-652a9098690d", 0x212246c7, 0x3d2c, 0x4dfa, 0xbc, 0x21, 0x65, 0x2a, 0x90, 0x98, 0x69, 0x0d ) + +// AVEncDDLoRoCenterMixLvl (INT32) +DEFINE_CODECAPI_GUID( AVEncDDLoRoCenterMixLvl_x10, "1cfba222-25b3-4bf4-9bfd-e7111267858c", 0x1cfba222, 0x25b3, 0x4bf4, 0x9b, 0xfd, 0xe7, 0x11, 0x12, 0x67, 0x85, 0x8c ) + +// AVEncDDLoRoSurroundMixLvl_x10 (INT32) +DEFINE_CODECAPI_GUID( AVEncDDLoRoSurroundMixLvl_x10, "e725cff6-eb56-40c7-8450-2b9367e91555", 0xe725cff6, 0xeb56, 0x40c7, 0x84, 0x50, 0x2b, 0x93, 0x67, 0xe9, 0x15, 0x55 ) + +// AVEncDDAtoDConverterType (UINT32) +DEFINE_CODECAPI_GUID( AVEncDDAtoDConverterType, "719f9612-81a1-47e0-9a05-d94ad5fca948", 0x719f9612, 0x81a1, 0x47e0, 0x9a, 0x05, 0xd9, 0x4a, 0xd5, 0xfc, 0xa9, 0x48 ) + +enum eAVEncDDAtoDConverterType +{ + eAVEncDDAtoDConverterType_Standard = 0, + eAVEncDDAtoDConverterType_HDCD = 1 +}; + +// AVEncDDHeadphoneMode (UINT32) +DEFINE_CODECAPI_GUID( AVEncDDHeadphoneMode, "4052dbec-52f5-42f5-9b00-d134b1341b9d", 0x4052dbec, 0x52f5, 0x42f5, 0x9b, 0x00, 0xd1, 0x34, 0xb1, 0x34, 0x1b, 0x9d ) + +enum eAVEncDDHeadphoneMode +{ + eAVEncDDHeadphoneMode_NotIndicated = 0, + eAVEncDDHeadphoneMode_NotEncoded = 1, + eAVEncDDHeadphoneMode_Encoded = 2 +}; + +// +// WMV Video Encoding Interface +// + +// +// WMV Video Specific Parameters +// + +// AVEncWMVKeyFrameDistance (UINT32) +DEFINE_CODECAPI_GUID( AVEncWMVKeyFrameDistance, "5569055e-e268-4771-b83e-9555ea28aed3", 0x5569055e, 0xe268, 0x4771, 0xb8, 0x3e, 0x95, 0x55, 0xea, 0x28, 0xae, 0xd3 ) + +// AVEncWMVInterlacedEncoding (UINT32) +DEFINE_CODECAPI_GUID( AVEncWMVInterlacedEncoding, "e3d00f8a-c6f5-4e14-a588-0ec87a726f9b", 0xe3d00f8a, 0xc6f5, 0x4e14, 0xa5, 0x88, 0x0e, 0xc8, 0x7a, 0x72, 0x6f, 0x9b ) + +// AVEncWMVDecoderComplexity (UINT32) +DEFINE_CODECAPI_GUID( AVEncWMVDecoderComplexity, "f32c0dab-f3cb-4217-b79f-8762768b5f67", 0xf32c0dab, 0xf3cb, 0x4217, 0xb7, 0x9f, 0x87, 0x62, 0x76, 0x8b, 0x5f, 0x67 ) + +// AVEncWMVHasKeyFrameBufferLevelMarker (BOOL) +DEFINE_CODECAPI_GUID( AVEncWMVKeyFrameBufferLevelMarker, "51ff1115-33ac-426c-a1b1-09321bdf96b4", 0x51ff1115, 0x33ac, 0x426c, 0xa1, 0xb1, 0x09, 0x32, 0x1b, 0xdf, 0x96, 0xb4 ) + +// AVEncWMVProduceDummyFrames (UINT32) +DEFINE_CODECAPI_GUID( AVEncWMVProduceDummyFrames, "d669d001-183c-42e3-a3ca-2f4586d2396c", 0xd669d001, 0x183c, 0x42e3, 0xa3, 0xca, 0x2f, 0x45, 0x86, 0xd2, 0x39, 0x6c ) + +// +// WMV Post-Encode Statistical Parameters +// + +// AVEncStatWMVCBAvg (UINT32/UINT32) +DEFINE_CODECAPI_GUID( AVEncStatWMVCBAvg, "6aa6229f-d602-4b9d-b68c-c1ad78884bef", 0x6aa6229f, 0xd602, 0x4b9d, 0xb6, 0x8c, 0xc1, 0xad, 0x78, 0x88, 0x4b, 0xef ) + +// AVEncStatWMVCBMax (UINT32/UINT32) +DEFINE_CODECAPI_GUID( AVEncStatWMVCBMax, "e976bef8-00fe-44b4-b625-8f238bc03499", 0xe976bef8, 0x00fe, 0x44b4, 0xb6, 0x25, 0x8f, 0x23, 0x8b, 0xc0, 0x34, 0x99 ) + +// AVEncStatWMVDecoderComplexityProfile (UINT32) +DEFINE_CODECAPI_GUID( AVEncStatWMVDecoderComplexityProfile, "89e69fc3-0f9b-436c-974a-df821227c90d", 0x89e69fc3, 0x0f9b, 0x436c, 0x97, 0x4a, 0xdf, 0x82, 0x12, 0x27, 0xc9, 0x0d ) + +// AVEncStatMPVSkippedEmptyFrames (UINT32) +DEFINE_CODECAPI_GUID( AVEncStatMPVSkippedEmptyFrames, "32195fd3-590d-4812-a7ed-6d639a1f9711", 0x32195fd3, 0x590d, 0x4812, 0xa7, 0xed, 0x6d, 0x63, 0x9a, 0x1f, 0x97, 0x11 ) + +// +// MPEG1/2 Multiplexer Interfaces +// + +// +// MPEG1/2 Packetizer Interface +// + +// Shared with Mux: +// AVEncMP12MuxEarliestPTS (UINT32) +// AVEncMP12MuxLargestPacketSize (UINT32) +// AVEncMP12MuxSysSTDBufferBound (UINT32) + +// AVEncMP12PktzSTDBuffer (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12PktzSTDBuffer, "0b751bd0-819e-478c-9435-75208926b377", 0x0b751bd0, 0x819e, 0x478c, 0x94, 0x35, 0x75, 0x20, 0x89, 0x26, 0xb3, 0x77 ) + +// AVEncMP12PktzStreamID (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12PktzStreamID, "c834d038-f5e8-4408-9b60-88f36493fedf", 0xc834d038, 0xf5e8, 0x4408, 0x9b, 0x60, 0x88, 0xf3, 0x64, 0x93, 0xfe, 0xdf ) + +// AVEncMP12PktzInitialPTS (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12PktzInitialPTS, "2a4f2065-9a63-4d20-ae22-0a1bc896a315", 0x2a4f2065, 0x9a63, 0x4d20, 0xae, 0x22, 0x0a, 0x1b, 0xc8, 0x96, 0xa3, 0x15 ) + +// AVEncMP12PktzPacketSize (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12PktzPacketSize, "ab71347a-1332-4dde-a0e5-ccf7da8a0f22", 0xab71347a, 0x1332, 0x4dde, 0xa0, 0xe5, 0xcc, 0xf7, 0xda, 0x8a, 0x0f, 0x22 ) + +// AVEncMP12PktzCopyright (BOOL) +DEFINE_CODECAPI_GUID( AVEncMP12PktzCopyright, "c8f4b0c1-094c-43c7-8e68-a595405a6ef8", 0xc8f4b0c1, 0x094c, 0x43c7, 0x8e, 0x68, 0xa5, 0x95, 0x40, 0x5a, 0x6e, 0xf8 ) + +// AVEncMP12PktzOriginal (BOOL) +DEFINE_CODECAPI_GUID( AVEncMP12PktzOriginal, "6b178416-31b9-4964-94cb-6bff866cdf83", 0x6b178416, 0x31b9, 0x4964, 0x94, 0xcb, 0x6b, 0xff, 0x86, 0x6c, 0xdf, 0x83 ) + +// +// MPEG1/2 Multiplexer Interface +// + +// AVEncMP12MuxPacketOverhead (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxPacketOverhead, "e40bd720-3955-4453-acf9-b79132a38fa0", 0xe40bd720, 0x3955, 0x4453, 0xac, 0xf9, 0xb7, 0x91, 0x32, 0xa3, 0x8f, 0xa0 ) + +// AVEncMP12MuxNumStreams (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxNumStreams, "f7164a41-dced-4659-a8f2-fb693f2a4cd0", 0xf7164a41, 0xdced, 0x4659, 0xa8, 0xf2, 0xfb, 0x69, 0x3f, 0x2a, 0x4c, 0xd0 ) + +// AVEncMP12MuxEarliestPTS (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxEarliestPTS, "157232b6-f809-474e-9464-a7f93014a817", 0x157232b6, 0xf809, 0x474e, 0x94, 0x64, 0xa7, 0xf9, 0x30, 0x14, 0xa8, 0x17 ) + +// AVEncMP12MuxLargestPacketSize (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxLargestPacketSize, "35ceb711-f461-4b92-a4ef-17b6841ed254", 0x35ceb711, 0xf461, 0x4b92, 0xa4, 0xef, 0x17, 0xb6, 0x84, 0x1e, 0xd2, 0x54 ) + +// AVEncMP12MuxInitialSCR (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxInitialSCR, "3433ad21-1b91-4a0b-b190-2b77063b63a4", 0x3433ad21, 0x1b91, 0x4a0b, 0xb1, 0x90, 0x2b, 0x77, 0x06, 0x3b, 0x63, 0xa4 ) + +// AVEncMP12MuxMuxRate (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxMuxRate, "ee047c72-4bdb-4a9d-8e21-41926c823da7", 0xee047c72, 0x4bdb, 0x4a9d, 0x8e, 0x21, 0x41, 0x92, 0x6c, 0x82, 0x3d, 0xa7 ) + +// AVEncMP12MuxPackSize (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxPackSize, "f916053a-1ce8-4faf-aa0b-ba31c80034b8", 0xf916053a, 0x1ce8, 0x4faf, 0xaa, 0x0b, 0xba, 0x31, 0xc8, 0x00, 0x34, 0xb8 ) + +// AVEncMP12MuxSysSTDBufferBound (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxSysSTDBufferBound, "35746903-b545-43e7-bb35-c5e0a7d5093c", 0x35746903, 0xb545, 0x43e7, 0xbb, 0x35, 0xc5, 0xe0, 0xa7, 0xd5, 0x09, 0x3c ) + +// AVEncMP12MuxSysRateBound (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxSysRateBound, "05f0428a-ee30-489d-ae28-205c72446710", 0x05f0428a, 0xee30, 0x489d, 0xae, 0x28, 0x20, 0x5c, 0x72, 0x44, 0x67, 0x10 ) + +// AVEncMP12MuxTargetPacketizer (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxTargetPacketizer, "d862212a-2015-45dd-9a32-1b3aa88205a0", 0xd862212a, 0x2015, 0x45dd, 0x9a, 0x32, 0x1b, 0x3a, 0xa8, 0x82, 0x05, 0xa0 ) + +// AVEncMP12MuxSysFixed (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxSysFixed, "cefb987e-894f-452e-8f89-a4ef8cec063a", 0xcefb987e, 0x894f, 0x452e, 0x8f, 0x89, 0xa4, 0xef, 0x8c, 0xec, 0x06, 0x3a ) + +// AVEncMP12MuxSysCSPS (UINT32) +DEFINE_CODECAPI_GUID( AVEncMP12MuxSysCSPS, "7952ff45-9c0d-4822-bc82-8ad772e02993", 0x7952ff45, 0x9c0d, 0x4822, 0xbc, 0x82, 0x8a, 0xd7, 0x72, 0xe0, 0x29, 0x93 ) + +// AVEncMP12MuxSysVideoLock (BOOL) +DEFINE_CODECAPI_GUID( AVEncMP12MuxSysVideoLock, "b8296408-2430-4d37-a2a1-95b3e435a91d", 0xb8296408, 0x2430, 0x4d37, 0xa2, 0xa1, 0x95, 0xb3, 0xe4, 0x35, 0xa9, 0x1d ) + +// AVEncMP12MuxSysAudioLock (BOOL) +DEFINE_CODECAPI_GUID( AVEncMP12MuxSysAudioLock, "0fbb5752-1d43-47bf-bd79-f2293d8ce337", 0x0fbb5752, 0x1d43, 0x47bf, 0xbd, 0x79, 0xf2, 0x29, 0x3d, 0x8c, 0xe3, 0x37 ) + +// AVEncMP12MuxDVDNavPacks (BOOL) +DEFINE_CODECAPI_GUID( AVEncMP12MuxDVDNavPacks, "c7607ced-8cf1-4a99-83a1-ee5461be3574", 0xc7607ced, 0x8cf1, 0x4a99, 0x83, 0xa1, 0xee, 0x54, 0x61, 0xbe, 0x35, 0x74 ) + +// +// Decoding Interface +// + + +// format values are GUIDs as VARIANT BSTRs +DEFINE_CODECAPI_GUID( AVDecCommonInputFormat, "E5005239-BD89-4be3-9C0F-5DDE317988CC", 0xe5005239, 0xbd89, 0x4be3, 0x9c, 0x0f, 0x5d, 0xde, 0x31, 0x79, 0x88, 0xcc) +DEFINE_CODECAPI_GUID( AVDecCommonOutputFormat, "3c790028-c0ce-4256-b1a2-1b0fc8b1dcdc", 0x3c790028, 0xc0ce, 0x4256, 0xb1, 0xa2, 0x1b, 0x0f, 0xc8, 0xb1, 0xdc, 0xdc) + +// AVDecCommonMeanBitRate - Mean bitrate in mbits/sec (UINT32) +DEFINE_CODECAPI_GUID( AVDecCommonMeanBitRate, "59488217-007A-4f7a-8E41-5C48B1EAC5C6", 0x59488217, 0x007a, 0x4f7a, 0x8e, 0x41, 0x5c, 0x48, 0xb1, 0xea, 0xc5, 0xc6) +// AVDecCommonMeanBitRateInterval - Mean bitrate interval (in 100ns) (UINT64) +DEFINE_CODECAPI_GUID( AVDecCommonMeanBitRateInterval, "0EE437C6-38A7-4c5c-944C-68AB42116B85", 0x0ee437c6, 0x38a7, 0x4c5c, 0x94, 0x4c, 0x68, 0xab, 0x42, 0x11, 0x6b, 0x85) + +// +// Audio Decoding Interface +// + +// Value GUIDS +// The following 6 GUIDs are values of the AVDecCommonOutputFormat property +// +// Stereo PCM output using matrix-encoded stereo down mix (aka Lt/Rt) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded, "696E1D30-548F-4036-825F-7026C60011BD", 0x696e1d30, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd) +// +// Regular PCM output (any number of channels) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioOutputFormat_PCM, "696E1D31-548F-4036-825F-7026C60011BD", 0x696e1d31, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd) +// +// SPDIF PCM (IEC 60958) stereo output. Type of stereo down mix should +// be specified by the application. +DEFINE_CODECAPI_GUID( GUID_AVDecAudioOutputFormat_SPDIF_PCM, "696E1D32-548F-4036-825F-7026C60011BD", 0x696e1d32, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd) +// +// SPDIF bitstream (IEC 61937) output, such as AC3, MPEG or DTS. +DEFINE_CODECAPI_GUID( GUID_AVDecAudioOutputFormat_SPDIF_Bitstream, "696E1D33-548F-4036-825F-7026C60011BD", 0x696e1d33, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd) +// +// Stereo PCM output using regular stereo down mix (aka Lo/Ro) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioOutputFormat_PCM_Headphones, "696E1D34-548F-4036-825F-7026C60011BD", 0x696e1d34, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd) + +// Stereo PCM output using automatic selection of stereo down mix +// mode (Lo/Ro or Lt/Rt). Use this when the input stream includes +// information about the preferred downmix mode (such as Annex D of AC3). +// Default down mix mode should be specified by the application. +DEFINE_CODECAPI_GUID( GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto, "696E1D35-548F-4036-825F-7026C60011BD", 0x696e1d35, 0x548f, 0x4036, 0x82, 0x5f, 0x70, 0x26, 0xc6, 0x00, 0x11, 0xbd) + +// +// Video Decoder properties +// + +// AVDecVideoImageSize (UINT32) - High UINT16 width, low UINT16 height +DEFINE_CODECAPI_GUID( AVDecVideoImageSize, "5EE5747C-6801-4cab-AAF1-6248FA841BA4", 0x5ee5747c, 0x6801, 0x4cab, 0xaa, 0xf1, 0x62, 0x48, 0xfa, 0x84, 0x1b, 0xa4) + +// AVDecVideoPixelAspectRatio (UINT32 as UINT16/UNIT16) - High UINT16 width, low UINT16 height +DEFINE_CODECAPI_GUID( AVDecVideoPixelAspectRatio, "B0CF8245-F32D-41df-B02C-87BD304D12AB", 0xb0cf8245, 0xf32d, 0x41df, 0xb0, 0x2c, 0x87, 0xbd, 0x30, 0x4d, 0x12, 0xab) + +// AVDecVideoInputScanType (UINT32) +DEFINE_CODECAPI_GUID( AVDecVideoInputScanType, "38477E1F-0EA7-42cd-8CD1-130CED57C580", 0x38477e1f, 0x0ea7, 0x42cd, 0x8c, 0xd1, 0x13, 0x0c, 0xed, 0x57, 0xc5, 0x80) +enum eAVDecVideoInputScanType +{ + eAVDecVideoInputScan_Unknown = 0, + eAVDecVideoInputScan_Progressive = 1, + eAVDecVideoInputScan_Interlaced_UpperFieldFirst = 2, + eAVDecVideoInputScan_Interlaced_LowerFieldFirst = 3 +}; + + +// AVDecVideoSWPowerLevel (UINT32) +// Related to video decoder software power saving level in MPEG4 Part 2, VC1 and H264. +// "SW Power Level" will take a range from 0 to 100 to indicate the current power saving level. 0 - Optimize for battery life, 50 - balanced, 100 - Optimize for video quality. +DEFINE_CODECAPI_GUID( AVDecVideoSWPowerLevel, "FB5D2347-4DD8-4509-AED0-DB5FA9AA93F4", 0xfb5d2347, 0x4dd8, 0x4509, 0xae, 0xd0, 0xdb, 0x5f, 0xa9, 0xaa, 0x93, 0xf4) + +enum eAVDecVideoSWPowerLevel +{ + eAVDecVideoSWPowerLevel_BatteryLife = 0, + eAVDecVideoSWPowerLevel_Balanced = 50, + eAVDecVideoSWPowerLevel_VideoQuality = 100 +}; + +// +// Audio Decoder properties +// + + +DEFINE_CODECAPI_GUID( GUID_AVDecAudioInputWMA, "C95E8DCF-4058-4204-8C42-CB24D91E4B9B", 0xc95e8dcf, 0x4058, 0x4204, 0x8c, 0x42, 0xcb, 0x24, 0xd9, 0x1e, 0x4b, 0x9b) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioInputWMAPro, "0128B7C7-DA72-4fe3-BEF8-5C52E3557704", 0x0128b7c7, 0xda72, 0x4fe3, 0xbe, 0xf8, 0x5c, 0x52, 0xe3, 0x55, 0x77, 0x04) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioInputDolby, "8E4228A0-F000-4e0b-8F54-AB8D24AD61A2", 0x8e4228a0, 0xf000, 0x4e0b, 0x8f, 0x54, 0xab, 0x8d, 0x24, 0xad, 0x61, 0xa2) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioInputDTS, "600BC0CA-6A1F-4e91-B241-1BBEB1CB19E0", 0x600bc0ca, 0x6a1f, 0x4e91, 0xb2, 0x41, 0x1b, 0xbe, 0xb1, 0xcb, 0x19, 0xe0) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioInputPCM, "F2421DA5-BBB4-4cd5-A996-933C6B5D1347", 0xf2421da5, 0xbbb4, 0x4cd5, 0xa9, 0x96, 0x93, 0x3c, 0x6b, 0x5d, 0x13, 0x47) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioInputMPEG, "91106F36-02C5-4f75-9719-3B7ABF75E1F6", 0x91106f36, 0x02c5, 0x4f75, 0x97, 0x19, 0x3b, 0x7a, 0xbf, 0x75, 0xe1, 0xf6) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioInputAAC, "97DF7828-B94A-47e2-A4BC-51194DB22A4D", 0x97df7828, 0xb94a, 0x47e2, 0xa4, 0xbc, 0x51, 0x19, 0x4d, 0xb2, 0x2a, 0x4d) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioInputHEAAC, "16EFB4AA-330E-4f5c-98A8-CF6AC55CBE60", 0x16efb4aa, 0x330e, 0x4f5c, 0x98, 0xa8, 0xcf, 0x6a, 0xc5, 0x5c, 0xbe, 0x60) +DEFINE_CODECAPI_GUID( GUID_AVDecAudioInputDolbyDigitalPlus, "0803E185-8F5D-47f5-9908-19A5BBC9FE34", 0x0803e185, 0x8f5d, 0x47f5, 0x99, 0x08, 0x19, 0xa5, 0xbb, 0xc9, 0xfe, 0x34) + +// AVDecAACDownmixMode (UINT32) +// AAC/HE-AAC Decoder uses standard ISO/IEC MPEG-2/MPEG-4 stereo downmix equations or uses +// non-standard downmix. An example of a non standard downmix would be the one defined by ARIB document STD-B21 version 4.4. +DEFINE_CODECAPI_GUID( AVDecAACDownmixMode,"01274475-F6BB-4017-B084-81A763C942D4", 0x1274475, 0xf6bb, 0x4017, 0xb0, 0x84, 0x81, 0xa7, 0x63, 0xc9, 0x42, 0xd4) + +enum eAVDecAACDownmixMode +{ + eAVDecAACUseISODownmix = 0, + eAVDecAACUseARIBDownmix = 1 +}; + +// AVDecHEAACDynamicRangeControl (UINT32) +// Set this property on an AAC/HE-AAC decoder to select whether Dynamic Range Control (DRC) should be applied or not. +// If DRC is ON and the AAC/HE-AAC stream includes extension payload of type EXT_DYNAMIC_RANGE, DRC will be applied. +DEFINE_CODECAPI_GUID( AVDecHEAACDynamicRangeControl, "287C8ABE-69A4-4d39-8080-D3D9712178A0", 0x287c8abe, 0x69a4, 0x4d39, 0x80, 0x80, 0xd3, 0xd9, 0x71, 0x21, 0x78, 0xa0); + +enum eAVDecHEAACDynamicRangeControl +{ + eAVDecHEAACDynamicRangeControl_OFF = 0, + eAVDecHEAACDynamicRangeControl_ON = 1 +}; + +// AVDecAudioDualMono (UINT32) - Read only +// The input bitstream header might have a field indicating whether the 2-ch bitstream +// is dual mono or not. Use this property to read this field. +// If it's dual mono, the application can set AVDecAudioDualMonoReproMode to determine +// one of 4 reproduction modes +DEFINE_CODECAPI_GUID( AVDecAudioDualMono,"4a52cda8-30f8-4216-be0f-ba0b2025921d", 0x4a52cda8, 0x30f8, 0x4216, 0xbe, 0x0f, 0xba, 0x0b, 0x20, 0x25, 0x92, 0x1d ) + +enum eAVDecAudioDualMono +{ + eAVDecAudioDualMono_IsNotDualMono = 0, // 2-ch bitstream input is not dual mono + eAVDecAudioDualMono_IsDualMono = 1, // 2-ch bitstream input is dual mono + eAVDecAudioDualMono_UnSpecified = 2 // There is no indication in the bitstream +}; + +// AVDecAudioDualMonoReproMode (UINT32) +// Reproduction modes for programs containing two independent mono channels (Ch1 & Ch2). +// In case of 2-ch input, the decoder should get AVDecAudioDualMono to check if the input +// is regular stereo or dual mono. If dual mono, the application can ask the user to set the playback +// mode by setting AVDecAudioDualReproMonoMode. If output is not stereo, use AVDecDDMatrixDecodingMode or +// equivalent. +DEFINE_CODECAPI_GUID( AVDecAudioDualMonoReproMode,"a5106186-cc94-4bc9-8cd9-aa2f61f6807e", 0xa5106186, 0xcc94, 0x4bc9, 0x8c, 0xd9, 0xaa, 0x2f, 0x61, 0xf6, 0x80, 0x7e ) + +enum eAVDecAudioDualMonoReproMode +{ + eAVDecAudioDualMonoReproMode_STEREO = 0, // Ch1+Ch2 for mono output, (Ch1 left, Ch2 right) for stereo output + eAVDecAudioDualMonoReproMode_LEFT_MONO = 1, // Ch1 for mono output, (Ch1 left, Ch1 right) for stereo output + eAVDecAudioDualMonoReproMode_RIGHT_MONO = 2, // Ch2 for mono output, (Ch2 left, Ch2 right) for stereo output + eAVDecAudioDualMonoReproMode_MIX_MONO = 3, // Ch1+Ch2 for mono output, (Ch1+Ch2 left, Ch1+Ch2 right) for stereo output +}; + +// +// Audio Common Properties +// + +// AVAudioChannelCount (UINT32) +// Total number of audio channels, including LFE if it exists. +DEFINE_CODECAPI_GUID( AVAudioChannelCount, "1d3583c4-1583-474e-b71a-5ee463c198e4", 0x1d3583c4, 0x1583, 0x474e, 0xb7, 0x1a, 0x5e, 0xe4, 0x63, 0xc1, 0x98, 0xe4 ) + +// AVAudioChannelConfig (UINT32) +// A bit-wise OR of any number of enum values specified by eAVAudioChannelConfig +DEFINE_CODECAPI_GUID( AVAudioChannelConfig, "17f89cb3-c38d-4368-9ede-63b94d177f9f", 0x17f89cb3, 0xc38d, 0x4368, 0x9e, 0xde, 0x63, 0xb9, 0x4d, 0x17, 0x7f, 0x9f ) + +// Enumerated values for AVAudioChannelConfig are identical +// to the speaker positions defined in ksmedia.h and used +// in WAVE_FORMAT_EXTENSIBLE. Configurations for 5.1 and +// 7.1 channels should be identical to KSAUDIO_SPEAKER_5POINT1_SURROUND +// and KSAUDIO_SPEAKER_7POINT1_SURROUND in ksmedia.h. This means: +// 5.1 ch -> LOW_FREQUENCY | FRONT_LEFT | FRONT_RIGHT | FRONT_CENTER | SIDE_LEFT | SIDE_RIGHT +// 7.1 ch -> LOW_FREQUENCY | FRONT_LEFT | FRONT_RIGHT | FRONT_CENTER | SIDE_LEFT | SIDE_RIGHT | BACK_LEFT | BACK_RIGHT +// +enum eAVAudioChannelConfig +{ + eAVAudioChannelConfig_FRONT_LEFT = 0x1, + eAVAudioChannelConfig_FRONT_RIGHT = 0x2, + eAVAudioChannelConfig_FRONT_CENTER = 0x4, + eAVAudioChannelConfig_LOW_FREQUENCY = 0x8, // aka LFE + eAVAudioChannelConfig_BACK_LEFT = 0x10, + eAVAudioChannelConfig_BACK_RIGHT = 0x20, + eAVAudioChannelConfig_FRONT_LEFT_OF_CENTER = 0x40, + eAVAudioChannelConfig_FRONT_RIGHT_OF_CENTER = 0x80, + eAVAudioChannelConfig_BACK_CENTER = 0x100, // aka Mono Surround + eAVAudioChannelConfig_SIDE_LEFT = 0x200, // aka Left Surround + eAVAudioChannelConfig_SIDE_RIGHT = 0x400, // aka Right Surround + eAVAudioChannelConfig_TOP_CENTER = 0x800, + eAVAudioChannelConfig_TOP_FRONT_LEFT = 0x1000, + eAVAudioChannelConfig_TOP_FRONT_CENTER = 0x2000, + eAVAudioChannelConfig_TOP_FRONT_RIGHT = 0x4000, + eAVAudioChannelConfig_TOP_BACK_LEFT = 0x8000, + eAVAudioChannelConfig_TOP_BACK_CENTER = 0x10000, + eAVAudioChannelConfig_TOP_BACK_RIGHT = 0x20000 +}; + +// AVAudioSampleRate (UINT32) +// In samples per second (Hz) +DEFINE_CODECAPI_GUID( AVAudioSampleRate, "971d2723-1acb-42e7-855c-520a4b70a5f2", 0x971d2723, 0x1acb, 0x42e7, 0x85, 0x5c, 0x52, 0x0a, 0x4b, 0x70, 0xa5, 0xf2 ) + +// +// Dolby Digital(TM) Audio Specific Parameters +// + +// AVDDSurroundMode (UINT32) common to encoder/decoder +DEFINE_CODECAPI_GUID( AVDDSurroundMode, "99f2f386-98d1-4452-a163-abc78a6eb770", 0x99f2f386, 0x98d1, 0x4452, 0xa1, 0x63, 0xab, 0xc7, 0x8a, 0x6e, 0xb7, 0x70 ) + +enum eAVDDSurroundMode +{ + eAVDDSurroundMode_NotIndicated = 0, + eAVDDSurroundMode_No = 1, + eAVDDSurroundMode_Yes = 2 +}; + +// AVDecDDOperationalMode (UINT32) +DEFINE_CODECAPI_GUID( AVDecDDOperationalMode,"d6d6c6d1-064e-4fdd-a40e-3ecbfcb7ebd0", 0xd6d6c6d1, 0x064e, 0x4fdd, 0xa4, 0x0e, 0x3e, 0xcb, 0xfc, 0xb7, 0xeb, 0xd0 ) + +enum eAVDecDDOperationalMode +{ + eAVDecDDOperationalMode_NONE = 0, + eAVDecDDOperationalMode_LINE = 1,// Dialnorm enabled, dialogue at -31dBFS, dynrng used, high/low scaling allowed + eAVDecDDOperationalMode_RF = 2,// Dialnorm enabled, dialogue at -20dBFS, dynrng & compr used, high/low scaling NOT allowed (always fully compressed) + eAVDecDDOperationalMode_CUSTOM0 = 3,// Analog dialnorm (dialogue normalization not part of the decoder) + eAVDecDDOperationalMode_CUSTOM1 = 4,// Digital dialnorm (dialogue normalization is part of the decoder) + eAVDecDDOperationalMode_PORTABLE8 = 5,// Dialnorm enabled, dialogue at -8dBFS, dynrng & compr used, high/low scaling NOT allowed (always fully compressed) + eAVDecDDOperationalMode_PORTABLE11 = 6,// Dialnorm enabled, dialogue at -11dBFS, dynrng & compr used, high/low scaling NOT allowed (always fully compressed) + eAVDecDDOperationalMode_PORTABLE14 = 7 // Dialnorm enabled, dialogue at -14dBFS, dynrng & compr used, high/low scaling NOT allowed (always fully compressed) +}; + +// AVDecDDMatrixDecodingMode(UINT32) +// A ProLogic decoder has a built-in auto-detection feature. When the Dolby Digital decoder +// is set to the 6-channel output configuration and it is fed a 2/0 bit stream to decode, it can +// do one of the following: +// a) decode the bit stream and output it on the two front channels (eAVDecDDMatrixDecodingMode_OFF), +// b) decode the bit stream followed by ProLogic decoding to create 6-channels (eAVDecDDMatrixDecodingMode_ON). +// c) the decoder will look at the Surround bit ("dsurmod") in the bit stream to determine whether +// apply ProLogic decoding or not (eAVDecDDMatrixDecodingMode_AUTO). +DEFINE_CODECAPI_GUID( AVDecDDMatrixDecodingMode,"ddc811a5-04ed-4bf3-a0ca-d00449f9355f", 0xddc811a5, 0x04ed, 0x4bf3, 0xa0, 0xca, 0xd0, 0x04, 0x49, 0xf9, 0x35, 0x5f ) + +enum eAVDecDDMatrixDecodingMode +{ + eAVDecDDMatrixDecodingMode_OFF = 0, + eAVDecDDMatrixDecodingMode_ON = 1, + eAVDecDDMatrixDecodingMode_AUTO = 2 +}; + +// AVDecDDDynamicRangeScaleHigh (UINT32) +// Indicates what fraction of the dynamic range compression +// to apply. Relevant for negative values of dynrng only. +// Linear range 0-100, where: +// 0 - No dynamic range compression (preserve full dynamic range) +// 100 - Apply full dynamic range compression +DEFINE_CODECAPI_GUID( AVDecDDDynamicRangeScaleHigh,"50196c21-1f33-4af5-b296-11426d6c8789", 0x50196c21, 0x1f33, 0x4af5, 0xb2, 0x96, 0x11, 0x42, 0x6d, 0x6c, 0x87, 0x89 ) + + +// AVDecDDDynamicRangeScaleLow (UINT32) +// Indicates what fraction of the dynamic range compression +// to apply. Relevant for positive values of dynrng only. +// Linear range 0-100, where: +// 0 - No dynamic range compression (preserve full dynamic range) +// 100 - Apply full dynamic range compression +DEFINE_CODECAPI_GUID( AVDecDDDynamicRangeScaleLow,"044e62e4-11a5-42d5-a3b2-3bb2c7c2d7cf", 0x044e62e4, 0x11a5, 0x42d5, 0xa3, 0xb2, 0x3b, 0xb2, 0xc7, 0xc2, 0xd7, 0xcf ) + + +// AVDecDDStereoDownMixMode (UINT32) +// A Dolby Digital Decoder may apply stereo downmix in one of several ways, after decoding multichannel PCM. +// Use one of the UINT32 values specified by eAVDecDDStereoDownMixMode to set stereo downmix mode. +// Only relevant when the decoder's output is set to stereo. +DEFINE_CODECAPI_GUID( AVDecDDStereoDownMixMode,"6CE4122C-3EE9-4182-B4AE-C10FC088649D", 0x6ce4122c, 0x3ee9, 0x4182, 0xb4, 0xae, 0xc1, 0x0f, 0xc0, 0x88, 0x64, 0x9d ) + +enum eAVDecDDStereoDownMixMode +{ + eAVDecDDStereoDownMixMode_Auto = 0, // Automatic detection + eAVDecDDStereoDownMixMode_LtRt = 1, // Surround compatible (Lt/Rt) + eAVDecDDStereoDownMixMode_LoRo = 2 // Stereo (Lo/Ro) +}; + + +// AVDSPLoudnessEqualization (UINT32) +// Related to audio digital signal processing (DSP). +// Apply "Loudness Equalization" to the audio stream, so users will not have to adjust volume control when audio stream changes. +DEFINE_CODECAPI_GUID( AVDSPLoudnessEqualization,"8AFD1A15-1812-4cbf-9319-433A5B2A3B27", 0x8afd1a15, 0x1812, 0x4cbf, 0x93, 0x19, 0x43, 0x3a, 0x5b, 0x2a, 0x3b, 0x27) + +enum eAVDSPLoudnessEqualization +{ + eAVDSPLoudnessEqualization_OFF = 0, + eAVDSPLoudnessEqualization_ON = 1, + eAVDSPLoudnessEqualization_AUTO = 2 +}; + +// AVDSPSpeakerFill (UINT32) +// Related to audio digital signal processing (DSP). +// "Speaker Fill" will take a mono or stereo audio stream and convert it to a multi channel (e.g. 5.1) audio stream. +DEFINE_CODECAPI_GUID( AVDSPSpeakerFill, "5612BCA1-56DA-4582-8DA1-CA8090F92768", 0x5612bca1, 0x56da, 0x4582, 0x8d, 0xa1, 0xca, 0x80, 0x90, 0xf9, 0x27, 0x68) + +enum eAVDSPSpeakerFill +{ + eAVDSPSpeakerFill_OFF = 0, + eAVDSPSpeakerFill_ON = 1, + eAVDSPSpeakerFill_AUTO = 2 +}; + +// AVPriorityControl (UINT32) +// Indicates the task priority when not realtime (0..15) +// Linear range 0-15, where: +// 0 - idle +// 15 - Highest +DEFINE_CODECAPI_GUID( AVPriorityControl,"54ba3dc8-bdde-4329-b187-2018bc5c2ba1", 0x54ba3dc8, 0xbdde, 0x4329, 0xb1, 0x87, 0x20, 0x18, 0xbc, 0x5c, 0x2b, 0xa1 ) + +// AVRealtimeControl (UINT32) +// Indicates the task is realtime or not +// Linear range 0-1, where: +// 0 - no realtime +// 1 - realtime +DEFINE_CODECAPI_GUID( AVRealtimeControl,"6f440632-c4ad-4bf7-9e52-456942b454b0", 0x6f440632, 0xc4ad, 0x4bf7, 0x9e, 0x52, 0x45, 0x69, 0x42, 0xb4, 0x54, 0xb0 ) + +// FeatureMapFlagsUsed (UINT32) +// Indicates which flags may and won't be present in the per-frame FeatureMap data for the sequence. +// The value is a bitwise OR of the MACROBLOCK_FLAG_* fields specified in mfapi.h +DEFINE_CODECAPI_GUID( FeatureMapFlagsUsed,"8BFDA3B8-7387-4c07-924F-FE63006CF22B", 0x8bfda3b8, 0x7387, 0x4c07, 0x92, 0x4f, 0xfe, 0x63, 0x0, 0x6c, 0xf2, 0x2b ) + +// AVEncNoInputCopy (UINT32) +// Enables the encoder to avoid copying the input buffer +// 0 - default behavior (copy input buffer to encoder internal buffer) +// 1 - use input buffer directly +// Input color space must be IYUV or YV12 for this to be effective. Input buffers must be fully contiguous. Input buffers +// must be macroblock-aligned (width and height divisible by 16). +DEFINE_CODECAPI_GUID( AVEncNoInputCopy, "d2b46a2a-e8ee-4ec5-869e-449b6c62c81a", 0xd2b46a2a, 0xe8ee, 0x4ec5, 0x86, 0x9e, 0x44, 0x9b, 0x6c, 0x62, 0xc8, 0x1a ) + +// AVEncChromaEncodeMode (UINT32) +// Change the mode used to encode chroma-only frames +// A member of the eAVChromaEncodeMode structure, where: +// eAVChromaEncodeMode_420 - default encoding +// eAVChromaEncodeMode_444 - enhanced encoding of chroma for repeated input frames +// eAVChromaEncodeMode_444_v2 - encoder will skip non-chroma macroblocks, in addition to functionality for eAVChromaEncodeMode_444 +enum eAVEncChromaEncodeMode +{ + eAVEncChromaEncodeMode_420, + eAVEncChromaEncodeMode_444, + eAVEncChromaEncodeMode_444_v2, +}; +DEFINE_CODECAPI_GUID( AVEncChromaEncodeMode, "8a47ab5a-4798-4c93-b5a5-554f9a3b9f50", 0x8a47ab5a, 0x4798, 0x4c93, 0xb5, 0xa5, 0x55, 0x4f, 0x9a, 0x3b, 0x9f, 0x50 ) + +// AVEncNextProgressiveTime (UINT32) +// Read-only +// Provides the time until the encoder plans to update progressive +// areas of the video frame. +DEFINE_CODECAPI_GUID( AVEncProgressiveUpdateTime, "649faf66-afc6-4828-8fdc-0771cd9ab17d", 0x649faf66, 0xafc6, 0x4828, 0x8f, 0xdc, 0x07, 0x71, 0xcd, 0x9a, 0xb1, 0x7d ) + +// AVEncNextChromaTime (UINT32) +// Read-only +// Provides the time until the encoder plans to update chroma +// in the video frame. +DEFINE_CODECAPI_GUID( AVEncChromaUpdateTime, "4b4fd998-4274-40bb-8ee4-07553e7e2d3a", 0x4b4fd998, 0x4274, 0x40bb, 0x8e, 0xe4, 0x07, 0x55, 0x3e, 0x7e, 0x2d, 0x3a ) + +// AVEncAACEnableVBR (BOOL) +// Indicates whether the AAC encoder should use VBR encoding. +DEFINE_CODECAPI_GUID( AVEncAACEnableVBR, "e836bb98-fca3-44b6-9a39-24786be41be1", 0xe836bb98, 0xfca3, 0x44b6, 0x9a, 0x39, 0x24, 0x78, 0x6b, 0xe4, 0x1b, 0xe1 ) + +// AVEncVideoConsecutiveFramesForLayer (UINT32) +// Indicates the number of consecutive frames at a given temporal layer. +// Set the CODECAPI_AVEncVideoSelectLayer property first to specify the temporal layer. +DEFINE_CODECAPI_GUID( AVEncVideoConsecutiveFramesForLayer, "0AF35522-D984-45ae-BBB8-53933E0AB1B5", 0x0AF35522, 0xD984, 0x45ae, 0xBB, 0xB8, 0x53, 0x93, 0x3E, 0x0A, 0xB1, 0xB5 ) + +// AVEncVideoMaxNumRefFrameForLayer (UINT32) +// Used to limit the number of reference frames for a given temporal layer. +// Set the CODECAPI_AVEncVideoSelectLayer property first to specify the temporal layer. +DEFINE_CODECAPI_GUID( AVEncVideoMaxNumRefFrameForLayer, "3141C639-6329-40d1-B7E7-2F0E3AC18E02", 0x3141C639, 0x6329, 0x40d1, 0xB7, 0xE7, 0x2F, 0x0E, 0x3A, 0xC1, 0x8E, 0x02 ) + +// AVEncTileRows (UINT32) +// Specifies the number of tile rows to encode. +DEFINE_CODECAPI_GUID( AVEncTileRows, "FBC650FC-41AB-4f9b-84B5-065BE9CD99EE", 0xFBC650FC, 0x41AB, 0x4f9b, 0x84, 0xB5, 0x06, 0x5B, 0xE9, 0xCD, 0x99, 0xEE ) + +// AVEncTileColumns (UINT32) +// Specifies the number of tile columns to encode. +DEFINE_CODECAPI_GUID( AVEncTileColumns, "B4B31205-01E8-452c-B876-8C6506545925", 0xB4B31205, 0x01E8, 0x452c, 0xB8, 0x76, 0x8C, 0x65, 0x06, 0x54, 0x59, 0x25 ) + +// AVEncVideoEnableFramePsnrYuv (BOOL) +// Indicates whether to enable or disable reporting frame PSNR of YUV planes for video encoding. +// VARIANT_FALSE: disable; VARIANT_TRUE: enable +DEFINE_CODECAPI_GUID( AVEncVideoEnableFramePsnrYuv,"2BBCDD1D-BC47-430E-B2E8-64801B47F5F0", 0x2bbcdd1d, 0xbc47, 0x430e, 0xb2, 0xe8, 0x64, 0x80, 0x1b, 0x47, 0xf5, 0xf0 ) + +// AVEncVideoEnableSpatialAdaptiveQuantization (BOOL) +// Indicates whether to enable or disable spatial adaptive quantization for video encoding. +// VARIANT_FALSE: disable; VARIANT_TRUE: enable +DEFINE_CODECAPI_GUID( AVEncVideoEnableSpatialAdaptiveQuantization,"659CB943-15CA-448D-B99A-875619DB4DE4", 0x659cb943, 0x15ca, 0x448d, 0xb9, 0x9a, 0x87, 0x56, 0x19, 0xdb, 0x4d, 0xe4 ) + +// AVEncVideoOutputQPMapBlockSize (VT_UI4) +// The block size used in reporting the output QP map for each block in an encoded video frame. +// ulVal should be power of 2, such as 16 or 32, etc. +// Zero value is used to disable the QP map reporting. +DEFINE_CODECAPI_GUID( AVEncVideoOutputQPMapBlockSize,"97038743-4AE3-44C3-A0F2-5BD58A4634EF", 0x97038743, 0x4ae3, 0x44c3, 0xa0, 0xf2, 0x5b, 0xd5, 0x8a, 0x46, 0x34, 0xef ) + +// AVEncVideoOutputBitsUsedMapBlockSize (VT_UI4) +// The block size used in reporting the output bits used map for each block in an encoded video frame. +// ulVal should be power of 2, such as 16 or 32, etc. +// Zero value is used to disable the bits used map reporting. +DEFINE_CODECAPI_GUID( AVEncVideoOutputBitsUsedMapBlockSize,"6C2CD11A-CA3B-44BD-9A9E-93B03634C36E", 0x6c2cd11a, 0xca3b, 0x44bd, 0x9a, 0x9e, 0x93, 0xb0, 0x36, 0x34, 0xc3, 0x6e ) + +// AVEncVideoSatdMapBlockSize (VT_UI4) +// The block size used in reporting the output SATD map for each block in an encoded video frame. +// ulVal should be zero or power of 2, such as 16 or 32. +// A zero value disables the SATD map reporting. +DEFINE_CODECAPI_GUID( AVEncVideoSatdMapBlockSize, "596F1106-8CE0-4302-AF79-C4EC67AADC6D", 0x596f1106, 0x8ce0, 0x4302, 0xaf, 0x79, 0xc4, 0xec, 0x67, 0xaa, 0xdc, 0x6d ) + +// AVEncVideoInputDeltaQPSettings (VT_BLOB) +// Read-only parameter that specifies the settings that the encoder MFT supports with respect to delta QP values as input. +// Use ICodecAPI::GetValue to determine supported settings for Input Delta QP. +// See usage of InputQPSettings within mfapi.h to retrieve block size & qp details +DEFINE_CODECAPI_GUID(AVEncVideoInputDeltaQPBlockSettings, "5A4787DC-0648-47AA-B945-552BFAD2A6D8", 0x5a4787dc, 0x648, 0x47aa, 0xb9, 0x45, 0x55, 0x2b, 0xfa, 0xd2, 0xa6, 0xd8 ) + +// AVEncVideoInputAbsoluteQPBlockSettings (VT_BLOB) +// Read-only parameter that specifies the settings that the encoder MFT supports with respect to absolute QP values as input. +// Use ICodecAPI::GetValue to determine supported settings for Input Absolute QP. +// See usage of InputQPSettings within mfapi.h to retrieve block size & qp details +DEFINE_CODECAPI_GUID(AVEncVideoInputAbsoluteQPBlockSettings, "EF95A145-4F91-4DEA-8173-ACFF11434210", 0xef95a145, 0x4f91, 0x4dea, 0x81, 0x73, 0xac, 0xff, 0x11, 0x43, 0x42, 0x10 ) + +#ifndef UUID_GEN +// { GUID refs + #define CODECAPI_AVEncCommonFormatConstraint DEFINE_CODECAPI_GUIDNAMED( AVEncCommonFormatConstraint ) + #define CODECAPI_GUID_AVEncCommonFormatUnSpecified DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatUnSpecified ) + #define CODECAPI_GUID_AVEncCommonFormatDVD_V DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatDVD_V ) + #define CODECAPI_GUID_AVEncCommonFormatDVD_DashVR DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatDVD_DashVR ) + #define CODECAPI_GUID_AVEncCommonFormatDVD_PlusVR DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatDVD_PlusVR ) + #define CODECAPI_GUID_AVEncCommonFormatVCD DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatVCD ) + #define CODECAPI_GUID_AVEncCommonFormatSVCD DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatSVCD ) + #define CODECAPI_GUID_AVEncCommonFormatATSC DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatATSC ) + #define CODECAPI_GUID_AVEncCommonFormatDVB DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatDVB ) + #define CODECAPI_GUID_AVEncCommonFormatMP3 DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatMP3 ) + #define CODECAPI_GUID_AVEncCommonFormatHighMAT DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatHighMAT ) + #define CODECAPI_GUID_AVEncCommonFormatHighMPV DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncCommonFormatHighMPV ) + #define CODECAPI_AVEncCodecType DEFINE_CODECAPI_GUIDNAMED( AVEncCodecType ) + #define CODECAPI_GUID_AVEncMPEG1Video DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncMPEG1Video ) + #define CODECAPI_GUID_AVEncMPEG2Video DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncMPEG2Video ) + #define CODECAPI_GUID_AVEncMPEG1Audio DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncMPEG1Audio ) + #define CODECAPI_GUID_AVEncMPEG2Audio DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncMPEG2Audio ) + #define CODECAPI_GUID_AVEncWMV DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncWMV ) + #define CODECAPI_GUID_AVEndMPEG4Video DEFINE_CODECAPI_GUIDNAMED( GUID_AVEndMPEG4Video ) + #define CODECAPI_GUID_AVEncH264Video DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncH264Video ) + #define CODECAPI_GUID_AVEncDV DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncDV ) + #define CODECAPI_GUID_AVEncWMAPro DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncWMAPro ) + #define CODECAPI_GUID_AVEncWMALossless DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncWMALossless ) + #define CODECAPI_GUID_AVEncWMAVoice DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncWMAVoice ) + #define CODECAPI_GUID_AVEncDolbyDigitalPro DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncDolbyDigitalPro ) + #define CODECAPI_GUID_AVEncDolbyDigitalConsumer DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncDolbyDigitalConsumer ) + #define CODECAPI_GUID_AVEncDolbyDigitalPlus DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncDolbyDigitalPlus ) + #define CODECAPI_GUID_AVEncDTSHD DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncDTSHD ) + #define CODECAPI_GUID_AVEncDTS DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncDTS ) + #define CODECAPI_GUID_AVEncMLP DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncMLP ) + #define CODECAPI_GUID_AVEncPCM DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncPCM ) + #define CODECAPI_GUID_AVEncSDDS DEFINE_CODECAPI_GUIDNAMED( GUID_AVEncSDDS ) + #define CODECAPI_AVEncCommonRateControlMode DEFINE_CODECAPI_GUIDNAMED( AVEncCommonRateControlMode ) + #define CODECAPI_AVEncCommonLowLatency DEFINE_CODECAPI_GUIDNAMED( AVEncCommonLowLatency ) + #define CODECAPI_AVEncCommonMultipassMode DEFINE_CODECAPI_GUIDNAMED( AVEncCommonMultipassMode ) + #define CODECAPI_AVEncCommonPassStart DEFINE_CODECAPI_GUIDNAMED( AVEncCommonPassStart ) + #define CODECAPI_AVEncCommonPassEnd DEFINE_CODECAPI_GUIDNAMED( AVEncCommonPassEnd ) + #define CODECAPI_AVEncCommonRealTime DEFINE_CODECAPI_GUIDNAMED( AVEncCommonRealTime ) + #define CODECAPI_AVEncCommonQuality DEFINE_CODECAPI_GUIDNAMED( AVEncCommonQuality ) + #define CODECAPI_AVEncCommonQualityVsSpeed DEFINE_CODECAPI_GUIDNAMED( AVEncCommonQualityVsSpeed ) + #define CODECAPI_AVEncCommonTranscodeEncodingProfile DEFINE_CODECAPI_GUIDNAMED( AVEncCommonTranscodeEncodingProfile ) + #define CODECAPI_AVEncCommonMeanBitRate DEFINE_CODECAPI_GUIDNAMED( AVEncCommonMeanBitRate ) + #define CODECAPI_AVEncCommonMeanBitRateInterval DEFINE_CODECAPI_GUIDNAMED( AVEncCommonMeanBitRateInterval ) + #define CODECAPI_AVEncCommonMaxBitRate DEFINE_CODECAPI_GUIDNAMED( AVEncCommonMaxBitRate ) + #define CODECAPI_AVEncCommonMinBitRate DEFINE_CODECAPI_GUIDNAMED( AVEncCommonMinBitRate ) + #define CODECAPI_AVEncCommonBufferSize DEFINE_CODECAPI_GUIDNAMED( AVEncCommonBufferSize ) + #define CODECAPI_AVEncCommonBufferInLevel DEFINE_CODECAPI_GUIDNAMED( AVEncCommonBufferInLevel ) + #define CODECAPI_AVEncCommonBufferOutLevel DEFINE_CODECAPI_GUIDNAMED( AVEncCommonBufferOutLevel ) + #define CODECAPI_AVEncCommonStreamEndHandling DEFINE_CODECAPI_GUIDNAMED( AVEncCommonStreamEndHandling ) + #define CODECAPI_AVEncStatCommonCompletedPasses DEFINE_CODECAPI_GUIDNAMED( AVEncStatCommonCompletedPasses ) + #define CODECAPI_AVEncVideoOutputFrameRate DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputFrameRate ) + #define CODECAPI_AVEncVideoOutputFrameRateConversion DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputFrameRateConversion ) + #define CODECAPI_AVEncVideoPixelAspectRatio DEFINE_CODECAPI_GUIDNAMED( AVEncVideoPixelAspectRatio ) + #define CODECAPI_AVDecVideoAcceleration_MPEG2 DEFINE_CODECAPI_GUIDNAMED( AVDecVideoAcceleration_MPEG2 ) + #define CODECAPI_AVDecVideoAcceleration_H264 DEFINE_CODECAPI_GUIDNAMED( AVDecVideoAcceleration_H264 ) + #define CODECAPI_AVDecVideoAcceleration_VC1 DEFINE_CODECAPI_GUIDNAMED( AVDecVideoAcceleration_VC1 ) + #define CODECAPI_AVDecVideoProcDeinterlaceCSC DEFINE_CODECAPI_GUIDNAMED( AVDecVideoProcDeinterlaceCSC ) + #define CODECAPI_AVEncVideoForceSourceScanType DEFINE_CODECAPI_GUIDNAMED( AVEncVideoForceSourceScanType ) + #define CODECAPI_AVEncVideoNoOfFieldsToEncode DEFINE_CODECAPI_GUIDNAMED( AVEncVideoNoOfFieldsToEncode ) + #define CODECAPI_AVEncVideoNoOfFieldsToSkip DEFINE_CODECAPI_GUIDNAMED( AVEncVideoNoOfFieldsToSkip ) + #define CODECAPI_AVEncVideoEncodeDimension DEFINE_CODECAPI_GUIDNAMED( AVEncVideoEncodeDimension ) + #define CODECAPI_AVEncVideoEncodeOffsetOrigin DEFINE_CODECAPI_GUIDNAMED( AVEncVideoEncodeOffsetOrigin ) + #define CODECAPI_AVEncVideoDisplayDimension DEFINE_CODECAPI_GUIDNAMED( AVEncVideoDisplayDimension ) + #define CODECAPI_AVEncVideoOutputScanType DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputScanType ) + #define CODECAPI_AVEncVideoInverseTelecineEnable DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInverseTelecineEnable ) + #define CODECAPI_AVEncVideoInverseTelecineThreshold DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInverseTelecineThreshold ) + #define CODECAPI_AVEncVideoSourceFilmContent DEFINE_CODECAPI_GUIDNAMED( AVEncVideoSourceFilmContent ) + #define CODECAPI_AVEncVideoSourceIsBW DEFINE_CODECAPI_GUIDNAMED( AVEncVideoSourceIsBW ) + #define CODECAPI_AVEncVideoFieldSwap DEFINE_CODECAPI_GUIDNAMED( AVEncVideoFieldSwap ) + #define CODECAPI_AVEncVideoInputChromaResolution DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInputChromaResolution ) + #define CODECAPI_AVEncVideoOutputChromaResolution DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputChromaResolution ) + #define CODECAPI_AVEncVideoInputChromaSubsampling DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInputChromaSubsampling ) + #define CODECAPI_AVEncVideoOutputChromaSubsampling DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputChromaSubsampling ) + #define CODECAPI_AVEncVideoInputColorPrimaries DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInputColorPrimaries ) + #define CODECAPI_AVEncVideoOutputColorPrimaries DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputColorPrimaries ) + #define CODECAPI_AVEncVideoInputColorTransferFunction DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInputColorTransferFunction ) + #define CODECAPI_AVEncVideoOutputColorTransferFunction DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputColorTransferFunction ) + #define CODECAPI_AVEncVideoInputColorTransferMatrix DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInputColorTransferMatrix ) + #define CODECAPI_AVEncVideoOutputColorTransferMatrix DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputColorTransferMatrix ) + #define CODECAPI_AVEncVideoInputColorLighting DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInputColorLighting ) + #define CODECAPI_AVEncVideoOutputColorLighting DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputColorLighting ) + #define CODECAPI_AVEncVideoInputColorNominalRange DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInputColorNominalRange ) + #define CODECAPI_AVEncVideoOutputColorNominalRange DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputColorNominalRange ) + #define CODECAPI_AVEncInputVideoSystem DEFINE_CODECAPI_GUIDNAMED( AVEncInputVideoSystem ) + #define CODECAPI_AVEncVideoHeaderDropFrame DEFINE_CODECAPI_GUIDNAMED( AVEncVideoHeaderDropFrame ) + #define CODECAPI_AVEncVideoHeaderHours DEFINE_CODECAPI_GUIDNAMED( AVEncVideoHeaderHours ) + #define CODECAPI_AVEncVideoHeaderMinutes DEFINE_CODECAPI_GUIDNAMED( AVEncVideoHeaderMinutes ) + #define CODECAPI_AVEncVideoHeaderSeconds DEFINE_CODECAPI_GUIDNAMED( AVEncVideoHeaderSeconds ) + #define CODECAPI_AVEncVideoHeaderFrames DEFINE_CODECAPI_GUIDNAMED( AVEncVideoHeaderFrames ) + #define CODECAPI_AVEncVideoDefaultUpperFieldDominant DEFINE_CODECAPI_GUIDNAMED( AVEncVideoDefaultUpperFieldDominant ) + #define CODECAPI_AVEncVideoCBRMotionTradeoff DEFINE_CODECAPI_GUIDNAMED( AVEncVideoCBRMotionTradeoff ) + #define CODECAPI_AVEncVideoCodedVideoAccessUnitSize DEFINE_CODECAPI_GUIDNAMED( AVEncVideoCodedVideoAccessUnitSize ) + #define CODECAPI_AVEncVideoMaxKeyframeDistance DEFINE_CODECAPI_GUIDNAMED( AVEncVideoMaxKeyframeDistance ) + #define CODECAPI_AVEncH264CABACEnable DEFINE_CODECAPI_GUIDNAMED( AVEncH264CABACEnable ) + #define CODECAPI_AVEncVideoContentType DEFINE_CODECAPI_GUIDNAMED( AVEncVideoContentType ) + #define CODECAPI_AVEncNumWorkerThreads DEFINE_CODECAPI_GUIDNAMED( AVEncNumWorkerThreads ) + #define CODECAPI_AVEncVideoEncodeQP DEFINE_CODECAPI_GUIDNAMED( AVEncVideoEncodeQP ) + #define CODECAPI_AVEncVideoMinQP DEFINE_CODECAPI_GUIDNAMED( AVEncVideoMinQP ) + #define CODECAPI_AVEncVideoForceKeyFrame DEFINE_CODECAPI_GUIDNAMED( AVEncVideoForceKeyFrame ) + #define CODECAPI_AVEncH264SPSID DEFINE_CODECAPI_GUIDNAMED( AVEncH264SPSID ) + #define CODECAPI_AVEncH264PPSID DEFINE_CODECAPI_GUIDNAMED( AVEncH264PPSID ) + #define CODECAPI_AVEncAdaptiveMode DEFINE_CODECAPI_GUIDNAMED( AVEncAdaptiveMode ) + #define CODECAPI_AVEncVideoSelectLayer DEFINE_CODECAPI_GUIDNAMED( AVEncVideoSelectLayer ) + #define CODECAPI_AVEncVideoTemporalLayerCount DEFINE_CODECAPI_GUIDNAMED( AVEncVideoTemporalLayerCount ) + #define CODECAPI_AVEncVideoUsage DEFINE_CODECAPI_GUIDNAMED( AVEncVideoUsage ) + #define CODECAPI_AVEncVideoRateControlParams DEFINE_CODECAPI_GUIDNAMED( AVEncVideoRateControlParams ) + #define CODECAPI_AVEncVideoSupportedControls DEFINE_CODECAPI_GUIDNAMED( AVEncVideoSupportedControls ) + #define CODECAPI_AVEncVideoEncodeFrameTypeQP DEFINE_CODECAPI_GUIDNAMED( AVEncVideoEncodeFrameTypeQP ) + #define CODECAPI_AVEncSliceControlMode DEFINE_CODECAPI_GUIDNAMED( AVEncSliceControlMode ) + #define CODECAPI_AVEncSliceControlSize DEFINE_CODECAPI_GUIDNAMED( AVEncSliceControlSize ) + #define CODECAPI_AVEncSliceGenerationMode DEFINE_CODECAPI_GUIDNAMED( AVEncSliceGenerationMode ) + #define CODECAPI_AVEncVideoMaxNumRefFrame DEFINE_CODECAPI_GUIDNAMED( AVEncVideoMaxNumRefFrame ) + #define CODECAPI_AVEncVideoMeanAbsoluteDifference DEFINE_CODECAPI_GUIDNAMED( AVEncVideoMeanAbsoluteDifference ) + #define CODECAPI_AVEncVideoMaxQP DEFINE_CODECAPI_GUIDNAMED( AVEncVideoMaxQP ) + #define CODECAPI_AVEncVideoLTRBufferControl DEFINE_CODECAPI_GUIDNAMED( AVEncVideoLTRBufferControl ) + #define CODECAPI_AVEncVideoMarkLTRFrame DEFINE_CODECAPI_GUIDNAMED( AVEncVideoMarkLTRFrame ) + #define CODECAPI_AVEncVideoUseLTRFrame DEFINE_CODECAPI_GUIDNAMED( AVEncVideoUseLTRFrame ) + #define CODECAPI_AVEncVideoROIEnabled DEFINE_CODECAPI_GUIDNAMED( AVEncVideoROIEnabled ) + #define CODECAPI_AVEncVideoDirtyRectEnabled DEFINE_CODECAPI_GUIDNAMED( AVEncVideoDirtyRectEnabled ) + #define CODECAPI_AVScenarioInfo DEFINE_CODECAPI_GUIDNAMED( AVScenarioInfo ) + #define CODECAPI_AVEncMPVGOPSizeMin DEFINE_CODECAPI_GUIDNAMED( AVEncMPVGOPSizeMin ) + #define CODECAPI_AVEncMPVGOPSizeMax DEFINE_CODECAPI_GUIDNAMED( AVEncMPVGOPSizeMax ) + #define CODECAPI_AVEncVideoMaxCTBSize DEFINE_CODECAPI_GUIDNAMED( AVEncVideoMaxCTBSize ) + #define CODECAPI_AVEncVideoCTBSize DEFINE_CODECAPI_GUIDNAMED( AVEncVideoCTBSize ) + #define CODECAPI_VideoEncoderDisplayContentType DEFINE_CODECAPI_GUIDNAMED( VideoEncoderDisplayContentType ) + #define CODECAPI_AVEncEnableVideoProcessing DEFINE_CODECAPI_GUIDNAMED( AVEncEnableVideoProcessing ) + #define CODECAPI_AVEncVideoGradualIntraRefresh DEFINE_CODECAPI_GUIDNAMED( AVEncVideoGradualIntraRefresh ) + #define CODECAPI_GetOPMContext DEFINE_CODECAPI_GUIDNAMED( GetOPMContext ) + #define CODECAPI_SetHDCPManagerContext DEFINE_CODECAPI_GUIDNAMED( SetHDCPManagerContext ) + #define CODECAPI_AVEncVideoMaxTemporalLayers DEFINE_CODECAPI_GUIDNAMED( AVEncVideoMaxTemporalLayers ) + #define CODECAPI_AVEncVideoNumGOPsPerIDR DEFINE_CODECAPI_GUIDNAMED( AVEncVideoNumGOPsPerIDR ) + #define CODECAPI_AVEncCommonAllowFrameDrops DEFINE_CODECAPI_GUIDNAMED( AVEncCommonAllowFrameDrops ) + #define CODECAPI_AVEncVideoIntraLayerPrediction DEFINE_CODECAPI_GUIDNAMED( AVEncVideoIntraLayerPrediction ) + #define CODECAPI_AVEncVideoInstantTemporalUpSwitching DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInstantTemporalUpSwitching ) + #define CODECAPI_AVEncLowPowerEncoder DEFINE_CODECAPI_GUIDNAMED( AVEncLowPowerEncoder ) + #define CODECAPI_AVEnableInLoopDeblockFilter DEFINE_CODECAPI_GUIDNAMED( AVEnableInLoopDeblockFilter ) + + #define CODECAPI_AVEncMuxOutputStreamType DEFINE_CODECAPI_GUIDNAMED( AVEncMuxOutputStreamType ) + + #define CODECAPI_AVEncStatVideoOutputFrameRate DEFINE_CODECAPI_GUIDNAMED( AVEncStatVideoOutputFrameRate ) + #define CODECAPI_AVEncStatVideoCodedFrames DEFINE_CODECAPI_GUIDNAMED( AVEncStatVideoCodedFrames ) + #define CODECAPI_AVEncStatVideoTotalFrames DEFINE_CODECAPI_GUIDNAMED( AVEncStatVideoTotalFrames ) + #define CODECAPI_AVEncAudioIntervalToEncode DEFINE_CODECAPI_GUIDNAMED( AVEncAudioIntervalToEncode ) + #define CODECAPI_AVEncAudioIntervalToSkip DEFINE_CODECAPI_GUIDNAMED( AVEncAudioIntervalToSkip ) + #define CODECAPI_AVEncAudioDualMono DEFINE_CODECAPI_GUIDNAMED( AVEncAudioDualMono ) + #define CODECAPI_AVEncAudioMeanBitRate DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMeanBitRate ) + + #define CODECAPI_AVEncAudioMapDestChannel0 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel0 ) + #define CODECAPI_AVEncAudioMapDestChannel1 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel1 ) + #define CODECAPI_AVEncAudioMapDestChannel2 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel2 ) + #define CODECAPI_AVEncAudioMapDestChannel3 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel3 ) + #define CODECAPI_AVEncAudioMapDestChannel4 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel4 ) + #define CODECAPI_AVEncAudioMapDestChannel5 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel5 ) + #define CODECAPI_AVEncAudioMapDestChannel6 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel6 ) + #define CODECAPI_AVEncAudioMapDestChannel7 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel7 ) + #define CODECAPI_AVEncAudioMapDestChannel8 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel8 ) + #define CODECAPI_AVEncAudioMapDestChannel9 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel9 ) + #define CODECAPI_AVEncAudioMapDestChannel10 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel10 ) + #define CODECAPI_AVEncAudioMapDestChannel11 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel11 ) + #define CODECAPI_AVEncAudioMapDestChannel12 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel12 ) + #define CODECAPI_AVEncAudioMapDestChannel13 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel13 ) + #define CODECAPI_AVEncAudioMapDestChannel14 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel14 ) + #define CODECAPI_AVEncAudioMapDestChannel15 DEFINE_CODECAPI_GUIDNAMED( AVEncAudioMapDestChannel15 ) + + #define CODECAPI_AVEncAudioInputContent DEFINE_CODECAPI_GUIDNAMED( AVEncAudioInputContent ) + #define CODECAPI_AVEncStatAudioPeakPCMValue DEFINE_CODECAPI_GUIDNAMED( AVEncStatAudioPeakPCMValue ) + #define CODECAPI_AVEncStatAudioAveragePCMValue DEFINE_CODECAPI_GUIDNAMED( AVEncStatAudioAveragePCMValue ) + #define CODECAPI_AVEncStatAudioAverageBPS DEFINE_CODECAPI_GUIDNAMED( AVEncStatAudioAverageBPS ) + #define CODECAPI_AVEncStatAverageBPS DEFINE_CODECAPI_GUIDNAMED( AVEncStatAverageBPS ) + #define CODECAPI_AVEncStatHardwareProcessorUtilitization DEFINE_CODECAPI_GUIDNAMED( AVEncStatHardwareProcessorUtilitization ) + #define CODECAPI_AVEncStatBandwidthProcessorUtilitization DEFINE_CODECAPI_GUIDNAMED( AVEncStatHardwareBandwidthUtilitization ) + #define CODECAPI_AVEncMPVGOPSize DEFINE_CODECAPI_GUIDNAMED( AVEncMPVGOPSize ) + #define CODECAPI_AVEncMPVGOPOpen DEFINE_CODECAPI_GUIDNAMED( AVEncMPVGOPOpen ) + #define CODECAPI_AVEncMPVDefaultBPictureCount DEFINE_CODECAPI_GUIDNAMED( AVEncMPVDefaultBPictureCount ) + #define CODECAPI_AVEncMPVProfile DEFINE_CODECAPI_GUIDNAMED( AVEncMPVProfile ) + #define CODECAPI_AVEncMPVLevel DEFINE_CODECAPI_GUIDNAMED( AVEncMPVLevel ) + #define CODECAPI_AVEncMPVFrameFieldMode DEFINE_CODECAPI_GUIDNAMED( AVEncMPVFrameFieldMode ) + #define CODECAPI_AVEncMPVAddSeqEndCode DEFINE_CODECAPI_GUIDNAMED( AVEncMPVAddSeqEndCode ) + #define CODECAPI_AVEncMPVGOPSInSeq DEFINE_CODECAPI_GUIDNAMED( AVEncMPVGOPSInSeq ) + #define CODECAPI_AVEncMPVUseConcealmentMotionVectors DEFINE_CODECAPI_GUIDNAMED( AVEncMPVUseConcealmentMotionVectors ) + #define CODECAPI_AVEncMPVSceneDetection DEFINE_CODECAPI_GUIDNAMED( AVEncMPVSceneDetection ) + #define CODECAPI_AVEncMPVGenerateHeaderSeqExt DEFINE_CODECAPI_GUIDNAMED( AVEncMPVGenerateHeaderSeqExt ) + #define CODECAPI_AVEncMPVGenerateHeaderSeqDispExt DEFINE_CODECAPI_GUIDNAMED( AVEncMPVGenerateHeaderSeqDispExt ) + #define CODECAPI_AVEncMPVGenerateHeaderPicExt DEFINE_CODECAPI_GUIDNAMED( AVEncMPVGenerateHeaderPicExt ) + #define CODECAPI_AVEncMPVGenerateHeaderPicDispExt DEFINE_CODECAPI_GUIDNAMED( AVEncMPVGenerateHeaderPicDispExt ) + #define CODECAPI_AVEncMPVGenerateHeaderSeqScaleExt DEFINE_CODECAPI_GUIDNAMED( AVEncMPVGenerateHeaderSeqScaleExt ) + #define CODECAPI_AVEncMPVScanPattern DEFINE_CODECAPI_GUIDNAMED( AVEncMPVScanPattern ) + #define CODECAPI_AVEncMPVIntraDCPrecision DEFINE_CODECAPI_GUIDNAMED( AVEncMPVIntraDCPrecision ) + #define CODECAPI_AVEncMPVQScaleType DEFINE_CODECAPI_GUIDNAMED( AVEncMPVQScaleType ) + #define CODECAPI_AVEncMPVIntraVLCTable DEFINE_CODECAPI_GUIDNAMED( AVEncMPVIntraVLCTable ) + #define CODECAPI_AVEncMPVQuantMatrixIntra DEFINE_CODECAPI_GUIDNAMED( AVEncMPVQuantMatrixIntra ) + #define CODECAPI_AVEncMPVQuantMatrixNonIntra DEFINE_CODECAPI_GUIDNAMED( AVEncMPVQuantMatrixNonIntra ) + #define CODECAPI_AVEncMPVQuantMatrixChromaIntra DEFINE_CODECAPI_GUIDNAMED( AVEncMPVQuantMatrixChromaIntra ) + #define CODECAPI_AVEncMPVQuantMatrixChromaNonIntra DEFINE_CODECAPI_GUIDNAMED( AVEncMPVQuantMatrixChromaNonIntra ) + #define CODECAPI_AVEncMPALayer DEFINE_CODECAPI_GUIDNAMED( AVEncMPALayer ) + #define CODECAPI_AVEncMPACodingMode DEFINE_CODECAPI_GUIDNAMED( AVEncMPACodingMode ) + #define CODECAPI_AVEncDDService DEFINE_CODECAPI_GUIDNAMED( AVEncDDService ) + #define CODECAPI_AVEncDDDialogNormalization DEFINE_CODECAPI_GUIDNAMED( AVEncDDDialogNormalization ) + #define CODECAPI_AVEncDDCentreDownMixLevel DEFINE_CODECAPI_GUIDNAMED( AVEncDDCentreDownMixLevel ) + #define CODECAPI_AVEncDDSurroundDownMixLevel DEFINE_CODECAPI_GUIDNAMED( AVEncDDSurroundDownMixLevel ) + #define CODECAPI_AVEncDDProductionInfoExists DEFINE_CODECAPI_GUIDNAMED( AVEncDDProductionInfoExists ) + #define CODECAPI_AVEncDDProductionRoomType DEFINE_CODECAPI_GUIDNAMED( AVEncDDProductionRoomType ) + #define CODECAPI_AVEncDDProductionMixLevel DEFINE_CODECAPI_GUIDNAMED( AVEncDDProductionMixLevel ) + #define CODECAPI_AVEncDDCopyright DEFINE_CODECAPI_GUIDNAMED( AVEncDDCopyright ) + #define CODECAPI_AVEncDDOriginalBitstream DEFINE_CODECAPI_GUIDNAMED( AVEncDDOriginalBitstream ) + #define CODECAPI_AVEncDDDigitalDeemphasis DEFINE_CODECAPI_GUIDNAMED( AVEncDDDigitalDeemphasis ) + #define CODECAPI_AVEncDDDCHighPassFilter DEFINE_CODECAPI_GUIDNAMED( AVEncDDDCHighPassFilter ) + #define CODECAPI_AVEncDDChannelBWLowPassFilter DEFINE_CODECAPI_GUIDNAMED( AVEncDDChannelBWLowPassFilter ) + #define CODECAPI_AVEncDDLFELowPassFilter DEFINE_CODECAPI_GUIDNAMED( AVEncDDLFELowPassFilter ) + #define CODECAPI_AVEncDDSurround90DegreeePhaseShift DEFINE_CODECAPI_GUIDNAMED( AVEncDDSurround90DegreeePhaseShift ) + #define CODECAPI_AVEncDDSurround3dBAttenuation DEFINE_CODECAPI_GUIDNAMED( AVEncDDSurround3dBAttenuation ) + #define CODECAPI_AVEncDDDynamicRangeCompressionControl DEFINE_CODECAPI_GUIDNAMED( AVEncDDDynamicRangeCompressionControl ) + #define CODECAPI_AVEncDDRFPreEmphasisFilter DEFINE_CODECAPI_GUIDNAMED( AVEncDDRFPreEmphasisFilter ) + #define CODECAPI_AVEncDDSurroundExMode DEFINE_CODECAPI_GUIDNAMED( AVEncDDSurroundExMode ) + #define CODECAPI_AVEncDDPreferredStereoDownMixMode DEFINE_CODECAPI_GUIDNAMED( AVEncDDPreferredStereoDownMixMode ) + #define CODECAPI_AVEncDDLtRtCenterMixLvl_x10 DEFINE_CODECAPI_GUIDNAMED( AVEncDDLtRtCenterMixLvl_x10 ) + #define CODECAPI_AVEncDDLtRtSurroundMixLvl_x10 DEFINE_CODECAPI_GUIDNAMED( AVEncDDLtRtSurroundMixLvl_x10 ) + #define CODECAPI_AVEncDDLoRoCenterMixLvl_x10 DEFINE_CODECAPI_GUIDNAMED( AVEncDDLoRoCenterMixLvl_x10 ) + #define CODECAPI_AVEncDDLoRoSurroundMixLvl_x10 DEFINE_CODECAPI_GUIDNAMED( AVEncDDLoRoSurroundMixLvl_x10 ) + #define CODECAPI_AVEncDDAtoDConverterType DEFINE_CODECAPI_GUIDNAMED( AVEncDDAtoDConverterType ) + #define CODECAPI_AVEncDDHeadphoneMode DEFINE_CODECAPI_GUIDNAMED( AVEncDDHeadphoneMode ) + #define CODECAPI_AVEncWMVKeyFrameDistance DEFINE_CODECAPI_GUIDNAMED( AVEncWMVKeyFrameDistance ) + #define CODECAPI_AVEncWMVInterlacedEncoding DEFINE_CODECAPI_GUIDNAMED( AVEncWMVInterlacedEncoding ) + #define CODECAPI_AVEncWMVDecoderComplexity DEFINE_CODECAPI_GUIDNAMED( AVEncWMVDecoderComplexity ) + #define CODECAPI_AVEncWMVKeyFrameBufferLevelMarker DEFINE_CODECAPI_GUIDNAMED( AVEncWMVKeyFrameBufferLevelMarker ) + #define CODECAPI_AVEncWMVProduceDummyFrames DEFINE_CODECAPI_GUIDNAMED( AVEncWMVProduceDummyFrames ) + #define CODECAPI_AVEncStatWMVCBAvg DEFINE_CODECAPI_GUIDNAMED( AVEncStatWMVCBAvg ) + #define CODECAPI_AVEncStatWMVCBMax DEFINE_CODECAPI_GUIDNAMED( AVEncStatWMVCBMax ) + #define CODECAPI_AVEncStatWMVDecoderComplexityProfile DEFINE_CODECAPI_GUIDNAMED( AVEncStatWMVDecoderComplexityProfile ) + #define CODECAPI_AVEncStatMPVSkippedEmptyFrames DEFINE_CODECAPI_GUIDNAMED( AVEncStatMPVSkippedEmptyFrames ) + #define CODECAPI_AVEncMP12PktzSTDBuffer DEFINE_CODECAPI_GUIDNAMED( AVEncMP12PktzSTDBuffer ) + #define CODECAPI_AVEncMP12PktzStreamID DEFINE_CODECAPI_GUIDNAMED( AVEncMP12PktzStreamID ) + #define CODECAPI_AVEncMP12PktzInitialPTS DEFINE_CODECAPI_GUIDNAMED( AVEncMP12PktzInitialPTS ) + #define CODECAPI_AVEncMP12PktzPacketSize DEFINE_CODECAPI_GUIDNAMED( AVEncMP12PktzPacketSize ) + #define CODECAPI_AVEncMP12PktzCopyright DEFINE_CODECAPI_GUIDNAMED( AVEncMP12PktzCopyright ) + #define CODECAPI_AVEncMP12PktzOriginal DEFINE_CODECAPI_GUIDNAMED( AVEncMP12PktzOriginal ) + #define CODECAPI_AVEncMP12MuxPacketOverhead DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxPacketOverhead ) + #define CODECAPI_AVEncMP12MuxNumStreams DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxNumStreams ) + #define CODECAPI_AVEncMP12MuxEarliestPTS DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxEarliestPTS ) + #define CODECAPI_AVEncMP12MuxLargestPacketSize DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxLargestPacketSize ) + #define CODECAPI_AVEncMP12MuxInitialSCR DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxInitialSCR ) + #define CODECAPI_AVEncMP12MuxMuxRate DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxMuxRate ) + #define CODECAPI_AVEncMP12MuxPackSize DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxPackSize ) + #define CODECAPI_AVEncMP12MuxSysSTDBufferBound DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxSysSTDBufferBound ) + #define CODECAPI_AVEncMP12MuxSysRateBound DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxSysRateBound ) + #define CODECAPI_AVEncMP12MuxTargetPacketizer DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxTargetPacketizer ) + #define CODECAPI_AVEncMP12MuxSysFixed DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxSysFixed ) + #define CODECAPI_AVEncMP12MuxSysCSPS DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxSysCSPS ) + #define CODECAPI_AVEncMP12MuxSysVideoLock DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxSysVideoLock ) + #define CODECAPI_AVEncMP12MuxSysAudioLock DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxSysAudioLock ) + #define CODECAPI_AVEncMP12MuxDVDNavPacks DEFINE_CODECAPI_GUIDNAMED( AVEncMP12MuxDVDNavPacks ) + + #define CODECAPI_AVEncMPACopyright DEFINE_CODECAPI_GUIDNAMED( AVEncMPACopyright ) + #define CODECAPI_AVEncMPAOriginalBitstream DEFINE_CODECAPI_GUIDNAMED( AVEncMPAOriginalBitstream ) + #define CODECAPI_AVEncMPAEnableRedundancyProtection DEFINE_CODECAPI_GUIDNAMED( AVEncMPAEnableRedundancyProtection ) + #define CODECAPI_AVEncMPAPrivateUserBit DEFINE_CODECAPI_GUIDNAMED( AVEncMPAPrivateUserBit ) + #define CODECAPI_AVEncMPAEmphasisType DEFINE_CODECAPI_GUIDNAMED( AVEncMPAEmphasisType ) + + #define CODECAPI_AVDecCommonOutputFormat DEFINE_CODECAPI_GUIDNAMED( AVDecCommonOutputFormat ) + #define CODECAPI_AVDecCommonInputFormat DEFINE_CODECAPI_GUIDNAMED( AVDecCommonInputFormat ) + #define CODECAPI_AVDecCommonMeanBitRate DEFINE_CODECAPI_GUIDNAMED( AVDecCommonMeanBitRate ) + #define CODECAPI_AVDecCommonMeanBitRateInterval DEFINE_CODECAPI_GUIDNAMED( AVDecCommonMeanBitRateInterval ) + + #define CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioOutputFormat_PCM_Stereo_MatrixEncoded ) + #define CODECAPI_GUID_AVDecAudioOutputFormat_PCM DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioOutputFormat_PCM ) + #define CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_PCM DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioOutputFormat_SPDIF_PCM ) + #define CODECAPI_GUID_AVDecAudioOutputFormat_SPDIF_Bitstream DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioOutputFormat_SPDIF_Bitstream ) + #define CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Headphones DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioOutputFormat_PCM_Headphones ) + #define CODECAPI_GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioOutputFormat_PCM_Stereo_Auto ) + + #define CODECAPI_AVDecVideoImageSize DEFINE_CODECAPI_GUIDNAMED( AVDecVideoImageSize ) + #define CODECAPI_AVDecVideoInputScanType DEFINE_CODECAPI_GUIDNAMED( AVDecVideoInputScanType ) + #define CODECAPI_AVDecVideoPixelAspectRatio DEFINE_CODECAPI_GUIDNAMED( AVDecVideoPixelAspectRatio ) + + #define CODECAPI_AVDecVideoThumbnailGenerationMode DEFINE_CODECAPI_GUIDNAMED( AVDecVideoThumbnailGenerationMode ) + #define CODECAPI_AVDecVideoDropPicWithMissingRef DEFINE_CODECAPI_GUIDNAMED( AVDecVideoDropPicWithMissingRef ) + #define CODECAPI_AVDecVideoSoftwareDeinterlaceMode DEFINE_CODECAPI_GUIDNAMED( AVDecVideoSoftwareDeinterlaceMode ) + #define CODECAPI_AVDecVideoFastDecodeMode DEFINE_CODECAPI_GUIDNAMED( AVDecVideoFastDecodeMode ) + #define CODECAPI_AVLowLatencyMode DEFINE_CODECAPI_GUIDNAMED( AVLowLatencyMode ) + #define CODECAPI_AVDecVideoH264ErrorConcealment DEFINE_CODECAPI_GUIDNAMED( AVDecVideoH264ErrorConcealment ) + #define CODECAPI_AVDecVideoMPEG2ErrorConcealment DEFINE_CODECAPI_GUIDNAMED( AVDecVideoMPEG2ErrorConcealment ) + #define CODECAPI_AVDecVideoCodecType DEFINE_CODECAPI_GUIDNAMED( AVDecVideoCodecType ) + #define CODECAPI_AVDecVideoDXVAMode DEFINE_CODECAPI_GUIDNAMED( AVDecVideoDXVAMode ) + #define CODECAPI_AVDecVideoDXVABusEncryption DEFINE_CODECAPI_GUIDNAMED( AVDecVideoDXVABusEncryption ) + #define CODECAPI_AVDecVideoSWPowerLevel DEFINE_CODECAPI_GUIDNAMED( AVDecVideoSWPowerLevel ) + #define CODECAPI_AVDecVideoMaxCodedWidth DEFINE_CODECAPI_GUIDNAMED( AVDecVideoMaxCodedWidth ) + #define CODECAPI_AVDecVideoMaxCodedHeight DEFINE_CODECAPI_GUIDNAMED( AVDecVideoMaxCodedHeight ) + #define CODECAPI_AVDecNumWorkerThreads DEFINE_CODECAPI_GUIDNAMED( AVDecNumWorkerThreads ) + #define CODECAPI_AVDecSoftwareDynamicFormatChange DEFINE_CODECAPI_GUIDNAMED( AVDecSoftwareDynamicFormatChange ) + #define CODECAPI_AVDecDisableVideoPostProcessing DEFINE_CODECAPI_GUIDNAMED( AVDecDisableVideoPostProcessing ) + + #define CODECAPI_GUID_AVDecAudioInputWMA DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioInputWMA ) + #define CODECAPI_GUID_AVDecAudioInputWMAPro DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioInputWMAPro ) + #define CODECAPI_GUID_AVDecAudioInputDolby DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioInputDolby ) + #define CODECAPI_GUID_AVDecAudioInputDTS DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioInputDTS ) + #define CODECAPI_GUID_AVDecAudioInputPCM DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioInputPCM ) + #define CODECAPI_GUID_AVDecAudioInputMPEG DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioInputMPEG ) + #define CODECAPI_GUID_AVDecAudioInputAAC DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioInputAAC ) + #define CODECAPI_GUID_AVDecAudioInputHEAAC DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioInputHEAAC ) + #define CODECAPI_GUID_AVDecAudioInputDolbyDigitalPlus DEFINE_CODECAPI_GUIDNAMED( GUID_AVDecAudioInputDolbyDigitalPlus ) + + #define CODECAPI_AVDecAACDownmixMode DEFINE_CODECAPI_GUIDNAMED( AVDecAACDownmixMode ) + #define CODECAPI_AVDecHEAACDynamicRangeControl DEFINE_CODECAPI_GUIDNAMED( AVDecHEAACDynamicRangeControl ) + + #define CODECAPI_AVDecAudioDualMono DEFINE_CODECAPI_GUIDNAMED( AVDecAudioDualMono) + #define CODECAPI_AVDecAudioDualMonoReproMode DEFINE_CODECAPI_GUIDNAMED( AVDecAudioDualMonoReproMode ) + + #define CODECAPI_AVAudioChannelCount DEFINE_CODECAPI_GUIDNAMED( AVAudioChannelCount ) + #define CODECAPI_AVAudioChannelConfig DEFINE_CODECAPI_GUIDNAMED( AVAudioChannelConfig ) + #define CODECAPI_AVAudioSampleRate DEFINE_CODECAPI_GUIDNAMED( AVAudioSampleRate ) + + #define CODECAPI_AVDDSurroundMode DEFINE_CODECAPI_GUIDNAMED( AVDDSurroundMode ) + #define CODECAPI_AVDecDDOperationalMode DEFINE_CODECAPI_GUIDNAMED( AVDecDDOperationalMode ) + #define CODECAPI_AVDecDDMatrixDecodingMode DEFINE_CODECAPI_GUIDNAMED( AVDecDDMatrixDecodingMode ) + #define CODECAPI_AVDecDDDynamicRangeScaleHigh DEFINE_CODECAPI_GUIDNAMED( AVDecDDDynamicRangeScaleHigh ) + #define CODECAPI_AVDecDDDynamicRangeScaleLow DEFINE_CODECAPI_GUIDNAMED( AVDecDDDynamicRangeScaleLow ) + #define CODECAPI_AVDecDDStereoDownMixMode DEFINE_CODECAPI_GUIDNAMED( AVDecDDStereoDownMixMode ) + + #define CODECAPI_AVDSPLoudnessEqualization DEFINE_CODECAPI_GUIDNAMED( AVDSPLoudnessEqualization ) + #define CODECAPI_AVDSPSpeakerFill DEFINE_CODECAPI_GUIDNAMED( AVDSPSpeakerFill ) + + #define CODECAPI_AVPriorityControl DEFINE_CODECAPI_GUIDNAMED( AVPriorityControl ) + #define CODECAPI_AVRealtimeControl DEFINE_CODECAPI_GUIDNAMED( AVRealtimeControl ) + #define CODECAPI_AVEncMaxFrameRate DEFINE_CODECAPI_GUIDNAMED( AVEncMaxFrameRate) + + #define CODECAPI_FeatureMapFlagsUsed DEFINE_CODECAPI_GUIDNAMED( FeatureMapFlagsUsed ) + + #define CODECAPI_AVEncNoInputCopy DEFINE_CODECAPI_GUIDNAMED( AVEncNoInputCopy ) + + #define CODECAPI_AVEncChromaEncodeMode DEFINE_CODECAPI_GUIDNAMED( AVEncChromaEncodeMode ) + #define CODECAPI_AVEncProgressiveUpdateTime DEFINE_CODECAPI_GUIDNAMED( AVEncProgressiveUpdateTime ) + #define CODECAPI_AVEncChromaUpdateTime DEFINE_CODECAPI_GUIDNAMED( AVEncChromaUpdateTime ) + #define CODECAPI_AVEncAACEnableVBR DEFINE_CODECAPI_GUIDNAMED( AVEncAACEnableVBR ) + + #define CODECAPI_AVEncVideoConsecutiveFramesPerLayer DEFINE_CODECAPI_GUIDNAMED( AVEncVideoConsecutiveFramesPerLayer ) + #define CODECAPI_AVEncVideoMaxNumRefFramePerLayer DEFINE_CODECAPI_GUIDNAMED( AVEncVideoMaxNumRefFramePerLayer ) + #define CODECAPI_AVEncTileRows DEFINE_CODECAPI_GUIDNAMED( AVEncTileRows ) + #define CODECAPI_AVEncTileColumns DEFINE_CODECAPI_GUIDNAMED( AVEncTileColumns ) + + #define CODECAPI_AVEncVideoEnableFramePsnrYuv DEFINE_CODECAPI_GUIDNAMED( AVEncVideoEnableFramePsnrYuv ) + #define CODECAPI_AVEncVideoEnableSpatialAdaptiveQuantization DEFINE_CODECAPI_GUIDNAMED( AVEncVideoEnableSpatialAdaptiveQuantization ) + #define CODECAPI_AVEncVideoOutputQPMapBlockSize DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputQPMapBlockSize ) + #define CODECAPI_AVEncVideoOutputBitsUsedMapBlockSize DEFINE_CODECAPI_GUIDNAMED( AVEncVideoOutputBitsUsedMapBlockSize ) + #define CODECAPI_AVEncVideoSatdMapBlockSize DEFINE_CODECAPI_GUIDNAMED( AVEncVideoSatdMapBlockSize ) + #define CODECAPI_AVEncVideoInputDeltaQPBlockSettings DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInputDeltaQPBlockSettings ) + #define CODECAPI_AVEncVideoInputAbsoluteQPBlockSettings DEFINE_CODECAPI_GUIDNAMED( AVEncVideoInputAbsoluteQPBlockSettings ) +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // !defined(_CODECAPI_) + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/coguid.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/coguid.h new file mode 100644 index 0000000000000000000000000000000000000000..ecc3e3f2b540a54ff0eeb2ceaf4361ff27b0f7c5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/coguid.h @@ -0,0 +1,94 @@ +/*****************************************************************************\ +* * +* coguid.h - Master definition of GUIDs for compobj.dll * +* * +* OLE Version 2.0 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +\*****************************************************************************/ + +/* this file is the master definition of all GUIDs for the component object + model and is included in compobj.h. Some GUIDs for moinkers and storage + appear here as well. All of these GUIDs are OLE GUIDs only in the sense + that part of the GUID range owned by OLE was used to define them. + + NOTE: The second byte of all of these GUIDs is 0. +*/ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +DEFINE_GUID(GUID_NULL, 0L, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); + +DEFINE_OLEGUID(IID_IUnknown, 0x00000000L, 0, 0); +DEFINE_OLEGUID(IID_IClassFactory, 0x00000001L, 0, 0); +DEFINE_OLEGUID(IID_IMalloc, 0x00000002L, 0, 0); +DEFINE_OLEGUID(IID_IMarshal, 0x00000003L, 0, 0); + +/* RPC related interfaces */ +DEFINE_OLEGUID(IID_IRpcChannel, 0x00000004L, 0, 0); +DEFINE_OLEGUID(IID_IRpcStub, 0x00000005L, 0, 0); +DEFINE_OLEGUID(IID_IStubManager, 0x00000006L, 0, 0); +DEFINE_OLEGUID(IID_IRpcProxy, 0x00000007L, 0, 0); +DEFINE_OLEGUID(IID_IProxyManager, 0x00000008L, 0, 0); +DEFINE_OLEGUID(IID_IPSFactory, 0x00000009L, 0, 0); + +/* storage related interfaces */ +DEFINE_OLEGUID(IID_ILockBytes, 0x0000000aL, 0, 0); +DEFINE_OLEGUID(IID_IStorage, 0x0000000bL, 0, 0); +DEFINE_OLEGUID(IID_IStream, 0x0000000cL, 0, 0); +DEFINE_OLEGUID(IID_IEnumSTATSTG, 0x0000000dL, 0, 0); + +/* moniker related interfaces */ +DEFINE_OLEGUID(IID_IBindCtx, 0x0000000eL, 0, 0); +DEFINE_OLEGUID(IID_IMoniker, 0x0000000fL, 0, 0); +DEFINE_OLEGUID(IID_IRunningObjectTable, 0x00000010L, 0, 0); +DEFINE_OLEGUID(IID_IInternalMoniker, 0x00000011L, 0, 0); + +/* storage related interfaces */ +DEFINE_OLEGUID(IID_IRootStorage, 0x00000012L, 0, 0); +DEFINE_OLEGUID(IID_IDfReserved1, 0x00000013L, 0, 0); +DEFINE_OLEGUID(IID_IDfReserved2, 0x00000014L, 0, 0); +DEFINE_OLEGUID(IID_IDfReserved3, 0x00000015L, 0, 0); + +/* concurrency releated interfaces */ +DEFINE_OLEGUID(IID_IMessageFilter, 0x00000016L, 0, 0); + +/* CLSID of standard marshaler */ +DEFINE_OLEGUID(CLSID_StdMarshal, 0x00000017L, 0, 0); + +/* interface on server for getting info for std marshaler */ +DEFINE_OLEGUID(IID_IStdMarshalInfo, 0x00000018L, 0, 0); + +/* interface to inform object of number of external connections */ +DEFINE_OLEGUID(IID_IExternalConnection, 0x00000019L, 0, 0); + +/* CLSID of aggregated standard marshaler */ +DEFINE_OLEGUID(CLSID_AggStdMarshal, 0x00000027L, 0, 0); + +/* NOTE: LSB 0x33 through 0xff are reserved for future use */ + + +// CLSID of various implementations of ISynchronize +//DEFINE_OLEGUID(CLSID_Synchronize_AutoComplete, 0x00000324L, 0, 0); obsolete +//DEFINE_OLEGUID(CLSID_Synchronize_ManualResetEvent, 0x00000325L, 0, 0); obsolete +//DEFINE_OLEGUID(CLSID_WaitMultiple, 0x00000326L, 0, 0); obsolete + + +DEFINE_OLEGUID(CLSID_StdEvent, 0x0000032b, 0, 0); +DEFINE_OLEGUID(CLSID_ManualResetEvent, 0x0000032c, 0, 0); +DEFINE_OLEGUID(CLSID_SynchronizeContainer, 0x0000032d, 0, 0); +DEFINE_OLEGUID(CLSID_SurrogateManager, 0x0000034c, 0, 0); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/colinf.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/colinf.idl new file mode 100644 index 0000000000000000000000000000000000000000..df3cfacb63d99fb31f33704184fabce7395fba14 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/colinf.idl @@ -0,0 +1,117 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: colinf.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a11-2a1c-11ce-ade5-00aa0044773d) + + +interface IColumnsInfo : IUnknown { + +#ifdef _WIN64 //Use casting by ULONG in attribute size_is under 64-bit environment. + + [local] + HRESULT GetColumnInfo( + [in, out, annotation("_Out_opt_")] DBORDINAL * pcColumns, + [out, size_is(,(ULONG)*pcColumns), annotation("_Outptr_result_buffer_maybenull_(*pcColumns)")] DBCOLUMNINFO ** prgInfo, + [out, annotation("_Outptr_result_maybenull_z_")] OLECHAR ** ppStringsBuffer + ); + +#ifndef NO_REMOTE + [call_as(GetColumnInfo)] + HRESULT RemoteGetColumnInfo( + [in, out] DBORDINAL * pcColumns, + [out, size_is(,(ULONG)*pcColumns)] DBCOLUMNINFO ** prgInfo, + [out, size_is(,(ULONG)*pcColumns)] DBBYTEOFFSET ** prgNameOffsets, + [out, size_is(,(ULONG)*pcColumns)] DBBYTEOFFSET ** prgcolumnidOffsets, + [in, out] DBLENGTH * pcbStringsBuffer, + [in, out, unique, size_is(,(ULONG)*pcbStringsBuffer)] OLECHAR ** ppStringsBuffer, + [out] IErrorInfo ** ppErrorInfoRem + ); +#endif + + [local] + HRESULT MapColumnIDs( + [in] DBORDINAL cColumnIDs, + [in, size_is((ULONG)cColumnIDs), annotation("_In_reads_opt_(cColumnIDs)")] const DBID rgColumnIDs[], + [out, size_is((ULONG)cColumnIDs), annotation("_Out_writes_opt_(cColumnIDs)")] DBORDINAL rgColumns[] + ); + +#ifndef NO_REMOTE + + [call_as(MapColumnIDs)] + HRESULT RemoteMapColumnIDs( + [in] DBORDINAL cColumnIDs, + [in, size_is((ULONG)cColumnIDs)] const DBID *rgColumnIDs, + [out, size_is((ULONG)cColumnIDs)] DBORDINAL *rgColumns, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#endif + +#else //No casting by ULONG for 32-bit. + + [local] + HRESULT GetColumnInfo( + [in, out, annotation("_Out_")] DBORDINAL * pcColumns, + [out, size_is(,*pcColumns), annotation("_Outptr_result_buffer_maybenull_(*pcColumns)")] DBCOLUMNINFO ** prgInfo, + [out, annotation("_Outptr_result_maybenull_z_")] OLECHAR ** ppStringsBuffer + ); + +#ifndef NO_REMOTE + [call_as(GetColumnInfo)] + HRESULT RemoteGetColumnInfo( + [in, out] DBORDINAL * pcColumns, + [out, size_is(,*pcColumns)] DBCOLUMNINFO ** prgInfo, + [out, size_is(,*pcColumns)] DBBYTEOFFSET ** prgNameOffsets, + [out, size_is(,*pcColumns)] DBBYTEOFFSET ** prgcolumnidOffsets, + [in, out] DBLENGTH * pcbStringsBuffer, + [in, out, unique, size_is(,*pcbStringsBuffer)] OLECHAR ** ppStringsBuffer, + [out] IErrorInfo ** ppErrorInfoRem + ); +#endif + + [local] + HRESULT MapColumnIDs( + [in] DBORDINAL cColumnIDs, + [in, size_is(cColumnIDs), annotation("_In_reads_opt_(cColumnIDs)")] const DBID rgColumnIDs[], + [out, size_is(cColumnIDs), annotation("_Out_writes_opt_(cColumnIDs)")] DBORDINAL rgColumns[] + ); + +#ifndef NO_REMOTE + + [call_as(MapColumnIDs)] + HRESULT RemoteMapColumnIDs( + [in] DBORDINAL cColumnIDs, + [in, size_is(cColumnIDs)] const DBID *rgColumnIDs, + [out, size_is(cColumnIDs)] DBORDINAL *rgColumns, + [out] IErrorInfo ** ppErrorInfoRem + ); +#endif + +#endif + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/colrst.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/colrst.idl new file mode 100644 index 0000000000000000000000000000000000000000..799f0469f263cb8b4b2e076bbf468674ce7e0c5d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/colrst.idl @@ -0,0 +1,132 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: colrst.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a10-2a1c-11ce-ade5-00aa0044773d) + + +interface IColumnsRowset : IUnknown { + +#ifdef _WIN64 //Use casting by ULONG in attribute size_is under 64-bit environment. + + [local] + HRESULT GetAvailableColumns( + [in, out, annotation("_Out_")] DBORDINAL * pcOptColumns, + [out, size_is(,(ULONG)*pcOptColumns), annotation("_Outptr_result_buffer_(*pcOptColumns)")] DBID ** prgOptColumns + ); + +#ifndef NO_REMOTE + + [call_as(GetAvailableColumns)] + HRESULT RemoteGetAvailableColumns( + [in, out] DBORDINAL * pcOptColumns, + [out, size_is(,(ULONG)*pcOptColumns)] DBID ** prgOptColumns, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#endif + + [local] + HRESULT GetColumnsRowset( + [in, annotation("_In_opt_")] IUnknown * pUnkOuter, + [in] DBORDINAL cOptColumns, + [in, size_is((ULONG)cOptColumns), annotation("_In_reads_(cOptColumns)")] const DBID rgOptColumns[], + [in] REFIID riid, + [in] ULONG cPropertySets, + [in, out, size_is((ULONG)cPropertySets), annotation("_Inout_updates_opt_(cPropertySets)")] DBPROPSET rgPropertySets[], + [out, iid_is(riid), annotation("_Outptr_")] IUnknown ** ppColRowset + ); + +#ifndef NO_REMOTE + + [call_as(GetColumnsRowset)] + HRESULT RemoteGetColumnsRowset( + [in] IUnknown * pUnkOuter, + [in] DBORDINAL cOptColumns, + [in, unique, size_is((ULONG)cOptColumns)] const DBID * rgOptColumns, + [in] REFIID riid, + [in] ULONG cPropertySets, + [in, unique, size_is((ULONG)cPropertySets)] DBPROPSET * rgPropertySets, + [out, iid_is(riid)] IUnknown ** ppColRowset, + [in] ULONG cTotalProps, + [out, size_is((ULONG)cTotalProps)] DBPROPSTATUS * rgPropStatus, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#endif + +#else //No casting by ULONG for 32-bit. + + [local] + HRESULT GetAvailableColumns( + [in, out, annotation("_Out_")] DBORDINAL * pcOptColumns, + [out, size_is(,*pcOptColumns), annotation("_Outptr_result_buffer_(*pcOptColumns)")] DBID ** prgOptColumns + ); + +#ifndef NO_REMOTE + + [call_as(GetAvailableColumns)] + HRESULT RemoteGetAvailableColumns( + [in, out] DBORDINAL * pcOptColumns, + [out, size_is(,*pcOptColumns)] DBID ** prgOptColumns, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#endif + + [local] + HRESULT GetColumnsRowset( + [in, annotation("_In_opt_")] IUnknown * pUnkOuter, + [in] DBORDINAL cOptColumns, + [in, size_is(cOptColumns), annotation("_In_reads_(cOptColumns)")] const DBID rgOptColumns[], + [in] REFIID riid, + [in] ULONG cPropertySets, + [in, out, size_is(cPropertySets), annotation("_Inout_updates_opt_(cPropertySets)")] DBPROPSET rgPropertySets[], + [out, iid_is(riid), annotation("_Outptr_")] IUnknown ** ppColRowset + ); + +#ifndef NO_REMOTE + + [call_as(GetColumnsRowset)] + HRESULT RemoteGetColumnsRowset( + [in] IUnknown * pUnkOuter, + [in] DBORDINAL cOptColumns, + [in, unique, size_is(cOptColumns)] const DBID * rgOptColumns, + [in] REFIID riid, + [in] ULONG cPropertySets, + [in, unique, size_is(cPropertySets)] DBPROPSET * rgPropertySets, + [out, iid_is(riid)] IUnknown ** ppColRowset, + [in] ULONG cTotalProps, + [out, size_is(cTotalProps)] DBPROPSTATUS * rgPropStatus, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#endif + +#endif + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/combaseapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/combaseapi.h new file mode 100644 index 0000000000000000000000000000000000000000..dee3a821002efd72d475e1807b6424dd57bc85c3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/combaseapi.h @@ -0,0 +1,1400 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: combaseapi.h +// +// Contents: Base Component Object Model defintions. +// +//---------------------------------------------------------------------------- + +#include +#include + +//TODO version number should be bumped when _APISET_TARGET_VERSION_WIN10_RS2 becomes available + +#include +#include + +#if (NTDDI_VERSION >= NTDDI_VISTA && !defined(_WIN32_WINNT)) +#define _WIN32_WINNT 0x0600 +#endif + +#if (NTDDI_VERSION >= NTDDI_WS03 && !defined(_WIN32_WINNT)) +#define _WIN32_WINNT 0x0502 +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP && !defined(_WIN32_WINNT)) +#define _WIN32_WINNT 0x0501 +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN2K && !defined(_WIN32_WINNT)) +#define _WIN32_WINNT 0x0500 +#endif + +#if !defined(_COMBASEAPI_H_) +#define _COMBASEAPI_H_ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#include + +//TODO change _OLE32_ to _COMBASEAPI_ +#ifdef _OLE32_ +#define WINOLEAPI STDAPI +#define WINOLEAPI_(type) STDAPI_(type) +#else + +#ifdef _68K_ +#ifndef REQUIRESAPPLEPASCAL +#define WINOLEAPI EXTERN_C DECLSPEC_IMPORT HRESULT PASCAL +#define WINOLEAPI_(type) EXTERN_C DECLSPEC_IMPORT type PASCAL +#else +#define WINOLEAPI EXTERN_C DECLSPEC_IMPORT PASCAL HRESULT +#define WINOLEAPI_(type) EXTERN_C DECLSPEC_IMPORT PASCAL type +#endif +#else +#define WINOLEAPI EXTERN_C DECLSPEC_IMPORT HRESULT STDAPICALLTYPE +#define WINOLEAPI_(type) EXTERN_C DECLSPEC_IMPORT type STDAPICALLTYPE +#endif + +#endif + +#pragma region Application or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +/****** Interface Declaration ***********************************************/ + +/* + * These are macros for declaring interfaces. They exist so that + * a single definition of the interface is simulataneously a proper + * declaration of the interface structures (C++ abstract classes) + * for both C and C++. + * + * DECLARE_INTERFACE(iface) is used to declare an interface that does + * not derive from a base interface. + * DECLARE_INTERFACE_(iface, baseiface) is used to declare an interface + * that does derive from a base interface. + * + * By default if the source file has a .c extension the C version of + * the interface declaratations will be expanded; if it has a .cpp + * extension the C++ version will be expanded. if you want to force + * the C version expansion even though the source file has a .cpp + * extension, then define the macro "CINTERFACE". + * eg. cl -DCINTERFACE file.cpp + * + * Example Interface declaration: + * + * #undef INTERFACE + * #define INTERFACE IClassFactory + * + * DECLARE_INTERFACE_(IClassFactory, IUnknown) + * { + * // *** IUnknown methods *** + * STDMETHOD(QueryInterface) (THIS_ + * REFIID riid, + * LPVOID FAR* ppvObj) PURE; + * STDMETHOD_(ULONG,AddRef) (THIS) PURE; + * STDMETHOD_(ULONG,Release) (THIS) PURE; + * + * // *** IClassFactory methods *** + * STDMETHOD(CreateInstance) (THIS_ + * LPUNKNOWN pUnkOuter, + * REFIID riid, + * LPVOID FAR* ppvObject) PURE; + * }; + * + * Example C++ expansion: + * + * struct FAR IClassFactory : public IUnknown + * { + * virtual HRESULT STDMETHODCALLTYPE QueryInterface( + * IID FAR& riid, + * LPVOID FAR* ppvObj) = 0; + * virtual HRESULT STDMETHODCALLTYPE AddRef(void) = 0; + * virtual HRESULT STDMETHODCALLTYPE Release(void) = 0; + * virtual HRESULT STDMETHODCALLTYPE CreateInstance( + * LPUNKNOWN pUnkOuter, + * IID FAR& riid, + * LPVOID FAR* ppvObject) = 0; + * }; + * + * NOTE: Our documentation says '#define interface class' but we use + * 'struct' instead of 'class' to keep a lot of 'public:' lines + * out of the interfaces. The 'FAR' forces the 'this' pointers to + * be far, which is what we need. + * + * Example C expansion: + * + * typedef struct IClassFactory + * { + * const struct IClassFactoryVtbl FAR* lpVtbl; + * } IClassFactory; + * + * typedef struct IClassFactoryVtbl IClassFactoryVtbl; + * + * struct IClassFactoryVtbl + * { + * HRESULT (STDMETHODCALLTYPE * QueryInterface) ( + * IClassFactory FAR* This, + * IID FAR* riid, + * LPVOID FAR* ppvObj) ; + * HRESULT (STDMETHODCALLTYPE * AddRef) (IClassFactory FAR* This) ; + * HRESULT (STDMETHODCALLTYPE * Release) (IClassFactory FAR* This) ; + * HRESULT (STDMETHODCALLTYPE * CreateInstance) ( + * IClassFactory FAR* This, + * LPUNKNOWN pUnkOuter, + * IID FAR* riid, + * LPVOID FAR* ppvObject); + * HRESULT (STDMETHODCALLTYPE * LockServer) ( + * IClassFactory FAR* This, + * BOOL fLock); + * }; + */ + +#if defined(__cplusplus) && !defined(CINTERFACE) +//#define interface struct FAR + +#ifdef COM_STDMETHOD_CAN_THROW +#define COM_DECLSPEC_NOTHROW +#else +#define COM_DECLSPEC_NOTHROW DECLSPEC_NOTHROW +#endif + +#define __STRUCT__ struct +#define interface __STRUCT__ +#define STDMETHOD(method) virtual COM_DECLSPEC_NOTHROW HRESULT STDMETHODCALLTYPE method +#define STDMETHOD_CHPE_PATCHABLE(method) virtual COM_DECLSPEC_NOTHROW DECLSPEC_CHPE_PATCHABLE HRESULT STDMETHODCALLTYPE method +#define STDMETHOD_(type,method) virtual COM_DECLSPEC_NOTHROW type STDMETHODCALLTYPE method +#define STDMETHODV(method) virtual COM_DECLSPEC_NOTHROW HRESULT STDMETHODVCALLTYPE method +#define STDMETHODV_(type,method) virtual COM_DECLSPEC_NOTHROW type STDMETHODVCALLTYPE method +#define PURE = 0 +#define THIS_ +#define THIS void +#define DECLARE_INTERFACE(iface) interface DECLSPEC_NOVTABLE iface +#define DECLARE_INTERFACE_(iface, baseiface) interface DECLSPEC_NOVTABLE iface : public baseiface +#define DECLARE_INTERFACE_IID(iface, iid) interface DECLSPEC_UUID(iid) DECLSPEC_NOVTABLE iface +#define DECLARE_INTERFACE_IID_(iface, baseiface, iid) interface DECLSPEC_UUID(iid) DECLSPEC_NOVTABLE iface : public baseiface + +#define IFACEMETHOD(method) __override STDMETHOD(method) +#define IFACEMETHOD_(type,method) __override STDMETHOD_(type,method) +#define IFACEMETHODV(method) __override STDMETHODV(method) +#define IFACEMETHODV_(type,method) __override STDMETHODV_(type,method) + +#if !defined(BEGIN_INTERFACE) +#if defined(_MPPC_) && ((defined(_MSC_VER) || defined(__SC__) || defined(__MWERKS__)) && !defined(NO_NULL_VTABLE_ENTRY)) + #define BEGIN_INTERFACE virtual void a() {} + #define END_INTERFACE +#else + #define BEGIN_INTERFACE + #define END_INTERFACE +#endif +#endif + +#ifndef SORTPP_PASS + +// This forward declaration has been left where this type was previously defined, to preserve ordering. +extern "C++" +{ + template _Post_equal_to_(pp) _Post_satisfies_(return == pp) void** IID_PPV_ARGS_Helper(T** pp); +} + +#endif // !SORTPP_PASS + +#define IID_PPV_ARGS(ppType) __uuidof(**(ppType)), IID_PPV_ARGS_Helper(ppType) + +#else + +#define interface struct + +#define STDMETHOD(method) HRESULT (STDMETHODCALLTYPE * method) +#define STDMETHOD_(type,method) type (STDMETHODCALLTYPE * method) +#define STDMETHODV(method) HRESULT (STDMETHODVCALLTYPE * method) +#define STDMETHODV_(type,method) type (STDMETHODVCALLTYPE * method) + +#define IFACEMETHOD(method) __override STDMETHOD(method) +#define IFACEMETHOD_(type,method) __override STDMETHOD_(type,method) +#define IFACEMETHODV(method) __override STDMETHODV(method) +#define IFACEMETHODV_(type,method) __override STDMETHODV_(type,method) + +#if !defined(BEGIN_INTERFACE) +#if defined(_MPPC_) + #define BEGIN_INTERFACE void *b; + #define END_INTERFACE +#else + #define BEGIN_INTERFACE + #define END_INTERFACE +#endif +#endif + +#define PURE +#define THIS_ INTERFACE FAR* This, +#define THIS INTERFACE FAR* This +#ifdef CONST_VTABLE +#undef CONST_VTBL +#define CONST_VTBL const +#define DECLARE_INTERFACE(iface) typedef interface iface { \ + const struct iface##Vtbl FAR* lpVtbl; \ + } iface; \ + typedef const struct iface##Vtbl iface##Vtbl; \ + const struct iface##Vtbl +#else +#undef CONST_VTBL +#define CONST_VTBL +#define DECLARE_INTERFACE(iface) typedef interface iface { \ + struct iface##Vtbl FAR* lpVtbl; \ + } iface; \ + typedef struct iface##Vtbl iface##Vtbl; \ + struct iface##Vtbl +#endif +#define DECLARE_INTERFACE_(iface, baseiface) DECLARE_INTERFACE(iface) +#define DECLARE_INTERFACE_IID(iface, iid) DECLARE_INTERFACE(iface) +#define DECLARE_INTERFACE_IID_(iface, baseiface, iid) DECLARE_INTERFACE_(iface, baseiface) +#endif + +/****** Additional basic types **********************************************/ + +#ifndef FARSTRUCT +#ifdef __cplusplus +#define FARSTRUCT FAR +#else +#define FARSTRUCT +#endif // __cplusplus +#endif // FARSTRUCT + +#ifndef HUGEP +#if defined(_WIN32) || defined(_MPPC_) +#define HUGEP +#else +#define HUGEP __huge +#endif // WIN32 +#endif // HUGEP + +#include + +#define LISet32(li, v) ((li).HighPart = ((LONG) (v)) < 0 ? -1 : 0, (li).LowPart = (v)) + +#define ULISet32(li, v) ((li).HighPart = 0, (li).LowPart = (v)) + +#define CLSCTX_INPROC (CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER) + +// With DCOM, CLSCTX_REMOTE_SERVER should be included +// DCOM +#if (_WIN32_WINNT >= 0x0400) || defined(_WIN32_DCOM) +#define CLSCTX_ALL (CLSCTX_INPROC_SERVER| \ + CLSCTX_INPROC_HANDLER| \ + CLSCTX_LOCAL_SERVER| \ + CLSCTX_REMOTE_SERVER) + +#define CLSCTX_SERVER (CLSCTX_INPROC_SERVER|CLSCTX_LOCAL_SERVER|CLSCTX_REMOTE_SERVER) +#else +#define CLSCTX_ALL (CLSCTX_INPROC_SERVER| \ + CLSCTX_INPROC_HANDLER| \ + CLSCTX_LOCAL_SERVER ) + +#define CLSCTX_SERVER (CLSCTX_INPROC_SERVER|CLSCTX_LOCAL_SERVER) +#endif + +// class registration flags; passed to CoRegisterClassObject +typedef enum tagREGCLS +{ + REGCLS_SINGLEUSE = 0, // class object only generates one instance + REGCLS_MULTIPLEUSE = 1, // same class object genereates multiple inst. + // and local automatically goes into inproc tbl. + REGCLS_MULTI_SEPARATE = 2, // multiple use, but separate control over each + // context. + REGCLS_SUSPENDED = 4, // register is as suspended, will be activated + // when app calls CoResumeClassObjects + REGCLS_SURROGATE = 8, // must be used when a surrogate process + // is registering a class object that will be + // loaded in the surrogate +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + REGCLS_AGILE = 0x10, // Class object aggregates the free-threaded marshaler + // and will be made visible to all inproc apartments. + // Can be used together with other flags - for example, + // REGCLS_AGILE | REGCLS_MULTIPLEUSE to register a + // class object that can be used multiple times from + // different apartments. Without other flags, behavior + // will retain REGCLS_SINGLEUSE semantics in that only + // one instance can be generated. +#endif +} REGCLS; +DEFINE_ENUM_FLAG_OPERATORS(REGCLS); + +/* here is where we pull in the MIDL generated headers for the interfaces */ +typedef interface IRpcStubBuffer IRpcStubBuffer; +typedef interface IRpcChannelBuffer IRpcChannelBuffer; + +// COM initialization flags; passed to CoInitialize. +typedef enum tagCOINITBASE +{ +// DCOM +#if (_WIN32_WINNT >= 0x0400) || defined(_WIN32_DCOM) + // These constants are only valid on Windows NT 4.0 + COINITBASE_MULTITHREADED = 0x0, // OLE calls objects on any thread. +#endif // DCOM +} COINITBASE; + +#include +#include + +#if defined(__cplusplus) && !defined(CINTERFACE) + +// IID_PPV_ARGS(ppType) +// ppType is the variable of type IType that will be filled +// +// RESULTS in: IID_IType, ppvType +// will create a compiler error if wrong level of indirection is used. +// +extern "C++" +{ + template _Post_equal_to_(pp) _Post_satisfies_(return == pp) void** IID_PPV_ARGS_Helper(T** pp) + { +#pragma prefast(suppress: 6269, "Tool issue with unused static_cast") + (void)static_cast(*pp); // make sure everyone derives from IUnknown + return reinterpret_cast(pp); + } +} + +#endif // defined(__cplusplus) && !defined(CINTERFACE) + +#include + +#include + +#ifndef INITGUID +// TODO change to cguidbase.h +#include +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +/****** STD Object API Prototypes *****************************************/ + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoGetMalloc( + _In_ DWORD dwMemContext, + _Outptr_ LPMALLOC FAR * ppMalloc + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +_Check_return_ WINOLEAPI +CreateStreamOnHGlobal( + HGLOBAL hGlobal, + _In_ BOOL fDeleteOnRelease, + _Outptr_ LPSTREAM FAR * ppstm + ); + +_Check_return_ WINOLEAPI +GetHGlobalFromStream( + _In_ LPSTREAM pstm, + _Out_ HGLOBAL FAR * phglobal + ); + +/* init/uninit */ + +WINOLEAPI_(void) +CoUninitialize( + void + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINOLEAPI_(DWORD) +CoGetCurrentProcess( + void + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +// DCOM +#if (_WIN32_WINNT >= 0x0400) || defined(_WIN32_DCOM) + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +_Check_return_ WINOLEAPI +CoInitializeEx( + _In_opt_ LPVOID pvReserved, + _In_ DWORD dwCoInit + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINOLEAPI +CoGetCallerTID( + _Out_ LPDWORD lpdwTID + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINOLEAPI +CoGetCurrentLogicalThreadId( + _Out_ GUID* pguid + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif // DCOM + +#if (_WIN32_WINNT >= 0x0501) + +#pragma region Application or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +_Check_return_ WINOLEAPI +CoGetContextToken( + _Out_ ULONG_PTR* pToken + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoGetDefaultContext( + _In_ APTTYPE aptType, + _In_ REFIID riid, + _Outptr_ void** ppv + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// definition for Win7 new APIs + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +_Check_return_ WINOLEAPI +CoGetApartmentType( + _Out_ APTTYPE* pAptType, + _Out_ APTTYPEQUALIFIER* pAptQualifier + ); + +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +// definition for Win8 new APIs + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +typedef struct tagServerInformation +{ + DWORD dwServerPid; + DWORD dwServerTid; + UINT64 ui64ServerAddress; +} ServerInformation, *PServerInformation; + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoDecodeProxy( + _In_ DWORD dwClientPid, + _In_ UINT64 ui64ProxyAddress, + _Out_ PServerInformation pServerInformation + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +DECLARE_HANDLE(CO_MTA_USAGE_COOKIE); + +_Check_return_ WINOLEAPI +CoIncrementMTAUsage( + _Out_ CO_MTA_USAGE_COOKIE* pCookie + ); + + WINOLEAPI +CoDecrementMTAUsage( + _In_ CO_MTA_USAGE_COOKIE Cookie + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINOLEAPI +CoAllowUnmarshalerCLSID( + _In_ REFCLSID clsid + ); + +// Predefine _EXE_INITIALIZE_MTA to have the runtime initialize an MTA for your process +// prior to initializing globals (i.e. dynamic initializers) +#if !defined RC_INVOKED // _EXE_INITIALIZE_MTA et al. are too long for rc + #if defined _M_IX86 + #define _CRT_INTERNAL_COMBASE_SYMBOL_PREFIX "_" + #elif defined _M_X64 || defined _M_ARM || defined _M_ARM64 + #define _CRT_INTERNAL_COMBASE_SYMBOL_PREFIX "" + #endif + + #if defined _EXE_INITIALIZE_MTA && !defined _M_CEE + #pragma comment(lib, "exe_initialize_mta") + #pragma comment(linker, "/include:" _CRT_INTERNAL_COMBASE_SYMBOL_PREFIX "__PLEASE_LINK_WITH_exe_initialize_mta.lib") + #endif +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#endif + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoGetObjectContext( + _In_ REFIID riid, + _Outptr_ LPVOID FAR * ppv + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +/* register/revoke/get class objects */ + +_Check_return_ WINOLEAPI +CoGetClassObject( + _In_ REFCLSID rclsid, + _In_ DWORD dwClsContext, + _In_opt_ LPVOID pvReserved, + _In_ REFIID riid, + _Outptr_ LPVOID FAR * ppv + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +_Check_return_ WINOLEAPI +CoRegisterClassObject( + _In_ REFCLSID rclsid, + _In_ LPUNKNOWN pUnk, + _In_ DWORD dwClsContext, + _In_ DWORD flags, + _Out_ LPDWORD lpdwRegister + ); + +WINOLEAPI +CoRevokeClassObject( + _In_ DWORD dwRegister + ); + +_Check_return_ WINOLEAPI +CoResumeClassObjects( + void + ); + +_Check_return_ WINOLEAPI +CoSuspendClassObjects( + void + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINOLEAPI_(ULONG) +CoAddRefServerProcess( + void + ); + +WINOLEAPI_(ULONG) +CoReleaseServerProcess( + void + ); + +_Check_return_ WINOLEAPI +CoGetPSClsid( + _In_ REFIID riid, + _Out_ CLSID* pClsid + ); + +_Check_return_ WINOLEAPI +CoRegisterPSClsid( + _In_ REFIID riid, + _In_ REFCLSID rclsid + ); + +// Registering surrogate processes +_Check_return_ WINOLEAPI +CoRegisterSurrogate( + _In_ LPSURROGATE pSurrogate + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +/* marshaling interface pointers */ + +_Check_return_ WINOLEAPI +CoGetMarshalSizeMax( + _Out_ ULONG* pulSize, + _In_ REFIID riid, + _In_ LPUNKNOWN pUnk, + _In_ DWORD dwDestContext, + _In_opt_ LPVOID pvDestContext, + _In_ DWORD mshlflags + ); + +_Check_return_ WINOLEAPI +CoMarshalInterface( + _In_ LPSTREAM pStm, + _In_ REFIID riid, + _In_ LPUNKNOWN pUnk, + _In_ DWORD dwDestContext, + _In_opt_ LPVOID pvDestContext, + _In_ DWORD mshlflags + ); + +_Check_return_ WINOLEAPI +CoUnmarshalInterface( + _In_ LPSTREAM pStm, + _In_ REFIID riid, + _COM_Outptr_ LPVOID FAR * ppv + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINOLEAPI +CoMarshalHresult( + _In_ LPSTREAM pstm, + _In_ HRESULT hresult + ); + +WINOLEAPI +CoUnmarshalHresult( + _In_ LPSTREAM pstm, + _Out_ HRESULT FAR * phresult + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoReleaseMarshalData( + _In_ LPSTREAM pStm + ); + +_Check_return_ WINOLEAPI +CoDisconnectObject( + _In_ LPUNKNOWN pUnk, + _In_ DWORD dwReserved + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoLockObjectExternal( + _In_ LPUNKNOWN pUnk, + _In_ BOOL fLock, + _In_ BOOL fLastUnlockReleases + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoGetStandardMarshal( + _In_ REFIID riid, + _In_opt_ LPUNKNOWN pUnk, + _In_ DWORD dwDestContext, + _In_opt_ LPVOID pvDestContext, + _In_ DWORD mshlflags, + _Outptr_ LPMARSHAL FAR * ppMarshal + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoGetStdMarshalEx( + _In_ LPUNKNOWN pUnkOuter, + _In_ DWORD smexflags, + _Outptr_ LPUNKNOWN FAR * ppUnkInner + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +/* flags for CoGetStdMarshalEx */ +typedef enum tagSTDMSHLFLAGS +{ + SMEXF_SERVER = 0x01, // server side aggregated std marshaler + SMEXF_HANDLER = 0x02 // client side (handler) agg std marshaler +} STDMSHLFLAGS; + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINOLEAPI_(BOOL) +CoIsHandlerConnected( + _In_ LPUNKNOWN pUnk + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +// Apartment model inter-thread interface passing helpers +_Check_return_ WINOLEAPI +CoMarshalInterThreadInterfaceInStream( + _In_ REFIID riid, + _In_ LPUNKNOWN pUnk, + _Outptr_ LPSTREAM* ppStm + ); + +_Check_return_ WINOLEAPI +CoGetInterfaceAndReleaseStream( + _In_ LPSTREAM pStm, + _In_ REFIID iid, + _COM_Outptr_ LPVOID FAR * ppv + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +_Check_return_ WINOLEAPI +CoCreateFreeThreadedMarshaler( + _In_opt_ LPUNKNOWN punkOuter, + _Outptr_ LPUNKNOWN* ppunkMarshal + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINOLEAPI_(void) +CoFreeUnusedLibraries( + void + ); + +#if (_WIN32_WINNT >= 0x0501) +WINOLEAPI_(void) +CoFreeUnusedLibrariesEx( + _In_ DWORD dwUnloadDelay, + _In_ DWORD dwReserved + ); + +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#if (_WIN32_WINNT >= 0x0600) + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoDisconnectContext( + DWORD dwTimeout + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif + +// DCOM +#if (_WIN32_WINNT >= 0x0400) || defined(_WIN32_DCOM) + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +/* Call Security. */ + +_Check_return_ WINOLEAPI +CoInitializeSecurity( + _In_opt_ PSECURITY_DESCRIPTOR pSecDesc, + _In_ LONG cAuthSvc, + _In_reads_opt_(cAuthSvc) SOLE_AUTHENTICATION_SERVICE* asAuthSvc, + _In_opt_ void* pReserved1, + _In_ DWORD dwAuthnLevel, + _In_ DWORD dwImpLevel, + _In_opt_ void* pAuthList, + _In_ DWORD dwCapabilities, + _In_opt_ void* pReserved3 + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoGetCallContext( + _In_ REFIID riid, + _Outptr_ void** ppInterface + ); + +_Check_return_ WINOLEAPI +CoQueryProxyBlanket( + _In_ IUnknown* pProxy, + _Out_opt_ DWORD* pwAuthnSvc, + _Out_opt_ DWORD* pAuthzSvc, + _Outptr_opt_ LPOLESTR* pServerPrincName, + _Out_opt_ DWORD* pAuthnLevel, + _Out_opt_ DWORD* pImpLevel, + _Out_opt_ RPC_AUTH_IDENTITY_HANDLE* pAuthInfo, + _Out_opt_ DWORD* pCapabilites + ); + +_Check_return_ WINOLEAPI +CoSetProxyBlanket( + _In_ IUnknown* pProxy, + _In_ DWORD dwAuthnSvc, + _In_ DWORD dwAuthzSvc, + _In_opt_ OLECHAR* pServerPrincName, + _In_ DWORD dwAuthnLevel, + _In_ DWORD dwImpLevel, + _In_opt_ RPC_AUTH_IDENTITY_HANDLE pAuthInfo, + _In_ DWORD dwCapabilities + ); + +_Check_return_ WINOLEAPI +CoCopyProxy( + _In_ IUnknown* pProxy, + _Outptr_ IUnknown** ppCopy + ); + +_Check_return_ WINOLEAPI +CoQueryClientBlanket( + _Out_opt_ DWORD* pAuthnSvc, + _Out_opt_ DWORD* pAuthzSvc, + _Outptr_opt_ LPOLESTR* pServerPrincName, + _Out_opt_ DWORD* pAuthnLevel, + _Out_opt_ DWORD* pImpLevel, + _Outptr_opt_result_buffer_(_Inexpressible_("depends on pAuthnSvc")) RPC_AUTHZ_HANDLE* pPrivs, + _Inout_opt_ DWORD* pCapabilities + ); + +_Check_return_ WINOLEAPI +CoImpersonateClient( + void + ); + +_Check_return_ WINOLEAPI +CoRevertToSelf( + void + ); + +_Check_return_ WINOLEAPI +CoQueryAuthenticationServices( + _Out_ DWORD* pcAuthSvc, + _Outptr_result_buffer_(*pcAuthSvc) SOLE_AUTHENTICATION_SERVICE** asAuthSvc + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoSwitchCallContext( + _In_opt_ IUnknown* pNewObject, + _Outptr_ IUnknown** ppOldObject + ); + +#define COM_RIGHTS_EXECUTE 1 +#define COM_RIGHTS_EXECUTE_LOCAL 2 +#define COM_RIGHTS_EXECUTE_REMOTE 4 +#define COM_RIGHTS_ACTIVATE_LOCAL 8 +#define COM_RIGHTS_ACTIVATE_REMOTE 16 +#define COM_RIGHTS_RESERVED1 32 +#define COM_RIGHTS_RESERVED2 64 + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif // DCOM + +#pragma region App or OneCore Family or Games Family +#if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)) + +/* helper for creating instances */ + +_Check_return_ WINOLEAPI +CoCreateInstance( + _In_ REFCLSID rclsid, + _In_opt_ LPUNKNOWN pUnkOuter, + _In_ DWORD dwClsContext, + _In_ REFIID riid, + _COM_Outptr_ _At_(*ppv, _Post_readable_size_(_Inexpressible_(varies))) LPVOID FAR * ppv + ); + +#endif // (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)) +#pragma endregion + +#pragma region App or OneCore Family +#if (WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)) + +// DCOM +#if (_WIN32_WINNT >= 0x0400) || defined(_WIN32_DCOM) + +_Check_return_ WINOLEAPI +CoCreateInstanceEx( + _In_ REFCLSID Clsid, + _In_opt_ IUnknown* punkOuter, + _In_ DWORD dwClsCtx, + _In_opt_ COSERVERINFO* pServerInfo, + _In_ DWORD dwCount, + _Inout_updates_(dwCount) MULTI_QI* pResults + ); + +#endif // DCOM + +#if (_WIN32_WINNT >= 0x0602) + +_Check_return_ WINOLEAPI +CoCreateInstanceFromApp( + _In_ REFCLSID Clsid, + _In_opt_ IUnknown* punkOuter, + _In_ DWORD dwClsCtx, + _In_opt_ PVOID reserved, + _In_ DWORD dwCount, + _Inout_updates_(dwCount) MULTI_QI* pResults + ); + +#endif // (_WIN32_WINNT >= 0x0602) + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINOLEAPI +CoRegisterActivationFilter( + _In_ IActivationFilter* pActivationFilter + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +/* Call related APIs */ +// DCOM +#if (_WIN32_WINNT >= 0x0500) || defined(_WIN32_DCOM) + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoGetCancelObject( + _In_ DWORD dwThreadId, + _In_ REFIID iid, + _Outptr_ void** ppUnk + ); + +_Check_return_ WINOLEAPI +CoSetCancelObject( + _In_opt_ IUnknown* pUnk + ); + +_Check_return_ WINOLEAPI +CoCancelCall( + _In_ DWORD dwThreadId, + _In_ ULONG ulTimeout + ); + +_Check_return_ WINOLEAPI +CoTestCancel( + void + ); + +_Check_return_ WINOLEAPI +CoEnableCallCancellation( + _In_opt_ LPVOID pReserved + ); + +_Check_return_ WINOLEAPI +CoDisableCallCancellation( + _In_opt_ LPVOID pReserved + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif + +#pragma region Application or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +/* other helpers */ + +_Check_return_ WINOLEAPI +StringFromCLSID( + _In_ REFCLSID rclsid, + _Outptr_ LPOLESTR FAR * lplpsz + ); + +_Check_return_ WINOLEAPI +CLSIDFromString( + _In_ LPCOLESTR lpsz, + _Out_ LPCLSID pclsid + ); + +_Check_return_ WINOLEAPI +StringFromIID( + _In_ REFIID rclsid, + _Outptr_ LPOLESTR FAR * lplpsz + ); + +_Check_return_ WINOLEAPI +IIDFromString( + _In_ LPCOLESTR lpsz, + _Out_ LPIID lpiid + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +_Check_return_ WINOLEAPI +ProgIDFromCLSID( + _In_ REFCLSID clsid, + _Outptr_ LPOLESTR FAR * lplpszProgID + ); + +_Check_return_ WINOLEAPI +CLSIDFromProgID( + _In_ LPCOLESTR lpszProgID, + _Out_ LPCLSID lpclsid + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Application or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +_Check_return_ WINOLEAPI_(int) +StringFromGUID2( + _In_ REFGUID rguid, + _Out_writes_to_(cchMax, return) LPOLESTR lpsz, + _In_ int cchMax + ); + +_Check_return_ WINOLEAPI +CoCreateGuid( + _Out_ GUID FAR * pguid + ); + +/* Prop variant support */ + +typedef struct tagPROPVARIANT PROPVARIANT; + +_Check_return_ +WINOLEAPI +PropVariantCopy( + _Out_ PROPVARIANT* pvarDest, + _In_ const PROPVARIANT* pvarSrc + ); + +WINOLEAPI +PropVariantClear( + _Inout_ PROPVARIANT* pvar + ); + +WINOLEAPI +FreePropVariantArray( + _In_ ULONG cVariants, + _Inout_updates_(cVariants) PROPVARIANT* rgvars + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +// DCOM +#if (_WIN32_WINNT >= 0x0400) || defined(_WIN32_DCOM) + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif // DCOM + +// DCOM +#if (_WIN32_WINNT >= 0x0400) || defined(_WIN32_DCOM) +/* Synchronization API */ + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoWaitForMultipleHandles( + _In_ DWORD dwFlags, + _In_ DWORD dwTimeout, + _In_ ULONG cHandles, + _In_reads_(cHandles) LPHANDLE pHandles, + _Out_ LPDWORD lpdwindex + ); + +/* Flags for Synchronization API and Classes */ + +typedef enum tagCOWAIT_FLAGS +{ + COWAIT_DEFAULT = 0, + COWAIT_WAITALL = 1, + COWAIT_ALERTABLE = 2, + COWAIT_INPUTAVAILABLE = 4, + COWAIT_DISPATCH_CALLS = 8, + COWAIT_DISPATCH_WINDOW_MESSAGES = 0x10, +}COWAIT_FLAGS; +DEFINE_ENUM_FLAG_OPERATORS(COWAIT_FLAGS); + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +typedef enum CWMO_FLAGS +{ + CWMO_DEFAULT = 0, + CWMO_DISPATCH_CALLS = 1, + CWMO_DISPATCH_WINDOW_MESSAGES = 2, +} CWMO_FLAGS; +DEFINE_ENUM_FLAG_OPERATORS(CWMO_FLAGS); + +WINOLEAPI +CoWaitForMultipleObjects( + _In_ DWORD dwFlags, + _In_ DWORD dwTimeout, + _In_ ULONG cHandles, + _In_reads_(cHandles) const HANDLE* pHandles, + _Out_ LPDWORD lpdwindex + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#define CWMO_MAX_HANDLES 56 + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif // DCOM + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoGetTreatAsClass( + _In_ REFCLSID clsidOld, + _Out_ LPCLSID pClsidNew + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +/* for flushing OLESCM remote binding handles */ + +#if (_WIN32_WINNT >= 0x0501) + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +_Check_return_ WINOLEAPI +CoInvalidateRemoteMachineBindings( + _In_ LPOLESTR pszMachineName + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + +#pragma region Application or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +enum AgileReferenceOptions +{ + AGILEREFERENCE_DEFAULT = 0, + AGILEREFERENCE_DELAYEDMARSHAL = 1, +}; + +_Check_return_ WINOLEAPI +RoGetAgileReference( + _In_ enum AgileReferenceOptions options, + _In_ REFIID riid, + _In_ IUnknown* pUnk, + _COM_Outptr_ IAgileReference** ppAgileReference + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif + +#pragma region Application or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +/* the server dlls must define their DllGetClassObject and DllCanUnloadNow + * to match these; the typedefs are located here to ensure all are changed at + * the same time. + */ + +typedef HRESULT (STDAPICALLTYPE * LPFNGETCLASSOBJECT) (REFCLSID, REFIID, LPVOID *); +typedef HRESULT (STDAPICALLTYPE * LPFNCANUNLOADNOW)(void); + +_Check_return_ +STDAPI DllGetClassObject(_In_ REFCLSID rclsid, _In_ REFIID riid, _Outptr_ LPVOID FAR* ppv); + +__control_entrypoint(DllExport) +STDAPI DllCanUnloadNow(void); + +/****** Default Memory Allocation ******************************************/ +WINOLEAPI_(_Ret_opt_ _Post_writable_byte_size_(cb) __drv_allocatesMem(Mem) _Check_return_ LPVOID) +CoTaskMemAlloc( + _In_ SIZE_T cb + ); + +WINOLEAPI_(_Ret_opt_ _Post_writable_byte_size_(cb) _When_(cb > 0, __drv_allocatesMem(Mem) _Check_return_) LPVOID) +CoTaskMemRealloc( + _Pre_maybenull_ __drv_freesMem(Mem) _Post_invalid_ LPVOID pv, + _In_ SIZE_T cb + ); + +WINOLEAPI_(void) +CoTaskMemFree( + _Frees_ptr_opt_ LPVOID pv + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINOLEAPI +CoFileTimeNow( + _Out_ FILETIME FAR * lpFileTime + ); + +_Check_return_ WINOLEAPI +CLSIDFromProgIDEx( + _In_ LPCOLESTR lpszProgID, + _Out_ LPCLSID lpclsid + ); + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) + +#if !defined(_CO_DEVICE_CATALOG_) +#define _CO_DEVICE_CATALOG_ +#endif + +DECLARE_HANDLE(CO_DEVICE_CATALOG_COOKIE); + +_Check_return_ +WINOLEAPI +CoRegisterDeviceCatalog( + _In_ PCWSTR deviceInstanceId, + _Out_ CO_DEVICE_CATALOG_COOKIE* cookie + ); + +_Check_return_ +WINOLEAPI +CoRevokeDeviceCatalog( + _In_ CO_DEVICE_CATALOG_COOKIE cookie + ); + +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#ifndef RC_INVOKED +#include +#endif // RC_INVOKED + +#endif // __COMBASEAPI_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/comcat.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/comcat.h new file mode 100644 index 0000000000000000000000000000000000000000..f706a0d09b2042581db33bff7eadcf6be1392c1f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/comcat.h @@ -0,0 +1,912 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __comcat_h__ +#define __comcat_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEnumGUID_FWD_DEFINED__ +#define __IEnumGUID_FWD_DEFINED__ +typedef interface IEnumGUID IEnumGUID; + +#endif /* __IEnumGUID_FWD_DEFINED__ */ + + +#ifndef __IEnumCATEGORYINFO_FWD_DEFINED__ +#define __IEnumCATEGORYINFO_FWD_DEFINED__ +typedef interface IEnumCATEGORYINFO IEnumCATEGORYINFO; + +#endif /* __IEnumCATEGORYINFO_FWD_DEFINED__ */ + + +#ifndef __ICatRegister_FWD_DEFINED__ +#define __ICatRegister_FWD_DEFINED__ +typedef interface ICatRegister ICatRegister; + +#endif /* __ICatRegister_FWD_DEFINED__ */ + + +#ifndef __ICatInformation_FWD_DEFINED__ +#define __ICatInformation_FWD_DEFINED__ +typedef interface ICatInformation ICatInformation; + +#endif /* __ICatInformation_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_comcat_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// ComCat.h +//=--------------------------------------------------------------------------= +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#pragma comment(lib,"uuid.lib") + +//=--------------------------------------------------------------------------= +// OLE Componet Categories Interfaces. +//=--------------------------------------------------------------------------= +// +#include +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +EXTERN_C const CLSID CLSID_StdComponentCategoriesMgr; + +//////////////////////////////////////////////////////////////////////////// +// Types +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +typedef GUID CATID; + +typedef REFGUID REFCATID; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define IID_IEnumCLSID IID_IEnumGUID +#define IEnumCLSID IEnumGUID +#define LPENUMCLSID LPENUMGUID +#define CATID_NULL GUID_NULL +#define IsEqualCATID(rcatid1, rcatid2) IsEqualGUID(rcatid1, rcatid2) +#define IID_IEnumCATID IID_IEnumGUID +#define IEnumCATID IEnumGUID + +//////////////////////////////////////////////////////////////////////////// +// Category IDs (link to uuid3.lib) +EXTERN_C const CATID CATID_Insertable; +EXTERN_C const CATID CATID_Control; +EXTERN_C const CATID CATID_Programmable; +EXTERN_C const CATID CATID_IsShortcut; +EXTERN_C const CATID CATID_NeverShowExt; +EXTERN_C const CATID CATID_DocObject; +EXTERN_C const CATID CATID_Printable; +EXTERN_C const CATID CATID_RequiresDataPathHost; +EXTERN_C const CATID CATID_PersistsToMoniker; +EXTERN_C const CATID CATID_PersistsToStorage; +EXTERN_C const CATID CATID_PersistsToStreamInit; +EXTERN_C const CATID CATID_PersistsToStream; +EXTERN_C const CATID CATID_PersistsToMemory; +EXTERN_C const CATID CATID_PersistsToFile; +EXTERN_C const CATID CATID_PersistsToPropertyBag; +EXTERN_C const CATID CATID_InternetAware; +EXTERN_C const CATID CATID_DesignTimeUIActivatableControl; + +//////////////////////////////////////////////////////////////////////////// +// Interface Definitions +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#ifndef _LPENUMGUID_DEFINED +#define _LPENUMGUID_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_comcat_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_comcat_0000_0000_v0_0_s_ifspec; + +#ifndef __IEnumGUID_INTERFACE_DEFINED__ +#define __IEnumGUID_INTERFACE_DEFINED__ + +/* interface IEnumGUID */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IEnumGUID *LPENUMGUID; + + +EXTERN_C const IID IID_IEnumGUID; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0002E000-0000-0000-C000-000000000046") + IEnumGUID : public IUnknown + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [annotation][length_is][size_is][out] */ + _Out_writes_to_(celt,*pceltFetched) GUID *rgelt, + /* [annotation][out] */ + _Out_opt_ ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumGUID **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumGUIDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumGUID * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumGUID * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumGUID * This); + + DECLSPEC_XFGVIRT(IEnumGUID, Next) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumGUID * This, + /* [in] */ ULONG celt, + /* [annotation][length_is][size_is][out] */ + _Out_writes_to_(celt,*pceltFetched) GUID *rgelt, + /* [annotation][out] */ + _Out_opt_ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumGUID, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumGUID * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumGUID, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumGUID * This); + + DECLSPEC_XFGVIRT(IEnumGUID, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumGUID * This, + /* [out] */ __RPC__deref_out_opt IEnumGUID **ppenum); + + END_INTERFACE + } IEnumGUIDVtbl; + + interface IEnumGUID + { + CONST_VTBL struct IEnumGUIDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumGUID_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumGUID_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumGUID_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumGUID_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumGUID_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumGUID_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumGUID_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IEnumGUID_RemoteNext_Proxy( + __RPC__in IEnumGUID * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) GUID *rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched); + + +void __RPC_STUB IEnumGUID_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumGUID_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_comcat_0000_0001 */ +/* [local] */ + +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#ifndef _LPENUMCATEGORYINFO_DEFINED +#define _LPENUMCATEGORYINFO_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_comcat_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_comcat_0000_0001_v0_0_s_ifspec; + +#ifndef __IEnumCATEGORYINFO_INTERFACE_DEFINED__ +#define __IEnumCATEGORYINFO_INTERFACE_DEFINED__ + +/* interface IEnumCATEGORYINFO */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IEnumCATEGORYINFO *LPENUMCATEGORYINFO; + +typedef struct tagCATEGORYINFO + { + CATID catid; + LCID lcid; + OLECHAR szDescription[ 128 ]; + } CATEGORYINFO; + +typedef struct tagCATEGORYINFO *LPCATEGORYINFO; + + +EXTERN_C const IID IID_IEnumCATEGORYINFO; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0002E011-0000-0000-C000-000000000046") + IEnumCATEGORYINFO : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) CATEGORYINFO *rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumCATEGORYINFO **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumCATEGORYINFOVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumCATEGORYINFO * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumCATEGORYINFO * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumCATEGORYINFO * This); + + DECLSPEC_XFGVIRT(IEnumCATEGORYINFO, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumCATEGORYINFO * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) CATEGORYINFO *rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumCATEGORYINFO, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumCATEGORYINFO * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumCATEGORYINFO, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumCATEGORYINFO * This); + + DECLSPEC_XFGVIRT(IEnumCATEGORYINFO, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumCATEGORYINFO * This, + /* [out] */ __RPC__deref_out_opt IEnumCATEGORYINFO **ppenum); + + END_INTERFACE + } IEnumCATEGORYINFOVtbl; + + interface IEnumCATEGORYINFO + { + CONST_VTBL struct IEnumCATEGORYINFOVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumCATEGORYINFO_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumCATEGORYINFO_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumCATEGORYINFO_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumCATEGORYINFO_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumCATEGORYINFO_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumCATEGORYINFO_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumCATEGORYINFO_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumCATEGORYINFO_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_comcat_0000_0002 */ +/* [local] */ + +#endif +#ifndef _LPCATREGISTER_DEFINED +#define _LPCATREGISTER_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_comcat_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_comcat_0000_0002_v0_0_s_ifspec; + +#ifndef __ICatRegister_INTERFACE_DEFINED__ +#define __ICatRegister_INTERFACE_DEFINED__ + +/* interface ICatRegister */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer ICatRegister *LPCATREGISTER; + + +EXTERN_C const IID IID_ICatRegister; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0002E012-0000-0000-C000-000000000046") + ICatRegister : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterCategories( + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATEGORYINFO rgCategoryInfo[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnRegisterCategories( + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATID rgcatid[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterClassImplCategories( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATID rgcatid[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnRegisterClassImplCategories( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATID rgcatid[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterClassReqCategories( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATID rgcatid[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnRegisterClassReqCategories( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATID rgcatid[ ]) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICatRegisterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICatRegister * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICatRegister * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICatRegister * This); + + DECLSPEC_XFGVIRT(ICatRegister, RegisterCategories) + HRESULT ( STDMETHODCALLTYPE *RegisterCategories )( + __RPC__in ICatRegister * This, + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATEGORYINFO rgCategoryInfo[ ]); + + DECLSPEC_XFGVIRT(ICatRegister, UnRegisterCategories) + HRESULT ( STDMETHODCALLTYPE *UnRegisterCategories )( + __RPC__in ICatRegister * This, + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATID rgcatid[ ]); + + DECLSPEC_XFGVIRT(ICatRegister, RegisterClassImplCategories) + HRESULT ( STDMETHODCALLTYPE *RegisterClassImplCategories )( + __RPC__in ICatRegister * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATID rgcatid[ ]); + + DECLSPEC_XFGVIRT(ICatRegister, UnRegisterClassImplCategories) + HRESULT ( STDMETHODCALLTYPE *UnRegisterClassImplCategories )( + __RPC__in ICatRegister * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATID rgcatid[ ]); + + DECLSPEC_XFGVIRT(ICatRegister, RegisterClassReqCategories) + HRESULT ( STDMETHODCALLTYPE *RegisterClassReqCategories )( + __RPC__in ICatRegister * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATID rgcatid[ ]); + + DECLSPEC_XFGVIRT(ICatRegister, UnRegisterClassReqCategories) + HRESULT ( STDMETHODCALLTYPE *UnRegisterClassReqCategories )( + __RPC__in ICatRegister * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ ULONG cCategories, + /* [size_is][in] */ __RPC__in_ecount_full(cCategories) CATID rgcatid[ ]); + + END_INTERFACE + } ICatRegisterVtbl; + + interface ICatRegister + { + CONST_VTBL struct ICatRegisterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICatRegister_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICatRegister_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICatRegister_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICatRegister_RegisterCategories(This,cCategories,rgCategoryInfo) \ + ( (This)->lpVtbl -> RegisterCategories(This,cCategories,rgCategoryInfo) ) + +#define ICatRegister_UnRegisterCategories(This,cCategories,rgcatid) \ + ( (This)->lpVtbl -> UnRegisterCategories(This,cCategories,rgcatid) ) + +#define ICatRegister_RegisterClassImplCategories(This,rclsid,cCategories,rgcatid) \ + ( (This)->lpVtbl -> RegisterClassImplCategories(This,rclsid,cCategories,rgcatid) ) + +#define ICatRegister_UnRegisterClassImplCategories(This,rclsid,cCategories,rgcatid) \ + ( (This)->lpVtbl -> UnRegisterClassImplCategories(This,rclsid,cCategories,rgcatid) ) + +#define ICatRegister_RegisterClassReqCategories(This,rclsid,cCategories,rgcatid) \ + ( (This)->lpVtbl -> RegisterClassReqCategories(This,rclsid,cCategories,rgcatid) ) + +#define ICatRegister_UnRegisterClassReqCategories(This,rclsid,cCategories,rgcatid) \ + ( (This)->lpVtbl -> UnRegisterClassReqCategories(This,rclsid,cCategories,rgcatid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICatRegister_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_comcat_0000_0003 */ +/* [local] */ + +#endif +#ifndef _LPCATINFORMATION_DEFINED +#define _LPCATINFORMATION_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_comcat_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_comcat_0000_0003_v0_0_s_ifspec; + +#ifndef __ICatInformation_INTERFACE_DEFINED__ +#define __ICatInformation_INTERFACE_DEFINED__ + +/* interface ICatInformation */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer ICatInformation *LPCATINFORMATION; + + +EXTERN_C const IID IID_ICatInformation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0002E013-0000-0000-C000-000000000046") + ICatInformation : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumCategories( + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt IEnumCATEGORYINFO **ppenumCategoryInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCategoryDesc( + /* [in] */ __RPC__in REFCATID rcatid, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt LPWSTR *pszDesc) = 0; + + virtual /* [local] */ HRESULT STDMETHODCALLTYPE EnumClassesOfCategories( + /* [in] */ ULONG cImplemented, + /* [size_is][in] */ const CATID rgcatidImpl[ ], + /* [in] */ ULONG cRequired, + /* [size_is][in] */ const CATID rgcatidReq[ ], + /* [out] */ IEnumGUID **ppenumClsid) = 0; + + virtual /* [local] */ HRESULT STDMETHODCALLTYPE IsClassOfCategories( + /* [in] */ REFCLSID rclsid, + /* [in] */ ULONG cImplemented, + /* [size_is][in] */ const CATID rgcatidImpl[ ], + /* [in] */ ULONG cRequired, + /* [size_is][in] */ const CATID rgcatidReq[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumImplCategoriesOfClass( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [out] */ __RPC__deref_out_opt IEnumGUID **ppenumCatid) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumReqCategoriesOfClass( + /* [in] */ __RPC__in REFCLSID rclsid, + /* [out] */ __RPC__deref_out_opt IEnumGUID **ppenumCatid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICatInformationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICatInformation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICatInformation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICatInformation * This); + + DECLSPEC_XFGVIRT(ICatInformation, EnumCategories) + HRESULT ( STDMETHODCALLTYPE *EnumCategories )( + __RPC__in ICatInformation * This, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt IEnumCATEGORYINFO **ppenumCategoryInfo); + + DECLSPEC_XFGVIRT(ICatInformation, GetCategoryDesc) + HRESULT ( STDMETHODCALLTYPE *GetCategoryDesc )( + __RPC__in ICatInformation * This, + /* [in] */ __RPC__in REFCATID rcatid, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt LPWSTR *pszDesc); + + DECLSPEC_XFGVIRT(ICatInformation, EnumClassesOfCategories) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *EnumClassesOfCategories )( + ICatInformation * This, + /* [in] */ ULONG cImplemented, + /* [size_is][in] */ const CATID rgcatidImpl[ ], + /* [in] */ ULONG cRequired, + /* [size_is][in] */ const CATID rgcatidReq[ ], + /* [out] */ IEnumGUID **ppenumClsid); + + DECLSPEC_XFGVIRT(ICatInformation, IsClassOfCategories) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *IsClassOfCategories )( + ICatInformation * This, + /* [in] */ REFCLSID rclsid, + /* [in] */ ULONG cImplemented, + /* [size_is][in] */ const CATID rgcatidImpl[ ], + /* [in] */ ULONG cRequired, + /* [size_is][in] */ const CATID rgcatidReq[ ]); + + DECLSPEC_XFGVIRT(ICatInformation, EnumImplCategoriesOfClass) + HRESULT ( STDMETHODCALLTYPE *EnumImplCategoriesOfClass )( + __RPC__in ICatInformation * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [out] */ __RPC__deref_out_opt IEnumGUID **ppenumCatid); + + DECLSPEC_XFGVIRT(ICatInformation, EnumReqCategoriesOfClass) + HRESULT ( STDMETHODCALLTYPE *EnumReqCategoriesOfClass )( + __RPC__in ICatInformation * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [out] */ __RPC__deref_out_opt IEnumGUID **ppenumCatid); + + END_INTERFACE + } ICatInformationVtbl; + + interface ICatInformation + { + CONST_VTBL struct ICatInformationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICatInformation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICatInformation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICatInformation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICatInformation_EnumCategories(This,lcid,ppenumCategoryInfo) \ + ( (This)->lpVtbl -> EnumCategories(This,lcid,ppenumCategoryInfo) ) + +#define ICatInformation_GetCategoryDesc(This,rcatid,lcid,pszDesc) \ + ( (This)->lpVtbl -> GetCategoryDesc(This,rcatid,lcid,pszDesc) ) + +#define ICatInformation_EnumClassesOfCategories(This,cImplemented,rgcatidImpl,cRequired,rgcatidReq,ppenumClsid) \ + ( (This)->lpVtbl -> EnumClassesOfCategories(This,cImplemented,rgcatidImpl,cRequired,rgcatidReq,ppenumClsid) ) + +#define ICatInformation_IsClassOfCategories(This,rclsid,cImplemented,rgcatidImpl,cRequired,rgcatidReq) \ + ( (This)->lpVtbl -> IsClassOfCategories(This,rclsid,cImplemented,rgcatidImpl,cRequired,rgcatidReq) ) + +#define ICatInformation_EnumImplCategoriesOfClass(This,rclsid,ppenumCatid) \ + ( (This)->lpVtbl -> EnumImplCategoriesOfClass(This,rclsid,ppenumCatid) ) + +#define ICatInformation_EnumReqCategoriesOfClass(This,rclsid,ppenumCatid) \ + ( (This)->lpVtbl -> EnumReqCategoriesOfClass(This,rclsid,ppenumCatid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE ICatInformation_RemoteEnumClassesOfCategories_Proxy( + __RPC__in ICatInformation * This, + /* [in] */ ULONG cImplemented, + /* [size_is][unique][in] */ __RPC__in_ecount_full_opt(cImplemented) const CATID rgcatidImpl[ ], + /* [in] */ ULONG cRequired, + /* [size_is][unique][in] */ __RPC__in_ecount_full_opt(cRequired) const CATID rgcatidReq[ ], + /* [out] */ __RPC__deref_out_opt IEnumGUID **ppenumClsid); + + +void __RPC_STUB ICatInformation_RemoteEnumClassesOfCategories_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE ICatInformation_RemoteIsClassOfCategories_Proxy( + __RPC__in ICatInformation * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ ULONG cImplemented, + /* [size_is][unique][in] */ __RPC__in_ecount_full_opt(cImplemented) const CATID rgcatidImpl[ ], + /* [in] */ ULONG cRequired, + /* [size_is][unique][in] */ __RPC__in_ecount_full_opt(cRequired) const CATID rgcatidReq[ ]); + + +void __RPC_STUB ICatInformation_RemoteIsClassOfCategories_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __ICatInformation_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_comcat_0000_0004 */ +/* [local] */ + +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_comcat_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_comcat_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* [local] */ HRESULT STDMETHODCALLTYPE IEnumGUID_Next_Proxy( + IEnumGUID * This, + /* [in] */ ULONG celt, + /* [annotation][length_is][size_is][out] */ + _Out_writes_to_(celt,*pceltFetched) GUID *rgelt, + /* [annotation][out] */ + _Out_opt_ ULONG *pceltFetched); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE IEnumGUID_Next_Stub( + __RPC__in IEnumGUID * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) GUID *rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched); + +/* [local] */ HRESULT STDMETHODCALLTYPE ICatInformation_EnumClassesOfCategories_Proxy( + ICatInformation * This, + /* [in] */ ULONG cImplemented, + /* [size_is][in] */ const CATID rgcatidImpl[ ], + /* [in] */ ULONG cRequired, + /* [size_is][in] */ const CATID rgcatidReq[ ], + /* [out] */ IEnumGUID **ppenumClsid); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE ICatInformation_EnumClassesOfCategories_Stub( + __RPC__in ICatInformation * This, + /* [in] */ ULONG cImplemented, + /* [size_is][unique][in] */ __RPC__in_ecount_full_opt(cImplemented) const CATID rgcatidImpl[ ], + /* [in] */ ULONG cRequired, + /* [size_is][unique][in] */ __RPC__in_ecount_full_opt(cRequired) const CATID rgcatidReq[ ], + /* [out] */ __RPC__deref_out_opt IEnumGUID **ppenumClsid); + +/* [local] */ HRESULT STDMETHODCALLTYPE ICatInformation_IsClassOfCategories_Proxy( + ICatInformation * This, + /* [in] */ REFCLSID rclsid, + /* [in] */ ULONG cImplemented, + /* [size_is][in] */ const CATID rgcatidImpl[ ], + /* [in] */ ULONG cRequired, + /* [size_is][in] */ const CATID rgcatidReq[ ]); + + +/* [call_as] */ HRESULT STDMETHODCALLTYPE ICatInformation_IsClassOfCategories_Stub( + __RPC__in ICatInformation * This, + /* [in] */ __RPC__in REFCLSID rclsid, + /* [in] */ ULONG cImplemented, + /* [size_is][unique][in] */ __RPC__in_ecount_full_opt(cImplemented) const CATID rgcatidImpl[ ], + /* [in] */ ULONG cRequired, + /* [size_is][unique][in] */ __RPC__in_ecount_full_opt(cRequired) const CATID rgcatidReq[ ]); + + + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/coml2api.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/coml2api.h new file mode 100644 index 0000000000000000000000000000000000000000..a818bd60b26f039dc4fadeed3faf66db7bd1f069 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/coml2api.h @@ -0,0 +1,289 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: coml2api.h +// +// Contents: Structured storage, property sets, and related APIs. +// +//---------------------------------------------------------------------------- + +#if !defined(_COML2API_H_) +#define _COML2API_H_ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#include +#include + +#include +#include +#include + +#pragma region Application and Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) + +// +// Common typedefs for paramaters used in Storage API's, gleamed from storage.h +// Also contains Storage error codes, which should be moved into the storage +// idl files. +// + +#define CWCSTORAGENAME 32 + +/* Storage instantiation modes */ +#define STGM_DIRECT 0x00000000L +#define STGM_TRANSACTED 0x00010000L +#define STGM_SIMPLE 0x08000000L + +#define STGM_READ 0x00000000L +#define STGM_WRITE 0x00000001L +#define STGM_READWRITE 0x00000002L + +#define STGM_SHARE_DENY_NONE 0x00000040L +#define STGM_SHARE_DENY_READ 0x00000030L +#define STGM_SHARE_DENY_WRITE 0x00000020L +#define STGM_SHARE_EXCLUSIVE 0x00000010L + +#define STGM_PRIORITY 0x00040000L +#define STGM_DELETEONRELEASE 0x04000000L +#if (WINVER >= 400) +#define STGM_NOSCRATCH 0x00100000L +#endif /* WINVER */ + +#define STGM_CREATE 0x00001000L +#define STGM_CONVERT 0x00020000L +#define STGM_FAILIFTHERE 0x00000000L + +#define STGM_NOSNAPSHOT 0x00200000L +#if (_WIN32_WINNT >= 0x0500) +#define STGM_DIRECT_SWMR 0x00400000L +#endif + +typedef DWORD STGFMT; + +#define STGFMT_STORAGE 0 +#define STGFMT_NATIVE 1 +#define STGFMT_FILE 3 +#define STGFMT_ANY 4 +#define STGFMT_DOCFILE 5 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +// This is a legacy define to allow old component to builds +#define STGFMT_DOCUMENT 0 + +// Structured storage APIs +_Check_return_ +WINOLEAPI +StgCreateDocfile( + _In_opt_ _Null_terminated_ const WCHAR* pwcsName, + _In_ DWORD grfMode, + _Reserved_ DWORD reserved, + _Outptr_ IStorage** ppstgOpen + ); + +_Check_return_ +WINOLEAPI +StgCreateDocfileOnILockBytes( + _In_ ILockBytes* plkbyt, + _In_ DWORD grfMode, + _In_ DWORD reserved, + _Outptr_ IStorage** ppstgOpen + ); + +_Check_return_ +WINOLEAPI +StgOpenStorage( + _In_opt_ _Null_terminated_ const WCHAR* pwcsName, + _In_opt_ IStorage* pstgPriority, + _In_ DWORD grfMode, + _In_opt_z_ SNB snbExclude, + _In_ DWORD reserved, + _Outptr_ IStorage** ppstgOpen + ); + +_Check_return_ +WINOLEAPI +StgOpenStorageOnILockBytes( + _In_ ILockBytes* plkbyt, + _In_opt_ IStorage* pstgPriority, + _In_ DWORD grfMode, + _In_opt_z_ SNB snbExclude, + _Reserved_ DWORD reserved, + _Outptr_ IStorage** ppstgOpen + ); + +_Check_return_ +WINOLEAPI +StgIsStorageFile( + _In_ _Null_terminated_ const WCHAR* pwcsName + ); + +_Check_return_ +WINOLEAPI +StgIsStorageILockBytes( + _In_ ILockBytes* plkbyt + ); + +_Check_return_ +WINOLEAPI +StgSetTimes( + _In_ _Null_terminated_ const WCHAR* lpszName, + _In_opt_ const FILETIME* pctime, + _In_opt_ const FILETIME* patime, + _In_opt_ const FILETIME* pmtime + ); + +// STG initialization options for StgCreateStorageEx and StgOpenStorageEx +#if _WIN32_WINNT == 0x500 +#define STGOPTIONS_VERSION 1 +#elif _WIN32_WINNT > 0x500 +#define STGOPTIONS_VERSION 2 +#else +#define STGOPTIONS_VERSION 0 +#endif + +typedef struct tagSTGOPTIONS +{ + USHORT usVersion; // Versions 1 and 2 supported + USHORT reserved; // must be 0 for padding + ULONG ulSectorSize; // docfile header sector size (512) +#if STGOPTIONS_VERSION >= 2 + const WCHAR *pwcsTemplateFile; // version 2 or above +#endif +} STGOPTIONS; + +_Check_return_ +WINOLEAPI +StgCreateStorageEx( + _In_opt_ _Null_terminated_ const WCHAR* pwcsName, + _In_ DWORD grfMode, + _In_ DWORD stgfmt, + _In_ DWORD grfAttrs, + _Inout_opt_ STGOPTIONS* pStgOptions, + _In_opt_ PSECURITY_DESCRIPTOR pSecurityDescriptor, + _In_ REFIID riid, + _Outptr_ void** ppObjectOpen + ); + +_Check_return_ +WINOLEAPI +StgOpenStorageEx( + _In_ _Null_terminated_ const WCHAR* pwcsName, + _In_ DWORD grfMode, + _In_ DWORD stgfmt, + _In_ DWORD grfAttrs, + _Inout_opt_ STGOPTIONS* pStgOptions, + _In_opt_ PSECURITY_DESCRIPTOR pSecurityDescriptor, + _In_ REFIID riid, + _Outptr_ void** ppObjectOpen + ); + +#ifndef _STGCREATEPROPSTG_DEFINED_ + +_Check_return_ +WINOLEAPI +StgCreatePropStg( + _In_ IUnknown* pUnk, + _In_ REFFMTID fmtid, + _In_ const CLSID* pclsid, + _In_ DWORD grfFlags, + _Reserved_ DWORD dwReserved, + _Outptr_ IPropertyStorage** ppPropStg + ); + +_Check_return_ +WINOLEAPI +StgOpenPropStg( + _In_ IUnknown* pUnk, + _In_ REFFMTID fmtid, + _In_ DWORD grfFlags, + _Reserved_ DWORD dwReserved, + _Outptr_ IPropertyStorage** ppPropStg + ); + +_Check_return_ +WINOLEAPI +StgCreatePropSetStg( + _In_ IStorage* pStorage, + _Reserved_ DWORD dwReserved, + _Outptr_ IPropertySetStorage** ppPropSetStg + ); + +#define CCH_MAX_PROPSTG_NAME 31 + +_Check_return_ +WINOLEAPI +FmtIdToPropStgName( + _In_ const FMTID* pfmtid, + _Out_writes_(CCH_MAX_PROPSTG_NAME+1) LPOLESTR oszName + ); + +_Check_return_ +WINOLEAPI +PropStgNameToFmtId( + _In_ const LPOLESTR oszName, + _Out_ FMTID* pfmtid + ); + +#endif // _STGCREATEPROPSTG_DEFINED_ + +// Helper functions +WINOLEAPI +ReadClassStg( + _In_ LPSTORAGE pStg, + _Out_ CLSID FAR * pclsid + ); + +WINOLEAPI +WriteClassStg( + _In_ LPSTORAGE pStg, + _In_ REFCLSID rclsid + ); + +WINOLEAPI +ReadClassStm( + _In_ LPSTREAM pStm, + _Out_ CLSID FAR * pclsid + ); + +WINOLEAPI +WriteClassStm( + _In_ LPSTREAM pStm, + _In_ REFCLSID rclsid + ); + +// Storage utility APIs +_Check_return_ +WINOLEAPI +GetHGlobalFromILockBytes( + _In_ LPLOCKBYTES plkbyt, + _Out_ HGLOBAL FAR * phglobal + ); + +_Check_return_ +WINOLEAPI +CreateILockBytesOnHGlobal( + _In_opt_ HGLOBAL hGlobal, + _In_ BOOL fDeleteOnRelease, + _Outptr_ LPLOCKBYTES FAR * pplkbyt + ); + +// ConvertTo APIs +WINOLEAPI +GetConvertStg( + _In_ LPSTORAGE pStg + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // __COML2API_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/comlite.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/comlite.h new file mode 100644 index 0000000000000000000000000000000000000000..ff86011bad27da26adee04dd9b917c86b82b343d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/comlite.h @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// File: COMLite.h +// +// Desc: This header file is to provide a migration path for users of +// ActiveMovie betas 1 and 2. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#include + +#ifndef _INC_COMLITE_ +#define _INC_COMLITE_ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define QzInitializeEx CoInitializeEx +#define QzUninitialize CoUninitialize +#define QzFreeUnusedLibraries CoFreeUnusedLibraries + +#define QzGetMalloc CoGetMalloc +#define QzTaskMemAlloc CoTaskMemAlloc +#define QzTaskMemRealloc CoTaskMemRealloc +#define QzTaskMemFree CoTaskMemFree +#define QzCreateFilterObject CoCreateInstance +#define QzCLSIDFromString CLSIDFromString +#define QzStringFromGUID2 StringFromGUID2 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _INC_COMLITE_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/commapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commapi.h new file mode 100644 index 0000000000000000000000000000000000000000..b07322c27a976d2b08df183e950a7976f3329ee4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commapi.h @@ -0,0 +1,203 @@ +/******************************************************************************** +* * +* commapi.h - ApiSet Contract for api-ms-win-core-comm-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _COMM_H_ +#define _COMM_H_ + +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or OneCore or App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) + +WINBASEAPI +BOOL +WINAPI +ClearCommBreak( + _In_ HANDLE hFile + ); + +WINBASEAPI +BOOL +WINAPI +ClearCommError( + _In_ HANDLE hFile, + _Out_opt_ LPDWORD lpErrors, + _Out_opt_ LPCOMSTAT lpStat + ); + +WINBASEAPI +BOOL +WINAPI +SetupComm( + _In_ HANDLE hFile, + _In_ DWORD dwInQueue, + _In_ DWORD dwOutQueue + ); + +WINBASEAPI +BOOL +WINAPI +EscapeCommFunction( + _In_ HANDLE hFile, + _In_ DWORD dwFunc + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +GetCommConfig( + _In_ HANDLE hCommDev, + _Out_writes_bytes_opt_(*lpdwSize) LPCOMMCONFIG lpCC, + _Inout_ LPDWORD lpdwSize + ); + +WINBASEAPI +BOOL +WINAPI +GetCommMask( + _In_ HANDLE hFile, + _Out_ LPDWORD lpEvtMask + ); + +WINBASEAPI +BOOL +WINAPI +GetCommModemStatus( + _In_ HANDLE hFile, + _Out_ LPDWORD lpModemStat + ); + +WINBASEAPI +BOOL +WINAPI +GetCommProperties( + _In_ HANDLE hFile, + _Inout_ LPCOMMPROP lpCommProp + ); + +WINBASEAPI +BOOL +WINAPI +GetCommState( + _In_ HANDLE hFile, + _Out_ LPDCB lpDCB + ); + +WINBASEAPI +BOOL +WINAPI +GetCommTimeouts( + _In_ HANDLE hFile, + _Out_ LPCOMMTIMEOUTS lpCommTimeouts + ); + +WINBASEAPI +BOOL +WINAPI +PurgeComm( + _In_ HANDLE hFile, + _In_ DWORD dwFlags + ); + +WINBASEAPI +BOOL +WINAPI +SetCommBreak( + _In_ HANDLE hFile + ); + +WINBASEAPI +BOOL +WINAPI +SetCommConfig( + _In_ HANDLE hCommDev, + _In_reads_bytes_(dwSize) LPCOMMCONFIG lpCC, + _In_ DWORD dwSize + ); + +WINBASEAPI +BOOL +WINAPI +SetCommMask( + _In_ HANDLE hFile, + _In_ DWORD dwEvtMask + ); + +WINBASEAPI +BOOL +WINAPI +SetCommState( + _In_ HANDLE hFile, + _In_ LPDCB lpDCB + ); + +WINBASEAPI +BOOL +WINAPI +SetCommTimeouts( + _In_ HANDLE hFile, + _In_ LPCOMMTIMEOUTS lpCommTimeouts + ); + +WINBASEAPI +BOOL +WINAPI +TransmitCommChar( + _In_ HANDLE hFile, + _In_ char cChar + ); + +WINBASEAPI +BOOL +WINAPI +WaitCommEvent( + _In_ HANDLE hFile, + _Inout_ LPDWORD lpEvtMask, + _Inout_opt_ LPOVERLAPPED lpOverlapped + ); + +WINBASEAPI +HANDLE +WINAPI +OpenCommPort( + _In_ ULONG uPortNumber, + _In_ DWORD dwDesiredAccess, + _In_ DWORD dwFlagsAndAttributes + ); + +WINBASEAPI +ULONG +WINAPI +GetCommPorts( + _Out_writes_(uPortNumbersCount) PULONG lpPortNumbers, + _In_ ULONG uPortNumbersCount, + _Out_ PULONG puPortNumbersFound + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _COMM_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/commctrl.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commctrl.inl new file mode 100644 index 0000000000000000000000000000000000000000..f708839810d9d8c0651c4e0208fc8cea8ffac320 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commctrl.inl @@ -0,0 +1,3353 @@ +/* Copyright (c) 2001-2026, Microsoft Corp. All rights reserved. */ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#if defined(__cplusplus) +extern "C" { +#endif + + +#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */ +#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0) +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4191) /* cast */ +#if _MSC_VER >= 1400 +#pragma warning(disable:6101) /* Because there will be success paths where out params are not initialized. */ +#endif +#endif + + +#if !defined(ISOLATION_AWARE_USE_STATIC_LIBRARY) +#define ISOLATION_AWARE_USE_STATIC_LIBRARY 0 +#endif + +#if !defined(ISOLATION_AWARE_BUILD_STATIC_LIBRARY) +#define ISOLATION_AWARE_BUILD_STATIC_LIBRARY 0 +#endif + +#if !defined(ISOLATION_AWARE_INLINE) +#if ISOLATION_AWARE_BUILD_STATIC_LIBRARY +#define ISOLATION_AWARE_INLINE /* nothing */ +#else +#if defined(__cplusplus) +#define ISOLATION_AWARE_INLINE inline +#else +#define ISOLATION_AWARE_INLINE __inline +#endif +#endif +#endif + +#if !ISOLATION_AWARE_USE_STATIC_LIBRARY +FARPROC IsolationAwarePrivatenCv CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY(LPCSTR pszProcName); + +#endif /* ISOLATION_AWARE_USE_STATIC_LIBRARY */ +void IsolationAwarePrivatenCv IsolationAwareInitCommonControls(void); +BOOL IsolationAwarePrivatenCv IsolationAwareInitCommonControlsEx(_In_ const INITCOMMONCONTROLSEX*picce); +HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_Create(int cx,int cy,UINT flags,int cInitial,int cGrow); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Destroy(_In_opt_ HIMAGELIST himl); +int IsolationAwarePrivatenCv IsolationAwareImageList_GetImageCount(_In_ HIMAGELIST himl); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_SetImageCount(_In_ HIMAGELIST himl,_In_ UINT uNewCount); +int IsolationAwarePrivatenCv IsolationAwareImageList_Add(_In_ HIMAGELIST himl,_In_ HBITMAP hbmImage,_In_opt_ HBITMAP hbmMask); +int IsolationAwarePrivatenCv IsolationAwareImageList_ReplaceIcon(_In_ HIMAGELIST himl,_In_ int i,_In_ HICON hicon); +COLORREF IsolationAwarePrivatenCv IsolationAwareImageList_SetBkColor(_In_ HIMAGELIST himl,_In_ COLORREF clrBk); +COLORREF IsolationAwarePrivatenCv IsolationAwareImageList_GetBkColor(_In_ HIMAGELIST himl); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_SetOverlayImage(_In_ HIMAGELIST himl,_In_ int iImage,_In_ int iOverlay); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Draw(_In_ HIMAGELIST himl,_In_ int i,_In_ HDC hdcDst,_In_ int x,_In_ int y,_In_ UINT fStyle); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Replace(_In_ HIMAGELIST himl,_In_ int i,_In_ HBITMAP hbmImage,_In_opt_ HBITMAP hbmMask); +int IsolationAwarePrivatenCv IsolationAwareImageList_AddMasked(_In_ HIMAGELIST himl,_In_ HBITMAP hbmImage,_In_ COLORREF crMask); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DrawEx(_In_ HIMAGELIST himl,_In_ int i,_In_ HDC hdcDst,_In_ int x,_In_ int y,_In_ int dx,_In_ int dy,_In_ COLORREF rgbBk,_In_ COLORREF rgbFg,_In_ UINT fStyle); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DrawIndirect(_In_ IMAGELISTDRAWPARAMS*pimldp); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Remove(_In_ HIMAGELIST himl,_In_ int i); +HICON IsolationAwarePrivatenCv IsolationAwareImageList_GetIcon(_In_ HIMAGELIST himl,_In_ int i,_In_ UINT flags); +HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_LoadImageA(HINSTANCE hi,LPCSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags); +HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_LoadImageW(HINSTANCE hi,LPCWSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Copy(_In_ HIMAGELIST himlDst,_In_ int iDst,_In_ HIMAGELIST himlSrc,_In_ int iSrc,_In_ UINT uFlags); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_BeginDrag(_In_ HIMAGELIST himlTrack,_In_ int iTrack,_In_ int dxHotspot,_In_ int dyHotspot); +void IsolationAwarePrivatenCv IsolationAwareImageList_EndDrag(void); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DragEnter(HWND hwndLock,int x,int y); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DragLeave(HWND hwndLock); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DragMove(int x,int y); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_SetDragCursorImage(_In_ HIMAGELIST himlDrag,_In_ int iDrag,_In_ int dxHotspot,_In_ int dyHotspot); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DragShowNolock(BOOL fShow); +_Success_(return != NULL) HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_GetDragImage(_Out_opt_ POINT*ppt,_Out_opt_ POINT*pptHotspot); +HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_Read(_In_ struct IStream*pstm); +BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Write(_In_ HIMAGELIST himl,_In_ struct IStream*pstm); +#if (NTDDI_VERSION >= NTDDI_WINXP) +HRESULT IsolationAwarePrivatenCv IsolationAwareImageList_ReadEx(_In_ DWORD dwFlags,_In_ struct IStream*pstm,_In_ REFIID riid,_Outptr_ PVOID*ppv); +HRESULT IsolationAwarePrivatenCv IsolationAwareImageList_WriteEx(_In_ HIMAGELIST himl,_In_ DWORD dwFlags,_In_ struct IStream*pstm); +#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */ +_Success_(return) BOOL IsolationAwarePrivatenCv IsolationAwareImageList_GetIconSize(_In_ HIMAGELIST himl,_Out_opt_ int*cx,_Out_opt_ int*cy); +_Success_(return) BOOL IsolationAwarePrivatenCv IsolationAwareImageList_SetIconSize(_In_ HIMAGELIST himl,_In_ int cx,_In_ int cy); +_Success_(return) BOOL IsolationAwarePrivatenCv IsolationAwareImageList_GetImageInfo(_In_ HIMAGELIST himl,_In_ int i,_Out_ IMAGEINFO*pImageInfo); +HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_Merge(_In_ HIMAGELIST himl1,_In_ int i1,_In_ HIMAGELIST himl2,_In_ int i2,_In_ int dx,_In_ int dy); +HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_Duplicate(_In_ HIMAGELIST himl); +HRESULT IsolationAwarePrivatenCv IsolationAwareHIMAGELIST_QueryInterface(_In_ HIMAGELIST himl,_In_ REFIID riid,_Outptr_ void**ppv); +HWND IsolationAwarePrivatenCv IsolationAwareCreateToolbarEx(HWND hwnd,DWORD ws,UINT wID,int nBitmaps,HINSTANCE hBMInst,UINT_PTR wBMID,LPCTBBUTTON lpButtons,int iNumButtons,int dxButton,int dyButton,int dxBitmap,int dyBitmap,UINT uStructSize); +HBITMAP IsolationAwarePrivatenCv IsolationAwareCreateMappedBitmap(HINSTANCE hInstance,INT_PTR idBitmap,UINT wFlags,_In_opt_ LPCOLORMAP lpColorMap,int iNumMaps); +void IsolationAwarePrivatenCv IsolationAwareDrawStatusTextA(HDC hDC,LPCRECT lprc,LPCSTR pszText,UINT uFlags); +void IsolationAwarePrivatenCv IsolationAwareDrawStatusTextW(HDC hDC,LPCRECT lprc,LPCWSTR pszText,UINT uFlags); +HWND IsolationAwarePrivatenCv IsolationAwareCreateStatusWindowA(long style,LPCSTR lpszText,HWND hwndParent,UINT wID); +HWND IsolationAwarePrivatenCv IsolationAwareCreateStatusWindowW(long style,LPCWSTR lpszText,HWND hwndParent,UINT wID); +void IsolationAwarePrivatenCv IsolationAwareMenuHelp(UINT uMsg,WPARAM wParam,LPARAM lParam,HMENU hMainMenu,HINSTANCE hInst,HWND hwndStatus,_In_reads_(_Inexpressible_(2 + 2n && n >= 1)) UINT*lpwIDs); +BOOL IsolationAwarePrivatenCv IsolationAwareShowHideMenuCtl(_In_ HWND hWnd,_In_ UINT_PTR uFlags,_In_z_ LPINT lpInfo); +void IsolationAwarePrivatenCv IsolationAwareGetEffectiveClientRect(_In_ HWND hWnd,_Out_ LPRECT lprc,_In_z_ const int*lpInfo); +BOOL IsolationAwarePrivatenCv IsolationAwareMakeDragList(HWND hLB); +void IsolationAwarePrivatenCv IsolationAwareDrawInsert(HWND handParent,HWND hLB,int nItem); +int IsolationAwarePrivatenCv IsolationAwareLBItemFromPt(HWND hLB,POINT pt,BOOL bAutoScroll); +HWND IsolationAwarePrivatenCv IsolationAwareCreateUpDownControl(DWORD dwStyle,int x,int y,int cx,int cy,HWND hParent,int nID,HINSTANCE hInst,HWND hBuddy,int nUpper,int nLower,int nPos); +#if (NTDDI_VERSION >= NTDDI_VISTA) +HRESULT IsolationAwarePrivatenCv IsolationAwareTaskDialogIndirect(_In_ const TASKDIALOGCONFIG*pTaskConfig,_Out_opt_ int*pnButton,_Out_opt_ int*pnRadioButton,_Out_opt_ BOOL*pfVerificationFlagChecked); +HRESULT IsolationAwarePrivatenCv IsolationAwareTaskDialog(_In_opt_ HWND hwndOwner,_In_opt_ HINSTANCE hInstance,_In_opt_ PCWSTR pszWindowTitle,_In_opt_ PCWSTR pszMainInstruction,_In_opt_ PCWSTR pszContent,TASKDIALOG_COMMON_BUTTON_FLAGS dwCommonButtons,_In_opt_ PCWSTR pszIcon,_Out_opt_ int*pnButton); +#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */ +void IsolationAwarePrivatenCv IsolationAwareInitMUILanguage(LANGID uiLang); +LANGID IsolationAwarePrivatenCv IsolationAwareGetMUILanguage(void); +#if !defined(NOTRACKMOUSEEVENT) +BOOL IsolationAwarePrivatenCv IsolationAware_TrackMouseEvent(_Inout_ LPTRACKMOUSEEVENT lpEventTrack); +#endif /* !defined(NOTRACKMOUSEEVENT) */ +BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_EnableScrollBar(HWND unnamed1,int unnamed2,UINT unnamed3); +BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_ShowScrollBar(HWND unnamed1,int code,BOOL unnamed2); +BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_GetScrollRange(HWND unnamed1,int code,LPINT unnamed2,LPINT unnamed3); +BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_GetScrollInfo(HWND unnamed1,int code,LPSCROLLINFO unnamed2); +int IsolationAwarePrivatenCv IsolationAwareFlatSB_GetScrollPos(HWND unnamed1,int code); +BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_GetScrollProp(HWND unnamed1,int propIndex,LPINT unnamed2); +BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_GetScrollPropPtr(HWND unnamed1,int propIndex,PINT_PTR unnamed2); +int IsolationAwarePrivatenCv IsolationAwareFlatSB_SetScrollPos(HWND unnamed1,int code,int pos,BOOL fRedraw); +int IsolationAwarePrivatenCv IsolationAwareFlatSB_SetScrollInfo(HWND unnamed1,int code,LPSCROLLINFO psi,BOOL fRedraw); +int IsolationAwarePrivatenCv IsolationAwareFlatSB_SetScrollRange(HWND unnamed1,int code,int min,int max,BOOL fRedraw); +BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_SetScrollProp(HWND unnamed1,UINT index,INT_PTR newValue,BOOL unnamed2); +BOOL IsolationAwarePrivatenCv IsolationAwareInitializeFlatSB(HWND unnamed1); +HRESULT IsolationAwarePrivatenCv IsolationAwareUninitializeFlatSB(HWND unnamed1); +#if (NTDDI_VERSION >= NTDDI_WINXP) +_Success_(return) BOOL IsolationAwarePrivatenCv IsolationAwareSetWindowSubclass(_In_ HWND hWnd,_In_ SUBCLASSPROC pfnSubclass,_In_ UINT_PTR uIdSubclass,_In_ DWORD_PTR dwRefData); +_Success_(return) BOOL IsolationAwarePrivatenCv IsolationAwareGetWindowSubclass(_In_ HWND hWnd,_In_ SUBCLASSPROC pfnSubclass,_In_ UINT_PTR uIdSubclass,_Out_opt_ DWORD_PTR*pdwRefData); +_Success_(return) BOOL IsolationAwarePrivatenCv IsolationAwareRemoveWindowSubclass(_In_ HWND hWnd,_In_ SUBCLASSPROC pfnSubclass,_In_ UINT_PTR uIdSubclass); +#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */ +LRESULT IsolationAwarePrivatenCv IsolationAwareDefSubclassProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam); +HRESULT IsolationAwarePrivatenCv IsolationAwareLoadIconMetric(HINSTANCE hinst,PCWSTR pszName,int lims,_Out_ HICON*phico); +HRESULT IsolationAwarePrivatenCv IsolationAwareLoadIconWithScaleDown(HINSTANCE hinst,PCWSTR pszName,int cx,int cy,_Out_ HICON*phico); +int IsolationAwarePrivatenCv IsolationAwareDrawShadowText(_In_ HDC hdc,_In_reads_(cch) LPCWSTR pszText,_In_ UINT cch,_In_ RECT*prc,_In_ DWORD dwFlags,_In_ COLORREF crText,_In_ COLORREF crShadow,_In_ int ixOffset,_In_ int iyOffset); + +_Post_satisfies_(FAILED(return)) +ISOLATION_AWARE_INLINE HRESULT CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(void) +{ + DWORD dwLastError = GetLastError(); + if (dwLastError == NO_ERROR) + dwLastError = ERROR_INTERNAL_ERROR; + return HRESULT_FROM_WIN32(dwLastError); +} + +#if defined(UNICODE) + +#define IsolationAwareCreateStatusWindow IsolationAwareCreateStatusWindowW +#define IsolationAwareDrawStatusText IsolationAwareDrawStatusTextW +#define IsolationAwareImageList_LoadImage IsolationAwareImageList_LoadImageW + +#else /* UNICODE */ + +#define IsolationAwareCreateStatusWindow IsolationAwareCreateStatusWindowA +#define IsolationAwareDrawStatusText IsolationAwareDrawStatusTextA +#define IsolationAwareImageList_LoadImage IsolationAwareImageList_LoadImageA + +#endif /* UNICODE */ + +#if !ISOLATION_AWARE_USE_STATIC_LIBRARY +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareInitCommonControls(void) +{ + typedef void (WINAPI* PFN)(void); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("InitCommonControls"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareInitCommonControlsEx(_In_ const INITCOMMONCONTROLSEX*picce) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ const INITCOMMONCONTROLSEX*picce); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("InitCommonControlsEx"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(picce); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_Create(int cx,int cy,UINT flags,int cInitial,int cGrow) +{ + HIMAGELIST imagelistResult = NULL; + typedef HIMAGELIST (WINAPI* PFN)(int cx,int cy,UINT flags,int cInitial,int cGrow); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return imagelistResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Create"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + imagelistResult = __IsolationAware_pfn(cx,cy,flags,cInitial,cGrow); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (imagelistResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return imagelistResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Destroy(_In_opt_ HIMAGELIST himl) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_opt_ HIMAGELIST himl); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Destroy"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareImageList_GetImageCount(_In_ HIMAGELIST himl) +{ + int nResult = 0 ; + typedef int (WINAPI* PFN)(_In_ HIMAGELIST himl); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_GetImageCount"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(himl); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == 0 ); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_SetImageCount(_In_ HIMAGELIST himl,_In_ UINT uNewCount) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ UINT uNewCount); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_SetImageCount"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl,uNewCount); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareImageList_Add(_In_ HIMAGELIST himl,_In_ HBITMAP hbmImage,_In_opt_ HBITMAP hbmMask) +{ + int nResult = -1; + typedef int (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ HBITMAP hbmImage,_In_opt_ HBITMAP hbmMask); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Add"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(himl,hbmImage,hbmMask); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == -1); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareImageList_ReplaceIcon(_In_ HIMAGELIST himl,_In_ int i,_In_ HICON hicon) +{ + int nResult = -1; + typedef int (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ int i,_In_ HICON hicon); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_ReplaceIcon"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(himl,i,hicon); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == -1); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE COLORREF IsolationAwarePrivatenCv IsolationAwareImageList_SetBkColor(_In_ HIMAGELIST himl,_In_ COLORREF clrBk) +{ + COLORREF colorResult = RGB(0,0,0); + typedef COLORREF (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ COLORREF clrBk); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return colorResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_SetBkColor"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + colorResult = __IsolationAware_pfn(himl,clrBk); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (colorResult == RGB(0,0,0)); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return colorResult; +} + +ISOLATION_AWARE_INLINE COLORREF IsolationAwarePrivatenCv IsolationAwareImageList_GetBkColor(_In_ HIMAGELIST himl) +{ + COLORREF colorResult = RGB(0,0,0); + typedef COLORREF (WINAPI* PFN)(_In_ HIMAGELIST himl); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return colorResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_GetBkColor"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + colorResult = __IsolationAware_pfn(himl); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (colorResult == RGB(0,0,0)); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return colorResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_SetOverlayImage(_In_ HIMAGELIST himl,_In_ int iImage,_In_ int iOverlay) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ int iImage,_In_ int iOverlay); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_SetOverlayImage"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl,iImage,iOverlay); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Draw(_In_ HIMAGELIST himl,_In_ int i,_In_ HDC hdcDst,_In_ int x,_In_ int y,_In_ UINT fStyle) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ int i,_In_ HDC hdcDst,_In_ int x,_In_ int y,_In_ UINT fStyle); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Draw"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl,i,hdcDst,x,y,fStyle); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Replace(_In_ HIMAGELIST himl,_In_ int i,_In_ HBITMAP hbmImage,_In_opt_ HBITMAP hbmMask) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ int i,_In_ HBITMAP hbmImage,_In_opt_ HBITMAP hbmMask); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Replace"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl,i,hbmImage,hbmMask); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareImageList_AddMasked(_In_ HIMAGELIST himl,_In_ HBITMAP hbmImage,_In_ COLORREF crMask) +{ + int nResult = -1; + typedef int (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ HBITMAP hbmImage,_In_ COLORREF crMask); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_AddMasked"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(himl,hbmImage,crMask); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == -1); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DrawEx(_In_ HIMAGELIST himl,_In_ int i,_In_ HDC hdcDst,_In_ int x,_In_ int y,_In_ int dx,_In_ int dy,_In_ COLORREF rgbBk,_In_ COLORREF rgbFg,_In_ UINT fStyle) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ int i,_In_ HDC hdcDst,_In_ int x,_In_ int y,_In_ int dx,_In_ int dy,_In_ COLORREF rgbBk,_In_ COLORREF rgbFg,_In_ UINT fStyle); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_DrawEx"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl,i,hdcDst,x,y,dx,dy,rgbBk,rgbFg,fStyle); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DrawIndirect(_In_ IMAGELISTDRAWPARAMS*pimldp) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ IMAGELISTDRAWPARAMS*pimldp); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_DrawIndirect"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(pimldp); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Remove(_In_ HIMAGELIST himl,_In_ int i) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ int i); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Remove"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl,i); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE HICON IsolationAwarePrivatenCv IsolationAwareImageList_GetIcon(_In_ HIMAGELIST himl,_In_ int i,_In_ UINT flags) +{ + HICON iconResult = NULL; + typedef HICON (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ int i,_In_ UINT flags); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return iconResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_GetIcon"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + iconResult = __IsolationAware_pfn(himl,i,flags); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (iconResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return iconResult; +} + +ISOLATION_AWARE_INLINE HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_LoadImageA(HINSTANCE hi,LPCSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags) +{ + HIMAGELIST imagelistResult = NULL; + typedef HIMAGELIST (WINAPI* PFN)(HINSTANCE hi,LPCSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return imagelistResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_LoadImageA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + imagelistResult = __IsolationAware_pfn(hi,lpbmp,cx,cGrow,crMask,uType,uFlags); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (imagelistResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return imagelistResult; +} + +ISOLATION_AWARE_INLINE HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_LoadImageW(HINSTANCE hi,LPCWSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags) +{ + HIMAGELIST imagelistResult = NULL; + typedef HIMAGELIST (WINAPI* PFN)(HINSTANCE hi,LPCWSTR lpbmp,int cx,int cGrow,COLORREF crMask,UINT uType,UINT uFlags); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return imagelistResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_LoadImageW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + imagelistResult = __IsolationAware_pfn(hi,lpbmp,cx,cGrow,crMask,uType,uFlags); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (imagelistResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return imagelistResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Copy(_In_ HIMAGELIST himlDst,_In_ int iDst,_In_ HIMAGELIST himlSrc,_In_ int iSrc,_In_ UINT uFlags) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himlDst,_In_ int iDst,_In_ HIMAGELIST himlSrc,_In_ int iSrc,_In_ UINT uFlags); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Copy"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himlDst,iDst,himlSrc,iSrc,uFlags); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_BeginDrag(_In_ HIMAGELIST himlTrack,_In_ int iTrack,_In_ int dxHotspot,_In_ int dyHotspot) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himlTrack,_In_ int iTrack,_In_ int dxHotspot,_In_ int dyHotspot); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_BeginDrag"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himlTrack,iTrack,dxHotspot,dyHotspot); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareImageList_EndDrag(void) +{ + typedef void (WINAPI* PFN)(void); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_EndDrag"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DragEnter(HWND hwndLock,int x,int y) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND hwndLock,int x,int y); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_DragEnter"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hwndLock,x,y); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DragLeave(HWND hwndLock) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND hwndLock); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_DragLeave"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hwndLock); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DragMove(int x,int y) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(int x,int y); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_DragMove"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(x,y); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_SetDragCursorImage(_In_ HIMAGELIST himlDrag,_In_ int iDrag,_In_ int dxHotspot,_In_ int dyHotspot) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himlDrag,_In_ int iDrag,_In_ int dxHotspot,_In_ int dyHotspot); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_SetDragCursorImage"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himlDrag,iDrag,dxHotspot,dyHotspot); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_DragShowNolock(BOOL fShow) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(BOOL fShow); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_DragShowNolock"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(fShow); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +_Success_(return != NULL) ISOLATION_AWARE_INLINE HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_GetDragImage(_Out_opt_ POINT*ppt,_Out_opt_ POINT*pptHotspot) +{ + HIMAGELIST imagelistResult = NULL; + typedef HIMAGELIST (WINAPI* PFN)(_Out_opt_ POINT*ppt,_Out_opt_ POINT*pptHotspot); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return imagelistResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_GetDragImage"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + imagelistResult = __IsolationAware_pfn(ppt,pptHotspot); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (imagelistResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return imagelistResult; +} + +ISOLATION_AWARE_INLINE HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_Read(_In_ struct IStream*pstm) +{ + HIMAGELIST imagelistResult = NULL; + typedef HIMAGELIST (WINAPI* PFN)(_In_ struct IStream*pstm); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return imagelistResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Read"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + imagelistResult = __IsolationAware_pfn(pstm); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (imagelistResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return imagelistResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_Write(_In_ HIMAGELIST himl,_In_ struct IStream*pstm) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ struct IStream*pstm); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Write"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl,pstm); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +#if (NTDDI_VERSION >= NTDDI_WINXP) + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwareImageList_ReadEx(_In_ DWORD dwFlags,_In_ struct IStream*pstm,_In_ REFIID riid,_Outptr_ PVOID*ppv) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(_In_ DWORD dwFlags,_In_ struct IStream*pstm,_In_ REFIID riid,_Outptr_ PVOID*ppv); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_ReadEx"); + if (__IsolationAware_pfn == NULL) + { + result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __leave; + } + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(dwFlags,pstm,riid,ppv); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return result; +} + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwareImageList_WriteEx(_In_ HIMAGELIST himl,_In_ DWORD dwFlags,_In_ struct IStream*pstm) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ DWORD dwFlags,_In_ struct IStream*pstm); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_WriteEx"); + if (__IsolationAware_pfn == NULL) + { + result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __leave; + } + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(himl,dwFlags,pstm); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return result; +} + +#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */ + +_Success_(return) ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_GetIconSize(_In_ HIMAGELIST himl,_Out_opt_ int*cx,_Out_opt_ int*cy) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himl,_Out_opt_ int*cx,_Out_opt_ int*cy); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_GetIconSize"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl,cx,cy); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +_Success_(return) ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_SetIconSize(_In_ HIMAGELIST himl,_In_ int cx,_In_ int cy) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ int cx,_In_ int cy); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_SetIconSize"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl,cx,cy); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +_Success_(return) ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareImageList_GetImageInfo(_In_ HIMAGELIST himl,_In_ int i,_Out_ IMAGEINFO*pImageInfo) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ int i,_Out_ IMAGEINFO*pImageInfo); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_GetImageInfo"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(himl,i,pImageInfo); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_Merge(_In_ HIMAGELIST himl1,_In_ int i1,_In_ HIMAGELIST himl2,_In_ int i2,_In_ int dx,_In_ int dy) +{ + HIMAGELIST imagelistResult = NULL; + typedef HIMAGELIST (WINAPI* PFN)(_In_ HIMAGELIST himl1,_In_ int i1,_In_ HIMAGELIST himl2,_In_ int i2,_In_ int dx,_In_ int dy); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return imagelistResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Merge"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + imagelistResult = __IsolationAware_pfn(himl1,i1,himl2,i2,dx,dy); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (imagelistResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return imagelistResult; +} + +ISOLATION_AWARE_INLINE HIMAGELIST IsolationAwarePrivatenCv IsolationAwareImageList_Duplicate(_In_ HIMAGELIST himl) +{ + HIMAGELIST imagelistResult = NULL; + typedef HIMAGELIST (WINAPI* PFN)(_In_ HIMAGELIST himl); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return imagelistResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ImageList_Duplicate"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + imagelistResult = __IsolationAware_pfn(himl); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (imagelistResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return imagelistResult; +} + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwareHIMAGELIST_QueryInterface(_In_ HIMAGELIST himl,_In_ REFIID riid,_Outptr_ void**ppv) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(_In_ HIMAGELIST himl,_In_ REFIID riid,_Outptr_ void**ppv); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("HIMAGELIST_QueryInterface"); + if (__IsolationAware_pfn == NULL) + { + result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __leave; + } + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(himl,riid,ppv); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return result; +} + +ISOLATION_AWARE_INLINE HWND IsolationAwarePrivatenCv IsolationAwareCreateToolbarEx(HWND hwnd,DWORD ws,UINT wID,int nBitmaps,HINSTANCE hBMInst,UINT_PTR wBMID,LPCTBBUTTON lpButtons,int iNumButtons,int dxButton,int dyButton,int dxBitmap,int dyBitmap,UINT uStructSize) +{ + HWND windowResult = NULL; + typedef HWND (WINAPI* PFN)(HWND hwnd,DWORD ws,UINT wID,int nBitmaps,HINSTANCE hBMInst,UINT_PTR wBMID,LPCTBBUTTON lpButtons,int iNumButtons,int dxButton,int dyButton,int dxBitmap,int dyBitmap,UINT uStructSize); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return windowResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("CreateToolbarEx"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + windowResult = __IsolationAware_pfn(hwnd,ws,wID,nBitmaps,hBMInst,wBMID,lpButtons,iNumButtons,dxButton,dyButton,dxBitmap,dyBitmap,uStructSize); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (windowResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return windowResult; +} + +ISOLATION_AWARE_INLINE HBITMAP IsolationAwarePrivatenCv IsolationAwareCreateMappedBitmap(HINSTANCE hInstance,INT_PTR idBitmap,UINT wFlags,_In_opt_ LPCOLORMAP lpColorMap,int iNumMaps) +{ + HBITMAP bitmapResult = NULL; + typedef HBITMAP (WINAPI* PFN)(HINSTANCE hInstance,INT_PTR idBitmap,UINT wFlags,_In_opt_ LPCOLORMAP lpColorMap,int iNumMaps); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return bitmapResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("CreateMappedBitmap"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + bitmapResult = __IsolationAware_pfn(hInstance,idBitmap,wFlags,lpColorMap,iNumMaps); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (bitmapResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return bitmapResult; +} + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareDrawStatusTextA(HDC hDC,LPCRECT lprc,LPCSTR pszText,UINT uFlags) +{ + typedef void (WINAPI* PFN)(HDC hDC,LPCRECT lprc,LPCSTR pszText,UINT uFlags); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DrawStatusTextA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(hDC,lprc,pszText,uFlags); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return; +} + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareDrawStatusTextW(HDC hDC,LPCRECT lprc,LPCWSTR pszText,UINT uFlags) +{ + typedef void (WINAPI* PFN)(HDC hDC,LPCRECT lprc,LPCWSTR pszText,UINT uFlags); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DrawStatusTextW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(hDC,lprc,pszText,uFlags); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return; +} + +ISOLATION_AWARE_INLINE HWND IsolationAwarePrivatenCv IsolationAwareCreateStatusWindowA(long style,LPCSTR lpszText,HWND hwndParent,UINT wID) +{ + HWND windowResult = NULL; + typedef HWND (WINAPI* PFN)(long style,LPCSTR lpszText,HWND hwndParent,UINT wID); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return windowResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("CreateStatusWindowA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + windowResult = __IsolationAware_pfn(style,lpszText,hwndParent,wID); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (windowResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return windowResult; +} + +ISOLATION_AWARE_INLINE HWND IsolationAwarePrivatenCv IsolationAwareCreateStatusWindowW(long style,LPCWSTR lpszText,HWND hwndParent,UINT wID) +{ + HWND windowResult = NULL; + typedef HWND (WINAPI* PFN)(long style,LPCWSTR lpszText,HWND hwndParent,UINT wID); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return windowResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("CreateStatusWindowW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + windowResult = __IsolationAware_pfn(style,lpszText,hwndParent,wID); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (windowResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return windowResult; +} + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareMenuHelp(UINT uMsg,WPARAM wParam,LPARAM lParam,HMENU hMainMenu,HINSTANCE hInst,HWND hwndStatus,_In_reads_(_Inexpressible_(2 + 2n && n >= 1)) UINT*lpwIDs) +{ + typedef void (WINAPI* PFN)(UINT uMsg,WPARAM wParam,LPARAM lParam,HMENU hMainMenu,HINSTANCE hInst,HWND hwndStatus,_In_reads_(_Inexpressible_(2 + 2n && n >= 1)) UINT*lpwIDs); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("MenuHelp"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(uMsg,wParam,lParam,hMainMenu,hInst,hwndStatus,lpwIDs); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareShowHideMenuCtl(_In_ HWND hWnd,_In_ UINT_PTR uFlags,_In_z_ LPINT lpInfo) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HWND hWnd,_In_ UINT_PTR uFlags,_In_z_ LPINT lpInfo); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("ShowHideMenuCtl"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hWnd,uFlags,lpInfo); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareGetEffectiveClientRect(_In_ HWND hWnd,_Out_ LPRECT lprc,_In_z_ const int*lpInfo) +{ + typedef void (WINAPI* PFN)(_In_ HWND hWnd,_Out_ LPRECT lprc,_In_z_ const int*lpInfo); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("GetEffectiveClientRect"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(hWnd,lprc,lpInfo); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareMakeDragList(HWND hLB) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND hLB); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("MakeDragList"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hLB); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareDrawInsert(HWND handParent,HWND hLB,int nItem) +{ + typedef void (WINAPI* PFN)(HWND handParent,HWND hLB,int nItem); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DrawInsert"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(handParent,hLB,nItem); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareLBItemFromPt(HWND hLB,POINT pt,BOOL bAutoScroll) +{ + int nResult = -1; + typedef int (WINAPI* PFN)(HWND hLB,POINT pt,BOOL bAutoScroll); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("LBItemFromPt"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(hLB,pt,bAutoScroll); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == -1); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE HWND IsolationAwarePrivatenCv IsolationAwareCreateUpDownControl(DWORD dwStyle,int x,int y,int cx,int cy,HWND hParent,int nID,HINSTANCE hInst,HWND hBuddy,int nUpper,int nLower,int nPos) +{ + HWND windowResult = NULL; + typedef HWND (WINAPI* PFN)(DWORD dwStyle,int x,int y,int cx,int cy,HWND hParent,int nID,HINSTANCE hInst,HWND hBuddy,int nUpper,int nLower,int nPos); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return windowResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("CreateUpDownControl"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + windowResult = __IsolationAware_pfn(dwStyle,x,y,cx,cy,hParent,nID,hInst,hBuddy,nUpper,nLower,nPos); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (windowResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return windowResult; +} + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwareTaskDialogIndirect(_In_ const TASKDIALOGCONFIG*pTaskConfig,_Out_opt_ int*pnButton,_Out_opt_ int*pnRadioButton,_Out_opt_ BOOL*pfVerificationFlagChecked) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(_In_ const TASKDIALOGCONFIG*pTaskConfig,_Out_opt_ int*pnButton,_Out_opt_ int*pnRadioButton,_Out_opt_ BOOL*pfVerificationFlagChecked); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("TaskDialogIndirect"); + if (__IsolationAware_pfn == NULL) + { + result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __leave; + } + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(pTaskConfig,pnButton,pnRadioButton,pfVerificationFlagChecked); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return result; +} + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwareTaskDialog(_In_opt_ HWND hwndOwner,_In_opt_ HINSTANCE hInstance,_In_opt_ PCWSTR pszWindowTitle,_In_opt_ PCWSTR pszMainInstruction,_In_opt_ PCWSTR pszContent,TASKDIALOG_COMMON_BUTTON_FLAGS dwCommonButtons,_In_opt_ PCWSTR pszIcon,_Out_opt_ int*pnButton) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(_In_opt_ HWND hwndOwner,_In_opt_ HINSTANCE hInstance,_In_opt_ PCWSTR pszWindowTitle,_In_opt_ PCWSTR pszMainInstruction,_In_opt_ PCWSTR pszContent,TASKDIALOG_COMMON_BUTTON_FLAGS dwCommonButtons,_In_opt_ PCWSTR pszIcon,_Out_opt_ int*pnButton); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("TaskDialog"); + if (__IsolationAware_pfn == NULL) + { + result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __leave; + } + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(hwndOwner,hInstance,pszWindowTitle,pszMainInstruction,pszContent,dwCommonButtons,pszIcon,pnButton); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return result; +} + +#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */ + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareInitMUILanguage(LANGID uiLang) +{ + typedef void (WINAPI* PFN)(LANGID uiLang); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("InitMUILanguage"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(uiLang); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return; +} + +ISOLATION_AWARE_INLINE LANGID IsolationAwarePrivatenCv IsolationAwareGetMUILanguage(void) +{ + LANGID languageIdResult = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL); + typedef LANGID (WINAPI* PFN)(void); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return languageIdResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("GetMUILanguage"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + languageIdResult = __IsolationAware_pfn(); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (languageIdResult == MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL)); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return languageIdResult; +} + +#if !defined(NOTRACKMOUSEEVENT) + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAware_TrackMouseEvent(_Inout_ LPTRACKMOUSEEVENT lpEventTrack) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ LPTRACKMOUSEEVENT lpEventTrack); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("_TrackMouseEvent"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(lpEventTrack); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +#endif /* !defined(NOTRACKMOUSEEVENT) */ + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_EnableScrollBar(HWND unnamed1,int unnamed2,UINT unnamed3) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND unnamed1,int unnamed2,UINT unnamed3); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("FlatSB_EnableScrollBar"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1,unnamed2,unnamed3); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_ShowScrollBar(HWND unnamed1,int code,BOOL unnamed2) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND unnamed1,int code,BOOL unnamed2); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("FlatSB_ShowScrollBar"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1,code,unnamed2); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_GetScrollRange(HWND unnamed1,int code,LPINT unnamed2,LPINT unnamed3) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND unnamed1,int code,LPINT unnamed2,LPINT unnamed3); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("FlatSB_GetScrollRange"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1,code,unnamed2,unnamed3); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_GetScrollInfo(HWND unnamed1,int code,LPSCROLLINFO unnamed2) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND unnamed1,int code,LPSCROLLINFO unnamed2); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("FlatSB_GetScrollInfo"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1,code,unnamed2); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareFlatSB_GetScrollPos(HWND unnamed1,int code) +{ + int nResult = 0 ; + typedef int (WINAPI* PFN)(HWND unnamed1,int code); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("FlatSB_GetScrollPos"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(unnamed1,code); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == 0 ); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_GetScrollProp(HWND unnamed1,int propIndex,LPINT unnamed2) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND unnamed1,int propIndex,LPINT unnamed2); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("FlatSB_GetScrollProp"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1,propIndex,unnamed2); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_GetScrollPropPtr(HWND unnamed1,int propIndex,PINT_PTR unnamed2) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND unnamed1,int propIndex,PINT_PTR unnamed2); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY( +#ifdef _WIN64 + "FlatSB_GetScrollPropPtr" +#else + "FlatSB_GetScrollProp" +#endif + ); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1,propIndex,unnamed2); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareFlatSB_SetScrollPos(HWND unnamed1,int code,int pos,BOOL fRedraw) +{ + int nResult = 0 ; + typedef int (WINAPI* PFN)(HWND unnamed1,int code,int pos,BOOL fRedraw); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("FlatSB_SetScrollPos"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(unnamed1,code,pos,fRedraw); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == 0 ); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareFlatSB_SetScrollInfo(HWND unnamed1,int code,LPSCROLLINFO psi,BOOL fRedraw) +{ + int nResult = 0 ; + typedef int (WINAPI* PFN)(HWND unnamed1,int code,LPSCROLLINFO psi,BOOL fRedraw); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("FlatSB_SetScrollInfo"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(unnamed1,code,psi,fRedraw); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == 0 ); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareFlatSB_SetScrollRange(HWND unnamed1,int code,int min,int max,BOOL fRedraw) +{ + int nResult = 0 ; + typedef int (WINAPI* PFN)(HWND unnamed1,int code,int min,int max,BOOL fRedraw); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("FlatSB_SetScrollRange"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(unnamed1,code,min,max,fRedraw); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == 0 ); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareFlatSB_SetScrollProp(HWND unnamed1,UINT index,INT_PTR newValue,BOOL unnamed2) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND unnamed1,UINT index,INT_PTR newValue,BOOL unnamed2); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("FlatSB_SetScrollProp"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1,index,newValue,unnamed2); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareInitializeFlatSB(HWND unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(HWND unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("InitializeFlatSB"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwareUninitializeFlatSB(HWND unnamed1) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(HWND unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("UninitializeFlatSB"); + if (__IsolationAware_pfn == NULL) + { + result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __leave; + } + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return result; +} + +#if (NTDDI_VERSION >= NTDDI_WINXP) + +_Success_(return) ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareSetWindowSubclass(_In_ HWND hWnd,_In_ SUBCLASSPROC pfnSubclass,_In_ UINT_PTR uIdSubclass,_In_ DWORD_PTR dwRefData) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HWND hWnd,_In_ SUBCLASSPROC pfnSubclass,_In_ UINT_PTR uIdSubclass,_In_ DWORD_PTR dwRefData); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("SetWindowSubclass"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hWnd,pfnSubclass,uIdSubclass,dwRefData); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +_Success_(return) ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareGetWindowSubclass(_In_ HWND hWnd,_In_ SUBCLASSPROC pfnSubclass,_In_ UINT_PTR uIdSubclass,_Out_opt_ DWORD_PTR*pdwRefData) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HWND hWnd,_In_ SUBCLASSPROC pfnSubclass,_In_ UINT_PTR uIdSubclass,_Out_opt_ DWORD_PTR*pdwRefData); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("GetWindowSubclass"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hWnd,pfnSubclass,uIdSubclass,pdwRefData); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +_Success_(return) ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareRemoveWindowSubclass(_In_ HWND hWnd,_In_ SUBCLASSPROC pfnSubclass,_In_ UINT_PTR uIdSubclass) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HWND hWnd,_In_ SUBCLASSPROC pfnSubclass,_In_ UINT_PTR uIdSubclass); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("RemoveWindowSubclass"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hWnd,pfnSubclass,uIdSubclass); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */ + +ISOLATION_AWARE_INLINE LRESULT IsolationAwarePrivatenCv IsolationAwareDefSubclassProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) +{ + LRESULT result = 0 ; + typedef LRESULT (WINAPI* PFN)(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return result; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DefSubclassProc"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(hWnd,uMsg,wParam,lParam); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (result == 0 ); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return result; +} + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwareLoadIconMetric(HINSTANCE hinst,PCWSTR pszName,int lims,_Out_ HICON*phico) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(HINSTANCE hinst,PCWSTR pszName,int lims,_Out_ HICON*phico); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("LoadIconMetric"); + if (__IsolationAware_pfn == NULL) + { + result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __leave; + } + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(hinst,pszName,lims,phico); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return result; +} + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwareLoadIconWithScaleDown(HINSTANCE hinst,PCWSTR pszName,int cx,int cy,_Out_ HICON*phico) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(HINSTANCE hinst,PCWSTR pszName,int cx,int cy,_Out_ HICON*phico); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("LoadIconWithScaleDown"); + if (__IsolationAware_pfn == NULL) + { + result = CommctrlIsolationAwarePrivateJVaQPGbueRfhYg(); + __leave; + } + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(hinst,pszName,cx,cy,phico); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return result; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareDrawShadowText(_In_ HDC hdc,_In_reads_(cch) LPCWSTR pszText,_In_ UINT cch,_In_ RECT*prc,_In_ DWORD dwFlags,_In_ COLORREF crText,_In_ COLORREF crShadow,_In_ int ixOffset,_In_ int iyOffset) +{ + int nResult = -1; + typedef int (WINAPI* PFN)(_In_ HDC hdc,_In_reads_(cch) LPCWSTR pszText,_In_ UINT cch,_In_ RECT*prc,_In_ DWORD dwFlags,_In_ COLORREF crText,_In_ COLORREF crShadow,_In_ int ixOffset,_In_ int iyOffset); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DrawShadowText"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(hdc,pszText,cch,prc,dwFlags,crText,crShadow,ixOffset,iyOffset); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == -1); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE FARPROC IsolationAwarePrivatenCv CommctrlIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY(LPCSTR pszProcName) +/* This function is shared by the other stubs in this header. */ +{ + FARPROC proc = NULL; + static HMODULE s_module; + BOOL fActivateActCtxSuccess = FALSE; + ULONG_PTR ulpCookie = 0; +#ifndef _M_CEE_PURE + const static IsolationAwarePrivatepBAFGnAG_zBqHyr_vAsB + c = { IsolationAwarePrivatezlybNQyVOeNelJ, L"Comctl32.dll" +#ifdef _M_IX86 + , IsolationAwarePrivatezlybNQyVOeNeln, "Comctl32.dll" +#endif + }; +#else + static IsolationAwarePrivatepBAFGnAG_zBqHyr_vAsB c; + c.WinbaseIsolationAwarePrivateybNQJ = IsolationAwarePrivatezlybNQyVOeNelJ; + c.WinbaseIsolationAwarePrivateANZRJ = L"Comctl32.dll"; +#ifdef _M_IX86 + c.WinbaseIsolationAwarePrivateybNQn = IsolationAwarePrivatezlybNQyVOeNeln; + c.WinbaseIsolationAwarePrivateANZRn = "Comctl32.dll"; +#endif +#endif + static IsolationAwarePrivatezHGnoyr_zBqHyr_vAsB m; + + __try + { + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + fActivateActCtxSuccess = IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + __leave; + } + proc = IsolationAwarePrivatezltRgCebPnQQeRff(&c, &m, pszProcName); + } + __finally + { + if ( + !IsolationAwarePrivateT_SqbjaYRiRY && + fActivateActCtxSuccess) + { + const DWORD dwLastError = (proc == NULL) ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (proc == NULL) + SetLastError(dwLastError); + } + } + return proc; +} + +#endif /* ISOLATION_AWARE_USE_STATIC_LIBRARY */ + +#define CreateMappedBitmap IsolationAwareCreateMappedBitmap +#define CreateStatusWindowA IsolationAwareCreateStatusWindowA +#define CreateStatusWindowW IsolationAwareCreateStatusWindowW +#define CreateToolbarEx IsolationAwareCreateToolbarEx +#define CreateUpDownControl IsolationAwareCreateUpDownControl +#define DefSubclassProc IsolationAwareDefSubclassProc +#define DrawInsert IsolationAwareDrawInsert +#define DrawShadowText IsolationAwareDrawShadowText +#define DrawStatusTextA IsolationAwareDrawStatusTextA +#define DrawStatusTextW IsolationAwareDrawStatusTextW +#define FlatSB_EnableScrollBar IsolationAwareFlatSB_EnableScrollBar +#define FlatSB_GetScrollInfo IsolationAwareFlatSB_GetScrollInfo +#define FlatSB_GetScrollPos IsolationAwareFlatSB_GetScrollPos +#define FlatSB_GetScrollProp IsolationAwareFlatSB_GetScrollProp +#if defined(FlatSB_GetScrollPropPtr) +#undef FlatSB_GetScrollPropPtr +#endif +#define FlatSB_GetScrollPropPtr IsolationAwareFlatSB_GetScrollPropPtr +#define FlatSB_GetScrollRange IsolationAwareFlatSB_GetScrollRange +#define FlatSB_SetScrollInfo IsolationAwareFlatSB_SetScrollInfo +#define FlatSB_SetScrollPos IsolationAwareFlatSB_SetScrollPos +#define FlatSB_SetScrollProp IsolationAwareFlatSB_SetScrollProp +#define FlatSB_SetScrollRange IsolationAwareFlatSB_SetScrollRange +#define FlatSB_ShowScrollBar IsolationAwareFlatSB_ShowScrollBar +#define GetEffectiveClientRect IsolationAwareGetEffectiveClientRect +#define GetMUILanguage IsolationAwareGetMUILanguage +#define GetWindowSubclass IsolationAwareGetWindowSubclass +#define HIMAGELIST_QueryInterface IsolationAwareHIMAGELIST_QueryInterface +#define ImageList_Add IsolationAwareImageList_Add +#define ImageList_AddMasked IsolationAwareImageList_AddMasked +#define ImageList_BeginDrag IsolationAwareImageList_BeginDrag +#define ImageList_Copy IsolationAwareImageList_Copy +#define ImageList_Create IsolationAwareImageList_Create +#define ImageList_Destroy IsolationAwareImageList_Destroy +#define ImageList_DragEnter IsolationAwareImageList_DragEnter +#define ImageList_DragLeave IsolationAwareImageList_DragLeave +#define ImageList_DragMove IsolationAwareImageList_DragMove +#define ImageList_DragShowNolock IsolationAwareImageList_DragShowNolock +#define ImageList_Draw IsolationAwareImageList_Draw +#define ImageList_DrawEx IsolationAwareImageList_DrawEx +#define ImageList_DrawIndirect IsolationAwareImageList_DrawIndirect +#define ImageList_Duplicate IsolationAwareImageList_Duplicate +#define ImageList_EndDrag IsolationAwareImageList_EndDrag +#define ImageList_GetBkColor IsolationAwareImageList_GetBkColor +#define ImageList_GetDragImage IsolationAwareImageList_GetDragImage +#define ImageList_GetIcon IsolationAwareImageList_GetIcon +#define ImageList_GetIconSize IsolationAwareImageList_GetIconSize +#define ImageList_GetImageCount IsolationAwareImageList_GetImageCount +#define ImageList_GetImageInfo IsolationAwareImageList_GetImageInfo +#define ImageList_LoadImageA IsolationAwareImageList_LoadImageA +#define ImageList_LoadImageW IsolationAwareImageList_LoadImageW +#define ImageList_Merge IsolationAwareImageList_Merge +#define ImageList_Read IsolationAwareImageList_Read +#define ImageList_ReadEx IsolationAwareImageList_ReadEx +#define ImageList_Remove IsolationAwareImageList_Remove +#define ImageList_Replace IsolationAwareImageList_Replace +#define ImageList_ReplaceIcon IsolationAwareImageList_ReplaceIcon +#define ImageList_SetBkColor IsolationAwareImageList_SetBkColor +#define ImageList_SetDragCursorImage IsolationAwareImageList_SetDragCursorImage +#define ImageList_SetIconSize IsolationAwareImageList_SetIconSize +#define ImageList_SetImageCount IsolationAwareImageList_SetImageCount +#define ImageList_SetOverlayImage IsolationAwareImageList_SetOverlayImage +#define ImageList_Write IsolationAwareImageList_Write +#define ImageList_WriteEx IsolationAwareImageList_WriteEx +#define InitCommonControls IsolationAwareInitCommonControls +#define InitCommonControlsEx IsolationAwareInitCommonControlsEx +#define InitMUILanguage IsolationAwareInitMUILanguage +#define InitializeFlatSB IsolationAwareInitializeFlatSB +#define LBItemFromPt IsolationAwareLBItemFromPt +#define LoadIconMetric IsolationAwareLoadIconMetric +#define LoadIconWithScaleDown IsolationAwareLoadIconWithScaleDown +#define MakeDragList IsolationAwareMakeDragList +#define MenuHelp IsolationAwareMenuHelp +#define RemoveWindowSubclass IsolationAwareRemoveWindowSubclass +#define SetWindowSubclass IsolationAwareSetWindowSubclass +#define ShowHideMenuCtl IsolationAwareShowHideMenuCtl +#define TaskDialog IsolationAwareTaskDialog +#define TaskDialogIndirect IsolationAwareTaskDialogIndirect +#define UninitializeFlatSB IsolationAwareUninitializeFlatSB +#define _TrackMouseEvent IsolationAware_TrackMouseEvent +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* ISOLATION_AWARE_ENABLED */ +#endif /* RC */ + + +#if defined(__cplusplus) +} /* __cplusplus */ +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/commctrl.rh b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commctrl.rh new file mode 100644 index 0000000000000000000000000000000000000000..4818781a0733aa73ad476489b102279ba855b42b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commctrl.rh @@ -0,0 +1,319 @@ +/*++ BUILD Version: 0000 Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + commctrl.rh + +Abstract: + + This module defines the 32-Bit Windows resource codes from commctrl.h. + +Revision History: + +--*/ + +#define HDS_HORZ 0x0000 +#define HDS_BUTTONS 0x0002 +#define HDS_HOTTRACK 0x0004 +#define HDS_HIDDEN 0x0008 + +#define HDS_DRAGDROP 0x0040 +#define HDS_FULLDRAG 0x0080 +#define HDS_FILTERBAR 0x0100 + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define HDS_FLAT 0x0200 +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define HDS_CHECKBOXES 0x0400 +#define HDS_NOSIZING 0x0800 +#define HDS_OVERFLOW 0x1000 +#endif + +#define TBSTYLE_BUTTON 0x0000 // obsolete; use BTNS_BUTTON instead +#define TBSTYLE_SEP 0x0001 // obsolete; use BTNS_SEP instead +#define TBSTYLE_CHECK 0x0002 // obsolete; use BTNS_CHECK instead +#define TBSTYLE_GROUP 0x0004 // obsolete; use BTNS_GROUP instead +#define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK) // obsolete; use BTNS_CHECKGROUP instead +#define TBSTYLE_DROPDOWN 0x0008 // obsolete; use BTNS_DROPDOWN instead +#define TBSTYLE_AUTOSIZE 0x0010 // obsolete; use BTNS_AUTOSIZE instead +#define TBSTYLE_NOPREFIX 0x0020 // obsolete; use BTNS_NOPREFIX instead + +#define TBSTYLE_TOOLTIPS 0x0100 +#define TBSTYLE_WRAPABLE 0x0200 +#define TBSTYLE_ALTDRAG 0x0400 +#define TBSTYLE_FLAT 0x0800 +#define TBSTYLE_LIST 0x1000 +#define TBSTYLE_CUSTOMERASE 0x2000 +#define TBSTYLE_REGISTERDROP 0x4000 +#define TBSTYLE_TRANSPARENT 0x8000 + + +#define BTNS_BUTTON TBSTYLE_BUTTON // 0x0000 +#define BTNS_SEP TBSTYLE_SEP // 0x0001 +#define BTNS_CHECK TBSTYLE_CHECK // 0x0002 +#define BTNS_GROUP TBSTYLE_GROUP // 0x0004 +#define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP // (TBSTYLE_GROUP | TBSTYLE_CHECK) +#define BTNS_DROPDOWN TBSTYLE_DROPDOWN // 0x0008 +#define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE // 0x0010; automatically calculate the cx of the button +#define BTNS_NOPREFIX TBSTYLE_NOPREFIX // 0x0020; this button should not have accel prefix +#define BTNS_SHOWTEXT 0x0040 // ignored unless TBSTYLE_EX_MIXEDBUTTONS is set +#define BTNS_WHOLEDROPDOWN 0x0080 // draw drop-down arrow, but without split arrow section + + +#define RBS_TOOLTIPS 0x00000100 +#define RBS_VARHEIGHT 0x00000200 +#define RBS_BANDBORDERS 0x00000400 +#define RBS_FIXEDORDER 0x00000800 +#define RBS_REGISTERDROP 0x00001000 +#define RBS_AUTOSIZE 0x00002000 +#define RBS_VERTICALGRIPPER 0x00004000 // this always has the vertical gripper (default for horizontal mode) +#define RBS_DBLCLKTOGGLE 0x00008000 + +#define TTS_ALWAYSTIP 0x01 +#define TTS_NOPREFIX 0x02 +#define TTS_NOANIMATE 0x10 +#define TTS_NOFADE 0x20 +#define TTS_BALLOON 0x40 +#define TTS_CLOSE 0x80 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TTS_USEVISUALSTYLE 0x100 // Use themed hyperlinks + +#endif + + +#define SBARS_SIZEGRIP 0x0100 +#define SBARS_TOOLTIPS 0x0800 + +// this is a status bar flag, preference to SBARS_TOOLTIPS +#define SBT_TOOLTIPS 0x0800 + + +#define TBS_AUTOTICKS 0x0001 +#define TBS_VERT 0x0002 +#define TBS_HORZ 0x0000 +#define TBS_TOP 0x0004 +#define TBS_BOTTOM 0x0000 +#define TBS_LEFT 0x0004 +#define TBS_RIGHT 0x0000 +#define TBS_BOTH 0x0008 +#define TBS_NOTICKS 0x0010 +#define TBS_ENABLESELRANGE 0x0020 +#define TBS_FIXEDLENGTH 0x0040 +#define TBS_NOTHUMB 0x0080 +#define TBS_TOOLTIPS 0x0100 +#define TBS_REVERSED 0x0200 // Accessibility hint: the smaller number (usually the min value) means "high" and the larger number (usually the max value) means "low" + +#define TBS_DOWNISLEFT 0x0400 // Down=Left and Up=Right (default is Down=Right and Up=Left) + +#if (_WIN32_IE >= 0x0600) +#define TBS_NOTIFYBEFOREMOVE 0x0800 // Trackbar should notify parent before repositioning the slider due to user action (enables snapping) +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TBS_TRANSPARENTBKGND 0x1000 // Background is painted by the parent via WM_PRINTCLIENT +#endif + + +#define UDS_WRAP 0x0001 +#define UDS_SETBUDDYINT 0x0002 +#define UDS_ALIGNRIGHT 0x0004 +#define UDS_ALIGNLEFT 0x0008 +#define UDS_AUTOBUDDY 0x0010 +#define UDS_ARROWKEYS 0x0020 +#define UDS_HORZ 0x0040 +#define UDS_NOTHOUSANDS 0x0080 +#define UDS_HOTTRACK 0x0100 + + +#define PBS_SMOOTH 0x01 +#define PBS_VERTICAL 0x04 + + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define PBS_MARQUEE 0x08 +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define PBS_SMOOTHREVERSE 0x10 +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + + +//====== COMMON CONTROL STYLES ================================================ + +#define CCS_TOP 0x00000001L +#define CCS_NOMOVEY 0x00000002L +#define CCS_BOTTOM 0x00000003L +#define CCS_NORESIZE 0x00000004L +#define CCS_NOPARENTALIGN 0x00000008L +#define CCS_ADJUSTABLE 0x00000020L +#define CCS_NODIVIDER 0x00000040L +#define CCS_VERT 0x00000080L +#define CCS_LEFT (CCS_VERT | CCS_TOP) +#define CCS_RIGHT (CCS_VERT | CCS_BOTTOM) +#define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY) + + +#define LWS_TRANSPARENT 0x0001 +#define LWS_IGNORERETURN 0x0002 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define LWS_NOPREFIX 0x0004 +#define LWS_USEVISUALSTYLE 0x0008 +#define LWS_USECUSTOMTEXT 0x0010 +#define LWS_RIGHT 0x0020 +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + + +#define LVS_ICON 0x0000 +#define LVS_REPORT 0x0001 +#define LVS_SMALLICON 0x0002 +#define LVS_LIST 0x0003 +#define LVS_TYPEMASK 0x0003 +#define LVS_SINGLESEL 0x0004 +#define LVS_SHOWSELALWAYS 0x0008 +#define LVS_SORTASCENDING 0x0010 +#define LVS_SORTDESCENDING 0x0020 +#define LVS_SHAREIMAGELISTS 0x0040 +#define LVS_NOLABELWRAP 0x0080 +#define LVS_AUTOARRANGE 0x0100 +#define LVS_EDITLABELS 0x0200 +#define LVS_OWNERDATA 0x1000 +#define LVS_NOSCROLL 0x2000 + +#define LVS_TYPESTYLEMASK 0xfc00 + +#define LVS_ALIGNTOP 0x0000 +#define LVS_ALIGNLEFT 0x0800 +#define LVS_ALIGNMASK 0x0c00 + +#define LVS_OWNERDRAWFIXED 0x0400 +#define LVS_NOCOLUMNHEADER 0x4000 +#define LVS_NOSORTHEADER 0x8000 + + +#define TVS_HASBUTTONS 0x0001 +#define TVS_HASLINES 0x0002 +#define TVS_LINESATROOT 0x0004 +#define TVS_EDITLABELS 0x0008 +#define TVS_DISABLEDRAGDROP 0x0010 +#define TVS_SHOWSELALWAYS 0x0020 +#define TVS_RTLREADING 0x0040 + +#define TVS_NOTOOLTIPS 0x0080 +#define TVS_CHECKBOXES 0x0100 +#define TVS_TRACKSELECT 0x0200 +#define TVS_SINGLEEXPAND 0x0400 +#define TVS_INFOTIP 0x0800 +#define TVS_FULLROWSELECT 0x1000 +#define TVS_NOSCROLL 0x2000 +#define TVS_NONEVENHEIGHT 0x4000 +#define TVS_NOHSCROLL 0x8000 // TVS_NOSCROLL overrides this + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define TVS_EX_NOSINGLECOLLAPSE 0x0001 +#endif + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TVS_EX_MULTISELECT 0x0002 +#define TVS_EX_DOUBLEBUFFER 0x0004 +#define TVS_EX_NOINDENTSTATE 0x0008 +#define TVS_EX_RICHTOOLTIP 0x0010 +#define TVS_EX_AUTOHSCROLL 0x0020 +#define TVS_EX_FADEINOUTEXPANDOS 0x0040 +#define TVS_EX_PARTIALCHECKBOXES 0x0080 +#define TVS_EX_EXCLUSIONCHECKBOXES 0x0100 +#define TVS_EX_DIMMEDCHECKBOXES 0x0200 +#define TVS_EX_DRAWIMAGEASYNC 0x0400 +#endif + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif + + +#define TCS_SCROLLOPPOSITE 0x0001 // assumes multiline tab +#define TCS_BOTTOM 0x0002 +#define TCS_RIGHT 0x0002 +#define TCS_MULTISELECT 0x0004 // allow multi-select in button mode +#define TCS_FLATBUTTONS 0x0008 +#define TCS_FORCEICONLEFT 0x0010 +#define TCS_FORCELABELLEFT 0x0020 +#define TCS_HOTTRACK 0x0040 +#define TCS_VERTICAL 0x0080 +#define TCS_TABS 0x0000 +#define TCS_BUTTONS 0x0100 +#define TCS_SINGLELINE 0x0000 +#define TCS_MULTILINE 0x0200 +#define TCS_RIGHTJUSTIFY 0x0000 +#define TCS_FIXEDWIDTH 0x0400 +#define TCS_RAGGEDRIGHT 0x0800 +#define TCS_FOCUSONBUTTONDOWN 0x1000 +#define TCS_OWNERDRAWFIXED 0x2000 +#define TCS_TOOLTIPS 0x4000 +#define TCS_FOCUSNEVER 0x8000 + + +#define ACS_CENTER 0x0001 +#define ACS_TRANSPARENT 0x0002 +#define ACS_AUTOPLAY 0x0004 +#define ACS_TIMER 0x0008 // don't use threads... use timers + + +#define MCS_DAYSTATE 0x0001 +#define MCS_MULTISELECT 0x0002 +#define MCS_WEEKNUMBERS 0x0004 +#define MCS_NOTODAYCIRCLE 0x0008 +#define MCS_NOTODAY 0x0010 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define MCS_NOTRAILINGDATES 0x0040 +#define MCS_SHORTDAYSOFWEEK 0x0080 +#define MCS_NOSELCHANGEONNAV 0x0100 +#endif + + + +#define DTS_UPDOWN 0x0001 // use UPDOWN instead of MONTHCAL +#define DTS_SHOWNONE 0x0002 // allow a NONE selection +#define DTS_SHORTDATEFORMAT 0x0000 // use the short date format (app must forward WM_WININICHANGE messages) +#define DTS_LONGDATEFORMAT 0x0004 // use the long date format (app must forward WM_WININICHANGE messages) +#define DTS_SHORTDATECENTURYFORMAT 0x000C// short date format with century (app must forward WM_WININICHANGE messages) +#define DTS_TIMEFORMAT 0x0009 // use the time format (app must forward WM_WININICHANGE messages) +#define DTS_APPCANPARSE 0x0010 // allow user entered strings (app MUST respond to DTN_USERSTRING) +#define DTS_RIGHTALIGN 0x0020 // right-align popup instead of left-align it + + +#define PGS_VERT 0x00000000 +#define PGS_HORZ 0x00000001 +#define PGS_AUTOSCROLL 0x00000002 +#define PGS_DRAGNDROP 0x00000004 + + +// style definition +#define NFS_EDIT 0x0001 +#define NFS_STATIC 0x0002 +#define NFS_LISTCOMBO 0x0004 +#define NFS_BUTTON 0x0008 +#define NFS_ALL 0x0010 +#define NFS_USEFONTASSOC 0x0020 + + +// BUTTON STYLES +#define BS_SPLITBUTTON 0x0000000CL +#define BS_DEFSPLITBUTTON 0x0000000DL +#define BS_COMMANDLINK 0x0000000EL +#define BS_DEFCOMMANDLINK 0x0000000FL + +// SPLIT BUTTON INFO mask flags +#define BCSIF_GLYPH 0x0001 +#define BCSIF_IMAGE 0x0002 +#define BCSIF_STYLE 0x0004 +#define BCSIF_SIZE 0x0008 + +// SPLIT BUTTON STYLE flags +#define BCSS_NOSPLIT 0x0001 +#define BCSS_STRETCH 0x0002 +#define BCSS_ALIGNLEFT 0x0004 +#define BCSS_IMAGE 0x0008 + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/commdlg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commdlg.h new file mode 100644 index 0000000000000000000000000000000000000000..4083a3eb7b3ac5c74a3f7406fc1919eb06911f7d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commdlg.h @@ -0,0 +1,1268 @@ +#include + +/************************************************************************ +* * +* commdlg.h -- This module defines the 32-Bit Common Dialog APIs * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +************************************************************************/ + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4001) /* nonstandard extension : single line comment */ +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +#ifndef _INC_COMMDLG +#define _INC_COMMDLG + + +#if(WINVER >= 0x0500) + +#ifdef DEFINE_GUID + +// +// IPrintDialogCallback interface id used by PrintDlgEx. +// +// {5852A2C3-6530-11D1-B6A3-0000F8757BF9} +// +DEFINE_GUID(IID_IPrintDialogCallback, 0x5852a2c3, 0x6530, 0x11d1, 0xb6, 0xa3, 0x0, 0x0, 0xf8, 0x75, 0x7b, 0xf9); + +// +// IPrintDialogServices interface id used by PrintDlgEx. +// +// {509AAEDA-5639-11D1-B6A1-0000F8757BF9} +// +DEFINE_GUID(IID_IPrintDialogServices, 0x509aaeda, 0x5639, 0x11d1, 0xb6, 0xa1, 0x0, 0x0, 0xf8, 0x75, 0x7b, 0xf9); + +#endif + +#endif /* WINVER >= 0x0500 */ + + +#ifndef GUID_DEFS_ONLY + +#include + +#if !defined(_WIN64) +#include /* Assume byte packing throughout */ +#endif + +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++ */ +#endif /* __cplusplus */ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Define API decoration for direct importing of DLL references. +// +#ifndef WINCOMMDLGAPI +#if !defined(_COMDLG32_) +#define WINCOMMDLGAPI DECLSPEC_IMPORT +#else +#define WINCOMMDLGAPI +#endif +#endif // WINCOMMDLGAPI + + +#if(WINVER >= 0x0400) +#ifndef SNDMSG +#ifdef __cplusplus +#ifndef _MAC +#define SNDMSG ::SendMessage +#else +#define SNDMSG ::AfxSendMessage +#endif +#else /* __cplusplus */ +#ifndef _MAC +#define SNDMSG SendMessage +#else +#define SNDMSG AfxSendMessage +#endif +#endif /* __cplusplus */ +#endif // ifndef SNDMSG +#endif /* WINVER >= 0x0400 */ + +#ifdef _MAC +typedef struct tagEDITMENU +{ + HMENU hmenu; + WORD idEdit; + WORD idCut; + WORD idCopy; + WORD idPaste; + WORD idClear; + WORD idUndo; +} EDITMENU; +typedef EDITMENU *LPEDITMENU; +#endif + +typedef UINT_PTR (CALLBACK *LPOFNHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + + +#ifndef CDSIZEOF_STRUCT +#define CDSIZEOF_STRUCT(structname, member) (((int)((LPBYTE)(&((structname*)0)->member) - ((LPBYTE)((structname*)0)))) + sizeof(((structname*)0)->member)) +#endif + +// +// For compilers that don't support nameless unions +// +#ifndef DUMMYUNIONNAME +#ifdef NONAMELESSUNION +#define DUMMYUNIONNAME u +#endif // NONAMELESSUNION +#endif // DUMMYUNIONNAME + +typedef struct tagOFN_NT4A { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCSTR lpstrFilter; + LPSTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + LPSTR lpstrFile; + DWORD nMaxFile; + LPSTR lpstrFileTitle; + DWORD nMaxFileTitle; + LPCSTR lpstrInitialDir; + LPCSTR lpstrTitle; + DWORD Flags; + WORD nFileOffset; + WORD nFileExtension; + LPCSTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC lpfnHook; + LPCSTR lpTemplateName; +} OPENFILENAME_NT4A, *LPOPENFILENAME_NT4A; +typedef struct tagOFN_NT4W { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCWSTR lpstrFilter; + LPWSTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + LPWSTR lpstrFile; + DWORD nMaxFile; + LPWSTR lpstrFileTitle; + DWORD nMaxFileTitle; + LPCWSTR lpstrInitialDir; + LPCWSTR lpstrTitle; + DWORD Flags; + WORD nFileOffset; + WORD nFileExtension; + LPCWSTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; +} OPENFILENAME_NT4W, *LPOPENFILENAME_NT4W; +#ifdef UNICODE +typedef OPENFILENAME_NT4W OPENFILENAME_NT4; +typedef LPOPENFILENAME_NT4W LPOPENFILENAME_NT4; +#else +typedef OPENFILENAME_NT4A OPENFILENAME_NT4; +typedef LPOPENFILENAME_NT4A LPOPENFILENAME_NT4; +#endif // UNICODE + +typedef struct tagOFNA { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCSTR lpstrFilter; + LPSTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + LPSTR lpstrFile; + DWORD nMaxFile; + LPSTR lpstrFileTitle; + DWORD nMaxFileTitle; + LPCSTR lpstrInitialDir; + LPCSTR lpstrTitle; + DWORD Flags; + WORD nFileOffset; + WORD nFileExtension; + LPCSTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC lpfnHook; + LPCSTR lpTemplateName; +#ifdef _MAC + LPEDITMENU lpEditInfo; + LPCSTR lpstrPrompt; +#endif +#if (_WIN32_WINNT >= 0x0500) + void * pvReserved; + DWORD dwReserved; + DWORD FlagsEx; +#endif // (_WIN32_WINNT >= 0x0500) +} OPENFILENAMEA, *LPOPENFILENAMEA; +typedef struct tagOFNW { + DWORD lStructSize; + HWND hwndOwner; + HINSTANCE hInstance; + LPCWSTR lpstrFilter; + LPWSTR lpstrCustomFilter; + DWORD nMaxCustFilter; + DWORD nFilterIndex; + LPWSTR lpstrFile; + DWORD nMaxFile; + LPWSTR lpstrFileTitle; + DWORD nMaxFileTitle; + LPCWSTR lpstrInitialDir; + LPCWSTR lpstrTitle; + DWORD Flags; + WORD nFileOffset; + WORD nFileExtension; + LPCWSTR lpstrDefExt; + LPARAM lCustData; + LPOFNHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; +#ifdef _MAC + LPEDITMENU lpEditInfo; + LPCSTR lpstrPrompt; +#endif +#if (_WIN32_WINNT >= 0x0500) + void * pvReserved; + DWORD dwReserved; + DWORD FlagsEx; +#endif // (_WIN32_WINNT >= 0x0500) +} OPENFILENAMEW, *LPOPENFILENAMEW; +#ifdef UNICODE +typedef OPENFILENAMEW OPENFILENAME; +typedef LPOPENFILENAMEW LPOPENFILENAME; +#else +typedef OPENFILENAMEA OPENFILENAME; +typedef LPOPENFILENAMEA LPOPENFILENAME; +#endif // UNICODE + +#if (_WIN32_WINNT >= 0x0500) +#define OPENFILENAME_SIZE_VERSION_400A CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName) +#define OPENFILENAME_SIZE_VERSION_400W CDSIZEOF_STRUCT(OPENFILENAMEW,lpTemplateName) +#ifdef UNICODE +#define OPENFILENAME_SIZE_VERSION_400 OPENFILENAME_SIZE_VERSION_400W +#else +#define OPENFILENAME_SIZE_VERSION_400 OPENFILENAME_SIZE_VERSION_400A +#endif // !UNICODE +#endif // (_WIN32_WINNT >= 0x0500) + + +WINCOMMDLGAPI BOOL APIENTRY GetOpenFileNameA(LPOPENFILENAMEA); +WINCOMMDLGAPI BOOL APIENTRY GetOpenFileNameW(LPOPENFILENAMEW); +#ifdef UNICODE +#define GetOpenFileName GetOpenFileNameW +#else +#define GetOpenFileName GetOpenFileNameA +#endif // !UNICODE +WINCOMMDLGAPI BOOL APIENTRY GetSaveFileNameA(LPOPENFILENAMEA); +WINCOMMDLGAPI BOOL APIENTRY GetSaveFileNameW(LPOPENFILENAMEW); +#ifdef UNICODE +#define GetSaveFileName GetSaveFileNameW +#else +#define GetSaveFileName GetSaveFileNameA +#endif // !UNICODE + + +WINCOMMDLGAPI short APIENTRY GetFileTitleA(LPCSTR, _Out_writes_(cchSize) LPSTR Buf, _In_ WORD cchSize); +WINCOMMDLGAPI short APIENTRY GetFileTitleW(LPCWSTR, _Out_writes_(cchSize) LPWSTR Buf, _In_ WORD cchSize); +#ifdef UNICODE +#define GetFileTitle GetFileTitleW +#else +#define GetFileTitle GetFileTitleA +#endif // !UNICODE + +#define OFN_READONLY 0x00000001 +#define OFN_OVERWRITEPROMPT 0x00000002 +#define OFN_HIDEREADONLY 0x00000004 +#define OFN_NOCHANGEDIR 0x00000008 +#define OFN_SHOWHELP 0x00000010 +#define OFN_ENABLEHOOK 0x00000020 +#define OFN_ENABLETEMPLATE 0x00000040 +#define OFN_ENABLETEMPLATEHANDLE 0x00000080 +#define OFN_NOVALIDATE 0x00000100 +#define OFN_ALLOWMULTISELECT 0x00000200 +#define OFN_EXTENSIONDIFFERENT 0x00000400 +#define OFN_PATHMUSTEXIST 0x00000800 +#define OFN_FILEMUSTEXIST 0x00001000 +#define OFN_CREATEPROMPT 0x00002000 +#define OFN_SHAREAWARE 0x00004000 +#define OFN_NOREADONLYRETURN 0x00008000 +#define OFN_NOTESTFILECREATE 0x00010000 +#define OFN_NONETWORKBUTTON 0x00020000 +#define OFN_NOLONGNAMES 0x00040000 // force no long names for 4.x modules +#if(WINVER >= 0x0400) +#define OFN_EXPLORER 0x00080000 // new look commdlg +#define OFN_NODEREFERENCELINKS 0x00100000 +#define OFN_LONGNAMES 0x00200000 // force long names for 3.x modules +// OFN_ENABLEINCLUDENOTIFY and OFN_ENABLESIZING require +// Windows 2000 or higher to have any effect. +#define OFN_ENABLEINCLUDENOTIFY 0x00400000 // send include message to callback +#define OFN_ENABLESIZING 0x00800000 +#endif /* WINVER >= 0x0400 */ +#if (_WIN32_WINNT >= 0x0500) +#define OFN_DONTADDTORECENT 0x02000000 +#define OFN_FORCESHOWHIDDEN 0x10000000 // Show All files including System and hidden files +#endif // (_WIN32_WINNT >= 0x0500) + +//FlagsEx Values +#if (_WIN32_WINNT >= 0x0500) +#define OFN_EX_NOPLACESBAR 0x00000001 +#endif // (_WIN32_WINNT >= 0x0500) + +// Return values for the registered message sent to the hook function +// when a sharing violation occurs. OFN_SHAREFALLTHROUGH allows the +// filename to be accepted, OFN_SHARENOWARN rejects the name but puts +// up no warning (returned when the app has already put up a warning +// message), and OFN_SHAREWARN puts up the default warning message +// for sharing violations. +// +// Note: Undefined return values map to OFN_SHAREWARN, but are +// reserved for future use. + +#define OFN_SHAREFALLTHROUGH 2 +#define OFN_SHARENOWARN 1 +#define OFN_SHAREWARN 0 + +typedef UINT_PTR (CALLBACK *LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + +#if(WINVER >= 0x0400) +// Structure used for all file based OpenFileName notifications +typedef struct _OFNOTIFYA +{ + NMHDR hdr; + LPOPENFILENAMEA lpOFN; + LPSTR pszFile; // May be NULL +} OFNOTIFYA, *LPOFNOTIFYA; +// Structure used for all file based OpenFileName notifications +typedef struct _OFNOTIFYW +{ + NMHDR hdr; + LPOPENFILENAMEW lpOFN; + LPWSTR pszFile; // May be NULL +} OFNOTIFYW, *LPOFNOTIFYW; +#ifdef UNICODE +typedef OFNOTIFYW OFNOTIFY; +typedef LPOFNOTIFYW LPOFNOTIFY; +#else +typedef OFNOTIFYA OFNOTIFY; +typedef LPOFNOTIFYA LPOFNOTIFY; +#endif // UNICODE + + +// Structure used for all object based OpenFileName notifications +typedef struct _OFNOTIFYEXA +{ + NMHDR hdr; + LPOPENFILENAMEA lpOFN; + LPVOID psf; + LPVOID pidl; // May be NULL +} OFNOTIFYEXA, *LPOFNOTIFYEXA; +// Structure used for all object based OpenFileName notifications +typedef struct _OFNOTIFYEXW +{ + NMHDR hdr; + LPOPENFILENAMEW lpOFN; + LPVOID psf; + LPVOID pidl; // May be NULL +} OFNOTIFYEXW, *LPOFNOTIFYEXW; +#ifdef UNICODE +typedef OFNOTIFYEXW OFNOTIFYEX; +typedef LPOFNOTIFYEXW LPOFNOTIFYEX; +#else +typedef OFNOTIFYEXA OFNOTIFYEX; +typedef LPOFNOTIFYEXA LPOFNOTIFYEX; +#endif // UNICODE + + +#define CDN_FIRST (0U-601U) +#define CDN_LAST (0U-699U) + +// Notifications from Open or Save dialog +#define CDN_INITDONE (CDN_FIRST - 0x0000) +#define CDN_SELCHANGE (CDN_FIRST - 0x0001) +#define CDN_FOLDERCHANGE (CDN_FIRST - 0x0002) +#define CDN_SHAREVIOLATION (CDN_FIRST - 0x0003) +#define CDN_HELP (CDN_FIRST - 0x0004) +#define CDN_FILEOK (CDN_FIRST - 0x0005) +#define CDN_TYPECHANGE (CDN_FIRST - 0x0006) +#if (NTDDI_VERSION >= NTDDI_WIN2K) +#define CDN_INCLUDEITEM (CDN_FIRST - 0x0007) +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) + + +#define CDM_FIRST (WM_USER + 100) +#define CDM_LAST (WM_USER + 200) + +// Messages to query information from the Open or Save dialogs + +// lParam = pointer to text buffer that gets filled in +// wParam = max number of characters of the text buffer (including NULL) +// return = < 0 if error; number of characters needed (including NULL) +#define CDM_GETSPEC (CDM_FIRST + 0x0000) +#define CommDlg_OpenSave_GetSpecA(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)(_cbmax), (LPARAM)(LPSTR)(_psz)) +#define CommDlg_OpenSave_GetSpecW(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETSPEC, (WPARAM)(_cbmax), (LPARAM)(LPWSTR)(_psz)) +#ifdef UNICODE +#define CommDlg_OpenSave_GetSpec CommDlg_OpenSave_GetSpecW +#else +#define CommDlg_OpenSave_GetSpec CommDlg_OpenSave_GetSpecA +#endif // !UNICODE + +// lParam = pointer to text buffer that gets filled in +// wParam = max number of characters of the text buffer (including NULL) +// return = < 0 if error; number of characters needed (including NULL) +#define CDM_GETFILEPATH (CDM_FIRST + 0x0001) +#define CommDlg_OpenSave_GetFilePathA(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)(_cbmax), (LPARAM)(LPSTR)(_psz)) +#define CommDlg_OpenSave_GetFilePathW(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFILEPATH, (WPARAM)(_cbmax), (LPARAM)(LPWSTR)(_psz)) +#ifdef UNICODE +#define CommDlg_OpenSave_GetFilePath CommDlg_OpenSave_GetFilePathW +#else +#define CommDlg_OpenSave_GetFilePath CommDlg_OpenSave_GetFilePathA +#endif // !UNICODE + +// lParam = pointer to text buffer that gets filled in +// wParam = max number of characters of the text buffer (including NULL) +// return = < 0 if error; number of characters needed (including NULL) +#define CDM_GETFOLDERPATH (CDM_FIRST + 0x0002) +#define CommDlg_OpenSave_GetFolderPathA(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)(_cbmax), (LPARAM)(LPSTR)(_psz)) +#define CommDlg_OpenSave_GetFolderPathW(_hdlg, _psz, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFOLDERPATH, (WPARAM)(_cbmax), (LPARAM)(LPWSTR)(_psz)) +#ifdef UNICODE +#define CommDlg_OpenSave_GetFolderPath CommDlg_OpenSave_GetFolderPathW +#else +#define CommDlg_OpenSave_GetFolderPath CommDlg_OpenSave_GetFolderPathA +#endif // !UNICODE + +// lParam = pointer to ITEMIDLIST buffer that gets filled in +// wParam = size of the ITEMIDLIST buffer +// return = < 0 if error; length of buffer needed +#define CDM_GETFOLDERIDLIST (CDM_FIRST + 0x0003) +#define CommDlg_OpenSave_GetFolderIDList(_hdlg, _pidl, _cbmax) \ + (int)SNDMSG(_hdlg, CDM_GETFOLDERIDLIST, (WPARAM)(_cbmax), (LPARAM)(LPVOID)(_pidl)) + +// lParam = pointer to a string +// wParam = ID of control to change +// return = not used +#define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004) +#define CommDlg_OpenSave_SetControlText(_hdlg, _id, _text) \ + (void)SNDMSG(_hdlg, CDM_SETCONTROLTEXT, (WPARAM)(_id), (LPARAM)(LPSTR)(_text)) + +// lParam = not used +// wParam = ID of control to change +// return = not used +#define CDM_HIDECONTROL (CDM_FIRST + 0x0005) +#define CommDlg_OpenSave_HideControl(_hdlg, _id) \ + (void)SNDMSG(_hdlg, CDM_HIDECONTROL, (WPARAM)(_id), 0) + +// lParam = pointer to default extension (no dot) +// wParam = not used +// return = not used +#define CDM_SETDEFEXT (CDM_FIRST + 0x0006) +#define CommDlg_OpenSave_SetDefExt(_hdlg, _pszext) \ + (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)(_pszext)) +#endif /* WINVER >= 0x0400 */ + +#ifndef _MAC +typedef struct tagCHOOSECOLORA { + DWORD lStructSize; + HWND hwndOwner; + HWND hInstance; + COLORREF rgbResult; + COLORREF* lpCustColors; + DWORD Flags; + LPARAM lCustData; + LPCCHOOKPROC lpfnHook; + LPCSTR lpTemplateName; +} CHOOSECOLORA, *LPCHOOSECOLORA; +typedef struct tagCHOOSECOLORW { + DWORD lStructSize; + HWND hwndOwner; + HWND hInstance; + COLORREF rgbResult; + COLORREF* lpCustColors; + DWORD Flags; + LPARAM lCustData; + LPCCHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; +} CHOOSECOLORW, *LPCHOOSECOLORW; +#ifdef UNICODE +typedef CHOOSECOLORW CHOOSECOLOR; +typedef LPCHOOSECOLORW LPCHOOSECOLOR; +#else +typedef CHOOSECOLORA CHOOSECOLOR; +typedef LPCHOOSECOLORA LPCHOOSECOLOR; +#endif // UNICODE +#else +typedef struct tagCHOOSECOLORA { + DWORD lStructSize; + HWND hwndOwner; + HWND hInstance; + COLORREF rgbResult; + COLORREF* lpCustColors; + DWORD Flags; + LPARAM lCustData; + LPCCHOOKPROC lpfnHook; + LPCSTR lpTemplateName; + LPEDITMENU lpEditInfo; +} CHOOSECOLORA, *LPCHOOSECOLORA; +typedef struct tagCHOOSECOLORW { + DWORD lStructSize; + HWND hwndOwner; + HWND hInstance; + COLORREF rgbResult; + COLORREF* lpCustColors; + DWORD Flags; + LPARAM lCustData; + LPCCHOOKPROC lpfnHook; + LPCWSTR lpTemplateName; + LPEDITMENU lpEditInfo; +} CHOOSECOLORW, *LPCHOOSECOLORW; +#ifdef UNICODE +typedef CHOOSECOLORW CHOOSECOLOR; +typedef LPCHOOSECOLORW LPCHOOSECOLOR; +#else +typedef CHOOSECOLORA CHOOSECOLOR; +typedef LPCHOOSECOLORA LPCHOOSECOLOR; +#endif // UNICODE +#endif //_MAC + +WINCOMMDLGAPI BOOL APIENTRY ChooseColorA(LPCHOOSECOLORA); +WINCOMMDLGAPI BOOL APIENTRY ChooseColorW(LPCHOOSECOLORW); +#ifdef UNICODE +#define ChooseColor ChooseColorW +#else +#define ChooseColor ChooseColorA +#endif // !UNICODE + +#define CC_RGBINIT 0x00000001 +#define CC_FULLOPEN 0x00000002 +#define CC_PREVENTFULLOPEN 0x00000004 +#define CC_SHOWHELP 0x00000008 +#define CC_ENABLEHOOK 0x00000010 +#define CC_ENABLETEMPLATE 0x00000020 +#define CC_ENABLETEMPLATEHANDLE 0x00000040 +#if(WINVER >= 0x0400) +#define CC_SOLIDCOLOR 0x00000080 +#define CC_ANYCOLOR 0x00000100 +#endif /* WINVER >= 0x0400 */ + +typedef UINT_PTR (CALLBACK *LPFRHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + +typedef struct tagFINDREPLACEA { + DWORD lStructSize; // size of this struct 0x20 + HWND hwndOwner; // handle to owner's window + HINSTANCE hInstance; // instance handle of.EXE that + // contains cust. dlg. template + DWORD Flags; // one or more of the FR_?? + LPSTR lpstrFindWhat; // ptr. to search string + LPSTR lpstrReplaceWith; // ptr. to replace string + WORD wFindWhatLen; // size of find buffer + WORD wReplaceWithLen; // size of replace buffer + LPARAM lCustData; // data passed to hook fn. + LPFRHOOKPROC lpfnHook; // ptr. to hook fn. or NULL + LPCSTR lpTemplateName; // custom template name +} FINDREPLACEA, *LPFINDREPLACEA; +typedef struct tagFINDREPLACEW { + DWORD lStructSize; // size of this struct 0x20 + HWND hwndOwner; // handle to owner's window + HINSTANCE hInstance; // instance handle of.EXE that + // contains cust. dlg. template + DWORD Flags; // one or more of the FR_?? + LPWSTR lpstrFindWhat; // ptr. to search string + LPWSTR lpstrReplaceWith; // ptr. to replace string + WORD wFindWhatLen; // size of find buffer + WORD wReplaceWithLen; // size of replace buffer + LPARAM lCustData; // data passed to hook fn. + LPFRHOOKPROC lpfnHook; // ptr. to hook fn. or NULL + LPCWSTR lpTemplateName; // custom template name +} FINDREPLACEW, *LPFINDREPLACEW; +#ifdef UNICODE +typedef FINDREPLACEW FINDREPLACE; +typedef LPFINDREPLACEW LPFINDREPLACE; +#else +typedef FINDREPLACEA FINDREPLACE; +typedef LPFINDREPLACEA LPFINDREPLACE; +#endif // UNICODE + +#define FR_DOWN 0x00000001 +#define FR_WHOLEWORD 0x00000002 +#define FR_MATCHCASE 0x00000004 +#define FR_FINDNEXT 0x00000008 +#define FR_REPLACE 0x00000010 +#define FR_REPLACEALL 0x00000020 +#define FR_DIALOGTERM 0x00000040 +#define FR_SHOWHELP 0x00000080 +#define FR_ENABLEHOOK 0x00000100 +#define FR_ENABLETEMPLATE 0x00000200 +#define FR_NOUPDOWN 0x00000400 +#define FR_NOMATCHCASE 0x00000800 +#define FR_NOWHOLEWORD 0x00001000 +#define FR_ENABLETEMPLATEHANDLE 0x00002000 +#define FR_HIDEUPDOWN 0x00004000 +#define FR_HIDEMATCHCASE 0x00008000 +#define FR_HIDEWHOLEWORD 0x00010000 +#if (NTDDI_VERSION >= NTDDI_WIN2K) +#define FR_RAW 0x00020000 +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#define FR_SHOWWRAPAROUND 0x00040000 +#define FR_NOWRAPAROUND 0x00080000 +#define FR_WRAPAROUND 0x00100000 +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#define FR_MATCHDIAC 0x20000000 +#define FR_MATCHKASHIDA 0x40000000 +#define FR_MATCHALEFHAMZA 0x80000000 +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) + +WINCOMMDLGAPI HWND APIENTRY FindTextA(LPFINDREPLACEA); +WINCOMMDLGAPI HWND APIENTRY FindTextW(LPFINDREPLACEW); +#ifdef UNICODE +#define FindText FindTextW +#else +#define FindText FindTextA +#endif // !UNICODE +#ifndef _MAC +WINCOMMDLGAPI HWND APIENTRY ReplaceTextA(LPFINDREPLACEA); +WINCOMMDLGAPI HWND APIENTRY ReplaceTextW(LPFINDREPLACEW); +#ifdef UNICODE +#define ReplaceText ReplaceTextW +#else +#define ReplaceText ReplaceTextA +#endif // !UNICODE +#else +WINCOMMDLGAPI HWND APIENTRY AfxReplaceTextA(LPFINDREPLACEA); +WINCOMMDLGAPI HWND APIENTRY AfxReplaceTextW(LPFINDREPLACEW); +#ifdef UNICODE +#define AfxReplaceText AfxReplaceTextW +#else +#define AfxReplaceText AfxReplaceTextA +#endif // !UNICODE +#endif + +#define FRM_FIRST (WM_USER + 100) +#define FRM_LAST (WM_USER + 200) + +// Messages to notify the Find or Replace dialogs of the result of a find or replace operation +// for accessibility purposes + +// lParam = pointer to the FINDREPLACE structure that was sent to the client to begin the operation +// wParam = FR_* flags indicating which operations were completed +// return = not used +#define FRM_SETOPERATIONRESULT (FRM_FIRST + 0x0000) +#define CommDlg_FindReplace_SendResult(_hdlg, _flags, _fr) \ + (void)SNDMSG(_hdlg, FRM_SETOPERATIONRESULT, (WPARAM)(_flags), (LPARAM)(_fr)) + +// lParam = pointer to a string to be used to communicate the result of an operation to a user +// wParam = not used +// return = not used +#define FRM_SETOPERATIONRESULTTEXT (FRM_FIRST + 0x0001) +#define CommDlg_FindReplace_SendCustomResult(_hdlg, _psz) \ + (void)SNDMSG(_hdlg, FRM_SETOPERATIONRESULTTEXT, 0, (LPARAM)(LPSTR)(_psz)) + +typedef UINT_PTR (CALLBACK *LPCFHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + +typedef struct tagCHOOSEFONTA { + DWORD lStructSize; + HWND hwndOwner; // caller's window handle + HDC hDC; // printer DC/IC or NULL + LPLOGFONTA lpLogFont; // ptr. to a LOGFONT struct + INT iPointSize; // 10 * size in points of selected font + DWORD Flags; // enum. type flags + COLORREF rgbColors; // returned text color + LPARAM lCustData; // data passed to hook fn. + LPCFHOOKPROC lpfnHook; // ptr. to hook function + LPCSTR lpTemplateName; // custom template name + HINSTANCE hInstance; // instance handle of.EXE that + // contains cust. dlg. template + LPSTR lpszStyle; // return the style field here + // must be LF_FACESIZE or bigger + WORD nFontType; // same value reported to the EnumFonts + // call back with the extra FONTTYPE_ + // bits added + WORD ___MISSING_ALIGNMENT__; + INT nSizeMin; // minimum pt size allowed & + INT nSizeMax; // max pt size allowed if + // CF_LIMITSIZE is used +} CHOOSEFONTA; +typedef struct tagCHOOSEFONTW { + DWORD lStructSize; + HWND hwndOwner; // caller's window handle + HDC hDC; // printer DC/IC or NULL + LPLOGFONTW lpLogFont; // ptr. to a LOGFONT struct + INT iPointSize; // 10 * size in points of selected font + DWORD Flags; // enum. type flags + COLORREF rgbColors; // returned text color + LPARAM lCustData; // data passed to hook fn. + LPCFHOOKPROC lpfnHook; // ptr. to hook function + LPCWSTR lpTemplateName; // custom template name + HINSTANCE hInstance; // instance handle of.EXE that + // contains cust. dlg. template + LPWSTR lpszStyle; // return the style field here + // must be LF_FACESIZE or bigger + WORD nFontType; // same value reported to the EnumFonts + // call back with the extra FONTTYPE_ + // bits added + WORD ___MISSING_ALIGNMENT__; + INT nSizeMin; // minimum pt size allowed & + INT nSizeMax; // max pt size allowed if + // CF_LIMITSIZE is used +} CHOOSEFONTW; +#ifdef UNICODE +typedef CHOOSEFONTW CHOOSEFONT; +#else +typedef CHOOSEFONTA CHOOSEFONT; +#endif // UNICODE +typedef CHOOSEFONTA *LPCHOOSEFONTA; +typedef CHOOSEFONTW *LPCHOOSEFONTW; +#ifdef UNICODE +typedef LPCHOOSEFONTW LPCHOOSEFONT; +#else +typedef LPCHOOSEFONTA LPCHOOSEFONT; +#endif // UNICODE +typedef const CHOOSEFONTA *PCCHOOSEFONTA; +typedef const CHOOSEFONTW *PCCHOOSEFONTW; +#ifdef UNICODE +typedef CHOOSEFONTW CHOOSEFONT; +typedef PCCHOOSEFONTW PCCHOOSEFONT; +#else +typedef CHOOSEFONTA CHOOSEFONT; +typedef PCCHOOSEFONTA PCCHOOSEFONT; +#endif // UNICODE + +WINCOMMDLGAPI BOOL APIENTRY ChooseFontA(LPCHOOSEFONTA); +WINCOMMDLGAPI BOOL APIENTRY ChooseFontW(LPCHOOSEFONTW); +#ifdef UNICODE +#define ChooseFont ChooseFontW +#else +#define ChooseFont ChooseFontA +#endif // !UNICODE + +#define CF_SCREENFONTS 0x00000001 +#define CF_PRINTERFONTS 0x00000002 +#define CF_BOTH (CF_SCREENFONTS | CF_PRINTERFONTS) +#define CF_SHOWHELP 0x00000004L +#define CF_ENABLEHOOK 0x00000008L +#define CF_ENABLETEMPLATE 0x00000010L +#define CF_ENABLETEMPLATEHANDLE 0x00000020L +#define CF_INITTOLOGFONTSTRUCT 0x00000040L +#define CF_USESTYLE 0x00000080L +#define CF_EFFECTS 0x00000100L +#define CF_APPLY 0x00000200L +#define CF_ANSIONLY 0x00000400L +#if(WINVER >= 0x0400) +#define CF_SCRIPTSONLY CF_ANSIONLY +#endif /* WINVER >= 0x0400 */ +#define CF_NOVECTORFONTS 0x00000800L +#define CF_NOOEMFONTS CF_NOVECTORFONTS +#define CF_NOSIMULATIONS 0x00001000L +#define CF_LIMITSIZE 0x00002000L +#define CF_FIXEDPITCHONLY 0x00004000L +#define CF_WYSIWYG 0x00008000L // must also have CF_SCREENFONTS & CF_PRINTERFONTS +#define CF_FORCEFONTEXIST 0x00010000L +#define CF_SCALABLEONLY 0x00020000L +#define CF_TTONLY 0x00040000L +#define CF_NOFACESEL 0x00080000L +#define CF_NOSTYLESEL 0x00100000L +#define CF_NOSIZESEL 0x00200000L +#if(WINVER >= 0x0400) +#define CF_SELECTSCRIPT 0x00400000L +#define CF_NOSCRIPTSEL 0x00800000L +#define CF_NOVERTFONTS 0x01000000L +#endif /* WINVER >= 0x0400 */ +#if(WINVER >= 0x0601) +#define CF_INACTIVEFONTS 0x02000000L +#endif /* WINVER >= 0x0601 */ + +// these are extra nFontType bits that are added to what is returned to the +// EnumFonts callback routine + +#define SIMULATED_FONTTYPE 0x8000 +#define PRINTER_FONTTYPE 0x4000 +#define SCREEN_FONTTYPE 0x2000 +#define BOLD_FONTTYPE 0x0100 +#define ITALIC_FONTTYPE 0x0200 +#define REGULAR_FONTTYPE 0x0400 + +// EnumFonts callback routine only uses these bits, so we can use the rest + +// #define RASTER_FONTTYPE 0x001 +// #define DEVICE_FONTTYPE 0x002 +// #define TRUETYPE_FONTTYPE 0x004 + +#if (NTDDI_VERSION >= NTDDI_WIN2K) +#define PS_OPENTYPE_FONTTYPE 0x10000 +#define TT_OPENTYPE_FONTTYPE 0x20000 +#define TYPE1_FONTTYPE 0x40000 +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) +#if(WINVER >= 0x0601) +#define SYMBOL_FONTTYPE 0x80000 +#endif /* WINVER >= 0x0601 */ + +#define WM_CHOOSEFONT_GETLOGFONT (WM_USER + 1) +#if (NTDDI_VERSION >= NTDDI_WIN2K) +#define WM_CHOOSEFONT_SETLOGFONT (WM_USER + 101) +#define WM_CHOOSEFONT_SETFLAGS (WM_USER + 102) +#endif // (NTDDI_VERSION >= NTDDI_WIN2K) + +// strings used to obtain unique window message for communication +// between dialog and caller + +#define LBSELCHSTRINGA "commdlg_LBSelChangedNotify" +#define SHAREVISTRINGA "commdlg_ShareViolation" +#define FILEOKSTRINGA "commdlg_FileNameOK" +#define COLOROKSTRINGA "commdlg_ColorOK" +#define SETRGBSTRINGA "commdlg_SetRGBColor" +#define HELPMSGSTRINGA "commdlg_help" +#define FINDMSGSTRINGA "commdlg_FindReplace" + +#define LBSELCHSTRINGW L"commdlg_LBSelChangedNotify" +#define SHAREVISTRINGW L"commdlg_ShareViolation" +#define FILEOKSTRINGW L"commdlg_FileNameOK" +#define COLOROKSTRINGW L"commdlg_ColorOK" +#define SETRGBSTRINGW L"commdlg_SetRGBColor" +#define HELPMSGSTRINGW L"commdlg_help" +#define FINDMSGSTRINGW L"commdlg_FindReplace" + +#ifdef UNICODE +#define LBSELCHSTRING LBSELCHSTRINGW +#define SHAREVISTRING SHAREVISTRINGW +#define FILEOKSTRING FILEOKSTRINGW +#define COLOROKSTRING COLOROKSTRINGW +#define SETRGBSTRING SETRGBSTRINGW +#define HELPMSGSTRING HELPMSGSTRINGW +#define FINDMSGSTRING FINDMSGSTRINGW +#else +#define LBSELCHSTRING LBSELCHSTRINGA +#define SHAREVISTRING SHAREVISTRINGA +#define FILEOKSTRING FILEOKSTRINGA +#define COLOROKSTRING COLOROKSTRINGA +#define SETRGBSTRING SETRGBSTRINGA +#define HELPMSGSTRING HELPMSGSTRINGA +#define FINDMSGSTRING FINDMSGSTRINGA +#endif + +// HIWORD values for lParam of commdlg_LBSelChangeNotify message +#define CD_LBSELNOITEMS -1 +#define CD_LBSELCHANGE 0 +#define CD_LBSELSUB 1 +#define CD_LBSELADD 2 + +typedef UINT_PTR (CALLBACK *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM); +typedef UINT_PTR (CALLBACK *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM); + +typedef struct tagPDA { + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + HDC hDC; + DWORD Flags; + WORD nFromPage; + WORD nToPage; + WORD nMinPage; + WORD nMaxPage; + WORD nCopies; + HINSTANCE hInstance; + LPARAM lCustData; + LPPRINTHOOKPROC lpfnPrintHook; + LPSETUPHOOKPROC lpfnSetupHook; + LPCSTR lpPrintTemplateName; + LPCSTR lpSetupTemplateName; + HGLOBAL hPrintTemplate; + HGLOBAL hSetupTemplate; +} PRINTDLGA, *LPPRINTDLGA; +typedef struct tagPDW { + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + HDC hDC; + DWORD Flags; + WORD nFromPage; + WORD nToPage; + WORD nMinPage; + WORD nMaxPage; + WORD nCopies; + HINSTANCE hInstance; + LPARAM lCustData; + LPPRINTHOOKPROC lpfnPrintHook; + LPSETUPHOOKPROC lpfnSetupHook; + LPCWSTR lpPrintTemplateName; + LPCWSTR lpSetupTemplateName; + HGLOBAL hPrintTemplate; + HGLOBAL hSetupTemplate; +} PRINTDLGW, *LPPRINTDLGW; +#ifdef UNICODE +typedef PRINTDLGW PRINTDLG; +typedef LPPRINTDLGW LPPRINTDLG; +#else +typedef PRINTDLGA PRINTDLG; +typedef LPPRINTDLGA LPPRINTDLG; +#endif // UNICODE + +WINCOMMDLGAPI _Success_(return != FALSE) BOOL APIENTRY PrintDlgA(_Inout_ LPPRINTDLGA pPD); +WINCOMMDLGAPI _Success_(return != FALSE) BOOL APIENTRY PrintDlgW(_Inout_ LPPRINTDLGW pPD); +#ifdef UNICODE +#define PrintDlg PrintDlgW +#else +#define PrintDlg PrintDlgA +#endif // !UNICODE + + +#if(WINVER >= 0x0500) + +#ifdef STDMETHOD + +//------------------------------------------------------------------------- +// +// IPrintDialogCallback Interface +// +// IPrintDialogCallback::InitDone() +// This function is called by PrintDlgEx when the system has finished +// initializing the main page of the print dialog. This function +// should return S_OK if it has processed the action or S_FALSE to let +// PrintDlgEx perform the default action. +// +// IPrintDialogCallback::SelectionChange() +// This function is called by PrintDlgEx when a selection change occurs +// in the list view that displays the currently installed printers. +// This function should return S_OK if it has processed the action or +// S_FALSE to let PrintDlgEx perform the default action. +// +// IPrintDialogCallback::HandleMessage(hDlg, uMsg, wParam, lParam, pResult) +// This function is called by PrintDlgEx when a message is sent to the +// child window of the main page of the print dialog. This function +// should return S_OK if it has processed the action or S_FALSE to let +// PrintDlgEx perform the default action. +// +// IObjectWithSite::SetSite(punkSite) +// IPrintDialogCallback usually paired with IObjectWithSite. +// Provides the IUnknown pointer of the site to QI for the +// IPrintDialogServices interface. +// +//------------------------------------------------------------------------- + +#undef INTERFACE +#define INTERFACE IPrintDialogCallback + +DECLARE_INTERFACE_IID_(IPrintDialogCallback, IUnknown, "5852A2C3-6530-11D1-B6A3-0000F8757BF9") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // *** IPrintDialogCallback methods *** + STDMETHOD(InitDone) (THIS) PURE; + STDMETHOD(SelectionChange) (THIS) PURE; + STDMETHOD(HandleMessage) (THIS_ HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *pResult) PURE; +}; + + +//------------------------------------------------------------------------- +// +// IPrintDialogServices Interface +// +// IPrintDialogServices::GetCurrentDevMode(pDevMode, pcbSize) +// Returns the DEVMODE structure for the currently selected printer. +// +// IPrintDialogServices::GetCurrentPrinterName(pPrinterName, pcchSize) +// Returns the printer name for the currently selected printer. +// +// IPrintDialogServices::GetCurrentPortName(pPortName, pcchSize) +// Returns the port name for the currently selected printer. +// +//------------------------------------------------------------------------- + +#undef INTERFACE +#define INTERFACE IPrintDialogServices + +DECLARE_INTERFACE_IID_(IPrintDialogServices, IUnknown, "509AAEDA-5639-11D1-B6A1-0000F8757BF9") +{ + // *** IUnknown methods *** + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID riid, _Outptr_ void **ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // *** IPrintDialogServices methods *** + STDMETHOD(GetCurrentDevMode) (THIS_ _Inout_ LPDEVMODE pDevMode, _Inout_ UINT *pcbSize) PURE; + STDMETHOD(GetCurrentPrinterName) (THIS_ _Out_writes_opt_(*pcchSize) LPWSTR pPrinterName, _Inout_ UINT *pcchSize) PURE; + STDMETHOD(GetCurrentPortName) (THIS_ _Out_writes_opt_(*pcchSize) LPWSTR pPortName, _Inout_ UINT *pcchSize) PURE; +}; + + +// +// Page Range structure for PrintDlgEx. +// +typedef struct tagPRINTPAGERANGE { + DWORD nFromPage; + DWORD nToPage; +} PRINTPAGERANGE; +typedef PRINTPAGERANGE *LPPRINTPAGERANGE; +typedef const PRINTPAGERANGE *PCPRINTPAGERANGE; + + +// +// PrintDlgEx structure. +// +typedef struct tagPDEXA { + DWORD lStructSize; // size of structure in bytes + HWND hwndOwner; // caller's window handle + HGLOBAL hDevMode; // handle to DevMode + HGLOBAL hDevNames; // handle to DevNames + HDC hDC; // printer DC/IC or NULL + DWORD Flags; // PD_ flags + DWORD Flags2; // reserved + DWORD ExclusionFlags; // items to exclude from driver pages + DWORD nPageRanges; // number of page ranges + DWORD nMaxPageRanges; // max number of page ranges + LPPRINTPAGERANGE lpPageRanges; // array of page ranges + DWORD nMinPage; // min page number + DWORD nMaxPage; // max page number + DWORD nCopies; // number of copies + HINSTANCE hInstance; // instance handle + LPCSTR lpPrintTemplateName; // template name for app specific area + LPUNKNOWN lpCallback; // app callback interface + DWORD nPropertyPages; // number of app property pages in lphPropertyPages + HPROPSHEETPAGE *lphPropertyPages; // array of app property page handles + DWORD nStartPage; // start page id + DWORD dwResultAction; // result action if S_OK is returned +} PRINTDLGEXA, *LPPRINTDLGEXA; +// +// PrintDlgEx structure. +// +typedef struct tagPDEXW { + DWORD lStructSize; // size of structure in bytes + HWND hwndOwner; // caller's window handle + HGLOBAL hDevMode; // handle to DevMode + HGLOBAL hDevNames; // handle to DevNames + HDC hDC; // printer DC/IC or NULL + DWORD Flags; // PD_ flags + DWORD Flags2; // reserved + DWORD ExclusionFlags; // items to exclude from driver pages + DWORD nPageRanges; // number of page ranges + DWORD nMaxPageRanges; // max number of page ranges + LPPRINTPAGERANGE lpPageRanges; // array of page ranges + DWORD nMinPage; // min page number + DWORD nMaxPage; // max page number + DWORD nCopies; // number of copies + HINSTANCE hInstance; // instance handle + LPCWSTR lpPrintTemplateName; // template name for app specific area + LPUNKNOWN lpCallback; // app callback interface + DWORD nPropertyPages; // number of app property pages in lphPropertyPages + HPROPSHEETPAGE *lphPropertyPages; // array of app property page handles + DWORD nStartPage; // start page id + DWORD dwResultAction; // result action if S_OK is returned +} PRINTDLGEXW, *LPPRINTDLGEXW; +#ifdef UNICODE +typedef PRINTDLGEXW PRINTDLGEX; +typedef LPPRINTDLGEXW LPPRINTDLGEX; +#else +typedef PRINTDLGEXA PRINTDLGEX; +typedef LPPRINTDLGEXA LPPRINTDLGEX; +#endif // UNICODE + + + +WINCOMMDLGAPI HRESULT APIENTRY PrintDlgExA(_Inout_ LPPRINTDLGEXA pPD); +WINCOMMDLGAPI HRESULT APIENTRY PrintDlgExW(_Inout_ LPPRINTDLGEXW pPD); +#ifdef UNICODE +#define PrintDlgEx PrintDlgExW +#else +#define PrintDlgEx PrintDlgExA +#endif // !UNICODE + +#endif + +#endif /* WINVER >= 0x0500 */ + +// +// Flags for PrintDlg and PrintDlgEx. +// +#define PD_ALLPAGES 0x00000000 +#define PD_SELECTION 0x00000001 +#define PD_PAGENUMS 0x00000002 +#define PD_NOSELECTION 0x00000004 +#define PD_NOPAGENUMS 0x00000008 +#define PD_COLLATE 0x00000010 +#define PD_PRINTTOFILE 0x00000020 +#define PD_PRINTSETUP 0x00000040 +#define PD_NOWARNING 0x00000080 +#define PD_RETURNDC 0x00000100 +#define PD_RETURNIC 0x00000200 +#define PD_RETURNDEFAULT 0x00000400 +#define PD_SHOWHELP 0x00000800 +#define PD_ENABLEPRINTHOOK 0x00001000 +#define PD_ENABLESETUPHOOK 0x00002000 +#define PD_ENABLEPRINTTEMPLATE 0x00004000 +#define PD_ENABLESETUPTEMPLATE 0x00008000 +#define PD_ENABLEPRINTTEMPLATEHANDLE 0x00010000 +#define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000 +#define PD_USEDEVMODECOPIES 0x00040000 +#define PD_USEDEVMODECOPIESANDCOLLATE 0x00040000 +#define PD_DISABLEPRINTTOFILE 0x00080000 +#define PD_HIDEPRINTTOFILE 0x00100000 +#define PD_NONETWORKBUTTON 0x00200000 +#if(WINVER >= 0x0500) +#define PD_CURRENTPAGE 0x00400000 +#define PD_NOCURRENTPAGE 0x00800000 +#define PD_EXCLUSIONFLAGS 0x01000000 +#define PD_USELARGETEMPLATE 0x10000000 +#endif /* WINVER >= 0x0500 */ + +#if(WINVER >= 0x0500) + +// +// Exclusion flags for PrintDlgEx. +// +#define PD_EXCL_COPIESANDCOLLATE (DM_COPIES | DM_COLLATE) + + +// +// Define the start page for the print dialog when using PrintDlgEx. +// +#define START_PAGE_GENERAL 0xffffffff + + +// +// Result action ids for PrintDlgEx. +// +#define PD_RESULT_CANCEL 0 +#define PD_RESULT_PRINT 1 +#define PD_RESULT_APPLY 2 + + +#endif /* WINVER >= 0x0500 */ + +// +// Device Names structure for PrintDlg and PrintDlgEx. +// +typedef struct tagDEVNAMES { + WORD wDriverOffset; + WORD wDeviceOffset; + WORD wOutputOffset; + WORD wDefault; +} DEVNAMES; +typedef DEVNAMES *LPDEVNAMES; +typedef const DEVNAMES *PCDEVNAMES; + +#define DN_DEFAULTPRN 0x0001 + + +WINCOMMDLGAPI DWORD APIENTRY CommDlgExtendedError(VOID); + +#if(WINVER >= 0x0400) +#define WM_PSD_PAGESETUPDLG (WM_USER ) +#define WM_PSD_FULLPAGERECT (WM_USER+1) +#define WM_PSD_MINMARGINRECT (WM_USER+2) +#define WM_PSD_MARGINRECT (WM_USER+3) +#define WM_PSD_GREEKTEXTRECT (WM_USER+4) +#define WM_PSD_ENVSTAMPRECT (WM_USER+5) +#define WM_PSD_YAFULLPAGERECT (WM_USER+6) + +typedef UINT_PTR (CALLBACK* LPPAGEPAINTHOOK)( HWND, UINT, WPARAM, LPARAM ); +typedef UINT_PTR (CALLBACK* LPPAGESETUPHOOK)( HWND, UINT, WPARAM, LPARAM ); + +typedef struct tagPSDA +{ + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + DWORD Flags; + POINT ptPaperSize; + RECT rtMinMargin; + RECT rtMargin; + HINSTANCE hInstance; + LPARAM lCustData; + LPPAGESETUPHOOK lpfnPageSetupHook; + LPPAGEPAINTHOOK lpfnPagePaintHook; + LPCSTR lpPageSetupTemplateName; + HGLOBAL hPageSetupTemplate; +} PAGESETUPDLGA, * LPPAGESETUPDLGA; +typedef struct tagPSDW +{ + DWORD lStructSize; + HWND hwndOwner; + HGLOBAL hDevMode; + HGLOBAL hDevNames; + DWORD Flags; + POINT ptPaperSize; + RECT rtMinMargin; + RECT rtMargin; + HINSTANCE hInstance; + LPARAM lCustData; + LPPAGESETUPHOOK lpfnPageSetupHook; + LPPAGEPAINTHOOK lpfnPagePaintHook; + LPCWSTR lpPageSetupTemplateName; + HGLOBAL hPageSetupTemplate; +} PAGESETUPDLGW, * LPPAGESETUPDLGW; +#ifdef UNICODE +typedef PAGESETUPDLGW PAGESETUPDLG; +typedef LPPAGESETUPDLGW LPPAGESETUPDLG; +#else +typedef PAGESETUPDLGA PAGESETUPDLG; +typedef LPPAGESETUPDLGA LPPAGESETUPDLG; +#endif // UNICODE + +WINCOMMDLGAPI BOOL APIENTRY PageSetupDlgA( LPPAGESETUPDLGA ); +WINCOMMDLGAPI BOOL APIENTRY PageSetupDlgW( LPPAGESETUPDLGW ); +#ifdef UNICODE +#define PageSetupDlg PageSetupDlgW +#else +#define PageSetupDlg PageSetupDlgA +#endif // !UNICODE + +#define PSD_DEFAULTMINMARGINS 0x00000000 // default (printer's) +#define PSD_INWININIINTLMEASURE 0x00000000 // 1st of 4 possible + +#define PSD_MINMARGINS 0x00000001 // use caller's +#define PSD_MARGINS 0x00000002 // use caller's +#define PSD_INTHOUSANDTHSOFINCHES 0x00000004 // 2nd of 4 possible +#define PSD_INHUNDREDTHSOFMILLIMETERS 0x00000008 // 3rd of 4 possible +#define PSD_DISABLEMARGINS 0x00000010 +#define PSD_DISABLEPRINTER 0x00000020 +#define PSD_NOWARNING 0x00000080 // must be same as PD_* +#define PSD_DISABLEORIENTATION 0x00000100 +#define PSD_RETURNDEFAULT 0x00000400 // must be same as PD_* +#define PSD_DISABLEPAPER 0x00000200 +#define PSD_SHOWHELP 0x00000800 // must be same as PD_* +#define PSD_ENABLEPAGESETUPHOOK 0x00002000 // must be same as PD_* +#define PSD_ENABLEPAGESETUPTEMPLATE 0x00008000 // must be same as PD_* +#define PSD_ENABLEPAGESETUPTEMPLATEHANDLE 0x00020000 // must be same as PD_* +#define PSD_ENABLEPAGEPAINTHOOK 0x00040000 +#define PSD_DISABLEPAGEPAINTING 0x00080000 +#define PSD_NONETWORKBUTTON 0x00200000 // must be same as PD_* +#endif /* WINVER >= 0x0400 */ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + + +#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */ +#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0) +#include "commdlg.inl" +#endif /* ISOLATION_AWARE_ENABLED */ +#endif /* RC */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#if !defined(_WIN64) +#include +#endif +#endif /* GUID_DEFS_ONLY */ +#endif /* !_INC_COMMDLG */ +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/commdlg.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commdlg.inl new file mode 100644 index 0000000000000000000000000000000000000000..c15090e2384277660806f06c327e3a5b913f792e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commdlg.inl @@ -0,0 +1,1034 @@ +/* Copyright (c) 2001-2026, Microsoft Corp. All rights reserved. */ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#if defined(__cplusplus) +extern "C" { +#endif + + +#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */ +#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0) +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4191) /* cast */ +#if _MSC_VER >= 1400 +#pragma warning(disable:6101) /* Because there will be success paths where out params are not initialized. */ +#endif +#endif + + +#if !defined(ISOLATION_AWARE_USE_STATIC_LIBRARY) +#define ISOLATION_AWARE_USE_STATIC_LIBRARY 0 +#endif + +#if !defined(ISOLATION_AWARE_BUILD_STATIC_LIBRARY) +#define ISOLATION_AWARE_BUILD_STATIC_LIBRARY 0 +#endif + +#if !defined(ISOLATION_AWARE_INLINE) +#if ISOLATION_AWARE_BUILD_STATIC_LIBRARY +#define ISOLATION_AWARE_INLINE /* nothing */ +#else +#if defined(__cplusplus) +#define ISOLATION_AWARE_INLINE inline +#else +#define ISOLATION_AWARE_INLINE __inline +#endif +#endif +#endif + +#if !ISOLATION_AWARE_USE_STATIC_LIBRARY +FARPROC IsolationAwarePrivatenCv CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY(LPCSTR pszProcName); + +#endif /* ISOLATION_AWARE_USE_STATIC_LIBRARY */ +BOOL IsolationAwarePrivatenCv IsolationAwareGetOpenFileNameA(LPOPENFILENAMEA unnamed1); +BOOL IsolationAwarePrivatenCv IsolationAwareGetOpenFileNameW(LPOPENFILENAMEW unnamed1); +BOOL IsolationAwarePrivatenCv IsolationAwareGetSaveFileNameA(LPOPENFILENAMEA unnamed1); +BOOL IsolationAwarePrivatenCv IsolationAwareGetSaveFileNameW(LPOPENFILENAMEW unnamed1); +short IsolationAwarePrivatenCv IsolationAwareGetFileTitleA(LPCSTR unnamed1,_Out_writes_(cchSize) LPSTR Buf,_In_ WORD cchSize); +short IsolationAwarePrivatenCv IsolationAwareGetFileTitleW(LPCWSTR unnamed1,_Out_writes_(cchSize) LPWSTR Buf,_In_ WORD cchSize); +BOOL IsolationAwarePrivatenCv IsolationAwareChooseColorA(LPCHOOSECOLORA unnamed1); +BOOL IsolationAwarePrivatenCv IsolationAwareChooseColorW(LPCHOOSECOLORW unnamed1); +HWND IsolationAwarePrivatenCv IsolationAwareFindTextA(LPFINDREPLACEA unnamed1); +HWND IsolationAwarePrivatenCv IsolationAwareFindTextW(LPFINDREPLACEW unnamed1); +HWND IsolationAwarePrivatenCv IsolationAwareReplaceTextA(LPFINDREPLACEA unnamed1); +HWND IsolationAwarePrivatenCv IsolationAwareReplaceTextW(LPFINDREPLACEW unnamed1); +BOOL IsolationAwarePrivatenCv IsolationAwareChooseFontA(LPCHOOSEFONTA unnamed1); +BOOL IsolationAwarePrivatenCv IsolationAwareChooseFontW(LPCHOOSEFONTW unnamed1); +_Success_(return != FALSE) BOOL IsolationAwarePrivatenCv IsolationAwarePrintDlgA(_Inout_ LPPRINTDLGA pPD); +_Success_(return != FALSE) BOOL IsolationAwarePrivatenCv IsolationAwarePrintDlgW(_Inout_ LPPRINTDLGW pPD); +#if defined(STDMETHOD) && (WINVER >= 0x0500) +HRESULT IsolationAwarePrivatenCv IsolationAwarePrintDlgExA(_Inout_ LPPRINTDLGEXA pPD); +HRESULT IsolationAwarePrivatenCv IsolationAwarePrintDlgExW(_Inout_ LPPRINTDLGEXW pPD); +#endif /* defined(STDMETHOD) && (WINVER >= 0x0500) */ +DWORD IsolationAwarePrivatenCv IsolationAwareCommDlgExtendedError(void); +BOOL IsolationAwarePrivatenCv IsolationAwarePageSetupDlgA(LPPAGESETUPDLGA unnamed1); +BOOL IsolationAwarePrivatenCv IsolationAwarePageSetupDlgW(LPPAGESETUPDLGW unnamed1); + +_Post_satisfies_(FAILED(return)) +ISOLATION_AWARE_INLINE HRESULT CommdlgIsolationAwarePrivateJVaQPGbueRfhYg(void) +{ + DWORD dwLastError = GetLastError(); + if (dwLastError == NO_ERROR) + dwLastError = ERROR_INTERNAL_ERROR; + return HRESULT_FROM_WIN32(dwLastError); +} + +#if defined(UNICODE) + +#define IsolationAwareChooseColor IsolationAwareChooseColorW +#define IsolationAwareChooseFont IsolationAwareChooseFontW +#define IsolationAwareFindText IsolationAwareFindTextW +#define IsolationAwareGetFileTitle IsolationAwareGetFileTitleW +#define IsolationAwareGetOpenFileName IsolationAwareGetOpenFileNameW +#define IsolationAwareGetSaveFileName IsolationAwareGetSaveFileNameW +#define IsolationAwarePageSetupDlg IsolationAwarePageSetupDlgW +#define IsolationAwarePrintDlg IsolationAwarePrintDlgW +#define IsolationAwarePrintDlgEx IsolationAwarePrintDlgExW +#define IsolationAwareReplaceText IsolationAwareReplaceTextW + +#else /* UNICODE */ + +#define IsolationAwareChooseColor IsolationAwareChooseColorA +#define IsolationAwareChooseFont IsolationAwareChooseFontA +#define IsolationAwareFindText IsolationAwareFindTextA +#define IsolationAwareGetFileTitle IsolationAwareGetFileTitleA +#define IsolationAwareGetOpenFileName IsolationAwareGetOpenFileNameA +#define IsolationAwareGetSaveFileName IsolationAwareGetSaveFileNameA +#define IsolationAwarePageSetupDlg IsolationAwarePageSetupDlgA +#define IsolationAwarePrintDlg IsolationAwarePrintDlgA +#define IsolationAwarePrintDlgEx IsolationAwarePrintDlgExA +#define IsolationAwareReplaceText IsolationAwareReplaceTextA + +#endif /* UNICODE */ + +#if !ISOLATION_AWARE_USE_STATIC_LIBRARY +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareGetOpenFileNameA(LPOPENFILENAMEA unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(LPOPENFILENAMEA unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("GetOpenFileNameA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareGetOpenFileNameW(LPOPENFILENAMEW unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(LPOPENFILENAMEW unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("GetOpenFileNameW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareGetSaveFileNameA(LPOPENFILENAMEA unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(LPOPENFILENAMEA unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("GetSaveFileNameA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareGetSaveFileNameW(LPOPENFILENAMEW unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(LPOPENFILENAMEW unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("GetSaveFileNameW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE short IsolationAwarePrivatenCv IsolationAwareGetFileTitleA(LPCSTR unnamed1,_Out_writes_(cchSize) LPSTR Buf,_In_ WORD cchSize) +{ + short nResult = -1; + typedef short (WINAPI* PFN)(LPCSTR unnamed1,_Out_writes_(cchSize) LPSTR Buf,_In_ WORD cchSize); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("GetFileTitleA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(unnamed1,Buf,cchSize); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == -1); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE short IsolationAwarePrivatenCv IsolationAwareGetFileTitleW(LPCWSTR unnamed1,_Out_writes_(cchSize) LPWSTR Buf,_In_ WORD cchSize) +{ + short nResult = -1; + typedef short (WINAPI* PFN)(LPCWSTR unnamed1,_Out_writes_(cchSize) LPWSTR Buf,_In_ WORD cchSize); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("GetFileTitleW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(unnamed1,Buf,cchSize); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == -1); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareChooseColorA(LPCHOOSECOLORA unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(LPCHOOSECOLORA unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("ChooseColorA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareChooseColorW(LPCHOOSECOLORW unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(LPCHOOSECOLORW unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("ChooseColorW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE HWND IsolationAwarePrivatenCv IsolationAwareFindTextA(LPFINDREPLACEA unnamed1) +{ + HWND windowResult = NULL; + typedef HWND (WINAPI* PFN)(LPFINDREPLACEA unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return windowResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("FindTextA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + windowResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (windowResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return windowResult; +} + +ISOLATION_AWARE_INLINE HWND IsolationAwarePrivatenCv IsolationAwareFindTextW(LPFINDREPLACEW unnamed1) +{ + HWND windowResult = NULL; + typedef HWND (WINAPI* PFN)(LPFINDREPLACEW unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return windowResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("FindTextW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + windowResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (windowResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return windowResult; +} + +ISOLATION_AWARE_INLINE HWND IsolationAwarePrivatenCv IsolationAwareReplaceTextA(LPFINDREPLACEA unnamed1) +{ + HWND windowResult = NULL; + typedef HWND (WINAPI* PFN)(LPFINDREPLACEA unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return windowResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("ReplaceTextA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + windowResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (windowResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return windowResult; +} + +ISOLATION_AWARE_INLINE HWND IsolationAwarePrivatenCv IsolationAwareReplaceTextW(LPFINDREPLACEW unnamed1) +{ + HWND windowResult = NULL; + typedef HWND (WINAPI* PFN)(LPFINDREPLACEW unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return windowResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("ReplaceTextW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + windowResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (windowResult == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return windowResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareChooseFontA(LPCHOOSEFONTA unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(LPCHOOSEFONTA unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("ChooseFontA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareChooseFontW(LPCHOOSEFONTW unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(LPCHOOSEFONTW unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("ChooseFontW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +_Success_(return != FALSE) ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwarePrintDlgA(_Inout_ LPPRINTDLGA pPD) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ LPPRINTDLGA pPD); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("PrintDlgA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(pPD); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +_Success_(return != FALSE) ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwarePrintDlgW(_Inout_ LPPRINTDLGW pPD) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ LPPRINTDLGW pPD); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("PrintDlgW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(pPD); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +#if defined(STDMETHOD) && (WINVER >= 0x0500) + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwarePrintDlgExA(_Inout_ LPPRINTDLGEXA pPD) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(_Inout_ LPPRINTDLGEXA pPD); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return CommdlgIsolationAwarePrivateJVaQPGbueRfhYg(); + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("PrintDlgExA"); + if (__IsolationAware_pfn == NULL) + { + result = CommdlgIsolationAwarePrivateJVaQPGbueRfhYg(); + __leave; + } + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(pPD); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return result; +} + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwarePrintDlgExW(_Inout_ LPPRINTDLGEXW pPD) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(_Inout_ LPPRINTDLGEXW pPD); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return CommdlgIsolationAwarePrivateJVaQPGbueRfhYg(); + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("PrintDlgExW"); + if (__IsolationAware_pfn == NULL) + { + result = CommdlgIsolationAwarePrivateJVaQPGbueRfhYg(); + __leave; + } + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(pPD); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + } + return result; +} + +#endif /* defined(STDMETHOD) && (WINVER >= 0x0500) */ + +ISOLATION_AWARE_INLINE DWORD IsolationAwarePrivatenCv IsolationAwareCommDlgExtendedError(void) +{ + DWORD nResult = 0 ; + typedef DWORD (WINAPI* PFN)(void); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return nResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("CommDlgExtendedError"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (nResult == 0 ); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return nResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwarePageSetupDlgA(LPPAGESETUPDLGA unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(LPPAGESETUPDLGA unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("PageSetupDlgA"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwarePageSetupDlgW(LPPAGESETUPDLGW unnamed1) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(LPPAGESETUPDLGW unnamed1); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY("PageSetupDlgW"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(unnamed1); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE FARPROC IsolationAwarePrivatenCv CommdlgIsolationAwarePrivatetRgCebPnQQeRff_pbZQYTQP_QYY(LPCSTR pszProcName) +/* This function is shared by the other stubs in this header. */ +{ + FARPROC proc = NULL; + static HMODULE s_module; + BOOL fActivateActCtxSuccess = FALSE; + ULONG_PTR ulpCookie = 0; +#ifndef _M_CEE_PURE + const static IsolationAwarePrivatepBAFGnAG_zBqHyr_vAsB + c = { IsolationAwarePrivatezlybNQyVOeNelJ, L"Comdlg32.dll" +#ifdef _M_IX86 + , IsolationAwarePrivatezlybNQyVOeNeln, "Comdlg32.dll" +#endif + }; +#else + static IsolationAwarePrivatepBAFGnAG_zBqHyr_vAsB c; + c.WinbaseIsolationAwarePrivateybNQJ = IsolationAwarePrivatezlybNQyVOeNelJ; + c.WinbaseIsolationAwarePrivateANZRJ = L"Comdlg32.dll"; +#ifdef _M_IX86 + c.WinbaseIsolationAwarePrivateybNQn = IsolationAwarePrivatezlybNQyVOeNeln; + c.WinbaseIsolationAwarePrivateANZRn = "Comdlg32.dll"; +#endif +#endif + static IsolationAwarePrivatezHGnoyr_zBqHyr_vAsB m; + + __try + { + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + fActivateActCtxSuccess = IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + __leave; + } + proc = IsolationAwarePrivatezltRgCebPnQQeRff(&c, &m, pszProcName); + } + __finally + { + if ( + !IsolationAwarePrivateT_SqbjaYRiRY && + fActivateActCtxSuccess) + { + const DWORD dwLastError = (proc == NULL) ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (proc == NULL) + SetLastError(dwLastError); + } + } + return proc; +} + +#endif /* ISOLATION_AWARE_USE_STATIC_LIBRARY */ + +#define ChooseColorA IsolationAwareChooseColorA +#define ChooseColorW IsolationAwareChooseColorW +#define ChooseFontA IsolationAwareChooseFontA +#define ChooseFontW IsolationAwareChooseFontW +#define CommDlgExtendedError IsolationAwareCommDlgExtendedError +#define FindTextA IsolationAwareFindTextA +#define FindTextW IsolationAwareFindTextW +#define GetFileTitleA IsolationAwareGetFileTitleA +#define GetFileTitleW IsolationAwareGetFileTitleW +#define GetOpenFileNameA IsolationAwareGetOpenFileNameA +#define GetOpenFileNameW IsolationAwareGetOpenFileNameW +#define GetSaveFileNameA IsolationAwareGetSaveFileNameA +#define GetSaveFileNameW IsolationAwareGetSaveFileNameW +#define PageSetupDlgA IsolationAwarePageSetupDlgA +#define PageSetupDlgW IsolationAwarePageSetupDlgW +#define PrintDlgA IsolationAwarePrintDlgA +#define PrintDlgExA IsolationAwarePrintDlgExA +#define PrintDlgExW IsolationAwarePrintDlgExW +#define PrintDlgW IsolationAwarePrintDlgW +#define ReplaceTextA IsolationAwareReplaceTextA +#define ReplaceTextW IsolationAwareReplaceTextW +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* ISOLATION_AWARE_ENABLED */ +#endif /* RC */ + + +#if defined(__cplusplus) +} /* __cplusplus */ +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/commoncontrols.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commoncontrols.h new file mode 100644 index 0000000000000000000000000000000000000000..c6cbeedf3100a473f68d8ad6118cb2cb54130da9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commoncontrols.h @@ -0,0 +1,1327 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __commoncontrols_h__ +#define __commoncontrols_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IImageList_FWD_DEFINED__ +#define __IImageList_FWD_DEFINED__ +typedef interface IImageList IImageList; + +#endif /* __IImageList_FWD_DEFINED__ */ + + +#ifndef __IImageList2_FWD_DEFINED__ +#define __IImageList2_FWD_DEFINED__ +typedef interface IImageList2 IImageList2; + +#endif /* __IImageList2_FWD_DEFINED__ */ + + +#ifndef __ImageList_FWD_DEFINED__ +#define __ImageList_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ImageList ImageList; +#else +typedef struct ImageList ImageList; +#endif /* __cplusplus */ + +#endif /* __ImageList_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_commoncontrols_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#ifndef WINCOMMCTRLAPI +#if !defined(_COMCTL32_) && defined(_WIN32) +#define WINCOMMCTRLAPI DECLSPEC_IMPORT +#else +#define WINCOMMCTRLAPI +#endif +#endif // WINCOMMCTRLAPI +#ifdef MIDL_PASS +typedef DWORD RGBQUAD; + +typedef IUnknown *HIMAGELIST; + +typedef struct _IMAGELIST* HIMAGELIST; +typedef struct _IMAGELISTDRAWPARAMS + { + DWORD cbSize; + HIMAGELIST himl; + int i; + HDC hdcDst; + int x; + int y; + int cx; + int cy; + int xBitmap; + int yBitmap; + COLORREF rgbBk; + COLORREF rgbFg; + UINT fStyle; + DWORD dwRop; + DWORD fState; + DWORD Frame; + COLORREF crEffect; + } IMAGELISTDRAWPARAMS; + +typedef IMAGELISTDRAWPARAMS *LPIMAGELISTDRAWPARAMS; + +typedef struct tagIMAGEINFO + { + HBITMAP hbmImage; + HBITMAP hbmMask; + int Unused1; + int Unused2; + RECT rcImage; + } IMAGEINFO; + +typedef IMAGEINFO *LPIMAGEINFO; + +#endif +#if (NTDDI_VERSION >= NTDDI_VISTA) +WINCOMMCTRLAPI HRESULT WINAPI ImageList_CoCreateInstance( + _In_ REFCLSID rclsid, + _In_opt_ const IUnknown *punkOuter, + _In_ REFIID riid, + _Outptr_ void **ppv); +#endif +#define ILIF_ALPHA 0x00000001 +#define ILIF_LOWQUALITY 0x00000002 +#define ILDRF_IMAGELOWQUALITY 0x00000001 +#define ILDRF_OVERLAYLOWQUALITY 0x00000010 + + +extern RPC_IF_HANDLE __MIDL_itf_commoncontrols_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_commoncontrols_0000_0000_v0_0_s_ifspec; + +#ifndef __IImageList_INTERFACE_DEFINED__ +#define __IImageList_INTERFACE_DEFINED__ + +/* interface IImageList */ +/* [object][local][uuid] */ + + +EXTERN_C const IID IID_IImageList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("46EB5926-582E-4017-9FDF-E8998DAA0950") + IImageList : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Add( + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + /* [annotation][unique][in] */ + _In_opt_ HBITMAP hbmMask, + /* [annotation][out] */ + _Out_ int *pi) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReplaceIcon( + int i, + /* [annotation][in] */ + _In_ HICON hicon, + /* [annotation][out] */ + _Out_ int *pi) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetOverlayImage( + int iImage, + int iOverlay) = 0; + + virtual HRESULT STDMETHODCALLTYPE Replace( + int i, + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + /* [annotation][unique][in] */ + _In_opt_ HBITMAP hbmMask) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMasked( + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + COLORREF crMask, + /* [annotation][out] */ + _Out_ int *pi) = 0; + + virtual HRESULT STDMETHODCALLTYPE Draw( + /* [annotation][in] */ + _In_ IMAGELISTDRAWPARAMS *pimldp) = 0; + + virtual HRESULT STDMETHODCALLTYPE Remove( + int i) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIcon( + int i, + UINT flags, + /* [annotation][out] */ + _Out_ HICON *picon) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetImageInfo( + int i, + /* [annotation][out] */ + _Out_ IMAGEINFO *pImageInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE Copy( + int iDst, + /* [annotation][in] */ + _In_ IUnknown *punkSrc, + int iSrc, + UINT uFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE Merge( + int i1, + /* [annotation][in] */ + _In_ IUnknown *punk2, + int i2, + int dx, + int dy, + REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetImageRect( + int i, + /* [annotation][out] */ + _Out_ RECT *prc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIconSize( + /* [annotation][out] */ + _Out_ int *cx, + /* [annotation][out] */ + _Out_ int *cy) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetIconSize( + int cx, + int cy) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetImageCount( + /* [annotation][out] */ + _Out_ int *pi) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetImageCount( + UINT uNewCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBkColor( + COLORREF clrBk, + /* [annotation][out] */ + _Out_ COLORREF *pclr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBkColor( + /* [annotation][out] */ + _Out_ COLORREF *pclr) = 0; + + virtual HRESULT STDMETHODCALLTYPE BeginDrag( + int iTrack, + int dxHotspot, + int dyHotspot) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndDrag( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE DragEnter( + /* [annotation][unique][in] */ + _In_opt_ HWND hwndLock, + int x, + int y) = 0; + + virtual HRESULT STDMETHODCALLTYPE DragLeave( + /* [annotation][unique][in] */ + _In_opt_ HWND hwndLock) = 0; + + virtual HRESULT STDMETHODCALLTYPE DragMove( + int x, + int y) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDragCursorImage( + /* [annotation][in] */ + _In_ IUnknown *punk, + int iDrag, + int dxHotspot, + int dyHotspot) = 0; + + virtual HRESULT STDMETHODCALLTYPE DragShowNolock( + BOOL fShow) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDragImage( + /* [annotation][out] */ + _Out_opt_ POINT *ppt, + /* [annotation][out] */ + _Out_opt_ POINT *pptHotspot, + REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItemFlags( + int i, + /* [annotation][out] */ + _Out_ DWORD *dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOverlayImage( + int iOverlay, + /* [annotation][out] */ + _Out_ int *piIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IImageListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IImageList * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IImageList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IImageList * This); + + DECLSPEC_XFGVIRT(IImageList, Add) + HRESULT ( STDMETHODCALLTYPE *Add )( + IImageList * This, + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + /* [annotation][unique][in] */ + _In_opt_ HBITMAP hbmMask, + /* [annotation][out] */ + _Out_ int *pi); + + DECLSPEC_XFGVIRT(IImageList, ReplaceIcon) + HRESULT ( STDMETHODCALLTYPE *ReplaceIcon )( + IImageList * This, + int i, + /* [annotation][in] */ + _In_ HICON hicon, + /* [annotation][out] */ + _Out_ int *pi); + + DECLSPEC_XFGVIRT(IImageList, SetOverlayImage) + HRESULT ( STDMETHODCALLTYPE *SetOverlayImage )( + IImageList * This, + int iImage, + int iOverlay); + + DECLSPEC_XFGVIRT(IImageList, Replace) + HRESULT ( STDMETHODCALLTYPE *Replace )( + IImageList * This, + int i, + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + /* [annotation][unique][in] */ + _In_opt_ HBITMAP hbmMask); + + DECLSPEC_XFGVIRT(IImageList, AddMasked) + HRESULT ( STDMETHODCALLTYPE *AddMasked )( + IImageList * This, + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + COLORREF crMask, + /* [annotation][out] */ + _Out_ int *pi); + + DECLSPEC_XFGVIRT(IImageList, Draw) + HRESULT ( STDMETHODCALLTYPE *Draw )( + IImageList * This, + /* [annotation][in] */ + _In_ IMAGELISTDRAWPARAMS *pimldp); + + DECLSPEC_XFGVIRT(IImageList, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + IImageList * This, + int i); + + DECLSPEC_XFGVIRT(IImageList, GetIcon) + HRESULT ( STDMETHODCALLTYPE *GetIcon )( + IImageList * This, + int i, + UINT flags, + /* [annotation][out] */ + _Out_ HICON *picon); + + DECLSPEC_XFGVIRT(IImageList, GetImageInfo) + HRESULT ( STDMETHODCALLTYPE *GetImageInfo )( + IImageList * This, + int i, + /* [annotation][out] */ + _Out_ IMAGEINFO *pImageInfo); + + DECLSPEC_XFGVIRT(IImageList, Copy) + HRESULT ( STDMETHODCALLTYPE *Copy )( + IImageList * This, + int iDst, + /* [annotation][in] */ + _In_ IUnknown *punkSrc, + int iSrc, + UINT uFlags); + + DECLSPEC_XFGVIRT(IImageList, Merge) + HRESULT ( STDMETHODCALLTYPE *Merge )( + IImageList * This, + int i1, + /* [annotation][in] */ + _In_ IUnknown *punk2, + int i2, + int dx, + int dy, + REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv); + + DECLSPEC_XFGVIRT(IImageList, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IImageList * This, + REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv); + + DECLSPEC_XFGVIRT(IImageList, GetImageRect) + HRESULT ( STDMETHODCALLTYPE *GetImageRect )( + IImageList * This, + int i, + /* [annotation][out] */ + _Out_ RECT *prc); + + DECLSPEC_XFGVIRT(IImageList, GetIconSize) + HRESULT ( STDMETHODCALLTYPE *GetIconSize )( + IImageList * This, + /* [annotation][out] */ + _Out_ int *cx, + /* [annotation][out] */ + _Out_ int *cy); + + DECLSPEC_XFGVIRT(IImageList, SetIconSize) + HRESULT ( STDMETHODCALLTYPE *SetIconSize )( + IImageList * This, + int cx, + int cy); + + DECLSPEC_XFGVIRT(IImageList, GetImageCount) + HRESULT ( STDMETHODCALLTYPE *GetImageCount )( + IImageList * This, + /* [annotation][out] */ + _Out_ int *pi); + + DECLSPEC_XFGVIRT(IImageList, SetImageCount) + HRESULT ( STDMETHODCALLTYPE *SetImageCount )( + IImageList * This, + UINT uNewCount); + + DECLSPEC_XFGVIRT(IImageList, SetBkColor) + HRESULT ( STDMETHODCALLTYPE *SetBkColor )( + IImageList * This, + COLORREF clrBk, + /* [annotation][out] */ + _Out_ COLORREF *pclr); + + DECLSPEC_XFGVIRT(IImageList, GetBkColor) + HRESULT ( STDMETHODCALLTYPE *GetBkColor )( + IImageList * This, + /* [annotation][out] */ + _Out_ COLORREF *pclr); + + DECLSPEC_XFGVIRT(IImageList, BeginDrag) + HRESULT ( STDMETHODCALLTYPE *BeginDrag )( + IImageList * This, + int iTrack, + int dxHotspot, + int dyHotspot); + + DECLSPEC_XFGVIRT(IImageList, EndDrag) + HRESULT ( STDMETHODCALLTYPE *EndDrag )( + IImageList * This); + + DECLSPEC_XFGVIRT(IImageList, DragEnter) + HRESULT ( STDMETHODCALLTYPE *DragEnter )( + IImageList * This, + /* [annotation][unique][in] */ + _In_opt_ HWND hwndLock, + int x, + int y); + + DECLSPEC_XFGVIRT(IImageList, DragLeave) + HRESULT ( STDMETHODCALLTYPE *DragLeave )( + IImageList * This, + /* [annotation][unique][in] */ + _In_opt_ HWND hwndLock); + + DECLSPEC_XFGVIRT(IImageList, DragMove) + HRESULT ( STDMETHODCALLTYPE *DragMove )( + IImageList * This, + int x, + int y); + + DECLSPEC_XFGVIRT(IImageList, SetDragCursorImage) + HRESULT ( STDMETHODCALLTYPE *SetDragCursorImage )( + IImageList * This, + /* [annotation][in] */ + _In_ IUnknown *punk, + int iDrag, + int dxHotspot, + int dyHotspot); + + DECLSPEC_XFGVIRT(IImageList, DragShowNolock) + HRESULT ( STDMETHODCALLTYPE *DragShowNolock )( + IImageList * This, + BOOL fShow); + + DECLSPEC_XFGVIRT(IImageList, GetDragImage) + HRESULT ( STDMETHODCALLTYPE *GetDragImage )( + IImageList * This, + /* [annotation][out] */ + _Out_opt_ POINT *ppt, + /* [annotation][out] */ + _Out_opt_ POINT *pptHotspot, + REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv); + + DECLSPEC_XFGVIRT(IImageList, GetItemFlags) + HRESULT ( STDMETHODCALLTYPE *GetItemFlags )( + IImageList * This, + int i, + /* [annotation][out] */ + _Out_ DWORD *dwFlags); + + DECLSPEC_XFGVIRT(IImageList, GetOverlayImage) + HRESULT ( STDMETHODCALLTYPE *GetOverlayImage )( + IImageList * This, + int iOverlay, + /* [annotation][out] */ + _Out_ int *piIndex); + + END_INTERFACE + } IImageListVtbl; + + interface IImageList + { + CONST_VTBL struct IImageListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IImageList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IImageList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IImageList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IImageList_Add(This,hbmImage,hbmMask,pi) \ + ( (This)->lpVtbl -> Add(This,hbmImage,hbmMask,pi) ) + +#define IImageList_ReplaceIcon(This,i,hicon,pi) \ + ( (This)->lpVtbl -> ReplaceIcon(This,i,hicon,pi) ) + +#define IImageList_SetOverlayImage(This,iImage,iOverlay) \ + ( (This)->lpVtbl -> SetOverlayImage(This,iImage,iOverlay) ) + +#define IImageList_Replace(This,i,hbmImage,hbmMask) \ + ( (This)->lpVtbl -> Replace(This,i,hbmImage,hbmMask) ) + +#define IImageList_AddMasked(This,hbmImage,crMask,pi) \ + ( (This)->lpVtbl -> AddMasked(This,hbmImage,crMask,pi) ) + +#define IImageList_Draw(This,pimldp) \ + ( (This)->lpVtbl -> Draw(This,pimldp) ) + +#define IImageList_Remove(This,i) \ + ( (This)->lpVtbl -> Remove(This,i) ) + +#define IImageList_GetIcon(This,i,flags,picon) \ + ( (This)->lpVtbl -> GetIcon(This,i,flags,picon) ) + +#define IImageList_GetImageInfo(This,i,pImageInfo) \ + ( (This)->lpVtbl -> GetImageInfo(This,i,pImageInfo) ) + +#define IImageList_Copy(This,iDst,punkSrc,iSrc,uFlags) \ + ( (This)->lpVtbl -> Copy(This,iDst,punkSrc,iSrc,uFlags) ) + +#define IImageList_Merge(This,i1,punk2,i2,dx,dy,riid,ppv) \ + ( (This)->lpVtbl -> Merge(This,i1,punk2,i2,dx,dy,riid,ppv) ) + +#define IImageList_Clone(This,riid,ppv) \ + ( (This)->lpVtbl -> Clone(This,riid,ppv) ) + +#define IImageList_GetImageRect(This,i,prc) \ + ( (This)->lpVtbl -> GetImageRect(This,i,prc) ) + +#define IImageList_GetIconSize(This,cx,cy) \ + ( (This)->lpVtbl -> GetIconSize(This,cx,cy) ) + +#define IImageList_SetIconSize(This,cx,cy) \ + ( (This)->lpVtbl -> SetIconSize(This,cx,cy) ) + +#define IImageList_GetImageCount(This,pi) \ + ( (This)->lpVtbl -> GetImageCount(This,pi) ) + +#define IImageList_SetImageCount(This,uNewCount) \ + ( (This)->lpVtbl -> SetImageCount(This,uNewCount) ) + +#define IImageList_SetBkColor(This,clrBk,pclr) \ + ( (This)->lpVtbl -> SetBkColor(This,clrBk,pclr) ) + +#define IImageList_GetBkColor(This,pclr) \ + ( (This)->lpVtbl -> GetBkColor(This,pclr) ) + +#define IImageList_BeginDrag(This,iTrack,dxHotspot,dyHotspot) \ + ( (This)->lpVtbl -> BeginDrag(This,iTrack,dxHotspot,dyHotspot) ) + +#define IImageList_EndDrag(This) \ + ( (This)->lpVtbl -> EndDrag(This) ) + +#define IImageList_DragEnter(This,hwndLock,x,y) \ + ( (This)->lpVtbl -> DragEnter(This,hwndLock,x,y) ) + +#define IImageList_DragLeave(This,hwndLock) \ + ( (This)->lpVtbl -> DragLeave(This,hwndLock) ) + +#define IImageList_DragMove(This,x,y) \ + ( (This)->lpVtbl -> DragMove(This,x,y) ) + +#define IImageList_SetDragCursorImage(This,punk,iDrag,dxHotspot,dyHotspot) \ + ( (This)->lpVtbl -> SetDragCursorImage(This,punk,iDrag,dxHotspot,dyHotspot) ) + +#define IImageList_DragShowNolock(This,fShow) \ + ( (This)->lpVtbl -> DragShowNolock(This,fShow) ) + +#define IImageList_GetDragImage(This,ppt,pptHotspot,riid,ppv) \ + ( (This)->lpVtbl -> GetDragImage(This,ppt,pptHotspot,riid,ppv) ) + +#define IImageList_GetItemFlags(This,i,dwFlags) \ + ( (This)->lpVtbl -> GetItemFlags(This,i,dwFlags) ) + +#define IImageList_GetOverlayImage(This,iOverlay,piIndex) \ + ( (This)->lpVtbl -> GetOverlayImage(This,iOverlay,piIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IImageList_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_commoncontrols_0000_0001 */ +/* [local] */ + +#define ILR_DEFAULT 0x0000 +#define ILR_HORIZONTAL_LEFT 0x0000 +#define ILR_HORIZONTAL_CENTER 0x0001 +#define ILR_HORIZONTAL_RIGHT 0x0002 +#define ILR_VERTICAL_TOP 0x0000 +#define ILR_VERTICAL_CENTER 0x0010 +#define ILR_VERTICAL_BOTTOM 0x0020 +#define ILR_SCALE_CLIP 0x0000 +#define ILR_SCALE_ASPECTRATIO 0x0100 + + +extern RPC_IF_HANDLE __MIDL_itf_commoncontrols_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_commoncontrols_0000_0001_v0_0_s_ifspec; + +#ifndef __IImageList2_INTERFACE_DEFINED__ +#define __IImageList2_INTERFACE_DEFINED__ + +/* interface IImageList2 */ +/* [object][local][uuid] */ + +#define ILGOS_ALWAYS 0x00000000 +#define ILGOS_FROMSTANDBY 0x00000001 +#define ILFIP_ALWAYS 0x00000000 +#define ILFIP_FROMSTANDBY 0x00000001 +#define ILDI_PURGE 0x00000001 +#define ILDI_STANDBY 0x00000002 +#define ILDI_RESETACCESS 0x00000004 +#define ILDI_QUERYACCESS 0x00000008 +typedef struct tagIMAGELISTSTATS + { + DWORD cbSize; + int cAlloc; + int cUsed; + int cStandby; + } IMAGELISTSTATS; + + +EXTERN_C const IID IID_IImageList2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("192b9d83-50fc-457b-90a0-2b82a8b5dae1") + IImageList2 : public IImageList + { + public: + virtual HRESULT STDMETHODCALLTYPE Resize( + int cxNewIconSize, + int cyNewIconSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalSize( + /* [in] */ int iImage, + /* [in] */ DWORD dwFlags, + /* [annotation][out] */ + _Out_ int *pcx, + /* [annotation][out] */ + _Out_ int *pcy) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetOriginalSize( + /* [in] */ int iImage, + /* [in] */ int cx, + /* [in] */ int cy) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCallback( + /* [annotation][unique][in] */ + _In_opt_ IUnknown *punk) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCallback( + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv) = 0; + + virtual HRESULT STDMETHODCALLTYPE ForceImagePresent( + /* [in] */ int iImage, + DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE DiscardImages( + /* [in] */ int iFirstImage, + /* [in] */ int iLastImage, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE PreloadImages( + /* [annotation][in] */ + _In_ IMAGELISTDRAWPARAMS *pimldp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatistics( + /* [annotation][out][in] */ + _Inout_ IMAGELISTSTATS *pils) = 0; + + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ int cx, + /* [in] */ int cy, + /* [in] */ UINT flags, + /* [in] */ int cInitial, + /* [in] */ int cGrow) = 0; + + virtual HRESULT STDMETHODCALLTYPE Replace2( + /* [in] */ int i, + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + /* [annotation][unique][in] */ + _In_opt_ HBITMAP hbmMask, + /* [annotation][unique][in] */ + _In_opt_ IUnknown *punk, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReplaceFromImageList( + /* [in] */ int i, + /* [annotation][in] */ + _In_ IImageList *pil, + /* [in] */ int iSrc, + /* [annotation][unique][in] */ + _In_opt_ IUnknown *punk, + /* [in] */ DWORD dwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IImageList2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IImageList2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IImageList2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IImageList2 * This); + + DECLSPEC_XFGVIRT(IImageList, Add) + HRESULT ( STDMETHODCALLTYPE *Add )( + IImageList2 * This, + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + /* [annotation][unique][in] */ + _In_opt_ HBITMAP hbmMask, + /* [annotation][out] */ + _Out_ int *pi); + + DECLSPEC_XFGVIRT(IImageList, ReplaceIcon) + HRESULT ( STDMETHODCALLTYPE *ReplaceIcon )( + IImageList2 * This, + int i, + /* [annotation][in] */ + _In_ HICON hicon, + /* [annotation][out] */ + _Out_ int *pi); + + DECLSPEC_XFGVIRT(IImageList, SetOverlayImage) + HRESULT ( STDMETHODCALLTYPE *SetOverlayImage )( + IImageList2 * This, + int iImage, + int iOverlay); + + DECLSPEC_XFGVIRT(IImageList, Replace) + HRESULT ( STDMETHODCALLTYPE *Replace )( + IImageList2 * This, + int i, + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + /* [annotation][unique][in] */ + _In_opt_ HBITMAP hbmMask); + + DECLSPEC_XFGVIRT(IImageList, AddMasked) + HRESULT ( STDMETHODCALLTYPE *AddMasked )( + IImageList2 * This, + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + COLORREF crMask, + /* [annotation][out] */ + _Out_ int *pi); + + DECLSPEC_XFGVIRT(IImageList, Draw) + HRESULT ( STDMETHODCALLTYPE *Draw )( + IImageList2 * This, + /* [annotation][in] */ + _In_ IMAGELISTDRAWPARAMS *pimldp); + + DECLSPEC_XFGVIRT(IImageList, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + IImageList2 * This, + int i); + + DECLSPEC_XFGVIRT(IImageList, GetIcon) + HRESULT ( STDMETHODCALLTYPE *GetIcon )( + IImageList2 * This, + int i, + UINT flags, + /* [annotation][out] */ + _Out_ HICON *picon); + + DECLSPEC_XFGVIRT(IImageList, GetImageInfo) + HRESULT ( STDMETHODCALLTYPE *GetImageInfo )( + IImageList2 * This, + int i, + /* [annotation][out] */ + _Out_ IMAGEINFO *pImageInfo); + + DECLSPEC_XFGVIRT(IImageList, Copy) + HRESULT ( STDMETHODCALLTYPE *Copy )( + IImageList2 * This, + int iDst, + /* [annotation][in] */ + _In_ IUnknown *punkSrc, + int iSrc, + UINT uFlags); + + DECLSPEC_XFGVIRT(IImageList, Merge) + HRESULT ( STDMETHODCALLTYPE *Merge )( + IImageList2 * This, + int i1, + /* [annotation][in] */ + _In_ IUnknown *punk2, + int i2, + int dx, + int dy, + REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv); + + DECLSPEC_XFGVIRT(IImageList, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + IImageList2 * This, + REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv); + + DECLSPEC_XFGVIRT(IImageList, GetImageRect) + HRESULT ( STDMETHODCALLTYPE *GetImageRect )( + IImageList2 * This, + int i, + /* [annotation][out] */ + _Out_ RECT *prc); + + DECLSPEC_XFGVIRT(IImageList, GetIconSize) + HRESULT ( STDMETHODCALLTYPE *GetIconSize )( + IImageList2 * This, + /* [annotation][out] */ + _Out_ int *cx, + /* [annotation][out] */ + _Out_ int *cy); + + DECLSPEC_XFGVIRT(IImageList, SetIconSize) + HRESULT ( STDMETHODCALLTYPE *SetIconSize )( + IImageList2 * This, + int cx, + int cy); + + DECLSPEC_XFGVIRT(IImageList, GetImageCount) + HRESULT ( STDMETHODCALLTYPE *GetImageCount )( + IImageList2 * This, + /* [annotation][out] */ + _Out_ int *pi); + + DECLSPEC_XFGVIRT(IImageList, SetImageCount) + HRESULT ( STDMETHODCALLTYPE *SetImageCount )( + IImageList2 * This, + UINT uNewCount); + + DECLSPEC_XFGVIRT(IImageList, SetBkColor) + HRESULT ( STDMETHODCALLTYPE *SetBkColor )( + IImageList2 * This, + COLORREF clrBk, + /* [annotation][out] */ + _Out_ COLORREF *pclr); + + DECLSPEC_XFGVIRT(IImageList, GetBkColor) + HRESULT ( STDMETHODCALLTYPE *GetBkColor )( + IImageList2 * This, + /* [annotation][out] */ + _Out_ COLORREF *pclr); + + DECLSPEC_XFGVIRT(IImageList, BeginDrag) + HRESULT ( STDMETHODCALLTYPE *BeginDrag )( + IImageList2 * This, + int iTrack, + int dxHotspot, + int dyHotspot); + + DECLSPEC_XFGVIRT(IImageList, EndDrag) + HRESULT ( STDMETHODCALLTYPE *EndDrag )( + IImageList2 * This); + + DECLSPEC_XFGVIRT(IImageList, DragEnter) + HRESULT ( STDMETHODCALLTYPE *DragEnter )( + IImageList2 * This, + /* [annotation][unique][in] */ + _In_opt_ HWND hwndLock, + int x, + int y); + + DECLSPEC_XFGVIRT(IImageList, DragLeave) + HRESULT ( STDMETHODCALLTYPE *DragLeave )( + IImageList2 * This, + /* [annotation][unique][in] */ + _In_opt_ HWND hwndLock); + + DECLSPEC_XFGVIRT(IImageList, DragMove) + HRESULT ( STDMETHODCALLTYPE *DragMove )( + IImageList2 * This, + int x, + int y); + + DECLSPEC_XFGVIRT(IImageList, SetDragCursorImage) + HRESULT ( STDMETHODCALLTYPE *SetDragCursorImage )( + IImageList2 * This, + /* [annotation][in] */ + _In_ IUnknown *punk, + int iDrag, + int dxHotspot, + int dyHotspot); + + DECLSPEC_XFGVIRT(IImageList, DragShowNolock) + HRESULT ( STDMETHODCALLTYPE *DragShowNolock )( + IImageList2 * This, + BOOL fShow); + + DECLSPEC_XFGVIRT(IImageList, GetDragImage) + HRESULT ( STDMETHODCALLTYPE *GetDragImage )( + IImageList2 * This, + /* [annotation][out] */ + _Out_opt_ POINT *ppt, + /* [annotation][out] */ + _Out_opt_ POINT *pptHotspot, + REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv); + + DECLSPEC_XFGVIRT(IImageList, GetItemFlags) + HRESULT ( STDMETHODCALLTYPE *GetItemFlags )( + IImageList2 * This, + int i, + /* [annotation][out] */ + _Out_ DWORD *dwFlags); + + DECLSPEC_XFGVIRT(IImageList, GetOverlayImage) + HRESULT ( STDMETHODCALLTYPE *GetOverlayImage )( + IImageList2 * This, + int iOverlay, + /* [annotation][out] */ + _Out_ int *piIndex); + + DECLSPEC_XFGVIRT(IImageList2, Resize) + HRESULT ( STDMETHODCALLTYPE *Resize )( + IImageList2 * This, + int cxNewIconSize, + int cyNewIconSize); + + DECLSPEC_XFGVIRT(IImageList2, GetOriginalSize) + HRESULT ( STDMETHODCALLTYPE *GetOriginalSize )( + IImageList2 * This, + /* [in] */ int iImage, + /* [in] */ DWORD dwFlags, + /* [annotation][out] */ + _Out_ int *pcx, + /* [annotation][out] */ + _Out_ int *pcy); + + DECLSPEC_XFGVIRT(IImageList2, SetOriginalSize) + HRESULT ( STDMETHODCALLTYPE *SetOriginalSize )( + IImageList2 * This, + /* [in] */ int iImage, + /* [in] */ int cx, + /* [in] */ int cy); + + DECLSPEC_XFGVIRT(IImageList2, SetCallback) + HRESULT ( STDMETHODCALLTYPE *SetCallback )( + IImageList2 * This, + /* [annotation][unique][in] */ + _In_opt_ IUnknown *punk); + + DECLSPEC_XFGVIRT(IImageList2, GetCallback) + HRESULT ( STDMETHODCALLTYPE *GetCallback )( + IImageList2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppv); + + DECLSPEC_XFGVIRT(IImageList2, ForceImagePresent) + HRESULT ( STDMETHODCALLTYPE *ForceImagePresent )( + IImageList2 * This, + /* [in] */ int iImage, + DWORD dwFlags); + + DECLSPEC_XFGVIRT(IImageList2, DiscardImages) + HRESULT ( STDMETHODCALLTYPE *DiscardImages )( + IImageList2 * This, + /* [in] */ int iFirstImage, + /* [in] */ int iLastImage, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IImageList2, PreloadImages) + HRESULT ( STDMETHODCALLTYPE *PreloadImages )( + IImageList2 * This, + /* [annotation][in] */ + _In_ IMAGELISTDRAWPARAMS *pimldp); + + DECLSPEC_XFGVIRT(IImageList2, GetStatistics) + HRESULT ( STDMETHODCALLTYPE *GetStatistics )( + IImageList2 * This, + /* [annotation][out][in] */ + _Inout_ IMAGELISTSTATS *pils); + + DECLSPEC_XFGVIRT(IImageList2, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IImageList2 * This, + /* [in] */ int cx, + /* [in] */ int cy, + /* [in] */ UINT flags, + /* [in] */ int cInitial, + /* [in] */ int cGrow); + + DECLSPEC_XFGVIRT(IImageList2, Replace2) + HRESULT ( STDMETHODCALLTYPE *Replace2 )( + IImageList2 * This, + /* [in] */ int i, + /* [annotation][in] */ + _In_ HBITMAP hbmImage, + /* [annotation][unique][in] */ + _In_opt_ HBITMAP hbmMask, + /* [annotation][unique][in] */ + _In_opt_ IUnknown *punk, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IImageList2, ReplaceFromImageList) + HRESULT ( STDMETHODCALLTYPE *ReplaceFromImageList )( + IImageList2 * This, + /* [in] */ int i, + /* [annotation][in] */ + _In_ IImageList *pil, + /* [in] */ int iSrc, + /* [annotation][unique][in] */ + _In_opt_ IUnknown *punk, + /* [in] */ DWORD dwFlags); + + END_INTERFACE + } IImageList2Vtbl; + + interface IImageList2 + { + CONST_VTBL struct IImageList2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IImageList2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IImageList2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IImageList2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IImageList2_Add(This,hbmImage,hbmMask,pi) \ + ( (This)->lpVtbl -> Add(This,hbmImage,hbmMask,pi) ) + +#define IImageList2_ReplaceIcon(This,i,hicon,pi) \ + ( (This)->lpVtbl -> ReplaceIcon(This,i,hicon,pi) ) + +#define IImageList2_SetOverlayImage(This,iImage,iOverlay) \ + ( (This)->lpVtbl -> SetOverlayImage(This,iImage,iOverlay) ) + +#define IImageList2_Replace(This,i,hbmImage,hbmMask) \ + ( (This)->lpVtbl -> Replace(This,i,hbmImage,hbmMask) ) + +#define IImageList2_AddMasked(This,hbmImage,crMask,pi) \ + ( (This)->lpVtbl -> AddMasked(This,hbmImage,crMask,pi) ) + +#define IImageList2_Draw(This,pimldp) \ + ( (This)->lpVtbl -> Draw(This,pimldp) ) + +#define IImageList2_Remove(This,i) \ + ( (This)->lpVtbl -> Remove(This,i) ) + +#define IImageList2_GetIcon(This,i,flags,picon) \ + ( (This)->lpVtbl -> GetIcon(This,i,flags,picon) ) + +#define IImageList2_GetImageInfo(This,i,pImageInfo) \ + ( (This)->lpVtbl -> GetImageInfo(This,i,pImageInfo) ) + +#define IImageList2_Copy(This,iDst,punkSrc,iSrc,uFlags) \ + ( (This)->lpVtbl -> Copy(This,iDst,punkSrc,iSrc,uFlags) ) + +#define IImageList2_Merge(This,i1,punk2,i2,dx,dy,riid,ppv) \ + ( (This)->lpVtbl -> Merge(This,i1,punk2,i2,dx,dy,riid,ppv) ) + +#define IImageList2_Clone(This,riid,ppv) \ + ( (This)->lpVtbl -> Clone(This,riid,ppv) ) + +#define IImageList2_GetImageRect(This,i,prc) \ + ( (This)->lpVtbl -> GetImageRect(This,i,prc) ) + +#define IImageList2_GetIconSize(This,cx,cy) \ + ( (This)->lpVtbl -> GetIconSize(This,cx,cy) ) + +#define IImageList2_SetIconSize(This,cx,cy) \ + ( (This)->lpVtbl -> SetIconSize(This,cx,cy) ) + +#define IImageList2_GetImageCount(This,pi) \ + ( (This)->lpVtbl -> GetImageCount(This,pi) ) + +#define IImageList2_SetImageCount(This,uNewCount) \ + ( (This)->lpVtbl -> SetImageCount(This,uNewCount) ) + +#define IImageList2_SetBkColor(This,clrBk,pclr) \ + ( (This)->lpVtbl -> SetBkColor(This,clrBk,pclr) ) + +#define IImageList2_GetBkColor(This,pclr) \ + ( (This)->lpVtbl -> GetBkColor(This,pclr) ) + +#define IImageList2_BeginDrag(This,iTrack,dxHotspot,dyHotspot) \ + ( (This)->lpVtbl -> BeginDrag(This,iTrack,dxHotspot,dyHotspot) ) + +#define IImageList2_EndDrag(This) \ + ( (This)->lpVtbl -> EndDrag(This) ) + +#define IImageList2_DragEnter(This,hwndLock,x,y) \ + ( (This)->lpVtbl -> DragEnter(This,hwndLock,x,y) ) + +#define IImageList2_DragLeave(This,hwndLock) \ + ( (This)->lpVtbl -> DragLeave(This,hwndLock) ) + +#define IImageList2_DragMove(This,x,y) \ + ( (This)->lpVtbl -> DragMove(This,x,y) ) + +#define IImageList2_SetDragCursorImage(This,punk,iDrag,dxHotspot,dyHotspot) \ + ( (This)->lpVtbl -> SetDragCursorImage(This,punk,iDrag,dxHotspot,dyHotspot) ) + +#define IImageList2_DragShowNolock(This,fShow) \ + ( (This)->lpVtbl -> DragShowNolock(This,fShow) ) + +#define IImageList2_GetDragImage(This,ppt,pptHotspot,riid,ppv) \ + ( (This)->lpVtbl -> GetDragImage(This,ppt,pptHotspot,riid,ppv) ) + +#define IImageList2_GetItemFlags(This,i,dwFlags) \ + ( (This)->lpVtbl -> GetItemFlags(This,i,dwFlags) ) + +#define IImageList2_GetOverlayImage(This,iOverlay,piIndex) \ + ( (This)->lpVtbl -> GetOverlayImage(This,iOverlay,piIndex) ) + + +#define IImageList2_Resize(This,cxNewIconSize,cyNewIconSize) \ + ( (This)->lpVtbl -> Resize(This,cxNewIconSize,cyNewIconSize) ) + +#define IImageList2_GetOriginalSize(This,iImage,dwFlags,pcx,pcy) \ + ( (This)->lpVtbl -> GetOriginalSize(This,iImage,dwFlags,pcx,pcy) ) + +#define IImageList2_SetOriginalSize(This,iImage,cx,cy) \ + ( (This)->lpVtbl -> SetOriginalSize(This,iImage,cx,cy) ) + +#define IImageList2_SetCallback(This,punk) \ + ( (This)->lpVtbl -> SetCallback(This,punk) ) + +#define IImageList2_GetCallback(This,riid,ppv) \ + ( (This)->lpVtbl -> GetCallback(This,riid,ppv) ) + +#define IImageList2_ForceImagePresent(This,iImage,dwFlags) \ + ( (This)->lpVtbl -> ForceImagePresent(This,iImage,dwFlags) ) + +#define IImageList2_DiscardImages(This,iFirstImage,iLastImage,dwFlags) \ + ( (This)->lpVtbl -> DiscardImages(This,iFirstImage,iLastImage,dwFlags) ) + +#define IImageList2_PreloadImages(This,pimldp) \ + ( (This)->lpVtbl -> PreloadImages(This,pimldp) ) + +#define IImageList2_GetStatistics(This,pils) \ + ( (This)->lpVtbl -> GetStatistics(This,pils) ) + +#define IImageList2_Initialize(This,cx,cy,flags,cInitial,cGrow) \ + ( (This)->lpVtbl -> Initialize(This,cx,cy,flags,cInitial,cGrow) ) + +#define IImageList2_Replace2(This,i,hbmImage,hbmMask,punk,dwFlags) \ + ( (This)->lpVtbl -> Replace2(This,i,hbmImage,hbmMask,punk,dwFlags) ) + +#define IImageList2_ReplaceFromImageList(This,i,pil,iSrc,punk,dwFlags) \ + ( (This)->lpVtbl -> ReplaceFromImageList(This,i,pil,iSrc,punk,dwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IImageList2_INTERFACE_DEFINED__ */ + + + +#ifndef __CommonControlObjects_LIBRARY_DEFINED__ +#define __CommonControlObjects_LIBRARY_DEFINED__ + +/* library CommonControlObjects */ +/* [uuid] */ + + +EXTERN_C const IID LIBID_CommonControlObjects; + +EXTERN_C const CLSID CLSID_ImageList; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7C476BA2-02B1-48f4-8048-B24619DDC058") +ImageList; +#endif +#endif /* __CommonControlObjects_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_commoncontrols_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_commoncontrols_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_commoncontrols_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/commoncontrols.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commoncontrols.idl new file mode 100644 index 0000000000000000000000000000000000000000..10787e66b78f1b2027813efafae8eff1f103b620 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/commoncontrols.idl @@ -0,0 +1,195 @@ +// CommonControls.idl +// +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote("#ifndef WINCOMMCTRLAPI") +cpp_quote("#if !defined(_COMCTL32_) && defined(_WIN32)") +cpp_quote("#define WINCOMMCTRLAPI DECLSPEC_IMPORT") +cpp_quote("#else") +cpp_quote("#define WINCOMMCTRLAPI") +cpp_quote("#endif") +cpp_quote("#endif // WINCOMMCTRLAPI") + +cpp_quote("#ifdef MIDL_PASS") +typedef DWORD RGBQUAD; + +typedef IUnknown* HIMAGELIST; +cpp_quote("typedef struct _IMAGELIST* HIMAGELIST;") + +typedef struct _IMAGELISTDRAWPARAMS +{ + DWORD cbSize; + HIMAGELIST himl; + int i; + HDC hdcDst; + int x; + int y; + int cx; + int cy; + int xBitmap; // x offest from the upperleft of bitmap + int yBitmap; // y offset from the upperleft of bitmap + COLORREF rgbBk; + COLORREF rgbFg; + UINT fStyle; + DWORD dwRop; + DWORD fState; + DWORD Frame; + COLORREF crEffect; +} IMAGELISTDRAWPARAMS; + +typedef IMAGELISTDRAWPARAMS* LPIMAGELISTDRAWPARAMS; +typedef struct tagIMAGEINFO +{ + HBITMAP hbmImage; + HBITMAP hbmMask; + int Unused1; + int Unused2; + RECT rcImage; +} IMAGEINFO; + +typedef IMAGEINFO* LPIMAGEINFO; +cpp_quote("#endif") // MIDL_PASS + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_VISTA)") + +cpp_quote("WINCOMMCTRLAPI HRESULT WINAPI ImageList_CoCreateInstance(") +cpp_quote(" _In_ REFCLSID rclsid,") +cpp_quote(" _In_opt_ const IUnknown *punkOuter,") +cpp_quote(" _In_ REFIID riid,") +cpp_quote(" _Outptr_ void **ppv);") +cpp_quote("#endif") + +// flags returned by GetItemFlags +cpp_quote("#define ILIF_ALPHA 0x00000001") // item has alpha +cpp_quote("#define ILIF_LOWQUALITY 0x00000002") // image is low quality (was generated by a StretchBlt) + +// return values (if SUCCEEDED()) for IImageList::Draw +cpp_quote("#define ILDRF_IMAGELOWQUALITY 0x00000001") // image is low quality +cpp_quote("#define ILDRF_OVERLAYLOWQUALITY 0x00000010") // overlay is low quality + +[ + uuid(46EB5926-582E-4017-9FDF-E8998DAA0950), + local +] +interface IImageList : IUnknown +{ + HRESULT Add([in, annotation("_In_")] HBITMAP hbmImage, [in, unique, annotation("_In_opt_")] HBITMAP hbmMask, [out, annotation("_Out_")] int* pi); + HRESULT ReplaceIcon(int i, [in, annotation("_In_")] HICON hicon, [out, annotation("_Out_")] int* pi); + HRESULT SetOverlayImage(int iImage, int iOverlay); + HRESULT Replace(int i, [in, annotation("_In_")] HBITMAP hbmImage, [in, unique, annotation("_In_opt_")] HBITMAP hbmMask); + HRESULT AddMasked([in, annotation("_In_")] HBITMAP hbmImage, COLORREF crMask, [out, annotation("_Out_")] int* pi); + HRESULT Draw([in, annotation("_In_")] IMAGELISTDRAWPARAMS* pimldp); + HRESULT Remove(int i); + HRESULT GetIcon(int i, UINT flags, [out, annotation("_Out_")] HICON* picon); + HRESULT GetImageInfo(int i, [out, annotation("_Out_")] IMAGEINFO* pImageInfo); + HRESULT Copy(int iDst, [in, annotation("_In_")] IUnknown* punkSrc, int iSrc, UINT uFlags); + HRESULT Merge(int i1, [in, annotation("_In_")] IUnknown* punk2, int i2, int dx, int dy, REFIID riid, [out, iid_is(riid), annotation("_Outptr_")] void** ppv); + HRESULT Clone(REFIID riid, [out, iid_is(riid), annotation("_Outptr_")] void** ppv); + HRESULT GetImageRect(int i, [out, annotation("_Out_")] RECT* prc); + HRESULT GetIconSize([out, annotation("_Out_")] int* cx, [out, annotation("_Out_")] int* cy); + HRESULT SetIconSize(int cx, int cy); + HRESULT GetImageCount([out, annotation("_Out_")] int* pi); + HRESULT SetImageCount(UINT uNewCount); + HRESULT SetBkColor(COLORREF clrBk, [out, annotation("_Out_")] COLORREF* pclr); + HRESULT GetBkColor([out, annotation("_Out_")] COLORREF* pclr); + HRESULT BeginDrag(int iTrack, int dxHotspot, int dyHotspot); + HRESULT EndDrag(); + HRESULT DragEnter([in, unique, annotation("_In_opt_")] HWND hwndLock, int x, int y); + HRESULT DragLeave([in, unique, annotation("_In_opt_")] HWND hwndLock); + HRESULT DragMove(int x, int y); + HRESULT SetDragCursorImage([in, annotation("_In_")] IUnknown* punk, int iDrag, int dxHotspot, int dyHotspot); + HRESULT DragShowNolock(BOOL fShow); + HRESULT GetDragImage([out, annotation("_Out_opt_")] POINT * ppt, [out, annotation("_Out_opt_")] POINT * pptHotspot, REFIID riid, [out, iid_is(riid), annotation("_Outptr_")] void** ppv); + HRESULT GetItemFlags(int i, [out, annotation("_Out_")] DWORD *dwFlags); + HRESULT GetOverlayImage(int iOverlay, [out, annotation("_Out_")] int* piIndex); +}; + + +cpp_quote("#define ILR_DEFAULT 0x0000") + +cpp_quote("#define ILR_HORIZONTAL_LEFT 0x0000") +cpp_quote("#define ILR_HORIZONTAL_CENTER 0x0001") +cpp_quote("#define ILR_HORIZONTAL_RIGHT 0x0002") + +cpp_quote("#define ILR_VERTICAL_TOP 0x0000") +cpp_quote("#define ILR_VERTICAL_CENTER 0x0010") +cpp_quote("#define ILR_VERTICAL_BOTTOM 0x0020") + +cpp_quote("#define ILR_SCALE_CLIP 0x0000") +cpp_quote("#define ILR_SCALE_ASPECTRATIO 0x0100") + + +// New for (_WIN32_IE >= 0x0605) +[ + uuid(192b9d83-50fc-457b-90a0-2b82a8b5dae1), + local +] +interface IImageList2 : IImageList +{ + +// Flags for GetOriginalSize +cpp_quote("#define ILGOS_ALWAYS 0x00000000") // always get the original size (can be slow) +cpp_quote("#define ILGOS_FROMSTANDBY 0x00000001") // only if present or on standby + +// Flags for ForceImagePresent +cpp_quote("#define ILFIP_ALWAYS 0x00000000") // always get the image (can be slow) +cpp_quote("#define ILFIP_FROMSTANDBY 0x00000001") // only if on standby + +// Flags for DiscardImages +// +// ILDI_STANDBY and ILDI_PURGE are mutually exclusive. +// ILDI_RESETACCESS can be combined with either. + +cpp_quote("#define ILDI_PURGE 0x00000001") // discard and purge +cpp_quote("#define ILDI_STANDBY 0x00000002") // discard to standby list + +cpp_quote("#define ILDI_RESETACCESS 0x00000004") // reset "has been accessed" flag +cpp_quote("#define ILDI_QUERYACCESS 0x00000008") // ask whether access flag is set (but do not reset) + + typedef struct tagIMAGELISTSTATS + { + DWORD cbSize; + int cAlloc; // number of images allocated + int cUsed; // number of images in use + int cStandby; // number of standby images + } IMAGELISTSTATS; + + HRESULT Resize(int cxNewIconSize, int cyNewIconSize); + HRESULT GetOriginalSize([in] int iImage, [in] DWORD dwFlags, [out, annotation("_Out_")] int *pcx, [out, annotation("_Out_")] int *pcy); + HRESULT SetOriginalSize([in] int iImage, [in] int cx, [in] int cy); + HRESULT SetCallback([in, unique, annotation("_In_opt_")] IUnknown *punk); + HRESULT GetCallback([in] REFIID riid, [out, iid_is(riid), annotation("_Outptr_")] void** ppv); + HRESULT ForceImagePresent([in] int iImage, DWORD dwFlags); + HRESULT DiscardImages([in] int iFirstImage, [in] int iLastImage, [in] DWORD dwFlags); + HRESULT PreloadImages([in, annotation("_In_")] IMAGELISTDRAWPARAMS* pimldp); + HRESULT GetStatistics([in, out, annotation("_Inout_")] IMAGELISTSTATS *pils); + HRESULT Initialize([in] int cx, [in] int cy, [in] UINT flags, [in] int cInitial, [in] int cGrow); + HRESULT Replace2([in] int i, [in, annotation("_In_")] HBITMAP hbmImage, [in, unique, annotation("_In_opt_")] HBITMAP hbmMask, [in, unique, annotation("_In_opt_")] IUnknown *punk, [in] DWORD dwFlags); + HRESULT ReplaceFromImageList([in] int i, [in, annotation("_In_")] IImageList *pil, [in] int iSrc, [in, unique, annotation("_In_opt_")] IUnknown *punk, [in] DWORD dwFlags); +}; + +[ + uuid(BCADA15B-B428-420c-8D28-023590924C9F) +] +library CommonControlObjects +{ + + [ + uuid(7C476BA2-02B1-48f4-8048-B24619DDC058) // CLSID_ImageList + ] + coclass ImageList + { + interface IImageList; + interface IImageList2; + } +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/compressapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/compressapi.h new file mode 100644 index 0000000000000000000000000000000000000000..c6f8f5b1cc3925bd6500646dc63ea0e4e2f5b543 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/compressapi.h @@ -0,0 +1,179 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + compressapi.h + +Abstract: + + This module exposes the APIs to use the Windows Compression algorithms. + +Environment: + + User mode. + +--*/ + +#include + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +DECLARE_HANDLE(COMPRESSOR_HANDLE); +typedef COMPRESSOR_HANDLE *PCOMPRESSOR_HANDLE; + +typedef COMPRESSOR_HANDLE DECOMPRESSOR_HANDLE; +typedef COMPRESSOR_HANDLE *PDECOMPRESSOR_HANDLE; + +#define COMPRESS_ALGORITHM_INVALID 0 +#define COMPRESS_ALGORITHM_NULL 1 +#define COMPRESS_ALGORITHM_MSZIP 2 +#define COMPRESS_ALGORITHM_XPRESS 3 +#define COMPRESS_ALGORITHM_XPRESS_HUFF 4 +#define COMPRESS_ALGORITHM_LZMS 5 +#define COMPRESS_ALGORITHM_MAX 6 + +#define COMPRESS_RAW (1 << 29) + +typedef PVOID (__cdecl *PFN_COMPRESS_ALLOCATE) ( + _In_ PVOID UserContext, + _In_ SIZE_T Size + ); + +typedef VOID (__cdecl *PFN_COMPRESS_FREE) ( + _In_ PVOID UserContext, + _In_ PVOID Memory + ); + +typedef struct _COMPRESS_ALLOCATION_ROUTINES { + PFN_COMPRESS_ALLOCATE Allocate; + PFN_COMPRESS_FREE Free; + PVOID UserContext; +} COMPRESS_ALLOCATION_ROUTINES, *PCOMPRESS_ALLOCATION_ROUTINES; + +typedef enum { + COMPRESS_INFORMATION_CLASS_INVALID = 0, + COMPRESS_INFORMATION_CLASS_BLOCK_SIZE, + COMPRESS_INFORMATION_CLASS_LEVEL +} COMPRESS_INFORMATION_CLASS; + +// Compression routines + +BOOL +WINAPI +CreateCompressor ( + _In_ DWORD Algorithm, + _In_opt_ PCOMPRESS_ALLOCATION_ROUTINES AllocationRoutines, + _Out_ PCOMPRESSOR_HANDLE CompressorHandle + ); + +BOOL +WINAPI +SetCompressorInformation ( + _In_ COMPRESSOR_HANDLE CompressorHandle, + _In_ COMPRESS_INFORMATION_CLASS CompressInformationClass, + _In_reads_bytes_(CompressInformationSize) LPCVOID CompressInformation, + _In_ SIZE_T CompressInformationSize + ); + +BOOL +WINAPI +QueryCompressorInformation ( + _In_ COMPRESSOR_HANDLE CompressorHandle, + _In_ COMPRESS_INFORMATION_CLASS CompressInformationClass, + _Out_writes_bytes_(CompressInformationSize) PVOID CompressInformation, + _In_ SIZE_T CompressInformationSize + ); + +BOOL +WINAPI +Compress ( + _In_ COMPRESSOR_HANDLE CompressorHandle, + _In_reads_bytes_opt_(UncompressedDataSize) LPCVOID UncompressedData, + _In_ SIZE_T UncompressedDataSize, + _Out_writes_bytes_opt_(CompressedBufferSize) PVOID CompressedBuffer, + _In_ SIZE_T CompressedBufferSize, + _Out_ PSIZE_T CompressedDataSize + ); + +BOOL +WINAPI +ResetCompressor ( + _In_ COMPRESSOR_HANDLE CompressorHandle + ); + +BOOL +WINAPI +CloseCompressor ( + _In_ COMPRESSOR_HANDLE CompressorHandle + ); + +// Decompression routines + +BOOL +WINAPI +CreateDecompressor ( + _In_ DWORD Algorithm, + _In_opt_ PCOMPRESS_ALLOCATION_ROUTINES AllocationRoutines, + _Out_ PDECOMPRESSOR_HANDLE DecompressorHandle + ); + +BOOL +WINAPI +SetDecompressorInformation ( + _In_ DECOMPRESSOR_HANDLE DecompressorHandle, + _In_ COMPRESS_INFORMATION_CLASS CompressInformationClass, + _In_reads_bytes_(CompressInformationSize) LPCVOID CompressInformation, + _In_ SIZE_T CompressInformationSize + ); + +BOOL +WINAPI +QueryDecompressorInformation ( + _In_ DECOMPRESSOR_HANDLE DecompressorHandle, + _In_ COMPRESS_INFORMATION_CLASS CompressInformationClass, + _Out_writes_bytes_(CompressInformationSize) PVOID CompressInformation, + _In_ SIZE_T CompressInformationSize + ); + +BOOL +WINAPI +Decompress ( + _In_ DECOMPRESSOR_HANDLE DecompressorHandle, + _In_reads_bytes_opt_(CompressedDataSize) LPCVOID CompressedData, + _In_ SIZE_T CompressedDataSize, + _Out_writes_bytes_opt_(UncompressedBufferSize) PVOID UncompressedBuffer, + _In_ SIZE_T UncompressedBufferSize, + _Out_opt_ PSIZE_T UncompressedDataSize + ); + +BOOL +WINAPI +ResetDecompressor ( + _In_ DECOMPRESSOR_HANDLE DecompressorHandle + ); + +BOOL +WINAPI +CloseDecompressor ( + _In_ DECOMPRESSOR_HANDLE DecompressorHandle + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/compstui.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/compstui.h new file mode 100644 index 0000000000000000000000000000000000000000..cd5956dd0b773cd9a49a8cedcc813e15953984bf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/compstui.h @@ -0,0 +1,4258 @@ +/*++ + +Copyright (c) 1990-1995 Microsoft Corporation + + +Module Name: + + compstui.h + + +Abstract: + + This module contains global header definition for the COMMON DRIVER UI + + +Author: + +[Environment:] + + NT Windows - Common Property Sheet UI DLL. + + +[Notes:] + + +Revision History: + + +--*/ + +#ifndef _COMPSTUI_ +#define _COMPSTUI_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// disable warnings +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif +#pragma warning(disable:4201) // named type definition in parentheses + +#if (!defined(RC_INVOKED)) + + +// +// For compilers that don't support nameless unions +// + +#ifndef DUMMYUNIONNAME +#ifdef NONAMELESSUNION +#define DUMMYUNIONNAME u +#define DUMMYUNIONNAME2 u2 +#define DUMMYUNIONNAME3 u3 +#define DUMMYUNIONNAME4 u4 +#else +#define DUMMYUNIONNAME +#define DUMMYUNIONNAME2 +#define DUMMYUNIONNAME3 +#define DUMMYUNIONNAME4 +#endif +#endif + +// +// Predefined ID for the TreeView Option Type +// +// + + +#define TVOT_2STATES 0 +#define TVOT_3STATES 1 +#define TVOT_UDARROW 2 +#define TVOT_TRACKBAR 3 +#define TVOT_SCROLLBAR 4 +#define TVOT_LISTBOX 5 +#define TVOT_COMBOBOX 6 +#define TVOT_EDITBOX 7 +#define TVOT_PUSHBUTTON 8 +#define TVOT_CHKBOX 9 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define TVOT_NSTATES_EX 10 +#define TVOT_LAST TVOT_NSTATES_EX +#else +#define TVOT_LAST TVOT_CHKBOX +#endif +#define TVOT_NONE (TVOT_LAST + 1) + +// +// Predefined ID for the TreeView Option Type +// +// +// TVOT_2STATES: +// Count = 2 +// pOptParam[0]=pointer to the State 1 OPTPARAM +// pOptParam[1]=pointer to the State 2 OPTPARAM +// +// BegCtrlID = 2 States Group Box ID +// BegCtrlID+1= 2 States static Text +// BegCtrlID+2= state 1 Radio button ID +// BegCtrlID+3= state 1 icon control ID +// BegCtrlID+4= state 2 Radio button ID +// BegCtrlID+5= state 2 icon control ID +// BegCtrlID+6= Extended Check Box/Push Button control ID +// BegCtrlID+7= Extended Check Box/Push Button Icon control ID +// +// * For TVOT_3STATES, TVOT_3STATES, each of OPTPARAM consisted +// +// Style =Ignored +// pData =Pointer to the string to describe the state +// IconID=Icons resource ID, or common UI standard icon ID +// lParam=Ignored +// +// * OPTITEM's 'Sel' is the selection index range from 0 to 1 +// * On the non-treeview page, this must be a auto radio button +// +// +// TVOT_3STATES: +// Count = 3 +// pOptParam[0]=pointer to the State 1 OPTPARAM +// pOptParam[1]=pointer to the State 2 OPTPARAM +// pOptParam[2]=pointer to the State 3 OPTPARAM +// +// BegCtrlID = 3 States Group Box ID +// BegCtrlID+1= 3 States static Text +// BegCtrlID+2= state 1 Radio button ID +// BegCtrlID+3= state 1 icon control ID +// BegCtrlID+4= state 2 Radio button ID +// BegCtrlID+5= state 2 icon control ID +// BegCtrlID+6= state 3 Radio button ID +// BegCtrlID+7= state 3 icon control ID +// BegCtrlID+8= Extended Check Box/Push Button control ID +// BegCtrlID+9= Extended Check Box/Push Button Icon control ID +// +// * For TVOT_2STATES, TVOT_3STATES, each of OPTPARAM consisted +// +// Style =Ignored +// pData =Pointer to the string to describe the state +// IconID=Icons resource ID, or common UI standard icon ID +// lParam=Ignored +// +// * OPTITEM's 'Sel' is the selection index range from 0 to 1 +// * On the non-treeview page, this must be a auto radio button +// +// ** For TVOT_2STATES, TVOT_3STSATES the 'Sel' field in the OPTITEM has +// following definitions +// +// State 1, Sel = 0 +// State 2, Sel = 1 +// State 3, Sel = 2 +// +// for any selection which based on false/true, no/yes, off/ontrue/false, +// none/select then state 1 (sel=0) must always be the NO, FALSE, OFF or +// NONE type. +// +// TVOT_NSTATES_EX: +// Count = N +// pOptParam[0]=pointer to the first state's OPTPARAM +// pOptParam[1]=pointer to the second state's OPTPARAM +// . +// . +// pOptParam[N-1]=pointer to the Nth state's OPTPARAM +// +// BegCtrlID = N States Group Box ID +// BegCtrlID+1= N States static Text +// BegCtrlID+2= state 1 Radio button ID +// BegCtrlID+3= state 1 icon control ID +// BegCtrlID+4= state 1 combobox +// BegCtrlID+5= state 2 Radio button ID +// BegCtrlID+6= state 2 icon control ID +// BegCtrlID+7= state 2 combobox +// . +// . +// BegCtrlID+[N-1]*3+2= state N Radio button ID +// BegCtrlID+[N-1]*3+3= state N icon control ID +// BegCtrlID+[N-1]*3+4= state N combobox +// BegCtrlID+[N-1]*3+5= description static text +// BegCtrlID+[N-1]*3+6= icon ID for description static text +// BegCtrlID+[N-1]*3+7= Extended Check Box/Push Button control ID +// BegCtrlID+[N-1]*3+8= Extended Check Box/Push Button Icon control ID +// +// * For TVOT_NSTATES_EX, each of OPTPARAM consisted +// +// Style =Ignored +// pData =Pointer to the string to describe the state +// IconID=Icons resource ID, or common UI standard icon ID +// lParam=Pointer to a OPTCOMBO structure +// +// * A OPTCOMBO structure contains a list of items in a combobox. Its +// structure is defined later in this file. +// +// * This option type can be only displayed in a non-treeview page +// +// * OPTITEM's 'Sel' is the selection index range from 0 to Count - 1 +// For TVOT_NSTSATES_EX the 'Sel' field in the OPTITEM has following +// definitions +// +// State 1, Sel = 0 +// State 2, Sel = 1 +// . +// . +// State N, Sel = N - 1 +// +// * In the POPTCOMBO data, each has a Sel field to indicate the current +// selection in the state's combobox. +// +// * For each pListItem(POPTPARAM) structure under POPTCOMBO data, the data +// should be like following +// +// Type = Option parameter types, such as OPTPF_HIDE +// pData = Pointer to the string to describe the state +// IconID = Icons resource ID, or common UI standard icon ID +// lParam = Ignored +// +// * It is possible that only one or two of the three states are available. In this case, +// only the available items will be shown. If there is only one item available, all +// three radio buttons will be hided, the description static text will be shown to +// show the text. +// +// TVOT_UDARROW: +// Count = 2 +// pOptParam[0]=Pointer to the text of postfix and ICONS +// pOptParam[1]=Pointer to the help line text above the control and +// IconID = (SHORT)Low range of the up-down control +// lParam = (SHORT)High range of the up-down control +// +// * Low/High must in range of a 16-bit sign integer +// +// if pData pointed to no help text then common UI automatically +// set the (# - #) as help line +// +// BegCtrlID = udarrow Group Box ID +// BegCtrlID+1= udarrow title static title ID +// BegCtrlID+2= udarrow's editbox ID +// BegCtrlID+3= udarrow icon control ID +// BegCtrlID+4= udarrow postfix static text ID +// BegCtrlID+5= udarrow help static text ID +// BegCtrlID+6= udarrow arrow ID +// BegCtrlID+7= Extended Check Box/Push Button control ID +// BegCtrlID+8= Extended Check Box/Push Button Icon control ID +// +// * OPTITEM's 'Sel' is the selection index between Low/High range +// * Style field in the OPTPARAM is ignored +// +// +// TVOT_TRACKBAR: +// Count = 3 +// pOptParam[0]=Pointer to the text for the selection postfix and ICONS +// pOptParam[1]=Pointer to the and +// IconID = (SHORT)Low range of the trackbar control +// lParam = (SHORT)High range of the trackbar control +// +// * Low/High must in range of a 16-bit sign integer +// +// pOptParam[2]=Pointer to the and +// IconID = 'Sel' multiply factor for display +// lParam = Page Size (increment) +// +// if pData pointed to NULLt then common UI automatically +// set the Low/High range. +// +// BegCtrlID = trackbar Group Box ID +// BegCtrlID+1= trackbar static title ID +// BegCtrlID+2= trackbar(horizontal) ID (static FRAME to define size) +// BegCtrlID+3= trackbar icon control ID +// BegCtrlID+4= trackbar low range text control ID +// BegCtrlID+5= trackbar high range text control ID +// BegCtrlID+6= trackbar postfix ID +// BegCtrlID+7= Extended Check Box/Push Button control ID +// BegCtrlID+8= Extended Check Box/Push Button Icon control ID +// +// * OPTITEM's 'Sel' is the selection index between Low/High range +// * The multiply factor is used to multiply the current select with +// this factor and display it. typically this is one +// * the tick frequency is automatically to set to PageSize increment +// * Style field in the OPTPARAM is ignored +// +// +// TVOT_SCROLLBAR: +// Count = 3 +// pOptParam[0]=Pointer to the text for the selection postfix and ICONS +// pOptParam[1]=Pointer to the and +// IconID = (SHORT)Low range of the scrollbar control +// lParam = (SHORT)High range of the scroll control +// +// * Low/High must in range of a 16-bit sign integer +// +// pOptParam[2]=Pointer to the and +// IconID = 'Sel' multiply factor for display +// lParam = Page Size (increment) +// +// if pData pointed to NULLt then common UI automatically +// set the Low/High range. +// +// +// BegCtrlID = scrollbar(horizontal) group box ID +// BegCtrlID+1= scrollbar(horizontal) static text ID +// BegCtrlID+2= scrollbar(horizontal) ID +// BegCtrlID+3= scrollbar icon control ID +// BegCtrlID+4= scrollbar low range text control ID +// BegCtrlID+5= scrollbar high range text control ID +// BegCtrlID+6= scrollbar postfix control ID +// BegCtrlID+7= Extended Check Box/Push Button control ID +// BegCtrlID+8= Extended Check Box/Push Button Icon control ID +// +// * OPTITEM's 'Sel' is the selection index between Low/High range +// * The multiply factor is used to multiply the current select with +// this factor and display it. typically this is one +// * Style field in the OPTPARAM is ignored +// +// +// +// TVOT_LISTBOX: +// TVOT_COMBOBOX: +// Count = N +// pOptParam[0]=pointer to the first OPTPARAM (pData=string pointer) +// pOptParam[1]=pointer to the second OPTPARAM (pData=string pointer) +// . +// . +// pOptParam[N-1]=pointer to the N item string +// +// BegCtrlID = Listbox/ComboBox group box ID +// BegCtrlID+1= Listbox/ComboBox static title ID +// BegCtrlID+2= Listbox/Combobox ID +// BegCtrlID+3= Listbox/Combobox icon control ID +// BegCtrlID+4= Extended Check Box/Push Button control ID +// BegCtrlID+5= Extended Check Box/Push Button Icon control ID +// +// * for TVOT_LISTBOX, TVOT_COMBOBOX, the field used as +// +// Style =Ignored by the common UI +// pData =Pointer to the name of item +// IconID=Icon resource ID for the item +// lParam=ignored by the common UI +// +// * Only SINGLE selection is supported, to do a multiple selction use +// multiple OPTITEM and create a header for it +// +// * an OTLBCBS_SORT style can be specified in the OPTTYPE's LBCBStyle +// field, and the listbox or combobox will be sorted according to the +// item's string. +// +// * OPTITEM's 'Sel' is the selection index between Low/High range +// +// * for TVOT_LISTBOX, TVOT_COMBOBOX, when it get received the keyboard +// focus then common UI will call callback function (only if +// OPTIF_CALLBACK bit set) with reason of CPSUICB_REASON_LBCB_ACTIVE, +// this give caller a chance to modify following structure flags/pdata +// which associate with the current OPTITEM. The caller's callback +// function can ONLY modify the flags/data specified here. +// +// OPTTYPE pointed by the pOptType from OPTITEM +// +// Style: OTS_LBCB_SORT +// OTS_LBCB_INCL_ITEM_NONE +// +// OPTPARAMs pointed by the pOptParam from the OPTTYPE +// +// Flags: OPTPF_HIDE +// OPTPF_DISABLED +// +// pData: change string name +// +// +// * The TVOT_COMBOBOX typically only used in the tree-view if there is +// only one selection available for that item, when there is only one +// item then dropdown list will not enabled by the common UI +// +// +// +// TVOT_EDITBOX: +// Count = 2 +// pOptParam[0]=Pointer to the text of postfix and ICONS +// pOptParam[1]=Pointer to the help line text above the control and +// IconID = Edit buffer sie in character pointed by pSel +// this is including the NULL terminator. +// lParam = ignored. +// +// BegCtrlID = editBox group Box ID +// BegCtrlID+1= editBox static title ID +// BegCtrlID+2= editbox ID +// BegCtrlID+3= editbox icon control ID +// BegCtrlID+4= editbox postfix ID +// BegCtrlID+5= editbox help ID +// BegCtrlID+6= Extended Check Box/Push Button control ID +// BegCtrlID+7= Extended Check Box/Push Button Icon control ID +// +// * Style field is ignored +// +// * pSel in the OPTITEM is the pointer to the editing string, the pSel +// must pointed to a buffer eqaul or larger than the count of the buffer +// (pOptParam[1]->IconID) size +// +// +// TVOT_PUSHBUTTON: +// Count = 1 +// +// BegCtrlID = push button group box ID +// BegCtrlID+1= push button static text ID (Not used by common UI) +// BegCtrlID+2= push button ID +// BegCtrlID+3= push button icon control ID +// BegCtrlID+4= Extended Check Box/Push Button control ID +// BegCtrlID+5= Extended Check Box/Push Button Icon control ID +// +// +// PUSHBUTTON_TYPE_xxx specified the action and content of pData in the +// pOptParam[0] as describe in the following +// +// PUSHBUTTON_TYPE_DLGPROC +// +// This push button is designed to bring up caller's dialog box +// +// pOptParam[0].pData = Caller's DLGPROC +// pOptParam[0].Style = PUSHBUTTON_TYPE_DLGPROC +// pOptParam[0].IconID = Icon resource ID +// pOptParam[0].lParam = Caller's DIALOG resource template ID +// or handle to the DLGTEMPLATE depends +// on the OPTPF_USE_HDLGTEMPLATE flag +// +// +// The 'lParam' passed to the DLGPROC's WM_INITDIALOG is the +// CPSUICBPARAM structure pointer, and the reason field is set +// to CPSUICB_REASON_DLGPROC. +// +// +// PUSHBUTTON_TYPE_CALLBACK +// +// This push button is designed to have caller process the item +// which cannot accomplished with the dialog box along. +// +// pOptParam[0].pData = CPSUICALLBACK function pointer +// pOptParam[0].Style = PUSHBUTTON_TYPE_CALLBACK +// pOptParam[0].IconID = Icon resource ID +// pOptParam[0].lParam = Not Used; +// +// Durning the callback the Reason field in CPSUICBPARAM will +// set to CPSUICB_REASON_PUSHBUTTON. +// +// ** If pOptParam[0].pData callback function is NULL then common +// UI will call the pfnCallBack pointer set in the +// COMPROPSHEETUI structure if it is not NULL +// +// ** The callback function should put the result of the callback +// in the pSel/Sel of OPTITEM associate with the push button +// +// PUSHBUTTON_TYPE_HTCLRADJ +// +// This push button is designed to bring up halftone color +// adjustment dialog box. +// +// pOptParam[0].pData = pointer to COLORADJUSTMENT structure +// pOptParam[0].Style = PUSHBUTTON_TYPE_HTCLRADJ +// pOptParam[0].IconID = Icon resource ID +// pOptParam[0].lParam = Not Used; +// +// +// PUSHBUTTON_TYPE_HTSETUP +// +// This push button is designed to bring up device halftone +// setup dialog box. +// +// pOptParam[0].pData = pointer to DEVHTADJDATA structure +// pOptParam[0].Style = PUSHBUTTON_TYPE_HTSETUP +// pOptParam[0].IconID = Icon resource ID +// pOptParam[0].lParam = Not Used; +// +// +// * 'Sel' field in the OPTITEM for the PUSHBUTTON is the last returned +// LONG result from the called dialog box or funcitons. The result +// only valid if OPTIF_CHANGEONCE flag is set. The common UI will set +// OPTIF_CHANGEONCE if push button ever pushed. +// +// * Since common UI donot know the meaning of the return value and +// content of the called parameter, it is up to the caller to use +// callback function to determine the returned result. +// +// * When returned from the push button except push botton type +// PUSHBUTTON_TYPE_CALLBACK common ui will call the callback function +// if the OPTIF_CALLBACK flat is set. The callback reason is set to +// CPSUICB_REASON_SEL_CHANGED. +// +// * If the passed in CPSUIF_UPDATE_PERMISSION Flags in the COMPROPSHEETUI +// is clear then the callback function must ONLY display the dialog box +// and not changed any OPTITEM data if OTS_PUSH_ENABLE_ALWAYS +// flag is set in the OPTTYPE +// +// +// TVOT_CHKBOX: +// Count = 1 +// +// pOptparam[0].Style = CHKBOXS_FALSE_TRUE False/True +// CHKBOXS_NO_YES, No/YES +// CHKBOXS_OFF_ON, Off/ON +// CHKBOXS_FALSEPDATA False/pData +// CHKBOXS_NO_PDATA No/pData +// CHKBOXS_OFF_PDATA Off/pData +// CHKBOXS_NONE_PDATA None/pData +// pOptParam[0].pData = Only used if Style is CHKBOXS_NONE_PDATA +// pOptParam[0].IconID = Icon resource ID +// pOptParam[0].lParam = Ignored +// +// +// BegCtrlID = check box group ID +// BegCtrlID+1= Check Box static text (not used by common UI) +// BegCtrlID+2= check box button ID +// BegCtrlID+3= check box icon control ID +// BegCtrlID+4= Extended Check Box/Push Button control ID +// BegCtrlID+5= Extended Check Box/Push Button Icon control ID +// +// +// * BegCtrlID only used if the OPTITEM/OPTTYPE is belong to the the DLGPAGE +// which has non-common UI dialog box template (DlgTemplateID in the DLGPAGE +// is not standard DP_STD_xxx common ui dialog box template). The common +// UI used this ID to managed caller's dialog boxes item's selections and +// initialization. +// +// * for each item, it has group box ID (BegCtrlID) and static text ctronl ID +// (BegCtrlID + 1). The common UI will set the text in one of these two +// control ID in followng seauence. +// +// 1) If group box control ID's window (BegCtrlID) is exist and the +// OPTITEM's flag OPTIF_NO_GROUPBOX_NAME is not set then common UI will +// set the pName from OPTITEM to the group box. +// +// 2) If the group box name is not set and static control ID's window +// (BegCtrlID + 1) is exist then common UI will set the pName from +// OPTITEM to the static text control. +// +// * for TVOT_TRACKBAR and TVOT_SCROLLBAR, if pName in the OPTITEM is set to +// either group box or static text control then common UI will also append +// the current selection position of trackbar or scroll bar to the pName. +// +// * If multiple OPTITEMs using the same POPTPARAM and need different +// BegCtrlID for each control then then a separate OPTTYPE structure should +// be generated but POPTPARAM pointed to the same OPTPARAM[] +// +// * If a BegCtrlID+N is not used then skip that ID in your dialog box +// template +// +// + +#define CHKBOXS_FALSE_TRUE 0 +#define CHKBOXS_NO_YES 1 +#define CHKBOXS_OFF_ON 2 +#define CHKBOXS_FALSE_PDATA 3 +#define CHKBOXS_NO_PDATA 4 +#define CHKBOXS_OFF_PDATA 5 +#define CHKBOXS_NONE_PDATA 6 + + +#define PUSHBUTTON_TYPE_DLGPROC 0 +#define PUSHBUTTON_TYPE_CALLBACK 1 +#define PUSHBUTTON_TYPE_HTCLRADJ 2 +#define PUSHBUTTON_TYPE_HTSETUP 3 + + +#define MAX_RES_STR_CHARS 160 + +// +// Common Printer UI's LPTSTR +// +// All string pointer in common printer UI structures can be either a real +// memory pointer or a string resource ID. These are applied to LPTSTR type. +// +// The LPTSTR is defined to identify that the pointer can be a real string +// pointer or a resource ID (either common printer UI provided ID or caller's +// own resource ID). common UI using following logic to get the final string. +// +// LPTSTR pData; +// +// if ((pData & ~(ULONG_PTR)0xFFFF) != 0) then pData is a NULL terminated +// string pointer +// +// ELSE +// +// (pData & (ULONG_PTR)0xFFFF) = Resource ID +// +// if (Resource ID is within the common UI string resource ID range) +// then it load the string from common UI DLL +// +// ELSE +// +// it load string from caller's resource +// +// +// * You can use MAKEINTRESOURCE(StrResID) to set this field +// +// * The MAX characters loaded by the common UI from the resource is defined +// as MAX_RES_STR_CHARS +// +// * You cannot use LPTSTR as resource ID for the TVOT_EDITBOX style's +// pSel in the OPTITEM, this pointer must be a real buffer pointer +// +// +// +// ICONs +// +// Common UI using two types of Icons, One is 32x32 and the other is 16x16 +// plus if any monochrome icon with 32x32 and 16x16 sizes. +// +// The 16x16 icon when displayed on the screen is using 16x17 pixel space, +// this is ensure that downware adjacent icon is not crowded together. +// +// In common UI, if you need to passed a ICON ID, it can either passed a +// common UI's predefined ID or caller's own ICON resource ID. +// +// +// * You can use to imagedit or any other Window icon editor to create the +// icon, each icon file should have one unique icon resource ID which is +// not overlay with the standard common UI IDI_CPSUI_xxx identifier. For +// each icon file, its should have both 32x32 and 16x16 size icon on +// different display. (ie. monochrome). +// +// Common UI will try to load the correct size of icon from the icon +// resource, but it will stretch them if the size is not found. +// +// + +// +// Flags for the OPTPARAM +// + +#define OPTPF_HIDE 0x01 +#define OPTPF_DISABLED 0x02 +#define OPTPF_ICONID_AS_HICON 0x04 +#define OPTPF_OVERLAY_WARNING_ICON 0x08 +#define OPTPF_OVERLAY_STOP_ICON 0x10 +#define OPTPF_OVERLAY_NO_ICON 0x20 +#define OPTPF_USE_HDLGTEMPLATE 0x40 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define OPTPF_MASK 0x7f +#endif + +typedef struct _OPTPARAM { + WORD cbSize; // size of this structure + BYTE Flags; // OPTPF_xxxx flags + BYTE Style; // style use in this structure + LPTSTR pData; // pointer to the data + ULONG_PTR IconID; // iconID; + LPARAM lParam; // parameter used + ULONG_PTR dwReserved[2]; // reserved dword, must be 0 + } OPTPARAM, *POPTPARAM; + + +// +// OPTPARAM +// +// The OPTPARAM structure is used to describe each slectable item in the +// common UI such as 'letter', 'legal' in the form slection list box +// +// cbSize - size of this structure +// +// Flags - defined as OPTPF_xxxx +// +// OPTPF_HIDE +// +// Specified hide this listed selection item and not +// availabe for user to select. This only available to +// following TVOT_xxx types +// +// TVOT_3STATES +// TVOT_LISTBOX +// TVOT_COMBOBOX +// TVOT_NSTATES_EX +// +// If all the seclection items are OPTPF_HIDE then the +// OPTITEM is automatically hided by the common UI, if +// TVOT_3STATES has 2 states hide then an error is +// returned +// +// +// OPTPF_DISABLED +// +// Specified this listed selection item is disabled and +// not availabe for user to select. This only available +// to following TVOT_xxx types +// +// TVOT_2STATES +// TVOT_3STATES +// TVOT_LISTBOX +// TVOT_COMBOBOX +// TVOT_NSTATES_EX +// +// OPTPF_ICONID_AS_HICON +// +// If this flag is set then IconID DWORD field is treated +// as a handle to the icon rather then the resource ID +// +// +// OPTPF_OVERLAY_WARNING_ICON +// +// If this bit is set then this OPTPARAM item's icon will +// be overlaied by a common UI's IDI_CPSUI_WARNING icon. +// +// +// OPTPF_OVERLAY_STOP_ICON +// +// If this bit is set then this OPTPARAM item's icon will +// be overlaied by a common UI's IDI_CPSUI_STOP icon. +// +// +// OPTPF_OVERLAY_NO_ICON +// +// If this bit is set then this OPTPARAM item's icon will +// be overlaied by a common UI's IDI_CPSUI_NO icon. +// +// +// Style - Style for the OPTPARAM, it depends on the TVOT_xxx type as +// describe below +// +// TVOT_PUSBUTTON +// +// it can be one of PUSHBUTTON_TYPE_xxxx. +// +// other TVOT_xxxx +// +// this fields is not used. +// +// +// pData - Is either a pointer to the item name (string) or it is +// used to describe other data. +// +// * If the pData in the OPTPARAM is supposed to be a static +// pointer to a string and the string is a common UI +// standard resource ID then common UI will check if pData +// is equal to IDS_CPSUI_NOTINSTALLED, if true then +// common UI will overaly a not installed icon on top of +// the OPTPARAM's Icon. This will not applied to the +// TVOT_EDITBOX type since the pData is not a static text +// pointer or a string resource ID. +// +// ** See LPTSTR description above +// +// IconID - This is the icon identifier, which can be a common strandard +// IDI_CPSUI_xxx icon ID, caller's own icon resource ID, or a +// handle to the caller defined icon if OPTPF_ICONID_AS_HICON +// flag is set, in any case if the IconID is zero then it +// indicated no icon. +// +// lParam - Extra data used by the OPTPARAM, it depends on the TVOT_xxx +// type. +// +// dwReserved[]- Reserved DWORDs, must be 0 +// +// + +// +// Flags for the OPTCOMBO +// + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +#define OPTCF_HIDE 0x01 + +#define OPTCF_MASK 0x01 + +typedef struct _OPTCOMBO { + WORD cbSize; + BYTE Flags; + WORD cListItem; + POPTPARAM pListItem; + LONG Sel; + DWORD dwReserved[3]; +} OPTCOMBO, *POPTCOMBO; + +#endif + +// +// OPTCOMBO is to describe data each combobox/listbox item in +// TVOT_NSTATES_EX option type +// +// cbSize - sizeof this structure +// +// Flags - Item flags +// +// OPTCF_HIDE +// +// Specified hide this combobox is not available +// for user to select. +// +// cListItem - Number of the list items +// +// pListItem - Pointer to the first list item +// +// Sel - Current selection for this item, range from 0 to cListItem - 1 +// +// dwReserved - DWORD reserved, must be 0 +// + +// +// Flags for the OPTTYPE +// + +#define OPTTF_TYPE_DISABLED 0x01 +#define OPTTF_NOSPACE_BEFORE_POSTFIX 0x02 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define OPTTF_MASK 0x03 +#endif + +// +// Flags for the OPTTYPE style +// + +#define OTS_LBCB_SORT 0x0001 +#define OTS_LBCB_PROPPAGE_LBUSECB 0x0002 +#define OTS_LBCB_PROPPAGE_CBUSELB 0x0004 +#define OTS_LBCB_INCL_ITEM_NONE 0x0008 +#define OTS_LBCB_NO_ICON16_IN_ITEM 0x0010 +#define OTS_PUSH_INCL_SETUP_TITLE 0x0020 +#define OTS_PUSH_NO_DOT_DOT_DOT 0x0040 +#define OTS_PUSH_ENABLE_ALWAYS 0x0080 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define OTS_MASK 0x00ff +#endif + +typedef struct _OPTTYPE { + WORD cbSize; + BYTE Type; // TVOT_xxxx type of OPTIONS + BYTE Flags; // OPTTF_xxx flags + WORD Count; // Count of pOptParam passed + WORD BegCtrlID; // start of item's group window ID + POPTPARAM pOptParam; // pointer to the OPTPARAM + WORD Style; // option type style as OTS_xxxx + WORD wReserved[3]; // wReserved, must be 0 + ULONG_PTR dwReserved[3]; // DWORD reserved field (must be 0) +} OPTTYPE, *POPTTYPE; + + +// +// OPTTYPE +// +// The OPTTYPE structure is used to describe a set of selection and its +// select method, such as Form/Tray assignment. It has a pointer to a set +// of selection item (OPTPARAM) +// +// +// cbSize - size of this structure +// +// Type - Specified the option type using predefined ID as TVOT_xxxx +// +// Flags - currently only one flag is defined +// +// +// OPTTF_TYPE_DISABLED +// +// The whole OPTTYPE's OPTPARAMs are disabled, and non of +// the selection in the OPTTYPE can be selected +// +// +// OPTTF_NOSPACE_BEFORE_POSTFIX +// +// This bit only valid if the OPTTYPE's pOptParam item +// specified a postfix string as describe in the above +// section. If this flag is set then it asked common UI +// do not add a space character before the postfix string +// when it combine the pName in the OPTITEM and postfix +// string. Typeically this bit is not set for the +// postfix string, but sometime it may be required not to +// add a space character in front of it, such as '%' +// postfix string. +// +// +// Count - Count of item pointed by pOptParam. Some predefined number +// must be set according to the TVOT_XXX description. +// +// BegCtrlID - Only used if the OPTITEM/OPTTYPE is belong to the the DLGPAGE +// which has non-common UI dialog box template (DlgTemplateID +// in the DLGPAGE is not standard DP_STD_xxx common ui dialog +// box template). The common UI used this ID to managed +// caller's dialog boxes item's selections and initialization. +// +// Each OPTITEM has predefined number of window ID which +// associated with that item, the BegCtrlID specified the start +// control window ID. Each control window ID in the OPTITEM +// must have the control ID sequence as describe in the TVOT_xxx +// above. +// +// pOptParam - Pointer to array of OPTPARAM to describe each selectable item +// +// Style - Specified the style of type of control box, certain style +// only apply to centain type of TVOT_xxxx. +// +// OTS_LBCB_xxx only applied to TVOT_LISTBOX, TVOT_COMBOBOX +// OTS_PUSH_xxx only applied to TVOT_PUSHBUTTON +// +// +// OTS_LBCB_SORT +// +// Specified that the listbox or combobox item is sorted +// in ascending order based on the pData string +// +// +// OTS_LBCB_PROPAGE_LBUSECB +// +// Used when Type is TVOT_LISTBOX, if it specified and +// this OPTTYPE also on the non-treeview user defined +// property sheet page dialog then common UI assume +// control is comobobox instead of listbox on the non- +// treeview page +// +// +// OTS_LBCB_PROPAGE_CBUSELB +// +// Used when Type is TVOT_COMBOBOX, if it specified and +// this OPTTYPE also on the non-treeview user defined +// property sheet page dialog then common UI assume +// control is listbox instead of combobox on the non- +// treeview page +// +// +// OTS_LBCB_INCL_ITEM_NONE +// +// when this flag is specified, the common ui will +// automatically add a 'None' selection to the listbox or +// combobox. The 'Sel' will set to -1 if 'none' is +// selection is selected by the user. It will also +// validate the 'Sel' durning the initialization, any +// out of range value will be set to -1 (None). +// +// +// OTS_LBCB_NO_ICON16_IN_ITEM +// +// By default, each listbox, combox will have a small +// icon (16x16) in front of item text. by specified this +// bit, the listbox/combobox will not includes icons +// in the listbox/combobox. +// +// If clear then it specified that in the listbox/combobox +// to have 16x16 Icon added to the front of each item +// +// +// OTS_PUSH_INCL_SETUP_TITLE +// +// If specified for the push button then it automatically +// add the 'Setup' to the end of push botton text. +// +// +// OTS_PUSH_NO_DOT_DOT_DOT +// +// If specified then common UI will not add '...' to the +// end of the pName in the OPTITEM and push button name +// +// +// OTS_PUSH_ENABLE_ALWAYS +// +// This flag specified that even update permissio is not +// allowed, it still let user push the push button, if +// this flag is set then callback function or dialog box +// proc must disable all the control which let user +// modified the content, but just let user view the +// current setting. +// +// +// wReserved[] - Reserved fields, must be 0 +// +// dwReserved[]- Reserved fields, must be 0 +// +// + + +// +// Following are flags for the EXTPUSH +// + + +#define EPF_PUSH_TYPE_DLGPROC 0x0001 +#define EPF_INCL_SETUP_TITLE 0x0002 +#define EPF_NO_DOT_DOT_DOT 0x0004 +#define EPF_ICONID_AS_HICON 0x0008 +#define EPF_OVERLAY_WARNING_ICON 0x0010 +#define EPF_OVERLAY_STOP_ICON 0x0020 +#define EPF_OVERLAY_NO_ICON 0x0040 +#define EPF_USE_HDLGTEMPLATE 0x0080 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define EPF_MASK 0x00ff +#endif + +typedef struct _EXTPUSH { + WORD cbSize; // size of the structure + WORD Flags; // EPCBF_xxx flags + LPTSTR pTitle; // extended push botton title + union { + DLGPROC DlgProc; // pointer to the dialog box proc + FARPROC pfnCallBack; // callback function pointer + } DUMMYUNIONNAME; + ULONG_PTR IconID; // icon to be used + union { + WORD DlgTemplateID; // dialog box template ID + HANDLE hDlgTemplate; // handle to the dialog template + } DUMMYUNIONNAME2; + ULONG_PTR dwReserved[3]; // reserved field, must be 0 + } EXTPUSH, *PEXTPUSH; + +// +// EXTPUSH structure is used to describe the extened push button available +// on OPTITEM/OPTITEM, each OPTTYPE can optional have either one extended check +// box or one extended push button callback. +// +// +// cbSize - size of this structure +// +// Flags - flags for the EXTPUSH as EPF_xxxx +// +// EPF_PUSH_TYPE_DLGPROC +// +// If this bit is set then it specified the extended +// push button is type of DLGPROC and DlgProc and +// DlgTemplateID is valid for common UI to call. +// +// If this bit is clear then it specfied the extended +// push button is the callback style and pfnCallBack +// should be called by the common UI +// +// +// EPF_INCL_SETUP_TITLE +// +// If specified for the extended push button then it +// automatically add the 'Setup' to the end of +// extended push button's title +// +// +// EPF_NO_DOT_DOT_DOT +// +// If specified then common UI will not add '...' to +// the end of the pTitle in the EXTPUSH. +// +// +// EPF_ICONID_AS_HICON +// +// If this flag is set then IconID DWORD field is +// treated as a handle to the icon rather then the +// resource ID. +// +// +// EPF_OVERLAY_WARNING_ICON +// +// If this bit is set then this EXTPUSH's icon will be +// overlaied by a common UI's IDI_CPSUI_WARNING icon. +// +// +// EPF_OVERLAY_STOP_ICON +// +// If this bit is set then this EXTPUSH's icon will be +// overlaied by a common UI's IDI_CPSUI_STOP icon. +// +// +// EPF_OVERLAY_NO_ICON +// +// If this bit is set then this EXTPUSH's icon will be +// overlaied by a common UI's IDI_CPSUI_NO icon. +// +// +// pTitle - Pointed to extended push botton title +// +// ** See LPTSTR description above +// +// DlgProc - Pointer to the DLGPROC function supplied by the caller. +// When user push the button the common UI will call +// DialogBoxParam() with this fucction pointer and passed +// CPSUICBPARAM structure pointer to the WM_INITDIALOG with +// the Reason set to CPSUICB_REASON_EXTPUSH. If this +// filed is NULL then common UI assumed that EXTPUSH is +// disabled (OPTIF_EXT_DISABLED | OPTIF_EXT_HIDE), this +// fields only used if EPF_PUSH_TYPE_DLGPROC flag is set +// +// pfnCallBack - Pointer to CPSUICALLBACK function, this only used if +// EPF_PUSH_TYPE_DLGPROC bit is clear, duringing callback +// it passed the CPSUICBPARAM pointer as parameter +// +// IconID - This is the icon identifier, which can be a common +// strandard IDI_CPSUI_xxx icon ID, caller's own icon +// resource ID, or a handle to the caller defined icon if +// EPF_ICONID_AS_HICON flag is set, in any case if the +// IconID is zero then it indicated no icon. +// +// DlgTemplateID - Specified the ressource ID for the dilaog box. If the +// DlgTemplateID = 0 then common UI will call the DlgProc +// with following parameter. +// +// DlgProc(hDlg, WM_USER, NULL, (LPARAM)pCPSUICBPaam); +// +// hDlgTemplate - Handle to the DLGTEMPLATE which will be use for pop up +// dialog box +// +// wReserved[] - WORD reserved field, must be 0 +// +// dwReserved[] - DWORD reserved field, must be 0 +// +// +// + + +// +// Following are flags for the EXTCHKBOX +// + +#define ECBF_CHECKNAME_AT_FRONT 0x0001 +#define ECBF_CHECKNAME_ONLY_ENABLED 0x0002 +#define ECBF_ICONID_AS_HICON 0x0004 +#define ECBF_OVERLAY_WARNING_ICON 0x0008 +#define ECBF_OVERLAY_ECBICON_IF_CHECKED 0x0010 +#define ECBF_OVERLAY_STOP_ICON 0x0020 +#define ECBF_OVERLAY_NO_ICON 0x0040 +#define ECBF_CHECKNAME_ONLY 0x0080 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define ECBF_MASK 0x00ff +#endif + +typedef struct _EXTCHKBOX { + WORD cbSize; // size of the structure + WORD Flags; // ECBF_xxx flags + LPTSTR pTitle; // extended checkbox title + LPTSTR pSeparator; // pointer to separator string for treeview + LPTSTR pCheckedName; // string to be displayed when checked + ULONG_PTR IconID; // icon to be used + WORD wReserved[4]; // reserved word, must be 0 + ULONG_PTR dwReserved[2]; // reserved field, must be 0 + } EXTCHKBOX, *PEXTCHKBOX; + + +// +// EXTCHKBOX structure is used to describe the extened check box available on +// OPTITEM/OPTITEM, each OPTTYPE can optional have one extended check box. +// When using EXTCHKBOX the selection item can be checked or not checked +// based on user input. +// +// +// cbSize - size of this structure +// +// Flags - flags for the EXTCHKBOX as ECBF_xxxx +// +// ECBF_CHECKNAME_AT_FRONT +// +// This flag specified how to display item's name and its +// checked name in the treeview display. If this flag is +// set then the checked name is display in front of +// separator name, otherwise the checked name is displayed +// after the separator. For Example. +// +// Flag Set: pCheckedName pSeparator SelectName +// Flag Clear: SelectName pSeparator pCheckedName +// +// +// ECBF_CHECKNAME_ONLY_ENABLED +// +// If set then it specified that in the treeview display, +// it will only show the pCheckedName if this extended +// check box is visible and enabled. Some items may not +// desired to display the pCheckedName if the extended +// check box is disabled, such as Copy/Collate checkbox. +// +// +// ECBF_ICONID_AS_HICON +// +// If this flag is set then IconID DWORD field is treated +// as a handle to the icon rather then the resource ID +// +// +// ECBF_OVERLAY_WARNING_ICON +// +// If this bit is set then this EXTCHKBOX's icon will +// be overlaied by a common UI's IDI_CPSUI_WARNING icon. +// +// +// ECBF_OVERLAY_ECBICON_IF_CHECKED +// +// This bit specified to overlay the ExtChkBox's Icon to +// the OPTITEM's icon (or OPTPARAM) if the the extended +// checked box is checked +// +// +// ECBF_OVERLAY_STOP_ICON +// +// If this bit is set then this EXTCHKBOX's icon will +// be overlaied by a common UI's IDI_CPSUI_STOP icon. +// +// +// ECBF_OVERLAY_NO_ICON +// +// If this bit is set then this EXTCHKBOX's icon will +// be overlaied by a common UI's IDI_CPSUI_NO icon. +// +// +// pTitle - Pointed to extended check box title +// +// ** See LPTSTR description above +// +// pSeparator - Pointer to the separator to be used in the treeview +// display or the static title control in the non-treeview +// page, +// +// pCheckedName- Pointed to the name to be displayed in the treeview if item +// is checked. pCheckedName is added according to the +// pSeparator and the ECBF_CHECKNAME_AT_FRONT flags. +// +// * If the pCheckedName is equal to IDS_CPSUI_NOTINSTALLED +// then common UI will automatically overaly a not installed +// icon on top of the extended check box Icon. +// +// ** See LPTSTR description above +// +// IconID - This is the icon identifier, which can be a common strandard +// IDI_CPSUI_xxx icon ID, caller's own icon resource ID, or a +// handle to the caller defined icon if ECBF_ICONID_AS_HICON +// flag is set, in any case if the IconID is zero then it +// indicated no icon. +// +// wReserved[] - WORD reserved field, must be 0 +// +// dwReserved[]- DWORD reserved field, must be 0 +// + + +// +// Following the the Flags for the OPTITEM +// + +#define OPTIF_COLLAPSE 0x00000001L +#define OPTIF_HIDE 0x00000002L +#define OPTIF_CALLBACK 0x00000004L +#define OPTIF_CHANGED 0x00000008L +#define OPTIF_CHANGEONCE 0x00000010L +#define OPTIF_DISABLED 0x00000020L +#define OPTIF_ECB_CHECKED 0x00000040L +#define OPTIF_EXT_HIDE 0x00000080L +#define OPTIF_EXT_DISABLED 0x00000100L +#define OPTIF_SEL_AS_HICON 0x00000200L +#define OPTIF_EXT_IS_EXTPUSH 0x00000400L +#define OPTIF_NO_GROUPBOX_NAME 0x00000800L +#define OPTIF_OVERLAY_WARNING_ICON 0x00001000L +#define OPTIF_OVERLAY_STOP_ICON 0x00002000L +#define OPTIF_OVERLAY_NO_ICON 0x00004000L +#define OPTIF_INITIAL_TVITEM 0x00008000L +#define OPTIF_HAS_POIEXT 0x00010000L + +#define OPTIF_MASK 0x0001ffffL + + +#define DMPUB_NONE 0 +#define DMPUB_FIRST 1 + +#define DMPUB_ORIENTATION 1 +#define DMPUB_SCALE 2 +#define DMPUB_COPIES_COLLATE 3 +#define DMPUB_DEFSOURCE 4 +#define DMPUB_PRINTQUALITY 5 +#define DMPUB_COLOR 6 +#define DMPUB_DUPLEX 7 +#define DMPUB_TTOPTION 8 +#define DMPUB_FORMNAME 9 +#define DMPUB_ICMMETHOD 10 +#define DMPUB_ICMINTENT 11 +#define DMPUB_MEDIATYPE 12 +#define DMPUB_DITHERTYPE 13 +#define DMPUB_OUTPUTBIN 14 +#define DMPUB_QUALITY 15 +#define DMPUB_NUP 16 +#define DMPUB_PAGEORDER 17 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define DMPUB_NUP_DIRECTION 18 +#define DMPUB_MANUAL_DUPLEX 19 +#define DMPUB_STAPLE 20 +#define DMPUB_BOOKLET_EDGE 21 +#define DMPUB_LAST 21 +#else +#define DMPUB_LAST 17 +#endif + +#define DMPUB_OEM_PAPER_ITEM 97 +#define DMPUB_OEM_GRAPHIC_ITEM 98 +#define DMPUB_OEM_ROOT_ITEM 99 +#define DMPUB_USER 100 + +#define MAKE_DMPUB_HIDEBIT(DMPub) (DWORD)(((DWORD)0x01 << ((DMPub) - 1))) +#define IS_DMPUB_HIDDEN(dw, DMPub) (BOOL)((DWORD)(dw) & \ + MAKE_DMPUB_HIDEBIT(DMPub)) + +// +// DMPUB_xxxx is used in OPTITEM to identify if the item is a DEVMODE public +// field. Following it identify which field correspond to the DMPUB_xxxx +// +// +// DMPUB_ORIENTATION - dmOrientation +// +// DMPUB_SCALE - dmScale +// +// DMPUB_COPIES_COLLATE- dmCopies/dmCollate +// +// DMPUB_DEFSOURCE - dmDefSource (Should only used form by caller) +// +// DMPUB_PRINTQUALITY - dmPrintQuality +// +// DMPUB_COLOR - dmColor +// +// DMPUB_DUPLEX - dmDuplex +// +// DMPUB_TTOPTION - dmTTOption +// +// DMPUB_FORMNAME - dmFormName +// +// DMPUB_ICMMETHOD - dmICMMethod +// +// DMPUB_ICMINTENT - dmICMIntent +// +// DMPUB_MEDIATYPE - dmMediaType +// +// DMPUB_DITHERTYPE - dmDitherType +// +// DMPUB_USER - Anything greater than or equal to DMPUB_USER can be +// used by the caller. +// +// DMPUB_OUTPUTBIN - Private +// +// DMPUB_QUALITY - Private +// +// DMPUB_NUP - Private +// +// DMPUB_PAGEORDER - Private +// +// DMPUB_NUP_DIRECTION - Private +// +// DMPUB_MANUAL_DUPLEX - Private +// +// DMPUB_STAPLE - Private +// +// When common UI is called for the 'Document Properties' (DEVMODE), it will +// group some of public items together simillar to the following in the +// treeview. How it group is common UI version dependent and caller should not +// concern its placement +// +// Paper/Output (Add in by the common UI) +// Document Form (DMPUB_FORMNAME) +// Output Bin (DMPUB_OUTPUTBIN) +// Orientation (DMPUB_ORIENTATION) +// Source (DMPUB_DEFSOURCE) +// Media (DMPUB_MEDIATYPE) +// Number of Copies (DMPUB_COPIES_COLLATE) +// Page Order (DMPUB_PAGEORDER) +// Page Per Sheet (DMPUB_NUP) +// Duplex (DMPUB_DUPLEX) +// +// Graphic (Add in by the common UI) +// Print Quality (DMPUB_PRINTQUALITY) +// Quality Settings (DMPUB_QUALITY) +// Color (DMPUB_COLOR) +// Image Color Matching (Add in by the common UI) +// ICM Method (DMPUB_ICMMETHOD) +// ICM Intent (DMPUB_ICMINTENT) +// Scaling (DMPUB_SCALE) +// Dithering (DMPUB_DITHERTYPE) +// TrueType Option (DMPUB_TTOPTION) +// +// Options +// Halftone Color Adjustment... +// ALL Other Caller's Document sticky options +// +// +// For 'Document Properties' the standard page 1 (user friendly page) will +// consist following items if it appear in the OPTITEM array passed by the +// caller. These items must have following predefined TVOT_xxx type +// defined here and specified in the OPTTYPE's Type field. +// +// All DMPUB_xxx (except >= DMPUB_USER) public ID must have following +// TVOT_xxxx type specified, else a CPDU_INVALID_DMPUB_TVOT error is returned +// +// DMPUB_ORIENTATION - TVOT_2STATES/TVOT_3STATES +// DMPUB_SCALE - TVOT_UDARROW +// DMPUB_COPIES_COLLATE - TVOT_UDARROW + EXTCHKBOX (Collate) +// DMPUB_DEFSOURCE - TVOT_LISTBOX +// DMPUB_PRINTQUALITY - TVOT_LISTBOX +// DMPUB_COLOR - TVOT_2STATES +// DMPUB_DUPLEX - TVOT_2STATES/TVOT_3STATES +// DMPUB_TTOPTION - TVOT_LISTBOX +// DMPUB_FORMNAME - TVOT_LISTBOX +// DMPUB_ICMMETHOD - TVOT_2STATES/TVOT_3STATES +// DMPUB_ICMINTENT - TVOT_2STATES/TVOT_3STATES +// DMPUB_MEDIATYPE - TVOT_LISTBOX +// DMPUB_DITHERTYPE - TVOT_LISTBOX +// +// + + +#define OIEXTF_ANSI_STRING 0x0001 + +typedef struct _OIEXT { + WORD cbSize; + WORD Flags; + HINSTANCE hInstCaller; + LPTSTR pHelpFile; + ULONG_PTR dwReserved[4]; + } OIEXT, *POIEXT; + +// +// OIEXT is a data structure used as extension to the OPTITEM data structure +// +// +// cbSize - sizeof this structure +// +// Flags - One or more of OIEXTF_xxxx may be specified. +// +// OIEXTF_ANSI_STRING +// +// Specified that LPTSTR in this data structure is a ansi +// string (not UNICODE). This bit only checked if the +// LPTSTR is not the resource string ID +// +// hInstCaller - DLL instance handle, when this hInst is not NULL then all +// resource string and icon loading for this OPTITEM and its +// OPTTYPE, OPTPARAM are loaded from this hInstCaller Handle. +// If this filed is NULL then it will use the hInstCaller handle +// specified in the COMPROPSHEETUI data structure +// +// pHelpFile - Resource string ID or pointer to the help file for this +// OPTITEM. If this pointer is NULL then help file for the +// help index is assume specified in the pHelpFile field in the +// COMPROPSHEETUI data structure. +// +// dwReserved - These fields are not used now, and must 0 +// + + +typedef struct _OPTITEM { + WORD cbSize; // size of this structure + BYTE Level; // level in the tree view + BYTE DlgPageIdx; // Index to the pDlgPage + DWORD Flags; // OPTIF_xxxx flags + ULONG_PTR UserData; // caller's own data + LPTSTR pName; // name of the item + union { + LONG Sel; // current selection (index) + LPTSTR pSel; // current selection (pStr) + } DUMMYUNIONNAME; + union { + PEXTCHKBOX pExtChkBox; // Pointer to EXTCHKBOX structure + PEXTPUSH pExtPush; // Pointer to EXTPUSH + } DUMMYUNIONNAME2; + POPTTYPE pOptType; // pointer to OPTTYPE structure + DWORD HelpIndex; // Help file index + BYTE DMPubID; // Devmode public filed ID + BYTE UserItemID; // caller's own item ID + WORD wReserved; // reserved WORD field, must be 0 + POIEXT pOIExt; // Optitem extension pointer + ULONG_PTR dwReserved[3]; // reserved DWORD fields (must be 0) + } OPTITEM, *POPTITEM; + +// +// OPTITEM is to describe each treeview item's name, selection type and +// possible selection +// +// cbSize - sizeof this structure +// +// Level - The level in the treeview, the root should have lowest +// number and number should start with level 0. the maximum +// number of levels are 256. +// +// DlgPageIdx - Zero-based index to the DLGPAGE araay pointee by +// pDlgPage. The Maximum index is MAX_DLGPPAGE_COUNT, if +// pDlgPage is a standard CPSUI_PDLGPAGE_xxxx then this +// field is automatically set the common UI +// +// Flags - OPTIF_xxxx flags as describe above +// +// OPTIF_COLLAPSE +// +// Collaspe treeview item and its children so it is +// not expanded initially. +// +// +// OPTIF_HIDE +// +// Hide this item from the treeview +// +// +// OPTIF_CALLBACK +// +// Callback to the caller when user making some +// changes a pointer (pfnCallBack) must provided and +// process as defined by the common UI. +// +// +// OPTIF_CHANGED +// +// This item was changed and need to re-display. this +// flag only used when caller returned from callback +// funciton. +// +// +// OPTIF_CHANGEONCE +// +// This item has been changed at least once. +// +// +// OPTIF_DISABLED +// +// Disable this item so it become not selectable. +// +// +// OPTIF_ECB_CHECKED +// +// Specified the associated extended check box is +// in checked state. +// +// +// OPTIF_EXT_HIDE +// +// Hide the extended check box/extended push botton. +// +// +// OPTIF_EXT_DISABLED +// +// The Extended check box/push botton is disabled and +// not selectable +// +// +// OPTIF_SEL_AS_HICON +// +// This flag only used if this item has no type, +// pOptType=NULL that is, when pOptType is NULL then +// 'Sel' field is the IconID. if flag is set then it +// indicate 'pSel' is the Icon handle rather +// than the icon resource ID specified in Sel. +// +// +// OPTIF_EXT_IS_EXTPUSH +// +// Specified that pExtPush should be used when this +// pointer is not NULL, if this pointer is not NULL +// and this flag is clear then pExtChkBox is assumed. +// +// +// OPTIF_NO_GROUPBOX_NAME +// +// Specified that do not overwrite the group box title +// text, if group box ID is defined. See the TVOT_xx +// description above. +// +// +// OPTIF_OVERLAY_WARNING_ICON +// +// If this bit is set then this header OPTITEM's icon +// will be overlaied by a common UI's +// IDI_CPSUI_WARNING icon. This bit only used if this +// item has no type, pOptType is NULL that is. +// +// +// OPTIF_OVERLAY_STOP_ICON +// +// If this bit is set then this header OPTITEM's icon +// will be overlaied by a common UI's IDI_CPSUI_STOP +// icon. This bit only used if this item has no type, +// pOptType is NULL that is. +// +// +// OPTIF_OVERLAY_NO_ICON +// +// If this bit is set then this header OPTITEM's icon +// will be overlaied by a common UI's IDI_CPSUI_NO +// icon. This bit only used if this item has no type, +// pOptType is NULL that is. +// +// +// OPTIF_INITIAL_TVITEM +// +// Specified that this item will be the initial item +// to be selected and display on the treeview page. +// If the selected item is currently a child or +// collapse then common UI will expand the selection +// then scroll it into view. +// +// If this flag is clear or the set item is in hide +// status common UI will pick the initial item to +// display. +// +// OPTIF_HAS_POIEXT +// +// Specified that pOIExt field is a valid pointer that +// points to OIEXT data structure. The pOIExt only +// used by the common UI if this bit is set. +// +// +// UserData - a 32-bit number used by the caller and common UI will not +// modify it. +// +// pName - Pointer to the item's name, such as 'Upper Tray', +// 'Memory' or it is used as data as describe in +// OPTPARAM/OPTTYPE structure +// +// ** See LPTSTR description above +// +// pSel +// Sel - Current selection for this item. This is a union field +// which can be a pointer to a string or a LONG index +// selection. +// +// ** If pOptType field is NULL then 'Sel' is the icon ID +// to be used for the header. +// +// pExtPush +// pExtChkBox - Pointer to either EXTPUSH or EXTCHKBOX data structure, +// if this pointer is NULL then this item does not have +// ectended check box/push botton associate with it. +// +// When an extended check box is associate with the +// OPTTYPE, the OPTIF_EXT_IS_EXTPUSH must not set, the +// OPTIF_ECB_CHECKED flag specified if the extended check +// box is checked or not checked. +// +// When an Extended push botton is associated with the +// OPTTYPE, the OPTIF_EXT_IS_EXTPUSH flag must set. +// +// The following flags are used in both EXTCHKBOX or +// EXTPUSH +// +// OPTIF_EXT_HIDE, +// OPTIF_EXT_DISABLED +// OPTIF_EXT_CHANGEONCE +// +// +// pOptType - Pointer to the OPTTYPE structure to describe the display +// and selections of the item. If this pointer is NULL +// then this this item does not have any selection. and it +// is used as sub-items' header. +// +// * When pOptType is NULL then the 'Sel' is the Icon ID. +// +// +// HelpIndex - a index to the help file for context sensitive help +// if HelpInex=0 then there is no help for this item +// +// DMPubID - specified if this item is one of the public fields in the +// DEVMODE structure and supported by the common UI. +// +// DMPUB_NONE - Not DEVMODE public fields +// DMPUB_ORIENTATION - dmOrientation +// DMPUB_SCALE - dmScale +// DMPUB_COPIES_COLLATE - dmCopies/dmCollate +// DMPUB_DEFSOURCE - dmDefSource +// DMPUB_PRINTQUALITY - dmPrintQuality +// DMPUB_COLOR - dmColor +// DMPUB_DUPLEX - dmDuplex +// DMPUB_TTOPTION - dmTTOption +// DMPUB_FORMNAME - dmFormName +// DMPUB_ICMMETHOD - dmICMMethod +// DMPUB_ICMINTENT - dmICMIntent +// DMPUB_MEDIATYPE - dmMediaType +// DMPUB_DITHERTYPE - dmDitherType +// +// ** for most of DMPUB_FIRST to DMPUB_LAST each OPTITEM's +// pName is automatically set to the standard +// IDS_CPSUI_xxx for the consistancy reason, the +// standard pName is set according to following table. +// +// DMPUB_ORIENTATION - IDS_CPSUI_ORIENTATION +// DMPUB_SCALE - IDS_CPSUI_SCALING +// DMPUB_COPIES_COLLATE - IDS_CPSUI_COPIES +// DMPUB_DEFSOURCE - IDS_CPSUI_SOURCE +// DMPUB_PRINTQUALITY - IDS_CPSUI_PRINTQUALITY +// IDS_CPSUI_RESOLUTION +// DMPUB_COLOR - IDS_CPSUI_COLOR_APPERANCE +// DMPUB_DUPLEX - IDS_CPSUI_DUPLEX +// DMPUB_TTOPTION - IDS_CPSUI_TTOPTION +// DMPUB_FORMNAME - IDS_CPSUI_FORMNAME +// DMPUB_ICMMETHOD - IDS_CPSUI_ICMMETHOD +// DMPUB_ICMINTENT - IDS_CPSUI_ICMINTENT +// DMPUB_MEDIATYPE - IDS_CPSUI_MEDIA +// DMPUB_DITHERTYPE - IDS_CPSUI_DITHERING +// +// for DMPUB_PRINTQUALITY, if the pName is not one of +// IDS_CPSUI_PRINTQUALITY or IDS_CPSUI_RESOLUTION then +// common UI will automatically default the pName to +// IDS_CPSUI_RESOLUTION. +// +// Each pData (OPTPARAM) selection in OPTPARAM which +// OPTITEM's pOptType pointed to should use as much +// as IDS_CPSUI_xxx standard name as possible. +// +// +// ** for DMPUB_COPIES_COLLATE the common UI automatically +// doing the following before the callback +// +// 1) Enable/Disable the collate extended check box if +// OPTIF_EXT_HIDE is not specified and pExtChkBox +// is not NULL in the OPTITEM. +// +// 2) Automatically change the postfix for this item +// to be 'Copy' if selection is one, and 'Copies' +// if selection is greater than one in the treeview +// page, and it will also set the postfix in +// standard document property page if the postfix +// ID is provided (BegCtrlID + 4) +// +// +// ** for DMPUB_COLOR the common UI automatically doing +// the following before the callback, the gray +// selection must be Sel=0 and Color slection must be +// Sel=1 +// +// 1) Calling halftone color adjustment with current +// color/mono selection +// +// 2) Disable ICM when color is not selected +// +// +// ** Please see above DMPUB_xx description for details. +// +// UserItemID - This is a byte ID intented to be used by the caller to +// identify the item +// +// wReserved - WORD reserved. Must be zero +// +// pOIExt - Pointer to the OIEXT data structure to specified that +// it has a OPTITEM extenstion structure. +// +// dwReserved[] - DWORD reserved and must be 0 +// +// + +// +// predefined ID for call back reason +// + +#define CPSUICB_REASON_SEL_CHANGED 0 +#define CPSUICB_REASON_PUSHBUTTON 1 +#define CPSUICB_REASON_ECB_CHANGED 2 +#define CPSUICB_REASON_DLGPROC 3 +#define CPSUICB_REASON_UNDO_CHANGES 4 +#define CPSUICB_REASON_EXTPUSH 5 +#define CPSUICB_REASON_APPLYNOW 6 +#define CPSUICB_REASON_OPTITEM_SETFOCUS 7 +#define CPSUICB_REASON_ITEMS_REVERTED 8 +#define CPSUICB_REASON_ABOUT 9 +#define CPSUICB_REASON_SETACTIVE 10 +#define CPSUICB_REASON_KILLACTIVE 11 + + +// +// predefined ID for call back action +// + +#define CPSUICB_ACTION_NONE 0 +#define CPSUICB_ACTION_OPTIF_CHANGED 1 +#define CPSUICB_ACTION_REINIT_ITEMS 2 +#define CPSUICB_ACTION_NO_APPLY_EXIT 3 +#define CPSUICB_ACTION_ITEMS_APPLIED 4 + + +typedef struct _CPSUICBPARAM { + WORD cbSize; // size of this structure + WORD Reason; // CPSUICB_REASON_XXXXX callback reason + HWND hDlg; // handle of the dialog box + POPTITEM pOptItem; // pOptItem field from COMPROPSHEETUI + WORD cOptItem; // cOptItem field from COMPROPSHEETUI + WORD Flags; // flags field from COMPROPSHEETUI + POPTITEM pCurItem; // current selected item of callback + union { + LONG OldSel; // Last selection (index) + LPTSTR pOldSel; // Last selection (pStr) + } DUMMYUNIONNAME; + ULONG_PTR UserData; // UserData in the COMPROPSHEETUI struct. + ULONG_PTR Result; // OUT parameter for the APPLYNOW + } CPSUICBPARAM, *PCPSUICBPARAM; + + +typedef LONG (APIENTRY *_CPSUICALLBACK)(PCPSUICBPARAM pCPSUICBParam); +#define CPSUICALLBACK LONG APIENTRY + + +// +// CPSUICBPARAM is used when commom UI callback to the caller, this structure +// describe the nature of callback and passed all necessary parameter for the +// caller to make changes in the pOptItem and passed an action back to the +// commom UI to redisplay the tree or page 1 data +// +// +// cbSize - must be CPSUICBPARAM +// +// Reason - defined the nature of the callback +// +// CPSUICB_REASON_SEL_CHANGED +// +// User make change to the pCurItem. if the item is +// DMPUB_COPIES_COLLATE then common UI automatically +// change the collate extended check box without callback +// to the caller of the extended check box changes +// +// +// CPSUICB_REASON_PUSHBUTTON +// +// User push the push button and push button item is set +// to PUSHBUTTON_TYPE_CALLBACK. +// +// +// CPSUICB_REASON_ECB_CHANGED +// +// User make change to the extended checked box (i.e. it +// eiterh checked or not checked) EXTCHKBOX in the +// pCurItem passed in the call back parameter. +// +// +// CPSUICB_REASON_DLGPROC +// +// The callback reason is PUSHBUTTON_TYPE_DLGPROC +// +// +// CPSUICB_REASON_UNDO_CHANGES +// +// This callback currently is not implmented. +// +// +// CPSUICB_REASON_EXTPUSH +// +// The callback is result of user push the extend push +// button. +// +// +// CPSUICB_REASON_APPLYNOW +// +// The user press the apply now button. Durning callback +// the pCurItem is set to equal to pOptItem in this +// structure and 'OldSel' is set to the active DlgPageIdx +// (compare to the OPTITEM's DlgPageIdx) which the page +// user hitting the apply now button if the page is +// non-treeview page, otherwise the 'OldSel' is set to -1 +// (for treeview page) to indicate all valid item should +// be apply now, if the callback return +// CPSUICB_ACTION_NONE then the common UI will exit the +// property sheet and returned CPSUI_OK back to the +// caller, and if the callback function returned +// CPSUICB_ACTION_NO_APPLY_EXIT then common UI will not +// exit the property sheet and callback function must +// pop-up messages dialog box to tell user why it cannot +// exist the property sheet until certain action is take +// by the user. +// +// +// CPSUICB_REASON_OPTITEM_SETFOCUS +// +// This callback reason is used when an OPTITEM is getting +// the keyboard focus. and give the callback function a +// chance to examine the item. +// +// +// CPSUICB_REASON_ITEMS_REVERTED +// +// This callback reason is used when user changed items +// and decided to revert changes from the parent item in +// the treeview. The callback funciton is called after +// all revertable items are reverted to its original. +// +// The CPSUICBPARAM's pCurItem is same as pOptItem and +// 'OldSel' field is same as cOptItem field. for each of +// reverted item, the OPTIF_CHANGED bit will be set in the +// OPTITEM by the common UI to indicate the item is revert +// by the common UI. The callback function MUST NOT +// reset this bit if it is set. +// +// +// CPSUICB_REASON_ABOUT +// +// This callback reason is used when user hit 'About...' +// push button in the treeview page, and the flag +// CPSUIF_ABOUT_CALLBACK is set. The pCurItem is set to +// same as pOptItem and 'pOldSel' is a pointer pointed to +// original copy of COMPROPSHEETUI data structure which +// passed to the common UI. +// +// +// CPSUICB_REASON_SETACTIVE +// CPSUICB_REASON_KILLACTIVE +// +// The current property sheet is gaining or loosing focus, +// the pCurItem is set to equal to pOptItem in this +// structure and 'OldSel' is set to the current active +// DlgPageIdx (compare to the OPTITEM's DlgPageIdx). +// if the page is non-treeview page, otherwise the +// 'OldSel' is set to -1 (for treeview page). +// +// hDlg - The handle to the dialog box (Properties page TAB) current +// active for the callback. +// +// Durning the callback the caller must not change the +// DWLP_USERDATA on hDlg, otherwise the common UI will be crash. +// If callback function need to get/set DWLP_USERDATA it should +// call common UI's SetCPSUIUserData() and GetCPSUIUserData() +// functions instead. +// +// pCurItem - Pointed to POPTITEM which the callback is generated for. +// +// pOldSel +// OldSel - The last OPTITEM's pSel/Sel field before the change was made +// by the user. The pOldSel/OldSel only valid if the callback +// reason is CPSUICB_REASON_SEL_CHANGED, this give the callback +// function a chance to check against the previous item +// selection. This is a union field which can be a pointer to +// a string or a LONG index selection. +// +// UserData - a 32-bit user defined data in the COMPROPSHEETUI structure, +// commom UI will not changed it. +// +// Result - When the reason is CPSUICB_REASON_APPLYNOW, the callback +// function MUST set the requested result for the caller into +// 'Result' field when it returned a value other than the +// CPSUICB_ACTION_NO_APPLY_EXIT and common UI will send the +// 'Result' field value to this page's parent. +// +// The called function should save the current result of +// pOptItem. The default 'Result' is set to CPSUI_OK (1) from +// common UI. This function can alter this result before it +// return back to to the common UI. +// +// +// Return Values: +// +// CPSUICB_ACTION_NONE - No action need to be take by the +// common UI. +// +// CPSUICB_ACTION_OPTIF_CHANGED - Ask the common UI to examine the +// OPTIF_CHANGED flag in the OPTITEM +// data structure. if the flag is set +// then that item is assume need to be +// re-display because of OPTITEM's Flags +// field changed or item's selection +// changed. This is different from +// CPSUICB_ACTION_REINIT_ITEMS which +// it assume OPTTYPE or OPTPARAM data +// also changed. +// +// +// CPSUICB_ACTION_REINIT_ITEMS - Ask the common UI to examine the +// OPTIF_CHANGED flag in the OPTITEM +// data structure. if the flag is set +// then that item is assume need to be +// re-initialized in the dilaog box +// control. This happened if item's +// OPTTYPE or OPTPARAMs flag/pdata +// changed. +// +// +// CPSUICB_ACTION_NO_APPLY_EXIT - This return value only valid durning +// CPSUICB_REASON_APPLYNOW callback +// reason, it tell common UI it has +// some constraints in its OPTITEM which +// must correct or confirm by the user +// before exit. The callback function +// must display and/or have user taking +// some actions before return this +// action to the common UI +// +// CPSUICB_ACTION_ITEMS_APPLIED - When responsed to the +// CPSUICB_REASON_APPLYNOW, if the +// returned action is +// CPSUICB_ACTION_ITEMS_APPLIED then +// common UI will reset OPTIF_CHANGEONCE +// bit and save the new default for the +// future undo operations. +// +// + +#define DP_STD_TREEVIEWPAGE 0xFFFF +#define DP_STD_DOCPROPPAGE2 0xFFFE +#define DP_STD_DOCPROPPAGE1 0XFFFD +#define DP_STD_RESERVED_START 0xFFF0 + +#define MAX_DLGPAGE_COUNT 64 + +#define DPF_ICONID_AS_HICON 0x0001 +#define DPF_USE_HDLGTEMPLATE 0x0002 + +typedef struct _DLGPAGE { + WORD cbSize; // size of this structure + WORD Flags; // DPF_xxxx flags + DLGPROC DlgProc; // caller's dialog box subclass procedue + LPTSTR pTabName; // pointer to the tab name + ULONG_PTR IconID; // icon to be used + union { + WORD DlgTemplateID; // dialog box template ID + HANDLE hDlgTemplate; // handle to the dialog template + } DUMMYUNIONNAME; + } DLGPAGE, *PDLGPAGE; + + +// +// DLGPAGE structure describe non-treeview page characteristics +// +// +// cbSize - size of this structure +// +// Flags - DPF_xxxx flags +// +// DPF_ICONID_AS_HICON +// +// If this flag is set then IconID DWORD field is +// treated as a handle to the icon rather then the +// resource ID +// +// +// DlgProc - caller's supplied DLGPROC for sub-class the page +// dialog box processing, +// +// if DlgProc is not NULL then common UI do the following +// according the the message received except for the +// DP_STD_xxx pages +// +// +// WM_INITDIALOG +// +// Common UI initialize the dialog box and then call +// DlgProc(WM_INITDIALOG) the DlgProc should return +// exactly the behavior for the WM_INITDIALOG +// +// The lParam in the WM_INITDIALOG data structure is +// a pointer to the PROPSHEETPAGE data structure. +// +// the lParam field in the PROPSHEETPAGE (lParam +// passed to the WM_INITDIALOG) is the UserData +// defined in COMPROPSHEETUI data structure +// +// To access to the PSPINFO data structure which +// associate with this page, use the common UI macro +// PPSPINFO_FROM_WM_INITDIALOG_LPARAM(lParam) where +// lParam is the parameter passed to the +// WM_INITDIALOG message. +// +// The subclass function should save these pointers +// for its later use, but it MUST NOT modified the +// content of the PSPINFO data structure or system +// may crashed. +// +// +// OTHER DIALOG MESSAGES +// +// Iit call DlgProc() and if it returned the value is +// non-zero then common UI assume DlgProc() processed +// the message and will not process this message. +// +// If the returned vlaue from DlgProc() is zero then +// common UI will process this message. +// +// +// * Durning the DlgProc the caller must not change the +// DWLP_USERDATA on hDlg, otherwise the common UI will +// be crash. If caller need to get/set DWLP_USERDATA it +// should call common UI's SetCPSUIUserData() and +// GetCPSUIUserData() instead. +// +// pTabName - Pointer to a string to describe the TAB title +// +// IconID - This is the icon identifier, which can be a common +// strandard IDI_CPSUI_xxx icon ID, caller's own icon +// resource ID, or a handle to the caller defined icon if +// DPF_ICONID_AS_HICON flag is set, in any case if the +// IconID is zero then it indicated no icon. +// +// DlgTemplateID - The template id to be use for the ProPage, it can be +// one of DP_STD_xxxx, the DP_STD_xxx has 240 x 240 dialog +// box units. +// +// +// DP_STD_TREEVIEWPAGE +// +// Specified that this page is a standard treeview +// page provided by the common ui. The treeview page +// is a page using treeview display all valid OPTITEM +// passed to the common UI. User can modify every +// valid selectable OPTITEM from the treeview page. +// +// DP_STD_DOCPROPPAGE +// +// Specified that this page is a standard document +// property page provided by the common UI +// +// hDlgTemplate - Handle to the DLGTEMPLATE which will be use for pop up +// dialog box +// +// +// wReserved[] +// dwReserved[] - Reserved fields, must be 0 +// +// +// ** Tips of designing the dialog box controls +// +// When designing the dialog box controls, each OPTITEM is correspoonds +// to one input control plus one extended check box or extended push +// button. Since common UI will automatically disable and remove +// OPTIF_HIDE items item from the property sheet and dynamically move +// other controls, the following tips of designing the dialog box controls +// should follow. +// +// * Each item should have one input control plus optional of extended +// check box/push botton, one icon control and other static controls +// +// * Each item should occupied whole horizontal spaces of the property +// sheet, items must not overlay in vertical direction. +// +// * for TVOT_2STATES, TVOT_3STATES, if it araange radio buttons from +// left to right in state order (ie. from first state's OPTPARAM to +// last state's OPTPARAM) then the radio buttons and icons should +// aligned in the Y coordinate. If it arrange radio buttons from top +// to bottom (ie. from first state's OPTPARAM to last state's OPTPARAM) +// then the radio buttons and icons should aligned in the X coordinate. +// +// common UI will automatically hide/move the radio buttons to compact +// the dialog box controls. If radio buttons/icons are arranged in +// top/down order and there is other controls obscure in Y direction +// then radio buttons will only be re-arranged but not remove any white +// spaces in Y direction. +// +// * If multiple items shared one group box, then the group box must +// belongs to the first item (topmost in the dialog box group) in the +// group, the group box must large enough to cover all the items in +// side the group box. +// +// + + +#define CPSUIF_UPDATE_PERMISSION 0x0001 +#define CPSUIF_ICONID_AS_HICON 0x0002 +#define CPSUIF_ABOUT_CALLBACK 0x0004 + +#define CPSUI_PDLGPAGE_DOCPROP (PDLGPAGE)1 +#define CPSUI_PDLGPAGE_ADVDOCPROP (PDLGPAGE)2 +#define CPSUI_PDLGPAGE_PRINTERPROP (PDLGPAGE)3 +#define CPSUI_PDLGPAGE_TREEVIEWONLY (PDLGPAGE)4 + +// +// For compatible misspelling #define +// + +#define CPSUI_PDLGPAGE_TREEVIWONLY CPSUI_PDLGPAGE_TREEVIEWONLY + +typedef struct _COMPROPSHEETUI { + WORD cbSize; // size of this structure + WORD Flags; // CPSUIF_xxxx flags + HINSTANCE hInstCaller; // caller's hInstance + LPTSTR pCallerName; // pointer to the caller's name + ULONG_PTR UserData; // caller's own data + LPTSTR pHelpFile; // pointer to the help file + _CPSUICALLBACK pfnCallBack; // callback function pointer + POPTITEM pOptItem; // pointer to POPTITEM array + PDLGPAGE pDlgPage; // pointer to the DLGPAGE array + WORD cOptItem; // count of pOptItem array + WORD cDlgPage; // count of pDlgPage array + ULONG_PTR IconID; // icon to be used + LPTSTR pOptItemName; // pointer to the optitem's data name + WORD CallerVersion; // version for the caller apps + WORD OptItemVersion; // version for the optitem name + ULONG_PTR dwReserved[4]; // reserved, must be 0 + } COMPROPSHEETUI, *PCOMPROPSHEETUI; + + +// +// COMPROPSHEETUI data structure is used when calling common UI to display dialog +// box of properties pages. +// +// +// Size - Must be sizeof (COMPROPSHEETUI) +// +// Flags - can be one or more of following +// +// CPSUIF_UPDATE_PERMISSION +// +// Specified the any valid pOptItem items are +// changeable by the user. +// +// +// CPSUIF_ICONID_AS_HICON +// +// If this flag is set then IconID DWORD field is +// treated as a handle to the icon rather then the +// resource ID +// +// +// CPSUIF_ABOUT_CALLBACK +// +// If this flag bit is set, then when user hit +// 'About...' button in the treeview tab, it will +// call the callback function with a reason of +// CPSUICB_REASON_ABOUT, and callback MUST handle +// the about which pop-up dialog box to show user +// the information about the caller and OPTITEMs. +// +// If this bit is not set then common UI will call +// the ShellAbout() with formatted caller Name and +// pOptItemName with version numbers. +// +// +// hInstCaller - the caller's handle to its instance. Commom UI use +// this handle to load caller's icon and other resources. +// +// pCallerName - Pointer to the caller's NULL terminated caller's +// name, most time this is driver's name, +// such as 'Postscript Driver' +// +// UserData - a 32-bit number used by the caller and common UI will +// not modify it. this 32-bit number is passed back to +// the caller durning the callback function +// +// pHelpFile - specified a standard microsoft help file (path/file) +// for using in the common UI. in OPTITEM specified +// HelpIndex for help in each item. +// +// pfnCallBack - Pointer to _CPSUICALLBACK callback function. Common +// UI only callback to the caller if an OPTIF_CALLBACK +// is set OPTITEM data structure's flag fields and the +// item selection is changed by the user. +// +// pOptItem - Pointer to array of OPTITEM structure to be displayed +// by the common UI +// +// pDlgPage - Pointer to array of DLGPAGE structure to describe +// each property sheet page infomation, the following +// are the standard common ui DLGPAGEs. When specified +// CPSUI_PDLGPAGE_xxxx, the common UI will automatically +// modify DlgPageIdx field in the OPTITEM, caller must +// set the iStartPage correctly. +// +// CPSUI_PDLGPAGE_DOCPROP +// +// specified this a common ui standard document +// property sheets. This includes two property +// sheets, 1) Page Setup 2) Advance (TreeView) +// +// +// CPSUI_PDLGPAGE_ADVDOCPROP +// +// Specified this is a treeview page only UI +// provided by the common UI, this only has one +// treeview page with tab of 'Advance' +// +// +// CPSUI_PDLGPAGE_PRINTERPROP +// +// Specified this is a common UI standard printer +// property sheet. This only has one treeview +// page with tab of 'Device Options' +// +// +// CPSUI_PDLGPAGE_TREEVIEWONLY +// +// Specified this is a treeview page only UI +// provided by the common UI, this only has one +// treeview page +// +// +// +// cOptItem - Count of OPTITEM pointed by the pOptItem above +// +// cDlgPage - Count of DLGPAGE pointed by the pDlgPage. If +// pDlgPage is one of the CPSUI_PDLGPAGE_xxxx then this +// field is ignored by the common UI. +// +// IconID - This is the icon identifier, which can be a common +// strandard IDI_CPSUI_xxx icon ID, caller's own icon +// resource ID, or a handle to the caller defined icon +// if CPSUIF_ICONID_AS_HICON flag is set, in any case +// if the IconID is zero then it indicated no icon. +// +// pOptItemName - Pointer to the pOptItem data NULL terminated name, +// most time this is device name, such as 'HP 4si' +// +// CallerVersion - Version for the caller, the HIBYTE(CallerVersion) is +// the major version, and LOBYTE(CallerVersion) is the +// minor version, such as 0x310 display as 3.16, 0x3ff +// display as 3.255 and 0x30a display as 3.10 +// +// OptItemVersion - Version for the OPTITEM's data, the +// HIBYTE(OptItemVersion) is the major version, and +// LOBYTE(OptItemVersion) is the minor version, such as +// 0x310 display as 3.16, 0x3ff display as 3.255 and +// 0x30a display as 3.10. +// +// dwReserved[4] - reserved fields, must be 0 +// +// +// ** pTitlee and TitleBarIcon only used if CommonPrinterPropSheetUI() +// is the last one the Property sheet UI chain and call the PropertySheet() +// +// + + +#define CPSFUNC_ADD_HPROPSHEETPAGE 0 +#define CPSFUNC_ADD_PROPSHEETPAGEW 1 +#define CPSFUNC_ADD_PCOMPROPSHEETUIA 2 +#define CPSFUNC_ADD_PCOMPROPSHEETUIW 3 +#define CPSFUNC_ADD_PFNPROPSHEETUIA 4 +#define CPSFUNC_ADD_PFNPROPSHEETUIW 5 +#define CPSFUNC_DELETE_HCOMPROPSHEET 6 +#define CPSFUNC_SET_HSTARTPAGE 7 +#define CPSFUNC_GET_PAGECOUNT 8 +#define CPSFUNC_SET_RESULT 9 +#define CPSFUNC_GET_HPSUIPAGES 10 +#define CPSFUNC_LOAD_CPSUI_STRINGA 11 +#define CPSFUNC_LOAD_CPSUI_STRINGW 12 +#define CPSFUNC_LOAD_CPSUI_ICON 13 +#define CPSFUNC_GET_PFNPROPSHEETUI_ICON 14 +#define CPSFUNC_ADD_PROPSHEETPAGEA 15 +#define CPSFUNC_INSERT_PSUIPAGEA 16 +#define CPSFUNC_INSERT_PSUIPAGEW 17 +#define CPSFUNC_SET_PSUIPAGE_TITLEA 18 +#define CPSFUNC_SET_PSUIPAGE_TITLEW 19 +#define CPSFUNC_SET_PSUIPAGE_ICON 20 +#define CPSFUNC_SET_DATABLOCK 21 +#define CPSFUNC_QUERY_DATABLOCK 22 +#define CPSFUNC_SET_DMPUB_HIDEBITS 23 +#define CPSFUNC_IGNORE_CPSUI_PSN_APPLY 24 +#define CPSFUNC_DO_APPLY_CPSUI 25 + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define CPSFUNC_SET_FUSION_CONTEXT 26 +#define MAX_CPSFUNC_INDEX 26 +#else +#define MAX_CPSFUNC_INDEX 25 +#endif + +#ifdef UNICODE +#define CPSFUNC_ADD_PCOMPROPSHEETUI CPSFUNC_ADD_PCOMPROPSHEETUIW +#define CPSFUNC_ADD_PFNPROPSHEETUI CPSFUNC_ADD_PFNPROPSHEETUIW +#define CPSFUNC_LOAD_CPSUI_STRING CPSFUNC_LOAD_CPSUI_STRINGW +#define CPSFUNC_ADD_PROPSHEETPAGE CPSFUNC_ADD_PROPSHEETPAGEW +#define CPSFUNC_INSERT_PSUIPAGE CPSFUNC_INSERT_PSUIPAGEW +#define CPSFUNC_SET_PSUIPAGE_TITLE CPSFUNC_SET_PSUIPAGE_TITLEW + +#else +#define CPSFUNC_ADD_PCOMPROPSHEETUI CPSFUNC_ADD_PCOMPROPSHEETUIA +#define CPSFUNC_ADD_PFNPROPSHEETUI CPSFUNC_ADD_PFNPROPSHEETUIA +#define CPSFUNC_LOAD_CPSUI_STRING CPSFUNC_LOAD_CPSUI_STRINGA +#define CPSFUNC_ADD_PROPSHEETPAGE CPSFUNC_ADD_PROPSHEETPAGEA +#define CPSFUNC_INSERT_PSUIPAGE CPSFUNC_INSERT_PSUIPAGEA +#define CPSFUNC_SET_PSUIPAGE_TITLE CPSFUNC_SET_PSUIPAGE_TITLEA + +#endif + +// +// for the CPSFUNC_SET_RESULT +// + +#define SR_OWNER 0 +#define SR_OWNER_PARENT 1 + +typedef struct _SETRESULT_INFO { + WORD cbSize; + WORD wReserved; + HANDLE hSetResult; + LRESULT Result; + } SETRESULT_INFO, *PSETRESULT_INFO; + +// +// This is for CPSFUNC_INSERT_PSUIPAGE +// + +#define HINSPSUIPAGE_FIRST (HANDLE)0xFFFFFFFE +#define HINSPSUIPAGE_LAST (HANDLE)0xFFFFFFFF +#define HINSPSUIPAGE_INDEX(i) (HANDLE)MAKELONG(i, 0); + +#define PSUIPAGEINSERT_GROUP_PARENT 0 +#define PSUIPAGEINSERT_PCOMPROPSHEETUI 1 +#define PSUIPAGEINSERT_PFNPROPSHEETUI 2 +#define PSUIPAGEINSERT_PROPSHEETPAGE 3 +#define PSUIPAGEINSERT_HPROPSHEETPAGE 4 +#define PSUIPAGEINSERT_DLL 5 +#define MAX_PSUIPAGEINSERT_INDEX 5 + + +#define INSPSUIPAGE_MODE_BEFORE 0 +#define INSPSUIPAGE_MODE_AFTER 1 +#define INSPSUIPAGE_MODE_FIRST_CHILD 2 +#define INSPSUIPAGE_MODE_LAST_CHILD 3 +#define INSPSUIPAGE_MODE_INDEX 4 + + +typedef struct _INSERTPSUIPAGE_INFO { + WORD cbSize; + BYTE Type; + BYTE Mode; + ULONG_PTR dwData1; + ULONG_PTR dwData2; + ULONG_PTR dwData3; + } INSERTPSUIPAGE_INFO, *PINSERTPSUIPAGE_INFO; + + +// +// for the CPSFUNC_SET_HSTARTPAGE +// + +#define SSP_TVPAGE 10000 +#define SSP_STDPAGE1 10001 +#define SSP_STDPAGE2 10002 + +typedef LONG_PTR (CALLBACK *PFNCOMPROPSHEET)(HANDLE hComPropSheet, + UINT Function, + LPARAM lParam1, + LPARAM lParam2); + + +typedef struct _PSPINFO { + WORD cbSize; + WORD wReserved; + HANDLE hComPropSheet; + HANDLE hCPSUIPage; + PFNCOMPROPSHEET pfnComPropSheet; + } PSPINFO, *PPSPINFO; + +// +// PPSPINFO_FROM_WM_INITDIALOG_LPARAM(lParam) macro retrieve a pointer to the +// PSPINFO data structure. the lParam must be the lParam passed to the +// WM_INITDIALOG, otherwise the system can failed +// + +#define PPSPINFO_FROM_WM_INITDIALOG_LPARAM(lParam) \ + (PPSPINFO)((LPBYTE)lParam + ((LPPROPSHEETPAGE)lParam)->dwSize) + +// +// PSPINFO +// +// This structure is used durning property sheet page's WM_INITDIALOG message. +// At WM_INITDIALOG, the lParam is a pointer to the PROPSHEETPAGE, and +// lParam field in the PROPSHEETPAGE is a pointer to the PSPINFO. the +// original lParam in the PROPSHEETPAGE is saved in the lParam field in the +// PSPINFO data structure. +// +// When process WM_INITDIALOG message, it should save the lParam (PSPINFO +// structure pointer) for later to call common UI callback functions. +// +// +// cbSize - Size of this structure in bytes +// +// wReserved - Reserved, must be set to zero +// +// hComPropSheet - Handle to the parent page which is the hComPropSheet +// passed to the CPSFUNC_ADD_PROPSHEETPAGE +// +// hCPSUIPage - Handle to the this added common UI property sheet page. +// +// pfnComPropSheet - Pointer to the common UI callback function, using this +// function pointer to do CPSFUNC_xxxx +// +// + +typedef struct _CPSUIDATABLOCK { + DWORD cbData; + LPBYTE pbData; + } CPSUIDATABLOCK, *PCPSUIDATABLOCK; + + +#define APPLYCPSUI_NO_NEWDEF 0x00000001 +#define APPLYCPSUI_OK_CANCEL_BUTTON 0x00000002 + +// +// PFNCOMPROPSHEET function descriptions +// +// For each function index, it passed a handle, a Function Index and two (2) +// long parameters, the 'hComPropSheet' handle passed must be the handle passed +// from common UI when common UI called the caller supplied function +// +// pfnPropSheetUI(pPropSheetUIData); +// +// Following are the description of each function index +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_ADD_HPROPSHEETPAGE +// +// This function add a page to the hComPropSheet using handle to the +// PROPSHEETPAGE +// +// +// Parameters: +// +// lParam1 - is a handle to the PROPSHEETPAGE that created by the caller +// using CreatePropertySheetPage() +// +// lParam2 - Not used, must be 0 +// +// +// Return Value: +// +// The return value is the handle of newly added common property sheet +// page, if return value is NULL then function failed. +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_ADD_PROPSHEETPAGE +// +// This function add a page to the hComPropSheet using PROPSHEETPAGE +// data structure. +// +// +// Parameters: +// +// lParam1 - is a pointer to PROPSHEETPAGE data structure +// +// lParam2 - Not used. +// +// +// Return Value: +// +// The return value is the handle of newly added common property sheet +// page, if return value is NULL then function failed. +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_ADD_PCOMPROPSHEETUI +// +// This function add propety page(s) to the hComPropSheet handle using +// COMPROPSHEETUI data structure. +// +// +// Parameters: +// +// lParam1 - is a pointer to COMPROPSHEETUI data structure +// +// lParam2 - pointer to a 32-bit location that received the total pages +// added by the COMPROPSHEETUI data structure if sucessful else +// it contains the ERR_CPSUI_xxx error codes. +// +// +// Return Value: +// +// The return value is the handle of newly added common property sheet +// page(s), if return value is NULL then function failed. +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_ADD_PFNPROPSHEETUI +// +// This function add property page(s) to the hChild handle using +// lParam1 as PFNPROPSHEETUI function pointer and lParam2 as the function +// parameter. The common UI call supplied function as following +// +// PROPSHEETUI_INFO PSUIInfo; +// +// PSUIInfo.cbSize = sizeof(PROPSHEETUI_INFO); +// PSUIInfo.Version = PROPSHEETUI_INFO_VERSION; +// PSUIInfo.Flags = (Ansi) ? 0: PSUIINFO_UNICODE; +// PSUIInfo.Reason = PROPSHEETUI_REASON_INIT; +// PSUIInfo.hComPropSheet = hComPropSheet; +// PSUIInfo.pfnComPropSheet = ComPropSheetUICallBack; +// PSUIInfo.lParamInit = lParam2; +// PSUIInfo.UserData = 0; +// PSUIInfo.Result = 0; +// +// ((PFNPROPSHEETUI)lParam1)(&PSUIInfo, lParam2); +// +// +// If the pfnPropSheetUI() need to add/delete any common UI pages then +// it must use hComPropSheet as its handle when calling the +// ComPropSheetUICallBack(). +// +// +// Parameters: +// +// lParam1 - a PFNPROPSHEETUI function pointer. +// +// lParam2 - a 32-bit data that will be used as lParam when calling +// PFNPROPSHEETUI function pointer. +// +// +// Return Value: +// +// The return value is the newly added property pages function handle, if +// return value is NULL then function failed or no page is added. +// +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_DELETE_HCOMPROPSHEET +// +// This function delete child property page(s) from hComPropSheet parent +// using the child handle passed. +// +// +// Parameters: +// +// lParam1 - the handle of common property sheet pages that to be deleted. +// This handle must be the handle returned from CPSFUNC_ADD_xxx +// functions. +// +// lParam2 - not used, must be 0 +// +// Return Value: +// +// The return value is greater than zero if function sucessful, and less +// or equal to zero if the function failed. +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_GET_PAGECOUNT +// +// This function return total property sheet pages belongs to a common +// UI property sheet page handle hComPropSheet +// +// +// Parameters: +// +// lParam1 - not used, must be 0 +// +// lParam2 - not used, must be 0. +// +// +// Return Value: +// +// The return value is total page count if function sucessful or zero if +// function failed. +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_SET_RESULT +// +// This function set the result of property sheet page to its owner that +// added this page by CPSFUNC_ADD_xxx function indices +// +// Parameters: +// +// lParam1 - Handle to the common UI property sheet page that setting the +// result. If this handle is NULL then it is treated as +// equal to the hComPropSheet. +// +// lParam2 - a 32-bit DWORD result to be set. +// +// +// Return Value: +// +// > 0: Successful, return value is total count of parents set the result +// = 0: There is no owner or parent for the lParam1 handle. +// < 0: function failed because of invalid lParam1 handle. +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_SET_HSTARTPAGE +// +// +// Parameters: +// +// lParam1 - the handle of common property sheet pages that to be set +// as initial page that appear when the property sheet dialog +// boxes is created. This handle must be the handle returned +// from CPSFUNC_ADD_xxx functions. +// +// If lParam1 is NULL then lParam2 is a string pointer to the +// page name (tab) that to be set for the start page +// +// lParam2 - a LONG number to specified the children index. if lParam1 +// handle is a parent then lParam2 specified zero base children +// index for using as start page. +// +// It also can be one of following special index +// +// SSP_TVPAGE +// +// set to the treeview page, this only valid if lParam1 +// handle was added by the CPSFUNC_ADD_PCOMPROPSHEETUI. +// +// SSP_STDPAGE +// +// Set to the standard document property sheet page +// (Page 1 user friendly page). this only valid if +// lParam1 handle was added by the +// CPSFUNC_ADD_PCOMPROPSHEETUI. +// +// +// Return Value: +// +// The return value is greater than zero if function sucessful, and less +// or equal to zero if the function failed. This function can only be +// called when the property sheet is not display yet so the place to +// call is during the PROPSHEETUI_REASON_GET_INFO_HEADER callback. +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_GET_HPSUIPAGES +// +// This function return array of children HPROPSHEETPAGE belongs to +// the parent hComPropSheet UI property sheet page handle hComPropSheet +// +// +// Parameters: +// +// lParam1 - Pointer to an array of HPROPSHEETPAGE that to be stored +// the handle upon return. +// +// lParam2 - Count of HPROPSHEETPAGE array pointed by the lParam1 +// +// +// Return Value: +// +// The return value is total HPROPSHEETPAGE stored in the array pointed +// by the lParam1. To get all hPropSheetPage for any common property +// sheet handle's (hCPSUIPage) children, it can use following sequence. +// +// if ((cPage = pfnComPropSheet(hComPropSheet, +// CPSFUNC_GET_PAGECOUNT, +// (LPARAM)hCPSUIPage, +// 0L)) && +// (phPage = ALLOCMEM(cPage * sizeof(HANDLE)))) { +// +// pfnComPropSheet(hCPSUIPage, +// CPSFUNC_GET_HPSUIPAGES, +// (LPARAM)phPage, +// (LPARAM)cPage); +// } +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_LOAD_CPSUI_STRING +// +// This function load the common property sheet UI resource string +// +// Parameters: +// +// lParam1 - Pointer to LPTSTR string which will stored the loaded +// resource string from the common property sheet UI DLL. +// +// lParam2 - LOWORD(lParam2) = Count of characters (includes null +// terminator) which pointed by the lParam1 +// +// HIWORD(lParam2) = Common property sheet UI predefined string +// resource ID as IDS_CPSUI_xxxx +// +// +// Return Value: +// +// > 0: Total characters stored in the string pointed by the lParam1, this +// is not includes the null terminator +// = 0: Invalid IDS_CPSUI_xxx passed from HIWORD(lParam) +// < 0: Either lParam1 is NULL or count of character is 0 from +// LOWORD(lParam2) +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_LOAD_CPSUI_ICON +// +// This function load the common property sheet UI resource icon. +// +// Parameters: +// +// lParam1 - Common property sheet UI predefined icon resource ID as +// IDI_CPSUI_xxxx. +// +// lParam2 - LOWORD(lParam2) = cx icon size in pixel. If zero then +// SM_CXICON is used +// HIWORD(lParam2) = cy icon size in pixel. If zero then +// SM_CYICON is used +// +// +// Return Value: +// +// Return value is the handle to the hIcon if function succeed, a NULL +// if function failed. The caller must call DestroyIcon() when it no +// longer need to use the hIcon returned +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_GET_PFNPROPSHEETUI_ICON +// +// This function let the caller return hIcon of its children pages that +// was added by CPSFUNC_ADD_PFNPROPSHEETUI +// +// Parameters: +// +// lParam1 - Handle of common property sheet pages that the hIcon will be +// queried. This handle must be the handle returned from +// CPSFUNC_ADD_PFNPROPSHEETUI function. +// +// lParam2 - LOWORD(lParam2) = cx icon size in pixel. If zero then +// SM_CXICON is used +// HIWORD(lParam2) = cy icon size in pixel. If zero then +// SM_CYICON is used +// +// +// Return Value: +// +// Return value is the handle to the hIcon if function succeed, a NULL +// if function failed. The caller must call DestroyIcon() when it no +// longer need to use the hIcon returned +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_INSERT_PSUIPAGE +// +// This function let the caller insert common property sheet pages at +// set position. The hComPropSheet must be the parent handle. +// +// Parameters: +// +// lParam1 - Handle of common property sheet pages that the page position +// will be inserted. This handle must be the handle returned +// from previous CPSFUNC_ADD_xxx or CPSFUNC_INSERT_PSUIPAGE that +// added or inserted using the hComPropSheet if the Mode field +// in INSPSUIPAGE_INFO data structure is one of the follwing +// +// INSPSUIPAGE_MODE_BEFORE +// INSPSUIPAGE_MODE_AFTER - Common UI page handle +// +// INSPSUIPAGE_MODE_INDEX - the lParam1 is an zero based +// child index. +// +// INSPSUIPAGE_MODE_FIRST_CHILD +// INSPSUIPAGE_MODE_LAST_CHILD - The lParam1 is ignonred. +// +// +// If lParam1 is a valid common property sheet page handle then +// it is the child page handle of hComPropSheet that added by +// CPSFUNC_ADD_xxx or inserted by CPSFUNC_INSERT_PSUIPAGE. +// +// lParam2 - A pointer that points to INSERTPSUIPAGE_INFO data structure. +// Fields must set according to the following. +// +// cbSize - size of this structure +// +// Type - Type of page(s) to be inserted. It can be one +// of the following +// +// PSUIPAGEINSERT_GROUP_PARENT +// +// Insert a group parent that can be used to insert +// new pages under it. This is typically used when +// a set of common UI pages must be group together and +// can be deleted later using a single group parent +// handle without individual deleting each page. +// +// This handle can be nested. After this function +// returned the group parent handle, it can be used +// as hComPropSheet handle (first parameter in the +// common UI callback) as parent handle so insertion +// will be inserted at level below returned group +// parent handle. +// +// +// PSUIPAGEINSERT_PCOMPROPSHEETUI +// +// Insert pages using COMPROPSHEETUI data structure, +// dwData1 is a pointer to the COMPROPSHEETUI data +// structure. +// +// +// PSUIPAGEINSERT_PFNPROPSHEETUI +// +// Insert pages using PFNPROPSHEETUI function pointer. +// The dwData1 is a PFNPROPSHEETUI function pointer. +// The common UI will call this pfnPropSheetUI() +// function pointer with PROPSHEETUI_REASON_INIT to +// have it add pages. +// +// When common UI call pfnPropSheetUI() (dwData1) it +// also passed a 32-bit parameter from the dwData2 +// field in INSERTPSUIPAGE_INFO data structure. +// +// +// PSUIPAGEINSERT_PROPSHEETPAGE +// +// Insert pages using PROPSHEETPAGE data structure. +// The dwData1 is a pointer to the PROPSHEETPAGE +// data structure. +// +// +// PSUIPAGEINSERT_HPROPSHEETPAGE +// +// Insert pages using HPROPSHEETPAGE handle. The +// dwData1 is a PROPSHEETPAGE handle which was +// created by CreatePropertySheetPage(). +// +// +// PSUIPAGEINSERT_DLL +// +// Insert pages from a dynnmaic link library. The +// dwData1 is a pointer to a null terminated string +// that specified the dynamic link library file name. +// +// The dwData2 is a pointer to a null terminated ASCII +// string that specified the pfnPropSheetUI function +// name. (MUST BE ASCII STRING) +// +// Common UI will do a LoadLibrary((LPTSTR)dwData1), +// pfnPropSheetUI = GetProcAddress((LPTSTR)dwData2) +// then call the pfnPropSheetUI with a lParam from +// dwData3. The called reason from common UI is +// set to PROPSHEETUI_REASON_INIT. +// +// Using this method insert pages will guaranteed that +// library will be unload correctly. +// +// +// Mode - Insert Mode, it can be one of the following +// +// +// INSPSUIPAGE_MODE_BEFORE +// +// Insert pages before the common property sheet page +// handle specified by lParam1 +// +// +// INSPSUIPAGE_MODE_AFTER +// +// Insert pages after the common property sheet page +// handle specified by lParam1 +// +// +// INSPSUIPAGE_MODE_FIRST_CHILD +// +// Insert pages as the first child of hComPropSheet +// parent handle, the lParam1 is ignored +// +// +// INSPSUIPAGE_MODE_LAST_CHILD +// +// Insert pages as the last child of hComPropSheet +// parent handle, the lParam1 is ignored +// +// +// INSPSUIPAGE_MODE_INDEX +// +// Insert pages as a zero base child index of its +// parent handle specified by hComPropSheet. +// +// The lParam1 is the zero based index special handle +// that must generated by HINSPSUIPAGE_INDEX(Index) +// macro. If the index is greater than or equal to +// the total count of children then it will treat the +// mode same as INSPSUIPAGE_MODE_LAST_CHILD +// +// +// dwData1 +// dwData2 +// dwData3 - 32-bit data associate with the 'Type' field +// as following +// +// +// PSUIPAGEINSERT_GROUP_PARENT +// +// dwData1 = Not used, must be 0 +// dwData2 = Not used, must be 0 +// dwData3 = Not used, must be 0 +// +// +// PSUIPAGEINSERT_PCOMPROPSHEETUI +// +// dwData1 = pointer to COMPORPSHEETUI data structure. +// dwData2 = at return if sucessful, it contains total +// page added. If failed, it contains the +// ERR_CPSUI_xxx codes +// dwData3 = Not used, must be 0 +// +// +// PSUIPAGEINSERT_PFNPROPSHEETUI +// +// dwData1 = PFNPROPSHEETUI function pointer +// dwData2 = 32-bit parameter passed to pfnPropSheetUI +// dwData3 = Not used, must be 0 +// +// +// PSUIPAGEINSERT_PROPSHEETPAGE +// +// dwData1 = Pointer to PROPSHEETPAGE data structure. +// dwData2 = not used, must be 0 +// dwData3 = not used, must be 0 +// +// +// PSUIPAGEINSERT_HPROPSHEETPAGE +// +// dwData1 = Is the HPROPSHEETPAGE handle that created +// by a call to CreatePropertySheetPage(). +// dwData2 = not used, must be 0 +// dwData3 = not used, must be 0 +// +// +// PSUIPAGEINSERT_DLL +// +// dwData1 = Pointer to a null terminated dynamic link +// library filename. +// dwData2 = Pointer to a null terminated function +// name (PFNPROPSHEETUI) in the dynamin link +// library. +// dwData3 = 32-bit parameter passed to pfnPropSheetUI +// (PFNPROPSHEETUI) function from dwData2 +// +// +// Return Value: +// +// The return value is the handle of newly added common property sheet +// page(s), if return value is NULL then function failed. +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_SET_PSUIPAGE_TITLE +// +// This function let the caller set a new title for a particular common +// UI page title (on the property sheet page tab) +// +// Parameters: +// +// lParam1 - the handle of common property sheet pages that title to be +// set. This handle must be the handle returned from following +// +// CPSFUNC_ADD_PROPSHEETPAGE +// CPSFUNC_ADD_HPROPSHEETPAGE +// CPSFUNC_INSERT_PSUIPAGE with type of +// PSUIPAGEINSERT_PROPSHEETPAGE or +// PSUIPAGEINSERT_HPROPSHEETPAGE +// +// lParam2 - Pointer to a null terminated string for the new title +// +// +// Return Value: +// +// The return value is greater than zero if function sucessful, and less +// or equal to zero if the function failed. +// +// This function will returned 0 if the property sheet pages is not +// currently displayed. +// +// +// ------------------------------------------------------------------------- +// Function = CPSFUNC_SET_PSUIPAGE_ICON +// +// This function let the caller set a new icon for a particular common +// UI page icon (on the property sheet page tab) +// +// Parameters: +// +// lParam1 - the handle of common property sheet pages that icon to be +// set. This handle must be the handle returned from following +// +// CPSFUNC_ADD_PROPSHEETPAGE +// CPSFUNC_ADD_HPROPSHEETPAGE +// CPSFUNC_INSERT_PSUIPAGE with type of +// PSUIPAGEINSERT_PROPSHEETPAGE or +// PSUIPAGEINSERT_HPROPSHEETPAGE +// +// lParam2 - Handle to Icon, this icon is best as 16x16 icon otherwise it +// will be stretch to 16x16 (pixel). +// +// +// Return Value: +// +// The return value is greater than zero if function sucessful, and less +// or equal to zero if the function failed. +// +// This function will returned 0 if the property sheet pages is not +// currently displayed. +// +// After this function is successful set the icon, the caller can destroy +// the hIcon using DestroyIcon() if the hIcon is created by CreateIcon(). +// If the hIcon (lParam2) passed is using LoadIcon() then it does not need +// to destroy the icon. +// +// ------------------------------------------------------------------------- +// +// Function = CPSFUNC_SET_DATABLOCK +// +// This function let the caller register a new data block so it can be +// later query by other pages in the property sheet, this function should +// call durning PSN_KILLACTIVE message +// +// Parameters: +// +// lParam1 - pointer CPSUIDATABLOCK structure which speicifed the buffer +// and size for queried datablock identify by lParam2 to be set. +// +// lParam2 - DWORD Identifier of data block to be set +// +// +// Return Value: +// +// The return value is greater than zero if function sucessful which +// indicate total bytes of data block registered. If return value is less +// or equal to zero then function failed and data block is not registered. +// +// If lParam1 is NULL, (lParam1)->cbData or (lParam1)->pbbData is NULL +// it return a -1 to indicate an error parameter passed. +// +// ------------------------------------------------------------------------- +// +// Function = CPSFUNC_QUERY_DATABLOCK +// +// This function let the caller query a registered data block so it can +// used this data block to communicate between property sheet pages. +// This function should call durning PSN_SETACTIVE message +// +// Parameters: +// +// lParam1 - pointer CPSUIDATABLOCK structure which speicifed the buffer +// and size for queried datablock identify by lParam2 +// +// lParam2 - DWORD Identifier of data block to be queried +// +// +// Return Value: +// +// The return value is greater than zero if function sucessful which +// indicate total bytes of data block copied into the pointer pointed by +// the lParam1. If return value is less or equal to zero then function +// failed and data block is not copied to diciate the spcified datablock +// Identifier (lParam2) is not found. +// +// If CPSUIDATABLOCK pointer (lParam1) is NULL, (lParam1)->cbData or +// (lParam1)->pbData is NULL then return value is the total bytes required +// to copy the specified datablock identifier, if return value is less or +// equal to zero then it indicate the spcified datablock identifier is +// not found. +// +// ------------------------------------------------------------------------- +// +// Function = CPSFUNC_SET_DMPUB_HIDEBITS +// +// This function let the caller hide a set of predefined OPTITEMS in the +// pages that was created using PSUIPAGEINSERT_PCOMPROPSHEETUI or +// CPSFUNC_ADD_PCOMPROPSHEETUI with pDlgPage equal to +// CPSUI_PDLGPAGE_DOCPROP or CPSUI_PDLGPAGE_ADVDOCPROP. +// +// This function MUST called BEFORE the DOCPROP or ADVDOCPROP property +// sheet pages are added using PSUIPAGEINSERT_PCOMPROPSHEETUI or +// CPSFUNC_ADD_PCOMPROPSHEETUI. +// +// Parameters: +// +// lParam1 - prdefined bit array masks to specified which DOCPROP item to +// be hidden. Each DMPUB item bit can be generate using macro +// MAKE_DMPUB_HIDEBIT() and all items can be OR together. +// +// lParam2 - Not used, MUST be 0 +// +// +// Return Value: +// +// The return value is equal to lParam1 if this function is called before +// DOCPROP or ADVDOCPROP pages are added. Return value is zero if these +// pages already added which means failure. +// +// ------------------------------------------------------------------------- +// +// Function = CPSFUNC_IGNORE_CPSUI_PSN_APPLY +// +// This function let caller control how CPSUI process PSN_APPLY messages +// for pages added through CPSFUNC_ADD_PCOMPROPSHEETUI or +// CPSFUNC_INSERT_PSUIPAGE with type of PSUIPAGEINSERT_PROPSHEETPAGE. +// +// If this function never called, the Default CPSUI behavior is to process +// PSN_APPLY messages. +// +// Parameters: +// +// lParam1 - Handle to the page returned from pages added by using +// CPSFUNC_ADD_PCOMPROPSHEETUI or CPSFUNC_INSERT_PSUIPAGE with +// type of PSUIPAGEINSERT_PROPSHEETPAGE. +// +// lParam2 - A non-zero value indicate to IGNORE the PSN_APPLY messages +// for pages handle of lParam1. +// +// A zero value to have CPSUI nomally process (not ignored) the +// PSN_APPLY messages for pages handle of lParam1. +// +// WARNING: if a PSN_APPLY messages are ignored, the caller must +// simulate a PSN_APPLY using CPSFUNC_DO_APPLY_CPSUI +// function or all changes WILL NOT applied, this is +// true even user hit 'OK' button. +// +// Return Value: +// +// the return value is zero if function failed, or non-zero to indicate +// the function is successful. +// +// ------------------------------------------------------------------------- +// +// Function = CPSFUNC_DO_APPLY_CPSUI +// +// This function let caller simulate an apply (PSN_APPLY) to the pages +// which added through CPSFUNC_ADD_PCOMPROPSHEETUI or +// CPSFUNC_INSERT_PSUIPAGE with type of PSUIPAGEINSERT_PROPSHEETPAGE. +// +// Parameters: +// +// lParam1 - Handle to the page returned from pages added by using +// CPSFUNC_ADD_PCOMPROPSHEETUI or CPSFUNC_INSERT_PSUIPAGE with +// type of PSUIPAGEINSERT_PROPSHEETPAGE. +// +// lParam2 - 32-bit flag to indicate how to do apply, currently only +// +// APPLYCPSUI_NO_NEWDEF +// +// The APPLYCPSUI_NO_NEWDEF bit specified that after the +// apply is done the undo buffer for all OPTITEMs still +// remain unchanged, this make next undo still possible. +// +// If APPLYCPSUI_NO_NEWDEF bit is clear then undo buffers +// are re-initialized after apply is done, the current +// changes for all OPTITEMs become the new undo default. +// +// +// APPLYCPSUI_OK_CANCEL_BUTTON +// +// If bit is set then it specified the apply is simulate +// a user hit 'Ok' or 'Cancel' button, if this bit is +// clear then it simulate a user hit 'Close' or 'Apply' +// button. If caller getting a PSN_APPLY message, it can +// simulated using passed PSHNOTIFY (passed as lParam in +// WM_NOTIFY message) structure to determine how to set +// this bit as follow. +// +// if PSHNOTIFY.lParam == 0, then clear this bit +// otherwise set this bit. +// +// +// Return Value: +// +// the return value is less or equal to zero if it encounter an error and +// apply failed (the active page will be switch to these pages). +// +// If return value is greater than zero then changes were applied and +// function sucessful. +// +// ------------------------------------------------------------------------- +// +// Function = CPSFUNC_SET_FUSION_CONTEXT +// +// This function is used to set a fusion activation context for +// the specified page. +// +// Parameters: +// +// lParam1 - handle to fusion context. compstui duplicates the handle +// prior attaching it to its internal structures, so the caller +// is not bound to keep the handle around. we release the +// passed in context handle when the compstui handle is deleted. +// +// lParam2 - not used +// +// Return Value: +// +// the return value is less or equal to zero if it encounter an error and/or +// something failed (look up the last error for details). +// +// If return value is greater than zero then the call was successful. +// +// ------------------------------------------------------------------------- +// + +#define PROPSHEETUI_REASON_INIT 0 +#define PROPSHEETUI_REASON_GET_INFO_HEADER 1 +#define PROPSHEETUI_REASON_DESTROY 2 +#define PROPSHEETUI_REASON_SET_RESULT 3 +#define PROPSHEETUI_REASON_GET_ICON 4 +#if (NTDDI_VERSION >= NTDDI_WIN8) +#define PROPSHEETUI_REASON_BEFORE_INIT 5 +#define MAX_PROPSHEETUI_REASON_INDEX 5 +#else +#define MAX_PROPSHEETUI_REASON_INDEX 4 +#endif + +#define PROPSHEETUI_INFO_VERSION 0x0100 + +#define PSUIINFO_UNICODE 0x0001 + +typedef struct _PROPSHEETUI_INFO { + WORD cbSize; + WORD Version; + WORD Flags; + WORD Reason; + HANDLE hComPropSheet; + PFNCOMPROPSHEET pfnComPropSheet; + LPARAM lParamInit; + ULONG_PTR UserData; + ULONG_PTR Result; + } PROPSHEETUI_INFO, *PPROPSHEETUI_INFO; + + +// +// For the PROPSHEETUI_REASON_GET_ICON call which lParam is a pointer to +// PROPSHEETUI_GETICON_INFO +// + +typedef struct _PROPSHEETUI_GETICON_INFO { + WORD cbSize; + WORD Flags; + WORD cxIcon; + WORD cyIcon; + HICON hIcon; + } PROPSHEETUI_GETICON_INFO, *PPROPSHEETUI_GETICON_INFO; + + +typedef LONG (FAR WINAPI *PFNPROPSHEETUI)(PPROPSHEETUI_INFO pPSUIInfo, + LPARAM lParam); + + +// +// PFNPROPSHEETUI +// +// This function is user defined function which will be called by the common +// UI when a caller wish to include the executable property sheets. +// +// pPSUIInfo - Pointer to PROPSHEETUI_INFO below for description of +// PROPSHEETUI_INFO. +// +// If this pointer is NULL then this function is not called from +// common UI, and lParam should be used to determined the +// action and outcome of this function. +// +// lParam - A LPARAM intended for this function depends on the reason. +// If pPSUIInfo is NULL then this function is not called from +// common UI, the lParam is the parameter which agreed with +// the caller. +// +// if pPSUIInfo is not NULL then this function assume the call +// is from the common UI. lParam has following meaning depends +// on the reason field. +// +// PROPSHEETUI_REASON_BEFORE_INIT +// +// This value is new to Window 8 and provided only to the original +// PFNPROPSHEETUI parameter passed to CommonPropertySheetUI. +// +// This is used between common UI and the system provided config +// module for v4 printer drivers and should be ignored by v3 drivers. +// +// PROPSHEETUI_REASON_INIT +// +// The lParam is either passed from CPSFUNC_ADD_PFNPROPSHEETUI +// callback function's second parameter (lParam2) or it is +// from CommonPropertySheetUI()'s lParam (seccond parameter) +// without any modification. +// +// The lParam MUST NOT be a variable or a pointer to memory +// block which resides on the caller function's stack, since +// after this function exit, the lParam will become invalid +// and can cause fatal system error. +// +// The lParam parameter is copied to the lParamInit field in +// PROPSHEETUI_INFO data structure. The lParamInit field +// will be passed to all subsequent pfnPropSheetUI() calls +// without any modification. +// +// +// PROPSHEETUI_REASON_GET_INFO_HEADER: +// +// lParam is a pointer to the PROPSHEETUI_INFO_HEADER data +// structure. this function must correctly fill this structure +// fields before it returned. +// +// +// PROPSHEETUI_REASON_DESTROY +// +// lParam is zero to indicate the destroy is cause either by a +// caller calling CPSFUNC_DELETE_HCOMPROPSHEET or failed +// in caller's CPSFUNC_ADD_xxxx. +// +// lParam is non zero to indicate the destroy is cause by +// exiting from the property sheet user interface. +// +// +// PROPSHEETUI_REASON_SET_RESULT +// +// lParam is a pointer to SETRESULT_INFO data structure. +// Fields in SETRESULT_INFO data structure is set to following +// +// hSetResult: Handle to the common UI property sheet +// pages which added by the CPSFUNC_ADD_xxx +// callback function indices. +// +// Result: The result from the hSetResult to be set. +// When return greater than zero then Result +// in this field is set to its parent. +// +// +// PROPSHEETUI_REASON_GET_ICON +// +// lParam is a pointer to PROPSHEETUI_GETICON_INFO data +// structure. Fields in PROPSHEETUI_GETICON_INFO data +// structure are set to following +// +// cxIcon = cx Icon size in pixel +// cyIcon = cy Icon size in pixel +// hIcon = Initial to NULL, and this function must put +// the created icon handle in this field before +// returned. +// + + +// +// PROPSHEETUI_INFO +// +// This structure is used when common UI calling the caller passed function +// entry point PFNPROPSHEETUI, the pfnPropSheetUI() return a LONG to +// indicate result of this function. +// +// When the pfnPropSheetUI() returned, it must also put the required result +// in the Result field, each PROPSHEETUI_REASON_xxx has different required +// result as describe below. +// +// +// +// cbSize - sizeof this structure (PROPSHEETUI_INFO) +// +// Version - the PROPSHEETUI_INFO data structure version. Current +// version is set to PROPSHEETUI_INFO_VERSION +// +// Flags - One or more following is may be defined +// +// PSUIINFO_UNICODE +// +// The caller's executable was original compiled was +// indented using unicode. +// +// +// Reason - Following reasons are defined. +// +// PROPSHEETUI_REASON_INIT +// +// When first time the pfnPropSheetUI() called, this +// reason is used to have the function initialize +// itself and use the pfnComPropSheet() function +// pointer provided to add new pages to the +// hComPropSheet handle passed. The UserData in this +// data structure is initially set equal to zero (0). +// +// * Return > 0 to indicate sucesful and <= 0 to +// indicate error. +// +// *NOTE* +// +// The lParam MUST NOT be a variable or a pointer to +// memory block which resides on the caller function's +// stack, since after this function exit, the lParam +// will become invalid and can cause fatal system +// error. +// +// If this function reason returned failed ( <= 0), +// this function (pfnPropSheetUI) will received a +// PROPSHEETUI_REASON_DESTROY function reason right +// after this function reason returned. +// +// +// PROPSHEETUI_REASON_GET_INFO_HEADER +// +// It is called after the PROPSHEETUI_REASON_INIT is +// successful returned. This reason is used to asked +// the function fill in the PROPSHEETUI_INFO_HEADER +// for pop-up the property sheet dialog boxes. +// +// lParam in this reason is a pointer to the +// PROPSHEETUI_INFO_HEADER data structure, following +// fields are requrested to be filled in. +// +// Flags - PSUIHDRF_xxx flags +// pTitle - The property sheet title +// hWndParent - handle to the parent of property +// sheet pages. +// hInst - Instance data handle for this +// function. +// hIcon +// IconID - Icon used on the title bar. +// +// * Return > 0 to indicate sucesful and pop-up the +// property sheet dialog boxes or returned <= 0 to +// indicate error (not property sheet UI appeared) +// +// +// PROPSHEETUI_REASON_DESTROY +// +// When the property sheet ready to dismissed or the +// caller is delete the common UI pages added by the +// pfnPropSheetUI(), the common UI will call this +// entry point to have it de-initialized itself and +// free up all the memory used for this function +// instance. The UserData field passed is the +// 'UserData' field which returned from previous +// PROPSHEETUI_REASON_xxxx. +// +// When this function called, all hComPropSheet's +// children are desotroyed and children's common UI +// handles are not longer valid. +// +// * Return > 0 to indicate sucesful and <= 0 to +// indicate error. +// +// +// PROPSHEETUI_REASON_SET_RESULT +// +// The reason is used when an added handle from +// CPSFUNC_ADD_xxxx whant to return the result to +// this pfnPropSheetUI() caller. +// +// The lParam in second parameter is a pointer to a +// SETRESULT_INFO data structure. +// +// hSetResult: specified the common UI property +// sheet page handle which added by +// this function using +// CPSFUNC_ADD_xxx indicies. +// +// Result: Specified the Result to be set to +// this pfnPropSheetUI() form the +// hSetResult property sheet page +// handle. If return value is greater +// than zero then the value in this +// Result field will be set to its +// parent if one exist, at this case +// this function can alter the Result +// field value for its parent. +// +// * Returned greater than zero to continue send to +// its parent, else it stop sending the Result filed +// value to its parent. +// +// +// PROPSHEETUI_REASON_GET_ICON +// +// The reason is used to retrived the Icon which +// represent this pfnPropSheetUI(). +// +// lParam is a pointer to PROPSHEETUI_GETICON_INFO ' +// data structure. Fields in PROPSHEETUI_GETICON_INFO +// data structure are set to following +// +// cxIcon = cx Icon size in pixel +// cyIcon = cy Icon size in pixel +// hIcon = Initial to NULL, and this function +// must put the created icon handle in +// this field before return. +// +// +// * Return > 0 to indicate sucesful (hIcon is the +// requested icon handle). Return = 0 to indicate +// no icon available, or return < 0 to indicate an +// error. +// +// *NOTE* +// +// * For all PROPSHEETUI_REASON_xxx, the function can set new +// user defined DWORD data in the PROPSHEETUI_INFO data +// structure's UserData field. +// +// * For all PROPSHEETUI_REASON_xxx, the function can set new +// pfnPropSheetUI() DWORD result in PROPSHEETUI_INFO data +// structure's Result field. +// +// +// hComPropSheet - Handle to the COMPROPSHEETPAGE which this function should +// used as hComPropSheet parameter when calling +// pfnComPropSheet() to add or delete common UI property +// sheet pages. The hComPropSheet is the instance handle to +// pfnPropSheetUI() function. +// +// pfnComPropSheet - Pointer to the common UI callback function which for the +// pfnPropSheetUI() to add, delete, set user data, for a +// completed set of callback, see CPSFUNC_xxx descriptions +// above. +// +// lParamInit - The lParam originally passed duning the the first call +// reason PROPSHEETUI_REASON_INIT. The lParamInit will be +// passed to each PROPSHEETUI_REASON_xxx calls. +// +// UserData - the UserData field is an IN and OUT parameter for each +// of the Reason, +// +// PROPSHEETUI_REASON_INIT +// +// IN: Initial set to zero (0). +// +// OUT: Specified new callee's own user data which +// will be passed back to other reason calls. +// +// +// PROPSHEETUI_REASON_DESTROY +// PROPSHEETUI_REASON_SET_RESULT +// PROPSHEETUI_REASON_GET_INFO_HEADER +// +// IN: The UserData specified at time when returned +// from the previous PROPSHEETUI_REASON_xxx +// +// OUT: Specified new callee's own user data which +// will be passed back to other reason calls. +// +// +// Result - The Result field is an IN and OUT parameter for each of +// the reason. +// +// PROPSHEETUI_REASON_INIT +// +// IN: Set to zero (0). +// +// OUT: Set to default result of this PropSheetUI() +// function. +// +// +// PROPSHEETUI_REASON_DESTROY +// PROPSHEETUI_REASON_GET_INFO_HEADER +// PROPSHEETUI_REASON_SET_RESULT +// +// IN: The current 'Result' returned from previous +// PROPSHEETUI_REASON_xxx function. +// +// OUT: Set the new result of this PropSheetUI() +// function. +// +// + + +#define PSUIHDRF_OBSOLETE 0x0001 +#define PSUIHDRF_NOAPPLYNOW 0x0002 +#define PSUIHDRF_PROPTITLE 0x0004 +#define PSUIHDRF_USEHICON 0x0008 +#define PSUIHDRF_DEFTITLE 0x0010 +#define PSUIHDRF_EXACT_PTITLE 0x0020 + +typedef struct _PROPSHEETUI_INFO_HEADER { + WORD cbSize; + WORD Flags; + LPTSTR pTitle; + HWND hWndParent; + HINSTANCE hInst; + union { + HICON hIcon; + ULONG_PTR IconID; + } DUMMYUNIONNAME; + } PROPSHEETUI_INFO_HEADER, *PPROPSHEETUI_INFO_HEADER; + +// +// PROPSHEETUI_INFO_HEADER +// +// This data structure is used when common UI ready to pop-up the property +// sheet page dialog boxes and it asked caller to provide more information. +// +// Common property sheet UI passed this data structure as lParam when it call +// provided pfnPropSheetUI() with PROPSHEETUI_REASON_GET_INFO_HEADER reason. +// +// +// cbSize - size of this structure +// +// Flags - PSUIHDRF_xxxx flags +// +// PSUIHDRF_OBSOLETE +// +// Not used, must not set this bit +// +// +// PSUIHDRF_NOAPPLYNOW +// +// Remove 'Apply Now' button. +// +// +// PSUIHDRF_PROPTITLE +// +// Automatically include 'Properties' in the title bar +// +// +// PSUIHDRF_USEHICON +// +// If this bit is specified then hIcon union field is +// a valid handle to the icon otherwise the IconID is +// the either caller's resource ID or common UI standard +// icon ID. +// +// PSUIHDRF_DEFTITLE +// +// Automatically include 'Default' in the title bar, the +// 'Default' always added right after pTitle and before +// 'Properties' if PSUIHDRF_PROPTITLE flag is set. +// +// PSUIHDRF_EXACT_PTITLE +// +// This flag indicate the pTitle set in this structure +// will be use without any modification by the compstui +// ie. compstui will not modified pTitle in any way and +// it will ignored PSUIHDRF_PROPTITLE, PSUIHDRF_DEFTITLE +// +// +// pTitle - Pointer to the NULL terminated caption name for the +// property sheets. +// +// ** See LPTSTR typedef description above +// +// hWndParent - The handle of the window which will be parent of the common +// UI property sheets, if NULL then current active window for +// the calling thread is used. +// +// hInst - the caller's handle to its instance. Commom UI use this +// handle to load caller's icon and other resources. +// +// hIcon +// IconID - Specified the icon which put on the title bar, it either a +// handle to the icon or a icon resource ID depends on the +// PSUIHDRF_USEHICON flag. +// + + + +// +// LONG +// CommonPropertySheetUI( +// HWND hWndOwner, +// PFNPROPSHEETUI pfnPropSheetUI, +// LPARAM lParam, +// LPDWORD pResult +// ); +// +// +// The CommonPropSheetUI is the main entry point for the common property sheet +// user interface. The original caller that wish to using common UI to pop-up +// property sheet will call this function and passed its own PFNPROPSHEETUI +// function address and a long parameter. +// +// If pfnPropSheetUI function return a LONG number greater than zero (0) then +// common UI will pop-up the property sheet page dialog boxes, when Property +// sheet pages is finished. (either hit Ok or Cancel) it will return the +// result of CPSUI_xxxx back to the caller. +// +// If pfnPropSheetUI function return a LONG number equal or less than zero (0) +// then it will return the CPSUI_CANCEL back to caller without pop-up the +// property sheet page dialog boxes. +// +// +// Parameters: +// +// hWndOwner - Window handle for the owner of this proerty sheet +// pages dialog boxes. +// +// pfnPropSheetUI - a PFNPROPSHEETUI function pointer which is used by +// the caller to add its property sheet pages. +// +// lParam - a long parameter will be passed to the pfnPropSheetUI +// funciton. The common UI called the pfnPropSheetUI as +// +// PROPSHEETUI_INFO PSUIInfo; +// +// pfnPropSheetUI(&PSUIInfo, lParam); +// +// The caller must use pfnComPropSheet() to add/delete +// pages. When it is done adding pages, it retuned +// greater than zero to indicate successful, and return +// less or equal to zero to indicate failure. +// +// pResult - a pointer to DWORD which received the final result +// of pfnPropSheetUI() funciton, this result is a copy +// from Result field of PROPSHEETUI_INFO data structure +// which passed to the pfnPropSheetUI() as the first +// parameter. The pResult only will be set if the +// returned value from CommonPropertySheetUI() is not +// ERR_CPSUI_xxx. +// +// if pResult is NULL then common UI will not return +// pfnPropSheetUI()'s result back. +// +// +// Return Value: +// +// LONG - < 0 - property page does not displayed and +// ERR_CPSUI_xxx is the error code +// CPSUI_OK - property page displayed. +// CPSUI_RESTARTWINDOWS - property page displayed and need to +// restart window to take effect +// CPSUI_REBOOTSYSTEM - property page dispalyed and need +// to reboot system to take effect +// +// + + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +LONG +APIENTRY +CommonPropertySheetUIA( + HWND hWndOwner, + __callback PFNPROPSHEETUI pfnPropSheetUI, + LPARAM lParam, + _Out_opt_ LPDWORD pResult + ); + +LONG +APIENTRY +CommonPropertySheetUIW( + HWND hWndOwner, + __callback PFNPROPSHEETUI pfnPropSheetUI, + LPARAM lParam, + _Out_opt_ LPDWORD pResult + ); + +#else + +LONG +APIENTRY +CommonPropertySheetUIA( + HWND hWndOwner, + PFNPROPSHEETUI pfnPropSheetUI, + LPARAM lParam, + LPDWORD pResult + ); + +LONG +APIENTRY +CommonPropertySheetUIW( + HWND hWndOwner, + PFNPROPSHEETUI pfnPropSheetUI, + LPARAM lParam, + LPDWORD pResult + ); + +#endif + + +#ifdef UNICODE +#define CommonPropertySheetUI CommonPropertySheetUIW +#else +#define CommonPropertySheetUI CommonPropertySheetUIA +#endif + + + +// +// GetCPSUIUserData() and SetCPSUIUserData() is used for the pages added +// by the CPSFUNC_ADD_PCOMPROPSHEETUI. The caller add this function and has +// sub class dialog procedure should not set DWLP_USERDATA but calling these +// function instead, otherwise the system can failed. +// + +ULONG_PTR +APIENTRY +GetCPSUIUserData( + HWND hDlg + ); + +BOOL +APIENTRY +SetCPSUIUserData( + HWND hDlg, + ULONG_PTR CPSUIUserData + ); + + +#define CPSUI_CANCEL 0 +#define CPSUI_OK 1 +#define CPSUI_RESTARTWINDOWS 2 +#define CPSUI_REBOOTSYSTEM 3 + +#define ERR_CPSUI_GETLASTERROR -1 +#define ERR_CPSUI_ALLOCMEM_FAILED -2 +#define ERR_CPSUI_INVALID_PDATA -3 +#define ERR_CPSUI_INVALID_LPARAM -4 +#define ERR_CPSUI_NULL_HINST -5 +#define ERR_CPSUI_NULL_CALLERNAME -6 +#define ERR_CPSUI_NULL_OPTITEMNAME -7 +#define ERR_CPSUI_NO_PROPSHEETPAGE -8 +#define ERR_CPSUI_TOO_MANY_PROPSHEETPAGES -9 +#define ERR_CPSUI_CREATEPROPPAGE_FAILED -10 +#define ERR_CPSUI_MORE_THAN_ONE_TVPAGE -11 +#define ERR_CPSUI_MORE_THAN_ONE_STDPAGE -12 +#define ERR_CPSUI_INVALID_PDLGPAGE -13 +#define ERR_CPSUI_INVALID_DLGPAGE_CBSIZE -14 +#define ERR_CPSUI_TOO_MANY_DLGPAGES -15 +#define ERR_CPSUI_INVALID_DLGPAGEIDX -16 +#define ERR_CPSUI_SUBITEM_DIFF_DLGPAGEIDX -17 +#define ERR_CPSUI_NULL_POPTITEM -18 +#define ERR_CPSUI_INVALID_OPTITEM_CBSIZE -19 +#define ERR_CPSUI_INVALID_OPTTYPE_CBSIZE -20 +#define ERR_CPSUI_INVALID_OPTTYPE_COUNT -21 +#define ERR_CPSUI_NULL_POPTPARAM -22 +#define ERR_CPSUI_INVALID_OPTPARAM_CBSIZE -23 +#define ERR_CPSUI_INVALID_EDITBOX_PSEL -24 +#define ERR_CPSUI_INVALID_EDITBOX_BUF_SIZE -25 +#define ERR_CPSUI_INVALID_ECB_CBSIZE -26 +#define ERR_CPSUI_NULL_ECB_PTITLE -27 +#define ERR_CPSUI_NULL_ECB_PCHECKEDNAME -28 +#define ERR_CPSUI_INVALID_DMPUBID -29 +#define ERR_CPSUI_INVALID_DMPUB_TVOT -30 +#define ERR_CPSUI_CREATE_TRACKBAR_FAILED -31 +#define ERR_CPSUI_CREATE_UDARROW_FAILED -32 +#define ERR_CPSUI_CREATE_IMAGELIST_FAILED -33 +#define ERR_CPSUI_INVALID_TVOT_TYPE -34 +#define ERR_CPSUI_INVALID_LBCB_TYPE -35 +#define ERR_CPSUI_SUBITEM_DIFF_OPTIF_HIDE -36 +#define ERR_CPSUI_INVALID_PUSHBUTTON_TYPE -38 +#define ERR_CPSUI_INVALID_EXTPUSH_CBSIZE -39 +#define ERR_CPSUI_NULL_EXTPUSH_DLGPROC -40 +#define ERR_CPSUI_NO_EXTPUSH_DLGTEMPLATEID -41 +#define ERR_CPSUI_NULL_EXTPUSH_CALLBACK -42 +#define ERR_CPSUI_DMCOPIES_USE_EXTPUSH -43 +#define ERR_CPSUI_ZERO_OPTITEM -44 + + +#define ERR_CPSUI_FUNCTION_NOT_IMPLEMENTED -9999 +#define ERR_CPSUI_INTERNAL_ERROR -10000 + +#endif // (!defined(RC_INVOKED)) + + + +// +//**************************************************************************** +//* * +//* Common Property Sheet UI resource ID for the ICONs and STRINGs * +//* * +//* The Resource ID from 64000 to 65535 are reserved for common UI and must * +//* not used as caller resource ID else the string, icon loading will not be * +//* correct. * +//* * +//**************************************************************************** +// + + +// +// Common UI standard 32x32, 16x16 color and monochrome Icon IDs +// + +#define IDI_CPSUI_ICONID_FIRST 64000 + +#define IDI_CPSUI_EMPTY 64000 +#define IDI_CPSUI_SEL_NONE 64001 +#define IDI_CPSUI_WARNING 64002 +#define IDI_CPSUI_NO 64003 +#define IDI_CPSUI_YES 64004 +#define IDI_CPSUI_FALSE 64005 +#define IDI_CPSUI_TRUE 64006 +#define IDI_CPSUI_OFF 64007 +#define IDI_CPSUI_ON 64008 +#define IDI_CPSUI_PAPER_OUTPUT 64009 +#define IDI_CPSUI_ENVELOPE 64010 +#define IDI_CPSUI_MEM 64011 +#define IDI_CPSUI_FONTCARTHDR 64012 +#define IDI_CPSUI_FONTCART 64013 +#define IDI_CPSUI_STAPLER_ON 64014 +#define IDI_CPSUI_STAPLER_OFF 64015 +#define IDI_CPSUI_HT_HOST 64016 +#define IDI_CPSUI_HT_DEVICE 64017 +#define IDI_CPSUI_TT_PRINTASGRAPHIC 64018 +#define IDI_CPSUI_TT_DOWNLOADSOFT 64019 +#define IDI_CPSUI_TT_DOWNLOADVECT 64020 +#define IDI_CPSUI_TT_SUBDEV 64021 +#define IDI_CPSUI_PORTRAIT 64022 +#define IDI_CPSUI_LANDSCAPE 64023 +#define IDI_CPSUI_ROT_LAND 64024 +#define IDI_CPSUI_AUTOSEL 64025 +#define IDI_CPSUI_PAPER_TRAY 64026 +#define IDI_CPSUI_PAPER_TRAY2 64027 +#define IDI_CPSUI_PAPER_TRAY3 64028 +#define IDI_CPSUI_TRANSPARENT 64029 +#define IDI_CPSUI_COLLATE 64030 +#define IDI_CPSUI_DUPLEX_NONE 64031 +#define IDI_CPSUI_DUPLEX_HORZ 64032 +#define IDI_CPSUI_DUPLEX_VERT 64033 +#define IDI_CPSUI_RES_DRAFT 64034 +#define IDI_CPSUI_RES_LOW 64035 +#define IDI_CPSUI_RES_MEDIUM 64036 +#define IDI_CPSUI_RES_HIGH 64037 +#define IDI_CPSUI_RES_PRESENTATION 64038 +#define IDI_CPSUI_MONO 64039 +#define IDI_CPSUI_COLOR 64040 +#define IDI_CPSUI_DITHER_NONE 64041 +#define IDI_CPSUI_DITHER_COARSE 64042 +#define IDI_CPSUI_DITHER_FINE 64043 +#define IDI_CPSUI_DITHER_LINEART 64044 +#define IDI_CPSUI_SCALING 64045 +#define IDI_CPSUI_COPY 64046 +#define IDI_CPSUI_HTCLRADJ 64047 +#define IDI_CPSUI_HALFTONE_SETUP 64048 +#define IDI_CPSUI_WATERMARK 64049 +#define IDI_CPSUI_ERROR 64050 +#define IDI_CPSUI_ICM_OPTION 64051 +#define IDI_CPSUI_ICM_METHOD 64052 +#define IDI_CPSUI_ICM_INTENT 64053 +#define IDI_CPSUI_STD_FORM 64054 +#define IDI_CPSUI_OUTBIN 64055 +#define IDI_CPSUI_OUTPUT 64056 +#define IDI_CPSUI_GRAPHIC 64057 +#define IDI_CPSUI_ADVANCE 64058 +#define IDI_CPSUI_DOCUMENT 64059 +#define IDI_CPSUI_DEVICE 64060 +#define IDI_CPSUI_DEVICE2 64061 +#define IDI_CPSUI_PRINTER 64062 +#define IDI_CPSUI_PRINTER2 64063 +#define IDI_CPSUI_PRINTER3 64064 +#define IDI_CPSUI_PRINTER4 64065 +#define IDI_CPSUI_OPTION 64066 +#define IDI_CPSUI_OPTION2 64067 +#define IDI_CPSUI_STOP 64068 +#define IDI_CPSUI_NOTINSTALLED 64069 +#define IDI_CPSUI_WARNING_OVERLAY 64070 +#define IDI_CPSUI_STOP_WARNING_OVERLAY 64071 +#define IDI_CPSUI_GENERIC_OPTION 64072 +#define IDI_CPSUI_GENERIC_ITEM 64073 +#define IDI_CPSUI_RUN_DIALOG 64074 +#define IDI_CPSUI_QUESTION 64075 +#define IDI_CPSUI_FORMTRAYASSIGN 64076 +#define IDI_CPSUI_PRINTER_FOLDER 64077 +#define IDI_CPSUI_INSTALLABLE_OPTION 64078 +#define IDI_CPSUI_PRINTER_FEATURE 64079 +#define IDI_CPSUI_DEVICE_FEATURE 64080 +#define IDI_CPSUI_FONTSUB 64081 +#define IDI_CPSUI_POSTSCRIPT 64082 +#define IDI_CPSUI_TELEPHONE 64083 +#define IDI_CPSUI_DUPLEX_NONE_L 64084 +#define IDI_CPSUI_DUPLEX_HORZ_L 64085 +#define IDI_CPSUI_DUPLEX_VERT_L 64086 +#define IDI_CPSUI_LF_PEN_PLOTTER 64087 +#define IDI_CPSUI_SF_PEN_PLOTTER 64088 +#define IDI_CPSUI_LF_RASTER_PLOTTER 64089 +#define IDI_CPSUI_SF_RASTER_PLOTTER 64090 +#define IDI_CPSUI_ROLL_PAPER 64091 +#define IDI_CPSUI_PEN_CARROUSEL 64092 +#define IDI_CPSUI_PLOTTER_PEN 64093 +#define IDI_CPSUI_MANUAL_FEED 64094 +#define IDI_CPSUI_FAX 64095 +#define IDI_CPSUI_PAGE_PROTECT 64096 +#define IDI_CPSUI_ENVELOPE_FEED 64097 +#define IDI_CPSUI_FONTCART_SLOT 64098 +#define IDI_CPSUI_LAYOUT_BMP_PORTRAIT 64099 +#define IDI_CPSUI_LAYOUT_BMP_ARROWL 64100 +#define IDI_CPSUI_LAYOUT_BMP_ARROWS 64101 +#define IDI_CPSUI_LAYOUT_BMP_BOOKLETL 64102 +#define IDI_CPSUI_LAYOUT_BMP_BOOKLETP 64103 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define IDI_CPSUI_LAYOUT_BMP_ARROWLR 64104 +#define IDI_CPSUI_LAYOUT_BMP_ROT_PORT 64105 +#define IDI_CPSUI_LAYOUT_BMP_BOOKLETL_NB 64106 +#define IDI_CPSUI_LAYOUT_BMP_BOOKLETP_NB 64107 +#define IDI_CPSUI_ROT_PORT 64110 +#define IDI_CPSUI_NUP_BORDER 64111 +#define IDI_CPSUI_ICONID_LAST 64111 +#else +#define IDI_CPSUI_ICONID_LAST 64103 +#endif + +// +// Common UI standard String IDs +// + + +#define IDS_CPSUI_STRID_FIRST 64700 + +#define IDS_CPSUI_SETUP 64700 +#define IDS_CPSUI_MORE 64701 +#define IDS_CPSUI_CHANGE 64702 +#define IDS_CPSUI_OPTION 64703 +#define IDS_CPSUI_OF 64704 +#define IDS_CPSUI_RANGE_FROM 64705 +#define IDS_CPSUI_TO 64706 +#define IDS_CPSUI_COLON_SEP 64707 +#define IDS_CPSUI_LEFT_ANGLE 64708 +#define IDS_CPSUI_RIGHT_ANGLE 64709 +#define IDS_CPSUI_SLASH_SEP 64710 +#define IDS_CPSUI_PERCENT 64711 +#define IDS_CPSUI_LBCB_NOSEL 64712 +#define IDS_CPSUI_PROPERTIES 64713 +#define IDS_CPSUI_DEFAULTDOCUMENT 64714 +#define IDS_CPSUI_DOCUMENT 64715 +#define IDS_CPSUI_ADVANCEDOCUMENT 64716 +#define IDS_CPSUI_PRINTER 64717 +#define IDS_CPSUI_AUTOSELECT 64718 +#define IDS_CPSUI_PAPER_OUTPUT 64719 +#define IDS_CPSUI_GRAPHIC 64720 +#define IDS_CPSUI_OPTIONS 64721 +#define IDS_CPSUI_ADVANCED 64722 +#define IDS_CPSUI_STDDOCPROPTAB 64723 +#define IDS_CPSUI_STDDOCPROPTVTAB 64724 +#define IDS_CPSUI_DEVICEOPTIONS 64725 +#define IDS_CPSUI_FALSE 64726 +#define IDS_CPSUI_TRUE 64727 +#define IDS_CPSUI_NO 64728 +#define IDS_CPSUI_YES 64729 +#define IDS_CPSUI_OFF 64730 +#define IDS_CPSUI_ON 64731 +#define IDS_CPSUI_DEFAULT 64732 +#define IDS_CPSUI_ERROR 64733 +#define IDS_CPSUI_NONE 64734 +#define IDS_CPSUI_NOT 64735 +#define IDS_CPSUI_EXIST 64736 +#define IDS_CPSUI_NOTINSTALLED 64737 +#define IDS_CPSUI_ORIENTATION 64738 +#define IDS_CPSUI_SCALING 64739 +#define IDS_CPSUI_NUM_OF_COPIES 64740 +#define IDS_CPSUI_SOURCE 64741 +#define IDS_CPSUI_PRINTQUALITY 64742 +#define IDS_CPSUI_RESOLUTION 64743 +#define IDS_CPSUI_COLOR_APPERANCE 64744 +#define IDS_CPSUI_DUPLEX 64745 +#define IDS_CPSUI_TTOPTION 64746 +#define IDS_CPSUI_FORMNAME 64747 +#define IDS_CPSUI_ICM 64748 +#define IDS_CPSUI_ICMMETHOD 64749 +#define IDS_CPSUI_ICMINTENT 64750 +#define IDS_CPSUI_MEDIA 64751 +#define IDS_CPSUI_DITHERING 64752 +#define IDS_CPSUI_PORTRAIT 64753 +#define IDS_CPSUI_LANDSCAPE 64754 +#define IDS_CPSUI_ROT_LAND 64755 +#define IDS_CPSUI_COLLATE 64756 +#define IDS_CPSUI_COLLATED 64757 +#define IDS_CPSUI_PRINTFLDSETTING 64758 +#define IDS_CPSUI_DRAFT 64759 +#define IDS_CPSUI_LOW 64760 +#define IDS_CPSUI_MEDIUM 64761 +#define IDS_CPSUI_HIGH 64762 +#define IDS_CPSUI_PRESENTATION 64763 +#define IDS_CPSUI_COLOR 64764 +#define IDS_CPSUI_GRAYSCALE 64765 +#define IDS_CPSUI_MONOCHROME 64766 +#define IDS_CPSUI_SIMPLEX 64767 +#define IDS_CPSUI_HORIZONTAL 64768 +#define IDS_CPSUI_VERTICAL 64769 +#define IDS_CPSUI_LONG_SIDE 64770 +#define IDS_CPSUI_SHORT_SIDE 64771 +#define IDS_CPSUI_TT_PRINTASGRAPHIC 64772 +#define IDS_CPSUI_TT_DOWNLOADSOFT 64773 +#define IDS_CPSUI_TT_DOWNLOADVECT 64774 +#define IDS_CPSUI_TT_SUBDEV 64775 +#define IDS_CPSUI_ICM_BLACKWHITE 64776 +#define IDS_CPSUI_ICM_NO 64777 +#define IDS_CPSUI_ICM_YES 64778 +#define IDS_CPSUI_ICM_SATURATION 64779 +#define IDS_CPSUI_ICM_CONTRAST 64780 +#define IDS_CPSUI_ICM_COLORMETRIC 64781 +#define IDS_CPSUI_STANDARD 64782 +#define IDS_CPSUI_GLOSSY 64783 +#define IDS_CPSUI_TRANSPARENCY 64784 +#define IDS_CPSUI_REGULAR 64785 +#define IDS_CPSUI_BOND 64786 +#define IDS_CPSUI_COARSE 64787 +#define IDS_CPSUI_FINE 64788 +#define IDS_CPSUI_LINEART 64789 +#define IDS_CPSUI_ERRDIFFUSE 64790 +#define IDS_CPSUI_HALFTONE 64791 +#define IDS_CPSUI_HTCLRADJ 64792 +#define IDS_CPSUI_USE_HOST_HT 64793 +#define IDS_CPSUI_USE_DEVICE_HT 64794 +#define IDS_CPSUI_USE_PRINTER_HT 64795 +#define IDS_CPSUI_OUTBINASSIGN 64796 +#define IDS_CPSUI_WATERMARK 64797 +#define IDS_CPSUI_FORMTRAYASSIGN 64798 +#define IDS_CPSUI_UPPER_TRAY 64799 +#define IDS_CPSUI_ONLYONE 64800 +#define IDS_CPSUI_LOWER_TRAY 64801 +#define IDS_CPSUI_MIDDLE_TRAY 64802 +#define IDS_CPSUI_MANUAL_TRAY 64803 +#define IDS_CPSUI_ENVELOPE_TRAY 64804 +#define IDS_CPSUI_ENVMANUAL_TRAY 64805 +#define IDS_CPSUI_TRACTOR_TRAY 64806 +#define IDS_CPSUI_SMALLFMT_TRAY 64807 +#define IDS_CPSUI_LARGEFMT_TRAY 64808 +#define IDS_CPSUI_LARGECAP_TRAY 64809 +#define IDS_CPSUI_CASSETTE_TRAY 64810 +#define IDS_CPSUI_DEFAULT_TRAY 64811 +#define IDS_CPSUI_FORMSOURCE 64812 +#define IDS_CPSUI_MANUALFEED 64813 +#define IDS_CPSUI_PRINTERMEM_KB 64814 +#define IDS_CPSUI_PRINTERMEM_MB 64815 +#define IDS_CPSUI_PAGEPROTECT 64816 +#define IDS_CPSUI_HALFTONE_SETUP 64817 +#define IDS_CPSUI_INSTFONTCART 64818 +#define IDS_CPSUI_SLOT1 64819 +#define IDS_CPSUI_SLOT2 64820 +#define IDS_CPSUI_SLOT3 64821 +#define IDS_CPSUI_SLOT4 64822 +#define IDS_CPSUI_LEFT_SLOT 64823 +#define IDS_CPSUI_RIGHT_SLOT 64824 +#define IDS_CPSUI_STAPLER 64825 +#define IDS_CPSUI_STAPLER_ON 64826 +#define IDS_CPSUI_STAPLER_OFF 64827 +#define IDS_CPSUI_STACKER 64828 +#define IDS_CPSUI_MAILBOX 64829 +#define IDS_CPSUI_COPY 64830 +#define IDS_CPSUI_COPIES 64831 +#define IDS_CPSUI_TOTAL 64832 +#define IDS_CPSUI_MAKE 64833 +#define IDS_CPSUI_PRINT 64834 +#define IDS_CPSUI_FAX 64835 +#define IDS_CPSUI_PLOT 64836 +#define IDS_CPSUI_SLOW 64837 +#define IDS_CPSUI_FAST 64838 +#define IDS_CPSUI_ROTATED 64839 +#define IDS_CPSUI_RESET 64840 +#define IDS_CPSUI_ALL 64841 +#define IDS_CPSUI_DEVICE 64842 +#define IDS_CPSUI_SETTINGS 64843 +#define IDS_CPSUI_REVERT 64844 +#define IDS_CPSUI_CHANGES 64845 +#define IDS_CPSUI_CHANGED 64846 +#define IDS_CPSUI_WARNING 64847 +#define IDS_CPSUI_ABOUT 64848 +#define IDS_CPSUI_VERSION 64849 +#define IDS_CPSUI_NO_NAME 64850 +#define IDS_CPSUI_SETTING 64851 +#define IDS_CPSUI_DEVICE_SETTINGS 64852 +#define IDS_CPSUI_STDDOCPROPTAB1 64853 +#define IDS_CPSUI_STDDOCPROPTAB2 64854 +#define IDS_CPSUI_PAGEORDER 64855 +#define IDS_CPSUI_FRONTTOBACK 64856 +#define IDS_CPSUI_BACKTOFRONT 64857 +#define IDS_CPSUI_QUALITY_SETTINGS 64858 +#define IDS_CPSUI_QUALITY_DRAFT 64859 +#define IDS_CPSUI_QUALITY_BETTER 64860 +#define IDS_CPSUI_QUALITY_BEST 64861 +#define IDS_CPSUI_QUALITY_CUSTOM 64862 +#define IDS_CPSUI_OUTPUTBIN 64863 +#define IDS_CPSUI_NUP 64864 +#define IDS_CPSUI_NUP_NORMAL 64865 +#define IDS_CPSUI_NUP_TWOUP 64866 +#define IDS_CPSUI_NUP_FOURUP 64867 +#define IDS_CPSUI_NUP_SIXUP 64868 +#define IDS_CPSUI_NUP_NINEUP 64869 +#define IDS_CPSUI_NUP_SIXTEENUP 64870 +#define IDS_CPSUI_SIDE1 64871 +#define IDS_CPSUI_SIDE2 64872 +#define IDS_CPSUI_BOOKLET 64873 + +#if (NTDDI_VERSION >= NTDDI_VISTA) +//NOTE: remove these poster defines when removing poster feature. +#define IDS_CPSUI_POSTER 64874 +#define IDS_CPSUI_POSTER_2x2 64875 +#define IDS_CPSUI_POSTER_3x3 64876 +#define IDS_CPSUI_POSTER_4x4 64877 + +#define IDS_CPSUI_NUP_DIRECTION 64878 +#define IDS_CPSUI_RIGHT_THEN_DOWN 64879 +#define IDS_CPSUI_DOWN_THEN_RIGHT 64880 +#define IDS_CPSUI_LEFT_THEN_DOWN 64881 +#define IDS_CPSUI_DOWN_THEN_LEFT 64882 + +//NOTE: remove these manual duplex defines when removing the feature. +#define IDS_CPSUI_MANUAL_DUPLEX 64883 +#define IDS_CPSUI_MANUAL_DUPLEX_ON 64884 +#define IDS_CPSUI_MANUAL_DUPLEX_OFF 64885 + +#define IDS_CPSUI_ROT_PORT 64886 + +//NOTE: remove this staple defines when removing the feature. +#define IDS_CPSUI_STAPLE 64887 + +#define IDS_CPSUI_BOOKLET_EDGE 64888 +#define IDS_CPSUI_BOOKLET_EDGE_LEFT 64889 +#define IDS_CPSUI_BOOKLET_EDGE_RIGHT 64890 +#define IDS_CPSUI_NUP_BORDER 64891 +#define IDS_CPSUI_NUP_BORDERED 64892 +#define IDS_CPSUI_STRID_LAST 64892 +#else +#define IDS_CPSUI_STRID_LAST 64873 +#endif + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _COMPSTUI + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/computecore.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/computecore.h new file mode 100644 index 0000000000000000000000000000000000000000..cf2dca40b55718ed66a2b5a9f36e3d71bdb8a01f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/computecore.h @@ -0,0 +1,911 @@ +// ComputeCore.h: ApiSet Contract for ext-ms-win-hyperv-compute-l1 +// Copyright (c) Microsoft Corporation. All rights reserved. + +#pragma once + +#ifndef _HYPERV_COMPUTECORE_H_ +#define _HYPERV_COMPUTECORE_H_ + +#include +#include +#include +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +// Enumerates existing compute systems. +HRESULT +WINAPI +HcsEnumerateComputeSystems( + _In_opt_ PCWSTR query, + _In_ HCS_OPERATION operation + ); + +// Enumerates existing compute systems in a given namespace. +HRESULT +WINAPI +HcsEnumerateComputeSystemsInNamespace( + _In_ PCWSTR idNamespace, + _In_opt_ PCWSTR query, + _In_ HCS_OPERATION operation + ); + +// Creates a new operation. +HCS_OPERATION +WINAPI +HcsCreateOperation( + _In_opt_ const void* context, + _In_opt_ HCS_OPERATION_COMPLETION callback + ); + +// Creates a new operation that allows registration for event notifications +HCS_OPERATION +WINAPI +HcsCreateOperationWithNotifications( + _In_ HCS_OPERATION_OPTIONS eventTypes, + _In_opt_ const void* context, + _In_ HCS_EVENT_CALLBACK callback + ); + +// Closes an operation. +void +WINAPI +HcsCloseOperation( + _In_ HCS_OPERATION operation + ); + +// Returns the context pointer of an operation. +void* +WINAPI +HcsGetOperationContext( + _In_ HCS_OPERATION operation + ); + +// Sets the context pointer for an operation. +HRESULT +WINAPI +HcsSetOperationContext( + _In_ HCS_OPERATION operation, + _In_opt_ const void* context + ); + +// Returns the handle to compute system associated with an operation. +HCS_SYSTEM +WINAPI +HcsGetComputeSystemFromOperation( + _In_ HCS_OPERATION operation + ); + +// Returns the handle to the process associated with an operation +HCS_PROCESS +WINAPI +HcsGetProcessFromOperation( + _In_ HCS_OPERATION operation + ); + +// Returns the type of an operation. +HCS_OPERATION_TYPE +WINAPI +HcsGetOperationType( + _In_ HCS_OPERATION operation + ); + +// Returns the ID that uniquely identifies an operation. +UINT64 +WINAPI +HcsGetOperationId( + _In_ HCS_OPERATION operation + ); + +// Returns the result of an operation. +HRESULT +WINAPI +HcsGetOperationResult( + _In_ HCS_OPERATION operation, + _Outptr_opt_ PWSTR* resultDocument + ); + +// Returns the result of an operation, including the process information for HcsCreateProcess +// and HcsGetProcessInfo. +HRESULT +WINAPI +HcsGetOperationResultAndProcessInfo( + _In_ HCS_OPERATION operation, + _Out_opt_ HCS_PROCESS_INFORMATION* processInformation, + _Outptr_opt_ PWSTR* resultDocument + ); + +// Adds a resource to an HCS_OPERATION. +HRESULT +WINAPI +HcsAddResourceToOperation( + _In_ HCS_OPERATION operation, + HCS_RESOURCE_TYPE type, + _In_ PCWSTR uri, + HANDLE handle + ); + +// Returns processor compatibility fields in JSON string format +HRESULT +WINAPI +HcsGetProcessorCompatibilityFromSavedState( + PCWSTR RuntimeFileName, + _Outptr_opt_ PCWSTR* ProcessorFeaturesString + ); + +// Waits for the completion of an operation and returns the result. +HRESULT +WINAPI +HcsWaitForOperationResult( + _In_ HCS_OPERATION operation, + _In_ DWORD timeoutMs, + _Outptr_opt_ PWSTR* resultDocument + ); + +// Waits for the completion of an operation and returns the result, including the process information +// for HcsCreateProcess and HcsGetProcessInfo. +HRESULT +WINAPI +HcsWaitForOperationResultAndProcessInfo( + _In_ HCS_OPERATION operation, + _In_ DWORD timeoutMs, + _Out_opt_ HCS_PROCESS_INFORMATION* processInformation, + _Outptr_opt_ PWSTR* resultDocument + ); + +// Sets a callback that is invoked on completion of an operation. +HRESULT +WINAPI +HcsSetOperationCallback( + _In_ HCS_OPERATION operation, + _In_opt_ const void* context, + _In_ HCS_OPERATION_COMPLETION callback + ); + +// Cancels an operation +HRESULT +WINAPI +HcsCancelOperation( + _In_ HCS_OPERATION operation + ); + +// Query for information or properties about a specific operation +HRESULT +WINAPI +HcsGetOperationProperties( + _In_ HCS_OPERATION operation, + _In_ PCWSTR options, + _Outptr_ PWSTR* resultDocument + ); + +/// Creates a new compute system. +HRESULT +WINAPI +HcsCreateComputeSystem( + _In_ PCWSTR id, + _In_ PCWSTR configuration, + _In_ HCS_OPERATION operation, + _In_opt_ const SECURITY_DESCRIPTOR* securityDescriptor, + _Out_ HCS_SYSTEM* computeSystem + ); + +/// Creates a new compute system in a given namespace. +HRESULT +WINAPI +HcsCreateComputeSystemInNamespace( + _In_ PCWSTR idNamespace, + _In_ PCWSTR id, + _In_ PCWSTR configuration, + _In_ HCS_OPERATION operation, + _In_opt_ const HCS_CREATE_OPTIONS* options, + _Out_ HCS_SYSTEM* computeSystem + ); + +/// Opens a handle to an existing compute system. +HRESULT +WINAPI +HcsOpenComputeSystem( + _In_ PCWSTR id, + _In_ DWORD requestedAccess, + _Out_ HCS_SYSTEM* computeSystem + ); + +/// Opens a handle to an existing compute system in a given namespace. +HRESULT +WINAPI +HcsOpenComputeSystemInNamespace( + _In_ PCWSTR idNamespace, + _In_ PCWSTR id, + _In_ DWORD requestedAccess, + _Out_ HCS_SYSTEM* computeSystem + ); + +/// Closes a handle to a compute system. +void +WINAPI +HcsCloseComputeSystem( + _In_ _Post_invalid_ HCS_SYSTEM computeSystem + ); + +/// Starts a compute system. +HRESULT +WINAPI +HcsStartComputeSystem( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Cleanly shuts down a compute system. +HRESULT +WINAPI +HcsShutDownComputeSystem( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Forcefully terminates a compute system. +HRESULT +WINAPI +HcsTerminateComputeSystem( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Forcefully terminates a compute system. +HRESULT +WINAPI +HcsCrashComputeSystem( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Pauses the execution of a compute system. +HRESULT +WINAPI +HcsPauseComputeSystem( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Resumes the execution of a compute system. +HRESULT +WINAPI +HcsResumeComputeSystem( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Saves the state of a compute system. +HRESULT +WINAPI +HcsSaveComputeSystem( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Returns properties of a compute system. +HRESULT +WINAPI +HcsGetComputeSystemProperties( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR propertyQuery + ); + +/// Modifies settings of a compute system. +HRESULT +WINAPI +HcsModifyComputeSystem( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_ PCWSTR configuration, + _In_opt_ HANDLE identity + ); + +// Waits for a compute system to exit. +HRESULT +WINAPI +HcsWaitForComputeSystemExit( + _In_ HCS_SYSTEM computeSystem, + _In_ DWORD timeoutMs, + _Outptr_opt_ PWSTR* result + ); + +/// Registers a callback function to receive notifications for the compute system. +HRESULT +WINAPI +HcsSetComputeSystemCallback( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_EVENT_OPTIONS callbackOptions, + _In_opt_ const void* context, + _In_ HCS_EVENT_CALLBACK callback + ); + +/// Initialize live migration on source +HRESULT +WINAPI +HcsInitializeLiveMigrationOnSource( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Start live migration on source +HRESULT +WINAPI +HcsStartLiveMigrationOnSource( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Start live migration transfer +HRESULT +WINAPI +HcsStartLiveMigrationTransfer( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Live migration transitions to final state +HRESULT +WINAPI +HcsFinalizeLiveMigration( + _In_ HCS_SYSTEM computeSystem, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Starts a process in a compute system. +HRESULT +WINAPI +HcsCreateProcess( + _In_ HCS_SYSTEM computeSystem, + _In_ PCWSTR processParameters, + _In_ HCS_OPERATION operation, + _In_opt_ const SECURITY_DESCRIPTOR* securityDescriptor, + _Out_ HCS_PROCESS* process + ); + +/// Opens an existing process in a compute system +HRESULT +WINAPI +HcsOpenProcess( + _In_ HCS_SYSTEM computeSystem, + _In_ DWORD processId, + _In_ DWORD requestedAccess, + _Out_ HCS_PROCESS* process + ); + +/// Closes the handle to a process in a compute system +void +WINAPI +HcsCloseProcess( + _In_ HCS_PROCESS process + ); + +/// Terminates a process in a compute system +HRESULT +WINAPI +HcsTerminateProcess( + _In_ HCS_PROCESS process, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Sends a signal to a process in a compute system +HRESULT +WINAPI +HcsSignalProcess( + _In_ HCS_PROCESS process, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR options + ); + +/// Returns the initial startup info of a process in a compute system +HRESULT +WINAPI +HcsGetProcessInfo( + _In_ HCS_PROCESS process, + _In_ HCS_OPERATION operation + ); + +/// Returns the properties of a process in a compute system +HRESULT +WINAPI +HcsGetProcessProperties( + _In_ HCS_PROCESS process, + _In_ HCS_OPERATION operation, + _In_opt_ PCWSTR propertyQuery + ); + +/// Modifies the parameters of a process in a compute system +HRESULT +WINAPI +HcsModifyProcess( + _In_ HCS_PROCESS process, + _In_ HCS_OPERATION operation, + _In_ PCWSTR settings + ); + +/// Registers a callback function to receive notifications for a process in a compute system +HRESULT +WINAPI +HcsSetProcessCallback( + _In_ HCS_PROCESS process, + _In_ HCS_EVENT_OPTIONS callbackOptions, + _In_ void* context, + _In_ HCS_EVENT_CALLBACK callback + ); + +// Waits for a process in a compute system to exit. +HRESULT +WINAPI +HcsWaitForProcessExit( + _In_ HCS_PROCESS computeSystem, + _In_ DWORD timeoutMs, + _Outptr_opt_ PWSTR* result + ); + +/// Returns properties of the Host Compute Service +HRESULT +WINAPI +HcsGetServiceProperties( + _In_opt_ PCWSTR propertyQuery, + _Outptr_ PWSTR* result + ); + +/// Modifies settings of the Host Compute Service +HRESULT +WINAPI +HcsModifyServiceSettings( + _In_ PCWSTR settings, + _Outptr_opt_ PWSTR* result + ); + +/// Submits a WER report +HRESULT +WINAPI +HcsSubmitWerReport( + _In_ PCWSTR settings + ); + +// Creates an empty guest-state file (.vmgs) for a VM. +HRESULT +WINAPI +HcsCreateEmptyGuestStateFile( + _In_ PCWSTR guestStateFilePath + ); + +// Creates an empty runtime-state file (.vmrs) for a VM. +HRESULT +WINAPI +HcsCreateEmptyRuntimeStateFile( + _In_ PCWSTR runtimeStateFilePath + ); + +// Adds an entry to a file's ACL that grants access for a VM. +HRESULT +WINAPI +HcsGrantVmAccess( + _In_ PCWSTR vmId, + _In_ PCWSTR filePath + ); + +// Removes an entry to a file's ACL that granted access for a VM. +HRESULT +WINAPI +HcsRevokeVmAccess( + _In_ PCWSTR vmId, + _In_ PCWSTR filePath + ); + +// Grants VM group access (R/O) to the specified file. +HRESULT +WINAPI +HcsGrantVmGroupAccess( + _In_ PCWSTR filePath + ); + +// Removes VM group access for the specified file. +HRESULT +WINAPI +HcsRevokeVmGroupAccess( + _In_ PCWSTR filePath + ); + +#ifdef __cplusplus +} +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif // _HYPERV_COMPUTECORE_H_ + +#ifndef ext_ms_win_hyperv_compute_l1_2_5_query_routines +#define ext_ms_win_hyperv_compute_l1_2_5_query_routines + +// +//Private Extension API Query Routines +// + +#ifdef __cplusplus +extern "C" { +#endif + +BOOLEAN +__stdcall +IsHcsEnumerateComputeSystemsPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsEnumerateComputeSystemsInNamespacePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCreateOperationPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCreateOperationWithNotificationsPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCloseOperationPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetOperationContextPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsSetOperationContextPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetComputeSystemFromOperationPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetProcessFromOperationPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetOperationTypePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetOperationIdPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetOperationResultPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetOperationResultAndProcessInfoPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsAddResourceToOperationPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetProcessorCompatibilityFromSavedStatePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsWaitForOperationResultPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsWaitForOperationResultAndProcessInfoPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsSetOperationCallbackPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCancelOperationPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetOperationPropertiesPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCreateComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCreateComputeSystemInNamespacePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsOpenComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsOpenComputeSystemInNamespacePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCloseComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsStartComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsShutDownComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsTerminateComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCrashComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsPauseComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsResumeComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsSaveComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetComputeSystemPropertiesPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsModifyComputeSystemPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsWaitForComputeSystemExitPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsSetComputeSystemCallbackPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsInitializeLiveMigrationOnSourcePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsStartLiveMigrationOnSourcePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsStartLiveMigrationTransferPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsFinalizeLiveMigrationPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCreateProcessPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsOpenProcessPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCloseProcessPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsTerminateProcessPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsSignalProcessPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetProcessInfoPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetProcessPropertiesPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsModifyProcessPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsSetProcessCallbackPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsWaitForProcessExitPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetServicePropertiesPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsModifyServiceSettingsPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsSubmitWerReportPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCreateEmptyGuestStateFilePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsCreateEmptyRuntimeStateFilePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGrantVmAccessPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsRevokeVmAccessPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGrantVmGroupAccessPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsRevokeVmGroupAccessPresent( + VOID + ); + +#ifdef __cplusplus +} +#endif + +#endif // endof guard + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/computedefs.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/computedefs.h new file mode 100644 index 0000000000000000000000000000000000000000..4d945ad69748c6067a82c487c428cd7642f64635 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/computedefs.h @@ -0,0 +1,236 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + ComputeDefs.h + +Abstract: + + Contains the public types and definitions used by the Host Compute APIs. + +Environment: + + User mode. + +--*/ +#ifndef _HYPERV_COMPUTEDEFS_H_ +#define _HYPERV_COMPUTEDEFS_H_ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma once +#endif + +// Handle to a compute system +DECLARE_HANDLE(HCS_SYSTEM); + +// Handle to a process running in a compute system +DECLARE_HANDLE(HCS_PROCESS); + +// Handle to an operation on a compute system +DECLARE_HANDLE(HCS_OPERATION); + +// Handle to a callback registered on a compute system or process handle. +DECLARE_HANDLE(HCS_CALLBACK); + +// Type of an operation. These correspond to the functions that invoke the operation. +typedef enum HCS_OPERATION_TYPE +{ + HcsOperationTypeNone = -1, + HcsOperationTypeEnumerate = 0, + HcsOperationTypeCreate = 1, + HcsOperationTypeStart = 2, + HcsOperationTypeShutdown = 3, + HcsOperationTypePause = 4, + HcsOperationTypeResume = 5, + HcsOperationTypeSave = 6, + HcsOperationTypeTerminate = 7, + HcsOperationTypeModify = 8, + HcsOperationTypeGetProperties = 9, + HcsOperationTypeCreateProcess = 10, + HcsOperationTypeSignalProcess = 11, + HcsOperationTypeGetProcessInfo = 12, + HcsOperationTypeGetProcessProperties = 13, + HcsOperationTypeModifyProcess = 14, + HcsOperationTypeCrash = 15, + HcsOperationTypeLiveMigration = 19, + HcsOperationTypeReserved1 = 16, + HcsOperationTypeReserved2 = 17, + HcsOperationTypeReserved3 = 18, +} HCS_OPERATION_TYPE; + +#define HCS_INVALID_OPERATION_ID (UINT64)(-1) + +// Function type for the completion callback of an operation. +typedef void (CALLBACK *HCS_OPERATION_COMPLETION)( + _In_ HCS_OPERATION operation, + _In_opt_ void* context + ); + +// Events indicated to callbacks registered by HcsRegisterComputeSystemCallback or +// HcsRegisterProcessCallback (since Windows 1809). +typedef enum HCS_EVENT_TYPE +{ + HcsEventInvalid = 0x00000000, + + /// Events for HCS_SYSTEM handles + HcsEventSystemExited = 0x00000001, + HcsEventSystemCrashInitiated = 0x00000002, + HcsEventSystemCrashReport = 0x00000003, + HcsEventSystemRdpEnhancedModeStateChanged = 0x00000004, + HcsEventSystemSiloJobCreated = 0x00000005, + HcsEventSystemGuestConnectionClosed = 0x00000006, + + /// Events for HCS_PROCESS handles + HcsEventProcessExited = 0x00010000, + + /// Common Events + HcsEventOperationCallback = 0x01000000, + HcsEventServiceDisconnect = 0x02000000, + + // Event groups, enabled by HCS_EVENT_OPTIONS set by clients + HcsEventGroupVmLifecycle = 0x80000002, + + // A group of live migration events + HcsEventGroupLiveMigration = 0x80000003, + + // Events for HCS_OPERATION + HcsEventGroupOperationInfo = 0xC0000001, + +} HCS_EVENT_TYPE; + +// Provides information about an event that occurred on a compute system or process. +typedef struct HCS_EVENT +{ + // Type of Event (see HCS_EVENT_TYPE) + HCS_EVENT_TYPE Type; + + // Provides additional data for the event. + PCWSTR EventData; + + // Handle to a completed operation (if Type is HcsEventOperationCallback). + HCS_OPERATION Operation; + +} HCS_EVENT; + +// Options for an event callback registration +typedef enum HCS_EVENT_OPTIONS +{ + HcsEventOptionNone = 0x00000000, + HcsEventOptionEnableOperationCallbacks = 0x00000001, + HcsEventOptionEnableVmLifecycle = 0x00000002, + HcsEventOptionEnableLiveMigrationEvents = 0x00000004, +} HCS_EVENT_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(HCS_EVENT_OPTIONS); + +// Filter for an operation's events +typedef enum HCS_OPERATION_OPTIONS +{ + HcsOperationOptionNone = 0x00000000, + HcsOperationOptionProgressUpdate = 0x00000001, + HcsOperationOptionReserved1 = 0x00000002, +} HCS_OPERATION_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(HCS_OPERATION_OPTIONS); + +// Function type for compute system event callbacks +typedef void (CALLBACK *HCS_EVENT_CALLBACK)( + _In_ HCS_EVENT* event, + _In_opt_ void* context + ); + +// Resource type for HCS_OPERATION resource support. +typedef enum HCS_RESOURCE_TYPE +{ + HcsResourceTypeNone = 0, + HcsResourceTypeFile = 1, + HcsResourceTypeJob = 2, + HcsResourceTypeComObject = 3, + HcsResourceTypeSocket = 4 +} HCS_RESOURCE_TYPE; + +// Flags applicable to HCS_NOTIFICATIONS +typedef enum HCS_NOTIFICATION_FLAGS +{ + HcsNotificationFlagSuccess = 0x00000000, + HcsNotificationFlagFailure = 0x80000000 +} HCS_NOTIFICATION_FLAGS; + +// Notifications indicated to callbacks registered by HcsRegisterComputeSystemCallback or +// HcsRegisterProcessCallback (until Windows 1803). +typedef enum HCS_NOTIFICATIONS +{ + HcsNotificationInvalid = 0x00000000, + + // Notifications for HCS_SYSTEM handles + HcsNotificationSystemExited = 0x00000001, + HcsNotificationSystemCreateCompleted = 0x00000002, + HcsNotificationSystemStartCompleted = 0x00000003, + HcsNotificationSystemPauseCompleted = 0x00000004, + HcsNotificationSystemResumeCompleted = 0x00000005, + HcsNotificationSystemCrashReport = 0x00000006, + HcsNotificationSystemSiloJobCreated = 0x00000007, + HcsNotificationSystemSaveCompleted = 0x00000008, + HcsNotificationSystemRdpEnhancedModeStateChanged = 0x00000009, + HcsNotificationSystemShutdownFailed = 0x0000000A, + HcsNotificationSystemShutdownCompleted = 0x0000000A, + HcsNotificationSystemGetPropertiesCompleted = 0x0000000B, + HcsNotificationSystemModifyCompleted = 0x0000000C, + HcsNotificationSystemCrashInitiated = 0x0000000D, + HcsNotificationSystemGuestConnectionClosed = 0x0000000E, + HcsNotificationSystemOperationCompletion = 0x0000000F, + + HcsNotificationSystemPassThru = 0x00000010, + + HcsNotificationOperationProgressUpdate = 0x00000100, + + // Notifications for HCS_PROCESS handles + HcsNotificationProcessExited = 0x00010000, + + // Common notifications + HcsNotificationServiceDisconnect = 0x01000000, + + // The upper 4 bits are reserved. + HcsNotificationFlagsReserved = 0xF0000000 +} HCS_NOTIFICATIONS; + +// Function type for compute system notification callbacks +typedef void (CALLBACK *HCS_NOTIFICATION_CALLBACK)( + _In_ DWORD notificationType, + _In_opt_ void* context, + _In_ HRESULT notificationStatus, + _In_opt_ PCWSTR notificationData + ); + +// Struct containing information about a process created by HcsStartProcessInComputeSystem +typedef struct +{ + DWORD ProcessId; // Identifier of the created process + DWORD Reserved; + + HANDLE StdInput; // If created, standard input handle of the process + HANDLE StdOutput; // If created, standard output handle of the process + HANDLE StdError; // If created, standard error handle of the process +} HCS_PROCESS_INFORMATION; + +// Versions available for HCS_CREATE_OPTIONS used by HcsCreateComputeSystemInNamespace. +typedef enum HCS_CREATE_OPTIONS +{ + HcsCreateOptions_1 = 0x00010000 // HCS_CREATE_OPTIONS_1 +}HCS_CREATE_OPTIONS; + +// Struct containing different options when creating a compute system with HcsCreateComputeSystemInNamespace. +// Header.Version should be initialized to HcsCreateOptions_1. +typedef struct +{ + HCS_CREATE_OPTIONS Version; // HcsCreateOptions_1 + HANDLE UserToken; // Optional user token to run the compute system as + SECURITY_DESCRIPTOR* SecurityDescriptor; + HCS_EVENT_OPTIONS CallbackOptions; + void* CallbackContext; + HCS_EVENT_CALLBACK Callback; +} HCS_CREATE_OPTIONS_1; + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/computenetwork.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/computenetwork.h new file mode 100644 index 0000000000000000000000000000000000000000..a793ae371f46fb5aad7c8e8c63f94442ff5eb983 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/computenetwork.h @@ -0,0 +1,807 @@ +// computenetwork.ext: ApiSet Contract for ext-ms-win-hyperv-computenetwork-l1 +// Copyright (c) Microsoft Corporation. All rights reserved. + +#pragma once + +#ifndef HCN_CLIENT_H +#define HCN_CLIENT_H + +#include +#include +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#ifdef __cplusplus +extern "C" { +#endif + +///////////////////////////////////////////////////////////////////////// +/// Notifications + +/// Notifications indicated to callbacks +typedef enum HCN_NOTIFICATIONS +{ + HcnNotificationInvalid = 0x00000000, + + /// Notifications for HCN_SERVICE handles + HcnNotificationNetworkPreCreate = 0x00000001, + HcnNotificationNetworkCreate = 0x00000002, + HcnNotificationNetworkPreDelete = 0x00000003, + HcnNotificationNetworkDelete = 0x00000004, + + /// Namespace Notifications + HcnNotificationNamespaceCreate = 0x00000005, + HcnNotificationNamespaceDelete = 0x00000006, + + /// Notifications for HCN_SERVICE handles + HcnNotificationGuestNetworkServiceCreate = 0x00000007, + HcnNotificationGuestNetworkServiceDelete = 0x00000008, + + /// Notifications for HCN_NETWORK handles + HcnNotificationNetworkEndpointAttached = 0x00000009, + HcnNotificationNetworkEndpointDetached = 0x00000010, + + /// Notifications for HCN_GUESTNETWORKSERVICE handles + HcnNotificationGuestNetworkServiceStateChanged = 0x00000011, + HcnNotificationGuestNetworkServiceInterfaceStateChanged = 0x00000012, + + /// Common notifications + HcnNotificationServiceDisconnect = 0x01000000, + + /// The upper 4 bits are reserved for flags + HcnNotificationFlagsReserved = 0xF0000000 +} HCN_NOTIFICATIONS; + +/// Handle to a callback registered on a hns object +typedef void* HCN_CALLBACK; + +/// Function type for HNS notification callbacks +typedef void (CALLBACK *HCN_NOTIFICATION_CALLBACK)( + _In_ DWORD NotificationType, + _In_opt_ void* Context, + _In_ HRESULT NotificationStatus, + _In_opt_ PCWSTR NotificationData + ); + +///////////////////////////////////////////////////////////////////////// +/// Hcn Networks + +/// Context handle referencing a Network in HNS +typedef void* HCN_NETWORK; +typedef HCN_NETWORK* PHCN_NETWORK; + +/// Return a list of existing Networks +HRESULT +WINAPI +HcnEnumerateNetworks( + _In_ PCWSTR Query, + _Outptr_ PWSTR* Networks, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Create a Network +HRESULT +WINAPI +HcnCreateNetwork( + _In_ REFGUID Id, + _In_ PCWSTR Settings, + _Out_ PHCN_NETWORK Network, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Lookup an existing network +HRESULT +WINAPI +HcnOpenNetwork( + _In_ REFGUID Id, + _Out_ PHCN_NETWORK Network, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Modify the settings of a Network +HRESULT +WINAPI +HcnModifyNetwork( + _In_ HCN_NETWORK Network, + _In_ PCWSTR Settings, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Query Network settings +HRESULT +WINAPI +HcnQueryNetworkProperties( + _In_ HCN_NETWORK Network, + _In_ PCWSTR Query, + _Outptr_ PWSTR* Properties, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Delete a Network +HRESULT +WINAPI +HcnDeleteNetwork( + _In_ REFGUID Id, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Close a handle to a Network +HRESULT +WINAPI +HcnCloseNetwork( + _In_ HCN_NETWORK Network + ); + +///////////////////////////////////////////////////////////////////////// +/// Hcn Namespace + +/// Context handle referencing a Namespace in HNS +typedef void* HCN_NAMESPACE; +typedef HCN_NAMESPACE* PHCN_NAMESPACE; + +/// Return a list of existing Namespaces +HRESULT +WINAPI +HcnEnumerateNamespaces( + _In_ PCWSTR Query, + _Outptr_ PWSTR* Namespaces, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Create a Namespace +HRESULT +WINAPI +HcnCreateNamespace( + _In_ REFGUID Id, + _In_ PCWSTR Settings, + _Out_ PHCN_NAMESPACE Namespace, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Lookup an existing Namespace +HRESULT +WINAPI +HcnOpenNamespace( + _In_ REFGUID Id, + _Out_ PHCN_NAMESPACE Namespace, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Modify the settings of a Namespace +HRESULT +WINAPI +HcnModifyNamespace( + _In_ HCN_NAMESPACE Namespace, + _In_ PCWSTR Settings, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Query Namespace settings +HRESULT +WINAPI +HcnQueryNamespaceProperties( + _In_ HCN_NAMESPACE Namespace, + _In_ PCWSTR Query, + _Outptr_ PWSTR* Properties, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Delete a Namespace +HRESULT +WINAPI +HcnDeleteNamespace( + _In_ REFGUID Id, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Close a handle to a Namespace +HRESULT +WINAPI +HcnCloseNamespace( + _In_ HCN_NAMESPACE Namespace + ); + +///////////////////////////////////////////////////////////////////////// +/// Hcn Endpoint + +/// Context handle referencing an Endpoint in HNS +typedef void* HCN_ENDPOINT; +typedef HCN_ENDPOINT* PHCN_ENDPOINT; + +/// Return a list of existing Endpoints +HRESULT +WINAPI +HcnEnumerateEndpoints( + _In_ PCWSTR Query, + _Outptr_ PWSTR* Endpoints, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Create an Endpoint +HRESULT +WINAPI +HcnCreateEndpoint( + _In_ HCN_NETWORK Network, + _In_ REFGUID Id, + _In_ PCWSTR Settings, + _Out_ PHCN_ENDPOINT Endpoint, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Lookup an existing Endpoint +HRESULT +WINAPI +HcnOpenEndpoint( + _In_ REFGUID Id, + _Out_ PHCN_ENDPOINT Endpoint, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Modify the settings of an Endpoint +HRESULT +WINAPI +HcnModifyEndpoint( + _In_ HCN_ENDPOINT Endpoint, + _In_ PCWSTR Settings, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Query Endpoint properties +HRESULT +WINAPI +HcnQueryEndpointProperties( + _In_ HCN_ENDPOINT Endpoint, + _In_ PCWSTR Query, + _Outptr_ PWSTR* Properties, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Delete an Endpoint +HRESULT +WINAPI +HcnDeleteEndpoint( + _In_ REFGUID Id, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Close a handle to an Endpoint +HRESULT +WINAPI +HcnCloseEndpoint( + _In_ HCN_ENDPOINT Endpoint + ); + +///////////////////////////////////////////////////////////////////////// +/// Hcn LoadBalancer + +/// Context handle referencing a LoadBalancer in HNS +typedef void* HCN_LOADBALANCER; +typedef HCN_LOADBALANCER* PHCN_LOADBALANCER; + +/// Return a list of existing LoadBalancers +HRESULT +WINAPI +HcnEnumerateLoadBalancers( + _In_ PCWSTR Query, + _Outptr_ PWSTR* LoadBalancer, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Create a LoadBalancer +HRESULT +WINAPI +HcnCreateLoadBalancer( + _In_ REFGUID Id, + _In_ PCWSTR Settings, + _Out_ PHCN_LOADBALANCER LoadBalancer, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Lookup an existing LoadBalancer +HRESULT +WINAPI +HcnOpenLoadBalancer( + _In_ REFGUID Id, + _Out_ PHCN_LOADBALANCER LoadBalancer, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Modify the settings of a PolcyList +HRESULT +WINAPI +HcnModifyLoadBalancer( + _In_ HCN_LOADBALANCER LoadBalancer, + _In_ PCWSTR Settings, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Query PolcyList settings +HRESULT +WINAPI +HcnQueryLoadBalancerProperties( + _In_ HCN_LOADBALANCER LoadBalancer, + _In_ PCWSTR Query, + _Outptr_ PWSTR* Properties, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Delete a LoadBalancer +HRESULT +WINAPI +HcnDeleteLoadBalancer( + _In_ REFGUID Id, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Close a handle to a LoadBalancer +HRESULT +WINAPI +HcnCloseLoadBalancer( + _In_ HCN_LOADBALANCER LoadBalancer + ); + +///////////////////////////////////////////////////////////////////////// +/// Hcn Service + +/// Context handle referencing the HNS service +typedef void* HCN_SERVICE; +typedef HCN_SERVICE* PHCN_SERVICE; + +/// Registers a callback function to receive notifications of service-wide events +HRESULT +WINAPI +HcnRegisterServiceCallback( + _In_ HCN_NOTIFICATION_CALLBACK Callback, + _In_ void* Context, + _Outptr_ HCN_CALLBACK* CallbackHandle + ); + +/// Unregisters from service-wide notifications +HRESULT +WINAPI +HcnUnregisterServiceCallback( + _In_ HCN_CALLBACK CallbackHandle + ); + +///////////////////////////////////////////////////////////////////////// +/// Hcn GuestNetworkService + +/// Context handle referencing a GuestNetworkService in HNS +typedef void* HCN_GUESTNETWORKSERVICE; +typedef HCN_GUESTNETWORKSERVICE* PHCN_GUESTNETWORKSERVICE; + +/// Registers a callback function to receive GuestNetworkService notifications +HRESULT +WINAPI +HcnRegisterGuestNetworkServiceCallback( + _In_ HCN_GUESTNETWORKSERVICE GuestNetworkService, + _In_ HCN_NOTIFICATION_CALLBACK Callback, + _In_ void* Context, + _Outptr_ HCN_CALLBACK* CallbackHandle + ); + +/// Unregisters from GuestNetworkService notifications +HRESULT +WINAPI +HcnUnregisterGuestNetworkServiceCallback( + _In_ HCN_CALLBACK CallbackHandle + ); + +/// Create a GuestNetworkService +HRESULT +WINAPI +HcnCreateGuestNetworkService( + _In_ REFGUID Id, + _In_ PCWSTR Settings, + _Out_ PHCN_GUESTNETWORKSERVICE GuestNetworkService, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Close a handle to a GuestNetworkService +HRESULT +WINAPI +HcnCloseGuestNetworkService( + _In_ HCN_GUESTNETWORKSERVICE GuestNetworkService + ); + +/// Modify the settings of a PolcyList +HRESULT +WINAPI +HcnModifyGuestNetworkService( + _In_ HCN_GUESTNETWORKSERVICE GuestNetworkService, + _In_ PCWSTR Settings, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Delete a GuestNetworkService +HRESULT +WINAPI +HcnDeleteGuestNetworkService( + _In_ REFGUID Id, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +///////////////////////////////////////////////////////////////////////// +/// Hcn Port Reservation + +typedef enum tagHCN_PORT_PROTOCOL +{ + HCN_PORT_PROTOCOL_TCP = 0x01, + HCN_PORT_PROTOCOL_UDP = 0x02, + HCN_PORT_PROTOCOL_BOTH = 0x03 +} HCN_PORT_PROTOCOL; + +typedef enum tagHCN_PORT_ACCESS +{ + HCN_PORT_ACCESS_EXCLUSIVE = 0x01, + HCN_PORT_ACCESS_SHARED = 0x02 +} HCN_PORT_ACCESS; + +typedef struct tagHCN_PORT_RANGE_RESERVATION +{ + // start and end are inclusive + USHORT startingPort; + USHORT endingPort; +} HCN_PORT_RANGE_RESERVATION; + +typedef struct tagHCN_PORT_RANGE_ENTRY { + GUID OwningPartitionId; + GUID TargetPartitionId; + HCN_PORT_PROTOCOL Protocol; + UINT64 Priority; + UINT32 ReservationType; + UINT32 SharingFlags; + UINT32 DeliveryMode; + UINT16 StartingPort; + UINT16 EndingPort; +} HCN_PORT_RANGE_ENTRY, *PHCN_PORT_RANGE_ENTRY; + +// reserves a single port for a target gnsHandle +HRESULT +WINAPI +HcnReserveGuestNetworkServicePort( + _In_ HCN_GUESTNETWORKSERVICE GuestNetworkService, + _In_ HCN_PORT_PROTOCOL Protocol, + _In_ HCN_PORT_ACCESS Access, + _In_ USHORT Port, + _Out_ HANDLE* PortReservationHandle + ); + +// range is always for exclusive access for both protocols +HRESULT +WINAPI +HcnReserveGuestNetworkServicePortRange( + _In_ HCN_GUESTNETWORKSERVICE GuestNetworkService, + _In_ USHORT PortCount, + _Out_ HCN_PORT_RANGE_RESERVATION* PortRangeReservation, + _Out_ HANDLE* PortReservationHandle + ); + +HRESULT +WINAPI +HcnReleaseGuestNetworkServicePortReservationHandle( + _In_ HANDLE PortReservationHandle + ); + +HRESULT +WINAPI +HcnEnumerateGuestNetworkPortReservations( + _Out_ ULONG* ReturnCount, + _Out_writes_bytes_all_(*ReturnCount) HCN_PORT_RANGE_ENTRY** PortEntries + ); + +VOID +WINAPI +HcnFreeGuestNetworkPortReservations( + _Inout_opt_ HCN_PORT_RANGE_ENTRY* PortEntries + ); + +///////////////////////////////////////////////////////////////////////// +/// Hcn Endpoint (added in NI) + +/// Query Endpoint stats +HRESULT +WINAPI +HcnQueryEndpointStats( + _In_ HCN_ENDPOINT Endpoint, + _In_ PCWSTR Query, + _Outptr_ PWSTR* Stats, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +/// Query Endpoint addresses +HRESULT +WINAPI +HcnQueryEndpointAddresses( + _In_ HCN_ENDPOINT Endpoint, + _In_ PCWSTR Query, + _Outptr_ PWSTR* Addresses, + _Outptr_opt_ PWSTR* ErrorRecord + ); + +#ifdef __cplusplus +} +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif + +#ifndef ext_ms_win_hyperv_computenetwork_l1_1_1_query_routines +#define ext_ms_win_hyperv_computenetwork_l1_1_1_query_routines + +// +//Private Extension API Query Routines +// + +#ifdef __cplusplus +extern "C" { +#endif + +BOOLEAN +__stdcall +IsHcnEnumerateNetworksPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnCreateNetworkPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnOpenNetworkPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnModifyNetworkPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnQueryNetworkPropertiesPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnDeleteNetworkPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnCloseNetworkPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnEnumerateNamespacesPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnCreateNamespacePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnOpenNamespacePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnModifyNamespacePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnQueryNamespacePropertiesPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnDeleteNamespacePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnCloseNamespacePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnEnumerateEndpointsPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnCreateEndpointPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnOpenEndpointPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnModifyEndpointPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnQueryEndpointPropertiesPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnDeleteEndpointPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnCloseEndpointPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnEnumerateLoadBalancersPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnCreateLoadBalancerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnOpenLoadBalancerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnModifyLoadBalancerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnQueryLoadBalancerPropertiesPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnDeleteLoadBalancerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnCloseLoadBalancerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnRegisterServiceCallbackPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnUnregisterServiceCallbackPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnRegisterGuestNetworkServiceCallbackPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnUnregisterGuestNetworkServiceCallbackPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnCreateGuestNetworkServicePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnCloseGuestNetworkServicePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnModifyGuestNetworkServicePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnDeleteGuestNetworkServicePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnReserveGuestNetworkServicePortPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnReserveGuestNetworkServicePortRangePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnReleaseGuestNetworkServicePortReservationHandlePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnEnumerateGuestNetworkPortReservationsPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnFreeGuestNetworkPortReservationsPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnQueryEndpointStatsPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcnQueryEndpointAddressesPresent( + VOID + ); + +#ifdef __cplusplus +} +#endif + +#endif // endof guard + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/computestorage.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/computestorage.h new file mode 100644 index 0000000000000000000000000000000000000000..b81af234dc7463d8ec20900cb7d009fdc7c97379 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/computestorage.h @@ -0,0 +1,258 @@ +/** + \copyright Copyright (c) Microsoft Corporation + + \file ComputeStorage.ext + + \brief API set contract for ext-ms-win-hyperv-computestorage-l1 +**/ + +#pragma once + +#ifndef _HYPERV_COMPUTESTORAGE_H_ +#define _HYPERV_COMPUTESTORAGE_H_ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma once +#endif + +#include +#include +#include +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#ifdef __cplusplus +extern "C" { +#endif + +// Imports a container layer. +HRESULT +WINAPI +HcsImportLayer( + _In_ PCWSTR layerPath, + _In_ PCWSTR sourceFolderPath, + _In_ PCWSTR layerData + ); + +// Exports a container layer. +HRESULT +WINAPI +HcsExportLayer( + _In_ PCWSTR layerPath, + _In_ PCWSTR exportFolderPath, + _In_ PCWSTR layerData, + _In_ PCWSTR options + ); + +// Exports a legacy container writable layer. +HRESULT +WINAPI +HcsExportLegacyWritableLayer( + _In_ PCWSTR writableLayerMountPath, + _In_ PCWSTR writableLayerFolderPath, + _In_ PCWSTR exportFolderPath, + _In_ PCWSTR layerData + ); + +// Deletes a container layer. +HRESULT +WINAPI +HcsDestroyLayer( + _In_ PCWSTR layerPath + ); + +// Sets up a layer that contains a base OS for a container. +HRESULT +WINAPI +HcsSetupBaseOSLayer( + _In_ PCWSTR layerPath, + _In_ HANDLE vhdHandle, + _In_ PCWSTR options + ); + +// Initializes a writable layer for a container. +HRESULT +WINAPI +HcsInitializeWritableLayer( + _In_ PCWSTR writableLayerPath, + _In_ PCWSTR layerData, + _In_opt_ PCWSTR options + ); + +// Initializes a writable layer for a container using the legacy hive folder format. +HRESULT +WINAPI +HcsInitializeLegacyWritableLayer( + _In_ PCWSTR writableLayerMountPath, + _In_ PCWSTR writableLayerFolderPath, + _In_ PCWSTR layerData, + _In_opt_ PCWSTR options + ); + +// Sets up the layer storage filter on a writable container layer. +HRESULT +WINAPI +HcsAttachLayerStorageFilter( + _In_ PCWSTR layerPath, + _In_ PCWSTR layerData + ); + +// Detaches the layer storage filter from a writable container layer. +HRESULT +WINAPI +HcsDetachLayerStorageFilter( + _In_ PCWSTR layerPath + ); + +// Formats a virtual disk for the use as a writable container layer. +HRESULT +WINAPI +HcsFormatWritableLayerVhd( + _In_ HANDLE vhdHandle + ); + +// Returns the volume path for a virtual disk of a writable container layer. +HRESULT +WINAPI +HcsGetLayerVhdMountPath( + _In_ HANDLE vhdHandle, + _Outptr_ PWSTR* mountPath + ); + +// Same as HcsSetupBaseOSLayer except that this works on a volume. +HRESULT +WINAPI +HcsSetupBaseOSVolume( + _In_ PCWSTR layerPath, + _In_ PCWSTR volumePath, + _In_ PCWSTR options + ); + +// Sets up the unionFS layer storage filter on a writable container layer. +HRESULT +WINAPI +HcsAttachOverlayFilter( + _In_ PCWSTR VolumeMountPoint, + _In_ PCWSTR LayerData + ); + +// Detaches the UnionFS filter from a writable container layer. +HRESULT +WINAPI +HcsDetachOverlayFilter( + _In_ PCWSTR VolumeMountPoint, + _In_ PCWSTR LayerData + ); + +#ifdef __cplusplus +} +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif // _HYPERV_COMPUTESTORAGE_H_ + +#ifndef ext_ms_win_hyperv_computestorage_l1_1_2_query_routines +#define ext_ms_win_hyperv_computestorage_l1_1_2_query_routines + +// +//Private Extension API Query Routines +// + +#ifdef __cplusplus +extern "C" { +#endif + +BOOLEAN +__stdcall +IsHcsImportLayerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsExportLayerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsExportLegacyWritableLayerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsDestroyLayerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsSetupBaseOSLayerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsInitializeWritableLayerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsInitializeLegacyWritableLayerPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsAttachLayerStorageFilterPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsDetachLayerStorageFilterPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsFormatWritableLayerVhdPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsGetLayerVhdMountPathPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsSetupBaseOSVolumePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsAttachOverlayFilterPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHcsDetachOverlayFilterPresent( + VOID + ); + +#ifdef __cplusplus +} +#endif + +#endif // endof guard + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/consoleapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/consoleapi.h new file mode 100644 index 0000000000000000000000000000000000000000..7b3cad0d5490fa9790450a9fa603e833f5141dc9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/consoleapi.h @@ -0,0 +1,366 @@ +// begin_consoleapi_h +/******************************************************************************** +* * +* consoleapi.h -- ApiSet Contract for api-ms-win-core-console-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _APISETCONSOLE_ +#define _APISETCONSOLE_ + +#include +#include +#include +#include + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +WINAPI +AllocConsole( + VOID + ); + +#if (NTDDI_VERSION >= NTDDI_WIN11_GE) + +typedef enum ALLOC_CONSOLE_MODE { + ALLOC_CONSOLE_MODE_DEFAULT = 0, + ALLOC_CONSOLE_MODE_NEW_WINDOW = 1, + ALLOC_CONSOLE_MODE_NO_WINDOW = 2 +} ALLOC_CONSOLE_MODE; + +typedef struct ALLOC_CONSOLE_OPTIONS { + ALLOC_CONSOLE_MODE mode; + BOOL useShowWindow; + WORD showWindow; +} ALLOC_CONSOLE_OPTIONS, *PALLOC_CONSOLE_OPTIONS; + +typedef enum ALLOC_CONSOLE_RESULT { + ALLOC_CONSOLE_RESULT_NO_CONSOLE = 0, + ALLOC_CONSOLE_RESULT_NEW_CONSOLE = 1, + ALLOC_CONSOLE_RESULT_EXISTING_CONSOLE = 2 +} ALLOC_CONSOLE_RESULT, *PALLOC_CONSOLE_RESULT; + +WINBASEAPI +HRESULT +WINAPI +AllocConsoleWithOptions( + _In_opt_ PALLOC_CONSOLE_OPTIONS options, + _Out_opt_ PALLOC_CONSOLE_RESULT result + ); + +#endif + +WINBASEAPI +BOOL +WINAPI +FreeConsole( + VOID + ); + +#if (_WIN32_WINNT >= 0x0500) + +WINBASEAPI +BOOL +WINAPI +AttachConsole( + _In_ DWORD dwProcessId + ); + +#define ATTACH_PARENT_PROCESS ((DWORD)-1) + +#endif /* _WIN32_WINNT >= 0x0500 */ + +WINBASEAPI +UINT +WINAPI +GetConsoleCP( + VOID + ); + +WINBASEAPI +UINT +WINAPI +GetConsoleOutputCP( + VOID + ); + +// +// Input Mode flags: +// + +#define ENABLE_PROCESSED_INPUT 0x0001 +#define ENABLE_LINE_INPUT 0x0002 +#define ENABLE_ECHO_INPUT 0x0004 +#define ENABLE_WINDOW_INPUT 0x0008 +#define ENABLE_MOUSE_INPUT 0x0010 +#define ENABLE_INSERT_MODE 0x0020 +#define ENABLE_QUICK_EDIT_MODE 0x0040 +#define ENABLE_EXTENDED_FLAGS 0x0080 +#define ENABLE_AUTO_POSITION 0x0100 +#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200 + +// +// Output Mode flags: +// + +#define ENABLE_PROCESSED_OUTPUT 0x0001 +#define ENABLE_WRAP_AT_EOL_OUTPUT 0x0002 +#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 +#define DISABLE_NEWLINE_AUTO_RETURN 0x0008 +#define ENABLE_LVB_GRID_WORLDWIDE 0x0010 + +WINBASEAPI +BOOL +WINAPI +GetConsoleMode( + _In_ HANDLE hConsoleHandle, + _Out_ LPDWORD lpMode + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleMode( + _In_ HANDLE hConsoleHandle, + _In_ DWORD dwMode + ); + +WINBASEAPI +BOOL +WINAPI +GetNumberOfConsoleInputEvents( + _In_ HANDLE hConsoleInput, + _Out_ LPDWORD lpNumberOfEvents + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +ReadConsoleInputA( + _In_ HANDLE hConsoleInput, + _Out_writes_to_(nLength, *lpNumberOfEventsRead) PINPUT_RECORD lpBuffer, + _In_ DWORD nLength, + _Out_ _Deref_out_range_(<=, nLength) LPDWORD lpNumberOfEventsRead + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +ReadConsoleInputW( + _In_ HANDLE hConsoleInput, + _Out_writes_to_(nLength, *lpNumberOfEventsRead) PINPUT_RECORD lpBuffer, + _In_ DWORD nLength, + _Out_ _Deref_out_range_(<=, nLength) LPDWORD lpNumberOfEventsRead + ); + +#ifdef UNICODE +#define ReadConsoleInput ReadConsoleInputW +#else +#define ReadConsoleInput ReadConsoleInputA +#endif // !UNICODE + +// end_consoleapi_h + +#ifndef UNICODE +#define PeekConsoleInput PeekConsoleInputA +#endif + +// begin_consoleapi_h + +WINBASEAPI +BOOL +WINAPI +PeekConsoleInputA( + _In_ HANDLE hConsoleInput, + _Out_writes_(nLength) PINPUT_RECORD lpBuffer, + _In_ DWORD nLength, + _Out_ LPDWORD lpNumberOfEventsRead + ); + +WINBASEAPI +BOOL +WINAPI +PeekConsoleInputW( + _In_ HANDLE hConsoleInput, + _Out_writes_(nLength) PINPUT_RECORD lpBuffer, + _In_ DWORD nLength, + _Out_ LPDWORD lpNumberOfEventsRead + ); + +#ifdef UNICODE +#define PeekConsoleInput PeekConsoleInputW +#else +#define PeekConsoleInput PeekConsoleInputA +#endif // !UNICODE + +typedef struct _CONSOLE_READCONSOLE_CONTROL { + ULONG nLength; + ULONG nInitialChars; + ULONG dwCtrlWakeupMask; + ULONG dwControlKeyState; +} CONSOLE_READCONSOLE_CONTROL, *PCONSOLE_READCONSOLE_CONTROL; + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +ReadConsoleA( + _In_ HANDLE hConsoleInput, + _Out_writes_bytes_to_(nNumberOfCharsToRead * sizeof(CHAR), *lpNumberOfCharsRead * sizeof(TCHAR%)) LPVOID lpBuffer, + _In_ DWORD nNumberOfCharsToRead, + _Out_ _Deref_out_range_(<=, nNumberOfCharsToRead) LPDWORD lpNumberOfCharsRead, + _In_opt_ PCONSOLE_READCONSOLE_CONTROL pInputControl + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +ReadConsoleW( + _In_ HANDLE hConsoleInput, + _Out_writes_bytes_to_(nNumberOfCharsToRead * sizeof(WCHAR), *lpNumberOfCharsRead * sizeof(TCHAR%)) LPVOID lpBuffer, + _In_ DWORD nNumberOfCharsToRead, + _Out_ _Deref_out_range_(<=, nNumberOfCharsToRead) LPDWORD lpNumberOfCharsRead, + _In_opt_ PCONSOLE_READCONSOLE_CONTROL pInputControl + ); + +#ifdef UNICODE +#define ReadConsole ReadConsoleW +#else +#define ReadConsole ReadConsoleA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +WriteConsoleA( + _In_ HANDLE hConsoleOutput, + _In_reads_(nNumberOfCharsToWrite) CONST VOID* lpBuffer, + _In_ DWORD nNumberOfCharsToWrite, + _Out_opt_ LPDWORD lpNumberOfCharsWritten, + _Reserved_ LPVOID lpReserved + ); + +WINBASEAPI +BOOL +WINAPI +WriteConsoleW( + _In_ HANDLE hConsoleOutput, + _In_reads_(nNumberOfCharsToWrite) CONST VOID* lpBuffer, + _In_ DWORD nNumberOfCharsToWrite, + _Out_opt_ LPDWORD lpNumberOfCharsWritten, + _Reserved_ LPVOID lpReserved + ); + +#ifdef UNICODE +#define WriteConsole WriteConsoleW +#else +#define WriteConsole WriteConsoleA +#endif // !UNICODE + +// +// Ctrl Event flags +// + +#define CTRL_C_EVENT 0 +#define CTRL_BREAK_EVENT 1 +#define CTRL_CLOSE_EVENT 2 +// 3 is reserved! +// 4 is reserved! +#define CTRL_LOGOFF_EVENT 5 +#define CTRL_SHUTDOWN_EVENT 6 + +// +// typedef for ctrl-c handler routines +// + +typedef +BOOL +(WINAPI *PHANDLER_ROUTINE)( + _In_ DWORD CtrlType + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleCtrlHandler( + _In_opt_ PHANDLER_ROUTINE HandlerRoutine, + _In_ BOOL Add + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +// CreatePseudoConsole Flags +#define PSEUDOCONSOLE_INHERIT_CURSOR (0x1) + +WINBASEAPI +HRESULT +WINAPI +CreatePseudoConsole( + _In_ COORD size, + _In_ HANDLE hInput, + _In_ HANDLE hOutput, + _In_ DWORD dwFlags, + _Out_ HPCON* phPC + ); + +WINBASEAPI +HRESULT +WINAPI +ResizePseudoConsole( + _In_ HPCON hPC, + _In_ COORD size + ); + +WINBASEAPI +VOID +WINAPI +ClosePseudoConsole( + _In_ HPCON hPC + ); + +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN11_GE) + +WINBASEAPI +HRESULT +WINAPI +ReleasePseudoConsole( + _In_ HPCON hPC + ); + +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _APISETCONSOLE_ +// end_consoleapi_h diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/consoleapi2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/consoleapi2.h new file mode 100644 index 0000000000000000000000000000000000000000..c46976b94315cae4c85376644dd02dfdea181171 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/consoleapi2.h @@ -0,0 +1,507 @@ +/******************************************************************************** +* * +* consoleapi2.h -- ApiSet Contract for api-ms-win-core-console-l2 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _APISETCONSOLEL2_ +#define _APISETCONSOLEL2_ + +#include +#include +#include +#include + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +// +// Attributes flags: +// + +#define FOREGROUND_BLUE 0x0001 // text color contains blue. +#define FOREGROUND_GREEN 0x0002 // text color contains green. +#define FOREGROUND_RED 0x0004 // text color contains red. +#define FOREGROUND_INTENSITY 0x0008 // text color is intensified. +#define BACKGROUND_BLUE 0x0010 // background color contains blue. +#define BACKGROUND_GREEN 0x0020 // background color contains green. +#define BACKGROUND_RED 0x0040 // background color contains red. +#define BACKGROUND_INTENSITY 0x0080 // background color is intensified. +#define COMMON_LVB_LEADING_BYTE 0x0100 // Leading Byte of DBCS +#define COMMON_LVB_TRAILING_BYTE 0x0200 // Trailing Byte of DBCS +#define COMMON_LVB_GRID_HORIZONTAL 0x0400 // DBCS: Grid attribute: top horizontal. +#define COMMON_LVB_GRID_LVERTICAL 0x0800 // DBCS: Grid attribute: left vertical. +#define COMMON_LVB_GRID_RVERTICAL 0x1000 // DBCS: Grid attribute: right vertical. +#define COMMON_LVB_REVERSE_VIDEO 0x4000 // DBCS: Reverse fore/back ground attribute. +#define COMMON_LVB_UNDERSCORE 0x8000 // DBCS: Underscore. + +#define COMMON_LVB_SBCSDBCS 0x0300 // SBCS or DBCS flag. + +WINBASEAPI +BOOL +WINAPI +FillConsoleOutputCharacterA( + _In_ HANDLE hConsoleOutput, + _In_ CHAR cCharacter, + _In_ DWORD nLength, + _In_ COORD dwWriteCoord, + _Out_ LPDWORD lpNumberOfCharsWritten + ); + +WINBASEAPI +BOOL +WINAPI +FillConsoleOutputCharacterW( + _In_ HANDLE hConsoleOutput, + _In_ WCHAR cCharacter, + _In_ DWORD nLength, + _In_ COORD dwWriteCoord, + _Out_ LPDWORD lpNumberOfCharsWritten + ); + +#ifdef UNICODE +#define FillConsoleOutputCharacter FillConsoleOutputCharacterW +#else +#define FillConsoleOutputCharacter FillConsoleOutputCharacterA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +FillConsoleOutputAttribute( + _In_ HANDLE hConsoleOutput, + _In_ WORD wAttribute, + _In_ DWORD nLength, + _In_ COORD dwWriteCoord, + _Out_ LPDWORD lpNumberOfAttrsWritten + ); + +WINBASEAPI +BOOL +WINAPI +GenerateConsoleCtrlEvent( + _In_ DWORD dwCtrlEvent, + _In_ DWORD dwProcessGroupId + ); + +WINBASEAPI +HANDLE +WINAPI +CreateConsoleScreenBuffer( + _In_ DWORD dwDesiredAccess, + _In_ DWORD dwShareMode, + _In_opt_ CONST SECURITY_ATTRIBUTES* lpSecurityAttributes, + _In_ DWORD dwFlags, + _Reserved_ LPVOID lpScreenBufferData + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleActiveScreenBuffer( + _In_ HANDLE hConsoleOutput + ); + +WINBASEAPI +BOOL +WINAPI +FlushConsoleInputBuffer( + _In_ HANDLE hConsoleInput + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleCP( + _In_ UINT wCodePageID + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleOutputCP( + _In_ UINT wCodePageID + ); + +typedef struct _CONSOLE_CURSOR_INFO { + DWORD dwSize; + BOOL bVisible; +} CONSOLE_CURSOR_INFO, *PCONSOLE_CURSOR_INFO; + +WINBASEAPI +BOOL +WINAPI +GetConsoleCursorInfo( + _In_ HANDLE hConsoleOutput, + _Out_ PCONSOLE_CURSOR_INFO lpConsoleCursorInfo + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleCursorInfo( + _In_ HANDLE hConsoleOutput, + _In_ CONST CONSOLE_CURSOR_INFO* lpConsoleCursorInfo + ); + +typedef struct _CONSOLE_SCREEN_BUFFER_INFO { + COORD dwSize; + COORD dwCursorPosition; + WORD wAttributes; + SMALL_RECT srWindow; + COORD dwMaximumWindowSize; +} CONSOLE_SCREEN_BUFFER_INFO, *PCONSOLE_SCREEN_BUFFER_INFO; + +WINBASEAPI +BOOL +WINAPI +GetConsoleScreenBufferInfo( + _In_ HANDLE hConsoleOutput, + _Out_ PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo + ); + +typedef struct _CONSOLE_SCREEN_BUFFER_INFOEX { + ULONG cbSize; + COORD dwSize; + COORD dwCursorPosition; + WORD wAttributes; + SMALL_RECT srWindow; + COORD dwMaximumWindowSize; + WORD wPopupAttributes; + BOOL bFullscreenSupported; + COLORREF ColorTable[16]; +} CONSOLE_SCREEN_BUFFER_INFOEX, *PCONSOLE_SCREEN_BUFFER_INFOEX; + +WINBASEAPI +BOOL +WINAPI +GetConsoleScreenBufferInfoEx( + _In_ HANDLE hConsoleOutput, + _Inout_ PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleScreenBufferInfoEx( + _In_ HANDLE hConsoleOutput, + _In_ PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleScreenBufferSize( + _In_ HANDLE hConsoleOutput, + _In_ COORD dwSize + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleCursorPosition( + _In_ HANDLE hConsoleOutput, + _In_ COORD dwCursorPosition + ); + +WINBASEAPI +COORD +WINAPI +GetLargestConsoleWindowSize( + _In_ HANDLE hConsoleOutput + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleTextAttribute( + _In_ HANDLE hConsoleOutput, + _In_ WORD wAttributes + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleWindowInfo( + _In_ HANDLE hConsoleOutput, + _In_ BOOL bAbsolute, + _In_ CONST SMALL_RECT* lpConsoleWindow + ); + +WINBASEAPI +BOOL +WINAPI +WriteConsoleOutputCharacterA( + _In_ HANDLE hConsoleOutput, + _In_reads_(nLength) LPCSTR lpCharacter, + _In_ DWORD nLength, + _In_ COORD dwWriteCoord, + _Out_ LPDWORD lpNumberOfCharsWritten + ); + +WINBASEAPI +BOOL +WINAPI +WriteConsoleOutputCharacterW( + _In_ HANDLE hConsoleOutput, + _In_reads_(nLength) LPCWSTR lpCharacter, + _In_ DWORD nLength, + _In_ COORD dwWriteCoord, + _Out_ LPDWORD lpNumberOfCharsWritten + ); + +#ifdef UNICODE +#define WriteConsoleOutputCharacter WriteConsoleOutputCharacterW +#else +#define WriteConsoleOutputCharacter WriteConsoleOutputCharacterA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +WriteConsoleOutputAttribute( + _In_ HANDLE hConsoleOutput, + _In_reads_(nLength) CONST WORD* lpAttribute, + _In_ DWORD nLength, + _In_ COORD dwWriteCoord, + _Out_ LPDWORD lpNumberOfAttrsWritten + ); + +WINBASEAPI +BOOL +WINAPI +ReadConsoleOutputCharacterA( + _In_ HANDLE hConsoleOutput, + _Out_writes_(nLength) LPSTR lpCharacter, + _In_ DWORD nLength, + _In_ COORD dwReadCoord, + _Out_ LPDWORD lpNumberOfCharsRead + ); + +WINBASEAPI +BOOL +WINAPI +ReadConsoleOutputCharacterW( + _In_ HANDLE hConsoleOutput, + _Out_writes_(nLength) LPWSTR lpCharacter, + _In_ DWORD nLength, + _In_ COORD dwReadCoord, + _Out_ LPDWORD lpNumberOfCharsRead + ); + +#ifdef UNICODE +#define ReadConsoleOutputCharacter ReadConsoleOutputCharacterW +#else +#define ReadConsoleOutputCharacter ReadConsoleOutputCharacterA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +ReadConsoleOutputAttribute( + _In_ HANDLE hConsoleOutput, + _Out_writes_(nLength) LPWORD lpAttribute, + _In_ DWORD nLength, + _In_ COORD dwReadCoord, + _Out_ LPDWORD lpNumberOfAttrsRead + ); + +WINBASEAPI +BOOL +WINAPI +WriteConsoleInputA( + _In_ HANDLE hConsoleInput, + _In_reads_(nLength) CONST INPUT_RECORD* lpBuffer, + _In_ DWORD nLength, + _Out_ LPDWORD lpNumberOfEventsWritten + ); + +WINBASEAPI +BOOL +WINAPI +WriteConsoleInputW( + _In_ HANDLE hConsoleInput, + _In_reads_(nLength) CONST INPUT_RECORD* lpBuffer, + _In_ DWORD nLength, + _Out_ LPDWORD lpNumberOfEventsWritten + ); + +#ifdef UNICODE +#define WriteConsoleInput WriteConsoleInputW +#else +#define WriteConsoleInput WriteConsoleInputA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +ScrollConsoleScreenBufferA( + _In_ HANDLE hConsoleOutput, + _In_ CONST SMALL_RECT* lpScrollRectangle, + _In_opt_ CONST SMALL_RECT* lpClipRectangle, + _In_ COORD dwDestinationOrigin, + _In_ CONST CHAR_INFO* lpFill + ); + +WINBASEAPI +BOOL +WINAPI +ScrollConsoleScreenBufferW( + _In_ HANDLE hConsoleOutput, + _In_ CONST SMALL_RECT* lpScrollRectangle, + _In_opt_ CONST SMALL_RECT* lpClipRectangle, + _In_ COORD dwDestinationOrigin, + _In_ CONST CHAR_INFO* lpFill + ); + +#ifdef UNICODE +#define ScrollConsoleScreenBuffer ScrollConsoleScreenBufferW +#else +#define ScrollConsoleScreenBuffer ScrollConsoleScreenBufferA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +WriteConsoleOutputA( + _In_ HANDLE hConsoleOutput, + _In_reads_(dwBufferSize.X * dwBufferSize.Y) CONST CHAR_INFO* lpBuffer, + _In_ COORD dwBufferSize, + _In_ COORD dwBufferCoord, + _Inout_ PSMALL_RECT lpWriteRegion + ); + +WINBASEAPI +BOOL +WINAPI +WriteConsoleOutputW( + _In_ HANDLE hConsoleOutput, + _In_reads_(dwBufferSize.X * dwBufferSize.Y) CONST CHAR_INFO* lpBuffer, + _In_ COORD dwBufferSize, + _In_ COORD dwBufferCoord, + _Inout_ PSMALL_RECT lpWriteRegion + ); + +#ifdef UNICODE +#define WriteConsoleOutput WriteConsoleOutputW +#else +#define WriteConsoleOutput WriteConsoleOutputA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +ReadConsoleOutputA( + _In_ HANDLE hConsoleOutput, + _Out_writes_(dwBufferSize.X * dwBufferSize.Y) PCHAR_INFO lpBuffer, + _In_ COORD dwBufferSize, + _In_ COORD dwBufferCoord, + _Inout_ PSMALL_RECT lpReadRegion + ); + +WINBASEAPI +BOOL +WINAPI +ReadConsoleOutputW( + _In_ HANDLE hConsoleOutput, + _Out_writes_(dwBufferSize.X * dwBufferSize.Y) PCHAR_INFO lpBuffer, + _In_ COORD dwBufferSize, + _In_ COORD dwBufferCoord, + _Inout_ PSMALL_RECT lpReadRegion + ); + +#ifdef UNICODE +#define ReadConsoleOutput ReadConsoleOutputW +#else +#define ReadConsoleOutput ReadConsoleOutputA +#endif // !UNICODE + +WINBASEAPI +DWORD +WINAPI +GetConsoleTitleA( + _Out_writes_(nSize) LPSTR lpConsoleTitle, + _In_ DWORD nSize + ); + +WINBASEAPI +DWORD +WINAPI +GetConsoleTitleW( + _Out_writes_(nSize) LPWSTR lpConsoleTitle, + _In_ DWORD nSize + ); + +#ifdef UNICODE +#define GetConsoleTitle GetConsoleTitleW +#else +#define GetConsoleTitle GetConsoleTitleA +#endif // !UNICODE + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +DWORD +WINAPI +GetConsoleOriginalTitleA( + _Out_writes_(nSize) LPSTR lpConsoleTitle, + _In_ DWORD nSize + ); + +WINBASEAPI +DWORD +WINAPI +GetConsoleOriginalTitleW( + _Out_writes_(nSize) LPWSTR lpConsoleTitle, + _In_ DWORD nSize + ); + +#ifdef UNICODE +#define GetConsoleOriginalTitle GetConsoleOriginalTitleW +#else +#define GetConsoleOriginalTitle GetConsoleOriginalTitleA +#endif // !UNICODE + +#endif /* _WIN32_WINNT >= 0x0600 */ + +WINBASEAPI +BOOL +WINAPI +SetConsoleTitleA( + _In_ LPCSTR lpConsoleTitle + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleTitleW( + _In_ LPCWSTR lpConsoleTitle + ); + +#ifdef UNICODE +#define SetConsoleTitle SetConsoleTitleW +#else +#define SetConsoleTitle SetConsoleTitleA +#endif // !UNICODE + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _APISETCONSOLEL2_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/consoleapi3.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/consoleapi3.h new file mode 100644 index 0000000000000000000000000000000000000000..6d210ae055a4b10739898d9876e0d55860adc0a8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/consoleapi3.h @@ -0,0 +1,418 @@ +/******************************************************************************** +* * +* consoleapi3.h -- ApiSet Contract for api-ms-win-core-console-l3 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _APISETCONSOLEL3_ +#define _APISETCONSOLEL3_ + +#include +#include +#include +#include + +#include +#include + +#ifndef NOGDI +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +WINAPI +GetNumberOfConsoleMouseButtons( + _Out_ LPDWORD lpNumberOfMouseButtons + ); + +#if (_WIN32_WINNT >= 0x0500) + +WINBASEAPI +COORD +WINAPI +GetConsoleFontSize( + _In_ HANDLE hConsoleOutput, + _In_ DWORD nFont + ); + +WINBASEAPI +BOOL +WINAPI +GetCurrentConsoleFont( + _In_ HANDLE hConsoleOutput, + _In_ BOOL bMaximumWindow, + _Out_ PCONSOLE_FONT_INFO lpConsoleCurrentFont + ); + +#ifndef NOGDI + +typedef struct _CONSOLE_FONT_INFOEX { + ULONG cbSize; + DWORD nFont; + COORD dwFontSize; + UINT FontFamily; + UINT FontWeight; + WCHAR FaceName[LF_FACESIZE]; +} CONSOLE_FONT_INFOEX, *PCONSOLE_FONT_INFOEX; + +WINBASEAPI +BOOL +WINAPI +GetCurrentConsoleFontEx( + _In_ HANDLE hConsoleOutput, + _In_ BOOL bMaximumWindow, + _Out_ PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx + ); + +WINBASEAPI +BOOL +WINAPI +SetCurrentConsoleFontEx( + _In_ HANDLE hConsoleOutput, + _In_ BOOL bMaximumWindow, + _In_ PCONSOLE_FONT_INFOEX lpConsoleCurrentFontEx + ); + +#endif + +// +// Selection flags +// + +#define CONSOLE_NO_SELECTION 0x0000 +#define CONSOLE_SELECTION_IN_PROGRESS 0x0001 // selection has begun +#define CONSOLE_SELECTION_NOT_EMPTY 0x0002 // non-null select rectangle +#define CONSOLE_MOUSE_SELECTION 0x0004 // selecting with mouse +#define CONSOLE_MOUSE_DOWN 0x0008 // mouse is down + +typedef struct _CONSOLE_SELECTION_INFO { + DWORD dwFlags; + COORD dwSelectionAnchor; + SMALL_RECT srSelection; +} CONSOLE_SELECTION_INFO, *PCONSOLE_SELECTION_INFO; + +WINBASEAPI +BOOL +WINAPI +GetConsoleSelectionInfo( + _Out_ PCONSOLE_SELECTION_INFO lpConsoleSelectionInfo + ); + +// +// History flags +// + +#define HISTORY_NO_DUP_FLAG 0x1 + +typedef struct _CONSOLE_HISTORY_INFO { + UINT cbSize; + UINT HistoryBufferSize; + UINT NumberOfHistoryBuffers; + DWORD dwFlags; +} CONSOLE_HISTORY_INFO, *PCONSOLE_HISTORY_INFO; + +WINBASEAPI +BOOL +WINAPI +GetConsoleHistoryInfo( + _Out_ PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo + ); + +WINBASEAPI +BOOL +WINAPI +SetConsoleHistoryInfo( + _In_ PCONSOLE_HISTORY_INFO lpConsoleHistoryInfo + ); + +#define CONSOLE_FULLSCREEN 1 // fullscreen console +#define CONSOLE_FULLSCREEN_HARDWARE 2 // console owns the hardware + +WINBASEAPI +BOOL +APIENTRY +GetConsoleDisplayMode( + _Out_ LPDWORD lpModeFlags + ); + +#define CONSOLE_FULLSCREEN_MODE 1 +#define CONSOLE_WINDOWED_MODE 2 + +WINBASEAPI +BOOL +APIENTRY +SetConsoleDisplayMode( + _In_ HANDLE hConsoleOutput, + _In_ DWORD dwFlags, + _Out_opt_ PCOORD lpNewScreenBufferDimensions + ); + +WINBASEAPI +HWND +APIENTRY +GetConsoleWindow( + VOID + ); + +#endif /* _WIN32_WINNT >= 0x0500 */ + +#if (_WIN32_WINNT >= 0x0501) + +WINBASEAPI +BOOL +APIENTRY +AddConsoleAliasA( + _In_ LPSTR Source, + _In_ LPSTR Target, + _In_ LPSTR ExeName + ); + +WINBASEAPI +BOOL +APIENTRY +AddConsoleAliasW( + _In_ LPWSTR Source, + _In_ LPWSTR Target, + _In_ LPWSTR ExeName + ); + +#ifdef UNICODE +#define AddConsoleAlias AddConsoleAliasW +#else +#define AddConsoleAlias AddConsoleAliasA +#endif // !UNICODE + +WINBASEAPI +DWORD +APIENTRY +GetConsoleAliasA( + _In_ LPSTR Source, + _Out_writes_(TargetBufferLength) LPSTR TargetBuffer, + _In_ DWORD TargetBufferLength, + _In_ LPSTR ExeName + ); + +WINBASEAPI +DWORD +APIENTRY +GetConsoleAliasW( + _In_ LPWSTR Source, + _Out_writes_(TargetBufferLength) LPWSTR TargetBuffer, + _In_ DWORD TargetBufferLength, + _In_ LPWSTR ExeName + ); + +#ifdef UNICODE +#define GetConsoleAlias GetConsoleAliasW +#else +#define GetConsoleAlias GetConsoleAliasA +#endif // !UNICODE + +WINBASEAPI +DWORD +APIENTRY +GetConsoleAliasesLengthA( + _In_ LPSTR ExeName + ); + +WINBASEAPI +DWORD +APIENTRY +GetConsoleAliasesLengthW( + _In_ LPWSTR ExeName + ); + +#ifdef UNICODE +#define GetConsoleAliasesLength GetConsoleAliasesLengthW +#else +#define GetConsoleAliasesLength GetConsoleAliasesLengthA +#endif // !UNICODE + +WINBASEAPI +DWORD +APIENTRY +GetConsoleAliasExesLengthA( + VOID + ); + +WINBASEAPI +DWORD +APIENTRY +GetConsoleAliasExesLengthW( + VOID + ); + +#ifdef UNICODE +#define GetConsoleAliasExesLength GetConsoleAliasExesLengthW +#else +#define GetConsoleAliasExesLength GetConsoleAliasExesLengthA +#endif // !UNICODE + +WINBASEAPI +DWORD +APIENTRY +GetConsoleAliasesA( + _Out_writes_(AliasBufferLength) LPSTR AliasBuffer, + _In_ DWORD AliasBufferLength, + _In_ LPSTR ExeName + ); + +WINBASEAPI +DWORD +APIENTRY +GetConsoleAliasesW( + _Out_writes_(AliasBufferLength) LPWSTR AliasBuffer, + _In_ DWORD AliasBufferLength, + _In_ LPWSTR ExeName + ); + +#ifdef UNICODE +#define GetConsoleAliases GetConsoleAliasesW +#else +#define GetConsoleAliases GetConsoleAliasesA +#endif // !UNICODE + +WINBASEAPI +DWORD +APIENTRY +GetConsoleAliasExesA( + _Out_writes_(ExeNameBufferLength) LPSTR ExeNameBuffer, + _In_ DWORD ExeNameBufferLength + ); + +WINBASEAPI +DWORD +APIENTRY +GetConsoleAliasExesW( + _Out_writes_(ExeNameBufferLength) LPWSTR ExeNameBuffer, + _In_ DWORD ExeNameBufferLength + ); + +#ifdef UNICODE +#define GetConsoleAliasExes GetConsoleAliasExesW +#else +#define GetConsoleAliasExes GetConsoleAliasExesA +#endif // !UNICODE + +#endif /* _WIN32_WINNT >= 0x0501 */ + +WINBASEAPI +VOID +APIENTRY +ExpungeConsoleCommandHistoryA( + _In_ LPSTR ExeName + ); + +WINBASEAPI +VOID +APIENTRY +ExpungeConsoleCommandHistoryW( + _In_ LPWSTR ExeName + ); + +#ifdef UNICODE +#define ExpungeConsoleCommandHistory ExpungeConsoleCommandHistoryW +#else +#define ExpungeConsoleCommandHistory ExpungeConsoleCommandHistoryA +#endif // !UNICODE + +WINBASEAPI +BOOL +APIENTRY +SetConsoleNumberOfCommandsA( + _In_ DWORD Number, + _In_ LPSTR ExeName + ); + +WINBASEAPI +BOOL +APIENTRY +SetConsoleNumberOfCommandsW( + _In_ DWORD Number, + _In_ LPWSTR ExeName + ); + +#ifdef UNICODE +#define SetConsoleNumberOfCommands SetConsoleNumberOfCommandsW +#else +#define SetConsoleNumberOfCommands SetConsoleNumberOfCommandsA +#endif // !UNICODE + +WINBASEAPI +DWORD +APIENTRY +GetConsoleCommandHistoryLengthA( + _In_ LPSTR ExeName + ); + +WINBASEAPI +DWORD +APIENTRY +GetConsoleCommandHistoryLengthW( + _In_ LPWSTR ExeName + ); + +#ifdef UNICODE +#define GetConsoleCommandHistoryLength GetConsoleCommandHistoryLengthW +#else +#define GetConsoleCommandHistoryLength GetConsoleCommandHistoryLengthA +#endif // !UNICODE + +WINBASEAPI +DWORD +APIENTRY +GetConsoleCommandHistoryA( + _Out_writes_bytes_(CommandBufferLength) LPSTR Commands, + _In_ DWORD CommandBufferLength, + _In_ LPSTR ExeName + ); + +WINBASEAPI +DWORD +APIENTRY +GetConsoleCommandHistoryW( + _Out_writes_bytes_(CommandBufferLength) LPWSTR Commands, + _In_ DWORD CommandBufferLength, + _In_ LPWSTR ExeName + ); + +#ifdef UNICODE +#define GetConsoleCommandHistory GetConsoleCommandHistoryW +#else +#define GetConsoleCommandHistory GetConsoleCommandHistoryA +#endif // !UNICODE + +#if (_WIN32_WINNT >= 0x0501) + +WINBASEAPI +DWORD +APIENTRY +GetConsoleProcessList( + _Out_writes_(dwProcessCount) LPDWORD lpdwProcessList, + _In_ DWORD dwProcessCount + ); + +#endif /* _WIN32_WINNT >= 0x0501 */ + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _APISETCONSOLEL3_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/contactdeviceservice.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/contactdeviceservice.h new file mode 100644 index 0000000000000000000000000000000000000000..2e703479ff2b9cdf89fa8a80a72036b8118acdfb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/contactdeviceservice.h @@ -0,0 +1,942 @@ +/* + * ContactDeviceService.h + * + * Contains declarations for the Contact Device Service + * + * Copyright (c) Microsoft Corporation, All Rights Reserved. + * + */ + + +#ifndef _CONTACTDEVICESERVICE_H_ +#define _CONTACTDEVICESERVICE_H_ + +#include + +#include + + +/***************************************************************************** + Contacts Service Info +******************************************************************************/ + +DEFINE_DEVSVCGUID(SERVICE_Contacts, + 0xDD04D5FC, 0x9D6E, 0x4F76, 0x9D, 0xCF, 0xEC, 0xA6, 0x33, 0x9B, 0x73, 0x89 ); + +#define NAME_ContactsSvc L"Contacts" +#define TYPE_ContactsSvc DEVSVCTYPE_DEFAULT + + +/***************************************************************************** + Contacts Service Properties +******************************************************************************/ + + +/* PKEY_ContactSvc_SyncWithPhoneOnly + * + * Type: UInt8 + * Form: None + */ + +#define PKEY_ContactSvc_SyncWithPhoneOnly PKEY_SyncSvc_FilterType +#define NAME_ContactSvc_SyncWithPhoneOnly NAME_SyncSvc_FilterType + +/***************************************************************************** + Contacts Service Object Formats +******************************************************************************/ + +/* FORMAT_AbstractContact + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractContact, + 0xBB810000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractContact L"AbstractContact" + + +/* FORMAT_VCard2Contact + */ + +DEFINE_DEVSVCGUID(FORMAT_VCard2Contact, + 0xBB820000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_VCard2Contact L"VCard2Contact" + + +/* FORMAT_VCard3Contact + */ + +DEFINE_DEVSVCGUID(FORMAT_VCard3Contact, + 0xBB830000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_VCard3Contact L"VCard3Contact" + + +/* FORMAT_AbstractContactGroup + */ + +DEFINE_DEVSVCGUID(FORMAT_AbstractContactGroup, + 0xBA060000, 0xAE6C, 0x4804, 0x98, 0xBA, 0xC5, 0x7B, 0x46, 0x96, 0x5F, 0xE7 ); + +#define NAME_AbstractContactGroup L"AbstractContactGroup" + + + +/***************************************************************************** + Contacts Service Object Property Keys +******************************************************************************/ + +DEFINE_DEVSVCGUID(NAMESPACE_ContactObj, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B ); + + +/* ContactObj.GivenName + * + * MTP Property: Given Name (0xDD00) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_GivenName, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 3 ); + +#define NAME_ContactObj_GivenName L"GivenName" + + +/* ContactObj.MiddleNames + * + * MTP Property: Middle Names (0xDD01) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_MiddleNames, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 4 ); + +#define NAME_ContactObj_MiddleNames L"MiddleNames" + + +/* ContactObj.FamilyName + * + * MTP Property: Family Name (0xDD02) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_FamilyName, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 5 ); + +#define NAME_ContactObj_FamilyName L"FamilyName" + + +/* ContactObj.Title + * + * MTP Property: Prefix (0xDD03) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Title, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 6 ); + +#define NAME_ContactObj_Title L"Title" + + +/* ContactObj.Suffix + * + * MTP Property: Suffix (0xDD04) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Suffix, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 7 ); + +#define NAME_ContactObj_Suffix L"Suffix" + + +/* ContactObj.PhoneticGivenName + * + * MTP Property: Phonetic Given Name (0xDD05) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PhoneticGivenName, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 8 ); + +#define NAME_ContactObj_PhoneticGivenName L"PhoneticGivenName" + + +/* ContactObj.PhoneticFamilyName + * + * MTP Property: Phonetic Family Name (0xDD06) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PhoneticFamilyName, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 9 ); + +#define NAME_ContactObj_PhoneticFamilyName L"PhoneticFamilyName" + + +/* ContactObj.PersonalAddressFull + * + * MTP Property: Postal Address Personal Full (0xDD1F) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalAddressFull, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 10 ); + +#define NAME_ContactObj_PersonalAddressFull L"PersonalAddressFull" + + +/* ContactObj.PersonalAddressStreet + * + * MTP Property: Postal Address Line 1 (0xDD20) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalAddressStreet, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 11 ); + +#define NAME_ContactObj_PersonalAddressStreet L"PersonalAddressStreet" + + +/* ContactObj.PersonalAddressLine2 + * + * MTP Property: Postal Address Line 2 (0xDD21) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalAddressLine2, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 12 ); + +#define NAME_ContactObj_PersonalAddressLine2 L"PersonalAddressLine2" + + +/* ContactObj.PersonalAddressCity + * + * MTP Property: Postal Address Personal City (0xDD22) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalAddressCity, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 13 ); + +#define NAME_ContactObj_PersonalAddressCity L"PersonalAddressCity" + + +/* ContactObj.PersonalAddressRegion + * + * MTP Property: Postal Address Personal Region (0xDD23) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalAddressRegion, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 14 ); + +#define NAME_ContactObj_PersonalAddressRegion L"PersonalAddressRegion" + + +/* ContactObj.PersonalAddressPostalCode + * + * MTP Property: Postal Address Personal Postal Code (0xDD24) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalAddressPostalCode, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 15 ); + +#define NAME_ContactObj_PersonalAddressPostalCode L"PersonalAddressPostalCode" + + +/* ContactObj.PersonalAddressCountry + * + * MTP Property: Postal Address Personal Country (0xDD25) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalAddressCountry, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 16 ); + +#define NAME_ContactObj_PersonalAddressCountry L"PersonalAddressCountry" + + +/* ContactObj.BusinessAddressFull + * + * MTP Property: Postal Address Business Full (0xDD26) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessAddressFull, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 17 ); + +#define NAME_ContactObj_BusinessAddressFull L"BusinessAddressFull" + + +/* ContactObj.BusinessAddressStreet + * + * MTP Property: Postal Address Business Line 1 (0xDD27) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessAddressStreet, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 18 ); + +#define NAME_ContactObj_BusinessAddressStreet L"BusinessAddressStreet" + + +/* ContactObj.BusinessAddressLine2 + * + * MTP Property: Postal Address Business Line 2 (0xDD28) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessAddressLine2, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 19 ); + +#define NAME_ContactObj_BusinessAddressLine2 L"BusinessAddressLine2" + + +/* ContactObj.BusinessAddressCity + * + * MTP Property: Postal Address Business City (0xDD29) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessAddressCity, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 20 ); + +#define NAME_ContactObj_BusinessAddressCity L"BusinessAddressCity" + + +/* ContactObj.BusinessAddressRegion + * + * MTP Property: Postal Address Business Region (0xDD2A) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessAddressRegion, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 21 ); + +#define NAME_ContactObj_BusinessAddressRegion L"BusinessAddressRegion" + + +/* ContactObj.BusinessAddressPostalCode + * + * MTP Property: Postal Address Business Postal Code (0xDD2B) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessAddressPostalCode, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 22 ); + +#define NAME_ContactObj_BusinessAddressPostalCode L"BusinessAddressPostalCode" + + +/* ContactObj.BusinessAddressCountry + * + * MTP Property: Postal Address Business Country (0xDD2C) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessAddressCountry, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 23 ); + +#define NAME_ContactObj_BusinessAddressCountry L"BusinessAddressCountry" + + +/* ContactObj.OtherAddressFull + * + * MTP Property: Postal Address Other Full (0xDD2D) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_OtherAddressFull, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 24 ); + +#define NAME_ContactObj_OtherAddressFull L"OtherAddressFull" + + +/* ContactObj.OtherAddressStreet + * + * MTP Property: Postal Address Other Line 1 (0xDD2E) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_OtherAddressStreet, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 25 ); + +#define NAME_ContactObj_OtherAddressStreet L"OtherAddressStreet" + + +/* ContactObj.OtherAddressLine2 + * + * MTP Property: Postal Address Other Line 2 (0xDD2F) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_OtherAddressLine2, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 26 ); + +#define NAME_ContactObj_OtherAddressLine2 L"OtherAddressLine2" + + +/* ContactObj.OtherAddressCity + * + * MTP Property: Postal Address Other City (0xDD30) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_OtherAddressCity, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 27 ); + +#define NAME_ContactObj_OtherAddressCity L"OtherAddressCity" + + +/* ContactObj.OtherAddressRegion + * + * MTP Property: Postal Address Other Region (0xDD31) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_OtherAddressRegion, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 28 ); + +#define NAME_ContactObj_OtherAddressRegion L"OtherAddressRegion" + + +/* ContactObj.OtherAddressPostalCode + * + * MTP Property: Postal Address Other Postal Code (0xDD32) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_OtherAddressPostalCode, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 29 ); + +#define NAME_ContactObj_OtherAddressPostalCode L"OtherAddressPostalCode" + + +/* ContactObj.OtherAddressCountry + * + * MTP Property: Postal Address Other Country (0xDD33) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_OtherAddressCountry, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 30 ); + +#define NAME_ContactObj_OtherAddressCountry L"OtherAddressCountry" + + +/* ContactObj.Email + * + * MTP Property: Email Primary (0xDD07) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Email, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 31 ); + +#define NAME_ContactObj_Email L"Email" + + +/* ContactObj.PersonalEmail + * + * MTP Property: Email Personal 1 (0xDD08) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalEmail, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 32 ); + +#define NAME_ContactObj_PersonalEmail L"PersonalEmail" + + +/* ContactObj.PersonalEmail2 + * + * MTP Property: Email Personal 2 (0xDD09) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalEmail2, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 33 ); + +#define NAME_ContactObj_PersonalEmail2 L"PersonalEmail2" + + +/* ContactObj.BusinessEmail + * + * MTP Property: Email Business 1 (0xDD0A) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessEmail, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 34 ); + +#define NAME_ContactObj_BusinessEmail L"BusinessEmail" + + +/* ContactObj.BusinessEmail2 + * + * MTP Property: Email Business 2 (0xDD0B) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessEmail2, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 35 ); + +#define NAME_ContactObj_BusinessEmail2 L"BusinessEmail2" + + +/* ContactObj.OtherEmail + * + * MTP Property: Email Others (0xDD0C) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_OtherEmail, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 36 ); + +#define NAME_ContactObj_OtherEmail L"OtherEmail" + + +/* ContactObj.Phone + * + * MTP Property: Phone Primary (0xDD0D) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Phone, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 37 ); + +#define NAME_ContactObj_Phone L"Phone" + + +/* ContactObj.PersonalPhone + * + * MTP Property: Phone Number Personal 1 (0xDD0E) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalPhone, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 38 ); + +#define NAME_ContactObj_PersonalPhone L"PersonalPhone" + + +/* ContactObj.PersonalPhone2 + * + * MTP Property: Phone Number Personal 2 (0xDD0F) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalPhone2, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 39 ); + +#define NAME_ContactObj_PersonalPhone2 L"PersonalPhone2" + + +/* ContactObj.BusinessPhone + * + * MTP Property: Phone Number Business 1 (0xDD10) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessPhone, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 40 ); + +#define NAME_ContactObj_BusinessPhone L"BusinessPhone" + + +/* ContactObj.BusinessPhone2 + * + * MTP Property: Phone Number Business 2 (0xDD11) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessPhone2, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 41 ); + +#define NAME_ContactObj_BusinessPhone2 L"BusinessPhone2" + + +/* ContactObj.MobilePhone + * + * MTP Property: Phone Number Mobile 1 (0xDD12) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_MobilePhone, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 42 ); + +#define NAME_ContactObj_MobilePhone L"MobilePhone" + + +/* ContactObj.MobilePhone2 + * + * MTP Property: Phone Number Mobile 2 (0xDD13) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_MobilePhone2, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 43 ); + +#define NAME_ContactObj_MobilePhone2 L"MobilePhone2" + + +/* ContactObj.PersonalFax + * + * MTP Property: Fax Number Personal (0xDD15) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalFax, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 44 ); + +#define NAME_ContactObj_PersonalFax L"PersonalFax" + + +/* ContactObj.BusinessFax + * + * MTP Property: Fax Number Business (0xDD16) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessFax, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 45 ); + +#define NAME_ContactObj_BusinessFax L"BusinessFax" + + +/* ContactObj.Pager + * + * MTP Property: Pager Number (0xDD17) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Pager, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 46 ); + +#define NAME_ContactObj_Pager L"Pager" + + +/* ContactObj.OtherPhone + * + * MTP Property: Phone Number Others (0xDD18) + * Type: AUInt16 + * Form: LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_OtherPhone, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 47 ); + +#define NAME_ContactObj_OtherPhone L"OtherPhone" + + +/* ContactObj.WebAddress + * + * MTP Property: Primary Web Address (0xDD19) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_WebAddress, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 48 ); + +#define NAME_ContactObj_WebAddress L"WebAddress" + + +/* ContactObj.PersonalWebAddress + * + * MTP Property: Personal Web Address (0xDD1A) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PersonalWebAddress, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 49 ); + +#define NAME_ContactObj_PersonalWebAddress L"PersonalWebAddress" + + +/* ContactObj.BusinessWebAddress + * + * MTP Property: Business Web Address (0xDD1B) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_BusinessWebAddress, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 50 ); + +#define NAME_ContactObj_BusinessWebAddress L"BusinessWebAddress" + + +/* ContactObj.IMAddress + * + * MTP Property: Instant Messanger Address (0xDD1C) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_IMAddress, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 51 ); + +#define NAME_ContactObj_IMAddress L"IMAddress" + + +/* ContactObj.IMAddress2 + * + * MTP Property: Instant Messanger Address 2 (0xDD1D) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_IMAddress2, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 52 ); + +#define NAME_ContactObj_IMAddress2 L"IMAddress2" + + +/* ContactObj.IMAddress3 + * + * MTP Property: Instant Messanger Address 3 (0xDD1E) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_IMAddress3, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 53 ); + +#define NAME_ContactObj_IMAddress3 L"IMAddress3" + + +/* ContactObj.Organization + * + * MTP Property: Organization Name (0xDD34) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Organization, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 54 ); + +#define NAME_ContactObj_Organization L"Organization" + + +/* ContactObj.PhoneticOrganization + * + * MTP Property: Phonetic Organization Name (0xDD35) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_PhoneticOrganization, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 55 ); + +#define NAME_ContactObj_PhoneticOrganization L"PhoneticOrganization" + + +/* ContactObj.Role + * + * MTP Property: Role (0xDD36) + * Type: String/AUInt16 + * Form: None/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Role, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 56 ); + +#define NAME_ContactObj_Role L"Role" + + +/* ContactObj.Fax + * + * MTP Property: Fax Number Primary (0xDD14) + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Fax, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 58 ); + +#define NAME_ContactObj_Fax L"Fax" + + +/* ContactObj.Spouse + * + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Spouse, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 59 ); + +#define NAME_ContactObj_Spouse L"Spouse" + + +/* ContactObj.Children + * + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Children, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 60 ); + +#define NAME_ContactObj_Children L"Children" + + +/* ContactObj.Assistant + * + * Type: String/AUInt16 + * Form: None/RegEx/LongString + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Assistant, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 61 ); + +#define NAME_ContactObj_Assistant L"Assistant" + + +/* ContactObj.Ringtone + * + * Type: UInt32 + * Form: ObjectID + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Ringtone, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 63 ); + +#define NAME_ContactObj_Ringtone L"Ringtone" + + +/* ContactObj.Birthdate + * + * MTP Property: Birthdate (0xDD37) + * Type: String + * Form: DateTime + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_Birthdate, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 65 ); + +#define NAME_ContactObj_Birthdate L"Birthdate" + + +/* ContactObj.AnniversaryDate + * + * Type: String + * Form: DateTime + */ + +DEFINE_DEVSVCPROPKEY(PKEY_ContactObj_AnniversaryDate, + 0xFBD4FDAB, 0x987D, 0x4777, 0xB3, 0xF9, 0x72, 0x61, 0x85, 0xA9, 0x31, 0x2B , + 66 ); + +#define NAME_ContactObj_AnniversaryDate L"AnniversaryDate" + + +#endif /*_CONTACTDEVICESERVICE_H_*/ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/contentpartner.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/contentpartner.h new file mode 100644 index 0000000000000000000000000000000000000000..76fae6264c8226d013c5c8c9b97ab23530c06d12 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/contentpartner.h @@ -0,0 +1,1862 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __contentpartner_h__ +#define __contentpartner_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IWMPContentContainer_FWD_DEFINED__ +#define __IWMPContentContainer_FWD_DEFINED__ +typedef interface IWMPContentContainer IWMPContentContainer; + +#endif /* __IWMPContentContainer_FWD_DEFINED__ */ + + +#ifndef __IWMPContentContainerList_FWD_DEFINED__ +#define __IWMPContentContainerList_FWD_DEFINED__ +typedef interface IWMPContentContainerList IWMPContentContainerList; + +#endif /* __IWMPContentContainerList_FWD_DEFINED__ */ + + +#ifndef __IWMPContentPartnerCallback_FWD_DEFINED__ +#define __IWMPContentPartnerCallback_FWD_DEFINED__ +typedef interface IWMPContentPartnerCallback IWMPContentPartnerCallback; + +#endif /* __IWMPContentPartnerCallback_FWD_DEFINED__ */ + + +#ifndef __IWMPContentPartner_FWD_DEFINED__ +#define __IWMPContentPartner_FWD_DEFINED__ +typedef interface IWMPContentPartner IWMPContentPartner; + +#endif /* __IWMPContentPartner_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_contentpartner_0000_0000 */ +/* [local] */ + +//========================================================================= +// +// Microsoft Windows Media Technologies +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//========================================================================= +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// These constants are used in the IWMPContentPartner::GetContentPartnerInfo API for the bstrInfoName parameter. + +static const WCHAR g_szContentPartnerInfo_LoginState[] = L"LoginState"; + +// Synopsis: IWMPContentPartner::GetContentPartnerInfo +// /*out parameter*/ VARIANT *pData -> Type must be VT_BOOL, indicates whether the user is logged into the services + +static const WCHAR g_szContentPartnerInfo_MediaPlayerAccountType[] = L"MediaPlayerAccountType"; + +// Synopsis: IWMPContentPartner::GetContentPartnerInfo +// /*out parameter*/ VARIANT *pData -> Type must be VT_UI4, - Represents a WMPAccountType value, this value is interpreted by the media player + +static const WCHAR g_szContentPartnerInfo_AccountType[] = L"AccountType"; + +// Synopsis: IWMPContentPartner::GetContentPartnerInfo +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, - Represents subscriptions services account type as a string +// -> This value is not interpreted by the media player, and may be shown to the user + +static const WCHAR g_szContentPartnerInfo_HasCachedCredentials[] = L"HasCachedCredentials"; // VT_BOOL - Returns whether plugin has cached credentials + +// Synopsis: IWMPContentPartner::GetContentPartnerInfo +// /*out parameter*/ VARIANT *pData -> Type must be VT_BOOL, indicates whether the pluggin has cached +// -> credentials necessary to log in to the service + +static const WCHAR g_szContentPartnerInfo_LicenseRefreshAdvanceWarning[] = L"LicenseRefreshAdvanceWarning"; + +// Synopsis: IWMPContentPartner::GetContentPartnerInfo +// /*out parameter*/ VARIANT *pData -> Type must be VT_UI4, representing days - This value is used by the player to pre-emptively refresh licenses that will expire soon. +// -> For example, if the plugin can support refreshing a playback license 5 days before it expires, then pData->ulVal should be set to 5. +// -> This value is a global setting, and cannot be different for different licenses, users, etc. + +static const WCHAR g_szContentPartnerInfo_PurchasedTrackRequiresReDownload[] = L"PurchasedTrackRequiresReDownload"; +// /*out parameter*/ VARIANT *pData -> Type must be VT_BOOL, represents whether a purchased track must be redownloaded if the content had been previously downloaded. + +static const WCHAR g_szContentPartnerInfo_MaximumTrackPurchasePerPurchase[] = L"MaximumNumberOfTracksPerPurchase"; +// /*out parameter*/ VARIANT *pData -> Type must be VT_UI4, indicates the maximum number of tracks that can be handled in a single IWMPContentParnter::Buy call. +// 0 indicates no maximum. + +static const WCHAR g_szContentPartnerInfo_AccountBalance[] = L"AccountBalance"; +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, - Represents account balance as a string +// -> This value is not interpreted by the media player, and may be shown to the user + +static const WCHAR g_szContentPartnerInfo_UserName[] = L"UserName"; +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, - Represents user's account friendly name as a string +// -> This value is not interpreted by the media player, and may be shown to the user + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// These constants are returned to the HTML templates hosted in the player (returned from IWMPContentPartner::GetTemplate +// from the window.external.task API + +static const WCHAR g_szMediaPlayerTask_Burn[] = L"Burn"; +static const WCHAR g_szMediaPlayerTask_Browse[] = L"Browse"; +static const WCHAR g_szMediaPlayerTask_Sync[] = L"Sync"; + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// These constants are used in the IWMPContentPartner::GetItemInfo API for the bstrInfoName parameter + +static const WCHAR g_szItemInfo_PopupURL[] = L"Popup"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_I4, indicates index of popup URL to return +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to host in HTML based dialog + +static const WCHAR g_szItemInfo_AuthenticationSuccessURL[] = L"AuthenticationSuccessURL"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_I4, indicates index of Authentication URL to return +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to navigate if authentication is successful + +static const WCHAR g_szItemInfo_LoginFailureURL[] = L"LoginFailureURL"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_UI4, indicates index of LoginFailureURL to query. This value was passed to the player via Notify( wmpcnLoginStateChange, Type must be VT_BSTR, indicates URL to navigate when loginstatechange + +static const WCHAR g_szItemInfo_HTMLViewURL[] = L"HTMLViewURL"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_BSTR, this is the string specified in the ASX file. For example: +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to use for the HTMLView + +static const WCHAR g_szItemInfo_PopupCaption[] = L"PopupCaption"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_I4, indicates index of popup URL to return +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates caption for the HTML based dialog + +static const WCHAR g_szItemInfo_ALTLoginURL[] = L"ALTLoginURL"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_EMPTY, contains nothing +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL for the alternative login + +static const WCHAR g_szItemInfo_ALTLoginCaption[] = L"ALTLoginCaption"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_EMPTY, contains nothing +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates caption for the alternative login + +static const WCHAR g_szItemInfo_ForgetPasswordURL[] = L"ForgotPassword"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_EMPTY, contains nothing +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to navigate the service plane +// -> in the event the user has forgotten their password + +static const WCHAR g_szItemInfo_CreateAccountURL[] = L"CreateAccount"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_EMPTY, contains nothing +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to navigate the service plane +// -> which the user can manage their account + +static const WCHAR g_szItemInfo_ArtistArtURL[] = L"ArtistArt"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_UI4, containing the aritst ID from the catalog +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to retrieve artist art + +static const WCHAR g_szItemInfo_AlbumArtURL[] = L"AlbumArt"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_UI4, containing the album ID from the catalog +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to retrieve album art + +static const WCHAR g_szItemInfo_ListArtURL[] = L"ListArt"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_UI4, containing the list ID from the catalog +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to retrieve list art + +static const WCHAR g_szItemInfo_GenreArtURL[] = L"GenreArt"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_UI4, containing the genre ID from the catalog +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to retrieve genre art + +static const WCHAR g_szItemInfo_SubGenreArtURL[] = L"SubGenreArt"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_UI4, containing the sub-genre ID from the catalog +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to retrieve sub-genre art + +static const WCHAR g_szItemInfo_RadioArtURL[] = L"RadioArt"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_UI4, containing the radio ID from the catalog +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to retrieve radio art + +static const WCHAR g_szItemInfo_TreeListIconURL[] = L"CPListIDIcon"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_UI4, containing the list ID from the catalog +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, indicates URL to retrieve list icon art + +static const WCHAR g_szItemInfo_ErrorDescription[] = L"CPErrorDescription"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_ERROR, containing the error code +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, text describing the error. +// Fail this call if you do not understand error code + +static const WCHAR g_szItemInfo_ErrorURL[] = L"CPErrorURL"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_ERROR, containing the error code +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, url that the service pane will be navigated +// to when then user clicks the resolve link + +static const WCHAR g_szItemInfo_ErrorURLLinkText[] = L"CPErrorURLLinkText"; + +// Synopsis: IWMPContentPartner::GetItemInfo +// /*input parameter*/ VARIANT *pContext -> Type is VT_ERROR, containing the error code +// /*out parameter*/ VARIANT *pData -> Type must be VT_BSTR, text that will be used for the hyperlink +// text for the URL returned from g_szItemInfo_ErrorURL + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// These constants are used in the all the IWMPContentPartner and IWMPContentPartnerCallback APIs +// that deal with some sort of location or object type. + +static const WCHAR g_szUnknownLocation[] = L"UnknownLocation"; + +// Passed when the media player cannot determine a valid location to pass to the plugin. +// should rarely happen + +static const WCHAR g_szRootLocation[] = L"RootLocation"; // Passed when the user is on the 'root' tree node of the service + +// Passed when the action is taking place on the root content-partner node in the media player's lbrary tree + +static const WCHAR g_szFlyoutMenu[] = L"FlyoutMenu"; // Passed when the user selects the flyout menu of the service + +// Passed when the user selects the flyout menu of the service + +static const WCHAR g_szOnlineStore[] = L"OnlineStore"; // Used to navigate the player to the online stores page in the call to IWMPContentPartnerCallback::ChangeView + +static const WCHAR g_szVideoRecent[] = L"VideoRecent"; // Used to navigate the player to the online stores page in the call to IWMPContentPartnerCallback::ChangeView + +static const WCHAR g_szVideoRoot[] = L"VideoRoot"; // Used to navigate the player to the online stores page in the call to IWMPContentPartnerCallback::ChangeView + +// These constants are used in the all the IWMPContentPartner and IWMPContentPartnerCallback APIs +// They indicate either a location in the library (see IWMPContentPartner::GetTemplate) or +// a type being returned via a callback (see IWMPContentPartner::GetListContents and +// IWMPContentPartnerCallback::AddListContents + +static const WCHAR g_szCPListID[] = L"CPListID"; +static const WCHAR g_szAllCPListIDs[] = L"AllCPListIDs"; +static const WCHAR g_szCPTrackID[] = L"CPTrackID"; +static const WCHAR g_szAllCPTrackIDs[] = L"AllCPTrackIDs"; +static const WCHAR g_szCPArtistID[] = L"CPArtistID"; +static const WCHAR g_szAllCPArtistIDs[] = L"AllCPArtistIDs"; +static const WCHAR g_szCPAlbumID[] = L"CPAlbumID"; +static const WCHAR g_szAllCPAlbumIDs[] = L"AllCPAlbumIDs"; +static const WCHAR g_szCPGenreID[] = L"CPGenreID"; +static const WCHAR g_szAllCPGenreIDs[] = L"AllCPGenreIDs"; +static const WCHAR g_szCPAlbumSubGenreID[] = L"CPAlbumSubGenreID"; +static const WCHAR g_szAllCPAlbumSubGenreIDs[] = L"AllCPAlbumSubGenreIDs"; +static const WCHAR g_szReleaseDateYear[] = L"ReleaseDateYear"; +static const WCHAR g_szAllReleaseDateYears[] = L"AllReleaseDateYears"; +static const WCHAR g_szCPRadioID[] = L"CPRadioID"; +static const WCHAR g_szAllCPRadioIDs[] = L"AllCPRadioIDs"; +static const WCHAR g_szAuthor[] = L"Author"; +static const WCHAR g_szAllAuthors[] = L"AllAuthors"; +static const WCHAR g_szWMParentalRating[] = L"WMParentalRating"; +static const WCHAR g_szAllWMParentalRatings[] = L"AllWMParentalRatings"; +static const WCHAR g_szAllUserEffectiveRatingStarss[] = L"AllUserEffectiveRatingStarss"; +static const WCHAR g_szUserEffectiveRatingStars[] = L"UserEffectiveRatingStars"; +static const WCHAR g_szUserPlaylist[] = L"UserPlaylist"; +static ULONG g_knReservedCPTrackID_NotFound = (DWORD)-1; + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// These constants are to be used by the window.external.changeViewOnlineList for the bstrViewMode parameter + +static const WCHAR g_szViewMode_Report[] = L"ViewModeReport"; // Display dynamic list contents in report mode +static const WCHAR g_szViewMode_Details[] = L"ViewModeDetails"; // Display dynamic list contents in details mode +static const WCHAR g_szViewMode_Icon[] = L"ViewModeIcon"; // Display dynamic list contents in icon mode +static const WCHAR g_szViewMode_Tile[] = L"ViewModeTile"; // Display dynamic list contents in tile mode +static const WCHAR g_szViewMode_OrderedList[] = L"ViewModeOrderedList"; // Display dynamic list contents in ordered list mode + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// These constants are used in the IWMPContentContainer APIs for detecting fixed pricing + +static const WCHAR g_szContentPrice_Unknown[] = L"PriceUnknown"; // The price of the content is unknown +static const WCHAR g_szContentPrice_CannotBuy[] = L"PriceCannotBuy"; // The content cannot be bought +static const WCHAR g_szContentPrice_Free[] = L"PriceFree"; // The content is free +////////////////////////////////////////////////////////////////////// +// SERVICE CAPABILITIES THAT APPLY TO CONTENT-PARTNER-PLUGINS +// +// NOTE: If SUBSCRIPTION_CAP_IS_CONTENTPARTNER is not present, the +// content partner plugin will NOT load +// +// These values are written in the registry as a DWORD value called 'Capabilities' +// under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Subscriptions\ +// See the MSDN section on Online Stores Programming Reference in the Windows Media SDK +////////////////////////////////////////////////////////////////////// +#ifndef SUBSCRIPTION_CAP_DEVICEAVAILABLE +#define SUBSCRIPTION_CAP_DEVICEAVAILABLE 0x00000010 +#endif +#ifndef SUBSCRIPTION_CAP_BACKGROUNDPROCESSING +#define SUBSCRIPTION_CAP_BACKGROUNDPROCESSING 0x00000008 +#endif +#ifndef SUBSCRIPTION_CAP_IS_CONTENTPARTNER +#define SUBSCRIPTION_CAP_IS_CONTENTPARTNER 0x00000040 +#endif +#ifndef SUBSCRIPTION_CAP_ALTLOGIN +#define SUBSCRIPTION_CAP_ALTLOGIN 0x00000080 +#endif + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// The WMPPartnerNotification enum values are passed to the IWMPContentPartner::Notify API + +// Synopsis - IWMPContentPartner::Notify( wmpsnBackgroundProcessingBegin +// /*input*/ VARIANT *pContenxt, type must be VT_EMPTY +// Remarks: the plugin can start background processing + +// Synopsis - IWMPContentPartner::Notify( wmpsnBackgroundProcessingEnd +// /*input*/ VARIANT *pContenxt, type must be VT_EMPTY +// Remarks: the plugin should stop background processing, this enables the player to use more CPU for playback + +// Synopsis - IWMPContentPartner::Notify( wmpsnCatalogDownloadFailure +// /*input*/ VARIANT *pContenxt, type must be VT_ERROR +// Remarks: indicates a failure while downloading the catalog + +// Synopsis - IWMPContentPartner::Notify( wmpsnCatalogDownloadComplete +// /*input*/ VARIANT *pContenxt, type must be VT_EMPTY +// Remarks: indicates the catalog was downloaded successfully + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// These constants are used in the IWMPContentPartner::RefreshLicesnse APIs for the reason + +static const WCHAR g_szRefreshLicensePlay[] = L"RefreshForPlay"; +static const WCHAR g_szRefreshLicenseBurn[] = L"RefreshForBurn"; +static const WCHAR g_szRefreshLicenseSync[] = L"RefreshForSync"; + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// These constants are used in the IWMPContentPartner::VerifyPermission APIs + +static const WCHAR g_szVerifyPermissionSync[] = L"VerifyPermissionSync"; +#ifndef __WMPNotifySubscriptionPluginAddRemove +#define __WMPNotifySubscriptionPluginAddRemove +__inline BOOL WMPNotifySubscriptionPluginAddRemove() +{ + BOOL fRet = FALSE; + UINT msg = RegisterWindowMessageA( "WMPlayer_PluginAddRemove" ); + if( 0 != msg ) + { + fRet = PostMessage( HWND_BROADCAST, msg, 1, 0 ); + } + return fRet; +} +#endif +typedef /* [public] */ +enum WMPPartnerNotification + { + wmpsnBackgroundProcessingBegin = 1, + wmpsnBackgroundProcessingEnd = 2, + wmpsnCatalogDownloadFailure = 3, + wmpsnCatalogDownloadComplete = 4 + } WMPPartnerNotification; + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// The WMPCallbackNotification enum values are passed to the IWMPContentPartner::Notify API + +// Synopsis - IWMPContentPartnerCallback::Notify( wmpcnLoginStateChange +// /*input*/ VARIANT *pContext, type must be VT_BOOL or VT_UI4 +// Remarks: indicates a new login state. VT_BOOL indicates a normal success or failure, while setting the type to VT_UI4 indicates +// a special condition (expired or canceled account, etc) in which case the player will query the plugin via +// GetItemInfo( g_szItemInfo_LoginFailureURL, , ) + +// Synopsis - IWMPContentPartnerCallback::Notify( wmpcnAuthResult +// /*input*/ VARIANT *pContext, type must be VT_BOOL +// Remarks: indicates a successful auth + +// Synopsis - IWMPContentPartnerCallback::Notify( wmpcnLicenseUpdated +// /*input*/ VARIANT *pContext, type must be VT_UI4 +// Remarks: represents the content ID whose license has been update + +// Synopsis - IWMPContentPartnerCallback::Notify( wmpcnNewCatalogAvailable +// /*input*/ VARIANT *pContext, type must be VT_EMPTY +// Remarks: Instructs the player to download a new catalog + +// Synopsis - IWMPContentPartnerCallback::CallbackNotify( wmpcnNewPluginAvailable +// /*input*/ VARIANT *pContext, type must be VT_BOOL +// Remarks: Instructs the player to download a new plugin, if pContext is VARIANT_TRUE, this indicates +// that an upgrade is required + +// Synopsis - IWMPContentPartnerCallback::CallbackNotify( wmpcnDisableRadioSkipping +// /*input*/ VARIANT *pContext, type must be VT_EMPTY +// Remarks: Instructs the player to not allow any skipping of items in a radio playlist +typedef /* [public] */ +enum WMPCallbackNotification + { + wmpcnLoginStateChange = 1, + wmpcnAuthResult = 2, + wmpcnLicenseUpdated = 3, + wmpcnNewCatalogAvailable = 4, + wmpcnNewPluginAvailable = 5, + wmpcnDisableRadioSkipping = 6 + } WMPCallbackNotification; + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// The WMPTaskType enum values are passed to the IWMPContentPartner::GetTemplate API + +// Synopsis - IWMPContentPartner::GetTemplate( wmpttBrowse +// Remarks: Indicates that the player is in the Library task + +// Synopsis - IWMPContentPartner::GetTemplate( wmpttSync +// Remarks: Indicates that the player is in the Sync task + +// Synopsis - IWMPContentPartner::GetTemplate( wmpttBurn +// Remarks: Indicates that the player is in the Burn task + +// Synopsis - IWMPContentPartner::GetTemplate( wmpttCurrent +// Remarks: Indicates that the player is in something other than the Library, Sync or Burn task + +typedef /* [public] */ +enum WMPTaskType + { + wmpttBrowse = 1, + wmpttSync = 2, + wmpttBurn = 3, + wmpttCurrent = 4 + } WMPTaskType; + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// The WMPContextMenuInfo is returned from the IWMPContentPartner::GetCommands API + +// Synopsis - struct WMPContextMenuInfo + +// Member - dwID -> Indicates the value for the command from the plugin. A value of zero will +// cause the media player to insert a separator in the context menu + +// Member - bstrMenuText -> Indicates the text that will be show in the context menu + +// Member - bstrHelpText -> Indicates help text that could be shown when the user is +// highlighting this menu option + +typedef /* [public] */ struct WMPContextMenuInfo + { + DWORD dwID; + BSTR bstrMenuText; + BSTR bstrHelpText; + } WMPContextMenuInfo; + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// These constants are to be used in the IWMPContentPartner::StationEvent + +static const WCHAR g_szStationEvent_Started[] = L"TrackStarted"; +static const WCHAR g_szStationEvent_Complete[] = L"TrackComplete"; +static const WCHAR g_szStationEvent_Skipped[] = L"TrackSkipped"; + + +extern RPC_IF_HANDLE __MIDL_itf_contentpartner_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contentpartner_0000_0000_v0_0_s_ifspec; + +#ifndef __IWMPContentContainer_INTERFACE_DEFINED__ +#define __IWMPContentContainer_INTERFACE_DEFINED__ + +/* interface IWMPContentContainer */ +/* [unique][uuid][object] */ + + +// Synopsis - GetID-> This function returns the ID for this container + + +// Synopsis - GetPrice-> This function returns the price for this container + + +// Synopsis - GetType -> This returns the type of this container. Can return g_szCPAlbumID, g_szCPListID, or g_szUnknownLocation + + +// Synopsis - GetContentCount -> Returns the content count held in this container. + + +// Synopsis - GetContentPrice -> Returns the price for a piece of content. +// /*input*/ idxContent -> index of content to get price for. Should be less than value returned by GetContentCount +// /*output*/ pbstrPrice -> string content the price or g_szContentPrice_Unknown, g_szContentPrice_Free, or g_szContentPrice_CannotBuy + + +// Synopsis - GetContentID-> Returns the identifier for a piece of content. +// /*input*/ idxContent -> index of content to indentifier for. Should be less than value returned by GetContentCount +// /*output*/ pContentID -> indentifier of the content + + +EXTERN_C const IID IID_IWMPContentContainer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ad7f4d9c-1a9f-4ed2-9815-ecc0b58cb616") + IWMPContentContainer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetID( + /* [out] */ __RPC__out ULONG *pContentID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrice( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrPrice) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetType( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContentCount( + /* [out] */ __RPC__out ULONG *pcContent) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContentPrice( + /* [in] */ ULONG idxContent, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrPrice) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContentID( + /* [in] */ ULONG idxContent, + /* [out] */ __RPC__out ULONG *pContentID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWMPContentContainerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWMPContentContainer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWMPContentContainer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWMPContentContainer * This); + + DECLSPEC_XFGVIRT(IWMPContentContainer, GetID) + HRESULT ( STDMETHODCALLTYPE *GetID )( + __RPC__in IWMPContentContainer * This, + /* [out] */ __RPC__out ULONG *pContentID); + + DECLSPEC_XFGVIRT(IWMPContentContainer, GetPrice) + HRESULT ( STDMETHODCALLTYPE *GetPrice )( + __RPC__in IWMPContentContainer * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrPrice); + + DECLSPEC_XFGVIRT(IWMPContentContainer, GetType) + HRESULT ( STDMETHODCALLTYPE *GetType )( + __RPC__in IWMPContentContainer * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrType); + + DECLSPEC_XFGVIRT(IWMPContentContainer, GetContentCount) + HRESULT ( STDMETHODCALLTYPE *GetContentCount )( + __RPC__in IWMPContentContainer * This, + /* [out] */ __RPC__out ULONG *pcContent); + + DECLSPEC_XFGVIRT(IWMPContentContainer, GetContentPrice) + HRESULT ( STDMETHODCALLTYPE *GetContentPrice )( + __RPC__in IWMPContentContainer * This, + /* [in] */ ULONG idxContent, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrPrice); + + DECLSPEC_XFGVIRT(IWMPContentContainer, GetContentID) + HRESULT ( STDMETHODCALLTYPE *GetContentID )( + __RPC__in IWMPContentContainer * This, + /* [in] */ ULONG idxContent, + /* [out] */ __RPC__out ULONG *pContentID); + + END_INTERFACE + } IWMPContentContainerVtbl; + + interface IWMPContentContainer + { + CONST_VTBL struct IWMPContentContainerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWMPContentContainer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWMPContentContainer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWMPContentContainer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWMPContentContainer_GetID(This,pContentID) \ + ( (This)->lpVtbl -> GetID(This,pContentID) ) + +#define IWMPContentContainer_GetPrice(This,pbstrPrice) \ + ( (This)->lpVtbl -> GetPrice(This,pbstrPrice) ) + +#define IWMPContentContainer_GetType(This,pbstrType) \ + ( (This)->lpVtbl -> GetType(This,pbstrType) ) + +#define IWMPContentContainer_GetContentCount(This,pcContent) \ + ( (This)->lpVtbl -> GetContentCount(This,pcContent) ) + +#define IWMPContentContainer_GetContentPrice(This,idxContent,pbstrPrice) \ + ( (This)->lpVtbl -> GetContentPrice(This,idxContent,pbstrPrice) ) + +#define IWMPContentContainer_GetContentID(This,idxContent,pContentID) \ + ( (This)->lpVtbl -> GetContentID(This,idxContent,pContentID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWMPContentContainer_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contentpartner_0000_0001 */ +/* [local] */ + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// The WMPTransactionType enum values are passed to the IWMPContentContainerList::GetTransactionType API + +// Synopsis - wmpttNoTransaction +// Remarks: Undefined transaction, not currently used + +// Synopsis - wmpttDownload +// Remarks: Indicates that this IWMPContentContainerList is to be used for a download transaction + +// Synopsis - wmpttBuy +// Remarks: Indicates that this IWMPContentContainerList is to be used for a buy transaction + +typedef /* [public] */ +enum WMPTransactionType + { + wmpttNoTransaction = 0, + wmpttDownload = 1, + wmpttBuy = 2 + } WMPTransactionType; + + + +extern RPC_IF_HANDLE __MIDL_itf_contentpartner_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contentpartner_0000_0001_v0_0_s_ifspec; + +#ifndef __IWMPContentContainerList_INTERFACE_DEFINED__ +#define __IWMPContentContainerList_INTERFACE_DEFINED__ + +/* interface IWMPContentContainerList */ +/* [unique][uuid][object] */ + + +// Synopsis - GetTransactionType-> Returns the transaction type. +// /*output*/ WMPTransactionType *pwmptt -> indicates whether this IWMPContentContainerList will be used to a buy or download + + +// Synopsis - GetContainerCount-> Returns the number of IWMPContentContainer(s) present in this container list. +// /*output*/ ULONG *pcContainer -> returns the number of containers + + +// Synopsis - GetContainer-> Returns the IWMPContentContainer given an index. +// /*input*/ ULONG idxContainer -> the index of the desired container, should be less than the number returned +// by IWMPContentContainerList::GetContainerCount +// /*output*/ IWMPContentContainer **ppContent -> will containe the requested IWMPContentContainer on success + + +EXTERN_C const IID IID_IWMPContentContainerList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a9937f78-0802-4af8-8b8d-e3f045bc8ab5") + IWMPContentContainerList : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTransactionType( + /* [out] */ __RPC__out WMPTransactionType *pwmptt) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContainerCount( + /* [out] */ __RPC__out ULONG *pcContainer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContainer( + /* [in] */ ULONG idxContainer, + /* [out] */ __RPC__deref_out_opt IWMPContentContainer **ppContent) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWMPContentContainerListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWMPContentContainerList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWMPContentContainerList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWMPContentContainerList * This); + + DECLSPEC_XFGVIRT(IWMPContentContainerList, GetTransactionType) + HRESULT ( STDMETHODCALLTYPE *GetTransactionType )( + __RPC__in IWMPContentContainerList * This, + /* [out] */ __RPC__out WMPTransactionType *pwmptt); + + DECLSPEC_XFGVIRT(IWMPContentContainerList, GetContainerCount) + HRESULT ( STDMETHODCALLTYPE *GetContainerCount )( + __RPC__in IWMPContentContainerList * This, + /* [out] */ __RPC__out ULONG *pcContainer); + + DECLSPEC_XFGVIRT(IWMPContentContainerList, GetContainer) + HRESULT ( STDMETHODCALLTYPE *GetContainer )( + __RPC__in IWMPContentContainerList * This, + /* [in] */ ULONG idxContainer, + /* [out] */ __RPC__deref_out_opt IWMPContentContainer **ppContent); + + END_INTERFACE + } IWMPContentContainerListVtbl; + + interface IWMPContentContainerList + { + CONST_VTBL struct IWMPContentContainerListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWMPContentContainerList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWMPContentContainerList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWMPContentContainerList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWMPContentContainerList_GetTransactionType(This,pwmptt) \ + ( (This)->lpVtbl -> GetTransactionType(This,pwmptt) ) + +#define IWMPContentContainerList_GetContainerCount(This,pcContainer) \ + ( (This)->lpVtbl -> GetContainerCount(This,pcContainer) ) + +#define IWMPContentContainerList_GetContainer(This,idxContainer,ppContent) \ + ( (This)->lpVtbl -> GetContainer(This,idxContainer,ppContent) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWMPContentContainerList_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contentpartner_0000_0002 */ +/* [local] */ + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// The WMPTemplateSize enum values are returned from the IWMPContentPartner::GetTemplate API + +// Synopsis - wmptsSmall +// Remarks: indicates the media player will allocate 100 pixels in height for the template + +// Synopsis - wmptsMedium +// Remarks: indicates the media player will allocate 250 pixels in height for the template + +// Synopsis - wmptsLarge +// Remarks: indicates the media player will allocate all of the room expect for the necessary space +// for the list-control to display a small set of items for the template + +typedef /* [public] */ +enum WMPTemplateSize + { + wmptsSmall = 0, + wmptsMedium = ( wmptsSmall + 1 ) , + wmptsLarge = ( wmptsMedium + 1 ) + } WMPTemplateSize; + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// The WMPStreamingType enum values are passed to the returned from the IWMPContentPartner::GetStreamingULR API + +// Synopsis - wmpstMusic +// Remarks: indicates the plugin should return an URL for music content + +// Synopsis - wmpstVideo +// Remarks: indicates the plugin should return an URL for video content + +// Synopsis - wmpstRadio +// Remarks: indicates the plugin should return an URL for radio content + +typedef /* [public] */ +enum WMPStreamingType + { + wmpstUnknown = 0, + wmpstMusic = 1, + wmpstVideo = 2, + wmpstRadio = 3 + } WMPStreamingType; + + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// The WMPAccountType enum values are returned from the IWMPContentPartner::GetPartnerInfo when API +// the string is g_szContentPartnerInfo_MediaPlayerAccountType passed + +// Synopsis - wmpatBuyOnly +// Remarks: indicates the user only has the option to buy content + +// Synopsis - wmpatSubscription +// Remarks: indicates the user has a subcription account, which indicates buy is also required for sync to Janus device + +// Synopsis - wmpatJanus +// Remarks: indicates the user has a subcirption account, and the ability to sync to Janus devices without having to buy + +typedef /* [public] */ +enum WMPAccountType + { + wmpatBuyOnly = 1, + wmpatSubscription = 2, + wmpatJanus = 3 + } WMPAccountType; + + + +extern RPC_IF_HANDLE __MIDL_itf_contentpartner_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contentpartner_0000_0002_v0_0_s_ifspec; + +#ifndef __IWMPContentPartnerCallback_INTERFACE_DEFINED__ +#define __IWMPContentPartnerCallback_INTERFACE_DEFINED__ + +/* interface IWMPContentPartnerCallback */ +/* [unique][helpstring][uuid][object] */ + + +// Synopsis - Notify-> This function is called to notify the media player of plugin events +// /*input*/ WMPCallbackNotification type - Event that the plugin is notifying the player of +// /*input*/ VARIANT * pContext - The context depends on the notification being sent. See +// remakrs for WMPCallbackNotification + + +// Synopsis - BuyComplete -> This function is called to notify the media player of that a purchase has completed +// /*input*/ HRESULT hrResult - The success or error code of the purchase operation. +// /*input*/ DWORD dwBuyCookie - The cookie passed to IWMPContentPartner::Buy. + +// Remarks: This method should ONLY be called on SUCCESS AFTER all licenses have been delivered. + +// Synopsis - DownloadTrack -> This function is called in response to a IWMPContentPartner::Download +// /*input*/ DWORD dwCookie - The cookie passed to IWMPContentPartner::Download. +// /*input*/ BSTR bstrTrackURL - The URL to download. +// /*input*/ DWORD dwServiceTrackID - The content identifier of the content to download. +// /*input*/ BSTR bstrDownloadParams - A string containing data to be passed to +// IWMPContentPartnerCallback::DownloadTrackComplete. +// /*input*/ HRESULT hrDownload - The success or error code of download operation. + +// Remarks: This method should ONLY be called on SUCCESS AFTER all licenses have been delivered. +// Remarks: The tracks will NOT be download if hrDownload is not a success code. + +// Synopsis - GetCatalogVersion -> This function is called to retrieve the current catalog version. +// /*output*/ DWORD *pdwVersion- The major version of the catalog being used. +// /*output*/ DWORD *pdwSchemaVersion - The schema of the catalog being used. +// /*output*/ LCID *plcid- The language of the catalog being used. + + +// Synopsis - UpdateDeviceComplete -> This function is called to indicate that IWMPContentPartner::UpdateDevice has completed. +// /*input*/ BSTR bstrDeviceName - The device name passed to IWMPContentPartner::UpdateDevice. + + +// Synopsis - ChangeView-> This function is called to navigate the media player UI +// /*input*/ BSTR bstrType - a content partner string ID such as g_szCPArtistID, or g_szOnlineStore +// /*input*/ BSTR bstrID - The identifier to navigate to +// /*input*/ BSTR bstrFilter - A filter to place in the 'word wheel' after navigating + +// Remarks: When using g_szOnlineStore for bstrType, the bstrID ss a full URL to navigate the browser to +// Remarks: Use 'Back' or 'Forward' in bstrType to simulate pressing the applications back and forward navigation buttons +// Remarks: Use g_szRootLocation in bstrType to navigate to the service's root node in the libary UI + + +// Synopsis - AddListContents-> This function is called to add content identifiers to a list as a rsult of the +// IWMPContentPartner::GetListContents API being called +// /*input*/ DWORD dwListCookie - Cookie sent during IWMPContentParnter::GetListContents +// /*input*/ DWORD cItems - The number of content identifiers being passed in the prgItems parameter +// /*input*/ DWORD *prgItems - An array of content identifiers + + +// Synopsis - ListContentsComplete-> This function is called to indicate that the plugin has completed a IWMPContentPartner::GetListContents call +// /*input*/ DWORD dwListCookie - Cookie sent during IWMPContentParnter::GetListContents +// /*input*/ HRESULT hrSuccess - The success or error code of the GetListContents operation + + +// Synopsis - SendMessageComplete-> This function is called to indicate that the plugin has completed a IWMPContentPartner::SendMessage call +// /*input*/ BSTR bstrMsg - Message text sent in IWMPContentPartner::SendMessage +// /*input*/ BSTR bstrParam - Parameter text sent in IWMPContentPartner::SendMessage +// /*input*/ BSTR bstrResult - Result text + + +// Synopsis - GetContentIDsInLibrary-> This function is called to retrieve the content identifiers that are in the users +// library that have been purchased or downloaded. +// /*output*/ ULONG pcContentIDs - The number of content identifiers returned. +// /*output*/ ULONG **pprgIDs - An array of ULONGs containing the content identifiers. Free this array with CoTaskMemFree. + + +// Synopsis - RefreshLicenseComplete -> This function is called to indicate that a license refresh call has completed +// /*input*/ DWORD dwCookie - This should be the same cookie passed to IWMPContentPartner::RefreshLicense. +// /*input*/ ULOING contentID - This should be the same content identifier passed to IWMPContentPartner::RefreshLicense. +// /*input*/ HRESULT hrRefresh - The success or error code of the refresh operation. + + +// Synopsis - ShowPopup -> This function is called to have the player show a popup dialog. Usually this happens +// as a result of IWMPContentPartner::InvokeCommand being called. +// /*input*/ long lIndex - The URL index to request from the IWMPContentPartner::GetItemInfo( g_szItemInfo_PopupURL, ... ) API. +// /*input*/ BSTR bstrParameters - The parameters that are concatenated onto the URL returned by IWMPContentPartner::GetItemInfo( g_szItemInfo_PopupURL, ... ) API + + +// Synopsis - VerifyPermission-> This function is called to indicate that permission verification is complete +// /*input*/ BSTR bstrPermission - Indicates action for which permission was requested. +// /*input*/ VARIANT * pContext - If sync, this is the canonical name of the device. This is the same thing that was passed in as pContext in VerifyPermission. +// /*input*/ HRESULT hrPermission - Result of permission verification. + + +EXTERN_C const IID IID_IWMPContentPartnerCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9E8F7DA2-0695-403c-B697-DA10FAFAA676") + IWMPContentPartnerCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Notify( + /* [in] */ WMPCallbackNotification type, + /* [in] */ __RPC__in VARIANT *pContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE BuyComplete( + /* [in] */ HRESULT hrResult, + /* [in] */ DWORD dwBuyCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE DownloadTrack( + /* [in] */ DWORD cookie, + /* [in] */ __RPC__in BSTR bstrTrackURL, + /* [in] */ DWORD dwServiceTrackID, + /* [in] */ __RPC__in BSTR bstrDownloadParams, + /* [in] */ HRESULT hrDownload) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCatalogVersion( + /* [out] */ __RPC__out DWORD *pdwVersion, + /* [out] */ __RPC__out DWORD *pdwSchemaVersion, + /* [out] */ __RPC__out LCID *plcid) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateDeviceComplete( + /* [in] */ __RPC__in BSTR bstrDeviceName) = 0; + + virtual HRESULT STDMETHODCALLTYPE ChangeView( + /* [in] */ __RPC__in BSTR bstrType, + /* [in] */ __RPC__in BSTR bstrID, + /* [in] */ __RPC__in BSTR bstrFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddListContents( + /* [in] */ DWORD dwListCookie, + /* [in] */ DWORD cItems, + /* [size_is][in] */ __RPC__in_ecount_full(cItems) DWORD *prgItems) = 0; + + virtual HRESULT STDMETHODCALLTYPE ListContentsComplete( + /* [in] */ DWORD dwListCookie, + /* [in] */ HRESULT hrSuccess) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendMessageComplete( + /* [in] */ __RPC__in BSTR bstrMsg, + /* [in] */ __RPC__in BSTR bstrParam, + /* [in] */ __RPC__in BSTR bstrResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContentIDsInLibrary( + /* [out] */ __RPC__out ULONG *pcContentIDs, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcContentIDs) ULONG **pprgIDs) = 0; + + virtual HRESULT STDMETHODCALLTYPE RefreshLicenseComplete( + /* [in] */ DWORD dwCookie, + /* [in] */ ULONG contentID, + /* [in] */ HRESULT hrRefresh) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowPopup( + /* [in] */ long lIndex, + /* [in] */ __RPC__in BSTR bstrParameters) = 0; + + virtual HRESULT STDMETHODCALLTYPE VerifyPermissionComplete( + /* [in] */ __RPC__in BSTR bstrPermission, + /* [in] */ __RPC__in VARIANT *pContext, + /* [in] */ HRESULT hrPermission) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWMPContentPartnerCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWMPContentPartnerCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWMPContentPartnerCallback * This); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, Notify) + HRESULT ( STDMETHODCALLTYPE *Notify )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ WMPCallbackNotification type, + /* [in] */ __RPC__in VARIANT *pContext); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, BuyComplete) + HRESULT ( STDMETHODCALLTYPE *BuyComplete )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ HRESULT hrResult, + /* [in] */ DWORD dwBuyCookie); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, DownloadTrack) + HRESULT ( STDMETHODCALLTYPE *DownloadTrack )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ DWORD cookie, + /* [in] */ __RPC__in BSTR bstrTrackURL, + /* [in] */ DWORD dwServiceTrackID, + /* [in] */ __RPC__in BSTR bstrDownloadParams, + /* [in] */ HRESULT hrDownload); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, GetCatalogVersion) + HRESULT ( STDMETHODCALLTYPE *GetCatalogVersion )( + __RPC__in IWMPContentPartnerCallback * This, + /* [out] */ __RPC__out DWORD *pdwVersion, + /* [out] */ __RPC__out DWORD *pdwSchemaVersion, + /* [out] */ __RPC__out LCID *plcid); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, UpdateDeviceComplete) + HRESULT ( STDMETHODCALLTYPE *UpdateDeviceComplete )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ __RPC__in BSTR bstrDeviceName); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, ChangeView) + HRESULT ( STDMETHODCALLTYPE *ChangeView )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ __RPC__in BSTR bstrType, + /* [in] */ __RPC__in BSTR bstrID, + /* [in] */ __RPC__in BSTR bstrFilter); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, AddListContents) + HRESULT ( STDMETHODCALLTYPE *AddListContents )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ DWORD dwListCookie, + /* [in] */ DWORD cItems, + /* [size_is][in] */ __RPC__in_ecount_full(cItems) DWORD *prgItems); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, ListContentsComplete) + HRESULT ( STDMETHODCALLTYPE *ListContentsComplete )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ DWORD dwListCookie, + /* [in] */ HRESULT hrSuccess); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, SendMessageComplete) + HRESULT ( STDMETHODCALLTYPE *SendMessageComplete )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ __RPC__in BSTR bstrMsg, + /* [in] */ __RPC__in BSTR bstrParam, + /* [in] */ __RPC__in BSTR bstrResult); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, GetContentIDsInLibrary) + HRESULT ( STDMETHODCALLTYPE *GetContentIDsInLibrary )( + __RPC__in IWMPContentPartnerCallback * This, + /* [out] */ __RPC__out ULONG *pcContentIDs, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcContentIDs) ULONG **pprgIDs); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, RefreshLicenseComplete) + HRESULT ( STDMETHODCALLTYPE *RefreshLicenseComplete )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ DWORD dwCookie, + /* [in] */ ULONG contentID, + /* [in] */ HRESULT hrRefresh); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, ShowPopup) + HRESULT ( STDMETHODCALLTYPE *ShowPopup )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ long lIndex, + /* [in] */ __RPC__in BSTR bstrParameters); + + DECLSPEC_XFGVIRT(IWMPContentPartnerCallback, VerifyPermissionComplete) + HRESULT ( STDMETHODCALLTYPE *VerifyPermissionComplete )( + __RPC__in IWMPContentPartnerCallback * This, + /* [in] */ __RPC__in BSTR bstrPermission, + /* [in] */ __RPC__in VARIANT *pContext, + /* [in] */ HRESULT hrPermission); + + END_INTERFACE + } IWMPContentPartnerCallbackVtbl; + + interface IWMPContentPartnerCallback + { + CONST_VTBL struct IWMPContentPartnerCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWMPContentPartnerCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWMPContentPartnerCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWMPContentPartnerCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWMPContentPartnerCallback_Notify(This,type,pContext) \ + ( (This)->lpVtbl -> Notify(This,type,pContext) ) + +#define IWMPContentPartnerCallback_BuyComplete(This,hrResult,dwBuyCookie) \ + ( (This)->lpVtbl -> BuyComplete(This,hrResult,dwBuyCookie) ) + +#define IWMPContentPartnerCallback_DownloadTrack(This,cookie,bstrTrackURL,dwServiceTrackID,bstrDownloadParams,hrDownload) \ + ( (This)->lpVtbl -> DownloadTrack(This,cookie,bstrTrackURL,dwServiceTrackID,bstrDownloadParams,hrDownload) ) + +#define IWMPContentPartnerCallback_GetCatalogVersion(This,pdwVersion,pdwSchemaVersion,plcid) \ + ( (This)->lpVtbl -> GetCatalogVersion(This,pdwVersion,pdwSchemaVersion,plcid) ) + +#define IWMPContentPartnerCallback_UpdateDeviceComplete(This,bstrDeviceName) \ + ( (This)->lpVtbl -> UpdateDeviceComplete(This,bstrDeviceName) ) + +#define IWMPContentPartnerCallback_ChangeView(This,bstrType,bstrID,bstrFilter) \ + ( (This)->lpVtbl -> ChangeView(This,bstrType,bstrID,bstrFilter) ) + +#define IWMPContentPartnerCallback_AddListContents(This,dwListCookie,cItems,prgItems) \ + ( (This)->lpVtbl -> AddListContents(This,dwListCookie,cItems,prgItems) ) + +#define IWMPContentPartnerCallback_ListContentsComplete(This,dwListCookie,hrSuccess) \ + ( (This)->lpVtbl -> ListContentsComplete(This,dwListCookie,hrSuccess) ) + +#define IWMPContentPartnerCallback_SendMessageComplete(This,bstrMsg,bstrParam,bstrResult) \ + ( (This)->lpVtbl -> SendMessageComplete(This,bstrMsg,bstrParam,bstrResult) ) + +#define IWMPContentPartnerCallback_GetContentIDsInLibrary(This,pcContentIDs,pprgIDs) \ + ( (This)->lpVtbl -> GetContentIDsInLibrary(This,pcContentIDs,pprgIDs) ) + +#define IWMPContentPartnerCallback_RefreshLicenseComplete(This,dwCookie,contentID,hrRefresh) \ + ( (This)->lpVtbl -> RefreshLicenseComplete(This,dwCookie,contentID,hrRefresh) ) + +#define IWMPContentPartnerCallback_ShowPopup(This,lIndex,bstrParameters) \ + ( (This)->lpVtbl -> ShowPopup(This,lIndex,bstrParameters) ) + +#define IWMPContentPartnerCallback_VerifyPermissionComplete(This,bstrPermission,pContext,hrPermission) \ + ( (This)->lpVtbl -> VerifyPermissionComplete(This,bstrPermission,pContext,hrPermission) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWMPContentPartnerCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IWMPContentPartner_INTERFACE_DEFINED__ +#define __IWMPContentPartner_INTERFACE_DEFINED__ + +/* interface IWMPContentPartner */ +/* [unique][helpstring][uuid][object] */ + + +// Synopsis - SetCallback-> This function allows gives the pugin the ability to store a callback pointer +// that will be necessary to communicate with the player +// /*input*/ pCallback -> interface pointer to the media player's implementation of the IWMPContentPartnerCallback +// +// Remarks: The player will call this with a null value during its shutdown process. The plugin can use + + +// Synopsis - Notify-> This function is called by the player to notify the plugin of certain events +// /*input*/ WMPPartnerNotification type - see comments for WMPPartnerNotification enum +// /*input*/ VARIANT *pContext - see comments for WMPPartnerNotification enum + + +// Synopsis - GetItemInfo-> This function is called to retrieve different properties about content +// /*input*/ VARIANT *pContext - see comments above for the strings passed into this API +// /*out*/ VARIANT *pData - see comments abouve for the strings passed into this API + + +// Synopsis - GetContentPartnerInfo-> This function is called to retrieve different properties about the content partner +// /*input*/ BSTR bstrInfoName - see comments above for the strings passed into this API +// /*out*/ VARIANT *pData - see comments above for the strings passed into this API + + +// Synopsis - GetCommands-> This function allows the plugin to return commands to be displayed in context menus +// /*input*/ BSTR location -> location in the library (such as g_szCPArtistID) +// /*input*/ VARIANT *pLocationContext -> location in the library (such as VT_UI4, 1231231) +// /*input*/ BSTR itemLocation -> item type selected in library (such as g_szCPTrackID) +// /*input*/ ULONG cItemIDs -> the number of selected items of type itemLocation +// /*input*/ ULONG prgItemIDs -> the array of content identifiers +// /*output*/ ULONG *pcItemIDs -> the number of context menu commands returned in pprgItems +// /*output*/ WMPContextMenuInfo **pprgItems -> Array of WMPContenxtMenuInfo items allocated by CoTaskMemAlloc + +// Remarks: See comments for WMPContextMenuInfo for more information + + +// Synopsis - InvokeCommand-> This function is called when the user selects an option fro a context menu command +// returned by IWMPContentPartner::GetCommands +// /*input*/ DWORD dwCommandID -> Command ID from the select WMPContextMenuInfo +// /*input*/ The remaining parameters are the same as those passed to IWMPContentPartner::GetCommands + +// Remarks: See comments for WMPContextMenuInfo and IWMPContentPartner::GetCommands for more information + + +// Synopsis - GetCatalogURL -> This function is called by the player to retrieve the streaming URL +// /*input*/ WMPStreamingType -> indicates whether the streaming type is for radio\music\video +// /*input*/ VARIANT *pStreamContext -> VT_UI4, contains the content identifier +// /*ouptut*/ BSTR *pbstrURL-> recieves the streaming URL of the content + +// Remarks: The streaming URL for Radio and Video must be contained in an ASX + + +// Synopsis - GetCatalogURL -> This function is called by the player to retrieve the catalog download URL +// /*input*/ DWORD dwCatalogVersion -> current catalog version, or zero if none exists +// /*input*/ DWORD dwCatalogSchemaVesrion -> current catalog schema +// /*input*/ LCID catalogLCID -> current catalog version +// /*output*/ DWORD *pdwNewCatalogVersion -> version of catalog that URL represents +// /*ouptut*/ BSTR *pbstrCatalogURL-> recieves URL that the player will use to download catalog +// /*output*/ VARIANT *pExpirationData-> Must be of type VT_DATE. This is the date at which the player will +// will call IWMPContentPartner::GetCatalogURL to retrieve a new catalog. + + +// Synopsis - UpdateDevice -> This function is called during sync to allow the plugin to do device updates. +// /*input*/ BSTR bstrDeviceName-> name of device to update +// +// Remarks: This call should function asynchronously. Call IWMPContentPartnerCallback::UpdateDeviceComplete when finsihed. + + +// Synopsis - Login-> This function indicates to the plugin to begin logging in to the service +// /*input*/ BLOB userInfo, an encrypted blob containing the user's login name +// /*input*/ BLOB pwdInfo, an encrypted blob containing the user's login password +// /*input*/ VARIANT_BOOL fUsedCachedCreds, indicates to the plugin to attempt to use cached credentials +// for login if present. +// /*input*/ VARIANT_BOOL fOkToCache, indicates that it is acceptable for the plugin to cache +// the users credential. +// +// Remarks: The plugin is responsible for calling IWMPContentPartner::Notify to indicate login state change +// +// Remarks: To unencrypt the user and password name, use +// CryptUnprotectData( blob, NULL, NULL, NULL, NULL, CRYPTPROTECT_UI_FORBIDDEN, &outBlob) + + +// Synopsis - Authenticate-> This function indicates to the plugin to Authenticate the credentials with the service +// /*input*/ BLOB userInfo, an encrypted blob containing the user's login name +// /*input*/ BLOB pwdInfo, an encrypted blob containing the user's login password +// +// Remarks: To unencrypt the user and password name, use +// CryptUnprotectData( blob, NULL, NULL, NULL, NULL, CRYPTPROTECT_UI_FORBIDDEN, &outBlob) + + +// Synopsis - Logout-> This function indicates to the plugin to begin logging out from the service +// +// Remarks: The plugin is responsible for calling IWMPContentPartner::Notify to indicate login state change +// +// Remarks: The plugin should delete any cached credentials when this API is called + + +// Synopsis - SendMessage -> This function allows HTML templates returned from IWMPContentPartner::GetTemplate +// to communicate to the plugin +// /*input*/ bstrMsg -> value send directly from the template returned by IWMPContentPartner::GetTemplate +// -> via the window.external.sendMessage API +// /*input*/ bstrParam -> parameter for the message, also sent from the window.external.sendMessage API +// +//Remarks: The plugin is reponsible for calling IWMPContentPartnerCallback::OnSendMessageComplete in order for +// the HTML template to know that processing of the message occurs. This will be sent to the template +// via the window.external.OnSendMessageComplete notificaiton + + +// Synopsis - CompareContainerListPrices-> This function is called to preform a comparison operation on tow IWMPContentContainerLists +// /*input*/ IWMPContentContainerList *pListBase - +// /*input*/ IWMPContentContainerList *pListCompare - +// /*output*/ long *pResult* - Return less than 0 when pListBase is less than pListCompare, 0 for equal, and greather than 0 when pListBase is more than pListCompare + + +// Synopsis - VerifyPermission-> This function is called to get permission to perform an action +// /*input*/ BSTR bstrPermission - Indicates action for which permission is requested +// /*input*/ VARIANT * pContext - If sync, this is the canonical name of the device. This needs to be returned in VerifyPermissionComplete. + + +EXTERN_C const IID IID_IWMPContentPartner; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("55455073-41B5-4e75-87B8-F13BDB291D08") + IWMPContentPartner : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetCallback( + /* [in] */ __RPC__in_opt IWMPContentPartnerCallback *pCallback) = 0; + + virtual HRESULT STDMETHODCALLTYPE Notify( + /* [in] */ WMPPartnerNotification type, + /* [in] */ __RPC__in VARIANT *pContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItemInfo( + /* [in] */ __RPC__in BSTR bstrInfoName, + /* [in] */ __RPC__in VARIANT *pContext, + /* [out] */ __RPC__out VARIANT *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContentPartnerInfo( + /* [in] */ __RPC__in BSTR bstrInfoName, + /* [out] */ __RPC__out VARIANT *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCommands( + /* [in] */ __RPC__in BSTR location, + /* [in] */ __RPC__in VARIANT *pLocationContext, + /* [in] */ __RPC__in BSTR itemLocation, + /* [in] */ ULONG cItemIDs, + /* [size_is][in] */ __RPC__in_ecount_full(cItemIDs) ULONG *prgItemIDs, + /* [out] */ __RPC__out ULONG *pcItemIDs, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcItemIDs) WMPContextMenuInfo **pprgItems) = 0; + + virtual HRESULT STDMETHODCALLTYPE InvokeCommand( + /* [in] */ DWORD dwCommandID, + /* [in] */ __RPC__in BSTR location, + /* [in] */ __RPC__in VARIANT *pLocationContext, + /* [in] */ __RPC__in BSTR itemLocation, + /* [in] */ ULONG cItemIDs, + /* [size_is][in] */ __RPC__in_ecount_full(cItemIDs) ULONG *rgItemIDs) = 0; + + virtual HRESULT STDMETHODCALLTYPE CanBuySilent( + /* [in] */ __RPC__in_opt IWMPContentContainerList *pInfo, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrTotalPrice, + /* [out] */ __RPC__out VARIANT_BOOL *pSilentOK) = 0; + + virtual HRESULT STDMETHODCALLTYPE Buy( + /* [in] */ __RPC__in_opt IWMPContentContainerList *pInfo, + /* [in] */ DWORD cookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamingURL( + /* [in] */ WMPStreamingType st, + /* [in] */ __RPC__in VARIANT *pStreamContext, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrURL) = 0; + + virtual HRESULT STDMETHODCALLTYPE Download( + /* [in] */ __RPC__in_opt IWMPContentContainerList *pInfo, + /* [in] */ DWORD cookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE DownloadTrackComplete( + /* [in] */ HRESULT hrResult, + /* [in] */ ULONG contentID, + /* [in] */ __RPC__in BSTR downloadTrackParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE RefreshLicense( + /* [in] */ DWORD dwCookie, + /* [in] */ VARIANT_BOOL fLocal, + /* [unique][in] */ __RPC__in_opt BSTR bstrURL, + /* [in] */ WMPStreamingType type, + /* [in] */ ULONG contentID, + /* [in] */ __RPC__in BSTR bstrRefreshReason, + /* [in] */ __RPC__in VARIANT *pReasonContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCatalogURL( + /* [in] */ DWORD dwCatalogVersion, + /* [in] */ DWORD dwCatalogSchemaVersion, + /* [in] */ LCID catalogLCID, + /* [out] */ __RPC__out DWORD *pdwNewCatalogVersion, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrCatalogURL, + /* [out] */ __RPC__out VARIANT *pExpirationDate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTemplate( + /* [in] */ WMPTaskType task, + /* [in] */ __RPC__in BSTR location, + /* [in] */ __RPC__in VARIANT *pContext, + /* [in] */ __RPC__in BSTR clickLocation, + /* [in] */ __RPC__in VARIANT *pClickContext, + /* [in] */ __RPC__in BSTR bstrFilter, + /* [in] */ __RPC__in BSTR bstrViewParams, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrTemplateURL, + /* [out] */ __RPC__out WMPTemplateSize *pTemplateSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateDevice( + /* [in] */ __RPC__in BSTR bstrDeviceName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListContents( + /* [in] */ __RPC__in BSTR location, + /* [in] */ __RPC__in VARIANT *pContext, + /* [in] */ __RPC__in BSTR bstrListType, + /* [in] */ __RPC__in BSTR bstrParams, + /* [in] */ DWORD dwListCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE Login( + /* [in] */ BLOB userInfo, + /* [in] */ BLOB pwdInfo, + /* [in] */ VARIANT_BOOL fUsedCachedCreds, + /* [in] */ VARIANT_BOOL fOkToCache) = 0; + + virtual HRESULT STDMETHODCALLTYPE Authenticate( + /* [in] */ BLOB userInfo, + /* [in] */ BLOB pwdInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE Logout( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendMessage( + /* [in] */ __RPC__in BSTR bstrMsg, + /* [in] */ __RPC__in BSTR bstrParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE StationEvent( + /* [in] */ __RPC__in BSTR bstrStationEventType, + /* [in] */ ULONG StationId, + /* [in] */ ULONG PlaylistIndex, + /* [in] */ ULONG TrackID, + /* [in] */ __RPC__in BSTR TrackData, + /* [in] */ DWORD dwSecondsPlayed) = 0; + + virtual HRESULT STDMETHODCALLTYPE CompareContainerListPrices( + /* [in] */ __RPC__in_opt IWMPContentContainerList *pListBase, + /* [in] */ __RPC__in_opt IWMPContentContainerList *pListCompare, + /* [out] */ __RPC__out long *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE VerifyPermission( + /* [in] */ __RPC__in BSTR bstrPermission, + /* [in] */ __RPC__in VARIANT *pContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWMPContentPartnerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWMPContentPartner * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWMPContentPartner * This); + + DECLSPEC_XFGVIRT(IWMPContentPartner, SetCallback) + HRESULT ( STDMETHODCALLTYPE *SetCallback )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in_opt IWMPContentPartnerCallback *pCallback); + + DECLSPEC_XFGVIRT(IWMPContentPartner, Notify) + HRESULT ( STDMETHODCALLTYPE *Notify )( + __RPC__in IWMPContentPartner * This, + /* [in] */ WMPPartnerNotification type, + /* [in] */ __RPC__in VARIANT *pContext); + + DECLSPEC_XFGVIRT(IWMPContentPartner, GetItemInfo) + HRESULT ( STDMETHODCALLTYPE *GetItemInfo )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in BSTR bstrInfoName, + /* [in] */ __RPC__in VARIANT *pContext, + /* [out] */ __RPC__out VARIANT *pData); + + DECLSPEC_XFGVIRT(IWMPContentPartner, GetContentPartnerInfo) + HRESULT ( STDMETHODCALLTYPE *GetContentPartnerInfo )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in BSTR bstrInfoName, + /* [out] */ __RPC__out VARIANT *pData); + + DECLSPEC_XFGVIRT(IWMPContentPartner, GetCommands) + HRESULT ( STDMETHODCALLTYPE *GetCommands )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in BSTR location, + /* [in] */ __RPC__in VARIANT *pLocationContext, + /* [in] */ __RPC__in BSTR itemLocation, + /* [in] */ ULONG cItemIDs, + /* [size_is][in] */ __RPC__in_ecount_full(cItemIDs) ULONG *prgItemIDs, + /* [out] */ __RPC__out ULONG *pcItemIDs, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcItemIDs) WMPContextMenuInfo **pprgItems); + + DECLSPEC_XFGVIRT(IWMPContentPartner, InvokeCommand) + HRESULT ( STDMETHODCALLTYPE *InvokeCommand )( + __RPC__in IWMPContentPartner * This, + /* [in] */ DWORD dwCommandID, + /* [in] */ __RPC__in BSTR location, + /* [in] */ __RPC__in VARIANT *pLocationContext, + /* [in] */ __RPC__in BSTR itemLocation, + /* [in] */ ULONG cItemIDs, + /* [size_is][in] */ __RPC__in_ecount_full(cItemIDs) ULONG *rgItemIDs); + + DECLSPEC_XFGVIRT(IWMPContentPartner, CanBuySilent) + HRESULT ( STDMETHODCALLTYPE *CanBuySilent )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in_opt IWMPContentContainerList *pInfo, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrTotalPrice, + /* [out] */ __RPC__out VARIANT_BOOL *pSilentOK); + + DECLSPEC_XFGVIRT(IWMPContentPartner, Buy) + HRESULT ( STDMETHODCALLTYPE *Buy )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in_opt IWMPContentContainerList *pInfo, + /* [in] */ DWORD cookie); + + DECLSPEC_XFGVIRT(IWMPContentPartner, GetStreamingURL) + HRESULT ( STDMETHODCALLTYPE *GetStreamingURL )( + __RPC__in IWMPContentPartner * This, + /* [in] */ WMPStreamingType st, + /* [in] */ __RPC__in VARIANT *pStreamContext, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrURL); + + DECLSPEC_XFGVIRT(IWMPContentPartner, Download) + HRESULT ( STDMETHODCALLTYPE *Download )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in_opt IWMPContentContainerList *pInfo, + /* [in] */ DWORD cookie); + + DECLSPEC_XFGVIRT(IWMPContentPartner, DownloadTrackComplete) + HRESULT ( STDMETHODCALLTYPE *DownloadTrackComplete )( + __RPC__in IWMPContentPartner * This, + /* [in] */ HRESULT hrResult, + /* [in] */ ULONG contentID, + /* [in] */ __RPC__in BSTR downloadTrackParam); + + DECLSPEC_XFGVIRT(IWMPContentPartner, RefreshLicense) + HRESULT ( STDMETHODCALLTYPE *RefreshLicense )( + __RPC__in IWMPContentPartner * This, + /* [in] */ DWORD dwCookie, + /* [in] */ VARIANT_BOOL fLocal, + /* [unique][in] */ __RPC__in_opt BSTR bstrURL, + /* [in] */ WMPStreamingType type, + /* [in] */ ULONG contentID, + /* [in] */ __RPC__in BSTR bstrRefreshReason, + /* [in] */ __RPC__in VARIANT *pReasonContext); + + DECLSPEC_XFGVIRT(IWMPContentPartner, GetCatalogURL) + HRESULT ( STDMETHODCALLTYPE *GetCatalogURL )( + __RPC__in IWMPContentPartner * This, + /* [in] */ DWORD dwCatalogVersion, + /* [in] */ DWORD dwCatalogSchemaVersion, + /* [in] */ LCID catalogLCID, + /* [out] */ __RPC__out DWORD *pdwNewCatalogVersion, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrCatalogURL, + /* [out] */ __RPC__out VARIANT *pExpirationDate); + + DECLSPEC_XFGVIRT(IWMPContentPartner, GetTemplate) + HRESULT ( STDMETHODCALLTYPE *GetTemplate )( + __RPC__in IWMPContentPartner * This, + /* [in] */ WMPTaskType task, + /* [in] */ __RPC__in BSTR location, + /* [in] */ __RPC__in VARIANT *pContext, + /* [in] */ __RPC__in BSTR clickLocation, + /* [in] */ __RPC__in VARIANT *pClickContext, + /* [in] */ __RPC__in BSTR bstrFilter, + /* [in] */ __RPC__in BSTR bstrViewParams, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrTemplateURL, + /* [out] */ __RPC__out WMPTemplateSize *pTemplateSize); + + DECLSPEC_XFGVIRT(IWMPContentPartner, UpdateDevice) + HRESULT ( STDMETHODCALLTYPE *UpdateDevice )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in BSTR bstrDeviceName); + + DECLSPEC_XFGVIRT(IWMPContentPartner, GetListContents) + HRESULT ( STDMETHODCALLTYPE *GetListContents )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in BSTR location, + /* [in] */ __RPC__in VARIANT *pContext, + /* [in] */ __RPC__in BSTR bstrListType, + /* [in] */ __RPC__in BSTR bstrParams, + /* [in] */ DWORD dwListCookie); + + DECLSPEC_XFGVIRT(IWMPContentPartner, Login) + HRESULT ( STDMETHODCALLTYPE *Login )( + __RPC__in IWMPContentPartner * This, + /* [in] */ BLOB userInfo, + /* [in] */ BLOB pwdInfo, + /* [in] */ VARIANT_BOOL fUsedCachedCreds, + /* [in] */ VARIANT_BOOL fOkToCache); + + DECLSPEC_XFGVIRT(IWMPContentPartner, Authenticate) + HRESULT ( STDMETHODCALLTYPE *Authenticate )( + __RPC__in IWMPContentPartner * This, + /* [in] */ BLOB userInfo, + /* [in] */ BLOB pwdInfo); + + DECLSPEC_XFGVIRT(IWMPContentPartner, Logout) + HRESULT ( STDMETHODCALLTYPE *Logout )( + __RPC__in IWMPContentPartner * This); + + DECLSPEC_XFGVIRT(IWMPContentPartner, SendMessage) + HRESULT ( STDMETHODCALLTYPE *SendMessage )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in BSTR bstrMsg, + /* [in] */ __RPC__in BSTR bstrParam); + + DECLSPEC_XFGVIRT(IWMPContentPartner, StationEvent) + HRESULT ( STDMETHODCALLTYPE *StationEvent )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in BSTR bstrStationEventType, + /* [in] */ ULONG StationId, + /* [in] */ ULONG PlaylistIndex, + /* [in] */ ULONG TrackID, + /* [in] */ __RPC__in BSTR TrackData, + /* [in] */ DWORD dwSecondsPlayed); + + DECLSPEC_XFGVIRT(IWMPContentPartner, CompareContainerListPrices) + HRESULT ( STDMETHODCALLTYPE *CompareContainerListPrices )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in_opt IWMPContentContainerList *pListBase, + /* [in] */ __RPC__in_opt IWMPContentContainerList *pListCompare, + /* [out] */ __RPC__out long *pResult); + + DECLSPEC_XFGVIRT(IWMPContentPartner, VerifyPermission) + HRESULT ( STDMETHODCALLTYPE *VerifyPermission )( + __RPC__in IWMPContentPartner * This, + /* [in] */ __RPC__in BSTR bstrPermission, + /* [in] */ __RPC__in VARIANT *pContext); + + END_INTERFACE + } IWMPContentPartnerVtbl; + + interface IWMPContentPartner + { + CONST_VTBL struct IWMPContentPartnerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWMPContentPartner_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWMPContentPartner_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWMPContentPartner_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWMPContentPartner_SetCallback(This,pCallback) \ + ( (This)->lpVtbl -> SetCallback(This,pCallback) ) + +#define IWMPContentPartner_Notify(This,type,pContext) \ + ( (This)->lpVtbl -> Notify(This,type,pContext) ) + +#define IWMPContentPartner_GetItemInfo(This,bstrInfoName,pContext,pData) \ + ( (This)->lpVtbl -> GetItemInfo(This,bstrInfoName,pContext,pData) ) + +#define IWMPContentPartner_GetContentPartnerInfo(This,bstrInfoName,pData) \ + ( (This)->lpVtbl -> GetContentPartnerInfo(This,bstrInfoName,pData) ) + +#define IWMPContentPartner_GetCommands(This,location,pLocationContext,itemLocation,cItemIDs,prgItemIDs,pcItemIDs,pprgItems) \ + ( (This)->lpVtbl -> GetCommands(This,location,pLocationContext,itemLocation,cItemIDs,prgItemIDs,pcItemIDs,pprgItems) ) + +#define IWMPContentPartner_InvokeCommand(This,dwCommandID,location,pLocationContext,itemLocation,cItemIDs,rgItemIDs) \ + ( (This)->lpVtbl -> InvokeCommand(This,dwCommandID,location,pLocationContext,itemLocation,cItemIDs,rgItemIDs) ) + +#define IWMPContentPartner_CanBuySilent(This,pInfo,pbstrTotalPrice,pSilentOK) \ + ( (This)->lpVtbl -> CanBuySilent(This,pInfo,pbstrTotalPrice,pSilentOK) ) + +#define IWMPContentPartner_Buy(This,pInfo,cookie) \ + ( (This)->lpVtbl -> Buy(This,pInfo,cookie) ) + +#define IWMPContentPartner_GetStreamingURL(This,st,pStreamContext,pbstrURL) \ + ( (This)->lpVtbl -> GetStreamingURL(This,st,pStreamContext,pbstrURL) ) + +#define IWMPContentPartner_Download(This,pInfo,cookie) \ + ( (This)->lpVtbl -> Download(This,pInfo,cookie) ) + +#define IWMPContentPartner_DownloadTrackComplete(This,hrResult,contentID,downloadTrackParam) \ + ( (This)->lpVtbl -> DownloadTrackComplete(This,hrResult,contentID,downloadTrackParam) ) + +#define IWMPContentPartner_RefreshLicense(This,dwCookie,fLocal,bstrURL,type,contentID,bstrRefreshReason,pReasonContext) \ + ( (This)->lpVtbl -> RefreshLicense(This,dwCookie,fLocal,bstrURL,type,contentID,bstrRefreshReason,pReasonContext) ) + +#define IWMPContentPartner_GetCatalogURL(This,dwCatalogVersion,dwCatalogSchemaVersion,catalogLCID,pdwNewCatalogVersion,pbstrCatalogURL,pExpirationDate) \ + ( (This)->lpVtbl -> GetCatalogURL(This,dwCatalogVersion,dwCatalogSchemaVersion,catalogLCID,pdwNewCatalogVersion,pbstrCatalogURL,pExpirationDate) ) + +#define IWMPContentPartner_GetTemplate(This,task,location,pContext,clickLocation,pClickContext,bstrFilter,bstrViewParams,pbstrTemplateURL,pTemplateSize) \ + ( (This)->lpVtbl -> GetTemplate(This,task,location,pContext,clickLocation,pClickContext,bstrFilter,bstrViewParams,pbstrTemplateURL,pTemplateSize) ) + +#define IWMPContentPartner_UpdateDevice(This,bstrDeviceName) \ + ( (This)->lpVtbl -> UpdateDevice(This,bstrDeviceName) ) + +#define IWMPContentPartner_GetListContents(This,location,pContext,bstrListType,bstrParams,dwListCookie) \ + ( (This)->lpVtbl -> GetListContents(This,location,pContext,bstrListType,bstrParams,dwListCookie) ) + +#define IWMPContentPartner_Login(This,userInfo,pwdInfo,fUsedCachedCreds,fOkToCache) \ + ( (This)->lpVtbl -> Login(This,userInfo,pwdInfo,fUsedCachedCreds,fOkToCache) ) + +#define IWMPContentPartner_Authenticate(This,userInfo,pwdInfo) \ + ( (This)->lpVtbl -> Authenticate(This,userInfo,pwdInfo) ) + +#define IWMPContentPartner_Logout(This) \ + ( (This)->lpVtbl -> Logout(This) ) + +#define IWMPContentPartner_SendMessage(This,bstrMsg,bstrParam) \ + ( (This)->lpVtbl -> SendMessage(This,bstrMsg,bstrParam) ) + +#define IWMPContentPartner_StationEvent(This,bstrStationEventType,StationId,PlaylistIndex,TrackID,TrackData,dwSecondsPlayed) \ + ( (This)->lpVtbl -> StationEvent(This,bstrStationEventType,StationId,PlaylistIndex,TrackID,TrackData,dwSecondsPlayed) ) + +#define IWMPContentPartner_CompareContainerListPrices(This,pListBase,pListCompare,pResult) \ + ( (This)->lpVtbl -> CompareContainerListPrices(This,pListBase,pListCompare,pResult) ) + +#define IWMPContentPartner_VerifyPermission(This,bstrPermission,pContext) \ + ( (This)->lpVtbl -> VerifyPermission(This,bstrPermission,pContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWMPContentPartner_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_contentpartner_0000_0004 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_contentpartner_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_contentpartner_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/control.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/control.h new file mode 100644 index 0000000000000000000000000000000000000000..0fd3a2756d480a7aa38e0f900602cc5a4dc51127 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/control.h @@ -0,0 +1,4188 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __control_h__ +#define __control_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAMCollection_FWD_DEFINED__ +#define __IAMCollection_FWD_DEFINED__ +typedef interface IAMCollection IAMCollection; + +#endif /* __IAMCollection_FWD_DEFINED__ */ + + +#ifndef __IMediaControl_FWD_DEFINED__ +#define __IMediaControl_FWD_DEFINED__ +typedef interface IMediaControl IMediaControl; + +#endif /* __IMediaControl_FWD_DEFINED__ */ + + +#ifndef __IMediaEvent_FWD_DEFINED__ +#define __IMediaEvent_FWD_DEFINED__ +typedef interface IMediaEvent IMediaEvent; + +#endif /* __IMediaEvent_FWD_DEFINED__ */ + + +#ifndef __IMediaEventEx_FWD_DEFINED__ +#define __IMediaEventEx_FWD_DEFINED__ +typedef interface IMediaEventEx IMediaEventEx; + +#endif /* __IMediaEventEx_FWD_DEFINED__ */ + + +#ifndef __IMediaPosition_FWD_DEFINED__ +#define __IMediaPosition_FWD_DEFINED__ +typedef interface IMediaPosition IMediaPosition; + +#endif /* __IMediaPosition_FWD_DEFINED__ */ + + +#ifndef __IBasicAudio_FWD_DEFINED__ +#define __IBasicAudio_FWD_DEFINED__ +typedef interface IBasicAudio IBasicAudio; + +#endif /* __IBasicAudio_FWD_DEFINED__ */ + + +#ifndef __IVideoWindow_FWD_DEFINED__ +#define __IVideoWindow_FWD_DEFINED__ +typedef interface IVideoWindow IVideoWindow; + +#endif /* __IVideoWindow_FWD_DEFINED__ */ + + +#ifndef __IBasicVideo_FWD_DEFINED__ +#define __IBasicVideo_FWD_DEFINED__ +typedef interface IBasicVideo IBasicVideo; + +#endif /* __IBasicVideo_FWD_DEFINED__ */ + + +#ifndef __IBasicVideo2_FWD_DEFINED__ +#define __IBasicVideo2_FWD_DEFINED__ +typedef interface IBasicVideo2 IBasicVideo2; + +#endif /* __IBasicVideo2_FWD_DEFINED__ */ + + +#ifndef __IDeferredCommand_FWD_DEFINED__ +#define __IDeferredCommand_FWD_DEFINED__ +typedef interface IDeferredCommand IDeferredCommand; + +#endif /* __IDeferredCommand_FWD_DEFINED__ */ + + +#ifndef __IQueueCommand_FWD_DEFINED__ +#define __IQueueCommand_FWD_DEFINED__ +typedef interface IQueueCommand IQueueCommand; + +#endif /* __IQueueCommand_FWD_DEFINED__ */ + + +#ifndef __FilgraphManager_FWD_DEFINED__ +#define __FilgraphManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FilgraphManager FilgraphManager; +#else +typedef struct FilgraphManager FilgraphManager; +#endif /* __cplusplus */ + +#endif /* __FilgraphManager_FWD_DEFINED__ */ + + +#ifndef __IFilterInfo_FWD_DEFINED__ +#define __IFilterInfo_FWD_DEFINED__ +typedef interface IFilterInfo IFilterInfo; + +#endif /* __IFilterInfo_FWD_DEFINED__ */ + + +#ifndef __IRegFilterInfo_FWD_DEFINED__ +#define __IRegFilterInfo_FWD_DEFINED__ +typedef interface IRegFilterInfo IRegFilterInfo; + +#endif /* __IRegFilterInfo_FWD_DEFINED__ */ + + +#ifndef __IMediaTypeInfo_FWD_DEFINED__ +#define __IMediaTypeInfo_FWD_DEFINED__ +typedef interface IMediaTypeInfo IMediaTypeInfo; + +#endif /* __IMediaTypeInfo_FWD_DEFINED__ */ + + +#ifndef __IPinInfo_FWD_DEFINED__ +#define __IPinInfo_FWD_DEFINED__ +typedef interface IPinInfo IPinInfo; + +#endif /* __IPinInfo_FWD_DEFINED__ */ + + +#ifndef __IAMStats_FWD_DEFINED__ +#define __IAMStats_FWD_DEFINED__ +typedef interface IAMStats IAMStats; + +#endif /* __IAMStats_FWD_DEFINED__ */ + + +#ifdef __cplusplus +extern "C"{ +#endif + + + +#ifndef __QuartzTypeLib_LIBRARY_DEFINED__ +#define __QuartzTypeLib_LIBRARY_DEFINED__ + +/* library QuartzTypeLib */ +/* [version][lcid][helpstring][uuid] */ + +typedef double REFTIME; + +typedef LONG_PTR OAEVENT; + +typedef LONG_PTR OAHWND; + +typedef long OAFilterState; + + +DEFINE_GUID(LIBID_QuartzTypeLib,0x56a868b0,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#ifndef __IAMCollection_INTERFACE_DEFINED__ +#define __IAMCollection_INTERFACE_DEFINED__ + +/* interface IAMCollection */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IAMCollection,0x56a868b9,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868b9-0ad4-11ce-b03a-0020af0ba770") + IAMCollection : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *plCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Item( + /* [in] */ long lItem, + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAMCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAMCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAMCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAMCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAMCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAMCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAMCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAMCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAMCollection, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAMCollection * This, + /* [retval][out] */ __RPC__out LONG *plCount); + + DECLSPEC_XFGVIRT(IAMCollection, Item) + HRESULT ( STDMETHODCALLTYPE *Item )( + __RPC__in IAMCollection * This, + /* [in] */ long lItem, + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IAMCollection, get__NewEnum) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IAMCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + END_INTERFACE + } IAMCollectionVtbl; + + interface IAMCollection + { + CONST_VTBL struct IAMCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAMCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAMCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAMCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAMCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAMCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAMCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAMCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAMCollection_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IAMCollection_Item(This,lItem,ppUnk) \ + ( (This)->lpVtbl -> Item(This,lItem,ppUnk) ) + +#define IAMCollection_get__NewEnum(This,ppUnk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppUnk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAMCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IMediaControl_INTERFACE_DEFINED__ +#define __IMediaControl_INTERFACE_DEFINED__ + +/* interface IMediaControl */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IMediaControl,0x56a868b1,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868b1-0ad4-11ce-b03a-0020af0ba770") + IMediaControl : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Run( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Pause( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetState( + /* [in] */ LONG msTimeout, + /* [out] */ __RPC__out OAFilterState *pfs) = 0; + + virtual HRESULT STDMETHODCALLTYPE RenderFile( + /* [in] */ __RPC__in BSTR strFilename) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddSourceFilter( + /* [in] */ __RPC__in BSTR strFilename, + /* [out] */ __RPC__deref_out_opt IDispatch **ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FilterCollection( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_RegFilterCollection( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk) = 0; + + virtual HRESULT STDMETHODCALLTYPE StopWhenReady( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMediaControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMediaControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMediaControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMediaControl * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMediaControl * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMediaControl * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMediaControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMediaControl * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMediaControl, Run) + HRESULT ( STDMETHODCALLTYPE *Run )( + __RPC__in IMediaControl * This); + + DECLSPEC_XFGVIRT(IMediaControl, Pause) + HRESULT ( STDMETHODCALLTYPE *Pause )( + __RPC__in IMediaControl * This); + + DECLSPEC_XFGVIRT(IMediaControl, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IMediaControl * This); + + DECLSPEC_XFGVIRT(IMediaControl, GetState) + HRESULT ( STDMETHODCALLTYPE *GetState )( + __RPC__in IMediaControl * This, + /* [in] */ LONG msTimeout, + /* [out] */ __RPC__out OAFilterState *pfs); + + DECLSPEC_XFGVIRT(IMediaControl, RenderFile) + HRESULT ( STDMETHODCALLTYPE *RenderFile )( + __RPC__in IMediaControl * This, + /* [in] */ __RPC__in BSTR strFilename); + + DECLSPEC_XFGVIRT(IMediaControl, AddSourceFilter) + HRESULT ( STDMETHODCALLTYPE *AddSourceFilter )( + __RPC__in IMediaControl * This, + /* [in] */ __RPC__in BSTR strFilename, + /* [out] */ __RPC__deref_out_opt IDispatch **ppUnk); + + DECLSPEC_XFGVIRT(IMediaControl, get_FilterCollection) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilterCollection )( + __RPC__in IMediaControl * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk); + + DECLSPEC_XFGVIRT(IMediaControl, get_RegFilterCollection) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_RegFilterCollection )( + __RPC__in IMediaControl * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk); + + DECLSPEC_XFGVIRT(IMediaControl, StopWhenReady) + HRESULT ( STDMETHODCALLTYPE *StopWhenReady )( + __RPC__in IMediaControl * This); + + END_INTERFACE + } IMediaControlVtbl; + + interface IMediaControl + { + CONST_VTBL struct IMediaControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMediaControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMediaControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMediaControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMediaControl_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMediaControl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMediaControl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMediaControl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMediaControl_Run(This) \ + ( (This)->lpVtbl -> Run(This) ) + +#define IMediaControl_Pause(This) \ + ( (This)->lpVtbl -> Pause(This) ) + +#define IMediaControl_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IMediaControl_GetState(This,msTimeout,pfs) \ + ( (This)->lpVtbl -> GetState(This,msTimeout,pfs) ) + +#define IMediaControl_RenderFile(This,strFilename) \ + ( (This)->lpVtbl -> RenderFile(This,strFilename) ) + +#define IMediaControl_AddSourceFilter(This,strFilename,ppUnk) \ + ( (This)->lpVtbl -> AddSourceFilter(This,strFilename,ppUnk) ) + +#define IMediaControl_get_FilterCollection(This,ppUnk) \ + ( (This)->lpVtbl -> get_FilterCollection(This,ppUnk) ) + +#define IMediaControl_get_RegFilterCollection(This,ppUnk) \ + ( (This)->lpVtbl -> get_RegFilterCollection(This,ppUnk) ) + +#define IMediaControl_StopWhenReady(This) \ + ( (This)->lpVtbl -> StopWhenReady(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMediaControl_INTERFACE_DEFINED__ */ + + +#ifndef __IMediaEvent_INTERFACE_DEFINED__ +#define __IMediaEvent_INTERFACE_DEFINED__ + +/* interface IMediaEvent */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IMediaEvent,0x56a868b6,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868b6-0ad4-11ce-b03a-0020af0ba770") + IMediaEvent : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE GetEventHandle( + /* [out] */ __RPC__out OAEVENT *hEvent) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEvent( + /* [out] */ __RPC__out long *lEventCode, + /* [out] */ __RPC__out LONG_PTR *lParam1, + /* [out] */ __RPC__out LONG_PTR *lParam2, + /* [in] */ long msTimeout) = 0; + + virtual HRESULT STDMETHODCALLTYPE WaitForCompletion( + /* [in] */ long msTimeout, + /* [out] */ __RPC__out long *pEvCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE CancelDefaultHandling( + /* [in] */ long lEvCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE RestoreDefaultHandling( + /* [in] */ long lEvCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE FreeEventParams( + /* [in] */ long lEvCode, + /* [in] */ LONG_PTR lParam1, + /* [in] */ LONG_PTR lParam2) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMediaEventVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMediaEvent * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMediaEvent * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMediaEvent * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMediaEvent * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMediaEvent * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMediaEvent * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMediaEvent * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMediaEvent, GetEventHandle) + HRESULT ( STDMETHODCALLTYPE *GetEventHandle )( + __RPC__in IMediaEvent * This, + /* [out] */ __RPC__out OAEVENT *hEvent); + + DECLSPEC_XFGVIRT(IMediaEvent, GetEvent) + HRESULT ( STDMETHODCALLTYPE *GetEvent )( + __RPC__in IMediaEvent * This, + /* [out] */ __RPC__out long *lEventCode, + /* [out] */ __RPC__out LONG_PTR *lParam1, + /* [out] */ __RPC__out LONG_PTR *lParam2, + /* [in] */ long msTimeout); + + DECLSPEC_XFGVIRT(IMediaEvent, WaitForCompletion) + HRESULT ( STDMETHODCALLTYPE *WaitForCompletion )( + __RPC__in IMediaEvent * This, + /* [in] */ long msTimeout, + /* [out] */ __RPC__out long *pEvCode); + + DECLSPEC_XFGVIRT(IMediaEvent, CancelDefaultHandling) + HRESULT ( STDMETHODCALLTYPE *CancelDefaultHandling )( + __RPC__in IMediaEvent * This, + /* [in] */ long lEvCode); + + DECLSPEC_XFGVIRT(IMediaEvent, RestoreDefaultHandling) + HRESULT ( STDMETHODCALLTYPE *RestoreDefaultHandling )( + __RPC__in IMediaEvent * This, + /* [in] */ long lEvCode); + + DECLSPEC_XFGVIRT(IMediaEvent, FreeEventParams) + HRESULT ( STDMETHODCALLTYPE *FreeEventParams )( + __RPC__in IMediaEvent * This, + /* [in] */ long lEvCode, + /* [in] */ LONG_PTR lParam1, + /* [in] */ LONG_PTR lParam2); + + END_INTERFACE + } IMediaEventVtbl; + + interface IMediaEvent + { + CONST_VTBL struct IMediaEventVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMediaEvent_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMediaEvent_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMediaEvent_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMediaEvent_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMediaEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMediaEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMediaEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMediaEvent_GetEventHandle(This,hEvent) \ + ( (This)->lpVtbl -> GetEventHandle(This,hEvent) ) + +#define IMediaEvent_GetEvent(This,lEventCode,lParam1,lParam2,msTimeout) \ + ( (This)->lpVtbl -> GetEvent(This,lEventCode,lParam1,lParam2,msTimeout) ) + +#define IMediaEvent_WaitForCompletion(This,msTimeout,pEvCode) \ + ( (This)->lpVtbl -> WaitForCompletion(This,msTimeout,pEvCode) ) + +#define IMediaEvent_CancelDefaultHandling(This,lEvCode) \ + ( (This)->lpVtbl -> CancelDefaultHandling(This,lEvCode) ) + +#define IMediaEvent_RestoreDefaultHandling(This,lEvCode) \ + ( (This)->lpVtbl -> RestoreDefaultHandling(This,lEvCode) ) + +#define IMediaEvent_FreeEventParams(This,lEvCode,lParam1,lParam2) \ + ( (This)->lpVtbl -> FreeEventParams(This,lEvCode,lParam1,lParam2) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMediaEvent_INTERFACE_DEFINED__ */ + + +#ifndef __IMediaEventEx_INTERFACE_DEFINED__ +#define __IMediaEventEx_INTERFACE_DEFINED__ + +/* interface IMediaEventEx */ +/* [object][helpstring][uuid] */ + + +DEFINE_GUID(IID_IMediaEventEx,0x56a868c0,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868c0-0ad4-11ce-b03a-0020af0ba770") + IMediaEventEx : public IMediaEvent + { + public: + virtual HRESULT STDMETHODCALLTYPE SetNotifyWindow( + /* [in] */ OAHWND hwnd, + /* [in] */ long lMsg, + /* [in] */ LONG_PTR lInstanceData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetNotifyFlags( + /* [in] */ long lNoNotifyFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNotifyFlags( + /* [out] */ __RPC__out long *lplNoNotifyFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMediaEventExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMediaEventEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMediaEventEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMediaEventEx * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMediaEventEx * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMediaEventEx * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMediaEventEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMediaEventEx * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMediaEvent, GetEventHandle) + HRESULT ( STDMETHODCALLTYPE *GetEventHandle )( + __RPC__in IMediaEventEx * This, + /* [out] */ __RPC__out OAEVENT *hEvent); + + DECLSPEC_XFGVIRT(IMediaEvent, GetEvent) + HRESULT ( STDMETHODCALLTYPE *GetEvent )( + __RPC__in IMediaEventEx * This, + /* [out] */ __RPC__out long *lEventCode, + /* [out] */ __RPC__out LONG_PTR *lParam1, + /* [out] */ __RPC__out LONG_PTR *lParam2, + /* [in] */ long msTimeout); + + DECLSPEC_XFGVIRT(IMediaEvent, WaitForCompletion) + HRESULT ( STDMETHODCALLTYPE *WaitForCompletion )( + __RPC__in IMediaEventEx * This, + /* [in] */ long msTimeout, + /* [out] */ __RPC__out long *pEvCode); + + DECLSPEC_XFGVIRT(IMediaEvent, CancelDefaultHandling) + HRESULT ( STDMETHODCALLTYPE *CancelDefaultHandling )( + __RPC__in IMediaEventEx * This, + /* [in] */ long lEvCode); + + DECLSPEC_XFGVIRT(IMediaEvent, RestoreDefaultHandling) + HRESULT ( STDMETHODCALLTYPE *RestoreDefaultHandling )( + __RPC__in IMediaEventEx * This, + /* [in] */ long lEvCode); + + DECLSPEC_XFGVIRT(IMediaEvent, FreeEventParams) + HRESULT ( STDMETHODCALLTYPE *FreeEventParams )( + __RPC__in IMediaEventEx * This, + /* [in] */ long lEvCode, + /* [in] */ LONG_PTR lParam1, + /* [in] */ LONG_PTR lParam2); + + DECLSPEC_XFGVIRT(IMediaEventEx, SetNotifyWindow) + HRESULT ( STDMETHODCALLTYPE *SetNotifyWindow )( + __RPC__in IMediaEventEx * This, + /* [in] */ OAHWND hwnd, + /* [in] */ long lMsg, + /* [in] */ LONG_PTR lInstanceData); + + DECLSPEC_XFGVIRT(IMediaEventEx, SetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *SetNotifyFlags )( + __RPC__in IMediaEventEx * This, + /* [in] */ long lNoNotifyFlags); + + DECLSPEC_XFGVIRT(IMediaEventEx, GetNotifyFlags) + HRESULT ( STDMETHODCALLTYPE *GetNotifyFlags )( + __RPC__in IMediaEventEx * This, + /* [out] */ __RPC__out long *lplNoNotifyFlags); + + END_INTERFACE + } IMediaEventExVtbl; + + interface IMediaEventEx + { + CONST_VTBL struct IMediaEventExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMediaEventEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMediaEventEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMediaEventEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMediaEventEx_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMediaEventEx_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMediaEventEx_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMediaEventEx_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMediaEventEx_GetEventHandle(This,hEvent) \ + ( (This)->lpVtbl -> GetEventHandle(This,hEvent) ) + +#define IMediaEventEx_GetEvent(This,lEventCode,lParam1,lParam2,msTimeout) \ + ( (This)->lpVtbl -> GetEvent(This,lEventCode,lParam1,lParam2,msTimeout) ) + +#define IMediaEventEx_WaitForCompletion(This,msTimeout,pEvCode) \ + ( (This)->lpVtbl -> WaitForCompletion(This,msTimeout,pEvCode) ) + +#define IMediaEventEx_CancelDefaultHandling(This,lEvCode) \ + ( (This)->lpVtbl -> CancelDefaultHandling(This,lEvCode) ) + +#define IMediaEventEx_RestoreDefaultHandling(This,lEvCode) \ + ( (This)->lpVtbl -> RestoreDefaultHandling(This,lEvCode) ) + +#define IMediaEventEx_FreeEventParams(This,lEvCode,lParam1,lParam2) \ + ( (This)->lpVtbl -> FreeEventParams(This,lEvCode,lParam1,lParam2) ) + + +#define IMediaEventEx_SetNotifyWindow(This,hwnd,lMsg,lInstanceData) \ + ( (This)->lpVtbl -> SetNotifyWindow(This,hwnd,lMsg,lInstanceData) ) + +#define IMediaEventEx_SetNotifyFlags(This,lNoNotifyFlags) \ + ( (This)->lpVtbl -> SetNotifyFlags(This,lNoNotifyFlags) ) + +#define IMediaEventEx_GetNotifyFlags(This,lplNoNotifyFlags) \ + ( (This)->lpVtbl -> GetNotifyFlags(This,lplNoNotifyFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMediaEventEx_INTERFACE_DEFINED__ */ + + +#ifndef __IMediaPosition_INTERFACE_DEFINED__ +#define __IMediaPosition_INTERFACE_DEFINED__ + +/* interface IMediaPosition */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IMediaPosition,0x56a868b2,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868b2-0ad4-11ce-b03a-0020af0ba770") + IMediaPosition : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Duration( + /* [retval][out] */ __RPC__out REFTIME *plength) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_CurrentPosition( + /* [in] */ REFTIME llTime) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPosition( + /* [retval][out] */ __RPC__out REFTIME *pllTime) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_StopTime( + /* [retval][out] */ __RPC__out REFTIME *pllTime) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_StopTime( + /* [in] */ REFTIME llTime) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PrerollTime( + /* [retval][out] */ __RPC__out REFTIME *pllTime) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_PrerollTime( + /* [in] */ REFTIME llTime) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Rate( + /* [in] */ double dRate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Rate( + /* [retval][out] */ __RPC__out double *pdRate) = 0; + + virtual HRESULT STDMETHODCALLTYPE CanSeekForward( + /* [retval][out] */ __RPC__out LONG *pCanSeekForward) = 0; + + virtual HRESULT STDMETHODCALLTYPE CanSeekBackward( + /* [retval][out] */ __RPC__out LONG *pCanSeekBackward) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMediaPositionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMediaPosition * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMediaPosition * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMediaPosition * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMediaPosition * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMediaPosition * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMediaPosition * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMediaPosition * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMediaPosition, get_Duration) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Duration )( + __RPC__in IMediaPosition * This, + /* [retval][out] */ __RPC__out REFTIME *plength); + + DECLSPEC_XFGVIRT(IMediaPosition, put_CurrentPosition) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_CurrentPosition )( + __RPC__in IMediaPosition * This, + /* [in] */ REFTIME llTime); + + DECLSPEC_XFGVIRT(IMediaPosition, get_CurrentPosition) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPosition )( + __RPC__in IMediaPosition * This, + /* [retval][out] */ __RPC__out REFTIME *pllTime); + + DECLSPEC_XFGVIRT(IMediaPosition, get_StopTime) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_StopTime )( + __RPC__in IMediaPosition * This, + /* [retval][out] */ __RPC__out REFTIME *pllTime); + + DECLSPEC_XFGVIRT(IMediaPosition, put_StopTime) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_StopTime )( + __RPC__in IMediaPosition * This, + /* [in] */ REFTIME llTime); + + DECLSPEC_XFGVIRT(IMediaPosition, get_PrerollTime) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PrerollTime )( + __RPC__in IMediaPosition * This, + /* [retval][out] */ __RPC__out REFTIME *pllTime); + + DECLSPEC_XFGVIRT(IMediaPosition, put_PrerollTime) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_PrerollTime )( + __RPC__in IMediaPosition * This, + /* [in] */ REFTIME llTime); + + DECLSPEC_XFGVIRT(IMediaPosition, put_Rate) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Rate )( + __RPC__in IMediaPosition * This, + /* [in] */ double dRate); + + DECLSPEC_XFGVIRT(IMediaPosition, get_Rate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Rate )( + __RPC__in IMediaPosition * This, + /* [retval][out] */ __RPC__out double *pdRate); + + DECLSPEC_XFGVIRT(IMediaPosition, CanSeekForward) + HRESULT ( STDMETHODCALLTYPE *CanSeekForward )( + __RPC__in IMediaPosition * This, + /* [retval][out] */ __RPC__out LONG *pCanSeekForward); + + DECLSPEC_XFGVIRT(IMediaPosition, CanSeekBackward) + HRESULT ( STDMETHODCALLTYPE *CanSeekBackward )( + __RPC__in IMediaPosition * This, + /* [retval][out] */ __RPC__out LONG *pCanSeekBackward); + + END_INTERFACE + } IMediaPositionVtbl; + + interface IMediaPosition + { + CONST_VTBL struct IMediaPositionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMediaPosition_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMediaPosition_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMediaPosition_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMediaPosition_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMediaPosition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMediaPosition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMediaPosition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMediaPosition_get_Duration(This,plength) \ + ( (This)->lpVtbl -> get_Duration(This,plength) ) + +#define IMediaPosition_put_CurrentPosition(This,llTime) \ + ( (This)->lpVtbl -> put_CurrentPosition(This,llTime) ) + +#define IMediaPosition_get_CurrentPosition(This,pllTime) \ + ( (This)->lpVtbl -> get_CurrentPosition(This,pllTime) ) + +#define IMediaPosition_get_StopTime(This,pllTime) \ + ( (This)->lpVtbl -> get_StopTime(This,pllTime) ) + +#define IMediaPosition_put_StopTime(This,llTime) \ + ( (This)->lpVtbl -> put_StopTime(This,llTime) ) + +#define IMediaPosition_get_PrerollTime(This,pllTime) \ + ( (This)->lpVtbl -> get_PrerollTime(This,pllTime) ) + +#define IMediaPosition_put_PrerollTime(This,llTime) \ + ( (This)->lpVtbl -> put_PrerollTime(This,llTime) ) + +#define IMediaPosition_put_Rate(This,dRate) \ + ( (This)->lpVtbl -> put_Rate(This,dRate) ) + +#define IMediaPosition_get_Rate(This,pdRate) \ + ( (This)->lpVtbl -> get_Rate(This,pdRate) ) + +#define IMediaPosition_CanSeekForward(This,pCanSeekForward) \ + ( (This)->lpVtbl -> CanSeekForward(This,pCanSeekForward) ) + +#define IMediaPosition_CanSeekBackward(This,pCanSeekBackward) \ + ( (This)->lpVtbl -> CanSeekBackward(This,pCanSeekBackward) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMediaPosition_INTERFACE_DEFINED__ */ + + +#ifndef __IBasicAudio_INTERFACE_DEFINED__ +#define __IBasicAudio_INTERFACE_DEFINED__ + +/* interface IBasicAudio */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IBasicAudio,0x56a868b3,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868b3-0ad4-11ce-b03a-0020af0ba770") + IBasicAudio : public IDispatch + { + public: + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Volume( + /* [in] */ long lVolume) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Volume( + /* [retval][out] */ __RPC__out long *plVolume) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Balance( + /* [in] */ long lBalance) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Balance( + /* [retval][out] */ __RPC__out long *plBalance) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBasicAudioVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBasicAudio * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBasicAudio * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBasicAudio * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBasicAudio * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBasicAudio * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBasicAudio * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBasicAudio * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBasicAudio, put_Volume) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Volume )( + __RPC__in IBasicAudio * This, + /* [in] */ long lVolume); + + DECLSPEC_XFGVIRT(IBasicAudio, get_Volume) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Volume )( + __RPC__in IBasicAudio * This, + /* [retval][out] */ __RPC__out long *plVolume); + + DECLSPEC_XFGVIRT(IBasicAudio, put_Balance) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Balance )( + __RPC__in IBasicAudio * This, + /* [in] */ long lBalance); + + DECLSPEC_XFGVIRT(IBasicAudio, get_Balance) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Balance )( + __RPC__in IBasicAudio * This, + /* [retval][out] */ __RPC__out long *plBalance); + + END_INTERFACE + } IBasicAudioVtbl; + + interface IBasicAudio + { + CONST_VTBL struct IBasicAudioVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBasicAudio_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBasicAudio_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBasicAudio_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBasicAudio_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBasicAudio_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBasicAudio_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBasicAudio_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBasicAudio_put_Volume(This,lVolume) \ + ( (This)->lpVtbl -> put_Volume(This,lVolume) ) + +#define IBasicAudio_get_Volume(This,plVolume) \ + ( (This)->lpVtbl -> get_Volume(This,plVolume) ) + +#define IBasicAudio_put_Balance(This,lBalance) \ + ( (This)->lpVtbl -> put_Balance(This,lBalance) ) + +#define IBasicAudio_get_Balance(This,plBalance) \ + ( (This)->lpVtbl -> get_Balance(This,plBalance) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBasicAudio_INTERFACE_DEFINED__ */ + + +#ifndef __IVideoWindow_INTERFACE_DEFINED__ +#define __IVideoWindow_INTERFACE_DEFINED__ + +/* interface IVideoWindow */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IVideoWindow,0x56a868b4,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868b4-0ad4-11ce-b03a-0020af0ba770") + IVideoWindow : public IDispatch + { + public: + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Caption( + /* [in] */ __RPC__in BSTR strCaption) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Caption( + /* [retval][out] */ __RPC__deref_out_opt BSTR *strCaption) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_WindowStyle( + /* [in] */ long WindowStyle) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_WindowStyle( + /* [retval][out] */ __RPC__out long *WindowStyle) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_WindowStyleEx( + /* [in] */ long WindowStyleEx) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_WindowStyleEx( + /* [retval][out] */ __RPC__out long *WindowStyleEx) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_AutoShow( + /* [in] */ long AutoShow) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AutoShow( + /* [retval][out] */ __RPC__out long *AutoShow) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_WindowState( + /* [in] */ long WindowState) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_WindowState( + /* [retval][out] */ __RPC__out long *WindowState) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BackgroundPalette( + /* [in] */ long BackgroundPalette) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BackgroundPalette( + /* [retval][out] */ __RPC__out long *pBackgroundPalette) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Visible( + /* [in] */ long Visible) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Visible( + /* [retval][out] */ __RPC__out long *pVisible) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Left( + /* [in] */ long Left) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Left( + /* [retval][out] */ __RPC__out long *pLeft) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Width( + /* [in] */ long Width) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Width( + /* [retval][out] */ __RPC__out long *pWidth) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Top( + /* [in] */ long Top) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Top( + /* [retval][out] */ __RPC__out long *pTop) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Height( + /* [in] */ long Height) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Height( + /* [retval][out] */ __RPC__out long *pHeight) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Owner( + /* [in] */ OAHWND Owner) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Owner( + /* [retval][out] */ __RPC__out OAHWND *Owner) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_MessageDrain( + /* [in] */ OAHWND Drain) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MessageDrain( + /* [retval][out] */ __RPC__out OAHWND *Drain) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BorderColor( + /* [retval][out] */ __RPC__out long *Color) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_BorderColor( + /* [in] */ long Color) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FullScreenMode( + /* [retval][out] */ __RPC__out long *FullScreenMode) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_FullScreenMode( + /* [in] */ long FullScreenMode) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetWindowForeground( + /* [in] */ long Focus) = 0; + + virtual HRESULT STDMETHODCALLTYPE NotifyOwnerMessage( + /* [in] */ OAHWND hwnd, + /* [in] */ long uMsg, + /* [in] */ LONG_PTR wParam, + /* [in] */ LONG_PTR lParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetWindowPosition( + /* [in] */ long Left, + /* [in] */ long Top, + /* [in] */ long Width, + /* [in] */ long Height) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetWindowPosition( + /* [out] */ __RPC__out long *pLeft, + /* [out] */ __RPC__out long *pTop, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMinIdealImageSize( + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMaxIdealImageSize( + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRestorePosition( + /* [out] */ __RPC__out long *pLeft, + /* [out] */ __RPC__out long *pTop, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE HideCursor( + /* [in] */ long HideCursor) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsCursorHidden( + /* [out] */ __RPC__out long *CursorHidden) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IVideoWindowVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IVideoWindow * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IVideoWindow * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IVideoWindow * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IVideoWindow * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IVideoWindow * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IVideoWindow * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IVideoWindow * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IVideoWindow, put_Caption) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Caption )( + __RPC__in IVideoWindow * This, + /* [in] */ __RPC__in BSTR strCaption); + + DECLSPEC_XFGVIRT(IVideoWindow, get_Caption) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Caption )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *strCaption); + + DECLSPEC_XFGVIRT(IVideoWindow, put_WindowStyle) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_WindowStyle )( + __RPC__in IVideoWindow * This, + /* [in] */ long WindowStyle); + + DECLSPEC_XFGVIRT(IVideoWindow, get_WindowStyle) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_WindowStyle )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *WindowStyle); + + DECLSPEC_XFGVIRT(IVideoWindow, put_WindowStyleEx) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_WindowStyleEx )( + __RPC__in IVideoWindow * This, + /* [in] */ long WindowStyleEx); + + DECLSPEC_XFGVIRT(IVideoWindow, get_WindowStyleEx) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_WindowStyleEx )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *WindowStyleEx); + + DECLSPEC_XFGVIRT(IVideoWindow, put_AutoShow) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_AutoShow )( + __RPC__in IVideoWindow * This, + /* [in] */ long AutoShow); + + DECLSPEC_XFGVIRT(IVideoWindow, get_AutoShow) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AutoShow )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *AutoShow); + + DECLSPEC_XFGVIRT(IVideoWindow, put_WindowState) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_WindowState )( + __RPC__in IVideoWindow * This, + /* [in] */ long WindowState); + + DECLSPEC_XFGVIRT(IVideoWindow, get_WindowState) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_WindowState )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *WindowState); + + DECLSPEC_XFGVIRT(IVideoWindow, put_BackgroundPalette) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BackgroundPalette )( + __RPC__in IVideoWindow * This, + /* [in] */ long BackgroundPalette); + + DECLSPEC_XFGVIRT(IVideoWindow, get_BackgroundPalette) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackgroundPalette )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *pBackgroundPalette); + + DECLSPEC_XFGVIRT(IVideoWindow, put_Visible) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Visible )( + __RPC__in IVideoWindow * This, + /* [in] */ long Visible); + + DECLSPEC_XFGVIRT(IVideoWindow, get_Visible) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Visible )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *pVisible); + + DECLSPEC_XFGVIRT(IVideoWindow, put_Left) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Left )( + __RPC__in IVideoWindow * This, + /* [in] */ long Left); + + DECLSPEC_XFGVIRT(IVideoWindow, get_Left) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Left )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *pLeft); + + DECLSPEC_XFGVIRT(IVideoWindow, put_Width) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Width )( + __RPC__in IVideoWindow * This, + /* [in] */ long Width); + + DECLSPEC_XFGVIRT(IVideoWindow, get_Width) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Width )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *pWidth); + + DECLSPEC_XFGVIRT(IVideoWindow, put_Top) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Top )( + __RPC__in IVideoWindow * This, + /* [in] */ long Top); + + DECLSPEC_XFGVIRT(IVideoWindow, get_Top) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Top )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *pTop); + + DECLSPEC_XFGVIRT(IVideoWindow, put_Height) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Height )( + __RPC__in IVideoWindow * This, + /* [in] */ long Height); + + DECLSPEC_XFGVIRT(IVideoWindow, get_Height) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Height )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IVideoWindow, put_Owner) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Owner )( + __RPC__in IVideoWindow * This, + /* [in] */ OAHWND Owner); + + DECLSPEC_XFGVIRT(IVideoWindow, get_Owner) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Owner )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out OAHWND *Owner); + + DECLSPEC_XFGVIRT(IVideoWindow, put_MessageDrain) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_MessageDrain )( + __RPC__in IVideoWindow * This, + /* [in] */ OAHWND Drain); + + DECLSPEC_XFGVIRT(IVideoWindow, get_MessageDrain) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MessageDrain )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out OAHWND *Drain); + + DECLSPEC_XFGVIRT(IVideoWindow, get_BorderColor) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BorderColor )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *Color); + + DECLSPEC_XFGVIRT(IVideoWindow, put_BorderColor) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_BorderColor )( + __RPC__in IVideoWindow * This, + /* [in] */ long Color); + + DECLSPEC_XFGVIRT(IVideoWindow, get_FullScreenMode) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FullScreenMode )( + __RPC__in IVideoWindow * This, + /* [retval][out] */ __RPC__out long *FullScreenMode); + + DECLSPEC_XFGVIRT(IVideoWindow, put_FullScreenMode) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_FullScreenMode )( + __RPC__in IVideoWindow * This, + /* [in] */ long FullScreenMode); + + DECLSPEC_XFGVIRT(IVideoWindow, SetWindowForeground) + HRESULT ( STDMETHODCALLTYPE *SetWindowForeground )( + __RPC__in IVideoWindow * This, + /* [in] */ long Focus); + + DECLSPEC_XFGVIRT(IVideoWindow, NotifyOwnerMessage) + HRESULT ( STDMETHODCALLTYPE *NotifyOwnerMessage )( + __RPC__in IVideoWindow * This, + /* [in] */ OAHWND hwnd, + /* [in] */ long uMsg, + /* [in] */ LONG_PTR wParam, + /* [in] */ LONG_PTR lParam); + + DECLSPEC_XFGVIRT(IVideoWindow, SetWindowPosition) + HRESULT ( STDMETHODCALLTYPE *SetWindowPosition )( + __RPC__in IVideoWindow * This, + /* [in] */ long Left, + /* [in] */ long Top, + /* [in] */ long Width, + /* [in] */ long Height); + + DECLSPEC_XFGVIRT(IVideoWindow, GetWindowPosition) + HRESULT ( STDMETHODCALLTYPE *GetWindowPosition )( + __RPC__in IVideoWindow * This, + /* [out] */ __RPC__out long *pLeft, + /* [out] */ __RPC__out long *pTop, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IVideoWindow, GetMinIdealImageSize) + HRESULT ( STDMETHODCALLTYPE *GetMinIdealImageSize )( + __RPC__in IVideoWindow * This, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IVideoWindow, GetMaxIdealImageSize) + HRESULT ( STDMETHODCALLTYPE *GetMaxIdealImageSize )( + __RPC__in IVideoWindow * This, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IVideoWindow, GetRestorePosition) + HRESULT ( STDMETHODCALLTYPE *GetRestorePosition )( + __RPC__in IVideoWindow * This, + /* [out] */ __RPC__out long *pLeft, + /* [out] */ __RPC__out long *pTop, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IVideoWindow, HideCursor) + HRESULT ( STDMETHODCALLTYPE *HideCursor )( + __RPC__in IVideoWindow * This, + /* [in] */ long HideCursor); + + DECLSPEC_XFGVIRT(IVideoWindow, IsCursorHidden) + HRESULT ( STDMETHODCALLTYPE *IsCursorHidden )( + __RPC__in IVideoWindow * This, + /* [out] */ __RPC__out long *CursorHidden); + + END_INTERFACE + } IVideoWindowVtbl; + + interface IVideoWindow + { + CONST_VTBL struct IVideoWindowVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IVideoWindow_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IVideoWindow_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IVideoWindow_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IVideoWindow_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IVideoWindow_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IVideoWindow_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IVideoWindow_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IVideoWindow_put_Caption(This,strCaption) \ + ( (This)->lpVtbl -> put_Caption(This,strCaption) ) + +#define IVideoWindow_get_Caption(This,strCaption) \ + ( (This)->lpVtbl -> get_Caption(This,strCaption) ) + +#define IVideoWindow_put_WindowStyle(This,WindowStyle) \ + ( (This)->lpVtbl -> put_WindowStyle(This,WindowStyle) ) + +#define IVideoWindow_get_WindowStyle(This,WindowStyle) \ + ( (This)->lpVtbl -> get_WindowStyle(This,WindowStyle) ) + +#define IVideoWindow_put_WindowStyleEx(This,WindowStyleEx) \ + ( (This)->lpVtbl -> put_WindowStyleEx(This,WindowStyleEx) ) + +#define IVideoWindow_get_WindowStyleEx(This,WindowStyleEx) \ + ( (This)->lpVtbl -> get_WindowStyleEx(This,WindowStyleEx) ) + +#define IVideoWindow_put_AutoShow(This,AutoShow) \ + ( (This)->lpVtbl -> put_AutoShow(This,AutoShow) ) + +#define IVideoWindow_get_AutoShow(This,AutoShow) \ + ( (This)->lpVtbl -> get_AutoShow(This,AutoShow) ) + +#define IVideoWindow_put_WindowState(This,WindowState) \ + ( (This)->lpVtbl -> put_WindowState(This,WindowState) ) + +#define IVideoWindow_get_WindowState(This,WindowState) \ + ( (This)->lpVtbl -> get_WindowState(This,WindowState) ) + +#define IVideoWindow_put_BackgroundPalette(This,BackgroundPalette) \ + ( (This)->lpVtbl -> put_BackgroundPalette(This,BackgroundPalette) ) + +#define IVideoWindow_get_BackgroundPalette(This,pBackgroundPalette) \ + ( (This)->lpVtbl -> get_BackgroundPalette(This,pBackgroundPalette) ) + +#define IVideoWindow_put_Visible(This,Visible) \ + ( (This)->lpVtbl -> put_Visible(This,Visible) ) + +#define IVideoWindow_get_Visible(This,pVisible) \ + ( (This)->lpVtbl -> get_Visible(This,pVisible) ) + +#define IVideoWindow_put_Left(This,Left) \ + ( (This)->lpVtbl -> put_Left(This,Left) ) + +#define IVideoWindow_get_Left(This,pLeft) \ + ( (This)->lpVtbl -> get_Left(This,pLeft) ) + +#define IVideoWindow_put_Width(This,Width) \ + ( (This)->lpVtbl -> put_Width(This,Width) ) + +#define IVideoWindow_get_Width(This,pWidth) \ + ( (This)->lpVtbl -> get_Width(This,pWidth) ) + +#define IVideoWindow_put_Top(This,Top) \ + ( (This)->lpVtbl -> put_Top(This,Top) ) + +#define IVideoWindow_get_Top(This,pTop) \ + ( (This)->lpVtbl -> get_Top(This,pTop) ) + +#define IVideoWindow_put_Height(This,Height) \ + ( (This)->lpVtbl -> put_Height(This,Height) ) + +#define IVideoWindow_get_Height(This,pHeight) \ + ( (This)->lpVtbl -> get_Height(This,pHeight) ) + +#define IVideoWindow_put_Owner(This,Owner) \ + ( (This)->lpVtbl -> put_Owner(This,Owner) ) + +#define IVideoWindow_get_Owner(This,Owner) \ + ( (This)->lpVtbl -> get_Owner(This,Owner) ) + +#define IVideoWindow_put_MessageDrain(This,Drain) \ + ( (This)->lpVtbl -> put_MessageDrain(This,Drain) ) + +#define IVideoWindow_get_MessageDrain(This,Drain) \ + ( (This)->lpVtbl -> get_MessageDrain(This,Drain) ) + +#define IVideoWindow_get_BorderColor(This,Color) \ + ( (This)->lpVtbl -> get_BorderColor(This,Color) ) + +#define IVideoWindow_put_BorderColor(This,Color) \ + ( (This)->lpVtbl -> put_BorderColor(This,Color) ) + +#define IVideoWindow_get_FullScreenMode(This,FullScreenMode) \ + ( (This)->lpVtbl -> get_FullScreenMode(This,FullScreenMode) ) + +#define IVideoWindow_put_FullScreenMode(This,FullScreenMode) \ + ( (This)->lpVtbl -> put_FullScreenMode(This,FullScreenMode) ) + +#define IVideoWindow_SetWindowForeground(This,Focus) \ + ( (This)->lpVtbl -> SetWindowForeground(This,Focus) ) + +#define IVideoWindow_NotifyOwnerMessage(This,hwnd,uMsg,wParam,lParam) \ + ( (This)->lpVtbl -> NotifyOwnerMessage(This,hwnd,uMsg,wParam,lParam) ) + +#define IVideoWindow_SetWindowPosition(This,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> SetWindowPosition(This,Left,Top,Width,Height) ) + +#define IVideoWindow_GetWindowPosition(This,pLeft,pTop,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetWindowPosition(This,pLeft,pTop,pWidth,pHeight) ) + +#define IVideoWindow_GetMinIdealImageSize(This,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetMinIdealImageSize(This,pWidth,pHeight) ) + +#define IVideoWindow_GetMaxIdealImageSize(This,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetMaxIdealImageSize(This,pWidth,pHeight) ) + +#define IVideoWindow_GetRestorePosition(This,pLeft,pTop,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetRestorePosition(This,pLeft,pTop,pWidth,pHeight) ) + +#define IVideoWindow_HideCursor(This,HideCursor) \ + ( (This)->lpVtbl -> HideCursor(This,HideCursor) ) + +#define IVideoWindow_IsCursorHidden(This,CursorHidden) \ + ( (This)->lpVtbl -> IsCursorHidden(This,CursorHidden) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IVideoWindow_INTERFACE_DEFINED__ */ + + +#ifndef __IBasicVideo_INTERFACE_DEFINED__ +#define __IBasicVideo_INTERFACE_DEFINED__ + +/* interface IBasicVideo */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IBasicVideo,0x56a868b5,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868b5-0ad4-11ce-b03a-0020af0ba770") + IBasicVideo : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AvgTimePerFrame( + /* [retval][out] */ __RPC__out REFTIME *pAvgTimePerFrame) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BitRate( + /* [retval][out] */ __RPC__out long *pBitRate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_BitErrorRate( + /* [retval][out] */ __RPC__out long *pBitErrorRate) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_VideoWidth( + /* [retval][out] */ __RPC__out long *pVideoWidth) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_VideoHeight( + /* [retval][out] */ __RPC__out long *pVideoHeight) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SourceLeft( + /* [in] */ long SourceLeft) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SourceLeft( + /* [retval][out] */ __RPC__out long *pSourceLeft) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SourceWidth( + /* [in] */ long SourceWidth) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SourceWidth( + /* [retval][out] */ __RPC__out long *pSourceWidth) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SourceTop( + /* [in] */ long SourceTop) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SourceTop( + /* [retval][out] */ __RPC__out long *pSourceTop) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_SourceHeight( + /* [in] */ long SourceHeight) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SourceHeight( + /* [retval][out] */ __RPC__out long *pSourceHeight) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_DestinationLeft( + /* [in] */ long DestinationLeft) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DestinationLeft( + /* [retval][out] */ __RPC__out long *pDestinationLeft) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_DestinationWidth( + /* [in] */ long DestinationWidth) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DestinationWidth( + /* [retval][out] */ __RPC__out long *pDestinationWidth) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_DestinationTop( + /* [in] */ long DestinationTop) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DestinationTop( + /* [retval][out] */ __RPC__out long *pDestinationTop) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_DestinationHeight( + /* [in] */ long DestinationHeight) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_DestinationHeight( + /* [retval][out] */ __RPC__out long *pDestinationHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSourcePosition( + /* [in] */ long Left, + /* [in] */ long Top, + /* [in] */ long Width, + /* [in] */ long Height) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSourcePosition( + /* [out] */ __RPC__out long *pLeft, + /* [out] */ __RPC__out long *pTop, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDefaultSourcePosition( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDestinationPosition( + /* [in] */ long Left, + /* [in] */ long Top, + /* [in] */ long Width, + /* [in] */ long Height) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDestinationPosition( + /* [out] */ __RPC__out long *pLeft, + /* [out] */ __RPC__out long *pTop, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDefaultDestinationPosition( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoSize( + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoPaletteEntries( + /* [in] */ long StartIndex, + /* [in] */ long Entries, + /* [out] */ __RPC__out long *pRetrieved, + /* [out] */ __RPC__out long *pPalette) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentImage( + /* [out][in] */ __RPC__inout long *pBufferSize, + /* [out] */ __RPC__out long *pDIBImage) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsUsingDefaultSource( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsUsingDefaultDestination( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBasicVideoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBasicVideo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBasicVideo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBasicVideo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBasicVideo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBasicVideo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBasicVideo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBasicVideo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBasicVideo, get_AvgTimePerFrame) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AvgTimePerFrame )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out REFTIME *pAvgTimePerFrame); + + DECLSPEC_XFGVIRT(IBasicVideo, get_BitRate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitRate )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pBitRate); + + DECLSPEC_XFGVIRT(IBasicVideo, get_BitErrorRate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitErrorRate )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pBitErrorRate); + + DECLSPEC_XFGVIRT(IBasicVideo, get_VideoWidth) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoWidth )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pVideoWidth); + + DECLSPEC_XFGVIRT(IBasicVideo, get_VideoHeight) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoHeight )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pVideoHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, put_SourceLeft) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceLeft )( + __RPC__in IBasicVideo * This, + /* [in] */ long SourceLeft); + + DECLSPEC_XFGVIRT(IBasicVideo, get_SourceLeft) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceLeft )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pSourceLeft); + + DECLSPEC_XFGVIRT(IBasicVideo, put_SourceWidth) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceWidth )( + __RPC__in IBasicVideo * This, + /* [in] */ long SourceWidth); + + DECLSPEC_XFGVIRT(IBasicVideo, get_SourceWidth) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceWidth )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pSourceWidth); + + DECLSPEC_XFGVIRT(IBasicVideo, put_SourceTop) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceTop )( + __RPC__in IBasicVideo * This, + /* [in] */ long SourceTop); + + DECLSPEC_XFGVIRT(IBasicVideo, get_SourceTop) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceTop )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pSourceTop); + + DECLSPEC_XFGVIRT(IBasicVideo, put_SourceHeight) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceHeight )( + __RPC__in IBasicVideo * This, + /* [in] */ long SourceHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, get_SourceHeight) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceHeight )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pSourceHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, put_DestinationLeft) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationLeft )( + __RPC__in IBasicVideo * This, + /* [in] */ long DestinationLeft); + + DECLSPEC_XFGVIRT(IBasicVideo, get_DestinationLeft) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationLeft )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pDestinationLeft); + + DECLSPEC_XFGVIRT(IBasicVideo, put_DestinationWidth) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationWidth )( + __RPC__in IBasicVideo * This, + /* [in] */ long DestinationWidth); + + DECLSPEC_XFGVIRT(IBasicVideo, get_DestinationWidth) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationWidth )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pDestinationWidth); + + DECLSPEC_XFGVIRT(IBasicVideo, put_DestinationTop) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationTop )( + __RPC__in IBasicVideo * This, + /* [in] */ long DestinationTop); + + DECLSPEC_XFGVIRT(IBasicVideo, get_DestinationTop) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationTop )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pDestinationTop); + + DECLSPEC_XFGVIRT(IBasicVideo, put_DestinationHeight) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationHeight )( + __RPC__in IBasicVideo * This, + /* [in] */ long DestinationHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, get_DestinationHeight) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationHeight )( + __RPC__in IBasicVideo * This, + /* [retval][out] */ __RPC__out long *pDestinationHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, SetSourcePosition) + HRESULT ( STDMETHODCALLTYPE *SetSourcePosition )( + __RPC__in IBasicVideo * This, + /* [in] */ long Left, + /* [in] */ long Top, + /* [in] */ long Width, + /* [in] */ long Height); + + DECLSPEC_XFGVIRT(IBasicVideo, GetSourcePosition) + HRESULT ( STDMETHODCALLTYPE *GetSourcePosition )( + __RPC__in IBasicVideo * This, + /* [out] */ __RPC__out long *pLeft, + /* [out] */ __RPC__out long *pTop, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, SetDefaultSourcePosition) + HRESULT ( STDMETHODCALLTYPE *SetDefaultSourcePosition )( + __RPC__in IBasicVideo * This); + + DECLSPEC_XFGVIRT(IBasicVideo, SetDestinationPosition) + HRESULT ( STDMETHODCALLTYPE *SetDestinationPosition )( + __RPC__in IBasicVideo * This, + /* [in] */ long Left, + /* [in] */ long Top, + /* [in] */ long Width, + /* [in] */ long Height); + + DECLSPEC_XFGVIRT(IBasicVideo, GetDestinationPosition) + HRESULT ( STDMETHODCALLTYPE *GetDestinationPosition )( + __RPC__in IBasicVideo * This, + /* [out] */ __RPC__out long *pLeft, + /* [out] */ __RPC__out long *pTop, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, SetDefaultDestinationPosition) + HRESULT ( STDMETHODCALLTYPE *SetDefaultDestinationPosition )( + __RPC__in IBasicVideo * This); + + DECLSPEC_XFGVIRT(IBasicVideo, GetVideoSize) + HRESULT ( STDMETHODCALLTYPE *GetVideoSize )( + __RPC__in IBasicVideo * This, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, GetVideoPaletteEntries) + HRESULT ( STDMETHODCALLTYPE *GetVideoPaletteEntries )( + __RPC__in IBasicVideo * This, + /* [in] */ long StartIndex, + /* [in] */ long Entries, + /* [out] */ __RPC__out long *pRetrieved, + /* [out] */ __RPC__out long *pPalette); + + DECLSPEC_XFGVIRT(IBasicVideo, GetCurrentImage) + HRESULT ( STDMETHODCALLTYPE *GetCurrentImage )( + __RPC__in IBasicVideo * This, + /* [out][in] */ __RPC__inout long *pBufferSize, + /* [out] */ __RPC__out long *pDIBImage); + + DECLSPEC_XFGVIRT(IBasicVideo, IsUsingDefaultSource) + HRESULT ( STDMETHODCALLTYPE *IsUsingDefaultSource )( + __RPC__in IBasicVideo * This); + + DECLSPEC_XFGVIRT(IBasicVideo, IsUsingDefaultDestination) + HRESULT ( STDMETHODCALLTYPE *IsUsingDefaultDestination )( + __RPC__in IBasicVideo * This); + + END_INTERFACE + } IBasicVideoVtbl; + + interface IBasicVideo + { + CONST_VTBL struct IBasicVideoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBasicVideo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBasicVideo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBasicVideo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBasicVideo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBasicVideo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBasicVideo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBasicVideo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBasicVideo_get_AvgTimePerFrame(This,pAvgTimePerFrame) \ + ( (This)->lpVtbl -> get_AvgTimePerFrame(This,pAvgTimePerFrame) ) + +#define IBasicVideo_get_BitRate(This,pBitRate) \ + ( (This)->lpVtbl -> get_BitRate(This,pBitRate) ) + +#define IBasicVideo_get_BitErrorRate(This,pBitErrorRate) \ + ( (This)->lpVtbl -> get_BitErrorRate(This,pBitErrorRate) ) + +#define IBasicVideo_get_VideoWidth(This,pVideoWidth) \ + ( (This)->lpVtbl -> get_VideoWidth(This,pVideoWidth) ) + +#define IBasicVideo_get_VideoHeight(This,pVideoHeight) \ + ( (This)->lpVtbl -> get_VideoHeight(This,pVideoHeight) ) + +#define IBasicVideo_put_SourceLeft(This,SourceLeft) \ + ( (This)->lpVtbl -> put_SourceLeft(This,SourceLeft) ) + +#define IBasicVideo_get_SourceLeft(This,pSourceLeft) \ + ( (This)->lpVtbl -> get_SourceLeft(This,pSourceLeft) ) + +#define IBasicVideo_put_SourceWidth(This,SourceWidth) \ + ( (This)->lpVtbl -> put_SourceWidth(This,SourceWidth) ) + +#define IBasicVideo_get_SourceWidth(This,pSourceWidth) \ + ( (This)->lpVtbl -> get_SourceWidth(This,pSourceWidth) ) + +#define IBasicVideo_put_SourceTop(This,SourceTop) \ + ( (This)->lpVtbl -> put_SourceTop(This,SourceTop) ) + +#define IBasicVideo_get_SourceTop(This,pSourceTop) \ + ( (This)->lpVtbl -> get_SourceTop(This,pSourceTop) ) + +#define IBasicVideo_put_SourceHeight(This,SourceHeight) \ + ( (This)->lpVtbl -> put_SourceHeight(This,SourceHeight) ) + +#define IBasicVideo_get_SourceHeight(This,pSourceHeight) \ + ( (This)->lpVtbl -> get_SourceHeight(This,pSourceHeight) ) + +#define IBasicVideo_put_DestinationLeft(This,DestinationLeft) \ + ( (This)->lpVtbl -> put_DestinationLeft(This,DestinationLeft) ) + +#define IBasicVideo_get_DestinationLeft(This,pDestinationLeft) \ + ( (This)->lpVtbl -> get_DestinationLeft(This,pDestinationLeft) ) + +#define IBasicVideo_put_DestinationWidth(This,DestinationWidth) \ + ( (This)->lpVtbl -> put_DestinationWidth(This,DestinationWidth) ) + +#define IBasicVideo_get_DestinationWidth(This,pDestinationWidth) \ + ( (This)->lpVtbl -> get_DestinationWidth(This,pDestinationWidth) ) + +#define IBasicVideo_put_DestinationTop(This,DestinationTop) \ + ( (This)->lpVtbl -> put_DestinationTop(This,DestinationTop) ) + +#define IBasicVideo_get_DestinationTop(This,pDestinationTop) \ + ( (This)->lpVtbl -> get_DestinationTop(This,pDestinationTop) ) + +#define IBasicVideo_put_DestinationHeight(This,DestinationHeight) \ + ( (This)->lpVtbl -> put_DestinationHeight(This,DestinationHeight) ) + +#define IBasicVideo_get_DestinationHeight(This,pDestinationHeight) \ + ( (This)->lpVtbl -> get_DestinationHeight(This,pDestinationHeight) ) + +#define IBasicVideo_SetSourcePosition(This,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> SetSourcePosition(This,Left,Top,Width,Height) ) + +#define IBasicVideo_GetSourcePosition(This,pLeft,pTop,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetSourcePosition(This,pLeft,pTop,pWidth,pHeight) ) + +#define IBasicVideo_SetDefaultSourcePosition(This) \ + ( (This)->lpVtbl -> SetDefaultSourcePosition(This) ) + +#define IBasicVideo_SetDestinationPosition(This,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> SetDestinationPosition(This,Left,Top,Width,Height) ) + +#define IBasicVideo_GetDestinationPosition(This,pLeft,pTop,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetDestinationPosition(This,pLeft,pTop,pWidth,pHeight) ) + +#define IBasicVideo_SetDefaultDestinationPosition(This) \ + ( (This)->lpVtbl -> SetDefaultDestinationPosition(This) ) + +#define IBasicVideo_GetVideoSize(This,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetVideoSize(This,pWidth,pHeight) ) + +#define IBasicVideo_GetVideoPaletteEntries(This,StartIndex,Entries,pRetrieved,pPalette) \ + ( (This)->lpVtbl -> GetVideoPaletteEntries(This,StartIndex,Entries,pRetrieved,pPalette) ) + +#define IBasicVideo_GetCurrentImage(This,pBufferSize,pDIBImage) \ + ( (This)->lpVtbl -> GetCurrentImage(This,pBufferSize,pDIBImage) ) + +#define IBasicVideo_IsUsingDefaultSource(This) \ + ( (This)->lpVtbl -> IsUsingDefaultSource(This) ) + +#define IBasicVideo_IsUsingDefaultDestination(This) \ + ( (This)->lpVtbl -> IsUsingDefaultDestination(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBasicVideo_INTERFACE_DEFINED__ */ + + +#ifndef __IBasicVideo2_INTERFACE_DEFINED__ +#define __IBasicVideo2_INTERFACE_DEFINED__ + +/* interface IBasicVideo2 */ +/* [object][helpstring][uuid] */ + + +DEFINE_GUID(IID_IBasicVideo2,0x329bb360,0xf6ea,0x11d1,0x90,0x38,0x00,0xa0,0xc9,0x69,0x72,0x98); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("329bb360-f6ea-11d1-9038-00a0c9697298") + IBasicVideo2 : public IBasicVideo + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPreferredAspectRatio( + /* [out] */ __RPC__out long *plAspectX, + /* [out] */ __RPC__out long *plAspectY) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBasicVideo2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBasicVideo2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBasicVideo2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBasicVideo2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBasicVideo2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBasicVideo2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBasicVideo2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBasicVideo2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBasicVideo, get_AvgTimePerFrame) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AvgTimePerFrame )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out REFTIME *pAvgTimePerFrame); + + DECLSPEC_XFGVIRT(IBasicVideo, get_BitRate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitRate )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pBitRate); + + DECLSPEC_XFGVIRT(IBasicVideo, get_BitErrorRate) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_BitErrorRate )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pBitErrorRate); + + DECLSPEC_XFGVIRT(IBasicVideo, get_VideoWidth) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoWidth )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pVideoWidth); + + DECLSPEC_XFGVIRT(IBasicVideo, get_VideoHeight) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_VideoHeight )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pVideoHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, put_SourceLeft) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceLeft )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long SourceLeft); + + DECLSPEC_XFGVIRT(IBasicVideo, get_SourceLeft) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceLeft )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pSourceLeft); + + DECLSPEC_XFGVIRT(IBasicVideo, put_SourceWidth) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceWidth )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long SourceWidth); + + DECLSPEC_XFGVIRT(IBasicVideo, get_SourceWidth) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceWidth )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pSourceWidth); + + DECLSPEC_XFGVIRT(IBasicVideo, put_SourceTop) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceTop )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long SourceTop); + + DECLSPEC_XFGVIRT(IBasicVideo, get_SourceTop) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceTop )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pSourceTop); + + DECLSPEC_XFGVIRT(IBasicVideo, put_SourceHeight) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_SourceHeight )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long SourceHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, get_SourceHeight) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceHeight )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pSourceHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, put_DestinationLeft) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationLeft )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long DestinationLeft); + + DECLSPEC_XFGVIRT(IBasicVideo, get_DestinationLeft) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationLeft )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pDestinationLeft); + + DECLSPEC_XFGVIRT(IBasicVideo, put_DestinationWidth) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationWidth )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long DestinationWidth); + + DECLSPEC_XFGVIRT(IBasicVideo, get_DestinationWidth) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationWidth )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pDestinationWidth); + + DECLSPEC_XFGVIRT(IBasicVideo, put_DestinationTop) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationTop )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long DestinationTop); + + DECLSPEC_XFGVIRT(IBasicVideo, get_DestinationTop) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationTop )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pDestinationTop); + + DECLSPEC_XFGVIRT(IBasicVideo, put_DestinationHeight) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_DestinationHeight )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long DestinationHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, get_DestinationHeight) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationHeight )( + __RPC__in IBasicVideo2 * This, + /* [retval][out] */ __RPC__out long *pDestinationHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, SetSourcePosition) + HRESULT ( STDMETHODCALLTYPE *SetSourcePosition )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long Left, + /* [in] */ long Top, + /* [in] */ long Width, + /* [in] */ long Height); + + DECLSPEC_XFGVIRT(IBasicVideo, GetSourcePosition) + HRESULT ( STDMETHODCALLTYPE *GetSourcePosition )( + __RPC__in IBasicVideo2 * This, + /* [out] */ __RPC__out long *pLeft, + /* [out] */ __RPC__out long *pTop, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, SetDefaultSourcePosition) + HRESULT ( STDMETHODCALLTYPE *SetDefaultSourcePosition )( + __RPC__in IBasicVideo2 * This); + + DECLSPEC_XFGVIRT(IBasicVideo, SetDestinationPosition) + HRESULT ( STDMETHODCALLTYPE *SetDestinationPosition )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long Left, + /* [in] */ long Top, + /* [in] */ long Width, + /* [in] */ long Height); + + DECLSPEC_XFGVIRT(IBasicVideo, GetDestinationPosition) + HRESULT ( STDMETHODCALLTYPE *GetDestinationPosition )( + __RPC__in IBasicVideo2 * This, + /* [out] */ __RPC__out long *pLeft, + /* [out] */ __RPC__out long *pTop, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, SetDefaultDestinationPosition) + HRESULT ( STDMETHODCALLTYPE *SetDefaultDestinationPosition )( + __RPC__in IBasicVideo2 * This); + + DECLSPEC_XFGVIRT(IBasicVideo, GetVideoSize) + HRESULT ( STDMETHODCALLTYPE *GetVideoSize )( + __RPC__in IBasicVideo2 * This, + /* [out] */ __RPC__out long *pWidth, + /* [out] */ __RPC__out long *pHeight); + + DECLSPEC_XFGVIRT(IBasicVideo, GetVideoPaletteEntries) + HRESULT ( STDMETHODCALLTYPE *GetVideoPaletteEntries )( + __RPC__in IBasicVideo2 * This, + /* [in] */ long StartIndex, + /* [in] */ long Entries, + /* [out] */ __RPC__out long *pRetrieved, + /* [out] */ __RPC__out long *pPalette); + + DECLSPEC_XFGVIRT(IBasicVideo, GetCurrentImage) + HRESULT ( STDMETHODCALLTYPE *GetCurrentImage )( + __RPC__in IBasicVideo2 * This, + /* [out][in] */ __RPC__inout long *pBufferSize, + /* [out] */ __RPC__out long *pDIBImage); + + DECLSPEC_XFGVIRT(IBasicVideo, IsUsingDefaultSource) + HRESULT ( STDMETHODCALLTYPE *IsUsingDefaultSource )( + __RPC__in IBasicVideo2 * This); + + DECLSPEC_XFGVIRT(IBasicVideo, IsUsingDefaultDestination) + HRESULT ( STDMETHODCALLTYPE *IsUsingDefaultDestination )( + __RPC__in IBasicVideo2 * This); + + DECLSPEC_XFGVIRT(IBasicVideo2, GetPreferredAspectRatio) + HRESULT ( STDMETHODCALLTYPE *GetPreferredAspectRatio )( + __RPC__in IBasicVideo2 * This, + /* [out] */ __RPC__out long *plAspectX, + /* [out] */ __RPC__out long *plAspectY); + + END_INTERFACE + } IBasicVideo2Vtbl; + + interface IBasicVideo2 + { + CONST_VTBL struct IBasicVideo2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBasicVideo2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBasicVideo2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBasicVideo2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBasicVideo2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBasicVideo2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBasicVideo2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBasicVideo2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBasicVideo2_get_AvgTimePerFrame(This,pAvgTimePerFrame) \ + ( (This)->lpVtbl -> get_AvgTimePerFrame(This,pAvgTimePerFrame) ) + +#define IBasicVideo2_get_BitRate(This,pBitRate) \ + ( (This)->lpVtbl -> get_BitRate(This,pBitRate) ) + +#define IBasicVideo2_get_BitErrorRate(This,pBitErrorRate) \ + ( (This)->lpVtbl -> get_BitErrorRate(This,pBitErrorRate) ) + +#define IBasicVideo2_get_VideoWidth(This,pVideoWidth) \ + ( (This)->lpVtbl -> get_VideoWidth(This,pVideoWidth) ) + +#define IBasicVideo2_get_VideoHeight(This,pVideoHeight) \ + ( (This)->lpVtbl -> get_VideoHeight(This,pVideoHeight) ) + +#define IBasicVideo2_put_SourceLeft(This,SourceLeft) \ + ( (This)->lpVtbl -> put_SourceLeft(This,SourceLeft) ) + +#define IBasicVideo2_get_SourceLeft(This,pSourceLeft) \ + ( (This)->lpVtbl -> get_SourceLeft(This,pSourceLeft) ) + +#define IBasicVideo2_put_SourceWidth(This,SourceWidth) \ + ( (This)->lpVtbl -> put_SourceWidth(This,SourceWidth) ) + +#define IBasicVideo2_get_SourceWidth(This,pSourceWidth) \ + ( (This)->lpVtbl -> get_SourceWidth(This,pSourceWidth) ) + +#define IBasicVideo2_put_SourceTop(This,SourceTop) \ + ( (This)->lpVtbl -> put_SourceTop(This,SourceTop) ) + +#define IBasicVideo2_get_SourceTop(This,pSourceTop) \ + ( (This)->lpVtbl -> get_SourceTop(This,pSourceTop) ) + +#define IBasicVideo2_put_SourceHeight(This,SourceHeight) \ + ( (This)->lpVtbl -> put_SourceHeight(This,SourceHeight) ) + +#define IBasicVideo2_get_SourceHeight(This,pSourceHeight) \ + ( (This)->lpVtbl -> get_SourceHeight(This,pSourceHeight) ) + +#define IBasicVideo2_put_DestinationLeft(This,DestinationLeft) \ + ( (This)->lpVtbl -> put_DestinationLeft(This,DestinationLeft) ) + +#define IBasicVideo2_get_DestinationLeft(This,pDestinationLeft) \ + ( (This)->lpVtbl -> get_DestinationLeft(This,pDestinationLeft) ) + +#define IBasicVideo2_put_DestinationWidth(This,DestinationWidth) \ + ( (This)->lpVtbl -> put_DestinationWidth(This,DestinationWidth) ) + +#define IBasicVideo2_get_DestinationWidth(This,pDestinationWidth) \ + ( (This)->lpVtbl -> get_DestinationWidth(This,pDestinationWidth) ) + +#define IBasicVideo2_put_DestinationTop(This,DestinationTop) \ + ( (This)->lpVtbl -> put_DestinationTop(This,DestinationTop) ) + +#define IBasicVideo2_get_DestinationTop(This,pDestinationTop) \ + ( (This)->lpVtbl -> get_DestinationTop(This,pDestinationTop) ) + +#define IBasicVideo2_put_DestinationHeight(This,DestinationHeight) \ + ( (This)->lpVtbl -> put_DestinationHeight(This,DestinationHeight) ) + +#define IBasicVideo2_get_DestinationHeight(This,pDestinationHeight) \ + ( (This)->lpVtbl -> get_DestinationHeight(This,pDestinationHeight) ) + +#define IBasicVideo2_SetSourcePosition(This,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> SetSourcePosition(This,Left,Top,Width,Height) ) + +#define IBasicVideo2_GetSourcePosition(This,pLeft,pTop,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetSourcePosition(This,pLeft,pTop,pWidth,pHeight) ) + +#define IBasicVideo2_SetDefaultSourcePosition(This) \ + ( (This)->lpVtbl -> SetDefaultSourcePosition(This) ) + +#define IBasicVideo2_SetDestinationPosition(This,Left,Top,Width,Height) \ + ( (This)->lpVtbl -> SetDestinationPosition(This,Left,Top,Width,Height) ) + +#define IBasicVideo2_GetDestinationPosition(This,pLeft,pTop,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetDestinationPosition(This,pLeft,pTop,pWidth,pHeight) ) + +#define IBasicVideo2_SetDefaultDestinationPosition(This) \ + ( (This)->lpVtbl -> SetDefaultDestinationPosition(This) ) + +#define IBasicVideo2_GetVideoSize(This,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetVideoSize(This,pWidth,pHeight) ) + +#define IBasicVideo2_GetVideoPaletteEntries(This,StartIndex,Entries,pRetrieved,pPalette) \ + ( (This)->lpVtbl -> GetVideoPaletteEntries(This,StartIndex,Entries,pRetrieved,pPalette) ) + +#define IBasicVideo2_GetCurrentImage(This,pBufferSize,pDIBImage) \ + ( (This)->lpVtbl -> GetCurrentImage(This,pBufferSize,pDIBImage) ) + +#define IBasicVideo2_IsUsingDefaultSource(This) \ + ( (This)->lpVtbl -> IsUsingDefaultSource(This) ) + +#define IBasicVideo2_IsUsingDefaultDestination(This) \ + ( (This)->lpVtbl -> IsUsingDefaultDestination(This) ) + + +#define IBasicVideo2_GetPreferredAspectRatio(This,plAspectX,plAspectY) \ + ( (This)->lpVtbl -> GetPreferredAspectRatio(This,plAspectX,plAspectY) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBasicVideo2_INTERFACE_DEFINED__ */ + + +#ifndef __IDeferredCommand_INTERFACE_DEFINED__ +#define __IDeferredCommand_INTERFACE_DEFINED__ + +/* interface IDeferredCommand */ +/* [object][helpstring][uuid] */ + + +DEFINE_GUID(IID_IDeferredCommand,0x56a868b8,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868b8-0ad4-11ce-b03a-0020af0ba770") + IDeferredCommand : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Confidence( + /* [out] */ __RPC__out LONG *pConfidence) = 0; + + virtual HRESULT STDMETHODCALLTYPE Postpone( + /* [in] */ REFTIME newtime) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHResult( + /* [out] */ __RPC__out HRESULT *phrResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDeferredCommandVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDeferredCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDeferredCommand * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDeferredCommand * This); + + DECLSPEC_XFGVIRT(IDeferredCommand, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IDeferredCommand * This); + + DECLSPEC_XFGVIRT(IDeferredCommand, Confidence) + HRESULT ( STDMETHODCALLTYPE *Confidence )( + __RPC__in IDeferredCommand * This, + /* [out] */ __RPC__out LONG *pConfidence); + + DECLSPEC_XFGVIRT(IDeferredCommand, Postpone) + HRESULT ( STDMETHODCALLTYPE *Postpone )( + __RPC__in IDeferredCommand * This, + /* [in] */ REFTIME newtime); + + DECLSPEC_XFGVIRT(IDeferredCommand, GetHResult) + HRESULT ( STDMETHODCALLTYPE *GetHResult )( + __RPC__in IDeferredCommand * This, + /* [out] */ __RPC__out HRESULT *phrResult); + + END_INTERFACE + } IDeferredCommandVtbl; + + interface IDeferredCommand + { + CONST_VTBL struct IDeferredCommandVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDeferredCommand_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDeferredCommand_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDeferredCommand_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDeferredCommand_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IDeferredCommand_Confidence(This,pConfidence) \ + ( (This)->lpVtbl -> Confidence(This,pConfidence) ) + +#define IDeferredCommand_Postpone(This,newtime) \ + ( (This)->lpVtbl -> Postpone(This,newtime) ) + +#define IDeferredCommand_GetHResult(This,phrResult) \ + ( (This)->lpVtbl -> GetHResult(This,phrResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDeferredCommand_INTERFACE_DEFINED__ */ + + +#ifndef __IQueueCommand_INTERFACE_DEFINED__ +#define __IQueueCommand_INTERFACE_DEFINED__ + +/* interface IQueueCommand */ +/* [object][helpstring][uuid] */ + + +DEFINE_GUID(IID_IQueueCommand,0x56a868b7,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868b7-0ad4-11ce-b03a-0020af0ba770") + IQueueCommand : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InvokeAtStreamTime( + /* [out] */ __RPC__deref_out_opt IDeferredCommand **pCmd, + /* [in] */ REFTIME time, + /* [in] */ __RPC__in GUID *iid, + /* [in] */ long dispidMethod, + /* [in] */ short wFlags, + /* [in] */ long cArgs, + /* [in] */ __RPC__in VARIANT *pDispParams, + /* [out][in] */ __RPC__inout VARIANT *pvarResult, + /* [out] */ __RPC__out short *puArgErr) = 0; + + virtual HRESULT STDMETHODCALLTYPE InvokeAtPresentationTime( + /* [out] */ __RPC__deref_out_opt IDeferredCommand **pCmd, + /* [in] */ REFTIME time, + /* [in] */ __RPC__in GUID *iid, + /* [in] */ long dispidMethod, + /* [in] */ short wFlags, + /* [in] */ long cArgs, + /* [in] */ __RPC__in VARIANT *pDispParams, + /* [out][in] */ __RPC__inout VARIANT *pvarResult, + /* [out] */ __RPC__out short *puArgErr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IQueueCommandVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IQueueCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IQueueCommand * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IQueueCommand * This); + + DECLSPEC_XFGVIRT(IQueueCommand, InvokeAtStreamTime) + HRESULT ( STDMETHODCALLTYPE *InvokeAtStreamTime )( + __RPC__in IQueueCommand * This, + /* [out] */ __RPC__deref_out_opt IDeferredCommand **pCmd, + /* [in] */ REFTIME time, + /* [in] */ __RPC__in GUID *iid, + /* [in] */ long dispidMethod, + /* [in] */ short wFlags, + /* [in] */ long cArgs, + /* [in] */ __RPC__in VARIANT *pDispParams, + /* [out][in] */ __RPC__inout VARIANT *pvarResult, + /* [out] */ __RPC__out short *puArgErr); + + DECLSPEC_XFGVIRT(IQueueCommand, InvokeAtPresentationTime) + HRESULT ( STDMETHODCALLTYPE *InvokeAtPresentationTime )( + __RPC__in IQueueCommand * This, + /* [out] */ __RPC__deref_out_opt IDeferredCommand **pCmd, + /* [in] */ REFTIME time, + /* [in] */ __RPC__in GUID *iid, + /* [in] */ long dispidMethod, + /* [in] */ short wFlags, + /* [in] */ long cArgs, + /* [in] */ __RPC__in VARIANT *pDispParams, + /* [out][in] */ __RPC__inout VARIANT *pvarResult, + /* [out] */ __RPC__out short *puArgErr); + + END_INTERFACE + } IQueueCommandVtbl; + + interface IQueueCommand + { + CONST_VTBL struct IQueueCommandVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IQueueCommand_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IQueueCommand_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IQueueCommand_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IQueueCommand_InvokeAtStreamTime(This,pCmd,time,iid,dispidMethod,wFlags,cArgs,pDispParams,pvarResult,puArgErr) \ + ( (This)->lpVtbl -> InvokeAtStreamTime(This,pCmd,time,iid,dispidMethod,wFlags,cArgs,pDispParams,pvarResult,puArgErr) ) + +#define IQueueCommand_InvokeAtPresentationTime(This,pCmd,time,iid,dispidMethod,wFlags,cArgs,pDispParams,pvarResult,puArgErr) \ + ( (This)->lpVtbl -> InvokeAtPresentationTime(This,pCmd,time,iid,dispidMethod,wFlags,cArgs,pDispParams,pvarResult,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IQueueCommand_INTERFACE_DEFINED__ */ + + +DEFINE_GUID(CLSID_FilgraphManager,0xe436ebb3,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#ifdef __cplusplus + +class DECLSPEC_UUID("e436ebb3-524f-11ce-9f53-0020af0ba770") +FilgraphManager; +#endif + +#ifndef __IFilterInfo_INTERFACE_DEFINED__ +#define __IFilterInfo_INTERFACE_DEFINED__ + +/* interface IFilterInfo */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IFilterInfo,0x56a868ba,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868ba-0ad4-11ce-b03a-0020af0ba770") + IFilterInfo : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE FindPin( + /* [in] */ __RPC__in BSTR strPinID, + /* [out] */ __RPC__deref_out_opt IDispatch **ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *strName) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_VendorInfo( + /* [retval][out] */ __RPC__deref_out_opt BSTR *strVendorInfo) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Filter( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Pins( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsFileSource( + /* [retval][out] */ __RPC__out LONG *pbIsSource) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Filename( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrFilename) = 0; + + virtual /* [propput] */ HRESULT STDMETHODCALLTYPE put_Filename( + /* [in] */ __RPC__in BSTR strFilename) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFilterInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFilterInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFilterInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFilterInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFilterInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFilterInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFilterInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFilterInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFilterInfo, FindPin) + HRESULT ( STDMETHODCALLTYPE *FindPin )( + __RPC__in IFilterInfo * This, + /* [in] */ __RPC__in BSTR strPinID, + /* [out] */ __RPC__deref_out_opt IDispatch **ppUnk); + + DECLSPEC_XFGVIRT(IFilterInfo, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFilterInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *strName); + + DECLSPEC_XFGVIRT(IFilterInfo, get_VendorInfo) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_VendorInfo )( + __RPC__in IFilterInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *strVendorInfo); + + DECLSPEC_XFGVIRT(IFilterInfo, get_Filter) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Filter )( + __RPC__in IFilterInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFilterInfo, get_Pins) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pins )( + __RPC__in IFilterInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk); + + DECLSPEC_XFGVIRT(IFilterInfo, get_IsFileSource) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsFileSource )( + __RPC__in IFilterInfo * This, + /* [retval][out] */ __RPC__out LONG *pbIsSource); + + DECLSPEC_XFGVIRT(IFilterInfo, get_Filename) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Filename )( + __RPC__in IFilterInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pstrFilename); + + DECLSPEC_XFGVIRT(IFilterInfo, put_Filename) + /* [propput] */ HRESULT ( STDMETHODCALLTYPE *put_Filename )( + __RPC__in IFilterInfo * This, + /* [in] */ __RPC__in BSTR strFilename); + + END_INTERFACE + } IFilterInfoVtbl; + + interface IFilterInfo + { + CONST_VTBL struct IFilterInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFilterInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFilterInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFilterInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFilterInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFilterInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFilterInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFilterInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFilterInfo_FindPin(This,strPinID,ppUnk) \ + ( (This)->lpVtbl -> FindPin(This,strPinID,ppUnk) ) + +#define IFilterInfo_get_Name(This,strName) \ + ( (This)->lpVtbl -> get_Name(This,strName) ) + +#define IFilterInfo_get_VendorInfo(This,strVendorInfo) \ + ( (This)->lpVtbl -> get_VendorInfo(This,strVendorInfo) ) + +#define IFilterInfo_get_Filter(This,ppUnk) \ + ( (This)->lpVtbl -> get_Filter(This,ppUnk) ) + +#define IFilterInfo_get_Pins(This,ppUnk) \ + ( (This)->lpVtbl -> get_Pins(This,ppUnk) ) + +#define IFilterInfo_get_IsFileSource(This,pbIsSource) \ + ( (This)->lpVtbl -> get_IsFileSource(This,pbIsSource) ) + +#define IFilterInfo_get_Filename(This,pstrFilename) \ + ( (This)->lpVtbl -> get_Filename(This,pstrFilename) ) + +#define IFilterInfo_put_Filename(This,strFilename) \ + ( (This)->lpVtbl -> put_Filename(This,strFilename) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFilterInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IRegFilterInfo_INTERFACE_DEFINED__ +#define __IRegFilterInfo_INTERFACE_DEFINED__ + +/* interface IRegFilterInfo */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IRegFilterInfo,0x56a868bb,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868bb-0ad4-11ce-b03a-0020af0ba770") + IRegFilterInfo : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *strName) = 0; + + virtual HRESULT STDMETHODCALLTYPE Filter( + /* [out] */ __RPC__deref_out_opt IDispatch **ppUnk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRegFilterInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRegFilterInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRegFilterInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRegFilterInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IRegFilterInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IRegFilterInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IRegFilterInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IRegFilterInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IRegFilterInfo, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IRegFilterInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *strName); + + DECLSPEC_XFGVIRT(IRegFilterInfo, Filter) + HRESULT ( STDMETHODCALLTYPE *Filter )( + __RPC__in IRegFilterInfo * This, + /* [out] */ __RPC__deref_out_opt IDispatch **ppUnk); + + END_INTERFACE + } IRegFilterInfoVtbl; + + interface IRegFilterInfo + { + CONST_VTBL struct IRegFilterInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRegFilterInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRegFilterInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRegFilterInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRegFilterInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IRegFilterInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IRegFilterInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IRegFilterInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IRegFilterInfo_get_Name(This,strName) \ + ( (This)->lpVtbl -> get_Name(This,strName) ) + +#define IRegFilterInfo_Filter(This,ppUnk) \ + ( (This)->lpVtbl -> Filter(This,ppUnk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRegFilterInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IMediaTypeInfo_INTERFACE_DEFINED__ +#define __IMediaTypeInfo_INTERFACE_DEFINED__ + +/* interface IMediaTypeInfo */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IMediaTypeInfo,0x56a868bc,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868bc-0ad4-11ce-b03a-0020af0ba770") + IMediaTypeInfo : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__deref_out_opt BSTR *strType) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Subtype( + /* [retval][out] */ __RPC__deref_out_opt BSTR *strType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMediaTypeInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMediaTypeInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMediaTypeInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMediaTypeInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMediaTypeInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMediaTypeInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMediaTypeInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMediaTypeInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMediaTypeInfo, get_Type) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IMediaTypeInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *strType); + + DECLSPEC_XFGVIRT(IMediaTypeInfo, get_Subtype) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Subtype )( + __RPC__in IMediaTypeInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *strType); + + END_INTERFACE + } IMediaTypeInfoVtbl; + + interface IMediaTypeInfo + { + CONST_VTBL struct IMediaTypeInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMediaTypeInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMediaTypeInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMediaTypeInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMediaTypeInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMediaTypeInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMediaTypeInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMediaTypeInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMediaTypeInfo_get_Type(This,strType) \ + ( (This)->lpVtbl -> get_Type(This,strType) ) + +#define IMediaTypeInfo_get_Subtype(This,strType) \ + ( (This)->lpVtbl -> get_Subtype(This,strType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMediaTypeInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IPinInfo_INTERFACE_DEFINED__ +#define __IPinInfo_INTERFACE_DEFINED__ + +/* interface IPinInfo */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IPinInfo,0x56a868bd,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56a868bd-0ad4-11ce-b03a-0020af0ba770") + IPinInfo : public IDispatch + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Pin( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ConnectedTo( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ConnectionMediaType( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_FilterInfo( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *ppUnk) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Direction( + /* [retval][out] */ __RPC__out LONG *ppDirection) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_PinID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *strPinID) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_MediaTypes( + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk) = 0; + + virtual HRESULT STDMETHODCALLTYPE Connect( + /* [in] */ __RPC__in_opt IUnknown *pPin) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConnectDirect( + /* [in] */ __RPC__in_opt IUnknown *pPin) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConnectWithType( + /* [in] */ __RPC__in_opt IUnknown *pPin, + /* [in] */ __RPC__in_opt IDispatch *pMediaType) = 0; + + virtual HRESULT STDMETHODCALLTYPE Disconnect( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Render( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPinInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPinInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPinInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPinInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IPinInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IPinInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IPinInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IPinInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IPinInfo, get_Pin) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Pin )( + __RPC__in IPinInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IPinInfo, get_ConnectedTo) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectedTo )( + __RPC__in IPinInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk); + + DECLSPEC_XFGVIRT(IPinInfo, get_ConnectionMediaType) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ConnectionMediaType )( + __RPC__in IPinInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk); + + DECLSPEC_XFGVIRT(IPinInfo, get_FilterInfo) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilterInfo )( + __RPC__in IPinInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk); + + DECLSPEC_XFGVIRT(IPinInfo, get_Name) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IPinInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *ppUnk); + + DECLSPEC_XFGVIRT(IPinInfo, get_Direction) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Direction )( + __RPC__in IPinInfo * This, + /* [retval][out] */ __RPC__out LONG *ppDirection); + + DECLSPEC_XFGVIRT(IPinInfo, get_PinID) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_PinID )( + __RPC__in IPinInfo * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *strPinID); + + DECLSPEC_XFGVIRT(IPinInfo, get_MediaTypes) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaTypes )( + __RPC__in IPinInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppUnk); + + DECLSPEC_XFGVIRT(IPinInfo, Connect) + HRESULT ( STDMETHODCALLTYPE *Connect )( + __RPC__in IPinInfo * This, + /* [in] */ __RPC__in_opt IUnknown *pPin); + + DECLSPEC_XFGVIRT(IPinInfo, ConnectDirect) + HRESULT ( STDMETHODCALLTYPE *ConnectDirect )( + __RPC__in IPinInfo * This, + /* [in] */ __RPC__in_opt IUnknown *pPin); + + DECLSPEC_XFGVIRT(IPinInfo, ConnectWithType) + HRESULT ( STDMETHODCALLTYPE *ConnectWithType )( + __RPC__in IPinInfo * This, + /* [in] */ __RPC__in_opt IUnknown *pPin, + /* [in] */ __RPC__in_opt IDispatch *pMediaType); + + DECLSPEC_XFGVIRT(IPinInfo, Disconnect) + HRESULT ( STDMETHODCALLTYPE *Disconnect )( + __RPC__in IPinInfo * This); + + DECLSPEC_XFGVIRT(IPinInfo, Render) + HRESULT ( STDMETHODCALLTYPE *Render )( + __RPC__in IPinInfo * This); + + END_INTERFACE + } IPinInfoVtbl; + + interface IPinInfo + { + CONST_VTBL struct IPinInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPinInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPinInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPinInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPinInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IPinInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IPinInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IPinInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IPinInfo_get_Pin(This,ppUnk) \ + ( (This)->lpVtbl -> get_Pin(This,ppUnk) ) + +#define IPinInfo_get_ConnectedTo(This,ppUnk) \ + ( (This)->lpVtbl -> get_ConnectedTo(This,ppUnk) ) + +#define IPinInfo_get_ConnectionMediaType(This,ppUnk) \ + ( (This)->lpVtbl -> get_ConnectionMediaType(This,ppUnk) ) + +#define IPinInfo_get_FilterInfo(This,ppUnk) \ + ( (This)->lpVtbl -> get_FilterInfo(This,ppUnk) ) + +#define IPinInfo_get_Name(This,ppUnk) \ + ( (This)->lpVtbl -> get_Name(This,ppUnk) ) + +#define IPinInfo_get_Direction(This,ppDirection) \ + ( (This)->lpVtbl -> get_Direction(This,ppDirection) ) + +#define IPinInfo_get_PinID(This,strPinID) \ + ( (This)->lpVtbl -> get_PinID(This,strPinID) ) + +#define IPinInfo_get_MediaTypes(This,ppUnk) \ + ( (This)->lpVtbl -> get_MediaTypes(This,ppUnk) ) + +#define IPinInfo_Connect(This,pPin) \ + ( (This)->lpVtbl -> Connect(This,pPin) ) + +#define IPinInfo_ConnectDirect(This,pPin) \ + ( (This)->lpVtbl -> ConnectDirect(This,pPin) ) + +#define IPinInfo_ConnectWithType(This,pPin,pMediaType) \ + ( (This)->lpVtbl -> ConnectWithType(This,pPin,pMediaType) ) + +#define IPinInfo_Disconnect(This) \ + ( (This)->lpVtbl -> Disconnect(This) ) + +#define IPinInfo_Render(This) \ + ( (This)->lpVtbl -> Render(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPinInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IAMStats_INTERFACE_DEFINED__ +#define __IAMStats_INTERFACE_DEFINED__ + +/* interface IAMStats */ +/* [object][dual][oleautomation][helpstring][uuid] */ + + +DEFINE_GUID(IID_IAMStats,0xbc9bcf80,0xdcd2,0x11d2,0xab,0xf6,0x00,0xa0,0xc9,0x05,0xf3,0x75); + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bc9bcf80-dcd2-11d2-abf6-00a0c905f375") + IAMStats : public IDispatch + { + public: + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *plCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValueByIndex( + /* [in] */ long lIndex, + /* [out] */ __RPC__deref_out_opt BSTR *szName, + /* [out] */ __RPC__out long *lCount, + /* [out] */ __RPC__out double *dLast, + /* [out] */ __RPC__out double *dAverage, + /* [out] */ __RPC__out double *dStdDev, + /* [out] */ __RPC__out double *dMin, + /* [out] */ __RPC__out double *dMax) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValueByName( + /* [in] */ __RPC__in BSTR szName, + /* [out] */ __RPC__out long *lIndex, + /* [out] */ __RPC__out long *lCount, + /* [out] */ __RPC__out double *dLast, + /* [out] */ __RPC__out double *dAverage, + /* [out] */ __RPC__out double *dStdDev, + /* [out] */ __RPC__out double *dMin, + /* [out] */ __RPC__out double *dMax) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIndex( + /* [in] */ __RPC__in BSTR szName, + /* [in] */ long lCreate, + /* [out] */ __RPC__out long *plIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddValue( + /* [in] */ long lIndex, + /* [in] */ double dValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAMStatsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAMStats * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAMStats * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAMStats * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAMStats * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAMStats * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAMStats * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAMStats * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAMStats, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IAMStats * This); + + DECLSPEC_XFGVIRT(IAMStats, get_Count) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IAMStats * This, + /* [retval][out] */ __RPC__out LONG *plCount); + + DECLSPEC_XFGVIRT(IAMStats, GetValueByIndex) + HRESULT ( STDMETHODCALLTYPE *GetValueByIndex )( + __RPC__in IAMStats * This, + /* [in] */ long lIndex, + /* [out] */ __RPC__deref_out_opt BSTR *szName, + /* [out] */ __RPC__out long *lCount, + /* [out] */ __RPC__out double *dLast, + /* [out] */ __RPC__out double *dAverage, + /* [out] */ __RPC__out double *dStdDev, + /* [out] */ __RPC__out double *dMin, + /* [out] */ __RPC__out double *dMax); + + DECLSPEC_XFGVIRT(IAMStats, GetValueByName) + HRESULT ( STDMETHODCALLTYPE *GetValueByName )( + __RPC__in IAMStats * This, + /* [in] */ __RPC__in BSTR szName, + /* [out] */ __RPC__out long *lIndex, + /* [out] */ __RPC__out long *lCount, + /* [out] */ __RPC__out double *dLast, + /* [out] */ __RPC__out double *dAverage, + /* [out] */ __RPC__out double *dStdDev, + /* [out] */ __RPC__out double *dMin, + /* [out] */ __RPC__out double *dMax); + + DECLSPEC_XFGVIRT(IAMStats, GetIndex) + HRESULT ( STDMETHODCALLTYPE *GetIndex )( + __RPC__in IAMStats * This, + /* [in] */ __RPC__in BSTR szName, + /* [in] */ long lCreate, + /* [out] */ __RPC__out long *plIndex); + + DECLSPEC_XFGVIRT(IAMStats, AddValue) + HRESULT ( STDMETHODCALLTYPE *AddValue )( + __RPC__in IAMStats * This, + /* [in] */ long lIndex, + /* [in] */ double dValue); + + END_INTERFACE + } IAMStatsVtbl; + + interface IAMStats + { + CONST_VTBL struct IAMStatsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAMStats_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAMStats_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAMStats_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAMStats_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAMStats_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAMStats_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAMStats_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAMStats_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IAMStats_get_Count(This,plCount) \ + ( (This)->lpVtbl -> get_Count(This,plCount) ) + +#define IAMStats_GetValueByIndex(This,lIndex,szName,lCount,dLast,dAverage,dStdDev,dMin,dMax) \ + ( (This)->lpVtbl -> GetValueByIndex(This,lIndex,szName,lCount,dLast,dAverage,dStdDev,dMin,dMax) ) + +#define IAMStats_GetValueByName(This,szName,lIndex,lCount,dLast,dAverage,dStdDev,dMin,dMax) \ + ( (This)->lpVtbl -> GetValueByName(This,szName,lIndex,lCount,dLast,dAverage,dStdDev,dMin,dMax) ) + +#define IAMStats_GetIndex(This,szName,lCreate,plIndex) \ + ( (This)->lpVtbl -> GetIndex(This,szName,lCreate,plIndex) ) + +#define IAMStats_AddValue(This,lIndex,dValue) \ + ( (This)->lpVtbl -> AddValue(This,lIndex,dValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAMStats_INTERFACE_DEFINED__ */ + +#endif /* __QuartzTypeLib_LIBRARY_DEFINED__ */ + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/control.odl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/control.odl new file mode 100644 index 0000000000000000000000000000000000000000..c916cae3b5e44692222a842489e5651373727618 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/control.odl @@ -0,0 +1,912 @@ +//==========================================================================; +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY +// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR +// PURPOSE. +// +// Copyright (c) 1992 - 2002 Microsoft Corporation. All Rights Reserved. +// +//--------------------------------------------------------------------------; + +// Neutral/English language type library for basic Quartz control interfaces + +// the quartz type library defines the basic control interfaces +[ + uuid(56a868b0-0ad4-11ce-b03a-0020af0ba770), + helpstring("ActiveMovie control type library"), + lcid(0x0000), + version(1.0) +] +library QuartzTypeLib +{ + importlib("STDOLE2.TLB"); + + // types are restricted to be automation-compatible + typedef double REFTIME; // ReferenceTime + typedef LONG_PTR OAEVENT; // should be a HANDLE + typedef LONG_PTR OAHWND; // should be an hwnd + + // from strmif.idl + typedef long OAFilterState; + + // collection interface - represents a collection of IUnknowns + // this is used below to collect filter-info objects, registry-filters + // pin-info objects and wrapped media type objects + [ + uuid(56a868b9-0ad4-11ce-b03a-0020af0ba770), + helpstring("Collection"), + odl, + oleautomation, + dual + ] + interface IAMCollection : IDispatch + { + // number of items in collection + [propget] + HRESULT Count( + [out, retval] LONG* plCount); + + // return IUnknown for contained item by index + HRESULT Item( + [in] long lItem, + [out] IUnknown** ppUnk); + + // return IUnknown for an object that implements IEnumVARIANT on + // this collection + [propget] + HRESULT _NewEnum( + [out, retval] IUnknown** ppUnk); + } + + + // core control providing state control + [ + uuid(56a868b1-0ad4-11ce-b03a-0020af0ba770), + helpstring("IMediaControl interface"), + odl, + oleautomation, + dual + ] + interface IMediaControl : IDispatch + { + // methods + HRESULT Run(); + HRESULT Pause(); + HRESULT Stop(); + + //returns the state. same semantics as IMediaFilter::GetState + + HRESULT GetState( + [in] LONG msTimeout, + [out] OAFilterState* pfs); + + // adds and connects filters needed to play the specified file + // (same as IFilterGraph::RenderFile) + HRESULT RenderFile( + [in] BSTR strFilename); + + // adds to the graph the source filter that can read this file, + // and returns an IFilterInfo object for it (actually returns + // an IDispatch for the IFilterInfo object). + HRESULT AddSourceFilter( + [in] BSTR strFilename, + [out] IDispatch**ppUnk); + + // get a collection of IFilterInfo objects representing the + // filters in the graph (returns IDispatch for an object + // that supports IAMCollection + [propget] + HRESULT FilterCollection( + [out, retval] IDispatch** ppUnk); + + // get a collection of IRegFilter objects representing the + // filters available in the registry + [propget] + HRESULT RegFilterCollection( + [out, retval] IDispatch** ppUnk); + + HRESULT StopWhenReady(); + } + + + // provides an event notification scheme passing events + // asynchronously to applications. See also IMediaEventSink in + // strmif.idl and sdk\h\evcodes.h. + // + // this interface behaves as if events are held on a queue. A call to + // IMediaEventSink::Notify will place an event on this queue. Calling + // GetEvent removes the first item off the queue and returns it. Items are + // returned in the order they were queued (there is no priority scheme). + // The event handle is in a signalled state iff the queue is non-empty. + // + // Apps that issue multiple Run calls without always picking up the + // completion events are advised to call GetEvent or WaitForCompletion + // (with a 0 timeout) repeatedly to remove all events from the queue + // when in stopped or paused state before each Run method. + // + // Parameters to events are actually LONG, IUnknown* or BSTR. You need to + // look at evcode.h for details of parameters to a specific event code. + // In order to correctly free resources, always call FreeEventParams + // after receiving an event. + // + + [ + uuid(56a868b6-0ad4-11ce-b03a-0020af0ba770), + helpstring("IMediaEvent interface"), + odl, + oleautomation, + dual + ] + interface IMediaEvent : IDispatch + { + // get back the event handle. This is manual-reset + // (don't - it's reset by the event mechanism) and remains set + // when events are queued, and reset when the queue is empty. + HRESULT GetEventHandle( + [out] OAEVENT * hEvent); + + // remove the next event notification from the head of the queue and + // return it. Waits up to msTimeout millisecs if there are no events. + // if a timeout occurs without any events, this method will return + // E_ABORT, and the value of the event code and other parameters + // is undefined. + // + // If this call returns successfully the caller MUST call + // FreeEventParams(lEventCode, lParam1, lParam2) to release + // resources held inside the event arguments + // + HRESULT GetEvent( + [out] long * lEventCode, + [out] LONG_PTR * lParam1, + [out] LONG_PTR * lParam2, + [in] long msTimeout + ); + + // Calls GetEvent repeatedly discarding events until it finds a + // completion event (EC_COMPLETE, EC_ERRORABORT, or EC_USERABORT). + // The completion event is removed from the queue and returned + // in pEvCode. Note that the object is still in running mode until + // a Pause or Stop call is made. + // If the timeout occurs, *pEvCode will be 0 and E_ABORT will be + // returned. + HRESULT WaitForCompletion( + [in] long msTimeout, + [out] long * pEvCode); + + // cancels any system handling of the specified event code + // and ensures that the events are passed straight to the application + // (via GetEvent) and not handled. A good example of this is + // EC_REPAINT: default handling for this ensures the painting of the + // window and does not get posted to the app. + HRESULT CancelDefaultHandling( + [in] long lEvCode); + + // restore the normal system default handling that may have been + // cancelled by CancelDefaultHandling(). + HRESULT RestoreDefaultHandling( [in] long lEvCode); + + // Free any resources associated with the parameters to an event. + // Event parameters may be LONGs, IUnknown* or BSTR. No action + // is taken with LONGs. IUnknown are passed addrefed and need a + // Release call. BSTR are allocated by the task allocator and will be + // freed by calling the task allocator. + HRESULT FreeEventParams( + [in] long lEvCode, + [in] LONG_PTR lParam1, + [in] LONG_PTR lParam2 + ); + } + + [ + uuid(56a868c0-0ad4-11ce-b03a-0020af0ba770), + helpstring("IMediaEventEx interface"), + odl + ] + interface IMediaEventEx : IMediaEvent + { + + // Register a window to send messages to when events occur + // Parameters: + // + // hwnd - handle of window to notify - + // pass NULL to stop notification + // lMsg - Message id to pass messages with + // lInstanceData - will come back in lParam + // + // The event information must still be retrived by a call + // to GetEvent when the window message is received. + // + // Multiple events may be notified with one window message. + // + HRESULT SetNotifyWindow( + [in] OAHWND hwnd, + [in] long lMsg, + [in] LONG_PTR lInstanceData + ); + + // Turn events notification on or off + // lNoNotify = 0x00 event notification is ON + // lNoNotify = 0x01 event notification is OFF. The + // handle returned by GetEventHandle will be signalled at + // end of stream + HRESULT SetNotifyFlags( + [in] long lNoNotifyFlags + ); + HRESULT GetNotifyFlags( + [out] long *lplNoNotifyFlags + ); + } + + + + + // seek/cueing for positional media + [ + uuid(56a868b2-0ad4-11ce-b03a-0020af0ba770), + helpstring("IMediaPosition interface"), + odl, + oleautomation, + dual + ] + interface IMediaPosition : IDispatch + { + // properties + + [propget] + HRESULT Duration( + [out, retval] REFTIME* plength); + + [propput] + HRESULT CurrentPosition( + [in] REFTIME llTime); + + [propget] + HRESULT CurrentPosition( + [out, retval] REFTIME* pllTime); + + [propget] + HRESULT StopTime( + [out, retval] REFTIME* pllTime); + [propput] + HRESULT StopTime( + [in] REFTIME llTime); + + [propget] + HRESULT PrerollTime( + [out, retval] REFTIME* pllTime); + [propput] + HRESULT PrerollTime( + [in] REFTIME llTime); + + [propput] + HRESULT Rate( + [in] double dRate); + [propget] + HRESULT Rate( + [out, retval] double * pdRate); + + HRESULT CanSeekForward([out, retval] LONG *pCanSeekForward); + HRESULT CanSeekBackward([out, retval] LONG *pCanSeekBackward); + } + + // basic audio-related functionality + [ + uuid(56a868b3-0ad4-11ce-b03a-0020af0ba770), + helpstring("IBasicAudio interface"), + odl, + oleautomation, + dual + ] + interface IBasicAudio : IDispatch + { + // properties + + [propput] + HRESULT Volume( + [in] long lVolume); + [propget] + HRESULT Volume( + [out, retval] long * plVolume); + + [propput] + HRESULT Balance( + [in] long lBalance); + [propget] + HRESULT Balance( + [out, retval] long * plBalance); + } + + // basic window-related functionality + [ + uuid(56a868b4-0ad4-11ce-b03a-0020af0ba770), + helpstring("IVideoWindow interface"), + odl, + oleautomation, + dual + ] + interface IVideoWindow : IDispatch + { + // properties + + // set and get the window title caption + + [propput] + HRESULT Caption([in] BSTR strCaption); + [propget] + HRESULT Caption([out, retval] BSTR *strCaption); + + // change the window styles (as per Win32) + + [propput] + HRESULT WindowStyle([in] long WindowStyle); + [propget] + HRESULT WindowStyle([out, retval] long *WindowStyle); + + // change the extended window styles (as per Win32) + + [propput] + HRESULT WindowStyleEx([in] long WindowStyleEx); + [propget] + HRESULT WindowStyleEx([out, retval] long *WindowStyleEx); + + [propput] + HRESULT AutoShow([in] long AutoShow); + [propget] + HRESULT AutoShow([out, retval] long *AutoShow); + + // change the window state (as per Win32) + + [propput] + HRESULT WindowState([in] long WindowState); + [propget] + HRESULT WindowState([out, retval] long *WindowState); + + // realise the palette in the background + + [propput] + HRESULT BackgroundPalette([in] long BackgroundPalette); + [propget] + HRESULT BackgroundPalette([out, retval] long *pBackgroundPalette); + + // affect the visibility of the window + + [propput] + HRESULT Visible([in] long Visible); + [propget] + HRESULT Visible([out, retval] long *pVisible); + + // change the desktop position of the video window + + [propput] + HRESULT Left([in] long Left); + [propget] + HRESULT Left([out, retval] long *pLeft); + + [propput] + HRESULT Width([in] long Width); + [propget] + HRESULT Width([out, retval] long *pWidth); + + [propput] + HRESULT Top([in] long Top); + [propget] + HRESULT Top([out, retval] long *pTop); + + [propput] + HRESULT Height([in] long Height); + [propget] + HRESULT Height([out, retval] long *pHeight); + + // change the owning window of the video + + [propput] + HRESULT Owner([in] OAHWND Owner); + [propget] + HRESULT Owner([out, retval] OAHWND *Owner); + + // change the window to receive posted messages + + [propput] + HRESULT MessageDrain([in] OAHWND Drain); + [propget] + HRESULT MessageDrain([out, retval] OAHWND *Drain); + + [propget] + HRESULT BorderColor([out, retval] long *Color); + + [propput] + HRESULT BorderColor([in] long Color); + + [propget] + HRESULT FullScreenMode([out, retval] long *FullScreenMode); + + [propput] + HRESULT FullScreenMode([in] long FullScreenMode); + + // methods + + // ask the renderer to grab it's window the foreground + // and optionally also give the window the input focus + HRESULT SetWindowForeground([in] long Focus); + + // owners should pass WM_PALETTECHANGED and WM_SYSCOLORCHANGE + // messages on the filter graph so they can be distributed + // otherwise child renderers never see these messages go by + + HRESULT NotifyOwnerMessage([in] OAHWND hwnd, + [in] long uMsg, + [in] LONG_PTR wParam, + [in] LONG_PTR lParam + ); + + // get and set the window position on the desktop + + HRESULT SetWindowPosition([in] long Left, + [in] long Top, + [in] long Width, + [in] long Height); + + HRESULT GetWindowPosition([out] long *pLeft, + [out] long *pTop, + [out] long *pWidth, + [out] long *pHeight); + + // get the ideal sizes for the video image playback (client) area + + HRESULT GetMinIdealImageSize([out] long *pWidth,[out] long *pHeight); + HRESULT GetMaxIdealImageSize([out] long *pWidth,[out] long *pHeight); + + // get the restored window size when we're maximised or iconic + + HRESULT GetRestorePosition([out] long *pLeft, + [out] long *pTop, + [out] long *pWidth, + [out] long *pHeight); + + // show and hide cursors useful when fullscreen + HRESULT HideCursor([in] long HideCursor); + HRESULT IsCursorHidden([out] long *CursorHidden); + } + + // basic video-related functionality + [ + uuid(56a868b5-0ad4-11ce-b03a-0020af0ba770), + helpstring("IBasicVideo interface"), + odl, + oleautomation, + dual + ] + interface IBasicVideo : IDispatch + { + // properties + + // Video specific (approximate) bit and frame rates + + [propget] + HRESULT AvgTimePerFrame([out, retval] REFTIME *pAvgTimePerFrame); + + [propget] + HRESULT BitRate([out, retval] long *pBitRate); + + [propget] + HRESULT BitErrorRate([out, retval] long *pBitErrorRate); + + // read the native video size + + [propget] + HRESULT VideoWidth([out, retval] long *pVideoWidth); + + [propget] + HRESULT VideoHeight([out, retval] long *pVideoHeight); + + // change the source rectangle for the video + + [propput] + HRESULT SourceLeft([in] long SourceLeft); + [propget] + HRESULT SourceLeft([out, retval] long *pSourceLeft); + + [propput] + HRESULT SourceWidth([in] long SourceWidth); + [propget] + HRESULT SourceWidth([out, retval] long *pSourceWidth); + + [propput] + HRESULT SourceTop([in] long SourceTop); + [propget] + HRESULT SourceTop([out, retval] long *pSourceTop); + + [propput] + HRESULT SourceHeight([in] long SourceHeight); + [propget] + HRESULT SourceHeight([out, retval] long *pSourceHeight); + + // change the destination rectangle for the video + + [propput] + HRESULT DestinationLeft([in] long DestinationLeft); + [propget] + HRESULT DestinationLeft([out, retval] long *pDestinationLeft); + + [propput] + HRESULT DestinationWidth([in] long DestinationWidth); + [propget] + HRESULT DestinationWidth([out, retval] long *pDestinationWidth); + + [propput] + HRESULT DestinationTop([in] long DestinationTop); + [propget] + HRESULT DestinationTop([out, retval] long *pDestinationTop); + + [propput] + HRESULT DestinationHeight([in] long DestinationHeight); + [propget] + HRESULT DestinationHeight([out, retval] long *pDestinationHeight); + + // methods + + // get and set the source rectangle position + + HRESULT SetSourcePosition([in] long Left, + [in] long Top, + [in] long Width, + [in] long Height); + + HRESULT GetSourcePosition([out] long *pLeft, + [out] long *pTop, + [out] long *pWidth, + [out] long *pHeight); + + HRESULT SetDefaultSourcePosition(); + + // get and set the destination rectangle position + + HRESULT SetDestinationPosition([in] long Left, + [in] long Top, + [in] long Width, + [in] long Height); + + HRESULT GetDestinationPosition([out] long *pLeft, + [out] long *pTop, + [out] long *pWidth, + [out] long *pHeight); + + HRESULT SetDefaultDestinationPosition(); + + // get the native video dimensions + + HRESULT GetVideoSize([out] long *pWidth,[out] long *pHeight); + + // get all or some of the current video palette + + HRESULT GetVideoPaletteEntries([in] long StartIndex, + [in] long Entries, + [out] long *pRetrieved, + [out] long *pPalette); + + HRESULT GetCurrentImage([in,out] long *pBufferSize, + [out] long *pDIBImage); + + // are we using a default source or destination + + HRESULT IsUsingDefaultSource(); + HRESULT IsUsingDefaultDestination(); + } + + // interface extension to IBasicVideo to return preferred aspect ratio + [ + uuid(329bb360-f6ea-11d1-9038-00a0c9697298), + helpstring("IBasicVideo2"), + odl + ] + interface IBasicVideo2 : IBasicVideo + { + // This may not match the native video dimensions because of + // non-square pixels or whatever. + // The video may not always be displayed in the preferred + // aspect ratio for performance reasons + + HRESULT GetPreferredAspectRatio([out] long *plAspectX, + [out] long *plAspectY); + } + + // interface returned to a command that has been queued via IQueueCommand + [ + uuid(56a868b8-0ad4-11ce-b03a-0020af0ba770), + helpstring("IDeferredCommand"), + odl + ] + interface IDeferredCommand : IUnknown + { + HRESULT Cancel(); + HRESULT Confidence( + [out] LONG* pConfidence); + HRESULT Postpone( + [in] REFTIME newtime); + // return value is S_OK if completed. phrResult is set to the + // result of the deferred command. + HRESULT GetHResult( + [out] HRESULT* phrResult); + }; + + // queue an IDispatch-based command for execution at a specified time + [ + uuid(56a868b7-0ad4-11ce-b03a-0020af0ba770), + helpstring("IQueueCommand"), + odl + ] + interface IQueueCommand : IUnknown + { + HRESULT InvokeAtStreamTime( + [out] IDeferredCommand** pCmd, + [in] REFTIME time, // at this streamtime + [in] GUID* iid, // call this interface + [in] long dispidMethod, // ..and this method + [in] short wFlags, // method/property + [in] long cArgs, // count of args + [in] VARIANT* pDispParams, // actual args + [in, out] VARIANT* pvarResult, // return value + [out] short* puArgErr // which arg in error + ); + + HRESULT InvokeAtPresentationTime( + [out] IDeferredCommand** pCmd, + [in] REFTIME time, // at this presentation time + [in] GUID* iid, // call this interface + [in] long dispidMethod, // ..and this method + [in] short wFlags, // method/property + [in] long cArgs, // count of args + [in] VARIANT* pDispParams, // actual args + [in, out] VARIANT* pvarResult, // return value + [out] short* puArgErr // which arg in error + ); + + }; + + + + // the filgraph object (CLSID_Filgraph) + [ + uuid(e436ebb3-524f-11ce-9f53-0020af0ba770), + helpstring("Filtergraph type info") + ] + coclass FilgraphManager + { + [default] interface IMediaControl; + interface IMediaEvent; + interface IMediaPosition; + interface IBasicAudio; + interface IBasicVideo; + interface IVideoWindow; + + }; + + + // represents a filter (you can't QI for IBaseFilter from this object) + [ + uuid(56a868ba-0ad4-11ce-b03a-0020af0ba770), + helpstring("FilterInfo"), + odl, + oleautomation, + dual + ] + interface IFilterInfo : IDispatch + { + // find a pin given an id - returns an object supporting + // IPinInfo + HRESULT FindPin( + [in] BSTR strPinID, + [out] IDispatch** ppUnk); + + // filter name + [propget] + HRESULT Name( + [out, retval] BSTR* strName); + + // Vendor info string + [propget] + HRESULT VendorInfo( + [out, retval] BSTR* strVendorInfo); + + // returns the actual filter object (supports IBaseFilter) + [propget] + HRESULT Filter( + [out, retval] IUnknown **ppUnk); + + // returns an IAMCollection object containing the PinInfo objects + // for this filter + [propget] + HRESULT Pins( + [out, retval] IDispatch ** ppUnk); + + // returns -1 if true or 0 if false (OATRUE/FALSE) + [propget] + HRESULT IsFileSource( + [out, retval] LONG * pbIsSource); + + [propget] + HRESULT Filename( + [out, retval] BSTR* pstrFilename); + + [propput] + HRESULT Filename( + [in] BSTR strFilename); + } + + [ + uuid(56a868bb-0ad4-11ce-b03a-0020af0ba770), + helpstring("Registry Filter Info"), + odl, + oleautomation, + dual + ] + interface IRegFilterInfo : IDispatch + { + // get the name of this filter + [propget] + HRESULT Name( + [out, retval] BSTR* strName); + + + // make an instance of this filter, add it to the graph and + // return an IFilterInfo for it. + HRESULT Filter( + [out] IDispatch** ppUnk); + } + + // wrapper for a media type + [ + uuid(56a868bc-0ad4-11ce-b03a-0020af0ba770), + helpstring("Media Type"), + odl, + oleautomation, + dual + ] + interface IMediaTypeInfo : IDispatch + { + // get the major type GUID as a string + [propget] + HRESULT Type( + [out, retval] BSTR* strType); + + // get the subtype GUID as a string + [propget] + HRESULT Subtype( + [out, retval] BSTR* strType); + } + + [ + uuid(56a868bd-0ad4-11ce-b03a-0020af0ba770), + helpstring("Pin Info"), + odl, + oleautomation, + dual + ] + interface IPinInfo : IDispatch + { + // get the pin object (IUnknown for an object that + // supports IPin + [propget] + HRESULT Pin( + [out, retval] IUnknown** ppUnk); + + // get the PinInfo object for the pin we are connected to + [propget] + HRESULT ConnectedTo( + [out, retval] IDispatch** ppUnk); + + // get the media type on this connection - returns an + // object supporting IMediaTypeInfo + [propget] + HRESULT ConnectionMediaType( + [out, retval] IDispatch** ppUnk); + + + // return the FilterInfo object for the filter this pin + // is part of + [propget] + HRESULT FilterInfo( + [out, retval] IDispatch** ppUnk); + + // get the name of this pin + [propget] + HRESULT Name( + [out, retval] BSTR* ppUnk); + + // pin direction + [propget] + HRESULT Direction( + [out, retval] LONG *ppDirection); + + // PinID - can pass to IFilterInfo::FindPin + [propget] + HRESULT PinID( + [out, retval] BSTR* strPinID); + + // collection of preferred media types (IAMCollection) + [propget] + HRESULT MediaTypes( + [out, retval] IDispatch** ppUnk); + + // Connect to the following pin, using other transform + // filters as necessary. pPin can support either IPin or IPinInfo + HRESULT Connect( + [in] IUnknown* pPin); + + // Connect directly to the following pin, not using any intermediate + // filters + HRESULT ConnectDirect( + [in] IUnknown* pPin); + + // Connect directly to the following pin, using the specified + // media type only. pPin is an object that must support either + // IPin or IPinInfo, and pMediaType must support IMediaTypeInfo. + HRESULT ConnectWithType( + [in] IUnknown * pPin, + [in] IDispatch * pMediaType); + + // disconnect this pin and the corresponding connected pin from + // each other. (Calls IPin::Disconnect on both pins). + HRESULT Disconnect(void); + + // render this pin using any necessary transform and rendering filters + HRESULT Render(void); + } + + //-------------------------------------------------------------------- + // + // IAMStats - statistics + // + // Note that the calls using an index are likely to be much faster + //-------------------------------------------------------------------- + + [ + uuid(bc9bcf80-dcd2-11d2-abf6-00a0c905f375), + helpstring("Statistics"), + odl, + oleautomation, + dual + ] + interface IAMStats : IDispatch { + // Reset all stats + HRESULT Reset(); + + // Get number of stats collected + [propget] + HRESULT Count( + [out, retval] LONG* plCount); + + // Pull out a specific value by position + HRESULT GetValueByIndex([in] long lIndex, + [out] BSTR *szName, + [out] long *lCount, + [out] double *dLast, + [out] double *dAverage, + [out] double *dStdDev, + [out] double *dMin, + [out] double *dMax); + + // Pull out a specific value by name + HRESULT GetValueByName([in] BSTR szName, + [out] long *lIndex, + [out] long *lCount, + [out] double *dLast, + [out] double *dAverage, + [out] double *dStdDev, + [out] double *dMin, + [out] double *dMax); + + + // The calls below are for generators of statistics + + // Return the index for a string - optinally create + HRESULT GetIndex([in] BSTR szName, + [in] long lCreate, + [out] long *plIndex); + + // Add a new value + HRESULT AddValue([in] long lIndex, + [in] double dValue); + } +}; diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/corrEngine.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/corrEngine.h new file mode 100644 index 0000000000000000000000000000000000000000..8972b85763a0ff65ddfe411db9d531a015c4c80e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/corrEngine.h @@ -0,0 +1,365 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __correngine_h__ +#define __correngine_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICorrelationEngine_FWD_DEFINED__ +#define __ICorrelationEngine_FWD_DEFINED__ +typedef interface ICorrelationEngine ICorrelationEngine; + +#endif /* __ICorrelationEngine_FWD_DEFINED__ */ + + +#ifndef __CorrelationEngine_FWD_DEFINED__ +#define __CorrelationEngine_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CorrelationEngine CorrelationEngine; +#else +typedef struct CorrelationEngine CorrelationEngine; +#endif /* __cplusplus */ + +#endif /* __CorrelationEngine_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_correngine_0000_0000 */ +/* [local] */ + +//+-------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992-2007. +// +//--------------------------------------------------------------------------- +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_correngine_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_correngine_0000_0000_v0_0_s_ifspec; + +#ifndef __ICorrelationEngine_INTERFACE_DEFINED__ +#define __ICorrelationEngine_INTERFACE_DEFINED__ + +/* interface ICorrelationEngine */ +/* [unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICorrelationEngine; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A188440E-DB11-45B8-B42C-B2149FA71453") + ICorrelationEngine : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RetainGlobalEvents( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RetainGlobalEvents( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Filter( + /* [in] */ __RPC__in BSTR InputTraceFile, + /* [in] */ __RPC__in BSTR OutputTraceFile, + /* [in] */ __RPC__in BSTR FilterActivityId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Normalize( + /* [in] */ __RPC__in BSTR InputTraceFile, + /* [in] */ __RPC__in BSTR OutputTraceFile) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RetainPII( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RetainPII( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RetainCorrelationEvents( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RetainCorrelationEvents( + /* [in] */ VARIANT_BOOL newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICorrelationEngineVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICorrelationEngine * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICorrelationEngine * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICorrelationEngine * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICorrelationEngine * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICorrelationEngine * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICorrelationEngine * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICorrelationEngine * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ICorrelationEngine, get_RetainGlobalEvents) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainGlobalEvents )( + __RPC__in ICorrelationEngine * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(ICorrelationEngine, put_RetainGlobalEvents) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RetainGlobalEvents )( + __RPC__in ICorrelationEngine * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(ICorrelationEngine, Filter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Filter )( + __RPC__in ICorrelationEngine * This, + /* [in] */ __RPC__in BSTR InputTraceFile, + /* [in] */ __RPC__in BSTR OutputTraceFile, + /* [in] */ __RPC__in BSTR FilterActivityId); + + DECLSPEC_XFGVIRT(ICorrelationEngine, Normalize) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Normalize )( + __RPC__in ICorrelationEngine * This, + /* [in] */ __RPC__in BSTR InputTraceFile, + /* [in] */ __RPC__in BSTR OutputTraceFile); + + DECLSPEC_XFGVIRT(ICorrelationEngine, get_RetainPII) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainPII )( + __RPC__in ICorrelationEngine * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(ICorrelationEngine, put_RetainPII) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RetainPII )( + __RPC__in ICorrelationEngine * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(ICorrelationEngine, get_RetainCorrelationEvents) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RetainCorrelationEvents )( + __RPC__in ICorrelationEngine * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(ICorrelationEngine, put_RetainCorrelationEvents) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RetainCorrelationEvents )( + __RPC__in ICorrelationEngine * This, + /* [in] */ VARIANT_BOOL newVal); + + END_INTERFACE + } ICorrelationEngineVtbl; + + interface ICorrelationEngine + { + CONST_VTBL struct ICorrelationEngineVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICorrelationEngine_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICorrelationEngine_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICorrelationEngine_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICorrelationEngine_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICorrelationEngine_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICorrelationEngine_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICorrelationEngine_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICorrelationEngine_get_RetainGlobalEvents(This,pVal) \ + ( (This)->lpVtbl -> get_RetainGlobalEvents(This,pVal) ) + +#define ICorrelationEngine_put_RetainGlobalEvents(This,newVal) \ + ( (This)->lpVtbl -> put_RetainGlobalEvents(This,newVal) ) + +#define ICorrelationEngine_Filter(This,InputTraceFile,OutputTraceFile,FilterActivityId) \ + ( (This)->lpVtbl -> Filter(This,InputTraceFile,OutputTraceFile,FilterActivityId) ) + +#define ICorrelationEngine_Normalize(This,InputTraceFile,OutputTraceFile) \ + ( (This)->lpVtbl -> Normalize(This,InputTraceFile,OutputTraceFile) ) + +#define ICorrelationEngine_get_RetainPII(This,pVal) \ + ( (This)->lpVtbl -> get_RetainPII(This,pVal) ) + +#define ICorrelationEngine_put_RetainPII(This,newVal) \ + ( (This)->lpVtbl -> put_RetainPII(This,newVal) ) + +#define ICorrelationEngine_get_RetainCorrelationEvents(This,pVal) \ + ( (This)->lpVtbl -> get_RetainCorrelationEvents(This,pVal) ) + +#define ICorrelationEngine_put_RetainCorrelationEvents(This,newVal) \ + ( (This)->lpVtbl -> put_RetainCorrelationEvents(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICorrelationEngine_INTERFACE_DEFINED__ */ + + + +#ifndef __CorrEngineLib_LIBRARY_DEFINED__ +#define __CorrEngineLib_LIBRARY_DEFINED__ + +/* library CorrEngineLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_CorrEngineLib; + +EXTERN_C const CLSID CLSID_CorrelationEngine; + +#ifdef __cplusplus + +class DECLSPEC_UUID("FCDC2CF5-ABCD-4BA5-94DA-1823AE06FE2B") +CorrelationEngine; +#endif +#endif /* __CorrEngineLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_correngine_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_correngine_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_correngine_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/corrEngine.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/corrEngine.idl new file mode 100644 index 0000000000000000000000000000000000000000..3f50bdb97967e09e23ca593f4f336476e6cd9c18 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/corrEngine.idl @@ -0,0 +1,67 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992-2007. +// +// CorrEngine.idl : IDL source for CorrEngine +// +// This file will be processed by the MIDL tool to +// produce the type library (CorrEngine.tlb) and marshalling code. +// +//-------------------------------------------------------------------------- + +cpp_quote("//+--------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (C) Microsoft Corporation, 1992-2007.") +cpp_quote("//") +cpp_quote("//---------------------------------------------------------------------------") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +[ + object, + uuid(A188440E-DB11-45B8-B42C-B2149FA71453), + dual, + nonextensible, + helpstring("ICorrelationEngine Interface"), + pointer_default(unique) +] +interface ICorrelationEngine : IDispatch +{ + [propget, id(1), helpstring("property RetainGlobalEvents")] HRESULT RetainGlobalEvents([out, retval] VARIANT_BOOL* pVal); + [propput, id(1), helpstring("property RetainGlobalEvents")] HRESULT RetainGlobalEvents([in] VARIANT_BOOL newVal); + [id(2), helpstring("method Filter")] HRESULT Filter([in] BSTR InputTraceFile, [in] BSTR OutputTraceFile, [in] BSTR FilterActivityId); + [id(3), helpstring("method Normalize")] HRESULT Normalize([in] BSTR InputTraceFile, [in] BSTR OutputTraceFile); + [propget, id(4), helpstring("property RetainPII")] HRESULT RetainPII([out, retval] VARIANT_BOOL* pVal); + [propput, id(4), helpstring("property RetainPII")] HRESULT RetainPII([in] VARIANT_BOOL newVal); + [propget, id(5), helpstring("property RetainCorrelationEvents")] HRESULT RetainCorrelationEvents([out, retval] VARIANT_BOOL* pVal); + [propput, id(5), helpstring("property RetainCorrelationEvents")] HRESULT RetainCorrelationEvents([in] VARIANT_BOOL newVal); +}; +[ + uuid(6CAAAA3B-6502-40FE-97FC-72A290DC63CF), + version(1.0), + helpstring("CorrEngine 1.0 Type Library") +] +library CorrEngineLib +{ + importlib("stdole2.tlb"); + [ + uuid(FCDC2CF5-ABCD-4BA5-94DA-1823AE06FE2B), + helpstring("CorrelationEngine Class") + ] + coclass CorrelationEngine + { + [default] interface ICorrelationEngine; + }; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/counterman.xsd b/msvc/Windows Kits/10/Include/10.0.26100.0/um/counterman.xsd new file mode 100644 index 0000000000000000000000000000000000000000..26412d0e7eb17966d24f41d452a052549e75170a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/counterman.xsd @@ -0,0 +1,357 @@ + + + + + + A counters element may occur within the <instrumentation> element + of an instrumentation manifest. Refer to eventman.xsd for the + instrumentation manifest schema. + + + + + + counterSet.guid must be unique. + + + + + + + + + + + Defines a Windows Performance Counter V2 provider. + + + + + + + + + + + + A provider is a component that publishes data for one or more + countersets. + + + + + + + + + Provider Symbol is required for User Mode providers. + + + + + + + + + + + + + + + + Specify the name of the binary (DLL, EXE, or SYS file) into which the + string resources for this provider will be linked. During provider + installation via "lodctr.exe /m:ManifestFile InstallationPath", the + value of this attribute will be combined with the InstallationPath + to determine the full path to the provider binary. The full path will + be recorded as part of provider installation and used when the + provider string resources are needed. + + + + + + + + + + + + + + + + This attribute is not allowed for schemaVersion >= 2.0. + + + + + + + + + + + If providerType=kernelMode, required. + If providerType=userMode, not allowed. + + + + + + + + + + + + + + + + + + + Resource ID of the name string. This attribute is required + for schemaVersion >= 2.0, and not allowed for older versions. + + + + + + + + Resource ID of the description string. This attribute is required + for schemaVersion >= 2.0, and not allowed for older versions. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Only five counterAttribute elements allowed. They should all be unique. + + + + + + + + + + + + + + + + + + + + + Resource ID of the name string. For schemaVersion >= 2.0, this + attribute must be specified if the 'name` attribute was + specified. This attribute is not allowed for older schema versions. + + + + + + + + Resource ID of the description string. For schemaVersion >= 2.0, this + attribute must be specified if the 'description` attribute was + specified. This attribute is not allowed for older schema versions. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + If providerType=kernelMode, required. + If providerType=userMode, not allowed. + + + + + + + If providerType=kernelMode, required. + If providerType=userMode, not allowed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A globally unique identifier in Registry format, + e.g. {12345678-4321-ABCD-1234-9ABCDEF012345678}. + Use GUIDGen.exe or UUIDGen.exe to create a GUID. + + + + + + + + + + 1-8 hexadecimal digits with '0x' prefix. + + + + + + + + + + 32-bit unsigned decimal or hexadecimal integer. Decimal should have no + leading 0s. Hexadecimal requires '0x' prefix. + + + + + + + + + Symbol is used for code-generation. It should be a valid C Symbol or an empty string. + + + + + + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cper.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cper.h new file mode 100644 index 0000000000000000000000000000000000000000..a1c59b5cba1872a139afc66cb603c0f16766cc24 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cper.h @@ -0,0 +1,2305 @@ +/*++ + +Copyright (c) 2007 Microsoft Corporation + +Module Name: + + cper.h + +Abstract: + + This header file defines the structures used to represent the Common + Platform Error Record as defined in Appendix N of the Unified Extensible + Firmware Interface (UEFI) specification (revision 2.6). + + This specification as well as any approved errata may be obtained from + http://www.uefi.org. + + This header file also includes Microsoft specific extensions to the Common + Platform Error Record as allowed by Appendix N, Section 2.3 of the Unified + Extensible Firmware Interface specification (Non-standard Section Body). + +--*/ + +#ifndef _CPER_H_ +#define _CPER_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include + +#pragma warning(push) +#pragma warning(disable:4201) +#pragma warning(disable:4214) + +#if defined(MCI_STATUS) +#undef MCI_STATUS +#endif + +// +// The general format of the common platform error record is illustrated below. +// A record consists of a header; followed by one or more section descriptors; +// and for each descriptor, an associated section which may contain either error +// or informational data. +// +// The record may include extra buffer space to allow for the dynamic addition +// of error sections descriptors and bodies, as well as for dynamically +// increasing the size of existing sections. +// +// +---------------------------------------------+ +// | Record Header | +// | SectionCount == N | +// +---------------------------------------------+ +// | Section Descriptor 1 | +// | Offset, size | ---+ +// +---------------------------------------------+ | +// | Section Descriptor 2 | | +// | Offset, size | ---+---+ +// +---------------------------------------------+ | | +// | | | | +// | .... | | | +// | | | | +// +---------------------------------------------+ | | +// | Section Descriptor N | ---+---+---+ +// | Offset, size | | | | +// +---------------------------------------------+ | | | +// | Buffer space for adding | | | | +// | more section descriptors. | | | | +// +---------------------------------------------| | | | +// | Section 1 | <--+ | | +// | | | | +// +---------------------------------------------+ | | +// | Section 2 | <------+ | +// | | | +// +---------------------------------------------+ | +// | | | +// | | | +// | .... | | +// | | | +// | | | +// +---------------------------------------------+ | +// | Section N | <----------+ +// | | +// +---------------------------------------------+ +// | | +// | | +// | | +// | Buffer space for adding | +// | more section bodies. | +// | | +// | | +// | | +// +---------------------------------------------+ +// + +// -------------------------------------------- Specification validation macros + +// +// The following macro implements a compile-time check for the offset and length +// of the specified structure member. This can be used to validate the defined +// structures against the specification. +// + +#define CPER_FIELD_CHECK(type, field, offset, length) \ + C_ASSERT(((FIELD_OFFSET(type, field) == (offset)) && \ + (RTL_FIELD_SIZE(type, field) == (length)))) + +#include + +//---------------------------------- Downlevel GUID variable name compatibility + +#if WHEA_DOWNLEVEL_TYPE_NAMES + +#define PROCESSOR_GENERIC_SECTION_GUID PROCESSOR_GENERIC_ERROR_SECTION_GUID +#define X86_PROCESSOR_SPECIFIC_SECTION_GUID XPF_PROCESSOR_ERROR_SECTION_GUID +#define IPF_PROCESSOR_SPECIFIC_SECTION_GUID IPF_PROCESSOR_ERROR_SECTION_GUID +#define ARM_PROCESSOR_SPECIFIC_SECTION_GUID ARM_PROCESSOR_ERROR_SECTION_GUID +#define PLATFORM_MEMORY_SECTION_GUID MEMORY_ERROR_SECTION_GUID +#define PCIEXPRESS_SECTION_GUID PCIEXPRESS_ERROR_SECTION_GUID +#define PCIX_BUS_SECTION_GUID PCIXBUS_ERROR_SECTION_GUID +#define PCIX_COMPONENT_SECTION_GUID PCIXDEVICE_ERROR_SECTION_GUID +#define IPF_SAL_RECORD_REFERENCE_SECTION_GUID FIRMWARE_ERROR_RECORD_REFERENCE_GUID + +#endif + +//------------------------------------------ Common Platform Error Record types + +// +// These types are used in several of the common platform error record +// structures. +// + +typedef union _WHEA_REVISION { + struct { + UCHAR MinorRevision; + UCHAR MajorRevision; + } DUMMYSTRUCTNAME; + USHORT AsUSHORT; +} WHEA_REVISION, *PWHEA_REVISION; + +typedef enum _WHEA_ERROR_SEVERITY { + WheaErrSevRecoverable = 0, + WheaErrSevFatal = 1, + WheaErrSevCorrected = 2, + WheaErrSevInformational = 3 +} WHEA_ERROR_SEVERITY, *PWHEA_ERROR_SEVERITY; + +typedef union _WHEA_TIMESTAMP { + struct { + ULONGLONG Seconds:8; + ULONGLONG Minutes:8; + ULONGLONG Hours:8; + ULONGLONG Precise:1; + ULONGLONG Reserved:7; + ULONGLONG Day:8; + ULONGLONG Month:8; + ULONGLONG Year:8; + ULONGLONG Century:8; + } DUMMYSTRUCTNAME; + LARGE_INTEGER AsLARGE_INTEGER; +} WHEA_TIMESTAMP, *PWHEA_TIMESTAMP; + +typedef union _WHEA_PERSISTENCE_INFO { + struct { + ULONGLONG Signature:16; + ULONGLONG Length:24; + ULONGLONG Identifier:16; + ULONGLONG Attributes:2; + ULONGLONG DoNotLog:1; + ULONGLONG Reserved:5; + } DUMMYSTRUCTNAME; + ULONGLONG AsULONGLONG; +} WHEA_PERSISTENCE_INFO, *PWHEA_PERSISTENCE_INFO; + +#define ERRTYP_INTERNAL 0x01 // 1 +#define ERRTYP_BUS 0x10 // 16 +#define ERRTYP_MEM 0x04 // 4 +#define ERRTYP_TLB 0x05 // 5 +#define ERRTYP_CACHE 0x06 // 6 +#define ERRTYP_FUNCTION 0x07 // 7 +#define ERRTYP_SELFTEST 0x08 // 8 +#define ERRTYP_FLOW 0x09 // 9 +#define ERRTYP_MAP 0x11 // 17 +#define ERRTYP_IMPROPER 0x12 // 18 +#define ERRTYP_UNIMPL 0x13 // 19 +#define ERRTYP_LOSSOFLOCKSTEP 0x14 // 20 +#define ERRTYP_RESPONSE 0x15 // 21 +#define ERRTYP_PARITY 0x16 // 22 +#define ERRTYP_PROTOCOL 0x17 // 23 +#define ERRTYP_PATHERROR 0x18 // 24 +#define ERRTYP_TIMEOUT 0x19 // 25 +#define ERRTYP_POISONED 0x1A // 26 + +typedef union _WHEA_ERROR_STATUS { + ULONGLONG ErrorStatus; + struct { + ULONGLONG Reserved1:8; + ULONGLONG ErrorType:8; + ULONGLONG Address:1; + ULONGLONG Control:1; + ULONGLONG Data:1; + ULONGLONG Responder:1; + ULONGLONG Requester:1; + ULONGLONG FirstError:1; + ULONGLONG Overflow:1; + ULONGLONG Reserved2:41; + } DUMMYSTRUCTNAME; +} WHEA_ERROR_STATUS, *PWHEA_ERROR_STATUS; + +//---------------------------------------------------- WHEA_ERROR_RECORD_HEADER + +typedef union _WHEA_ERROR_RECORD_HEADER_VALIDBITS { + struct { + ULONG PlatformId:1; + ULONG Timestamp:1; + ULONG PartitionId:1; + ULONG Reserved:29; + } DUMMYSTRUCTNAME; + ULONG AsULONG; +} WHEA_ERROR_RECORD_HEADER_VALIDBITS, *PWHEA_ERROR_RECORD_HEADER_VALIDBITS; + +#define WHEA_ERROR_RECORD_VALID_PLATFORMID 0x00000001 +#define WHEA_ERROR_RECORD_VALID_TIMESTAMP 0x00000002 +#define WHEA_ERROR_RECORD_VALID_PARTITIONID 0x00000004 + +typedef union _WHEA_ERROR_RECORD_HEADER_FLAGS { + struct { + ULONG Recovered:1; + ULONG PreviousError:1; + ULONG Simulated:1; + ULONG DeviceDriver:1; + ULONG CriticalEvent:1; + ULONG PersistPfn:1; + ULONG SectionsTruncated:1; + ULONG RecoveryInProgress:1; + ULONG Throttle:1; + ULONG Reserved:23; + } DUMMYSTRUCTNAME; + ULONG AsULONG; +} WHEA_ERROR_RECORD_HEADER_FLAGS, *PWHEA_ERROR_RECORD_HEADER_FLAGS; + +#define WHEA_ERROR_RECORD_FLAGS_RECOVERED 0x00000001 +#define WHEA_ERROR_RECORD_FLAGS_PREVIOUSERROR 0x00000002 +#define WHEA_ERROR_RECORD_FLAGS_SIMULATED 0x00000004 +#define WHEA_ERROR_RECORD_FLAGS_DEVICE_DRIVER 0x00000008 + +typedef struct _WHEA_ERROR_RECORD_HEADER { + ULONG Signature; + WHEA_REVISION Revision; + ULONG SignatureEnd; + USHORT SectionCount; + WHEA_ERROR_SEVERITY Severity; + WHEA_ERROR_RECORD_HEADER_VALIDBITS ValidBits; + _Field_range_(>=, (sizeof(WHEA_ERROR_RECORD_HEADER) + + (SectionCount + * sizeof(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR)))) + ULONG Length; + WHEA_TIMESTAMP Timestamp; + GUID PlatformId; + GUID PartitionId; + GUID CreatorId; + GUID NotifyType; + ULONGLONG RecordId; + WHEA_ERROR_RECORD_HEADER_FLAGS Flags; + WHEA_PERSISTENCE_INFO PersistenceInfo; + union { + struct { + ULONG OsBuildNumber; // Pupulated by AzPshedPi, not in vanilla windows + UCHAR Reserved2[8]; + }; + + UCHAR Reserved[12]; + }; +} WHEA_ERROR_RECORD_HEADER, *PWHEA_ERROR_RECORD_HEADER; + +// +// Distinguished values used in the common platform error record header +// signature. +// + +#define WHEA_ERROR_RECORD_SIGNATURE 'REPC' +#define WHEA_ERROR_RECORD_REVISION 0x0210 +#define WHEA_ERROR_RECORD_SIGNATURE_END 0xFFFFFFFF + +// +// Validate the error record header structure against the definitions in the +// UEFI specification. +// + +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, Signature, 0, 4); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, Revision, 4, 2); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, SignatureEnd, 6, 4); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, SectionCount, 10, 2); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, Severity, 12, 4); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, ValidBits, 16, 4); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, Length, 20, 4); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, Timestamp, 24, 8); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, PlatformId, 32, 16); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, PartitionId, 48, 16); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, CreatorId, 64, 16); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, NotifyType, 80, 16); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, RecordId, 96, 8); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, Flags, 104, 4); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, PersistenceInfo, 108, 8); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_HEADER, Reserved, 116, 12); + +//---------------------------------------- WHEA_ERROR_RECORD_SECTION_DESCRIPTOR + +typedef union _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_FLAGS { + struct { + ULONG Primary:1; + ULONG ContainmentWarning:1; + ULONG Reset:1; + ULONG ThresholdExceeded:1; + ULONG ResourceNotAvailable:1; + ULONG LatentError:1; + ULONG Propagated:1; + ULONG FruTextByPlugin:1; + ULONG Reserved:24; + } DUMMYSTRUCTNAME; + ULONG AsULONG; +} WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_FLAGS, + *PWHEA_ERROR_RECORD_SECTION_DESCRIPTOR_FLAGS; + +#define WHEA_SECTION_DESCRIPTOR_FLAGS_PRIMARY 0x00000001 +#define WHEA_SECTION_DESCRIPTOR_FLAGS_CONTAINMENTWRN 0x00000002 +#define WHEA_SECTION_DESCRIPTOR_FLAGS_RESET 0x00000004 +#define WHEA_SECTION_DESCRIPTOR_FLAGS_THRESHOLDEXCEEDED 0x00000008 +#define WHEA_SECTION_DESCRIPTOR_FLAGS_RESOURCENA 0x00000010 +#define WHEA_SECTION_DESCRIPTOR_FLAGS_LATENTERROR 0x00000020 +#define WHEA_SECTION_DESCRIPTOR_FLAGS_PROPAGATED 0x00000040 +#define WHEA_SECTION_DESCRIPTOR_FLAGS_FRU_TEXT_BY_PLUGIN 0x00000080 + +typedef union _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_VALIDBITS { + struct { + UCHAR FRUId:1; + UCHAR FRUText:1; + UCHAR Reserved:6; + } DUMMYSTRUCTNAME; + UCHAR AsUCHAR; +} WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_VALIDBITS, + *PWHEA_ERROR_RECORD_SECTION_DESCRIPTOR_VALIDBITS; + +typedef struct _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR { + ULONG SectionOffset; + ULONG SectionLength; + WHEA_REVISION Revision; + WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_VALIDBITS ValidBits; + UCHAR Reserved; + WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_FLAGS Flags; + GUID SectionType; + GUID FRUId; + WHEA_ERROR_SEVERITY SectionSeverity; + CCHAR FRUText[20]; +} WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, *PWHEA_ERROR_RECORD_SECTION_DESCRIPTOR; + +#define WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_REVISION 0x0300 + +#if WHEA_DOWNLEVEL_TYPE_NAMES + +#define WHEA_SECTION_DESCRIPTOR_REVISION \ + WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_REVISION + +#endif + +// +// Validate the error record section descriptor structure against the +// definitions in the UEFI specification. +// + +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, SectionOffset, 0, 4); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, SectionLength, 4, 4); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, Revision, 8, 2); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, ValidBits, 10, 1); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, Reserved, 11, 1); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, Flags, 12, 4); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, SectionType, 16, 16); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, FRUId, 32, 16); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, SectionSeverity, 48, 4); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD_SECTION_DESCRIPTOR, FRUText, 52, 20); + +//----------------------------------------------------------- WHEA_ERROR_RECORD + +typedef _Struct_size_bytes_(Header.Length) struct _WHEA_ERROR_RECORD { + WHEA_ERROR_RECORD_HEADER Header; + _Field_size_(Header.SectionCount) + WHEA_ERROR_RECORD_SECTION_DESCRIPTOR SectionDescriptor[ANYSIZE_ARRAY]; +} WHEA_ERROR_RECORD, *PWHEA_ERROR_RECORD; + +// +// Validate the error record structure against the definitions in the UEFI +// specification. +// + +CPER_FIELD_CHECK(WHEA_ERROR_RECORD, Header, 0, 128); +CPER_FIELD_CHECK(WHEA_ERROR_RECORD, SectionDescriptor, 128, 72); + +//---------------------------------------- WHEA_PROCESSOR_GENERIC_ERROR_SECTION + +#define GENPROC_PROCTYPE_XPF 0 +#define GENPROC_PROCTYPE_IPF 1 +#define GENPROC_PROCTYPE_ARM 2 + +#define GENPROC_PROCISA_X86 0 +#define GENPROC_PROCISA_IPF 1 +#define GENPROC_PROCISA_X64 2 +#define GENPROC_PROCISA_ARM32 4 +#define GENPROC_PROCISA_ARM64 8 + +#define GENPROC_PROCERRTYPE_UNKNOWN 0 +#define GENPROC_PROCERRTYPE_CACHE 1 +#define GENPROC_PROCERRTYPE_TLB 2 +#define GENPROC_PROCERRTYPE_BUS 4 +#define GENPROC_PROCERRTYPE_MAE 8 + +#define GENPROC_OP_GENERIC 0 +#define GENPROC_OP_DATAREAD 1 +#define GENPROC_OP_DATAWRITE 2 +#define GENPROC_OP_INSTRUCTIONEXE 3 + +#define GENPROC_FLAGS_RESTARTABLE 0x01 +#define GENPROC_FLAGS_PRECISEIP 0x02 +#define GENPROC_FLAGS_OVERFLOW 0x04 +#define GENPROC_FLAGS_CORRECTED 0x08 + +typedef union _WHEA_PROCESSOR_FAMILY_INFO { + struct { + ULONG Stepping:4; + ULONG Model:4; + ULONG Family:4; + ULONG ProcessorType:2; + ULONG Reserved1:2; + ULONG ExtendedModel:4; + ULONG ExtendedFamily:8; + ULONG Reserved2:4; + ULONG NativeModelId; + } DUMMYSTRUCTNAME; + ULONGLONG AsULONGLONG; +} WHEA_PROCESSOR_FAMILY_INFO, *PWHEA_PROCESSOR_FAMILY_INFO; + +typedef union _WHEA_PROCESSOR_GENERIC_ERROR_SECTION_VALIDBITS { + struct { + ULONGLONG ProcessorType:1; + ULONGLONG InstructionSet:1; + ULONGLONG ErrorType:1; + ULONGLONG Operation:1; + ULONGLONG Flags:1; + ULONGLONG Level:1; + ULONGLONG CPUVersion:1; + ULONGLONG CPUBrandString:1; + ULONGLONG ProcessorId:1; + ULONGLONG TargetAddress:1; + ULONGLONG RequesterId:1; + ULONGLONG ResponderId:1; + ULONGLONG InstructionPointer:1; + ULONGLONG NativeModelId:1; + ULONGLONG Reserved:50; + } DUMMYSTRUCTNAME; + ULONGLONG ValidBits; +} WHEA_PROCESSOR_GENERIC_ERROR_SECTION_VALIDBITS, + *PWHEA_PROCESSOR_GENERIC_ERROR_SECTION_VALIDBITS; + +typedef struct _WHEA_PROCESSOR_GENERIC_ERROR_SECTION { + WHEA_PROCESSOR_GENERIC_ERROR_SECTION_VALIDBITS ValidBits; + UCHAR ProcessorType; + UCHAR InstructionSet; + UCHAR ErrorType; + UCHAR Operation; + UCHAR Flags; + UCHAR Level; + USHORT Reserved; + ULONGLONG CPUVersion; + UCHAR CPUBrandString[128]; + ULONGLONG ProcessorId; + ULONGLONG TargetAddress; + ULONGLONG RequesterId; + ULONGLONG ResponderId; + ULONGLONG InstructionPointer; +} WHEA_PROCESSOR_GENERIC_ERROR_SECTION, *PWHEA_PROCESSOR_GENERIC_ERROR_SECTION; + +// +// Define alternate type name for downlevel source compatibility. +// + +#if WHEA_DOWNLEVEL_TYPE_NAMES + +typedef WHEA_PROCESSOR_GENERIC_ERROR_SECTION_VALIDBITS + WHEA_GENERIC_PROCESSOR_ERROR_VALIDBITS, + *PWHEA_GENERIC_PROCESSOR_ERROR_VALIDBITS; + +typedef WHEA_PROCESSOR_GENERIC_ERROR_SECTION + WHEA_GENERIC_PROCESSOR_ERROR, *PWHEA_GENERIC_PROCESSOR_ERROR; + +#endif + +// +// Validate the processor generic error section structure against the +// definitions in the UEFI specification. +// + +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, ValidBits, 0, 8); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, ProcessorType, 8, 1); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, InstructionSet, 9, 1); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, ErrorType, 10, 1); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, Operation, 11, 1); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, Flags, 12, 1); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, Level, 13, 1); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, Reserved, 14, 2); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, CPUVersion, 16, 8); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, CPUBrandString, 24, 128); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, ProcessorId, 152, 8); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, TargetAddress, 160, 8); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, RequesterId, 168, 8); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, ResponderId, 176, 8); +CPER_FIELD_CHECK(WHEA_PROCESSOR_GENERIC_ERROR_SECTION, InstructionPointer, 184, 8); + +//-------------------------------------------- WHEA_XPF_PROCESSOR_ERROR_SECTION + +// +// x86/x64 cache check structure. +// + +#define XPF_CACHE_CHECK_TRANSACTIONTYPE_INSTRUCTION 0 +#define XPF_CACHE_CHECK_TRANSACTIONTYPE_DATAACCESS 1 +#define XPF_CACHE_CHECK_TRANSACTIONTYPE_GENERIC 2 + +#define XPF_CACHE_CHECK_OPERATION_GENERIC 0 +#define XPF_CACHE_CHECK_OPERATION_GENREAD 1 +#define XPF_CACHE_CHECK_OPERATION_GENWRITE 2 +#define XPF_CACHE_CHECK_OPERATION_DATAREAD 3 +#define XPF_CACHE_CHECK_OPERATION_DATAWRITE 4 +#define XPF_CACHE_CHECK_OPERATION_INSTRUCTIONFETCH 5 +#define XPF_CACHE_CHECK_OPERATION_PREFETCH 6 +#define XPF_CACHE_CHECK_OPERATION_EVICTION 7 +#define XPF_CACHE_CHECK_OPERATION_SNOOP 8 + +typedef union _WHEA_XPF_CACHE_CHECK { + struct { + ULONGLONG TransactionTypeValid:1; + ULONGLONG OperationValid:1; + ULONGLONG LevelValid:1; + ULONGLONG ProcessorContextCorruptValid:1; + ULONGLONG UncorrectedValid:1; + ULONGLONG PreciseIPValid:1; + ULONGLONG RestartableIPValid:1; + ULONGLONG OverflowValid:1; + ULONGLONG ReservedValid:8; + + ULONGLONG TransactionType:2; + ULONGLONG Operation:4; + ULONGLONG Level:3; + ULONGLONG ProcessorContextCorrupt:1; + ULONGLONG Uncorrected:1; + ULONGLONG PreciseIP:1; + ULONGLONG RestartableIP:1; + ULONGLONG Overflow:1; + + ULONGLONG Reserved:34; + } DUMMYSTRUCTNAME; + ULONGLONG XpfCacheCheck; +} WHEA_XPF_CACHE_CHECK, *PWHEA_XPF_CACHE_CHECK; + +// +// x86/x64 TLB check structure. +// + +#define XPF_TLB_CHECK_TRANSACTIONTYPE_INSTRUCTION 0 +#define XPF_TLB_CHECK_TRANSACTIONTYPE_DATAACCESS 1 +#define XPF_TLB_CHECK_TRANSACTIONTYPE_GENERIC 2 + +#define XPF_TLB_CHECK_OPERATION_GENERIC 0 +#define XPF_TLB_CHECK_OPERATION_GENREAD 1 +#define XPF_TLB_CHECK_OPERATION_GENWRITE 2 +#define XPF_TLB_CHECK_OPERATION_DATAREAD 3 +#define XPF_TLB_CHECK_OPERATION_DATAWRITE 4 +#define XPF_TLB_CHECK_OPERATION_INSTRUCTIONFETCH 5 +#define XPF_TLB_CHECK_OPERATION_PREFETCH 6 + +typedef union _WHEA_XPF_TLB_CHECK { + struct { + ULONGLONG TransactionTypeValid:1; + ULONGLONG OperationValid:1; + ULONGLONG LevelValid:1; + ULONGLONG ProcessorContextCorruptValid:1; + ULONGLONG UncorrectedValid:1; + ULONGLONG PreciseIPValid:1; + ULONGLONG RestartableIPValid:1; + ULONGLONG OverflowValid:1; + ULONGLONG ReservedValid:8; + + ULONGLONG TransactionType:2; + ULONGLONG Operation:4; + ULONGLONG Level:3; + ULONGLONG ProcessorContextCorrupt:1; + ULONGLONG Uncorrected:1; + ULONGLONG PreciseIP:1; + ULONGLONG RestartableIP:1; + ULONGLONG Overflow:1; + ULONGLONG Reserved:34; + } DUMMYSTRUCTNAME; + ULONGLONG XpfTLBCheck; +} WHEA_XPF_TLB_CHECK, *PWHEA_XPF_TLB_CHECK; + +// +// x86/x64 bus check structure. +// + +#define XPF_BUS_CHECK_TRANSACTIONTYPE_INSTRUCTION 0 +#define XPF_BUS_CHECK_TRANSACTIONTYPE_DATAACCESS 1 +#define XPF_BUS_CHECK_TRANSACTIONTYPE_GENERIC 2 + +#define XPF_BUS_CHECK_OPERATION_GENERIC 0 +#define XPF_BUS_CHECK_OPERATION_GENREAD 1 +#define XPF_BUS_CHECK_OPERATION_GENWRITE 2 +#define XPF_BUS_CHECK_OPERATION_DATAREAD 3 +#define XPF_BUS_CHECK_OPERATION_DATAWRITE 4 +#define XPF_BUS_CHECK_OPERATION_INSTRUCTIONFETCH 5 +#define XPF_BUS_CHECK_OPERATION_PREFETCH 6 + +#define XPF_BUS_CHECK_PARTICIPATION_PROCORIGINATED 0 +#define XPF_BUS_CHECK_PARTICIPATION_PROCRESPONDED 1 +#define XPF_BUS_CHECK_PARTICIPATION_PROCOBSERVED 2 +#define XPF_BUS_CHECK_PARTICIPATION_GENERIC 3 + +#define XPF_BUS_CHECK_ADDRESS_MEMORY 0 +#define XPF_BUS_CHECK_ADDRESS_RESERVED 1 +#define XPF_BUS_CHECK_ADDRESS_IO 2 +#define XPF_BUS_CHECK_ADDRESS_OTHER 3 + +typedef union _WHEA_XPF_BUS_CHECK { + struct { + ULONGLONG TransactionTypeValid:1; + ULONGLONG OperationValid:1; + ULONGLONG LevelValid:1; + ULONGLONG ProcessorContextCorruptValid:1; + ULONGLONG UncorrectedValid:1; + ULONGLONG PreciseIPValid:1; + ULONGLONG RestartableIPValid:1; + ULONGLONG OverflowValid:1; + ULONGLONG ParticipationValid:1; + ULONGLONG TimeoutValid:1; + ULONGLONG AddressSpaceValid:1; + ULONGLONG ReservedValid:5; + + ULONGLONG TransactionType:2; + ULONGLONG Operation:4; + ULONGLONG Level:3; + ULONGLONG ProcessorContextCorrupt:1; + ULONGLONG Uncorrected:1; + ULONGLONG PreciseIP:1; + ULONGLONG RestartableIP:1; + ULONGLONG Overflow:1; + ULONGLONG Participation:2; + ULONGLONG Timeout:1; + ULONGLONG AddressSpace:2; + ULONGLONG Reserved:29; + } DUMMYSTRUCTNAME; + ULONGLONG XpfBusCheck; +} WHEA_XPF_BUS_CHECK, *PWHEA_XPF_BUS_CHECK; + +// +// x86/x64 micro-architecture specific check structure. +// + +#define XPF_MS_CHECK_ERRORTYPE_NOERROR 0 +#define XPF_MS_CHECK_ERRORTYPE_UNCLASSIFIED 1 +#define XPF_MS_CHECK_ERRORTYPE_MCROMPARITY 2 +#define XPF_MS_CHECK_ERRORTYPE_EXTERNAL 3 +#define XPF_MS_CHECK_ERRORTYPE_FRC 4 +#define XPF_MS_CHECK_ERRORTYPE_INTERNALUNCLASSIFIED 5 + +typedef union _WHEA_XPF_MS_CHECK { + struct { + ULONGLONG ErrorTypeValid:1; + ULONGLONG ProcessorContextCorruptValid:1; + ULONGLONG UncorrectedValid:1; + ULONGLONG PreciseIPValid:1; + ULONGLONG RestartableIPValid:1; + ULONGLONG OverflowValid:1; + ULONGLONG ReservedValue:10; + + ULONGLONG ErrorType:3; + ULONGLONG ProcessorContextCorrupt:1; + ULONGLONG Uncorrected:1; + ULONGLONG PreciseIP:1; + ULONGLONG RestartableIP:1; + ULONGLONG Overflow:1; + ULONGLONG Reserved:40; + } DUMMYSTRUCTNAME; + ULONGLONG XpfMsCheck; +} WHEA_XPF_MS_CHECK, *PWHEA_XPF_MS_CHECK; + +// +// x86/x64 Processor Error Information Structure. +// + +typedef union _WHEA_XPF_PROCINFO_VALIDBITS { + struct { + ULONGLONG CheckInfo:1; + ULONGLONG TargetId:1; + ULONGLONG RequesterId:1; + ULONGLONG ResponderId:1; + ULONGLONG InstructionPointer:1; + ULONGLONG Reserved:59; + } DUMMYSTRUCTNAME; + ULONGLONG ValidBits; +} WHEA_XPF_PROCINFO_VALIDBITS, *PWHEA_XPF_PROCINFO_VALIDBITS; + +typedef struct _WHEA_XPF_PROCINFO { + GUID CheckInfoId; + WHEA_XPF_PROCINFO_VALIDBITS ValidBits; + union { + WHEA_XPF_CACHE_CHECK CacheCheck; + WHEA_XPF_TLB_CHECK TlbCheck; + WHEA_XPF_BUS_CHECK BusCheck; + WHEA_XPF_MS_CHECK MsCheck; + ULONGLONG AsULONGLONG; + } CheckInfo; + ULONGLONG TargetId; + ULONGLONG RequesterId; + ULONGLONG ResponderId; + ULONGLONG InstructionPointer; +} WHEA_XPF_PROCINFO, *PWHEA_XPF_PROCINFO; + +// +// x86/x64 Processor Context Information Structure. +// + +typedef struct _WHEA_X86_REGISTER_STATE { + ULONG Eax; + ULONG Ebx; + ULONG Ecx; + ULONG Edx; + ULONG Esi; + ULONG Edi; + ULONG Ebp; + ULONG Esp; + USHORT Cs; + USHORT Ds; + USHORT Ss; + USHORT Es; + USHORT Fs; + USHORT Gs; + ULONG Eflags; + ULONG Eip; + ULONG Cr0; + ULONG Cr1; + ULONG Cr2; + ULONG Cr3; + ULONG Cr4; + ULONGLONG Gdtr; + ULONGLONG Idtr; + USHORT Ldtr; + USHORT Tr; +} WHEA_X86_REGISTER_STATE, *PWHEA_X86_REGISTER_STATE; + +typedef struct DECLSPEC_ALIGN(16) _WHEA128A { + ULONGLONG Low; + LONGLONG High; +} WHEA128A, *PWHEA128A; + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(push) +#pragma warning(disable:4324) // structure padded due to __declspec(align()) +#endif +#endif + +typedef struct _WHEA_X64_REGISTER_STATE { + ULONGLONG Rax; + ULONGLONG Rbx; + ULONGLONG Rcx; + ULONGLONG Rdx; + ULONGLONG Rsi; + ULONGLONG Rdi; + ULONGLONG Rbp; + ULONGLONG Rsp; + ULONGLONG R8; + ULONGLONG R9; + ULONGLONG R10; + ULONGLONG R11; + ULONGLONG R12; + ULONGLONG R13; + ULONGLONG R14; + ULONGLONG R15; + USHORT Cs; + USHORT Ds; + USHORT Ss; + USHORT Es; + USHORT Fs; + USHORT Gs; + ULONG Reserved; + ULONGLONG Rflags; + ULONGLONG Eip; + ULONGLONG Cr0; + ULONGLONG Cr1; + ULONGLONG Cr2; + ULONGLONG Cr3; + ULONGLONG Cr4; + ULONGLONG Cr8; + WHEA128A Gdtr; + WHEA128A Idtr; + USHORT Ldtr; + USHORT Tr; +} WHEA_X64_REGISTER_STATE, *PWHEA_X64_REGISTER_STATE; + +#if defined(_MSC_VER) +#if (_MSC_VER >= 1200) +#pragma warning(pop) +#endif +#endif + +#define XPF_CONTEXT_INFO_UNCLASSIFIEDDATA 0 +#define XPF_CONTEXT_INFO_MSRREGISTERS 1 +#define XPF_CONTEXT_INFO_32BITCONTEXT 2 +#define XPF_CONTEXT_INFO_64BITCONTEXT 3 +#define XPF_CONTEXT_INFO_FXSAVE 4 +#define XPF_CONTEXT_INFO_32BITDEBUGREGS 5 +#define XPF_CONTEXT_INFO_64BITDEBUGREGS 6 +#define XPF_CONTEXT_INFO_MMREGISTERS 7 + +typedef struct _WHEA_XPF_CONTEXT_INFO { + USHORT RegisterContextType; + USHORT RegisterDataSize; + ULONG MSRAddress; + ULONGLONG MmRegisterAddress; + + // + // UCHAR RegisterData[ANYSIZE_ARRAY]; + // + +} WHEA_XPF_CONTEXT_INFO, *PWHEA_XPF_CONTEXT_INFO; + +// +// x86/x64 Processor Error Section +// + +typedef union _WHEA_XPF_PROCESSOR_ERROR_SECTION_VALIDBITS { + struct { + ULONGLONG LocalAPICId:1; + ULONGLONG CpuId:1; + ULONGLONG ProcInfoCount:6; + ULONGLONG ContextInfoCount:6; + ULONGLONG Reserved:50; + } DUMMYSTRUCTNAME; + ULONGLONG ValidBits; +} WHEA_XPF_PROCESSOR_ERROR_SECTION_VALIDBITS, + *PWHEA_XPF_PROCESSOR_ERROR_SECTION_VALIDBITS; + +typedef struct _WHEA_XPF_PROCESSOR_ERROR_SECTION { + WHEA_XPF_PROCESSOR_ERROR_SECTION_VALIDBITS ValidBits; + ULONGLONG LocalAPICId; + UCHAR CpuId[48]; + + // + // WHEA_XPF_PROCINFO ProcInfo[ANYSIZE_ARRAY]; + // WHEA_XPF_CONTEXT_INFO ContextInfo[ANYSIZE_ARRAY]; + // + + UCHAR VariableInfo[ANYSIZE_ARRAY]; +} WHEA_XPF_PROCESSOR_ERROR_SECTION, *PWHEA_XPF_PROCESSOR_ERROR_SECTION; + +// +// Define alternate type names for downlevel source compatibility. +// + +#if WHEA_DOWNLEVEL_TYPE_NAMES + +typedef struct WHEA_XPF_PROCESSOR_ERROR_SECTION_VALIDBITS + WHEA_XPF_PROCESSOR_ERROR_VALIDBITS, *PWHEA_XPF_PROCESSOR_ERROR_VALIDBITS; + +typedef struct WHEA_XPF_PROCESSOR_ERROR_SECTION + WHEA_XPF_PROCESSOR_ERROR, *PWHEA_XPF_PROCESSOR_ERROR; + +#endif + +// +// Validate the x86/x64 processor error section structures against the +// definitions in the UEFI specification. +// + +CPER_FIELD_CHECK(WHEA_XPF_PROCINFO, CheckInfoId, 0, 16); +CPER_FIELD_CHECK(WHEA_XPF_PROCINFO, ValidBits, 16, 8); +CPER_FIELD_CHECK(WHEA_XPF_PROCINFO, CheckInfo, 24, 8); +CPER_FIELD_CHECK(WHEA_XPF_PROCINFO, TargetId, 32, 8); +CPER_FIELD_CHECK(WHEA_XPF_PROCINFO, RequesterId, 40, 8); +CPER_FIELD_CHECK(WHEA_XPF_PROCINFO, ResponderId, 48, 8); +CPER_FIELD_CHECK(WHEA_XPF_PROCINFO, InstructionPointer, 56, 8); + +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Eax, 0, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Ebx, 4, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Ecx, 8, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Edx, 12, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Esi, 16, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Edi, 20, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Ebp, 24, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Esp, 28, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Cs, 32, 2); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Ds, 34, 2); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Ss, 36, 2); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Es, 38, 2); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Fs, 40, 2); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Gs, 42, 2); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Eflags, 44, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Eip, 48, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Cr0, 52, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Cr1, 56, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Cr2, 60, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Cr3, 64, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Cr4, 68, 4); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Gdtr, 72, 8); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Idtr, 80, 8); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Ldtr, 88, 2); +CPER_FIELD_CHECK(WHEA_X86_REGISTER_STATE, Tr, 90, 2); + +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Rax, 0, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Rbx, 8, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Rcx, 16, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Rdx, 24, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Rsi, 32, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Rdi, 40, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Rbp, 48, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Rsp, 56, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, R8, 64, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, R9, 72, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, R10, 80, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, R11, 88, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, R12, 96, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, R13, 104, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, R14, 112, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, R15, 120, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Cs, 128, 2); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Ds, 130, 2); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Ss, 132, 2); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Es, 134, 2); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Fs, 136, 2); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Gs, 138, 2); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Reserved, 140, 4); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Rflags, 144, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Eip, 152, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Cr0, 160, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Cr1, 168, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Cr2, 176, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Cr3, 184, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Cr4, 192, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Cr8, 200, 8); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Gdtr, 208, 16); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Idtr, 224, 16); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Ldtr, 240, 2); +CPER_FIELD_CHECK(WHEA_X64_REGISTER_STATE, Tr, 242, 2); + +CPER_FIELD_CHECK(WHEA_XPF_CONTEXT_INFO, RegisterContextType, 0, 2); +CPER_FIELD_CHECK(WHEA_XPF_CONTEXT_INFO, RegisterDataSize, 2, 2); +CPER_FIELD_CHECK(WHEA_XPF_CONTEXT_INFO, MSRAddress, 4, 4); +CPER_FIELD_CHECK(WHEA_XPF_CONTEXT_INFO, MmRegisterAddress, 8, 8); + +CPER_FIELD_CHECK(WHEA_XPF_PROCESSOR_ERROR_SECTION, ValidBits, 0, 8); +CPER_FIELD_CHECK(WHEA_XPF_PROCESSOR_ERROR_SECTION, LocalAPICId, 8, 8); +CPER_FIELD_CHECK(WHEA_XPF_PROCESSOR_ERROR_SECTION, CpuId, 16, 48); +CPER_FIELD_CHECK(WHEA_XPF_PROCESSOR_ERROR_SECTION, VariableInfo, 64, ANYSIZE_ARRAY); + +//--------------------------------------------------- WHEA_MEMORY_ERROR_SECTION + +typedef union _WHEA_MEMORY_ERROR_SECTION_VALIDBITS { + struct { + ULONGLONG ErrorStatus:1; + ULONGLONG PhysicalAddress:1; + ULONGLONG PhysicalAddressMask:1; + ULONGLONG Node:1; + ULONGLONG Card:1; + ULONGLONG Module:1; + ULONGLONG Bank:1; + ULONGLONG Device:1; + ULONGLONG Row:1; + ULONGLONG Column:1; + ULONGLONG BitPosition:1; + ULONGLONG RequesterId:1; + ULONGLONG ResponderId:1; + ULONGLONG TargetId:1; + ULONGLONG ErrorType:1; + ULONGLONG RankNumber:1; + ULONGLONG CardHandle:1; + ULONGLONG ModuleHandle:1; + ULONGLONG ExtendedRow:1; + ULONGLONG BankGroup:1; + ULONGLONG BankAddress:1; + ULONGLONG ChipIdentification:1; + ULONGLONG Reserved:42; + } DUMMYSTRUCTNAME; + ULONGLONG ValidBits; +} WHEA_MEMORY_ERROR_SECTION_VALIDBITS, + *PWHEA_MEMORY_ERROR_SECTION_VALIDBITS; + +#define WHEA_MEMERRTYPE_UNKNOWN 0x00 +#define WHEA_MEMERRTYPE_NOERROR 0x01 +#define WHEA_MEMERRTYPE_SINGLEBITECC 0x02 +#define WHEA_MEMERRTYPE_MULTIBITECC 0x03 +#define WHEA_MEMERRTYPE_SINGLESYMCHIPKILL 0x04 +#define WHEA_MEMERRTYPE_MULTISYMCHIPKILL 0x05 +#define WHEA_MEMERRTYPE_MASTERABORT 0x06 +#define WHEA_MEMERRTYPE_TARGETABORT 0x07 +#define WHEA_MEMERRTYPE_PARITYERROR 0x08 +#define WHEA_MEMERRTYPE_WATCHDOGTIMEOUT 0x09 +#define WHEA_MEMERRTYPE_INVALIDADDRESS 0x0A +#define WHEA_MEMERRTYPE_MIRRORBROKEN 0x0B +#define WHEA_MEMERRTYPE_MEMORYSPARING 0x0C + +typedef struct _WHEA_MEMORY_ERROR_SECTION { + WHEA_MEMORY_ERROR_SECTION_VALIDBITS ValidBits; + WHEA_ERROR_STATUS ErrorStatus; + ULONGLONG PhysicalAddress; + ULONGLONG PhysicalAddressMask; + USHORT Node; + USHORT Card; + USHORT Module; + USHORT Bank; + USHORT Device; + USHORT Row; + USHORT Column; + USHORT BitPosition; + ULONGLONG RequesterId; + ULONGLONG ResponderId; + ULONGLONG TargetId; + UCHAR ErrorType; + UCHAR Extended; + USHORT RankNumber; + USHORT CardHandle; + USHORT ModuleHandle; +} WHEA_MEMORY_ERROR_SECTION, *PWHEA_MEMORY_ERROR_SECTION; + +// +// Define alternate names allowing for downlevel source compatibility. +// + +#if WHEA_DOWNLEVEL_TYPE_NAMES + +typedef WHEA_MEMORY_ERROR_SECTION_VALIDBITS + WHEA_MEMORY_ERROR_VALIDBITS, *PWHEA_MEMORY_ERROR_VALIDBITS; + +typedef WHEA_MEMORY_ERROR_SECTION + WHEA_MEMORY_ERROR, *PWHEA_MEMORY_ERROR; + +#endif + +// +// Validate the memory error section structures against the definitions in the +// UEFI specification. +// + +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, ValidBits, 0, 8); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, ErrorStatus, 8, 8); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, PhysicalAddress, 16, 8); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, PhysicalAddressMask, 24, 8); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, Node, 32, 2); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, Card, 34, 2); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, Module, 36, 2); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, Bank, 38, 2); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, Device, 40, 2); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, Row, 42, 2); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, Column, 44, 2); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, BitPosition, 46, 2); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, RequesterId, 48, 8); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, ResponderId, 56, 8); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, TargetId, 64, 8); +CPER_FIELD_CHECK(WHEA_MEMORY_ERROR_SECTION, ErrorType, 72, 1); + +//----------------------------------------------- WHEA_MEMORY_ERROR_EXT_SECTION + +typedef enum _WHEA_MEMORY_DEFINITION { + WheaMemoryUndefined = 0, + WheaMemoryFm, + WheaMemoryNm, + WheaMemoryHbm, + WheaMemoryMax +} WHEA_MEMORY_DEFINITION, *PWHEA_MEMORY_DEFINITION; + +typedef union _WHEA_MEMORY_ERROR_EXT_SECTION_FLAGS { + struct { + UINT64 AddressTranslationByPrmSuccess : 1; + UINT64 AddressTranslationByPrmFailed : 1; + UINT64 AddressTranslationByPrmNotSupported : 1; + UINT64 AddressTranslationByPluginSuccess : 1; + UINT64 AddressTranslationByPluginFailed : 1; + UINT64 AddressTranslationByPluginNotSupported : 1; + UINT64 Reserved : 58; + } DUMMYSTRUCTNAME; + + UINT64 AsUINT64; +} WHEA_MEMORY_ERROR_EXT_SECTION_FLAGS, *PWHEA_MEMORY_ERROR_EXT_SECTION_FLAGS; + +typedef union _WHEA_MEMORY_ERROR_EXT_SECTION_INTEL_VALIDBITS { + struct { + UINT64 MemDef : 1; + UINT64 SystemAddress : 1; + UINT64 SpareSystemAddress : 1; + UINT64 DevicePhysicalAddress : 1; + UINT64 ChannelAddress : 1; + UINT64 RankAddress : 1; + UINT64 ProcessorSocketId : 1; + UINT64 MemoryControllerId : 1; + UINT64 TargetId : 1; + UINT64 LogicalChannelId : 1; + UINT64 ChannelId : 1; + UINT64 SubChannelId : 1; + UINT64 PhysicalRankId : 1; + UINT64 DimmSlotId : 1; + UINT64 DimmRankId : 1; + UINT64 Bank : 1; + UINT64 BankGroup : 1; + UINT64 Row : 1; + UINT64 Column : 1; + UINT64 LockStepRank : 1; + UINT64 LockStepPhysicalRank : 1; + UINT64 LockStepBank : 1; + UINT64 LockStepBankGroup : 1; + UINT64 ChipSelect : 1; + UINT64 Node : 1; + UINT64 ChipId : 1; + UINT64 Reserved : 38; + } DUMMYSTRUCTNAME; + + UINT64 ValidBits; +} WHEA_MEMORY_ERROR_EXT_SECTION_INTEL_VALIDBITS, + *PWHEA_MEMORY_ERROR_EXT_SECTION_INTEL_VALIDBITS; + +typedef struct _WHEA_MEMORY_HARDWARE_ADDRESS_INTEL { + WHEA_MEMORY_DEFINITION MemDef; + UINT64 SystemAddress; + UINT64 SpareSystemAddress; + UINT64 DevicePhysicalAddress; + UINT64 ChannelAddress; + UINT64 RankAddress; + UINT8 ProcessorSocketId; + UINT8 MemoryControllerId; + UINT8 TargetId; + UINT8 LogicalChannelId; + UINT8 ChannelId; + UINT8 SubChannelId; + UINT8 PhysicalRankId; + UINT8 DimmSlotId; + UINT8 DimmRankId; + UINT8 Bank; + UINT8 BankGroup; + UINT32 Row; + UINT32 Column; + UINT8 LockStepRank; + UINT8 LockStepPhysicalRank; + UINT8 LockStepBank; + UINT8 LockStepBankGroup; + UINT8 ChipSelect; + UINT8 Node; + UINT8 ChipId; + UINT8 Reserved[40]; +} WHEA_MEMORY_HARDWARE_ADDRESS_INTEL, *PWHEA_MEMORY_HARDWARE_ADDRESS_INTEL; + +typedef struct _WHEA_MEMORY_ERROR_EXT_SECTION_INTEL { + WHEA_MEMORY_ERROR_EXT_SECTION_FLAGS Flags; + WHEA_MEMORY_ERROR_EXT_SECTION_INTEL_VALIDBITS ValidBits; + WHEA_MEMORY_HARDWARE_ADDRESS_INTEL HardwareAddress; + UINT8 Reserved[40]; +} WHEA_MEMORY_ERROR_EXT_SECTION_INTEL, *PWHEA_MEMORY_ERROR_EXT_SECTION_INTEL; + +//----------------------------------------------------- WHEA_PMEM_ERROR_SECTION + +#define WHEA_PMEM_ERROR_SECTION_LOCATION_INFO_SIZE 64 +#define WHEA_PMEM_ERROR_SECTION_MAX_PAGES 50 + +typedef union _WHEA_PMEM_ERROR_SECTION_VALIDBITS { + struct { + ULONGLONG ErrorStatus:1; + ULONGLONG NFITHandle:1; + ULONGLONG LocationInfo:1; + ULONGLONG Reserved:61; + } DUMMYSTRUCTNAME; + ULONGLONG ValidBits; +} WHEA_PMEM_ERROR_SECTION_VALIDBITS, + *PWHEA_PMEM_ERROR_SECTION_VALIDBITS; + +typedef struct _WHEA_PMEM_PAGE_RANGE { + ULONG64 StartingPfn; + ULONG64 PageCount; + ULONG64 MarkedBadBitmap; +} WHEA_PMEM_PAGE_RANGE, *PWHEA_PMEM_PAGE_RANGE; + +#define WHEA_PMEM_IS_PFN_ALREADY_MARKED_BAD(PageRange, TargetPfn) \ + (((TargetPfn) - ((PageRange)->StartingPfn) < sizeof(ULONG64) * 8) && \ + ((((PageRange)->MarkedBadBitmap) & (1ull << ((TargetPfn) - ((PageRange)->StartingPfn)))) != 0)) + +#define WHEA_PMEM_IS_PAGE_RANGE_ALREADY_MARKED_BAD(PageRange) \ + (((PageRange)->PageCount <= sizeof(ULONG64) * 8) && \ + (((PageRange)->MarkedBadBitmap) == (ULONG64_MAX >> (sizeof(ULONG64) * 8 - (PageRange)->PageCount)))) + +typedef struct _WHEA_PMEM_ERROR_SECTION { + WHEA_PMEM_ERROR_SECTION_VALIDBITS ValidBits; + UCHAR LocationInfo[WHEA_PMEM_ERROR_SECTION_LOCATION_INFO_SIZE]; + WHEA_ERROR_STATUS ErrorStatus; + ULONG NFITHandle; + ULONG PageRangeCount; + WHEA_PMEM_PAGE_RANGE PageRange[ANYSIZE_ARRAY]; +} WHEA_PMEM_ERROR_SECTION, *PWHEA_PMEM_ERROR_SECTION; + +CPER_FIELD_CHECK(WHEA_PMEM_ERROR_SECTION, ValidBits, 0, 8); +CPER_FIELD_CHECK(WHEA_PMEM_ERROR_SECTION, LocationInfo, 8, 64); +CPER_FIELD_CHECK(WHEA_PMEM_ERROR_SECTION, ErrorStatus, 72, 8); +CPER_FIELD_CHECK(WHEA_PMEM_ERROR_SECTION, NFITHandle, 80, 4); +CPER_FIELD_CHECK(WHEA_PMEM_ERROR_SECTION, PageRangeCount, 84, 4); + +//----------------------------------------- WHEA_PCIE_CORRECTABLE_ERROR_SECTION + +#define WHEA_PCIE_CORRECTABLE_ERROR_SECTION_COUNT_SIZE 32 + +typedef struct _WHEA_PCIE_ADDRESS { + UINT32 Segment; + UINT32 Bus; + UINT32 Device; + UINT32 Function; +} WHEA_PCIE_ADDRESS, *PWHEA_PCIE_ADDRESS; + +typedef union _WHEA_PCIE_CORRECTABLE_ERROR_DEVICES_VALIDBITS { + struct { + ULONGLONG Segment:1; + ULONGLONG Bus:1; + ULONGLONG Device:1; + ULONGLONG Function:1; + ULONGLONG Mask:1; + ULONGLONG CorrectableErrorCount:1; + ULONGLONG Reserved:58; + } DUMMYSTRUCTNAME; + ULONGLONG ValidBits; +} WHEA_PCIE_CORRECTABLE_ERROR_DEVICES_VALIDBITS, + *PWHEA_PCIE_CORRECTABLE_ERROR_DEVICES_VALIDBITS; + +typedef struct _WHEA_PCIE_CORRECTABLE_ERROR_DEVICES { + WHEA_PCIE_CORRECTABLE_ERROR_DEVICES_VALIDBITS ValidBits; + WHEA_PCIE_ADDRESS Address; + UINT32 Mask; + UINT32 CorrectableErrorCount + [WHEA_PCIE_CORRECTABLE_ERROR_SECTION_COUNT_SIZE]; +} WHEA_PCIE_CORRECTABLE_ERROR_DEVICES, *PWHEA_PCIE_CORRECTABLE_ERROR_DEVICES; + +typedef struct _WHEA_PCIE_CORRECTABLE_ERROR_SECTION_HEADER { + UINT16 Version; + UINT16 Count; +} WHEA_PCIE_CORRECTABLE_ERROR_SECTION_HEADER, + *PWHEA_PCIE_CORRECTABLE_ERROR_SECTION_HEADER; + +typedef struct _WHEA_PCIE_CORRECTABLE_ERROR_SECTION { + WHEA_PCIE_CORRECTABLE_ERROR_SECTION_HEADER Header; + _Field_size_(Header.Count) + WHEA_PCIE_CORRECTABLE_ERROR_DEVICES Devices[ANYSIZE_ARRAY]; +} WHEA_PCIE_CORRECTABLE_ERROR_SECTION, *PWHEA_PCIE_CORRECTABLE_ERROR_SECTION; + +CPER_FIELD_CHECK(WHEA_PCIE_CORRECTABLE_ERROR_SECTION, Header, 0, 4); +CPER_FIELD_CHECK(WHEA_PCIE_CORRECTABLE_ERROR_SECTION, Devices, 4, 156); + +//----------------------------------------- WHEA_MEMORY_CORRECTABLE_ERROR_SECTION + +typedef union _WHEA_MEMORY_CORRECTABLE_ERROR_SECTION_VALIDBITS { + struct { + ULONGLONG SocketId:1; + ULONGLONG ChannelId:1; + ULONGLONG DimmSlot:1; + ULONGLONG CorrectableErrorCount:1; + ULONGLONG Reserved:60; + } DUMMYSTRUCTNAME; + ULONGLONG ValidBits; +} WHEA_MEMORY_CORRECTABLE_ERROR_SECTION_VALIDBITS, + *PWHEA_MEMORY_CORRECTABLE_ERROR_SECTION_VALIDBITS; + +typedef struct _WHEA_MEMORY_CORRECTABLE_ERROR_HEADER { + UINT16 Version; + UINT16 Count; +} WHEA_MEMORY_CORRECTABLE_ERROR_HEADER, *PWHEA_MEMORY_CORRECTABLE_ERROR_HEADER; + +typedef struct _WHEA_MEMORY_CORRECTABLE_ERROR_DATA { + WHEA_MEMORY_CORRECTABLE_ERROR_SECTION_VALIDBITS ValidBits; + UINT32 SocketId; + UINT32 ChannelId; + UINT32 DimmSlot; + UINT32 CorrectableErrorCount; +} WHEA_MEMORY_CORRECTABLE_ERROR_DATA, *PWHEA_MEMORY_CORRECTABLE_ERROR_DATA; + +typedef struct _WHEA_MEMORY_CORRECTABLE_ERROR_SECTION { + WHEA_MEMORY_CORRECTABLE_ERROR_HEADER Header; + WHEA_MEMORY_CORRECTABLE_ERROR_DATA Data[ANYSIZE_ARRAY]; +} WHEA_MEMORY_CORRECTABLE_ERROR_SECTION, + *PWHEA_MEMORY_CORRECTABLE_ERROR_SECTION; + +CPER_FIELD_CHECK(WHEA_MEMORY_CORRECTABLE_ERROR_SECTION, Header, 0, 4); +CPER_FIELD_CHECK(WHEA_MEMORY_CORRECTABLE_ERROR_SECTION, Data, 4, 24); + +//----------------------------------------------- WHEA_PCIEXPRESS_ERROR_SECTION + +typedef union _WHEA_PCIEXPRESS_ERROR_SECTION_VALIDBITS { + struct { + ULONGLONG PortType:1; + ULONGLONG Version:1; + ULONGLONG CommandStatus:1; + ULONGLONG DeviceId:1; + ULONGLONG DeviceSerialNumber:1; + ULONGLONG BridgeControlStatus:1; + ULONGLONG ExpressCapability:1; + ULONGLONG AerInfo:1; + ULONGLONG Reserved:56; + } DUMMYSTRUCTNAME; + ULONGLONG ValidBits; +} WHEA_PCIEXPRESS_ERROR_SECTION_VALIDBITS, + *PWHEA_PCIEXPRESS_ERROR_SECTION_VALIDBITS; + +typedef struct _WHEA_PCIEXPRESS_DEVICE_ID { + USHORT VendorID; + USHORT DeviceID; + ULONG ClassCode:24; + ULONG FunctionNumber:8; + ULONG DeviceNumber:8; + ULONG Segment:16; + ULONG PrimaryBusNumber:8; + ULONG SecondaryBusNumber:8; + ULONG Reserved1:3; + ULONG SlotNumber:13; + ULONG Reserved2:8; +} WHEA_PCIEXPRESS_DEVICE_ID, *PWHEA_PCIEXPRESS_DEVICE_ID; + +typedef union _WHEA_PCIEXPRESS_VERSION { + struct { + UCHAR MinorVersion; + UCHAR MajorVersion; + USHORT Reserved; + } DUMMYSTRUCTNAME; + ULONG AsULONG; +} WHEA_PCIEXPRESS_VERSION, *PWHEA_PCIEXPRESS_VERSION; + +typedef union _WHEA_PCIEXPRESS_COMMAND_STATUS { + struct { + USHORT Command; + USHORT Status; + } DUMMYSTRUCTNAME; + ULONG AsULONG; +} WHEA_PCIEXPRESS_COMMAND_STATUS, *PWHEA_PCIEXPRESS_COMMAND_STATUS; + +typedef union _WHEA_PCIEXPRESS_BRIDGE_CONTROL_STATUS { + struct { + USHORT BridgeSecondaryStatus; + USHORT BridgeControl; + } DUMMYSTRUCTNAME; + ULONG AsULONG; +} WHEA_PCIEXPRESS_BRIDGE_CONTROL_STATUS, + *PWHEA_PCIEXPRESS_BRIDGE_CONTROL_STATUS; + +typedef enum _WHEA_PCIEXPRESS_DEVICE_TYPE { + WheaPciExpressEndpoint = 0, + WheaPciExpressLegacyEndpoint, + WheaPciExpressRootPort = 4, + WheaPciExpressUpstreamSwitchPort, + WheaPciExpressDownstreamSwitchPort, + WheaPciExpressToPciXBridge, + WheaPciXToExpressBridge, + WheaPciExpressRootComplexIntegratedEndpoint, + WheaPciExpressRootComplexEventCollector +} WHEA_PCIEXPRESS_DEVICE_TYPE; + +typedef struct _WHEA_PCIEXPRESS_ERROR_SECTION { + WHEA_PCIEXPRESS_ERROR_SECTION_VALIDBITS ValidBits; + WHEA_PCIEXPRESS_DEVICE_TYPE PortType; + WHEA_PCIEXPRESS_VERSION Version; + WHEA_PCIEXPRESS_COMMAND_STATUS CommandStatus; + ULONG Reserved; + WHEA_PCIEXPRESS_DEVICE_ID DeviceId; + ULONGLONG DeviceSerialNumber; + WHEA_PCIEXPRESS_BRIDGE_CONTROL_STATUS BridgeControlStatus; + UCHAR ExpressCapability[60]; + UCHAR AerInfo[96]; +} WHEA_PCIEXPRESS_ERROR_SECTION, *PWHEA_PCIEXPRESS_ERROR_SECTION; + +#if WHEA_DOWNLEVEL_TYPE_NAMES + +typedef WHEA_PCIEXPRESS_ERROR_SECTION_VALIDBITS + WHEA_PCIEXPRESS_ERROR_VALIDBITS, + *PWHEA_PCIEXPRESS_ERROR_VALIDBITS; + +typedef WHEA_PCIEXPRESS_ERROR_SECTION + WHEA_PCIEXPRESS_ERROR, *PWHEA_PCIEXPRESS_ERROR; + +#endif + +// +// Validate the PCI Express error section structures against the definitions +// in the UEFI specification. +// + +CPER_FIELD_CHECK(WHEA_PCIEXPRESS_ERROR_SECTION, ValidBits, 0, 8); +CPER_FIELD_CHECK(WHEA_PCIEXPRESS_ERROR_SECTION, PortType, 8, 4); +CPER_FIELD_CHECK(WHEA_PCIEXPRESS_ERROR_SECTION, Version, 12, 4); +CPER_FIELD_CHECK(WHEA_PCIEXPRESS_ERROR_SECTION, CommandStatus, 16, 4); +CPER_FIELD_CHECK(WHEA_PCIEXPRESS_ERROR_SECTION, Reserved, 20, 4); +CPER_FIELD_CHECK(WHEA_PCIEXPRESS_ERROR_SECTION, DeviceId, 24, 16); +CPER_FIELD_CHECK(WHEA_PCIEXPRESS_ERROR_SECTION, DeviceSerialNumber, 40, 8); +CPER_FIELD_CHECK(WHEA_PCIEXPRESS_ERROR_SECTION, BridgeControlStatus, 48, 4); +CPER_FIELD_CHECK(WHEA_PCIEXPRESS_ERROR_SECTION, ExpressCapability, 52, 60); +CPER_FIELD_CHECK(WHEA_PCIEXPRESS_ERROR_SECTION, AerInfo, 112, 96); + +//-------------------------------------------------- WHEA_PCIXBUS_ERROR_SECTION + +#define PCIXBUS_ERRTYPE_UNKNOWN 0x0000 +#define PCIXBUS_ERRTYPE_DATAPARITY 0x0001 +#define PCIXBUS_ERRTYPE_SYSTEM 0x0002 +#define PCIXBUS_ERRTYPE_MASTERABORT 0x0003 +#define PCIXBUS_ERRTYPE_BUSTIMEOUT 0x0004 +#define PCIXBUS_ERRTYPE_MASTERDATAPARITY 0x0005 +#define PCIXBUS_ERRTYPE_ADDRESSPARITY 0x0006 +#define PCIXBUS_ERRTYPE_COMMANDPARITY 0x0007 + +typedef union _WHEA_PCIXBUS_ERROR_SECTION_VALIDBITS { + struct { + ULONGLONG ErrorStatus:1; + ULONGLONG ErrorType:1; + ULONGLONG BusId:1; + ULONGLONG BusAddress:1; + ULONGLONG BusData:1; + ULONGLONG BusCommand:1; + ULONGLONG RequesterId:1; + ULONGLONG CompleterId:1; + ULONGLONG TargetId:1; + ULONGLONG Reserved:55; + } DUMMYSTRUCTNAME; + ULONGLONG ValidBits; +} WHEA_PCIXBUS_ERROR_SECTION_VALIDBITS, *PWHEA_PCIXBUS_ERROR_SECTION_VALIDBITS; + +typedef union _WHEA_PCIXBUS_ID { + struct { + UCHAR BusNumber; + UCHAR BusSegment; + } DUMMYSTRUCTNAME; + USHORT AsUSHORT; +} WHEA_PCIXBUS_ID, *PWHEA_PCIXBUS_ID; + +typedef union _WHEA_PCIXBUS_COMMAND { + struct { + ULONGLONG Command:56; + ULONGLONG PCIXCommand:1; + ULONGLONG Reserved:7; + } DUMMYSTRUCTNAME; + ULONGLONG AsULONGLONG; +} WHEA_PCIXBUS_COMMAND, *PWHEA_PCIXBUS_COMMAND; + +typedef struct _WHEA_PCIXBUS_ERROR_SECTION { + WHEA_PCIXBUS_ERROR_SECTION_VALIDBITS ValidBits; + WHEA_ERROR_STATUS ErrorStatus; + USHORT ErrorType; + WHEA_PCIXBUS_ID BusId; + ULONG Reserved; + ULONGLONG BusAddress; + ULONGLONG BusData; + WHEA_PCIXBUS_COMMAND BusCommand; + ULONGLONG RequesterId; + ULONGLONG CompleterId; + ULONGLONG TargetId; +} WHEA_PCIXBUS_ERROR_SECTION, *PWHEA_PCIXBUS_ERROR_SECTION; + +#if WHEA_DOWNLEVEL_TYPE_NAMES + +typedef WHEA_PCIXBUS_ERROR_SECTION_VALIDBITS + WHEA_PCIXBUS_ERROR_VALIDBITS, + *PWHEA_PCIXBUS_ERROR_VALIDBITS; + +typedef WHEA_PCIXBUS_ERROR_SECTION + WHEA_PCIXBUS_ERROR, *PWHEA_PCIXBUS_ERROR; + +#endif + +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, ValidBits, 0, 8); +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, ErrorStatus, 8, 8); +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, ErrorType, 16, 2); +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, BusId, 18, 2); +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, Reserved, 20, 4); +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, BusAddress, 24, 8); +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, BusData, 32, 8); +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, BusCommand, 40, 8); +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, RequesterId, 48, 8); +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, CompleterId, 56, 8); +CPER_FIELD_CHECK(WHEA_PCIXBUS_ERROR_SECTION, TargetId, 64, 8); + +//----------------------------------------------- WHEA_PCIXDEVICE_ERROR_SECTION + +typedef union _WHEA_PCIXDEVICE_ERROR_SECTION_VALIDBITS { + struct { + ULONGLONG ErrorStatus:1; + ULONGLONG IdInfo:1; + ULONGLONG MemoryNumber:1; + ULONGLONG IoNumber:1; + ULONGLONG RegisterDataPairs:1; + ULONGLONG Reserved:59; + } DUMMYSTRUCTNAME; + ULONGLONG ValidBits; +} WHEA_PCIXDEVICE_ERROR_SECTION_VALIDBITS, + *PWHEA_PCIXDEVICE_ERROR_SECTION_VALIDBITS; + +typedef struct _WHEA_PCIXDEVICE_ID { + USHORT VendorId; + USHORT DeviceId; + ULONG ClassCode:24; + ULONG FunctionNumber:8; + ULONG DeviceNumber:8; + ULONG BusNumber:8; + ULONG SegmentNumber:8; + ULONG Reserved1:8; + ULONG Reserved2; +} WHEA_PCIXDEVICE_ID, *PWHEA_PCIXDEVICE_ID; + +typedef struct WHEA_PCIXDEVICE_REGISTER_PAIR { + ULONGLONG Register; + ULONGLONG Data; +} WHEA_PCIXDEVICE_REGISTER_PAIR, *PWHEA_PCIXDEVICE_REGISTER_PAIR; + +typedef struct _WHEA_PCIXDEVICE_ERROR_SECTION { + WHEA_PCIXDEVICE_ERROR_SECTION_VALIDBITS ValidBits; + WHEA_ERROR_STATUS ErrorStatus; + WHEA_PCIXDEVICE_ID IdInfo; + ULONG MemoryNumber; + ULONG IoNumber; + WHEA_PCIXDEVICE_REGISTER_PAIR RegisterDataPairs[ANYSIZE_ARRAY]; +} WHEA_PCIXDEVICE_ERROR_SECTION, *PWHEA_PCIXDEVICE_ERROR_SECTION; + +#if WHEA_DOWNLEVEL_TYPE_NAMES + +typedef WHEA_PCIXDEVICE_ERROR_SECTION_VALIDBITS + WHEA_PCIXDEVICE_ERROR_VALIDBITS, *PWHEA_PCIXDEVICE_ERROR_VALIDBITS; + +typedef WHEA_PCIXDEVICE_ERROR_SECTION + WHEA_PCIXDEVICE_ERROR, *PWHEA_PCIXDEVICE_ERROR; + +#endif + +CPER_FIELD_CHECK(WHEA_PCIXDEVICE_ERROR_SECTION, ValidBits, 0, 8); +CPER_FIELD_CHECK(WHEA_PCIXDEVICE_ERROR_SECTION, ErrorStatus, 8, 8); +CPER_FIELD_CHECK(WHEA_PCIXDEVICE_ERROR_SECTION, IdInfo, 16, 16); +CPER_FIELD_CHECK(WHEA_PCIXDEVICE_ERROR_SECTION, MemoryNumber, 32, 4); +CPER_FIELD_CHECK(WHEA_PCIXDEVICE_ERROR_SECTION, IoNumber, 36, 4); +CPER_FIELD_CHECK(WHEA_PCIXDEVICE_ERROR_SECTION, RegisterDataPairs, 40, 16); + +//---------------------------------------- WHEA_FIRMWARE_ERROR_RECORD_REFERENCE + +#define WHEA_FIRMWARE_RECORD_TYPE_IPFSAL 0 + +typedef struct _WHEA_FIRMWARE_ERROR_RECORD_REFERENCE { + UCHAR Type; + UCHAR Reserved[7]; + ULONGLONG FirmwareRecordId; +} WHEA_FIRMWARE_ERROR_RECORD_REFERENCE, *PWHEA_FIRMWARE_ERROR_RECORD_REFERENCE; + +#if WHEA_DOWNLEVEL_TYPE_NAMES + +typedef WHEA_FIRMWARE_ERROR_RECORD_REFERENCE + WHEA_FIRMWARE_RECORD, *PWHEA_FIRMWARE_RECORD; + +#endif + +CPER_FIELD_CHECK(WHEA_FIRMWARE_ERROR_RECORD_REFERENCE, Type, 0, 1); +CPER_FIELD_CHECK(WHEA_FIRMWARE_ERROR_RECORD_REFERENCE, Reserved, 1, 7); +CPER_FIELD_CHECK(WHEA_FIRMWARE_ERROR_RECORD_REFERENCE, FirmwareRecordId, 8, 8); + +// +// This is the start of the Microsoft specific extensions to the Common Platform +// Error Record specification. This is in accordance with Appendix N, section +// 2.3 of the Unified Extensible Firmware Interface specification, which allows +// the specification of non-standard section bodies. +// + +//------------------------------------------------------------- XPF_MCA_SECTION + +// +// The IA32_MCG_CAP register provides information about the machine-check +// architecture of the processor. +// From: Intel 64 and IA-32 Architectures SDM +// Volume 3B; December 2017; Chapter 15.3.1.1 +// + +typedef union _MCG_CAP { + struct { + ULONG64 CountField: 8; + ULONG64 ControlMsrPresent: 1; + ULONG64 ExtendedMsrsPresent: 1; + ULONG64 SignalingExtensionPresent: 1; + ULONG64 ThresholdErrorStatusPresent: 1; + ULONG64 Reserved: 4; + ULONG64 ExtendedRegisterCount: 8; + ULONG64 SoftwareErrorRecoverySupported: 1; + ULONG64 EnhancedMachineCheckCapability: 1; + ULONG64 ExtendedErrorLogging: 1; + ULONG64 LocalMachineCheckException: 1; + } DUMMYSTRUCTNAME; + ULONG64 QuadPart; +} MCG_CAP, *PMCG_CAP; + +typedef union _MCG_STATUS { + struct { + ULONG RestartIpValid:1; + ULONG ErrorIpValid:1; + ULONG MachineCheckInProgress:1; + ULONG LocalMceValid:1; + ULONG Reserved1:28; + ULONG Reserved2; + } DUMMYSTRUCTNAME; + ULONGLONG QuadPart; +} MCG_STATUS, *PMCG_STATUS; + +typedef struct _MCI_STATUS_BITS_COMMON { + ULONG64 McaErrorCode : 16; + ULONG64 ModelErrorCode : 16; + ULONG64 Reserved : 25; + ULONG64 ContextCorrupt : 1; + ULONG64 AddressValid : 1; + ULONG64 MiscValid : 1; + ULONG64 ErrorEnabled : 1; + ULONG64 UncorrectedError : 1; + ULONG64 StatusOverFlow : 1; + ULONG64 Valid : 1; +} MCI_STATUS_BITS_COMMON, *PMCI_STATUS_BITS_COMMON; + +// +// WHEA specific implementations of MCI_STATUS register +// Allows for more machine specific granularity +// From: AMD64 Archtecture Programmer's Manual +// Volume 2; Revision 3.29; Chapter 13 +// + +typedef struct _MCI_STATUS_AMD_BITS { + ULONG64 McaErrorCode : 16; + ULONG64 ModelErrorCode : 16; + ULONG64 ImplementationSpecific2 : 11; + ULONG64 Poison : 1; + ULONG64 Deferred : 1; + ULONG64 ImplementationSpecific1 : 12; + ULONG64 ContextCorrupt : 1; + ULONG64 AddressValid : 1; + ULONG64 MiscValid : 1; + ULONG64 ErrorEnabled : 1; + ULONG64 UncorrectedError : 1; + ULONG64 StatusOverFlow : 1; + ULONG64 Valid : 1; +} MCI_STATUS_AMD_BITS, *PMCI_STATUS_AMD_BITS; + +// +// From: Intel 64 and IA-32 Architectures SDM +// Volume 3B; December 2017; Chapter 15 +// + +typedef struct _MCI_STATUS_INTEL_BITS { + ULONG64 McaErrorCode : 16; + ULONG64 ModelErrorCode : 16; + ULONG64 OtherInfo : 5; + ULONG64 FirmwareUpdateError : 1; + ULONG64 CorrectedErrorCount : 15; + ULONG64 ThresholdErrorStatus : 2; + ULONG64 ActionRequired : 1; + ULONG64 Signalling : 1; + ULONG64 ContextCorrupt : 1; + ULONG64 AddressValid : 1; + ULONG64 MiscValid : 1; + ULONG64 ErrorEnabled : 1; + ULONG64 UncorrectedError : 1; + ULONG64 StatusOverFlow : 1; + ULONG64 Valid : 1; +} MCI_STATUS_INTEL_BITS, *PMCI_STATUS_INTEL_BITS; + +typedef union _MCI_STATUS { + MCI_STATUS_BITS_COMMON CommonBits; + MCI_STATUS_AMD_BITS AmdBits; + MCI_STATUS_INTEL_BITS IntelBits; + ULONG64 QuadPart; +} MCI_STATUS, *PMCI_STATUS; + +typedef enum _WHEA_CPU_VENDOR { + WheaCpuVendorOther = 0, + WheaCpuVendorIntel, + WheaCpuVendorAmd +} WHEA_CPU_VENDOR, *PWHEA_CPU_VENDOR; + +#define WHEA_XPF_MCA_EXTREG_MAX_COUNT 24 +#define WHEA_XPF_MCA_SECTION_VERSION_2 2 +#define WHEA_XPF_MCA_SECTION_VERSION_3 3 +#define WHEA_XPF_MCA_SECTION_VERSION_4 4 +#define WHEA_XPF_MCA_SECTION_VERSION WHEA_XPF_MCA_SECTION_VERSION_4 +#define WHEA_AMD_EXT_REG_NUM 10 +#define WHEA_XPF_MCA_EXBANK_COUNT 32 + +// +// NOTE: You must update WHEA_AMD_EXT_REG_NUM if you add additional registers +// to this struct to keep the size the same. +// + +typedef struct _WHEA_AMD_EXTENDED_REGISTERS { + ULONGLONG IPID; + ULONGLONG SYND; + ULONGLONG CONFIG; + ULONGLONG DESTAT; + ULONGLONG DEADDR; + ULONGLONG MISC1; + ULONGLONG MISC2; + ULONGLONG MISC3; + ULONGLONG MISC4; + ULONGLONG RasCap; + ULONGLONG Reserved[WHEA_XPF_MCA_EXTREG_MAX_COUNT - WHEA_AMD_EXT_REG_NUM]; +} WHEA_AMD_EXTENDED_REGISTERS, *PWHEA_AMD_EXTENDED_REGISTERS; + +typedef struct _XPF_RECOVERY_INFO { + struct { + UINT32 NotSupported : 1; + UINT32 Overflow : 1; + UINT32 ContextCorrupt : 1; + UINT32 RestartIpErrorIpNotValid : 1; + UINT32 NoRecoveryContext : 1; + UINT32 MiscOrAddrNotValid : 1; + UINT32 InvalidAddressMode : 1; + UINT32 HighIrql : 1; + UINT32 InterruptsDisabled : 1; + UINT32 SwapBusy : 1; + UINT32 StackOverflow : 1; + UINT32 Reserved : 21; + } FailureReason; + + struct { + UINT32 RecoveryAttempted : 1; + UINT32 HvHandled : 1; + UINT32 Reserved : 30; + } Action; + + BOOLEAN ActionRequired; + BOOLEAN RecoverySucceeded; + BOOLEAN RecoveryKernel; + UINT8 Reserved; + UINT16 Reserved2; + UINT16 Reserved3; + UINT32 Reserved4; +} XPF_RECOVERY_INFO, *PXPF_RECOVERY_INFO; + +typedef struct _WHEA_XPF_MCA_SECTION { + ULONG VersionNumber; + WHEA_CPU_VENDOR CpuVendor; + LARGE_INTEGER Timestamp; + ULONG ProcessorNumber; + MCG_STATUS GlobalStatus; + ULONGLONG InstructionPointer; + ULONG BankNumber; + MCI_STATUS Status; + ULONGLONG Address; + ULONGLONG Misc; + ULONG ExtendedRegisterCount; + ULONG ApicId; + union { + ULONGLONG ExtendedRegisters[WHEA_XPF_MCA_EXTREG_MAX_COUNT]; + WHEA_AMD_EXTENDED_REGISTERS AMDExtendedRegisters; + }; + MCG_CAP GlobalCapability; + + // + // Version 3 Fields follow. + // + + XPF_RECOVERY_INFO RecoveryInfo; + + // + // Version 4 Fields follow. + // + + ULONG ExBankCount; + ULONG BankNumberEx[WHEA_XPF_MCA_EXBANK_COUNT]; + MCI_STATUS StatusEx[WHEA_XPF_MCA_EXBANK_COUNT]; + ULONGLONG AddressEx[WHEA_XPF_MCA_EXBANK_COUNT]; + ULONGLONG MiscEx[WHEA_XPF_MCA_EXBANK_COUNT]; +} WHEA_XPF_MCA_SECTION, *PWHEA_XPF_MCA_SECTION; + +//------------------------------------------------------ WHEA_NMI_ERROR_SECTION + +typedef union _WHEA_NMI_ERROR_SECTION_FLAGS { + struct { + ULONG HypervisorError:1; + ULONG Reserved:31; + } DUMMYSTRUCTNAME; + ULONG AsULONG; +} WHEA_NMI_ERROR_SECTION_FLAGS, *PWHEA_NMI_ERROR_SECTION_FLAGS; + +typedef struct _WHEA_NMI_ERROR_SECTION { + UCHAR Data[8]; + WHEA_NMI_ERROR_SECTION_FLAGS Flags; +} WHEA_NMI_ERROR_SECTION, *PWHEA_NMI_ERROR_SECTION; + +//------------------------------------------------------ WHEA_MSR_DUMP_SECTION + +typedef struct _WHEA_MSR_DUMP_SECTION { + UCHAR MsrDumpBuffer; + ULONG MsrDumpLength; + UCHAR MsrDumpData[1]; +} WHEA_MSR_DUMP_SECTION, *PWHEA_MSR_DUMP_SECTION; + +//------------------------------------------------------ MU_TELEMETRY_SECTION + +typedef struct _MU_TELEMETRY_SECTION { + GUID ComponentID; + GUID SubComponentID; + UINT32 Reserved; + UINT32 ErrorStatusValue; + UINT64 AdditionalInfo1; + UINT64 AdditionalInfo2; +} MU_TELEMETRY_SECTION, *PMU_TELEMETRY_SECTION; + +//------------------------------------------------------ WHEA_ARM_PROCESSOR_ERROR_SECTION + +typedef union _WHEA_ARM_PROCESSOR_ERROR_SECTION_VALID_BITS { + struct { + ULONG MPIDR:1; + ULONG AffinityLevel:1; + ULONG RunningState:1; + ULONG VendorSpecificInfo:1; + ULONG Reserved:28; + } DUMMYSTRUCTNAME; + ULONG AsULONG; +} WHEA_ARM_PROCESSOR_ERROR_SECTION_VALID_BITS, + *PWHEA_ARM_PROCESSOR_ERROR_SECTION_VALID_BITS; + +typedef struct _WHEA_ARM_PROCESSOR_ERROR_SECTION { + WHEA_ARM_PROCESSOR_ERROR_SECTION_VALID_BITS ValidBits; + USHORT ErrorInformationStructures; + USHORT ContextInformationStructures; + ULONG SectionLength; + UCHAR ErrorAffinityLevel; + UCHAR Reserved[3]; + ULONGLONG MPIDR_EL1; + ULONGLONG MIDR_EL1; + ULONG RunningState; + ULONG PSCIState; + UCHAR Data[1]; +} WHEA_ARM_PROCESSOR_ERROR_SECTION, *PWHEA_ARM_PROCESSOR_ERROR_SECTION; + +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, ValidBits, 0, 4); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, ErrorInformationStructures, 4, 2); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, ContextInformationStructures, 6, 2); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, SectionLength, 8, 4); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, ErrorAffinityLevel, 12, 1); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, Reserved, 13, 3); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, MPIDR_EL1, 16, 8); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, MIDR_EL1, 24, 8); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, RunningState, 32, 4); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, PSCIState, 36, 4); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_SECTION, Data, 40, 1); + +//--------------------------------------------------------------- ERROR RECOVERY_INFO_SECTION + +typedef enum _WHEA_RECOVERY_TYPE { + WheaRecoveryTypeActionRequired = 1, + WheaRecoveryTypeActionOptional, + WheaRecoveryTypeMax +} WHEA_RECOVERY_TYPE, *PWHEA_RECOVERY_TYPE; + +typedef union _WHEA_RECOVERY_ACTION { + struct { + UINT64 NoneAttempted : 1; + UINT64 TerminateProcess : 1; + UINT64 ForwardedToVm : 1; + UINT64 MarkPageBad : 1; + UINT64 PoisonNotPresent :1; + UINT64 Reserved : 59; + } DUMMYSTRUCTNAME; + + UINT64 AsUINT64; +} WHEA_RECOVERY_ACTION, *PWHEA_RECOVERY_ACTION; + +typedef enum _WHEA_RECOVERY_FAILURE_REASON { + WheaRecoveryFailureReasonKernelCouldNotMarkMemoryBad = 1, + WheaRecoveryFailureReasonKernelMarkMemoryBadTimedOut, + WheaRecoveryFailureReasonNoRecoveryContext, + WheaRecoveryFailureReasonNotContinuable, + WheaRecoveryFailureReasonPcc, + WheaRecoveryFailureReasonOverflow, + WheaRecoveryFailureReasonNotSupported, + WheaRecoveryFailureReasonMiscOrAddrNotValid, + WheaRecoveryFailureReasonInvalidAddressMode, + WheaRecoveryFailureReasonHighIrql, + WheaRecoveryFailureReasonInsufficientAltContextWrappers, + WheaRecoveryFailureReasonInterruptsDisabled, + WheaRecoveryFailureReasonSwapBusy, + WheaRecoveryFailureReasonStackOverflow, + WheaRecoveryFailureReasonUnexpectedFailure, + WheaRecoveryFailureReasonKernelWillPageFaultBCAtCurrentIrql, + WheaRecoveryFailureReasonFarNotValid, + WheaRecoveryFailureReasonMax +} WHEA_RECOVERY_FAILURE_REASON, *PWHEA_RECOVERY_FAILURE_REASON; + +typedef struct _WHEA_ERROR_RECOVERY_INFO_SECTION { + BOOLEAN RecoveryKernel; + WHEA_RECOVERY_ACTION RecoveryAction; + WHEA_RECOVERY_TYPE RecoveryType; + KIRQL Irql; + BOOLEAN RecoverySucceeded; + WHEA_RECOVERY_FAILURE_REASON FailureReason; + CCHAR ProcessName[20]; +} WHEA_ERROR_RECOVERY_INFO_SECTION, *PWHEA_ERROR_RECOVERY_INFO_SECTION; + +//------------------------------------------------------ WHEA_ARM_PROCESSOR_ERROR_INFORMATION + +typedef union _WHEA_ARM_PROCESSOR_ERROR_INFORMATION_VALID_BITS { + struct { + USHORT MultipleError:1; + USHORT Flags:1; + USHORT ErrorInformation:1; + USHORT VirtualFaultAddress:1; + USHORT PhysicalFaultAddress:1; + USHORT Reserved:11; + } DUMMYSTRUCTNAME; + USHORT AsUSHORT; +} WHEA_ARM_PROCESSOR_ERROR_INFORMATION_VALID_BITS, + *PWHEA_ARM_PROCESSOR_ERROR_INFORMATION_VALID_BITS; + +typedef union _WHEA_ARM_CACHE_ERROR_VALID_BITS { + struct { + USHORT TransactionType:1; + USHORT Operation:1; + USHORT Level:1; + USHORT ProcessorContextCorrupt:1; + USHORT Corrected:1; + USHORT PrecisePC:1; + USHORT RestartablePC:1; + USHORT Reserved:9; + } DUMMYSTRUCTNAME; + USHORT AsUSHORT; +} WHEA_ARM_CACHE_ERROR_VALID_BITS, *PWHEA_ARM_CACHE_ERROR_VALID_BITS; + +typedef struct _WHEA_ARM_CACHE_ERROR { + WHEA_ARM_CACHE_ERROR_VALID_BITS ValidationBit; + UCHAR TransactionType:2; + UCHAR Operation:4; + UCHAR Level:3; + UCHAR ProcessorContextCorrupt:1; + UCHAR Corrected:1; + UCHAR PrecisePC:1; + UCHAR RestartablePC:1; + ULONGLONG Reserved:35; +} WHEA_ARM_CACHE_ERROR, *PWHEA_ARM_CACHE_ERROR; + +typedef union _WHEA_ARM_TLB_ERROR_VALID_BITS { + struct { + USHORT TransactionType:1; + USHORT Operation:1; + USHORT Level:1; + USHORT ProcessorContextCorrupt:1; + USHORT Corrected:1; + USHORT PrecisePC:1; + USHORT RestartablePC:1; + USHORT Reserved:9; + } DUMMYSTRUCTNAME; + USHORT AsUSHORT; +} WHEA_ARM_TLB_ERROR_VALID_BITS, *PWHEA_ARM_TLB_ERROR_VALID_BITS; + +typedef struct _WHEA_ARM_TLB_ERROR { + WHEA_ARM_TLB_ERROR_VALID_BITS ValidationBit; + UCHAR TransactionType:2; + UCHAR Operation:4; + UCHAR Level:3; + UCHAR ProcessorContextCorrupt:1; + UCHAR Corrected:1; + UCHAR PrecisePC:1; + UCHAR RestartablePC:1; + ULONGLONG Reserved:36; +} WHEA_ARM_TLB_ERROR, *PWHEA_ARM_TLB_ERROR; + +typedef union _WHEA_ARM_BUS_ERROR_VALID_BITS { + struct { + USHORT TransactionType:1; + USHORT Operation:1; + USHORT Level:1; + USHORT ProcessorContextCorrupt:1; + USHORT Corrected:1; + USHORT PrecisePC:1; + USHORT RestartablePC:1; + USHORT ParticipationType:1; + USHORT Timeout:1; + USHORT AddressSpace:1; + USHORT MemoryAttributes:1; + USHORT AccessMode:1; + USHORT Reserved:4; + } DUMMYSTRUCTNAME; + USHORT AsUSHORT; +} WHEA_ARM_BUS_ERROR_VALID_BITS, *PWHEA_ARM_BUS_ERROR_VALID_BITS; + +typedef struct _WHEA_ARM_BUS_ERROR { + WHEA_ARM_BUS_ERROR_VALID_BITS ValidationBit; + UCHAR TransactionType:2; + UCHAR Operation:4; + UCHAR Level:3; + UCHAR ProcessorContextCorrupt:1; + UCHAR Corrected:1; + UCHAR PrecisePC:1; + UCHAR RestartablePC:1; + UCHAR ParticipationType:2; + UCHAR TimeOut:1; + UCHAR AddressSpace:2; + USHORT MemoryAccessAttributes:9; + UCHAR AccessMode:1; + ULONG Reserved:20; +} WHEA_ARM_BUS_ERROR, *PWHEA_ARM_BUS_ERROR; + +typedef union _WHEA_ARM_PROCESSOR_ERROR { + WHEA_ARM_CACHE_ERROR CacheError; + WHEA_ARM_TLB_ERROR TlbError; + WHEA_ARM_BUS_ERROR BusError; + ULONGLONG AsULONGLONG; +} WHEA_ARM_PROCESSOR_ERROR, *PWHEA_ARM_PROCESSOR_ERROR; + +typedef struct _WHEA_ARM_PROCESSOR_ERROR_INFORMATION { + UCHAR Version; + UCHAR Length; + WHEA_ARM_PROCESSOR_ERROR_INFORMATION_VALID_BITS ValidationBit; + UCHAR Type; + USHORT MultipleError; + UCHAR Flags; + ULONGLONG ErrorInformation; + ULONGLONG VirtualFaultAddress; + ULONGLONG PhysicalFaultAddress; +} WHEA_ARM_PROCESSOR_ERROR_INFORMATION, *PWHEA_ARM_PROCESSOR_ERROR_INFORMATION; + +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_INFORMATION, Version, 0, 1); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_INFORMATION, Length, 1, 1); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_INFORMATION, ValidationBit, 2, 2); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_INFORMATION, Type, 4, 1); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_INFORMATION, MultipleError, 5, 2); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_INFORMATION, Flags, 7, 1); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_INFORMATION, ErrorInformation, 8, 8); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_INFORMATION, VirtualFaultAddress, 16, 8); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_INFORMATION, PhysicalFaultAddress, 24, 8); + +//------------------------------------------------------ WHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER + +typedef union _WHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER_FLAGS { + struct { + ULONG ExceptionLevel:1; + ULONG NonSecure:1; + ULONG AArch64:1; + ULONG Reserved:29; + } DUMMYSTRUCTNAME; + ULONG AsULONG; +} WHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER_FLAGS, + *PWHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER_FLAGS; + +typedef struct _WHEA_ARMV8_AARCH32_GPRS { + ULONG R0; + ULONG R1; + ULONG R2; + ULONG R3; + ULONG R4; + ULONG R5; + ULONG R6; + ULONG R7; + ULONG R8; + ULONG R9; + ULONG R10; + ULONG R11; + ULONG R12; + ULONG R13; // SP + ULONG R14; // LR + ULONG R15; // PC +} WHEA_ARMV8_AARCH32_GPRS, *PWHEA_ARMV8_AARCH32_GPRS; + +typedef struct _WHEA_ARM_AARCH32_EL1_CSR { + ULONG DFAR; + ULONG DFSR; + ULONG IFAR; + ULONG ISR; + ULONG MAIR0; + ULONG MAIR1; + ULONG MIDR; + ULONG MPIDR; + ULONG NMRR; + ULONG PRRR; + ULONG SCTLR; // NS + ULONG SPSR; + ULONG SPSR_abt; + ULONG SPSR_fiq; + ULONG SPSR_irq; + ULONG SPSR_svc; + ULONG SPSR_und; + ULONG TPIDRPRW; + ULONG TPIDRURO; + ULONG TPIDRURW; + ULONG TTBCR; + ULONG TTBR0; + ULONG TTBR1; + ULONG DACR; +} WHEA_ARM_AARCH32_EL1_CSR, *PWHEA_ARM_AARCH32_EL1; + +typedef struct _WHEA_ARM_AARCH32_EL2_CSR { + ULONG ELR_hyp; + ULONG HAMAIR0; + ULONG HAMAIR1; + ULONG HCR; + ULONG HCR2; + ULONG HDFAR; + ULONG HIFAR; + ULONG HPFAR; + ULONG HSR; + ULONG HTCR; + ULONG HTPIDR; + ULONG HTTBR; + ULONG SPSR_hyp; + ULONG VTCR; + ULONG VTTBR; + ULONG DACR32_EL2; +} WHEA_ARM_AARCH32_EL2_CSR, *PWHEA_ARM_AARCH32_EL2_CSR; + +typedef struct _WHEA_ARM_AARCH32_SECURE_CSR { + ULONG SCTLR; + ULONG SPSR_mon; +} WHEA_ARM_AARCH32_SECURE_CSR, *PWHEA_ARM_AARCH32_SECURE_CSR; + +typedef struct _WHEA_ARMV8_AARCH64_GPRS { + ULONGLONG X0; + ULONGLONG X1; + ULONGLONG X2; + ULONGLONG X3; + ULONGLONG X4; + ULONGLONG X5; + ULONGLONG X6; + ULONGLONG X7; + ULONGLONG X8; + ULONGLONG X9; + ULONGLONG X10; + ULONGLONG X11; + ULONGLONG X12; + ULONGLONG X13; + ULONGLONG X14; + ULONGLONG X15; + ULONGLONG X16; + ULONGLONG X17; + ULONGLONG X18; + ULONGLONG X19; + ULONGLONG X20; + ULONGLONG X21; + ULONGLONG X22; + ULONGLONG X23; + ULONGLONG X24; + ULONGLONG X25; + ULONGLONG X26; + ULONGLONG X27; + ULONGLONG X28; + ULONGLONG X29; + ULONGLONG X30; + ULONGLONG SP; +} WHEA_ARMV8_AARCH64_GPRS, *PWHEA_ARMV8_AARCH64_GPRS; + +typedef struct _WHEA_ARM_AARCH64_EL1_CSR { + ULONGLONG ELR_EL1; + ULONGLONG ESR_EL2; + ULONGLONG FAR_EL1; + ULONGLONG ISR_EL1; + ULONGLONG MAIR_EL1; + ULONGLONG MIDR_EL1; + ULONGLONG MPIDR_EL1; + ULONGLONG SCTLR_EL1; + ULONGLONG SP_EL0; + ULONGLONG SP_EL1; + ULONGLONG SPSR_EL1; + ULONGLONG TCR_EL1; + ULONGLONG TPIDR_EL0; + ULONGLONG TPIDR_EL1; + ULONGLONG TPIDRRO_EL0; + ULONGLONG TTBR0_EL1; + ULONGLONG TTBR1_EL1; +} WHEA_ARM_AARCH64_EL1_CSR, *PWHEA_ARM_AARCH64_EL1_CSR; + +typedef struct _WHEA_ARM_AARCH64_EL2_CSR { + ULONGLONG ELR_EL2; + ULONGLONG ESR_EL2; + ULONGLONG FAR_EL2; + ULONGLONG HACR_EL2; + ULONGLONG HCR_EL2; + ULONGLONG HPFAR_EL2; + ULONGLONG MAIR_EL2; + ULONGLONG SCTLR_EL2; + ULONGLONG SP_EL2; + ULONGLONG SPSR_EL2; + ULONGLONG TCR_EL2; + ULONGLONG TPIDR_EL2; + ULONGLONG TTBR0_EL2; + ULONGLONG VTCR_EL2; + ULONGLONG VTTBR_EL2; +} WHEA_ARM_AARCH64_EL2_CSR, *PWHEA_ARM_AARCH64_EL2_CSR; + +typedef struct _WHEA_ARMV8_AARCH64_EL3_CSR { + ULONGLONG ELR_EL3; + ULONGLONG ESR_EL3; + ULONGLONG FAR_EL3; + ULONGLONG MAIR_EL3; + ULONGLONG SCTLR_EL3; + ULONGLONG SP_EL3; + ULONGLONG SPSR_EL3; + ULONGLONG TCR_EL3; + ULONGLONG TPIDR_EL3; + ULONGLONG TTBR0_EL3; +} WHEA_ARMV8_AARCH64_EL3_CSR, *PWHEA_ARMV8_AARCH64_EL3_CSR; + +typedef struct _WHEA_ARM_MISC_CSR { + USHORT MRSEncoding; + ULONGLONG Value; +} WHEA_ARM_MISC_CSR, *PWHEA_ARM_MISC_CSR; + +typedef struct _WHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER { + USHORT Version; + USHORT RegisterContextType; + ULONG RegisterArraySize; + UCHAR RegisterArray[1]; +} WHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER, + *PWHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER; + +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER, Version, 0, 2); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER, RegisterContextType, 2, 2); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER, RegisterArraySize, 4, 4); +CPER_FIELD_CHECK(WHEA_ARM_PROCESSOR_ERROR_CONTEXT_INFORMATION_HEADER, RegisterArray, 8, 1); + +// ----------------------------------------------------------------- SEA Section + +typedef struct _WHEA_SEA_SECTION { + ULONG Esr; + ULONG64 Far; + ULONG64 Par; + BOOLEAN WasKernel; +} WHEA_SEA_SECTION, *PWHEA_SEA_SECTION; + +typedef struct _WHEA_SEI_SECTION { + ULONG Esr; + ULONG64 Far; +} WHEA_SEI_SECTION, *PWHEA_SEI_SECTION; + +// -------------------------------------------------------- Arm RAS Node Section + +typedef struct _WHEA_ARM_RAS_NODE_SECTION { + UINT32 NodeFieldCount; + UINT32 NodeIndex; + UINT8 InterfaceType; + UINT8 AestNodeType; + UINT8 Reserved[6]; + // Fields as defined in the Arm RAS extensions version 8.6 (ARM DDI 0587) + UINT64 ErrFr; + UINT64 ErrCtlr; + UINT64 ErrStatus; + UINT64 ErrAddr; + UINT64 ErrMisc0; + UINT64 ErrMisc1; + UINT64 ErrMisc2; + UINT64 ErrMisc3; +} WHEA_ARM_RAS_NODE_SECTION, *PWHEA_ARM_RAS_NODE_SECTION; + +// +// To make ensure backwards compatability in the future the number of node field's +// is recorded. This allows expanding the section on new machines without breaking +// parsing for older generations. +// + +#define WHEA_ARM_RAS_NODE_FIELD_COUNT 8 + +// +// Interface types possible for Arm Ras Nodes, as defined in the AEST ACPI table +// definition in "ACPI for the Armv8 RAS Extenstions" (Document Number DEN0085) +// + +typedef enum _WHEA_ARM_RAS_NODE_INTERFACES { + WheaArmRasNodeInterfaceSystemRegister = 0, + WheaArmRasNodeInterfaceMmio = 1 +} WHEA_ARM_RAS_NODE_INTERFACES, *PWHEA_ARM_RAS_NODE_INTERFACES; + +// -------------------------------------------------------- PCI Recovery Section + +typedef enum _WHEA_PCI_RECOVERY_SIGNAL { + WheaPciRecoverySignalUnknown = 0, + WheaPciRecoverySignalAer, + WheaPciRecoverySignalDpc +}WHEA_PCI_RECOVERY_SIGNAL, *PWHEA_PCI_RECOVERY_SIGNAL; + +typedef enum _WHEA_PCI_RECOVERY_STATUS { + WheaPciREcoveryStatusUnknown = 0, + WheaPciRecoveryStatusNoError, + WheaPciRecoveryStatusLinkDisableTimeout, + WheaPciRecoveryStatusLinkEnableTimeout, + WheaPciRecoveryStatusRpBusyTimeout, + WheaPciRecoveryStatusComplexTree, + WheaPciRecoveryStatusBusNotFound, + WheaPciRecoveryStatusDeviceNotFound, + WheaPciRecoveryStatusDdaAerNotRecoverable, + WheaPciRecoveryStatusFailedRecovery, +}WHEA_PCI_RECOVERY_STATUS, *PWHEA_PCI_RECOVERY_STATUS; + +typedef struct _WHEA_PCI_RECOVERY_SECTION { + UINT8 SignalType; + BOOLEAN RecoveryAttempted; + UINT8 RecoveryStatus; +} WHEA_PCI_RECOVERY_SECTION, *PWHEA_PCI_RECOVERY_SECTION; + +#include + +#pragma warning(pop) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // #ifndef _CPER_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cperguid.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cperguid.h new file mode 100644 index 0000000000000000000000000000000000000000..5dcf07ab1bf9ddbff0ae2b685ff839a67a78927b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cperguid.h @@ -0,0 +1,315 @@ +/*++ + +Copyright (c) 2007 Microsoft Corporation + +Module Name: + + cperguid.h + +Abstract: + + This header file defines the GUID constants for the Common Platform Error + Record as defined in Appendix N of the Unified Extensible Firmware Interface + (UEFI) specification (revision 2.1). + + This specification as well as any approved errata may be obtained from + http://www.uefi.org. + + This header file also includes Microsoft specific extensions to the Common + Platform Error Record as allowed by Appendix N, Section 2.3 of the Unified + Extensible Firmware Interface specification (Non-standard Section Body). + +--*/ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +//-------------------------------------- Standard Error Notification Type GUIDs + +/* 2dce8bb1-bdd7-450e-b9ad-9cf4ebd4f890 */ +DEFINE_GUID(CMC_NOTIFY_TYPE_GUID, + 0x2dce8bb1, 0xbdd7, 0x450e, 0xb9, 0xad, + 0x9c, 0xf4, 0xeb, 0xd4, 0xf8, 0x90); + +/* 4e292f96-d843-4a55-a8c2-d481f27ebeee */ +DEFINE_GUID(CPE_NOTIFY_TYPE_GUID, + 0x4e292f96, 0xd843, 0x4a55, 0xa8, 0xc2, + 0xd4, 0x81, 0xf2, 0x7e, 0xbe, 0xee); + +/* e8f56ffe-919c-4cc5-ba88-65abe14913bb */ +DEFINE_GUID(MCE_NOTIFY_TYPE_GUID, + 0xe8f56ffe, 0x919c, 0x4cc5, 0xba, 0x88, + 0x65, 0xab, 0xe1, 0x49, 0x13, 0xbb); + +/* cf93c01f-1a16-4dfc-b8bc-9c4daf67c104 */ +DEFINE_GUID(PCIe_NOTIFY_TYPE_GUID, + 0xcf93c01f, 0x1a16, 0x4dfc, 0xb8, 0xbc, + 0x9c, 0x4d, 0xaf, 0x67, 0xc1, 0x04); + +/* cc5263e8-9308-454a-89d0-340bd39bc98e */ +DEFINE_GUID(INIT_NOTIFY_TYPE_GUID, + 0xcc5263e8, 0x9308, 0x454a, 0x89, 0xd0, + 0x34, 0x0b, 0xd3, 0x9b, 0xc9, 0x8e); + +/* 5bad89ff-b7e6-42c9-814a-cf2485d6e98a */ +DEFINE_GUID(NMI_NOTIFY_TYPE_GUID, + 0x5bad89ff, 0xb7e6, 0x42c9, 0x81, 0x4a, + 0xcf, 0x24, 0x85, 0xd6, 0xe9, 0x8a); + +/* 3d61a466-ab40-409a-a698-f362d464b38f */ +DEFINE_GUID(BOOT_NOTIFY_TYPE_GUID, + 0x3d61a466, 0xab40, 0x409a, 0xa6, 0x98, + 0xf3, 0x62, 0xd4, 0x64, 0xb3, 0x8f); + +/* 9a78788a-bbe8-11e4-809e-67611e5d46b0 */ +DEFINE_GUID(SEA_NOTIFY_TYPE_GUID, + 0x9a78788a, 0xbbe8, 0x11e4, 0x80, 0x9e, + 0x67, 0x61, 0x1e, 0x5d, 0x46, 0xb0); + +/* 5c284c81-b0ae-4e87-a322-b04c85624323 */ +DEFINE_GUID(SEI_NOTIFY_TYPE_GUID, + 0x5c284c81, 0xb0ae, 0x4e87, 0xa3, 0x22, + 0xb0, 0x4c, 0x85, 0x62, 0x43, 0x23); + +/* 09a9d5ac-5204-4214-96e5-94992e752bcd */ +DEFINE_GUID(PEI_NOTIFY_TYPE_GUID, + 0x09a9D5ac, 0x5204, 0x4214, 0x96, 0xe5, + 0x94, 0x99, 0x2e, 0x75, 0x2b, 0xcd); + +/* 487565ba-6494-4367-95ca-4eff893522f6 */ +DEFINE_GUID(BMC_NOTIFY_TYPE_GUID, + 0x487565ba, 0x6494, 0x4367, 0x95, 0xca, + 0x4e, 0xff, 0x89, 0x35, 0x22, 0xf6); + +/* e9d59197-94ee-4a4f-8ad8-9b7d8bd93d2e */ +DEFINE_GUID(SCI_NOTIFY_TYPE_GUID, + 0xe9d59197, 0x94ee, 0x4a4f, 0x8a, 0xd8, + 0x9b, 0x7d, 0x8b, 0xd9, 0x3d, 0x2e); + +/* fe84086e-b557-43cf-ac1b-17982e078470 */ +DEFINE_GUID(EXTINT_NOTIFY_TYPE_GUID, + 0xfe84086e, 0xb557, 0x43cf, 0xac, 0x1b, + 0x17, 0x98, 0x2e, 0x07, 0x84, 0x70); + +/* 0033f803-2e70-4e88-992c-6f26daf3db7a */ +DEFINE_GUID(DEVICE_DRIVER_NOTIFY_TYPE_GUID, + 0x0033f803, 0x2e70, 0x4e88, 0x99, 0x2c, + 0x6f, 0x26, 0xda, 0xf3, 0xdb, 0x7a); + +/* 919448b2-3739-4b7f-a8f1-e0062805c2a3 */ +DEFINE_GUID(CMCI_NOTIFY_TYPE_GUID, + 0x919448b2, 0x3739, 0x4b7f, 0xa8, 0xf1, + 0xe0, 0x06, 0x28, 0x05, 0xc2, 0xa3); + +//------------------------------------------- Summary Error Section type GUIDs + +/* 990b31e9-541a-4db0-a42f-837d344f6923 */ +DEFINE_GUID(WHEA_DEVICE_ERROR_SUMMARY_GUID, + 0x990b31e9, 0x541a, 0x4db0, 0xa4, 0x2f, + 0x83, 0x7d, 0x34, 0x4f, 0x69, 0x23); + +//------------------------------------------- Standard Error Section type GUIDs + +/* 9876ccad-47b4-4bdb-b65e-16f193c4f3db */ +DEFINE_GUID(PROCESSOR_GENERIC_ERROR_SECTION_GUID, + 0x9876ccad, 0x47b4, 0x4bdb, 0xb6, 0x5e, + 0x16, 0xf1, 0x93, 0xc4, 0xf3, 0xdb); + +/* dc3ea0b0-a144-4797-b95b-53fa242b6e1d */ +DEFINE_GUID(XPF_PROCESSOR_ERROR_SECTION_GUID, + 0xdc3ea0b0, 0xa144, 0x4797, 0xb9, 0x5b, + 0x53, 0xfa, 0x24, 0x2b, 0x6e, 0x1d); + +/* e429faf1-3cb7-11d4-bca7-0080c73c8881 */ +DEFINE_GUID(IPF_PROCESSOR_ERROR_SECTION_GUID, + 0xe429faf1, 0x3cb7, 0x11d4, 0xbc, 0xa7, + 0x00, 0x80, 0xc7, 0x3c, 0x88, 0x81); + +/* e19e3d16-bc11-11e4-9caa-c2051d5d46b0 */ +DEFINE_GUID(ARM_PROCESSOR_ERROR_SECTION_GUID, + 0xe19e3d16, 0xbc11, 0x11e4, 0x9c, 0xaa, + 0xc2, 0x05, 0x1d, 0x5d, 0x46, 0xb0); + +/* a5bc1114-6f64-4ede-b863-3e83ed7c83b1 */ +DEFINE_GUID(MEMORY_ERROR_SECTION_GUID, + 0xa5bc1114, 0x6f64, 0x4ede, 0xb8, 0x63, + 0x3e, 0x83, 0xed, 0x7c, 0x83, 0xb1); + +/* d995e954-bbc1-430f-ad91-b44dcb3c6f35 */ +DEFINE_GUID(PCIEXPRESS_ERROR_SECTION_GUID, + 0xd995e954, 0xbbc1, 0x430f, 0xad, 0x91, + 0xb4, 0x4d, 0xcb, 0x3c, 0x6f, 0x35); + +/* c5753963-3b84-4095-bf78-eddad3f9c9dd */ +DEFINE_GUID(PCIXBUS_ERROR_SECTION_GUID, + 0xc5753963, 0x3b84, 0x4095, 0xbf, 0x78, + 0xed, 0xda, 0xd3, 0xf9, 0xc9, 0xdd); + +/* eb5e4685-ca66-4769-b6a2-26068b001326 */ +DEFINE_GUID(PCIXDEVICE_ERROR_SECTION_GUID, + 0xeb5e4685, 0xca66, 0x4769, 0xb6, 0xa2, + 0x26, 0x06, 0x8b, 0x00, 0x13, 0x26); + +/* 81212a96-09ed-4996-9471-8d729c8e69ed */ +DEFINE_GUID(FIRMWARE_ERROR_RECORD_REFERENCE_GUID, + 0x81212a96, 0x09ed, 0x4996, 0x94, 0x71, + 0x8d, 0x72, 0x9c, 0x8e, 0x69, 0xed); + +/* 81687003-dbfd-4728-9ffd-f0904f97597d */ +DEFINE_GUID(PMEM_ERROR_SECTION_GUID, + 0x81687003, 0xdbfd, 0x4728, 0x9f, 0xfd, + 0xf0, 0x90, 0x4f, 0x97, 0x59, 0x7d); + +/* 85183a8b-9c41-429c-939c-5c3c087ca280 */ +DEFINE_GUID(MU_TELEMETRY_SECTION_GUID, + 0x85183a8b, 0x9c41, 0x429c, 0x93, 0x9c, + 0x5c, 0x3c, 0x08, 0x7c, 0xa2, 0x80); + +/* c34832a1-02c3-4c52-a9f1-9f1d5d7723fc */ +DEFINE_GUID(RECOVERY_INFO_SECTION_GUID, + 0xc34832a1, 0x02c3, 0x4c52, 0xa9, 0xf1, + 0x9f, 0x1d, 0x5d, 0x77, 0x23, 0xfc); + +//-------------------------------------- Processor check information type GUIDs + +/* a55701f5-e3ef-43de-ac72-249b573fad2c */ +DEFINE_GUID(WHEA_CACHECHECK_GUID, + 0xa55701f5, 0xe3ef, 0x43de, 0xac, 0x72, + 0x24, 0x9b, 0x57, 0x3f, 0xad, 0x2c); + +/* fc06b535-5e1f-4562-9f25-0a3b9adb63c3 */ +DEFINE_GUID(WHEA_TLBCHECK_GUID, + 0xfc06b535, 0x5e1f, 0x4562, 0x9f, 0x25, + 0x0a, 0x3b, 0x9a, 0xdb, 0x63, 0xc3); + +/* 1cf3f8b3-c5b1-49a2-aa59-5eef92ffa63c */ +DEFINE_GUID(WHEA_BUSCHECK_GUID, + 0x1cf3f8b3, 0xc5b1, 0x49a2, 0xaa, 0x59, + 0x5e, 0xef, 0x92, 0xff, 0xa6, 0x3c); + +/* 48ab7f57-dc34-4f6c-a7d3-b0b5b0a74314 */ +DEFINE_GUID(WHEA_MSCHECK_GUID, + 0x48ab7f57, 0xdc34, 0x4f6c, 0xa7, 0xd3, + 0xb0, 0xb5, 0xb0, 0xa7, 0x43, 0x14); + +// +// This is the start of the Microsoft specific extensions to the Common Platform +// Error Record specification. This is in accordance with Appendix N, section +// 2.3 of the Unified Extensible Firmware Interface specification, which allows +// the specification of non-standard section bodies. +// + +//---------------------------------------------------- Empty GUID + +/* 00000000-0000-0000-0000-00000000000 */ +DEFINE_GUID(CPER_EMPTY_GUID, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); + +//---------------------------------------------------- Microsoft record creator + +/* cf07c4bd-b789-4e18-b3c4-1f732cb57131 */ +DEFINE_GUID(WHEA_RECORD_CREATOR_GUID, + 0xcf07c4bd, + 0xb789, 0x4e18, + 0xb3, 0xc4, 0x1f, 0x73, 0x2c, 0xb5, 0x71, 0x31); + +//---------------------------------------------------- device driver record creator + +/* 57217c8d-5e66-44fb-8033-9b74cacedf5b */ +DEFINE_GUID(DEFAULT_DEVICE_DRIVER_CREATOR_GUID, + 0x57217c8d, + 0x5e66, 0x44fb, + 0x80, 0x33, 0x9b, 0x74, 0xca, 0xce, 0xdf, 0x5b); + +//--------------------------------------- Microsoft specific notification types + +/* 3e62a467-ab40-409a-a698-f362d464b38f */ +DEFINE_GUID(GENERIC_NOTIFY_TYPE_GUID, + 0x3e62a467, + 0xab40, 0x409a, + 0xa6, 0x98, 0xf3, 0x62, 0xd4, 0x64, 0xb3, 0x8f); + +//-------------------------------------- Microsoft specific error section types + +/* 6f3380d1-6eb0-497f-a578-4d4c65a71617 */ +DEFINE_GUID(IPF_SAL_RECORD_SECTION_GUID, + 0x6f3380d1, + 0x6eb0, 0x497f, + 0xa5, 0x78, 0x4d, 0x4c, 0x65, 0xa7, 0x16, 0x17); + +/* 8a1e1d01-42f9-4557-9c33-565e5cc3f7e8 */ +DEFINE_GUID(XPF_MCA_SECTION_GUID, + 0x8a1e1d01, + 0x42f9, 0x4557, + 0x9c, 0x33, 0x56, 0x5e, 0x5c, 0xc3, 0xf7, 0xe8); + +/* e71254e7-c1b9-4940-ab76-909703a4320f */ +DEFINE_GUID(NMI_SECTION_GUID, + 0xe71254e7, + 0xc1b9, 0x4940, + 0xab, 0x76, 0x90, 0x97, 0x03, 0xa4, 0x32, 0x0f); + +/* e71254e8-c1b9-4940-ab76-909703a4320f */ +DEFINE_GUID(GENERIC_SECTION_GUID, + 0xe71254e8, + 0xc1b9, 0x4940, + 0xab, 0x76, 0x90, 0x97, 0x03, 0xa4, 0x32, 0x0f); + +/* 1c15b445-9b06-4667-ac25-33c056b88803 */ +DEFINE_GUID(IPMI_MSR_DUMP_SECTION_GUID, + 0x1c15b445, + 0x9b06, 0x4667, + 0xac, 0x25, 0x33, 0xc0, 0x56, 0xb8, 0x88, 0x03); + +/* e71254e9-c1b9-4940-ab76-909703a4320f */ +DEFINE_GUID(WHEA_ERROR_PACKET_SECTION_GUID, + 0xe71254e9, + 0xc1b9, 0x4940, + 0xab, 0x76, 0x90, 0x97, 0x03, 0xa4, 0x32, 0x0f); + +/* ec49534b-30e7-4358-972f-eca6958fae3b */ +DEFINE_GUID(WHEA_DPC_CAPABILITY_SECTION_GUID, + 0xec49534b, + 0x30e7, 0x4358, + 0x97, 0x2f, 0xec, 0xa6, 0x95, 0x8f, 0xae, 0x3b); + +/* e96eca99-53e2-4f52-9be7-d2dbe9508ed0 */ +DEFINE_GUID(PCIE_CORRECTABLE_ERROR_SUMMARY_SECTION_GUID, + 0xe96eca99, + 0x53e2, 0x4f52, + 0x9b, 0xe7, 0xd2, 0xdb, 0xe9, 0x50, 0x8e, 0xd0); + +/* 0e36c93e-ca15-4a83-ba8a-cbe80f7f0017 */ +DEFINE_GUID(MEMORY_CORRECTABLE_ERROR_SUMMARY_SECTION_GUID, + 0x0e36c93e, + 0xca15, 0x4a83, + 0xba, 0x8a, 0xcb, 0xe8, 0x0f, 0x7f, 0x00, 0x17); + +/* f5fe48a6-84ce-4c1e-aa64-20c9a53099f1 */ +DEFINE_GUID(SEA_SECTION_GUID, + 0xf5fe48a6, 0x84ce, 0x4c1e, 0xaa, 0x64, + 0x20, 0xc9, 0xa5, 0x30, 0x99, 0xf1); + +/* f2a4a152-9c6d-4020-aecf-7695b389251b */ +DEFINE_GUID(SEI_SECTION_GUID, + 0xf2a4a152, 0x9c6d, 0x4020, 0xae, 0xcf, + 0x76, 0x95, 0xb3, 0x89, 0x25, 0x1b); + +/* dd060800-f6e1-4204-ac27-c4bca9568402 */ +DEFINE_GUID(PCI_RECOVERY_SECTION_GUID, + 0xdd060800, 0xf6e1, 0x4204, 0xac, 0x27, + 0xc4, 0xbc, 0xa9, 0x56, 0x84, 0x02); + +/* e3ebf4a2-df50-4708-b2d7-0b29ec2f7aa9 */ +DEFINE_GUID(ARM_RAS_NODE_SECTION_GUID, + 0xe3ebf4a2, 0xdf50, 0x4708, 0xb2, 0xd7, + 0x0b, 0x29, 0xec, 0x2f, 0x7a, 0xa9); + +/* e16edb28-6113-4263-a41d-e53f8de78751 */ +DEFINE_GUID(MEMORY_ERROR_EXT_SECTION_INTEL_GUID, + 0xe16edb28, 0x6113, 0x4263, 0xa4, 0x1d, + 0xe5, 0x3f, 0x8d, 0xe7, 0x87, 0x51); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/credentialprovider.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/credentialprovider.h new file mode 100644 index 0000000000000000000000000000000000000000..35554d27a461e7182b9ac3a060f947bc223b58e0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/credentialprovider.h @@ -0,0 +1,2881 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __credentialprovider_h__ +#define __credentialprovider_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICredentialProviderCredential_FWD_DEFINED__ +#define __ICredentialProviderCredential_FWD_DEFINED__ +typedef interface ICredentialProviderCredential ICredentialProviderCredential; + +#endif /* __ICredentialProviderCredential_FWD_DEFINED__ */ + + +#ifndef __IQueryContinueWithStatus_FWD_DEFINED__ +#define __IQueryContinueWithStatus_FWD_DEFINED__ +typedef interface IQueryContinueWithStatus IQueryContinueWithStatus; + +#endif /* __IQueryContinueWithStatus_FWD_DEFINED__ */ + + +#ifndef __IConnectableCredentialProviderCredential_FWD_DEFINED__ +#define __IConnectableCredentialProviderCredential_FWD_DEFINED__ +typedef interface IConnectableCredentialProviderCredential IConnectableCredentialProviderCredential; + +#endif /* __IConnectableCredentialProviderCredential_FWD_DEFINED__ */ + + +#ifndef __ICredentialProviderCredentialEvents_FWD_DEFINED__ +#define __ICredentialProviderCredentialEvents_FWD_DEFINED__ +typedef interface ICredentialProviderCredentialEvents ICredentialProviderCredentialEvents; + +#endif /* __ICredentialProviderCredentialEvents_FWD_DEFINED__ */ + + +#ifndef __ICredentialProvider_FWD_DEFINED__ +#define __ICredentialProvider_FWD_DEFINED__ +typedef interface ICredentialProvider ICredentialProvider; + +#endif /* __ICredentialProvider_FWD_DEFINED__ */ + + +#ifndef __ICredentialProviderEvents_FWD_DEFINED__ +#define __ICredentialProviderEvents_FWD_DEFINED__ +typedef interface ICredentialProviderEvents ICredentialProviderEvents; + +#endif /* __ICredentialProviderEvents_FWD_DEFINED__ */ + + +#ifndef __ICredentialProviderFilter_FWD_DEFINED__ +#define __ICredentialProviderFilter_FWD_DEFINED__ +typedef interface ICredentialProviderFilter ICredentialProviderFilter; + +#endif /* __ICredentialProviderFilter_FWD_DEFINED__ */ + + +#ifndef __ICredentialProviderCredential2_FWD_DEFINED__ +#define __ICredentialProviderCredential2_FWD_DEFINED__ +typedef interface ICredentialProviderCredential2 ICredentialProviderCredential2; + +#endif /* __ICredentialProviderCredential2_FWD_DEFINED__ */ + + +#ifndef __ICredentialProviderCredentialWithFieldOptions_FWD_DEFINED__ +#define __ICredentialProviderCredentialWithFieldOptions_FWD_DEFINED__ +typedef interface ICredentialProviderCredentialWithFieldOptions ICredentialProviderCredentialWithFieldOptions; + +#endif /* __ICredentialProviderCredentialWithFieldOptions_FWD_DEFINED__ */ + + +#ifndef __ICredentialProviderCredentialEvents2_FWD_DEFINED__ +#define __ICredentialProviderCredentialEvents2_FWD_DEFINED__ +typedef interface ICredentialProviderCredentialEvents2 ICredentialProviderCredentialEvents2; + +#endif /* __ICredentialProviderCredentialEvents2_FWD_DEFINED__ */ + + +#ifndef __ICredentialProviderUser_FWD_DEFINED__ +#define __ICredentialProviderUser_FWD_DEFINED__ +typedef interface ICredentialProviderUser ICredentialProviderUser; + +#endif /* __ICredentialProviderUser_FWD_DEFINED__ */ + + +#ifndef __ICredentialProviderUserArray_FWD_DEFINED__ +#define __ICredentialProviderUserArray_FWD_DEFINED__ +typedef interface ICredentialProviderUserArray ICredentialProviderUserArray; + +#endif /* __ICredentialProviderUserArray_FWD_DEFINED__ */ + + +#ifndef __ICredentialProviderSetUserArray_FWD_DEFINED__ +#define __ICredentialProviderSetUserArray_FWD_DEFINED__ +typedef interface ICredentialProviderSetUserArray ICredentialProviderSetUserArray; + +#endif /* __ICredentialProviderSetUserArray_FWD_DEFINED__ */ + + +#ifndef __PasswordCredentialProvider_FWD_DEFINED__ +#define __PasswordCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PasswordCredentialProvider PasswordCredentialProvider; +#else +typedef struct PasswordCredentialProvider PasswordCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __PasswordCredentialProvider_FWD_DEFINED__ */ + + +#ifndef __V1PasswordCredentialProvider_FWD_DEFINED__ +#define __V1PasswordCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class V1PasswordCredentialProvider V1PasswordCredentialProvider; +#else +typedef struct V1PasswordCredentialProvider V1PasswordCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __V1PasswordCredentialProvider_FWD_DEFINED__ */ + + +#ifndef __PINLogonCredentialProvider_FWD_DEFINED__ +#define __PINLogonCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PINLogonCredentialProvider PINLogonCredentialProvider; +#else +typedef struct PINLogonCredentialProvider PINLogonCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __PINLogonCredentialProvider_FWD_DEFINED__ */ + + +#ifndef __NPCredentialProvider_FWD_DEFINED__ +#define __NPCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class NPCredentialProvider NPCredentialProvider; +#else +typedef struct NPCredentialProvider NPCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __NPCredentialProvider_FWD_DEFINED__ */ + + +#ifndef __SmartcardCredentialProvider_FWD_DEFINED__ +#define __SmartcardCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SmartcardCredentialProvider SmartcardCredentialProvider; +#else +typedef struct SmartcardCredentialProvider SmartcardCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __SmartcardCredentialProvider_FWD_DEFINED__ */ + + +#ifndef __V1SmartcardCredentialProvider_FWD_DEFINED__ +#define __V1SmartcardCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class V1SmartcardCredentialProvider V1SmartcardCredentialProvider; +#else +typedef struct V1SmartcardCredentialProvider V1SmartcardCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __V1SmartcardCredentialProvider_FWD_DEFINED__ */ + + +#ifndef __SmartcardPinProvider_FWD_DEFINED__ +#define __SmartcardPinProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SmartcardPinProvider SmartcardPinProvider; +#else +typedef struct SmartcardPinProvider SmartcardPinProvider; +#endif /* __cplusplus */ + +#endif /* __SmartcardPinProvider_FWD_DEFINED__ */ + + +#ifndef __SmartcardReaderSelectionProvider_FWD_DEFINED__ +#define __SmartcardReaderSelectionProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SmartcardReaderSelectionProvider SmartcardReaderSelectionProvider; +#else +typedef struct SmartcardReaderSelectionProvider SmartcardReaderSelectionProvider; +#endif /* __cplusplus */ + +#endif /* __SmartcardReaderSelectionProvider_FWD_DEFINED__ */ + + +#ifndef __SmartcardWinRTProvider_FWD_DEFINED__ +#define __SmartcardWinRTProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class SmartcardWinRTProvider SmartcardWinRTProvider; +#else +typedef struct SmartcardWinRTProvider SmartcardWinRTProvider; +#endif /* __cplusplus */ + +#endif /* __SmartcardWinRTProvider_FWD_DEFINED__ */ + + +#ifndef __GenericCredentialProvider_FWD_DEFINED__ +#define __GenericCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GenericCredentialProvider GenericCredentialProvider; +#else +typedef struct GenericCredentialProvider GenericCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __GenericCredentialProvider_FWD_DEFINED__ */ + + +#ifndef __RASProvider_FWD_DEFINED__ +#define __RASProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class RASProvider RASProvider; +#else +typedef struct RASProvider RASProvider; +#endif /* __cplusplus */ + +#endif /* __RASProvider_FWD_DEFINED__ */ + + +#ifndef __OnexCredentialProvider_FWD_DEFINED__ +#define __OnexCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class OnexCredentialProvider OnexCredentialProvider; +#else +typedef struct OnexCredentialProvider OnexCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __OnexCredentialProvider_FWD_DEFINED__ */ + + +#ifndef __OnexPlapSmartcardCredentialProvider_FWD_DEFINED__ +#define __OnexPlapSmartcardCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class OnexPlapSmartcardCredentialProvider OnexPlapSmartcardCredentialProvider; +#else +typedef struct OnexPlapSmartcardCredentialProvider OnexPlapSmartcardCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __OnexPlapSmartcardCredentialProvider_FWD_DEFINED__ */ + + +#ifndef __VaultProvider_FWD_DEFINED__ +#define __VaultProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class VaultProvider VaultProvider; +#else +typedef struct VaultProvider VaultProvider; +#endif /* __cplusplus */ + +#endif /* __VaultProvider_FWD_DEFINED__ */ + + +#ifndef __WinBioCredentialProvider_FWD_DEFINED__ +#define __WinBioCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class WinBioCredentialProvider WinBioCredentialProvider; +#else +typedef struct WinBioCredentialProvider WinBioCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __WinBioCredentialProvider_FWD_DEFINED__ */ + + +#ifndef __V1WinBioCredentialProvider_FWD_DEFINED__ +#define __V1WinBioCredentialProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class V1WinBioCredentialProvider V1WinBioCredentialProvider; +#else +typedef struct V1WinBioCredentialProvider V1WinBioCredentialProvider; +#endif /* __cplusplus */ + +#endif /* __V1WinBioCredentialProvider_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "shobjidl_core.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_credentialprovider_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [v1_enum] */ +enum _CREDENTIAL_PROVIDER_USAGE_SCENARIO + { + CPUS_INVALID = 0, + CPUS_LOGON = ( CPUS_INVALID + 1 ) , + CPUS_UNLOCK_WORKSTATION = ( CPUS_LOGON + 1 ) , + CPUS_CHANGE_PASSWORD = ( CPUS_UNLOCK_WORKSTATION + 1 ) , + CPUS_CREDUI = ( CPUS_CHANGE_PASSWORD + 1 ) , + CPUS_PLAP = ( CPUS_CREDUI + 1 ) + } CREDENTIAL_PROVIDER_USAGE_SCENARIO; + +typedef /* [v1_enum] */ +enum _CREDENTIAL_PROVIDER_FIELD_TYPE + { + CPFT_INVALID = 0, + CPFT_LARGE_TEXT = ( CPFT_INVALID + 1 ) , + CPFT_SMALL_TEXT = ( CPFT_LARGE_TEXT + 1 ) , + CPFT_COMMAND_LINK = ( CPFT_SMALL_TEXT + 1 ) , + CPFT_EDIT_TEXT = ( CPFT_COMMAND_LINK + 1 ) , + CPFT_PASSWORD_TEXT = ( CPFT_EDIT_TEXT + 1 ) , + CPFT_TILE_IMAGE = ( CPFT_PASSWORD_TEXT + 1 ) , + CPFT_CHECKBOX = ( CPFT_TILE_IMAGE + 1 ) , + CPFT_COMBOBOX = ( CPFT_CHECKBOX + 1 ) , + CPFT_SUBMIT_BUTTON = ( CPFT_COMBOBOX + 1 ) + } CREDENTIAL_PROVIDER_FIELD_TYPE; + +typedef /* [v1_enum] */ +enum _CREDENTIAL_PROVIDER_FIELD_STATE + { + CPFS_HIDDEN = 0, + CPFS_DISPLAY_IN_SELECTED_TILE = ( CPFS_HIDDEN + 1 ) , + CPFS_DISPLAY_IN_DESELECTED_TILE = ( CPFS_DISPLAY_IN_SELECTED_TILE + 1 ) , + CPFS_DISPLAY_IN_BOTH = ( CPFS_DISPLAY_IN_DESELECTED_TILE + 1 ) + } CREDENTIAL_PROVIDER_FIELD_STATE; + +typedef /* [v1_enum] */ +enum _CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE + { + CPFIS_NONE = 0, + CPFIS_READONLY = ( CPFIS_NONE + 1 ) , + CPFIS_DISABLED = ( CPFIS_READONLY + 1 ) , + CPFIS_FOCUSED = ( CPFIS_DISABLED + 1 ) + } CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE; + +typedef struct _CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR + { + DWORD dwFieldID; + CREDENTIAL_PROVIDER_FIELD_TYPE cpft; + LPWSTR pszLabel; + GUID guidFieldType; + } CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR; + +typedef /* [v1_enum] */ +enum _CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE + { + CPGSR_NO_CREDENTIAL_NOT_FINISHED = 0, + CPGSR_NO_CREDENTIAL_FINISHED = ( CPGSR_NO_CREDENTIAL_NOT_FINISHED + 1 ) , + CPGSR_RETURN_CREDENTIAL_FINISHED = ( CPGSR_NO_CREDENTIAL_FINISHED + 1 ) , + CPGSR_RETURN_NO_CREDENTIAL_FINISHED = ( CPGSR_RETURN_CREDENTIAL_FINISHED + 1 ) + } CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE; + +typedef /* [v1_enum] */ +enum _CREDENTIAL_PROVIDER_STATUS_ICON + { + CPSI_NONE = 0, + CPSI_ERROR = ( CPSI_NONE + 1 ) , + CPSI_WARNING = ( CPSI_ERROR + 1 ) , + CPSI_SUCCESS = ( CPSI_WARNING + 1 ) + } CREDENTIAL_PROVIDER_STATUS_ICON; + +typedef struct _CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION + { + ULONG ulAuthenticationPackage; + GUID clsidCredentialProvider; + ULONG cbSerialization; + /* [size_is] */ byte *rgbSerialization; + } CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION; + +#if (NTDDI_VERSION >= NTDDI_WIN8) +typedef /* [v1_enum] */ +enum CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS + { + CPAO_NONE = 0, + CPAO_EMPTY_LOCAL = 0x1, + CPAO_EMPTY_CONNECTED = 0x2 + } CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS) +typedef /* [v1_enum] */ +enum CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS + { + CPCFO_NONE = 0, + CPCFO_ENABLE_PASSWORD_REVEAL = 0x1, + CPCFO_IS_EMAIL_ADDRESS = 0x2, + CPCFO_ENABLE_TOUCH_KEYBOARD_AUTO_INVOKE = 0x4, + CPCFO_NUMBERS_ONLY = 0x8, + CPCFO_SHOW_ENGLISH_KEYBOARD = 0x10 + } CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#ifdef __midl +typedef LONG NTSTATUS; + +#else // __midl +#ifndef NTSTATUS +typedef _Return_type_success_(return >= 0) LONG NTSTATUS; +#endif // NTSTATUS +#endif // __midl +#define CREDENTIAL_PROVIDER_NO_DEFAULT ((DWORD)-1) + + + +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0000_v0_0_s_ifspec; + +#ifndef __ICredentialProviderCredential_INTERFACE_DEFINED__ +#define __ICredentialProviderCredential_INTERFACE_DEFINED__ + +/* interface ICredentialProviderCredential */ +/* [uuid][ref][object][local] */ + + +EXTERN_C const IID IID_ICredentialProviderCredential; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("63913a93-40c1-481a-818d-4072ff8c70cc") + ICredentialProviderCredential : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Advise( + /* [annotation][in] */ + _In_ ICredentialProviderCredentialEvents *pcpce) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnAdvise( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSelected( + /* [annotation][out] */ + _Out_ BOOL *pbAutoLogon) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDeselected( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFieldState( + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_FIELD_STATE *pcpfs, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE *pcpfis) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStringValue( + /* [in] */ DWORD dwFieldID, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppsz) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBitmapValue( + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Outptr_result_nullonfailure_ HBITMAP *phbmp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCheckboxValue( + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ BOOL *pbChecked, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppszLabel) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSubmitButtonValue( + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ DWORD *pdwAdjacentTo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComboBoxValueCount( + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ DWORD *pcItems, + /* [annotation][out] */ + _Out_ DWORD *pdwSelectedItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComboBoxValueAt( + /* [in] */ DWORD dwFieldID, + DWORD dwItem, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppszItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStringValue( + /* [in] */ DWORD dwFieldID, + /* [annotation][string][in] */ + _In_ LPCWSTR psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCheckboxValue( + /* [in] */ DWORD dwFieldID, + /* [in] */ BOOL bChecked) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetComboBoxSelectedValue( + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwSelectedItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE CommandLinkClicked( + /* [in] */ DWORD dwFieldID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSerialization( + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE *pcpgsr, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcs, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *ppszOptionalStatusText, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReportResult( + /* [in] */ NTSTATUS ntsStatus, + /* [in] */ NTSTATUS ntsSubstatus, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *ppszOptionalStatusText, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderCredentialVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICredentialProviderCredential * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICredentialProviderCredential * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICredentialProviderCredential * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, Advise) + HRESULT ( STDMETHODCALLTYPE *Advise )( + ICredentialProviderCredential * This, + /* [annotation][in] */ + _In_ ICredentialProviderCredentialEvents *pcpce); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, UnAdvise) + HRESULT ( STDMETHODCALLTYPE *UnAdvise )( + ICredentialProviderCredential * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetSelected) + HRESULT ( STDMETHODCALLTYPE *SetSelected )( + ICredentialProviderCredential * This, + /* [annotation][out] */ + _Out_ BOOL *pbAutoLogon); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetDeselected) + HRESULT ( STDMETHODCALLTYPE *SetDeselected )( + ICredentialProviderCredential * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetFieldState) + HRESULT ( STDMETHODCALLTYPE *GetFieldState )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_FIELD_STATE *pcpfs, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE *pcpfis); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetStringValue) + HRESULT ( STDMETHODCALLTYPE *GetStringValue )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppsz); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetBitmapValue) + HRESULT ( STDMETHODCALLTYPE *GetBitmapValue )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Outptr_result_nullonfailure_ HBITMAP *phbmp); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetCheckboxValue) + HRESULT ( STDMETHODCALLTYPE *GetCheckboxValue )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ BOOL *pbChecked, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppszLabel); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetSubmitButtonValue) + HRESULT ( STDMETHODCALLTYPE *GetSubmitButtonValue )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ DWORD *pdwAdjacentTo); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetComboBoxValueCount) + HRESULT ( STDMETHODCALLTYPE *GetComboBoxValueCount )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ DWORD *pcItems, + /* [annotation][out] */ + _Out_ DWORD *pdwSelectedItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetComboBoxValueAt) + HRESULT ( STDMETHODCALLTYPE *GetComboBoxValueAt )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + DWORD dwItem, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppszItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetStringValue) + HRESULT ( STDMETHODCALLTYPE *SetStringValue )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][string][in] */ + _In_ LPCWSTR psz); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetCheckboxValue) + HRESULT ( STDMETHODCALLTYPE *SetCheckboxValue )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [in] */ BOOL bChecked); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetComboBoxSelectedValue) + HRESULT ( STDMETHODCALLTYPE *SetComboBoxSelectedValue )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwSelectedItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, CommandLinkClicked) + HRESULT ( STDMETHODCALLTYPE *CommandLinkClicked )( + ICredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetSerialization) + HRESULT ( STDMETHODCALLTYPE *GetSerialization )( + ICredentialProviderCredential * This, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE *pcpgsr, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcs, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *ppszOptionalStatusText, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, ReportResult) + HRESULT ( STDMETHODCALLTYPE *ReportResult )( + ICredentialProviderCredential * This, + /* [in] */ NTSTATUS ntsStatus, + /* [in] */ NTSTATUS ntsSubstatus, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *ppszOptionalStatusText, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon); + + END_INTERFACE + } ICredentialProviderCredentialVtbl; + + interface ICredentialProviderCredential + { + CONST_VTBL struct ICredentialProviderCredentialVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProviderCredential_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProviderCredential_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProviderCredential_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProviderCredential_Advise(This,pcpce) \ + ( (This)->lpVtbl -> Advise(This,pcpce) ) + +#define ICredentialProviderCredential_UnAdvise(This) \ + ( (This)->lpVtbl -> UnAdvise(This) ) + +#define ICredentialProviderCredential_SetSelected(This,pbAutoLogon) \ + ( (This)->lpVtbl -> SetSelected(This,pbAutoLogon) ) + +#define ICredentialProviderCredential_SetDeselected(This) \ + ( (This)->lpVtbl -> SetDeselected(This) ) + +#define ICredentialProviderCredential_GetFieldState(This,dwFieldID,pcpfs,pcpfis) \ + ( (This)->lpVtbl -> GetFieldState(This,dwFieldID,pcpfs,pcpfis) ) + +#define ICredentialProviderCredential_GetStringValue(This,dwFieldID,ppsz) \ + ( (This)->lpVtbl -> GetStringValue(This,dwFieldID,ppsz) ) + +#define ICredentialProviderCredential_GetBitmapValue(This,dwFieldID,phbmp) \ + ( (This)->lpVtbl -> GetBitmapValue(This,dwFieldID,phbmp) ) + +#define ICredentialProviderCredential_GetCheckboxValue(This,dwFieldID,pbChecked,ppszLabel) \ + ( (This)->lpVtbl -> GetCheckboxValue(This,dwFieldID,pbChecked,ppszLabel) ) + +#define ICredentialProviderCredential_GetSubmitButtonValue(This,dwFieldID,pdwAdjacentTo) \ + ( (This)->lpVtbl -> GetSubmitButtonValue(This,dwFieldID,pdwAdjacentTo) ) + +#define ICredentialProviderCredential_GetComboBoxValueCount(This,dwFieldID,pcItems,pdwSelectedItem) \ + ( (This)->lpVtbl -> GetComboBoxValueCount(This,dwFieldID,pcItems,pdwSelectedItem) ) + +#define ICredentialProviderCredential_GetComboBoxValueAt(This,dwFieldID,dwItem,ppszItem) \ + ( (This)->lpVtbl -> GetComboBoxValueAt(This,dwFieldID,dwItem,ppszItem) ) + +#define ICredentialProviderCredential_SetStringValue(This,dwFieldID,psz) \ + ( (This)->lpVtbl -> SetStringValue(This,dwFieldID,psz) ) + +#define ICredentialProviderCredential_SetCheckboxValue(This,dwFieldID,bChecked) \ + ( (This)->lpVtbl -> SetCheckboxValue(This,dwFieldID,bChecked) ) + +#define ICredentialProviderCredential_SetComboBoxSelectedValue(This,dwFieldID,dwSelectedItem) \ + ( (This)->lpVtbl -> SetComboBoxSelectedValue(This,dwFieldID,dwSelectedItem) ) + +#define ICredentialProviderCredential_CommandLinkClicked(This,dwFieldID) \ + ( (This)->lpVtbl -> CommandLinkClicked(This,dwFieldID) ) + +#define ICredentialProviderCredential_GetSerialization(This,pcpgsr,pcpcs,ppszOptionalStatusText,pcpsiOptionalStatusIcon) \ + ( (This)->lpVtbl -> GetSerialization(This,pcpgsr,pcpcs,ppszOptionalStatusText,pcpsiOptionalStatusIcon) ) + +#define ICredentialProviderCredential_ReportResult(This,ntsStatus,ntsSubstatus,ppszOptionalStatusText,pcpsiOptionalStatusIcon) \ + ( (This)->lpVtbl -> ReportResult(This,ntsStatus,ntsSubstatus,ppszOptionalStatusText,pcpsiOptionalStatusIcon) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProviderCredential_INTERFACE_DEFINED__ */ + + +#ifndef __IQueryContinueWithStatus_INTERFACE_DEFINED__ +#define __IQueryContinueWithStatus_INTERFACE_DEFINED__ + +/* interface IQueryContinueWithStatus */ +/* [uuid][ref][object][local] */ + + +EXTERN_C const IID IID_IQueryContinueWithStatus; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9090be5b-502b-41fb-bccc-0049a6c7254b") + IQueryContinueWithStatus : public IQueryContinue + { + public: + virtual HRESULT STDMETHODCALLTYPE SetStatusMessage( + /* [annotation][string][in] */ + _In_ LPCWSTR psz) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IQueryContinueWithStatusVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IQueryContinueWithStatus * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IQueryContinueWithStatus * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IQueryContinueWithStatus * This); + + DECLSPEC_XFGVIRT(IQueryContinue, QueryContinue) + HRESULT ( STDMETHODCALLTYPE *QueryContinue )( + IQueryContinueWithStatus * This); + + DECLSPEC_XFGVIRT(IQueryContinueWithStatus, SetStatusMessage) + HRESULT ( STDMETHODCALLTYPE *SetStatusMessage )( + IQueryContinueWithStatus * This, + /* [annotation][string][in] */ + _In_ LPCWSTR psz); + + END_INTERFACE + } IQueryContinueWithStatusVtbl; + + interface IQueryContinueWithStatus + { + CONST_VTBL struct IQueryContinueWithStatusVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IQueryContinueWithStatus_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IQueryContinueWithStatus_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IQueryContinueWithStatus_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IQueryContinueWithStatus_QueryContinue(This) \ + ( (This)->lpVtbl -> QueryContinue(This) ) + + +#define IQueryContinueWithStatus_SetStatusMessage(This,psz) \ + ( (This)->lpVtbl -> SetStatusMessage(This,psz) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IQueryContinueWithStatus_INTERFACE_DEFINED__ */ + + +#ifndef __IConnectableCredentialProviderCredential_INTERFACE_DEFINED__ +#define __IConnectableCredentialProviderCredential_INTERFACE_DEFINED__ + +/* interface IConnectableCredentialProviderCredential */ +/* [uuid][ref][object][local] */ + + +EXTERN_C const IID IID_IConnectableCredentialProviderCredential; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9387928b-ac75-4bf9-8ab2-2b93c4a55290") + IConnectableCredentialProviderCredential : public ICredentialProviderCredential + { + public: + virtual HRESULT STDMETHODCALLTYPE Connect( + /* [annotation][in] */ + _In_ IQueryContinueWithStatus *pqcws) = 0; + + virtual HRESULT STDMETHODCALLTYPE Disconnect( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IConnectableCredentialProviderCredentialVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IConnectableCredentialProviderCredential * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IConnectableCredentialProviderCredential * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IConnectableCredentialProviderCredential * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, Advise) + HRESULT ( STDMETHODCALLTYPE *Advise )( + IConnectableCredentialProviderCredential * This, + /* [annotation][in] */ + _In_ ICredentialProviderCredentialEvents *pcpce); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, UnAdvise) + HRESULT ( STDMETHODCALLTYPE *UnAdvise )( + IConnectableCredentialProviderCredential * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetSelected) + HRESULT ( STDMETHODCALLTYPE *SetSelected )( + IConnectableCredentialProviderCredential * This, + /* [annotation][out] */ + _Out_ BOOL *pbAutoLogon); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetDeselected) + HRESULT ( STDMETHODCALLTYPE *SetDeselected )( + IConnectableCredentialProviderCredential * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetFieldState) + HRESULT ( STDMETHODCALLTYPE *GetFieldState )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_FIELD_STATE *pcpfs, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE *pcpfis); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetStringValue) + HRESULT ( STDMETHODCALLTYPE *GetStringValue )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppsz); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetBitmapValue) + HRESULT ( STDMETHODCALLTYPE *GetBitmapValue )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Outptr_result_nullonfailure_ HBITMAP *phbmp); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetCheckboxValue) + HRESULT ( STDMETHODCALLTYPE *GetCheckboxValue )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ BOOL *pbChecked, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppszLabel); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetSubmitButtonValue) + HRESULT ( STDMETHODCALLTYPE *GetSubmitButtonValue )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ DWORD *pdwAdjacentTo); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetComboBoxValueCount) + HRESULT ( STDMETHODCALLTYPE *GetComboBoxValueCount )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ DWORD *pcItems, + /* [annotation][out] */ + _Out_ DWORD *pdwSelectedItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetComboBoxValueAt) + HRESULT ( STDMETHODCALLTYPE *GetComboBoxValueAt )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + DWORD dwItem, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppszItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetStringValue) + HRESULT ( STDMETHODCALLTYPE *SetStringValue )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][string][in] */ + _In_ LPCWSTR psz); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetCheckboxValue) + HRESULT ( STDMETHODCALLTYPE *SetCheckboxValue )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [in] */ BOOL bChecked); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetComboBoxSelectedValue) + HRESULT ( STDMETHODCALLTYPE *SetComboBoxSelectedValue )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwSelectedItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, CommandLinkClicked) + HRESULT ( STDMETHODCALLTYPE *CommandLinkClicked )( + IConnectableCredentialProviderCredential * This, + /* [in] */ DWORD dwFieldID); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetSerialization) + HRESULT ( STDMETHODCALLTYPE *GetSerialization )( + IConnectableCredentialProviderCredential * This, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE *pcpgsr, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcs, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *ppszOptionalStatusText, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, ReportResult) + HRESULT ( STDMETHODCALLTYPE *ReportResult )( + IConnectableCredentialProviderCredential * This, + /* [in] */ NTSTATUS ntsStatus, + /* [in] */ NTSTATUS ntsSubstatus, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *ppszOptionalStatusText, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon); + + DECLSPEC_XFGVIRT(IConnectableCredentialProviderCredential, Connect) + HRESULT ( STDMETHODCALLTYPE *Connect )( + IConnectableCredentialProviderCredential * This, + /* [annotation][in] */ + _In_ IQueryContinueWithStatus *pqcws); + + DECLSPEC_XFGVIRT(IConnectableCredentialProviderCredential, Disconnect) + HRESULT ( STDMETHODCALLTYPE *Disconnect )( + IConnectableCredentialProviderCredential * This); + + END_INTERFACE + } IConnectableCredentialProviderCredentialVtbl; + + interface IConnectableCredentialProviderCredential + { + CONST_VTBL struct IConnectableCredentialProviderCredentialVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IConnectableCredentialProviderCredential_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IConnectableCredentialProviderCredential_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IConnectableCredentialProviderCredential_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IConnectableCredentialProviderCredential_Advise(This,pcpce) \ + ( (This)->lpVtbl -> Advise(This,pcpce) ) + +#define IConnectableCredentialProviderCredential_UnAdvise(This) \ + ( (This)->lpVtbl -> UnAdvise(This) ) + +#define IConnectableCredentialProviderCredential_SetSelected(This,pbAutoLogon) \ + ( (This)->lpVtbl -> SetSelected(This,pbAutoLogon) ) + +#define IConnectableCredentialProviderCredential_SetDeselected(This) \ + ( (This)->lpVtbl -> SetDeselected(This) ) + +#define IConnectableCredentialProviderCredential_GetFieldState(This,dwFieldID,pcpfs,pcpfis) \ + ( (This)->lpVtbl -> GetFieldState(This,dwFieldID,pcpfs,pcpfis) ) + +#define IConnectableCredentialProviderCredential_GetStringValue(This,dwFieldID,ppsz) \ + ( (This)->lpVtbl -> GetStringValue(This,dwFieldID,ppsz) ) + +#define IConnectableCredentialProviderCredential_GetBitmapValue(This,dwFieldID,phbmp) \ + ( (This)->lpVtbl -> GetBitmapValue(This,dwFieldID,phbmp) ) + +#define IConnectableCredentialProviderCredential_GetCheckboxValue(This,dwFieldID,pbChecked,ppszLabel) \ + ( (This)->lpVtbl -> GetCheckboxValue(This,dwFieldID,pbChecked,ppszLabel) ) + +#define IConnectableCredentialProviderCredential_GetSubmitButtonValue(This,dwFieldID,pdwAdjacentTo) \ + ( (This)->lpVtbl -> GetSubmitButtonValue(This,dwFieldID,pdwAdjacentTo) ) + +#define IConnectableCredentialProviderCredential_GetComboBoxValueCount(This,dwFieldID,pcItems,pdwSelectedItem) \ + ( (This)->lpVtbl -> GetComboBoxValueCount(This,dwFieldID,pcItems,pdwSelectedItem) ) + +#define IConnectableCredentialProviderCredential_GetComboBoxValueAt(This,dwFieldID,dwItem,ppszItem) \ + ( (This)->lpVtbl -> GetComboBoxValueAt(This,dwFieldID,dwItem,ppszItem) ) + +#define IConnectableCredentialProviderCredential_SetStringValue(This,dwFieldID,psz) \ + ( (This)->lpVtbl -> SetStringValue(This,dwFieldID,psz) ) + +#define IConnectableCredentialProviderCredential_SetCheckboxValue(This,dwFieldID,bChecked) \ + ( (This)->lpVtbl -> SetCheckboxValue(This,dwFieldID,bChecked) ) + +#define IConnectableCredentialProviderCredential_SetComboBoxSelectedValue(This,dwFieldID,dwSelectedItem) \ + ( (This)->lpVtbl -> SetComboBoxSelectedValue(This,dwFieldID,dwSelectedItem) ) + +#define IConnectableCredentialProviderCredential_CommandLinkClicked(This,dwFieldID) \ + ( (This)->lpVtbl -> CommandLinkClicked(This,dwFieldID) ) + +#define IConnectableCredentialProviderCredential_GetSerialization(This,pcpgsr,pcpcs,ppszOptionalStatusText,pcpsiOptionalStatusIcon) \ + ( (This)->lpVtbl -> GetSerialization(This,pcpgsr,pcpcs,ppszOptionalStatusText,pcpsiOptionalStatusIcon) ) + +#define IConnectableCredentialProviderCredential_ReportResult(This,ntsStatus,ntsSubstatus,ppszOptionalStatusText,pcpsiOptionalStatusIcon) \ + ( (This)->lpVtbl -> ReportResult(This,ntsStatus,ntsSubstatus,ppszOptionalStatusText,pcpsiOptionalStatusIcon) ) + + +#define IConnectableCredentialProviderCredential_Connect(This,pqcws) \ + ( (This)->lpVtbl -> Connect(This,pqcws) ) + +#define IConnectableCredentialProviderCredential_Disconnect(This) \ + ( (This)->lpVtbl -> Disconnect(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IConnectableCredentialProviderCredential_INTERFACE_DEFINED__ */ + + +#ifndef __ICredentialProviderCredentialEvents_INTERFACE_DEFINED__ +#define __ICredentialProviderCredentialEvents_INTERFACE_DEFINED__ + +/* interface ICredentialProviderCredentialEvents */ +/* [uuid][ref][object] */ + + +EXTERN_C const IID IID_ICredentialProviderCredentialEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fa6fa76b-66b7-4b11-95f1-86171118e816") + ICredentialProviderCredentialEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetFieldState( + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ CREDENTIAL_PROVIDER_FIELD_STATE cpfs) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFieldInteractiveState( + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE cpfis) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFieldString( + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFieldCheckbox( + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ BOOL bChecked, + /* [in] */ __RPC__in LPCWSTR pszLabel) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFieldBitmap( + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ __RPC__in HBITMAP hbmp) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFieldComboBoxSelectedItem( + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwSelectedItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteFieldComboBoxItem( + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE AppendFieldComboBoxItem( + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [string][in] */ __RPC__in_string LPCWSTR pszItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFieldSubmitButton( + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwAdjacentTo) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnCreatingWindow( + /* [out] */ __RPC__deref_out_opt HWND *phwndOwner) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderCredentialEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICredentialProviderCredentialEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICredentialProviderCredentialEvents * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldState) + HRESULT ( STDMETHODCALLTYPE *SetFieldState )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ CREDENTIAL_PROVIDER_FIELD_STATE cpfs); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldInteractiveState) + HRESULT ( STDMETHODCALLTYPE *SetFieldInteractiveState )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE cpfis); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldString) + HRESULT ( STDMETHODCALLTYPE *SetFieldString )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR psz); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldCheckbox) + HRESULT ( STDMETHODCALLTYPE *SetFieldCheckbox )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ BOOL bChecked, + /* [in] */ __RPC__in LPCWSTR pszLabel); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldBitmap) + HRESULT ( STDMETHODCALLTYPE *SetFieldBitmap )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ __RPC__in HBITMAP hbmp); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldComboBoxSelectedItem) + HRESULT ( STDMETHODCALLTYPE *SetFieldComboBoxSelectedItem )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwSelectedItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, DeleteFieldComboBoxItem) + HRESULT ( STDMETHODCALLTYPE *DeleteFieldComboBoxItem )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, AppendFieldComboBoxItem) + HRESULT ( STDMETHODCALLTYPE *AppendFieldComboBoxItem )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [string][in] */ __RPC__in_string LPCWSTR pszItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldSubmitButton) + HRESULT ( STDMETHODCALLTYPE *SetFieldSubmitButton )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwAdjacentTo); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, OnCreatingWindow) + HRESULT ( STDMETHODCALLTYPE *OnCreatingWindow )( + __RPC__in ICredentialProviderCredentialEvents * This, + /* [out] */ __RPC__deref_out_opt HWND *phwndOwner); + + END_INTERFACE + } ICredentialProviderCredentialEventsVtbl; + + interface ICredentialProviderCredentialEvents + { + CONST_VTBL struct ICredentialProviderCredentialEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProviderCredentialEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProviderCredentialEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProviderCredentialEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProviderCredentialEvents_SetFieldState(This,pcpc,dwFieldID,cpfs) \ + ( (This)->lpVtbl -> SetFieldState(This,pcpc,dwFieldID,cpfs) ) + +#define ICredentialProviderCredentialEvents_SetFieldInteractiveState(This,pcpc,dwFieldID,cpfis) \ + ( (This)->lpVtbl -> SetFieldInteractiveState(This,pcpc,dwFieldID,cpfis) ) + +#define ICredentialProviderCredentialEvents_SetFieldString(This,pcpc,dwFieldID,psz) \ + ( (This)->lpVtbl -> SetFieldString(This,pcpc,dwFieldID,psz) ) + +#define ICredentialProviderCredentialEvents_SetFieldCheckbox(This,pcpc,dwFieldID,bChecked,pszLabel) \ + ( (This)->lpVtbl -> SetFieldCheckbox(This,pcpc,dwFieldID,bChecked,pszLabel) ) + +#define ICredentialProviderCredentialEvents_SetFieldBitmap(This,pcpc,dwFieldID,hbmp) \ + ( (This)->lpVtbl -> SetFieldBitmap(This,pcpc,dwFieldID,hbmp) ) + +#define ICredentialProviderCredentialEvents_SetFieldComboBoxSelectedItem(This,pcpc,dwFieldID,dwSelectedItem) \ + ( (This)->lpVtbl -> SetFieldComboBoxSelectedItem(This,pcpc,dwFieldID,dwSelectedItem) ) + +#define ICredentialProviderCredentialEvents_DeleteFieldComboBoxItem(This,pcpc,dwFieldID,dwItem) \ + ( (This)->lpVtbl -> DeleteFieldComboBoxItem(This,pcpc,dwFieldID,dwItem) ) + +#define ICredentialProviderCredentialEvents_AppendFieldComboBoxItem(This,pcpc,dwFieldID,pszItem) \ + ( (This)->lpVtbl -> AppendFieldComboBoxItem(This,pcpc,dwFieldID,pszItem) ) + +#define ICredentialProviderCredentialEvents_SetFieldSubmitButton(This,pcpc,dwFieldID,dwAdjacentTo) \ + ( (This)->lpVtbl -> SetFieldSubmitButton(This,pcpc,dwFieldID,dwAdjacentTo) ) + +#define ICredentialProviderCredentialEvents_OnCreatingWindow(This,phwndOwner) \ + ( (This)->lpVtbl -> OnCreatingWindow(This,phwndOwner) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProviderCredentialEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_credentialprovider_0000_0004 */ +/* [local] */ + + + + +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0004_v0_0_s_ifspec; + +#ifndef __ICredentialProvider_INTERFACE_DEFINED__ +#define __ICredentialProvider_INTERFACE_DEFINED__ + +/* interface ICredentialProvider */ +/* [uuid][ref][object][local] */ + + +EXTERN_C const IID IID_ICredentialProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d27c3481-5a1c-45b2-8aaa-c20ebbe8229e") + ICredentialProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetUsageScenario( + /* [in] */ CREDENTIAL_PROVIDER_USAGE_SCENARIO cpus, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSerialization( + /* [annotation][in] */ + _In_ const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcs) = 0; + + virtual HRESULT STDMETHODCALLTYPE Advise( + /* [annotation][in] */ + _In_ ICredentialProviderEvents *pcpe, + /* [annotation][in] */ + _In_ UINT_PTR upAdviseContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnAdvise( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFieldDescriptorCount( + /* [annotation][out] */ + _Out_ DWORD *pdwCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFieldDescriptorAt( + /* [in] */ DWORD dwIndex, + /* [annotation][out] */ + _Outptr_result_nullonfailure_ CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR **ppcpfd) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCredentialCount( + /* [annotation][out] */ + _Out_ DWORD *pdwCount, + /* [annotation][out] */ + _Out_ DWORD *pdwDefault, + /* [annotation][out] */ + _Out_ BOOL *pbAutoLogonWithDefault) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCredentialAt( + /* [in] */ DWORD dwIndex, + /* [annotation][out] */ + _COM_Outptr_ ICredentialProviderCredential **ppcpc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICredentialProvider * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICredentialProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICredentialProvider * This); + + DECLSPEC_XFGVIRT(ICredentialProvider, SetUsageScenario) + HRESULT ( STDMETHODCALLTYPE *SetUsageScenario )( + ICredentialProvider * This, + /* [in] */ CREDENTIAL_PROVIDER_USAGE_SCENARIO cpus, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(ICredentialProvider, SetSerialization) + HRESULT ( STDMETHODCALLTYPE *SetSerialization )( + ICredentialProvider * This, + /* [annotation][in] */ + _In_ const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcs); + + DECLSPEC_XFGVIRT(ICredentialProvider, Advise) + HRESULT ( STDMETHODCALLTYPE *Advise )( + ICredentialProvider * This, + /* [annotation][in] */ + _In_ ICredentialProviderEvents *pcpe, + /* [annotation][in] */ + _In_ UINT_PTR upAdviseContext); + + DECLSPEC_XFGVIRT(ICredentialProvider, UnAdvise) + HRESULT ( STDMETHODCALLTYPE *UnAdvise )( + ICredentialProvider * This); + + DECLSPEC_XFGVIRT(ICredentialProvider, GetFieldDescriptorCount) + HRESULT ( STDMETHODCALLTYPE *GetFieldDescriptorCount )( + ICredentialProvider * This, + /* [annotation][out] */ + _Out_ DWORD *pdwCount); + + DECLSPEC_XFGVIRT(ICredentialProvider, GetFieldDescriptorAt) + HRESULT ( STDMETHODCALLTYPE *GetFieldDescriptorAt )( + ICredentialProvider * This, + /* [in] */ DWORD dwIndex, + /* [annotation][out] */ + _Outptr_result_nullonfailure_ CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR **ppcpfd); + + DECLSPEC_XFGVIRT(ICredentialProvider, GetCredentialCount) + HRESULT ( STDMETHODCALLTYPE *GetCredentialCount )( + ICredentialProvider * This, + /* [annotation][out] */ + _Out_ DWORD *pdwCount, + /* [annotation][out] */ + _Out_ DWORD *pdwDefault, + /* [annotation][out] */ + _Out_ BOOL *pbAutoLogonWithDefault); + + DECLSPEC_XFGVIRT(ICredentialProvider, GetCredentialAt) + HRESULT ( STDMETHODCALLTYPE *GetCredentialAt )( + ICredentialProvider * This, + /* [in] */ DWORD dwIndex, + /* [annotation][out] */ + _COM_Outptr_ ICredentialProviderCredential **ppcpc); + + END_INTERFACE + } ICredentialProviderVtbl; + + interface ICredentialProvider + { + CONST_VTBL struct ICredentialProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProvider_SetUsageScenario(This,cpus,dwFlags) \ + ( (This)->lpVtbl -> SetUsageScenario(This,cpus,dwFlags) ) + +#define ICredentialProvider_SetSerialization(This,pcpcs) \ + ( (This)->lpVtbl -> SetSerialization(This,pcpcs) ) + +#define ICredentialProvider_Advise(This,pcpe,upAdviseContext) \ + ( (This)->lpVtbl -> Advise(This,pcpe,upAdviseContext) ) + +#define ICredentialProvider_UnAdvise(This) \ + ( (This)->lpVtbl -> UnAdvise(This) ) + +#define ICredentialProvider_GetFieldDescriptorCount(This,pdwCount) \ + ( (This)->lpVtbl -> GetFieldDescriptorCount(This,pdwCount) ) + +#define ICredentialProvider_GetFieldDescriptorAt(This,dwIndex,ppcpfd) \ + ( (This)->lpVtbl -> GetFieldDescriptorAt(This,dwIndex,ppcpfd) ) + +#define ICredentialProvider_GetCredentialCount(This,pdwCount,pdwDefault,pbAutoLogonWithDefault) \ + ( (This)->lpVtbl -> GetCredentialCount(This,pdwCount,pdwDefault,pbAutoLogonWithDefault) ) + +#define ICredentialProvider_GetCredentialAt(This,dwIndex,ppcpc) \ + ( (This)->lpVtbl -> GetCredentialAt(This,dwIndex,ppcpc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProvider_INTERFACE_DEFINED__ */ + + +#ifndef __ICredentialProviderEvents_INTERFACE_DEFINED__ +#define __ICredentialProviderEvents_INTERFACE_DEFINED__ + +/* interface ICredentialProviderEvents */ +/* [uuid][ref][object] */ + + +EXTERN_C const IID IID_ICredentialProviderEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("34201e5a-a787-41a3-a5a4-bd6dcf2a854e") + ICredentialProviderEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CredentialsChanged( + /* [in] */ UINT_PTR upAdviseContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICredentialProviderEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICredentialProviderEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICredentialProviderEvents * This); + + DECLSPEC_XFGVIRT(ICredentialProviderEvents, CredentialsChanged) + HRESULT ( STDMETHODCALLTYPE *CredentialsChanged )( + __RPC__in ICredentialProviderEvents * This, + /* [in] */ UINT_PTR upAdviseContext); + + END_INTERFACE + } ICredentialProviderEventsVtbl; + + interface ICredentialProviderEvents + { + CONST_VTBL struct ICredentialProviderEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProviderEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProviderEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProviderEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProviderEvents_CredentialsChanged(This,upAdviseContext) \ + ( (This)->lpVtbl -> CredentialsChanged(This,upAdviseContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProviderEvents_INTERFACE_DEFINED__ */ + + +#ifndef __ICredentialProviderFilter_INTERFACE_DEFINED__ +#define __ICredentialProviderFilter_INTERFACE_DEFINED__ + +/* interface ICredentialProviderFilter */ +/* [uuid][ref][object][local] */ + + +EXTERN_C const IID IID_ICredentialProviderFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a5da53f9-d475-4080-a120-910c4a739880") + ICredentialProviderFilter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Filter( + /* [in] */ CREDENTIAL_PROVIDER_USAGE_SCENARIO cpus, + /* [in] */ DWORD dwFlags, + /* [annotation][size_is][in] */ + _In_reads_(cProviders) GUID *rgclsidProviders, + /* [annotation][size_is][out][in] */ + _Inout_updates_(cProviders) BOOL *rgbAllow, + /* [in] */ DWORD cProviders) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateRemoteCredential( + /* [annotation][in] */ + _In_ const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcsIn, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcsOut) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICredentialProviderFilter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICredentialProviderFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICredentialProviderFilter * This); + + DECLSPEC_XFGVIRT(ICredentialProviderFilter, Filter) + HRESULT ( STDMETHODCALLTYPE *Filter )( + ICredentialProviderFilter * This, + /* [in] */ CREDENTIAL_PROVIDER_USAGE_SCENARIO cpus, + /* [in] */ DWORD dwFlags, + /* [annotation][size_is][in] */ + _In_reads_(cProviders) GUID *rgclsidProviders, + /* [annotation][size_is][out][in] */ + _Inout_updates_(cProviders) BOOL *rgbAllow, + /* [in] */ DWORD cProviders); + + DECLSPEC_XFGVIRT(ICredentialProviderFilter, UpdateRemoteCredential) + HRESULT ( STDMETHODCALLTYPE *UpdateRemoteCredential )( + ICredentialProviderFilter * This, + /* [annotation][in] */ + _In_ const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcsIn, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcsOut); + + END_INTERFACE + } ICredentialProviderFilterVtbl; + + interface ICredentialProviderFilter + { + CONST_VTBL struct ICredentialProviderFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProviderFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProviderFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProviderFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProviderFilter_Filter(This,cpus,dwFlags,rgclsidProviders,rgbAllow,cProviders) \ + ( (This)->lpVtbl -> Filter(This,cpus,dwFlags,rgclsidProviders,rgbAllow,cProviders) ) + +#define ICredentialProviderFilter_UpdateRemoteCredential(This,pcpcsIn,pcpcsOut) \ + ( (This)->lpVtbl -> UpdateRemoteCredential(This,pcpcsIn,pcpcsOut) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProviderFilter_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_credentialprovider_0000_0007 */ +/* [local] */ + +#if (NTDDI_VERSION >= NTDDI_WIN8) + + +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0007_v0_0_s_ifspec; + +#ifndef __ICredentialProviderCredential2_INTERFACE_DEFINED__ +#define __ICredentialProviderCredential2_INTERFACE_DEFINED__ + +/* interface ICredentialProviderCredential2 */ +/* [uuid][ref][object][local] */ + + +EXTERN_C const IID IID_ICredentialProviderCredential2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fd672c54-40ea-4d6e-9b49-cfb1a7507bd7") + ICredentialProviderCredential2 : public ICredentialProviderCredential + { + public: + virtual HRESULT STDMETHODCALLTYPE GetUserSid( + /* [annotation][string][out] */ + _Outptr_result_maybenull_ LPWSTR *sid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderCredential2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICredentialProviderCredential2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICredentialProviderCredential2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICredentialProviderCredential2 * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, Advise) + HRESULT ( STDMETHODCALLTYPE *Advise )( + ICredentialProviderCredential2 * This, + /* [annotation][in] */ + _In_ ICredentialProviderCredentialEvents *pcpce); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, UnAdvise) + HRESULT ( STDMETHODCALLTYPE *UnAdvise )( + ICredentialProviderCredential2 * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetSelected) + HRESULT ( STDMETHODCALLTYPE *SetSelected )( + ICredentialProviderCredential2 * This, + /* [annotation][out] */ + _Out_ BOOL *pbAutoLogon); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetDeselected) + HRESULT ( STDMETHODCALLTYPE *SetDeselected )( + ICredentialProviderCredential2 * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetFieldState) + HRESULT ( STDMETHODCALLTYPE *GetFieldState )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_FIELD_STATE *pcpfs, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE *pcpfis); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetStringValue) + HRESULT ( STDMETHODCALLTYPE *GetStringValue )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppsz); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetBitmapValue) + HRESULT ( STDMETHODCALLTYPE *GetBitmapValue )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Outptr_result_nullonfailure_ HBITMAP *phbmp); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetCheckboxValue) + HRESULT ( STDMETHODCALLTYPE *GetCheckboxValue )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ BOOL *pbChecked, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppszLabel); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetSubmitButtonValue) + HRESULT ( STDMETHODCALLTYPE *GetSubmitButtonValue )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ DWORD *pdwAdjacentTo); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetComboBoxValueCount) + HRESULT ( STDMETHODCALLTYPE *GetComboBoxValueCount )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][out] */ + _Out_ DWORD *pcItems, + /* [annotation][out] */ + _Out_ DWORD *pdwSelectedItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetComboBoxValueAt) + HRESULT ( STDMETHODCALLTYPE *GetComboBoxValueAt )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID, + DWORD dwItem, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *ppszItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetStringValue) + HRESULT ( STDMETHODCALLTYPE *SetStringValue )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID, + /* [annotation][string][in] */ + _In_ LPCWSTR psz); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetCheckboxValue) + HRESULT ( STDMETHODCALLTYPE *SetCheckboxValue )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID, + /* [in] */ BOOL bChecked); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, SetComboBoxSelectedValue) + HRESULT ( STDMETHODCALLTYPE *SetComboBoxSelectedValue )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwSelectedItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, CommandLinkClicked) + HRESULT ( STDMETHODCALLTYPE *CommandLinkClicked )( + ICredentialProviderCredential2 * This, + /* [in] */ DWORD dwFieldID); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, GetSerialization) + HRESULT ( STDMETHODCALLTYPE *GetSerialization )( + ICredentialProviderCredential2 * This, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE *pcpgsr, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION *pcpcs, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *ppszOptionalStatusText, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential, ReportResult) + HRESULT ( STDMETHODCALLTYPE *ReportResult )( + ICredentialProviderCredential2 * This, + /* [in] */ NTSTATUS ntsStatus, + /* [in] */ NTSTATUS ntsSubstatus, + /* [annotation][out] */ + _Outptr_result_maybenull_ LPWSTR *ppszOptionalStatusText, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_STATUS_ICON *pcpsiOptionalStatusIcon); + + DECLSPEC_XFGVIRT(ICredentialProviderCredential2, GetUserSid) + HRESULT ( STDMETHODCALLTYPE *GetUserSid )( + ICredentialProviderCredential2 * This, + /* [annotation][string][out] */ + _Outptr_result_maybenull_ LPWSTR *sid); + + END_INTERFACE + } ICredentialProviderCredential2Vtbl; + + interface ICredentialProviderCredential2 + { + CONST_VTBL struct ICredentialProviderCredential2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProviderCredential2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProviderCredential2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProviderCredential2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProviderCredential2_Advise(This,pcpce) \ + ( (This)->lpVtbl -> Advise(This,pcpce) ) + +#define ICredentialProviderCredential2_UnAdvise(This) \ + ( (This)->lpVtbl -> UnAdvise(This) ) + +#define ICredentialProviderCredential2_SetSelected(This,pbAutoLogon) \ + ( (This)->lpVtbl -> SetSelected(This,pbAutoLogon) ) + +#define ICredentialProviderCredential2_SetDeselected(This) \ + ( (This)->lpVtbl -> SetDeselected(This) ) + +#define ICredentialProviderCredential2_GetFieldState(This,dwFieldID,pcpfs,pcpfis) \ + ( (This)->lpVtbl -> GetFieldState(This,dwFieldID,pcpfs,pcpfis) ) + +#define ICredentialProviderCredential2_GetStringValue(This,dwFieldID,ppsz) \ + ( (This)->lpVtbl -> GetStringValue(This,dwFieldID,ppsz) ) + +#define ICredentialProviderCredential2_GetBitmapValue(This,dwFieldID,phbmp) \ + ( (This)->lpVtbl -> GetBitmapValue(This,dwFieldID,phbmp) ) + +#define ICredentialProviderCredential2_GetCheckboxValue(This,dwFieldID,pbChecked,ppszLabel) \ + ( (This)->lpVtbl -> GetCheckboxValue(This,dwFieldID,pbChecked,ppszLabel) ) + +#define ICredentialProviderCredential2_GetSubmitButtonValue(This,dwFieldID,pdwAdjacentTo) \ + ( (This)->lpVtbl -> GetSubmitButtonValue(This,dwFieldID,pdwAdjacentTo) ) + +#define ICredentialProviderCredential2_GetComboBoxValueCount(This,dwFieldID,pcItems,pdwSelectedItem) \ + ( (This)->lpVtbl -> GetComboBoxValueCount(This,dwFieldID,pcItems,pdwSelectedItem) ) + +#define ICredentialProviderCredential2_GetComboBoxValueAt(This,dwFieldID,dwItem,ppszItem) \ + ( (This)->lpVtbl -> GetComboBoxValueAt(This,dwFieldID,dwItem,ppszItem) ) + +#define ICredentialProviderCredential2_SetStringValue(This,dwFieldID,psz) \ + ( (This)->lpVtbl -> SetStringValue(This,dwFieldID,psz) ) + +#define ICredentialProviderCredential2_SetCheckboxValue(This,dwFieldID,bChecked) \ + ( (This)->lpVtbl -> SetCheckboxValue(This,dwFieldID,bChecked) ) + +#define ICredentialProviderCredential2_SetComboBoxSelectedValue(This,dwFieldID,dwSelectedItem) \ + ( (This)->lpVtbl -> SetComboBoxSelectedValue(This,dwFieldID,dwSelectedItem) ) + +#define ICredentialProviderCredential2_CommandLinkClicked(This,dwFieldID) \ + ( (This)->lpVtbl -> CommandLinkClicked(This,dwFieldID) ) + +#define ICredentialProviderCredential2_GetSerialization(This,pcpgsr,pcpcs,ppszOptionalStatusText,pcpsiOptionalStatusIcon) \ + ( (This)->lpVtbl -> GetSerialization(This,pcpgsr,pcpcs,ppszOptionalStatusText,pcpsiOptionalStatusIcon) ) + +#define ICredentialProviderCredential2_ReportResult(This,ntsStatus,ntsSubstatus,ppszOptionalStatusText,pcpsiOptionalStatusIcon) \ + ( (This)->lpVtbl -> ReportResult(This,ntsStatus,ntsSubstatus,ppszOptionalStatusText,pcpsiOptionalStatusIcon) ) + + +#define ICredentialProviderCredential2_GetUserSid(This,sid) \ + ( (This)->lpVtbl -> GetUserSid(This,sid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProviderCredential2_INTERFACE_DEFINED__ */ + + +#ifndef __ICredentialProviderCredentialWithFieldOptions_INTERFACE_DEFINED__ +#define __ICredentialProviderCredentialWithFieldOptions_INTERFACE_DEFINED__ + +/* interface ICredentialProviderCredentialWithFieldOptions */ +/* [uuid][ref][object][local] */ + + +EXTERN_C const IID IID_ICredentialProviderCredentialWithFieldOptions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DBC6FB30-C843-49E3-A645-573E6F39446A") + ICredentialProviderCredentialWithFieldOptions : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFieldOptions( + /* [in] */ DWORD fieldID, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS *options) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderCredentialWithFieldOptionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICredentialProviderCredentialWithFieldOptions * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICredentialProviderCredentialWithFieldOptions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICredentialProviderCredentialWithFieldOptions * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialWithFieldOptions, GetFieldOptions) + HRESULT ( STDMETHODCALLTYPE *GetFieldOptions )( + ICredentialProviderCredentialWithFieldOptions * This, + /* [in] */ DWORD fieldID, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS *options); + + END_INTERFACE + } ICredentialProviderCredentialWithFieldOptionsVtbl; + + interface ICredentialProviderCredentialWithFieldOptions + { + CONST_VTBL struct ICredentialProviderCredentialWithFieldOptionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProviderCredentialWithFieldOptions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProviderCredentialWithFieldOptions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProviderCredentialWithFieldOptions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProviderCredentialWithFieldOptions_GetFieldOptions(This,fieldID,options) \ + ( (This)->lpVtbl -> GetFieldOptions(This,fieldID,options) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProviderCredentialWithFieldOptions_INTERFACE_DEFINED__ */ + + +#ifndef __ICredentialProviderCredentialEvents2_INTERFACE_DEFINED__ +#define __ICredentialProviderCredentialEvents2_INTERFACE_DEFINED__ + +/* interface ICredentialProviderCredentialEvents2 */ +/* [uuid][ref][object] */ + + +EXTERN_C const IID IID_ICredentialProviderCredentialEvents2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B53C00B6-9922-4B78-B1F4-DDFE774DC39B") + ICredentialProviderCredentialEvents2 : public ICredentialProviderCredentialEvents + { + public: + virtual HRESULT STDMETHODCALLTYPE BeginFieldUpdates( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndFieldUpdates( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFieldOptions( + /* [in] */ __RPC__in_opt ICredentialProviderCredential *credential, + /* [in] */ DWORD fieldID, + /* [in] */ CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS options) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderCredentialEvents2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICredentialProviderCredentialEvents2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICredentialProviderCredentialEvents2 * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldState) + HRESULT ( STDMETHODCALLTYPE *SetFieldState )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ CREDENTIAL_PROVIDER_FIELD_STATE cpfs); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldInteractiveState) + HRESULT ( STDMETHODCALLTYPE *SetFieldInteractiveState )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE cpfis); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldString) + HRESULT ( STDMETHODCALLTYPE *SetFieldString )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [unique][string][in] */ __RPC__in_opt_string LPCWSTR psz); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldCheckbox) + HRESULT ( STDMETHODCALLTYPE *SetFieldCheckbox )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ BOOL bChecked, + /* [in] */ __RPC__in LPCWSTR pszLabel); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldBitmap) + HRESULT ( STDMETHODCALLTYPE *SetFieldBitmap )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ __RPC__in HBITMAP hbmp); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldComboBoxSelectedItem) + HRESULT ( STDMETHODCALLTYPE *SetFieldComboBoxSelectedItem )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwSelectedItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, DeleteFieldComboBoxItem) + HRESULT ( STDMETHODCALLTYPE *DeleteFieldComboBoxItem )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, AppendFieldComboBoxItem) + HRESULT ( STDMETHODCALLTYPE *AppendFieldComboBoxItem )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [string][in] */ __RPC__in_string LPCWSTR pszItem); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, SetFieldSubmitButton) + HRESULT ( STDMETHODCALLTYPE *SetFieldSubmitButton )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *pcpc, + /* [in] */ DWORD dwFieldID, + /* [in] */ DWORD dwAdjacentTo); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents, OnCreatingWindow) + HRESULT ( STDMETHODCALLTYPE *OnCreatingWindow )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [out] */ __RPC__deref_out_opt HWND *phwndOwner); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents2, BeginFieldUpdates) + HRESULT ( STDMETHODCALLTYPE *BeginFieldUpdates )( + __RPC__in ICredentialProviderCredentialEvents2 * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents2, EndFieldUpdates) + HRESULT ( STDMETHODCALLTYPE *EndFieldUpdates )( + __RPC__in ICredentialProviderCredentialEvents2 * This); + + DECLSPEC_XFGVIRT(ICredentialProviderCredentialEvents2, SetFieldOptions) + HRESULT ( STDMETHODCALLTYPE *SetFieldOptions )( + __RPC__in ICredentialProviderCredentialEvents2 * This, + /* [in] */ __RPC__in_opt ICredentialProviderCredential *credential, + /* [in] */ DWORD fieldID, + /* [in] */ CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS options); + + END_INTERFACE + } ICredentialProviderCredentialEvents2Vtbl; + + interface ICredentialProviderCredentialEvents2 + { + CONST_VTBL struct ICredentialProviderCredentialEvents2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProviderCredentialEvents2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProviderCredentialEvents2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProviderCredentialEvents2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProviderCredentialEvents2_SetFieldState(This,pcpc,dwFieldID,cpfs) \ + ( (This)->lpVtbl -> SetFieldState(This,pcpc,dwFieldID,cpfs) ) + +#define ICredentialProviderCredentialEvents2_SetFieldInteractiveState(This,pcpc,dwFieldID,cpfis) \ + ( (This)->lpVtbl -> SetFieldInteractiveState(This,pcpc,dwFieldID,cpfis) ) + +#define ICredentialProviderCredentialEvents2_SetFieldString(This,pcpc,dwFieldID,psz) \ + ( (This)->lpVtbl -> SetFieldString(This,pcpc,dwFieldID,psz) ) + +#define ICredentialProviderCredentialEvents2_SetFieldCheckbox(This,pcpc,dwFieldID,bChecked,pszLabel) \ + ( (This)->lpVtbl -> SetFieldCheckbox(This,pcpc,dwFieldID,bChecked,pszLabel) ) + +#define ICredentialProviderCredentialEvents2_SetFieldBitmap(This,pcpc,dwFieldID,hbmp) \ + ( (This)->lpVtbl -> SetFieldBitmap(This,pcpc,dwFieldID,hbmp) ) + +#define ICredentialProviderCredentialEvents2_SetFieldComboBoxSelectedItem(This,pcpc,dwFieldID,dwSelectedItem) \ + ( (This)->lpVtbl -> SetFieldComboBoxSelectedItem(This,pcpc,dwFieldID,dwSelectedItem) ) + +#define ICredentialProviderCredentialEvents2_DeleteFieldComboBoxItem(This,pcpc,dwFieldID,dwItem) \ + ( (This)->lpVtbl -> DeleteFieldComboBoxItem(This,pcpc,dwFieldID,dwItem) ) + +#define ICredentialProviderCredentialEvents2_AppendFieldComboBoxItem(This,pcpc,dwFieldID,pszItem) \ + ( (This)->lpVtbl -> AppendFieldComboBoxItem(This,pcpc,dwFieldID,pszItem) ) + +#define ICredentialProviderCredentialEvents2_SetFieldSubmitButton(This,pcpc,dwFieldID,dwAdjacentTo) \ + ( (This)->lpVtbl -> SetFieldSubmitButton(This,pcpc,dwFieldID,dwAdjacentTo) ) + +#define ICredentialProviderCredentialEvents2_OnCreatingWindow(This,phwndOwner) \ + ( (This)->lpVtbl -> OnCreatingWindow(This,phwndOwner) ) + + +#define ICredentialProviderCredentialEvents2_BeginFieldUpdates(This) \ + ( (This)->lpVtbl -> BeginFieldUpdates(This) ) + +#define ICredentialProviderCredentialEvents2_EndFieldUpdates(This) \ + ( (This)->lpVtbl -> EndFieldUpdates(This) ) + +#define ICredentialProviderCredentialEvents2_SetFieldOptions(This,credential,fieldID,options) \ + ( (This)->lpVtbl -> SetFieldOptions(This,credential,fieldID,options) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProviderCredentialEvents2_INTERFACE_DEFINED__ */ + + +#ifndef __ICredentialProviderUser_INTERFACE_DEFINED__ +#define __ICredentialProviderUser_INTERFACE_DEFINED__ + +/* interface ICredentialProviderUser */ +/* [ref][object][uuid][local] */ + + +EXTERN_C const IID IID_ICredentialProviderUser; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("13793285-3ea6-40fd-b420-15f47da41fbb") + ICredentialProviderUser : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSid( + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *sid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProviderID( + /* [annotation][out] */ + _Out_ GUID *providerID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStringValue( + /* [annotation][in] */ + _In_ REFPROPERTYKEY key, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *stringValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [annotation][in] */ + _In_ REFPROPERTYKEY key, + /* [annotation][out] */ + _Out_ PROPVARIANT *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderUserVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICredentialProviderUser * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICredentialProviderUser * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICredentialProviderUser * This); + + DECLSPEC_XFGVIRT(ICredentialProviderUser, GetSid) + HRESULT ( STDMETHODCALLTYPE *GetSid )( + ICredentialProviderUser * This, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *sid); + + DECLSPEC_XFGVIRT(ICredentialProviderUser, GetProviderID) + HRESULT ( STDMETHODCALLTYPE *GetProviderID )( + ICredentialProviderUser * This, + /* [annotation][out] */ + _Out_ GUID *providerID); + + DECLSPEC_XFGVIRT(ICredentialProviderUser, GetStringValue) + HRESULT ( STDMETHODCALLTYPE *GetStringValue )( + ICredentialProviderUser * This, + /* [annotation][in] */ + _In_ REFPROPERTYKEY key, + /* [annotation][string][out] */ + _Outptr_result_nullonfailure_ LPWSTR *stringValue); + + DECLSPEC_XFGVIRT(ICredentialProviderUser, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + ICredentialProviderUser * This, + /* [annotation][in] */ + _In_ REFPROPERTYKEY key, + /* [annotation][out] */ + _Out_ PROPVARIANT *value); + + END_INTERFACE + } ICredentialProviderUserVtbl; + + interface ICredentialProviderUser + { + CONST_VTBL struct ICredentialProviderUserVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProviderUser_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProviderUser_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProviderUser_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProviderUser_GetSid(This,sid) \ + ( (This)->lpVtbl -> GetSid(This,sid) ) + +#define ICredentialProviderUser_GetProviderID(This,providerID) \ + ( (This)->lpVtbl -> GetProviderID(This,providerID) ) + +#define ICredentialProviderUser_GetStringValue(This,key,stringValue) \ + ( (This)->lpVtbl -> GetStringValue(This,key,stringValue) ) + +#define ICredentialProviderUser_GetValue(This,key,value) \ + ( (This)->lpVtbl -> GetValue(This,key,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProviderUser_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_credentialprovider_0000_0011 */ +/* [local] */ + +DEFINE_GUID(Identity_LocalUserProvider, 0xA198529B, 0x730F, 0x4089, 0xB6, 0x46, 0xA1, 0x25, 0x57, 0xF5, 0x66, 0x5E); + + +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0011_v0_0_s_ifspec; + +#ifndef __ICredentialProviderUserArray_INTERFACE_DEFINED__ +#define __ICredentialProviderUserArray_INTERFACE_DEFINED__ + +/* interface ICredentialProviderUserArray */ +/* [ref][object][uuid][local] */ + + +EXTERN_C const IID IID_ICredentialProviderUserArray; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("90C119AE-0F18-4520-A1F1-114366A40FE8") + ICredentialProviderUserArray : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetProviderFilter( + /* [in] */ REFGUID guidProviderToFilterTo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAccountOptions( + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS *credentialProviderAccountOptions) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [annotation][out] */ + _Out_ DWORD *userCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAt( + /* [in] */ DWORD userIndex, + /* [annotation][out] */ + _COM_Outptr_ ICredentialProviderUser **user) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderUserArrayVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICredentialProviderUserArray * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICredentialProviderUserArray * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICredentialProviderUserArray * This); + + DECLSPEC_XFGVIRT(ICredentialProviderUserArray, SetProviderFilter) + HRESULT ( STDMETHODCALLTYPE *SetProviderFilter )( + ICredentialProviderUserArray * This, + /* [in] */ REFGUID guidProviderToFilterTo); + + DECLSPEC_XFGVIRT(ICredentialProviderUserArray, GetAccountOptions) + HRESULT ( STDMETHODCALLTYPE *GetAccountOptions )( + ICredentialProviderUserArray * This, + /* [annotation][out] */ + _Out_ CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS *credentialProviderAccountOptions); + + DECLSPEC_XFGVIRT(ICredentialProviderUserArray, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + ICredentialProviderUserArray * This, + /* [annotation][out] */ + _Out_ DWORD *userCount); + + DECLSPEC_XFGVIRT(ICredentialProviderUserArray, GetAt) + HRESULT ( STDMETHODCALLTYPE *GetAt )( + ICredentialProviderUserArray * This, + /* [in] */ DWORD userIndex, + /* [annotation][out] */ + _COM_Outptr_ ICredentialProviderUser **user); + + END_INTERFACE + } ICredentialProviderUserArrayVtbl; + + interface ICredentialProviderUserArray + { + CONST_VTBL struct ICredentialProviderUserArrayVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProviderUserArray_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProviderUserArray_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProviderUserArray_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProviderUserArray_SetProviderFilter(This,guidProviderToFilterTo) \ + ( (This)->lpVtbl -> SetProviderFilter(This,guidProviderToFilterTo) ) + +#define ICredentialProviderUserArray_GetAccountOptions(This,credentialProviderAccountOptions) \ + ( (This)->lpVtbl -> GetAccountOptions(This,credentialProviderAccountOptions) ) + +#define ICredentialProviderUserArray_GetCount(This,userCount) \ + ( (This)->lpVtbl -> GetCount(This,userCount) ) + +#define ICredentialProviderUserArray_GetAt(This,userIndex,user) \ + ( (This)->lpVtbl -> GetAt(This,userIndex,user) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProviderUserArray_INTERFACE_DEFINED__ */ + + +#ifndef __ICredentialProviderSetUserArray_INTERFACE_DEFINED__ +#define __ICredentialProviderSetUserArray_INTERFACE_DEFINED__ + +/* interface ICredentialProviderSetUserArray */ +/* [ref][object][uuid][local] */ + + +EXTERN_C const IID IID_ICredentialProviderSetUserArray; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("095c1484-1c0c-4388-9c6d-500e61bf84bd") + ICredentialProviderSetUserArray : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetUserArray( + /* [annotation][in] */ + _In_ ICredentialProviderUserArray *users) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICredentialProviderSetUserArrayVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICredentialProviderSetUserArray * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICredentialProviderSetUserArray * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICredentialProviderSetUserArray * This); + + DECLSPEC_XFGVIRT(ICredentialProviderSetUserArray, SetUserArray) + HRESULT ( STDMETHODCALLTYPE *SetUserArray )( + ICredentialProviderSetUserArray * This, + /* [annotation][in] */ + _In_ ICredentialProviderUserArray *users); + + END_INTERFACE + } ICredentialProviderSetUserArrayVtbl; + + interface ICredentialProviderSetUserArray + { + CONST_VTBL struct ICredentialProviderSetUserArrayVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICredentialProviderSetUserArray_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICredentialProviderSetUserArray_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICredentialProviderSetUserArray_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICredentialProviderSetUserArray_SetUserArray(This,users) \ + ( (This)->lpVtbl -> SetUserArray(This,users) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICredentialProviderSetUserArray_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_credentialprovider_0000_0013 */ +/* [local] */ + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + + +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0013_v0_0_s_ifspec; + + +#ifndef __CredentialProviders_LIBRARY_DEFINED__ +#define __CredentialProviders_LIBRARY_DEFINED__ + +/* library CredentialProviders */ +/* [uuid] */ + + +EXTERN_C const IID LIBID_CredentialProviders; + +EXTERN_C const CLSID CLSID_PasswordCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("60b78e88-ead8-445c-9cfd-0b87f74ea6cd") +PasswordCredentialProvider; +#endif + +EXTERN_C const CLSID CLSID_V1PasswordCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("6f45dc1e-5384-457a-bc13-2cd81b0d28ed") +V1PasswordCredentialProvider; +#endif + +EXTERN_C const CLSID CLSID_PINLogonCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("cb82ea12-9f71-446d-89e1-8d0924e1256e") +PINLogonCredentialProvider; +#endif + +EXTERN_C const CLSID CLSID_NPCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3dd6bec0-8193-4ffe-ae25-e08e39ea4063") +NPCredentialProvider; +#endif + +EXTERN_C const CLSID CLSID_SmartcardCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8FD7E19C-3BF7-489B-A72C-846AB3678C96") +SmartcardCredentialProvider; +#endif + +EXTERN_C const CLSID CLSID_V1SmartcardCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8bf9a910-a8ff-457f-999f-a5ca10b4a885") +V1SmartcardCredentialProvider; +#endif + +EXTERN_C const CLSID CLSID_SmartcardPinProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("94596c7e-3744-41ce-893e-bbf09122f76a") +SmartcardPinProvider; +#endif + +EXTERN_C const CLSID CLSID_SmartcardReaderSelectionProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1b283861-754f-4022-ad47-a5eaaa618894") +SmartcardReaderSelectionProvider; +#endif + +EXTERN_C const CLSID CLSID_SmartcardWinRTProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1ee7337f-85ac-45e2-a23c-37c753209769") +SmartcardWinRTProvider; +#endif + +EXTERN_C const CLSID CLSID_GenericCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("25CBB996-92ED-457e-B28C-4774084BD562") +GenericCredentialProvider; +#endif + +EXTERN_C const CLSID CLSID_RASProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("5537E283-B1E7-4EF8-9C6E-7AB0AFE5056D") +RASProvider; +#endif + +EXTERN_C const CLSID CLSID_OnexCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("07AA0886-CC8D-4e19-A410-1C75AF686E62") +OnexCredentialProvider; +#endif + +EXTERN_C const CLSID CLSID_OnexPlapSmartcardCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("33c86cd6-705f-4ba1-9adb-67070b837775") +OnexPlapSmartcardCredentialProvider; +#endif + +EXTERN_C const CLSID CLSID_VaultProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("503739d0-4c5e-4cfd-b3ba-d881334f0df2") +VaultProvider; +#endif + +EXTERN_C const CLSID CLSID_WinBioCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("BEC09223-B018-416D-A0AC-523971B639F5") +WinBioCredentialProvider; +#endif + +EXTERN_C const CLSID CLSID_V1WinBioCredentialProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("AC3AC249-E820-4343-A65B-377AC634DC09") +V1WinBioCredentialProvider; +#endif +#endif /* __CredentialProviders_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_credentialprovider_0000_0014 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0014_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_credentialprovider_0000_0014_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HBITMAP_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HBITMAP * ); +void __RPC_USER HBITMAP_UserFree( __RPC__in unsigned long *, __RPC__in HBITMAP * ); + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HBITMAP_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HBITMAP * ); +void __RPC_USER HBITMAP_UserFree64( __RPC__in unsigned long *, __RPC__in HBITMAP * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/credentialprovider.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/credentialprovider.idl new file mode 100644 index 0000000000000000000000000000000000000000..542eb5620f1b6338c6ff0a74aafc5676ee89fcf8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/credentialprovider.idl @@ -0,0 +1,426 @@ +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "wtypes.idl"; +import "shobjidl_core.idl"; +import "propsys.idl"; +import "unknwn.idl"; + +[v1_enum] typedef enum _CREDENTIAL_PROVIDER_USAGE_SCENARIO +{ + CPUS_INVALID = 0, + CPUS_LOGON, + CPUS_UNLOCK_WORKSTATION, + CPUS_CHANGE_PASSWORD, + CPUS_CREDUI, + CPUS_PLAP, +} CREDENTIAL_PROVIDER_USAGE_SCENARIO; + +[v1_enum] typedef enum _CREDENTIAL_PROVIDER_FIELD_TYPE +{ + CPFT_INVALID = 0, + CPFT_LARGE_TEXT, + CPFT_SMALL_TEXT, + CPFT_COMMAND_LINK, + CPFT_EDIT_TEXT, + CPFT_PASSWORD_TEXT, + CPFT_TILE_IMAGE, + CPFT_CHECKBOX, + CPFT_COMBOBOX, + CPFT_SUBMIT_BUTTON, +} CREDENTIAL_PROVIDER_FIELD_TYPE; + +[v1_enum] typedef enum _CREDENTIAL_PROVIDER_FIELD_STATE +{ + CPFS_HIDDEN = 0, + CPFS_DISPLAY_IN_SELECTED_TILE, + CPFS_DISPLAY_IN_DESELECTED_TILE, + CPFS_DISPLAY_IN_BOTH, +} CREDENTIAL_PROVIDER_FIELD_STATE; + +[v1_enum] typedef enum _CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE +{ + CPFIS_NONE = 0, + CPFIS_READONLY, + CPFIS_DISABLED, + CPFIS_FOCUSED, +} CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE; + +// +// Note: values for guidFieldType used by Microsoft implementations of ICredentialProvider +// can be found in shlguid.h. +// +typedef struct _CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR +{ + DWORD dwFieldID; + CREDENTIAL_PROVIDER_FIELD_TYPE cpft; + LPWSTR pszLabel; + GUID guidFieldType; +} CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR; + +[v1_enum] typedef enum _CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE +{ + CPGSR_NO_CREDENTIAL_NOT_FINISHED, + CPGSR_NO_CREDENTIAL_FINISHED, + CPGSR_RETURN_CREDENTIAL_FINISHED, + CPGSR_RETURN_NO_CREDENTIAL_FINISHED, +} CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE; + +[v1_enum] typedef enum _CREDENTIAL_PROVIDER_STATUS_ICON +{ + CPSI_NONE = 0, + CPSI_ERROR, + CPSI_WARNING, + CPSI_SUCCESS, +} CREDENTIAL_PROVIDER_STATUS_ICON; + +typedef struct _CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION +{ + ULONG ulAuthenticationPackage; + GUID clsidCredentialProvider; + ULONG cbSerialization; + [size_is(cbSerialization)] byte* rgbSerialization; +} CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)") +[v1_enum] typedef enum CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS +{ + CPAO_NONE = 0x00000000, // Default + CPAO_EMPTY_LOCAL = 0x00000001, // Need to enumerate the local empty tile + CPAO_EMPTY_CONNECTED = 0x00000002, // Need to enumerate the connected empty tile +} CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS)") + +[v1_enum] typedef enum CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS +{ + CPCFO_NONE = 0x00000000, // Default + CPCFO_ENABLE_PASSWORD_REVEAL = 0x00000001, // Enable the "password reveal" button in the modern control + CPCFO_IS_EMAIL_ADDRESS = 0x00000002, // This is a email address, so set the keyboard input scope appropriately + CPCFO_ENABLE_TOUCH_KEYBOARD_AUTO_INVOKE = 0x00000004, // Touch keyboard will be invoked automatically on the provider. This should be only set on the CPFG_CREDENTIAL_PROVIDER_LOGO field + CPCFO_NUMBERS_ONLY = 0x00000008, // The edit field will show numbers only. This should be only set on the CPFT_PASSWORD_TEXT field + CPCFO_SHOW_ENGLISH_KEYBOARD = 0x00000010, // The edit field will show English keyboard. +} CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS)") +cpp_quote("#endif // (NTDDI_VERSION >= NTDDI_WIN8)") + +// +// No idl files contain NTSTATUS. Therefore we mirror its definition in ntdef.h. +// +cpp_quote("#ifdef __midl") +typedef LONG NTSTATUS; +cpp_quote("#else // __midl") +cpp_quote("#ifndef NTSTATUS") +cpp_quote("typedef _Return_type_success_(return >= 0) LONG NTSTATUS;") +cpp_quote("#endif // NTSTATUS") +cpp_quote("#endif // __midl") + +cpp_quote("#define CREDENTIAL_PROVIDER_NO_DEFAULT ((DWORD)-1)") + +interface ICredentialProviderCredentialEvents; // forward + +[ + local, + object, + pointer_default(ref), + uuid(63913a93-40c1-481a-818d-4072ff8c70cc), +] +interface ICredentialProviderCredential : IUnknown +{ + HRESULT Advise([in, annotation("_In_")] ICredentialProviderCredentialEvents* pcpce); + HRESULT UnAdvise(); + + HRESULT SetSelected([out, annotation("_Out_")] BOOL* pbAutoLogon); + HRESULT SetDeselected(); + + HRESULT GetFieldState([in] DWORD dwFieldID, + [out, annotation("_Out_")] CREDENTIAL_PROVIDER_FIELD_STATE* pcpfs, + [out, annotation("_Out_")] CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE* pcpfis); + + HRESULT GetStringValue([in] DWORD dwFieldID, [out, string, annotation("_Outptr_result_nullonfailure_")] LPWSTR* ppsz); + HRESULT GetBitmapValue([in] DWORD dwFieldID, [out, annotation("_Outptr_result_nullonfailure_")] HBITMAP* phbmp); + HRESULT GetCheckboxValue([in] DWORD dwFieldID, [out, annotation("_Out_")] BOOL* pbChecked, [out, string, annotation("_Outptr_result_nullonfailure_")] LPWSTR* ppszLabel); + HRESULT GetSubmitButtonValue([in] DWORD dwFieldID, [out, annotation("_Out_")] DWORD* pdwAdjacentTo); + + HRESULT GetComboBoxValueCount([in] DWORD dwFieldID, [out, annotation("_Out_")] DWORD* pcItems, [out, annotation("_Out_")] DWORD* pdwSelectedItem); + HRESULT GetComboBoxValueAt([in] DWORD dwFieldID, DWORD dwItem, [out, string, annotation("_Outptr_result_nullonfailure_")] LPWSTR* ppszItem); + + HRESULT SetStringValue([in] DWORD dwFieldID, [in, string, annotation("_In_")] LPCWSTR psz); + HRESULT SetCheckboxValue([in] DWORD dwFieldID, [in] BOOL bChecked); + HRESULT SetComboBoxSelectedValue([in] DWORD dwFieldID, [in] DWORD dwSelectedItem); + HRESULT CommandLinkClicked([in] DWORD dwFieldID); + + HRESULT GetSerialization([out, annotation("_Out_")] CREDENTIAL_PROVIDER_GET_SERIALIZATION_RESPONSE* pcpgsr, + [out, annotation("_Out_")] CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION* pcpcs, + [out, annotation("_Outptr_result_maybenull_")] LPWSTR* ppszOptionalStatusText, + [out, annotation("_Out_")] CREDENTIAL_PROVIDER_STATUS_ICON* pcpsiOptionalStatusIcon); + HRESULT ReportResult([in] NTSTATUS ntsStatus, + [in] NTSTATUS ntsSubstatus, + [out, annotation("_Outptr_result_maybenull_")] LPWSTR* ppszOptionalStatusText, + [out, annotation("_Out_")] CREDENTIAL_PROVIDER_STATUS_ICON* pcpsiOptionalStatusIcon); +}; + +[ + local, + object, + pointer_default(ref), + uuid(9090be5b-502b-41fb-bccc-0049a6c7254b), +] +interface IQueryContinueWithStatus : IQueryContinue +{ + HRESULT SetStatusMessage([in, string, annotation("_In_")] LPCWSTR psz); +}; + +[ + local, + object, + pointer_default(ref), + uuid(9387928b-ac75-4bf9-8ab2-2b93c4a55290), +] +interface IConnectableCredentialProviderCredential : ICredentialProviderCredential +{ + HRESULT Connect([in, annotation("_In_")] IQueryContinueWithStatus* pqcws); + HRESULT Disconnect(); +}; + +[ + object, + pointer_default(ref), + uuid(fa6fa76b-66b7-4b11-95f1-86171118e816), +] +interface ICredentialProviderCredentialEvents : IUnknown +{ + // ICredentialProviderCredential *pcpc parameters on all methods are deprecated, should pass nullptr. + HRESULT SetFieldState([in] ICredentialProviderCredential* pcpc, + [in] DWORD dwFieldID, + [in] CREDENTIAL_PROVIDER_FIELD_STATE cpfs); + HRESULT SetFieldInteractiveState([in] ICredentialProviderCredential* pcpc, + [in] DWORD dwFieldID, + [in] CREDENTIAL_PROVIDER_FIELD_INTERACTIVE_STATE cpfis); + + HRESULT SetFieldString([in] ICredentialProviderCredential* pcpc, + [in] DWORD dwFieldID, + [in, string, unique] LPCWSTR psz); + HRESULT SetFieldCheckbox([in] ICredentialProviderCredential* pcpc, + [in] DWORD dwFieldID, + [in] BOOL bChecked, + [in] LPCWSTR pszLabel); + HRESULT SetFieldBitmap([in] ICredentialProviderCredential* pcpc, + [in] DWORD dwFieldID, + [in] HBITMAP hbmp); + + HRESULT SetFieldComboBoxSelectedItem([in] ICredentialProviderCredential* pcpc, + [in] DWORD dwFieldID, + [in] DWORD dwSelectedItem); + HRESULT DeleteFieldComboBoxItem([in] ICredentialProviderCredential* pcpc, + [in] DWORD dwFieldID, + [in] DWORD dwItem); + HRESULT AppendFieldComboBoxItem([in] ICredentialProviderCredential* pcpc, + [in] DWORD dwFieldID, + [in, string] LPCWSTR pszItem); + + HRESULT SetFieldSubmitButton([in] ICredentialProviderCredential* pcpc, + [in] DWORD dwFieldID, + [in] DWORD dwAdjacentTo); + HRESULT OnCreatingWindow([out] HWND* phwndOwner); +}; + +interface ICredentialProviderEvents; // forward + +[ + local, + object, + pointer_default(ref), + uuid(d27c3481-5a1c-45b2-8aaa-c20ebbe8229e), +] +interface ICredentialProvider : IUnknown +{ + HRESULT SetUsageScenario([in] CREDENTIAL_PROVIDER_USAGE_SCENARIO cpus, + [in] DWORD dwFlags); + HRESULT SetSerialization([in, annotation("_In_")] const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION* pcpcs); + + HRESULT Advise([in, annotation("_In_")] ICredentialProviderEvents* pcpe, [in, annotation("_In_")] UINT_PTR upAdviseContext); + HRESULT UnAdvise(); + + HRESULT GetFieldDescriptorCount([out, annotation("_Out_")] DWORD* pdwCount); + HRESULT GetFieldDescriptorAt([in] DWORD dwIndex, + [out, annotation("_Outptr_result_nullonfailure_")] CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR** ppcpfd); + + HRESULT GetCredentialCount([out, annotation("_Out_")] DWORD* pdwCount, + [out, annotation("_Out_")] DWORD* pdwDefault, + [out, annotation("_Out_")] BOOL* pbAutoLogonWithDefault); + HRESULT GetCredentialAt([in] DWORD dwIndex, + [out, annotation("_COM_Outptr_")] ICredentialProviderCredential** ppcpc); +}; + +[ + object, + pointer_default(ref), + uuid(34201e5a-a787-41a3-a5a4-bd6dcf2a854e), +] +interface ICredentialProviderEvents : IUnknown +{ + HRESULT CredentialsChanged([in] UINT_PTR upAdviseContext); +}; + +[ + local, + object, + pointer_default(ref), + uuid(a5da53f9-d475-4080-a120-910c4a739880), +] +interface ICredentialProviderFilter : IUnknown +{ + HRESULT Filter([in] CREDENTIAL_PROVIDER_USAGE_SCENARIO cpus, + [in] DWORD dwFlags, + [in, size_is(cProviders), annotation("_In_reads_(cProviders)")] GUID* rgclsidProviders, + [in, out, size_is(cProviders), annotation("_Inout_updates_(cProviders)")] BOOL* rgbAllow, + [in] DWORD cProviders); + HRESULT UpdateRemoteCredential([in, annotation("_In_")] const CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION* pcpcsIn, + [out, annotation("_Out_")] CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION* pcpcsOut); +}; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)") +[ + local, + object, + pointer_default(ref), + uuid(fd672c54-40ea-4d6e-9b49-cfb1a7507bd7), +] +interface ICredentialProviderCredential2 : ICredentialProviderCredential +{ + HRESULT GetUserSid([out, string, annotation("_Outptr_result_maybenull_")] LPWSTR *sid); +}; + +[ + local, + object, + pointer_default(ref), + uuid(DBC6FB30-C843-49E3-A645-573E6F39446A), +] +interface ICredentialProviderCredentialWithFieldOptions : IUnknown +{ + HRESULT GetFieldOptions([in] DWORD fieldID, + [out, annotation("_Out_")] CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS *options); +}; + +[ + object, + pointer_default(ref), + uuid(B53C00B6-9922-4B78-B1F4-DDFE774DC39B), +] +interface ICredentialProviderCredentialEvents2 : ICredentialProviderCredentialEvents +{ + HRESULT BeginFieldUpdates(); + HRESULT EndFieldUpdates(); + HRESULT SetFieldOptions([in] ICredentialProviderCredential *credential, + [in] DWORD fieldID, + [in] CREDENTIAL_PROVIDER_CREDENTIAL_FIELD_OPTIONS options); +}; + +[ + local, + uuid(13793285-3ea6-40fd-b420-15f47da41fbb), + object, + pointer_default(ref), +] +interface ICredentialProviderUser : IUnknown +{ + HRESULT GetSid([out, string, annotation("_Outptr_result_nullonfailure_")] LPWSTR *sid); + HRESULT GetProviderID([out, annotation("_Out_")] GUID *providerID); + HRESULT GetStringValue([in, annotation("_In_")] REFPROPERTYKEY key, [out, string, annotation("_Outptr_result_nullonfailure_")] LPWSTR *stringValue); + HRESULT GetValue([in, annotation("_In_")] REFPROPERTYKEY key, [out, annotation("_Out_")] PROPVARIANT *value); +}; + +// Identity_LocalUserProvider: {A198529B-730F-4089-B646-A12557F5665E} +// Define the provider GUID to pass as guidProivderToFilterTo in ICredentialProviderUserArray::SetProviderFilter() to populate local users. +cpp_quote("DEFINE_GUID(Identity_LocalUserProvider, 0xA198529B, 0x730F, 0x4089, 0xB6, 0x46, 0xA1, 0x25, 0x57, 0xF5, 0x66, 0x5E);") + +[ + local, + uuid(90C119AE-0F18-4520-A1F1-114366A40FE8), + object, + pointer_default(ref), +] +interface ICredentialProviderUserArray : IUnknown +{ + HRESULT SetProviderFilter([in] REFGUID guidProviderToFilterTo); + HRESULT GetAccountOptions([out, annotation("_Out_")] CREDENTIAL_PROVIDER_ACCOUNT_OPTIONS *credentialProviderAccountOptions); + HRESULT GetCount([out, annotation("_Out_")] DWORD *userCount); + HRESULT GetAt([in] DWORD userIndex, [out, annotation("_COM_Outptr_")] ICredentialProviderUser **user); +}; + +[ + local, + uuid(095c1484-1c0c-4388-9c6d-500e61bf84bd), + object, + pointer_default(ref), +] +interface ICredentialProviderSetUserArray : IUnknown +{ + HRESULT SetUserArray([in, annotation("_In_")] ICredentialProviderUserArray *users); +}; + +cpp_quote("#endif // (NTDDI_VERSION >= NTDDI_WIN8)") + +// +// This typelib contains the CLSIDs of Microsoft's ICredentialProvider implementations. +// +[ + uuid(d545db01-e522-4a63-af83-d8ddf954004f), // LIBID_CredentialProviders +] +library CredentialProviders +{ + // CLSID_PasswordCredentialProvider + [ uuid(60b78e88-ead8-445c-9cfd-0b87f74ea6cd) ] coclass PasswordCredentialProvider { interface ICredentialProvider; } + + // CLSID_V1PasswordCredentialProvider + [ uuid(6f45dc1e-5384-457a-bc13-2cd81b0d28ed) ] coclass V1PasswordCredentialProvider { interface ICredentialProvider; } + + // CLSID_PINLogonCredentialProvider + [ uuid(cb82ea12-9f71-446d-89e1-8d0924e1256e) ] coclass PINLogonCredentialProvider { interface ICredentialProvider; } + + // CLSID_NPCredentialProvider + [ uuid(3dd6bec0-8193-4ffe-ae25-e08e39ea4063) ] coclass NPCredentialProvider { interface ICredentialProvider; } + + // CLSID_SmartcardCredentialProvider + [ uuid(8FD7E19C-3BF7-489B-A72C-846AB3678C96) ] coclass SmartcardCredentialProvider { interface ICredentialProvider; } + + // CLSID_V1SmartcardCredentialProvider + [ uuid(8bf9a910-a8ff-457f-999f-a5ca10b4a885) ] coclass V1SmartcardCredentialProvider { interface ICredentialProvider; } + + // CLSID_SmartcardPinProvider + [ uuid(94596c7e-3744-41ce-893e-bbf09122f76a) ] coclass SmartcardPinProvider { interface ICredentialProvider; } + + // CLSID_SmartcardReaderSelectionProvider + [ uuid(1b283861-754f-4022-ad47-a5eaaa618894) ] coclass SmartcardReaderSelectionProvider { interface ICredentialProvider; } + + // CLSID_SmartcardWinRTProvider + [ uuid(1ee7337f-85ac-45e2-a23c-37c753209769) ] coclass SmartcardWinRTProvider { interface ICredentialProvider; } + + // CLSID_GenericCredentialProvider + [ uuid(25CBB996-92ED-457e-B28C-4774084BD562) ] coclass GenericCredentialProvider { interface ICredentialProvider; } + + // CLSID_RASProvider + [ uuid(5537E283-B1E7-4EF8-9C6E-7AB0AFE5056D) ] coclass RASProvider { interface ICredentialProvider; } + + // CLSID_OnexCredentialProvider + [ uuid(07AA0886-CC8D-4e19-A410-1C75AF686E62) ] coclass OnexCredentialProvider { interface ICredentialProvider; } + + // CLSID_OnexPlapSmartcardCredentialProvider + [ uuid(33c86cd6-705f-4ba1-9adb-67070b837775) ] coclass OnexPlapSmartcardCredentialProvider { interface ICredentialProvider; } + + // CLSID_VaultProvider + [ uuid(503739d0-4c5e-4cfd-b3ba-d881334f0df2) ] coclass VaultProvider { interface ICredentialProvider; } + + // CLSID_WinBioCredentialProvider + [ uuid(BEC09223-B018-416D-A0AC-523971B639F5) ] coclass WinBioCredentialProvider { interface ICredentialProvider; } + + // CLSID_V1WinBioCredentialProvider + [ uuid(AC3AC249-E820-4343-A65B-377AC634DC09) ] coclass V1WinBioCredentialProvider { interface ICredentialProvider; } +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/credssp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/credssp.h new file mode 100644 index 0000000000000000000000000000000000000000..abdb9f668e28b183fe33c09c84b76773289f6afb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/credssp.h @@ -0,0 +1,99 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 2004. +// +// File: credssp.hxx +// +// Contents: Public CredSSP Security Package structures. +// +//---------------------------------------------------------------------------- + +#ifndef __CREDSSP_H__ +#define __CREDSSP_H__ +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#define CREDSSP_NAME L"CREDSSP" +#define TS_SSP_NAME_A "TSSSP" +#define TS_SSP_NAME L"TSSSP" + +#define szOID_TS_KP_TS_SERVER_AUTH "1.3.6.1.4.1.311.54.1.2" + +typedef struct _SecPkgContext_ClientCreds +{ + ULONG AuthBufferLen; + PUCHAR AuthBuffer; +} SecPkgContext_ClientCreds, *PSecPkgContext_ClientCreds; + +#define CREDSSP_SERVER_AUTH_NEGOTIATE 0x1 +#define CREDSSP_SERVER_AUTH_CERTIFICATE 0x2 +#define CREDSSP_SERVER_AUTH_LOOPBACK 0x4 + +#define SECPKG_ALT_ATTR 0x80000000UL +#define SECPKG_ATTR_CREDS 0x80000080UL +#define SECPKG_ATTR_NEGOTIATION_PACKAGE 0x80000081UL +#define SECPKG_ATTR_C_ACCESS_TOKEN (SECPKG_ATTR_ACCESS_TOKEN | SECPKG_ALT_ATTR) +#define SECPKG_ATTR_C_FULL_ACCESS_TOKEN 0x80000082UL +#define SECPKG_ATTR_SERVER_AUTH_FLAGS 0x80000083UL +#define SECPKG_ATTR_CERT_TRUST_STATUS 0x80000084UL +#define SECPKG_ATTR_C_FULL_IDENT_TOKEN 0x80000085UL +#define SECPKG_ATTR_CREDS_2 0x80000086UL + + +typedef enum _CREDSSP_SUBMIT_TYPE { + CredsspPasswordCreds = 2, + CredsspSchannelCreds = 4, + CredsspCertificateCreds = 13, + CredsspSubmitBufferBoth = 50, + CredsspSubmitBufferBothOld = 51, + CredsspCredEx = 100, +} CREDSPP_SUBMIT_TYPE; + +typedef struct _CREDSSP_CRED { + CREDSPP_SUBMIT_TYPE Type; + PVOID pSchannelCred; + PVOID pSpnegoCred; +} CREDSSP_CRED, *PCREDSSP_CRED; + +#define CREDSSP_CRED_EX_VERSION 0 + +typedef struct _CREDSSP_CRED_EX { + CREDSPP_SUBMIT_TYPE Type; // must be CredsspCredEx + DWORD Version; // must be CREDSSP_CRED_EX_VERSION + DWORD Flags; + DWORD Reserved; + CREDSSP_CRED Cred; +} CREDSSP_CRED_EX, *PCREDSSP_CRED_EX; + +#ifdef __cplusplus +static_assert(FIELD_OFFSET(CREDSSP_CRED_EX, Cred) == 16, "CREDSSP_CRED_EX layout changed - this may break WoW64"); +#endif + +#define CREDSSP_FLAG_REDIRECT 0x00000001 + +#ifdef SECURITY_KERNEL +PSecurityFunctionTableW +SEC_ENTRY +SpInitSecurityInterfaceW(VOID); +#endif + +#ifdef __cplusplus +} // extern "C" +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //__CREDSSP_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/crtrow.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/crtrow.idl new file mode 100644 index 0000000000000000000000000000000000000000..796470361948d1eee60ba80aed424869fb25547a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/crtrow.idl @@ -0,0 +1,64 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: crtrow.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" + + REMOTED_INTERFACE(0c733ab2-2a1c-11ce-ade5-00aa0044773d) + + +interface ICreateRow : IUnknown +{ + +[local] +HRESULT CreateRow( + [in, unique, annotation("_In_opt_")] IUnknown* pUnkOuter, + [in, annotation("_In_z_")] LPCOLESTR pwszURL, + [in] DBBINDURLFLAG dwBindURLFlags, + [in] REFGUID rguid, + [in] REFIID riid, + [in, unique, annotation("_In_opt_")] IAuthenticate* pAuthenticate, + [in, out, unique, annotation("_Inout_opt_")] DBIMPLICITSESSION* pImplSession, + [in, out, unique, annotation("_Out_")] DBBINDURLSTATUS* pdwBindStatus, + [out, annotation("_Outptr_opt_result_maybenull_")] LPOLESTR* ppwszNewURL, + [out, iid_is(riid), annotation("_Outptr_")] IUnknown** ppUnk + ); + +[call_as(CreateRow)] +HRESULT RemoteCreateRow( + [in] IUnknown * pUnkOuter, + [in] LPCOLESTR pwszURL, + [in] DBBINDURLFLAG dwBindURLFlags, + [in] REFGUID rguid, + [in] REFIID riid, + [in] IAuthenticate * pAuthenticate, + [in] IUnknown *pSessionUnkOuter, + [in, unique] IID *piid, + [in, out, unique, iid_is(piid)] IUnknown **ppSession, + [in, out, unique] DBBINDURLSTATUS * pdwBindStatus, + [in, out, unique] LPOLESTR * ppwszNewURL, + [out, iid_is(riid)] IUnknown ** ppUnk + ); + +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cryptdlg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cryptdlg.h new file mode 100644 index 0000000000000000000000000000000000000000..13feace6a3b88e11a7fbffc91f767bf593063dce --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cryptdlg.h @@ -0,0 +1,486 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992 - 1997. +// +// File: cryptdlg.h +// +// Contents: Common Cryptographic Dialog API Prototypes and Definitions +// +//---------------------------------------------------------------------------- + +#ifndef __CRYPTDLG_H__ +#define __CRYPTDLG_H__ + +#if defined (_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef _CRYPTDLG_ +#define CRYPTDLGAPI +#else +#define CRYPTDLGAPI DECLSPEC_IMPORT +#endif + +#if (_WIN32_WINNT >= 0x0400) || defined(_MAC) || defined(WIN16) + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +// Master flags to control how revocation is managed + +#define CRYTPDLG_FLAGS_MASK 0xff000000 +#define CRYPTDLG_REVOCATION_DEFAULT 0x00000000 +#define CRYPTDLG_REVOCATION_ONLINE 0x80000000 +#define CRYPTDLG_REVOCATION_CACHE 0x40000000 +#define CRYPTDLG_REVOCATION_NONE 0x20000000 +#define CRYPTDLG_CACHE_ONLY_URL_RETRIEVAL 0x10000000 +#define CRYPTDLG_DISABLE_AIA 0x08000000 + +// Policy flags which control how we deal with user's certificates + +#define CRYPTDLG_POLICY_MASK 0x0000FFFF +#define POLICY_IGNORE_NON_CRITICAL_BC 0x00000001 + +#define CRYPTDLG_ACTION_MASK 0xFFFF0000 +#define ACTION_REVOCATION_DEFAULT_ONLINE 0x00010000 +#define ACTION_REVOCATION_DEFAULT_CACHE 0x00020000 + +// +// Many of the common dialogs can be passed a filter proc to reduce +// the set of certificates displayed. A generic filter proc has been +// provided to cover many of the generic cases. +// Return TRUE to display and FALSE to hide + +typedef BOOL (WINAPI * PFNCMFILTERPROC)( + IN PCCERT_CONTEXT pCertContext, + IN LPARAM, // lCustData, a cookie + IN DWORD, // dwFlags + IN DWORD); // dwDisplayWell + +// Display Well Values +#define CERT_DISPWELL_SELECT 1 +#define CERT_DISPWELL_TRUST_CA_CERT 2 +#define CERT_DISPWELL_TRUST_LEAF_CERT 3 +#define CERT_DISPWELL_TRUST_ADD_CA_CERT 4 +#define CERT_DISPWELL_TRUST_ADD_LEAF_CERT 5 +#define CERT_DISPWELL_DISTRUST_CA_CERT 6 +#define CERT_DISPWELL_DISTRUST_LEAF_CERT 7 +#define CERT_DISPWELL_DISTRUST_ADD_CA_CERT 8 +#define CERT_DISPWELL_DISTRUST_ADD_LEAF_CERT 9 + +// +typedef UINT (WINAPI * PFNCMHOOKPROC)( + IN HWND hwndDialog, + IN UINT message, + IN WPARAM wParam, + IN LPARAM lParam); + +// +#define CSS_SELECTCERT_MASK 0x00ffffff +#define CSS_HIDE_PROPERTIES 0x00000001 +#define CSS_ENABLEHOOK 0x00000002 +#define CSS_ALLOWMULTISELECT 0x00000004 +#define CSS_SHOW_HELP 0x00000010 +#define CSS_ENABLETEMPLATE 0x00000020 +#define CSS_ENABLETEMPLATEHANDLE 0x00000040 + +#define SELCERT_OK IDOK +#define SELCERT_CANCEL IDCANCEL +#define SELCERT_PROPERTIES 100 +#define SELCERT_FINEPRINT 101 +#define SELCERT_CERTLIST 102 +#define SELCERT_HELP IDHELP +#define SELCERT_ISSUED_TO 103 +#define SELCERT_VALIDITY 104 +#define SELCERT_ALGORITHM 105 +#define SELCERT_SERIAL_NUM 106 +#define SELCERT_THUMBPRINT 107 + +typedef struct tagCSSA { + DWORD dwSize; + HWND hwndParent; + HINSTANCE hInstance; + LPCSTR pTemplateName; + DWORD dwFlags; + LPCSTR szTitle; + DWORD cCertStore; + HCERTSTORE * arrayCertStore; + LPCSTR szPurposeOid; + DWORD cCertContext; + PCCERT_CONTEXT * arrayCertContext; + LPARAM lCustData; + PFNCMHOOKPROC pfnHook; + PFNCMFILTERPROC pfnFilter; + LPCSTR szHelpFileName; + DWORD dwHelpId; + HCRYPTPROV hprov; +} CERT_SELECT_STRUCT_A, *PCERT_SELECT_STRUCT_A; + +typedef struct tagCSSW { + DWORD dwSize; + HWND hwndParent; + HINSTANCE hInstance; + LPCWSTR pTemplateName; + DWORD dwFlags; + LPCWSTR szTitle; + DWORD cCertStore; + HCERTSTORE * arrayCertStore; + LPCSTR szPurposeOid; + DWORD cCertContext; + PCCERT_CONTEXT * arrayCertContext; + LPARAM lCustData; + PFNCMHOOKPROC pfnHook; + PFNCMFILTERPROC pfnFilter; + LPCWSTR szHelpFileName; + DWORD dwHelpId; + HCRYPTPROV hprov; +} CERT_SELECT_STRUCT_W, *PCERT_SELECT_STRUCT_W; + +#ifdef UNICODE +typedef CERT_SELECT_STRUCT_W CERT_SELECT_STRUCT; +typedef PCERT_SELECT_STRUCT_W PCERT_SELECT_STRUCT; +#else +typedef CERT_SELECT_STRUCT_A CERT_SELECT_STRUCT; +typedef PCERT_SELECT_STRUCT_A PCERT_SELECT_STRUCT; +#endif // UNICODE + +CRYPTDLGAPI +BOOL +WINAPI +CertSelectCertificateA( + IN OUT PCERT_SELECT_STRUCT_A pCertSelectInfo + ); +#ifdef MAC +#define CertSelectCertificate CertSelectCertificateA +#else // !MAC +CRYPTDLGAPI +BOOL +WINAPI +CertSelectCertificateW( + IN OUT PCERT_SELECT_STRUCT_W pCertSelectInfo + ); +#ifdef UNICODE +#define CertSelectCertificate CertSelectCertificateW +#else +#define CertSelectCertificate CertSelectCertificateA +#endif +#endif // MAC + +///////////////////////////////////////////////////////////// + +#define CM_VIEWFLAGS_MASK 0x00ffffff +#define CM_ENABLEHOOK 0x00000001 +#define CM_SHOW_HELP 0x00000002 +#define CM_SHOW_HELPICON 0x00000004 +#define CM_ENABLETEMPLATE 0x00000008 +#define CM_HIDE_ADVANCEPAGE 0x00000010 +#define CM_HIDE_TRUSTPAGE 0x00000020 +#define CM_NO_NAMECHANGE 0x00000040 +#define CM_NO_EDITTRUST 0x00000080 +#define CM_HIDE_DETAILPAGE 0x00000100 +#define CM_ADD_CERT_STORES 0x00000200 +#define CERTVIEW_CRYPTUI_LPARAM 0x00800000 + +typedef struct tagCERT_VIEWPROPERTIES_STRUCT_A { + DWORD dwSize; + HWND hwndParent; + HINSTANCE hInstance; + DWORD dwFlags; + LPCSTR szTitle; + PCCERT_CONTEXT pCertContext; + LPSTR * arrayPurposes; + DWORD cArrayPurposes; + DWORD cRootStores; // Count of Root Stores + HCERTSTORE * rghstoreRoots; // Array of root stores + DWORD cStores; // Count of other stores to search + HCERTSTORE * rghstoreCAs; // Array of other stores to search + DWORD cTrustStores; // Count of trust stores + HCERTSTORE * rghstoreTrust; // Array of trust stores + HCRYPTPROV hprov; // Provider to use for verification + LPARAM lCustData; + DWORD dwPad; + LPCSTR szHelpFileName; + DWORD dwHelpId; + DWORD nStartPage; + DWORD cArrayPropSheetPages; + PROPSHEETPAGE * arrayPropSheetPages; +} CERT_VIEWPROPERTIES_STRUCT_A, *PCERT_VIEWPROPERTIES_STRUCT_A; + +typedef struct tagCERT_VIEWPROPERTIES_STRUCT_W { + DWORD dwSize; + HWND hwndParent; + HINSTANCE hInstance; + DWORD dwFlags; + LPCWSTR szTitle; + PCCERT_CONTEXT pCertContext; + LPSTR * arrayPurposes; + DWORD cArrayPurposes; + DWORD cRootStores; // Count of Root Stores + HCERTSTORE * rghstoreRoots; // Array of root stores + DWORD cStores; // Count of other stores to search + HCERTSTORE * rghstoreCAs; // Array of other stores to search + DWORD cTrustStores; // Count of trust stores + HCERTSTORE * rghstoreTrust; // Array of trust stores + HCRYPTPROV hprov; // Provider to use for verification + LPARAM lCustData; + DWORD dwPad; + LPCWSTR szHelpFileName; + DWORD dwHelpId; + DWORD nStartPage; + DWORD cArrayPropSheetPages; + PROPSHEETPAGE * arrayPropSheetPages; +} CERT_VIEWPROPERTIES_STRUCT_W, *PCERT_VIEWPROPERTIES_STRUCT_W; + +#ifdef UNICODE +typedef CERT_VIEWPROPERTIES_STRUCT_W CERT_VIEWPROPERTIES_STRUCT; +typedef PCERT_VIEWPROPERTIES_STRUCT_W PCERT_VIEWPROPERTIES_STRUCT; +#else +typedef CERT_VIEWPROPERTIES_STRUCT_A CERT_VIEWPROPERTIES_STRUCT; +typedef PCERT_VIEWPROPERTIES_STRUCT_A PCERT_VIEWPROPERTIES_STRUCT; +#endif // UNICODE + +CRYPTDLGAPI +BOOL +WINAPI +CertViewPropertiesA( + PCERT_VIEWPROPERTIES_STRUCT_A pCertViewInfo + ); +#ifdef MAC +#define CertViewProperties CertViewPropertiesA +#else // !MAC +CRYPTDLGAPI +BOOL +WINAPI +CertViewPropertiesW( + PCERT_VIEWPROPERTIES_STRUCT_W pCertViewInfo + ); + +#ifdef UNICODE +#define CertViewProperties CertViewPropertiesW +#else +#define CertViewProperties CertViewPropertiesA +#endif +#endif // MAC + + +// +// We provide a default filter function that people can use to do some +// of the most simple things. +// + +#define CERT_FILTER_OP_EXISTS 1 +#define CERT_FILTER_OP_NOT_EXISTS 2 +#define CERT_FILTER_OP_EQUALITY 3 + +typedef struct tagCMOID { + LPCSTR szExtensionOID; // Extension to filter on + DWORD dwTestOperation; + LPBYTE pbTestData; + DWORD cbTestData; +} CERT_FILTER_EXTENSION_MATCH; + +#define CERT_FILTER_INCLUDE_V1_CERTS 0x0001 +#define CERT_FILTER_VALID_TIME_RANGE 0x0002 +#define CERT_FILTER_VALID_SIGNATURE 0x0004 +#define CERT_FILTER_LEAF_CERTS_ONLY 0x0008 +#define CERT_FILTER_ISSUER_CERTS_ONLY 0x0010 +#define CERT_FILTER_KEY_EXISTS 0x0020 + +typedef struct tagCMFLTR { + DWORD dwSize; + DWORD cExtensionChecks; + CERT_FILTER_EXTENSION_MATCH * arrayExtensionChecks; + DWORD dwCheckingFlags; +} CERT_FILTER_DATA; + +// +// Maybe this should not be here -- but until it goes into wincrypt.h +// + +// +// Get a formatted friendly name for a certificate + +CRYPTDLGAPI +DWORD +WINAPI +GetFriendlyNameOfCertA( + _In_ PCCERT_CONTEXT pccert, + _Out_writes_to_opt_(cch, return) LPSTR pch, + _In_ DWORD cch + ); +CRYPTDLGAPI +DWORD +WINAPI +GetFriendlyNameOfCertW( + _In_ PCCERT_CONTEXT pccert, + _Out_writes_to_opt_(cwch, return) LPWSTR pwch, + _In_ DWORD cwch + ); + +#ifdef UNICODE +#define GetFriendlyNameOfCert GetFriendlyNameOfCertW +#else +#define GetFriendlyNameOfCert GetFriendlyNameOfCertA +#endif + + +// +// We also provide a WinTrust provider which performs the same set of +// parameter checking that we do in order to validate certificates. +// + +#define CERT_CERTIFICATE_ACTION_VERIFY \ + { /* 7801ebd0-cf4b-11d0-851f-0060979387ea */ \ + 0x7801ebd0, \ + 0xcf4b, \ + 0x11d0, \ + {0x85, 0x1f, 0x00, 0x60, 0x97, 0x93, 0x87, 0xea} \ + } +#define szCERT_CERTIFICATE_ACTION_VERIFY \ + "{7801ebd0-cf4b-11d0-851f-0060979387ea}" + +typedef HRESULT (WINAPI * PFNTRUSTHELPER)( + IN PCCERT_CONTEXT pCertContext, + IN LPARAM lCustData, + IN BOOL fLeafCertificate, + IN LPBYTE pbTrustBlob); +// +// Failure Reasons: +// + +#define CERT_VALIDITY_BEFORE_START 0x00000001 +#define CERT_VALIDITY_AFTER_END 0x00000002 +#define CERT_VALIDITY_SIGNATURE_FAILS 0x00000004 +#define CERT_VALIDITY_CERTIFICATE_REVOKED 0x00000008 +#define CERT_VALIDITY_KEY_USAGE_EXT_FAILURE 0x00000010 +#define CERT_VALIDITY_EXTENDED_USAGE_FAILURE 0x00000020 +#define CERT_VALIDITY_NAME_CONSTRAINTS_FAILURE 0x00000040 +#define CERT_VALIDITY_UNKNOWN_CRITICAL_EXTENSION 0x00000080 +#define CERT_VALIDITY_ISSUER_INVALID 0x00000100 +#define CERT_VALIDITY_OTHER_EXTENSION_FAILURE 0x00000200 +#define CERT_VALIDITY_PERIOD_NESTING_FAILURE 0x00000400 +#define CERT_VALIDITY_OTHER_ERROR 0x00000800 +#define CERT_VALIDITY_ISSUER_DISTRUST 0x02000000 +#define CERT_VALIDITY_EXPLICITLY_DISTRUSTED 0x01000000 +#define CERT_VALIDITY_NO_ISSUER_CERT_FOUND 0x10000000 +#define CERT_VALIDITY_NO_CRL_FOUND 0x20000000 +#define CERT_VALIDITY_CRL_OUT_OF_DATE 0x40000000 +#define CERT_VALIDITY_NO_TRUST_DATA 0x80000000 +#define CERT_VALIDITY_MASK_TRUST 0xffff0000 +#define CERT_VALIDITY_MASK_VALIDITY 0x0000ffff + +#define CERT_TRUST_MASK 0x00ffffff +#define CERT_TRUST_DO_FULL_SEARCH 0x00000001 +#define CERT_TRUST_PERMIT_MISSING_CRLS 0x00000002 +#define CERT_TRUST_DO_FULL_TRUST 0x00000005 +#define CERT_TRUST_ADD_CERT_STORES CM_ADD_CERT_STORES + +// +// Trust data structure +// +// Returned data arrays will be allocated using LocalAlloc and must +// be freed by the caller. The data in the TrustInfo array are individually +// allocated and must be freed. The data in rgChain must be freed by +// calling CertFreeCertificateContext. +// +// Defaults: +// pszUsageOid == NULL indicates that no trust validation should be done +// cRootStores == 0 Will default to User's Root store +// cStores == 0 Will default to User's CA and system's SPC stores +// cTrustStores == 0 Will default to User's TRUST store +// hprov == NULL Will default to RSABase +// any returned item which has a null pointer will not return that item. +// Notes: +// pfnTrustHelper is nyi + +typedef struct _CERT_VERIFY_CERTIFICATE_TRUST { + DWORD cbSize; // Size of this structure + PCCERT_CONTEXT pccert; // Certificate to be verified + DWORD dwFlags; // CERT_TRUST_* + DWORD dwIgnoreErr; // Errors to ignore (CERT_VALIDITY_*) + DWORD * pdwErrors; // Location to return error flags + LPSTR pszUsageOid; // Extended Usage OID for Certificate + HCRYPTPROV hprov; // Crypt Provider to use for validation + DWORD cRootStores; // Count of Root Stores + HCERTSTORE * rghstoreRoots; // Array of root stores + DWORD cStores; // Count of other stores to search + HCERTSTORE * rghstoreCAs; // Array of other stores to search + DWORD cTrustStores; // Count of trust stores + HCERTSTORE * rghstoreTrust; // Array of trust stores + LPARAM lCustData; // + PFNTRUSTHELPER pfnTrustHelper; // Callback function for cert validation + DWORD * pcChain; // Count of items in the chain array + PCCERT_CONTEXT ** prgChain; // Chain of certificates used + DWORD ** prgdwErrors; // Errors on a per certificate basis + DATA_BLOB ** prgpbTrustInfo; // Array of trust information used +} CERT_VERIFY_CERTIFICATE_TRUST, * PCERT_VERIFY_CERTIFICATE_TRUST; + +// +// Trust list manipulation routine +// +// CertModifyCertificatesToTrust can be used to do modifications to the set of certificates +// on trust lists for a given purpose. +// if hcertstoreTrust is NULL, the System Store TRUST in Current User will be used +// if pccertSigner is specified, it will be used to sign the resulting trust lists, +// it also restricts the set of trust lists that may be modified. +// + +#define CTL_MODIFY_REQUEST_ADD_NOT_TRUSTED 1 +#define CTL_MODIFY_REQUEST_REMOVE 2 +#define CTL_MODIFY_REQUEST_ADD_TRUSTED 3 + +typedef struct _CTL_MODIFY_REQUEST { + PCCERT_CONTEXT pccert; // Certificate to change trust on + DWORD dwOperation; // Operation to be performed + DWORD dwError; // Operation error code +} CTL_MODIFY_REQUEST, * PCTL_MODIFY_REQUEST; + +CRYPTDLGAPI +HRESULT +WINAPI +CertModifyCertificatesToTrust( + int cCerts, // Count of modifications to be done + PCTL_MODIFY_REQUEST rgCerts, // Array of modification requests + LPCSTR szPurpose, // Purpose OID to for modifications + HWND hwnd, // HWND for any dialogs + HCERTSTORE hcertstoreTrust, // Cert Store to store trust information in + PCCERT_CONTEXT pccertSigner); // Certificate to be used in signing trust list + +#ifdef WIN16 +// Need to define export functions in WATCOM. +BOOL +WINAPI CertConfigureTrustA(void); + +BOOL +WINAPI FormatVerisignExtension( + DWORD /*dwCertEncodingType*/, + DWORD /*dwFormatType*/, + DWORD /*dwFormatStrType*/, + void * /*pFormatStruct*/, + LPCSTR /*lpszStructType*/, + const BYTE * /*pbEncoded*/, + DWORD /*cbEncoded*/, + void * pbFormat, + DWORD * pcbFormat); +#endif // !WIN16 + +#ifdef __cplusplus +} // Balance extern "C" above +#endif + +#endif // (_WIN32_WINNT >= 0x0400) + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _CRYPTDLG_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cryptuiapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cryptuiapi.h new file mode 100644 index 0000000000000000000000000000000000000000..15570d3ced22b557bbde69a3bfd4c106568fd4e7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cryptuiapi.h @@ -0,0 +1,1021 @@ +//+---------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992-1999. +// +// File: cryptuiapi.h +// +// Contents: Cryptographic UI API Prototypes and Definitions +// +//----------------------------------------------------------------------------- + +#ifndef __CRYPTUIAPI_H__ +#define __CRYPTUIAPI_H__ + +#if defined (_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#define CERT_CREDENTIAL_PROVIDER_ID -509 + +//+---------------------------------------------------------------------------- +// Dialog viewer of a certificate, CTL or CRL context. +// +// dwContextType and associated pvContext's +// CERT_STORE_CERTIFICATE_CONTEXT PCCERT_CONTEXT +// CERT_STORE_CRL_CONTEXT PCCRL_CONTEXT +// CERT_STORE_CTL_CONTEXT PCCTL_CONTEXT +// +// dwFlags currently isn't used and should be set to 0. +//----------------------------------------------------------------------------- +_Success_(return == TRUE) +BOOL +WINAPI +CryptUIDlgViewContext( + _In_ DWORD dwContextType, + _In_ const void *pvContext, + _In_opt_ HWND hwnd, // Defaults to the desktop window + _In_opt_ LPCWSTR pwszTitle, // Defaults to the context type title + _In_ DWORD dwFlags, + _In_ void *pvReserved + ); + + +//+---------------------------------------------------------------------------- +// Dialog to select a certificate from the specified store. +// +// Returns the selected certificate context. If no certificate was +// selected, NULL is returned. +// +// pwszTitle is either NULL or the title to be used for the dialog. +// If NULL, the default title is used. The default title is +// "Select Certificate". +// +// pwszDisplayString is either NULL or the text statement in the selection +// dialog. If NULL, the default phrase +// "Select a certificate you wish to use" is used in the dialog. +// +// dwDontUseColumn can be set to exclude columns from the selection +// dialog. See the CRYPTDLG_SELECTCERT_*_COLUMN definitions below. +// +// dwFlags currently isn't used and should be set to 0. +//----------------------------------------------------------------------------- +PCCERT_CONTEXT +WINAPI +CryptUIDlgSelectCertificateFromStore( + _In_ HCERTSTORE hCertStore, + _In_opt_ HWND hwnd, // Defaults to the desktop window + _In_opt_ LPCWSTR pwszTitle, + _In_opt_ LPCWSTR pwszDisplayString, + _In_ DWORD dwDontUseColumn, + _In_ DWORD dwFlags, + _In_ void *pvReserved + ); + +// flags for dwDontUseColumn +#define CRYPTUI_SELECT_ISSUEDTO_COLUMN 0x000000001 +#define CRYPTUI_SELECT_ISSUEDBY_COLUMN 0x000000002 +#define CRYPTUI_SELECT_INTENDEDUSE_COLUMN 0x000000004 +#define CRYPTUI_SELECT_FRIENDLYNAME_COLUMN 0x000000008 +#define CRYPTUI_SELECT_LOCATION_COLUMN 0x000000010 +#define CRYPTUI_SELECT_EXPIRATION_COLUMN 0x000000020 + +//+---------------------------------------------------------------------------- +// +// The select cert dialog can be passed a filter proc to reduce the set of +// certificates displayed. Return TRUE to display the certificate and FALSE to +// hide it. If TRUE is returned then optionally the pfInitialSelectedCert +// boolean may be set to TRUE to indicate to the dialog that this cert should +// be the initially selected cert. Note that the most recent cert that had the +// pfInitialSelectedCert boolean set during the callback will be the initially +// selected cert. +// +//----------------------------------------------------------------------------- +typedef BOOL (WINAPI * PFNCFILTERPROC) ( + PCCERT_CONTEXT pCertContext, + BOOL *pfInitialSelectedCert, + void *pvCallbackData + ); + +typedef struct { + HCERTSTORE hStore; + PCCERT_CHAIN_CONTEXT * prgpChain; + DWORD cChain; +}CERT_SELECTUI_INPUT, *PCERT_SELECTUI_INPUT; + +//+---------------------------------------------------------------------------- +// +// CertSelectionGetSerializedBlob +// +// The API to obtain serialized blob from an input struct +// +// +//----------------------------------------------------------------------------- +HRESULT +WINAPI +CertSelectionGetSerializedBlob( + _In_ PCERT_SELECTUI_INPUT pcsi, + _Outptr_result_maybenull_ void ** ppOutBuffer, + _Out_ ULONG *pulOutBufferSize); + +//+---------------------------------------------------------------------------- +// Valid values for dwFlags in CRYPTUI_CERT_MGR_STRUCT struct. +//----------------------------------------------------------------------------- +#define CRYPTUI_CERT_MGR_TAB_MASK 0x0000000F +#define CRYPTUI_CERT_MGR_PUBLISHER_TAB 0x00000004 +#define CRYPTUI_CERT_MGR_SINGLE_TAB_FLAG 0x00008000 + +//+---------------------------------------------------------------------------- +// +// CRYPTUI_CERT_MGR_STRUCT +// +// dwSize IN Required: Should be set to +// sizeof(CRYPTUI_CERT_MGR_STRUCT) +// +// hwndParent IN Optional: Parent of this dialog. +// +// dwFlags IN Optional: Personal is the default initially selected +// tab. +// +// CRYPTUI_CERT_MGR_PUBLISHER_TAB may be set +// to select Trusted Publishers as the +// initially selected tab. +// +// CRYPTUI_CERT_MGR_SINGLE_TAB_FLAG may also +// be set to only display the Trusted +// Publishers tab. +// +// pwszTitle IN Optional: Title of the dialog. +// +// pszInitUsageOID IN Optional: The enhanced key usage object identifier +// (OID). Certificates with this OID will +// initially be shown as a default. User +// can then choose different OIDs. NULL +// means all certificates will be shown +// initially. +// +//----------------------------------------------------------------------------- +typedef struct _CRYPTUI_CERT_MGR_STRUCT +{ + DWORD dwSize; + HWND hwndParent; + DWORD dwFlags; + LPCWSTR pwszTitle; + LPCSTR pszInitUsageOID; +} CRYPTUI_CERT_MGR_STRUCT, *PCRYPTUI_CERT_MGR_STRUCT; + +typedef const CRYPTUI_CERT_MGR_STRUCT *PCCRYPTUI_CERT_MGR_STRUCT; + + +//+---------------------------------------------------------------------------- +// +// CryptUIDlgCertMgr +// +// The wizard to manage certificates in store. +// +// pCryptUICertMgr IN Required: Poitner to CRYPTUI_CERT_MGR_STRUCT +// structure. +// +//----------------------------------------------------------------------------- +_Success_(return == TRUE) +BOOL +WINAPI +CryptUIDlgCertMgr( + _In_ PCCRYPTUI_CERT_MGR_STRUCT pCryptUICertMgr + ); + +//+---------------------------------------------------------------------------- +// +// CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO +// +// dwSize IN Required: Should be set to +// sizeof(CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO) +// +// pGuidSubject IN Required: Idenfity the sip functions to load +// +// cbBlob IN Required: The size of blob, in bytes +// +// pwszDispalyName IN Optional: The display name of the blob to sign +// +//----------------------------------------------------------------------------- +typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO +{ + DWORD dwSize; + GUID *pGuidSubject; + DWORD cbBlob; + BYTE *pbBlob; + LPCWSTR pwszDisplayName; +} CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO, *PCRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO; + +typedef const CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO *PCCRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO; + +//+---------------------------------------------------------------------------- +// +// CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO +// +// dwSize IN Required: Should be set to +// sizeof(CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO) +// +// cCertStore IN Required: The acount of certificate store array that +// includes potentical sining certs +// +// rghCertStore IN Required: The certificate store array that includes +// potential signing certs +// +// pFilterCallback IN Optional: The filter call back function for display +// the certificate +// +// pvCallbackData IN Optional: The call back data +// +//----------------------------------------------------------------------------- +typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO +{ + DWORD dwSize; + DWORD cCertStore; + HCERTSTORE *rghCertStore; + PFNCFILTERPROC pFilterCallback; + void * pvCallbackData; +} CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO, *PCRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO; + +typedef const CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO *PCCRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO; + +//+---------------------------------------------------------------------------- +// +// CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO +// +// dwSize IN Required: Should be set to +// sizeof(CRYPT_WIZ_DIGITAL_SIGN_PVK_FILE_INFO) +// +// pwszPvkFileName IN Required: The PVK file name +// +// pwszProvName IN Required: The provider name +// +// dwProvType IN Required: The provider type +// +//----------------------------------------------------------------------------- +typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO +{ + DWORD dwSize; + LPWSTR pwszPvkFileName; + LPWSTR pwszProvName; + DWORD dwProvType; +} CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO, *PCRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO; + +typedef const CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO *PCCRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO; + +//+---------------------------------------------------------------------------- +// Valid values for dwPvkChoice in CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO +// struct. +//----------------------------------------------------------------------------- +#define CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE 0x01 +#define CRYPTUI_WIZ_DIGITAL_SIGN_PVK_PROV 0x02 + +//+---------------------------------------------------------------------------- +// +// CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO +// +// dwSize IN Required: Should be set to +// sizeof(CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO) +// +// pwszSigningCertFileName IN Required: The file name that contains the +// signing cert(s) +// +// dwPvkChoice IN Required: Indicate the private key type. +// It can be one of the following: +// CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE +// CRYPTUI_WIZ_DIGITAL_SIGN_PVK_PROV +// +// pPvkFileInfo IN Required: If dwPvkChoice == CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE +// +// pPvkProvInfo IN Required: If dwPvkContainer == CRYPTUI_WIZ_DIGITAL_SIGN_PVK_PROV +// +//----------------------------------------------------------------------------- +typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO +{ + DWORD dwSize; + LPWSTR pwszSigningCertFileName; + DWORD dwPvkChoice; + union + { + PCCRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO pPvkFileInfo; + PCRYPT_KEY_PROV_INFO pPvkProvInfo; + }; + +} CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO, *PCRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO; + +typedef const CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO *PCCRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO; + +//+---------------------------------------------------------------------------- +// Valid values for dwAttrFlags in CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO +// struct. +//----------------------------------------------------------------------------- +#define CRYPTUI_WIZ_DIGITAL_SIGN_COMMERCIAL 0x0001 +#define CRYPTUI_WIZ_DIGITAL_SIGN_INDIVIDUAL 0x0002 + +//+---------------------------------------------------------------------------- +// +// CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO +// +// dwSize IN Required: Should be set to +// sizeof(CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO) +// +// dwAttrFlags IN Required: Flag to indicate signing options. +// It can be one of the following: +// CRYPTUI_WIZ_DIGITAL_SIGN_COMMERCIAL +// CRYPTUI_WIZ_DIGITAL_SIGN_INDIVIDUAL +// +// pwszDescription IN Optional: The description of the signing +// subject. + +// pwszMoreInfoLocation IN Optional: The localtion to get more +// information about file this +// information will be shown upon +// download time. +// +// pszHashAlg IN Optional: The hashing algorithm for the +// signature. NULL means using SHA1 +// hashing algorithm. +// +// pwszSigningCertDisplayString IN Optional: The display string to be +// displayed on the signing +// certificate wizard page. The +// string should prompt user to +// select a certificate for a +// particular purpose. +// +// hAddtionalCertStores IN Optional: The addtional cert store to add to +// the signature. +// +// psAuthenticated IN Optional: User supplied authenticated +// attributes added to the signature. +// +// psUnauthenticated IN Optional: User supplied unauthenticated +// attributes added to the signature. +// +//----------------------------------------------------------------------------- +typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO +{ + DWORD dwSize; + DWORD dwAttrFlags; + LPCWSTR pwszDescription; + LPCWSTR pwszMoreInfoLocation; + LPCSTR pszHashAlg; + LPCWSTR pwszSigningCertDisplayString; + HCERTSTORE hAdditionalCertStore; + PCRYPT_ATTRIBUTES psAuthenticated; + PCRYPT_ATTRIBUTES psUnauthenticated; +} CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO, *PCRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO; + +typedef const CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO *PCCRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO; + +//+---------------------------------------------------------------------------- +// Valid values for dwSubjectChoice in CRYPTUI_WIZ_DIGITAL_SIGN_INFO struct. +//----------------------------------------------------------------------------- +#define CRYPTUI_WIZ_DIGITAL_SIGN_SUBJECT_FILE 0x01 +#define CRYPTUI_WIZ_DIGITAL_SIGN_SUBJECT_BLOB 0x02 + +//+---------------------------------------------------------------------------- +// Valid values for dwSigningCertChoice in CRYPTUI_WIZ_DIGITAL_SIGN_INFO +// struct. +//----------------------------------------------------------------------------- +#define CRYPTUI_WIZ_DIGITAL_SIGN_CERT 0x01 +#define CRYPTUI_WIZ_DIGITAL_SIGN_STORE 0x02 +#define CRYPTUI_WIZ_DIGITAL_SIGN_PVK 0x03 + +//+---------------------------------------------------------------------------- +// Valid values for dwAddtionalCertChoice in CRYPTUI_WIZ_DIGITAL_SIGN_INFO +// struct. +//----------------------------------------------------------------------------- +#define CRYPTUI_WIZ_DIGITAL_SIGN_ADD_CHAIN 0x00000001 +#define CRYPTUI_WIZ_DIGITAL_SIGN_ADD_CHAIN_NO_ROOT 0x00000002 + +//+---------------------------------------------------------------------------- +// +// CRYPTUI_WIZ_DIGITAL_SIGN_INFO +// +// dwSize IN Required: Should be set to +// sizeof(CRYPTUI_WIZ_DIGITAL_SIGN_INFO) +// +// dwSubjectChoice IN Required: If CRYPTUI_WIZ_NO_UI is set in dwFlags +// of the CryptUIWizDigitalSign call. +// +// Optional: If CRYPTUI_WIZ_NO_UI is not set in +// dwFlags of the CryptUIWizDigitalSign +// call. +// +// Indicate whether to sign a file or to +// sign a memory blob. 0 means promting +// user for the file to sign. +// +// It can be one of the following: +// CRYPTUI_WIZ_DIGITAL_SIGN_SUBJECT_FILE +// CRYPTUI_WIZ_DIGITAL_SIGN_SUBJECT_BLOB +// +// pwszFileName IN Required: If dwSubjectChoice == CRYPTUI_WIZ_DIGITAL_SIGN_SUBJECT_FILE +// +// pSignBlobInfo IN Required: If dwSubhectChoice == CRYPTUI_WIZ_DIGITAL_SIGN_SUBJECT_BLOB +// +// dwSigningCertChoice IN Optional: Indicate the signing certificate. +// 0 means using the certificates in +// "My" store". +// +// It can be one of the following choices: +// CRYPTUI_WIZ_DIGITAL_SIGN_CERT +// CRYPTUI_WIZ_DIGITAL_SIGN_STORE +// CRYPTUI_WIZ_DIGITAL_SIGN_PVK +// +// If CRYPTUI_WIZ_NO_UI is set in dwFlags +// of the CryptUIWizDigitalSign call, +// dwSigningCertChoice has to be +// CRYPTUI_WIZ_DIGITAL_SIGN_CERT or +// CRYPTUI_WIZ_DIGITAL_SIGN_PVK +// +// pSigningCertContext IN Required: If dwSigningCertChoice == CRYPTUI_WIZ_DIGITAL_SIGN_CERT +// +// pSigningCertStore IN Required: If dwSigningCertChoice == CRYPTUI_WIZ_DIGITAL_SIGN_STORE +// +// pSigningCertPvkInfo IN Required: If dwSigningCertChoise == CRYPTUI_WIZ_DIGITAL_SIGN_PVK +// +// pwszTimestampURL IN Optional: The timestamp URL address. +// +// dwAdditionalCertChoice IN Optional: Indicate additional certificates to be +// included in the signature. 0 means no +// addtional certificates will be added. +// +// The following flags are mutually +// exclusive. +// Only one of them can be set: +// CRYPTUI_WIZ_DIGITAL_SIGN_ADD_CHAIN +// CRYPTUI_WIZ_DIGITAL_SIGN_ADD_CHAIN_NO_ROOT +// +// pSignExtInfo IN Optional: The extended information for signing. +// +//----------------------------------------------------------------------------- +typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_INFO +{ + DWORD dwSize; + DWORD dwSubjectChoice; + union + { + LPCWSTR pwszFileName; + PCCRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO pSignBlobInfo; + }; + DWORD dwSigningCertChoice; + union + { + PCCERT_CONTEXT pSigningCertContext; + PCCRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO pSigningCertStore; + PCCRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO pSigningCertPvkInfo; + }; + LPCWSTR pwszTimestampURL; + DWORD dwAdditionalCertChoice; + PCCRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO pSignExtInfo; +} CRYPTUI_WIZ_DIGITAL_SIGN_INFO, *PCRYPTUI_WIZ_DIGITAL_SIGN_INFO; + +typedef const CRYPTUI_WIZ_DIGITAL_SIGN_INFO *PCCRYPTUI_WIZ_DIGITAL_SIGN_INFO; + +//+---------------------------------------------------------------------------- +// +// CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT +// +// dwSize IN Required: Should be set to +// sizeof(CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT) +// +// cbBlob IN Required: The size of pbBlob in bytes. +// +// pbBlob IN Required: The signed blob. +// +//----------------------------------------------------------------------------- + +typedef struct _CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT +{ + DWORD dwSize; + DWORD cbBlob; + BYTE *pbBlob; +} CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT, *PCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT; + +typedef const CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT *PCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT; + +//+---------------------------------------------------------------------------- +// Valid values for dwFlags parameter to CryptUIWizDigitalSign. +//----------------------------------------------------------------------------- +#define CRYPTUI_WIZ_NO_UI 0x0001 +#define CRYPTUI_WIZ_DIGITAL_SIGN_EXCLUDE_PAGE_HASHES 0x0002 + +// The above CRYPTUI_WIZ_DIGITAL_SIGN_EXCLUDE_PAGE_HASHES takes precedence if +// also set. +#define CRYPTUI_WIZ_DIGITAL_SIGN_INCLUDE_PAGE_HASHES 0x0004 + +//+---------------------------------------------------------------------------- +// +// CryptUIWizDigitalSign +// +// The wizard to digitally sign a document or a blob. +// +// If CRYPTUI_WIZ_NO_UI is set in dwFlags, no UI will be shown. Otherwise, +// user will be prompted for input through a wizard. +// +// dwFlags IN Required: See dwFlags values above. +// +// hwndParent IN Optional: The parent window handle. +// +// pwszWizardTitle IN Optional: The title of the wizard. +// +// pDigitalSignInfo IN Required: The information about the signing process. +// +// ppSignContext OUT Optional: The context pointer points to the signed +// blob. +// +//----------------------------------------------------------------------------- +_Success_(return == TRUE) +BOOL +WINAPI +CryptUIWizDigitalSign( + _In_ DWORD dwFlags, + _In_opt_ HWND hwndParent, + _In_opt_ LPCWSTR pwszWizardTitle, + _In_ PCCRYPTUI_WIZ_DIGITAL_SIGN_INFO pDigitalSignInfo, + _Outptr_opt_ PCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT *ppSignContext + ); + +_Success_(return == TRUE) +BOOL +WINAPI +CryptUIWizFreeDigitalSignContext( + _In_ PCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT pSignContext + ); + + +///////////////////////////////////////////////////////////////////////////////////////////////////// +// +// dwSize size of this struct +// hwndParent parent of this dialog (OPTIONAL) +// dwFlags flags, may a combination of any of the flags below (OPTIONAL) +// szTitle title for the window (OPTIONAL) +// pCertContext the cert context that is to be displayed +// rgszPurposes array of purposes that this cert is to be validated for (OPTIONAL) +// cPurposes number of purposes (OPTIONAL) +// pCryptProviderData/hWVTStateData if WinVerifyTrust has already been called for the cert (OPTIONAL) +// then pass in a pointer to the state struct that was +// acquired through a call to WTHelperProvDataFromStateData(), +// or pass in the hWVTStateData of the WINTRUST_DATA struct +// if WTHelperProvDataFromStateData() was not called. +// if pCryptProviderData/hWVTStateData is used then +// fpCryptProviderDataTrustedUsage, idxSigner, idxCert, and +// fCounterSignature must be set +// fpCryptProviderDataTrustedUsage if WinVerifyTrust was called this is the result of whether (OPTIONAL) +// the cert was trusted +// idxSigner the index of the signer to view (OPTIONAL) +// idxCert the index of the cert that is being viewed within the (OPTIONAL) +// signer chain. the cert context of this cert MUST match +// pCertContext +// fCounterSigner set to TRUE if a counter signature is being viewed. if (OPTIONAL) +// this is TRUE then idxCounterSigner must be valid +// idxCounterSigner the index of the counter signer to view (OPTIONAL) +// cStores Count of other stores to search when building and (OPTIONAL) +// validating chain +// rghStores Array of other stores to search when buliding and (OPTIONAL) +// validating chain +// cPropSheetPages number of extra pages to add to the dialog. (OPTIONAL) +// rgPropSheetPages extra pages to add to the dialog. (OPTIONAL) +// each page in this array will NOT recieve the lParam in +// the PROPSHEET structure as the lParam in the +// WM_INITDIALOG, instead it will receive a pointer to a +// CRYPTUI_INITDIALOG_STRUCT (defined below) which contains +// the lParam in the PROPSSHEET structure AND the +// PCCERT_CONTEXT for which the page is being displayed. +// nStartPage this is the index of the initial page that will be +// displayed. if the upper most bit (0x8000) is set then +// the index is assumed to index rgPropSheetPages +// (after the upper most bit has been stripped off. eg. +// 0x8000 will indicate the first page in rgPropSheetPages), +// if the upper most bit is 0 then nStartPage will be the +// starting index of the default certificate dialog pages. +// +///////////////////////////////////////////////////////////////////////////////////////////////////// + +// dwFlags +#define CRYPTUI_HIDE_HIERARCHYPAGE 0x00000001 +#define CRYPTUI_HIDE_DETAILPAGE 0x00000002 +#define CRYPTUI_DISABLE_EDITPROPERTIES 0x00000004 +#define CRYPTUI_ENABLE_EDITPROPERTIES 0x00000008 +#define CRYPTUI_DISABLE_ADDTOSTORE 0x00000010 +#define CRYPTUI_ENABLE_ADDTOSTORE 0x00000020 +#define CRYPTUI_ACCEPT_DECLINE_STYLE 0x00000040 +#define CRYPTUI_IGNORE_UNTRUSTED_ROOT 0x00000080 +#define CRYPTUI_DONT_OPEN_STORES 0x00000100 +#define CRYPTUI_ONLY_OPEN_ROOT_STORE 0x00000200 +#define CRYPTUI_WARN_UNTRUSTED_ROOT 0x00000400 // For use with viewing of certificates on remote + // machines only. If this flag is used rghStores[0] + // must be the handle of the root store on the remote machine. +#define CRYPTUI_ENABLE_REVOCATION_CHECKING 0x00000800 // This flag is only valid if pCryptProviderData/hWVTStateData + // is not passed in. +#define CRYPTUI_WARN_REMOTE_TRUST 0x00001000 +#define CRYPTUI_DISABLE_EXPORT 0x00002000 // If this flag is set, then the "Copy to file" button will be + // disabled on the Detail page. + +// Revocation flags is only valid if pCryptProviderData/hWVTStateData is not passed in. +#define CRYPTUI_ENABLE_REVOCATION_CHECK_END_CERT 0x00004000 +#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN 0x00008000 +#define CRYPTUI_ENABLE_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT CRYPTUI_ENABLE_REVOCATION_CHECKING // Changed the default behavior + + // to not check root. +#define CRYPTUI_DISABLE_HTMLLINK 0x00010000 // to disable helplink in viewing certificate +#define CRYPTUI_DISABLE_ISSUERSTATEMENT 0x00020000 // to disable issuer statement button + +#define CRYPTUI_CACHE_ONLY_URL_RETRIEVAL 0x00040000 // to disable online revocation checking +// +// this struct is passed as the lParam in the WM_INITDIALOG call to each +// property sheet that is in the rgPropSheetPages array of the +// CRYPTUI_VIEWCERTIFICATE_STRUCT structure +// +typedef struct tagCRYPTUI_INITDIALOG_STRUCT { + LPARAM lParam; + PCCERT_CONTEXT pCertContext; +} CRYPTUI_INITDIALOG_STRUCT, *PCRYPTUI_INITDIALOG_STRUCT; + + +typedef struct tagCRYPTUI_VIEWCERTIFICATE_STRUCTW { + DWORD dwSize; + HWND hwndParent; // OPTIONAL + DWORD dwFlags; // OPTIONAL + LPCWSTR szTitle; // OPTIONAL + PCCERT_CONTEXT pCertContext; + LPCSTR * rgszPurposes; // OPTIONAL + DWORD cPurposes; // OPTIONAL + union + { + CRYPT_PROVIDER_DATA const * pCryptProviderData; // OPTIONAL + HANDLE hWVTStateData; // OPTIONAL + }; + BOOL fpCryptProviderDataTrustedUsage;// OPTIONAL + DWORD idxSigner; // OPTIONAL + DWORD idxCert; // OPTIONAL + BOOL fCounterSigner; // OPTIONAL + DWORD idxCounterSigner; // OPTIONAL + DWORD cStores; // OPTIONAL + HCERTSTORE * rghStores; // OPTIONAL + DWORD cPropSheetPages; // OPTIONAL + LPCPROPSHEETPAGEW rgPropSheetPages; // OPTIONAL + DWORD nStartPage; +} CRYPTUI_VIEWCERTIFICATE_STRUCTW, *PCRYPTUI_VIEWCERTIFICATE_STRUCTW; +typedef const CRYPTUI_VIEWCERTIFICATE_STRUCTW *PCCRYPTUI_VIEWCERTIFICATE_STRUCTW; + + +typedef struct tagCRYPTUI_VIEWCERTIFICATE_STRUCTA { + DWORD dwSize; + HWND hwndParent; // OPTIONAL + DWORD dwFlags; // OPTIONAL + LPCSTR szTitle; // OPTIONAL + PCCERT_CONTEXT pCertContext; + LPCSTR * rgszPurposes; // OPTIONAL + DWORD cPurposes; // OPTIONAL + union + { + CRYPT_PROVIDER_DATA const * pCryptProviderData; // OPTIONAL + HANDLE hWVTStateData; // OPTIONAL + }; + BOOL fpCryptProviderDataTrustedUsage;// OPTIONAL + DWORD idxSigner; // OPTIONAL + DWORD idxCert; // OPTIONAL + BOOL fCounterSigner; // OPTIONAL + DWORD idxCounterSigner; // OPTIONAL + DWORD cStores; // OPTIONAL + HCERTSTORE * rghStores; // OPTIONAL + DWORD cPropSheetPages; // OPTIONAL + LPCPROPSHEETPAGEA rgPropSheetPages; // OPTIONAL + DWORD nStartPage; +} CRYPTUI_VIEWCERTIFICATE_STRUCTA, *PCRYPTUI_VIEWCERTIFICATE_STRUCTA; +typedef const CRYPTUI_VIEWCERTIFICATE_STRUCTA *PCCRYPTUI_VIEWCERTIFICATE_STRUCTA; + +// +// pfPropertiesChanged this will be set by the dialog proc to inform the caller +// if any properties have been changed on certs in the chain +// while the dialog was open +// +_Success_(return == TRUE) +BOOL +WINAPI +CryptUIDlgViewCertificateW( + _In_ PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo, + _Out_ BOOL *pfPropertiesChanged // OPTIONAL + ); + +_Success_(return == TRUE) +BOOL +WINAPI +CryptUIDlgViewCertificateA( + _In_ PCCRYPTUI_VIEWCERTIFICATE_STRUCTA pCertViewInfo, + _Out_ BOOL *pfPropertiesChanged // OPTIONAL + ); + +#ifdef UNICODE +#define CryptUIDlgViewCertificate CryptUIDlgViewCertificateW +#define PCRYPTUI_VIEWCERTIFICATE_STRUCT PCRYPTUI_VIEWCERTIFICATE_STRUCTW +#define CRYPTUI_VIEWCERTIFICATE_STRUCT CRYPTUI_VIEWCERTIFICATE_STRUCTW +#define PCCRYPTUI_VIEWCERTIFICATE_STRUCT PCCRYPTUI_VIEWCERTIFICATE_STRUCTW +#else +#define CryptUIDlgViewCertificate CryptUIDlgViewCertificateA +#define PCRYPTUI_VIEWCERTIFICATE_STRUCT PCRYPTUI_VIEWCERTIFICATE_STRUCTA +#define CRYPTUI_VIEWCERTIFICATE_STRUCT CRYPTUI_VIEWCERTIFICATE_STRUCTA +#define PCCRYPTUI_VIEWCERTIFICATE_STRUCT PCCRYPTUI_VIEWCERTIFICATE_STRUCTA +#endif + +//------------------------------------------------------------------------- +// +// Valid values for dwSubjectChoice in CRYPTUI_WIZ_EXPORT_INFO +//------------------------------------------------------------------------- +#define CRYPTUI_WIZ_EXPORT_CERT_CONTEXT 1 +#define CRYPTUI_WIZ_EXPORT_CTL_CONTEXT 2 +#define CRYPTUI_WIZ_EXPORT_CRL_CONTEXT 3 +#define CRYPTUI_WIZ_EXPORT_CERT_STORE 4 +#define CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY 5 +#define CRYPTUI_WIZ_EXPORT_FORMAT_CRL 6 +#define CRYPTUI_WIZ_EXPORT_FORMAT_CTL 7 + +//------------------------------------------------------------------------- +// +// Struct to define the object to be exported and where to export it to +// +// CRYPTUI_WIZ_EXPORT_SUBJECT_INFO +// +//------------------------------------------------------------------------- +typedef struct _CRYPTUI_WIZ_EXPORT_INFO +{ + DWORD dwSize; //Required: should be set to sizeof(CRYPTUI_WIZ_EXPORT_INFO) + LPCWSTR pwszExportFileName; //Required if the CRYPTUI_WIZ_NO_UI flag is set, Optional otherwise. + //The fully qualified file name to export to, if this is + //non-NULL and the CRYPTUI_WIZ_NO_UI flag is NOT set, then it is + //displayed to the user as the default file name + DWORD dwSubjectChoice; //Required: indicate the type of the subject: + // If can one of the following: + // CRYPTUI_WIZ_EXPORT_CERT_CONTEXT + // CRYPTUI_WIZ_EXPORT_CTL_CONTEXT + // CRYPTUI_WIZ_EXPORT_CRL_CONTEXT + // CRYPTUI_WIZ_EXPORT_CERT_STORE + // CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY + union + { + PCCERT_CONTEXT pCertContext; + PCCTL_CONTEXT pCTLContext; + PCCRL_CONTEXT pCRLContext; + HCERTSTORE hCertStore; + }; + + DWORD cStores; // Optional: count of extra stores to search for the certs in the + // trust chain if the chain is being exported with a cert. + // this is ignored if dwSubjectChoice is anything other + // than CRYPTUI_WIZ_EXPORT_CERT_CONTEXT + HCERTSTORE * rghStores; // Optional: array of extra stores to search for the certs in the + // trust chain if the chain is being exported with a cert. + // this is ignored if dwSubjectChoice is anything other + // than CRYPTUI_WIZ_EXPORT_CERT_CONTEXT + +}CRYPTUI_WIZ_EXPORT_INFO, *PCRYPTUI_WIZ_EXPORT_INFO; + +typedef const CRYPTUI_WIZ_EXPORT_INFO *PCCRYPTUI_WIZ_EXPORT_INFO; + + +//------------------------------------------------------------------------- +// +// Valid values for dwExportFormat in CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO +//------------------------------------------------------------------------- +#define CRYPTUI_WIZ_EXPORT_FORMAT_DER 1 +#define CRYPTUI_WIZ_EXPORT_FORMAT_PFX 2 +#define CRYPTUI_WIZ_EXPORT_FORMAT_PKCS7 3 +#define CRYPTUI_WIZ_EXPORT_FORMAT_BASE64 4 +#define CRYPTUI_WIZ_EXPORT_FORMAT_SERIALIZED_CERT_STORE 5 // NOTE: not currently supported!! + +//------------------------------------------------------------------------- +// +// Struct to define the information needed to export a CERT_CONTEXT +// +// CRYPTUI_WIZ_EXPORT_NOUI_INFO +// +//------------------------------------------------------------------------- +typedef struct _CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO +{ + DWORD dwSize; //Required: should be set to sizeof(CRYPTUI_WIZ_EXPORT_NOUI_INFO) + DWORD dwExportFormat; //Required: + // It can be one of the following: + // CRYPTUI_WIZ_EXPORT_FORMAT_DER + // CRYPTUI_WIZ_EXPORT_FORMAT_PFX + // CRYPTUI_WIZ_EXPORT_FORMAT_PKCS7 + // CRYPTUI_WIZ_EXPORT_FORMAT_SERIALIZED_CERT_STORE + + BOOL fExportChain; //Required + BOOL fExportPrivateKeys; //Required + LPCWSTR pwszPassword; //Required if the fExportPrivateKeys boolean is TRUE, otherwise, + //it is ignored + BOOL fStrongEncryption; //Required if dwExportFormat is CRYPTUI_WIZ_EXPORT_FORMAT_PFX + //Note that if this flag is TRUE then the PFX blob produced is + //NOT compatible with IE4. + +}CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO, *PCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO; + +typedef const CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO *PCCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO; + +//----------------------------------------------------------------------- +// +// CryptUIWizExport +// +// The export wizard to export public key related objects to a file +// +// If dwFlags is set to CRYPTUI_WIZ_NO_UI, no UI will be shown. Otherwise, +// User will be prompted for input through a wizard. +// +// If CRYPTUI_WIZ_NO_UI is set in dwFlags: +// hwndParent: Ignored +// pwszWizardTitle: Ignored +// pExportInfo: IN Required: The subject to export. +// pvoid: IN Required: Contains information about how to do the export based on what +// is being exported +// +// dwSubjectChoice INPUT TYPE +// ------------------------------------------------------------------------- +// CRYPTUI_WIZ_EXPORT_CERT_CONTEXT PCCRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO +// CRYPTUI_WIZ_EXPORT_CTL_CONTEXT NULL +// CRYPTUI_WIZ_EXPORT_CRL_CONTEXT NULL +// CRYPTUI_WIZ_EXPORT_CERT_STORE NULL +// +// If CRYPTUI_WIZ_NO_UI is not set in dwFlags: +// hwndPrarent: IN Optional: The parent window for the wizard +// pwszWizardTitle: IN Optional: The title of the wizard +// If NULL, the default will be IDS_EXPORT_WIZARD_TITLE +// pExportInfo: IN Required: The subject to export. +// pvoid: IN Optional: Contains information about how to do the export based on what +// is being exported. See above table for values, if this is non-NULL +// the values are displayed to the user as the default choices. +//------------------------------------------------------------------------ +_Success_(return == TRUE) +BOOL +WINAPI +CryptUIWizExport( + _In_ DWORD dwFlags, + _In_opt_ HWND hwndParent, + _In_opt_ LPCWSTR pwszWizardTitle, + _In_ PCCRYPTUI_WIZ_EXPORT_INFO pExportInfo, + _In_opt_ void *pvoid +); + +//------------------------------------------------------------------------- +// +// Valid values for dwSubjectChoice in IMPORT_SUBJECT_INFO +//------------------------------------------------------------------------- +#define CRYPTUI_WIZ_IMPORT_SUBJECT_FILE 1 +#define CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT 2 +#define CRYPTUI_WIZ_IMPORT_SUBJECT_CTL_CONTEXT 3 +#define CRYPTUI_WIZ_IMPORT_SUBJECT_CRL_CONTEXT 4 +#define CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE 5 + +//------------------------------------------------------------------------- +// +// Struct to define the subject CertImportWizard +// +// CRYPTUI_WIZ_IMPORT_SUBJECT_INFO +// +//------------------------------------------------------------------------- +typedef struct _CRYPTUI_WIZ_IMPORT_SUBJECT_INFO +{ + DWORD dwSize; //Required: should be set to sizeof(IMPORT_SUBJECT_INFO) + DWORD dwSubjectChoice; //Required: indicate the type of the subject: + // If can one of the following: + // CRYPTUI_WIZ_IMPORT_SUBJECT_FILE + // CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT + // CRYPTUI_WIZ_IMPORT_SUBJECT_CTL_CONTEXT + // CRYPTUI_WIZ_IMPORT_SUBJECT_CRL_CONTEXT + // CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE + union + { + LPCWSTR pwszFileName; + PCCERT_CONTEXT pCertContext; + PCCTL_CONTEXT pCTLContext; + PCCRL_CONTEXT pCRLContext; + HCERTSTORE hCertStore; + }; + + DWORD dwFlags; //Required if pwszFileName contains a PFX BLOB. + //Ignored otherwise + //This is the same flag for PFXImportCertStore + LPCWSTR pwszPassword; //Required if pwszFileName contains a PFX BLOB. + //ignored otherwise +}CRYPTUI_WIZ_IMPORT_SRC_INFO, *PCRYPTUI_WIZ_IMPORT_SRC_INFO; + +typedef const CRYPTUI_WIZ_IMPORT_SRC_INFO *PCCRYPTUI_WIZ_IMPORT_SRC_INFO; + +//----------------------------------------------------------------------- +// +// Valid flags for dwFlags in CryptUIWizImport +// +//----------------------------------------------------------------------- +//if this flag is set in dwFlags, user will not be allowed to change +//the hDesCertStore in the wizard page +#define CRYPTUI_WIZ_IMPORT_NO_CHANGE_DEST_STORE 0x00010000 + +//Allow importing certificate +#define CRYPTUI_WIZ_IMPORT_ALLOW_CERT 0x00020000 + +//Allow importing certificate revocation list +#define CRYPTUI_WIZ_IMPORT_ALLOW_CRL 0x00040000 + +//Allow importing certificate trust list +#define CRYPTUI_WIZ_IMPORT_ALLOW_CTL 0x00080000 + +//import contents to local machine (currently only applicable for PFX imports) +#define CRYPTUI_WIZ_IMPORT_TO_LOCALMACHINE 0x00100000 + +//import contents to current user (currently only applicable for PFX imports) +#define CRYPTUI_WIZ_IMPORT_TO_CURRENTUSER 0x00200000 + +//if the hDesCertStore is a remote store handle, this flag should be set +#define CRYPTUI_WIZ_IMPORT_REMOTE_DEST_STORE 0x00400000 + +//----------------------------------------------------------------------- +// +// CryptUIWizImport +// +// The import wizard to import public key related files to a certificate +// store +// +// dwFlags can be set to any combination of the following flags: +// CRYPTUI_WIZ_NO_UI No UI will be shown. Otherwise, User will be +// prompted by a wizard. +// CRYPTUI_WIZ_IMPORT_ALLOW_CERT Allow importing certificate +// CRYPTUI_WIZ_IMPORT_ALLOW_CRL Allow importing CRL(certificate revocation list) +// CRYPTUI_WIZ_IMPORT_ALLOW_CTL Allow importing CTL(certificate trust list) +// CRYPTUI_WIZ_IMPORT_NO_CHANGE_DEST_STORE user will not be allowed to change +// the hDesCertStore in the wizard page +// CRYPTUI_WIZ_IMPORT_TO_LOCALMACHINE the contents should be imported to local machine +// (currently only applicable for PFX imports) +// CRYPTUI_WIZ_IMPORT_TO_CURRENTUSER the contents should be imported to current user +// (currently only applicable for PFX imports) +// +// Please notice that if neither of following three flags is in dwFlags, default to is +// allow everything. +// CRYPTUI_WIZ_IMPORT_ALLOW_CERT +// CRYPTUI_WIZ_IMPORT_ALLOW_CRL +// CRYPTUI_WIZ_IMPORT_ALLOW_CTL +// +// Also, note that the CRYPTUI_WIZ_IMPORT_TO_LOCALMACHINE and CRYPTUI_WIZ_IMPORT_TO_CURRENTUSER +// flags are used force the content of a pfx blob into either local machine or current user. +// If neither of these flags are used and hDesCertStore is NULL then: +// 1) The private key in the pfx blob will be forced to be imported into current user. +// 2) If CRYPTUI_WIZ_NO_UI is NOT set, the wizard will prompt the user to select a certificate +// store from the current user stores. +// +// +// +// If CRYPTUI_WIZ_NO_UI is set in dwFlags: +// hwndParent: Ignored +// pwszWizardTitle: Ignored +// pImportSubject: IN Required: The subject to import. +// hDesCertStore: IN Optional: The destination certficate store +// +// If CRYPTUI_WIZ_NO_UI is not set in dwFlags: +// hwndPrarent: IN Optional: The parent window for the wizard +// pwszWizardTitle: IN Optional: The title of the wizard +// If NULL, the default will be IDS_IMPORT_WIZARD_TITLE +// pImportSubject: IN Optional: The file name to import. +// If NULL, the wizard will prompt user to enter the file name +// hDesCertStore: IN Optional: The destination certificate store where the file wil be +// imported to. The store should be opened with +// flag CERT_STORE_SET_LOCALIZED_NAME_FLAG. If NULL, the wizard will prompt user to select +// a certificate store. +//------------------------------------------------------------------------ +_Success_(return == TRUE) +BOOL +WINAPI +CryptUIWizImport( + _In_ DWORD dwFlags, + _In_opt_ HWND hwndParent, + _In_opt_ LPCWSTR pwszWizardTitle, + _In_opt_ PCCRYPTUI_WIZ_IMPORT_SRC_INFO pImportSrc, + _In_opt_ HCERTSTORE hDestCertStore +); + +#include + +#ifdef __cplusplus +} // Balance extern "C" above +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _CRYPTUIAPI_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cryptxml.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cryptxml.h new file mode 100644 index 0000000000000000000000000000000000000000..b28b56862b55dc2ed6e95b6e908098449a97751c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cryptxml.h @@ -0,0 +1,2396 @@ +/*------------------------------------------------------------------- +// +// Copyright (C) Microsoft, 2007 +// +// +// File: CryptXml.h +// +// Contents: +// XML DigSig +// +--------------------------------------------------------------------*/ +#pragma once +#include + +#pragma region Desktop Family or Appx Deployment Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_APPXDEPLOYMENT) + + +#include /* for SAL annotations */ +#include +#include +#include + +#ifndef WINAPI +#define WINAPI __stdcall +#endif + +/* "C""C""C""C""C""C""C""C""C""C""C""C""C""C""C""C""C""C""C""C""C""C""C""C""C" */ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +typedef struct _CRYPT_XML_BLOB CRYPT_XML_BLOB, *PCRYPT_XML_BLOB; +typedef struct _CRYPT_XML_DATA_BLOB CRYPT_XML_DATA_BLOB, *PCRYPT_XML_DATA_BLOB; +typedef struct _CRYPT_XML_STATUS CRYPT_XML_STATUS, *PCRYPT_XML_STATUS; +typedef struct _CRYPT_XML_TRANSFORM_INFO CRYPT_XML_TRANSFORM_INFO, *PCRYPT_XML_TRANSFORM_INFO; +typedef struct _CRYPT_XML_TRANSFORM_CHAIN_CONFIG CRYPT_XML_TRANSFORM_CHAIN_CONFIG, *PCRYPT_XML_TRANSFORM_CHAIN_CONFIG; +typedef struct _CRYPT_XML_KEY_INFO CRYPT_XML_KEY_INFO, *PCRYPT_XML_KEY_INFO; +typedef struct _CRYPT_XML_ALGORITHM CRYPT_XML_ALGORITHM, *PCRYPT_XML_ALGORITHM; +typedef struct _CRYPT_XML_REFERENCE CRYPT_XML_REFERENCE, *PCRYPT_XML_REFERENCE; +typedef struct _CRYPT_XML_REFERENCES CRYPT_XML_REFERENCES, *PCRYPT_XML_REFERENCES; +typedef struct _CRYPT_XML_SIGNED_INFO CRYPT_XML_SIGNED_INFO, *PCRYPT_XML_SIGNED_INFO; +typedef struct _CRYPT_XML_OBJECT CRYPT_XML_OBJECT, *PCRYPT_XML_OBJECT; +typedef struct _CRYPT_XML_SIGNATURE CRYPT_XML_SIGNATURE, *PCRYPT_XML_SIGNATURE; +typedef struct _CRYPT_XML_ALGORITHM_INFO CRYPT_XML_ALGORITHM_INFO, *PCRYPT_XML_ALGORITHM_INFO; +typedef struct _CRYPT_XML_CRYPTOGRAPHIC_INTERFACE CRYPT_XML_CRYPTOGRAPHIC_INTERFACE, *PCRYPT_XML_CRYPTO_PROVIDER; + +typedef void* HCRYPTXML; + +#define wszXMLNS_DIGSIG L"http://www.w3.org/2000/09/xmldsig#" + +#define wszXMLNS_DIGSIG_SignatureProperties L"http://www.w3.org/2000/09/xmldsig#SignatureProperties" + +// +// The Id attribute must be unique withing the XML document. +// It's used to identify same-document (internal) references. +// + +#define wszXMLNS_DIGSIG_Id L"Id" + +#define wszURI_XMLNS_DIGSIG_BASE64 L"http://www.w3.org/2000/09/xmldsig#base64" + +#define wszURI_XMLNS_DIGSIG_SHA1 L"http://www.w3.org/2000/09/xmldsig#sha1" +#define wszURI_XMLNS_DIGSIG_SHA256 L"http://www.w3.org/2001/04/xmlenc#sha256" +#define wszURI_XMLNS_DIGSIG_SHA384 L"http://www.w3.org/2001/04/xmldsig-more#sha384" +#define wszURI_XMLNS_DIGSIG_SHA512 L"http://www.w3.org/2001/04/xmlenc#sha512" + +#define wszURI_XMLNS_DIGSIG_RSA_SHA1 L"http://www.w3.org/2000/09/xmldsig#rsa-sha1" +#define wszURI_XMLNS_DIGSIG_DSA_SHA1 L"http://www.w3.org/2000/09/xmldsig#dsa-sha1" + +#define wszURI_XMLNS_DIGSIG_RSA_SHA256 L"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" +#define wszURI_XMLNS_DIGSIG_RSA_SHA384 L"http://www.w3.org/2001/04/xmldsig-more#rsa-sha384" +#define wszURI_XMLNS_DIGSIG_RSA_SHA512 L"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512" + +#define wszURI_XMLNS_DIGSIG_ECDSA_SHA1 L"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1" +#define wszURI_XMLNS_DIGSIG_ECDSA_SHA256 L"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256" +#define wszURI_XMLNS_DIGSIG_ECDSA_SHA384 L"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384" +#define wszURI_XMLNS_DIGSIG_ECDSA_SHA512 L"http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512" + +#define wszURI_XMLNS_DIGSIG_HMAC_SHA1 L"http://www.w3.org/2000/09/xmldsig#hmac-sha1" +#define wszURI_XMLNS_DIGSIG_HMAC_SHA256 L"http://www.w3.org/2001/04/xmldsig-more#hmac-sha256" +#define wszURI_XMLNS_DIGSIG_HMAC_SHA384 L"http://www.w3.org/2001/04/xmldsig-more#hmac-sha384" +#define wszURI_XMLNS_DIGSIG_HMAC_SHA512 L"http://www.w3.org/2001/04/xmldsig-more#hmac-sha512" + +#define wszURI_CANONICALIZATION_C14N L"http://www.w3.org/TR/2001/REC-xml-c14n-20010315" +#define wszURI_CANONICALIZATION_C14NC L"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" +#define wszURI_CANONICALIZATION_EXSLUSIVE_C14N L"http://www.w3.org/2001/10/xml-exc-c14n#" +#define wszURI_CANONICALIZATION_EXSLUSIVE_C14NC L"http://www.w3.org/2001/10/xml-exc-c14n#WithComments" + +#define wszURI_TRANSFORM_XPATH L"http://www.w3.org/TR/1999/REC-xpath-19991116" +#define wszURI_XMLNS_TRANSFORM_BASE64 L"http://www.w3.org/2000/09/xmldsig#base64" +#define wszURI_XMLNS_TRANSFORM_ENVELOPED L"http://www.w3.org/2000/09/xmldsig#enveloped-signature" + +/**************************************************************************** + Limits + + reduce Integer overflows and security threats surface + +****************************************************************************/ + +// Encoded data may not exceed 2 Gb +#define CRYPT_XML_BLOB_MAX 0x7FFFFFF8 + +// Id may not exceed 256 characters +#define CRYPT_XML_ID_MAX 256 + +// URI may not exceed 8K characters +#define CRYPT_XML_URI_MAX 8*1024 + +// Maximum number of signature elements per document, by default +#define CRYPT_XML_SIGNATURES_MAX 16 + +// Maximum number of transforms per reference +#define CRYPT_XML_TRANSFORM_MAX 16 + +#define CRYPT_XML_SIGNATURE_VALUE_MAX 2048 + +#define CRYPT_XML_DIGEST_VALUE_MAX 128 + +// Maximum number of Object elements per Signature +#define CRYPT_XML_OBJECTS_MAX 256 + +// Maximum number of Reference elements +#define CRYPT_XML_REFERENCES_MAX 0x7FF8 + + +/**************************************************************************** + Error Codes + +****************************************************************************/ + +#define CRYPT_XML_E_BASE _HRESULT_TYPEDEF_(0x80092100L) + +// The value is too large +#define CRYPT_XML_E_LARGE _HRESULT_TYPEDEF_(0x80092101L) + +// Too many transforms +#define CRYPT_XML_E_TOO_MANY_TRANSFORMS _HRESULT_TYPEDEF_(0x80092102L) + +// Unsupported XML Encoding +#define CRYPT_XML_E_ENCODING _HRESULT_TYPEDEF_(0x80092103L) + +// Unsupported XML Algorithm +#define CRYPT_XML_E_ALGORITHM _HRESULT_TYPEDEF_(0x80092104L) + +// Unsupported Transform +#define CRYPT_XML_E_TRANSFORM _HRESULT_TYPEDEF_(0x80092105L) + +// Invalid handle +#define CRYPT_XML_E_HANDLE _HRESULT_TYPEDEF_(0x80092106L) + +// Invalid operation +#define CRYPT_XML_E_OPERATION _HRESULT_TYPEDEF_(0x80092107L) + +// Unable to resolve Reference +#define CRYPT_XML_E_UNRESOLVED_REFERENCE _HRESULT_TYPEDEF_(0x80092108L) + +// Invalid digest value +#define CRYPT_XML_E_INVALID_DIGEST _HRESULT_TYPEDEF_(0x80092109L) + +// Invalid signature value +#define CRYPT_XML_E_INVALID_SIGNATURE _HRESULT_TYPEDEF_(0x8009210AL) + +// Unable to create or calculate the hash +#define CRYPT_XML_E_HASH_FAILED _HRESULT_TYPEDEF_(0x8009210BL) + +// Cryptographic signature operation failed +#define CRYPT_XML_E_SIGN_FAILED _HRESULT_TYPEDEF_(0x8009210CL) + +// Signature verification failed +#define CRYPT_XML_E_VERIFY_FAILED _HRESULT_TYPEDEF_(0x8009210DL) + +// Too many signatures +#define CRYPT_XML_E_TOO_MANY_SIGNATURES _HRESULT_TYPEDEF_(0x8009210EL) + +// Invalid key value +#define CRYPT_XML_E_INVALID_KEYVALUE _HRESULT_TYPEDEF_(0x8009210FL) + +// Unexpected XML +#define CRYPT_XML_E_UNEXPECTED_XML _HRESULT_TYPEDEF_(0x80092110L) + +// Unable to find signer's key +#define CRYPT_XML_E_SIGNER _HRESULT_TYPEDEF_(0x80092111L) + +// Non-unique Id attribute found +#define CRYPT_XML_E_NON_UNIQUE_ID _HRESULT_TYPEDEF_(0x80092112L) + +#define CRYPT_XML_E_LAST _HRESULT_TYPEDEF_(0x80092112L) + + +/**************************************************************************** + Global Flags + +****************************************************************************/ + +// Serialization ensures mutual exclusion when two or more threads attempt +// to simultaneously accept a CryptXml object, or memory. +// There is a small performance cost to serialization, +// but it must be used whenever multiple threads access a CryptXml object. +// Set this flag to inhibit serialization. + +#define CRYPT_XML_FLAG_NO_SERIALIZE 0x80000000 + +// CRYPT_XML_FLAG_ALWAYS_RETURN_ENCODED_OBJECT flag is applicable to: +// CryptXmlOpenToEncode +// CryptXmlOpenToDecode +// When this flag is set, then CRYPT_XML_OBJECT structure will always +// return encoded element. See CRYPT_XML_OBJECT for details. + +#define CRYPT_XML_FLAG_ALWAYS_RETURN_ENCODED_OBJECT 0x40000000 + +// CRYPT_XML_FLAG_ENFORCE_ID_NCNAME_FORMAT flag is applicable to: +// CryptXmlOpenToEncode +// CryptXmlOpenToDecode +// When this flag is set, then Id attibutes must conform to +// NCName syntax (http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName). +// By default, CryptXml accepts any valid string for Id attribute. + +#define CRYPT_XML_FLAG_ENFORCE_ID_NCNAME_FORMAT 0x20000000 + +// CRYPT_XML_FLAG_DISABLE_EXTENSIONS flag is applicable to: +// CryptXmlOpenToEncode +// CryptXmlOpenToDecode +// CryptXmlEnumAlgorithmInfo +// When this flag is set only default implementations for signature and +// digest will be utilized and no registered Extensions will be loaded. + +#define CRYPT_XML_FLAG_DISABLE_EXTENSIONS 0x10000000 + +// CRYPT_XML_FLAG_ENFORCE_ID_NAME_FORMAT flag is applicable to: +// CryptXmlOpenToEncode +// CryptXmlOpenToDecode +// When this flag is set, then Id attibutes must conform to +// Name syntax (http://www.w3.org/TR/2000/WD-xml-2e-2000814#idref). +// By default, CryptXml accepts any valid string for Id attribute. + +#define CRYPT_XML_FLAG_ENFORCE_ID_NAME_FORMAT 0x08000000 + +//CRYPT_XML_FLAG_ECDSA_DISIG11 flag is applicable to: +//CryptXmlOpenToEncode +//When this flag is set, ECKeyValue schema defined in XML Signature Syntax and Processing Version 1.1 +//is used to encode the ECC signing key. Otherwise, ECC key value uses the schema defined +//in RFC4050. + +#define CRYPT_XML_FLAG_ECDSA_DSIG11 0x04000000 + +/**************************************************************************** + CRYPT_XML_CHARSET + +****************************************************************************/ +typedef enum +{ + // + // CRYPT_XML_CHARSET_AUTO is supported only in CryptXmlOpenToDecode mode. + // The encoded XML character set will be determined by the parser from + // the XML declaration or the best guess on the characters. + CRYPT_XML_CHARSET_AUTO = 0, + + CRYPT_XML_CHARSET_UTF8 = 1, + + CRYPT_XML_CHARSET_UTF16LE = 2, + + CRYPT_XML_CHARSET_UTF16BE = 3, +}CRYPT_XML_CHARSET; + +/**************************************************************************** + CRYPT_XML_BLOB + +****************************************************************************/ +typedef struct _CRYPT_XML_BLOB{ + CRYPT_XML_CHARSET dwCharset; + _Field_range_( 0, CRYPT_XML_BLOB_MAX ) + ULONG cbData; + _Field_size_(cbData) + BYTE *pbData; +}CRYPT_XML_BLOB, *PCRYPT_XML_BLOB; + +/**************************************************************************** + CRYPT_XML_DATA_BLOB + +****************************************************************************/ +typedef struct _CRYPT_XML_DATA_BLOB{ + _Field_range_( 0, CRYPT_XML_BLOB_MAX ) + ULONG cbData; + _Field_size_(cbData) + BYTE *pbData; +}CRYPT_XML_DATA_BLOB, *PCRYPT_XML_DATA_BLOB; + + +/**************************************************************************** + CRYPT_XML_PROPERTY + + CRYPT_XML_PROPERTY_MAX_HEAP_SIZE + Specifies the maximum heap size to be used by XML layer. + This property is also applied for intermediate buffers used to parse + or construct XML parts. + By default, the limit is equal to CRYPT_XML_BLOB_MAX. + + CRYPT_XML_PROPERTY_SIGNATURE_LOCATION + Specifies the location in XML document where the Signature will be + created. The following formats are supported: + #id - the Id Attribute of the element to insert the Signature; + /a/b/c - the absolute path of the element to insert the Signature; + + CRYPT_XML_PROPERTY_MAX_SIGNATURES + Specifies the maximum number of elements when + parsing an XML document. + This property overrides the default CRYPT_XML_SIGNATURES_MAX value. + + CRYPT_XML_PROPERTY_DOC_DECLARATION + Specifies whether to write an XML document declaration. + This property is used with CryptXmlEncode. The default property is TRUE. + + CRYPT_XML_PROPERTY_XML_OUTPUT_CHARSET + Specifies an encoding charset of XML fragments for custom elements. + This property is used with CryptXmlOpenToDecode. + The default charset is inherited from the opened document. + + NOTE: If a property value is defined as a pointer to data, + then the pointer must be valid for the entire period of signature + operation. + +****************************************************************************/ +typedef enum +{ + CRYPT_XML_PROPERTY_MAX_HEAP_SIZE = 1, // ULONG, sizeof(ULONG) + CRYPT_XML_PROPERTY_SIGNATURE_LOCATION = 2, // LPCWSTR*, sizeof(LPCWSTR) + CRYPT_XML_PROPERTY_MAX_SIGNATURES = 3, // ULONG, sizeof(ULONG) + CRYPT_XML_PROPERTY_DOC_DECLARATION = 4, // BOOL, sizeof(BOOL) + CRYPT_XML_PROPERTY_XML_OUTPUT_CHARSET = 5, // CRYPT_XML_CHARSET, sizeof(CRYPT_XML_CHARSET) +}CRYPT_XML_PROPERTY_ID; + +typedef struct _CRYPT_XML_PROPERTY{ + CRYPT_XML_PROPERTY_ID dwPropId; + _Field_size_bytes_( cbValue ) + const void* pvValue; + ULONG cbValue; +}CRYPT_XML_PROPERTY, *PCRYPT_XML_PROPERTY; + +/**************************************************************************** + PFN_CRYPT_XML_WRITE_CALLBACK + + Callback function used to write data. + + pvCallbackState + [in] An application defined argument for the callback. + + pbData + [in] Pointer to a block of data to be written. + + cbData + Size, in bytes, of the block of data at pbData. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(CALLBACK* PFN_CRYPT_XML_WRITE_CALLBACK)( + _Inout_ void *pvCallbackState, + _In_reads_bytes_( cbData ) + const BYTE *pbData, + ULONG cbData + ); + +/**************************************************************************** + PFN_CRYPT_XML_DATA_PROVIDER_READ + + Callback function used to provide data. + + pvCallbackState + [in] An application defined argument for the callback. + + pbData + [out] Pointer to the buffer that receives the data. + + cbData + [in] Specifies the number of bites to read. + + pcbRead + [out] A pointer to the variable that receives the number of bytes read. + +Return Values: + + The PFN_CRYPT_XML_DATA_PROVIDER callback returns when one of the + following conditions occurs: + - A write operation completes on the write end of the data provider. + - The number of bytes requested is read. + - An error occurs. + + If the function succeeds, the return value is NO_ERROR. + If the function fails, the error code is determined by HRESULT. + If the *pcbRead value is 0, then there is no more data available. + +Remarks: + + The callback shall not return unless number of bytes specified in cbData + is available, or it's the last block of data. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(CALLBACK *PFN_CRYPT_XML_DATA_PROVIDER_READ)( + _Inout_ void *pvCallbackState, + _Out_writes_bytes_to_( cbData, *pcbRead ) + BYTE *pbData, + _In_ ULONG cbData, + _Out_range_( 0, cbData ) + ULONG *pcbRead + ); + +/**************************************************************************** + PFN_CRYPT_XML_DATA_PROVIDER_CLOSE + + Callback function used to release the data provider. + + pvCallbackState + [in] An application defined argument for the callback. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(CALLBACK *PFN_CRYPT_XML_DATA_PROVIDER_CLOSE)( + _Inout_ void *pvCallbackState + ); + +/**************************************************************************** + CRYPT_XML_DATA_PROVIDER + + pvCallbackState + [in] An application defined argument to be passed to + the pfnRead and pfnClose callbacks. + + cbBufferSize + [in] Specifies the size of data provider's buffer, + that can be 0 if the size does not matter or can't be determined by the provider. + This value is used by a caller of pfnRead to determine a size of the receiving buffer. + + pfnRead + [in] Callback function used to read data. + + pfnClose + [in] Callback function used to release the data provider. + The caller must always release the data provider after using it, + even when the read operation failed. + +****************************************************************************/ +typedef struct _CRYPT_XML_DATA_PROVIDER{ + void *pvCallbackState; + ULONG cbBufferSize; + PFN_CRYPT_XML_DATA_PROVIDER_READ pfnRead; + PFN_CRYPT_XML_DATA_PROVIDER_CLOSE pfnClose; +}CRYPT_XML_DATA_PROVIDER, *PCRYPT_XML_DATA_PROVIDER; + +/**************************************************************************** + PFN_CRYPT_XML_CREATE_TRANSFORM + + Callback function used to create transform routine. + + pTransform + [in] Specifies the Transform to apply. + + pProviderIn + [in] Address of the data provider to be used as input for transform. + + pfpProviderOut + [out] Address of the variable that receives a pointer to + the transform's data provider. + + NOTE: In the transform chain, the output of the trasnform is the input of the next one. + + The pProviderOut implementation is responsible to call pProviderIn->pfnClose + to relase the input provider. Usually it's implemented in its own pfnClose. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(CALLBACK *PFN_CRYPT_XML_CREATE_TRANSFORM)( + _In_ const CRYPT_XML_ALGORITHM *pTransform, + _In_ CRYPT_XML_DATA_PROVIDER *pProviderIn, + _Out_ CRYPT_XML_DATA_PROVIDER *pProviderOut + ); + + +/**************************************************************************** + CRYPT_XML_STATUS + + Structure contains information about signature validation status, + summary status information about a SignedInfo, or summary information + status about an array of Reference. + + cbSize + Size of this structure. + + dwErrorStatus + Error flags. + + dwInfoStatus + Informational flags. + +****************************************************************************/ +typedef struct _CRYPT_XML_STATUS{ + ULONG cbSize; + DWORD dwErrorStatus; + DWORD dwInfoStatus; +}CRYPT_XML_STATUS, *PCRYPT_XML_STATUS; + +#define CRYPT_XML_STATUS_NO_ERROR 0x00000000 + +//=========================================================================== +// Error Status +//=========================================================================== + +// One of the References could not be resolved to digest the data +#define CRYPT_XML_STATUS_ERROR_NOT_RESOLVED 0x00000001 + +// Digest value was not verified successfully +#define CRYPT_XML_STATUS_ERROR_DIGEST_INVALID 0x00000002 + +// One of the algorithm URIs specified in XML is not supported +#define CRYPT_XML_STATUS_ERROR_NOT_SUPPORTED_ALGORITHM 0x00000004 + +// One of the transform URIs specified in XML is not supported +#define CRYPT_XML_STATUS_ERROR_NOT_SUPPORTED_TRANSFORM 0x00000008 + +// Signature value was not verified successfully +#define CRYPT_XML_STATUS_ERROR_SIGNATURE_INVALID 0x00010000 + +// Unable to parse the KeyInfo element +#define CRYPT_XML_STATUS_ERROR_KEYINFO_NOT_PARSED 0x00020000 + +//=========================================================================== +// Info Status +//=========================================================================== + +// The Reference URI points to an internal element in XML +// and can be resolved automatically +#define CRYPT_XML_STATUS_INTERNAL_REFERENCE 0x00000001 + +// The KeyValue element parsed and a key handle imported successfully +#define CRYPT_XML_STATUS_KEY_AVAILABLE 0x00000002 + +// The reference is being digetsed +#define CRYPT_XML_STATUS_DIGESTING 0x00000004 + +// The digest value successfully verified +#define CRYPT_XML_STATUS_DIGEST_VALID 0x00000008 + +// The signature value successfully verified +#define CRYPT_XML_STATUS_SIGNATURE_VALID 0x00010000 + +// The document is opened to encode +#define CRYPT_XML_STATUS_OPENED_TO_ENCODE 0x80000000 + + +/**************************************************************************** + CRYPT_XML_ALGORITHM + + cbSize + Size of this structure. + + wszAlgorithm + Specifies the Algorithm attribute. + This parameter must be NULL, when Encoded is provided by an application. + + Encoded + [optional] Contains the XML encoded element. + This value is set only when ANY element is present. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +****************************************************************************/ +typedef struct _CRYPT_XML_ALGORITHM{ + ULONG cbSize; + LPCWSTR wszAlgorithm; + CRYPT_XML_BLOB Encoded; +}CRYPT_XML_ALGORITHM, *PCRYPT_XML_ALGORITHM; + +/**************************************************************************** + CRYPT_XML_TRANSFORM_INFO + + cbSize + Size of this structure. + + wszAlgorithm + Specifies the Algorithm attribute. + + cbBufferSize + Maximum buffer size for transformed data. + This value can be 0 if the size can't be determined at the initialization time. + + dwFlags + The following flags are supported + CRYPT_XML_TRANSFORM_ON_STREAM + CRYPT_XML_TRANSFORM_ON_NODESET + CRYPT_XML_TRANSFORM_URI_QUERY_STRING + + pfnCreateTransform + [callback] Pointer to a function to create a transform. + +****************************************************************************/ +typedef struct _CRYPT_XML_TRANSFORM_INFO{ + ULONG cbSize; + LPCWSTR wszAlgorithm; + ULONG cbBufferSize; + DWORD dwFlags; + PFN_CRYPT_XML_CREATE_TRANSFORM pfnCreateTransform; +}CRYPT_XML_TRANSFORM_INFO, *PCRYPT_XML_TRANSFORM_INFO; + +// +// Informational flag, specifies that transform is implemented +// on a stream of bytes + +#define CRYPT_XML_TRANSFORM_ON_STREAM 0x00000001 + +// +// Informational flag, specifies that transform is implemented +// on XML node set + +#define CRYPT_XML_TRANSFORM_ON_NODESET 0x00000002 + +// +// In some cases, the URI may contain additional information +// in the QueryString after the & sign. +// When this flag is set, the URI comparisson will be performed on the core URI +// without the QueryString + +#define CRYPT_XML_TRANSFORM_URI_QUERY_STRING 0x00000004 + +/**************************************************************************** + CRYPT_XML_TRANSFORM_CHAIN_CONFIG + + cTransformInfo + Count of elements in rgTransformInfo. + + rgTransformInfo + Array of PCRYPT_XML_TRANSFORM_INFO + + ****************************************************************************/ +typedef struct _CRYPT_XML_TRANSFORM_CHAIN_CONFIG{ + ULONG cbSize; + ULONG cTransformInfo; + _Field_size_(cTransformInfo) + PCRYPT_XML_TRANSFORM_INFO *rgpTransformInfo; +} CRYPT_XML_TRANSFORM_CHAIN_CONFIG, *PCRYPT_XML_TRANSFORM_CHAIN_CONFIG; + +/**************************************************************************** + CRYPT_XML_KEY_DSA_KEY_VALUE + + Encapsulates DSA key value. + + P + BLOB containing DSA key P parameter. + + Q + BLOB containing DSA key Q parameter. + + G + BLOB containing DSA key G parameter. + + Y + BLOB containing DSA key Y parameter. + + J + BLOB containing DSA key J parameter. + + Seed + BLOB containing DSA key seed. + + Counter + BLOB containing DSA key counter. + +****************************************************************************/ +typedef struct _CRYPT_XML_KEY_DSA_KEY_VALUE{ + CRYPT_XML_DATA_BLOB P; + CRYPT_XML_DATA_BLOB Q; + CRYPT_XML_DATA_BLOB G; + CRYPT_XML_DATA_BLOB Y; + CRYPT_XML_DATA_BLOB J; + CRYPT_XML_DATA_BLOB Seed; + CRYPT_XML_DATA_BLOB Counter; +} CRYPT_XML_KEY_DSA_KEY_VALUE; + +/**************************************************************************** + CRYPT_XML_KEY_ECDSA_KEY_VALUE + + Encapsulates ECDSA key value. + + wszNamedCurve + Specifies named curve as a Unicode string in URN format, + for example "urn:oid:1.2.3.4" + + X + BLOB containing ECDSA key X parameter. + + Y + BLOB containing ECDSA key Y parameter. + + ExplicitPara + [optional] XML part containing the element. + + NOTE: + CryptXml does not support explicit parameters due to CNG ECDSA key support. + +****************************************************************************/ +typedef struct _CRYPT_XML_KEY_ECDSA_KEY_VALUE{ + LPCWSTR wszNamedCurve; // URN Format urn:oid:1.2.3.4 + CRYPT_XML_DATA_BLOB X; + CRYPT_XML_DATA_BLOB Y; + CRYPT_XML_BLOB ExplicitPara; // Encoded +} CRYPT_XML_KEY_ECDSA_KEY_VALUE; + +/**************************************************************************** + CRYPT_XML_KEY_RSA_KEY_VALUE + + Encapsulates RSA key value. + + Modulus + BLOB containing RSA key modulus. + + Exponent + BLOB containing RSA key exponent. + +****************************************************************************/ +typedef struct _CRYPT_XML_KEY_RSA_KEY_VALUE{ + CRYPT_XML_DATA_BLOB Modulus; + CRYPT_XML_DATA_BLOB Exponent; +} CRYPT_XML_KEY_RSA_KEY_VALUE; + +/**************************************************************************** + CRYPT_XML_KEY_VALUE + + Represents the KeyValueType choice in the element. + + dwType + Indicates the union variant used for the key value. + + This can be one of the following values: + CRYPT_XML_KEY_VALUE_TYPE_DSA + CRYPT_XML_KEY_VALUE_TYPE_RSA + CRYPT_XML_KEY_VALUE_TYPE_ECDSA + CRYPT_XML_KEY_VALUE_TYPE_CUSTOM + + DSAKeyValue + CRYPT_XML_KEY_DSA_KEY_VALUE representing the DSA key + + RSAKeyValue + CRYPT_XML_KEY_RSA_KEY_VALUE representing the RSA key + + ECDSAKeyValue + CRYPT_XML_KEY_ECDSA_KEY_VALUE representing the ECDSA key + + Custom + XML part containing unsupported elements of the element. + +Schema: + + + + + + + + + + +****************************************************************************/ +typedef struct _CRYPT_XML_KEY_VALUE{ + DWORD dwType; + union + { + CRYPT_XML_KEY_DSA_KEY_VALUE DSAKeyValue; + CRYPT_XML_KEY_RSA_KEY_VALUE RSAKeyValue; + CRYPT_XML_KEY_ECDSA_KEY_VALUE ECDSAKeyValue; + CRYPT_XML_BLOB Custom; // XML Encoded element + }; +} CRYPT_XML_KEY_VALUE; + +#define CRYPT_XML_KEY_VALUE_TYPE_DSA 0x00000001 +#define CRYPT_XML_KEY_VALUE_TYPE_RSA 0x00000002 +#define CRYPT_XML_KEY_VALUE_TYPE_ECDSA 0x00000003 +#define CRYPT_XML_KEY_VALUE_TYPE_CUSTOM 0x00000004 + +/**************************************************************************** + CRYPT_XML_ISSUER_SERIAL + + + + + + + + +****************************************************************************/ +typedef struct _CRYPT_XML_ISSUER_SERIAL{ + LPCWSTR wszIssuer; + LPCWSTR wszSerial; +} CRYPT_XML_ISSUER_SERIAL; + +/**************************************************************************** + CRYPT_XML_X509DATA_ITEM + + Represents the X509DataType choice in the element. + + dwType + Indicates the union variant used for the X509Data. + + This can be one of the following values: + CRYPT_XML_X509DATA_TYPE_ISSUER_SERIAL + CRYPT_XML_X509DATA_TYPE_SKI + CRYPT_XML_X509DATA_TYPE_SUBJECT_NAME + CRYPT_XML_X509DATA_TYPE_CERTIFICATE + CRYPT_XML_X509DATA_TYPE_CRL + CRYPT_XML_X509DATA_TYPE_CUSTOM + + IssuerSerial + CRYPT_XML_ISSUER_SERIAL representing the element + + SKI + BLOB containing the element + + wszSubjectName + Subject name as a Unicode string + + Certificate + BLOB containing X.509 certificate + + CRL + BLOB containing X.509 certificate revocation list + + Custom + XML part containing unsupported elements of the element. + +****************************************************************************/ +typedef struct _CRYPT_XML_X509DATA_ITEM{ + DWORD dwType; + union + { + CRYPT_XML_ISSUER_SERIAL IssuerSerial; + CRYPT_XML_DATA_BLOB SKI; + LPCWSTR wszSubjectName; + CRYPT_XML_DATA_BLOB Certificate; + CRYPT_XML_DATA_BLOB CRL; + CRYPT_XML_BLOB Custom; // XML Encoded element + }; +} CRYPT_XML_X509DATA_ITEM; + +#define CRYPT_XML_X509DATA_TYPE_ISSUER_SERIAL 0x00000001 +#define CRYPT_XML_X509DATA_TYPE_SKI 0x00000002 +#define CRYPT_XML_X509DATA_TYPE_SUBJECT_NAME 0x00000003 +#define CRYPT_XML_X509DATA_TYPE_CERTIFICATE 0x00000004 +#define CRYPT_XML_X509DATA_TYPE_CRL 0x00000005 +#define CRYPT_XML_X509DATA_TYPE_CUSTOM 0x00000006 + +/**************************************************************************** + CRYPT_XML_X509DATA + + Represents the sequence of choices in the element. + + cX509Data + Number of elements in rgX509Data + + rgX509Data + Array of CRYPT_XML_X509DATA_ITEM + +Schema: + + + + + + + + + + + + + + + +****************************************************************************/ +typedef struct _CRYPT_XML_X509DATA{ + UINT cX509Data; + _Field_size_(cX509Data) + CRYPT_XML_X509DATA_ITEM *rgX509Data; +} CRYPT_XML_X509DATA; + +/**************************************************************************** + CRYPT_XML_KEY_INFO_ITEM + + Represents the KeyInfoType choice in the element. + + dwType + Indicates the union variant used for the key info. + + This can be one of the following values: + CRYPT_XML_KEYINFO_TYPE_KEYNAME + CRYPT_XML_KEYINFO_TYPE_KEYVALUE + CRYPT_XML_KEYINFO_TYPE_RETRIEVAL + CRYPT_XML_KEYINFO_TYPE_X509DATA + CRYPT_XML_KEYINFO_TYPE_CUSTOM + + wszKeyName + Key name is a Unicode string + + KeyValue + CRYPT_XML_KEY_VALUE representing the element + + RetrievalMethod + BLOB containing the element + + X509Data + CRYPT_XML_X509DATA representing the element + + Custom + XML part containing unsupported elements of the key info. + +****************************************************************************/ +typedef struct _CRYPT_XML_KEY_INFO_ITEM{ + DWORD dwType; + union + { + LPCWSTR wszKeyName; + CRYPT_XML_KEY_VALUE KeyValue; + CRYPT_XML_BLOB RetrievalMethod; // XML Encoded element + CRYPT_XML_X509DATA X509Data; + CRYPT_XML_BLOB Custom; // XML Encoded element + }; +} CRYPT_XML_KEY_INFO_ITEM; + +#define CRYPT_XML_KEYINFO_TYPE_KEYNAME 0x00000001 +#define CRYPT_XML_KEYINFO_TYPE_KEYVALUE 0x00000002 +#define CRYPT_XML_KEYINFO_TYPE_RETRIEVAL 0x00000003 +#define CRYPT_XML_KEYINFO_TYPE_X509DATA 0x00000004 +#define CRYPT_XML_KEYINFO_TYPE_CUSTOM 0x00000005 + +/**************************************************************************** + CRYPT_XML_KEY_INFO + + Encapsulates the which is an optional element that enables + the recipient(s) to obtain the key needed to validate the signature. + + cbSize + Size of this structure. + + wszId + [optional] Specifies the ID attribute. + + cKeyInfo + Number of elements in rgKeyInfo + + rgKeyInfo + Array of CRYPT_XML_KEY_INFO_ITEM. + + hVerifyKey + A BCrypt key handle which is resolved from the first element. + NOTE: If more than one elements included, then only the first + one is used, and the rest are ignored. + +Schema: + + + + + + + + + + + + + + + + + +****************************************************************************/ +typedef struct _CRYPT_XML_KEY_INFO{ + ULONG cbSize; + LPCWSTR wszId; + UINT cKeyInfo; + _Field_size_(cKeyInfo) + CRYPT_XML_KEY_INFO_ITEM *rgKeyInfo; + BCRYPT_KEY_HANDLE hVerifyKey; // <= A handle, resolved from the first KeyValue, if any +}CRYPT_XML_KEY_INFO, *PCRYPT_XML_KEY_INFO; + + +/**************************************************************************** + CRYPT_XML_REFERENCE + + cbSize + Size of this structure. + + hReference + Handle to the Reference object. + + wszId + [optional] Specifies unique identifier attribute. + + wszUri + [optional] Specifies the URI attribute. + + wszType + [optional] Specifies the Type attribute. + + DigestMethod + Specifies digest method. + + DigestValue + Specifies hash value. + + cTransform + Number of elements in the array rgTransform. + + rgTransform + Array of structures CRYPT_XML_TRANSFORM_INFO, + each holding information about Transform applied to the signed data. + +****************************************************************************/ +typedef struct _CRYPT_XML_REFERENCE{ + ULONG cbSize; + HCRYPTXML hReference; + LPCWSTR wszId; + LPCWSTR wszUri; + LPCWSTR wszType; + CRYPT_XML_ALGORITHM DigestMethod; + CRYPT_DATA_BLOB DigestValue; + ULONG cTransform; + _Field_size_(cTransform) + CRYPT_XML_ALGORITHM *rgTransform; +}CRYPT_XML_REFERENCE, *PCRYPT_XML_REFERENCE; + +/**************************************************************************** + CRYPT_XML_REFERENCES + +****************************************************************************/ +typedef struct _CRYPT_XML_REFERENCES{ + ULONG cReference; + _Field_size_(cReference) + PCRYPT_XML_REFERENCE *rgpReference; +}CRYPT_XML_REFERENCES, *PCRYPT_XML_REFERENCES; + +/**************************************************************************** + CRYPT_XML_SIGNED_INFO + + cbSize + Size of this structure. + + wszId + [optional] Specifies unique identifier attribute. + + Canonicalization + Specifies a canonicalization algorithm. + + SignatureMethod + Specifies a signature algorithm. + + cReference + Number of elements in the array rgReference. + + rgpReference + Array of pointers to CRYPT_XML_REFERENCE. + + Encoded + Contains canonicalized element. + +****************************************************************************/ +typedef struct _CRYPT_XML_SIGNED_INFO{ + ULONG cbSize; + LPCWSTR wszId; + CRYPT_XML_ALGORITHM Canonicalization; + CRYPT_XML_ALGORITHM SignatureMethod; + ULONG cReference; + _Field_size_(cReference) + PCRYPT_XML_REFERENCE *rgpReference; + CRYPT_XML_BLOB Encoded; +}CRYPT_XML_SIGNED_INFO, *PCRYPT_XML_SIGNED_INFO; + +/**************************************************************************** + CRYPT_XML_OBJECT + + cbSize + Size of this structure. + + hObject + Handle to the Object object. + + wszId + [optional] Specifies unique identifier attribute. + + wszMimeType + [optional] Specifies MIME-type attribute. + + wszEncoding + [optional] Specifies encoding method attribute. + + Manifest + [optional] Specifies array of References in Manifest. + + Encoded + [optional] An XML part of the entire element. + This field is empty when the element does not contain + '##any' elements, therefore applications do not need to parse + it while validating the signature. + Applications may use CRYPT_XML_FLAG_ALWAYS_RETURN_ENCODED_OBJECT flag + to always receive encoded element. + + XML Schema: + + + + + + + + + + + + +****************************************************************************/ +typedef struct _CRYPT_XML_OBJECT{ + ULONG cbSize; + HCRYPTXML hObject; + LPCWSTR wszId; + LPCWSTR wszMimeType; + LPCWSTR wszEncoding; + CRYPT_XML_REFERENCES Manifest; // OPTIONAL + CRYPT_XML_BLOB Encoded; +}CRYPT_XML_OBJECT, *PCRYPT_XML_OBJECT; + +/**************************************************************************** + CRYPT_XML_SIGNATURE + + cbSize + Size of this structure. + + hSignature + Handle to the Signature object. + + SignedInfo + The structure of CRYPT_XML_SIGNED_INFO includes the canonicalization algorithm, + a signature algorithm, and one or more references. + The SignedInfo element may contain an optional ID attribute that will allow + it to be referenced by other signatures and objects. + +SignatureValue + CRYPT_DATA_BLOB that contains a cryptographic signature value over the element. + +KeyInfo + [optional] Specifies key info. + +cObject + Number of elements in the array rgObject. + +rgObject + Array of structures, each holding information of type CRYPT_XML_OBJECT. + + XML Schema: + + + + + + + + + + + + +****************************************************************************/ +typedef struct _CRYPT_XML_SIGNATURE{ + ULONG cbSize; + HCRYPTXML hSignature; + LPCWSTR wszId; + CRYPT_XML_SIGNED_INFO SignedInfo; + CRYPT_DATA_BLOB SignatureValue; + CRYPT_XML_KEY_INFO *pKeyInfo; // OPTIONAL + ULONG cObject; + _Field_size_(cObject) + PCRYPT_XML_OBJECT *rgpObject; // OPTIONAL +}CRYPT_XML_SIGNATURE, *PCRYPT_XML_SIGNATURE; + +/**************************************************************************** + CRYPT_XML_DOC_CTXT + + cbSize + Size of this structure. + + hDocCtxt + Handle to Document Context. + + cSignature + Number of elements in the array rgSignature. + + rgSignature + Array of structures, each holding information of type CRYPT_XML_SIGNATURE. + + pEncoded + Contains XML document. + +****************************************************************************/ +typedef struct _CRYPT_XML_DOC_CTXT{ + ULONG cbSize; + HCRYPTXML hDocCtxt; + CRYPT_XML_TRANSFORM_CHAIN_CONFIG *pTransformsConfig; + ULONG cSignature; + _Field_size_(cSignature) + PCRYPT_XML_SIGNATURE *rgpSignature; +}CRYPT_XML_DOC_CTXT, *PCRYPT_XML_DOC_CTXT; + +/**************************************************************************** + CryptXmlClose + + The CryptXmlClose function closes a cryptographic XML object handle. + At each call to this function, the reference count on the handle + is reduced by one. When the reference count reaches zero, an object + encapsulated by the handle is fully released. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlClose( + _In_ HCRYPTXML hCryptXml + ); + +/**************************************************************************** + CryptXmlGetTransforms + + The CryptXmlGetTransforms function returns information on + default Transform Chain Engine. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlGetTransforms( + _Outptr_ const CRYPT_XML_TRANSFORM_CHAIN_CONFIG **ppConfig + ); + +/**************************************************************************** + CryptXmlOpenToEncode + + The CryptXmlOpenToEndoce function opens an XML digital signature to encode + and returns a handle of the opened signature object. + The handle encapsulates a Document Context with single Signature object and + remains open until CryptXmlClose is called. + + pConfig + [in, optional] Specifies the transform chain engine. + If this parameter is NULL, + then a default engine will be used to apply transforms. + + dwFlags + [in] Currently defined dwFlags are shown in the following table. + + CRYPT_XML_FLAG_NO_SERIALIZE + CRYPT_XML_FLAG_DISABLE_EXTENSIONS + CRYPT_XML_FLAG_ENFORCE_ID_NCNAME_FORMAT | CRYPT_XML_FLAG_ENFORCE_ID_NAME_FORMAT + + wszId + [in, optional] Specifies the Id attribute of the element. + If this parameter is NULL or an empty string, then no Id attribute will be produced. + + rgProperty + [in, optional] Specifies additional properties. + This pointer must be valid until CryptXmlClose is + called on the document context. + + phSignature + [out] Handle to the Signature object. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlOpenToEncode( + _In_opt_ const CRYPT_XML_TRANSFORM_CHAIN_CONFIG *pConfig, + DWORD dwFlags, + _In_opt_ LPCWSTR wszId, + _In_reads_opt_(cProperty) + const CRYPT_XML_PROPERTY* rgProperty, + _In_ ULONG cProperty, + _In_opt_ const CRYPT_XML_BLOB *pEncoded, + _Outptr_ HCRYPTXML *phSignature + ); + +/**************************************************************************** + CryptXmlOpenToDecode + + The CryptXmlOpenToDecode function opens an XML digital signature to decode + and returns a handle of the Document Context that encapsulates Signatures + object. The handle remains open until CryptXmlClose is called. + The Document Context may include one or more Signature objects. + + hEngine + [in, optional] Handle of the transform chain engine. + If this parameter is NULL, then a default engine will be + used to apply transforms. + + dwFlags + [in] Currently defined dwFlags are shown in the following table. + + CRYPT_XML_FLAG_NO_SERIALIZE + CRYPT_XML_FLAG_DISABLE_EXTENSIONS + CRYPT_XML_FLAG_ALWAYS_RETURN_ENCODED_OBJECT + CRYPT_XML_FLAG_ENFORCE_ID_NCNAME_FORMAT | CRYPT_XML_FLAG_ENFORCE_ID_NAME_FORMAT + + rgProperty + [in, optional] Specifies additional properties. + + phCryptXml + [out] Handle to the Document Context object. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlOpenToDecode( + _In_opt_ const CRYPT_XML_TRANSFORM_CHAIN_CONFIG *pConfig, + DWORD dwFlags, + _In_reads_opt_(cProperty) + const CRYPT_XML_PROPERTY* rgProperty, + _In_ ULONG cProperty, + _In_ const CRYPT_XML_BLOB *pEncoded, + _Outptr_ HCRYPTXML *phCryptXml + ); + +/**************************************************************************** + CryptXmlAddObject + + The CryptXmlAddObject function adds the element to Signature in + the Document Context opened to encode. + See Remarks. + + hSignatureOrObject + [in] Handle to the Signature returned by CryptXmlOpenToEncode; + or handle to a Reference returned by CryptXmlCreateReference with + CRYPT_XML_FLAG_CREATE_REFERENCE_AS_OBJECT flag. See Remarks. + + dwFlags + [in] The following flags are defined. + CRYPT_XML_FLAG_ADD_OBJECT_CREATE_COPY + + rgProperty + [in, optional] Specifies additional properties used to decode the element. + + cProperty + [in] Specifies number of elements in the rgProperty array. + + pEncoded + [in] Specifies the element or a part of it, see Remarks. + + ppObject + [out, optional] Pointer to CRYPT_XML_OBJECT* to receive a decoded structure. + This parameter must be NULL when hSignatureOrObject is a handle to the Object. + + REMARKS: + When the hSignatureOrObject specifies a handle to a Reference returned + by CryptXmlCreateReference, then pEncoded specifies XML content to be included + inside the node after the optional element. + The pEncoded pointer must be valid till the signature is complete. + Otherwise, use CRYPT_XML_FLAG_ADD_OBJECT_CREATE_COPY flag to create in-memory copy. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlAddObject( + _In_ HCRYPTXML hSignatureOrObject, + DWORD dwFlags, + _In_reads_opt_(cProperty) + const CRYPT_XML_PROPERTY* rgProperty, + _In_ ULONG cProperty, + _In_ const CRYPT_XML_BLOB *pEncoded, + _Outptr_result_maybenull_ const CRYPT_XML_OBJECT **ppObject + ); + +// Used to create in-memory copy of XML part to be included in the +#define CRYPT_XML_FLAG_ADD_OBJECT_CREATE_COPY 0x00000001 + +/**************************************************************************** + CryptXmlCreateReference + + hCryptXml + [in] Handle of the XML signature. + + dwFlags + [in] Currently defined dwFlags are shown in the following table. + CRYPT_XML_FLAG_CREATE_REFERENCE_AS_OBJECT + + pwszId + [in, optional] Specifies the Id attribute of the element. + If this parameter is NULL, then the Id attribute will not be created. + If this parameter is an empty string, then the Id attribute with empty + value will be created. + + pwszURI + [in] Specifies the URI attribute of the element. + If this parameter is an empty string, + then the Uri attribute with empty value will be created. + + pwszType + [in, optional] Specifies the Type attribute of the element. + The processing Engine does not check or use this attribute. + + pDigestMethod + [in] Specifies the digest method. + + cTransform + [in] Number of elements in rgTransform array. + + rgTransform + [in, optional] Ordered array of transform algorithms to be applied to + the reference data before digest calculation. + + phReference + [out] Pointer to a Reference Handle. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlCreateReference( + _In_ HCRYPTXML hCryptXml, + DWORD dwFlags, + _In_opt_ LPCWSTR wszId, + _In_opt_ LPCWSTR wszURI, + _In_opt_ LPCWSTR wszType, + _In_ const CRYPT_XML_ALGORITHM *pDigestMethod, + ULONG cTransform, + _In_reads_opt_(cTransform) + const CRYPT_XML_ALGORITHM *rgTransform, + _Outptr_ HCRYPTXML *phReference + ); + +// When this flag is set an Object will be created and added to the Signature, +// and a Reference to the Object will be created in SignedInfo. +// The returned handle is encapsulated Object and can be used +// in subsequent calls to CryptXmlCreateReference to create references in +// Manifest. + +#define CRYPT_XML_FLAG_CREATE_REFERENCE_AS_OBJECT 0x00000001 + +/**************************************************************************** + CryptXmlDigestReference + + The CryptXmlDigestReference function is used by an application to digest + the resolved reference. + This function applies Transforms before updating the digest. + + hReference + [in] Handle to Reference object. + + dwFlags + [in] Currently defined dwFlags are shown in the following table. + + pDataProviderIn + [in,out] Specifies the data provider. + +Remarks: + + When CRYPT CRYPT_XML_DIGEST_REFERENCE_DATA_TRANSFORMED flag is set, + the processing engine directly digests received data without + applying the transform chain engine. + + The CryptXmlDigestReference function always calls pDataProviderIn->fpnClose. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlDigestReference( + _In_ HCRYPTXML hReference, + DWORD dwFlags, + _In_ CRYPT_XML_DATA_PROVIDER *pDataProviderIn + ); + +// Specifies that the processing engine creates the digest +// without applying the transform chain engine. +#define CRYPT_XML_DIGEST_REFERENCE_DATA_TRANSFORMED 0x00000001 + +/**************************************************************************** + CryptXmlSetHMACSecret + + The CryptXmlSetHMACSecret function set HMAC secret on the handle before + calling CryptXmlSign or CryptXmlVerify. + + hSignature + [in] Handle to Signature. + + pbSecret + [in] Pointer to a block of bytes. + The pointer must be valid during calls to CryptXmlSign or CryptXmlVerify. + + cbSecret + Size, in bytes, of the block of data at pbSecret. + + NOTE: When using HMAC, the key handles passed to CryptXmlSign or CryptXmlVerify + must be NULL. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlSetHMACSecret( + _In_ HCRYPTXML hSignature, + _In_reads_bytes_( cbSecret ) + const BYTE *pbSecret, + ULONG cbSecret + ); + +/**************************************************************************** + CRYPT_XML_KEYINFO_PARAMS + + This structure is passed to CryptXmlSign specifying + the members of element to be encoded. + + wszId + Specifies the Id attribute of the element + + wszKeyName + Specifies value for the element + + SKI + Specifies value for the element + + wszSubjectName + Specifies value for the element + + cCertificate + Specifies number of items in the rgCertificate array + + rgCertificate + Specifies array of CERT_BLOB to populate elements + + cCRL; + Specifies number of items in the rgCRL array + + rgCRL + Specifies array of CERT_BLOB to populate elements + +****************************************************************************/ +typedef struct _CRYPT_XML_KEYINFO_PARAM +{ + LPCWSTR wszId; + LPCWSTR wszKeyName; + CERT_BLOB SKI; + LPCWSTR wszSubjectName; + ULONG cCertificate; + _Field_size_(cCertificate) + CERT_BLOB *rgCertificate; + ULONG cCRL; + _Field_size_(cCRL) + CERT_BLOB *rgCRL; +}CRYPT_XML_KEYINFO_PARAM; + +/**************************************************************************** + CRYPT_XML_KEYINFO_SPEC + +****************************************************************************/ +typedef enum +{ + CRYPT_XML_KEYINFO_SPEC_NONE = 0, // No KeyInfo + CRYPT_XML_KEYINFO_SPEC_ENCODED = 1, // CRYPT_XML_BLOB* + CRYPT_XML_KEYINFO_SPEC_PARAM = 2, // CRYPT_XML_KEYINFO_PARAM* +}CRYPT_XML_KEYINFO_SPEC; + +/**************************************************************************** + CryptXmlSign + + The CryptXmlSign function creates a cryptographic signature over SignedInfo + element in a document context opened for encode. + + hSignature + [in] Handle to Signature. + + hKey + [in] Handle to a Private Key used to sign the SignedInfo element. + This parameter must be NULL for HMAC-based signature algorithms. + + dwKeySpec + [in] Identifies the private key to use from the provider's container. + It can be AT_KEYEXCHANGE, AT_SIGNATURE or 0. + This parameter is ignored if an NCRYPT_KEY_HANDLE is used in + the hCryptProvOrNCryptKey parameter. + + dwFlags + [in] The following value is defined. + CRYPT_XML_SIGN_ADD_KEYVALUE + CRYPT_XML_FLAG_DISABLE_EXTENSIONS + + dwKeyInfoSpec + [in] Specifies the type of pvKeyInfoSpec data structure. + + pvKeyInfoSpec + [in] Pointer to a structure determined by the value of dwKeyInfoSpec. + The following table specifies possible combinations for + dwKeyInfoSpec and pvKeyInfoSpec + + dwKeyInfoSpec pvKeyInfoSpec + ----------------------------- ------------------------ + CRYPT_XML_KEYINFO_SPEC_NONE NULL + CRYPT_XML_KEYINFO_SPEC_ENCODED CRYPT_XML_BLOB* + CRYPT_XML_KEYINFO_SPEC_PARAM CRYPT_XML_KEYINFO_PARAM* + + pSignatureMethod + [in] Specifies the signature method. + + pCanonicalization + [in] Specifies the canonicalization method. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlSign( + _In_ HCRYPTXML hSignature, + _In_opt_ HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hKey, + DWORD dwKeySpec, + DWORD dwFlags, + CRYPT_XML_KEYINFO_SPEC dwKeyInfoSpec, + _In_opt_ const void *pvKeyInfoSpec, + _In_ const CRYPT_XML_ALGORITHM *pSignatureMethod, + _In_ const CRYPT_XML_ALGORITHM *pCanonicalization + ); + +// Specify this flag to populate element from +// the hKey handle. +// NOTE: This flag can not be used when dwKeyInfoSpec is +// set to CRYPT_XML_KEYINFO_SPEC_ENCODED +#define CRYPT_XML_SIGN_ADD_KEYVALUE 0x00000001 + +/**************************************************************************** + CryptXmlImportPublicKey + + dwFlags + The following flags are supported: + CRYPT_XML_FLAG_DISABLE_EXTENSIONS + + pKeyValue + CRYPT_XML_KEY_VALUE to be imported. + + phKey + [out] Pointer to BCRYPT_KEY_HANDLE that receives imported key handle. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlImportPublicKey( + DWORD dwFlags, + _In_ const CRYPT_XML_KEY_VALUE *pKeyValue, + _Out_ BCRYPT_KEY_HANDLE *phKey + ); + +/**************************************************************************** + CryptXmlVerifySignature + + The CryptXmlVerifySignature function performs a cryptographic signature + validation over SignedInfo element in a document context opened for decode. + hSignature + [in] Handle to Signature. + + hKey + [in] Handle to a Public Key to verify the signature value on + the SignedInfo element. + This parameter must be NULL for HMAC-based signature algorithms. + + dwFlags + [in] The following flags are supported: + CRYPT_XML_FLAG_DISABLE_EXTENSIONS + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlVerifySignature( + _In_ HCRYPTXML hSignature, + _In_opt_ BCRYPT_KEY_HANDLE hKey, + DWORD dwFlags + ); + +/**************************************************************************** + CryptXmlGetDocContext + + The CryptXmlGetDocContext function returns data structure encapsulated by + a handle to Document Context. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlGetDocContext( + _In_ HCRYPTXML hCryptXml, + _Outptr_ const CRYPT_XML_DOC_CTXT **ppStruct + ); + +/**************************************************************************** + CryptXmlGetSignature + + The CryptXmlGetSignature function returns data structure encapsulated + by a handle to Signature. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlGetSignature( + _In_ HCRYPTXML hCryptXml, + _Outptr_ const CRYPT_XML_SIGNATURE **ppStruct + ); + +/**************************************************************************** + CryptXmlGetReference + +The CryptXmlGetReference function returns data structure encapsulated +by a handle to Reference. +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlGetReference( + _In_ HCRYPTXML hCryptXml, + _Outptr_ const CRYPT_XML_REFERENCE **ppStruct + ); + +/**************************************************************************** + CryptXmlGetStatus + +The CryptXmlGetStatus function returns a CRYPT_XML_STATUS for array +of Signature, single Signature, Reference or Manifest. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlGetStatus( + _In_ HCRYPTXML hCryptXml, + _Out_ CRYPT_XML_STATUS *pStatus + ); + +/**************************************************************************** + CryptXmlEncode + + The CryptXmlEncode function constructs XML document using the XML writer + callback that allows applications to stream XML being constructed. + + hCryptXml + [in] Specifies the handle of an object to be serialized. + The handle can be of Signature, Object, Reference types. + + rgProperty + [in, optional] Specifies additional properties used to encode XML. + + cProperty + [in] Specifies number of elements in the rgProperty array. + + pvCallbackState + [in] An application-defined argument to be passed to the callback. + + pfnWrite + [in, callback] An application-defined callback to receive constructed XML. + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlEncode( + _In_ HCRYPTXML hCryptXml, + CRYPT_XML_CHARSET dwCharset, + _In_reads_opt_(cProperty) + const CRYPT_XML_PROPERTY* rgProperty, + _In_ ULONG cProperty, + _Inout_ void *pvCallbackState, + _In_ PFN_CRYPT_XML_WRITE_CALLBACK pfnWrite + ); + +/**************************************************************************** + CRYPT_XML_ALGORITHM_INFO + + cbSize + The size, in bytes, of this structure. + + wszAlgorithmURI + The URI associated with attribute of the SignatureMethod or DigestMethod elements + + wszName + [optional] Friendly name of the algorithm. + + dwGroupId + Can be one of the following values: + CRYPT_XML_GROUP_ID_HASH Hash algorithms + CRYPT_XML_GROUP_ID_SIGN Signature algorithms + + wszCNGAlgid + The algorithm identifier string passed to the CNG functions + CNG functions use algorithm identifier strings, such as L"SHA1", + + wszCNGExtraAlgid + An extra algorithm string, other than the string in the pwszCNGAlgid member, + that can be passed to the CNG functions. + + dwSignFlags + This value is passed to NCryptSignHash + + dwVerifyFlags + This value is passed to BCryptVerifySignature. + + pvPaddingInfo + A pointer to a structure that contains padding information. + The actual type of structure this parameter points to depends on + the value of the dwFlags parameter. + This pointer is passed to NCryptSignHash or BCryptVerifySignature + + pvExtraInfo + [optional] A pointer to a structure that contains extra information + that can be passed to the CNG functions. + +NOTE: the BCrypt* and NCrypt* functions that are defined in Bcrypt.h and Ncrypt.h + +****************************************************************************/ +typedef +struct _CRYPT_XML_ALGORITHM_INFO +{ + DWORD cbSize; + WCHAR *wszAlgorithmURI; + WCHAR *wszName; + DWORD dwGroupId; + WCHAR *wszCNGAlgid; + WCHAR *wszCNGExtraAlgid; + DWORD dwSignFlags; // NCryptSignHash flags + DWORD dwVerifyFlags; // BCryptVerifySignature flags + void *pvPaddingInfo; + void *pvExtraInfo; +}CRYPT_XML_ALGORITHM_INFO, *PCRYPT_XML_ALGORITHM_INFO; + +#define CRYPT_XML_GROUP_ID_HASH 1 +#define CRYPT_XML_GROUP_ID_SIGN 2 + +/**************************************************************************** + CryptXmlGetAlgorithmInfo + + Decodes the XML Algorithm and returns information about the algorithm. + + The following flags are supported: + CRYPT_XML_FLAG_DISABLE_EXTENSIONS + + The caller must free ppAlgInfo by calling LocalFree() + +****************************************************************************/ +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlGetAlgorithmInfo( + _In_ const CRYPT_XML_ALGORITHM *pXmlAlgorithm, + DWORD dwFlags, + _Outptr_ CRYPT_XML_ALGORITHM_INFO **ppAlgInfo + ); + +/**************************************************************************** + CryptXmlFindAlgorithmInfo + + dwFindByType + [in] Specifies the pvFindBy parameter type. + The following values are supported: + CRYPT_XML_ALGORITHM_INFO_FIND_BY_URI - wszAlgorithmURI + CRYPT_XML_ALGORITHM_INFO_FIND_BY_NAME - wszName + CRYPT_XML_ALGORITHM_INFO_FIND_BY_CNG_ALGID - wszCNGAlgid + CRYPT_XML_ALGORITHM_INFO_FIND_BY_CNG_SIGN_ALGID - pwszCNGAlgid + pwszCNGAlgid[0] - Hash pwszCNGAlgid + pwszCNGAlgid[1] - PubKey pwszCNGAlgid + + pvFindBy + [in] Specifies the search parameter. + + dwGroupId + [in] Specifies the algorithm group. + + dwFlags + [in] The following flags are supported: + CRYPT_XML_FLAG_DISABLE_EXTENSIONS + + ppAlgInfo + [out] Pointer to CRYPT_XML_ALGORITHM_INFO pointer. + +****************************************************************************/ +const CRYPT_XML_ALGORITHM_INFO* +WINAPI +CryptXmlFindAlgorithmInfo( + _In_ DWORD dwFindByType, + _In_ const void *pvFindBy, + _In_ DWORD dwGroupId, + DWORD dwFlags + ); + +#define CRYPT_XML_ALGORITHM_INFO_FIND_BY_URI 1 +#define CRYPT_XML_ALGORITHM_INFO_FIND_BY_NAME 2 +#define CRYPT_XML_ALGORITHM_INFO_FIND_BY_CNG_ALGID 3 +#define CRYPT_XML_ALGORITHM_INFO_FIND_BY_CNG_SIGN_ALGID 4 + +/**************************************************************************** + CryptXmlEnumAlgorithmInfo + + The CryptXmlEnumAlgorithmInfo function enumerates predefined and registered + CryptXml CRYPT_XML_ALGORITHM_INFO entries. + This function enumerates either all of the predefined and registered + entries or only structures identified by a selected URI group. + For each URI information structure enumerated, + an application provided callback function, pfnEnumAlgInfo, is called. + + dwGroupId + [in] Specifies an algorithm group to be searched (Digest, Signature) + + dwFlags + [in] The following flags are defined. + + CRYPT_XML_INHIBIT_EXTENSIONS + Disable XML Cryptographic Extension algorithms. + + pvArg + [in, optional] Specifies an application defined parameter for the callback. + + pfnEnumAlgInfo + [callback] Address of the callback function that will be called + for each Algorithm found. + +****************************************************************************/ + +// +// If the callback returns FALSE, then stop the enumeration. +// + +typedef BOOL (WINAPI * PFN_CRYPT_XML_ENUM_ALG_INFO)( + _In_ const CRYPT_XML_ALGORITHM_INFO *pInfo, + _Inout_opt_ void *pvArg + ); + +_Success_( return == 0 ) +HRESULT +WINAPI +CryptXmlEnumAlgorithmInfo( + _In_ DWORD dwGroupId, + _In_ DWORD dwFlags, + _Inout_opt_ void *pvArg, + __callback PFN_CRYPT_XML_ENUM_ALG_INFO pfnEnumAlgInfo + ); + +/**************************************************************************** + * CRYPTO EXTENSIBILITY + * + ***************************************************************************/ + +/**************************************************************************** + CryptXmlGetInterface + + Cryptographic Extensions DLL must export CryptXmlGetInterface entry. + + dwFlags + [in] Not used at the moment and must be 0. + + pMethod + [in] A pointer to a CRYPT_XML_ALGORITHM_INFO structure + to retrieve the interface of. + + pInterface + [out] A pointer to a CRYPT_XML_ALGORITHM_INFO structure + to receive the interface information. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI *CryptXmlDllGetInterface)( + DWORD dwFlags, + _In_ const CRYPT_XML_ALGORITHM_INFO *pMethod, + _Out_ CRYPT_XML_CRYPTOGRAPHIC_INTERFACE *pInterface + ); + +/**************************************************************************** + CryptXmlDllEncodeAlgorithm + + The CryptXmlDllEncodeAlgorithm function is used to encode + or elements for agile algorithms with default parameters. + The CryptXmlDllEncodeAlgorithm function is exposed though + the exported CryptXmlDllGetInterface fucntion. + + pAlgInfo + [in] A pointer to a CRYPT_XML_ALGORITHM_INFO structure. + + dwCharset + A CRYPT_XML_CHARSET value that specifies the character set of the encoded XML. + + pvCallbackState + [in, out] A poniter to an argument that is passed to the callback + function pointed to by the pfnWrite parameter. + + pfnWrite + [in] A PFN_CRYPT_XML_WRITE_CALLBACK callback to receive the encoded XML. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI *CryptXmlDllEncodeAlgorithm)( + _In_ const CRYPT_XML_ALGORITHM_INFO *pAlgInfo, + CRYPT_XML_CHARSET dwCharset, + _Inout_ void *pvCallbackState, + _In_ PFN_CRYPT_XML_WRITE_CALLBACK pfnWrite + ); + +/**************************************************************************** + CryptXmlDllCreateDigest + + pDigestMethod + [in] A pointer to a CRYPT_XML_ALGORITHM structure that specifies + the algorithm to use to create the digest. + + pcbSize + [out] A pointer to a ULONG value to receive the size, + in bytes, of the digest. + + phDigest + [out] A pointer to a CRYPT_XML_DIGEST variable to receive a pointer + to the digest. + CryptXml uses CryptXmlDllCloseDigest to free resources allocated + in phDigest. + +****************************************************************************/ +typedef void* CRYPT_XML_DIGEST; + +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI *CryptXmlDllCreateDigest)( + _In_ const CRYPT_XML_ALGORITHM *pDigestMethod, + _Out_range_( 0, CRYPT_XML_DIGEST_VALUE_MAX ) + ULONG *pcbSize, + _Out_ CRYPT_XML_DIGEST *phDigest + ); + +/**************************************************************************** + CryptXmlDllDigestData + + The CryptXmlDllDigestData function is used to digest data. + The CryptXmlDllDigestData function is exposed though + the exported CryptXmlDllGetInterface fucntion. + + hDigest + [in] The handle of the hash object used to perform the digest. + This handle is obtained by calling the CryptXmlDllCreateDigest function. + + pbData + [in] A pointer to a block of data to be processed. + + cbDigest + [in] The size, in bytes, of the block of data pointed + to bye the pbData parameter. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI *CryptXmlDllDigestData)( + _In_ CRYPT_XML_DIGEST hDigest, + _In_reads_bytes_(cbData) + const BYTE *pbData, + ULONG cbData + ); + +/**************************************************************************** + CryptXmlDllFinalizeDigest + + The CryptXmlDllFinalizeDigest function isused to retrieve the digest value. + The CryptXmlDllFinalizeDigest function is exposed though + the exported CryptXmlDllGetInterface fucntion. + + hDigest + [in] The handle of the hash object used to perform the digest. + This handle is obtained by calling the CryptXmlDllCreateDigest function. + + pbDigest + [out] A pointer to a buffer that receives the digest value. + + cbDigest + [in] The size, in bytes, of the buffer pointed to by the pbDigest. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI *CryptXmlDllFinalizeDigest)( + _In_ CRYPT_XML_DIGEST hDigest, + _Out_writes_bytes_(cbDigest) + BYTE *pbDigest, + ULONG cbDigest + ); + +/**************************************************************************** + CryptXmlDllCloseDigest + + hDigest + [in] The handle of the digest object. + This handle is obtained by calling the CryptXmlCreateDigest function. + After the function has been called, the digest handle passed + to this function is released and cannot be used again. +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI *CryptXmlDllCloseDigest)( + _In_ CRYPT_XML_DIGEST hDigest + ); + +/**************************************************************************** + CryptXmlDllSignData + + The CryptXmlDllSignData function is used to sign data. + The CryptXmlDllSignData function is exposed though + the exported CryptXmlDllGetInterface fucntion. + + pSignatureMethod + [in] A pointer to a CRYPT_XML_ALGORITHM structure that specifies the algorithm. + + hCryptProvOrNCryptKey + [in] The handle of the CSP that creates the signature. + This handle must be an HCRYPTPROV handle that obtained from a call to + the CryptAcquireContext function or an NCRYPT_KEY_HANDLE handle that has been + created by using the NCryptOpenKey function. + New applications should always pass in the NCRYPT_KEY_HANDLE handle. + + dwKeySpec + [in] Identifies the private key to use from the provider's container. + It can be AT_KEYEXCHANGE or AT_SIGNATURE. + This parameter is ignored if an NCRYPT_KEY_HANDLE is used in + the hCryptProvOrNCryptKey parameter. + + pbInput + [in] A pointer to a buffer that contains the digest value to sign. + The cbInput parameter contains the size of this buffer. + + cbInput + [in] The size, in bytes, of the buffer pointed to by the pbInput parameter. + + pbOutput + [out, optional] The address of a buffer to receive the signature + produced by this function. The cbOutput parameter contains the s + ize of this buffer. + If this parameter is NULL, this function will calculate the size needed for + the encrypted data and return the size in the location pointed to + by the pcbResult parameter. + + cbOutput + [in] The size, in bytes, of the buffer pointed to by the pbOutput pramater. + + pcbResult + [out] A pointer to a DWORD variable that receives the number of bytes copied + to the pbOutput buffer. + If pbOutput is NULL, this receives the size, in bytes, required + for the signature. + + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI *CryptXmlDllSignData)( + _In_ const CRYPT_XML_ALGORITHM *pSignatureMethod, + _In_ HCRYPTPROV_OR_NCRYPT_KEY_HANDLE hCryptProvOrNCryptKey, + _In_ DWORD dwKeySpec, + _In_reads_bytes_(cbInput) + const BYTE *pbInput, + _In_ ULONG cbInput, + _Out_writes_bytes_to_opt_(cbOutput, *pcbResult) + BYTE *pbOutput, + _In_ ULONG cbOutput, + _Out_range_( 0, cbOutput ) + ULONG *pcbResult + ); + +/**************************************************************************** + CryptXmlDllVerifySignature + + The CryptXmlDllVerifySignature function is used to verify signature. + The CryptXmlDllVerifySignature function is exposed though + the exported CryptXmlDllGetInterface fucntion. + + pSignatureMethod + [in] A pointer to a CRYPT_XML_ALGORITHM structure that specifies the algorithm. + + hCryptProv + [in] A handle to the cryptographic provider. + Windows Vista and higher: Must be set to NULL with BCrypt key handle. + Windows XP: Must be a HCRYPTPROV returned by the CryptAcquireContext function. + + hKey + [in] A handle to the Public Key. + + pbInput + [in] A pointer to a buffer that contains the signed data. + The cbInput parameter contains the size of this buffer. + + cbInput + [in] The size, in bytes, of the buffer pointed to by teh pbInput paramter. + + pbSignature + [in] A pointer to a buffer that contains the signature value to be verified. + The cbSignature parameter contains the size of this buffer. + + cbSignature + [in] The size, in bytes, of the pbSignature buffer. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI *CryptXmlDllVerifySignature)( + _In_ const CRYPT_XML_ALGORITHM *pSignatureMethod, + _In_ BCRYPT_KEY_HANDLE hKey, + _In_reads_bytes_(cbInput) + const BYTE *pbInput, + _In_ ULONG cbInput, + _In_reads_bytes_(cbSignature) + const BYTE *pbSignature, + _In_ ULONG cbSignature + ); + +/**************************************************************************** + CryptXmlDllGetAlgorithmInfo + + The CryptXmlDllGetAlgorithmInfo fucntion decodes the XML Algorithm and + returns information about the algorithm. + The CryptXmlDllGetAlgorithmInfo function is exposed though the exported + CryptXmlDllGetInterface fucntion. + + pXmlAlgorithm + [in] A Pointer to a CRYPT_XML_ALGORITHM structure that specifies + the algorithm for which to return information. + + ppAlgInfo + [out] A pointer to a pointer to a CRYPT_XML_ALGORITHM_INFO structure. + The caller must free ppAlgInfo by calling LocalFree() + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI *CryptXmlDllGetAlgorithmInfo)( + _In_ const CRYPT_XML_ALGORITHM *pXmlAlgorithm, + _Outptr_ CRYPT_XML_ALGORITHM_INFO **ppAlgInfo + ); + +/**************************************************************************** + CRYPT_XML_CRYPTOGRAPHIC_INTERFACE + + fpCryptXmlEncodeAlgorithm + A pointer to the implementation of the CryptXmlDllEncodeAlgorithm. + + fpCryptXmlCreateDigest + A pointer to the implementation of the CryptXmlDllCreateDigest. + + fpCryptXmlDigestData + A pointer to the implementation of the CryptXmlDllCreateDigest. + + fpCryptXmlFinalizeDigest + A pointer to the implementation of the CryptXmlDllFinalizeDigest. + + fpCryptXmlCloseDigest + A pointer to the implementation of the CryptXmlDllCloseDigest. + + fpCryptXmlSignData + A pointer to the implementation of the CryptXmlDllSignData. + + fpCryptXmlVerifySignature + A pointer to the implementation of the CryptXmlDllVerifySignature. + + fpCryptXmlGetAlgorithmInfo + A pointer to the implementation of the CryptXmlDllGetAlgorithmInfo. + +****************************************************************************/ +typedef struct _CRYPT_XML_CRYPTOGRAPHIC_INTERFACE{ + ULONG cbSize; + CryptXmlDllEncodeAlgorithm fpCryptXmlEncodeAlgorithm; + CryptXmlDllCreateDigest fpCryptXmlCreateDigest; + CryptXmlDllDigestData fpCryptXmlDigestData; + CryptXmlDllFinalizeDigest fpCryptXmlFinalizeDigest; + CryptXmlDllCloseDigest fpCryptXmlCloseDigest; + CryptXmlDllSignData fpCryptXmlSignData; + CryptXmlDllVerifySignature fpCryptXmlVerifySignature; + CryptXmlDllGetAlgorithmInfo fpCryptXmlGetAlgorithmInfo; +}CRYPT_XML_CRYPTOGRAPHIC_INTERFACE, *PCRYPT_XML_CRYPTOGRAPHIC_INTERFACE; + +/**************************************************************************** + * KEYINFO EXTENSIBILITY + * + ***************************************************************************/ + +/**************************************************************************** + CryptXmlDllEncodeKeyValue + + Address of installable function used to encode <*KeyValue> element. + + hKey + [in] The handle of the key value to encode. + + dwCharset + [in] Specifies a charset of the XML to be written to pfnWrite. + + pvCallbackState + [in] An argument to be passed to the callback. + + pfnWrite + [in, callback] A CryptXml defined callback to receive constructed XML. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI * CryptXmlDllEncodeKeyValue)( + _In_ NCRYPT_KEY_HANDLE hKey, + CRYPT_XML_CHARSET dwCharset, + _Inout_ void *pvCallbackState, + _In_ PFN_CRYPT_XML_WRITE_CALLBACK pfnWrite + ); + +/**************************************************************************** + CryptXmlDllCreateKey + + Address of installable function used to parse <*KeyValue> element and + create a CNG NCrypt key handle to verify signature. + + pEncoded + [in] Specifies XML encoded <*KeyValue>. + + phKey + [out] A key handle used to verify signature. + CryptXml calls BCryptDestroyKey when it's done using it. + +****************************************************************************/ +typedef +_Success_( return == 0 ) +HRESULT +(WINAPI * CryptXmlDllCreateKey)( + _In_ const CRYPT_XML_BLOB *pEncoded, + _Out_ BCRYPT_KEY_HANDLE *phKey + ); + +#ifdef __cplusplus +} //extern "C" +#endif /* __cplusplus */ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_APPXDEPLOYMENT) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cscapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cscapi.h new file mode 100644 index 0000000000000000000000000000000000000000..e67a96293f89c272c7dbfc8609b9ad5e210fffb1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cscapi.h @@ -0,0 +1,93 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + cscapi.h + +Abstract: + + Public Win32 API functions for Offline Files (Client Side Caching - CSC). + + These functions complement the COM-based interfaces and methods declared + in cscobj.h. + +--*/ +#ifndef _INC_CSCAPI_H +#define _INC_CSCAPI_H + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#include + +// +// Enable or disable the Offline Files feature. +// If *pbRebootRequired returns TRUE, a system restart is necessary to +// complete the operation. +// +STDAPI_(DWORD) +OfflineFilesEnable( + _In_ BOOL bEnable, + _Out_ BOOL *pbRebootRequired + ); + +#if (NTDDI_VERSION >= NTDDI_WIN8) +// +// Start Offline Files feature if it's available. +// If the feature is not available then a ERROR_NOT_SUPPORTED error is returned. +// +STDAPI_(DWORD) +OfflineFilesStart( + ); +#endif + +// +// Query the active/inactive and enabled/disabled state of the Offline Files feature. +// +// - active/inactive describes the current running state. +// +// - enabled/disabled describes the configured state as last successfully set by +// OfflineFilesEnable(). +// +STDAPI_(DWORD) +OfflineFilesQueryStatus( + _Out_opt_ BOOL *pbActive, + _Out_opt_ BOOL *pbEnabled + ); + +#if (NTDDI_VERSION >= NTDDI_WIN8) +// +// Query the active/inactive, enabled/disabled and available/unavailable state of the +// Offline Files feature. +// +// - active/inactive describes the current running state. +// +// - enabled/disabled describes the configured state as last successfully set by +// OfflineFilesEnable(). +// +// - available/unavailable describes the Offline Files service state. +// If the status is inactive/enabled/available then the OfflineFilesStart function +// can be used to transition the Offline Files feature to active state (no reboot required). +// +STDAPI_(DWORD) +OfflineFilesQueryStatusEx( + _Out_opt_ BOOL *pbActive, + _Out_opt_ BOOL *pbEnabled, + _Out_opt_ BOOL *pbAvailable + ); +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _INC_CSCAPI_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cscobj.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cscobj.h new file mode 100644 index 0000000000000000000000000000000000000000..31cf48fdf988e31b317d1d3585ec38291a969be6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cscobj.h @@ -0,0 +1,6471 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __cscobj_h__ +#define __cscobj_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IOfflineFilesEvents_FWD_DEFINED__ +#define __IOfflineFilesEvents_FWD_DEFINED__ +typedef interface IOfflineFilesEvents IOfflineFilesEvents; + +#endif /* __IOfflineFilesEvents_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesEvents2_FWD_DEFINED__ +#define __IOfflineFilesEvents2_FWD_DEFINED__ +typedef interface IOfflineFilesEvents2 IOfflineFilesEvents2; + +#endif /* __IOfflineFilesEvents2_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesEvents3_FWD_DEFINED__ +#define __IOfflineFilesEvents3_FWD_DEFINED__ +typedef interface IOfflineFilesEvents3 IOfflineFilesEvents3; + +#endif /* __IOfflineFilesEvents3_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesEvents4_FWD_DEFINED__ +#define __IOfflineFilesEvents4_FWD_DEFINED__ +typedef interface IOfflineFilesEvents4 IOfflineFilesEvents4; + +#endif /* __IOfflineFilesEvents4_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesEventsFilter_FWD_DEFINED__ +#define __IOfflineFilesEventsFilter_FWD_DEFINED__ +typedef interface IOfflineFilesEventsFilter IOfflineFilesEventsFilter; + +#endif /* __IOfflineFilesEventsFilter_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesErrorInfo_FWD_DEFINED__ +#define __IOfflineFilesErrorInfo_FWD_DEFINED__ +typedef interface IOfflineFilesErrorInfo IOfflineFilesErrorInfo; + +#endif /* __IOfflineFilesErrorInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesSyncErrorItemInfo_FWD_DEFINED__ +#define __IOfflineFilesSyncErrorItemInfo_FWD_DEFINED__ +typedef interface IOfflineFilesSyncErrorItemInfo IOfflineFilesSyncErrorItemInfo; + +#endif /* __IOfflineFilesSyncErrorItemInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesSyncErrorInfo_FWD_DEFINED__ +#define __IOfflineFilesSyncErrorInfo_FWD_DEFINED__ +typedef interface IOfflineFilesSyncErrorInfo IOfflineFilesSyncErrorInfo; + +#endif /* __IOfflineFilesSyncErrorInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesProgress_FWD_DEFINED__ +#define __IOfflineFilesProgress_FWD_DEFINED__ +typedef interface IOfflineFilesProgress IOfflineFilesProgress; + +#endif /* __IOfflineFilesProgress_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesSimpleProgress_FWD_DEFINED__ +#define __IOfflineFilesSimpleProgress_FWD_DEFINED__ +typedef interface IOfflineFilesSimpleProgress IOfflineFilesSimpleProgress; + +#endif /* __IOfflineFilesSimpleProgress_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesSyncProgress_FWD_DEFINED__ +#define __IOfflineFilesSyncProgress_FWD_DEFINED__ +typedef interface IOfflineFilesSyncProgress IOfflineFilesSyncProgress; + +#endif /* __IOfflineFilesSyncProgress_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesSyncConflictHandler_FWD_DEFINED__ +#define __IOfflineFilesSyncConflictHandler_FWD_DEFINED__ +typedef interface IOfflineFilesSyncConflictHandler IOfflineFilesSyncConflictHandler; + +#endif /* __IOfflineFilesSyncConflictHandler_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesItemFilter_FWD_DEFINED__ +#define __IOfflineFilesItemFilter_FWD_DEFINED__ +typedef interface IOfflineFilesItemFilter IOfflineFilesItemFilter; + +#endif /* __IOfflineFilesItemFilter_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesItem_FWD_DEFINED__ +#define __IOfflineFilesItem_FWD_DEFINED__ +typedef interface IOfflineFilesItem IOfflineFilesItem; + +#endif /* __IOfflineFilesItem_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesServerItem_FWD_DEFINED__ +#define __IOfflineFilesServerItem_FWD_DEFINED__ +typedef interface IOfflineFilesServerItem IOfflineFilesServerItem; + +#endif /* __IOfflineFilesServerItem_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesShareItem_FWD_DEFINED__ +#define __IOfflineFilesShareItem_FWD_DEFINED__ +typedef interface IOfflineFilesShareItem IOfflineFilesShareItem; + +#endif /* __IOfflineFilesShareItem_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesDirectoryItem_FWD_DEFINED__ +#define __IOfflineFilesDirectoryItem_FWD_DEFINED__ +typedef interface IOfflineFilesDirectoryItem IOfflineFilesDirectoryItem; + +#endif /* __IOfflineFilesDirectoryItem_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesFileItem_FWD_DEFINED__ +#define __IOfflineFilesFileItem_FWD_DEFINED__ +typedef interface IOfflineFilesFileItem IOfflineFilesFileItem; + +#endif /* __IOfflineFilesFileItem_FWD_DEFINED__ */ + + +#ifndef __IEnumOfflineFilesItems_FWD_DEFINED__ +#define __IEnumOfflineFilesItems_FWD_DEFINED__ +typedef interface IEnumOfflineFilesItems IEnumOfflineFilesItems; + +#endif /* __IEnumOfflineFilesItems_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesItemContainer_FWD_DEFINED__ +#define __IOfflineFilesItemContainer_FWD_DEFINED__ +typedef interface IOfflineFilesItemContainer IOfflineFilesItemContainer; + +#endif /* __IOfflineFilesItemContainer_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesChangeInfo_FWD_DEFINED__ +#define __IOfflineFilesChangeInfo_FWD_DEFINED__ +typedef interface IOfflineFilesChangeInfo IOfflineFilesChangeInfo; + +#endif /* __IOfflineFilesChangeInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesDirtyInfo_FWD_DEFINED__ +#define __IOfflineFilesDirtyInfo_FWD_DEFINED__ +typedef interface IOfflineFilesDirtyInfo IOfflineFilesDirtyInfo; + +#endif /* __IOfflineFilesDirtyInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesFileSysInfo_FWD_DEFINED__ +#define __IOfflineFilesFileSysInfo_FWD_DEFINED__ +typedef interface IOfflineFilesFileSysInfo IOfflineFilesFileSysInfo; + +#endif /* __IOfflineFilesFileSysInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesPinInfo_FWD_DEFINED__ +#define __IOfflineFilesPinInfo_FWD_DEFINED__ +typedef interface IOfflineFilesPinInfo IOfflineFilesPinInfo; + +#endif /* __IOfflineFilesPinInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesPinInfo2_FWD_DEFINED__ +#define __IOfflineFilesPinInfo2_FWD_DEFINED__ +typedef interface IOfflineFilesPinInfo2 IOfflineFilesPinInfo2; + +#endif /* __IOfflineFilesPinInfo2_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesTransparentCacheInfo_FWD_DEFINED__ +#define __IOfflineFilesTransparentCacheInfo_FWD_DEFINED__ +typedef interface IOfflineFilesTransparentCacheInfo IOfflineFilesTransparentCacheInfo; + +#endif /* __IOfflineFilesTransparentCacheInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesGhostInfo_FWD_DEFINED__ +#define __IOfflineFilesGhostInfo_FWD_DEFINED__ +typedef interface IOfflineFilesGhostInfo IOfflineFilesGhostInfo; + +#endif /* __IOfflineFilesGhostInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesConnectionInfo_FWD_DEFINED__ +#define __IOfflineFilesConnectionInfo_FWD_DEFINED__ +typedef interface IOfflineFilesConnectionInfo IOfflineFilesConnectionInfo; + +#endif /* __IOfflineFilesConnectionInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesShareInfo_FWD_DEFINED__ +#define __IOfflineFilesShareInfo_FWD_DEFINED__ +typedef interface IOfflineFilesShareInfo IOfflineFilesShareInfo; + +#endif /* __IOfflineFilesShareInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesSuspend_FWD_DEFINED__ +#define __IOfflineFilesSuspend_FWD_DEFINED__ +typedef interface IOfflineFilesSuspend IOfflineFilesSuspend; + +#endif /* __IOfflineFilesSuspend_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesSuspendInfo_FWD_DEFINED__ +#define __IOfflineFilesSuspendInfo_FWD_DEFINED__ +typedef interface IOfflineFilesSuspendInfo IOfflineFilesSuspendInfo; + +#endif /* __IOfflineFilesSuspendInfo_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesSetting_FWD_DEFINED__ +#define __IOfflineFilesSetting_FWD_DEFINED__ +typedef interface IOfflineFilesSetting IOfflineFilesSetting; + +#endif /* __IOfflineFilesSetting_FWD_DEFINED__ */ + + +#ifndef __IEnumOfflineFilesSettings_FWD_DEFINED__ +#define __IEnumOfflineFilesSettings_FWD_DEFINED__ +typedef interface IEnumOfflineFilesSettings IEnumOfflineFilesSettings; + +#endif /* __IEnumOfflineFilesSettings_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesCache_FWD_DEFINED__ +#define __IOfflineFilesCache_FWD_DEFINED__ +typedef interface IOfflineFilesCache IOfflineFilesCache; + +#endif /* __IOfflineFilesCache_FWD_DEFINED__ */ + + +#ifndef __IOfflineFilesCache2_FWD_DEFINED__ +#define __IOfflineFilesCache2_FWD_DEFINED__ +typedef interface IOfflineFilesCache2 IOfflineFilesCache2; + +#endif /* __IOfflineFilesCache2_FWD_DEFINED__ */ + + +#ifndef __OfflineFilesSetting_FWD_DEFINED__ +#define __OfflineFilesSetting_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class OfflineFilesSetting OfflineFilesSetting; +#else +typedef struct OfflineFilesSetting OfflineFilesSetting; +#endif /* __cplusplus */ + +#endif /* __OfflineFilesSetting_FWD_DEFINED__ */ + + +#ifndef __OfflineFilesCache_FWD_DEFINED__ +#define __OfflineFilesCache_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class OfflineFilesCache OfflineFilesCache; +#else +typedef struct OfflineFilesCache OfflineFilesCache; +#endif /* __cplusplus */ + +#endif /* __OfflineFilesCache_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oleidl.h" +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_cscobj_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright Microsoft Corporation. All Rights Reserved. +// +//-------------------------------------------------------------------------- +// +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef +enum tagOFFLINEFILES_ITEM_TYPE + { + OFFLINEFILES_ITEM_TYPE_FILE = 0, + OFFLINEFILES_ITEM_TYPE_DIRECTORY = ( OFFLINEFILES_ITEM_TYPE_FILE + 1 ) , + OFFLINEFILES_ITEM_TYPE_SHARE = ( OFFLINEFILES_ITEM_TYPE_DIRECTORY + 1 ) , + OFFLINEFILES_ITEM_TYPE_SERVER = ( OFFLINEFILES_ITEM_TYPE_SHARE + 1 ) + } OFFLINEFILES_ITEM_TYPE; + +typedef +enum tagOFFLINEFILES_ITEM_COPY + { + OFFLINEFILES_ITEM_COPY_LOCAL = 0, + OFFLINEFILES_ITEM_COPY_REMOTE = ( OFFLINEFILES_ITEM_COPY_LOCAL + 1 ) , + OFFLINEFILES_ITEM_COPY_ORIGINAL = ( OFFLINEFILES_ITEM_COPY_REMOTE + 1 ) + } OFFLINEFILES_ITEM_COPY; + +typedef +enum tagOFFLINEFILES_CONNECT_STATE + { + OFFLINEFILES_CONNECT_STATE_UNKNOWN = 0, + OFFLINEFILES_CONNECT_STATE_OFFLINE = ( OFFLINEFILES_CONNECT_STATE_UNKNOWN + 1 ) , + OFFLINEFILES_CONNECT_STATE_ONLINE = ( OFFLINEFILES_CONNECT_STATE_OFFLINE + 1 ) , + OFFLINEFILES_CONNECT_STATE_TRANSPARENTLY_CACHED = ( OFFLINEFILES_CONNECT_STATE_ONLINE + 1 ) , + OFFLINEFILES_CONNECT_STATE_PARTLY_TRANSPARENTLY_CACHED = ( OFFLINEFILES_CONNECT_STATE_TRANSPARENTLY_CACHED + 1 ) + } OFFLINEFILES_CONNECT_STATE; + +typedef +enum tagOFFLINEFILES_OFFLINE_REASON + { + OFFLINEFILES_OFFLINE_REASON_UNKNOWN = 0, + OFFLINEFILES_OFFLINE_REASON_NOT_APPLICABLE = ( OFFLINEFILES_OFFLINE_REASON_UNKNOWN + 1 ) , + OFFLINEFILES_OFFLINE_REASON_CONNECTION_FORCED = ( OFFLINEFILES_OFFLINE_REASON_NOT_APPLICABLE + 1 ) , + OFFLINEFILES_OFFLINE_REASON_CONNECTION_SLOW = ( OFFLINEFILES_OFFLINE_REASON_CONNECTION_FORCED + 1 ) , + OFFLINEFILES_OFFLINE_REASON_CONNECTION_ERROR = ( OFFLINEFILES_OFFLINE_REASON_CONNECTION_SLOW + 1 ) , + OFFLINEFILES_OFFLINE_REASON_ITEM_VERSION_CONFLICT = ( OFFLINEFILES_OFFLINE_REASON_CONNECTION_ERROR + 1 ) , + OFFLINEFILES_OFFLINE_REASON_ITEM_SUSPENDED = ( OFFLINEFILES_OFFLINE_REASON_ITEM_VERSION_CONFLICT + 1 ) + } OFFLINEFILES_OFFLINE_REASON; + +typedef +enum tagOFFLINEFILES_CACHING_MODE + { + OFFLINEFILES_CACHING_MODE_NONE = 0, + OFFLINEFILES_CACHING_MODE_NOCACHING = ( OFFLINEFILES_CACHING_MODE_NONE + 1 ) , + OFFLINEFILES_CACHING_MODE_MANUAL = ( OFFLINEFILES_CACHING_MODE_NOCACHING + 1 ) , + OFFLINEFILES_CACHING_MODE_AUTO_DOC = ( OFFLINEFILES_CACHING_MODE_MANUAL + 1 ) , + OFFLINEFILES_CACHING_MODE_AUTO_PROGANDDOC = ( OFFLINEFILES_CACHING_MODE_AUTO_DOC + 1 ) + } OFFLINEFILES_CACHING_MODE; + +typedef +enum tagOFFLINEFILES_OP_RESPONSE + { + OFFLINEFILES_OP_CONTINUE = 0, + OFFLINEFILES_OP_RETRY = ( OFFLINEFILES_OP_CONTINUE + 1 ) , + OFFLINEFILES_OP_ABORT = ( OFFLINEFILES_OP_RETRY + 1 ) + } OFFLINEFILES_OP_RESPONSE; + +typedef +enum tagOFFLINEFILES_EVENTS + { + OFFLINEFILES_EVENT_CACHEMOVED = 0, + OFFLINEFILES_EVENT_CACHEISFULL = ( OFFLINEFILES_EVENT_CACHEMOVED + 1 ) , + OFFLINEFILES_EVENT_CACHEISCORRUPTED = ( OFFLINEFILES_EVENT_CACHEISFULL + 1 ) , + OFFLINEFILES_EVENT_ENABLED = ( OFFLINEFILES_EVENT_CACHEISCORRUPTED + 1 ) , + OFFLINEFILES_EVENT_ENCRYPTIONCHANGED = ( OFFLINEFILES_EVENT_ENABLED + 1 ) , + OFFLINEFILES_EVENT_SYNCBEGIN = ( OFFLINEFILES_EVENT_ENCRYPTIONCHANGED + 1 ) , + OFFLINEFILES_EVENT_SYNCFILERESULT = ( OFFLINEFILES_EVENT_SYNCBEGIN + 1 ) , + OFFLINEFILES_EVENT_SYNCCONFLICTRECADDED = ( OFFLINEFILES_EVENT_SYNCFILERESULT + 1 ) , + OFFLINEFILES_EVENT_SYNCCONFLICTRECUPDATED = ( OFFLINEFILES_EVENT_SYNCCONFLICTRECADDED + 1 ) , + OFFLINEFILES_EVENT_SYNCCONFLICTRECREMOVED = ( OFFLINEFILES_EVENT_SYNCCONFLICTRECUPDATED + 1 ) , + OFFLINEFILES_EVENT_SYNCEND = ( OFFLINEFILES_EVENT_SYNCCONFLICTRECREMOVED + 1 ) , + OFFLINEFILES_EVENT_BACKGROUNDSYNCBEGIN = ( OFFLINEFILES_EVENT_SYNCEND + 1 ) , + OFFLINEFILES_EVENT_BACKGROUNDSYNCEND = ( OFFLINEFILES_EVENT_BACKGROUNDSYNCBEGIN + 1 ) , + OFFLINEFILES_EVENT_NETTRANSPORTARRIVED = ( OFFLINEFILES_EVENT_BACKGROUNDSYNCEND + 1 ) , + OFFLINEFILES_EVENT_NONETTRANSPORTS = ( OFFLINEFILES_EVENT_NETTRANSPORTARRIVED + 1 ) , + OFFLINEFILES_EVENT_ITEMDISCONNECTED = ( OFFLINEFILES_EVENT_NONETTRANSPORTS + 1 ) , + OFFLINEFILES_EVENT_ITEMRECONNECTED = ( OFFLINEFILES_EVENT_ITEMDISCONNECTED + 1 ) , + OFFLINEFILES_EVENT_ITEMAVAILABLEOFFLINE = ( OFFLINEFILES_EVENT_ITEMRECONNECTED + 1 ) , + OFFLINEFILES_EVENT_ITEMNOTAVAILABLEOFFLINE = ( OFFLINEFILES_EVENT_ITEMAVAILABLEOFFLINE + 1 ) , + OFFLINEFILES_EVENT_ITEMPINNED = ( OFFLINEFILES_EVENT_ITEMNOTAVAILABLEOFFLINE + 1 ) , + OFFLINEFILES_EVENT_ITEMNOTPINNED = ( OFFLINEFILES_EVENT_ITEMPINNED + 1 ) , + OFFLINEFILES_EVENT_ITEMMODIFIED = ( OFFLINEFILES_EVENT_ITEMNOTPINNED + 1 ) , + OFFLINEFILES_EVENT_ITEMADDEDTOCACHE = ( OFFLINEFILES_EVENT_ITEMMODIFIED + 1 ) , + OFFLINEFILES_EVENT_ITEMDELETEDFROMCACHE = ( OFFLINEFILES_EVENT_ITEMADDEDTOCACHE + 1 ) , + OFFLINEFILES_EVENT_ITEMRENAMED = ( OFFLINEFILES_EVENT_ITEMDELETEDFROMCACHE + 1 ) , + OFFLINEFILES_EVENT_DATALOST = ( OFFLINEFILES_EVENT_ITEMRENAMED + 1 ) , + OFFLINEFILES_EVENT_PING = ( OFFLINEFILES_EVENT_DATALOST + 1 ) , + OFFLINEFILES_EVENT_ITEMRECONNECTBEGIN = ( OFFLINEFILES_EVENT_PING + 1 ) , + OFFLINEFILES_EVENT_ITEMRECONNECTEND = ( OFFLINEFILES_EVENT_ITEMRECONNECTBEGIN + 1 ) , + OFFLINEFILES_EVENT_CACHEEVICTBEGIN = ( OFFLINEFILES_EVENT_ITEMRECONNECTEND + 1 ) , + OFFLINEFILES_EVENT_CACHEEVICTEND = ( OFFLINEFILES_EVENT_CACHEEVICTBEGIN + 1 ) , + OFFLINEFILES_EVENT_POLICYCHANGEDETECTED = ( OFFLINEFILES_EVENT_CACHEEVICTEND + 1 ) , + OFFLINEFILES_EVENT_PREFERENCECHANGEDETECTED = ( OFFLINEFILES_EVENT_POLICYCHANGEDETECTED + 1 ) , + OFFLINEFILES_EVENT_SETTINGSCHANGESAPPLIED = ( OFFLINEFILES_EVENT_PREFERENCECHANGEDETECTED + 1 ) , + OFFLINEFILES_EVENT_TRANSPARENTCACHEITEMNOTIFY = ( OFFLINEFILES_EVENT_SETTINGSCHANGESAPPLIED + 1 ) , + OFFLINEFILES_EVENT_PREFETCHFILEBEGIN = ( OFFLINEFILES_EVENT_TRANSPARENTCACHEITEMNOTIFY + 1 ) , + OFFLINEFILES_EVENT_PREFETCHFILEEND = ( OFFLINEFILES_EVENT_PREFETCHFILEBEGIN + 1 ) , + OFFLINEFILES_EVENT_PREFETCHCLOSEHANDLEBEGIN = ( OFFLINEFILES_EVENT_PREFETCHFILEEND + 1 ) , + OFFLINEFILES_EVENT_PREFETCHCLOSEHANDLEEND = ( OFFLINEFILES_EVENT_PREFETCHCLOSEHANDLEBEGIN + 1 ) , + OFFLINEFILES_NUM_EVENTS = ( OFFLINEFILES_EVENT_PREFETCHCLOSEHANDLEEND + 1 ) + } OFFLINEFILES_EVENTS; + +typedef +enum tagOFFLINEFILES_PATHFILTER_MATCH + { + OFFLINEFILES_PATHFILTER_SELF = 0, + OFFLINEFILES_PATHFILTER_CHILD = ( OFFLINEFILES_PATHFILTER_SELF + 1 ) , + OFFLINEFILES_PATHFILTER_DESCENDENT = ( OFFLINEFILES_PATHFILTER_CHILD + 1 ) , + OFFLINEFILES_PATHFILTER_SELFORCHILD = ( OFFLINEFILES_PATHFILTER_DESCENDENT + 1 ) , + OFFLINEFILES_PATHFILTER_SELFORDESCENDENT = ( OFFLINEFILES_PATHFILTER_SELFORCHILD + 1 ) + } OFFLINEFILES_PATHFILTER_MATCH; + +#define OFFLINEFILES_SYNC_STATE_LOCAL_KNOWN ( 0x1 ) + +#define OFFLINEFILES_SYNC_STATE_REMOTE_KNOWN ( 0x2 ) + +#define OFFLINEFILES_CHANGES_NONE ( 0 ) + +#define OFFLINEFILES_CHANGES_LOCAL_SIZE ( 0x1 ) + +#define OFFLINEFILES_CHANGES_LOCAL_ATTRIBUTES ( 0x2 ) + +#define OFFLINEFILES_CHANGES_LOCAL_TIME ( 0x4 ) + +#define OFFLINEFILES_CHANGES_REMOTE_SIZE ( 0x8 ) + +#define OFFLINEFILES_CHANGES_REMOTE_ATTRIBUTES ( 0x10 ) + +#define OFFLINEFILES_CHANGES_REMOTE_TIME ( 0x20 ) + +typedef +enum tagOFFLINEFILES_SYNC_CONFLICT_RESOLVE + { + OFFLINEFILES_SYNC_CONFLICT_RESOLVE_NONE = 0, + OFFLINEFILES_SYNC_CONFLICT_RESOLVE_KEEPLOCAL = ( OFFLINEFILES_SYNC_CONFLICT_RESOLVE_NONE + 1 ) , + OFFLINEFILES_SYNC_CONFLICT_RESOLVE_KEEPREMOTE = ( OFFLINEFILES_SYNC_CONFLICT_RESOLVE_KEEPLOCAL + 1 ) , + OFFLINEFILES_SYNC_CONFLICT_RESOLVE_KEEPALLCHANGES = ( OFFLINEFILES_SYNC_CONFLICT_RESOLVE_KEEPREMOTE + 1 ) , + OFFLINEFILES_SYNC_CONFLICT_RESOLVE_KEEPLATEST = ( OFFLINEFILES_SYNC_CONFLICT_RESOLVE_KEEPALLCHANGES + 1 ) , + OFFLINEFILES_SYNC_CONFLICT_RESOLVE_LOG = ( OFFLINEFILES_SYNC_CONFLICT_RESOLVE_KEEPLATEST + 1 ) , + OFFLINEFILES_SYNC_CONFLICT_RESOLVE_SKIP = ( OFFLINEFILES_SYNC_CONFLICT_RESOLVE_LOG + 1 ) , + OFFLINEFILES_SYNC_CONFLICT_ABORT = ( OFFLINEFILES_SYNC_CONFLICT_RESOLVE_SKIP + 1 ) , + OFFLINEFILES_SYNC_CONFLICT_RESOLVE_NUMCODES = ( OFFLINEFILES_SYNC_CONFLICT_ABORT + 1 ) + } OFFLINEFILES_SYNC_CONFLICT_RESOLVE; + +#define OFFLINEFILES_SYNC_CONFLICT_RESOLVE_LATER OFFLINEFILES_SYNC_CONFLICT_RESOLVE_LOG +#define OFFLINEFILES_ITEM_FILTER_FLAG_MODIFIED_DATA ( 0x1 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_MODIFIED_ATTRIBUTES ( 0x2 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_MODIFIED ( 0x4 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_CREATED ( 0x8 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_DELETED ( 0x10 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_DIRTY ( 0x20 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_SPARSE ( 0x40 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_FILE ( 0x80 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_DIRECTORY ( 0x100 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_PINNED_USER ( 0x200 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_PINNED_OTHERS ( 0x400 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_PINNED_COMPUTER ( 0x800 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_PINNED ( 0x1000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_GHOST ( 0x2000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_SUSPENDED ( 0x4000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_OFFLINE ( 0x8000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_ONLINE ( 0x10000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_USER_WRITE ( 0x20000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_USER_READ ( 0x40000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_USER_ANYACCESS ( 0x80000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_OTHER_WRITE ( 0x100000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_OTHER_READ ( 0x200000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_OTHER_ANYACCESS ( 0x400000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_GUEST_WRITE ( 0x800000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_GUEST_READ ( 0x1000000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAG_GUEST_ANYACCESS ( 0x2000000 ) + +#define OFFLINEFILES_ITEM_FILTER_FLAGS ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( OFFLINEFILES_ITEM_FILTER_FLAG_MODIFIED_DATA | OFFLINEFILES_ITEM_FILTER_FLAG_MODIFIED_ATTRIBUTES ) | OFFLINEFILES_ITEM_FILTER_FLAG_MODIFIED ) | OFFLINEFILES_ITEM_FILTER_FLAG_CREATED ) | OFFLINEFILES_ITEM_FILTER_FLAG_DELETED ) | OFFLINEFILES_ITEM_FILTER_FLAG_DIRTY ) | OFFLINEFILES_ITEM_FILTER_FLAG_SPARSE ) | OFFLINEFILES_ITEM_FILTER_FLAG_FILE ) | OFFLINEFILES_ITEM_FILTER_FLAG_DIRECTORY ) | OFFLINEFILES_ITEM_FILTER_FLAG_PINNED_USER ) | OFFLINEFILES_ITEM_FILTER_FLAG_PINNED_OTHERS ) | OFFLINEFILES_ITEM_FILTER_FLAG_PINNED_COMPUTER ) | OFFLINEFILES_ITEM_FILTER_FLAG_PINNED ) | OFFLINEFILES_ITEM_FILTER_FLAG_GHOST ) | OFFLINEFILES_ITEM_FILTER_FLAG_SUSPENDED ) | OFFLINEFILES_ITEM_FILTER_FLAG_OFFLINE ) | OFFLINEFILES_ITEM_FILTER_FLAG_ONLINE ) | OFFLINEFILES_ITEM_FILTER_FLAG_USER_WRITE ) | OFFLINEFILES_ITEM_FILTER_FLAG_USER_READ ) | OFFLINEFILES_ITEM_FILTER_FLAG_USER_ANYACCESS ) | OFFLINEFILES_ITEM_FILTER_FLAG_OTHER_WRITE ) | OFFLINEFILES_ITEM_FILTER_FLAG_OTHER_READ ) | OFFLINEFILES_ITEM_FILTER_FLAG_OTHER_ANYACCESS ) | OFFLINEFILES_ITEM_FILTER_FLAG_GUEST_WRITE ) | OFFLINEFILES_ITEM_FILTER_FLAG_GUEST_READ ) | OFFLINEFILES_ITEM_FILTER_FLAG_GUEST_ANYACCESS ) ) + +typedef +enum tagOFFLINEFILES_ITEM_TIME + { + OFFLINEFILES_ITEM_TIME_CREATION = 0, + OFFLINEFILES_ITEM_TIME_LASTACCESS = ( OFFLINEFILES_ITEM_TIME_CREATION + 1 ) , + OFFLINEFILES_ITEM_TIME_LASTWRITE = ( OFFLINEFILES_ITEM_TIME_LASTACCESS + 1 ) + } OFFLINEFILES_ITEM_TIME; + +typedef +enum tagOFFLINEFILES_COMPARE + { + OFFLINEFILES_COMPARE_EQ = 0, + OFFLINEFILES_COMPARE_NEQ = ( OFFLINEFILES_COMPARE_EQ + 1 ) , + OFFLINEFILES_COMPARE_LT = ( OFFLINEFILES_COMPARE_NEQ + 1 ) , + OFFLINEFILES_COMPARE_GT = ( OFFLINEFILES_COMPARE_LT + 1 ) , + OFFLINEFILES_COMPARE_LTE = ( OFFLINEFILES_COMPARE_GT + 1 ) , + OFFLINEFILES_COMPARE_GTE = ( OFFLINEFILES_COMPARE_LTE + 1 ) + } OFFLINEFILES_COMPARE; + +#define OFFLINEFILES_ITEM_QUERY_REMOTEINFO ( 0x1 ) + +#define OFFLINEFILES_ITEM_QUERY_CONNECTIONSTATE ( 0x2 ) + +#define OFFLINEFILES_ITEM_QUERY_LOCALDIRTYBYTECOUNT ( 0x4 ) + +#define OFFLINEFILES_ITEM_QUERY_REMOTEDIRTYBYTECOUNT ( 0x8 ) + +#define OFFLINEFILES_ITEM_QUERY_INCLUDETRANSPARENTCACHE ( 0x10 ) + +#define OFFLINEFILES_ITEM_QUERY_ATTEMPT_TRANSITIONONLINE ( 0x20 ) + +#define OFFLINEFILES_ITEM_QUERY_ADMIN ( 0x80000000 ) + +#define OFFLINEFILES_ITEM_QUERY_FLAGS ( ( ( ( ( ( ( OFFLINEFILES_ITEM_QUERY_REMOTEINFO | OFFLINEFILES_ITEM_QUERY_CONNECTIONSTATE ) | OFFLINEFILES_ITEM_QUERY_ADMIN ) | OFFLINEFILES_ITEM_QUERY_LOCALDIRTYBYTECOUNT ) | OFFLINEFILES_ITEM_QUERY_REMOTEDIRTYBYTECOUNT ) | OFFLINEFILES_ITEM_QUERY_INCLUDETRANSPARENTCACHE ) | OFFLINEFILES_ITEM_QUERY_ATTEMPT_TRANSITIONONLINE ) ) + +#define OFFLINEFILES_ENUM_FLAT ( 0x1 ) + +#define OFFLINEFILES_ENUM_FLAT_FILESONLY ( 0x2 ) + +#define OFFLINEFILES_ENUM_FLAGS ( ( OFFLINEFILES_ENUM_FLAT | OFFLINEFILES_ENUM_FLAT_FILESONLY ) ) + +#define OFFLINEFILES_SETTING_SCOPE_USER ( 0x1 ) + +#define OFFLINEFILES_SETTING_SCOPE_COMPUTER ( 0x2 ) + +typedef +enum tagOFFLINEFILES_SETTING_VALUE_TYPE + { + OFFLINEFILES_SETTING_VALUE_UI4 = 0, + OFFLINEFILES_SETTING_VALUE_BSTR = ( OFFLINEFILES_SETTING_VALUE_UI4 + 1 ) , + OFFLINEFILES_SETTING_VALUE_BSTR_DBLNULTERM = ( OFFLINEFILES_SETTING_VALUE_BSTR + 1 ) , + OFFLINEFILES_SETTING_VALUE_2DIM_ARRAY_BSTR_UI4 = ( OFFLINEFILES_SETTING_VALUE_BSTR_DBLNULTERM + 1 ) , + OFFLINEFILES_SETTING_VALUE_2DIM_ARRAY_BSTR_BSTR = ( OFFLINEFILES_SETTING_VALUE_2DIM_ARRAY_BSTR_UI4 + 1 ) + } OFFLINEFILES_SETTING_VALUE_TYPE; + +#define OFFLINEFILES_SETTING_PinLinkTargets L"LinkTargetCaching" +#define OFFLINEFILES_PINLINKTARGETS_NEVER ( 0 ) + +#define OFFLINEFILES_PINLINKTARGETS_EXPLICIT ( 1 ) + +#define OFFLINEFILES_PINLINKTARGETS_ALWAYS ( 2 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_FILLSPARSE ( 0x1 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_SYNCIN ( 0x2 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_SYNCOUT ( 0x4 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_PINNEWFILES ( 0x8 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_PINLINKTARGETS ( 0x10 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORUSER ( 0x20 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORUSER_POLICY ( 0x40 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORALL ( 0x80 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORREDIR ( 0x100 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_LOWPRIORITY ( 0x200 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_ASYNCPROGRESS ( 0x400 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_INTERACTIVE ( 0x800 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_CONSOLE ( 0x1000 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_SKIPSUSPENDEDDIRS ( 0x2000 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_BACKGROUND ( 0x10000 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAG_NONEWFILESOUT ( 0x20000 ) + +#define OFFLINEFILES_SYNC_CONTROL_CR_MASK ( 0xf0000000 ) + +#define OFFLINEFILES_SYNC_CONTROL_CR_DEFAULT ( 0 ) + +#define OFFLINEFILES_SYNC_CONTROL_CR_KEEPLOCAL ( 0x10000000 ) + +#define OFFLINEFILES_SYNC_CONTROL_CR_KEEPREMOTE ( 0x20000000 ) + +#define OFFLINEFILES_SYNC_CONTROL_CR_KEEPLATEST ( 0x30000000 ) + +#define OFFLINEFILES_SYNC_CONTROL_FLAGS ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( OFFLINEFILES_SYNC_CONTROL_FLAG_FILLSPARSE | OFFLINEFILES_SYNC_CONTROL_FLAG_SYNCIN ) | OFFLINEFILES_SYNC_CONTROL_FLAG_SYNCOUT ) | OFFLINEFILES_SYNC_CONTROL_FLAG_PINNEWFILES ) | OFFLINEFILES_SYNC_CONTROL_FLAG_PINLINKTARGETS ) | OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORUSER ) | OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORUSER_POLICY ) | OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORALL ) | OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORREDIR ) | OFFLINEFILES_SYNC_CONTROL_FLAG_LOWPRIORITY ) | OFFLINEFILES_SYNC_CONTROL_FLAG_ASYNCPROGRESS ) | OFFLINEFILES_SYNC_CONTROL_FLAG_INTERACTIVE ) | OFFLINEFILES_SYNC_CONTROL_FLAG_CONSOLE ) | OFFLINEFILES_SYNC_CONTROL_FLAG_SKIPSUSPENDEDDIRS ) | OFFLINEFILES_SYNC_CONTROL_FLAG_BACKGROUND ) | OFFLINEFILES_SYNC_CONTROL_FLAG_NONEWFILESOUT ) | OFFLINEFILES_SYNC_CONTROL_CR_KEEPLOCAL ) | OFFLINEFILES_SYNC_CONTROL_CR_KEEPREMOTE ) | OFFLINEFILES_SYNC_CONTROL_CR_KEEPLATEST ) ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_FORUSER ( OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORUSER ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_FORUSER_POLICY ( OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORUSER_POLICY ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_FORALL ( OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORALL ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_FORREDIR ( OFFLINEFILES_SYNC_CONTROL_FLAG_PINFORREDIR ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_FILL ( OFFLINEFILES_SYNC_CONTROL_FLAG_FILLSPARSE ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_LOWPRIORITY ( OFFLINEFILES_SYNC_CONTROL_FLAG_LOWPRIORITY ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_ASYNCPROGRESS ( OFFLINEFILES_SYNC_CONTROL_FLAG_ASYNCPROGRESS ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_INTERACTIVE ( OFFLINEFILES_SYNC_CONTROL_FLAG_INTERACTIVE ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_CONSOLE ( OFFLINEFILES_SYNC_CONTROL_FLAG_CONSOLE ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_PINLINKTARGETS ( OFFLINEFILES_SYNC_CONTROL_FLAG_PINLINKTARGETS ) + +#define OFFLINEFILES_PIN_CONTROL_FLAG_BACKGROUND ( OFFLINEFILES_SYNC_CONTROL_FLAG_BACKGROUND ) + +#define OFFLINEFILES_PIN_CONTROL_FLAGS ( ( ( ( ( ( ( ( ( ( ( OFFLINEFILES_PIN_CONTROL_FLAG_FORUSER | OFFLINEFILES_PIN_CONTROL_FLAG_FORUSER_POLICY ) | OFFLINEFILES_PIN_CONTROL_FLAG_FORALL ) | OFFLINEFILES_PIN_CONTROL_FLAG_FORREDIR ) | OFFLINEFILES_PIN_CONTROL_FLAG_FILL ) | OFFLINEFILES_PIN_CONTROL_FLAG_LOWPRIORITY ) | OFFLINEFILES_PIN_CONTROL_FLAG_ASYNCPROGRESS ) | OFFLINEFILES_PIN_CONTROL_FLAG_INTERACTIVE ) | OFFLINEFILES_PIN_CONTROL_FLAG_CONSOLE ) | OFFLINEFILES_PIN_CONTROL_FLAG_PINLINKTARGETS ) | OFFLINEFILES_PIN_CONTROL_FLAG_BACKGROUND ) ) + +#define OFFLINEFILES_ENCRYPTION_CONTROL_FLAG_LOWPRIORITY ( OFFLINEFILES_SYNC_CONTROL_FLAG_LOWPRIORITY ) + +#define OFFLINEFILES_ENCRYPTION_CONTROL_FLAG_ASYNCPROGRESS ( OFFLINEFILES_SYNC_CONTROL_FLAG_ASYNCPROGRESS ) + +#define OFFLINEFILES_ENCRYPTION_CONTROL_FLAG_INTERACTIVE ( OFFLINEFILES_SYNC_CONTROL_FLAG_INTERACTIVE ) + +#define OFFLINEFILES_ENCRYPTION_CONTROL_FLAG_CONSOLE ( OFFLINEFILES_SYNC_CONTROL_FLAG_CONSOLE ) + +#define OFFLINEFILES_ENCRYPTION_CONTROL_FLAG_BACKGROUND ( OFFLINEFILES_SYNC_CONTROL_FLAG_BACKGROUND ) + +#define OFFLINEFILES_ENCRYPTION_CONTROL_FLAGS ( ( ( ( ( OFFLINEFILES_ENCRYPTION_CONTROL_FLAG_LOWPRIORITY | OFFLINEFILES_ENCRYPTION_CONTROL_FLAG_ASYNCPROGRESS ) | OFFLINEFILES_ENCRYPTION_CONTROL_FLAG_INTERACTIVE ) | OFFLINEFILES_ENCRYPTION_CONTROL_FLAG_CONSOLE ) | OFFLINEFILES_ENCRYPTION_CONTROL_FLAG_BACKGROUND ) ) + +#define OFFLINEFILES_DELETE_FLAG_NOAUTOCACHED ( 0x1 ) + +#define OFFLINEFILES_DELETE_FLAG_NOPINNED ( 0x2 ) + +#define OFFLINEFILES_DELETE_FLAG_DELMODIFIED ( 0x4 ) + +#define OFFLINEFILES_DELETE_FLAG_ADMIN ( 0x80000000 ) + +#define OFFLINEFILES_DELETE_FLAGS ( ( ( ( OFFLINEFILES_DELETE_FLAG_NOAUTOCACHED | OFFLINEFILES_DELETE_FLAG_NOPINNED ) | OFFLINEFILES_DELETE_FLAG_DELMODIFIED ) | OFFLINEFILES_DELETE_FLAG_ADMIN ) ) + +#define OFFLINEFILES_TRANSITION_FLAG_INTERACTIVE ( 0x1 ) + +#define OFFLINEFILES_TRANSITION_FLAG_CONSOLE ( 0x2 ) + +#define OFFLINEFILES_TRANSITION_FLAGS ( ( OFFLINEFILES_TRANSITION_FLAG_INTERACTIVE | OFFLINEFILES_TRANSITION_FLAG_CONSOLE ) ) + +typedef +enum tagOFFLINEFILES_SYNC_OPERATION + { + OFFLINEFILES_SYNC_OPERATION_CREATE_COPY_ON_SERVER = 0, + OFFLINEFILES_SYNC_OPERATION_CREATE_COPY_ON_CLIENT = ( OFFLINEFILES_SYNC_OPERATION_CREATE_COPY_ON_SERVER + 1 ) , + OFFLINEFILES_SYNC_OPERATION_SYNC_TO_SERVER = ( OFFLINEFILES_SYNC_OPERATION_CREATE_COPY_ON_CLIENT + 1 ) , + OFFLINEFILES_SYNC_OPERATION_SYNC_TO_CLIENT = ( OFFLINEFILES_SYNC_OPERATION_SYNC_TO_SERVER + 1 ) , + OFFLINEFILES_SYNC_OPERATION_DELETE_SERVER_COPY = ( OFFLINEFILES_SYNC_OPERATION_SYNC_TO_CLIENT + 1 ) , + OFFLINEFILES_SYNC_OPERATION_DELETE_CLIENT_COPY = ( OFFLINEFILES_SYNC_OPERATION_DELETE_SERVER_COPY + 1 ) , + OFFLINEFILES_SYNC_OPERATION_PIN = ( OFFLINEFILES_SYNC_OPERATION_DELETE_CLIENT_COPY + 1 ) , + OFFLINEFILES_SYNC_OPERATION_PREPARE = ( OFFLINEFILES_SYNC_OPERATION_PIN + 1 ) + } OFFLINEFILES_SYNC_OPERATION; + +#define OFFLINEFILES_SYNC_ITEM_CHANGE_NONE ( 0 ) + +#define OFFLINEFILES_SYNC_ITEM_CHANGE_CHANGETIME ( 0x1 ) + +#define OFFLINEFILES_SYNC_ITEM_CHANGE_WRITETIME ( 0x2 ) + +#define OFFLINEFILES_SYNC_ITEM_CHANGE_FILESIZE ( 0x4 ) + +#define OFFLINEFILES_SYNC_ITEM_CHANGE_ATTRIBUTES ( 0x8 ) + +typedef +enum tagOFFLINEFILES_SYNC_STATE + { + OFFLINEFILES_SYNC_STATE_Stable = 0, + OFFLINEFILES_SYNC_STATE_FileOnClient_DirOnServer = ( OFFLINEFILES_SYNC_STATE_Stable + 1 ) , + OFFLINEFILES_SYNC_STATE_FileOnClient_NoServerCopy = ( OFFLINEFILES_SYNC_STATE_FileOnClient_DirOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirOnClient_FileOnServer = ( OFFLINEFILES_SYNC_STATE_FileOnClient_NoServerCopy + 1 ) , + OFFLINEFILES_SYNC_STATE_DirOnClient_FileChangedOnServer = ( OFFLINEFILES_SYNC_STATE_DirOnClient_FileOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirOnClient_NoServerCopy = ( OFFLINEFILES_SYNC_STATE_DirOnClient_FileChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_NoServerCopy = ( OFFLINEFILES_SYNC_STATE_DirOnClient_NoServerCopy + 1 ) , + OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_FileChangedOnServer = ( OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_NoServerCopy + 1 ) , + OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_DirChangedOnServer = ( OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_FileChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_FileOnServer = ( OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_DirChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_DirOnServer = ( OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_FileOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_DeletedOnServer = ( OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_DirOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileChangedOnClient_ChangedOnServer = ( OFFLINEFILES_SYNC_STATE_FileCreatedOnClient_DeletedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileChangedOnClient_DirOnServer = ( OFFLINEFILES_SYNC_STATE_FileChangedOnClient_ChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileChangedOnClient_DirChangedOnServer = ( OFFLINEFILES_SYNC_STATE_FileChangedOnClient_DirOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileChangedOnClient_DeletedOnServer = ( OFFLINEFILES_SYNC_STATE_FileChangedOnClient_DirChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileSparseOnClient_ChangedOnServer = ( OFFLINEFILES_SYNC_STATE_FileChangedOnClient_DeletedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileSparseOnClient_DeletedOnServer = ( OFFLINEFILES_SYNC_STATE_FileSparseOnClient_ChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileSparseOnClient_DirOnServer = ( OFFLINEFILES_SYNC_STATE_FileSparseOnClient_DeletedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileSparseOnClient_DirChangedOnServer = ( OFFLINEFILES_SYNC_STATE_FileSparseOnClient_DirOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_NoServerCopy = ( OFFLINEFILES_SYNC_STATE_FileSparseOnClient_DirChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_DirOnServer = ( OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_NoServerCopy + 1 ) , + OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_FileOnServer = ( OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_DirOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_FileChangedOnServer = ( OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_FileOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_DirChangedOnServer = ( OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_FileChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_DeletedOnServer = ( OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_DirChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirChangedOnClient_FileOnServer = ( OFFLINEFILES_SYNC_STATE_DirCreatedOnClient_DeletedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirChangedOnClient_FileChangedOnServer = ( OFFLINEFILES_SYNC_STATE_DirChangedOnClient_FileOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirChangedOnClient_ChangedOnServer = ( OFFLINEFILES_SYNC_STATE_DirChangedOnClient_FileChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirChangedOnClient_DeletedOnServer = ( OFFLINEFILES_SYNC_STATE_DirChangedOnClient_ChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_NoClientCopy_FileOnServer = ( OFFLINEFILES_SYNC_STATE_DirChangedOnClient_DeletedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_NoClientCopy_DirOnServer = ( OFFLINEFILES_SYNC_STATE_NoClientCopy_FileOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_NoClientCopy_FileChangedOnServer = ( OFFLINEFILES_SYNC_STATE_NoClientCopy_DirOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_NoClientCopy_DirChangedOnServer = ( OFFLINEFILES_SYNC_STATE_NoClientCopy_FileChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DeletedOnClient_FileOnServer = ( OFFLINEFILES_SYNC_STATE_NoClientCopy_DirChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DeletedOnClient_DirOnServer = ( OFFLINEFILES_SYNC_STATE_DeletedOnClient_FileOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DeletedOnClient_FileChangedOnServer = ( OFFLINEFILES_SYNC_STATE_DeletedOnClient_DirOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DeletedOnClient_DirChangedOnServer = ( OFFLINEFILES_SYNC_STATE_DeletedOnClient_FileChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileSparseOnClient = ( OFFLINEFILES_SYNC_STATE_DeletedOnClient_DirChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileChangedOnClient = ( OFFLINEFILES_SYNC_STATE_FileSparseOnClient + 1 ) , + OFFLINEFILES_SYNC_STATE_FileRenamedOnClient = ( OFFLINEFILES_SYNC_STATE_FileChangedOnClient + 1 ) , + OFFLINEFILES_SYNC_STATE_DirSparseOnClient = ( OFFLINEFILES_SYNC_STATE_FileRenamedOnClient + 1 ) , + OFFLINEFILES_SYNC_STATE_DirChangedOnClient = ( OFFLINEFILES_SYNC_STATE_DirSparseOnClient + 1 ) , + OFFLINEFILES_SYNC_STATE_DirRenamedOnClient = ( OFFLINEFILES_SYNC_STATE_DirChangedOnClient + 1 ) , + OFFLINEFILES_SYNC_STATE_FileChangedOnServer = ( OFFLINEFILES_SYNC_STATE_DirRenamedOnClient + 1 ) , + OFFLINEFILES_SYNC_STATE_FileRenamedOnServer = ( OFFLINEFILES_SYNC_STATE_FileChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileDeletedOnServer = ( OFFLINEFILES_SYNC_STATE_FileRenamedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirChangedOnServer = ( OFFLINEFILES_SYNC_STATE_FileDeletedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirRenamedOnServer = ( OFFLINEFILES_SYNC_STATE_DirChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_DirDeletedOnServer = ( OFFLINEFILES_SYNC_STATE_DirRenamedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileReplacedAndDeletedOnClient_FileOnServer = ( OFFLINEFILES_SYNC_STATE_DirDeletedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileReplacedAndDeletedOnClient_FileChangedOnServer = ( OFFLINEFILES_SYNC_STATE_FileReplacedAndDeletedOnClient_FileOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileReplacedAndDeletedOnClient_DirOnServer = ( OFFLINEFILES_SYNC_STATE_FileReplacedAndDeletedOnClient_FileChangedOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_FileReplacedAndDeletedOnClient_DirChangedOnServer = ( OFFLINEFILES_SYNC_STATE_FileReplacedAndDeletedOnClient_DirOnServer + 1 ) , + OFFLINEFILES_SYNC_STATE_NUMSTATES = ( OFFLINEFILES_SYNC_STATE_FileReplacedAndDeletedOnClient_DirChangedOnServer + 1 ) + } OFFLINEFILES_SYNC_STATE; + + + +extern RPC_IF_HANDLE __MIDL_itf_cscobj_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cscobj_0000_0000_v0_0_s_ifspec; + +#ifndef __IOfflineFilesEvents_INTERFACE_DEFINED__ +#define __IOfflineFilesEvents_INTERFACE_DEFINED__ + +/* interface IOfflineFilesEvents */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E25585C1-0CAA-4eb1-873B-1CAE5B77C314") + IOfflineFilesEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CacheMoved( + /* [string][in] */ __RPC__in_string LPCWSTR pszOldPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszNewPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE CacheIsFull( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CacheIsCorrupted( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Enabled( + /* [in] */ BOOL bEnabled) = 0; + + virtual HRESULT STDMETHODCALLTYPE EncryptionChanged( + /* [in] */ BOOL bWasEncrypted, + /* [in] */ BOOL bWasPartial, + /* [in] */ BOOL bIsEncrypted, + /* [in] */ BOOL bIsPartial) = 0; + + virtual HRESULT STDMETHODCALLTYPE SyncBegin( + /* [in] */ __RPC__in REFGUID rSyncId) = 0; + + virtual HRESULT STDMETHODCALLTYPE SyncFileResult( + /* [in] */ __RPC__in REFGUID rSyncId, + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [in] */ HRESULT hrResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE SyncConflictRecAdded( + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState) = 0; + + virtual HRESULT STDMETHODCALLTYPE SyncConflictRecUpdated( + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState) = 0; + + virtual HRESULT STDMETHODCALLTYPE SyncConflictRecRemoved( + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState) = 0; + + virtual HRESULT STDMETHODCALLTYPE SyncEnd( + /* [in] */ __RPC__in REFGUID rSyncId, + /* [in] */ HRESULT hrResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE NetTransportArrived( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE NoNetTransports( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemDisconnected( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemReconnected( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemAvailableOffline( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemNotAvailableOffline( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemPinned( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemNotPinned( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemModified( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType, + /* [in] */ BOOL bModifiedData, + /* [in] */ BOOL bModifiedAttributes) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemAddedToCache( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemDeletedFromCache( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemRenamed( + /* [string][in] */ __RPC__in_string LPCWSTR pszOldPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszNewPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType) = 0; + + virtual HRESULT STDMETHODCALLTYPE DataLost( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Ping( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesEvents * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheMoved) + HRESULT ( STDMETHODCALLTYPE *CacheMoved )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszOldPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszNewPath); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheIsFull) + HRESULT ( STDMETHODCALLTYPE *CacheIsFull )( + __RPC__in IOfflineFilesEvents * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheIsCorrupted) + HRESULT ( STDMETHODCALLTYPE *CacheIsCorrupted )( + __RPC__in IOfflineFilesEvents * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, Enabled) + HRESULT ( STDMETHODCALLTYPE *Enabled )( + __RPC__in IOfflineFilesEvents * This, + /* [in] */ BOOL bEnabled); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, EncryptionChanged) + HRESULT ( STDMETHODCALLTYPE *EncryptionChanged )( + __RPC__in IOfflineFilesEvents * This, + /* [in] */ BOOL bWasEncrypted, + /* [in] */ BOOL bWasPartial, + /* [in] */ BOOL bIsEncrypted, + /* [in] */ BOOL bIsPartial); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncBegin) + HRESULT ( STDMETHODCALLTYPE *SyncBegin )( + __RPC__in IOfflineFilesEvents * This, + /* [in] */ __RPC__in REFGUID rSyncId); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncFileResult) + HRESULT ( STDMETHODCALLTYPE *SyncFileResult )( + __RPC__in IOfflineFilesEvents * This, + /* [in] */ __RPC__in REFGUID rSyncId, + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecAdded) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecAdded )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecUpdated) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecUpdated )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecRemoved) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecRemoved )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncEnd) + HRESULT ( STDMETHODCALLTYPE *SyncEnd )( + __RPC__in IOfflineFilesEvents * This, + /* [in] */ __RPC__in REFGUID rSyncId, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, NetTransportArrived) + HRESULT ( STDMETHODCALLTYPE *NetTransportArrived )( + __RPC__in IOfflineFilesEvents * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, NoNetTransports) + HRESULT ( STDMETHODCALLTYPE *NoNetTransports )( + __RPC__in IOfflineFilesEvents * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemDisconnected) + HRESULT ( STDMETHODCALLTYPE *ItemDisconnected )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemReconnected) + HRESULT ( STDMETHODCALLTYPE *ItemReconnected )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemAvailableOffline) + HRESULT ( STDMETHODCALLTYPE *ItemAvailableOffline )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemNotAvailableOffline) + HRESULT ( STDMETHODCALLTYPE *ItemNotAvailableOffline )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemPinned) + HRESULT ( STDMETHODCALLTYPE *ItemPinned )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemNotPinned) + HRESULT ( STDMETHODCALLTYPE *ItemNotPinned )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemModified) + HRESULT ( STDMETHODCALLTYPE *ItemModified )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType, + /* [in] */ BOOL bModifiedData, + /* [in] */ BOOL bModifiedAttributes); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemAddedToCache) + HRESULT ( STDMETHODCALLTYPE *ItemAddedToCache )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemDeletedFromCache) + HRESULT ( STDMETHODCALLTYPE *ItemDeletedFromCache )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemRenamed) + HRESULT ( STDMETHODCALLTYPE *ItemRenamed )( + __RPC__in IOfflineFilesEvents * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszOldPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszNewPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, DataLost) + HRESULT ( STDMETHODCALLTYPE *DataLost )( + __RPC__in IOfflineFilesEvents * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, Ping) + HRESULT ( STDMETHODCALLTYPE *Ping )( + __RPC__in IOfflineFilesEvents * This); + + END_INTERFACE + } IOfflineFilesEventsVtbl; + + interface IOfflineFilesEvents + { + CONST_VTBL struct IOfflineFilesEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesEvents_CacheMoved(This,pszOldPath,pszNewPath) \ + ( (This)->lpVtbl -> CacheMoved(This,pszOldPath,pszNewPath) ) + +#define IOfflineFilesEvents_CacheIsFull(This) \ + ( (This)->lpVtbl -> CacheIsFull(This) ) + +#define IOfflineFilesEvents_CacheIsCorrupted(This) \ + ( (This)->lpVtbl -> CacheIsCorrupted(This) ) + +#define IOfflineFilesEvents_Enabled(This,bEnabled) \ + ( (This)->lpVtbl -> Enabled(This,bEnabled) ) + +#define IOfflineFilesEvents_EncryptionChanged(This,bWasEncrypted,bWasPartial,bIsEncrypted,bIsPartial) \ + ( (This)->lpVtbl -> EncryptionChanged(This,bWasEncrypted,bWasPartial,bIsEncrypted,bIsPartial) ) + +#define IOfflineFilesEvents_SyncBegin(This,rSyncId) \ + ( (This)->lpVtbl -> SyncBegin(This,rSyncId) ) + +#define IOfflineFilesEvents_SyncFileResult(This,rSyncId,pszFile,hrResult) \ + ( (This)->lpVtbl -> SyncFileResult(This,rSyncId,pszFile,hrResult) ) + +#define IOfflineFilesEvents_SyncConflictRecAdded(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecAdded(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents_SyncConflictRecUpdated(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecUpdated(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents_SyncConflictRecRemoved(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecRemoved(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents_SyncEnd(This,rSyncId,hrResult) \ + ( (This)->lpVtbl -> SyncEnd(This,rSyncId,hrResult) ) + +#define IOfflineFilesEvents_NetTransportArrived(This) \ + ( (This)->lpVtbl -> NetTransportArrived(This) ) + +#define IOfflineFilesEvents_NoNetTransports(This) \ + ( (This)->lpVtbl -> NoNetTransports(This) ) + +#define IOfflineFilesEvents_ItemDisconnected(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemDisconnected(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents_ItemReconnected(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemReconnected(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents_ItemAvailableOffline(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemAvailableOffline(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents_ItemNotAvailableOffline(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemNotAvailableOffline(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents_ItemPinned(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemPinned(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents_ItemNotPinned(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemNotPinned(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents_ItemModified(This,pszPath,ItemType,bModifiedData,bModifiedAttributes) \ + ( (This)->lpVtbl -> ItemModified(This,pszPath,ItemType,bModifiedData,bModifiedAttributes) ) + +#define IOfflineFilesEvents_ItemAddedToCache(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemAddedToCache(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents_ItemDeletedFromCache(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemDeletedFromCache(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents_ItemRenamed(This,pszOldPath,pszNewPath,ItemType) \ + ( (This)->lpVtbl -> ItemRenamed(This,pszOldPath,pszNewPath,ItemType) ) + +#define IOfflineFilesEvents_DataLost(This) \ + ( (This)->lpVtbl -> DataLost(This) ) + +#define IOfflineFilesEvents_Ping(This) \ + ( (This)->lpVtbl -> Ping(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesEvents2_INTERFACE_DEFINED__ +#define __IOfflineFilesEvents2_INTERFACE_DEFINED__ + +/* interface IOfflineFilesEvents2 */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesEvents2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1EAD8F56-FF76-4faa-A795-6F6EF792498B") + IOfflineFilesEvents2 : public IOfflineFilesEvents + { + public: + virtual HRESULT STDMETHODCALLTYPE ItemReconnectBegin( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemReconnectEnd( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CacheEvictBegin( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CacheEvictEnd( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE BackgroundSyncBegin( + /* [in] */ DWORD dwSyncControlFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE BackgroundSyncEnd( + /* [in] */ DWORD dwSyncControlFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE PolicyChangeDetected( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PreferenceChangeDetected( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SettingsChangesApplied( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesEvents2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesEvents2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheMoved) + HRESULT ( STDMETHODCALLTYPE *CacheMoved )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszOldPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszNewPath); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheIsFull) + HRESULT ( STDMETHODCALLTYPE *CacheIsFull )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheIsCorrupted) + HRESULT ( STDMETHODCALLTYPE *CacheIsCorrupted )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, Enabled) + HRESULT ( STDMETHODCALLTYPE *Enabled )( + __RPC__in IOfflineFilesEvents2 * This, + /* [in] */ BOOL bEnabled); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, EncryptionChanged) + HRESULT ( STDMETHODCALLTYPE *EncryptionChanged )( + __RPC__in IOfflineFilesEvents2 * This, + /* [in] */ BOOL bWasEncrypted, + /* [in] */ BOOL bWasPartial, + /* [in] */ BOOL bIsEncrypted, + /* [in] */ BOOL bIsPartial); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncBegin) + HRESULT ( STDMETHODCALLTYPE *SyncBegin )( + __RPC__in IOfflineFilesEvents2 * This, + /* [in] */ __RPC__in REFGUID rSyncId); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncFileResult) + HRESULT ( STDMETHODCALLTYPE *SyncFileResult )( + __RPC__in IOfflineFilesEvents2 * This, + /* [in] */ __RPC__in REFGUID rSyncId, + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecAdded) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecAdded )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecUpdated) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecUpdated )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecRemoved) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecRemoved )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncEnd) + HRESULT ( STDMETHODCALLTYPE *SyncEnd )( + __RPC__in IOfflineFilesEvents2 * This, + /* [in] */ __RPC__in REFGUID rSyncId, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, NetTransportArrived) + HRESULT ( STDMETHODCALLTYPE *NetTransportArrived )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, NoNetTransports) + HRESULT ( STDMETHODCALLTYPE *NoNetTransports )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemDisconnected) + HRESULT ( STDMETHODCALLTYPE *ItemDisconnected )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemReconnected) + HRESULT ( STDMETHODCALLTYPE *ItemReconnected )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemAvailableOffline) + HRESULT ( STDMETHODCALLTYPE *ItemAvailableOffline )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemNotAvailableOffline) + HRESULT ( STDMETHODCALLTYPE *ItemNotAvailableOffline )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemPinned) + HRESULT ( STDMETHODCALLTYPE *ItemPinned )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemNotPinned) + HRESULT ( STDMETHODCALLTYPE *ItemNotPinned )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemModified) + HRESULT ( STDMETHODCALLTYPE *ItemModified )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType, + /* [in] */ BOOL bModifiedData, + /* [in] */ BOOL bModifiedAttributes); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemAddedToCache) + HRESULT ( STDMETHODCALLTYPE *ItemAddedToCache )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemDeletedFromCache) + HRESULT ( STDMETHODCALLTYPE *ItemDeletedFromCache )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemRenamed) + HRESULT ( STDMETHODCALLTYPE *ItemRenamed )( + __RPC__in IOfflineFilesEvents2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszOldPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszNewPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, DataLost) + HRESULT ( STDMETHODCALLTYPE *DataLost )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, Ping) + HRESULT ( STDMETHODCALLTYPE *Ping )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, ItemReconnectBegin) + HRESULT ( STDMETHODCALLTYPE *ItemReconnectBegin )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, ItemReconnectEnd) + HRESULT ( STDMETHODCALLTYPE *ItemReconnectEnd )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, CacheEvictBegin) + HRESULT ( STDMETHODCALLTYPE *CacheEvictBegin )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, CacheEvictEnd) + HRESULT ( STDMETHODCALLTYPE *CacheEvictEnd )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, BackgroundSyncBegin) + HRESULT ( STDMETHODCALLTYPE *BackgroundSyncBegin )( + __RPC__in IOfflineFilesEvents2 * This, + /* [in] */ DWORD dwSyncControlFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, BackgroundSyncEnd) + HRESULT ( STDMETHODCALLTYPE *BackgroundSyncEnd )( + __RPC__in IOfflineFilesEvents2 * This, + /* [in] */ DWORD dwSyncControlFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, PolicyChangeDetected) + HRESULT ( STDMETHODCALLTYPE *PolicyChangeDetected )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, PreferenceChangeDetected) + HRESULT ( STDMETHODCALLTYPE *PreferenceChangeDetected )( + __RPC__in IOfflineFilesEvents2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, SettingsChangesApplied) + HRESULT ( STDMETHODCALLTYPE *SettingsChangesApplied )( + __RPC__in IOfflineFilesEvents2 * This); + + END_INTERFACE + } IOfflineFilesEvents2Vtbl; + + interface IOfflineFilesEvents2 + { + CONST_VTBL struct IOfflineFilesEvents2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesEvents2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesEvents2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesEvents2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesEvents2_CacheMoved(This,pszOldPath,pszNewPath) \ + ( (This)->lpVtbl -> CacheMoved(This,pszOldPath,pszNewPath) ) + +#define IOfflineFilesEvents2_CacheIsFull(This) \ + ( (This)->lpVtbl -> CacheIsFull(This) ) + +#define IOfflineFilesEvents2_CacheIsCorrupted(This) \ + ( (This)->lpVtbl -> CacheIsCorrupted(This) ) + +#define IOfflineFilesEvents2_Enabled(This,bEnabled) \ + ( (This)->lpVtbl -> Enabled(This,bEnabled) ) + +#define IOfflineFilesEvents2_EncryptionChanged(This,bWasEncrypted,bWasPartial,bIsEncrypted,bIsPartial) \ + ( (This)->lpVtbl -> EncryptionChanged(This,bWasEncrypted,bWasPartial,bIsEncrypted,bIsPartial) ) + +#define IOfflineFilesEvents2_SyncBegin(This,rSyncId) \ + ( (This)->lpVtbl -> SyncBegin(This,rSyncId) ) + +#define IOfflineFilesEvents2_SyncFileResult(This,rSyncId,pszFile,hrResult) \ + ( (This)->lpVtbl -> SyncFileResult(This,rSyncId,pszFile,hrResult) ) + +#define IOfflineFilesEvents2_SyncConflictRecAdded(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecAdded(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents2_SyncConflictRecUpdated(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecUpdated(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents2_SyncConflictRecRemoved(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecRemoved(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents2_SyncEnd(This,rSyncId,hrResult) \ + ( (This)->lpVtbl -> SyncEnd(This,rSyncId,hrResult) ) + +#define IOfflineFilesEvents2_NetTransportArrived(This) \ + ( (This)->lpVtbl -> NetTransportArrived(This) ) + +#define IOfflineFilesEvents2_NoNetTransports(This) \ + ( (This)->lpVtbl -> NoNetTransports(This) ) + +#define IOfflineFilesEvents2_ItemDisconnected(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemDisconnected(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents2_ItemReconnected(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemReconnected(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents2_ItemAvailableOffline(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemAvailableOffline(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents2_ItemNotAvailableOffline(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemNotAvailableOffline(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents2_ItemPinned(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemPinned(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents2_ItemNotPinned(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemNotPinned(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents2_ItemModified(This,pszPath,ItemType,bModifiedData,bModifiedAttributes) \ + ( (This)->lpVtbl -> ItemModified(This,pszPath,ItemType,bModifiedData,bModifiedAttributes) ) + +#define IOfflineFilesEvents2_ItemAddedToCache(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemAddedToCache(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents2_ItemDeletedFromCache(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemDeletedFromCache(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents2_ItemRenamed(This,pszOldPath,pszNewPath,ItemType) \ + ( (This)->lpVtbl -> ItemRenamed(This,pszOldPath,pszNewPath,ItemType) ) + +#define IOfflineFilesEvents2_DataLost(This) \ + ( (This)->lpVtbl -> DataLost(This) ) + +#define IOfflineFilesEvents2_Ping(This) \ + ( (This)->lpVtbl -> Ping(This) ) + + +#define IOfflineFilesEvents2_ItemReconnectBegin(This) \ + ( (This)->lpVtbl -> ItemReconnectBegin(This) ) + +#define IOfflineFilesEvents2_ItemReconnectEnd(This) \ + ( (This)->lpVtbl -> ItemReconnectEnd(This) ) + +#define IOfflineFilesEvents2_CacheEvictBegin(This) \ + ( (This)->lpVtbl -> CacheEvictBegin(This) ) + +#define IOfflineFilesEvents2_CacheEvictEnd(This) \ + ( (This)->lpVtbl -> CacheEvictEnd(This) ) + +#define IOfflineFilesEvents2_BackgroundSyncBegin(This,dwSyncControlFlags) \ + ( (This)->lpVtbl -> BackgroundSyncBegin(This,dwSyncControlFlags) ) + +#define IOfflineFilesEvents2_BackgroundSyncEnd(This,dwSyncControlFlags) \ + ( (This)->lpVtbl -> BackgroundSyncEnd(This,dwSyncControlFlags) ) + +#define IOfflineFilesEvents2_PolicyChangeDetected(This) \ + ( (This)->lpVtbl -> PolicyChangeDetected(This) ) + +#define IOfflineFilesEvents2_PreferenceChangeDetected(This) \ + ( (This)->lpVtbl -> PreferenceChangeDetected(This) ) + +#define IOfflineFilesEvents2_SettingsChangesApplied(This) \ + ( (This)->lpVtbl -> SettingsChangesApplied(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesEvents2_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesEvents3_INTERFACE_DEFINED__ +#define __IOfflineFilesEvents3_INTERFACE_DEFINED__ + +/* interface IOfflineFilesEvents3 */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesEvents3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9ba04a45-ee69-42f0-9ab1-7db5c8805808") + IOfflineFilesEvents3 : public IOfflineFilesEvents2 + { + public: + virtual HRESULT STDMETHODCALLTYPE TransparentCacheItemNotify( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_EVENTS EventType, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType, + /* [in] */ BOOL bModifiedData, + /* [in] */ BOOL bModifiedAttributes, + /* [string][in] */ __RPC__in_string LPCWSTR pzsOldPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE PrefetchFileBegin( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE PrefetchFileEnd( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ HRESULT hrResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesEvents3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesEvents3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheMoved) + HRESULT ( STDMETHODCALLTYPE *CacheMoved )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszOldPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszNewPath); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheIsFull) + HRESULT ( STDMETHODCALLTYPE *CacheIsFull )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheIsCorrupted) + HRESULT ( STDMETHODCALLTYPE *CacheIsCorrupted )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, Enabled) + HRESULT ( STDMETHODCALLTYPE *Enabled )( + __RPC__in IOfflineFilesEvents3 * This, + /* [in] */ BOOL bEnabled); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, EncryptionChanged) + HRESULT ( STDMETHODCALLTYPE *EncryptionChanged )( + __RPC__in IOfflineFilesEvents3 * This, + /* [in] */ BOOL bWasEncrypted, + /* [in] */ BOOL bWasPartial, + /* [in] */ BOOL bIsEncrypted, + /* [in] */ BOOL bIsPartial); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncBegin) + HRESULT ( STDMETHODCALLTYPE *SyncBegin )( + __RPC__in IOfflineFilesEvents3 * This, + /* [in] */ __RPC__in REFGUID rSyncId); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncFileResult) + HRESULT ( STDMETHODCALLTYPE *SyncFileResult )( + __RPC__in IOfflineFilesEvents3 * This, + /* [in] */ __RPC__in REFGUID rSyncId, + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecAdded) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecAdded )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecUpdated) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecUpdated )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecRemoved) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecRemoved )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncEnd) + HRESULT ( STDMETHODCALLTYPE *SyncEnd )( + __RPC__in IOfflineFilesEvents3 * This, + /* [in] */ __RPC__in REFGUID rSyncId, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, NetTransportArrived) + HRESULT ( STDMETHODCALLTYPE *NetTransportArrived )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, NoNetTransports) + HRESULT ( STDMETHODCALLTYPE *NoNetTransports )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemDisconnected) + HRESULT ( STDMETHODCALLTYPE *ItemDisconnected )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemReconnected) + HRESULT ( STDMETHODCALLTYPE *ItemReconnected )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemAvailableOffline) + HRESULT ( STDMETHODCALLTYPE *ItemAvailableOffline )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemNotAvailableOffline) + HRESULT ( STDMETHODCALLTYPE *ItemNotAvailableOffline )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemPinned) + HRESULT ( STDMETHODCALLTYPE *ItemPinned )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemNotPinned) + HRESULT ( STDMETHODCALLTYPE *ItemNotPinned )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemModified) + HRESULT ( STDMETHODCALLTYPE *ItemModified )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType, + /* [in] */ BOOL bModifiedData, + /* [in] */ BOOL bModifiedAttributes); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemAddedToCache) + HRESULT ( STDMETHODCALLTYPE *ItemAddedToCache )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemDeletedFromCache) + HRESULT ( STDMETHODCALLTYPE *ItemDeletedFromCache )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemRenamed) + HRESULT ( STDMETHODCALLTYPE *ItemRenamed )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszOldPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszNewPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, DataLost) + HRESULT ( STDMETHODCALLTYPE *DataLost )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, Ping) + HRESULT ( STDMETHODCALLTYPE *Ping )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, ItemReconnectBegin) + HRESULT ( STDMETHODCALLTYPE *ItemReconnectBegin )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, ItemReconnectEnd) + HRESULT ( STDMETHODCALLTYPE *ItemReconnectEnd )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, CacheEvictBegin) + HRESULT ( STDMETHODCALLTYPE *CacheEvictBegin )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, CacheEvictEnd) + HRESULT ( STDMETHODCALLTYPE *CacheEvictEnd )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, BackgroundSyncBegin) + HRESULT ( STDMETHODCALLTYPE *BackgroundSyncBegin )( + __RPC__in IOfflineFilesEvents3 * This, + /* [in] */ DWORD dwSyncControlFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, BackgroundSyncEnd) + HRESULT ( STDMETHODCALLTYPE *BackgroundSyncEnd )( + __RPC__in IOfflineFilesEvents3 * This, + /* [in] */ DWORD dwSyncControlFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, PolicyChangeDetected) + HRESULT ( STDMETHODCALLTYPE *PolicyChangeDetected )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, PreferenceChangeDetected) + HRESULT ( STDMETHODCALLTYPE *PreferenceChangeDetected )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, SettingsChangesApplied) + HRESULT ( STDMETHODCALLTYPE *SettingsChangesApplied )( + __RPC__in IOfflineFilesEvents3 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents3, TransparentCacheItemNotify) + HRESULT ( STDMETHODCALLTYPE *TransparentCacheItemNotify )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_EVENTS EventType, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType, + /* [in] */ BOOL bModifiedData, + /* [in] */ BOOL bModifiedAttributes, + /* [string][in] */ __RPC__in_string LPCWSTR pzsOldPath); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents3, PrefetchFileBegin) + HRESULT ( STDMETHODCALLTYPE *PrefetchFileBegin )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents3, PrefetchFileEnd) + HRESULT ( STDMETHODCALLTYPE *PrefetchFileEnd )( + __RPC__in IOfflineFilesEvents3 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ HRESULT hrResult); + + END_INTERFACE + } IOfflineFilesEvents3Vtbl; + + interface IOfflineFilesEvents3 + { + CONST_VTBL struct IOfflineFilesEvents3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesEvents3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesEvents3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesEvents3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesEvents3_CacheMoved(This,pszOldPath,pszNewPath) \ + ( (This)->lpVtbl -> CacheMoved(This,pszOldPath,pszNewPath) ) + +#define IOfflineFilesEvents3_CacheIsFull(This) \ + ( (This)->lpVtbl -> CacheIsFull(This) ) + +#define IOfflineFilesEvents3_CacheIsCorrupted(This) \ + ( (This)->lpVtbl -> CacheIsCorrupted(This) ) + +#define IOfflineFilesEvents3_Enabled(This,bEnabled) \ + ( (This)->lpVtbl -> Enabled(This,bEnabled) ) + +#define IOfflineFilesEvents3_EncryptionChanged(This,bWasEncrypted,bWasPartial,bIsEncrypted,bIsPartial) \ + ( (This)->lpVtbl -> EncryptionChanged(This,bWasEncrypted,bWasPartial,bIsEncrypted,bIsPartial) ) + +#define IOfflineFilesEvents3_SyncBegin(This,rSyncId) \ + ( (This)->lpVtbl -> SyncBegin(This,rSyncId) ) + +#define IOfflineFilesEvents3_SyncFileResult(This,rSyncId,pszFile,hrResult) \ + ( (This)->lpVtbl -> SyncFileResult(This,rSyncId,pszFile,hrResult) ) + +#define IOfflineFilesEvents3_SyncConflictRecAdded(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecAdded(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents3_SyncConflictRecUpdated(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecUpdated(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents3_SyncConflictRecRemoved(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecRemoved(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents3_SyncEnd(This,rSyncId,hrResult) \ + ( (This)->lpVtbl -> SyncEnd(This,rSyncId,hrResult) ) + +#define IOfflineFilesEvents3_NetTransportArrived(This) \ + ( (This)->lpVtbl -> NetTransportArrived(This) ) + +#define IOfflineFilesEvents3_NoNetTransports(This) \ + ( (This)->lpVtbl -> NoNetTransports(This) ) + +#define IOfflineFilesEvents3_ItemDisconnected(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemDisconnected(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents3_ItemReconnected(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemReconnected(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents3_ItemAvailableOffline(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemAvailableOffline(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents3_ItemNotAvailableOffline(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemNotAvailableOffline(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents3_ItemPinned(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemPinned(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents3_ItemNotPinned(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemNotPinned(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents3_ItemModified(This,pszPath,ItemType,bModifiedData,bModifiedAttributes) \ + ( (This)->lpVtbl -> ItemModified(This,pszPath,ItemType,bModifiedData,bModifiedAttributes) ) + +#define IOfflineFilesEvents3_ItemAddedToCache(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemAddedToCache(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents3_ItemDeletedFromCache(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemDeletedFromCache(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents3_ItemRenamed(This,pszOldPath,pszNewPath,ItemType) \ + ( (This)->lpVtbl -> ItemRenamed(This,pszOldPath,pszNewPath,ItemType) ) + +#define IOfflineFilesEvents3_DataLost(This) \ + ( (This)->lpVtbl -> DataLost(This) ) + +#define IOfflineFilesEvents3_Ping(This) \ + ( (This)->lpVtbl -> Ping(This) ) + + +#define IOfflineFilesEvents3_ItemReconnectBegin(This) \ + ( (This)->lpVtbl -> ItemReconnectBegin(This) ) + +#define IOfflineFilesEvents3_ItemReconnectEnd(This) \ + ( (This)->lpVtbl -> ItemReconnectEnd(This) ) + +#define IOfflineFilesEvents3_CacheEvictBegin(This) \ + ( (This)->lpVtbl -> CacheEvictBegin(This) ) + +#define IOfflineFilesEvents3_CacheEvictEnd(This) \ + ( (This)->lpVtbl -> CacheEvictEnd(This) ) + +#define IOfflineFilesEvents3_BackgroundSyncBegin(This,dwSyncControlFlags) \ + ( (This)->lpVtbl -> BackgroundSyncBegin(This,dwSyncControlFlags) ) + +#define IOfflineFilesEvents3_BackgroundSyncEnd(This,dwSyncControlFlags) \ + ( (This)->lpVtbl -> BackgroundSyncEnd(This,dwSyncControlFlags) ) + +#define IOfflineFilesEvents3_PolicyChangeDetected(This) \ + ( (This)->lpVtbl -> PolicyChangeDetected(This) ) + +#define IOfflineFilesEvents3_PreferenceChangeDetected(This) \ + ( (This)->lpVtbl -> PreferenceChangeDetected(This) ) + +#define IOfflineFilesEvents3_SettingsChangesApplied(This) \ + ( (This)->lpVtbl -> SettingsChangesApplied(This) ) + + +#define IOfflineFilesEvents3_TransparentCacheItemNotify(This,pszPath,EventType,ItemType,bModifiedData,bModifiedAttributes,pzsOldPath) \ + ( (This)->lpVtbl -> TransparentCacheItemNotify(This,pszPath,EventType,ItemType,bModifiedData,bModifiedAttributes,pzsOldPath) ) + +#define IOfflineFilesEvents3_PrefetchFileBegin(This,pszPath) \ + ( (This)->lpVtbl -> PrefetchFileBegin(This,pszPath) ) + +#define IOfflineFilesEvents3_PrefetchFileEnd(This,pszPath,hrResult) \ + ( (This)->lpVtbl -> PrefetchFileEnd(This,pszPath,hrResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesEvents3_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesEvents4_INTERFACE_DEFINED__ +#define __IOfflineFilesEvents4_INTERFACE_DEFINED__ + +/* interface IOfflineFilesEvents4 */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesEvents4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DBD69B1E-C7D2-473e-B35F-9D8C24C0C484") + IOfflineFilesEvents4 : public IOfflineFilesEvents3 + { + public: + virtual HRESULT STDMETHODCALLTYPE PrefetchCloseHandleBegin( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PrefetchCloseHandleEnd( + /* [in] */ DWORD dwClosedHandleCount, + /* [in] */ DWORD dwOpenHandleCount, + /* [in] */ HRESULT hrResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesEvents4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesEvents4 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheMoved) + HRESULT ( STDMETHODCALLTYPE *CacheMoved )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszOldPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszNewPath); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheIsFull) + HRESULT ( STDMETHODCALLTYPE *CacheIsFull )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, CacheIsCorrupted) + HRESULT ( STDMETHODCALLTYPE *CacheIsCorrupted )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, Enabled) + HRESULT ( STDMETHODCALLTYPE *Enabled )( + __RPC__in IOfflineFilesEvents4 * This, + /* [in] */ BOOL bEnabled); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, EncryptionChanged) + HRESULT ( STDMETHODCALLTYPE *EncryptionChanged )( + __RPC__in IOfflineFilesEvents4 * This, + /* [in] */ BOOL bWasEncrypted, + /* [in] */ BOOL bWasPartial, + /* [in] */ BOOL bIsEncrypted, + /* [in] */ BOOL bIsPartial); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncBegin) + HRESULT ( STDMETHODCALLTYPE *SyncBegin )( + __RPC__in IOfflineFilesEvents4 * This, + /* [in] */ __RPC__in REFGUID rSyncId); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncFileResult) + HRESULT ( STDMETHODCALLTYPE *SyncFileResult )( + __RPC__in IOfflineFilesEvents4 * This, + /* [in] */ __RPC__in REFGUID rSyncId, + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecAdded) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecAdded )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecUpdated) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecUpdated )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncConflictRecRemoved) + HRESULT ( STDMETHODCALLTYPE *SyncConflictRecRemoved )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszConflictPath, + /* [in] */ __RPC__in const FILETIME *pftConflictDateTime, + /* [in] */ OFFLINEFILES_SYNC_STATE ConflictSyncState); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, SyncEnd) + HRESULT ( STDMETHODCALLTYPE *SyncEnd )( + __RPC__in IOfflineFilesEvents4 * This, + /* [in] */ __RPC__in REFGUID rSyncId, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, NetTransportArrived) + HRESULT ( STDMETHODCALLTYPE *NetTransportArrived )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, NoNetTransports) + HRESULT ( STDMETHODCALLTYPE *NoNetTransports )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemDisconnected) + HRESULT ( STDMETHODCALLTYPE *ItemDisconnected )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemReconnected) + HRESULT ( STDMETHODCALLTYPE *ItemReconnected )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemAvailableOffline) + HRESULT ( STDMETHODCALLTYPE *ItemAvailableOffline )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemNotAvailableOffline) + HRESULT ( STDMETHODCALLTYPE *ItemNotAvailableOffline )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemPinned) + HRESULT ( STDMETHODCALLTYPE *ItemPinned )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemNotPinned) + HRESULT ( STDMETHODCALLTYPE *ItemNotPinned )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemModified) + HRESULT ( STDMETHODCALLTYPE *ItemModified )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType, + /* [in] */ BOOL bModifiedData, + /* [in] */ BOOL bModifiedAttributes); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemAddedToCache) + HRESULT ( STDMETHODCALLTYPE *ItemAddedToCache )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemDeletedFromCache) + HRESULT ( STDMETHODCALLTYPE *ItemDeletedFromCache )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, ItemRenamed) + HRESULT ( STDMETHODCALLTYPE *ItemRenamed )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszOldPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszNewPath, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, DataLost) + HRESULT ( STDMETHODCALLTYPE *DataLost )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents, Ping) + HRESULT ( STDMETHODCALLTYPE *Ping )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, ItemReconnectBegin) + HRESULT ( STDMETHODCALLTYPE *ItemReconnectBegin )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, ItemReconnectEnd) + HRESULT ( STDMETHODCALLTYPE *ItemReconnectEnd )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, CacheEvictBegin) + HRESULT ( STDMETHODCALLTYPE *CacheEvictBegin )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, CacheEvictEnd) + HRESULT ( STDMETHODCALLTYPE *CacheEvictEnd )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, BackgroundSyncBegin) + HRESULT ( STDMETHODCALLTYPE *BackgroundSyncBegin )( + __RPC__in IOfflineFilesEvents4 * This, + /* [in] */ DWORD dwSyncControlFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, BackgroundSyncEnd) + HRESULT ( STDMETHODCALLTYPE *BackgroundSyncEnd )( + __RPC__in IOfflineFilesEvents4 * This, + /* [in] */ DWORD dwSyncControlFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, PolicyChangeDetected) + HRESULT ( STDMETHODCALLTYPE *PolicyChangeDetected )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, PreferenceChangeDetected) + HRESULT ( STDMETHODCALLTYPE *PreferenceChangeDetected )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents2, SettingsChangesApplied) + HRESULT ( STDMETHODCALLTYPE *SettingsChangesApplied )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents3, TransparentCacheItemNotify) + HRESULT ( STDMETHODCALLTYPE *TransparentCacheItemNotify )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ OFFLINEFILES_EVENTS EventType, + /* [in] */ OFFLINEFILES_ITEM_TYPE ItemType, + /* [in] */ BOOL bModifiedData, + /* [in] */ BOOL bModifiedAttributes, + /* [string][in] */ __RPC__in_string LPCWSTR pzsOldPath); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents3, PrefetchFileBegin) + HRESULT ( STDMETHODCALLTYPE *PrefetchFileBegin )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents3, PrefetchFileEnd) + HRESULT ( STDMETHODCALLTYPE *PrefetchFileEnd )( + __RPC__in IOfflineFilesEvents4 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents4, PrefetchCloseHandleBegin) + HRESULT ( STDMETHODCALLTYPE *PrefetchCloseHandleBegin )( + __RPC__in IOfflineFilesEvents4 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEvents4, PrefetchCloseHandleEnd) + HRESULT ( STDMETHODCALLTYPE *PrefetchCloseHandleEnd )( + __RPC__in IOfflineFilesEvents4 * This, + /* [in] */ DWORD dwClosedHandleCount, + /* [in] */ DWORD dwOpenHandleCount, + /* [in] */ HRESULT hrResult); + + END_INTERFACE + } IOfflineFilesEvents4Vtbl; + + interface IOfflineFilesEvents4 + { + CONST_VTBL struct IOfflineFilesEvents4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesEvents4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesEvents4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesEvents4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesEvents4_CacheMoved(This,pszOldPath,pszNewPath) \ + ( (This)->lpVtbl -> CacheMoved(This,pszOldPath,pszNewPath) ) + +#define IOfflineFilesEvents4_CacheIsFull(This) \ + ( (This)->lpVtbl -> CacheIsFull(This) ) + +#define IOfflineFilesEvents4_CacheIsCorrupted(This) \ + ( (This)->lpVtbl -> CacheIsCorrupted(This) ) + +#define IOfflineFilesEvents4_Enabled(This,bEnabled) \ + ( (This)->lpVtbl -> Enabled(This,bEnabled) ) + +#define IOfflineFilesEvents4_EncryptionChanged(This,bWasEncrypted,bWasPartial,bIsEncrypted,bIsPartial) \ + ( (This)->lpVtbl -> EncryptionChanged(This,bWasEncrypted,bWasPartial,bIsEncrypted,bIsPartial) ) + +#define IOfflineFilesEvents4_SyncBegin(This,rSyncId) \ + ( (This)->lpVtbl -> SyncBegin(This,rSyncId) ) + +#define IOfflineFilesEvents4_SyncFileResult(This,rSyncId,pszFile,hrResult) \ + ( (This)->lpVtbl -> SyncFileResult(This,rSyncId,pszFile,hrResult) ) + +#define IOfflineFilesEvents4_SyncConflictRecAdded(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecAdded(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents4_SyncConflictRecUpdated(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecUpdated(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents4_SyncConflictRecRemoved(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) \ + ( (This)->lpVtbl -> SyncConflictRecRemoved(This,pszConflictPath,pftConflictDateTime,ConflictSyncState) ) + +#define IOfflineFilesEvents4_SyncEnd(This,rSyncId,hrResult) \ + ( (This)->lpVtbl -> SyncEnd(This,rSyncId,hrResult) ) + +#define IOfflineFilesEvents4_NetTransportArrived(This) \ + ( (This)->lpVtbl -> NetTransportArrived(This) ) + +#define IOfflineFilesEvents4_NoNetTransports(This) \ + ( (This)->lpVtbl -> NoNetTransports(This) ) + +#define IOfflineFilesEvents4_ItemDisconnected(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemDisconnected(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents4_ItemReconnected(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemReconnected(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents4_ItemAvailableOffline(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemAvailableOffline(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents4_ItemNotAvailableOffline(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemNotAvailableOffline(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents4_ItemPinned(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemPinned(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents4_ItemNotPinned(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemNotPinned(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents4_ItemModified(This,pszPath,ItemType,bModifiedData,bModifiedAttributes) \ + ( (This)->lpVtbl -> ItemModified(This,pszPath,ItemType,bModifiedData,bModifiedAttributes) ) + +#define IOfflineFilesEvents4_ItemAddedToCache(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemAddedToCache(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents4_ItemDeletedFromCache(This,pszPath,ItemType) \ + ( (This)->lpVtbl -> ItemDeletedFromCache(This,pszPath,ItemType) ) + +#define IOfflineFilesEvents4_ItemRenamed(This,pszOldPath,pszNewPath,ItemType) \ + ( (This)->lpVtbl -> ItemRenamed(This,pszOldPath,pszNewPath,ItemType) ) + +#define IOfflineFilesEvents4_DataLost(This) \ + ( (This)->lpVtbl -> DataLost(This) ) + +#define IOfflineFilesEvents4_Ping(This) \ + ( (This)->lpVtbl -> Ping(This) ) + + +#define IOfflineFilesEvents4_ItemReconnectBegin(This) \ + ( (This)->lpVtbl -> ItemReconnectBegin(This) ) + +#define IOfflineFilesEvents4_ItemReconnectEnd(This) \ + ( (This)->lpVtbl -> ItemReconnectEnd(This) ) + +#define IOfflineFilesEvents4_CacheEvictBegin(This) \ + ( (This)->lpVtbl -> CacheEvictBegin(This) ) + +#define IOfflineFilesEvents4_CacheEvictEnd(This) \ + ( (This)->lpVtbl -> CacheEvictEnd(This) ) + +#define IOfflineFilesEvents4_BackgroundSyncBegin(This,dwSyncControlFlags) \ + ( (This)->lpVtbl -> BackgroundSyncBegin(This,dwSyncControlFlags) ) + +#define IOfflineFilesEvents4_BackgroundSyncEnd(This,dwSyncControlFlags) \ + ( (This)->lpVtbl -> BackgroundSyncEnd(This,dwSyncControlFlags) ) + +#define IOfflineFilesEvents4_PolicyChangeDetected(This) \ + ( (This)->lpVtbl -> PolicyChangeDetected(This) ) + +#define IOfflineFilesEvents4_PreferenceChangeDetected(This) \ + ( (This)->lpVtbl -> PreferenceChangeDetected(This) ) + +#define IOfflineFilesEvents4_SettingsChangesApplied(This) \ + ( (This)->lpVtbl -> SettingsChangesApplied(This) ) + + +#define IOfflineFilesEvents4_TransparentCacheItemNotify(This,pszPath,EventType,ItemType,bModifiedData,bModifiedAttributes,pzsOldPath) \ + ( (This)->lpVtbl -> TransparentCacheItemNotify(This,pszPath,EventType,ItemType,bModifiedData,bModifiedAttributes,pzsOldPath) ) + +#define IOfflineFilesEvents4_PrefetchFileBegin(This,pszPath) \ + ( (This)->lpVtbl -> PrefetchFileBegin(This,pszPath) ) + +#define IOfflineFilesEvents4_PrefetchFileEnd(This,pszPath,hrResult) \ + ( (This)->lpVtbl -> PrefetchFileEnd(This,pszPath,hrResult) ) + + +#define IOfflineFilesEvents4_PrefetchCloseHandleBegin(This) \ + ( (This)->lpVtbl -> PrefetchCloseHandleBegin(This) ) + +#define IOfflineFilesEvents4_PrefetchCloseHandleEnd(This,dwClosedHandleCount,dwOpenHandleCount,hrResult) \ + ( (This)->lpVtbl -> PrefetchCloseHandleEnd(This,dwClosedHandleCount,dwOpenHandleCount,hrResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesEvents4_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesEventsFilter_INTERFACE_DEFINED__ +#define __IOfflineFilesEventsFilter_INTERFACE_DEFINED__ + +/* interface IOfflineFilesEventsFilter */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesEventsFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("33FC4E1B-0716-40fa-BA65-6E62A84A846F") + IOfflineFilesEventsFilter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPathFilter( + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszFilter, + /* [out] */ __RPC__out OFFLINEFILES_PATHFILTER_MATCH *pMatch) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIncludedEvents( + /* [in] */ ULONG cElements, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cElements, *pcEvents) OFFLINEFILES_EVENTS *prgEvents, + /* [out] */ __RPC__out ULONG *pcEvents) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExcludedEvents( + /* [in] */ ULONG cElements, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cElements, *pcEvents) OFFLINEFILES_EVENTS *prgEvents, + /* [out] */ __RPC__out ULONG *pcEvents) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesEventsFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesEventsFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesEventsFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesEventsFilter * This); + + DECLSPEC_XFGVIRT(IOfflineFilesEventsFilter, GetPathFilter) + HRESULT ( STDMETHODCALLTYPE *GetPathFilter )( + __RPC__in IOfflineFilesEventsFilter * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszFilter, + /* [out] */ __RPC__out OFFLINEFILES_PATHFILTER_MATCH *pMatch); + + DECLSPEC_XFGVIRT(IOfflineFilesEventsFilter, GetIncludedEvents) + HRESULT ( STDMETHODCALLTYPE *GetIncludedEvents )( + __RPC__in IOfflineFilesEventsFilter * This, + /* [in] */ ULONG cElements, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cElements, *pcEvents) OFFLINEFILES_EVENTS *prgEvents, + /* [out] */ __RPC__out ULONG *pcEvents); + + DECLSPEC_XFGVIRT(IOfflineFilesEventsFilter, GetExcludedEvents) + HRESULT ( STDMETHODCALLTYPE *GetExcludedEvents )( + __RPC__in IOfflineFilesEventsFilter * This, + /* [in] */ ULONG cElements, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cElements, *pcEvents) OFFLINEFILES_EVENTS *prgEvents, + /* [out] */ __RPC__out ULONG *pcEvents); + + END_INTERFACE + } IOfflineFilesEventsFilterVtbl; + + interface IOfflineFilesEventsFilter + { + CONST_VTBL struct IOfflineFilesEventsFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesEventsFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesEventsFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesEventsFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesEventsFilter_GetPathFilter(This,ppszFilter,pMatch) \ + ( (This)->lpVtbl -> GetPathFilter(This,ppszFilter,pMatch) ) + +#define IOfflineFilesEventsFilter_GetIncludedEvents(This,cElements,prgEvents,pcEvents) \ + ( (This)->lpVtbl -> GetIncludedEvents(This,cElements,prgEvents,pcEvents) ) + +#define IOfflineFilesEventsFilter_GetExcludedEvents(This,cElements,prgEvents,pcEvents) \ + ( (This)->lpVtbl -> GetExcludedEvents(This,cElements,prgEvents,pcEvents) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesEventsFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesErrorInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesErrorInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesErrorInfo */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesErrorInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7112FA5F-7571-435a-8EB7-195C7C1429BC") + IOfflineFilesErrorInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRawData( + /* [out] */ __RPC__deref_out_opt BYTE_BLOB **ppBlob) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescription( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszDescription) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesErrorInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesErrorInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesErrorInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesErrorInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesErrorInfo, GetRawData) + HRESULT ( STDMETHODCALLTYPE *GetRawData )( + __RPC__in IOfflineFilesErrorInfo * This, + /* [out] */ __RPC__deref_out_opt BYTE_BLOB **ppBlob); + + DECLSPEC_XFGVIRT(IOfflineFilesErrorInfo, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in IOfflineFilesErrorInfo * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszDescription); + + END_INTERFACE + } IOfflineFilesErrorInfoVtbl; + + interface IOfflineFilesErrorInfo + { + CONST_VTBL struct IOfflineFilesErrorInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesErrorInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesErrorInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesErrorInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesErrorInfo_GetRawData(This,ppBlob) \ + ( (This)->lpVtbl -> GetRawData(This,ppBlob) ) + +#define IOfflineFilesErrorInfo_GetDescription(This,ppszDescription) \ + ( (This)->lpVtbl -> GetDescription(This,ppszDescription) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesErrorInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesSyncErrorItemInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesSyncErrorItemInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesSyncErrorItemInfo */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesSyncErrorItemInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ECDBAF0D-6A18-4d55-8017-108F7660BA44") + IOfflineFilesSyncErrorItemInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFileAttributes( + /* [out] */ __RPC__out DWORD *pdwAttributes) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileTimes( + /* [out] */ __RPC__out FILETIME *pftLastWrite, + /* [out] */ __RPC__out FILETIME *pftChange) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileSize( + /* [out] */ __RPC__out LARGE_INTEGER *pSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesSyncErrorItemInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesSyncErrorItemInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesSyncErrorItemInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesSyncErrorItemInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncErrorItemInfo, GetFileAttributes) + HRESULT ( STDMETHODCALLTYPE *GetFileAttributes )( + __RPC__in IOfflineFilesSyncErrorItemInfo * This, + /* [out] */ __RPC__out DWORD *pdwAttributes); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncErrorItemInfo, GetFileTimes) + HRESULT ( STDMETHODCALLTYPE *GetFileTimes )( + __RPC__in IOfflineFilesSyncErrorItemInfo * This, + /* [out] */ __RPC__out FILETIME *pftLastWrite, + /* [out] */ __RPC__out FILETIME *pftChange); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncErrorItemInfo, GetFileSize) + HRESULT ( STDMETHODCALLTYPE *GetFileSize )( + __RPC__in IOfflineFilesSyncErrorItemInfo * This, + /* [out] */ __RPC__out LARGE_INTEGER *pSize); + + END_INTERFACE + } IOfflineFilesSyncErrorItemInfoVtbl; + + interface IOfflineFilesSyncErrorItemInfo + { + CONST_VTBL struct IOfflineFilesSyncErrorItemInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesSyncErrorItemInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesSyncErrorItemInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesSyncErrorItemInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesSyncErrorItemInfo_GetFileAttributes(This,pdwAttributes) \ + ( (This)->lpVtbl -> GetFileAttributes(This,pdwAttributes) ) + +#define IOfflineFilesSyncErrorItemInfo_GetFileTimes(This,pftLastWrite,pftChange) \ + ( (This)->lpVtbl -> GetFileTimes(This,pftLastWrite,pftChange) ) + +#define IOfflineFilesSyncErrorItemInfo_GetFileSize(This,pSize) \ + ( (This)->lpVtbl -> GetFileSize(This,pSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesSyncErrorItemInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesSyncErrorInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesSyncErrorInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesSyncErrorInfo */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesSyncErrorInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("59F95E46-EB54-49d1-BE76-DE95458D01B0") + IOfflineFilesSyncErrorInfo : public IOfflineFilesErrorInfo + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSyncOperation( + /* [out] */ __RPC__out OFFLINEFILES_SYNC_OPERATION *pSyncOp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItemChangeFlags( + /* [out] */ __RPC__out DWORD *pdwItemChangeFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE InfoEnumerated( + /* [out] */ __RPC__out BOOL *pbLocalEnumerated, + /* [out] */ __RPC__out BOOL *pbRemoteEnumerated, + /* [out] */ __RPC__out BOOL *pbOriginalEnumerated) = 0; + + virtual HRESULT STDMETHODCALLTYPE InfoAvailable( + /* [out] */ __RPC__out BOOL *pbLocalInfo, + /* [out] */ __RPC__out BOOL *pbRemoteInfo, + /* [out] */ __RPC__out BOOL *pbOriginalInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLocalInfo( + /* [out] */ __RPC__deref_out_opt IOfflineFilesSyncErrorItemInfo **ppInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRemoteInfo( + /* [out] */ __RPC__deref_out_opt IOfflineFilesSyncErrorItemInfo **ppInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalInfo( + /* [out] */ __RPC__deref_out_opt IOfflineFilesSyncErrorItemInfo **ppInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesSyncErrorInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesSyncErrorInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesSyncErrorInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesSyncErrorInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesErrorInfo, GetRawData) + HRESULT ( STDMETHODCALLTYPE *GetRawData )( + __RPC__in IOfflineFilesSyncErrorInfo * This, + /* [out] */ __RPC__deref_out_opt BYTE_BLOB **ppBlob); + + DECLSPEC_XFGVIRT(IOfflineFilesErrorInfo, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + __RPC__in IOfflineFilesSyncErrorInfo * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszDescription); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncErrorInfo, GetSyncOperation) + HRESULT ( STDMETHODCALLTYPE *GetSyncOperation )( + __RPC__in IOfflineFilesSyncErrorInfo * This, + /* [out] */ __RPC__out OFFLINEFILES_SYNC_OPERATION *pSyncOp); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncErrorInfo, GetItemChangeFlags) + HRESULT ( STDMETHODCALLTYPE *GetItemChangeFlags )( + __RPC__in IOfflineFilesSyncErrorInfo * This, + /* [out] */ __RPC__out DWORD *pdwItemChangeFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncErrorInfo, InfoEnumerated) + HRESULT ( STDMETHODCALLTYPE *InfoEnumerated )( + __RPC__in IOfflineFilesSyncErrorInfo * This, + /* [out] */ __RPC__out BOOL *pbLocalEnumerated, + /* [out] */ __RPC__out BOOL *pbRemoteEnumerated, + /* [out] */ __RPC__out BOOL *pbOriginalEnumerated); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncErrorInfo, InfoAvailable) + HRESULT ( STDMETHODCALLTYPE *InfoAvailable )( + __RPC__in IOfflineFilesSyncErrorInfo * This, + /* [out] */ __RPC__out BOOL *pbLocalInfo, + /* [out] */ __RPC__out BOOL *pbRemoteInfo, + /* [out] */ __RPC__out BOOL *pbOriginalInfo); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncErrorInfo, GetLocalInfo) + HRESULT ( STDMETHODCALLTYPE *GetLocalInfo )( + __RPC__in IOfflineFilesSyncErrorInfo * This, + /* [out] */ __RPC__deref_out_opt IOfflineFilesSyncErrorItemInfo **ppInfo); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncErrorInfo, GetRemoteInfo) + HRESULT ( STDMETHODCALLTYPE *GetRemoteInfo )( + __RPC__in IOfflineFilesSyncErrorInfo * This, + /* [out] */ __RPC__deref_out_opt IOfflineFilesSyncErrorItemInfo **ppInfo); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncErrorInfo, GetOriginalInfo) + HRESULT ( STDMETHODCALLTYPE *GetOriginalInfo )( + __RPC__in IOfflineFilesSyncErrorInfo * This, + /* [out] */ __RPC__deref_out_opt IOfflineFilesSyncErrorItemInfo **ppInfo); + + END_INTERFACE + } IOfflineFilesSyncErrorInfoVtbl; + + interface IOfflineFilesSyncErrorInfo + { + CONST_VTBL struct IOfflineFilesSyncErrorInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesSyncErrorInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesSyncErrorInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesSyncErrorInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesSyncErrorInfo_GetRawData(This,ppBlob) \ + ( (This)->lpVtbl -> GetRawData(This,ppBlob) ) + +#define IOfflineFilesSyncErrorInfo_GetDescription(This,ppszDescription) \ + ( (This)->lpVtbl -> GetDescription(This,ppszDescription) ) + + +#define IOfflineFilesSyncErrorInfo_GetSyncOperation(This,pSyncOp) \ + ( (This)->lpVtbl -> GetSyncOperation(This,pSyncOp) ) + +#define IOfflineFilesSyncErrorInfo_GetItemChangeFlags(This,pdwItemChangeFlags) \ + ( (This)->lpVtbl -> GetItemChangeFlags(This,pdwItemChangeFlags) ) + +#define IOfflineFilesSyncErrorInfo_InfoEnumerated(This,pbLocalEnumerated,pbRemoteEnumerated,pbOriginalEnumerated) \ + ( (This)->lpVtbl -> InfoEnumerated(This,pbLocalEnumerated,pbRemoteEnumerated,pbOriginalEnumerated) ) + +#define IOfflineFilesSyncErrorInfo_InfoAvailable(This,pbLocalInfo,pbRemoteInfo,pbOriginalInfo) \ + ( (This)->lpVtbl -> InfoAvailable(This,pbLocalInfo,pbRemoteInfo,pbOriginalInfo) ) + +#define IOfflineFilesSyncErrorInfo_GetLocalInfo(This,ppInfo) \ + ( (This)->lpVtbl -> GetLocalInfo(This,ppInfo) ) + +#define IOfflineFilesSyncErrorInfo_GetRemoteInfo(This,ppInfo) \ + ( (This)->lpVtbl -> GetRemoteInfo(This,ppInfo) ) + +#define IOfflineFilesSyncErrorInfo_GetOriginalInfo(This,ppInfo) \ + ( (This)->lpVtbl -> GetOriginalInfo(This,ppInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesSyncErrorInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesProgress_INTERFACE_DEFINED__ +#define __IOfflineFilesProgress_INTERFACE_DEFINED__ + +/* interface IOfflineFilesProgress */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesProgress; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FAD63237-C55B-4911-9850-BCF96D4C979E") + IOfflineFilesProgress : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin( + /* [out] */ __RPC__out BOOL *pbAbort) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryAbort( + /* [out] */ __RPC__out BOOL *pbAbort) = 0; + + virtual HRESULT STDMETHODCALLTYPE End( + /* [in] */ HRESULT hrResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesProgressVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesProgress * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesProgress * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesProgress * This); + + DECLSPEC_XFGVIRT(IOfflineFilesProgress, Begin) + HRESULT ( STDMETHODCALLTYPE *Begin )( + __RPC__in IOfflineFilesProgress * This, + /* [out] */ __RPC__out BOOL *pbAbort); + + DECLSPEC_XFGVIRT(IOfflineFilesProgress, QueryAbort) + HRESULT ( STDMETHODCALLTYPE *QueryAbort )( + __RPC__in IOfflineFilesProgress * This, + /* [out] */ __RPC__out BOOL *pbAbort); + + DECLSPEC_XFGVIRT(IOfflineFilesProgress, End) + HRESULT ( STDMETHODCALLTYPE *End )( + __RPC__in IOfflineFilesProgress * This, + /* [in] */ HRESULT hrResult); + + END_INTERFACE + } IOfflineFilesProgressVtbl; + + interface IOfflineFilesProgress + { + CONST_VTBL struct IOfflineFilesProgressVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesProgress_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesProgress_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesProgress_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesProgress_Begin(This,pbAbort) \ + ( (This)->lpVtbl -> Begin(This,pbAbort) ) + +#define IOfflineFilesProgress_QueryAbort(This,pbAbort) \ + ( (This)->lpVtbl -> QueryAbort(This,pbAbort) ) + +#define IOfflineFilesProgress_End(This,hrResult) \ + ( (This)->lpVtbl -> End(This,hrResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesProgress_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesSimpleProgress_INTERFACE_DEFINED__ +#define __IOfflineFilesSimpleProgress_INTERFACE_DEFINED__ + +/* interface IOfflineFilesSimpleProgress */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesSimpleProgress; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C34F7F9B-C43D-4f9d-A776-C0EB6DE5D401") + IOfflineFilesSimpleProgress : public IOfflineFilesProgress + { + public: + virtual HRESULT STDMETHODCALLTYPE ItemBegin( + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [out] */ __RPC__out OFFLINEFILES_OP_RESPONSE *pResponse) = 0; + + virtual HRESULT STDMETHODCALLTYPE ItemResult( + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [in] */ HRESULT hrResult, + /* [out] */ __RPC__out OFFLINEFILES_OP_RESPONSE *pResponse) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesSimpleProgressVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesSimpleProgress * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesSimpleProgress * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesSimpleProgress * This); + + DECLSPEC_XFGVIRT(IOfflineFilesProgress, Begin) + HRESULT ( STDMETHODCALLTYPE *Begin )( + __RPC__in IOfflineFilesSimpleProgress * This, + /* [out] */ __RPC__out BOOL *pbAbort); + + DECLSPEC_XFGVIRT(IOfflineFilesProgress, QueryAbort) + HRESULT ( STDMETHODCALLTYPE *QueryAbort )( + __RPC__in IOfflineFilesSimpleProgress * This, + /* [out] */ __RPC__out BOOL *pbAbort); + + DECLSPEC_XFGVIRT(IOfflineFilesProgress, End) + HRESULT ( STDMETHODCALLTYPE *End )( + __RPC__in IOfflineFilesSimpleProgress * This, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesSimpleProgress, ItemBegin) + HRESULT ( STDMETHODCALLTYPE *ItemBegin )( + __RPC__in IOfflineFilesSimpleProgress * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [out] */ __RPC__out OFFLINEFILES_OP_RESPONSE *pResponse); + + DECLSPEC_XFGVIRT(IOfflineFilesSimpleProgress, ItemResult) + HRESULT ( STDMETHODCALLTYPE *ItemResult )( + __RPC__in IOfflineFilesSimpleProgress * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [in] */ HRESULT hrResult, + /* [out] */ __RPC__out OFFLINEFILES_OP_RESPONSE *pResponse); + + END_INTERFACE + } IOfflineFilesSimpleProgressVtbl; + + interface IOfflineFilesSimpleProgress + { + CONST_VTBL struct IOfflineFilesSimpleProgressVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesSimpleProgress_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesSimpleProgress_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesSimpleProgress_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesSimpleProgress_Begin(This,pbAbort) \ + ( (This)->lpVtbl -> Begin(This,pbAbort) ) + +#define IOfflineFilesSimpleProgress_QueryAbort(This,pbAbort) \ + ( (This)->lpVtbl -> QueryAbort(This,pbAbort) ) + +#define IOfflineFilesSimpleProgress_End(This,hrResult) \ + ( (This)->lpVtbl -> End(This,hrResult) ) + + +#define IOfflineFilesSimpleProgress_ItemBegin(This,pszFile,pResponse) \ + ( (This)->lpVtbl -> ItemBegin(This,pszFile,pResponse) ) + +#define IOfflineFilesSimpleProgress_ItemResult(This,pszFile,hrResult,pResponse) \ + ( (This)->lpVtbl -> ItemResult(This,pszFile,hrResult,pResponse) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesSimpleProgress_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesSyncProgress_INTERFACE_DEFINED__ +#define __IOfflineFilesSyncProgress_INTERFACE_DEFINED__ + +/* interface IOfflineFilesSyncProgress */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesSyncProgress; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6931F49A-6FC7-4c1b-B265-56793FC451B7") + IOfflineFilesSyncProgress : public IOfflineFilesProgress + { + public: + virtual HRESULT STDMETHODCALLTYPE SyncItemBegin( + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [out] */ __RPC__out OFFLINEFILES_OP_RESPONSE *pResponse) = 0; + + virtual HRESULT STDMETHODCALLTYPE SyncItemResult( + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [in] */ HRESULT hrResult, + /* [in] */ __RPC__in_opt IOfflineFilesSyncErrorInfo *pErrorInfo, + /* [out] */ __RPC__out OFFLINEFILES_OP_RESPONSE *pResponse) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesSyncProgressVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesSyncProgress * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesSyncProgress * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesSyncProgress * This); + + DECLSPEC_XFGVIRT(IOfflineFilesProgress, Begin) + HRESULT ( STDMETHODCALLTYPE *Begin )( + __RPC__in IOfflineFilesSyncProgress * This, + /* [out] */ __RPC__out BOOL *pbAbort); + + DECLSPEC_XFGVIRT(IOfflineFilesProgress, QueryAbort) + HRESULT ( STDMETHODCALLTYPE *QueryAbort )( + __RPC__in IOfflineFilesSyncProgress * This, + /* [out] */ __RPC__out BOOL *pbAbort); + + DECLSPEC_XFGVIRT(IOfflineFilesProgress, End) + HRESULT ( STDMETHODCALLTYPE *End )( + __RPC__in IOfflineFilesSyncProgress * This, + /* [in] */ HRESULT hrResult); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncProgress, SyncItemBegin) + HRESULT ( STDMETHODCALLTYPE *SyncItemBegin )( + __RPC__in IOfflineFilesSyncProgress * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [out] */ __RPC__out OFFLINEFILES_OP_RESPONSE *pResponse); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncProgress, SyncItemResult) + HRESULT ( STDMETHODCALLTYPE *SyncItemResult )( + __RPC__in IOfflineFilesSyncProgress * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszFile, + /* [in] */ HRESULT hrResult, + /* [in] */ __RPC__in_opt IOfflineFilesSyncErrorInfo *pErrorInfo, + /* [out] */ __RPC__out OFFLINEFILES_OP_RESPONSE *pResponse); + + END_INTERFACE + } IOfflineFilesSyncProgressVtbl; + + interface IOfflineFilesSyncProgress + { + CONST_VTBL struct IOfflineFilesSyncProgressVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesSyncProgress_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesSyncProgress_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesSyncProgress_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesSyncProgress_Begin(This,pbAbort) \ + ( (This)->lpVtbl -> Begin(This,pbAbort) ) + +#define IOfflineFilesSyncProgress_QueryAbort(This,pbAbort) \ + ( (This)->lpVtbl -> QueryAbort(This,pbAbort) ) + +#define IOfflineFilesSyncProgress_End(This,hrResult) \ + ( (This)->lpVtbl -> End(This,hrResult) ) + + +#define IOfflineFilesSyncProgress_SyncItemBegin(This,pszFile,pResponse) \ + ( (This)->lpVtbl -> SyncItemBegin(This,pszFile,pResponse) ) + +#define IOfflineFilesSyncProgress_SyncItemResult(This,pszFile,hrResult,pErrorInfo,pResponse) \ + ( (This)->lpVtbl -> SyncItemResult(This,pszFile,hrResult,pErrorInfo,pResponse) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesSyncProgress_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesSyncConflictHandler_INTERFACE_DEFINED__ +#define __IOfflineFilesSyncConflictHandler_INTERFACE_DEFINED__ + +/* interface IOfflineFilesSyncConflictHandler */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesSyncConflictHandler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B6DD5092-C65C-46b6-97B8-FADD08E7E1BE") + IOfflineFilesSyncConflictHandler : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ResolveConflict( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ DWORD fStateKnown, + /* [in] */ OFFLINEFILES_SYNC_STATE state, + /* [in] */ DWORD fChangeDetails, + /* [out] */ __RPC__out OFFLINEFILES_SYNC_CONFLICT_RESOLVE *pConflictResolution, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszNewName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesSyncConflictHandlerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesSyncConflictHandler * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesSyncConflictHandler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesSyncConflictHandler * This); + + DECLSPEC_XFGVIRT(IOfflineFilesSyncConflictHandler, ResolveConflict) + HRESULT ( STDMETHODCALLTYPE *ResolveConflict )( + __RPC__in IOfflineFilesSyncConflictHandler * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ DWORD fStateKnown, + /* [in] */ OFFLINEFILES_SYNC_STATE state, + /* [in] */ DWORD fChangeDetails, + /* [out] */ __RPC__out OFFLINEFILES_SYNC_CONFLICT_RESOLVE *pConflictResolution, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszNewName); + + END_INTERFACE + } IOfflineFilesSyncConflictHandlerVtbl; + + interface IOfflineFilesSyncConflictHandler + { + CONST_VTBL struct IOfflineFilesSyncConflictHandlerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesSyncConflictHandler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesSyncConflictHandler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesSyncConflictHandler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesSyncConflictHandler_ResolveConflict(This,pszPath,fStateKnown,state,fChangeDetails,pConflictResolution,ppszNewName) \ + ( (This)->lpVtbl -> ResolveConflict(This,pszPath,fStateKnown,state,fChangeDetails,pConflictResolution,ppszNewName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesSyncConflictHandler_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesItemFilter_INTERFACE_DEFINED__ +#define __IOfflineFilesItemFilter_INTERFACE_DEFINED__ + +/* interface IOfflineFilesItemFilter */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesItemFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F4B5A26C-DC05-4f20-ADA4-551F1077BE5C") + IOfflineFilesItemFilter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFilterFlags( + /* [out] */ __RPC__out ULONGLONG *pullFlags, + /* [out] */ __RPC__out ULONGLONG *pullMask) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTimeFilter( + /* [out] */ __RPC__out FILETIME *pftTime, + /* [out] */ __RPC__out BOOL *pbEvalTimeOfDay, + /* [out] */ __RPC__out OFFLINEFILES_ITEM_TIME *pTimeType, + /* [out] */ __RPC__out OFFLINEFILES_COMPARE *pCompare) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPatternFilter( + /* [size_is][string][out] */ __RPC__out_ecount_full_string(cchPattern) LPWSTR pszPattern, + /* [in] */ ULONG cchPattern) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesItemFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesItemFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesItemFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesItemFilter * This); + + DECLSPEC_XFGVIRT(IOfflineFilesItemFilter, GetFilterFlags) + HRESULT ( STDMETHODCALLTYPE *GetFilterFlags )( + __RPC__in IOfflineFilesItemFilter * This, + /* [out] */ __RPC__out ULONGLONG *pullFlags, + /* [out] */ __RPC__out ULONGLONG *pullMask); + + DECLSPEC_XFGVIRT(IOfflineFilesItemFilter, GetTimeFilter) + HRESULT ( STDMETHODCALLTYPE *GetTimeFilter )( + __RPC__in IOfflineFilesItemFilter * This, + /* [out] */ __RPC__out FILETIME *pftTime, + /* [out] */ __RPC__out BOOL *pbEvalTimeOfDay, + /* [out] */ __RPC__out OFFLINEFILES_ITEM_TIME *pTimeType, + /* [out] */ __RPC__out OFFLINEFILES_COMPARE *pCompare); + + DECLSPEC_XFGVIRT(IOfflineFilesItemFilter, GetPatternFilter) + HRESULT ( STDMETHODCALLTYPE *GetPatternFilter )( + __RPC__in IOfflineFilesItemFilter * This, + /* [size_is][string][out] */ __RPC__out_ecount_full_string(cchPattern) LPWSTR pszPattern, + /* [in] */ ULONG cchPattern); + + END_INTERFACE + } IOfflineFilesItemFilterVtbl; + + interface IOfflineFilesItemFilter + { + CONST_VTBL struct IOfflineFilesItemFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesItemFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesItemFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesItemFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesItemFilter_GetFilterFlags(This,pullFlags,pullMask) \ + ( (This)->lpVtbl -> GetFilterFlags(This,pullFlags,pullMask) ) + +#define IOfflineFilesItemFilter_GetTimeFilter(This,pftTime,pbEvalTimeOfDay,pTimeType,pCompare) \ + ( (This)->lpVtbl -> GetTimeFilter(This,pftTime,pbEvalTimeOfDay,pTimeType,pCompare) ) + +#define IOfflineFilesItemFilter_GetPatternFilter(This,pszPattern,cchPattern) \ + ( (This)->lpVtbl -> GetPatternFilter(This,pszPattern,cchPattern) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesItemFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesItem_INTERFACE_DEFINED__ +#define __IOfflineFilesItem_INTERFACE_DEFINED__ + +/* interface IOfflineFilesItem */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4a753da6-e044-4f12-a718-5d14d079a906") + IOfflineFilesItem : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetItemType( + /* [out] */ __RPC__out OFFLINEFILES_ITEM_TYPE *pItemType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPath( + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParentItem( + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE Refresh( + /* [in] */ DWORD dwQueryFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsMarkedForDeletion( + /* [out] */ __RPC__out BOOL *pbMarkedForDeletion) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesItem * This); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetItemType) + HRESULT ( STDMETHODCALLTYPE *GetItemType )( + __RPC__in IOfflineFilesItem * This, + /* [out] */ __RPC__out OFFLINEFILES_ITEM_TYPE *pItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetPath) + HRESULT ( STDMETHODCALLTYPE *GetPath )( + __RPC__in IOfflineFilesItem * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszPath); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetParentItem) + HRESULT ( STDMETHODCALLTYPE *GetParentItem )( + __RPC__in IOfflineFilesItem * This, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, Refresh) + HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IOfflineFilesItem * This, + /* [in] */ DWORD dwQueryFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, IsMarkedForDeletion) + HRESULT ( STDMETHODCALLTYPE *IsMarkedForDeletion )( + __RPC__in IOfflineFilesItem * This, + /* [out] */ __RPC__out BOOL *pbMarkedForDeletion); + + END_INTERFACE + } IOfflineFilesItemVtbl; + + interface IOfflineFilesItem + { + CONST_VTBL struct IOfflineFilesItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesItem_GetItemType(This,pItemType) \ + ( (This)->lpVtbl -> GetItemType(This,pItemType) ) + +#define IOfflineFilesItem_GetPath(This,ppszPath) \ + ( (This)->lpVtbl -> GetPath(This,ppszPath) ) + +#define IOfflineFilesItem_GetParentItem(This,ppItem) \ + ( (This)->lpVtbl -> GetParentItem(This,ppItem) ) + +#define IOfflineFilesItem_Refresh(This,dwQueryFlags) \ + ( (This)->lpVtbl -> Refresh(This,dwQueryFlags) ) + +#define IOfflineFilesItem_IsMarkedForDeletion(This,pbMarkedForDeletion) \ + ( (This)->lpVtbl -> IsMarkedForDeletion(This,pbMarkedForDeletion) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesItem_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesServerItem_INTERFACE_DEFINED__ +#define __IOfflineFilesServerItem_INTERFACE_DEFINED__ + +/* interface IOfflineFilesServerItem */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesServerItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B1C9576-A92B-4151-8E9E-7C7B3EC2E016") + IOfflineFilesServerItem : public IOfflineFilesItem + { + public: + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesServerItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesServerItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesServerItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesServerItem * This); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetItemType) + HRESULT ( STDMETHODCALLTYPE *GetItemType )( + __RPC__in IOfflineFilesServerItem * This, + /* [out] */ __RPC__out OFFLINEFILES_ITEM_TYPE *pItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetPath) + HRESULT ( STDMETHODCALLTYPE *GetPath )( + __RPC__in IOfflineFilesServerItem * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszPath); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetParentItem) + HRESULT ( STDMETHODCALLTYPE *GetParentItem )( + __RPC__in IOfflineFilesServerItem * This, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, Refresh) + HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IOfflineFilesServerItem * This, + /* [in] */ DWORD dwQueryFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, IsMarkedForDeletion) + HRESULT ( STDMETHODCALLTYPE *IsMarkedForDeletion )( + __RPC__in IOfflineFilesServerItem * This, + /* [out] */ __RPC__out BOOL *pbMarkedForDeletion); + + END_INTERFACE + } IOfflineFilesServerItemVtbl; + + interface IOfflineFilesServerItem + { + CONST_VTBL struct IOfflineFilesServerItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesServerItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesServerItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesServerItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesServerItem_GetItemType(This,pItemType) \ + ( (This)->lpVtbl -> GetItemType(This,pItemType) ) + +#define IOfflineFilesServerItem_GetPath(This,ppszPath) \ + ( (This)->lpVtbl -> GetPath(This,ppszPath) ) + +#define IOfflineFilesServerItem_GetParentItem(This,ppItem) \ + ( (This)->lpVtbl -> GetParentItem(This,ppItem) ) + +#define IOfflineFilesServerItem_Refresh(This,dwQueryFlags) \ + ( (This)->lpVtbl -> Refresh(This,dwQueryFlags) ) + +#define IOfflineFilesServerItem_IsMarkedForDeletion(This,pbMarkedForDeletion) \ + ( (This)->lpVtbl -> IsMarkedForDeletion(This,pbMarkedForDeletion) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesServerItem_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesShareItem_INTERFACE_DEFINED__ +#define __IOfflineFilesShareItem_INTERFACE_DEFINED__ + +/* interface IOfflineFilesShareItem */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesShareItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BAB7E48D-4804-41b5-A44D-0F199B06B145") + IOfflineFilesShareItem : public IOfflineFilesItem + { + public: + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesShareItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesShareItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesShareItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesShareItem * This); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetItemType) + HRESULT ( STDMETHODCALLTYPE *GetItemType )( + __RPC__in IOfflineFilesShareItem * This, + /* [out] */ __RPC__out OFFLINEFILES_ITEM_TYPE *pItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetPath) + HRESULT ( STDMETHODCALLTYPE *GetPath )( + __RPC__in IOfflineFilesShareItem * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszPath); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetParentItem) + HRESULT ( STDMETHODCALLTYPE *GetParentItem )( + __RPC__in IOfflineFilesShareItem * This, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, Refresh) + HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IOfflineFilesShareItem * This, + /* [in] */ DWORD dwQueryFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, IsMarkedForDeletion) + HRESULT ( STDMETHODCALLTYPE *IsMarkedForDeletion )( + __RPC__in IOfflineFilesShareItem * This, + /* [out] */ __RPC__out BOOL *pbMarkedForDeletion); + + END_INTERFACE + } IOfflineFilesShareItemVtbl; + + interface IOfflineFilesShareItem + { + CONST_VTBL struct IOfflineFilesShareItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesShareItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesShareItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesShareItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesShareItem_GetItemType(This,pItemType) \ + ( (This)->lpVtbl -> GetItemType(This,pItemType) ) + +#define IOfflineFilesShareItem_GetPath(This,ppszPath) \ + ( (This)->lpVtbl -> GetPath(This,ppszPath) ) + +#define IOfflineFilesShareItem_GetParentItem(This,ppItem) \ + ( (This)->lpVtbl -> GetParentItem(This,ppItem) ) + +#define IOfflineFilesShareItem_Refresh(This,dwQueryFlags) \ + ( (This)->lpVtbl -> Refresh(This,dwQueryFlags) ) + +#define IOfflineFilesShareItem_IsMarkedForDeletion(This,pbMarkedForDeletion) \ + ( (This)->lpVtbl -> IsMarkedForDeletion(This,pbMarkedForDeletion) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesShareItem_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesDirectoryItem_INTERFACE_DEFINED__ +#define __IOfflineFilesDirectoryItem_INTERFACE_DEFINED__ + +/* interface IOfflineFilesDirectoryItem */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesDirectoryItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2273597A-A08C-4a00-A37A-C1AE4E9A1CFD") + IOfflineFilesDirectoryItem : public IOfflineFilesItem + { + public: + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesDirectoryItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesDirectoryItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesDirectoryItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesDirectoryItem * This); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetItemType) + HRESULT ( STDMETHODCALLTYPE *GetItemType )( + __RPC__in IOfflineFilesDirectoryItem * This, + /* [out] */ __RPC__out OFFLINEFILES_ITEM_TYPE *pItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetPath) + HRESULT ( STDMETHODCALLTYPE *GetPath )( + __RPC__in IOfflineFilesDirectoryItem * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszPath); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetParentItem) + HRESULT ( STDMETHODCALLTYPE *GetParentItem )( + __RPC__in IOfflineFilesDirectoryItem * This, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, Refresh) + HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IOfflineFilesDirectoryItem * This, + /* [in] */ DWORD dwQueryFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, IsMarkedForDeletion) + HRESULT ( STDMETHODCALLTYPE *IsMarkedForDeletion )( + __RPC__in IOfflineFilesDirectoryItem * This, + /* [out] */ __RPC__out BOOL *pbMarkedForDeletion); + + END_INTERFACE + } IOfflineFilesDirectoryItemVtbl; + + interface IOfflineFilesDirectoryItem + { + CONST_VTBL struct IOfflineFilesDirectoryItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesDirectoryItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesDirectoryItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesDirectoryItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesDirectoryItem_GetItemType(This,pItemType) \ + ( (This)->lpVtbl -> GetItemType(This,pItemType) ) + +#define IOfflineFilesDirectoryItem_GetPath(This,ppszPath) \ + ( (This)->lpVtbl -> GetPath(This,ppszPath) ) + +#define IOfflineFilesDirectoryItem_GetParentItem(This,ppItem) \ + ( (This)->lpVtbl -> GetParentItem(This,ppItem) ) + +#define IOfflineFilesDirectoryItem_Refresh(This,dwQueryFlags) \ + ( (This)->lpVtbl -> Refresh(This,dwQueryFlags) ) + +#define IOfflineFilesDirectoryItem_IsMarkedForDeletion(This,pbMarkedForDeletion) \ + ( (This)->lpVtbl -> IsMarkedForDeletion(This,pbMarkedForDeletion) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesDirectoryItem_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesFileItem_INTERFACE_DEFINED__ +#define __IOfflineFilesFileItem_INTERFACE_DEFINED__ + +/* interface IOfflineFilesFileItem */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesFileItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8dfadead-26c2-4eff-8a72-6b50723d9a00") + IOfflineFilesFileItem : public IOfflineFilesItem + { + public: + virtual HRESULT STDMETHODCALLTYPE IsSparse( + /* [out] */ __RPC__out BOOL *pbIsSparse) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsEncrypted( + /* [out] */ __RPC__out BOOL *pbIsEncrypted) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesFileItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesFileItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesFileItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesFileItem * This); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetItemType) + HRESULT ( STDMETHODCALLTYPE *GetItemType )( + __RPC__in IOfflineFilesFileItem * This, + /* [out] */ __RPC__out OFFLINEFILES_ITEM_TYPE *pItemType); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetPath) + HRESULT ( STDMETHODCALLTYPE *GetPath )( + __RPC__in IOfflineFilesFileItem * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszPath); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, GetParentItem) + HRESULT ( STDMETHODCALLTYPE *GetParentItem )( + __RPC__in IOfflineFilesFileItem * This, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, Refresh) + HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IOfflineFilesFileItem * This, + /* [in] */ DWORD dwQueryFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesItem, IsMarkedForDeletion) + HRESULT ( STDMETHODCALLTYPE *IsMarkedForDeletion )( + __RPC__in IOfflineFilesFileItem * This, + /* [out] */ __RPC__out BOOL *pbMarkedForDeletion); + + DECLSPEC_XFGVIRT(IOfflineFilesFileItem, IsSparse) + HRESULT ( STDMETHODCALLTYPE *IsSparse )( + __RPC__in IOfflineFilesFileItem * This, + /* [out] */ __RPC__out BOOL *pbIsSparse); + + DECLSPEC_XFGVIRT(IOfflineFilesFileItem, IsEncrypted) + HRESULT ( STDMETHODCALLTYPE *IsEncrypted )( + __RPC__in IOfflineFilesFileItem * This, + /* [out] */ __RPC__out BOOL *pbIsEncrypted); + + END_INTERFACE + } IOfflineFilesFileItemVtbl; + + interface IOfflineFilesFileItem + { + CONST_VTBL struct IOfflineFilesFileItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesFileItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesFileItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesFileItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesFileItem_GetItemType(This,pItemType) \ + ( (This)->lpVtbl -> GetItemType(This,pItemType) ) + +#define IOfflineFilesFileItem_GetPath(This,ppszPath) \ + ( (This)->lpVtbl -> GetPath(This,ppszPath) ) + +#define IOfflineFilesFileItem_GetParentItem(This,ppItem) \ + ( (This)->lpVtbl -> GetParentItem(This,ppItem) ) + +#define IOfflineFilesFileItem_Refresh(This,dwQueryFlags) \ + ( (This)->lpVtbl -> Refresh(This,dwQueryFlags) ) + +#define IOfflineFilesFileItem_IsMarkedForDeletion(This,pbMarkedForDeletion) \ + ( (This)->lpVtbl -> IsMarkedForDeletion(This,pbMarkedForDeletion) ) + + +#define IOfflineFilesFileItem_IsSparse(This,pbIsSparse) \ + ( (This)->lpVtbl -> IsSparse(This,pbIsSparse) ) + +#define IOfflineFilesFileItem_IsEncrypted(This,pbIsEncrypted) \ + ( (This)->lpVtbl -> IsEncrypted(This,pbIsEncrypted) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesFileItem_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumOfflineFilesItems_INTERFACE_DEFINED__ +#define __IEnumOfflineFilesItems_INTERFACE_DEFINED__ + +/* interface IEnumOfflineFilesItems */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumOfflineFilesItems; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DA70E815-C361-4407-BC0B-0D7046E5F2CD") + IEnumOfflineFilesItems : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IOfflineFilesItem **rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesItems **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumOfflineFilesItemsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumOfflineFilesItems * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumOfflineFilesItems * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumOfflineFilesItems * This); + + DECLSPEC_XFGVIRT(IEnumOfflineFilesItems, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumOfflineFilesItems * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IOfflineFilesItem **rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumOfflineFilesItems, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumOfflineFilesItems * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumOfflineFilesItems, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumOfflineFilesItems * This); + + DECLSPEC_XFGVIRT(IEnumOfflineFilesItems, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumOfflineFilesItems * This, + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesItems **ppenum); + + END_INTERFACE + } IEnumOfflineFilesItemsVtbl; + + interface IEnumOfflineFilesItems + { + CONST_VTBL struct IEnumOfflineFilesItemsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumOfflineFilesItems_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumOfflineFilesItems_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumOfflineFilesItems_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumOfflineFilesItems_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumOfflineFilesItems_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumOfflineFilesItems_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumOfflineFilesItems_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumOfflineFilesItems_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesItemContainer_INTERFACE_DEFINED__ +#define __IOfflineFilesItemContainer_INTERFACE_DEFINED__ + +/* interface IOfflineFilesItemContainer */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesItemContainer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3836F049-9413-45dd-BF46-B5AAA82DC310") + IOfflineFilesItemContainer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumItems( + /* [in] */ DWORD dwQueryFlags, + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesItems **ppenum) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumItemsEx( + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pIncludeFileFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pIncludeDirFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pExcludeFileFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pExcludeDirFilter, + /* [in] */ DWORD dwEnumFlags, + /* [in] */ DWORD dwQueryFlags, + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesItems **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesItemContainerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesItemContainer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesItemContainer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesItemContainer * This); + + DECLSPEC_XFGVIRT(IOfflineFilesItemContainer, EnumItems) + HRESULT ( STDMETHODCALLTYPE *EnumItems )( + __RPC__in IOfflineFilesItemContainer * This, + /* [in] */ DWORD dwQueryFlags, + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesItems **ppenum); + + DECLSPEC_XFGVIRT(IOfflineFilesItemContainer, EnumItemsEx) + HRESULT ( STDMETHODCALLTYPE *EnumItemsEx )( + __RPC__in IOfflineFilesItemContainer * This, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pIncludeFileFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pIncludeDirFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pExcludeFileFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pExcludeDirFilter, + /* [in] */ DWORD dwEnumFlags, + /* [in] */ DWORD dwQueryFlags, + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesItems **ppenum); + + END_INTERFACE + } IOfflineFilesItemContainerVtbl; + + interface IOfflineFilesItemContainer + { + CONST_VTBL struct IOfflineFilesItemContainerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesItemContainer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesItemContainer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesItemContainer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesItemContainer_EnumItems(This,dwQueryFlags,ppenum) \ + ( (This)->lpVtbl -> EnumItems(This,dwQueryFlags,ppenum) ) + +#define IOfflineFilesItemContainer_EnumItemsEx(This,pIncludeFileFilter,pIncludeDirFilter,pExcludeFileFilter,pExcludeDirFilter,dwEnumFlags,dwQueryFlags,ppenum) \ + ( (This)->lpVtbl -> EnumItemsEx(This,pIncludeFileFilter,pIncludeDirFilter,pExcludeFileFilter,pExcludeDirFilter,dwEnumFlags,dwQueryFlags,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesItemContainer_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesChangeInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesChangeInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesChangeInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesChangeInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A96E6FA4-E0D1-4c29-960B-EE508FE68C72") + IOfflineFilesChangeInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsDirty( + /* [out] */ __RPC__out BOOL *pbDirty) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsDeletedOffline( + /* [out] */ __RPC__out BOOL *pbDeletedOffline) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsCreatedOffline( + /* [out] */ __RPC__out BOOL *pbCreatedOffline) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsLocallyModifiedData( + /* [out] */ __RPC__out BOOL *pbLocallyModifiedData) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsLocallyModifiedAttributes( + /* [out] */ __RPC__out BOOL *pbLocallyModifiedAttributes) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsLocallyModifiedTime( + /* [out] */ __RPC__out BOOL *pbLocallyModifiedTime) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesChangeInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesChangeInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesChangeInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesChangeInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesChangeInfo, IsDirty) + HRESULT ( STDMETHODCALLTYPE *IsDirty )( + __RPC__in IOfflineFilesChangeInfo * This, + /* [out] */ __RPC__out BOOL *pbDirty); + + DECLSPEC_XFGVIRT(IOfflineFilesChangeInfo, IsDeletedOffline) + HRESULT ( STDMETHODCALLTYPE *IsDeletedOffline )( + __RPC__in IOfflineFilesChangeInfo * This, + /* [out] */ __RPC__out BOOL *pbDeletedOffline); + + DECLSPEC_XFGVIRT(IOfflineFilesChangeInfo, IsCreatedOffline) + HRESULT ( STDMETHODCALLTYPE *IsCreatedOffline )( + __RPC__in IOfflineFilesChangeInfo * This, + /* [out] */ __RPC__out BOOL *pbCreatedOffline); + + DECLSPEC_XFGVIRT(IOfflineFilesChangeInfo, IsLocallyModifiedData) + HRESULT ( STDMETHODCALLTYPE *IsLocallyModifiedData )( + __RPC__in IOfflineFilesChangeInfo * This, + /* [out] */ __RPC__out BOOL *pbLocallyModifiedData); + + DECLSPEC_XFGVIRT(IOfflineFilesChangeInfo, IsLocallyModifiedAttributes) + HRESULT ( STDMETHODCALLTYPE *IsLocallyModifiedAttributes )( + __RPC__in IOfflineFilesChangeInfo * This, + /* [out] */ __RPC__out BOOL *pbLocallyModifiedAttributes); + + DECLSPEC_XFGVIRT(IOfflineFilesChangeInfo, IsLocallyModifiedTime) + HRESULT ( STDMETHODCALLTYPE *IsLocallyModifiedTime )( + __RPC__in IOfflineFilesChangeInfo * This, + /* [out] */ __RPC__out BOOL *pbLocallyModifiedTime); + + END_INTERFACE + } IOfflineFilesChangeInfoVtbl; + + interface IOfflineFilesChangeInfo + { + CONST_VTBL struct IOfflineFilesChangeInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesChangeInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesChangeInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesChangeInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesChangeInfo_IsDirty(This,pbDirty) \ + ( (This)->lpVtbl -> IsDirty(This,pbDirty) ) + +#define IOfflineFilesChangeInfo_IsDeletedOffline(This,pbDeletedOffline) \ + ( (This)->lpVtbl -> IsDeletedOffline(This,pbDeletedOffline) ) + +#define IOfflineFilesChangeInfo_IsCreatedOffline(This,pbCreatedOffline) \ + ( (This)->lpVtbl -> IsCreatedOffline(This,pbCreatedOffline) ) + +#define IOfflineFilesChangeInfo_IsLocallyModifiedData(This,pbLocallyModifiedData) \ + ( (This)->lpVtbl -> IsLocallyModifiedData(This,pbLocallyModifiedData) ) + +#define IOfflineFilesChangeInfo_IsLocallyModifiedAttributes(This,pbLocallyModifiedAttributes) \ + ( (This)->lpVtbl -> IsLocallyModifiedAttributes(This,pbLocallyModifiedAttributes) ) + +#define IOfflineFilesChangeInfo_IsLocallyModifiedTime(This,pbLocallyModifiedTime) \ + ( (This)->lpVtbl -> IsLocallyModifiedTime(This,pbLocallyModifiedTime) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesChangeInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesDirtyInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesDirtyInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesDirtyInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesDirtyInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0f50ce33-bac9-4eaa-a11d-da0e527d047d") + IOfflineFilesDirtyInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE LocalDirtyByteCount( + /* [out] */ __RPC__out LARGE_INTEGER *pDirtyByteCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoteDirtyByteCount( + /* [out] */ __RPC__out LARGE_INTEGER *pDirtyByteCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesDirtyInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesDirtyInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesDirtyInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesDirtyInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesDirtyInfo, LocalDirtyByteCount) + HRESULT ( STDMETHODCALLTYPE *LocalDirtyByteCount )( + __RPC__in IOfflineFilesDirtyInfo * This, + /* [out] */ __RPC__out LARGE_INTEGER *pDirtyByteCount); + + DECLSPEC_XFGVIRT(IOfflineFilesDirtyInfo, RemoteDirtyByteCount) + HRESULT ( STDMETHODCALLTYPE *RemoteDirtyByteCount )( + __RPC__in IOfflineFilesDirtyInfo * This, + /* [out] */ __RPC__out LARGE_INTEGER *pDirtyByteCount); + + END_INTERFACE + } IOfflineFilesDirtyInfoVtbl; + + interface IOfflineFilesDirtyInfo + { + CONST_VTBL struct IOfflineFilesDirtyInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesDirtyInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesDirtyInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesDirtyInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesDirtyInfo_LocalDirtyByteCount(This,pDirtyByteCount) \ + ( (This)->lpVtbl -> LocalDirtyByteCount(This,pDirtyByteCount) ) + +#define IOfflineFilesDirtyInfo_RemoteDirtyByteCount(This,pDirtyByteCount) \ + ( (This)->lpVtbl -> RemoteDirtyByteCount(This,pDirtyByteCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesDirtyInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesFileSysInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesFileSysInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesFileSysInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesFileSysInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BC1A163F-7BFD-4d88-9C66-96EA9A6A3D6B") + IOfflineFilesFileSysInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAttributes( + /* [in] */ OFFLINEFILES_ITEM_COPY copy, + /* [out] */ __RPC__out DWORD *pdwAttributes) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTimes( + /* [in] */ OFFLINEFILES_ITEM_COPY copy, + /* [out] */ __RPC__out FILETIME *pftCreationTime, + /* [out] */ __RPC__out FILETIME *pftLastWriteTime, + /* [out] */ __RPC__out FILETIME *pftChangeTime, + /* [out] */ __RPC__out FILETIME *pftLastAccessTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFileSize( + /* [in] */ OFFLINEFILES_ITEM_COPY copy, + /* [out] */ __RPC__out LARGE_INTEGER *pSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesFileSysInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesFileSysInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesFileSysInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesFileSysInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesFileSysInfo, GetAttributes) + HRESULT ( STDMETHODCALLTYPE *GetAttributes )( + __RPC__in IOfflineFilesFileSysInfo * This, + /* [in] */ OFFLINEFILES_ITEM_COPY copy, + /* [out] */ __RPC__out DWORD *pdwAttributes); + + DECLSPEC_XFGVIRT(IOfflineFilesFileSysInfo, GetTimes) + HRESULT ( STDMETHODCALLTYPE *GetTimes )( + __RPC__in IOfflineFilesFileSysInfo * This, + /* [in] */ OFFLINEFILES_ITEM_COPY copy, + /* [out] */ __RPC__out FILETIME *pftCreationTime, + /* [out] */ __RPC__out FILETIME *pftLastWriteTime, + /* [out] */ __RPC__out FILETIME *pftChangeTime, + /* [out] */ __RPC__out FILETIME *pftLastAccessTime); + + DECLSPEC_XFGVIRT(IOfflineFilesFileSysInfo, GetFileSize) + HRESULT ( STDMETHODCALLTYPE *GetFileSize )( + __RPC__in IOfflineFilesFileSysInfo * This, + /* [in] */ OFFLINEFILES_ITEM_COPY copy, + /* [out] */ __RPC__out LARGE_INTEGER *pSize); + + END_INTERFACE + } IOfflineFilesFileSysInfoVtbl; + + interface IOfflineFilesFileSysInfo + { + CONST_VTBL struct IOfflineFilesFileSysInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesFileSysInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesFileSysInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesFileSysInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesFileSysInfo_GetAttributes(This,copy,pdwAttributes) \ + ( (This)->lpVtbl -> GetAttributes(This,copy,pdwAttributes) ) + +#define IOfflineFilesFileSysInfo_GetTimes(This,copy,pftCreationTime,pftLastWriteTime,pftChangeTime,pftLastAccessTime) \ + ( (This)->lpVtbl -> GetTimes(This,copy,pftCreationTime,pftLastWriteTime,pftChangeTime,pftLastAccessTime) ) + +#define IOfflineFilesFileSysInfo_GetFileSize(This,copy,pSize) \ + ( (This)->lpVtbl -> GetFileSize(This,copy,pSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesFileSysInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesPinInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesPinInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesPinInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesPinInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5B2B0655-B3FD-497d-ADEB-BD156BC8355B") + IOfflineFilesPinInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsPinned( + /* [out] */ __RPC__out BOOL *pbPinned) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsPinnedForUser( + /* [out] */ __RPC__out BOOL *pbPinnedForUser, + /* [out] */ __RPC__out BOOL *pbInherit) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsPinnedForUserByPolicy( + /* [out] */ __RPC__out BOOL *pbPinnedForUser, + /* [out] */ __RPC__out BOOL *pbInherit) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsPinnedForComputer( + /* [out] */ __RPC__out BOOL *pbPinnedForComputer, + /* [out] */ __RPC__out BOOL *pbInherit) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsPinnedForFolderRedirection( + /* [out] */ __RPC__out BOOL *pbPinnedForFolderRedirection, + /* [out] */ __RPC__out BOOL *pbInherit) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesPinInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesPinInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesPinInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesPinInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo, IsPinned) + HRESULT ( STDMETHODCALLTYPE *IsPinned )( + __RPC__in IOfflineFilesPinInfo * This, + /* [out] */ __RPC__out BOOL *pbPinned); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo, IsPinnedForUser) + HRESULT ( STDMETHODCALLTYPE *IsPinnedForUser )( + __RPC__in IOfflineFilesPinInfo * This, + /* [out] */ __RPC__out BOOL *pbPinnedForUser, + /* [out] */ __RPC__out BOOL *pbInherit); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo, IsPinnedForUserByPolicy) + HRESULT ( STDMETHODCALLTYPE *IsPinnedForUserByPolicy )( + __RPC__in IOfflineFilesPinInfo * This, + /* [out] */ __RPC__out BOOL *pbPinnedForUser, + /* [out] */ __RPC__out BOOL *pbInherit); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo, IsPinnedForComputer) + HRESULT ( STDMETHODCALLTYPE *IsPinnedForComputer )( + __RPC__in IOfflineFilesPinInfo * This, + /* [out] */ __RPC__out BOOL *pbPinnedForComputer, + /* [out] */ __RPC__out BOOL *pbInherit); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo, IsPinnedForFolderRedirection) + HRESULT ( STDMETHODCALLTYPE *IsPinnedForFolderRedirection )( + __RPC__in IOfflineFilesPinInfo * This, + /* [out] */ __RPC__out BOOL *pbPinnedForFolderRedirection, + /* [out] */ __RPC__out BOOL *pbInherit); + + END_INTERFACE + } IOfflineFilesPinInfoVtbl; + + interface IOfflineFilesPinInfo + { + CONST_VTBL struct IOfflineFilesPinInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesPinInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesPinInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesPinInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesPinInfo_IsPinned(This,pbPinned) \ + ( (This)->lpVtbl -> IsPinned(This,pbPinned) ) + +#define IOfflineFilesPinInfo_IsPinnedForUser(This,pbPinnedForUser,pbInherit) \ + ( (This)->lpVtbl -> IsPinnedForUser(This,pbPinnedForUser,pbInherit) ) + +#define IOfflineFilesPinInfo_IsPinnedForUserByPolicy(This,pbPinnedForUser,pbInherit) \ + ( (This)->lpVtbl -> IsPinnedForUserByPolicy(This,pbPinnedForUser,pbInherit) ) + +#define IOfflineFilesPinInfo_IsPinnedForComputer(This,pbPinnedForComputer,pbInherit) \ + ( (This)->lpVtbl -> IsPinnedForComputer(This,pbPinnedForComputer,pbInherit) ) + +#define IOfflineFilesPinInfo_IsPinnedForFolderRedirection(This,pbPinnedForFolderRedirection,pbInherit) \ + ( (This)->lpVtbl -> IsPinnedForFolderRedirection(This,pbPinnedForFolderRedirection,pbInherit) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesPinInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesPinInfo2_INTERFACE_DEFINED__ +#define __IOfflineFilesPinInfo2_INTERFACE_DEFINED__ + +/* interface IOfflineFilesPinInfo2 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesPinInfo2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("623C58A2-42ED-4ad7-B69A-0F1B30A72D0D") + IOfflineFilesPinInfo2 : public IOfflineFilesPinInfo + { + public: + virtual HRESULT STDMETHODCALLTYPE IsPartlyPinned( + /* [out] */ __RPC__out BOOL *pbPartlyPinned) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesPinInfo2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesPinInfo2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesPinInfo2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesPinInfo2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo, IsPinned) + HRESULT ( STDMETHODCALLTYPE *IsPinned )( + __RPC__in IOfflineFilesPinInfo2 * This, + /* [out] */ __RPC__out BOOL *pbPinned); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo, IsPinnedForUser) + HRESULT ( STDMETHODCALLTYPE *IsPinnedForUser )( + __RPC__in IOfflineFilesPinInfo2 * This, + /* [out] */ __RPC__out BOOL *pbPinnedForUser, + /* [out] */ __RPC__out BOOL *pbInherit); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo, IsPinnedForUserByPolicy) + HRESULT ( STDMETHODCALLTYPE *IsPinnedForUserByPolicy )( + __RPC__in IOfflineFilesPinInfo2 * This, + /* [out] */ __RPC__out BOOL *pbPinnedForUser, + /* [out] */ __RPC__out BOOL *pbInherit); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo, IsPinnedForComputer) + HRESULT ( STDMETHODCALLTYPE *IsPinnedForComputer )( + __RPC__in IOfflineFilesPinInfo2 * This, + /* [out] */ __RPC__out BOOL *pbPinnedForComputer, + /* [out] */ __RPC__out BOOL *pbInherit); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo, IsPinnedForFolderRedirection) + HRESULT ( STDMETHODCALLTYPE *IsPinnedForFolderRedirection )( + __RPC__in IOfflineFilesPinInfo2 * This, + /* [out] */ __RPC__out BOOL *pbPinnedForFolderRedirection, + /* [out] */ __RPC__out BOOL *pbInherit); + + DECLSPEC_XFGVIRT(IOfflineFilesPinInfo2, IsPartlyPinned) + HRESULT ( STDMETHODCALLTYPE *IsPartlyPinned )( + __RPC__in IOfflineFilesPinInfo2 * This, + /* [out] */ __RPC__out BOOL *pbPartlyPinned); + + END_INTERFACE + } IOfflineFilesPinInfo2Vtbl; + + interface IOfflineFilesPinInfo2 + { + CONST_VTBL struct IOfflineFilesPinInfo2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesPinInfo2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesPinInfo2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesPinInfo2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesPinInfo2_IsPinned(This,pbPinned) \ + ( (This)->lpVtbl -> IsPinned(This,pbPinned) ) + +#define IOfflineFilesPinInfo2_IsPinnedForUser(This,pbPinnedForUser,pbInherit) \ + ( (This)->lpVtbl -> IsPinnedForUser(This,pbPinnedForUser,pbInherit) ) + +#define IOfflineFilesPinInfo2_IsPinnedForUserByPolicy(This,pbPinnedForUser,pbInherit) \ + ( (This)->lpVtbl -> IsPinnedForUserByPolicy(This,pbPinnedForUser,pbInherit) ) + +#define IOfflineFilesPinInfo2_IsPinnedForComputer(This,pbPinnedForComputer,pbInherit) \ + ( (This)->lpVtbl -> IsPinnedForComputer(This,pbPinnedForComputer,pbInherit) ) + +#define IOfflineFilesPinInfo2_IsPinnedForFolderRedirection(This,pbPinnedForFolderRedirection,pbInherit) \ + ( (This)->lpVtbl -> IsPinnedForFolderRedirection(This,pbPinnedForFolderRedirection,pbInherit) ) + + +#define IOfflineFilesPinInfo2_IsPartlyPinned(This,pbPartlyPinned) \ + ( (This)->lpVtbl -> IsPartlyPinned(This,pbPartlyPinned) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesPinInfo2_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesTransparentCacheInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesTransparentCacheInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesTransparentCacheInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesTransparentCacheInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bcaf4a01-5b68-4b56-a6a1-8d2786ede8e3") + IOfflineFilesTransparentCacheInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsTransparentlyCached( + /* [out] */ __RPC__out BOOL *pbTransparentlyCached) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesTransparentCacheInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesTransparentCacheInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesTransparentCacheInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesTransparentCacheInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesTransparentCacheInfo, IsTransparentlyCached) + HRESULT ( STDMETHODCALLTYPE *IsTransparentlyCached )( + __RPC__in IOfflineFilesTransparentCacheInfo * This, + /* [out] */ __RPC__out BOOL *pbTransparentlyCached); + + END_INTERFACE + } IOfflineFilesTransparentCacheInfoVtbl; + + interface IOfflineFilesTransparentCacheInfo + { + CONST_VTBL struct IOfflineFilesTransparentCacheInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesTransparentCacheInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesTransparentCacheInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesTransparentCacheInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesTransparentCacheInfo_IsTransparentlyCached(This,pbTransparentlyCached) \ + ( (This)->lpVtbl -> IsTransparentlyCached(This,pbTransparentlyCached) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesTransparentCacheInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesGhostInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesGhostInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesGhostInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesGhostInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2B09D48C-8AB5-464f-A755-A59D92F99429") + IOfflineFilesGhostInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsGhosted( + /* [out] */ __RPC__out BOOL *pbGhosted) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesGhostInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesGhostInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesGhostInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesGhostInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesGhostInfo, IsGhosted) + HRESULT ( STDMETHODCALLTYPE *IsGhosted )( + __RPC__in IOfflineFilesGhostInfo * This, + /* [out] */ __RPC__out BOOL *pbGhosted); + + END_INTERFACE + } IOfflineFilesGhostInfoVtbl; + + interface IOfflineFilesGhostInfo + { + CONST_VTBL struct IOfflineFilesGhostInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesGhostInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesGhostInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesGhostInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesGhostInfo_IsGhosted(This,pbGhosted) \ + ( (This)->lpVtbl -> IsGhosted(This,pbGhosted) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesGhostInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesConnectionInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesConnectionInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesConnectionInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesConnectionInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EFB23A09-A867-4be8-83A6-86969A7D0856") + IOfflineFilesConnectionInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetConnectState( + /* [out] */ __RPC__out OFFLINEFILES_CONNECT_STATE *pConnectState, + /* [out] */ __RPC__out OFFLINEFILES_OFFLINE_REASON *pOfflineReason) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetConnectState( + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [in] */ DWORD dwFlags, + /* [in] */ OFFLINEFILES_CONNECT_STATE ConnectState) = 0; + + virtual HRESULT STDMETHODCALLTYPE TransitionOnline( + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE TransitionOffline( + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [in] */ DWORD dwFlags, + /* [in] */ BOOL bForceOpenFilesClosed, + /* [out] */ __RPC__out BOOL *pbOpenFilesPreventedTransition) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesConnectionInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesConnectionInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesConnectionInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesConnectionInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesConnectionInfo, GetConnectState) + HRESULT ( STDMETHODCALLTYPE *GetConnectState )( + __RPC__in IOfflineFilesConnectionInfo * This, + /* [out] */ __RPC__out OFFLINEFILES_CONNECT_STATE *pConnectState, + /* [out] */ __RPC__out OFFLINEFILES_OFFLINE_REASON *pOfflineReason); + + DECLSPEC_XFGVIRT(IOfflineFilesConnectionInfo, SetConnectState) + HRESULT ( STDMETHODCALLTYPE *SetConnectState )( + __RPC__in IOfflineFilesConnectionInfo * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [in] */ DWORD dwFlags, + /* [in] */ OFFLINEFILES_CONNECT_STATE ConnectState); + + DECLSPEC_XFGVIRT(IOfflineFilesConnectionInfo, TransitionOnline) + HRESULT ( STDMETHODCALLTYPE *TransitionOnline )( + __RPC__in IOfflineFilesConnectionInfo * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IOfflineFilesConnectionInfo, TransitionOffline) + HRESULT ( STDMETHODCALLTYPE *TransitionOffline )( + __RPC__in IOfflineFilesConnectionInfo * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [in] */ DWORD dwFlags, + /* [in] */ BOOL bForceOpenFilesClosed, + /* [out] */ __RPC__out BOOL *pbOpenFilesPreventedTransition); + + END_INTERFACE + } IOfflineFilesConnectionInfoVtbl; + + interface IOfflineFilesConnectionInfo + { + CONST_VTBL struct IOfflineFilesConnectionInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesConnectionInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesConnectionInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesConnectionInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesConnectionInfo_GetConnectState(This,pConnectState,pOfflineReason) \ + ( (This)->lpVtbl -> GetConnectState(This,pConnectState,pOfflineReason) ) + +#define IOfflineFilesConnectionInfo_SetConnectState(This,hwndParent,dwFlags,ConnectState) \ + ( (This)->lpVtbl -> SetConnectState(This,hwndParent,dwFlags,ConnectState) ) + +#define IOfflineFilesConnectionInfo_TransitionOnline(This,hwndParent,dwFlags) \ + ( (This)->lpVtbl -> TransitionOnline(This,hwndParent,dwFlags) ) + +#define IOfflineFilesConnectionInfo_TransitionOffline(This,hwndParent,dwFlags,bForceOpenFilesClosed,pbOpenFilesPreventedTransition) \ + ( (This)->lpVtbl -> TransitionOffline(This,hwndParent,dwFlags,bForceOpenFilesClosed,pbOpenFilesPreventedTransition) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesConnectionInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesShareInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesShareInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesShareInfo */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesShareInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7BCC43E7-31CE-4ca4-8CCD-1CFF2DC494DA") + IOfflineFilesShareInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetShareItem( + /* [out] */ __RPC__deref_out_opt IOfflineFilesShareItem **ppShareItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetShareCachingMode( + /* [out] */ __RPC__out OFFLINEFILES_CACHING_MODE *pCachingMode) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsShareDfsJunction( + /* [out] */ __RPC__out BOOL *pbIsDfsJunction) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesShareInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesShareInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesShareInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesShareInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesShareInfo, GetShareItem) + HRESULT ( STDMETHODCALLTYPE *GetShareItem )( + __RPC__in IOfflineFilesShareInfo * This, + /* [out] */ __RPC__deref_out_opt IOfflineFilesShareItem **ppShareItem); + + DECLSPEC_XFGVIRT(IOfflineFilesShareInfo, GetShareCachingMode) + HRESULT ( STDMETHODCALLTYPE *GetShareCachingMode )( + __RPC__in IOfflineFilesShareInfo * This, + /* [out] */ __RPC__out OFFLINEFILES_CACHING_MODE *pCachingMode); + + DECLSPEC_XFGVIRT(IOfflineFilesShareInfo, IsShareDfsJunction) + HRESULT ( STDMETHODCALLTYPE *IsShareDfsJunction )( + __RPC__in IOfflineFilesShareInfo * This, + /* [out] */ __RPC__out BOOL *pbIsDfsJunction); + + END_INTERFACE + } IOfflineFilesShareInfoVtbl; + + interface IOfflineFilesShareInfo + { + CONST_VTBL struct IOfflineFilesShareInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesShareInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesShareInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesShareInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesShareInfo_GetShareItem(This,ppShareItem) \ + ( (This)->lpVtbl -> GetShareItem(This,ppShareItem) ) + +#define IOfflineFilesShareInfo_GetShareCachingMode(This,pCachingMode) \ + ( (This)->lpVtbl -> GetShareCachingMode(This,pCachingMode) ) + +#define IOfflineFilesShareInfo_IsShareDfsJunction(This,pbIsDfsJunction) \ + ( (This)->lpVtbl -> IsShareDfsJunction(This,pbIsDfsJunction) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesShareInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesSuspend_INTERFACE_DEFINED__ +#define __IOfflineFilesSuspend_INTERFACE_DEFINED__ + +/* interface IOfflineFilesSuspend */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesSuspend; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("62c4560f-bc0b-48ca-ad9d-34cb528d99a9") + IOfflineFilesSuspend : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SuspendRoot( + /* [in] */ BOOL bSuspend) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesSuspendVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesSuspend * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesSuspend * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesSuspend * This); + + DECLSPEC_XFGVIRT(IOfflineFilesSuspend, SuspendRoot) + HRESULT ( STDMETHODCALLTYPE *SuspendRoot )( + __RPC__in IOfflineFilesSuspend * This, + /* [in] */ BOOL bSuspend); + + END_INTERFACE + } IOfflineFilesSuspendVtbl; + + interface IOfflineFilesSuspend + { + CONST_VTBL struct IOfflineFilesSuspendVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesSuspend_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesSuspend_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesSuspend_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesSuspend_SuspendRoot(This,bSuspend) \ + ( (This)->lpVtbl -> SuspendRoot(This,bSuspend) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesSuspend_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesSuspendInfo_INTERFACE_DEFINED__ +#define __IOfflineFilesSuspendInfo_INTERFACE_DEFINED__ + +/* interface IOfflineFilesSuspendInfo */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesSuspendInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a457c25b-4e9c-4b04-85af-8932ccd97889") + IOfflineFilesSuspendInfo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsSuspended( + /* [out] */ __RPC__out BOOL *pbSuspended, + /* [out] */ __RPC__out BOOL *pbSuspendedRoot) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesSuspendInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesSuspendInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesSuspendInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesSuspendInfo * This); + + DECLSPEC_XFGVIRT(IOfflineFilesSuspendInfo, IsSuspended) + HRESULT ( STDMETHODCALLTYPE *IsSuspended )( + __RPC__in IOfflineFilesSuspendInfo * This, + /* [out] */ __RPC__out BOOL *pbSuspended, + /* [out] */ __RPC__out BOOL *pbSuspendedRoot); + + END_INTERFACE + } IOfflineFilesSuspendInfoVtbl; + + interface IOfflineFilesSuspendInfo + { + CONST_VTBL struct IOfflineFilesSuspendInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesSuspendInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesSuspendInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesSuspendInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesSuspendInfo_IsSuspended(This,pbSuspended,pbSuspendedRoot) \ + ( (This)->lpVtbl -> IsSuspended(This,pbSuspended,pbSuspendedRoot) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesSuspendInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesSetting_INTERFACE_DEFINED__ +#define __IOfflineFilesSetting_INTERFACE_DEFINED__ + +/* interface IOfflineFilesSetting */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesSetting; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D871D3F7-F613-48a1-827E-7A34E560FFF6") + IOfflineFilesSetting : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValueType( + /* [out] */ __RPC__out OFFLINEFILES_SETTING_VALUE_TYPE *pType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPreference( + /* [out] */ __RPC__out VARIANT *pvarValue, + /* [in] */ DWORD dwScope) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPreferenceScope( + /* [out] */ __RPC__out DWORD *pdwScope) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPreference( + /* [in] */ __RPC__in const VARIANT *pvarValue, + /* [in] */ DWORD dwScope) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeletePreference( + /* [in] */ DWORD dwScope) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPolicy( + /* [out] */ __RPC__out VARIANT *pvarValue, + /* [in] */ DWORD dwScope) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPolicyScope( + /* [out] */ __RPC__out DWORD *pdwScope) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [out] */ __RPC__out VARIANT *pvarValue, + /* [out] */ __RPC__out BOOL *pbSetByPolicy) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesSettingVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesSetting * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesSetting * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesSetting * This); + + DECLSPEC_XFGVIRT(IOfflineFilesSetting, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IOfflineFilesSetting * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszName); + + DECLSPEC_XFGVIRT(IOfflineFilesSetting, GetValueType) + HRESULT ( STDMETHODCALLTYPE *GetValueType )( + __RPC__in IOfflineFilesSetting * This, + /* [out] */ __RPC__out OFFLINEFILES_SETTING_VALUE_TYPE *pType); + + DECLSPEC_XFGVIRT(IOfflineFilesSetting, GetPreference) + HRESULT ( STDMETHODCALLTYPE *GetPreference )( + __RPC__in IOfflineFilesSetting * This, + /* [out] */ __RPC__out VARIANT *pvarValue, + /* [in] */ DWORD dwScope); + + DECLSPEC_XFGVIRT(IOfflineFilesSetting, GetPreferenceScope) + HRESULT ( STDMETHODCALLTYPE *GetPreferenceScope )( + __RPC__in IOfflineFilesSetting * This, + /* [out] */ __RPC__out DWORD *pdwScope); + + DECLSPEC_XFGVIRT(IOfflineFilesSetting, SetPreference) + HRESULT ( STDMETHODCALLTYPE *SetPreference )( + __RPC__in IOfflineFilesSetting * This, + /* [in] */ __RPC__in const VARIANT *pvarValue, + /* [in] */ DWORD dwScope); + + DECLSPEC_XFGVIRT(IOfflineFilesSetting, DeletePreference) + HRESULT ( STDMETHODCALLTYPE *DeletePreference )( + __RPC__in IOfflineFilesSetting * This, + /* [in] */ DWORD dwScope); + + DECLSPEC_XFGVIRT(IOfflineFilesSetting, GetPolicy) + HRESULT ( STDMETHODCALLTYPE *GetPolicy )( + __RPC__in IOfflineFilesSetting * This, + /* [out] */ __RPC__out VARIANT *pvarValue, + /* [in] */ DWORD dwScope); + + DECLSPEC_XFGVIRT(IOfflineFilesSetting, GetPolicyScope) + HRESULT ( STDMETHODCALLTYPE *GetPolicyScope )( + __RPC__in IOfflineFilesSetting * This, + /* [out] */ __RPC__out DWORD *pdwScope); + + DECLSPEC_XFGVIRT(IOfflineFilesSetting, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in IOfflineFilesSetting * This, + /* [out] */ __RPC__out VARIANT *pvarValue, + /* [out] */ __RPC__out BOOL *pbSetByPolicy); + + END_INTERFACE + } IOfflineFilesSettingVtbl; + + interface IOfflineFilesSetting + { + CONST_VTBL struct IOfflineFilesSettingVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesSetting_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesSetting_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesSetting_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesSetting_GetName(This,ppszName) \ + ( (This)->lpVtbl -> GetName(This,ppszName) ) + +#define IOfflineFilesSetting_GetValueType(This,pType) \ + ( (This)->lpVtbl -> GetValueType(This,pType) ) + +#define IOfflineFilesSetting_GetPreference(This,pvarValue,dwScope) \ + ( (This)->lpVtbl -> GetPreference(This,pvarValue,dwScope) ) + +#define IOfflineFilesSetting_GetPreferenceScope(This,pdwScope) \ + ( (This)->lpVtbl -> GetPreferenceScope(This,pdwScope) ) + +#define IOfflineFilesSetting_SetPreference(This,pvarValue,dwScope) \ + ( (This)->lpVtbl -> SetPreference(This,pvarValue,dwScope) ) + +#define IOfflineFilesSetting_DeletePreference(This,dwScope) \ + ( (This)->lpVtbl -> DeletePreference(This,dwScope) ) + +#define IOfflineFilesSetting_GetPolicy(This,pvarValue,dwScope) \ + ( (This)->lpVtbl -> GetPolicy(This,pvarValue,dwScope) ) + +#define IOfflineFilesSetting_GetPolicyScope(This,pdwScope) \ + ( (This)->lpVtbl -> GetPolicyScope(This,pdwScope) ) + +#define IOfflineFilesSetting_GetValue(This,pvarValue,pbSetByPolicy) \ + ( (This)->lpVtbl -> GetValue(This,pvarValue,pbSetByPolicy) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesSetting_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumOfflineFilesSettings_INTERFACE_DEFINED__ +#define __IEnumOfflineFilesSettings_INTERFACE_DEFINED__ + +/* interface IEnumOfflineFilesSettings */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumOfflineFilesSettings; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("729680C4-1A38-47bc-9E5C-02C51562AC30") + IEnumOfflineFilesSettings : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IOfflineFilesSetting **rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesSettings **ppenum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumOfflineFilesSettingsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumOfflineFilesSettings * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumOfflineFilesSettings * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumOfflineFilesSettings * This); + + DECLSPEC_XFGVIRT(IEnumOfflineFilesSettings, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumOfflineFilesSettings * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) IOfflineFilesSetting **rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumOfflineFilesSettings, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumOfflineFilesSettings * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumOfflineFilesSettings, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumOfflineFilesSettings * This); + + DECLSPEC_XFGVIRT(IEnumOfflineFilesSettings, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumOfflineFilesSettings * This, + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesSettings **ppenum); + + END_INTERFACE + } IEnumOfflineFilesSettingsVtbl; + + interface IEnumOfflineFilesSettings + { + CONST_VTBL struct IEnumOfflineFilesSettingsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumOfflineFilesSettings_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumOfflineFilesSettings_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumOfflineFilesSettings_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumOfflineFilesSettings_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumOfflineFilesSettings_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumOfflineFilesSettings_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumOfflineFilesSettings_Clone(This,ppenum) \ + ( (This)->lpVtbl -> Clone(This,ppenum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumOfflineFilesSettings_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesCache_INTERFACE_DEFINED__ +#define __IOfflineFilesCache_INTERFACE_DEFINED__ + +/* interface IOfflineFilesCache */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesCache; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("855d6203-7914-48b9-8d40-4c56f5acffc5") + IOfflineFilesCache : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Synchronize( + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ BOOL bAsync, + /* [in] */ DWORD dwSyncControl, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncConflictHandler *pISyncConflictHandler, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress, + /* [unique][in] */ __RPC__in_opt GUID *pSyncId) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteItems( + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ DWORD dwFlags, + /* [in] */ BOOL bAsync, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSimpleProgress *pIProgress) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteItemsForUser( + /* [string][in] */ __RPC__in_string LPCWSTR pszUser, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ DWORD dwFlags, + /* [in] */ BOOL bAsync, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSimpleProgress *pIProgress) = 0; + + virtual HRESULT STDMETHODCALLTYPE Pin( + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ BOOL bDeep, + /* [in] */ BOOL bAsync, + /* [in] */ DWORD dwPinControlFlags, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress) = 0; + + virtual HRESULT STDMETHODCALLTYPE Unpin( + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ BOOL bDeep, + /* [in] */ BOOL bAsync, + /* [in] */ DWORD dwPinControlFlags, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEncryptionStatus( + /* [out] */ __RPC__out BOOL *pbEncrypted, + /* [out] */ __RPC__out BOOL *pbPartial) = 0; + + virtual HRESULT STDMETHODCALLTYPE Encrypt( + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [in] */ BOOL bEncrypt, + /* [in] */ DWORD dwEncryptionControlFlags, + /* [in] */ BOOL bAsync, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindItem( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ DWORD dwQueryFlags, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindItemEx( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pIncludeFileFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pIncludeDirFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pExcludeFileFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pExcludeDirFilter, + /* [in] */ DWORD dwQueryFlags, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE RenameItem( + /* [string][in] */ __RPC__in_string LPCWSTR pszPathOriginal, + /* [string][in] */ __RPC__in_string LPCWSTR pszPathNew, + /* [in] */ BOOL bReplaceIfExists) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLocation( + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDiskSpaceInformation( + /* [out] */ __RPC__out ULONGLONG *pcbVolumeTotal, + /* [out] */ __RPC__out ULONGLONG *pcbLimit, + /* [out] */ __RPC__out ULONGLONG *pcbUsed, + /* [out] */ __RPC__out ULONGLONG *pcbUnpinnedLimit, + /* [out] */ __RPC__out ULONGLONG *pcbUnpinnedUsed) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDiskSpaceLimits( + /* [in] */ ULONGLONG cbLimit, + /* [in] */ ULONGLONG cbUnpinnedLimit) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessAdminPinPolicy( + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pPinProgress, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pUnpinProgress) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSettingObject( + /* [string][in] */ __RPC__in_string LPCWSTR pszSettingName, + /* [out] */ __RPC__deref_out_opt IOfflineFilesSetting **ppSetting) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumSettingObjects( + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesSettings **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsPathCacheable( + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [out] */ __RPC__out BOOL *pbCacheable, + /* [out] */ __RPC__out OFFLINEFILES_CACHING_MODE *pShareCachingMode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesCacheVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesCache * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesCache * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesCache * This); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, Synchronize) + HRESULT ( STDMETHODCALLTYPE *Synchronize )( + __RPC__in IOfflineFilesCache * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ BOOL bAsync, + /* [in] */ DWORD dwSyncControl, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncConflictHandler *pISyncConflictHandler, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress, + /* [unique][in] */ __RPC__in_opt GUID *pSyncId); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, DeleteItems) + HRESULT ( STDMETHODCALLTYPE *DeleteItems )( + __RPC__in IOfflineFilesCache * This, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ DWORD dwFlags, + /* [in] */ BOOL bAsync, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSimpleProgress *pIProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, DeleteItemsForUser) + HRESULT ( STDMETHODCALLTYPE *DeleteItemsForUser )( + __RPC__in IOfflineFilesCache * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszUser, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ DWORD dwFlags, + /* [in] */ BOOL bAsync, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSimpleProgress *pIProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, Pin) + HRESULT ( STDMETHODCALLTYPE *Pin )( + __RPC__in IOfflineFilesCache * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ BOOL bDeep, + /* [in] */ BOOL bAsync, + /* [in] */ DWORD dwPinControlFlags, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, Unpin) + HRESULT ( STDMETHODCALLTYPE *Unpin )( + __RPC__in IOfflineFilesCache * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ BOOL bDeep, + /* [in] */ BOOL bAsync, + /* [in] */ DWORD dwPinControlFlags, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, GetEncryptionStatus) + HRESULT ( STDMETHODCALLTYPE *GetEncryptionStatus )( + __RPC__in IOfflineFilesCache * This, + /* [out] */ __RPC__out BOOL *pbEncrypted, + /* [out] */ __RPC__out BOOL *pbPartial); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, Encrypt) + HRESULT ( STDMETHODCALLTYPE *Encrypt )( + __RPC__in IOfflineFilesCache * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [in] */ BOOL bEncrypt, + /* [in] */ DWORD dwEncryptionControlFlags, + /* [in] */ BOOL bAsync, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, FindItem) + HRESULT ( STDMETHODCALLTYPE *FindItem )( + __RPC__in IOfflineFilesCache * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ DWORD dwQueryFlags, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, FindItemEx) + HRESULT ( STDMETHODCALLTYPE *FindItemEx )( + __RPC__in IOfflineFilesCache * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pIncludeFileFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pIncludeDirFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pExcludeFileFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pExcludeDirFilter, + /* [in] */ DWORD dwQueryFlags, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, RenameItem) + HRESULT ( STDMETHODCALLTYPE *RenameItem )( + __RPC__in IOfflineFilesCache * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPathOriginal, + /* [string][in] */ __RPC__in_string LPCWSTR pszPathNew, + /* [in] */ BOOL bReplaceIfExists); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, GetLocation) + HRESULT ( STDMETHODCALLTYPE *GetLocation )( + __RPC__in IOfflineFilesCache * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszPath); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, GetDiskSpaceInformation) + HRESULT ( STDMETHODCALLTYPE *GetDiskSpaceInformation )( + __RPC__in IOfflineFilesCache * This, + /* [out] */ __RPC__out ULONGLONG *pcbVolumeTotal, + /* [out] */ __RPC__out ULONGLONG *pcbLimit, + /* [out] */ __RPC__out ULONGLONG *pcbUsed, + /* [out] */ __RPC__out ULONGLONG *pcbUnpinnedLimit, + /* [out] */ __RPC__out ULONGLONG *pcbUnpinnedUsed); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, SetDiskSpaceLimits) + HRESULT ( STDMETHODCALLTYPE *SetDiskSpaceLimits )( + __RPC__in IOfflineFilesCache * This, + /* [in] */ ULONGLONG cbLimit, + /* [in] */ ULONGLONG cbUnpinnedLimit); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, ProcessAdminPinPolicy) + HRESULT ( STDMETHODCALLTYPE *ProcessAdminPinPolicy )( + __RPC__in IOfflineFilesCache * This, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pPinProgress, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pUnpinProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, GetSettingObject) + HRESULT ( STDMETHODCALLTYPE *GetSettingObject )( + __RPC__in IOfflineFilesCache * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszSettingName, + /* [out] */ __RPC__deref_out_opt IOfflineFilesSetting **ppSetting); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, EnumSettingObjects) + HRESULT ( STDMETHODCALLTYPE *EnumSettingObjects )( + __RPC__in IOfflineFilesCache * This, + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesSettings **ppEnum); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, IsPathCacheable) + HRESULT ( STDMETHODCALLTYPE *IsPathCacheable )( + __RPC__in IOfflineFilesCache * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [out] */ __RPC__out BOOL *pbCacheable, + /* [out] */ __RPC__out OFFLINEFILES_CACHING_MODE *pShareCachingMode); + + END_INTERFACE + } IOfflineFilesCacheVtbl; + + interface IOfflineFilesCache + { + CONST_VTBL struct IOfflineFilesCacheVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesCache_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesCache_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesCache_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesCache_Synchronize(This,hwndParent,rgpszPaths,cPaths,bAsync,dwSyncControl,pISyncConflictHandler,pIProgress,pSyncId) \ + ( (This)->lpVtbl -> Synchronize(This,hwndParent,rgpszPaths,cPaths,bAsync,dwSyncControl,pISyncConflictHandler,pIProgress,pSyncId) ) + +#define IOfflineFilesCache_DeleteItems(This,rgpszPaths,cPaths,dwFlags,bAsync,pIProgress) \ + ( (This)->lpVtbl -> DeleteItems(This,rgpszPaths,cPaths,dwFlags,bAsync,pIProgress) ) + +#define IOfflineFilesCache_DeleteItemsForUser(This,pszUser,rgpszPaths,cPaths,dwFlags,bAsync,pIProgress) \ + ( (This)->lpVtbl -> DeleteItemsForUser(This,pszUser,rgpszPaths,cPaths,dwFlags,bAsync,pIProgress) ) + +#define IOfflineFilesCache_Pin(This,hwndParent,rgpszPaths,cPaths,bDeep,bAsync,dwPinControlFlags,pIProgress) \ + ( (This)->lpVtbl -> Pin(This,hwndParent,rgpszPaths,cPaths,bDeep,bAsync,dwPinControlFlags,pIProgress) ) + +#define IOfflineFilesCache_Unpin(This,hwndParent,rgpszPaths,cPaths,bDeep,bAsync,dwPinControlFlags,pIProgress) \ + ( (This)->lpVtbl -> Unpin(This,hwndParent,rgpszPaths,cPaths,bDeep,bAsync,dwPinControlFlags,pIProgress) ) + +#define IOfflineFilesCache_GetEncryptionStatus(This,pbEncrypted,pbPartial) \ + ( (This)->lpVtbl -> GetEncryptionStatus(This,pbEncrypted,pbPartial) ) + +#define IOfflineFilesCache_Encrypt(This,hwndParent,bEncrypt,dwEncryptionControlFlags,bAsync,pIProgress) \ + ( (This)->lpVtbl -> Encrypt(This,hwndParent,bEncrypt,dwEncryptionControlFlags,bAsync,pIProgress) ) + +#define IOfflineFilesCache_FindItem(This,pszPath,dwQueryFlags,ppItem) \ + ( (This)->lpVtbl -> FindItem(This,pszPath,dwQueryFlags,ppItem) ) + +#define IOfflineFilesCache_FindItemEx(This,pszPath,pIncludeFileFilter,pIncludeDirFilter,pExcludeFileFilter,pExcludeDirFilter,dwQueryFlags,ppItem) \ + ( (This)->lpVtbl -> FindItemEx(This,pszPath,pIncludeFileFilter,pIncludeDirFilter,pExcludeFileFilter,pExcludeDirFilter,dwQueryFlags,ppItem) ) + +#define IOfflineFilesCache_RenameItem(This,pszPathOriginal,pszPathNew,bReplaceIfExists) \ + ( (This)->lpVtbl -> RenameItem(This,pszPathOriginal,pszPathNew,bReplaceIfExists) ) + +#define IOfflineFilesCache_GetLocation(This,ppszPath) \ + ( (This)->lpVtbl -> GetLocation(This,ppszPath) ) + +#define IOfflineFilesCache_GetDiskSpaceInformation(This,pcbVolumeTotal,pcbLimit,pcbUsed,pcbUnpinnedLimit,pcbUnpinnedUsed) \ + ( (This)->lpVtbl -> GetDiskSpaceInformation(This,pcbVolumeTotal,pcbLimit,pcbUsed,pcbUnpinnedLimit,pcbUnpinnedUsed) ) + +#define IOfflineFilesCache_SetDiskSpaceLimits(This,cbLimit,cbUnpinnedLimit) \ + ( (This)->lpVtbl -> SetDiskSpaceLimits(This,cbLimit,cbUnpinnedLimit) ) + +#define IOfflineFilesCache_ProcessAdminPinPolicy(This,pPinProgress,pUnpinProgress) \ + ( (This)->lpVtbl -> ProcessAdminPinPolicy(This,pPinProgress,pUnpinProgress) ) + +#define IOfflineFilesCache_GetSettingObject(This,pszSettingName,ppSetting) \ + ( (This)->lpVtbl -> GetSettingObject(This,pszSettingName,ppSetting) ) + +#define IOfflineFilesCache_EnumSettingObjects(This,ppEnum) \ + ( (This)->lpVtbl -> EnumSettingObjects(This,ppEnum) ) + +#define IOfflineFilesCache_IsPathCacheable(This,pszPath,pbCacheable,pShareCachingMode) \ + ( (This)->lpVtbl -> IsPathCacheable(This,pszPath,pbCacheable,pShareCachingMode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesCache_INTERFACE_DEFINED__ */ + + +#ifndef __IOfflineFilesCache2_INTERFACE_DEFINED__ +#define __IOfflineFilesCache2_INTERFACE_DEFINED__ + +/* interface IOfflineFilesCache2 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IOfflineFilesCache2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8c075039-1551-4ed9-8781-56705c04d3c0") + IOfflineFilesCache2 : public IOfflineFilesCache + { + public: + virtual HRESULT STDMETHODCALLTYPE RenameItemEx( + /* [string][in] */ __RPC__in_string LPCWSTR pszPathOriginal, + /* [string][in] */ __RPC__in_string LPCWSTR pszPathNew, + /* [in] */ BOOL bReplaceIfExists) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IOfflineFilesCache2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IOfflineFilesCache2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IOfflineFilesCache2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IOfflineFilesCache2 * This); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, Synchronize) + HRESULT ( STDMETHODCALLTYPE *Synchronize )( + __RPC__in IOfflineFilesCache2 * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ BOOL bAsync, + /* [in] */ DWORD dwSyncControl, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncConflictHandler *pISyncConflictHandler, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress, + /* [unique][in] */ __RPC__in_opt GUID *pSyncId); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, DeleteItems) + HRESULT ( STDMETHODCALLTYPE *DeleteItems )( + __RPC__in IOfflineFilesCache2 * This, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ DWORD dwFlags, + /* [in] */ BOOL bAsync, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSimpleProgress *pIProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, DeleteItemsForUser) + HRESULT ( STDMETHODCALLTYPE *DeleteItemsForUser )( + __RPC__in IOfflineFilesCache2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszUser, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ DWORD dwFlags, + /* [in] */ BOOL bAsync, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSimpleProgress *pIProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, Pin) + HRESULT ( STDMETHODCALLTYPE *Pin )( + __RPC__in IOfflineFilesCache2 * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ BOOL bDeep, + /* [in] */ BOOL bAsync, + /* [in] */ DWORD dwPinControlFlags, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, Unpin) + HRESULT ( STDMETHODCALLTYPE *Unpin )( + __RPC__in IOfflineFilesCache2 * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [string][size_is][in] */ __RPC__in_ecount_full(cPaths) LPCWSTR *rgpszPaths, + /* [in] */ ULONG cPaths, + /* [in] */ BOOL bDeep, + /* [in] */ BOOL bAsync, + /* [in] */ DWORD dwPinControlFlags, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, GetEncryptionStatus) + HRESULT ( STDMETHODCALLTYPE *GetEncryptionStatus )( + __RPC__in IOfflineFilesCache2 * This, + /* [out] */ __RPC__out BOOL *pbEncrypted, + /* [out] */ __RPC__out BOOL *pbPartial); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, Encrypt) + HRESULT ( STDMETHODCALLTYPE *Encrypt )( + __RPC__in IOfflineFilesCache2 * This, + /* [unique][in] */ __RPC__in_opt HWND hwndParent, + /* [in] */ BOOL bEncrypt, + /* [in] */ DWORD dwEncryptionControlFlags, + /* [in] */ BOOL bAsync, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pIProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, FindItem) + HRESULT ( STDMETHODCALLTYPE *FindItem )( + __RPC__in IOfflineFilesCache2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [in] */ DWORD dwQueryFlags, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, FindItemEx) + HRESULT ( STDMETHODCALLTYPE *FindItemEx )( + __RPC__in IOfflineFilesCache2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pIncludeFileFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pIncludeDirFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pExcludeFileFilter, + /* [unique][in] */ __RPC__in_opt IOfflineFilesItemFilter *pExcludeDirFilter, + /* [in] */ DWORD dwQueryFlags, + /* [out] */ __RPC__deref_out_opt IOfflineFilesItem **ppItem); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, RenameItem) + HRESULT ( STDMETHODCALLTYPE *RenameItem )( + __RPC__in IOfflineFilesCache2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPathOriginal, + /* [string][in] */ __RPC__in_string LPCWSTR pszPathNew, + /* [in] */ BOOL bReplaceIfExists); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, GetLocation) + HRESULT ( STDMETHODCALLTYPE *GetLocation )( + __RPC__in IOfflineFilesCache2 * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszPath); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, GetDiskSpaceInformation) + HRESULT ( STDMETHODCALLTYPE *GetDiskSpaceInformation )( + __RPC__in IOfflineFilesCache2 * This, + /* [out] */ __RPC__out ULONGLONG *pcbVolumeTotal, + /* [out] */ __RPC__out ULONGLONG *pcbLimit, + /* [out] */ __RPC__out ULONGLONG *pcbUsed, + /* [out] */ __RPC__out ULONGLONG *pcbUnpinnedLimit, + /* [out] */ __RPC__out ULONGLONG *pcbUnpinnedUsed); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, SetDiskSpaceLimits) + HRESULT ( STDMETHODCALLTYPE *SetDiskSpaceLimits )( + __RPC__in IOfflineFilesCache2 * This, + /* [in] */ ULONGLONG cbLimit, + /* [in] */ ULONGLONG cbUnpinnedLimit); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, ProcessAdminPinPolicy) + HRESULT ( STDMETHODCALLTYPE *ProcessAdminPinPolicy )( + __RPC__in IOfflineFilesCache2 * This, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pPinProgress, + /* [unique][in] */ __RPC__in_opt IOfflineFilesSyncProgress *pUnpinProgress); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, GetSettingObject) + HRESULT ( STDMETHODCALLTYPE *GetSettingObject )( + __RPC__in IOfflineFilesCache2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszSettingName, + /* [out] */ __RPC__deref_out_opt IOfflineFilesSetting **ppSetting); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, EnumSettingObjects) + HRESULT ( STDMETHODCALLTYPE *EnumSettingObjects )( + __RPC__in IOfflineFilesCache2 * This, + /* [out] */ __RPC__deref_out_opt IEnumOfflineFilesSettings **ppEnum); + + DECLSPEC_XFGVIRT(IOfflineFilesCache, IsPathCacheable) + HRESULT ( STDMETHODCALLTYPE *IsPathCacheable )( + __RPC__in IOfflineFilesCache2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPath, + /* [out] */ __RPC__out BOOL *pbCacheable, + /* [out] */ __RPC__out OFFLINEFILES_CACHING_MODE *pShareCachingMode); + + DECLSPEC_XFGVIRT(IOfflineFilesCache2, RenameItemEx) + HRESULT ( STDMETHODCALLTYPE *RenameItemEx )( + __RPC__in IOfflineFilesCache2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszPathOriginal, + /* [string][in] */ __RPC__in_string LPCWSTR pszPathNew, + /* [in] */ BOOL bReplaceIfExists); + + END_INTERFACE + } IOfflineFilesCache2Vtbl; + + interface IOfflineFilesCache2 + { + CONST_VTBL struct IOfflineFilesCache2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IOfflineFilesCache2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IOfflineFilesCache2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IOfflineFilesCache2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IOfflineFilesCache2_Synchronize(This,hwndParent,rgpszPaths,cPaths,bAsync,dwSyncControl,pISyncConflictHandler,pIProgress,pSyncId) \ + ( (This)->lpVtbl -> Synchronize(This,hwndParent,rgpszPaths,cPaths,bAsync,dwSyncControl,pISyncConflictHandler,pIProgress,pSyncId) ) + +#define IOfflineFilesCache2_DeleteItems(This,rgpszPaths,cPaths,dwFlags,bAsync,pIProgress) \ + ( (This)->lpVtbl -> DeleteItems(This,rgpszPaths,cPaths,dwFlags,bAsync,pIProgress) ) + +#define IOfflineFilesCache2_DeleteItemsForUser(This,pszUser,rgpszPaths,cPaths,dwFlags,bAsync,pIProgress) \ + ( (This)->lpVtbl -> DeleteItemsForUser(This,pszUser,rgpszPaths,cPaths,dwFlags,bAsync,pIProgress) ) + +#define IOfflineFilesCache2_Pin(This,hwndParent,rgpszPaths,cPaths,bDeep,bAsync,dwPinControlFlags,pIProgress) \ + ( (This)->lpVtbl -> Pin(This,hwndParent,rgpszPaths,cPaths,bDeep,bAsync,dwPinControlFlags,pIProgress) ) + +#define IOfflineFilesCache2_Unpin(This,hwndParent,rgpszPaths,cPaths,bDeep,bAsync,dwPinControlFlags,pIProgress) \ + ( (This)->lpVtbl -> Unpin(This,hwndParent,rgpszPaths,cPaths,bDeep,bAsync,dwPinControlFlags,pIProgress) ) + +#define IOfflineFilesCache2_GetEncryptionStatus(This,pbEncrypted,pbPartial) \ + ( (This)->lpVtbl -> GetEncryptionStatus(This,pbEncrypted,pbPartial) ) + +#define IOfflineFilesCache2_Encrypt(This,hwndParent,bEncrypt,dwEncryptionControlFlags,bAsync,pIProgress) \ + ( (This)->lpVtbl -> Encrypt(This,hwndParent,bEncrypt,dwEncryptionControlFlags,bAsync,pIProgress) ) + +#define IOfflineFilesCache2_FindItem(This,pszPath,dwQueryFlags,ppItem) \ + ( (This)->lpVtbl -> FindItem(This,pszPath,dwQueryFlags,ppItem) ) + +#define IOfflineFilesCache2_FindItemEx(This,pszPath,pIncludeFileFilter,pIncludeDirFilter,pExcludeFileFilter,pExcludeDirFilter,dwQueryFlags,ppItem) \ + ( (This)->lpVtbl -> FindItemEx(This,pszPath,pIncludeFileFilter,pIncludeDirFilter,pExcludeFileFilter,pExcludeDirFilter,dwQueryFlags,ppItem) ) + +#define IOfflineFilesCache2_RenameItem(This,pszPathOriginal,pszPathNew,bReplaceIfExists) \ + ( (This)->lpVtbl -> RenameItem(This,pszPathOriginal,pszPathNew,bReplaceIfExists) ) + +#define IOfflineFilesCache2_GetLocation(This,ppszPath) \ + ( (This)->lpVtbl -> GetLocation(This,ppszPath) ) + +#define IOfflineFilesCache2_GetDiskSpaceInformation(This,pcbVolumeTotal,pcbLimit,pcbUsed,pcbUnpinnedLimit,pcbUnpinnedUsed) \ + ( (This)->lpVtbl -> GetDiskSpaceInformation(This,pcbVolumeTotal,pcbLimit,pcbUsed,pcbUnpinnedLimit,pcbUnpinnedUsed) ) + +#define IOfflineFilesCache2_SetDiskSpaceLimits(This,cbLimit,cbUnpinnedLimit) \ + ( (This)->lpVtbl -> SetDiskSpaceLimits(This,cbLimit,cbUnpinnedLimit) ) + +#define IOfflineFilesCache2_ProcessAdminPinPolicy(This,pPinProgress,pUnpinProgress) \ + ( (This)->lpVtbl -> ProcessAdminPinPolicy(This,pPinProgress,pUnpinProgress) ) + +#define IOfflineFilesCache2_GetSettingObject(This,pszSettingName,ppSetting) \ + ( (This)->lpVtbl -> GetSettingObject(This,pszSettingName,ppSetting) ) + +#define IOfflineFilesCache2_EnumSettingObjects(This,ppEnum) \ + ( (This)->lpVtbl -> EnumSettingObjects(This,ppEnum) ) + +#define IOfflineFilesCache2_IsPathCacheable(This,pszPath,pbCacheable,pShareCachingMode) \ + ( (This)->lpVtbl -> IsPathCacheable(This,pszPath,pbCacheable,pShareCachingMode) ) + + +#define IOfflineFilesCache2_RenameItemEx(This,pszPathOriginal,pszPathNew,bReplaceIfExists) \ + ( (This)->lpVtbl -> RenameItemEx(This,pszPathOriginal,pszPathNew,bReplaceIfExists) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IOfflineFilesCache2_INTERFACE_DEFINED__ */ + + + +#ifndef __OfflineFilesObjects_LIBRARY_DEFINED__ +#define __OfflineFilesObjects_LIBRARY_DEFINED__ + +/* library OfflineFilesObjects */ +/* [version][lcid][helpstring][uuid] */ + + +EXTERN_C const IID LIBID_OfflineFilesObjects; + +EXTERN_C const CLSID CLSID_OfflineFilesSetting; + +#ifdef __cplusplus + +class DECLSPEC_UUID("FD3659E9-A920-4123-AD64-7FC76C7AACDF") +OfflineFilesSetting; +#endif + +EXTERN_C const CLSID CLSID_OfflineFilesCache; + +#ifdef __cplusplus + +class DECLSPEC_UUID("48C6BE7C-3871-43cc-B46F-1449A1BB2FF3") +OfflineFilesCache; +#endif +#endif /* __OfflineFilesObjects_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_cscobj_0000_0036 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_cscobj_0000_0036_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_cscobj_0000_0036_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cscsearchapiif.hxx b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cscsearchapiif.hxx new file mode 100644 index 0000000000000000000000000000000000000000..72defccffa3e00b4e754b92fe231bbcbd0f85725 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cscsearchapiif.hxx @@ -0,0 +1,87 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + cscsearchapiif.hxx + +Abstract: + + Public Interface definition for Offline Files Search Assistance. + +--*/ + +#ifndef _INC_CSCSEARCHAPIIF_HXX +#define _INC_CSCSEARCHAPIIF_HXX + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +class CCscSearchApiInterface +{ +public: + + // + // Memory Management + // + + virtual + LONG + AddRef( + ) = 0; + + virtual + LONG + DelRef( + ) = 0; + + // + // CSC Search API Methods + // + + virtual + DWORD + OfflineFilesOpenIndexingHandle( + _Out_ PHANDLE Handle, + _In_ PCWSTR FileName, + _In_ DWORD DesiredAccess, + _In_ DWORD ShareMode, + _In_opt_ PBOOL IsDirectoryOrFile + ) = 0; + +}; + + +#define _CSC_SEARCHAPI_INTERFACE_VERSION 0x1 +#define _CSC_SEARCHAPI_INTERFACE_COOKIE 0x8fb92809 + +#define CSC_SEARCHAPI_INTERFACE_VERSION ( ((_CSC_SEARCHAPI_INTERFACE_VERSION) << 16) | (sizeof(CCscSearchApiInterface)) ) +#define CSC_SEARCHAPI_INTERFACE_COOKIE (_CSC_SEARCHAPI_INTERFACE_COOKIE) + +typedef +NTSTATUS +(*PFUNC_CSC_SEARCHAPI_GET_INTERFACE)( + _In_ ULONG Version, + _In_ ULONG Cookie, + _Out_ CCscSearchApiInterface** Interface + ); + +extern "C" +NTSTATUS +CscSearchApiGetInterface( + _In_ ULONG Version, + _In_ ULONG Cookie, + _Out_ CCscSearchApiInterface** Interface + ); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _INC_CSCSEARCHAPIIF_HXX diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctffunc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctffunc.h new file mode 100644 index 0000000000000000000000000000000000000000..9a5fca8e65f568120895f34e346c7f61f2f68a5d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctffunc.h @@ -0,0 +1,3397 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ctffunc_h__ +#define __ctffunc_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ITfCandidateString_FWD_DEFINED__ +#define __ITfCandidateString_FWD_DEFINED__ +typedef interface ITfCandidateString ITfCandidateString; + +#endif /* __ITfCandidateString_FWD_DEFINED__ */ + + +#ifndef __IEnumTfCandidates_FWD_DEFINED__ +#define __IEnumTfCandidates_FWD_DEFINED__ +typedef interface IEnumTfCandidates IEnumTfCandidates; + +#endif /* __IEnumTfCandidates_FWD_DEFINED__ */ + + +#ifndef __ITfCandidateList_FWD_DEFINED__ +#define __ITfCandidateList_FWD_DEFINED__ +typedef interface ITfCandidateList ITfCandidateList; + +#endif /* __ITfCandidateList_FWD_DEFINED__ */ + + +#ifndef __ITfFnReconversion_FWD_DEFINED__ +#define __ITfFnReconversion_FWD_DEFINED__ +typedef interface ITfFnReconversion ITfFnReconversion; + +#endif /* __ITfFnReconversion_FWD_DEFINED__ */ + + +#ifndef __ITfFnPlayBack_FWD_DEFINED__ +#define __ITfFnPlayBack_FWD_DEFINED__ +typedef interface ITfFnPlayBack ITfFnPlayBack; + +#endif /* __ITfFnPlayBack_FWD_DEFINED__ */ + + +#ifndef __ITfFnLangProfileUtil_FWD_DEFINED__ +#define __ITfFnLangProfileUtil_FWD_DEFINED__ +typedef interface ITfFnLangProfileUtil ITfFnLangProfileUtil; + +#endif /* __ITfFnLangProfileUtil_FWD_DEFINED__ */ + + +#ifndef __ITfFnConfigure_FWD_DEFINED__ +#define __ITfFnConfigure_FWD_DEFINED__ +typedef interface ITfFnConfigure ITfFnConfigure; + +#endif /* __ITfFnConfigure_FWD_DEFINED__ */ + + +#ifndef __ITfFnConfigureRegisterWord_FWD_DEFINED__ +#define __ITfFnConfigureRegisterWord_FWD_DEFINED__ +typedef interface ITfFnConfigureRegisterWord ITfFnConfigureRegisterWord; + +#endif /* __ITfFnConfigureRegisterWord_FWD_DEFINED__ */ + + +#ifndef __ITfFnConfigureRegisterEudc_FWD_DEFINED__ +#define __ITfFnConfigureRegisterEudc_FWD_DEFINED__ +typedef interface ITfFnConfigureRegisterEudc ITfFnConfigureRegisterEudc; + +#endif /* __ITfFnConfigureRegisterEudc_FWD_DEFINED__ */ + + +#ifndef __ITfFnShowHelp_FWD_DEFINED__ +#define __ITfFnShowHelp_FWD_DEFINED__ +typedef interface ITfFnShowHelp ITfFnShowHelp; + +#endif /* __ITfFnShowHelp_FWD_DEFINED__ */ + + +#ifndef __ITfFnBalloon_FWD_DEFINED__ +#define __ITfFnBalloon_FWD_DEFINED__ +typedef interface ITfFnBalloon ITfFnBalloon; + +#endif /* __ITfFnBalloon_FWD_DEFINED__ */ + + +#ifndef __ITfFnGetSAPIObject_FWD_DEFINED__ +#define __ITfFnGetSAPIObject_FWD_DEFINED__ +typedef interface ITfFnGetSAPIObject ITfFnGetSAPIObject; + +#endif /* __ITfFnGetSAPIObject_FWD_DEFINED__ */ + + +#ifndef __ITfFnPropertyUIStatus_FWD_DEFINED__ +#define __ITfFnPropertyUIStatus_FWD_DEFINED__ +typedef interface ITfFnPropertyUIStatus ITfFnPropertyUIStatus; + +#endif /* __ITfFnPropertyUIStatus_FWD_DEFINED__ */ + + +#ifndef __IEnumSpeechCommands_FWD_DEFINED__ +#define __IEnumSpeechCommands_FWD_DEFINED__ +typedef interface IEnumSpeechCommands IEnumSpeechCommands; + +#endif /* __IEnumSpeechCommands_FWD_DEFINED__ */ + + +#ifndef __ISpeechCommandProvider_FWD_DEFINED__ +#define __ISpeechCommandProvider_FWD_DEFINED__ +typedef interface ISpeechCommandProvider ISpeechCommandProvider; + +#endif /* __ISpeechCommandProvider_FWD_DEFINED__ */ + + +#ifndef __ITfFnCustomSpeechCommand_FWD_DEFINED__ +#define __ITfFnCustomSpeechCommand_FWD_DEFINED__ +typedef interface ITfFnCustomSpeechCommand ITfFnCustomSpeechCommand; + +#endif /* __ITfFnCustomSpeechCommand_FWD_DEFINED__ */ + + +#ifndef __ITfFnLMProcessor_FWD_DEFINED__ +#define __ITfFnLMProcessor_FWD_DEFINED__ +typedef interface ITfFnLMProcessor ITfFnLMProcessor; + +#endif /* __ITfFnLMProcessor_FWD_DEFINED__ */ + + +#ifndef __ITfFnLMInternal_FWD_DEFINED__ +#define __ITfFnLMInternal_FWD_DEFINED__ +typedef interface ITfFnLMInternal ITfFnLMInternal; + +#endif /* __ITfFnLMInternal_FWD_DEFINED__ */ + + +#ifndef __IEnumTfLatticeElements_FWD_DEFINED__ +#define __IEnumTfLatticeElements_FWD_DEFINED__ +typedef interface IEnumTfLatticeElements IEnumTfLatticeElements; + +#endif /* __IEnumTfLatticeElements_FWD_DEFINED__ */ + + +#ifndef __ITfLMLattice_FWD_DEFINED__ +#define __ITfLMLattice_FWD_DEFINED__ +typedef interface ITfLMLattice ITfLMLattice; + +#endif /* __ITfLMLattice_FWD_DEFINED__ */ + + +#ifndef __ITfFnAdviseText_FWD_DEFINED__ +#define __ITfFnAdviseText_FWD_DEFINED__ +typedef interface ITfFnAdviseText ITfFnAdviseText; + +#endif /* __ITfFnAdviseText_FWD_DEFINED__ */ + + +#ifndef __ITfFnSearchCandidateProvider_FWD_DEFINED__ +#define __ITfFnSearchCandidateProvider_FWD_DEFINED__ +typedef interface ITfFnSearchCandidateProvider ITfFnSearchCandidateProvider; + +#endif /* __ITfFnSearchCandidateProvider_FWD_DEFINED__ */ + + +#ifndef __ITfIntegratableCandidateListUIElement_FWD_DEFINED__ +#define __ITfIntegratableCandidateListUIElement_FWD_DEFINED__ +typedef interface ITfIntegratableCandidateListUIElement ITfIntegratableCandidateListUIElement; + +#endif /* __ITfIntegratableCandidateListUIElement_FWD_DEFINED__ */ + + +#ifndef __ITfFnGetPreferredTouchKeyboardLayout_FWD_DEFINED__ +#define __ITfFnGetPreferredTouchKeyboardLayout_FWD_DEFINED__ +typedef interface ITfFnGetPreferredTouchKeyboardLayout ITfFnGetPreferredTouchKeyboardLayout; + +#endif /* __ITfFnGetPreferredTouchKeyboardLayout_FWD_DEFINED__ */ + + +#ifndef __ITfFnGetLinguisticAlternates_FWD_DEFINED__ +#define __ITfFnGetLinguisticAlternates_FWD_DEFINED__ +typedef interface ITfFnGetLinguisticAlternates ITfFnGetLinguisticAlternates; + +#endif /* __ITfFnGetLinguisticAlternates_FWD_DEFINED__ */ + + +#ifndef __IUIManagerEventSink_FWD_DEFINED__ +#define __IUIManagerEventSink_FWD_DEFINED__ +typedef interface IUIManagerEventSink IUIManagerEventSink; + +#endif /* __IUIManagerEventSink_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "msctf.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ctffunc_0000_0000 */ +/* [local] */ + +#include +//=--------------------------------------------------------------------------= +// ctffunc.h + + +// Text Framework function interfaces. + +//=--------------------------------------------------------------------------= +// (C) Copyright 1995-2001 Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#ifndef CTFFUNC_DEFINED +#define CTFFUNC_DEFINED + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#define TF_E_NOCONVERSION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0600) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +EXTERN_C const CLSID CLSID_SapiLayr; +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0000_v0_0_s_ifspec; + +#ifndef __ITfCandidateString_INTERFACE_DEFINED__ +#define __ITfCandidateString_INTERFACE_DEFINED__ + +/* interface ITfCandidateString */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfCandidateString; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("581f317e-fd9d-443f-b972-ed00467c5d40") + ITfCandidateString : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetString( + /* [out] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIndex( + /* [out] */ __RPC__out ULONG *pnIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfCandidateStringVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfCandidateString * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfCandidateString * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfCandidateString * This); + + DECLSPEC_XFGVIRT(ITfCandidateString, GetString) + HRESULT ( STDMETHODCALLTYPE *GetString )( + __RPC__in ITfCandidateString * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstr); + + DECLSPEC_XFGVIRT(ITfCandidateString, GetIndex) + HRESULT ( STDMETHODCALLTYPE *GetIndex )( + __RPC__in ITfCandidateString * This, + /* [out] */ __RPC__out ULONG *pnIndex); + + END_INTERFACE + } ITfCandidateStringVtbl; + + interface ITfCandidateString + { + CONST_VTBL struct ITfCandidateStringVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfCandidateString_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfCandidateString_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfCandidateString_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfCandidateString_GetString(This,pbstr) \ + ( (This)->lpVtbl -> GetString(This,pbstr) ) + +#define ITfCandidateString_GetIndex(This,pnIndex) \ + ( (This)->lpVtbl -> GetIndex(This,pnIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfCandidateString_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumTfCandidates_INTERFACE_DEFINED__ +#define __IEnumTfCandidates_INTERFACE_DEFINED__ + +/* interface IEnumTfCandidates */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumTfCandidates; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("defb1926-6c80-4ce8-87d4-d6b72b812bde") + IEnumTfCandidates : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumTfCandidates **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG ulCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) ITfCandidateString **ppCand, + /* [out] */ __RPC__out ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG ulCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumTfCandidatesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumTfCandidates * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumTfCandidates * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumTfCandidates * This); + + DECLSPEC_XFGVIRT(IEnumTfCandidates, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumTfCandidates * This, + /* [out] */ __RPC__deref_out_opt IEnumTfCandidates **ppEnum); + + DECLSPEC_XFGVIRT(IEnumTfCandidates, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumTfCandidates * This, + /* [in] */ ULONG ulCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) ITfCandidateString **ppCand, + /* [out] */ __RPC__out ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumTfCandidates, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumTfCandidates * This); + + DECLSPEC_XFGVIRT(IEnumTfCandidates, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumTfCandidates * This, + /* [in] */ ULONG ulCount); + + END_INTERFACE + } IEnumTfCandidatesVtbl; + + interface IEnumTfCandidates + { + CONST_VTBL struct IEnumTfCandidatesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumTfCandidates_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumTfCandidates_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumTfCandidates_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumTfCandidates_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#define IEnumTfCandidates_Next(This,ulCount,ppCand,pcFetched) \ + ( (This)->lpVtbl -> Next(This,ulCount,ppCand,pcFetched) ) + +#define IEnumTfCandidates_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumTfCandidates_Skip(This,ulCount) \ + ( (This)->lpVtbl -> Skip(This,ulCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumTfCandidates_INTERFACE_DEFINED__ */ + + +#ifndef __ITfCandidateList_INTERFACE_DEFINED__ +#define __ITfCandidateList_INTERFACE_DEFINED__ + +/* interface ITfCandidateList */ +/* [unique][uuid][object] */ + +typedef /* [public][public][uuid] */ DECLSPEC_UUID("baa898f2-0207-4643-92ca-f3f7b0cf6f80") +enum __MIDL_ITfCandidateList_0001 + { + CAND_FINALIZED = 0, + CAND_SELECTED = 0x1, + CAND_CANCELED = 0x2 + } TfCandidateResult; + + +EXTERN_C const IID IID_ITfCandidateList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a3ad50fb-9bdb-49e3-a843-6c76520fbf5d") + ITfCandidateList : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumCandidates( + /* [out] */ __RPC__deref_out_opt IEnumTfCandidates **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidate( + /* [in] */ ULONG nIndex, + /* [out] */ __RPC__deref_out_opt ITfCandidateString **ppCand) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCandidateNum( + /* [out] */ __RPC__out ULONG *pnCnt) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetResult( + /* [in] */ ULONG nIndex, + /* [in] */ TfCandidateResult imcr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfCandidateListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfCandidateList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfCandidateList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfCandidateList * This); + + DECLSPEC_XFGVIRT(ITfCandidateList, EnumCandidates) + HRESULT ( STDMETHODCALLTYPE *EnumCandidates )( + __RPC__in ITfCandidateList * This, + /* [out] */ __RPC__deref_out_opt IEnumTfCandidates **ppEnum); + + DECLSPEC_XFGVIRT(ITfCandidateList, GetCandidate) + HRESULT ( STDMETHODCALLTYPE *GetCandidate )( + __RPC__in ITfCandidateList * This, + /* [in] */ ULONG nIndex, + /* [out] */ __RPC__deref_out_opt ITfCandidateString **ppCand); + + DECLSPEC_XFGVIRT(ITfCandidateList, GetCandidateNum) + HRESULT ( STDMETHODCALLTYPE *GetCandidateNum )( + __RPC__in ITfCandidateList * This, + /* [out] */ __RPC__out ULONG *pnCnt); + + DECLSPEC_XFGVIRT(ITfCandidateList, SetResult) + HRESULT ( STDMETHODCALLTYPE *SetResult )( + __RPC__in ITfCandidateList * This, + /* [in] */ ULONG nIndex, + /* [in] */ TfCandidateResult imcr); + + END_INTERFACE + } ITfCandidateListVtbl; + + interface ITfCandidateList + { + CONST_VTBL struct ITfCandidateListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfCandidateList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfCandidateList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfCandidateList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfCandidateList_EnumCandidates(This,ppEnum) \ + ( (This)->lpVtbl -> EnumCandidates(This,ppEnum) ) + +#define ITfCandidateList_GetCandidate(This,nIndex,ppCand) \ + ( (This)->lpVtbl -> GetCandidate(This,nIndex,ppCand) ) + +#define ITfCandidateList_GetCandidateNum(This,pnCnt) \ + ( (This)->lpVtbl -> GetCandidateNum(This,pnCnt) ) + +#define ITfCandidateList_SetResult(This,nIndex,imcr) \ + ( (This)->lpVtbl -> SetResult(This,nIndex,imcr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfCandidateList_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnReconversion_INTERFACE_DEFINED__ +#define __ITfFnReconversion_INTERFACE_DEFINED__ + +/* interface ITfFnReconversion */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnReconversion; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4cea93c0-0a58-11d3-8df0-00105a2799b5") + ITfFnReconversion : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE QueryRange( + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt ITfRange **ppNewRange, + /* [out] */ __RPC__out BOOL *pfConvertable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReconversion( + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [out] */ __RPC__deref_out_opt ITfCandidateList **ppCandList) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reconvert( + /* [in] */ __RPC__in_opt ITfRange *pRange) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnReconversionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnReconversion * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnReconversion * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnReconversion * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnReconversion * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnReconversion, QueryRange) + HRESULT ( STDMETHODCALLTYPE *QueryRange )( + __RPC__in ITfFnReconversion * This, + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt ITfRange **ppNewRange, + /* [out] */ __RPC__out BOOL *pfConvertable); + + DECLSPEC_XFGVIRT(ITfFnReconversion, GetReconversion) + HRESULT ( STDMETHODCALLTYPE *GetReconversion )( + __RPC__in ITfFnReconversion * This, + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [out] */ __RPC__deref_out_opt ITfCandidateList **ppCandList); + + DECLSPEC_XFGVIRT(ITfFnReconversion, Reconvert) + HRESULT ( STDMETHODCALLTYPE *Reconvert )( + __RPC__in ITfFnReconversion * This, + /* [in] */ __RPC__in_opt ITfRange *pRange); + + END_INTERFACE + } ITfFnReconversionVtbl; + + interface ITfFnReconversion + { + CONST_VTBL struct ITfFnReconversionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnReconversion_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnReconversion_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnReconversion_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnReconversion_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnReconversion_QueryRange(This,pRange,ppNewRange,pfConvertable) \ + ( (This)->lpVtbl -> QueryRange(This,pRange,ppNewRange,pfConvertable) ) + +#define ITfFnReconversion_GetReconversion(This,pRange,ppCandList) \ + ( (This)->lpVtbl -> GetReconversion(This,pRange,ppCandList) ) + +#define ITfFnReconversion_Reconvert(This,pRange) \ + ( (This)->lpVtbl -> Reconvert(This,pRange) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnReconversion_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctffunc_0000_0004 */ +/* [local] */ + +EXTERN_C const GUID GUID_COMPARTMENT_SAPI_AUDIO; +EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_DICTATIONSTAT; +#define TF_DICTATION_ON 0x00000001 +#define TF_DICTATION_ENABLED 0x00000002 +#define TF_COMMANDING_ENABLED 0x00000004 +#define TF_COMMANDING_ON 0x00000008 +#define TF_SPEECHUI_SHOWN 0x00000010 + +EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_UI_STATUS; +#define TF_SHOW_BALLOON 0x00000001 +#define TF_DISABLE_BALLOON 0x00000002 +EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_CFGMENU; +#define TF_MENUREADY 0x00000001 +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +EXTERN_C const GUID GUID_LBI_SAPILAYR_CFGMENUBUTTON; +EXTERN_C const GUID GUID_LBI_INPUTMODE; + + + +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0004_v0_0_s_ifspec; + +#ifndef __ITfFnPlayBack_INTERFACE_DEFINED__ +#define __ITfFnPlayBack_INTERFACE_DEFINED__ + +/* interface ITfFnPlayBack */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnPlayBack; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a3a416a4-0f64-11d3-b5b7-00c04fc324a1") + ITfFnPlayBack : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE QueryRange( + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [out] */ __RPC__deref_out_opt ITfRange **ppNewRange, + /* [out] */ __RPC__out BOOL *pfPlayable) = 0; + + virtual HRESULT STDMETHODCALLTYPE Play( + /* [in] */ __RPC__in_opt ITfRange *pRange) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnPlayBackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnPlayBack * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnPlayBack * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnPlayBack * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnPlayBack * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnPlayBack, QueryRange) + HRESULT ( STDMETHODCALLTYPE *QueryRange )( + __RPC__in ITfFnPlayBack * This, + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [out] */ __RPC__deref_out_opt ITfRange **ppNewRange, + /* [out] */ __RPC__out BOOL *pfPlayable); + + DECLSPEC_XFGVIRT(ITfFnPlayBack, Play) + HRESULT ( STDMETHODCALLTYPE *Play )( + __RPC__in ITfFnPlayBack * This, + /* [in] */ __RPC__in_opt ITfRange *pRange); + + END_INTERFACE + } ITfFnPlayBackVtbl; + + interface ITfFnPlayBack + { + CONST_VTBL struct ITfFnPlayBackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnPlayBack_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnPlayBack_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnPlayBack_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnPlayBack_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnPlayBack_QueryRange(This,pRange,ppNewRange,pfPlayable) \ + ( (This)->lpVtbl -> QueryRange(This,pRange,ppNewRange,pfPlayable) ) + +#define ITfFnPlayBack_Play(This,pRange) \ + ( (This)->lpVtbl -> Play(This,pRange) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnPlayBack_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnLangProfileUtil_INTERFACE_DEFINED__ +#define __ITfFnLangProfileUtil_INTERFACE_DEFINED__ + +/* interface ITfFnLangProfileUtil */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnLangProfileUtil; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A87A8574-A6C1-4E15-99F0-3D3965F548EB") + ITfFnLangProfileUtil : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterActiveProfiles( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsProfileAvailableForLang( + /* [in] */ LANGID langid, + /* [out] */ __RPC__out BOOL *pfAvailable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnLangProfileUtilVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnLangProfileUtil * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnLangProfileUtil * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnLangProfileUtil * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnLangProfileUtil * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnLangProfileUtil, RegisterActiveProfiles) + HRESULT ( STDMETHODCALLTYPE *RegisterActiveProfiles )( + __RPC__in ITfFnLangProfileUtil * This); + + DECLSPEC_XFGVIRT(ITfFnLangProfileUtil, IsProfileAvailableForLang) + HRESULT ( STDMETHODCALLTYPE *IsProfileAvailableForLang )( + __RPC__in ITfFnLangProfileUtil * This, + /* [in] */ LANGID langid, + /* [out] */ __RPC__out BOOL *pfAvailable); + + END_INTERFACE + } ITfFnLangProfileUtilVtbl; + + interface ITfFnLangProfileUtil + { + CONST_VTBL struct ITfFnLangProfileUtilVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnLangProfileUtil_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnLangProfileUtil_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnLangProfileUtil_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnLangProfileUtil_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnLangProfileUtil_RegisterActiveProfiles(This) \ + ( (This)->lpVtbl -> RegisterActiveProfiles(This) ) + +#define ITfFnLangProfileUtil_IsProfileAvailableForLang(This,langid,pfAvailable) \ + ( (This)->lpVtbl -> IsProfileAvailableForLang(This,langid,pfAvailable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnLangProfileUtil_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnConfigure_INTERFACE_DEFINED__ +#define __ITfFnConfigure_INTERFACE_DEFINED__ + +/* interface ITfFnConfigure */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnConfigure; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("88f567c6-1757-49f8-a1b2-89234c1eeff9") + ITfFnConfigure : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE Show( + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ LANGID langid, + /* [in] */ __RPC__in REFGUID rguidProfile) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnConfigureVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnConfigure * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnConfigure * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnConfigure * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnConfigure * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnConfigure, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in ITfFnConfigure * This, + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ LANGID langid, + /* [in] */ __RPC__in REFGUID rguidProfile); + + END_INTERFACE + } ITfFnConfigureVtbl; + + interface ITfFnConfigure + { + CONST_VTBL struct ITfFnConfigureVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnConfigure_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnConfigure_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnConfigure_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnConfigure_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnConfigure_Show(This,hwndParent,langid,rguidProfile) \ + ( (This)->lpVtbl -> Show(This,hwndParent,langid,rguidProfile) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnConfigure_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnConfigureRegisterWord_INTERFACE_DEFINED__ +#define __ITfFnConfigureRegisterWord_INTERFACE_DEFINED__ + +/* interface ITfFnConfigureRegisterWord */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnConfigureRegisterWord; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bb95808a-6d8f-4bca-8400-5390b586aedf") + ITfFnConfigureRegisterWord : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE Show( + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ LANGID langid, + /* [in] */ __RPC__in REFGUID rguidProfile, + /* [unique][in] */ __RPC__in_opt BSTR bstrRegistered) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnConfigureRegisterWordVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnConfigureRegisterWord * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnConfigureRegisterWord * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnConfigureRegisterWord * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnConfigureRegisterWord * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnConfigureRegisterWord, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in ITfFnConfigureRegisterWord * This, + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ LANGID langid, + /* [in] */ __RPC__in REFGUID rguidProfile, + /* [unique][in] */ __RPC__in_opt BSTR bstrRegistered); + + END_INTERFACE + } ITfFnConfigureRegisterWordVtbl; + + interface ITfFnConfigureRegisterWord + { + CONST_VTBL struct ITfFnConfigureRegisterWordVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnConfigureRegisterWord_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnConfigureRegisterWord_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnConfigureRegisterWord_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnConfigureRegisterWord_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnConfigureRegisterWord_Show(This,hwndParent,langid,rguidProfile,bstrRegistered) \ + ( (This)->lpVtbl -> Show(This,hwndParent,langid,rguidProfile,bstrRegistered) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnConfigureRegisterWord_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnConfigureRegisterEudc_INTERFACE_DEFINED__ +#define __ITfFnConfigureRegisterEudc_INTERFACE_DEFINED__ + +/* interface ITfFnConfigureRegisterEudc */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnConfigureRegisterEudc; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b5e26ff5-d7ad-4304-913f-21a2ed95a1b0") + ITfFnConfigureRegisterEudc : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE Show( + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ LANGID langid, + /* [in] */ __RPC__in REFGUID rguidProfile, + /* [unique][in] */ __RPC__in_opt BSTR bstrRegistered) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnConfigureRegisterEudcVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnConfigureRegisterEudc * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnConfigureRegisterEudc * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnConfigureRegisterEudc * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnConfigureRegisterEudc * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnConfigureRegisterEudc, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in ITfFnConfigureRegisterEudc * This, + /* [in] */ __RPC__in HWND hwndParent, + /* [in] */ LANGID langid, + /* [in] */ __RPC__in REFGUID rguidProfile, + /* [unique][in] */ __RPC__in_opt BSTR bstrRegistered); + + END_INTERFACE + } ITfFnConfigureRegisterEudcVtbl; + + interface ITfFnConfigureRegisterEudc + { + CONST_VTBL struct ITfFnConfigureRegisterEudcVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnConfigureRegisterEudc_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnConfigureRegisterEudc_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnConfigureRegisterEudc_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnConfigureRegisterEudc_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnConfigureRegisterEudc_Show(This,hwndParent,langid,rguidProfile,bstrRegistered) \ + ( (This)->lpVtbl -> Show(This,hwndParent,langid,rguidProfile,bstrRegistered) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnConfigureRegisterEudc_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnShowHelp_INTERFACE_DEFINED__ +#define __ITfFnShowHelp_INTERFACE_DEFINED__ + +/* interface ITfFnShowHelp */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnShowHelp; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5AB1D30C-094D-4C29-8EA5-0BF59BE87BF3") + ITfFnShowHelp : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE Show( + /* [in] */ __RPC__in HWND hwndParent) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnShowHelpVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnShowHelp * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnShowHelp * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnShowHelp * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnShowHelp * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnShowHelp, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in ITfFnShowHelp * This, + /* [in] */ __RPC__in HWND hwndParent); + + END_INTERFACE + } ITfFnShowHelpVtbl; + + interface ITfFnShowHelp + { + CONST_VTBL struct ITfFnShowHelpVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnShowHelp_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnShowHelp_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnShowHelp_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnShowHelp_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnShowHelp_Show(This,hwndParent) \ + ( (This)->lpVtbl -> Show(This,hwndParent) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnShowHelp_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnBalloon_INTERFACE_DEFINED__ +#define __ITfFnBalloon_INTERFACE_DEFINED__ + +/* interface ITfFnBalloon */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnBalloon; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3BAB89E4-5FBE-45F4-A5BC-DCA36AD225A8") + ITfFnBalloon : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE UpdateBalloon( + /* [in] */ TfLBBalloonStyle style, + /* [size_is][in] */ __RPC__in_ecount_full(cch) const WCHAR *pch, + /* [in] */ ULONG cch) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnBalloonVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnBalloon * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnBalloon * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnBalloon * This); + + DECLSPEC_XFGVIRT(ITfFnBalloon, UpdateBalloon) + HRESULT ( STDMETHODCALLTYPE *UpdateBalloon )( + __RPC__in ITfFnBalloon * This, + /* [in] */ TfLBBalloonStyle style, + /* [size_is][in] */ __RPC__in_ecount_full(cch) const WCHAR *pch, + /* [in] */ ULONG cch); + + END_INTERFACE + } ITfFnBalloonVtbl; + + interface ITfFnBalloon + { + CONST_VTBL struct ITfFnBalloonVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnBalloon_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnBalloon_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnBalloon_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnBalloon_UpdateBalloon(This,style,pch,cch) \ + ( (This)->lpVtbl -> UpdateBalloon(This,style,pch,cch) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnBalloon_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctffunc_0000_0011 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +typedef /* [public][public][uuid] */ DECLSPEC_UUID("36adb6d9-da1f-45d8-a499-86167e0f936b") +enum __MIDL___MIDL_itf_ctffunc_0000_0011_0001 + { + GETIF_RESMGR = 0, + GETIF_RECOCONTEXT = 0x1, + GETIF_RECOGNIZER = 0x2, + GETIF_VOICE = 0x3, + GETIF_DICTGRAM = 0x4, + GETIF_RECOGNIZERNOINIT = 0x5 + } TfSapiObject; + + + +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0011_v0_0_s_ifspec; + +#ifndef __ITfFnGetSAPIObject_INTERFACE_DEFINED__ +#define __ITfFnGetSAPIObject_INTERFACE_DEFINED__ + +/* interface ITfFnGetSAPIObject */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnGetSAPIObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5c0ab7ea-167d-4f59-bfb5-4693755e90ca") + ITfFnGetSAPIObject : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE Get( + /* [in] */ TfSapiObject sObj, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnGetSAPIObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnGetSAPIObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnGetSAPIObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnGetSAPIObject * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnGetSAPIObject * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnGetSAPIObject, Get) + HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in ITfFnGetSAPIObject * This, + /* [in] */ TfSapiObject sObj, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunk); + + END_INTERFACE + } ITfFnGetSAPIObjectVtbl; + + interface ITfFnGetSAPIObject + { + CONST_VTBL struct ITfFnGetSAPIObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnGetSAPIObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnGetSAPIObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnGetSAPIObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnGetSAPIObject_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnGetSAPIObject_Get(This,sObj,ppunk) \ + ( (This)->lpVtbl -> Get(This,sObj,ppunk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnGetSAPIObject_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctffunc_0000_0012 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0012_v0_0_s_ifspec; + +#ifndef __ITfFnPropertyUIStatus_INTERFACE_DEFINED__ +#define __ITfFnPropertyUIStatus_INTERFACE_DEFINED__ + +/* interface ITfFnPropertyUIStatus */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnPropertyUIStatus; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2338AC6E-2B9D-44C0-A75E-EE64F256B3BD") + ITfFnPropertyUIStatus : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStatus( + /* [in] */ __RPC__in REFGUID refguidProp, + /* [out] */ __RPC__out DWORD *pdw) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStatus( + /* [in] */ __RPC__in REFGUID refguidProp, + /* [in] */ DWORD dw) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnPropertyUIStatusVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnPropertyUIStatus * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnPropertyUIStatus * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnPropertyUIStatus * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnPropertyUIStatus * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnPropertyUIStatus, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in ITfFnPropertyUIStatus * This, + /* [in] */ __RPC__in REFGUID refguidProp, + /* [out] */ __RPC__out DWORD *pdw); + + DECLSPEC_XFGVIRT(ITfFnPropertyUIStatus, SetStatus) + HRESULT ( STDMETHODCALLTYPE *SetStatus )( + __RPC__in ITfFnPropertyUIStatus * This, + /* [in] */ __RPC__in REFGUID refguidProp, + /* [in] */ DWORD dw); + + END_INTERFACE + } ITfFnPropertyUIStatusVtbl; + + interface ITfFnPropertyUIStatus + { + CONST_VTBL struct ITfFnPropertyUIStatusVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnPropertyUIStatus_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnPropertyUIStatus_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnPropertyUIStatus_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnPropertyUIStatus_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnPropertyUIStatus_GetStatus(This,refguidProp,pdw) \ + ( (This)->lpVtbl -> GetStatus(This,refguidProp,pdw) ) + +#define ITfFnPropertyUIStatus_SetStatus(This,refguidProp,dw) \ + ( (This)->lpVtbl -> SetStatus(This,refguidProp,dw) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnPropertyUIStatus_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctffunc_0000_0013 */ +/* [local] */ + + +#define TF_PROPUI_STATUS_SAVETOFILE 0x00000001 + + + +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0013_v0_0_s_ifspec; + +#ifndef __IEnumSpeechCommands_INTERFACE_DEFINED__ +#define __IEnumSpeechCommands_INTERFACE_DEFINED__ + +/* interface IEnumSpeechCommands */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumSpeechCommands; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8c5dac4f-083c-4b85-a4c9-71746048adca") + IEnumSpeechCommands : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumSpeechCommands **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG ulCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) WCHAR **pSpCmds, + /* [out] */ __RPC__out ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG ulCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumSpeechCommandsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumSpeechCommands * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumSpeechCommands * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumSpeechCommands * This); + + DECLSPEC_XFGVIRT(IEnumSpeechCommands, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumSpeechCommands * This, + /* [out] */ __RPC__deref_out_opt IEnumSpeechCommands **ppEnum); + + DECLSPEC_XFGVIRT(IEnumSpeechCommands, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumSpeechCommands * This, + /* [in] */ ULONG ulCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) WCHAR **pSpCmds, + /* [out] */ __RPC__out ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumSpeechCommands, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumSpeechCommands * This); + + DECLSPEC_XFGVIRT(IEnumSpeechCommands, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumSpeechCommands * This, + /* [in] */ ULONG ulCount); + + END_INTERFACE + } IEnumSpeechCommandsVtbl; + + interface IEnumSpeechCommands + { + CONST_VTBL struct IEnumSpeechCommandsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumSpeechCommands_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumSpeechCommands_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumSpeechCommands_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumSpeechCommands_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#define IEnumSpeechCommands_Next(This,ulCount,pSpCmds,pcFetched) \ + ( (This)->lpVtbl -> Next(This,ulCount,pSpCmds,pcFetched) ) + +#define IEnumSpeechCommands_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumSpeechCommands_Skip(This,ulCount) \ + ( (This)->lpVtbl -> Skip(This,ulCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumSpeechCommands_INTERFACE_DEFINED__ */ + + +#ifndef __ISpeechCommandProvider_INTERFACE_DEFINED__ +#define __ISpeechCommandProvider_INTERFACE_DEFINED__ + +/* interface ISpeechCommandProvider */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ISpeechCommandProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("38e09d4c-586d-435a-b592-c8a86691dec6") + ISpeechCommandProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumSpeechCommands( + /* [in] */ LANGID langid, + /* [out] */ __RPC__deref_out_opt IEnumSpeechCommands **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessCommand( + /* [size_is][in] */ __RPC__in_ecount_full(cch) const WCHAR *pszCommand, + /* [in] */ ULONG cch, + /* [in] */ LANGID langid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISpeechCommandProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISpeechCommandProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISpeechCommandProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISpeechCommandProvider * This); + + DECLSPEC_XFGVIRT(ISpeechCommandProvider, EnumSpeechCommands) + HRESULT ( STDMETHODCALLTYPE *EnumSpeechCommands )( + __RPC__in ISpeechCommandProvider * This, + /* [in] */ LANGID langid, + /* [out] */ __RPC__deref_out_opt IEnumSpeechCommands **ppEnum); + + DECLSPEC_XFGVIRT(ISpeechCommandProvider, ProcessCommand) + HRESULT ( STDMETHODCALLTYPE *ProcessCommand )( + __RPC__in ISpeechCommandProvider * This, + /* [size_is][in] */ __RPC__in_ecount_full(cch) const WCHAR *pszCommand, + /* [in] */ ULONG cch, + /* [in] */ LANGID langid); + + END_INTERFACE + } ISpeechCommandProviderVtbl; + + interface ISpeechCommandProvider + { + CONST_VTBL struct ISpeechCommandProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISpeechCommandProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISpeechCommandProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISpeechCommandProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISpeechCommandProvider_EnumSpeechCommands(This,langid,ppEnum) \ + ( (This)->lpVtbl -> EnumSpeechCommands(This,langid,ppEnum) ) + +#define ISpeechCommandProvider_ProcessCommand(This,pszCommand,cch,langid) \ + ( (This)->lpVtbl -> ProcessCommand(This,pszCommand,cch,langid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISpeechCommandProvider_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnCustomSpeechCommand_INTERFACE_DEFINED__ +#define __ITfFnCustomSpeechCommand_INTERFACE_DEFINED__ + +/* interface ITfFnCustomSpeechCommand */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnCustomSpeechCommand; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fca6c349-a12f-43a3-8dd6-5a5a4282577b") + ITfFnCustomSpeechCommand : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE SetSpeechCommandProvider( + /* [in] */ __RPC__in_opt IUnknown *pspcmdProvider) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnCustomSpeechCommandVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnCustomSpeechCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnCustomSpeechCommand * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnCustomSpeechCommand * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnCustomSpeechCommand * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnCustomSpeechCommand, SetSpeechCommandProvider) + HRESULT ( STDMETHODCALLTYPE *SetSpeechCommandProvider )( + __RPC__in ITfFnCustomSpeechCommand * This, + /* [in] */ __RPC__in_opt IUnknown *pspcmdProvider); + + END_INTERFACE + } ITfFnCustomSpeechCommandVtbl; + + interface ITfFnCustomSpeechCommand + { + CONST_VTBL struct ITfFnCustomSpeechCommandVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnCustomSpeechCommand_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnCustomSpeechCommand_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnCustomSpeechCommand_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnCustomSpeechCommand_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnCustomSpeechCommand_SetSpeechCommandProvider(This,pspcmdProvider) \ + ( (This)->lpVtbl -> SetSpeechCommandProvider(This,pspcmdProvider) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnCustomSpeechCommand_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctffunc_0000_0016 */ +/* [local] */ + +EXTERN_C const GUID GUID_TFCAT_TIP_MASTERLM; +EXTERN_C const GUID GUID_MASTERLM_FUNCTIONPROVIDER; +EXTERN_C const GUID GUID_LMLATTICE_VER1_0; +EXTERN_C const GUID GUID_PROP_LMLATTICE; + + +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0016_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0016_v0_0_s_ifspec; + +#ifndef __ITfFnLMProcessor_INTERFACE_DEFINED__ +#define __ITfFnLMProcessor_INTERFACE_DEFINED__ + +/* interface ITfFnLMProcessor */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnLMProcessor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7AFBF8E7-AC4B-4082-B058-890899D3A010") + ITfFnLMProcessor : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE QueryRange( + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [out] */ __RPC__deref_out_opt ITfRange **ppNewRange, + /* [out] */ __RPC__out BOOL *pfAccepted) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryLangID( + /* [in] */ LANGID langid, + /* [out] */ __RPC__out BOOL *pfAccepted) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReconversion( + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [out] */ __RPC__deref_out_opt ITfCandidateList **ppCandList) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reconvert( + /* [in] */ __RPC__in_opt ITfRange *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryKey( + /* [in] */ BOOL fUp, + /* [in] */ WPARAM vKey, + /* [in] */ LPARAM lparamKeydata, + /* [out] */ __RPC__out BOOL *pfInterested) = 0; + + virtual HRESULT STDMETHODCALLTYPE InvokeKey( + /* [in] */ BOOL fUp, + /* [in] */ WPARAM vKey, + /* [in] */ LPARAM lparamKeyData) = 0; + + virtual HRESULT STDMETHODCALLTYPE InvokeFunc( + /* [in] */ __RPC__in_opt ITfContext *pic, + /* [in] */ __RPC__in REFGUID refguidFunc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnLMProcessorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnLMProcessor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnLMProcessor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnLMProcessor * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnLMProcessor * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, QueryRange) + HRESULT ( STDMETHODCALLTYPE *QueryRange )( + __RPC__in ITfFnLMProcessor * This, + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [out] */ __RPC__deref_out_opt ITfRange **ppNewRange, + /* [out] */ __RPC__out BOOL *pfAccepted); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, QueryLangID) + HRESULT ( STDMETHODCALLTYPE *QueryLangID )( + __RPC__in ITfFnLMProcessor * This, + /* [in] */ LANGID langid, + /* [out] */ __RPC__out BOOL *pfAccepted); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, GetReconversion) + HRESULT ( STDMETHODCALLTYPE *GetReconversion )( + __RPC__in ITfFnLMProcessor * This, + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [out] */ __RPC__deref_out_opt ITfCandidateList **ppCandList); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, Reconvert) + HRESULT ( STDMETHODCALLTYPE *Reconvert )( + __RPC__in ITfFnLMProcessor * This, + /* [in] */ __RPC__in_opt ITfRange *pRange); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, QueryKey) + HRESULT ( STDMETHODCALLTYPE *QueryKey )( + __RPC__in ITfFnLMProcessor * This, + /* [in] */ BOOL fUp, + /* [in] */ WPARAM vKey, + /* [in] */ LPARAM lparamKeydata, + /* [out] */ __RPC__out BOOL *pfInterested); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, InvokeKey) + HRESULT ( STDMETHODCALLTYPE *InvokeKey )( + __RPC__in ITfFnLMProcessor * This, + /* [in] */ BOOL fUp, + /* [in] */ WPARAM vKey, + /* [in] */ LPARAM lparamKeyData); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, InvokeFunc) + HRESULT ( STDMETHODCALLTYPE *InvokeFunc )( + __RPC__in ITfFnLMProcessor * This, + /* [in] */ __RPC__in_opt ITfContext *pic, + /* [in] */ __RPC__in REFGUID refguidFunc); + + END_INTERFACE + } ITfFnLMProcessorVtbl; + + interface ITfFnLMProcessor + { + CONST_VTBL struct ITfFnLMProcessorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnLMProcessor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnLMProcessor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnLMProcessor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnLMProcessor_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnLMProcessor_QueryRange(This,pRange,ppNewRange,pfAccepted) \ + ( (This)->lpVtbl -> QueryRange(This,pRange,ppNewRange,pfAccepted) ) + +#define ITfFnLMProcessor_QueryLangID(This,langid,pfAccepted) \ + ( (This)->lpVtbl -> QueryLangID(This,langid,pfAccepted) ) + +#define ITfFnLMProcessor_GetReconversion(This,pRange,ppCandList) \ + ( (This)->lpVtbl -> GetReconversion(This,pRange,ppCandList) ) + +#define ITfFnLMProcessor_Reconvert(This,pRange) \ + ( (This)->lpVtbl -> Reconvert(This,pRange) ) + +#define ITfFnLMProcessor_QueryKey(This,fUp,vKey,lparamKeydata,pfInterested) \ + ( (This)->lpVtbl -> QueryKey(This,fUp,vKey,lparamKeydata,pfInterested) ) + +#define ITfFnLMProcessor_InvokeKey(This,fUp,vKey,lparamKeyData) \ + ( (This)->lpVtbl -> InvokeKey(This,fUp,vKey,lparamKeyData) ) + +#define ITfFnLMProcessor_InvokeFunc(This,pic,refguidFunc) \ + ( (This)->lpVtbl -> InvokeFunc(This,pic,refguidFunc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnLMProcessor_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnLMInternal_INTERFACE_DEFINED__ +#define __ITfFnLMInternal_INTERFACE_DEFINED__ + +/* interface ITfFnLMInternal */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnLMInternal; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("04B825B1-AC9A-4F7B-B5AD-C7168F1EE445") + ITfFnLMInternal : public ITfFnLMProcessor + { + public: + virtual HRESULT STDMETHODCALLTYPE ProcessLattice( + /* [in] */ __RPC__in_opt ITfRange *pRange) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnLMInternalVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnLMInternal * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnLMInternal * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnLMInternal * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnLMInternal * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, QueryRange) + HRESULT ( STDMETHODCALLTYPE *QueryRange )( + __RPC__in ITfFnLMInternal * This, + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [out] */ __RPC__deref_out_opt ITfRange **ppNewRange, + /* [out] */ __RPC__out BOOL *pfAccepted); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, QueryLangID) + HRESULT ( STDMETHODCALLTYPE *QueryLangID )( + __RPC__in ITfFnLMInternal * This, + /* [in] */ LANGID langid, + /* [out] */ __RPC__out BOOL *pfAccepted); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, GetReconversion) + HRESULT ( STDMETHODCALLTYPE *GetReconversion )( + __RPC__in ITfFnLMInternal * This, + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [out] */ __RPC__deref_out_opt ITfCandidateList **ppCandList); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, Reconvert) + HRESULT ( STDMETHODCALLTYPE *Reconvert )( + __RPC__in ITfFnLMInternal * This, + /* [in] */ __RPC__in_opt ITfRange *pRange); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, QueryKey) + HRESULT ( STDMETHODCALLTYPE *QueryKey )( + __RPC__in ITfFnLMInternal * This, + /* [in] */ BOOL fUp, + /* [in] */ WPARAM vKey, + /* [in] */ LPARAM lparamKeydata, + /* [out] */ __RPC__out BOOL *pfInterested); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, InvokeKey) + HRESULT ( STDMETHODCALLTYPE *InvokeKey )( + __RPC__in ITfFnLMInternal * This, + /* [in] */ BOOL fUp, + /* [in] */ WPARAM vKey, + /* [in] */ LPARAM lparamKeyData); + + DECLSPEC_XFGVIRT(ITfFnLMProcessor, InvokeFunc) + HRESULT ( STDMETHODCALLTYPE *InvokeFunc )( + __RPC__in ITfFnLMInternal * This, + /* [in] */ __RPC__in_opt ITfContext *pic, + /* [in] */ __RPC__in REFGUID refguidFunc); + + DECLSPEC_XFGVIRT(ITfFnLMInternal, ProcessLattice) + HRESULT ( STDMETHODCALLTYPE *ProcessLattice )( + __RPC__in ITfFnLMInternal * This, + /* [in] */ __RPC__in_opt ITfRange *pRange); + + END_INTERFACE + } ITfFnLMInternalVtbl; + + interface ITfFnLMInternal + { + CONST_VTBL struct ITfFnLMInternalVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnLMInternal_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnLMInternal_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnLMInternal_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnLMInternal_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnLMInternal_QueryRange(This,pRange,ppNewRange,pfAccepted) \ + ( (This)->lpVtbl -> QueryRange(This,pRange,ppNewRange,pfAccepted) ) + +#define ITfFnLMInternal_QueryLangID(This,langid,pfAccepted) \ + ( (This)->lpVtbl -> QueryLangID(This,langid,pfAccepted) ) + +#define ITfFnLMInternal_GetReconversion(This,pRange,ppCandList) \ + ( (This)->lpVtbl -> GetReconversion(This,pRange,ppCandList) ) + +#define ITfFnLMInternal_Reconvert(This,pRange) \ + ( (This)->lpVtbl -> Reconvert(This,pRange) ) + +#define ITfFnLMInternal_QueryKey(This,fUp,vKey,lparamKeydata,pfInterested) \ + ( (This)->lpVtbl -> QueryKey(This,fUp,vKey,lparamKeydata,pfInterested) ) + +#define ITfFnLMInternal_InvokeKey(This,fUp,vKey,lparamKeyData) \ + ( (This)->lpVtbl -> InvokeKey(This,fUp,vKey,lparamKeyData) ) + +#define ITfFnLMInternal_InvokeFunc(This,pic,refguidFunc) \ + ( (This)->lpVtbl -> InvokeFunc(This,pic,refguidFunc) ) + + +#define ITfFnLMInternal_ProcessLattice(This,pRange) \ + ( (This)->lpVtbl -> ProcessLattice(This,pRange) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnLMInternal_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctffunc_0000_0018 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +typedef /* [uuid] */ DECLSPEC_UUID("1b646efe-3ce3-4ce2-b41f-35b93fe5552f") struct TF_LMLATTELEMENT + { + DWORD dwFrameStart; + DWORD dwFrameLen; + DWORD dwFlags; + /* [switch_is][switch_type] */ union + { + /* [case()] */ INT iCost; + } ; + BSTR bstrText; + } TF_LMLATTELEMENT; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0018_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0018_v0_0_s_ifspec; + +#ifndef __IEnumTfLatticeElements_INTERFACE_DEFINED__ +#define __IEnumTfLatticeElements_INTERFACE_DEFINED__ + +/* interface IEnumTfLatticeElements */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumTfLatticeElements; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56988052-47DA-4A05-911A-E3D941F17145") + IEnumTfLatticeElements : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumTfLatticeElements **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG ulCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) TF_LMLATTELEMENT *rgsElements, + /* [out] */ __RPC__out ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG ulCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumTfLatticeElementsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumTfLatticeElements * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumTfLatticeElements * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumTfLatticeElements * This); + + DECLSPEC_XFGVIRT(IEnumTfLatticeElements, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumTfLatticeElements * This, + /* [out] */ __RPC__deref_out_opt IEnumTfLatticeElements **ppEnum); + + DECLSPEC_XFGVIRT(IEnumTfLatticeElements, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumTfLatticeElements * This, + /* [in] */ ULONG ulCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) TF_LMLATTELEMENT *rgsElements, + /* [out] */ __RPC__out ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumTfLatticeElements, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumTfLatticeElements * This); + + DECLSPEC_XFGVIRT(IEnumTfLatticeElements, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumTfLatticeElements * This, + /* [in] */ ULONG ulCount); + + END_INTERFACE + } IEnumTfLatticeElementsVtbl; + + interface IEnumTfLatticeElements + { + CONST_VTBL struct IEnumTfLatticeElementsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumTfLatticeElements_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumTfLatticeElements_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumTfLatticeElements_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumTfLatticeElements_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#define IEnumTfLatticeElements_Next(This,ulCount,rgsElements,pcFetched) \ + ( (This)->lpVtbl -> Next(This,ulCount,rgsElements,pcFetched) ) + +#define IEnumTfLatticeElements_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumTfLatticeElements_Skip(This,ulCount) \ + ( (This)->lpVtbl -> Skip(This,ulCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumTfLatticeElements_INTERFACE_DEFINED__ */ + + +#ifndef __ITfLMLattice_INTERFACE_DEFINED__ +#define __ITfLMLattice_INTERFACE_DEFINED__ + +/* interface ITfLMLattice */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfLMLattice; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D4236675-A5BF-4570-9D42-5D6D7B02D59B") + ITfLMLattice : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE QueryType( + /* [in] */ __RPC__in REFGUID rguidType, + /* [out] */ __RPC__out BOOL *pfSupported) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumLatticeElements( + /* [in] */ DWORD dwFrameStart, + /* [in] */ __RPC__in REFGUID rguidType, + /* [out] */ __RPC__deref_out_opt IEnumTfLatticeElements **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfLMLatticeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfLMLattice * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfLMLattice * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfLMLattice * This); + + DECLSPEC_XFGVIRT(ITfLMLattice, QueryType) + HRESULT ( STDMETHODCALLTYPE *QueryType )( + __RPC__in ITfLMLattice * This, + /* [in] */ __RPC__in REFGUID rguidType, + /* [out] */ __RPC__out BOOL *pfSupported); + + DECLSPEC_XFGVIRT(ITfLMLattice, EnumLatticeElements) + HRESULT ( STDMETHODCALLTYPE *EnumLatticeElements )( + __RPC__in ITfLMLattice * This, + /* [in] */ DWORD dwFrameStart, + /* [in] */ __RPC__in REFGUID rguidType, + /* [out] */ __RPC__deref_out_opt IEnumTfLatticeElements **ppEnum); + + END_INTERFACE + } ITfLMLatticeVtbl; + + interface ITfLMLattice + { + CONST_VTBL struct ITfLMLatticeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfLMLattice_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfLMLattice_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfLMLattice_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfLMLattice_QueryType(This,rguidType,pfSupported) \ + ( (This)->lpVtbl -> QueryType(This,rguidType,pfSupported) ) + +#define ITfLMLattice_EnumLatticeElements(This,dwFrameStart,rguidType,ppEnum) \ + ( (This)->lpVtbl -> EnumLatticeElements(This,dwFrameStart,rguidType,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfLMLattice_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnAdviseText_INTERFACE_DEFINED__ +#define __ITfFnAdviseText_INTERFACE_DEFINED__ + +/* interface ITfFnAdviseText */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnAdviseText; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3527268B-7D53-4DD9-92B7-7296AE461249") + ITfFnAdviseText : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE OnTextUpdate( + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [size_is][in] */ __RPC__in_ecount_full(cch) const WCHAR *pchText, + /* [in] */ LONG cch) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnLatticeUpdate( + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [in] */ __RPC__in_opt ITfLMLattice *pLattice) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnAdviseTextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnAdviseText * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnAdviseText * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnAdviseText * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnAdviseText * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnAdviseText, OnTextUpdate) + HRESULT ( STDMETHODCALLTYPE *OnTextUpdate )( + __RPC__in ITfFnAdviseText * This, + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [size_is][in] */ __RPC__in_ecount_full(cch) const WCHAR *pchText, + /* [in] */ LONG cch); + + DECLSPEC_XFGVIRT(ITfFnAdviseText, OnLatticeUpdate) + HRESULT ( STDMETHODCALLTYPE *OnLatticeUpdate )( + __RPC__in ITfFnAdviseText * This, + /* [in] */ __RPC__in_opt ITfRange *pRange, + /* [in] */ __RPC__in_opt ITfLMLattice *pLattice); + + END_INTERFACE + } ITfFnAdviseTextVtbl; + + interface ITfFnAdviseText + { + CONST_VTBL struct ITfFnAdviseTextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnAdviseText_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnAdviseText_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnAdviseText_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnAdviseText_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnAdviseText_OnTextUpdate(This,pRange,pchText,cch) \ + ( (This)->lpVtbl -> OnTextUpdate(This,pRange,pchText,cch) ) + +#define ITfFnAdviseText_OnLatticeUpdate(This,pRange,pLattice) \ + ( (This)->lpVtbl -> OnLatticeUpdate(This,pRange,pLattice) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnAdviseText_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnSearchCandidateProvider_INTERFACE_DEFINED__ +#define __ITfFnSearchCandidateProvider_INTERFACE_DEFINED__ + +/* interface ITfFnSearchCandidateProvider */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfFnSearchCandidateProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("87a2ad8f-f27b-4920-8501-67602280175d") + ITfFnSearchCandidateProvider : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSearchCandidates( + /* [in] */ __RPC__in BSTR bstrQuery, + /* [in] */ __RPC__in BSTR bstrApplicationId, + /* [out] */ __RPC__deref_out_opt ITfCandidateList **pplist) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetResult( + /* [in] */ __RPC__in BSTR bstrQuery, + /* [in] */ __RPC__in BSTR bstrApplicationID, + /* [in] */ __RPC__in BSTR bstrResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnSearchCandidateProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnSearchCandidateProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnSearchCandidateProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnSearchCandidateProvider * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnSearchCandidateProvider * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnSearchCandidateProvider, GetSearchCandidates) + HRESULT ( STDMETHODCALLTYPE *GetSearchCandidates )( + __RPC__in ITfFnSearchCandidateProvider * This, + /* [in] */ __RPC__in BSTR bstrQuery, + /* [in] */ __RPC__in BSTR bstrApplicationId, + /* [out] */ __RPC__deref_out_opt ITfCandidateList **pplist); + + DECLSPEC_XFGVIRT(ITfFnSearchCandidateProvider, SetResult) + HRESULT ( STDMETHODCALLTYPE *SetResult )( + __RPC__in ITfFnSearchCandidateProvider * This, + /* [in] */ __RPC__in BSTR bstrQuery, + /* [in] */ __RPC__in BSTR bstrApplicationID, + /* [in] */ __RPC__in BSTR bstrResult); + + END_INTERFACE + } ITfFnSearchCandidateProviderVtbl; + + interface ITfFnSearchCandidateProvider + { + CONST_VTBL struct ITfFnSearchCandidateProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnSearchCandidateProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnSearchCandidateProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnSearchCandidateProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnSearchCandidateProvider_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnSearchCandidateProvider_GetSearchCandidates(This,bstrQuery,bstrApplicationId,pplist) \ + ( (This)->lpVtbl -> GetSearchCandidates(This,bstrQuery,bstrApplicationId,pplist) ) + +#define ITfFnSearchCandidateProvider_SetResult(This,bstrQuery,bstrApplicationID,bstrResult) \ + ( (This)->lpVtbl -> SetResult(This,bstrQuery,bstrApplicationID,bstrResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnSearchCandidateProvider_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctffunc_0000_0022 */ +/* [local] */ + +// The applications has a search box with a horizontal candidate list below that and may have search suggestions below the candidate list +DEFINE_GUID(GUID_INTEGRATIONSTYLE_SEARCHBOX, 0xe6d1bd11, 0x82f7, 0x4903, 0xae, 0x21, 0x1a, 0x63, 0x97, 0xcd, 0xe2, 0xeb); +typedef /* [public][public][uuid] */ DECLSPEC_UUID("AF8F5D86-0615-4af3-90FA-5DCBB407A5D4") +enum __MIDL___MIDL_itf_ctffunc_0000_0022_0001 + { + STYLE_ACTIVE_SELECTION = 0, + STYLE_IMPLIED_SELECTION = 0x1 + } TfIntegratableCandidateListSelectionStyle; + + + +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0022_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0022_v0_0_s_ifspec; + +#ifndef __ITfIntegratableCandidateListUIElement_INTERFACE_DEFINED__ +#define __ITfIntegratableCandidateListUIElement_INTERFACE_DEFINED__ + +/* interface ITfIntegratableCandidateListUIElement */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfIntegratableCandidateListUIElement; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C7A6F54F-B180-416F-B2BF-7BF2E4683D7B") + ITfIntegratableCandidateListUIElement : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetIntegrationStyle( + /* [in] */ GUID guidIntegrationStyle) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSelectionStyle( + /* [out] */ __RPC__out TfIntegratableCandidateListSelectionStyle *ptfSelectionStyle) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnKeyDown( + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out BOOL *pfEaten) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowCandidateNumbers( + /* [out] */ __RPC__out BOOL *pfShow) = 0; + + virtual HRESULT STDMETHODCALLTYPE FinalizeExactCompositionString( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfIntegratableCandidateListUIElementVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfIntegratableCandidateListUIElement * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfIntegratableCandidateListUIElement * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfIntegratableCandidateListUIElement * This); + + DECLSPEC_XFGVIRT(ITfIntegratableCandidateListUIElement, SetIntegrationStyle) + HRESULT ( STDMETHODCALLTYPE *SetIntegrationStyle )( + __RPC__in ITfIntegratableCandidateListUIElement * This, + /* [in] */ GUID guidIntegrationStyle); + + DECLSPEC_XFGVIRT(ITfIntegratableCandidateListUIElement, GetSelectionStyle) + HRESULT ( STDMETHODCALLTYPE *GetSelectionStyle )( + __RPC__in ITfIntegratableCandidateListUIElement * This, + /* [out] */ __RPC__out TfIntegratableCandidateListSelectionStyle *ptfSelectionStyle); + + DECLSPEC_XFGVIRT(ITfIntegratableCandidateListUIElement, OnKeyDown) + HRESULT ( STDMETHODCALLTYPE *OnKeyDown )( + __RPC__in ITfIntegratableCandidateListUIElement * This, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam, + /* [out] */ __RPC__out BOOL *pfEaten); + + DECLSPEC_XFGVIRT(ITfIntegratableCandidateListUIElement, ShowCandidateNumbers) + HRESULT ( STDMETHODCALLTYPE *ShowCandidateNumbers )( + __RPC__in ITfIntegratableCandidateListUIElement * This, + /* [out] */ __RPC__out BOOL *pfShow); + + DECLSPEC_XFGVIRT(ITfIntegratableCandidateListUIElement, FinalizeExactCompositionString) + HRESULT ( STDMETHODCALLTYPE *FinalizeExactCompositionString )( + __RPC__in ITfIntegratableCandidateListUIElement * This); + + END_INTERFACE + } ITfIntegratableCandidateListUIElementVtbl; + + interface ITfIntegratableCandidateListUIElement + { + CONST_VTBL struct ITfIntegratableCandidateListUIElementVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfIntegratableCandidateListUIElement_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfIntegratableCandidateListUIElement_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfIntegratableCandidateListUIElement_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfIntegratableCandidateListUIElement_SetIntegrationStyle(This,guidIntegrationStyle) \ + ( (This)->lpVtbl -> SetIntegrationStyle(This,guidIntegrationStyle) ) + +#define ITfIntegratableCandidateListUIElement_GetSelectionStyle(This,ptfSelectionStyle) \ + ( (This)->lpVtbl -> GetSelectionStyle(This,ptfSelectionStyle) ) + +#define ITfIntegratableCandidateListUIElement_OnKeyDown(This,wParam,lParam,pfEaten) \ + ( (This)->lpVtbl -> OnKeyDown(This,wParam,lParam,pfEaten) ) + +#define ITfIntegratableCandidateListUIElement_ShowCandidateNumbers(This,pfShow) \ + ( (This)->lpVtbl -> ShowCandidateNumbers(This,pfShow) ) + +#define ITfIntegratableCandidateListUIElement_FinalizeExactCompositionString(This) \ + ( (This)->lpVtbl -> FinalizeExactCompositionString(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfIntegratableCandidateListUIElement_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnGetPreferredTouchKeyboardLayout_INTERFACE_DEFINED__ +#define __ITfFnGetPreferredTouchKeyboardLayout_INTERFACE_DEFINED__ + +/* interface ITfFnGetPreferredTouchKeyboardLayout */ +/* [unique][uuid][object] */ + +typedef /* [public][public][uuid] */ DECLSPEC_UUID("E9967127-FB3C-4978-9008-FB3060D92730") +enum __MIDL_ITfFnGetPreferredTouchKeyboardLayout_0001 + { + TKBLT_UNDEFINED = 0, + TKBLT_CLASSIC = 1, + TKBLT_OPTIMIZED = 2 + } TKBLayoutType; + + +EXTERN_C const IID IID_ITfFnGetPreferredTouchKeyboardLayout; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5F309A41-590A-4ACC-A97F-D8EFFF13FDFC") + ITfFnGetPreferredTouchKeyboardLayout : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE GetLayout( + /* [out] */ __RPC__out TKBLayoutType *pTKBLayoutType, + __RPC__in WORD *pwPreferredLayoutId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnGetPreferredTouchKeyboardLayoutVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfFnGetPreferredTouchKeyboardLayout * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfFnGetPreferredTouchKeyboardLayout * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfFnGetPreferredTouchKeyboardLayout * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + __RPC__in ITfFnGetPreferredTouchKeyboardLayout * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnGetPreferredTouchKeyboardLayout, GetLayout) + HRESULT ( STDMETHODCALLTYPE *GetLayout )( + __RPC__in ITfFnGetPreferredTouchKeyboardLayout * This, + /* [out] */ __RPC__out TKBLayoutType *pTKBLayoutType, + __RPC__in WORD *pwPreferredLayoutId); + + END_INTERFACE + } ITfFnGetPreferredTouchKeyboardLayoutVtbl; + + interface ITfFnGetPreferredTouchKeyboardLayout + { + CONST_VTBL struct ITfFnGetPreferredTouchKeyboardLayoutVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnGetPreferredTouchKeyboardLayout_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnGetPreferredTouchKeyboardLayout_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnGetPreferredTouchKeyboardLayout_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnGetPreferredTouchKeyboardLayout_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnGetPreferredTouchKeyboardLayout_GetLayout(This,pTKBLayoutType,pwPreferredLayoutId) \ + ( (This)->lpVtbl -> GetLayout(This,pTKBLayoutType,pwPreferredLayoutId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnGetPreferredTouchKeyboardLayout_INTERFACE_DEFINED__ */ + + +#ifndef __ITfFnGetLinguisticAlternates_INTERFACE_DEFINED__ +#define __ITfFnGetLinguisticAlternates_INTERFACE_DEFINED__ + +/* interface ITfFnGetLinguisticAlternates */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_ITfFnGetLinguisticAlternates; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ea163ce2-7a65-4506-82a3-c528215da64e") + ITfFnGetLinguisticAlternates : public ITfFunction + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAlternates( + /* [annotation][in] */ + _In_ ITfRange *pRange, + /* [annotation][out] */ + _COM_Outptr_ ITfCandidateList **ppCandidateList) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfFnGetLinguisticAlternatesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ITfFnGetLinguisticAlternates * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ITfFnGetLinguisticAlternates * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ITfFnGetLinguisticAlternates * This); + + DECLSPEC_XFGVIRT(ITfFunction, GetDisplayName) + HRESULT ( STDMETHODCALLTYPE *GetDisplayName )( + ITfFnGetLinguisticAlternates * This, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(ITfFnGetLinguisticAlternates, GetAlternates) + HRESULT ( STDMETHODCALLTYPE *GetAlternates )( + ITfFnGetLinguisticAlternates * This, + /* [annotation][in] */ + _In_ ITfRange *pRange, + /* [annotation][out] */ + _COM_Outptr_ ITfCandidateList **ppCandidateList); + + END_INTERFACE + } ITfFnGetLinguisticAlternatesVtbl; + + interface ITfFnGetLinguisticAlternates + { + CONST_VTBL struct ITfFnGetLinguisticAlternatesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfFnGetLinguisticAlternates_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfFnGetLinguisticAlternates_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfFnGetLinguisticAlternates_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfFnGetLinguisticAlternates_GetDisplayName(This,pbstrName) \ + ( (This)->lpVtbl -> GetDisplayName(This,pbstrName) ) + + +#define ITfFnGetLinguisticAlternates_GetAlternates(This,pRange,ppCandidateList) \ + ( (This)->lpVtbl -> GetAlternates(This,pRange,ppCandidateList) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfFnGetLinguisticAlternates_INTERFACE_DEFINED__ */ + + +#ifndef __IUIManagerEventSink_INTERFACE_DEFINED__ +#define __IUIManagerEventSink_INTERFACE_DEFINED__ + +/* interface IUIManagerEventSink */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IUIManagerEventSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cd91d690-a7e8-4265-9b38-8bb3bbaba7de") + IUIManagerEventSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnWindowOpening( + /* [annotation][in] */ + _In_ RECT *prcBounds) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnWindowOpened( + /* [annotation][in] */ + _In_ RECT *prcBounds) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnWindowUpdating( + /* [annotation][in] */ + _In_ RECT *prcUpdatedBounds) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnWindowUpdated( + /* [annotation][in] */ + _In_ RECT *prcUpdatedBounds) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnWindowClosing( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnWindowClosed( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IUIManagerEventSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IUIManagerEventSink * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IUIManagerEventSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IUIManagerEventSink * This); + + DECLSPEC_XFGVIRT(IUIManagerEventSink, OnWindowOpening) + HRESULT ( STDMETHODCALLTYPE *OnWindowOpening )( + IUIManagerEventSink * This, + /* [annotation][in] */ + _In_ RECT *prcBounds); + + DECLSPEC_XFGVIRT(IUIManagerEventSink, OnWindowOpened) + HRESULT ( STDMETHODCALLTYPE *OnWindowOpened )( + IUIManagerEventSink * This, + /* [annotation][in] */ + _In_ RECT *prcBounds); + + DECLSPEC_XFGVIRT(IUIManagerEventSink, OnWindowUpdating) + HRESULT ( STDMETHODCALLTYPE *OnWindowUpdating )( + IUIManagerEventSink * This, + /* [annotation][in] */ + _In_ RECT *prcUpdatedBounds); + + DECLSPEC_XFGVIRT(IUIManagerEventSink, OnWindowUpdated) + HRESULT ( STDMETHODCALLTYPE *OnWindowUpdated )( + IUIManagerEventSink * This, + /* [annotation][in] */ + _In_ RECT *prcUpdatedBounds); + + DECLSPEC_XFGVIRT(IUIManagerEventSink, OnWindowClosing) + HRESULT ( STDMETHODCALLTYPE *OnWindowClosing )( + IUIManagerEventSink * This); + + DECLSPEC_XFGVIRT(IUIManagerEventSink, OnWindowClosed) + HRESULT ( STDMETHODCALLTYPE *OnWindowClosed )( + IUIManagerEventSink * This); + + END_INTERFACE + } IUIManagerEventSinkVtbl; + + interface IUIManagerEventSink + { + CONST_VTBL struct IUIManagerEventSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IUIManagerEventSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IUIManagerEventSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IUIManagerEventSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IUIManagerEventSink_OnWindowOpening(This,prcBounds) \ + ( (This)->lpVtbl -> OnWindowOpening(This,prcBounds) ) + +#define IUIManagerEventSink_OnWindowOpened(This,prcBounds) \ + ( (This)->lpVtbl -> OnWindowOpened(This,prcBounds) ) + +#define IUIManagerEventSink_OnWindowUpdating(This,prcUpdatedBounds) \ + ( (This)->lpVtbl -> OnWindowUpdating(This,prcUpdatedBounds) ) + +#define IUIManagerEventSink_OnWindowUpdated(This,prcUpdatedBounds) \ + ( (This)->lpVtbl -> OnWindowUpdated(This,prcUpdatedBounds) ) + +#define IUIManagerEventSink_OnWindowClosing(This) \ + ( (This)->lpVtbl -> OnWindowClosing(This) ) + +#define IUIManagerEventSink_OnWindowClosed(This) \ + ( (This)->lpVtbl -> OnWindowClosed(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IUIManagerEventSink_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctffunc_0000_0026 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#define TKBL_UNDEFINED 0 +#define TKBL_CLASSIC_TRADITIONAL_CHINESE_PHONETIC 0x0404 +#define TKBL_CLASSIC_TRADITIONAL_CHINESE_CHANGJIE 0xF042 +#define TKBL_CLASSIC_TRADITIONAL_CHINESE_DAYI 0xF043 +#define TKBL_OPT_JAPANESE_ABC 0x0411 +#define TKBL_OPT_KOREAN_HANGUL_2_BULSIK 0x0412 +#define TKBL_OPT_SIMPLIFIED_CHINESE_PINYIN 0x0804 +#define TKBL_OPT_TRADITIONAL_CHINESE_PHONETIC 0x0404 +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#endif // CTFFUNC_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0026_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctffunc_0000_0026_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctffunc.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctffunc.idl new file mode 100644 index 0000000000000000000000000000000000000000..2eb5d8e3ff846c20683fe89503b89f86a711191b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctffunc.idl @@ -0,0 +1,731 @@ +cpp_quote("#include ") + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992-2001. +// +// File: ctffunc.idl +// +// Contents: Text Framework function interfaces. +// +// +//-------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// ctffunc.h") +cpp_quote("") +cpp_quote("") +cpp_quote("// Text Framework function interfaces.") +cpp_quote("") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 1995-2001 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") + +cpp_quote("#ifndef CTFFUNC_DEFINED") +cpp_quote("#define CTFFUNC_DEFINED") +cpp_quote("") +cpp_quote("#include ") +cpp_quote("") +cpp_quote("#ifdef __cplusplus") +cpp_quote("extern \"C\" {") +cpp_quote("#endif /* __cplusplus */") +cpp_quote("") + + +cpp_quote("#ifdef __cplusplus") +cpp_quote("}") +cpp_quote("#endif /* __cplusplus */") + +import "oaidl.idl"; +import "msctf.idl"; + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +cpp_quote("#define TF_E_NOCONVERSION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0600)") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// +// exported CLSID +// +cpp_quote("EXTERN_C const CLSID CLSID_SapiLayr;") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +// +// ITfCandidateString +// +[ + object, + uuid(581f317e-fd9d-443f-b972-ed00467c5d40), + pointer_default(unique) +] +interface ITfCandidateString : IUnknown +{ + HRESULT GetString([out] BSTR *pbstr); + + HRESULT GetIndex([out] ULONG *pnIndex); +} + +// +// IEnumTfCandidates +// +[ + object, + uuid(defb1926-6c80-4ce8-87d4-d6b72b812bde), + pointer_default(unique) +] +interface IEnumTfCandidates : IUnknown +{ + HRESULT Clone([out] IEnumTfCandidates **ppEnum); + + HRESULT Next([in] ULONG ulCount, + [out, size_is(ulCount), length_is(*pcFetched)] ITfCandidateString **ppCand, + [out] ULONG *pcFetched); + + HRESULT Reset(); + + HRESULT Skip([in] ULONG ulCount); +} + +// +// ITfCandidateList +// +[ + object, + uuid(a3ad50fb-9bdb-49e3-a843-6c76520fbf5d), + pointer_default(unique) +] +interface ITfCandidateList : IUnknown +{ + HRESULT EnumCandidates([out] IEnumTfCandidates **ppEnum); + + HRESULT GetCandidate([in] ULONG nIndex, + [out] ITfCandidateString **ppCand); + + HRESULT GetCandidateNum([out] ULONG *pnCnt); + + typedef [uuid(baa898f2-0207-4643-92ca-f3f7b0cf6f80)] enum + { + CAND_FINALIZED = 0x0, + CAND_SELECTED = 0x1, + CAND_CANCELED = 0x2, + } TfCandidateResult; + + HRESULT SetResult([in] ULONG nIndex, + [in] TfCandidateResult imcr); +} + + + +// +// ITfFnReconversion +// +[ + object, + uuid(4cea93c0-0a58-11d3-8df0-00105a2799b5), + pointer_default(unique) +] +interface ITfFnReconversion : ITfFunction +{ + HRESULT QueryRange([in] ITfRange *pRange, + [in, out, unique] ITfRange **ppNewRange, + [out] BOOL *pfConvertable); + + HRESULT GetReconversion([in] ITfRange *pRange, + [out] ITfCandidateList **ppCandList); + + HRESULT Reconvert([in] ITfRange *pRange); +} + +// --- Data formats +cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_SAPI_AUDIO;") +cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_DICTATIONSTAT;") + +cpp_quote("#define TF_DICTATION_ON 0x00000001") +cpp_quote("#define TF_DICTATION_ENABLED 0x00000002") +cpp_quote("#define TF_COMMANDING_ENABLED 0x00000004") +cpp_quote("#define TF_COMMANDING_ON 0x00000008") +cpp_quote("#define TF_SPEECHUI_SHOWN 0x00000010") +cpp_quote("") + +cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_UI_STATUS;") + +cpp_quote("#define TF_SHOW_BALLOON 0x00000001") +cpp_quote("#define TF_DISABLE_BALLOON 0x00000002") + +cpp_quote("EXTERN_C const GUID GUID_COMPARTMENT_SPEECH_CFGMENU;") +cpp_quote("#define TF_MENUREADY 0x00000001") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("EXTERN_C const GUID GUID_LBI_SAPILAYR_CFGMENUBUTTON;") +cpp_quote("EXTERN_C const GUID GUID_LBI_INPUTMODE;") + +cpp_quote("") + +// +// ITfFnPlayBack +// +[ + object, + uuid(a3a416a4-0f64-11d3-b5b7-00c04fc324a1), + pointer_default(unique) +] +interface ITfFnPlayBack : ITfFunction +{ + HRESULT QueryRange([in] ITfRange *pRange, + [out] ITfRange **ppNewRange, + [out] BOOL *pfPlayable); + + HRESULT Play([in] ITfRange *pRange); +} + +// +// ITfLangProfileUtil +// +[ + object, + uuid(A87A8574-A6C1-4E15-99F0-3D3965F548EB), + pointer_default(unique) +] +interface ITfFnLangProfileUtil : ITfFunction +{ + HRESULT RegisterActiveProfiles(); + + HRESULT IsProfileAvailableForLang([in] LANGID langid, + [out] BOOL *pfAvailable); +} + +// +// ITfFnConfigure +// +[ + object, + uuid(88f567c6-1757-49f8-a1b2-89234c1eeff9), + pointer_default(unique) +] +interface ITfFnConfigure : ITfFunction +{ + // + // Show() + // + HRESULT Show([in] HWND hwndParent, + [in] LANGID langid, + [in] REFGUID rguidProfile); +} + +// +// ITfFnConfigureRegisterWord +// +[ + object, + uuid(bb95808a-6d8f-4bca-8400-5390b586aedf), + pointer_default(unique) +] +interface ITfFnConfigureRegisterWord : ITfFunction +{ + // + // Show() + // + HRESULT Show([in] HWND hwndParent, + [in] LANGID langid, + [in] REFGUID rguidProfile, + [in, unique] BSTR bstrRegistered); + +} + +// +// ITfFnConfigureRegisterEudc +// +[ + object, + uuid(b5e26ff5-d7ad-4304-913f-21a2ed95a1b0), + pointer_default(unique) +] +interface ITfFnConfigureRegisterEudc : ITfFunction +{ + // + // Show() + // + HRESULT Show([in] HWND hwndParent, + [in] LANGID langid, + [in] REFGUID rguidProfile, + [in, unique] BSTR bstrRegistered); + +} + +// +// ITfFnShowHelp +// +[ + object, + uuid(5AB1D30C-094D-4C29-8EA5-0BF59BE87BF3), + pointer_default(unique) +] +interface ITfFnShowHelp : ITfFunction +{ + HRESULT Show([in] HWND hwndParent); + +} + +// +// ITfFnBalloon +// +[ + object, + uuid(3BAB89E4-5FBE-45F4-A5BC-DCA36AD225A8), + pointer_default(unique) +] +interface ITfFnBalloon : IUnknown +{ + HRESULT UpdateBalloon([in] TfLBBalloonStyle style, + [in, size_is(cch)] const WCHAR *pch, + [in] ULONG cch); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +// +// ITfFnGetSAPIObject +// +typedef [uuid(36adb6d9-da1f-45d8-a499-86167e0f936b)] enum +{ + GETIF_RESMGR = 0x0, + GETIF_RECOCONTEXT = 0x1, + GETIF_RECOGNIZER = 0x2, + GETIF_VOICE = 0x3, + GETIF_DICTGRAM = 0x4 , + GETIF_RECOGNIZERNOINIT = 0x5 , // for candidate UI +} TfSapiObject; + +[ + object, + uuid(5c0ab7ea-167d-4f59-bfb5-4693755e90ca), + pointer_default(unique) +] +interface ITfFnGetSAPIObject : ITfFunction +{ + HRESULT Get([in] TfSapiObject sObj, + [out] IUnknown **ppunk); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// +// ITfFnPropertyUIStatus +// +[ + object, + uuid(2338AC6E-2B9D-44C0-A75E-EE64F256B3BD), + pointer_default(unique) +] +interface ITfFnPropertyUIStatus : ITfFunction +{ + HRESULT GetStatus([in] REFGUID refguidProp, [out] DWORD *pdw); + HRESULT SetStatus([in] REFGUID refguidProp, [in] DWORD dw); +} + +// --- bit flag for ITfFnPropertyUIStatus +cpp_quote("") +cpp_quote("#define TF_PROPUI_STATUS_SAVETOFILE 0x00000001") +cpp_quote("") + + +// +// Customize Commands processor and speech command provider +// + +// +// IEnumSpeechCommands +// +[ + object, + uuid(8c5dac4f-083c-4b85-a4c9-71746048adca), + pointer_default(unique) +] +interface IEnumSpeechCommands : IUnknown +{ + HRESULT Clone([out] IEnumSpeechCommands **ppEnum); + + HRESULT Next([in] ULONG ulCount, + [out, size_is(ulCount), length_is(*pcFetched)] WCHAR **pSpCmds, + [out] ULONG *pcFetched); + + HRESULT Reset(); + + HRESULT Skip([in] ULONG ulCount); +} + +// +// ISpeechCommandProvider +// +[ + object, + uuid(38e09d4c-586d-435a-b592-c8a86691dec6), + pointer_default(unique) +] + +interface ISpeechCommandProvider : IUnknown +{ + HRESULT EnumSpeechCommands([in] LANGID langid, [out] IEnumSpeechCommands **ppEnum); + + HRESULT ProcessCommand([in, size_is(cch)] const WCHAR *pszCommand, [in] ULONG cch, [in] LANGID langid); +} + +// +// ITfFnCustomSpeechCommand +// +[ + object, + uuid(fca6c349-a12f-43a3-8dd6-5a5a4282577b), + pointer_default(unique) +] + +interface ITfFnCustomSpeechCommand : ITfFunction +{ + HRESULT SetSpeechCommandProvider([in] IUnknown *pspcmdProvider); +} + +// +// LM sharing interface definitions +// + +cpp_quote("EXTERN_C const GUID GUID_TFCAT_TIP_MASTERLM;") +cpp_quote("EXTERN_C const GUID GUID_MASTERLM_FUNCTIONPROVIDER;") +cpp_quote("EXTERN_C const GUID GUID_LMLATTICE_VER1_0;") +cpp_quote("EXTERN_C const GUID GUID_PROP_LMLATTICE;") + +// +// ITfFnLMProcessor +// +[ + object, + uuid(7AFBF8E7-AC4B-4082-B058-890899D3A010), + pointer_default(unique) +] + +interface ITfFnLMProcessor : ITfFunction +{ + HRESULT QueryRange([in] ITfRange *pRange, + [out] ITfRange **ppNewRange, + [out] BOOL *pfAccepted); + + HRESULT QueryLangID([in] LANGID langid, + [out] BOOL *pfAccepted); + + HRESULT GetReconversion([in] ITfRange *pRange, + [out] ITfCandidateList **ppCandList); + + HRESULT Reconvert([in] ITfRange *pRange); + + HRESULT QueryKey ([in] BOOL fUp, + [in] WPARAM vKey, + [in] LPARAM lparamKeydata, + [out] BOOL *pfInterested); + + HRESULT InvokeKey([in] BOOL fUp, + [in] WPARAM vKey, + [in] LPARAM lparamKeyData); + + HRESULT InvokeFunc([in] ITfContext *pic, + [in] REFGUID refguidFunc); +} + +// +// ITfFnLMInternal +// +[ + object, + uuid(04B825B1-AC9A-4F7B-B5AD-C7168F1EE445), + pointer_default(unique) +]// +interface ITfFnLMInternal : ITfFnLMProcessor +{ + HRESULT ProcessLattice([in] ITfRange *pRange); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +// +// TFLMLATTELEMENT +// +// +typedef [uuid(1b646efe-3ce3-4ce2-b41f-35b93fe5552f)] struct TF_LMLATTELEMENT +{ + DWORD dwFrameStart; + DWORD dwFrameLen; + + DWORD dwFlags; + [switch_type(DWORD), switch_is(dwFlags)] union + { + [case(0)] INT iCost; + }; + + BSTR bstrText; +} TF_LMLATTELEMENT; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// +// IEnumTfLatticeElements +// +// +[ + object, + uuid(56988052-47DA-4A05-911A-E3D941F17145), + pointer_default(unique) +] +interface IEnumTfLatticeElements : IUnknown +{ + HRESULT Clone([out] IEnumTfLatticeElements **ppEnum); + + HRESULT Next([in] ULONG ulCount, + [out, size_is(ulCount), length_is(*pcFetched)] TF_LMLATTELEMENT *rgsElements, + [out] ULONG *pcFetched); + + HRESULT Reset(); + + HRESULT Skip([in] ULONG ulCount); +} + +// +// ITfLMLattice +// +// +[ + object, + uuid(D4236675-A5BF-4570-9D42-5D6D7B02D59B), + pointer_default(unique) +] +interface ITfLMLattice : IUnknown +{ + HRESULT QueryType([in] REFGUID rguidType, [out] BOOL *pfSupported); + + HRESULT EnumLatticeElements([in] DWORD dwFrameStart, + [in] REFGUID rguidType, + [out] IEnumTfLatticeElements **ppEnum); +} + +// +// ITfFnAdviseText +// +[ + object, + uuid(3527268B-7D53-4DD9-92B7-7296AE461249), + pointer_default(unique) +] +interface ITfFnAdviseText : ITfFunction +{ + HRESULT OnTextUpdate([in] ITfRange *pRange, + [in, size_is(cch)] const WCHAR *pchText, + [in] LONG cch); + + HRESULT OnLatticeUpdate([in] ITfRange *pRange, + [in] ITfLMLattice *pLattice); + +} + +// +// ITfFnSearchCandidateProvider +// +[ + object, + uuid(87a2ad8f-f27b-4920-8501-67602280175d), + pointer_default(unique) +] +interface ITfFnSearchCandidateProvider : ITfFunction +{ + HRESULT GetSearchCandidates( + [in] BSTR bstrQuery, + [in] BSTR bstrApplicationId, + [out] ITfCandidateList **pplist); + + HRESULT SetResult( + [in] BSTR bstrQuery, + [in] BSTR bstrApplicationID, + [in] BSTR bstrResult); +} + +// GUID_IntegrationStyle_SearchBox: {E6D1BD11-82F7-4903-AE21-1A6397CDE2EB} +cpp_quote("// The applications has a search box with a horizontal candidate list below that and may have search suggestions below the candidate list") +cpp_quote("DEFINE_GUID(GUID_INTEGRATIONSTYLE_SEARCHBOX, 0xe6d1bd11, 0x82f7, 0x4903, 0xae, 0x21, 0x1a, 0x63, 0x97, 0xcd, 0xe2, 0xeb);") + +// Integratable candidate list selection styles +typedef [uuid(AF8F5D86-0615-4af3-90FA-5DCBB407A5D4)] enum +{ + STYLE_ACTIVE_SELECTION = 0x0, + STYLE_IMPLIED_SELECTION = 0x1 +} TfIntegratableCandidateListSelectionStyle; + +// ITfIntegratableCandidateListUIElement +// - Allows IMEs to adjust search keyboarding behavior +// - Implemented by IME +// +[ + object, + uuid(C7A6F54F-B180-416F-B2BF-7BF2E4683D7B), + pointer_default(unique) +] +interface ITfIntegratableCandidateListUIElement : IUnknown +{ + // + // SetIntegrationStyle + // If the Application wants a keyboard integrated experience, then can set a GUID for the type of + // Integration experience they want. If the Text Service supports the integration style, they should return S_OK. + // If it is not supported, they should return E_NOTIMPL. The when called, Text Service may adjust its respond to + // keyboard interaction for the lifetime of the ITfCandidateListUIElement object (e.g. until ITfUIElementSink::EndUIElement()). + // + HRESULT SetIntegrationStyle([in] GUID guidIntegrationStyle); + + // + // GetSelectionStyle + // Active selection style usually indicates that selection can be changed with the arrow keys, + // while implied selection style indicates the default selection key will choose it. + // If the Application supports changing selection styles, this should be called when UpdateUIElement() has the selection update flag specified. + // + HRESULT GetSelectionStyle( + [out] TfIntegratableCandidateListSelectionStyle *ptfSelectionStyle); + + // + // OnKeyDown + // Gives the Application a chance to ask the Text Service if it wants to process a given key in an integration style. Exact behavior + // and when this is called can depend on the integration style. If the Text Service returns *pfEaten=TRUE, then the Application should do + // no processing of the key; if FALSE is returned, the Application can perform its own action in response to the key. + // + // GUID_INTEGRATIONSTYLE_SEARCHBOX: Allows implementation of a keyboarding experience in which the user can move perceived keyboard focus + // from search box to candidate list to search suggestions; the Text Service gets a chance to process certain keys + // like VK_UP/VK_DOWN before search handles them to change its internal state. + // + HRESULT OnKeyDown( + [in] WPARAM wParam, + [in] LPARAM lParam, + [out] BOOL *pfEaten); + + // + // ShowCandidateNumbers + // Indicate if showing candidate numbers + // + HRESULT ShowCandidateNumbers( + [out] BOOL *pfShow); + + // + // FinalizeExactCompositionString + // Allows the Application to tell the Text Service that it should finalize the current composition with the exact + // value currently shown to the user and no automatic conversion of the first candidate. This allows the application to move focus + // to suggestions below the candidate list without the string changing. + // + HRESULT FinalizeExactCompositionString(); + +} + +// +// ITfFnGetPreferredTouchKeyboardLayout +// +// Note that the TKB preferred layouts are always in the context of a TSF profile +// and so are implicitly associted with a langid that is defined in the active profile. +// Therefore, the same value for a layout may refer to a different layout +// depending on the langid with which it is associated. +// Additionally, a layout may only be valid for certain languages. +// +[ + object, + uuid(5F309A41-590A-4ACC-A97F-D8EFFF13FDFC), + pointer_default(unique) +] +interface ITfFnGetPreferredTouchKeyboardLayout : ITfFunction +{ + typedef [uuid(E9967127-FB3C-4978-9008-FB3060D92730)] enum + { + TKBLT_UNDEFINED = 0, + TKBLT_CLASSIC = 1, + TKBLT_OPTIMIZED = 2, + } TKBLayoutType; + + HRESULT GetLayout([out] TKBLayoutType *pTKBLayoutType, WORD *pwPreferredLayoutId); +} + +// ITfFnGetLinguisticAlternates +[ + object, + local, + uuid(ea163ce2-7a65-4506-82a3-c528215da64e), + pointer_default(unique) +] +interface ITfFnGetLinguisticAlternates : ITfFunction +{ + HRESULT GetAlternates([in, annotation("_In_")] ITfRange *pRange, [out, annotation("_COM_Outptr_")] ITfCandidateList **ppCandidateList); +} + +// IUIManagerEventSink +[ + object, + local, + uuid(cd91d690-a7e8-4265-9b38-8bb3bbaba7de), + pointer_default(unique) +] +interface IUIManagerEventSink : IUnknown +{ + HRESULT OnWindowOpening([in, annotation("_In_")] RECT *prcBounds); + HRESULT OnWindowOpened([in, annotation("_In_")] RECT *prcBounds); + HRESULT OnWindowUpdating([in, annotation("_In_")] RECT *prcUpdatedBounds); + HRESULT OnWindowUpdated([in, annotation("_In_")] RECT *prcUpdatedBounds); + HRESULT OnWindowClosing(); + HRESULT OnWindowClosed(); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +cpp_quote("#define TKBL_UNDEFINED 0") +cpp_quote("#define TKBL_CLASSIC_TRADITIONAL_CHINESE_PHONETIC 0x0404") +cpp_quote("#define TKBL_CLASSIC_TRADITIONAL_CHINESE_CHANGJIE 0xF042") +cpp_quote("#define TKBL_CLASSIC_TRADITIONAL_CHINESE_DAYI 0xF043") +cpp_quote("#define TKBL_OPT_JAPANESE_ABC 0x0411") +cpp_quote("#define TKBL_OPT_KOREAN_HANGUL_2_BULSIK 0x0412") +cpp_quote("#define TKBL_OPT_SIMPLIFIED_CHINESE_PINYIN 0x0804") +cpp_quote("#define TKBL_OPT_TRADITIONAL_CHINESE_PHONETIC 0x0404") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +cpp_quote("#endif // CTFFUNC_DEFINED") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfspui.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfspui.h new file mode 100644 index 0000000000000000000000000000000000000000..48429972b868f671296e2bf18268685c2a9bf4e6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfspui.h @@ -0,0 +1,239 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ctfspui_h__ +#define __ctfspui_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ITfSpeechUIServer_FWD_DEFINED__ +#define __ITfSpeechUIServer_FWD_DEFINED__ +typedef interface ITfSpeechUIServer ITfSpeechUIServer; + +#endif /* __ITfSpeechUIServer_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "msctf.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ctfspui_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// ctfspui.h + + +// Speech UI declarations. + +//=--------------------------------------------------------------------------= +// (C) Copyright 1995-2001 Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR TFPLIED, INCLUDING BUT NOT LIMITED TO +// THE TFPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#ifndef CTFSPUI_DEFINED +#define CTFSPUI_DEFINED + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +EXTERN_C const CLSID CLSID_SpeechUIServer; + + +extern RPC_IF_HANDLE __MIDL_itf_ctfspui_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctfspui_0000_0000_v0_0_s_ifspec; + +#ifndef __ITfSpeechUIServer_INTERFACE_DEFINED__ +#define __ITfSpeechUIServer_INTERFACE_DEFINED__ + +/* interface ITfSpeechUIServer */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfSpeechUIServer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("90e9a944-9244-489f-a78f-de67afc013a7") + ITfSpeechUIServer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowUI( + /* [in] */ BOOL fShow) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateBalloon( + /* [in] */ TfLBBalloonStyle style, + /* [size_is][in] */ __RPC__in_ecount_full(cch) const WCHAR *pch, + /* [in] */ ULONG cch) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfSpeechUIServerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfSpeechUIServer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfSpeechUIServer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfSpeechUIServer * This); + + DECLSPEC_XFGVIRT(ITfSpeechUIServer, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in ITfSpeechUIServer * This); + + DECLSPEC_XFGVIRT(ITfSpeechUIServer, ShowUI) + HRESULT ( STDMETHODCALLTYPE *ShowUI )( + __RPC__in ITfSpeechUIServer * This, + /* [in] */ BOOL fShow); + + DECLSPEC_XFGVIRT(ITfSpeechUIServer, UpdateBalloon) + HRESULT ( STDMETHODCALLTYPE *UpdateBalloon )( + __RPC__in ITfSpeechUIServer * This, + /* [in] */ TfLBBalloonStyle style, + /* [size_is][in] */ __RPC__in_ecount_full(cch) const WCHAR *pch, + /* [in] */ ULONG cch); + + END_INTERFACE + } ITfSpeechUIServerVtbl; + + interface ITfSpeechUIServer + { + CONST_VTBL struct ITfSpeechUIServerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfSpeechUIServer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfSpeechUIServer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfSpeechUIServer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfSpeechUIServer_Initialize(This) \ + ( (This)->lpVtbl -> Initialize(This) ) + +#define ITfSpeechUIServer_ShowUI(This,fShow) \ + ( (This)->lpVtbl -> ShowUI(This,fShow) ) + +#define ITfSpeechUIServer_UpdateBalloon(This,style,pch,cch) \ + ( (This)->lpVtbl -> UpdateBalloon(This,style,pch,cch) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfSpeechUIServer_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctfspui_0000_0001 */ +/* [local] */ + + +DEFINE_GUID(IID_ITfSpeechUIServer, 0x90e9a944, 0x9244, 0x489f, 0xa7, 0x8f, 0xde, 0x67, 0xaf, 0xc0, 0x13, 0xa7 ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // CTFSPUI_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_ctfspui_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctfspui_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfspui.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfspui.idl new file mode 100644 index 0000000000000000000000000000000000000000..da2b5b0597d0d4d83d4f52b19a8f4df589ee5409 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfspui.idl @@ -0,0 +1,95 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992-2001. +// +// File: ctfspui.idl +// +// Contents: Speech UI declarations. +// +//-------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// ctfspui.h") +cpp_quote("") +cpp_quote("") +cpp_quote("// Speech UI declarations.") +cpp_quote("") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 1995-2001 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR TFPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE TFPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") + +cpp_quote("#ifndef CTFSPUI_DEFINED") +cpp_quote("#define CTFSPUI_DEFINED") +cpp_quote("") +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("") +cpp_quote("#ifdef __cplusplus") +cpp_quote("extern \"C\" {") +cpp_quote("#endif /* __cplusplus */") +cpp_quote("") + + +cpp_quote("#ifdef __cplusplus") +cpp_quote("}") +cpp_quote("#endif /* __cplusplus */") + + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "msctf.idl"; + +// +// exported CLSID +// +cpp_quote("EXTERN_C const CLSID CLSID_SpeechUIServer;") + +// +// ITfSpeechUIServer +// +// Implemented by TIP. +// +[ + object, + uuid(90e9a944-9244-489f-a78f-de67afc013a7), + pointer_default(unique) +] +interface ITfSpeechUIServer : IUnknown +{ + HRESULT Initialize(); + HRESULT ShowUI([in] BOOL fShow); + HRESULT UpdateBalloon([in] TfLBBalloonStyle style, + [in, size_is(cch)] const WCHAR *pch, + [in] ULONG cch); +} + + +// =-------------------------------------------------------------------------= +// +// C L S I D / I I D D E F I N I T I O N +// +// =-------------------------------------------------------------------------= + +cpp_quote("") + +cpp_quote("DEFINE_GUID(IID_ITfSpeechUIServer, 0x90e9a944, 0x9244, 0x489f, 0xa7, 0x8f, 0xde, 0x67, 0xaf, 0xc0, 0x13, 0xa7 );") + + +cpp_quote("") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("") + +cpp_quote("#endif // CTFSPUI_DEFINED") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfutb.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfutb.h new file mode 100644 index 0000000000000000000000000000000000000000..2ddd6497c7d7972c39060003a5854ded7b31d25a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfutb.h @@ -0,0 +1,2469 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ctfutb_h__ +#define __ctfutb_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ITfLangBarMgr_FWD_DEFINED__ +#define __ITfLangBarMgr_FWD_DEFINED__ +typedef interface ITfLangBarMgr ITfLangBarMgr; + +#endif /* __ITfLangBarMgr_FWD_DEFINED__ */ + + +#ifndef __ITfLangBarEventSink_FWD_DEFINED__ +#define __ITfLangBarEventSink_FWD_DEFINED__ +typedef interface ITfLangBarEventSink ITfLangBarEventSink; + +#endif /* __ITfLangBarEventSink_FWD_DEFINED__ */ + + +#ifndef __ITfLangBarItemSink_FWD_DEFINED__ +#define __ITfLangBarItemSink_FWD_DEFINED__ +typedef interface ITfLangBarItemSink ITfLangBarItemSink; + +#endif /* __ITfLangBarItemSink_FWD_DEFINED__ */ + + +#ifndef __IEnumTfLangBarItems_FWD_DEFINED__ +#define __IEnumTfLangBarItems_FWD_DEFINED__ +typedef interface IEnumTfLangBarItems IEnumTfLangBarItems; + +#endif /* __IEnumTfLangBarItems_FWD_DEFINED__ */ + + +#ifndef __ITfLangBarItemMgr_FWD_DEFINED__ +#define __ITfLangBarItemMgr_FWD_DEFINED__ +typedef interface ITfLangBarItemMgr ITfLangBarItemMgr; + +#endif /* __ITfLangBarItemMgr_FWD_DEFINED__ */ + + +#ifndef __ITfLangBarItem_FWD_DEFINED__ +#define __ITfLangBarItem_FWD_DEFINED__ +typedef interface ITfLangBarItem ITfLangBarItem; + +#endif /* __ITfLangBarItem_FWD_DEFINED__ */ + + +#ifndef __ITfSystemLangBarItemSink_FWD_DEFINED__ +#define __ITfSystemLangBarItemSink_FWD_DEFINED__ +typedef interface ITfSystemLangBarItemSink ITfSystemLangBarItemSink; + +#endif /* __ITfSystemLangBarItemSink_FWD_DEFINED__ */ + + +#ifndef __ITfSystemLangBarItem_FWD_DEFINED__ +#define __ITfSystemLangBarItem_FWD_DEFINED__ +typedef interface ITfSystemLangBarItem ITfSystemLangBarItem; + +#endif /* __ITfSystemLangBarItem_FWD_DEFINED__ */ + + +#ifndef __ITfSystemLangBarItemText_FWD_DEFINED__ +#define __ITfSystemLangBarItemText_FWD_DEFINED__ +typedef interface ITfSystemLangBarItemText ITfSystemLangBarItemText; + +#endif /* __ITfSystemLangBarItemText_FWD_DEFINED__ */ + + +#ifndef __ITfSystemDeviceTypeLangBarItem_FWD_DEFINED__ +#define __ITfSystemDeviceTypeLangBarItem_FWD_DEFINED__ +typedef interface ITfSystemDeviceTypeLangBarItem ITfSystemDeviceTypeLangBarItem; + +#endif /* __ITfSystemDeviceTypeLangBarItem_FWD_DEFINED__ */ + + +#ifndef __ITfLangBarItemButton_FWD_DEFINED__ +#define __ITfLangBarItemButton_FWD_DEFINED__ +typedef interface ITfLangBarItemButton ITfLangBarItemButton; + +#endif /* __ITfLangBarItemButton_FWD_DEFINED__ */ + + +#ifndef __ITfLangBarItemBitmapButton_FWD_DEFINED__ +#define __ITfLangBarItemBitmapButton_FWD_DEFINED__ +typedef interface ITfLangBarItemBitmapButton ITfLangBarItemBitmapButton; + +#endif /* __ITfLangBarItemBitmapButton_FWD_DEFINED__ */ + + +#ifndef __ITfLangBarItemBitmap_FWD_DEFINED__ +#define __ITfLangBarItemBitmap_FWD_DEFINED__ +typedef interface ITfLangBarItemBitmap ITfLangBarItemBitmap; + +#endif /* __ITfLangBarItemBitmap_FWD_DEFINED__ */ + + +#ifndef __ITfLangBarItemBalloon_FWD_DEFINED__ +#define __ITfLangBarItemBalloon_FWD_DEFINED__ +typedef interface ITfLangBarItemBalloon ITfLangBarItemBalloon; + +#endif /* __ITfLangBarItemBalloon_FWD_DEFINED__ */ + + +#ifndef __ITfMenu_FWD_DEFINED__ +#define __ITfMenu_FWD_DEFINED__ +typedef interface ITfMenu ITfMenu; + +#endif /* __ITfMenu_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "msctf.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ctfutb_0000_0000 */ +/* [local] */ + +#include +//=--------------------------------------------------------------------------= +// ctfutb.h + + +// Text Framework declarations. + +//=--------------------------------------------------------------------------= +// (C) Copyright 1995-2001 Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR TFPLIED, INCLUDING BUT NOT LIMITED TO +// THE TFPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#ifndef CTFUTB_DEFINED +#define CTFUTB_DEFINED + +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#define TF_FLOATINGLANGBAR_WNDTITLEW L"TF_FloatingLangBar_WndTitle" +#define TF_FLOATINGLANGBAR_WNDTITLEA "TF_FloatingLangBar_WndTitle" +#ifdef UNICODE +#define TF_FLOATINGLANGBAR_WNDTITLE TF_FLOATINGLANGBAR_WNDTITLEW +#else +#define TF_FLOATINGLANGBAR_WNDTITLE TF_FLOATINGLANGBAR_WNDTITLEA +#endif +#define TF_LBI_ICON 0x00000001 +#define TF_LBI_TEXT 0x00000002 +#define TF_LBI_TOOLTIP 0x00000004 +#define TF_LBI_BITMAP 0x00000008 +#define TF_LBI_BALLOON 0x00000010 +#define TF_LBI_CUSTOMUI 0x00000020 +#define TF_LBI_BTNALL (TF_LBI_ICON | TF_LBI_TEXT | TF_LBI_TOOLTIP) +#define TF_LBI_BMPBTNALL (TF_LBI_BITMAP | TF_LBI_TEXT | TF_LBI_TOOLTIP) +#define TF_LBI_BMPALL (TF_LBI_BITMAP | TF_LBI_TOOLTIP) +#define TF_LBI_STATUS 0x00010000 +#define TF_LBI_STYLE_HIDDENSTATUSCONTROL 0x00000001 +#define TF_LBI_STYLE_SHOWNINTRAY 0x00000002 +#define TF_LBI_STYLE_HIDEONNOOTHERITEMS 0x00000004 +#define TF_LBI_STYLE_SHOWNINTRAYONLY 0x00000008 +#define TF_LBI_STYLE_HIDDENBYDEFAULT 0x00000010 +#define TF_LBI_STYLE_TEXTCOLORICON 0x00000020 +#define TF_LBI_STYLE_BTN_BUTTON 0x00010000 +#define TF_LBI_STYLE_BTN_MENU 0x00020000 +#define TF_LBI_STYLE_BTN_TOGGLE 0x00040000 +#define TF_LBI_STATUS_HIDDEN 0x00000001 +#define TF_LBI_STATUS_DISABLED 0x00000002 +#define TF_LBI_STATUS_BTN_TOGGLED 0x00010000 +#define TF_LBI_BMPF_VERTICAL 0x00000001 +#define TF_SFT_SHOWNORMAL 0x00000001 +#define TF_SFT_DOCK 0x00000002 +#define TF_SFT_MINIMIZED 0x00000004 +#define TF_SFT_HIDDEN 0x00000008 +#define TF_SFT_NOTRANSPARENCY 0x00000010 +#define TF_SFT_LOWTRANSPARENCY 0x00000020 +#define TF_SFT_HIGHTRANSPARENCY 0x00000040 +#define TF_SFT_LABELS 0x00000080 +#define TF_SFT_NOLABELS 0x00000100 +#define TF_SFT_EXTRAICONSONMINIMIZED 0x00000200 +#define TF_SFT_NOEXTRAICONSONMINIMIZED 0x00000400 +#define TF_SFT_DESKBAND 0x00000800 +#define TF_INVALIDMENUITEM (UINT)(-1) +#define TF_DTLBI_USEPROFILEICON 0x00000001 +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0000_v0_0_s_ifspec; + +#ifndef __ITfLangBarMgr_INTERFACE_DEFINED__ +#define __ITfLangBarMgr_INTERFACE_DEFINED__ + +/* interface ITfLangBarMgr */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfLangBarMgr; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("87955690-e627-11d2-8ddb-00105a2799b5") + ITfLangBarMgr : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AdviseEventSink( + /* [in] */ __RPC__in_opt ITfLangBarEventSink *pSink, + /* [in] */ __RPC__in HWND hwnd, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnadviseEventSink( + /* [in] */ DWORD dwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetThreadMarshalInterface( + /* [in] */ DWORD dwThreadId, + /* [in] */ DWORD dwType, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt IUnknown **ppunk) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetThreadLangBarItemMgr( + /* [in] */ DWORD dwThreadId, + /* [out] */ __RPC__deref_out_opt ITfLangBarItemMgr **pplbi, + /* [out] */ __RPC__out DWORD *pdwThreadid) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInputProcessorProfiles( + /* [in] */ DWORD dwThreadId, + /* [out] */ __RPC__deref_out_opt ITfInputProcessorProfiles **ppaip, + /* [out] */ __RPC__out DWORD *pdwThreadid) = 0; + + virtual HRESULT STDMETHODCALLTYPE RestoreLastFocus( + /* [out] */ __RPC__out DWORD *pdwThreadId, + /* [in] */ BOOL fPrev) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetModalInput( + /* [in] */ __RPC__in_opt ITfLangBarEventSink *pSink, + /* [in] */ DWORD dwThreadId, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowFloating( + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetShowFloatingStatus( + /* [out] */ __RPC__out DWORD *pdwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfLangBarMgrVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfLangBarMgr * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfLangBarMgr * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfLangBarMgr * This); + + DECLSPEC_XFGVIRT(ITfLangBarMgr, AdviseEventSink) + HRESULT ( STDMETHODCALLTYPE *AdviseEventSink )( + __RPC__in ITfLangBarMgr * This, + /* [in] */ __RPC__in_opt ITfLangBarEventSink *pSink, + /* [in] */ __RPC__in HWND hwnd, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(ITfLangBarMgr, UnadviseEventSink) + HRESULT ( STDMETHODCALLTYPE *UnadviseEventSink )( + __RPC__in ITfLangBarMgr * This, + /* [in] */ DWORD dwCookie); + + DECLSPEC_XFGVIRT(ITfLangBarMgr, GetThreadMarshalInterface) + HRESULT ( STDMETHODCALLTYPE *GetThreadMarshalInterface )( + __RPC__in ITfLangBarMgr * This, + /* [in] */ DWORD dwThreadId, + /* [in] */ DWORD dwType, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt IUnknown **ppunk); + + DECLSPEC_XFGVIRT(ITfLangBarMgr, GetThreadLangBarItemMgr) + HRESULT ( STDMETHODCALLTYPE *GetThreadLangBarItemMgr )( + __RPC__in ITfLangBarMgr * This, + /* [in] */ DWORD dwThreadId, + /* [out] */ __RPC__deref_out_opt ITfLangBarItemMgr **pplbi, + /* [out] */ __RPC__out DWORD *pdwThreadid); + + DECLSPEC_XFGVIRT(ITfLangBarMgr, GetInputProcessorProfiles) + HRESULT ( STDMETHODCALLTYPE *GetInputProcessorProfiles )( + __RPC__in ITfLangBarMgr * This, + /* [in] */ DWORD dwThreadId, + /* [out] */ __RPC__deref_out_opt ITfInputProcessorProfiles **ppaip, + /* [out] */ __RPC__out DWORD *pdwThreadid); + + DECLSPEC_XFGVIRT(ITfLangBarMgr, RestoreLastFocus) + HRESULT ( STDMETHODCALLTYPE *RestoreLastFocus )( + __RPC__in ITfLangBarMgr * This, + /* [out] */ __RPC__out DWORD *pdwThreadId, + /* [in] */ BOOL fPrev); + + DECLSPEC_XFGVIRT(ITfLangBarMgr, SetModalInput) + HRESULT ( STDMETHODCALLTYPE *SetModalInput )( + __RPC__in ITfLangBarMgr * This, + /* [in] */ __RPC__in_opt ITfLangBarEventSink *pSink, + /* [in] */ DWORD dwThreadId, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(ITfLangBarMgr, ShowFloating) + HRESULT ( STDMETHODCALLTYPE *ShowFloating )( + __RPC__in ITfLangBarMgr * This, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(ITfLangBarMgr, GetShowFloatingStatus) + HRESULT ( STDMETHODCALLTYPE *GetShowFloatingStatus )( + __RPC__in ITfLangBarMgr * This, + /* [out] */ __RPC__out DWORD *pdwFlags); + + END_INTERFACE + } ITfLangBarMgrVtbl; + + interface ITfLangBarMgr + { + CONST_VTBL struct ITfLangBarMgrVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfLangBarMgr_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfLangBarMgr_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfLangBarMgr_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfLangBarMgr_AdviseEventSink(This,pSink,hwnd,dwFlags,pdwCookie) \ + ( (This)->lpVtbl -> AdviseEventSink(This,pSink,hwnd,dwFlags,pdwCookie) ) + +#define ITfLangBarMgr_UnadviseEventSink(This,dwCookie) \ + ( (This)->lpVtbl -> UnadviseEventSink(This,dwCookie) ) + +#define ITfLangBarMgr_GetThreadMarshalInterface(This,dwThreadId,dwType,riid,ppunk) \ + ( (This)->lpVtbl -> GetThreadMarshalInterface(This,dwThreadId,dwType,riid,ppunk) ) + +#define ITfLangBarMgr_GetThreadLangBarItemMgr(This,dwThreadId,pplbi,pdwThreadid) \ + ( (This)->lpVtbl -> GetThreadLangBarItemMgr(This,dwThreadId,pplbi,pdwThreadid) ) + +#define ITfLangBarMgr_GetInputProcessorProfiles(This,dwThreadId,ppaip,pdwThreadid) \ + ( (This)->lpVtbl -> GetInputProcessorProfiles(This,dwThreadId,ppaip,pdwThreadid) ) + +#define ITfLangBarMgr_RestoreLastFocus(This,pdwThreadId,fPrev) \ + ( (This)->lpVtbl -> RestoreLastFocus(This,pdwThreadId,fPrev) ) + +#define ITfLangBarMgr_SetModalInput(This,pSink,dwThreadId,dwFlags) \ + ( (This)->lpVtbl -> SetModalInput(This,pSink,dwThreadId,dwFlags) ) + +#define ITfLangBarMgr_ShowFloating(This,dwFlags) \ + ( (This)->lpVtbl -> ShowFloating(This,dwFlags) ) + +#define ITfLangBarMgr_GetShowFloatingStatus(This,pdwFlags) \ + ( (This)->lpVtbl -> GetShowFloatingStatus(This,pdwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfLangBarMgr_INTERFACE_DEFINED__ */ + + +#ifndef __ITfLangBarEventSink_INTERFACE_DEFINED__ +#define __ITfLangBarEventSink_INTERFACE_DEFINED__ + +/* interface ITfLangBarEventSink */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfLangBarEventSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("18a4e900-e0ae-11d2-afdd-00105a2799b5") + ITfLangBarEventSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnSetFocus( + /* [in] */ DWORD dwThreadId) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadTerminate( + /* [in] */ DWORD dwThreadId) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnThreadItemChange( + /* [in] */ DWORD dwThreadId) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnModalInput( + /* [in] */ DWORD dwThreadId, + /* [in] */ UINT uMsg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowFloating( + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItemFloatingRect( + /* [in] */ DWORD dwThreadId, + /* [in] */ __RPC__in REFGUID rguid, + /* [out] */ __RPC__out RECT *prc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfLangBarEventSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfLangBarEventSink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfLangBarEventSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfLangBarEventSink * This); + + DECLSPEC_XFGVIRT(ITfLangBarEventSink, OnSetFocus) + HRESULT ( STDMETHODCALLTYPE *OnSetFocus )( + __RPC__in ITfLangBarEventSink * This, + /* [in] */ DWORD dwThreadId); + + DECLSPEC_XFGVIRT(ITfLangBarEventSink, OnThreadTerminate) + HRESULT ( STDMETHODCALLTYPE *OnThreadTerminate )( + __RPC__in ITfLangBarEventSink * This, + /* [in] */ DWORD dwThreadId); + + DECLSPEC_XFGVIRT(ITfLangBarEventSink, OnThreadItemChange) + HRESULT ( STDMETHODCALLTYPE *OnThreadItemChange )( + __RPC__in ITfLangBarEventSink * This, + /* [in] */ DWORD dwThreadId); + + DECLSPEC_XFGVIRT(ITfLangBarEventSink, OnModalInput) + HRESULT ( STDMETHODCALLTYPE *OnModalInput )( + __RPC__in ITfLangBarEventSink * This, + /* [in] */ DWORD dwThreadId, + /* [in] */ UINT uMsg, + /* [in] */ WPARAM wParam, + /* [in] */ LPARAM lParam); + + DECLSPEC_XFGVIRT(ITfLangBarEventSink, ShowFloating) + HRESULT ( STDMETHODCALLTYPE *ShowFloating )( + __RPC__in ITfLangBarEventSink * This, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(ITfLangBarEventSink, GetItemFloatingRect) + HRESULT ( STDMETHODCALLTYPE *GetItemFloatingRect )( + __RPC__in ITfLangBarEventSink * This, + /* [in] */ DWORD dwThreadId, + /* [in] */ __RPC__in REFGUID rguid, + /* [out] */ __RPC__out RECT *prc); + + END_INTERFACE + } ITfLangBarEventSinkVtbl; + + interface ITfLangBarEventSink + { + CONST_VTBL struct ITfLangBarEventSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfLangBarEventSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfLangBarEventSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfLangBarEventSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfLangBarEventSink_OnSetFocus(This,dwThreadId) \ + ( (This)->lpVtbl -> OnSetFocus(This,dwThreadId) ) + +#define ITfLangBarEventSink_OnThreadTerminate(This,dwThreadId) \ + ( (This)->lpVtbl -> OnThreadTerminate(This,dwThreadId) ) + +#define ITfLangBarEventSink_OnThreadItemChange(This,dwThreadId) \ + ( (This)->lpVtbl -> OnThreadItemChange(This,dwThreadId) ) + +#define ITfLangBarEventSink_OnModalInput(This,dwThreadId,uMsg,wParam,lParam) \ + ( (This)->lpVtbl -> OnModalInput(This,dwThreadId,uMsg,wParam,lParam) ) + +#define ITfLangBarEventSink_ShowFloating(This,dwFlags) \ + ( (This)->lpVtbl -> ShowFloating(This,dwFlags) ) + +#define ITfLangBarEventSink_GetItemFloatingRect(This,dwThreadId,rguid,prc) \ + ( (This)->lpVtbl -> GetItemFloatingRect(This,dwThreadId,rguid,prc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfLangBarEventSink_INTERFACE_DEFINED__ */ + + +#ifndef __ITfLangBarItemSink_INTERFACE_DEFINED__ +#define __ITfLangBarItemSink_INTERFACE_DEFINED__ + +/* interface ITfLangBarItemSink */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfLangBarItemSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("57dbe1a0-de25-11d2-afdd-00105a2799b5") + ITfLangBarItemSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnUpdate( + /* [in] */ DWORD dwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfLangBarItemSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfLangBarItemSink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfLangBarItemSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfLangBarItemSink * This); + + DECLSPEC_XFGVIRT(ITfLangBarItemSink, OnUpdate) + HRESULT ( STDMETHODCALLTYPE *OnUpdate )( + __RPC__in ITfLangBarItemSink * This, + /* [in] */ DWORD dwFlags); + + END_INTERFACE + } ITfLangBarItemSinkVtbl; + + interface ITfLangBarItemSink + { + CONST_VTBL struct ITfLangBarItemSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfLangBarItemSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfLangBarItemSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfLangBarItemSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfLangBarItemSink_OnUpdate(This,dwFlags) \ + ( (This)->lpVtbl -> OnUpdate(This,dwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfLangBarItemSink_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumTfLangBarItems_INTERFACE_DEFINED__ +#define __IEnumTfLangBarItems_INTERFACE_DEFINED__ + +/* interface IEnumTfLangBarItems */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IEnumTfLangBarItems; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("583f34d0-de25-11d2-afdd-00105a2799b5") + IEnumTfLangBarItems : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumTfLangBarItems **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG ulCount, + /* [size_is][out] */ __RPC__out_ecount_full(ulCount) ITfLangBarItem **ppItem, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG ulCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumTfLangBarItemsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumTfLangBarItems * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumTfLangBarItems * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumTfLangBarItems * This); + + DECLSPEC_XFGVIRT(IEnumTfLangBarItems, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumTfLangBarItems * This, + /* [out] */ __RPC__deref_out_opt IEnumTfLangBarItems **ppEnum); + + DECLSPEC_XFGVIRT(IEnumTfLangBarItems, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumTfLangBarItems * This, + /* [in] */ ULONG ulCount, + /* [size_is][out] */ __RPC__out_ecount_full(ulCount) ITfLangBarItem **ppItem, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumTfLangBarItems, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumTfLangBarItems * This); + + DECLSPEC_XFGVIRT(IEnumTfLangBarItems, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumTfLangBarItems * This, + /* [in] */ ULONG ulCount); + + END_INTERFACE + } IEnumTfLangBarItemsVtbl; + + interface IEnumTfLangBarItems + { + CONST_VTBL struct IEnumTfLangBarItemsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumTfLangBarItems_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumTfLangBarItems_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumTfLangBarItems_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumTfLangBarItems_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#define IEnumTfLangBarItems_Next(This,ulCount,ppItem,pcFetched) \ + ( (This)->lpVtbl -> Next(This,ulCount,ppItem,pcFetched) ) + +#define IEnumTfLangBarItems_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumTfLangBarItems_Skip(This,ulCount) \ + ( (This)->lpVtbl -> Skip(This,ulCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumTfLangBarItems_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctfutb_0000_0004 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#define TF_LBI_DESC_MAXLEN ( 32 ) + +typedef /* [uuid] */ DECLSPEC_UUID("12a1d29f-a065-440c-9746-eb2002c8bd19") struct TF_LANGBARITEMINFO + { + CLSID clsidService; + GUID guidItem; + DWORD dwStyle; + ULONG ulSort; + WCHAR szDescription[ 32 ]; + } TF_LANGBARITEMINFO; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0004_v0_0_s_ifspec; + +#ifndef __ITfLangBarItemMgr_INTERFACE_DEFINED__ +#define __ITfLangBarItemMgr_INTERFACE_DEFINED__ + +/* interface ITfLangBarItemMgr */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfLangBarItemMgr; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ba468c55-9956-4fb1-a59d-52a7dd7cc6aa") + ITfLangBarItemMgr : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumItems( + /* [out] */ __RPC__deref_out_opt IEnumTfLangBarItems **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItem( + /* [in] */ __RPC__in REFGUID rguid, + /* [out] */ __RPC__deref_out_opt ITfLangBarItem **ppItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddItem( + /* [in] */ __RPC__in_opt ITfLangBarItem *punk) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveItem( + /* [in] */ __RPC__in_opt ITfLangBarItem *punk) = 0; + + virtual HRESULT STDMETHODCALLTYPE AdviseItemSink( + /* [in] */ __RPC__in_opt ITfLangBarItemSink *punk, + /* [out] */ __RPC__out DWORD *pdwCookie, + /* [in] */ __RPC__in REFGUID rguidItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnadviseItemSink( + /* [in] */ DWORD dwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItemFloatingRect( + /* [in] */ DWORD dwThreadId, + /* [in] */ __RPC__in REFGUID rguid, + /* [out] */ __RPC__out RECT *prc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItemsStatus( + /* [in] */ ULONG ulCount, + /* [size_is][in] */ __RPC__in_ecount_full(ulCount) const GUID *prgguid, + /* [size_is][out] */ __RPC__out_ecount_full(ulCount) DWORD *pdwStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItemNum( + /* [out] */ __RPC__out ULONG *pulCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItems( + /* [in] */ ULONG ulCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) ITfLangBarItem **ppItem, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) TF_LANGBARITEMINFO *pInfo, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) DWORD *pdwStatus, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE AdviseItemsSink( + /* [in] */ ULONG ulCount, + /* [size_is][in] */ __RPC__in_ecount_full(ulCount) ITfLangBarItemSink **ppunk, + /* [size_is][in] */ __RPC__in_ecount_full(ulCount) const GUID *pguidItem, + /* [size_is][out] */ __RPC__out_ecount_full(ulCount) DWORD *pdwCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnadviseItemsSink( + /* [in] */ ULONG ulCount, + /* [size_is][in] */ __RPC__in_ecount_full(ulCount) DWORD *pdwCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfLangBarItemMgrVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfLangBarItemMgr * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfLangBarItemMgr * This); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, EnumItems) + HRESULT ( STDMETHODCALLTYPE *EnumItems )( + __RPC__in ITfLangBarItemMgr * This, + /* [out] */ __RPC__deref_out_opt IEnumTfLangBarItems **ppEnum); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, GetItem) + HRESULT ( STDMETHODCALLTYPE *GetItem )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ __RPC__in REFGUID rguid, + /* [out] */ __RPC__deref_out_opt ITfLangBarItem **ppItem); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, AddItem) + HRESULT ( STDMETHODCALLTYPE *AddItem )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ __RPC__in_opt ITfLangBarItem *punk); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, RemoveItem) + HRESULT ( STDMETHODCALLTYPE *RemoveItem )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ __RPC__in_opt ITfLangBarItem *punk); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, AdviseItemSink) + HRESULT ( STDMETHODCALLTYPE *AdviseItemSink )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ __RPC__in_opt ITfLangBarItemSink *punk, + /* [out] */ __RPC__out DWORD *pdwCookie, + /* [in] */ __RPC__in REFGUID rguidItem); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, UnadviseItemSink) + HRESULT ( STDMETHODCALLTYPE *UnadviseItemSink )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ DWORD dwCookie); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, GetItemFloatingRect) + HRESULT ( STDMETHODCALLTYPE *GetItemFloatingRect )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ DWORD dwThreadId, + /* [in] */ __RPC__in REFGUID rguid, + /* [out] */ __RPC__out RECT *prc); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, GetItemsStatus) + HRESULT ( STDMETHODCALLTYPE *GetItemsStatus )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ ULONG ulCount, + /* [size_is][in] */ __RPC__in_ecount_full(ulCount) const GUID *prgguid, + /* [size_is][out] */ __RPC__out_ecount_full(ulCount) DWORD *pdwStatus); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, GetItemNum) + HRESULT ( STDMETHODCALLTYPE *GetItemNum )( + __RPC__in ITfLangBarItemMgr * This, + /* [out] */ __RPC__out ULONG *pulCount); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, GetItems) + HRESULT ( STDMETHODCALLTYPE *GetItems )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ ULONG ulCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) ITfLangBarItem **ppItem, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) TF_LANGBARITEMINFO *pInfo, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulCount, *pcFetched) DWORD *pdwStatus, + /* [unique][out][in] */ __RPC__inout_opt ULONG *pcFetched); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, AdviseItemsSink) + HRESULT ( STDMETHODCALLTYPE *AdviseItemsSink )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ ULONG ulCount, + /* [size_is][in] */ __RPC__in_ecount_full(ulCount) ITfLangBarItemSink **ppunk, + /* [size_is][in] */ __RPC__in_ecount_full(ulCount) const GUID *pguidItem, + /* [size_is][out] */ __RPC__out_ecount_full(ulCount) DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(ITfLangBarItemMgr, UnadviseItemsSink) + HRESULT ( STDMETHODCALLTYPE *UnadviseItemsSink )( + __RPC__in ITfLangBarItemMgr * This, + /* [in] */ ULONG ulCount, + /* [size_is][in] */ __RPC__in_ecount_full(ulCount) DWORD *pdwCookie); + + END_INTERFACE + } ITfLangBarItemMgrVtbl; + + interface ITfLangBarItemMgr + { + CONST_VTBL struct ITfLangBarItemMgrVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfLangBarItemMgr_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfLangBarItemMgr_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfLangBarItemMgr_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfLangBarItemMgr_EnumItems(This,ppEnum) \ + ( (This)->lpVtbl -> EnumItems(This,ppEnum) ) + +#define ITfLangBarItemMgr_GetItem(This,rguid,ppItem) \ + ( (This)->lpVtbl -> GetItem(This,rguid,ppItem) ) + +#define ITfLangBarItemMgr_AddItem(This,punk) \ + ( (This)->lpVtbl -> AddItem(This,punk) ) + +#define ITfLangBarItemMgr_RemoveItem(This,punk) \ + ( (This)->lpVtbl -> RemoveItem(This,punk) ) + +#define ITfLangBarItemMgr_AdviseItemSink(This,punk,pdwCookie,rguidItem) \ + ( (This)->lpVtbl -> AdviseItemSink(This,punk,pdwCookie,rguidItem) ) + +#define ITfLangBarItemMgr_UnadviseItemSink(This,dwCookie) \ + ( (This)->lpVtbl -> UnadviseItemSink(This,dwCookie) ) + +#define ITfLangBarItemMgr_GetItemFloatingRect(This,dwThreadId,rguid,prc) \ + ( (This)->lpVtbl -> GetItemFloatingRect(This,dwThreadId,rguid,prc) ) + +#define ITfLangBarItemMgr_GetItemsStatus(This,ulCount,prgguid,pdwStatus) \ + ( (This)->lpVtbl -> GetItemsStatus(This,ulCount,prgguid,pdwStatus) ) + +#define ITfLangBarItemMgr_GetItemNum(This,pulCount) \ + ( (This)->lpVtbl -> GetItemNum(This,pulCount) ) + +#define ITfLangBarItemMgr_GetItems(This,ulCount,ppItem,pInfo,pdwStatus,pcFetched) \ + ( (This)->lpVtbl -> GetItems(This,ulCount,ppItem,pInfo,pdwStatus,pcFetched) ) + +#define ITfLangBarItemMgr_AdviseItemsSink(This,ulCount,ppunk,pguidItem,pdwCookie) \ + ( (This)->lpVtbl -> AdviseItemsSink(This,ulCount,ppunk,pguidItem,pdwCookie) ) + +#define ITfLangBarItemMgr_UnadviseItemsSink(This,ulCount,pdwCookie) \ + ( (This)->lpVtbl -> UnadviseItemsSink(This,ulCount,pdwCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfLangBarItemMgr_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctfutb_0000_0005 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0005_v0_0_s_ifspec; + +#ifndef __ITfLangBarItem_INTERFACE_DEFINED__ +#define __ITfLangBarItem_INTERFACE_DEFINED__ + +/* interface ITfLangBarItem */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfLangBarItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("73540d69-edeb-4ee9-96c9-23aa30b25916") + ITfLangBarItem : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetInfo( + /* [out] */ __RPC__out TF_LANGBARITEMINFO *pInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatus( + /* [out] */ __RPC__out DWORD *pdwStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE Show( + /* [in] */ BOOL fShow) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTooltipString( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrToolTip) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfLangBarItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfLangBarItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfLangBarItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfLangBarItem * This); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetInfo) + HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in ITfLangBarItem * This, + /* [out] */ __RPC__out TF_LANGBARITEMINFO *pInfo); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in ITfLangBarItem * This, + /* [out] */ __RPC__out DWORD *pdwStatus); + + DECLSPEC_XFGVIRT(ITfLangBarItem, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in ITfLangBarItem * This, + /* [in] */ BOOL fShow); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetTooltipString) + HRESULT ( STDMETHODCALLTYPE *GetTooltipString )( + __RPC__in ITfLangBarItem * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrToolTip); + + END_INTERFACE + } ITfLangBarItemVtbl; + + interface ITfLangBarItem + { + CONST_VTBL struct ITfLangBarItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfLangBarItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfLangBarItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfLangBarItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfLangBarItem_GetInfo(This,pInfo) \ + ( (This)->lpVtbl -> GetInfo(This,pInfo) ) + +#define ITfLangBarItem_GetStatus(This,pdwStatus) \ + ( (This)->lpVtbl -> GetStatus(This,pdwStatus) ) + +#define ITfLangBarItem_Show(This,fShow) \ + ( (This)->lpVtbl -> Show(This,fShow) ) + +#define ITfLangBarItem_GetTooltipString(This,pbstrToolTip) \ + ( (This)->lpVtbl -> GetTooltipString(This,pbstrToolTip) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfLangBarItem_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctfutb_0000_0006 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0006_v0_0_s_ifspec; + +#ifndef __ITfSystemLangBarItemSink_INTERFACE_DEFINED__ +#define __ITfSystemLangBarItemSink_INTERFACE_DEFINED__ + +/* interface ITfSystemLangBarItemSink */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfSystemLangBarItemSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1449d9ab-13cf-4687-aa3e-8d8b18574396") + ITfSystemLangBarItemSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InitMenu( + /* [in] */ __RPC__in_opt ITfMenu *pMenu) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnMenuSelect( + /* [in] */ UINT wID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfSystemLangBarItemSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfSystemLangBarItemSink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfSystemLangBarItemSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfSystemLangBarItemSink * This); + + DECLSPEC_XFGVIRT(ITfSystemLangBarItemSink, InitMenu) + HRESULT ( STDMETHODCALLTYPE *InitMenu )( + __RPC__in ITfSystemLangBarItemSink * This, + /* [in] */ __RPC__in_opt ITfMenu *pMenu); + + DECLSPEC_XFGVIRT(ITfSystemLangBarItemSink, OnMenuSelect) + HRESULT ( STDMETHODCALLTYPE *OnMenuSelect )( + __RPC__in ITfSystemLangBarItemSink * This, + /* [in] */ UINT wID); + + END_INTERFACE + } ITfSystemLangBarItemSinkVtbl; + + interface ITfSystemLangBarItemSink + { + CONST_VTBL struct ITfSystemLangBarItemSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfSystemLangBarItemSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfSystemLangBarItemSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfSystemLangBarItemSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfSystemLangBarItemSink_InitMenu(This,pMenu) \ + ( (This)->lpVtbl -> InitMenu(This,pMenu) ) + +#define ITfSystemLangBarItemSink_OnMenuSelect(This,wID) \ + ( (This)->lpVtbl -> OnMenuSelect(This,wID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfSystemLangBarItemSink_INTERFACE_DEFINED__ */ + + +#ifndef __ITfSystemLangBarItem_INTERFACE_DEFINED__ +#define __ITfSystemLangBarItem_INTERFACE_DEFINED__ + +/* interface ITfSystemLangBarItem */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfSystemLangBarItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1e13e9ec-6b33-4d4a-b5eb-8a92f029f356") + ITfSystemLangBarItem : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetIcon( + /* [in] */ __RPC__in HICON hIcon) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetTooltipString( + /* [size_is][in] */ __RPC__in_ecount_full(cch) WCHAR *pchToolTip, + /* [in] */ ULONG cch) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfSystemLangBarItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfSystemLangBarItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfSystemLangBarItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfSystemLangBarItem * This); + + DECLSPEC_XFGVIRT(ITfSystemLangBarItem, SetIcon) + HRESULT ( STDMETHODCALLTYPE *SetIcon )( + __RPC__in ITfSystemLangBarItem * This, + /* [in] */ __RPC__in HICON hIcon); + + DECLSPEC_XFGVIRT(ITfSystemLangBarItem, SetTooltipString) + HRESULT ( STDMETHODCALLTYPE *SetTooltipString )( + __RPC__in ITfSystemLangBarItem * This, + /* [size_is][in] */ __RPC__in_ecount_full(cch) WCHAR *pchToolTip, + /* [in] */ ULONG cch); + + END_INTERFACE + } ITfSystemLangBarItemVtbl; + + interface ITfSystemLangBarItem + { + CONST_VTBL struct ITfSystemLangBarItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfSystemLangBarItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfSystemLangBarItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfSystemLangBarItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfSystemLangBarItem_SetIcon(This,hIcon) \ + ( (This)->lpVtbl -> SetIcon(This,hIcon) ) + +#define ITfSystemLangBarItem_SetTooltipString(This,pchToolTip,cch) \ + ( (This)->lpVtbl -> SetTooltipString(This,pchToolTip,cch) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfSystemLangBarItem_INTERFACE_DEFINED__ */ + + +#ifndef __ITfSystemLangBarItemText_INTERFACE_DEFINED__ +#define __ITfSystemLangBarItemText_INTERFACE_DEFINED__ + +/* interface ITfSystemLangBarItemText */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfSystemLangBarItemText; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5c4ce0e5-ba49-4b52-ac6b-3b397b4f701f") + ITfSystemLangBarItemText : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetItemText( + /* [size_is][in] */ __RPC__in_ecount_full(cch) const WCHAR *pch, + /* [in] */ ULONG cch) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetItemText( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfSystemLangBarItemTextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfSystemLangBarItemText * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfSystemLangBarItemText * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfSystemLangBarItemText * This); + + DECLSPEC_XFGVIRT(ITfSystemLangBarItemText, SetItemText) + HRESULT ( STDMETHODCALLTYPE *SetItemText )( + __RPC__in ITfSystemLangBarItemText * This, + /* [size_is][in] */ __RPC__in_ecount_full(cch) const WCHAR *pch, + /* [in] */ ULONG cch); + + DECLSPEC_XFGVIRT(ITfSystemLangBarItemText, GetItemText) + HRESULT ( STDMETHODCALLTYPE *GetItemText )( + __RPC__in ITfSystemLangBarItemText * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrText); + + END_INTERFACE + } ITfSystemLangBarItemTextVtbl; + + interface ITfSystemLangBarItemText + { + CONST_VTBL struct ITfSystemLangBarItemTextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfSystemLangBarItemText_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfSystemLangBarItemText_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfSystemLangBarItemText_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfSystemLangBarItemText_SetItemText(This,pch,cch) \ + ( (This)->lpVtbl -> SetItemText(This,pch,cch) ) + +#define ITfSystemLangBarItemText_GetItemText(This,pbstrText) \ + ( (This)->lpVtbl -> GetItemText(This,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfSystemLangBarItemText_INTERFACE_DEFINED__ */ + + +#ifndef __ITfSystemDeviceTypeLangBarItem_INTERFACE_DEFINED__ +#define __ITfSystemDeviceTypeLangBarItem_INTERFACE_DEFINED__ + +/* interface ITfSystemDeviceTypeLangBarItem */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfSystemDeviceTypeLangBarItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("45672eb9-9059-46a2-838d-4530355f6a77") + ITfSystemDeviceTypeLangBarItem : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetIconMode( + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIconMode( + /* [out] */ __RPC__out DWORD *pdwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfSystemDeviceTypeLangBarItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfSystemDeviceTypeLangBarItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfSystemDeviceTypeLangBarItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfSystemDeviceTypeLangBarItem * This); + + DECLSPEC_XFGVIRT(ITfSystemDeviceTypeLangBarItem, SetIconMode) + HRESULT ( STDMETHODCALLTYPE *SetIconMode )( + __RPC__in ITfSystemDeviceTypeLangBarItem * This, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(ITfSystemDeviceTypeLangBarItem, GetIconMode) + HRESULT ( STDMETHODCALLTYPE *GetIconMode )( + __RPC__in ITfSystemDeviceTypeLangBarItem * This, + /* [out] */ __RPC__out DWORD *pdwFlags); + + END_INTERFACE + } ITfSystemDeviceTypeLangBarItemVtbl; + + interface ITfSystemDeviceTypeLangBarItem + { + CONST_VTBL struct ITfSystemDeviceTypeLangBarItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfSystemDeviceTypeLangBarItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfSystemDeviceTypeLangBarItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfSystemDeviceTypeLangBarItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfSystemDeviceTypeLangBarItem_SetIconMode(This,dwFlags) \ + ( (This)->lpVtbl -> SetIconMode(This,dwFlags) ) + +#define ITfSystemDeviceTypeLangBarItem_GetIconMode(This,pdwFlags) \ + ( (This)->lpVtbl -> GetIconMode(This,pdwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfSystemDeviceTypeLangBarItem_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctfutb_0000_0010 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +typedef /* [public][public][public][public][public][uuid] */ DECLSPEC_UUID("8fb5f0ce-dfdd-4f0a-85b9-8988d8dd8ff2") +enum __MIDL___MIDL_itf_ctfutb_0000_0010_0001 + { + TF_LBI_CLK_RIGHT = 1, + TF_LBI_CLK_LEFT = 2 + } TfLBIClick; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0010_v0_0_s_ifspec; + +#ifndef __ITfLangBarItemButton_INTERFACE_DEFINED__ +#define __ITfLangBarItemButton_INTERFACE_DEFINED__ + +/* interface ITfLangBarItemButton */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfLangBarItemButton; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("28c7f1d0-de25-11d2-afdd-00105a2799b5") + ITfLangBarItemButton : public ITfLangBarItem + { + public: + virtual HRESULT STDMETHODCALLTYPE OnClick( + /* [in] */ TfLBIClick click, + /* [in] */ POINT pt, + /* [in] */ __RPC__in const RECT *prcArea) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitMenu( + /* [in] */ __RPC__in_opt ITfMenu *pMenu) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnMenuSelect( + /* [in] */ UINT wID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIcon( + /* [out] */ __RPC__deref_out_opt HICON *phIcon) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetText( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfLangBarItemButtonVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfLangBarItemButton * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfLangBarItemButton * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfLangBarItemButton * This); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetInfo) + HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in ITfLangBarItemButton * This, + /* [out] */ __RPC__out TF_LANGBARITEMINFO *pInfo); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in ITfLangBarItemButton * This, + /* [out] */ __RPC__out DWORD *pdwStatus); + + DECLSPEC_XFGVIRT(ITfLangBarItem, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in ITfLangBarItemButton * This, + /* [in] */ BOOL fShow); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetTooltipString) + HRESULT ( STDMETHODCALLTYPE *GetTooltipString )( + __RPC__in ITfLangBarItemButton * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrToolTip); + + DECLSPEC_XFGVIRT(ITfLangBarItemButton, OnClick) + HRESULT ( STDMETHODCALLTYPE *OnClick )( + __RPC__in ITfLangBarItemButton * This, + /* [in] */ TfLBIClick click, + /* [in] */ POINT pt, + /* [in] */ __RPC__in const RECT *prcArea); + + DECLSPEC_XFGVIRT(ITfLangBarItemButton, InitMenu) + HRESULT ( STDMETHODCALLTYPE *InitMenu )( + __RPC__in ITfLangBarItemButton * This, + /* [in] */ __RPC__in_opt ITfMenu *pMenu); + + DECLSPEC_XFGVIRT(ITfLangBarItemButton, OnMenuSelect) + HRESULT ( STDMETHODCALLTYPE *OnMenuSelect )( + __RPC__in ITfLangBarItemButton * This, + /* [in] */ UINT wID); + + DECLSPEC_XFGVIRT(ITfLangBarItemButton, GetIcon) + HRESULT ( STDMETHODCALLTYPE *GetIcon )( + __RPC__in ITfLangBarItemButton * This, + /* [out] */ __RPC__deref_out_opt HICON *phIcon); + + DECLSPEC_XFGVIRT(ITfLangBarItemButton, GetText) + HRESULT ( STDMETHODCALLTYPE *GetText )( + __RPC__in ITfLangBarItemButton * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrText); + + END_INTERFACE + } ITfLangBarItemButtonVtbl; + + interface ITfLangBarItemButton + { + CONST_VTBL struct ITfLangBarItemButtonVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfLangBarItemButton_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfLangBarItemButton_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfLangBarItemButton_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfLangBarItemButton_GetInfo(This,pInfo) \ + ( (This)->lpVtbl -> GetInfo(This,pInfo) ) + +#define ITfLangBarItemButton_GetStatus(This,pdwStatus) \ + ( (This)->lpVtbl -> GetStatus(This,pdwStatus) ) + +#define ITfLangBarItemButton_Show(This,fShow) \ + ( (This)->lpVtbl -> Show(This,fShow) ) + +#define ITfLangBarItemButton_GetTooltipString(This,pbstrToolTip) \ + ( (This)->lpVtbl -> GetTooltipString(This,pbstrToolTip) ) + + +#define ITfLangBarItemButton_OnClick(This,click,pt,prcArea) \ + ( (This)->lpVtbl -> OnClick(This,click,pt,prcArea) ) + +#define ITfLangBarItemButton_InitMenu(This,pMenu) \ + ( (This)->lpVtbl -> InitMenu(This,pMenu) ) + +#define ITfLangBarItemButton_OnMenuSelect(This,wID) \ + ( (This)->lpVtbl -> OnMenuSelect(This,wID) ) + +#define ITfLangBarItemButton_GetIcon(This,phIcon) \ + ( (This)->lpVtbl -> GetIcon(This,phIcon) ) + +#define ITfLangBarItemButton_GetText(This,pbstrText) \ + ( (This)->lpVtbl -> GetText(This,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfLangBarItemButton_INTERFACE_DEFINED__ */ + + +#ifndef __ITfLangBarItemBitmapButton_INTERFACE_DEFINED__ +#define __ITfLangBarItemBitmapButton_INTERFACE_DEFINED__ + +/* interface ITfLangBarItemBitmapButton */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfLangBarItemBitmapButton; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a26a0525-3fae-4fa0-89ee-88a964f9f1b5") + ITfLangBarItemBitmapButton : public ITfLangBarItem + { + public: + virtual HRESULT STDMETHODCALLTYPE OnClick( + /* [in] */ TfLBIClick click, + /* [in] */ POINT pt, + /* [in] */ __RPC__in const RECT *prcArea) = 0; + + virtual HRESULT STDMETHODCALLTYPE InitMenu( + /* [in] */ __RPC__in_opt ITfMenu *pMenu) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnMenuSelect( + /* [in] */ UINT wID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPreferredSize( + /* [in] */ __RPC__in const SIZE *pszDefault, + /* [out] */ __RPC__out SIZE *psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE DrawBitmap( + /* [in] */ LONG bmWidth, + /* [in] */ LONG bmHeight, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt HBITMAP *phbmp, + /* [out] */ __RPC__deref_out_opt HBITMAP *phbmpMask) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetText( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfLangBarItemBitmapButtonVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfLangBarItemBitmapButton * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfLangBarItemBitmapButton * This); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetInfo) + HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [out] */ __RPC__out TF_LANGBARITEMINFO *pInfo); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [out] */ __RPC__out DWORD *pdwStatus); + + DECLSPEC_XFGVIRT(ITfLangBarItem, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [in] */ BOOL fShow); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetTooltipString) + HRESULT ( STDMETHODCALLTYPE *GetTooltipString )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrToolTip); + + DECLSPEC_XFGVIRT(ITfLangBarItemBitmapButton, OnClick) + HRESULT ( STDMETHODCALLTYPE *OnClick )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [in] */ TfLBIClick click, + /* [in] */ POINT pt, + /* [in] */ __RPC__in const RECT *prcArea); + + DECLSPEC_XFGVIRT(ITfLangBarItemBitmapButton, InitMenu) + HRESULT ( STDMETHODCALLTYPE *InitMenu )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [in] */ __RPC__in_opt ITfMenu *pMenu); + + DECLSPEC_XFGVIRT(ITfLangBarItemBitmapButton, OnMenuSelect) + HRESULT ( STDMETHODCALLTYPE *OnMenuSelect )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [in] */ UINT wID); + + DECLSPEC_XFGVIRT(ITfLangBarItemBitmapButton, GetPreferredSize) + HRESULT ( STDMETHODCALLTYPE *GetPreferredSize )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [in] */ __RPC__in const SIZE *pszDefault, + /* [out] */ __RPC__out SIZE *psz); + + DECLSPEC_XFGVIRT(ITfLangBarItemBitmapButton, DrawBitmap) + HRESULT ( STDMETHODCALLTYPE *DrawBitmap )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [in] */ LONG bmWidth, + /* [in] */ LONG bmHeight, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt HBITMAP *phbmp, + /* [out] */ __RPC__deref_out_opt HBITMAP *phbmpMask); + + DECLSPEC_XFGVIRT(ITfLangBarItemBitmapButton, GetText) + HRESULT ( STDMETHODCALLTYPE *GetText )( + __RPC__in ITfLangBarItemBitmapButton * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrText); + + END_INTERFACE + } ITfLangBarItemBitmapButtonVtbl; + + interface ITfLangBarItemBitmapButton + { + CONST_VTBL struct ITfLangBarItemBitmapButtonVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfLangBarItemBitmapButton_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfLangBarItemBitmapButton_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfLangBarItemBitmapButton_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfLangBarItemBitmapButton_GetInfo(This,pInfo) \ + ( (This)->lpVtbl -> GetInfo(This,pInfo) ) + +#define ITfLangBarItemBitmapButton_GetStatus(This,pdwStatus) \ + ( (This)->lpVtbl -> GetStatus(This,pdwStatus) ) + +#define ITfLangBarItemBitmapButton_Show(This,fShow) \ + ( (This)->lpVtbl -> Show(This,fShow) ) + +#define ITfLangBarItemBitmapButton_GetTooltipString(This,pbstrToolTip) \ + ( (This)->lpVtbl -> GetTooltipString(This,pbstrToolTip) ) + + +#define ITfLangBarItemBitmapButton_OnClick(This,click,pt,prcArea) \ + ( (This)->lpVtbl -> OnClick(This,click,pt,prcArea) ) + +#define ITfLangBarItemBitmapButton_InitMenu(This,pMenu) \ + ( (This)->lpVtbl -> InitMenu(This,pMenu) ) + +#define ITfLangBarItemBitmapButton_OnMenuSelect(This,wID) \ + ( (This)->lpVtbl -> OnMenuSelect(This,wID) ) + +#define ITfLangBarItemBitmapButton_GetPreferredSize(This,pszDefault,psz) \ + ( (This)->lpVtbl -> GetPreferredSize(This,pszDefault,psz) ) + +#define ITfLangBarItemBitmapButton_DrawBitmap(This,bmWidth,bmHeight,dwFlags,phbmp,phbmpMask) \ + ( (This)->lpVtbl -> DrawBitmap(This,bmWidth,bmHeight,dwFlags,phbmp,phbmpMask) ) + +#define ITfLangBarItemBitmapButton_GetText(This,pbstrText) \ + ( (This)->lpVtbl -> GetText(This,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfLangBarItemBitmapButton_INTERFACE_DEFINED__ */ + + +#ifndef __ITfLangBarItemBitmap_INTERFACE_DEFINED__ +#define __ITfLangBarItemBitmap_INTERFACE_DEFINED__ + +/* interface ITfLangBarItemBitmap */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ITfLangBarItemBitmap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("73830352-d722-4179-ada5-f045c98df355") + ITfLangBarItemBitmap : public ITfLangBarItem + { + public: + virtual HRESULT STDMETHODCALLTYPE OnClick( + /* [in] */ TfLBIClick click, + /* [in] */ POINT pt, + /* [in] */ __RPC__in const RECT *prcArea) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPreferredSize( + /* [in] */ __RPC__in const SIZE *pszDefault, + /* [out] */ __RPC__out SIZE *psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE DrawBitmap( + /* [in] */ LONG bmWidth, + /* [in] */ LONG bmHeight, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt HBITMAP *phbmp, + /* [out] */ __RPC__deref_out_opt HBITMAP *phbmpMask) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfLangBarItemBitmapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfLangBarItemBitmap * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfLangBarItemBitmap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfLangBarItemBitmap * This); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetInfo) + HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in ITfLangBarItemBitmap * This, + /* [out] */ __RPC__out TF_LANGBARITEMINFO *pInfo); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in ITfLangBarItemBitmap * This, + /* [out] */ __RPC__out DWORD *pdwStatus); + + DECLSPEC_XFGVIRT(ITfLangBarItem, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in ITfLangBarItemBitmap * This, + /* [in] */ BOOL fShow); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetTooltipString) + HRESULT ( STDMETHODCALLTYPE *GetTooltipString )( + __RPC__in ITfLangBarItemBitmap * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrToolTip); + + DECLSPEC_XFGVIRT(ITfLangBarItemBitmap, OnClick) + HRESULT ( STDMETHODCALLTYPE *OnClick )( + __RPC__in ITfLangBarItemBitmap * This, + /* [in] */ TfLBIClick click, + /* [in] */ POINT pt, + /* [in] */ __RPC__in const RECT *prcArea); + + DECLSPEC_XFGVIRT(ITfLangBarItemBitmap, GetPreferredSize) + HRESULT ( STDMETHODCALLTYPE *GetPreferredSize )( + __RPC__in ITfLangBarItemBitmap * This, + /* [in] */ __RPC__in const SIZE *pszDefault, + /* [out] */ __RPC__out SIZE *psz); + + DECLSPEC_XFGVIRT(ITfLangBarItemBitmap, DrawBitmap) + HRESULT ( STDMETHODCALLTYPE *DrawBitmap )( + __RPC__in ITfLangBarItemBitmap * This, + /* [in] */ LONG bmWidth, + /* [in] */ LONG bmHeight, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt HBITMAP *phbmp, + /* [out] */ __RPC__deref_out_opt HBITMAP *phbmpMask); + + END_INTERFACE + } ITfLangBarItemBitmapVtbl; + + interface ITfLangBarItemBitmap + { + CONST_VTBL struct ITfLangBarItemBitmapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfLangBarItemBitmap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfLangBarItemBitmap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfLangBarItemBitmap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfLangBarItemBitmap_GetInfo(This,pInfo) \ + ( (This)->lpVtbl -> GetInfo(This,pInfo) ) + +#define ITfLangBarItemBitmap_GetStatus(This,pdwStatus) \ + ( (This)->lpVtbl -> GetStatus(This,pdwStatus) ) + +#define ITfLangBarItemBitmap_Show(This,fShow) \ + ( (This)->lpVtbl -> Show(This,fShow) ) + +#define ITfLangBarItemBitmap_GetTooltipString(This,pbstrToolTip) \ + ( (This)->lpVtbl -> GetTooltipString(This,pbstrToolTip) ) + + +#define ITfLangBarItemBitmap_OnClick(This,click,pt,prcArea) \ + ( (This)->lpVtbl -> OnClick(This,click,pt,prcArea) ) + +#define ITfLangBarItemBitmap_GetPreferredSize(This,pszDefault,psz) \ + ( (This)->lpVtbl -> GetPreferredSize(This,pszDefault,psz) ) + +#define ITfLangBarItemBitmap_DrawBitmap(This,bmWidth,bmHeight,dwFlags,phbmp,phbmpMask) \ + ( (This)->lpVtbl -> DrawBitmap(This,bmWidth,bmHeight,dwFlags,phbmp,phbmpMask) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfLangBarItemBitmap_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctfutb_0000_0013 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0013_v0_0_s_ifspec; + +#ifndef __ITfLangBarItemBalloon_INTERFACE_DEFINED__ +#define __ITfLangBarItemBalloon_INTERFACE_DEFINED__ + +/* interface ITfLangBarItemBalloon */ +/* [unique][uuid][object] */ + +typedef /* [public][public][public][uuid] */ DECLSPEC_UUID("f399a969-9e97-4ddd-b974-2bfb934cfbc9") +enum __MIDL_ITfLangBarItemBalloon_0001 + { + TF_LB_BALLOON_RECO = 0, + TF_LB_BALLOON_SHOW = 1, + TF_LB_BALLOON_MISS = 2 + } TfLBBalloonStyle; + +typedef /* [uuid] */ DECLSPEC_UUID("37574483-5c50-4092-a55c-922e3a67e5b8") struct TF_LBBALLOONINFO + { + TfLBBalloonStyle style; + BSTR bstrText; + } TF_LBBALLOONINFO; + + +EXTERN_C const IID IID_ITfLangBarItemBalloon; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("01C2D285-D3C7-4B7B-B5B5-D97411D0C283") + ITfLangBarItemBalloon : public ITfLangBarItem + { + public: + virtual HRESULT STDMETHODCALLTYPE OnClick( + /* [in] */ TfLBIClick click, + /* [in] */ POINT pt, + /* [in] */ __RPC__in const RECT *prcArea) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPreferredSize( + /* [in] */ __RPC__in const SIZE *pszDefault, + /* [out] */ __RPC__out SIZE *psz) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBalloonInfo( + /* [out] */ __RPC__out TF_LBBALLOONINFO *pInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfLangBarItemBalloonVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfLangBarItemBalloon * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfLangBarItemBalloon * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfLangBarItemBalloon * This); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetInfo) + HRESULT ( STDMETHODCALLTYPE *GetInfo )( + __RPC__in ITfLangBarItemBalloon * This, + /* [out] */ __RPC__out TF_LANGBARITEMINFO *pInfo); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in ITfLangBarItemBalloon * This, + /* [out] */ __RPC__out DWORD *pdwStatus); + + DECLSPEC_XFGVIRT(ITfLangBarItem, Show) + HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in ITfLangBarItemBalloon * This, + /* [in] */ BOOL fShow); + + DECLSPEC_XFGVIRT(ITfLangBarItem, GetTooltipString) + HRESULT ( STDMETHODCALLTYPE *GetTooltipString )( + __RPC__in ITfLangBarItemBalloon * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrToolTip); + + DECLSPEC_XFGVIRT(ITfLangBarItemBalloon, OnClick) + HRESULT ( STDMETHODCALLTYPE *OnClick )( + __RPC__in ITfLangBarItemBalloon * This, + /* [in] */ TfLBIClick click, + /* [in] */ POINT pt, + /* [in] */ __RPC__in const RECT *prcArea); + + DECLSPEC_XFGVIRT(ITfLangBarItemBalloon, GetPreferredSize) + HRESULT ( STDMETHODCALLTYPE *GetPreferredSize )( + __RPC__in ITfLangBarItemBalloon * This, + /* [in] */ __RPC__in const SIZE *pszDefault, + /* [out] */ __RPC__out SIZE *psz); + + DECLSPEC_XFGVIRT(ITfLangBarItemBalloon, GetBalloonInfo) + HRESULT ( STDMETHODCALLTYPE *GetBalloonInfo )( + __RPC__in ITfLangBarItemBalloon * This, + /* [out] */ __RPC__out TF_LBBALLOONINFO *pInfo); + + END_INTERFACE + } ITfLangBarItemBalloonVtbl; + + interface ITfLangBarItemBalloon + { + CONST_VTBL struct ITfLangBarItemBalloonVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfLangBarItemBalloon_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfLangBarItemBalloon_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfLangBarItemBalloon_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfLangBarItemBalloon_GetInfo(This,pInfo) \ + ( (This)->lpVtbl -> GetInfo(This,pInfo) ) + +#define ITfLangBarItemBalloon_GetStatus(This,pdwStatus) \ + ( (This)->lpVtbl -> GetStatus(This,pdwStatus) ) + +#define ITfLangBarItemBalloon_Show(This,fShow) \ + ( (This)->lpVtbl -> Show(This,fShow) ) + +#define ITfLangBarItemBalloon_GetTooltipString(This,pbstrToolTip) \ + ( (This)->lpVtbl -> GetTooltipString(This,pbstrToolTip) ) + + +#define ITfLangBarItemBalloon_OnClick(This,click,pt,prcArea) \ + ( (This)->lpVtbl -> OnClick(This,click,pt,prcArea) ) + +#define ITfLangBarItemBalloon_GetPreferredSize(This,pszDefault,psz) \ + ( (This)->lpVtbl -> GetPreferredSize(This,pszDefault,psz) ) + +#define ITfLangBarItemBalloon_GetBalloonInfo(This,pInfo) \ + ( (This)->lpVtbl -> GetBalloonInfo(This,pInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfLangBarItemBalloon_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctfutb_0000_0014 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0014_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0014_v0_0_s_ifspec; + +#ifndef __ITfMenu_INTERFACE_DEFINED__ +#define __ITfMenu_INTERFACE_DEFINED__ + +/* interface ITfMenu */ +/* [unique][uuid][object] */ + +#define TF_LBMENUF_CHECKED ( 0x1 ) + +#define TF_LBMENUF_SUBMENU ( 0x2 ) + +#define TF_LBMENUF_SEPARATOR ( 0x4 ) + +#define TF_LBMENUF_RADIOCHECKED ( 0x8 ) + +#define TF_LBMENUF_GRAYED ( 0x10 ) + + +EXTERN_C const IID IID_ITfMenu; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6F8A98E4-AAA0-4F15-8C5B-07E0DF0A3DD8") + ITfMenu : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddMenuItem( + /* [in] */ UINT uId, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in HBITMAP hbmp, + /* [in] */ __RPC__in HBITMAP hbmpMask, + /* [size_is][unique][in] */ __RPC__in_ecount_full_opt(cch) const WCHAR *pch, + /* [in] */ ULONG cch, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt ITfMenu **ppMenu) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITfMenuVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITfMenu * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITfMenu * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITfMenu * This); + + DECLSPEC_XFGVIRT(ITfMenu, AddMenuItem) + HRESULT ( STDMETHODCALLTYPE *AddMenuItem )( + __RPC__in ITfMenu * This, + /* [in] */ UINT uId, + /* [in] */ DWORD dwFlags, + /* [in] */ __RPC__in HBITMAP hbmp, + /* [in] */ __RPC__in HBITMAP hbmpMask, + /* [size_is][unique][in] */ __RPC__in_ecount_full_opt(cch) const WCHAR *pch, + /* [in] */ ULONG cch, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt ITfMenu **ppMenu); + + END_INTERFACE + } ITfMenuVtbl; + + interface ITfMenu + { + CONST_VTBL struct ITfMenuVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITfMenu_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITfMenu_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITfMenu_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITfMenu_AddMenuItem(This,uId,dwFlags,hbmp,hbmpMask,pch,cch,ppMenu) \ + ( (This)->lpVtbl -> AddMenuItem(This,uId,dwFlags,hbmp,hbmpMask,pch,cch,ppMenu) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITfMenu_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ctfutb_0000_0015 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif // CTFUTB_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0015_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctfutb_0000_0015_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HBITMAP_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HBITMAP * ); +void __RPC_USER HBITMAP_UserFree( __RPC__in unsigned long *, __RPC__in HBITMAP * ); + +unsigned long __RPC_USER HICON_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HICON * ); +unsigned char * __RPC_USER HICON_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HICON * ); +unsigned char * __RPC_USER HICON_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HICON * ); +void __RPC_USER HICON_UserFree( __RPC__in unsigned long *, __RPC__in HICON * ); + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HBITMAP_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HBITMAP * ); +unsigned char * __RPC_USER HBITMAP_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HBITMAP * ); +void __RPC_USER HBITMAP_UserFree64( __RPC__in unsigned long *, __RPC__in HBITMAP * ); + +unsigned long __RPC_USER HICON_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HICON * ); +unsigned char * __RPC_USER HICON_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HICON * ); +unsigned char * __RPC_USER HICON_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HICON * ); +void __RPC_USER HICON_UserFree64( __RPC__in unsigned long *, __RPC__in HICON * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfutb.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfutb.idl new file mode 100644 index 0000000000000000000000000000000000000000..3e8ec12d4e25ca724754996120584e75645de277 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctfutb.idl @@ -0,0 +1,602 @@ +cpp_quote("#include ") + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1992-2001. +// +// File: ctfutb.idl +// +// Contents: Text Framework declarations. +// +// +//-------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// ctfutb.h") +cpp_quote("") +cpp_quote("") +cpp_quote("// Text Framework declarations.") +cpp_quote("") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 1995-2001 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR TFPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE TFPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") + +cpp_quote("#ifndef CTFUTB_DEFINED") +cpp_quote("#define CTFUTB_DEFINED") +cpp_quote("") +cpp_quote("#include ") +cpp_quote("") +cpp_quote("#ifdef __cplusplus") +cpp_quote("extern \"C\" {") +cpp_quote("#endif /* __cplusplus */") +cpp_quote("") + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +cpp_quote("#define TF_FLOATINGLANGBAR_WNDTITLEW L\"TF_FloatingLangBar_WndTitle\"") +cpp_quote("#define TF_FLOATINGLANGBAR_WNDTITLEA \"TF_FloatingLangBar_WndTitle\"") +cpp_quote("#ifdef UNICODE") +cpp_quote("#define TF_FLOATINGLANGBAR_WNDTITLE TF_FLOATINGLANGBAR_WNDTITLEW") +cpp_quote("#else") +cpp_quote("#define TF_FLOATINGLANGBAR_WNDTITLE TF_FLOATINGLANGBAR_WNDTITLEA") +cpp_quote("#endif") + +// for ITfLangBarItemSink::OnUpdate() +cpp_quote("#define TF_LBI_ICON 0x00000001") +cpp_quote("#define TF_LBI_TEXT 0x00000002") +cpp_quote("#define TF_LBI_TOOLTIP 0x00000004") +cpp_quote("#define TF_LBI_BITMAP 0x00000008") +cpp_quote("#define TF_LBI_BALLOON 0x00000010") +cpp_quote("#define TF_LBI_CUSTOMUI 0x00000020") +cpp_quote("#define TF_LBI_BTNALL (TF_LBI_ICON | TF_LBI_TEXT | TF_LBI_TOOLTIP)") +cpp_quote("#define TF_LBI_BMPBTNALL (TF_LBI_BITMAP | TF_LBI_TEXT | TF_LBI_TOOLTIP)") +cpp_quote("#define TF_LBI_BMPALL (TF_LBI_BITMAP | TF_LBI_TOOLTIP)") + +cpp_quote("#define TF_LBI_STATUS 0x00010000") + +// +// for ITfLangBarItem::GetInfo() +// Button Style +// + +// +// TF_LBI_STYLE_HIDDENSTATUSCONTROL +// +// If this bit is on, the items are not hidden by intellisense or +// there won't be UI to hide. +// +cpp_quote("#define TF_LBI_STYLE_HIDDENSTATUSCONTROL 0x00000001") + +// +// TF_LBI_STYLE_SHOWNINTRAY +// +// If this bit is on, the item is shown in tray when Langbat is minimized. +// +cpp_quote("#define TF_LBI_STYLE_SHOWNINTRAY 0x00000002") + +// +// TF_LBI_STYLE_HIDEONNOOTHERITEMS +// +// Langbar will be hidden if only items with this bits are in Langbar. +// +cpp_quote("#define TF_LBI_STYLE_HIDEONNOOTHERITEMS 0x00000004") + +// +// TF_LBI_STYLE_SHOWNINTRAYONLY +// +// Langbar will be hidden on the floating toolbar but it is shown on tray. +// +cpp_quote("#define TF_LBI_STYLE_SHOWNINTRAYONLY 0x00000008") + +// +// TF_LBI_STYLE_HIDDENBYDEFAULT +// +// The item won't be shown in the toolbar face unless the item is +// added from UI. +// +cpp_quote("#define TF_LBI_STYLE_HIDDENBYDEFAULT 0x00000010") + +// +// TF_LBI_STYLE_TEXTCOLORICON +// +// The icon of the item with this flag will be drawn with text color. +// This icon must be mono and black part will be changed. +// +cpp_quote("#define TF_LBI_STYLE_TEXTCOLORICON 0x00000020") + + +cpp_quote("#define TF_LBI_STYLE_BTN_BUTTON 0x00010000") +cpp_quote("#define TF_LBI_STYLE_BTN_MENU 0x00020000") +cpp_quote("#define TF_LBI_STYLE_BTN_TOGGLE 0x00040000") + +// for ITfLangBarItem::GetStatus() +cpp_quote("#define TF_LBI_STATUS_HIDDEN 0x00000001") +cpp_quote("#define TF_LBI_STATUS_DISABLED 0x00000002") + +// Button Status +cpp_quote("#define TF_LBI_STATUS_BTN_TOGGLED 0x00010000") + +// Bitmap Flag +cpp_quote("#define TF_LBI_BMPF_VERTICAL 0x00000001") + + +// ShowFloating flags +cpp_quote("#define TF_SFT_SHOWNORMAL 0x00000001") +cpp_quote("#define TF_SFT_DOCK 0x00000002") +cpp_quote("#define TF_SFT_MINIMIZED 0x00000004") +cpp_quote("#define TF_SFT_HIDDEN 0x00000008") +cpp_quote("#define TF_SFT_NOTRANSPARENCY 0x00000010") +cpp_quote("#define TF_SFT_LOWTRANSPARENCY 0x00000020") +cpp_quote("#define TF_SFT_HIGHTRANSPARENCY 0x00000040") +cpp_quote("#define TF_SFT_LABELS 0x00000080") +cpp_quote("#define TF_SFT_NOLABELS 0x00000100") +cpp_quote("#define TF_SFT_EXTRAICONSONMINIMIZED 0x00000200") +cpp_quote("#define TF_SFT_NOEXTRAICONSONMINIMIZED 0x00000400") +cpp_quote("#define TF_SFT_DESKBAND 0x00000800") + +// OnMenuSelect flags +cpp_quote("#define TF_INVALIDMENUITEM (UINT)(-1)") + +// SystemDeviceTypeLangbarItem Flag +cpp_quote("#define TF_DTLBI_USEPROFILEICON 0x00000001") + +cpp_quote("#ifdef __cplusplus") +cpp_quote("}") +cpp_quote("#endif /* __cplusplus */") + +import "oaidl.idl"; +import "msctf.idl"; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +interface ITfLangBarItem; +interface ITfLangBarEventSink; +interface ITfLangBarItemMgr; +interface ITfInputProcessorProfiles; +interface ITfMenu; + +// +// ITfLangBarMgr +// +[ + object, + uuid(87955690-e627-11d2-8ddb-00105a2799b5), + pointer_default(unique) +] +interface ITfLangBarMgr: IUnknown +{ + HRESULT AdviseEventSink([in] ITfLangBarEventSink *pSink, + [in] HWND hwnd, + [in] DWORD dwFlags, + [in] DWORD *pdwCookie); + + HRESULT UnadviseEventSink([in] DWORD dwCookie); + + HRESULT GetThreadMarshalInterface([in] DWORD dwThreadId, + [in] DWORD dwType, + [in] REFIID riid, + [out, iid_is(riid)] IUnknown **ppunk); + + HRESULT GetThreadLangBarItemMgr([in] DWORD dwThreadId, + [out] ITfLangBarItemMgr **pplbi, + [out] DWORD *pdwThreadid); + + HRESULT GetInputProcessorProfiles([in] DWORD dwThreadId, + [out] ITfInputProcessorProfiles **ppaip, + [out] DWORD *pdwThreadid); + + HRESULT RestoreLastFocus([out] DWORD *pdwThreadId, + [in] BOOL fPrev); + + HRESULT SetModalInput([in] ITfLangBarEventSink *pSink, + [in] DWORD dwThreadId, + [in] DWORD dwFlags); + + HRESULT ShowFloating([in] DWORD dwFlags); + + HRESULT GetShowFloatingStatus([out] DWORD *pdwFlags); +} + +// +// ITfLangBarEventSink +// +[ + object, + uuid(18a4e900-e0ae-11d2-afdd-00105a2799b5), + pointer_default(unique) +] +interface ITfLangBarEventSink: IUnknown +{ + HRESULT OnSetFocus([in] DWORD dwThreadId); + + HRESULT OnThreadTerminate([in] DWORD dwThreadId); + + HRESULT OnThreadItemChange([in] DWORD dwThreadId); + + HRESULT OnModalInput([in] DWORD dwThreadId, + [in] UINT uMsg, + [in] WPARAM wParam, + [in] LPARAM lParam); + + HRESULT ShowFloating([in] DWORD dwFlags); + + HRESULT GetItemFloatingRect([in] DWORD dwThreadId, [in] REFGUID rguid, [out] RECT *prc); +} + +// +// ITfLangBarItemSink +// +[ + object, + uuid(57dbe1a0-de25-11d2-afdd-00105a2799b5), + pointer_default(unique), +] +interface ITfLangBarItemSink : IUnknown +{ + HRESULT OnUpdate([in] DWORD dwFlags); +} + +// +// IEnumTfLangBarItems +// +[ + object, + uuid(583f34d0-de25-11d2-afdd-00105a2799b5), + pointer_default(unique), +] +interface IEnumTfLangBarItems : IUnknown +{ + HRESULT Clone([out] IEnumTfLangBarItems **ppEnum); + + HRESULT Next([in] ULONG ulCount, + [out, size_is(ulCount)] ITfLangBarItem **ppItem, + [in, out, unique] ULONG *pcFetched); + + HRESULT Reset(); + + HRESULT Skip([in] ULONG ulCount); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +const ULONG TF_LBI_DESC_MAXLEN = 32; + +typedef [uuid(12a1d29f-a065-440c-9746-eb2002c8bd19)] struct TF_LANGBARITEMINFO +{ + CLSID clsidService; + GUID guidItem; + DWORD dwStyle; + ULONG ulSort; + WCHAR szDescription[TF_LBI_DESC_MAXLEN]; +} TF_LANGBARITEMINFO; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// +// ITfLangBarItemMgr +// +[ + object, + uuid(ba468c55-9956-4fb1-a59d-52a7dd7cc6aa), + pointer_default(unique), +] +interface ITfLangBarItemMgr : IUnknown +{ + HRESULT EnumItems([out] IEnumTfLangBarItems **ppEnum); + + HRESULT GetItem([in] REFGUID rguid, + [out] ITfLangBarItem **ppItem); + + HRESULT AddItem([in] ITfLangBarItem *punk); + + HRESULT RemoveItem([in] ITfLangBarItem *punk); + + HRESULT AdviseItemSink([in] ITfLangBarItemSink *punk, + [out] DWORD *pdwCookie, + [in] REFGUID rguidItem); + + HRESULT UnadviseItemSink([in] DWORD dwCookie); + + HRESULT GetItemFloatingRect([in] DWORD dwThreadId, [in] REFGUID rguid, [out] RECT *prc); + + HRESULT GetItemsStatus([in] ULONG ulCount, + [in, size_is(ulCount)] const GUID *prgguid, + [out, size_is(ulCount)] DWORD *pdwStatus); + + HRESULT GetItemNum([out] ULONG *pulCount); + + HRESULT GetItems([in] ULONG ulCount, + [out, size_is(ulCount), length_is(*pcFetched)] ITfLangBarItem **ppItem, + [out, size_is(ulCount), length_is(*pcFetched)] TF_LANGBARITEMINFO *pInfo, + [out, size_is(ulCount), length_is(*pcFetched)] DWORD *pdwStatus, + [in, out, unique] ULONG *pcFetched); + + HRESULT AdviseItemsSink([in] ULONG ulCount, + [in, size_is(ulCount)] ITfLangBarItemSink **ppunk, + [in, size_is(ulCount)] const GUID *pguidItem, + [out, size_is(ulCount)] DWORD *pdwCookie); + + HRESULT UnadviseItemsSink([in] ULONG ulCount, + [in, size_is(ulCount)] DWORD *pdwCookie); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +// +// ITfLangBarItem +// +[ + object, + uuid(73540d69-edeb-4ee9-96c9-23aa30b25916), + pointer_default(unique), +] +interface ITfLangBarItem : IUnknown +{ + HRESULT GetInfo([out] TF_LANGBARITEMINFO *pInfo); + + HRESULT GetStatus([out] DWORD *pdwStatus); + + HRESULT Show([in] BOOL fShow); + + HRESULT GetTooltipString([out] BSTR *pbstrToolTip); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// +// ITfSystemLangBarItemSink +// +[ + object, + uuid(1449d9ab-13cf-4687-aa3e-8d8b18574396), + pointer_default(unique), +] +interface ITfSystemLangBarItemSink : IUnknown +{ + HRESULT InitMenu([in] ITfMenu *pMenu); + + HRESULT OnMenuSelect([in] UINT wID); +} + +// +// ITfSystemLangBarItem +// +[ + object, + uuid(1e13e9ec-6b33-4d4a-b5eb-8a92f029f356), + pointer_default(unique), +] +interface ITfSystemLangBarItem : IUnknown +{ + HRESULT SetIcon([in] HICON hIcon); + + HRESULT SetTooltipString([in, size_is(cch)] WCHAR *pchToolTip, + [in] ULONG cch); +} + +// +// ITfSystemLangBarItemText +// +[ + object, + uuid(5c4ce0e5-ba49-4b52-ac6b-3b397b4f701f), + pointer_default(unique), +] +interface ITfSystemLangBarItemText : IUnknown +{ + HRESULT SetItemText([in, size_is(cch)] const WCHAR *pch, + [in] ULONG cch); + HRESULT GetItemText([out] BSTR *pbstrText); +} + +// +// ITfSystemDeviceTypeLangBarItem +// +[ + object, + uuid(45672eb9-9059-46a2-838d-4530355f6a77), + pointer_default(unique), +] +interface ITfSystemDeviceTypeLangBarItem : IUnknown +{ + HRESULT SetIconMode([in] DWORD dwFlags); + + HRESULT GetIconMode([out] DWORD *pdwFlags); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +typedef [uuid(8fb5f0ce-dfdd-4f0a-85b9-8988d8dd8ff2)] enum +{ + TF_LBI_CLK_RIGHT = 1, + TF_LBI_CLK_LEFT = 2, +} TfLBIClick; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// +// ITfLangBarItemButton +// +[ + object, + uuid(28c7f1d0-de25-11d2-afdd-00105a2799b5), + pointer_default(unique), +] +interface ITfLangBarItemButton : ITfLangBarItem +{ + HRESULT OnClick([in] TfLBIClick click, + [in] POINT pt, + [in] const RECT *prcArea); + + HRESULT InitMenu([in] ITfMenu *pMenu); + + HRESULT OnMenuSelect([in] UINT wID); + + HRESULT GetIcon([out] HICON *phIcon); + + HRESULT GetText([out] BSTR *pbstrText); +} + +// +// ITfLangBarItemBitmapButton +// +[ + object, + uuid(a26a0525-3fae-4fa0-89ee-88a964f9f1b5), + pointer_default(unique), +] +interface ITfLangBarItemBitmapButton : ITfLangBarItem +{ + HRESULT OnClick([in] TfLBIClick click, + [in] POINT pt, + [in] const RECT *prcArea); + + HRESULT InitMenu([in] ITfMenu *pMenu); + + HRESULT OnMenuSelect([in] UINT wID); + + HRESULT GetPreferredSize([in] const SIZE *pszDefault, + [out] SIZE *psz); + + HRESULT DrawBitmap([in] LONG bmWidth, + [in] LONG bmHeight, + [in] DWORD dwFlags, + [out] HBITMAP *phbmp, + [out] HBITMAP *phbmpMask); + + HRESULT GetText([out] BSTR *pbstrText); +} + +// +// ITfLangBarItemBitmap +// +[ + object, + uuid(73830352-d722-4179-ada5-f045c98df355), + pointer_default(unique), +] +interface ITfLangBarItemBitmap : ITfLangBarItem +{ + HRESULT OnClick([in] TfLBIClick click, + [in] POINT pt, + [in] const RECT *prcArea); + + HRESULT GetPreferredSize([in] const SIZE *pszDefault, + [out] SIZE *psz); + + HRESULT DrawBitmap([in] LONG bmWidth, + [in] LONG bmHeight, + [in] DWORD dwFlags, + [out] HBITMAP *phbmp, + [out] HBITMAP *phbmpMask); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +// +// ITfLangBarItemBalloon +// +[ + object, + uuid(01C2D285-D3C7-4B7B-B5B5-D97411D0C283), + pointer_default(unique), +] +interface ITfLangBarItemBalloon : ITfLangBarItem +{ + HRESULT OnClick([in] TfLBIClick click, + [in] POINT pt, + [in] const RECT *prcArea); + + HRESULT GetPreferredSize([in] const SIZE *pszDefault, + [out] SIZE *psz); + + typedef [uuid(f399a969-9e97-4ddd-b974-2bfb934cfbc9)] enum { + TF_LB_BALLOON_RECO = 0, + TF_LB_BALLOON_SHOW = 1, + TF_LB_BALLOON_MISS = 2 + } TfLBBalloonStyle; + + typedef [uuid(37574483-5c50-4092-a55c-922e3a67e5b8)] struct TF_LBBALLOONINFO + { + TfLBBalloonStyle style; + BSTR bstrText; + } TF_LBBALLOONINFO; + + HRESULT GetBalloonInfo([out] TF_LBBALLOONINFO *pInfo); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// +// ITfMenu +// +[ + object, + uuid(6F8A98E4-AAA0-4F15-8C5B-07E0DF0A3DD8), + pointer_default(unique), +] +interface ITfMenu : IUnknown +{ + const DWORD TF_LBMENUF_CHECKED = 0x0001; + const DWORD TF_LBMENUF_SUBMENU = 0x0002; + const DWORD TF_LBMENUF_SEPARATOR = 0x0004; + const DWORD TF_LBMENUF_RADIOCHECKED = 0x0008; + const DWORD TF_LBMENUF_GRAYED = 0x0010; + + HRESULT AddMenuItem([in] UINT uId, + [in] DWORD dwFlags, + [in] HBITMAP hbmp, + [in] HBITMAP hbmpMask, + [in, unique, size_is(cch)] const WCHAR *pch, + [in] ULONG cch, + [in, out, unique] ITfMenu **ppMenu); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif // CTFUTB_DEFINED") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctxtcall.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctxtcall.h new file mode 100644 index 0000000000000000000000000000000000000000..fa6dca7c8a4183932a4b375f61e5a82ebaeddc09 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctxtcall.h @@ -0,0 +1,192 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ctxtcall_h__ +#define __ctxtcall_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IContextCallback_FWD_DEFINED__ +#define __IContextCallback_FWD_DEFINED__ +typedef interface IContextCallback IContextCallback; + +#endif /* __IContextCallback_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "objidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ctxtcall_0000_0000 */ +/* [local] */ + +//+----------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//------------------------------------------------------------------ +typedef struct tagComCallData + { + DWORD dwDispid; + DWORD dwReserved; + void *pUserDefined; + } ComCallData; + + + +extern RPC_IF_HANDLE __MIDL_itf_ctxtcall_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ctxtcall_0000_0000_v0_0_s_ifspec; + +#ifndef __IContextCallback_INTERFACE_DEFINED__ +#define __IContextCallback_INTERFACE_DEFINED__ + +/* interface IContextCallback */ +/* [unique][uuid][object][local] */ + +typedef /* [ref] */ HRESULT ( __stdcall *PFNCONTEXTCALL )( + ComCallData *pParam); + + +EXTERN_C const IID IID_IContextCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("000001da-0000-0000-C000-000000000046") + IContextCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ContextCallback( + /* [in] */ PFNCONTEXTCALL pfnCallback, + /* [in] */ ComCallData *pParam, + /* [in] */ REFIID riid, + /* [in] */ int iMethod, + /* [in] */ IUnknown *pUnk) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContextCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IContextCallback * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IContextCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IContextCallback * This); + + DECLSPEC_XFGVIRT(IContextCallback, ContextCallback) + HRESULT ( STDMETHODCALLTYPE *ContextCallback )( + IContextCallback * This, + /* [in] */ PFNCONTEXTCALL pfnCallback, + /* [in] */ ComCallData *pParam, + /* [in] */ REFIID riid, + /* [in] */ int iMethod, + /* [in] */ IUnknown *pUnk); + + END_INTERFACE + } IContextCallbackVtbl; + + interface IContextCallback + { + CONST_VTBL struct IContextCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContextCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContextCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContextCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContextCallback_ContextCallback(This,pfnCallback,pParam,riid,iMethod,pUnk) \ + ( (This)->lpVtbl -> ContextCallback(This,pfnCallback,pParam,riid,iMethod,pUnk) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContextCallback_INTERFACE_DEFINED__ */ + + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctxtcall.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctxtcall.idl new file mode 100644 index 0000000000000000000000000000000000000000..26b5296695aa01f4b47909860f5d76460700592e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ctxtcall.idl @@ -0,0 +1,48 @@ +//+------------------------------------------------------------------- +// +// File: ctxtcall.idl +// +// Contents: Public Context interfaces +// +// History: 04-Dec-97 Created +// +//-------------------------------------------------------------------- + +cpp_quote("//+-----------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//------------------------------------------------------------------") + +import "wtypes.idl"; +import "objidl.idl"; +import "unknwn.idl"; + +// ComCallData used with IContextCallback::ContextCallback + +typedef struct tagComCallData { + DWORD dwDispid; + DWORD dwReserved; + void *pUserDefined; +} ComCallData; + + +// IContextCallback interface +[ + local, + object, + uuid(000001da-0000-0000-C000-000000000046), + pointer_default(unique) +] + +interface IContextCallback : IUnknown +{ + typedef [ref] HRESULT __stdcall (*PFNCONTEXTCALL)(ComCallData* pParam); + + HRESULT ContextCallback([in] PFNCONTEXTCALL pfnCallback, + [in] ComCallData *pParam, + [in] REFIID riid, + [in] int iMethod, + [in] IUnknown *pUnk); +} diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/cvttyp.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cvttyp.idl new file mode 100644 index 0000000000000000000000000000000000000000..0f7bed2749e434bb82514c6920bc7cacd19b7bf5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/cvttyp.idl @@ -0,0 +1,67 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: cvttyp.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a88-2a1c-11ce-ade5-00aa0044773d) + + +interface IConvertType : IUnknown { + +typedef DWORD DBCONVERTFLAGS; + +enum DBCONVERTFLAGSENUM { + DBCONVERTFLAGS_COLUMN = 0x000, + DBCONVERTFLAGS_PARAMETER = 0x001, +}; + +// VERSION 2.0 +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +enum DBCONVERTFLAGSENUM20 { + DBCONVERTFLAGS_ISLONG = 0x002, + DBCONVERTFLAGS_ISFIXEDLENGTH = 0x004, + DBCONVERTFLAGS_FROMVARIANT = 0x008, +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + + [local] + HRESULT CanConvert( + [in] DBTYPE wFromType, + [in] DBTYPE wToType, + [in] DBCONVERTFLAGS dwConvertFlags + ); + + [call_as(CanConvert)] + HRESULT RemoteCanConvert( + [in] DBTYPE wFromType, + [in] DBTYPE wToType, + [in] DBCONVERTFLAGS dwConvertFlags, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1.h new file mode 100644 index 0000000000000000000000000000000000000000..86eb97eb3bbf3393ad9899d36ce7e6f98cabcebe --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1.h @@ -0,0 +1,3769 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2D1.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2D1_H_ +#define _D2D1_H_ + +#ifndef COM_NO_WINDOWS_H +#include +#endif // #ifndef COM_NO_WINDOWS_H +#include +#include +#include +#include +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include +#else +#include +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ + +#ifndef D2D_USE_C_DEFINITIONS + +// +// We use the 'C' definitions if C++ is not defined +// +#ifndef __cplusplus +#define D2D_USE_C_DEFINITIONS +#endif + +#endif // #ifndef D2D_USE_C_DEFINITIONS + +#include + +// +// Forward declarations here +// + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef interface IDWriteTextFormat IDWriteTextFormat; +typedef interface IDWriteTextLayout IDWriteTextLayout; +typedef interface IDWriteRenderingParams IDWriteRenderingParams; +typedef interface IDXGISurface IDXGISurface; +typedef interface IWICBitmap IWICBitmap; +typedef interface IWICBitmapSource IWICBitmapSource; + +typedef struct DWRITE_GLYPH_RUN DWRITE_GLYPH_RUN; + +#ifndef D2D_USE_C_DEFINITIONS + +interface ID2D1Factory; +interface ID2D1RenderTarget; +interface ID2D1BitmapRenderTarget; +interface ID2D1SimplifiedGeometrySink; +interface ID2D1TessellationSink; +interface ID2D1Geometry; +interface ID2D1Brush; + +#else + +typedef interface ID2D1Factory ID2D1Factory; +typedef interface ID2D1RenderTarget ID2D1RenderTarget; +typedef interface ID2D1BitmapRenderTarget ID2D1BitmapRenderTarget; +typedef interface ID2D1SimplifiedGeometrySink ID2D1SimplifiedGeometrySink;; +typedef interface ID2D1TessellationSink ID2D1TessellationSink; +typedef interface ID2D1Geometry ID2D1Geometry; +typedef interface ID2D1Brush ID2D1Brush; + +#endif + +#define D2D1_INVALID_TAG ULONGLONG_MAX +#define D2D1_DEFAULT_FLATTENING_TOLERANCE (0.25f) + + +/// +/// This defines the superset of interpolation mode supported by D2D APIs +/// and built-in effects +/// +enum +{ + D2D1_INTERPOLATION_MODE_DEFINITION_NEAREST_NEIGHBOR = 0, + D2D1_INTERPOLATION_MODE_DEFINITION_LINEAR = 1, + D2D1_INTERPOLATION_MODE_DEFINITION_CUBIC = 2, + D2D1_INTERPOLATION_MODE_DEFINITION_MULTI_SAMPLE_LINEAR = 3, + D2D1_INTERPOLATION_MODE_DEFINITION_ANISOTROPIC = 4, + D2D1_INTERPOLATION_MODE_DEFINITION_HIGH_QUALITY_CUBIC = 5, + D2D1_INTERPOLATION_MODE_DEFINITION_FANT = 6, + D2D1_INTERPOLATION_MODE_DEFINITION_MIPMAP_LINEAR = 7 + +}; + + +/// +/// This determines what gamma is used for interpolation/blending. +/// +typedef enum D2D1_GAMMA +{ + + /// + /// Colors are manipulated in 2.2 gamma color space. + /// + D2D1_GAMMA_2_2 = 0, + + /// + /// Colors are manipulated in 1.0 gamma color space. + /// + D2D1_GAMMA_1_0 = 1, + D2D1_GAMMA_FORCE_DWORD = 0xffffffff + +} D2D1_GAMMA; + + +/// +/// Specifies what the contents are of an opacity mask. +/// +typedef enum D2D1_OPACITY_MASK_CONTENT +{ + + /// + /// The mask contains geometries or bitmaps. + /// + D2D1_OPACITY_MASK_CONTENT_GRAPHICS = 0, + + /// + /// The mask contains text rendered using one of the natural text modes. + /// + D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL = 1, + + /// + /// The mask contains text rendered using one of the GDI compatible text modes. + /// + D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE = 2, + D2D1_OPACITY_MASK_CONTENT_FORCE_DWORD = 0xffffffff + +} D2D1_OPACITY_MASK_CONTENT; + + +/// +/// Enum which describes how to sample from a source outside its base tile. +/// +typedef enum D2D1_EXTEND_MODE +{ + + /// + /// Extend the edges of the source out by clamping sample points outside the source + /// to the edges. + /// + D2D1_EXTEND_MODE_CLAMP = 0, + + /// + /// The base tile is drawn untransformed and the remainder are filled by repeating + /// the base tile. + /// + D2D1_EXTEND_MODE_WRAP = 1, + + /// + /// The same as wrap, but alternate tiles are flipped The base tile is drawn + /// untransformed. + /// + D2D1_EXTEND_MODE_MIRROR = 2, + D2D1_EXTEND_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_EXTEND_MODE; + + +/// +/// Enum which describes the manner in which we render edges of non-text primitives. +/// +typedef enum D2D1_ANTIALIAS_MODE +{ + + /// + /// The edges of each primitive are antialiased sequentially. + /// + D2D1_ANTIALIAS_MODE_PER_PRIMITIVE = 0, + + /// + /// Each pixel is rendered if its pixel center is contained by the geometry. + /// + D2D1_ANTIALIAS_MODE_ALIASED = 1, + D2D1_ANTIALIAS_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_ANTIALIAS_MODE; + + +/// +/// Describes the antialiasing mode used for drawing text. +/// +typedef enum D2D1_TEXT_ANTIALIAS_MODE +{ + + /// + /// Render text using the current system setting. + /// + D2D1_TEXT_ANTIALIAS_MODE_DEFAULT = 0, + + /// + /// Render text using ClearType. + /// + D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE = 1, + + /// + /// Render text using gray-scale. + /// + D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE = 2, + + /// + /// Render text aliased. + /// + D2D1_TEXT_ANTIALIAS_MODE_ALIASED = 3, + D2D1_TEXT_ANTIALIAS_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_TEXT_ANTIALIAS_MODE; + + +/// +/// Specifies the algorithm that is used when images are scaled or rotated. Note +/// Starting in Windows 8, more interpolations modes are available. See +/// D2D1_INTERPOLATION_MODE for more info. +/// +typedef enum D2D1_BITMAP_INTERPOLATION_MODE +{ + + /// + /// Nearest Neighbor filtering. Also known as nearest pixel or nearest point + /// sampling. + /// + D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR = D2D1_INTERPOLATION_MODE_DEFINITION_NEAREST_NEIGHBOR, + + /// + /// Linear filtering. + /// + D2D1_BITMAP_INTERPOLATION_MODE_LINEAR = D2D1_INTERPOLATION_MODE_DEFINITION_LINEAR, + D2D1_BITMAP_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_BITMAP_INTERPOLATION_MODE; + + +/// +/// Modifications made to the draw text call that influence how the text is +/// rendered. +/// +typedef enum D2D1_DRAW_TEXT_OPTIONS +{ + + /// + /// Do not snap the baseline of the text vertically. + /// + D2D1_DRAW_TEXT_OPTIONS_NO_SNAP = 0x00000001, + + /// + /// Clip the text to the content bounds. + /// + D2D1_DRAW_TEXT_OPTIONS_CLIP = 0x00000002, + + /// + /// Render color versions of glyphs if defined by the font. + /// + D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT = 0x00000004, + + /// + /// Bitmap origins of color glyph bitmaps are not snapped. + /// + D2D1_DRAW_TEXT_OPTIONS_DISABLE_COLOR_BITMAP_SNAPPING = 0x00000008, + D2D1_DRAW_TEXT_OPTIONS_NONE = 0x00000000, + D2D1_DRAW_TEXT_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_DRAW_TEXT_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_DRAW_TEXT_OPTIONS); + +typedef D2D_POINT_2U D2D1_POINT_2U; +typedef D2D_POINT_2F D2D1_POINT_2F; +typedef D2D_RECT_F D2D1_RECT_F; +typedef D2D_RECT_U D2D1_RECT_U; +typedef D2D_SIZE_F D2D1_SIZE_F; +typedef D2D_SIZE_U D2D1_SIZE_U; +typedef D2D_COLOR_F D2D1_COLOR_F; +typedef D2D_MATRIX_3X2_F D2D1_MATRIX_3X2_F; +typedef UINT64 D2D1_TAG; + +/// +/// Describes the pixel format and dpi of a bitmap. +/// +typedef struct D2D1_BITMAP_PROPERTIES +{ + D2D1_PIXEL_FORMAT pixelFormat; + FLOAT dpiX; + FLOAT dpiY; + +} D2D1_BITMAP_PROPERTIES; + + +/// +/// Contains the position and color of a gradient stop. +/// +typedef struct D2D1_GRADIENT_STOP +{ + FLOAT position; + D2D1_COLOR_F color; + +} D2D1_GRADIENT_STOP; + + +/// +/// Describes the opacity and transformation of a brush. +/// +typedef struct D2D1_BRUSH_PROPERTIES +{ + FLOAT opacity; + D2D1_MATRIX_3X2_F transform; + +} D2D1_BRUSH_PROPERTIES; + + +/// +/// Describes the extend modes and the interpolation mode of an ID2D1BitmapBrush. +/// +typedef struct D2D1_BITMAP_BRUSH_PROPERTIES +{ + D2D1_EXTEND_MODE extendModeX; + D2D1_EXTEND_MODE extendModeY; + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode; + +} D2D1_BITMAP_BRUSH_PROPERTIES; + + +/// +/// Contains the starting point and endpoint of the gradient axis for an +/// ID2D1LinearGradientBrush. +/// +typedef struct D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES +{ + D2D1_POINT_2F startPoint; + D2D1_POINT_2F endPoint; + +} D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES; + + +/// +/// Contains the gradient origin offset and the size and position of the gradient +/// ellipse for an ID2D1RadialGradientBrush. +/// +typedef struct D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES +{ + D2D1_POINT_2F center; + D2D1_POINT_2F gradientOriginOffset; + FLOAT radiusX; + FLOAT radiusY; + +} D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES; + + +/// +/// Differentiates which of the two possible arcs could match the given arc +/// parameters. +/// +typedef enum D2D1_ARC_SIZE +{ + D2D1_ARC_SIZE_SMALL = 0, + D2D1_ARC_SIZE_LARGE = 1, + D2D1_ARC_SIZE_FORCE_DWORD = 0xffffffff + +} D2D1_ARC_SIZE; + + +/// +/// Enum which describes the drawing of the ends of a line. +/// +typedef enum D2D1_CAP_STYLE +{ + + /// + /// Flat line cap. + /// + D2D1_CAP_STYLE_FLAT = 0, + + /// + /// Square line cap. + /// + D2D1_CAP_STYLE_SQUARE = 1, + + /// + /// Round line cap. + /// + D2D1_CAP_STYLE_ROUND = 2, + + /// + /// Triangle line cap. + /// + D2D1_CAP_STYLE_TRIANGLE = 3, + D2D1_CAP_STYLE_FORCE_DWORD = 0xffffffff + +} D2D1_CAP_STYLE; + + +/// +/// Describes the sequence of dashes and gaps in a stroke. +/// +typedef enum D2D1_DASH_STYLE +{ + D2D1_DASH_STYLE_SOLID = 0, + D2D1_DASH_STYLE_DASH = 1, + D2D1_DASH_STYLE_DOT = 2, + D2D1_DASH_STYLE_DASH_DOT = 3, + D2D1_DASH_STYLE_DASH_DOT_DOT = 4, + D2D1_DASH_STYLE_CUSTOM = 5, + D2D1_DASH_STYLE_FORCE_DWORD = 0xffffffff + +} D2D1_DASH_STYLE; + + +/// +/// Enum which describes the drawing of the corners on the line. +/// +typedef enum D2D1_LINE_JOIN +{ + + /// + /// Miter join. + /// + D2D1_LINE_JOIN_MITER = 0, + + /// + /// Bevel join. + /// + D2D1_LINE_JOIN_BEVEL = 1, + + /// + /// Round join. + /// + D2D1_LINE_JOIN_ROUND = 2, + + /// + /// Miter/Bevel join. + /// + D2D1_LINE_JOIN_MITER_OR_BEVEL = 3, + D2D1_LINE_JOIN_FORCE_DWORD = 0xffffffff + +} D2D1_LINE_JOIN; + + +/// +/// This enumeration describes the type of combine operation to be performed. +/// +typedef enum D2D1_COMBINE_MODE +{ + + /// + /// Produce a geometry representing the set of points contained in either the first + /// or the second geometry. + /// + D2D1_COMBINE_MODE_UNION = 0, + + /// + /// Produce a geometry representing the set of points common to the first and the + /// second geometries. + /// + D2D1_COMBINE_MODE_INTERSECT = 1, + + /// + /// Produce a geometry representing the set of points contained in the first + /// geometry or the second geometry, but not both. + /// + D2D1_COMBINE_MODE_XOR = 2, + + /// + /// Produce a geometry representing the set of points contained in the first + /// geometry but not the second geometry. + /// + D2D1_COMBINE_MODE_EXCLUDE = 3, + D2D1_COMBINE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_COMBINE_MODE; + + +/// +/// Describes how one geometry object is spatially related to another geometry +/// object. +/// +typedef enum D2D1_GEOMETRY_RELATION +{ + + /// + /// The relation between the geometries couldn't be determined. This value is never + /// returned by any D2D method. + /// + D2D1_GEOMETRY_RELATION_UNKNOWN = 0, + + /// + /// The two geometries do not intersect at all. + /// + D2D1_GEOMETRY_RELATION_DISJOINT = 1, + + /// + /// The passed in geometry is entirely contained by the object. + /// + D2D1_GEOMETRY_RELATION_IS_CONTAINED = 2, + + /// + /// The object entirely contains the passed in geometry. + /// + D2D1_GEOMETRY_RELATION_CONTAINS = 3, + + /// + /// The two geometries overlap but neither completely contains the other. + /// + D2D1_GEOMETRY_RELATION_OVERLAP = 4, + D2D1_GEOMETRY_RELATION_FORCE_DWORD = 0xffffffff + +} D2D1_GEOMETRY_RELATION; + + +/// +/// Specifies how simple the output of a simplified geometry sink should be. +/// +typedef enum D2D1_GEOMETRY_SIMPLIFICATION_OPTION +{ + D2D1_GEOMETRY_SIMPLIFICATION_OPTION_CUBICS_AND_LINES = 0, + D2D1_GEOMETRY_SIMPLIFICATION_OPTION_LINES = 1, + D2D1_GEOMETRY_SIMPLIFICATION_OPTION_FORCE_DWORD = 0xffffffff + +} D2D1_GEOMETRY_SIMPLIFICATION_OPTION; + + +/// +/// Indicates whether the given figure is filled or hollow. +/// +typedef enum D2D1_FIGURE_BEGIN +{ + D2D1_FIGURE_BEGIN_FILLED = 0, + D2D1_FIGURE_BEGIN_HOLLOW = 1, + D2D1_FIGURE_BEGIN_FORCE_DWORD = 0xffffffff + +} D2D1_FIGURE_BEGIN; + + +/// +/// Indicates whether the figure is open or closed on its end point. +/// +typedef enum D2D1_FIGURE_END +{ + D2D1_FIGURE_END_OPEN = 0, + D2D1_FIGURE_END_CLOSED = 1, + D2D1_FIGURE_END_FORCE_DWORD = 0xffffffff + +} D2D1_FIGURE_END; + + +/// +/// Describes a cubic bezier in a path. +/// +typedef struct D2D1_BEZIER_SEGMENT +{ + D2D1_POINT_2F point1; + D2D1_POINT_2F point2; + D2D1_POINT_2F point3; + +} D2D1_BEZIER_SEGMENT; + + +/// +/// Describes a triangle. +/// +typedef struct D2D1_TRIANGLE +{ + D2D1_POINT_2F point1; + D2D1_POINT_2F point2; + D2D1_POINT_2F point3; + +} D2D1_TRIANGLE; + + +/// +/// Indicates whether the given segment should be stroked, or, if the join between +/// this segment and the previous one should be smooth. +/// +typedef enum D2D1_PATH_SEGMENT +{ + D2D1_PATH_SEGMENT_NONE = 0x00000000, + D2D1_PATH_SEGMENT_FORCE_UNSTROKED = 0x00000001, + D2D1_PATH_SEGMENT_FORCE_ROUND_LINE_JOIN = 0x00000002, + D2D1_PATH_SEGMENT_FORCE_DWORD = 0xffffffff + +} D2D1_PATH_SEGMENT; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_PATH_SEGMENT); + + +/// +/// Defines the direction that an elliptical arc is drawn. +/// +typedef enum D2D1_SWEEP_DIRECTION +{ + D2D1_SWEEP_DIRECTION_COUNTER_CLOCKWISE = 0, + D2D1_SWEEP_DIRECTION_CLOCKWISE = 1, + D2D1_SWEEP_DIRECTION_FORCE_DWORD = 0xffffffff + +} D2D1_SWEEP_DIRECTION; + + +/// +/// Specifies how the intersecting areas of geometries or figures are combined to +/// form the area of the composite geometry. +/// +typedef enum D2D1_FILL_MODE +{ + D2D1_FILL_MODE_ALTERNATE = 0, + D2D1_FILL_MODE_WINDING = 1, + D2D1_FILL_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_FILL_MODE; + + +/// +/// Describes an arc that is defined as part of a path. +/// +typedef struct D2D1_ARC_SEGMENT +{ + D2D1_POINT_2F point; + D2D1_SIZE_F size; + FLOAT rotationAngle; + D2D1_SWEEP_DIRECTION sweepDirection; + D2D1_ARC_SIZE arcSize; + +} D2D1_ARC_SEGMENT; + + +/// +/// Contains the control point and end point for a quadratic Bezier segment. +/// +typedef struct D2D1_QUADRATIC_BEZIER_SEGMENT +{ + D2D1_POINT_2F point1; + D2D1_POINT_2F point2; + +} D2D1_QUADRATIC_BEZIER_SEGMENT; + + +/// +/// Contains the center point, x-radius, and y-radius of an ellipse. +/// +typedef struct D2D1_ELLIPSE +{ + D2D1_POINT_2F point; + FLOAT radiusX; + FLOAT radiusY; + +} D2D1_ELLIPSE; + + +/// +/// Contains the dimensions and corner radii of a rounded rectangle. +/// +typedef struct D2D1_ROUNDED_RECT +{ + D2D1_RECT_F rect; + FLOAT radiusX; + FLOAT radiusY; + +} D2D1_ROUNDED_RECT; + + +/// +/// Properties, aside from the width, that allow geometric penning to be specified. +/// +typedef struct D2D1_STROKE_STYLE_PROPERTIES +{ + D2D1_CAP_STYLE startCap; + D2D1_CAP_STYLE endCap; + D2D1_CAP_STYLE dashCap; + D2D1_LINE_JOIN lineJoin; + FLOAT miterLimit; + D2D1_DASH_STYLE dashStyle; + FLOAT dashOffset; + +} D2D1_STROKE_STYLE_PROPERTIES; + + +/// +/// Specified options that can be applied when a layer resource is applied to create +/// a layer. +/// +typedef enum D2D1_LAYER_OPTIONS +{ + D2D1_LAYER_OPTIONS_NONE = 0x00000000, + + /// + /// The layer will render correctly for ClearType text. If the render target was set + /// to ClearType previously, the layer will continue to render ClearType. If the + /// render target was set to ClearType and this option is not specified, the render + /// target will be set to render gray-scale until the layer is popped. The caller + /// can override this default by calling SetTextAntialiasMode while within the + /// layer. This flag is slightly slower than the default. + /// + D2D1_LAYER_OPTIONS_INITIALIZE_FOR_CLEARTYPE = 0x00000001, + D2D1_LAYER_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_LAYER_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_LAYER_OPTIONS); + + +/// +/// Contains the content bounds, mask information, opacity settings, and other +/// options for a layer resource. +/// +typedef struct D2D1_LAYER_PARAMETERS +{ + + /// + /// The rectangular clip that will be applied to the layer. The clip is affected by + /// the world transform. Content outside of the content bounds will not render. + /// + D2D1_RECT_F contentBounds; + + /// + /// A general mask that can be optionally applied to the content. Content not inside + /// the fill of the mask will not be rendered. + /// + _Field_size_opt_(1) ID2D1Geometry *geometricMask; + + /// + /// Specifies whether the mask should be aliased or antialiased. + /// + D2D1_ANTIALIAS_MODE maskAntialiasMode; + + /// + /// An additional transform that may be applied to the mask in addition to the + /// current world transform. + /// + D2D1_MATRIX_3X2_F maskTransform; + + /// + /// The opacity with which all of the content in the layer will be blended back to + /// the target when the layer is popped. + /// + FLOAT opacity; + + /// + /// An additional brush that can be applied to the layer. Only the opacity channel + /// is sampled from this brush and multiplied both with the layer content and the + /// over-all layer opacity. + /// + _Field_size_opt_(1) ID2D1Brush *opacityBrush; + + /// + /// Specifies if ClearType will be rendered into the layer. + /// + D2D1_LAYER_OPTIONS layerOptions; + +} D2D1_LAYER_PARAMETERS; + + +/// +/// Describes whether a window is occluded. +/// +typedef enum D2D1_WINDOW_STATE +{ + D2D1_WINDOW_STATE_NONE = 0x0000000, + D2D1_WINDOW_STATE_OCCLUDED = 0x0000001, + D2D1_WINDOW_STATE_FORCE_DWORD = 0xffffffff + +} D2D1_WINDOW_STATE; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_WINDOW_STATE); + + +/// +/// Describes whether a render target uses hardware or software rendering, or if +/// Direct2D should select the rendering mode. +/// +typedef enum D2D1_RENDER_TARGET_TYPE +{ + + /// + /// D2D is free to choose the render target type for the caller. + /// + D2D1_RENDER_TARGET_TYPE_DEFAULT = 0, + + /// + /// The render target will render using the CPU. + /// + D2D1_RENDER_TARGET_TYPE_SOFTWARE = 1, + + /// + /// The render target will render using the GPU. + /// + D2D1_RENDER_TARGET_TYPE_HARDWARE = 2, + D2D1_RENDER_TARGET_TYPE_FORCE_DWORD = 0xffffffff + +} D2D1_RENDER_TARGET_TYPE; + + +/// +/// Describes the minimum DirectX support required for hardware rendering by a +/// render target. +/// +typedef enum D2D1_FEATURE_LEVEL +{ + + /// + /// The caller does not require a particular underlying D3D device level. + /// + D2D1_FEATURE_LEVEL_DEFAULT = 0, + + /// + /// The D3D device level is DX9 compatible. + /// + D2D1_FEATURE_LEVEL_9 = D3D_FEATURE_LEVEL_9_1, + + /// + /// The D3D device level is DX10 compatible. + /// + D2D1_FEATURE_LEVEL_10 = D3D_FEATURE_LEVEL_10_0, + D2D1_FEATURE_LEVEL_FORCE_DWORD = 0xffffffff + +} D2D1_FEATURE_LEVEL; + + +/// +/// Describes how a render target is remoted and whether it should be +/// GDI-compatible. This enumeration allows a bitwise combination of its member +/// values. +/// +typedef enum D2D1_RENDER_TARGET_USAGE +{ + D2D1_RENDER_TARGET_USAGE_NONE = 0x00000000, + + /// + /// Rendering will occur locally, if a terminal-services session is established, the + /// bitmap updates will be sent to the terminal services client. + /// + D2D1_RENDER_TARGET_USAGE_FORCE_BITMAP_REMOTING = 0x00000001, + + /// + /// The render target will allow a call to GetDC on the ID2D1GdiInteropRenderTarget + /// interface. Rendering will also occur locally. + /// + D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE = 0x00000002, + D2D1_RENDER_TARGET_USAGE_FORCE_DWORD = 0xffffffff + +} D2D1_RENDER_TARGET_USAGE; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_RENDER_TARGET_USAGE); + + +/// +/// Describes how present should behave. +/// +typedef enum D2D1_PRESENT_OPTIONS +{ + D2D1_PRESENT_OPTIONS_NONE = 0x00000000, + + /// + /// Keep the target contents intact through present. + /// + D2D1_PRESENT_OPTIONS_RETAIN_CONTENTS = 0x00000001, + + /// + /// Do not wait for display refresh to commit changes to display. + /// + D2D1_PRESENT_OPTIONS_IMMEDIATELY = 0x00000002, + D2D1_PRESENT_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_PRESENT_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_PRESENT_OPTIONS); + + +/// +/// Contains rendering options (hardware or software), pixel format, DPI +/// information, remoting options, and Direct3D support requirements for a render +/// target. +/// +typedef struct D2D1_RENDER_TARGET_PROPERTIES +{ + D2D1_RENDER_TARGET_TYPE type; + D2D1_PIXEL_FORMAT pixelFormat; + FLOAT dpiX; + FLOAT dpiY; + D2D1_RENDER_TARGET_USAGE usage; + D2D1_FEATURE_LEVEL minLevel; + +} D2D1_RENDER_TARGET_PROPERTIES; + + +/// +/// Contains the HWND, pixel size, and presentation options for an +/// ID2D1HwndRenderTarget. +/// +typedef struct D2D1_HWND_RENDER_TARGET_PROPERTIES +{ + HWND hwnd; + D2D1_SIZE_U pixelSize; + D2D1_PRESENT_OPTIONS presentOptions; + +} D2D1_HWND_RENDER_TARGET_PROPERTIES; + + +/// +/// Specifies additional features supportable by a compatible render target when it +/// is created. This enumeration allows a bitwise combination of its member values. +/// +typedef enum D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS +{ + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE = 0x00000000, + + /// + /// The compatible render target will allow a call to GetDC on the + /// ID2D1GdiInteropRenderTarget interface. This can be specified even if the parent + /// render target is not GDI compatible. + /// + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE = 0x00000001, + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS); + + +/// +/// Allows the drawing state to be atomically created. This also specifies the +/// drawing state that is saved into an IDrawingStateBlock object. +/// +typedef struct D2D1_DRAWING_STATE_DESCRIPTION +{ + D2D1_ANTIALIAS_MODE antialiasMode; + D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode; + D2D1_TAG tag1; + D2D1_TAG tag2; + D2D1_MATRIX_3X2_F transform; + +} D2D1_DRAWING_STATE_DESCRIPTION; + + +/// +/// Specifies how a device context is initialized for GDI rendering when it is +/// retrieved from the render target. +/// +typedef enum D2D1_DC_INITIALIZE_MODE +{ + + /// + /// The contents of the D2D render target will be copied to the DC. + /// + D2D1_DC_INITIALIZE_MODE_COPY = 0, + + /// + /// The contents of the DC will be cleared. + /// + D2D1_DC_INITIALIZE_MODE_CLEAR = 1, + D2D1_DC_INITIALIZE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_DC_INITIALIZE_MODE; + + +/// +/// Indicates the debug level to be output by the debug layer. +/// +typedef enum D2D1_DEBUG_LEVEL +{ + D2D1_DEBUG_LEVEL_NONE = 0, + D2D1_DEBUG_LEVEL_ERROR = 1, + D2D1_DEBUG_LEVEL_WARNING = 2, + D2D1_DEBUG_LEVEL_INFORMATION = 3, + D2D1_DEBUG_LEVEL_FORCE_DWORD = 0xffffffff + +} D2D1_DEBUG_LEVEL; + + +/// +/// Specifies the threading model of the created factory and all of its derived +/// resources. +/// +typedef enum D2D1_FACTORY_TYPE +{ + + /// + /// The resulting factory and derived resources may only be invoked serially. + /// Reference counts on resources are interlocked, however, resource and render + /// target state is not protected from multi-threaded access. + /// + D2D1_FACTORY_TYPE_SINGLE_THREADED = 0, + + /// + /// The resulting factory may be invoked from multiple threads. Returned resources + /// use interlocked reference counting and their state is protected. + /// + D2D1_FACTORY_TYPE_MULTI_THREADED = 1, + D2D1_FACTORY_TYPE_FORCE_DWORD = 0xffffffff + +} D2D1_FACTORY_TYPE; + + +/// +/// Allows additional parameters for factory creation. +/// +typedef struct D2D1_FACTORY_OPTIONS +{ + + /// + /// Requests a certain level of debugging information from the debug layer. This + /// parameter is ignored if the debug layer DLL is not present. + /// + D2D1_DEBUG_LEVEL debugLevel; + +} D2D1_FACTORY_OPTIONS; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +EXTERN_C CONST IID IID_ID2D1Resource; +EXTERN_C CONST IID IID_ID2D1Image; +EXTERN_C CONST IID IID_ID2D1Bitmap; +EXTERN_C CONST IID IID_ID2D1GradientStopCollection; +EXTERN_C CONST IID IID_ID2D1Brush; +EXTERN_C CONST IID IID_ID2D1BitmapBrush; +EXTERN_C CONST IID IID_ID2D1SolidColorBrush; +EXTERN_C CONST IID IID_ID2D1LinearGradientBrush; +EXTERN_C CONST IID IID_ID2D1RadialGradientBrush; +EXTERN_C CONST IID IID_ID2D1StrokeStyle; +EXTERN_C CONST IID IID_ID2D1Geometry; +EXTERN_C CONST IID IID_ID2D1RectangleGeometry; +EXTERN_C CONST IID IID_ID2D1RoundedRectangleGeometry; +EXTERN_C CONST IID IID_ID2D1EllipseGeometry; +EXTERN_C CONST IID IID_ID2D1GeometryGroup; +EXTERN_C CONST IID IID_ID2D1TransformedGeometry; +EXTERN_C CONST IID IID_ID2D1SimplifiedGeometrySink; +EXTERN_C CONST IID IID_ID2D1GeometrySink; +EXTERN_C CONST IID IID_ID2D1TessellationSink; +EXTERN_C CONST IID IID_ID2D1PathGeometry; +EXTERN_C CONST IID IID_ID2D1Mesh; +EXTERN_C CONST IID IID_ID2D1Layer; +EXTERN_C CONST IID IID_ID2D1DrawingStateBlock; +EXTERN_C CONST IID IID_ID2D1RenderTarget; +EXTERN_C CONST IID IID_ID2D1BitmapRenderTarget; +EXTERN_C CONST IID IID_ID2D1HwndRenderTarget; +EXTERN_C CONST IID IID_ID2D1DCRenderTarget; +EXTERN_C CONST IID IID_ID2D1Factory; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +EXTERN_C CONST IID IID_ID2D1GdiInteropRenderTarget; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +#ifndef D2D_USE_C_DEFINITIONS + + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +/// +/// The root interface for all resources in D2D. +/// +interface DX_DECLARE_INTERFACE("2cd90691-12e2-11dc-9fed-001143a055f9") ID2D1Resource : public IUnknown +{ + + /// + /// Retrieve the factory associated with this resource. + /// + STDMETHOD_(void, GetFactory)( + _Outptr_ ID2D1Factory **factory + ) CONST PURE; +}; // interface ID2D1Resource + + +/// +/// Represents a producer of pixels that can fill an arbitrary 2D plane. +/// +interface DX_DECLARE_INTERFACE("65019f75-8da2-497c-b32c-dfa34e48ede6") ID2D1Image : public ID2D1Resource +{ +}; // interface ID2D1Image + + +/// +/// Root bitmap resource, linearly scaled on a draw call. +/// +interface DX_DECLARE_INTERFACE("a2296057-ea42-4099-983b-539fb6505426") ID2D1Bitmap : public ID2D1Image +{ + + /// + /// Returns the size of the bitmap in resolution independent units. + /// + STDMETHOD_(D2D1_SIZE_F, GetSize)( + ) CONST PURE; + + /// + /// Returns the size of the bitmap in resolution dependent units, (pixels). + /// + STDMETHOD_(D2D1_SIZE_U, GetPixelSize)( + ) CONST PURE; + + /// + /// Retrieve the format of the bitmap. + /// + STDMETHOD_(D2D1_PIXEL_FORMAT, GetPixelFormat)( + ) CONST PURE; + + /// + /// Return the DPI of the bitmap. + /// + STDMETHOD_(void, GetDpi)( + _Out_ FLOAT *dpiX, + _Out_ FLOAT *dpiY + ) CONST PURE; + + STDMETHOD(CopyFromBitmap)( + _In_opt_ CONST D2D1_POINT_2U *destPoint, + _In_ ID2D1Bitmap *bitmap, + _In_opt_ CONST D2D1_RECT_U *srcRect + ) PURE; + + STDMETHOD(CopyFromRenderTarget)( + _In_opt_ CONST D2D1_POINT_2U *destPoint, + _In_ ID2D1RenderTarget *renderTarget, + _In_opt_ CONST D2D1_RECT_U *srcRect + ) PURE; + + STDMETHOD(CopyFromMemory)( + _In_opt_ CONST D2D1_RECT_U *dstRect, + _In_ CONST void *srcData, + UINT32 pitch + ) PURE; +}; // interface ID2D1Bitmap + + +/// +/// Represents an collection of gradient stops that can then be the source resource +/// for either a linear or radial gradient brush. +/// +interface DX_DECLARE_INTERFACE("2cd906a7-12e2-11dc-9fed-001143a055f9") ID2D1GradientStopCollection : public ID2D1Resource +{ + + /// + /// Returns the number of stops in the gradient. + /// + STDMETHOD_(UINT32, GetGradientStopCount)( + ) CONST PURE; + + /// + /// Copies the gradient stops from the collection into the caller's interface. The + /// returned colors have straight alpha. + /// + STDMETHOD_(void, GetGradientStops)( + _Out_writes_to_(gradientStopsCount, _Inexpressible_("Retrieved through GetGradientStopCount()") ) D2D1_GRADIENT_STOP *gradientStops, + UINT32 gradientStopsCount + ) CONST PURE; + + /// + /// Returns whether the interpolation occurs with 1.0 or 2.2 gamma. + /// + STDMETHOD_(D2D1_GAMMA, GetColorInterpolationGamma)( + ) CONST PURE; + + STDMETHOD_(D2D1_EXTEND_MODE, GetExtendMode)( + ) CONST PURE; +}; // interface ID2D1GradientStopCollection + + +/// +/// The root brush interface. All brushes can be used to fill or pen a geometry. +/// +interface DX_DECLARE_INTERFACE("2cd906a8-12e2-11dc-9fed-001143a055f9") ID2D1Brush : public ID2D1Resource +{ + + /// + /// Sets the opacity for when the brush is drawn over the entire fill of the brush. + /// + STDMETHOD_(void, SetOpacity)( + FLOAT opacity + ) PURE; + + /// + /// Sets the transform that applies to everything drawn by the brush. + /// + STDMETHOD_(void, SetTransform)( + _In_ CONST D2D1_MATRIX_3X2_F *transform + ) PURE; + + STDMETHOD_(FLOAT, GetOpacity)( + ) CONST PURE; + + STDMETHOD_(void, GetTransform)( + _Out_ D2D1_MATRIX_3X2_F *transform + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + void + SetTransform( + CONST D2D1_MATRIX_3X2_F &transform + ) + { + SetTransform(&transform); + } +}; // interface ID2D1Brush + + +/// +/// A bitmap brush allows a bitmap to be used to fill a geometry. +/// +interface DX_DECLARE_INTERFACE("2cd906aa-12e2-11dc-9fed-001143a055f9") ID2D1BitmapBrush : public ID2D1Brush +{ + + /// + /// Sets how the bitmap is to be treated outside of its natural extent on the X + /// axis. + /// + STDMETHOD_(void, SetExtendModeX)( + D2D1_EXTEND_MODE extendModeX + ) PURE; + + /// + /// Sets how the bitmap is to be treated outside of its natural extent on the X + /// axis. + /// + STDMETHOD_(void, SetExtendModeY)( + D2D1_EXTEND_MODE extendModeY + ) PURE; + + /// + /// Sets the interpolation mode used when this brush is used. + /// + STDMETHOD_(void, SetInterpolationMode)( + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode + ) PURE; + + /// + /// Sets the bitmap associated as the source of this brush. + /// + STDMETHOD_(void, SetBitmap)( + _In_opt_ ID2D1Bitmap *bitmap + ) PURE; + + STDMETHOD_(D2D1_EXTEND_MODE, GetExtendModeX)( + ) CONST PURE; + + STDMETHOD_(D2D1_EXTEND_MODE, GetExtendModeY)( + ) CONST PURE; + + STDMETHOD_(D2D1_BITMAP_INTERPOLATION_MODE, GetInterpolationMode)( + ) CONST PURE; + + STDMETHOD_(void, GetBitmap)( + _Outptr_result_maybenull_ ID2D1Bitmap **bitmap + ) CONST PURE; +}; // interface ID2D1BitmapBrush + + +/// +/// Paints an area with a solid color. +/// +interface DX_DECLARE_INTERFACE("2cd906a9-12e2-11dc-9fed-001143a055f9") ID2D1SolidColorBrush : public ID2D1Brush +{ + + STDMETHOD_(void, SetColor)( + _In_ CONST D2D1_COLOR_F *color + ) PURE; + + STDMETHOD_(D2D1_COLOR_F, GetColor)( + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + void + SetColor( + CONST D2D1_COLOR_F &color + ) + { + SetColor(&color); + } +}; // interface ID2D1SolidColorBrush + + +/// +/// Paints an area with a linear gradient. +/// +interface DX_DECLARE_INTERFACE("2cd906ab-12e2-11dc-9fed-001143a055f9") ID2D1LinearGradientBrush : public ID2D1Brush +{ + + STDMETHOD_(void, SetStartPoint)( + D2D1_POINT_2F startPoint + ) PURE; + + /// + /// Sets the end point of the gradient in local coordinate space. This is not + /// influenced by the geometry being filled. + /// + STDMETHOD_(void, SetEndPoint)( + D2D1_POINT_2F endPoint + ) PURE; + + STDMETHOD_(D2D1_POINT_2F, GetStartPoint)( + ) CONST PURE; + + STDMETHOD_(D2D1_POINT_2F, GetEndPoint)( + ) CONST PURE; + + STDMETHOD_(void, GetGradientStopCollection)( + _Outptr_ ID2D1GradientStopCollection **gradientStopCollection + ) CONST PURE; +}; // interface ID2D1LinearGradientBrush + + +/// +/// Paints an area with a radial gradient. +/// +interface DX_DECLARE_INTERFACE("2cd906ac-12e2-11dc-9fed-001143a055f9") ID2D1RadialGradientBrush : public ID2D1Brush +{ + + /// + /// Sets the center of the radial gradient. This will be in local coordinates and + /// will not depend on the geometry being filled. + /// + STDMETHOD_(void, SetCenter)( + D2D1_POINT_2F center + ) PURE; + + /// + /// Sets offset of the origin relative to the radial gradient center. + /// + STDMETHOD_(void, SetGradientOriginOffset)( + D2D1_POINT_2F gradientOriginOffset + ) PURE; + + STDMETHOD_(void, SetRadiusX)( + FLOAT radiusX + ) PURE; + + STDMETHOD_(void, SetRadiusY)( + FLOAT radiusY + ) PURE; + + STDMETHOD_(D2D1_POINT_2F, GetCenter)( + ) CONST PURE; + + STDMETHOD_(D2D1_POINT_2F, GetGradientOriginOffset)( + ) CONST PURE; + + STDMETHOD_(FLOAT, GetRadiusX)( + ) CONST PURE; + + STDMETHOD_(FLOAT, GetRadiusY)( + ) CONST PURE; + + STDMETHOD_(void, GetGradientStopCollection)( + _Outptr_ ID2D1GradientStopCollection **gradientStopCollection + ) CONST PURE; +}; // interface ID2D1RadialGradientBrush + + +/// +/// Resource interface that holds pen style properties. +/// +interface DX_DECLARE_INTERFACE("2cd9069d-12e2-11dc-9fed-001143a055f9") ID2D1StrokeStyle : public ID2D1Resource +{ + + STDMETHOD_(D2D1_CAP_STYLE, GetStartCap)( + ) CONST PURE; + + STDMETHOD_(D2D1_CAP_STYLE, GetEndCap)( + ) CONST PURE; + + STDMETHOD_(D2D1_CAP_STYLE, GetDashCap)( + ) CONST PURE; + + STDMETHOD_(FLOAT, GetMiterLimit)( + ) CONST PURE; + + STDMETHOD_(D2D1_LINE_JOIN, GetLineJoin)( + ) CONST PURE; + + STDMETHOD_(FLOAT, GetDashOffset)( + ) CONST PURE; + + STDMETHOD_(D2D1_DASH_STYLE, GetDashStyle)( + ) CONST PURE; + + STDMETHOD_(UINT32, GetDashesCount)( + ) CONST PURE; + + /// + /// Returns the dashes from the object into a user allocated array. The user must + /// call GetDashesCount to retrieve the required size. + /// + STDMETHOD_(void, GetDashes)( + _Out_writes_(dashesCount) FLOAT *dashes, + UINT32 dashesCount + ) CONST PURE; +}; // interface ID2D1StrokeStyle + + +/// +/// Represents a geometry resource and defines a set of helper methods for +/// manipulating and measuring geometric shapes. Interfaces that inherit from +/// ID2D1Geometry define specific shapes. +/// +interface DX_DECLARE_INTERFACE("2cd906a1-12e2-11dc-9fed-001143a055f9") ID2D1Geometry : public ID2D1Resource +{ + + /// + /// Retrieve the bounds of the geometry, with an optional applied transform. + /// + STDMETHOD(GetBounds)( + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _Out_ D2D1_RECT_F *bounds + ) CONST PURE; + + /// + /// Get the bounds of the corresponding geometry after it has been widened or have + /// an optional pen style applied. + /// + STDMETHOD(GetWidenedBounds)( + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _Out_ D2D1_RECT_F *bounds + ) CONST PURE; + + /// + /// Checks to see whether the corresponding penned and widened geometry contains the + /// given point. + /// + STDMETHOD(StrokeContainsPoint)( + D2D1_POINT_2F point, + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _Out_ BOOL *contains + ) CONST PURE; + + /// + /// Test whether the given fill of this geometry would contain this point. + /// + STDMETHOD(FillContainsPoint)( + D2D1_POINT_2F point, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _Out_ BOOL *contains + ) CONST PURE; + + /// + /// Compare how one geometry intersects or contains another geometry. + /// + STDMETHOD(CompareWithGeometry)( + _In_ ID2D1Geometry *inputGeometry, + _In_opt_ CONST D2D1_MATRIX_3X2_F *inputGeometryTransform, + FLOAT flatteningTolerance, + _Out_ D2D1_GEOMETRY_RELATION *relation + ) CONST PURE; + + /// + /// Converts a geometry to a simplified geometry that has arcs and quadratic beziers + /// removed. + /// + STDMETHOD(Simplify)( + D2D1_GEOMETRY_SIMPLIFICATION_OPTION simplificationOption, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST PURE; + + /// + /// Tessellates a geometry into triangles. + /// + STDMETHOD(Tessellate)( + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _In_ ID2D1TessellationSink *tessellationSink + ) CONST PURE; + + /// + /// Performs a combine operation between the two geometries to produce a resulting + /// geometry. + /// + STDMETHOD(CombineWithGeometry)( + _In_ ID2D1Geometry *inputGeometry, + D2D1_COMBINE_MODE combineMode, + _In_opt_ CONST D2D1_MATRIX_3X2_F *inputGeometryTransform, + FLOAT flatteningTolerance, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST PURE; + + /// + /// Computes the outline of the geometry. The result is written back into a + /// simplified geometry sink. + /// + STDMETHOD(Outline)( + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST PURE; + + /// + /// Computes the area of the geometry. + /// + STDMETHOD(ComputeArea)( + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _Out_ FLOAT *area + ) CONST PURE; + + /// + /// Computes the length of the geometry. + /// + STDMETHOD(ComputeLength)( + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _Out_ FLOAT *length + ) CONST PURE; + + /// + /// Computes the point and tangent a given distance along the path. + /// + STDMETHOD(ComputePointAtLength)( + FLOAT length, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _Out_opt_ D2D1_POINT_2F *point, + _Out_opt_ D2D1_POINT_2F *unitTangentVector + ) CONST PURE; + + /// + /// Get the geometry and widen it as well as apply an optional pen style. + /// + STDMETHOD(Widen)( + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST PURE; + + /// + /// Retrieve the bounds of the geometry, with an optional applied transform. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetBounds( + CONST D2D1_MATRIX_3X2_F &worldTransform, + _Out_ D2D1_RECT_F *bounds + ) CONST + { + return GetBounds(&worldTransform, bounds); + } + + /// + /// Get the bounds of the corresponding geometry after it has been widened or have + /// an optional pen style applied. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetWidenedBounds( + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _Out_ D2D1_RECT_F *bounds + ) CONST + { + return GetWidenedBounds(strokeWidth, strokeStyle, &worldTransform, flatteningTolerance, bounds); + } + + /// + /// Get the bounds of the corresponding geometry after it has been widened or have + /// an optional pen style applied. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetWidenedBounds( + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _Out_ D2D1_RECT_F *bounds + ) CONST + { + return GetWidenedBounds(strokeWidth, strokeStyle, worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, bounds); + } + + /// + /// Get the bounds of the corresponding geometry after it has been widened or have + /// an optional pen style applied. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetWidenedBounds( + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + CONST D2D1_MATRIX_3X2_F &worldTransform, + _Out_ D2D1_RECT_F *bounds + ) CONST + { + return GetWidenedBounds(strokeWidth, strokeStyle, &worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, bounds); + } + + COM_DECLSPEC_NOTHROW + HRESULT + StrokeContainsPoint( + D2D1_POINT_2F point, + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _Out_ BOOL *contains + ) CONST + { + return StrokeContainsPoint(point, strokeWidth, strokeStyle, &worldTransform, flatteningTolerance, contains); + } + + /// + /// Checks to see whether the corresponding penned and widened geometry contains the + /// given point. + /// + COM_DECLSPEC_NOTHROW + HRESULT + StrokeContainsPoint( + D2D1_POINT_2F point, + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _Out_ BOOL *contains + ) CONST + { + return StrokeContainsPoint(point, strokeWidth, strokeStyle, worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, contains); + } + + COM_DECLSPEC_NOTHROW + HRESULT + StrokeContainsPoint( + D2D1_POINT_2F point, + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + CONST D2D1_MATRIX_3X2_F &worldTransform, + _Out_ BOOL *contains + ) CONST + { + return StrokeContainsPoint(point, strokeWidth, strokeStyle, &worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, contains); + } + + COM_DECLSPEC_NOTHROW + HRESULT + FillContainsPoint( + D2D1_POINT_2F point, + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _Out_ BOOL *contains + ) CONST + { + return FillContainsPoint(point, &worldTransform, flatteningTolerance, contains); + } + + /// + /// Test whether the given fill of this geometry would contain this point. + /// + COM_DECLSPEC_NOTHROW + HRESULT + FillContainsPoint( + D2D1_POINT_2F point, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _Out_ BOOL *contains + ) CONST + { + return FillContainsPoint(point, worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, contains); + } + + COM_DECLSPEC_NOTHROW + HRESULT + FillContainsPoint( + D2D1_POINT_2F point, + CONST D2D1_MATRIX_3X2_F &worldTransform, + _Out_ BOOL *contains + ) CONST + { + return FillContainsPoint(point, &worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, contains); + } + + /// + /// Compare how one geometry intersects or contains another geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CompareWithGeometry( + _In_ ID2D1Geometry *inputGeometry, + CONST D2D1_MATRIX_3X2_F &inputGeometryTransform, + FLOAT flatteningTolerance, + _Out_ D2D1_GEOMETRY_RELATION *relation + ) CONST + { + return CompareWithGeometry(inputGeometry, &inputGeometryTransform, flatteningTolerance, relation); + } + + /// + /// Compare how one geometry intersects or contains another geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CompareWithGeometry( + _In_ ID2D1Geometry *inputGeometry, + _In_opt_ CONST D2D1_MATRIX_3X2_F *inputGeometryTransform, + _Out_ D2D1_GEOMETRY_RELATION *relation + ) CONST + { + return CompareWithGeometry(inputGeometry, inputGeometryTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, relation); + } + + /// + /// Compare how one geometry intersects or contains another geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CompareWithGeometry( + _In_ ID2D1Geometry *inputGeometry, + CONST D2D1_MATRIX_3X2_F &inputGeometryTransform, + _Out_ D2D1_GEOMETRY_RELATION *relation + ) CONST + { + return CompareWithGeometry(inputGeometry, &inputGeometryTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, relation); + } + + /// + /// Converts a geometry to a simplified geometry that has arcs and quadratic beziers + /// removed. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Simplify( + D2D1_GEOMETRY_SIMPLIFICATION_OPTION simplificationOption, + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return Simplify(simplificationOption, &worldTransform, flatteningTolerance, geometrySink); + } + + /// + /// Converts a geometry to a simplified geometry that has arcs and quadratic beziers + /// removed. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Simplify( + D2D1_GEOMETRY_SIMPLIFICATION_OPTION simplificationOption, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return Simplify(simplificationOption, worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, geometrySink); + } + + /// + /// Converts a geometry to a simplified geometry that has arcs and quadratic beziers + /// removed. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Simplify( + D2D1_GEOMETRY_SIMPLIFICATION_OPTION simplificationOption, + CONST D2D1_MATRIX_3X2_F &worldTransform, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return Simplify(simplificationOption, &worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, geometrySink); + } + + /// + /// Tessellates a geometry into triangles. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Tessellate( + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _In_ ID2D1TessellationSink *tessellationSink + ) CONST + { + return Tessellate(&worldTransform, flatteningTolerance, tessellationSink); + } + + /// + /// Tessellates a geometry into triangles. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Tessellate( + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _In_ ID2D1TessellationSink *tessellationSink + ) CONST + { + return Tessellate(worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, tessellationSink); + } + + /// + /// Tessellates a geometry into triangles. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Tessellate( + CONST D2D1_MATRIX_3X2_F &worldTransform, + _In_ ID2D1TessellationSink *tessellationSink + ) CONST + { + return Tessellate(&worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, tessellationSink); + } + + /// + /// Performs a combine operation between the two geometries to produce a resulting + /// geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CombineWithGeometry( + _In_ ID2D1Geometry *inputGeometry, + D2D1_COMBINE_MODE combineMode, + CONST D2D1_MATRIX_3X2_F &inputGeometryTransform, + FLOAT flatteningTolerance, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return CombineWithGeometry(inputGeometry, combineMode, &inputGeometryTransform, flatteningTolerance, geometrySink); + } + + /// + /// Performs a combine operation between the two geometries to produce a resulting + /// geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CombineWithGeometry( + _In_ ID2D1Geometry *inputGeometry, + D2D1_COMBINE_MODE combineMode, + _In_opt_ CONST D2D1_MATRIX_3X2_F *inputGeometryTransform, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return CombineWithGeometry(inputGeometry, combineMode, inputGeometryTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, geometrySink); + } + + /// + /// Performs a combine operation between the two geometries to produce a resulting + /// geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CombineWithGeometry( + _In_ ID2D1Geometry *inputGeometry, + D2D1_COMBINE_MODE combineMode, + CONST D2D1_MATRIX_3X2_F &inputGeometryTransform, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return CombineWithGeometry(inputGeometry, combineMode, &inputGeometryTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, geometrySink); + } + + /// + /// Computes the outline of the geometry. The result is written back into a + /// simplified geometry sink. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Outline( + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return Outline(&worldTransform, flatteningTolerance, geometrySink); + } + + /// + /// Computes the outline of the geometry. The result is written back into a + /// simplified geometry sink. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Outline( + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return Outline(worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, geometrySink); + } + + /// + /// Computes the outline of the geometry. The result is written back into a + /// simplified geometry sink. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Outline( + CONST D2D1_MATRIX_3X2_F &worldTransform, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return Outline(&worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, geometrySink); + } + + /// + /// Computes the area of the geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + ComputeArea( + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _Out_ FLOAT *area + ) CONST + { + return ComputeArea(&worldTransform, flatteningTolerance, area); + } + + /// + /// Computes the area of the geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + ComputeArea( + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _Out_ FLOAT *area + ) CONST + { + return ComputeArea(worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, area); + } + + /// + /// Computes the area of the geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + ComputeArea( + CONST D2D1_MATRIX_3X2_F &worldTransform, + _Out_ FLOAT *area + ) CONST + { + return ComputeArea(&worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, area); + } + + /// + /// Computes the length of the geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + ComputeLength( + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _Out_ FLOAT *length + ) CONST + { + return ComputeLength(&worldTransform, flatteningTolerance, length); + } + + /// + /// Computes the length of the geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + ComputeLength( + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _Out_ FLOAT *length + ) CONST + { + return ComputeLength(worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, length); + } + + /// + /// Computes the length of the geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + ComputeLength( + CONST D2D1_MATRIX_3X2_F &worldTransform, + _Out_ FLOAT *length + ) CONST + { + return ComputeLength(&worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, length); + } + + /// + /// Computes the point and tangent a given distance along the path. + /// + COM_DECLSPEC_NOTHROW + HRESULT + ComputePointAtLength( + FLOAT length, + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _Out_opt_ D2D1_POINT_2F *point, + _Out_opt_ D2D1_POINT_2F *unitTangentVector + ) CONST + { + return ComputePointAtLength(length, &worldTransform, flatteningTolerance, point, unitTangentVector); + } + + /// + /// Computes the point and tangent a given distance along the path. + /// + COM_DECLSPEC_NOTHROW + HRESULT + ComputePointAtLength( + FLOAT length, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _Out_opt_ D2D1_POINT_2F *point, + _Out_opt_ D2D1_POINT_2F *unitTangentVector + ) CONST + { + return ComputePointAtLength(length, worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, point, unitTangentVector); + } + + /// + /// Computes the point and tangent a given distance along the path. + /// + COM_DECLSPEC_NOTHROW + HRESULT + ComputePointAtLength( + FLOAT length, + CONST D2D1_MATRIX_3X2_F &worldTransform, + _Out_opt_ D2D1_POINT_2F *point, + _Out_opt_ D2D1_POINT_2F *unitTangentVector + ) CONST + { + return ComputePointAtLength(length, &worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, point, unitTangentVector); + } + + /// + /// Get the geometry and widen it as well as apply an optional pen style. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Widen( + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return Widen(strokeWidth, strokeStyle, &worldTransform, flatteningTolerance, geometrySink); + } + + /// + /// Get the geometry and widen it as well as apply an optional pen style. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Widen( + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return Widen(strokeWidth, strokeStyle, worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, geometrySink); + } + + /// + /// Get the geometry and widen it as well as apply an optional pen style. + /// + COM_DECLSPEC_NOTHROW + HRESULT + Widen( + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + CONST D2D1_MATRIX_3X2_F &worldTransform, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return Widen(strokeWidth, strokeStyle, &worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, geometrySink); + } +}; // interface ID2D1Geometry + + +/// +/// Describes a two-dimensional rectangle. +/// +interface DX_DECLARE_INTERFACE("2cd906a2-12e2-11dc-9fed-001143a055f9") ID2D1RectangleGeometry : public ID2D1Geometry +{ + + STDMETHOD_(void, GetRect)( + _Out_ D2D1_RECT_F *rect + ) CONST PURE; +}; // interface ID2D1RectangleGeometry + + +/// +/// Describes a rounded rectangle. +/// +interface DX_DECLARE_INTERFACE("2cd906a3-12e2-11dc-9fed-001143a055f9") ID2D1RoundedRectangleGeometry : public ID2D1Geometry +{ + + STDMETHOD_(void, GetRoundedRect)( + _Out_ D2D1_ROUNDED_RECT *roundedRect + ) CONST PURE; +}; // interface ID2D1RoundedRectangleGeometry + + +/// +/// Represents an ellipse. +/// +interface DX_DECLARE_INTERFACE("2cd906a4-12e2-11dc-9fed-001143a055f9") ID2D1EllipseGeometry : public ID2D1Geometry +{ + + STDMETHOD_(void, GetEllipse)( + _Out_ D2D1_ELLIPSE *ellipse + ) CONST PURE; +}; // interface ID2D1EllipseGeometry + + +/// +/// Represents a composite geometry, composed of other ID2D1Geometry objects. +/// +interface DX_DECLARE_INTERFACE("2cd906a6-12e2-11dc-9fed-001143a055f9") ID2D1GeometryGroup : public ID2D1Geometry +{ + + STDMETHOD_(D2D1_FILL_MODE, GetFillMode)( + ) CONST PURE; + + STDMETHOD_(UINT32, GetSourceGeometryCount)( + ) CONST PURE; + + STDMETHOD_(void, GetSourceGeometries)( + _Out_writes_(geometriesCount) ID2D1Geometry **geometries, + UINT32 geometriesCount + ) CONST PURE; +}; // interface ID2D1GeometryGroup + + +/// +/// Represents a geometry that has been transformed. +/// +interface DX_DECLARE_INTERFACE("2cd906bb-12e2-11dc-9fed-001143a055f9") ID2D1TransformedGeometry : public ID2D1Geometry +{ + + STDMETHOD_(void, GetSourceGeometry)( + _Outptr_ ID2D1Geometry **sourceGeometry + ) CONST PURE; + + STDMETHOD_(void, GetTransform)( + _Out_ D2D1_MATRIX_3X2_F *transform + ) CONST PURE; +}; // interface ID2D1TransformedGeometry + + +/// +/// Describes a geometric path that does not contain quadratic bezier curves or +/// arcs. +/// +interface DX_DECLARE_INTERFACE("2cd9069e-12e2-11dc-9fed-001143a055f9") ID2D1SimplifiedGeometrySink : public IUnknown +{ + + STDMETHOD_(void, SetFillMode)( + D2D1_FILL_MODE fillMode + ) PURE; + + STDMETHOD_(void, SetSegmentFlags)( + D2D1_PATH_SEGMENT vertexFlags + ) PURE; + + STDMETHOD_(void, BeginFigure)( + D2D1_POINT_2F startPoint, + D2D1_FIGURE_BEGIN figureBegin + ) PURE; + + STDMETHOD_(void, AddLines)( + _In_reads_(pointsCount) CONST D2D1_POINT_2F *points, + UINT32 pointsCount + ) PURE; + + STDMETHOD_(void, AddBeziers)( + _In_reads_(beziersCount) CONST D2D1_BEZIER_SEGMENT *beziers, + UINT32 beziersCount + ) PURE; + + STDMETHOD_(void, EndFigure)( + D2D1_FIGURE_END figureEnd + ) PURE; + + STDMETHOD(Close)( + ) PURE; +}; // interface ID2D1SimplifiedGeometrySink + + +/// +/// Describes a geometric path that can contain lines, arcs, cubic Bezier curves, +/// and quadratic Bezier curves. +/// +interface DX_DECLARE_INTERFACE("2cd9069f-12e2-11dc-9fed-001143a055f9") ID2D1GeometrySink : public ID2D1SimplifiedGeometrySink +{ + + STDMETHOD_(void, AddLine)( + D2D1_POINT_2F point + ) PURE; + + STDMETHOD_(void, AddBezier)( + _In_ CONST D2D1_BEZIER_SEGMENT *bezier + ) PURE; + + STDMETHOD_(void, AddQuadraticBezier)( + _In_ CONST D2D1_QUADRATIC_BEZIER_SEGMENT *bezier + ) PURE; + + STDMETHOD_(void, AddQuadraticBeziers)( + _In_reads_(beziersCount) CONST D2D1_QUADRATIC_BEZIER_SEGMENT *beziers, + UINT32 beziersCount + ) PURE; + + STDMETHOD_(void, AddArc)( + _In_ CONST D2D1_ARC_SEGMENT *arc + ) PURE; + + COM_DECLSPEC_NOTHROW + void + AddBezier( + CONST D2D1_BEZIER_SEGMENT &bezier + ) + { + AddBezier(&bezier); + } + + COM_DECLSPEC_NOTHROW + void + AddQuadraticBezier( + CONST D2D1_QUADRATIC_BEZIER_SEGMENT &bezier + ) + { + AddQuadraticBezier(&bezier); + } + + COM_DECLSPEC_NOTHROW + void + AddArc( + CONST D2D1_ARC_SEGMENT &arc + ) + { + AddArc(&arc); + } +}; // interface ID2D1GeometrySink + + +/// +/// Populates an ID2D1Mesh object with triangles. +/// +interface DX_DECLARE_INTERFACE("2cd906c1-12e2-11dc-9fed-001143a055f9") ID2D1TessellationSink : public IUnknown +{ + + STDMETHOD_(void, AddTriangles)( + _In_reads_(trianglesCount) CONST D2D1_TRIANGLE *triangles, + UINT32 trianglesCount + ) PURE; + + STDMETHOD(Close)( + ) PURE; +}; // interface ID2D1TessellationSink + + +/// +/// Represents a complex shape that may be composed of arcs, curves, and lines. +/// +interface DX_DECLARE_INTERFACE("2cd906a5-12e2-11dc-9fed-001143a055f9") ID2D1PathGeometry : public ID2D1Geometry +{ + + /// + /// Opens a geometry sink that will be used to create this path geometry. + /// + STDMETHOD(Open)( + _COM_Outptr_ ID2D1GeometrySink **geometrySink + ) PURE; + + /// + /// Retrieve the contents of this geometry. The caller passes an implementation of a + /// ID2D1GeometrySink interface to receive the data. + /// + STDMETHOD(Stream)( + _In_ ID2D1GeometrySink *geometrySink + ) CONST PURE; + + STDMETHOD(GetSegmentCount)( + _Out_ UINT32 *count + ) CONST PURE; + + STDMETHOD(GetFigureCount)( + _Out_ UINT32 *count + ) CONST PURE; +}; // interface ID2D1PathGeometry + + +/// +/// Represents a set of vertices that form a list of triangles. +/// +interface DX_DECLARE_INTERFACE("2cd906c2-12e2-11dc-9fed-001143a055f9") ID2D1Mesh : public ID2D1Resource +{ + + /// + /// Opens the mesh for population. + /// + STDMETHOD(Open)( + _COM_Outptr_ ID2D1TessellationSink **tessellationSink + ) PURE; +}; // interface ID2D1Mesh + + +/// +/// Represents the backing store required to render a layer. +/// +interface DX_DECLARE_INTERFACE("2cd9069b-12e2-11dc-9fed-001143a055f9") ID2D1Layer : public ID2D1Resource +{ + + STDMETHOD_(D2D1_SIZE_F, GetSize)( + ) CONST PURE; +}; // interface ID2D1Layer + + +/// +/// Represents the drawing state of a render target: the antialiasing mode, +/// transform, tags, and text-rendering options. +/// +interface DX_DECLARE_INTERFACE("28506e39-ebf6-46a1-bb47-fd85565ab957") ID2D1DrawingStateBlock : public ID2D1Resource +{ + + /// + /// Retrieves the state currently contained within this state block resource. + /// + STDMETHOD_(void, GetDescription)( + _Out_ D2D1_DRAWING_STATE_DESCRIPTION *stateDescription + ) CONST PURE; + + /// + /// Sets the state description of this state block resource. + /// + STDMETHOD_(void, SetDescription)( + _In_ CONST D2D1_DRAWING_STATE_DESCRIPTION *stateDescription + ) PURE; + + /// + /// Sets the text rendering parameters of this state block resource. + /// + STDMETHOD_(void, SetTextRenderingParams)( + _In_opt_ IDWriteRenderingParams *textRenderingParams = NULL + ) PURE; + + /// + /// Retrieves the text rendering parameters contained within this state block + /// resource. If a NULL text rendering parameter was specified, NULL will be + /// returned. + /// + STDMETHOD_(void, GetTextRenderingParams)( + _Outptr_result_maybenull_ IDWriteRenderingParams **textRenderingParams + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + void + SetDescription( + CONST D2D1_DRAWING_STATE_DESCRIPTION &stateDescription + ) + { + SetDescription(&stateDescription); + } +}; // interface ID2D1DrawingStateBlock + + +/// +/// Represents an object that can receive drawing commands. Interfaces that inherit +/// from ID2D1RenderTarget render the drawing commands they receive in different +/// ways. +/// +interface DX_DECLARE_INTERFACE("2cd90694-12e2-11dc-9fed-001143a055f9") ID2D1RenderTarget : public ID2D1Resource +{ + + /// + /// Create a D2D bitmap by copying from memory, or create uninitialized. + /// + STDMETHOD(CreateBitmap)( + D2D1_SIZE_U size, + _In_opt_ CONST void *srcData, + UINT32 pitch, + _In_ CONST D2D1_BITMAP_PROPERTIES *bitmapProperties, + _COM_Outptr_ ID2D1Bitmap **bitmap + ) PURE; + + /// + /// Create a D2D bitmap by copying a WIC bitmap. + /// + STDMETHOD(CreateBitmapFromWicBitmap)( + _In_ IWICBitmapSource *wicBitmapSource, + _In_opt_ CONST D2D1_BITMAP_PROPERTIES *bitmapProperties, + _COM_Outptr_ ID2D1Bitmap **bitmap + ) PURE; + + /// + /// Create a D2D bitmap by sharing bits from another resource. The bitmap must be + /// compatible with the render target for the call to succeed. For example, an + /// IWICBitmap can be shared with a software target, or a DXGI surface can be shared + /// with a DXGI render target. + /// + STDMETHOD(CreateSharedBitmap)( + _In_ REFIID riid, + _Inout_ void *data, + _In_opt_ CONST D2D1_BITMAP_PROPERTIES *bitmapProperties, + _COM_Outptr_ ID2D1Bitmap **bitmap + ) PURE; + + /// + /// Creates a bitmap brush. The bitmap is scaled, rotated, skewed or tiled to fill + /// or pen a geometry. + /// + STDMETHOD(CreateBitmapBrush)( + _In_opt_ ID2D1Bitmap *bitmap, + _In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES *bitmapBrushProperties, + _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, + _COM_Outptr_ ID2D1BitmapBrush **bitmapBrush + ) PURE; + + STDMETHOD(CreateSolidColorBrush)( + _In_ CONST D2D1_COLOR_F *color, + _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, + _COM_Outptr_ ID2D1SolidColorBrush **solidColorBrush + ) PURE; + + /// + /// A gradient stop collection represents a set of stops in an ideal unit length. + /// This is the source resource for a linear gradient and radial gradient brush. + /// + /// Specifies which space the color + /// interpolation occurs in. + /// Specifies how the gradient will be extended outside of + /// the unit length. + STDMETHOD(CreateGradientStopCollection)( + _In_reads_(gradientStopsCount) CONST D2D1_GRADIENT_STOP *gradientStops, + _In_range_(>=,1) UINT32 gradientStopsCount, + D2D1_GAMMA colorInterpolationGamma, + D2D1_EXTEND_MODE extendMode, + _COM_Outptr_ ID2D1GradientStopCollection **gradientStopCollection + ) PURE; + + STDMETHOD(CreateLinearGradientBrush)( + _In_ CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES *linearGradientBrushProperties, + _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, + _In_ ID2D1GradientStopCollection *gradientStopCollection, + _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush + ) PURE; + + STDMETHOD(CreateRadialGradientBrush)( + _In_ CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES *radialGradientBrushProperties, + _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, + _In_ ID2D1GradientStopCollection *gradientStopCollection, + _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush + ) PURE; + + /// + /// Creates a bitmap render target whose bitmap can be used as a source for + /// rendering in the API. + /// + /// The requested size of the target in DIPs. If the pixel + /// size is not specified, the DPI is inherited from the parent target. However, the + /// render target will never contain a fractional number of pixels. + /// The requested size of the render target in + /// pixels. If the DIP size is also specified, the DPI is calculated from these two + /// values. If the desired size is not specified, the DPI is inherited from the + /// parent render target. If neither value is specified, the compatible render + /// target will be the same size and have the same DPI as the parent target. + /// The desired pixel format. The format must be + /// compatible with the parent render target type. If the format is not specified, + /// it will be inherited from the parent render target. + /// Allows the caller to retrieve a GDI compatible render + /// target. + /// The returned bitmap render target. + STDMETHOD(CreateCompatibleRenderTarget)( + _In_opt_ CONST D2D1_SIZE_F *desiredSize, + _In_opt_ CONST D2D1_SIZE_U *desiredPixelSize, + _In_opt_ CONST D2D1_PIXEL_FORMAT *desiredFormat, + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options, + _COM_Outptr_ ID2D1BitmapRenderTarget **bitmapRenderTarget + ) PURE; + + /// + /// Creates a layer resource that can be used on any target and which will resize + /// under the covers if necessary. + /// + /// The resolution independent minimum size hint for the layer + /// resource. Specify this to prevent unwanted reallocation of the layer backing + /// store. The size is in DIPs, but, it is unaffected by the current world + /// transform. If the size is unspecified, the returned resource is a placeholder + /// and the backing store will be allocated to be the minimum size that can hold the + /// content when the layer is pushed. + STDMETHOD(CreateLayer)( + _In_opt_ CONST D2D1_SIZE_F *size, + _COM_Outptr_ ID2D1Layer **layer + ) PURE; + + /// + /// Create a D2D mesh. + /// + STDMETHOD(CreateMesh)( + _COM_Outptr_ ID2D1Mesh **mesh + ) PURE; + + STDMETHOD_(void, DrawLine)( + D2D1_POINT_2F point0, + D2D1_POINT_2F point1, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth = 1.0f, + _In_opt_ ID2D1StrokeStyle *strokeStyle = NULL + ) PURE; + + STDMETHOD_(void, DrawRectangle)( + _In_ CONST D2D1_RECT_F *rect, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth = 1.0f, + _In_opt_ ID2D1StrokeStyle *strokeStyle = NULL + ) PURE; + + STDMETHOD_(void, FillRectangle)( + _In_ CONST D2D1_RECT_F *rect, + _In_ ID2D1Brush *brush + ) PURE; + + STDMETHOD_(void, DrawRoundedRectangle)( + _In_ CONST D2D1_ROUNDED_RECT *roundedRect, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth = 1.0f, + _In_opt_ ID2D1StrokeStyle *strokeStyle = NULL + ) PURE; + + STDMETHOD_(void, FillRoundedRectangle)( + _In_ CONST D2D1_ROUNDED_RECT *roundedRect, + _In_ ID2D1Brush *brush + ) PURE; + + STDMETHOD_(void, DrawEllipse)( + _In_ CONST D2D1_ELLIPSE *ellipse, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth = 1.0f, + _In_opt_ ID2D1StrokeStyle *strokeStyle = NULL + ) PURE; + + STDMETHOD_(void, FillEllipse)( + _In_ CONST D2D1_ELLIPSE *ellipse, + _In_ ID2D1Brush *brush + ) PURE; + + STDMETHOD_(void, DrawGeometry)( + _In_ ID2D1Geometry *geometry, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth = 1.0f, + _In_opt_ ID2D1StrokeStyle *strokeStyle = NULL + ) PURE; + + /// An optionally specified opacity brush. Only the alpha + /// channel of the corresponding brush will be sampled and will be applied to the + /// entire fill of the geometry. If this brush is specified, the fill brush must be + /// a bitmap brush with an extend mode of D2D1_EXTEND_MODE_CLAMP. + STDMETHOD_(void, FillGeometry)( + _In_ ID2D1Geometry *geometry, + _In_ ID2D1Brush *brush, + _In_opt_ ID2D1Brush *opacityBrush = NULL + ) PURE; + + /// + /// Fill a mesh. Since meshes can only render aliased content, the render target + /// antialiasing mode must be set to aliased. + /// + STDMETHOD_(void, FillMesh)( + _In_ ID2D1Mesh *mesh, + _In_ ID2D1Brush *brush + ) PURE; + + /// + /// Fill using the alpha channel of the supplied opacity mask bitmap. The brush + /// opacity will be modulated by the mask. The render target antialiasing mode must + /// be set to aliased. + /// + STDMETHOD_(void, FillOpacityMask)( + _In_ ID2D1Bitmap *opacityMask, + _In_ ID2D1Brush *brush, + D2D1_OPACITY_MASK_CONTENT content, + _In_opt_ CONST D2D1_RECT_F *destinationRectangle = NULL, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle = NULL + ) PURE; + + STDMETHOD_(void, DrawBitmap)( + _In_ ID2D1Bitmap *bitmap, + _In_opt_ CONST D2D1_RECT_F *destinationRectangle = NULL, + FLOAT opacity = 1.0f, + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode = D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle = NULL + ) PURE; + + /// + /// Draws the text within the given layout rectangle and by default also performs + /// baseline snapping. + /// + STDMETHOD_(void, DrawText)( + _In_reads_(stringLength) CONST WCHAR *string, + UINT32 stringLength, + _In_ IDWriteTextFormat *textFormat, + _In_ CONST D2D1_RECT_F *layoutRect, + _In_ ID2D1Brush *defaultFillBrush, + D2D1_DRAW_TEXT_OPTIONS options = D2D1_DRAW_TEXT_OPTIONS_NONE, + DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL + ) PURE; + + /// + /// Draw a text layout object. If the layout is not subsequently changed, this can + /// be more efficient than DrawText when drawing the same layout repeatedly. + /// + /// The specified text options. If D2D1_DRAW_TEXT_OPTIONS_CLIP + /// is used, the text is clipped to the layout bounds. These bounds are derived from + /// the origin and the layout bounds of the corresponding IDWriteTextLayout object. + /// + STDMETHOD_(void, DrawTextLayout)( + D2D1_POINT_2F origin, + _In_ IDWriteTextLayout *textLayout, + _In_ ID2D1Brush *defaultFillBrush, + D2D1_DRAW_TEXT_OPTIONS options = D2D1_DRAW_TEXT_OPTIONS_NONE + ) PURE; + + STDMETHOD_(void, DrawGlyphRun)( + D2D1_POINT_2F baselineOrigin, + _In_ CONST DWRITE_GLYPH_RUN *glyphRun, + _In_ ID2D1Brush *foregroundBrush, + DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL + ) PURE; + + STDMETHOD_(void, SetTransform)( + _In_ CONST D2D1_MATRIX_3X2_F *transform + ) PURE; + + STDMETHOD_(void, GetTransform)( + _Out_ D2D1_MATRIX_3X2_F *transform + ) CONST PURE; + + STDMETHOD_(void, SetAntialiasMode)( + D2D1_ANTIALIAS_MODE antialiasMode + ) PURE; + + STDMETHOD_(D2D1_ANTIALIAS_MODE, GetAntialiasMode)( + ) CONST PURE; + + STDMETHOD_(void, SetTextAntialiasMode)( + D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode + ) PURE; + + STDMETHOD_(D2D1_TEXT_ANTIALIAS_MODE, GetTextAntialiasMode)( + ) CONST PURE; + + STDMETHOD_(void, SetTextRenderingParams)( + _In_opt_ IDWriteRenderingParams *textRenderingParams = NULL + ) PURE; + + /// + /// Retrieve the text render parameters. NOTE: If NULL is specified to + /// SetTextRenderingParameters, NULL will be returned. + /// + STDMETHOD_(void, GetTextRenderingParams)( + _Outptr_result_maybenull_ IDWriteRenderingParams **textRenderingParams + ) CONST PURE; + + /// + /// Set a tag to correspond to the succeeding primitives. If an error occurs + /// rendering a primitive, the tags can be returned from the Flush or EndDraw call. + /// + STDMETHOD_(void, SetTags)( + D2D1_TAG tag1, + D2D1_TAG tag2 + ) PURE; + + /// + /// Retrieves the currently set tags. This does not retrieve the tags corresponding + /// to any primitive that is in error. + /// + STDMETHOD_(void, GetTags)( + _Out_opt_ D2D1_TAG *tag1 = NULL, + _Out_opt_ D2D1_TAG *tag2 = NULL + ) CONST PURE; + + /// + /// Start a layer of drawing calls. The way in which the layer must be resolved is + /// specified first as well as the logical resource that stores the layer + /// parameters. The supplied layer resource might grow if the specified content + /// cannot fit inside it. The layer will grow monotonically on each axis. If a NULL + /// ID2D1Layer is provided, then a layer resource will be allocated automatically. + /// + STDMETHOD_(void, PushLayer)( + _In_ CONST D2D1_LAYER_PARAMETERS *layerParameters, + _In_opt_ ID2D1Layer *layer + ) PURE; + + /// + /// Ends a layer that was defined with particular layer resources. + /// + STDMETHOD_(void, PopLayer)( + ) PURE; + + STDMETHOD(Flush)( + _Out_opt_ D2D1_TAG *tag1 = NULL, + _Out_opt_ D2D1_TAG *tag2 = NULL + ) PURE; + + /// + /// Gets the current drawing state and saves it into the supplied + /// IDrawingStatckBlock. + /// + STDMETHOD_(void, SaveDrawingState)( + _Inout_ ID2D1DrawingStateBlock *drawingStateBlock + ) CONST PURE; + + /// + /// Copies the state stored in the block interface. + /// + STDMETHOD_(void, RestoreDrawingState)( + _In_ ID2D1DrawingStateBlock *drawingStateBlock + ) PURE; + + /// + /// Pushes a clip. The clip can be antialiased. The clip must be axis aligned. If + /// the current world transform is not axis preserving, then the bounding box of the + /// transformed clip rect will be used. The clip will remain in effect until a + /// PopAxisAligned clip call is made. + /// + STDMETHOD_(void, PushAxisAlignedClip)( + _In_ CONST D2D1_RECT_F *clipRect, + D2D1_ANTIALIAS_MODE antialiasMode + ) PURE; + + STDMETHOD_(void, PopAxisAlignedClip)( + ) PURE; + + STDMETHOD_(void, Clear)( + _In_opt_ CONST D2D1_COLOR_F *clearColor = NULL + ) PURE; + + /// + /// Start drawing on this render target. Draw calls can only be issued between a + /// BeginDraw and EndDraw call. + /// + STDMETHOD_(void, BeginDraw)( + ) PURE; + + /// + /// Ends drawing on the render target, error results can be retrieved at this time, + /// or when calling flush. + /// + STDMETHOD(EndDraw)( + _Out_opt_ D2D1_TAG *tag1 = NULL, + _Out_opt_ D2D1_TAG *tag2 = NULL + ) PURE; + + STDMETHOD_(D2D1_PIXEL_FORMAT, GetPixelFormat)( + ) CONST PURE; + + /// + /// Sets the DPI on the render target. This results in the render target being + /// interpreted to a different scale. Neither DPI can be negative. If zero is + /// specified for both, the system DPI is chosen. If one is zero and the other + /// unspecified, the DPI is not changed. + /// + STDMETHOD_(void, SetDpi)( + FLOAT dpiX, + FLOAT dpiY + ) PURE; + + /// + /// Return the current DPI from the target. + /// + STDMETHOD_(void, GetDpi)( + _Out_ FLOAT *dpiX, + _Out_ FLOAT *dpiY + ) CONST PURE; + + /// + /// Returns the size of the render target in DIPs. + /// + STDMETHOD_(D2D1_SIZE_F, GetSize)( + ) CONST PURE; + + /// + /// Returns the size of the render target in pixels. + /// + STDMETHOD_(D2D1_SIZE_U, GetPixelSize)( + ) CONST PURE; + + /// + /// Returns the maximum bitmap and render target size that is guaranteed to be + /// supported by the render target. + /// + STDMETHOD_(UINT32, GetMaximumBitmapSize)( + ) CONST PURE; + + /// + /// Returns true if the given properties are supported by this render target. The + /// DPI is ignored. NOTE: If the render target type is software, then neither + /// D2D1_FEATURE_LEVEL_9 nor D2D1_FEATURE_LEVEL_10 will be considered to be + /// supported. + /// + STDMETHOD_(BOOL, IsSupported)( + _In_ CONST D2D1_RENDER_TARGET_PROPERTIES *renderTargetProperties + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmap( + D2D1_SIZE_U size, + _In_opt_ CONST void *srcData, + UINT32 pitch, + CONST D2D1_BITMAP_PROPERTIES &bitmapProperties, + _COM_Outptr_ ID2D1Bitmap **bitmap + ) + { + return CreateBitmap(size, srcData, pitch, &bitmapProperties, bitmap); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmap( + D2D1_SIZE_U size, + CONST D2D1_BITMAP_PROPERTIES &bitmapProperties, + _COM_Outptr_ ID2D1Bitmap **bitmap + ) + { + return CreateBitmap(size, NULL, 0, &bitmapProperties, bitmap); + } + + /// + /// Create a D2D bitmap by copying a WIC bitmap. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapFromWicBitmap( + _In_ IWICBitmapSource *wicBitmapSource, + CONST D2D1_BITMAP_PROPERTIES &bitmapProperties, + _COM_Outptr_ ID2D1Bitmap **bitmap + ) + { + return CreateBitmapFromWicBitmap(wicBitmapSource, &bitmapProperties, bitmap); + } + + /// + /// Create a D2D bitmap by copying a WIC bitmap. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapFromWicBitmap( + _In_ IWICBitmapSource *wicBitmapSource, + _COM_Outptr_ ID2D1Bitmap **bitmap + ) + { + return CreateBitmapFromWicBitmap(wicBitmapSource, NULL, bitmap); + } + + /// + /// Creates a bitmap brush. The bitmap is scaled, rotated, skewed or tiled to fill + /// or pen a geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapBrush( + _In_opt_ ID2D1Bitmap *bitmap, + _COM_Outptr_ ID2D1BitmapBrush **bitmapBrush + ) + { + return CreateBitmapBrush(bitmap, NULL, NULL, bitmapBrush); + } + + /// + /// Creates a bitmap brush. The bitmap is scaled, rotated, skewed or tiled to fill + /// or pen a geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapBrush( + _In_opt_ ID2D1Bitmap *bitmap, + CONST D2D1_BITMAP_BRUSH_PROPERTIES &bitmapBrushProperties, + _COM_Outptr_ ID2D1BitmapBrush **bitmapBrush + ) + { + return CreateBitmapBrush(bitmap, &bitmapBrushProperties, NULL, bitmapBrush); + } + + /// + /// Creates a bitmap brush. The bitmap is scaled, rotated, skewed or tiled to fill + /// or pen a geometry. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapBrush( + _In_opt_ ID2D1Bitmap *bitmap, + CONST D2D1_BITMAP_BRUSH_PROPERTIES &bitmapBrushProperties, + CONST D2D1_BRUSH_PROPERTIES &brushProperties, + _COM_Outptr_ ID2D1BitmapBrush **bitmapBrush + ) + { + return CreateBitmapBrush(bitmap, &bitmapBrushProperties, &brushProperties, bitmapBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateSolidColorBrush( + CONST D2D1_COLOR_F &color, + _COM_Outptr_ ID2D1SolidColorBrush **solidColorBrush + ) + { + return CreateSolidColorBrush(&color, NULL, solidColorBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateSolidColorBrush( + CONST D2D1_COLOR_F &color, + CONST D2D1_BRUSH_PROPERTIES &brushProperties, + _COM_Outptr_ ID2D1SolidColorBrush **solidColorBrush + ) + { + return CreateSolidColorBrush(&color, &brushProperties, solidColorBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateGradientStopCollection( + _In_reads_(gradientStopsCount) CONST D2D1_GRADIENT_STOP *gradientStops, + UINT32 gradientStopsCount, + _COM_Outptr_ ID2D1GradientStopCollection **gradientStopCollection + ) + { + return CreateGradientStopCollection(gradientStops, gradientStopsCount, D2D1_GAMMA_2_2, D2D1_EXTEND_MODE_CLAMP, gradientStopCollection); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateLinearGradientBrush( + CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, + _In_ ID2D1GradientStopCollection *gradientStopCollection, + _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush + ) + { + return CreateLinearGradientBrush(&linearGradientBrushProperties, NULL, gradientStopCollection, linearGradientBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateLinearGradientBrush( + CONST D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES &linearGradientBrushProperties, + CONST D2D1_BRUSH_PROPERTIES &brushProperties, + _In_ ID2D1GradientStopCollection *gradientStopCollection, + _COM_Outptr_ ID2D1LinearGradientBrush **linearGradientBrush + ) + { + return CreateLinearGradientBrush(&linearGradientBrushProperties, &brushProperties, gradientStopCollection, linearGradientBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateRadialGradientBrush( + CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES &radialGradientBrushProperties, + _In_ ID2D1GradientStopCollection *gradientStopCollection, + _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush + ) + { + return CreateRadialGradientBrush(&radialGradientBrushProperties, NULL, gradientStopCollection, radialGradientBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateRadialGradientBrush( + CONST D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES &radialGradientBrushProperties, + CONST D2D1_BRUSH_PROPERTIES &brushProperties, + _In_ ID2D1GradientStopCollection *gradientStopCollection, + _COM_Outptr_ ID2D1RadialGradientBrush **radialGradientBrush + ) + { + return CreateRadialGradientBrush(&radialGradientBrushProperties, &brushProperties, gradientStopCollection, radialGradientBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateCompatibleRenderTarget( + _COM_Outptr_ ID2D1BitmapRenderTarget **bitmapRenderTarget + ) + { + return CreateCompatibleRenderTarget(NULL, NULL, NULL, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE, bitmapRenderTarget); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateCompatibleRenderTarget( + D2D1_SIZE_F desiredSize, + _COM_Outptr_ ID2D1BitmapRenderTarget **bitmapRenderTarget + ) + { + return CreateCompatibleRenderTarget(&desiredSize, NULL, NULL, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE, bitmapRenderTarget); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateCompatibleRenderTarget( + D2D1_SIZE_F desiredSize, + D2D1_SIZE_U desiredPixelSize, + _COM_Outptr_ ID2D1BitmapRenderTarget **bitmapRenderTarget + ) + { + return CreateCompatibleRenderTarget(&desiredSize, &desiredPixelSize, NULL, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE, bitmapRenderTarget); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateCompatibleRenderTarget( + D2D1_SIZE_F desiredSize, + D2D1_SIZE_U desiredPixelSize, + D2D1_PIXEL_FORMAT desiredFormat, + _COM_Outptr_ ID2D1BitmapRenderTarget **bitmapRenderTarget + ) + { + return CreateCompatibleRenderTarget(&desiredSize, &desiredPixelSize, &desiredFormat, D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE, bitmapRenderTarget); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateCompatibleRenderTarget( + D2D1_SIZE_F desiredSize, + D2D1_SIZE_U desiredPixelSize, + D2D1_PIXEL_FORMAT desiredFormat, + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options, + _COM_Outptr_ ID2D1BitmapRenderTarget **bitmapRenderTarget + ) + { + return CreateCompatibleRenderTarget(&desiredSize, &desiredPixelSize, &desiredFormat, options, bitmapRenderTarget); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateLayer( + D2D1_SIZE_F size, + _COM_Outptr_ ID2D1Layer **layer + ) + { + return CreateLayer(&size, layer); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateLayer( + _COM_Outptr_ ID2D1Layer **layer + ) + { + return CreateLayer(NULL, layer); + } + + COM_DECLSPEC_NOTHROW + void + DrawRectangle( + CONST D2D1_RECT_F &rect, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth = 1.0f, + _In_opt_ ID2D1StrokeStyle *strokeStyle = NULL + ) + { + DrawRectangle(&rect, brush, strokeWidth, strokeStyle); + } + + COM_DECLSPEC_NOTHROW + void + FillRectangle( + CONST D2D1_RECT_F &rect, + _In_ ID2D1Brush *brush + ) + { + FillRectangle(&rect, brush); + } + + COM_DECLSPEC_NOTHROW + void + DrawRoundedRectangle( + CONST D2D1_ROUNDED_RECT &roundedRect, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth = 1.0f, + _In_opt_ ID2D1StrokeStyle *strokeStyle = NULL + ) + { + DrawRoundedRectangle(&roundedRect, brush, strokeWidth, strokeStyle); + } + + COM_DECLSPEC_NOTHROW + void + FillRoundedRectangle( + CONST D2D1_ROUNDED_RECT &roundedRect, + _In_ ID2D1Brush *brush + ) + { + FillRoundedRectangle(&roundedRect, brush); + } + + COM_DECLSPEC_NOTHROW + void + DrawEllipse( + CONST D2D1_ELLIPSE &ellipse, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth = 1.0f, + _In_opt_ ID2D1StrokeStyle *strokeStyle = NULL + ) + { + DrawEllipse(&ellipse, brush, strokeWidth, strokeStyle); + } + + COM_DECLSPEC_NOTHROW + void + FillEllipse( + CONST D2D1_ELLIPSE &ellipse, + _In_ ID2D1Brush *brush + ) + { + FillEllipse(&ellipse, brush); + } + + COM_DECLSPEC_NOTHROW + void + FillOpacityMask( + _In_ ID2D1Bitmap *opacityMask, + _In_ ID2D1Brush *brush, + D2D1_OPACITY_MASK_CONTENT content, + CONST D2D1_RECT_F &destinationRectangle, + CONST D2D1_RECT_F &sourceRectangle + ) + { + FillOpacityMask(opacityMask, brush, content, &destinationRectangle, &sourceRectangle); + } + + COM_DECLSPEC_NOTHROW + void + DrawBitmap( + _In_ ID2D1Bitmap *bitmap, + CONST D2D1_RECT_F &destinationRectangle, + FLOAT opacity = 1.0f, + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode = D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle = NULL + ) + { + DrawBitmap(bitmap, &destinationRectangle, opacity, interpolationMode, sourceRectangle); + } + + COM_DECLSPEC_NOTHROW + void + DrawBitmap( + _In_ ID2D1Bitmap *bitmap, + CONST D2D1_RECT_F &destinationRectangle, + FLOAT opacity, + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode, + CONST D2D1_RECT_F &sourceRectangle + ) + { + DrawBitmap(bitmap, &destinationRectangle, opacity, interpolationMode, &sourceRectangle); + } + + COM_DECLSPEC_NOTHROW + void + SetTransform( + CONST D2D1_MATRIX_3X2_F &transform + ) + { + SetTransform(&transform); + } + + COM_DECLSPEC_NOTHROW + void + PushLayer( + CONST D2D1_LAYER_PARAMETERS &layerParameters, + _In_opt_ ID2D1Layer *layer + ) + { + PushLayer(&layerParameters, layer); + } + + COM_DECLSPEC_NOTHROW + void + PushAxisAlignedClip( + CONST D2D1_RECT_F &clipRect, + D2D1_ANTIALIAS_MODE antialiasMode + ) + { + return PushAxisAlignedClip(&clipRect, antialiasMode); + } + + COM_DECLSPEC_NOTHROW + void + Clear( + CONST D2D1_COLOR_F &clearColor + ) + { + return Clear(&clearColor); + } + + /// + /// Draws the text within the given layout rectangle and by default also performs + /// baseline snapping. + /// + COM_DECLSPEC_NOTHROW + void + DrawText( + _In_reads_(stringLength) CONST WCHAR *string, + UINT32 stringLength, + _In_ IDWriteTextFormat *textFormat, + CONST D2D1_RECT_F &layoutRect, + _In_ ID2D1Brush *defaultFillBrush, + D2D1_DRAW_TEXT_OPTIONS options = D2D1_DRAW_TEXT_OPTIONS_NONE, + DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL + ) + { + return DrawText(string, stringLength, textFormat, &layoutRect, defaultFillBrush, options, measuringMode); + } + + COM_DECLSPEC_NOTHROW + BOOL + IsSupported( + CONST D2D1_RENDER_TARGET_PROPERTIES &renderTargetProperties + ) CONST + { + return IsSupported(&renderTargetProperties); + } +}; // interface ID2D1RenderTarget + + +/// +/// Renders to an intermediate texture created by the CreateCompatibleRenderTarget +/// method. +/// +interface DX_DECLARE_INTERFACE("2cd90695-12e2-11dc-9fed-001143a055f9") ID2D1BitmapRenderTarget : public ID2D1RenderTarget +{ + + STDMETHOD(GetBitmap)( + _COM_Outptr_ ID2D1Bitmap **bitmap + ) PURE; +}; // interface ID2D1BitmapRenderTarget + + +/// +/// Renders drawing instructions to a window. +/// +interface DX_DECLARE_INTERFACE("2cd90698-12e2-11dc-9fed-001143a055f9") ID2D1HwndRenderTarget : public ID2D1RenderTarget +{ + + STDMETHOD_(D2D1_WINDOW_STATE, CheckWindowState)( + ) PURE; + + /// + /// Resize the buffer underlying the render target. This operation might fail if + /// there is insufficient video memory or system memory, or if the render target is + /// resized beyond the maximum bitmap size. If the method fails, the render target + /// will be placed in a zombie state and D2DERR_RECREATE_TARGET will be returned + /// from it when EndDraw is called. In addition an appropriate failure result will + /// be returned from Resize. + /// + STDMETHOD(Resize)( + _In_ CONST D2D1_SIZE_U *pixelSize + ) PURE; + + STDMETHOD_(HWND, GetHwnd)( + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + HRESULT + Resize( + CONST D2D1_SIZE_U &pixelSize + ) + { + return Resize(&pixelSize); + } +}; // interface ID2D1HwndRenderTarget + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/// +/// Provides access to an device context that can accept GDI drawing commands. +/// +interface DX_DECLARE_INTERFACE("e0db51c3-6f77-4bae-b3d5-e47509b35838") ID2D1GdiInteropRenderTarget : public IUnknown +{ + + STDMETHOD(GetDC)( + D2D1_DC_INITIALIZE_MODE mode, + _Out_ HDC *hdc + ) PURE; + + STDMETHOD(ReleaseDC)( + _In_opt_ CONST RECT *update + ) PURE; +}; // interface ID2D1GdiInteropRenderTarget + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +/// +/// Issues drawing commands to a GDI device context. +/// +interface DX_DECLARE_INTERFACE("1c51bc64-de61-46fd-9899-63a5d8f03950") ID2D1DCRenderTarget : public ID2D1RenderTarget +{ + + STDMETHOD(BindDC)( + _In_ CONST HDC hDC, + _In_ CONST RECT *pSubRect + ) PURE; +}; // interface ID2D1DCRenderTarget + + +/// +/// The root factory interface for all of D2D's objects. +/// +interface DX_DECLARE_INTERFACE("06152247-6f50-465a-9245-118bfd3b6007") ID2D1Factory : public IUnknown +{ + + /// + /// Cause the factory to refresh any system metrics that it might have been snapped + /// on factory creation. + /// + STDMETHOD(ReloadSystemMetrics)( + ) PURE; + + /// + /// Retrieves the current desktop DPI. To refresh this, call ReloadSystemMetrics. + /// + [[deprecated("Deprecated. Use DisplayInformation::LogicalDpi for Windows Store Apps or GetDpiForWindow for desktop apps.")]] + STDMETHOD_(void, GetDesktopDpi)( + _Out_ FLOAT *dpiX, + _Out_ FLOAT *dpiY + ) PURE; + + STDMETHOD(CreateRectangleGeometry)( + _In_ CONST D2D1_RECT_F *rectangle, + _COM_Outptr_ ID2D1RectangleGeometry **rectangleGeometry + ) PURE; + + STDMETHOD(CreateRoundedRectangleGeometry)( + _In_ CONST D2D1_ROUNDED_RECT *roundedRectangle, + _COM_Outptr_ ID2D1RoundedRectangleGeometry **roundedRectangleGeometry + ) PURE; + + STDMETHOD(CreateEllipseGeometry)( + _In_ CONST D2D1_ELLIPSE *ellipse, + _COM_Outptr_ ID2D1EllipseGeometry **ellipseGeometry + ) PURE; + + /// + /// Create a geometry which holds other geometries. + /// + STDMETHOD(CreateGeometryGroup)( + D2D1_FILL_MODE fillMode, + _In_reads_(geometriesCount) ID2D1Geometry **geometries, + UINT32 geometriesCount, + _COM_Outptr_ ID2D1GeometryGroup **geometryGroup + ) PURE; + + STDMETHOD(CreateTransformedGeometry)( + _In_ ID2D1Geometry *sourceGeometry, + _In_ CONST D2D1_MATRIX_3X2_F *transform, + _COM_Outptr_ ID2D1TransformedGeometry **transformedGeometry + ) PURE; + + /// + /// Returns an initially empty path geometry interface. A geometry sink is created + /// off the interface to populate it. + /// + STDMETHOD(CreatePathGeometry)( + _COM_Outptr_ ID2D1PathGeometry **pathGeometry + ) PURE; + + /// + /// Allows a non-default stroke style to be specified for a given geometry at draw + /// time. + /// + STDMETHOD(CreateStrokeStyle)( + _In_ CONST D2D1_STROKE_STYLE_PROPERTIES *strokeStyleProperties, + _In_reads_opt_(dashesCount) CONST FLOAT *dashes, + UINT32 dashesCount, + _COM_Outptr_ ID2D1StrokeStyle **strokeStyle + ) PURE; + + /// + /// Creates a new drawing state block, this can be used in subsequent + /// SaveDrawingState and RestoreDrawingState operations on the render target. + /// + STDMETHOD(CreateDrawingStateBlock)( + _In_opt_ CONST D2D1_DRAWING_STATE_DESCRIPTION *drawingStateDescription, + _In_opt_ IDWriteRenderingParams *textRenderingParams, + _COM_Outptr_ ID2D1DrawingStateBlock **drawingStateBlock + ) PURE; + + /// + /// Creates a render target which is a source of bitmaps. + /// + STDMETHOD(CreateWicBitmapRenderTarget)( + _In_ IWICBitmap *target, + _In_ CONST D2D1_RENDER_TARGET_PROPERTIES *renderTargetProperties, + _COM_Outptr_ ID2D1RenderTarget **renderTarget + ) PURE; + + /// + /// Creates a render target that appears on the display. + /// + STDMETHOD(CreateHwndRenderTarget)( + _In_ CONST D2D1_RENDER_TARGET_PROPERTIES *renderTargetProperties, + _In_ CONST D2D1_HWND_RENDER_TARGET_PROPERTIES *hwndRenderTargetProperties, + _COM_Outptr_ ID2D1HwndRenderTarget **hwndRenderTarget + ) PURE; + + /// + /// Creates a render target that draws to a DXGI Surface. The device that owns the + /// surface is used for rendering. + /// + STDMETHOD(CreateDxgiSurfaceRenderTarget)( + _In_ IDXGISurface *dxgiSurface, + _In_ CONST D2D1_RENDER_TARGET_PROPERTIES *renderTargetProperties, + _COM_Outptr_ ID2D1RenderTarget **renderTarget + ) PURE; + + /// + /// Creates a render target that draws to a GDI device context. + /// + STDMETHOD(CreateDCRenderTarget)( + _In_ CONST D2D1_RENDER_TARGET_PROPERTIES *renderTargetProperties, + _COM_Outptr_ ID2D1DCRenderTarget **dcRenderTarget + ) PURE; + + COM_DECLSPEC_NOTHROW + HRESULT + CreateRectangleGeometry( + CONST D2D1_RECT_F &rectangle, + _COM_Outptr_ ID2D1RectangleGeometry **rectangleGeometry + ) + { + return CreateRectangleGeometry(&rectangle, rectangleGeometry); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateRoundedRectangleGeometry( + CONST D2D1_ROUNDED_RECT &roundedRectangle, + _COM_Outptr_ ID2D1RoundedRectangleGeometry **roundedRectangleGeometry + ) + { + return CreateRoundedRectangleGeometry(&roundedRectangle, roundedRectangleGeometry); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateEllipseGeometry( + CONST D2D1_ELLIPSE &ellipse, + _COM_Outptr_ ID2D1EllipseGeometry **ellipseGeometry + ) + { + return CreateEllipseGeometry(&ellipse, ellipseGeometry); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateTransformedGeometry( + _In_ ID2D1Geometry *sourceGeometry, + CONST D2D1_MATRIX_3X2_F &transform, + _COM_Outptr_ ID2D1TransformedGeometry **transformedGeometry + ) + { + return CreateTransformedGeometry(sourceGeometry, &transform, transformedGeometry); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateStrokeStyle( + CONST D2D1_STROKE_STYLE_PROPERTIES &strokeStyleProperties, + _In_reads_opt_(dashesCount) CONST FLOAT *dashes, + UINT32 dashesCount, + _COM_Outptr_ ID2D1StrokeStyle **strokeStyle + ) + { + return CreateStrokeStyle(&strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateDrawingStateBlock( + CONST D2D1_DRAWING_STATE_DESCRIPTION &drawingStateDescription, + _COM_Outptr_ ID2D1DrawingStateBlock **drawingStateBlock + ) + { + return CreateDrawingStateBlock(&drawingStateDescription, NULL, drawingStateBlock); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateDrawingStateBlock( + _COM_Outptr_ ID2D1DrawingStateBlock **drawingStateBlock + ) + { + return CreateDrawingStateBlock(NULL, NULL, drawingStateBlock); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateWicBitmapRenderTarget( + _In_ IWICBitmap *target, + CONST D2D1_RENDER_TARGET_PROPERTIES &renderTargetProperties, + _COM_Outptr_ ID2D1RenderTarget **renderTarget + ) + { + return CreateWicBitmapRenderTarget(target, &renderTargetProperties, renderTarget); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateHwndRenderTarget( + CONST D2D1_RENDER_TARGET_PROPERTIES &renderTargetProperties, + CONST D2D1_HWND_RENDER_TARGET_PROPERTIES &hwndRenderTargetProperties, + _COM_Outptr_ ID2D1HwndRenderTarget **hwndRenderTarget + ) + { + return CreateHwndRenderTarget(&renderTargetProperties, &hwndRenderTargetProperties, hwndRenderTarget); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateDxgiSurfaceRenderTarget( + _In_ IDXGISurface *dxgiSurface, + CONST D2D1_RENDER_TARGET_PROPERTIES &renderTargetProperties, + _COM_Outptr_ ID2D1RenderTarget **renderTarget + ) + { + return CreateDxgiSurfaceRenderTarget(dxgiSurface, &renderTargetProperties, renderTarget); + } +}; // interface ID2D1Factory + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + +#endif + + +#ifdef D2D_USE_C_DEFINITIONS + + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef interface ID2D1Resource ID2D1Resource; + +typedef interface ID2D1Image ID2D1Image; + +typedef interface ID2D1Bitmap ID2D1Bitmap; + +typedef interface ID2D1GradientStopCollection ID2D1GradientStopCollection; + +typedef interface ID2D1Brush ID2D1Brush; + +typedef interface ID2D1BitmapBrush ID2D1BitmapBrush; + +typedef interface ID2D1SolidColorBrush ID2D1SolidColorBrush; + +typedef interface ID2D1LinearGradientBrush ID2D1LinearGradientBrush; + +typedef interface ID2D1RadialGradientBrush ID2D1RadialGradientBrush; + +typedef interface ID2D1StrokeStyle ID2D1StrokeStyle; + +typedef interface ID2D1Geometry ID2D1Geometry; + +typedef interface ID2D1RectangleGeometry ID2D1RectangleGeometry; + +typedef interface ID2D1RoundedRectangleGeometry ID2D1RoundedRectangleGeometry; + +typedef interface ID2D1EllipseGeometry ID2D1EllipseGeometry; + +typedef interface ID2D1GeometryGroup ID2D1GeometryGroup; + +typedef interface ID2D1TransformedGeometry ID2D1TransformedGeometry; + +typedef interface ID2D1SimplifiedGeometrySink ID2D1SimplifiedGeometrySink; + +typedef interface ID2D1GeometrySink ID2D1GeometrySink; + +typedef interface ID2D1TessellationSink ID2D1TessellationSink; + +typedef interface ID2D1PathGeometry ID2D1PathGeometry; + +typedef interface ID2D1Mesh ID2D1Mesh; + +typedef interface ID2D1Layer ID2D1Layer; + +typedef interface ID2D1DrawingStateBlock ID2D1DrawingStateBlock; + +typedef interface ID2D1RenderTarget ID2D1RenderTarget; + +typedef interface ID2D1BitmapRenderTarget ID2D1BitmapRenderTarget; + +typedef interface ID2D1HwndRenderTarget ID2D1HwndRenderTarget; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef interface ID2D1GdiInteropRenderTarget ID2D1GdiInteropRenderTarget; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef interface ID2D1DCRenderTarget ID2D1DCRenderTarget; + +typedef interface ID2D1Factory ID2D1Factory; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + +#endif + + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#ifdef __cplusplus +extern "C" +{ +#endif + + // + // This export cannot be in a namespace because compiler name mangling isn't consistent + // also, this must be 'C' callable. + // + HRESULT WINAPI + D2D1CreateFactory( + _In_ D2D1_FACTORY_TYPE factoryType, + _In_ REFIID riid, + _In_opt_ CONST D2D1_FACTORY_OPTIONS *pFactoryOptions, + _Out_ void **ppIFactory + ); + + + void WINAPI + D2D1MakeRotateMatrix( + _In_ FLOAT angle, + _In_ D2D1_POINT_2F center, + _Out_ D2D1_MATRIX_3X2_F *matrix + ); + + void WINAPI + D2D1MakeSkewMatrix( + _In_ FLOAT angleX, + _In_ FLOAT angleY, + _In_ D2D1_POINT_2F center, + _Out_ D2D1_MATRIX_3X2_F *matrix + ); + + BOOL WINAPI + D2D1IsMatrixInvertible( + _In_ CONST D2D1_MATRIX_3X2_F *matrix + ); + + BOOL WINAPI + D2D1InvertMatrix( + _Inout_ D2D1_MATRIX_3X2_F *matrix + ); + +#ifdef __cplusplus +} +#endif + +#ifndef D2D1FORCEINLINE +#define D2D1FORCEINLINE FORCEINLINE +#endif // #ifndef D2D1FORCEINLINE + + +#include + + +#ifndef D2D_USE_C_DEFINITIONS + +COM_DECLSPEC_NOTHROW +inline +HRESULT +D2D1CreateFactory( + _In_ D2D1_FACTORY_TYPE factoryType, + _In_ REFIID riid, + _Out_ void **factory + ) +{ + return + D2D1CreateFactory( + factoryType, + riid, + NULL, + factory); +} + + +template +COM_DECLSPEC_NOTHROW +HRESULT +D2D1CreateFactory( + _In_ D2D1_FACTORY_TYPE factoryType, + _Out_ Factory **factory + ) +{ + return + D2D1CreateFactory( + factoryType, + __uuidof(Factory), + reinterpret_cast(factory)); +} + +template +COM_DECLSPEC_NOTHROW +HRESULT +D2D1CreateFactory( + _In_ D2D1_FACTORY_TYPE factoryType, + _In_ CONST D2D1_FACTORY_OPTIONS &factoryOptions, + _Out_ Factory **ppFactory + ) +{ + return + D2D1CreateFactory( + factoryType, + __uuidof(Factory), + &factoryOptions, + reinterpret_cast(ppFactory)); +} + +#endif // #ifndef D2D_USE_C_DEFINITIONS + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // #ifndef _D2D1_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_1.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_1.h new file mode 100644 index 0000000000000000000000000000000000000000..ec10130845a3492ded1784be5713cdb347c478e8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_1.h @@ -0,0 +1,2530 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2D1_1.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2D1_1_H_ +#define _D2D1_1_H_ + +#ifndef _D2D1_H_ +#include +#endif // #ifndef _D2D1_H_ +#ifndef _D2D1_EFFECTS_ +#include +#endif // #ifndef _D2D1_EFFECTS_ + +#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef interface ID2D1ColorContext ID2D1ColorContext; +typedef interface IWICColorContext IWICColorContext; +typedef interface IWICImagingFactory IWICImagingFactory; +typedef interface IPrintDocumentPackageTarget IPrintDocumentPackageTarget; +typedef interface IDWriteFactory IDWriteFactory; +typedef struct DWRITE_GLYPH_RUN_DESCRIPTION DWRITE_GLYPH_RUN_DESCRIPTION; +typedef struct D2D1_PROPERTY_BINDING D2D1_PROPERTY_BINDING; + +/// +/// Function pointer to construct a new effect once registered. +/// +typedef HRESULT (CALLBACK *PD2D1_EFFECT_FACTORY)( + _Outptr_ IUnknown **effectImpl + ); + +#ifndef D2D_USE_C_DEFINITIONS + +interface ID2D1Device; +interface ID2D1Effect; +#else + +typedef interface ID2D1Device ID2D1Device; +typedef interface ID2D1Effect ID2D1Effect; + +#endif +#define D2D1_INVALID_PROPERTY_INDEX UINT_MAX +typedef D2D_RECT_L D2D1_RECT_L; +typedef D2D_POINT_2L D2D1_POINT_2L; + +/// +/// This defines the valid property types that can be used in an effect property +/// interface. +/// +typedef enum D2D1_PROPERTY_TYPE +{ + D2D1_PROPERTY_TYPE_UNKNOWN = 0, + D2D1_PROPERTY_TYPE_STRING = 1, + D2D1_PROPERTY_TYPE_BOOL = 2, + D2D1_PROPERTY_TYPE_UINT32 = 3, + D2D1_PROPERTY_TYPE_INT32 = 4, + D2D1_PROPERTY_TYPE_FLOAT = 5, + D2D1_PROPERTY_TYPE_VECTOR2 = 6, + D2D1_PROPERTY_TYPE_VECTOR3 = 7, + D2D1_PROPERTY_TYPE_VECTOR4 = 8, + D2D1_PROPERTY_TYPE_BLOB = 9, + D2D1_PROPERTY_TYPE_IUNKNOWN = 10, + D2D1_PROPERTY_TYPE_ENUM = 11, + D2D1_PROPERTY_TYPE_ARRAY = 12, + D2D1_PROPERTY_TYPE_CLSID = 13, + D2D1_PROPERTY_TYPE_MATRIX_3X2 = 14, + D2D1_PROPERTY_TYPE_MATRIX_4X3 = 15, + D2D1_PROPERTY_TYPE_MATRIX_4X4 = 16, + D2D1_PROPERTY_TYPE_MATRIX_5X4 = 17, + D2D1_PROPERTY_TYPE_COLOR_CONTEXT = 18, + D2D1_PROPERTY_TYPE_FORCE_DWORD = 0xffffffff + +} D2D1_PROPERTY_TYPE; + + +/// +/// This defines the list of system properties present on the root effect property +/// interface. +/// +typedef enum D2D1_PROPERTY +{ + D2D1_PROPERTY_CLSID = 0x80000000, + D2D1_PROPERTY_DISPLAYNAME = 0x80000001, + D2D1_PROPERTY_AUTHOR = 0x80000002, + D2D1_PROPERTY_CATEGORY = 0x80000003, + D2D1_PROPERTY_DESCRIPTION = 0x80000004, + D2D1_PROPERTY_INPUTS = 0x80000005, + D2D1_PROPERTY_CACHED = 0x80000006, + D2D1_PROPERTY_PRECISION = 0x80000007, + D2D1_PROPERTY_MIN_INPUTS = 0x80000008, + D2D1_PROPERTY_MAX_INPUTS = 0x80000009, + D2D1_PROPERTY_FORCE_DWORD = 0xffffffff + +} D2D1_PROPERTY; + + +/// +/// This defines the indices of sub-properties that may be present on any parent +/// property. +/// +typedef enum D2D1_SUBPROPERTY +{ + D2D1_SUBPROPERTY_DISPLAYNAME = 0x80000000, + D2D1_SUBPROPERTY_ISREADONLY = 0x80000001, + D2D1_SUBPROPERTY_MIN = 0x80000002, + D2D1_SUBPROPERTY_MAX = 0x80000003, + D2D1_SUBPROPERTY_DEFAULT = 0x80000004, + D2D1_SUBPROPERTY_FIELDS = 0x80000005, + D2D1_SUBPROPERTY_INDEX = 0x80000006, + D2D1_SUBPROPERTY_FORCE_DWORD = 0xffffffff + +} D2D1_SUBPROPERTY; + + +/// +/// Specifies how the bitmap can be used. +/// +typedef enum D2D1_BITMAP_OPTIONS +{ + + /// + /// The bitmap is created with default properties. + /// + D2D1_BITMAP_OPTIONS_NONE = 0x00000000, + + /// + /// The bitmap can be specified as a target in ID2D1DeviceContext::SetTarget + /// + D2D1_BITMAP_OPTIONS_TARGET = 0x00000001, + + /// + /// The bitmap cannot be used as an input to DrawBitmap, DrawImage, in a bitmap + /// brush or as an input to an effect. + /// + D2D1_BITMAP_OPTIONS_CANNOT_DRAW = 0x00000002, + + /// + /// The bitmap can be read from the CPU. + /// + D2D1_BITMAP_OPTIONS_CPU_READ = 0x00000004, + + /// + /// The bitmap works with the ID2D1GdiInteropRenderTarget::GetDC API. + /// + D2D1_BITMAP_OPTIONS_GDI_COMPATIBLE = 0x00000008, + D2D1_BITMAP_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_BITMAP_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_BITMAP_OPTIONS); + + +/// +/// Specifies the composite mode that will be applied. +/// +typedef enum D2D1_COMPOSITE_MODE +{ + D2D1_COMPOSITE_MODE_SOURCE_OVER = 0, + D2D1_COMPOSITE_MODE_DESTINATION_OVER = 1, + D2D1_COMPOSITE_MODE_SOURCE_IN = 2, + D2D1_COMPOSITE_MODE_DESTINATION_IN = 3, + D2D1_COMPOSITE_MODE_SOURCE_OUT = 4, + D2D1_COMPOSITE_MODE_DESTINATION_OUT = 5, + D2D1_COMPOSITE_MODE_SOURCE_ATOP = 6, + D2D1_COMPOSITE_MODE_DESTINATION_ATOP = 7, + D2D1_COMPOSITE_MODE_XOR = 8, + D2D1_COMPOSITE_MODE_PLUS = 9, + D2D1_COMPOSITE_MODE_SOURCE_COPY = 10, + D2D1_COMPOSITE_MODE_BOUNDED_SOURCE_COPY = 11, + D2D1_COMPOSITE_MODE_MASK_INVERT = 12, + D2D1_COMPOSITE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_COMPOSITE_MODE; + + +/// +/// This specifies the precision that should be used in buffers allocated by D2D. +/// +typedef enum D2D1_BUFFER_PRECISION +{ + D2D1_BUFFER_PRECISION_UNKNOWN = 0, + D2D1_BUFFER_PRECISION_8BPC_UNORM = 1, + D2D1_BUFFER_PRECISION_8BPC_UNORM_SRGB = 2, + D2D1_BUFFER_PRECISION_16BPC_UNORM = 3, + D2D1_BUFFER_PRECISION_16BPC_FLOAT = 4, + D2D1_BUFFER_PRECISION_32BPC_FLOAT = 5, + D2D1_BUFFER_PRECISION_FORCE_DWORD = 0xffffffff + +} D2D1_BUFFER_PRECISION; + + +/// +/// This describes how the individual mapping operation should be performed. +/// +typedef enum D2D1_MAP_OPTIONS +{ + + /// + /// The mapped pointer has undefined behavior. + /// + D2D1_MAP_OPTIONS_NONE = 0, + + /// + /// The mapped pointer can be read from. + /// + D2D1_MAP_OPTIONS_READ = 1, + + /// + /// The mapped pointer can be written to. + /// + D2D1_MAP_OPTIONS_WRITE = 2, + + /// + /// The previous contents of the bitmap are discarded when it is mapped. + /// + D2D1_MAP_OPTIONS_DISCARD = 4, + D2D1_MAP_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_MAP_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_MAP_OPTIONS); + + +/// +/// This is used to specify the quality of image scaling with +/// ID2D1DeviceContext::DrawImage and with the 2D Affine Transform Effect. +/// +typedef enum D2D1_INTERPOLATION_MODE +{ + D2D1_INTERPOLATION_MODE_NEAREST_NEIGHBOR = D2D1_INTERPOLATION_MODE_DEFINITION_NEAREST_NEIGHBOR, + D2D1_INTERPOLATION_MODE_LINEAR = D2D1_INTERPOLATION_MODE_DEFINITION_LINEAR, + D2D1_INTERPOLATION_MODE_CUBIC = D2D1_INTERPOLATION_MODE_DEFINITION_CUBIC, + D2D1_INTERPOLATION_MODE_MULTI_SAMPLE_LINEAR = D2D1_INTERPOLATION_MODE_DEFINITION_MULTI_SAMPLE_LINEAR, + D2D1_INTERPOLATION_MODE_ANISOTROPIC = D2D1_INTERPOLATION_MODE_DEFINITION_ANISOTROPIC, + D2D1_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC = D2D1_INTERPOLATION_MODE_DEFINITION_HIGH_QUALITY_CUBIC, + D2D1_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_INTERPOLATION_MODE; + + +/// +/// This specifies what units should be accepted by the D2D API. +/// +typedef enum D2D1_UNIT_MODE +{ + D2D1_UNIT_MODE_DIPS = 0, + D2D1_UNIT_MODE_PIXELS = 1, + D2D1_UNIT_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_UNIT_MODE; + + +/// +/// Defines a color space. +/// +typedef enum D2D1_COLOR_SPACE +{ + + /// + /// The color space is described by accompanying data, such as a color profile. + /// + D2D1_COLOR_SPACE_CUSTOM = 0, + + /// + /// The sRGB color space. + /// + D2D1_COLOR_SPACE_SRGB = 1, + + /// + /// The scRGB color space. + /// + D2D1_COLOR_SPACE_SCRGB = 2, + D2D1_COLOR_SPACE_FORCE_DWORD = 0xffffffff + +} D2D1_COLOR_SPACE; + + +/// +/// This specifies options that apply to the device context for its lifetime. +/// +typedef enum D2D1_DEVICE_CONTEXT_OPTIONS +{ + D2D1_DEVICE_CONTEXT_OPTIONS_NONE = 0, + + /// + /// Geometry rendering will be performed on many threads in parallel, a single + /// thread is the default. + /// + D2D1_DEVICE_CONTEXT_OPTIONS_ENABLE_MULTITHREADED_OPTIMIZATIONS = 1, + D2D1_DEVICE_CONTEXT_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_DEVICE_CONTEXT_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_DEVICE_CONTEXT_OPTIONS); + + +/// +/// Defines how the world transform, dots per inch (dpi), and stroke width affect +/// the shape of the pen used to stroke a primitive. +/// +typedef enum D2D1_STROKE_TRANSFORM_TYPE +{ + + /// + /// The stroke respects the world transform, the DPI, and the stroke width. + /// + D2D1_STROKE_TRANSFORM_TYPE_NORMAL = 0, + + /// + /// The stroke does not respect the world transform, but it does respect the DPI and + /// the stroke width. + /// + D2D1_STROKE_TRANSFORM_TYPE_FIXED = 1, + + /// + /// The stroke is forced to one pixel wide. + /// + D2D1_STROKE_TRANSFORM_TYPE_HAIRLINE = 2, + D2D1_STROKE_TRANSFORM_TYPE_FORCE_DWORD = 0xffffffff + +} D2D1_STROKE_TRANSFORM_TYPE; + + +/// +/// A blend mode that applies to all primitives drawn on the context. +/// +typedef enum D2D1_PRIMITIVE_BLEND +{ + D2D1_PRIMITIVE_BLEND_SOURCE_OVER = 0, + D2D1_PRIMITIVE_BLEND_COPY = 1, + D2D1_PRIMITIVE_BLEND_MIN = 2, + D2D1_PRIMITIVE_BLEND_ADD = 3, + D2D1_PRIMITIVE_BLEND_MAX = 4, + D2D1_PRIMITIVE_BLEND_FORCE_DWORD = 0xffffffff + +} D2D1_PRIMITIVE_BLEND; + + +/// +/// This specifies the threading mode used while simultaneously creating the device, +/// factory, and device context. +/// +typedef enum D2D1_THREADING_MODE +{ + + /// + /// Resources may only be invoked serially. Reference counts on resources are + /// interlocked, however, resource and render target state is not protected from + /// multi-threaded access + /// + D2D1_THREADING_MODE_SINGLE_THREADED = D2D1_FACTORY_TYPE_SINGLE_THREADED, + + /// + /// Resources may be invoked from multiple threads. Resources use interlocked + /// reference counting and their state is protected. + /// + D2D1_THREADING_MODE_MULTI_THREADED = D2D1_FACTORY_TYPE_MULTI_THREADED, + D2D1_THREADING_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_THREADING_MODE; + + +/// +/// This specifies how colors are interpolated. +/// +typedef enum D2D1_COLOR_INTERPOLATION_MODE +{ + + /// + /// Colors will be interpolated in straight alpha space. + /// + D2D1_COLOR_INTERPOLATION_MODE_STRAIGHT = 0, + + /// + /// Colors will be interpolated in premultiplied alpha space. + /// + D2D1_COLOR_INTERPOLATION_MODE_PREMULTIPLIED = 1, + D2D1_COLOR_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_COLOR_INTERPOLATION_MODE; + +typedef D2D_VECTOR_2F D2D1_VECTOR_2F; +typedef D2D_VECTOR_3F D2D1_VECTOR_3F; +typedef D2D_VECTOR_4F D2D1_VECTOR_4F; + +/// +/// Extended bitmap properties. +/// +typedef struct D2D1_BITMAP_PROPERTIES1 +{ + D2D1_PIXEL_FORMAT pixelFormat; + FLOAT dpiX; + FLOAT dpiY; + + /// + /// Specifies how the bitmap can be used. + /// + D2D1_BITMAP_OPTIONS bitmapOptions; + _Field_size_opt_(1) ID2D1ColorContext *colorContext; + +} D2D1_BITMAP_PROPERTIES1; + + +/// +/// Describes mapped memory from the ID2D1Bitmap1::Map API. +/// +typedef struct D2D1_MAPPED_RECT +{ + UINT32 pitch; + BYTE *bits; + +} D2D1_MAPPED_RECT; + + +/// +/// This controls advanced settings of the Direct2D imaging pipeline. +/// +typedef struct D2D1_RENDERING_CONTROLS +{ + + /// + /// The default buffer precision, used if the precision isn't otherwise specified. + /// + D2D1_BUFFER_PRECISION bufferPrecision; + + /// + /// The size of allocated tiles used to render imaging effects. + /// + D2D1_SIZE_U tileSize; + +} D2D1_RENDERING_CONTROLS; + + +/// +/// This identifies a certain input connection of a certain effect. +/// +typedef struct D2D1_EFFECT_INPUT_DESCRIPTION +{ + + /// + /// The effect whose input connection is being specified. + /// + ID2D1Effect *effect; + + /// + /// The index of the input connection into the specified effect. + /// + UINT32 inputIndex; + + /// + /// The rectangle which would be available on the specified input connection during + /// render operations. + /// + D2D1_RECT_F inputRectangle; + +} D2D1_EFFECT_INPUT_DESCRIPTION; + +typedef D2D_MATRIX_4X3_F D2D1_MATRIX_4X3_F; +typedef D2D_MATRIX_4X4_F D2D1_MATRIX_4X4_F; +typedef D2D_MATRIX_5X4_F D2D1_MATRIX_5X4_F; + +/// +/// Describes a point along a path. +/// +typedef struct D2D1_POINT_DESCRIPTION +{ + D2D1_POINT_2F point; + D2D1_POINT_2F unitTangentVector; + UINT32 endSegment; + UINT32 endFigure; + FLOAT lengthToEndSegment; + +} D2D1_POINT_DESCRIPTION; + + +/// +/// Creation properties for an image brush. +/// +typedef struct D2D1_IMAGE_BRUSH_PROPERTIES +{ + D2D1_RECT_F sourceRectangle; + D2D1_EXTEND_MODE extendModeX; + D2D1_EXTEND_MODE extendModeY; + D2D1_INTERPOLATION_MODE interpolationMode; + +} D2D1_IMAGE_BRUSH_PROPERTIES; + + +/// +/// Describes the extend modes and the interpolation mode of an ID2D1BitmapBrush. +/// +typedef struct D2D1_BITMAP_BRUSH_PROPERTIES1 +{ + D2D1_EXTEND_MODE extendModeX; + D2D1_EXTEND_MODE extendModeY; + D2D1_INTERPOLATION_MODE interpolationMode; + +} D2D1_BITMAP_BRUSH_PROPERTIES1; + + +/// +/// This defines how geometries should be drawn and widened. +/// +typedef struct D2D1_STROKE_STYLE_PROPERTIES1 +{ + D2D1_CAP_STYLE startCap; + D2D1_CAP_STYLE endCap; + D2D1_CAP_STYLE dashCap; + D2D1_LINE_JOIN lineJoin; + FLOAT miterLimit; + D2D1_DASH_STYLE dashStyle; + FLOAT dashOffset; + + /// + /// How the nib of the stroke is influenced by the context properties. + /// + D2D1_STROKE_TRANSFORM_TYPE transformType; + +} D2D1_STROKE_STYLE_PROPERTIES1; + + +/// +/// Specifies how the layer contents should be prepared. +/// +typedef enum D2D1_LAYER_OPTIONS1 +{ + D2D1_LAYER_OPTIONS1_NONE = 0, + D2D1_LAYER_OPTIONS1_INITIALIZE_FROM_BACKGROUND = 1, + D2D1_LAYER_OPTIONS1_IGNORE_ALPHA = 2, + D2D1_LAYER_OPTIONS1_FORCE_DWORD = 0xffffffff + +} D2D1_LAYER_OPTIONS1; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_LAYER_OPTIONS1); + + +/// +/// All parameters related to pushing a layer. +/// +typedef struct D2D1_LAYER_PARAMETERS1 +{ + D2D1_RECT_F contentBounds; + _Field_size_opt_(1) ID2D1Geometry *geometricMask; + D2D1_ANTIALIAS_MODE maskAntialiasMode; + D2D1_MATRIX_3X2_F maskTransform; + FLOAT opacity; + _Field_size_opt_(1) ID2D1Brush *opacityBrush; + D2D1_LAYER_OPTIONS1 layerOptions; + +} D2D1_LAYER_PARAMETERS1; + + +/// +/// Defines when font resources should be subset during printing. +/// +typedef enum D2D1_PRINT_FONT_SUBSET_MODE +{ + + /// + /// Subset for used glyphs, send and discard font resource after every five pages + /// + D2D1_PRINT_FONT_SUBSET_MODE_DEFAULT = 0, + + /// + /// Subset for used glyphs, send and discard font resource after each page + /// + D2D1_PRINT_FONT_SUBSET_MODE_EACHPAGE = 1, + + /// + /// Do not subset, reuse font for all pages, send it after first page + /// + D2D1_PRINT_FONT_SUBSET_MODE_NONE = 2, + D2D1_PRINT_FONT_SUBSET_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_PRINT_FONT_SUBSET_MODE; + + +/// +/// This describes the drawing state. +/// +typedef struct D2D1_DRAWING_STATE_DESCRIPTION1 +{ + D2D1_ANTIALIAS_MODE antialiasMode; + D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode; + D2D1_TAG tag1; + D2D1_TAG tag2; + D2D1_MATRIX_3X2_F transform; + D2D1_PRIMITIVE_BLEND primitiveBlend; + D2D1_UNIT_MODE unitMode; + +} D2D1_DRAWING_STATE_DESCRIPTION1; + + +/// +/// The creation properties for a ID2D1PrintControl object. +/// +typedef struct D2D1_PRINT_CONTROL_PROPERTIES +{ + D2D1_PRINT_FONT_SUBSET_MODE fontSubset; + + /// + /// DPI for rasterization of all unsupported D2D commands or options, defaults to + /// 150.0 + /// + FLOAT rasterDPI; + + /// + /// Color space for vector graphics in XPS package + /// + D2D1_COLOR_SPACE colorSpace; + +} D2D1_PRINT_CONTROL_PROPERTIES; + + +/// +/// This specifies the options while simultaneously creating the device, factory, +/// and device context. +/// +typedef struct D2D1_CREATION_PROPERTIES +{ + + /// + /// Describes locking behavior of D2D resources + /// + D2D1_THREADING_MODE threadingMode; + D2D1_DEBUG_LEVEL debugLevel; + D2D1_DEVICE_CONTEXT_OPTIONS options; + +} D2D1_CREATION_PROPERTIES; + + +EXTERN_C CONST IID IID_ID2D1GdiMetafileSink; +EXTERN_C CONST IID IID_ID2D1GdiMetafile; +EXTERN_C CONST IID IID_ID2D1CommandSink; +EXTERN_C CONST IID IID_ID2D1CommandList; +EXTERN_C CONST IID IID_ID2D1PrintControl; +EXTERN_C CONST IID IID_ID2D1ImageBrush; +EXTERN_C CONST IID IID_ID2D1BitmapBrush1; +EXTERN_C CONST IID IID_ID2D1StrokeStyle1; +EXTERN_C CONST IID IID_ID2D1PathGeometry1; +EXTERN_C CONST IID IID_ID2D1Properties; +EXTERN_C CONST IID IID_ID2D1Effect; +EXTERN_C CONST IID IID_ID2D1Bitmap1; +EXTERN_C CONST IID IID_ID2D1ColorContext; +EXTERN_C CONST IID IID_ID2D1GradientStopCollection1; +EXTERN_C CONST IID IID_ID2D1DrawingStateBlock1; +EXTERN_C CONST IID IID_ID2D1DeviceContext; +EXTERN_C CONST IID IID_ID2D1Device; +EXTERN_C CONST IID IID_ID2D1Factory1; +EXTERN_C CONST IID IID_ID2D1Multithread; + + +#ifndef D2D_USE_C_DEFINITIONS + + +/// +/// User-implementable interface for introspecting on a metafile. +/// +interface DX_DECLARE_INTERFACE("82237326-8111-4f7c-bcf4-b5c1175564fe") ID2D1GdiMetafileSink : public IUnknown +{ + + /// + /// Callback for examining a metafile record. + /// + STDMETHOD(ProcessRecord)( + DWORD recordType, + _In_opt_ CONST void *recordData, + DWORD recordDataSize + ) PURE; +}; // interface ID2D1GdiMetafileSink + + +/// +/// Interface encapsulating a GDI/GDI+ metafile. +/// +interface DX_DECLARE_INTERFACE("2f543dc3-cfc1-4211-864f-cfd91c6f3395") ID2D1GdiMetafile : public ID2D1Resource +{ + + /// + /// Play the metafile into a caller-supplied sink interface. + /// + STDMETHOD(Stream)( + _In_ ID2D1GdiMetafileSink *sink + ) PURE; + + /// + /// Gets the bounds of the metafile. + /// + STDMETHOD(GetBounds)( + _Out_ D2D1_RECT_F *bounds + ) PURE; +}; // interface ID2D1GdiMetafile + + +/// +/// Caller-supplied implementation of an interface to receive the recorded command +/// list. +/// +interface DX_DECLARE_INTERFACE("54d7898a-a061-40a7-bec7-e465bcba2c4f") ID2D1CommandSink : public IUnknown +{ + + STDMETHOD(BeginDraw)( + ) PURE; + + STDMETHOD(EndDraw)( + ) PURE; + + STDMETHOD(SetAntialiasMode)( + D2D1_ANTIALIAS_MODE antialiasMode + ) PURE; + + STDMETHOD(SetTags)( + D2D1_TAG tag1, + D2D1_TAG tag2 + ) PURE; + + STDMETHOD(SetTextAntialiasMode)( + D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode + ) PURE; + + STDMETHOD(SetTextRenderingParams)( + _In_opt_ IDWriteRenderingParams *textRenderingParams + ) PURE; + + STDMETHOD(SetTransform)( + _In_ CONST D2D1_MATRIX_3X2_F *transform + ) PURE; + + STDMETHOD(SetPrimitiveBlend)( + D2D1_PRIMITIVE_BLEND primitiveBlend + ) PURE; + + STDMETHOD(SetUnitMode)( + D2D1_UNIT_MODE unitMode + ) PURE; + + STDMETHOD(Clear)( + _In_opt_ CONST D2D1_COLOR_F *color + ) PURE; + + STDMETHOD(DrawGlyphRun)( + D2D1_POINT_2F baselineOrigin, + _In_ CONST DWRITE_GLYPH_RUN *glyphRun, + _In_opt_ CONST DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription, + _In_ ID2D1Brush *foregroundBrush, + DWRITE_MEASURING_MODE measuringMode + ) PURE; + + STDMETHOD(DrawLine)( + D2D1_POINT_2F point0, + D2D1_POINT_2F point1, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle + ) PURE; + + STDMETHOD(DrawGeometry)( + _In_ ID2D1Geometry *geometry, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle + ) PURE; + + STDMETHOD(DrawRectangle)( + _In_ CONST D2D1_RECT_F *rect, + _In_ ID2D1Brush *brush, + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle + ) PURE; + + STDMETHOD(DrawBitmap)( + _In_ ID2D1Bitmap *bitmap, + _In_opt_ CONST D2D1_RECT_F *destinationRectangle, + FLOAT opacity, + D2D1_INTERPOLATION_MODE interpolationMode, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle, + _In_opt_ CONST D2D1_MATRIX_4X4_F *perspectiveTransform + ) PURE; + + STDMETHOD(DrawImage)( + _In_ ID2D1Image *image, + _In_opt_ CONST D2D1_POINT_2F *targetOffset, + _In_opt_ CONST D2D1_RECT_F *imageRectangle, + D2D1_INTERPOLATION_MODE interpolationMode, + D2D1_COMPOSITE_MODE compositeMode + ) PURE; + + STDMETHOD(DrawGdiMetafile)( + _In_ ID2D1GdiMetafile *gdiMetafile, + _In_opt_ CONST D2D1_POINT_2F *targetOffset + ) PURE; + + STDMETHOD(FillMesh)( + _In_ ID2D1Mesh *mesh, + _In_ ID2D1Brush *brush + ) PURE; + + STDMETHOD(FillOpacityMask)( + _In_ ID2D1Bitmap *opacityMask, + _In_ ID2D1Brush *brush, + _In_opt_ CONST D2D1_RECT_F *destinationRectangle, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle + ) PURE; + + STDMETHOD(FillGeometry)( + _In_ ID2D1Geometry *geometry, + _In_ ID2D1Brush *brush, + _In_opt_ ID2D1Brush *opacityBrush + ) PURE; + + STDMETHOD(FillRectangle)( + _In_ CONST D2D1_RECT_F *rect, + _In_ ID2D1Brush *brush + ) PURE; + + STDMETHOD(PushAxisAlignedClip)( + _In_ CONST D2D1_RECT_F *clipRect, + D2D1_ANTIALIAS_MODE antialiasMode + ) PURE; + + STDMETHOD(PushLayer)( + _In_ CONST D2D1_LAYER_PARAMETERS1 *layerParameters1, + _In_opt_ ID2D1Layer *layer + ) PURE; + + STDMETHOD(PopAxisAlignedClip)( + ) PURE; + + STDMETHOD(PopLayer)( + ) PURE; +}; // interface ID2D1CommandSink + + +/// +/// The commandList interface. +/// +interface DX_DECLARE_INTERFACE("b4f34a19-2383-4d76-94f6-ec343657c3dc") ID2D1CommandList : public ID2D1Image +{ + + /// + /// Play the command list into a caller-supplied sink interface. + /// + STDMETHOD(Stream)( + _In_ ID2D1CommandSink *sink + ) PURE; + + /// + /// Marks the command list as ready for use. + /// + STDMETHOD(Close)( + ) PURE; +}; // interface ID2D1CommandList + + +/// +/// Converts Direct2D primitives stored in an ID2D1CommandList into a fixed page +/// representation. The print sub-system then consumes the primitives. +/// +interface DX_DECLARE_INTERFACE("2c1d867d-c290-41c8-ae7e-34a98702e9a5") ID2D1PrintControl : public IUnknown +{ + + STDMETHOD(AddPage)( + _In_ ID2D1CommandList *commandList, + D2D_SIZE_F pageSize, + _In_opt_ IStream *pagePrintTicketStream, + _Out_opt_ D2D1_TAG *tag1 = NULL, + _Out_opt_ D2D1_TAG *tag2 = NULL + ) PURE; + + STDMETHOD(Close)( + ) PURE; +}; // interface ID2D1PrintControl + + +/// +/// Provides a brush that can take any effect, command list or bitmap and use it to +/// fill a 2D shape. +/// +interface DX_DECLARE_INTERFACE("fe9e984d-3f95-407c-b5db-cb94d4e8f87c") ID2D1ImageBrush : public ID2D1Brush +{ + + STDMETHOD_(void, SetImage)( + _In_opt_ ID2D1Image *image + ) PURE; + + STDMETHOD_(void, SetExtendModeX)( + D2D1_EXTEND_MODE extendModeX + ) PURE; + + STDMETHOD_(void, SetExtendModeY)( + D2D1_EXTEND_MODE extendModeY + ) PURE; + + STDMETHOD_(void, SetInterpolationMode)( + D2D1_INTERPOLATION_MODE interpolationMode + ) PURE; + + STDMETHOD_(void, SetSourceRectangle)( + _In_ CONST D2D1_RECT_F *sourceRectangle + ) PURE; + + STDMETHOD_(void, GetImage)( + _Outptr_result_maybenull_ ID2D1Image **image + ) CONST PURE; + + STDMETHOD_(D2D1_EXTEND_MODE, GetExtendModeX)( + ) CONST PURE; + + STDMETHOD_(D2D1_EXTEND_MODE, GetExtendModeY)( + ) CONST PURE; + + STDMETHOD_(D2D1_INTERPOLATION_MODE, GetInterpolationMode)( + ) CONST PURE; + + STDMETHOD_(void, GetSourceRectangle)( + _Out_ D2D1_RECT_F *sourceRectangle + ) CONST PURE; +}; // interface ID2D1ImageBrush + + +/// +/// A bitmap brush allows a bitmap to be used to fill a geometry. Interpolation +/// mode is specified with D2D1_INTERPOLATION_MODE +/// +interface DX_DECLARE_INTERFACE("41343a53-e41a-49a2-91cd-21793bbb62e5") ID2D1BitmapBrush1 : public ID2D1BitmapBrush +{ + + /// + /// Sets the interpolation mode used when this brush is used. + /// + STDMETHOD_(void, SetInterpolationMode1)( + D2D1_INTERPOLATION_MODE interpolationMode + ) PURE; + + STDMETHOD_(D2D1_INTERPOLATION_MODE, GetInterpolationMode1)( + ) CONST PURE; +}; // interface ID2D1BitmapBrush1 + + +/// +/// Extends a stroke style to allow nominal width strokes. +/// +interface DX_DECLARE_INTERFACE("10a72a66-e91c-43f4-993f-ddf4b82b0b4a") ID2D1StrokeStyle1 : public ID2D1StrokeStyle +{ + + STDMETHOD_(D2D1_STROKE_TRANSFORM_TYPE, GetStrokeTransformType)( + ) CONST PURE; +}; // interface ID2D1StrokeStyle1 + + +/// +/// The ID2D1PathGeometry1 interface adds functionality to ID2D1PathGeometry. In +/// particular, it provides the path geometry-specific +/// ComputePointAndSegmentAtLength method. +/// +interface DX_DECLARE_INTERFACE("62baa2d2-ab54-41b7-b872-787e0106a421") ID2D1PathGeometry1 : public ID2D1PathGeometry +{ + + STDMETHOD(ComputePointAndSegmentAtLength)( + FLOAT length, + UINT32 startSegment, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _Out_ D2D1_POINT_DESCRIPTION *pointDescription + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + HRESULT + ComputePointAndSegmentAtLength( + FLOAT length, + UINT32 startSegment, + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _Out_ D2D1_POINT_DESCRIPTION *pointDescription + ) CONST + { + return ComputePointAndSegmentAtLength(length, startSegment, &worldTransform, flatteningTolerance, pointDescription); + } + + COM_DECLSPEC_NOTHROW + HRESULT + ComputePointAndSegmentAtLength( + FLOAT length, + UINT32 startSegment, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _Out_ D2D1_POINT_DESCRIPTION *pointDescription + ) CONST + { + return ComputePointAndSegmentAtLength(length, startSegment, worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, pointDescription); + } + + COM_DECLSPEC_NOTHROW + HRESULT + ComputePointAndSegmentAtLength( + FLOAT length, + UINT32 startSegment, + CONST D2D1_MATRIX_3X2_F &worldTransform, + _Out_ D2D1_POINT_DESCRIPTION *pointDescription + ) CONST + { + return ComputePointAndSegmentAtLength(length, startSegment, &worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, pointDescription); + } +}; // interface ID2D1PathGeometry1 + + +/// +/// Represents a set of run-time bindable and discoverable properties that allow a +/// data-driven application to modify the state of a Direct2D effect. +/// +interface DX_DECLARE_INTERFACE("483473d7-cd46-4f9d-9d3a-3112aa80159d") ID2D1Properties : public IUnknown +{ + + /// + /// Returns the total number of custom properties in this interface. + /// + STDMETHOD_(UINT32, GetPropertyCount)( + ) CONST PURE; + + /// + /// Retrieves the property name from the given property index. + /// + STDMETHOD(GetPropertyName)( + UINT32 index, + _Out_writes_(nameCount) PWSTR name, + UINT32 nameCount + ) CONST PURE; + + /// + /// Returns the length of the property name from the given index. + /// + STDMETHOD_(UINT32, GetPropertyNameLength)( + UINT32 index + ) CONST PURE; + + /// + /// Retrieves the type of the given property. + /// + STDMETHOD_(D2D1_PROPERTY_TYPE, GetType)( + UINT32 index + ) CONST PURE; + + /// + /// Retrieves the property index for the given property name. + /// + STDMETHOD_(UINT32, GetPropertyIndex)( + _In_ PCWSTR name + ) CONST PURE; + + /// + /// Sets the value of the given property using its name. + /// + STDMETHOD(SetValueByName)( + _In_ PCWSTR name, + D2D1_PROPERTY_TYPE type, + _In_reads_(dataSize) CONST BYTE *data, + UINT32 dataSize + ) PURE; + + /// + /// Sets the given value using the property index. + /// + STDMETHOD(SetValue)( + UINT32 index, + D2D1_PROPERTY_TYPE type, + _In_reads_(dataSize) CONST BYTE *data, + UINT32 dataSize + ) PURE; + + /// + /// Retrieves the given property or sub-property by name. '.' is the delimiter for + /// sub-properties. + /// + STDMETHOD(GetValueByName)( + _In_ PCWSTR name, + D2D1_PROPERTY_TYPE type, + _Out_writes_(dataSize) BYTE *data, + UINT32 dataSize + ) CONST PURE; + + /// + /// Retrieves the given value by index. + /// + STDMETHOD(GetValue)( + UINT32 index, + D2D1_PROPERTY_TYPE type, + _Out_writes_(dataSize) BYTE *data, + UINT32 dataSize + ) CONST PURE; + + /// + /// Returns the value size for the given property index. + /// + STDMETHOD_(UINT32, GetValueSize)( + UINT32 index + ) CONST PURE; + + /// + /// Retrieves the sub-properties of the given property by index. + /// + STDMETHOD(GetSubProperties)( + UINT32 index, + _COM_Outptr_result_maybenull_ ID2D1Properties **subProperties + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + HRESULT + SetValueByName( + _In_ PCWSTR name, + _In_reads_(dataSize) CONST BYTE *data, + UINT32 dataSize + ) + { + return SetValueByName(name, D2D1_PROPERTY_TYPE_UNKNOWN, data, dataSize); + } + + COM_DECLSPEC_NOTHROW + HRESULT + SetValue( + UINT32 index, + _In_reads_(dataSize) CONST BYTE *data, + UINT32 dataSize + ) + { + return SetValue(index, D2D1_PROPERTY_TYPE_UNKNOWN, data, dataSize); + } + + COM_DECLSPEC_NOTHROW + HRESULT + GetValueByName( + _In_ PCWSTR name, + _Out_writes_(dataSize) BYTE *data, + UINT32 dataSize + ) CONST + { + return GetValueByName(name, D2D1_PROPERTY_TYPE_UNKNOWN, data, dataSize); + } + + COM_DECLSPEC_NOTHROW + HRESULT + GetValue( + UINT32 index, + _Out_writes_(dataSize) BYTE *data, + UINT32 dataSize + ) CONST + { + return GetValue(index, D2D1_PROPERTY_TYPE_UNKNOWN, data, dataSize); + } + + // + // Templatized helper functions: + // + template + HRESULT GetValueByName( + _In_ PCWSTR propertyName, + _Out_ T *value + ) const + { + return GetValueByName(propertyName, reinterpret_cast(value), sizeof(*value)); + } + + template + T GetValueByName( + _In_ PCWSTR propertyName + ) const + { + T value; + HRESULT ignoreHr = GetValueByName(propertyName, reinterpret_cast(&value), sizeof(value)); + UNREFERENCED_PARAMETER(ignoreHr); + + return value; + } + + + template + HRESULT SetValueByName( + _In_ PCWSTR propertyName, + _In_ const T &value + ) + { + return SetValueByName(propertyName, reinterpret_cast(&value), sizeof(value)); + } + + template + HRESULT GetValue( + U index, + _Out_writes_(dataSize) BYTE *data, + UINT32 dataSize + ) CONST + { + return GetValue(static_cast(index), data, dataSize); + } + + template + HRESULT GetValue( + U index, + _Out_ T *value + ) const + { + return GetValue(static_cast(index), reinterpret_cast(value), sizeof(*value)); + } + + template + T GetValue( + U index + ) const + { + T value; + HRESULT ignoreHr = GetValue(static_cast(index), reinterpret_cast(&value), sizeof(value)); + + // Unreferenced variable: + (void)ignoreHr; + + return value; + } + + template + HRESULT SetValue( + U index, + _In_reads_(dataSize) CONST BYTE *data, + UINT32 dataSize + ) + { + return SetValue(static_cast(index), data, dataSize); + } + + template + HRESULT SetValue( + U index, + _In_ const T &value + ) + { + return SetValue(static_cast(index), reinterpret_cast(&value), sizeof(value)); + } + + template + HRESULT GetPropertyName( + U index, + _Out_writes_(nameCount) PWSTR name, + UINT32 nameCount + ) CONST + { + return GetPropertyName(static_cast(index), name, nameCount); + } + + template + UINT32 GetPropertyNameLength( + U index + ) CONST + { + return GetPropertyNameLength(static_cast(index)); + } + + template + D2D1_PROPERTY_TYPE GetType( + U index + ) CONST + { + return GetType(static_cast(index)); + } + + + template + UINT32 GetValueSize( + U index + ) CONST + { + return GetValueSize(static_cast(index)); + } + + template + HRESULT GetSubProperties( + U index, + _Outptr_result_maybenull_ ID2D1Properties **subProperties + ) CONST + { + return GetSubProperties(static_cast(index), subProperties); + } +}; // interface ID2D1Properties + + +/// +/// The effect interface. Properties control how the effect is rendered. The effect +/// is Drawn with the DrawImage call. +/// +interface DX_DECLARE_INTERFACE("28211a43-7d89-476f-8181-2d6159b220ad") ID2D1Effect : public ID2D1Properties +{ + + /// + /// Sets the input to the given effect. The input can be a concrete bitmap or the + /// output of another effect. + /// + STDMETHOD_(void, SetInput)( + UINT32 index, + _In_opt_ ID2D1Image *input, + BOOL invalidate = TRUE + ) PURE; + + /// + /// If the effect supports a variable number of inputs, this sets the number of + /// input that are currently active on the effect. + /// + STDMETHOD(SetInputCount)( + UINT32 inputCount + ) PURE; + + /// + /// Returns the input image to the effect. The input could be another effect or a + /// bitmap. + /// + STDMETHOD_(void, GetInput)( + UINT32 index, + _Outptr_result_maybenull_ ID2D1Image **input + ) CONST PURE; + + /// + /// This returns the number of input that are bound into this effect. + /// + STDMETHOD_(UINT32, GetInputCount)( + ) CONST PURE; + + /// + /// Returns the output image of the given effect. This can be set as the input to + /// another effect or can be drawn with DrawImage. + /// + STDMETHOD_(void, GetOutput)( + _Outptr_ ID2D1Image **outputImage + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + void + SetInputEffect( + UINT32 index, + _In_opt_ ID2D1Effect *inputEffect, + BOOL invalidate = TRUE + ) + { + + ID2D1Image *output = NULL; + if (inputEffect != NULL) + { + inputEffect->GetOutput(&output); + } + SetInput(index, output, invalidate); + if (output != NULL) + { + output->Release(); + } + } +}; // interface ID2D1Effect + + +/// +/// Represents a bitmap that can be used as a surface for an ID2D1DeviceContext or +/// mapped into system memory, and can contain additional color context information. +/// +interface DX_DECLARE_INTERFACE("a898a84c-3873-4588-b08b-ebbf978df041") ID2D1Bitmap1 : public ID2D1Bitmap +{ + + /// + /// Retrieves the color context information associated with the bitmap. + /// + STDMETHOD_(void, GetColorContext)( + _Outptr_result_maybenull_ ID2D1ColorContext **colorContext + ) CONST PURE; + + /// + /// Retrieves the bitmap options used when creating the API. + /// + STDMETHOD_(D2D1_BITMAP_OPTIONS, GetOptions)( + ) CONST PURE; + + /// + /// Retrieves the DXGI surface from the corresponding bitmap, if the bitmap was + /// created from a device derived from a D3D device. + /// + STDMETHOD(GetSurface)( + _COM_Outptr_result_maybenull_ IDXGISurface **dxgiSurface + ) CONST PURE; + + /// + /// Maps the given bitmap into memory. The bitmap must have been created with the + /// D2D1_BITMAP_OPTIONS_CPU_READ flag. + /// + STDMETHOD(Map)( + D2D1_MAP_OPTIONS options, + _Out_ D2D1_MAPPED_RECT *mappedRect + ) PURE; + + /// + /// Unmaps the given bitmap from memory. + /// + STDMETHOD(Unmap)( + ) PURE; +}; // interface ID2D1Bitmap1 + + +/// +/// Represents a color context that can be used with an ID2D1Bitmap1 object. +/// +interface DX_DECLARE_INTERFACE("1c4820bb-5771-4518-a581-2fe4dd0ec657") ID2D1ColorContext : public ID2D1Resource +{ + + /// + /// Retrieves the color space of the color context. + /// + STDMETHOD_(D2D1_COLOR_SPACE, GetColorSpace)( + ) CONST PURE; + + /// + /// Retrieves the size of the color profile, in bytes. + /// + STDMETHOD_(UINT32, GetProfileSize)( + ) CONST PURE; + + /// + /// Retrieves the color profile bytes. + /// + STDMETHOD(GetProfile)( + _Out_writes_(profileSize) BYTE *profile, + UINT32 profileSize + ) CONST PURE; +}; // interface ID2D1ColorContext + + +/// +/// Represents an collection of gradient stops that can then be the source resource +/// for either a linear or radial gradient brush. +/// +interface DX_DECLARE_INTERFACE("ae1572f4-5dd0-4777-998b-9279472ae63b") ID2D1GradientStopCollection1 : public ID2D1GradientStopCollection +{ + + /// + /// Copies the gradient stops from the collection into the caller's memory. If this + /// object was created using ID2D1DeviceContext::CreateGradientStopCollection, this + /// method returns the same values as were specified in the creation method. If this + /// object was created using ID2D1RenderTarget::CreateGradientStopCollection, the + /// stops returned here will first be transformed into the gamma space specified by + /// the colorInterpolationGamma parameter. + /// + STDMETHOD_(void, GetGradientStops1)( + _Out_writes_to_(gradientStopsCount, _Inexpressible_("Retrieved through GetGradientStopCount()") ) D2D1_GRADIENT_STOP *gradientStops, + UINT32 gradientStopsCount + ) CONST PURE; + + /// + /// Returns the color space in which interpolation occurs. If this object was + /// created using ID2D1RenderTarget::CreateGradientStopCollection, this method + /// returns the color space related to the color interpolation gamma. + /// + STDMETHOD_(D2D1_COLOR_SPACE, GetPreInterpolationSpace)( + ) CONST PURE; + + /// + /// Returns the color space colors will be converted to after interpolation occurs. + /// If this object was created using + /// ID2D1RenderTarget::CreateGradientStopCollection, this method returns + /// D2D1_COLOR_SPACE_SRGB. + /// + STDMETHOD_(D2D1_COLOR_SPACE, GetPostInterpolationSpace)( + ) CONST PURE; + + /// + /// Returns the buffer precision of this gradient. If this object was created using + /// ID2D1RenderTarget::CreateGradientStopCollection, this method returns + /// D2D1_BUFFER_PRECISION_8BPC_UNORM. + /// + STDMETHOD_(D2D1_BUFFER_PRECISION, GetBufferPrecision)( + ) CONST PURE; + + /// + /// Returns the interpolation mode used to interpolate colors in the gradient. + /// + STDMETHOD_(D2D1_COLOR_INTERPOLATION_MODE, GetColorInterpolationMode)( + ) CONST PURE; +}; // interface ID2D1GradientStopCollection1 + + +/// +/// Represents drawing state. +/// +interface DX_DECLARE_INTERFACE("689f1f85-c72e-4e33-8f19-85754efd5ace") ID2D1DrawingStateBlock1 : public ID2D1DrawingStateBlock +{ + + /// + /// Retrieves the state currently contained within this state block resource. + /// + STDMETHOD_(void, GetDescription)( + _Out_ D2D1_DRAWING_STATE_DESCRIPTION1 *stateDescription + ) CONST PURE; + + using ID2D1DrawingStateBlock::GetDescription; + + /// + /// Sets the state description of this state block resource. + /// + STDMETHOD_(void, SetDescription)( + _In_ CONST D2D1_DRAWING_STATE_DESCRIPTION1 *stateDescription + ) PURE; + + using ID2D1DrawingStateBlock::SetDescription; +}; // interface ID2D1DrawingStateBlock1 + + +/// +/// The device context represents a set of state and a command buffer that is used +/// to render to a target bitmap. +/// +interface DX_DECLARE_INTERFACE("e8f7fe7a-191c-466d-ad95-975678bda998") ID2D1DeviceContext : public ID2D1RenderTarget +{ + + /// + /// Creates a bitmap with extended bitmap properties, potentially from a block of + /// memory. + /// + STDMETHOD(CreateBitmap)( + D2D1_SIZE_U size, + _In_opt_ CONST void *sourceData, + UINT32 pitch, + _In_ CONST D2D1_BITMAP_PROPERTIES1 *bitmapProperties, + _COM_Outptr_ ID2D1Bitmap1 **bitmap + ) PURE; + + using ID2D1RenderTarget::CreateBitmap; + + /// + /// Create a D2D bitmap by copying a WIC bitmap. + /// + STDMETHOD(CreateBitmapFromWicBitmap)( + _In_ IWICBitmapSource *wicBitmapSource, + _In_opt_ CONST D2D1_BITMAP_PROPERTIES1 *bitmapProperties, + _COM_Outptr_ ID2D1Bitmap1 **bitmap + ) PURE; + + using ID2D1RenderTarget::CreateBitmapFromWicBitmap; + + /// + /// Creates a color context from a color space. If the space is Custom, the context + /// is initialized from the profile/profileSize arguments. Otherwise the context is + /// initialized with the profile bytes associated with the space and + /// profile/profileSize are ignored. + /// + STDMETHOD(CreateColorContext)( + D2D1_COLOR_SPACE space, + _In_reads_opt_(profileSize) CONST BYTE *profile, + UINT32 profileSize, + _COM_Outptr_ ID2D1ColorContext **colorContext + ) PURE; + + STDMETHOD(CreateColorContextFromFilename)( + _In_ PCWSTR filename, + _COM_Outptr_ ID2D1ColorContext **colorContext + ) PURE; + + STDMETHOD(CreateColorContextFromWicColorContext)( + _In_ IWICColorContext *wicColorContext, + _COM_Outptr_ ID2D1ColorContext **colorContext + ) PURE; + + /// + /// Creates a bitmap from a DXGI surface with a set of extended properties. + /// + STDMETHOD(CreateBitmapFromDxgiSurface)( + _In_ IDXGISurface *surface, + _In_opt_ CONST D2D1_BITMAP_PROPERTIES1 *bitmapProperties, + _COM_Outptr_ ID2D1Bitmap1 **bitmap + ) PURE; + + /// + /// Create a new effect, the effect must either be built in or previously registered + /// through ID2D1Factory1::RegisterEffectFromStream or + /// ID2D1Factory1::RegisterEffectFromString. + /// + STDMETHOD(CreateEffect)( + _In_ REFCLSID effectId, + _COM_Outptr_ ID2D1Effect **effect + ) PURE; + + /// + /// A gradient stop collection represents a set of stops in an ideal unit length. + /// This is the source resource for a linear gradient and radial gradient brush. + /// + /// Specifies both the input color space and the + /// space in which the color interpolation occurs. + /// Specifies the color space colors will be + /// converted to after interpolation occurs. + /// Specifies the precision in which the gradient + /// buffer will be held. + /// Specifies how the gradient will be extended outside of + /// the unit length. + /// Determines if colors will be interpolated + /// in straight alpha or premultiplied alpha space. + STDMETHOD(CreateGradientStopCollection)( + _In_reads_(straightAlphaGradientStopsCount) CONST D2D1_GRADIENT_STOP *straightAlphaGradientStops, + _In_range_(>=,1) UINT32 straightAlphaGradientStopsCount, + D2D1_COLOR_SPACE preInterpolationSpace, + D2D1_COLOR_SPACE postInterpolationSpace, + D2D1_BUFFER_PRECISION bufferPrecision, + D2D1_EXTEND_MODE extendMode, + D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode, + _COM_Outptr_ ID2D1GradientStopCollection1 **gradientStopCollection1 + ) PURE; + + using ID2D1RenderTarget::CreateGradientStopCollection; + + /// + /// Creates an image brush, the input image can be any type of image, including a + /// bitmap, effect and a command list. + /// + STDMETHOD(CreateImageBrush)( + _In_opt_ ID2D1Image *image, + _In_ CONST D2D1_IMAGE_BRUSH_PROPERTIES *imageBrushProperties, + _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, + _COM_Outptr_ ID2D1ImageBrush **imageBrush + ) PURE; + + STDMETHOD(CreateBitmapBrush)( + _In_opt_ ID2D1Bitmap *bitmap, + _In_opt_ CONST D2D1_BITMAP_BRUSH_PROPERTIES1 *bitmapBrushProperties, + _In_opt_ CONST D2D1_BRUSH_PROPERTIES *brushProperties, + _COM_Outptr_ ID2D1BitmapBrush1 **bitmapBrush + ) PURE; + + using ID2D1RenderTarget::CreateBitmapBrush; + + /// + /// Creates a new command list. + /// + STDMETHOD(CreateCommandList)( + _COM_Outptr_ ID2D1CommandList **commandList + ) PURE; + + /// + /// Indicates whether the format is supported by D2D. + /// + STDMETHOD_(BOOL, IsDxgiFormatSupported)( + DXGI_FORMAT format + ) CONST PURE; + + /// + /// Indicates whether the buffer precision is supported by D2D. + /// + STDMETHOD_(BOOL, IsBufferPrecisionSupported)( + D2D1_BUFFER_PRECISION bufferPrecision + ) CONST PURE; + + /// + /// This retrieves the local-space bounds in DIPs of the current image using the + /// device context DPI. + /// + STDMETHOD(GetImageLocalBounds)( + _In_ ID2D1Image *image, + _Out_ D2D1_RECT_F *localBounds + ) CONST PURE; + + /// + /// This retrieves the world-space bounds in DIPs of the current image using the + /// device context DPI. + /// + STDMETHOD(GetImageWorldBounds)( + _In_ ID2D1Image *image, + _Out_ D2D1_RECT_F *worldBounds + ) CONST PURE; + + /// + /// Retrieves the world-space bounds in DIPs of the glyph run using the device + /// context DPI. + /// + STDMETHOD(GetGlyphRunWorldBounds)( + D2D1_POINT_2F baselineOrigin, + _In_ CONST DWRITE_GLYPH_RUN *glyphRun, + DWRITE_MEASURING_MODE measuringMode, + _Out_ D2D1_RECT_F *bounds + ) CONST PURE; + + /// + /// Retrieves the device associated with this device context. + /// + STDMETHOD_(void, GetDevice)( + _Outptr_ ID2D1Device **device + ) CONST PURE; + + /// + /// Sets the target for this device context to point to the given image. The image + /// can be a command list or a bitmap created with the D2D1_BITMAP_OPTIONS_TARGET + /// flag. + /// + STDMETHOD_(void, SetTarget)( + _In_opt_ ID2D1Image *image + ) PURE; + + /// + /// Gets the target that this device context is currently pointing to. + /// + STDMETHOD_(void, GetTarget)( + _Outptr_result_maybenull_ ID2D1Image **image + ) CONST PURE; + + /// + /// Sets tuning parameters for internal rendering inside the device context. + /// + STDMETHOD_(void, SetRenderingControls)( + _In_ CONST D2D1_RENDERING_CONTROLS *renderingControls + ) PURE; + + /// + /// This retrieves the rendering controls currently selected into the device + /// context. + /// + STDMETHOD_(void, GetRenderingControls)( + _Out_ D2D1_RENDERING_CONTROLS *renderingControls + ) CONST PURE; + + /// + /// Changes the primitive blending mode for all of the rendering operations. + /// + STDMETHOD_(void, SetPrimitiveBlend)( + D2D1_PRIMITIVE_BLEND primitiveBlend + ) PURE; + + /// + /// Returns the primitive blend currently selected into the device context. + /// + STDMETHOD_(D2D1_PRIMITIVE_BLEND, GetPrimitiveBlend)( + ) CONST PURE; + + /// + /// Changes the units used for all of the rendering operations. + /// + STDMETHOD_(void, SetUnitMode)( + D2D1_UNIT_MODE unitMode + ) PURE; + + /// + /// Returns the unit mode currently set on the device context. + /// + STDMETHOD_(D2D1_UNIT_MODE, GetUnitMode)( + ) CONST PURE; + + /// + /// Draws the glyph run with an extended description to describe the glyphs. + /// + STDMETHOD_(void, DrawGlyphRun)( + D2D1_POINT_2F baselineOrigin, + _In_ CONST DWRITE_GLYPH_RUN *glyphRun, + _In_opt_ CONST DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription, + _In_ ID2D1Brush *foregroundBrush, + DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL + ) PURE; + + using ID2D1RenderTarget::DrawGlyphRun; + + /// + /// Draw an image to the device context. The image represents either a concrete + /// bitmap or the output of an effect graph. + /// + STDMETHOD_(void, DrawImage)( + _In_ ID2D1Image *image, + _In_opt_ CONST D2D1_POINT_2F *targetOffset = NULL, + _In_opt_ CONST D2D1_RECT_F *imageRectangle = NULL, + D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR, + D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER + ) PURE; + + /// + /// Draw a metafile to the device context. + /// + STDMETHOD_(void, DrawGdiMetafile)( + _In_ ID2D1GdiMetafile *gdiMetafile, + _In_opt_ CONST D2D1_POINT_2F *targetOffset = NULL + ) PURE; + + STDMETHOD_(void, DrawBitmap)( + _In_ ID2D1Bitmap *bitmap, + _In_opt_ CONST D2D1_RECT_F *destinationRectangle, + FLOAT opacity, + D2D1_INTERPOLATION_MODE interpolationMode, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle = NULL, + _In_opt_ CONST D2D1_MATRIX_4X4_F *perspectiveTransform = NULL + ) PURE; + + using ID2D1RenderTarget::DrawBitmap; + + /// + /// Push a layer on the device context. + /// + STDMETHOD_(void, PushLayer)( + _In_ CONST D2D1_LAYER_PARAMETERS1 *layerParameters, + _In_opt_ ID2D1Layer *layer + ) PURE; + + using ID2D1RenderTarget::PushLayer; + + /// + /// This indicates that a portion of an effect's input is invalid. This method can + /// be called many times. + /// + STDMETHOD(InvalidateEffectInputRectangle)( + _In_ ID2D1Effect *effect, + UINT32 input, + _In_ CONST D2D1_RECT_F *inputRectangle + ) PURE; + + /// + /// Gets the number of invalid ouptut rectangles that have accumulated at the + /// effect. + /// + STDMETHOD(GetEffectInvalidRectangleCount)( + _In_ ID2D1Effect *effect, + _Out_ UINT32 *rectangleCount + ) PURE; + + /// + /// Gets the invalid rectangles that are at the output of the effect. + /// + STDMETHOD(GetEffectInvalidRectangles)( + _In_ ID2D1Effect *effect, + _Out_writes_(rectanglesCount) D2D1_RECT_F *rectangles, + UINT32 rectanglesCount + ) PURE; + + /// + /// Gets the maximum region of each specified input which would be used during a + /// subsequent rendering operation + /// + STDMETHOD(GetEffectRequiredInputRectangles)( + _In_ ID2D1Effect *renderEffect, + _In_opt_ CONST D2D1_RECT_F *renderImageRectangle, + _In_reads_(inputCount) CONST D2D1_EFFECT_INPUT_DESCRIPTION *inputDescriptions, + _Out_writes_(inputCount) D2D1_RECT_F *requiredInputRects, + UINT32 inputCount + ) PURE; + + /// + /// Fill using the alpha channel of the supplied opacity mask bitmap. The brush + /// opacity will be modulated by the mask. The render target antialiasing mode must + /// be set to aliased. + /// + STDMETHOD_(void, FillOpacityMask)( + _In_ ID2D1Bitmap *opacityMask, + _In_ ID2D1Brush *brush, + _In_opt_ CONST D2D1_RECT_F *destinationRectangle = NULL, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle = NULL + ) PURE; + + using ID2D1RenderTarget::FillOpacityMask; + + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmap( + D2D1_SIZE_U size, + _In_opt_ CONST void *sourceData, + UINT32 pitch, + CONST D2D1_BITMAP_PROPERTIES1 &bitmapProperties, + _COM_Outptr_ ID2D1Bitmap1 **bitmap + ) + { + return CreateBitmap(size, sourceData, pitch, &bitmapProperties, bitmap); + } + + /// + /// Create a D2D bitmap by copying a WIC bitmap. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapFromWicBitmap( + _In_ IWICBitmapSource *wicBitmapSource, + CONST D2D1_BITMAP_PROPERTIES1 &bitmapProperties, + _COM_Outptr_ ID2D1Bitmap1 **bitmap + ) + { + return CreateBitmapFromWicBitmap(wicBitmapSource, &bitmapProperties, bitmap); + } + + /// + /// Create a D2D bitmap by copying a WIC bitmap. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapFromWicBitmap( + _In_ IWICBitmapSource *wicBitmapSource, + _COM_Outptr_ ID2D1Bitmap1 **bitmap + ) + { + return CreateBitmapFromWicBitmap(wicBitmapSource, NULL, bitmap); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapFromDxgiSurface( + _In_ IDXGISurface *surface, + CONST D2D1_BITMAP_PROPERTIES1 &bitmapProperties, + _COM_Outptr_ ID2D1Bitmap1 **bitmap + ) + { + return CreateBitmapFromDxgiSurface(surface, &bitmapProperties, bitmap); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateImageBrush( + _In_opt_ ID2D1Image *image, + CONST D2D1_IMAGE_BRUSH_PROPERTIES &imageBrushProperties, + CONST D2D1_BRUSH_PROPERTIES &brushProperties, + _COM_Outptr_ ID2D1ImageBrush **imageBrush + ) + { + return CreateImageBrush(image, &imageBrushProperties, &brushProperties, imageBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateImageBrush( + _In_opt_ ID2D1Image *image, + CONST D2D1_IMAGE_BRUSH_PROPERTIES &imageBrushProperties, + _COM_Outptr_ ID2D1ImageBrush **imageBrush + ) + { + return CreateImageBrush(image,&imageBrushProperties, NULL, imageBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapBrush( + _In_opt_ ID2D1Bitmap *bitmap, + _COM_Outptr_ ID2D1BitmapBrush1 **bitmapBrush + ) + { + return CreateBitmapBrush(bitmap, NULL, NULL, bitmapBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapBrush( + _In_opt_ ID2D1Bitmap *bitmap, + CONST D2D1_BITMAP_BRUSH_PROPERTIES1 &bitmapBrushProperties, + _COM_Outptr_ ID2D1BitmapBrush1 **bitmapBrush + ) + { + return CreateBitmapBrush(bitmap, &bitmapBrushProperties, NULL, bitmapBrush); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateBitmapBrush( + _In_opt_ ID2D1Bitmap *bitmap, + CONST D2D1_BITMAP_BRUSH_PROPERTIES1 &bitmapBrushProperties, + CONST D2D1_BRUSH_PROPERTIES &brushProperties, + _COM_Outptr_ ID2D1BitmapBrush1 **bitmapBrush + ) + { + return CreateBitmapBrush(bitmap, &bitmapBrushProperties, &brushProperties, bitmapBrush); + } + + /// + /// Draws the output of the effect as an image. + /// + COM_DECLSPEC_NOTHROW + void + DrawImage( + _In_ ID2D1Effect *effect, + _In_opt_ CONST D2D1_POINT_2F *targetOffset = NULL, + _In_opt_ CONST D2D1_RECT_F *imageRectangle = NULL, + D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR, + D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER + ) + { + + ID2D1Image *output = NULL; + effect->GetOutput(&output); + DrawImage(output, targetOffset, imageRectangle, interpolationMode, compositeMode); + output->Release(); + } + + COM_DECLSPEC_NOTHROW + void + DrawImage( + _In_ ID2D1Image *image, + D2D1_INTERPOLATION_MODE interpolationMode, + D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER + ) + { + DrawImage(image, NULL, NULL, interpolationMode, compositeMode); + } + + COM_DECLSPEC_NOTHROW + void + DrawImage( + _In_ ID2D1Effect *effect, + D2D1_INTERPOLATION_MODE interpolationMode, + D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER + ) + { + DrawImage(effect, NULL, NULL, interpolationMode, compositeMode); + } + + COM_DECLSPEC_NOTHROW + void + DrawImage( + _In_ ID2D1Image *image, + D2D1_POINT_2F targetOffset, + D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR, + D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER + ) + { + DrawImage(image, &targetOffset, NULL, interpolationMode, compositeMode); + } + + COM_DECLSPEC_NOTHROW + void + DrawImage( + _In_ ID2D1Effect *effect, + D2D1_POINT_2F targetOffset, + D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR, + D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER + ) + { + DrawImage(effect, &targetOffset, NULL, interpolationMode, compositeMode); + } + + COM_DECLSPEC_NOTHROW + void + DrawImage( + _In_ ID2D1Image *image, + D2D1_POINT_2F targetOffset, + CONST D2D1_RECT_F &imageRectangle, + D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR, + D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER + ) + { + DrawImage(image, &targetOffset, &imageRectangle, interpolationMode, compositeMode); + } + + COM_DECLSPEC_NOTHROW + void + DrawImage( + _In_ ID2D1Effect *effect, + D2D1_POINT_2F targetOffset, + CONST D2D1_RECT_F &imageRectangle, + D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR, + D2D1_COMPOSITE_MODE compositeMode = D2D1_COMPOSITE_MODE_SOURCE_OVER + ) + { + DrawImage(effect, &targetOffset, &imageRectangle, interpolationMode, compositeMode); + } + + COM_DECLSPEC_NOTHROW + void + PushLayer( + CONST D2D1_LAYER_PARAMETERS1 &layerParameters, + _In_opt_ ID2D1Layer *layer + ) + { + PushLayer(&layerParameters, layer); + } + + COM_DECLSPEC_NOTHROW + void + DrawGdiMetafile( + _In_ ID2D1GdiMetafile *gdiMetafile, + D2D1_POINT_2F targetOffset + ) + { + DrawGdiMetafile(gdiMetafile, &targetOffset); + } + + COM_DECLSPEC_NOTHROW + void + DrawBitmap( + _In_ ID2D1Bitmap *bitmap, + CONST D2D1_RECT_F &destinationRectangle, + FLOAT opacity, + D2D1_INTERPOLATION_MODE interpolationMode, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle = NULL, + _In_opt_ CONST D2D1_MATRIX_4X4_F *perspectiveTransform = NULL + ) + { + DrawBitmap(bitmap, &destinationRectangle, opacity, interpolationMode, sourceRectangle, perspectiveTransform); + } + + COM_DECLSPEC_NOTHROW + void + DrawBitmap( + _In_ ID2D1Bitmap *bitmap, + CONST D2D1_RECT_F &destinationRectangle, + FLOAT opacity, + D2D1_INTERPOLATION_MODE interpolationMode, + CONST D2D1_RECT_F &sourceRectangle, + _In_opt_ CONST D2D1_MATRIX_4X4_F *perspectiveTransform = NULL + ) + { + DrawBitmap(bitmap, &destinationRectangle, opacity, interpolationMode, &sourceRectangle, perspectiveTransform); + } + + COM_DECLSPEC_NOTHROW + void + DrawBitmap( + _In_ ID2D1Bitmap *bitmap, + CONST D2D1_RECT_F &destinationRectangle, + FLOAT opacity, + D2D1_INTERPOLATION_MODE interpolationMode, + CONST D2D1_RECT_F &sourceRectangle, + CONST D2D1_MATRIX_4X4_F &perspectiveTransform + ) + { + DrawBitmap(bitmap, &destinationRectangle, opacity, interpolationMode, &sourceRectangle, &perspectiveTransform); + } + + COM_DECLSPEC_NOTHROW + void + FillOpacityMask( + _In_ ID2D1Bitmap *opacityMask, + _In_ ID2D1Brush *brush, + CONST D2D1_RECT_F &destinationRectangle, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle = NULL + ) + { + FillOpacityMask(opacityMask, brush, &destinationRectangle, sourceRectangle); + } + + COM_DECLSPEC_NOTHROW + void + FillOpacityMask( + _In_ ID2D1Bitmap *opacityMask, + _In_ ID2D1Brush *brush, + CONST D2D1_RECT_F &destinationRectangle, + CONST D2D1_RECT_F &sourceRectangle + ) + { + FillOpacityMask(opacityMask, brush, &destinationRectangle, &sourceRectangle); + } + + /// + /// Sets tuning parameters for internal rendering inside the device context. + /// + COM_DECLSPEC_NOTHROW + void + SetRenderingControls( + CONST D2D1_RENDERING_CONTROLS &renderingControls + ) + { + return SetRenderingControls(&renderingControls); + } +}; // interface ID2D1DeviceContext + + +/// +/// The device defines a resource domain whose objects and device contexts can be +/// used together. +/// +interface DX_DECLARE_INTERFACE("47dd575d-ac05-4cdd-8049-9b02cd16f44c") ID2D1Device : public ID2D1Resource +{ + + /// + /// Creates a new device context with no initially assigned target. + /// + STDMETHOD(CreateDeviceContext)( + D2D1_DEVICE_CONTEXT_OPTIONS options, + _COM_Outptr_ ID2D1DeviceContext **deviceContext + ) PURE; + + /// + /// Creates a D2D print control. + /// + STDMETHOD(CreatePrintControl)( + _In_ IWICImagingFactory *wicFactory, + _In_ IPrintDocumentPackageTarget *documentTarget, + _In_opt_ CONST D2D1_PRINT_CONTROL_PROPERTIES *printControlProperties, + _COM_Outptr_ ID2D1PrintControl **printControl + ) PURE; + + /// + /// Sets the maximum amount of texture memory to maintain before evicting caches. + /// + STDMETHOD_(void, SetMaximumTextureMemory)( + UINT64 maximumInBytes + ) PURE; + + /// + /// Gets the maximum amount of texture memory to maintain before evicting caches. + /// + STDMETHOD_(UINT64, GetMaximumTextureMemory)( + ) CONST PURE; + + /// + /// Clears all resources that are cached but not held in use by the application + /// through an interface reference. + /// + STDMETHOD_(void, ClearResources)( + UINT32 millisecondsSinceUse = 0 + ) PURE; + + COM_DECLSPEC_NOTHROW + HRESULT + CreatePrintControl( + _In_ IWICImagingFactory *wicFactory, + _In_ IPrintDocumentPackageTarget *documentTarget, + CONST D2D1_PRINT_CONTROL_PROPERTIES &printControlProperties, + _COM_Outptr_ ID2D1PrintControl **printControl + ) + { + return CreatePrintControl(wicFactory, documentTarget, &printControlProperties, printControl); + } +}; // interface ID2D1Device + + +/// +/// Creates Direct2D resources. +/// +interface DX_DECLARE_INTERFACE("bb12d362-daee-4b9a-aa1d-14ba401cfa1f") ID2D1Factory1 : public ID2D1Factory +{ + + /// + /// This creates a new Direct2D device from the given IDXGIDevice. + /// + STDMETHOD(CreateDevice)( + _In_ IDXGIDevice *dxgiDevice, + _COM_Outptr_ ID2D1Device **d2dDevice + ) PURE; + + /// + /// This creates a stroke style with the ability to preserve stroke width in various + /// ways. + /// + STDMETHOD(CreateStrokeStyle)( + _In_ CONST D2D1_STROKE_STYLE_PROPERTIES1 *strokeStyleProperties, + _In_reads_opt_(dashesCount) CONST FLOAT *dashes, + UINT32 dashesCount, + _COM_Outptr_ ID2D1StrokeStyle1 **strokeStyle + ) PURE; + + using ID2D1Factory::CreateStrokeStyle; + + /// + /// Creates a path geometry with new operational methods. + /// + STDMETHOD(CreatePathGeometry)( + _COM_Outptr_ ID2D1PathGeometry1 **pathGeometry + ) PURE; + + using ID2D1Factory::CreatePathGeometry; + + /// + /// Creates a new drawing state block, this can be used in subsequent + /// SaveDrawingState and RestoreDrawingState operations on the render target. + /// + STDMETHOD(CreateDrawingStateBlock)( + _In_opt_ CONST D2D1_DRAWING_STATE_DESCRIPTION1 *drawingStateDescription, + _In_opt_ IDWriteRenderingParams *textRenderingParams, + _COM_Outptr_ ID2D1DrawingStateBlock1 **drawingStateBlock + ) PURE; + + using ID2D1Factory::CreateDrawingStateBlock; + + /// + /// Creates a new GDI metafile. + /// + STDMETHOD(CreateGdiMetafile)( + _In_ IStream *metafileStream, + _COM_Outptr_ ID2D1GdiMetafile **metafile + ) PURE; + + /// + /// This globally registers the given effect. The effect can later be instantiated + /// by using the registered class id. The effect registration is reference counted. + /// + STDMETHOD(RegisterEffectFromStream)( + _In_ REFCLSID classId, + _In_ IStream *propertyXml, + _In_reads_opt_(bindingsCount) CONST D2D1_PROPERTY_BINDING *bindings, + UINT32 bindingsCount, + _In_ CONST PD2D1_EFFECT_FACTORY effectFactory + ) PURE; + + /// + /// This globally registers the given effect. The effect can later be instantiated + /// by using the registered class id. The effect registration is reference counted. + /// + STDMETHOD(RegisterEffectFromString)( + _In_ REFCLSID classId, + _In_ PCWSTR propertyXml, + _In_reads_opt_(bindingsCount) CONST D2D1_PROPERTY_BINDING *bindings, + UINT32 bindingsCount, + _In_ CONST PD2D1_EFFECT_FACTORY effectFactory + ) PURE; + + /// + /// This unregisters the given effect by its class id, you need to call + /// UnregisterEffect for every call to ID2D1Factory1::RegisterEffectFromStream and + /// ID2D1Factory1::RegisterEffectFromString to completely unregister it. + /// + STDMETHOD(UnregisterEffect)( + _In_ REFCLSID classId + ) PURE; + + /// + /// This returns all of the registered effects in the process, including any + /// built-in effects. + /// + /// The number of effects returned into the passed in + /// effects array. + /// The number of effects currently registered in + /// the system. + STDMETHOD(GetRegisteredEffects)( + _Out_writes_to_opt_(effectsCount, *effectsReturned) CLSID *effects, + UINT32 effectsCount, + _Out_opt_ UINT32 *effectsReturned, + _Out_opt_ UINT32 *effectsRegistered + ) CONST PURE; + + /// + /// This retrieves the effect properties for the given effect, all of the effect + /// properties will be set to a default value since an effect is not instantiated to + /// implement the returned property interface. + /// + STDMETHOD(GetEffectProperties)( + _In_ REFCLSID effectId, + _COM_Outptr_ ID2D1Properties **properties + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + HRESULT + CreateStrokeStyle( + CONST D2D1_STROKE_STYLE_PROPERTIES1 &strokeStyleProperties, + _In_reads_opt_(dashesCount) CONST FLOAT *dashes, + UINT32 dashesCount, + _COM_Outptr_ ID2D1StrokeStyle1 **strokeStyle + ) + { + return CreateStrokeStyle(&strokeStyleProperties, dashes, dashesCount, strokeStyle); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateDrawingStateBlock( + CONST D2D1_DRAWING_STATE_DESCRIPTION1 &drawingStateDescription, + _COM_Outptr_ ID2D1DrawingStateBlock1 **drawingStateBlock + ) + { + return CreateDrawingStateBlock(&drawingStateDescription, NULL, drawingStateBlock); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateDrawingStateBlock( + _COM_Outptr_ ID2D1DrawingStateBlock1 **drawingStateBlock + ) + { + return CreateDrawingStateBlock(NULL, NULL, drawingStateBlock); + } +}; // interface ID2D1Factory1 + + +/// +/// A locking mechanism from a Direct2D factory that Direct2D uses to control +/// exclusive resource access in an app that is uses multiple threads. +/// +interface DX_DECLARE_INTERFACE("31e6e7bc-e0ff-4d46-8c64-a0a8c41c15d3") ID2D1Multithread : public IUnknown +{ + + /// + /// Returns whether the D2D factory was created with + /// D2D1_FACTORY_TYPE_MULTI_THREADED. + /// + STDMETHOD_(BOOL, GetMultithreadProtected)( + ) CONST PURE; + + /// + /// Enters the D2D API critical section, if it exists. + /// + STDMETHOD_(void, Enter)( + ) PURE; + + /// + /// Leaves the D2D API critical section, if it exists. + /// + STDMETHOD_(void, Leave)( + ) PURE; +}; // interface ID2D1Multithread + + + +#endif + + +#ifdef D2D_USE_C_DEFINITIONS + + +typedef interface ID2D1GdiMetafileSink ID2D1GdiMetafileSink; + +typedef interface ID2D1GdiMetafile ID2D1GdiMetafile; + +typedef interface ID2D1CommandSink ID2D1CommandSink; + +typedef interface ID2D1CommandList ID2D1CommandList; + +typedef interface ID2D1PrintControl ID2D1PrintControl; + +typedef interface ID2D1ImageBrush ID2D1ImageBrush; + +typedef interface ID2D1BitmapBrush1 ID2D1BitmapBrush1; + +typedef interface ID2D1StrokeStyle1 ID2D1StrokeStyle1; + +typedef interface ID2D1PathGeometry1 ID2D1PathGeometry1; + +typedef interface ID2D1Properties ID2D1Properties; + +typedef interface ID2D1Effect ID2D1Effect; + +typedef interface ID2D1Bitmap1 ID2D1Bitmap1; + +typedef interface ID2D1ColorContext ID2D1ColorContext; + +typedef interface ID2D1GradientStopCollection1 ID2D1GradientStopCollection1; + +typedef interface ID2D1DrawingStateBlock1 ID2D1DrawingStateBlock1; + +typedef interface ID2D1DeviceContext ID2D1DeviceContext; + +typedef interface ID2D1Device ID2D1Device; + +typedef interface ID2D1Factory1 ID2D1Factory1; + +typedef interface ID2D1Multithread ID2D1Multithread; + +#endif + + +#ifdef __cplusplus +extern "C" +{ +#endif + + HRESULT WINAPI + D2D1CreateDevice( + _In_ IDXGIDevice *dxgiDevice, + _In_opt_ CONST D2D1_CREATION_PROPERTIES *creationProperties, + _Outptr_ ID2D1Device **d2dDevice + ); + + HRESULT WINAPI + D2D1CreateDeviceContext( + _In_ IDXGISurface *dxgiSurface, + _In_opt_ CONST D2D1_CREATION_PROPERTIES *creationProperties, + _Outptr_ ID2D1DeviceContext **d2dDeviceContext + ); + + D2D1_COLOR_F WINAPI + D2D1ConvertColorSpace( + D2D1_COLOR_SPACE sourceColorSpace, + D2D1_COLOR_SPACE destinationColorSpace, + _In_ CONST D2D1_COLOR_F* color + ); + + void WINAPI + D2D1SinCos( + _In_ FLOAT angle, + _Out_ FLOAT *s, + _Out_ FLOAT *c + ); + + FLOAT WINAPI + D2D1Tan( + _In_ FLOAT angle + ); + + FLOAT WINAPI + D2D1Vec3Length( + _In_ FLOAT x, + _In_ FLOAT y, + _In_ FLOAT z + ); + +#ifdef __cplusplus +} +#endif + +#include + + +#ifndef D2D_USE_C_DEFINITIONS + +inline HRESULT +D2D1CreateDevice( + _In_ IDXGIDevice *dxgiDevice, + _In_ CONST D2D1_CREATION_PROPERTIES &creationProperties, + _Outptr_ ID2D1Device **d2dDevice + ) +{ + + return + D2D1CreateDevice( + dxgiDevice, + &creationProperties, + d2dDevice); +} + +inline HRESULT +D2D1CreateDeviceContext( + _In_ IDXGISurface *dxgiSurface, + _In_ CONST D2D1_CREATION_PROPERTIES &creationProperties, + _Outptr_ ID2D1DeviceContext **d2dDeviceContext + ) +{ + return + D2D1CreateDeviceContext( + dxgiSurface, + &creationProperties, + d2dDeviceContext); +} + +#endif // #ifndef D2D_USE_C_DEFINITIONS + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#endif // #ifndef _D2D1_1_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_1helper.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_1helper.h new file mode 100644 index 0000000000000000000000000000000000000000..0a86acb2fcd9df7f7889f3229f360bb4c1a34458 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_1helper.h @@ -0,0 +1,926 @@ + +/*=========================================================================*\ + + Copyright (c) Microsoft Corporation. All rights reserved. + + File: D2D1_1Helper.h + + Module Name: D2D + + Description: Helper files over the D2D interfaces and APIs. + +\*=========================================================================*/ +#pragma once + +#ifndef _D2D1_1HELPER_H_ +#define _D2D1_1HELPER_H_ + +#ifndef _D2D1_1_H_ +#include +#endif // #ifndef _D2D1_H_ + +#ifndef D2D_USE_C_DEFINITIONS + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +namespace D2D1 +{ + template<> + struct TypeTraits + { + typedef D2D1_POINT_2L Point; + typedef D2D1_RECT_L Rect; + }; + + template<> + struct TypeTraits + { + typedef D2D1_POINT_2L Point; + typedef D2D1_RECT_L Rect; + }; + + class Matrix4x3F : public D2D1_MATRIX_4X3_F + { + public: + + COM_DECLSPEC_NOTHROW + inline + Matrix4x3F( + FLOAT m11, FLOAT m12, FLOAT m13, + FLOAT m21, FLOAT m22, FLOAT m23, + FLOAT m31, FLOAT m32, FLOAT m33, + FLOAT m41, FLOAT m42, FLOAT m43 + ) + { + _11 = m11; + _12 = m12; + _13 = m13; + + _21 = m21; + _22 = m22; + _23 = m23; + + _31 = m31; + _32 = m32; + _33 = m33; + + _41 = m41; + _42 = m42; + _43 = m43; + } + + COM_DECLSPEC_NOTHROW + inline + Matrix4x3F() + { + _11 = 1; + _12 = 0; + _13 = 0; + + _21 = 0; + _22 = 1; + _23 = 0; + + _31 = 0; + _32 = 0; + _33 = 1; + + _41 = 0; + _42 = 0; + _43 = 0; + } + }; + + class Matrix4x4F : public D2D1_MATRIX_4X4_F + { + public: + + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F( + FLOAT m11, FLOAT m12, FLOAT m13, FLOAT m14, + FLOAT m21, FLOAT m22, FLOAT m23, FLOAT m24, + FLOAT m31, FLOAT m32, FLOAT m33, FLOAT m34, + FLOAT m41, FLOAT m42, FLOAT m43, FLOAT m44 + ) + { + _11 = m11; + _12 = m12; + _13 = m13; + _14 = m14; + + _21 = m21; + _22 = m22; + _23 = m23; + _24 = m24; + + _31 = m31; + _32 = m32; + _33 = m33; + _34 = m34; + + _41 = m41; + _42 = m42; + _43 = m43; + _44 = m44; + } + + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F() + { + _11 = 1; + _12 = 0; + _13 = 0; + _14 = 0; + + _21 = 0; + _22 = 1; + _23 = 0; + _24 = 0; + + _31 = 0; + _32 = 0; + _33 = 1; + _34 = 0; + + _41 = 0; + _42 = 0; + _43 = 0; + _44 = 1; + } + + COM_DECLSPEC_NOTHROW + inline + bool + operator==( + const Matrix4x4F& r + ) const + { + return _11 == r._11 && _12 == r._12 && _13 == r._13 && _14 == r._14 && + _21 == r._21 && _22 == r._22 && _23 == r._23 && _24 == r._24 && + _31 == r._31 && _32 == r._32 && _33 == r._33 && _34 == r._34 && + _41 == r._41 && _42 == r._42 && _43 == r._43 && _44 == r._44; + } + + COM_DECLSPEC_NOTHROW + inline + bool + operator!=( + const Matrix4x4F& r + ) const + { + return !(*this == r); + } + + static + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F + Translation(FLOAT x, FLOAT y, FLOAT z) + { + Matrix4x4F translation; + + translation._11 = 1.0; translation._12 = 0.0; translation._13 = 0.0; translation._14 = 0.0; + translation._21 = 0.0; translation._22 = 1.0; translation._23 = 0.0; translation._24 = 0.0; + translation._31 = 0.0; translation._32 = 0.0; translation._33 = 1.0; translation._34 = 0.0; + translation._41 = x; translation._42 = y; translation._43 = z; translation._44 = 1.0; + + return translation; + } + + static + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F + Scale(FLOAT x, FLOAT y, FLOAT z) + { + Matrix4x4F scale; + + scale._11 = x; scale._12 = 0.0; scale._13 = 0.0; scale._14 = 0.0; + scale._21 = 0.0; scale._22 = y; scale._23 = 0.0; scale._24 = 0.0; + scale._31 = 0.0; scale._32 = 0.0; scale._33 = z; scale._34 = 0.0; + scale._41 = 0.0; scale._42 = 0.0; scale._43 = 0.0; scale._44 = 1.0; + + return scale; + } + + static + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F + RotationX(FLOAT degreeX) + { + FLOAT angleInRadian = degreeX * (3.141592654f / 180.0f); + + FLOAT sinAngle = 0.0; + FLOAT cosAngle = 0.0; + D2D1SinCos(angleInRadian, &sinAngle, &cosAngle); + + Matrix4x4F rotationX( + 1, 0, 0, 0, + 0, cosAngle, sinAngle, 0, + 0, -sinAngle, cosAngle, 0, + 0, 0, 0, 1 + ); + + return rotationX; + } + + static + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F + RotationY(FLOAT degreeY) + { + FLOAT angleInRadian = degreeY * (3.141592654f / 180.0f); + + FLOAT sinAngle = 0.0; + FLOAT cosAngle = 0.0; + D2D1SinCos(angleInRadian, &sinAngle, &cosAngle); + + Matrix4x4F rotationY( + cosAngle, 0, -sinAngle, 0, + 0, 1, 0, 0, + sinAngle, 0, cosAngle, 0, + 0, 0, 0, 1 + ); + + return rotationY; + } + + static + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F + RotationZ(FLOAT degreeZ) + { + FLOAT angleInRadian = degreeZ * (3.141592654f / 180.0f); + + FLOAT sinAngle = 0.0; + FLOAT cosAngle = 0.0; + D2D1SinCos(angleInRadian, &sinAngle, &cosAngle); + + Matrix4x4F rotationZ( + cosAngle, sinAngle, 0, 0, + -sinAngle, cosAngle, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1 + ); + + return rotationZ; + } + + // + // 3D Rotation matrix for an arbitrary axis specified by x, y and z + // + static + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F + RotationArbitraryAxis(FLOAT x, FLOAT y, FLOAT z, FLOAT degree) + { + // Normalize the vector represented by x, y, and z + FLOAT magnitude = D2D1Vec3Length(x, y, z); + x /= magnitude; + y /= magnitude; + z /= magnitude; + + FLOAT angleInRadian = degree * (3.141592654f / 180.0f); + + FLOAT sinAngle = 0.0; + FLOAT cosAngle = 0.0; + D2D1SinCos(angleInRadian, &sinAngle, &cosAngle); + + FLOAT oneMinusCosAngle = 1 - cosAngle; + + Matrix4x4F rotationArb( + 1 + oneMinusCosAngle * (x * x - 1), + z * sinAngle + oneMinusCosAngle * x * y, + -y * sinAngle + oneMinusCosAngle * x * z, + 0, + + -z * sinAngle + oneMinusCosAngle * y * x, + 1 + oneMinusCosAngle * (y * y - 1), + x * sinAngle + oneMinusCosAngle * y * z, + 0, + + y * sinAngle + oneMinusCosAngle * z * x, + -x * sinAngle + oneMinusCosAngle * z * y, + 1 + oneMinusCosAngle * (z * z - 1) , + 0, + + 0, 0, 0, 1 + ); + + return rotationArb; + } + + static + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F + SkewX(FLOAT degreeX) + { + FLOAT angleInRadian = degreeX * (3.141592654f / 180.0f); + + FLOAT tanAngle = D2D1Tan(angleInRadian); + + Matrix4x4F skewX( + 1, 0, 0, 0, + tanAngle, 1, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1 + ); + + return skewX; + } + + static + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F + SkewY(FLOAT degreeY) + { + FLOAT angleInRadian = degreeY * (3.141592654f / 180.0f); + + FLOAT tanAngle = D2D1Tan(angleInRadian); + + Matrix4x4F skewY( + 1, tanAngle, 0, 0, + 0, 1, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1 + ); + + return skewY; + } + + + static + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F + PerspectiveProjection(FLOAT depth) + { + float proj = 0; + + if (depth > 0) + { + proj = -1/depth; + } + + Matrix4x4F projection( + 1, 0, 0, 0, + 0, 1, 0, 0, + 0, 0, 1, proj, + 0, 0, 0, 1 + ); + + return projection; + } + + // + // Functions for convertion from the base D2D1_MATRIX_4X4_f to + // this type without making a copy + // + static + COM_DECLSPEC_NOTHROW + inline + const Matrix4x4F* + ReinterpretBaseType(const D2D1_MATRIX_4X4_F *pMatrix) + { + return static_cast(pMatrix); + } + + static + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F* + ReinterpretBaseType(D2D1_MATRIX_4X4_F *pMatrix) + { + return static_cast(pMatrix); + } + + COM_DECLSPEC_NOTHROW + inline + FLOAT + Determinant() const + { + FLOAT minor1 = _41 * (_12 * (_23 * _34 - _33 * _24) - _13 * (_22 * _34 - _24 * _32) + _14 * (_22 * _33 - _23 * _32)); + FLOAT minor2 = _42 * (_11 * (_21 * _34 - _31 * _24) - _13 * (_21 * _34 - _24 * _31) + _14 * (_21 * _33 - _23 * _31)); + FLOAT minor3 = _43 * (_11 * (_22 * _34 - _32 * _24) - _12 * (_21 * _34 - _24 * _31) + _14 * (_21 * _32 - _22 * _31)); + FLOAT minor4 = _44 * (_11 * (_22 * _33 - _32 * _23) - _12 * (_21 * _33 - _23 * _31) + _13 * (_21 * _32 - _22 * _31)); + + return minor1 - minor2 + minor3 - minor4; + } + + COM_DECLSPEC_NOTHROW + inline + bool + IsIdentity() const + { + return _11 == 1.f && _12 == 0.f && _13 == 0.f && _14 == 0.f + && _21 == 0.f && _22 == 1.f && _23 == 0.f && _24 == 0.f + && _31 == 0.f && _32 == 0.f && _33 == 1.f && _34 == 0.f + && _41 == 0.f && _42 == 0.f && _43 == 0.f && _44 == 1.f; + } + + COM_DECLSPEC_NOTHROW + inline + void + SetProduct(const Matrix4x4F &a, const Matrix4x4F &b) + { + _11 = a._11 * b._11 + a._12 * b._21 + a._13 * b._31 + a._14 * b._41; + _12 = a._11 * b._12 + a._12 * b._22 + a._13 * b._32 + a._14 * b._42; + _13 = a._11 * b._13 + a._12 * b._23 + a._13 * b._33 + a._14 * b._43; + _14 = a._11 * b._14 + a._12 * b._24 + a._13 * b._34 + a._14 * b._44; + + _21 = a._21 * b._11 + a._22 * b._21 + a._23 * b._31 + a._24 * b._41; + _22 = a._21 * b._12 + a._22 * b._22 + a._23 * b._32 + a._24 * b._42; + _23 = a._21 * b._13 + a._22 * b._23 + a._23 * b._33 + a._24 * b._43; + _24 = a._21 * b._14 + a._22 * b._24 + a._23 * b._34 + a._24 * b._44; + + _31 = a._31 * b._11 + a._32 * b._21 + a._33 * b._31 + a._34 * b._41; + _32 = a._31 * b._12 + a._32 * b._22 + a._33 * b._32 + a._34 * b._42; + _33 = a._31 * b._13 + a._32 * b._23 + a._33 * b._33 + a._34 * b._43; + _34 = a._31 * b._14 + a._32 * b._24 + a._33 * b._34 + a._34 * b._44; + + _41 = a._41 * b._11 + a._42 * b._21 + a._43 * b._31 + a._44 * b._41; + _42 = a._41 * b._12 + a._42 * b._22 + a._43 * b._32 + a._44 * b._42; + _43 = a._41 * b._13 + a._42 * b._23 + a._43 * b._33 + a._44 * b._43; + _44 = a._41 * b._14 + a._42 * b._24 + a._43 * b._34 + a._44 * b._44; + } + + COM_DECLSPEC_NOTHROW + inline + Matrix4x4F + operator*(const Matrix4x4F &matrix) const + { + Matrix4x4F result; + + result.SetProduct(*this, matrix); + + return result; + } + }; + + + class Matrix5x4F : public D2D1_MATRIX_5X4_F + { + public: + + COM_DECLSPEC_NOTHROW + inline + Matrix5x4F( + FLOAT m11, FLOAT m12, FLOAT m13, FLOAT m14, + FLOAT m21, FLOAT m22, FLOAT m23, FLOAT m24, + FLOAT m31, FLOAT m32, FLOAT m33, FLOAT m34, + FLOAT m41, FLOAT m42, FLOAT m43, FLOAT m44, + FLOAT m51, FLOAT m52, FLOAT m53, FLOAT m54 + ) + { + _11 = m11; + _12 = m12; + _13 = m13; + _14 = m14; + + _21 = m21; + _22 = m22; + _23 = m23; + _24 = m24; + + _31 = m31; + _32 = m32; + _33 = m33; + _34 = m34; + + _41 = m41; + _42 = m42; + _43 = m43; + _44 = m44; + + _51 = m51; + _52 = m52; + _53 = m53; + _54 = m54; + } + + COM_DECLSPEC_NOTHROW + inline + Matrix5x4F() + { + _11 = 1; + _12 = 0; + _13 = 0; + _14 = 0; + + _21 = 0; + _22 = 1; + _23 = 0; + _24 = 0; + + _31 = 0; + _32 = 0; + _33 = 1; + _34 = 0; + + _41 = 0; + _42 = 0; + _43 = 0; + _44 = 1; + + _51 = 0; + _52 = 0; + _53 = 0; + _54 = 0; + } + }; + + COM_DECLSPEC_NOTHROW + inline + D2D1_COLOR_F + ConvertColorSpace( + D2D1_COLOR_SPACE sourceColorSpace, + D2D1_COLOR_SPACE destinationColorSpace, + const D2D1_COLOR_F& color + ) + { + return D2D1ConvertColorSpace( + sourceColorSpace, + destinationColorSpace, + &color + ); + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_DRAWING_STATE_DESCRIPTION1 + DrawingStateDescription1( + D2D1_ANTIALIAS_MODE antialiasMode = D2D1_ANTIALIAS_MODE_PER_PRIMITIVE, + D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode = D2D1_TEXT_ANTIALIAS_MODE_DEFAULT, + D2D1_TAG tag1 = 0, + D2D1_TAG tag2 = 0, + _In_ const D2D1_MATRIX_3X2_F &transform = D2D1::IdentityMatrix(), + D2D1_PRIMITIVE_BLEND primitiveBlend = D2D1_PRIMITIVE_BLEND_SOURCE_OVER, + D2D1_UNIT_MODE unitMode = D2D1_UNIT_MODE_DIPS + ) + { + D2D1_DRAWING_STATE_DESCRIPTION1 drawingStateDescription1; + + drawingStateDescription1.antialiasMode = antialiasMode; + drawingStateDescription1.textAntialiasMode = textAntialiasMode; + drawingStateDescription1.tag1 = tag1; + drawingStateDescription1.tag2 = tag2; + drawingStateDescription1.transform = transform; + drawingStateDescription1.primitiveBlend = primitiveBlend; + drawingStateDescription1.unitMode = unitMode; + + return drawingStateDescription1; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_DRAWING_STATE_DESCRIPTION1 + DrawingStateDescription1( + _In_ const D2D1_DRAWING_STATE_DESCRIPTION &desc, + D2D1_PRIMITIVE_BLEND primitiveBlend = D2D1_PRIMITIVE_BLEND_SOURCE_OVER, + D2D1_UNIT_MODE unitMode = D2D1_UNIT_MODE_DIPS + ) + { + D2D1_DRAWING_STATE_DESCRIPTION1 drawingStateDescription1; + + drawingStateDescription1.antialiasMode = desc.antialiasMode; + drawingStateDescription1.textAntialiasMode = desc.textAntialiasMode; + drawingStateDescription1.tag1 = desc.tag1; + drawingStateDescription1.tag2 = desc.tag2; + drawingStateDescription1.transform = desc.transform; + drawingStateDescription1.primitiveBlend = primitiveBlend; + drawingStateDescription1.unitMode = unitMode; + + return drawingStateDescription1; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_BITMAP_PROPERTIES1 + BitmapProperties1( + D2D1_BITMAP_OPTIONS bitmapOptions = D2D1_BITMAP_OPTIONS_NONE, + _In_ CONST D2D1_PIXEL_FORMAT pixelFormat = D2D1::PixelFormat(), + FLOAT dpiX = 96.0f, + FLOAT dpiY = 96.0f, + _In_opt_ ID2D1ColorContext *colorContext = NULL + ) + { + D2D1_BITMAP_PROPERTIES1 bitmapProperties; + memset(&bitmapProperties, 0, sizeof(bitmapProperties)); + bitmapProperties = + { + pixelFormat, + dpiX, dpiY, + bitmapOptions, + colorContext + }; + + return bitmapProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_LAYER_PARAMETERS1 + LayerParameters1( + _In_ CONST D2D1_RECT_F &contentBounds = D2D1::InfiniteRect(), + _In_opt_ ID2D1Geometry *geometricMask = NULL, + D2D1_ANTIALIAS_MODE maskAntialiasMode = D2D1_ANTIALIAS_MODE_PER_PRIMITIVE, + D2D1_MATRIX_3X2_F maskTransform = D2D1::IdentityMatrix(), + FLOAT opacity = 1.0, + _In_opt_ ID2D1Brush *opacityBrush = NULL, + D2D1_LAYER_OPTIONS1 layerOptions = D2D1_LAYER_OPTIONS1_NONE + ) + { + D2D1_LAYER_PARAMETERS1 layerParameters = { 0 }; + + layerParameters.contentBounds = contentBounds; + layerParameters.geometricMask = geometricMask; + layerParameters.maskAntialiasMode = maskAntialiasMode; + layerParameters.maskTransform = maskTransform; + layerParameters.opacity = opacity; + layerParameters.opacityBrush = opacityBrush; + layerParameters.layerOptions = layerOptions; + + return layerParameters; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_STROKE_STYLE_PROPERTIES1 + StrokeStyleProperties1( + D2D1_CAP_STYLE startCap = D2D1_CAP_STYLE_FLAT, + D2D1_CAP_STYLE endCap = D2D1_CAP_STYLE_FLAT, + D2D1_CAP_STYLE dashCap = D2D1_CAP_STYLE_FLAT, + D2D1_LINE_JOIN lineJoin = D2D1_LINE_JOIN_MITER, + FLOAT miterLimit = 10.0f, + D2D1_DASH_STYLE dashStyle = D2D1_DASH_STYLE_SOLID, + FLOAT dashOffset = 0.0f, + D2D1_STROKE_TRANSFORM_TYPE transformType = D2D1_STROKE_TRANSFORM_TYPE_NORMAL + ) + { + D2D1_STROKE_STYLE_PROPERTIES1 strokeStyleProperties; + + strokeStyleProperties.startCap = startCap; + strokeStyleProperties.endCap = endCap; + strokeStyleProperties.dashCap = dashCap; + strokeStyleProperties.lineJoin = lineJoin; + strokeStyleProperties.miterLimit = miterLimit; + strokeStyleProperties.dashStyle = dashStyle; + strokeStyleProperties.dashOffset = dashOffset; + strokeStyleProperties.transformType = transformType; + + return strokeStyleProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_IMAGE_BRUSH_PROPERTIES + ImageBrushProperties( + D2D1_RECT_F sourceRectangle, + D2D1_EXTEND_MODE extendModeX = D2D1_EXTEND_MODE_CLAMP, + D2D1_EXTEND_MODE extendModeY = D2D1_EXTEND_MODE_CLAMP, + D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR + ) + { + D2D1_IMAGE_BRUSH_PROPERTIES imageBrushProperties; + + imageBrushProperties.extendModeX = extendModeX; + imageBrushProperties.extendModeY = extendModeY; + imageBrushProperties.interpolationMode = interpolationMode; + imageBrushProperties.sourceRectangle = sourceRectangle; + + return imageBrushProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_BITMAP_BRUSH_PROPERTIES1 + BitmapBrushProperties1( + D2D1_EXTEND_MODE extendModeX = D2D1_EXTEND_MODE_CLAMP, + D2D1_EXTEND_MODE extendModeY = D2D1_EXTEND_MODE_CLAMP, + D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR + ) + { + D2D1_BITMAP_BRUSH_PROPERTIES1 bitmapBrush1Properties; + + bitmapBrush1Properties.extendModeX = extendModeX; + bitmapBrush1Properties.extendModeY = extendModeY; + bitmapBrush1Properties.interpolationMode = interpolationMode; + + return bitmapBrush1Properties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_PRINT_CONTROL_PROPERTIES + PrintControlProperties( + D2D1_PRINT_FONT_SUBSET_MODE fontSubsetMode = D2D1_PRINT_FONT_SUBSET_MODE_DEFAULT, + FLOAT rasterDpi = 150.0f, + D2D1_COLOR_SPACE colorSpace = D2D1_COLOR_SPACE_SRGB + ) + { + D2D1_PRINT_CONTROL_PROPERTIES printControlProps; + + printControlProps.fontSubset = fontSubsetMode; + printControlProps.rasterDPI = rasterDpi; + printControlProps.colorSpace = colorSpace; + + return printControlProps; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_RENDERING_CONTROLS + RenderingControls( + D2D1_BUFFER_PRECISION bufferPrecision, + D2D1_SIZE_U tileSize + ) + { + D2D1_RENDERING_CONTROLS renderingControls; + + renderingControls.bufferPrecision = bufferPrecision; + renderingControls.tileSize = tileSize; + + return renderingControls; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_EFFECT_INPUT_DESCRIPTION + EffectInputDescription( + ID2D1Effect *effect, + UINT32 inputIndex, + D2D1_RECT_F inputRectangle + ) + { + D2D1_EFFECT_INPUT_DESCRIPTION description; + + description.effect = effect; + description.inputIndex = inputIndex; + description.inputRectangle = inputRectangle; + + return description; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_CREATION_PROPERTIES + CreationProperties( + D2D1_THREADING_MODE threadingMode, + D2D1_DEBUG_LEVEL debugLevel, + D2D1_DEVICE_CONTEXT_OPTIONS options + ) + { + D2D1_CREATION_PROPERTIES creationProperties; + + creationProperties.threadingMode = threadingMode; + creationProperties.debugLevel = debugLevel; + creationProperties.options = options; + + return creationProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_VECTOR_2F + Vector2F( + FLOAT x = 0.0f, + FLOAT y = 0.0f + ) + { + D2D1_VECTOR_2F vec2 = {x, y}; + return vec2; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_VECTOR_3F + Vector3F( + FLOAT x = 0.0f, + FLOAT y = 0.0f, + FLOAT z = 0.0f + ) + { + D2D1_VECTOR_3F vec3 = {x, y, z}; + return vec3; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_VECTOR_4F + Vector4F( + FLOAT x = 0.0f, + FLOAT y = 0.0f, + FLOAT z = 0.0f, + FLOAT w = 0.0f + ) + { + D2D1_VECTOR_4F vec4 = {x, y, z, w}; + return vec4; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_POINT_2L + Point2L( + INT32 x = 0, + INT32 y = 0 + ) + { + return Point2(x, y); + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_RECT_L + RectL( + INT32 left = 0.f, + INT32 top = 0.f, + INT32 right = 0.f, + INT32 bottom = 0.f + ) + { + return Rect(left, top, right, bottom); + } + + // + // Sets a bitmap as an effect input, while inserting a DPI compensation effect + // to preserve visual appearance as the device context's DPI changes. + // + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + HRESULT + SetDpiCompensatedEffectInput( + _In_ ID2D1DeviceContext *deviceContext, + _In_ ID2D1Effect *effect, + UINT32 inputIndex, + _In_opt_ ID2D1Bitmap *inputBitmap, + D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR, + D2D1_BORDER_MODE borderMode = D2D1_BORDER_MODE_HARD + ) + { + HRESULT hr = S_OK; + ID2D1Effect *dpiCompensationEffect = NULL; + + if (!inputBitmap) + { + effect->SetInput(inputIndex, NULL); + return hr; + } + + hr = deviceContext->CreateEffect(CLSID_D2D1DpiCompensation, &dpiCompensationEffect); + + if (SUCCEEDED(hr)) + { + if (SUCCEEDED(hr)) + { + dpiCompensationEffect->SetInput(0, inputBitmap); + + D2D1_POINT_2F bitmapDpi; + inputBitmap->GetDpi(&bitmapDpi.x, &bitmapDpi.y); + hr = dpiCompensationEffect->SetValue(D2D1_DPICOMPENSATION_PROP_INPUT_DPI, bitmapDpi); + } + + if (SUCCEEDED(hr)) + { + hr = dpiCompensationEffect->SetValue(D2D1_DPICOMPENSATION_PROP_INTERPOLATION_MODE, interpolationMode); + } + + if (SUCCEEDED(hr)) + { + hr = dpiCompensationEffect->SetValue(D2D1_DPICOMPENSATION_PROP_BORDER_MODE, borderMode); + } + + if (SUCCEEDED(hr)) + { + effect->SetInputEffect(inputIndex, dpiCompensationEffect); + } + + if (dpiCompensationEffect) + { + dpiCompensationEffect->Release(); + } + } + + return hr; + } + +} // namespace D2D1 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // #ifndef D2D_USE_C_DEFINITIONS + +#endif // #ifndef _D2D1_HELPER_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_2.h new file mode 100644 index 0000000000000000000000000000000000000000..6b6df02c5238e7f3914383aa3f11ba9fa12fa083 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_2.h @@ -0,0 +1,204 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2D1_2.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2D1_2_H_ +#define _D2D1_2_H_ + +#ifndef _D2D1_1_H_ +#include +#endif // #ifndef _D2D1_1_H_ +#ifndef _D2D1_EFFECTS_1_ +#include +#endif // #ifndef _D2D1_EFFECTS_1_ + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#ifndef D2D_USE_C_DEFINITIONS + +interface ID2D1Device1; +#else + +typedef interface ID2D1Device1 ID2D1Device1; + +#endif + +/// +/// Specifies the extent to which D2D will throttle work sent to the GPU. +/// +typedef enum D2D1_RENDERING_PRIORITY +{ + D2D1_RENDERING_PRIORITY_NORMAL = 0, + D2D1_RENDERING_PRIORITY_LOW = 1, + D2D1_RENDERING_PRIORITY_FORCE_DWORD = 0xffffffff + +} D2D1_RENDERING_PRIORITY; + + +EXTERN_C CONST IID IID_ID2D1GeometryRealization; +EXTERN_C CONST IID IID_ID2D1DeviceContext1; +EXTERN_C CONST IID IID_ID2D1Device1; +EXTERN_C CONST IID IID_ID2D1Factory2; +EXTERN_C CONST IID IID_ID2D1CommandSink1; + + +#ifndef D2D_USE_C_DEFINITIONS + + +/// +/// Encapsulates a device- and transform-dependent representation of a filled or +/// stroked geometry. +/// +interface DX_DECLARE_INTERFACE("a16907d7-bc02-4801-99e8-8cf7f485f774") ID2D1GeometryRealization : public ID2D1Resource +{ +}; // interface ID2D1GeometryRealization + + +/// +/// Enables creation and drawing of geometry realization objects. +/// +interface DX_DECLARE_INTERFACE("d37f57e4-6908-459f-a199-e72f24f79987") ID2D1DeviceContext1 : public ID2D1DeviceContext +{ + + STDMETHOD(CreateFilledGeometryRealization)( + _In_ ID2D1Geometry *geometry, + FLOAT flatteningTolerance, + _COM_Outptr_ ID2D1GeometryRealization **geometryRealization + ) PURE; + + STDMETHOD(CreateStrokedGeometryRealization)( + _In_ ID2D1Geometry *geometry, + FLOAT flatteningTolerance, + FLOAT strokeWidth, + _In_opt_ ID2D1StrokeStyle *strokeStyle, + _COM_Outptr_ ID2D1GeometryRealization **geometryRealization + ) PURE; + + STDMETHOD_(void, DrawGeometryRealization)( + _In_ ID2D1GeometryRealization *geometryRealization, + _In_ ID2D1Brush *brush + ) PURE; +}; // interface ID2D1DeviceContext1 + + +/// +/// Represents a resource domain whose objects and device contexts can be used +/// together. +/// +interface DX_DECLARE_INTERFACE("d21768e1-23a4-4823-a14b-7c3eba85d658") ID2D1Device1 : public ID2D1Device +{ + + /// + /// Retrieves the rendering priority currently set on the device. + /// + STDMETHOD_(D2D1_RENDERING_PRIORITY, GetRenderingPriority)( + ) PURE; + + /// + /// Sets the rendering priority of the device. + /// + STDMETHOD_(void, SetRenderingPriority)( + D2D1_RENDERING_PRIORITY renderingPriority + ) PURE; + + /// + /// Creates a new device context with no initially assigned target. + /// + STDMETHOD(CreateDeviceContext)( + D2D1_DEVICE_CONTEXT_OPTIONS options, + _COM_Outptr_ ID2D1DeviceContext1 **deviceContext1 + ) PURE; + + using ID2D1Device::CreateDeviceContext; +}; // interface ID2D1Device1 + + +/// +/// Creates Direct2D resources. This interface also enables the creation of +/// ID2D1Device1 objects. +/// +interface DX_DECLARE_INTERFACE("94f81a73-9212-4376-9c58-b16a3a0d3992") ID2D1Factory2 : public ID2D1Factory1 +{ + + /// + /// This creates a new Direct2D device from the given IDXGIDevice. + /// + STDMETHOD(CreateDevice)( + _In_ IDXGIDevice *dxgiDevice, + _COM_Outptr_ ID2D1Device1 **d2dDevice1 + ) PURE; + + using ID2D1Factory1::CreateDevice; +}; // interface ID2D1Factory2 + + +/// +/// This interface performs all the same functions as the existing ID2D1CommandSink +/// interface. It also enables access to the new primitive blend modes, MIN and ADD, +/// through its SetPrimitiveBlend1 method. +/// +interface DX_DECLARE_INTERFACE("9eb767fd-4269-4467-b8c2-eb30cb305743") ID2D1CommandSink1 : public ID2D1CommandSink +{ + + /// + /// This method is called if primitiveBlend value was added after Windows 8. + /// SetPrimitiveBlend method is used for Win8 values (_SOURCE_OVER and _COPY). + /// + STDMETHOD(SetPrimitiveBlend1)( + D2D1_PRIMITIVE_BLEND primitiveBlend + ) PURE; +}; // interface ID2D1CommandSink1 + + + +#endif + + +#ifdef D2D_USE_C_DEFINITIONS + + +typedef interface ID2D1GeometryRealization ID2D1GeometryRealization; + +typedef interface ID2D1DeviceContext1 ID2D1DeviceContext1; + +typedef interface ID2D1Device1 ID2D1Device1; + +typedef interface ID2D1Factory2 ID2D1Factory2; + +typedef interface ID2D1CommandSink1 ID2D1CommandSink1; + +#endif + + +#ifdef __cplusplus +extern "C" +{ +#endif + +#if NTDDI_VERSION >= NTDDI_WINBLUE + FLOAT WINAPI + D2D1ComputeMaximumScaleFactor( + _In_ CONST D2D1_MATRIX_3X2_F *matrix + ); +#endif // #if NTDDI_VERSION >= NTDDI_WINBLUE + +#ifdef __cplusplus +} +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#include +#endif // #ifndef _D2D1_2_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_2helper.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_2helper.h new file mode 100644 index 0000000000000000000000000000000000000000..cd7e5b1bfa2adf5d6cd8d868122eba87125147cf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_2helper.h @@ -0,0 +1,65 @@ + +/*=========================================================================*\ + + Copyright (c) Microsoft Corporation. All rights reserved. + + File: D2D1_2Helper.h + + Module Name: D2D + + Description: Helper files over the D2D interfaces and APIs. + +\*=========================================================================*/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _D2D1_2HELPER_H_ +#define _D2D1_2HELPER_H_ + +#if NTDDI_VERSION >= NTDDI_WINBLUE + +#ifndef _D2D1_2_H_ +#include +#endif // #ifndef _D2D1_2_H_ + +#ifndef D2D_USE_C_DEFINITIONS + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +namespace D2D1 +{ + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + FLOAT + ComputeFlatteningTolerance( + _In_ CONST D2D1_MATRIX_3X2_F &matrix, + FLOAT dpiX = 96.0f, + FLOAT dpiY = 96.0f, + FLOAT maxZoomFactor = 1.0f + ) + { + D2D1_MATRIX_3X2_F dpiDependentTransform = + matrix * D2D1::Matrix3x2F::Scale(dpiX / 96.0f, dpiY / 96.0f); + + FLOAT absMaxZoomFactor = (maxZoomFactor > 0) ? maxZoomFactor : -maxZoomFactor; + + return D2D1_DEFAULT_FLATTENING_TOLERANCE / + (absMaxZoomFactor * D2D1ComputeMaximumScaleFactor(&dpiDependentTransform)); + } + +} // namespace D2D1 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // #ifndef D2D_USE_C_DEFINITIONS + +#endif // #if NTDDI_VERSION >= NTDDI_WINBLUE + +#endif // #ifndef _D2D1_HELPER_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_3.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_3.h new file mode 100644 index 0000000000000000000000000000000000000000..4ac84c8883aeedb2f2efd0d4ff82781cde0e7be9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_3.h @@ -0,0 +1,1965 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2D1_3.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2D1_3_H_ +#define _D2D1_3_H_ + +#ifndef _D2D1_2_H_ +#include +#endif // #ifndef _D2D1_2_H_ +#ifndef _D2D1_EFFECTS_2_ +#include +#endif // #ifndef _D2D1_EFFECTS_2_ +#ifndef _D2D1_SVG_ +#include +#endif // #ifndef _D2D1_SVG_ + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef interface IWICBitmapFrameDecode IWICBitmapFrameDecode; +typedef interface IDWriteFontFace IDWriteFontFace; + +/// +/// Specifies the appearance of the ink nib (pen tip) as part of an +/// D2D1_INK_STYLE_PROPERTIES structure. +/// +typedef enum D2D1_INK_NIB_SHAPE +{ + D2D1_INK_NIB_SHAPE_ROUND = 0, + D2D1_INK_NIB_SHAPE_SQUARE = 1, + D2D1_INK_NIB_SHAPE_FORCE_DWORD = 0xffffffff + +} D2D1_INK_NIB_SHAPE; + + +/// +/// Specifies the orientation of an image. +/// +typedef enum D2D1_ORIENTATION +{ + D2D1_ORIENTATION_DEFAULT = 1, + D2D1_ORIENTATION_FLIP_HORIZONTAL = 2, + D2D1_ORIENTATION_ROTATE_CLOCKWISE180 = 3, + D2D1_ORIENTATION_ROTATE_CLOCKWISE180_FLIP_HORIZONTAL = 4, + D2D1_ORIENTATION_ROTATE_CLOCKWISE90_FLIP_HORIZONTAL = 5, + D2D1_ORIENTATION_ROTATE_CLOCKWISE270 = 6, + D2D1_ORIENTATION_ROTATE_CLOCKWISE270_FLIP_HORIZONTAL = 7, + D2D1_ORIENTATION_ROTATE_CLOCKWISE90 = 8, + D2D1_ORIENTATION_FORCE_DWORD = 0xffffffff + +} D2D1_ORIENTATION; + + +/// +/// Option flags controlling how images sources are loaded during +/// CreateImageSourceFromWic. +/// +typedef enum D2D1_IMAGE_SOURCE_LOADING_OPTIONS +{ + D2D1_IMAGE_SOURCE_LOADING_OPTIONS_NONE = 0, + D2D1_IMAGE_SOURCE_LOADING_OPTIONS_RELEASE_SOURCE = 1, + D2D1_IMAGE_SOURCE_LOADING_OPTIONS_CACHE_ON_DEMAND = 2, + D2D1_IMAGE_SOURCE_LOADING_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_IMAGE_SOURCE_LOADING_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_IMAGE_SOURCE_LOADING_OPTIONS); + + +/// +/// Option flags controlling primary conversion performed by +/// CreateImageSourceFromDxgi, if any. +/// +typedef enum D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS +{ + D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS_NONE = 0, + D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS_LOW_QUALITY_PRIMARY_CONVERSION = 1, + D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS); + + +/// +/// Option flags for transformed image sources. +/// +typedef enum D2D1_TRANSFORMED_IMAGE_SOURCE_OPTIONS +{ + D2D1_TRANSFORMED_IMAGE_SOURCE_OPTIONS_NONE = 0, + + /// + /// Prevents the image source from being automatically scaled (by a ratio of the + /// context DPI divided by 96) while drawn. + /// + D2D1_TRANSFORMED_IMAGE_SOURCE_OPTIONS_DISABLE_DPI_SCALE = 1, + D2D1_TRANSFORMED_IMAGE_SOURCE_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_TRANSFORMED_IMAGE_SOURCE_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_TRANSFORMED_IMAGE_SOURCE_OPTIONS); + + +/// +/// Properties of a transformed image source. +/// +typedef struct D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES +{ + + /// + /// The orientation at which the image source is drawn. + /// + D2D1_ORIENTATION orientation; + + /// + /// The horizontal scale factor at which the image source is drawn. + /// + FLOAT scaleX; + + /// + /// The vertical scale factor at which the image source is drawn. + /// + FLOAT scaleY; + + /// + /// The interpolation mode used when the image source is drawn. This is ignored if + /// the image source is drawn using the DrawImage method, or using an image brush. + /// + D2D1_INTERPOLATION_MODE interpolationMode; + + /// + /// Option flags. + /// + D2D1_TRANSFORMED_IMAGE_SOURCE_OPTIONS options; + +} D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES; + + +/// +/// Represents a point, radius pair that makes up part of a D2D1_INK_BEZIER_SEGMENT. +/// +typedef struct D2D1_INK_POINT +{ + FLOAT x; + FLOAT y; + FLOAT radius; + +} D2D1_INK_POINT; + + +/// +/// Represents a Bezier segment to be used in the creation of an ID2D1Ink object. +/// This structure differs from D2D1_BEZIER_SEGMENT in that it is composed of +/// D2D1_INK_POINT s, which contain a radius in addition to x- and y-coordinates. +/// +typedef struct D2D1_INK_BEZIER_SEGMENT +{ + D2D1_INK_POINT point1; + D2D1_INK_POINT point2; + D2D1_INK_POINT point3; + +} D2D1_INK_BEZIER_SEGMENT; + + +/// +/// Defines the general pen tip shape and the transform used in an ID2D1InkStyle +/// object. +/// +typedef struct D2D1_INK_STYLE_PROPERTIES +{ + + /// + /// The general shape of the nib used to draw a given ink object. + /// + D2D1_INK_NIB_SHAPE nibShape; + + /// + /// The transform applied to shape of the nib. _31 and _32 are ignored. + /// + D2D1_MATRIX_3X2_F nibTransform; + +} D2D1_INK_STYLE_PROPERTIES; + + +/// +/// Specifies how to render gradient mesh edges. +/// +typedef enum D2D1_PATCH_EDGE_MODE +{ + + /// + /// Render this edge aliased. + /// + D2D1_PATCH_EDGE_MODE_ALIASED = 0, + + /// + /// Render this edge antialiased. + /// + D2D1_PATCH_EDGE_MODE_ANTIALIASED = 1, + + /// + /// Render this edge aliased and inflated out slightly. + /// + D2D1_PATCH_EDGE_MODE_ALIASED_INFLATED = 2, + D2D1_PATCH_EDGE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_PATCH_EDGE_MODE; + + +/// +/// Represents a tensor patch with 16 control points, 4 corner colors, and boundary +/// flags. An ID2D1GradientMesh is made up of 1 or more gradient mesh patches. Use +/// the GradientMeshPatch function or the GradientMeshPatchFromCoonsPatch function +/// to create one. +/// +typedef struct D2D1_GRADIENT_MESH_PATCH +{ + + /// + /// The gradient mesh patch control point at position 00. + /// + D2D1_POINT_2F point00; + + /// + /// The gradient mesh patch control point at position 01. + /// + D2D1_POINT_2F point01; + + /// + /// The gradient mesh patch control point at position 02. + /// + D2D1_POINT_2F point02; + + /// + /// The gradient mesh patch control point at position 03. + /// + D2D1_POINT_2F point03; + + /// + /// The gradient mesh patch control point at position 10. + /// + D2D1_POINT_2F point10; + + /// + /// The gradient mesh patch control point at position 11. + /// + D2D1_POINT_2F point11; + + /// + /// The gradient mesh patch control point at position 12. + /// + D2D1_POINT_2F point12; + + /// + /// The gradient mesh patch control point at position 13. + /// + D2D1_POINT_2F point13; + + /// + /// The gradient mesh patch control point at position 20. + /// + D2D1_POINT_2F point20; + + /// + /// The gradient mesh patch control point at position 21. + /// + D2D1_POINT_2F point21; + + /// + /// The gradient mesh patch control point at position 22. + /// + D2D1_POINT_2F point22; + + /// + /// The gradient mesh patch control point at position 23. + /// + D2D1_POINT_2F point23; + + /// + /// The gradient mesh patch control point at position 30. + /// + D2D1_POINT_2F point30; + + /// + /// The gradient mesh patch control point at position 31. + /// + D2D1_POINT_2F point31; + + /// + /// The gradient mesh patch control point at position 32. + /// + D2D1_POINT_2F point32; + + /// + /// The gradient mesh patch control point at position 33. + /// + D2D1_POINT_2F point33; + + /// + /// The color associated with control point at position 00. + /// + D2D1_COLOR_F color00; + + /// + /// The color associated with control point at position 03. + /// + D2D1_COLOR_F color03; + + /// + /// The color associated with control point at position 30. + /// + D2D1_COLOR_F color30; + + /// + /// The color associated with control point at position 33. + /// + D2D1_COLOR_F color33; + + /// + /// The edge mode for the top edge of the patch. + /// + D2D1_PATCH_EDGE_MODE topEdgeMode; + + /// + /// The edge mode for the left edge of the patch. + /// + D2D1_PATCH_EDGE_MODE leftEdgeMode; + + /// + /// The edge mode for the bottom edge of the patch. + /// + D2D1_PATCH_EDGE_MODE bottomEdgeMode; + + /// + /// The edge mode for the right edge of the patch. + /// + D2D1_PATCH_EDGE_MODE rightEdgeMode; + +} D2D1_GRADIENT_MESH_PATCH; + +typedef enum D2D1_SPRITE_OPTIONS +{ + + /// + /// Use default sprite rendering behavior. + /// + D2D1_SPRITE_OPTIONS_NONE = 0, + + /// + /// Bitmap interpolation will be clamped to the sprite's source rectangle. + /// + D2D1_SPRITE_OPTIONS_CLAMP_TO_SOURCE_RECTANGLE = 1, + D2D1_SPRITE_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_SPRITE_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_SPRITE_OPTIONS); + + +/// +/// Specifies the pixel snapping policy when rendering color bitmap glyphs. +/// +typedef enum D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION +{ + + /// + /// Color bitmap glyph positions are snapped to the nearest pixel if the bitmap + /// resolution matches that of the device context. + /// + D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION_DEFAULT = 0, + + /// + /// Color bitmap glyph positions are not snapped. + /// + D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION_DISABLE = 1, + D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION_FORCE_DWORD = 0xffffffff + +} D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION; + + +/// +/// This determines what gamma is used for interpolation/blending. +/// +typedef enum D2D1_GAMMA1 +{ + + /// + /// Colors are manipulated in 2.2 gamma color space. + /// + D2D1_GAMMA1_G22 = D2D1_GAMMA_2_2, + + /// + /// Colors are manipulated in 1.0 gamma color space. + /// + D2D1_GAMMA1_G10 = D2D1_GAMMA_1_0, + + /// + /// Colors are manipulated in ST.2084 PQ gamma color space. + /// + D2D1_GAMMA1_G2084 = 2, + D2D1_GAMMA1_FORCE_DWORD = 0xffffffff + +} D2D1_GAMMA1; + + +/// +/// Simple description of a color space. +/// +typedef struct D2D1_SIMPLE_COLOR_PROFILE +{ + + /// + /// The XY coordinates of the red primary in CIEXYZ space. + /// + D2D1_POINT_2F redPrimary; + + /// + /// The XY coordinates of the green primary in CIEXYZ space. + /// + D2D1_POINT_2F greenPrimary; + + /// + /// The XY coordinates of the blue primary in CIEXYZ space. + /// + D2D1_POINT_2F bluePrimary; + + /// + /// The X/Z tristimulus values for the whitepoint, normalized for relative + /// luminance. + /// + D2D1_POINT_2F whitePointXZ; + + /// + /// The gamma encoding to use for this color space. + /// + D2D1_GAMMA1 gamma; + +} D2D1_SIMPLE_COLOR_PROFILE; + + +/// +/// Specifies which way a color profile is defined. +/// +typedef enum D2D1_COLOR_CONTEXT_TYPE +{ + D2D1_COLOR_CONTEXT_TYPE_ICC = 0, + D2D1_COLOR_CONTEXT_TYPE_SIMPLE = 1, + D2D1_COLOR_CONTEXT_TYPE_DXGI = 2, + D2D1_COLOR_CONTEXT_TYPE_FORCE_DWORD = 0xffffffff + +} D2D1_COLOR_CONTEXT_TYPE; + + +EXTERN_C CONST IID IID_ID2D1InkStyle; +EXTERN_C CONST IID IID_ID2D1Ink; +EXTERN_C CONST IID IID_ID2D1GradientMesh; +EXTERN_C CONST IID IID_ID2D1ImageSource; +EXTERN_C CONST IID IID_ID2D1ImageSourceFromWic; +EXTERN_C CONST IID IID_ID2D1TransformedImageSource; +EXTERN_C CONST IID IID_ID2D1LookupTable3D; +EXTERN_C CONST IID IID_ID2D1DeviceContext2; +EXTERN_C CONST IID IID_ID2D1Device2; +EXTERN_C CONST IID IID_ID2D1Factory3; +EXTERN_C CONST IID IID_ID2D1CommandSink2; +EXTERN_C CONST IID IID_ID2D1GdiMetafile1; +EXTERN_C CONST IID IID_ID2D1GdiMetafileSink1; +EXTERN_C CONST IID IID_ID2D1SpriteBatch; +EXTERN_C CONST IID IID_ID2D1DeviceContext3; +EXTERN_C CONST IID IID_ID2D1Device3; +EXTERN_C CONST IID IID_ID2D1Factory4; +EXTERN_C CONST IID IID_ID2D1CommandSink3; +EXTERN_C CONST IID IID_ID2D1SvgGlyphStyle; +EXTERN_C CONST IID IID_ID2D1DeviceContext4; +EXTERN_C CONST IID IID_ID2D1Device4; +EXTERN_C CONST IID IID_ID2D1Factory5; +EXTERN_C CONST IID IID_ID2D1CommandSink4; +EXTERN_C CONST IID IID_ID2D1ColorContext1; +EXTERN_C CONST IID IID_ID2D1DeviceContext5; +EXTERN_C CONST IID IID_ID2D1Device5; +EXTERN_C CONST IID IID_ID2D1Factory6; +EXTERN_C CONST IID IID_ID2D1CommandSink5; +EXTERN_C CONST IID IID_ID2D1DeviceContext6; +EXTERN_C CONST IID IID_ID2D1Device6; +EXTERN_C CONST IID IID_ID2D1Factory7; +EXTERN_C CONST IID IID_ID2D1DeviceContext7; +EXTERN_C CONST IID IID_ID2D1Device7; +EXTERN_C CONST IID IID_ID2D1Factory8; + + +#ifndef D2D_USE_C_DEFINITIONS + + +/// +/// Represents a collection of style properties to be used by methods like +/// ID2D1DeviceContext2::DrawInk when rendering ink. The ink style defines the nib +/// (pen tip) shape and transform. +/// +interface DX_DECLARE_INTERFACE("bae8b344-23fc-4071-8cb5-d05d6f073848") ID2D1InkStyle : public ID2D1Resource +{ + + STDMETHOD_(void, SetNibTransform)( + _In_ CONST D2D1_MATRIX_3X2_F *transform + ) PURE; + + STDMETHOD_(void, GetNibTransform)( + _Out_ D2D1_MATRIX_3X2_F *transform + ) CONST PURE; + + STDMETHOD_(void, SetNibShape)( + D2D1_INK_NIB_SHAPE nibShape + ) PURE; + + STDMETHOD_(D2D1_INK_NIB_SHAPE, GetNibShape)( + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + void + SetNibTransform( + CONST D2D1_MATRIX_3X2_F &transform + ) + { + SetNibTransform(&transform); + } +}; // interface ID2D1InkStyle + + +/// +/// Represents a single continuous stroke of variable-width ink, as defined by a +/// series of Bezier segments and widths. +/// +interface DX_DECLARE_INTERFACE("b499923b-7029-478f-a8b3-432c7c5f5312") ID2D1Ink : public ID2D1Resource +{ + + /// + /// Resets the ink start point. + /// + STDMETHOD_(void, SetStartPoint)( + _In_ CONST D2D1_INK_POINT *startPoint + ) PURE; + + /// + /// Retrieve the start point with which the ink was initialized. + /// + STDMETHOD_(D2D1_INK_POINT, GetStartPoint)( + ) CONST PURE; + + /// + /// Add one or more segments to the end of the ink. + /// + STDMETHOD(AddSegments)( + _In_reads_(segmentsCount) CONST D2D1_INK_BEZIER_SEGMENT *segments, + UINT32 segmentsCount + ) PURE; + + /// + /// Remove one or more segments from the end of the ink. + /// + STDMETHOD(RemoveSegmentsAtEnd)( + UINT32 segmentsCount + ) PURE; + + /// + /// Updates the specified segments with new control points. + /// + STDMETHOD(SetSegments)( + UINT32 startSegment, + _In_reads_(segmentsCount) CONST D2D1_INK_BEZIER_SEGMENT *segments, + UINT32 segmentsCount + ) PURE; + + /// + /// Update the last segment with new control points. + /// + STDMETHOD(SetSegmentAtEnd)( + _In_ CONST D2D1_INK_BEZIER_SEGMENT *segment + ) PURE; + + /// + /// Returns the number of segments the ink is composed of. + /// + STDMETHOD_(UINT32, GetSegmentCount)( + ) CONST PURE; + + /// + /// Retrieve the segments stored in the ink. + /// + STDMETHOD(GetSegments)( + UINT32 startSegment, + _Out_writes_(segmentsCount) D2D1_INK_BEZIER_SEGMENT *segments, + UINT32 segmentsCount + ) CONST PURE; + + /// + /// Construct a geometric representation of the ink. + /// + STDMETHOD(StreamAsGeometry)( + _In_opt_ ID2D1InkStyle *inkStyle, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT flatteningTolerance, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST PURE; + + /// + /// Retrieve the bounds of the ink, with an optional applied transform. + /// + STDMETHOD(GetBounds)( + _In_opt_ ID2D1InkStyle *inkStyle, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _Out_ D2D1_RECT_F *bounds + ) CONST PURE; + + /// + /// Resets the ink start point. + /// + COM_DECLSPEC_NOTHROW + void + SetStartPoint( + CONST D2D1_INK_POINT &startPoint + ) + { + SetStartPoint(&startPoint); + } + + COM_DECLSPEC_NOTHROW + HRESULT + SetSegmentAtEnd( + CONST D2D1_INK_BEZIER_SEGMENT &segment + ) + { + return SetSegmentAtEnd(&segment); + } + + /// + /// Construct a geometric representation of the ink. + /// + COM_DECLSPEC_NOTHROW + HRESULT + StreamAsGeometry( + _In_opt_ ID2D1InkStyle *inkStyle, + CONST D2D1_MATRIX_3X2_F &worldTransform, + FLOAT flatteningTolerance, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return StreamAsGeometry(inkStyle,&worldTransform, flatteningTolerance, geometrySink); + } + + /// + /// Construct a geometric representation of the ink. + /// + COM_DECLSPEC_NOTHROW + HRESULT + StreamAsGeometry( + _In_opt_ ID2D1InkStyle *inkStyle, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return StreamAsGeometry(inkStyle,worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, geometrySink); + } + + /// + /// Construct a geometric representation of the ink. + /// + COM_DECLSPEC_NOTHROW + HRESULT + StreamAsGeometry( + _In_opt_ ID2D1InkStyle *inkStyle, + CONST D2D1_MATRIX_3X2_F &worldTransform, + _In_ ID2D1SimplifiedGeometrySink *geometrySink + ) CONST + { + return StreamAsGeometry(inkStyle,&worldTransform, D2D1_DEFAULT_FLATTENING_TOLERANCE, geometrySink); + } +}; // interface ID2D1Ink + + +/// +/// Represents a device-dependent representation of a gradient mesh composed of +/// patches. Use the ID2D1DeviceContext2::CreateGradientMesh method to create an +/// instance of ID2D1GradientMesh. +/// +interface DX_DECLARE_INTERFACE("f292e401-c050-4cde-83d7-04962d3b23c2") ID2D1GradientMesh : public ID2D1Resource +{ + + /// + /// Returns the number of patches of the gradient mesh. + /// + STDMETHOD_(UINT32, GetPatchCount)( + ) CONST PURE; + + /// + /// Retrieve the patch data stored in the gradient mesh. + /// + STDMETHOD(GetPatches)( + UINT32 startIndex, + _Out_writes_(patchesCount) D2D1_GRADIENT_MESH_PATCH *patches, + UINT32 patchesCount + ) CONST PURE; +}; // interface ID2D1GradientMesh + + +/// +/// Represents a producer of pixels that can fill an arbitrary 2D plane. +/// +interface DX_DECLARE_INTERFACE("c9b664e5-74a1-4378-9ac2-eefc37a3f4d8") ID2D1ImageSource : public ID2D1Image +{ + + STDMETHOD(OfferResources)( + ) PURE; + + STDMETHOD(TryReclaimResources)( + _Out_ BOOL *resourcesDiscarded + ) PURE; +}; // interface ID2D1ImageSource + + +/// +/// Produces 2D pixel data that has been sourced from WIC. +/// +interface DX_DECLARE_INTERFACE("77395441-1c8f-4555-8683-f50dab0fe792") ID2D1ImageSourceFromWic : public ID2D1ImageSource +{ + + STDMETHOD(EnsureCached)( + _In_opt_ CONST D2D1_RECT_U *rectangleToFill + ) PURE; + + STDMETHOD(TrimCache)( + _In_opt_ CONST D2D1_RECT_U *rectangleToPreserve + ) PURE; + + STDMETHOD_(void, GetSource)( + _Outptr_result_maybenull_ IWICBitmapSource **wicBitmapSource + ) CONST PURE; + + COM_DECLSPEC_NOTHROW + HRESULT + EnsureCached( + CONST D2D1_RECT_U &rectangleToFill + ) + { + return EnsureCached(&rectangleToFill); + } + + COM_DECLSPEC_NOTHROW + HRESULT + TrimCache( + CONST D2D1_RECT_U &rectangleToPreserve + ) + { + return TrimCache(&rectangleToPreserve); + } +}; // interface ID2D1ImageSourceFromWic + + +/// +/// Represents an image source which shares resources with an original image source. +/// +interface DX_DECLARE_INTERFACE("7f1f79e5-2796-416c-8f55-700f911445e5") ID2D1TransformedImageSource : public ID2D1Image +{ + + STDMETHOD_(void, GetSource)( + _Outptr_result_maybenull_ ID2D1ImageSource **imageSource + ) CONST PURE; + + STDMETHOD_(void, GetProperties)( + _Out_ D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES *properties + ) CONST PURE; +}; // interface ID2D1TransformedImageSource + + +/// +/// A container for 3D lookup table data that can be passed to the LookupTable3D +/// effect. +/// +interface DX_DECLARE_INTERFACE("53dd9855-a3b0-4d5b-82e1-26e25c5e5797") ID2D1LookupTable3D : public ID2D1Resource +{ +}; // interface ID2D1LookupTable3D + + +/// +/// This interface performs all the same functions as the ID2D1DeviceContext1 +/// interface, plus it enables functionality such as ink rendering, gradient mesh +/// rendering, and improved image loading. +/// +interface DX_DECLARE_INTERFACE("394ea6a3-0c34-4321-950b-6ca20f0be6c7") ID2D1DeviceContext2 : public ID2D1DeviceContext1 +{ + + STDMETHOD(CreateInk)( + _In_ CONST D2D1_INK_POINT *startPoint, + _COM_Outptr_ ID2D1Ink **ink + ) PURE; + + /// + /// Creates a new ink style. + /// + STDMETHOD(CreateInkStyle)( + _In_opt_ CONST D2D1_INK_STYLE_PROPERTIES *inkStyleProperties, + _COM_Outptr_ ID2D1InkStyle **inkStyle + ) PURE; + + STDMETHOD(CreateGradientMesh)( + _In_reads_(patchesCount) CONST D2D1_GRADIENT_MESH_PATCH *patches, + UINT32 patchesCount, + _COM_Outptr_ ID2D1GradientMesh **gradientMesh + ) PURE; + + STDMETHOD(CreateImageSourceFromWic)( + _In_ IWICBitmapSource *wicBitmapSource, + D2D1_IMAGE_SOURCE_LOADING_OPTIONS loadingOptions, + D2D1_ALPHA_MODE alphaMode, + _COM_Outptr_ ID2D1ImageSourceFromWic **imageSource + ) PURE; + + /// + /// Creates a 3D lookup table for mapping a 3-channel input to a 3-channel output. + /// The table data must be provided in 4-channel format. + /// + STDMETHOD(CreateLookupTable3D)( + D2D1_BUFFER_PRECISION precision, + _In_reads_(3) CONST UINT32 *extents, + _In_reads_(dataCount) CONST BYTE *data, + UINT32 dataCount, + _In_reads_(2) CONST UINT32 *strides, + _COM_Outptr_ ID2D1LookupTable3D **lookupTable + ) PURE; + + STDMETHOD(CreateImageSourceFromDxgi)( + _In_reads_(surfaceCount) IDXGISurface **surfaces, + UINT32 surfaceCount, + DXGI_COLOR_SPACE_TYPE colorSpace, + D2D1_IMAGE_SOURCE_FROM_DXGI_OPTIONS options, + _COM_Outptr_ ID2D1ImageSource **imageSource + ) PURE; + + /// + /// Retrieves the world-space bounds in DIPs of the gradient mesh using the device + /// context DPI. + /// + STDMETHOD(GetGradientMeshWorldBounds)( + _In_ ID2D1GradientMesh *gradientMesh, + _Out_ D2D1_RECT_F *pBounds + ) CONST PURE; + + STDMETHOD_(void, DrawInk)( + _In_ ID2D1Ink *ink, + _In_ ID2D1Brush *brush, + _In_opt_ ID2D1InkStyle *inkStyle + ) PURE; + + STDMETHOD_(void, DrawGradientMesh)( + _In_ ID2D1GradientMesh *gradientMesh + ) PURE; + + /// + /// Draw a metafile to the device context. + /// + STDMETHOD_(void, DrawGdiMetafile)( + _In_ ID2D1GdiMetafile *gdiMetafile, + _In_opt_ CONST D2D1_RECT_F *destinationRectangle, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle = NULL + ) PURE; + + using ID2D1DeviceContext::DrawGdiMetafile; + + /// + /// Creates an image source which shares resources with an original. + /// + STDMETHOD(CreateTransformedImageSource)( + _In_ ID2D1ImageSource *imageSource, + _In_ CONST D2D1_TRANSFORMED_IMAGE_SOURCE_PROPERTIES *properties, + _COM_Outptr_ ID2D1TransformedImageSource **transformedImageSource + ) PURE; + + COM_DECLSPEC_NOTHROW + HRESULT + CreateInk( + CONST D2D1_INK_POINT &startPoint, + _COM_Outptr_ ID2D1Ink **ink + ) + { + return CreateInk(&startPoint, ink); + } + + /// + /// Creates a new ink style. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CreateInkStyle( + CONST D2D1_INK_STYLE_PROPERTIES &inkStyleProperties, + _COM_Outptr_ ID2D1InkStyle **inkStyle + ) + { + return CreateInkStyle(&inkStyleProperties, inkStyle); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateImageSourceFromWic( + _In_ IWICBitmapSource *wicBitmapSource, + D2D1_IMAGE_SOURCE_LOADING_OPTIONS loadingOptions, + _COM_Outptr_ ID2D1ImageSourceFromWic **imageSource + ) + { + return CreateImageSourceFromWic(wicBitmapSource, loadingOptions, D2D1_ALPHA_MODE_UNKNOWN, imageSource); + } + + COM_DECLSPEC_NOTHROW + HRESULT + CreateImageSourceFromWic( + _In_ IWICBitmapSource *wicBitmapSource, + _COM_Outptr_ ID2D1ImageSourceFromWic **imageSource + ) + { + return CreateImageSourceFromWic(wicBitmapSource, D2D1_IMAGE_SOURCE_LOADING_OPTIONS_NONE, D2D1_ALPHA_MODE_UNKNOWN, imageSource); + } + + /// + /// Draw a metafile to the device context. + /// + COM_DECLSPEC_NOTHROW + void + DrawGdiMetafile( + _In_ ID2D1GdiMetafile *gdiMetafile, + CONST D2D1_RECT_F &destinationRectangle, + CONST D2D1_RECT_F &sourceRectangle + ) + { + return DrawGdiMetafile(gdiMetafile, &destinationRectangle, &sourceRectangle); + } + + /// + /// Draw a metafile to the device context. + /// + COM_DECLSPEC_NOTHROW + void + DrawGdiMetafile( + _In_ ID2D1GdiMetafile *gdiMetafile, + CONST D2D1_RECT_F &destinationRectangle, + _In_ CONST D2D1_RECT_F *sourceRectangle = NULL + ) + { + return DrawGdiMetafile(gdiMetafile, &destinationRectangle, sourceRectangle); + } +}; // interface ID2D1DeviceContext2 + + +/// +/// Represents a resource domain whose objects and device contexts can be used +/// together. This interface performs all the same functions as the existing +/// ID2D1Device1 interface. It also enables the creation of ID2D1DeviceContext2 +/// objects. +/// +interface DX_DECLARE_INTERFACE("a44472e1-8dfb-4e60-8492-6e2861c9ca8b") ID2D1Device2 : public ID2D1Device1 +{ + + /// + /// Creates a new device context with no initially assigned target. + /// + STDMETHOD(CreateDeviceContext)( + D2D1_DEVICE_CONTEXT_OPTIONS options, + _COM_Outptr_ ID2D1DeviceContext2 **deviceContext2 + ) PURE; + + using ID2D1Device1::CreateDeviceContext; + + using ID2D1Device::CreateDeviceContext; + + /// + /// Flush all device contexts that reference a given bitmap. + /// + STDMETHOD_(void, FlushDeviceContexts)( + _In_ ID2D1Bitmap *bitmap + ) PURE; + + /// + /// Returns the DXGI device associated with this D2D device. + /// + STDMETHOD(GetDxgiDevice)( + _COM_Outptr_ IDXGIDevice **dxgiDevice + ) PURE; +}; // interface ID2D1Device2 + + +/// +/// Creates Direct2D resources. This interface also enables the creation of +/// ID2D1Device2 objects. +/// +interface DX_DECLARE_INTERFACE("0869759f-4f00-413f-b03e-2bda45404d0f") ID2D1Factory3 : public ID2D1Factory2 +{ + + /// + /// This creates a new Direct2D device from the given IDXGIDevice. + /// + STDMETHOD(CreateDevice)( + _In_ IDXGIDevice *dxgiDevice, + _COM_Outptr_ ID2D1Device2 **d2dDevice2 + ) PURE; + + using ID2D1Factory2::CreateDevice; + + using ID2D1Factory1::CreateDevice; +}; // interface ID2D1Factory3 + + +/// +/// This interface performs all the same functions as the existing ID2D1CommandSink1 +/// interface. It also enables access to ink rendering and gradient mesh rendering. +/// +interface DX_DECLARE_INTERFACE("3bab440e-417e-47df-a2e2-bc0be6a00916") ID2D1CommandSink2 : public ID2D1CommandSink1 +{ + + STDMETHOD(DrawInk)( + _In_ ID2D1Ink *ink, + _In_ ID2D1Brush *brush, + _In_opt_ ID2D1InkStyle *inkStyle + ) PURE; + + STDMETHOD(DrawGradientMesh)( + _In_ ID2D1GradientMesh *gradientMesh + ) PURE; + + STDMETHOD(DrawGdiMetafile)( + _In_ ID2D1GdiMetafile *gdiMetafile, + _In_opt_ CONST D2D1_RECT_F *destinationRectangle, + _In_opt_ CONST D2D1_RECT_F *sourceRectangle + ) PURE; + + using ID2D1CommandSink::DrawGdiMetafile; +}; // interface ID2D1CommandSink2 + + +/// +/// Interface encapsulating a GDI/GDI+ metafile. +/// +interface DX_DECLARE_INTERFACE("2e69f9e8-dd3f-4bf9-95ba-c04f49d788df") ID2D1GdiMetafile1 : public ID2D1GdiMetafile +{ + + /// + /// Returns the DPI reported by the metafile. + /// + STDMETHOD(GetDpi)( + _Out_ FLOAT *dpiX, + _Out_ FLOAT *dpiY + ) PURE; + + /// + /// Gets the bounds (in DIPs) of the metafile (as specified by the frame rect + /// declared in the metafile). + /// + STDMETHOD(GetSourceBounds)( + _Out_ D2D1_RECT_F *bounds + ) PURE; +}; // interface ID2D1GdiMetafile1 + + +/// +/// User-implementable interface for introspecting on a metafile. +/// +interface DX_DECLARE_INTERFACE("fd0ecb6b-91e6-411e-8655-395e760f91b4") ID2D1GdiMetafileSink1 : public ID2D1GdiMetafileSink +{ + + /// + /// Callback for examining a metafile record. + /// + STDMETHOD(ProcessRecord)( + DWORD recordType, + _In_opt_ CONST void *recordData, + DWORD recordDataSize, + UINT32 flags + ) PURE; + + using ID2D1GdiMetafileSink::ProcessRecord; +}; // interface ID2D1GdiMetafileSink1 + + +#if NTDDI_VERSION >= NTDDI_WIN10_TH2 + +interface DX_DECLARE_INTERFACE("4dc583bf-3a10-438a-8722-e9765224f1f1") ID2D1SpriteBatch : public ID2D1Resource +{ + + /// + /// Adds sprites to the end of the sprite batch. + /// + STDMETHOD(AddSprites)( + UINT32 spriteCount, + _In_reads_bytes_(sizeof(D2D1_RECT_F) + (spriteCount - 1) * destinationRectanglesStride) CONST D2D1_RECT_F *destinationRectangles, + _In_reads_bytes_opt_(sizeof(D2D1_RECT_U) + (spriteCount - 1) * sourceRectanglesStride) CONST D2D1_RECT_U *sourceRectangles = NULL, + _In_reads_bytes_opt_(sizeof(D2D1_COLOR_F) + (spriteCount - 1) * colorsStride) CONST D2D1_COLOR_F *colors = NULL, + _In_reads_bytes_opt_(sizeof(D2D1_MATRIX_3X2_F) + (spriteCount - 1) * transformsStride) CONST D2D1_MATRIX_3X2_F *transforms = NULL, + UINT32 destinationRectanglesStride = sizeof(D2D1_RECT_F), + UINT32 sourceRectanglesStride = sizeof(D2D1_RECT_U), + UINT32 colorsStride = sizeof(D2D1_COLOR_F), + UINT32 transformsStride = sizeof(D2D1_MATRIX_3X2_F) + ) PURE; + + /// + /// Set properties for existing sprites. All properties not specified are + /// unmodified. + /// + STDMETHOD(SetSprites)( + UINT32 startIndex, + UINT32 spriteCount, + _In_reads_bytes_opt_(sizeof(D2D1_RECT_F) + (spriteCount - 1) * destinationRectanglesStride) CONST D2D1_RECT_F *destinationRectangles = NULL, + _In_reads_bytes_opt_(sizeof(D2D1_RECT_U) + (spriteCount - 1) * sourceRectanglesStride) CONST D2D1_RECT_U *sourceRectangles = NULL, + _In_reads_bytes_opt_(sizeof(D2D1_COLOR_F) + (spriteCount - 1) * colorsStride) CONST D2D1_COLOR_F *colors = NULL, + _In_reads_bytes_opt_(sizeof(D2D1_MATRIX_3X2_F) + (spriteCount - 1) * transformsStride) CONST D2D1_MATRIX_3X2_F *transforms = NULL, + UINT32 destinationRectanglesStride = sizeof(D2D1_RECT_F), + UINT32 sourceRectanglesStride = sizeof(D2D1_RECT_U), + UINT32 colorsStride = sizeof(D2D1_COLOR_F), + UINT32 transformsStride = sizeof(D2D1_MATRIX_3X2_F) + ) PURE; + + /// + /// Retrieves sprite properties. + /// + STDMETHOD(GetSprites)( + UINT32 startIndex, + UINT32 spriteCount, + _Out_writes_opt_(spriteCount) D2D1_RECT_F *destinationRectangles = NULL, + _Out_writes_opt_(spriteCount) D2D1_RECT_U *sourceRectangles = NULL, + _Out_writes_opt_(spriteCount) D2D1_COLOR_F *colors = NULL, + _Out_writes_opt_(spriteCount) D2D1_MATRIX_3X2_F *transforms = NULL + ) CONST PURE; + + /// + /// Retrieves the number of sprites in the sprite batch. + /// + STDMETHOD_(UINT32, GetSpriteCount)( + ) CONST PURE; + + /// + /// Removes all sprites from the sprite batch. + /// + STDMETHOD_(void, Clear)( + ) PURE; +}; // interface ID2D1SpriteBatch + + +interface DX_DECLARE_INTERFACE("235a7496-8351-414c-bcd4-6672ab2d8e00") ID2D1DeviceContext3 : public ID2D1DeviceContext2 +{ + + /// + /// Creates a new sprite batch. + /// + STDMETHOD(CreateSpriteBatch)( + _COM_Outptr_ ID2D1SpriteBatch **spriteBatch + ) PURE; + + /// + /// Draws sprites in a sprite batch. + /// + STDMETHOD_(void, DrawSpriteBatch)( + _In_ ID2D1SpriteBatch *spriteBatch, + UINT32 startIndex, + UINT32 spriteCount, + _In_ ID2D1Bitmap *bitmap, + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode = D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, + D2D1_SPRITE_OPTIONS spriteOptions = D2D1_SPRITE_OPTIONS_NONE + ) PURE; + + /// + /// Draws all sprites in a sprite batch. + /// + COM_DECLSPEC_NOTHROW + void + DrawSpriteBatch( + _In_ ID2D1SpriteBatch *spriteBatch, + _In_ ID2D1Bitmap *bitmap, + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode = D2D1_BITMAP_INTERPOLATION_MODE_LINEAR, + D2D1_SPRITE_OPTIONS spriteOptions = D2D1_SPRITE_OPTIONS_NONE + ) + { + return DrawSpriteBatch(spriteBatch, 0, spriteBatch->GetSpriteCount(), bitmap, interpolationMode, spriteOptions); + } +}; // interface ID2D1DeviceContext3 + + +interface DX_DECLARE_INTERFACE("852f2087-802c-4037-ab60-ff2e7ee6fc01") ID2D1Device3 : public ID2D1Device2 +{ + + /// + /// Creates a new device context with no initially assigned target. + /// + STDMETHOD(CreateDeviceContext)( + D2D1_DEVICE_CONTEXT_OPTIONS options, + _COM_Outptr_ ID2D1DeviceContext3 **deviceContext3 + ) PURE; + + using ID2D1Device2::CreateDeviceContext; + + using ID2D1Device1::CreateDeviceContext; + + using ID2D1Device::CreateDeviceContext; +}; // interface ID2D1Device3 + + +/// +/// Creates Direct2D resources. This interface also enables the creation of +/// ID2D1Device3 objects. +/// +interface DX_DECLARE_INTERFACE("bd4ec2d2-0662-4bee-ba8e-6f29f032e096") ID2D1Factory4 : public ID2D1Factory3 +{ + + /// + /// This creates a new Direct2D device from the given IDXGIDevice. + /// + STDMETHOD(CreateDevice)( + _In_ IDXGIDevice *dxgiDevice, + _COM_Outptr_ ID2D1Device3 **d2dDevice3 + ) PURE; + + using ID2D1Factory3::CreateDevice; + + using ID2D1Factory2::CreateDevice; + + using ID2D1Factory1::CreateDevice; +}; // interface ID2D1Factory4 + + +interface DX_DECLARE_INTERFACE("18079135-4cf3-4868-bc8e-06067e6d242d") ID2D1CommandSink3 : public ID2D1CommandSink2 +{ + + STDMETHOD(DrawSpriteBatch)( + _In_ ID2D1SpriteBatch *spriteBatch, + UINT32 startIndex, + UINT32 spriteCount, + _In_ ID2D1Bitmap *bitmap, + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode, + D2D1_SPRITE_OPTIONS spriteOptions + ) PURE; +}; // interface ID2D1CommandSink3 + + +#endif // #if NTDDI_VERSION >= NTDDI_WIN10_TH2 +#if NTDDI_VERSION >= NTDDI_WIN10_RS1 + +/// +/// This object supplies the values for context-fill, context-stroke, and +/// context-value that are used when rendering SVG glyphs. +/// +interface DX_DECLARE_INTERFACE("af671749-d241-4db8-8e41-dcc2e5c1a438") ID2D1SvgGlyphStyle : public ID2D1Resource +{ + + /// + /// Provides values to an SVG glyph for fill. The brush with opacity set to 1 is + /// used as the 'context-fill'. The opacity of the brush is used as the + /// 'context-fill-opacity' value. + /// + /// A null brush will cause the context-fill value to come from + /// the defaultFillBrush. If the defaultFillBrush is also null, the context-fill + /// value will be 'none'. + STDMETHOD(SetFill)( + _In_opt_ ID2D1Brush *brush + ) PURE; + + /// + /// Returns the requested fill parameters. + /// + STDMETHOD_(void, GetFill)( + _Outptr_result_maybenull_ ID2D1Brush **brush + ) PURE; + + /// + /// Provides values to an SVG glyph for stroke properties. The brush with opacity + /// set to 1 is used as the 'context-stroke'. The opacity of the brush is used as + /// the 'context-stroke-opacity' value. + /// + /// A null brush will cause the context-stroke value to be + /// 'none'. + /// Specifies the 'context-value' for the 'stroke-width' + /// property. + /// Specifies the 'context-value' for the 'stroke-dasharray' + /// property. A null value will cause the stroke-dasharray to be set to 'none'. + /// + /// Specifies the 'context-value' for the + /// 'stroke-dashoffset' property. + STDMETHOD(SetStroke)( + _In_opt_ ID2D1Brush *brush, + FLOAT strokeWidth = 1.0f, + _In_reads_opt_(dashesCount) CONST FLOAT *dashes = NULL, + UINT32 dashesCount = 0, + FLOAT dashOffset = 1.0f + ) PURE; + + /// + /// Returns the number of dashes in the dash array. + /// + STDMETHOD_(UINT32, GetStrokeDashesCount)( + ) PURE; + + /// + /// Returns the requested stroke parameters. + /// + STDMETHOD_(void, GetStroke)( + _Outptr_opt_result_maybenull_ ID2D1Brush **brush, + _Out_opt_ FLOAT *strokeWidth = NULL, + _Out_writes_opt_(dashesCount) FLOAT *dashes = NULL, + UINT32 dashesCount = 0, + _Out_opt_ FLOAT *dashOffset = NULL + ) PURE; +}; // interface ID2D1SvgGlyphStyle + + +interface DX_DECLARE_INTERFACE("8c427831-3d90-4476-b647-c4fae349e4db") ID2D1DeviceContext4 : public ID2D1DeviceContext3 +{ + + /// + /// Creates an SVG glyph style object. + /// + STDMETHOD(CreateSvgGlyphStyle)( + _COM_Outptr_ ID2D1SvgGlyphStyle **svgGlyphStyle + ) PURE; + + /// + /// Draws the text within the given layout rectangle. By default, this method + /// performs baseline snapping and renders color versions of glyphs in color fonts. + /// + /// Object used to style SVG glyphs. + /// The index used to select a color palette within + /// a color font. + STDMETHOD_(void, DrawText)( + _In_reads_(stringLength) CONST WCHAR *string, + UINT32 stringLength, + _In_ IDWriteTextFormat *textFormat, + _In_ CONST D2D1_RECT_F *layoutRect, + _In_opt_ ID2D1Brush *defaultFillBrush, + _In_opt_ ID2D1SvgGlyphStyle *svgGlyphStyle, + UINT32 colorPaletteIndex = 0, + D2D1_DRAW_TEXT_OPTIONS options = D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT, + DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL + ) PURE; + + using ID2D1RenderTarget::DrawText; + + /// + /// Draw a text layout object. If the layout is not subsequently changed, this can + /// be more efficient than DrawText when drawing the same layout repeatedly. + /// + /// Object used to style SVG glyphs. + /// The index used to select a color palette within + /// a color font. + /// The specified text options. If D2D1_DRAW_TEXT_OPTIONS_CLIP + /// is used, the text is clipped to the layout bounds. These bounds are derived from + /// the origin and the layout bounds of the corresponding IDWriteTextLayout object. + /// + STDMETHOD_(void, DrawTextLayout)( + D2D1_POINT_2F origin, + _In_ IDWriteTextLayout *textLayout, + _In_opt_ ID2D1Brush *defaultFillBrush, + _In_opt_ ID2D1SvgGlyphStyle *svgGlyphStyle, + UINT32 colorPaletteIndex = 0, + D2D1_DRAW_TEXT_OPTIONS options = D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT + ) PURE; + + using ID2D1RenderTarget::DrawTextLayout; + + /// + /// Draws a color glyph run using one (and only one) of the bitmap formats- + /// DWRITE_GLYPH_IMAGE_FORMATS_PNG, DWRITE_GLYPH_IMAGE_FORMATS_JPEG, + /// DWRITE_GLYPH_IMAGE_FORMATS_TIFF, or + /// DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8. + /// + STDMETHOD_(void, DrawColorBitmapGlyphRun)( + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat, + D2D1_POINT_2F baselineOrigin, + _In_ CONST DWRITE_GLYPH_RUN *glyphRun, + DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL, + D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION bitmapSnapOption = D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION_DEFAULT + ) PURE; + + /// + /// Draws a color glyph run that has the format of DWRITE_GLYPH_IMAGE_FORMATS_SVG. + /// + /// Object used to style SVG glyphs. + /// The index used to select a color palette within + /// a color font. Note that this not the same as the paletteIndex in the + /// DWRITE_COLOR_GLYPH_RUN struct, which is not relevant for SVG glyphs. + STDMETHOD_(void, DrawSvgGlyphRun)( + D2D1_POINT_2F baselineOrigin, + _In_ CONST DWRITE_GLYPH_RUN *glyphRun, + _In_opt_ ID2D1Brush *defaultFillBrush = NULL, + _In_opt_ ID2D1SvgGlyphStyle *svgGlyphStyle = NULL, + UINT32 colorPaletteIndex = 0, + DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL + ) PURE; + + /// + /// Retrieves an image of the color bitmap glyph from the color glyph cache. If the + /// cache does not already contain the requested resource, it will be created. This + /// method may be used to extend the lifetime of a glyph image even after it is + /// evicted from the color glyph cache. + /// + /// The specified font size affects the choice of which + /// bitmap to use from the font. It also affects the output glyphTransform, causing + /// it to properly scale the glyph. + /// Output transform, which transforms from the glyph's + /// space to the same output space as the worldTransform. This includes the input + /// glyphOrigin, the glyph's offset from the glyphOrigin, and any other required + /// transformations. + STDMETHOD(GetColorBitmapGlyphImage)( + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat, + D2D1_POINT_2F glyphOrigin, + _In_ IDWriteFontFace *fontFace, + FLOAT fontEmSize, + UINT16 glyphIndex, + BOOL isSideways, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + FLOAT dpiX, + FLOAT dpiY, + _Out_ D2D1_MATRIX_3X2_F *glyphTransform, + _COM_Outptr_ ID2D1Image **glyphImage + ) PURE; + + /// + /// Retrieves an image of the SVG glyph from the color glyph cache. If the cache + /// does not already contain the requested resource, it will be created. This method + /// may be used to extend the lifetime of a glyph image even after it is evicted + /// from the color glyph cache. + /// + /// The specified font size affects the output + /// glyphTransform, causing it to properly scale the glyph. + /// Object used to style SVG glyphs. + /// The index used to select a color palette within + /// a color font. Note that this not the same as the paletteIndex in the + /// DWRITE_COLOR_GLYPH_RUN struct, which is not relevant for SVG glyphs. + /// Output transform, which transforms from the glyph's + /// space to the same output space as the worldTransform. This includes the input + /// glyphOrigin, the glyph's offset from the glyphOrigin, and any other required + /// transformations. + STDMETHOD(GetSvgGlyphImage)( + D2D1_POINT_2F glyphOrigin, + _In_ IDWriteFontFace *fontFace, + FLOAT fontEmSize, + UINT16 glyphIndex, + BOOL isSideways, + _In_opt_ CONST D2D1_MATRIX_3X2_F *worldTransform, + _In_opt_ ID2D1Brush *defaultFillBrush, + _In_opt_ ID2D1SvgGlyphStyle *svgGlyphStyle, + UINT32 colorPaletteIndex, + _Out_ D2D1_MATRIX_3X2_F *glyphTransform, + _COM_Outptr_ ID2D1CommandList **glyphImage + ) PURE; + + /// + /// Draws the text within the given layout rectangle. By default, this method + /// performs baseline snapping and renders color versions of glyphs in color fonts. + /// + /// Object used to style SVG glyphs. + /// The index used to select a color palette within + /// a color font. + COM_DECLSPEC_NOTHROW + void + DrawText( + _In_reads_(stringLength) CONST WCHAR *string, + UINT32 stringLength, + _In_ IDWriteTextFormat *textFormat, + CONST D2D1_RECT_F &layoutRect, + _In_opt_ ID2D1Brush *defaultFillBrush, + _In_opt_ ID2D1SvgGlyphStyle *svgGlyphStyle, + UINT32 colorPaletteIndex = 0, + D2D1_DRAW_TEXT_OPTIONS options = D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT, + DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL + ) + { + return DrawText(string, stringLength, textFormat, &layoutRect, defaultFillBrush, svgGlyphStyle, colorPaletteIndex, options, measuringMode); + } +}; // interface ID2D1DeviceContext4 + + +interface DX_DECLARE_INTERFACE("d7bdb159-5683-4a46-bc9c-72dc720b858b") ID2D1Device4 : public ID2D1Device3 +{ + + /// + /// Creates a new device context with no initially assigned target. + /// + STDMETHOD(CreateDeviceContext)( + D2D1_DEVICE_CONTEXT_OPTIONS options, + _COM_Outptr_ ID2D1DeviceContext4 **deviceContext4 + ) PURE; + + using ID2D1Device3::CreateDeviceContext; + + using ID2D1Device2::CreateDeviceContext; + + using ID2D1Device1::CreateDeviceContext; + + using ID2D1Device::CreateDeviceContext; + + /// + /// Sets the maximum capacity of the color glyph cache. This cache is used to store + /// color bitmap glyphs and SVG glyphs, enabling faster performance if the same + /// glyphs are needed again. If the application still references a glyph using + /// GetColorBitmapGlyphImage or GetSvgGlyphImage after it has been evicted, this + /// glyph does not count toward the cache capacity. + /// + STDMETHOD_(void, SetMaximumColorGlyphCacheMemory)( + UINT64 maximumInBytes + ) PURE; + + /// + /// Gets the maximum capacity of the color glyph cache. + /// + STDMETHOD_(UINT64, GetMaximumColorGlyphCacheMemory)( + ) CONST PURE; +}; // interface ID2D1Device4 + + +/// +/// Creates Direct2D resources. This interface also enables the creation of +/// ID2D1Device4 objects. +/// +interface DX_DECLARE_INTERFACE("c4349994-838e-4b0f-8cab-44997d9eeacc") ID2D1Factory5 : public ID2D1Factory4 +{ + + /// + /// This creates a new Direct2D device from the given IDXGIDevice. + /// + STDMETHOD(CreateDevice)( + _In_ IDXGIDevice *dxgiDevice, + _COM_Outptr_ ID2D1Device4 **d2dDevice4 + ) PURE; + + using ID2D1Factory4::CreateDevice; + + using ID2D1Factory3::CreateDevice; + + using ID2D1Factory2::CreateDevice; + + using ID2D1Factory1::CreateDevice; +}; // interface ID2D1Factory5 + + +#endif // #if NTDDI_VERSION >= NTDDI_WIN10_RS1 +#if NTDDI_VERSION >= NTDDI_WIN10_RS2 + +interface DX_DECLARE_INTERFACE("c78a6519-40d6-4218-b2de-beeeb744bb3e") ID2D1CommandSink4 : public ID2D1CommandSink3 +{ + + /// + /// A new function to set blend mode that respects the new MAX blend. + /// + /// Implementers of SetPrimitiveBlend2 should expect and handle blend mode: + /// D2D1_PRIMITIVE_BLEND_MAX + /// + /// Implementers of SetPrimitiveBlend1 should expect and handle blend modes: + /// D2D1_PRIMITIVE_BLEND_MIN and D2D1_PRIMITIVE_BLEND_ADD + /// + /// Implementers of SetPrimitiveBlend should expect and handle blend modes: + /// D2D1_PRIMITIVE_BLEND_SOURCE_OVER and D2D1_PRIMITIVE_BLEND_COPY + /// + STDMETHOD(SetPrimitiveBlend2)( + D2D1_PRIMITIVE_BLEND primitiveBlend + ) PURE; +}; // interface ID2D1CommandSink4 + + +/// +/// Represents a color context to be used with the Color Management Effect. +/// +interface DX_DECLARE_INTERFACE("1ab42875-c57f-4be9-bd85-9cd78d6f55ee") ID2D1ColorContext1 : public ID2D1ColorContext +{ + + /// + /// Retrieves the color context type. + /// + STDMETHOD_(D2D1_COLOR_CONTEXT_TYPE, GetColorContextType)( + ) CONST PURE; + + /// + /// Retrieves the DXGI color space of this context. Returns DXGI_COLOR_SPACE_CUSTOM + /// when color context type is ICC. + /// + STDMETHOD_(DXGI_COLOR_SPACE_TYPE, GetDXGIColorSpace)( + ) CONST PURE; + + /// + /// Retrieves a set simple color profile. + /// + STDMETHOD(GetSimpleColorProfile)( + _Out_ D2D1_SIMPLE_COLOR_PROFILE *simpleProfile + ) CONST PURE; +}; // interface ID2D1ColorContext1 + + +interface DX_DECLARE_INTERFACE("7836d248-68cc-4df6-b9e8-de991bf62eb7") ID2D1DeviceContext5 : public ID2D1DeviceContext4 +{ + + /// + /// Creates an SVG document from a stream. + /// + /// An input stream containing the SVG XML document. If + /// null, an empty document is created. + /// Size of the initial viewport of the document. + /// When this method returns, contains a pointer to the + /// SVG document. + STDMETHOD(CreateSvgDocument)( + _In_opt_ IStream *inputXmlStream, + D2D1_SIZE_F viewportSize, + _COM_Outptr_ ID2D1SvgDocument **svgDocument + ) PURE; + + /// + /// Draw an SVG document. + /// + STDMETHOD_(void, DrawSvgDocument)( + _In_ ID2D1SvgDocument *svgDocument + ) PURE; + + /// + /// Creates a color context from a DXGI color space type. It is only valid to use + /// this with the Color Management Effect in 'Best' mode. + /// + STDMETHOD(CreateColorContextFromDxgiColorSpace)( + DXGI_COLOR_SPACE_TYPE colorSpace, + _COM_Outptr_ ID2D1ColorContext1 **colorContext + ) PURE; + + /// + /// Creates a color context from a simple color profile. It is only valid to use + /// this with the Color Management Effect in 'Best' mode. + /// + STDMETHOD(CreateColorContextFromSimpleColorProfile)( + _In_ CONST D2D1_SIMPLE_COLOR_PROFILE *simpleProfile, + _COM_Outptr_ ID2D1ColorContext1 **colorContext + ) PURE; + + /// + /// Creates a color context from a simple color profile. + /// + COM_DECLSPEC_NOTHROW + HRESULT + CreateColorContextFromSimpleColorProfile( + CONST D2D1_SIMPLE_COLOR_PROFILE &simpleProfile, + _COM_Outptr_ ID2D1ColorContext1 **colorContext + ) + { + return CreateColorContextFromSimpleColorProfile(&simpleProfile, colorContext); + } +}; // interface ID2D1DeviceContext5 + + +interface DX_DECLARE_INTERFACE("d55ba0a4-6405-4694-aef5-08ee1a4358b4") ID2D1Device5 : public ID2D1Device4 +{ + + /// + /// Creates a new device context with no initially assigned target. + /// + STDMETHOD(CreateDeviceContext)( + D2D1_DEVICE_CONTEXT_OPTIONS options, + _COM_Outptr_ ID2D1DeviceContext5 **deviceContext5 + ) PURE; + + using ID2D1Device4::CreateDeviceContext; + + using ID2D1Device3::CreateDeviceContext; + + using ID2D1Device2::CreateDeviceContext; + + using ID2D1Device1::CreateDeviceContext; + + using ID2D1Device::CreateDeviceContext; +}; // interface ID2D1Device5 + + +/// +/// Creates Direct2D resources. This interface also enables the creation of +/// ID2D1Device5 objects. +/// +interface DX_DECLARE_INTERFACE("f9976f46-f642-44c1-97ca-da32ea2a2635") ID2D1Factory6 : public ID2D1Factory5 +{ + + /// + /// This creates a new Direct2D device from the given IDXGIDevice. + /// + STDMETHOD(CreateDevice)( + _In_ IDXGIDevice *dxgiDevice, + _COM_Outptr_ ID2D1Device5 **d2dDevice5 + ) PURE; + + using ID2D1Factory5::CreateDevice; + + using ID2D1Factory4::CreateDevice; + + using ID2D1Factory3::CreateDevice; + + using ID2D1Factory2::CreateDevice; + + using ID2D1Factory1::CreateDevice; +}; // interface ID2D1Factory6 + + +#endif +#if NTDDI_VERSION >= NTDDI_WIN10_RS3 + +interface DX_DECLARE_INTERFACE("7047dd26-b1e7-44a7-959a-8349e2144fa8") ID2D1CommandSink5 : public ID2D1CommandSink4 +{ + + STDMETHOD(BlendImage)( + _In_ ID2D1Image *image, + D2D1_BLEND_MODE blendMode, + _In_opt_ CONST D2D1_POINT_2F *targetOffset, + _In_opt_ CONST D2D1_RECT_F *imageRectangle, + D2D1_INTERPOLATION_MODE interpolationMode + ) PURE; +}; // interface ID2D1CommandSink5 + + +interface DX_DECLARE_INTERFACE("985f7e37-4ed0-4a19-98a3-15b0edfde306") ID2D1DeviceContext6 : public ID2D1DeviceContext5 +{ + + /// + /// Draw an image to the device context. + /// + STDMETHOD_(void, BlendImage)( + _In_ ID2D1Image *image, + D2D1_BLEND_MODE blendMode, + _In_opt_ CONST D2D1_POINT_2F *targetOffset = NULL, + _In_opt_ CONST D2D1_RECT_F *imageRectangle = NULL, + D2D1_INTERPOLATION_MODE interpolationMode = D2D1_INTERPOLATION_MODE_LINEAR + ) PURE; +}; // interface ID2D1DeviceContext6 + + +interface DX_DECLARE_INTERFACE("7bfef914-2d75-4bad-be87-e18ddb077b6d") ID2D1Device6 : public ID2D1Device5 +{ + + /// + /// Creates a new device context with no initially assigned target. + /// + STDMETHOD(CreateDeviceContext)( + D2D1_DEVICE_CONTEXT_OPTIONS options, + _COM_Outptr_ ID2D1DeviceContext6 **deviceContext6 + ) PURE; + + using ID2D1Device5::CreateDeviceContext; + + using ID2D1Device4::CreateDeviceContext; + + using ID2D1Device3::CreateDeviceContext; + + using ID2D1Device2::CreateDeviceContext; + + using ID2D1Device1::CreateDeviceContext; + + using ID2D1Device::CreateDeviceContext; +}; // interface ID2D1Device6 + + +/// +/// Creates Direct2D resources. This interface also enables the creation of +/// ID2D1Device6 objects. +/// +interface DX_DECLARE_INTERFACE("bdc2bdd3-b96c-4de6-bdf7-99d4745454de") ID2D1Factory7 : public ID2D1Factory6 +{ + + /// + /// This creates a new Direct2D device from the given IDXGIDevice. + /// + STDMETHOD(CreateDevice)( + _In_ IDXGIDevice *dxgiDevice, + _COM_Outptr_ ID2D1Device6 **d2dDevice6 + ) PURE; + + using ID2D1Factory6::CreateDevice; + + using ID2D1Factory5::CreateDevice; + + using ID2D1Factory4::CreateDevice; + + using ID2D1Factory3::CreateDevice; + + using ID2D1Factory2::CreateDevice; + + using ID2D1Factory1::CreateDevice; +}; // interface ID2D1Factory7 + + +#endif +#if NTDDI_VERSION >= NTDDI_WIN10_CU +enum DWRITE_PAINT_FEATURE_LEVEL : INT32; + +interface DX_DECLARE_INTERFACE("ec891cf7-9b69-4851-9def-4e0915771e62") ID2D1DeviceContext7 : public ID2D1DeviceContext6 +{ + + /// + /// Get the maximum paint feature level supported by DrawPaintGlyphRun. + /// + STDMETHOD_(DWRITE_PAINT_FEATURE_LEVEL, GetPaintFeatureLevel)( + ) PURE; + + /// + /// Draws a color glyph run that has the format of + /// DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE. + /// + /// The index used to select a color palette within + /// a color font. Note that this not the same as the paletteIndex in the + /// DWRITE_COLOR_GLYPH_RUN struct, which is not relevant for paint glyphs. + STDMETHOD_(void, DrawPaintGlyphRun)( + D2D1_POINT_2F baselineOrigin, + _In_ CONST DWRITE_GLYPH_RUN *glyphRun, + _In_opt_ ID2D1Brush *defaultFillBrush = NULL, + UINT32 colorPaletteIndex = 0, + DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL + ) PURE; + + /// + /// Draws a glyph run, using color representations of glyphs if available. + /// + STDMETHOD_(void, DrawGlyphRunWithColorSupport)( + D2D1_POINT_2F baselineOrigin, + _In_ CONST DWRITE_GLYPH_RUN *glyphRun, + _In_opt_ CONST DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription, + _In_opt_ ID2D1Brush *foregroundBrush, + _In_opt_ ID2D1SvgGlyphStyle *svgGlyphStyle, + UINT32 colorPaletteIndex = 0, + DWRITE_MEASURING_MODE measuringMode = DWRITE_MEASURING_MODE_NATURAL, + D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION bitmapSnapOption = D2D1_COLOR_BITMAP_GLYPH_SNAP_OPTION_DEFAULT + ) PURE; +}; // interface ID2D1DeviceContext7 + + +interface DX_DECLARE_INTERFACE("f07c8968-dd4e-4ba6-9cbd-eb6d3752dcbb") ID2D1Device7 : public ID2D1Device6 +{ + + /// + /// Creates a new device context with no initially assigned target. + /// + STDMETHOD(CreateDeviceContext)( + D2D1_DEVICE_CONTEXT_OPTIONS options, + _COM_Outptr_ ID2D1DeviceContext7 **deviceContext + ) PURE; + + using ID2D1Device6::CreateDeviceContext; + + using ID2D1Device5::CreateDeviceContext; + + using ID2D1Device4::CreateDeviceContext; + + using ID2D1Device3::CreateDeviceContext; + + using ID2D1Device2::CreateDeviceContext; + + using ID2D1Device1::CreateDeviceContext; + + using ID2D1Device::CreateDeviceContext; +}; // interface ID2D1Device7 + + +/// +/// Creates Direct2D resources. This interface also enables the creation of +/// ID2D1Device7 objects. +/// +interface DX_DECLARE_INTERFACE("677c9311-f36d-4b1f-ae86-86d1223ffd3a") ID2D1Factory8 : public ID2D1Factory7 +{ + + /// + /// This creates a new Direct2D device from the given IDXGIDevice. + /// + STDMETHOD(CreateDevice)( + _In_ IDXGIDevice *dxgiDevice, + _COM_Outptr_ ID2D1Device7 **d2dDevice6 + ) PURE; + + using ID2D1Factory7::CreateDevice; + + using ID2D1Factory6::CreateDevice; + + using ID2D1Factory5::CreateDevice; + + using ID2D1Factory4::CreateDevice; + + using ID2D1Factory3::CreateDevice; + + using ID2D1Factory2::CreateDevice; + + using ID2D1Factory1::CreateDevice; +}; // interface ID2D1Factory8 + + +#endif // #if NTDDI_VERSION >= NTDDI_WIN10_CU + +#endif + + +#ifdef D2D_USE_C_DEFINITIONS + + +typedef interface ID2D1InkStyle ID2D1InkStyle; + +typedef interface ID2D1Ink ID2D1Ink; + +typedef interface ID2D1GradientMesh ID2D1GradientMesh; + +typedef interface ID2D1ImageSource ID2D1ImageSource; + +typedef interface ID2D1ImageSourceFromWic ID2D1ImageSourceFromWic; + +typedef interface ID2D1TransformedImageSource ID2D1TransformedImageSource; + +typedef interface ID2D1LookupTable3D ID2D1LookupTable3D; + +typedef interface ID2D1DeviceContext2 ID2D1DeviceContext2; + +typedef interface ID2D1Device2 ID2D1Device2; + +typedef interface ID2D1Factory3 ID2D1Factory3; + +typedef interface ID2D1CommandSink2 ID2D1CommandSink2; + +typedef interface ID2D1GdiMetafile1 ID2D1GdiMetafile1; + +typedef interface ID2D1GdiMetafileSink1 ID2D1GdiMetafileSink1; + +#endif + + +#ifdef __cplusplus +extern "C" +{ +#endif + +#if NTDDI_VERSION >= NTDDI_WINTHRESHOLD + void WINAPI + D2D1GetGradientMeshInteriorPointsFromCoonsPatch( + _In_ CONST D2D1_POINT_2F *pPoint0, + _In_ CONST D2D1_POINT_2F *pPoint1, + _In_ CONST D2D1_POINT_2F *pPoint2, + _In_ CONST D2D1_POINT_2F *pPoint3, + _In_ CONST D2D1_POINT_2F *pPoint4, + _In_ CONST D2D1_POINT_2F *pPoint5, + _In_ CONST D2D1_POINT_2F *pPoint6, + _In_ CONST D2D1_POINT_2F *pPoint7, + _In_ CONST D2D1_POINT_2F *pPoint8, + _In_ CONST D2D1_POINT_2F *pPoint9, + _In_ CONST D2D1_POINT_2F *pPoint10, + _In_ CONST D2D1_POINT_2F *pPoint11, + _Out_ D2D1_POINT_2F *pTensorPoint11, + _Out_ D2D1_POINT_2F *pTensorPoint12, + _Out_ D2D1_POINT_2F *pTensorPoint21, + _Out_ D2D1_POINT_2F *pTensorPoint22 + ); +#endif // #if NTDDI_VERSION >= NTDDI_WINTHRESHOLD + +#ifdef __cplusplus +} +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#include +#endif // #ifndef _D2D1_3_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_3helper.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_3helper.h new file mode 100644 index 0000000000000000000000000000000000000000..d316c76db9d45b586017d8cc15a6f84769078e41 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1_3helper.h @@ -0,0 +1,260 @@ + +/*=========================================================================*\ + + Copyright (c) Microsoft Corporation. All rights reserved. + + File: D2D1_3Helper.h + + Module Name: D2D + + Description: Helper files over the D2D interfaces and APIs. + +\*=========================================================================*/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _D2D1_3HELPER_H_ +#define _D2D1_3HELPER_H_ + +#if NTDDI_VERSION >= NTDDI_WINTHRESHOLD + +#ifndef _D2D1_3_H_ +#include +#endif // #ifndef _D2D1_3_H_ + +#ifndef D2D_USE_C_DEFINITIONS + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +namespace D2D1 +{ + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_GRADIENT_MESH_PATCH + GradientMeshPatch( + D2D1_POINT_2F point00, + D2D1_POINT_2F point01, + D2D1_POINT_2F point02, + D2D1_POINT_2F point03, + D2D1_POINT_2F point10, + D2D1_POINT_2F point11, + D2D1_POINT_2F point12, + D2D1_POINT_2F point13, + D2D1_POINT_2F point20, + D2D1_POINT_2F point21, + D2D1_POINT_2F point22, + D2D1_POINT_2F point23, + D2D1_POINT_2F point30, + D2D1_POINT_2F point31, + D2D1_POINT_2F point32, + D2D1_POINT_2F point33, + D2D1_COLOR_F color00, + D2D1_COLOR_F color03, + D2D1_COLOR_F color30, + D2D1_COLOR_F color33, + D2D1_PATCH_EDGE_MODE topEdgeMode, + D2D1_PATCH_EDGE_MODE leftEdgeMode, + D2D1_PATCH_EDGE_MODE bottomEdgeMode, + D2D1_PATCH_EDGE_MODE rightEdgeMode + ) + { + D2D1_GRADIENT_MESH_PATCH newPatch; + newPatch.point00 = point00; + newPatch.point01 = point01; + newPatch.point02 = point02; + newPatch.point03 = point03; + newPatch.point10 = point10; + newPatch.point11 = point11; + newPatch.point12 = point12; + newPatch.point13 = point13; + newPatch.point20 = point20; + newPatch.point21 = point21; + newPatch.point22 = point22; + newPatch.point23 = point23; + newPatch.point30 = point30; + newPatch.point31 = point31; + newPatch.point32 = point32; + newPatch.point33 = point33; + + newPatch.color00 = color00; + newPatch.color03 = color03; + newPatch.color30 = color30; + newPatch.color33 = color33; + + newPatch.topEdgeMode = topEdgeMode; + newPatch.leftEdgeMode = leftEdgeMode; + newPatch.bottomEdgeMode = bottomEdgeMode; + newPatch.rightEdgeMode = rightEdgeMode; + + return newPatch; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_GRADIENT_MESH_PATCH + GradientMeshPatchFromCoonsPatch( + D2D1_POINT_2F point0, + D2D1_POINT_2F point1, + D2D1_POINT_2F point2, + D2D1_POINT_2F point3, + D2D1_POINT_2F point4, + D2D1_POINT_2F point5, + D2D1_POINT_2F point6, + D2D1_POINT_2F point7, + D2D1_POINT_2F point8, + D2D1_POINT_2F point9, + D2D1_POINT_2F point10, + D2D1_POINT_2F point11, + D2D1_COLOR_F color0, + D2D1_COLOR_F color1, + D2D1_COLOR_F color2, + D2D1_COLOR_F color3, + D2D1_PATCH_EDGE_MODE topEdgeMode, + D2D1_PATCH_EDGE_MODE leftEdgeMode, + D2D1_PATCH_EDGE_MODE bottomEdgeMode, + D2D1_PATCH_EDGE_MODE rightEdgeMode + ) + { + D2D1_GRADIENT_MESH_PATCH newPatch; + newPatch.point00 = point0; + newPatch.point01 = point1; + newPatch.point02 = point2; + newPatch.point03 = point3; + newPatch.point13 = point4; + newPatch.point23 = point5; + newPatch.point33 = point6; + newPatch.point32 = point7; + newPatch.point31 = point8; + newPatch.point30 = point9; + newPatch.point20 = point10; + newPatch.point10 = point11; + + D2D1GetGradientMeshInteriorPointsFromCoonsPatch( + &point0, + &point1, + &point2, + &point3, + &point4, + &point5, + &point6, + &point7, + &point8, + &point9, + &point10, + &point11, + &newPatch.point11, + &newPatch.point12, + &newPatch.point21, + &newPatch.point22 + ); + + newPatch.color00 = color0; + newPatch.color03 = color1; + newPatch.color33 = color2; + newPatch.color30 = color3; + newPatch.topEdgeMode = topEdgeMode; + newPatch.leftEdgeMode = leftEdgeMode; + newPatch.bottomEdgeMode = bottomEdgeMode; + newPatch.rightEdgeMode = rightEdgeMode; + + return newPatch; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_INK_POINT + InkPoint( + const D2D1_POINT_2F &point, + FLOAT radius + ) + { + D2D1_INK_POINT inkPoint; + + inkPoint.x = point.x; + inkPoint.y = point.y; + inkPoint.radius = radius; + + return inkPoint; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_INK_BEZIER_SEGMENT + InkBezierSegment( + const D2D1_INK_POINT &point1, + const D2D1_INK_POINT &point2, + const D2D1_INK_POINT &point3 + ) + { + D2D1_INK_BEZIER_SEGMENT inkBezierSegment; + + inkBezierSegment.point1 = point1; + inkBezierSegment.point2 = point2; + inkBezierSegment.point3 = point3; + + return inkBezierSegment; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_INK_STYLE_PROPERTIES + InkStyleProperties( + D2D1_INK_NIB_SHAPE nibShape, + const D2D1_MATRIX_3X2_F &nibTransform + ) + { + D2D1_INK_STYLE_PROPERTIES inkStyleProperties; + + inkStyleProperties.nibShape = nibShape; + inkStyleProperties.nibTransform = nibTransform; + + return inkStyleProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_RECT_U + InfiniteRectU() + { + D2D1_RECT_U rect = { 0u, 0u, UINT_MAX, UINT_MAX }; + + return rect; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_SIMPLE_COLOR_PROFILE + SimpleColorProfile( + const D2D1_POINT_2F &redPrimary, + const D2D1_POINT_2F &greenPrimary, + const D2D1_POINT_2F &bluePrimary, + const D2D1_GAMMA1 gamma, + const D2D1_POINT_2F &whitePointXZ + ) + { + D2D1_SIMPLE_COLOR_PROFILE simpleColorProfile; + + simpleColorProfile.redPrimary = redPrimary; + simpleColorProfile.greenPrimary = greenPrimary; + simpleColorProfile.bluePrimary = bluePrimary; + simpleColorProfile.gamma = gamma; + simpleColorProfile.whitePointXZ = whitePointXZ; + + return simpleColorProfile; + } +} // namespace D2D1 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // #ifndef D2D_USE_C_DEFINITIONS + +#endif // #if NTDDI_VERSION >= NTDDI_WINTHRESHOLD + +#endif // #ifndef _D2D1_HELPER_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effectauthor.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effectauthor.h new file mode 100644 index 0000000000000000000000000000000000000000..3f6924367130329a1ae6424db60f63c88b26056d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effectauthor.h @@ -0,0 +1,1084 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2D1EffectAuthor.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2D1_EFFECT_AUTHOR_H_ +#define _D2D1_EFFECT_AUTHOR_H_ + +#ifndef _D2D1_1_H_ +#include +#endif // #ifndef _D2D1_1_H_ + + +/// +/// Function pointer that sets a property on an effect. +/// +typedef HRESULT (CALLBACK *PD2D1_PROPERTY_SET_FUNCTION)( + _In_ IUnknown *effect, + _In_reads_(dataSize) const BYTE *data, + UINT32 dataSize + ); + +/// +/// Function pointer that gets a property from an effect. +/// +typedef HRESULT (CALLBACK *PD2D1_PROPERTY_GET_FUNCTION)( + _In_ const IUnknown *effect, + _Out_writes_opt_(dataSize) BYTE *data, + UINT32 dataSize, + _Out_opt_ UINT32 *actualSize + ); + +#ifndef D2D_USE_C_DEFINITIONS + +interface ID2D1EffectContext; +interface ID2D1TransformNode; + +#else + +typedef interface ID2D1EffectContext ID2D1EffectContext; +typedef interface ID2D1TransformNode ID2D1TransformNode; + +#endif + + +/// +/// Indicates what has changed since the last time the effect was asked to prepare +/// to render. +/// +typedef enum D2D1_CHANGE_TYPE +{ + + /// + /// Nothing has changed. + /// + D2D1_CHANGE_TYPE_NONE = 0, + + /// + /// The effect's properties have changed. + /// + D2D1_CHANGE_TYPE_PROPERTIES = 1, + + /// + /// The internal context has changed and should be inspected. + /// + D2D1_CHANGE_TYPE_CONTEXT = 2, + + /// + /// A new graph has been set due to a change in the input count. + /// + D2D1_CHANGE_TYPE_GRAPH = 3, + D2D1_CHANGE_TYPE_FORCE_DWORD = 0xffffffff + +} D2D1_CHANGE_TYPE; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_CHANGE_TYPE); + + +/// +/// Indicates options for drawing using a pixel shader. +/// +typedef enum D2D1_PIXEL_OPTIONS +{ + + /// + /// Default pixel processing. + /// + D2D1_PIXEL_OPTIONS_NONE = 0, + + /// + /// Indicates that the shader samples its inputs only at exactly the same scene + /// coordinate as the output pixel, and that it returns transparent black whenever + /// the input pixels are also transparent black. + /// + D2D1_PIXEL_OPTIONS_TRIVIAL_SAMPLING = 1, + D2D1_PIXEL_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_PIXEL_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_PIXEL_OPTIONS); + + +/// +/// Indicates options for drawing custom vertices set by transforms. +/// +typedef enum D2D1_VERTEX_OPTIONS +{ + + /// + /// Default vertex processing. + /// + D2D1_VERTEX_OPTIONS_NONE = 0, + + /// + /// Indicates that the output rectangle does not need to be cleared before drawing + /// custom vertices. This must only be used by transforms whose custom vertices + /// completely cover their output rectangle. + /// + D2D1_VERTEX_OPTIONS_DO_NOT_CLEAR = 1, + + /// + /// Causes a depth buffer to be used while drawing custom vertices. This impacts + /// drawing behavior when primitives overlap one another. + /// + D2D1_VERTEX_OPTIONS_USE_DEPTH_BUFFER = 2, + + /// + /// Indicates that custom vertices do not form primitives which overlap one another. + /// + D2D1_VERTEX_OPTIONS_ASSUME_NO_OVERLAP = 4, + D2D1_VERTEX_OPTIONS_FORCE_DWORD = 0xffffffff + +} D2D1_VERTEX_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(D2D1_VERTEX_OPTIONS); + + +/// +/// Describes how a vertex buffer is to be managed. +/// +typedef enum D2D1_VERTEX_USAGE +{ + + /// + /// The vertex buffer content do not change frequently from frame to frame. + /// + D2D1_VERTEX_USAGE_STATIC = 0, + + /// + /// The vertex buffer is intended to be updated frequently. + /// + D2D1_VERTEX_USAGE_DYNAMIC = 1, + D2D1_VERTEX_USAGE_FORCE_DWORD = 0xffffffff + +} D2D1_VERTEX_USAGE; + + +/// +/// Describes a particular blend in the D2D1_BLEND_DESCRIPTION structure. +/// +typedef enum D2D1_BLEND_OPERATION +{ + D2D1_BLEND_OPERATION_ADD = 1, + D2D1_BLEND_OPERATION_SUBTRACT = 2, + D2D1_BLEND_OPERATION_REV_SUBTRACT = 3, + D2D1_BLEND_OPERATION_MIN = 4, + D2D1_BLEND_OPERATION_MAX = 5, + D2D1_BLEND_OPERATION_FORCE_DWORD = 0xffffffff + +} D2D1_BLEND_OPERATION; + + +/// +/// Describes a particular blend in the D2D1_BLEND_DESCRIPTION structure. +/// +typedef enum D2D1_BLEND +{ + D2D1_BLEND_ZERO = 1, + D2D1_BLEND_ONE = 2, + D2D1_BLEND_SRC_COLOR = 3, + D2D1_BLEND_INV_SRC_COLOR = 4, + D2D1_BLEND_SRC_ALPHA = 5, + D2D1_BLEND_INV_SRC_ALPHA = 6, + D2D1_BLEND_DEST_ALPHA = 7, + D2D1_BLEND_INV_DEST_ALPHA = 8, + D2D1_BLEND_DEST_COLOR = 9, + D2D1_BLEND_INV_DEST_COLOR = 10, + D2D1_BLEND_SRC_ALPHA_SAT = 11, + D2D1_BLEND_BLEND_FACTOR = 14, + D2D1_BLEND_INV_BLEND_FACTOR = 15, + D2D1_BLEND_FORCE_DWORD = 0xffffffff + +} D2D1_BLEND; + + +/// +/// Allows a caller to control the channel depth of a stage in the rendering +/// pipeline. +/// +typedef enum D2D1_CHANNEL_DEPTH +{ + D2D1_CHANNEL_DEPTH_DEFAULT = 0, + D2D1_CHANNEL_DEPTH_1 = 1, + D2D1_CHANNEL_DEPTH_4 = 4, + D2D1_CHANNEL_DEPTH_FORCE_DWORD = 0xffffffff + +} D2D1_CHANNEL_DEPTH; + + +/// +/// Represents filtering modes transforms may select to use on their input textures. +/// +typedef enum D2D1_FILTER +{ + D2D1_FILTER_MIN_MAG_MIP_POINT = 0x00, + D2D1_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x01, + D2D1_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x04, + D2D1_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x05, + D2D1_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10, + D2D1_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11, + D2D1_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14, + D2D1_FILTER_MIN_MAG_MIP_LINEAR = 0x15, + D2D1_FILTER_ANISOTROPIC = 0x55, + D2D1_FILTER_FORCE_DWORD = 0xffffffff + +} D2D1_FILTER; + + +/// +/// Defines capabilities of the underlying D3D device which may be queried using +/// CheckFeatureSupport. +/// +typedef enum D2D1_FEATURE +{ + D2D1_FEATURE_DOUBLES = 0, + D2D1_FEATURE_D3D10_X_HARDWARE_OPTIONS = 1, + D2D1_FEATURE_FORCE_DWORD = 0xffffffff + +} D2D1_FEATURE; + + +/// +/// Defines a property binding to a function. The name must match the property +/// defined in the registration schema. +/// +typedef struct D2D1_PROPERTY_BINDING +{ + + /// + /// The name of the property. + /// + PCWSTR propertyName; + + /// + /// The function that will receive the data to set. + /// + PD2D1_PROPERTY_SET_FUNCTION setFunction; + + /// + /// The function that will be asked to write the output data. + /// + PD2D1_PROPERTY_GET_FUNCTION getFunction; + +} D2D1_PROPERTY_BINDING; + + +/// +/// This is used to define a resource texture when that resource texture is created. +/// +typedef struct D2D1_RESOURCE_TEXTURE_PROPERTIES +{ + _Field_size_(dimensions) CONST UINT32 *extents; + UINT32 dimensions; + D2D1_BUFFER_PRECISION bufferPrecision; + D2D1_CHANNEL_DEPTH channelDepth; + D2D1_FILTER filter; + _Field_size_(dimensions) CONST D2D1_EXTEND_MODE *extendModes; + +} D2D1_RESOURCE_TEXTURE_PROPERTIES; + + +/// +/// This defines a single element of the vertex layout. +/// +typedef struct D2D1_INPUT_ELEMENT_DESC +{ + PCSTR semanticName; + UINT32 semanticIndex; + DXGI_FORMAT format; + UINT32 inputSlot; + UINT32 alignedByteOffset; + +} D2D1_INPUT_ELEMENT_DESC; + + +// +// Set to alignedByteOffset within D2D1_INPUT_ELEMENT_DESC for elements that +// immediately follow preceding elements in memory +// +#define D2D1_APPEND_ALIGNED_ELEMENT ( 0xffffffff ) + + +/// +/// This defines the properties of a vertex buffer which uses the default vertex +/// layout. +/// +typedef struct D2D1_VERTEX_BUFFER_PROPERTIES +{ + UINT32 inputCount; + D2D1_VERTEX_USAGE usage; + _Field_size_opt_(byteWidth) CONST BYTE *data; + UINT32 byteWidth; + +} D2D1_VERTEX_BUFFER_PROPERTIES; + + +/// +/// This defines the input layout of vertices and the vertex shader which processes +/// them. +/// +typedef struct D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES +{ + _Field_size_(shaderBufferSize) CONST BYTE *shaderBufferWithInputSignature; + UINT32 shaderBufferSize; + _Field_size_opt_(elementCount) CONST D2D1_INPUT_ELEMENT_DESC *inputElements; + UINT32 elementCount; + UINT32 stride; + +} D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES; + + +/// +/// This defines the range of vertices from a vertex buffer to draw. +/// +typedef struct D2D1_VERTEX_RANGE +{ + UINT32 startVertex; + UINT32 vertexCount; + +} D2D1_VERTEX_RANGE; + + +/// +/// Blend description which configures a blend transform object. +/// +typedef struct D2D1_BLEND_DESCRIPTION +{ + D2D1_BLEND sourceBlend; + D2D1_BLEND destinationBlend; + D2D1_BLEND_OPERATION blendOperation; + D2D1_BLEND sourceBlendAlpha; + D2D1_BLEND destinationBlendAlpha; + D2D1_BLEND_OPERATION blendOperationAlpha; + FLOAT blendFactor[4]; + +} D2D1_BLEND_DESCRIPTION; + + +/// +/// Describes options transforms may select to use on their input textures. +/// +typedef struct D2D1_INPUT_DESCRIPTION +{ + D2D1_FILTER filter; + UINT32 levelOfDetailCount; + +} D2D1_INPUT_DESCRIPTION; + + +/// +/// Indicates whether shader support for doubles is present on the underlying +/// hardware. This may be populated using CheckFeatureSupport. +/// +typedef struct D2D1_FEATURE_DATA_DOUBLES +{ + BOOL doublePrecisionFloatShaderOps; + +} D2D1_FEATURE_DATA_DOUBLES; + + +/// +/// Indicates support for features which are optional on D3D10 feature levels. This +/// may be populated using CheckFeatureSupport. +/// +typedef struct D2D1_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS +{ + BOOL computeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x; + +} D2D1_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS; + + +EXTERN_C CONST IID IID_ID2D1VertexBuffer; +EXTERN_C CONST IID IID_ID2D1ResourceTexture; +EXTERN_C CONST IID IID_ID2D1RenderInfo; +EXTERN_C CONST IID IID_ID2D1DrawInfo; +EXTERN_C CONST IID IID_ID2D1ComputeInfo; +EXTERN_C CONST IID IID_ID2D1TransformNode; +EXTERN_C CONST IID IID_ID2D1TransformGraph; +EXTERN_C CONST IID IID_ID2D1Transform; +EXTERN_C CONST IID IID_ID2D1DrawTransform; +EXTERN_C CONST IID IID_ID2D1ComputeTransform; +EXTERN_C CONST IID IID_ID2D1AnalysisTransform; +EXTERN_C CONST IID IID_ID2D1SourceTransform; +EXTERN_C CONST IID IID_ID2D1ConcreteTransform; +EXTERN_C CONST IID IID_ID2D1BlendTransform; +EXTERN_C CONST IID IID_ID2D1BorderTransform; +EXTERN_C CONST IID IID_ID2D1OffsetTransform; +EXTERN_C CONST IID IID_ID2D1BoundsAdjustmentTransform; +EXTERN_C CONST IID IID_ID2D1EffectImpl; +EXTERN_C CONST IID IID_ID2D1EffectContext; + + +#ifndef D2D_USE_C_DEFINITIONS + + +/// +/// A transform uses this interface to write new vertices to a vertex buffer. +/// +interface DX_DECLARE_INTERFACE("9b8b1336-00a5-4668-92b7-ced5d8bf9b7b") ID2D1VertexBuffer : public IUnknown +{ + + STDMETHOD(Map)( + _Outptr_result_bytebuffer_(bufferSize) BYTE **data, + UINT32 bufferSize + ) PURE; + + STDMETHOD(Unmap)( + ) PURE; +}; // interface ID2D1VertexBuffer + + +interface DX_DECLARE_INTERFACE("688d15c3-02b0-438d-b13a-d1b44c32c39a") ID2D1ResourceTexture : public IUnknown +{ + + /// + /// Update the vertex text. + /// + STDMETHOD(Update)( + _In_reads_opt_(dimensions) CONST UINT32 *minimumExtents, + _In_reads_opt_(dimensions) CONST UINT32 *maximimumExtents, + _In_reads_opt_(dimensions - 1) CONST UINT32 *strides, + UINT32 dimensions, + _In_reads_(dataCount) CONST BYTE *data, + UINT32 dataCount + ) PURE; +}; // interface ID2D1ResourceTexture + + +/// +/// A transform uses this interface to specify how to render a particular pass in +/// D2D. +/// +interface DX_DECLARE_INTERFACE("519ae1bd-d19a-420d-b849-364f594776b7") ID2D1RenderInfo : public IUnknown +{ + + /// + /// Sets options for sampling the specified image input + /// + STDMETHOD(SetInputDescription)( + UINT32 inputIndex, + D2D1_INPUT_DESCRIPTION inputDescription + ) PURE; + + /// + /// Controls the output precision and channel-depth for the associated transform. + /// + STDMETHOD(SetOutputBuffer)( + D2D1_BUFFER_PRECISION bufferPrecision, + D2D1_CHANNEL_DEPTH channelDepth + ) PURE; + + /// + /// Controls whether the output of the associated transform is cached. + /// + STDMETHOD_(void, SetCached)( + BOOL isCached + ) PURE; + + /// + /// Provides a hint of the approximate shader instruction count per pixel. If + /// provided, it may improve performance when processing large images. Instructions + /// should be counted multiple times if occurring within loops. + /// + STDMETHOD_(void, SetInstructionCountHint)( + UINT32 instructionCount + ) PURE; +}; // interface ID2D1RenderInfo + + +/// +/// A transform uses this interface to specify how to render a particular pass using +/// pixel and vertex shaders. +/// +interface DX_DECLARE_INTERFACE("693ce632-7f2f-45de-93fe-18d88b37aa21") ID2D1DrawInfo : public ID2D1RenderInfo +{ + + /// + /// Set the constant buffer for this transform's pixel shader. + /// + STDMETHOD(SetPixelShaderConstantBuffer)( + _In_reads_(bufferCount) CONST BYTE *buffer, + UINT32 bufferCount + ) PURE; + + /// + /// Sets the resource texture corresponding to the given shader texture index. + /// + STDMETHOD(SetResourceTexture)( + UINT32 textureIndex, + _In_ ID2D1ResourceTexture *resourceTexture + ) PURE; + + /// + /// Set the constant buffer for this transform's vertex shader. + /// + STDMETHOD(SetVertexShaderConstantBuffer)( + _In_reads_(bufferCount) CONST BYTE *buffer, + UINT32 bufferCount + ) PURE; + + /// + /// Set the shader instructions for this transform. + /// + STDMETHOD(SetPixelShader)( + _In_ REFGUID shaderId, + D2D1_PIXEL_OPTIONS pixelOptions = D2D1_PIXEL_OPTIONS_NONE + ) PURE; + + /// + /// Set custom vertices for the associated transform. A blend mode if + /// foreground-over will be used if blendDescription is NULL. + /// + STDMETHOD(SetVertexProcessing)( + _In_opt_ ID2D1VertexBuffer *vertexBuffer, + D2D1_VERTEX_OPTIONS vertexOptions, + _In_opt_ CONST D2D1_BLEND_DESCRIPTION *blendDescription = NULL, + _In_opt_ CONST D2D1_VERTEX_RANGE *vertexRange = NULL, + _In_opt_ CONST GUID *vertexShader = NULL + ) PURE; +}; // interface ID2D1DrawInfo + + +/// +/// A transform uses this interface to specify how to render a particular pass using +/// compute shader. +/// +interface DX_DECLARE_INTERFACE("5598b14b-9fd7-48b7-9bdb-8f0964eb38bc") ID2D1ComputeInfo : public ID2D1RenderInfo +{ + + /// + /// Set the constant buffer for this transform. + /// + STDMETHOD(SetComputeShaderConstantBuffer)( + _In_reads_(bufferCount) CONST BYTE *buffer, + UINT32 bufferCount + ) PURE; + + /// + /// Set the shader instructions for this transform. + /// + STDMETHOD(SetComputeShader)( + _In_ REFGUID shaderId + ) PURE; + + /// + /// Sets the resource texture corresponding to the given shader texture index. + /// + STDMETHOD(SetResourceTexture)( + UINT32 textureIndex, + _In_ ID2D1ResourceTexture *resourceTexture + ) PURE; +}; // interface ID2D1ComputeInfo + + +/// +/// A base object which can be inserted into a transform graph. +/// +interface DX_DECLARE_INTERFACE("b2efe1e7-729f-4102-949f-505fa21bf666") ID2D1TransformNode : public IUnknown +{ + + /// + /// Return the number of input this node has. + /// + STDMETHOD_(UINT32, GetInputCount)( + ) CONST PURE; +}; // interface ID2D1TransformNode + + +/// +/// The implementation of the actual graph. +/// +interface DX_DECLARE_INTERFACE("13d29038-c3e6-4034-9081-13b53a417992") ID2D1TransformGraph : public IUnknown +{ + + /// + /// Return the number of input this graph has. + /// + STDMETHOD_(UINT32, GetInputCount)( + ) CONST PURE; + + /// + /// Sets the graph to contain a single transform whose inputs map 1:1 with effect + /// inputs. + /// + STDMETHOD(SetSingleTransformNode)( + _In_ ID2D1TransformNode *node + ) PURE; + + /// + /// Adds the given transform node to the graph. + /// + STDMETHOD(AddNode)( + _In_ ID2D1TransformNode *node + ) PURE; + + /// + /// Removes the given transform node from the graph. + /// + STDMETHOD(RemoveNode)( + _In_ ID2D1TransformNode *node + ) PURE; + + /// + /// Indicates that the given transform node should be considered to be the output + /// node of the graph. + /// + STDMETHOD(SetOutputNode)( + _In_ ID2D1TransformNode *node + ) PURE; + + /// + /// Connects one node to another node inside the graph. + /// + STDMETHOD(ConnectNode)( + _In_ ID2D1TransformNode *fromNode, + _In_ ID2D1TransformNode *toNode, + UINT32 toNodeInputIndex + ) PURE; + + /// + /// Connects a transform node inside the graph to the corresponding input of the + /// encapsulating effect. + /// + STDMETHOD(ConnectToEffectInput)( + UINT32 toEffectInputIndex, + _In_ ID2D1TransformNode *node, + UINT32 toNodeInputIndex + ) PURE; + + /// + /// Clears all nodes and connections from the transform graph. + /// + STDMETHOD_(void, Clear)( + ) PURE; + + /// + /// Uses the specified input as the effect output. + /// + STDMETHOD(SetPassthroughGraph)( + UINT32 effectInputIndex + ) PURE; +}; // interface ID2D1TransformGraph + + +/// +/// The interface implemented by a transform author. +/// +interface DX_DECLARE_INTERFACE("ef1a287d-342a-4f76-8fdb-da0d6ea9f92b") ID2D1Transform : public ID2D1TransformNode +{ + + STDMETHOD(MapOutputRectToInputRects)( + _In_ CONST D2D1_RECT_L *outputRect, + _Out_writes_(inputRectsCount) D2D1_RECT_L *inputRects, + UINT32 inputRectsCount + ) CONST PURE; + + STDMETHOD(MapInputRectsToOutputRect)( + _In_reads_(inputRectCount) CONST D2D1_RECT_L *inputRects, + _In_reads_(inputRectCount) CONST D2D1_RECT_L *inputOpaqueSubRects, + UINT32 inputRectCount, + _Out_ D2D1_RECT_L *outputRect, + _Out_ D2D1_RECT_L *outputOpaqueSubRect + ) PURE; + + STDMETHOD(MapInvalidRect)( + UINT32 inputIndex, + D2D1_RECT_L invalidInputRect, + _Out_ D2D1_RECT_L *invalidOutputRect + ) CONST PURE; +}; // interface ID2D1Transform + + +/// +/// The interface implemented by a transform author to provide a GPU-based effect. +/// +interface DX_DECLARE_INTERFACE("36bfdcb6-9739-435d-a30d-a653beff6a6f") ID2D1DrawTransform : public ID2D1Transform +{ + + STDMETHOD(SetDrawInfo)( + _In_ ID2D1DrawInfo *drawInfo + ) PURE; +}; // interface ID2D1DrawTransform + + +/// +/// The interface implemented by a transform author to provide a Compute Shader +/// based effect. +/// +interface DX_DECLARE_INTERFACE("0d85573c-01e3-4f7d-bfd9-0d60608bf3c3") ID2D1ComputeTransform : public ID2D1Transform +{ + + STDMETHOD(SetComputeInfo)( + _In_ ID2D1ComputeInfo *computeInfo + ) PURE; + + STDMETHOD(CalculateThreadgroups)( + _In_ CONST D2D1_RECT_L *outputRect, + _Out_ UINT32 *dimensionX, + _Out_ UINT32 *dimensionY, + _Out_ UINT32 *dimensionZ + ) PURE; +}; // interface ID2D1ComputeTransform + + +/// +/// The interface implemented by a transform author to indicate that it should +/// receive an analysis result callback. +/// +interface DX_DECLARE_INTERFACE("0359dc30-95e6-4568-9055-27720d130e93") ID2D1AnalysisTransform : public IUnknown +{ + + STDMETHOD(ProcessAnalysisResults)( + _In_reads_(analysisDataCount) CONST BYTE *analysisData, + UINT32 analysisDataCount + ) PURE; +}; // interface ID2D1AnalysisTransform + + +/// +/// The interface implemented by a transform author to provide a CPU based source +/// effect. +/// +interface DX_DECLARE_INTERFACE("db1800dd-0c34-4cf9-be90-31cc0a5653e1") ID2D1SourceTransform : public ID2D1Transform +{ + + STDMETHOD(SetRenderInfo)( + _In_ ID2D1RenderInfo *renderInfo + ) PURE; + + STDMETHOD(Draw)( + _In_ ID2D1Bitmap1 *target, + _In_ CONST D2D1_RECT_L *drawRect, + D2D1_POINT_2U targetOrigin + ) PURE; +}; // interface ID2D1SourceTransform + + +/// +/// Base interface for built-in transforms on which precision and caching may be +/// controlled. +/// +interface DX_DECLARE_INTERFACE("1a799d8a-69f7-4e4c-9fed-437ccc6684cc") ID2D1ConcreteTransform : public ID2D1TransformNode +{ + + /// + /// Controls the output precision and channel-depth for this transform. + /// + STDMETHOD(SetOutputBuffer)( + D2D1_BUFFER_PRECISION bufferPrecision, + D2D1_CHANNEL_DEPTH channelDepth + ) PURE; + + /// + /// Controls whether the output of this transform is cached. + /// + STDMETHOD_(void, SetCached)( + BOOL isCached + ) PURE; +}; // interface ID2D1ConcreteTransform + + +/// +/// An effect uses this interface to configure a blending operation. +/// +interface DX_DECLARE_INTERFACE("63ac0b32-ba44-450f-8806-7f4ca1ff2f1b") ID2D1BlendTransform : public ID2D1ConcreteTransform +{ + + STDMETHOD_(void, SetDescription)( + _In_ CONST D2D1_BLEND_DESCRIPTION *description + ) PURE; + + STDMETHOD_(void, GetDescription)( + _Out_ D2D1_BLEND_DESCRIPTION *description + ) CONST PURE; +}; // interface ID2D1BlendTransform + + +/// +/// An effect uses this interface to configure border generation. +/// +interface DX_DECLARE_INTERFACE("4998735c-3a19-473c-9781-656847e3a347") ID2D1BorderTransform : public ID2D1ConcreteTransform +{ + + STDMETHOD_(void, SetExtendModeX)( + D2D1_EXTEND_MODE extendMode + ) PURE; + + STDMETHOD_(void, SetExtendModeY)( + D2D1_EXTEND_MODE extendMode + ) PURE; + + STDMETHOD_(D2D1_EXTEND_MODE, GetExtendModeX)( + ) CONST PURE; + + STDMETHOD_(D2D1_EXTEND_MODE, GetExtendModeY)( + ) CONST PURE; +}; // interface ID2D1BorderTransform + + +/// +/// An effect uses this interface to offset an image without inserting a rendering +/// pass. +/// +interface DX_DECLARE_INTERFACE("3fe6adea-7643-4f53-bd14-a0ce63f24042") ID2D1OffsetTransform : public ID2D1TransformNode +{ + + STDMETHOD_(void, SetOffset)( + D2D1_POINT_2L offset + ) PURE; + + STDMETHOD_(D2D1_POINT_2L, GetOffset)( + ) CONST PURE; +}; // interface ID2D1OffsetTransform + + +/// +/// An effect uses this interface to alter the image rectangle of its input. +/// +interface DX_DECLARE_INTERFACE("90f732e2-5092-4606-a819-8651970baccd") ID2D1BoundsAdjustmentTransform : public ID2D1TransformNode +{ + + STDMETHOD_(void, SetOutputBounds)( + _In_ CONST D2D1_RECT_L *outputBounds + ) PURE; + + STDMETHOD_(void, GetOutputBounds)( + _Out_ D2D1_RECT_L *outputBounds + ) CONST PURE; +}; // interface ID2D1BoundsAdjustmentTransform + + +/// +/// This is the interface implemented by an effect author, along with the +/// constructor and registration information. +/// +interface DX_DECLARE_INTERFACE("a248fd3f-3e6c-4e63-9f03-7f68ecc91db9") ID2D1EffectImpl : public IUnknown +{ + + /// + /// Initialize the effect with a context and a transform graph. The effect must + /// populate the transform graph with a topology and can update it later. + /// + STDMETHOD(Initialize)( + _In_ ID2D1EffectContext *effectContext, + _In_ ID2D1TransformGraph *transformGraph + ) PURE; + + /// + /// Initialize the effect with a context and a transform graph. The effect must + /// populate the transform graph with a topology and can update it later. + /// + STDMETHOD(PrepareForRender)( + D2D1_CHANGE_TYPE changeType + ) PURE; + + /// + /// Sets a new transform graph to the effect. This happens when the number of + /// inputs to the effect changes, if the effect support a variable number of inputs. + /// + STDMETHOD(SetGraph)( + _In_ ID2D1TransformGraph *transformGraph + ) PURE; +}; // interface ID2D1EffectImpl + + +/// +/// The internal context handed to effect authors to create transforms from effects +/// and any other operation tied to context which is not useful to the application +/// facing API. +/// +interface DX_DECLARE_INTERFACE("3d9f916b-27dc-4ad7-b4f1-64945340f563") ID2D1EffectContext : public IUnknown +{ + + STDMETHOD_(void, GetDpi)( + _Out_ FLOAT *dpiX, + _Out_ FLOAT *dpiY + ) CONST PURE; + + /// + /// Create a new effect, the effect must either be built in or previously registered + /// through ID2D1Factory1::RegisterEffect. + /// + STDMETHOD(CreateEffect)( + _In_ REFCLSID effectId, + _COM_Outptr_ ID2D1Effect **effect + ) PURE; + + STDMETHOD(GetMaximumSupportedFeatureLevel)( + _In_reads_(featureLevelsCount) CONST D3D_FEATURE_LEVEL *featureLevels, + UINT32 featureLevelsCount, + _Out_ D3D_FEATURE_LEVEL *maximumSupportedFeatureLevel + ) CONST PURE; + + /// + /// Create a transform node from the passed in effect. + /// + STDMETHOD(CreateTransformNodeFromEffect)( + _In_ ID2D1Effect *effect, + _COM_Outptr_ ID2D1TransformNode **transformNode + ) PURE; + + STDMETHOD(CreateBlendTransform)( + UINT32 numInputs, + _In_ CONST D2D1_BLEND_DESCRIPTION *blendDescription, + _COM_Outptr_ ID2D1BlendTransform **transform + ) PURE; + + STDMETHOD(CreateBorderTransform)( + D2D1_EXTEND_MODE extendModeX, + D2D1_EXTEND_MODE extendModeY, + _COM_Outptr_ ID2D1BorderTransform **transform + ) PURE; + + STDMETHOD(CreateOffsetTransform)( + D2D1_POINT_2L offset, + _COM_Outptr_ ID2D1OffsetTransform **transform + ) PURE; + + STDMETHOD(CreateBoundsAdjustmentTransform)( + _In_ CONST D2D1_RECT_L *outputRectangle, + _COM_Outptr_ ID2D1BoundsAdjustmentTransform **transform + ) PURE; + + STDMETHOD(LoadPixelShader)( + REFGUID shaderId, + _In_reads_(shaderBufferCount) CONST BYTE *shaderBuffer, + UINT32 shaderBufferCount + ) PURE; + + STDMETHOD(LoadVertexShader)( + REFGUID resourceId, + _In_reads_(shaderBufferCount) CONST BYTE *shaderBuffer, + UINT32 shaderBufferCount + ) PURE; + + STDMETHOD(LoadComputeShader)( + REFGUID resourceId, + _In_reads_(shaderBufferCount) CONST BYTE *shaderBuffer, + UINT32 shaderBufferCount + ) PURE; + + STDMETHOD_(BOOL, IsShaderLoaded)( + REFGUID shaderId + ) PURE; + + STDMETHOD(CreateResourceTexture)( + _In_opt_ CONST GUID *resourceId, + _In_ CONST D2D1_RESOURCE_TEXTURE_PROPERTIES *resourceTextureProperties, + _In_reads_opt_(dataSize) CONST BYTE *data, + _In_reads_opt_(resourceTextureProperties->dimensions - 1) CONST UINT32 *strides, + UINT32 dataSize, + _COM_Outptr_ ID2D1ResourceTexture **resourceTexture + ) PURE; + + STDMETHOD(FindResourceTexture)( + _In_ CONST GUID *resourceId, + _COM_Outptr_ ID2D1ResourceTexture **resourceTexture + ) PURE; + + STDMETHOD(CreateVertexBuffer)( + _In_ CONST D2D1_VERTEX_BUFFER_PROPERTIES *vertexBufferProperties, + _In_opt_ CONST GUID *resourceId, + _In_opt_ CONST D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES *customVertexBufferProperties, + _COM_Outptr_ ID2D1VertexBuffer **buffer + ) PURE; + + STDMETHOD(FindVertexBuffer)( + _In_ CONST GUID *resourceId, + _COM_Outptr_ ID2D1VertexBuffer **buffer + ) PURE; + + /// + /// Creates a color context from a color space. If the space is Custom, the context + /// is initialized from the profile/profileSize arguments. Otherwise the context is + /// initialized with the profile bytes associated with the space and + /// profile/profileSize are ignored. + /// + STDMETHOD(CreateColorContext)( + D2D1_COLOR_SPACE space, + _In_reads_opt_(profileSize) CONST BYTE *profile, + UINT32 profileSize, + _COM_Outptr_ ID2D1ColorContext **colorContext + ) PURE; + + STDMETHOD(CreateColorContextFromFilename)( + _In_ PCWSTR filename, + _COM_Outptr_ ID2D1ColorContext **colorContext + ) PURE; + + STDMETHOD(CreateColorContextFromWicColorContext)( + _In_ IWICColorContext *wicColorContext, + _COM_Outptr_ ID2D1ColorContext **colorContext + ) PURE; + + STDMETHOD(CheckFeatureSupport)( + D2D1_FEATURE feature, + _Out_writes_bytes_(featureSupportDataSize) void *featureSupportData, + UINT32 featureSupportDataSize + ) CONST PURE; + + /// + /// Indicates whether the buffer precision is supported by D2D. + /// + STDMETHOD_(BOOL, IsBufferPrecisionSupported)( + D2D1_BUFFER_PRECISION bufferPrecision + ) CONST PURE; +}; // interface ID2D1EffectContext + + + +#endif + + +#ifdef D2D_USE_C_DEFINITIONS + + +typedef interface ID2D1VertexBuffer ID2D1VertexBuffer; + +typedef interface ID2D1ResourceTexture ID2D1ResourceTexture; + +typedef interface ID2D1RenderInfo ID2D1RenderInfo; + +typedef interface ID2D1DrawInfo ID2D1DrawInfo; + +typedef interface ID2D1ComputeInfo ID2D1ComputeInfo; + +typedef interface ID2D1TransformNode ID2D1TransformNode; + +typedef interface ID2D1TransformGraph ID2D1TransformGraph; + +typedef interface ID2D1Transform ID2D1Transform; + +typedef interface ID2D1DrawTransform ID2D1DrawTransform; + +typedef interface ID2D1ComputeTransform ID2D1ComputeTransform; + +typedef interface ID2D1AnalysisTransform ID2D1AnalysisTransform; + +typedef interface ID2D1SourceTransform ID2D1SourceTransform; + +typedef interface ID2D1ConcreteTransform ID2D1ConcreteTransform; + +typedef interface ID2D1BlendTransform ID2D1BlendTransform; + +typedef interface ID2D1BorderTransform ID2D1BorderTransform; + +typedef interface ID2D1OffsetTransform ID2D1OffsetTransform; + +typedef interface ID2D1BoundsAdjustmentTransform ID2D1BoundsAdjustmentTransform; + +typedef interface ID2D1EffectImpl ID2D1EffectImpl; + +typedef interface ID2D1EffectContext ID2D1EffectContext; + +#endif + +#include +#endif // #ifndef _D2D1_EFFECT_AUTHOR_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effectauthor_1.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effectauthor_1.h new file mode 100644 index 0000000000000000000000000000000000000000..d1e03a0eba848003f53f3761d90a8ef2403bf097 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effectauthor_1.h @@ -0,0 +1,98 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2D1EffectAuthor_1.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2D1_EFFECT_AUTHOR_1_H_ +#define _D2D1_EFFECT_AUTHOR_1_H_ + +#ifndef _D2D1_3_H_ +#include +#endif // #ifndef _D2D1_3_H_ +#ifndef _D2D1_EFFECT_AUTHOR_H_ +#include +#endif // #ifndef _D2D1_EFFECT_AUTHOR_H_ + +EXTERN_C CONST IID IID_ID2D1EffectContext1; +EXTERN_C CONST IID IID_ID2D1EffectContext2; + + +#ifndef D2D_USE_C_DEFINITIONS + + +/// +/// The internal context handed to effect authors to create transforms from effects +/// and any other operation tied to context which is not useful to the application +/// facing API. +/// +interface DX_DECLARE_INTERFACE("84ab595a-fc81-4546-bacd-e8ef4d8abe7a") ID2D1EffectContext1 : public ID2D1EffectContext +{ + + /// + /// Creates a 3D lookup table for mapping a 3-channel input to a 3-channel output. + /// The table data must be provided in 4-channel format. + /// + STDMETHOD(CreateLookupTable3D)( + D2D1_BUFFER_PRECISION precision, + _In_reads_(3) CONST UINT32 *extents, + _In_reads_(dataCount) CONST BYTE *data, + UINT32 dataCount, + _In_reads_(2) CONST UINT32 *strides, + _COM_Outptr_ ID2D1LookupTable3D **lookupTable + ) PURE; +}; // interface ID2D1EffectContext1 + + +#if NTDDI_VERSION >= NTDDI_WIN10_RS2 + +/// +/// The internal context handed to effect authors to create transforms from effects +/// and any other operation tied to context which is not useful to the application +/// facing API. +/// +interface DX_DECLARE_INTERFACE("577ad2a0-9fc7-4dda-8b18-dab810140052") ID2D1EffectContext2 : public ID2D1EffectContext1 +{ + + /// + /// Creates a color context from a DXGI color space type. It is only valid to use + /// this with the Color Management Effect in 'Best' mode. + /// + STDMETHOD(CreateColorContextFromDxgiColorSpace)( + DXGI_COLOR_SPACE_TYPE colorSpace, + _COM_Outptr_ ID2D1ColorContext1 **colorContext + ) PURE; + + /// + /// Creates a color context from a simple color profile. It is only valid to use + /// this with the Color Management Effect in 'Best' mode. + /// + STDMETHOD(CreateColorContextFromSimpleColorProfile)( + _In_ CONST D2D1_SIMPLE_COLOR_PROFILE *simpleProfile, + _COM_Outptr_ ID2D1ColorContext1 **colorContext + ) PURE; +}; // interface ID2D1EffectContext2 + + +#endif + +#endif + + +#ifdef D2D_USE_C_DEFINITIONS + + +typedef interface ID2D1EffectContext1 ID2D1EffectContext1; +#if NTDDI_VERSION >= NTDDI_WIN10_RS2 + +typedef interface ID2D1EffectContext2 ID2D1EffectContext2; +#endif + +#endif + +#endif // #ifndef _D2D1_EFFECT_AUTHOR_1_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effecthelpers.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effecthelpers.h new file mode 100644 index 0000000000000000000000000000000000000000..cf278aaace84f63b6ed2e7d7f3f0edfd174ad61c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effecthelpers.h @@ -0,0 +1,410 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// D2D helper functions for effect authors. +// +// File name: D2D1EffectHelpers.h +//--------------------------------------------------------------------------- +#pragma once + +#ifndef _D2D1_EFFECT_HELPERS_H_ +#define _D2D1_EFFECT_HELPERS_H_ + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#include + +//+----------------------------------------------------------------------------- +// +// Function: +// DeducingValueSetter +// +// Synopsis: +// Deduces the class and arguments and then calls a member-function property +// setter callback for a value-type property. +// +// This should not be called directly. +// +//-------------------------------------------------------------------------------- +template +HRESULT DeducingValueSetter( + _In_ HRESULT (C::*callback)(P), + _In_ I *effect, + _In_reads_(dataSize) const BYTE *data, + UINT32 dataSize + ) +{ + // We must exactly match the value-type's size. + if (dataSize != sizeof(P)) + { + return E_INVALIDARG; + } + + return (static_cast(effect)->*callback)(*reinterpret_cast(data)); +} + +//+----------------------------------------------------------------------------- +// +// Function: +// ValueSetter +// +// Synopsis: +// Calls a member-function property setter callback for a value-type property. +// +//-------------------------------------------------------------------------------- +template +HRESULT CALLBACK ValueSetter( + _In_ IUnknown *effect, + _In_reads_(dataSize) const BYTE *data, + UINT32 dataSize + ) +{ + // Cast through I to resolve multiple-inheritance ambiguities. + return DeducingValueSetter(P, static_cast(effect), data, dataSize); +} + +//+----------------------------------------------------------------------------- +// +// Function: +// DeducingValueGetter +// +// Synopsis: +// Deduces the class and arguments and then calls a member-function property +// getter callback for a value-type property. +// +// This should not be called directly. +// +//-------------------------------------------------------------------------------- +template +HRESULT DeducingValueGetter( + _In_ P (C::*callback)() const, + _In_ const I *effect, + _Out_writes_opt_(dataSize) BYTE *data, + UINT32 dataSize, + _Out_opt_ UINT32 *actualSize + ) +{ + if (actualSize) + { + *actualSize = sizeof(P); + } + + if (dataSize > 0 && data) + { + if (dataSize < sizeof(P)) + { + return E_NOT_SUFFICIENT_BUFFER; + } + + *reinterpret_cast

(data) = (static_cast(effect)->*callback)(); + } + + return S_OK; +} + +//+----------------------------------------------------------------------------- +// +// Function: +// ValueGetter +// +// Synopsis: +// Calls a member-function property setter callback for a value-type property. +// +//-------------------------------------------------------------------------------- +template +HRESULT CALLBACK ValueGetter( + _In_ const IUnknown *effect, + _Out_writes_opt_(dataSize) BYTE *data, + UINT32 dataSize, + _Out_opt_ UINT32 *actualSize + ) +{ + // Cast through I to resolve multiple-inheritance ambiguities. + return DeducingValueGetter(P, static_cast(effect), data, dataSize, actualSize); +} + +//+----------------------------------------------------------------------------- +// +// Function: +// DeducingBlobSetter +// +// Synopsis: +// Deduces the class and arguments and then calls a member-function property +// setter callback for a blob-type property. +// +// This should not be called directly. +// +//-------------------------------------------------------------------------------- +template +HRESULT DeducingBlobSetter( + _In_ HRESULT (C::*callback)(const BYTE *, UINT32), + _In_ I *effect, + _In_reads_(dataSize) const BYTE *data, + UINT32 dataSize + ) +{ + return (static_cast(effect)->*callback)(data, dataSize); +} + +//+----------------------------------------------------------------------------- +// +// Function: +// BlobSetter +// +// Synopsis: +// Calls a member-function property setter callback for a blob-type property. +// +//-------------------------------------------------------------------------------- +template +HRESULT CALLBACK BlobSetter( + _In_ IUnknown *effect, + _In_reads_(dataSize) const BYTE *data, + UINT32 dataSize + ) +{ + // Cast through I to resolve multiple-inheritance ambiguities. + return DeducingBlobSetter(P, static_cast(effect), data, dataSize); +} + +//+----------------------------------------------------------------------------- +// +// Function: +// DeducingBlobGetter +// +// Synopsis: +// Deduces the class and arguments and then calls a member-function property +// getter callback for a blob-type property. +// +// This should not be called directly. +// +//-------------------------------------------------------------------------------- +template +HRESULT DeducingBlobGetter( + _In_ HRESULT (C::*callback)(BYTE *, UINT32, UINT32*) const, + _In_ const I *effect, + _Out_writes_opt_(dataSize) BYTE *data, + UINT32 dataSize, + _Out_opt_ UINT32 *actualSize + ) +{ + return (static_cast(effect)->*callback)(data, dataSize, actualSize); +} + +//+----------------------------------------------------------------------------- +// +// Function: +// BlobGetter +// +// Synopsis: +// Calls a member-function property getter callback for a blob-type property. +// +//-------------------------------------------------------------------------------- +template +HRESULT CALLBACK BlobGetter( + _In_ const IUnknown *effect, + _Out_writes_opt_(dataSize) BYTE *data, + UINT32 dataSize, + _Out_opt_ UINT32 *actualSize + ) +{ + // Cast through I to resolve multiple-inheritance ambiguities. + return DeducingBlobGetter(P, static_cast(effect), data, dataSize, actualSize); +} + +//+----------------------------------------------------------------------------- +// +// Function: +// DeducingStringSetter +// +// Synopsis: +// Deduces the class and arguments and then calls a member-function property +// setter callback for a string-type property. +// +// This should not be called directly. +// +//-------------------------------------------------------------------------------- +template +HRESULT DeducingStringSetter( + _In_ HRESULT (C::*callback)(PCWSTR string), + _In_ I *effect, + _In_reads_(dataSize) const BYTE *data, + UINT32 dataSize + ) +{ + (void)dataSize; + + return (static_cast(effect)->*callback)(reinterpret_cast(data)); +} + +//+----------------------------------------------------------------------------- +// +// Function: +// StringSetter +// +// Synopsis: +// Calls a member-function property setter callback for a string-type property. +// +//-------------------------------------------------------------------------------- +template +HRESULT CALLBACK StringSetter( + _In_ IUnknown *effect, + _In_reads_(dataSize) const BYTE *data, + UINT32 dataSize + ) +{ + // Cast through I to resolve multiple-inheritance ambiguities. + return DeducingStringSetter(P, static_cast(effect), data, dataSize); +} + +//+----------------------------------------------------------------------------- +// +// Function: +// DeducingStringGetter +// +// Synopsis: +// Deduces the class and arguments and then calls a member-function property +// getter callback for a string-type property. +// +// This should not be called directly. +// +//-------------------------------------------------------------------------------- +template +HRESULT DeducingStringGetter( + _In_ HRESULT (C::*callback)(PWSTR, UINT32, UINT32*) const, + _In_ const I *effect, + _Out_writes_opt_(dataSize) BYTE *data, + UINT32 dataSize, + _Out_opt_ UINT32 *actualSize + ) +{ + UINT32 cchString = 0; + + HRESULT hr = (static_cast(effect)->*callback)(reinterpret_cast(data), dataSize / sizeof(WCHAR), &cchString); + + if ((SUCCEEDED(hr) || hr == E_NOT_SUFFICIENT_BUFFER) && actualSize) + { + *actualSize = cchString * sizeof(WCHAR); + } + + return hr; +} + +//+----------------------------------------------------------------------------- +// +// Function: +// StringGetter +// +// Synopsis: +// Calls a member-function property getter callback for a string-type property. +// +//-------------------------------------------------------------------------------- +template +HRESULT CALLBACK StringGetter( + _In_ const IUnknown *effect, + _Out_writes_opt_(dataSize) BYTE *data, + UINT32 dataSize, + _Out_opt_ UINT32 *actualSize + ) +{ + // Cast through I to resolve multiple-inheritance ambiguities. + return DeducingStringGetter(P, static_cast(effect), data, dataSize, actualSize); +} + +// +// Simpler versions of the helpers can be declared if decltype is available: +// +#if _MSC_VER >= 1600 +#define D2D1_SIMPLE_BINDING_MACROS +#endif + +#ifdef D2D1_SIMPLE_BINDING_MACROS + +// +// Helper to work around decltype issues: +// +template +T GetType(T t) { return t; }; + +// +// Helper macros for declaring a D2D1_PROPERTY_BINDING for value, blob, or string callbacks. +// +#define D2D1_VALUE_TYPE_BINDING(NAME, SETTER, GETTER) \ + { NAME, &ValueSetter, &ValueGetter } + +#define D2D1_BLOB_TYPE_BINDING(NAME, SETTER, GETTER) \ + { NAME, &BlobSetter, &BlobGetter } + +#define D2D1_STRING_TYPE_BINDING(NAME, SETTER, GETTER) \ + { NAME, &StringSetter, &StringGetter } + +// +// Read-only variants: +// +#define D2D1_READONLY_VALUE_TYPE_BINDING(NAME, GETTER) \ + { NAME, NULL, &ValueGetter } + +#define D2D1_READONLY_BLOB_TYPE_BINDING(NAME, GETTER) \ + { NAME, NULL, &BlobGetter } + +#define D2D1_READONLY_STRING_TYPE_BINDING(NAME, GETTER) \ + { NAME, NULL, &StringGetter } + +#else // #ifdef D2D1_SIMPLE_BINDING_MACROS + +// +// Helper macros for declaring a D2D1_PROPERTY_BINDING for value, blob, or string callbacks. +// +#define D2D1_VALUE_TYPE_BINDING(NAME, TYPE, CLASS, SETTER, GETTER) \ + { \ + NAME, \ + &ValueSetter, \ + &ValueGetter \ + } + +#define D2D1_BLOB_TYPE_BINDING(NAME, CLASS, SETTER, GETTER) \ + { \ + NAME, \ + &BlobSetter, \ + &BlobGetter \ + } + +#define D2D1_STRING_TYPE_BINDING(NAME, CLASS, SETTER, GETTER) \ + { \ + NAME, \ + &StringSetter, \ + &StringGetter \ + } + +// +// Read-only variants: +// +#define D2D1_READONLY_VALUE_TYPE_BINDING(NAME, TYPE, CLASS, GETTER) \ + { \ + NAME, \ + NULL, \ + &ValueGetter \ + } + +#define D2D1_READONLY_BLOB_TYPE_BINDING(NAME, CLASS, GETTER) \ + { \ + NAME, \ + NULL, \ + &BlobGetter \ + } + +#define D2D1_READONLY_STRING_TYPE_BINDING(NAME, CLASS, GETTER) \ + { \ + NAME, \ + NULL, \ + &StringGetter \ + } + +#endif // #ifdef D2D1_SIMPLE_BINDING_MACROS + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // #ifndef _D2D1_AUTHOR_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effecthelpers.hlsli b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effecthelpers.hlsli new file mode 100644 index 0000000000000000000000000000000000000000..37429723f94bee8c830fd0a7f7bebd0305d8a1ae --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effecthelpers.hlsli @@ -0,0 +1,316 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +//--------------------------------------------------------------------------- + +// File contents: +// - Helpers methods for authoring D2D Effect shader code. +// These are located at the end of the file (D2DGetInput, etc.). +// - The top portion contains definitions and initialization required by the helpers. +// These elements are prefaced with "__D2D" and can be safely ignored. +// +// To use these helpers, the following values must be defined before inclusion: +// D2D_INPUT_COUNT - The number of texture inputs to the effect. +// D2D_INPUT[N]_SIMPLE or D2D_INPUT[N]_COMPLEX - How the effect will sample each input. (If unspecificed, defaults to _COMPLEX.) +// D2D_ENTRY - The name of the entry point being compiled. This will usually be defined on the command line at compilation time. +// +// The following values can be optionally defined: +// D2D_FUNCTION - Compile the entry point as an export function. This will usually be defined on the command line at compilation time. +// D2D_FULL_SHADER - Compile the entry point as a full shader. This will usually be defined on the command line at compilation time. +// D2D_FULL_SHADER_ONLY - Only compile the in-scope entry points to full shaders, never to export functions. +// + +#define __D2D_DEFINE_PS_GLOBALS(inputIndex) \ +Texture2D InputTexture##inputIndex : register(t##inputIndex); \ +SamplerState InputSampler##inputIndex : register(s##inputIndex); \ + +// Define a texture and sampler pair for each D2D effect input. +#if (D2D_INPUT_COUNT >= 1) +__D2D_DEFINE_PS_GLOBALS(0) +#endif +#if (D2D_INPUT_COUNT >= 2) +__D2D_DEFINE_PS_GLOBALS(1) +#endif +#if (D2D_INPUT_COUNT >= 3) +__D2D_DEFINE_PS_GLOBALS(2) +#endif +#if (D2D_INPUT_COUNT >= 4) +__D2D_DEFINE_PS_GLOBALS(3) +#endif +#if (D2D_INPUT_COUNT >= 5) +__D2D_DEFINE_PS_GLOBALS(4) +#endif +#if (D2D_INPUT_COUNT >= 6) +__D2D_DEFINE_PS_GLOBALS(5) +#endif +#if (D2D_INPUT_COUNT >= 7) +__D2D_DEFINE_PS_GLOBALS(6) +#endif +#if (D2D_INPUT_COUNT >= 8) +__D2D_DEFINE_PS_GLOBALS(7) +#endif + +#define __D2D_MAXIMUM_INPUT_COUNT 8 + +// Validate that all required shader information has been defined. +#ifndef D2D_INPUT_COUNT +#error D2D_INPUT_COUNT is undefined. +#endif + +#if (D2D_INPUT_COUNT > __D2D_MAXIMUM_INPUT_COUNT) +#error D2D_INPUT_COUNT exceeds the maximum input count. +#endif + +// Define global statics to hold the values needed by intrinsic methods. +// These values are initialized by the entry point wrapper before calling into the +// effect's shader implementation. +#if !defined(D2D_FUNCTION) || defined(D2D_REQUIRES_SCENE_POSITION) +static float4 __d2dstatic_scenePos = float4(0, 0, 0, 0); +#endif + +#define __D2D_DEFINE_INPUT_STATICS(inputIndex) \ +static float4 __d2dstatic_input##inputIndex = float4(0, 0, 0, 0); \ +static float4 __d2dstatic_uv##inputIndex = float4(0, 0, 0, 0); \ + +#if (D2D_INPUT_COUNT >= 1) +__D2D_DEFINE_INPUT_STATICS(0) +#endif +#if (D2D_INPUT_COUNT >= 2) +__D2D_DEFINE_INPUT_STATICS(1) +#endif +#if (D2D_INPUT_COUNT >= 3) +__D2D_DEFINE_INPUT_STATICS(2) +#endif +#if (D2D_INPUT_COUNT >= 4) +__D2D_DEFINE_INPUT_STATICS(3) +#endif +#if (D2D_INPUT_COUNT >= 5) +__D2D_DEFINE_INPUT_STATICS(4) +#endif +#if (D2D_INPUT_COUNT >= 6) +__D2D_DEFINE_INPUT_STATICS(5) +#endif +#if (D2D_INPUT_COUNT >= 7) +__D2D_DEFINE_INPUT_STATICS(6) +#endif +#if (D2D_INPUT_COUNT >= 8) +__D2D_DEFINE_INPUT_STATICS(7) +#endif + +// Define the scene position parameter according to whether the shader requires it, +// and whether it is the only parameter. +// The scene position input always needs to be defined for full shaders. +#if (!defined(D2D_FUNCTION) || defined(D2D_REQUIRES_SCENE_POSITION)) +#if (D2D_INPUT_COUNT == 0) +#define __D2D_SCENE_POS float4 __d2dinput_scenePos : SCENE_POSITION +#define __D2D_INIT_STATIC_SCENE_POS __d2dstatic_scenePos = __d2dinput_scenePos +#else +#define __D2D_SCENE_POS float4 __d2dinput_scenePos : SCENE_POSITION, +#define __D2D_INIT_STATIC_SCENE_POS __d2dstatic_scenePos = __d2dinput_scenePos; + #endif +#else + #define __D2D_SCENE_POS + #define __D2D_INIT_STATIC_SCENE_POS +#endif + +// When compiling a function version, simple and complex inputs have different definitions. +// When compiling a full shader, they have the same definition. +// Access to input parameters also differs between functions and full shaders. +#if defined(D2D_FUNCTION) +#define __D2D_SIMPLE_INPUT(index) float4 __d2dinput_color##index : INPUT##index +#define __D2D_INIT_SIMPLE_STATIC(index) __d2dstatic_input##index = __d2dinput_color##index +#else +#define __D2D_SIMPLE_INPUT(index) float4 __d2dinput_uv##index : TEXCOORD##index +#define __D2D_INIT_SIMPLE_STATIC(index) __d2dstatic_uv##index = __d2dinput_uv##index +#endif + +#define __D2D_COMPLEX_INPUT(index) float4 __d2dinput_uv##index : TEXCOORD##index +#define __D2D_INIT_COMPLEX_STATIC(index) __d2dstatic_uv##index = __d2dinput_uv##index + +#define __D2D_SAMPLE_INPUT(index) InputTexture##index.Sample(InputSampler##index, __d2dstatic_uv##index.xy) + +// Define each input as either simple or complex. +#if defined(D2D_INPUT0_SIMPLE) +#define __D2D_INPUT0 __D2D_SIMPLE_INPUT(0) +#define __D2D_INIT_STATIC0 __D2D_INIT_SIMPLE_STATIC(0) +#define __D2D_GET_INPUT0 __d2dstatic_input0 +#else +#define __D2D_INPUT0 __D2D_COMPLEX_INPUT(0) +#define __D2D_INIT_STATIC0 __D2D_INIT_COMPLEX_STATIC(0) +#define __D2D_GET_INPUT0 __D2D_SAMPLE_INPUT(0) +#endif +#if defined(D2D_INPUT1_SIMPLE) +#define __D2D_INPUT1 __D2D_SIMPLE_INPUT(1) +#define __D2D_INIT_STATIC1 __D2D_INIT_SIMPLE_STATIC(1) +#define __D2D_GET_INPUT1 __d2dstatic_input1 +#else +#define __D2D_INPUT1 __D2D_COMPLEX_INPUT(1) +#define __D2D_INIT_STATIC1 __D2D_INIT_COMPLEX_STATIC(1) +#define __D2D_GET_INPUT1 __D2D_SAMPLE_INPUT(1) +#endif +#if defined(D2D_INPUT2_SIMPLE) +#define __D2D_INPUT2 __D2D_SIMPLE_INPUT(2) +#define __D2D_INIT_STATIC2 __D2D_INIT_SIMPLE_STATIC(2) +#define __D2D_GET_INPUT2 __d2dstatic_input2 +#else +#define __D2D_INPUT2 __D2D_COMPLEX_INPUT(2) +#define __D2D_INIT_STATIC2 __D2D_INIT_COMPLEX_STATIC(2) +#define __D2D_GET_INPUT2 __D2D_SAMPLE_INPUT(2) +#endif +#if defined(D2D_INPUT3_SIMPLE) +#define __D2D_INPUT3 __D2D_SIMPLE_INPUT(3) +#define __D2D_INIT_STATIC3 __D2D_INIT_SIMPLE_STATIC(3) +#define __D2D_GET_INPUT3 __d2dstatic_input3 +#else +#define __D2D_INPUT3 __D2D_COMPLEX_INPUT(3) +#define __D2D_INIT_STATIC3 __D2D_INIT_COMPLEX_STATIC(3) +#define __D2D_GET_INPUT3 __D2D_SAMPLE_INPUT(3) +#endif +#if defined(D2D_INPUT4_SIMPLE) +#define __D2D_INPUT4 __D2D_SIMPLE_INPUT(4) +#define __D2D_INIT_STATIC4 __D2D_INIT_SIMPLE_STATIC(4) +#define __D2D_GET_INPUT4 __d2dstatic_input4 +#else +#define __D2D_INPUT4 __D2D_COMPLEX_INPUT(4) +#define __D2D_INIT_STATIC4 __D2D_INIT_COMPLEX_STATIC(4) +#define __D2D_GET_INPUT4 __D2D_SAMPLE_INPUT(4) +#endif +#if defined(D2D_INPUT5_SIMPLE) +#define __D2D_INPUT5 __D2D_SIMPLE_INPUT(5) +#define __D2D_INIT_STATIC5 __D2D_INIT_SIMPLE_STATIC(5) +#define __D2D_GET_INPUT5 __d2dstatic_input5 +#else +#define __D2D_INPUT5 __D2D_COMPLEX_INPUT(5) +#define __D2D_INIT_STATIC5 __D2D_INIT_COMPLEX_STATIC(5) +#define __D2D_GET_INPUT5 __D2D_SAMPLE_INPUT(5) +#endif +#if defined(D2D_INPUT6_SIMPLE) +#define __D2D_INPUT6 __D2D_SIMPLE_INPUT(6) +#define __D2D_INIT_STATIC6 __D2D_INIT_SIMPLE_STATIC(6) +#define __D2D_GET_INPUT6 __d2dstatic_input6 +#else +#define __D2D_INPUT6 __D2D_COMPLEX_INPUT(6) +#define __D2D_INIT_STATIC6 __D2D_INIT_COMPLEX_STATIC(6) +#define __D2D_GET_INPUT6 __D2D_SAMPLE_INPUT(6) +#endif +#if defined(D2D_INPUT7_SIMPLE) +#define __D2D_INPUT7 __D2D_SIMPLE_INPUT(7) +#define __D2D_INIT_STATIC7 __D2D_INIT_SIMPLE_STATIC(7) +#define __D2D_GET_INPUT7 __d2dstatic_input7 +#else +#define __D2D_INPUT7 __D2D_COMPLEX_INPUT(7) +#define __D2D_INIT_STATIC7 __D2D_INIT_COMPLEX_STATIC(7) +#define __D2D_GET_INPUT7 __D2D_SAMPLE_INPUT(7) +#endif +#if defined(D2D_INPUT8_SIMPLE) +#define __D2D_INPUT8 __D2D_SIMPLE_INPUT(8) +#define __D2D_INIT_STATIC8 __D2D_INIT_SIMPLE_STATIC(8) +#define __D2D_GET_INPUT8 __d2dstatic_input8 +#else +#define __D2D_INPUT8 __D2D_COMPLEX_INPUT(8) +#define __D2D_INIT_STATIC8 __D2D_INIT_COMPLEX_STATIC(8) +#define __D2D_GET_INPUT8 __D2D_SAMPLE_INPUT(8) +#endif + +// Define the export function inputs based on the defined input count and types. +#if (D2D_INPUT_COUNT == 0) +#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS +#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS +#elif (D2D_INPUT_COUNT == 1) +#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0 +#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0 +#elif (D2D_INPUT_COUNT == 2) +#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1 +#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1 +#elif (D2D_INPUT_COUNT == 3) +#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2 +#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2 +#elif (D2D_INPUT_COUNT == 4) +#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3 +#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3 +#elif (D2D_INPUT_COUNT == 5) +#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4 +#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4 +#elif (D2D_INPUT_COUNT == 6) +#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4, __D2D_INPUT5 +#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4; __D2D_INIT_STATIC5 +#elif (D2D_INPUT_COUNT == 7) +#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4, __D2D_INPUT5, __D2D_INPUT6 +#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4; __D2D_INIT_STATIC5; __D2D_INIT_STATIC6 +#elif (D2D_INPUT_COUNT == 8) +#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4, __D2D_INPUT5, __D2D_INPUT6, __D2D_INPUT7 +#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4; __D2D_INIT_STATIC5; __D2D_INIT_STATIC6; __D2D_INIT_STATIC7 +#endif + +#if !defined(CONCAT) +#define CONCAT(str1, str2) str1##str2 +#endif + +// Rename the entry point target function so that the actual entry point can use the name. +// This expansion is the same for both full shaders and functions. +#define D2D_PS_ENTRY(name) float4 CONCAT(name, _Impl)() + +// If neither D2D_FUNCTION or D2D_FULL_SHADER is defined, behave as if D2D_FULL_SHADER is defined. +#if defined(D2D_FUNCTION) && !defined(D2D_FULL_SHADER_ONLY) + + // Replaces simple samples with either static variable or an actual sample, + // depending on whether the input is declared as simple or complex. + #define D2DGetInput(index) __D2D_GET_INPUT##index + + #if !defined(D2D_CUSTOM_ENTRY) + // Declare function prototype for the target function so that it can be referenced before definition. + // D2D_ENTRY is a macro whose actual name resolves to the effect's target "entry point" function. + float4 CONCAT(D2D_ENTRY, _Impl)(); + + // This is the actual entry point definition, which forwards the call to the target function. + export float4 D2D_func_entry(__D2D_FUNCTION_INPUTS) + { + __D2D_INIT_STATICS; + return CONCAT(D2D_ENTRY, _Impl)(); + } + + #endif + +#else // !defined(D2D_FUNCTION) + + // Replaces simple samples with actual samples. + #define D2DGetInput(index) __D2D_SAMPLE_INPUT(index) + + #if !defined(D2D_CUSTOM_ENTRY) + // Declare function prototype for the target function so that it can be referenced before definition. + // D2D_ENTRY is a macro whose actual name resolves to the effect's target "entry point" function. + float4 CONCAT(D2D_ENTRY, _Impl)(); + + // This is the actual entry point definition, which forwards the call to the target function. + float4 D2D_ENTRY (float4 pos : SV_POSITION, __D2D_FUNCTION_INPUTS) : SV_TARGET + { + __D2D_INIT_STATICS; + return CONCAT(D2D_ENTRY, _Impl)(); + } + + #endif + +#endif // D2D_FUNCTION + +//=============================================================== +// Along with D2DGetInput defined above, the following macros and +// methods define D2D intrinsics for use in effect shader code. +//=============================================================== + +#if !defined(D2D_FUNCTION) || defined(D2D_REQUIRES_SCENE_POSITION) +inline float4 D2DGetScenePosition() +{ + return __d2dstatic_scenePos; +} +#endif + +#define D2DGetInputCoordinate(index) __d2dstatic_uv##index + +#define D2DSampleInput(index, position) InputTexture##index.Sample(InputSampler##index, position) + +#define D2DSampleInputAtOffset(index, offset) InputTexture##index.Sample(InputSampler##index, __d2dstatic_uv##index.xy + offset * __d2dstatic_uv##index.zw) + +#define D2DSampleInputAtPosition(index, pos) InputTexture##index.Sample(InputSampler##index, __d2dstatic_uv##index.xy + __d2dstatic_uv##index.zw * (pos - __d2dstatic_scenePos.xy)) + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effects.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effects.h new file mode 100644 index 0000000000000000000000000000000000000000..16d17bef7fcc3db8376072362e27f65c41a69690 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effects.h @@ -0,0 +1,1971 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2D1Effects.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2D1_EFFECTS_ +#define _D2D1_EFFECTS_ + + + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +// Built in effect CLSIDs +DEFINE_GUID(CLSID_D2D12DAffineTransform, 0x6AA97485, 0x6354, 0x4cfc, 0x90, 0x8C, 0xE4, 0xA7, 0x4F, 0x62, 0xC9, 0x6C); +DEFINE_GUID(CLSID_D2D13DPerspectiveTransform, 0xC2844D0B, 0x3D86, 0x46e7, 0x85, 0xBA, 0x52, 0x6C, 0x92, 0x40, 0xF3, 0xFB); +DEFINE_GUID(CLSID_D2D13DTransform, 0xe8467b04, 0xec61, 0x4b8a, 0xb5, 0xde, 0xd4, 0xd7, 0x3d, 0xeb, 0xea, 0x5a); +DEFINE_GUID(CLSID_D2D1ArithmeticComposite, 0xfc151437, 0x049a, 0x4784, 0xa2, 0x4a, 0xf1, 0xc4, 0xda, 0xf2, 0x09, 0x87); +DEFINE_GUID(CLSID_D2D1Atlas, 0x913e2be4, 0xfdcf, 0x4fe2, 0xa5, 0xf0, 0x24, 0x54, 0xf1, 0x4f, 0xf4, 0x8); +DEFINE_GUID(CLSID_D2D1BitmapSource, 0x5fb6c24d, 0xc6dd, 0x4231, 0x94, 0x4, 0x50, 0xf4, 0xd5, 0xc3, 0x25, 0x2d); +DEFINE_GUID(CLSID_D2D1Blend, 0x81c5b77b, 0x13f8, 0x4cdd, 0xad, 0x20, 0xc8, 0x90, 0x54, 0x7a, 0xc6, 0x5d); +DEFINE_GUID(CLSID_D2D1Border, 0x2A2D49C0, 0x4ACF, 0x43c7, 0x8C, 0x6A, 0x7C, 0x4A, 0x27, 0x87, 0x4D, 0x27); +DEFINE_GUID(CLSID_D2D1Brightness, 0x8cea8d1e, 0x77b0, 0x4986, 0xb3, 0xb9, 0x2f, 0x0c, 0x0e, 0xae, 0x78, 0x87); +DEFINE_GUID(CLSID_D2D1ColorManagement, 0x1A28524C, 0xFDD6, 0x4AA4, 0xAE, 0x8F, 0x83, 0x7E, 0xB8, 0x26, 0x7B, 0x37); +DEFINE_GUID(CLSID_D2D1ColorMatrix, 0x921F03D6, 0x641C, 0x47DF, 0x85, 0x2D, 0xB4, 0xBB, 0x61, 0x53, 0xAE, 0x11); +DEFINE_GUID(CLSID_D2D1Composite, 0x48fc9f51, 0xf6ac, 0x48f1, 0x8b, 0x58, 0x3b, 0x28, 0xac, 0x46, 0xf7, 0x6d); +DEFINE_GUID(CLSID_D2D1ConvolveMatrix, 0x407f8c08, 0x5533, 0x4331, 0xa3, 0x41, 0x23, 0xcc, 0x38, 0x77, 0x84, 0x3e); +DEFINE_GUID(CLSID_D2D1Crop, 0xE23F7110, 0x0E9A, 0x4324, 0xAF, 0x47, 0x6A, 0x2C, 0x0C, 0x46, 0xF3, 0x5B); +DEFINE_GUID(CLSID_D2D1DirectionalBlur, 0x174319a6, 0x58e9, 0x49b2, 0xbb, 0x63, 0xca, 0xf2, 0xc8, 0x11, 0xa3, 0xdb); +DEFINE_GUID(CLSID_D2D1DiscreteTransfer, 0x90866fcd, 0x488e, 0x454b, 0xaf, 0x06, 0xe5, 0x04, 0x1b, 0x66, 0xc3, 0x6c); +DEFINE_GUID(CLSID_D2D1DisplacementMap, 0xedc48364, 0x417, 0x4111, 0x94, 0x50, 0x43, 0x84, 0x5f, 0xa9, 0xf8, 0x90); +DEFINE_GUID(CLSID_D2D1DistantDiffuse, 0x3e7efd62, 0xa32d, 0x46d4, 0xa8, 0x3c, 0x52, 0x78, 0x88, 0x9a, 0xc9, 0x54); +DEFINE_GUID(CLSID_D2D1DistantSpecular, 0x428c1ee5, 0x77b8, 0x4450, 0x8a, 0xb5, 0x72, 0x21, 0x9c, 0x21, 0xab, 0xda); +DEFINE_GUID(CLSID_D2D1DpiCompensation, 0x6c26c5c7, 0x34e0, 0x46fc, 0x9c, 0xfd, 0xe5, 0x82, 0x37, 0x6, 0xe2, 0x28); +DEFINE_GUID(CLSID_D2D1Flood, 0x61c23c20, 0xae69, 0x4d8e, 0x94, 0xcf, 0x50, 0x07, 0x8d, 0xf6, 0x38, 0xf2); +DEFINE_GUID(CLSID_D2D1GammaTransfer, 0x409444c4, 0xc419, 0x41a0, 0xb0, 0xc1, 0x8c, 0xd0, 0xc0, 0xa1, 0x8e, 0x42); +DEFINE_GUID(CLSID_D2D1GaussianBlur, 0x1feb6d69, 0x2fe6, 0x4ac9, 0x8c, 0x58, 0x1d, 0x7f, 0x93, 0xe7, 0xa6, 0xa5); +DEFINE_GUID(CLSID_D2D1Scale, 0x9daf9369, 0x3846, 0x4d0e, 0xa4, 0x4e, 0xc, 0x60, 0x79, 0x34, 0xa5, 0xd7); +DEFINE_GUID(CLSID_D2D1Histogram, 0x881db7d0, 0xf7ee, 0x4d4d, 0xa6, 0xd2, 0x46, 0x97, 0xac, 0xc6, 0x6e, 0xe8); +DEFINE_GUID(CLSID_D2D1HueRotation, 0x0f4458ec, 0x4b32, 0x491b, 0x9e, 0x85, 0xbd, 0x73, 0xf4, 0x4d, 0x3e, 0xb6); +DEFINE_GUID(CLSID_D2D1LinearTransfer, 0xad47c8fd, 0x63ef, 0x4acc, 0x9b, 0x51, 0x67, 0x97, 0x9c, 0x03, 0x6c, 0x06); +DEFINE_GUID(CLSID_D2D1LuminanceToAlpha, 0x41251ab7, 0x0beb, 0x46f8, 0x9d, 0xa7, 0x59, 0xe9, 0x3f, 0xcc, 0xe5, 0xde); +DEFINE_GUID(CLSID_D2D1Morphology, 0xeae6c40d, 0x626a, 0x4c2d, 0xbf, 0xcb, 0x39, 0x10, 0x01, 0xab, 0xe2, 0x02); +DEFINE_GUID(CLSID_D2D1OpacityMetadata, 0x6c53006a, 0x4450, 0x4199, 0xaa, 0x5b, 0xad, 0x16, 0x56, 0xfe, 0xce, 0x5e); +DEFINE_GUID(CLSID_D2D1PointDiffuse, 0xb9e303c3, 0xc08c, 0x4f91, 0x8b, 0x7b, 0x38, 0x65, 0x6b, 0xc4, 0x8c, 0x20); +DEFINE_GUID(CLSID_D2D1PointSpecular, 0x09c3ca26, 0x3ae2, 0x4f09, 0x9e, 0xbc, 0xed, 0x38, 0x65, 0xd5, 0x3f, 0x22); +DEFINE_GUID(CLSID_D2D1Premultiply, 0x06eab419, 0xdeed, 0x4018, 0x80, 0xd2, 0x3e, 0x1d, 0x47, 0x1a, 0xde, 0xb2); +DEFINE_GUID(CLSID_D2D1Saturation, 0x5cb2d9cf, 0x327d, 0x459f, 0xa0, 0xce, 0x40, 0xc0, 0xb2, 0x08, 0x6b, 0xf7); +DEFINE_GUID(CLSID_D2D1Shadow, 0xC67EA361, 0x1863, 0x4e69, 0x89, 0xDB, 0x69, 0x5D, 0x3E, 0x9A, 0x5B, 0x6B); +DEFINE_GUID(CLSID_D2D1SpotDiffuse, 0x818a1105, 0x7932, 0x44f4, 0xaa, 0x86, 0x08, 0xae, 0x7b, 0x2f, 0x2c, 0x93); +DEFINE_GUID(CLSID_D2D1SpotSpecular, 0xedae421e, 0x7654, 0x4a37, 0x9d, 0xb8, 0x71, 0xac, 0xc1, 0xbe, 0xb3, 0xc1); +DEFINE_GUID(CLSID_D2D1TableTransfer, 0x5bf818c3, 0x5e43, 0x48cb, 0xb6, 0x31, 0x86, 0x83, 0x96, 0xd6, 0xa1, 0xd4); +DEFINE_GUID(CLSID_D2D1Tile, 0xB0784138, 0x3B76, 0x4bc5, 0xB1, 0x3B, 0x0F, 0xA2, 0xAD, 0x02, 0x65, 0x9F); +DEFINE_GUID(CLSID_D2D1Turbulence, 0xCF2BB6AE, 0x889A, 0x4ad7, 0xBA, 0x29, 0xA2, 0xFD, 0x73, 0x2C, 0x9F, 0xC9); +DEFINE_GUID(CLSID_D2D1UnPremultiply, 0xfb9ac489, 0xad8d, 0x41ed, 0x99, 0x99, 0xbb, 0x63, 0x47, 0xd1, 0x10, 0xf7); + + +///

+/// Specifies how the Crop effect handles the crop rectangle falling on fractional +/// pixel coordinates. +/// +typedef enum D2D1_BORDER_MODE +{ + D2D1_BORDER_MODE_SOFT = 0, + D2D1_BORDER_MODE_HARD = 1, + D2D1_BORDER_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_BORDER_MODE; + + +/// +/// Specifies the color channel the Displacement map effect extracts the intensity +/// from and uses it to spatially displace the image in the X or Y direction. +/// +typedef enum D2D1_CHANNEL_SELECTOR +{ + D2D1_CHANNEL_SELECTOR_R = 0, + D2D1_CHANNEL_SELECTOR_G = 1, + D2D1_CHANNEL_SELECTOR_B = 2, + D2D1_CHANNEL_SELECTOR_A = 3, + D2D1_CHANNEL_SELECTOR_FORCE_DWORD = 0xffffffff + +} D2D1_CHANNEL_SELECTOR; + + +/// +/// Speficies whether a flip and/or rotation operation should be performed by the +/// Bitmap source effect +/// +typedef enum D2D1_BITMAPSOURCE_ORIENTATION +{ + D2D1_BITMAPSOURCE_ORIENTATION_DEFAULT = 1, + D2D1_BITMAPSOURCE_ORIENTATION_FLIP_HORIZONTAL = 2, + D2D1_BITMAPSOURCE_ORIENTATION_ROTATE_CLOCKWISE180 = 3, + D2D1_BITMAPSOURCE_ORIENTATION_ROTATE_CLOCKWISE180_FLIP_HORIZONTAL = 4, + D2D1_BITMAPSOURCE_ORIENTATION_ROTATE_CLOCKWISE270_FLIP_HORIZONTAL = 5, + D2D1_BITMAPSOURCE_ORIENTATION_ROTATE_CLOCKWISE90 = 6, + D2D1_BITMAPSOURCE_ORIENTATION_ROTATE_CLOCKWISE90_FLIP_HORIZONTAL = 7, + D2D1_BITMAPSOURCE_ORIENTATION_ROTATE_CLOCKWISE270 = 8, + D2D1_BITMAPSOURCE_ORIENTATION_FORCE_DWORD = 0xffffffff + +} D2D1_BITMAPSOURCE_ORIENTATION; + + +/// +/// The enumeration of the Gaussian Blur effect's top level properties. +/// Effect description: Applies a gaussian blur to a bitmap with the specified blur +/// radius and angle. +/// +typedef enum D2D1_GAUSSIANBLUR_PROP +{ + + /// + /// Property Name: "StandardDeviation" + /// Property Type: FLOAT + /// + D2D1_GAUSSIANBLUR_PROP_STANDARD_DEVIATION = 0, + + /// + /// Property Name: "Optimization" + /// Property Type: D2D1_GAUSSIANBLUR_OPTIMIZATION + /// + D2D1_GAUSSIANBLUR_PROP_OPTIMIZATION = 1, + + /// + /// Property Name: "BorderMode" + /// Property Type: D2D1_BORDER_MODE + /// + D2D1_GAUSSIANBLUR_PROP_BORDER_MODE = 2, + D2D1_GAUSSIANBLUR_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_GAUSSIANBLUR_PROP; + +typedef enum D2D1_GAUSSIANBLUR_OPTIMIZATION +{ + D2D1_GAUSSIANBLUR_OPTIMIZATION_SPEED = 0, + D2D1_GAUSSIANBLUR_OPTIMIZATION_BALANCED = 1, + D2D1_GAUSSIANBLUR_OPTIMIZATION_QUALITY = 2, + D2D1_GAUSSIANBLUR_OPTIMIZATION_FORCE_DWORD = 0xffffffff + +} D2D1_GAUSSIANBLUR_OPTIMIZATION; + + +/// +/// The enumeration of the Directional Blur effect's top level properties. +/// Effect description: Applies a directional blur to a bitmap with the specified +/// blur radius and angle. +/// +typedef enum D2D1_DIRECTIONALBLUR_PROP +{ + + /// + /// Property Name: "StandardDeviation" + /// Property Type: FLOAT + /// + D2D1_DIRECTIONALBLUR_PROP_STANDARD_DEVIATION = 0, + + /// + /// Property Name: "Angle" + /// Property Type: FLOAT + /// + D2D1_DIRECTIONALBLUR_PROP_ANGLE = 1, + + /// + /// Property Name: "Optimization" + /// Property Type: D2D1_DIRECTIONALBLUR_OPTIMIZATION + /// + D2D1_DIRECTIONALBLUR_PROP_OPTIMIZATION = 2, + + /// + /// Property Name: "BorderMode" + /// Property Type: D2D1_BORDER_MODE + /// + D2D1_DIRECTIONALBLUR_PROP_BORDER_MODE = 3, + D2D1_DIRECTIONALBLUR_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_DIRECTIONALBLUR_PROP; + +typedef enum D2D1_DIRECTIONALBLUR_OPTIMIZATION +{ + D2D1_DIRECTIONALBLUR_OPTIMIZATION_SPEED = 0, + D2D1_DIRECTIONALBLUR_OPTIMIZATION_BALANCED = 1, + D2D1_DIRECTIONALBLUR_OPTIMIZATION_QUALITY = 2, + D2D1_DIRECTIONALBLUR_OPTIMIZATION_FORCE_DWORD = 0xffffffff + +} D2D1_DIRECTIONALBLUR_OPTIMIZATION; + + +/// +/// The enumeration of the Shadow effect's top level properties. +/// Effect description: Applies a shadow to a bitmap based on its alpha channel. +/// +typedef enum D2D1_SHADOW_PROP +{ + + /// + /// Property Name: "BlurStandardDeviation" + /// Property Type: FLOAT + /// + D2D1_SHADOW_PROP_BLUR_STANDARD_DEVIATION = 0, + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_4F + /// + D2D1_SHADOW_PROP_COLOR = 1, + + /// + /// Property Name: "Optimization" + /// Property Type: D2D1_SHADOW_OPTIMIZATION + /// + D2D1_SHADOW_PROP_OPTIMIZATION = 2, + D2D1_SHADOW_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_SHADOW_PROP; + +typedef enum D2D1_SHADOW_OPTIMIZATION +{ + D2D1_SHADOW_OPTIMIZATION_SPEED = 0, + D2D1_SHADOW_OPTIMIZATION_BALANCED = 1, + D2D1_SHADOW_OPTIMIZATION_QUALITY = 2, + D2D1_SHADOW_OPTIMIZATION_FORCE_DWORD = 0xffffffff + +} D2D1_SHADOW_OPTIMIZATION; + + +/// +/// The enumeration of the Blend effect's top level properties. +/// Effect description: Blends a foreground and background using a pre-defined blend +/// mode. +/// +typedef enum D2D1_BLEND_PROP +{ + + /// + /// Property Name: "Mode" + /// Property Type: D2D1_BLEND_MODE + /// + D2D1_BLEND_PROP_MODE = 0, + D2D1_BLEND_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_BLEND_PROP; + +typedef enum D2D1_BLEND_MODE +{ + D2D1_BLEND_MODE_MULTIPLY = 0, + D2D1_BLEND_MODE_SCREEN = 1, + D2D1_BLEND_MODE_DARKEN = 2, + D2D1_BLEND_MODE_LIGHTEN = 3, + D2D1_BLEND_MODE_DISSOLVE = 4, + D2D1_BLEND_MODE_COLOR_BURN = 5, + D2D1_BLEND_MODE_LINEAR_BURN = 6, + D2D1_BLEND_MODE_DARKER_COLOR = 7, + D2D1_BLEND_MODE_LIGHTER_COLOR = 8, + D2D1_BLEND_MODE_COLOR_DODGE = 9, + D2D1_BLEND_MODE_LINEAR_DODGE = 10, + D2D1_BLEND_MODE_OVERLAY = 11, + D2D1_BLEND_MODE_SOFT_LIGHT = 12, + D2D1_BLEND_MODE_HARD_LIGHT = 13, + D2D1_BLEND_MODE_VIVID_LIGHT = 14, + D2D1_BLEND_MODE_LINEAR_LIGHT = 15, + D2D1_BLEND_MODE_PIN_LIGHT = 16, + D2D1_BLEND_MODE_HARD_MIX = 17, + D2D1_BLEND_MODE_DIFFERENCE = 18, + D2D1_BLEND_MODE_EXCLUSION = 19, + D2D1_BLEND_MODE_HUE = 20, + D2D1_BLEND_MODE_SATURATION = 21, + D2D1_BLEND_MODE_COLOR = 22, + D2D1_BLEND_MODE_LUMINOSITY = 23, + D2D1_BLEND_MODE_SUBTRACT = 24, + D2D1_BLEND_MODE_DIVISION = 25, + D2D1_BLEND_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_BLEND_MODE; + + +/// +/// The enumeration of the Saturation effect's top level properties. +/// Effect description: Alters the saturation of the bitmap based on the user +/// specified saturation value. +/// +typedef enum D2D1_SATURATION_PROP +{ + + /// + /// Property Name: "Saturation" + /// Property Type: FLOAT + /// + D2D1_SATURATION_PROP_SATURATION = 0, + D2D1_SATURATION_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_SATURATION_PROP; + + +/// +/// The enumeration of the Hue Rotation effect's top level properties. +/// Effect description: Changes the Hue of a bitmap based on a user specified Hue +/// Rotation angle. +/// +typedef enum D2D1_HUEROTATION_PROP +{ + + /// + /// Property Name: "Angle" + /// Property Type: FLOAT + /// + D2D1_HUEROTATION_PROP_ANGLE = 0, + D2D1_HUEROTATION_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_HUEROTATION_PROP; + + +/// +/// The enumeration of the Color Matrix effect's top level properties. +/// Effect description: Applies a user specified color matrix to each channel of the +/// input bitmap. +/// +typedef enum D2D1_COLORMATRIX_PROP +{ + + /// + /// Property Name: "ColorMatrix" + /// Property Type: D2D1_MATRIX_5X4_F + /// + D2D1_COLORMATRIX_PROP_COLOR_MATRIX = 0, + + /// + /// Property Name: "AlphaMode" + /// Property Type: D2D1_COLORMATRIX_ALPHA_MODE + /// + D2D1_COLORMATRIX_PROP_ALPHA_MODE = 1, + + /// + /// Property Name: "ClampOutput" + /// Property Type: BOOL + /// + D2D1_COLORMATRIX_PROP_CLAMP_OUTPUT = 2, + D2D1_COLORMATRIX_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_COLORMATRIX_PROP; + +typedef enum D2D1_COLORMATRIX_ALPHA_MODE +{ + D2D1_COLORMATRIX_ALPHA_MODE_PREMULTIPLIED = 1, + D2D1_COLORMATRIX_ALPHA_MODE_STRAIGHT = 2, + D2D1_COLORMATRIX_ALPHA_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_COLORMATRIX_ALPHA_MODE; + + +/// +/// The enumeration of the Bitmap Source effect's top level properties. +/// Effect description: Provides an image source. +/// +typedef enum D2D1_BITMAPSOURCE_PROP +{ + + /// + /// Property Name: "WicBitmapSource" + /// Property Type: IUnknown * + /// + D2D1_BITMAPSOURCE_PROP_WIC_BITMAP_SOURCE = 0, + + /// + /// Property Name: "Scale" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_BITMAPSOURCE_PROP_SCALE = 1, + + /// + /// Property Name: "InterpolationMode" + /// Property Type: D2D1_BITMAPSOURCE_INTERPOLATION_MODE + /// + D2D1_BITMAPSOURCE_PROP_INTERPOLATION_MODE = 2, + + /// + /// Property Name: "EnableDPICorrection" + /// Property Type: BOOL + /// + D2D1_BITMAPSOURCE_PROP_ENABLE_DPI_CORRECTION = 3, + + /// + /// Property Name: "AlphaMode" + /// Property Type: D2D1_BITMAPSOURCE_ALPHA_MODE + /// + D2D1_BITMAPSOURCE_PROP_ALPHA_MODE = 4, + + /// + /// Property Name: "Orientation" + /// Property Type: D2D1_BITMAPSOURCE_ORIENTATION + /// + D2D1_BITMAPSOURCE_PROP_ORIENTATION = 5, + D2D1_BITMAPSOURCE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_BITMAPSOURCE_PROP; + +typedef enum D2D1_BITMAPSOURCE_INTERPOLATION_MODE +{ + D2D1_BITMAPSOURCE_INTERPOLATION_MODE_NEAREST_NEIGHBOR = 0, + D2D1_BITMAPSOURCE_INTERPOLATION_MODE_LINEAR = 1, + D2D1_BITMAPSOURCE_INTERPOLATION_MODE_CUBIC = 2, + D2D1_BITMAPSOURCE_INTERPOLATION_MODE_FANT = 6, + D2D1_BITMAPSOURCE_INTERPOLATION_MODE_MIPMAP_LINEAR = 7, + D2D1_BITMAPSOURCE_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_BITMAPSOURCE_INTERPOLATION_MODE; + +typedef enum D2D1_BITMAPSOURCE_ALPHA_MODE +{ + D2D1_BITMAPSOURCE_ALPHA_MODE_PREMULTIPLIED = 1, + D2D1_BITMAPSOURCE_ALPHA_MODE_STRAIGHT = 2, + D2D1_BITMAPSOURCE_ALPHA_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_BITMAPSOURCE_ALPHA_MODE; + + +/// +/// The enumeration of the Composite effect's top level properties. +/// Effect description: Composites foreground and background images using the +/// selected composition mode. +/// +typedef enum D2D1_COMPOSITE_PROP +{ + + /// + /// Property Name: "Mode" + /// Property Type: D2D1_COMPOSITE_MODE + /// + D2D1_COMPOSITE_PROP_MODE = 0, + D2D1_COMPOSITE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_COMPOSITE_PROP; + + +/// +/// The enumeration of the 3D Transform effect's top level properties. +/// Effect description: Applies a 3D transform to a bitmap. +/// +typedef enum D2D1_3DTRANSFORM_PROP +{ + + /// + /// Property Name: "InterpolationMode" + /// Property Type: D2D1_3DTRANSFORM_INTERPOLATION_MODE + /// + D2D1_3DTRANSFORM_PROP_INTERPOLATION_MODE = 0, + + /// + /// Property Name: "BorderMode" + /// Property Type: D2D1_BORDER_MODE + /// + D2D1_3DTRANSFORM_PROP_BORDER_MODE = 1, + + /// + /// Property Name: "TransformMatrix" + /// Property Type: D2D1_MATRIX_4X4_F + /// + D2D1_3DTRANSFORM_PROP_TRANSFORM_MATRIX = 2, + D2D1_3DTRANSFORM_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_3DTRANSFORM_PROP; + +typedef enum D2D1_3DTRANSFORM_INTERPOLATION_MODE +{ + D2D1_3DTRANSFORM_INTERPOLATION_MODE_NEAREST_NEIGHBOR = 0, + D2D1_3DTRANSFORM_INTERPOLATION_MODE_LINEAR = 1, + D2D1_3DTRANSFORM_INTERPOLATION_MODE_CUBIC = 2, + D2D1_3DTRANSFORM_INTERPOLATION_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_3DTRANSFORM_INTERPOLATION_MODE_ANISOTROPIC = 4, + D2D1_3DTRANSFORM_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_3DTRANSFORM_INTERPOLATION_MODE; + + +/// +/// The enumeration of the 3D Perspective Transform effect's top level properties. +/// Effect description: Applies a 3D perspective transform to a bitmap. +/// +typedef enum D2D1_3DPERSPECTIVETRANSFORM_PROP +{ + + /// + /// Property Name: "InterpolationMode" + /// Property Type: D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE + /// + D2D1_3DPERSPECTIVETRANSFORM_PROP_INTERPOLATION_MODE = 0, + + /// + /// Property Name: "BorderMode" + /// Property Type: D2D1_BORDER_MODE + /// + D2D1_3DPERSPECTIVETRANSFORM_PROP_BORDER_MODE = 1, + + /// + /// Property Name: "Depth" + /// Property Type: FLOAT + /// + D2D1_3DPERSPECTIVETRANSFORM_PROP_DEPTH = 2, + + /// + /// Property Name: "PerspectiveOrigin" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_3DPERSPECTIVETRANSFORM_PROP_PERSPECTIVE_ORIGIN = 3, + + /// + /// Property Name: "LocalOffset" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_3DPERSPECTIVETRANSFORM_PROP_LOCAL_OFFSET = 4, + + /// + /// Property Name: "GlobalOffset" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_3DPERSPECTIVETRANSFORM_PROP_GLOBAL_OFFSET = 5, + + /// + /// Property Name: "RotationOrigin" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_3DPERSPECTIVETRANSFORM_PROP_ROTATION_ORIGIN = 6, + + /// + /// Property Name: "Rotation" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_3DPERSPECTIVETRANSFORM_PROP_ROTATION = 7, + D2D1_3DPERSPECTIVETRANSFORM_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_3DPERSPECTIVETRANSFORM_PROP; + +typedef enum D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE +{ + D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE_NEAREST_NEIGHBOR = 0, + D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE_LINEAR = 1, + D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE_CUBIC = 2, + D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE_ANISOTROPIC = 4, + D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE; + + +/// +/// The enumeration of the 2D Affine Transform effect's top level properties. +/// Effect description: Applies a 2D affine transform to a bitmap. +/// +typedef enum D2D1_2DAFFINETRANSFORM_PROP +{ + + /// + /// Property Name: "InterpolationMode" + /// Property Type: D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE + /// + D2D1_2DAFFINETRANSFORM_PROP_INTERPOLATION_MODE = 0, + + /// + /// Property Name: "BorderMode" + /// Property Type: D2D1_BORDER_MODE + /// + D2D1_2DAFFINETRANSFORM_PROP_BORDER_MODE = 1, + + /// + /// Property Name: "TransformMatrix" + /// Property Type: D2D1_MATRIX_3X2_F + /// + D2D1_2DAFFINETRANSFORM_PROP_TRANSFORM_MATRIX = 2, + + /// + /// Property Name: "Sharpness" + /// Property Type: FLOAT + /// + D2D1_2DAFFINETRANSFORM_PROP_SHARPNESS = 3, + D2D1_2DAFFINETRANSFORM_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_2DAFFINETRANSFORM_PROP; + +typedef enum D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE +{ + D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_NEAREST_NEIGHBOR = 0, + D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_LINEAR = 1, + D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_CUBIC = 2, + D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_ANISOTROPIC = 4, + D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE; + + +/// +/// The enumeration of the DPI Compensation effect's top level properties. +/// Effect description: Scales according to the input DPI and the current context +/// DPI +/// +typedef enum D2D1_DPICOMPENSATION_PROP +{ + + /// + /// Property Name: "InterpolationMode" + /// Property Type: D2D1_DPICOMPENSATION_INTERPOLATION_MODE + /// + D2D1_DPICOMPENSATION_PROP_INTERPOLATION_MODE = 0, + + /// + /// Property Name: "BorderMode" + /// Property Type: D2D1_BORDER_MODE + /// + D2D1_DPICOMPENSATION_PROP_BORDER_MODE = 1, + + /// + /// Property Name: "InputDpi" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_DPICOMPENSATION_PROP_INPUT_DPI = 2, + D2D1_DPICOMPENSATION_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_DPICOMPENSATION_PROP; + +typedef enum D2D1_DPICOMPENSATION_INTERPOLATION_MODE +{ + D2D1_DPICOMPENSATION_INTERPOLATION_MODE_NEAREST_NEIGHBOR = 0, + D2D1_DPICOMPENSATION_INTERPOLATION_MODE_LINEAR = 1, + D2D1_DPICOMPENSATION_INTERPOLATION_MODE_CUBIC = 2, + D2D1_DPICOMPENSATION_INTERPOLATION_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_DPICOMPENSATION_INTERPOLATION_MODE_ANISOTROPIC = 4, + D2D1_DPICOMPENSATION_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_DPICOMPENSATION_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_DPICOMPENSATION_INTERPOLATION_MODE; + + +/// +/// The enumeration of the Scale effect's top level properties. +/// Effect description: Applies scaling operation to the bitmap. +/// +typedef enum D2D1_SCALE_PROP +{ + + /// + /// Property Name: "Scale" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_SCALE_PROP_SCALE = 0, + + /// + /// Property Name: "CenterPoint" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_SCALE_PROP_CENTER_POINT = 1, + + /// + /// Property Name: "InterpolationMode" + /// Property Type: D2D1_SCALE_INTERPOLATION_MODE + /// + D2D1_SCALE_PROP_INTERPOLATION_MODE = 2, + + /// + /// Property Name: "BorderMode" + /// Property Type: D2D1_BORDER_MODE + /// + D2D1_SCALE_PROP_BORDER_MODE = 3, + + /// + /// Property Name: "Sharpness" + /// Property Type: FLOAT + /// + D2D1_SCALE_PROP_SHARPNESS = 4, + D2D1_SCALE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_SCALE_PROP; + +typedef enum D2D1_SCALE_INTERPOLATION_MODE +{ + D2D1_SCALE_INTERPOLATION_MODE_NEAREST_NEIGHBOR = 0, + D2D1_SCALE_INTERPOLATION_MODE_LINEAR = 1, + D2D1_SCALE_INTERPOLATION_MODE_CUBIC = 2, + D2D1_SCALE_INTERPOLATION_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_SCALE_INTERPOLATION_MODE_ANISOTROPIC = 4, + D2D1_SCALE_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_SCALE_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_SCALE_INTERPOLATION_MODE; + + +/// +/// The enumeration of the Turbulence effect's top level properties. +/// Effect description: Generates a bitmap based on the Perlin noise turbulence +/// function. +/// +typedef enum D2D1_TURBULENCE_PROP +{ + + /// + /// Property Name: "Offset" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_TURBULENCE_PROP_OFFSET = 0, + + /// + /// Property Name: "Size" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_TURBULENCE_PROP_SIZE = 1, + + /// + /// Property Name: "BaseFrequency" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_TURBULENCE_PROP_BASE_FREQUENCY = 2, + + /// + /// Property Name: "NumOctaves" + /// Property Type: UINT32 + /// + D2D1_TURBULENCE_PROP_NUM_OCTAVES = 3, + + /// + /// Property Name: "Seed" + /// Property Type: INT32 + /// + D2D1_TURBULENCE_PROP_SEED = 4, + + /// + /// Property Name: "Noise" + /// Property Type: D2D1_TURBULENCE_NOISE + /// + D2D1_TURBULENCE_PROP_NOISE = 5, + + /// + /// Property Name: "Stitchable" + /// Property Type: BOOL + /// + D2D1_TURBULENCE_PROP_STITCHABLE = 6, + D2D1_TURBULENCE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_TURBULENCE_PROP; + +typedef enum D2D1_TURBULENCE_NOISE +{ + D2D1_TURBULENCE_NOISE_FRACTAL_SUM = 0, + D2D1_TURBULENCE_NOISE_TURBULENCE = 1, + D2D1_TURBULENCE_NOISE_FORCE_DWORD = 0xffffffff + +} D2D1_TURBULENCE_NOISE; + + +/// +/// The enumeration of the Displacement Map effect's top level properties. +/// Effect description: Displaces a bitmap based on user specified setting and +/// another bitmap. +/// +typedef enum D2D1_DISPLACEMENTMAP_PROP +{ + + /// + /// Property Name: "Scale" + /// Property Type: FLOAT + /// + D2D1_DISPLACEMENTMAP_PROP_SCALE = 0, + + /// + /// Property Name: "XChannelSelect" + /// Property Type: D2D1_CHANNEL_SELECTOR + /// + D2D1_DISPLACEMENTMAP_PROP_X_CHANNEL_SELECT = 1, + + /// + /// Property Name: "YChannelSelect" + /// Property Type: D2D1_CHANNEL_SELECTOR + /// + D2D1_DISPLACEMENTMAP_PROP_Y_CHANNEL_SELECT = 2, + D2D1_DISPLACEMENTMAP_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_DISPLACEMENTMAP_PROP; + + +/// +/// The enumeration of the Color Management effect's top level properties. +/// Effect description: Changes colors based on user provided color contexts. +/// +typedef enum D2D1_COLORMANAGEMENT_PROP +{ + + /// + /// Property Name: "SourceColorContext" + /// Property Type: ID2D1ColorContext * + /// + D2D1_COLORMANAGEMENT_PROP_SOURCE_COLOR_CONTEXT = 0, + + /// + /// Property Name: "SourceRenderingIntent" + /// Property Type: D2D1_RENDERING_INTENT + /// + D2D1_COLORMANAGEMENT_PROP_SOURCE_RENDERING_INTENT = 1, + + /// + /// Property Name: "DestinationColorContext" + /// Property Type: ID2D1ColorContext * + /// + D2D1_COLORMANAGEMENT_PROP_DESTINATION_COLOR_CONTEXT = 2, + + /// + /// Property Name: "DestinationRenderingIntent" + /// Property Type: D2D1_RENDERING_INTENT + /// + D2D1_COLORMANAGEMENT_PROP_DESTINATION_RENDERING_INTENT = 3, + + /// + /// Property Name: "AlphaMode" + /// Property Type: D2D1_COLORMANAGEMENT_ALPHA_MODE + /// + D2D1_COLORMANAGEMENT_PROP_ALPHA_MODE = 4, + + /// + /// Property Name: "Quality" + /// Property Type: D2D1_COLORMANAGEMENT_QUALITY + /// + D2D1_COLORMANAGEMENT_PROP_QUALITY = 5, + D2D1_COLORMANAGEMENT_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_COLORMANAGEMENT_PROP; + +typedef enum D2D1_COLORMANAGEMENT_ALPHA_MODE +{ + D2D1_COLORMANAGEMENT_ALPHA_MODE_PREMULTIPLIED = 1, + D2D1_COLORMANAGEMENT_ALPHA_MODE_STRAIGHT = 2, + D2D1_COLORMANAGEMENT_ALPHA_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_COLORMANAGEMENT_ALPHA_MODE; + +typedef enum D2D1_COLORMANAGEMENT_QUALITY +{ + D2D1_COLORMANAGEMENT_QUALITY_PROOF = 0, + D2D1_COLORMANAGEMENT_QUALITY_NORMAL = 1, + D2D1_COLORMANAGEMENT_QUALITY_BEST = 2, + D2D1_COLORMANAGEMENT_QUALITY_FORCE_DWORD = 0xffffffff + +} D2D1_COLORMANAGEMENT_QUALITY; + + +/// +/// Specifies which ICC rendering intent the Color management effect should use. +/// +typedef enum D2D1_COLORMANAGEMENT_RENDERING_INTENT +{ + D2D1_COLORMANAGEMENT_RENDERING_INTENT_PERCEPTUAL = 0, + D2D1_COLORMANAGEMENT_RENDERING_INTENT_RELATIVE_COLORIMETRIC = 1, + D2D1_COLORMANAGEMENT_RENDERING_INTENT_SATURATION = 2, + D2D1_COLORMANAGEMENT_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 3, + D2D1_COLORMANAGEMENT_RENDERING_INTENT_FORCE_DWORD = 0xffffffff + +} D2D1_COLORMANAGEMENT_RENDERING_INTENT; + + +/// +/// The enumeration of the Histogram effect's top level properties. +/// Effect description: Computes the histogram of an image. +/// +typedef enum D2D1_HISTOGRAM_PROP +{ + + /// + /// Property Name: "NumBins" + /// Property Type: UINT32 + /// + D2D1_HISTOGRAM_PROP_NUM_BINS = 0, + + /// + /// Property Name: "ChannelSelect" + /// Property Type: D2D1_CHANNEL_SELECTOR + /// + D2D1_HISTOGRAM_PROP_CHANNEL_SELECT = 1, + + /// + /// Property Name: "HistogramOutput" + /// Property Type: (blob) + /// + D2D1_HISTOGRAM_PROP_HISTOGRAM_OUTPUT = 2, + D2D1_HISTOGRAM_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_HISTOGRAM_PROP; + + +/// +/// The enumeration of the Point-Specular effect's top level properties. +/// Effect description: Creates a specular lighting effect with a point light +/// source. +/// +typedef enum D2D1_POINTSPECULAR_PROP +{ + + /// + /// Property Name: "LightPosition" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_POINTSPECULAR_PROP_LIGHT_POSITION = 0, + + /// + /// Property Name: "SpecularExponent" + /// Property Type: FLOAT + /// + D2D1_POINTSPECULAR_PROP_SPECULAR_EXPONENT = 1, + + /// + /// Property Name: "SpecularConstant" + /// Property Type: FLOAT + /// + D2D1_POINTSPECULAR_PROP_SPECULAR_CONSTANT = 2, + + /// + /// Property Name: "SurfaceScale" + /// Property Type: FLOAT + /// + D2D1_POINTSPECULAR_PROP_SURFACE_SCALE = 3, + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_POINTSPECULAR_PROP_COLOR = 4, + + /// + /// Property Name: "KernelUnitLength" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_POINTSPECULAR_PROP_KERNEL_UNIT_LENGTH = 5, + + /// + /// Property Name: "ScaleMode" + /// Property Type: D2D1_POINTSPECULAR_SCALE_MODE + /// + D2D1_POINTSPECULAR_PROP_SCALE_MODE = 6, + D2D1_POINTSPECULAR_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_POINTSPECULAR_PROP; + +typedef enum D2D1_POINTSPECULAR_SCALE_MODE +{ + D2D1_POINTSPECULAR_SCALE_MODE_NEAREST_NEIGHBOR = 0, + D2D1_POINTSPECULAR_SCALE_MODE_LINEAR = 1, + D2D1_POINTSPECULAR_SCALE_MODE_CUBIC = 2, + D2D1_POINTSPECULAR_SCALE_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_POINTSPECULAR_SCALE_MODE_ANISOTROPIC = 4, + D2D1_POINTSPECULAR_SCALE_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_POINTSPECULAR_SCALE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_POINTSPECULAR_SCALE_MODE; + + +/// +/// The enumeration of the Spot-Specular effect's top level properties. +/// Effect description: Creates a specular lighting effect with a spot light source. +/// +typedef enum D2D1_SPOTSPECULAR_PROP +{ + + /// + /// Property Name: "LightPosition" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_SPOTSPECULAR_PROP_LIGHT_POSITION = 0, + + /// + /// Property Name: "PointsAt" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_SPOTSPECULAR_PROP_POINTS_AT = 1, + + /// + /// Property Name: "Focus" + /// Property Type: FLOAT + /// + D2D1_SPOTSPECULAR_PROP_FOCUS = 2, + + /// + /// Property Name: "LimitingConeAngle" + /// Property Type: FLOAT + /// + D2D1_SPOTSPECULAR_PROP_LIMITING_CONE_ANGLE = 3, + + /// + /// Property Name: "SpecularExponent" + /// Property Type: FLOAT + /// + D2D1_SPOTSPECULAR_PROP_SPECULAR_EXPONENT = 4, + + /// + /// Property Name: "SpecularConstant" + /// Property Type: FLOAT + /// + D2D1_SPOTSPECULAR_PROP_SPECULAR_CONSTANT = 5, + + /// + /// Property Name: "SurfaceScale" + /// Property Type: FLOAT + /// + D2D1_SPOTSPECULAR_PROP_SURFACE_SCALE = 6, + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_SPOTSPECULAR_PROP_COLOR = 7, + + /// + /// Property Name: "KernelUnitLength" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_SPOTSPECULAR_PROP_KERNEL_UNIT_LENGTH = 8, + + /// + /// Property Name: "ScaleMode" + /// Property Type: D2D1_SPOTSPECULAR_SCALE_MODE + /// + D2D1_SPOTSPECULAR_PROP_SCALE_MODE = 9, + D2D1_SPOTSPECULAR_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_SPOTSPECULAR_PROP; + +typedef enum D2D1_SPOTSPECULAR_SCALE_MODE +{ + D2D1_SPOTSPECULAR_SCALE_MODE_NEAREST_NEIGHBOR = 0, + D2D1_SPOTSPECULAR_SCALE_MODE_LINEAR = 1, + D2D1_SPOTSPECULAR_SCALE_MODE_CUBIC = 2, + D2D1_SPOTSPECULAR_SCALE_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_SPOTSPECULAR_SCALE_MODE_ANISOTROPIC = 4, + D2D1_SPOTSPECULAR_SCALE_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_SPOTSPECULAR_SCALE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_SPOTSPECULAR_SCALE_MODE; + + +/// +/// The enumeration of the Distant-Specular effect's top level properties. +/// Effect description: Creates a specular lighting effect with a distant light +/// source. +/// +typedef enum D2D1_DISTANTSPECULAR_PROP +{ + + /// + /// Property Name: "Azimuth" + /// Property Type: FLOAT + /// + D2D1_DISTANTSPECULAR_PROP_AZIMUTH = 0, + + /// + /// Property Name: "Elevation" + /// Property Type: FLOAT + /// + D2D1_DISTANTSPECULAR_PROP_ELEVATION = 1, + + /// + /// Property Name: "SpecularExponent" + /// Property Type: FLOAT + /// + D2D1_DISTANTSPECULAR_PROP_SPECULAR_EXPONENT = 2, + + /// + /// Property Name: "SpecularConstant" + /// Property Type: FLOAT + /// + D2D1_DISTANTSPECULAR_PROP_SPECULAR_CONSTANT = 3, + + /// + /// Property Name: "SurfaceScale" + /// Property Type: FLOAT + /// + D2D1_DISTANTSPECULAR_PROP_SURFACE_SCALE = 4, + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_DISTANTSPECULAR_PROP_COLOR = 5, + + /// + /// Property Name: "KernelUnitLength" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_DISTANTSPECULAR_PROP_KERNEL_UNIT_LENGTH = 6, + + /// + /// Property Name: "ScaleMode" + /// Property Type: D2D1_DISTANTSPECULAR_SCALE_MODE + /// + D2D1_DISTANTSPECULAR_PROP_SCALE_MODE = 7, + D2D1_DISTANTSPECULAR_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_DISTANTSPECULAR_PROP; + +typedef enum D2D1_DISTANTSPECULAR_SCALE_MODE +{ + D2D1_DISTANTSPECULAR_SCALE_MODE_NEAREST_NEIGHBOR = 0, + D2D1_DISTANTSPECULAR_SCALE_MODE_LINEAR = 1, + D2D1_DISTANTSPECULAR_SCALE_MODE_CUBIC = 2, + D2D1_DISTANTSPECULAR_SCALE_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_DISTANTSPECULAR_SCALE_MODE_ANISOTROPIC = 4, + D2D1_DISTANTSPECULAR_SCALE_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_DISTANTSPECULAR_SCALE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_DISTANTSPECULAR_SCALE_MODE; + + +/// +/// The enumeration of the Point-Diffuse effect's top level properties. +/// Effect description: Creates a diffuse lighting effect with a point light source. +/// +typedef enum D2D1_POINTDIFFUSE_PROP +{ + + /// + /// Property Name: "LightPosition" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_POINTDIFFUSE_PROP_LIGHT_POSITION = 0, + + /// + /// Property Name: "DiffuseConstant" + /// Property Type: FLOAT + /// + D2D1_POINTDIFFUSE_PROP_DIFFUSE_CONSTANT = 1, + + /// + /// Property Name: "SurfaceScale" + /// Property Type: FLOAT + /// + D2D1_POINTDIFFUSE_PROP_SURFACE_SCALE = 2, + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_POINTDIFFUSE_PROP_COLOR = 3, + + /// + /// Property Name: "KernelUnitLength" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_POINTDIFFUSE_PROP_KERNEL_UNIT_LENGTH = 4, + + /// + /// Property Name: "ScaleMode" + /// Property Type: D2D1_POINTDIFFUSE_SCALE_MODE + /// + D2D1_POINTDIFFUSE_PROP_SCALE_MODE = 5, + D2D1_POINTDIFFUSE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_POINTDIFFUSE_PROP; + +typedef enum D2D1_POINTDIFFUSE_SCALE_MODE +{ + D2D1_POINTDIFFUSE_SCALE_MODE_NEAREST_NEIGHBOR = 0, + D2D1_POINTDIFFUSE_SCALE_MODE_LINEAR = 1, + D2D1_POINTDIFFUSE_SCALE_MODE_CUBIC = 2, + D2D1_POINTDIFFUSE_SCALE_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_POINTDIFFUSE_SCALE_MODE_ANISOTROPIC = 4, + D2D1_POINTDIFFUSE_SCALE_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_POINTDIFFUSE_SCALE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_POINTDIFFUSE_SCALE_MODE; + + +/// +/// The enumeration of the Spot-Diffuse effect's top level properties. +/// Effect description: Creates a diffuse lighting effect with a spot light source. +/// +typedef enum D2D1_SPOTDIFFUSE_PROP +{ + + /// + /// Property Name: "LightPosition" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_SPOTDIFFUSE_PROP_LIGHT_POSITION = 0, + + /// + /// Property Name: "PointsAt" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_SPOTDIFFUSE_PROP_POINTS_AT = 1, + + /// + /// Property Name: "Focus" + /// Property Type: FLOAT + /// + D2D1_SPOTDIFFUSE_PROP_FOCUS = 2, + + /// + /// Property Name: "LimitingConeAngle" + /// Property Type: FLOAT + /// + D2D1_SPOTDIFFUSE_PROP_LIMITING_CONE_ANGLE = 3, + + /// + /// Property Name: "DiffuseConstant" + /// Property Type: FLOAT + /// + D2D1_SPOTDIFFUSE_PROP_DIFFUSE_CONSTANT = 4, + + /// + /// Property Name: "SurfaceScale" + /// Property Type: FLOAT + /// + D2D1_SPOTDIFFUSE_PROP_SURFACE_SCALE = 5, + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_SPOTDIFFUSE_PROP_COLOR = 6, + + /// + /// Property Name: "KernelUnitLength" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_SPOTDIFFUSE_PROP_KERNEL_UNIT_LENGTH = 7, + + /// + /// Property Name: "ScaleMode" + /// Property Type: D2D1_SPOTDIFFUSE_SCALE_MODE + /// + D2D1_SPOTDIFFUSE_PROP_SCALE_MODE = 8, + D2D1_SPOTDIFFUSE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_SPOTDIFFUSE_PROP; + +typedef enum D2D1_SPOTDIFFUSE_SCALE_MODE +{ + D2D1_SPOTDIFFUSE_SCALE_MODE_NEAREST_NEIGHBOR = 0, + D2D1_SPOTDIFFUSE_SCALE_MODE_LINEAR = 1, + D2D1_SPOTDIFFUSE_SCALE_MODE_CUBIC = 2, + D2D1_SPOTDIFFUSE_SCALE_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_SPOTDIFFUSE_SCALE_MODE_ANISOTROPIC = 4, + D2D1_SPOTDIFFUSE_SCALE_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_SPOTDIFFUSE_SCALE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_SPOTDIFFUSE_SCALE_MODE; + + +/// +/// The enumeration of the Distant-Diffuse effect's top level properties. +/// Effect description: Creates a diffuse lighting effect with a distant light +/// source. +/// +typedef enum D2D1_DISTANTDIFFUSE_PROP +{ + + /// + /// Property Name: "Azimuth" + /// Property Type: FLOAT + /// + D2D1_DISTANTDIFFUSE_PROP_AZIMUTH = 0, + + /// + /// Property Name: "Elevation" + /// Property Type: FLOAT + /// + D2D1_DISTANTDIFFUSE_PROP_ELEVATION = 1, + + /// + /// Property Name: "DiffuseConstant" + /// Property Type: FLOAT + /// + D2D1_DISTANTDIFFUSE_PROP_DIFFUSE_CONSTANT = 2, + + /// + /// Property Name: "SurfaceScale" + /// Property Type: FLOAT + /// + D2D1_DISTANTDIFFUSE_PROP_SURFACE_SCALE = 3, + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_DISTANTDIFFUSE_PROP_COLOR = 4, + + /// + /// Property Name: "KernelUnitLength" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_DISTANTDIFFUSE_PROP_KERNEL_UNIT_LENGTH = 5, + + /// + /// Property Name: "ScaleMode" + /// Property Type: D2D1_DISTANTDIFFUSE_SCALE_MODE + /// + D2D1_DISTANTDIFFUSE_PROP_SCALE_MODE = 6, + D2D1_DISTANTDIFFUSE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_DISTANTDIFFUSE_PROP; + +typedef enum D2D1_DISTANTDIFFUSE_SCALE_MODE +{ + D2D1_DISTANTDIFFUSE_SCALE_MODE_NEAREST_NEIGHBOR = 0, + D2D1_DISTANTDIFFUSE_SCALE_MODE_LINEAR = 1, + D2D1_DISTANTDIFFUSE_SCALE_MODE_CUBIC = 2, + D2D1_DISTANTDIFFUSE_SCALE_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_DISTANTDIFFUSE_SCALE_MODE_ANISOTROPIC = 4, + D2D1_DISTANTDIFFUSE_SCALE_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_DISTANTDIFFUSE_SCALE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_DISTANTDIFFUSE_SCALE_MODE; + + +/// +/// The enumeration of the Flood effect's top level properties. +/// Effect description: Renders an infinite sized floodfill of the given color. +/// +typedef enum D2D1_FLOOD_PROP +{ + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_4F + /// + D2D1_FLOOD_PROP_COLOR = 0, + D2D1_FLOOD_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_FLOOD_PROP; + + +/// +/// The enumeration of the Linear Transfer effect's top level properties. +/// Effect description: Remaps the color intensities of the input bitmap based on a +/// user specified linear transfer function for each RGBA channel. +/// +typedef enum D2D1_LINEARTRANSFER_PROP +{ + + /// + /// Property Name: "RedYIntercept" + /// Property Type: FLOAT + /// + D2D1_LINEARTRANSFER_PROP_RED_Y_INTERCEPT = 0, + + /// + /// Property Name: "RedSlope" + /// Property Type: FLOAT + /// + D2D1_LINEARTRANSFER_PROP_RED_SLOPE = 1, + + /// + /// Property Name: "RedDisable" + /// Property Type: BOOL + /// + D2D1_LINEARTRANSFER_PROP_RED_DISABLE = 2, + + /// + /// Property Name: "GreenYIntercept" + /// Property Type: FLOAT + /// + D2D1_LINEARTRANSFER_PROP_GREEN_Y_INTERCEPT = 3, + + /// + /// Property Name: "GreenSlope" + /// Property Type: FLOAT + /// + D2D1_LINEARTRANSFER_PROP_GREEN_SLOPE = 4, + + /// + /// Property Name: "GreenDisable" + /// Property Type: BOOL + /// + D2D1_LINEARTRANSFER_PROP_GREEN_DISABLE = 5, + + /// + /// Property Name: "BlueYIntercept" + /// Property Type: FLOAT + /// + D2D1_LINEARTRANSFER_PROP_BLUE_Y_INTERCEPT = 6, + + /// + /// Property Name: "BlueSlope" + /// Property Type: FLOAT + /// + D2D1_LINEARTRANSFER_PROP_BLUE_SLOPE = 7, + + /// + /// Property Name: "BlueDisable" + /// Property Type: BOOL + /// + D2D1_LINEARTRANSFER_PROP_BLUE_DISABLE = 8, + + /// + /// Property Name: "AlphaYIntercept" + /// Property Type: FLOAT + /// + D2D1_LINEARTRANSFER_PROP_ALPHA_Y_INTERCEPT = 9, + + /// + /// Property Name: "AlphaSlope" + /// Property Type: FLOAT + /// + D2D1_LINEARTRANSFER_PROP_ALPHA_SLOPE = 10, + + /// + /// Property Name: "AlphaDisable" + /// Property Type: BOOL + /// + D2D1_LINEARTRANSFER_PROP_ALPHA_DISABLE = 11, + + /// + /// Property Name: "ClampOutput" + /// Property Type: BOOL + /// + D2D1_LINEARTRANSFER_PROP_CLAMP_OUTPUT = 12, + D2D1_LINEARTRANSFER_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_LINEARTRANSFER_PROP; + + +/// +/// The enumeration of the Gamma Transfer effect's top level properties. +/// Effect description: Remaps the color intensities of the input bitmap based on a +/// user specified gamma transfer function for each RGBA channel. +/// +typedef enum D2D1_GAMMATRANSFER_PROP +{ + + /// + /// Property Name: "RedAmplitude" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_RED_AMPLITUDE = 0, + + /// + /// Property Name: "RedExponent" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_RED_EXPONENT = 1, + + /// + /// Property Name: "RedOffset" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_RED_OFFSET = 2, + + /// + /// Property Name: "RedDisable" + /// Property Type: BOOL + /// + D2D1_GAMMATRANSFER_PROP_RED_DISABLE = 3, + + /// + /// Property Name: "GreenAmplitude" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_GREEN_AMPLITUDE = 4, + + /// + /// Property Name: "GreenExponent" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_GREEN_EXPONENT = 5, + + /// + /// Property Name: "GreenOffset" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_GREEN_OFFSET = 6, + + /// + /// Property Name: "GreenDisable" + /// Property Type: BOOL + /// + D2D1_GAMMATRANSFER_PROP_GREEN_DISABLE = 7, + + /// + /// Property Name: "BlueAmplitude" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_BLUE_AMPLITUDE = 8, + + /// + /// Property Name: "BlueExponent" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_BLUE_EXPONENT = 9, + + /// + /// Property Name: "BlueOffset" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_BLUE_OFFSET = 10, + + /// + /// Property Name: "BlueDisable" + /// Property Type: BOOL + /// + D2D1_GAMMATRANSFER_PROP_BLUE_DISABLE = 11, + + /// + /// Property Name: "AlphaAmplitude" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_ALPHA_AMPLITUDE = 12, + + /// + /// Property Name: "AlphaExponent" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_ALPHA_EXPONENT = 13, + + /// + /// Property Name: "AlphaOffset" + /// Property Type: FLOAT + /// + D2D1_GAMMATRANSFER_PROP_ALPHA_OFFSET = 14, + + /// + /// Property Name: "AlphaDisable" + /// Property Type: BOOL + /// + D2D1_GAMMATRANSFER_PROP_ALPHA_DISABLE = 15, + + /// + /// Property Name: "ClampOutput" + /// Property Type: BOOL + /// + D2D1_GAMMATRANSFER_PROP_CLAMP_OUTPUT = 16, + D2D1_GAMMATRANSFER_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_GAMMATRANSFER_PROP; + + +/// +/// The enumeration of the Table Transfer effect's top level properties. +/// Effect description: Remaps the color intensities of the input bitmap based on a +/// transfer function generated by a user specified list of values for each RGBA +/// channel. +/// +typedef enum D2D1_TABLETRANSFER_PROP +{ + + /// + /// Property Name: "RedTable" + /// Property Type: (blob) + /// + D2D1_TABLETRANSFER_PROP_RED_TABLE = 0, + + /// + /// Property Name: "RedDisable" + /// Property Type: BOOL + /// + D2D1_TABLETRANSFER_PROP_RED_DISABLE = 1, + + /// + /// Property Name: "GreenTable" + /// Property Type: (blob) + /// + D2D1_TABLETRANSFER_PROP_GREEN_TABLE = 2, + + /// + /// Property Name: "GreenDisable" + /// Property Type: BOOL + /// + D2D1_TABLETRANSFER_PROP_GREEN_DISABLE = 3, + + /// + /// Property Name: "BlueTable" + /// Property Type: (blob) + /// + D2D1_TABLETRANSFER_PROP_BLUE_TABLE = 4, + + /// + /// Property Name: "BlueDisable" + /// Property Type: BOOL + /// + D2D1_TABLETRANSFER_PROP_BLUE_DISABLE = 5, + + /// + /// Property Name: "AlphaTable" + /// Property Type: (blob) + /// + D2D1_TABLETRANSFER_PROP_ALPHA_TABLE = 6, + + /// + /// Property Name: "AlphaDisable" + /// Property Type: BOOL + /// + D2D1_TABLETRANSFER_PROP_ALPHA_DISABLE = 7, + + /// + /// Property Name: "ClampOutput" + /// Property Type: BOOL + /// + D2D1_TABLETRANSFER_PROP_CLAMP_OUTPUT = 8, + D2D1_TABLETRANSFER_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_TABLETRANSFER_PROP; + + +/// +/// The enumeration of the Discrete Transfer effect's top level properties. +/// Effect description: Remaps the color intensities of the input bitmap based on a +/// discrete function generated by a user specified list of values for each RGBA +/// channel. +/// +typedef enum D2D1_DISCRETETRANSFER_PROP +{ + + /// + /// Property Name: "RedTable" + /// Property Type: (blob) + /// + D2D1_DISCRETETRANSFER_PROP_RED_TABLE = 0, + + /// + /// Property Name: "RedDisable" + /// Property Type: BOOL + /// + D2D1_DISCRETETRANSFER_PROP_RED_DISABLE = 1, + + /// + /// Property Name: "GreenTable" + /// Property Type: (blob) + /// + D2D1_DISCRETETRANSFER_PROP_GREEN_TABLE = 2, + + /// + /// Property Name: "GreenDisable" + /// Property Type: BOOL + /// + D2D1_DISCRETETRANSFER_PROP_GREEN_DISABLE = 3, + + /// + /// Property Name: "BlueTable" + /// Property Type: (blob) + /// + D2D1_DISCRETETRANSFER_PROP_BLUE_TABLE = 4, + + /// + /// Property Name: "BlueDisable" + /// Property Type: BOOL + /// + D2D1_DISCRETETRANSFER_PROP_BLUE_DISABLE = 5, + + /// + /// Property Name: "AlphaTable" + /// Property Type: (blob) + /// + D2D1_DISCRETETRANSFER_PROP_ALPHA_TABLE = 6, + + /// + /// Property Name: "AlphaDisable" + /// Property Type: BOOL + /// + D2D1_DISCRETETRANSFER_PROP_ALPHA_DISABLE = 7, + + /// + /// Property Name: "ClampOutput" + /// Property Type: BOOL + /// + D2D1_DISCRETETRANSFER_PROP_CLAMP_OUTPUT = 8, + D2D1_DISCRETETRANSFER_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_DISCRETETRANSFER_PROP; + + +/// +/// The enumeration of the Convolve Matrix effect's top level properties. +/// Effect description: Applies a user specified convolution kernel to a bitmap. +/// +typedef enum D2D1_CONVOLVEMATRIX_PROP +{ + + /// + /// Property Name: "KernelUnitLength" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_CONVOLVEMATRIX_PROP_KERNEL_UNIT_LENGTH = 0, + + /// + /// Property Name: "ScaleMode" + /// Property Type: D2D1_CONVOLVEMATRIX_SCALE_MODE + /// + D2D1_CONVOLVEMATRIX_PROP_SCALE_MODE = 1, + + /// + /// Property Name: "KernelSizeX" + /// Property Type: UINT32 + /// + D2D1_CONVOLVEMATRIX_PROP_KERNEL_SIZE_X = 2, + + /// + /// Property Name: "KernelSizeY" + /// Property Type: UINT32 + /// + D2D1_CONVOLVEMATRIX_PROP_KERNEL_SIZE_Y = 3, + + /// + /// Property Name: "KernelMatrix" + /// Property Type: (blob) + /// + D2D1_CONVOLVEMATRIX_PROP_KERNEL_MATRIX = 4, + + /// + /// Property Name: "Divisor" + /// Property Type: FLOAT + /// + D2D1_CONVOLVEMATRIX_PROP_DIVISOR = 5, + + /// + /// Property Name: "Bias" + /// Property Type: FLOAT + /// + D2D1_CONVOLVEMATRIX_PROP_BIAS = 6, + + /// + /// Property Name: "KernelOffset" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_CONVOLVEMATRIX_PROP_KERNEL_OFFSET = 7, + + /// + /// Property Name: "PreserveAlpha" + /// Property Type: BOOL + /// + D2D1_CONVOLVEMATRIX_PROP_PRESERVE_ALPHA = 8, + + /// + /// Property Name: "BorderMode" + /// Property Type: D2D1_BORDER_MODE + /// + D2D1_CONVOLVEMATRIX_PROP_BORDER_MODE = 9, + + /// + /// Property Name: "ClampOutput" + /// Property Type: BOOL + /// + D2D1_CONVOLVEMATRIX_PROP_CLAMP_OUTPUT = 10, + D2D1_CONVOLVEMATRIX_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_CONVOLVEMATRIX_PROP; + +typedef enum D2D1_CONVOLVEMATRIX_SCALE_MODE +{ + D2D1_CONVOLVEMATRIX_SCALE_MODE_NEAREST_NEIGHBOR = 0, + D2D1_CONVOLVEMATRIX_SCALE_MODE_LINEAR = 1, + D2D1_CONVOLVEMATRIX_SCALE_MODE_CUBIC = 2, + D2D1_CONVOLVEMATRIX_SCALE_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_CONVOLVEMATRIX_SCALE_MODE_ANISOTROPIC = 4, + D2D1_CONVOLVEMATRIX_SCALE_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_CONVOLVEMATRIX_SCALE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_CONVOLVEMATRIX_SCALE_MODE; + + +/// +/// The enumeration of the Brightness effect's top level properties. +/// Effect description: Adjusts the brightness of the image based on the specified +/// white and black point. +/// +typedef enum D2D1_BRIGHTNESS_PROP +{ + + /// + /// Property Name: "WhitePoint" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_BRIGHTNESS_PROP_WHITE_POINT = 0, + + /// + /// Property Name: "BlackPoint" + /// Property Type: D2D1_VECTOR_2F + /// + D2D1_BRIGHTNESS_PROP_BLACK_POINT = 1, + D2D1_BRIGHTNESS_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_BRIGHTNESS_PROP; + + +/// +/// The enumeration of the Arithmetic Composite effect's top level properties. +/// Effect description: Composites two bitmaps based on the following algorithm: +/// Output = Coefficients_1 * Source * Destination + Coefficients_2 * Source+ +/// Coefficients_3 * Destination + Coefficients_4. +/// +typedef enum D2D1_ARITHMETICCOMPOSITE_PROP +{ + + /// + /// Property Name: "Coefficients" + /// Property Type: D2D1_VECTOR_4F + /// + D2D1_ARITHMETICCOMPOSITE_PROP_COEFFICIENTS = 0, + + /// + /// Property Name: "ClampOutput" + /// Property Type: BOOL + /// + D2D1_ARITHMETICCOMPOSITE_PROP_CLAMP_OUTPUT = 1, + D2D1_ARITHMETICCOMPOSITE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_ARITHMETICCOMPOSITE_PROP; + + +/// +/// The enumeration of the Crop effect's top level properties. +/// Effect description: Crops the input bitmap according to the specified +/// parameters. +/// +typedef enum D2D1_CROP_PROP +{ + + /// + /// Property Name: "Rect" + /// Property Type: D2D1_VECTOR_4F + /// + D2D1_CROP_PROP_RECT = 0, + + /// + /// Property Name: "BorderMode" + /// Property Type: D2D1_BORDER_MODE + /// + D2D1_CROP_PROP_BORDER_MODE = 1, + D2D1_CROP_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_CROP_PROP; + + +/// +/// The enumeration of the Border effect's top level properties. +/// Effect description: Extends the region of the bitmap based on the selected +/// border mode. +/// +typedef enum D2D1_BORDER_PROP +{ + + /// + /// Property Name: "EdgeModeX" + /// Property Type: D2D1_BORDER_EDGE_MODE + /// + D2D1_BORDER_PROP_EDGE_MODE_X = 0, + + /// + /// Property Name: "EdgeModeY" + /// Property Type: D2D1_BORDER_EDGE_MODE + /// + D2D1_BORDER_PROP_EDGE_MODE_Y = 1, + D2D1_BORDER_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_BORDER_PROP; + + +/// +/// The edge mode for the Border effect. +/// +typedef enum D2D1_BORDER_EDGE_MODE +{ + D2D1_BORDER_EDGE_MODE_CLAMP = 0, + D2D1_BORDER_EDGE_MODE_WRAP = 1, + D2D1_BORDER_EDGE_MODE_MIRROR = 2, + D2D1_BORDER_EDGE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_BORDER_EDGE_MODE; + + +/// +/// The enumeration of the Morphology effect's top level properties. +/// Effect description: Erodes or dilates a bitmap by the given radius. +/// +typedef enum D2D1_MORPHOLOGY_PROP +{ + + /// + /// Property Name: "Mode" + /// Property Type: D2D1_MORPHOLOGY_MODE + /// + D2D1_MORPHOLOGY_PROP_MODE = 0, + + /// + /// Property Name: "Width" + /// Property Type: UINT32 + /// + D2D1_MORPHOLOGY_PROP_WIDTH = 1, + + /// + /// Property Name: "Height" + /// Property Type: UINT32 + /// + D2D1_MORPHOLOGY_PROP_HEIGHT = 2, + D2D1_MORPHOLOGY_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_MORPHOLOGY_PROP; + +typedef enum D2D1_MORPHOLOGY_MODE +{ + D2D1_MORPHOLOGY_MODE_ERODE = 0, + D2D1_MORPHOLOGY_MODE_DILATE = 1, + D2D1_MORPHOLOGY_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_MORPHOLOGY_MODE; + + +/// +/// The enumeration of the Tile effect's top level properties. +/// Effect description: Tiles the specified region of the input bitmap. +/// +typedef enum D2D1_TILE_PROP +{ + + /// + /// Property Name: "Rect" + /// Property Type: D2D1_VECTOR_4F + /// + D2D1_TILE_PROP_RECT = 0, + D2D1_TILE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_TILE_PROP; + + +/// +/// The enumeration of the Atlas effect's top level properties. +/// Effect description: Changes the available area of the input to the specified +/// rectangle. Provides an optimization for scenarios where a bitmap is used as an +/// atlas. +/// +typedef enum D2D1_ATLAS_PROP +{ + + /// + /// Property Name: "InputRect" + /// Property Type: D2D1_VECTOR_4F + /// + D2D1_ATLAS_PROP_INPUT_RECT = 0, + + /// + /// Property Name: "InputPaddingRect" + /// Property Type: D2D1_VECTOR_4F + /// + D2D1_ATLAS_PROP_INPUT_PADDING_RECT = 1, + D2D1_ATLAS_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_ATLAS_PROP; + + +/// +/// The enumeration of the Opacity Metadata effect's top level properties. +/// Effect description: Changes the rectangle which is assumed to be opaque. +/// Provides optimizations in certain scenarios. +/// +typedef enum D2D1_OPACITYMETADATA_PROP +{ + + /// + /// Property Name: "InputOpaqueRect" + /// Property Type: D2D1_VECTOR_4F + /// + D2D1_OPACITYMETADATA_PROP_INPUT_OPAQUE_RECT = 0, + D2D1_OPACITYMETADATA_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_OPACITYMETADATA_PROP; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // #ifndef _D2D1_EFFECTS_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effects_1.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effects_1.h new file mode 100644 index 0000000000000000000000000000000000000000..b2d0e23450e0b1c4684917e4977e0625745441f3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effects_1.h @@ -0,0 +1,85 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2D1Effects_1.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2D1_EFFECTS_1_ +#define _D2D1_EFFECTS_1_ + +#ifndef _D2D1_EFFECTS_ +#include +#endif // #ifndef _D2D1_EFFECTS_ + + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +// Built in effect CLSIDs +DEFINE_GUID(CLSID_D2D1YCbCr, 0x99503cc1, 0x66c7, 0x45c9, 0xa8, 0x75, 0x8a, 0xd8, 0xa7, 0x91, 0x44, 0x01); + +/// +/// The enumeration of the YCbCr effect's top level properties. +/// Effect description: An effect that takes a Y plane as input 0 and a CbCr plane +/// as input 1 and outputs RGBA. The CbCr plane can be chroma subsampled. Useful +/// for JPEG color conversion. +/// +typedef enum D2D1_YCBCR_PROP +{ + + /// + /// Property Name: "ChromaSubsampling" + /// Property Type: D2D1_YCBCR_CHROMA_SUBSAMPLING + /// + D2D1_YCBCR_PROP_CHROMA_SUBSAMPLING = 0, + + /// + /// Property Name: "TransformMatrix" + /// Property Type: D2D1_MATRIX_3X2_F + /// + D2D1_YCBCR_PROP_TRANSFORM_MATRIX = 1, + + /// + /// Property Name: "InterpolationMode" + /// Property Type: D2D1_YCBCR_INTERPOLATION_MODE + /// + D2D1_YCBCR_PROP_INTERPOLATION_MODE = 2, + D2D1_YCBCR_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_YCBCR_PROP; + +typedef enum D2D1_YCBCR_CHROMA_SUBSAMPLING +{ + D2D1_YCBCR_CHROMA_SUBSAMPLING_AUTO = 0, + D2D1_YCBCR_CHROMA_SUBSAMPLING_420 = 1, + D2D1_YCBCR_CHROMA_SUBSAMPLING_422 = 2, + D2D1_YCBCR_CHROMA_SUBSAMPLING_444 = 3, + D2D1_YCBCR_CHROMA_SUBSAMPLING_440 = 4, + D2D1_YCBCR_CHROMA_SUBSAMPLING_FORCE_DWORD = 0xffffffff + +} D2D1_YCBCR_CHROMA_SUBSAMPLING; + +typedef enum D2D1_YCBCR_INTERPOLATION_MODE +{ + D2D1_YCBCR_INTERPOLATION_MODE_NEAREST_NEIGHBOR = 0, + D2D1_YCBCR_INTERPOLATION_MODE_LINEAR = 1, + D2D1_YCBCR_INTERPOLATION_MODE_CUBIC = 2, + D2D1_YCBCR_INTERPOLATION_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_YCBCR_INTERPOLATION_MODE_ANISOTROPIC = 4, + D2D1_YCBCR_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC = 5, + D2D1_YCBCR_INTERPOLATION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_YCBCR_INTERPOLATION_MODE; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // #ifndef _D2D1_EFFECTS_1_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effects_2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effects_2.h new file mode 100644 index 0000000000000000000000000000000000000000..55faaa2e5c4f95ca42f2886ea5694c796728b456 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1effects_2.h @@ -0,0 +1,640 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2D1Effects_2.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2D1_EFFECTS_2_ +#define _D2D1_EFFECTS_2_ + +#ifndef _D2D1_EFFECTS_1_ +#include +#endif // #ifndef _D2D1_EFFECTS_1_ + + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +// Built in effect CLSIDs +DEFINE_GUID(CLSID_D2D1Contrast, 0xb648a78a, 0x0ed5, 0x4f80, 0xa9, 0x4a, 0x8e, 0x82, 0x5a, 0xca, 0x6b, 0x77); +DEFINE_GUID(CLSID_D2D1RgbToHue, 0x23f3e5ec, 0x91e8, 0x4d3d, 0xad, 0x0a, 0xaf, 0xad, 0xc1, 0x00, 0x4a, 0xa1); +DEFINE_GUID(CLSID_D2D1HueToRgb, 0x7b78a6bd, 0x0141, 0x4def, 0x8a, 0x52, 0x63, 0x56, 0xee, 0x0c, 0xbd, 0xd5); +DEFINE_GUID(CLSID_D2D1ChromaKey, 0x74C01F5B, 0x2A0D, 0x408C, 0x88, 0xE2, 0xC7, 0xA3, 0xC7, 0x19, 0x77, 0x42); +DEFINE_GUID(CLSID_D2D1Emboss, 0xb1c5eb2b, 0x0348, 0x43f0, 0x81, 0x07, 0x49, 0x57, 0xca, 0xcb, 0xa2, 0xae); +DEFINE_GUID(CLSID_D2D1Exposure, 0xb56c8cfa, 0xf634, 0x41ee, 0xbe, 0xe0, 0xff, 0xa6, 0x17, 0x10, 0x60, 0x04); +DEFINE_GUID(CLSID_D2D1Grayscale, 0x36DDE0EB, 0x3725, 0x42E0, 0x83, 0x6D, 0x52, 0xFB, 0x20, 0xAE, 0xE6, 0x44); +DEFINE_GUID(CLSID_D2D1Invert, 0xe0c3784d, 0xcb39, 0x4e84, 0xb6, 0xfd, 0x6b, 0x72, 0xf0, 0x81, 0x02, 0x63); +DEFINE_GUID(CLSID_D2D1Posterize, 0x2188945e, 0x33a3, 0x4366, 0xb7, 0xbc, 0x08, 0x6b, 0xd0, 0x2d, 0x08, 0x84); +DEFINE_GUID(CLSID_D2D1Sepia, 0x3a1af410, 0x5f1d, 0x4dbe, 0x84, 0xdf, 0x91, 0x5d, 0xa7, 0x9b, 0x71, 0x53); +DEFINE_GUID(CLSID_D2D1Sharpen, 0xC9B887CB, 0xC5FF, 0x4DC5, 0x97, 0x79, 0x27, 0x3D, 0xCF, 0x41, 0x7C, 0x7D); +DEFINE_GUID(CLSID_D2D1Straighten, 0x4da47b12, 0x79a3, 0x4fb0, 0x82, 0x37, 0xbb, 0xc3, 0xb2, 0xa4, 0xde, 0x08); +DEFINE_GUID(CLSID_D2D1TemperatureTint, 0x89176087, 0x8AF9, 0x4A08, 0xAE, 0xB1, 0x89, 0x5F, 0x38, 0xDB, 0x17, 0x66); +DEFINE_GUID(CLSID_D2D1Vignette, 0xc00c40be, 0x5e67, 0x4ca3, 0x95, 0xb4, 0xf4, 0xb0, 0x2c, 0x11, 0x51, 0x35); +DEFINE_GUID(CLSID_D2D1EdgeDetection, 0xEFF583CA, 0xCB07, 0x4AA9, 0xAC, 0x5D, 0x2C, 0xC4, 0x4C, 0x76, 0x46, 0x0F); +DEFINE_GUID(CLSID_D2D1HighlightsShadows, 0xCADC8384, 0x323F, 0x4C7E, 0xA3, 0x61, 0x2E, 0x2B, 0x24, 0xDF, 0x6E, 0xE4); +DEFINE_GUID(CLSID_D2D1LookupTable3D, 0x349E0EDA, 0x0088, 0x4A79, 0x9C, 0xA3, 0xC7, 0xE3, 0x00, 0x20, 0x20, 0x20); + +#if NTDDI_VERSION >= NTDDI_WIN10_RS1 + +DEFINE_GUID(CLSID_D2D1Opacity, 0x811d79a4, 0xde28, 0x4454, 0x80, 0x94, 0xc6, 0x46, 0x85, 0xf8, 0xbd, 0x4c); +DEFINE_GUID(CLSID_D2D1AlphaMask, 0xc80ecff0, 0x3fd5, 0x4f05, 0x83, 0x28, 0xc5, 0xd1, 0x72, 0x4b, 0x4f, 0x0a); +DEFINE_GUID(CLSID_D2D1CrossFade, 0x12f575e8, 0x4db1, 0x485f, 0x9a, 0x84, 0x03, 0xa0, 0x7d, 0xd3, 0x82, 0x9f); +DEFINE_GUID(CLSID_D2D1Tint, 0x36312b17, 0xf7dd, 0x4014, 0x91, 0x5d, 0xff, 0xca, 0x76, 0x8c, 0xf2, 0x11); + +#endif // #if NTDDI_VERSION >= NTDDI_WIN10_RS1 + +// The number of nits that sRGB or scRGB color space uses for SDR white, or +// floating point values of 1.0f. Note that this value is only constant when the +// color space uses scene-referred luminance, which is true for HDR content. If +// the color space uses display-referred luminance instead, then the SDR white +// level should be queried from the display. +#define D2D1_SCENE_REFERRED_SDR_WHITE_LEVEL 80.0f + +#if NTDDI_VERSION >= NTDDI_WIN10_RS5 + +DEFINE_GUID(CLSID_D2D1WhiteLevelAdjustment, 0x44a1cadb, 0x6cdd, 0x4818, 0x8f, 0xf4, 0x26, 0xc1, 0xcf, 0xe9, 0x5b, 0xdb); +DEFINE_GUID(CLSID_D2D1HdrToneMap, 0x7b0b748d, 0x4610, 0x4486, 0xa9, 0x0c, 0x99, 0x9d, 0x9a, 0x2e, 0x2b, 0x11); + +#endif // #if NTDDI_VERSION >= NTDDI_WIN10_RS5 + +/// +/// The enumeration of the Contrast effect's top level properties. +/// Effect description: Adjusts the contrast of an image. +/// +typedef enum D2D1_CONTRAST_PROP +{ + + /// + /// Property Name: "Contrast" + /// Property Type: FLOAT + /// + D2D1_CONTRAST_PROP_CONTRAST = 0, + + /// + /// Property Name: "ClampInput" + /// Property Type: BOOL + /// + D2D1_CONTRAST_PROP_CLAMP_INPUT = 1, + D2D1_CONTRAST_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_CONTRAST_PROP; + + +/// +/// The enumeration of the RgbToHue effect's top level properties. +/// Effect description: Converts an RGB bitmap to HSV or HSL. +/// +typedef enum D2D1_RGBTOHUE_PROP +{ + + /// + /// Property Name: "OutputColorSpace" + /// Property Type: D2D1_RGBTOHUE_OUTPUT_COLOR_SPACE + /// + D2D1_RGBTOHUE_PROP_OUTPUT_COLOR_SPACE = 0, + D2D1_RGBTOHUE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_RGBTOHUE_PROP; + +typedef enum D2D1_RGBTOHUE_OUTPUT_COLOR_SPACE +{ + D2D1_RGBTOHUE_OUTPUT_COLOR_SPACE_HUE_SATURATION_VALUE = 0, + D2D1_RGBTOHUE_OUTPUT_COLOR_SPACE_HUE_SATURATION_LIGHTNESS = 1, + D2D1_RGBTOHUE_OUTPUT_COLOR_SPACE_FORCE_DWORD = 0xffffffff + +} D2D1_RGBTOHUE_OUTPUT_COLOR_SPACE; + + +/// +/// The enumeration of the HueToRgb effect's top level properties. +/// Effect description: Converts an HSV or HSL bitmap into an RGB bitmap. +/// +typedef enum D2D1_HUETORGB_PROP +{ + + /// + /// Property Name: "InputColorSpace" + /// Property Type: D2D1_HUETORGB_INPUT_COLOR_SPACE + /// + D2D1_HUETORGB_PROP_INPUT_COLOR_SPACE = 0, + D2D1_HUETORGB_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_HUETORGB_PROP; + +typedef enum D2D1_HUETORGB_INPUT_COLOR_SPACE +{ + D2D1_HUETORGB_INPUT_COLOR_SPACE_HUE_SATURATION_VALUE = 0, + D2D1_HUETORGB_INPUT_COLOR_SPACE_HUE_SATURATION_LIGHTNESS = 1, + D2D1_HUETORGB_INPUT_COLOR_SPACE_FORCE_DWORD = 0xffffffff + +} D2D1_HUETORGB_INPUT_COLOR_SPACE; + + +/// +/// The enumeration of the Chroma Key effect's top level properties. +/// Effect description: Converts a specified color to transparent. +/// +typedef enum D2D1_CHROMAKEY_PROP +{ + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_3F + /// + D2D1_CHROMAKEY_PROP_COLOR = 0, + + /// + /// Property Name: "Tolerance" + /// Property Type: FLOAT + /// + D2D1_CHROMAKEY_PROP_TOLERANCE = 1, + + /// + /// Property Name: "InvertAlpha" + /// Property Type: BOOL + /// + D2D1_CHROMAKEY_PROP_INVERT_ALPHA = 2, + + /// + /// Property Name: "Feather" + /// Property Type: BOOL + /// + D2D1_CHROMAKEY_PROP_FEATHER = 3, + D2D1_CHROMAKEY_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_CHROMAKEY_PROP; + + +/// +/// The enumeration of the Emboss effect's top level properties. +/// Effect description: Applies an embossing effect to an image. +/// +typedef enum D2D1_EMBOSS_PROP +{ + + /// + /// Property Name: "Height" + /// Property Type: FLOAT + /// + D2D1_EMBOSS_PROP_HEIGHT = 0, + + /// + /// Property Name: "Direction" + /// Property Type: FLOAT + /// + D2D1_EMBOSS_PROP_DIRECTION = 1, + D2D1_EMBOSS_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_EMBOSS_PROP; + + +/// +/// The enumeration of the Exposure effect's top level properties. +/// Effect description: Simulates camera exposure adjustment. +/// +typedef enum D2D1_EXPOSURE_PROP +{ + + /// + /// Property Name: "ExposureValue" + /// Property Type: FLOAT + /// + D2D1_EXPOSURE_PROP_EXPOSURE_VALUE = 0, + D2D1_EXPOSURE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_EXPOSURE_PROP; + + +/// +/// The enumeration of the Posterize effect's top level properties. +/// Effect description: Reduces the number of colors in an image. +/// +typedef enum D2D1_POSTERIZE_PROP +{ + + /// + /// Property Name: "RedValueCount" + /// Property Type: UINT32 + /// + D2D1_POSTERIZE_PROP_RED_VALUE_COUNT = 0, + + /// + /// Property Name: "GreenValueCount" + /// Property Type: UINT32 + /// + D2D1_POSTERIZE_PROP_GREEN_VALUE_COUNT = 1, + + /// + /// Property Name: "BlueValueCount" + /// Property Type: UINT32 + /// + D2D1_POSTERIZE_PROP_BLUE_VALUE_COUNT = 2, + D2D1_POSTERIZE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_POSTERIZE_PROP; + + +/// +/// The enumeration of the Sepia effect's top level properties. +/// Effect description: Applies a Sepia tone to an image. +/// +typedef enum D2D1_SEPIA_PROP +{ + + /// + /// Property Name: "Intensity" + /// Property Type: FLOAT + /// + D2D1_SEPIA_PROP_INTENSITY = 0, + + /// + /// Property Name: "AlphaMode" + /// Property Type: D2D1_ALPHA_MODE + /// + D2D1_SEPIA_PROP_ALPHA_MODE = 1, + D2D1_SEPIA_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_SEPIA_PROP; + + +/// +/// The enumeration of the Sharpen effect's top level properties. +/// Effect description: Performs sharpening adjustment +/// +typedef enum D2D1_SHARPEN_PROP +{ + + /// + /// Property Name: "Sharpness" + /// Property Type: FLOAT + /// + D2D1_SHARPEN_PROP_SHARPNESS = 0, + + /// + /// Property Name: "Threshold" + /// Property Type: FLOAT + /// + D2D1_SHARPEN_PROP_THRESHOLD = 1, + D2D1_SHARPEN_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_SHARPEN_PROP; + + +/// +/// The enumeration of the Straighten effect's top level properties. +/// Effect description: Straightens an image. +/// +typedef enum D2D1_STRAIGHTEN_PROP +{ + + /// + /// Property Name: "Angle" + /// Property Type: FLOAT + /// + D2D1_STRAIGHTEN_PROP_ANGLE = 0, + + /// + /// Property Name: "MaintainSize" + /// Property Type: BOOL + /// + D2D1_STRAIGHTEN_PROP_MAINTAIN_SIZE = 1, + + /// + /// Property Name: "ScaleMode" + /// Property Type: D2D1_STRAIGHTEN_SCALE_MODE + /// + D2D1_STRAIGHTEN_PROP_SCALE_MODE = 2, + D2D1_STRAIGHTEN_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_STRAIGHTEN_PROP; + +typedef enum D2D1_STRAIGHTEN_SCALE_MODE +{ + D2D1_STRAIGHTEN_SCALE_MODE_NEAREST_NEIGHBOR = 0, + D2D1_STRAIGHTEN_SCALE_MODE_LINEAR = 1, + D2D1_STRAIGHTEN_SCALE_MODE_CUBIC = 2, + D2D1_STRAIGHTEN_SCALE_MODE_MULTI_SAMPLE_LINEAR = 3, + D2D1_STRAIGHTEN_SCALE_MODE_ANISOTROPIC = 4, + D2D1_STRAIGHTEN_SCALE_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_STRAIGHTEN_SCALE_MODE; + + +/// +/// The enumeration of the Temperature And Tint effect's top level properties. +/// Effect description: Adjusts the temperature and tint of an image. +/// +typedef enum D2D1_TEMPERATUREANDTINT_PROP +{ + + /// + /// Property Name: "Temperature" + /// Property Type: FLOAT + /// + D2D1_TEMPERATUREANDTINT_PROP_TEMPERATURE = 0, + + /// + /// Property Name: "Tint" + /// Property Type: FLOAT + /// + D2D1_TEMPERATUREANDTINT_PROP_TINT = 1, + D2D1_TEMPERATUREANDTINT_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_TEMPERATUREANDTINT_PROP; + + +/// +/// The enumeration of the Vignette effect's top level properties. +/// Effect description: Fades the edges of an image to the specified color. +/// +typedef enum D2D1_VIGNETTE_PROP +{ + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_4F + /// + D2D1_VIGNETTE_PROP_COLOR = 0, + + /// + /// Property Name: "TransitionSize" + /// Property Type: FLOAT + /// + D2D1_VIGNETTE_PROP_TRANSITION_SIZE = 1, + + /// + /// Property Name: "Strength" + /// Property Type: FLOAT + /// + D2D1_VIGNETTE_PROP_STRENGTH = 2, + D2D1_VIGNETTE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_VIGNETTE_PROP; + + +/// +/// The enumeration of the Edge Detection effect's top level properties. +/// Effect description: Detects edges of an image. +/// +typedef enum D2D1_EDGEDETECTION_PROP +{ + + /// + /// Property Name: "Strength" + /// Property Type: FLOAT + /// + D2D1_EDGEDETECTION_PROP_STRENGTH = 0, + + /// + /// Property Name: "BlurRadius" + /// Property Type: FLOAT + /// + D2D1_EDGEDETECTION_PROP_BLUR_RADIUS = 1, + + /// + /// Property Name: "Mode" + /// Property Type: D2D1_EDGEDETECTION_MODE + /// + D2D1_EDGEDETECTION_PROP_MODE = 2, + + /// + /// Property Name: "OverlayEdges" + /// Property Type: BOOL + /// + D2D1_EDGEDETECTION_PROP_OVERLAY_EDGES = 3, + + /// + /// Property Name: "AlphaMode" + /// Property Type: D2D1_ALPHA_MODE + /// + D2D1_EDGEDETECTION_PROP_ALPHA_MODE = 4, + D2D1_EDGEDETECTION_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_EDGEDETECTION_PROP; + +typedef enum D2D1_EDGEDETECTION_MODE +{ + D2D1_EDGEDETECTION_MODE_SOBEL = 0, + D2D1_EDGEDETECTION_MODE_PREWITT = 1, + D2D1_EDGEDETECTION_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_EDGEDETECTION_MODE; + + +/// +/// The enumeration of the Highlights and Shadows effect's top level properties. +/// Effect description: Adjusts the highlight and shadow strength of an image. +/// +typedef enum D2D1_HIGHLIGHTSANDSHADOWS_PROP +{ + + /// + /// Property Name: "Highlights" + /// Property Type: FLOAT + /// + D2D1_HIGHLIGHTSANDSHADOWS_PROP_HIGHLIGHTS = 0, + + /// + /// Property Name: "Shadows" + /// Property Type: FLOAT + /// + D2D1_HIGHLIGHTSANDSHADOWS_PROP_SHADOWS = 1, + + /// + /// Property Name: "Clarity" + /// Property Type: FLOAT + /// + D2D1_HIGHLIGHTSANDSHADOWS_PROP_CLARITY = 2, + + /// + /// Property Name: "InputGamma" + /// Property Type: D2D1_HIGHLIGHTSANDSHADOWS_INPUT_GAMMA + /// + D2D1_HIGHLIGHTSANDSHADOWS_PROP_INPUT_GAMMA = 3, + + /// + /// Property Name: "MaskBlurRadius" + /// Property Type: FLOAT + /// + D2D1_HIGHLIGHTSANDSHADOWS_PROP_MASK_BLUR_RADIUS = 4, + D2D1_HIGHLIGHTSANDSHADOWS_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_HIGHLIGHTSANDSHADOWS_PROP; + +typedef enum D2D1_HIGHLIGHTSANDSHADOWS_INPUT_GAMMA +{ + D2D1_HIGHLIGHTSANDSHADOWS_INPUT_GAMMA_LINEAR = 0, + D2D1_HIGHLIGHTSANDSHADOWS_INPUT_GAMMA_SRGB = 1, + D2D1_HIGHLIGHTSANDSHADOWS_INPUT_GAMMA_FORCE_DWORD = 0xffffffff + +} D2D1_HIGHLIGHTSANDSHADOWS_INPUT_GAMMA; + + +/// +/// The enumeration of the Lookup Table 3D effect's top level properties. +/// Effect description: Remaps colors in an image via a 3D lookup table. +/// +typedef enum D2D1_LOOKUPTABLE3D_PROP +{ + + /// + /// Property Name: "Lut" + /// Property Type: IUnknown * + /// + D2D1_LOOKUPTABLE3D_PROP_LUT = 0, + + /// + /// Property Name: "AlphaMode" + /// Property Type: D2D1_ALPHA_MODE + /// + D2D1_LOOKUPTABLE3D_PROP_ALPHA_MODE = 1, + D2D1_LOOKUPTABLE3D_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_LOOKUPTABLE3D_PROP; + + +#if NTDDI_VERSION >= NTDDI_WIN10_RS1 + +/// +/// The enumeration of the Opacity effect's top level properties. +/// Effect description: Adjusts the opacity of an image by multiplying the alpha +/// channel by the specified opacity. +/// +typedef enum D2D1_OPACITY_PROP +{ + + /// + /// Property Name: "Opacity" + /// Property Type: FLOAT + /// + D2D1_OPACITY_PROP_OPACITY = 0, + D2D1_OPACITY_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_OPACITY_PROP; + + +/// +/// The enumeration of the Cross Fade effect's top level properties. +/// Effect description: This effect combines two images by adding weighted pixels +/// from input images. The formula can be expressed as output = weight * Destination +/// + (1 - weight) * Source +/// +typedef enum D2D1_CROSSFADE_PROP +{ + + /// + /// Property Name: "Weight" + /// Property Type: FLOAT + /// + D2D1_CROSSFADE_PROP_WEIGHT = 0, + D2D1_CROSSFADE_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_CROSSFADE_PROP; + + +/// +/// The enumeration of the Tint effect's top level properties. +/// Effect description: This effect tints the source image by multiplying the +/// specified color by the source image. +/// +typedef enum D2D1_TINT_PROP +{ + + /// + /// Property Name: "Color" + /// Property Type: D2D1_VECTOR_4F + /// + D2D1_TINT_PROP_COLOR = 0, + + /// + /// Property Name: "ClampOutput" + /// Property Type: BOOL + /// + D2D1_TINT_PROP_CLAMP_OUTPUT = 1, + D2D1_TINT_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_TINT_PROP; + + +#endif // #if NTDDI_VERSION >= NTDDI_WIN10_RS1 + +#if NTDDI_VERSION >= NTDDI_WIN10_RS5 + +/// +/// The enumeration of the White Level Adjustment effect's top level properties. +/// Effect description: This effect adjusts the white level of the source image by +/// multiplying the source image color by the ratio of the input and output white +/// levels. Input and output white levels are specified in nits. +/// +typedef enum D2D1_WHITELEVELADJUSTMENT_PROP +{ + + /// + /// Property Name: "InputWhiteLevel" + /// Property Type: FLOAT + /// + D2D1_WHITELEVELADJUSTMENT_PROP_INPUT_WHITE_LEVEL = 0, + + /// + /// Property Name: "OutputWhiteLevel" + /// Property Type: FLOAT + /// + D2D1_WHITELEVELADJUSTMENT_PROP_OUTPUT_WHITE_LEVEL = 1, + D2D1_WHITELEVELADJUSTMENT_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_WHITELEVELADJUSTMENT_PROP; + + +/// +/// The enumeration of the HDR Tone Map effect's top level properties. +/// Effect description: Adjusts the maximum luminance of the source image to fit +/// within the maximum output luminance supported. Input and output luminance values +/// are specified in nits. Note that the color space of the image is assumed to be +/// scRGB. +/// +typedef enum D2D1_HDRTONEMAP_PROP +{ + + /// + /// Property Name: "InputMaxLuminance" + /// Property Type: FLOAT + /// + D2D1_HDRTONEMAP_PROP_INPUT_MAX_LUMINANCE = 0, + + /// + /// Property Name: "OutputMaxLuminance" + /// Property Type: FLOAT + /// + D2D1_HDRTONEMAP_PROP_OUTPUT_MAX_LUMINANCE = 1, + + /// + /// Property Name: "DisplayMode" + /// Property Type: D2D1_HDRTONEMAP_DISPLAY_MODE + /// + D2D1_HDRTONEMAP_PROP_DISPLAY_MODE = 2, + D2D1_HDRTONEMAP_PROP_FORCE_DWORD = 0xffffffff + +} D2D1_HDRTONEMAP_PROP; + +typedef enum D2D1_HDRTONEMAP_DISPLAY_MODE +{ + D2D1_HDRTONEMAP_DISPLAY_MODE_SDR = 0, + D2D1_HDRTONEMAP_DISPLAY_MODE_HDR = 1, + D2D1_HDRTONEMAP_DISPLAY_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_HDRTONEMAP_DISPLAY_MODE; + + +#endif // #if NTDDI_VERSION >= NTDDI_WIN10_RS5 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // #ifndef _D2D1_EFFECTS_2_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1helper.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1helper.h new file mode 100644 index 0000000000000000000000000000000000000000..9fd81366a9d6236c3f4b0e45b17d99fa9831d5c7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1helper.h @@ -0,0 +1,1033 @@ + +/*=========================================================================*\ + + Copyright (c) Microsoft Corporation. All rights reserved. + + File: D2D1helper.h + + Module Name: D2D + + Description: Helper files over the D2D interfaces and APIs. + +\*=========================================================================*/ +#pragma once + +#ifndef _D2D1_HELPER_H_ +#define _D2D1_HELPER_H_ + +#ifndef _D2D1_H_ +#include +#endif // #ifndef _D2D1_H_ + +#ifndef D2D_USE_C_DEFINITIONS + +namespace D2D1 +{ + // + // Forward declared IdentityMatrix function to allow matrix class to use + // these constructors. + // + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_MATRIX_3X2_F + IdentityMatrix(); + + // + // The default trait type for objects in D2D is float. + // + template + struct TypeTraits + { + typedef D2D1_POINT_2F Point; + typedef D2D1_SIZE_F Size; + typedef D2D1_RECT_F Rect; + }; + + template<> + struct TypeTraits + { + typedef D2D1_POINT_2U Point; + typedef D2D1_SIZE_U Size; + typedef D2D1_RECT_U Rect; + }; + + static + COM_DECLSPEC_NOTHROW + inline + FLOAT FloatMax() + { + #ifdef FLT_MAX + return FLT_MAX; + #else + return 3.402823466e+38F; + #endif + } + + // + // Construction helpers + // + template + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + typename TypeTraits::Point + Point2( + Type x, + Type y + ) + { + typename TypeTraits::Point point = { x, y }; + + return point; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_POINT_2F + Point2F( + FLOAT x = 0.f, + FLOAT y = 0.f + ) + { + return Point2(x, y); + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_POINT_2U + Point2U( + UINT32 x = 0, + UINT32 y = 0 + ) + { + return Point2(x, y); + } + + template + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + typename TypeTraits::Size + Size( + Type width, + Type height + ) + { + typename TypeTraits::Size size = { width, height }; + + return size; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_SIZE_F + SizeF( + FLOAT width = 0.f, + FLOAT height = 0.f + ) + { + return Size(width, height); + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_SIZE_U + SizeU( + UINT32 width = 0, + UINT32 height = 0 + ) + { + return Size(width, height); + } + + template + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + typename TypeTraits::Rect + Rect( + Type left, + Type top, + Type right, + Type bottom + ) + { + typename TypeTraits::Rect rect = { left, top, right, bottom }; + + return rect; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_RECT_F + RectF( + FLOAT left = 0.f, + FLOAT top = 0.f, + FLOAT right = 0.f, + FLOAT bottom = 0.f + ) + { + return Rect(left, top, right, bottom); + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_RECT_U + RectU( + UINT32 left = 0, + UINT32 top = 0, + UINT32 right = 0, + UINT32 bottom = 0 + ) + { + return Rect(left, top, right, bottom); + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_RECT_F + InfiniteRect() + { + D2D1_RECT_F rect = { -FloatMax(), -FloatMax(), FloatMax(), FloatMax() }; + + return rect; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_ARC_SEGMENT + ArcSegment( + _In_ CONST D2D1_POINT_2F &point, + _In_ CONST D2D1_SIZE_F &size, + _In_ FLOAT rotationAngle, + _In_ D2D1_SWEEP_DIRECTION sweepDirection, + _In_ D2D1_ARC_SIZE arcSize + ) + { + D2D1_ARC_SEGMENT arcSegment = { point, size, rotationAngle, sweepDirection, arcSize }; + + return arcSegment; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_BEZIER_SEGMENT + BezierSegment( + _In_ CONST D2D1_POINT_2F &point1, + _In_ CONST D2D1_POINT_2F &point2, + _In_ CONST D2D1_POINT_2F &point3 + ) + { + D2D1_BEZIER_SEGMENT bezierSegment = { point1, point2, point3 }; + + return bezierSegment; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_ELLIPSE + Ellipse( + _In_ CONST D2D1_POINT_2F ¢er, + FLOAT radiusX, + FLOAT radiusY + ) + { + D2D1_ELLIPSE ellipse; + + ellipse.point = center; + ellipse.radiusX = radiusX; + ellipse.radiusY = radiusY; + + return ellipse; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_ROUNDED_RECT + RoundedRect( + _In_ CONST D2D1_RECT_F &rect, + FLOAT radiusX, + FLOAT radiusY + ) + { + D2D1_ROUNDED_RECT roundedRect; + + roundedRect.rect = rect; + roundedRect.radiusX = radiusX; + roundedRect.radiusY = radiusY; + + return roundedRect; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_BRUSH_PROPERTIES + BrushProperties( + _In_ FLOAT opacity = 1.0, + _In_ CONST D2D1_MATRIX_3X2_F &transform = D2D1::IdentityMatrix() + ) + { + D2D1_BRUSH_PROPERTIES brushProperties; + + brushProperties.opacity = opacity; + brushProperties.transform = transform; + + return brushProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_GRADIENT_STOP + GradientStop( + FLOAT position, + _In_ CONST D2D1_COLOR_F &color + ) + { + D2D1_GRADIENT_STOP gradientStop = { position, color }; + + return gradientStop; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_QUADRATIC_BEZIER_SEGMENT + QuadraticBezierSegment( + _In_ CONST D2D1_POINT_2F &point1, + _In_ CONST D2D1_POINT_2F &point2 + ) + { + D2D1_QUADRATIC_BEZIER_SEGMENT quadraticBezier = { point1, point2 }; + + return quadraticBezier; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_STROKE_STYLE_PROPERTIES + StrokeStyleProperties( + D2D1_CAP_STYLE startCap = D2D1_CAP_STYLE_FLAT, + D2D1_CAP_STYLE endCap = D2D1_CAP_STYLE_FLAT, + D2D1_CAP_STYLE dashCap = D2D1_CAP_STYLE_FLAT, + D2D1_LINE_JOIN lineJoin = D2D1_LINE_JOIN_MITER, + FLOAT miterLimit = 10.0f, + D2D1_DASH_STYLE dashStyle = D2D1_DASH_STYLE_SOLID, + FLOAT dashOffset = 0.0f + ) + { + D2D1_STROKE_STYLE_PROPERTIES strokeStyleProperties; + + strokeStyleProperties.startCap = startCap; + strokeStyleProperties.endCap = endCap; + strokeStyleProperties.dashCap = dashCap; + strokeStyleProperties.lineJoin = lineJoin; + strokeStyleProperties.miterLimit = miterLimit; + strokeStyleProperties.dashStyle = dashStyle; + strokeStyleProperties.dashOffset = dashOffset; + + return strokeStyleProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_BITMAP_BRUSH_PROPERTIES + BitmapBrushProperties( + D2D1_EXTEND_MODE extendModeX = D2D1_EXTEND_MODE_CLAMP, + D2D1_EXTEND_MODE extendModeY = D2D1_EXTEND_MODE_CLAMP, + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode = D2D1_BITMAP_INTERPOLATION_MODE_LINEAR + ) + { + D2D1_BITMAP_BRUSH_PROPERTIES bitmapBrushProperties; + + bitmapBrushProperties.extendModeX = extendModeX; + bitmapBrushProperties.extendModeY = extendModeY; + bitmapBrushProperties.interpolationMode = interpolationMode; + + return bitmapBrushProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES + LinearGradientBrushProperties( + _In_ CONST D2D1_POINT_2F &startPoint, + _In_ CONST D2D1_POINT_2F &endPoint + ) + { + D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES linearGradientBrushProperties; + + linearGradientBrushProperties.startPoint = startPoint; + linearGradientBrushProperties.endPoint = endPoint; + + return linearGradientBrushProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES + RadialGradientBrushProperties( + _In_ CONST D2D1_POINT_2F ¢er, + _In_ CONST D2D1_POINT_2F &gradientOriginOffset, + FLOAT radiusX, + FLOAT radiusY + ) + { + D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES radialGradientBrushProperties; + + radialGradientBrushProperties.center = center; + radialGradientBrushProperties.gradientOriginOffset = gradientOriginOffset; + radialGradientBrushProperties.radiusX = radiusX; + radialGradientBrushProperties.radiusY = radiusY; + + return radialGradientBrushProperties; + } + + // + // PixelFormat + // + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_PIXEL_FORMAT + PixelFormat( + _In_ DXGI_FORMAT dxgiFormat = DXGI_FORMAT_UNKNOWN, + _In_ D2D1_ALPHA_MODE alphaMode = D2D1_ALPHA_MODE_UNKNOWN + ) + { + D2D1_PIXEL_FORMAT pixelFormat; + + pixelFormat.format = dxgiFormat; + pixelFormat.alphaMode = alphaMode; + + return pixelFormat; + } + + // + // Bitmaps + // + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_BITMAP_PROPERTIES + BitmapProperties( + CONST D2D1_PIXEL_FORMAT &pixelFormat = D2D1::PixelFormat(), + FLOAT dpiX = 96.0f, + FLOAT dpiY = 96.0f + ) + { + D2D1_BITMAP_PROPERTIES bitmapProperties; + + bitmapProperties.pixelFormat = pixelFormat; + bitmapProperties.dpiX = dpiX; + bitmapProperties.dpiY = dpiY; + + return bitmapProperties; + } + + // + // Render Targets + // + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_RENDER_TARGET_PROPERTIES + RenderTargetProperties( + D2D1_RENDER_TARGET_TYPE type = D2D1_RENDER_TARGET_TYPE_DEFAULT, + _In_ CONST D2D1_PIXEL_FORMAT &pixelFormat = D2D1::PixelFormat(), + FLOAT dpiX = 0.0, + FLOAT dpiY = 0.0, + D2D1_RENDER_TARGET_USAGE usage = D2D1_RENDER_TARGET_USAGE_NONE, + D2D1_FEATURE_LEVEL minLevel = D2D1_FEATURE_LEVEL_DEFAULT + ) + { + D2D1_RENDER_TARGET_PROPERTIES renderTargetProperties; + + renderTargetProperties.type = type; + renderTargetProperties.pixelFormat = pixelFormat; + renderTargetProperties.dpiX = dpiX; + renderTargetProperties.dpiY = dpiY; + renderTargetProperties.usage = usage; + renderTargetProperties.minLevel = minLevel; + + return renderTargetProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_HWND_RENDER_TARGET_PROPERTIES + HwndRenderTargetProperties( + _In_ HWND hwnd, + _In_ D2D1_SIZE_U pixelSize = D2D1::Size(static_cast(0), static_cast(0)), + _In_ D2D1_PRESENT_OPTIONS presentOptions = D2D1_PRESENT_OPTIONS_NONE + ) + { + D2D1_HWND_RENDER_TARGET_PROPERTIES hwndRenderTargetProperties; + + hwndRenderTargetProperties.hwnd = hwnd; + hwndRenderTargetProperties.pixelSize = pixelSize; + hwndRenderTargetProperties.presentOptions = presentOptions; + + return hwndRenderTargetProperties; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_LAYER_PARAMETERS + LayerParameters( + _In_ CONST D2D1_RECT_F &contentBounds = D2D1::InfiniteRect(), + _In_opt_ ID2D1Geometry *geometricMask = NULL, + D2D1_ANTIALIAS_MODE maskAntialiasMode = D2D1_ANTIALIAS_MODE_PER_PRIMITIVE, + D2D1_MATRIX_3X2_F maskTransform = D2D1::IdentityMatrix(), + FLOAT opacity = 1.0, + _In_opt_ ID2D1Brush *opacityBrush = NULL, + D2D1_LAYER_OPTIONS layerOptions = D2D1_LAYER_OPTIONS_NONE + ) + { + D2D1_LAYER_PARAMETERS layerParameters = {}; + + layerParameters.contentBounds = contentBounds; + layerParameters.geometricMask = geometricMask; + layerParameters.maskAntialiasMode = maskAntialiasMode; + layerParameters.maskTransform = maskTransform; + layerParameters.opacity = opacity; + layerParameters.opacityBrush = opacityBrush; + layerParameters.layerOptions = layerOptions; + + return layerParameters; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_DRAWING_STATE_DESCRIPTION + DrawingStateDescription( + D2D1_ANTIALIAS_MODE antialiasMode = D2D1_ANTIALIAS_MODE_PER_PRIMITIVE, + D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode = D2D1_TEXT_ANTIALIAS_MODE_DEFAULT, + D2D1_TAG tag1 = 0, + D2D1_TAG tag2 = 0, + _In_ const D2D1_MATRIX_3X2_F &transform = D2D1::IdentityMatrix() + ) + { + D2D1_DRAWING_STATE_DESCRIPTION drawingStateDescription; + + drawingStateDescription.antialiasMode = antialiasMode; + drawingStateDescription.textAntialiasMode = textAntialiasMode; + drawingStateDescription.tag1 = tag1; + drawingStateDescription.tag2 = tag2; + drawingStateDescription.transform = transform; + + return drawingStateDescription; + } + + // + // Colors, this enum defines a set of predefined colors. + // + class ColorF : public D2D1_COLOR_F + { + public: + + enum Enum + { + AliceBlue = 0xF0F8FF, + AntiqueWhite = 0xFAEBD7, + Aqua = 0x00FFFF, + Aquamarine = 0x7FFFD4, + Azure = 0xF0FFFF, + Beige = 0xF5F5DC, + Bisque = 0xFFE4C4, + Black = 0x000000, + BlanchedAlmond = 0xFFEBCD, + Blue = 0x0000FF, + BlueViolet = 0x8A2BE2, + Brown = 0xA52A2A, + BurlyWood = 0xDEB887, + CadetBlue = 0x5F9EA0, + Chartreuse = 0x7FFF00, + Chocolate = 0xD2691E, + Coral = 0xFF7F50, + CornflowerBlue = 0x6495ED, + Cornsilk = 0xFFF8DC, + Crimson = 0xDC143C, + Cyan = 0x00FFFF, + DarkBlue = 0x00008B, + DarkCyan = 0x008B8B, + DarkGoldenrod = 0xB8860B, + DarkGray = 0xA9A9A9, + DarkGreen = 0x006400, + DarkKhaki = 0xBDB76B, + DarkMagenta = 0x8B008B, + DarkOliveGreen = 0x556B2F, + DarkOrange = 0xFF8C00, + DarkOrchid = 0x9932CC, + DarkRed = 0x8B0000, + DarkSalmon = 0xE9967A, + DarkSeaGreen = 0x8FBC8F, + DarkSlateBlue = 0x483D8B, + DarkSlateGray = 0x2F4F4F, + DarkTurquoise = 0x00CED1, + DarkViolet = 0x9400D3, + DeepPink = 0xFF1493, + DeepSkyBlue = 0x00BFFF, + DimGray = 0x696969, + DodgerBlue = 0x1E90FF, + Firebrick = 0xB22222, + FloralWhite = 0xFFFAF0, + ForestGreen = 0x228B22, + Fuchsia = 0xFF00FF, + Gainsboro = 0xDCDCDC, + GhostWhite = 0xF8F8FF, + Gold = 0xFFD700, + Goldenrod = 0xDAA520, + Gray = 0x808080, + Green = 0x008000, + GreenYellow = 0xADFF2F, + Honeydew = 0xF0FFF0, + HotPink = 0xFF69B4, + IndianRed = 0xCD5C5C, + Indigo = 0x4B0082, + Ivory = 0xFFFFF0, + Khaki = 0xF0E68C, + Lavender = 0xE6E6FA, + LavenderBlush = 0xFFF0F5, + LawnGreen = 0x7CFC00, + LemonChiffon = 0xFFFACD, + LightBlue = 0xADD8E6, + LightCoral = 0xF08080, + LightCyan = 0xE0FFFF, + LightGoldenrodYellow = 0xFAFAD2, + LightGreen = 0x90EE90, + LightGray = 0xD3D3D3, + LightPink = 0xFFB6C1, + LightSalmon = 0xFFA07A, + LightSeaGreen = 0x20B2AA, + LightSkyBlue = 0x87CEFA, + LightSlateGray = 0x778899, + LightSteelBlue = 0xB0C4DE, + LightYellow = 0xFFFFE0, + Lime = 0x00FF00, + LimeGreen = 0x32CD32, + Linen = 0xFAF0E6, + Magenta = 0xFF00FF, + Maroon = 0x800000, + MediumAquamarine = 0x66CDAA, + MediumBlue = 0x0000CD, + MediumOrchid = 0xBA55D3, + MediumPurple = 0x9370DB, + MediumSeaGreen = 0x3CB371, + MediumSlateBlue = 0x7B68EE, + MediumSpringGreen = 0x00FA9A, + MediumTurquoise = 0x48D1CC, + MediumVioletRed = 0xC71585, + MidnightBlue = 0x191970, + MintCream = 0xF5FFFA, + MistyRose = 0xFFE4E1, + Moccasin = 0xFFE4B5, + NavajoWhite = 0xFFDEAD, + Navy = 0x000080, + OldLace = 0xFDF5E6, + Olive = 0x808000, + OliveDrab = 0x6B8E23, + Orange = 0xFFA500, + OrangeRed = 0xFF4500, + Orchid = 0xDA70D6, + PaleGoldenrod = 0xEEE8AA, + PaleGreen = 0x98FB98, + PaleTurquoise = 0xAFEEEE, + PaleVioletRed = 0xDB7093, + PapayaWhip = 0xFFEFD5, + PeachPuff = 0xFFDAB9, + Peru = 0xCD853F, + Pink = 0xFFC0CB, + Plum = 0xDDA0DD, + PowderBlue = 0xB0E0E6, + Purple = 0x800080, + Red = 0xFF0000, + RosyBrown = 0xBC8F8F, + RoyalBlue = 0x4169E1, + SaddleBrown = 0x8B4513, + Salmon = 0xFA8072, + SandyBrown = 0xF4A460, + SeaGreen = 0x2E8B57, + SeaShell = 0xFFF5EE, + Sienna = 0xA0522D, + Silver = 0xC0C0C0, + SkyBlue = 0x87CEEB, + SlateBlue = 0x6A5ACD, + SlateGray = 0x708090, + Snow = 0xFFFAFA, + SpringGreen = 0x00FF7F, + SteelBlue = 0x4682B4, + Tan = 0xD2B48C, + Teal = 0x008080, + Thistle = 0xD8BFD8, + Tomato = 0xFF6347, + Turquoise = 0x40E0D0, + Violet = 0xEE82EE, + Wheat = 0xF5DEB3, + White = 0xFFFFFF, + WhiteSmoke = 0xF5F5F5, + Yellow = 0xFFFF00, + YellowGreen = 0x9ACD32, + }; + + // + // Construct a color, note that the alpha value from the "rgb" component + // is never used. + // + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + ColorF( + UINT32 rgb, + FLOAT a = 1.0 + ) + { + Init(rgb, a); + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + ColorF( + Enum knownColor, + FLOAT a = 1.0 + ) + { + Init(knownColor, a); + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + ColorF( + FLOAT red, + FLOAT green, + FLOAT blue, + FLOAT alpha = 1.0 + ) + { + r = red; + g = green; + b = blue; + a = alpha; + } + + private: + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + void + Init( + UINT32 rgb, + FLOAT alpha + ) + { + r = static_cast((rgb & sc_redMask) >> sc_redShift) / 255.f; + g = static_cast((rgb & sc_greenMask) >> sc_greenShift) / 255.f; + b = static_cast((rgb & sc_blueMask) >> sc_blueShift) / 255.f; + a = alpha; + } + + static const UINT32 sc_redShift = 16; + static const UINT32 sc_greenShift = 8; + static const UINT32 sc_blueShift = 0; + + static const UINT32 sc_redMask = 0xff << sc_redShift; + static const UINT32 sc_greenMask = 0xff << sc_greenShift; + static const UINT32 sc_blueMask = 0xff << sc_blueShift; + }; + + class Matrix3x2F : public D2D1_MATRIX_3X2_F + { + public: + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + Matrix3x2F( + FLOAT m11, + FLOAT m12, + FLOAT m21, + FLOAT m22, + FLOAT m31, + FLOAT m32 + ) + { + _11 = m11; + _12 = m12; + _21 = m21; + _22 = m22; + _31 = m31; + _32 = m32; + } + + // + // Creates an uninitialized matrix + // + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + Matrix3x2F( + ) + { + } + + // + // Named quasi-constructors + // + static + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + Matrix3x2F + Identity() + { + Matrix3x2F identity; + + identity._11 = 1.f; + identity._12 = 0.f; + identity._21 = 0.f; + identity._22 = 1.f; + identity._31 = 0.f; + identity._32 = 0.f; + + return identity; + } + + static + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + Matrix3x2F + Translation( + D2D1_SIZE_F size + ) + { + Matrix3x2F translation; + + translation._11 = 1.0; translation._12 = 0.0; + translation._21 = 0.0; translation._22 = 1.0; + translation._31 = size.width; translation._32 = size.height; + + return translation; + } + + static + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + Matrix3x2F + Translation( + FLOAT x, + FLOAT y + ) + { + return Translation(SizeF(x, y)); + } + + + static + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + Matrix3x2F + Scale( + D2D1_SIZE_F size, + D2D1_POINT_2F center = D2D1::Point2F() + ) + { + Matrix3x2F scale; + + scale._11 = size.width; scale._12 = 0.0; + scale._21 = 0.0; scale._22 = size.height; + scale._31 = center.x - size.width * center.x; + scale._32 = center.y - size.height * center.y; + + return scale; + } + + static + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + Matrix3x2F + Scale( + FLOAT x, + FLOAT y, + D2D1_POINT_2F center = D2D1::Point2F() + ) + { + return Scale(SizeF(x, y), center); + } + + static + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + Matrix3x2F + Rotation( + FLOAT angle, + D2D1_POINT_2F center = D2D1::Point2F() + ) + { + Matrix3x2F rotation; + + D2D1MakeRotateMatrix(angle, center, &rotation); + + return rotation; + } + + static + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + Matrix3x2F + Skew( + FLOAT angleX, + FLOAT angleY, + D2D1_POINT_2F center = D2D1::Point2F() + ) + { + Matrix3x2F skew; + + D2D1MakeSkewMatrix(angleX, angleY, center, &skew); + + return skew; + } + + // + // Functions for convertion from the base D2D1_MATRIX_3X2_F to this type + // without making a copy + // + static + COM_DECLSPEC_NOTHROW + inline + const Matrix3x2F* + ReinterpretBaseType(const D2D1_MATRIX_3X2_F *pMatrix) + { + return static_cast(pMatrix); + } + + static + COM_DECLSPEC_NOTHROW + inline + Matrix3x2F* + ReinterpretBaseType(D2D1_MATRIX_3X2_F *pMatrix) + { + return static_cast(pMatrix); + } + + COM_DECLSPEC_NOTHROW + inline + FLOAT + Determinant() const + { + return (_11 * _22) - (_12 * _21); + } + + COM_DECLSPEC_NOTHROW + inline + bool + IsInvertible() const + { + return !!D2D1IsMatrixInvertible(this); + } + + COM_DECLSPEC_NOTHROW + inline + bool + Invert() + { + return !!D2D1InvertMatrix(this); + } + + COM_DECLSPEC_NOTHROW + inline + bool + IsIdentity() const + { + return _11 == 1.f && _12 == 0.f + && _21 == 0.f && _22 == 1.f + && _31 == 0.f && _32 == 0.f; + } + + COM_DECLSPEC_NOTHROW + inline + void SetProduct( + const Matrix3x2F &a, + const Matrix3x2F &b + ) + { + _11 = a._11 * b._11 + a._12 * b._21; + _12 = a._11 * b._12 + a._12 * b._22; + _21 = a._21 * b._11 + a._22 * b._21; + _22 = a._21 * b._12 + a._22 * b._22; + _31 = a._31 * b._11 + a._32 * b._21 + b._31; + _32 = a._31 * b._12 + a._32 * b._22 + b._32; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + Matrix3x2F + operator*( + const Matrix3x2F &matrix + ) const + { + Matrix3x2F result; + + result.SetProduct(*this, matrix); + + return result; + } + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_POINT_2F + TransformPoint( + D2D1_POINT_2F point + ) const + { + D2D1_POINT_2F result = + { + point.x * _11 + point.y * _21 + _31, + point.x * _12 + point.y * _22 + _32 + }; + + return result; + } + }; + + COM_DECLSPEC_NOTHROW + D2D1FORCEINLINE + D2D1_POINT_2F + operator*( + const D2D1_POINT_2F &point, + const D2D1_MATRIX_3X2_F &matrix + ) + { + return Matrix3x2F::ReinterpretBaseType(&matrix)->TransformPoint(point); + } + + COM_DECLSPEC_NOTHROW + D2D1_MATRIX_3X2_F + IdentityMatrix() + { + return Matrix3x2F::Identity(); + } + +} // namespace D2D1 + +COM_DECLSPEC_NOTHROW +D2D1FORCEINLINE +D2D1_MATRIX_3X2_F +operator*( + const D2D1_MATRIX_3X2_F &matrix1, + const D2D1_MATRIX_3X2_F &matrix2 + ) +{ + return + (*D2D1::Matrix3x2F::ReinterpretBaseType(&matrix1)) * + (*D2D1::Matrix3x2F::ReinterpretBaseType(&matrix2)); +} + +COM_DECLSPEC_NOTHROW +inline +bool +operator==(const D2D1_SIZE_U &size1, const D2D1_SIZE_U &size2) +{ + return (size1.width == size2.width) && (size1.height == size2.height); +} + +COM_DECLSPEC_NOTHROW +inline +bool +operator==(const D2D1_RECT_U &rect1, const D2D1_RECT_U &rect2) +{ + return (rect1.left == rect2.left) && (rect1.top == rect2.top) && + (rect1.right == rect2.right) && (rect1.bottom == rect2.bottom); +} + +#endif // #ifndef D2D_USE_C_DEFINITIONS + +#endif // #ifndef _D2D1_HELPER_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1svg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1svg.h new file mode 100644 index 0000000000000000000000000000000000000000..1a08b0bb507047448568bf270d4553bc71acd4af --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2d1svg.h @@ -0,0 +1,1832 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2D1Svg.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2D1_SVG_ +#define _D2D1_SVG_ + +#ifndef _D2D1_2_H_ +#include +#endif // #ifndef _D2D1_2_H_ + +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef interface ID2D1SvgDocument ID2D1SvgDocument; +typedef interface ID2D1SvgElement ID2D1SvgElement; + +/// +/// Specifies the paint type for an SVG fill or stroke. +/// +typedef enum D2D1_SVG_PAINT_TYPE +{ + + /// + /// The fill or stroke is not rendered. + /// + D2D1_SVG_PAINT_TYPE_NONE = 0, + + /// + /// A solid color is rendered. + /// + D2D1_SVG_PAINT_TYPE_COLOR = 1, + + /// + /// The current color is rendered. + /// + D2D1_SVG_PAINT_TYPE_CURRENT_COLOR = 2, + + /// + /// A paint server, defined by another element in the SVG document, is used. + /// + D2D1_SVG_PAINT_TYPE_URI = 3, + + /// + /// A paint server, defined by another element in the SVG document, is used. If the + /// paint server reference is invalid, fall back to D2D1_SVG_PAINT_TYPE_NONE. + /// + D2D1_SVG_PAINT_TYPE_URI_NONE = 4, + + /// + /// A paint server, defined by another element in the SVG document, is used. If the + /// paint server reference is invalid, fall back to D2D1_SVG_PAINT_TYPE_COLOR. + /// + D2D1_SVG_PAINT_TYPE_URI_COLOR = 5, + + /// + /// A paint server, defined by another element in the SVG document, is used. If the + /// paint server reference is invalid, fall back to + /// D2D1_SVG_PAINT_TYPE_CURRENT_COLOR. + /// + D2D1_SVG_PAINT_TYPE_URI_CURRENT_COLOR = 6, + D2D1_SVG_PAINT_TYPE_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_PAINT_TYPE; + + +/// +/// Specifies the units for an SVG length. +/// +typedef enum D2D1_SVG_LENGTH_UNITS +{ + + /// + /// The length is unitless. + /// + D2D1_SVG_LENGTH_UNITS_NUMBER = 0, + + /// + /// The length is a percentage value. + /// + D2D1_SVG_LENGTH_UNITS_PERCENTAGE = 1, + D2D1_SVG_LENGTH_UNITS_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_LENGTH_UNITS; + + +/// +/// Specifies a value for the SVG display property. +/// +typedef enum D2D1_SVG_DISPLAY +{ + + /// + /// The element uses the default display behavior. + /// + D2D1_SVG_DISPLAY_INLINE = 0, + + /// + /// The element and all children are not rendered directly. + /// + D2D1_SVG_DISPLAY_NONE = 1, + D2D1_SVG_DISPLAY_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_DISPLAY; + + +/// +/// Specifies a value for the SVG visibility property. +/// +typedef enum D2D1_SVG_VISIBILITY +{ + + /// + /// The element is visible. + /// + D2D1_SVG_VISIBILITY_VISIBLE = 0, + + /// + /// The element is invisible. + /// + D2D1_SVG_VISIBILITY_HIDDEN = 1, + D2D1_SVG_VISIBILITY_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_VISIBILITY; + + +/// +/// Specifies a value for the SVG overflow property. +/// +typedef enum D2D1_SVG_OVERFLOW +{ + + /// + /// The element is not clipped to its viewport. + /// + D2D1_SVG_OVERFLOW_VISIBLE = 0, + + /// + /// The element is clipped to its viewport. + /// + D2D1_SVG_OVERFLOW_HIDDEN = 1, + D2D1_SVG_OVERFLOW_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_OVERFLOW; + + +/// +/// Specifies a value for the SVG stroke-linecap property. +/// +typedef enum D2D1_SVG_LINE_CAP +{ + + /// + /// The property is set to SVG's 'butt' value. + /// + D2D1_SVG_LINE_CAP_BUTT = D2D1_CAP_STYLE_FLAT, + + /// + /// The property is set to SVG's 'square' value. + /// + D2D1_SVG_LINE_CAP_SQUARE = D2D1_CAP_STYLE_SQUARE, + + /// + /// The property is set to SVG's 'round' value. + /// + D2D1_SVG_LINE_CAP_ROUND = D2D1_CAP_STYLE_ROUND, + D2D1_SVG_LINE_CAP_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_LINE_CAP; + + +/// +/// Specifies a value for the SVG stroke-linejoin property. +/// +typedef enum D2D1_SVG_LINE_JOIN +{ + + /// + /// The property is set to SVG's 'bevel' value. + /// + D2D1_SVG_LINE_JOIN_BEVEL = D2D1_LINE_JOIN_BEVEL, + + /// + /// The property is set to SVG's 'miter' value. Note that this is equivalent to + /// D2D1_LINE_JOIN_MITER_OR_BEVEL, not D2D1_LINE_JOIN_MITER. + /// + D2D1_SVG_LINE_JOIN_MITER = D2D1_LINE_JOIN_MITER_OR_BEVEL, + + /// + /// \ The property is set to SVG's 'round' value. + /// + D2D1_SVG_LINE_JOIN_ROUND = D2D1_LINE_JOIN_ROUND, + D2D1_SVG_LINE_JOIN_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_LINE_JOIN; + + +/// +/// The alignment portion of the SVG preserveAspectRatio attribute. +/// +typedef enum D2D1_SVG_ASPECT_ALIGN +{ + + /// + /// The alignment is set to SVG's 'none' value. + /// + D2D1_SVG_ASPECT_ALIGN_NONE = 0, + + /// + /// The alignment is set to SVG's 'xMinYMin' value. + /// + D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MIN = 1, + + /// + /// The alignment is set to SVG's 'xMidYMin' value. + /// + D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MIN = 2, + + /// + /// The alignment is set to SVG's 'xMaxYMin' value. + /// + D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MIN = 3, + + /// + /// The alignment is set to SVG's 'xMinYMid' value. + /// + D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MID = 4, + + /// + /// The alignment is set to SVG's 'xMidYMid' value. + /// + D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MID = 5, + + /// + /// The alignment is set to SVG's 'xMaxYMid' value. + /// + D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MID = 6, + + /// + /// The alignment is set to SVG's 'xMinYMax' value. + /// + D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MAX = 7, + + /// + /// The alignment is set to SVG's 'xMidYMax' value. + /// + D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MAX = 8, + + /// + /// The alignment is set to SVG's 'xMaxYMax' value. + /// + D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MAX = 9, + D2D1_SVG_ASPECT_ALIGN_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_ASPECT_ALIGN; + + +/// +/// The meetOrSlice portion of the SVG preserveAspectRatio attribute. +/// +typedef enum D2D1_SVG_ASPECT_SCALING +{ + + /// + /// Scale the viewBox up as much as possible such that the entire viewBox is visible + /// within the viewport. + /// + D2D1_SVG_ASPECT_SCALING_MEET = 0, + + /// + /// Scale the viewBox down as much as possible such that the entire viewport is + /// covered by the viewBox. + /// + D2D1_SVG_ASPECT_SCALING_SLICE = 1, + D2D1_SVG_ASPECT_SCALING_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_ASPECT_SCALING; + + +/// +/// Represents a path commmand. Each command may reference floats from the segment +/// data. Commands ending in _ABSOLUTE interpret data as absolute coordinate. +/// Commands ending in _RELATIVE interpret data as being relative to the previous +/// point. +/// +typedef enum D2D1_SVG_PATH_COMMAND +{ + + /// + /// Closes the current subpath. Uses no segment data. + /// + D2D1_SVG_PATH_COMMAND_CLOSE_PATH = 0, + + /// + /// Starts a new subpath at the coordinate (x y). Uses 2 floats of segment data. + /// + D2D1_SVG_PATH_COMMAND_MOVE_ABSOLUTE = 1, + + /// + /// Starts a new subpath at the coordinate (x y). Uses 2 floats of segment data. + /// + D2D1_SVG_PATH_COMMAND_MOVE_RELATIVE = 2, + + /// + /// Draws a line to the coordinate (x y). Uses 2 floats of segment data. + /// + D2D1_SVG_PATH_COMMAND_LINE_ABSOLUTE = 3, + + /// + /// Draws a line to the coordinate (x y). Uses 2 floats of segment data. + /// + D2D1_SVG_PATH_COMMAND_LINE_RELATIVE = 4, + + /// + /// Draws a cubic Bezier curve (x1 y1 x2 y2 x y). The curve ends at (x, y) and is + /// defined by the two control points (x1, y1) and (x2, y2). Uses 6 floats of + /// segment data. + /// + D2D1_SVG_PATH_COMMAND_CUBIC_ABSOLUTE = 5, + + /// + /// Draws a cubic Bezier curve (x1 y1 x2 y2 x y). The curve ends at (x, y) and is + /// defined by the two control points (x1, y1) and (x2, y2). Uses 6 floats of + /// segment data. + /// + D2D1_SVG_PATH_COMMAND_CUBIC_RELATIVE = 6, + + /// + /// Draws a quadratic Bezier curve (x1 y1 x y). The curve ends at (x, y) and is + /// defined by the control point (x1 y1). Uses 4 floats of segment data. + /// + D2D1_SVG_PATH_COMMAND_QUADRADIC_ABSOLUTE = 7, + + /// + /// Draws a quadratic Bezier curve (x1 y1 x y). The curve ends at (x, y) and is + /// defined by the control point (x1 y1). Uses 4 floats of segment data. + /// + D2D1_SVG_PATH_COMMAND_QUADRADIC_RELATIVE = 8, + + /// + /// Draws an elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y). + /// The curve ends at (x, y) and is defined by the arc parameters. The two flags are + /// considered set if their values are non-zero. Uses 7 floats of segment data. + /// + D2D1_SVG_PATH_COMMAND_ARC_ABSOLUTE = 9, + + /// + /// Draws an elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y). + /// The curve ends at (x, y) and is defined by the arc parameters. The two flags are + /// considered set if their values are non-zero. Uses 7 floats of segment data. + /// + D2D1_SVG_PATH_COMMAND_ARC_RELATIVE = 10, + + /// + /// Draws a horizontal line to the coordinate (x). Uses 1 float of segment data. + /// + D2D1_SVG_PATH_COMMAND_HORIZONTAL_ABSOLUTE = 11, + + /// + /// Draws a horizontal line to the coordinate (x). Uses 1 float of segment data. + /// + D2D1_SVG_PATH_COMMAND_HORIZONTAL_RELATIVE = 12, + + /// + /// Draws a vertical line to the coordinate (y). Uses 1 float of segment data. + /// + D2D1_SVG_PATH_COMMAND_VERTICAL_ABSOLUTE = 13, + + /// + /// Draws a vertical line to the coordinate (y). Uses 1 float of segment data. + /// + D2D1_SVG_PATH_COMMAND_VERTICAL_RELATIVE = 14, + + /// + /// Draws a smooth cubic Bezier curve (x2 y2 x y). The curve ends at (x, y) and is + /// defined by the control point (x2, y2). Uses 4 floats of segment data. + /// + D2D1_SVG_PATH_COMMAND_CUBIC_SMOOTH_ABSOLUTE = 15, + + /// + /// Draws a smooth cubic Bezier curve (x2 y2 x y). The curve ends at (x, y) and is + /// defined by the control point (x2, y2). Uses 4 floats of segment data. + /// + D2D1_SVG_PATH_COMMAND_CUBIC_SMOOTH_RELATIVE = 16, + + /// + /// Draws a smooth quadratic Bezier curve ending at (x, y). Uses 2 floats of segment + /// data. + /// + D2D1_SVG_PATH_COMMAND_QUADRADIC_SMOOTH_ABSOLUTE = 17, + + /// + /// Draws a smooth quadratic Bezier curve ending at (x, y). Uses 2 floats of segment + /// data. + /// + D2D1_SVG_PATH_COMMAND_QUADRADIC_SMOOTH_RELATIVE = 18, + D2D1_SVG_PATH_COMMAND_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_PATH_COMMAND; + + +/// +/// Defines the coordinate system used for SVG gradient or clipPath elements. +/// +typedef enum D2D1_SVG_UNIT_TYPE +{ + + /// + /// The property is set to SVG's 'userSpaceOnUse' value. + /// + D2D1_SVG_UNIT_TYPE_USER_SPACE_ON_USE = 0, + + /// + /// The property is set to SVG's 'objectBoundingBox' value. + /// + D2D1_SVG_UNIT_TYPE_OBJECT_BOUNDING_BOX = 1, + D2D1_SVG_UNIT_TYPE_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_UNIT_TYPE; + + +/// +/// Defines the type of SVG string attribute to set or get. +/// +typedef enum D2D1_SVG_ATTRIBUTE_STRING_TYPE +{ + + /// + /// The attribute is a string in the same form as it would appear in the SVG XML. + /// + /// Note that when getting values of this type, the value returned may not exactly + /// match the value that was set. Instead, the output value is a normalized version + /// of the value. For example, an input color of 'red' may be output as '#FF0000'. + /// + D2D1_SVG_ATTRIBUTE_STRING_TYPE_SVG = 0, + + /// + /// The attribute is an element ID. + /// + D2D1_SVG_ATTRIBUTE_STRING_TYPE_ID = 1, + D2D1_SVG_ATTRIBUTE_STRING_TYPE_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_ATTRIBUTE_STRING_TYPE; + + +/// +/// Defines the type of SVG POD attribute to set or get. +/// +typedef enum D2D1_SVG_ATTRIBUTE_POD_TYPE +{ + + /// + /// The attribute is a FLOAT. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_FLOAT = 0, + + /// + /// The attribute is a D2D1_COLOR_F. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_COLOR = 1, + + /// + /// The attribute is a D2D1_FILL_MODE. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_FILL_MODE = 2, + + /// + /// The attribute is a D2D1_SVG_DISPLAY. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_DISPLAY = 3, + + /// + /// The attribute is a D2D1_SVG_OVERFLOW. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_OVERFLOW = 4, + + /// + /// The attribute is a D2D1_SVG_LINE_CAP. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_LINE_CAP = 5, + + /// + /// The attribute is a D2D1_SVG_LINE_JOIN. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_LINE_JOIN = 6, + + /// + /// The attribute is a D2D1_SVG_VISIBILITY. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_VISIBILITY = 7, + + /// + /// The attribute is a D2D1_MATRIX_3X2_F. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_MATRIX = 8, + + /// + /// The attribute is a D2D1_SVG_UNIT_TYPE. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_UNIT_TYPE = 9, + + /// + /// The attribute is a D2D1_EXTEND_MODE. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_EXTEND_MODE = 10, + + /// + /// The attribute is a D2D1_SVG_PRESERVE_ASPECT_RATIO. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_PRESERVE_ASPECT_RATIO = 11, + + /// + /// The attribute is a D2D1_SVG_VIEWBOX. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_VIEWBOX = 12, + + /// + /// The attribute is a D2D1_SVG_LENGTH. + /// + D2D1_SVG_ATTRIBUTE_POD_TYPE_LENGTH = 13, + D2D1_SVG_ATTRIBUTE_POD_TYPE_FORCE_DWORD = 0xffffffff + +} D2D1_SVG_ATTRIBUTE_POD_TYPE; + + +/// +/// Represents an SVG length. +/// +typedef struct D2D1_SVG_LENGTH +{ + FLOAT value; + D2D1_SVG_LENGTH_UNITS units; + +} D2D1_SVG_LENGTH; + + +/// +/// Represents all SVG preserveAspectRatio settings. +/// +typedef struct D2D1_SVG_PRESERVE_ASPECT_RATIO +{ + + /// + /// Sets the 'defer' portion of the preserveAspectRatio settings. This field only + /// has an effect on an 'image' element that references another SVG document. As + /// this is not currently supported, the field has no impact on rendering. + /// + BOOL defer; + + /// + /// Sets the align portion of the preserveAspectRatio settings. + /// + D2D1_SVG_ASPECT_ALIGN align; + + /// + /// Sets the meetOrSlice portion of the preserveAspectRatio settings. + /// + D2D1_SVG_ASPECT_SCALING meetOrSlice; + +} D2D1_SVG_PRESERVE_ASPECT_RATIO; + + +/// +/// Represents an SVG viewBox. +/// +typedef struct D2D1_SVG_VIEWBOX +{ + FLOAT x; + FLOAT y; + FLOAT width; + FLOAT height; + +} D2D1_SVG_VIEWBOX; + + +EXTERN_C CONST IID IID_ID2D1SvgAttribute; +EXTERN_C CONST IID IID_ID2D1SvgPaint; +EXTERN_C CONST IID IID_ID2D1SvgStrokeDashArray; +EXTERN_C CONST IID IID_ID2D1SvgPointCollection; +EXTERN_C CONST IID IID_ID2D1SvgPathData; +EXTERN_C CONST IID IID_ID2D1SvgElement; +EXTERN_C CONST IID IID_ID2D1SvgDocument; + + +#ifndef D2D_USE_C_DEFINITIONS + +#if NTDDI_VERSION >= NTDDI_WIN10_RS2 + +/// +/// Interface describing an SVG attribute. +/// +interface DX_DECLARE_INTERFACE("c9cdb0dd-f8c9-4e70-b7c2-301c80292c5e") ID2D1SvgAttribute : public ID2D1Resource +{ + + /// + /// Returns the element on which this attribute is set. Returns null if the + /// attribute is not set on any element. + /// + STDMETHOD_(void, GetElement)( + _Outptr_result_maybenull_ ID2D1SvgElement **element + ) PURE; + + /// + /// Creates a clone of this attribute value. On creation, the cloned attribute is + /// not set on any element. + /// + STDMETHOD(Clone)( + _COM_Outptr_ ID2D1SvgAttribute **attribute + ) PURE; +}; // interface ID2D1SvgAttribute + + +/// +/// Interface describing an SVG 'fill' or 'stroke' value. +/// +interface DX_DECLARE_INTERFACE("d59bab0a-68a2-455b-a5dc-9eb2854e2490") ID2D1SvgPaint : public ID2D1SvgAttribute +{ + + /// + /// Sets the paint type. + /// + STDMETHOD(SetPaintType)( + D2D1_SVG_PAINT_TYPE paintType + ) PURE; + + /// + /// Gets the paint type. + /// + STDMETHOD_(D2D1_SVG_PAINT_TYPE, GetPaintType)( + ) PURE; + + /// + /// Sets the paint color that is used if the paint type is + /// D2D1_SVG_PAINT_TYPE_COLOR. + /// + STDMETHOD(SetColor)( + _In_ CONST D2D1_COLOR_F *color + ) PURE; + + /// + /// Gets the paint color that is used if the paint type is + /// D2D1_SVG_PAINT_TYPE_COLOR. + /// + STDMETHOD_(void, GetColor)( + _Out_ D2D1_COLOR_F *color + ) PURE; + + /// + /// Sets the element id which acts as the paint server. This id is used if the paint + /// type is D2D1_SVG_PAINT_TYPE_URI. + /// + STDMETHOD(SetId)( + _In_ PCWSTR id + ) PURE; + + /// + /// Gets the element id which acts as the paint server. This id is used if the paint + /// type is D2D1_SVG_PAINT_TYPE_URI. + /// + STDMETHOD(GetId)( + _Out_writes_(idCount) PWSTR id, + UINT32 idCount + ) PURE; + + /// + /// Gets the string length of the element id which acts as the paint server. This id + /// is used if the paint type is D2D1_SVG_PAINT_TYPE_URI. The returned string length + /// does not include room for the null terminator. + /// + STDMETHOD_(UINT32, GetIdLength)( + ) PURE; + + /// + /// Sets the paint color that is used if the paint type is + /// D2D1_SVG_PAINT_TYPE_COLOR. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetColor( + CONST D2D1_COLOR_F &color + ) + { + return SetColor(&color); + } +}; // interface ID2D1SvgPaint + + +/// +/// Interface describing an SVG 'stroke-dasharray' value. +/// +interface DX_DECLARE_INTERFACE("f1c0ca52-92a3-4f00-b4ce-f35691efd9d9") ID2D1SvgStrokeDashArray : public ID2D1SvgAttribute +{ + + /// + /// Removes dashes from the end of the array. + /// + /// Specifies how many dashes to remove. + STDMETHOD(RemoveDashesAtEnd)( + UINT32 dashesCount + ) PURE; + + /// + /// Updates the array. Existing dashes not updated by this method are preserved. The + /// array is resized larger if necessary to accomodate the new dashes. + /// + /// The dashes array. + /// The number of dashes to update. + /// The index at which to begin updating dashes. Must be + /// less than or equal to the size of the array. + STDMETHOD(UpdateDashes)( + _In_reads_(dashesCount) CONST FLOAT *dashes, + UINT32 dashesCount, + UINT32 startIndex = 0 + ) PURE; + + /// + /// Updates the array. Existing dashes not updated by this method are preserved. The + /// array is resized larger if necessary to accomodate the new dashes. + /// + /// The dashes array. + /// The number of dashes to update. + /// The index at which to begin updating dashes. Must be + /// less than or equal to the size of the array. + STDMETHOD(UpdateDashes)( + _In_reads_(dashesCount) CONST D2D1_SVG_LENGTH *dashes, + UINT32 dashesCount, + UINT32 startIndex = 0 + ) PURE; + + /// + /// Gets dashes from the array. + /// + /// Buffer to contain the dashes. + /// The element count of buffer. + /// The index of the first dash to retrieve. + STDMETHOD(GetDashes)( + _Out_writes_(dashesCount) FLOAT *dashes, + UINT32 dashesCount, + UINT32 startIndex = 0 + ) PURE; + + /// + /// Gets dashes from the array. + /// + /// Buffer to contain the dashes. + /// The element count of buffer. + /// The index of the first dash to retrieve. + STDMETHOD(GetDashes)( + _Out_writes_(dashesCount) D2D1_SVG_LENGTH *dashes, + UINT32 dashesCount, + UINT32 startIndex = 0 + ) PURE; + + /// + /// Gets the number of the dashes in the array. + /// + STDMETHOD_(UINT32, GetDashesCount)( + ) PURE; +}; // interface ID2D1SvgStrokeDashArray + + +/// +/// Interface describing an SVG 'points' value in a 'polyline' or 'polygon' element. +/// +interface DX_DECLARE_INTERFACE("9dbe4c0d-3572-4dd9-9825-5530813bb712") ID2D1SvgPointCollection : public ID2D1SvgAttribute +{ + + /// + /// Removes points from the end of the array. + /// + /// Specifies how many points to remove. + STDMETHOD(RemovePointsAtEnd)( + UINT32 pointsCount + ) PURE; + + /// + /// Updates the points array. Existing points not updated by this method are + /// preserved. The array is resized larger if necessary to accomodate the new + /// points. + /// + /// The points array. + /// The number of points to update. + /// The index at which to begin updating points. Must be + /// less than or equal to the size of the array. + STDMETHOD(UpdatePoints)( + _In_reads_(pointsCount) CONST D2D1_POINT_2F *points, + UINT32 pointsCount, + UINT32 startIndex = 0 + ) PURE; + + /// + /// Gets points from the points array. + /// + /// Buffer to contain the points. + /// The element count of the buffer. + /// The index of the first point to retrieve. + STDMETHOD(GetPoints)( + _Out_writes_(pointsCount) D2D1_POINT_2F *points, + UINT32 pointsCount, + UINT32 startIndex = 0 + ) PURE; + + /// + /// Gets the number of points in the array. + /// + STDMETHOD_(UINT32, GetPointsCount)( + ) PURE; +}; // interface ID2D1SvgPointCollection + + +/// +/// Interface describing SVG path data. Path data can be set as the 'd' attribute on +/// a 'path' element. +/// +/// The path data set is factored into two arrays. The segment data array stores all +/// numbers and the commands array stores the set of commands. Unlike the string +/// data set in the d attribute, each command in this representation uses a fixed +/// number of elements in the segment data array. Therefore, the path 'M 0,0 100,0 +/// 0,100 Z' is represented as: 'M0,0 L100,0 L0,100 Z'. This is split into two +/// arrays, with the segment data containing '0,0 100,0 0,100', and the commands +/// containing 'M L L Z'. +/// +interface DX_DECLARE_INTERFACE("c095e4f4-bb98-43d6-9745-4d1b84ec9888") ID2D1SvgPathData : public ID2D1SvgAttribute +{ + + /// + /// Removes data from the end of the segment data array. + /// + /// Specifies how much data to remove. + STDMETHOD(RemoveSegmentDataAtEnd)( + UINT32 dataCount + ) PURE; + + /// + /// Updates the segment data array. Existing segment data not updated by this method + /// are preserved. The array is resized larger if necessary to accomodate the new + /// segment data. + /// + /// The data array. + /// The number of data to update. + /// The index at which to begin updating segment data. Must + /// be less than or equal to the size of the segment data array. + STDMETHOD(UpdateSegmentData)( + _In_reads_(dataCount) CONST FLOAT *data, + UINT32 dataCount, + UINT32 startIndex = 0 + ) PURE; + + /// + /// Gets data from the segment data array. + /// + /// Buffer to contain the segment data array. + /// The element count of the buffer. + /// The index of the first segment data to retrieve. + /// + STDMETHOD(GetSegmentData)( + _Out_writes_(dataCount) FLOAT *data, + UINT32 dataCount, + UINT32 startIndex = 0 + ) PURE; + + /// + /// Gets the size of the segment data array. + /// + STDMETHOD_(UINT32, GetSegmentDataCount)( + ) PURE; + + /// + /// Removes commands from the end of the commands array. + /// + /// Specifies how many commands to remove. + STDMETHOD(RemoveCommandsAtEnd)( + UINT32 commandsCount + ) PURE; + + /// + /// Updates the commands array. Existing commands not updated by this method are + /// preserved. The array is resized larger if necessary to accomodate the new + /// commands. + /// + /// The commands array. + /// The number of commands to update. + /// The index at which to begin updating commands. Must be + /// less than or equal to the size of the commands array. + STDMETHOD(UpdateCommands)( + _In_reads_(commandsCount) CONST D2D1_SVG_PATH_COMMAND *commands, + UINT32 commandsCount, + UINT32 startIndex = 0 + ) PURE; + + /// + /// Gets commands from the commands array. + /// + /// Buffer to contain the commands + /// The element count of the buffer. + /// The index of the first commands to retrieve. + STDMETHOD(GetCommands)( + _Out_writes_(commandsCount) D2D1_SVG_PATH_COMMAND *commands, + UINT32 commandsCount, + UINT32 startIndex = 0 + ) PURE; + + /// + /// Gets the size of the commands array. + /// + STDMETHOD_(UINT32, GetCommandsCount)( + ) PURE; + + /// + /// Creates a path geometry object representing the path data. + /// + STDMETHOD(CreatePathGeometry)( + D2D1_FILL_MODE fillMode, + _COM_Outptr_ ID2D1PathGeometry1 **pathGeometry + ) PURE; +}; // interface ID2D1SvgPathData + + +/// +/// Interface for all SVG elements. +/// +interface DX_DECLARE_INTERFACE("ac7b67a6-183e-49c1-a823-0ebe40b0db29") ID2D1SvgElement : public ID2D1Resource +{ + + /// + /// Gets the document that contains this element. Returns null if the element has + /// been removed from the tree. + /// + STDMETHOD_(void, GetDocument)( + _Outptr_result_maybenull_ ID2D1SvgDocument **document + ) PURE; + + /// + /// Gets the tag name. + /// + STDMETHOD(GetTagName)( + _Out_writes_(nameCount) PWSTR name, + UINT32 nameCount + ) PURE; + + /// + /// Gets the string length of the tag name. The returned string length does not + /// include room for the null terminator. + /// + STDMETHOD_(UINT32, GetTagNameLength)( + ) PURE; + + /// + /// Returns TRUE if this element represents text content, e.g. the content of a + /// 'title' or 'desc' element. Text content does not have a tag name. + /// + STDMETHOD_(BOOL, IsTextContent)( + ) PURE; + + /// + /// Gets the parent element. + /// + STDMETHOD_(void, GetParent)( + _Outptr_result_maybenull_ ID2D1SvgElement **parent + ) PURE; + + /// + /// Returns whether this element has children. + /// + STDMETHOD_(BOOL, HasChildren)( + ) PURE; + + /// + /// Gets the first child of this element. + /// + STDMETHOD_(void, GetFirstChild)( + _Outptr_result_maybenull_ ID2D1SvgElement **child + ) PURE; + + /// + /// Gets the last child of this element. + /// + STDMETHOD_(void, GetLastChild)( + _Outptr_result_maybenull_ ID2D1SvgElement **child + ) PURE; + + /// + /// Gets the previous sibling of the referenceChild element. + /// + /// The referenceChild must be an immediate child of + /// this element. + /// The output previousChild element will be non-null if + /// the referenceChild has a previous sibling. If the referenceChild is the first + /// child, the output is null. + STDMETHOD(GetPreviousChild)( + _In_ ID2D1SvgElement *referenceChild, + _COM_Outptr_result_maybenull_ ID2D1SvgElement **previousChild + ) PURE; + + /// + /// Gets the next sibling of the referenceChild element. + /// + /// The referenceChild must be an immediate child of + /// this element. + /// The output nextChild element will be non-null if the + /// referenceChild has a next sibling. If the referenceChild is the last child, the + /// output is null. + STDMETHOD(GetNextChild)( + _In_ ID2D1SvgElement *referenceChild, + _COM_Outptr_result_maybenull_ ID2D1SvgElement **nextChild + ) PURE; + + /// + /// Inserts newChild as a child of this element, before the referenceChild element. + /// If the newChild element already has a parent, it is removed from this parent as + /// part of the insertion. Returns an error if this element cannot accept children + /// of the type of newChild. Returns an error if the newChild is an ancestor of this + /// element. + /// + /// The element to be inserted. + /// The element that the child should be inserted + /// before. If referenceChild is null, the newChild is placed as the last child. If + /// referenceChild is non-null, it must be an immediate child of this element. + /// + STDMETHOD(InsertChildBefore)( + _In_ ID2D1SvgElement *newChild, + _In_opt_ ID2D1SvgElement *referenceChild = NULL + ) PURE; + + /// + /// Appends newChild to the list of children. If the newChild element already has a + /// parent, it is removed from this parent as part of the append operation. Returns + /// an error if this element cannot accept children of the type of newChild. Returns + /// an error if the newChild is an ancestor of this element. + /// + /// The element to be appended. + STDMETHOD(AppendChild)( + _In_ ID2D1SvgElement *newChild + ) PURE; + + /// + /// Replaces the oldChild element with the newChild. This operation removes the + /// oldChild from the tree. If the newChild element already has a parent, it is + /// removed from this parent as part of the replace operation. Returns an error if + /// this element cannot accept children of the type of newChild. Returns an error if + /// the newChild is an ancestor of this element. + /// + /// The element to be inserted. + /// The child element to be replaced. The oldChild element + /// must be an immediate child of this element. + STDMETHOD(ReplaceChild)( + _In_ ID2D1SvgElement *newChild, + _In_ ID2D1SvgElement *oldChild + ) PURE; + + /// + /// Removes the oldChild from the tree. Children of oldChild remain children of + /// oldChild. + /// + /// The child element to be removed. The oldChild element + /// must be an immediate child of this element. + STDMETHOD(RemoveChild)( + _In_ ID2D1SvgElement *oldChild + ) PURE; + + /// + /// Creates an element from a tag name. The element is appended to the list of + /// children. Returns an error if this element cannot accept children of the + /// specified type. + /// + /// The tag name of the new child. An empty string is + /// interpreted to be a text content element. + /// The new child element. + STDMETHOD(CreateChild)( + _In_ PCWSTR tagName, + _COM_Outptr_ ID2D1SvgElement **newChild + ) PURE; + + /// + /// Returns true if the attribute is explicitly set on the element or if it is + /// present within an inline style. Returns FALSE if the attribute is not a valid + /// attribute on this element. + /// + /// The name of the attribute. + /// Outputs whether the attribute is set to the 'inherit' + /// value. + STDMETHOD_(BOOL, IsAttributeSpecified)( + _In_ PCWSTR name, + _Out_opt_ BOOL *inherited = NULL + ) PURE; + + /// + /// Returns the number of specified attributes on this element. Attributes are only + /// considered specified if they are explicitly set on the element or present within + /// an inline style. Properties that receive their value through CSS inheritance are + /// not considered specified. An attribute can become specified if it is set through + /// a method call. It can become unspecified if it is removed via RemoveAttribute. + /// + STDMETHOD_(UINT32, GetSpecifiedAttributeCount)( + ) PURE; + + /// + /// Gets the name of the specified attribute at the given index. + /// + /// The specified index of the attribute. + /// Outputs the name of the attribute. + /// Outputs whether the attribute is set to the 'inherit' + /// value. + STDMETHOD(GetSpecifiedAttributeName)( + UINT32 index, + _Out_writes_(nameCount) PWSTR name, + UINT32 nameCount, + _Out_opt_ BOOL *inherited = NULL + ) PURE; + + /// + /// Gets the string length of the name of the specified attribute at the given + /// index. The output string length does not include room for the null terminator. + /// + /// The specified index of the attribute. + /// Outputs the string length of the name of the specified + /// attribute. + /// Outputs whether the attribute is set to the 'inherit' + /// value. + STDMETHOD(GetSpecifiedAttributeNameLength)( + UINT32 index, + _Out_ UINT32 *nameLength, + _Out_opt_ BOOL *inherited = NULL + ) PURE; + + /// + /// Removes the attribute from this element. Also removes this attribute from within + /// an inline style if present. Returns an error if the attribute name is not valid + /// on this element. + /// + STDMETHOD(RemoveAttribute)( + _In_ PCWSTR name + ) PURE; + + /// + /// Sets the value of a text content element. + /// + STDMETHOD(SetTextValue)( + _In_reads_(nameCount) CONST WCHAR *name, + UINT32 nameCount + ) PURE; + + /// + /// Gets the value of a text content element. + /// + STDMETHOD(GetTextValue)( + _Out_writes_(nameCount) PWSTR name, + UINT32 nameCount + ) PURE; + + /// + /// Gets the length of the text content value. The returned string length does not + /// include room for the null terminator. + /// + STDMETHOD_(UINT32, GetTextValueLength)( + ) PURE; + + /// + /// Sets an attribute of this element using a string. Returns an error if the + /// attribute name is not valid on this element. Returns an error if the attribute + /// cannot be expressed as the specified type. + /// + STDMETHOD(SetAttributeValue)( + _In_ PCWSTR name, + D2D1_SVG_ATTRIBUTE_STRING_TYPE type, + _In_ PCWSTR value + ) PURE; + + /// + /// Gets an attribute of this element as a string. Returns an error if the attribute + /// is not specified. Returns an error if the attribute name is not valid on this + /// element. Returns an error if the attribute cannot be expressed as the specified + /// string type. + /// + STDMETHOD(GetAttributeValue)( + _In_ PCWSTR name, + D2D1_SVG_ATTRIBUTE_STRING_TYPE type, + _Out_writes_(valueCount) PWSTR value, + UINT32 valueCount + ) PURE; + + /// + /// Gets the string length of an attribute of this element. The returned string + /// length does not include room for the null terminator. Returns an error if the + /// attribute is not specified. Returns an error if the attribute name is not valid + /// on this element. Returns an error if the attribute cannot be expressed as the + /// specified string type. + /// + STDMETHOD(GetAttributeValueLength)( + _In_ PCWSTR name, + D2D1_SVG_ATTRIBUTE_STRING_TYPE type, + _Out_ UINT32 *valueLength + ) PURE; + + /// + /// Sets an attribute of this element using a POD type. Returns an error if the + /// attribute name is not valid on this element. Returns an error if the attribute + /// cannot be expressed as the specified type. + /// + STDMETHOD(SetAttributeValue)( + _In_ PCWSTR name, + D2D1_SVG_ATTRIBUTE_POD_TYPE type, + _In_reads_bytes_(valueSizeInBytes) CONST void *value, + UINT32 valueSizeInBytes + ) PURE; + + /// + /// Gets an attribute of this element as a POD type. Returns an error if the + /// attribute is not specified. Returns an error if the attribute name is not valid + /// on this element. Returns an error if the attribute cannot be expressed as the + /// specified POD type. + /// + STDMETHOD(GetAttributeValue)( + _In_ PCWSTR name, + D2D1_SVG_ATTRIBUTE_POD_TYPE type, + _Out_writes_bytes_(valueSizeInBytes) void *value, + UINT32 valueSizeInBytes + ) PURE; + + /// + /// Sets an attribute of this element using an interface. Returns an error if the + /// attribute name is not valid on this element. Returns an error if the attribute + /// cannot be expressed as the specified interface type. Returns an error if the + /// attribute object is already set on an element. A given attribute object may only + /// be set on one element in one attribute location at a time. + /// + STDMETHOD(SetAttributeValue)( + _In_ PCWSTR name, + _In_ ID2D1SvgAttribute *value + ) PURE; + + /// + /// Gets an attribute of this element as an interface type. Returns an error if the + /// attribute is not specified. Returns an error if the attribute name is not valid + /// on this element. Returns an error if the attribute cannot be expressed as the + /// specified interface type. + /// + /// The interface ID of the attribute value. + STDMETHOD(GetAttributeValue)( + _In_ PCWSTR name, + _In_ REFIID riid, + _COM_Outptr_result_maybenull_ void **value + ) PURE; + + /// + /// Sets an attribute of this element using a float. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + FLOAT value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_FLOAT, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a float. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ FLOAT *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_FLOAT, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as a color. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + CONST D2D1_COLOR_F &value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_COLOR, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a color. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_COLOR_F *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_COLOR, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as a fill mode. This method can be used to set + /// the value of the 'fill-rule' or 'clip-rule' properties. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + D2D1_FILL_MODE value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_FILL_MODE, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a fill mode. This method can be used to get + /// the value of the 'fill-rule' or 'clip-rule' properties. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_FILL_MODE *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_FILL_MODE, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as a display value. This method can be used to + /// set the value of the 'display' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + D2D1_SVG_DISPLAY value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_DISPLAY, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a display value. This method can be used to + /// get the value of the 'display' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_SVG_DISPLAY *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_DISPLAY, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as an overflow value. This method can be used + /// to set the value of the 'overflow' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + D2D1_SVG_OVERFLOW value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_OVERFLOW, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as an overflow value. This method can be used + /// to get the value of the 'overflow' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_SVG_OVERFLOW *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_OVERFLOW, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as a line join value. This method can be used + /// to set the value of the 'stroke-linejoin' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + D2D1_SVG_LINE_JOIN value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_LINE_JOIN, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a line join value. This method can be used + /// to get the value of the 'stroke-linejoin' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_SVG_LINE_JOIN *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_LINE_JOIN, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as a line cap value. This method can be used + /// to set the value of the 'stroke-linecap' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + D2D1_SVG_LINE_CAP value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_LINE_CAP, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a line cap value. This method can be used + /// to get the value of the 'stroke-linecap' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_SVG_LINE_CAP *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_LINE_CAP, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as a visibility value. This method can be used + /// to set the value of the 'visibility' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + D2D1_SVG_VISIBILITY value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_VISIBILITY, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a visibility value. This method can be used + /// to get the value of the 'visibility' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_SVG_VISIBILITY *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_VISIBILITY, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as a matrix value. This method can be used to + /// set the value of a 'transform' or 'gradientTransform' attribute. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + CONST D2D1_MATRIX_3X2_F &value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_MATRIX, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a matrix value. This method can be used to + /// get the value of a 'transform' or 'gradientTransform' attribute. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_MATRIX_3X2_F *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_MATRIX, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as a unit type value. This method can be used + /// to set the value of a 'gradientUnits' or 'clipPathUnits' attribute. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + D2D1_SVG_UNIT_TYPE value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_UNIT_TYPE, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a unit type value. This method can be used + /// to get the value of a 'gradientUnits' or 'clipPathUnits' attribute. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_SVG_UNIT_TYPE *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_UNIT_TYPE, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as an extend mode value. This method can be + /// used to set the value of a 'spreadMethod' attribute. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + D2D1_EXTEND_MODE value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_EXTEND_MODE, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a extend mode value. This method can be + /// used to get the value of a 'spreadMethod' attribute. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_EXTEND_MODE *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_EXTEND_MODE, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as a preserve aspect ratio value. This method + /// can be used to set the value of a 'preserveAspectRatio' attribute. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + CONST D2D1_SVG_PRESERVE_ASPECT_RATIO &value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_PRESERVE_ASPECT_RATIO, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as a preserve aspect ratio value. This method + /// can be used to get the value of a 'preserveAspectRatio' attribute. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_SVG_PRESERVE_ASPECT_RATIO *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_PRESERVE_ASPECT_RATIO, value, sizeof(*value)); + } + + /// + /// Sets an attribute of this element as a length value. + /// + COM_DECLSPEC_NOTHROW + HRESULT + SetAttributeValue( + _In_ PCWSTR name, + CONST D2D1_SVG_LENGTH &value + ) + { + return SetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_LENGTH, &value, sizeof(value)); + } + + /// + /// Gets an attribute of this element as length value. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _Out_ D2D1_SVG_LENGTH *value + ) + { + return GetAttributeValue(name, D2D1_SVG_ATTRIBUTE_POD_TYPE_LENGTH, value, sizeof(*value)); + } + + /// + /// Gets an attribute of this element. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _COM_Outptr_result_maybenull_ ID2D1SvgAttribute **value + ) + { + return GetAttributeValue(name, IID_ID2D1SvgAttribute, reinterpret_cast(value)); + } + + /// + /// Gets an attribute of this element as a paint. This method can be used to get the + /// value of the 'fill' or 'stroke' properties. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _COM_Outptr_result_maybenull_ ID2D1SvgPaint **value + ) + { + return GetAttributeValue(name, IID_ID2D1SvgPaint, reinterpret_cast(value)); + } + + /// + /// Gets an attribute of this element as a stroke dash array. This method can be + /// used to get the value of the 'stroke-dasharray' property. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _COM_Outptr_result_maybenull_ ID2D1SvgStrokeDashArray **value + ) + { + return GetAttributeValue(name, IID_ID2D1SvgStrokeDashArray, reinterpret_cast(value)); + } + + /// + /// Gets an attribute of this element as points. This method can be used to get the + /// value of the 'points' attribute on a 'polygon' or 'polyline' element. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _COM_Outptr_result_maybenull_ ID2D1SvgPointCollection **value + ) + { + return GetAttributeValue(name, IID_ID2D1SvgPointCollection, reinterpret_cast(value)); + } + + /// + /// Gets an attribute of this element as path data. This method can be used to get + /// the value of the 'd' attribute on a 'path' element. + /// + COM_DECLSPEC_NOTHROW + HRESULT + GetAttributeValue( + _In_ PCWSTR name, + _COM_Outptr_result_maybenull_ ID2D1SvgPathData **value + ) + { + return GetAttributeValue(name, IID_ID2D1SvgPathData, reinterpret_cast(value)); + } +}; // interface ID2D1SvgElement + + +interface DX_DECLARE_INTERFACE("86b88e4d-afa4-4d7b-88e4-68a51c4a0aec") ID2D1SvgDocument : public ID2D1Resource +{ + + /// + /// Sets the size of the initial viewport. + /// + STDMETHOD(SetViewportSize)( + D2D1_SIZE_F viewportSize + ) PURE; + + /// + /// Returns the size of the initial viewport. + /// + STDMETHOD_(D2D1_SIZE_F, GetViewportSize)( + ) CONST PURE; + + /// + /// Sets the root element of the document. The root element must be an 'svg' + /// element. If the element already exists within an svg tree, it is first removed. + /// + STDMETHOD(SetRoot)( + _In_opt_ ID2D1SvgElement *root + ) PURE; + + /// + /// Gets the root element of the document. + /// + STDMETHOD_(void, GetRoot)( + _Outptr_result_maybenull_ ID2D1SvgElement **root + ) PURE; + + /// + /// Gets the SVG element with the specified ID. If the element cannot be found, the + /// returned element will be null. + /// + STDMETHOD(FindElementById)( + _In_ PCWSTR id, + _COM_Outptr_result_maybenull_ ID2D1SvgElement **svgElement + ) PURE; + + /// + /// Serializes an element and its subtree to XML. The output XML is encoded as + /// UTF-8. + /// + /// An output stream to contain the SVG XML subtree. + /// + /// The root of the subtree. If null, the entire document is + /// serialized. + STDMETHOD(Serialize)( + _In_ IStream *outputXmlStream, + _In_opt_ ID2D1SvgElement *subtree = NULL + ) PURE; + + /// + /// Deserializes a subtree from the stream. The stream must have only one root + /// element, but that root element need not be an 'svg' element. The output element + /// is not inserted into this document tree. + /// + /// An input stream containing the SVG XML subtree. + /// + /// The root of the subtree. + STDMETHOD(Deserialize)( + _In_ IStream *inputXmlStream, + _COM_Outptr_ ID2D1SvgElement **subtree + ) PURE; + + /// + /// Creates a paint object which can be used to set the 'fill' or 'stroke' + /// properties. + /// + /// The color used if the paintType is + /// D2D1_SVG_PAINT_TYPE_COLOR. + /// The element id which acts as the paint server. This id is used + /// if the paint type is D2D1_SVG_PAINT_TYPE_URI. + STDMETHOD(CreatePaint)( + D2D1_SVG_PAINT_TYPE paintType, + _In_opt_ CONST D2D1_COLOR_F *color, + _In_opt_ PCWSTR id, + _COM_Outptr_ ID2D1SvgPaint **paint + ) PURE; + + /// + /// Creates a dash array object which can be used to set the 'stroke-dasharray' + /// property. + /// + STDMETHOD(CreateStrokeDashArray)( + _In_reads_opt_(dashesCount) CONST D2D1_SVG_LENGTH *dashes, + UINT32 dashesCount, + _COM_Outptr_ ID2D1SvgStrokeDashArray **strokeDashArray + ) PURE; + + /// + /// Creates a points object which can be used to set a 'points' attribute on a + /// 'polygon' or 'polyline' element. + /// + STDMETHOD(CreatePointCollection)( + _In_reads_opt_(pointsCount) CONST D2D1_POINT_2F *points, + UINT32 pointsCount, + _COM_Outptr_ ID2D1SvgPointCollection **pointCollection + ) PURE; + + /// + /// Creates a path data object which can be used to set a 'd' attribute on a 'path' + /// element. + /// + STDMETHOD(CreatePathData)( + _In_reads_opt_(segmentDataCount) CONST FLOAT *segmentData, + UINT32 segmentDataCount, + _In_reads_opt_(commandsCount) CONST D2D1_SVG_PATH_COMMAND *commands, + UINT32 commandsCount, + _COM_Outptr_ ID2D1SvgPathData **pathData + ) PURE; + + /// + /// Creates a paint object which can be used to set the 'fill' or 'stroke' + /// properties. + /// + /// The color used if the paintType is + /// D2D1_SVG_PAINT_TYPE_COLOR. + /// The element id which acts as the paint server. This id is used + /// if the paint type is D2D1_SVG_PAINT_TYPE_URI. + COM_DECLSPEC_NOTHROW + HRESULT + CreatePaint( + D2D1_SVG_PAINT_TYPE paintType, + CONST D2D1_COLOR_F &color, + _In_opt_ PCWSTR id, + _COM_Outptr_ ID2D1SvgPaint **paint + ) + { + return CreatePaint(paintType, &color, id, paint); + } +}; // interface ID2D1SvgDocument + + +#endif + +#endif + + +#ifdef D2D_USE_C_DEFINITIONS + + +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#endif // #ifndef _D2D1_SVG_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2dbasetypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2dbasetypes.h new file mode 100644 index 0000000000000000000000000000000000000000..399ee462d562725585154f335d42a8e14e814ada --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d2dbasetypes.h @@ -0,0 +1,25 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// This file is automatically generated. Please do not edit it directly. +// +// File name: D2DBaseTypes.h +//--------------------------------------------------------------------------- +#ifdef _MSC_VER +#pragma once +#endif // #ifdef _MSC_VER + +#ifndef _D2DBASETYPES_INCLUDED +#define _D2DBASETYPES_INCLUDED + +#ifndef COM_NO_WINDOWS_H +#include +#endif // #ifndef COM_NO_WINDOWS_H +#ifndef __dxgitype_h__ +#include +#endif // #ifndef __dxgitype_h__ +#ifndef DCOMMON_H_INCLUDED +#include +#endif // #ifndef DCOMMON_H_INCLUDED +typedef D3DCOLORVALUE D2D_COLOR_F; +#endif // #ifndef _D2DBASETYPES_INCLUDED diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d.h new file mode 100644 index 0000000000000000000000000000000000000000..571d09e2bab2d7b5bf71276df7ef723b91993540 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d.h @@ -0,0 +1,1696 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: d3d.h + * Content: Direct3D include file + * + ****************************************************************************/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef _D3D_H_ +#define _D3D_H_ + +#ifndef DIRECT3D_VERSION +#define DIRECT3D_VERSION 0x0700 +#endif + +// include this file content only if compiling for <=DX7 interfaces +#if(DIRECT3D_VERSION < 0x0800) + + +#include + +#define COM_NO_WINDOWS_H +#include + +#define D3DAPI WINAPI + +/* + * Interface IID's + */ +#if defined( _WIN32 ) && !defined( _NO_COM) +DEFINE_GUID( IID_IDirect3D, 0x3BBA0080,0x2421,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 ); +#if(DIRECT3D_VERSION >= 0x0500) +DEFINE_GUID( IID_IDirect3D2, 0x6aae1ec1,0x662a,0x11d0,0x88,0x9d,0x00,0xaa,0x00,0xbb,0xb7,0x6a); +#endif /* DIRECT3D_VERSION >= 0x0500 */ +#if(DIRECT3D_VERSION >= 0x0600) +DEFINE_GUID( IID_IDirect3D3, 0xbb223240,0xe72b,0x11d0,0xa9,0xb4,0x00,0xaa,0x00,0xc0,0x99,0x3e); +#endif /* DIRECT3D_VERSION >= 0x0600 */ +#if(DIRECT3D_VERSION >= 0x0700) +DEFINE_GUID( IID_IDirect3D7, 0xf5049e77,0x4861,0x11d2,0xa4,0x7,0x0,0xa0,0xc9,0x6,0x29,0xa8); +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#if(DIRECT3D_VERSION >= 0x0500) +DEFINE_GUID( IID_IDirect3DRampDevice, 0xF2086B20,0x259F,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 ); +DEFINE_GUID( IID_IDirect3DRGBDevice, 0xA4665C60,0x2673,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 ); +DEFINE_GUID( IID_IDirect3DHALDevice, 0x84E63dE0,0x46AA,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E ); +DEFINE_GUID( IID_IDirect3DMMXDevice, 0x881949a1,0xd6f3,0x11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29 ); +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) +DEFINE_GUID( IID_IDirect3DRefDevice, 0x50936643, 0x13e9, 0x11d1, 0x89, 0xaa, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); +DEFINE_GUID( IID_IDirect3DNullDevice, 0x8767df22, 0xbacc, 0x11d1, 0x89, 0x69, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); +#endif /* DIRECT3D_VERSION >= 0x0600 */ +#if(DIRECT3D_VERSION >= 0x0700) +DEFINE_GUID( IID_IDirect3DTnLHalDevice, 0xf5049e78, 0x4861, 0x11d2, 0xa4, 0x7, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* + * Internal Guid to distinguish requested MMX from MMX being used as an RGB rasterizer + */ + +DEFINE_GUID( IID_IDirect3DDevice, 0x64108800,0x957d,0X11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29 ); +#if(DIRECT3D_VERSION >= 0x0500) +DEFINE_GUID( IID_IDirect3DDevice2, 0x93281501, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); +#endif /* DIRECT3D_VERSION >= 0x0500 */ +#if(DIRECT3D_VERSION >= 0x0600) +DEFINE_GUID( IID_IDirect3DDevice3, 0xb0ab3b60, 0x33d7, 0x11d1, 0xa9, 0x81, 0x0, 0xc0, 0x4f, 0xd7, 0xb1, 0x74); +#endif /* DIRECT3D_VERSION >= 0x0600 */ +#if(DIRECT3D_VERSION >= 0x0700) +DEFINE_GUID( IID_IDirect3DDevice7, 0xf5049e79, 0x4861, 0x11d2, 0xa4, 0x7, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +DEFINE_GUID( IID_IDirect3DTexture, 0x2CDCD9E0,0x25A0,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 ); +#if(DIRECT3D_VERSION >= 0x0500) +DEFINE_GUID( IID_IDirect3DTexture2, 0x93281502, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +DEFINE_GUID( IID_IDirect3DLight, 0x4417C142,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E ); + +DEFINE_GUID( IID_IDirect3DMaterial, 0x4417C144,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E ); +#if(DIRECT3D_VERSION >= 0x0500) +DEFINE_GUID( IID_IDirect3DMaterial2, 0x93281503, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); +#endif /* DIRECT3D_VERSION >= 0x0500 */ +#if(DIRECT3D_VERSION >= 0x0600) +DEFINE_GUID( IID_IDirect3DMaterial3, 0xca9c46f4, 0xd3c5, 0x11d1, 0xb7, 0x5a, 0x0, 0x60, 0x8, 0x52, 0xb3, 0x12); +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +DEFINE_GUID( IID_IDirect3DExecuteBuffer,0x4417C145,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E ); +DEFINE_GUID( IID_IDirect3DViewport, 0x4417C146,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E ); +#if(DIRECT3D_VERSION >= 0x0500) +DEFINE_GUID( IID_IDirect3DViewport2, 0x93281500, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); +#endif /* DIRECT3D_VERSION >= 0x0500 */ +#if(DIRECT3D_VERSION >= 0x0600) +DEFINE_GUID( IID_IDirect3DViewport3, 0xb0ab3b61, 0x33d7, 0x11d1, 0xa9, 0x81, 0x0, 0xc0, 0x4f, 0xd7, 0xb1, 0x74); +#endif /* DIRECT3D_VERSION >= 0x0600 */ +#if(DIRECT3D_VERSION >= 0x0600) +DEFINE_GUID( IID_IDirect3DVertexBuffer, 0x7a503555, 0x4a83, 0x11d1, 0xa5, 0xdb, 0x0, 0xa0, 0xc9, 0x3, 0x67, 0xf8); +#endif /* DIRECT3D_VERSION >= 0x0600 */ +#if(DIRECT3D_VERSION >= 0x0700) +DEFINE_GUID( IID_IDirect3DVertexBuffer7, 0xf5049e7d, 0x4861, 0x11d2, 0xa4, 0x7, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); +#endif /* DIRECT3D_VERSION >= 0x0700 */ +#endif + +#ifdef __cplusplus +struct IDirect3D; +struct IDirect3DDevice; +struct IDirect3DLight; +struct IDirect3DMaterial; +struct IDirect3DExecuteBuffer; +struct IDirect3DTexture; +struct IDirect3DViewport; +typedef struct IDirect3D *LPDIRECT3D; +typedef struct IDirect3DDevice *LPDIRECT3DDEVICE; +typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER; +typedef struct IDirect3DLight *LPDIRECT3DLIGHT; +typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL; +typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE; +typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT; + +#if(DIRECT3D_VERSION >= 0x0500) +struct IDirect3D2; +struct IDirect3DDevice2; +struct IDirect3DMaterial2; +struct IDirect3DTexture2; +struct IDirect3DViewport2; +typedef struct IDirect3D2 *LPDIRECT3D2; +typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2; +typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2; +typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2; +typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2; +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) +struct IDirect3D3; +struct IDirect3DDevice3; +struct IDirect3DMaterial3; +struct IDirect3DViewport3; +struct IDirect3DVertexBuffer; +typedef struct IDirect3D3 *LPDIRECT3D3; +typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3; +typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3; +typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3; +typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER; +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#if(DIRECT3D_VERSION >= 0x0700) +struct IDirect3D7; +struct IDirect3DDevice7; +struct IDirect3DVertexBuffer7; +typedef struct IDirect3D7 *LPDIRECT3D7; +typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7; +typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7; +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#else + +typedef struct IDirect3D *LPDIRECT3D; +typedef struct IDirect3DDevice *LPDIRECT3DDEVICE; +typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER; +typedef struct IDirect3DLight *LPDIRECT3DLIGHT; +typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL; +typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE; +typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT; + +#if(DIRECT3D_VERSION >= 0x0500) +typedef struct IDirect3D2 *LPDIRECT3D2; +typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2; +typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2; +typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2; +typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2; +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) +typedef struct IDirect3D3 *LPDIRECT3D3; +typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3; +typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3; +typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3; +typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER; +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#if(DIRECT3D_VERSION >= 0x0700) +typedef struct IDirect3D7 *LPDIRECT3D7; +typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7; +typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7; +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#endif + +#include "d3dtypes.h" +#include "d3dcaps.h" + + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Direct3D interfaces + */ +#undef INTERFACE +#define INTERFACE IDirect3D + +DECLARE_INTERFACE_(IDirect3D, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3D methods ***/ + STDMETHOD(Initialize)(THIS_ REFCLSID) PURE; + STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK,LPVOID) PURE; + STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT*,IUnknown*) PURE; + STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL*,IUnknown*) PURE; + STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT*,IUnknown*) PURE; + STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH,LPD3DFINDDEVICERESULT) PURE; +}; + +typedef struct IDirect3D *LPDIRECT3D; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3D_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3D_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3D_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3D_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) +#define IDirect3D_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b) +#define IDirect3D_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b) +#define IDirect3D_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b) +#define IDirect3D_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b) +#define IDirect3D_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b) +#else +#define IDirect3D_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3D_AddRef(p) (p)->AddRef() +#define IDirect3D_Release(p) (p)->Release() +#define IDirect3D_Initialize(p,a) (p)->Initialize(a) +#define IDirect3D_EnumDevices(p,a,b) (p)->EnumDevices(a,b) +#define IDirect3D_CreateLight(p,a,b) (p)->CreateLight(a,b) +#define IDirect3D_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b) +#define IDirect3D_CreateViewport(p,a,b) (p)->CreateViewport(a,b) +#define IDirect3D_FindDevice(p,a,b) (p)->FindDevice(a,b) +#endif + +#if(DIRECT3D_VERSION >= 0x0500) +#undef INTERFACE +#define INTERFACE IDirect3D2 + +DECLARE_INTERFACE_(IDirect3D2, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3D2 methods ***/ + STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK,LPVOID) PURE; + STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT*,IUnknown*) PURE; + STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL2*,IUnknown*) PURE; + STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT2*,IUnknown*) PURE; + STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH,LPD3DFINDDEVICERESULT) PURE; + STDMETHOD(CreateDevice)(THIS_ REFCLSID,LPDIRECTDRAWSURFACE,LPDIRECT3DDEVICE2*) PURE; +}; + +typedef struct IDirect3D2 *LPDIRECT3D2; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3D2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3D2_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3D2_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3D2_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b) +#define IDirect3D2_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b) +#define IDirect3D2_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b) +#define IDirect3D2_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b) +#define IDirect3D2_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b) +#define IDirect3D2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) +#else +#define IDirect3D2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3D2_AddRef(p) (p)->AddRef() +#define IDirect3D2_Release(p) (p)->Release() +#define IDirect3D2_EnumDevices(p,a,b) (p)->EnumDevices(a,b) +#define IDirect3D2_CreateLight(p,a,b) (p)->CreateLight(a,b) +#define IDirect3D2_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b) +#define IDirect3D2_CreateViewport(p,a,b) (p)->CreateViewport(a,b) +#define IDirect3D2_FindDevice(p,a,b) (p)->FindDevice(a,b) +#define IDirect3D2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) +#endif +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) +#undef INTERFACE +#define INTERFACE IDirect3D3 + +DECLARE_INTERFACE_(IDirect3D3, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3D3 methods ***/ + STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK,LPVOID) PURE; + STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT*,LPUNKNOWN) PURE; + STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL3*,LPUNKNOWN) PURE; + STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT3*,LPUNKNOWN) PURE; + STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH,LPD3DFINDDEVICERESULT) PURE; + STDMETHOD(CreateDevice)(THIS_ REFCLSID,LPDIRECTDRAWSURFACE4,LPDIRECT3DDEVICE3*,LPUNKNOWN) PURE; + STDMETHOD(CreateVertexBuffer)(THIS_ LPD3DVERTEXBUFFERDESC,LPDIRECT3DVERTEXBUFFER*,DWORD,LPUNKNOWN) PURE; + STDMETHOD(EnumZBufferFormats)(THIS_ REFCLSID,LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE; + STDMETHOD(EvictManagedTextures)(THIS) PURE; +}; + +typedef struct IDirect3D3 *LPDIRECT3D3; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3D3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3D3_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3D3_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3D3_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b) +#define IDirect3D3_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b) +#define IDirect3D3_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b) +#define IDirect3D3_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b) +#define IDirect3D3_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b) +#define IDirect3D3_CreateDevice(p,a,b,c,d) (p)->lpVtbl->CreateDevice(p,a,b,c,d) +#define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d) +#define IDirect3D3_EnumZBufferFormats(p,a,b,c) (p)->lpVtbl->EnumZBufferFormats(p,a,b,c) +#define IDirect3D3_EvictManagedTextures(p) (p)->lpVtbl->EvictManagedTextures(p) +#else +#define IDirect3D3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3D3_AddRef(p) (p)->AddRef() +#define IDirect3D3_Release(p) (p)->Release() +#define IDirect3D3_EnumDevices(p,a,b) (p)->EnumDevices(a,b) +#define IDirect3D3_CreateLight(p,a,b) (p)->CreateLight(a,b) +#define IDirect3D3_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b) +#define IDirect3D3_CreateViewport(p,a,b) (p)->CreateViewport(a,b) +#define IDirect3D3_FindDevice(p,a,b) (p)->FindDevice(a,b) +#define IDirect3D3_CreateDevice(p,a,b,c,d) (p)->CreateDevice(a,b,c,d) +#define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->CreateVertexBuffer(a,b,c,d) +#define IDirect3D3_EnumZBufferFormats(p,a,b,c) (p)->EnumZBufferFormats(a,b,c) +#define IDirect3D3_EvictManagedTextures(p) (p)->EvictManagedTextures() +#endif +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#if(DIRECT3D_VERSION >= 0x0700) +#undef INTERFACE +#define INTERFACE IDirect3D7 + +DECLARE_INTERFACE_(IDirect3D7, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3D7 methods ***/ + STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK7,LPVOID) PURE; + STDMETHOD(CreateDevice)(THIS_ REFCLSID,LPDIRECTDRAWSURFACE7,LPDIRECT3DDEVICE7*) PURE; + STDMETHOD(CreateVertexBuffer)(THIS_ LPD3DVERTEXBUFFERDESC,LPDIRECT3DVERTEXBUFFER7*,DWORD) PURE; + STDMETHOD(EnumZBufferFormats)(THIS_ REFCLSID,LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE; + STDMETHOD(EvictManagedTextures)(THIS) PURE; +}; + +typedef struct IDirect3D7 *LPDIRECT3D7; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3D7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3D7_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3D7_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3D7_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b) +#define IDirect3D7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) +#define IDirect3D7_CreateVertexBuffer(p,a,b,c) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c) +#define IDirect3D7_EnumZBufferFormats(p,a,b,c) (p)->lpVtbl->EnumZBufferFormats(p,a,b,c) +#define IDirect3D7_EvictManagedTextures(p) (p)->lpVtbl->EvictManagedTextures(p) +#else +#define IDirect3D7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3D7_AddRef(p) (p)->AddRef() +#define IDirect3D7_Release(p) (p)->Release() +#define IDirect3D7_EnumDevices(p,a,b) (p)->EnumDevices(a,b) +#define IDirect3D7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) +#define IDirect3D7_CreateVertexBuffer(p,a,b,c) (p)->CreateVertexBuffer(a,b,c) +#define IDirect3D7_EnumZBufferFormats(p,a,b,c) (p)->EnumZBufferFormats(a,b,c) +#define IDirect3D7_EvictManagedTextures(p) (p)->EvictManagedTextures() +#endif +#endif /* DIRECT3D_VERSION >= 0x0700 */ +/* + * Direct3D Device interfaces + */ +#undef INTERFACE +#define INTERFACE IDirect3DDevice + +DECLARE_INTERFACE_(IDirect3DDevice, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DDevice methods ***/ + STDMETHOD(Initialize)(THIS_ LPDIRECT3D,LPGUID,LPD3DDEVICEDESC) PURE; + STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC,LPD3DDEVICEDESC) PURE; + STDMETHOD(SwapTextureHandles)(THIS_ LPDIRECT3DTEXTURE,LPDIRECT3DTEXTURE) PURE; + STDMETHOD(CreateExecuteBuffer)(THIS_ LPD3DEXECUTEBUFFERDESC,LPDIRECT3DEXECUTEBUFFER*,IUnknown*) PURE; + STDMETHOD(GetStats)(THIS_ LPD3DSTATS) PURE; + STDMETHOD(Execute)(THIS_ LPDIRECT3DEXECUTEBUFFER,LPDIRECT3DVIEWPORT,DWORD) PURE; + STDMETHOD(AddViewport)(THIS_ LPDIRECT3DVIEWPORT) PURE; + STDMETHOD(DeleteViewport)(THIS_ LPDIRECT3DVIEWPORT) PURE; + STDMETHOD(NextViewport)(THIS_ LPDIRECT3DVIEWPORT,LPDIRECT3DVIEWPORT*,DWORD) PURE; + STDMETHOD(Pick)(THIS_ LPDIRECT3DEXECUTEBUFFER,LPDIRECT3DVIEWPORT,DWORD,LPD3DRECT) PURE; + STDMETHOD(GetPickRecords)(THIS_ LPDWORD,LPD3DPICKRECORD) PURE; + STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK,LPVOID) PURE; + STDMETHOD(CreateMatrix)(THIS_ LPD3DMATRIXHANDLE) PURE; + STDMETHOD(SetMatrix)(THIS_ D3DMATRIXHANDLE,const LPD3DMATRIX) PURE; + STDMETHOD(GetMatrix)(THIS_ D3DMATRIXHANDLE,LPD3DMATRIX) PURE; + STDMETHOD(DeleteMatrix)(THIS_ D3DMATRIXHANDLE) PURE; + STDMETHOD(BeginScene)(THIS) PURE; + STDMETHOD(EndScene)(THIS) PURE; + STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D*) PURE; +}; + +typedef struct IDirect3DDevice *LPDIRECT3DDEVICE; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DDevice_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DDevice_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) +#define IDirect3DDevice_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) +#define IDirect3DDevice_SwapTextureHandles(p,a,b) (p)->lpVtbl->SwapTextureHandles(p,a,b) +#define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) (p)->lpVtbl->CreateExecuteBuffer(p,a,b,c) +#define IDirect3DDevice_GetStats(p,a) (p)->lpVtbl->GetStats(p,a) +#define IDirect3DDevice_Execute(p,a,b,c) (p)->lpVtbl->Execute(p,a,b,c) +#define IDirect3DDevice_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a) +#define IDirect3DDevice_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a) +#define IDirect3DDevice_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c) +#define IDirect3DDevice_Pick(p,a,b,c,d) (p)->lpVtbl->Pick(p,a,b,c,d) +#define IDirect3DDevice_GetPickRecords(p,a,b) (p)->lpVtbl->GetPickRecords(p,a,b) +#define IDirect3DDevice_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b) +#define IDirect3DDevice_CreateMatrix(p,a) (p)->lpVtbl->CreateMatrix(p,a) +#define IDirect3DDevice_SetMatrix(p,a,b) (p)->lpVtbl->SetMatrix(p,a,b) +#define IDirect3DDevice_GetMatrix(p,a,b) (p)->lpVtbl->GetMatrix(p,a,b) +#define IDirect3DDevice_DeleteMatrix(p,a) (p)->lpVtbl->DeleteMatrix(p,a) +#define IDirect3DDevice_BeginScene(p) (p)->lpVtbl->BeginScene(p) +#define IDirect3DDevice_EndScene(p) (p)->lpVtbl->EndScene(p) +#define IDirect3DDevice_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) +#else +#define IDirect3DDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DDevice_AddRef(p) (p)->AddRef() +#define IDirect3DDevice_Release(p) (p)->Release() +#define IDirect3DDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c) +#define IDirect3DDevice_GetCaps(p,a,b) (p)->GetCaps(a,b) +#define IDirect3DDevice_SwapTextureHandles(p,a,b) (p)->SwapTextureHandles(a,b) +#define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) (p)->CreateExecuteBuffer(a,b,c) +#define IDirect3DDevice_GetStats(p,a) (p)->GetStats(a) +#define IDirect3DDevice_Execute(p,a,b,c) (p)->Execute(a,b,c) +#define IDirect3DDevice_AddViewport(p,a) (p)->AddViewport(a) +#define IDirect3DDevice_DeleteViewport(p,a) (p)->DeleteViewport(a) +#define IDirect3DDevice_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c) +#define IDirect3DDevice_Pick(p,a,b,c,d) (p)->Pick(a,b,c,d) +#define IDirect3DDevice_GetPickRecords(p,a,b) (p)->GetPickRecords(a,b) +#define IDirect3DDevice_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b) +#define IDirect3DDevice_CreateMatrix(p,a) (p)->CreateMatrix(a) +#define IDirect3DDevice_SetMatrix(p,a,b) (p)->SetMatrix(a,b) +#define IDirect3DDevice_GetMatrix(p,a,b) (p)->GetMatrix(a,b) +#define IDirect3DDevice_DeleteMatrix(p,a) (p)->DeleteMatrix(a) +#define IDirect3DDevice_BeginScene(p) (p)->BeginScene() +#define IDirect3DDevice_EndScene(p) (p)->EndScene() +#define IDirect3DDevice_GetDirect3D(p,a) (p)->GetDirect3D(a) +#endif + +#if(DIRECT3D_VERSION >= 0x0500) +#undef INTERFACE +#define INTERFACE IDirect3DDevice2 + +DECLARE_INTERFACE_(IDirect3DDevice2, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DDevice2 methods ***/ + STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC,LPD3DDEVICEDESC) PURE; + STDMETHOD(SwapTextureHandles)(THIS_ LPDIRECT3DTEXTURE2,LPDIRECT3DTEXTURE2) PURE; + STDMETHOD(GetStats)(THIS_ LPD3DSTATS) PURE; + STDMETHOD(AddViewport)(THIS_ LPDIRECT3DVIEWPORT2) PURE; + STDMETHOD(DeleteViewport)(THIS_ LPDIRECT3DVIEWPORT2) PURE; + STDMETHOD(NextViewport)(THIS_ LPDIRECT3DVIEWPORT2,LPDIRECT3DVIEWPORT2*,DWORD) PURE; + STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK,LPVOID) PURE; + STDMETHOD(BeginScene)(THIS) PURE; + STDMETHOD(EndScene)(THIS) PURE; + STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D2*) PURE; + STDMETHOD(SetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT2) PURE; + STDMETHOD(GetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT2 *) PURE; + STDMETHOD(SetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE,DWORD) PURE; + STDMETHOD(GetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE *) PURE; + STDMETHOD(Begin)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,DWORD) PURE; + STDMETHOD(BeginIndexed)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,LPVOID,DWORD,DWORD) PURE; + STDMETHOD(Vertex)(THIS_ LPVOID) PURE; + STDMETHOD(Index)(THIS_ WORD) PURE; + STDMETHOD(End)(THIS_ DWORD) PURE; + STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE,LPDWORD) PURE; + STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE,DWORD) PURE; + STDMETHOD(GetLightState)(THIS_ D3DLIGHTSTATETYPE,LPDWORD) PURE; + STDMETHOD(SetLightState)(THIS_ D3DLIGHTSTATETYPE,DWORD) PURE; + STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; + STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; + STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; + STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,LPVOID,DWORD,DWORD) PURE; + STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,LPVOID,DWORD,LPWORD,DWORD,DWORD) PURE; + STDMETHOD(SetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; + STDMETHOD(GetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; +}; + +typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DDevice2_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DDevice2_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DDevice2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) +#define IDirect3DDevice2_SwapTextureHandles(p,a,b) (p)->lpVtbl->SwapTextureHandles(p,a,b) +#define IDirect3DDevice2_GetStats(p,a) (p)->lpVtbl->GetStats(p,a) +#define IDirect3DDevice2_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a) +#define IDirect3DDevice2_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a) +#define IDirect3DDevice2_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c) +#define IDirect3DDevice2_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b) +#define IDirect3DDevice2_BeginScene(p) (p)->lpVtbl->BeginScene(p) +#define IDirect3DDevice2_EndScene(p) (p)->lpVtbl->EndScene(p) +#define IDirect3DDevice2_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) +#define IDirect3DDevice2_SetCurrentViewport(p,a) (p)->lpVtbl->SetCurrentViewport(p,a) +#define IDirect3DDevice2_GetCurrentViewport(p,a) (p)->lpVtbl->GetCurrentViewport(p,a) +#define IDirect3DDevice2_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) +#define IDirect3DDevice2_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a) +#define IDirect3DDevice2_Begin(p,a,b,c) (p)->lpVtbl->Begin(p,a,b,c) +#define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) (p)->lpVtbl->BeginIndexed(p,a,b,c,d,e) +#define IDirect3DDevice2_Vertex(p,a) (p)->lpVtbl->Vertex(p,a) +#define IDirect3DDevice2_Index(p,a) (p)->lpVtbl->Index(p,a) +#define IDirect3DDevice2_End(p,a) (p)->lpVtbl->End(p,a) +#define IDirect3DDevice2_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) +#define IDirect3DDevice2_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) +#define IDirect3DDevice2_GetLightState(p,a,b) (p)->lpVtbl->GetLightState(p,a,b) +#define IDirect3DDevice2_SetLightState(p,a,b) (p)->lpVtbl->SetLightState(p,a,b) +#define IDirect3DDevice2_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) +#define IDirect3DDevice2_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) +#define IDirect3DDevice2_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) +#define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e) +#define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g) +#define IDirect3DDevice2_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) +#define IDirect3DDevice2_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) +#else +#define IDirect3DDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DDevice2_AddRef(p) (p)->AddRef() +#define IDirect3DDevice2_Release(p) (p)->Release() +#define IDirect3DDevice2_GetCaps(p,a,b) (p)->GetCaps(a,b) +#define IDirect3DDevice2_SwapTextureHandles(p,a,b) (p)->SwapTextureHandles(a,b) +#define IDirect3DDevice2_GetStats(p,a) (p)->GetStats(a) +#define IDirect3DDevice2_AddViewport(p,a) (p)->AddViewport(a) +#define IDirect3DDevice2_DeleteViewport(p,a) (p)->DeleteViewport(a) +#define IDirect3DDevice2_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c) +#define IDirect3DDevice2_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b) +#define IDirect3DDevice2_BeginScene(p) (p)->BeginScene() +#define IDirect3DDevice2_EndScene(p) (p)->EndScene() +#define IDirect3DDevice2_GetDirect3D(p,a) (p)->GetDirect3D(a) +#define IDirect3DDevice2_SetCurrentViewport(p,a) (p)->SetCurrentViewport(a) +#define IDirect3DDevice2_GetCurrentViewport(p,a) (p)->GetCurrentViewport(a) +#define IDirect3DDevice2_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) +#define IDirect3DDevice2_GetRenderTarget(p,a) (p)->GetRenderTarget(a) +#define IDirect3DDevice2_Begin(p,a,b,c) (p)->Begin(a,b,c) +#define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) (p)->BeginIndexed(a,b,c,d,e) +#define IDirect3DDevice2_Vertex(p,a) (p)->Vertex(a) +#define IDirect3DDevice2_Index(p,a) (p)->Index(a) +#define IDirect3DDevice2_End(p,a) (p)->End(a) +#define IDirect3DDevice2_GetRenderState(p,a,b) (p)->GetRenderState(a,b) +#define IDirect3DDevice2_SetRenderState(p,a,b) (p)->SetRenderState(a,b) +#define IDirect3DDevice2_GetLightState(p,a,b) (p)->GetLightState(a,b) +#define IDirect3DDevice2_SetLightState(p,a,b) (p)->SetLightState(a,b) +#define IDirect3DDevice2_SetTransform(p,a,b) (p)->SetTransform(a,b) +#define IDirect3DDevice2_GetTransform(p,a,b) (p)->GetTransform(a,b) +#define IDirect3DDevice2_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) +#define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e) +#define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g) +#define IDirect3DDevice2_SetClipStatus(p,a) (p)->SetClipStatus(a) +#define IDirect3DDevice2_GetClipStatus(p,a) (p)->GetClipStatus(a) +#endif +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) +#undef INTERFACE +#define INTERFACE IDirect3DDevice3 + +DECLARE_INTERFACE_(IDirect3DDevice3, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DDevice3 methods ***/ + STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC,LPD3DDEVICEDESC) PURE; + STDMETHOD(GetStats)(THIS_ LPD3DSTATS) PURE; + STDMETHOD(AddViewport)(THIS_ LPDIRECT3DVIEWPORT3) PURE; + STDMETHOD(DeleteViewport)(THIS_ LPDIRECT3DVIEWPORT3) PURE; + STDMETHOD(NextViewport)(THIS_ LPDIRECT3DVIEWPORT3,LPDIRECT3DVIEWPORT3*,DWORD) PURE; + STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE; + STDMETHOD(BeginScene)(THIS) PURE; + STDMETHOD(EndScene)(THIS) PURE; + STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D3*) PURE; + STDMETHOD(SetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT3) PURE; + STDMETHOD(GetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT3 *) PURE; + STDMETHOD(SetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE4,DWORD) PURE; + STDMETHOD(GetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE4 *) PURE; + STDMETHOD(Begin)(THIS_ D3DPRIMITIVETYPE,DWORD,DWORD) PURE; + STDMETHOD(BeginIndexed)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,DWORD) PURE; + STDMETHOD(Vertex)(THIS_ LPVOID) PURE; + STDMETHOD(Index)(THIS_ WORD) PURE; + STDMETHOD(End)(THIS_ DWORD) PURE; + STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE,LPDWORD) PURE; + STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE,DWORD) PURE; + STDMETHOD(GetLightState)(THIS_ D3DLIGHTSTATETYPE,LPDWORD) PURE; + STDMETHOD(SetLightState)(THIS_ D3DLIGHTSTATETYPE,DWORD) PURE; + STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; + STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; + STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; + STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,DWORD) PURE; + STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,LPWORD,DWORD,DWORD) PURE; + STDMETHOD(SetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; + STDMETHOD(GetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; + STDMETHOD(DrawPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,DWORD) PURE; + STDMETHOD(DrawIndexedPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,LPWORD,DWORD,DWORD) PURE; + STDMETHOD(DrawPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER,DWORD,DWORD,DWORD) PURE; + STDMETHOD(DrawIndexedPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER,LPWORD,DWORD,DWORD) PURE; + STDMETHOD(ComputeSphereVisibility)(THIS_ LPD3DVECTOR,LPD3DVALUE,DWORD,DWORD,LPDWORD) PURE; + STDMETHOD(GetTexture)(THIS_ DWORD,LPDIRECT3DTEXTURE2 *) PURE; + STDMETHOD(SetTexture)(THIS_ DWORD,LPDIRECT3DTEXTURE2) PURE; + STDMETHOD(GetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,LPDWORD) PURE; + STDMETHOD(SetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,DWORD) PURE; + STDMETHOD(ValidateDevice)(THIS_ LPDWORD) PURE; +}; + +typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DDevice3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DDevice3_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DDevice3_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DDevice3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) +#define IDirect3DDevice3_GetStats(p,a) (p)->lpVtbl->GetStats(p,a) +#define IDirect3DDevice3_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a) +#define IDirect3DDevice3_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a) +#define IDirect3DDevice3_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c) +#define IDirect3DDevice3_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b) +#define IDirect3DDevice3_BeginScene(p) (p)->lpVtbl->BeginScene(p) +#define IDirect3DDevice3_EndScene(p) (p)->lpVtbl->EndScene(p) +#define IDirect3DDevice3_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) +#define IDirect3DDevice3_SetCurrentViewport(p,a) (p)->lpVtbl->SetCurrentViewport(p,a) +#define IDirect3DDevice3_GetCurrentViewport(p,a) (p)->lpVtbl->GetCurrentViewport(p,a) +#define IDirect3DDevice3_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) +#define IDirect3DDevice3_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a) +#define IDirect3DDevice3_Begin(p,a,b,c) (p)->lpVtbl->Begin(p,a,b,c) +#define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) (p)->lpVtbl->BeginIndexed(p,a,b,c,d,e) +#define IDirect3DDevice3_Vertex(p,a) (p)->lpVtbl->Vertex(p,a) +#define IDirect3DDevice3_Index(p,a) (p)->lpVtbl->Index(p,a) +#define IDirect3DDevice3_End(p,a) (p)->lpVtbl->End(p,a) +#define IDirect3DDevice3_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) +#define IDirect3DDevice3_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) +#define IDirect3DDevice3_GetLightState(p,a,b) (p)->lpVtbl->GetLightState(p,a,b) +#define IDirect3DDevice3_SetLightState(p,a,b) (p)->lpVtbl->SetLightState(p,a,b) +#define IDirect3DDevice3_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) +#define IDirect3DDevice3_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) +#define IDirect3DDevice3_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) +#define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e) +#define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g) +#define IDirect3DDevice3_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) +#define IDirect3DDevice3_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) +#define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c,d,e) +#define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) +#define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveVB(p,a,b,c,d,e) +#define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitiveVB(p,a,b,c,d,e) +#define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) (p)->lpVtbl->ComputeSphereVisibility(p,a,b,c,d,e) +#define IDirect3DDevice3_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b) +#define IDirect3DDevice3_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b) +#define IDirect3DDevice3_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c) +#define IDirect3DDevice3_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c) +#define IDirect3DDevice3_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a) +#else +#define IDirect3DDevice3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DDevice3_AddRef(p) (p)->AddRef() +#define IDirect3DDevice3_Release(p) (p)->Release() +#define IDirect3DDevice3_GetCaps(p,a,b) (p)->GetCaps(a,b) +#define IDirect3DDevice3_GetStats(p,a) (p)->GetStats(a) +#define IDirect3DDevice3_AddViewport(p,a) (p)->AddViewport(a) +#define IDirect3DDevice3_DeleteViewport(p,a) (p)->DeleteViewport(a) +#define IDirect3DDevice3_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c) +#define IDirect3DDevice3_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b) +#define IDirect3DDevice3_BeginScene(p) (p)->BeginScene() +#define IDirect3DDevice3_EndScene(p) (p)->EndScene() +#define IDirect3DDevice3_GetDirect3D(p,a) (p)->GetDirect3D(a) +#define IDirect3DDevice3_SetCurrentViewport(p,a) (p)->SetCurrentViewport(a) +#define IDirect3DDevice3_GetCurrentViewport(p,a) (p)->GetCurrentViewport(a) +#define IDirect3DDevice3_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) +#define IDirect3DDevice3_GetRenderTarget(p,a) (p)->GetRenderTarget(a) +#define IDirect3DDevice3_Begin(p,a,b,c) (p)->Begin(a,b,c) +#define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) (p)->BeginIndexed(a,b,c,d,e) +#define IDirect3DDevice3_Vertex(p,a) (p)->Vertex(a) +#define IDirect3DDevice3_Index(p,a) (p)->Index(a) +#define IDirect3DDevice3_End(p,a) (p)->End(a) +#define IDirect3DDevice3_GetRenderState(p,a,b) (p)->GetRenderState(a,b) +#define IDirect3DDevice3_SetRenderState(p,a,b) (p)->SetRenderState(a,b) +#define IDirect3DDevice3_GetLightState(p,a,b) (p)->GetLightState(a,b) +#define IDirect3DDevice3_SetLightState(p,a,b) (p)->SetLightState(a,b) +#define IDirect3DDevice3_SetTransform(p,a,b) (p)->SetTransform(a,b) +#define IDirect3DDevice3_GetTransform(p,a,b) (p)->GetTransform(a,b) +#define IDirect3DDevice3_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) +#define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e) +#define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g) +#define IDirect3DDevice3_SetClipStatus(p,a) (p)->SetClipStatus(a) +#define IDirect3DDevice3_GetClipStatus(p,a) (p)->GetClipStatus(a) +#define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->DrawPrimitiveStrided(a,b,c,d,e) +#define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveStrided(a,b,c,d,e,f,g) +#define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) (p)->DrawPrimitiveVB(a,b,c,d,e) +#define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) (p)->DrawIndexedPrimitiveVB(a,b,c,d,e) +#define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) (p)->ComputeSphereVisibility(a,b,c,d,e) +#define IDirect3DDevice3_GetTexture(p,a,b) (p)->GetTexture(a,b) +#define IDirect3DDevice3_SetTexture(p,a,b) (p)->SetTexture(a,b) +#define IDirect3DDevice3_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c) +#define IDirect3DDevice3_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c) +#define IDirect3DDevice3_ValidateDevice(p,a) (p)->ValidateDevice(a) +#endif +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#if(DIRECT3D_VERSION >= 0x0700) +#undef INTERFACE +#define INTERFACE IDirect3DDevice7 + +DECLARE_INTERFACE_(IDirect3DDevice7, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DDevice7 methods ***/ + STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC7) PURE; + STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE; + STDMETHOD(BeginScene)(THIS) PURE; + STDMETHOD(EndScene)(THIS) PURE; + STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D7*) PURE; + STDMETHOD(SetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE7,DWORD) PURE; + STDMETHOD(GetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE7 *) PURE; + STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD,D3DCOLOR,D3DVALUE,DWORD) PURE; + STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; + STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; + STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT7) PURE; + STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; + STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT7) PURE; + STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL7) PURE; + STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL7) PURE; + STDMETHOD(SetLight)(THIS_ DWORD,LPD3DLIGHT7) PURE; + STDMETHOD(GetLight)(THIS_ DWORD,LPD3DLIGHT7) PURE; + STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE,DWORD) PURE; + STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE,LPDWORD) PURE; + STDMETHOD(BeginStateBlock)(THIS) PURE; + STDMETHOD(EndStateBlock)(THIS_ LPDWORD) PURE; + STDMETHOD(PreLoad)(THIS_ LPDIRECTDRAWSURFACE7) PURE; + STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,DWORD) PURE; + STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,LPWORD,DWORD,DWORD) PURE; + STDMETHOD(SetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; + STDMETHOD(GetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; + STDMETHOD(DrawPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,DWORD) PURE; + STDMETHOD(DrawIndexedPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,LPWORD,DWORD,DWORD) PURE; + STDMETHOD(DrawPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER7,DWORD,DWORD,DWORD) PURE; + STDMETHOD(DrawIndexedPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER7,DWORD,DWORD,LPWORD,DWORD,DWORD) PURE; + STDMETHOD(ComputeSphereVisibility)(THIS_ LPD3DVECTOR,LPD3DVALUE,DWORD,DWORD,LPDWORD) PURE; + STDMETHOD(GetTexture)(THIS_ DWORD,LPDIRECTDRAWSURFACE7 *) PURE; + STDMETHOD(SetTexture)(THIS_ DWORD,LPDIRECTDRAWSURFACE7) PURE; + STDMETHOD(GetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,LPDWORD) PURE; + STDMETHOD(SetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,DWORD) PURE; + STDMETHOD(ValidateDevice)(THIS_ LPDWORD) PURE; + STDMETHOD(ApplyStateBlock)(THIS_ DWORD) PURE; + STDMETHOD(CaptureStateBlock)(THIS_ DWORD) PURE; + STDMETHOD(DeleteStateBlock)(THIS_ DWORD) PURE; + STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE,LPDWORD) PURE; + STDMETHOD(Load)(THIS_ LPDIRECTDRAWSURFACE7,LPPOINT,LPDIRECTDRAWSURFACE7,LPRECT,DWORD) PURE; + STDMETHOD(LightEnable)(THIS_ DWORD,BOOL) PURE; + STDMETHOD(GetLightEnable)(THIS_ DWORD,BOOL*) PURE; + STDMETHOD(SetClipPlane)(THIS_ DWORD,D3DVALUE*) PURE; + STDMETHOD(GetClipPlane)(THIS_ DWORD,D3DVALUE*) PURE; + STDMETHOD(GetInfo)(THIS_ DWORD,LPVOID,DWORD) PURE; +}; + +typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DDevice7_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DDevice7_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DDevice7_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) +#define IDirect3DDevice7_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b) +#define IDirect3DDevice7_BeginScene(p) (p)->lpVtbl->BeginScene(p) +#define IDirect3DDevice7_EndScene(p) (p)->lpVtbl->EndScene(p) +#define IDirect3DDevice7_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) +#define IDirect3DDevice7_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) +#define IDirect3DDevice7_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a) +#define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f) +#define IDirect3DDevice7_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) +#define IDirect3DDevice7_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) +#define IDirect3DDevice7_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) +#define IDirect3DDevice7_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) +#define IDirect3DDevice7_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) +#define IDirect3DDevice7_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) +#define IDirect3DDevice7_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) +#define IDirect3DDevice7_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b) +#define IDirect3DDevice7_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b) +#define IDirect3DDevice7_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) +#define IDirect3DDevice7_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) +#define IDirect3DDevice7_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p) +#define IDirect3DDevice7_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a) +#define IDirect3DDevice7_PreLoad(p,a) (p)->lpVtbl->PreLoad(p,a) +#define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e) +#define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g) +#define IDirect3DDevice7_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) +#define IDirect3DDevice7_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) +#define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c,d,e) +#define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) +#define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveVB(p,a,b,c,d,e) +#define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) +#define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) (p)->lpVtbl->ComputeSphereVisibility(p,a,b,c,d,e) +#define IDirect3DDevice7_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b) +#define IDirect3DDevice7_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b) +#define IDirect3DDevice7_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c) +#define IDirect3DDevice7_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c) +#define IDirect3DDevice7_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a) +#define IDirect3DDevice7_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a) +#define IDirect3DDevice7_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a) +#define IDirect3DDevice7_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a) +#define IDirect3DDevice7_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b) +#define IDirect3DDevice7_Load(p,a,b,c,d,e) (p)->lpVtbl->Load(p,a,b,c,d,e) +#define IDirect3DDevice7_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b) +#define IDirect3DDevice7_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b) +#define IDirect3DDevice7_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b) +#define IDirect3DDevice7_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b) +#define IDirect3DDevice7_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c) +#else +#define IDirect3DDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DDevice7_AddRef(p) (p)->AddRef() +#define IDirect3DDevice7_Release(p) (p)->Release() +#define IDirect3DDevice7_GetCaps(p,a) (p)->GetCaps(a) +#define IDirect3DDevice7_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b) +#define IDirect3DDevice7_BeginScene(p) (p)->BeginScene() +#define IDirect3DDevice7_EndScene(p) (p)->EndScene() +#define IDirect3DDevice7_GetDirect3D(p,a) (p)->GetDirect3D(a) +#define IDirect3DDevice7_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) +#define IDirect3DDevice7_GetRenderTarget(p,a) (p)->GetRenderTarget(a) +#define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f) +#define IDirect3DDevice7_SetTransform(p,a,b) (p)->SetTransform(a,b) +#define IDirect3DDevice7_GetTransform(p,a,b) (p)->GetTransform(a,b) +#define IDirect3DDevice7_SetViewport(p,a) (p)->SetViewport(a) +#define IDirect3DDevice7_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) +#define IDirect3DDevice7_GetViewport(p,a) (p)->GetViewport(a) +#define IDirect3DDevice7_SetMaterial(p,a) (p)->SetMaterial(a) +#define IDirect3DDevice7_GetMaterial(p,a) (p)->GetMaterial(a) +#define IDirect3DDevice7_SetLight(p,a,b) (p)->SetLight(a,b) +#define IDirect3DDevice7_GetLight(p,a,b) (p)->GetLight(a,b) +#define IDirect3DDevice7_SetRenderState(p,a,b) (p)->SetRenderState(a,b) +#define IDirect3DDevice7_GetRenderState(p,a,b) (p)->GetRenderState(a,b) +#define IDirect3DDevice7_BeginStateBlock(p) (p)->BeginStateBlock() +#define IDirect3DDevice7_EndStateBlock(p,a) (p)->EndStateBlock(a) +#define IDirect3DDevice7_PreLoad(p,a) (p)->PreLoad(a) +#define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e) +#define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g) +#define IDirect3DDevice7_SetClipStatus(p,a) (p)->SetClipStatus(a) +#define IDirect3DDevice7_GetClipStatus(p,a) (p)->GetClipStatus(a) +#define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->DrawPrimitiveStrided(a,b,c,d,e) +#define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveStrided(a,b,c,d,e,f,g) +#define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) (p)->DrawPrimitiveVB(a,b,c,d,e) +#define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveVB(a,b,c,d,e,f,g) +#define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) (p)->ComputeSphereVisibility(a,b,c,d,e) +#define IDirect3DDevice7_GetTexture(p,a,b) (p)->GetTexture(a,b) +#define IDirect3DDevice7_SetTexture(p,a,b) (p)->SetTexture(a,b) +#define IDirect3DDevice7_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c) +#define IDirect3DDevice7_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c) +#define IDirect3DDevice7_ValidateDevice(p,a) (p)->ValidateDevice(a) +#define IDirect3DDevice7_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a) +#define IDirect3DDevice7_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a) +#define IDirect3DDevice7_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a) +#define IDirect3DDevice7_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b) +#define IDirect3DDevice7_Load(p,a,b,c,d,e) (p)->Load(a,b,c,d,e) +#define IDirect3DDevice7_LightEnable(p,a,b) (p)->LightEnable(a,b) +#define IDirect3DDevice7_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b) +#define IDirect3DDevice7_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b) +#define IDirect3DDevice7_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b) +#define IDirect3DDevice7_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c) +#endif +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* + * Execute Buffer interface + */ +#undef INTERFACE +#define INTERFACE IDirect3DExecuteBuffer + +DECLARE_INTERFACE_(IDirect3DExecuteBuffer, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DExecuteBuffer methods ***/ + STDMETHOD(Initialize)(THIS_ LPDIRECT3DDEVICE,LPD3DEXECUTEBUFFERDESC) PURE; + STDMETHOD(Lock)(THIS_ LPD3DEXECUTEBUFFERDESC) PURE; + STDMETHOD(Unlock)(THIS) PURE; + STDMETHOD(SetExecuteData)(THIS_ LPD3DEXECUTEDATA) PURE; + STDMETHOD(GetExecuteData)(THIS_ LPD3DEXECUTEDATA) PURE; + STDMETHOD(Validate)(THIS_ LPDWORD,LPD3DVALIDATECALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(Optimize)(THIS_ DWORD) PURE; +}; + +typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DExecuteBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DExecuteBuffer_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DExecuteBuffer_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DExecuteBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirect3DExecuteBuffer_Lock(p,a) (p)->lpVtbl->Lock(p,a) +#define IDirect3DExecuteBuffer_Unlock(p) (p)->lpVtbl->Unlock(p) +#define IDirect3DExecuteBuffer_SetExecuteData(p,a) (p)->lpVtbl->SetExecuteData(p,a) +#define IDirect3DExecuteBuffer_GetExecuteData(p,a) (p)->lpVtbl->GetExecuteData(p,a) +#define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) (p)->lpVtbl->Validate(p,a,b,c,d) +#define IDirect3DExecuteBuffer_Optimize(p,a) (p)->lpVtbl->Optimize(p,a) +#else +#define IDirect3DExecuteBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DExecuteBuffer_AddRef(p) (p)->AddRef() +#define IDirect3DExecuteBuffer_Release(p) (p)->Release() +#define IDirect3DExecuteBuffer_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirect3DExecuteBuffer_Lock(p,a) (p)->Lock(a) +#define IDirect3DExecuteBuffer_Unlock(p) (p)->Unlock() +#define IDirect3DExecuteBuffer_SetExecuteData(p,a) (p)->SetExecuteData(a) +#define IDirect3DExecuteBuffer_GetExecuteData(p,a) (p)->GetExecuteData(a) +#define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) (p)->Validate(a,b,c,d) +#define IDirect3DExecuteBuffer_Optimize(p,a) (p)->Optimize(a) +#endif + +/* + * Light interfaces + */ +#undef INTERFACE +#define INTERFACE IDirect3DLight + +DECLARE_INTERFACE_(IDirect3DLight, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DLight methods ***/ + STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE; + STDMETHOD(SetLight)(THIS_ LPD3DLIGHT) PURE; + STDMETHOD(GetLight)(THIS_ LPD3DLIGHT) PURE; +}; + +typedef struct IDirect3DLight *LPDIRECT3DLIGHT; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DLight_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DLight_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DLight_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DLight_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) +#define IDirect3DLight_SetLight(p,a) (p)->lpVtbl->SetLight(p,a) +#define IDirect3DLight_GetLight(p,a) (p)->lpVtbl->GetLight(p,a) +#else +#define IDirect3DLight_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DLight_AddRef(p) (p)->AddRef() +#define IDirect3DLight_Release(p) (p)->Release() +#define IDirect3DLight_Initialize(p,a) (p)->Initialize(a) +#define IDirect3DLight_SetLight(p,a) (p)->SetLight(a) +#define IDirect3DLight_GetLight(p,a) (p)->GetLight(a) +#endif + +/* + * Material interfaces + */ +#undef INTERFACE +#define INTERFACE IDirect3DMaterial + +DECLARE_INTERFACE_(IDirect3DMaterial, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DMaterial methods ***/ + STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE; + STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL) PURE; + STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL) PURE; + STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE,LPD3DMATERIALHANDLE) PURE; + STDMETHOD(Reserve)(THIS) PURE; + STDMETHOD(Unreserve)(THIS) PURE; +}; + +typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DMaterial_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DMaterial_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DMaterial_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DMaterial_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) +#define IDirect3DMaterial_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) +#define IDirect3DMaterial_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) +#define IDirect3DMaterial_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b) +#define IDirect3DMaterial_Reserve(p) (p)->lpVtbl->Reserve(p) +#define IDirect3DMaterial_Unreserve(p) (p)->lpVtbl->Unreserve(p) +#else +#define IDirect3DMaterial_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DMaterial_AddRef(p) (p)->AddRef() +#define IDirect3DMaterial_Release(p) (p)->Release() +#define IDirect3DMaterial_Initialize(p,a) (p)->Initialize(a) +#define IDirect3DMaterial_SetMaterial(p,a) (p)->SetMaterial(a) +#define IDirect3DMaterial_GetMaterial(p,a) (p)->GetMaterial(a) +#define IDirect3DMaterial_GetHandle(p,a,b) (p)->GetHandle(a,b) +#define IDirect3DMaterial_Reserve(p) (p)->Reserve() +#define IDirect3DMaterial_Unreserve(p) (p)->Unreserve() +#endif + +#if(DIRECT3D_VERSION >= 0x0500) +#undef INTERFACE +#define INTERFACE IDirect3DMaterial2 + +DECLARE_INTERFACE_(IDirect3DMaterial2, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DMaterial2 methods ***/ + STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL) PURE; + STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL) PURE; + STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE2,LPD3DMATERIALHANDLE) PURE; +}; + +typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DMaterial2_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DMaterial2_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DMaterial2_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) +#define IDirect3DMaterial2_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) +#define IDirect3DMaterial2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b) +#else +#define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DMaterial2_AddRef(p) (p)->AddRef() +#define IDirect3DMaterial2_Release(p) (p)->Release() +#define IDirect3DMaterial2_SetMaterial(p,a) (p)->SetMaterial(a) +#define IDirect3DMaterial2_GetMaterial(p,a) (p)->GetMaterial(a) +#define IDirect3DMaterial2_GetHandle(p,a,b) (p)->GetHandle(a,b) +#endif +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) +#undef INTERFACE +#define INTERFACE IDirect3DMaterial3 + +DECLARE_INTERFACE_(IDirect3DMaterial3, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DMaterial3 methods ***/ + STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL) PURE; + STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL) PURE; + STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE3,LPD3DMATERIALHANDLE) PURE; +}; + +typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DMaterial3_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DMaterial3_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DMaterial3_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) +#define IDirect3DMaterial3_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) +#define IDirect3DMaterial3_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b) +#else +#define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DMaterial3_AddRef(p) (p)->AddRef() +#define IDirect3DMaterial3_Release(p) (p)->Release() +#define IDirect3DMaterial3_SetMaterial(p,a) (p)->SetMaterial(a) +#define IDirect3DMaterial3_GetMaterial(p,a) (p)->GetMaterial(a) +#define IDirect3DMaterial3_GetHandle(p,a,b) (p)->GetHandle(a,b) +#endif +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +/* + * Texture interfaces + */ +#undef INTERFACE +#define INTERFACE IDirect3DTexture + +DECLARE_INTERFACE_(IDirect3DTexture, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DTexture methods ***/ + STDMETHOD(Initialize)(THIS_ LPDIRECT3DDEVICE,LPDIRECTDRAWSURFACE) PURE; + STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE,LPD3DTEXTUREHANDLE) PURE; + STDMETHOD(PaletteChanged)(THIS_ DWORD,DWORD) PURE; + STDMETHOD(Load)(THIS_ LPDIRECT3DTEXTURE) PURE; + STDMETHOD(Unload)(THIS) PURE; +}; + +typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DTexture_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DTexture_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DTexture_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirect3DTexture_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b) +#define IDirect3DTexture_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b) +#define IDirect3DTexture_Load(p,a) (p)->lpVtbl->Load(p,a) +#define IDirect3DTexture_Unload(p) (p)->lpVtbl->Unload(p) +#else +#define IDirect3DTexture_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DTexture_AddRef(p) (p)->AddRef() +#define IDirect3DTexture_Release(p) (p)->Release() +#define IDirect3DTexture_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirect3DTexture_GetHandle(p,a,b) (p)->GetHandle(a,b) +#define IDirect3DTexture_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b) +#define IDirect3DTexture_Load(p,a) (p)->Load(a) +#define IDirect3DTexture_Unload(p) (p)->Unload() +#endif + +#if(DIRECT3D_VERSION >= 0x0500) +#undef INTERFACE +#define INTERFACE IDirect3DTexture2 + +DECLARE_INTERFACE_(IDirect3DTexture2, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DTexture2 methods ***/ + STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE2,LPD3DTEXTUREHANDLE) PURE; + STDMETHOD(PaletteChanged)(THIS_ DWORD,DWORD) PURE; + STDMETHOD(Load)(THIS_ LPDIRECT3DTEXTURE2) PURE; +}; + +typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DTexture2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DTexture2_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DTexture2_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DTexture2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b) +#define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b) +#define IDirect3DTexture2_Load(p,a) (p)->lpVtbl->Load(p,a) +#else +#define IDirect3DTexture2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DTexture2_AddRef(p) (p)->AddRef() +#define IDirect3DTexture2_Release(p) (p)->Release() +#define IDirect3DTexture2_GetHandle(p,a,b) (p)->GetHandle(a,b) +#define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b) +#define IDirect3DTexture2_Load(p,a) (p)->Load(a) +#endif +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +/* + * Viewport interfaces + */ +#undef INTERFACE +#define INTERFACE IDirect3DViewport + +DECLARE_INTERFACE_(IDirect3DViewport, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DViewport methods ***/ + STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE; + STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT) PURE; + STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT) PURE; + STDMETHOD(TransformVertices)(THIS_ DWORD,LPD3DTRANSFORMDATA,DWORD,LPDWORD) PURE; + STDMETHOD(LightElements)(THIS_ DWORD,LPD3DLIGHTDATA) PURE; + STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE) PURE; + STDMETHOD(GetBackground)(THIS_ LPD3DMATERIALHANDLE,LPBOOL) PURE; + STDMETHOD(SetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE; + STDMETHOD(GetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE*,LPBOOL) PURE; + STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD) PURE; + STDMETHOD(AddLight)(THIS_ LPDIRECT3DLIGHT) PURE; + STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DLIGHT) PURE; + STDMETHOD(NextLight)(THIS_ LPDIRECT3DLIGHT,LPDIRECT3DLIGHT*,DWORD) PURE; +}; + +typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DViewport_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DViewport_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DViewport_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DViewport_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) +#define IDirect3DViewport_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) +#define IDirect3DViewport_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) +#define IDirect3DViewport_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d) +#define IDirect3DViewport_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b) +#define IDirect3DViewport_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a) +#define IDirect3DViewport_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b) +#define IDirect3DViewport_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a) +#define IDirect3DViewport_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b) +#define IDirect3DViewport_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c) +#define IDirect3DViewport_AddLight(p,a) (p)->lpVtbl->AddLight(p,a) +#define IDirect3DViewport_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a) +#define IDirect3DViewport_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c) +#else +#define IDirect3DViewport_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DViewport_AddRef(p) (p)->AddRef() +#define IDirect3DViewport_Release(p) (p)->Release() +#define IDirect3DViewport_Initialize(p,a) (p)->Initialize(a) +#define IDirect3DViewport_GetViewport(p,a) (p)->GetViewport(a) +#define IDirect3DViewport_SetViewport(p,a) (p)->SetViewport(a) +#define IDirect3DViewport_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d) +#define IDirect3DViewport_LightElements(p,a,b) (p)->LightElements(a,b) +#define IDirect3DViewport_SetBackground(p,a) (p)->SetBackground(a) +#define IDirect3DViewport_GetBackground(p,a,b) (p)->GetBackground(a,b) +#define IDirect3DViewport_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a) +#define IDirect3DViewport_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b) +#define IDirect3DViewport_Clear(p,a,b,c) (p)->Clear(a,b,c) +#define IDirect3DViewport_AddLight(p,a) (p)->AddLight(a) +#define IDirect3DViewport_DeleteLight(p,a) (p)->DeleteLight(a) +#define IDirect3DViewport_NextLight(p,a,b,c) (p)->NextLight(a,b,c) +#endif + +#if(DIRECT3D_VERSION >= 0x0500) +#undef INTERFACE +#define INTERFACE IDirect3DViewport2 + +DECLARE_INTERFACE_(IDirect3DViewport2, IDirect3DViewport) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DViewport methods ***/ + STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE; + STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT) PURE; + STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT) PURE; + STDMETHOD(TransformVertices)(THIS_ DWORD,LPD3DTRANSFORMDATA,DWORD,LPDWORD) PURE; + STDMETHOD(LightElements)(THIS_ DWORD,LPD3DLIGHTDATA) PURE; + STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE) PURE; + STDMETHOD(GetBackground)(THIS_ LPD3DMATERIALHANDLE,LPBOOL) PURE; + STDMETHOD(SetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE; + STDMETHOD(GetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE*,LPBOOL) PURE; + STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD) PURE; + STDMETHOD(AddLight)(THIS_ LPDIRECT3DLIGHT) PURE; + STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DLIGHT) PURE; + STDMETHOD(NextLight)(THIS_ LPDIRECT3DLIGHT,LPDIRECT3DLIGHT*,DWORD) PURE; + STDMETHOD(GetViewport2)(THIS_ LPD3DVIEWPORT2) PURE; + STDMETHOD(SetViewport2)(THIS_ LPD3DVIEWPORT2) PURE; +}; + +typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DViewport2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DViewport2_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DViewport2_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DViewport2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) +#define IDirect3DViewport2_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) +#define IDirect3DViewport2_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) +#define IDirect3DViewport2_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d) +#define IDirect3DViewport2_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b) +#define IDirect3DViewport2_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a) +#define IDirect3DViewport2_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b) +#define IDirect3DViewport2_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a) +#define IDirect3DViewport2_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b) +#define IDirect3DViewport2_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c) +#define IDirect3DViewport2_AddLight(p,a) (p)->lpVtbl->AddLight(p,a) +#define IDirect3DViewport2_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a) +#define IDirect3DViewport2_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c) +#define IDirect3DViewport2_GetViewport2(p,a) (p)->lpVtbl->GetViewport2(p,a) +#define IDirect3DViewport2_SetViewport2(p,a) (p)->lpVtbl->SetViewport2(p,a) +#else +#define IDirect3DViewport2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DViewport2_AddRef(p) (p)->AddRef() +#define IDirect3DViewport2_Release(p) (p)->Release() +#define IDirect3DViewport2_Initialize(p,a) (p)->Initialize(a) +#define IDirect3DViewport2_GetViewport(p,a) (p)->GetViewport(a) +#define IDirect3DViewport2_SetViewport(p,a) (p)->SetViewport(a) +#define IDirect3DViewport2_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d) +#define IDirect3DViewport2_LightElements(p,a,b) (p)->LightElements(a,b) +#define IDirect3DViewport2_SetBackground(p,a) (p)->SetBackground(a) +#define IDirect3DViewport2_GetBackground(p,a,b) (p)->GetBackground(a,b) +#define IDirect3DViewport2_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a) +#define IDirect3DViewport2_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b) +#define IDirect3DViewport2_Clear(p,a,b,c) (p)->Clear(a,b,c) +#define IDirect3DViewport2_AddLight(p,a) (p)->AddLight(a) +#define IDirect3DViewport2_DeleteLight(p,a) (p)->DeleteLight(a) +#define IDirect3DViewport2_NextLight(p,a,b,c) (p)->NextLight(a,b,c) +#define IDirect3DViewport2_GetViewport2(p,a) (p)->GetViewport2(a) +#define IDirect3DViewport2_SetViewport2(p,a) (p)->SetViewport2(a) +#endif +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) + +#undef INTERFACE +#define INTERFACE IDirect3DViewport3 + +DECLARE_INTERFACE_(IDirect3DViewport3, IDirect3DViewport2) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DViewport2 methods ***/ + STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE; + STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT) PURE; + STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT) PURE; + STDMETHOD(TransformVertices)(THIS_ DWORD,LPD3DTRANSFORMDATA,DWORD,LPDWORD) PURE; + STDMETHOD(LightElements)(THIS_ DWORD,LPD3DLIGHTDATA) PURE; + STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE) PURE; + STDMETHOD(GetBackground)(THIS_ LPD3DMATERIALHANDLE,LPBOOL) PURE; + STDMETHOD(SetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE; + STDMETHOD(GetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE*,LPBOOL) PURE; + STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD) PURE; + STDMETHOD(AddLight)(THIS_ LPDIRECT3DLIGHT) PURE; + STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DLIGHT) PURE; + STDMETHOD(NextLight)(THIS_ LPDIRECT3DLIGHT,LPDIRECT3DLIGHT*,DWORD) PURE; + STDMETHOD(GetViewport2)(THIS_ LPD3DVIEWPORT2) PURE; + STDMETHOD(SetViewport2)(THIS_ LPD3DVIEWPORT2) PURE; + STDMETHOD(SetBackgroundDepth2)(THIS_ LPDIRECTDRAWSURFACE4) PURE; + STDMETHOD(GetBackgroundDepth2)(THIS_ LPDIRECTDRAWSURFACE4*,LPBOOL) PURE; + STDMETHOD(Clear2)(THIS_ DWORD,LPD3DRECT,DWORD,D3DCOLOR,D3DVALUE,DWORD) PURE; +}; + +typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DViewport3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DViewport3_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DViewport3_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DViewport3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) +#define IDirect3DViewport3_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) +#define IDirect3DViewport3_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) +#define IDirect3DViewport3_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d) +#define IDirect3DViewport3_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b) +#define IDirect3DViewport3_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a) +#define IDirect3DViewport3_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b) +#define IDirect3DViewport3_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a) +#define IDirect3DViewport3_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b) +#define IDirect3DViewport3_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c) +#define IDirect3DViewport3_AddLight(p,a) (p)->lpVtbl->AddLight(p,a) +#define IDirect3DViewport3_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a) +#define IDirect3DViewport3_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c) +#define IDirect3DViewport3_GetViewport2(p,a) (p)->lpVtbl->GetViewport2(p,a) +#define IDirect3DViewport3_SetViewport2(p,a) (p)->lpVtbl->SetViewport2(p,a) +#define IDirect3DViewport3_SetBackgroundDepth2(p,a) (p)->lpVtbl->SetBackgroundDepth2(p,a) +#define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) (p)->lpVtbl->GetBackgroundDepth2(p,a,b) +#define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) (p)->lpVtbl->Clear2(p,a,b,c,d,e,f) +#else +#define IDirect3DViewport3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DViewport3_AddRef(p) (p)->AddRef() +#define IDirect3DViewport3_Release(p) (p)->Release() +#define IDirect3DViewport3_Initialize(p,a) (p)->Initialize(a) +#define IDirect3DViewport3_GetViewport(p,a) (p)->GetViewport(a) +#define IDirect3DViewport3_SetViewport(p,a) (p)->SetViewport(a) +#define IDirect3DViewport3_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d) +#define IDirect3DViewport3_LightElements(p,a,b) (p)->LightElements(a,b) +#define IDirect3DViewport3_SetBackground(p,a) (p)->SetBackground(a) +#define IDirect3DViewport3_GetBackground(p,a,b) (p)->GetBackground(a,b) +#define IDirect3DViewport3_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a) +#define IDirect3DViewport3_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b) +#define IDirect3DViewport3_Clear(p,a,b,c) (p)->Clear(a,b,c) +#define IDirect3DViewport3_AddLight(p,a) (p)->AddLight(a) +#define IDirect3DViewport3_DeleteLight(p,a) (p)->DeleteLight(a) +#define IDirect3DViewport3_NextLight(p,a,b,c) (p)->NextLight(a,b,c) +#define IDirect3DViewport3_GetViewport2(p,a) (p)->GetViewport2(a) +#define IDirect3DViewport3_SetViewport2(p,a) (p)->SetViewport2(a) +#define IDirect3DViewport3_SetBackgroundDepth2(p,a) (p)->SetBackgroundDepth2(a) +#define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) (p)->GetBackgroundDepth2(a,b) +#define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) (p)->Clear2(a,b,c,d,e,f) +#endif +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#if(DIRECT3D_VERSION >= 0x0600) +#undef INTERFACE +#define INTERFACE IDirect3DVertexBuffer + +DECLARE_INTERFACE_(IDirect3DVertexBuffer, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DVertexBuffer methods ***/ + STDMETHOD(Lock)(THIS_ DWORD,LPVOID*,LPDWORD) PURE; + STDMETHOD(Unlock)(THIS) PURE; + STDMETHOD(ProcessVertices)(THIS_ DWORD,DWORD,DWORD,LPDIRECT3DVERTEXBUFFER,DWORD,LPDIRECT3DDEVICE3,DWORD) PURE; + STDMETHOD(GetVertexBufferDesc)(THIS_ LPD3DVERTEXBUFFERDESC) PURE; + STDMETHOD(Optimize)(THIS_ LPDIRECT3DDEVICE3,DWORD) PURE; +}; + +typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DVertexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DVertexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DVertexBuffer_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DVertexBuffer_Lock(p,a,b,c) (p)->lpVtbl->Lock(p,a,b,c) +#define IDirect3DVertexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p) +#define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f,g) +#define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) (p)->lpVtbl->GetVertexBufferDesc(p,a) +#define IDirect3DVertexBuffer_Optimize(p,a,b) (p)->lpVtbl->Optimize(p,a,b) +#else +#define IDirect3DVertexBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DVertexBuffer_AddRef(p) (p)->AddRef() +#define IDirect3DVertexBuffer_Release(p) (p)->Release() +#define IDirect3DVertexBuffer_Lock(p,a,b,c) (p)->Lock(a,b,c) +#define IDirect3DVertexBuffer_Unlock(p) (p)->Unlock() +#define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) (p)->ProcessVertices(a,b,c,d,e,f,g) +#define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) (p)->GetVertexBufferDesc(a) +#define IDirect3DVertexBuffer_Optimize(p,a,b) (p)->Optimize(a,b) +#endif +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#if(DIRECT3D_VERSION >= 0x0700) +#undef INTERFACE +#define INTERFACE IDirect3DVertexBuffer7 + +DECLARE_INTERFACE_(IDirect3DVertexBuffer7, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DVertexBuffer7 methods ***/ + STDMETHOD(Lock)(THIS_ DWORD,LPVOID*,LPDWORD) PURE; + STDMETHOD(Unlock)(THIS) PURE; + STDMETHOD(ProcessVertices)(THIS_ DWORD,DWORD,DWORD,LPDIRECT3DVERTEXBUFFER7,DWORD,LPDIRECT3DDEVICE7,DWORD) PURE; + STDMETHOD(GetVertexBufferDesc)(THIS_ LPD3DVERTEXBUFFERDESC) PURE; + STDMETHOD(Optimize)(THIS_ LPDIRECT3DDEVICE7,DWORD) PURE; + STDMETHOD(ProcessVerticesStrided)(THIS_ DWORD,DWORD,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,LPDIRECT3DDEVICE7,DWORD) PURE; +}; + +typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DVertexBuffer7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DVertexBuffer7_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DVertexBuffer7_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DVertexBuffer7_Lock(p,a,b,c) (p)->lpVtbl->Lock(p,a,b,c) +#define IDirect3DVertexBuffer7_Unlock(p) (p)->lpVtbl->Unlock(p) +#define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f,g) +#define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) (p)->lpVtbl->GetVertexBufferDesc(p,a) +#define IDirect3DVertexBuffer7_Optimize(p,a,b) (p)->lpVtbl->Optimize(p,a,b) +#define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVerticesStrided(p,a,b,c,d,e,f,g) +#else +#define IDirect3DVertexBuffer7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DVertexBuffer7_AddRef(p) (p)->AddRef() +#define IDirect3DVertexBuffer7_Release(p) (p)->Release() +#define IDirect3DVertexBuffer7_Lock(p,a,b,c) (p)->Lock(a,b,c) +#define IDirect3DVertexBuffer7_Unlock(p) (p)->Unlock() +#define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) (p)->ProcessVertices(a,b,c,d,e,f,g) +#define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) (p)->GetVertexBufferDesc(a) +#define IDirect3DVertexBuffer7_Optimize(p,a,b) (p)->Optimize(a,b) +#define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) (p)->ProcessVerticesStrided(a,b,c,d,e,f,g) +#endif +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#if(DIRECT3D_VERSION >= 0x0500) +/**************************************************************************** + * + * Flags for IDirect3DDevice::NextViewport + * + ****************************************************************************/ + +/* + * Return the next viewport + */ +#define D3DNEXT_NEXT 0x00000001l + +/* + * Return the first viewport + */ +#define D3DNEXT_HEAD 0x00000002l + +/* + * Return the last viewport + */ +#define D3DNEXT_TAIL 0x00000004l + + +/**************************************************************************** + * + * Flags for DrawPrimitive/DrawIndexedPrimitive + * Also valid for Begin/BeginIndexed + * Also valid for VertexBuffer::CreateVertexBuffer + ****************************************************************************/ + +/* + * Wait until the device is ready to draw the primitive + * This will cause DP to not return DDERR_WASSTILLDRAWING + */ +#define D3DDP_WAIT 0x00000001l +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if (DIRECT3D_VERSION == 0x0500) +/* + * Hint that it is acceptable to render the primitive out of order. + */ +#define D3DDP_OUTOFORDER 0x00000002l +#endif + + +#if(DIRECT3D_VERSION >= 0x0500) +/* + * Hint that the primitives have been clipped by the application. + */ +#define D3DDP_DONOTCLIP 0x00000004l + +/* + * Hint that the extents need not be updated. + */ +#define D3DDP_DONOTUPDATEEXTENTS 0x00000008l +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) + +/* + * Hint that the lighting should not be applied on vertices. + */ + +#define D3DDP_DONOTLIGHT 0x00000010l + +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +/* + * Direct3D Errors + * DirectDraw error codes are used when errors not specified here. + */ +#define D3D_OK DD_OK +#define D3DERR_BADMAJORVERSION MAKE_DDHRESULT(700) +#define D3DERR_BADMINORVERSION MAKE_DDHRESULT(701) + +#if(DIRECT3D_VERSION >= 0x0500) +/* + * An invalid device was requested by the application. + */ +#define D3DERR_INVALID_DEVICE MAKE_DDHRESULT(705) +#define D3DERR_INITFAILED MAKE_DDHRESULT(706) + +/* + * SetRenderTarget attempted on a device that was + * QI'd off the render target. + */ +#define D3DERR_DEVICEAGGREGATED MAKE_DDHRESULT(707) +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#define D3DERR_EXECUTE_CREATE_FAILED MAKE_DDHRESULT(710) +#define D3DERR_EXECUTE_DESTROY_FAILED MAKE_DDHRESULT(711) +#define D3DERR_EXECUTE_LOCK_FAILED MAKE_DDHRESULT(712) +#define D3DERR_EXECUTE_UNLOCK_FAILED MAKE_DDHRESULT(713) +#define D3DERR_EXECUTE_LOCKED MAKE_DDHRESULT(714) +#define D3DERR_EXECUTE_NOT_LOCKED MAKE_DDHRESULT(715) + +#define D3DERR_EXECUTE_FAILED MAKE_DDHRESULT(716) +#define D3DERR_EXECUTE_CLIPPED_FAILED MAKE_DDHRESULT(717) + +#define D3DERR_TEXTURE_NO_SUPPORT MAKE_DDHRESULT(720) +#define D3DERR_TEXTURE_CREATE_FAILED MAKE_DDHRESULT(721) +#define D3DERR_TEXTURE_DESTROY_FAILED MAKE_DDHRESULT(722) +#define D3DERR_TEXTURE_LOCK_FAILED MAKE_DDHRESULT(723) +#define D3DERR_TEXTURE_UNLOCK_FAILED MAKE_DDHRESULT(724) +#define D3DERR_TEXTURE_LOAD_FAILED MAKE_DDHRESULT(725) +#define D3DERR_TEXTURE_SWAP_FAILED MAKE_DDHRESULT(726) +#define D3DERR_TEXTURE_LOCKED MAKE_DDHRESULT(727) +#define D3DERR_TEXTURE_NOT_LOCKED MAKE_DDHRESULT(728) +#define D3DERR_TEXTURE_GETSURF_FAILED MAKE_DDHRESULT(729) + +#define D3DERR_MATRIX_CREATE_FAILED MAKE_DDHRESULT(730) +#define D3DERR_MATRIX_DESTROY_FAILED MAKE_DDHRESULT(731) +#define D3DERR_MATRIX_SETDATA_FAILED MAKE_DDHRESULT(732) +#define D3DERR_MATRIX_GETDATA_FAILED MAKE_DDHRESULT(733) +#define D3DERR_SETVIEWPORTDATA_FAILED MAKE_DDHRESULT(734) + +#if(DIRECT3D_VERSION >= 0x0500) +#define D3DERR_INVALIDCURRENTVIEWPORT MAKE_DDHRESULT(735) +#define D3DERR_INVALIDPRIMITIVETYPE MAKE_DDHRESULT(736) +#define D3DERR_INVALIDVERTEXTYPE MAKE_DDHRESULT(737) +#define D3DERR_TEXTURE_BADSIZE MAKE_DDHRESULT(738) +#define D3DERR_INVALIDRAMPTEXTURE MAKE_DDHRESULT(739) +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#define D3DERR_MATERIAL_CREATE_FAILED MAKE_DDHRESULT(740) +#define D3DERR_MATERIAL_DESTROY_FAILED MAKE_DDHRESULT(741) +#define D3DERR_MATERIAL_SETDATA_FAILED MAKE_DDHRESULT(742) +#define D3DERR_MATERIAL_GETDATA_FAILED MAKE_DDHRESULT(743) + +#if(DIRECT3D_VERSION >= 0x0500) +#define D3DERR_INVALIDPALETTE MAKE_DDHRESULT(744) + +#define D3DERR_ZBUFF_NEEDS_SYSTEMMEMORY MAKE_DDHRESULT(745) +#define D3DERR_ZBUFF_NEEDS_VIDEOMEMORY MAKE_DDHRESULT(746) +#define D3DERR_SURFACENOTINVIDMEM MAKE_DDHRESULT(747) +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#define D3DERR_LIGHT_SET_FAILED MAKE_DDHRESULT(750) +#if(DIRECT3D_VERSION >= 0x0500) +#define D3DERR_LIGHTHASVIEWPORT MAKE_DDHRESULT(751) +#define D3DERR_LIGHTNOTINTHISVIEWPORT MAKE_DDHRESULT(752) +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#define D3DERR_SCENE_IN_SCENE MAKE_DDHRESULT(760) +#define D3DERR_SCENE_NOT_IN_SCENE MAKE_DDHRESULT(761) +#define D3DERR_SCENE_BEGIN_FAILED MAKE_DDHRESULT(762) +#define D3DERR_SCENE_END_FAILED MAKE_DDHRESULT(763) + +#if(DIRECT3D_VERSION >= 0x0500) +#define D3DERR_INBEGIN MAKE_DDHRESULT(770) +#define D3DERR_NOTINBEGIN MAKE_DDHRESULT(771) +#define D3DERR_NOVIEWPORTS MAKE_DDHRESULT(772) +#define D3DERR_VIEWPORTDATANOTSET MAKE_DDHRESULT(773) +#define D3DERR_VIEWPORTHASNODEVICE MAKE_DDHRESULT(774) +#define D3DERR_NOCURRENTVIEWPORT MAKE_DDHRESULT(775) +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) +#define D3DERR_INVALIDVERTEXFORMAT MAKE_DDHRESULT(2048) + +/* + * Attempted to CreateTexture on a surface that had a color key + */ +#define D3DERR_COLORKEYATTACHED MAKE_DDHRESULT(2050) + +#define D3DERR_VERTEXBUFFEROPTIMIZED MAKE_DDHRESULT(2060) +#define D3DERR_VBUF_CREATE_FAILED MAKE_DDHRESULT(2061) +#define D3DERR_VERTEXBUFFERLOCKED MAKE_DDHRESULT(2062) +#define D3DERR_VERTEXBUFFERUNLOCKFAILED MAKE_DDHRESULT(2063) + +#define D3DERR_ZBUFFER_NOTPRESENT MAKE_DDHRESULT(2070) +#define D3DERR_STENCILBUFFER_NOTPRESENT MAKE_DDHRESULT(2071) + +#define D3DERR_WRONGTEXTUREFORMAT MAKE_DDHRESULT(2072) +#define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_DDHRESULT(2073) +#define D3DERR_UNSUPPORTEDCOLORARG MAKE_DDHRESULT(2074) +#define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_DDHRESULT(2075) +#define D3DERR_UNSUPPORTEDALPHAARG MAKE_DDHRESULT(2076) +#define D3DERR_TOOMANYOPERATIONS MAKE_DDHRESULT(2077) +#define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_DDHRESULT(2078) +#define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_DDHRESULT(2079) +#define D3DERR_CONFLICTINGRENDERSTATE MAKE_DDHRESULT(2081) +#define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_DDHRESULT(2082) +#define D3DERR_TOOMANYPRIMITIVES MAKE_DDHRESULT(2083) +#define D3DERR_INVALIDMATRIX MAKE_DDHRESULT(2084) +#define D3DERR_TOOMANYVERTICES MAKE_DDHRESULT(2085) +#define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_DDHRESULT(2086) + +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#if(DIRECT3D_VERSION >= 0x0700) +#define D3DERR_INVALIDSTATEBLOCK MAKE_DDHRESULT(2100) +#define D3DERR_INBEGINSTATEBLOCK MAKE_DDHRESULT(2101) +#define D3DERR_NOTINBEGINSTATEBLOCK MAKE_DDHRESULT(2102) +#endif /* DIRECT3D_VERSION >= 0x0700 */ + + +#ifdef __cplusplus +}; +#endif + +#endif /* (DIRECT3D_VERSION < 0x0800) */ +#endif /* _D3D_H_ */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10.h new file mode 100644 index 0000000000000000000000000000000000000000..e75891880876a7c47423aa6f6c5ce57fe6acac36 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10.h @@ -0,0 +1,7135 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d10_h__ +#define __d3d10_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D10DeviceChild_FWD_DEFINED__ +#define __ID3D10DeviceChild_FWD_DEFINED__ +typedef interface ID3D10DeviceChild ID3D10DeviceChild; + +#endif /* __ID3D10DeviceChild_FWD_DEFINED__ */ + + +#ifndef __ID3D10DepthStencilState_FWD_DEFINED__ +#define __ID3D10DepthStencilState_FWD_DEFINED__ +typedef interface ID3D10DepthStencilState ID3D10DepthStencilState; + +#endif /* __ID3D10DepthStencilState_FWD_DEFINED__ */ + + +#ifndef __ID3D10BlendState_FWD_DEFINED__ +#define __ID3D10BlendState_FWD_DEFINED__ +typedef interface ID3D10BlendState ID3D10BlendState; + +#endif /* __ID3D10BlendState_FWD_DEFINED__ */ + + +#ifndef __ID3D10RasterizerState_FWD_DEFINED__ +#define __ID3D10RasterizerState_FWD_DEFINED__ +typedef interface ID3D10RasterizerState ID3D10RasterizerState; + +#endif /* __ID3D10RasterizerState_FWD_DEFINED__ */ + + +#ifndef __ID3D10Resource_FWD_DEFINED__ +#define __ID3D10Resource_FWD_DEFINED__ +typedef interface ID3D10Resource ID3D10Resource; + +#endif /* __ID3D10Resource_FWD_DEFINED__ */ + + +#ifndef __ID3D10Buffer_FWD_DEFINED__ +#define __ID3D10Buffer_FWD_DEFINED__ +typedef interface ID3D10Buffer ID3D10Buffer; + +#endif /* __ID3D10Buffer_FWD_DEFINED__ */ + + +#ifndef __ID3D10Texture1D_FWD_DEFINED__ +#define __ID3D10Texture1D_FWD_DEFINED__ +typedef interface ID3D10Texture1D ID3D10Texture1D; + +#endif /* __ID3D10Texture1D_FWD_DEFINED__ */ + + +#ifndef __ID3D10Texture2D_FWD_DEFINED__ +#define __ID3D10Texture2D_FWD_DEFINED__ +typedef interface ID3D10Texture2D ID3D10Texture2D; + +#endif /* __ID3D10Texture2D_FWD_DEFINED__ */ + + +#ifndef __ID3D10Texture3D_FWD_DEFINED__ +#define __ID3D10Texture3D_FWD_DEFINED__ +typedef interface ID3D10Texture3D ID3D10Texture3D; + +#endif /* __ID3D10Texture3D_FWD_DEFINED__ */ + + +#ifndef __ID3D10View_FWD_DEFINED__ +#define __ID3D10View_FWD_DEFINED__ +typedef interface ID3D10View ID3D10View; + +#endif /* __ID3D10View_FWD_DEFINED__ */ + + +#ifndef __ID3D10ShaderResourceView_FWD_DEFINED__ +#define __ID3D10ShaderResourceView_FWD_DEFINED__ +typedef interface ID3D10ShaderResourceView ID3D10ShaderResourceView; + +#endif /* __ID3D10ShaderResourceView_FWD_DEFINED__ */ + + +#ifndef __ID3D10RenderTargetView_FWD_DEFINED__ +#define __ID3D10RenderTargetView_FWD_DEFINED__ +typedef interface ID3D10RenderTargetView ID3D10RenderTargetView; + +#endif /* __ID3D10RenderTargetView_FWD_DEFINED__ */ + + +#ifndef __ID3D10DepthStencilView_FWD_DEFINED__ +#define __ID3D10DepthStencilView_FWD_DEFINED__ +typedef interface ID3D10DepthStencilView ID3D10DepthStencilView; + +#endif /* __ID3D10DepthStencilView_FWD_DEFINED__ */ + + +#ifndef __ID3D10VertexShader_FWD_DEFINED__ +#define __ID3D10VertexShader_FWD_DEFINED__ +typedef interface ID3D10VertexShader ID3D10VertexShader; + +#endif /* __ID3D10VertexShader_FWD_DEFINED__ */ + + +#ifndef __ID3D10GeometryShader_FWD_DEFINED__ +#define __ID3D10GeometryShader_FWD_DEFINED__ +typedef interface ID3D10GeometryShader ID3D10GeometryShader; + +#endif /* __ID3D10GeometryShader_FWD_DEFINED__ */ + + +#ifndef __ID3D10PixelShader_FWD_DEFINED__ +#define __ID3D10PixelShader_FWD_DEFINED__ +typedef interface ID3D10PixelShader ID3D10PixelShader; + +#endif /* __ID3D10PixelShader_FWD_DEFINED__ */ + + +#ifndef __ID3D10InputLayout_FWD_DEFINED__ +#define __ID3D10InputLayout_FWD_DEFINED__ +typedef interface ID3D10InputLayout ID3D10InputLayout; + +#endif /* __ID3D10InputLayout_FWD_DEFINED__ */ + + +#ifndef __ID3D10SamplerState_FWD_DEFINED__ +#define __ID3D10SamplerState_FWD_DEFINED__ +typedef interface ID3D10SamplerState ID3D10SamplerState; + +#endif /* __ID3D10SamplerState_FWD_DEFINED__ */ + + +#ifndef __ID3D10Asynchronous_FWD_DEFINED__ +#define __ID3D10Asynchronous_FWD_DEFINED__ +typedef interface ID3D10Asynchronous ID3D10Asynchronous; + +#endif /* __ID3D10Asynchronous_FWD_DEFINED__ */ + + +#ifndef __ID3D10Query_FWD_DEFINED__ +#define __ID3D10Query_FWD_DEFINED__ +typedef interface ID3D10Query ID3D10Query; + +#endif /* __ID3D10Query_FWD_DEFINED__ */ + + +#ifndef __ID3D10Predicate_FWD_DEFINED__ +#define __ID3D10Predicate_FWD_DEFINED__ +typedef interface ID3D10Predicate ID3D10Predicate; + +#endif /* __ID3D10Predicate_FWD_DEFINED__ */ + + +#ifndef __ID3D10Counter_FWD_DEFINED__ +#define __ID3D10Counter_FWD_DEFINED__ +typedef interface ID3D10Counter ID3D10Counter; + +#endif /* __ID3D10Counter_FWD_DEFINED__ */ + + +#ifndef __ID3D10Device_FWD_DEFINED__ +#define __ID3D10Device_FWD_DEFINED__ +typedef interface ID3D10Device ID3D10Device; + +#endif /* __ID3D10Device_FWD_DEFINED__ */ + + +#ifndef __ID3D10Multithread_FWD_DEFINED__ +#define __ID3D10Multithread_FWD_DEFINED__ +typedef interface ID3D10Multithread ID3D10Multithread; + +#endif /* __ID3D10Multithread_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "dxgi.h" +#include "d3dcommon.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d10_0000_0000 */ +/* [local] */ + +#ifndef _D3D10_CONSTANTS +#define _D3D10_CONSTANTS +#define D3D10_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff ) + +#define D3D10_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff ) + +#define D3D10_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff ) + +#define D3D10_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 ) + +#define D3D10_CLIP_OR_CULL_DISTANCE_COUNT ( 8 ) + +#define D3D10_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 ) + +#define D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 ) + +#define D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 ) + +#define D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 ) + +#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 ) + +#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 ) + +#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 ) + +#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 ) + +#define D3D10_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 ) + +#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 ) + +#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 ) + +#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 ) + +#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 ) + +#define D3D10_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 ) + +#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 ) + +#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 ) + +#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 ) + +#define D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 ) + +#define D3D10_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 ) + +#define D3D10_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 ) + +#define D3D10_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 ) + +#define D3D10_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 ) + +#define D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 ) + +#define D3D10_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 ) + +#define D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 ) + +#define D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 ) + +#define D3D10_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 ) + +#define D3D10_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 ) + +#define D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 ) + +#define D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 ) + +#define D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 ) + +#define D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 ) + +#define D3D10_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f ) +#define D3D10_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f ) +#define D3D10_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f ) +#define D3D10_DEFAULT_BLEND_FACTOR_RED ( 1.0f ) +#define D3D10_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f ) +#define D3D10_DEFAULT_DEPTH_BIAS ( 0 ) + +#define D3D10_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f ) +#define D3D10_DEFAULT_MAX_ANISOTROPY ( 16.0f ) +#define D3D10_DEFAULT_MIP_LOD_BIAS ( 0.0f ) +#define D3D10_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 ) + +#define D3D10_DEFAULT_SAMPLE_MASK ( 0xffffffff ) + +#define D3D10_DEFAULT_SCISSOR_ENDX ( 0 ) + +#define D3D10_DEFAULT_SCISSOR_ENDY ( 0 ) + +#define D3D10_DEFAULT_SCISSOR_STARTX ( 0 ) + +#define D3D10_DEFAULT_SCISSOR_STARTY ( 0 ) + +#define D3D10_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f ) +#define D3D10_DEFAULT_STENCIL_READ_MASK ( 0xff ) + +#define D3D10_DEFAULT_STENCIL_REFERENCE ( 0 ) + +#define D3D10_DEFAULT_STENCIL_WRITE_MASK ( 0xff ) + +#define D3D10_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 ) + +#define D3D10_DEFAULT_VIEWPORT_HEIGHT ( 0 ) + +#define D3D10_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f ) +#define D3D10_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f ) +#define D3D10_DEFAULT_VIEWPORT_TOPLEFTX ( 0 ) + +#define D3D10_DEFAULT_VIEWPORT_TOPLEFTY ( 0 ) + +#define D3D10_DEFAULT_VIEWPORT_WIDTH ( 0 ) + +#define D3D10_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 ) +#define D3D10_FLOAT32_MAX ( 3.402823466e+38f ) +#define D3D10_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f ) +#define D3D10_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f ) +#define D3D10_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f ) +#define D3D10_FLOAT_TO_SRGB_OFFSET ( 0.055f ) +#define D3D10_FLOAT_TO_SRGB_SCALE_1 ( 12.92f ) +#define D3D10_FLOAT_TO_SRGB_SCALE_2 ( 1.055f ) +#define D3D10_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f ) +#define D3D10_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f ) +#define D3D10_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f ) +#define D3D10_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f ) +#define D3D10_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f ) +#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 ) + +#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 ) + +#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 ) + +#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 ) + +#define D3D10_GS_INPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D10_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_GS_INPUT_REGISTER_COUNT ( 16 ) + +#define D3D10_GS_INPUT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D10_GS_INPUT_REGISTER_READ_PORTS ( 1 ) + +#define D3D10_GS_INPUT_REGISTER_VERTICES ( 6 ) + +#define D3D10_GS_OUTPUT_ELEMENTS ( 32 ) + +#define D3D10_GS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D10_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_GS_OUTPUT_REGISTER_COUNT ( 32 ) + +#define D3D10_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 ) + +#define D3D10_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 ) + +#define D3D10_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 ) + +#define D3D10_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 ) + +#define D3D10_IA_INSTANCE_ID_BIT_COUNT ( 32 ) + +#define D3D10_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 ) + +#define D3D10_IA_PRIMITIVE_ID_BIT_COUNT ( 32 ) + +#define D3D10_IA_VERTEX_ID_BIT_COUNT ( 32 ) + +#define D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 16 ) + +#define D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 64 ) + +#define D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 16 ) + +#define D3D10_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff ) + +#define D3D10_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff ) + +#define D3D10_LINEAR_GAMMA ( 1.0f ) +#define D3D10_MAX_BORDER_COLOR_COMPONENT ( 1.0f ) +#define D3D10_MAX_DEPTH ( 1.0f ) +#define D3D10_MAX_MAXANISOTROPY ( 16 ) + +#define D3D10_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 ) + +#define D3D10_MAX_POSITION_VALUE ( 3.402823466e+34f ) +#define D3D10_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 ) + +#define D3D10_MIN_BORDER_COLOR_COMPONENT ( 0.0f ) +#define D3D10_MIN_DEPTH ( 0.0f ) +#define D3D10_MIN_MAXANISOTROPY ( 0 ) + +#define D3D10_MIP_LOD_BIAS_MAX ( 15.99f ) +#define D3D10_MIP_LOD_BIAS_MIN ( -16.0f ) +#define D3D10_MIP_LOD_FRACTIONAL_BIT_COUNT ( 6 ) + +#define D3D10_MIP_LOD_RANGE_BIT_COUNT ( 8 ) + +#define D3D10_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f ) +#define D3D10_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 ) + +#define D3D10_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 13 ) + +#define D3D10_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 ) + +#define D3D10_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff ) + +#define D3D10_PS_FRONTFACING_FALSE_VALUE ( 0 ) + +#define D3D10_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff ) + +#define D3D10_PS_INPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D10_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_PS_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D10_PS_INPUT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D10_PS_INPUT_REGISTER_READ_PORTS ( 1 ) + +#define D3D10_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f ) +#define D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 ) + +#define D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 ) + +#define D3D10_PS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D10_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_PS_OUTPUT_REGISTER_COUNT ( 8 ) + +#define D3D10_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f ) +#define D3D10_REQ_BLEND_OBJECT_COUNT_PER_CONTEXT ( 4096 ) + +#define D3D10_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 ) + +#define D3D10_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 ) + +#define D3D10_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_CONTEXT ( 4096 ) + +#define D3D10_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 ) + +#define D3D10_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 ) + +#define D3D10_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 8192 ) + +#define D3D10_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 ) + +#define D3D10_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 ) + +#define D3D10_REQ_MAXANISOTROPY ( 16 ) + +#define D3D10_REQ_MIP_LEVELS ( 14 ) + +#define D3D10_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 ) + +#define D3D10_REQ_RASTERIZER_OBJECT_COUNT_PER_CONTEXT ( 4096 ) + +#define D3D10_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 8192 ) + +#define D3D10_REQ_RESOURCE_SIZE_IN_MEGABYTES ( 128 ) + +#define D3D10_REQ_RESOURCE_VIEW_COUNT_PER_CONTEXT_2_TO_EXP ( 20 ) + +#define D3D10_REQ_SAMPLER_OBJECT_COUNT_PER_CONTEXT ( 4096 ) + +#define D3D10_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 512 ) + +#define D3D10_REQ_TEXTURE1D_U_DIMENSION ( 8192 ) + +#define D3D10_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 512 ) + +#define D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 8192 ) + +#define D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 ) + +#define D3D10_REQ_TEXTURECUBE_DIMENSION ( 8192 ) + +#define D3D10_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 ) + +#define D3D10_SHADER_MAJOR_VERSION ( 4 ) + +#define D3D10_SHADER_MINOR_VERSION ( 0 ) + +#define D3D10_SHIFT_INSTRUCTION_PAD_VALUE ( 0 ) + +#define D3D10_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 ) + +#define D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 ) + +#define D3D10_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 ) + +#define D3D10_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 256 ) + +#define D3D10_SO_BUFFER_SLOT_COUNT ( 4 ) + +#define D3D10_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff ) + +#define D3D10_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER ( 1 ) + +#define D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT ( 64 ) + +#define D3D10_SRGB_GAMMA ( 2.2f ) +#define D3D10_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f ) +#define D3D10_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f ) +#define D3D10_SRGB_TO_FLOAT_EXPONENT ( 2.4f ) +#define D3D10_SRGB_TO_FLOAT_OFFSET ( 0.055f ) +#define D3D10_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f ) +#define D3D10_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f ) +#define D3D10_STANDARD_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 ) + +#define D3D10_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 ) + +#define D3D10_STANDARD_PIXEL_COMPONENT_COUNT ( 128 ) + +#define D3D10_STANDARD_PIXEL_ELEMENT_COUNT ( 32 ) + +#define D3D10_STANDARD_VECTOR_SIZE ( 4 ) + +#define D3D10_STANDARD_VERTEX_ELEMENT_COUNT ( 16 ) + +#define D3D10_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 ) + +#define D3D10_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 ) + +#define D3D10_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 6 ) + +#define D3D10_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 18 ) + +#define D3D10_UNBOUND_MEMORY_ACCESS_RESULT ( 0 ) + +#define D3D10_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 ) + +#define D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 ) + +#define D3D10_VIEWPORT_BOUNDS_MAX ( 16383 ) + +#define D3D10_VIEWPORT_BOUNDS_MIN ( -16384 ) + +#define D3D10_VS_INPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D10_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_VS_INPUT_REGISTER_COUNT ( 16 ) + +#define D3D10_VS_INPUT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D10_VS_INPUT_REGISTER_READ_PORTS ( 1 ) + +#define D3D10_VS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D10_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_VS_OUTPUT_REGISTER_COUNT ( 16 ) + +#define D3D10_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 ) + +#define D3D10_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 ) + +#define D3D10_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 ) + +#define D3D_MAJOR_VERSION ( 10 ) + +#define D3D_MINOR_VERSION ( 0 ) + +#define D3D_SPEC_DATE_DAY ( 8 ) + +#define D3D_SPEC_DATE_MONTH ( 8 ) + +#define D3D_SPEC_DATE_YEAR ( 2006 ) + +#define D3D_SPEC_VERSION ( 1.050005 ) +#endif +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if !defined( __d3d10_1_h__ ) && !(D3D10_HEADER_MINOR_VERSION >= 1) +#define D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT +#define D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT +#endif +#define _FACD3D10 ( 0x879 ) + +#define _FACD3D10DEBUG ( ( _FACD3D10 + 1 ) ) + +#define MAKE_D3D10_HRESULT( code ) MAKE_HRESULT( 1, _FACD3D10, code ) +#define MAKE_D3D10_STATUS( code ) MAKE_HRESULT( 0, _FACD3D10, code ) +/* Direct3D errors are now found in winerror.h */ +typedef +enum D3D10_INPUT_CLASSIFICATION + { + D3D10_INPUT_PER_VERTEX_DATA = 0, + D3D10_INPUT_PER_INSTANCE_DATA = 1 + } D3D10_INPUT_CLASSIFICATION; + +#define D3D10_APPEND_ALIGNED_ELEMENT ( 0xffffffff ) + +typedef struct D3D10_INPUT_ELEMENT_DESC + { + LPCSTR SemanticName; + UINT SemanticIndex; + DXGI_FORMAT Format; + UINT InputSlot; + UINT AlignedByteOffset; + D3D10_INPUT_CLASSIFICATION InputSlotClass; + UINT InstanceDataStepRate; + } D3D10_INPUT_ELEMENT_DESC; + +typedef +enum D3D10_FILL_MODE + { + D3D10_FILL_WIREFRAME = 2, + D3D10_FILL_SOLID = 3 + } D3D10_FILL_MODE; + +typedef D3D_PRIMITIVE_TOPOLOGY D3D10_PRIMITIVE_TOPOLOGY; + +typedef D3D_PRIMITIVE D3D10_PRIMITIVE; + +typedef +enum D3D10_CULL_MODE + { + D3D10_CULL_NONE = 1, + D3D10_CULL_FRONT = 2, + D3D10_CULL_BACK = 3 + } D3D10_CULL_MODE; + +typedef struct D3D10_SO_DECLARATION_ENTRY + { + LPCSTR SemanticName; + UINT SemanticIndex; + BYTE StartComponent; + BYTE ComponentCount; + BYTE OutputSlot; + } D3D10_SO_DECLARATION_ENTRY; + +typedef struct D3D10_VIEWPORT + { + INT TopLeftX; + INT TopLeftY; + UINT Width; + UINT Height; + FLOAT MinDepth; + FLOAT MaxDepth; + } D3D10_VIEWPORT; + +typedef +enum D3D10_RESOURCE_DIMENSION + { + D3D10_RESOURCE_DIMENSION_UNKNOWN = 0, + D3D10_RESOURCE_DIMENSION_BUFFER = 1, + D3D10_RESOURCE_DIMENSION_TEXTURE1D = 2, + D3D10_RESOURCE_DIMENSION_TEXTURE2D = 3, + D3D10_RESOURCE_DIMENSION_TEXTURE3D = 4 + } D3D10_RESOURCE_DIMENSION; + +typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION; + +typedef +enum D3D10_DSV_DIMENSION + { + D3D10_DSV_DIMENSION_UNKNOWN = 0, + D3D10_DSV_DIMENSION_TEXTURE1D = 1, + D3D10_DSV_DIMENSION_TEXTURE1DARRAY = 2, + D3D10_DSV_DIMENSION_TEXTURE2D = 3, + D3D10_DSV_DIMENSION_TEXTURE2DARRAY = 4, + D3D10_DSV_DIMENSION_TEXTURE2DMS = 5, + D3D10_DSV_DIMENSION_TEXTURE2DMSARRAY = 6 + } D3D10_DSV_DIMENSION; + +typedef +enum D3D10_RTV_DIMENSION + { + D3D10_RTV_DIMENSION_UNKNOWN = 0, + D3D10_RTV_DIMENSION_BUFFER = 1, + D3D10_RTV_DIMENSION_TEXTURE1D = 2, + D3D10_RTV_DIMENSION_TEXTURE1DARRAY = 3, + D3D10_RTV_DIMENSION_TEXTURE2D = 4, + D3D10_RTV_DIMENSION_TEXTURE2DARRAY = 5, + D3D10_RTV_DIMENSION_TEXTURE2DMS = 6, + D3D10_RTV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D10_RTV_DIMENSION_TEXTURE3D = 8 + } D3D10_RTV_DIMENSION; + +typedef +enum D3D10_USAGE + { + D3D10_USAGE_DEFAULT = 0, + D3D10_USAGE_IMMUTABLE = 1, + D3D10_USAGE_DYNAMIC = 2, + D3D10_USAGE_STAGING = 3 + } D3D10_USAGE; + +typedef +enum D3D10_BIND_FLAG + { + D3D10_BIND_VERTEX_BUFFER = 0x1L, + D3D10_BIND_INDEX_BUFFER = 0x2L, + D3D10_BIND_CONSTANT_BUFFER = 0x4L, + D3D10_BIND_SHADER_RESOURCE = 0x8L, + D3D10_BIND_STREAM_OUTPUT = 0x10L, + D3D10_BIND_RENDER_TARGET = 0x20L, + D3D10_BIND_DEPTH_STENCIL = 0x40L + } D3D10_BIND_FLAG; + +typedef +enum D3D10_CPU_ACCESS_FLAG + { + D3D10_CPU_ACCESS_WRITE = 0x10000L, + D3D10_CPU_ACCESS_READ = 0x20000L + } D3D10_CPU_ACCESS_FLAG; + +typedef +enum D3D10_RESOURCE_MISC_FLAG + { + D3D10_RESOURCE_MISC_GENERATE_MIPS = 0x1L, + D3D10_RESOURCE_MISC_SHARED = 0x2L, + D3D10_RESOURCE_MISC_TEXTURECUBE = 0x4L, + D3D10_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x10L, + D3D10_RESOURCE_MISC_GDI_COMPATIBLE = 0x20L + } D3D10_RESOURCE_MISC_FLAG; + +typedef +enum D3D10_MAP + { + D3D10_MAP_READ = 1, + D3D10_MAP_WRITE = 2, + D3D10_MAP_READ_WRITE = 3, + D3D10_MAP_WRITE_DISCARD = 4, + D3D10_MAP_WRITE_NO_OVERWRITE = 5 + } D3D10_MAP; + +typedef +enum D3D10_MAP_FLAG + { + D3D10_MAP_FLAG_DO_NOT_WAIT = 0x100000L + } D3D10_MAP_FLAG; + +typedef +enum D3D10_RAISE_FLAG + { + D3D10_RAISE_FLAG_DRIVER_INTERNAL_ERROR = 0x1L + } D3D10_RAISE_FLAG; + +typedef +enum D3D10_CLEAR_FLAG + { + D3D10_CLEAR_DEPTH = 0x1L, + D3D10_CLEAR_STENCIL = 0x2L + } D3D10_CLEAR_FLAG; + +typedef RECT D3D10_RECT; + +typedef struct D3D10_BOX + { + UINT left; + UINT top; + UINT front; + UINT right; + UINT bottom; + UINT back; + } D3D10_BOX; + + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D10DeviceChild_INTERFACE_DEFINED__ +#define __ID3D10DeviceChild_INTERFACE_DEFINED__ + +/* interface ID3D10DeviceChild */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10DeviceChild; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C00-342C-4106-A19F-4F2704F689F0") + ID3D10DeviceChild : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE GetDevice( + /* [annotation] */ + _Out_ ID3D10Device **ppDevice) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateData( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateData( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateDataInterface( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10DeviceChildVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10DeviceChild * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10DeviceChild * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10DeviceChild * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10DeviceChild * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10DeviceChild * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10DeviceChild * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10DeviceChild * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D10DeviceChildVtbl; + + interface ID3D10DeviceChild + { + CONST_VTBL struct ID3D10DeviceChildVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10DeviceChild_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10DeviceChild_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10DeviceChild_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10DeviceChild_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10DeviceChild_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10DeviceChild_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10DeviceChild_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10DeviceChild_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0001 */ +/* [local] */ + +typedef +enum D3D10_COMPARISON_FUNC + { + D3D10_COMPARISON_NEVER = 1, + D3D10_COMPARISON_LESS = 2, + D3D10_COMPARISON_EQUAL = 3, + D3D10_COMPARISON_LESS_EQUAL = 4, + D3D10_COMPARISON_GREATER = 5, + D3D10_COMPARISON_NOT_EQUAL = 6, + D3D10_COMPARISON_GREATER_EQUAL = 7, + D3D10_COMPARISON_ALWAYS = 8 + } D3D10_COMPARISON_FUNC; + +typedef +enum D3D10_DEPTH_WRITE_MASK + { + D3D10_DEPTH_WRITE_MASK_ZERO = 0, + D3D10_DEPTH_WRITE_MASK_ALL = 1 + } D3D10_DEPTH_WRITE_MASK; + +typedef +enum D3D10_STENCIL_OP + { + D3D10_STENCIL_OP_KEEP = 1, + D3D10_STENCIL_OP_ZERO = 2, + D3D10_STENCIL_OP_REPLACE = 3, + D3D10_STENCIL_OP_INCR_SAT = 4, + D3D10_STENCIL_OP_DECR_SAT = 5, + D3D10_STENCIL_OP_INVERT = 6, + D3D10_STENCIL_OP_INCR = 7, + D3D10_STENCIL_OP_DECR = 8 + } D3D10_STENCIL_OP; + +typedef struct D3D10_DEPTH_STENCILOP_DESC + { + D3D10_STENCIL_OP StencilFailOp; + D3D10_STENCIL_OP StencilDepthFailOp; + D3D10_STENCIL_OP StencilPassOp; + D3D10_COMPARISON_FUNC StencilFunc; + } D3D10_DEPTH_STENCILOP_DESC; + +typedef struct D3D10_DEPTH_STENCIL_DESC + { + BOOL DepthEnable; + D3D10_DEPTH_WRITE_MASK DepthWriteMask; + D3D10_COMPARISON_FUNC DepthFunc; + BOOL StencilEnable; + UINT8 StencilReadMask; + UINT8 StencilWriteMask; + D3D10_DEPTH_STENCILOP_DESC FrontFace; + D3D10_DEPTH_STENCILOP_DESC BackFace; + } D3D10_DEPTH_STENCIL_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0001_v0_0_s_ifspec; + +#ifndef __ID3D10DepthStencilState_INTERFACE_DEFINED__ +#define __ID3D10DepthStencilState_INTERFACE_DEFINED__ + +/* interface ID3D10DepthStencilState */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10DepthStencilState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2B4B1CC8-A4AD-41f8-8322-CA86FC3EC675") + ID3D10DepthStencilState : public ID3D10DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_DEPTH_STENCIL_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10DepthStencilStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10DepthStencilState * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10DepthStencilState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10DepthStencilState * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10DepthStencilState * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10DepthStencilState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10DepthStencilState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10DepthStencilState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10DepthStencilState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10DepthStencilState * This, + /* [annotation] */ + _Out_ D3D10_DEPTH_STENCIL_DESC *pDesc); + + END_INTERFACE + } ID3D10DepthStencilStateVtbl; + + interface ID3D10DepthStencilState + { + CONST_VTBL struct ID3D10DepthStencilStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10DepthStencilState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10DepthStencilState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10DepthStencilState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10DepthStencilState_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10DepthStencilState_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10DepthStencilState_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10DepthStencilState_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10DepthStencilState_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10DepthStencilState_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0002 */ +/* [local] */ + +typedef +enum D3D10_BLEND + { + D3D10_BLEND_ZERO = 1, + D3D10_BLEND_ONE = 2, + D3D10_BLEND_SRC_COLOR = 3, + D3D10_BLEND_INV_SRC_COLOR = 4, + D3D10_BLEND_SRC_ALPHA = 5, + D3D10_BLEND_INV_SRC_ALPHA = 6, + D3D10_BLEND_DEST_ALPHA = 7, + D3D10_BLEND_INV_DEST_ALPHA = 8, + D3D10_BLEND_DEST_COLOR = 9, + D3D10_BLEND_INV_DEST_COLOR = 10, + D3D10_BLEND_SRC_ALPHA_SAT = 11, + D3D10_BLEND_BLEND_FACTOR = 14, + D3D10_BLEND_INV_BLEND_FACTOR = 15, + D3D10_BLEND_SRC1_COLOR = 16, + D3D10_BLEND_INV_SRC1_COLOR = 17, + D3D10_BLEND_SRC1_ALPHA = 18, + D3D10_BLEND_INV_SRC1_ALPHA = 19 + } D3D10_BLEND; + +typedef +enum D3D10_BLEND_OP + { + D3D10_BLEND_OP_ADD = 1, + D3D10_BLEND_OP_SUBTRACT = 2, + D3D10_BLEND_OP_REV_SUBTRACT = 3, + D3D10_BLEND_OP_MIN = 4, + D3D10_BLEND_OP_MAX = 5 + } D3D10_BLEND_OP; + +typedef +enum D3D10_COLOR_WRITE_ENABLE + { + D3D10_COLOR_WRITE_ENABLE_RED = 1, + D3D10_COLOR_WRITE_ENABLE_GREEN = 2, + D3D10_COLOR_WRITE_ENABLE_BLUE = 4, + D3D10_COLOR_WRITE_ENABLE_ALPHA = 8, + D3D10_COLOR_WRITE_ENABLE_ALL = ( ( ( D3D10_COLOR_WRITE_ENABLE_RED | D3D10_COLOR_WRITE_ENABLE_GREEN ) | D3D10_COLOR_WRITE_ENABLE_BLUE ) | D3D10_COLOR_WRITE_ENABLE_ALPHA ) + } D3D10_COLOR_WRITE_ENABLE; + +typedef struct D3D10_BLEND_DESC + { + BOOL AlphaToCoverageEnable; + BOOL BlendEnable[ 8 ]; + D3D10_BLEND SrcBlend; + D3D10_BLEND DestBlend; + D3D10_BLEND_OP BlendOp; + D3D10_BLEND SrcBlendAlpha; + D3D10_BLEND DestBlendAlpha; + D3D10_BLEND_OP BlendOpAlpha; + UINT8 RenderTargetWriteMask[ 8 ]; + } D3D10_BLEND_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0002_v0_0_s_ifspec; + +#ifndef __ID3D10BlendState_INTERFACE_DEFINED__ +#define __ID3D10BlendState_INTERFACE_DEFINED__ + +/* interface ID3D10BlendState */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10BlendState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EDAD8D19-8A35-4d6d-8566-2EA276CDE161") + ID3D10BlendState : public ID3D10DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_BLEND_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10BlendStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10BlendState * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10BlendState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10BlendState * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10BlendState * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10BlendState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10BlendState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10BlendState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10BlendState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10BlendState * This, + /* [annotation] */ + _Out_ D3D10_BLEND_DESC *pDesc); + + END_INTERFACE + } ID3D10BlendStateVtbl; + + interface ID3D10BlendState + { + CONST_VTBL struct ID3D10BlendStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10BlendState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10BlendState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10BlendState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10BlendState_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10BlendState_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10BlendState_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10BlendState_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10BlendState_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10BlendState_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0003 */ +/* [local] */ + +typedef struct D3D10_RASTERIZER_DESC + { + D3D10_FILL_MODE FillMode; + D3D10_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + INT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL ScissorEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; + } D3D10_RASTERIZER_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0003_v0_0_s_ifspec; + +#ifndef __ID3D10RasterizerState_INTERFACE_DEFINED__ +#define __ID3D10RasterizerState_INTERFACE_DEFINED__ + +/* interface ID3D10RasterizerState */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10RasterizerState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A2A07292-89AF-4345-BE2E-C53D9FBB6E9F") + ID3D10RasterizerState : public ID3D10DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_RASTERIZER_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10RasterizerStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10RasterizerState * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10RasterizerState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10RasterizerState * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10RasterizerState * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10RasterizerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10RasterizerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10RasterizerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10RasterizerState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10RasterizerState * This, + /* [annotation] */ + _Out_ D3D10_RASTERIZER_DESC *pDesc); + + END_INTERFACE + } ID3D10RasterizerStateVtbl; + + interface ID3D10RasterizerState + { + CONST_VTBL struct ID3D10RasterizerStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10RasterizerState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10RasterizerState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10RasterizerState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10RasterizerState_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10RasterizerState_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10RasterizerState_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10RasterizerState_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10RasterizerState_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10RasterizerState_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0004 */ +/* [local] */ + +#if !defined( D3D10_NO_HELPERS ) && defined( __cplusplus ) +inline UINT D3D10CalcSubresource( UINT MipSlice, UINT ArraySlice, UINT MipLevels ) +{ return MipSlice + ArraySlice * MipLevels; } +#endif +typedef struct D3D10_SUBRESOURCE_DATA + { + const void *pSysMem; + UINT SysMemPitch; + UINT SysMemSlicePitch; + } D3D10_SUBRESOURCE_DATA; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0004_v0_0_s_ifspec; + +#ifndef __ID3D10Resource_INTERFACE_DEFINED__ +#define __ID3D10Resource_INTERFACE_DEFINED__ + +/* interface ID3D10Resource */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Resource; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C01-342C-4106-A19F-4F2704F689F0") + ID3D10Resource : public ID3D10DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetType( + /* [annotation] */ + _Out_ D3D10_RESOURCE_DIMENSION *rType) = 0; + + virtual void STDMETHODCALLTYPE SetEvictionPriority( + /* [annotation] */ + _In_ UINT EvictionPriority) = 0; + + virtual UINT STDMETHODCALLTYPE GetEvictionPriority( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10ResourceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Resource * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Resource * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Resource * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10Resource * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Resource * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Resource * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Resource * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D10Resource * This, + /* [annotation] */ + _Out_ D3D10_RESOURCE_DIMENSION *rType); + + DECLSPEC_XFGVIRT(ID3D10Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D10Resource * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D10Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D10Resource * This); + + END_INTERFACE + } ID3D10ResourceVtbl; + + interface ID3D10Resource + { + CONST_VTBL struct ID3D10ResourceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Resource_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Resource_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Resource_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Resource_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10Resource_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Resource_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Resource_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10Resource_GetType(This,rType) \ + ( (This)->lpVtbl -> GetType(This,rType) ) + +#define ID3D10Resource_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D10Resource_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Resource_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0005 */ +/* [local] */ + +typedef struct D3D10_BUFFER_DESC + { + UINT ByteWidth; + D3D10_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + } D3D10_BUFFER_DESC; + +#if !defined( D3D10_NO_HELPERS ) && defined( __cplusplus ) +struct CD3D10_BUFFER_DESC : public D3D10_BUFFER_DESC +{ + CD3D10_BUFFER_DESC() = default; + explicit CD3D10_BUFFER_DESC( const D3D10_BUFFER_DESC& o ) : + D3D10_BUFFER_DESC( o ) + {} + explicit CD3D10_BUFFER_DESC( + UINT byteWidth, + UINT bindFlags, + D3D10_USAGE usage = D3D10_USAGE_DEFAULT, + UINT cpuaccessFlags = 0, + UINT miscFlags = 0 ) + { + ByteWidth = byteWidth; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags ; + MiscFlags = miscFlags; + } + ~CD3D10_BUFFER_DESC() {} +}; +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0005_v0_0_s_ifspec; + +#ifndef __ID3D10Buffer_INTERFACE_DEFINED__ +#define __ID3D10Buffer_INTERFACE_DEFINED__ + +/* interface ID3D10Buffer */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Buffer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C02-342C-4106-A19F-4F2704F689F0") + ID3D10Buffer : public ID3D10Resource + { + public: + virtual HRESULT STDMETHODCALLTYPE Map( + /* [annotation] */ + _In_ D3D10_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_ void **ppData) = 0; + + virtual void STDMETHODCALLTYPE Unmap( void) = 0; + + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_BUFFER_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10BufferVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Buffer * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Buffer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Buffer * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10Buffer * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Buffer * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Buffer * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Buffer * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D10Buffer * This, + /* [annotation] */ + _Out_ D3D10_RESOURCE_DIMENSION *rType); + + DECLSPEC_XFGVIRT(ID3D10Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D10Buffer * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D10Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D10Buffer * This); + + DECLSPEC_XFGVIRT(ID3D10Buffer, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D10Buffer * This, + /* [annotation] */ + _In_ D3D10_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_ void **ppData); + + DECLSPEC_XFGVIRT(ID3D10Buffer, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D10Buffer * This); + + DECLSPEC_XFGVIRT(ID3D10Buffer, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10Buffer * This, + /* [annotation] */ + _Out_ D3D10_BUFFER_DESC *pDesc); + + END_INTERFACE + } ID3D10BufferVtbl; + + interface ID3D10Buffer + { + CONST_VTBL struct ID3D10BufferVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Buffer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Buffer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Buffer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Buffer_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10Buffer_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Buffer_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Buffer_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10Buffer_GetType(This,rType) \ + ( (This)->lpVtbl -> GetType(This,rType) ) + +#define ID3D10Buffer_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D10Buffer_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + + +#define ID3D10Buffer_Map(This,MapType,MapFlags,ppData) \ + ( (This)->lpVtbl -> Map(This,MapType,MapFlags,ppData) ) + +#define ID3D10Buffer_Unmap(This) \ + ( (This)->lpVtbl -> Unmap(This) ) + +#define ID3D10Buffer_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Buffer_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0006 */ +/* [local] */ + +typedef struct D3D10_TEXTURE1D_DESC + { + UINT Width; + UINT MipLevels; + UINT ArraySize; + DXGI_FORMAT Format; + D3D10_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + } D3D10_TEXTURE1D_DESC; + +#if !defined( D3D10_NO_HELPERS ) && defined( __cplusplus ) +struct CD3D10_TEXTURE1D_DESC : public D3D10_TEXTURE1D_DESC +{ + CD3D10_TEXTURE1D_DESC() = default; + explicit CD3D10_TEXTURE1D_DESC( const D3D10_TEXTURE1D_DESC& o ) : + D3D10_TEXTURE1D_DESC( o ) + {} + explicit CD3D10_TEXTURE1D_DESC( + DXGI_FORMAT format, + UINT width, + UINT arraySize = 1, + UINT mipLevels = 0, + UINT bindFlags = D3D10_BIND_SHADER_RESOURCE, + D3D10_USAGE usage = D3D10_USAGE_DEFAULT, + UINT cpuaccessFlags= 0, + UINT miscFlags = 0 ) + { + Width = width; + MipLevels = mipLevels; + ArraySize = arraySize; + Format = format; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } + ~CD3D10_TEXTURE1D_DESC() {} +}; +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0006_v0_0_s_ifspec; + +#ifndef __ID3D10Texture1D_INTERFACE_DEFINED__ +#define __ID3D10Texture1D_INTERFACE_DEFINED__ + +/* interface ID3D10Texture1D */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Texture1D; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C03-342C-4106-A19F-4F2704F689F0") + ID3D10Texture1D : public ID3D10Resource + { + public: + virtual HRESULT STDMETHODCALLTYPE Map( + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D10_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_ void **ppData) = 0; + + virtual void STDMETHODCALLTYPE Unmap( + /* [annotation] */ + _In_ UINT Subresource) = 0; + + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_TEXTURE1D_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10Texture1DVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Texture1D * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Texture1D * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Texture1D * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10Texture1D * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Texture1D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Texture1D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Texture1D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D10Texture1D * This, + /* [annotation] */ + _Out_ D3D10_RESOURCE_DIMENSION *rType); + + DECLSPEC_XFGVIRT(ID3D10Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D10Texture1D * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D10Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D10Texture1D * This); + + DECLSPEC_XFGVIRT(ID3D10Texture1D, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D10Texture1D * This, + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D10_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_ void **ppData); + + DECLSPEC_XFGVIRT(ID3D10Texture1D, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D10Texture1D * This, + /* [annotation] */ + _In_ UINT Subresource); + + DECLSPEC_XFGVIRT(ID3D10Texture1D, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10Texture1D * This, + /* [annotation] */ + _Out_ D3D10_TEXTURE1D_DESC *pDesc); + + END_INTERFACE + } ID3D10Texture1DVtbl; + + interface ID3D10Texture1D + { + CONST_VTBL struct ID3D10Texture1DVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Texture1D_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Texture1D_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Texture1D_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Texture1D_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10Texture1D_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Texture1D_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Texture1D_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10Texture1D_GetType(This,rType) \ + ( (This)->lpVtbl -> GetType(This,rType) ) + +#define ID3D10Texture1D_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D10Texture1D_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + + +#define ID3D10Texture1D_Map(This,Subresource,MapType,MapFlags,ppData) \ + ( (This)->lpVtbl -> Map(This,Subresource,MapType,MapFlags,ppData) ) + +#define ID3D10Texture1D_Unmap(This,Subresource) \ + ( (This)->lpVtbl -> Unmap(This,Subresource) ) + +#define ID3D10Texture1D_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Texture1D_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0007 */ +/* [local] */ + +typedef struct D3D10_TEXTURE2D_DESC + { + UINT Width; + UINT Height; + UINT MipLevels; + UINT ArraySize; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; + D3D10_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + } D3D10_TEXTURE2D_DESC; + +#if !defined( D3D10_NO_HELPERS ) && defined( __cplusplus ) +struct CD3D10_TEXTURE2D_DESC : public D3D10_TEXTURE2D_DESC +{ + CD3D10_TEXTURE2D_DESC() = default; + explicit CD3D10_TEXTURE2D_DESC( const D3D10_TEXTURE2D_DESC& o ) : + D3D10_TEXTURE2D_DESC( o ) + {} + explicit CD3D10_TEXTURE2D_DESC( + DXGI_FORMAT format, + UINT width, + UINT height, + UINT arraySize = 1, + UINT mipLevels = 0, + UINT bindFlags = D3D10_BIND_SHADER_RESOURCE, + D3D10_USAGE usage = D3D10_USAGE_DEFAULT, + UINT cpuaccessFlags = 0, + UINT sampleCount = 1, + UINT sampleQuality = 0, + UINT miscFlags = 0 ) + { + Width = width; + Height = height; + MipLevels = mipLevels; + ArraySize = arraySize; + Format = format; + SampleDesc.Count = sampleCount; + SampleDesc.Quality = sampleQuality; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } + ~CD3D10_TEXTURE2D_DESC() {} +}; +#endif +typedef struct D3D10_MAPPED_TEXTURE2D + { + void *pData; + UINT RowPitch; + } D3D10_MAPPED_TEXTURE2D; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0007_v0_0_s_ifspec; + +#ifndef __ID3D10Texture2D_INTERFACE_DEFINED__ +#define __ID3D10Texture2D_INTERFACE_DEFINED__ + +/* interface ID3D10Texture2D */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Texture2D; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C04-342C-4106-A19F-4F2704F689F0") + ID3D10Texture2D : public ID3D10Resource + { + public: + virtual HRESULT STDMETHODCALLTYPE Map( + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D10_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_ D3D10_MAPPED_TEXTURE2D *pMappedTex2D) = 0; + + virtual void STDMETHODCALLTYPE Unmap( + /* [annotation] */ + _In_ UINT Subresource) = 0; + + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_TEXTURE2D_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10Texture2DVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Texture2D * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Texture2D * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Texture2D * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10Texture2D * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Texture2D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Texture2D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Texture2D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D10Texture2D * This, + /* [annotation] */ + _Out_ D3D10_RESOURCE_DIMENSION *rType); + + DECLSPEC_XFGVIRT(ID3D10Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D10Texture2D * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D10Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D10Texture2D * This); + + DECLSPEC_XFGVIRT(ID3D10Texture2D, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D10Texture2D * This, + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D10_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_ D3D10_MAPPED_TEXTURE2D *pMappedTex2D); + + DECLSPEC_XFGVIRT(ID3D10Texture2D, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D10Texture2D * This, + /* [annotation] */ + _In_ UINT Subresource); + + DECLSPEC_XFGVIRT(ID3D10Texture2D, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10Texture2D * This, + /* [annotation] */ + _Out_ D3D10_TEXTURE2D_DESC *pDesc); + + END_INTERFACE + } ID3D10Texture2DVtbl; + + interface ID3D10Texture2D + { + CONST_VTBL struct ID3D10Texture2DVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Texture2D_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Texture2D_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Texture2D_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Texture2D_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10Texture2D_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Texture2D_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Texture2D_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10Texture2D_GetType(This,rType) \ + ( (This)->lpVtbl -> GetType(This,rType) ) + +#define ID3D10Texture2D_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D10Texture2D_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + + +#define ID3D10Texture2D_Map(This,Subresource,MapType,MapFlags,pMappedTex2D) \ + ( (This)->lpVtbl -> Map(This,Subresource,MapType,MapFlags,pMappedTex2D) ) + +#define ID3D10Texture2D_Unmap(This,Subresource) \ + ( (This)->lpVtbl -> Unmap(This,Subresource) ) + +#define ID3D10Texture2D_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Texture2D_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0008 */ +/* [local] */ + +typedef struct D3D10_TEXTURE3D_DESC + { + UINT Width; + UINT Height; + UINT Depth; + UINT MipLevels; + DXGI_FORMAT Format; + D3D10_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + } D3D10_TEXTURE3D_DESC; + +#if !defined( D3D10_NO_HELPERS ) && defined( __cplusplus ) +struct CD3D10_TEXTURE3D_DESC : public D3D10_TEXTURE3D_DESC +{ + CD3D10_TEXTURE3D_DESC() = default; + explicit CD3D10_TEXTURE3D_DESC( const D3D10_TEXTURE3D_DESC& o ) : + D3D10_TEXTURE3D_DESC( o ) + {} + explicit CD3D10_TEXTURE3D_DESC( + DXGI_FORMAT format, + UINT width, + UINT height, + UINT depth, + UINT mipLevels = 0, + UINT bindFlags = D3D10_BIND_SHADER_RESOURCE, + D3D10_USAGE usage = D3D10_USAGE_DEFAULT, + UINT cpuaccessFlags = 0, + UINT miscFlags = 0 ) + { + Width = width; + Height = height; + Depth = depth; + MipLevels = mipLevels; + Format = format; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } + ~CD3D10_TEXTURE3D_DESC() {} +}; +#endif +typedef struct D3D10_MAPPED_TEXTURE3D + { + void *pData; + UINT RowPitch; + UINT DepthPitch; + } D3D10_MAPPED_TEXTURE3D; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0008_v0_0_s_ifspec; + +#ifndef __ID3D10Texture3D_INTERFACE_DEFINED__ +#define __ID3D10Texture3D_INTERFACE_DEFINED__ + +/* interface ID3D10Texture3D */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Texture3D; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C05-342C-4106-A19F-4F2704F689F0") + ID3D10Texture3D : public ID3D10Resource + { + public: + virtual HRESULT STDMETHODCALLTYPE Map( + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D10_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_ D3D10_MAPPED_TEXTURE3D *pMappedTex3D) = 0; + + virtual void STDMETHODCALLTYPE Unmap( + /* [annotation] */ + _In_ UINT Subresource) = 0; + + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_TEXTURE3D_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10Texture3DVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Texture3D * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Texture3D * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Texture3D * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10Texture3D * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Texture3D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Texture3D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Texture3D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D10Texture3D * This, + /* [annotation] */ + _Out_ D3D10_RESOURCE_DIMENSION *rType); + + DECLSPEC_XFGVIRT(ID3D10Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D10Texture3D * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D10Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D10Texture3D * This); + + DECLSPEC_XFGVIRT(ID3D10Texture3D, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D10Texture3D * This, + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D10_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_ D3D10_MAPPED_TEXTURE3D *pMappedTex3D); + + DECLSPEC_XFGVIRT(ID3D10Texture3D, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D10Texture3D * This, + /* [annotation] */ + _In_ UINT Subresource); + + DECLSPEC_XFGVIRT(ID3D10Texture3D, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10Texture3D * This, + /* [annotation] */ + _Out_ D3D10_TEXTURE3D_DESC *pDesc); + + END_INTERFACE + } ID3D10Texture3DVtbl; + + interface ID3D10Texture3D + { + CONST_VTBL struct ID3D10Texture3DVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Texture3D_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Texture3D_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Texture3D_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Texture3D_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10Texture3D_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Texture3D_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Texture3D_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10Texture3D_GetType(This,rType) \ + ( (This)->lpVtbl -> GetType(This,rType) ) + +#define ID3D10Texture3D_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D10Texture3D_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + + +#define ID3D10Texture3D_Map(This,Subresource,MapType,MapFlags,pMappedTex3D) \ + ( (This)->lpVtbl -> Map(This,Subresource,MapType,MapFlags,pMappedTex3D) ) + +#define ID3D10Texture3D_Unmap(This,Subresource) \ + ( (This)->lpVtbl -> Unmap(This,Subresource) ) + +#define ID3D10Texture3D_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Texture3D_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0009 */ +/* [local] */ + +typedef +enum D3D10_TEXTURECUBE_FACE + { + D3D10_TEXTURECUBE_FACE_POSITIVE_X = 0, + D3D10_TEXTURECUBE_FACE_NEGATIVE_X = 1, + D3D10_TEXTURECUBE_FACE_POSITIVE_Y = 2, + D3D10_TEXTURECUBE_FACE_NEGATIVE_Y = 3, + D3D10_TEXTURECUBE_FACE_POSITIVE_Z = 4, + D3D10_TEXTURECUBE_FACE_NEGATIVE_Z = 5 + } D3D10_TEXTURECUBE_FACE; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0009_v0_0_s_ifspec; + +#ifndef __ID3D10View_INTERFACE_DEFINED__ +#define __ID3D10View_INTERFACE_DEFINED__ + +/* interface ID3D10View */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10View; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C902B03F-60A7-49BA-9936-2A3AB37A7E33") + ID3D10View : public ID3D10DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetResource( + /* [annotation] */ + _Out_ ID3D10Resource **ppResource) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10ViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10View * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10View * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10View * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10View * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10View * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10View * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10View * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D10View * This, + /* [annotation] */ + _Out_ ID3D10Resource **ppResource); + + END_INTERFACE + } ID3D10ViewVtbl; + + interface ID3D10View + { + CONST_VTBL struct ID3D10ViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10View_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10View_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10View_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10View_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10View_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10View_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10View_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10View_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10View_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0010 */ +/* [local] */ + +typedef struct D3D10_BUFFER_SRV + { + union + { + UINT FirstElement; + UINT ElementOffset; + } ; + union + { + UINT NumElements; + UINT ElementWidth; + } ; + } D3D10_BUFFER_SRV; + +typedef struct D3D10_TEX1D_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + } D3D10_TEX1D_SRV; + +typedef struct D3D10_TEX1D_ARRAY_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; + } D3D10_TEX1D_ARRAY_SRV; + +typedef struct D3D10_TEX2D_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + } D3D10_TEX2D_SRV; + +typedef struct D3D10_TEX2D_ARRAY_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; + } D3D10_TEX2D_ARRAY_SRV; + +typedef struct D3D10_TEX3D_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + } D3D10_TEX3D_SRV; + +typedef struct D3D10_TEXCUBE_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + } D3D10_TEXCUBE_SRV; + +typedef struct D3D10_TEX2DMS_SRV + { + UINT UnusedField_NothingToDefine; + } D3D10_TEX2DMS_SRV; + +typedef struct D3D10_TEX2DMS_ARRAY_SRV + { + UINT FirstArraySlice; + UINT ArraySize; + } D3D10_TEX2DMS_ARRAY_SRV; + +typedef struct D3D10_SHADER_RESOURCE_VIEW_DESC + { + DXGI_FORMAT Format; + D3D10_SRV_DIMENSION ViewDimension; + union + { + D3D10_BUFFER_SRV Buffer; + D3D10_TEX1D_SRV Texture1D; + D3D10_TEX1D_ARRAY_SRV Texture1DArray; + D3D10_TEX2D_SRV Texture2D; + D3D10_TEX2D_ARRAY_SRV Texture2DArray; + D3D10_TEX2DMS_SRV Texture2DMS; + D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray; + D3D10_TEX3D_SRV Texture3D; + D3D10_TEXCUBE_SRV TextureCube; + } ; + } D3D10_SHADER_RESOURCE_VIEW_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0010_v0_0_s_ifspec; + +#ifndef __ID3D10ShaderResourceView_INTERFACE_DEFINED__ +#define __ID3D10ShaderResourceView_INTERFACE_DEFINED__ + +/* interface ID3D10ShaderResourceView */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10ShaderResourceView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C07-342C-4106-A19F-4F2704F689F0") + ID3D10ShaderResourceView : public ID3D10View + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_SHADER_RESOURCE_VIEW_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10ShaderResourceViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10ShaderResourceView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10ShaderResourceView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10ShaderResourceView * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10ShaderResourceView * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10ShaderResourceView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10ShaderResourceView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10ShaderResourceView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D10ShaderResourceView * This, + /* [annotation] */ + _Out_ ID3D10Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D10ShaderResourceView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10ShaderResourceView * This, + /* [annotation] */ + _Out_ D3D10_SHADER_RESOURCE_VIEW_DESC *pDesc); + + END_INTERFACE + } ID3D10ShaderResourceViewVtbl; + + interface ID3D10ShaderResourceView + { + CONST_VTBL struct ID3D10ShaderResourceViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10ShaderResourceView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10ShaderResourceView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10ShaderResourceView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10ShaderResourceView_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10ShaderResourceView_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10ShaderResourceView_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10ShaderResourceView_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10ShaderResourceView_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D10ShaderResourceView_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10ShaderResourceView_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0011 */ +/* [local] */ + +typedef struct D3D10_BUFFER_RTV + { + union + { + UINT FirstElement; + UINT ElementOffset; + } ; + union + { + UINT NumElements; + UINT ElementWidth; + } ; + } D3D10_BUFFER_RTV; + +typedef struct D3D10_TEX1D_RTV + { + UINT MipSlice; + } D3D10_TEX1D_RTV; + +typedef struct D3D10_TEX1D_ARRAY_RTV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D10_TEX1D_ARRAY_RTV; + +typedef struct D3D10_TEX2D_RTV + { + UINT MipSlice; + } D3D10_TEX2D_RTV; + +typedef struct D3D10_TEX2DMS_RTV + { + UINT UnusedField_NothingToDefine; + } D3D10_TEX2DMS_RTV; + +typedef struct D3D10_TEX2D_ARRAY_RTV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D10_TEX2D_ARRAY_RTV; + +typedef struct D3D10_TEX2DMS_ARRAY_RTV + { + UINT FirstArraySlice; + UINT ArraySize; + } D3D10_TEX2DMS_ARRAY_RTV; + +typedef struct D3D10_TEX3D_RTV + { + UINT MipSlice; + UINT FirstWSlice; + UINT WSize; + } D3D10_TEX3D_RTV; + +typedef struct D3D10_RENDER_TARGET_VIEW_DESC + { + DXGI_FORMAT Format; + D3D10_RTV_DIMENSION ViewDimension; + union + { + D3D10_BUFFER_RTV Buffer; + D3D10_TEX1D_RTV Texture1D; + D3D10_TEX1D_ARRAY_RTV Texture1DArray; + D3D10_TEX2D_RTV Texture2D; + D3D10_TEX2D_ARRAY_RTV Texture2DArray; + D3D10_TEX2DMS_RTV Texture2DMS; + D3D10_TEX2DMS_ARRAY_RTV Texture2DMSArray; + D3D10_TEX3D_RTV Texture3D; + } ; + } D3D10_RENDER_TARGET_VIEW_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0011_v0_0_s_ifspec; + +#ifndef __ID3D10RenderTargetView_INTERFACE_DEFINED__ +#define __ID3D10RenderTargetView_INTERFACE_DEFINED__ + +/* interface ID3D10RenderTargetView */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10RenderTargetView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C08-342C-4106-A19F-4F2704F689F0") + ID3D10RenderTargetView : public ID3D10View + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_RENDER_TARGET_VIEW_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10RenderTargetViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10RenderTargetView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10RenderTargetView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10RenderTargetView * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10RenderTargetView * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10RenderTargetView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10RenderTargetView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10RenderTargetView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D10RenderTargetView * This, + /* [annotation] */ + _Out_ ID3D10Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D10RenderTargetView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10RenderTargetView * This, + /* [annotation] */ + _Out_ D3D10_RENDER_TARGET_VIEW_DESC *pDesc); + + END_INTERFACE + } ID3D10RenderTargetViewVtbl; + + interface ID3D10RenderTargetView + { + CONST_VTBL struct ID3D10RenderTargetViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10RenderTargetView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10RenderTargetView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10RenderTargetView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10RenderTargetView_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10RenderTargetView_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10RenderTargetView_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10RenderTargetView_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10RenderTargetView_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D10RenderTargetView_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10RenderTargetView_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0012 */ +/* [local] */ + +typedef struct D3D10_TEX1D_DSV + { + UINT MipSlice; + } D3D10_TEX1D_DSV; + +typedef struct D3D10_TEX1D_ARRAY_DSV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D10_TEX1D_ARRAY_DSV; + +typedef struct D3D10_TEX2D_DSV + { + UINT MipSlice; + } D3D10_TEX2D_DSV; + +typedef struct D3D10_TEX2D_ARRAY_DSV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D10_TEX2D_ARRAY_DSV; + +typedef struct D3D10_TEX2DMS_DSV + { + UINT UnusedField_NothingToDefine; + } D3D10_TEX2DMS_DSV; + +typedef struct D3D10_TEX2DMS_ARRAY_DSV + { + UINT FirstArraySlice; + UINT ArraySize; + } D3D10_TEX2DMS_ARRAY_DSV; + +typedef struct D3D10_DEPTH_STENCIL_VIEW_DESC + { + DXGI_FORMAT Format; + D3D10_DSV_DIMENSION ViewDimension; + union + { + D3D10_TEX1D_DSV Texture1D; + D3D10_TEX1D_ARRAY_DSV Texture1DArray; + D3D10_TEX2D_DSV Texture2D; + D3D10_TEX2D_ARRAY_DSV Texture2DArray; + D3D10_TEX2DMS_DSV Texture2DMS; + D3D10_TEX2DMS_ARRAY_DSV Texture2DMSArray; + } ; + } D3D10_DEPTH_STENCIL_VIEW_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0012_v0_0_s_ifspec; + +#ifndef __ID3D10DepthStencilView_INTERFACE_DEFINED__ +#define __ID3D10DepthStencilView_INTERFACE_DEFINED__ + +/* interface ID3D10DepthStencilView */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10DepthStencilView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C09-342C-4106-A19F-4F2704F689F0") + ID3D10DepthStencilView : public ID3D10View + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_DEPTH_STENCIL_VIEW_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10DepthStencilViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10DepthStencilView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10DepthStencilView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10DepthStencilView * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10DepthStencilView * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10DepthStencilView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10DepthStencilView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10DepthStencilView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D10DepthStencilView * This, + /* [annotation] */ + _Out_ ID3D10Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D10DepthStencilView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10DepthStencilView * This, + /* [annotation] */ + _Out_ D3D10_DEPTH_STENCIL_VIEW_DESC *pDesc); + + END_INTERFACE + } ID3D10DepthStencilViewVtbl; + + interface ID3D10DepthStencilView + { + CONST_VTBL struct ID3D10DepthStencilViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10DepthStencilView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10DepthStencilView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10DepthStencilView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10DepthStencilView_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10DepthStencilView_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10DepthStencilView_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10DepthStencilView_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10DepthStencilView_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D10DepthStencilView_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10DepthStencilView_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D10VertexShader_INTERFACE_DEFINED__ +#define __ID3D10VertexShader_INTERFACE_DEFINED__ + +/* interface ID3D10VertexShader */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10VertexShader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C0A-342C-4106-A19F-4F2704F689F0") + ID3D10VertexShader : public ID3D10DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D10VertexShaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10VertexShader * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10VertexShader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10VertexShader * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10VertexShader * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10VertexShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10VertexShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10VertexShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D10VertexShaderVtbl; + + interface ID3D10VertexShader + { + CONST_VTBL struct ID3D10VertexShaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10VertexShader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10VertexShader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10VertexShader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10VertexShader_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10VertexShader_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10VertexShader_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10VertexShader_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10VertexShader_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D10GeometryShader_INTERFACE_DEFINED__ +#define __ID3D10GeometryShader_INTERFACE_DEFINED__ + +/* interface ID3D10GeometryShader */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10GeometryShader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6316BE88-54CD-4040-AB44-20461BC81F68") + ID3D10GeometryShader : public ID3D10DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D10GeometryShaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10GeometryShader * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10GeometryShader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10GeometryShader * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10GeometryShader * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10GeometryShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10GeometryShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10GeometryShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D10GeometryShaderVtbl; + + interface ID3D10GeometryShader + { + CONST_VTBL struct ID3D10GeometryShaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10GeometryShader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10GeometryShader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10GeometryShader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10GeometryShader_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10GeometryShader_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10GeometryShader_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10GeometryShader_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10GeometryShader_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D10PixelShader_INTERFACE_DEFINED__ +#define __ID3D10PixelShader_INTERFACE_DEFINED__ + +/* interface ID3D10PixelShader */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10PixelShader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4968B601-9D00-4cde-8346-8E7F675819B6") + ID3D10PixelShader : public ID3D10DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D10PixelShaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10PixelShader * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10PixelShader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10PixelShader * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10PixelShader * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10PixelShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10PixelShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10PixelShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D10PixelShaderVtbl; + + interface ID3D10PixelShader + { + CONST_VTBL struct ID3D10PixelShaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10PixelShader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10PixelShader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10PixelShader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10PixelShader_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10PixelShader_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10PixelShader_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10PixelShader_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10PixelShader_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D10InputLayout_INTERFACE_DEFINED__ +#define __ID3D10InputLayout_INTERFACE_DEFINED__ + +/* interface ID3D10InputLayout */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10InputLayout; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C0B-342C-4106-A19F-4F2704F689F0") + ID3D10InputLayout : public ID3D10DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D10InputLayoutVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10InputLayout * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10InputLayout * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10InputLayout * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10InputLayout * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10InputLayout * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10InputLayout * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10InputLayout * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D10InputLayoutVtbl; + + interface ID3D10InputLayout + { + CONST_VTBL struct ID3D10InputLayoutVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10InputLayout_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10InputLayout_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10InputLayout_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10InputLayout_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10InputLayout_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10InputLayout_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10InputLayout_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10InputLayout_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0017 */ +/* [local] */ + +typedef +enum D3D10_FILTER + { + D3D10_FILTER_MIN_MAG_MIP_POINT = 0, + D3D10_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x1, + D3D10_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x4, + D3D10_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x5, + D3D10_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10, + D3D10_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11, + D3D10_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14, + D3D10_FILTER_MIN_MAG_MIP_LINEAR = 0x15, + D3D10_FILTER_ANISOTROPIC = 0x55, + D3D10_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80, + D3D10_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81, + D3D10_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84, + D3D10_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85, + D3D10_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90, + D3D10_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91, + D3D10_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94, + D3D10_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95, + D3D10_FILTER_COMPARISON_ANISOTROPIC = 0xd5, + D3D10_FILTER_TEXT_1BIT = 0x80000000 + } D3D10_FILTER; + +typedef +enum D3D10_FILTER_TYPE + { + D3D10_FILTER_TYPE_POINT = 0, + D3D10_FILTER_TYPE_LINEAR = 1 + } D3D10_FILTER_TYPE; + +#define D3D10_FILTER_TYPE_MASK ( 0x3 ) + +#define D3D10_MIN_FILTER_SHIFT ( 4 ) + +#define D3D10_MAG_FILTER_SHIFT ( 2 ) + +#define D3D10_MIP_FILTER_SHIFT ( 0 ) + +#define D3D10_COMPARISON_FILTERING_BIT ( 0x80 ) + +#define D3D10_ANISOTROPIC_FILTERING_BIT ( 0x40 ) + +#define D3D10_TEXT_1BIT_BIT ( 0x80000000 ) + +#define D3D10_ENCODE_BASIC_FILTER( min, mag, mip, bComparison ) \ + ( ( D3D10_FILTER ) ( \ + ( ( bComparison ) ? D3D10_COMPARISON_FILTERING_BIT : 0 ) | \ + ( ( ( min ) & D3D10_FILTER_TYPE_MASK ) << D3D10_MIN_FILTER_SHIFT ) | \ + ( ( ( mag ) & D3D10_FILTER_TYPE_MASK ) << D3D10_MAG_FILTER_SHIFT ) | \ + ( ( ( mip ) & D3D10_FILTER_TYPE_MASK ) << D3D10_MIP_FILTER_SHIFT ) ) ) +#define D3D10_ENCODE_ANISOTROPIC_FILTER( bComparison ) \ + ( ( D3D10_FILTER ) ( \ + D3D10_ANISOTROPIC_FILTERING_BIT | \ + D3D10_ENCODE_BASIC_FILTER( D3D10_FILTER_TYPE_LINEAR, \ + D3D10_FILTER_TYPE_LINEAR, \ + D3D10_FILTER_TYPE_LINEAR, \ + bComparison ) ) ) +#define D3D10_DECODE_MIN_FILTER( d3d10Filter ) \ + ( ( D3D10_FILTER_TYPE ) \ + ( ( ( d3d10Filter ) >> D3D10_MIN_FILTER_SHIFT ) & D3D10_FILTER_TYPE_MASK ) ) +#define D3D10_DECODE_MAG_FILTER( d3d10Filter ) \ + ( ( D3D10_FILTER_TYPE ) \ + ( ( ( d3d10Filter ) >> D3D10_MAG_FILTER_SHIFT ) & D3D10_FILTER_TYPE_MASK ) ) +#define D3D10_DECODE_MIP_FILTER( d3d10Filter ) \ + ( ( D3D10_FILTER_TYPE ) \ + ( ( ( d3d10Filter ) >> D3D10_MIP_FILTER_SHIFT ) & D3D10_FILTER_TYPE_MASK ) ) +#define D3D10_DECODE_IS_COMPARISON_FILTER( d3d10Filter ) \ + ( ( d3d10Filter ) & D3D10_COMPARISON_FILTERING_BIT ) +#define D3D10_DECODE_IS_ANISOTROPIC_FILTER( d3d10Filter ) \ + ( ( ( d3d10Filter ) & D3D10_ANISOTROPIC_FILTERING_BIT ) && \ + ( D3D10_FILTER_TYPE_LINEAR == D3D10_DECODE_MIN_FILTER( d3d10Filter ) ) && \ + ( D3D10_FILTER_TYPE_LINEAR == D3D10_DECODE_MAG_FILTER( d3d10Filter ) ) && \ + ( D3D10_FILTER_TYPE_LINEAR == D3D10_DECODE_MIP_FILTER( d3d10Filter ) ) ) +#define D3D10_DECODE_IS_TEXT_1BIT_FILTER( d3d10Filter ) \ + ( ( d3d10Filter ) == D3D10_TEXT_1BIT_BIT ) +typedef +enum D3D10_TEXTURE_ADDRESS_MODE + { + D3D10_TEXTURE_ADDRESS_WRAP = 1, + D3D10_TEXTURE_ADDRESS_MIRROR = 2, + D3D10_TEXTURE_ADDRESS_CLAMP = 3, + D3D10_TEXTURE_ADDRESS_BORDER = 4, + D3D10_TEXTURE_ADDRESS_MIRROR_ONCE = 5 + } D3D10_TEXTURE_ADDRESS_MODE; + +typedef struct D3D10_SAMPLER_DESC + { + D3D10_FILTER Filter; + D3D10_TEXTURE_ADDRESS_MODE AddressU; + D3D10_TEXTURE_ADDRESS_MODE AddressV; + D3D10_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D10_COMPARISON_FUNC ComparisonFunc; + FLOAT BorderColor[ 4 ]; + FLOAT MinLOD; + FLOAT MaxLOD; + } D3D10_SAMPLER_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0017_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0017_v0_0_s_ifspec; + +#ifndef __ID3D10SamplerState_INTERFACE_DEFINED__ +#define __ID3D10SamplerState_INTERFACE_DEFINED__ + +/* interface ID3D10SamplerState */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10SamplerState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C0C-342C-4106-A19F-4F2704F689F0") + ID3D10SamplerState : public ID3D10DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_SAMPLER_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10SamplerStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10SamplerState * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10SamplerState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10SamplerState * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10SamplerState * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10SamplerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10SamplerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10SamplerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10SamplerState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10SamplerState * This, + /* [annotation] */ + _Out_ D3D10_SAMPLER_DESC *pDesc); + + END_INTERFACE + } ID3D10SamplerStateVtbl; + + interface ID3D10SamplerState + { + CONST_VTBL struct ID3D10SamplerStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10SamplerState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10SamplerState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10SamplerState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10SamplerState_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10SamplerState_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10SamplerState_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10SamplerState_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10SamplerState_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10SamplerState_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0018 */ +/* [local] */ + +typedef +enum D3D10_FORMAT_SUPPORT + { + D3D10_FORMAT_SUPPORT_BUFFER = 0x1, + D3D10_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x2, + D3D10_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x4, + D3D10_FORMAT_SUPPORT_SO_BUFFER = 0x8, + D3D10_FORMAT_SUPPORT_TEXTURE1D = 0x10, + D3D10_FORMAT_SUPPORT_TEXTURE2D = 0x20, + D3D10_FORMAT_SUPPORT_TEXTURE3D = 0x40, + D3D10_FORMAT_SUPPORT_TEXTURECUBE = 0x80, + D3D10_FORMAT_SUPPORT_SHADER_LOAD = 0x100, + D3D10_FORMAT_SUPPORT_SHADER_SAMPLE = 0x200, + D3D10_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x400, + D3D10_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x800, + D3D10_FORMAT_SUPPORT_MIP = 0x1000, + D3D10_FORMAT_SUPPORT_MIP_AUTOGEN = 0x2000, + D3D10_FORMAT_SUPPORT_RENDER_TARGET = 0x4000, + D3D10_FORMAT_SUPPORT_BLENDABLE = 0x8000, + D3D10_FORMAT_SUPPORT_DEPTH_STENCIL = 0x10000, + D3D10_FORMAT_SUPPORT_CPU_LOCKABLE = 0x20000, + D3D10_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x40000, + D3D10_FORMAT_SUPPORT_DISPLAY = 0x80000, + D3D10_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x100000, + D3D10_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x200000, + D3D10_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x400000, + D3D10_FORMAT_SUPPORT_SHADER_GATHER = 0x800000, + D3D10_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x1000000 + } D3D10_FORMAT_SUPPORT; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0018_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0018_v0_0_s_ifspec; + +#ifndef __ID3D10Asynchronous_INTERFACE_DEFINED__ +#define __ID3D10Asynchronous_INTERFACE_DEFINED__ + +/* interface ID3D10Asynchronous */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Asynchronous; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C0D-342C-4106-A19F-4F2704F689F0") + ID3D10Asynchronous : public ID3D10DeviceChild + { + public: + virtual void STDMETHODCALLTYPE Begin( void) = 0; + + virtual void STDMETHODCALLTYPE End( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetData( + /* [annotation] */ + _Out_writes_bytes_opt_(DataSize) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags) = 0; + + virtual UINT STDMETHODCALLTYPE GetDataSize( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10AsynchronousVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Asynchronous * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Asynchronous * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Asynchronous * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10Asynchronous * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Asynchronous * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Asynchronous * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Asynchronous * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, Begin) + void ( STDMETHODCALLTYPE *Begin )( + ID3D10Asynchronous * This); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, End) + void ( STDMETHODCALLTYPE *End )( + ID3D10Asynchronous * This); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + ID3D10Asynchronous * This, + /* [annotation] */ + _Out_writes_bytes_opt_(DataSize) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, GetDataSize) + UINT ( STDMETHODCALLTYPE *GetDataSize )( + ID3D10Asynchronous * This); + + END_INTERFACE + } ID3D10AsynchronousVtbl; + + interface ID3D10Asynchronous + { + CONST_VTBL struct ID3D10AsynchronousVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Asynchronous_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Asynchronous_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Asynchronous_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Asynchronous_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10Asynchronous_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Asynchronous_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Asynchronous_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10Asynchronous_Begin(This) \ + ( (This)->lpVtbl -> Begin(This) ) + +#define ID3D10Asynchronous_End(This) \ + ( (This)->lpVtbl -> End(This) ) + +#define ID3D10Asynchronous_GetData(This,pData,DataSize,GetDataFlags) \ + ( (This)->lpVtbl -> GetData(This,pData,DataSize,GetDataFlags) ) + +#define ID3D10Asynchronous_GetDataSize(This) \ + ( (This)->lpVtbl -> GetDataSize(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Asynchronous_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0019 */ +/* [local] */ + +typedef +enum D3D10_ASYNC_GETDATA_FLAG + { + D3D10_ASYNC_GETDATA_DONOTFLUSH = 0x1 + } D3D10_ASYNC_GETDATA_FLAG; + +typedef +enum D3D10_QUERY + { + D3D10_QUERY_EVENT = 0, + D3D10_QUERY_OCCLUSION = ( D3D10_QUERY_EVENT + 1 ) , + D3D10_QUERY_TIMESTAMP = ( D3D10_QUERY_OCCLUSION + 1 ) , + D3D10_QUERY_TIMESTAMP_DISJOINT = ( D3D10_QUERY_TIMESTAMP + 1 ) , + D3D10_QUERY_PIPELINE_STATISTICS = ( D3D10_QUERY_TIMESTAMP_DISJOINT + 1 ) , + D3D10_QUERY_OCCLUSION_PREDICATE = ( D3D10_QUERY_PIPELINE_STATISTICS + 1 ) , + D3D10_QUERY_SO_STATISTICS = ( D3D10_QUERY_OCCLUSION_PREDICATE + 1 ) , + D3D10_QUERY_SO_OVERFLOW_PREDICATE = ( D3D10_QUERY_SO_STATISTICS + 1 ) + } D3D10_QUERY; + +typedef +enum D3D10_QUERY_MISC_FLAG + { + D3D10_QUERY_MISC_PREDICATEHINT = 0x1 + } D3D10_QUERY_MISC_FLAG; + +typedef struct D3D10_QUERY_DESC + { + D3D10_QUERY Query; + UINT MiscFlags; + } D3D10_QUERY_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0019_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0019_v0_0_s_ifspec; + +#ifndef __ID3D10Query_INTERFACE_DEFINED__ +#define __ID3D10Query_INTERFACE_DEFINED__ + +/* interface ID3D10Query */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Query; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C0E-342C-4106-A19F-4F2704F689F0") + ID3D10Query : public ID3D10Asynchronous + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_QUERY_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10QueryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Query * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Query * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Query * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10Query * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Query * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Query * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Query * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, Begin) + void ( STDMETHODCALLTYPE *Begin )( + ID3D10Query * This); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, End) + void ( STDMETHODCALLTYPE *End )( + ID3D10Query * This); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + ID3D10Query * This, + /* [annotation] */ + _Out_writes_bytes_opt_(DataSize) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, GetDataSize) + UINT ( STDMETHODCALLTYPE *GetDataSize )( + ID3D10Query * This); + + DECLSPEC_XFGVIRT(ID3D10Query, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10Query * This, + /* [annotation] */ + _Out_ D3D10_QUERY_DESC *pDesc); + + END_INTERFACE + } ID3D10QueryVtbl; + + interface ID3D10Query + { + CONST_VTBL struct ID3D10QueryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Query_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Query_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Query_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Query_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10Query_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Query_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Query_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10Query_Begin(This) \ + ( (This)->lpVtbl -> Begin(This) ) + +#define ID3D10Query_End(This) \ + ( (This)->lpVtbl -> End(This) ) + +#define ID3D10Query_GetData(This,pData,DataSize,GetDataFlags) \ + ( (This)->lpVtbl -> GetData(This,pData,DataSize,GetDataFlags) ) + +#define ID3D10Query_GetDataSize(This) \ + ( (This)->lpVtbl -> GetDataSize(This) ) + + +#define ID3D10Query_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Query_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D10Predicate_INTERFACE_DEFINED__ +#define __ID3D10Predicate_INTERFACE_DEFINED__ + +/* interface ID3D10Predicate */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Predicate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C10-342C-4106-A19F-4F2704F689F0") + ID3D10Predicate : public ID3D10Query + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D10PredicateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Predicate * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Predicate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Predicate * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10Predicate * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Predicate * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Predicate * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Predicate * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, Begin) + void ( STDMETHODCALLTYPE *Begin )( + ID3D10Predicate * This); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, End) + void ( STDMETHODCALLTYPE *End )( + ID3D10Predicate * This); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + ID3D10Predicate * This, + /* [annotation] */ + _Out_writes_bytes_opt_(DataSize) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, GetDataSize) + UINT ( STDMETHODCALLTYPE *GetDataSize )( + ID3D10Predicate * This); + + DECLSPEC_XFGVIRT(ID3D10Query, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10Predicate * This, + /* [annotation] */ + _Out_ D3D10_QUERY_DESC *pDesc); + + END_INTERFACE + } ID3D10PredicateVtbl; + + interface ID3D10Predicate + { + CONST_VTBL struct ID3D10PredicateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Predicate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Predicate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Predicate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Predicate_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10Predicate_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Predicate_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Predicate_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10Predicate_Begin(This) \ + ( (This)->lpVtbl -> Begin(This) ) + +#define ID3D10Predicate_End(This) \ + ( (This)->lpVtbl -> End(This) ) + +#define ID3D10Predicate_GetData(This,pData,DataSize,GetDataFlags) \ + ( (This)->lpVtbl -> GetData(This,pData,DataSize,GetDataFlags) ) + +#define ID3D10Predicate_GetDataSize(This) \ + ( (This)->lpVtbl -> GetDataSize(This) ) + + +#define ID3D10Predicate_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Predicate_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0021 */ +/* [local] */ + +typedef struct D3D10_QUERY_DATA_TIMESTAMP_DISJOINT + { + UINT64 Frequency; + BOOL Disjoint; + } D3D10_QUERY_DATA_TIMESTAMP_DISJOINT; + +typedef struct D3D10_QUERY_DATA_PIPELINE_STATISTICS + { + UINT64 IAVertices; + UINT64 IAPrimitives; + UINT64 VSInvocations; + UINT64 GSInvocations; + UINT64 GSPrimitives; + UINT64 CInvocations; + UINT64 CPrimitives; + UINT64 PSInvocations; + } D3D10_QUERY_DATA_PIPELINE_STATISTICS; + +typedef struct D3D10_QUERY_DATA_SO_STATISTICS + { + UINT64 NumPrimitivesWritten; + UINT64 PrimitivesStorageNeeded; + } D3D10_QUERY_DATA_SO_STATISTICS; + +typedef +enum D3D10_COUNTER + { + D3D10_COUNTER_GPU_IDLE = 0, + D3D10_COUNTER_VERTEX_PROCESSING = ( D3D10_COUNTER_GPU_IDLE + 1 ) , + D3D10_COUNTER_GEOMETRY_PROCESSING = ( D3D10_COUNTER_VERTEX_PROCESSING + 1 ) , + D3D10_COUNTER_PIXEL_PROCESSING = ( D3D10_COUNTER_GEOMETRY_PROCESSING + 1 ) , + D3D10_COUNTER_OTHER_GPU_PROCESSING = ( D3D10_COUNTER_PIXEL_PROCESSING + 1 ) , + D3D10_COUNTER_HOST_ADAPTER_BANDWIDTH_UTILIZATION = ( D3D10_COUNTER_OTHER_GPU_PROCESSING + 1 ) , + D3D10_COUNTER_LOCAL_VIDMEM_BANDWIDTH_UTILIZATION = ( D3D10_COUNTER_HOST_ADAPTER_BANDWIDTH_UTILIZATION + 1 ) , + D3D10_COUNTER_VERTEX_THROUGHPUT_UTILIZATION = ( D3D10_COUNTER_LOCAL_VIDMEM_BANDWIDTH_UTILIZATION + 1 ) , + D3D10_COUNTER_TRIANGLE_SETUP_THROUGHPUT_UTILIZATION = ( D3D10_COUNTER_VERTEX_THROUGHPUT_UTILIZATION + 1 ) , + D3D10_COUNTER_FILLRATE_THROUGHPUT_UTILIZATION = ( D3D10_COUNTER_TRIANGLE_SETUP_THROUGHPUT_UTILIZATION + 1 ) , + D3D10_COUNTER_VS_MEMORY_LIMITED = ( D3D10_COUNTER_FILLRATE_THROUGHPUT_UTILIZATION + 1 ) , + D3D10_COUNTER_VS_COMPUTATION_LIMITED = ( D3D10_COUNTER_VS_MEMORY_LIMITED + 1 ) , + D3D10_COUNTER_GS_MEMORY_LIMITED = ( D3D10_COUNTER_VS_COMPUTATION_LIMITED + 1 ) , + D3D10_COUNTER_GS_COMPUTATION_LIMITED = ( D3D10_COUNTER_GS_MEMORY_LIMITED + 1 ) , + D3D10_COUNTER_PS_MEMORY_LIMITED = ( D3D10_COUNTER_GS_COMPUTATION_LIMITED + 1 ) , + D3D10_COUNTER_PS_COMPUTATION_LIMITED = ( D3D10_COUNTER_PS_MEMORY_LIMITED + 1 ) , + D3D10_COUNTER_POST_TRANSFORM_CACHE_HIT_RATE = ( D3D10_COUNTER_PS_COMPUTATION_LIMITED + 1 ) , + D3D10_COUNTER_TEXTURE_CACHE_HIT_RATE = ( D3D10_COUNTER_POST_TRANSFORM_CACHE_HIT_RATE + 1 ) , + D3D10_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000 + } D3D10_COUNTER; + +typedef +enum D3D10_COUNTER_TYPE + { + D3D10_COUNTER_TYPE_FLOAT32 = 0, + D3D10_COUNTER_TYPE_UINT16 = ( D3D10_COUNTER_TYPE_FLOAT32 + 1 ) , + D3D10_COUNTER_TYPE_UINT32 = ( D3D10_COUNTER_TYPE_UINT16 + 1 ) , + D3D10_COUNTER_TYPE_UINT64 = ( D3D10_COUNTER_TYPE_UINT32 + 1 ) + } D3D10_COUNTER_TYPE; + +typedef struct D3D10_COUNTER_DESC + { + D3D10_COUNTER Counter; + UINT MiscFlags; + } D3D10_COUNTER_DESC; + +typedef struct D3D10_COUNTER_INFO + { + D3D10_COUNTER LastDeviceDependentCounter; + UINT NumSimultaneousCounters; + UINT8 NumDetectableParallelUnits; + } D3D10_COUNTER_INFO; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0021_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0021_v0_0_s_ifspec; + +#ifndef __ID3D10Counter_INTERFACE_DEFINED__ +#define __ID3D10Counter_INTERFACE_DEFINED__ + +/* interface ID3D10Counter */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Counter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C11-342C-4106-A19F-4F2704F689F0") + ID3D10Counter : public ID3D10Asynchronous + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D10_COUNTER_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10CounterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Counter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Counter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Counter * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10Counter * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Counter * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Counter * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Counter * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, Begin) + void ( STDMETHODCALLTYPE *Begin )( + ID3D10Counter * This); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, End) + void ( STDMETHODCALLTYPE *End )( + ID3D10Counter * This); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + ID3D10Counter * This, + /* [annotation] */ + _Out_writes_bytes_opt_(DataSize) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags); + + DECLSPEC_XFGVIRT(ID3D10Asynchronous, GetDataSize) + UINT ( STDMETHODCALLTYPE *GetDataSize )( + ID3D10Counter * This); + + DECLSPEC_XFGVIRT(ID3D10Counter, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10Counter * This, + /* [annotation] */ + _Out_ D3D10_COUNTER_DESC *pDesc); + + END_INTERFACE + } ID3D10CounterVtbl; + + interface ID3D10Counter + { + CONST_VTBL struct ID3D10CounterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Counter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Counter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Counter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Counter_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10Counter_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Counter_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Counter_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10Counter_Begin(This) \ + ( (This)->lpVtbl -> Begin(This) ) + +#define ID3D10Counter_End(This) \ + ( (This)->lpVtbl -> End(This) ) + +#define ID3D10Counter_GetData(This,pData,DataSize,GetDataFlags) \ + ( (This)->lpVtbl -> GetData(This,pData,DataSize,GetDataFlags) ) + +#define ID3D10Counter_GetDataSize(This) \ + ( (This)->lpVtbl -> GetDataSize(This) ) + + +#define ID3D10Counter_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Counter_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D10Device_INTERFACE_DEFINED__ +#define __ID3D10Device_INTERFACE_DEFINED__ + +/* interface ID3D10Device */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Device; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C0F-342C-4106-A19F-4F2704F689F0") + ID3D10Device : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE VSSetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE PSSetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10ShaderResourceView *const *ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE PSSetShader( + /* [annotation] */ + _In_opt_ ID3D10PixelShader *pPixelShader) = 0; + + virtual void STDMETHODCALLTYPE PSSetSamplers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D10SamplerState *const *ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE VSSetShader( + /* [annotation] */ + _In_opt_ ID3D10VertexShader *pVertexShader) = 0; + + virtual void STDMETHODCALLTYPE DrawIndexed( + /* [annotation] */ + _In_ UINT IndexCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation) = 0; + + virtual void STDMETHODCALLTYPE Draw( + /* [annotation] */ + _In_ UINT VertexCount, + /* [annotation] */ + _In_ UINT StartVertexLocation) = 0; + + virtual void STDMETHODCALLTYPE PSSetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE IASetInputLayout( + /* [annotation] */ + _In_opt_ ID3D10InputLayout *pInputLayout) = 0; + + virtual void STDMETHODCALLTYPE IASetVertexBuffers( + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppVertexBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pStrides, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets) = 0; + + virtual void STDMETHODCALLTYPE IASetIndexBuffer( + /* [annotation] */ + _In_opt_ ID3D10Buffer *pIndexBuffer, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT Offset) = 0; + + virtual void STDMETHODCALLTYPE DrawIndexedInstanced( + /* [annotation] */ + _In_ UINT IndexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation) = 0; + + virtual void STDMETHODCALLTYPE DrawInstanced( + /* [annotation] */ + _In_ UINT VertexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation) = 0; + + virtual void STDMETHODCALLTYPE GSSetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE GSSetShader( + /* [annotation] */ + _In_opt_ ID3D10GeometryShader *pShader) = 0; + + virtual void STDMETHODCALLTYPE IASetPrimitiveTopology( + /* [annotation] */ + _In_ D3D10_PRIMITIVE_TOPOLOGY Topology) = 0; + + virtual void STDMETHODCALLTYPE VSSetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10ShaderResourceView *const *ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE VSSetSamplers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D10SamplerState *const *ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE SetPredication( + /* [annotation] */ + _In_opt_ ID3D10Predicate *pPredicate, + /* [annotation] */ + _In_ BOOL PredicateValue) = 0; + + virtual void STDMETHODCALLTYPE GSSetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10ShaderResourceView *const *ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE GSSetSamplers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D10SamplerState *const *ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE OMSetRenderTargets( + /* [annotation] */ + _In_range_( 0, D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D10DepthStencilView *pDepthStencilView) = 0; + + virtual void STDMETHODCALLTYPE OMSetBlendState( + /* [annotation] */ + _In_opt_ ID3D10BlendState *pBlendState, + /* [annotation] */ + _In_ const FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _In_ UINT SampleMask) = 0; + + virtual void STDMETHODCALLTYPE OMSetDepthStencilState( + /* [annotation] */ + _In_opt_ ID3D10DepthStencilState *pDepthStencilState, + /* [annotation] */ + _In_ UINT StencilRef) = 0; + + virtual void STDMETHODCALLTYPE SOSetTargets( + /* [annotation] */ + _In_range_( 0, D3D10_SO_BUFFER_SLOT_COUNT) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppSOTargets, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets) = 0; + + virtual void STDMETHODCALLTYPE DrawAuto( void) = 0; + + virtual void STDMETHODCALLTYPE RSSetState( + /* [annotation] */ + _In_opt_ ID3D10RasterizerState *pRasterizerState) = 0; + + virtual void STDMETHODCALLTYPE RSSetViewports( + /* [annotation] */ + _In_range_(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + /* [annotation] */ + _In_reads_opt_(NumViewports) const D3D10_VIEWPORT *pViewports) = 0; + + virtual void STDMETHODCALLTYPE RSSetScissorRects( + /* [annotation] */ + _In_range_(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D10_RECT *pRects) = 0; + + virtual void STDMETHODCALLTYPE CopySubresourceRegion( + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D10Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D10_BOX *pSrcBox) = 0; + + virtual void STDMETHODCALLTYPE CopyResource( + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ ID3D10Resource *pSrcResource) = 0; + + virtual void STDMETHODCALLTYPE UpdateSubresource( + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D10_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch) = 0; + + virtual void STDMETHODCALLTYPE ClearRenderTargetView( + /* [annotation] */ + _In_ ID3D10RenderTargetView *pRenderTargetView, + /* [annotation] */ + _In_ const FLOAT ColorRGBA[ 4 ]) = 0; + + virtual void STDMETHODCALLTYPE ClearDepthStencilView( + /* [annotation] */ + _In_ ID3D10DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_ UINT ClearFlags, + /* [annotation] */ + _In_ FLOAT Depth, + /* [annotation] */ + _In_ UINT8 Stencil) = 0; + + virtual void STDMETHODCALLTYPE GenerateMips( + /* [annotation] */ + _In_ ID3D10ShaderResourceView *pShaderResourceView) = 0; + + virtual void STDMETHODCALLTYPE ResolveSubresource( + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ ID3D10Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_ DXGI_FORMAT Format) = 0; + + virtual void STDMETHODCALLTYPE VSGetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE PSGetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10ShaderResourceView **ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE PSGetShader( + /* [annotation] */ + _Out_ ID3D10PixelShader **ppPixelShader) = 0; + + virtual void STDMETHODCALLTYPE PSGetSamplers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D10SamplerState **ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE VSGetShader( + /* [annotation] */ + _Out_ ID3D10VertexShader **ppVertexShader) = 0; + + virtual void STDMETHODCALLTYPE PSGetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE IAGetInputLayout( + /* [annotation] */ + _Out_ ID3D10InputLayout **ppInputLayout) = 0; + + virtual void STDMETHODCALLTYPE IAGetVertexBuffers( + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppVertexBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pStrides, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets) = 0; + + virtual void STDMETHODCALLTYPE IAGetIndexBuffer( + /* [annotation] */ + _Out_opt_ ID3D10Buffer **pIndexBuffer, + /* [annotation] */ + _Out_opt_ DXGI_FORMAT *Format, + /* [annotation] */ + _Out_opt_ UINT *Offset) = 0; + + virtual void STDMETHODCALLTYPE GSGetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE GSGetShader( + /* [annotation] */ + _Out_ ID3D10GeometryShader **ppGeometryShader) = 0; + + virtual void STDMETHODCALLTYPE IAGetPrimitiveTopology( + /* [annotation] */ + _Out_ D3D10_PRIMITIVE_TOPOLOGY *pTopology) = 0; + + virtual void STDMETHODCALLTYPE VSGetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10ShaderResourceView **ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE VSGetSamplers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D10SamplerState **ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE GetPredication( + /* [annotation] */ + _Out_opt_ ID3D10Predicate **ppPredicate, + /* [annotation] */ + _Out_opt_ BOOL *pPredicateValue) = 0; + + virtual void STDMETHODCALLTYPE GSGetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10ShaderResourceView **ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE GSGetSamplers( + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D10SamplerState **ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE OMGetRenderTargets( + /* [annotation] */ + _In_range_( 0, D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilView **ppDepthStencilView) = 0; + + virtual void STDMETHODCALLTYPE OMGetBlendState( + /* [annotation] */ + _Out_opt_ ID3D10BlendState **ppBlendState, + /* [annotation] */ + _Out_opt_ FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _Out_opt_ UINT *pSampleMask) = 0; + + virtual void STDMETHODCALLTYPE OMGetDepthStencilState( + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilState **ppDepthStencilState, + /* [annotation] */ + _Out_opt_ UINT *pStencilRef) = 0; + + virtual void STDMETHODCALLTYPE SOGetTargets( + /* [annotation] */ + _In_range_( 0, D3D10_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppSOTargets, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets) = 0; + + virtual void STDMETHODCALLTYPE RSGetState( + /* [annotation] */ + _Out_ ID3D10RasterizerState **ppRasterizerState) = 0; + + virtual void STDMETHODCALLTYPE RSGetViewports( + /* [annotation] */ + _Inout_ /*_range(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *NumViewports, + /* [annotation] */ + _Out_writes_opt_(*NumViewports) D3D10_VIEWPORT *pViewports) = 0; + + virtual void STDMETHODCALLTYPE RSGetScissorRects( + /* [annotation] */ + _Inout_ /*_range(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *NumRects, + /* [annotation] */ + _Out_writes_opt_(*NumRects) D3D10_RECT *pRects) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDeviceRemovedReason( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetExceptionMode( + UINT RaiseFlags) = 0; + + virtual UINT STDMETHODCALLTYPE GetExceptionMode( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateData( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateData( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateDataInterface( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData) = 0; + + virtual void STDMETHODCALLTYPE ClearState( void) = 0; + + virtual void STDMETHODCALLTYPE Flush( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateBuffer( + /* [annotation] */ + _In_ const D3D10_BUFFER_DESC *pDesc, + /* [annotation] */ + _In_opt_ const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_opt_ ID3D10Buffer **ppBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateTexture1D( + /* [annotation] */ + _In_ const D3D10_TEXTURE1D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_ ID3D10Texture1D **ppTexture1D) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateTexture2D( + /* [annotation] */ + _In_ const D3D10_TEXTURE2D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_ ID3D10Texture2D **ppTexture2D) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateTexture3D( + /* [annotation] */ + _In_ const D3D10_TEXTURE3D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_ ID3D10Texture3D **ppTexture3D) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateShaderResourceView( + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_SHADER_RESOURCE_VIEW_DESC *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10ShaderResourceView **ppSRView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRenderTargetView( + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_RENDER_TARGET_VIEW_DESC *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10RenderTargetView **ppRTView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDepthStencilView( + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_DEPTH_STENCIL_VIEW_DESC *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilView **ppDepthStencilView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateInputLayout( + /* [annotation] */ + _In_reads_(NumElements) const D3D10_INPUT_ELEMENT_DESC *pInputElementDescs, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10InputLayout **ppInputLayout) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVertexShader( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10VertexShader **ppVertexShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateGeometryShader( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10GeometryShader **ppGeometryShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateGeometryShaderWithStreamOutput( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_reads_opt_(NumEntries) const D3D10_SO_DECLARATION_ENTRY *pSODeclaration, + /* [annotation] */ + _In_range_( 0, D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT ) UINT NumEntries, + /* [annotation] */ + _In_ UINT OutputStreamStride, + /* [annotation] */ + _Out_opt_ ID3D10GeometryShader **ppGeometryShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePixelShader( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10PixelShader **ppPixelShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateBlendState( + /* [annotation] */ + _In_ const D3D10_BLEND_DESC *pBlendStateDesc, + /* [annotation] */ + _Out_opt_ ID3D10BlendState **ppBlendState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDepthStencilState( + /* [annotation] */ + _In_ const D3D10_DEPTH_STENCIL_DESC *pDepthStencilDesc, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilState **ppDepthStencilState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRasterizerState( + /* [annotation] */ + _In_ const D3D10_RASTERIZER_DESC *pRasterizerDesc, + /* [annotation] */ + _Out_opt_ ID3D10RasterizerState **ppRasterizerState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSamplerState( + /* [annotation] */ + _In_ const D3D10_SAMPLER_DESC *pSamplerDesc, + /* [annotation] */ + _Out_opt_ ID3D10SamplerState **ppSamplerState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateQuery( + /* [annotation] */ + _In_ const D3D10_QUERY_DESC *pQueryDesc, + /* [annotation] */ + _Out_opt_ ID3D10Query **ppQuery) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePredicate( + /* [annotation] */ + _In_ const D3D10_QUERY_DESC *pPredicateDesc, + /* [annotation] */ + _Out_opt_ ID3D10Predicate **ppPredicate) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateCounter( + /* [annotation] */ + _In_ const D3D10_COUNTER_DESC *pCounterDesc, + /* [annotation] */ + _Out_opt_ ID3D10Counter **ppCounter) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckFormatSupport( + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFormatSupport) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckMultisampleQualityLevels( + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels) = 0; + + virtual void STDMETHODCALLTYPE CheckCounterInfo( + /* [annotation] */ + _Out_ D3D10_COUNTER_INFO *pCounterInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckCounter( + /* [annotation] */ + _In_ const D3D10_COUNTER_DESC *pDesc, + /* [annotation] */ + _Out_ D3D10_COUNTER_TYPE *pType, + /* [annotation] */ + _Out_ UINT *pActiveCounters, + /* [annotation] */ + _Out_writes_opt_(*pNameLength) LPSTR szName, + /* [annotation] */ + _Inout_opt_ UINT *pNameLength, + /* [annotation] */ + _Out_writes_opt_(*pUnitsLength) LPSTR szUnits, + /* [annotation] */ + _Inout_opt_ UINT *pUnitsLength, + /* [annotation] */ + _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription, + /* [annotation] */ + _Inout_opt_ UINT *pDescriptionLength) = 0; + + virtual UINT STDMETHODCALLTYPE GetCreationFlags( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenSharedResource( + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _Out_opt_ void **ppResource) = 0; + + virtual void STDMETHODCALLTYPE SetTextFilterSize( + /* [annotation] */ + _In_ UINT Width, + /* [annotation] */ + _In_ UINT Height) = 0; + + virtual void STDMETHODCALLTYPE GetTextFilterSize( + /* [annotation] */ + _Out_opt_ UINT *pWidth, + /* [annotation] */ + _Out_opt_ UINT *pHeight) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10DeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Device * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Device * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Device * This); + + DECLSPEC_XFGVIRT(ID3D10Device, VSSetConstantBuffers) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, PSSetShaderResources) + void ( STDMETHODCALLTYPE *PSSetShaderResources )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, PSSetShader) + void ( STDMETHODCALLTYPE *PSSetShader )( + ID3D10Device * This, + /* [annotation] */ + _In_opt_ ID3D10PixelShader *pPixelShader); + + DECLSPEC_XFGVIRT(ID3D10Device, PSSetSamplers) + void ( STDMETHODCALLTYPE *PSSetSamplers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D10SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, VSSetShader) + void ( STDMETHODCALLTYPE *VSSetShader )( + ID3D10Device * This, + /* [annotation] */ + _In_opt_ ID3D10VertexShader *pVertexShader); + + DECLSPEC_XFGVIRT(ID3D10Device, DrawIndexed) + void ( STDMETHODCALLTYPE *DrawIndexed )( + ID3D10Device * This, + /* [annotation] */ + _In_ UINT IndexCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation); + + DECLSPEC_XFGVIRT(ID3D10Device, Draw) + void ( STDMETHODCALLTYPE *Draw )( + ID3D10Device * This, + /* [annotation] */ + _In_ UINT VertexCount, + /* [annotation] */ + _In_ UINT StartVertexLocation); + + DECLSPEC_XFGVIRT(ID3D10Device, PSSetConstantBuffers) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, IASetInputLayout) + void ( STDMETHODCALLTYPE *IASetInputLayout )( + ID3D10Device * This, + /* [annotation] */ + _In_opt_ ID3D10InputLayout *pInputLayout); + + DECLSPEC_XFGVIRT(ID3D10Device, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppVertexBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pStrides, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D10Device, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D10Device * This, + /* [annotation] */ + _In_opt_ ID3D10Buffer *pIndexBuffer, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT Offset); + + DECLSPEC_XFGVIRT(ID3D10Device, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D10Device * This, + /* [annotation] */ + _In_ UINT IndexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D10Device, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D10Device * This, + /* [annotation] */ + _In_ UINT VertexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D10Device, GSSetConstantBuffers) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, GSSetShader) + void ( STDMETHODCALLTYPE *GSSetShader )( + ID3D10Device * This, + /* [annotation] */ + _In_opt_ ID3D10GeometryShader *pShader); + + DECLSPEC_XFGVIRT(ID3D10Device, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D10Device * This, + /* [annotation] */ + _In_ D3D10_PRIMITIVE_TOPOLOGY Topology); + + DECLSPEC_XFGVIRT(ID3D10Device, VSSetShaderResources) + void ( STDMETHODCALLTYPE *VSSetShaderResources )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, VSSetSamplers) + void ( STDMETHODCALLTYPE *VSSetSamplers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D10SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D10Device * This, + /* [annotation] */ + _In_opt_ ID3D10Predicate *pPredicate, + /* [annotation] */ + _In_ BOOL PredicateValue); + + DECLSPEC_XFGVIRT(ID3D10Device, GSSetShaderResources) + void ( STDMETHODCALLTYPE *GSSetShaderResources )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, GSSetSamplers) + void ( STDMETHODCALLTYPE *GSSetSamplers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D10SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D10DepthStencilView *pDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D10Device, OMSetBlendState) + void ( STDMETHODCALLTYPE *OMSetBlendState )( + ID3D10Device * This, + /* [annotation] */ + _In_opt_ ID3D10BlendState *pBlendState, + /* [annotation] */ + _In_ const FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _In_ UINT SampleMask); + + DECLSPEC_XFGVIRT(ID3D10Device, OMSetDepthStencilState) + void ( STDMETHODCALLTYPE *OMSetDepthStencilState )( + ID3D10Device * This, + /* [annotation] */ + _In_opt_ ID3D10DepthStencilState *pDepthStencilState, + /* [annotation] */ + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D10Device, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_SO_BUFFER_SLOT_COUNT) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppSOTargets, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D10Device, DrawAuto) + void ( STDMETHODCALLTYPE *DrawAuto )( + ID3D10Device * This); + + DECLSPEC_XFGVIRT(ID3D10Device, RSSetState) + void ( STDMETHODCALLTYPE *RSSetState )( + ID3D10Device * This, + /* [annotation] */ + _In_opt_ ID3D10RasterizerState *pRasterizerState); + + DECLSPEC_XFGVIRT(ID3D10Device, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D10Device * This, + /* [annotation] */ + _In_range_(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + /* [annotation] */ + _In_reads_opt_(NumViewports) const D3D10_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D10Device, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D10Device * This, + /* [annotation] */ + _In_range_(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D10_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D10Device, CopySubresourceRegion) + void ( STDMETHODCALLTYPE *CopySubresourceRegion )( + ID3D10Device * This, + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D10Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D10_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D10Device, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D10Device * This, + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ ID3D10Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D10Device, UpdateSubresource) + void ( STDMETHODCALLTYPE *UpdateSubresource )( + ID3D10Device * This, + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D10_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D10Device, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D10Device * This, + /* [annotation] */ + _In_ ID3D10RenderTargetView *pRenderTargetView, + /* [annotation] */ + _In_ const FLOAT ColorRGBA[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D10Device, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D10Device * This, + /* [annotation] */ + _In_ ID3D10DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_ UINT ClearFlags, + /* [annotation] */ + _In_ FLOAT Depth, + /* [annotation] */ + _In_ UINT8 Stencil); + + DECLSPEC_XFGVIRT(ID3D10Device, GenerateMips) + void ( STDMETHODCALLTYPE *GenerateMips )( + ID3D10Device * This, + /* [annotation] */ + _In_ ID3D10ShaderResourceView *pShaderResourceView); + + DECLSPEC_XFGVIRT(ID3D10Device, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D10Device * This, + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ ID3D10Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D10Device, VSGetConstantBuffers) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, PSGetShaderResources) + void ( STDMETHODCALLTYPE *PSGetShaderResources )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, PSGetShader) + void ( STDMETHODCALLTYPE *PSGetShader )( + ID3D10Device * This, + /* [annotation] */ + _Out_ ID3D10PixelShader **ppPixelShader); + + DECLSPEC_XFGVIRT(ID3D10Device, PSGetSamplers) + void ( STDMETHODCALLTYPE *PSGetSamplers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D10SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, VSGetShader) + void ( STDMETHODCALLTYPE *VSGetShader )( + ID3D10Device * This, + /* [annotation] */ + _Out_ ID3D10VertexShader **ppVertexShader); + + DECLSPEC_XFGVIRT(ID3D10Device, PSGetConstantBuffers) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, IAGetInputLayout) + void ( STDMETHODCALLTYPE *IAGetInputLayout )( + ID3D10Device * This, + /* [annotation] */ + _Out_ ID3D10InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D10Device, IAGetVertexBuffers) + void ( STDMETHODCALLTYPE *IAGetVertexBuffers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppVertexBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pStrides, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D10Device, IAGetIndexBuffer) + void ( STDMETHODCALLTYPE *IAGetIndexBuffer )( + ID3D10Device * This, + /* [annotation] */ + _Out_opt_ ID3D10Buffer **pIndexBuffer, + /* [annotation] */ + _Out_opt_ DXGI_FORMAT *Format, + /* [annotation] */ + _Out_opt_ UINT *Offset); + + DECLSPEC_XFGVIRT(ID3D10Device, GSGetConstantBuffers) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, GSGetShader) + void ( STDMETHODCALLTYPE *GSGetShader )( + ID3D10Device * This, + /* [annotation] */ + _Out_ ID3D10GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D10Device, IAGetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IAGetPrimitiveTopology )( + ID3D10Device * This, + /* [annotation] */ + _Out_ D3D10_PRIMITIVE_TOPOLOGY *pTopology); + + DECLSPEC_XFGVIRT(ID3D10Device, VSGetShaderResources) + void ( STDMETHODCALLTYPE *VSGetShaderResources )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, VSGetSamplers) + void ( STDMETHODCALLTYPE *VSGetSamplers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D10SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, GetPredication) + void ( STDMETHODCALLTYPE *GetPredication )( + ID3D10Device * This, + /* [annotation] */ + _Out_opt_ ID3D10Predicate **ppPredicate, + /* [annotation] */ + _Out_opt_ BOOL *pPredicateValue); + + DECLSPEC_XFGVIRT(ID3D10Device, GSGetShaderResources) + void ( STDMETHODCALLTYPE *GSGetShaderResources )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, GSGetSamplers) + void ( STDMETHODCALLTYPE *GSGetSamplers )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D10SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, OMGetRenderTargets) + void ( STDMETHODCALLTYPE *OMGetRenderTargets )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D10Device, OMGetBlendState) + void ( STDMETHODCALLTYPE *OMGetBlendState )( + ID3D10Device * This, + /* [annotation] */ + _Out_opt_ ID3D10BlendState **ppBlendState, + /* [annotation] */ + _Out_opt_ FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _Out_opt_ UINT *pSampleMask); + + DECLSPEC_XFGVIRT(ID3D10Device, OMGetDepthStencilState) + void ( STDMETHODCALLTYPE *OMGetDepthStencilState )( + ID3D10Device * This, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilState **ppDepthStencilState, + /* [annotation] */ + _Out_opt_ UINT *pStencilRef); + + DECLSPEC_XFGVIRT(ID3D10Device, SOGetTargets) + void ( STDMETHODCALLTYPE *SOGetTargets )( + ID3D10Device * This, + /* [annotation] */ + _In_range_( 0, D3D10_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppSOTargets, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D10Device, RSGetState) + void ( STDMETHODCALLTYPE *RSGetState )( + ID3D10Device * This, + /* [annotation] */ + _Out_ ID3D10RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D10Device, RSGetViewports) + void ( STDMETHODCALLTYPE *RSGetViewports )( + ID3D10Device * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *NumViewports, + /* [annotation] */ + _Out_writes_opt_(*NumViewports) D3D10_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D10Device, RSGetScissorRects) + void ( STDMETHODCALLTYPE *RSGetScissorRects )( + ID3D10Device * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *NumRects, + /* [annotation] */ + _Out_writes_opt_(*NumRects) D3D10_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D10Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D10Device * This); + + DECLSPEC_XFGVIRT(ID3D10Device, SetExceptionMode) + HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )( + ID3D10Device * This, + UINT RaiseFlags); + + DECLSPEC_XFGVIRT(ID3D10Device, GetExceptionMode) + UINT ( STDMETHODCALLTYPE *GetExceptionMode )( + ID3D10Device * This); + + DECLSPEC_XFGVIRT(ID3D10Device, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Device * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10Device, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Device * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10Device, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Device * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Device, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D10Device * This); + + DECLSPEC_XFGVIRT(ID3D10Device, Flush) + void ( STDMETHODCALLTYPE *Flush )( + ID3D10Device * This); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateBuffer) + HRESULT ( STDMETHODCALLTYPE *CreateBuffer )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_BUFFER_DESC *pDesc, + /* [annotation] */ + _In_opt_ const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_opt_ ID3D10Buffer **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateTexture1D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_TEXTURE1D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_ ID3D10Texture1D **ppTexture1D); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateTexture2D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_TEXTURE2D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_ ID3D10Texture2D **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateTexture3D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_TEXTURE3D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_ ID3D10Texture3D **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateShaderResourceView) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D10Device * This, + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_SHADER_RESOURCE_VIEW_DESC *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10ShaderResourceView **ppSRView); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateRenderTargetView) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D10Device * This, + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_RENDER_TARGET_VIEW_DESC *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10RenderTargetView **ppRTView); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateDepthStencilView) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D10Device * This, + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_DEPTH_STENCIL_VIEW_DESC *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateInputLayout) + HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )( + ID3D10Device * This, + /* [annotation] */ + _In_reads_(NumElements) const D3D10_INPUT_ELEMENT_DESC *pInputElementDescs, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateVertexShader) + HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )( + ID3D10Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10VertexShader **ppVertexShader); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateGeometryShader) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )( + ID3D10Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateGeometryShaderWithStreamOutput) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )( + ID3D10Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_reads_opt_(NumEntries) const D3D10_SO_DECLARATION_ENTRY *pSODeclaration, + /* [annotation] */ + _In_range_( 0, D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT ) UINT NumEntries, + /* [annotation] */ + _In_ UINT OutputStreamStride, + /* [annotation] */ + _Out_opt_ ID3D10GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D10Device, CreatePixelShader) + HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )( + ID3D10Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10PixelShader **ppPixelShader); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateBlendState) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_BLEND_DESC *pBlendStateDesc, + /* [annotation] */ + _Out_opt_ ID3D10BlendState **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateDepthStencilState) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_DEPTH_STENCIL_DESC *pDepthStencilDesc, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilState **ppDepthStencilState); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateRasterizerState) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_RASTERIZER_DESC *pRasterizerDesc, + /* [annotation] */ + _Out_opt_ ID3D10RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateSamplerState) + HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_SAMPLER_DESC *pSamplerDesc, + /* [annotation] */ + _Out_opt_ ID3D10SamplerState **ppSamplerState); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateQuery) + HRESULT ( STDMETHODCALLTYPE *CreateQuery )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_QUERY_DESC *pQueryDesc, + /* [annotation] */ + _Out_opt_ ID3D10Query **ppQuery); + + DECLSPEC_XFGVIRT(ID3D10Device, CreatePredicate) + HRESULT ( STDMETHODCALLTYPE *CreatePredicate )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_QUERY_DESC *pPredicateDesc, + /* [annotation] */ + _Out_opt_ ID3D10Predicate **ppPredicate); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateCounter) + HRESULT ( STDMETHODCALLTYPE *CreateCounter )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_COUNTER_DESC *pCounterDesc, + /* [annotation] */ + _Out_opt_ ID3D10Counter **ppCounter); + + DECLSPEC_XFGVIRT(ID3D10Device, CheckFormatSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )( + ID3D10Device * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFormatSupport); + + DECLSPEC_XFGVIRT(ID3D10Device, CheckMultisampleQualityLevels) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )( + ID3D10Device * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D10Device, CheckCounterInfo) + void ( STDMETHODCALLTYPE *CheckCounterInfo )( + ID3D10Device * This, + /* [annotation] */ + _Out_ D3D10_COUNTER_INFO *pCounterInfo); + + DECLSPEC_XFGVIRT(ID3D10Device, CheckCounter) + HRESULT ( STDMETHODCALLTYPE *CheckCounter )( + ID3D10Device * This, + /* [annotation] */ + _In_ const D3D10_COUNTER_DESC *pDesc, + /* [annotation] */ + _Out_ D3D10_COUNTER_TYPE *pType, + /* [annotation] */ + _Out_ UINT *pActiveCounters, + /* [annotation] */ + _Out_writes_opt_(*pNameLength) LPSTR szName, + /* [annotation] */ + _Inout_opt_ UINT *pNameLength, + /* [annotation] */ + _Out_writes_opt_(*pUnitsLength) LPSTR szUnits, + /* [annotation] */ + _Inout_opt_ UINT *pUnitsLength, + /* [annotation] */ + _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription, + /* [annotation] */ + _Inout_opt_ UINT *pDescriptionLength); + + DECLSPEC_XFGVIRT(ID3D10Device, GetCreationFlags) + UINT ( STDMETHODCALLTYPE *GetCreationFlags )( + ID3D10Device * This); + + DECLSPEC_XFGVIRT(ID3D10Device, OpenSharedResource) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )( + ID3D10Device * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _Out_opt_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D10Device, SetTextFilterSize) + void ( STDMETHODCALLTYPE *SetTextFilterSize )( + ID3D10Device * This, + /* [annotation] */ + _In_ UINT Width, + /* [annotation] */ + _In_ UINT Height); + + DECLSPEC_XFGVIRT(ID3D10Device, GetTextFilterSize) + void ( STDMETHODCALLTYPE *GetTextFilterSize )( + ID3D10Device * This, + /* [annotation] */ + _Out_opt_ UINT *pWidth, + /* [annotation] */ + _Out_opt_ UINT *pHeight); + + END_INTERFACE + } ID3D10DeviceVtbl; + + interface ID3D10Device + { + CONST_VTBL struct ID3D10DeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Device_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Device_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Device_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Device_VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device_PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device_PSSetShader(This,pPixelShader) \ + ( (This)->lpVtbl -> PSSetShader(This,pPixelShader) ) + +#define ID3D10Device_PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device_VSSetShader(This,pVertexShader) \ + ( (This)->lpVtbl -> VSSetShader(This,pVertexShader) ) + +#define ID3D10Device_DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) \ + ( (This)->lpVtbl -> DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) ) + +#define ID3D10Device_Draw(This,VertexCount,StartVertexLocation) \ + ( (This)->lpVtbl -> Draw(This,VertexCount,StartVertexLocation) ) + +#define ID3D10Device_PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device_IASetInputLayout(This,pInputLayout) \ + ( (This)->lpVtbl -> IASetInputLayout(This,pInputLayout) ) + +#define ID3D10Device_IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D10Device_IASetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D10Device_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D10Device_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D10Device_GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device_GSSetShader(This,pShader) \ + ( (This)->lpVtbl -> GSSetShader(This,pShader) ) + +#define ID3D10Device_IASetPrimitiveTopology(This,Topology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,Topology) ) + +#define ID3D10Device_VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device_VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device_SetPredication(This,pPredicate,PredicateValue) \ + ( (This)->lpVtbl -> SetPredication(This,pPredicate,PredicateValue) ) + +#define ID3D10Device_GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device_GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device_OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) ) + +#define ID3D10Device_OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) \ + ( (This)->lpVtbl -> OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) ) + +#define ID3D10Device_OMSetDepthStencilState(This,pDepthStencilState,StencilRef) \ + ( (This)->lpVtbl -> OMSetDepthStencilState(This,pDepthStencilState,StencilRef) ) + +#define ID3D10Device_SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) \ + ( (This)->lpVtbl -> SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) ) + +#define ID3D10Device_DrawAuto(This) \ + ( (This)->lpVtbl -> DrawAuto(This) ) + +#define ID3D10Device_RSSetState(This,pRasterizerState) \ + ( (This)->lpVtbl -> RSSetState(This,pRasterizerState) ) + +#define ID3D10Device_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D10Device_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D10Device_CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) ) + +#define ID3D10Device_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D10Device_UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D10Device_ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) ) + +#define ID3D10Device_ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) ) + +#define ID3D10Device_GenerateMips(This,pShaderResourceView) \ + ( (This)->lpVtbl -> GenerateMips(This,pShaderResourceView) ) + +#define ID3D10Device_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D10Device_VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device_PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device_PSGetShader(This,ppPixelShader) \ + ( (This)->lpVtbl -> PSGetShader(This,ppPixelShader) ) + +#define ID3D10Device_PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device_VSGetShader(This,ppVertexShader) \ + ( (This)->lpVtbl -> VSGetShader(This,ppVertexShader) ) + +#define ID3D10Device_PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device_IAGetInputLayout(This,ppInputLayout) \ + ( (This)->lpVtbl -> IAGetInputLayout(This,ppInputLayout) ) + +#define ID3D10Device_IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D10Device_IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D10Device_GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device_GSGetShader(This,ppGeometryShader) \ + ( (This)->lpVtbl -> GSGetShader(This,ppGeometryShader) ) + +#define ID3D10Device_IAGetPrimitiveTopology(This,pTopology) \ + ( (This)->lpVtbl -> IAGetPrimitiveTopology(This,pTopology) ) + +#define ID3D10Device_VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device_VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device_GetPredication(This,ppPredicate,pPredicateValue) \ + ( (This)->lpVtbl -> GetPredication(This,ppPredicate,pPredicateValue) ) + +#define ID3D10Device_GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device_GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device_OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) \ + ( (This)->lpVtbl -> OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) ) + +#define ID3D10Device_OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) \ + ( (This)->lpVtbl -> OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) ) + +#define ID3D10Device_OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) \ + ( (This)->lpVtbl -> OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) ) + +#define ID3D10Device_SOGetTargets(This,NumBuffers,ppSOTargets,pOffsets) \ + ( (This)->lpVtbl -> SOGetTargets(This,NumBuffers,ppSOTargets,pOffsets) ) + +#define ID3D10Device_RSGetState(This,ppRasterizerState) \ + ( (This)->lpVtbl -> RSGetState(This,ppRasterizerState) ) + +#define ID3D10Device_RSGetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSGetViewports(This,NumViewports,pViewports) ) + +#define ID3D10Device_RSGetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSGetScissorRects(This,NumRects,pRects) ) + +#define ID3D10Device_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D10Device_SetExceptionMode(This,RaiseFlags) \ + ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) ) + +#define ID3D10Device_GetExceptionMode(This) \ + ( (This)->lpVtbl -> GetExceptionMode(This) ) + +#define ID3D10Device_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Device_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Device_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D10Device_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D10Device_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + +#define ID3D10Device_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \ + ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) ) + +#define ID3D10Device_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \ + ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) ) + +#define ID3D10Device_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) ) + +#define ID3D10Device_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) ) + +#define ID3D10Device_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) ) + +#define ID3D10Device_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) ) + +#define ID3D10Device_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) ) + +#define ID3D10Device_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \ + ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) ) + +#define ID3D10Device_CreateVertexShader(This,pShaderBytecode,BytecodeLength,ppVertexShader) \ + ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,ppVertexShader) ) + +#define ID3D10Device_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,ppGeometryShader) ) + +#define ID3D10Device_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,OutputStreamStride,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,OutputStreamStride,ppGeometryShader) ) + +#define ID3D10Device_CreatePixelShader(This,pShaderBytecode,BytecodeLength,ppPixelShader) \ + ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,ppPixelShader) ) + +#define ID3D10Device_CreateBlendState(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D10Device_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \ + ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) ) + +#define ID3D10Device_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D10Device_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \ + ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) ) + +#define ID3D10Device_CreateQuery(This,pQueryDesc,ppQuery) \ + ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) ) + +#define ID3D10Device_CreatePredicate(This,pPredicateDesc,ppPredicate) \ + ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) ) + +#define ID3D10Device_CreateCounter(This,pCounterDesc,ppCounter) \ + ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) ) + +#define ID3D10Device_CheckFormatSupport(This,Format,pFormatSupport) \ + ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) ) + +#define ID3D10Device_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) ) + +#define ID3D10Device_CheckCounterInfo(This,pCounterInfo) \ + ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) ) + +#define ID3D10Device_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \ + ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) ) + +#define ID3D10Device_GetCreationFlags(This) \ + ( (This)->lpVtbl -> GetCreationFlags(This) ) + +#define ID3D10Device_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) ) + +#define ID3D10Device_SetTextFilterSize(This,Width,Height) \ + ( (This)->lpVtbl -> SetTextFilterSize(This,Width,Height) ) + +#define ID3D10Device_GetTextFilterSize(This,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetTextFilterSize(This,pWidth,pHeight) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Device_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0023 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0023_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0023_v0_0_s_ifspec; + +#ifndef __ID3D10Multithread_INTERFACE_DEFINED__ +#define __ID3D10Multithread_INTERFACE_DEFINED__ + +/* interface ID3D10Multithread */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Multithread; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4E00-342C-4106-A19F-4F2704F689F0") + ID3D10Multithread : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE Enter( void) = 0; + + virtual void STDMETHODCALLTYPE Leave( void) = 0; + + virtual BOOL STDMETHODCALLTYPE SetMultithreadProtected( + /* [annotation] */ + _In_ BOOL bMTProtect) = 0; + + virtual BOOL STDMETHODCALLTYPE GetMultithreadProtected( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10MultithreadVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Multithread * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Multithread * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Multithread * This); + + DECLSPEC_XFGVIRT(ID3D10Multithread, Enter) + void ( STDMETHODCALLTYPE *Enter )( + ID3D10Multithread * This); + + DECLSPEC_XFGVIRT(ID3D10Multithread, Leave) + void ( STDMETHODCALLTYPE *Leave )( + ID3D10Multithread * This); + + DECLSPEC_XFGVIRT(ID3D10Multithread, SetMultithreadProtected) + BOOL ( STDMETHODCALLTYPE *SetMultithreadProtected )( + ID3D10Multithread * This, + /* [annotation] */ + _In_ BOOL bMTProtect); + + DECLSPEC_XFGVIRT(ID3D10Multithread, GetMultithreadProtected) + BOOL ( STDMETHODCALLTYPE *GetMultithreadProtected )( + ID3D10Multithread * This); + + END_INTERFACE + } ID3D10MultithreadVtbl; + + interface ID3D10Multithread + { + CONST_VTBL struct ID3D10MultithreadVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Multithread_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Multithread_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Multithread_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Multithread_Enter(This) \ + ( (This)->lpVtbl -> Enter(This) ) + +#define ID3D10Multithread_Leave(This) \ + ( (This)->lpVtbl -> Leave(This) ) + +#define ID3D10Multithread_SetMultithreadProtected(This,bMTProtect) \ + ( (This)->lpVtbl -> SetMultithreadProtected(This,bMTProtect) ) + +#define ID3D10Multithread_GetMultithreadProtected(This) \ + ( (This)->lpVtbl -> GetMultithreadProtected(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Multithread_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_0000_0024 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef +enum D3D10_CREATE_DEVICE_FLAG + { + D3D10_CREATE_DEVICE_SINGLETHREADED = 0x1, + D3D10_CREATE_DEVICE_DEBUG = 0x2, + D3D10_CREATE_DEVICE_SWITCH_TO_REF = 0x4, + D3D10_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x8, + D3D10_CREATE_DEVICE_ALLOW_NULL_FROM_MAP = 0x10, + D3D10_CREATE_DEVICE_BGRA_SUPPORT = 0x20, + D3D10_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x80, + D3D10_CREATE_DEVICE_STRICT_VALIDATION = 0x200, + D3D10_CREATE_DEVICE_DEBUGGABLE = 0x400 + } D3D10_CREATE_DEVICE_FLAG; + + +#define D3D10_SDK_VERSION ( 29 ) + +#if !defined( D3D10_IGNORE_SDK_LAYERS ) +#include "d3d10sdklayers.h" +#endif +#include "d3d10misc.h" +#include "d3d10shader.h" +#include "d3d10effect.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +DEFINE_GUID(IID_ID3D10DeviceChild,0x9B7E4C00,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10DepthStencilState,0x2B4B1CC8,0xA4AD,0x41f8,0x83,0x22,0xCA,0x86,0xFC,0x3E,0xC6,0x75); +DEFINE_GUID(IID_ID3D10BlendState,0xEDAD8D19,0x8A35,0x4d6d,0x85,0x66,0x2E,0xA2,0x76,0xCD,0xE1,0x61); +DEFINE_GUID(IID_ID3D10RasterizerState,0xA2A07292,0x89AF,0x4345,0xBE,0x2E,0xC5,0x3D,0x9F,0xBB,0x6E,0x9F); +DEFINE_GUID(IID_ID3D10Resource,0x9B7E4C01,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Buffer,0x9B7E4C02,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Texture1D,0x9B7E4C03,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Texture2D,0x9B7E4C04,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Texture3D,0x9B7E4C05,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10View,0xC902B03F,0x60A7,0x49BA,0x99,0x36,0x2A,0x3A,0xB3,0x7A,0x7E,0x33); +DEFINE_GUID(IID_ID3D10ShaderResourceView,0x9B7E4C07,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10RenderTargetView,0x9B7E4C08,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10DepthStencilView,0x9B7E4C09,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10VertexShader,0x9B7E4C0A,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10GeometryShader,0x6316BE88,0x54CD,0x4040,0xAB,0x44,0x20,0x46,0x1B,0xC8,0x1F,0x68); +DEFINE_GUID(IID_ID3D10PixelShader,0x4968B601,0x9D00,0x4cde,0x83,0x46,0x8E,0x7F,0x67,0x58,0x19,0xB6); +DEFINE_GUID(IID_ID3D10InputLayout,0x9B7E4C0B,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10SamplerState,0x9B7E4C0C,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Asynchronous,0x9B7E4C0D,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Query,0x9B7E4C0E,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Predicate,0x9B7E4C10,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Counter,0x9B7E4C11,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Device,0x9B7E4C0F,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Multithread,0x9B7E4E00,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0024_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_0000_0024_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10.idl new file mode 100644 index 0000000000000000000000000000000000000000..64a14916485720bb238f4ce3b49353d96a1649a6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10.idl @@ -0,0 +1,1935 @@ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// D3D10 IDL +// +// Contains interface definitions for the D3D10 API. +// +// Copyright (C) Microsoft Corporation +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +import "oaidl.idl"; +import "ocidl.idl"; +import "dxgi.idl"; +import "d3dcommon.idl"; + +// +// Copyright (C) Microsoft. All rights reserved. +// +// NOTE: The following constants are generated from the d3d10 hardware spec. Do not edit these values directly. +cpp_quote( "#ifndef _D3D10_CONSTANTS" ) +cpp_quote( "#define _D3D10_CONSTANTS" ) +const UINT D3D10_16BIT_INDEX_STRIP_CUT_VALUE = 0xffff; +const UINT D3D10_32BIT_INDEX_STRIP_CUT_VALUE = 0xffffffff; +const UINT D3D10_8BIT_INDEX_STRIP_CUT_VALUE = 0xff; +const UINT D3D10_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = 9; +const UINT D3D10_CLIP_OR_CULL_DISTANCE_COUNT = 8; +const UINT D3D10_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = 2; +const UINT D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14; +const UINT D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4; +const UINT D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15; +const UINT D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4; +const UINT D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15; +const UINT D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1; +const UINT D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1; +const UINT D3D10_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64; +const UINT D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4; +const UINT D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1; +const UINT D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1; +const UINT D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1; +const UINT D3D10_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1; +const UINT D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128; +const UINT D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1; +const UINT D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1; +const UINT D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128; +const UINT D3D10_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1; +const UINT D3D10_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16; +const UINT D3D10_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1; +const UINT D3D10_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1; +const UINT D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT = 16; +const UINT D3D10_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32; +const UINT D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4; +const UINT D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_COMMONSHADER_TEMP_REGISTER_COUNT = 4096; +const UINT D3D10_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3; +const UINT D3D10_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3; +const UINT D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10; +const INT D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10; +const INT D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8; +const UINT D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7; +cpp_quote( "#define D3D10_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )" ) +cpp_quote( "#define D3D10_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )" ) +cpp_quote( "#define D3D10_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )" ) +cpp_quote( "#define D3D10_DEFAULT_BLEND_FACTOR_RED ( 1.0f )" ) +cpp_quote( "#define D3D10_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )" ) +const UINT D3D10_DEFAULT_DEPTH_BIAS = 0; +cpp_quote( "#define D3D10_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )" ) +cpp_quote( "#define D3D10_DEFAULT_MAX_ANISOTROPY ( 16.0f )" ) +cpp_quote( "#define D3D10_DEFAULT_MIP_LOD_BIAS ( 0.0f )" ) +const UINT D3D10_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0; +const UINT D3D10_DEFAULT_SAMPLE_MASK = 0xffffffff; +const UINT D3D10_DEFAULT_SCISSOR_ENDX = 0; +const UINT D3D10_DEFAULT_SCISSOR_ENDY = 0; +const UINT D3D10_DEFAULT_SCISSOR_STARTX = 0; +const UINT D3D10_DEFAULT_SCISSOR_STARTY = 0; +cpp_quote( "#define D3D10_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )" ) +const UINT D3D10_DEFAULT_STENCIL_READ_MASK = 0xff; +const UINT D3D10_DEFAULT_STENCIL_REFERENCE = 0; +const UINT D3D10_DEFAULT_STENCIL_WRITE_MASK = 0xff; +const UINT D3D10_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0; +const UINT D3D10_DEFAULT_VIEWPORT_HEIGHT = 0; +cpp_quote( "#define D3D10_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )" ) +cpp_quote( "#define D3D10_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )" ) +const UINT D3D10_DEFAULT_VIEWPORT_TOPLEFTX = 0; +const UINT D3D10_DEFAULT_VIEWPORT_TOPLEFTY = 0; +const UINT D3D10_DEFAULT_VIEWPORT_WIDTH = 0; +cpp_quote( "#define D3D10_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )" ) +cpp_quote( "#define D3D10_FLOAT32_MAX ( 3.402823466e+38f )" ) +cpp_quote( "#define D3D10_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )" ) +cpp_quote( "#define D3D10_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )" ) +cpp_quote( "#define D3D10_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )" ) +cpp_quote( "#define D3D10_FLOAT_TO_SRGB_OFFSET ( 0.055f )" ) +cpp_quote( "#define D3D10_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )" ) +cpp_quote( "#define D3D10_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )" ) +cpp_quote( "#define D3D10_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )" ) +cpp_quote( "#define D3D10_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )" ) +cpp_quote( "#define D3D10_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )" ) +cpp_quote( "#define D3D10_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )" ) +cpp_quote( "#define D3D10_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )" ) +const UINT D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = 1; +const UINT D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_GS_INPUT_PRIM_CONST_REGISTER_COUNT = 1; +const UINT D3D10_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = 2; +const UINT D3D10_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = 1; +const UINT D3D10_GS_INPUT_REGISTER_COMPONENTS = 4; +const UINT D3D10_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_GS_INPUT_REGISTER_COUNT = 16; +const UINT D3D10_GS_INPUT_REGISTER_READS_PER_INST = 2; +const UINT D3D10_GS_INPUT_REGISTER_READ_PORTS = 1; +const UINT D3D10_GS_INPUT_REGISTER_VERTICES = 6; +const UINT D3D10_GS_OUTPUT_ELEMENTS = 32; +const UINT D3D10_GS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D10_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_GS_OUTPUT_REGISTER_COUNT = 32; +const UINT D3D10_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = 0; +const UINT D3D10_IA_DEFAULT_PRIMITIVE_TOPOLOGY = 0; +const UINT D3D10_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = 0; +const UINT D3D10_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = 1; +const UINT D3D10_IA_INSTANCE_ID_BIT_COUNT = 32; +const UINT D3D10_IA_INTEGER_ARITHMETIC_BIT_COUNT = 32; +const UINT D3D10_IA_PRIMITIVE_ID_BIT_COUNT = 32; +const UINT D3D10_IA_VERTEX_ID_BIT_COUNT = 32; +const UINT D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 16; +const UINT D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 64; +const UINT D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 16; +const UINT D3D10_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = 0xffffffff; +const UINT D3D10_INTEGER_DIVIDE_BY_ZERO_REMAINDER = 0xffffffff; +cpp_quote( "#define D3D10_LINEAR_GAMMA ( 1.0f )" ) +cpp_quote( "#define D3D10_MAX_BORDER_COLOR_COMPONENT ( 1.0f )" ) +cpp_quote( "#define D3D10_MAX_DEPTH ( 1.0f )" ) +const UINT D3D10_MAX_MAXANISOTROPY = 16; +const UINT D3D10_MAX_MULTISAMPLE_SAMPLE_COUNT = 32; +cpp_quote( "#define D3D10_MAX_POSITION_VALUE ( 3.402823466e+34f )" ) +const UINT D3D10_MAX_TEXTURE_DIMENSION_2_TO_EXP = 17; +cpp_quote( "#define D3D10_MIN_BORDER_COLOR_COMPONENT ( 0.0f )" ) +cpp_quote( "#define D3D10_MIN_DEPTH ( 0.0f )" ) +const UINT D3D10_MIN_MAXANISOTROPY = 0; +cpp_quote( "#define D3D10_MIP_LOD_BIAS_MAX ( 15.99f )" ) +cpp_quote( "#define D3D10_MIP_LOD_BIAS_MIN ( -16.0f )" ) +const UINT D3D10_MIP_LOD_FRACTIONAL_BIT_COUNT = 6; +const UINT D3D10_MIP_LOD_RANGE_BIT_COUNT = 8; +cpp_quote( "#define D3D10_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )" ) +const UINT D3D10_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = 0; +const UINT D3D10_PIXEL_ADDRESS_RANGE_BIT_COUNT = 13; +const UINT D3D10_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = 15; +const UINT D3D10_PS_FRONTFACING_DEFAULT_VALUE = 0xFFFFFFFF; +const UINT D3D10_PS_FRONTFACING_FALSE_VALUE = 0x00000000; +const UINT D3D10_PS_FRONTFACING_TRUE_VALUE = 0xFFFFFFFF; +const UINT D3D10_PS_INPUT_REGISTER_COMPONENTS = 4; +const UINT D3D10_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_PS_INPUT_REGISTER_COUNT = 32; +const UINT D3D10_PS_INPUT_REGISTER_READS_PER_INST = 2; +const UINT D3D10_PS_INPUT_REGISTER_READ_PORTS = 1; +cpp_quote( "#define D3D10_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )" ) +const UINT D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1; +const UINT D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1; +const UINT D3D10_PS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D10_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_PS_OUTPUT_REGISTER_COUNT = 8; +cpp_quote( "#define D3D10_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )" ) +const UINT D3D10_REQ_BLEND_OBJECT_COUNT_PER_CONTEXT = 4096; +const UINT D3D10_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27; +const UINT D3D10_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096; +const UINT D3D10_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_CONTEXT = 4096; +const UINT D3D10_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32; +const UINT D3D10_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32; +const UINT D3D10_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 8192; +const UINT D3D10_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024; +const UINT D3D10_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096; +const UINT D3D10_REQ_MAXANISOTROPY = 16; +const UINT D3D10_REQ_MIP_LEVELS = 14; +const UINT D3D10_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048; +const UINT D3D10_REQ_RASTERIZER_OBJECT_COUNT_PER_CONTEXT = 4096; +const UINT D3D10_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 8192; +const UINT D3D10_REQ_RESOURCE_SIZE_IN_MEGABYTES = 128; +const UINT D3D10_REQ_RESOURCE_VIEW_COUNT_PER_CONTEXT_2_TO_EXP = 20; +const UINT D3D10_REQ_SAMPLER_OBJECT_COUNT_PER_CONTEXT = 4096; +const UINT D3D10_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 512; +const UINT D3D10_REQ_TEXTURE1D_U_DIMENSION = 8192; +const UINT D3D10_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 512; +const UINT D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION = 8192; +const UINT D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048; +const UINT D3D10_REQ_TEXTURECUBE_DIMENSION = 8192; +const UINT D3D10_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0; +const UINT D3D10_SHADER_MAJOR_VERSION = 4; +const UINT D3D10_SHADER_MINOR_VERSION = 0; +const UINT D3D10_SHIFT_INSTRUCTION_PAD_VALUE = 0; +const UINT D3D10_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5; +const UINT D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT = 8; +const UINT D3D10_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048; +const UINT D3D10_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 256; +const UINT D3D10_SO_BUFFER_SLOT_COUNT = 4; +const UINT D3D10_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff; +const UINT D3D10_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = 1; +const UINT D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT = 64; +cpp_quote( "#define D3D10_SRGB_GAMMA ( 2.2f )" ) +cpp_quote( "#define D3D10_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )" ) +cpp_quote( "#define D3D10_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )" ) +cpp_quote( "#define D3D10_SRGB_TO_FLOAT_EXPONENT ( 2.4f )" ) +cpp_quote( "#define D3D10_SRGB_TO_FLOAT_OFFSET ( 0.055f )" ) +cpp_quote( "#define D3D10_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )" ) +cpp_quote( "#define D3D10_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )" ) +const UINT D3D10_STANDARD_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64; +const UINT D3D10_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4; +const UINT D3D10_STANDARD_PIXEL_COMPONENT_COUNT = 128; +const UINT D3D10_STANDARD_PIXEL_ELEMENT_COUNT = 32; +const UINT D3D10_STANDARD_VECTOR_SIZE = 4; +const UINT D3D10_STANDARD_VERTEX_ELEMENT_COUNT = 16; +const UINT D3D10_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64; +const UINT D3D10_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8; +const UINT D3D10_SUBTEXEL_FRACTIONAL_BIT_COUNT = 6; +const UINT D3D10_TEXEL_ADDRESS_RANGE_BIT_COUNT = 18; +const UINT D3D10_UNBOUND_MEMORY_ACCESS_RESULT = 0; +const UINT D3D10_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15; +const UINT D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16; +const UINT D3D10_VIEWPORT_BOUNDS_MAX = 16383; +const INT D3D10_VIEWPORT_BOUNDS_MIN = -16384; +const UINT D3D10_VS_INPUT_REGISTER_COMPONENTS = 4; +const UINT D3D10_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_VS_INPUT_REGISTER_COUNT = 16; +const UINT D3D10_VS_INPUT_REGISTER_READS_PER_INST = 2; +const UINT D3D10_VS_INPUT_REGISTER_READ_PORTS = 1; +const UINT D3D10_VS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D10_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_VS_OUTPUT_REGISTER_COUNT = 16; +const UINT D3D10_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = 10; +const UINT D3D10_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 25; +const UINT D3D10_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = 25; +const UINT D3D_MAJOR_VERSION = 10; +const UINT D3D_MINOR_VERSION = 0; +const UINT D3D_SPEC_DATE_DAY = 8; +const UINT D3D_SPEC_DATE_MONTH = 8; +const UINT D3D_SPEC_DATE_YEAR = 2006; +cpp_quote( "#define D3D_SPEC_VERSION ( 1.050005 )" ) +cpp_quote( "#endif" ) +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +cpp_quote( "#if !defined( __d3d10_1_h__ ) && !(D3D10_HEADER_MINOR_VERSION >= 1)" ) // +cpp_quote( "#define D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT" ) +cpp_quote( "#define D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT" ) +cpp_quote( "#endif" ) + +const UINT _FACD3D10 = 0x879; +const UINT _FACD3D10DEBUG = _FACD3D10 + 1; + +cpp_quote( "#define MAKE_D3D10_HRESULT( code ) MAKE_HRESULT( 1, _FACD3D10, code )" ) +cpp_quote( "#define MAKE_D3D10_STATUS( code ) MAKE_HRESULT( 0, _FACD3D10, code )" ) +cpp_quote( "/* Direct3D errors are now found in winerror.h */" ) + +typedef enum D3D10_INPUT_CLASSIFICATION +{ + D3D10_INPUT_PER_VERTEX_DATA = 0, + D3D10_INPUT_PER_INSTANCE_DATA = 1 +} D3D10_INPUT_CLASSIFICATION; + +const UINT D3D10_APPEND_ALIGNED_ELEMENT = 0xffffffff; + +typedef struct D3D10_INPUT_ELEMENT_DESC +{ + LPCSTR SemanticName; + UINT SemanticIndex; + DXGI_FORMAT Format; + UINT InputSlot; + UINT AlignedByteOffset; + D3D10_INPUT_CLASSIFICATION InputSlotClass; + UINT InstanceDataStepRate; +} D3D10_INPUT_ELEMENT_DESC; + +// Keep FILL_MODE values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D10_FILL_MODE +{ + // 1 was POINT in D3D, unused in D3D10 + D3D10_FILL_WIREFRAME = 2, + D3D10_FILL_SOLID = 3 +} D3D10_FILL_MODE; + +typedef D3D_PRIMITIVE_TOPOLOGY D3D10_PRIMITIVE_TOPOLOGY; + +typedef D3D_PRIMITIVE D3D10_PRIMITIVE; + +// Keep CULL_MODE values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D10_CULL_MODE +{ + D3D10_CULL_NONE = 1, + D3D10_CULL_FRONT = 2, + D3D10_CULL_BACK = 3 +} D3D10_CULL_MODE; + +typedef struct D3D10_SO_DECLARATION_ENTRY +{ + LPCSTR SemanticName; + UINT SemanticIndex; + BYTE StartComponent; + BYTE ComponentCount; + BYTE OutputSlot; +} D3D10_SO_DECLARATION_ENTRY; + +typedef struct D3D10_VIEWPORT +{ + INT TopLeftX; + INT TopLeftY; + UINT Width; + UINT Height; + FLOAT MinDepth; + FLOAT MaxDepth; +} D3D10_VIEWPORT; + +typedef enum D3D10_RESOURCE_DIMENSION +{ + D3D10_RESOURCE_DIMENSION_UNKNOWN = 0, + D3D10_RESOURCE_DIMENSION_BUFFER = 1, + D3D10_RESOURCE_DIMENSION_TEXTURE1D = 2, + D3D10_RESOURCE_DIMENSION_TEXTURE2D = 3, + D3D10_RESOURCE_DIMENSION_TEXTURE3D = 4, +} D3D10_RESOURCE_DIMENSION; + +typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION; + +typedef enum D3D10_DSV_DIMENSION +{ + D3D10_DSV_DIMENSION_UNKNOWN = 0, + D3D10_DSV_DIMENSION_TEXTURE1D = 1, + D3D10_DSV_DIMENSION_TEXTURE1DARRAY = 2, + D3D10_DSV_DIMENSION_TEXTURE2D = 3, + D3D10_DSV_DIMENSION_TEXTURE2DARRAY = 4, + D3D10_DSV_DIMENSION_TEXTURE2DMS = 5, + D3D10_DSV_DIMENSION_TEXTURE2DMSARRAY = 6, +} D3D10_DSV_DIMENSION; + +typedef enum D3D10_RTV_DIMENSION +{ + D3D10_RTV_DIMENSION_UNKNOWN = 0, + D3D10_RTV_DIMENSION_BUFFER = 1, + D3D10_RTV_DIMENSION_TEXTURE1D = 2, + D3D10_RTV_DIMENSION_TEXTURE1DARRAY = 3, + D3D10_RTV_DIMENSION_TEXTURE2D = 4, + D3D10_RTV_DIMENSION_TEXTURE2DARRAY = 5, + D3D10_RTV_DIMENSION_TEXTURE2DMS = 6, + D3D10_RTV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D10_RTV_DIMENSION_TEXTURE3D = 8, +} D3D10_RTV_DIMENSION; + +typedef enum D3D10_USAGE +{ + D3D10_USAGE_DEFAULT = 0, + D3D10_USAGE_IMMUTABLE = 1, + D3D10_USAGE_DYNAMIC = 2, + D3D10_USAGE_STAGING = 3, +} D3D10_USAGE; + +typedef enum D3D10_BIND_FLAG +{ + D3D10_BIND_VERTEX_BUFFER = 0x00000001L, + D3D10_BIND_INDEX_BUFFER = 0x00000002L, + D3D10_BIND_CONSTANT_BUFFER = 0x00000004L, + D3D10_BIND_SHADER_RESOURCE = 0x00000008L, + D3D10_BIND_STREAM_OUTPUT = 0x00000010L, + D3D10_BIND_RENDER_TARGET = 0x00000020L, + D3D10_BIND_DEPTH_STENCIL = 0x00000040L, +} D3D10_BIND_FLAG; + +typedef enum D3D10_CPU_ACCESS_FLAG +{ + D3D10_CPU_ACCESS_WRITE = 0x00010000L, + D3D10_CPU_ACCESS_READ = 0x00020000L, +} D3D10_CPU_ACCESS_FLAG; + +typedef enum D3D10_RESOURCE_MISC_FLAG +{ + D3D10_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L, + D3D10_RESOURCE_MISC_SHARED = 0x00000002L, + D3D10_RESOURCE_MISC_TEXTURECUBE = 0x00000004L, + D3D10_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000010L, + D3D10_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000020L, +} D3D10_RESOURCE_MISC_FLAG; + +typedef enum D3D10_MAP // for calling ID3D10Resource::Map() +{ + D3D10_MAP_READ = 1, + D3D10_MAP_WRITE = 2, + D3D10_MAP_READ_WRITE = 3, + D3D10_MAP_WRITE_DISCARD = 4, + D3D10_MAP_WRITE_NO_OVERWRITE = 5, +} D3D10_MAP; + +typedef enum D3D10_MAP_FLAG +{ + D3D10_MAP_FLAG_DO_NOT_WAIT = 0x00100000L, +} D3D10_MAP_FLAG; + +typedef enum D3D10_RAISE_FLAG +{ + D3D10_RAISE_FLAG_DRIVER_INTERNAL_ERROR = 0x1L, +} D3D10_RAISE_FLAG; + +// Flags for ClearDepthStencil +typedef enum D3D10_CLEAR_FLAG +{ + D3D10_CLEAR_DEPTH = 0x01L, + D3D10_CLEAR_STENCIL = 0x02L, +} D3D10_CLEAR_FLAG; + +typedef RECT D3D10_RECT; + +typedef struct D3D10_BOX +{ + UINT left; + UINT top; + UINT front; + UINT right; + UINT bottom; + UINT back; +} D3D10_BOX; + +// Forward declarations: +interface ID3D10Device; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// DeviceChild +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( 9B7E4C00-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10DeviceChild + : IUnknown +{ + void GetDevice( [annotation("_Out_")] ID3D10Device** ppDevice ); + HRESULT GetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_Inout_")] UINT* pDataSize, + [annotation("_Out_writes_bytes_opt_(*pDataSize)")] void* pData ); + HRESULT SetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_In_")] UINT DataSize, + [annotation("_In_reads_bytes_opt_(DataSize)")] const void* pData ); + HRESULT SetPrivateDataInterface( + [annotation("_In_")] REFGUID guid, + [annotation("_In_opt_")] const IUnknown * pData ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Depth-Stencil State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// Keep COMPARISON_FUNC values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D10_COMPARISON_FUNC +{ + D3D10_COMPARISON_NEVER = 1, + D3D10_COMPARISON_LESS = 2, + D3D10_COMPARISON_EQUAL = 3, + D3D10_COMPARISON_LESS_EQUAL = 4, + D3D10_COMPARISON_GREATER = 5, + D3D10_COMPARISON_NOT_EQUAL = 6, + D3D10_COMPARISON_GREATER_EQUAL = 7, + D3D10_COMPARISON_ALWAYS = 8 +} D3D10_COMPARISON_FUNC; + +typedef enum D3D10_DEPTH_WRITE_MASK +{ + D3D10_DEPTH_WRITE_MASK_ZERO = 0, + D3D10_DEPTH_WRITE_MASK_ALL = 1 +} D3D10_DEPTH_WRITE_MASK; + +// Keep STENCILOP values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D10_STENCIL_OP +{ + D3D10_STENCIL_OP_KEEP = 1, + D3D10_STENCIL_OP_ZERO = 2, + D3D10_STENCIL_OP_REPLACE = 3, + D3D10_STENCIL_OP_INCR_SAT = 4, + D3D10_STENCIL_OP_DECR_SAT = 5, + D3D10_STENCIL_OP_INVERT = 6, + D3D10_STENCIL_OP_INCR = 7, + D3D10_STENCIL_OP_DECR = 8 +} D3D10_STENCIL_OP; + +typedef struct D3D10_DEPTH_STENCILOP_DESC +{ + D3D10_STENCIL_OP StencilFailOp; + D3D10_STENCIL_OP StencilDepthFailOp; + D3D10_STENCIL_OP StencilPassOp; + D3D10_COMPARISON_FUNC StencilFunc; +} D3D10_DEPTH_STENCILOP_DESC; + +typedef struct D3D10_DEPTH_STENCIL_DESC +{ + BOOL DepthEnable; + D3D10_DEPTH_WRITE_MASK DepthWriteMask; + D3D10_COMPARISON_FUNC DepthFunc; + BOOL StencilEnable; + UINT8 StencilReadMask; + UINT8 StencilWriteMask; + D3D10_DEPTH_STENCILOP_DESC FrontFace; + D3D10_DEPTH_STENCILOP_DESC BackFace; +} D3D10_DEPTH_STENCIL_DESC; + +[ uuid( 2B4B1CC8-A4AD-41f8-8322-CA86FC3EC675 ), object, local, pointer_default( unique ) ] +interface ID3D10DepthStencilState + : ID3D10DeviceChild +{ + void GetDesc( [annotation("_Out_")] D3D10_DEPTH_STENCIL_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Blend State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// Keep BLEND values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D10_BLEND +{ + D3D10_BLEND_ZERO = 1, + D3D10_BLEND_ONE = 2, + D3D10_BLEND_SRC_COLOR = 3, // PS output oN.rgb (N is current RT being blended) + D3D10_BLEND_INV_SRC_COLOR = 4, // 1.0f - PS output oN.rgb + D3D10_BLEND_SRC_ALPHA = 5, // PS output oN.a + D3D10_BLEND_INV_SRC_ALPHA = 6, // 1.0f - PS output oN.a + D3D10_BLEND_DEST_ALPHA = 7, // RT(N).a (N is current RT being blended) + D3D10_BLEND_INV_DEST_ALPHA = 8, // 1.0f - RT(N).a + D3D10_BLEND_DEST_COLOR = 9, // RT(N).rgb + D3D10_BLEND_INV_DEST_COLOR = 10,// 1.0f - RT(N).rgb + D3D10_BLEND_SRC_ALPHA_SAT = 11,// (f,f,f,1), f = min(1 - RT(N).a, oN.a) + // 12 reserved (was BOTHSRCALPHA) + // 13 reserved (was BOTHSRCALPHA) + D3D10_BLEND_BLEND_FACTOR = 14, + D3D10_BLEND_INV_BLEND_FACTOR = 15, + D3D10_BLEND_SRC1_COLOR = 16, // PS output o1.rgb + D3D10_BLEND_INV_SRC1_COLOR = 17, // 1.0f - PS output o1.rgb + D3D10_BLEND_SRC1_ALPHA = 18, // PS output o1.a + D3D10_BLEND_INV_SRC1_ALPHA = 19, // 1.0f - PS output o1.a +} D3D10_BLEND; + +// Keep BLENDOP values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D10_BLEND_OP +{ + D3D10_BLEND_OP_ADD = 1, + D3D10_BLEND_OP_SUBTRACT = 2, + D3D10_BLEND_OP_REV_SUBTRACT = 3, + D3D10_BLEND_OP_MIN = 4, // min semantics are like min shader instruction + D3D10_BLEND_OP_MAX = 5, // max semantics are like max shader instruction +} D3D10_BLEND_OP; + +typedef enum D3D10_COLOR_WRITE_ENABLE +{ + D3D10_COLOR_WRITE_ENABLE_RED = 1, + D3D10_COLOR_WRITE_ENABLE_GREEN = 2, + D3D10_COLOR_WRITE_ENABLE_BLUE = 4, + D3D10_COLOR_WRITE_ENABLE_ALPHA = 8, + D3D10_COLOR_WRITE_ENABLE_ALL = (D3D10_COLOR_WRITE_ENABLE_RED|D3D10_COLOR_WRITE_ENABLE_GREEN| + D3D10_COLOR_WRITE_ENABLE_BLUE|D3D10_COLOR_WRITE_ENABLE_ALPHA), +} D3D10_COLOR_WRITE_ENABLE; + +typedef struct D3D10_BLEND_DESC +{ + BOOL AlphaToCoverageEnable; // relevant to multisample antialiasing only + BOOL BlendEnable[D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT]; + D3D10_BLEND SrcBlend; // same for all RenderTargets + D3D10_BLEND DestBlend; // same for all RenderTargets + D3D10_BLEND_OP BlendOp; // same for all RenderTargets + D3D10_BLEND SrcBlendAlpha; // same for all RenderTargets + D3D10_BLEND DestBlendAlpha; // same for all RenderTargets + D3D10_BLEND_OP BlendOpAlpha; // same for all RenderTargets + UINT8 RenderTargetWriteMask[D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT]; +} D3D10_BLEND_DESC; + +[ uuid( EDAD8D19-8A35-4d6d-8566-2EA276CDE161 ), object, local, pointer_default( unique ) ] +interface ID3D10BlendState + : ID3D10DeviceChild +{ + void GetDesc( [annotation("_Out_")] D3D10_BLEND_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Rasterizer State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef struct D3D10_RASTERIZER_DESC +{ + D3D10_FILL_MODE FillMode; + D3D10_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + INT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL ScissorEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; +} D3D10_RASTERIZER_DESC; + +[ uuid( A2A07292-89AF-4345-BE2E-C53D9FBB6E9F ), object, local, pointer_default( unique ) ] +interface ID3D10RasterizerState + : ID3D10DeviceChild +{ + void GetDesc( [annotation("_Out_")] D3D10_RASTERIZER_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Resource +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +cpp_quote( "#if !defined( D3D10_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "inline UINT D3D10CalcSubresource( UINT MipSlice, UINT ArraySlice, UINT MipLevels )" ) +cpp_quote( "{ return MipSlice + ArraySlice * MipLevels; }" ) +cpp_quote( "#endif" ) + +typedef struct D3D10_SUBRESOURCE_DATA +{ + const void *pSysMem; + UINT SysMemPitch; + UINT SysMemSlicePitch; +} D3D10_SUBRESOURCE_DATA; + +[ uuid( 9B7E4C01-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Resource + : ID3D10DeviceChild +{ + void GetType( [annotation("_Out_")] D3D10_RESOURCE_DIMENSION* rType ); + void SetEvictionPriority( [annotation("_In_")] UINT EvictionPriority ); + UINT GetEvictionPriority(); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Buffer +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D10_BUFFER_DESC +{ + UINT ByteWidth; + D3D10_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; +} D3D10_BUFFER_DESC; + +cpp_quote( "#if !defined( D3D10_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "struct CD3D10_BUFFER_DESC : public D3D10_BUFFER_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D10_BUFFER_DESC() = default;" ) +cpp_quote( " explicit CD3D10_BUFFER_DESC( const D3D10_BUFFER_DESC& o ) :" ) +cpp_quote( " D3D10_BUFFER_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D10_BUFFER_DESC(" ) +cpp_quote( " UINT byteWidth," ) +cpp_quote( " UINT bindFlags," ) +cpp_quote( " D3D10_USAGE usage = D3D10_USAGE_DEFAULT," ) +cpp_quote( " UINT cpuaccessFlags = 0," ) +cpp_quote( " UINT miscFlags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " ByteWidth = byteWidth;" ) +cpp_quote( " Usage = usage;" ) +cpp_quote( " BindFlags = bindFlags;" ) +cpp_quote( " CPUAccessFlags = cpuaccessFlags ;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D10_BUFFER_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "#endif" ) + +[ uuid( 9B7E4C02-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Buffer + : ID3D10Resource +{ + HRESULT Map( + [annotation("_In_")] D3D10_MAP MapType, + [annotation("_In_")] UINT MapFlags, + [annotation("_Out_")] void** ppData ); + void Unmap(); + void GetDesc( [annotation("_Out_")] D3D10_BUFFER_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Texture1D +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D10_TEXTURE1D_DESC +{ + UINT Width; + UINT MipLevels; + UINT ArraySize; + DXGI_FORMAT Format; + D3D10_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; +} D3D10_TEXTURE1D_DESC; + +cpp_quote( "#if !defined( D3D10_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "struct CD3D10_TEXTURE1D_DESC : public D3D10_TEXTURE1D_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D10_TEXTURE1D_DESC() = default;" ) +cpp_quote( " explicit CD3D10_TEXTURE1D_DESC( const D3D10_TEXTURE1D_DESC& o ) :" ) +cpp_quote( " D3D10_TEXTURE1D_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D10_TEXTURE1D_DESC(" ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT width," ) +cpp_quote( " UINT arraySize = 1," ) +cpp_quote( " UINT mipLevels = 0," ) +cpp_quote( " UINT bindFlags = D3D10_BIND_SHADER_RESOURCE," ) +cpp_quote( " D3D10_USAGE usage = D3D10_USAGE_DEFAULT," ) +cpp_quote( " UINT cpuaccessFlags= 0," ) +cpp_quote( " UINT miscFlags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Width = width;" ) +cpp_quote( " MipLevels = mipLevels;" ) +cpp_quote( " ArraySize = arraySize;" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Usage = usage;" ) +cpp_quote( " BindFlags = bindFlags;" ) +cpp_quote( " CPUAccessFlags = cpuaccessFlags;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D10_TEXTURE1D_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "#endif" ) + +[ uuid( 9B7E4C03-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Texture1D + : ID3D10Resource +{ + HRESULT Map( + [annotation("_In_")] UINT Subresource, + [annotation("_In_")] D3D10_MAP MapType, + [annotation("_In_")] UINT MapFlags, + [annotation("_Out_")] void** ppData ); + void Unmap( [annotation("_In_")] UINT Subresource ); + void GetDesc( [annotation("_Out_")] D3D10_TEXTURE1D_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Texture2D +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D10_TEXTURE2D_DESC +{ + UINT Width; + UINT Height; + UINT MipLevels; + UINT ArraySize; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; + D3D10_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; +} D3D10_TEXTURE2D_DESC; + +cpp_quote( "#if !defined( D3D10_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "struct CD3D10_TEXTURE2D_DESC : public D3D10_TEXTURE2D_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D10_TEXTURE2D_DESC() = default;" ) +cpp_quote( " explicit CD3D10_TEXTURE2D_DESC( const D3D10_TEXTURE2D_DESC& o ) :" ) +cpp_quote( " D3D10_TEXTURE2D_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D10_TEXTURE2D_DESC(" ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT width," ) +cpp_quote( " UINT height," ) +cpp_quote( " UINT arraySize = 1," ) +cpp_quote( " UINT mipLevels = 0," ) +cpp_quote( " UINT bindFlags = D3D10_BIND_SHADER_RESOURCE," ) +cpp_quote( " D3D10_USAGE usage = D3D10_USAGE_DEFAULT," ) +cpp_quote( " UINT cpuaccessFlags = 0," ) +cpp_quote( " UINT sampleCount = 1," ) +cpp_quote( " UINT sampleQuality = 0," ) +cpp_quote( " UINT miscFlags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Width = width;" ) +cpp_quote( " Height = height;" ) +cpp_quote( " MipLevels = mipLevels;" ) +cpp_quote( " ArraySize = arraySize;" ) +cpp_quote( " Format = format;" ) +cpp_quote( " SampleDesc.Count = sampleCount;" ) +cpp_quote( " SampleDesc.Quality = sampleQuality;" ) +cpp_quote( " Usage = usage;" ) +cpp_quote( " BindFlags = bindFlags;" ) +cpp_quote( " CPUAccessFlags = cpuaccessFlags;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D10_TEXTURE2D_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "#endif" ) + +typedef struct D3D10_MAPPED_TEXTURE2D +{ + void *pData; + UINT RowPitch; +} D3D10_MAPPED_TEXTURE2D; + +[ uuid( 9B7E4C04-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Texture2D + : ID3D10Resource +{ + HRESULT Map( + [annotation("_In_")] UINT Subresource, + [annotation("_In_")] D3D10_MAP MapType, + [annotation("_In_")] UINT MapFlags, + [annotation("_Out_")] D3D10_MAPPED_TEXTURE2D* pMappedTex2D ); + void Unmap( [annotation("_In_")] UINT Subresource ); + void GetDesc( [annotation("_Out_")] D3D10_TEXTURE2D_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Texture3D +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D10_TEXTURE3D_DESC +{ + UINT Width; + UINT Height; + UINT Depth; + UINT MipLevels; + DXGI_FORMAT Format; + D3D10_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; +} D3D10_TEXTURE3D_DESC; + +cpp_quote( "#if !defined( D3D10_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "struct CD3D10_TEXTURE3D_DESC : public D3D10_TEXTURE3D_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D10_TEXTURE3D_DESC() = default;" ) +cpp_quote( " explicit CD3D10_TEXTURE3D_DESC( const D3D10_TEXTURE3D_DESC& o ) :" ) +cpp_quote( " D3D10_TEXTURE3D_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D10_TEXTURE3D_DESC(" ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT width," ) +cpp_quote( " UINT height," ) +cpp_quote( " UINT depth," ) +cpp_quote( " UINT mipLevels = 0," ) +cpp_quote( " UINT bindFlags = D3D10_BIND_SHADER_RESOURCE," ) +cpp_quote( " D3D10_USAGE usage = D3D10_USAGE_DEFAULT," ) +cpp_quote( " UINT cpuaccessFlags = 0," ) +cpp_quote( " UINT miscFlags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Width = width;" ) +cpp_quote( " Height = height;" ) +cpp_quote( " Depth = depth;" ) +cpp_quote( " MipLevels = mipLevels;" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Usage = usage;" ) +cpp_quote( " BindFlags = bindFlags;" ) +cpp_quote( " CPUAccessFlags = cpuaccessFlags;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D10_TEXTURE3D_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "#endif" ) + +typedef struct D3D10_MAPPED_TEXTURE3D +{ + void *pData; + UINT RowPitch; + UINT DepthPitch; +} D3D10_MAPPED_TEXTURE3D; + +[ uuid( 9B7E4C05-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Texture3D + : ID3D10Resource +{ + HRESULT Map( + [annotation("_In_")] UINT Subresource, + [annotation("_In_")] D3D10_MAP MapType, + [annotation("_In_")] UINT MapFlags, + [annotation("_Out_")] D3D10_MAPPED_TEXTURE3D* pMappedTex3D ); + void Unmap( [annotation("_In_")] UINT Subresource ); + void GetDesc( [annotation("_Out_")] D3D10_TEXTURE3D_DESC* pDesc ); +}; + +/* TextureCube Face identifiers */ +typedef enum D3D10_TEXTURECUBE_FACE +{ + D3D10_TEXTURECUBE_FACE_POSITIVE_X = 0, + D3D10_TEXTURECUBE_FACE_NEGATIVE_X = 1, + D3D10_TEXTURECUBE_FACE_POSITIVE_Y = 2, + D3D10_TEXTURECUBE_FACE_NEGATIVE_Y = 3, + D3D10_TEXTURECUBE_FACE_POSITIVE_Z = 4, + D3D10_TEXTURECUBE_FACE_NEGATIVE_Z = 5 +} D3D10_TEXTURECUBE_FACE; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// View +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( C902B03F-60A7-49BA-9936-2A3AB37A7E33 ), object, local, pointer_default( unique ) ] +interface ID3D10View + : ID3D10DeviceChild +{ + void GetResource( [annotation("_Out_")] ID3D10Resource** ppResource ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// ShaderResourceView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D10_BUFFER_SRV +{ + union + { + UINT FirstElement; + UINT ElementOffset; + }; + union + { + UINT NumElements; + UINT ElementWidth; + }; +} D3D10_BUFFER_SRV; + +typedef struct D3D10_TEX1D_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + } D3D10_TEX1D_SRV; + +typedef struct D3D10_TEX1D_ARRAY_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; +} D3D10_TEX1D_ARRAY_SRV; + +typedef struct D3D10_TEX2D_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; +} D3D10_TEX2D_SRV; + +typedef struct D3D10_TEX2D_ARRAY_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; +} D3D10_TEX2D_ARRAY_SRV; + +typedef struct D3D10_TEX3D_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; +} D3D10_TEX3D_SRV; + +typedef struct D3D10_TEXCUBE_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; +} D3D10_TEXCUBE_SRV; + +typedef struct D3D10_TEX2DMS_SRV +{ + // don't need to define anything specific for this view dimension + UINT UnusedField_NothingToDefine; +} D3D10_TEX2DMS_SRV; + +typedef struct D3D10_TEX2DMS_ARRAY_SRV +{ + UINT FirstArraySlice; + UINT ArraySize; +} D3D10_TEX2DMS_ARRAY_SRV; + +typedef struct D3D10_SHADER_RESOURCE_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D10_SRV_DIMENSION ViewDimension; + + union + { + D3D10_BUFFER_SRV Buffer; + D3D10_TEX1D_SRV Texture1D; + D3D10_TEX1D_ARRAY_SRV Texture1DArray; + D3D10_TEX2D_SRV Texture2D; + D3D10_TEX2D_ARRAY_SRV Texture2DArray; + D3D10_TEX2DMS_SRV Texture2DMS; + D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray; + D3D10_TEX3D_SRV Texture3D; + D3D10_TEXCUBE_SRV TextureCube; + }; +} D3D10_SHADER_RESOURCE_VIEW_DESC; + +[ uuid( 9B7E4C07-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10ShaderResourceView + : ID3D10View +{ + void GetDesc( [annotation("_Out_")] D3D10_SHADER_RESOURCE_VIEW_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// RenderTargetView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D10_BUFFER_RTV +{ + union + { + UINT FirstElement; + UINT ElementOffset; + }; + union + { + UINT NumElements; + UINT ElementWidth; + }; +} D3D10_BUFFER_RTV; + +typedef struct D3D10_TEX1D_RTV +{ + UINT MipSlice; +} D3D10_TEX1D_RTV; + +typedef struct D3D10_TEX1D_ARRAY_RTV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D10_TEX1D_ARRAY_RTV; + +typedef struct D3D10_TEX2D_RTV +{ + UINT MipSlice; +} D3D10_TEX2D_RTV; + +typedef struct D3D10_TEX2DMS_RTV +{ + UINT UnusedField_NothingToDefine; +} D3D10_TEX2DMS_RTV; + +typedef struct D3D10_TEX2D_ARRAY_RTV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D10_TEX2D_ARRAY_RTV; + +typedef struct D3D10_TEX2DMS_ARRAY_RTV +{ + UINT FirstArraySlice; + UINT ArraySize; +} D3D10_TEX2DMS_ARRAY_RTV; + +typedef struct D3D10_TEX3D_RTV +{ + UINT MipSlice; + UINT FirstWSlice; + UINT WSize; +} D3D10_TEX3D_RTV; + +typedef struct D3D10_RENDER_TARGET_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D10_RTV_DIMENSION ViewDimension; + + union + { + D3D10_BUFFER_RTV Buffer; + D3D10_TEX1D_RTV Texture1D; + D3D10_TEX1D_ARRAY_RTV Texture1DArray; + D3D10_TEX2D_RTV Texture2D; + D3D10_TEX2D_ARRAY_RTV Texture2DArray; + D3D10_TEX2DMS_RTV Texture2DMS; + D3D10_TEX2DMS_ARRAY_RTV Texture2DMSArray; + D3D10_TEX3D_RTV Texture3D; + }; +} D3D10_RENDER_TARGET_VIEW_DESC; + +[ uuid( 9B7E4C08-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10RenderTargetView + : ID3D10View +{ + void GetDesc( [annotation("_Out_")] D3D10_RENDER_TARGET_VIEW_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// DepthStencilView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D10_TEX1D_DSV +{ + UINT MipSlice; +} D3D10_TEX1D_DSV; + +typedef struct D3D10_TEX1D_ARRAY_DSV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D10_TEX1D_ARRAY_DSV; + +typedef struct D3D10_TEX2D_DSV +{ + UINT MipSlice; +} D3D10_TEX2D_DSV; + +typedef struct D3D10_TEX2D_ARRAY_DSV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D10_TEX2D_ARRAY_DSV; + +typedef struct D3D10_TEX2DMS_DSV +{ + UINT UnusedField_NothingToDefine; +} D3D10_TEX2DMS_DSV; + +typedef struct D3D10_TEX2DMS_ARRAY_DSV +{ + UINT FirstArraySlice; + UINT ArraySize; +} D3D10_TEX2DMS_ARRAY_DSV; + +typedef struct D3D10_DEPTH_STENCIL_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D10_DSV_DIMENSION ViewDimension; + + union + { + D3D10_TEX1D_DSV Texture1D; + D3D10_TEX1D_ARRAY_DSV Texture1DArray; + D3D10_TEX2D_DSV Texture2D; + D3D10_TEX2D_ARRAY_DSV Texture2DArray; + D3D10_TEX2DMS_DSV Texture2DMS; + D3D10_TEX2DMS_ARRAY_DSV Texture2DMSArray; + }; +} D3D10_DEPTH_STENCIL_VIEW_DESC; + +[ uuid( 9B7E4C09-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10DepthStencilView + : ID3D10View +{ + void GetDesc( [annotation("_Out_")] D3D10_DEPTH_STENCIL_VIEW_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Vertex Shader +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 9B7E4C0A-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10VertexShader + : ID3D10DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Geometry Shader +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 6316BE88-54CD-4040-AB44-20461BC81F68 ), object, local, pointer_default( unique ) ] +interface ID3D10GeometryShader + : ID3D10DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Pixel Shader +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 4968B601-9D00-4cde-8346-8E7F675819B6 ), object, local, pointer_default( unique ) ] +interface ID3D10PixelShader + : ID3D10DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// InputLayout +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 9B7E4C0B-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10InputLayout + : ID3D10DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Sampler +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef enum D3D10_FILTER +{ + // Bits used in defining enumeration of valid filters: + // bits [1:0] - mip: 0 == point, 1 == linear, 2,3 unused + // bits [3:2] - mag: 0 == point, 1 == linear, 2,3 unused + // bits [5:4] - min: 0 == point, 1 == linear, 2,3 unused + // bit [6] - aniso + // bit [7] - comparison + // bit [31] - mono 1-bit (narrow-purpose filter) + + D3D10_FILTER_MIN_MAG_MIP_POINT = 0x00000000, + D3D10_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x00000001, + D3D10_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x00000004, + D3D10_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x00000005, + D3D10_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x00000010, + D3D10_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x00000011, + D3D10_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x00000014, + D3D10_FILTER_MIN_MAG_MIP_LINEAR = 0x00000015, + D3D10_FILTER_ANISOTROPIC = 0x00000055, + D3D10_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x00000080, + D3D10_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x00000081, + D3D10_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x00000084, + D3D10_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x00000085, + D3D10_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x00000090, + D3D10_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x00000091, + D3D10_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x00000094, + D3D10_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x00000095, + D3D10_FILTER_COMPARISON_ANISOTROPIC = 0x000000d5, + + D3D10_FILTER_TEXT_1BIT = 0x80000000 // Only filter for R1_UNORM format + +} D3D10_FILTER; + +typedef enum D3D10_FILTER_TYPE +{ + D3D10_FILTER_TYPE_POINT = 0, + D3D10_FILTER_TYPE_LINEAR = 1, +} D3D10_FILTER_TYPE; + +const UINT D3D10_FILTER_TYPE_MASK = 0x00000003; +const UINT D3D10_MIN_FILTER_SHIFT = 4; +const UINT D3D10_MAG_FILTER_SHIFT = 2; +const UINT D3D10_MIP_FILTER_SHIFT = 0; +const UINT D3D10_COMPARISON_FILTERING_BIT = 0x00000080; +const UINT D3D10_ANISOTROPIC_FILTERING_BIT = 0x00000040; +const UINT D3D10_TEXT_1BIT_BIT = 0x80000000; + +// encode enum entry for most filters except anisotropic filtering +cpp_quote( "#define D3D10_ENCODE_BASIC_FILTER( min, mag, mip, bComparison ) \\" ) +cpp_quote( " ( ( D3D10_FILTER ) ( \\" ) +cpp_quote( " ( ( bComparison ) ? D3D10_COMPARISON_FILTERING_BIT : 0 ) | \\" ) +cpp_quote( " ( ( ( min ) & D3D10_FILTER_TYPE_MASK ) << D3D10_MIN_FILTER_SHIFT ) | \\" ) +cpp_quote( " ( ( ( mag ) & D3D10_FILTER_TYPE_MASK ) << D3D10_MAG_FILTER_SHIFT ) | \\" ) +cpp_quote( " ( ( ( mip ) & D3D10_FILTER_TYPE_MASK ) << D3D10_MIP_FILTER_SHIFT ) ) ) " ) + +// encode enum entry for anisotropic filtering (with or without comparison filtering) +cpp_quote( "#define D3D10_ENCODE_ANISOTROPIC_FILTER( bComparison ) \\" ) +cpp_quote( " ( ( D3D10_FILTER ) ( \\" ) +cpp_quote( " D3D10_ANISOTROPIC_FILTERING_BIT | \\" ) +cpp_quote( " D3D10_ENCODE_BASIC_FILTER( D3D10_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " D3D10_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " D3D10_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " bComparison ) ) ) " ) + +cpp_quote( "#define D3D10_DECODE_MIN_FILTER( d3d10Filter ) \\" ) +cpp_quote( " ( ( D3D10_FILTER_TYPE ) \\" ) +cpp_quote( " ( ( ( d3d10Filter ) >> D3D10_MIN_FILTER_SHIFT ) & D3D10_FILTER_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D10_DECODE_MAG_FILTER( d3d10Filter ) \\" ) +cpp_quote( " ( ( D3D10_FILTER_TYPE ) \\" ) +cpp_quote( " ( ( ( d3d10Filter ) >> D3D10_MAG_FILTER_SHIFT ) & D3D10_FILTER_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D10_DECODE_MIP_FILTER( d3d10Filter ) \\" ) +cpp_quote( " ( ( D3D10_FILTER_TYPE ) \\" ) +cpp_quote( " ( ( ( d3d10Filter ) >> D3D10_MIP_FILTER_SHIFT ) & D3D10_FILTER_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D10_DECODE_IS_COMPARISON_FILTER( d3d10Filter ) \\" ) +cpp_quote( " ( ( d3d10Filter ) & D3D10_COMPARISON_FILTERING_BIT ) " ) + +cpp_quote( "#define D3D10_DECODE_IS_ANISOTROPIC_FILTER( d3d10Filter ) \\" ) +cpp_quote( " ( ( ( d3d10Filter ) & D3D10_ANISOTROPIC_FILTERING_BIT ) && \\" ) +cpp_quote( " ( D3D10_FILTER_TYPE_LINEAR == D3D10_DECODE_MIN_FILTER( d3d10Filter ) ) && \\" ) +cpp_quote( " ( D3D10_FILTER_TYPE_LINEAR == D3D10_DECODE_MAG_FILTER( d3d10Filter ) ) && \\" ) +cpp_quote( " ( D3D10_FILTER_TYPE_LINEAR == D3D10_DECODE_MIP_FILTER( d3d10Filter ) ) ) " ) + +cpp_quote( "#define D3D10_DECODE_IS_TEXT_1BIT_FILTER( d3d10Filter ) \\" ) +cpp_quote( " ( ( d3d10Filter ) == D3D10_TEXT_1BIT_BIT ) " ) + +typedef enum D3D10_TEXTURE_ADDRESS_MODE +{ + D3D10_TEXTURE_ADDRESS_WRAP = 1, + D3D10_TEXTURE_ADDRESS_MIRROR = 2, + D3D10_TEXTURE_ADDRESS_CLAMP = 3, + D3D10_TEXTURE_ADDRESS_BORDER = 4, + D3D10_TEXTURE_ADDRESS_MIRROR_ONCE = 5 +} D3D10_TEXTURE_ADDRESS_MODE; + +typedef struct D3D10_SAMPLER_DESC +{ + D3D10_FILTER Filter; + D3D10_TEXTURE_ADDRESS_MODE AddressU; + D3D10_TEXTURE_ADDRESS_MODE AddressV; + D3D10_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D10_COMPARISON_FUNC ComparisonFunc; + FLOAT BorderColor[4]; // RGBA + FLOAT MinLOD; + FLOAT MaxLOD; +} D3D10_SAMPLER_DESC; + +[ uuid( 9B7E4C0C-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10SamplerState + : ID3D10DeviceChild +{ + void GetDesc( [annotation("_Out_")] D3D10_SAMPLER_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Format Support Flags for CheckFormatSupport API +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D10_FORMAT_SUPPORT +{ + D3D10_FORMAT_SUPPORT_BUFFER = 0x00000001, + D3D10_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002, + D3D10_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004, + D3D10_FORMAT_SUPPORT_SO_BUFFER = 0x00000008, + D3D10_FORMAT_SUPPORT_TEXTURE1D = 0x00000010, + D3D10_FORMAT_SUPPORT_TEXTURE2D = 0x00000020, + D3D10_FORMAT_SUPPORT_TEXTURE3D = 0x00000040, + D3D10_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080, + D3D10_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100, + D3D10_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200, + D3D10_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400, + D3D10_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800, + D3D10_FORMAT_SUPPORT_MIP = 0x00001000, + D3D10_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000, + D3D10_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000, + D3D10_FORMAT_SUPPORT_BLENDABLE = 0x00008000, + D3D10_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000, + D3D10_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000, + D3D10_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000, + D3D10_FORMAT_SUPPORT_DISPLAY = 0x00080000, + D3D10_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000, + D3D10_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000, + D3D10_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000, + D3D10_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000, + D3D10_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000, +} D3D10_FORMAT_SUPPORT; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Query +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 9B7E4C0D-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Asynchronous + : ID3D10DeviceChild +{ + void Begin(); + void End(); + HRESULT GetData( + [annotation("_Out_writes_bytes_opt_(DataSize)")] void* pData, + [annotation("_In_")] UINT DataSize, + [annotation("_In_")] UINT GetDataFlags ); + UINT GetDataSize(); +}; + +typedef enum D3D10_ASYNC_GETDATA_FLAG +{ + D3D10_ASYNC_GETDATA_DONOTFLUSH = 0x1, +} D3D10_ASYNC_GETDATA_FLAG; + + +typedef enum D3D10_QUERY +{ + D3D10_QUERY_EVENT = 0, + D3D10_QUERY_OCCLUSION, + D3D10_QUERY_TIMESTAMP, + D3D10_QUERY_TIMESTAMP_DISJOINT, + D3D10_QUERY_PIPELINE_STATISTICS, + D3D10_QUERY_OCCLUSION_PREDICATE, + D3D10_QUERY_SO_STATISTICS, + D3D10_QUERY_SO_OVERFLOW_PREDICATE, +} D3D10_QUERY; + +typedef enum D3D10_QUERY_MISC_FLAG +{ + D3D10_QUERY_MISC_PREDICATEHINT = 0x1, +} D3D10_QUERY_MISC_FLAG; + +typedef struct D3D10_QUERY_DESC +{ + D3D10_QUERY Query; + UINT MiscFlags; +} D3D10_QUERY_DESC; + +[ uuid( 9B7E4C0E-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Query + : ID3D10Asynchronous +{ + void GetDesc( [annotation("_Out_")] D3D10_QUERY_DESC* pDesc ); +}; + +[ uuid( 9B7E4C10-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Predicate + : ID3D10Query +{ +}; + +typedef struct D3D10_QUERY_DATA_TIMESTAMP_DISJOINT +{ + UINT64 Frequency; + BOOL Disjoint; +} D3D10_QUERY_DATA_TIMESTAMP_DISJOINT; + +typedef struct D3D10_QUERY_DATA_PIPELINE_STATISTICS +{ + UINT64 IAVertices; + UINT64 IAPrimitives; + UINT64 VSInvocations; + UINT64 GSInvocations; + UINT64 GSPrimitives; + UINT64 CInvocations; + UINT64 CPrimitives; + UINT64 PSInvocations; +} D3D10_QUERY_DATA_PIPELINE_STATISTICS; + +typedef struct D3D10_QUERY_DATA_SO_STATISTICS +{ + UINT64 NumPrimitivesWritten; + UINT64 PrimitivesStorageNeeded; +} D3D10_QUERY_DATA_SO_STATISTICS; + +typedef enum D3D10_COUNTER +{ + D3D10_COUNTER_GPU_IDLE = 0, + D3D10_COUNTER_VERTEX_PROCESSING, + D3D10_COUNTER_GEOMETRY_PROCESSING, + D3D10_COUNTER_PIXEL_PROCESSING, + D3D10_COUNTER_OTHER_GPU_PROCESSING, + D3D10_COUNTER_HOST_ADAPTER_BANDWIDTH_UTILIZATION, + D3D10_COUNTER_LOCAL_VIDMEM_BANDWIDTH_UTILIZATION, + D3D10_COUNTER_VERTEX_THROUGHPUT_UTILIZATION, + D3D10_COUNTER_TRIANGLE_SETUP_THROUGHPUT_UTILIZATION, + D3D10_COUNTER_FILLRATE_THROUGHPUT_UTILIZATION, + D3D10_COUNTER_VS_MEMORY_LIMITED, + D3D10_COUNTER_VS_COMPUTATION_LIMITED, + D3D10_COUNTER_GS_MEMORY_LIMITED, + D3D10_COUNTER_GS_COMPUTATION_LIMITED, + D3D10_COUNTER_PS_MEMORY_LIMITED, + D3D10_COUNTER_PS_COMPUTATION_LIMITED, + D3D10_COUNTER_POST_TRANSFORM_CACHE_HIT_RATE, + D3D10_COUNTER_TEXTURE_CACHE_HIT_RATE, + + D3D10_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000, // DO NOT define any more D3D10_COUNTER values after this. +} D3D10_COUNTER; + +typedef enum D3D10_COUNTER_TYPE +{ + D3D10_COUNTER_TYPE_FLOAT32, + D3D10_COUNTER_TYPE_UINT16, + D3D10_COUNTER_TYPE_UINT32, + D3D10_COUNTER_TYPE_UINT64, +} D3D10_COUNTER_TYPE; + +typedef struct D3D10_COUNTER_DESC +{ + D3D10_COUNTER Counter; + UINT MiscFlags; +} D3D10_COUNTER_DESC; + + +typedef struct D3D10_COUNTER_INFO +{ + D3D10_COUNTER LastDeviceDependentCounter; + UINT NumSimultaneousCounters; + UINT8 NumDetectableParallelUnits; +} D3D10_COUNTER_INFO; + +[ uuid( 9B7E4C11-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Counter + : ID3D10Asynchronous +{ + void GetDesc( [annotation("_Out_")] D3D10_COUNTER_DESC* pDesc ); +}; + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Device +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( 9B7E4C0F-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Device + : IUnknown +{ + // !!! Order of functions is in decreasing order of priority ( as far as performance is concerned ) !!! + // !!! BEGIN HIGH-FREQUENCY !!! + void VSSetConstantBuffers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D10Buffer*const* ppConstantBuffers ); + void PSSetShaderResources( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D10ShaderResourceView*const* ppShaderResourceViews ); + void PSSetShader( [annotation("_In_opt_")] ID3D10PixelShader* pPixelShader ); + void PSSetSamplers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_In_reads_opt_(NumSamplers)")] ID3D10SamplerState*const* ppSamplers ); + void VSSetShader( [annotation("_In_opt_")] ID3D10VertexShader* pVertexShader ); + void DrawIndexed( + [annotation("_In_")] UINT IndexCount, + [annotation("_In_")] UINT StartIndexLocation, + [annotation("_In_")] INT BaseVertexLocation ); + void Draw( + [annotation("_In_")] UINT VertexCount, + [annotation("_In_")] UINT StartVertexLocation ); + /* CB Lock/ Dynamic Lock & Unlock */ + void PSSetConstantBuffers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D10Buffer*const* ppConstantBuffers ); + void IASetInputLayout( [annotation("_In_opt_")] ID3D10InputLayout* pInputLayout ); + void IASetVertexBuffers( + [annotation("_In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D10Buffer*const* ppVertexBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pStrides, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pOffsets ); + void IASetIndexBuffer( + [annotation("_In_opt_")] ID3D10Buffer* pIndexBuffer, + [annotation("_In_")] DXGI_FORMAT Format, + [annotation("_In_")] UINT Offset ); + // !!! END HIGH-FREQUENCY !!! + + // !!! Order of functions is in decreasing order of priority ( as far as performance is concerned ) !!! + // !!! BEGIN MIDDLE-FREQUENCY !!! + void DrawIndexedInstanced( + [annotation("_In_")] UINT IndexCountPerInstance, + [annotation("_In_")] UINT InstanceCount, + [annotation("_In_")] UINT StartIndexLocation, + [annotation("_In_")] INT BaseVertexLocation, + [annotation("_In_")] UINT StartInstanceLocation ); + void DrawInstanced( + [annotation("_In_")] UINT VertexCountPerInstance, + [annotation("_In_")] UINT InstanceCount, + [annotation("_In_")] UINT StartVertexLocation, + [annotation("_In_")] UINT StartInstanceLocation ); + void GSSetConstantBuffers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D10Buffer*const* ppConstantBuffers ); + void GSSetShader( [annotation("_In_opt_")] ID3D10GeometryShader* pShader ); + void IASetPrimitiveTopology( [annotation("_In_")] D3D10_PRIMITIVE_TOPOLOGY Topology ); + void VSSetShaderResources( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D10ShaderResourceView*const* ppShaderResourceViews ); + void VSSetSamplers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_In_reads_opt_(NumSamplers)")] ID3D10SamplerState*const* ppSamplers ); + void SetPredication( + [annotation("_In_opt_")] ID3D10Predicate* pPredicate, + [annotation("_In_")] BOOL PredicateValue ); + void GSSetShaderResources( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D10ShaderResourceView*const* ppShaderResourceViews ); + void GSSetSamplers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_In_reads_opt_(NumSamplers)")] ID3D10SamplerState*const* ppSamplers ); + void OMSetRenderTargets( + [annotation("_In_range_( 0, D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D10RenderTargetView*const* ppRenderTargetViews, + [annotation("_In_opt_")] ID3D10DepthStencilView* pDepthStencilView ); + void OMSetBlendState( + [annotation("_In_opt_")] ID3D10BlendState *pBlendState, + [annotation("_In_")] const FLOAT BlendFactor[ 4 ], + [annotation("_In_")] UINT SampleMask ); + void OMSetDepthStencilState( + [annotation("_In_opt_")] ID3D10DepthStencilState* pDepthStencilState, + [annotation("_In_")] UINT StencilRef ); + void SOSetTargets( + [annotation("_In_range_( 0, D3D10_SO_BUFFER_SLOT_COUNT)")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D10Buffer*const* ppSOTargets, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pOffsets ); + void DrawAuto(); + void RSSetState( [annotation("_In_opt_")] ID3D10RasterizerState* pRasterizerState ); + void RSSetViewports( + [annotation("_In_range_(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE)")] UINT NumViewports, + [annotation("_In_reads_opt_(NumViewports)")] const D3D10_VIEWPORT* pViewports ); + void RSSetScissorRects( + [annotation("_In_range_(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE)")] UINT NumRects, + [annotation("_In_reads_opt_(NumRects)")] const D3D10_RECT* pRects ); + void CopySubresourceRegion( + [annotation("_In_")] ID3D10Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_")] UINT DstX, + [annotation("_In_")] UINT DstY, + [annotation("_In_")] UINT DstZ, + [annotation("_In_")] ID3D10Resource* pSrcResource, + [annotation("_In_")] UINT SrcSubresource, + [annotation("_In_opt_")] const D3D10_BOX* pSrcBox ); + void CopyResource( + [annotation("_In_")] ID3D10Resource* pDstResource, + [annotation("_In_")] ID3D10Resource* pSrcResource ); + void UpdateSubresource( + [annotation("_In_")] ID3D10Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_opt_")] const D3D10_BOX* pDstBox, + [annotation("_In_")] const void* pSrcData, + [annotation("_In_")] UINT SrcRowPitch, + [annotation("_In_")] UINT SrcDepthPitch ); + void ClearRenderTargetView( + [annotation("_In_")] ID3D10RenderTargetView* pRenderTargetView, + [annotation("_In_")] const FLOAT ColorRGBA[ 4 ] ); + void ClearDepthStencilView( + [annotation("_In_")] ID3D10DepthStencilView* pDepthStencilView, + [annotation("_In_")] UINT ClearFlags, + [annotation("_In_")] FLOAT Depth, + [annotation("_In_")] UINT8 Stencil ); + void GenerateMips( [annotation("_In_")] ID3D10ShaderResourceView* pShaderResourceView ); + void ResolveSubresource( + [annotation("_In_")] ID3D10Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_")] ID3D10Resource* pSrcResource, + [annotation("_In_")] UINT SrcSubresource, + [annotation("_In_")] DXGI_FORMAT Format ); + +// GET functions + void VSGetConstantBuffers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D10Buffer** ppConstantBuffers ); + void PSGetShaderResources( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D10ShaderResourceView** ppShaderResourceViews ); + void PSGetShader( [annotation("_Out_")] ID3D10PixelShader** ppPixelShader ); + void PSGetSamplers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_Out_writes_opt_(NumSamplers)")] ID3D10SamplerState** ppSamplers ); + void VSGetShader( [annotation("_Out_")] ID3D10VertexShader** ppVertexShader ); + void PSGetConstantBuffers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D10Buffer** ppConstantBuffers ); + void IAGetInputLayout( [annotation("_Out_")] ID3D10InputLayout** ppInputLayout ); + void IAGetVertexBuffers( + [annotation("_In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D10Buffer** ppVertexBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pStrides, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pOffsets ); + void IAGetIndexBuffer( + [annotation("_Out_opt_")] ID3D10Buffer** pIndexBuffer, + [annotation("_Out_opt_")] DXGI_FORMAT* Format, + [annotation("_Out_opt_")] UINT* Offset ); + void GSGetConstantBuffers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D10Buffer** ppConstantBuffers ); + void GSGetShader( [annotation("_Out_")] ID3D10GeometryShader** ppGeometryShader ); + void IAGetPrimitiveTopology( [annotation("_Out_")] D3D10_PRIMITIVE_TOPOLOGY* pTopology ); + void VSGetShaderResources( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D10ShaderResourceView** ppShaderResourceViews ); + void VSGetSamplers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_Out_writes_opt_(NumSamplers)")] ID3D10SamplerState** ppSamplers ); + void GetPredication( + [annotation("_Out_opt_")] ID3D10Predicate** ppPredicate, + [annotation("_Out_opt_")] BOOL* pPredicateValue ); + void GSGetShaderResources( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D10ShaderResourceView** ppShaderResourceViews ); + void GSGetSamplers( + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_Out_writes_opt_(NumSamplers)")] ID3D10SamplerState** ppSamplers ); + void OMGetRenderTargets( + [annotation("_In_range_( 0, D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D10RenderTargetView** ppRenderTargetViews, + [annotation("_Out_opt_")] ID3D10DepthStencilView** ppDepthStencilView ); + void OMGetBlendState( + [annotation("_Out_opt_")] ID3D10BlendState** ppBlendState, + [annotation("_Out_opt_")] FLOAT BlendFactor[ 4 ], //4 + [annotation("_Out_opt_")] UINT* pSampleMask ); + void OMGetDepthStencilState( + [annotation("_Out_opt_")] ID3D10DepthStencilState** ppDepthStencilState, + [annotation("_Out_opt_")] UINT* pStencilRef ); + void SOGetTargets( + [annotation("_In_range_( 0, D3D10_SO_BUFFER_SLOT_COUNT )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D10Buffer** ppSOTargets, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pOffsets ); + void RSGetState( [annotation("_Out_")] ID3D10RasterizerState** ppRasterizerState ); + void RSGetViewports( + [annotation("_Inout_ /*_range(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ ")] UINT* NumViewports, + [annotation("_Out_writes_opt_(*NumViewports)")] D3D10_VIEWPORT* pViewports ); + void RSGetScissorRects( + [annotation("_Inout_ /*_range(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ ")] UINT* NumRects, + [annotation("_Out_writes_opt_(*NumRects)")] D3D10_RECT* pRects ); +// /GET functions + + HRESULT GetDeviceRemovedReason(); + HRESULT SetExceptionMode( UINT RaiseFlags ); + UINT GetExceptionMode(); + HRESULT GetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_Inout_")] UINT* pDataSize, + [annotation("_Out_writes_bytes_opt_(*pDataSize)")] void* pData ); + HRESULT SetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_In_")] UINT DataSize, + [annotation("_In_reads_bytes_opt_(DataSize)")] const void* pData ); + HRESULT SetPrivateDataInterface( + [annotation("_In_")] REFGUID guid, + [annotation("_In_opt_")] const IUnknown* pData ); + void ClearState(); + void Flush(); + // !!! END MIDDLE-FREQUENCY !!! + + // !!! Order of functions is in decreasing order of priority ( as far as performance is concerned ) !!! + // !!! BEGIN LOW-FREQUENCY !!! + HRESULT CreateBuffer( + [annotation("_In_")] const D3D10_BUFFER_DESC* pDesc, + [annotation("_In_opt_")] const D3D10_SUBRESOURCE_DATA* pInitialData, + [annotation("_Out_opt_")] ID3D10Buffer** ppBuffer ); + HRESULT CreateTexture1D( + [annotation("_In_")] const D3D10_TEXTURE1D_DESC* pDesc, + [annotation("_In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize))")] const D3D10_SUBRESOURCE_DATA* pInitialData, + [annotation("_Out_")] ID3D10Texture1D** ppTexture1D ); + HRESULT CreateTexture2D( + [annotation("_In_")] const D3D10_TEXTURE2D_DESC* pDesc, + [annotation("_In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize))")] const D3D10_SUBRESOURCE_DATA* pInitialData, + [annotation("_Out_")] ID3D10Texture2D** ppTexture2D ); + HRESULT CreateTexture3D( + [annotation("_In_")] const D3D10_TEXTURE3D_DESC* pDesc, + [annotation("_In_reads_opt_(_Inexpressible_(pDesc->MipLevels))")] const D3D10_SUBRESOURCE_DATA* pInitialData, + [annotation("_Out_")] ID3D10Texture3D** ppTexture3D ); + HRESULT CreateShaderResourceView( + [annotation("_In_")] ID3D10Resource* pResource, + [annotation("_In_opt_")] const D3D10_SHADER_RESOURCE_VIEW_DESC* pDesc, + [annotation("_Out_opt_")] ID3D10ShaderResourceView** ppSRView ); + HRESULT CreateRenderTargetView( + [annotation("_In_")] ID3D10Resource* pResource, + [annotation("_In_opt_")] const D3D10_RENDER_TARGET_VIEW_DESC* pDesc, + [annotation("_Out_opt_")] ID3D10RenderTargetView** ppRTView ); + HRESULT CreateDepthStencilView( + [annotation("_In_")] ID3D10Resource* pResource, + [annotation("_In_opt_")] const D3D10_DEPTH_STENCIL_VIEW_DESC* pDesc, + [annotation("_Out_opt_")] ID3D10DepthStencilView** ppDepthStencilView ); + HRESULT CreateInputLayout( + [annotation("_In_reads_(NumElements)")] const D3D10_INPUT_ELEMENT_DESC* pInputElementDescs, + [annotation("_In_range_( 0, D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT )")] UINT NumElements, + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecodeWithInputSignature, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_Out_opt_")] ID3D10InputLayout** ppInputLayout ); + HRESULT CreateVertexShader( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_Out_opt_")] ID3D10VertexShader** ppVertexShader ); + HRESULT CreateGeometryShader( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_Out_opt_")] ID3D10GeometryShader** ppGeometryShader ); + HRESULT CreateGeometryShaderWithStreamOutput( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_In_reads_opt_(NumEntries)")] const D3D10_SO_DECLARATION_ENTRY* pSODeclaration, + [annotation("_In_range_( 0, D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT )")] UINT NumEntries, + [annotation("_In_")] UINT OutputStreamStride, + [annotation("_Out_opt_")] ID3D10GeometryShader** ppGeometryShader ); + HRESULT CreatePixelShader( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_Out_opt_")] ID3D10PixelShader** ppPixelShader ); + HRESULT CreateBlendState( + [annotation("_In_")] const D3D10_BLEND_DESC* pBlendStateDesc, + [annotation("_Out_opt_")] ID3D10BlendState** ppBlendState ); + HRESULT CreateDepthStencilState( + [annotation("_In_")] const D3D10_DEPTH_STENCIL_DESC* pDepthStencilDesc, + [annotation("_Out_opt_")] ID3D10DepthStencilState** ppDepthStencilState ); + HRESULT CreateRasterizerState( + [annotation("_In_")] const D3D10_RASTERIZER_DESC* pRasterizerDesc, + [annotation("_Out_opt_")] ID3D10RasterizerState** ppRasterizerState ); + HRESULT CreateSamplerState( + [annotation("_In_")] const D3D10_SAMPLER_DESC* pSamplerDesc, + [annotation("_Out_opt_")] ID3D10SamplerState** ppSamplerState ); + HRESULT CreateQuery( + [annotation("_In_")] const D3D10_QUERY_DESC* pQueryDesc, + [annotation("_Out_opt_")] ID3D10Query** ppQuery ); + HRESULT CreatePredicate( + [annotation("_In_")] const D3D10_QUERY_DESC* pPredicateDesc, + [annotation("_Out_opt_")] ID3D10Predicate** ppPredicate ); + HRESULT CreateCounter( + [annotation("_In_")] const D3D10_COUNTER_DESC* pCounterDesc, + [annotation("_Out_opt_")] ID3D10Counter** ppCounter ); + + HRESULT CheckFormatSupport( + [annotation("_In_")] DXGI_FORMAT Format, + [annotation("_Out_")] UINT* pFormatSupport ); + HRESULT CheckMultisampleQualityLevels( + [annotation("_In_")] DXGI_FORMAT Format, + [annotation("_In_")] UINT SampleCount, + [annotation("_Out_")] UINT* pNumQualityLevels ); + void CheckCounterInfo( [annotation("_Out_")] D3D10_COUNTER_INFO* pCounterInfo ); + HRESULT CheckCounter( + [annotation("_In_")] const D3D10_COUNTER_DESC* pDesc, + [annotation("_Out_")] D3D10_COUNTER_TYPE* pType, + [annotation("_Out_")] UINT* pActiveCounters, + [annotation("_Out_writes_opt_(*pNameLength)")] LPSTR szName, + [annotation("_Inout_opt_")] UINT* pNameLength, + [annotation("_Out_writes_opt_(*pUnitsLength)")] LPSTR szUnits, + [annotation("_Inout_opt_")] UINT* pUnitsLength, + [annotation("_Out_writes_opt_(*pDescriptionLength)")] LPSTR szDescription, + [annotation("_Inout_opt_")] UINT* pDescriptionLength ); + UINT GetCreationFlags(); + HRESULT OpenSharedResource( + [annotation("_In_")] HANDLE hResource, + [annotation("_In_")] REFIID ReturnedInterface, + [annotation("_Out_opt_")] void ** ppResource); + void SetTextFilterSize( + [annotation("_In_")] UINT Width, + [annotation("_In_")] UINT Height ); + void GetTextFilterSize( + [annotation("_Out_opt_")] UINT* pWidth, + [annotation("_Out_opt_")] UINT* pHeight ); + // !!! END LOW-FREQUENCY !!! +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +cpp_quote("#pragma endregion") + +#pragma region Application Family +cpp_quote("#pragma region Application Family") +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +//================================================================================================================================== +// +// Multithread Layer +// +//================================================================================================================================== +[ uuid( 9B7E4E00-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Multithread + : IUnknown +{ + void Enter(); + void Leave(); + BOOL SetMultithreadProtected( [annotation("_In_")] BOOL bMTProtect ); + BOOL GetMultithreadProtected(); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +cpp_quote("#pragma endregion") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +typedef enum D3D10_CREATE_DEVICE_FLAG +{ + D3D10_CREATE_DEVICE_SINGLETHREADED = 0x1, + D3D10_CREATE_DEVICE_DEBUG = 0x2, + D3D10_CREATE_DEVICE_SWITCH_TO_REF = 0x4, + D3D10_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x8, + D3D10_CREATE_DEVICE_ALLOW_NULL_FROM_MAP = 0x10, + D3D10_CREATE_DEVICE_BGRA_SUPPORT = 0x20, + D3D10_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080, + D3D10_CREATE_DEVICE_STRICT_VALIDATION = 0x0200, + D3D10_CREATE_DEVICE_DEBUGGABLE = 0x0400, + +} D3D10_CREATE_DEVICE_FLAG; + +cpp_quote( "" ) + +const UINT D3D10_SDK_VERSION = 29; + +cpp_quote( "#if !defined( D3D10_IGNORE_SDK_LAYERS ) ") +cpp_quote( "#include \"d3d10sdklayers.h\" ") +cpp_quote( "#endif ") +cpp_quote( "#include \"d3d10misc.h\" ") +cpp_quote( "#include \"d3d10shader.h\" ") +cpp_quote( "#include \"d3d10effect.h\" ") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + + +cpp_quote( "DEFINE_GUID(IID_ID3D10DeviceChild,0x9B7E4C00,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10DepthStencilState,0x2B4B1CC8,0xA4AD,0x41f8,0x83,0x22,0xCA,0x86,0xFC,0x3E,0xC6,0x75);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10BlendState,0xEDAD8D19,0x8A35,0x4d6d,0x85,0x66,0x2E,0xA2,0x76,0xCD,0xE1,0x61);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10RasterizerState,0xA2A07292,0x89AF,0x4345,0xBE,0x2E,0xC5,0x3D,0x9F,0xBB,0x6E,0x9F);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Resource,0x9B7E4C01,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Buffer,0x9B7E4C02,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Texture1D,0x9B7E4C03,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Texture2D,0x9B7E4C04,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Texture3D,0x9B7E4C05,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10View,0xC902B03F,0x60A7,0x49BA,0x99,0x36,0x2A,0x3A,0xB3,0x7A,0x7E,0x33);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10ShaderResourceView,0x9B7E4C07,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10RenderTargetView,0x9B7E4C08,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10DepthStencilView,0x9B7E4C09,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10VertexShader,0x9B7E4C0A,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10GeometryShader,0x6316BE88,0x54CD,0x4040,0xAB,0x44,0x20,0x46,0x1B,0xC8,0x1F,0x68);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10PixelShader,0x4968B601,0x9D00,0x4cde,0x83,0x46,0x8E,0x7F,0x67,0x58,0x19,0xB6);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10InputLayout,0x9B7E4C0B,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10SamplerState,0x9B7E4C0C,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Asynchronous,0x9B7E4C0D,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Query,0x9B7E4C0E,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Predicate,0x9B7E4C10,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Counter,0x9B7E4C11,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Device,0x9B7E4C0F,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Multithread,0x9B7E4E00,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10_1.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10_1.h new file mode 100644 index 0000000000000000000000000000000000000000..cf9fc451b288d6b21243b06a5834e692397ee63b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10_1.h @@ -0,0 +1,1921 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d10_1_h__ +#define __d3d10_1_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D10BlendState1_FWD_DEFINED__ +#define __ID3D10BlendState1_FWD_DEFINED__ +typedef interface ID3D10BlendState1 ID3D10BlendState1; + +#endif /* __ID3D10BlendState1_FWD_DEFINED__ */ + + +#ifndef __ID3D10ShaderResourceView1_FWD_DEFINED__ +#define __ID3D10ShaderResourceView1_FWD_DEFINED__ +typedef interface ID3D10ShaderResourceView1 ID3D10ShaderResourceView1; + +#endif /* __ID3D10ShaderResourceView1_FWD_DEFINED__ */ + + +#ifndef __ID3D10Device1_FWD_DEFINED__ +#define __ID3D10Device1_FWD_DEFINED__ +typedef interface ID3D10Device1 ID3D10Device1; + +#endif /* __ID3D10Device1_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d10_1_0000_0000 */ +/* [local] */ + +#if defined( __d3d10_h__ ) && !defined( D3D10_ARBITRARY_HEADER_ORDERING ) +#error d3d10.h is included before d3d10_1.h, and it will confuse tools that honor SAL annotations. \ +If possibly targeting d3d10.1, include d3d10_1.h instead of d3d10.h, or ensure d3d10_1.h is included before d3d10.h +#endif +#ifndef _D3D10_1_CONSTANTS +#define _D3D10_1_CONSTANTS +#define D3D10_1_DEFAULT_SAMPLE_MASK ( 0xffffffff ) + +#define D3D10_1_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 ) +#define D3D10_1_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f ) +#define D3D10_1_GS_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 ) + +#define D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 ) + +#define D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 ) + +#define D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 ) + +#define D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 ) + +#define D3D10_1_SHADER_MAJOR_VERSION ( 4 ) + +#define D3D10_1_SHADER_MINOR_VERSION ( 1 ) + +#define D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 ) + +#define D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 256 ) + +#define D3D10_1_SO_BUFFER_SLOT_COUNT ( 4 ) + +#define D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER ( 1 ) + +#define D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT ( 64 ) + +#define D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT ( 32 ) + +#define D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 ) + +#define D3D10_1_VS_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D10_1_VS_OUTPUT_REGISTER_COUNT ( 32 ) + +#endif +#include +#include "d3d10.h" // +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef +enum D3D10_FEATURE_LEVEL1 + { + D3D10_FEATURE_LEVEL_10_0 = 0xa000, + D3D10_FEATURE_LEVEL_10_1 = 0xa100, + D3D10_FEATURE_LEVEL_9_1 = 0x9100, + D3D10_FEATURE_LEVEL_9_2 = 0x9200, + D3D10_FEATURE_LEVEL_9_3 = 0x9300 + } D3D10_FEATURE_LEVEL1; + +typedef struct D3D10_RENDER_TARGET_BLEND_DESC1 + { + BOOL BlendEnable; + D3D10_BLEND SrcBlend; + D3D10_BLEND DestBlend; + D3D10_BLEND_OP BlendOp; + D3D10_BLEND SrcBlendAlpha; + D3D10_BLEND DestBlendAlpha; + D3D10_BLEND_OP BlendOpAlpha; + UINT8 RenderTargetWriteMask; + } D3D10_RENDER_TARGET_BLEND_DESC1; + +typedef struct D3D10_BLEND_DESC1 + { + BOOL AlphaToCoverageEnable; + BOOL IndependentBlendEnable; + D3D10_RENDER_TARGET_BLEND_DESC1 RenderTarget[ 8 ]; + } D3D10_BLEND_DESC1; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_1_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_1_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D10BlendState1_INTERFACE_DEFINED__ +#define __ID3D10BlendState1_INTERFACE_DEFINED__ + +/* interface ID3D10BlendState1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10BlendState1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EDAD8D99-8A35-4d6d-8566-2EA276CDE161") + ID3D10BlendState1 : public ID3D10BlendState + { + public: + virtual void STDMETHODCALLTYPE GetDesc1( + /* [annotation] */ + _Out_ D3D10_BLEND_DESC1 *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10BlendState1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10BlendState1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10BlendState1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10BlendState1 * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10BlendState1 * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10BlendState1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10BlendState1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10BlendState1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10BlendState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10BlendState1 * This, + /* [annotation] */ + _Out_ D3D10_BLEND_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D10BlendState1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D10BlendState1 * This, + /* [annotation] */ + _Out_ D3D10_BLEND_DESC1 *pDesc); + + END_INTERFACE + } ID3D10BlendState1Vtbl; + + interface ID3D10BlendState1 + { + CONST_VTBL struct ID3D10BlendState1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10BlendState1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10BlendState1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10BlendState1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10BlendState1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10BlendState1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10BlendState1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10BlendState1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10BlendState1_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D10BlendState1_GetDesc1(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10BlendState1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_1_0000_0001 */ +/* [local] */ + +typedef struct D3D10_TEXCUBE_ARRAY_SRV1 + { + UINT MostDetailedMip; + UINT MipLevels; + UINT First2DArrayFace; + UINT NumCubes; + } D3D10_TEXCUBE_ARRAY_SRV1; + +typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION1; + +typedef struct D3D10_SHADER_RESOURCE_VIEW_DESC1 + { + DXGI_FORMAT Format; + D3D10_SRV_DIMENSION1 ViewDimension; + union + { + D3D10_BUFFER_SRV Buffer; + D3D10_TEX1D_SRV Texture1D; + D3D10_TEX1D_ARRAY_SRV Texture1DArray; + D3D10_TEX2D_SRV Texture2D; + D3D10_TEX2D_ARRAY_SRV Texture2DArray; + D3D10_TEX2DMS_SRV Texture2DMS; + D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray; + D3D10_TEX3D_SRV Texture3D; + D3D10_TEXCUBE_SRV TextureCube; + D3D10_TEXCUBE_ARRAY_SRV1 TextureCubeArray; + } ; + } D3D10_SHADER_RESOURCE_VIEW_DESC1; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_1_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_1_0000_0001_v0_0_s_ifspec; + +#ifndef __ID3D10ShaderResourceView1_INTERFACE_DEFINED__ +#define __ID3D10ShaderResourceView1_INTERFACE_DEFINED__ + +/* interface ID3D10ShaderResourceView1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10ShaderResourceView1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C87-342C-4106-A19F-4F2704F689F0") + ID3D10ShaderResourceView1 : public ID3D10ShaderResourceView + { + public: + virtual void STDMETHODCALLTYPE GetDesc1( + /* [annotation] */ + _Out_ D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10ShaderResourceView1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10ShaderResourceView1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10ShaderResourceView1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10ShaderResourceView1 * This); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D10ShaderResourceView1 * This, + /* [annotation] */ + _Out_ ID3D10Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10ShaderResourceView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10ShaderResourceView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10ShaderResourceView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D10ShaderResourceView1 * This, + /* [annotation] */ + _Out_ ID3D10Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D10ShaderResourceView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D10ShaderResourceView1 * This, + /* [annotation] */ + _Out_ D3D10_SHADER_RESOURCE_VIEW_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D10ShaderResourceView1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D10ShaderResourceView1 * This, + /* [annotation] */ + _Out_ D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc); + + END_INTERFACE + } ID3D10ShaderResourceView1Vtbl; + + interface ID3D10ShaderResourceView1 + { + CONST_VTBL struct ID3D10ShaderResourceView1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10ShaderResourceView1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10ShaderResourceView1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10ShaderResourceView1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10ShaderResourceView1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D10ShaderResourceView1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10ShaderResourceView1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10ShaderResourceView1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D10ShaderResourceView1_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D10ShaderResourceView1_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D10ShaderResourceView1_GetDesc1(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10ShaderResourceView1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_1_0000_0002 */ +/* [local] */ + +typedef +enum D3D10_STANDARD_MULTISAMPLE_QUALITY_LEVELS + { + D3D10_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff, + D3D10_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe + } D3D10_STANDARD_MULTISAMPLE_QUALITY_LEVELS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_1_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_1_0000_0002_v0_0_s_ifspec; + +#ifndef __ID3D10Device1_INTERFACE_DEFINED__ +#define __ID3D10Device1_INTERFACE_DEFINED__ + +/* interface ID3D10Device1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Device1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4C8F-342C-4106-A19F-4F2704F689F0") + ID3D10Device1 : public ID3D10Device + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateShaderResourceView1( + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10ShaderResourceView1 **ppSRView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateBlendState1( + /* [annotation] */ + _In_ const D3D10_BLEND_DESC1 *pBlendStateDesc, + /* [annotation] */ + _Out_opt_ ID3D10BlendState1 **ppBlendState) = 0; + + virtual D3D10_FEATURE_LEVEL1 STDMETHODCALLTYPE GetFeatureLevel( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10Device1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Device1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Device1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Device1 * This); + + DECLSPEC_XFGVIRT(ID3D10Device, VSSetConstantBuffers) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, PSSetShaderResources) + void ( STDMETHODCALLTYPE *PSSetShaderResources )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, PSSetShader) + void ( STDMETHODCALLTYPE *PSSetShader )( + ID3D10Device1 * This, + /* [annotation] */ + _In_opt_ ID3D10PixelShader *pPixelShader); + + DECLSPEC_XFGVIRT(ID3D10Device, PSSetSamplers) + void ( STDMETHODCALLTYPE *PSSetSamplers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D10SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, VSSetShader) + void ( STDMETHODCALLTYPE *VSSetShader )( + ID3D10Device1 * This, + /* [annotation] */ + _In_opt_ ID3D10VertexShader *pVertexShader); + + DECLSPEC_XFGVIRT(ID3D10Device, DrawIndexed) + void ( STDMETHODCALLTYPE *DrawIndexed )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ UINT IndexCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation); + + DECLSPEC_XFGVIRT(ID3D10Device, Draw) + void ( STDMETHODCALLTYPE *Draw )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ UINT VertexCount, + /* [annotation] */ + _In_ UINT StartVertexLocation); + + DECLSPEC_XFGVIRT(ID3D10Device, PSSetConstantBuffers) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, IASetInputLayout) + void ( STDMETHODCALLTYPE *IASetInputLayout )( + ID3D10Device1 * This, + /* [annotation] */ + _In_opt_ ID3D10InputLayout *pInputLayout); + + DECLSPEC_XFGVIRT(ID3D10Device, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppVertexBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pStrides, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D10Device, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D10Device1 * This, + /* [annotation] */ + _In_opt_ ID3D10Buffer *pIndexBuffer, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT Offset); + + DECLSPEC_XFGVIRT(ID3D10Device, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ UINT IndexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D10Device, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ UINT VertexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D10Device, GSSetConstantBuffers) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, GSSetShader) + void ( STDMETHODCALLTYPE *GSSetShader )( + ID3D10Device1 * This, + /* [annotation] */ + _In_opt_ ID3D10GeometryShader *pShader); + + DECLSPEC_XFGVIRT(ID3D10Device, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ D3D10_PRIMITIVE_TOPOLOGY Topology); + + DECLSPEC_XFGVIRT(ID3D10Device, VSSetShaderResources) + void ( STDMETHODCALLTYPE *VSSetShaderResources )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, VSSetSamplers) + void ( STDMETHODCALLTYPE *VSSetSamplers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D10SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D10Device1 * This, + /* [annotation] */ + _In_opt_ ID3D10Predicate *pPredicate, + /* [annotation] */ + _In_ BOOL PredicateValue); + + DECLSPEC_XFGVIRT(ID3D10Device, GSSetShaderResources) + void ( STDMETHODCALLTYPE *GSSetShaderResources )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, GSSetSamplers) + void ( STDMETHODCALLTYPE *GSSetSamplers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D10SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D10RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D10DepthStencilView *pDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D10Device, OMSetBlendState) + void ( STDMETHODCALLTYPE *OMSetBlendState )( + ID3D10Device1 * This, + /* [annotation] */ + _In_opt_ ID3D10BlendState *pBlendState, + /* [annotation] */ + _In_ const FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _In_ UINT SampleMask); + + DECLSPEC_XFGVIRT(ID3D10Device, OMSetDepthStencilState) + void ( STDMETHODCALLTYPE *OMSetDepthStencilState )( + ID3D10Device1 * This, + /* [annotation] */ + _In_opt_ ID3D10DepthStencilState *pDepthStencilState, + /* [annotation] */ + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D10Device, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_SO_BUFFER_SLOT_COUNT) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D10Buffer *const *ppSOTargets, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D10Device, DrawAuto) + void ( STDMETHODCALLTYPE *DrawAuto )( + ID3D10Device1 * This); + + DECLSPEC_XFGVIRT(ID3D10Device, RSSetState) + void ( STDMETHODCALLTYPE *RSSetState )( + ID3D10Device1 * This, + /* [annotation] */ + _In_opt_ ID3D10RasterizerState *pRasterizerState); + + DECLSPEC_XFGVIRT(ID3D10Device, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + /* [annotation] */ + _In_reads_opt_(NumViewports) const D3D10_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D10Device, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D10_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D10Device, CopySubresourceRegion) + void ( STDMETHODCALLTYPE *CopySubresourceRegion )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D10Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D10_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D10Device, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ ID3D10Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D10Device, UpdateSubresource) + void ( STDMETHODCALLTYPE *UpdateSubresource )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D10_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D10Device, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10RenderTargetView *pRenderTargetView, + /* [annotation] */ + _In_ const FLOAT ColorRGBA[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D10Device, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_ UINT ClearFlags, + /* [annotation] */ + _In_ FLOAT Depth, + /* [annotation] */ + _In_ UINT8 Stencil); + + DECLSPEC_XFGVIRT(ID3D10Device, GenerateMips) + void ( STDMETHODCALLTYPE *GenerateMips )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10ShaderResourceView *pShaderResourceView); + + DECLSPEC_XFGVIRT(ID3D10Device, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ ID3D10Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D10Device, VSGetConstantBuffers) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, PSGetShaderResources) + void ( STDMETHODCALLTYPE *PSGetShaderResources )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, PSGetShader) + void ( STDMETHODCALLTYPE *PSGetShader )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_ ID3D10PixelShader **ppPixelShader); + + DECLSPEC_XFGVIRT(ID3D10Device, PSGetSamplers) + void ( STDMETHODCALLTYPE *PSGetSamplers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D10SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, VSGetShader) + void ( STDMETHODCALLTYPE *VSGetShader )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_ ID3D10VertexShader **ppVertexShader); + + DECLSPEC_XFGVIRT(ID3D10Device, PSGetConstantBuffers) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, IAGetInputLayout) + void ( STDMETHODCALLTYPE *IAGetInputLayout )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_ ID3D10InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D10Device, IAGetVertexBuffers) + void ( STDMETHODCALLTYPE *IAGetVertexBuffers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppVertexBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pStrides, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D10Device, IAGetIndexBuffer) + void ( STDMETHODCALLTYPE *IAGetIndexBuffer )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_opt_ ID3D10Buffer **pIndexBuffer, + /* [annotation] */ + _Out_opt_ DXGI_FORMAT *Format, + /* [annotation] */ + _Out_opt_ UINT *Offset); + + DECLSPEC_XFGVIRT(ID3D10Device, GSGetConstantBuffers) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D10Device, GSGetShader) + void ( STDMETHODCALLTYPE *GSGetShader )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_ ID3D10GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D10Device, IAGetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IAGetPrimitiveTopology )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_ D3D10_PRIMITIVE_TOPOLOGY *pTopology); + + DECLSPEC_XFGVIRT(ID3D10Device, VSGetShaderResources) + void ( STDMETHODCALLTYPE *VSGetShaderResources )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, VSGetSamplers) + void ( STDMETHODCALLTYPE *VSGetSamplers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D10SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, GetPredication) + void ( STDMETHODCALLTYPE *GetPredication )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_opt_ ID3D10Predicate **ppPredicate, + /* [annotation] */ + _Out_opt_ BOOL *pPredicateValue); + + DECLSPEC_XFGVIRT(ID3D10Device, GSGetShaderResources) + void ( STDMETHODCALLTYPE *GSGetShaderResources )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D10Device, GSGetSamplers) + void ( STDMETHODCALLTYPE *GSGetSamplers )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D10SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D10Device, OMGetRenderTargets) + void ( STDMETHODCALLTYPE *OMGetRenderTargets )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D10RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D10Device, OMGetBlendState) + void ( STDMETHODCALLTYPE *OMGetBlendState )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_opt_ ID3D10BlendState **ppBlendState, + /* [annotation] */ + _Out_opt_ FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _Out_opt_ UINT *pSampleMask); + + DECLSPEC_XFGVIRT(ID3D10Device, OMGetDepthStencilState) + void ( STDMETHODCALLTYPE *OMGetDepthStencilState )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilState **ppDepthStencilState, + /* [annotation] */ + _Out_opt_ UINT *pStencilRef); + + DECLSPEC_XFGVIRT(ID3D10Device, SOGetTargets) + void ( STDMETHODCALLTYPE *SOGetTargets )( + ID3D10Device1 * This, + /* [annotation] */ + _In_range_( 0, D3D10_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D10Buffer **ppSOTargets, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D10Device, RSGetState) + void ( STDMETHODCALLTYPE *RSGetState )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_ ID3D10RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D10Device, RSGetViewports) + void ( STDMETHODCALLTYPE *RSGetViewports )( + ID3D10Device1 * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *NumViewports, + /* [annotation] */ + _Out_writes_opt_(*NumViewports) D3D10_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D10Device, RSGetScissorRects) + void ( STDMETHODCALLTYPE *RSGetScissorRects )( + ID3D10Device1 * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *NumRects, + /* [annotation] */ + _Out_writes_opt_(*NumRects) D3D10_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D10Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D10Device1 * This); + + DECLSPEC_XFGVIRT(ID3D10Device, SetExceptionMode) + HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )( + ID3D10Device1 * This, + UINT RaiseFlags); + + DECLSPEC_XFGVIRT(ID3D10Device, GetExceptionMode) + UINT ( STDMETHODCALLTYPE *GetExceptionMode )( + ID3D10Device1 * This); + + DECLSPEC_XFGVIRT(ID3D10Device, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D10Device, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D10Device, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D10Device, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D10Device1 * This); + + DECLSPEC_XFGVIRT(ID3D10Device, Flush) + void ( STDMETHODCALLTYPE *Flush )( + ID3D10Device1 * This); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateBuffer) + HRESULT ( STDMETHODCALLTYPE *CreateBuffer )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_BUFFER_DESC *pDesc, + /* [annotation] */ + _In_opt_ const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_opt_ ID3D10Buffer **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateTexture1D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_TEXTURE1D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_ ID3D10Texture1D **ppTexture1D); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateTexture2D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_TEXTURE2D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_ ID3D10Texture2D **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateTexture3D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_TEXTURE3D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D10_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _Out_ ID3D10Texture3D **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateShaderResourceView) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_SHADER_RESOURCE_VIEW_DESC *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10ShaderResourceView **ppSRView); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateRenderTargetView) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_RENDER_TARGET_VIEW_DESC *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10RenderTargetView **ppRTView); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateDepthStencilView) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_DEPTH_STENCIL_VIEW_DESC *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateInputLayout) + HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )( + ID3D10Device1 * This, + /* [annotation] */ + _In_reads_(NumElements) const D3D10_INPUT_ELEMENT_DESC *pInputElementDescs, + /* [annotation] */ + _In_range_( 0, D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateVertexShader) + HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )( + ID3D10Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10VertexShader **ppVertexShader); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateGeometryShader) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )( + ID3D10Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateGeometryShaderWithStreamOutput) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )( + ID3D10Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_reads_opt_(NumEntries) const D3D10_SO_DECLARATION_ENTRY *pSODeclaration, + /* [annotation] */ + _In_range_( 0, D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT ) UINT NumEntries, + /* [annotation] */ + _In_ UINT OutputStreamStride, + /* [annotation] */ + _Out_opt_ ID3D10GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D10Device, CreatePixelShader) + HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )( + ID3D10Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _Out_opt_ ID3D10PixelShader **ppPixelShader); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateBlendState) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_BLEND_DESC *pBlendStateDesc, + /* [annotation] */ + _Out_opt_ ID3D10BlendState **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateDepthStencilState) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_DEPTH_STENCIL_DESC *pDepthStencilDesc, + /* [annotation] */ + _Out_opt_ ID3D10DepthStencilState **ppDepthStencilState); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateRasterizerState) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_RASTERIZER_DESC *pRasterizerDesc, + /* [annotation] */ + _Out_opt_ ID3D10RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateSamplerState) + HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_SAMPLER_DESC *pSamplerDesc, + /* [annotation] */ + _Out_opt_ ID3D10SamplerState **ppSamplerState); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateQuery) + HRESULT ( STDMETHODCALLTYPE *CreateQuery )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_QUERY_DESC *pQueryDesc, + /* [annotation] */ + _Out_opt_ ID3D10Query **ppQuery); + + DECLSPEC_XFGVIRT(ID3D10Device, CreatePredicate) + HRESULT ( STDMETHODCALLTYPE *CreatePredicate )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_QUERY_DESC *pPredicateDesc, + /* [annotation] */ + _Out_opt_ ID3D10Predicate **ppPredicate); + + DECLSPEC_XFGVIRT(ID3D10Device, CreateCounter) + HRESULT ( STDMETHODCALLTYPE *CreateCounter )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_COUNTER_DESC *pCounterDesc, + /* [annotation] */ + _Out_opt_ ID3D10Counter **ppCounter); + + DECLSPEC_XFGVIRT(ID3D10Device, CheckFormatSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFormatSupport); + + DECLSPEC_XFGVIRT(ID3D10Device, CheckMultisampleQualityLevels) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D10Device, CheckCounterInfo) + void ( STDMETHODCALLTYPE *CheckCounterInfo )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_ D3D10_COUNTER_INFO *pCounterInfo); + + DECLSPEC_XFGVIRT(ID3D10Device, CheckCounter) + HRESULT ( STDMETHODCALLTYPE *CheckCounter )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_COUNTER_DESC *pDesc, + /* [annotation] */ + _Out_ D3D10_COUNTER_TYPE *pType, + /* [annotation] */ + _Out_ UINT *pActiveCounters, + /* [annotation] */ + _Out_writes_opt_(*pNameLength) LPSTR szName, + /* [annotation] */ + _Inout_opt_ UINT *pNameLength, + /* [annotation] */ + _Out_writes_opt_(*pUnitsLength) LPSTR szUnits, + /* [annotation] */ + _Inout_opt_ UINT *pUnitsLength, + /* [annotation] */ + _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription, + /* [annotation] */ + _Inout_opt_ UINT *pDescriptionLength); + + DECLSPEC_XFGVIRT(ID3D10Device, GetCreationFlags) + UINT ( STDMETHODCALLTYPE *GetCreationFlags )( + ID3D10Device1 * This); + + DECLSPEC_XFGVIRT(ID3D10Device, OpenSharedResource) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _Out_opt_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D10Device, SetTextFilterSize) + void ( STDMETHODCALLTYPE *SetTextFilterSize )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ UINT Width, + /* [annotation] */ + _In_ UINT Height); + + DECLSPEC_XFGVIRT(ID3D10Device, GetTextFilterSize) + void ( STDMETHODCALLTYPE *GetTextFilterSize )( + ID3D10Device1 * This, + /* [annotation] */ + _Out_opt_ UINT *pWidth, + /* [annotation] */ + _Out_opt_ UINT *pHeight); + + DECLSPEC_XFGVIRT(ID3D10Device1, CreateShaderResourceView1) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView1 )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ ID3D10Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc, + /* [annotation] */ + _Out_opt_ ID3D10ShaderResourceView1 **ppSRView); + + DECLSPEC_XFGVIRT(ID3D10Device1, CreateBlendState1) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )( + ID3D10Device1 * This, + /* [annotation] */ + _In_ const D3D10_BLEND_DESC1 *pBlendStateDesc, + /* [annotation] */ + _Out_opt_ ID3D10BlendState1 **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D10Device1, GetFeatureLevel) + D3D10_FEATURE_LEVEL1 ( STDMETHODCALLTYPE *GetFeatureLevel )( + ID3D10Device1 * This); + + END_INTERFACE + } ID3D10Device1Vtbl; + + interface ID3D10Device1 + { + CONST_VTBL struct ID3D10Device1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Device1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Device1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Device1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Device1_VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device1_PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device1_PSSetShader(This,pPixelShader) \ + ( (This)->lpVtbl -> PSSetShader(This,pPixelShader) ) + +#define ID3D10Device1_PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device1_VSSetShader(This,pVertexShader) \ + ( (This)->lpVtbl -> VSSetShader(This,pVertexShader) ) + +#define ID3D10Device1_DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) \ + ( (This)->lpVtbl -> DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) ) + +#define ID3D10Device1_Draw(This,VertexCount,StartVertexLocation) \ + ( (This)->lpVtbl -> Draw(This,VertexCount,StartVertexLocation) ) + +#define ID3D10Device1_PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device1_IASetInputLayout(This,pInputLayout) \ + ( (This)->lpVtbl -> IASetInputLayout(This,pInputLayout) ) + +#define ID3D10Device1_IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D10Device1_IASetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D10Device1_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D10Device1_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D10Device1_GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device1_GSSetShader(This,pShader) \ + ( (This)->lpVtbl -> GSSetShader(This,pShader) ) + +#define ID3D10Device1_IASetPrimitiveTopology(This,Topology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,Topology) ) + +#define ID3D10Device1_VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device1_VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device1_SetPredication(This,pPredicate,PredicateValue) \ + ( (This)->lpVtbl -> SetPredication(This,pPredicate,PredicateValue) ) + +#define ID3D10Device1_GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device1_GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device1_OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) ) + +#define ID3D10Device1_OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) \ + ( (This)->lpVtbl -> OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) ) + +#define ID3D10Device1_OMSetDepthStencilState(This,pDepthStencilState,StencilRef) \ + ( (This)->lpVtbl -> OMSetDepthStencilState(This,pDepthStencilState,StencilRef) ) + +#define ID3D10Device1_SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) \ + ( (This)->lpVtbl -> SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) ) + +#define ID3D10Device1_DrawAuto(This) \ + ( (This)->lpVtbl -> DrawAuto(This) ) + +#define ID3D10Device1_RSSetState(This,pRasterizerState) \ + ( (This)->lpVtbl -> RSSetState(This,pRasterizerState) ) + +#define ID3D10Device1_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D10Device1_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D10Device1_CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) ) + +#define ID3D10Device1_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D10Device1_UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D10Device1_ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) ) + +#define ID3D10Device1_ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) ) + +#define ID3D10Device1_GenerateMips(This,pShaderResourceView) \ + ( (This)->lpVtbl -> GenerateMips(This,pShaderResourceView) ) + +#define ID3D10Device1_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D10Device1_VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device1_PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device1_PSGetShader(This,ppPixelShader) \ + ( (This)->lpVtbl -> PSGetShader(This,ppPixelShader) ) + +#define ID3D10Device1_PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device1_VSGetShader(This,ppVertexShader) \ + ( (This)->lpVtbl -> VSGetShader(This,ppVertexShader) ) + +#define ID3D10Device1_PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device1_IAGetInputLayout(This,ppInputLayout) \ + ( (This)->lpVtbl -> IAGetInputLayout(This,ppInputLayout) ) + +#define ID3D10Device1_IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D10Device1_IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D10Device1_GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D10Device1_GSGetShader(This,ppGeometryShader) \ + ( (This)->lpVtbl -> GSGetShader(This,ppGeometryShader) ) + +#define ID3D10Device1_IAGetPrimitiveTopology(This,pTopology) \ + ( (This)->lpVtbl -> IAGetPrimitiveTopology(This,pTopology) ) + +#define ID3D10Device1_VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device1_VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device1_GetPredication(This,ppPredicate,pPredicateValue) \ + ( (This)->lpVtbl -> GetPredication(This,ppPredicate,pPredicateValue) ) + +#define ID3D10Device1_GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D10Device1_GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D10Device1_OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) \ + ( (This)->lpVtbl -> OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) ) + +#define ID3D10Device1_OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) \ + ( (This)->lpVtbl -> OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) ) + +#define ID3D10Device1_OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) \ + ( (This)->lpVtbl -> OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) ) + +#define ID3D10Device1_SOGetTargets(This,NumBuffers,ppSOTargets,pOffsets) \ + ( (This)->lpVtbl -> SOGetTargets(This,NumBuffers,ppSOTargets,pOffsets) ) + +#define ID3D10Device1_RSGetState(This,ppRasterizerState) \ + ( (This)->lpVtbl -> RSGetState(This,ppRasterizerState) ) + +#define ID3D10Device1_RSGetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSGetViewports(This,NumViewports,pViewports) ) + +#define ID3D10Device1_RSGetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSGetScissorRects(This,NumRects,pRects) ) + +#define ID3D10Device1_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D10Device1_SetExceptionMode(This,RaiseFlags) \ + ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) ) + +#define ID3D10Device1_GetExceptionMode(This) \ + ( (This)->lpVtbl -> GetExceptionMode(This) ) + +#define ID3D10Device1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D10Device1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D10Device1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D10Device1_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D10Device1_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + +#define ID3D10Device1_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \ + ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) ) + +#define ID3D10Device1_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \ + ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) ) + +#define ID3D10Device1_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) ) + +#define ID3D10Device1_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) ) + +#define ID3D10Device1_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) ) + +#define ID3D10Device1_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) ) + +#define ID3D10Device1_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) ) + +#define ID3D10Device1_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \ + ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) ) + +#define ID3D10Device1_CreateVertexShader(This,pShaderBytecode,BytecodeLength,ppVertexShader) \ + ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,ppVertexShader) ) + +#define ID3D10Device1_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,ppGeometryShader) ) + +#define ID3D10Device1_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,OutputStreamStride,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,OutputStreamStride,ppGeometryShader) ) + +#define ID3D10Device1_CreatePixelShader(This,pShaderBytecode,BytecodeLength,ppPixelShader) \ + ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,ppPixelShader) ) + +#define ID3D10Device1_CreateBlendState(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D10Device1_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \ + ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) ) + +#define ID3D10Device1_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D10Device1_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \ + ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) ) + +#define ID3D10Device1_CreateQuery(This,pQueryDesc,ppQuery) \ + ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) ) + +#define ID3D10Device1_CreatePredicate(This,pPredicateDesc,ppPredicate) \ + ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) ) + +#define ID3D10Device1_CreateCounter(This,pCounterDesc,ppCounter) \ + ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) ) + +#define ID3D10Device1_CheckFormatSupport(This,Format,pFormatSupport) \ + ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) ) + +#define ID3D10Device1_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) ) + +#define ID3D10Device1_CheckCounterInfo(This,pCounterInfo) \ + ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) ) + +#define ID3D10Device1_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \ + ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) ) + +#define ID3D10Device1_GetCreationFlags(This) \ + ( (This)->lpVtbl -> GetCreationFlags(This) ) + +#define ID3D10Device1_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) ) + +#define ID3D10Device1_SetTextFilterSize(This,Width,Height) \ + ( (This)->lpVtbl -> SetTextFilterSize(This,Width,Height) ) + +#define ID3D10Device1_GetTextFilterSize(This,pWidth,pHeight) \ + ( (This)->lpVtbl -> GetTextFilterSize(This,pWidth,pHeight) ) + + +#define ID3D10Device1_CreateShaderResourceView1(This,pResource,pDesc,ppSRView) \ + ( (This)->lpVtbl -> CreateShaderResourceView1(This,pResource,pDesc,ppSRView) ) + +#define ID3D10Device1_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D10Device1_GetFeatureLevel(This) \ + ( (This)->lpVtbl -> GetFeatureLevel(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Device1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10_1_0000_0003 */ +/* [local] */ + +#define D3D10_1_SDK_VERSION ( ( 0 + 0x20 ) ) + +#include "d3d10_1shader.h" + +/////////////////////////////////////////////////////////////////////////// +// D3D10CreateDevice1 +// ------------------ +// +// pAdapter +// If NULL, D3D10CreateDevice1 will choose the primary adapter and +// create a new instance from a temporarily created IDXGIFactory. +// If non-NULL, D3D10CreateDevice1 will register the appropriate +// device, if necessary (via IDXGIAdapter::RegisterDrver), before +// creating the device. +// DriverType +// Specifies the driver type to be created: hardware, reference or +// null. +// Software +// HMODULE of a DLL implementing a software rasterizer. Must be NULL for +// non-Software driver types. +// Flags +// Any of those documented for D3D10CreateDeviceAndSwapChain1. +// HardwareLevel +// Any of those documented for D3D10CreateDeviceAndSwapChain1. +// SDKVersion +// SDK version. Use the D3D10_1_SDK_VERSION macro. +// ppDevice +// Pointer to returned interface. +// +// Return Values +// Any of those documented for +// CreateDXGIFactory +// IDXGIFactory::EnumAdapters +// IDXGIAdapter::RegisterDriver +// D3D10CreateDevice1 +// +/////////////////////////////////////////////////////////////////////////// +typedef HRESULT (WINAPI* PFN_D3D10_CREATE_DEVICE1)(IDXGIAdapter *, + D3D10_DRIVER_TYPE, HMODULE, UINT, D3D10_FEATURE_LEVEL1, UINT, ID3D10Device1**); + +HRESULT WINAPI D3D10CreateDevice1( + _In_opt_ IDXGIAdapter *pAdapter, + D3D10_DRIVER_TYPE DriverType, + HMODULE Software, + UINT Flags, + D3D10_FEATURE_LEVEL1 HardwareLevel, + UINT SDKVersion, + _Out_opt_ ID3D10Device1 **ppDevice); + +/////////////////////////////////////////////////////////////////////////// +// D3D10CreateDeviceAndSwapChain1 +// ------------------------------ +// +// ppAdapter +// If NULL, D3D10CreateDevice1 will choose the primary adapter and +// create a new instance from a temporarily created IDXGIFactory. +// If non-NULL, D3D10CreateDevice1 will register the appropriate +// device, if necessary (via IDXGIAdapter::RegisterDrver), before +// creating the device. +// DriverType +// Specifies the driver type to be created: hardware, reference or +// null. +// Software +// HMODULE of a DLL implementing a software rasterizer. Must be NULL for +// non-Software driver types. +// Flags +// Any of those documented for D3D10CreateDevice1. +// HardwareLevel +// Any of: +// D3D10_CREATE_LEVEL_10_0 +// D3D10_CREATE_LEVEL_10_1 +// SDKVersion +// SDK version. Use the D3D10_1_SDK_VERSION macro. +// pSwapChainDesc +// Swap chain description, may be NULL. +// ppSwapChain +// Pointer to returned interface. May be NULL. +// ppDevice +// Pointer to returned interface. +// +// Return Values +// Any of those documented for +// CreateDXGIFactory +// IDXGIFactory::EnumAdapters +// IDXGIAdapter::RegisterDriver +// D3D10CreateDevice1 +// IDXGIFactory::CreateSwapChain +// +/////////////////////////////////////////////////////////////////////////// +typedef HRESULT (WINAPI* PFN_D3D10_CREATE_DEVICE_AND_SWAP_CHAIN1)(IDXGIAdapter *, + D3D10_DRIVER_TYPE, HMODULE, UINT, D3D10_FEATURE_LEVEL1, UINT, DXGI_SWAP_CHAIN_DESC *, IDXGISwapChain **, ID3D10Device1 **); + +HRESULT WINAPI D3D10CreateDeviceAndSwapChain1( + _In_opt_ IDXGIAdapter *pAdapter, + D3D10_DRIVER_TYPE DriverType, + HMODULE Software, + UINT Flags, + D3D10_FEATURE_LEVEL1 HardwareLevel, + UINT SDKVersion, + _In_opt_ DXGI_SWAP_CHAIN_DESC *pSwapChainDesc, + _Out_opt_ IDXGISwapChain **ppSwapChain, + _Out_opt_ ID3D10Device1 **ppDevice); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +DEFINE_GUID(IID_ID3D10BlendState1,0xEDAD8D99,0x8A35,0x4d6d,0x85,0x66,0x2E,0xA2,0x76,0xCD,0xE1,0x61); +DEFINE_GUID(IID_ID3D10ShaderResourceView1,0x9B7E4C87,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10Device1,0x9B7E4C8F,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10_1_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10_1_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10_1.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10_1.idl new file mode 100644 index 0000000000000000000000000000000000000000..84bef5d13791ee0e70ec61bf1924cec460b9b8e1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10_1.idl @@ -0,0 +1,280 @@ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// D3D10.1 IDL +// +// Contains interface definitions for the D3D10.1 API. +// +// Copyright (C) Microsoft Corporation +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +cpp_quote( "#if defined( __d3d10_h__ ) && !defined( D3D10_ARBITRARY_HEADER_ORDERING )" ) // +cpp_quote( "#error d3d10.h is included before d3d10_1.h, and it will confuse tools that honor SAL annotations. \\" ) +cpp_quote( "If possibly targeting d3d10.1, include d3d10_1.h instead of d3d10.h, or ensure d3d10_1.h is included before d3d10.h" ) +cpp_quote( "#endif" ) + + +import "oaidl.idl"; +import "ocidl.idl"; + +// +// Copyright (C) Microsoft. All rights reserved. +// +// NOTE: The following constants are generated from the d3d10_1 hardware spec. Do not edit these values directly. +cpp_quote( "#ifndef _D3D10_1_CONSTANTS" ) +cpp_quote( "#define _D3D10_1_CONSTANTS" ) +const UINT D3D10_1_DEFAULT_SAMPLE_MASK = 0xffffffff; +cpp_quote( "#define D3D10_1_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )" ) +cpp_quote( "#define D3D10_1_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )" ) +const UINT D3D10_1_GS_INPUT_REGISTER_COUNT = 32; +const UINT D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32; +const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 128; +const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 32; +const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1; +const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT = 1; +const UINT D3D10_1_SHADER_MAJOR_VERSION = 4; +const UINT D3D10_1_SHADER_MINOR_VERSION = 1; +const UINT D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048; +const UINT D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 256; +const UINT D3D10_1_SO_BUFFER_SLOT_COUNT = 4; +const UINT D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = 1; +const UINT D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT = 64; +const UINT D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT = 32; +const UINT D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8; +const UINT D3D10_1_VS_INPUT_REGISTER_COUNT = 32; +const UINT D3D10_1_VS_OUTPUT_REGISTER_COUNT = 32; +cpp_quote( "#endif" ) +cpp_quote("#include ") + +import "d3d10.idl"; +cpp_quote( "#include \"d3d10.h\" //") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// Forward declarations: +interface ID3D10Device1; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Feature levels +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D10_FEATURE_LEVEL1 +{ + D3D10_FEATURE_LEVEL_10_0 = 0xa000, + D3D10_FEATURE_LEVEL_10_1 = 0xa100, + D3D10_FEATURE_LEVEL_9_1 = 0x9100, + D3D10_FEATURE_LEVEL_9_2 = 0x9200, + D3D10_FEATURE_LEVEL_9_3 = 0x9300 +} D3D10_FEATURE_LEVEL1; + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Blend State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef struct D3D10_RENDER_TARGET_BLEND_DESC1 +{ + BOOL BlendEnable; + D3D10_BLEND SrcBlend; + D3D10_BLEND DestBlend; + D3D10_BLEND_OP BlendOp; + D3D10_BLEND SrcBlendAlpha; + D3D10_BLEND DestBlendAlpha; + D3D10_BLEND_OP BlendOpAlpha; + UINT8 RenderTargetWriteMask; // D3D10_COLOR_WRITE_ENABLE +} D3D10_RENDER_TARGET_BLEND_DESC1; + +typedef struct D3D10_BLEND_DESC1 +{ + BOOL AlphaToCoverageEnable; // relevant to multisample antialiasing only + BOOL IndependentBlendEnable; // if FALSE, then replicate the first entry in RenderTarget array to other entries + D3D10_RENDER_TARGET_BLEND_DESC1 RenderTarget[D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT]; +} D3D10_BLEND_DESC1; + +[ uuid( EDAD8D99-8A35-4d6d-8566-2EA276CDE161 ), object, local, pointer_default( unique ) ] +interface ID3D10BlendState1 + : ID3D10BlendState +{ + void GetDesc1( [annotation("_Out_")] D3D10_BLEND_DESC1* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// ShaderResourceView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D10_TEXCUBE_ARRAY_SRV1 +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT First2DArrayFace; + UINT NumCubes; +} D3D10_TEXCUBE_ARRAY_SRV1; + +typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION1; + +typedef struct D3D10_SHADER_RESOURCE_VIEW_DESC1 +{ + DXGI_FORMAT Format; + D3D10_SRV_DIMENSION1 ViewDimension; + + union + { + D3D10_BUFFER_SRV Buffer; + D3D10_TEX1D_SRV Texture1D; + D3D10_TEX1D_ARRAY_SRV Texture1DArray; + D3D10_TEX2D_SRV Texture2D; + D3D10_TEX2D_ARRAY_SRV Texture2DArray; + D3D10_TEX2DMS_SRV Texture2DMS; + D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray; + D3D10_TEX3D_SRV Texture3D; + D3D10_TEXCUBE_SRV TextureCube; + D3D10_TEXCUBE_ARRAY_SRV1 TextureCubeArray; + }; +} D3D10_SHADER_RESOURCE_VIEW_DESC1; + +[ uuid( 9B7E4C87-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10ShaderResourceView1 + : ID3D10ShaderResourceView +{ + void GetDesc1( [annotation("_Out_")] D3D10_SHADER_RESOURCE_VIEW_DESC1* pDesc ); +}; + +typedef enum D3D10_STANDARD_MULTISAMPLE_QUALITY_LEVELS +{ + D3D10_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff, + D3D10_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe +} D3D10_STANDARD_MULTISAMPLE_QUALITY_LEVELS; + +[ uuid( 9B7E4C8F-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Device1 + : ID3D10Device +{ + HRESULT CreateShaderResourceView1( + [annotation("_In_")] ID3D10Resource* pResource, + [annotation("_In_opt_")] const D3D10_SHADER_RESOURCE_VIEW_DESC1* pDesc, + [annotation("_Out_opt_")] ID3D10ShaderResourceView1** ppSRView ); + HRESULT CreateBlendState1( + [annotation("_In_")] const D3D10_BLEND_DESC1* pBlendStateDesc, + [annotation("_Out_opt_")] ID3D10BlendState1** ppBlendState ); + D3D10_FEATURE_LEVEL1 GetFeatureLevel(); +}; +// + 0x20 puts us in safe range to detect when application isn't using the correct version number. +const UINT D3D10_1_SDK_VERSION = 0 + 0x20; + +cpp_quote( "#include \"d3d10_1shader.h\" ") + +cpp_quote( "" ) +cpp_quote( "///////////////////////////////////////////////////////////////////////////" ) +cpp_quote( "// D3D10CreateDevice1" ) +cpp_quote( "// ------------------" ) +cpp_quote( "//" ) +cpp_quote( "// pAdapter" ) +cpp_quote( "// If NULL, D3D10CreateDevice1 will choose the primary adapter and" ) +cpp_quote( "// create a new instance from a temporarily created IDXGIFactory." ) +cpp_quote( "// If non-NULL, D3D10CreateDevice1 will register the appropriate" ) +cpp_quote( "// device, if necessary (via IDXGIAdapter::RegisterDrver), before" ) +cpp_quote( "// creating the device." ) +cpp_quote( "// DriverType" ) +cpp_quote( "// Specifies the driver type to be created: hardware, reference or" ) +cpp_quote( "// null." ) +cpp_quote( "// Software" ) +cpp_quote( "// HMODULE of a DLL implementing a software rasterizer. Must be NULL for" ) +cpp_quote( "// non-Software driver types." ) +cpp_quote( "// Flags" ) +cpp_quote( "// Any of those documented for D3D10CreateDeviceAndSwapChain1." ) +cpp_quote( "// HardwareLevel" ) +cpp_quote( "// Any of those documented for D3D10CreateDeviceAndSwapChain1." ) +cpp_quote( "// SDKVersion" ) +cpp_quote( "// SDK version. Use the D3D10_1_SDK_VERSION macro." ) +cpp_quote( "// ppDevice" ) +cpp_quote( "// Pointer to returned interface." ) +cpp_quote( "//" ) +cpp_quote( "// Return Values" ) +cpp_quote( "// Any of those documented for " ) +cpp_quote( "// CreateDXGIFactory" ) +cpp_quote( "// IDXGIFactory::EnumAdapters" ) +cpp_quote( "// IDXGIAdapter::RegisterDriver" ) +cpp_quote( "// D3D10CreateDevice1" ) +cpp_quote( "//" ) +cpp_quote( "///////////////////////////////////////////////////////////////////////////" ) +cpp_quote( "typedef HRESULT (WINAPI* PFN_D3D10_CREATE_DEVICE1)(IDXGIAdapter *, " ) +cpp_quote( " D3D10_DRIVER_TYPE, HMODULE, UINT, D3D10_FEATURE_LEVEL1, UINT, ID3D10Device1**);" ) +cpp_quote( "" ) +cpp_quote( "HRESULT WINAPI D3D10CreateDevice1(" ) +cpp_quote( " _In_opt_ IDXGIAdapter *pAdapter," ) +cpp_quote( " D3D10_DRIVER_TYPE DriverType," ) +cpp_quote( " HMODULE Software," ) +cpp_quote( " UINT Flags," ) +cpp_quote( " D3D10_FEATURE_LEVEL1 HardwareLevel," ) +cpp_quote( " UINT SDKVersion," ) +cpp_quote( " _Out_opt_ ID3D10Device1 **ppDevice);" ) +cpp_quote( "" ) +cpp_quote( "///////////////////////////////////////////////////////////////////////////" ) +cpp_quote( "// D3D10CreateDeviceAndSwapChain1" ) +cpp_quote( "// ------------------------------" ) +cpp_quote( "//" ) +cpp_quote( "// ppAdapter" ) +cpp_quote( "// If NULL, D3D10CreateDevice1 will choose the primary adapter and " ) +cpp_quote( "// create a new instance from a temporarily created IDXGIFactory." ) +cpp_quote( "// If non-NULL, D3D10CreateDevice1 will register the appropriate" ) +cpp_quote( "// device, if necessary (via IDXGIAdapter::RegisterDrver), before" ) +cpp_quote( "// creating the device." ) +cpp_quote( "// DriverType" ) +cpp_quote( "// Specifies the driver type to be created: hardware, reference or" ) +cpp_quote( "// null." ) +cpp_quote( "// Software" ) +cpp_quote( "// HMODULE of a DLL implementing a software rasterizer. Must be NULL for" ) +cpp_quote( "// non-Software driver types." ) +cpp_quote( "// Flags" ) +cpp_quote( "// Any of those documented for D3D10CreateDevice1." ) +cpp_quote( "// HardwareLevel" ) +cpp_quote( "// Any of:" ) +cpp_quote( "// D3D10_CREATE_LEVEL_10_0" ) +cpp_quote( "// D3D10_CREATE_LEVEL_10_1" ) +cpp_quote( "// SDKVersion" ) +cpp_quote( "// SDK version. Use the D3D10_1_SDK_VERSION macro." ) +cpp_quote( "// pSwapChainDesc" ) +cpp_quote( "// Swap chain description, may be NULL." ) +cpp_quote( "// ppSwapChain" ) +cpp_quote( "// Pointer to returned interface. May be NULL." ) +cpp_quote( "// ppDevice" ) +cpp_quote( "// Pointer to returned interface." ) +cpp_quote( "//" ) +cpp_quote( "// Return Values" ) +cpp_quote( "// Any of those documented for " ) +cpp_quote( "// CreateDXGIFactory" ) +cpp_quote( "// IDXGIFactory::EnumAdapters" ) +cpp_quote( "// IDXGIAdapter::RegisterDriver" ) +cpp_quote( "// D3D10CreateDevice1" ) +cpp_quote( "// IDXGIFactory::CreateSwapChain" ) +cpp_quote( "//" ) +cpp_quote( "///////////////////////////////////////////////////////////////////////////" ) +cpp_quote( "typedef HRESULT (WINAPI* PFN_D3D10_CREATE_DEVICE_AND_SWAP_CHAIN1)(IDXGIAdapter *, " ) +cpp_quote( " D3D10_DRIVER_TYPE, HMODULE, UINT, D3D10_FEATURE_LEVEL1, UINT, DXGI_SWAP_CHAIN_DESC *, IDXGISwapChain **, ID3D10Device1 **);" ) +cpp_quote( "" ) +cpp_quote( "HRESULT WINAPI D3D10CreateDeviceAndSwapChain1(" ) +cpp_quote( " _In_opt_ IDXGIAdapter *pAdapter," ) +cpp_quote( " D3D10_DRIVER_TYPE DriverType," ) +cpp_quote( " HMODULE Software," ) +cpp_quote( " UINT Flags," ) +cpp_quote( " D3D10_FEATURE_LEVEL1 HardwareLevel," ) +cpp_quote( " UINT SDKVersion," ) +cpp_quote( " _In_opt_ DXGI_SWAP_CHAIN_DESC *pSwapChainDesc," ) +cpp_quote( " _Out_opt_ IDXGISwapChain **ppSwapChain," ) +cpp_quote( " _Out_opt_ ID3D10Device1 **ppDevice);" ) + +cpp_quote( "" ) +cpp_quote( "#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */" ) +#pragma endregion + + +cpp_quote( "DEFINE_GUID(IID_ID3D10BlendState1,0xEDAD8D99,0x8A35,0x4d6d,0x85,0x66,0x2E,0xA2,0x76,0xCD,0xE1,0x61);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10ShaderResourceView1,0x9B7E4C87,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10Device1,0x9B7E4C8F,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10_1shader.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10_1shader.h new file mode 100644 index 0000000000000000000000000000000000000000..b8908a49ffeb1d168fc18f8bf6a153248c5598b7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10_1shader.h @@ -0,0 +1,306 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: D3D10_1Shader.h +// Content: D3D10.1 Shader Types and APIs +// +////////////////////////////////////////////////////////////////////////////// + +#ifndef __D3D10_1SHADER_H__ +#define __D3D10_1SHADER_H__ + +#include "d3d10shader.h" + +#include + + + +//---------------------------------------------------------------------------- +// Shader debugging structures +//---------------------------------------------------------------------------- + +typedef enum _D3D10_SHADER_DEBUG_REGTYPE +{ + D3D10_SHADER_DEBUG_REG_INPUT, + D3D10_SHADER_DEBUG_REG_OUTPUT, + D3D10_SHADER_DEBUG_REG_CBUFFER, + D3D10_SHADER_DEBUG_REG_TBUFFER, + D3D10_SHADER_DEBUG_REG_TEMP, + D3D10_SHADER_DEBUG_REG_TEMPARRAY, + D3D10_SHADER_DEBUG_REG_TEXTURE, + D3D10_SHADER_DEBUG_REG_SAMPLER, + D3D10_SHADER_DEBUG_REG_IMMEDIATECBUFFER, + D3D10_SHADER_DEBUG_REG_LITERAL, + D3D10_SHADER_DEBUG_REG_UNUSED, + D3D11_SHADER_DEBUG_REG_INTERFACE_POINTERS, + D3D11_SHADER_DEBUG_REG_UAV, + D3D10_SHADER_DEBUG_REG_FORCE_DWORD = 0x7fffffff, +} D3D10_SHADER_DEBUG_REGTYPE; + +typedef enum _D3D10_SHADER_DEBUG_SCOPETYPE +{ + D3D10_SHADER_DEBUG_SCOPE_GLOBAL, + D3D10_SHADER_DEBUG_SCOPE_BLOCK, + D3D10_SHADER_DEBUG_SCOPE_FORLOOP, + D3D10_SHADER_DEBUG_SCOPE_STRUCT, + D3D10_SHADER_DEBUG_SCOPE_FUNC_PARAMS, + D3D10_SHADER_DEBUG_SCOPE_STATEBLOCK, + D3D10_SHADER_DEBUG_SCOPE_NAMESPACE, + D3D10_SHADER_DEBUG_SCOPE_ANNOTATION, + D3D10_SHADER_DEBUG_SCOPE_FORCE_DWORD = 0x7fffffff, +} D3D10_SHADER_DEBUG_SCOPETYPE; + +typedef enum _D3D10_SHADER_DEBUG_VARTYPE +{ + D3D10_SHADER_DEBUG_VAR_VARIABLE, + D3D10_SHADER_DEBUG_VAR_FUNCTION, + D3D10_SHADER_DEBUG_VAR_FORCE_DWORD = 0x7fffffff, +} D3D10_SHADER_DEBUG_VARTYPE; + +///////////////////////////////////////////////////////////////////// +// These are the serialized structures that get written to the file +///////////////////////////////////////////////////////////////////// + +typedef struct _D3D10_SHADER_DEBUG_TOKEN_INFO +{ + UINT File; // offset into file list + UINT Line; // line # + UINT Column; // column # + + UINT TokenLength; + UINT TokenId; // offset to LPCSTR of length TokenLength in string datastore +} D3D10_SHADER_DEBUG_TOKEN_INFO; + +// Variable list +typedef struct _D3D10_SHADER_DEBUG_VAR_INFO +{ + // Index into token list for declaring identifier + UINT TokenId; + D3D10_SHADER_VARIABLE_TYPE Type; + // register and component for this variable, only valid/necessary for arrays + UINT Register; + UINT Component; + // gives the original variable that declared this variable + UINT ScopeVar; + // this variable's offset in its ScopeVar + UINT ScopeVarOffset; +} D3D10_SHADER_DEBUG_VAR_INFO; + +typedef struct _D3D10_SHADER_DEBUG_INPUT_INFO +{ + // index into array of variables of variable to initialize + UINT Var; + // input, cbuffer, tbuffer + D3D10_SHADER_DEBUG_REGTYPE InitialRegisterSet; + // set to cbuffer or tbuffer slot, geometry shader input primitive #, + // identifying register for indexable temp, or -1 + UINT InitialBank; + // -1 if temp, otherwise gives register in register set + UINT InitialRegister; + // -1 if temp, otherwise gives component + UINT InitialComponent; + // initial value if literal + UINT InitialValue; +} D3D10_SHADER_DEBUG_INPUT_INFO; + +typedef struct _D3D10_SHADER_DEBUG_SCOPEVAR_INFO +{ + // Index into variable token + UINT TokenId; + + D3D10_SHADER_DEBUG_VARTYPE VarType; // variable or function (different namespaces) + D3D10_SHADER_VARIABLE_CLASS Class; + UINT Rows; // number of rows (matrices) + UINT Columns; // number of columns (vectors and matrices) + + // In an array of structures, one struct member scope is provided, and + // you'll have to add the array stride times the index to the variable + // index you find, then find that variable in this structure's list of + // variables. + + // gives a scope to look up struct members. -1 if not a struct + UINT StructMemberScope; + + // number of array indices + UINT uArrayIndices; // a[3][2][1] has 3 indices + // maximum array index for each index + // offset to UINT[uArrayIndices] in UINT datastore + UINT ArrayElements; // a[3][2][1] has {3, 2, 1} + // how many variables each array index moves + // offset to UINT[uArrayIndices] in UINT datastore + UINT ArrayStrides; // a[3][2][1] has {2, 1, 1} + + UINT uVariables; + // index of the first variable, later variables are offsets from this one + UINT uFirstVariable; +} D3D10_SHADER_DEBUG_SCOPEVAR_INFO; + +// scope data, this maps variable names to debug variables (useful for the watch window) +typedef struct _D3D10_SHADER_DEBUG_SCOPE_INFO +{ + D3D10_SHADER_DEBUG_SCOPETYPE ScopeType; + UINT Name; // offset to name of scope in strings list + UINT uNameLen; // length of name string + UINT uVariables; + UINT VariableData; // Offset to UINT[uVariables] indexing the Scope Variable list +} D3D10_SHADER_DEBUG_SCOPE_INFO; + +// instruction outputs +typedef struct _D3D10_SHADER_DEBUG_OUTPUTVAR +{ + // index variable being written to, if -1 it's not going to a variable + UINT Var; + // range data that the compiler expects to be true + UINT uValueMin, uValueMax; + INT iValueMin, iValueMax; + FLOAT fValueMin, fValueMax; + + BOOL bNaNPossible, bInfPossible; +} D3D10_SHADER_DEBUG_OUTPUTVAR; + +typedef struct _D3D10_SHADER_DEBUG_OUTPUTREG_INFO +{ + // Only temp, indexable temp, and output are valid here + D3D10_SHADER_DEBUG_REGTYPE OutputRegisterSet; + // -1 means no output + UINT OutputReg; + // if a temp array, identifier for which one + UINT TempArrayReg; + // -1 means masked out + UINT OutputComponents[4]; + D3D10_SHADER_DEBUG_OUTPUTVAR OutputVars[4]; + // when indexing the output, get the value of this register, then add + // that to uOutputReg. If uIndexReg is -1, then there is no index. + // find the variable whose register is the sum (by looking in the ScopeVar) + // and component matches, then set it. This should only happen for indexable + // temps and outputs. + UINT IndexReg; + UINT IndexComp; +} D3D10_SHADER_DEBUG_OUTPUTREG_INFO; + +// per instruction data +typedef struct _D3D10_SHADER_DEBUG_INST_INFO +{ + UINT Id; // Which instruction this is in the bytecode + UINT Opcode; // instruction type + + // 0, 1, or 2 + UINT uOutputs; + + // up to two outputs per instruction + D3D10_SHADER_DEBUG_OUTPUTREG_INFO pOutputs[2]; + + // index into the list of tokens for this instruction's token + UINT TokenId; + + // how many function calls deep this instruction is + UINT NestingLevel; + + // list of scopes from outer-most to inner-most + // Number of scopes + UINT Scopes; + UINT ScopeInfo; // Offset to UINT[uScopes] specifying indices of the ScopeInfo Array + + // list of variables accessed by this instruction + // Number of variables + UINT AccessedVars; + UINT AccessedVarsInfo; // Offset to UINT[AccessedVars] specifying indices of the ScopeVariableInfo Array +} D3D10_SHADER_DEBUG_INST_INFO; + +typedef struct _D3D10_SHADER_DEBUG_FILE_INFO +{ + UINT FileName; // Offset to LPCSTR for file name + UINT FileNameLen; // Length of file name + UINT FileData; // Offset to LPCSTR of length FileLen + UINT FileLen; // Length of file +} D3D10_SHADER_DEBUG_FILE_INFO; + +typedef struct _D3D10_SHADER_DEBUG_INFO +{ + UINT Size; // sizeof(D3D10_SHADER_DEBUG_INFO) + UINT Creator; // Offset to LPCSTR for compiler version + UINT EntrypointName; // Offset to LPCSTR for Entry point name + UINT ShaderTarget; // Offset to LPCSTR for shader target + UINT CompileFlags; // flags used to compile + UINT Files; // number of included files + UINT FileInfo; // Offset to D3D10_SHADER_DEBUG_FILE_INFO[Files] + UINT Instructions; // number of instructions + UINT InstructionInfo; // Offset to D3D10_SHADER_DEBUG_INST_INFO[Instructions] + UINT Variables; // number of variables + UINT VariableInfo; // Offset to D3D10_SHADER_DEBUG_VAR_INFO[Variables] + UINT InputVariables; // number of variables to initialize before running + UINT InputVariableInfo; // Offset to D3D10_SHADER_DEBUG_INPUT_INFO[InputVariables] + UINT Tokens; // number of tokens to initialize + UINT TokenInfo; // Offset to D3D10_SHADER_DEBUG_TOKEN_INFO[Tokens] + UINT Scopes; // number of scopes + UINT ScopeInfo; // Offset to D3D10_SHADER_DEBUG_SCOPE_INFO[Scopes] + UINT ScopeVariables; // number of variables declared + UINT ScopeVariableInfo; // Offset to D3D10_SHADER_DEBUG_SCOPEVAR_INFO[Scopes] + UINT UintOffset; // Offset to the UINT datastore, all UINT offsets are from this offset + UINT StringOffset; // Offset to the string datastore, all string offsets are from this offset +} D3D10_SHADER_DEBUG_INFO; + +//---------------------------------------------------------------------------- +// ID3D10ShaderReflection1: +//---------------------------------------------------------------------------- + +// +// Interface definitions +// + + +typedef interface ID3D10ShaderReflection1 ID3D10ShaderReflection1; +typedef interface ID3D10ShaderReflection1 *LPD3D10SHADERREFLECTION1; + +// {C3457783-A846-47CE-9520-CEA6F66E7447} +DEFINE_GUID(IID_ID3D10ShaderReflection1, +0xc3457783, 0xa846, 0x47ce, 0x95, 0x20, 0xce, 0xa6, 0xf6, 0x6e, 0x74, 0x47); + +#undef INTERFACE +#define INTERFACE ID3D10ShaderReflection1 + +DECLARE_INTERFACE_(ID3D10ShaderReflection1, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_SHADER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10ShaderReflectionConstantBuffer*, GetConstantBufferByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10ShaderReflectionConstantBuffer*, GetConstantBufferByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDesc)(THIS_ UINT ResourceIndex, _Out_ D3D10_SHADER_INPUT_BIND_DESC *pDesc) PURE; + + STDMETHOD(GetInputParameterDesc)(THIS_ UINT ParameterIndex, _Out_ D3D10_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + STDMETHOD(GetOutputParameterDesc)(THIS_ UINT ParameterIndex, _Out_ D3D10_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10ShaderReflectionVariable*, GetVariableByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDescByName)(THIS_ LPCSTR Name, _Out_ D3D10_SHADER_INPUT_BIND_DESC *pDesc) PURE; + + STDMETHOD(GetMovInstructionCount)(THIS_ _Out_ UINT* pCount) PURE; + STDMETHOD(GetMovcInstructionCount)(THIS_ _Out_ UINT* pCount) PURE; + STDMETHOD(GetConversionInstructionCount)(THIS_ _Out_ UINT* pCount) PURE; + STDMETHOD(GetBitwiseInstructionCount)(THIS_ _Out_ UINT* pCount) PURE; + + STDMETHOD(GetGSInputPrimitive)(THIS_ _Out_ D3D10_PRIMITIVE* pPrim) PURE; + STDMETHOD(IsLevel9Shader)(THIS_ _Out_ BOOL* pbLevel9Shader) PURE; + STDMETHOD(IsSampleFrequencyShader)(THIS_ _Out_ BOOL* pbSampleFrequency) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// APIs ////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif //__D3D10_1SHADER_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10effect.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10effect.h new file mode 100644 index 0000000000000000000000000000000000000000..3f8a2fd8c588633de6061babfcb82fa96b557864 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10effect.h @@ -0,0 +1,1463 @@ + +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: D3D10Effect.h +// Content: D3D10 Stateblock/Effect Types & APIs +// +////////////////////////////////////////////////////////////////////////////// + +#ifndef __D3D10EFFECT_H__ +#define __D3D10EFFECT_H__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include "d3d10.h" + +////////////////////////////////////////////////////////////////////////////// +// File contents: +// +// 1) Stateblock enums, structs, interfaces, flat APIs +// 2) Effect enums, structs, interfaces, flat APIs +////////////////////////////////////////////////////////////////////////////// + +//---------------------------------------------------------------------------- +// D3D10_DEVICE_STATE_TYPES: +// +// Used in ID3D10StateBlockMask function calls +// +//---------------------------------------------------------------------------- + +typedef enum _D3D10_DEVICE_STATE_TYPES +{ + + D3D10_DST_SO_BUFFERS=1, // Single-value state (atomical gets/sets) + D3D10_DST_OM_RENDER_TARGETS, // Single-value state (atomical gets/sets) + D3D10_DST_OM_DEPTH_STENCIL_STATE, // Single-value state + D3D10_DST_OM_BLEND_STATE, // Single-value state + + D3D10_DST_VS, // Single-value state + D3D10_DST_VS_SAMPLERS, // Count: D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT + D3D10_DST_VS_SHADER_RESOURCES, // Count: D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT + D3D10_DST_VS_CONSTANT_BUFFERS, // Count: + + D3D10_DST_GS, // Single-value state + D3D10_DST_GS_SAMPLERS, // Count: D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT + D3D10_DST_GS_SHADER_RESOURCES, // Count: D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT + D3D10_DST_GS_CONSTANT_BUFFERS, // Count: D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT + + D3D10_DST_PS, // Single-value state + D3D10_DST_PS_SAMPLERS, // Count: D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT + D3D10_DST_PS_SHADER_RESOURCES, // Count: D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT + D3D10_DST_PS_CONSTANT_BUFFERS, // Count: D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT + + D3D10_DST_IA_VERTEX_BUFFERS, // Count: D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT + D3D10_DST_IA_INDEX_BUFFER, // Single-value state + D3D10_DST_IA_INPUT_LAYOUT, // Single-value state + D3D10_DST_IA_PRIMITIVE_TOPOLOGY, // Single-value state + + D3D10_DST_RS_VIEWPORTS, // Single-value state (atomical gets/sets) + D3D10_DST_RS_SCISSOR_RECTS, // Single-value state (atomical gets/sets) + D3D10_DST_RS_RASTERIZER_STATE, // Single-value state + + D3D10_DST_PREDICATION, // Single-value state +} D3D10_DEVICE_STATE_TYPES; + +//---------------------------------------------------------------------------- +// D3D10_DEVICE_STATE_TYPES: +// +// Used in ID3D10StateBlockMask function calls +// +//---------------------------------------------------------------------------- + +#ifndef D3D10_BYTES_FROM_BITS +#define D3D10_BYTES_FROM_BITS(x) (((x) + 7) / 8) +#endif // D3D10_BYTES_FROM_BITS + +typedef struct _D3D10_STATE_BLOCK_MASK +{ + BYTE VS; + BYTE VSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)]; + BYTE VSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)]; + BYTE VSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)]; + + BYTE GS; + BYTE GSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)]; + BYTE GSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)]; + BYTE GSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)]; + + BYTE PS; + BYTE PSSamplers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT)]; + BYTE PSShaderResources[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT)]; + BYTE PSConstantBuffers[D3D10_BYTES_FROM_BITS(D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT)]; + + BYTE IAVertexBuffers[D3D10_BYTES_FROM_BITS(D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT)]; + BYTE IAIndexBuffer; + BYTE IAInputLayout; + BYTE IAPrimitiveTopology; + + BYTE OMRenderTargets; + BYTE OMDepthStencilState; + BYTE OMBlendState; + + BYTE RSViewports; + BYTE RSScissorRects; + BYTE RSRasterizerState; + + BYTE SOBuffers; + + BYTE Predication; +} D3D10_STATE_BLOCK_MASK; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10StateBlock ////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10StateBlock ID3D10StateBlock; +typedef interface ID3D10StateBlock *LPD3D10STATEBLOCK; + +// {0803425A-57F5-4dd6-9465-A87570834A08} +DEFINE_GUID(IID_ID3D10StateBlock, +0x803425a, 0x57f5, 0x4dd6, 0x94, 0x65, 0xa8, 0x75, 0x70, 0x83, 0x4a, 0x8); + +#undef INTERFACE +#define INTERFACE ID3D10StateBlock + +DECLARE_INTERFACE_(ID3D10StateBlock, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + STDMETHOD(Capture)(THIS) PURE; + STDMETHOD(Apply)(THIS) PURE; + STDMETHOD(ReleaseAllDeviceObjects)(THIS) PURE; + STDMETHOD(GetDevice)(_Out_ THIS_ ID3D10Device **ppDevice) PURE; +}; + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + +//---------------------------------------------------------------------------- +// D3D10_STATE_BLOCK_MASK and manipulation functions +// ------------------------------------------------- +// +// These functions exist to facilitate working with the D3D10_STATE_BLOCK_MASK +// structure. +// +// D3D10_STATE_BLOCK_MASK *pResult or *pMask +// The state block mask to operate on +// +// D3D10_STATE_BLOCK_MASK *pA, *pB +// The source state block masks for the binary union/intersect/difference +// operations. +// +// D3D10_DEVICE_STATE_TYPES StateType +// The specific state type to enable/disable/query +// +// UINT RangeStart, RangeLength, Entry +// The specific bit or range of bits for a given state type to operate on. +// Consult the comments for D3D10_DEVICE_STATE_TYPES and +// D3D10_STATE_BLOCK_MASK for information on the valid bit ranges for +// each state. +// +//---------------------------------------------------------------------------- + +HRESULT WINAPI D3D10StateBlockMaskUnion(_In_ D3D10_STATE_BLOCK_MASK *pA, _In_ D3D10_STATE_BLOCK_MASK *pB, _Out_ D3D10_STATE_BLOCK_MASK *pResult); +HRESULT WINAPI D3D10StateBlockMaskIntersect(_In_ D3D10_STATE_BLOCK_MASK *pA, _In_ D3D10_STATE_BLOCK_MASK *pB, _Out_ D3D10_STATE_BLOCK_MASK *pResult); +HRESULT WINAPI D3D10StateBlockMaskDifference(_In_ D3D10_STATE_BLOCK_MASK *pA, _In_ D3D10_STATE_BLOCK_MASK *pB, _Out_ D3D10_STATE_BLOCK_MASK *pResult); +HRESULT WINAPI D3D10StateBlockMaskEnableCapture(_Inout_ D3D10_STATE_BLOCK_MASK *pMask, D3D10_DEVICE_STATE_TYPES StateType, UINT RangeStart, UINT RangeLength); +HRESULT WINAPI D3D10StateBlockMaskDisableCapture(_Inout_ D3D10_STATE_BLOCK_MASK *pMask, D3D10_DEVICE_STATE_TYPES StateType, UINT RangeStart, UINT RangeLength); +HRESULT WINAPI D3D10StateBlockMaskEnableAll(_Out_ D3D10_STATE_BLOCK_MASK *pMask); +HRESULT WINAPI D3D10StateBlockMaskDisableAll(_Out_ D3D10_STATE_BLOCK_MASK *pMask); +BOOL WINAPI D3D10StateBlockMaskGetSetting(_In_ D3D10_STATE_BLOCK_MASK *pMask, D3D10_DEVICE_STATE_TYPES StateType, UINT Entry); + +//---------------------------------------------------------------------------- +// D3D10CreateStateBlock +// --------------------- +// +// Creates a state block object based on the mask settings specified +// in a D3D10_STATE_BLOCK_MASK structure. +// +// ID3D10Device *pDevice +// The device interface to associate with this state block +// +// D3D10_STATE_BLOCK_MASK *pStateBlockMask +// A bit mask whose settings are used to generate a state block +// object. +// +// ID3D10StateBlock **ppStateBlock +// The resulting state block object. This object will save/restore +// only those pieces of state that were set in the state block +// bit mask +//---------------------------------------------------------------------------- + +HRESULT WINAPI D3D10CreateStateBlock(_In_ ID3D10Device *pDevice, _In_ D3D10_STATE_BLOCK_MASK *pStateBlockMask, _Out_ ID3D10StateBlock **ppStateBlock); + +#ifdef __cplusplus +} +#endif //__cplusplus + +//---------------------------------------------------------------------------- +// D3D10_COMPILE & D3D10_EFFECT flags: +// ------------------------------------- +// +// These flags are passed in when creating an effect, and affect +// either compilation behavior or runtime effect behavior +// +// D3D10_EFFECT_COMPILE_CHILD_EFFECT +// Compile this .fx file to a child effect. Child effects have no initializers +// for any shared values as these are initialied in the master effect (pool). +// +// D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS +// By default, performance mode is enabled. Performance mode disallows +// mutable state objects by preventing non-literal expressions from appearing in +// state object definitions. Specifying this flag will disable the mode and allow +// for mutable state objects. +// +// D3D10_EFFECT_SINGLE_THREADED +// Do not attempt to synchronize with other threads loading effects into the +// same pool. +// +//---------------------------------------------------------------------------- + +#define D3D10_EFFECT_COMPILE_CHILD_EFFECT (1 << 0) +#define D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS (1 << 1) +#define D3D10_EFFECT_SINGLE_THREADED (1 << 3) + + +//---------------------------------------------------------------------------- +// D3D10_EFFECT_VARIABLE flags: +// ---------------------------- +// +// These flags describe an effect variable (global or annotation), +// and are returned in D3D10_EFFECT_VARIABLE_DESC::Flags. +// +// D3D10_EFFECT_VARIABLE_POOLED +// Indicates that the this variable or constant buffer resides +// in an effect pool. If this flag is not set, then the variable resides +// in a standalone effect (if ID3D10Effect::GetPool returns NULL) +// or a child effect (if ID3D10Effect::GetPool returns non-NULL) +// +// D3D10_EFFECT_VARIABLE_ANNOTATION +// Indicates that this is an annotation on a technique, pass, or global +// variable. Otherwise, this is a global variable. Annotations cannot +// be shared. +// +// D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT +// Indicates that the variable has been explicitly bound using the +// register keyword. +//---------------------------------------------------------------------------- + +#define D3D10_EFFECT_VARIABLE_POOLED (1 << 0) +#define D3D10_EFFECT_VARIABLE_ANNOTATION (1 << 1) +#define D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT (1 << 2) + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectType ////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +//---------------------------------------------------------------------------- +// D3D10_EFFECT_TYPE_DESC: +// +// Retrieved by ID3D10EffectType::GetDesc() +//---------------------------------------------------------------------------- + +typedef struct _D3D10_EFFECT_TYPE_DESC +{ + LPCSTR TypeName; // Name of the type + // (e.g. "float4" or "MyStruct") + + D3D10_SHADER_VARIABLE_CLASS Class; // (e.g. scalar, vector, object, etc.) + D3D10_SHADER_VARIABLE_TYPE Type; // (e.g. float, texture, vertexshader, etc.) + + UINT Elements; // Number of elements in this type + // (0 if not an array) + UINT Members; // Number of members + // (0 if not a structure) + UINT Rows; // Number of rows in this type + // (0 if not a numeric primitive) + UINT Columns; // Number of columns in this type + // (0 if not a numeric primitive) + + UINT PackedSize; // Number of bytes required to represent + // this data type, when tightly packed + UINT UnpackedSize; // Number of bytes occupied by this data + // type, when laid out in a constant buffer + UINT Stride; // Number of bytes to seek between elements, + // when laid out in a constant buffer +} D3D10_EFFECT_TYPE_DESC; + +typedef interface ID3D10EffectType ID3D10EffectType; +typedef interface ID3D10EffectType *LPD3D10EFFECTTYPE; + +// {4E9E1DDC-CD9D-4772-A837-00180B9B88FD} +DEFINE_GUID(IID_ID3D10EffectType, +0x4e9e1ddc, 0xcd9d, 0x4772, 0xa8, 0x37, 0x0, 0x18, 0xb, 0x9b, 0x88, 0xfd); + +#undef INTERFACE +#define INTERFACE ID3D10EffectType + +DECLARE_INTERFACE(ID3D10EffectType) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ D3D10_EFFECT_TYPE_DESC *pDesc) PURE; + STDMETHOD_(ID3D10EffectType*, GetMemberTypeByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectType*, GetMemberTypeByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectType*, GetMemberTypeBySemantic)(THIS_ LPCSTR Semantic) PURE; + STDMETHOD_(LPCSTR, GetMemberName)(THIS_ UINT Index) PURE; + STDMETHOD_(LPCSTR, GetMemberSemantic)(THIS_ UINT Index) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectVariable ////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +//---------------------------------------------------------------------------- +// D3D10_EFFECT_VARIABLE_DESC: +// +// Retrieved by ID3D10EffectVariable::GetDesc() +//---------------------------------------------------------------------------- + +typedef struct _D3D10_EFFECT_VARIABLE_DESC +{ + LPCSTR Name; // Name of this variable, annotation, + // or structure member + LPCSTR Semantic; // Semantic string of this variable + // or structure member (NULL for + // annotations or if not present) + + UINT Flags; // D3D10_EFFECT_VARIABLE_* flags + UINT Annotations; // Number of annotations on this variable + // (always 0 for annotations) + + UINT BufferOffset; // Offset into containing cbuffer or tbuffer + // (always 0 for annotations or variables + // not in constant buffers) + + UINT ExplicitBindPoint; // Used if the variable has been explicitly bound + // using the register keyword. Check Flags for + // D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT; +} D3D10_EFFECT_VARIABLE_DESC; + +typedef interface ID3D10EffectVariable ID3D10EffectVariable; +typedef interface ID3D10EffectVariable *LPD3D10EFFECTVARIABLE; + +// {AE897105-00E6-45bf-BB8E-281DD6DB8E1B} +DEFINE_GUID(IID_ID3D10EffectVariable, +0xae897105, 0xe6, 0x45bf, 0xbb, 0x8e, 0x28, 0x1d, 0xd6, 0xdb, 0x8e, 0x1b); + +#undef INTERFACE +#define INTERFACE ID3D10EffectVariable + +// Forward defines +typedef interface ID3D10EffectScalarVariable ID3D10EffectScalarVariable; +typedef interface ID3D10EffectVectorVariable ID3D10EffectVectorVariable; +typedef interface ID3D10EffectMatrixVariable ID3D10EffectMatrixVariable; +typedef interface ID3D10EffectStringVariable ID3D10EffectStringVariable; +typedef interface ID3D10EffectShaderResourceVariable ID3D10EffectShaderResourceVariable; +typedef interface ID3D10EffectRenderTargetViewVariable ID3D10EffectRenderTargetViewVariable; +typedef interface ID3D10EffectDepthStencilViewVariable ID3D10EffectDepthStencilViewVariable; +typedef interface ID3D10EffectConstantBuffer ID3D10EffectConstantBuffer; +typedef interface ID3D10EffectShaderVariable ID3D10EffectShaderVariable; +typedef interface ID3D10EffectBlendVariable ID3D10EffectBlendVariable; +typedef interface ID3D10EffectDepthStencilVariable ID3D10EffectDepthStencilVariable; +typedef interface ID3D10EffectRasterizerVariable ID3D10EffectRasterizerVariable; +typedef interface ID3D10EffectSamplerVariable ID3D10EffectSamplerVariable; + +DECLARE_INTERFACE(ID3D10EffectVariable) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectScalarVariable //////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectScalarVariable ID3D10EffectScalarVariable; +typedef interface ID3D10EffectScalarVariable *LPD3D10EFFECTSCALARVARIABLE; + +// {00E48F7B-D2C8-49e8-A86C-022DEE53431F} +DEFINE_GUID(IID_ID3D10EffectScalarVariable, +0xe48f7b, 0xd2c8, 0x49e8, 0xa8, 0x6c, 0x2, 0x2d, 0xee, 0x53, 0x43, 0x1f); + +#undef INTERFACE +#define INTERFACE ID3D10EffectScalarVariable + +DECLARE_INTERFACE_(ID3D10EffectScalarVariable, ID3D10EffectVariable) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT ByteOffset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT ByteOffset, UINT ByteCount) PURE; + + STDMETHOD(SetFloat)(THIS_ float Value) PURE; + STDMETHOD(GetFloat)(THIS_ _Out_ float *pValue) PURE; + + STDMETHOD(SetFloatArray)(THIS_ _In_reads_(Count) float *pData, UINT Offset, UINT Count) PURE; + STDMETHOD(GetFloatArray)(THIS_ _Out_writes_(Count) float *pData, UINT Offset, UINT Count) PURE; + + STDMETHOD(SetInt)(THIS_ int Value) PURE; + STDMETHOD(GetInt)(THIS_ _Out_ int *pValue) PURE; + + STDMETHOD(SetIntArray)(THIS_ _In_reads_(Count) int *pData, UINT Offset, UINT Count) PURE; + STDMETHOD(GetIntArray)(THIS_ _Out_writes_(Count) int *pData, UINT Offset, UINT Count) PURE; + + STDMETHOD(SetBool)(THIS_ BOOL Value) PURE; + STDMETHOD(GetBool)(THIS_ _Out_ BOOL *pValue) PURE; + + STDMETHOD(SetBoolArray)(THIS_ _In_reads_(Count) BOOL *pData, UINT Offset, UINT Count) PURE; + STDMETHOD(GetBoolArray)(THIS_ _Out_writes_(Count) BOOL *pData, UINT Offset, UINT Count) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectVectorVariable //////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectVectorVariable ID3D10EffectVectorVariable; +typedef interface ID3D10EffectVectorVariable *LPD3D10EFFECTVECTORVARIABLE; + +// {62B98C44-1F82-4c67-BCD0-72CF8F217E81} +DEFINE_GUID(IID_ID3D10EffectVectorVariable, +0x62b98c44, 0x1f82, 0x4c67, 0xbc, 0xd0, 0x72, 0xcf, 0x8f, 0x21, 0x7e, 0x81); + +#undef INTERFACE +#define INTERFACE ID3D10EffectVectorVariable + +DECLARE_INTERFACE_(ID3D10EffectVectorVariable, ID3D10EffectVariable) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT ByteOffset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT ByteOffset, UINT ByteCount) PURE; + + STDMETHOD(SetBoolVector) (THIS_ BOOL *pData) PURE; + STDMETHOD(SetIntVector) (THIS_ int *pData) PURE; + STDMETHOD(SetFloatVector)(THIS_ float *pData) PURE; + + STDMETHOD(GetBoolVector) (THIS_ BOOL *pData) PURE; + STDMETHOD(GetIntVector) (THIS_ int *pData) PURE; + STDMETHOD(GetFloatVector)(THIS_ float *pData) PURE; + + STDMETHOD(SetBoolVectorArray) (THIS_ BOOL *pData, UINT Offset, UINT Count) PURE; + STDMETHOD(SetIntVectorArray) (THIS_ int *pData, UINT Offset, UINT Count) PURE; + STDMETHOD(SetFloatVectorArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE; + + STDMETHOD(GetBoolVectorArray) (THIS_ BOOL *pData, UINT Offset, UINT Count) PURE; + STDMETHOD(GetIntVectorArray) (THIS_ int *pData, UINT Offset, UINT Count) PURE; + STDMETHOD(GetFloatVectorArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectMatrixVariable //////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectMatrixVariable ID3D10EffectMatrixVariable; +typedef interface ID3D10EffectMatrixVariable *LPD3D10EFFECTMATRIXVARIABLE; + +// {50666C24-B82F-4eed-A172-5B6E7E8522E0} +DEFINE_GUID(IID_ID3D10EffectMatrixVariable, +0x50666c24, 0xb82f, 0x4eed, 0xa1, 0x72, 0x5b, 0x6e, 0x7e, 0x85, 0x22, 0xe0); + +#undef INTERFACE +#define INTERFACE ID3D10EffectMatrixVariable + +DECLARE_INTERFACE_(ID3D10EffectMatrixVariable, ID3D10EffectVariable) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT ByteOffset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT ByteOffset, UINT ByteCount) PURE; + + STDMETHOD(SetMatrix)(THIS_ float *pData) PURE; + STDMETHOD(GetMatrix)(THIS_ float *pData) PURE; + + STDMETHOD(SetMatrixArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE; + STDMETHOD(GetMatrixArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE; + + STDMETHOD(SetMatrixTranspose)(THIS_ float *pData) PURE; + STDMETHOD(GetMatrixTranspose)(THIS_ float *pData) PURE; + + STDMETHOD(SetMatrixTransposeArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE; + STDMETHOD(GetMatrixTransposeArray)(THIS_ float *pData, UINT Offset, UINT Count) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectStringVariable //////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectStringVariable ID3D10EffectStringVariable; +typedef interface ID3D10EffectStringVariable *LPD3D10EFFECTSTRINGVARIABLE; + +// {71417501-8DF9-4e0a-A78A-255F9756BAFF} +DEFINE_GUID(IID_ID3D10EffectStringVariable, +0x71417501, 0x8df9, 0x4e0a, 0xa7, 0x8a, 0x25, 0x5f, 0x97, 0x56, 0xba, 0xff); + +#undef INTERFACE +#define INTERFACE ID3D10EffectStringVariable + +DECLARE_INTERFACE_(ID3D10EffectStringVariable, ID3D10EffectVariable) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + + STDMETHOD(GetString)(THIS_ _Out_ LPCSTR *ppString) PURE; + STDMETHOD(GetStringArray)(THIS_ _Out_writes_(Count) LPCSTR *ppStrings, UINT Offset, UINT Count) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectShaderResourceVariable //////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectShaderResourceVariable ID3D10EffectShaderResourceVariable; +typedef interface ID3D10EffectShaderResourceVariable *LPD3D10EFFECTSHADERRESOURCEVARIABLE; + +// {C0A7157B-D872-4b1d-8073-EFC2ACD4B1FC} +DEFINE_GUID(IID_ID3D10EffectShaderResourceVariable, +0xc0a7157b, 0xd872, 0x4b1d, 0x80, 0x73, 0xef, 0xc2, 0xac, 0xd4, 0xb1, 0xfc); + + +#undef INTERFACE +#define INTERFACE ID3D10EffectShaderResourceVariable + +DECLARE_INTERFACE_(ID3D10EffectShaderResourceVariable, ID3D10EffectVariable) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + + STDMETHOD(SetResource)(THIS_ _In_opt_ ID3D10ShaderResourceView *pResource) PURE; + STDMETHOD(GetResource)(THIS_ _Out_ ID3D10ShaderResourceView **ppResource) PURE; + + STDMETHOD(SetResourceArray)(THIS_ _In_reads_(Count) ID3D10ShaderResourceView **ppResources, UINT Offset, UINT Count) PURE; + STDMETHOD(GetResourceArray)(THIS_ _Out_writes_(Count) ID3D10ShaderResourceView **ppResources, UINT Offset, UINT Count) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectRenderTargetViewVariable ////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectRenderTargetViewVariable ID3D10EffectRenderTargetViewVariable; +typedef interface ID3D10EffectRenderTargetViewVariable *LPD3D10EFFECTRENDERTARGETVIEWVARIABLE; + +// {28CA0CC3-C2C9-40bb-B57F-67B737122B17} +DEFINE_GUID(IID_ID3D10EffectRenderTargetViewVariable, +0x28ca0cc3, 0xc2c9, 0x40bb, 0xb5, 0x7f, 0x67, 0xb7, 0x37, 0x12, 0x2b, 0x17); + +#undef INTERFACE +#define INTERFACE ID3D10EffectRenderTargetViewVariable + +DECLARE_INTERFACE_(ID3D10EffectRenderTargetViewVariable, ID3D10EffectVariable) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + + STDMETHOD(SetRenderTarget)(THIS_ _In_opt_ ID3D10RenderTargetView *pResource) PURE; + STDMETHOD(GetRenderTarget)(THIS_ _Out_ ID3D10RenderTargetView **ppResource) PURE; + + STDMETHOD(SetRenderTargetArray)(THIS_ _In_reads_(Count) ID3D10RenderTargetView **ppResources, UINT Offset, UINT Count) PURE; + STDMETHOD(GetRenderTargetArray)(THIS_ _Out_writes_(Count) ID3D10RenderTargetView **ppResources, UINT Offset, UINT Count) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectDepthStencilViewVariable ////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectDepthStencilViewVariable ID3D10EffectDepthStencilViewVariable; +typedef interface ID3D10EffectDepthStencilViewVariable *LPD3D10EFFECTDEPTHSTENCILVIEWVARIABLE; + +// {3E02C918-CC79-4985-B622-2D92AD701623} +DEFINE_GUID(IID_ID3D10EffectDepthStencilViewVariable, +0x3e02c918, 0xcc79, 0x4985, 0xb6, 0x22, 0x2d, 0x92, 0xad, 0x70, 0x16, 0x23); + +#undef INTERFACE +#define INTERFACE ID3D10EffectDepthStencilViewVariable + +DECLARE_INTERFACE_(ID3D10EffectDepthStencilViewVariable, ID3D10EffectVariable) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + + STDMETHOD(SetDepthStencil)(THIS_ _In_opt_ ID3D10DepthStencilView *pResource) PURE; + STDMETHOD(GetDepthStencil)(THIS_ _Out_ ID3D10DepthStencilView **ppResource) PURE; + + STDMETHOD(SetDepthStencilArray)(THIS_ _In_reads_(Count) ID3D10DepthStencilView **ppResources, UINT Offset, UINT Count) PURE; + STDMETHOD(GetDepthStencilArray)(THIS_ _Out_writes_(Count) ID3D10DepthStencilView **ppResources, UINT Offset, UINT Count) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectConstantBuffer //////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectConstantBuffer ID3D10EffectConstantBuffer; +typedef interface ID3D10EffectConstantBuffer *LPD3D10EFFECTCONSTANTBUFFER; + +// {56648F4D-CC8B-4444-A5AD-B5A3D76E91B3} +DEFINE_GUID(IID_ID3D10EffectConstantBuffer, +0x56648f4d, 0xcc8b, 0x4444, 0xa5, 0xad, 0xb5, 0xa3, 0xd7, 0x6e, 0x91, 0xb3); + +#undef INTERFACE +#define INTERFACE ID3D10EffectConstantBuffer + +DECLARE_INTERFACE_(ID3D10EffectConstantBuffer, ID3D10EffectVariable) +{ + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + + STDMETHOD(SetConstantBuffer)(THIS_ _In_opt_ ID3D10Buffer *pConstantBuffer) PURE; + STDMETHOD(GetConstantBuffer)(THIS_ _Out_ ID3D10Buffer **ppConstantBuffer) PURE; + + STDMETHOD(SetTextureBuffer)(THIS_ _In_opt_ ID3D10ShaderResourceView *pTextureBuffer) PURE; + STDMETHOD(GetTextureBuffer)(THIS_ _Out_ ID3D10ShaderResourceView **ppTextureBuffer) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectShaderVariable //////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +//---------------------------------------------------------------------------- +// D3D10_EFFECT_SHADER_DESC: +// +// Retrieved by ID3D10EffectShaderVariable::GetShaderDesc() +//---------------------------------------------------------------------------- + +typedef struct _D3D10_EFFECT_SHADER_DESC +{ + CONST BYTE *pInputSignature; // Passed into CreateInputLayout, + // valid on VS and GS only + + BOOL IsInline; // Is this an anonymous shader variable + // resulting from an inline shader assignment? + + + // -- The following fields are not valid after Optimize() -- + CONST BYTE *pBytecode; // Shader bytecode + UINT BytecodeLength; + + LPCSTR SODecl; // Stream out declaration string (for GS with SO) + + UINT NumInputSignatureEntries; // Number of entries in the input signature + UINT NumOutputSignatureEntries; // Number of entries in the output signature +} D3D10_EFFECT_SHADER_DESC; + + +typedef interface ID3D10EffectShaderVariable ID3D10EffectShaderVariable; +typedef interface ID3D10EffectShaderVariable *LPD3D10EFFECTSHADERVARIABLE; + +// {80849279-C799-4797-8C33-0407A07D9E06} +DEFINE_GUID(IID_ID3D10EffectShaderVariable, +0x80849279, 0xc799, 0x4797, 0x8c, 0x33, 0x4, 0x7, 0xa0, 0x7d, 0x9e, 0x6); + +#undef INTERFACE +#define INTERFACE ID3D10EffectShaderVariable + +DECLARE_INTERFACE_(ID3D10EffectShaderVariable, ID3D10EffectVariable) +{ + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + + STDMETHOD(GetShaderDesc)(THIS_ UINT ShaderIndex, _Out_ D3D10_EFFECT_SHADER_DESC *pDesc) PURE; + + STDMETHOD(GetVertexShader)(THIS_ UINT ShaderIndex, _Out_ ID3D10VertexShader **ppVS) PURE; + STDMETHOD(GetGeometryShader)(THIS_ UINT ShaderIndex, _Out_ ID3D10GeometryShader **ppGS) PURE; + STDMETHOD(GetPixelShader)(THIS_ UINT ShaderIndex, _Out_ ID3D10PixelShader **ppPS) PURE; + + STDMETHOD(GetInputSignatureElementDesc)(THIS_ UINT ShaderIndex, UINT Element, _Out_ D3D10_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + STDMETHOD(GetOutputSignatureElementDesc)(THIS_ UINT ShaderIndex, UINT Element, _Out_ D3D10_SIGNATURE_PARAMETER_DESC *pDesc) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectBlendVariable ///////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectBlendVariable ID3D10EffectBlendVariable; +typedef interface ID3D10EffectBlendVariable *LPD3D10EFFECTBLENDVARIABLE; + +// {1FCD2294-DF6D-4eae-86B3-0E9160CFB07B} +DEFINE_GUID(IID_ID3D10EffectBlendVariable, +0x1fcd2294, 0xdf6d, 0x4eae, 0x86, 0xb3, 0xe, 0x91, 0x60, 0xcf, 0xb0, 0x7b); + +#undef INTERFACE +#define INTERFACE ID3D10EffectBlendVariable + +DECLARE_INTERFACE_(ID3D10EffectBlendVariable, ID3D10EffectVariable) +{ + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + + STDMETHOD(GetBlendState)(THIS_ UINT Index, ID3D10BlendState **ppBlendState) PURE; + STDMETHOD(GetBackingStore)(THIS_ UINT Index, D3D10_BLEND_DESC *pBlendDesc) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectDepthStencilVariable ////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectDepthStencilVariable ID3D10EffectDepthStencilVariable; +typedef interface ID3D10EffectDepthStencilVariable *LPD3D10EFFECTDEPTHSTENCILVARIABLE; + +// {AF482368-330A-46a5-9A5C-01C71AF24C8D} +DEFINE_GUID(IID_ID3D10EffectDepthStencilVariable, +0xaf482368, 0x330a, 0x46a5, 0x9a, 0x5c, 0x1, 0xc7, 0x1a, 0xf2, 0x4c, 0x8d); + +#undef INTERFACE +#define INTERFACE ID3D10EffectDepthStencilVariable + +DECLARE_INTERFACE_(ID3D10EffectDepthStencilVariable, ID3D10EffectVariable) +{ + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + + STDMETHOD(GetDepthStencilState)(THIS_ UINT Index, _Out_ ID3D10DepthStencilState **ppDepthStencilState) PURE; + STDMETHOD(GetBackingStore)(THIS_ UINT Index, _Out_ D3D10_DEPTH_STENCIL_DESC *pDepthStencilDesc) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectRasterizerVariable //////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectRasterizerVariable ID3D10EffectRasterizerVariable; +typedef interface ID3D10EffectRasterizerVariable *LPD3D10EFFECTRASTERIZERVARIABLE; + +// {21AF9F0E-4D94-4ea9-9785-2CB76B8C0B34} +DEFINE_GUID(IID_ID3D10EffectRasterizerVariable, +0x21af9f0e, 0x4d94, 0x4ea9, 0x97, 0x85, 0x2c, 0xb7, 0x6b, 0x8c, 0xb, 0x34); + +#undef INTERFACE +#define INTERFACE ID3D10EffectRasterizerVariable + +DECLARE_INTERFACE_(ID3D10EffectRasterizerVariable, ID3D10EffectVariable) +{ + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + + STDMETHOD(GetRasterizerState)(THIS_ UINT Index, _Out_ ID3D10RasterizerState **ppRasterizerState) PURE; + STDMETHOD(GetBackingStore)(THIS_ UINT Index, _Out_ D3D10_RASTERIZER_DESC *pRasterizerDesc) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectSamplerVariable /////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectSamplerVariable ID3D10EffectSamplerVariable; +typedef interface ID3D10EffectSamplerVariable *LPD3D10EFFECTSAMPLERVARIABLE; + +// {6530D5C7-07E9-4271-A418-E7CE4BD1E480} +DEFINE_GUID(IID_ID3D10EffectSamplerVariable, +0x6530d5c7, 0x7e9, 0x4271, 0xa4, 0x18, 0xe7, 0xce, 0x4b, 0xd1, 0xe4, 0x80); + +#undef INTERFACE +#define INTERFACE ID3D10EffectSamplerVariable + +DECLARE_INTERFACE_(ID3D10EffectSamplerVariable, ID3D10EffectVariable) +{ + STDMETHOD_(ID3D10EffectType*, GetType)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetMemberByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetMemberBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetElement)(THIS_ UINT Index) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetParentConstantBuffer)(THIS) PURE; + + STDMETHOD_(ID3D10EffectScalarVariable*, AsScalar)(THIS) PURE; + STDMETHOD_(ID3D10EffectVectorVariable*, AsVector)(THIS) PURE; + STDMETHOD_(ID3D10EffectMatrixVariable*, AsMatrix)(THIS) PURE; + STDMETHOD_(ID3D10EffectStringVariable*, AsString)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderResourceVariable*, AsShaderResource)(THIS) PURE; + STDMETHOD_(ID3D10EffectRenderTargetViewVariable*, AsRenderTargetView)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilViewVariable*, AsDepthStencilView)(THIS) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, AsConstantBuffer)(THIS) PURE; + STDMETHOD_(ID3D10EffectShaderVariable*, AsShader)(THIS) PURE; + STDMETHOD_(ID3D10EffectBlendVariable*, AsBlend)(THIS) PURE; + STDMETHOD_(ID3D10EffectDepthStencilVariable*, AsDepthStencil)(THIS) PURE; + STDMETHOD_(ID3D10EffectRasterizerVariable*, AsRasterizer)(THIS) PURE; + STDMETHOD_(ID3D10EffectSamplerVariable*, AsSampler)(THIS) PURE; + + STDMETHOD(SetRawValue)(THIS_ _In_reads_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + STDMETHOD(GetRawValue)(THIS_ _Out_writes_bytes_(ByteCount) void *pData, UINT Offset, UINT ByteCount) PURE; + + STDMETHOD(GetSampler)(THIS_ UINT Index, _Out_ ID3D10SamplerState **ppSampler) PURE; + STDMETHOD(GetBackingStore)(THIS_ UINT Index, _Out_ D3D10_SAMPLER_DESC *pSamplerDesc) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectPass ////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +//---------------------------------------------------------------------------- +// D3D10_PASS_DESC: +// +// Retrieved by ID3D10EffectPass::GetDesc() +//---------------------------------------------------------------------------- + +typedef struct _D3D10_PASS_DESC +{ + LPCSTR Name; // Name of this pass (NULL if not anonymous) + UINT Annotations; // Number of annotations on this pass + + BYTE *pIAInputSignature; // Signature from VS or GS (if there is no VS) + // or NULL if neither exists + SIZE_T IAInputSignatureSize; // Singature size in bytes + + UINT StencilRef; // Specified in SetDepthStencilState() + UINT SampleMask; // Specified in SetBlendState() + FLOAT BlendFactor[4]; // Specified in SetBlendState() +} D3D10_PASS_DESC; + +//---------------------------------------------------------------------------- +// D3D10_PASS_SHADER_DESC: +// +// Retrieved by ID3D10EffectPass::Get**ShaderDesc() +//---------------------------------------------------------------------------- + +typedef struct _D3D10_PASS_SHADER_DESC +{ + ID3D10EffectShaderVariable *pShaderVariable; // The variable that this shader came from. + // If this is an inline shader assignment, + // the returned interface will be an + // anonymous shader variable, which is + // not retrievable any other way. It's + // name in the variable description will + // be "$Anonymous". + // If there is no assignment of this type in + // the pass block, pShaderVariable != NULL, + // but pShaderVariable->IsValid() == FALSE. + + UINT ShaderIndex; // The element of pShaderVariable (if an array) + // or 0 if not applicable +} D3D10_PASS_SHADER_DESC; + +typedef interface ID3D10EffectPass ID3D10EffectPass; +typedef interface ID3D10EffectPass *LPD3D10EFFECTPASS; + +// {5CFBEB89-1A06-46e0-B282-E3F9BFA36A54} +DEFINE_GUID(IID_ID3D10EffectPass, +0x5cfbeb89, 0x1a06, 0x46e0, 0xb2, 0x82, 0xe3, 0xf9, 0xbf, 0xa3, 0x6a, 0x54); + +#undef INTERFACE +#define INTERFACE ID3D10EffectPass + +DECLARE_INTERFACE(ID3D10EffectPass) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ D3D10_PASS_DESC *pDesc) PURE; + + STDMETHOD(GetVertexShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *pDesc) PURE; + STDMETHOD(GetGeometryShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *pDesc) PURE; + STDMETHOD(GetPixelShaderDesc)(THIS_ D3D10_PASS_SHADER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD(Apply)(THIS_ UINT Flags) PURE; + + STDMETHOD(ComputeStateBlockMask)(THIS_ _Out_ D3D10_STATE_BLOCK_MASK *pStateBlockMask) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectTechnique ///////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +//---------------------------------------------------------------------------- +// D3D10_TECHNIQUE_DESC: +// +// Retrieved by ID3D10EffectTechnique::GetDesc() +//---------------------------------------------------------------------------- + +typedef struct _D3D10_TECHNIQUE_DESC +{ + LPCSTR Name; // Name of this technique (NULL if not anonymous) + UINT Passes; // Number of passes contained within + UINT Annotations; // Number of annotations on this technique +} D3D10_TECHNIQUE_DESC; + +typedef interface ID3D10EffectTechnique ID3D10EffectTechnique; +typedef interface ID3D10EffectTechnique *LPD3D10EFFECTTECHNIQUE; + +// {DB122CE8-D1C9-4292-B237-24ED3DE8B175} +DEFINE_GUID(IID_ID3D10EffectTechnique, +0xdb122ce8, 0xd1c9, 0x4292, 0xb2, 0x37, 0x24, 0xed, 0x3d, 0xe8, 0xb1, 0x75); + +#undef INTERFACE +#define INTERFACE ID3D10EffectTechnique + +DECLARE_INTERFACE(ID3D10EffectTechnique) +{ + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ D3D10_TECHNIQUE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectPass*, GetPassByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectPass*, GetPassByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD(ComputeStateBlockMask)(THIS_ _Out_ D3D10_STATE_BLOCK_MASK *pStateBlockMask) PURE; +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10Effect ////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +//---------------------------------------------------------------------------- +// D3D10_EFFECT_DESC: +// +// Retrieved by ID3D10Effect::GetDesc() +//---------------------------------------------------------------------------- + +typedef struct _D3D10_EFFECT_DESC +{ + + BOOL IsChildEffect; // TRUE if this is a child effect, + // FALSE if this is standalone or an effect pool. + + UINT ConstantBuffers; // Number of constant buffers in this effect, + // excluding the effect pool. + UINT SharedConstantBuffers; // Number of constant buffers shared in this + // effect's pool. + + UINT GlobalVariables; // Number of global variables in this effect, + // excluding the effect pool. + UINT SharedGlobalVariables; // Number of global variables shared in this + // effect's pool. + + UINT Techniques; // Number of techniques in this effect, + // excluding the effect pool. +} D3D10_EFFECT_DESC; + +typedef interface ID3D10Effect ID3D10Effect; +typedef interface ID3D10Effect *LPD3D10EFFECT; + +// {51B0CA8B-EC0B-4519-870D-8EE1CB5017C7} +DEFINE_GUID(IID_ID3D10Effect, +0x51b0ca8b, 0xec0b, 0x4519, 0x87, 0xd, 0x8e, 0xe1, 0xcb, 0x50, 0x17, 0xc7); + +#undef INTERFACE +#define INTERFACE ID3D10Effect + +DECLARE_INTERFACE_(ID3D10Effect, IUnknown) +{ + // IUnknown + STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + STDMETHOD_(BOOL, IsValid)(THIS) PURE; + STDMETHOD_(BOOL, IsPool)(THIS) PURE; + + // Managing D3D Device + STDMETHOD(GetDevice)(THIS_ _Out_ ID3D10Device** ppDevice) PURE; + + // New Reflection APIs + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_EFFECT_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10EffectConstantBuffer*, GetConstantBufferByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectConstantBuffer*, GetConstantBufferByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD_(ID3D10EffectVariable*, GetVariableByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetVariableByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(ID3D10EffectVariable*, GetVariableBySemantic)(THIS_ LPCSTR Semantic) PURE; + + STDMETHOD_(ID3D10EffectTechnique*, GetTechniqueByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10EffectTechnique*, GetTechniqueByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD(Optimize)(THIS) PURE; + STDMETHOD_(BOOL, IsOptimized)(THIS) PURE; + +}; + +////////////////////////////////////////////////////////////////////////////// +// ID3D10EffectPool ////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D10EffectPool ID3D10EffectPool; +typedef interface ID3D10EffectPool *LPD3D10EFFECTPOOL; + +// {9537AB04-3250-412e-8213-FCD2F8677933} +DEFINE_GUID(IID_ID3D10EffectPool, +0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33); + +#undef INTERFACE +#define INTERFACE ID3D10EffectPool + +DECLARE_INTERFACE_(ID3D10EffectPool, IUnknown) +{ + // IUnknown + STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + STDMETHOD_(ID3D10Effect*, AsEffect)(THIS) PURE; + + // No public methods +}; + +////////////////////////////////////////////////////////////////////////////// +// APIs ////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + +//---------------------------------------------------------------------------- +// D3D10CreateEffectFromXXXX: +// -------------------------- +// Creates an effect from a binary effect or file +// +// Parameters: +// +// [in] +// +// +// pData +// Blob of effect data, either ASCII (uncompiled, for D3D10CompileEffectFromMemory) or binary (compiled, for D3D10CreateEffect*) +// DataLength +// Length of the data blob +// +// pSrcFileName +// Name of the ASCII Effect file pData was obtained from +// +// pDefines +// Optional NULL-terminated array of preprocessor macro definitions. +// pInclude +// Optional interface pointer to use for handling #include directives. +// If this parameter is NULL, #includes will be honored when compiling +// from file, and will error when compiling from resource or memory. +// HLSLFlags +// Compilation flags pertaining to shaders and data types, honored by +// the HLSL compiler +// FXFlags +// Compilation flags pertaining to Effect compilation, honored +// by the Effect compiler +// pDevice +// Pointer to the D3D10 device on which to create Effect resources +// pEffectPool +// Pointer to an Effect pool to share variables with or NULL +// +// [out] +// +// ppEffect +// Address of the newly created Effect interface +// ppEffectPool +// Address of the newly created Effect pool interface +// ppErrors +// If non-NULL, address of a buffer with error messages that occurred +// during parsing or compilation +// +//---------------------------------------------------------------------------- + +HRESULT WINAPI D3D10CompileEffectFromMemory(_In_reads_bytes_(DataLength) void *pData, SIZE_T DataLength, LPCSTR pSrcFileName, _In_opt_ CONST D3D10_SHADER_MACRO *pDefines, + _In_opt_ ID3D10Include *pInclude, UINT HLSLFlags, UINT FXFlags, + _Out_ ID3D10Blob **ppCompiledEffect, _Out_opt_ ID3D10Blob **ppErrors); + +HRESULT WINAPI D3D10CreateEffectFromMemory(_In_reads_bytes_(DataLength) void *pData, SIZE_T DataLength, UINT FXFlags, _In_ ID3D10Device *pDevice, + _In_opt_ ID3D10EffectPool *pEffectPool, _Out_ ID3D10Effect **ppEffect); + +HRESULT WINAPI D3D10CreateEffectPoolFromMemory(_In_reads_bytes_(DataLength) void *pData, SIZE_T DataLength, UINT FXFlags, _In_ ID3D10Device *pDevice, + _Out_ ID3D10EffectPool **ppEffectPool); + + +//---------------------------------------------------------------------------- +// D3D10DisassembleEffect: +// ----------------------- +// Takes an effect interface, and returns a buffer containing text assembly. +// +// Parameters: +// pEffect +// Pointer to the runtime effect interface. +// EnableColorCode +// Emit HTML tags for color coding the output? +// ppDisassembly +// Returns a buffer containing the disassembled effect. +//---------------------------------------------------------------------------- + +HRESULT WINAPI D3D10DisassembleEffect(_In_ ID3D10Effect *pEffect, BOOL EnableColorCode, _Out_ ID3D10Blob **ppDisassembly); + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //__D3D10EFFECT_H__ + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10misc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10misc.h new file mode 100644 index 0000000000000000000000000000000000000000..c18a302d6b40965a4a26acbe553873657460178f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10misc.h @@ -0,0 +1,151 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: D3D10Misc.h +// Content: D3D10 Device Creation APIs +// +////////////////////////////////////////////////////////////////////////////// + +#ifndef __D3D10MISC_H__ +#define __D3D10MISC_H__ + +#include "d3d10.h" + +// ID3D10Blob has been made version-neutral and moved to d3dcommon.h. + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/////////////////////////////////////////////////////////////////////////// +// D3D10_DRIVER_TYPE +// ---------------- +// +// This identifier is used to determine the implementation of Direct3D10 +// to be used. +// +// Pass one of these values to D3D10CreateDevice +// +/////////////////////////////////////////////////////////////////////////// +typedef enum D3D10_DRIVER_TYPE +{ + D3D10_DRIVER_TYPE_HARDWARE = 0, + D3D10_DRIVER_TYPE_REFERENCE = 1, + D3D10_DRIVER_TYPE_NULL = 2, + D3D10_DRIVER_TYPE_SOFTWARE = 3, + D3D10_DRIVER_TYPE_WARP = 5, +} D3D10_DRIVER_TYPE; + +DEFINE_GUID(GUID_DeviceType, +0xd722fb4d, 0x7a68, 0x437a, 0xb2, 0x0c, 0x58, 0x04, 0xee, 0x24, 0x94, 0xa6); + +/////////////////////////////////////////////////////////////////////////// +// D3D10CreateDevice +// ------------------ +// +// pAdapter +// If NULL, D3D10CreateDevice will choose the primary adapter and +// create a new instance from a temporarily created IDXGIFactory. +// If non-NULL, D3D10CreateDevice will register the appropriate +// device, if necessary (via IDXGIAdapter::RegisterDrver), before +// creating the device. +// DriverType +// Specifies the driver type to be created: hardware, reference or +// null. +// Software +// HMODULE of a DLL implementing a software rasterizer. Must be NULL for +// non-Software driver types. +// Flags +// Any of those documented for D3D10CreateDevice. +// SDKVersion +// SDK version. Use the D3D10_SDK_VERSION macro. +// ppDevice +// Pointer to returned interface. +// +// Return Values +// Any of those documented for +// CreateDXGIFactory +// IDXGIFactory::EnumAdapters +// IDXGIAdapter::RegisterDriver +// D3D10CreateDevice +// +/////////////////////////////////////////////////////////////////////////// +HRESULT WINAPI D3D10CreateDevice( + _In_opt_ IDXGIAdapter *pAdapter, + D3D10_DRIVER_TYPE DriverType, + HMODULE Software, + UINT Flags, + UINT SDKVersion, + _Out_opt_ ID3D10Device **ppDevice); + +/////////////////////////////////////////////////////////////////////////// +// D3D10CreateDeviceAndSwapChain +// ------------------------------ +// +// ppAdapter +// If NULL, D3D10CreateDevice will choose the primary adapter and +// create a new instance from a temporarily created IDXGIFactory. +// If non-NULL, D3D10CreateDevice will register the appropriate +// device, if necessary (via IDXGIAdapter::RegisterDrver), before +// creating the device. +// DriverType +// Specifies the driver type to be created: hardware, reference or +// null. +// Software +// HMODULE of a DLL implementing a software rasterizer. Must be NULL for +// non-Software driver types. +// Flags +// Any of those documented for D3D10CreateDevice. +// SDKVersion +// SDK version. Use the D3D10_SDK_VERSION macro. +// pSwapChainDesc +// Swap chain description, may be NULL. +// ppSwapChain +// Pointer to returned interface. May be NULL. +// ppDevice +// Pointer to returned interface. +// +// Return Values +// Any of those documented for +// CreateDXGIFactory +// IDXGIFactory::EnumAdapters +// IDXGIAdapter::RegisterDriver +// D3D10CreateDevice +// IDXGIFactory::CreateSwapChain +// +/////////////////////////////////////////////////////////////////////////// +HRESULT WINAPI D3D10CreateDeviceAndSwapChain( + _In_opt_ IDXGIAdapter *pAdapter, + D3D10_DRIVER_TYPE DriverType, + HMODULE Software, + UINT Flags, + UINT SDKVersion, + _In_opt_ DXGI_SWAP_CHAIN_DESC *pSwapChainDesc, + _Out_opt_ IDXGISwapChain **ppSwapChain, + _Out_opt_ ID3D10Device **ppDevice); + + +/////////////////////////////////////////////////////////////////////////// +// D3D10CreateBlob: +// ----------------- +// Creates a Buffer of n Bytes +////////////////////////////////////////////////////////////////////////// + +HRESULT WINAPI D3D10CreateBlob(SIZE_T NumBytes, _Out_ LPD3D10BLOB *ppBuffer); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif //__D3D10EFFECT_H__ + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10sdklayers.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10sdklayers.h new file mode 100644 index 0000000000000000000000000000000000000000..ae8b9025d88f5c3694b5a3e42fbb7c1f69b6c286 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10sdklayers.h @@ -0,0 +1,1461 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d10sdklayers_h__ +#define __d3d10sdklayers_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D10Debug_FWD_DEFINED__ +#define __ID3D10Debug_FWD_DEFINED__ +typedef interface ID3D10Debug ID3D10Debug; + +#endif /* __ID3D10Debug_FWD_DEFINED__ */ + + +#ifndef __ID3D10SwitchToRef_FWD_DEFINED__ +#define __ID3D10SwitchToRef_FWD_DEFINED__ +typedef interface ID3D10SwitchToRef ID3D10SwitchToRef; + +#endif /* __ID3D10SwitchToRef_FWD_DEFINED__ */ + + +#ifndef __ID3D10InfoQueue_FWD_DEFINED__ +#define __ID3D10InfoQueue_FWD_DEFINED__ +typedef interface ID3D10InfoQueue ID3D10InfoQueue; + +#endif /* __ID3D10InfoQueue_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "dxgi.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d10sdklayers_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define D3D10_SDK_LAYERS_VERSION ( 11 ) + +#define D3D10_DEBUG_FEATURE_FLUSH_PER_RENDER_OP ( 0x1 ) + +#define D3D10_DEBUG_FEATURE_FINISH_PER_RENDER_OP ( 0x2 ) + +#define D3D10_DEBUG_FEATURE_PRESENT_PER_RENDER_OP ( 0x4 ) + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10sdklayers_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10sdklayers_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D10Debug_INTERFACE_DEFINED__ +#define __ID3D10Debug_INTERFACE_DEFINED__ + +/* interface ID3D10Debug */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Debug; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4E01-342C-4106-A19F-4F2704F689F0") + ID3D10Debug : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetFeatureMask( + UINT Mask) = 0; + + virtual UINT STDMETHODCALLTYPE GetFeatureMask( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPresentPerRenderOpDelay( + UINT Milliseconds) = 0; + + virtual UINT STDMETHODCALLTYPE GetPresentPerRenderOpDelay( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSwapChain( + /* [annotation] */ + _In_opt_ IDXGISwapChain *pSwapChain) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSwapChain( + /* [annotation] */ + _Out_ IDXGISwapChain **ppSwapChain) = 0; + + virtual HRESULT STDMETHODCALLTYPE Validate( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10DebugVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Debug * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Debug * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Debug * This); + + DECLSPEC_XFGVIRT(ID3D10Debug, SetFeatureMask) + HRESULT ( STDMETHODCALLTYPE *SetFeatureMask )( + ID3D10Debug * This, + UINT Mask); + + DECLSPEC_XFGVIRT(ID3D10Debug, GetFeatureMask) + UINT ( STDMETHODCALLTYPE *GetFeatureMask )( + ID3D10Debug * This); + + DECLSPEC_XFGVIRT(ID3D10Debug, SetPresentPerRenderOpDelay) + HRESULT ( STDMETHODCALLTYPE *SetPresentPerRenderOpDelay )( + ID3D10Debug * This, + UINT Milliseconds); + + DECLSPEC_XFGVIRT(ID3D10Debug, GetPresentPerRenderOpDelay) + UINT ( STDMETHODCALLTYPE *GetPresentPerRenderOpDelay )( + ID3D10Debug * This); + + DECLSPEC_XFGVIRT(ID3D10Debug, SetSwapChain) + HRESULT ( STDMETHODCALLTYPE *SetSwapChain )( + ID3D10Debug * This, + /* [annotation] */ + _In_opt_ IDXGISwapChain *pSwapChain); + + DECLSPEC_XFGVIRT(ID3D10Debug, GetSwapChain) + HRESULT ( STDMETHODCALLTYPE *GetSwapChain )( + ID3D10Debug * This, + /* [annotation] */ + _Out_ IDXGISwapChain **ppSwapChain); + + DECLSPEC_XFGVIRT(ID3D10Debug, Validate) + HRESULT ( STDMETHODCALLTYPE *Validate )( + ID3D10Debug * This); + + END_INTERFACE + } ID3D10DebugVtbl; + + interface ID3D10Debug + { + CONST_VTBL struct ID3D10DebugVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Debug_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Debug_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Debug_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Debug_SetFeatureMask(This,Mask) \ + ( (This)->lpVtbl -> SetFeatureMask(This,Mask) ) + +#define ID3D10Debug_GetFeatureMask(This) \ + ( (This)->lpVtbl -> GetFeatureMask(This) ) + +#define ID3D10Debug_SetPresentPerRenderOpDelay(This,Milliseconds) \ + ( (This)->lpVtbl -> SetPresentPerRenderOpDelay(This,Milliseconds) ) + +#define ID3D10Debug_GetPresentPerRenderOpDelay(This) \ + ( (This)->lpVtbl -> GetPresentPerRenderOpDelay(This) ) + +#define ID3D10Debug_SetSwapChain(This,pSwapChain) \ + ( (This)->lpVtbl -> SetSwapChain(This,pSwapChain) ) + +#define ID3D10Debug_GetSwapChain(This,ppSwapChain) \ + ( (This)->lpVtbl -> GetSwapChain(This,ppSwapChain) ) + +#define ID3D10Debug_Validate(This) \ + ( (This)->lpVtbl -> Validate(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Debug_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D10SwitchToRef_INTERFACE_DEFINED__ +#define __ID3D10SwitchToRef_INTERFACE_DEFINED__ + +/* interface ID3D10SwitchToRef */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10SwitchToRef; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4E02-342C-4106-A19F-4F2704F689F0") + ID3D10SwitchToRef : public IUnknown + { + public: + virtual BOOL STDMETHODCALLTYPE SetUseRef( + BOOL UseRef) = 0; + + virtual BOOL STDMETHODCALLTYPE GetUseRef( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10SwitchToRefVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10SwitchToRef * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10SwitchToRef * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10SwitchToRef * This); + + DECLSPEC_XFGVIRT(ID3D10SwitchToRef, SetUseRef) + BOOL ( STDMETHODCALLTYPE *SetUseRef )( + ID3D10SwitchToRef * This, + BOOL UseRef); + + DECLSPEC_XFGVIRT(ID3D10SwitchToRef, GetUseRef) + BOOL ( STDMETHODCALLTYPE *GetUseRef )( + ID3D10SwitchToRef * This); + + END_INTERFACE + } ID3D10SwitchToRefVtbl; + + interface ID3D10SwitchToRef + { + CONST_VTBL struct ID3D10SwitchToRefVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10SwitchToRef_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10SwitchToRef_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10SwitchToRef_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10SwitchToRef_SetUseRef(This,UseRef) \ + ( (This)->lpVtbl -> SetUseRef(This,UseRef) ) + +#define ID3D10SwitchToRef_GetUseRef(This) \ + ( (This)->lpVtbl -> GetUseRef(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10SwitchToRef_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10sdklayers_0000_0002 */ +/* [local] */ + +DEFINE_GUID(DXGI_DEBUG_D3D10, 0x243b4c52, 0x3606, 0x4d3a, 0x99, 0xd7, 0xa7, 0xe7, 0xb3, 0x3e, 0xd7, 0x6); +#define D3D10_REGKEY_PATH __TEXT("Software\\Microsoft\\Direct3D") +#define D3D10_MUTE_DEBUG_OUTPUT __TEXT("MuteDebugOutput") +#define D3D10_ENABLE_BREAK_ON_MESSAGE __TEXT("EnableBreakOnMessage") +#define D3D10_INFOQUEUE_STORAGE_FILTER_OVERRIDE __TEXT("InfoQueueStorageFilterOverride") +#define D3D10_MUTE_CATEGORY __TEXT("Mute_CATEGORY_%s") +#define D3D10_MUTE_SEVERITY __TEXT("Mute_SEVERITY_%s") +#define D3D10_MUTE_ID_STRING __TEXT("Mute_ID_%s") +#define D3D10_MUTE_ID_DECIMAL __TEXT("Mute_ID_%d") +#define D3D10_UNMUTE_SEVERITY_INFO __TEXT("Unmute_SEVERITY_INFO") +#define D3D10_BREAKON_CATEGORY __TEXT("BreakOn_CATEGORY_%s") +#define D3D10_BREAKON_SEVERITY __TEXT("BreakOn_SEVERITY_%s") +#define D3D10_BREAKON_ID_STRING __TEXT("BreakOn_ID_%s") +#define D3D10_BREAKON_ID_DECIMAL __TEXT("BreakOn_ID_%d") +#define D3D10_APPSIZE_STRING __TEXT("Size") +#define D3D10_APPNAME_STRING __TEXT("Name") +typedef +enum D3D10_MESSAGE_CATEGORY + { + D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED = 0, + D3D10_MESSAGE_CATEGORY_MISCELLANEOUS = ( D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED + 1 ) , + D3D10_MESSAGE_CATEGORY_INITIALIZATION = ( D3D10_MESSAGE_CATEGORY_MISCELLANEOUS + 1 ) , + D3D10_MESSAGE_CATEGORY_CLEANUP = ( D3D10_MESSAGE_CATEGORY_INITIALIZATION + 1 ) , + D3D10_MESSAGE_CATEGORY_COMPILATION = ( D3D10_MESSAGE_CATEGORY_CLEANUP + 1 ) , + D3D10_MESSAGE_CATEGORY_STATE_CREATION = ( D3D10_MESSAGE_CATEGORY_COMPILATION + 1 ) , + D3D10_MESSAGE_CATEGORY_STATE_SETTING = ( D3D10_MESSAGE_CATEGORY_STATE_CREATION + 1 ) , + D3D10_MESSAGE_CATEGORY_STATE_GETTING = ( D3D10_MESSAGE_CATEGORY_STATE_SETTING + 1 ) , + D3D10_MESSAGE_CATEGORY_RESOURCE_MANIPULATION = ( D3D10_MESSAGE_CATEGORY_STATE_GETTING + 1 ) , + D3D10_MESSAGE_CATEGORY_EXECUTION = ( D3D10_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + 1 ) , + D3D10_MESSAGE_CATEGORY_SHADER = ( D3D10_MESSAGE_CATEGORY_EXECUTION + 1 ) + } D3D10_MESSAGE_CATEGORY; + +typedef +enum D3D10_MESSAGE_SEVERITY + { + D3D10_MESSAGE_SEVERITY_CORRUPTION = 0, + D3D10_MESSAGE_SEVERITY_ERROR = ( D3D10_MESSAGE_SEVERITY_CORRUPTION + 1 ) , + D3D10_MESSAGE_SEVERITY_WARNING = ( D3D10_MESSAGE_SEVERITY_ERROR + 1 ) , + D3D10_MESSAGE_SEVERITY_INFO = ( D3D10_MESSAGE_SEVERITY_WARNING + 1 ) , + D3D10_MESSAGE_SEVERITY_MESSAGE = ( D3D10_MESSAGE_SEVERITY_INFO + 1 ) + } D3D10_MESSAGE_SEVERITY; + +typedef +enum D3D10_MESSAGE_ID + { + D3D10_MESSAGE_ID_UNKNOWN = 0, + D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD = ( D3D10_MESSAGE_ID_UNKNOWN + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD = ( D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD + 1 ) , + D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD = ( D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD + 1 ) , + D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD = ( D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD + 1 ) , + D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD = ( D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD + 1 ) , + D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD = ( D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD + 1 ) , + D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD = ( D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD + 1 ) , + D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD = ( D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD + 1 ) , + D3D10_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD = ( D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD + 1 ) , + D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD = ( D3D10_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD + 1 ) , + D3D10_MESSAGE_ID_STRING_FROM_APPLICATION = ( D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_THIS = ( D3D10_MESSAGE_ID_STRING_FROM_APPLICATION + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER1 = ( D3D10_MESSAGE_ID_CORRUPTED_THIS + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER2 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER1 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER3 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER2 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER4 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER3 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER5 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER4 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER6 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER5 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER7 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER6 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER8 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER7 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER9 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER8 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER10 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER9 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER11 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER10 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER12 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER11 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER13 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER12 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER14 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER13 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER15 = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER14 + 1 ) , + D3D10_MESSAGE_ID_CORRUPTED_MULTITHREADING = ( D3D10_MESSAGE_ID_CORRUPTED_PARAMETER15 + 1 ) , + D3D10_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY = ( D3D10_MESSAGE_ID_CORRUPTED_MULTITHREADING + 1 ) , + D3D10_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY + 1 ) , + D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT = ( D3D10_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_GETPRIVATEDATA_MOREDATA = ( D3D10_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT + 1 ) , + D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA = ( D3D10_MESSAGE_ID_GETPRIVATEDATA_MOREDATA + 1 ) , + D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN = ( D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA + 1 ) , + D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS = ( D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN + 1 ) , + D3D10_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS = ( D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS + 1 ) , + D3D10_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY = ( D3D10_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT = ( D3D10_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES = ( D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE = ( D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS = ( D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS = ( D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS = ( D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS = ( D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS = ( D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA = ( D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS = ( D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS = ( D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS = ( D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN = ( D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_NULLDESC = ( D3D10_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS = ( D3D10_MESSAGE_ID_CREATEBUFFER_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION = ( D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT = ( D3D10_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_NULLDESC = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT = ( D3D10_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_NULLDESC = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT = ( D3D10_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_NULLDESC = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT = ( D3D10_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT = ( D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC = ( D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT = ( D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC + 1 ) , + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS = ( D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE = ( D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS + 1 ) , + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS = ( D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE + 1 ) , + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN = ( D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS + 1 ) , + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT = ( D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT + 1 ) , + D3D10_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE = ( D3D10_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY + 1 ) , + D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE = ( D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY = ( D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX + 1 ) , + D3D10_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE + 1 ) , + D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE = ( D3D10_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY + 1 ) , + D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE = ( D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE + 1 ) , + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE = ( D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE + 1 ) , + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE = ( D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE + 1 ) , + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP = ( D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE + 1 ) , + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS = ( D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP + 1 ) , + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS = ( D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS + 1 ) , + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC = ( D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK = ( D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC + 1 ) , + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS + 1 ) , + D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS = ( D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY + 1 ) , + D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG = ( D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS + 1 ) , + D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC = ( D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED = ( D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED = ( D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED + 1 ) , + D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER = ( D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE = ( D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE + 1 ) , + D3D10_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER = ( D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID = ( D3D10_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE = ( D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED = ( D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE + 1 ) , + D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED + 1 ) , + D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER = ( D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER + 1 ) , + D3D10_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER = ( D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER + 1 ) , + D3D10_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER = ( D3D10_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED = ( D3D10_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER + 1 ) , + D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED + 1 ) , + D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER = ( D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER + 1 ) , + D3D10_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT = ( D3D10_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR = ( D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT + 1 ) , + D3D10_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH = ( D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR + 1 ) , + D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH = ( D3D10_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH + 1 ) , + D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID = ( D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY = ( D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID + 1 ) , + D3D10_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY = ( D3D10_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID = ( D3D10_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY + 1 ) , + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE = ( D3D10_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID + 1 ) , + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE = ( D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE + 1 ) , + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX = ( D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE + 1 ) , + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE = ( D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX + 1 ) , + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE = ( D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE + 1 ) , + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE = ( D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE + 1 ) , + D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE = ( D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE + 1 ) , + D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE = ( D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE + 1 ) , + D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE = ( D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE + 1 ) , + D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE = ( D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE + 1 ) , + D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX = ( D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE + 1 ) , + D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE = ( D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID = ( D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID = ( D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID = ( D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID = ( D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID = ( D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID + 1 ) , + D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE = ( D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID + 1 ) , + D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS = ( D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE + 1 ) , + D3D10_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED = ( D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS + 1 ) , + D3D10_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN = ( D3D10_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED + 1 ) , + D3D10_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED = ( D3D10_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN + 1 ) , + D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE = ( D3D10_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED + 1 ) , + D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE = ( D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE + 1 ) , + D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS = ( D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE + 1 ) , + D3D10_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED = ( D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS + 1 ) , + D3D10_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN = ( D3D10_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED + 1 ) , + D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE = ( D3D10_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN + 1 ) , + D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED = ( D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE + 1 ) , + D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE = ( D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED + 1 ) , + D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE = ( D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE + 1 ) , + D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS = ( D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE + 1 ) , + D3D10_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED = ( D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS + 1 ) , + D3D10_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN = ( D3D10_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED + 1 ) , + D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE = ( D3D10_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN + 1 ) , + D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED = ( D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE + 1 ) , + D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE = ( D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED + 1 ) , + D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE = ( D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE + 1 ) , + D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS = ( D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE + 1 ) , + D3D10_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED = ( D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS + 1 ) , + D3D10_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN = ( D3D10_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED + 1 ) , + D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE = ( D3D10_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN + 1 ) , + D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED = ( D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE + 1 ) , + D3D10_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED = ( D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED + 1 ) , + D3D10_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED = ( D3D10_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED + 1 ) , + D3D10_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS = ( D3D10_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED + 1 ) , + D3D10_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN = ( D3D10_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS + 1 ) , + D3D10_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN = ( D3D10_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN + 1 ) , + D3D10_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE = ( D3D10_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN + 1 ) , + D3D10_MESSAGE_ID_REF_THREADING_MODE = ( D3D10_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE + 1 ) , + D3D10_MESSAGE_ID_REF_UMDRIVER_EXCEPTION = ( D3D10_MESSAGE_ID_REF_THREADING_MODE + 1 ) , + D3D10_MESSAGE_ID_REF_KMDRIVER_EXCEPTION = ( D3D10_MESSAGE_ID_REF_UMDRIVER_EXCEPTION + 1 ) , + D3D10_MESSAGE_ID_REF_HARDWARE_EXCEPTION = ( D3D10_MESSAGE_ID_REF_KMDRIVER_EXCEPTION + 1 ) , + D3D10_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE = ( D3D10_MESSAGE_ID_REF_HARDWARE_EXCEPTION + 1 ) , + D3D10_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER = ( D3D10_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE + 1 ) , + D3D10_MESSAGE_ID_REF_OUT_OF_MEMORY = ( D3D10_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER + 1 ) , + D3D10_MESSAGE_ID_REF_INFO = ( D3D10_MESSAGE_ID_REF_OUT_OF_MEMORY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW = ( D3D10_MESSAGE_ID_REF_INFO + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW = ( D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW = ( D3D10_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW = ( D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW = ( D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW = ( D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET = ( D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW + 1 ) , + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND = ( D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET + 1 ) , + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX = ( D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND + 1 ) , + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE = ( D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX + 1 ) , + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK = ( D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE + 1 ) , + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE = ( D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK + 1 ) , + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS = ( D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET = ( D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET = ( D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET = ( D3D10_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL = ( D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET = ( D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET = ( D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH = ( D3D10_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL = ( D3D10_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL = ( D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET = ( D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID = ( D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL = ( D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH = ( D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH = ( D3D10_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT = ( D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET = ( D3D10_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED = ( D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY = ( D3D10_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED = ( D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED = ( D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED = ( D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED = ( D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED = ( D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED = ( D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED = ( D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED = ( D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE = ( D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER = ( D3D10_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING = ( D3D10_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 = ( D3D10_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING + 1 ) , + D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT = ( D3D10_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 + 1 ) , + D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT = ( D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT + 1 ) , + D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT = ( D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT + 1 ) , + D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN = ( D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT + 1 ) , + D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN + 1 ) , + D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN = ( D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET = ( D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC = ( D3D10_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET + 1 ) , + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH = ( D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC + 1 ) , + D3D10_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW = ( D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH + 1 ) , + D3D10_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS = ( D3D10_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH = ( D3D10_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH = ( D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH + 1 ) , + D3D10_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH + 1 ) , + D3D10_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY = ( D3D10_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY + 1 ) , + D3D10_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY + 1 ) , + D3D10_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER = ( D3D10_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED = ( D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER + 1 ) , + D3D10_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER = ( D3D10_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED + 1 ) , + D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN = ( D3D10_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + 1 ) , + D3D10_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN = ( D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN + 1 ) , + D3D10_MESSAGE_ID_CREATECOUNTER_NULLDESC = ( D3D10_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN + 1 ) , + D3D10_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER = ( D3D10_MESSAGE_ID_CREATECOUNTER_NULLDESC + 1 ) , + D3D10_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER = ( D3D10_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER + 1 ) , + D3D10_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE = ( D3D10_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + 1 ) , + D3D10_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED = ( D3D10_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE + 1 ) , + D3D10_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION = ( D3D10_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED + 1 ) , + D3D10_MESSAGE_ID_QUERY_BEGIN_DUPLICATE = ( D3D10_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION + 1 ) , + D3D10_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS = ( D3D10_MESSAGE_ID_QUERY_BEGIN_DUPLICATE + 1 ) , + D3D10_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION = ( D3D10_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS + 1 ) , + D3D10_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS = ( D3D10_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION + 1 ) , + D3D10_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN = ( D3D10_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS + 1 ) , + D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE = ( D3D10_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN + 1 ) , + D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS = ( D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE + 1 ) , + D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL = ( D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH = ( D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED = ( D3D10_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN = ( D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE = ( D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE = ( D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT = ( D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE + 1 ) , + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT + 1 ) , + D3D10_MESSAGE_ID_LIVE_OBJECT_SUMMARY = ( D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH + 1 ) , + D3D10_MESSAGE_ID_LIVE_BUFFER = ( D3D10_MESSAGE_ID_LIVE_OBJECT_SUMMARY + 1 ) , + D3D10_MESSAGE_ID_LIVE_TEXTURE1D = ( D3D10_MESSAGE_ID_LIVE_BUFFER + 1 ) , + D3D10_MESSAGE_ID_LIVE_TEXTURE2D = ( D3D10_MESSAGE_ID_LIVE_TEXTURE1D + 1 ) , + D3D10_MESSAGE_ID_LIVE_TEXTURE3D = ( D3D10_MESSAGE_ID_LIVE_TEXTURE2D + 1 ) , + D3D10_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW = ( D3D10_MESSAGE_ID_LIVE_TEXTURE3D + 1 ) , + D3D10_MESSAGE_ID_LIVE_RENDERTARGETVIEW = ( D3D10_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW + 1 ) , + D3D10_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW = ( D3D10_MESSAGE_ID_LIVE_RENDERTARGETVIEW + 1 ) , + D3D10_MESSAGE_ID_LIVE_VERTEXSHADER = ( D3D10_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW + 1 ) , + D3D10_MESSAGE_ID_LIVE_GEOMETRYSHADER = ( D3D10_MESSAGE_ID_LIVE_VERTEXSHADER + 1 ) , + D3D10_MESSAGE_ID_LIVE_PIXELSHADER = ( D3D10_MESSAGE_ID_LIVE_GEOMETRYSHADER + 1 ) , + D3D10_MESSAGE_ID_LIVE_INPUTLAYOUT = ( D3D10_MESSAGE_ID_LIVE_PIXELSHADER + 1 ) , + D3D10_MESSAGE_ID_LIVE_SAMPLER = ( D3D10_MESSAGE_ID_LIVE_INPUTLAYOUT + 1 ) , + D3D10_MESSAGE_ID_LIVE_BLENDSTATE = ( D3D10_MESSAGE_ID_LIVE_SAMPLER + 1 ) , + D3D10_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE = ( D3D10_MESSAGE_ID_LIVE_BLENDSTATE + 1 ) , + D3D10_MESSAGE_ID_LIVE_RASTERIZERSTATE = ( D3D10_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE + 1 ) , + D3D10_MESSAGE_ID_LIVE_QUERY = ( D3D10_MESSAGE_ID_LIVE_RASTERIZERSTATE + 1 ) , + D3D10_MESSAGE_ID_LIVE_PREDICATE = ( D3D10_MESSAGE_ID_LIVE_QUERY + 1 ) , + D3D10_MESSAGE_ID_LIVE_COUNTER = ( D3D10_MESSAGE_ID_LIVE_PREDICATE + 1 ) , + D3D10_MESSAGE_ID_LIVE_DEVICE = ( D3D10_MESSAGE_ID_LIVE_COUNTER + 1 ) , + D3D10_MESSAGE_ID_LIVE_SWAPCHAIN = ( D3D10_MESSAGE_ID_LIVE_DEVICE + 1 ) , + D3D10_MESSAGE_ID_D3D10_MESSAGES_END = ( D3D10_MESSAGE_ID_LIVE_SWAPCHAIN + 1 ) , + D3D10_MESSAGE_ID_D3D10L9_MESSAGES_START = 0x100000, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED = ( D3D10_MESSAGE_ID_D3D10L9_MESSAGES_START + 1 ) , + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED = ( D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT = ( D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY + 1 ) , + D3D10_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE + 1 ) , + D3D10_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS = ( D3D10_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED + 1 ) , + D3D10_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS = ( D3D10_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS = ( D3D10_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND = ( D3D10_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D = ( D3D10_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE = ( D3D10_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE = ( D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE + 1 ) , + D3D10_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS = ( D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE + 1 ) , + D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS = ( D3D10_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS + 1 ) , + D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX = ( D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS = ( D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX + 1 ) , + D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED = ( D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS = ( D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED + 1 ) , + D3D10_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY = ( D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS + 1 ) , + D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK = ( D3D10_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY + 1 ) , + D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK = ( D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK + 1 ) , + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT = ( D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE = ( D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT + 1 ) , + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE + 1 ) , + D3D10_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE = ( D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD = ( D3D10_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX + 1 ) , + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET = ( D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER = ( D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE = ( D3D10_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE = ( D3D10_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE = ( D3D10_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS = ( D3D10_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES = ( D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED = ( D3D10_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES + 1 ) , + D3D10_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED = ( D3D10_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED + 1 ) , + D3D10_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED = ( D3D10_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED + 1 ) , + D3D10_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED = ( D3D10_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED + 1 ) , + D3D10_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED = ( D3D10_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND = ( D3D10_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND + 1 ) , + D3D10_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE = ( D3D10_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED + 1 ) , + D3D10_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE + 1 ) , + D3D10_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3 = ( D3D10_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED + 1 ) , + D3D10_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED = ( D3D10_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3 + 1 ) , + D3D10_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO = ( D3D10_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION = ( D3D10_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED = ( D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION + 1 ) , + D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR = ( D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED + 1 ) , + D3D10_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA = ( D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR + 1 ) , + D3D10_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP = ( D3D10_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA + 1 ) , + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED = ( D3D10_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP + 1 ) , + D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT = ( D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED + 1 ) , + D3D10_MESSAGE_ID_COPYRESOURCE_NO_3D_MISMATCHED_UPDATES = ( D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT + 1 ) , + D3D10_MESSAGE_ID_D3D10L9_MESSAGES_END = ( D3D10_MESSAGE_ID_COPYRESOURCE_NO_3D_MISMATCHED_UPDATES + 1 ) + } D3D10_MESSAGE_ID; + +typedef struct D3D10_MESSAGE + { + D3D10_MESSAGE_CATEGORY Category; + D3D10_MESSAGE_SEVERITY Severity; + D3D10_MESSAGE_ID ID; + /* [annotation] */ + _Field_size_(DescriptionByteLength) const char *pDescription; + SIZE_T DescriptionByteLength; + } D3D10_MESSAGE; + +typedef struct D3D10_INFO_QUEUE_FILTER_DESC + { + UINT NumCategories; + /* [annotation] */ + _Field_size_(NumCategories) D3D10_MESSAGE_CATEGORY *pCategoryList; + UINT NumSeverities; + /* [annotation] */ + _Field_size_(NumSeverities) D3D10_MESSAGE_SEVERITY *pSeverityList; + UINT NumIDs; + /* [annotation] */ + _Field_size_(NumIDs) D3D10_MESSAGE_ID *pIDList; + } D3D10_INFO_QUEUE_FILTER_DESC; + +typedef struct D3D10_INFO_QUEUE_FILTER + { + D3D10_INFO_QUEUE_FILTER_DESC AllowList; + D3D10_INFO_QUEUE_FILTER_DESC DenyList; + } D3D10_INFO_QUEUE_FILTER; + +#define D3D10_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024 + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10sdklayers_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10sdklayers_0000_0002_v0_0_s_ifspec; + +#ifndef __ID3D10InfoQueue_INTERFACE_DEFINED__ +#define __ID3D10InfoQueue_INTERFACE_DEFINED__ + +/* interface ID3D10InfoQueue */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10InfoQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1b940b17-2642-4d1f-ab1f-b99bad0c395f") + ID3D10InfoQueue : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetMessageCountLimit( + /* [annotation] */ + _In_ UINT64 MessageCountLimit) = 0; + + virtual void STDMETHODCALLTYPE ClearStoredMessages( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMessage( + /* [annotation] */ + _In_ UINT64 MessageIndex, + /* [annotation] */ + _Out_writes_bytes_opt_(*pMessageByteLength) D3D10_MESSAGE *pMessage, + /* [annotation] */ + _Inout_ SIZE_T *pMessageByteLength) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesAllowedByStorageFilter( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDeniedByStorageFilter( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessages( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessagesAllowedByRetrievalFilter( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDiscardedByMessageCountLimit( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetMessageCountLimit( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddStorageFilterEntries( + /* [annotation] */ + _In_ D3D10_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStorageFilter( + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) D3D10_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength) = 0; + + virtual void STDMETHODCALLTYPE ClearStorageFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushEmptyStorageFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushCopyOfStorageFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushStorageFilter( + /* [annotation] */ + _In_ D3D10_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual void STDMETHODCALLTYPE PopStorageFilter( void) = 0; + + virtual UINT STDMETHODCALLTYPE GetStorageFilterStackSize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRetrievalFilterEntries( + /* [annotation] */ + _In_ D3D10_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRetrievalFilter( + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) D3D10_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength) = 0; + + virtual void STDMETHODCALLTYPE ClearRetrievalFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushEmptyRetrievalFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushCopyOfRetrievalFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushRetrievalFilter( + /* [annotation] */ + _In_ D3D10_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual void STDMETHODCALLTYPE PopRetrievalFilter( void) = 0; + + virtual UINT STDMETHODCALLTYPE GetRetrievalFilterStackSize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMessage( + /* [annotation] */ + _In_ D3D10_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ D3D10_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ D3D10_MESSAGE_ID ID, + /* [annotation] */ + _In_ LPCSTR pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddApplicationMessage( + /* [annotation] */ + _In_ D3D10_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ LPCSTR pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnCategory( + /* [annotation] */ + _In_ D3D10_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnSeverity( + /* [annotation] */ + _In_ D3D10_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnID( + /* [annotation] */ + _In_ D3D10_MESSAGE_ID ID, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnCategory( + /* [annotation] */ + _In_ D3D10_MESSAGE_CATEGORY Category) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnSeverity( + /* [annotation] */ + _In_ D3D10_MESSAGE_SEVERITY Severity) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnID( + /* [annotation] */ + _In_ D3D10_MESSAGE_ID ID) = 0; + + virtual void STDMETHODCALLTYPE SetMuteDebugOutput( + /* [annotation] */ + _In_ BOOL bMute) = 0; + + virtual BOOL STDMETHODCALLTYPE GetMuteDebugOutput( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10InfoQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10InfoQueue * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, SetMessageCountLimit) + HRESULT ( STDMETHODCALLTYPE *SetMessageCountLimit )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ UINT64 MessageCountLimit); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, ClearStoredMessages) + void ( STDMETHODCALLTYPE *ClearStoredMessages )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetMessage) + HRESULT ( STDMETHODCALLTYPE *GetMessage )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ UINT64 MessageIndex, + /* [annotation] */ + _Out_writes_bytes_opt_(*pMessageByteLength) D3D10_MESSAGE *pMessage, + /* [annotation] */ + _Inout_ SIZE_T *pMessageByteLength); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetNumMessagesAllowedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesAllowedByStorageFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetNumMessagesDeniedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDeniedByStorageFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetNumStoredMessages) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessages )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetNumStoredMessagesAllowedByRetrievalFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessagesAllowedByRetrievalFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetNumMessagesDiscardedByMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDiscardedByMessageCountLimit )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetMessageCountLimit )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, AddStorageFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddStorageFilterEntries )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetStorageFilter) + HRESULT ( STDMETHODCALLTYPE *GetStorageFilter )( + ID3D10InfoQueue * This, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) D3D10_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, ClearStorageFilter) + void ( STDMETHODCALLTYPE *ClearStorageFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, PushEmptyStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyStorageFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, PushCopyOfStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfStorageFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, PushStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushStorageFilter )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, PopStorageFilter) + void ( STDMETHODCALLTYPE *PopStorageFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetStorageFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetStorageFilterStackSize )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, AddRetrievalFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddRetrievalFilterEntries )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *GetRetrievalFilter )( + ID3D10InfoQueue * This, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) D3D10_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, ClearRetrievalFilter) + void ( STDMETHODCALLTYPE *ClearRetrievalFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, PushEmptyRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyRetrievalFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, PushCopyOfRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfRetrievalFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, PushRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushRetrievalFilter )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, PopRetrievalFilter) + void ( STDMETHODCALLTYPE *PopRetrievalFilter )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetRetrievalFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetRetrievalFilterStackSize )( + ID3D10InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, AddMessage) + HRESULT ( STDMETHODCALLTYPE *AddMessage )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ D3D10_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ D3D10_MESSAGE_ID ID, + /* [annotation] */ + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, AddApplicationMessage) + HRESULT ( STDMETHODCALLTYPE *AddApplicationMessage )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, SetBreakOnCategory) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnCategory )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, SetBreakOnSeverity) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnSeverity )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, SetBreakOnID) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnID )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_MESSAGE_ID ID, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetBreakOnCategory) + BOOL ( STDMETHODCALLTYPE *GetBreakOnCategory )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_MESSAGE_CATEGORY Category); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetBreakOnSeverity) + BOOL ( STDMETHODCALLTYPE *GetBreakOnSeverity )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_MESSAGE_SEVERITY Severity); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetBreakOnID) + BOOL ( STDMETHODCALLTYPE *GetBreakOnID )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ D3D10_MESSAGE_ID ID); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, SetMuteDebugOutput) + void ( STDMETHODCALLTYPE *SetMuteDebugOutput )( + ID3D10InfoQueue * This, + /* [annotation] */ + _In_ BOOL bMute); + + DECLSPEC_XFGVIRT(ID3D10InfoQueue, GetMuteDebugOutput) + BOOL ( STDMETHODCALLTYPE *GetMuteDebugOutput )( + ID3D10InfoQueue * This); + + END_INTERFACE + } ID3D10InfoQueueVtbl; + + interface ID3D10InfoQueue + { + CONST_VTBL struct ID3D10InfoQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10InfoQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10InfoQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10InfoQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10InfoQueue_SetMessageCountLimit(This,MessageCountLimit) \ + ( (This)->lpVtbl -> SetMessageCountLimit(This,MessageCountLimit) ) + +#define ID3D10InfoQueue_ClearStoredMessages(This) \ + ( (This)->lpVtbl -> ClearStoredMessages(This) ) + +#define ID3D10InfoQueue_GetMessage(This,MessageIndex,pMessage,pMessageByteLength) \ + ( (This)->lpVtbl -> GetMessage(This,MessageIndex,pMessage,pMessageByteLength) ) + +#define ID3D10InfoQueue_GetNumMessagesAllowedByStorageFilter(This) \ + ( (This)->lpVtbl -> GetNumMessagesAllowedByStorageFilter(This) ) + +#define ID3D10InfoQueue_GetNumMessagesDeniedByStorageFilter(This) \ + ( (This)->lpVtbl -> GetNumMessagesDeniedByStorageFilter(This) ) + +#define ID3D10InfoQueue_GetNumStoredMessages(This) \ + ( (This)->lpVtbl -> GetNumStoredMessages(This) ) + +#define ID3D10InfoQueue_GetNumStoredMessagesAllowedByRetrievalFilter(This) \ + ( (This)->lpVtbl -> GetNumStoredMessagesAllowedByRetrievalFilter(This) ) + +#define ID3D10InfoQueue_GetNumMessagesDiscardedByMessageCountLimit(This) \ + ( (This)->lpVtbl -> GetNumMessagesDiscardedByMessageCountLimit(This) ) + +#define ID3D10InfoQueue_GetMessageCountLimit(This) \ + ( (This)->lpVtbl -> GetMessageCountLimit(This) ) + +#define ID3D10InfoQueue_AddStorageFilterEntries(This,pFilter) \ + ( (This)->lpVtbl -> AddStorageFilterEntries(This,pFilter) ) + +#define ID3D10InfoQueue_GetStorageFilter(This,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetStorageFilter(This,pFilter,pFilterByteLength) ) + +#define ID3D10InfoQueue_ClearStorageFilter(This) \ + ( (This)->lpVtbl -> ClearStorageFilter(This) ) + +#define ID3D10InfoQueue_PushEmptyStorageFilter(This) \ + ( (This)->lpVtbl -> PushEmptyStorageFilter(This) ) + +#define ID3D10InfoQueue_PushCopyOfStorageFilter(This) \ + ( (This)->lpVtbl -> PushCopyOfStorageFilter(This) ) + +#define ID3D10InfoQueue_PushStorageFilter(This,pFilter) \ + ( (This)->lpVtbl -> PushStorageFilter(This,pFilter) ) + +#define ID3D10InfoQueue_PopStorageFilter(This) \ + ( (This)->lpVtbl -> PopStorageFilter(This) ) + +#define ID3D10InfoQueue_GetStorageFilterStackSize(This) \ + ( (This)->lpVtbl -> GetStorageFilterStackSize(This) ) + +#define ID3D10InfoQueue_AddRetrievalFilterEntries(This,pFilter) \ + ( (This)->lpVtbl -> AddRetrievalFilterEntries(This,pFilter) ) + +#define ID3D10InfoQueue_GetRetrievalFilter(This,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetRetrievalFilter(This,pFilter,pFilterByteLength) ) + +#define ID3D10InfoQueue_ClearRetrievalFilter(This) \ + ( (This)->lpVtbl -> ClearRetrievalFilter(This) ) + +#define ID3D10InfoQueue_PushEmptyRetrievalFilter(This) \ + ( (This)->lpVtbl -> PushEmptyRetrievalFilter(This) ) + +#define ID3D10InfoQueue_PushCopyOfRetrievalFilter(This) \ + ( (This)->lpVtbl -> PushCopyOfRetrievalFilter(This) ) + +#define ID3D10InfoQueue_PushRetrievalFilter(This,pFilter) \ + ( (This)->lpVtbl -> PushRetrievalFilter(This,pFilter) ) + +#define ID3D10InfoQueue_PopRetrievalFilter(This) \ + ( (This)->lpVtbl -> PopRetrievalFilter(This) ) + +#define ID3D10InfoQueue_GetRetrievalFilterStackSize(This) \ + ( (This)->lpVtbl -> GetRetrievalFilterStackSize(This) ) + +#define ID3D10InfoQueue_AddMessage(This,Category,Severity,ID,pDescription) \ + ( (This)->lpVtbl -> AddMessage(This,Category,Severity,ID,pDescription) ) + +#define ID3D10InfoQueue_AddApplicationMessage(This,Severity,pDescription) \ + ( (This)->lpVtbl -> AddApplicationMessage(This,Severity,pDescription) ) + +#define ID3D10InfoQueue_SetBreakOnCategory(This,Category,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnCategory(This,Category,bEnable) ) + +#define ID3D10InfoQueue_SetBreakOnSeverity(This,Severity,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnSeverity(This,Severity,bEnable) ) + +#define ID3D10InfoQueue_SetBreakOnID(This,ID,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnID(This,ID,bEnable) ) + +#define ID3D10InfoQueue_GetBreakOnCategory(This,Category) \ + ( (This)->lpVtbl -> GetBreakOnCategory(This,Category) ) + +#define ID3D10InfoQueue_GetBreakOnSeverity(This,Severity) \ + ( (This)->lpVtbl -> GetBreakOnSeverity(This,Severity) ) + +#define ID3D10InfoQueue_GetBreakOnID(This,ID) \ + ( (This)->lpVtbl -> GetBreakOnID(This,ID) ) + +#define ID3D10InfoQueue_SetMuteDebugOutput(This,bMute) \ + ( (This)->lpVtbl -> SetMuteDebugOutput(This,bMute) ) + +#define ID3D10InfoQueue_GetMuteDebugOutput(This) \ + ( (This)->lpVtbl -> GetMuteDebugOutput(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10InfoQueue_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d10sdklayers_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +DEFINE_GUID(IID_ID3D10Debug,0x9B7E4E01,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10SwitchToRef,0x9B7E4E02,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D10InfoQueue,0x1b940b17,0x2642,0x4d1f,0xab,0x1f,0xb9,0x9b,0xad,0x0c,0x39,0x5f); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d10sdklayers_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d10sdklayers_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10sdklayers.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10sdklayers.idl new file mode 100644 index 0000000000000000000000000000000000000000..0956915154ad8dd1b48835f856ee76e247dfaa3f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10sdklayers.idl @@ -0,0 +1,999 @@ +////////////////////////////////////////////////////////////////////////////////////////////// +// // +// D3D10SDKLayers.idl // +// // +// Contains interface definitions for the D3D10 SDK Layers . // +// // +// Copyright (c) Microsoft Corporation. // +// // +////////////////////////////////////////////////////////////////////////////////////////////// + +import "oaidl.idl"; +import "ocidl.idl"; +import "dxgi.idl"; + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +const UINT D3D10_SDK_LAYERS_VERSION = 11; + +//================================================================================================================================== +// +// Debugging Layer +// +//================================================================================================================================== +const UINT D3D10_DEBUG_FEATURE_FLUSH_PER_RENDER_OP = 0x1; +const UINT D3D10_DEBUG_FEATURE_FINISH_PER_RENDER_OP = 0x2; +const UINT D3D10_DEBUG_FEATURE_PRESENT_PER_RENDER_OP = 0x4; + + +[ uuid( 9B7E4E01-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10Debug + : IUnknown +{ + HRESULT SetFeatureMask( UINT Mask ); + UINT GetFeatureMask(); + HRESULT SetPresentPerRenderOpDelay( UINT Milliseconds ); + UINT GetPresentPerRenderOpDelay(); + HRESULT SetSwapChain( [ annotation( "_In_opt_" ) ] IDXGISwapChain* pSwapChain ); + HRESULT GetSwapChain( [ annotation( "_Out_" ) ] IDXGISwapChain** ppSwapChain ); + HRESULT Validate(); +}; + +[ uuid( 9B7E4E02-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D10SwitchToRef + : IUnknown +{ + BOOL SetUseRef( BOOL UseRef ); + BOOL GetUseRef(); +}; + + +// +// DXGI Debug D3D10 Producer GUID +// +cpp_quote("DEFINE_GUID(DXGI_DEBUG_D3D10, 0x243b4c52, 0x3606, 0x4d3a, 0x99, 0xd7, 0xa7, 0xe7, 0xb3, 0x3e, 0xd7, 0x6);") + +// +// D3D10 Registry path and keys +// +cpp_quote( "#define D3D10_REGKEY_PATH __TEXT(\"Software\\\\Microsoft\\\\Direct3D\")" ) +cpp_quote( "#define D3D10_MUTE_DEBUG_OUTPUT __TEXT(\"MuteDebugOutput\")" ) +cpp_quote( "#define D3D10_ENABLE_BREAK_ON_MESSAGE __TEXT(\"EnableBreakOnMessage\")" ) +cpp_quote( "#define D3D10_INFOQUEUE_STORAGE_FILTER_OVERRIDE __TEXT(\"InfoQueueStorageFilterOverride\")" ) +cpp_quote( "#define D3D10_MUTE_CATEGORY __TEXT(\"Mute_CATEGORY_%s\")" ) +cpp_quote( "#define D3D10_MUTE_SEVERITY __TEXT(\"Mute_SEVERITY_%s\")" ) +cpp_quote( "#define D3D10_MUTE_ID_STRING __TEXT(\"Mute_ID_%s\")" ) +cpp_quote( "#define D3D10_MUTE_ID_DECIMAL __TEXT(\"Mute_ID_%d\")" ) +cpp_quote( "#define D3D10_UNMUTE_SEVERITY_INFO __TEXT(\"Unmute_SEVERITY_INFO\")" ) +cpp_quote( "#define D3D10_BREAKON_CATEGORY __TEXT(\"BreakOn_CATEGORY_%s\")" ) +cpp_quote( "#define D3D10_BREAKON_SEVERITY __TEXT(\"BreakOn_SEVERITY_%s\")" ) +cpp_quote( "#define D3D10_BREAKON_ID_STRING __TEXT(\"BreakOn_ID_%s\")" ) +cpp_quote( "#define D3D10_BREAKON_ID_DECIMAL __TEXT(\"BreakOn_ID_%d\")" ) +cpp_quote( "#define D3D10_APPSIZE_STRING __TEXT(\"Size\")" ) +cpp_quote( "#define D3D10_APPNAME_STRING __TEXT(\"Name\")" ) + +//================================================================================================================================== +// +// Info Queue +// +//================================================================================================================================== +typedef enum D3D10_MESSAGE_CATEGORY { + D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED, + D3D10_MESSAGE_CATEGORY_MISCELLANEOUS, + D3D10_MESSAGE_CATEGORY_INITIALIZATION, + D3D10_MESSAGE_CATEGORY_CLEANUP, + D3D10_MESSAGE_CATEGORY_COMPILATION, + D3D10_MESSAGE_CATEGORY_STATE_CREATION, + D3D10_MESSAGE_CATEGORY_STATE_SETTING, + D3D10_MESSAGE_CATEGORY_STATE_GETTING, + D3D10_MESSAGE_CATEGORY_RESOURCE_MANIPULATION, + D3D10_MESSAGE_CATEGORY_EXECUTION, + D3D10_MESSAGE_CATEGORY_SHADER +} D3D10_MESSAGE_CATEGORY; + +typedef enum D3D10_MESSAGE_SEVERITY { + D3D10_MESSAGE_SEVERITY_CORRUPTION, + D3D10_MESSAGE_SEVERITY_ERROR, + D3D10_MESSAGE_SEVERITY_WARNING, + D3D10_MESSAGE_SEVERITY_INFO, + D3D10_MESSAGE_SEVERITY_MESSAGE +} D3D10_MESSAGE_SEVERITY; + +// Unique ID for every error +typedef enum D3D10_MESSAGE_ID { + D3D10_MESSAGE_ID_UNKNOWN = 0, + + //-------------------------------------------------------------------------- + // Messages Used by Core + // Message IDs generated from core are at the beginning + // since the core changes less frequently than the debug layer. + + // hazard checking + D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD, + D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD, + D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD, + D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD, + D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD, + D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD, + D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD, + D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD, + D3D10_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD, + D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD, + + // End of Messages used by Core + // ------------------------------------------------------------------------ + D3D10_MESSAGE_ID_STRING_FROM_APPLICATION, + D3D10_MESSAGE_ID_CORRUPTED_THIS, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER1, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER2, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER3, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER4, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER5, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER6, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER7, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER8, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER9, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER10, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER11, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER12, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER13, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER14, + D3D10_MESSAGE_ID_CORRUPTED_PARAMETER15, + D3D10_MESSAGE_ID_CORRUPTED_MULTITHREADING, + D3D10_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY, + + D3D10_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT, + D3D10_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT, + + D3D10_MESSAGE_ID_GETPRIVATEDATA_MOREDATA, + D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA, + D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN, + D3D10_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS, + D3D10_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS, + D3D10_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY, + + D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT, + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES, + D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE, + D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS, + D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS, + D3D10_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS, + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS, + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS, + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA, + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS, + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS, + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS, + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN, + D3D10_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN, + D3D10_MESSAGE_ID_CREATEBUFFER_NULLDESC, + D3D10_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS, + D3D10_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION, + + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT, + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT, + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES, + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE, + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA, + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS, + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS, + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN, + D3D10_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN, + D3D10_MESSAGE_ID_CREATETEXTURE1D_NULLDESC, + D3D10_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION, + + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT, + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT, + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES, + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE, + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA, + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS, + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS, + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN, + D3D10_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN, + D3D10_MESSAGE_ID_CREATETEXTURE2D_NULLDESC, + D3D10_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION, + + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT, + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT, + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES, + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE, + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA, + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS, + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS, + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS, + D3D10_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN, + D3D10_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN, + D3D10_MESSAGE_ID_CREATETEXTURE3D_NULLDESC, + D3D10_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION, + + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT, + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC, + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT, + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS, + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE, + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS, + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN, + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN, + + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT, + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT, + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC, + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT, + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS, + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE, + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS, + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN, + D3D10_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN, + + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN, + + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC, + + D3D10_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY, + D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE, + D3D10_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE, + + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE, + + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE, + + D3D10_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY, + D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE, + D3D10_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE, + + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE, + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE, + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP, + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS, + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS, + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC, + + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC, + + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC, + + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC, + + D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY, + D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS, + D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG, + D3D10_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC, + + D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED, + D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED, + + D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER, + D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE, + D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY, + + D3D10_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER, + D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID, + D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE, + D3D10_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED, + + D3D10_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY, + + D3D10_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER, + D3D10_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY, + + D3D10_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER, + D3D10_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY, + + D3D10_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER, + D3D10_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED, + + D3D10_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY, + + D3D10_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER, + D3D10_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT, + + D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR, + + D3D10_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH, + D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH, + D3D10_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID, + + D3D10_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY, + + D3D10_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID, + + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE, + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE, + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX, + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE, + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE, + D3D10_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE, + + D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE, + D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE, + D3D10_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE, + + D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE, + D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX, + D3D10_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE, + + D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID, + D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID, + D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID, + D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID, + D3D10_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID, + + D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE, + D3D10_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS, + D3D10_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED, + D3D10_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN, + D3D10_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED, + + D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE, + D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE, + D3D10_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS, + D3D10_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED, + D3D10_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN, + D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE, + D3D10_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED, + + D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE, + D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE, + D3D10_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS, + D3D10_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED, + D3D10_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN, + D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE, + D3D10_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED, + + D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE, + D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE, + D3D10_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS, + D3D10_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED, + D3D10_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN, + D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE, + D3D10_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED, + + D3D10_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED, + D3D10_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED, + + D3D10_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS, + D3D10_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN, + D3D10_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN, + + D3D10_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE, + D3D10_MESSAGE_ID_REF_THREADING_MODE, + D3D10_MESSAGE_ID_REF_UMDRIVER_EXCEPTION, + D3D10_MESSAGE_ID_REF_KMDRIVER_EXCEPTION, + D3D10_MESSAGE_ID_REF_HARDWARE_EXCEPTION, + D3D10_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE, + D3D10_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER, + D3D10_MESSAGE_ID_REF_OUT_OF_MEMORY, + D3D10_MESSAGE_ID_REF_INFO, + + //drawtime validation + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW, + D3D10_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW, + D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW, + D3D10_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW, + + D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW, + D3D10_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW, + + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET, + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND, + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX, + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE, + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK, + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE, + D3D10_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS, + + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET, + D3D10_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET, + D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET, + D3D10_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL, + D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET, + D3D10_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET, + D3D10_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH, + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL, + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL, + D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET, + D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID, + D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL, + D3D10_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH, + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH, + D3D10_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT, + D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET, + D3D10_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED, + D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY, + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED, + D3D10_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED, + D3D10_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED, + D3D10_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED, + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED, + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED, + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED, + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED, + D3D10_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE, + D3D10_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER, + D3D10_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING, + D3D10_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0, + D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT, + D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT, + D3D10_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT, + + D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN, + D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN, + D3D10_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN, + + D3D10_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC, + D3D10_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC, + D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH, + D3D10_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW, + D3D10_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS, + D3D10_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH, + + D3D10_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY, + D3D10_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY, + + D3D10_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN, + D3D10_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN, + D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER, + D3D10_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED, + D3D10_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER, + D3D10_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN, + D3D10_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN, + D3D10_MESSAGE_ID_CREATECOUNTER_NULLDESC, + D3D10_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER, + D3D10_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER, + D3D10_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE, + D3D10_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED, + D3D10_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION, + D3D10_MESSAGE_ID_QUERY_BEGIN_DUPLICATE, + D3D10_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS, + D3D10_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION, + D3D10_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS, + D3D10_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN, + D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE, + D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS, + D3D10_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL, + + D3D10_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH, + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED, + D3D10_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN, + D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE, + D3D10_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT, + D3D10_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH, + + D3D10_MESSAGE_ID_LIVE_OBJECT_SUMMARY, + D3D10_MESSAGE_ID_LIVE_BUFFER, + D3D10_MESSAGE_ID_LIVE_TEXTURE1D, + D3D10_MESSAGE_ID_LIVE_TEXTURE2D, + D3D10_MESSAGE_ID_LIVE_TEXTURE3D, + D3D10_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW, + D3D10_MESSAGE_ID_LIVE_RENDERTARGETVIEW, + D3D10_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW, + D3D10_MESSAGE_ID_LIVE_VERTEXSHADER, + D3D10_MESSAGE_ID_LIVE_GEOMETRYSHADER, + D3D10_MESSAGE_ID_LIVE_PIXELSHADER, + D3D10_MESSAGE_ID_LIVE_INPUTLAYOUT, + D3D10_MESSAGE_ID_LIVE_SAMPLER, + D3D10_MESSAGE_ID_LIVE_BLENDSTATE, + D3D10_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE, + D3D10_MESSAGE_ID_LIVE_RASTERIZERSTATE, + D3D10_MESSAGE_ID_LIVE_QUERY, + D3D10_MESSAGE_ID_LIVE_PREDICATE, + D3D10_MESSAGE_ID_LIVE_COUNTER, + D3D10_MESSAGE_ID_LIVE_DEVICE, + D3D10_MESSAGE_ID_LIVE_SWAPCHAIN, + + D3D10_MESSAGE_ID_D3D10_MESSAGES_END, + + //10on9 messages: + D3D10_MESSAGE_ID_D3D10L9_MESSAGES_START = 0x00100000, + D3D10_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED, + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE, + D3D10_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED, + D3D10_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS, + D3D10_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS, + D3D10_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS, + D3D10_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND, + D3D10_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D, + D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE, + D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE, + D3D10_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS, + D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS, + D3D10_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX, + D3D10_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS, + D3D10_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED, + D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS, + D3D10_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY, + D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK, + D3D10_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK, + D3D10_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE, + D3D10_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE, + D3D10_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE, + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX, + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO, + D3D10_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES, + D3D10_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET, + D3D10_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER, + D3D10_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE, + D3D10_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS, + D3D10_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT, + D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS, + D3D10_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES, + D3D10_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED, + D3D10_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED, + D3D10_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED, + D3D10_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED, + D3D10_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND, + D3D10_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE, + D3D10_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED, + D3D10_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3, + D3D10_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED, + D3D10_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO, + D3D10_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION, + D3D10_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED, + D3D10_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR, + D3D10_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA, + D3D10_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP, + D3D10_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED, + D3D10_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT, + D3D10_MESSAGE_ID_COPYRESOURCE_NO_3D_MISMATCHED_UPDATES, + D3D10_MESSAGE_ID_D3D10L9_MESSAGES_END, + +} D3D10_MESSAGE_ID; + +typedef struct D3D10_MESSAGE +{ + D3D10_MESSAGE_CATEGORY Category; + D3D10_MESSAGE_SEVERITY Severity; + D3D10_MESSAGE_ID ID; + [annotation("_Field_size_(DescriptionByteLength)")] const char* pDescription; + SIZE_T DescriptionByteLength; +} D3D10_MESSAGE; + +typedef struct D3D10_INFO_QUEUE_FILTER_DESC +{ + UINT NumCategories; + [annotation("_Field_size_(NumCategories)")] D3D10_MESSAGE_CATEGORY* pCategoryList; + UINT NumSeverities; + [annotation("_Field_size_(NumSeverities)")] D3D10_MESSAGE_SEVERITY* pSeverityList; + UINT NumIDs; + [annotation("_Field_size_(NumIDs)")] D3D10_MESSAGE_ID* pIDList; +} D3D10_INFO_QUEUE_FILTER_DESC; + +// To use, memset to 0, then fill in what you need. +typedef struct D3D10_INFO_QUEUE_FILTER +{ + D3D10_INFO_QUEUE_FILTER_DESC AllowList; + D3D10_INFO_QUEUE_FILTER_DESC DenyList; +} D3D10_INFO_QUEUE_FILTER; + +//============================================================================= +// ID3D10InfoQueue +// +// Logs D3D10 Messages. +// This interface can be queried from ID3D10Device, as long as the device +// was created with the debug layer. +// +// +cpp_quote("#define D3D10_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024") +[ uuid( 1b940b17-2642-4d1f-ab1f-b99bad0c395f ), object, local, pointer_default( unique ) ] +interface ID3D10InfoQueue + : IUnknown +{ + //========================================================================= + // Methods for configuring how much data is stored in the queue. + + // SetMessageCountLimit() + // This sets how many messages are stored. When the queue is full, + // new messages coming in push old messages out. + // Passing -1 to SetMessageCountLimit means the queue has + // unlimited size (go until out of memory or ClearStoredMessages()). + // The default message count size is + // D3D10_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT + // Returns S_OK or E_INVALIDARG. + HRESULT SetMessageCountLimit( [annotation("_In_")] UINT64 MessageCountLimit ); + + // ClearStoredMessages + void ClearStoredMessages(); + + //========================================================================= + // Methods for retrieving data or statistics from the queue. + + // GetMessage() + // Retrieves messages, one at a time, from the queue which pass any + // retrieval filter currently defined. If there is no retrieval filter, + // all messages can be retrieved. + // The MessageIndex parameter is a 0 based index into the results passing + // the filter. The number of results is returned by + // GetNumStoredMessagesAllowedByRetrievalFilter(). + // + // Note this does not remove the message from the queue. + // + // pMessageByteLength inputs the size of the buffer passed in via + // pMessage, and outputs the size of the message. pMessage can be NULL + // when the size of the required buffer is being queried (return S_FALSE). + // + // NOTE: The returned buffer pMessage is NOT just the size of D3D10_MESSAGE, + // it includes extra memory after the D3D10_MESSAGE for storing the string + // description, which is pointed to from within D3D10_MESSAGE. Therefore + // applications should check the size needed for pMessage as described above. + // + // Watch out for thread safety when making consecutive calls first to + // determine the buffer size required and then to pass in the buffer and + // retrieve the message, and also between calling + // GetNumStoredMessagesAllowedByRetrievalFilter() and enumerating through + // the results via GetMessagE(). + // + // Returns: S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT GetMessage( + [annotation("_In_")] UINT64 MessageIndex, + [annotation("_Out_writes_bytes_opt_(*pMessageByteLength)")] D3D10_MESSAGE* pMessage, + [annotation("_Inout_")] SIZE_T* pMessageByteLength ); + + // GetNumMessagesAllowedByStorageFilter() + // Returns how many messages sent to the queue passed + // whatever storage filter was active upon receipt of + // the message. + // This can be a larger value than the message count limit, + // returned by GetMessageCountLimit(), since old messages are discarded + // when the queue is full to prevent overflow. + UINT64 GetNumMessagesAllowedByStorageFilter(); + + // GetNumMessagesDeniedByStorageFilter() + UINT64 GetNumMessagesDeniedByStorageFilter(); + + // GetNumStoredMessages() + // Returns how many messages are currently stored in the queue. + UINT64 GetNumStoredMessages(); + + // GetNumStoredMessagesAllowedByRetrievalFilter() + // Returns how many messages that are currently in the queue + // pass any retrieval filter that is currently set. + // The MessageIndex parameter to GetMessage() indexes + // an array of this many results. + UINT64 GetNumStoredMessagesAllowedByRetrievalFilter(); + + // GetNumMessagesDiscardedByMessageCountLimit() + UINT64 GetNumMessagesDiscardedByMessageCountLimit(); + + // GetMessageCountLimit + // This is how many messages can be stored in the queue. + // When the queue is full, new messages coming in push old messages out. + // -1 means there is no limit. + UINT64 GetMessageCountLimit(); + + //========================================================================= + // Methods for filtering what gets stored in the queue + + // AddStorageFilterEntries() + // Adds to the existing entries at top of stack + // Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT AddStorageFilterEntries( + [annotation("_In_")] D3D10_INFO_QUEUE_FILTER* pFilter ); + + // GetStorageFilter() + // Gets all entries at top of stack. + // The application must allocate the output buffer. The size required can be + // queried by passing null for pFilter and looking at the returned + // pFilterByteLength (HRESULT is S_FALSE). Note that D3D10_INFO_QUEUE_FILTER contains + // pointers - these will point to locations within the same + // contiguous buffer - *pFilterByteLength is the total storage needed for all + // data. So the application needs to only allocate/free the memory for pFilter. + // Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY + HRESULT GetStorageFilter( + [annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] D3D10_INFO_QUEUE_FILTER* pFilter, + [annotation("_Inout_")] SIZE_T* pFilterByteLength ); + + // ClearStorageFilter() + // Clears filter at the top of the stack (if there is one) + void ClearStorageFilter(); + + // PushEmptyStorageFilter() + // Push an empty storage filter on the stack to allow local filtering changes. + // For convenience, this is automatically called by SetStorageFilter() + // if the stack is empty. Thus if the stack is not needed, filters can be + // defined without ever bothering to push or pop. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushEmptyStorageFilter(); + + // PushCopyOfStorageFilter() + // Push a copy of the current filter so that local modifications can be made + // starting from what currently exists. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushCopyOfStorageFilter(); + + // PushStorageFilter() + // Push a filter passed as a parameter onto the stack. This is + // just a helper for calling PushEmptyStorageFilter() followed + // by AddStorageFilterEntries() + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT PushStorageFilter( + [annotation("_In_")] D3D10_INFO_QUEUE_FILTER* pFilter ); + + // PopStorageFilter() + // Pop the current storage filter off the stack (if there is one) + void PopStorageFilter(); + + // GetStorageFilterStackSize() + UINT GetStorageFilterStackSize(); + + //========================================================================= + // Methods for filtering what gets read out of the queue by GetMessage(). + + // AddRetrievalFilterEntries() + // Adds to the existing entries at top of stack + // Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT AddRetrievalFilterEntries( + [annotation("_In_")] D3D10_INFO_QUEUE_FILTER* pFilter ); + + // GetRetrievalFilter() + // Gets all entries at top of stack. + // The application must allocate the output buffer. The size required can be + // queried by passing null for pFilter and looking at the returned + // pFilterByteLength (HRESULT is S_FALSE). Note that D3D10_INFO_QUEUE_FILTER contains + // pointers - these will point to locations within the same + // contiguous buffer - *pFilterByteLength is the total storage needed for all + // data. So the application needs to only allocate/free the memory for pFilter. + // Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY + HRESULT GetRetrievalFilter( + [annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] D3D10_INFO_QUEUE_FILTER* pFilter, + [annotation("_Inout_")] SIZE_T* pFilterByteLength ); + + // ClearRetrievalFilter() + // Clears filter at the top of the stack (if there is one) + void ClearRetrievalFilter(); + + // PushEmptyRetrievalFilter() + // Push an empty storage filter on the stack to allow local filtering changes. + // For convenience, this is automatically called by SetRetrievalFilter() + // if the stack is empty. Thus if the stack is not needed, filters can be + // defined without ever bothering to push or pop. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushEmptyRetrievalFilter(); + + // PushCopyOfRetrievalFilter() + // Push a copy of the current filter so that local modifications can be made + // starting from what currently exists. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushCopyOfRetrievalFilter(); + + // PushRetrievalFilter() + // Push a filter passed as a parameter onto the stack. This is + // just a helper for calling PushEmptyRetrievalFilter() followed + // by AddRetrievalFilterEntries() + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT PushRetrievalFilter( + [annotation("_In_")] D3D10_INFO_QUEUE_FILTER* pFilter ); + + // PopRetrievalFilter() + // Pop the current storage filter off the stack (if there is one) + void PopRetrievalFilter(); + + // GetRetrievalFilterStackSize() + UINT GetRetrievalFilterStackSize(); + + //========================================================================= + // Methods for adding entries to the queue. + + // AddMessage() + // This is used by D3D10 components to log messages. Nothing stops + // applications from calling this, but it isn’t particularly useful. + // If an application wishes to insert custom strings into the queue, + // AddApplicationMessage() below is suggested. See below. + // + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY + HRESULT AddMessage( + [annotation("_In_")] D3D10_MESSAGE_CATEGORY Category, + [annotation("_In_")] D3D10_MESSAGE_SEVERITY Severity, + [annotation("_In_")] D3D10_MESSAGE_ID ID, + [annotation("_In_")] LPCSTR pDescription); + + // AddApplicationMessage() + // This is a convenience for applications that want + // to insert strings of their own into the queue, perhaps to log issues + // of its own, or to mark out points in time in the queue. This + // has the same effect as calling AddMessage() above with the + // following settings: + // Category = D3D10_MESSAGE_CATEGORY_APPLICATION_DEFINED + // Severity = + // ID = D3D10_MESSAGE_ID_STRING_FROM_APPLICATION + // pDescription = + // + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY + HRESULT AddApplicationMessage( + [annotation("_In_")] D3D10_MESSAGE_SEVERITY Severity, + [annotation("_In_")] LPCSTR pDescription); + + //========================================================================= + // Methods for breaking on errors that pass the storage filter. + HRESULT SetBreakOnCategory( + [annotation("_In_")] D3D10_MESSAGE_CATEGORY Category, + [annotation("_In_")] BOOL bEnable ); + HRESULT SetBreakOnSeverity( + [annotation("_In_")] D3D10_MESSAGE_SEVERITY Severity, + [annotation("_In_")] BOOL bEnable ); + HRESULT SetBreakOnID( + [annotation("_In_")] D3D10_MESSAGE_ID ID, + [annotation("_In_")] BOOL bEnable ); + + BOOL GetBreakOnCategory( + [annotation("_In_")] D3D10_MESSAGE_CATEGORY Category ); + BOOL GetBreakOnSeverity( + [annotation("_In_")] D3D10_MESSAGE_SEVERITY Severity ); + BOOL GetBreakOnID( + [annotation("_In_")] D3D10_MESSAGE_ID ID ); + + //========================================================================= + // Methods for globally muting debug spte from the InfoQueue + void SetMuteDebugOutput( + [annotation("_In_")] BOOL bMute ); + BOOL GetMuteDebugOutput(); + + +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote( "DEFINE_GUID(IID_ID3D10Debug,0x9B7E4E01,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10SwitchToRef,0x9B7E4E02,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D10InfoQueue,0x1b940b17,0x2642,0x4d1f,0xab,0x1f,0xb9,0x9b,0xad,0x0c,0x39,0x5f);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10shader.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10shader.h new file mode 100644 index 0000000000000000000000000000000000000000..eb8dfaeb32e62220e4b4fc98ba9495ce3175516f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d10shader.h @@ -0,0 +1,560 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: D3D10Shader.h +// Content: D3D10 Shader Types and APIs +// +////////////////////////////////////////////////////////////////////////////// + +#ifndef __D3D10SHADER_H__ +#define __D3D10SHADER_H__ + + +#include "d3d10.h" + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +//--------------------------------------------------------------------------- +// D3D10_TX_VERSION: +// -------------- +// Version token used to create a procedural texture filler in effects +// Used by D3D10Fill[]TX functions +//--------------------------------------------------------------------------- +#define D3D10_TX_VERSION(_Major,_Minor) (('T' << 24) | ('X' << 16) | ((_Major) << 8) | (_Minor)) + + +//---------------------------------------------------------------------------- +// D3D10SHADER flags: +// ----------------- +// D3D10_SHADER_DEBUG +// Insert debug file/line/type/symbol information. +// +// D3D10_SHADER_SKIP_VALIDATION +// Do not validate the generated code against known capabilities and +// constraints. This option is only recommended when compiling shaders +// you KNOW will work. (ie. have compiled before without this option.) +// Shaders are always validated by D3D before they are set to the device. +// +// D3D10_SHADER_SKIP_OPTIMIZATION +// Instructs the compiler to skip optimization steps during code generation. +// Unless you are trying to isolate a problem in your code using this option +// is not recommended. +// +// D3D10_SHADER_PACK_MATRIX_ROW_MAJOR +// Unless explicitly specified, matrices will be packed in row-major order +// on input and output from the shader. +// +// D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR +// Unless explicitly specified, matrices will be packed in column-major +// order on input and output from the shader. This is generally more +// efficient, since it allows vector-matrix multiplication to be performed +// using a series of dot-products. +// +// D3D10_SHADER_PARTIAL_PRECISION +// Force all computations in resulting shader to occur at partial precision. +// This may result in faster evaluation of shaders on some hardware. +// +// D3D10_SHADER_FORCE_VS_SOFTWARE_NO_OPT +// Force compiler to compile against the next highest available software +// target for vertex shaders. This flag also turns optimizations off, +// and debugging on. +// +// D3D10_SHADER_FORCE_PS_SOFTWARE_NO_OPT +// Force compiler to compile against the next highest available software +// target for pixel shaders. This flag also turns optimizations off, +// and debugging on. +// +// D3D10_SHADER_NO_PRESHADER +// Disables Preshaders. Using this flag will cause the compiler to not +// pull out static expression for evaluation on the host cpu +// +// D3D10_SHADER_AVOID_FLOW_CONTROL +// Hint compiler to avoid flow-control constructs where possible. +// +// D3D10_SHADER_PREFER_FLOW_CONTROL +// Hint compiler to prefer flow-control constructs where possible. +// +// D3D10_SHADER_ENABLE_STRICTNESS +// By default, the HLSL/Effect compilers are not strict on deprecated syntax. +// Specifying this flag enables the strict mode. Deprecated syntax may be +// removed in a future release, and enabling syntax is a good way to make sure +// your shaders comply to the latest spec. +// +// D3D10_SHADER_ENABLE_BACKWARDS_COMPATIBILITY +// This enables older shaders to compile to 4_0 targets. +// +//---------------------------------------------------------------------------- + +#define D3D10_SHADER_DEBUG (1 << 0) +#define D3D10_SHADER_SKIP_VALIDATION (1 << 1) +#define D3D10_SHADER_SKIP_OPTIMIZATION (1 << 2) +#define D3D10_SHADER_PACK_MATRIX_ROW_MAJOR (1 << 3) +#define D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR (1 << 4) +#define D3D10_SHADER_PARTIAL_PRECISION (1 << 5) +#define D3D10_SHADER_FORCE_VS_SOFTWARE_NO_OPT (1 << 6) +#define D3D10_SHADER_FORCE_PS_SOFTWARE_NO_OPT (1 << 7) +#define D3D10_SHADER_NO_PRESHADER (1 << 8) +#define D3D10_SHADER_AVOID_FLOW_CONTROL (1 << 9) +#define D3D10_SHADER_PREFER_FLOW_CONTROL (1 << 10) +#define D3D10_SHADER_ENABLE_STRICTNESS (1 << 11) +#define D3D10_SHADER_ENABLE_BACKWARDS_COMPATIBILITY (1 << 12) +#define D3D10_SHADER_IEEE_STRICTNESS (1 << 13) +#define D3D10_SHADER_WARNINGS_ARE_ERRORS (1 << 18) +#define D3D10_SHADER_RESOURCES_MAY_ALIAS (1 << 19) +#define D3D10_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES (1 << 20) +#define D3D10_ALL_RESOURCES_BOUND (1 << 21) +#define D3D10_SHADER_DEBUG_NAME_FOR_SOURCE (1 << 22) +#define D3D10_SHADER_DEBUG_NAME_FOR_BINARY (1 << 23) + + +// optimization level flags +#define D3D10_SHADER_OPTIMIZATION_LEVEL0 (1 << 14) +#define D3D10_SHADER_OPTIMIZATION_LEVEL1 0 +#define D3D10_SHADER_OPTIMIZATION_LEVEL2 ((1 << 14) | (1 << 15)) +#define D3D10_SHADER_OPTIMIZATION_LEVEL3 (1 << 15) + + +// Force root signature flags. (Passed in Flags2) +#define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST 0 +#define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_0 (1 << 4) +#define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_1 (1 << 5) + + + + +typedef D3D_SHADER_MACRO D3D10_SHADER_MACRO; +typedef D3D10_SHADER_MACRO* LPD3D10_SHADER_MACRO; + + +typedef D3D_SHADER_VARIABLE_CLASS D3D10_SHADER_VARIABLE_CLASS; +typedef D3D10_SHADER_VARIABLE_CLASS* LPD3D10_SHADER_VARIABLE_CLASS; + +typedef D3D_SHADER_VARIABLE_FLAGS D3D10_SHADER_VARIABLE_FLAGS; +typedef D3D10_SHADER_VARIABLE_FLAGS* LPD3D10_SHADER_VARIABLE_FLAGS; + +typedef D3D_SHADER_VARIABLE_TYPE D3D10_SHADER_VARIABLE_TYPE; +typedef D3D10_SHADER_VARIABLE_TYPE* LPD3D10_SHADER_VARIABLE_TYPE; + +typedef D3D_SHADER_INPUT_FLAGS D3D10_SHADER_INPUT_FLAGS; +typedef D3D10_SHADER_INPUT_FLAGS* LPD3D10_SHADER_INPUT_FLAGS; + +typedef D3D_SHADER_INPUT_TYPE D3D10_SHADER_INPUT_TYPE; +typedef D3D10_SHADER_INPUT_TYPE* LPD3D10_SHADER_INPUT_TYPE; + +typedef D3D_SHADER_CBUFFER_FLAGS D3D10_SHADER_CBUFFER_FLAGS; +typedef D3D10_SHADER_CBUFFER_FLAGS* LPD3D10_SHADER_CBUFFER_FLAGS; + +typedef D3D_CBUFFER_TYPE D3D10_CBUFFER_TYPE; +typedef D3D10_CBUFFER_TYPE* LPD3D10_CBUFFER_TYPE; + +typedef D3D_NAME D3D10_NAME; + +typedef D3D_RESOURCE_RETURN_TYPE D3D10_RESOURCE_RETURN_TYPE; + +typedef D3D_REGISTER_COMPONENT_TYPE D3D10_REGISTER_COMPONENT_TYPE; + +typedef D3D_INCLUDE_TYPE D3D10_INCLUDE_TYPE; + +// ID3D10Include has been made version-neutral and moved to d3dcommon.h. +typedef interface ID3DInclude ID3D10Include; +typedef interface ID3DInclude* LPD3D10INCLUDE; +#define IID_ID3D10Include IID_ID3DInclude + + +//---------------------------------------------------------------------------- +// ID3D10ShaderReflection: +//---------------------------------------------------------------------------- + +// +// Structure definitions +// + +typedef struct _D3D10_SHADER_DESC +{ + UINT Version; // Shader version + LPCSTR Creator; // Creator string + UINT Flags; // Shader compilation/parse flags + + UINT ConstantBuffers; // Number of constant buffers + UINT BoundResources; // Number of bound resources + UINT InputParameters; // Number of parameters in the input signature + UINT OutputParameters; // Number of parameters in the output signature + + UINT InstructionCount; // Number of emitted instructions + UINT TempRegisterCount; // Number of temporary registers used + UINT TempArrayCount; // Number of temporary arrays used + UINT DefCount; // Number of constant defines + UINT DclCount; // Number of declarations (input + output) + UINT TextureNormalInstructions; // Number of non-categorized texture instructions + UINT TextureLoadInstructions; // Number of texture load instructions + UINT TextureCompInstructions; // Number of texture comparison instructions + UINT TextureBiasInstructions; // Number of texture bias instructions + UINT TextureGradientInstructions; // Number of texture gradient instructions + UINT FloatInstructionCount; // Number of floating point arithmetic instructions used + UINT IntInstructionCount; // Number of signed integer arithmetic instructions used + UINT UintInstructionCount; // Number of unsigned integer arithmetic instructions used + UINT StaticFlowControlCount; // Number of static flow control instructions used + UINT DynamicFlowControlCount; // Number of dynamic flow control instructions used + UINT MacroInstructionCount; // Number of macro instructions used + UINT ArrayInstructionCount; // Number of array instructions used + UINT CutInstructionCount; // Number of cut instructions used + UINT EmitInstructionCount; // Number of emit instructions used + D3D10_PRIMITIVE_TOPOLOGY GSOutputTopology; // Geometry shader output topology + UINT GSMaxOutputVertexCount; // Geometry shader maximum output vertex count +} D3D10_SHADER_DESC; + +typedef struct _D3D10_SHADER_BUFFER_DESC +{ + LPCSTR Name; // Name of the constant buffer + D3D10_CBUFFER_TYPE Type; // Indicates that this is a CBuffer or TBuffer + UINT Variables; // Number of member variables + UINT Size; // Size of CB (in bytes) + UINT uFlags; // Buffer description flags +} D3D10_SHADER_BUFFER_DESC; + +typedef struct _D3D10_SHADER_VARIABLE_DESC +{ + LPCSTR Name; // Name of the variable + UINT StartOffset; // Offset in constant buffer's backing store + UINT Size; // Size of variable (in bytes) + UINT uFlags; // Variable flags + LPVOID DefaultValue; // Raw pointer to default value +} D3D10_SHADER_VARIABLE_DESC; + +typedef struct _D3D10_SHADER_TYPE_DESC +{ + D3D10_SHADER_VARIABLE_CLASS Class; // Variable class (e.g. object, matrix, etc.) + D3D10_SHADER_VARIABLE_TYPE Type; // Variable type (e.g. float, sampler, etc.) + UINT Rows; // Number of rows (for matrices, 1 for other numeric, 0 if not applicable) + UINT Columns; // Number of columns (for vectors & matrices, 1 for other numeric, 0 if not applicable) + UINT Elements; // Number of elements (0 if not an array) + UINT Members; // Number of members (0 if not a structure) + UINT Offset; // Offset from the start of structure (0 if not a structure member) +} D3D10_SHADER_TYPE_DESC; + +typedef struct _D3D10_SHADER_INPUT_BIND_DESC +{ + LPCSTR Name; // Name of the resource + D3D10_SHADER_INPUT_TYPE Type; // Type of resource (e.g. texture, cbuffer, etc.) + UINT BindPoint; // Starting bind point + UINT BindCount; // Number of contiguous bind points (for arrays) + + UINT uFlags; // Input binding flags + D3D10_RESOURCE_RETURN_TYPE ReturnType; // Return type (if texture) + D3D10_SRV_DIMENSION Dimension; // Dimension (if texture) + UINT NumSamples; // Number of samples (0 if not MS texture) +} D3D10_SHADER_INPUT_BIND_DESC; + +typedef struct _D3D10_SIGNATURE_PARAMETER_DESC +{ + LPCSTR SemanticName; // Name of the semantic + UINT SemanticIndex; // Index of the semantic + UINT Register; // Number of member variables + D3D10_NAME SystemValueType;// A predefined system value, or D3D10_NAME_UNDEFINED if not applicable + D3D10_REGISTER_COMPONENT_TYPE ComponentType;// Scalar type (e.g. uint, float, etc.) + BYTE Mask; // Mask to indicate which components of the register + // are used (combination of D3D10_COMPONENT_MASK values) + BYTE ReadWriteMask; // Mask to indicate whether a given component is + // never written (if this is an output signature) or + // always read (if this is an input signature). + // (combination of D3D10_COMPONENT_MASK values) + +} D3D10_SIGNATURE_PARAMETER_DESC; + + +// +// Interface definitions +// + + + + +typedef interface ID3D10ShaderReflectionType ID3D10ShaderReflectionType; +typedef interface ID3D10ShaderReflectionType *LPD3D10SHADERREFLECTIONTYPE; + +// {C530AD7D-9B16-4395-A979-BA2ECFF83ADD} +interface DECLSPEC_UUID("C530AD7D-9B16-4395-A979-BA2ECFF83ADD") ID3D10ShaderReflectionType; +DEFINE_GUID(IID_ID3D10ShaderReflectionType, +0xc530ad7d, 0x9b16, 0x4395, 0xa9, 0x79, 0xba, 0x2e, 0xcf, 0xf8, 0x3a, 0xdd); + +#undef INTERFACE +#define INTERFACE ID3D10ShaderReflectionType + +DECLARE_INTERFACE(ID3D10ShaderReflectionType) +{ + STDMETHOD(GetDesc)(THIS_ D3D10_SHADER_TYPE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10ShaderReflectionType*, GetMemberTypeByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10ShaderReflectionType*, GetMemberTypeByName)(THIS_ LPCSTR Name) PURE; + STDMETHOD_(LPCSTR, GetMemberTypeName)(THIS_ UINT Index) PURE; +}; + +typedef interface ID3D10ShaderReflectionVariable ID3D10ShaderReflectionVariable; +typedef interface ID3D10ShaderReflectionVariable *LPD3D10SHADERREFLECTIONVARIABLE; + +// {1BF63C95-2650-405d-99C1-3636BD1DA0A1} +interface DECLSPEC_UUID("1BF63C95-2650-405d-99C1-3636BD1DA0A1") ID3D10ShaderReflectionVariable; +DEFINE_GUID(IID_ID3D10ShaderReflectionVariable, +0x1bf63c95, 0x2650, 0x405d, 0x99, 0xc1, 0x36, 0x36, 0xbd, 0x1d, 0xa0, 0xa1); + +#undef INTERFACE +#define INTERFACE ID3D10ShaderReflectionVariable + +DECLARE_INTERFACE(ID3D10ShaderReflectionVariable) +{ + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_SHADER_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10ShaderReflectionType*, GetType)(THIS) PURE; +}; + +typedef interface ID3D10ShaderReflectionConstantBuffer ID3D10ShaderReflectionConstantBuffer; +typedef interface ID3D10ShaderReflectionConstantBuffer *LPD3D10SHADERREFLECTIONCONSTANTBUFFER; + +// {66C66A94-DDDD-4b62-A66A-F0DA33C2B4D0} +interface DECLSPEC_UUID("66C66A94-DDDD-4b62-A66A-F0DA33C2B4D0") ID3D10ShaderReflectionConstantBuffer; +DEFINE_GUID(IID_ID3D10ShaderReflectionConstantBuffer, +0x66c66a94, 0xdddd, 0x4b62, 0xa6, 0x6a, 0xf0, 0xda, 0x33, 0xc2, 0xb4, 0xd0); + +#undef INTERFACE +#define INTERFACE ID3D10ShaderReflectionConstantBuffer + +DECLARE_INTERFACE(ID3D10ShaderReflectionConstantBuffer) +{ + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_SHADER_BUFFER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10ShaderReflectionVariable*, GetVariableByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10ShaderReflectionVariable*, GetVariableByName)(THIS_ LPCSTR Name) PURE; +}; + +typedef interface ID3D10ShaderReflection ID3D10ShaderReflection; +typedef interface ID3D10ShaderReflection *LPD3D10SHADERREFLECTION; + +// {D40E20B6-F8F7-42ad-AB20-4BAF8F15DFAA} +interface DECLSPEC_UUID("D40E20B6-F8F7-42ad-AB20-4BAF8F15DFAA") ID3D10ShaderReflection; +DEFINE_GUID(IID_ID3D10ShaderReflection, +0xd40e20b6, 0xf8f7, 0x42ad, 0xab, 0x20, 0x4b, 0xaf, 0x8f, 0x15, 0xdf, 0xaa); + +#undef INTERFACE +#define INTERFACE ID3D10ShaderReflection + +DECLARE_INTERFACE_(ID3D10ShaderReflection, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + STDMETHOD(GetDesc)(THIS_ _Out_ D3D10_SHADER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D10ShaderReflectionConstantBuffer*, GetConstantBufferByIndex)(THIS_ UINT Index) PURE; + STDMETHOD_(ID3D10ShaderReflectionConstantBuffer*, GetConstantBufferByName)(THIS_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDesc)(THIS_ UINT ResourceIndex, _Out_ D3D10_SHADER_INPUT_BIND_DESC *pDesc) PURE; + + STDMETHOD(GetInputParameterDesc)(THIS_ UINT ParameterIndex, _Out_ D3D10_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + STDMETHOD(GetOutputParameterDesc)(THIS_ UINT ParameterIndex, _Out_ D3D10_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + +}; + +////////////////////////////////////////////////////////////////////////////// +// APIs ////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + +//---------------------------------------------------------------------------- +// D3D10CompileShader: +// ------------------ +// Compiles a shader. +// +// Parameters: +// pSrcFile +// Source file name. +// hSrcModule +// Module handle. if NULL, current module will be used. +// pSrcResource +// Resource name in module. +// pSrcData +// Pointer to source code. +// SrcDataSize +// Size of source code, in bytes. +// pDefines +// Optional NULL-terminated array of preprocessor macro definitions. +// pInclude +// Optional interface pointer to use for handling #include directives. +// If this parameter is NULL, #includes will be honored when compiling +// from file, and will error when compiling from resource or memory. +// pFunctionName +// Name of the entrypoint function where execution should begin. +// pProfile +// Instruction set to be used when generating code. The D3D10 entry +// point currently supports only "vs_4_0", "ps_4_0", and "gs_4_0". +// Flags +// See D3D10_SHADER_xxx flags. +// ppShader +// Returns a buffer containing the created shader. This buffer contains +// the compiled shader code, as well as any embedded debug and symbol +// table info. (See D3D10GetShaderConstantTable) +// ppErrorMsgs +// Returns a buffer containing a listing of errors and warnings that were +// encountered during the compile. If you are running in a debugger, +// these are the same messages you will see in your debug output. +//---------------------------------------------------------------------------- + +HRESULT WINAPI D3D10CompileShader(_In_reads_bytes_(SrcDataSize) LPCSTR pSrcData, SIZE_T SrcDataSize, _In_opt_ LPCSTR pFileName, _In_opt_ CONST D3D10_SHADER_MACRO* pDefines, _In_opt_ LPD3D10INCLUDE pInclude, + LPCSTR pFunctionName, LPCSTR pProfile, UINT Flags, _Out_ ID3D10Blob** ppShader, _Out_opt_ ID3D10Blob** ppErrorMsgs); + +//---------------------------------------------------------------------------- +// D3D10DisassembleShader: +// ---------------------- +// Takes a binary shader, and returns a buffer containing text assembly. +// +// Parameters: +// pShader +// Pointer to the shader byte code. +// BytecodeLength +// Size of the shader byte code in bytes. +// EnableColorCode +// Emit HTML tags for color coding the output? +// pComments +// Pointer to a comment string to include at the top of the shader. +// ppDisassembly +// Returns a buffer containing the disassembled shader. +//---------------------------------------------------------------------------- + +HRESULT WINAPI D3D10DisassembleShader(_In_reads_bytes_(BytecodeLength) CONST void *pShader, SIZE_T BytecodeLength, BOOL EnableColorCode, _In_opt_ LPCSTR pComments, _Out_ ID3D10Blob** ppDisassembly); + + +//---------------------------------------------------------------------------- +// D3D10GetPixelShaderProfile/D3D10GetVertexShaderProfile/D3D10GetGeometryShaderProfile: +// ----------------------------------------------------- +// Returns the name of the HLSL profile best suited to a given device. +// +// Parameters: +// pDevice +// Pointer to the device in question +//---------------------------------------------------------------------------- + +LPCSTR WINAPI D3D10GetPixelShaderProfile(_In_ ID3D10Device *pDevice); + +LPCSTR WINAPI D3D10GetVertexShaderProfile(_In_ ID3D10Device *pDevice); + +LPCSTR WINAPI D3D10GetGeometryShaderProfile(_In_ ID3D10Device *pDevice); + +//---------------------------------------------------------------------------- +// D3D10ReflectShader: +// ------------------ +// Creates a shader reflection object that can be used to retrieve information +// about a compiled shader +// +// Parameters: +// pShaderBytecode +// Pointer to a compiled shader (same pointer that is passed into +// ID3D10Device::CreateShader) +// BytecodeLength +// Length of the shader bytecode buffer +// ppReflector +// [out] Returns a ID3D10ShaderReflection object that can be used to +// retrieve shader resource and constant buffer information +// +//---------------------------------------------------------------------------- + +HRESULT WINAPI D3D10ReflectShader(_In_reads_bytes_(BytecodeLength) CONST void *pShaderBytecode, SIZE_T BytecodeLength, _Out_ ID3D10ShaderReflection **ppReflector); + +//---------------------------------------------------------------------------- +// D3D10PreprocessShader +// --------------------- +// Creates a shader reflection object that can be used to retrieve information +// about a compiled shader +// +// Parameters: +// pSrcData +// Pointer to source code +// SrcDataSize +// Size of source code, in bytes +// pFileName +// Source file name (used for error output) +// pDefines +// Optional NULL-terminated array of preprocessor macro definitions. +// pInclude +// Optional interface pointer to use for handling #include directives. +// If this parameter is NULL, #includes will be honored when assembling +// from file, and will error when assembling from resource or memory. +// ppShaderText +// Returns a buffer containing a single large string that represents +// the resulting formatted token stream +// ppErrorMsgs +// Returns a buffer containing a listing of errors and warnings that were +// encountered during assembly. If you are running in a debugger, +// these are the same messages you will see in your debug output. +//---------------------------------------------------------------------------- + +HRESULT WINAPI D3D10PreprocessShader(_In_reads_bytes_(SrcDataSize) LPCSTR pSrcData, SIZE_T SrcDataSize, _In_opt_ LPCSTR pFileName, _In_opt_ CONST D3D10_SHADER_MACRO* pDefines, + _In_opt_ LPD3D10INCLUDE pInclude, _Out_ ID3D10Blob** ppShaderText, _Out_opt_ ID3D10Blob** ppErrorMsgs); + +////////////////////////////////////////////////////////////////////////// +// +// Shader blob manipulation routines +// --------------------------------- +// +// void *pShaderBytecode - a buffer containing the result of an HLSL +// compilation. Typically this opaque buffer contains several +// discrete sections including the shader executable code, the input +// signature, and the output signature. This can typically be retrieved +// by calling ID3D10Blob::GetBufferPointer() on the returned blob +// from HLSL's compile APIs. +// +// UINT BytecodeLength - the length of pShaderBytecode. This can +// typically be retrieved by calling ID3D10Blob::GetBufferSize() +// on the returned blob from HLSL's compile APIs. +// +// ID3D10Blob **ppSignatureBlob(s) - a newly created buffer that +// contains only the signature portions of the original bytecode. +// This is a copy; the original bytecode is not modified. You may +// specify NULL for this parameter to have the bytecode validated +// for the presence of the corresponding signatures without actually +// copying them and creating a new blob. +// +// Returns E_INVALIDARG if any required parameters are NULL +// Returns E_FAIL is the bytecode is corrupt or missing signatures +// Returns S_OK on success +// +////////////////////////////////////////////////////////////////////////// + +HRESULT WINAPI D3D10GetInputSignatureBlob(_In_reads_bytes_(BytecodeLength) CONST void *pShaderBytecode, SIZE_T BytecodeLength, _Out_ ID3D10Blob **ppSignatureBlob); +HRESULT WINAPI D3D10GetOutputSignatureBlob(_In_reads_bytes_(BytecodeLength) CONST void *pShaderBytecode, SIZE_T BytecodeLength, _Out_ ID3D10Blob **ppSignatureBlob); +HRESULT WINAPI D3D10GetInputAndOutputSignatureBlob(_In_reads_bytes_(BytecodeLength) CONST void *pShaderBytecode, SIZE_T BytecodeLength, _Out_ ID3D10Blob **ppSignatureBlob); + +//---------------------------------------------------------------------------- +// D3D10GetShaderDebugInfo: +// ----------------------- +// Gets shader debug info. Debug info is generated by D3D10CompileShader and is +// embedded in the body of the shader. +// +// Parameters: +// pShaderBytecode +// Pointer to the function bytecode +// BytecodeLength +// Length of the shader bytecode buffer +// ppDebugInfo +// Buffer used to return debug info. For information about the layout +// of this buffer, see definition of D3D10_SHADER_DEBUG_INFO above. +//---------------------------------------------------------------------------- + +HRESULT WINAPI D3D10GetShaderDebugInfo(_In_reads_bytes_(BytecodeLength) CONST void *pShaderBytecode, SIZE_T BytecodeLength, _Out_ ID3D10Blob** ppDebugInfo); + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //__D3D10SHADER_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11.h new file mode 100644 index 0000000000000000000000000000000000000000..54e9aa181dc945f88a1469df9b7951ec3256098b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11.h @@ -0,0 +1,15220 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d11_h__ +#define __d3d11_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D11DeviceChild_FWD_DEFINED__ +#define __ID3D11DeviceChild_FWD_DEFINED__ +typedef interface ID3D11DeviceChild ID3D11DeviceChild; + +#endif /* __ID3D11DeviceChild_FWD_DEFINED__ */ + + +#ifndef __ID3D11DepthStencilState_FWD_DEFINED__ +#define __ID3D11DepthStencilState_FWD_DEFINED__ +typedef interface ID3D11DepthStencilState ID3D11DepthStencilState; + +#endif /* __ID3D11DepthStencilState_FWD_DEFINED__ */ + + +#ifndef __ID3D11BlendState_FWD_DEFINED__ +#define __ID3D11BlendState_FWD_DEFINED__ +typedef interface ID3D11BlendState ID3D11BlendState; + +#endif /* __ID3D11BlendState_FWD_DEFINED__ */ + + +#ifndef __ID3D11RasterizerState_FWD_DEFINED__ +#define __ID3D11RasterizerState_FWD_DEFINED__ +typedef interface ID3D11RasterizerState ID3D11RasterizerState; + +#endif /* __ID3D11RasterizerState_FWD_DEFINED__ */ + + +#ifndef __ID3D11Resource_FWD_DEFINED__ +#define __ID3D11Resource_FWD_DEFINED__ +typedef interface ID3D11Resource ID3D11Resource; + +#endif /* __ID3D11Resource_FWD_DEFINED__ */ + + +#ifndef __ID3D11Buffer_FWD_DEFINED__ +#define __ID3D11Buffer_FWD_DEFINED__ +typedef interface ID3D11Buffer ID3D11Buffer; + +#endif /* __ID3D11Buffer_FWD_DEFINED__ */ + + +#ifndef __ID3D11Texture1D_FWD_DEFINED__ +#define __ID3D11Texture1D_FWD_DEFINED__ +typedef interface ID3D11Texture1D ID3D11Texture1D; + +#endif /* __ID3D11Texture1D_FWD_DEFINED__ */ + + +#ifndef __ID3D11Texture2D_FWD_DEFINED__ +#define __ID3D11Texture2D_FWD_DEFINED__ +typedef interface ID3D11Texture2D ID3D11Texture2D; + +#endif /* __ID3D11Texture2D_FWD_DEFINED__ */ + + +#ifndef __ID3D11Texture3D_FWD_DEFINED__ +#define __ID3D11Texture3D_FWD_DEFINED__ +typedef interface ID3D11Texture3D ID3D11Texture3D; + +#endif /* __ID3D11Texture3D_FWD_DEFINED__ */ + + +#ifndef __ID3D11View_FWD_DEFINED__ +#define __ID3D11View_FWD_DEFINED__ +typedef interface ID3D11View ID3D11View; + +#endif /* __ID3D11View_FWD_DEFINED__ */ + + +#ifndef __ID3D11ShaderResourceView_FWD_DEFINED__ +#define __ID3D11ShaderResourceView_FWD_DEFINED__ +typedef interface ID3D11ShaderResourceView ID3D11ShaderResourceView; + +#endif /* __ID3D11ShaderResourceView_FWD_DEFINED__ */ + + +#ifndef __ID3D11RenderTargetView_FWD_DEFINED__ +#define __ID3D11RenderTargetView_FWD_DEFINED__ +typedef interface ID3D11RenderTargetView ID3D11RenderTargetView; + +#endif /* __ID3D11RenderTargetView_FWD_DEFINED__ */ + + +#ifndef __ID3D11DepthStencilView_FWD_DEFINED__ +#define __ID3D11DepthStencilView_FWD_DEFINED__ +typedef interface ID3D11DepthStencilView ID3D11DepthStencilView; + +#endif /* __ID3D11DepthStencilView_FWD_DEFINED__ */ + + +#ifndef __ID3D11UnorderedAccessView_FWD_DEFINED__ +#define __ID3D11UnorderedAccessView_FWD_DEFINED__ +typedef interface ID3D11UnorderedAccessView ID3D11UnorderedAccessView; + +#endif /* __ID3D11UnorderedAccessView_FWD_DEFINED__ */ + + +#ifndef __ID3D11VertexShader_FWD_DEFINED__ +#define __ID3D11VertexShader_FWD_DEFINED__ +typedef interface ID3D11VertexShader ID3D11VertexShader; + +#endif /* __ID3D11VertexShader_FWD_DEFINED__ */ + + +#ifndef __ID3D11HullShader_FWD_DEFINED__ +#define __ID3D11HullShader_FWD_DEFINED__ +typedef interface ID3D11HullShader ID3D11HullShader; + +#endif /* __ID3D11HullShader_FWD_DEFINED__ */ + + +#ifndef __ID3D11DomainShader_FWD_DEFINED__ +#define __ID3D11DomainShader_FWD_DEFINED__ +typedef interface ID3D11DomainShader ID3D11DomainShader; + +#endif /* __ID3D11DomainShader_FWD_DEFINED__ */ + + +#ifndef __ID3D11GeometryShader_FWD_DEFINED__ +#define __ID3D11GeometryShader_FWD_DEFINED__ +typedef interface ID3D11GeometryShader ID3D11GeometryShader; + +#endif /* __ID3D11GeometryShader_FWD_DEFINED__ */ + + +#ifndef __ID3D11PixelShader_FWD_DEFINED__ +#define __ID3D11PixelShader_FWD_DEFINED__ +typedef interface ID3D11PixelShader ID3D11PixelShader; + +#endif /* __ID3D11PixelShader_FWD_DEFINED__ */ + + +#ifndef __ID3D11ComputeShader_FWD_DEFINED__ +#define __ID3D11ComputeShader_FWD_DEFINED__ +typedef interface ID3D11ComputeShader ID3D11ComputeShader; + +#endif /* __ID3D11ComputeShader_FWD_DEFINED__ */ + + +#ifndef __ID3D11InputLayout_FWD_DEFINED__ +#define __ID3D11InputLayout_FWD_DEFINED__ +typedef interface ID3D11InputLayout ID3D11InputLayout; + +#endif /* __ID3D11InputLayout_FWD_DEFINED__ */ + + +#ifndef __ID3D11SamplerState_FWD_DEFINED__ +#define __ID3D11SamplerState_FWD_DEFINED__ +typedef interface ID3D11SamplerState ID3D11SamplerState; + +#endif /* __ID3D11SamplerState_FWD_DEFINED__ */ + + +#ifndef __ID3D11Asynchronous_FWD_DEFINED__ +#define __ID3D11Asynchronous_FWD_DEFINED__ +typedef interface ID3D11Asynchronous ID3D11Asynchronous; + +#endif /* __ID3D11Asynchronous_FWD_DEFINED__ */ + + +#ifndef __ID3D11Query_FWD_DEFINED__ +#define __ID3D11Query_FWD_DEFINED__ +typedef interface ID3D11Query ID3D11Query; + +#endif /* __ID3D11Query_FWD_DEFINED__ */ + + +#ifndef __ID3D11Predicate_FWD_DEFINED__ +#define __ID3D11Predicate_FWD_DEFINED__ +typedef interface ID3D11Predicate ID3D11Predicate; + +#endif /* __ID3D11Predicate_FWD_DEFINED__ */ + + +#ifndef __ID3D11Counter_FWD_DEFINED__ +#define __ID3D11Counter_FWD_DEFINED__ +typedef interface ID3D11Counter ID3D11Counter; + +#endif /* __ID3D11Counter_FWD_DEFINED__ */ + + +#ifndef __ID3D11ClassInstance_FWD_DEFINED__ +#define __ID3D11ClassInstance_FWD_DEFINED__ +typedef interface ID3D11ClassInstance ID3D11ClassInstance; + +#endif /* __ID3D11ClassInstance_FWD_DEFINED__ */ + + +#ifndef __ID3D11ClassLinkage_FWD_DEFINED__ +#define __ID3D11ClassLinkage_FWD_DEFINED__ +typedef interface ID3D11ClassLinkage ID3D11ClassLinkage; + +#endif /* __ID3D11ClassLinkage_FWD_DEFINED__ */ + + +#ifndef __ID3D11CommandList_FWD_DEFINED__ +#define __ID3D11CommandList_FWD_DEFINED__ +typedef interface ID3D11CommandList ID3D11CommandList; + +#endif /* __ID3D11CommandList_FWD_DEFINED__ */ + + +#ifndef __ID3D11DeviceContext_FWD_DEFINED__ +#define __ID3D11DeviceContext_FWD_DEFINED__ +typedef interface ID3D11DeviceContext ID3D11DeviceContext; + +#endif /* __ID3D11DeviceContext_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoDecoder_FWD_DEFINED__ +#define __ID3D11VideoDecoder_FWD_DEFINED__ +typedef interface ID3D11VideoDecoder ID3D11VideoDecoder; + +#endif /* __ID3D11VideoDecoder_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoProcessorEnumerator_FWD_DEFINED__ +#define __ID3D11VideoProcessorEnumerator_FWD_DEFINED__ +typedef interface ID3D11VideoProcessorEnumerator ID3D11VideoProcessorEnumerator; + +#endif /* __ID3D11VideoProcessorEnumerator_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoProcessor_FWD_DEFINED__ +#define __ID3D11VideoProcessor_FWD_DEFINED__ +typedef interface ID3D11VideoProcessor ID3D11VideoProcessor; + +#endif /* __ID3D11VideoProcessor_FWD_DEFINED__ */ + + +#ifndef __ID3D11AuthenticatedChannel_FWD_DEFINED__ +#define __ID3D11AuthenticatedChannel_FWD_DEFINED__ +typedef interface ID3D11AuthenticatedChannel ID3D11AuthenticatedChannel; + +#endif /* __ID3D11AuthenticatedChannel_FWD_DEFINED__ */ + + +#ifndef __ID3D11CryptoSession_FWD_DEFINED__ +#define __ID3D11CryptoSession_FWD_DEFINED__ +typedef interface ID3D11CryptoSession ID3D11CryptoSession; + +#endif /* __ID3D11CryptoSession_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoDecoderOutputView_FWD_DEFINED__ +#define __ID3D11VideoDecoderOutputView_FWD_DEFINED__ +typedef interface ID3D11VideoDecoderOutputView ID3D11VideoDecoderOutputView; + +#endif /* __ID3D11VideoDecoderOutputView_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoProcessorInputView_FWD_DEFINED__ +#define __ID3D11VideoProcessorInputView_FWD_DEFINED__ +typedef interface ID3D11VideoProcessorInputView ID3D11VideoProcessorInputView; + +#endif /* __ID3D11VideoProcessorInputView_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoProcessorOutputView_FWD_DEFINED__ +#define __ID3D11VideoProcessorOutputView_FWD_DEFINED__ +typedef interface ID3D11VideoProcessorOutputView ID3D11VideoProcessorOutputView; + +#endif /* __ID3D11VideoProcessorOutputView_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoContext_FWD_DEFINED__ +#define __ID3D11VideoContext_FWD_DEFINED__ +typedef interface ID3D11VideoContext ID3D11VideoContext; + +#endif /* __ID3D11VideoContext_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoDevice_FWD_DEFINED__ +#define __ID3D11VideoDevice_FWD_DEFINED__ +typedef interface ID3D11VideoDevice ID3D11VideoDevice; + +#endif /* __ID3D11VideoDevice_FWD_DEFINED__ */ + + +#ifndef __ID3D11Device_FWD_DEFINED__ +#define __ID3D11Device_FWD_DEFINED__ +typedef interface ID3D11Device ID3D11Device; + +#endif /* __ID3D11Device_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "dxgi.h" +#include "d3dcommon.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d11_0000_0000 */ +/* [local] */ + +#ifndef _D3D11_CONSTANTS +#define _D3D11_CONSTANTS +#define D3D11_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff ) + +#define D3D11_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff ) + +#define D3D11_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff ) + +#define D3D11_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 ) + +#define D3D11_CLIP_OR_CULL_DISTANCE_COUNT ( 8 ) + +#define D3D11_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 ) + +#define D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 ) + +#define D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 ) + +#define D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 ) + +#define D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 ) + +#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 ) + +#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 ) + +#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 ) + +#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 ) + +#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 ) + +#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 ) + +#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 ) + +#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 ) + +#define D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 ) + +#define D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 ) + +#define D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 ) + +#define D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 ) + +#define D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 ) + +#define D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 ) + +#define D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 ) + +#define D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 ) + +#define D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 ) + +#define D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 ) + +#define D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 ) + +#define D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 ) + +#define D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 ) + +#define D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 ) + +#define D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 ) + +#define D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 ) + +#define D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 ) + +#define D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 ) + +#define D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 ) + +#define D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 ) + +#define D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 ) + +#define D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 ) + +#define D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 ) + +#define D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 ) + +#define D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 ) + +#define D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 ) + +#define D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 ) + +#define D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 ) + +#define D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 ) + +#define D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 ) + +#define D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 ) + +#define D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 ) + +#define D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 ) + +#define D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 ) + +#define D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 ) + +#define D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 ) + +#define D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 ) + +#define D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 ) + +#define D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 ) + +#define D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 ) + +#define D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 ) + +#define D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 ) + +#define D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 ) + +#define D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 ) + +#define D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 ) + +#define D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 ) + +#define D3D11_CS_4_X_THREAD_GROUP_MAX_X ( 768 ) + +#define D3D11_CS_4_X_THREAD_GROUP_MAX_Y ( 768 ) + +#define D3D11_CS_4_X_UAV_REGISTER_COUNT ( 1 ) + +#define D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 ) + +#define D3D11_CS_TGSM_REGISTER_COUNT ( 8192 ) + +#define D3D11_CS_TGSM_REGISTER_READS_PER_INST ( 1 ) + +#define D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 ) + +#define D3D11_CS_THREADGROUPID_REGISTER_COUNT ( 1 ) + +#define D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 ) + +#define D3D11_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 ) + +#define D3D11_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 ) + +#define D3D11_CS_THREADID_REGISTER_COMPONENTS ( 3 ) + +#define D3D11_CS_THREADID_REGISTER_COUNT ( 1 ) + +#define D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 ) + +#define D3D11_CS_THREAD_GROUP_MAX_X ( 1024 ) + +#define D3D11_CS_THREAD_GROUP_MAX_Y ( 1024 ) + +#define D3D11_CS_THREAD_GROUP_MAX_Z ( 64 ) + +#define D3D11_CS_THREAD_GROUP_MIN_X ( 1 ) + +#define D3D11_CS_THREAD_GROUP_MIN_Y ( 1 ) + +#define D3D11_CS_THREAD_GROUP_MIN_Z ( 1 ) + +#define D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 ) + +#define D3D11_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f ) +#define D3D11_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f ) +#define D3D11_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f ) +#define D3D11_DEFAULT_BLEND_FACTOR_RED ( 1.0f ) +#define D3D11_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f ) +#define D3D11_DEFAULT_DEPTH_BIAS ( 0 ) + +#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f ) +#define D3D11_DEFAULT_MAX_ANISOTROPY ( 16 ) + +#define D3D11_DEFAULT_MIP_LOD_BIAS ( 0.0f ) +#define D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 ) + +#define D3D11_DEFAULT_SAMPLE_MASK ( 0xffffffff ) + +#define D3D11_DEFAULT_SCISSOR_ENDX ( 0 ) + +#define D3D11_DEFAULT_SCISSOR_ENDY ( 0 ) + +#define D3D11_DEFAULT_SCISSOR_STARTX ( 0 ) + +#define D3D11_DEFAULT_SCISSOR_STARTY ( 0 ) + +#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f ) +#define D3D11_DEFAULT_STENCIL_READ_MASK ( 0xff ) + +#define D3D11_DEFAULT_STENCIL_REFERENCE ( 0 ) + +#define D3D11_DEFAULT_STENCIL_WRITE_MASK ( 0xff ) + +#define D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 ) + +#define D3D11_DEFAULT_VIEWPORT_HEIGHT ( 0 ) + +#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f ) +#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f ) +#define D3D11_DEFAULT_VIEWPORT_TOPLEFTX ( 0 ) + +#define D3D11_DEFAULT_VIEWPORT_TOPLEFTY ( 0 ) + +#define D3D11_DEFAULT_VIEWPORT_WIDTH ( 0 ) + +#define D3D11_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 ) + +#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 ) + +#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 ) + +#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 ) + +#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 ) + +#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 ) + +#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_DS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_DS_OUTPUT_REGISTER_COUNT ( 32 ) + +#define D3D11_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 ) +#define D3D11_FLOAT32_MAX ( 3.402823466e+38f ) +#define D3D11_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f ) +#define D3D11_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f ) +#define D3D11_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f ) +#define D3D11_FLOAT_TO_SRGB_OFFSET ( 0.055f ) +#define D3D11_FLOAT_TO_SRGB_SCALE_1 ( 12.92f ) +#define D3D11_FLOAT_TO_SRGB_SCALE_2 ( 1.055f ) +#define D3D11_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f ) +#define D3D11_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f ) +#define D3D11_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f ) +#define D3D11_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f ) +#define D3D11_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f ) +#define D3D11_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 ) + +#define D3D11_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 ) + +#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 ) + +#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 ) + +#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_GS_INPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_GS_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D11_GS_INPUT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_GS_INPUT_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_GS_INPUT_REGISTER_VERTICES ( 32 ) + +#define D3D11_GS_MAX_INSTANCE_COUNT ( 32 ) + +#define D3D11_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 ) + +#define D3D11_GS_OUTPUT_ELEMENTS ( 32 ) + +#define D3D11_GS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_GS_OUTPUT_REGISTER_COUNT ( 32 ) + +#define D3D11_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D11_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 ) + +#define D3D11_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff ) + +#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 ) + +#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 ) + +#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 ) + +#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff ) + +#define D3D11_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f ) +#define D3D11_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f ) +#define D3D11_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 ) + +#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 ) + +#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 ) + +#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 ) + +#define D3D11_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 ) + +#define D3D11_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 ) + +#define D3D11_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 ) + +#define D3D11_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 ) + +#define D3D11_IA_INSTANCE_ID_BIT_COUNT ( 32 ) + +#define D3D11_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 ) + +#define D3D11_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 ) + +#define D3D11_IA_PRIMITIVE_ID_BIT_COUNT ( 32 ) + +#define D3D11_IA_VERTEX_ID_BIT_COUNT ( 32 ) + +#define D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 ) + +#define D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 ) + +#define D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 ) + +#define D3D11_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff ) + +#define D3D11_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff ) + +#define D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff ) + +#define D3D11_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff ) + +#define D3D11_LINEAR_GAMMA ( 1.0f ) +#define D3D11_MAJOR_VERSION ( 11 ) + +#define D3D11_MAX_BORDER_COLOR_COMPONENT ( 1.0f ) +#define D3D11_MAX_DEPTH ( 1.0f ) +#define D3D11_MAX_MAXANISOTROPY ( 16 ) + +#define D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 ) + +#define D3D11_MAX_POSITION_VALUE ( 3.402823466e+34f ) +#define D3D11_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 ) + +#define D3D11_MINOR_VERSION ( 0 ) + +#define D3D11_MIN_BORDER_COLOR_COMPONENT ( 0.0f ) +#define D3D11_MIN_DEPTH ( 0.0f ) +#define D3D11_MIN_MAXANISOTROPY ( 0 ) + +#define D3D11_MIP_LOD_BIAS_MAX ( 15.99f ) +#define D3D11_MIP_LOD_BIAS_MIN ( -16.0f ) +#define D3D11_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 ) + +#define D3D11_MIP_LOD_RANGE_BIT_COUNT ( 8 ) + +#define D3D11_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f ) +#define D3D11_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 ) + +#define D3D11_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 ) + +#define D3D11_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 ) + +#define D3D11_PS_CS_UAV_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_PS_CS_UAV_REGISTER_COUNT ( 8 ) + +#define D3D11_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 ) + +#define D3D11_PS_CS_UAV_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff ) + +#define D3D11_PS_FRONTFACING_FALSE_VALUE ( 0 ) + +#define D3D11_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff ) + +#define D3D11_PS_INPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_PS_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D11_PS_INPUT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_PS_INPUT_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f ) +#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 ) + +#define D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 ) + +#define D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 ) + +#define D3D11_PS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_PS_OUTPUT_REGISTER_COUNT ( 8 ) + +#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f ) +#define D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 ) + +#define D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 ) + +#define D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 ) + +#define D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 ) + +#define D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 ) + +#define D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 ) + +#define D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 ) + +#define D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 ) + +#define D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 ) + +#define D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 ) + +#define D3D11_REQ_MAXANISOTROPY ( 16 ) + +#define D3D11_REQ_MIP_LEVELS ( 15 ) + +#define D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 ) + +#define D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 ) + +#define D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 ) + +#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 ) + +#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f ) +#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 ) + +#define D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 ) + +#define D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 ) + +#define D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 ) + +#define D3D11_REQ_TEXTURE1D_U_DIMENSION ( 16384 ) + +#define D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 ) + +#define D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 ) + +#define D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 ) + +#define D3D11_REQ_TEXTURECUBE_DIMENSION ( 16384 ) + +#define D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 ) + +#define D3D11_SHADER_MAJOR_VERSION ( 5 ) + +#define D3D11_SHADER_MAX_INSTANCES ( 65535 ) + +#define D3D11_SHADER_MAX_INTERFACES ( 253 ) + +#define D3D11_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 ) + +#define D3D11_SHADER_MAX_TYPES ( 65535 ) + +#define D3D11_SHADER_MINOR_VERSION ( 0 ) + +#define D3D11_SHIFT_INSTRUCTION_PAD_VALUE ( 0 ) + +#define D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 ) + +#define D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 ) + +#define D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 ) + +#define D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 ) + +#define D3D11_SO_BUFFER_SLOT_COUNT ( 4 ) + +#define D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff ) + +#define D3D11_SO_NO_RASTERIZED_STREAM ( 0xffffffff ) + +#define D3D11_SO_OUTPUT_COMPONENT_COUNT ( 128 ) + +#define D3D11_SO_STREAM_COUNT ( 4 ) + +#define D3D11_SPEC_DATE_DAY ( 16 ) + +#define D3D11_SPEC_DATE_MONTH ( 05 ) + +#define D3D11_SPEC_DATE_YEAR ( 2011 ) + +#define D3D11_SPEC_VERSION ( 1.07 ) +#define D3D11_SRGB_GAMMA ( 2.2f ) +#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f ) +#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f ) +#define D3D11_SRGB_TO_FLOAT_EXPONENT ( 2.4f ) +#define D3D11_SRGB_TO_FLOAT_OFFSET ( 0.055f ) +#define D3D11_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f ) +#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f ) +#define D3D11_STANDARD_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 ) + +#define D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 ) + +#define D3D11_STANDARD_PIXEL_COMPONENT_COUNT ( 128 ) + +#define D3D11_STANDARD_PIXEL_ELEMENT_COUNT ( 32 ) + +#define D3D11_STANDARD_VECTOR_SIZE ( 4 ) + +#define D3D11_STANDARD_VERTEX_ELEMENT_COUNT ( 32 ) + +#define D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 ) + +#define D3D11_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 ) + +#define D3D11_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 ) + +#define D3D11_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 ) + +#define D3D11_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 ) + +#define D3D11_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 ) + +#define D3D11_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 ) + +#define D3D11_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 ) + +#define D3D11_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 ) + +#define D3D11_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 ) + +#define D3D11_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 ) + +#define D3D11_UNBOUND_MEMORY_ACCESS_RESULT ( 0 ) + +#define D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 ) + +#define D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 ) + +#define D3D11_VIEWPORT_BOUNDS_MAX ( 32767 ) + +#define D3D11_VIEWPORT_BOUNDS_MIN ( -32768 ) + +#define D3D11_VS_INPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_VS_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D11_VS_INPUT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D11_VS_INPUT_REGISTER_READ_PORTS ( 1 ) + +#define D3D11_VS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D11_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D11_VS_OUTPUT_REGISTER_COUNT ( 32 ) + +#define D3D11_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 ) + +#define D3D11_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 ) + +#define D3D11_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 ) + +#endif +#ifndef _D3D11_1_CONSTANTS +#define _D3D11_1_CONSTANTS +#define D3D11_1_UAV_SLOT_COUNT ( 64 ) + +#endif +#ifndef _D3D11_2_CONSTANTS +#define _D3D11_2_CONSTANTS +#define D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 ) + +#define D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS ( 4 ) + +#define D3D11_4_VIDEO_DECODER_HISTOGRAM_OFFSET_ALIGNMENT ( 256 ) + +#endif +#define _FACD3D11 ( 0x87c ) + +#define _FACD3D11DEBUG ( ( _FACD3D11 + 1 ) ) + +/* Direct3D errors are now found in winerror.h */ +#define MAKE_D3D11_HRESULT( code ) MAKE_HRESULT( 1, _FACD3D11, code ) +#define MAKE_D3D11_STATUS( code ) MAKE_HRESULT( 0, _FACD3D11, code ) +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_DEFAULT {}; +extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT; +extern "C"{ +#endif +typedef +enum D3D11_INPUT_CLASSIFICATION + { + D3D11_INPUT_PER_VERTEX_DATA = 0, + D3D11_INPUT_PER_INSTANCE_DATA = 1 + } D3D11_INPUT_CLASSIFICATION; + +#define D3D11_APPEND_ALIGNED_ELEMENT ( 0xffffffff ) + +typedef struct D3D11_INPUT_ELEMENT_DESC + { + LPCSTR SemanticName; + UINT SemanticIndex; + DXGI_FORMAT Format; + UINT InputSlot; + UINT AlignedByteOffset; + D3D11_INPUT_CLASSIFICATION InputSlotClass; + UINT InstanceDataStepRate; + } D3D11_INPUT_ELEMENT_DESC; + +typedef +enum D3D11_FILL_MODE + { + D3D11_FILL_WIREFRAME = 2, + D3D11_FILL_SOLID = 3 + } D3D11_FILL_MODE; + +typedef D3D_PRIMITIVE_TOPOLOGY D3D11_PRIMITIVE_TOPOLOGY; + +typedef D3D_PRIMITIVE D3D11_PRIMITIVE; + +typedef +enum D3D11_CULL_MODE + { + D3D11_CULL_NONE = 1, + D3D11_CULL_FRONT = 2, + D3D11_CULL_BACK = 3 + } D3D11_CULL_MODE; + +typedef struct D3D11_SO_DECLARATION_ENTRY + { + UINT Stream; + LPCSTR SemanticName; + UINT SemanticIndex; + BYTE StartComponent; + BYTE ComponentCount; + BYTE OutputSlot; + } D3D11_SO_DECLARATION_ENTRY; + +typedef struct D3D11_VIEWPORT + { + FLOAT TopLeftX; + FLOAT TopLeftY; + FLOAT Width; + FLOAT Height; + FLOAT MinDepth; + FLOAT MaxDepth; + } D3D11_VIEWPORT; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +inline bool operator==( const D3D11_VIEWPORT& l, const D3D11_VIEWPORT& r ) +{ + return l.TopLeftX == r.TopLeftX && l.TopLeftY == r.TopLeftY && l.Width == r.Width && + l.Height == r.Height && l.MinDepth == r.MinDepth && l.MaxDepth == r.MaxDepth; +} +inline bool operator!=( const D3D11_VIEWPORT& l, const D3D11_VIEWPORT& r ) +{ return !( l == r ); } +extern "C"{ +#endif +typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS + { + UINT VertexCountPerInstance; + UINT InstanceCount; + UINT StartVertexLocation; + UINT StartInstanceLocation; + } D3D11_DRAW_INSTANCED_INDIRECT_ARGS; + +typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS + { + UINT IndexCountPerInstance; + UINT InstanceCount; + UINT StartIndexLocation; + INT BaseVertexLocation; + UINT StartInstanceLocation; + } D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS; + +typedef +enum D3D11_RESOURCE_DIMENSION + { + D3D11_RESOURCE_DIMENSION_UNKNOWN = 0, + D3D11_RESOURCE_DIMENSION_BUFFER = 1, + D3D11_RESOURCE_DIMENSION_TEXTURE1D = 2, + D3D11_RESOURCE_DIMENSION_TEXTURE2D = 3, + D3D11_RESOURCE_DIMENSION_TEXTURE3D = 4 + } D3D11_RESOURCE_DIMENSION; + +typedef D3D_SRV_DIMENSION D3D11_SRV_DIMENSION; + +typedef +enum D3D11_DSV_DIMENSION + { + D3D11_DSV_DIMENSION_UNKNOWN = 0, + D3D11_DSV_DIMENSION_TEXTURE1D = 1, + D3D11_DSV_DIMENSION_TEXTURE1DARRAY = 2, + D3D11_DSV_DIMENSION_TEXTURE2D = 3, + D3D11_DSV_DIMENSION_TEXTURE2DARRAY = 4, + D3D11_DSV_DIMENSION_TEXTURE2DMS = 5, + D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY = 6 + } D3D11_DSV_DIMENSION; + +typedef +enum D3D11_RTV_DIMENSION + { + D3D11_RTV_DIMENSION_UNKNOWN = 0, + D3D11_RTV_DIMENSION_BUFFER = 1, + D3D11_RTV_DIMENSION_TEXTURE1D = 2, + D3D11_RTV_DIMENSION_TEXTURE1DARRAY = 3, + D3D11_RTV_DIMENSION_TEXTURE2D = 4, + D3D11_RTV_DIMENSION_TEXTURE2DARRAY = 5, + D3D11_RTV_DIMENSION_TEXTURE2DMS = 6, + D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D11_RTV_DIMENSION_TEXTURE3D = 8 + } D3D11_RTV_DIMENSION; + +typedef +enum D3D11_UAV_DIMENSION + { + D3D11_UAV_DIMENSION_UNKNOWN = 0, + D3D11_UAV_DIMENSION_BUFFER = 1, + D3D11_UAV_DIMENSION_TEXTURE1D = 2, + D3D11_UAV_DIMENSION_TEXTURE1DARRAY = 3, + D3D11_UAV_DIMENSION_TEXTURE2D = 4, + D3D11_UAV_DIMENSION_TEXTURE2DARRAY = 5, + D3D11_UAV_DIMENSION_TEXTURE3D = 8 + } D3D11_UAV_DIMENSION; + +typedef +enum D3D11_USAGE + { + D3D11_USAGE_DEFAULT = 0, + D3D11_USAGE_IMMUTABLE = 1, + D3D11_USAGE_DYNAMIC = 2, + D3D11_USAGE_STAGING = 3 + } D3D11_USAGE; + +typedef +enum D3D11_BIND_FLAG + { + D3D11_BIND_VERTEX_BUFFER = 0x1L, + D3D11_BIND_INDEX_BUFFER = 0x2L, + D3D11_BIND_CONSTANT_BUFFER = 0x4L, + D3D11_BIND_SHADER_RESOURCE = 0x8L, + D3D11_BIND_STREAM_OUTPUT = 0x10L, + D3D11_BIND_RENDER_TARGET = 0x20L, + D3D11_BIND_DEPTH_STENCIL = 0x40L, + D3D11_BIND_UNORDERED_ACCESS = 0x80L, + D3D11_BIND_DECODER = 0x200L, + D3D11_BIND_VIDEO_ENCODER = 0x400L + } D3D11_BIND_FLAG; + +typedef +enum D3D11_CPU_ACCESS_FLAG + { + D3D11_CPU_ACCESS_WRITE = 0x10000L, + D3D11_CPU_ACCESS_READ = 0x20000L + } D3D11_CPU_ACCESS_FLAG; + +typedef +enum D3D11_RESOURCE_MISC_FLAG + { + D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x1L, + D3D11_RESOURCE_MISC_SHARED = 0x2L, + D3D11_RESOURCE_MISC_TEXTURECUBE = 0x4L, + D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x10L, + D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x20L, + D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x40L, + D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x80L, + D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x100L, + D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x200L, + D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x800L, + D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x1000L, + D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x2000L, + D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x4000L, + D3D11_RESOURCE_MISC_GUARDED = 0x8000L, + D3D11_RESOURCE_MISC_TILE_POOL = 0x20000L, + D3D11_RESOURCE_MISC_TILED = 0x40000L, + D3D11_RESOURCE_MISC_HW_PROTECTED = 0x80000L, + D3D11_RESOURCE_MISC_SHARED_DISPLAYABLE = 0x100000L, + D3D11_RESOURCE_MISC_SHARED_EXCLUSIVE_WRITER = 0x200000L, + D3D11_RESOURCE_MISC_NO_SHADER_ACCESS = 0x400000L + } D3D11_RESOURCE_MISC_FLAG; + +typedef +enum D3D11_MAP + { + D3D11_MAP_READ = 1, + D3D11_MAP_WRITE = 2, + D3D11_MAP_READ_WRITE = 3, + D3D11_MAP_WRITE_DISCARD = 4, + D3D11_MAP_WRITE_NO_OVERWRITE = 5 + } D3D11_MAP; + +typedef +enum D3D11_MAP_FLAG + { + D3D11_MAP_FLAG_DO_NOT_WAIT = 0x100000L + } D3D11_MAP_FLAG; + +typedef +enum D3D11_RAISE_FLAG + { + D3D11_RAISE_FLAG_DRIVER_INTERNAL_ERROR = 0x1L + } D3D11_RAISE_FLAG; + +typedef +enum D3D11_CLEAR_FLAG + { + D3D11_CLEAR_DEPTH = 0x1L, + D3D11_CLEAR_STENCIL = 0x2L + } D3D11_CLEAR_FLAG; + +typedef RECT D3D11_RECT; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_RECT : public D3D11_RECT +{ + CD3D11_RECT() = default; + explicit CD3D11_RECT( const D3D11_RECT& o ) : + D3D11_RECT( o ) + {} + explicit CD3D11_RECT( + LONG Left, + LONG Top, + LONG Right, + LONG Bottom ) + { + left = Left; + top = Top; + right = Right; + bottom = Bottom; + } + ~CD3D11_RECT() {} +}; +inline bool operator==( const D3D11_RECT& l, const D3D11_RECT& r ) +{ + return l.left == r.left && l.top == r.top && + l.right == r.right && l.bottom == r.bottom; +} +inline bool operator!=( const D3D11_RECT& l, const D3D11_RECT& r ) +{ return !( l == r ); } +extern "C"{ +#endif +typedef struct D3D11_BOX + { + UINT left; + UINT top; + UINT front; + UINT right; + UINT bottom; + UINT back; + } D3D11_BOX; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_BOX : public D3D11_BOX +{ + CD3D11_BOX() = default; + explicit CD3D11_BOX( const D3D11_BOX& o ) : + D3D11_BOX( o ) + {} + explicit CD3D11_BOX( + LONG Left, + LONG Top, + LONG Front, + LONG Right, + LONG Bottom, + LONG Back ) + { + left = Left; + top = Top; + front = Front; + right = Right; + bottom = Bottom; + back = Back; + } + ~CD3D11_BOX() {} +}; +inline bool operator==( const D3D11_BOX& l, const D3D11_BOX& r ) +{ + return l.left == r.left && l.top == r.top && l.front == r.front && + l.right == r.right && l.bottom == r.bottom && l.back == r.back; +} +inline bool operator!=( const D3D11_BOX& l, const D3D11_BOX& r ) +{ return !( l == r ); } +extern "C"{ +#endif + + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D11DeviceChild_INTERFACE_DEFINED__ +#define __ID3D11DeviceChild_INTERFACE_DEFINED__ + +/* interface ID3D11DeviceChild */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11DeviceChild; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1841e5c8-16b0-489b-bcc8-44cfb0d5deae") + ID3D11DeviceChild : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE GetDevice( + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateData( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateData( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateDataInterface( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11DeviceChildVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11DeviceChild * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11DeviceChild * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11DeviceChild * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11DeviceChild * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11DeviceChild * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11DeviceChild * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11DeviceChild * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D11DeviceChildVtbl; + + interface ID3D11DeviceChild + { + CONST_VTBL struct ID3D11DeviceChildVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11DeviceChild_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11DeviceChild_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11DeviceChild_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11DeviceChild_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11DeviceChild_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11DeviceChild_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11DeviceChild_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11DeviceChild_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0001 */ +/* [local] */ + +typedef +enum D3D11_COMPARISON_FUNC + { + D3D11_COMPARISON_NEVER = 1, + D3D11_COMPARISON_LESS = 2, + D3D11_COMPARISON_EQUAL = 3, + D3D11_COMPARISON_LESS_EQUAL = 4, + D3D11_COMPARISON_GREATER = 5, + D3D11_COMPARISON_NOT_EQUAL = 6, + D3D11_COMPARISON_GREATER_EQUAL = 7, + D3D11_COMPARISON_ALWAYS = 8 + } D3D11_COMPARISON_FUNC; + +typedef +enum D3D11_DEPTH_WRITE_MASK + { + D3D11_DEPTH_WRITE_MASK_ZERO = 0, + D3D11_DEPTH_WRITE_MASK_ALL = 1 + } D3D11_DEPTH_WRITE_MASK; + +typedef +enum D3D11_STENCIL_OP + { + D3D11_STENCIL_OP_KEEP = 1, + D3D11_STENCIL_OP_ZERO = 2, + D3D11_STENCIL_OP_REPLACE = 3, + D3D11_STENCIL_OP_INCR_SAT = 4, + D3D11_STENCIL_OP_DECR_SAT = 5, + D3D11_STENCIL_OP_INVERT = 6, + D3D11_STENCIL_OP_INCR = 7, + D3D11_STENCIL_OP_DECR = 8 + } D3D11_STENCIL_OP; + +typedef struct D3D11_DEPTH_STENCILOP_DESC + { + D3D11_STENCIL_OP StencilFailOp; + D3D11_STENCIL_OP StencilDepthFailOp; + D3D11_STENCIL_OP StencilPassOp; + D3D11_COMPARISON_FUNC StencilFunc; + } D3D11_DEPTH_STENCILOP_DESC; + +typedef struct D3D11_DEPTH_STENCIL_DESC + { + BOOL DepthEnable; + D3D11_DEPTH_WRITE_MASK DepthWriteMask; + D3D11_COMPARISON_FUNC DepthFunc; + BOOL StencilEnable; + UINT8 StencilReadMask; + UINT8 StencilWriteMask; + D3D11_DEPTH_STENCILOP_DESC FrontFace; + D3D11_DEPTH_STENCILOP_DESC BackFace; + } D3D11_DEPTH_STENCIL_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC +{ + CD3D11_DEPTH_STENCIL_DESC() = default; + explicit CD3D11_DEPTH_STENCIL_DESC( const D3D11_DEPTH_STENCIL_DESC& o ) : + D3D11_DEPTH_STENCIL_DESC( o ) + {} + explicit CD3D11_DEPTH_STENCIL_DESC( CD3D11_DEFAULT ) + { + DepthEnable = TRUE; + DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL; + DepthFunc = D3D11_COMPARISON_LESS; + StencilEnable = FALSE; + StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK; + StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK; + const D3D11_DEPTH_STENCILOP_DESC defaultStencilOp = + { D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS }; + FrontFace = defaultStencilOp; + BackFace = defaultStencilOp; + } + explicit CD3D11_DEPTH_STENCIL_DESC( + BOOL depthEnable, + D3D11_DEPTH_WRITE_MASK depthWriteMask, + D3D11_COMPARISON_FUNC depthFunc, + BOOL stencilEnable, + UINT8 stencilReadMask, + UINT8 stencilWriteMask, + D3D11_STENCIL_OP frontStencilFailOp, + D3D11_STENCIL_OP frontStencilDepthFailOp, + D3D11_STENCIL_OP frontStencilPassOp, + D3D11_COMPARISON_FUNC frontStencilFunc, + D3D11_STENCIL_OP backStencilFailOp, + D3D11_STENCIL_OP backStencilDepthFailOp, + D3D11_STENCIL_OP backStencilPassOp, + D3D11_COMPARISON_FUNC backStencilFunc ) + { + DepthEnable = depthEnable; + DepthWriteMask = depthWriteMask; + DepthFunc = depthFunc; + StencilEnable = stencilEnable; + StencilReadMask = stencilReadMask; + StencilWriteMask = stencilWriteMask; + FrontFace.StencilFailOp = frontStencilFailOp; + FrontFace.StencilDepthFailOp = frontStencilDepthFailOp; + FrontFace.StencilPassOp = frontStencilPassOp; + FrontFace.StencilFunc = frontStencilFunc; + BackFace.StencilFailOp = backStencilFailOp; + BackFace.StencilDepthFailOp = backStencilDepthFailOp; + BackFace.StencilPassOp = backStencilPassOp; + BackFace.StencilFunc = backStencilFunc; + } + ~CD3D11_DEPTH_STENCIL_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0001_v0_0_s_ifspec; + +#ifndef __ID3D11DepthStencilState_INTERFACE_DEFINED__ +#define __ID3D11DepthStencilState_INTERFACE_DEFINED__ + +/* interface ID3D11DepthStencilState */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11DepthStencilState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1") + ID3D11DepthStencilState : public ID3D11DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_DEPTH_STENCIL_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11DepthStencilStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11DepthStencilState * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11DepthStencilState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11DepthStencilState * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11DepthStencilState * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11DepthStencilState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11DepthStencilState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11DepthStencilState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11DepthStencilState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11DepthStencilState * This, + /* [annotation] */ + _Out_ D3D11_DEPTH_STENCIL_DESC *pDesc); + + END_INTERFACE + } ID3D11DepthStencilStateVtbl; + + interface ID3D11DepthStencilState + { + CONST_VTBL struct ID3D11DepthStencilStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11DepthStencilState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11DepthStencilState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11DepthStencilState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11DepthStencilState_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11DepthStencilState_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11DepthStencilState_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11DepthStencilState_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11DepthStencilState_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11DepthStencilState_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0002 */ +/* [local] */ + +typedef +enum D3D11_BLEND + { + D3D11_BLEND_ZERO = 1, + D3D11_BLEND_ONE = 2, + D3D11_BLEND_SRC_COLOR = 3, + D3D11_BLEND_INV_SRC_COLOR = 4, + D3D11_BLEND_SRC_ALPHA = 5, + D3D11_BLEND_INV_SRC_ALPHA = 6, + D3D11_BLEND_DEST_ALPHA = 7, + D3D11_BLEND_INV_DEST_ALPHA = 8, + D3D11_BLEND_DEST_COLOR = 9, + D3D11_BLEND_INV_DEST_COLOR = 10, + D3D11_BLEND_SRC_ALPHA_SAT = 11, + D3D11_BLEND_BLEND_FACTOR = 14, + D3D11_BLEND_INV_BLEND_FACTOR = 15, + D3D11_BLEND_SRC1_COLOR = 16, + D3D11_BLEND_INV_SRC1_COLOR = 17, + D3D11_BLEND_SRC1_ALPHA = 18, + D3D11_BLEND_INV_SRC1_ALPHA = 19 + } D3D11_BLEND; + +typedef +enum D3D11_BLEND_OP + { + D3D11_BLEND_OP_ADD = 1, + D3D11_BLEND_OP_SUBTRACT = 2, + D3D11_BLEND_OP_REV_SUBTRACT = 3, + D3D11_BLEND_OP_MIN = 4, + D3D11_BLEND_OP_MAX = 5 + } D3D11_BLEND_OP; + +typedef +enum D3D11_COLOR_WRITE_ENABLE + { + D3D11_COLOR_WRITE_ENABLE_RED = 1, + D3D11_COLOR_WRITE_ENABLE_GREEN = 2, + D3D11_COLOR_WRITE_ENABLE_BLUE = 4, + D3D11_COLOR_WRITE_ENABLE_ALPHA = 8, + D3D11_COLOR_WRITE_ENABLE_ALL = ( ( ( D3D11_COLOR_WRITE_ENABLE_RED | D3D11_COLOR_WRITE_ENABLE_GREEN ) | D3D11_COLOR_WRITE_ENABLE_BLUE ) | D3D11_COLOR_WRITE_ENABLE_ALPHA ) + } D3D11_COLOR_WRITE_ENABLE; + +typedef struct D3D11_RENDER_TARGET_BLEND_DESC + { + BOOL BlendEnable; + D3D11_BLEND SrcBlend; + D3D11_BLEND DestBlend; + D3D11_BLEND_OP BlendOp; + D3D11_BLEND SrcBlendAlpha; + D3D11_BLEND DestBlendAlpha; + D3D11_BLEND_OP BlendOpAlpha; + UINT8 RenderTargetWriteMask; + } D3D11_RENDER_TARGET_BLEND_DESC; + +typedef struct D3D11_BLEND_DESC + { + BOOL AlphaToCoverageEnable; + BOOL IndependentBlendEnable; + D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[ 8 ]; + } D3D11_BLEND_DESC; + +/* Note, the array size for RenderTarget[] above is D3D11_SIMULTANEOUS_RENDERTARGET_COUNT. + IDL processing/generation of this header replaces the define; this comment is merely explaining what happened. */ +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC +{ + CD3D11_BLEND_DESC() = default; + explicit CD3D11_BLEND_DESC( const D3D11_BLEND_DESC& o ) : + D3D11_BLEND_DESC( o ) + {} + explicit CD3D11_BLEND_DESC( CD3D11_DEFAULT ) + { + AlphaToCoverageEnable = FALSE; + IndependentBlendEnable = FALSE; + const D3D11_RENDER_TARGET_BLEND_DESC defaultRenderTargetBlendDesc = + { + FALSE, + D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD, + D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD, + D3D11_COLOR_WRITE_ENABLE_ALL, + }; + for (UINT i = 0; i < D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; ++i) + RenderTarget[ i ] = defaultRenderTargetBlendDesc; + } + ~CD3D11_BLEND_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0002_v0_0_s_ifspec; + +#ifndef __ID3D11BlendState_INTERFACE_DEFINED__ +#define __ID3D11BlendState_INTERFACE_DEFINED__ + +/* interface ID3D11BlendState */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11BlendState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("75b68faa-347d-4159-8f45-a0640f01cd9a") + ID3D11BlendState : public ID3D11DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_BLEND_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11BlendStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11BlendState * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11BlendState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11BlendState * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11BlendState * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11BlendState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11BlendState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11BlendState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11BlendState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11BlendState * This, + /* [annotation] */ + _Out_ D3D11_BLEND_DESC *pDesc); + + END_INTERFACE + } ID3D11BlendStateVtbl; + + interface ID3D11BlendState + { + CONST_VTBL struct ID3D11BlendStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11BlendState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11BlendState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11BlendState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11BlendState_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11BlendState_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11BlendState_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11BlendState_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11BlendState_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11BlendState_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0003 */ +/* [local] */ + +typedef struct D3D11_RASTERIZER_DESC + { + D3D11_FILL_MODE FillMode; + D3D11_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + INT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL ScissorEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; + } D3D11_RASTERIZER_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC +{ + CD3D11_RASTERIZER_DESC() = default; + explicit CD3D11_RASTERIZER_DESC( const D3D11_RASTERIZER_DESC& o ) : + D3D11_RASTERIZER_DESC( o ) + {} + explicit CD3D11_RASTERIZER_DESC( CD3D11_DEFAULT ) + { + FillMode = D3D11_FILL_SOLID; + CullMode = D3D11_CULL_BACK; + FrontCounterClockwise = FALSE; + DepthBias = D3D11_DEFAULT_DEPTH_BIAS; + DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP; + SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS; + DepthClipEnable = TRUE; + ScissorEnable = FALSE; + MultisampleEnable = FALSE; + AntialiasedLineEnable = FALSE; + } + explicit CD3D11_RASTERIZER_DESC( + D3D11_FILL_MODE fillMode, + D3D11_CULL_MODE cullMode, + BOOL frontCounterClockwise, + INT depthBias, + FLOAT depthBiasClamp, + FLOAT slopeScaledDepthBias, + BOOL depthClipEnable, + BOOL scissorEnable, + BOOL multisampleEnable, + BOOL antialiasedLineEnable ) + { + FillMode = fillMode; + CullMode = cullMode; + FrontCounterClockwise = frontCounterClockwise; + DepthBias = depthBias; + DepthBiasClamp = depthBiasClamp; + SlopeScaledDepthBias = slopeScaledDepthBias; + DepthClipEnable = depthClipEnable; + ScissorEnable = scissorEnable; + MultisampleEnable = multisampleEnable; + AntialiasedLineEnable = antialiasedLineEnable; + } + ~CD3D11_RASTERIZER_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0003_v0_0_s_ifspec; + +#ifndef __ID3D11RasterizerState_INTERFACE_DEFINED__ +#define __ID3D11RasterizerState_INTERFACE_DEFINED__ + +/* interface ID3D11RasterizerState */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11RasterizerState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7") + ID3D11RasterizerState : public ID3D11DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_RASTERIZER_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11RasterizerStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11RasterizerState * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11RasterizerState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11RasterizerState * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11RasterizerState * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11RasterizerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11RasterizerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11RasterizerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11RasterizerState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11RasterizerState * This, + /* [annotation] */ + _Out_ D3D11_RASTERIZER_DESC *pDesc); + + END_INTERFACE + } ID3D11RasterizerStateVtbl; + + interface ID3D11RasterizerState + { + CONST_VTBL struct ID3D11RasterizerStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11RasterizerState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11RasterizerState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11RasterizerState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11RasterizerState_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11RasterizerState_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11RasterizerState_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11RasterizerState_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11RasterizerState_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11RasterizerState_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0004 */ +/* [local] */ + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +inline UINT D3D11CalcSubresource( UINT MipSlice, UINT ArraySlice, UINT MipLevels ) +{ return MipSlice + ArraySlice * MipLevels; } +extern "C"{ +#endif +typedef struct D3D11_SUBRESOURCE_DATA + { + const void *pSysMem; + UINT SysMemPitch; + UINT SysMemSlicePitch; + } D3D11_SUBRESOURCE_DATA; + +typedef struct D3D11_MAPPED_SUBRESOURCE + { + void *pData; + UINT RowPitch; + UINT DepthPitch; + } D3D11_MAPPED_SUBRESOURCE; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0004_v0_0_s_ifspec; + +#ifndef __ID3D11Resource_INTERFACE_DEFINED__ +#define __ID3D11Resource_INTERFACE_DEFINED__ + +/* interface ID3D11Resource */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Resource; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("dc8e63f3-d12b-4952-b47b-5e45026a862d") + ID3D11Resource : public ID3D11DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetType( + /* [annotation] */ + _Out_ D3D11_RESOURCE_DIMENSION *pResourceDimension) = 0; + + virtual void STDMETHODCALLTYPE SetEvictionPriority( + /* [annotation] */ + _In_ UINT EvictionPriority) = 0; + + virtual UINT STDMETHODCALLTYPE GetEvictionPriority( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11ResourceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Resource * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Resource * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Resource * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Resource * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Resource * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Resource * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Resource * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D11Resource * This, + /* [annotation] */ + _Out_ D3D11_RESOURCE_DIMENSION *pResourceDimension); + + DECLSPEC_XFGVIRT(ID3D11Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D11Resource * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D11Resource * This); + + END_INTERFACE + } ID3D11ResourceVtbl; + + interface ID3D11Resource + { + CONST_VTBL struct ID3D11ResourceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Resource_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Resource_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Resource_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Resource_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Resource_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Resource_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Resource_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Resource_GetType(This,pResourceDimension) \ + ( (This)->lpVtbl -> GetType(This,pResourceDimension) ) + +#define ID3D11Resource_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D11Resource_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Resource_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0005 */ +/* [local] */ + +typedef struct D3D11_BUFFER_DESC + { + UINT ByteWidth; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + UINT StructureByteStride; + } D3D11_BUFFER_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC +{ + CD3D11_BUFFER_DESC() = default; + explicit CD3D11_BUFFER_DESC( const D3D11_BUFFER_DESC& o ) : + D3D11_BUFFER_DESC( o ) + {} + explicit CD3D11_BUFFER_DESC( + UINT byteWidth, + UINT bindFlags, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + UINT cpuaccessFlags = 0, + UINT miscFlags = 0, + UINT structureByteStride = 0 ) + { + ByteWidth = byteWidth; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags ; + MiscFlags = miscFlags; + StructureByteStride = structureByteStride; + } + ~CD3D11_BUFFER_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0005_v0_0_s_ifspec; + +#ifndef __ID3D11Buffer_INTERFACE_DEFINED__ +#define __ID3D11Buffer_INTERFACE_DEFINED__ + +/* interface ID3D11Buffer */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Buffer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("48570b85-d1ee-4fcd-a250-eb350722b037") + ID3D11Buffer : public ID3D11Resource + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_BUFFER_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11BufferVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Buffer * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Buffer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Buffer * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Buffer * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Buffer * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Buffer * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Buffer * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D11Buffer * This, + /* [annotation] */ + _Out_ D3D11_RESOURCE_DIMENSION *pResourceDimension); + + DECLSPEC_XFGVIRT(ID3D11Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D11Buffer * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D11Buffer * This); + + DECLSPEC_XFGVIRT(ID3D11Buffer, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11Buffer * This, + /* [annotation] */ + _Out_ D3D11_BUFFER_DESC *pDesc); + + END_INTERFACE + } ID3D11BufferVtbl; + + interface ID3D11Buffer + { + CONST_VTBL struct ID3D11BufferVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Buffer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Buffer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Buffer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Buffer_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Buffer_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Buffer_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Buffer_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Buffer_GetType(This,pResourceDimension) \ + ( (This)->lpVtbl -> GetType(This,pResourceDimension) ) + +#define ID3D11Buffer_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D11Buffer_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + + +#define ID3D11Buffer_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Buffer_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0006 */ +/* [local] */ + +typedef struct D3D11_TEXTURE1D_DESC + { + UINT Width; + UINT MipLevels; + UINT ArraySize; + DXGI_FORMAT Format; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + } D3D11_TEXTURE1D_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_TEXTURE1D_DESC : public D3D11_TEXTURE1D_DESC +{ + CD3D11_TEXTURE1D_DESC() = default; + explicit CD3D11_TEXTURE1D_DESC( const D3D11_TEXTURE1D_DESC& o ) : + D3D11_TEXTURE1D_DESC( o ) + {} + explicit CD3D11_TEXTURE1D_DESC( + DXGI_FORMAT format, + UINT width, + UINT arraySize = 1, + UINT mipLevels = 0, + UINT bindFlags = D3D11_BIND_SHADER_RESOURCE, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + UINT cpuaccessFlags= 0, + UINT miscFlags = 0 ) + { + Width = width; + MipLevels = mipLevels; + ArraySize = arraySize; + Format = format; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } + ~CD3D11_TEXTURE1D_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0006_v0_0_s_ifspec; + +#ifndef __ID3D11Texture1D_INTERFACE_DEFINED__ +#define __ID3D11Texture1D_INTERFACE_DEFINED__ + +/* interface ID3D11Texture1D */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Texture1D; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f8fb5c27-c6b3-4f75-a4c8-439af2ef564c") + ID3D11Texture1D : public ID3D11Resource + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_TEXTURE1D_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Texture1DVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Texture1D * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Texture1D * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Texture1D * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Texture1D * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Texture1D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Texture1D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Texture1D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D11Texture1D * This, + /* [annotation] */ + _Out_ D3D11_RESOURCE_DIMENSION *pResourceDimension); + + DECLSPEC_XFGVIRT(ID3D11Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D11Texture1D * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D11Texture1D * This); + + DECLSPEC_XFGVIRT(ID3D11Texture1D, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11Texture1D * This, + /* [annotation] */ + _Out_ D3D11_TEXTURE1D_DESC *pDesc); + + END_INTERFACE + } ID3D11Texture1DVtbl; + + interface ID3D11Texture1D + { + CONST_VTBL struct ID3D11Texture1DVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Texture1D_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Texture1D_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Texture1D_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Texture1D_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Texture1D_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Texture1D_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Texture1D_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Texture1D_GetType(This,pResourceDimension) \ + ( (This)->lpVtbl -> GetType(This,pResourceDimension) ) + +#define ID3D11Texture1D_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D11Texture1D_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + + +#define ID3D11Texture1D_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Texture1D_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0007 */ +/* [local] */ + +typedef struct D3D11_TEXTURE2D_DESC + { + UINT Width; + UINT Height; + UINT MipLevels; + UINT ArraySize; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + } D3D11_TEXTURE2D_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC +{ + CD3D11_TEXTURE2D_DESC() = default; + explicit CD3D11_TEXTURE2D_DESC( const D3D11_TEXTURE2D_DESC& o ) : + D3D11_TEXTURE2D_DESC( o ) + {} + explicit CD3D11_TEXTURE2D_DESC( + DXGI_FORMAT format, + UINT width, + UINT height, + UINT arraySize = 1, + UINT mipLevels = 0, + UINT bindFlags = D3D11_BIND_SHADER_RESOURCE, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + UINT cpuaccessFlags = 0, + UINT sampleCount = 1, + UINT sampleQuality = 0, + UINT miscFlags = 0 ) + { + Width = width; + Height = height; + MipLevels = mipLevels; + ArraySize = arraySize; + Format = format; + SampleDesc.Count = sampleCount; + SampleDesc.Quality = sampleQuality; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } + ~CD3D11_TEXTURE2D_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0007_v0_0_s_ifspec; + +#ifndef __ID3D11Texture2D_INTERFACE_DEFINED__ +#define __ID3D11Texture2D_INTERFACE_DEFINED__ + +/* interface ID3D11Texture2D */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Texture2D; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6f15aaf2-d208-4e89-9ab4-489535d34f9c") + ID3D11Texture2D : public ID3D11Resource + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_TEXTURE2D_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Texture2DVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Texture2D * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Texture2D * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Texture2D * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Texture2D * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Texture2D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Texture2D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Texture2D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D11Texture2D * This, + /* [annotation] */ + _Out_ D3D11_RESOURCE_DIMENSION *pResourceDimension); + + DECLSPEC_XFGVIRT(ID3D11Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D11Texture2D * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D11Texture2D * This); + + DECLSPEC_XFGVIRT(ID3D11Texture2D, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11Texture2D * This, + /* [annotation] */ + _Out_ D3D11_TEXTURE2D_DESC *pDesc); + + END_INTERFACE + } ID3D11Texture2DVtbl; + + interface ID3D11Texture2D + { + CONST_VTBL struct ID3D11Texture2DVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Texture2D_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Texture2D_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Texture2D_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Texture2D_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Texture2D_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Texture2D_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Texture2D_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Texture2D_GetType(This,pResourceDimension) \ + ( (This)->lpVtbl -> GetType(This,pResourceDimension) ) + +#define ID3D11Texture2D_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D11Texture2D_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + + +#define ID3D11Texture2D_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Texture2D_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0008 */ +/* [local] */ + +typedef struct D3D11_TEXTURE3D_DESC + { + UINT Width; + UINT Height; + UINT Depth; + UINT MipLevels; + DXGI_FORMAT Format; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + } D3D11_TEXTURE3D_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_TEXTURE3D_DESC : public D3D11_TEXTURE3D_DESC +{ + CD3D11_TEXTURE3D_DESC() = default; + explicit CD3D11_TEXTURE3D_DESC( const D3D11_TEXTURE3D_DESC& o ) : + D3D11_TEXTURE3D_DESC( o ) + {} + explicit CD3D11_TEXTURE3D_DESC( + DXGI_FORMAT format, + UINT width, + UINT height, + UINT depth, + UINT mipLevels = 0, + UINT bindFlags = D3D11_BIND_SHADER_RESOURCE, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + UINT cpuaccessFlags = 0, + UINT miscFlags = 0 ) + { + Width = width; + Height = height; + Depth = depth; + MipLevels = mipLevels; + Format = format; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + } + ~CD3D11_TEXTURE3D_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0008_v0_0_s_ifspec; + +#ifndef __ID3D11Texture3D_INTERFACE_DEFINED__ +#define __ID3D11Texture3D_INTERFACE_DEFINED__ + +/* interface ID3D11Texture3D */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Texture3D; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("037e866e-f56d-4357-a8af-9dabbe6e250e") + ID3D11Texture3D : public ID3D11Resource + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_TEXTURE3D_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Texture3DVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Texture3D * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Texture3D * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Texture3D * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Texture3D * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Texture3D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Texture3D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Texture3D * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D11Texture3D * This, + /* [annotation] */ + _Out_ D3D11_RESOURCE_DIMENSION *pResourceDimension); + + DECLSPEC_XFGVIRT(ID3D11Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D11Texture3D * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D11Texture3D * This); + + DECLSPEC_XFGVIRT(ID3D11Texture3D, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11Texture3D * This, + /* [annotation] */ + _Out_ D3D11_TEXTURE3D_DESC *pDesc); + + END_INTERFACE + } ID3D11Texture3DVtbl; + + interface ID3D11Texture3D + { + CONST_VTBL struct ID3D11Texture3DVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Texture3D_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Texture3D_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Texture3D_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Texture3D_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Texture3D_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Texture3D_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Texture3D_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Texture3D_GetType(This,pResourceDimension) \ + ( (This)->lpVtbl -> GetType(This,pResourceDimension) ) + +#define ID3D11Texture3D_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D11Texture3D_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + + +#define ID3D11Texture3D_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Texture3D_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0009 */ +/* [local] */ + +typedef +enum D3D11_TEXTURECUBE_FACE + { + D3D11_TEXTURECUBE_FACE_POSITIVE_X = 0, + D3D11_TEXTURECUBE_FACE_NEGATIVE_X = 1, + D3D11_TEXTURECUBE_FACE_POSITIVE_Y = 2, + D3D11_TEXTURECUBE_FACE_NEGATIVE_Y = 3, + D3D11_TEXTURECUBE_FACE_POSITIVE_Z = 4, + D3D11_TEXTURECUBE_FACE_NEGATIVE_Z = 5 + } D3D11_TEXTURECUBE_FACE; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0009_v0_0_s_ifspec; + +#ifndef __ID3D11View_INTERFACE_DEFINED__ +#define __ID3D11View_INTERFACE_DEFINED__ + +/* interface ID3D11View */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11View; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("839d1216-bb2e-412b-b7f4-a9dbebe08ed1") + ID3D11View : public ID3D11DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetResource( + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11ViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11View * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11View * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11View * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11View * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11View * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11View * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11View * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11View * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + END_INTERFACE + } ID3D11ViewVtbl; + + interface ID3D11View + { + CONST_VTBL struct ID3D11ViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11View_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11View_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11View_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11View_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11View_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11View_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11View_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11View_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11View_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0010 */ +/* [local] */ + +typedef struct D3D11_BUFFER_SRV + { + union + { + UINT FirstElement; + UINT ElementOffset; + } ; + union + { + UINT NumElements; + UINT ElementWidth; + } ; + } D3D11_BUFFER_SRV; + +typedef +enum D3D11_BUFFEREX_SRV_FLAG + { + D3D11_BUFFEREX_SRV_FLAG_RAW = 0x1 + } D3D11_BUFFEREX_SRV_FLAG; + +typedef struct D3D11_BUFFEREX_SRV + { + UINT FirstElement; + UINT NumElements; + UINT Flags; + } D3D11_BUFFEREX_SRV; + +typedef struct D3D11_TEX1D_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + } D3D11_TEX1D_SRV; + +typedef struct D3D11_TEX1D_ARRAY_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX1D_ARRAY_SRV; + +typedef struct D3D11_TEX2D_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + } D3D11_TEX2D_SRV; + +typedef struct D3D11_TEX2D_ARRAY_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX2D_ARRAY_SRV; + +typedef struct D3D11_TEX3D_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + } D3D11_TEX3D_SRV; + +typedef struct D3D11_TEXCUBE_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + } D3D11_TEXCUBE_SRV; + +typedef struct D3D11_TEXCUBE_ARRAY_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + UINT First2DArrayFace; + UINT NumCubes; + } D3D11_TEXCUBE_ARRAY_SRV; + +typedef struct D3D11_TEX2DMS_SRV + { + UINT UnusedField_NothingToDefine; + } D3D11_TEX2DMS_SRV; + +typedef struct D3D11_TEX2DMS_ARRAY_SRV + { + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX2DMS_ARRAY_SRV; + +typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC + { + DXGI_FORMAT Format; + D3D11_SRV_DIMENSION ViewDimension; + union + { + D3D11_BUFFER_SRV Buffer; + D3D11_TEX1D_SRV Texture1D; + D3D11_TEX1D_ARRAY_SRV Texture1DArray; + D3D11_TEX2D_SRV Texture2D; + D3D11_TEX2D_ARRAY_SRV Texture2DArray; + D3D11_TEX2DMS_SRV Texture2DMS; + D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray; + D3D11_TEX3D_SRV Texture3D; + D3D11_TEXCUBE_SRV TextureCube; + D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray; + D3D11_BUFFEREX_SRV BufferEx; + } ; + } D3D11_SHADER_RESOURCE_VIEW_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC +{ + CD3D11_SHADER_RESOURCE_VIEW_DESC() = default; + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC( const D3D11_SHADER_RESOURCE_VIEW_DESC& o ) : + D3D11_SHADER_RESOURCE_VIEW_DESC( o ) + {} + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC( + D3D11_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mostDetailedMip = 0, // FirstElement for BUFFER + UINT mipLevels = -1, // NumElements for BUFFER + UINT firstArraySlice = 0, // First2DArrayFace for TEXTURECUBEARRAY + UINT arraySize = -1, // NumCubes for TEXTURECUBEARRAY + UINT flags = 0 ) // BUFFEREX only + { + Format = format; + ViewDimension = viewDimension; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_BUFFER: + Buffer.FirstElement = mostDetailedMip; + Buffer.NumElements = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURE1D: + Texture1D.MostDetailedMip = mostDetailedMip; + Texture1D.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MostDetailedMip = mostDetailedMip; + Texture1DArray.MipLevels = mipLevels; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + case D3D11_SRV_DIMENSION_TEXTURE2D: + Texture2D.MostDetailedMip = mostDetailedMip; + Texture2D.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MostDetailedMip = mostDetailedMip; + Texture2DArray.MipLevels = mipLevels; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + break; + case D3D11_SRV_DIMENSION_TEXTURE2DMS: + break; + case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY: + Texture2DMSArray.FirstArraySlice = firstArraySlice; + Texture2DMSArray.ArraySize = arraySize; + break; + case D3D11_SRV_DIMENSION_TEXTURE3D: + Texture3D.MostDetailedMip = mostDetailedMip; + Texture3D.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURECUBE: + TextureCube.MostDetailedMip = mostDetailedMip; + TextureCube.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY: + TextureCubeArray.MostDetailedMip = mostDetailedMip; + TextureCubeArray.MipLevels = mipLevels; + TextureCubeArray.First2DArrayFace = firstArraySlice; + TextureCubeArray.NumCubes = arraySize; + break; + case D3D11_SRV_DIMENSION_BUFFEREX: + BufferEx.FirstElement = mostDetailedMip; + BufferEx.NumElements = mipLevels; + BufferEx.Flags = flags; + break; + default: break; + } + } + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC( + _In_ ID3D11Buffer*, + DXGI_FORMAT format, + UINT firstElement, + UINT numElements, + UINT flags = 0 ) + { + Format = format; + ViewDimension = D3D11_SRV_DIMENSION_BUFFEREX; + BufferEx.FirstElement = firstElement; + BufferEx.NumElements = numElements; + BufferEx.Flags = flags; + } + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC( + _In_ ID3D11Texture1D* pTex1D, + D3D11_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mostDetailedMip = 0, + UINT mipLevels = -1, + UINT firstArraySlice = 0, + UINT arraySize = -1 ) + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == mipLevels || + ((UINT)-1 == arraySize && D3D11_SRV_DIMENSION_TEXTURE1DARRAY == viewDimension)) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_TEXTURE1D: + Texture1D.MostDetailedMip = mostDetailedMip; + Texture1D.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MostDetailedMip = mostDetailedMip; + Texture1DArray.MipLevels = mipLevels; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC( + _In_ ID3D11Texture2D* pTex2D, + D3D11_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mostDetailedMip = 0, + UINT mipLevels = -1, + UINT firstArraySlice = 0, // First2DArrayFace for TEXTURECUBEARRAY + UINT arraySize = -1 ) // NumCubes for TEXTURECUBEARRAY + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == mipLevels && + D3D11_SRV_DIMENSION_TEXTURE2DMS != viewDimension && + D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY != viewDimension) || + ((UINT)-1 == arraySize && + (D3D11_SRV_DIMENSION_TEXTURE2DARRAY == viewDimension || + D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY == viewDimension || + D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension))) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip; + if ((UINT)-1 == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + if (D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension) arraySize /= 6; + } + } + Format = format; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_TEXTURE2D: + Texture2D.MostDetailedMip = mostDetailedMip; + Texture2D.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MostDetailedMip = mostDetailedMip; + Texture2DArray.MipLevels = mipLevels; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + break; + case D3D11_SRV_DIMENSION_TEXTURE2DMS: + break; + case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY: + Texture2DMSArray.FirstArraySlice = firstArraySlice; + Texture2DMSArray.ArraySize = arraySize; + break; + case D3D11_SRV_DIMENSION_TEXTURECUBE: + TextureCube.MostDetailedMip = mostDetailedMip; + TextureCube.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY: + TextureCubeArray.MostDetailedMip = mostDetailedMip; + TextureCubeArray.MipLevels = mipLevels; + TextureCubeArray.First2DArrayFace = firstArraySlice; + TextureCubeArray.NumCubes = arraySize; + break; + default: break; + } + } + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC( + _In_ ID3D11Texture3D* pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mostDetailedMip = 0, + UINT mipLevels = -1 ) + { + ViewDimension = D3D11_SRV_DIMENSION_TEXTURE3D; + if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == mipLevels) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip; + } + Format = format; + Texture3D.MostDetailedMip = mostDetailedMip; + Texture3D.MipLevels = mipLevels; + } + ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0010_v0_0_s_ifspec; + +#ifndef __ID3D11ShaderResourceView_INTERFACE_DEFINED__ +#define __ID3D11ShaderResourceView_INTERFACE_DEFINED__ + +/* interface ID3D11ShaderResourceView */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11ShaderResourceView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b0e06fe0-8192-4e1a-b1ca-36d7414710b2") + ID3D11ShaderResourceView : public ID3D11View + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11ShaderResourceViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11ShaderResourceView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11ShaderResourceView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11ShaderResourceView * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11ShaderResourceView * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11ShaderResourceView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11ShaderResourceView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11ShaderResourceView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11ShaderResourceView * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D11ShaderResourceView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11ShaderResourceView * This, + /* [annotation] */ + _Out_ D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc); + + END_INTERFACE + } ID3D11ShaderResourceViewVtbl; + + interface ID3D11ShaderResourceView + { + CONST_VTBL struct ID3D11ShaderResourceViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11ShaderResourceView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11ShaderResourceView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11ShaderResourceView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11ShaderResourceView_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11ShaderResourceView_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11ShaderResourceView_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11ShaderResourceView_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11ShaderResourceView_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D11ShaderResourceView_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11ShaderResourceView_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0011 */ +/* [local] */ + +typedef struct D3D11_BUFFER_RTV + { + union + { + UINT FirstElement; + UINT ElementOffset; + } ; + union + { + UINT NumElements; + UINT ElementWidth; + } ; + } D3D11_BUFFER_RTV; + +typedef struct D3D11_TEX1D_RTV + { + UINT MipSlice; + } D3D11_TEX1D_RTV; + +typedef struct D3D11_TEX1D_ARRAY_RTV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX1D_ARRAY_RTV; + +typedef struct D3D11_TEX2D_RTV + { + UINT MipSlice; + } D3D11_TEX2D_RTV; + +typedef struct D3D11_TEX2DMS_RTV + { + UINT UnusedField_NothingToDefine; + } D3D11_TEX2DMS_RTV; + +typedef struct D3D11_TEX2D_ARRAY_RTV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX2D_ARRAY_RTV; + +typedef struct D3D11_TEX2DMS_ARRAY_RTV + { + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX2DMS_ARRAY_RTV; + +typedef struct D3D11_TEX3D_RTV + { + UINT MipSlice; + UINT FirstWSlice; + UINT WSize; + } D3D11_TEX3D_RTV; + +typedef struct D3D11_RENDER_TARGET_VIEW_DESC + { + DXGI_FORMAT Format; + D3D11_RTV_DIMENSION ViewDimension; + union + { + D3D11_BUFFER_RTV Buffer; + D3D11_TEX1D_RTV Texture1D; + D3D11_TEX1D_ARRAY_RTV Texture1DArray; + D3D11_TEX2D_RTV Texture2D; + D3D11_TEX2D_ARRAY_RTV Texture2DArray; + D3D11_TEX2DMS_RTV Texture2DMS; + D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray; + D3D11_TEX3D_RTV Texture3D; + } ; + } D3D11_RENDER_TARGET_VIEW_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC +{ + CD3D11_RENDER_TARGET_VIEW_DESC() = default; + explicit CD3D11_RENDER_TARGET_VIEW_DESC( const D3D11_RENDER_TARGET_VIEW_DESC& o ) : + D3D11_RENDER_TARGET_VIEW_DESC( o ) + {} + explicit CD3D11_RENDER_TARGET_VIEW_DESC( + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, // FirstElement for BUFFER + UINT firstArraySlice = 0, // NumElements for BUFFER, FirstWSlice for TEXTURE3D + UINT arraySize = -1 ) // WSize for TEXTURE3D + { + Format = format; + ViewDimension = viewDimension; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_BUFFER: + Buffer.FirstElement = mipSlice; + Buffer.NumElements = firstArraySlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE1D: + Texture1D.MipSlice = mipSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MipSlice = mipSlice; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + case D3D11_RTV_DIMENSION_TEXTURE2D: + Texture2D.MipSlice = mipSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MipSlice = mipSlice; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + break; + case D3D11_RTV_DIMENSION_TEXTURE2DMS: + break; + case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY: + Texture2DMSArray.FirstArraySlice = firstArraySlice; + Texture2DMSArray.ArraySize = arraySize; + break; + case D3D11_RTV_DIMENSION_TEXTURE3D: + Texture3D.MipSlice = mipSlice; + Texture3D.FirstWSlice = firstArraySlice; + Texture3D.WSize = arraySize; + break; + default: break; + } + } + explicit CD3D11_RENDER_TARGET_VIEW_DESC( + _In_ ID3D11Buffer*, + DXGI_FORMAT format, + UINT firstElement, + UINT numElements ) + { + Format = format; + ViewDimension = D3D11_RTV_DIMENSION_BUFFER; + Buffer.FirstElement = firstElement; + Buffer.NumElements = numElements; + } + explicit CD3D11_RENDER_TARGET_VIEW_DESC( + _In_ ID3D11Texture1D* pTex1D, + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1 ) + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == arraySize && D3D11_RTV_DIMENSION_TEXTURE1DARRAY == viewDimension)) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE1D: + Texture1D.MipSlice = mipSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MipSlice = mipSlice; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_RENDER_TARGET_VIEW_DESC( + _In_ ID3D11Texture2D* pTex2D, + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1 ) + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == arraySize && + (D3D11_RTV_DIMENSION_TEXTURE2DARRAY == viewDimension || + D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY == viewDimension))) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE2D: + Texture2D.MipSlice = mipSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MipSlice = mipSlice; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + break; + case D3D11_RTV_DIMENSION_TEXTURE2DMS: + break; + case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY: + Texture2DMSArray.FirstArraySlice = firstArraySlice; + Texture2DMSArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_RENDER_TARGET_VIEW_DESC( + _In_ ID3D11Texture3D* pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstWSlice = 0, + UINT wSize = -1 ) + { + ViewDimension = D3D11_RTV_DIMENSION_TEXTURE3D; + if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == wSize) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == wSize) wSize = TexDesc.Depth - firstWSlice; + } + Format = format; + Texture3D.MipSlice = mipSlice; + Texture3D.FirstWSlice = firstWSlice; + Texture3D.WSize = wSize; + } + ~CD3D11_RENDER_TARGET_VIEW_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0011_v0_0_s_ifspec; + +#ifndef __ID3D11RenderTargetView_INTERFACE_DEFINED__ +#define __ID3D11RenderTargetView_INTERFACE_DEFINED__ + +/* interface ID3D11RenderTargetView */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11RenderTargetView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("dfdba067-0b8d-4865-875b-d7b4516cc164") + ID3D11RenderTargetView : public ID3D11View + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_RENDER_TARGET_VIEW_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11RenderTargetViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11RenderTargetView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11RenderTargetView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11RenderTargetView * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11RenderTargetView * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11RenderTargetView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11RenderTargetView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11RenderTargetView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11RenderTargetView * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D11RenderTargetView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11RenderTargetView * This, + /* [annotation] */ + _Out_ D3D11_RENDER_TARGET_VIEW_DESC *pDesc); + + END_INTERFACE + } ID3D11RenderTargetViewVtbl; + + interface ID3D11RenderTargetView + { + CONST_VTBL struct ID3D11RenderTargetViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11RenderTargetView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11RenderTargetView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11RenderTargetView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11RenderTargetView_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11RenderTargetView_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11RenderTargetView_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11RenderTargetView_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11RenderTargetView_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D11RenderTargetView_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11RenderTargetView_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0012 */ +/* [local] */ + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_VIEWPORT : public D3D11_VIEWPORT +{ + CD3D11_VIEWPORT() = default; + explicit CD3D11_VIEWPORT( const D3D11_VIEWPORT& o ) : + D3D11_VIEWPORT( o ) + {} + explicit CD3D11_VIEWPORT( + FLOAT topLeftX, + FLOAT topLeftY, + FLOAT width, + FLOAT height, + FLOAT minDepth = D3D11_MIN_DEPTH, + FLOAT maxDepth = D3D11_MAX_DEPTH ) + { + TopLeftX = topLeftX; + TopLeftY = topLeftY; + Width = width; + Height = height; + MinDepth = minDepth; + MaxDepth = maxDepth; + } + explicit CD3D11_VIEWPORT( + _In_ ID3D11Buffer*, + _In_ ID3D11RenderTargetView* pRTView, + FLOAT topLeftX = 0.0f, + FLOAT minDepth = D3D11_MIN_DEPTH, + FLOAT maxDepth = D3D11_MAX_DEPTH ) + { + D3D11_RENDER_TARGET_VIEW_DESC RTVDesc; + pRTView->GetDesc( &RTVDesc ); + UINT NumElements = 0; + switch (RTVDesc.ViewDimension) + { + case D3D11_RTV_DIMENSION_BUFFER: + NumElements = RTVDesc.Buffer.NumElements; + break; + default: break; + } + TopLeftX = topLeftX; + TopLeftY = 0.0f; + Width = static_cast(NumElements) - topLeftX; + Height = 1.0f; + MinDepth = minDepth; + MaxDepth = maxDepth; + } + explicit CD3D11_VIEWPORT( + _In_ ID3D11Texture1D* pTex1D, + _In_ ID3D11RenderTargetView* pRTView, + FLOAT topLeftX = 0.0f, + FLOAT minDepth = D3D11_MIN_DEPTH, + FLOAT maxDepth = D3D11_MAX_DEPTH ) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D->GetDesc( &TexDesc ); + D3D11_RENDER_TARGET_VIEW_DESC RTVDesc; + pRTView->GetDesc( &RTVDesc ); + UINT MipSlice = 0; + switch (RTVDesc.ViewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE1D: + MipSlice = RTVDesc.Texture1D.MipSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE1DARRAY: + MipSlice = RTVDesc.Texture1DArray.MipSlice; + break; + default: break; + } + const UINT SubResourceWidth = TexDesc.Width / (UINT( 1 ) << MipSlice); + TopLeftX = topLeftX; + TopLeftY = 0.0f; + Width = static_cast(SubResourceWidth ? SubResourceWidth : 1) - topLeftX; + Height = 1.0f; + MinDepth = minDepth; + MaxDepth = maxDepth; + } + explicit CD3D11_VIEWPORT( + _In_ ID3D11Texture2D* pTex2D, + _In_ ID3D11RenderTargetView* pRTView, + FLOAT topLeftX = 0.0f, + FLOAT topLeftY = 0.0f, + FLOAT minDepth = D3D11_MIN_DEPTH, + FLOAT maxDepth = D3D11_MAX_DEPTH ) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D->GetDesc( &TexDesc ); + D3D11_RENDER_TARGET_VIEW_DESC RTVDesc; + pRTView->GetDesc( &RTVDesc ); + UINT MipSlice = 0; + switch (RTVDesc.ViewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE2D: + MipSlice = RTVDesc.Texture2D.MipSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE2DARRAY: + MipSlice = RTVDesc.Texture2DArray.MipSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE2DMS: + case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY: + break; + default: break; + } + const UINT SubResourceWidth = TexDesc.Width / (UINT( 1 ) << MipSlice); + const UINT SubResourceHeight = TexDesc.Height / (UINT( 1 ) << MipSlice); + TopLeftX = topLeftX; + TopLeftY = topLeftY; + Width = static_cast(SubResourceWidth ? SubResourceWidth : 1) - topLeftX; + Height = static_cast(SubResourceHeight ? SubResourceHeight : 1) - topLeftY; + MinDepth = minDepth; + MaxDepth = maxDepth; + } + explicit CD3D11_VIEWPORT( + _In_ ID3D11Texture3D* pTex3D, + _In_ ID3D11RenderTargetView* pRTView, + FLOAT topLeftX = 0.0f, + FLOAT topLeftY = 0.0f, + FLOAT minDepth = D3D11_MIN_DEPTH, + FLOAT maxDepth = D3D11_MAX_DEPTH ) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D->GetDesc( &TexDesc ); + D3D11_RENDER_TARGET_VIEW_DESC RTVDesc; + pRTView->GetDesc( &RTVDesc ); + UINT MipSlice = 0; + switch (RTVDesc.ViewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE3D: + MipSlice = RTVDesc.Texture3D.MipSlice; + break; + default: break; + } + const UINT SubResourceWidth = TexDesc.Width / (UINT( 1 ) << MipSlice); + const UINT SubResourceHeight = TexDesc.Height / (UINT( 1 ) << MipSlice); + TopLeftX = topLeftX; + TopLeftY = topLeftY; + Width = static_cast(SubResourceWidth ? SubResourceWidth : 1) - topLeftX; + Height = static_cast(SubResourceHeight ? SubResourceHeight : 1) - topLeftY; + MinDepth = minDepth; + MaxDepth = maxDepth; + } + ~CD3D11_VIEWPORT() {} +}; +extern "C"{ +#endif +typedef struct D3D11_TEX1D_DSV + { + UINT MipSlice; + } D3D11_TEX1D_DSV; + +typedef struct D3D11_TEX1D_ARRAY_DSV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX1D_ARRAY_DSV; + +typedef struct D3D11_TEX2D_DSV + { + UINT MipSlice; + } D3D11_TEX2D_DSV; + +typedef struct D3D11_TEX2D_ARRAY_DSV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX2D_ARRAY_DSV; + +typedef struct D3D11_TEX2DMS_DSV + { + UINT UnusedField_NothingToDefine; + } D3D11_TEX2DMS_DSV; + +typedef struct D3D11_TEX2DMS_ARRAY_DSV + { + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX2DMS_ARRAY_DSV; + +typedef +enum D3D11_DSV_FLAG + { + D3D11_DSV_READ_ONLY_DEPTH = 0x1L, + D3D11_DSV_READ_ONLY_STENCIL = 0x2L + } D3D11_DSV_FLAG; + +typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC + { + DXGI_FORMAT Format; + D3D11_DSV_DIMENSION ViewDimension; + UINT Flags; + union + { + D3D11_TEX1D_DSV Texture1D; + D3D11_TEX1D_ARRAY_DSV Texture1DArray; + D3D11_TEX2D_DSV Texture2D; + D3D11_TEX2D_ARRAY_DSV Texture2DArray; + D3D11_TEX2DMS_DSV Texture2DMS; + D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray; + } ; + } D3D11_DEPTH_STENCIL_VIEW_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_DEPTH_STENCIL_VIEW_DESC : public D3D11_DEPTH_STENCIL_VIEW_DESC +{ + CD3D11_DEPTH_STENCIL_VIEW_DESC() = default; + explicit CD3D11_DEPTH_STENCIL_VIEW_DESC( const D3D11_DEPTH_STENCIL_VIEW_DESC& o ) : + D3D11_DEPTH_STENCIL_VIEW_DESC( o ) + {} + explicit CD3D11_DEPTH_STENCIL_VIEW_DESC( + D3D11_DSV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1, + UINT flags = 0 ) + { + Format = format; + ViewDimension = viewDimension; + Flags = flags; + switch (viewDimension) + { + case D3D11_DSV_DIMENSION_TEXTURE1D: + Texture1D.MipSlice = mipSlice; + break; + case D3D11_DSV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MipSlice = mipSlice; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + case D3D11_DSV_DIMENSION_TEXTURE2D: + Texture2D.MipSlice = mipSlice; + break; + case D3D11_DSV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MipSlice = mipSlice; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + break; + case D3D11_DSV_DIMENSION_TEXTURE2DMS: + break; + case D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY: + Texture2DMSArray.FirstArraySlice = firstArraySlice; + Texture2DMSArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_DEPTH_STENCIL_VIEW_DESC( + _In_ ID3D11Texture1D* pTex1D, + D3D11_DSV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1, + UINT flags = 0 ) + { + ViewDimension = viewDimension; + Flags = flags; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == arraySize && D3D11_DSV_DIMENSION_TEXTURE1DARRAY == viewDimension)) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_DSV_DIMENSION_TEXTURE1D: + Texture1D.MipSlice = mipSlice; + break; + case D3D11_DSV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MipSlice = mipSlice; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_DEPTH_STENCIL_VIEW_DESC( + _In_ ID3D11Texture2D* pTex2D, + D3D11_DSV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1, + UINT flags = 0 ) + { + ViewDimension = viewDimension; + Flags = flags; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == arraySize && + (D3D11_DSV_DIMENSION_TEXTURE2DARRAY == viewDimension || + D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY == viewDimension))) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_DSV_DIMENSION_TEXTURE2D: + Texture2D.MipSlice = mipSlice; + break; + case D3D11_DSV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MipSlice = mipSlice; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + break; + case D3D11_DSV_DIMENSION_TEXTURE2DMS: + break; + case D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY: + Texture2DMSArray.FirstArraySlice = firstArraySlice; + Texture2DMSArray.ArraySize = arraySize; + break; + default: break; + } + } + ~CD3D11_DEPTH_STENCIL_VIEW_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0012_v0_0_s_ifspec; + +#ifndef __ID3D11DepthStencilView_INTERFACE_DEFINED__ +#define __ID3D11DepthStencilView_INTERFACE_DEFINED__ + +/* interface ID3D11DepthStencilView */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11DepthStencilView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9fdac92a-1876-48c3-afad-25b94f84a9b6") + ID3D11DepthStencilView : public ID3D11View + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11DepthStencilViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11DepthStencilView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11DepthStencilView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11DepthStencilView * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11DepthStencilView * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11DepthStencilView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11DepthStencilView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11DepthStencilView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11DepthStencilView * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D11DepthStencilView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11DepthStencilView * This, + /* [annotation] */ + _Out_ D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc); + + END_INTERFACE + } ID3D11DepthStencilViewVtbl; + + interface ID3D11DepthStencilView + { + CONST_VTBL struct ID3D11DepthStencilViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11DepthStencilView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11DepthStencilView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11DepthStencilView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11DepthStencilView_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11DepthStencilView_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11DepthStencilView_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11DepthStencilView_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11DepthStencilView_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D11DepthStencilView_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11DepthStencilView_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0013 */ +/* [local] */ + +typedef +enum D3D11_BUFFER_UAV_FLAG + { + D3D11_BUFFER_UAV_FLAG_RAW = 0x1, + D3D11_BUFFER_UAV_FLAG_APPEND = 0x2, + D3D11_BUFFER_UAV_FLAG_COUNTER = 0x4 + } D3D11_BUFFER_UAV_FLAG; + +typedef struct D3D11_BUFFER_UAV + { + UINT FirstElement; + UINT NumElements; + UINT Flags; + } D3D11_BUFFER_UAV; + +typedef struct D3D11_TEX1D_UAV + { + UINT MipSlice; + } D3D11_TEX1D_UAV; + +typedef struct D3D11_TEX1D_ARRAY_UAV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX1D_ARRAY_UAV; + +typedef struct D3D11_TEX2D_UAV + { + UINT MipSlice; + } D3D11_TEX2D_UAV; + +typedef struct D3D11_TEX2D_ARRAY_UAV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX2D_ARRAY_UAV; + +typedef struct D3D11_TEX3D_UAV + { + UINT MipSlice; + UINT FirstWSlice; + UINT WSize; + } D3D11_TEX3D_UAV; + +typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC + { + DXGI_FORMAT Format; + D3D11_UAV_DIMENSION ViewDimension; + union + { + D3D11_BUFFER_UAV Buffer; + D3D11_TEX1D_UAV Texture1D; + D3D11_TEX1D_ARRAY_UAV Texture1DArray; + D3D11_TEX2D_UAV Texture2D; + D3D11_TEX2D_ARRAY_UAV Texture2DArray; + D3D11_TEX3D_UAV Texture3D; + } ; + } D3D11_UNORDERED_ACCESS_VIEW_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_UNORDERED_ACCESS_VIEW_DESC : public D3D11_UNORDERED_ACCESS_VIEW_DESC +{ + CD3D11_UNORDERED_ACCESS_VIEW_DESC() = default; + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC( const D3D11_UNORDERED_ACCESS_VIEW_DESC& o ) : + D3D11_UNORDERED_ACCESS_VIEW_DESC( o ) + {} + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC( + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, // FirstElement for BUFFER + UINT firstArraySlice = 0, // NumElements for BUFFER, FirstWSlice for TEXTURE3D + UINT arraySize = -1, // WSize for TEXTURE3D + UINT flags = 0 ) // BUFFER only + { + Format = format; + ViewDimension = viewDimension; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_BUFFER: + Buffer.FirstElement = mipSlice; + Buffer.NumElements = firstArraySlice; + Buffer.Flags = flags; + break; + case D3D11_UAV_DIMENSION_TEXTURE1D: + Texture1D.MipSlice = mipSlice; + break; + case D3D11_UAV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MipSlice = mipSlice; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + case D3D11_UAV_DIMENSION_TEXTURE2D: + Texture2D.MipSlice = mipSlice; + break; + case D3D11_UAV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MipSlice = mipSlice; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + break; + case D3D11_UAV_DIMENSION_TEXTURE3D: + Texture3D.MipSlice = mipSlice; + Texture3D.FirstWSlice = firstArraySlice; + Texture3D.WSize = arraySize; + break; + default: break; + } + } + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC( + _In_ ID3D11Buffer*, + DXGI_FORMAT format, + UINT firstElement, + UINT numElements, + UINT flags = 0 ) + { + Format = format; + ViewDimension = D3D11_UAV_DIMENSION_BUFFER; + Buffer.FirstElement = firstElement; + Buffer.NumElements = numElements; + Buffer.Flags = flags; + } + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC( + _In_ ID3D11Texture1D* pTex1D, + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1 ) + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == arraySize && D3D11_UAV_DIMENSION_TEXTURE1DARRAY == viewDimension)) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_TEXTURE1D: + Texture1D.MipSlice = mipSlice; + break; + case D3D11_UAV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MipSlice = mipSlice; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC( + _In_ ID3D11Texture2D* pTex2D, + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1 ) + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == arraySize && D3D11_UAV_DIMENSION_TEXTURE2DARRAY == viewDimension)) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_TEXTURE2D: + Texture2D.MipSlice = mipSlice; + break; + case D3D11_UAV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MipSlice = mipSlice; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC( + _In_ ID3D11Texture3D* pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstWSlice = 0, + UINT wSize = -1 ) + { + ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D; + if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == wSize) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == wSize) wSize = TexDesc.Depth - firstWSlice; + } + Format = format; + Texture3D.MipSlice = mipSlice; + Texture3D.FirstWSlice = firstWSlice; + Texture3D.WSize = wSize; + } + ~CD3D11_UNORDERED_ACCESS_VIEW_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0013_v0_0_s_ifspec; + +#ifndef __ID3D11UnorderedAccessView_INTERFACE_DEFINED__ +#define __ID3D11UnorderedAccessView_INTERFACE_DEFINED__ + +/* interface ID3D11UnorderedAccessView */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11UnorderedAccessView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("28acf509-7f5c-48f6-8611-f316010a6380") + ID3D11UnorderedAccessView : public ID3D11View + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11UnorderedAccessViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11UnorderedAccessView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11UnorderedAccessView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11UnorderedAccessView * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11UnorderedAccessView * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11UnorderedAccessView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11UnorderedAccessView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11UnorderedAccessView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11UnorderedAccessView * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D11UnorderedAccessView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11UnorderedAccessView * This, + /* [annotation] */ + _Out_ D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc); + + END_INTERFACE + } ID3D11UnorderedAccessViewVtbl; + + interface ID3D11UnorderedAccessView + { + CONST_VTBL struct ID3D11UnorderedAccessViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11UnorderedAccessView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11UnorderedAccessView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11UnorderedAccessView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11UnorderedAccessView_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11UnorderedAccessView_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11UnorderedAccessView_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11UnorderedAccessView_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11UnorderedAccessView_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D11UnorderedAccessView_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11UnorderedAccessView_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11VertexShader_INTERFACE_DEFINED__ +#define __ID3D11VertexShader_INTERFACE_DEFINED__ + +/* interface ID3D11VertexShader */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VertexShader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3b301d64-d678-4289-8897-22f8928b72f3") + ID3D11VertexShader : public ID3D11DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D11VertexShaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VertexShader * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VertexShader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VertexShader * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VertexShader * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VertexShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VertexShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VertexShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D11VertexShaderVtbl; + + interface ID3D11VertexShader + { + CONST_VTBL struct ID3D11VertexShaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VertexShader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VertexShader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VertexShader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VertexShader_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VertexShader_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VertexShader_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VertexShader_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VertexShader_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11HullShader_INTERFACE_DEFINED__ +#define __ID3D11HullShader_INTERFACE_DEFINED__ + +/* interface ID3D11HullShader */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11HullShader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8e5c6061-628a-4c8e-8264-bbe45cb3d5dd") + ID3D11HullShader : public ID3D11DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D11HullShaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11HullShader * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11HullShader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11HullShader * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11HullShader * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11HullShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11HullShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11HullShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D11HullShaderVtbl; + + interface ID3D11HullShader + { + CONST_VTBL struct ID3D11HullShaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11HullShader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11HullShader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11HullShader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11HullShader_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11HullShader_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11HullShader_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11HullShader_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11HullShader_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11DomainShader_INTERFACE_DEFINED__ +#define __ID3D11DomainShader_INTERFACE_DEFINED__ + +/* interface ID3D11DomainShader */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11DomainShader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f582c508-0f36-490c-9977-31eece268cfa") + ID3D11DomainShader : public ID3D11DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D11DomainShaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11DomainShader * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11DomainShader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11DomainShader * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11DomainShader * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11DomainShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11DomainShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11DomainShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D11DomainShaderVtbl; + + interface ID3D11DomainShader + { + CONST_VTBL struct ID3D11DomainShaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11DomainShader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11DomainShader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11DomainShader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11DomainShader_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11DomainShader_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11DomainShader_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11DomainShader_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11DomainShader_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11GeometryShader_INTERFACE_DEFINED__ +#define __ID3D11GeometryShader_INTERFACE_DEFINED__ + +/* interface ID3D11GeometryShader */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11GeometryShader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("38325b96-effb-4022-ba02-2e795b70275c") + ID3D11GeometryShader : public ID3D11DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D11GeometryShaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11GeometryShader * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11GeometryShader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11GeometryShader * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11GeometryShader * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11GeometryShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11GeometryShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11GeometryShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D11GeometryShaderVtbl; + + interface ID3D11GeometryShader + { + CONST_VTBL struct ID3D11GeometryShaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11GeometryShader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11GeometryShader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11GeometryShader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11GeometryShader_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11GeometryShader_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11GeometryShader_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11GeometryShader_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11GeometryShader_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11PixelShader_INTERFACE_DEFINED__ +#define __ID3D11PixelShader_INTERFACE_DEFINED__ + +/* interface ID3D11PixelShader */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11PixelShader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ea82e40d-51dc-4f33-93d4-db7c9125ae8c") + ID3D11PixelShader : public ID3D11DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D11PixelShaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11PixelShader * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11PixelShader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11PixelShader * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11PixelShader * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11PixelShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11PixelShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11PixelShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D11PixelShaderVtbl; + + interface ID3D11PixelShader + { + CONST_VTBL struct ID3D11PixelShaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11PixelShader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11PixelShader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11PixelShader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11PixelShader_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11PixelShader_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11PixelShader_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11PixelShader_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11PixelShader_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11ComputeShader_INTERFACE_DEFINED__ +#define __ID3D11ComputeShader_INTERFACE_DEFINED__ + +/* interface ID3D11ComputeShader */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11ComputeShader; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4f5b196e-c2bd-495e-bd01-1fded38e4969") + ID3D11ComputeShader : public ID3D11DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D11ComputeShaderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11ComputeShader * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11ComputeShader * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11ComputeShader * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11ComputeShader * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11ComputeShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11ComputeShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11ComputeShader * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D11ComputeShaderVtbl; + + interface ID3D11ComputeShader + { + CONST_VTBL struct ID3D11ComputeShaderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11ComputeShader_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11ComputeShader_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11ComputeShader_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11ComputeShader_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11ComputeShader_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11ComputeShader_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11ComputeShader_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11ComputeShader_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11InputLayout_INTERFACE_DEFINED__ +#define __ID3D11InputLayout_INTERFACE_DEFINED__ + +/* interface ID3D11InputLayout */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11InputLayout; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e4819ddc-4cf0-4025-bd26-5de82a3e07b7") + ID3D11InputLayout : public ID3D11DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D11InputLayoutVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11InputLayout * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11InputLayout * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11InputLayout * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11InputLayout * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11InputLayout * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11InputLayout * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11InputLayout * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D11InputLayoutVtbl; + + interface ID3D11InputLayout + { + CONST_VTBL struct ID3D11InputLayoutVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11InputLayout_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11InputLayout_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11InputLayout_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11InputLayout_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11InputLayout_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11InputLayout_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11InputLayout_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11InputLayout_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0021 */ +/* [local] */ + +typedef +enum D3D11_FILTER + { + D3D11_FILTER_MIN_MAG_MIP_POINT = 0, + D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x1, + D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x4, + D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x5, + D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10, + D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11, + D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14, + D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x15, + D3D11_FILTER_ANISOTROPIC = 0x55, + D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80, + D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81, + D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84, + D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85, + D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90, + D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91, + D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94, + D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95, + D3D11_FILTER_COMPARISON_ANISOTROPIC = 0xd5, + D3D11_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100, + D3D11_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101, + D3D11_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104, + D3D11_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105, + D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110, + D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111, + D3D11_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114, + D3D11_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115, + D3D11_FILTER_MINIMUM_ANISOTROPIC = 0x155, + D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180, + D3D11_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181, + D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184, + D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185, + D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190, + D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191, + D3D11_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194, + D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195, + D3D11_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5 + } D3D11_FILTER; + +typedef +enum D3D11_FILTER_TYPE + { + D3D11_FILTER_TYPE_POINT = 0, + D3D11_FILTER_TYPE_LINEAR = 1 + } D3D11_FILTER_TYPE; + +typedef +enum D3D11_FILTER_REDUCTION_TYPE + { + D3D11_FILTER_REDUCTION_TYPE_STANDARD = 0, + D3D11_FILTER_REDUCTION_TYPE_COMPARISON = 1, + D3D11_FILTER_REDUCTION_TYPE_MINIMUM = 2, + D3D11_FILTER_REDUCTION_TYPE_MAXIMUM = 3 + } D3D11_FILTER_REDUCTION_TYPE; + +#define D3D11_FILTER_REDUCTION_TYPE_MASK ( 0x3 ) + +#define D3D11_FILTER_REDUCTION_TYPE_SHIFT ( 7 ) + +#define D3D11_FILTER_TYPE_MASK ( 0x3 ) + +#define D3D11_MIN_FILTER_SHIFT ( 4 ) + +#define D3D11_MAG_FILTER_SHIFT ( 2 ) + +#define D3D11_MIP_FILTER_SHIFT ( 0 ) + +// D3D11_COMPARISON_FILTERING_BIT is no longer used / meaningless. The D3D11_FILTER_REDUCTION_TYPE enum replaced it. +// Old code that uses D3D11_COMPARISON_FILTERING_BIT and would never use D3D11_FILTER_MINIMUM_* or D3D11_FILTER_MAXIMUM_* +// will still work fine though, so the define is left to avoid breaks. +#define D3D11_COMPARISON_FILTERING_BIT ( 0x80 ) + +#define D3D11_ANISOTROPIC_FILTERING_BIT ( 0x40 ) + +#define D3D11_ENCODE_BASIC_FILTER( min, mag, mip, reduction ) \ + ( ( D3D11_FILTER ) ( \ + ( ( ( min ) & D3D11_FILTER_TYPE_MASK ) << D3D11_MIN_FILTER_SHIFT ) | \ + ( ( ( mag ) & D3D11_FILTER_TYPE_MASK ) << D3D11_MAG_FILTER_SHIFT ) | \ + ( ( ( mip ) & D3D11_FILTER_TYPE_MASK ) << D3D11_MIP_FILTER_SHIFT ) | \ + ( ( ( reduction ) & D3D11_FILTER_REDUCTION_TYPE_MASK ) << D3D11_FILTER_REDUCTION_TYPE_SHIFT ) ) ) +#define D3D11_ENCODE_ANISOTROPIC_FILTER( reduction ) \ + ( ( D3D11_FILTER ) ( \ + D3D11_ANISOTROPIC_FILTERING_BIT | \ + D3D11_ENCODE_BASIC_FILTER( D3D11_FILTER_TYPE_LINEAR, \ + D3D11_FILTER_TYPE_LINEAR, \ + D3D11_FILTER_TYPE_LINEAR, \ + reduction ) ) ) +#define D3D11_DECODE_MIN_FILTER( d3d11Filter ) \ + ( ( D3D11_FILTER_TYPE ) \ + ( ( ( d3d11Filter ) >> D3D11_MIN_FILTER_SHIFT ) & D3D11_FILTER_TYPE_MASK ) ) +#define D3D11_DECODE_MAG_FILTER( d3d11Filter ) \ + ( ( D3D11_FILTER_TYPE ) \ + ( ( ( d3d11Filter ) >> D3D11_MAG_FILTER_SHIFT ) & D3D11_FILTER_TYPE_MASK ) ) +#define D3D11_DECODE_MIP_FILTER( d3d11Filter ) \ + ( ( D3D11_FILTER_TYPE ) \ + ( ( ( d3d11Filter ) >> D3D11_MIP_FILTER_SHIFT ) & D3D11_FILTER_TYPE_MASK ) ) +#define D3D11_DECODE_FILTER_REDUCTION( d3d11Filter ) \ + ( ( D3D11_FILTER_REDUCTION_TYPE ) \ + ( ( ( d3d11Filter ) >> D3D11_FILTER_REDUCTION_TYPE_SHIFT ) & D3D11_FILTER_REDUCTION_TYPE_MASK ) ) +#define D3D11_DECODE_IS_COMPARISON_FILTER( d3d11Filter ) \ + ( D3D11_DECODE_FILTER_REDUCTION( d3d11Filter ) == D3D11_FILTER_REDUCTION_TYPE_COMPARISON ) +#define D3D11_DECODE_IS_ANISOTROPIC_FILTER( d3d11Filter ) \ + ( ( ( d3d11Filter ) & D3D11_ANISOTROPIC_FILTERING_BIT ) && \ + ( D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER( d3d11Filter ) ) && \ + ( D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER( d3d11Filter ) ) && \ + ( D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER( d3d11Filter ) ) ) +typedef +enum D3D11_TEXTURE_ADDRESS_MODE + { + D3D11_TEXTURE_ADDRESS_WRAP = 1, + D3D11_TEXTURE_ADDRESS_MIRROR = 2, + D3D11_TEXTURE_ADDRESS_CLAMP = 3, + D3D11_TEXTURE_ADDRESS_BORDER = 4, + D3D11_TEXTURE_ADDRESS_MIRROR_ONCE = 5 + } D3D11_TEXTURE_ADDRESS_MODE; + +typedef struct D3D11_SAMPLER_DESC + { + D3D11_FILTER Filter; + D3D11_TEXTURE_ADDRESS_MODE AddressU; + D3D11_TEXTURE_ADDRESS_MODE AddressV; + D3D11_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D11_COMPARISON_FUNC ComparisonFunc; + FLOAT BorderColor[ 4 ]; + FLOAT MinLOD; + FLOAT MaxLOD; + } D3D11_SAMPLER_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC +{ + CD3D11_SAMPLER_DESC() = default; + explicit CD3D11_SAMPLER_DESC( const D3D11_SAMPLER_DESC& o ) : + D3D11_SAMPLER_DESC( o ) + {} + explicit CD3D11_SAMPLER_DESC( CD3D11_DEFAULT ) + { + Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR; + AddressU = D3D11_TEXTURE_ADDRESS_CLAMP; + AddressV = D3D11_TEXTURE_ADDRESS_CLAMP; + AddressW = D3D11_TEXTURE_ADDRESS_CLAMP; + MipLODBias = 0; + MaxAnisotropy = 1; + ComparisonFunc = D3D11_COMPARISON_NEVER; + BorderColor[ 0 ] = 1.0f; + BorderColor[ 1 ] = 1.0f; + BorderColor[ 2 ] = 1.0f; + BorderColor[ 3 ] = 1.0f; + MinLOD = -3.402823466e+38F; // -FLT_MAX + MaxLOD = 3.402823466e+38F; // FLT_MAX + } + explicit CD3D11_SAMPLER_DESC( + D3D11_FILTER filter, + D3D11_TEXTURE_ADDRESS_MODE addressU, + D3D11_TEXTURE_ADDRESS_MODE addressV, + D3D11_TEXTURE_ADDRESS_MODE addressW, + FLOAT mipLODBias, + UINT maxAnisotropy, + D3D11_COMPARISON_FUNC comparisonFunc, + _In_reads_opt_( 4 ) const FLOAT* borderColor, // RGBA + FLOAT minLOD, + FLOAT maxLOD ) + { + Filter = filter; + AddressU = addressU; + AddressV = addressV; + AddressW = addressW; + MipLODBias = mipLODBias; + MaxAnisotropy = maxAnisotropy; + ComparisonFunc = comparisonFunc; + const float defaultColor[ 4 ] = { 1.0f, 1.0f, 1.0f, 1.0f }; + if (!borderColor) borderColor = defaultColor; + BorderColor[ 0 ] = borderColor[ 0 ]; + BorderColor[ 1 ] = borderColor[ 1 ]; + BorderColor[ 2 ] = borderColor[ 2 ]; + BorderColor[ 3 ] = borderColor[ 3 ]; + MinLOD = minLOD; + MaxLOD = maxLOD; + } + ~CD3D11_SAMPLER_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0021_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0021_v0_0_s_ifspec; + +#ifndef __ID3D11SamplerState_INTERFACE_DEFINED__ +#define __ID3D11SamplerState_INTERFACE_DEFINED__ + +/* interface ID3D11SamplerState */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11SamplerState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("da6fea51-564c-4487-9810-f0d0f9b4e3a5") + ID3D11SamplerState : public ID3D11DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_SAMPLER_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11SamplerStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11SamplerState * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11SamplerState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11SamplerState * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11SamplerState * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11SamplerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11SamplerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11SamplerState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11SamplerState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11SamplerState * This, + /* [annotation] */ + _Out_ D3D11_SAMPLER_DESC *pDesc); + + END_INTERFACE + } ID3D11SamplerStateVtbl; + + interface ID3D11SamplerState + { + CONST_VTBL struct ID3D11SamplerStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11SamplerState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11SamplerState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11SamplerState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11SamplerState_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11SamplerState_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11SamplerState_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11SamplerState_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11SamplerState_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11SamplerState_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0022 */ +/* [local] */ + +typedef +enum D3D11_FORMAT_SUPPORT + { + D3D11_FORMAT_SUPPORT_BUFFER = 0x1, + D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x2, + D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x4, + D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x8, + D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x10, + D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x20, + D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x40, + D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x80, + D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x100, + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x200, + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x400, + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x800, + D3D11_FORMAT_SUPPORT_MIP = 0x1000, + D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x2000, + D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x4000, + D3D11_FORMAT_SUPPORT_BLENDABLE = 0x8000, + D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x10000, + D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x20000, + D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x40000, + D3D11_FORMAT_SUPPORT_DISPLAY = 0x80000, + D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x100000, + D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x200000, + D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x400000, + D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x800000, + D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x1000000, + D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x2000000, + D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x4000000, + D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x8000000, + D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000, + D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000, + D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000 + } D3D11_FORMAT_SUPPORT; + +typedef +enum D3D11_FORMAT_SUPPORT2 + { + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x1, + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x2, + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x4, + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x8, + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x10, + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x20, + D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x40, + D3D11_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x80, + D3D11_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x100, + D3D11_FORMAT_SUPPORT2_TILED = 0x200, + D3D11_FORMAT_SUPPORT2_SHAREABLE = 0x400, + D3D11_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x4000, + D3D11_FORMAT_SUPPORT2_DISPLAYABLE = 0x10000 + } D3D11_FORMAT_SUPPORT2; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0022_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0022_v0_0_s_ifspec; + +#ifndef __ID3D11Asynchronous_INTERFACE_DEFINED__ +#define __ID3D11Asynchronous_INTERFACE_DEFINED__ + +/* interface ID3D11Asynchronous */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Asynchronous; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4b35d0cd-1e15-4258-9c98-1b1333f6dd3b") + ID3D11Asynchronous : public ID3D11DeviceChild + { + public: + virtual UINT STDMETHODCALLTYPE GetDataSize( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11AsynchronousVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Asynchronous * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Asynchronous * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Asynchronous * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Asynchronous * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Asynchronous * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Asynchronous * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Asynchronous * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Asynchronous, GetDataSize) + UINT ( STDMETHODCALLTYPE *GetDataSize )( + ID3D11Asynchronous * This); + + END_INTERFACE + } ID3D11AsynchronousVtbl; + + interface ID3D11Asynchronous + { + CONST_VTBL struct ID3D11AsynchronousVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Asynchronous_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Asynchronous_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Asynchronous_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Asynchronous_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Asynchronous_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Asynchronous_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Asynchronous_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Asynchronous_GetDataSize(This) \ + ( (This)->lpVtbl -> GetDataSize(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Asynchronous_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0023 */ +/* [local] */ + +typedef +enum D3D11_ASYNC_GETDATA_FLAG + { + D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x1 + } D3D11_ASYNC_GETDATA_FLAG; + +typedef +enum D3D11_QUERY + { + D3D11_QUERY_EVENT = 0, + D3D11_QUERY_OCCLUSION = ( D3D11_QUERY_EVENT + 1 ) , + D3D11_QUERY_TIMESTAMP = ( D3D11_QUERY_OCCLUSION + 1 ) , + D3D11_QUERY_TIMESTAMP_DISJOINT = ( D3D11_QUERY_TIMESTAMP + 1 ) , + D3D11_QUERY_PIPELINE_STATISTICS = ( D3D11_QUERY_TIMESTAMP_DISJOINT + 1 ) , + D3D11_QUERY_OCCLUSION_PREDICATE = ( D3D11_QUERY_PIPELINE_STATISTICS + 1 ) , + D3D11_QUERY_SO_STATISTICS = ( D3D11_QUERY_OCCLUSION_PREDICATE + 1 ) , + D3D11_QUERY_SO_OVERFLOW_PREDICATE = ( D3D11_QUERY_SO_STATISTICS + 1 ) , + D3D11_QUERY_SO_STATISTICS_STREAM0 = ( D3D11_QUERY_SO_OVERFLOW_PREDICATE + 1 ) , + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0 = ( D3D11_QUERY_SO_STATISTICS_STREAM0 + 1 ) , + D3D11_QUERY_SO_STATISTICS_STREAM1 = ( D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0 + 1 ) , + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1 = ( D3D11_QUERY_SO_STATISTICS_STREAM1 + 1 ) , + D3D11_QUERY_SO_STATISTICS_STREAM2 = ( D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1 + 1 ) , + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2 = ( D3D11_QUERY_SO_STATISTICS_STREAM2 + 1 ) , + D3D11_QUERY_SO_STATISTICS_STREAM3 = ( D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2 + 1 ) , + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3 = ( D3D11_QUERY_SO_STATISTICS_STREAM3 + 1 ) + } D3D11_QUERY; + +typedef +enum D3D11_QUERY_MISC_FLAG + { + D3D11_QUERY_MISC_PREDICATEHINT = 0x1 + } D3D11_QUERY_MISC_FLAG; + +typedef struct D3D11_QUERY_DESC + { + D3D11_QUERY Query; + UINT MiscFlags; + } D3D11_QUERY_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC +{ + CD3D11_QUERY_DESC() = default; + explicit CD3D11_QUERY_DESC( const D3D11_QUERY_DESC& o ) : + D3D11_QUERY_DESC( o ) + {} + explicit CD3D11_QUERY_DESC( + D3D11_QUERY query, + UINT miscFlags = 0 ) + { + Query = query; + MiscFlags = miscFlags; + } + ~CD3D11_QUERY_DESC() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0023_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0023_v0_0_s_ifspec; + +#ifndef __ID3D11Query_INTERFACE_DEFINED__ +#define __ID3D11Query_INTERFACE_DEFINED__ + +/* interface ID3D11Query */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Query; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d6c00747-87b7-425e-b84d-44d108560afd") + ID3D11Query : public ID3D11Asynchronous + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_QUERY_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11QueryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Query * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Query * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Query * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Query * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Query * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Query * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Query * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Asynchronous, GetDataSize) + UINT ( STDMETHODCALLTYPE *GetDataSize )( + ID3D11Query * This); + + DECLSPEC_XFGVIRT(ID3D11Query, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11Query * This, + /* [annotation] */ + _Out_ D3D11_QUERY_DESC *pDesc); + + END_INTERFACE + } ID3D11QueryVtbl; + + interface ID3D11Query + { + CONST_VTBL struct ID3D11QueryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Query_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Query_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Query_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Query_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Query_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Query_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Query_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Query_GetDataSize(This) \ + ( (This)->lpVtbl -> GetDataSize(This) ) + + +#define ID3D11Query_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Query_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11Predicate_INTERFACE_DEFINED__ +#define __ID3D11Predicate_INTERFACE_DEFINED__ + +/* interface ID3D11Predicate */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Predicate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9eb576dd-9f77-4d86-81aa-8bab5fe490e2") + ID3D11Predicate : public ID3D11Query + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D11PredicateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Predicate * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Predicate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Predicate * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Predicate * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Predicate * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Predicate * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Predicate * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Asynchronous, GetDataSize) + UINT ( STDMETHODCALLTYPE *GetDataSize )( + ID3D11Predicate * This); + + DECLSPEC_XFGVIRT(ID3D11Query, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11Predicate * This, + /* [annotation] */ + _Out_ D3D11_QUERY_DESC *pDesc); + + END_INTERFACE + } ID3D11PredicateVtbl; + + interface ID3D11Predicate + { + CONST_VTBL struct ID3D11PredicateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Predicate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Predicate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Predicate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Predicate_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Predicate_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Predicate_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Predicate_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Predicate_GetDataSize(This) \ + ( (This)->lpVtbl -> GetDataSize(This) ) + + +#define ID3D11Predicate_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Predicate_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0025 */ +/* [local] */ + +typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT + { + UINT64 Frequency; + BOOL Disjoint; + } D3D11_QUERY_DATA_TIMESTAMP_DISJOINT; + +typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS + { + UINT64 IAVertices; + UINT64 IAPrimitives; + UINT64 VSInvocations; + UINT64 GSInvocations; + UINT64 GSPrimitives; + UINT64 CInvocations; + UINT64 CPrimitives; + UINT64 PSInvocations; + UINT64 HSInvocations; + UINT64 DSInvocations; + UINT64 CSInvocations; + } D3D11_QUERY_DATA_PIPELINE_STATISTICS; + +typedef struct D3D11_QUERY_DATA_SO_STATISTICS + { + UINT64 NumPrimitivesWritten; + UINT64 PrimitivesStorageNeeded; + } D3D11_QUERY_DATA_SO_STATISTICS; + +typedef +enum D3D11_COUNTER + { + D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000 + } D3D11_COUNTER; + +typedef +enum D3D11_COUNTER_TYPE + { + D3D11_COUNTER_TYPE_FLOAT32 = 0, + D3D11_COUNTER_TYPE_UINT16 = ( D3D11_COUNTER_TYPE_FLOAT32 + 1 ) , + D3D11_COUNTER_TYPE_UINT32 = ( D3D11_COUNTER_TYPE_UINT16 + 1 ) , + D3D11_COUNTER_TYPE_UINT64 = ( D3D11_COUNTER_TYPE_UINT32 + 1 ) + } D3D11_COUNTER_TYPE; + +typedef struct D3D11_COUNTER_DESC + { + D3D11_COUNTER Counter; + UINT MiscFlags; + } D3D11_COUNTER_DESC; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_COUNTER_DESC : public D3D11_COUNTER_DESC +{ + CD3D11_COUNTER_DESC() = default; + explicit CD3D11_COUNTER_DESC( const D3D11_COUNTER_DESC& o ) : + D3D11_COUNTER_DESC( o ) + {} + explicit CD3D11_COUNTER_DESC( + D3D11_COUNTER counter, + UINT miscFlags = 0 ) + { + Counter = counter; + MiscFlags = miscFlags; + } + ~CD3D11_COUNTER_DESC() {} +}; +extern "C"{ +#endif +typedef struct D3D11_COUNTER_INFO + { + D3D11_COUNTER LastDeviceDependentCounter; + UINT NumSimultaneousCounters; + UINT8 NumDetectableParallelUnits; + } D3D11_COUNTER_INFO; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0025_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0025_v0_0_s_ifspec; + +#ifndef __ID3D11Counter_INTERFACE_DEFINED__ +#define __ID3D11Counter_INTERFACE_DEFINED__ + +/* interface ID3D11Counter */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Counter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6e8c49fb-a371-4770-b440-29086022b741") + ID3D11Counter : public ID3D11Asynchronous + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_COUNTER_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11CounterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Counter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Counter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Counter * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Counter * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Counter * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Counter * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Counter * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Asynchronous, GetDataSize) + UINT ( STDMETHODCALLTYPE *GetDataSize )( + ID3D11Counter * This); + + DECLSPEC_XFGVIRT(ID3D11Counter, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11Counter * This, + /* [annotation] */ + _Out_ D3D11_COUNTER_DESC *pDesc); + + END_INTERFACE + } ID3D11CounterVtbl; + + interface ID3D11Counter + { + CONST_VTBL struct ID3D11CounterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Counter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Counter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Counter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Counter_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Counter_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Counter_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Counter_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Counter_GetDataSize(This) \ + ( (This)->lpVtbl -> GetDataSize(This) ) + + +#define ID3D11Counter_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Counter_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0026 */ +/* [local] */ + +typedef +enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS + { + D3D11_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff, + D3D11_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe + } D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS; + +typedef +enum D3D11_DEVICE_CONTEXT_TYPE + { + D3D11_DEVICE_CONTEXT_IMMEDIATE = 0, + D3D11_DEVICE_CONTEXT_DEFERRED = ( D3D11_DEVICE_CONTEXT_IMMEDIATE + 1 ) + } D3D11_DEVICE_CONTEXT_TYPE; + +typedef struct D3D11_CLASS_INSTANCE_DESC + { + UINT InstanceId; + UINT InstanceIndex; + UINT TypeId; + UINT ConstantBuffer; + UINT BaseConstantBufferOffset; + UINT BaseTexture; + UINT BaseSampler; + BOOL Created; + } D3D11_CLASS_INSTANCE_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0026_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0026_v0_0_s_ifspec; + +#ifndef __ID3D11ClassInstance_INTERFACE_DEFINED__ +#define __ID3D11ClassInstance_INTERFACE_DEFINED__ + +/* interface ID3D11ClassInstance */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11ClassInstance; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a6cd7faa-b0b7-4a2f-9436-8662a65797cb") + ID3D11ClassInstance : public ID3D11DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetClassLinkage( + /* [annotation] */ + _Outptr_ ID3D11ClassLinkage **ppLinkage) = 0; + + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_CLASS_INSTANCE_DESC *pDesc) = 0; + + virtual void STDMETHODCALLTYPE GetInstanceName( + /* [annotation] */ + _Out_writes_opt_(*pBufferLength) LPSTR pInstanceName, + /* [annotation] */ + _Inout_ SIZE_T *pBufferLength) = 0; + + virtual void STDMETHODCALLTYPE GetTypeName( + /* [annotation] */ + _Out_writes_opt_(*pBufferLength) LPSTR pTypeName, + /* [annotation] */ + _Inout_ SIZE_T *pBufferLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11ClassInstanceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11ClassInstance * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11ClassInstance * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11ClassInstance * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11ClassInstance * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11ClassInstance * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11ClassInstance * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11ClassInstance * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11ClassInstance, GetClassLinkage) + void ( STDMETHODCALLTYPE *GetClassLinkage )( + ID3D11ClassInstance * This, + /* [annotation] */ + _Outptr_ ID3D11ClassLinkage **ppLinkage); + + DECLSPEC_XFGVIRT(ID3D11ClassInstance, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11ClassInstance * This, + /* [annotation] */ + _Out_ D3D11_CLASS_INSTANCE_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11ClassInstance, GetInstanceName) + void ( STDMETHODCALLTYPE *GetInstanceName )( + ID3D11ClassInstance * This, + /* [annotation] */ + _Out_writes_opt_(*pBufferLength) LPSTR pInstanceName, + /* [annotation] */ + _Inout_ SIZE_T *pBufferLength); + + DECLSPEC_XFGVIRT(ID3D11ClassInstance, GetTypeName) + void ( STDMETHODCALLTYPE *GetTypeName )( + ID3D11ClassInstance * This, + /* [annotation] */ + _Out_writes_opt_(*pBufferLength) LPSTR pTypeName, + /* [annotation] */ + _Inout_ SIZE_T *pBufferLength); + + END_INTERFACE + } ID3D11ClassInstanceVtbl; + + interface ID3D11ClassInstance + { + CONST_VTBL struct ID3D11ClassInstanceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11ClassInstance_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11ClassInstance_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11ClassInstance_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11ClassInstance_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11ClassInstance_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11ClassInstance_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11ClassInstance_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11ClassInstance_GetClassLinkage(This,ppLinkage) \ + ( (This)->lpVtbl -> GetClassLinkage(This,ppLinkage) ) + +#define ID3D11ClassInstance_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#define ID3D11ClassInstance_GetInstanceName(This,pInstanceName,pBufferLength) \ + ( (This)->lpVtbl -> GetInstanceName(This,pInstanceName,pBufferLength) ) + +#define ID3D11ClassInstance_GetTypeName(This,pTypeName,pBufferLength) \ + ( (This)->lpVtbl -> GetTypeName(This,pTypeName,pBufferLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11ClassInstance_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11ClassLinkage_INTERFACE_DEFINED__ +#define __ID3D11ClassLinkage_INTERFACE_DEFINED__ + +/* interface ID3D11ClassLinkage */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11ClassLinkage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddf57cba-9543-46e4-a12b-f207a0fe7fed") + ID3D11ClassLinkage : public ID3D11DeviceChild + { + public: + virtual HRESULT STDMETHODCALLTYPE GetClassInstance( + /* [annotation] */ + _In_ LPCSTR pClassInstanceName, + /* [annotation] */ + _In_ UINT InstanceIndex, + /* [annotation] */ + _COM_Outptr_ ID3D11ClassInstance **ppInstance) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateClassInstance( + /* [annotation] */ + _In_ LPCSTR pClassTypeName, + /* [annotation] */ + _In_ UINT ConstantBufferOffset, + /* [annotation] */ + _In_ UINT ConstantVectorOffset, + /* [annotation] */ + _In_ UINT TextureOffset, + /* [annotation] */ + _In_ UINT SamplerOffset, + /* [annotation] */ + _COM_Outptr_ ID3D11ClassInstance **ppInstance) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11ClassLinkageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11ClassLinkage * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11ClassLinkage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11ClassLinkage * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11ClassLinkage * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11ClassLinkage * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11ClassLinkage * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11ClassLinkage * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11ClassLinkage, GetClassInstance) + HRESULT ( STDMETHODCALLTYPE *GetClassInstance )( + ID3D11ClassLinkage * This, + /* [annotation] */ + _In_ LPCSTR pClassInstanceName, + /* [annotation] */ + _In_ UINT InstanceIndex, + /* [annotation] */ + _COM_Outptr_ ID3D11ClassInstance **ppInstance); + + DECLSPEC_XFGVIRT(ID3D11ClassLinkage, CreateClassInstance) + HRESULT ( STDMETHODCALLTYPE *CreateClassInstance )( + ID3D11ClassLinkage * This, + /* [annotation] */ + _In_ LPCSTR pClassTypeName, + /* [annotation] */ + _In_ UINT ConstantBufferOffset, + /* [annotation] */ + _In_ UINT ConstantVectorOffset, + /* [annotation] */ + _In_ UINT TextureOffset, + /* [annotation] */ + _In_ UINT SamplerOffset, + /* [annotation] */ + _COM_Outptr_ ID3D11ClassInstance **ppInstance); + + END_INTERFACE + } ID3D11ClassLinkageVtbl; + + interface ID3D11ClassLinkage + { + CONST_VTBL struct ID3D11ClassLinkageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11ClassLinkage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11ClassLinkage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11ClassLinkage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11ClassLinkage_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11ClassLinkage_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11ClassLinkage_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11ClassLinkage_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11ClassLinkage_GetClassInstance(This,pClassInstanceName,InstanceIndex,ppInstance) \ + ( (This)->lpVtbl -> GetClassInstance(This,pClassInstanceName,InstanceIndex,ppInstance) ) + +#define ID3D11ClassLinkage_CreateClassInstance(This,pClassTypeName,ConstantBufferOffset,ConstantVectorOffset,TextureOffset,SamplerOffset,ppInstance) \ + ( (This)->lpVtbl -> CreateClassInstance(This,pClassTypeName,ConstantBufferOffset,ConstantVectorOffset,TextureOffset,SamplerOffset,ppInstance) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11ClassLinkage_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11CommandList_INTERFACE_DEFINED__ +#define __ID3D11CommandList_INTERFACE_DEFINED__ + +/* interface ID3D11CommandList */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11CommandList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a24bc4d1-769e-43f7-8013-98ff566c18e2") + ID3D11CommandList : public ID3D11DeviceChild + { + public: + virtual UINT STDMETHODCALLTYPE GetContextFlags( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11CommandListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11CommandList * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11CommandList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11CommandList * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11CommandList * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11CommandList * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11CommandList * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11CommandList * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11CommandList, GetContextFlags) + UINT ( STDMETHODCALLTYPE *GetContextFlags )( + ID3D11CommandList * This); + + END_INTERFACE + } ID3D11CommandListVtbl; + + interface ID3D11CommandList + { + CONST_VTBL struct ID3D11CommandListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11CommandList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11CommandList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11CommandList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11CommandList_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11CommandList_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11CommandList_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11CommandList_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11CommandList_GetContextFlags(This) \ + ( (This)->lpVtbl -> GetContextFlags(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11CommandList_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0029 */ +/* [local] */ + +typedef +enum D3D11_FEATURE + { + D3D11_FEATURE_THREADING = 0, + D3D11_FEATURE_DOUBLES = ( D3D11_FEATURE_THREADING + 1 ) , + D3D11_FEATURE_FORMAT_SUPPORT = ( D3D11_FEATURE_DOUBLES + 1 ) , + D3D11_FEATURE_FORMAT_SUPPORT2 = ( D3D11_FEATURE_FORMAT_SUPPORT + 1 ) , + D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS = ( D3D11_FEATURE_FORMAT_SUPPORT2 + 1 ) , + D3D11_FEATURE_D3D11_OPTIONS = ( D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS + 1 ) , + D3D11_FEATURE_ARCHITECTURE_INFO = ( D3D11_FEATURE_D3D11_OPTIONS + 1 ) , + D3D11_FEATURE_D3D9_OPTIONS = ( D3D11_FEATURE_ARCHITECTURE_INFO + 1 ) , + D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT = ( D3D11_FEATURE_D3D9_OPTIONS + 1 ) , + D3D11_FEATURE_D3D9_SHADOW_SUPPORT = ( D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT + 1 ) , + D3D11_FEATURE_D3D11_OPTIONS1 = ( D3D11_FEATURE_D3D9_SHADOW_SUPPORT + 1 ) , + D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT = ( D3D11_FEATURE_D3D11_OPTIONS1 + 1 ) , + D3D11_FEATURE_MARKER_SUPPORT = ( D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT + 1 ) , + D3D11_FEATURE_D3D9_OPTIONS1 = ( D3D11_FEATURE_MARKER_SUPPORT + 1 ) , + D3D11_FEATURE_D3D11_OPTIONS2 = ( D3D11_FEATURE_D3D9_OPTIONS1 + 1 ) , + D3D11_FEATURE_D3D11_OPTIONS3 = ( D3D11_FEATURE_D3D11_OPTIONS2 + 1 ) , + D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT = ( D3D11_FEATURE_D3D11_OPTIONS3 + 1 ) , + D3D11_FEATURE_D3D11_OPTIONS4 = ( D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT + 1 ) , + D3D11_FEATURE_SHADER_CACHE = ( D3D11_FEATURE_D3D11_OPTIONS4 + 1 ) , + D3D11_FEATURE_D3D11_OPTIONS5 = ( D3D11_FEATURE_SHADER_CACHE + 1 ) , + D3D11_FEATURE_DISPLAYABLE = ( D3D11_FEATURE_D3D11_OPTIONS5 + 1 ) , + D3D11_FEATURE_D3D11_OPTIONS6 = ( D3D11_FEATURE_DISPLAYABLE + 1 ) + } D3D11_FEATURE; + +typedef struct D3D11_FEATURE_DATA_THREADING + { + BOOL DriverConcurrentCreates; + BOOL DriverCommandLists; + } D3D11_FEATURE_DATA_THREADING; + +typedef struct D3D11_FEATURE_DATA_DOUBLES + { + BOOL DoublePrecisionFloatShaderOps; + } D3D11_FEATURE_DATA_DOUBLES; + +typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT + { + DXGI_FORMAT InFormat; + UINT OutFormatSupport; + } D3D11_FEATURE_DATA_FORMAT_SUPPORT; + +typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2 + { + DXGI_FORMAT InFormat; + UINT OutFormatSupport2; + } D3D11_FEATURE_DATA_FORMAT_SUPPORT2; + +typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS + { + BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x; + } D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS; + +// ============================================================================= +// In the D3D11_FEATURE_DATA_D3D11_OPTIONS struct below, +// the following groupings of capabilities will always be set identically. +// That is, all the BOOLs in a grouping will be TRUE or FALSE together. +// +// Group: DiscardAPIsSeenByDriver, FlagsForUpdateAndCopySeenByDriver +// +// Group: ClearView, CopyWithOverlap, ConstantBufferPartialUpdate +// ConstantBufferOffsetting, MapNoOverwriteOnDynamicConstantBuffer +// +// Group: MapNoOverwriteOnDynamicBufferSRV, +// MultisampleRTVWithForcedSampleCountOne +// +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS + { + BOOL OutputMergerLogicOp; + BOOL UAVOnlyRenderingForcedSampleCount; + BOOL DiscardAPIsSeenByDriver; + BOOL FlagsForUpdateAndCopySeenByDriver; + BOOL ClearView; + BOOL CopyWithOverlap; + BOOL ConstantBufferPartialUpdate; + BOOL ConstantBufferOffsetting; + BOOL MapNoOverwriteOnDynamicConstantBuffer; + BOOL MapNoOverwriteOnDynamicBufferSRV; + BOOL MultisampleRTVWithForcedSampleCountOne; + BOOL SAD4ShaderInstructions; + BOOL ExtendedDoublesShaderInstructions; + BOOL ExtendedResourceSharing; + } D3D11_FEATURE_DATA_D3D11_OPTIONS; + +typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO + { + BOOL TileBasedDeferredRenderer; + } D3D11_FEATURE_DATA_ARCHITECTURE_INFO; + +typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS + { + BOOL FullNonPow2TextureSupport; + } D3D11_FEATURE_DATA_D3D9_OPTIONS; + +typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT + { + BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter; + } D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT; + +typedef +enum D3D11_SHADER_MIN_PRECISION_SUPPORT + { + D3D11_SHADER_MIN_PRECISION_10_BIT = 0x1, + D3D11_SHADER_MIN_PRECISION_16_BIT = 0x2 + } D3D11_SHADER_MIN_PRECISION_SUPPORT; + +typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT + { + UINT PixelShaderMinPrecision; + UINT AllOtherShaderStagesMinPrecision; + } D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT; + +typedef +enum D3D11_TILED_RESOURCES_TIER + { + D3D11_TILED_RESOURCES_NOT_SUPPORTED = 0, + D3D11_TILED_RESOURCES_TIER_1 = 1, + D3D11_TILED_RESOURCES_TIER_2 = 2, + D3D11_TILED_RESOURCES_TIER_3 = 3 + } D3D11_TILED_RESOURCES_TIER; + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1 + { + D3D11_TILED_RESOURCES_TIER TiledResourcesTier; + BOOL MinMaxFiltering; + BOOL ClearViewAlsoSupportsDepthOnlyFormats; + BOOL MapOnDefaultBuffers; + } D3D11_FEATURE_DATA_D3D11_OPTIONS1; + +typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT + { + BOOL SimpleInstancingSupported; + } D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT; + +typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT + { + BOOL Profile; + } D3D11_FEATURE_DATA_MARKER_SUPPORT; + +typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1 + { + BOOL FullNonPow2TextureSupported; + BOOL DepthAsTextureWithLessEqualComparisonFilterSupported; + BOOL SimpleInstancingSupported; + BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported; + } D3D11_FEATURE_DATA_D3D9_OPTIONS1; + +typedef +enum D3D11_CONSERVATIVE_RASTERIZATION_TIER + { + D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED = 0, + D3D11_CONSERVATIVE_RASTERIZATION_TIER_1 = 1, + D3D11_CONSERVATIVE_RASTERIZATION_TIER_2 = 2, + D3D11_CONSERVATIVE_RASTERIZATION_TIER_3 = 3 + } D3D11_CONSERVATIVE_RASTERIZATION_TIER; + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2 + { + BOOL PSSpecifiedStencilRefSupported; + BOOL TypedUAVLoadAdditionalFormats; + BOOL ROVsSupported; + D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier; + D3D11_TILED_RESOURCES_TIER TiledResourcesTier; + BOOL MapOnDefaultTextures; + BOOL StandardSwizzle; + BOOL UnifiedMemoryArchitecture; + } D3D11_FEATURE_DATA_D3D11_OPTIONS2; + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3 + { + BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer; + } D3D11_FEATURE_DATA_D3D11_OPTIONS3; + +typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT + { + UINT MaxGPUVirtualAddressBitsPerResource; + UINT MaxGPUVirtualAddressBitsPerProcess; + } D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT; + +typedef +enum D3D11_SHADER_CACHE_SUPPORT_FLAGS + { + D3D11_SHADER_CACHE_SUPPORT_NONE = 0, + D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x1, + D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x2 + } D3D11_SHADER_CACHE_SUPPORT_FLAGS; + +typedef struct D3D11_FEATURE_DATA_SHADER_CACHE + { + UINT SupportFlags; + } D3D11_FEATURE_DATA_SHADER_CACHE; + +typedef +enum D3D11_SHARED_RESOURCE_TIER + { + D3D11_SHARED_RESOURCE_TIER_0 = 0, + D3D11_SHARED_RESOURCE_TIER_1 = ( D3D11_SHARED_RESOURCE_TIER_0 + 1 ) , + D3D11_SHARED_RESOURCE_TIER_2 = ( D3D11_SHARED_RESOURCE_TIER_1 + 1 ) , + D3D11_SHARED_RESOURCE_TIER_3 = ( D3D11_SHARED_RESOURCE_TIER_2 + 1 ) + } D3D11_SHARED_RESOURCE_TIER; + +typedef struct D3D11_FEATURE_DATA_DISPLAYABLE + { + BOOL DisplayableTexture; + D3D11_SHARED_RESOURCE_TIER SharedResourceTier; + } D3D11_FEATURE_DATA_DISPLAYABLE; + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS5 + { + D3D11_SHARED_RESOURCE_TIER SharedResourceTier; + } D3D11_FEATURE_DATA_D3D11_OPTIONS5; + +typedef +enum D3D11_SHADER_ACCESS_RESTRICTED_RESOURCE_TIER + { + D3D11_SHADER_ACCESS_RESTRICTED_RESOURCE_TIER_0 = 0, + D3D11_SHADER_ACCESS_RESTRICTED_RESOURCE_TIER_1 = 1 + } D3D11_SHADER_ACCESS_RESTRICTED_RESOURCE_TIER; + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS6 + { + D3D11_SHADER_ACCESS_RESTRICTED_RESOURCE_TIER ShaderAccessRestrictedResourceTier; + } D3D11_FEATURE_DATA_D3D11_OPTIONS6; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0029_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0029_v0_0_s_ifspec; + +#ifndef __ID3D11DeviceContext_INTERFACE_DEFINED__ +#define __ID3D11DeviceContext_INTERFACE_DEFINED__ + +/* interface ID3D11DeviceContext */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11DeviceContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c0bfa96c-e089-44fb-8eaf-26f8796190da") + ID3D11DeviceContext : public ID3D11DeviceChild + { + public: + virtual void STDMETHODCALLTYPE VSSetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE PSSetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE PSSetShader( + /* [annotation] */ + _In_opt_ ID3D11PixelShader *pPixelShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE PSSetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE VSSetShader( + /* [annotation] */ + _In_opt_ ID3D11VertexShader *pVertexShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE DrawIndexed( + /* [annotation] */ + _In_ UINT IndexCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation) = 0; + + virtual void STDMETHODCALLTYPE Draw( + /* [annotation] */ + _In_ UINT VertexCount, + /* [annotation] */ + _In_ UINT StartVertexLocation) = 0; + + virtual HRESULT STDMETHODCALLTYPE Map( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D11_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_opt_ D3D11_MAPPED_SUBRESOURCE *pMappedResource) = 0; + + virtual void STDMETHODCALLTYPE Unmap( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource) = 0; + + virtual void STDMETHODCALLTYPE PSSetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE IASetInputLayout( + /* [annotation] */ + _In_opt_ ID3D11InputLayout *pInputLayout) = 0; + + virtual void STDMETHODCALLTYPE IASetVertexBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppVertexBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pStrides, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets) = 0; + + virtual void STDMETHODCALLTYPE IASetIndexBuffer( + /* [annotation] */ + _In_opt_ ID3D11Buffer *pIndexBuffer, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT Offset) = 0; + + virtual void STDMETHODCALLTYPE DrawIndexedInstanced( + /* [annotation] */ + _In_ UINT IndexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation) = 0; + + virtual void STDMETHODCALLTYPE DrawInstanced( + /* [annotation] */ + _In_ UINT VertexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation) = 0; + + virtual void STDMETHODCALLTYPE GSSetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE GSSetShader( + /* [annotation] */ + _In_opt_ ID3D11GeometryShader *pShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE IASetPrimitiveTopology( + /* [annotation] */ + _In_ D3D11_PRIMITIVE_TOPOLOGY Topology) = 0; + + virtual void STDMETHODCALLTYPE VSSetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE VSSetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE Begin( + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync) = 0; + + virtual void STDMETHODCALLTYPE End( + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetData( + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync, + /* [annotation] */ + _Out_writes_bytes_opt_( DataSize ) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags) = 0; + + virtual void STDMETHODCALLTYPE SetPredication( + /* [annotation] */ + _In_opt_ ID3D11Predicate *pPredicate, + /* [annotation] */ + _In_ BOOL PredicateValue) = 0; + + virtual void STDMETHODCALLTYPE GSSetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE GSSetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE OMSetRenderTargets( + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView) = 0; + + virtual void STDMETHODCALLTYPE OMSetRenderTargetsAndUnorderedAccessViews( + /* [annotation] */ + _In_ UINT NumRTVs, + /* [annotation] */ + _In_reads_opt_(NumRTVs) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_ UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts) = 0; + + virtual void STDMETHODCALLTYPE OMSetBlendState( + /* [annotation] */ + _In_opt_ ID3D11BlendState *pBlendState, + /* [annotation] */ + _In_opt_ const FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _In_ UINT SampleMask) = 0; + + virtual void STDMETHODCALLTYPE OMSetDepthStencilState( + /* [annotation] */ + _In_opt_ ID3D11DepthStencilState *pDepthStencilState, + /* [annotation] */ + _In_ UINT StencilRef) = 0; + + virtual void STDMETHODCALLTYPE SOSetTargets( + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppSOTargets, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets) = 0; + + virtual void STDMETHODCALLTYPE DrawAuto( void) = 0; + + virtual void STDMETHODCALLTYPE DrawIndexedInstancedIndirect( + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs) = 0; + + virtual void STDMETHODCALLTYPE DrawInstancedIndirect( + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs) = 0; + + virtual void STDMETHODCALLTYPE Dispatch( + /* [annotation] */ + _In_ UINT ThreadGroupCountX, + /* [annotation] */ + _In_ UINT ThreadGroupCountY, + /* [annotation] */ + _In_ UINT ThreadGroupCountZ) = 0; + + virtual void STDMETHODCALLTYPE DispatchIndirect( + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs) = 0; + + virtual void STDMETHODCALLTYPE RSSetState( + /* [annotation] */ + _In_opt_ ID3D11RasterizerState *pRasterizerState) = 0; + + virtual void STDMETHODCALLTYPE RSSetViewports( + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + /* [annotation] */ + _In_reads_opt_(NumViewports) const D3D11_VIEWPORT *pViewports) = 0; + + virtual void STDMETHODCALLTYPE RSSetScissorRects( + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects) = 0; + + virtual void STDMETHODCALLTYPE CopySubresourceRegion( + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox) = 0; + + virtual void STDMETHODCALLTYPE CopyResource( + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource) = 0; + + virtual void STDMETHODCALLTYPE UpdateSubresource( + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch) = 0; + + virtual void STDMETHODCALLTYPE CopyStructureCount( + /* [annotation] */ + _In_ ID3D11Buffer *pDstBuffer, + /* [annotation] */ + _In_ UINT DstAlignedByteOffset, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pSrcView) = 0; + + virtual void STDMETHODCALLTYPE ClearRenderTargetView( + /* [annotation] */ + _In_ ID3D11RenderTargetView *pRenderTargetView, + /* [annotation] */ + _In_ const FLOAT ColorRGBA[ 4 ]) = 0; + + virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewUint( + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const UINT Values[ 4 ]) = 0; + + virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewFloat( + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const FLOAT Values[ 4 ]) = 0; + + virtual void STDMETHODCALLTYPE ClearDepthStencilView( + /* [annotation] */ + _In_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_ UINT ClearFlags, + /* [annotation] */ + _In_ FLOAT Depth, + /* [annotation] */ + _In_ UINT8 Stencil) = 0; + + virtual void STDMETHODCALLTYPE GenerateMips( + /* [annotation] */ + _In_ ID3D11ShaderResourceView *pShaderResourceView) = 0; + + virtual void STDMETHODCALLTYPE SetResourceMinLOD( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + FLOAT MinLOD) = 0; + + virtual FLOAT STDMETHODCALLTYPE GetResourceMinLOD( + /* [annotation] */ + _In_ ID3D11Resource *pResource) = 0; + + virtual void STDMETHODCALLTYPE ResolveSubresource( + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_ DXGI_FORMAT Format) = 0; + + virtual void STDMETHODCALLTYPE ExecuteCommandList( + /* [annotation] */ + _In_ ID3D11CommandList *pCommandList, + BOOL RestoreContextState) = 0; + + virtual void STDMETHODCALLTYPE HSSetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE HSSetShader( + /* [annotation] */ + _In_opt_ ID3D11HullShader *pHullShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE HSSetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE HSSetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE DSSetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE DSSetShader( + /* [annotation] */ + _In_opt_ ID3D11DomainShader *pDomainShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE DSSetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE DSSetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE CSSetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE CSSetUnorderedAccessViews( + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts) = 0; + + virtual void STDMETHODCALLTYPE CSSetShader( + /* [annotation] */ + _In_opt_ ID3D11ComputeShader *pComputeShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE CSSetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE CSSetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE VSGetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE PSGetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE PSGetShader( + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11PixelShader **ppPixelShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE PSGetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE VSGetShader( + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11VertexShader **ppVertexShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE PSGetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE IAGetInputLayout( + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11InputLayout **ppInputLayout) = 0; + + virtual void STDMETHODCALLTYPE IAGetVertexBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppVertexBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pStrides, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets) = 0; + + virtual void STDMETHODCALLTYPE IAGetIndexBuffer( + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Buffer **pIndexBuffer, + /* [annotation] */ + _Out_opt_ DXGI_FORMAT *Format, + /* [annotation] */ + _Out_opt_ UINT *Offset) = 0; + + virtual void STDMETHODCALLTYPE GSGetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE GSGetShader( + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11GeometryShader **ppGeometryShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE IAGetPrimitiveTopology( + /* [annotation] */ + _Out_ D3D11_PRIMITIVE_TOPOLOGY *pTopology) = 0; + + virtual void STDMETHODCALLTYPE VSGetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE VSGetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE GetPredication( + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Predicate **ppPredicate, + /* [annotation] */ + _Out_opt_ BOOL *pPredicateValue) = 0; + + virtual void STDMETHODCALLTYPE GSGetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE GSGetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE OMGetRenderTargets( + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView) = 0; + + virtual void STDMETHODCALLTYPE OMGetRenderTargetsAndUnorderedAccessViews( + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumRTVs, + /* [annotation] */ + _Out_writes_opt_(NumRTVs) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews) = 0; + + virtual void STDMETHODCALLTYPE OMGetBlendState( + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11BlendState **ppBlendState, + /* [annotation] */ + _Out_opt_ FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _Out_opt_ UINT *pSampleMask) = 0; + + virtual void STDMETHODCALLTYPE OMGetDepthStencilState( + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilState **ppDepthStencilState, + /* [annotation] */ + _Out_opt_ UINT *pStencilRef) = 0; + + virtual void STDMETHODCALLTYPE SOGetTargets( + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppSOTargets) = 0; + + virtual void STDMETHODCALLTYPE RSGetState( + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11RasterizerState **ppRasterizerState) = 0; + + virtual void STDMETHODCALLTYPE RSGetViewports( + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumViewports, + /* [annotation] */ + _Out_writes_opt_(*pNumViewports) D3D11_VIEWPORT *pViewports) = 0; + + virtual void STDMETHODCALLTYPE RSGetScissorRects( + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumRects, + /* [annotation] */ + _Out_writes_opt_(*pNumRects) D3D11_RECT *pRects) = 0; + + virtual void STDMETHODCALLTYPE HSGetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE HSGetShader( + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11HullShader **ppHullShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE HSGetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE HSGetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE DSGetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE DSGetShader( + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11DomainShader **ppDomainShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE DSGetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE DSGetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE CSGetShaderResources( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews) = 0; + + virtual void STDMETHODCALLTYPE CSGetUnorderedAccessViews( + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews) = 0; + + virtual void STDMETHODCALLTYPE CSGetShader( + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11ComputeShader **ppComputeShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances) = 0; + + virtual void STDMETHODCALLTYPE CSGetSamplers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers) = 0; + + virtual void STDMETHODCALLTYPE CSGetConstantBuffers( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers) = 0; + + virtual void STDMETHODCALLTYPE ClearState( void) = 0; + + virtual void STDMETHODCALLTYPE Flush( void) = 0; + + virtual D3D11_DEVICE_CONTEXT_TYPE STDMETHODCALLTYPE GetType( void) = 0; + + virtual UINT STDMETHODCALLTYPE GetContextFlags( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE FinishCommandList( + BOOL RestoreDeferredContextState, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11CommandList **ppCommandList) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11DeviceContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11DeviceContext * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11DeviceContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11DeviceContext * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetConstantBuffers) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetShaderResources) + void ( STDMETHODCALLTYPE *PSSetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetShader) + void ( STDMETHODCALLTYPE *PSSetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11PixelShader *pPixelShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetSamplers) + void ( STDMETHODCALLTYPE *PSSetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetShader) + void ( STDMETHODCALLTYPE *VSSetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11VertexShader *pVertexShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexed) + void ( STDMETHODCALLTYPE *DrawIndexed )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ UINT IndexCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Draw) + void ( STDMETHODCALLTYPE *Draw )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ UINT VertexCount, + /* [annotation] */ + _In_ UINT StartVertexLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D11_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_opt_ D3D11_MAPPED_SUBRESOURCE *pMappedResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetConstantBuffers) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetInputLayout) + void ( STDMETHODCALLTYPE *IASetInputLayout )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11InputLayout *pInputLayout); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppVertexBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pStrides, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11Buffer *pIndexBuffer, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT Offset); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ UINT IndexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ UINT VertexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetConstantBuffers) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetShader) + void ( STDMETHODCALLTYPE *GSSetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11GeometryShader *pShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ D3D11_PRIMITIVE_TOPOLOGY Topology); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetShaderResources) + void ( STDMETHODCALLTYPE *VSSetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetSamplers) + void ( STDMETHODCALLTYPE *VSSetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Begin) + void ( STDMETHODCALLTYPE *Begin )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, End) + void ( STDMETHODCALLTYPE *End )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync, + /* [annotation] */ + _Out_writes_bytes_opt_( DataSize ) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11Predicate *pPredicate, + /* [annotation] */ + _In_ BOOL PredicateValue); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetShaderResources) + void ( STDMETHODCALLTYPE *GSSetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetSamplers) + void ( STDMETHODCALLTYPE *GSSetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetRenderTargetsAndUnorderedAccessViews) + void ( STDMETHODCALLTYPE *OMSetRenderTargetsAndUnorderedAccessViews )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ UINT NumRTVs, + /* [annotation] */ + _In_reads_opt_(NumRTVs) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_ UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetBlendState) + void ( STDMETHODCALLTYPE *OMSetBlendState )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11BlendState *pBlendState, + /* [annotation] */ + _In_opt_ const FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _In_ UINT SampleMask); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetDepthStencilState) + void ( STDMETHODCALLTYPE *OMSetDepthStencilState )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilState *pDepthStencilState, + /* [annotation] */ + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppSOTargets, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawAuto) + void ( STDMETHODCALLTYPE *DrawAuto )( + ID3D11DeviceContext * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexedInstancedIndirect) + void ( STDMETHODCALLTYPE *DrawIndexedInstancedIndirect )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawInstancedIndirect) + void ( STDMETHODCALLTYPE *DrawInstancedIndirect )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ UINT ThreadGroupCountX, + /* [annotation] */ + _In_ UINT ThreadGroupCountY, + /* [annotation] */ + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DispatchIndirect) + void ( STDMETHODCALLTYPE *DispatchIndirect )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetState) + void ( STDMETHODCALLTYPE *RSSetState )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11RasterizerState *pRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + /* [annotation] */ + _In_reads_opt_(NumViewports) const D3D11_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopySubresourceRegion) + void ( STDMETHODCALLTYPE *CopySubresourceRegion )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, UpdateSubresource) + void ( STDMETHODCALLTYPE *UpdateSubresource )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopyStructureCount) + void ( STDMETHODCALLTYPE *CopyStructureCount )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Buffer *pDstBuffer, + /* [annotation] */ + _In_ UINT DstAlignedByteOffset, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pSrcView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11RenderTargetView *pRenderTargetView, + /* [annotation] */ + _In_ const FLOAT ColorRGBA[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const UINT Values[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const FLOAT Values[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_ UINT ClearFlags, + /* [annotation] */ + _In_ FLOAT Depth, + /* [annotation] */ + _In_ UINT8 Stencil); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GenerateMips) + void ( STDMETHODCALLTYPE *GenerateMips )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11ShaderResourceView *pShaderResourceView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SetResourceMinLOD) + void ( STDMETHODCALLTYPE *SetResourceMinLOD )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + FLOAT MinLOD); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetResourceMinLOD) + FLOAT ( STDMETHODCALLTYPE *GetResourceMinLOD )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ExecuteCommandList) + void ( STDMETHODCALLTYPE *ExecuteCommandList )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_ ID3D11CommandList *pCommandList, + BOOL RestoreContextState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetShaderResources) + void ( STDMETHODCALLTYPE *HSSetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetShader) + void ( STDMETHODCALLTYPE *HSSetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11HullShader *pHullShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetSamplers) + void ( STDMETHODCALLTYPE *HSSetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetConstantBuffers) + void ( STDMETHODCALLTYPE *HSSetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetShaderResources) + void ( STDMETHODCALLTYPE *DSSetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetShader) + void ( STDMETHODCALLTYPE *DSSetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11DomainShader *pDomainShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetSamplers) + void ( STDMETHODCALLTYPE *DSSetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetConstantBuffers) + void ( STDMETHODCALLTYPE *DSSetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetShaderResources) + void ( STDMETHODCALLTYPE *CSSetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetUnorderedAccessViews) + void ( STDMETHODCALLTYPE *CSSetUnorderedAccessViews )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetShader) + void ( STDMETHODCALLTYPE *CSSetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_opt_ ID3D11ComputeShader *pComputeShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetSamplers) + void ( STDMETHODCALLTYPE *CSSetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetConstantBuffers) + void ( STDMETHODCALLTYPE *CSSetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetConstantBuffers) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetShaderResources) + void ( STDMETHODCALLTYPE *PSGetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetShader) + void ( STDMETHODCALLTYPE *PSGetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11PixelShader **ppPixelShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetSamplers) + void ( STDMETHODCALLTYPE *PSGetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetShader) + void ( STDMETHODCALLTYPE *VSGetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11VertexShader **ppVertexShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetConstantBuffers) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetInputLayout) + void ( STDMETHODCALLTYPE *IAGetInputLayout )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetVertexBuffers) + void ( STDMETHODCALLTYPE *IAGetVertexBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppVertexBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pStrides, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetIndexBuffer) + void ( STDMETHODCALLTYPE *IAGetIndexBuffer )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Buffer **pIndexBuffer, + /* [annotation] */ + _Out_opt_ DXGI_FORMAT *Format, + /* [annotation] */ + _Out_opt_ UINT *Offset); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetConstantBuffers) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetShader) + void ( STDMETHODCALLTYPE *GSGetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11GeometryShader **ppGeometryShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IAGetPrimitiveTopology )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Out_ D3D11_PRIMITIVE_TOPOLOGY *pTopology); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetShaderResources) + void ( STDMETHODCALLTYPE *VSGetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetSamplers) + void ( STDMETHODCALLTYPE *VSGetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetPredication) + void ( STDMETHODCALLTYPE *GetPredication )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Predicate **ppPredicate, + /* [annotation] */ + _Out_opt_ BOOL *pPredicateValue); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetShaderResources) + void ( STDMETHODCALLTYPE *GSGetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetSamplers) + void ( STDMETHODCALLTYPE *GSGetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetRenderTargets) + void ( STDMETHODCALLTYPE *OMGetRenderTargets )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetRenderTargetsAndUnorderedAccessViews) + void ( STDMETHODCALLTYPE *OMGetRenderTargetsAndUnorderedAccessViews )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumRTVs, + /* [annotation] */ + _Out_writes_opt_(NumRTVs) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetBlendState) + void ( STDMETHODCALLTYPE *OMGetBlendState )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11BlendState **ppBlendState, + /* [annotation] */ + _Out_opt_ FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _Out_opt_ UINT *pSampleMask); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetDepthStencilState) + void ( STDMETHODCALLTYPE *OMGetDepthStencilState )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilState **ppDepthStencilState, + /* [annotation] */ + _Out_opt_ UINT *pStencilRef); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SOGetTargets) + void ( STDMETHODCALLTYPE *SOGetTargets )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppSOTargets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetState) + void ( STDMETHODCALLTYPE *RSGetState )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetViewports) + void ( STDMETHODCALLTYPE *RSGetViewports )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumViewports, + /* [annotation] */ + _Out_writes_opt_(*pNumViewports) D3D11_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetScissorRects) + void ( STDMETHODCALLTYPE *RSGetScissorRects )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumRects, + /* [annotation] */ + _Out_writes_opt_(*pNumRects) D3D11_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetShaderResources) + void ( STDMETHODCALLTYPE *HSGetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetShader) + void ( STDMETHODCALLTYPE *HSGetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11HullShader **ppHullShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetSamplers) + void ( STDMETHODCALLTYPE *HSGetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetConstantBuffers) + void ( STDMETHODCALLTYPE *HSGetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetShaderResources) + void ( STDMETHODCALLTYPE *DSGetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetShader) + void ( STDMETHODCALLTYPE *DSGetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11DomainShader **ppDomainShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetSamplers) + void ( STDMETHODCALLTYPE *DSGetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetConstantBuffers) + void ( STDMETHODCALLTYPE *DSGetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetShaderResources) + void ( STDMETHODCALLTYPE *CSGetShaderResources )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetUnorderedAccessViews) + void ( STDMETHODCALLTYPE *CSGetUnorderedAccessViews )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetShader) + void ( STDMETHODCALLTYPE *CSGetShader )( + ID3D11DeviceContext * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11ComputeShader **ppComputeShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetSamplers) + void ( STDMETHODCALLTYPE *CSGetSamplers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetConstantBuffers) + void ( STDMETHODCALLTYPE *CSGetConstantBuffers )( + ID3D11DeviceContext * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D11DeviceContext * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Flush) + void ( STDMETHODCALLTYPE *Flush )( + ID3D11DeviceContext * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetType) + D3D11_DEVICE_CONTEXT_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D11DeviceContext * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetContextFlags) + UINT ( STDMETHODCALLTYPE *GetContextFlags )( + ID3D11DeviceContext * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, FinishCommandList) + HRESULT ( STDMETHODCALLTYPE *FinishCommandList )( + ID3D11DeviceContext * This, + BOOL RestoreDeferredContextState, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11CommandList **ppCommandList); + + END_INTERFACE + } ID3D11DeviceContextVtbl; + + interface ID3D11DeviceContext + { + CONST_VTBL struct ID3D11DeviceContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11DeviceContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11DeviceContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11DeviceContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11DeviceContext_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11DeviceContext_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11DeviceContext_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11DeviceContext_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11DeviceContext_VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext_PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext_DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) \ + ( (This)->lpVtbl -> DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) ) + +#define ID3D11DeviceContext_Draw(This,VertexCount,StartVertexLocation) \ + ( (This)->lpVtbl -> Draw(This,VertexCount,StartVertexLocation) ) + +#define ID3D11DeviceContext_Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) \ + ( (This)->lpVtbl -> Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) ) + +#define ID3D11DeviceContext_Unmap(This,pResource,Subresource) \ + ( (This)->lpVtbl -> Unmap(This,pResource,Subresource) ) + +#define ID3D11DeviceContext_PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_IASetInputLayout(This,pInputLayout) \ + ( (This)->lpVtbl -> IASetInputLayout(This,pInputLayout) ) + +#define ID3D11DeviceContext_IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D11DeviceContext_IASetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D11DeviceContext_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D11DeviceContext_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D11DeviceContext_GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_GSSetShader(This,pShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> GSSetShader(This,pShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext_IASetPrimitiveTopology(This,Topology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,Topology) ) + +#define ID3D11DeviceContext_VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_Begin(This,pAsync) \ + ( (This)->lpVtbl -> Begin(This,pAsync) ) + +#define ID3D11DeviceContext_End(This,pAsync) \ + ( (This)->lpVtbl -> End(This,pAsync) ) + +#define ID3D11DeviceContext_GetData(This,pAsync,pData,DataSize,GetDataFlags) \ + ( (This)->lpVtbl -> GetData(This,pAsync,pData,DataSize,GetDataFlags) ) + +#define ID3D11DeviceContext_SetPredication(This,pPredicate,PredicateValue) \ + ( (This)->lpVtbl -> SetPredication(This,pPredicate,PredicateValue) ) + +#define ID3D11DeviceContext_GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) ) + +#define ID3D11DeviceContext_OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \ + ( (This)->lpVtbl -> OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) ) + +#define ID3D11DeviceContext_OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) \ + ( (This)->lpVtbl -> OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) ) + +#define ID3D11DeviceContext_OMSetDepthStencilState(This,pDepthStencilState,StencilRef) \ + ( (This)->lpVtbl -> OMSetDepthStencilState(This,pDepthStencilState,StencilRef) ) + +#define ID3D11DeviceContext_SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) \ + ( (This)->lpVtbl -> SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) ) + +#define ID3D11DeviceContext_DrawAuto(This) \ + ( (This)->lpVtbl -> DrawAuto(This) ) + +#define ID3D11DeviceContext_DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext_DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D11DeviceContext_DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext_RSSetState(This,pRasterizerState) \ + ( (This)->lpVtbl -> RSSetState(This,pRasterizerState) ) + +#define ID3D11DeviceContext_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D11DeviceContext_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D11DeviceContext_CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) ) + +#define ID3D11DeviceContext_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D11DeviceContext_UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D11DeviceContext_CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) \ + ( (This)->lpVtbl -> CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) ) + +#define ID3D11DeviceContext_ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) ) + +#define ID3D11DeviceContext_ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) ) + +#define ID3D11DeviceContext_ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) ) + +#define ID3D11DeviceContext_ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) ) + +#define ID3D11DeviceContext_GenerateMips(This,pShaderResourceView) \ + ( (This)->lpVtbl -> GenerateMips(This,pShaderResourceView) ) + +#define ID3D11DeviceContext_SetResourceMinLOD(This,pResource,MinLOD) \ + ( (This)->lpVtbl -> SetResourceMinLOD(This,pResource,MinLOD) ) + +#define ID3D11DeviceContext_GetResourceMinLOD(This,pResource) \ + ( (This)->lpVtbl -> GetResourceMinLOD(This,pResource) ) + +#define ID3D11DeviceContext_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D11DeviceContext_ExecuteCommandList(This,pCommandList,RestoreContextState) \ + ( (This)->lpVtbl -> ExecuteCommandList(This,pCommandList,RestoreContextState) ) + +#define ID3D11DeviceContext_HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext_HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext_DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \ + ( (This)->lpVtbl -> CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) ) + +#define ID3D11DeviceContext_CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext_CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext_PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext_PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_IAGetInputLayout(This,ppInputLayout) \ + ( (This)->lpVtbl -> IAGetInputLayout(This,ppInputLayout) ) + +#define ID3D11DeviceContext_IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D11DeviceContext_IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D11DeviceContext_GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext_IAGetPrimitiveTopology(This,pTopology) \ + ( (This)->lpVtbl -> IAGetPrimitiveTopology(This,pTopology) ) + +#define ID3D11DeviceContext_VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_GetPredication(This,ppPredicate,pPredicateValue) \ + ( (This)->lpVtbl -> GetPredication(This,ppPredicate,pPredicateValue) ) + +#define ID3D11DeviceContext_GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) \ + ( (This)->lpVtbl -> OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) ) + +#define ID3D11DeviceContext_OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) \ + ( (This)->lpVtbl -> OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) ) + +#define ID3D11DeviceContext_OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) \ + ( (This)->lpVtbl -> OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) ) + +#define ID3D11DeviceContext_OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) \ + ( (This)->lpVtbl -> OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) ) + +#define ID3D11DeviceContext_SOGetTargets(This,NumBuffers,ppSOTargets) \ + ( (This)->lpVtbl -> SOGetTargets(This,NumBuffers,ppSOTargets) ) + +#define ID3D11DeviceContext_RSGetState(This,ppRasterizerState) \ + ( (This)->lpVtbl -> RSGetState(This,ppRasterizerState) ) + +#define ID3D11DeviceContext_RSGetViewports(This,pNumViewports,pViewports) \ + ( (This)->lpVtbl -> RSGetViewports(This,pNumViewports,pViewports) ) + +#define ID3D11DeviceContext_RSGetScissorRects(This,pNumRects,pRects) \ + ( (This)->lpVtbl -> RSGetScissorRects(This,pNumRects,pRects) ) + +#define ID3D11DeviceContext_HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext_HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext_DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext_CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) \ + ( (This)->lpVtbl -> CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) ) + +#define ID3D11DeviceContext_CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext_CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext_CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D11DeviceContext_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + +#define ID3D11DeviceContext_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + +#define ID3D11DeviceContext_GetContextFlags(This) \ + ( (This)->lpVtbl -> GetContextFlags(This) ) + +#define ID3D11DeviceContext_FinishCommandList(This,RestoreDeferredContextState,ppCommandList) \ + ( (This)->lpVtbl -> FinishCommandList(This,RestoreDeferredContextState,ppCommandList) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11DeviceContext_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0030 */ +/* [local] */ + +#if !defined( D3D11_VIDEO_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_VIDEO_DEFAULT {}; +extern const DECLSPEC_SELECTANY CD3D11_VIDEO_DEFAULT D3D11_VIDEO_DEFAULT; +extern "C"{ +#endif + + +#if !defined(APP_DEPRECATED_HRESULT) && !defined(APP_DEPRECATED_HRESULT_TYPEDEF) +#define APP_DEPRECATED_HRESULT_TYPEDEF +typedef HRESULT APP_DEPRECATED_HRESULT; + +#endif +DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_MOCOMP, 0xe6a9f44b, 0x61b0, 0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66); +DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_IDCT, 0xbf22ad00, 0x03ea, 0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e); +DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_VLD, 0xee27417f, 0x5e28, 0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9); +DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG1_VLD, 0x6f3ec719, 0x3735, 0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16); +DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2and1_VLD, 0x86695f12, 0x340e, 0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60); +DEFINE_GUID(D3D11_DECODER_PROFILE_H264_MOCOMP_NOFGT, 0x1b81be64, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_H264_MOCOMP_FGT, 0x1b81be65, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_H264_IDCT_NOFGT, 0x1b81be66, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_H264_IDCT_FGT, 0x1b81be67, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_NOFGT, 0x1b81be68, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_FGT, 0x1b81be69, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_WITHFMOASO_NOFGT, 0xd5f04ff9, 0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd); +DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_STEREO_PROGRESSIVE_NOFGT, 0xd79be8da, 0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d); +DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_STEREO_NOFGT, 0xf9aaccbb, 0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52); +DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_MULTIVIEW_NOFGT, 0x705b9d82, 0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c); +DEFINE_GUID(D3D11_DECODER_PROFILE_WMV8_POSTPROC, 0x1b81be80, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_WMV8_MOCOMP, 0x1b81be81, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_POSTPROC, 0x1b81be90, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_MOCOMP, 0x1b81be91, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_IDCT, 0x1b81be94, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_POSTPROC, 0x1b81beA0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_MOCOMP, 0x1b81beA1, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_IDCT, 0x1b81beA2, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_VLD, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_D2010, 0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_SIMPLE, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19); +DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_NOGMC, 0xed418a9f, 0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e); +DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_GMC, 0xab998b5b, 0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN, 0x5b11d51b, 0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10, 0x107af0e0, 0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MONOCHROME, 0x0685b993, 0x3d8c, 0x43a0, 0x8b, 0x28, 0xd7, 0x4c, 0x2d, 0x68, 0x99, 0xa4); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MONOCHROME10, 0x142a1d0f, 0x69dd, 0x4ec9, 0x85, 0x91, 0xb1, 0x2f, 0xfc, 0xb9, 0x1a, 0x29); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN12, 0x1a72925f, 0x0c2c, 0x4f15, 0x96, 0xfb, 0xb1, 0x7d, 0x14, 0x73, 0x60, 0x3f); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10_422, 0x0bac4fe5, 0x1532, 0x4429, 0xa8, 0x54, 0xf8, 0x4d, 0xe0, 0x49, 0x53, 0xdb); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN12_422, 0x55bcac81, 0xf311, 0x4093, 0xa7, 0xd0, 0x1c, 0xbc, 0x0b, 0x84, 0x9b, 0xee); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN_444, 0x4008018f, 0xf537, 0x4b36, 0x98, 0xcf, 0x61, 0xaf, 0x8a, 0x2c, 0x1a, 0x33); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10_EXT, 0x9cc55490, 0xe37c, 0x4932, 0x86, 0x84, 0x49, 0x20, 0xf9, 0xf6, 0x40, 0x9c); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10_444, 0x0dabeffa, 0x4458, 0x4602, 0xbc, 0x03, 0x07, 0x95, 0x65, 0x9d, 0x61, 0x7c); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN12_444, 0x9798634d, 0xfe9d, 0x48e5, 0xb4, 0xda, 0xdb, 0xec, 0x45, 0xb3, 0xdf, 0x01); +DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN16, 0xa4fbdbb0, 0xa113, 0x482b, 0xa2, 0x32, 0x63, 0x5c, 0xc0, 0x69, 0x7f, 0x6d); +DEFINE_GUID(D3D11_DECODER_PROFILE_VP9_VLD_PROFILE0, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e); +DEFINE_GUID(D3D11_DECODER_PROFILE_VP9_VLD_10BIT_PROFILE2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7); +DEFINE_GUID(D3D11_DECODER_PROFILE_VP8_VLD, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7); +DEFINE_GUID(D3D11_DECODER_PROFILE_AV1_VLD_PROFILE0, 0xb8be4ccb, 0xcf53, 0x46ba, 0x8d, 0x59, 0xd6, 0xb8, 0xa6, 0xda, 0x5d, 0x2a); +DEFINE_GUID(D3D11_DECODER_PROFILE_AV1_VLD_PROFILE1, 0x6936ff0f, 0x45b1, 0x4163, 0x9c, 0xc1, 0x64, 0x6e, 0xf6, 0x94, 0x61, 0x08); +DEFINE_GUID(D3D11_DECODER_PROFILE_AV1_VLD_PROFILE2, 0x0c5f2aa1, 0xe541, 0x4089, 0xbb, 0x7b, 0x98, 0x11, 0x0a, 0x19, 0xd7, 0xc8); +DEFINE_GUID(D3D11_DECODER_PROFILE_AV1_VLD_12BIT_PROFILE2, 0x17127009, 0xa00f, 0x4ce1, 0x99, 0x4e, 0xbf, 0x40, 0x81, 0xf6, 0xf3, 0xf0); +DEFINE_GUID(D3D11_DECODER_PROFILE_AV1_VLD_12BIT_PROFILE2_420, 0x2d80bed6, 0x9cac, 0x4835, 0x9e, 0x91, 0x32, 0x7b, 0xbc, 0x4f, 0x9e, 0xe8); +DEFINE_GUID(D3D11_DECODER_PROFILE_MJPEG_VLD_420, 0x725cb506, 0x0c29, 0x43c4, 0x94, 0x40, 0x8e, 0x93, 0x97, 0x90, 0x3a, 0x04); +DEFINE_GUID(D3D11_DECODER_PROFILE_MJPEG_VLD_422, 0x5b77b9cd, 0x1a35, 0x4c30, 0x9f, 0xd8, 0xef, 0x4b, 0x60, 0xc0, 0x35, 0xdd); +DEFINE_GUID(D3D11_DECODER_PROFILE_MJPEG_VLD_444, 0xd95161f9, 0x0d44, 0x47e6, 0xbc, 0xf5, 0x1b, 0xfb, 0xfb, 0x26, 0x8f, 0x97); +DEFINE_GUID(D3D11_DECODER_PROFILE_MJPEG_VLD_4444, 0xc91748d5, 0xfd18, 0x4aca, 0x9d, 0xb3, 0x3a, 0x66, 0x34, 0xab, 0x54, 0x7d); +DEFINE_GUID(D3D11_DECODER_PROFILE_JPEG_VLD_420, 0xcf782c83, 0xbef5, 0x4a2c, 0x87, 0xcb, 0x60, 0x19, 0xe7, 0xb1, 0x75, 0xac); +DEFINE_GUID(D3D11_DECODER_PROFILE_JPEG_VLD_422, 0xf04df417, 0xeee2, 0x4067, 0xa7, 0x78, 0xf3, 0x5c, 0x15, 0xab, 0x97, 0x21); +DEFINE_GUID(D3D11_DECODER_PROFILE_JPEG_VLD_444, 0x4cd00e17, 0x89ba, 0x48ef, 0xb9, 0xf9, 0xed, 0xcb, 0x82, 0x71, 0x3f, 0x65); +typedef struct D3D11_VIDEO_DECODER_DESC + { + GUID Guid; + UINT SampleWidth; + UINT SampleHeight; + DXGI_FORMAT OutputFormat; + } D3D11_VIDEO_DECODER_DESC; + +typedef struct D3D11_VIDEO_DECODER_CONFIG + { + GUID guidConfigBitstreamEncryption; + GUID guidConfigMBcontrolEncryption; + GUID guidConfigResidDiffEncryption; + UINT ConfigBitstreamRaw; + UINT ConfigMBcontrolRasterOrder; + UINT ConfigResidDiffHost; + UINT ConfigSpatialResid8; + UINT ConfigResid8Subtraction; + UINT ConfigSpatialHost8or9Clipping; + UINT ConfigSpatialResidInterleaved; + UINT ConfigIntraResidUnsigned; + UINT ConfigResidDiffAccelerator; + UINT ConfigHostInverseScan; + UINT ConfigSpecificIDCT; + UINT Config4GroupedCoefs; + USHORT ConfigMinRenderTargetBuffCount; + USHORT ConfigDecoderSpecific; + } D3D11_VIDEO_DECODER_CONFIG; + +typedef +enum D3D11_VIDEO_DECODER_BUFFER_TYPE + { + D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS = 0, + D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL = 1, + D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE = 2, + D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL = 3, + D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX = 4, + D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL = 5, + D3D11_VIDEO_DECODER_BUFFER_BITSTREAM = 6, + D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR = 7, + D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN = 8, + D3D11_VIDEO_DECODER_BUFFER_HUFFMAN_TABLE = 9 + } D3D11_VIDEO_DECODER_BUFFER_TYPE; + +typedef struct _D3D11_AES_CTR_IV + { + UINT64 IV; + UINT64 Count; + } D3D11_AES_CTR_IV; + +typedef struct D3D11_ENCRYPTED_BLOCK_INFO + { + UINT NumEncryptedBytesAtBeginning; + UINT NumBytesInSkipPattern; + UINT NumBytesInEncryptPattern; + } D3D11_ENCRYPTED_BLOCK_INFO; + +typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC + { + D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType; + UINT BufferIndex; + UINT DataOffset; + UINT DataSize; + UINT FirstMBaddress; + UINT NumMBsInBuffer; + UINT Width; + UINT Height; + UINT Stride; + UINT ReservedBits; + /* [annotation] */ + _Field_size_opt_(IVSize) void *pIV; + UINT IVSize; + BOOL PartialEncryption; + D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo; + } D3D11_VIDEO_DECODER_BUFFER_DESC; + +typedef struct D3D11_VIDEO_DECODER_EXTENSION + { + UINT Function; + /* [annotation] */ + _Field_size_(PrivateInputDataSize) void *pPrivateInputData; + UINT PrivateInputDataSize; + /* [annotation] */ + _Field_size_(PrivateOutputDataSize) void *pPrivateOutputData; + UINT PrivateOutputDataSize; + UINT ResourceCount; + /* [annotation] */ + _Field_size_opt_(ResourceCount) ID3D11Resource **ppResourceList; + } D3D11_VIDEO_DECODER_EXTENSION; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0030_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0030_v0_0_s_ifspec; + +#ifndef __ID3D11VideoDecoder_INTERFACE_DEFINED__ +#define __ID3D11VideoDecoder_INTERFACE_DEFINED__ + +/* interface ID3D11VideoDecoder */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoDecoder; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3C9C5B51-995D-48d1-9B8D-FA5CAEDED65C") + ID3D11VideoDecoder : public ID3D11DeviceChild + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCreationParameters( + /* [annotation] */ + _Out_ D3D11_VIDEO_DECODER_DESC *pVideoDesc, + /* [annotation] */ + _Out_ D3D11_VIDEO_DECODER_CONFIG *pConfig) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDriverHandle( + /* [annotation] */ + _Out_ HANDLE *pDriverHandle) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoDecoderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoDecoder * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoDecoder * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoDecoder * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoDecoder * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoDecoder * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoDecoder * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoDecoder * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoDecoder, GetCreationParameters) + HRESULT ( STDMETHODCALLTYPE *GetCreationParameters )( + ID3D11VideoDecoder * This, + /* [annotation] */ + _Out_ D3D11_VIDEO_DECODER_DESC *pVideoDesc, + /* [annotation] */ + _Out_ D3D11_VIDEO_DECODER_CONFIG *pConfig); + + DECLSPEC_XFGVIRT(ID3D11VideoDecoder, GetDriverHandle) + HRESULT ( STDMETHODCALLTYPE *GetDriverHandle )( + ID3D11VideoDecoder * This, + /* [annotation] */ + _Out_ HANDLE *pDriverHandle); + + END_INTERFACE + } ID3D11VideoDecoderVtbl; + + interface ID3D11VideoDecoder + { + CONST_VTBL struct ID3D11VideoDecoderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoDecoder_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoDecoder_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoDecoder_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoDecoder_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoDecoder_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoDecoder_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoDecoder_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoDecoder_GetCreationParameters(This,pVideoDesc,pConfig) \ + ( (This)->lpVtbl -> GetCreationParameters(This,pVideoDesc,pConfig) ) + +#define ID3D11VideoDecoder_GetDriverHandle(This,pDriverHandle) \ + ( (This)->lpVtbl -> GetDriverHandle(This,pDriverHandle) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoDecoder_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0031 */ +/* [local] */ + +typedef +enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT + { + D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x1, + D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x2 + } D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT; + +typedef +enum D3D11_VIDEO_PROCESSOR_DEVICE_CAPS + { + D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_LINEAR_SPACE = 0x1, + D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_xvYCC = 0x2, + D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x4, + D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x8, + D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_NOMINAL_RANGE = 0x10 + } D3D11_VIDEO_PROCESSOR_DEVICE_CAPS; + +typedef +enum D3D11_VIDEO_PROCESSOR_FEATURE_CAPS + { + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_FILL = 0x1, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION = 0x2, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LUMA_KEY = 0x4, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_PALETTE = 0x8, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LEGACY = 0x10, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_STEREO = 0x20, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ROTATION = 0x40, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_STREAM = 0x80, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_PIXEL_ASPECT_RATIO = 0x100, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_MIRROR = 0x200, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_SHADER_USAGE = 0x400, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_METADATA_HDR10 = 0x800 + } D3D11_VIDEO_PROCESSOR_FEATURE_CAPS; + +typedef +enum D3D11_VIDEO_PROCESSOR_FILTER_CAPS + { + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_BRIGHTNESS = 0x1, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_CONTRAST = 0x2, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_HUE = 0x4, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_SATURATION = 0x8, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_NOISE_REDUCTION = 0x10, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_EDGE_ENHANCEMENT = 0x20, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_ANAMORPHIC_SCALING = 0x40, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_STEREO_ADJUSTMENT = 0x80 + } D3D11_VIDEO_PROCESSOR_FILTER_CAPS; + +typedef +enum D3D11_VIDEO_PROCESSOR_FORMAT_CAPS + { + D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_INTERLACED = 0x1, + D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_PROCAMP = 0x2, + D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_LUMA_KEY = 0x4, + D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_PALETTE_INTERLACED = 0x8 + } D3D11_VIDEO_PROCESSOR_FORMAT_CAPS; + +typedef +enum D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS + { + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DENOISE = 0x1, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DERINGING = 0x2, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_EDGE_ENHANCEMENT = 0x4, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_COLOR_CORRECTION = 0x8, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_FLESH_TONE_MAPPING = 0x10, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_IMAGE_STABILIZATION = 0x20, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_SUPER_RESOLUTION = 0x40, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_ANAMORPHIC_SCALING = 0x80 + } D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS; + +typedef +enum D3D11_VIDEO_PROCESSOR_STEREO_CAPS + { + D3D11_VIDEO_PROCESSOR_STEREO_CAPS_MONO_OFFSET = 0x1, + D3D11_VIDEO_PROCESSOR_STEREO_CAPS_ROW_INTERLEAVED = 0x2, + D3D11_VIDEO_PROCESSOR_STEREO_CAPS_COLUMN_INTERLEAVED = 0x4, + D3D11_VIDEO_PROCESSOR_STEREO_CAPS_CHECKERBOARD = 0x8, + D3D11_VIDEO_PROCESSOR_STEREO_CAPS_FLIP_MODE = 0x10 + } D3D11_VIDEO_PROCESSOR_STEREO_CAPS; + +typedef struct D3D11_VIDEO_PROCESSOR_CAPS + { + UINT DeviceCaps; + UINT FeatureCaps; + UINT FilterCaps; + UINT InputFormatCaps; + UINT AutoStreamCaps; + UINT StereoCaps; + UINT RateConversionCapsCount; + UINT MaxInputStreams; + UINT MaxStreamStates; + } D3D11_VIDEO_PROCESSOR_CAPS; + +typedef +enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS + { + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x1, + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x2, + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x4, + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x8, + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10, + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20 + } D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS; + +typedef +enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS + { + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32 = 0x1, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22 = 0x2, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224 = 0x4, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332 = 0x8, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322 = 0x10, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55 = 0x20, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64 = 0x40, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87 = 0x80, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223 = 0x100, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER = 0x80000000 + } D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS; + +typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS + { + UINT PastFrames; + UINT FutureFrames; + UINT ProcessorCaps; + UINT ITelecineCaps; + UINT CustomRateCount; + } D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS; + +typedef +enum D3D11_CONTENT_PROTECTION_CAPS + { + D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE = 0x1, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE = 0x2, + D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON = 0x4, + D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION = 0x8, + D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY = 0x10, + D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY = 0x20, + D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK = 0x40, + D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY = 0x80, + D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV = 0x100, + D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY = 0x200, + D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT = 0x400, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED = 0x800, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE = 0x1000, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN = 0x2000, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION = 0x4000, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION_MULTI_THREADED = 0x8000 + } D3D11_CONTENT_PROTECTION_CAPS; + +DEFINE_GUID(D3D11_CRYPTO_TYPE_AES128_CTR, 0x9b6bd711, 0x4f74, 0x41c9, 0x9e, 0x7b, 0xb, 0xe2, 0xd7, 0xd9, 0x3b, 0x4f ); +DEFINE_GUID(D3D11_DECODER_ENCRYPTION_HW_CENC, 0x89d6ac4f, 0x9f2, 0x4229, 0xb2, 0xcd, 0x37, 0x74, 0xa, 0x6d, 0xfd, 0x81); +DEFINE_GUID(D3D11_DECODER_BITSTREAM_ENCRYPTION_TYPE_CENC, 0xb0405235, 0xc13d, 0x44f2, 0x9a, 0xe5, 0xdd, 0x48, 0xe0, 0x8e, 0x5b, 0x67); +DEFINE_GUID(D3D11_DECODER_BITSTREAM_ENCRYPTION_TYPE_CBCS, 0x422d9319, 0x9d21, 0x4bb7, 0x93, 0x71, 0xfa, 0xf5, 0xa8, 0x2c, 0x3e, 0x04); +DEFINE_GUID(D3D11_KEY_EXCHANGE_HW_PROTECTION, 0xb1170d8a, 0x628d, 0x4da3, 0xad, 0x3b, 0x82, 0xdd, 0xb0, 0x8b, 0x49, 0x70); +typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS + { + UINT Caps; + UINT KeyExchangeTypeCount; + UINT BlockAlignmentSize; + ULONGLONG ProtectedMemorySize; + } D3D11_VIDEO_CONTENT_PROTECTION_CAPS; + +typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE + { + DXGI_RATIONAL CustomRate; + UINT OutputFrames; + BOOL InputInterlaced; + UINT InputFramesOrFields; + } D3D11_VIDEO_PROCESSOR_CUSTOM_RATE; + +typedef +enum D3D11_VIDEO_PROCESSOR_FILTER + { + D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0, + D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1, + D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2, + D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3, + D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4, + D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5, + D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6, + D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7 + } D3D11_VIDEO_PROCESSOR_FILTER; + +typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE + { + int Minimum; + int Maximum; + int Default; + float Multiplier; + } D3D11_VIDEO_PROCESSOR_FILTER_RANGE; + +typedef +enum D3D11_VIDEO_FRAME_FORMAT + { + D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0, + D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1, + D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2 + } D3D11_VIDEO_FRAME_FORMAT; + +typedef +enum D3D11_VIDEO_USAGE + { + D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0, + D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1, + D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2 + } D3D11_VIDEO_USAGE; + +typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC + { + D3D11_VIDEO_FRAME_FORMAT InputFrameFormat; + DXGI_RATIONAL InputFrameRate; + UINT InputWidth; + UINT InputHeight; + DXGI_RATIONAL OutputFrameRate; + UINT OutputWidth; + UINT OutputHeight; + D3D11_VIDEO_USAGE Usage; + } D3D11_VIDEO_PROCESSOR_CONTENT_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0031_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0031_v0_0_s_ifspec; + +#ifndef __ID3D11VideoProcessorEnumerator_INTERFACE_DEFINED__ +#define __ID3D11VideoProcessorEnumerator_INTERFACE_DEFINED__ + +/* interface ID3D11VideoProcessorEnumerator */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoProcessorEnumerator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("31627037-53AB-4200-9061-05FAA9AB45F9") + ID3D11VideoProcessorEnumerator : public ID3D11DeviceChild + { + public: + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorContentDesc( + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckVideoProcessorFormat( + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps( + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CAPS *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorRateConversionCaps( + /* [annotation] */ + _In_ UINT TypeIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCustomRate( + /* [annotation] */ + _In_ UINT TypeIndex, + /* [annotation] */ + _In_ UINT CustomRateIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorFilterRange( + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoProcessorEnumeratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoProcessorEnumerator * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoProcessorEnumerator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoProcessorEnumerator * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoProcessorEnumerator * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoProcessorEnumerator * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoProcessorEnumerator * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoProcessorEnumerator * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, GetVideoProcessorContentDesc) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorContentDesc )( + ID3D11VideoProcessorEnumerator * This, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, CheckVideoProcessorFormat) + HRESULT ( STDMETHODCALLTYPE *CheckVideoProcessorFormat )( + ID3D11VideoProcessorEnumerator * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFlags); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, GetVideoProcessorCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )( + ID3D11VideoProcessorEnumerator * This, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CAPS *pCaps); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, GetVideoProcessorRateConversionCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorRateConversionCaps )( + ID3D11VideoProcessorEnumerator * This, + /* [annotation] */ + _In_ UINT TypeIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, GetVideoProcessorCustomRate) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCustomRate )( + ID3D11VideoProcessorEnumerator * This, + /* [annotation] */ + _In_ UINT TypeIndex, + /* [annotation] */ + _In_ UINT CustomRateIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, GetVideoProcessorFilterRange) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorFilterRange )( + ID3D11VideoProcessorEnumerator * This, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange); + + END_INTERFACE + } ID3D11VideoProcessorEnumeratorVtbl; + + interface ID3D11VideoProcessorEnumerator + { + CONST_VTBL struct ID3D11VideoProcessorEnumeratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoProcessorEnumerator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoProcessorEnumerator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoProcessorEnumerator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoProcessorEnumerator_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoProcessorEnumerator_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoProcessorEnumerator_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoProcessorEnumerator_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoProcessorEnumerator_GetVideoProcessorContentDesc(This,pContentDesc) \ + ( (This)->lpVtbl -> GetVideoProcessorContentDesc(This,pContentDesc) ) + +#define ID3D11VideoProcessorEnumerator_CheckVideoProcessorFormat(This,Format,pFlags) \ + ( (This)->lpVtbl -> CheckVideoProcessorFormat(This,Format,pFlags) ) + +#define ID3D11VideoProcessorEnumerator_GetVideoProcessorCaps(This,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorCaps(This,pCaps) ) + +#define ID3D11VideoProcessorEnumerator_GetVideoProcessorRateConversionCaps(This,TypeIndex,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorRateConversionCaps(This,TypeIndex,pCaps) ) + +#define ID3D11VideoProcessorEnumerator_GetVideoProcessorCustomRate(This,TypeIndex,CustomRateIndex,pRate) \ + ( (This)->lpVtbl -> GetVideoProcessorCustomRate(This,TypeIndex,CustomRateIndex,pRate) ) + +#define ID3D11VideoProcessorEnumerator_GetVideoProcessorFilterRange(This,Filter,pRange) \ + ( (This)->lpVtbl -> GetVideoProcessorFilterRange(This,Filter,pRange) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoProcessorEnumerator_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0032 */ +/* [local] */ + +typedef struct D3D11_VIDEO_COLOR_RGBA + { + float R; + float G; + float B; + float A; + } D3D11_VIDEO_COLOR_RGBA; + +typedef struct D3D11_VIDEO_COLOR_YCbCrA + { + float Y; + float Cb; + float Cr; + float A; + } D3D11_VIDEO_COLOR_YCbCrA; + +typedef struct D3D11_VIDEO_COLOR + { + union + { + D3D11_VIDEO_COLOR_YCbCrA YCbCr; + D3D11_VIDEO_COLOR_RGBA RGBA; + } ; + } D3D11_VIDEO_COLOR; + +typedef +enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE + { + D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED = 0, + D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235 = 1, + D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255 = 2 + } D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE; + +typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE + { + UINT Usage : 1; + UINT RGB_Range : 1; + UINT YCbCr_Matrix : 1; + UINT YCbCr_xvYCC : 1; + UINT Nominal_Range : 2; + UINT Reserved : 26; + } D3D11_VIDEO_PROCESSOR_COLOR_SPACE; + +typedef +enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE + { + D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE = 0, + D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND = 1, + D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION = 2, + D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM = 3 + } D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE; + +typedef +enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE + { + D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL = 0, + D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF = 1, + D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM = 2 + } D3D11_VIDEO_PROCESSOR_OUTPUT_RATE; + +typedef +enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT + { + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO = 0, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL = 1, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL = 2, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE = 3, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET = 4, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED = 5, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED = 6, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD = 7 + } D3D11_VIDEO_PROCESSOR_STEREO_FORMAT; + +typedef +enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE + { + D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE = 0, + D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0 = 1, + D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1 = 2 + } D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE; + +typedef +enum D3D11_VIDEO_PROCESSOR_ROTATION + { + D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY = 0, + D3D11_VIDEO_PROCESSOR_ROTATION_90 = 1, + D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2, + D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3 + } D3D11_VIDEO_PROCESSOR_ROTATION; + +typedef struct D3D11_VIDEO_PROCESSOR_STREAM + { + BOOL Enable; + UINT OutputIndex; + UINT InputFrameOrField; + UINT PastFrames; + UINT FutureFrames; + /* [annotation] */ + _Field_size_(PastFrames) ID3D11VideoProcessorInputView **ppPastSurfaces; + ID3D11VideoProcessorInputView *pInputSurface; + /* [annotation] */ + _Field_size_(FutureFrames) ID3D11VideoProcessorInputView **ppFutureSurfaces; + /* [annotation] */ + _Field_size_opt_(PastFrames) ID3D11VideoProcessorInputView **ppPastSurfacesRight; + ID3D11VideoProcessorInputView *pInputSurfaceRight; + /* [annotation] */ + _Field_size_(FutureFrames) ID3D11VideoProcessorInputView **ppFutureSurfacesRight; + } D3D11_VIDEO_PROCESSOR_STREAM; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0032_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0032_v0_0_s_ifspec; + +#ifndef __ID3D11VideoProcessor_INTERFACE_DEFINED__ +#define __ID3D11VideoProcessor_INTERFACE_DEFINED__ + +/* interface ID3D11VideoProcessor */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoProcessor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1D7B0652-185F-41c6-85CE-0C5BE3D4AE6C") + ID3D11VideoProcessor : public ID3D11DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetContentDesc( + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc) = 0; + + virtual void STDMETHODCALLTYPE GetRateConversionCaps( + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoProcessorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoProcessor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoProcessor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoProcessor * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoProcessor * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoProcessor * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoProcessor * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoProcessor * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessor, GetContentDesc) + void ( STDMETHODCALLTYPE *GetContentDesc )( + ID3D11VideoProcessor * This, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessor, GetRateConversionCaps) + void ( STDMETHODCALLTYPE *GetRateConversionCaps )( + ID3D11VideoProcessor * This, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps); + + END_INTERFACE + } ID3D11VideoProcessorVtbl; + + interface ID3D11VideoProcessor + { + CONST_VTBL struct ID3D11VideoProcessorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoProcessor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoProcessor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoProcessor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoProcessor_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoProcessor_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoProcessor_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoProcessor_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoProcessor_GetContentDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetContentDesc(This,pDesc) ) + +#define ID3D11VideoProcessor_GetRateConversionCaps(This,pCaps) \ + ( (This)->lpVtbl -> GetRateConversionCaps(This,pCaps) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoProcessor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0033 */ +/* [local] */ + +typedef struct D3D11_OMAC + { + BYTE Omac[ 16 ]; + } D3D11_OMAC; + +typedef +enum D3D11_AUTHENTICATED_CHANNEL_TYPE + { + D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1, + D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2, + D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3 + } D3D11_AUTHENTICATED_CHANNEL_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0033_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0033_v0_0_s_ifspec; + +#ifndef __ID3D11AuthenticatedChannel_INTERFACE_DEFINED__ +#define __ID3D11AuthenticatedChannel_INTERFACE_DEFINED__ + +/* interface ID3D11AuthenticatedChannel */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11AuthenticatedChannel; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3015A308-DCBD-47aa-A747-192486D14D4A") + ID3D11AuthenticatedChannel : public ID3D11DeviceChild + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCertificateSize( + /* [annotation] */ + _Out_ UINT *pCertificateSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificate( + /* [annotation] */ + _In_ UINT CertificateSize, + /* [annotation] */ + _Out_writes_bytes_(CertificateSize) BYTE *pCertificate) = 0; + + virtual void STDMETHODCALLTYPE GetChannelHandle( + /* [annotation] */ + _Out_ HANDLE *pChannelHandle) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11AuthenticatedChannelVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11AuthenticatedChannel * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11AuthenticatedChannel * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11AuthenticatedChannel * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11AuthenticatedChannel * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11AuthenticatedChannel * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11AuthenticatedChannel * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11AuthenticatedChannel * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11AuthenticatedChannel, GetCertificateSize) + HRESULT ( STDMETHODCALLTYPE *GetCertificateSize )( + ID3D11AuthenticatedChannel * This, + /* [annotation] */ + _Out_ UINT *pCertificateSize); + + DECLSPEC_XFGVIRT(ID3D11AuthenticatedChannel, GetCertificate) + HRESULT ( STDMETHODCALLTYPE *GetCertificate )( + ID3D11AuthenticatedChannel * This, + /* [annotation] */ + _In_ UINT CertificateSize, + /* [annotation] */ + _Out_writes_bytes_(CertificateSize) BYTE *pCertificate); + + DECLSPEC_XFGVIRT(ID3D11AuthenticatedChannel, GetChannelHandle) + void ( STDMETHODCALLTYPE *GetChannelHandle )( + ID3D11AuthenticatedChannel * This, + /* [annotation] */ + _Out_ HANDLE *pChannelHandle); + + END_INTERFACE + } ID3D11AuthenticatedChannelVtbl; + + interface ID3D11AuthenticatedChannel + { + CONST_VTBL struct ID3D11AuthenticatedChannelVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11AuthenticatedChannel_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11AuthenticatedChannel_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11AuthenticatedChannel_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11AuthenticatedChannel_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11AuthenticatedChannel_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11AuthenticatedChannel_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11AuthenticatedChannel_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11AuthenticatedChannel_GetCertificateSize(This,pCertificateSize) \ + ( (This)->lpVtbl -> GetCertificateSize(This,pCertificateSize) ) + +#define ID3D11AuthenticatedChannel_GetCertificate(This,CertificateSize,pCertificate) \ + ( (This)->lpVtbl -> GetCertificate(This,CertificateSize,pCertificate) ) + +#define ID3D11AuthenticatedChannel_GetChannelHandle(This,pChannelHandle) \ + ( (This)->lpVtbl -> GetChannelHandle(This,pChannelHandle) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11AuthenticatedChannel_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0034 */ +/* [local] */ + +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_PROTECTION, 0xa84eb584, 0xc495, 0x48aa, 0xb9, 0x4d, 0x8b, 0xd2, 0xd6, 0xfb, 0xce, 0x5 ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE, 0xbc1b18a5, 0xb1fb, 0x42ab, 0xbd, 0x94, 0xb5, 0x82, 0x8b, 0x4b, 0xf7, 0xbe ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE, 0xec1c539d, 0x8cff, 0x4e2a, 0xbc, 0xc4, 0xf5, 0x69, 0x2f, 0x99, 0xf4, 0x80 ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION, 0x2634499e, 0xd018, 0x4d74, 0xac, 0x17, 0x7f, 0x72, 0x40, 0x59, 0x52, 0x8d ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT, 0xdb207b3, 0x9450, 0x46a6, 0x82, 0xde, 0x1b, 0x96, 0xd4, 0x4f, 0x9c, 0xf2 ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS, 0x649bbadb, 0xf0f4, 0x4639, 0xa1, 0x5b, 0x24, 0x39, 0x3f, 0xc3, 0xab, 0xac ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT, 0x12f0bd6, 0xe662, 0x4474, 0xbe, 0xfd, 0xaa, 0x53, 0xe5, 0x14, 0x3c, 0x6d ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT, 0x2c042b5e, 0x8c07, 0x46d5, 0xaa, 0xbe, 0x8f, 0x75, 0xcb, 0xad, 0x4c, 0x31 ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_OUTPUT_ID, 0x839ddca3, 0x9b4e, 0x41e4, 0xb0, 0x53, 0x89, 0x2b, 0xd2, 0xa1, 0x1e, 0xe7 ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ATTRIBUTES, 0x6214d9d2, 0x432c, 0x4abb, 0x9f, 0xce, 0x21, 0x6e, 0xea, 0x26, 0x9e, 0x3b ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_ENCRYPTION_WHEN_ACCESSIBLE_GUID_COUNT, 0xb30f7066, 0x203c, 0x4b07, 0x93, 0xfc, 0xce, 0xaa, 0xfd, 0x61, 0x24, 0x1e ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_ENCRYPTION_WHEN_ACCESSIBLE_GUID, 0xf83a5958, 0xe986, 0x4bda, 0xbe, 0xb0, 0x41, 0x1f, 0x6a, 0x7a, 0x1, 0xb7 ); +DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_CURRENT_ENCRYPTION_WHEN_ACCESSIBLE, 0xec1791c7, 0xdad3, 0x4f15, 0x9e, 0xc3, 0xfa, 0xa9, 0x3d, 0x60, 0xd4, 0xf0 ); +DEFINE_GUID( D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE, 0x6114bdb, 0x3523, 0x470a, 0x8d, 0xca, 0xfb, 0xc2, 0x84, 0x51, 0x54, 0xf0 ); +DEFINE_GUID( D3D11_AUTHENTICATED_CONFIGURE_PROTECTION, 0x50455658, 0x3f47, 0x4362, 0xbf, 0x99, 0xbf, 0xdf, 0xcd, 0xe9, 0xed, 0x29 ); +DEFINE_GUID( D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION, 0x6346cc54, 0x2cfc, 0x4ad4, 0x82, 0x24, 0xd1, 0x58, 0x37, 0xde, 0x77, 0x0 ); +DEFINE_GUID( D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE, 0x772d047, 0x1b40, 0x48e8, 0x9c, 0xa6, 0xb5, 0xf5, 0x10, 0xde, 0x9f, 0x1 ); +DEFINE_GUID( D3D11_AUTHENTICATED_CONFIGURE_ENCRYPTION_WHEN_ACCESSIBLE, 0x41fff286, 0x6ae0, 0x4d43, 0x9d, 0x55, 0xa4, 0x6e, 0x9e, 0xfd, 0x15, 0x8a ); +typedef struct D3D11_AUTHENTICATED_QUERY_INPUT + { + GUID QueryType; + HANDLE hChannel; + UINT SequenceNumber; + } D3D11_AUTHENTICATED_QUERY_INPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT + { + D3D11_OMAC omac; + GUID QueryType; + HANDLE hChannel; + UINT SequenceNumber; + HRESULT ReturnCode; + } D3D11_AUTHENTICATED_QUERY_OUTPUT; + +typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS + { + struct __MIDL___MIDL_itf_d3d11_0000_0034_0001 + { + UINT ProtectionEnabled : 1; + UINT OverlayOrFullscreenRequired : 1; + UINT Reserved : 30; + } Flags; + UINT Value; + } D3D11_AUTHENTICATED_PROTECTION_FLAGS; + +typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags; + } D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType; + } D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + HANDLE DeviceHandle; + } D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT + { + D3D11_AUTHENTICATED_QUERY_INPUT Input; + HANDLE DecoderHandle; + } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + HANDLE DecoderHandle; + HANDLE CryptoSessionHandle; + HANDLE DeviceHandle; + } D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + UINT RestrictedSharedResourceProcessCount; + } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT + { + D3D11_AUTHENTICATED_QUERY_INPUT Input; + UINT ProcessIndex; + } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT; + +typedef +enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE + { + D3D11_PROCESSIDTYPE_UNKNOWN = 0, + D3D11_PROCESSIDTYPE_DWM = 1, + D3D11_PROCESSIDTYPE_HANDLE = 2 + } D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE; + +typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + UINT ProcessIndex; + D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier; + HANDLE ProcessHandle; + } D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + UINT UnrestrictedProtectedSharedResourceCount; + } D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT + { + D3D11_AUTHENTICATED_QUERY_INPUT Input; + HANDLE DeviceHandle; + HANDLE CryptoSessionHandle; + } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + HANDLE DeviceHandle; + HANDLE CryptoSessionHandle; + UINT OutputIDCount; + } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT + { + D3D11_AUTHENTICATED_QUERY_INPUT Input; + HANDLE DeviceHandle; + HANDLE CryptoSessionHandle; + UINT OutputIDIndex; + } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + HANDLE DeviceHandle; + HANDLE CryptoSessionHandle; + UINT OutputIDIndex; + UINT64 OutputID; + } D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT; + +typedef +enum D3D11_BUS_TYPE + { + D3D11_BUS_TYPE_OTHER = 0, + D3D11_BUS_TYPE_PCI = 0x1, + D3D11_BUS_TYPE_PCIX = 0x2, + D3D11_BUS_TYPE_PCIEXPRESS = 0x3, + D3D11_BUS_TYPE_AGP = 0x4, + D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET = 0x10000, + D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP = 0x20000, + D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET = 0x30000, + D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR = 0x40000, + D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE = 0x50000, + D3D11_BUS_IMPL_MODIFIER_NON_STANDARD = 0x80000000 + } D3D11_BUS_TYPE; + +typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + D3D11_BUS_TYPE BusType; + BOOL AccessibleInContiguousBlocks; + BOOL AccessibleInNonContiguousBlocks; + } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + UINT EncryptionGuidCount; + } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT + { + D3D11_AUTHENTICATED_QUERY_INPUT Input; + UINT EncryptionGuidIndex; + } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + UINT EncryptionGuidIndex; + GUID EncryptionGuid; + } D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT + { + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + GUID EncryptionGuid; + } D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT + { + D3D11_OMAC omac; + GUID ConfigureType; + HANDLE hChannel; + UINT SequenceNumber; + } D3D11_AUTHENTICATED_CONFIGURE_INPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT + { + D3D11_OMAC omac; + GUID ConfigureType; + HANDLE hChannel; + UINT SequenceNumber; + HRESULT ReturnCode; + } D3D11_AUTHENTICATED_CONFIGURE_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT + { + D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; + UINT StartSequenceQuery; + UINT StartSequenceConfigure; + } D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT + { + D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; + D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections; + } D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT + { + D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; + HANDLE DecoderHandle; + HANDLE CryptoSessionHandle; + HANDLE DeviceHandle; + } D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT + { + D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; + D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType; + HANDLE ProcessHandle; + BOOL AllowAccess; + } D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT + { + D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; + GUID EncryptionGuid; + } D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT; + +DEFINE_GUID(D3D11_KEY_EXCHANGE_RSAES_OAEP, 0xc1949895, 0xd72a, 0x4a1d, 0x8e, 0x5d, 0xed, 0x85, 0x7d, 0x17, 0x15, 0x20); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0034_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0034_v0_0_s_ifspec; + +#ifndef __ID3D11CryptoSession_INTERFACE_DEFINED__ +#define __ID3D11CryptoSession_INTERFACE_DEFINED__ + +/* interface ID3D11CryptoSession */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11CryptoSession; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B32F9AD-BDCC-40a6-A39D-D5C865845720") + ID3D11CryptoSession : public ID3D11DeviceChild + { + public: + virtual void STDMETHODCALLTYPE GetCryptoType( + /* [annotation] */ + _Out_ GUID *pCryptoType) = 0; + + virtual void STDMETHODCALLTYPE GetDecoderProfile( + /* [annotation] */ + _Out_ GUID *pDecoderProfile) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificateSize( + /* [annotation] */ + _Out_ UINT *pCertificateSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCertificate( + /* [annotation] */ + _In_ UINT CertificateSize, + /* [annotation] */ + _Out_writes_bytes_(CertificateSize) BYTE *pCertificate) = 0; + + virtual void STDMETHODCALLTYPE GetCryptoSessionHandle( + /* [annotation] */ + _Out_ HANDLE *pCryptoSessionHandle) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11CryptoSessionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11CryptoSession * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11CryptoSession * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11CryptoSession * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11CryptoSession * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11CryptoSession * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11CryptoSession * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11CryptoSession * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11CryptoSession, GetCryptoType) + void ( STDMETHODCALLTYPE *GetCryptoType )( + ID3D11CryptoSession * This, + /* [annotation] */ + _Out_ GUID *pCryptoType); + + DECLSPEC_XFGVIRT(ID3D11CryptoSession, GetDecoderProfile) + void ( STDMETHODCALLTYPE *GetDecoderProfile )( + ID3D11CryptoSession * This, + /* [annotation] */ + _Out_ GUID *pDecoderProfile); + + DECLSPEC_XFGVIRT(ID3D11CryptoSession, GetCertificateSize) + HRESULT ( STDMETHODCALLTYPE *GetCertificateSize )( + ID3D11CryptoSession * This, + /* [annotation] */ + _Out_ UINT *pCertificateSize); + + DECLSPEC_XFGVIRT(ID3D11CryptoSession, GetCertificate) + HRESULT ( STDMETHODCALLTYPE *GetCertificate )( + ID3D11CryptoSession * This, + /* [annotation] */ + _In_ UINT CertificateSize, + /* [annotation] */ + _Out_writes_bytes_(CertificateSize) BYTE *pCertificate); + + DECLSPEC_XFGVIRT(ID3D11CryptoSession, GetCryptoSessionHandle) + void ( STDMETHODCALLTYPE *GetCryptoSessionHandle )( + ID3D11CryptoSession * This, + /* [annotation] */ + _Out_ HANDLE *pCryptoSessionHandle); + + END_INTERFACE + } ID3D11CryptoSessionVtbl; + + interface ID3D11CryptoSession + { + CONST_VTBL struct ID3D11CryptoSessionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11CryptoSession_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11CryptoSession_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11CryptoSession_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11CryptoSession_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11CryptoSession_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11CryptoSession_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11CryptoSession_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11CryptoSession_GetCryptoType(This,pCryptoType) \ + ( (This)->lpVtbl -> GetCryptoType(This,pCryptoType) ) + +#define ID3D11CryptoSession_GetDecoderProfile(This,pDecoderProfile) \ + ( (This)->lpVtbl -> GetDecoderProfile(This,pDecoderProfile) ) + +#define ID3D11CryptoSession_GetCertificateSize(This,pCertificateSize) \ + ( (This)->lpVtbl -> GetCertificateSize(This,pCertificateSize) ) + +#define ID3D11CryptoSession_GetCertificate(This,CertificateSize,pCertificate) \ + ( (This)->lpVtbl -> GetCertificate(This,CertificateSize,pCertificate) ) + +#define ID3D11CryptoSession_GetCryptoSessionHandle(This,pCryptoSessionHandle) \ + ( (This)->lpVtbl -> GetCryptoSessionHandle(This,pCryptoSessionHandle) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11CryptoSession_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0035 */ +/* [local] */ + +typedef +enum D3D11_VDOV_DIMENSION + { + D3D11_VDOV_DIMENSION_UNKNOWN = 0, + D3D11_VDOV_DIMENSION_TEXTURE2D = 1 + } D3D11_VDOV_DIMENSION; + +typedef struct D3D11_TEX2D_VDOV + { + UINT ArraySlice; + } D3D11_TEX2D_VDOV; + +typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC + { + GUID DecodeProfile; + D3D11_VDOV_DIMENSION ViewDimension; + union + { + D3D11_TEX2D_VDOV Texture2D; + } ; + } D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0035_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0035_v0_0_s_ifspec; + +#ifndef __ID3D11VideoDecoderOutputView_INTERFACE_DEFINED__ +#define __ID3D11VideoDecoderOutputView_INTERFACE_DEFINED__ + +/* interface ID3D11VideoDecoderOutputView */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoDecoderOutputView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C2931AEA-2A85-4f20-860F-FBA1FD256E18") + ID3D11VideoDecoderOutputView : public ID3D11View + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoDecoderOutputViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoDecoderOutputView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoDecoderOutputView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoDecoderOutputView * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoDecoderOutputView * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoDecoderOutputView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoDecoderOutputView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoDecoderOutputView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11VideoDecoderOutputView * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D11VideoDecoderOutputView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11VideoDecoderOutputView * This, + /* [annotation] */ + _Out_ D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc); + + END_INTERFACE + } ID3D11VideoDecoderOutputViewVtbl; + + interface ID3D11VideoDecoderOutputView + { + CONST_VTBL struct ID3D11VideoDecoderOutputViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoDecoderOutputView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoDecoderOutputView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoDecoderOutputView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoDecoderOutputView_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoDecoderOutputView_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoDecoderOutputView_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoDecoderOutputView_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoDecoderOutputView_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D11VideoDecoderOutputView_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoDecoderOutputView_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0036 */ +/* [local] */ + +typedef +enum D3D11_VPIV_DIMENSION + { + D3D11_VPIV_DIMENSION_UNKNOWN = 0, + D3D11_VPIV_DIMENSION_TEXTURE2D = 1 + } D3D11_VPIV_DIMENSION; + +typedef struct D3D11_TEX2D_VPIV + { + UINT MipSlice; + UINT ArraySlice; + } D3D11_TEX2D_VPIV; + +typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC + { + UINT FourCC; + D3D11_VPIV_DIMENSION ViewDimension; + union + { + D3D11_TEX2D_VPIV Texture2D; + } ; + } D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0036_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0036_v0_0_s_ifspec; + +#ifndef __ID3D11VideoProcessorInputView_INTERFACE_DEFINED__ +#define __ID3D11VideoProcessorInputView_INTERFACE_DEFINED__ + +/* interface ID3D11VideoProcessorInputView */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoProcessorInputView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("11EC5A5F-51DC-4945-AB34-6E8C21300EA5") + ID3D11VideoProcessorInputView : public ID3D11View + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoProcessorInputViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoProcessorInputView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoProcessorInputView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoProcessorInputView * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoProcessorInputView * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoProcessorInputView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoProcessorInputView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoProcessorInputView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11VideoProcessorInputView * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorInputView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11VideoProcessorInputView * This, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc); + + END_INTERFACE + } ID3D11VideoProcessorInputViewVtbl; + + interface ID3D11VideoProcessorInputView + { + CONST_VTBL struct ID3D11VideoProcessorInputViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoProcessorInputView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoProcessorInputView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoProcessorInputView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoProcessorInputView_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoProcessorInputView_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoProcessorInputView_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoProcessorInputView_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoProcessorInputView_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D11VideoProcessorInputView_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoProcessorInputView_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0037 */ +/* [local] */ + +typedef +enum D3D11_VPOV_DIMENSION + { + D3D11_VPOV_DIMENSION_UNKNOWN = 0, + D3D11_VPOV_DIMENSION_TEXTURE2D = 1, + D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2 + } D3D11_VPOV_DIMENSION; + +typedef struct D3D11_TEX2D_VPOV + { + UINT MipSlice; + } D3D11_TEX2D_VPOV; + +typedef struct D3D11_TEX2D_ARRAY_VPOV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D11_TEX2D_ARRAY_VPOV; + +typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC + { + D3D11_VPOV_DIMENSION ViewDimension; + union + { + D3D11_TEX2D_VPOV Texture2D; + D3D11_TEX2D_ARRAY_VPOV Texture2DArray; + } ; + } D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0037_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0037_v0_0_s_ifspec; + +#ifndef __ID3D11VideoProcessorOutputView_INTERFACE_DEFINED__ +#define __ID3D11VideoProcessorOutputView_INTERFACE_DEFINED__ + +/* interface ID3D11VideoProcessorOutputView */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoProcessorOutputView; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A048285E-25A9-4527-BD93-D68B68C44254") + ID3D11VideoProcessorOutputView : public ID3D11View + { + public: + virtual void STDMETHODCALLTYPE GetDesc( + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoProcessorOutputViewVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoProcessorOutputView * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoProcessorOutputView * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoProcessorOutputView * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoProcessorOutputView * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoProcessorOutputView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoProcessorOutputView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoProcessorOutputView * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11VideoProcessorOutputView * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorOutputView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11VideoProcessorOutputView * This, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc); + + END_INTERFACE + } ID3D11VideoProcessorOutputViewVtbl; + + interface ID3D11VideoProcessorOutputView + { + CONST_VTBL struct ID3D11VideoProcessorOutputViewVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoProcessorOutputView_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoProcessorOutputView_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoProcessorOutputView_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoProcessorOutputView_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoProcessorOutputView_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoProcessorOutputView_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoProcessorOutputView_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoProcessorOutputView_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D11VideoProcessorOutputView_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoProcessorOutputView_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11VideoContext_INTERFACE_DEFINED__ +#define __ID3D11VideoContext_INTERFACE_DEFINED__ + +/* interface ID3D11VideoContext */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoContext; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("61F21C45-3C0E-4a74-9CEA-67100D9AD5E4") + ID3D11VideoContext : public ID3D11DeviceChild + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDecoderBuffer( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + D3D11_VIDEO_DECODER_BUFFER_TYPE Type, + /* [annotation] */ + _Out_ UINT *pBufferSize, + /* [annotation] */ + _Outptr_result_bytebuffer_(*pBufferSize) void **ppBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseDecoderBuffer( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ D3D11_VIDEO_DECODER_BUFFER_TYPE Type) = 0; + + virtual HRESULT STDMETHODCALLTYPE DecoderBeginFrame( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ ID3D11VideoDecoderOutputView *pView, + UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey) = 0; + + virtual HRESULT STDMETHODCALLTYPE DecoderEndFrame( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder) = 0; + + virtual HRESULT STDMETHODCALLTYPE SubmitDecoderBuffers( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC *pBufferDesc) = 0; + + virtual APP_DEPRECATED_HRESULT STDMETHODCALLTYPE DecoderExtension( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_EXTENSION *pExtensionData) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetOutputTargetRect( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetOutputBackgroundColor( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL YCbCr, + /* [annotation] */ + _In_ const D3D11_VIDEO_COLOR *pColor) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetOutputColorSpace( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetOutputAlphaFillMode( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE AlphaFillMode, + /* [annotation] */ + _In_ UINT StreamIndex) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetOutputConstriction( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ SIZE Size) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetOutputStereoMode( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable) = 0; + + virtual APP_DEPRECATED_HRESULT STDMETHODCALLTYPE VideoProcessorSetOutputExtension( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ void *pData) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetOutputTargetRect( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *Enabled, + /* [annotation] */ + _Out_ RECT *pRect) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetOutputBackgroundColor( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pYCbCr, + /* [annotation] */ + _Out_ D3D11_VIDEO_COLOR *pColor) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetOutputColorSpace( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetOutputAlphaFillMode( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *pAlphaFillMode, + /* [annotation] */ + _Out_ UINT *pStreamIndex) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetOutputConstriction( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ SIZE *pSize) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetOutputStereoMode( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pEnabled) = 0; + + virtual APP_DEPRECATED_HRESULT STDMETHODCALLTYPE VideoProcessorGetOutputExtension( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Out_writes_bytes_(DataSize) void *pData) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamFrameFormat( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_FRAME_FORMAT FrameFormat) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamColorSpace( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamOutputRate( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate, + /* [annotation] */ + _In_ BOOL RepeatFrame, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pCustomRate) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamSourceRect( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamDestRect( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamAlpha( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ FLOAT Alpha) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamPalette( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ UINT Count, + /* [annotation] */ + _In_reads_opt_(Count) const UINT *pEntries) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamPixelAspectRatio( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pSourceAspectRatio, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pDestinationAspectRatio) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamLumaKey( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ FLOAT Lower, + /* [annotation] */ + _In_ FLOAT Upper) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamStereoFormat( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format, + /* [annotation] */ + _In_ BOOL LeftViewFrame0, + /* [annotation] */ + _In_ BOOL BaseViewFrame0, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode, + /* [annotation] */ + _In_ int MonoOffset) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamAutoProcessingMode( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamFilter( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ int Level) = 0; + + virtual APP_DEPRECATED_HRESULT STDMETHODCALLTYPE VideoProcessorSetStreamExtension( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ void *pData) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamFrameFormat( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_FRAME_FORMAT *pFrameFormat) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamColorSpace( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamOutputRate( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *pOutputRate, + /* [annotation] */ + _Out_ BOOL *pRepeatFrame, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pCustomRate) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamSourceRect( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ RECT *pRect) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamDestRect( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ RECT *pRect) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamAlpha( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ FLOAT *pAlpha) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamPalette( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ UINT Count, + /* [annotation] */ + _Out_writes_(Count) UINT *pEntries) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamPixelAspectRatio( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pSourceAspectRatio, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pDestinationAspectRatio) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamLumaKey( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ FLOAT *pLower, + /* [annotation] */ + _Out_ FLOAT *pUpper) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamStereoFormat( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *pFormat, + /* [annotation] */ + _Out_ BOOL *pLeftViewFrame0, + /* [annotation] */ + _Out_ BOOL *pBaseViewFrame0, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *pFlipMode, + /* [annotation] */ + _Out_ int *MonoOffset) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamAutoProcessingMode( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamFilter( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ int *pLevel) = 0; + + virtual APP_DEPRECATED_HRESULT STDMETHODCALLTYPE VideoProcessorGetStreamExtension( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Out_writes_bytes_(DataSize) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE VideoProcessorBlt( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ ID3D11VideoProcessorOutputView *pView, + /* [annotation] */ + _In_ UINT OutputFrame, + /* [annotation] */ + _In_ UINT StreamCount, + /* [annotation] */ + _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM *pStreams) = 0; + + virtual HRESULT STDMETHODCALLTYPE NegotiateCryptoSessionKeyExchange( + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData) = 0; + + virtual void STDMETHODCALLTYPE EncryptionBlt( + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ ID3D11Texture2D *pSrcSurface, + /* [annotation] */ + _In_ ID3D11Texture2D *pDstSurface, + /* [annotation] */ + _In_ UINT IVSize, + /* [annotation] */ + _Inout_opt_bytecount_(IVSize) void *pIV) = 0; + + virtual void STDMETHODCALLTYPE DecryptionBlt( + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ ID3D11Texture2D *pSrcSurface, + /* [annotation] */ + _In_ ID3D11Texture2D *pDstSurface, + /* [annotation] */ + _In_opt_ D3D11_ENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo, + /* [annotation] */ + _In_ UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey, + /* [annotation] */ + _In_ UINT IVSize, + /* [annotation] */ + _Inout_opt_bytecount_(IVSize) void *pIV) = 0; + + virtual void STDMETHODCALLTYPE StartSessionKeyRefresh( + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT RandomNumberSize, + /* [annotation] */ + _Out_writes_bytes_(RandomNumberSize) void *pRandomNumber) = 0; + + virtual void STDMETHODCALLTYPE FinishSessionKeyRefresh( + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEncryptionBltKey( + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT KeySize, + /* [annotation] */ + _Out_writes_bytes_(KeySize) void *pReadbackKey) = 0; + + virtual HRESULT STDMETHODCALLTYPE NegotiateAuthenticatedChannelKeyExchange( + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryAuthenticatedChannel( + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT InputSize, + /* [annotation] */ + _In_reads_bytes_(InputSize) const void *pInput, + /* [annotation] */ + _In_ UINT OutputSize, + /* [annotation] */ + _Out_writes_bytes_(OutputSize) void *pOutput) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConfigureAuthenticatedChannel( + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT InputSize, + /* [annotation] */ + _In_reads_bytes_(InputSize) const void *pInput, + /* [annotation] */ + _Out_ D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *pOutput) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamRotation( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_ROTATION Rotation) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamRotation( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_ROTATION *pRotation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoContextVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoContext * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoContext * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoContext * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoContext * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, GetDecoderBuffer) + HRESULT ( STDMETHODCALLTYPE *GetDecoderBuffer )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + D3D11_VIDEO_DECODER_BUFFER_TYPE Type, + /* [annotation] */ + _Out_ UINT *pBufferSize, + /* [annotation] */ + _Outptr_result_bytebuffer_(*pBufferSize) void **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, ReleaseDecoderBuffer) + HRESULT ( STDMETHODCALLTYPE *ReleaseDecoderBuffer )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ D3D11_VIDEO_DECODER_BUFFER_TYPE Type); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderBeginFrame) + HRESULT ( STDMETHODCALLTYPE *DecoderBeginFrame )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ ID3D11VideoDecoderOutputView *pView, + UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderEndFrame) + HRESULT ( STDMETHODCALLTYPE *DecoderEndFrame )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, SubmitDecoderBuffers) + HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC *pBufferDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *DecoderExtension )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_EXTENSION *pExtensionData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputTargetRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputTargetRect )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputBackgroundColor) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputBackgroundColor )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL YCbCr, + /* [annotation] */ + _In_ const D3D11_VIDEO_COLOR *pColor); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputAlphaFillMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputAlphaFillMode )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE AlphaFillMode, + /* [annotation] */ + _In_ UINT StreamIndex); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputConstriction) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputConstriction )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ SIZE Size); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputStereoMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputStereoMode )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetOutputExtension )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputTargetRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputTargetRect )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *Enabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputBackgroundColor) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputBackgroundColor )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pYCbCr, + /* [annotation] */ + _Out_ D3D11_VIDEO_COLOR *pColor); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputAlphaFillMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputAlphaFillMode )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *pAlphaFillMode, + /* [annotation] */ + _Out_ UINT *pStreamIndex); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputConstriction) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputConstriction )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ SIZE *pSize); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputStereoMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputStereoMode )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pEnabled); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetOutputExtension )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Out_writes_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamFrameFormat) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFrameFormat )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_FRAME_FORMAT FrameFormat); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamOutputRate) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamOutputRate )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate, + /* [annotation] */ + _In_ BOOL RepeatFrame, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pCustomRate); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamSourceRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamSourceRect )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamDestRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamDestRect )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamAlpha) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAlpha )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ FLOAT Alpha); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamPalette) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPalette )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ UINT Count, + /* [annotation] */ + _In_reads_opt_(Count) const UINT *pEntries); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamPixelAspectRatio) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPixelAspectRatio )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pSourceAspectRatio, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pDestinationAspectRatio); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamLumaKey) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamLumaKey )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ FLOAT Lower, + /* [annotation] */ + _In_ FLOAT Upper); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamStereoFormat) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamStereoFormat )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format, + /* [annotation] */ + _In_ BOOL LeftViewFrame0, + /* [annotation] */ + _In_ BOOL BaseViewFrame0, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode, + /* [annotation] */ + _In_ int MonoOffset); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamAutoProcessingMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAutoProcessingMode )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamFilter) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFilter )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ int Level); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetStreamExtension )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamFrameFormat) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFrameFormat )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_FRAME_FORMAT *pFrameFormat); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamOutputRate) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamOutputRate )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *pOutputRate, + /* [annotation] */ + _Out_ BOOL *pRepeatFrame, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pCustomRate); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamSourceRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamSourceRect )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamDestRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamDestRect )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamAlpha) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAlpha )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ FLOAT *pAlpha); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamPalette) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPalette )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ UINT Count, + /* [annotation] */ + _Out_writes_(Count) UINT *pEntries); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamPixelAspectRatio) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPixelAspectRatio )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pSourceAspectRatio, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pDestinationAspectRatio); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamLumaKey) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamLumaKey )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ FLOAT *pLower, + /* [annotation] */ + _Out_ FLOAT *pUpper); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamStereoFormat) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamStereoFormat )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *pFormat, + /* [annotation] */ + _Out_ BOOL *pLeftViewFrame0, + /* [annotation] */ + _Out_ BOOL *pBaseViewFrame0, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *pFlipMode, + /* [annotation] */ + _Out_ int *MonoOffset); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamAutoProcessingMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAutoProcessingMode )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamFilter) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFilter )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ int *pLevel); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetStreamExtension )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Out_writes_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorBlt) + HRESULT ( STDMETHODCALLTYPE *VideoProcessorBlt )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ ID3D11VideoProcessorOutputView *pView, + /* [annotation] */ + _In_ UINT OutputFrame, + /* [annotation] */ + _In_ UINT StreamCount, + /* [annotation] */ + _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM *pStreams); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, NegotiateCryptoSessionKeyExchange) + HRESULT ( STDMETHODCALLTYPE *NegotiateCryptoSessionKeyExchange )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, EncryptionBlt) + void ( STDMETHODCALLTYPE *EncryptionBlt )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ ID3D11Texture2D *pSrcSurface, + /* [annotation] */ + _In_ ID3D11Texture2D *pDstSurface, + /* [annotation] */ + _In_ UINT IVSize, + /* [annotation] */ + _Inout_opt_bytecount_(IVSize) void *pIV); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecryptionBlt) + void ( STDMETHODCALLTYPE *DecryptionBlt )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ ID3D11Texture2D *pSrcSurface, + /* [annotation] */ + _In_ ID3D11Texture2D *pDstSurface, + /* [annotation] */ + _In_opt_ D3D11_ENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo, + /* [annotation] */ + _In_ UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey, + /* [annotation] */ + _In_ UINT IVSize, + /* [annotation] */ + _Inout_opt_bytecount_(IVSize) void *pIV); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, StartSessionKeyRefresh) + void ( STDMETHODCALLTYPE *StartSessionKeyRefresh )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT RandomNumberSize, + /* [annotation] */ + _Out_writes_bytes_(RandomNumberSize) void *pRandomNumber); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, FinishSessionKeyRefresh) + void ( STDMETHODCALLTYPE *FinishSessionKeyRefresh )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, GetEncryptionBltKey) + HRESULT ( STDMETHODCALLTYPE *GetEncryptionBltKey )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT KeySize, + /* [annotation] */ + _Out_writes_bytes_(KeySize) void *pReadbackKey); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, NegotiateAuthenticatedChannelKeyExchange) + HRESULT ( STDMETHODCALLTYPE *NegotiateAuthenticatedChannelKeyExchange )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, QueryAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *QueryAuthenticatedChannel )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT InputSize, + /* [annotation] */ + _In_reads_bytes_(InputSize) const void *pInput, + /* [annotation] */ + _In_ UINT OutputSize, + /* [annotation] */ + _Out_writes_bytes_(OutputSize) void *pOutput); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, ConfigureAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *ConfigureAuthenticatedChannel )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT InputSize, + /* [annotation] */ + _In_reads_bytes_(InputSize) const void *pInput, + /* [annotation] */ + _Out_ D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *pOutput); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamRotation) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamRotation )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_ROTATION Rotation); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamRotation) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamRotation )( + ID3D11VideoContext * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_ROTATION *pRotation); + + END_INTERFACE + } ID3D11VideoContextVtbl; + + interface ID3D11VideoContext + { + CONST_VTBL struct ID3D11VideoContextVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoContext_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoContext_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoContext_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoContext_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoContext_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoContext_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoContext_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoContext_GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) \ + ( (This)->lpVtbl -> GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) ) + +#define ID3D11VideoContext_ReleaseDecoderBuffer(This,pDecoder,Type) \ + ( (This)->lpVtbl -> ReleaseDecoderBuffer(This,pDecoder,Type) ) + +#define ID3D11VideoContext_DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) \ + ( (This)->lpVtbl -> DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) ) + +#define ID3D11VideoContext_DecoderEndFrame(This,pDecoder) \ + ( (This)->lpVtbl -> DecoderEndFrame(This,pDecoder) ) + +#define ID3D11VideoContext_SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) \ + ( (This)->lpVtbl -> SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) ) + +#define ID3D11VideoContext_DecoderExtension(This,pDecoder,pExtensionData) \ + ( (This)->lpVtbl -> DecoderExtension(This,pDecoder,pExtensionData) ) + +#define ID3D11VideoContext_VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) ) + +#define ID3D11VideoContext_VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) ) + +#define ID3D11VideoContext_VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext_VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) ) + +#define ID3D11VideoContext_VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) ) + +#define ID3D11VideoContext_VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) ) + +#define ID3D11VideoContext_VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext_VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) ) + +#define ID3D11VideoContext_VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) ) + +#define ID3D11VideoContext_VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext_VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) ) + +#define ID3D11VideoContext_VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) ) + +#define ID3D11VideoContext_VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) ) + +#define ID3D11VideoContext_VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext_VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) \ + ( (This)->lpVtbl -> VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) ) + +#define ID3D11VideoContext_NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) \ + ( (This)->lpVtbl -> NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) ) + +#define ID3D11VideoContext_EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) \ + ( (This)->lpVtbl -> EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) ) + +#define ID3D11VideoContext_DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) \ + ( (This)->lpVtbl -> DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) ) + +#define ID3D11VideoContext_StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) \ + ( (This)->lpVtbl -> StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) ) + +#define ID3D11VideoContext_FinishSessionKeyRefresh(This,pCryptoSession) \ + ( (This)->lpVtbl -> FinishSessionKeyRefresh(This,pCryptoSession) ) + +#define ID3D11VideoContext_GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) \ + ( (This)->lpVtbl -> GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) ) + +#define ID3D11VideoContext_NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) \ + ( (This)->lpVtbl -> NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) ) + +#define ID3D11VideoContext_QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) \ + ( (This)->lpVtbl -> QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) ) + +#define ID3D11VideoContext_ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) \ + ( (This)->lpVtbl -> ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) ) + +#define ID3D11VideoContext_VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) ) + +#define ID3D11VideoContext_VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoContext_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11VideoDevice_INTERFACE_DEFINED__ +#define __ID3D11VideoDevice_INTERFACE_DEFINED__ + +/* interface ID3D11VideoDevice */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoDevice; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("10EC4D5B-975A-4689-B9E4-D0AAC30FE333") + ID3D11VideoDevice : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoder( + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pVideoDesc, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_CONFIG *pConfig, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoDecoder **ppDecoder) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessor( + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ UINT RateConversionIndex, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoProcessor **ppVideoProcessor) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateAuthenticatedChannel( + /* [annotation] */ + _In_ D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType, + /* [annotation] */ + _COM_Outptr_ ID3D11AuthenticatedChannel **ppAuthenticatedChannel) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateCryptoSession( + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ const GUID *pKeyExchangeType, + /* [annotation] */ + _COM_Outptr_ ID3D11CryptoSession **ppCryptoSession) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoderOutputView( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoDecoderOutputView **ppVDOVView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessorInputView( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoProcessorInputView **ppVPIView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessorOutputView( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoProcessorOutputView **ppVPOView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessorEnumerator( + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoProcessorEnumerator **ppEnum) = 0; + + virtual UINT STDMETHODCALLTYPE GetVideoDecoderProfileCount( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoDecoderProfile( + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ GUID *pDecoderProfile) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckVideoDecoderFormat( + /* [annotation] */ + _In_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ BOOL *pSupported) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoDecoderConfigCount( + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pDesc, + /* [annotation] */ + _Out_ UINT *pCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoDecoderConfig( + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pDesc, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ D3D11_VIDEO_DECODER_CONFIG *pConfig) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContentProtectionCaps( + /* [annotation] */ + _In_opt_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _Out_ D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckCryptoKeyExchange( + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ GUID *pKeyExchangeType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateData( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateDataInterface( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoDeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoDevice * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoDevice * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoDevice * This); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoDecoder) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pVideoDesc, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_CONFIG *pConfig, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoDecoder **ppDecoder); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ UINT RateConversionIndex, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoProcessor **ppVideoProcessor); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *CreateAuthenticatedChannel )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType, + /* [annotation] */ + _COM_Outptr_ ID3D11AuthenticatedChannel **ppAuthenticatedChannel); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateCryptoSession) + HRESULT ( STDMETHODCALLTYPE *CreateCryptoSession )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ const GUID *pKeyExchangeType, + /* [annotation] */ + _COM_Outptr_ ID3D11CryptoSession **ppCryptoSession); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoDecoderOutputView) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderOutputView )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoDecoderOutputView **ppVDOVView); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessorInputView) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorInputView )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoProcessorInputView **ppVPIView); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessorOutputView) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorOutputView )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoProcessorOutputView **ppVPOView); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessorEnumerator) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorEnumerator )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoProcessorEnumerator **ppEnum); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderProfileCount) + UINT ( STDMETHODCALLTYPE *GetVideoDecoderProfileCount )( + ID3D11VideoDevice * This); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderProfile) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderProfile )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ GUID *pDecoderProfile); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CheckVideoDecoderFormat) + HRESULT ( STDMETHODCALLTYPE *CheckVideoDecoderFormat )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ BOOL *pSupported); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderConfigCount) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderConfigCount )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pDesc, + /* [annotation] */ + _Out_ UINT *pCount); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderConfig) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderConfig )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pDesc, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ D3D11_VIDEO_DECODER_CONFIG *pConfig); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetContentProtectionCaps) + HRESULT ( STDMETHODCALLTYPE *GetContentProtectionCaps )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_opt_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _Out_ D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CheckCryptoKeyExchange) + HRESULT ( STDMETHODCALLTYPE *CheckCryptoKeyExchange )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ GUID *pKeyExchangeType); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoDevice * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3D11VideoDeviceVtbl; + + interface ID3D11VideoDevice + { + CONST_VTBL struct ID3D11VideoDeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoDevice_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoDevice_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoDevice_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoDevice_CreateVideoDecoder(This,pVideoDesc,pConfig,ppDecoder) \ + ( (This)->lpVtbl -> CreateVideoDecoder(This,pVideoDesc,pConfig,ppDecoder) ) + +#define ID3D11VideoDevice_CreateVideoProcessor(This,pEnum,RateConversionIndex,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,pEnum,RateConversionIndex,ppVideoProcessor) ) + +#define ID3D11VideoDevice_CreateAuthenticatedChannel(This,ChannelType,ppAuthenticatedChannel) \ + ( (This)->lpVtbl -> CreateAuthenticatedChannel(This,ChannelType,ppAuthenticatedChannel) ) + +#define ID3D11VideoDevice_CreateCryptoSession(This,pCryptoType,pDecoderProfile,pKeyExchangeType,ppCryptoSession) \ + ( (This)->lpVtbl -> CreateCryptoSession(This,pCryptoType,pDecoderProfile,pKeyExchangeType,ppCryptoSession) ) + +#define ID3D11VideoDevice_CreateVideoDecoderOutputView(This,pResource,pDesc,ppVDOVView) \ + ( (This)->lpVtbl -> CreateVideoDecoderOutputView(This,pResource,pDesc,ppVDOVView) ) + +#define ID3D11VideoDevice_CreateVideoProcessorInputView(This,pResource,pEnum,pDesc,ppVPIView) \ + ( (This)->lpVtbl -> CreateVideoProcessorInputView(This,pResource,pEnum,pDesc,ppVPIView) ) + +#define ID3D11VideoDevice_CreateVideoProcessorOutputView(This,pResource,pEnum,pDesc,ppVPOView) \ + ( (This)->lpVtbl -> CreateVideoProcessorOutputView(This,pResource,pEnum,pDesc,ppVPOView) ) + +#define ID3D11VideoDevice_CreateVideoProcessorEnumerator(This,pDesc,ppEnum) \ + ( (This)->lpVtbl -> CreateVideoProcessorEnumerator(This,pDesc,ppEnum) ) + +#define ID3D11VideoDevice_GetVideoDecoderProfileCount(This) \ + ( (This)->lpVtbl -> GetVideoDecoderProfileCount(This) ) + +#define ID3D11VideoDevice_GetVideoDecoderProfile(This,Index,pDecoderProfile) \ + ( (This)->lpVtbl -> GetVideoDecoderProfile(This,Index,pDecoderProfile) ) + +#define ID3D11VideoDevice_CheckVideoDecoderFormat(This,pDecoderProfile,Format,pSupported) \ + ( (This)->lpVtbl -> CheckVideoDecoderFormat(This,pDecoderProfile,Format,pSupported) ) + +#define ID3D11VideoDevice_GetVideoDecoderConfigCount(This,pDesc,pCount) \ + ( (This)->lpVtbl -> GetVideoDecoderConfigCount(This,pDesc,pCount) ) + +#define ID3D11VideoDevice_GetVideoDecoderConfig(This,pDesc,Index,pConfig) \ + ( (This)->lpVtbl -> GetVideoDecoderConfig(This,pDesc,Index,pConfig) ) + +#define ID3D11VideoDevice_GetContentProtectionCaps(This,pCryptoType,pDecoderProfile,pCaps) \ + ( (This)->lpVtbl -> GetContentProtectionCaps(This,pCryptoType,pDecoderProfile,pCaps) ) + +#define ID3D11VideoDevice_CheckCryptoKeyExchange(This,pCryptoType,pDecoderProfile,Index,pKeyExchangeType) \ + ( (This)->lpVtbl -> CheckCryptoKeyExchange(This,pCryptoType,pDecoderProfile,Index,pKeyExchangeType) ) + +#define ID3D11VideoDevice_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoDevice_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoDevice_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0040 */ +/* [local] */ + +#include + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0040_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0040_v0_0_s_ifspec; + +#ifndef __ID3D11Device_INTERFACE_DEFINED__ +#define __ID3D11Device_INTERFACE_DEFINED__ + +/* interface ID3D11Device */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Device; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("db6f6ddb-ac77-4e88-8253-819df9bbf140") + ID3D11Device : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateBuffer( + /* [annotation] */ + _In_ const D3D11_BUFFER_DESC *pDesc, + /* [annotation] */ + _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Buffer **ppBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateTexture1D( + /* [annotation] */ + _In_ const D3D11_TEXTURE1D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateTexture2D( + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateTexture3D( + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateShaderResourceView( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateUnorderedAccessView( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRenderTargetView( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDepthStencilView( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateInputLayout( + /* [annotation] */ + _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVertexShader( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateGeometryShader( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateGeometryShaderWithStreamOutput( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration, + /* [annotation] */ + _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries, + /* [annotation] */ + _In_reads_opt_(NumStrides) const UINT *pBufferStrides, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides, + /* [annotation] */ + _In_ UINT RasterizedStream, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePixelShader( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateHullShader( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11HullShader **ppHullShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDomainShader( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateComputeShader( + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateClassLinkage( + /* [annotation] */ + _COM_Outptr_ ID3D11ClassLinkage **ppLinkage) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateBlendState( + /* [annotation] */ + _In_ const D3D11_BLEND_DESC *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState **ppBlendState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDepthStencilState( + /* [annotation] */ + _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRasterizerState( + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSamplerState( + /* [annotation] */ + _In_ const D3D11_SAMPLER_DESC *pSamplerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateQuery( + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pQueryDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query **ppQuery) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePredicate( + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pPredicateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Predicate **ppPredicate) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateCounter( + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pCounterDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Counter **ppCounter) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDeferredContext( + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenSharedResource( + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppResource) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckFormatSupport( + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFormatSupport) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckMultisampleQualityLevels( + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels) = 0; + + virtual void STDMETHODCALLTYPE CheckCounterInfo( + /* [annotation] */ + _Out_ D3D11_COUNTER_INFO *pCounterInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckCounter( + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pDesc, + /* [annotation] */ + _Out_ D3D11_COUNTER_TYPE *pType, + /* [annotation] */ + _Out_ UINT *pActiveCounters, + /* [annotation] */ + _Out_writes_opt_(*pNameLength) LPSTR szName, + /* [annotation] */ + _Inout_opt_ UINT *pNameLength, + /* [annotation] */ + _Out_writes_opt_(*pUnitsLength) LPSTR szUnits, + /* [annotation] */ + _Inout_opt_ UINT *pUnitsLength, + /* [annotation] */ + _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription, + /* [annotation] */ + _Inout_opt_ UINT *pDescriptionLength) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckFeatureSupport( + D3D11_FEATURE Feature, + /* [annotation] */ + _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateData( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateData( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateDataInterface( + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData) = 0; + + virtual D3D_FEATURE_LEVEL STDMETHODCALLTYPE GetFeatureLevel( void) = 0; + + virtual UINT STDMETHODCALLTYPE GetCreationFlags( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDeviceRemovedReason( void) = 0; + + virtual void STDMETHODCALLTYPE GetImmediateContext( + /* [annotation] */ + _Outptr_ ID3D11DeviceContext **ppImmediateContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetExceptionMode( + UINT RaiseFlags) = 0; + + virtual UINT STDMETHODCALLTYPE GetExceptionMode( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11DeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Device * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Device * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Device * This); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBuffer) + HRESULT ( STDMETHODCALLTYPE *CreateBuffer )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_BUFFER_DESC *pDesc, + /* [annotation] */ + _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Buffer **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture1D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE1D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture2D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture3D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateShaderResourceView) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D11Device * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateUnorderedAccessView) + HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D11Device * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRenderTargetView) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D11Device * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilView) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D11Device * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateInputLayout) + HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )( + ID3D11Device * This, + /* [annotation] */ + _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateVertexShader) + HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )( + ID3D11Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShader) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )( + ID3D11Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShaderWithStreamOutput) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )( + ID3D11Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration, + /* [annotation] */ + _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries, + /* [annotation] */ + _In_reads_opt_(NumStrides) const UINT *pBufferStrides, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides, + /* [annotation] */ + _In_ UINT RasterizedStream, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePixelShader) + HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )( + ID3D11Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateHullShader) + HRESULT ( STDMETHODCALLTYPE *CreateHullShader )( + ID3D11Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11HullShader **ppHullShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDomainShader) + HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )( + ID3D11Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateComputeShader) + HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )( + ID3D11Device * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateClassLinkage) + HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )( + ID3D11Device * This, + /* [annotation] */ + _COM_Outptr_ ID3D11ClassLinkage **ppLinkage); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBlendState) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilState) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRasterizerState) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateSamplerState) + HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_SAMPLER_DESC *pSamplerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateQuery) + HRESULT ( STDMETHODCALLTYPE *CreateQuery )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pQueryDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query **ppQuery); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePredicate) + HRESULT ( STDMETHODCALLTYPE *CreatePredicate )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pPredicateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Predicate **ppPredicate); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateCounter) + HRESULT ( STDMETHODCALLTYPE *CreateCounter )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pCounterDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Counter **ppCounter); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDeferredContext) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )( + ID3D11Device * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device, OpenSharedResource) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )( + ID3D11Device * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFormatSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )( + ID3D11Device * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFormatSupport); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckMultisampleQualityLevels) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )( + ID3D11Device * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounterInfo) + void ( STDMETHODCALLTYPE *CheckCounterInfo )( + ID3D11Device * This, + /* [annotation] */ + _Out_ D3D11_COUNTER_INFO *pCounterInfo); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounter) + HRESULT ( STDMETHODCALLTYPE *CheckCounter )( + ID3D11Device * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pDesc, + /* [annotation] */ + _Out_ D3D11_COUNTER_TYPE *pType, + /* [annotation] */ + _Out_ UINT *pActiveCounters, + /* [annotation] */ + _Out_writes_opt_(*pNameLength) LPSTR szName, + /* [annotation] */ + _Inout_opt_ UINT *pNameLength, + /* [annotation] */ + _Out_writes_opt_(*pUnitsLength) LPSTR szUnits, + /* [annotation] */ + _Inout_opt_ UINT *pUnitsLength, + /* [annotation] */ + _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription, + /* [annotation] */ + _Inout_opt_ UINT *pDescriptionLength); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D11Device * This, + D3D11_FEATURE Feature, + /* [annotation] */ + _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D11Device, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Device * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Device * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Device * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, GetFeatureLevel) + D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )( + ID3D11Device * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetCreationFlags) + UINT ( STDMETHODCALLTYPE *GetCreationFlags )( + ID3D11Device * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D11Device * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetImmediateContext) + void ( STDMETHODCALLTYPE *GetImmediateContext )( + ID3D11Device * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device, SetExceptionMode) + HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )( + ID3D11Device * This, + UINT RaiseFlags); + + DECLSPEC_XFGVIRT(ID3D11Device, GetExceptionMode) + UINT ( STDMETHODCALLTYPE *GetExceptionMode )( + ID3D11Device * This); + + END_INTERFACE + } ID3D11DeviceVtbl; + + interface ID3D11Device + { + CONST_VTBL struct ID3D11DeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Device_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Device_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Device_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Device_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \ + ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) ) + +#define ID3D11Device_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \ + ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) ) + +#define ID3D11Device_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) ) + +#define ID3D11Device_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) ) + +#define ID3D11Device_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) ) + +#define ID3D11Device_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) ) + +#define ID3D11Device_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) ) + +#define ID3D11Device_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) ) + +#define ID3D11Device_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \ + ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) ) + +#define ID3D11Device_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \ + ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) ) + +#define ID3D11Device_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \ + ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) ) + +#define ID3D11Device_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \ + ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) ) + +#define ID3D11Device_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \ + ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) ) + +#define ID3D11Device_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \ + ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) ) + +#define ID3D11Device_CreateClassLinkage(This,ppLinkage) \ + ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) ) + +#define ID3D11Device_CreateBlendState(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \ + ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) ) + +#define ID3D11Device_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \ + ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) ) + +#define ID3D11Device_CreateQuery(This,pQueryDesc,ppQuery) \ + ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) ) + +#define ID3D11Device_CreatePredicate(This,pPredicateDesc,ppPredicate) \ + ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) ) + +#define ID3D11Device_CreateCounter(This,pCounterDesc,ppCounter) \ + ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) ) + +#define ID3D11Device_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) ) + +#define ID3D11Device_CheckFormatSupport(This,Format,pFormatSupport) \ + ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) ) + +#define ID3D11Device_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) ) + +#define ID3D11Device_CheckCounterInfo(This,pCounterInfo) \ + ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) ) + +#define ID3D11Device_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \ + ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) ) + +#define ID3D11Device_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D11Device_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Device_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Device_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D11Device_GetFeatureLevel(This) \ + ( (This)->lpVtbl -> GetFeatureLevel(This) ) + +#define ID3D11Device_GetCreationFlags(This) \ + ( (This)->lpVtbl -> GetCreationFlags(This) ) + +#define ID3D11Device_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D11Device_GetImmediateContext(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) ) + +#define ID3D11Device_SetExceptionMode(This,RaiseFlags) \ + ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) ) + +#define ID3D11Device_GetExceptionMode(This) \ + ( (This)->lpVtbl -> GetExceptionMode(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Device_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_0000_0041 */ +/* [local] */ + +typedef +enum D3D11_CREATE_DEVICE_FLAG + { + D3D11_CREATE_DEVICE_SINGLETHREADED = 0x1, + D3D11_CREATE_DEVICE_DEBUG = 0x2, + D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x4, + D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x8, + D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x20, + D3D11_CREATE_DEVICE_DEBUGGABLE = 0x40, + D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x80, + D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x100, + D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x800 + } D3D11_CREATE_DEVICE_FLAG; + +#define D3D11_SDK_VERSION ( 7 ) + +#if !defined( D3D11_IGNORE_SDK_LAYERS ) +#include "d3d11sdklayers.h" +#endif +#include "d3d10_1.h" +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include "d3d10shader.h" +#include "d3d10_1shader.h" +#include "d3d10misc.h" +#include "d3d10effect.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +/////////////////////////////////////////////////////////////////////////// +// D3D11CreateDevice +// ------------------ +// +// pAdapter +// If NULL, D3D11CreateDevice will choose the primary adapter and +// create a new instance from a temporarily created IDXGIFactory. +// If non-NULL, D3D11CreateDevice will register the appropriate +// device, if necessary (via IDXGIAdapter::RegisterDrver), before +// creating the device. +// DriverType +// Specifies the driver type to be created: hardware, reference or +// null. +// Software +// HMODULE of a DLL implementing a software rasterizer. Must be NULL for +// non-Software driver types. +// Flags +// Any of those documented for D3D11CreateDeviceAndSwapChain. +// pFeatureLevels +// Any of those documented for D3D11CreateDeviceAndSwapChain. +// FeatureLevels +// Size of feature levels array. +// SDKVersion +// SDK version. Use the D3D11_SDK_VERSION macro. +// ppDevice +// Pointer to returned interface. May be NULL. +// pFeatureLevel +// Pointer to returned feature level. May be NULL. +// ppImmediateContext +// Pointer to returned interface. May be NULL. +// +// Return Values +// Any of those documented for +// CreateDXGIFactory1 +// IDXGIFactory::EnumAdapters +// IDXGIAdapter::RegisterDriver +// D3D11CreateDevice +// +/////////////////////////////////////////////////////////////////////////// +typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)( _In_opt_ IDXGIAdapter*, + D3D_DRIVER_TYPE, HMODULE, UINT, + _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL*, + UINT FeatureLevels, UINT, _COM_Outptr_opt_ ID3D11Device**, + _Out_opt_ D3D_FEATURE_LEVEL*, _COM_Outptr_opt_ ID3D11DeviceContext** ); + +HRESULT WINAPI D3D11CreateDevice( + _In_opt_ IDXGIAdapter* pAdapter, + D3D_DRIVER_TYPE DriverType, + HMODULE Software, + UINT Flags, + _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL* pFeatureLevels, + UINT FeatureLevels, + UINT SDKVersion, + _COM_Outptr_opt_ ID3D11Device** ppDevice, + _Out_opt_ D3D_FEATURE_LEVEL* pFeatureLevel, + _COM_Outptr_opt_ ID3D11DeviceContext** ppImmediateContext ); + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +/////////////////////////////////////////////////////////////////////////// +// D3D11CreateDeviceAndSwapChain +// ------------------------------ +// +// ppAdapter +// If NULL, D3D11CreateDevice will choose the primary adapter and +// create a new instance from a temporarily created IDXGIFactory. +// If non-NULL, D3D11CreateDevice will register the appropriate +// device, if necessary (via IDXGIAdapter::RegisterDrver), before +// creating the device. +// DriverType +// Specifies the driver type to be created: hardware, reference or +// null. +// Software +// HMODULE of a DLL implementing a software rasterizer. Must be NULL for +// non-Software driver types. +// Flags +// Any of those documented for D3D11CreateDevice. +// pFeatureLevels +// Array of any of the following: +// D3D_FEATURE_LEVEL_11_0 +// D3D_FEATURE_LEVEL_10_1 +// D3D_FEATURE_LEVEL_10_0 +// D3D_FEATURE_LEVEL_9_3 +// D3D_FEATURE_LEVEL_9_2 +// D3D_FEATURE_LEVEL_9_1 +// Order indicates sequence in which instantiation will be attempted. If +// NULL, then the implied order is the same as previously listed (i.e. +// prefer most features available). +// FeatureLevels +// Size of feature levels array. +// SDKVersion +// SDK version. Use the D3D11_SDK_VERSION macro. +// pSwapChainDesc +// Swap chain description, may be NULL. +// ppSwapChain +// Pointer to returned interface. May be NULL. +// ppDevice +// Pointer to returned interface. May be NULL. +// pFeatureLevel +// Pointer to returned feature level. May be NULL. +// ppImmediateContext +// Pointer to returned interface. May be NULL. +// +// Return Values +// Any of those documented for +// CreateDXGIFactory1 +// IDXGIFactory::EnumAdapters +// IDXGIAdapter::RegisterDriver +// D3D11CreateDevice +// IDXGIFactory::CreateSwapChain +// +/////////////////////////////////////////////////////////////////////////// +typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)( _In_opt_ IDXGIAdapter*, + D3D_DRIVER_TYPE, HMODULE, UINT, + _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL*, + UINT FeatureLevels, UINT, _In_opt_ CONST DXGI_SWAP_CHAIN_DESC*, + _COM_Outptr_opt_ IDXGISwapChain**, _COM_Outptr_opt_ ID3D11Device**, + _Out_opt_ D3D_FEATURE_LEVEL*, _COM_Outptr_opt_ ID3D11DeviceContext** ); + +HRESULT WINAPI D3D11CreateDeviceAndSwapChain( + _In_opt_ IDXGIAdapter* pAdapter, + D3D_DRIVER_TYPE DriverType, + HMODULE Software, + UINT Flags, + _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL* pFeatureLevels, + UINT FeatureLevels, + UINT SDKVersion, + _In_opt_ CONST DXGI_SWAP_CHAIN_DESC* pSwapChainDesc, + _COM_Outptr_opt_ IDXGISwapChain** ppSwapChain, + _COM_Outptr_opt_ ID3D11Device** ppDevice, + _Out_opt_ D3D_FEATURE_LEVEL* pFeatureLevel, + _COM_Outptr_opt_ ID3D11DeviceContext** ppImmediateContext ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +DEFINE_GUID(IID_ID3D11DeviceChild,0x1841e5c8,0x16b0,0x489b,0xbc,0xc8,0x44,0xcf,0xb0,0xd5,0xde,0xae); +DEFINE_GUID(IID_ID3D11DepthStencilState,0x03823efb,0x8d8f,0x4e1c,0x9a,0xa2,0xf6,0x4b,0xb2,0xcb,0xfd,0xf1); +DEFINE_GUID(IID_ID3D11BlendState,0x75b68faa,0x347d,0x4159,0x8f,0x45,0xa0,0x64,0x0f,0x01,0xcd,0x9a); +DEFINE_GUID(IID_ID3D11RasterizerState,0x9bb4ab81,0xab1a,0x4d8f,0xb5,0x06,0xfc,0x04,0x20,0x0b,0x6e,0xe7); +DEFINE_GUID(IID_ID3D11Resource,0xdc8e63f3,0xd12b,0x4952,0xb4,0x7b,0x5e,0x45,0x02,0x6a,0x86,0x2d); +DEFINE_GUID(IID_ID3D11Buffer,0x48570b85,0xd1ee,0x4fcd,0xa2,0x50,0xeb,0x35,0x07,0x22,0xb0,0x37); +DEFINE_GUID(IID_ID3D11Texture1D,0xf8fb5c27,0xc6b3,0x4f75,0xa4,0xc8,0x43,0x9a,0xf2,0xef,0x56,0x4c); +DEFINE_GUID(IID_ID3D11Texture2D,0x6f15aaf2,0xd208,0x4e89,0x9a,0xb4,0x48,0x95,0x35,0xd3,0x4f,0x9c); +DEFINE_GUID(IID_ID3D11Texture3D,0x037e866e,0xf56d,0x4357,0xa8,0xaf,0x9d,0xab,0xbe,0x6e,0x25,0x0e); +DEFINE_GUID(IID_ID3D11View,0x839d1216,0xbb2e,0x412b,0xb7,0xf4,0xa9,0xdb,0xeb,0xe0,0x8e,0xd1); +DEFINE_GUID(IID_ID3D11ShaderResourceView,0xb0e06fe0,0x8192,0x4e1a,0xb1,0xca,0x36,0xd7,0x41,0x47,0x10,0xb2); +DEFINE_GUID(IID_ID3D11RenderTargetView,0xdfdba067,0x0b8d,0x4865,0x87,0x5b,0xd7,0xb4,0x51,0x6c,0xc1,0x64); +DEFINE_GUID(IID_ID3D11DepthStencilView,0x9fdac92a,0x1876,0x48c3,0xaf,0xad,0x25,0xb9,0x4f,0x84,0xa9,0xb6); +DEFINE_GUID(IID_ID3D11UnorderedAccessView,0x28acf509,0x7f5c,0x48f6,0x86,0x11,0xf3,0x16,0x01,0x0a,0x63,0x80); +DEFINE_GUID(IID_ID3D11VertexShader,0x3b301d64,0xd678,0x4289,0x88,0x97,0x22,0xf8,0x92,0x8b,0x72,0xf3); +DEFINE_GUID(IID_ID3D11HullShader,0x8e5c6061,0x628a,0x4c8e,0x82,0x64,0xbb,0xe4,0x5c,0xb3,0xd5,0xdd); +DEFINE_GUID(IID_ID3D11DomainShader,0xf582c508,0x0f36,0x490c,0x99,0x77,0x31,0xee,0xce,0x26,0x8c,0xfa); +DEFINE_GUID(IID_ID3D11GeometryShader,0x38325b96,0xeffb,0x4022,0xba,0x02,0x2e,0x79,0x5b,0x70,0x27,0x5c); +DEFINE_GUID(IID_ID3D11PixelShader,0xea82e40d,0x51dc,0x4f33,0x93,0xd4,0xdb,0x7c,0x91,0x25,0xae,0x8c); +DEFINE_GUID(IID_ID3D11ComputeShader,0x4f5b196e,0xc2bd,0x495e,0xbd,0x01,0x1f,0xde,0xd3,0x8e,0x49,0x69); +DEFINE_GUID(IID_ID3D11InputLayout,0xe4819ddc,0x4cf0,0x4025,0xbd,0x26,0x5d,0xe8,0x2a,0x3e,0x07,0xb7); +DEFINE_GUID(IID_ID3D11SamplerState,0xda6fea51,0x564c,0x4487,0x98,0x10,0xf0,0xd0,0xf9,0xb4,0xe3,0xa5); +DEFINE_GUID(IID_ID3D11Asynchronous,0x4b35d0cd,0x1e15,0x4258,0x9c,0x98,0x1b,0x13,0x33,0xf6,0xdd,0x3b); +DEFINE_GUID(IID_ID3D11Query,0xd6c00747,0x87b7,0x425e,0xb8,0x4d,0x44,0xd1,0x08,0x56,0x0a,0xfd); +DEFINE_GUID(IID_ID3D11Predicate,0x9eb576dd,0x9f77,0x4d86,0x81,0xaa,0x8b,0xab,0x5f,0xe4,0x90,0xe2); +DEFINE_GUID(IID_ID3D11Counter,0x6e8c49fb,0xa371,0x4770,0xb4,0x40,0x29,0x08,0x60,0x22,0xb7,0x41); +DEFINE_GUID(IID_ID3D11ClassInstance,0xa6cd7faa,0xb0b7,0x4a2f,0x94,0x36,0x86,0x62,0xa6,0x57,0x97,0xcb); +DEFINE_GUID(IID_ID3D11ClassLinkage,0xddf57cba,0x9543,0x46e4,0xa1,0x2b,0xf2,0x07,0xa0,0xfe,0x7f,0xed); +DEFINE_GUID(IID_ID3D11CommandList,0xa24bc4d1,0x769e,0x43f7,0x80,0x13,0x98,0xff,0x56,0x6c,0x18,0xe2); +DEFINE_GUID(IID_ID3D11DeviceContext,0xc0bfa96c,0xe089,0x44fb,0x8e,0xaf,0x26,0xf8,0x79,0x61,0x90,0xda); +DEFINE_GUID(IID_ID3D11VideoDecoder,0x3C9C5B51,0x995D,0x48d1,0x9B,0x8D,0xFA,0x5C,0xAE,0xDE,0xD6,0x5C); +DEFINE_GUID(IID_ID3D11VideoProcessorEnumerator,0x31627037,0x53AB,0x4200,0x90,0x61,0x05,0xFA,0xA9,0xAB,0x45,0xF9); +DEFINE_GUID(IID_ID3D11VideoProcessor,0x1D7B0652,0x185F,0x41c6,0x85,0xCE,0x0C,0x5B,0xE3,0xD4,0xAE,0x6C); +DEFINE_GUID(IID_ID3D11AuthenticatedChannel,0x3015A308,0xDCBD,0x47aa,0xA7,0x47,0x19,0x24,0x86,0xD1,0x4D,0x4A); +DEFINE_GUID(IID_ID3D11CryptoSession,0x9B32F9AD,0xBDCC,0x40a6,0xA3,0x9D,0xD5,0xC8,0x65,0x84,0x57,0x20); +DEFINE_GUID(IID_ID3D11VideoDecoderOutputView,0xC2931AEA,0x2A85,0x4f20,0x86,0x0F,0xFB,0xA1,0xFD,0x25,0x6E,0x18); +DEFINE_GUID(IID_ID3D11VideoProcessorInputView,0x11EC5A5F,0x51DC,0x4945,0xAB,0x34,0x6E,0x8C,0x21,0x30,0x0E,0xA5); +DEFINE_GUID(IID_ID3D11VideoProcessorOutputView,0xA048285E,0x25A9,0x4527,0xBD,0x93,0xD6,0x8B,0x68,0xC4,0x42,0x54); +DEFINE_GUID(IID_ID3D11VideoContext,0x61F21C45,0x3C0E,0x4a74,0x9C,0xEA,0x67,0x10,0x0D,0x9A,0xD5,0xE4); +DEFINE_GUID(IID_ID3D11VideoDevice,0x10EC4D5B,0x975A,0x4689,0xB9,0xE4,0xD0,0xAA,0xC3,0x0F,0xE3,0x33); +DEFINE_GUID(IID_ID3D11Device,0xdb6f6ddb,0xac77,0x4e88,0x82,0x53,0x81,0x9d,0xf9,0xbb,0xf1,0x40); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0041_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_0000_0041_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11.idl new file mode 100644 index 0000000000000000000000000000000000000000..cecbd199dc32c0069aaf2805e33218d575463b17 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11.idl @@ -0,0 +1,5480 @@ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// D3D11 IDL +// +// Contains interface definitions for the D3D11 API. +// +// Copyright (C) Microsoft Corporation +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +import "oaidl.idl"; +import "ocidl.idl"; +import "dxgi.idl"; +import "d3dcommon.idl"; + + +// NOTE: The following constants are generated from the D3D11 hardware spec. Do not edit these values directly. +cpp_quote( "#ifndef _D3D11_CONSTANTS" ) +cpp_quote( "#define _D3D11_CONSTANTS" ) +const UINT D3D11_16BIT_INDEX_STRIP_CUT_VALUE = 0xffff; +const UINT D3D11_32BIT_INDEX_STRIP_CUT_VALUE = 0xffffffff; +const UINT D3D11_8BIT_INDEX_STRIP_CUT_VALUE = 0xff; +const UINT D3D11_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = 9; +const UINT D3D11_CLIP_OR_CULL_DISTANCE_COUNT = 8; +const UINT D3D11_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = 2; +const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14; +const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4; +const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15; +const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16; +const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4; +const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15; +const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1; +const UINT D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1; +const UINT D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64; +const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4; +const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1; +const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1; +const UINT D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1; +const UINT D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1; +const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128; +const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1; +const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1; +const UINT D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128; +const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1; +const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16; +const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1; +const UINT D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1; +const UINT D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = 16; +const UINT D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32; +const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4; +const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = 4096; +const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3; +const UINT D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3; +const UINT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10; +const INT D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10; +const INT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8; +const UINT D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7; +const UINT D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 256; +const UINT D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = 64; +const UINT D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 240; +const UINT D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = 68; +const UINT D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 224; +const UINT D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = 72; +const UINT D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 208; +const UINT D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = 76; +const UINT D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 192; +const UINT D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = 84; +const UINT D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 176; +const UINT D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = 92; +const UINT D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 160; +const UINT D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = 100; +const UINT D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 144; +const UINT D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = 112; +const UINT D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 128; +const UINT D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = 128; +const UINT D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 112; +const UINT D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = 144; +const UINT D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 96; +const UINT D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = 168; +const UINT D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 80; +const UINT D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = 204; +const UINT D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 64; +const UINT D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = 256; +const UINT D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 48; +const UINT D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = 340; +const UINT D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 32; +const UINT D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = 512; +const UINT D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 16; +const UINT D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = 768; +const UINT D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = 1; +const UINT D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = 256; +const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = 768; +const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_X = 768; +const UINT D3D11_CS_4_X_THREAD_GROUP_MAX_Y = 768; +const UINT D3D11_CS_4_X_UAV_REGISTER_COUNT = 1; +const UINT D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = 65535; +const UINT D3D11_CS_TGSM_REGISTER_COUNT = 8192; +const UINT D3D11_CS_TGSM_REGISTER_READS_PER_INST = 1; +const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = 1; +const UINT D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = 1; +const UINT D3D11_CS_THREADGROUPID_REGISTER_COMPONENTS = 3; +const UINT D3D11_CS_THREADGROUPID_REGISTER_COUNT = 1; +const UINT D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS = 1; +const UINT D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT = 1; +const UINT D3D11_CS_THREADIDINGROUP_REGISTER_COMPONENTS = 3; +const UINT D3D11_CS_THREADIDINGROUP_REGISTER_COUNT = 1; +const UINT D3D11_CS_THREADID_REGISTER_COMPONENTS = 3; +const UINT D3D11_CS_THREADID_REGISTER_COUNT = 1; +const UINT D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = 1024; +const UINT D3D11_CS_THREAD_GROUP_MAX_X = 1024; +const UINT D3D11_CS_THREAD_GROUP_MAX_Y = 1024; +const UINT D3D11_CS_THREAD_GROUP_MAX_Z = 64; +const UINT D3D11_CS_THREAD_GROUP_MIN_X = 1; +const UINT D3D11_CS_THREAD_GROUP_MIN_Y = 1; +const UINT D3D11_CS_THREAD_GROUP_MIN_Z = 1; +const UINT D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = 16384; +cpp_quote( "#define D3D11_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )" ) +cpp_quote( "#define D3D11_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )" ) +cpp_quote( "#define D3D11_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )" ) +cpp_quote( "#define D3D11_DEFAULT_BLEND_FACTOR_RED ( 1.0f )" ) +cpp_quote( "#define D3D11_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )" ) +const UINT D3D11_DEFAULT_DEPTH_BIAS = 0; +cpp_quote( "#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )" ) +const UINT D3D11_DEFAULT_MAX_ANISOTROPY = 16; +cpp_quote( "#define D3D11_DEFAULT_MIP_LOD_BIAS ( 0.0f )" ) +const UINT D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0; +const UINT D3D11_DEFAULT_SAMPLE_MASK = 0xffffffff; +const UINT D3D11_DEFAULT_SCISSOR_ENDX = 0; +const UINT D3D11_DEFAULT_SCISSOR_ENDY = 0; +const UINT D3D11_DEFAULT_SCISSOR_STARTX = 0; +const UINT D3D11_DEFAULT_SCISSOR_STARTY = 0; +cpp_quote( "#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )" ) +const UINT D3D11_DEFAULT_STENCIL_READ_MASK = 0xff; +const UINT D3D11_DEFAULT_STENCIL_REFERENCE = 0; +const UINT D3D11_DEFAULT_STENCIL_WRITE_MASK = 0xff; +const UINT D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0; +const UINT D3D11_DEFAULT_VIEWPORT_HEIGHT = 0; +cpp_quote( "#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )" ) +cpp_quote( "#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )" ) +const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTX = 0; +const UINT D3D11_DEFAULT_VIEWPORT_TOPLEFTY = 0; +const UINT D3D11_DEFAULT_VIEWPORT_WIDTH = 0; +const UINT D3D11_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = 3968; +const UINT D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS = 4; +const UINT D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COUNT = 32; +const UINT D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST = 2; +const UINT D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS = 1; +const UINT D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS = 3; +const UINT D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT = 1; +const UINT D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST = 2; +const UINT D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS = 1; +const UINT D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = 4; +const UINT D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT = 32; +const UINT D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = 2; +const UINT D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = 1; +const UINT D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = 1; +const UINT D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = 1; +const UINT D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = 2; +const UINT D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = 1; +const UINT D3D11_DS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D11_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_DS_OUTPUT_REGISTER_COUNT = 32; +cpp_quote( "#define D3D11_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )" ) +cpp_quote( "#define D3D11_FLOAT32_MAX ( 3.402823466e+38f )" ) +cpp_quote( "#define D3D11_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )" ) +cpp_quote( "#define D3D11_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )" ) +cpp_quote( "#define D3D11_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )" ) +cpp_quote( "#define D3D11_FLOAT_TO_SRGB_OFFSET ( 0.055f )" ) +cpp_quote( "#define D3D11_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )" ) +cpp_quote( "#define D3D11_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )" ) +cpp_quote( "#define D3D11_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )" ) +cpp_quote( "#define D3D11_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )" ) +cpp_quote( "#define D3D11_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )" ) +cpp_quote( "#define D3D11_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )" ) +cpp_quote( "#define D3D11_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )" ) +const UINT D3D11_GS_INPUT_INSTANCE_ID_READS_PER_INST = 2; +const UINT D3D11_GS_INPUT_INSTANCE_ID_READ_PORTS = 1; +const UINT D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS = 1; +const UINT D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COUNT = 1; +const UINT D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = 1; +const UINT D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_GS_INPUT_PRIM_CONST_REGISTER_COUNT = 1; +const UINT D3D11_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = 2; +const UINT D3D11_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = 1; +const UINT D3D11_GS_INPUT_REGISTER_COMPONENTS = 4; +const UINT D3D11_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_GS_INPUT_REGISTER_COUNT = 32; +const UINT D3D11_GS_INPUT_REGISTER_READS_PER_INST = 2; +const UINT D3D11_GS_INPUT_REGISTER_READ_PORTS = 1; +const UINT D3D11_GS_INPUT_REGISTER_VERTICES = 32; +const UINT D3D11_GS_MAX_INSTANCE_COUNT = 32; +const UINT D3D11_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES = 1024; +const UINT D3D11_GS_OUTPUT_ELEMENTS = 32; +const UINT D3D11_GS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D11_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_GS_OUTPUT_REGISTER_COUNT = 32; +const UINT D3D11_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT = 32; +const UINT D3D11_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT = 32; +const UINT D3D11_HS_CONTROL_POINT_REGISTER_COMPONENTS = 4; +const UINT D3D11_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_HS_CONTROL_POINT_REGISTER_READS_PER_INST = 2; +const UINT D3D11_HS_CONTROL_POINT_REGISTER_READ_PORTS = 1; +const UINT D3D11_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND = 0xFFFFFFFF; +const UINT D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS = 1; +const UINT D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT = 1; +const UINT D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST = 2; +const UINT D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS = 1; +const UINT D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS = 1; +const UINT D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT = 1; +const UINT D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST = 2; +const UINT D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS = 1; +const UINT D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = 1; +const UINT D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = 1; +const UINT D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = 2; +const UINT D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = 1; +const UINT D3D11_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND = 0xFFFFFFFF; +cpp_quote( "#define D3D11_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )" ) +cpp_quote( "#define D3D11_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )" ) +const UINT D3D11_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = 3968; +const UINT D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS = 1; +const UINT D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT = 1; +const UINT D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST = 2; +const UINT D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS = 1; +const UINT D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = 4; +const UINT D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT = 32; +const UINT D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = 2; +const UINT D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = 1; +const UINT D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS = 128; +const UINT D3D11_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = 0; +const UINT D3D11_IA_DEFAULT_PRIMITIVE_TOPOLOGY = 0; +const UINT D3D11_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = 0; +const UINT D3D11_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = 1; +const UINT D3D11_IA_INSTANCE_ID_BIT_COUNT = 32; +const UINT D3D11_IA_INTEGER_ARITHMETIC_BIT_COUNT = 32; +const UINT D3D11_IA_PATCH_MAX_CONTROL_POINT_COUNT = 32; +const UINT D3D11_IA_PRIMITIVE_ID_BIT_COUNT = 32; +const UINT D3D11_IA_VERTEX_ID_BIT_COUNT = 32; +const UINT D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32; +const UINT D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 128; +const UINT D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 32; +const UINT D3D11_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = 0xffffffff; +const UINT D3D11_INTEGER_DIVIDE_BY_ZERO_REMAINDER = 0xffffffff; +const UINT D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = 0xffffffff; +const UINT D3D11_KEEP_UNORDERED_ACCESS_VIEWS = 0xffffffff; +cpp_quote( "#define D3D11_LINEAR_GAMMA ( 1.0f )" ) +const UINT D3D11_MAJOR_VERSION = 11; +cpp_quote( "#define D3D11_MAX_BORDER_COLOR_COMPONENT ( 1.0f )" ) +cpp_quote( "#define D3D11_MAX_DEPTH ( 1.0f )" ) +const UINT D3D11_MAX_MAXANISOTROPY = 16; +const UINT D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = 32; +cpp_quote( "#define D3D11_MAX_POSITION_VALUE ( 3.402823466e+34f )" ) +const UINT D3D11_MAX_TEXTURE_DIMENSION_2_TO_EXP = 17; +const UINT D3D11_MINOR_VERSION = 0; +cpp_quote( "#define D3D11_MIN_BORDER_COLOR_COMPONENT ( 0.0f )" ) +cpp_quote( "#define D3D11_MIN_DEPTH ( 0.0f )" ) +const UINT D3D11_MIN_MAXANISOTROPY = 0; +cpp_quote( "#define D3D11_MIP_LOD_BIAS_MAX ( 15.99f )" ) +cpp_quote( "#define D3D11_MIP_LOD_BIAS_MIN ( -16.0f )" ) +const UINT D3D11_MIP_LOD_FRACTIONAL_BIT_COUNT = 8; +const UINT D3D11_MIP_LOD_RANGE_BIT_COUNT = 8; +cpp_quote( "#define D3D11_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )" ) +const UINT D3D11_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = 0; +const UINT D3D11_PIXEL_ADDRESS_RANGE_BIT_COUNT = 15; +const UINT D3D11_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = 16; +const UINT D3D11_PS_CS_UAV_REGISTER_COMPONENTS = 1; +const UINT D3D11_PS_CS_UAV_REGISTER_COUNT = 8; +const UINT D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = 1; +const UINT D3D11_PS_CS_UAV_REGISTER_READ_PORTS = 1; +const UINT D3D11_PS_FRONTFACING_DEFAULT_VALUE = 0xFFFFFFFF; +const UINT D3D11_PS_FRONTFACING_FALSE_VALUE = 0x00000000; +const UINT D3D11_PS_FRONTFACING_TRUE_VALUE = 0xFFFFFFFF; +const UINT D3D11_PS_INPUT_REGISTER_COMPONENTS = 4; +const UINT D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_PS_INPUT_REGISTER_COUNT = 32; +const UINT D3D11_PS_INPUT_REGISTER_READS_PER_INST = 2; +const UINT D3D11_PS_INPUT_REGISTER_READ_PORTS = 1; +cpp_quote( "#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )" ) +const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1; +const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1; +const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1; +const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = 1; +const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_PS_OUTPUT_REGISTER_COUNT = 8; +cpp_quote( "#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )" ) +const UINT D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = 16; +const UINT D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096; +const UINT D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27; +const UINT D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096; +const UINT D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096; +const UINT D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32; +const UINT D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32; +const UINT D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384; +const UINT D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024; +const UINT D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096; +const UINT D3D11_REQ_MAXANISOTROPY = 16; +const UINT D3D11_REQ_MIP_LEVELS = 15; +const UINT D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048; +const UINT D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096; +const UINT D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384; +const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128; +cpp_quote( "#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )" ) +const UINT D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048; +const UINT D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20; +const UINT D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096; +const UINT D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048; +const UINT D3D11_REQ_TEXTURE1D_U_DIMENSION = 16384; +const UINT D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048; +const UINT D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384; +const UINT D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048; +const UINT D3D11_REQ_TEXTURECUBE_DIMENSION = 16384; +const UINT D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0; +const UINT D3D11_SHADER_MAJOR_VERSION = 5; +const UINT D3D11_SHADER_MAX_INSTANCES = 65535; +const UINT D3D11_SHADER_MAX_INTERFACES = 253; +const UINT D3D11_SHADER_MAX_INTERFACE_CALL_SITES = 4096; +const UINT D3D11_SHADER_MAX_TYPES = 65535; +const UINT D3D11_SHADER_MINOR_VERSION = 0; +const UINT D3D11_SHIFT_INSTRUCTION_PAD_VALUE = 0; +const UINT D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5; +const UINT D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = 8; +const UINT D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048; +const UINT D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512; +const UINT D3D11_SO_BUFFER_SLOT_COUNT = 4; +const UINT D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff; +const UINT D3D11_SO_NO_RASTERIZED_STREAM = 0xffffffff; +const UINT D3D11_SO_OUTPUT_COMPONENT_COUNT = 128; +const UINT D3D11_SO_STREAM_COUNT = 4; +const UINT D3D11_SPEC_DATE_DAY = 16; +const UINT D3D11_SPEC_DATE_MONTH = 05; +const UINT D3D11_SPEC_DATE_YEAR = 2011; +cpp_quote( "#define D3D11_SPEC_VERSION ( 1.07 )" ) +cpp_quote( "#define D3D11_SRGB_GAMMA ( 2.2f )" ) +cpp_quote( "#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )" ) +cpp_quote( "#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )" ) +cpp_quote( "#define D3D11_SRGB_TO_FLOAT_EXPONENT ( 2.4f )" ) +cpp_quote( "#define D3D11_SRGB_TO_FLOAT_OFFSET ( 0.055f )" ) +cpp_quote( "#define D3D11_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )" ) +cpp_quote( "#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )" ) +const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64; +const UINT D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4; +const UINT D3D11_STANDARD_PIXEL_COMPONENT_COUNT = 128; +const UINT D3D11_STANDARD_PIXEL_ELEMENT_COUNT = 32; +const UINT D3D11_STANDARD_VECTOR_SIZE = 4; +const UINT D3D11_STANDARD_VERTEX_ELEMENT_COUNT = 32; +const UINT D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64; +const UINT D3D11_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8; +const UINT D3D11_SUBTEXEL_FRACTIONAL_BIT_COUNT = 8; +const UINT D3D11_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR = 64; +const UINT D3D11_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR = 64; +const UINT D3D11_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR = 63; +const UINT D3D11_TESSELLATOR_MAX_TESSELLATION_FACTOR = 64; +const UINT D3D11_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR = 2; +const UINT D3D11_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR = 1; +const UINT D3D11_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR = 1; +const UINT D3D11_TEXEL_ADDRESS_RANGE_BIT_COUNT = 16; +const UINT D3D11_UNBOUND_MEMORY_ACCESS_RESULT = 0; +const UINT D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15; +const UINT D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16; +const UINT D3D11_VIEWPORT_BOUNDS_MAX = 32767; +const INT D3D11_VIEWPORT_BOUNDS_MIN = -32768; +const UINT D3D11_VS_INPUT_REGISTER_COMPONENTS = 4; +const UINT D3D11_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_VS_INPUT_REGISTER_COUNT = 32; +const UINT D3D11_VS_INPUT_REGISTER_READS_PER_INST = 2; +const UINT D3D11_VS_INPUT_REGISTER_READ_PORTS = 1; +const UINT D3D11_VS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D11_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D11_VS_OUTPUT_REGISTER_COUNT = 32; +const UINT D3D11_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = 10; +const UINT D3D11_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 25; +const UINT D3D11_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = 25; +cpp_quote( "#endif" ) +cpp_quote( "#ifndef _D3D11_1_CONSTANTS" ) +cpp_quote( "#define _D3D11_1_CONSTANTS" ) +const UINT D3D11_1_UAV_SLOT_COUNT = 64; +cpp_quote( "#endif" ) +cpp_quote( "#ifndef _D3D11_2_CONSTANTS" ) +cpp_quote( "#define _D3D11_2_CONSTANTS" ) +const UINT D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES = 65536; + +const UINT D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS = 4; +const UINT D3D11_4_VIDEO_DECODER_HISTOGRAM_OFFSET_ALIGNMENT = 256; +cpp_quote( "#endif" ) + + +const UINT _FACD3D11 = 0x87c; +const UINT _FACD3D11DEBUG = _FACD3D11 + 1; + +cpp_quote( "/* Direct3D errors are now found in winerror.h */" ) +cpp_quote( "#define MAKE_D3D11_HRESULT( code ) MAKE_HRESULT( 1, _FACD3D11, code )" ) +cpp_quote( "#define MAKE_D3D11_STATUS( code ) MAKE_HRESULT( 0, _FACD3D11, code )" ) + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_DEFAULT {};" ) +cpp_quote( "extern const DECLSPEC_SELECTANY CD3D11_DEFAULT D3D11_DEFAULT;" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +typedef enum D3D11_INPUT_CLASSIFICATION +{ + D3D11_INPUT_PER_VERTEX_DATA = 0, + D3D11_INPUT_PER_INSTANCE_DATA = 1 +} D3D11_INPUT_CLASSIFICATION; + +const UINT D3D11_APPEND_ALIGNED_ELEMENT = 0xffffffff; + +typedef struct D3D11_INPUT_ELEMENT_DESC +{ + LPCSTR SemanticName; + UINT SemanticIndex; + DXGI_FORMAT Format; + UINT InputSlot; + UINT AlignedByteOffset; + D3D11_INPUT_CLASSIFICATION InputSlotClass; + UINT InstanceDataStepRate; +} D3D11_INPUT_ELEMENT_DESC; + +// Keep FILL_MODE values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D11_FILL_MODE +{ + // 1 was POINT in D3D, unused in D3D11 + D3D11_FILL_WIREFRAME = 2, + D3D11_FILL_SOLID = 3 +} D3D11_FILL_MODE; + +typedef D3D_PRIMITIVE_TOPOLOGY D3D11_PRIMITIVE_TOPOLOGY; + +typedef D3D_PRIMITIVE D3D11_PRIMITIVE; + +// Keep CULL_MODE values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D11_CULL_MODE +{ + D3D11_CULL_NONE = 1, + D3D11_CULL_FRONT = 2, + D3D11_CULL_BACK = 3 +} D3D11_CULL_MODE; + +typedef struct D3D11_SO_DECLARATION_ENTRY +{ + UINT Stream; + LPCSTR SemanticName; + UINT SemanticIndex; + BYTE StartComponent; + BYTE ComponentCount; + BYTE OutputSlot; +} D3D11_SO_DECLARATION_ENTRY; + +typedef struct D3D11_VIEWPORT +{ + FLOAT TopLeftX; + FLOAT TopLeftY; + FLOAT Width; + FLOAT Height; + FLOAT MinDepth; + FLOAT MaxDepth; +} D3D11_VIEWPORT; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "inline bool operator==( const D3D11_VIEWPORT& l, const D3D11_VIEWPORT& r )" ) +cpp_quote( "{" ) +cpp_quote( " return l.TopLeftX == r.TopLeftX && l.TopLeftY == r.TopLeftY && l.Width == r.Width &&" ) +cpp_quote( " l.Height == r.Height && l.MinDepth == r.MinDepth && l.MaxDepth == r.MaxDepth;" ) +cpp_quote( "}" ) +cpp_quote( "inline bool operator!=( const D3D11_VIEWPORT& l, const D3D11_VIEWPORT& r )" ) +cpp_quote( "{ return !( l == r ); }" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +typedef struct D3D11_DRAW_INSTANCED_INDIRECT_ARGS +{ + UINT VertexCountPerInstance; + UINT InstanceCount; + UINT StartVertexLocation; + UINT StartInstanceLocation; +} D3D11_DRAW_INSTANCED_INDIRECT_ARGS; + +typedef struct D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS +{ + UINT IndexCountPerInstance; + UINT InstanceCount; + UINT StartIndexLocation; + INT BaseVertexLocation; + UINT StartInstanceLocation; +} D3D11_DRAW_INDEXED_INSTANCED_INDIRECT_ARGS; + +typedef enum D3D11_RESOURCE_DIMENSION +{ + D3D11_RESOURCE_DIMENSION_UNKNOWN = 0, + D3D11_RESOURCE_DIMENSION_BUFFER = 1, + D3D11_RESOURCE_DIMENSION_TEXTURE1D = 2, + D3D11_RESOURCE_DIMENSION_TEXTURE2D = 3, + D3D11_RESOURCE_DIMENSION_TEXTURE3D = 4, +} D3D11_RESOURCE_DIMENSION; + +typedef D3D_SRV_DIMENSION D3D11_SRV_DIMENSION; + +typedef enum D3D11_DSV_DIMENSION +{ + D3D11_DSV_DIMENSION_UNKNOWN = 0, + D3D11_DSV_DIMENSION_TEXTURE1D = 1, + D3D11_DSV_DIMENSION_TEXTURE1DARRAY = 2, + D3D11_DSV_DIMENSION_TEXTURE2D = 3, + D3D11_DSV_DIMENSION_TEXTURE2DARRAY = 4, + D3D11_DSV_DIMENSION_TEXTURE2DMS = 5, + D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY = 6, +} D3D11_DSV_DIMENSION; + +typedef enum D3D11_RTV_DIMENSION +{ + D3D11_RTV_DIMENSION_UNKNOWN = 0, + D3D11_RTV_DIMENSION_BUFFER = 1, + D3D11_RTV_DIMENSION_TEXTURE1D = 2, + D3D11_RTV_DIMENSION_TEXTURE1DARRAY = 3, + D3D11_RTV_DIMENSION_TEXTURE2D = 4, + D3D11_RTV_DIMENSION_TEXTURE2DARRAY = 5, + D3D11_RTV_DIMENSION_TEXTURE2DMS = 6, + D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D11_RTV_DIMENSION_TEXTURE3D = 8, +} D3D11_RTV_DIMENSION; + +typedef enum D3D11_UAV_DIMENSION +{ + D3D11_UAV_DIMENSION_UNKNOWN = 0, + D3D11_UAV_DIMENSION_BUFFER = 1, + D3D11_UAV_DIMENSION_TEXTURE1D = 2, + D3D11_UAV_DIMENSION_TEXTURE1DARRAY = 3, + D3D11_UAV_DIMENSION_TEXTURE2D = 4, + D3D11_UAV_DIMENSION_TEXTURE2DARRAY = 5, + D3D11_UAV_DIMENSION_TEXTURE3D = 8, +} D3D11_UAV_DIMENSION; + +typedef enum D3D11_USAGE +{ + D3D11_USAGE_DEFAULT = 0, + D3D11_USAGE_IMMUTABLE = 1, + D3D11_USAGE_DYNAMIC = 2, + D3D11_USAGE_STAGING = 3, +} D3D11_USAGE; + +typedef enum D3D11_BIND_FLAG +{ + D3D11_BIND_VERTEX_BUFFER = 0x00000001L, + D3D11_BIND_INDEX_BUFFER = 0x00000002L, + D3D11_BIND_CONSTANT_BUFFER = 0x00000004L, + D3D11_BIND_SHADER_RESOURCE = 0x00000008L, + D3D11_BIND_STREAM_OUTPUT = 0x00000010L, + D3D11_BIND_RENDER_TARGET = 0x00000020L, + D3D11_BIND_DEPTH_STENCIL = 0x00000040L, + D3D11_BIND_UNORDERED_ACCESS = 0x00000080L, + D3D11_BIND_DECODER = 0x00000200L, + D3D11_BIND_VIDEO_ENCODER = 0x00000400L, +} D3D11_BIND_FLAG; + +typedef enum D3D11_CPU_ACCESS_FLAG +{ + D3D11_CPU_ACCESS_WRITE = 0x00010000L, + D3D11_CPU_ACCESS_READ = 0x00020000L, +} D3D11_CPU_ACCESS_FLAG; + +typedef enum D3D11_RESOURCE_MISC_FLAG +{ + D3D11_RESOURCE_MISC_GENERATE_MIPS = 0x00000001L, + D3D11_RESOURCE_MISC_SHARED = 0x00000002L, + D3D11_RESOURCE_MISC_TEXTURECUBE = 0x00000004L, + D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS = 0x00000010L, + D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS = 0x00000020L, + D3D11_RESOURCE_MISC_BUFFER_STRUCTURED = 0x00000040L, + D3D11_RESOURCE_MISC_RESOURCE_CLAMP = 0x00000080L, + D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX = 0x00000100L, + D3D11_RESOURCE_MISC_GDI_COMPATIBLE = 0x00000200L, + D3D11_RESOURCE_MISC_SHARED_NTHANDLE = 0x00000800L, + D3D11_RESOURCE_MISC_RESTRICTED_CONTENT = 0x00001000L, + D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE = 0x00002000L, + D3D11_RESOURCE_MISC_RESTRICT_SHARED_RESOURCE_DRIVER = 0x00004000L, + D3D11_RESOURCE_MISC_GUARDED = 0x00008000L, + D3D11_RESOURCE_MISC_TILE_POOL = 0x00020000L, + D3D11_RESOURCE_MISC_TILED = 0x00040000L, + D3D11_RESOURCE_MISC_HW_PROTECTED = 0x00080000L, + D3D11_RESOURCE_MISC_SHARED_DISPLAYABLE = 0x00100000L, + D3D11_RESOURCE_MISC_SHARED_EXCLUSIVE_WRITER = 0x00200000L, + D3D11_RESOURCE_MISC_NO_SHADER_ACCESS = 0x00400000L, +} D3D11_RESOURCE_MISC_FLAG; + +typedef enum D3D11_MAP // for calling ID3D11Resource::Map() +{ + D3D11_MAP_READ = 1, + D3D11_MAP_WRITE = 2, + D3D11_MAP_READ_WRITE = 3, + D3D11_MAP_WRITE_DISCARD = 4, + D3D11_MAP_WRITE_NO_OVERWRITE = 5, +} D3D11_MAP; + +typedef enum D3D11_MAP_FLAG +{ + D3D11_MAP_FLAG_DO_NOT_WAIT = 0x00100000L, +} D3D11_MAP_FLAG; + +typedef enum D3D11_RAISE_FLAG +{ + D3D11_RAISE_FLAG_DRIVER_INTERNAL_ERROR = 0x1L, +} D3D11_RAISE_FLAG; + +// Flags for ClearDepthStencil +typedef enum D3D11_CLEAR_FLAG +{ + D3D11_CLEAR_DEPTH = 0x01L, + D3D11_CLEAR_STENCIL = 0x02L, +} D3D11_CLEAR_FLAG; + +typedef RECT D3D11_RECT; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_RECT : public D3D11_RECT" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_RECT() = default;" ) +cpp_quote( " explicit CD3D11_RECT( const D3D11_RECT& o ) :" ) +cpp_quote( " D3D11_RECT( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_RECT(" ) +cpp_quote( " LONG Left," ) +cpp_quote( " LONG Top," ) +cpp_quote( " LONG Right," ) +cpp_quote( " LONG Bottom )" ) +cpp_quote( " {" ) +cpp_quote( " left = Left;" ) +cpp_quote( " top = Top;" ) +cpp_quote( " right = Right;" ) +cpp_quote( " bottom = Bottom;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_RECT() {}" ) +cpp_quote( "};" ) +cpp_quote( "inline bool operator==( const D3D11_RECT& l, const D3D11_RECT& r )" ) +cpp_quote( "{" ) +cpp_quote( " return l.left == r.left && l.top == r.top &&" ) +cpp_quote( " l.right == r.right && l.bottom == r.bottom;" ) +cpp_quote( "}" ) +cpp_quote( "inline bool operator!=( const D3D11_RECT& l, const D3D11_RECT& r )" ) +cpp_quote( "{ return !( l == r ); }" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +typedef struct D3D11_BOX +{ + UINT left; + UINT top; + UINT front; + UINT right; + UINT bottom; + UINT back; +} D3D11_BOX; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_BOX : public D3D11_BOX" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_BOX() = default;" ) +cpp_quote( " explicit CD3D11_BOX( const D3D11_BOX& o ) :" ) +cpp_quote( " D3D11_BOX( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_BOX(" ) +cpp_quote( " LONG Left," ) +cpp_quote( " LONG Top," ) +cpp_quote( " LONG Front," ) +cpp_quote( " LONG Right," ) +cpp_quote( " LONG Bottom," ) +cpp_quote( " LONG Back )" ) +cpp_quote( " {" ) +cpp_quote( " left = Left;" ) +cpp_quote( " top = Top;" ) +cpp_quote( " front = Front;" ) +cpp_quote( " right = Right;" ) +cpp_quote( " bottom = Bottom;" ) +cpp_quote( " back = Back;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_BOX() {}" ) +cpp_quote( "};" ) +cpp_quote( "inline bool operator==( const D3D11_BOX& l, const D3D11_BOX& r )" ) +cpp_quote( "{" ) +cpp_quote( " return l.left == r.left && l.top == r.top && l.front == r.front &&" ) +cpp_quote( " l.right == r.right && l.bottom == r.bottom && l.back == r.back;" ) +cpp_quote( "}" ) +cpp_quote( "inline bool operator!=( const D3D11_BOX& l, const D3D11_BOX& r )" ) +cpp_quote( "{ return !( l == r ); }" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +// Forward declarations: +interface ID3D11Device; +interface ID3D11ClassLinkage; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// DeviceChild +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( 1841e5c8-16b0-489b-bcc8-44cfb0d5deae ), object, local, pointer_default( unique ) ] +interface ID3D11DeviceChild + : IUnknown +{ + void GetDevice( [annotation("_Outptr_")] ID3D11Device** ppDevice ); + HRESULT GetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_Inout_")] UINT* pDataSize, + [annotation("_Out_writes_bytes_opt_( *pDataSize )")] void* pData ); + HRESULT SetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_In_")] UINT DataSize, + [annotation("_In_reads_bytes_opt_( DataSize )")] const void* pData ); + HRESULT SetPrivateDataInterface( + [annotation("_In_")] REFGUID guid, + [annotation("_In_opt_")] const IUnknown * pData ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Depth-Stencil State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// Keep COMPARISON_FUNC values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D11_COMPARISON_FUNC +{ + D3D11_COMPARISON_NEVER = 1, + D3D11_COMPARISON_LESS = 2, + D3D11_COMPARISON_EQUAL = 3, + D3D11_COMPARISON_LESS_EQUAL = 4, + D3D11_COMPARISON_GREATER = 5, + D3D11_COMPARISON_NOT_EQUAL = 6, + D3D11_COMPARISON_GREATER_EQUAL = 7, + D3D11_COMPARISON_ALWAYS = 8 +} D3D11_COMPARISON_FUNC; + +typedef enum D3D11_DEPTH_WRITE_MASK +{ + D3D11_DEPTH_WRITE_MASK_ZERO = 0, + D3D11_DEPTH_WRITE_MASK_ALL = 1 +} D3D11_DEPTH_WRITE_MASK; + +// Keep STENCILOP values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D11_STENCIL_OP +{ + D3D11_STENCIL_OP_KEEP = 1, + D3D11_STENCIL_OP_ZERO = 2, + D3D11_STENCIL_OP_REPLACE = 3, + D3D11_STENCIL_OP_INCR_SAT = 4, + D3D11_STENCIL_OP_DECR_SAT = 5, + D3D11_STENCIL_OP_INVERT = 6, + D3D11_STENCIL_OP_INCR = 7, + D3D11_STENCIL_OP_DECR = 8 +} D3D11_STENCIL_OP; + +typedef struct D3D11_DEPTH_STENCILOP_DESC +{ + D3D11_STENCIL_OP StencilFailOp; + D3D11_STENCIL_OP StencilDepthFailOp; + D3D11_STENCIL_OP StencilPassOp; + D3D11_COMPARISON_FUNC StencilFunc; +} D3D11_DEPTH_STENCILOP_DESC; + +typedef struct D3D11_DEPTH_STENCIL_DESC +{ + BOOL DepthEnable; + D3D11_DEPTH_WRITE_MASK DepthWriteMask; + D3D11_COMPARISON_FUNC DepthFunc; + BOOL StencilEnable; + UINT8 StencilReadMask; + UINT8 StencilWriteMask; + D3D11_DEPTH_STENCILOP_DESC FrontFace; + D3D11_DEPTH_STENCILOP_DESC BackFace; +} D3D11_DEPTH_STENCIL_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_DEPTH_STENCIL_DESC : public D3D11_DEPTH_STENCIL_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_DEPTH_STENCIL_DESC() = default;" ) +cpp_quote( " explicit CD3D11_DEPTH_STENCIL_DESC( const D3D11_DEPTH_STENCIL_DESC& o ) :" ) +cpp_quote( " D3D11_DEPTH_STENCIL_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_DEPTH_STENCIL_DESC( CD3D11_DEFAULT )" ) +cpp_quote( " {" ) +cpp_quote( " DepthEnable = TRUE;" ) +cpp_quote( " DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;" ) +cpp_quote( " DepthFunc = D3D11_COMPARISON_LESS;" ) +cpp_quote( " StencilEnable = FALSE;" ) +cpp_quote( " StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;" ) +cpp_quote( " StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;" ) +cpp_quote( " const D3D11_DEPTH_STENCILOP_DESC defaultStencilOp =" ) +cpp_quote( " { D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_STENCIL_OP_KEEP, D3D11_COMPARISON_ALWAYS };" ) +cpp_quote( " FrontFace = defaultStencilOp;" ) +cpp_quote( " BackFace = defaultStencilOp;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_DEPTH_STENCIL_DESC(" ) +cpp_quote( " BOOL depthEnable," ) +cpp_quote( " D3D11_DEPTH_WRITE_MASK depthWriteMask," ) +cpp_quote( " D3D11_COMPARISON_FUNC depthFunc," ) +cpp_quote( " BOOL stencilEnable," ) +cpp_quote( " UINT8 stencilReadMask," ) +cpp_quote( " UINT8 stencilWriteMask," ) +cpp_quote( " D3D11_STENCIL_OP frontStencilFailOp," ) +cpp_quote( " D3D11_STENCIL_OP frontStencilDepthFailOp," ) +cpp_quote( " D3D11_STENCIL_OP frontStencilPassOp," ) +cpp_quote( " D3D11_COMPARISON_FUNC frontStencilFunc," ) +cpp_quote( " D3D11_STENCIL_OP backStencilFailOp," ) +cpp_quote( " D3D11_STENCIL_OP backStencilDepthFailOp," ) +cpp_quote( " D3D11_STENCIL_OP backStencilPassOp," ) +cpp_quote( " D3D11_COMPARISON_FUNC backStencilFunc )" ) +cpp_quote( " {" ) +cpp_quote( " DepthEnable = depthEnable;" ) +cpp_quote( " DepthWriteMask = depthWriteMask;" ) +cpp_quote( " DepthFunc = depthFunc;" ) +cpp_quote( " StencilEnable = stencilEnable;" ) +cpp_quote( " StencilReadMask = stencilReadMask;" ) +cpp_quote( " StencilWriteMask = stencilWriteMask;" ) +cpp_quote( " FrontFace.StencilFailOp = frontStencilFailOp;" ) +cpp_quote( " FrontFace.StencilDepthFailOp = frontStencilDepthFailOp;" ) +cpp_quote( " FrontFace.StencilPassOp = frontStencilPassOp;" ) +cpp_quote( " FrontFace.StencilFunc = frontStencilFunc;" ) +cpp_quote( " BackFace.StencilFailOp = backStencilFailOp;" ) +cpp_quote( " BackFace.StencilDepthFailOp = backStencilDepthFailOp;" ) +cpp_quote( " BackFace.StencilPassOp = backStencilPassOp;" ) +cpp_quote( " BackFace.StencilFunc = backStencilFunc;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_DEPTH_STENCIL_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 03823efb-8d8f-4e1c-9aa2-f64bb2cbfdf1 ), object, local, pointer_default( unique ) ] +interface ID3D11DepthStencilState + : ID3D11DeviceChild +{ + void GetDesc( [annotation("_Out_")] D3D11_DEPTH_STENCIL_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Blend State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// Keep BLEND values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D11_BLEND +{ + D3D11_BLEND_ZERO = 1, + D3D11_BLEND_ONE = 2, + D3D11_BLEND_SRC_COLOR = 3, // PS output oN.rgb (N is current RT being blended) + D3D11_BLEND_INV_SRC_COLOR = 4, // 1.0f - PS output oN.rgb + D3D11_BLEND_SRC_ALPHA = 5, // PS output oN.a + D3D11_BLEND_INV_SRC_ALPHA = 6, // 1.0f - PS output oN.a + D3D11_BLEND_DEST_ALPHA = 7, // RT(N).a (N is current RT being blended) + D3D11_BLEND_INV_DEST_ALPHA = 8, // 1.0f - RT(N).a + D3D11_BLEND_DEST_COLOR = 9, // RT(N).rgb + D3D11_BLEND_INV_DEST_COLOR = 10,// 1.0f - RT(N).rgb + D3D11_BLEND_SRC_ALPHA_SAT = 11,// (f,f,f,1), f = min(1 - RT(N).a, oN.a) + // 12 reserved (was BOTHSRCALPHA) + // 13 reserved (was BOTHSRCALPHA) + D3D11_BLEND_BLEND_FACTOR = 14, + D3D11_BLEND_INV_BLEND_FACTOR = 15, + D3D11_BLEND_SRC1_COLOR = 16, // PS output o1.rgb + D3D11_BLEND_INV_SRC1_COLOR = 17, // 1.0f - PS output o1.rgb + D3D11_BLEND_SRC1_ALPHA = 18, // PS output o1.a + D3D11_BLEND_INV_SRC1_ALPHA = 19, // 1.0f - PS output o1.a +} D3D11_BLEND; + +// Keep BLENDOP values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D11_BLEND_OP +{ + D3D11_BLEND_OP_ADD = 1, + D3D11_BLEND_OP_SUBTRACT = 2, + D3D11_BLEND_OP_REV_SUBTRACT = 3, + D3D11_BLEND_OP_MIN = 4, // min semantics are like min shader instruction + D3D11_BLEND_OP_MAX = 5, // max semantics are like max shader instruction +} D3D11_BLEND_OP; + +typedef enum D3D11_COLOR_WRITE_ENABLE +{ + D3D11_COLOR_WRITE_ENABLE_RED = 1, + D3D11_COLOR_WRITE_ENABLE_GREEN = 2, + D3D11_COLOR_WRITE_ENABLE_BLUE = 4, + D3D11_COLOR_WRITE_ENABLE_ALPHA = 8, + D3D11_COLOR_WRITE_ENABLE_ALL = (D3D11_COLOR_WRITE_ENABLE_RED|D3D11_COLOR_WRITE_ENABLE_GREEN| + D3D11_COLOR_WRITE_ENABLE_BLUE|D3D11_COLOR_WRITE_ENABLE_ALPHA), +} D3D11_COLOR_WRITE_ENABLE; + +typedef struct D3D11_RENDER_TARGET_BLEND_DESC +{ + BOOL BlendEnable; + D3D11_BLEND SrcBlend; + D3D11_BLEND DestBlend; + D3D11_BLEND_OP BlendOp; + D3D11_BLEND SrcBlendAlpha; + D3D11_BLEND DestBlendAlpha; + D3D11_BLEND_OP BlendOpAlpha; + UINT8 RenderTargetWriteMask; // D3D11_COLOR_WRITE_ENABLE +} D3D11_RENDER_TARGET_BLEND_DESC; + +typedef struct D3D11_BLEND_DESC +{ + BOOL AlphaToCoverageEnable; // relevant to multisample antialiasing only + BOOL IndependentBlendEnable; // if FALSE, then replicate the first entry in RenderTarget array to other entries + D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT]; +} D3D11_BLEND_DESC; +cpp_quote( "/* Note, the array size for RenderTarget[] above is D3D11_SIMULTANEOUS_RENDERTARGET_COUNT. ") +cpp_quote( " IDL processing/generation of this header replaces the define; this comment is merely explaining what happened. */" ) + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_BLEND_DESC : public D3D11_BLEND_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_BLEND_DESC() = default;" ) +cpp_quote( " explicit CD3D11_BLEND_DESC( const D3D11_BLEND_DESC& o ) :" ) +cpp_quote( " D3D11_BLEND_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_BLEND_DESC( CD3D11_DEFAULT )" ) +cpp_quote( " {" ) +cpp_quote( " AlphaToCoverageEnable = FALSE;" ) +cpp_quote( " IndependentBlendEnable = FALSE;" ) +cpp_quote( " const D3D11_RENDER_TARGET_BLEND_DESC defaultRenderTargetBlendDesc =" ) +cpp_quote( " {" ) +cpp_quote( " FALSE," ) +cpp_quote( " D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD," ) +cpp_quote( " D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD," ) +cpp_quote( " D3D11_COLOR_WRITE_ENABLE_ALL," ) +cpp_quote( " };" ) +cpp_quote( " for (UINT i = 0; i < D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; ++i)" ) +cpp_quote( " RenderTarget[ i ] = defaultRenderTargetBlendDesc;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_BLEND_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 75b68faa-347d-4159-8f45-a0640f01cd9a ), object, local, pointer_default( unique ) ] +interface ID3D11BlendState + : ID3D11DeviceChild +{ + void GetDesc( [annotation("_Out_")] D3D11_BLEND_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Rasterizer State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef struct D3D11_RASTERIZER_DESC +{ + D3D11_FILL_MODE FillMode; + D3D11_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + INT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL ScissorEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; +} D3D11_RASTERIZER_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_RASTERIZER_DESC() = default;" ) +cpp_quote( " explicit CD3D11_RASTERIZER_DESC( const D3D11_RASTERIZER_DESC& o ) :" ) +cpp_quote( " D3D11_RASTERIZER_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_RASTERIZER_DESC( CD3D11_DEFAULT )" ) +cpp_quote( " {" ) +cpp_quote( " FillMode = D3D11_FILL_SOLID;" ) +cpp_quote( " CullMode = D3D11_CULL_BACK;" ) +cpp_quote( " FrontCounterClockwise = FALSE;" ) +cpp_quote( " DepthBias = D3D11_DEFAULT_DEPTH_BIAS;" ) +cpp_quote( " DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;" ) +cpp_quote( " SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;" ) +cpp_quote( " DepthClipEnable = TRUE;" ) +cpp_quote( " ScissorEnable = FALSE;" ) +cpp_quote( " MultisampleEnable = FALSE;" ) +cpp_quote( " AntialiasedLineEnable = FALSE;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RASTERIZER_DESC(" ) +cpp_quote( " D3D11_FILL_MODE fillMode," ) +cpp_quote( " D3D11_CULL_MODE cullMode," ) +cpp_quote( " BOOL frontCounterClockwise," ) +cpp_quote( " INT depthBias," ) +cpp_quote( " FLOAT depthBiasClamp," ) +cpp_quote( " FLOAT slopeScaledDepthBias," ) +cpp_quote( " BOOL depthClipEnable," ) +cpp_quote( " BOOL scissorEnable," ) +cpp_quote( " BOOL multisampleEnable," ) +cpp_quote( " BOOL antialiasedLineEnable )" ) +cpp_quote( " {" ) +cpp_quote( " FillMode = fillMode;" ) +cpp_quote( " CullMode = cullMode;" ) +cpp_quote( " FrontCounterClockwise = frontCounterClockwise;" ) +cpp_quote( " DepthBias = depthBias;" ) +cpp_quote( " DepthBiasClamp = depthBiasClamp;" ) +cpp_quote( " SlopeScaledDepthBias = slopeScaledDepthBias;" ) +cpp_quote( " DepthClipEnable = depthClipEnable;" ) +cpp_quote( " ScissorEnable = scissorEnable;" ) +cpp_quote( " MultisampleEnable = multisampleEnable;" ) +cpp_quote( " AntialiasedLineEnable = antialiasedLineEnable;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_RASTERIZER_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 9bb4ab81-ab1a-4d8f-b506-fc04200b6ee7 ), object, local, pointer_default( unique ) ] +interface ID3D11RasterizerState + : ID3D11DeviceChild +{ + void GetDesc( [annotation("_Out_")] D3D11_RASTERIZER_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Resource +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "inline UINT D3D11CalcSubresource( UINT MipSlice, UINT ArraySlice, UINT MipLevels )" ) +cpp_quote( "{ return MipSlice + ArraySlice * MipLevels; }" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +typedef struct D3D11_SUBRESOURCE_DATA +{ + const void *pSysMem; + UINT SysMemPitch; + UINT SysMemSlicePitch; +} D3D11_SUBRESOURCE_DATA; + +typedef struct D3D11_MAPPED_SUBRESOURCE +{ + void *pData; + UINT RowPitch; + UINT DepthPitch; +} D3D11_MAPPED_SUBRESOURCE; + +[ uuid( dc8e63f3-d12b-4952-b47b-5e45026a862d ), object, local, pointer_default( unique ) ] +interface ID3D11Resource + : ID3D11DeviceChild +{ + void GetType( [annotation("_Out_")] D3D11_RESOURCE_DIMENSION* pResourceDimension ); + void SetEvictionPriority( [annotation("_In_")] UINT EvictionPriority ); + UINT GetEvictionPriority(); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Buffer +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_BUFFER_DESC +{ + UINT ByteWidth; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + UINT StructureByteStride; // Stride of Structured Buffer; ignored if STRUCTURED MiscFlag not set +} D3D11_BUFFER_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_BUFFER_DESC : public D3D11_BUFFER_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_BUFFER_DESC() = default;" ) +cpp_quote( " explicit CD3D11_BUFFER_DESC( const D3D11_BUFFER_DESC& o ) :" ) +cpp_quote( " D3D11_BUFFER_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_BUFFER_DESC(" ) +cpp_quote( " UINT byteWidth," ) +cpp_quote( " UINT bindFlags," ) +cpp_quote( " D3D11_USAGE usage = D3D11_USAGE_DEFAULT," ) +cpp_quote( " UINT cpuaccessFlags = 0," ) +cpp_quote( " UINT miscFlags = 0," ) +cpp_quote( " UINT structureByteStride = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " ByteWidth = byteWidth;" ) +cpp_quote( " Usage = usage;" ) +cpp_quote( " BindFlags = bindFlags;" ) +cpp_quote( " CPUAccessFlags = cpuaccessFlags ;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " StructureByteStride = structureByteStride;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_BUFFER_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 48570b85-d1ee-4fcd-a250-eb350722b037 ), object, local, pointer_default( unique ) ] +interface ID3D11Buffer + : ID3D11Resource +{ + void GetDesc( [annotation("_Out_")] D3D11_BUFFER_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Texture1D +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_TEXTURE1D_DESC +{ + UINT Width; + UINT MipLevels; + UINT ArraySize; + DXGI_FORMAT Format; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; +} D3D11_TEXTURE1D_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_TEXTURE1D_DESC : public D3D11_TEXTURE1D_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_TEXTURE1D_DESC() = default;" ) +cpp_quote( " explicit CD3D11_TEXTURE1D_DESC( const D3D11_TEXTURE1D_DESC& o ) :" ) +cpp_quote( " D3D11_TEXTURE1D_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_TEXTURE1D_DESC(" ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT width," ) +cpp_quote( " UINT arraySize = 1," ) +cpp_quote( " UINT mipLevels = 0," ) +cpp_quote( " UINT bindFlags = D3D11_BIND_SHADER_RESOURCE," ) +cpp_quote( " D3D11_USAGE usage = D3D11_USAGE_DEFAULT," ) +cpp_quote( " UINT cpuaccessFlags= 0," ) +cpp_quote( " UINT miscFlags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Width = width;" ) +cpp_quote( " MipLevels = mipLevels;" ) +cpp_quote( " ArraySize = arraySize;" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Usage = usage;" ) +cpp_quote( " BindFlags = bindFlags;" ) +cpp_quote( " CPUAccessFlags = cpuaccessFlags;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_TEXTURE1D_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( f8fb5c27-c6b3-4f75-a4c8-439af2ef564c ), object, local, pointer_default( unique ) ] +interface ID3D11Texture1D + : ID3D11Resource +{ + void GetDesc( [annotation("_Out_")] D3D11_TEXTURE1D_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Texture2D +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_TEXTURE2D_DESC +{ + UINT Width; + UINT Height; + UINT MipLevels; + UINT ArraySize; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; +} D3D11_TEXTURE2D_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_TEXTURE2D_DESC : public D3D11_TEXTURE2D_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_TEXTURE2D_DESC() = default;" ) +cpp_quote( " explicit CD3D11_TEXTURE2D_DESC( const D3D11_TEXTURE2D_DESC& o ) :" ) +cpp_quote( " D3D11_TEXTURE2D_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_TEXTURE2D_DESC(" ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT width," ) +cpp_quote( " UINT height," ) +cpp_quote( " UINT arraySize = 1," ) +cpp_quote( " UINT mipLevels = 0," ) +cpp_quote( " UINT bindFlags = D3D11_BIND_SHADER_RESOURCE," ) +cpp_quote( " D3D11_USAGE usage = D3D11_USAGE_DEFAULT," ) +cpp_quote( " UINT cpuaccessFlags = 0," ) +cpp_quote( " UINT sampleCount = 1," ) +cpp_quote( " UINT sampleQuality = 0," ) +cpp_quote( " UINT miscFlags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Width = width;" ) +cpp_quote( " Height = height;" ) +cpp_quote( " MipLevels = mipLevels;" ) +cpp_quote( " ArraySize = arraySize;" ) +cpp_quote( " Format = format;" ) +cpp_quote( " SampleDesc.Count = sampleCount;" ) +cpp_quote( " SampleDesc.Quality = sampleQuality;" ) +cpp_quote( " Usage = usage;" ) +cpp_quote( " BindFlags = bindFlags;" ) +cpp_quote( " CPUAccessFlags = cpuaccessFlags;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_TEXTURE2D_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 6f15aaf2-d208-4e89-9ab4-489535d34f9c ), object, local, pointer_default( unique ) ] +interface ID3D11Texture2D + : ID3D11Resource +{ + void GetDesc( [annotation("_Out_")] D3D11_TEXTURE2D_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Texture3D +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_TEXTURE3D_DESC +{ + UINT Width; + UINT Height; + UINT Depth; + UINT MipLevels; + DXGI_FORMAT Format; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; +} D3D11_TEXTURE3D_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_TEXTURE3D_DESC : public D3D11_TEXTURE3D_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_TEXTURE3D_DESC() = default;" ) +cpp_quote( " explicit CD3D11_TEXTURE3D_DESC( const D3D11_TEXTURE3D_DESC& o ) :" ) +cpp_quote( " D3D11_TEXTURE3D_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_TEXTURE3D_DESC(" ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT width," ) +cpp_quote( " UINT height," ) +cpp_quote( " UINT depth," ) +cpp_quote( " UINT mipLevels = 0," ) +cpp_quote( " UINT bindFlags = D3D11_BIND_SHADER_RESOURCE," ) +cpp_quote( " D3D11_USAGE usage = D3D11_USAGE_DEFAULT," ) +cpp_quote( " UINT cpuaccessFlags = 0," ) +cpp_quote( " UINT miscFlags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Width = width;" ) +cpp_quote( " Height = height;" ) +cpp_quote( " Depth = depth;" ) +cpp_quote( " MipLevels = mipLevels;" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Usage = usage;" ) +cpp_quote( " BindFlags = bindFlags;" ) +cpp_quote( " CPUAccessFlags = cpuaccessFlags;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_TEXTURE3D_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 037e866e-f56d-4357-a8af-9dabbe6e250e ), object, local, pointer_default( unique ) ] +interface ID3D11Texture3D + : ID3D11Resource +{ + void GetDesc( [annotation("_Out_")] D3D11_TEXTURE3D_DESC* pDesc ); +}; + +/* TextureCube Face identifiers */ +typedef enum D3D11_TEXTURECUBE_FACE +{ + D3D11_TEXTURECUBE_FACE_POSITIVE_X = 0, + D3D11_TEXTURECUBE_FACE_NEGATIVE_X = 1, + D3D11_TEXTURECUBE_FACE_POSITIVE_Y = 2, + D3D11_TEXTURECUBE_FACE_NEGATIVE_Y = 3, + D3D11_TEXTURECUBE_FACE_POSITIVE_Z = 4, + D3D11_TEXTURECUBE_FACE_NEGATIVE_Z = 5 +} D3D11_TEXTURECUBE_FACE; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// View +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 839d1216-bb2e-412b-b7f4-a9dbebe08ed1 ), object, local, pointer_default( unique ) ] +interface ID3D11View + : ID3D11DeviceChild +{ + void GetResource( [annotation("_Outptr_")] ID3D11Resource** ppResource ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// ShaderResourceView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_BUFFER_SRV +{ + union + { + UINT FirstElement; // Nicer name + UINT ElementOffset; + }; + union + { + UINT NumElements; // Nicer name + UINT ElementWidth; + }; +} D3D11_BUFFER_SRV; + +typedef enum D3D11_BUFFEREX_SRV_FLAG +{ + D3D11_BUFFEREX_SRV_FLAG_RAW = 0x00000001, // allow device multi-component reads with DWORD addressing +} D3D11_BUFFEREX_SRV_FLAG; + +typedef struct D3D11_BUFFEREX_SRV +{ + UINT FirstElement; + UINT NumElements; + UINT Flags; +} D3D11_BUFFEREX_SRV; + +typedef struct D3D11_TEX1D_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + } D3D11_TEX1D_SRV; + +typedef struct D3D11_TEX1D_ARRAY_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX1D_ARRAY_SRV; + +typedef struct D3D11_TEX2D_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; +} D3D11_TEX2D_SRV; + +typedef struct D3D11_TEX2D_ARRAY_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX2D_ARRAY_SRV; + +typedef struct D3D11_TEX3D_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; +} D3D11_TEX3D_SRV; + +typedef struct D3D11_TEXCUBE_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; +} D3D11_TEXCUBE_SRV; + +typedef struct D3D11_TEXCUBE_ARRAY_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT First2DArrayFace; + UINT NumCubes; +} D3D11_TEXCUBE_ARRAY_SRV; + +typedef struct D3D11_TEX2DMS_SRV +{ + // don't need to define anything specific for this view dimension + UINT UnusedField_NothingToDefine; +} D3D11_TEX2DMS_SRV; + +typedef struct D3D11_TEX2DMS_ARRAY_SRV +{ + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX2DMS_ARRAY_SRV; + +typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D11_SRV_DIMENSION ViewDimension; + + union + { + D3D11_BUFFER_SRV Buffer; + D3D11_TEX1D_SRV Texture1D; + D3D11_TEX1D_ARRAY_SRV Texture1DArray; + D3D11_TEX2D_SRV Texture2D; + D3D11_TEX2D_ARRAY_SRV Texture2DArray; + D3D11_TEX2DMS_SRV Texture2DMS; + D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray; + D3D11_TEX3D_SRV Texture3D; + D3D11_TEXCUBE_SRV TextureCube; + D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray; + D3D11_BUFFEREX_SRV BufferEx; + }; +} D3D11_SHADER_RESOURCE_VIEW_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_SHADER_RESOURCE_VIEW_DESC : public D3D11_SHADER_RESOURCE_VIEW_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_SHADER_RESOURCE_VIEW_DESC() = default;" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC( const D3D11_SHADER_RESOURCE_VIEW_DESC& o ) :" ) +cpp_quote( " D3D11_SHADER_RESOURCE_VIEW_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(" ) +cpp_quote( " D3D11_SRV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mostDetailedMip = 0, // FirstElement for BUFFER" ) +cpp_quote( " UINT mipLevels = -1, // NumElements for BUFFER" ) +cpp_quote( " UINT firstArraySlice = 0, // First2DArrayFace for TEXTURECUBEARRAY" ) +cpp_quote( " UINT arraySize = -1, // NumCubes for TEXTURECUBEARRAY" ) +cpp_quote( " UINT flags = 0 ) // BUFFEREX only" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_SRV_DIMENSION_BUFFER:" ) +cpp_quote( " Buffer.FirstElement = mostDetailedMip;" ) +cpp_quote( " Buffer.NumElements = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture1D.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture1DArray.MipLevels = mipLevels;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture2D.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture2DArray.MipLevels = mipLevels;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " Texture2DMSArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DMSArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE3D:" ) +cpp_quote( " Texture3D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture3D.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURECUBE:" ) +cpp_quote( " TextureCube.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " TextureCube.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:" ) +cpp_quote( " TextureCubeArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " TextureCubeArray.MipLevels = mipLevels;" ) +cpp_quote( " TextureCubeArray.First2DArrayFace = firstArraySlice;" ) +cpp_quote( " TextureCubeArray.NumCubes = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_BUFFEREX:" ) +cpp_quote( " BufferEx.FirstElement = mostDetailedMip;" ) +cpp_quote( " BufferEx.NumElements = mipLevels;" ) +cpp_quote( " BufferEx.Flags = flags;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Buffer*," ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT firstElement," ) +cpp_quote( " UINT numElements," ) +cpp_quote( " UINT flags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = D3D11_SRV_DIMENSION_BUFFEREX;" ) +cpp_quote( " BufferEx.FirstElement = firstElement;" ) +cpp_quote( " BufferEx.NumElements = numElements;" ) +cpp_quote( " BufferEx.Flags = flags;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture1D* pTex1D," ) +cpp_quote( " D3D11_SRV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mostDetailedMip = 0," ) +cpp_quote( " UINT mipLevels = -1," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == mipLevels ||" ) +cpp_quote( " ((UINT)-1 == arraySize && D3D11_SRV_DIMENSION_TEXTURE1DARRAY == viewDimension))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE1D_DESC TexDesc;" ) +cpp_quote( " pTex1D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture1D.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture1DArray.MipLevels = mipLevels;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture2D* pTex2D," ) +cpp_quote( " D3D11_SRV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mostDetailedMip = 0," ) +cpp_quote( " UINT mipLevels = -1," ) +cpp_quote( " UINT firstArraySlice = 0, // First2DArrayFace for TEXTURECUBEARRAY" ) +cpp_quote( " UINT arraySize = -1 ) // NumCubes for TEXTURECUBEARRAY" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || " ) +cpp_quote( " ((UINT)-1 == mipLevels &&" ) +cpp_quote( " D3D11_SRV_DIMENSION_TEXTURE2DMS != viewDimension &&" ) +cpp_quote( " D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY != viewDimension) ||" ) +cpp_quote( " ((UINT)-1 == arraySize &&" ) +cpp_quote( " (D3D11_SRV_DIMENSION_TEXTURE2DARRAY == viewDimension ||" ) +cpp_quote( " D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY == viewDimension ||" ) +cpp_quote( " D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension)))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE2D_DESC TexDesc;" ) +cpp_quote( " pTex2D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip;" ) +cpp_quote( " if ((UINT)-1 == arraySize)" ) +cpp_quote( " {" ) +cpp_quote( " arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " if (D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension) arraySize /= 6;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture2D.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture2DArray.MipLevels = mipLevels;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " Texture2DMSArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DMSArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURECUBE:" ) +cpp_quote( " TextureCube.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " TextureCube.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:" ) +cpp_quote( " TextureCubeArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " TextureCubeArray.MipLevels = mipLevels;" ) +cpp_quote( " TextureCubeArray.First2DArrayFace = firstArraySlice;" ) +cpp_quote( " TextureCubeArray.NumCubes = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture3D* pTex3D," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mostDetailedMip = 0," ) +cpp_quote( " UINT mipLevels = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = D3D11_SRV_DIMENSION_TEXTURE3D;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == mipLevels)" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE3D_DESC TexDesc;" ) +cpp_quote( " pTex3D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Texture3D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture3D.MipLevels = mipLevels;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_SHADER_RESOURCE_VIEW_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( b0e06fe0-8192-4e1a-b1ca-36d7414710b2 ), object, local, pointer_default( unique ) ] +interface ID3D11ShaderResourceView + : ID3D11View +{ + void GetDesc( [annotation("_Out_")] D3D11_SHADER_RESOURCE_VIEW_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// RenderTargetView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_BUFFER_RTV +{ + union + { + UINT FirstElement; // Nicer name + UINT ElementOffset; + }; + union + { + UINT NumElements; // Nicer name + UINT ElementWidth; + }; +} D3D11_BUFFER_RTV; + +typedef struct D3D11_TEX1D_RTV +{ + UINT MipSlice; +} D3D11_TEX1D_RTV; + +typedef struct D3D11_TEX1D_ARRAY_RTV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX1D_ARRAY_RTV; + +typedef struct D3D11_TEX2D_RTV +{ + UINT MipSlice; +} D3D11_TEX2D_RTV; + +typedef struct D3D11_TEX2DMS_RTV +{ + UINT UnusedField_NothingToDefine; +} D3D11_TEX2DMS_RTV; + +typedef struct D3D11_TEX2D_ARRAY_RTV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX2D_ARRAY_RTV; + +typedef struct D3D11_TEX2DMS_ARRAY_RTV +{ + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX2DMS_ARRAY_RTV; + +typedef struct D3D11_TEX3D_RTV +{ + UINT MipSlice; + UINT FirstWSlice; + UINT WSize; +} D3D11_TEX3D_RTV; + +typedef struct D3D11_RENDER_TARGET_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D11_RTV_DIMENSION ViewDimension; + + union + { + D3D11_BUFFER_RTV Buffer; + D3D11_TEX1D_RTV Texture1D; + D3D11_TEX1D_ARRAY_RTV Texture1DArray; + D3D11_TEX2D_RTV Texture2D; + D3D11_TEX2D_ARRAY_RTV Texture2DArray; + D3D11_TEX2DMS_RTV Texture2DMS; + D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray; + D3D11_TEX3D_RTV Texture3D; + }; +} D3D11_RENDER_TARGET_VIEW_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_RENDER_TARGET_VIEW_DESC : public D3D11_RENDER_TARGET_VIEW_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_RENDER_TARGET_VIEW_DESC() = default;" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC( const D3D11_RENDER_TARGET_VIEW_DESC& o ) :" ) +cpp_quote( " D3D11_RENDER_TARGET_VIEW_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC(" ) +cpp_quote( " D3D11_RTV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0, // FirstElement for BUFFER" ) +cpp_quote( " UINT firstArraySlice = 0, // NumElements for BUFFER, FirstWSlice for TEXTURE3D" ) +cpp_quote( " UINT arraySize = -1 ) // WSize for TEXTURE3D" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_RTV_DIMENSION_BUFFER:" ) +cpp_quote( " Buffer.FirstElement = mipSlice;" ) +cpp_quote( " Buffer.NumElements = firstArraySlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " Texture2DMSArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DMSArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE3D:" ) +cpp_quote( " Texture3D.MipSlice = mipSlice;" ) +cpp_quote( " Texture3D.FirstWSlice = firstArraySlice;" ) +cpp_quote( " Texture3D.WSize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Buffer*," ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT firstElement," ) +cpp_quote( " UINT numElements )" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = D3D11_RTV_DIMENSION_BUFFER;" ) +cpp_quote( " Buffer.FirstElement = firstElement;" ) +cpp_quote( " Buffer.NumElements = numElements;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture1D* pTex1D," ) +cpp_quote( " D3D11_RTV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format ||" ) +cpp_quote( " ((UINT)-1 == arraySize && D3D11_RTV_DIMENSION_TEXTURE1DARRAY == viewDimension))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE1D_DESC TexDesc;" ) +cpp_quote( " pTex1D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture2D* pTex2D," ) +cpp_quote( " D3D11_RTV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || " ) +cpp_quote( " ((UINT)-1 == arraySize &&" ) +cpp_quote( " (D3D11_RTV_DIMENSION_TEXTURE2DARRAY == viewDimension ||" ) +cpp_quote( " D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY == viewDimension)))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE2D_DESC TexDesc;" ) +cpp_quote( " pTex2D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " Texture2DMSArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DMSArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture3D* pTex3D," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstWSlice = 0," ) +cpp_quote( " UINT wSize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = D3D11_RTV_DIMENSION_TEXTURE3D;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == wSize)" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE3D_DESC TexDesc;" ) +cpp_quote( " pTex3D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == wSize) wSize = TexDesc.Depth - firstWSlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Texture3D.MipSlice = mipSlice;" ) +cpp_quote( " Texture3D.FirstWSlice = firstWSlice;" ) +cpp_quote( " Texture3D.WSize = wSize;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_RENDER_TARGET_VIEW_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( dfdba067-0b8d-4865-875b-d7b4516cc164 ), object, local, pointer_default( unique ) ] +interface ID3D11RenderTargetView + : ID3D11View +{ + void GetDesc( [annotation("_Out_")] D3D11_RENDER_TARGET_VIEW_DESC* pDesc ); +}; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_VIEWPORT : public D3D11_VIEWPORT" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_VIEWPORT() = default;" ) +cpp_quote( " explicit CD3D11_VIEWPORT( const D3D11_VIEWPORT& o ) :" ) +cpp_quote( " D3D11_VIEWPORT( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_VIEWPORT(" ) +cpp_quote( " FLOAT topLeftX," ) +cpp_quote( " FLOAT topLeftY," ) +cpp_quote( " FLOAT width," ) +cpp_quote( " FLOAT height," ) +cpp_quote( " FLOAT minDepth = D3D11_MIN_DEPTH," ) +cpp_quote( " FLOAT maxDepth = D3D11_MAX_DEPTH )" ) +cpp_quote( " {" ) +cpp_quote( " TopLeftX = topLeftX;" ) +cpp_quote( " TopLeftY = topLeftY;" ) +cpp_quote( " Width = width;" ) +cpp_quote( " Height = height;" ) +cpp_quote( " MinDepth = minDepth;" ) +cpp_quote( " MaxDepth = maxDepth;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_VIEWPORT(" ) +cpp_quote( " _In_ ID3D11Buffer*," ) +cpp_quote( " _In_ ID3D11RenderTargetView* pRTView," ) +cpp_quote( " FLOAT topLeftX = 0.0f," ) +cpp_quote( " FLOAT minDepth = D3D11_MIN_DEPTH," ) +cpp_quote( " FLOAT maxDepth = D3D11_MAX_DEPTH )" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_RENDER_TARGET_VIEW_DESC RTVDesc;" ) +cpp_quote( " pRTView->GetDesc( &RTVDesc );" ) +cpp_quote( " UINT NumElements = 0;" ) +cpp_quote( " switch (RTVDesc.ViewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_RTV_DIMENSION_BUFFER:" ) +cpp_quote( " NumElements = RTVDesc.Buffer.NumElements;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " TopLeftX = topLeftX;" ) +cpp_quote( " TopLeftY = 0.0f;" ) +cpp_quote( " Width = static_cast(NumElements) - topLeftX;" ) +cpp_quote( " Height = 1.0f;" ) +cpp_quote( " MinDepth = minDepth;" ) +cpp_quote( " MaxDepth = maxDepth;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_VIEWPORT(" ) +cpp_quote( " _In_ ID3D11Texture1D* pTex1D," ) +cpp_quote( " _In_ ID3D11RenderTargetView* pRTView," ) +cpp_quote( " FLOAT topLeftX = 0.0f," ) +cpp_quote( " FLOAT minDepth = D3D11_MIN_DEPTH," ) +cpp_quote( " FLOAT maxDepth = D3D11_MAX_DEPTH )" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE1D_DESC TexDesc;" ) +cpp_quote( " pTex1D->GetDesc( &TexDesc );" ) +cpp_quote( " D3D11_RENDER_TARGET_VIEW_DESC RTVDesc;" ) +cpp_quote( " pRTView->GetDesc( &RTVDesc );" ) +cpp_quote( " UINT MipSlice = 0;" ) +cpp_quote( " switch (RTVDesc.ViewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " MipSlice = RTVDesc.Texture1D.MipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " MipSlice = RTVDesc.Texture1DArray.MipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " const UINT SubResourceWidth = TexDesc.Width / (UINT( 1 ) << MipSlice);" ) +cpp_quote( " TopLeftX = topLeftX;" ) +cpp_quote( " TopLeftY = 0.0f;" ) +cpp_quote( " Width = static_cast(SubResourceWidth ? SubResourceWidth : 1) - topLeftX;" ) +cpp_quote( " Height = 1.0f;" ) +cpp_quote( " MinDepth = minDepth;" ) +cpp_quote( " MaxDepth = maxDepth;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_VIEWPORT(" ) +cpp_quote( " _In_ ID3D11Texture2D* pTex2D," ) +cpp_quote( " _In_ ID3D11RenderTargetView* pRTView," ) +cpp_quote( " FLOAT topLeftX = 0.0f," ) +cpp_quote( " FLOAT topLeftY = 0.0f," ) +cpp_quote( " FLOAT minDepth = D3D11_MIN_DEPTH," ) +cpp_quote( " FLOAT maxDepth = D3D11_MAX_DEPTH )" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE2D_DESC TexDesc;" ) +cpp_quote( " pTex2D->GetDesc( &TexDesc );" ) +cpp_quote( " D3D11_RENDER_TARGET_VIEW_DESC RTVDesc;" ) +cpp_quote( " pRTView->GetDesc( &RTVDesc );" ) +cpp_quote( " UINT MipSlice = 0;" ) +cpp_quote( " switch (RTVDesc.ViewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " MipSlice = RTVDesc.Texture2D.MipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " MipSlice = RTVDesc.Texture2DArray.MipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " const UINT SubResourceWidth = TexDesc.Width / (UINT( 1 ) << MipSlice);" ) +cpp_quote( " const UINT SubResourceHeight = TexDesc.Height / (UINT( 1 ) << MipSlice);" ) +cpp_quote( " TopLeftX = topLeftX;" ) +cpp_quote( " TopLeftY = topLeftY;" ) +cpp_quote( " Width = static_cast(SubResourceWidth ? SubResourceWidth : 1) - topLeftX;" ) +cpp_quote( " Height = static_cast(SubResourceHeight ? SubResourceHeight : 1) - topLeftY;" ) +cpp_quote( " MinDepth = minDepth;" ) +cpp_quote( " MaxDepth = maxDepth;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_VIEWPORT(" ) +cpp_quote( " _In_ ID3D11Texture3D* pTex3D," ) +cpp_quote( " _In_ ID3D11RenderTargetView* pRTView," ) +cpp_quote( " FLOAT topLeftX = 0.0f," ) +cpp_quote( " FLOAT topLeftY = 0.0f," ) +cpp_quote( " FLOAT minDepth = D3D11_MIN_DEPTH," ) +cpp_quote( " FLOAT maxDepth = D3D11_MAX_DEPTH )" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE3D_DESC TexDesc;" ) +cpp_quote( " pTex3D->GetDesc( &TexDesc );" ) +cpp_quote( " D3D11_RENDER_TARGET_VIEW_DESC RTVDesc;" ) +cpp_quote( " pRTView->GetDesc( &RTVDesc );" ) +cpp_quote( " UINT MipSlice = 0;" ) +cpp_quote( " switch (RTVDesc.ViewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE3D:" ) +cpp_quote( " MipSlice = RTVDesc.Texture3D.MipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " const UINT SubResourceWidth = TexDesc.Width / (UINT( 1 ) << MipSlice);" ) +cpp_quote( " const UINT SubResourceHeight = TexDesc.Height / (UINT( 1 ) << MipSlice);" ) +cpp_quote( " TopLeftX = topLeftX;" ) +cpp_quote( " TopLeftY = topLeftY;" ) +cpp_quote( " Width = static_cast(SubResourceWidth ? SubResourceWidth : 1) - topLeftX;" ) +cpp_quote( " Height = static_cast(SubResourceHeight ? SubResourceHeight : 1) - topLeftY;" ) +cpp_quote( " MinDepth = minDepth;" ) +cpp_quote( " MaxDepth = maxDepth;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_VIEWPORT() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// DepthStencilView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_TEX1D_DSV +{ + UINT MipSlice; +} D3D11_TEX1D_DSV; + +typedef struct D3D11_TEX1D_ARRAY_DSV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX1D_ARRAY_DSV; + +typedef struct D3D11_TEX2D_DSV +{ + UINT MipSlice; +} D3D11_TEX2D_DSV; + +typedef struct D3D11_TEX2D_ARRAY_DSV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX2D_ARRAY_DSV; + +typedef struct D3D11_TEX2DMS_DSV +{ + UINT UnusedField_NothingToDefine; +} D3D11_TEX2DMS_DSV; + +typedef struct D3D11_TEX2DMS_ARRAY_DSV +{ + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX2DMS_ARRAY_DSV; + +typedef enum D3D11_DSV_FLAG +{ + D3D11_DSV_READ_ONLY_DEPTH = 0x1L, + D3D11_DSV_READ_ONLY_STENCIL = 0x2L, +} D3D11_DSV_FLAG; + +typedef struct D3D11_DEPTH_STENCIL_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D11_DSV_DIMENSION ViewDimension; + UINT Flags; // D3D11_DSV_FLAG + + union + { + D3D11_TEX1D_DSV Texture1D; + D3D11_TEX1D_ARRAY_DSV Texture1DArray; + D3D11_TEX2D_DSV Texture2D; + D3D11_TEX2D_ARRAY_DSV Texture2DArray; + D3D11_TEX2DMS_DSV Texture2DMS; + D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray; + }; +} D3D11_DEPTH_STENCIL_VIEW_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_DEPTH_STENCIL_VIEW_DESC : public D3D11_DEPTH_STENCIL_VIEW_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_DEPTH_STENCIL_VIEW_DESC() = default;" ) +cpp_quote( " explicit CD3D11_DEPTH_STENCIL_VIEW_DESC( const D3D11_DEPTH_STENCIL_VIEW_DESC& o ) :" ) +cpp_quote( " D3D11_DEPTH_STENCIL_VIEW_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_DEPTH_STENCIL_VIEW_DESC(" ) +cpp_quote( " D3D11_DSV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1," ) +cpp_quote( " UINT flags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " Flags = flags;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " Texture2DMSArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DMSArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_DEPTH_STENCIL_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture1D* pTex1D," ) +cpp_quote( " D3D11_DSV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1," ) +cpp_quote( " UINT flags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " Flags = flags;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format ||" ) +cpp_quote( " ((UINT)-1 == arraySize && D3D11_DSV_DIMENSION_TEXTURE1DARRAY == viewDimension))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE1D_DESC TexDesc;" ) +cpp_quote( " pTex1D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_DEPTH_STENCIL_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture2D* pTex2D," ) +cpp_quote( " D3D11_DSV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1," ) +cpp_quote( " UINT flags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " Flags = flags;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || " ) +cpp_quote( " ((UINT)-1 == arraySize &&" ) +cpp_quote( " (D3D11_DSV_DIMENSION_TEXTURE2DARRAY == viewDimension ||" ) +cpp_quote( " D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY == viewDimension)))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE2D_DESC TexDesc;" ) +cpp_quote( " pTex2D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " Texture2DMSArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DMSArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_DEPTH_STENCIL_VIEW_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 9fdac92a-1876-48c3-afad-25b94f84a9b6 ), object, local, pointer_default( unique ) ] +interface ID3D11DepthStencilView + : ID3D11View +{ + void GetDesc( [annotation("_Out_")] D3D11_DEPTH_STENCIL_VIEW_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// UnorderedAccessView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef enum D3D11_BUFFER_UAV_FLAG +{ + D3D11_BUFFER_UAV_FLAG_RAW = 0x00000001, + D3D11_BUFFER_UAV_FLAG_APPEND = 0x00000002, + D3D11_BUFFER_UAV_FLAG_COUNTER = 0x00000004, +} D3D11_BUFFER_UAV_FLAG; + +typedef struct D3D11_BUFFER_UAV +{ + UINT FirstElement; + UINT NumElements; + UINT Flags; // See D3D11_BUFFER_UAV_FLAG_* below +} D3D11_BUFFER_UAV; + +typedef struct D3D11_TEX1D_UAV +{ + UINT MipSlice; +} D3D11_TEX1D_UAV; + +typedef struct D3D11_TEX1D_ARRAY_UAV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX1D_ARRAY_UAV; + +typedef struct D3D11_TEX2D_UAV +{ + UINT MipSlice; +} D3D11_TEX2D_UAV; + +typedef struct D3D11_TEX2D_ARRAY_UAV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX2D_ARRAY_UAV; + +typedef struct D3D11_TEX3D_UAV +{ + UINT MipSlice; + UINT FirstWSlice; + UINT WSize; +} D3D11_TEX3D_UAV; + +typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D11_UAV_DIMENSION ViewDimension; + + union + { + D3D11_BUFFER_UAV Buffer; + D3D11_TEX1D_UAV Texture1D; + D3D11_TEX1D_ARRAY_UAV Texture1DArray; + D3D11_TEX2D_UAV Texture2D; + D3D11_TEX2D_ARRAY_UAV Texture2DArray; + D3D11_TEX3D_UAV Texture3D; + }; +} D3D11_UNORDERED_ACCESS_VIEW_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_UNORDERED_ACCESS_VIEW_DESC : public D3D11_UNORDERED_ACCESS_VIEW_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_UNORDERED_ACCESS_VIEW_DESC() = default;" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC( const D3D11_UNORDERED_ACCESS_VIEW_DESC& o ) :" ) +cpp_quote( " D3D11_UNORDERED_ACCESS_VIEW_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC(" ) +cpp_quote( " D3D11_UAV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0, // FirstElement for BUFFER" ) +cpp_quote( " UINT firstArraySlice = 0, // NumElements for BUFFER, FirstWSlice for TEXTURE3D" ) +cpp_quote( " UINT arraySize = -1, // WSize for TEXTURE3D" ) +cpp_quote( " UINT flags = 0 ) // BUFFER only" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_UAV_DIMENSION_BUFFER:" ) +cpp_quote( " Buffer.FirstElement = mipSlice;" ) +cpp_quote( " Buffer.NumElements = firstArraySlice;" ) +cpp_quote( " Buffer.Flags = flags;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE3D:" ) +cpp_quote( " Texture3D.MipSlice = mipSlice;" ) +cpp_quote( " Texture3D.FirstWSlice = firstArraySlice;" ) +cpp_quote( " Texture3D.WSize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Buffer*," ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT firstElement," ) +cpp_quote( " UINT numElements," ) +cpp_quote( " UINT flags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = D3D11_UAV_DIMENSION_BUFFER;" ) +cpp_quote( " Buffer.FirstElement = firstElement;" ) +cpp_quote( " Buffer.NumElements = numElements;" ) +cpp_quote( " Buffer.Flags = flags;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture1D* pTex1D," ) +cpp_quote( " D3D11_UAV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format ||" ) +cpp_quote( " ((UINT)-1 == arraySize && D3D11_UAV_DIMENSION_TEXTURE1DARRAY == viewDimension))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE1D_DESC TexDesc;" ) +cpp_quote( " pTex1D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture2D* pTex2D," ) +cpp_quote( " D3D11_UAV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || " ) +cpp_quote( " ((UINT)-1 == arraySize && D3D11_UAV_DIMENSION_TEXTURE2DARRAY == viewDimension))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE2D_DESC TexDesc;" ) +cpp_quote( " pTex2D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC(" ) +cpp_quote( " _In_ ID3D11Texture3D* pTex3D," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstWSlice = 0," ) +cpp_quote( " UINT wSize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == wSize)" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE3D_DESC TexDesc;" ) +cpp_quote( " pTex3D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == wSize) wSize = TexDesc.Depth - firstWSlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Texture3D.MipSlice = mipSlice;" ) +cpp_quote( " Texture3D.FirstWSlice = firstWSlice;" ) +cpp_quote( " Texture3D.WSize = wSize;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_UNORDERED_ACCESS_VIEW_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 28acf509-7f5c-48f6-8611-f316010a6380 ), object, local, pointer_default( unique ) ] +interface ID3D11UnorderedAccessView + : ID3D11View +{ + void GetDesc( [annotation("_Out_")] D3D11_UNORDERED_ACCESS_VIEW_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Vertex Shader +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 3b301d64-d678-4289-8897-22f8928b72f3 ), object, local, pointer_default( unique ) ] +interface ID3D11VertexShader + : ID3D11DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Hull Shader +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 8e5c6061-628a-4c8e-8264-bbe45cb3d5dd ), object, local, pointer_default( unique ) ] +interface ID3D11HullShader + : ID3D11DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Domain Shader +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( f582c508-0f36-490c-9977-31eece268cfa ), object, local, pointer_default( unique ) ] +interface ID3D11DomainShader + : ID3D11DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Geometry Shader +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 38325b96-effb-4022-ba02-2e795b70275c ), object, local, pointer_default( unique ) ] +interface ID3D11GeometryShader + : ID3D11DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Pixel Shader +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( ea82e40d-51dc-4f33-93d4-db7c9125ae8c ), object, local, pointer_default( unique ) ] +interface ID3D11PixelShader + : ID3D11DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Compute Shader +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 4f5b196e-c2bd-495e-bd01-1fded38e4969 ), object, local, pointer_default( unique ) ] +interface ID3D11ComputeShader + : ID3D11DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// InputLayout +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( e4819ddc-4cf0-4025-bd26-5de82a3e07b7 ), object, local, pointer_default( unique ) ] +interface ID3D11InputLayout + : ID3D11DeviceChild +{ +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Sampler +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef enum D3D11_FILTER +{ + // Bits used in defining enumeration of valid filters: + // bits [1:0] - mip: 0 == point, 1 == linear, 2,3 unused + // bits [3:2] - mag: 0 == point, 1 == linear, 2,3 unused + // bits [5:4] - min: 0 == point, 1 == linear, 2,3 unused + // bit [6] - aniso + // bits [8:7] - reduction type: + // 0 == standard filtering + // 1 == comparison + // 2 == min + // 3 == max + // bit [31] - mono 1-bit (narrow-purpose filter) [no longer supported in D3D11] + + D3D11_FILTER_MIN_MAG_MIP_POINT = 0x00000000, + D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x00000001, + D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x00000004, + D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x00000005, + D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x00000010, + D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x00000011, + D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x00000014, + D3D11_FILTER_MIN_MAG_MIP_LINEAR = 0x00000015, + D3D11_FILTER_ANISOTROPIC = 0x00000055, + D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x00000080, + D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x00000081, + D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x00000084, + D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x00000085, + D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x00000090, + D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x00000091, + D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x00000094, + D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x00000095, + D3D11_FILTER_COMPARISON_ANISOTROPIC = 0x000000d5, + D3D11_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x00000100, + D3D11_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x00000101, + D3D11_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x00000104, + D3D11_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x00000105, + D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x00000110, + D3D11_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x00000111, + D3D11_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x00000114, + D3D11_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x00000115, + D3D11_FILTER_MINIMUM_ANISOTROPIC = 0x00000155, + D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x00000180, + D3D11_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x00000181, + D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x00000184, + D3D11_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x00000185, + D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x00000190, + D3D11_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x00000191, + D3D11_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x00000194, + D3D11_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x00000195, + D3D11_FILTER_MAXIMUM_ANISOTROPIC = 0x000001d5 +} D3D11_FILTER; + +typedef enum D3D11_FILTER_TYPE +{ + D3D11_FILTER_TYPE_POINT = 0, + D3D11_FILTER_TYPE_LINEAR = 1, +} D3D11_FILTER_TYPE; + +typedef enum D3D11_FILTER_REDUCTION_TYPE +{ + D3D11_FILTER_REDUCTION_TYPE_STANDARD = 0, + D3D11_FILTER_REDUCTION_TYPE_COMPARISON = 1, + D3D11_FILTER_REDUCTION_TYPE_MINIMUM = 2, + D3D11_FILTER_REDUCTION_TYPE_MAXIMUM = 3, +} D3D11_FILTER_REDUCTION_TYPE; + +const UINT D3D11_FILTER_REDUCTION_TYPE_MASK = 0x00000003; +const UINT D3D11_FILTER_REDUCTION_TYPE_SHIFT = 7; + +const UINT D3D11_FILTER_TYPE_MASK = 0x00000003; +const UINT D3D11_MIN_FILTER_SHIFT = 4; +const UINT D3D11_MAG_FILTER_SHIFT = 2; +const UINT D3D11_MIP_FILTER_SHIFT = 0; + +cpp_quote( "// D3D11_COMPARISON_FILTERING_BIT is no longer used / meaningless. The D3D11_FILTER_REDUCTION_TYPE enum replaced it. " ) +cpp_quote( "// Old code that uses D3D11_COMPARISON_FILTERING_BIT and would never use D3D11_FILTER_MINIMUM_* or D3D11_FILTER_MAXIMUM_* " ) +cpp_quote( "// will still work fine though, so the define is left to avoid breaks. " ) +const UINT D3D11_COMPARISON_FILTERING_BIT = 0x00000080; + +const UINT D3D11_ANISOTROPIC_FILTERING_BIT = 0x00000040; + +// encode enum entry for most filters except anisotropic filtering +cpp_quote( "#define D3D11_ENCODE_BASIC_FILTER( min, mag, mip, reduction ) \\" ) +cpp_quote( " ( ( D3D11_FILTER ) ( \\" ) +cpp_quote( " ( ( ( min ) & D3D11_FILTER_TYPE_MASK ) << D3D11_MIN_FILTER_SHIFT ) | \\" ) +cpp_quote( " ( ( ( mag ) & D3D11_FILTER_TYPE_MASK ) << D3D11_MAG_FILTER_SHIFT ) | \\" ) +cpp_quote( " ( ( ( mip ) & D3D11_FILTER_TYPE_MASK ) << D3D11_MIP_FILTER_SHIFT ) | \\" ) +cpp_quote( " ( ( ( reduction ) & D3D11_FILTER_REDUCTION_TYPE_MASK ) << D3D11_FILTER_REDUCTION_TYPE_SHIFT ) ) ) " ) + +// encode enum entry for anisotropic filtering (with or without comparison filtering) +cpp_quote( "#define D3D11_ENCODE_ANISOTROPIC_FILTER( reduction ) \\" ) +cpp_quote( " ( ( D3D11_FILTER ) ( \\" ) +cpp_quote( " D3D11_ANISOTROPIC_FILTERING_BIT | \\" ) +cpp_quote( " D3D11_ENCODE_BASIC_FILTER( D3D11_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " D3D11_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " D3D11_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " reduction ) ) ) " ) + +cpp_quote( "#define D3D11_DECODE_MIN_FILTER( d3d11Filter ) \\" ) +cpp_quote( " ( ( D3D11_FILTER_TYPE ) \\" ) +cpp_quote( " ( ( ( d3d11Filter ) >> D3D11_MIN_FILTER_SHIFT ) & D3D11_FILTER_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D11_DECODE_MAG_FILTER( d3d11Filter ) \\" ) +cpp_quote( " ( ( D3D11_FILTER_TYPE ) \\" ) +cpp_quote( " ( ( ( d3d11Filter ) >> D3D11_MAG_FILTER_SHIFT ) & D3D11_FILTER_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D11_DECODE_MIP_FILTER( d3d11Filter ) \\" ) +cpp_quote( " ( ( D3D11_FILTER_TYPE ) \\" ) +cpp_quote( " ( ( ( d3d11Filter ) >> D3D11_MIP_FILTER_SHIFT ) & D3D11_FILTER_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D11_DECODE_FILTER_REDUCTION( d3d11Filter ) \\" ) +cpp_quote( " ( ( D3D11_FILTER_REDUCTION_TYPE ) \\" ) +cpp_quote( " ( ( ( d3d11Filter ) >> D3D11_FILTER_REDUCTION_TYPE_SHIFT ) & D3D11_FILTER_REDUCTION_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D11_DECODE_IS_COMPARISON_FILTER( d3d11Filter ) \\" ) +cpp_quote( " ( D3D11_DECODE_FILTER_REDUCTION( d3d11Filter ) == D3D11_FILTER_REDUCTION_TYPE_COMPARISON ) " ) + +cpp_quote( "#define D3D11_DECODE_IS_ANISOTROPIC_FILTER( d3d11Filter ) \\" ) +cpp_quote( " ( ( ( d3d11Filter ) & D3D11_ANISOTROPIC_FILTERING_BIT ) && \\" ) +cpp_quote( " ( D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIN_FILTER( d3d11Filter ) ) && \\" ) +cpp_quote( " ( D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MAG_FILTER( d3d11Filter ) ) && \\" ) +cpp_quote( " ( D3D11_FILTER_TYPE_LINEAR == D3D11_DECODE_MIP_FILTER( d3d11Filter ) ) ) " ) + +typedef enum D3D11_TEXTURE_ADDRESS_MODE +{ + D3D11_TEXTURE_ADDRESS_WRAP = 1, + D3D11_TEXTURE_ADDRESS_MIRROR = 2, + D3D11_TEXTURE_ADDRESS_CLAMP = 3, + D3D11_TEXTURE_ADDRESS_BORDER = 4, + D3D11_TEXTURE_ADDRESS_MIRROR_ONCE = 5 +} D3D11_TEXTURE_ADDRESS_MODE; + +typedef struct D3D11_SAMPLER_DESC +{ + D3D11_FILTER Filter; + D3D11_TEXTURE_ADDRESS_MODE AddressU; + D3D11_TEXTURE_ADDRESS_MODE AddressV; + D3D11_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D11_COMPARISON_FUNC ComparisonFunc; + FLOAT BorderColor[4]; // RGBA + FLOAT MinLOD; + FLOAT MaxLOD; +} D3D11_SAMPLER_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_SAMPLER_DESC : public D3D11_SAMPLER_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_SAMPLER_DESC() = default;" ) +cpp_quote( " explicit CD3D11_SAMPLER_DESC( const D3D11_SAMPLER_DESC& o ) :" ) +cpp_quote( " D3D11_SAMPLER_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_SAMPLER_DESC( CD3D11_DEFAULT )" ) +cpp_quote( " {" ) +cpp_quote( " Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;" ) +cpp_quote( " AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;" ) +cpp_quote( " AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;" ) +cpp_quote( " AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;" ) +cpp_quote( " MipLODBias = 0;" ) +cpp_quote( " MaxAnisotropy = 1;" ) +cpp_quote( " ComparisonFunc = D3D11_COMPARISON_NEVER;" ) +cpp_quote( " BorderColor[ 0 ] = 1.0f;" ) +cpp_quote( " BorderColor[ 1 ] = 1.0f;" ) +cpp_quote( " BorderColor[ 2 ] = 1.0f;" ) +cpp_quote( " BorderColor[ 3 ] = 1.0f;" ) +cpp_quote( " MinLOD = -3.402823466e+38F; // -FLT_MAX" ) +cpp_quote( " MaxLOD = 3.402823466e+38F; // FLT_MAX" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_SAMPLER_DESC(" ) +cpp_quote( " D3D11_FILTER filter," ) +cpp_quote( " D3D11_TEXTURE_ADDRESS_MODE addressU," ) +cpp_quote( " D3D11_TEXTURE_ADDRESS_MODE addressV," ) +cpp_quote( " D3D11_TEXTURE_ADDRESS_MODE addressW," ) +cpp_quote( " FLOAT mipLODBias," ) +cpp_quote( " UINT maxAnisotropy," ) +cpp_quote( " D3D11_COMPARISON_FUNC comparisonFunc," ) +cpp_quote( " _In_reads_opt_( 4 ) const FLOAT* borderColor, // RGBA" ) +cpp_quote( " FLOAT minLOD," ) +cpp_quote( " FLOAT maxLOD )" ) +cpp_quote( " {" ) +cpp_quote( " Filter = filter;" ) +cpp_quote( " AddressU = addressU;" ) +cpp_quote( " AddressV = addressV;" ) +cpp_quote( " AddressW = addressW;" ) +cpp_quote( " MipLODBias = mipLODBias;" ) +cpp_quote( " MaxAnisotropy = maxAnisotropy;" ) +cpp_quote( " ComparisonFunc = comparisonFunc;" ) +cpp_quote( " const float defaultColor[ 4 ] = { 1.0f, 1.0f, 1.0f, 1.0f };" ) +cpp_quote( " if (!borderColor) borderColor = defaultColor;" ) +cpp_quote( " BorderColor[ 0 ] = borderColor[ 0 ];" ) +cpp_quote( " BorderColor[ 1 ] = borderColor[ 1 ];" ) +cpp_quote( " BorderColor[ 2 ] = borderColor[ 2 ];" ) +cpp_quote( " BorderColor[ 3 ] = borderColor[ 3 ];" ) +cpp_quote( " MinLOD = minLOD;" ) +cpp_quote( " MaxLOD = maxLOD;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_SAMPLER_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( da6fea51-564c-4487-9810-f0d0f9b4e3a5 ), object, local, pointer_default( unique ) ] +interface ID3D11SamplerState + : ID3D11DeviceChild +{ + void GetDesc( [annotation("_Out_")] D3D11_SAMPLER_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Format Support Flags for CheckFormatSupport API +// Extended enum (and the original one) are also used in CheckFeatureSupport API (which is a superset of CheckFormatSupport). +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D11_FORMAT_SUPPORT +{ + D3D11_FORMAT_SUPPORT_BUFFER = 0x00000001, + D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER = 0x00000002, + D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER = 0x00000004, + D3D11_FORMAT_SUPPORT_SO_BUFFER = 0x00000008, + D3D11_FORMAT_SUPPORT_TEXTURE1D = 0x00000010, + D3D11_FORMAT_SUPPORT_TEXTURE2D = 0x00000020, + D3D11_FORMAT_SUPPORT_TEXTURE3D = 0x00000040, + D3D11_FORMAT_SUPPORT_TEXTURECUBE = 0x00000080, + D3D11_FORMAT_SUPPORT_SHADER_LOAD = 0x00000100, + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE = 0x00000200, + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON = 0x00000400, + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT = 0x00000800, + D3D11_FORMAT_SUPPORT_MIP = 0x00001000, + D3D11_FORMAT_SUPPORT_MIP_AUTOGEN = 0x00002000, + D3D11_FORMAT_SUPPORT_RENDER_TARGET = 0x00004000, + D3D11_FORMAT_SUPPORT_BLENDABLE = 0x00008000, + D3D11_FORMAT_SUPPORT_DEPTH_STENCIL = 0x00010000, + D3D11_FORMAT_SUPPORT_CPU_LOCKABLE = 0x00020000, + D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE = 0x00040000, + D3D11_FORMAT_SUPPORT_DISPLAY = 0x00080000, + D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT = 0x00100000, + D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET = 0x00200000, + D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD = 0x00400000, + D3D11_FORMAT_SUPPORT_SHADER_GATHER = 0x00800000, + D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST = 0x01000000, + D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000, + D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON = 0x04000000, + D3D11_FORMAT_SUPPORT_DECODER_OUTPUT = 0x08000000, + D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT = 0x10000000, + D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_INPUT = 0x20000000, + D3D11_FORMAT_SUPPORT_VIDEO_ENCODER = 0x40000000, +} D3D11_FORMAT_SUPPORT; + +// D3D11_FORMAT_SUPPORT2 is only used in CheckFeatureSupport +typedef enum D3D11_FORMAT_SUPPORT2 +{ + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x00000001, + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x00000002, + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x00000004, + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x00000008, + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x00000010, + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x00000020, + D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x00000040, + D3D11_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x00000080, + D3D11_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x00000100, + D3D11_FORMAT_SUPPORT2_TILED = 0x00000200, + D3D11_FORMAT_SUPPORT2_SHAREABLE = 0x00000400, + D3D11_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x00004000, + D3D11_FORMAT_SUPPORT2_DISPLAYABLE = 0x00010000, +} D3D11_FORMAT_SUPPORT2; + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Query +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 4b35d0cd-1e15-4258-9c98-1b1333f6dd3b ), object, local, pointer_default( unique ) ] +interface ID3D11Asynchronous + : ID3D11DeviceChild +{ + UINT GetDataSize(); +}; + +typedef enum D3D11_ASYNC_GETDATA_FLAG +{ + D3D11_ASYNC_GETDATA_DONOTFLUSH = 0x1, +} D3D11_ASYNC_GETDATA_FLAG; + + +typedef enum D3D11_QUERY +{ + D3D11_QUERY_EVENT = 0, + D3D11_QUERY_OCCLUSION, + D3D11_QUERY_TIMESTAMP, + D3D11_QUERY_TIMESTAMP_DISJOINT, + D3D11_QUERY_PIPELINE_STATISTICS, + D3D11_QUERY_OCCLUSION_PREDICATE, + D3D11_QUERY_SO_STATISTICS, + D3D11_QUERY_SO_OVERFLOW_PREDICATE, + D3D11_QUERY_SO_STATISTICS_STREAM0, + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0, + D3D11_QUERY_SO_STATISTICS_STREAM1, + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1, + D3D11_QUERY_SO_STATISTICS_STREAM2, + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2, + D3D11_QUERY_SO_STATISTICS_STREAM3, + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3, +} D3D11_QUERY; + +typedef enum D3D11_QUERY_MISC_FLAG +{ + D3D11_QUERY_MISC_PREDICATEHINT = 0x1, +} D3D11_QUERY_MISC_FLAG; + +typedef struct D3D11_QUERY_DESC +{ + D3D11_QUERY Query; + UINT MiscFlags; +} D3D11_QUERY_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_QUERY_DESC : public D3D11_QUERY_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_QUERY_DESC() = default;" ) +cpp_quote( " explicit CD3D11_QUERY_DESC( const D3D11_QUERY_DESC& o ) :" ) +cpp_quote( " D3D11_QUERY_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_QUERY_DESC(" ) +cpp_quote( " D3D11_QUERY query," ) +cpp_quote( " UINT miscFlags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Query = query;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_QUERY_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( d6c00747-87b7-425e-b84d-44d108560afd ), object, local, pointer_default( unique ) ] +interface ID3D11Query + : ID3D11Asynchronous +{ + void GetDesc( [annotation("_Out_")] D3D11_QUERY_DESC* pDesc ); +}; + +[ uuid( 9eb576dd-9f77-4d86-81aa-8bab5fe490e2 ), object, local, pointer_default( unique ) ] +interface ID3D11Predicate + : ID3D11Query +{ +}; + +typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT +{ + UINT64 Frequency; + BOOL Disjoint; +} D3D11_QUERY_DATA_TIMESTAMP_DISJOINT; + +typedef struct D3D11_QUERY_DATA_PIPELINE_STATISTICS +{ + UINT64 IAVertices; + UINT64 IAPrimitives; + UINT64 VSInvocations; + UINT64 GSInvocations; + UINT64 GSPrimitives; + UINT64 CInvocations; + UINT64 CPrimitives; + UINT64 PSInvocations; + UINT64 HSInvocations; + UINT64 DSInvocations; + UINT64 CSInvocations; +} D3D11_QUERY_DATA_PIPELINE_STATISTICS; + +typedef struct D3D11_QUERY_DATA_SO_STATISTICS +{ + UINT64 NumPrimitivesWritten; + UINT64 PrimitivesStorageNeeded; +} D3D11_QUERY_DATA_SO_STATISTICS; + +typedef enum D3D11_COUNTER +{ + D3D11_COUNTER_DEVICE_DEPENDENT_0 = 0x40000000, // DO NOT define any more D3D11_COUNTER values after this. +} D3D11_COUNTER; + +typedef enum D3D11_COUNTER_TYPE +{ + D3D11_COUNTER_TYPE_FLOAT32, + D3D11_COUNTER_TYPE_UINT16, + D3D11_COUNTER_TYPE_UINT32, + D3D11_COUNTER_TYPE_UINT64, +} D3D11_COUNTER_TYPE; + +typedef struct D3D11_COUNTER_DESC +{ + D3D11_COUNTER Counter; + UINT MiscFlags; +} D3D11_COUNTER_DESC; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_COUNTER_DESC : public D3D11_COUNTER_DESC" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_COUNTER_DESC() = default;" ) +cpp_quote( " explicit CD3D11_COUNTER_DESC( const D3D11_COUNTER_DESC& o ) :" ) +cpp_quote( " D3D11_COUNTER_DESC( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_COUNTER_DESC(" ) +cpp_quote( " D3D11_COUNTER counter," ) +cpp_quote( " UINT miscFlags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Counter = counter;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_COUNTER_DESC() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + + +typedef struct D3D11_COUNTER_INFO +{ + D3D11_COUNTER LastDeviceDependentCounter; + UINT NumSimultaneousCounters; + UINT8 NumDetectableParallelUnits; +} D3D11_COUNTER_INFO; + +[ uuid( 6e8c49fb-a371-4770-b440-29086022b741 ), object, local, pointer_default( unique ) ] +interface ID3D11Counter + : ID3D11Asynchronous +{ + void GetDesc( [annotation("_Out_")] D3D11_COUNTER_DESC* pDesc ); +}; + +typedef enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS +{ + D3D11_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff, + D3D11_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe +} D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS; + +typedef enum D3D11_DEVICE_CONTEXT_TYPE +{ + D3D11_DEVICE_CONTEXT_IMMEDIATE, + D3D11_DEVICE_CONTEXT_DEFERRED, +} D3D11_DEVICE_CONTEXT_TYPE; + +typedef struct D3D11_CLASS_INSTANCE_DESC +{ + // the first two entries are valid if the instance was created using GetClassInstance + UINT InstanceId; + UINT InstanceIndex; // entry in an array of instances + // the rest of the entries are valid for instances created with CreateClassInstance + UINT TypeId; + UINT ConstantBuffer; + UINT BaseConstantBufferOffset; + UINT BaseTexture; + UINT BaseSampler; + // this lets you know which of the two an instance is + BOOL Created; +} D3D11_CLASS_INSTANCE_DESC; + +[ uuid( a6cd7faa-b0b7-4a2f-9436-8662a65797cb ), object, local, pointer_default( unique ) ] +interface ID3D11ClassInstance + : ID3D11DeviceChild +{ + void GetClassLinkage( + [annotation("_Outptr_")] ID3D11ClassLinkage** ppLinkage); + void GetDesc( + [annotation("_Out_")] D3D11_CLASS_INSTANCE_DESC* pDesc); + void GetInstanceName( + [annotation("_Out_writes_opt_(*pBufferLength)")] LPSTR pInstanceName, + [annotation("_Inout_")] SIZE_T* pBufferLength); + void GetTypeName( + [annotation("_Out_writes_opt_(*pBufferLength)")] LPSTR pTypeName, + [annotation("_Inout_")] SIZE_T* pBufferLength); +}; + +[ uuid( ddf57cba-9543-46e4-a12b-f207a0fe7fed ), object, local, pointer_default( unique ) ] +interface ID3D11ClassLinkage + : ID3D11DeviceChild +{ + // Get a reference to an instance of a class + // that exists in a shader. The common scenario is to refer to + // variables declared in shaders, which means that a reference is + // acquired with this function and then passed in on SetShader. + HRESULT GetClassInstance( + [annotation("_In_")] LPCSTR pClassInstanceName, + [annotation("_In_")] UINT InstanceIndex, + [annotation("_COM_Outptr_")] ID3D11ClassInstance** ppInstance); + + // Create a class instance reference that is the combination of a class + // type and the location of the data to use for the class instance + // - not the common scenario, but useful in case the data location + // for a class is dynamic or not known until runtime. + HRESULT CreateClassInstance( + [annotation("_In_")] LPCSTR pClassTypeName, + [annotation("_In_")] UINT ConstantBufferOffset, + [annotation("_In_")] UINT ConstantVectorOffset, + [annotation("_In_")] UINT TextureOffset, + [annotation("_In_")] UINT SamplerOffset, + [annotation("_COM_Outptr_")] ID3D11ClassInstance** ppInstance); +}; + +[ uuid( a24bc4d1-769e-43f7-8013-98ff566c18e2 ), object, local, pointer_default( unique ) ] +interface ID3D11CommandList + : ID3D11DeviceChild +{ + UINT GetContextFlags(); +}; + +typedef enum D3D11_FEATURE +{ + D3D11_FEATURE_THREADING, /* D3D11_FEATURE_DATA_THREADING */ + D3D11_FEATURE_DOUBLES, /* D3D11_FEATURE_DATA_DOUBLES */ + D3D11_FEATURE_FORMAT_SUPPORT, /* D3D11_FEATURE_DATA_FORMAT_SUPPORT */ + D3D11_FEATURE_FORMAT_SUPPORT2, /* D3D11_FEATURE_DATA_FORMAT_SUPPORT2 */ + D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS, /* D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS */ + D3D11_FEATURE_D3D11_OPTIONS, /* D3D11_FEATURE_DATA_D3D11_OPTIONS */ + D3D11_FEATURE_ARCHITECTURE_INFO, /* D3D11_FEATURE_DATA_ARCHITECTURE_INFO */ + D3D11_FEATURE_D3D9_OPTIONS, /* D3D11_FEATURE_DATA_D3D9_OPTIONS */ + D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT, /* D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT */ + D3D11_FEATURE_D3D9_SHADOW_SUPPORT, /* D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT */ + D3D11_FEATURE_D3D11_OPTIONS1, /* D3D11_FEATURE_D3D11_OPTIONS1 */ + D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT, /* D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT */ + D3D11_FEATURE_MARKER_SUPPORT, /* D3D11_FEATURE_DATA_MARKER_SUPPORT */ + D3D11_FEATURE_D3D9_OPTIONS1, /* D3D11_FEATURE_DATA_D3D9_OPTIONS1 */ + D3D11_FEATURE_D3D11_OPTIONS2, /* D3D11_FEATURE_DATA_D3D11_OPTIONS2 */ + D3D11_FEATURE_D3D11_OPTIONS3, /* D3D11_FEATURE_DATA_D3D11_OPTIONS3 */ + D3D11_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT, /* D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT */ + D3D11_FEATURE_D3D11_OPTIONS4, /* D3D11_FEATURE_DATA_D3D11_OPTIONS4 */ + D3D11_FEATURE_SHADER_CACHE, /* D3D11_FEATURE_DATA_SHADER_CACHE */ + D3D11_FEATURE_D3D11_OPTIONS5, /* D3D11_FEATURE_DATA_D3D11_OPTIONS5 */ + D3D11_FEATURE_DISPLAYABLE, /* D3D11_FEATURE_DATA_DISPLAYABLE */ + D3D11_FEATURE_D3D11_OPTIONS6, /* D3D11_FEATURE_DATA_D3D11_OPTIONS6 */ + +} D3D11_FEATURE; + +typedef struct D3D11_FEATURE_DATA_THREADING +{ + BOOL DriverConcurrentCreates; + BOOL DriverCommandLists; +} D3D11_FEATURE_DATA_THREADING; + +typedef struct D3D11_FEATURE_DATA_DOUBLES +{ + BOOL DoublePrecisionFloatShaderOps; +} D3D11_FEATURE_DATA_DOUBLES; + +typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT +{ + DXGI_FORMAT InFormat; + UINT OutFormatSupport; +} D3D11_FEATURE_DATA_FORMAT_SUPPORT; + +typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2 +{ + DXGI_FORMAT InFormat; + UINT OutFormatSupport2; +} D3D11_FEATURE_DATA_FORMAT_SUPPORT2; + +typedef struct D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS +{ + BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x; +} D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS; + + +cpp_quote( "// =============================================================================" ) +cpp_quote( "// In the D3D11_FEATURE_DATA_D3D11_OPTIONS struct below, " ) +cpp_quote( "// the following groupings of capabilities will always be set identically. " ) +cpp_quote( "// That is, all the BOOLs in a grouping will be TRUE or FALSE together. " ) +cpp_quote( "// " ) +cpp_quote( "// Group: DiscardAPIsSeenByDriver, FlagsForUpdateAndCopySeenByDriver " ) +cpp_quote( "// " ) +cpp_quote( "// Group: ClearView, CopyWithOverlap, ConstantBufferPartialUpdate " ) +cpp_quote( "// ConstantBufferOffsetting, MapNoOverwriteOnDynamicConstantBuffer " ) +cpp_quote( "// " ) +cpp_quote( "// Group: MapNoOverwriteOnDynamicBufferSRV, ") +cpp_quote( "// MultisampleRTVWithForcedSampleCountOne " ) +cpp_quote( "// " ) +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS +{ + BOOL OutputMergerLogicOp; + BOOL UAVOnlyRenderingForcedSampleCount; + + BOOL DiscardAPIsSeenByDriver; + BOOL FlagsForUpdateAndCopySeenByDriver; + + BOOL ClearView; + BOOL CopyWithOverlap; + BOOL ConstantBufferPartialUpdate; + BOOL ConstantBufferOffsetting; + BOOL MapNoOverwriteOnDynamicConstantBuffer; + + BOOL MapNoOverwriteOnDynamicBufferSRV; + BOOL MultisampleRTVWithForcedSampleCountOne; + + BOOL SAD4ShaderInstructions; + BOOL ExtendedDoublesShaderInstructions; + + BOOL ExtendedResourceSharing; +} D3D11_FEATURE_DATA_D3D11_OPTIONS; + +typedef struct D3D11_FEATURE_DATA_ARCHITECTURE_INFO +{ + BOOL TileBasedDeferredRenderer; +} D3D11_FEATURE_DATA_ARCHITECTURE_INFO; + +typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS +{ + BOOL FullNonPow2TextureSupport; +} D3D11_FEATURE_DATA_D3D9_OPTIONS; + +typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT +{ + BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter; +} D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT; + +typedef enum D3D11_SHADER_MIN_PRECISION_SUPPORT +{ + D3D11_SHADER_MIN_PRECISION_10_BIT = 0x1, + D3D11_SHADER_MIN_PRECISION_16_BIT = 0x2 +} D3D11_SHADER_MIN_PRECISION_SUPPORT; + +typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT +{ + UINT PixelShaderMinPrecision; // D3D11_SHADER_MIN_PRECISION_SUPPORT flags for PS + UINT AllOtherShaderStagesMinPrecision; // D3D11_SHADER_MIN_PRECISION_SUPPORT flags for other stages +} D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT; + +typedef enum D3D11_TILED_RESOURCES_TIER +{ + D3D11_TILED_RESOURCES_NOT_SUPPORTED = 0, + D3D11_TILED_RESOURCES_TIER_1 = 1, + D3D11_TILED_RESOURCES_TIER_2 = 2, + D3D11_TILED_RESOURCES_TIER_3 = 3, +} D3D11_TILED_RESOURCES_TIER; + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS1 +{ + D3D11_TILED_RESOURCES_TIER TiledResourcesTier; + BOOL MinMaxFiltering; + BOOL ClearViewAlsoSupportsDepthOnlyFormats; + BOOL MapOnDefaultBuffers; +} D3D11_FEATURE_DATA_D3D11_OPTIONS1; + +typedef struct D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT +{ + BOOL SimpleInstancingSupported; +} D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT; + +typedef struct D3D11_FEATURE_DATA_MARKER_SUPPORT +{ + BOOL Profile; +} D3D11_FEATURE_DATA_MARKER_SUPPORT; + +typedef struct D3D11_FEATURE_DATA_D3D9_OPTIONS1 +{ + BOOL FullNonPow2TextureSupported; + BOOL DepthAsTextureWithLessEqualComparisonFilterSupported; + BOOL SimpleInstancingSupported; + BOOL TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported; +} D3D11_FEATURE_DATA_D3D9_OPTIONS1; + +typedef enum D3D11_CONSERVATIVE_RASTERIZATION_TIER { + D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED = 0, + D3D11_CONSERVATIVE_RASTERIZATION_TIER_1 = 1, + D3D11_CONSERVATIVE_RASTERIZATION_TIER_2 = 2, + D3D11_CONSERVATIVE_RASTERIZATION_TIER_3 = 3, +} D3D11_CONSERVATIVE_RASTERIZATION_TIER; + + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS2 +{ + BOOL PSSpecifiedStencilRefSupported; + BOOL TypedUAVLoadAdditionalFormats; + BOOL ROVsSupported; + D3D11_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier; + D3D11_TILED_RESOURCES_TIER TiledResourcesTier; + BOOL MapOnDefaultTextures; + BOOL StandardSwizzle; + BOOL UnifiedMemoryArchitecture; +} D3D11_FEATURE_DATA_D3D11_OPTIONS2; + + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS3 +{ + BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizer; +} D3D11_FEATURE_DATA_D3D11_OPTIONS3; + +typedef struct D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT +{ + UINT MaxGPUVirtualAddressBitsPerResource; + UINT MaxGPUVirtualAddressBitsPerProcess; +} D3D11_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT; + +typedef enum D3D11_SHADER_CACHE_SUPPORT_FLAGS +{ + D3D11_SHADER_CACHE_SUPPORT_NONE = 0x0, + D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x1, + D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x2, +} D3D11_SHADER_CACHE_SUPPORT_FLAGS; + +typedef struct D3D11_FEATURE_DATA_SHADER_CACHE +{ + UINT SupportFlags; +} D3D11_FEATURE_DATA_SHADER_CACHE; + +typedef enum D3D11_SHARED_RESOURCE_TIER +{ + D3D11_SHARED_RESOURCE_TIER_0, + D3D11_SHARED_RESOURCE_TIER_1, + D3D11_SHARED_RESOURCE_TIER_2, + D3D11_SHARED_RESOURCE_TIER_3, +} D3D11_SHARED_RESOURCE_TIER; + +typedef struct D3D11_FEATURE_DATA_DISPLAYABLE +{ + BOOL DisplayableTexture; + D3D11_SHARED_RESOURCE_TIER SharedResourceTier; +} D3D11_FEATURE_DATA_DISPLAYABLE; + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS5 +{ + D3D11_SHARED_RESOURCE_TIER SharedResourceTier; +} D3D11_FEATURE_DATA_D3D11_OPTIONS5; + +typedef enum D3D11_SHADER_ACCESS_RESTRICTED_RESOURCE_TIER +{ + D3D11_SHADER_ACCESS_RESTRICTED_RESOURCE_TIER_0 = 0, + D3D11_SHADER_ACCESS_RESTRICTED_RESOURCE_TIER_1 = 1, +} D3D11_SHADER_ACCESS_RESTRICTED_RESOURCE_TIER; + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS6 +{ + D3D11_SHADER_ACCESS_RESTRICTED_RESOURCE_TIER ShaderAccessRestrictedResourceTier; +} D3D11_FEATURE_DATA_D3D11_OPTIONS6; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// DeviceContext +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( c0bfa96c-e089-44fb-8eaf-26f8796190da ), object, local, pointer_default( unique ) ] +interface ID3D11DeviceContext + : ID3D11DeviceChild +{ + // !!! Order of functions is in decreasing order of priority ( as far as performance is concerned ) !!! + // !!! BEGIN HIGH-FREQUENCY !!! + void VSSetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers ); + void PSSetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D11ShaderResourceView*const* ppShaderResourceViews ); + void PSSetShader( + [annotation("_In_opt_")] ID3D11PixelShader* pPixelShader, + [annotation("_In_reads_opt_(NumClassInstances)")] ID3D11ClassInstance*const* ppClassInstances, + UINT NumClassInstances ); + void PSSetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_In_reads_opt_(NumSamplers)")] ID3D11SamplerState*const* ppSamplers ); + void VSSetShader( + [annotation("_In_opt_")] ID3D11VertexShader* pVertexShader, + [annotation("_In_reads_opt_(NumClassInstances)")] ID3D11ClassInstance*const* ppClassInstances, + UINT NumClassInstances ); + void DrawIndexed( + [annotation("_In_")] UINT IndexCount, + [annotation("_In_")] UINT StartIndexLocation, + [annotation("_In_")] INT BaseVertexLocation ); + void Draw( + [annotation("_In_")] UINT VertexCount, + [annotation("_In_")] UINT StartVertexLocation ); + HRESULT Map( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_")] UINT Subresource, + [annotation("_In_")] D3D11_MAP MapType, + [annotation("_In_")] UINT MapFlags, + [annotation("_Out_opt_")] D3D11_MAPPED_SUBRESOURCE* pMappedResource ); + void Unmap( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_")] UINT Subresource ); + void PSSetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers ); + void IASetInputLayout( [annotation("_In_opt_")] ID3D11InputLayout* pInputLayout ); + void IASetVertexBuffers( + [annotation("_In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppVertexBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pStrides, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pOffsets ); + void IASetIndexBuffer( + [annotation("_In_opt_")] ID3D11Buffer* pIndexBuffer, + [annotation("_In_")] DXGI_FORMAT Format, + [annotation("_In_")] UINT Offset ); + // !!! END HIGH-FREQUENCY !!! + + // !!! Order of functions is in decreasing order of priority ( as far as performance is concerned ) !!! + // !!! BEGIN MIDDLE-FREQUENCY !!! + void DrawIndexedInstanced( + [annotation("_In_")] UINT IndexCountPerInstance, + [annotation("_In_")] UINT InstanceCount, + [annotation("_In_")] UINT StartIndexLocation, + [annotation("_In_")] INT BaseVertexLocation, + [annotation("_In_")] UINT StartInstanceLocation ); + void DrawInstanced( + [annotation("_In_")] UINT VertexCountPerInstance, + [annotation("_In_")] UINT InstanceCount, + [annotation("_In_")] UINT StartVertexLocation, + [annotation("_In_")] UINT StartInstanceLocation ); + void GSSetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers ); + void GSSetShader( + [annotation("_In_opt_")] ID3D11GeometryShader* pShader, + [annotation("_In_reads_opt_(NumClassInstances)")] ID3D11ClassInstance*const* ppClassInstances, + UINT NumClassInstances ); + void IASetPrimitiveTopology( [annotation("_In_")] D3D11_PRIMITIVE_TOPOLOGY Topology ); + void VSSetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D11ShaderResourceView*const* ppShaderResourceViews ); + void VSSetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_In_reads_opt_(NumSamplers)")] ID3D11SamplerState*const* ppSamplers ); + void Begin( [annotation("_In_")] ID3D11Asynchronous* pAsync ); + void End( [annotation("_In_")] ID3D11Asynchronous* pAsync ); + HRESULT GetData( + [annotation("_In_")] ID3D11Asynchronous* pAsync, + [annotation("_Out_writes_bytes_opt_( DataSize )")] void* pData, + [annotation("_In_")] UINT DataSize, + [annotation("_In_")] UINT GetDataFlags ); + void SetPredication( + [annotation("_In_opt_")] ID3D11Predicate* pPredicate, + [annotation("_In_")] BOOL PredicateValue ); + void GSSetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D11ShaderResourceView*const* ppShaderResourceViews ); + void GSSetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_In_reads_opt_(NumSamplers)")] ID3D11SamplerState*const* ppSamplers ); + void OMSetRenderTargets( + [annotation("_In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D11RenderTargetView*const* ppRenderTargetViews, + [annotation("_In_opt_")] ID3D11DepthStencilView* pDepthStencilView ); + void OMSetRenderTargetsAndUnorderedAccessViews( + [annotation("_In_")] UINT NumRTVs, + [annotation("_In_reads_opt_(NumRTVs)")] ID3D11RenderTargetView*const* ppRenderTargetViews, + [annotation("_In_opt_")] ID3D11DepthStencilView* pDepthStencilView, + [annotation("_In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 )")] UINT UAVStartSlot, + [annotation("_In_")] UINT NumUAVs, + [annotation("_In_reads_opt_(NumUAVs)")] ID3D11UnorderedAccessView*const* ppUnorderedAccessViews, + [annotation("_In_reads_opt_(NumUAVs)")] const UINT* pUAVInitialCounts ); + void OMSetBlendState( + [annotation("_In_opt_")] ID3D11BlendState *pBlendState, + [annotation("_In_opt_")] const FLOAT BlendFactor[ 4 ], + [annotation("_In_")] UINT SampleMask ); + void OMSetDepthStencilState( + [annotation("_In_opt_")] ID3D11DepthStencilState* pDepthStencilState, + [annotation("_In_")] UINT StencilRef ); + void SOSetTargets( + [annotation("_In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT)")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppSOTargets, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pOffsets ); + void DrawAuto(); + void DrawIndexedInstancedIndirect( + [annotation("_In_")] ID3D11Buffer* pBufferForArgs, + [annotation("_In_")] UINT AlignedByteOffsetForArgs ); + void DrawInstancedIndirect( + [annotation("_In_")] ID3D11Buffer* pBufferForArgs, + [annotation("_In_")] UINT AlignedByteOffsetForArgs ); + void Dispatch( + [annotation("_In_")] UINT ThreadGroupCountX, + [annotation("_In_")] UINT ThreadGroupCountY, + [annotation("_In_")] UINT ThreadGroupCountZ ); + void DispatchIndirect( + [annotation("_In_")] ID3D11Buffer* pBufferForArgs, + [annotation("_In_")] UINT AlignedByteOffsetForArgs ); + void RSSetState( [annotation("_In_opt_")] ID3D11RasterizerState* pRasterizerState ); + void RSSetViewports( + [annotation("_In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE)")] UINT NumViewports, + [annotation("_In_reads_opt_(NumViewports)")] const D3D11_VIEWPORT* pViewports ); + void RSSetScissorRects( + [annotation("_In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE)")] UINT NumRects, + [annotation("_In_reads_opt_(NumRects)")] const D3D11_RECT* pRects ); + void CopySubresourceRegion( + [annotation("_In_")] ID3D11Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_")] UINT DstX, + [annotation("_In_")] UINT DstY, + [annotation("_In_")] UINT DstZ, + [annotation("_In_")] ID3D11Resource* pSrcResource, + [annotation("_In_")] UINT SrcSubresource, + [annotation("_In_opt_")] const D3D11_BOX* pSrcBox ); + void CopyResource( + [annotation("_In_")] ID3D11Resource* pDstResource, + [annotation("_In_")] ID3D11Resource* pSrcResource ); + void UpdateSubresource( + [annotation("_In_")] ID3D11Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_opt_")] const D3D11_BOX* pDstBox, + [annotation("_In_")] const void* pSrcData, + [annotation("_In_")] UINT SrcRowPitch, + [annotation("_In_")] UINT SrcDepthPitch ); + void CopyStructureCount( + [annotation("_In_")] ID3D11Buffer* pDstBuffer, + [annotation("_In_")] UINT DstAlignedByteOffset, + [annotation("_In_")] ID3D11UnorderedAccessView* pSrcView ); + void ClearRenderTargetView( + [annotation("_In_")] ID3D11RenderTargetView* pRenderTargetView, + [annotation("_In_")] const FLOAT ColorRGBA[ 4 ] ); + void ClearUnorderedAccessViewUint( + [annotation("_In_")] ID3D11UnorderedAccessView* pUnorderedAccessView, + [annotation("_In_")] const UINT Values[4] ); + void ClearUnorderedAccessViewFloat( + [annotation("_In_")] ID3D11UnorderedAccessView* pUnorderedAccessView, + [annotation("_In_")] const FLOAT Values[4] ); + void ClearDepthStencilView( + [annotation("_In_")] ID3D11DepthStencilView* pDepthStencilView, + [annotation("_In_")] UINT ClearFlags, + [annotation("_In_")] FLOAT Depth, + [annotation("_In_")] UINT8 Stencil ); + void GenerateMips( [annotation("_In_")] ID3D11ShaderResourceView* pShaderResourceView ); + void SetResourceMinLOD( [annotation("_In_")] ID3D11Resource* pResource, FLOAT MinLOD ); + FLOAT GetResourceMinLOD( [annotation("_In_")] ID3D11Resource* pResource ); + void ResolveSubresource( + [annotation("_In_")] ID3D11Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_")] ID3D11Resource* pSrcResource, + [annotation("_In_")] UINT SrcSubresource, + [annotation("_In_")] DXGI_FORMAT Format ); + void ExecuteCommandList( + [annotation("_In_")] ID3D11CommandList* pCommandList, + BOOL RestoreContextState ); + void HSSetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D11ShaderResourceView*const* ppShaderResourceViews ); + void HSSetShader( + [annotation("_In_opt_")] ID3D11HullShader* pHullShader, + [annotation("_In_reads_opt_(NumClassInstances)")] ID3D11ClassInstance*const* ppClassInstances, + UINT NumClassInstances ); + void HSSetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_In_reads_opt_(NumSamplers)")] ID3D11SamplerState*const* ppSamplers ); + void HSSetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers ); + void DSSetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D11ShaderResourceView*const* ppShaderResourceViews ); + void DSSetShader( + [annotation("_In_opt_")] ID3D11DomainShader* pDomainShader, + [annotation("_In_reads_opt_(NumClassInstances)")] ID3D11ClassInstance*const* ppClassInstances, + UINT NumClassInstances ); + void DSSetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_In_reads_opt_(NumSamplers)")] ID3D11SamplerState*const* ppSamplers ); + void DSSetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers ); + void CSSetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] ID3D11ShaderResourceView*const* ppShaderResourceViews ); + void CSSetUnorderedAccessViews( + [annotation("_In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot )")] UINT NumUAVs, + [annotation("_In_reads_opt_(NumUAVs)")] ID3D11UnorderedAccessView*const* ppUnorderedAccessViews, + [annotation("_In_reads_opt_(NumUAVs)")] const UINT* pUAVInitialCounts ); + void CSSetShader( + [annotation("_In_opt_")] ID3D11ComputeShader* pComputeShader, + [annotation("_In_reads_opt_(NumClassInstances)")] ID3D11ClassInstance*const* ppClassInstances, + UINT NumClassInstances ); + void CSSetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_In_reads_opt_(NumSamplers)")] ID3D11SamplerState*const* ppSamplers ); + void CSSetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers ); + +// GET functions + void VSGetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers ); + void PSGetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D11ShaderResourceView** ppShaderResourceViews ); + void PSGetShader( + [annotation("_Outptr_result_maybenull_")] ID3D11PixelShader** ppPixelShader, + [annotation("_Out_writes_opt_(*pNumClassInstances)")] ID3D11ClassInstance** ppClassInstances, + [annotation("_Inout_opt_")] UINT* pNumClassInstances); + void PSGetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_Out_writes_opt_(NumSamplers)")] ID3D11SamplerState** ppSamplers ); + void VSGetShader( + [annotation("_Outptr_result_maybenull_")] ID3D11VertexShader** ppVertexShader, + [annotation("_Out_writes_opt_(*pNumClassInstances)")] ID3D11ClassInstance** ppClassInstances, + [annotation("_Inout_opt_")] UINT* pNumClassInstances); + void PSGetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers ); + void IAGetInputLayout( [annotation("_Outptr_result_maybenull_")] ID3D11InputLayout** ppInputLayout ); + void IAGetVertexBuffers( + [annotation("_In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppVertexBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pStrides, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pOffsets ); + void IAGetIndexBuffer( + [annotation("_Outptr_opt_result_maybenull_")] ID3D11Buffer** pIndexBuffer, + [annotation("_Out_opt_")] DXGI_FORMAT* Format, + [annotation("_Out_opt_")] UINT* Offset ); + void GSGetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers ); + void GSGetShader( + [annotation("_Outptr_result_maybenull_")] ID3D11GeometryShader** ppGeometryShader, + [annotation("_Out_writes_opt_(*pNumClassInstances)")] ID3D11ClassInstance** ppClassInstances, + [annotation("_Inout_opt_")] UINT* pNumClassInstances); + void IAGetPrimitiveTopology( [annotation("_Out_")] D3D11_PRIMITIVE_TOPOLOGY* pTopology ); + void VSGetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D11ShaderResourceView** ppShaderResourceViews ); + void VSGetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_Out_writes_opt_(NumSamplers)")] ID3D11SamplerState** ppSamplers ); + void GetPredication( + [annotation("_Outptr_opt_result_maybenull_")] ID3D11Predicate** ppPredicate, + [annotation("_Out_opt_")] BOOL* pPredicateValue ); + void GSGetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D11ShaderResourceView** ppShaderResourceViews ); + void GSGetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_Out_writes_opt_(NumSamplers)")] ID3D11SamplerState** ppSamplers ); + void OMGetRenderTargets( + [annotation("_In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D11RenderTargetView** ppRenderTargetViews, + [annotation("_Outptr_opt_result_maybenull_")] ID3D11DepthStencilView** ppDepthStencilView ); + void OMGetRenderTargetsAndUnorderedAccessViews( + [annotation("_In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT )")] UINT NumRTVs, + [annotation("_Out_writes_opt_(NumRTVs)")] ID3D11RenderTargetView** ppRenderTargetViews, + [annotation("_Outptr_opt_result_maybenull_")] ID3D11DepthStencilView** ppDepthStencilView, + [annotation("_In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - 1 )")] UINT UAVStartSlot, + [annotation("_In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot )")] UINT NumUAVs, + [annotation("_Out_writes_opt_(NumUAVs)")] ID3D11UnorderedAccessView** ppUnorderedAccessViews ); + void OMGetBlendState( + [annotation("_Outptr_opt_result_maybenull_")] ID3D11BlendState** ppBlendState, + [annotation("_Out_opt_")] FLOAT BlendFactor[ 4 ], //4 + [annotation("_Out_opt_")] UINT* pSampleMask); + void OMGetDepthStencilState( + [annotation("_Outptr_opt_result_maybenull_")] ID3D11DepthStencilState** ppDepthStencilState, + [annotation("_Out_opt_")] UINT* pStencilRef ); + void SOGetTargets( + [annotation("_In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppSOTargets ); + void RSGetState( [annotation("_Outptr_result_maybenull_")] ID3D11RasterizerState** ppRasterizerState ); + void RSGetViewports( + [annotation("_Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ ")] UINT* pNumViewports, + [annotation("_Out_writes_opt_(*pNumViewports)")] D3D11_VIEWPORT* pViewports ); + void RSGetScissorRects( + [annotation("_Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ ")] UINT* pNumRects, + [annotation("_Out_writes_opt_(*pNumRects)")] D3D11_RECT* pRects ); + void HSGetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D11ShaderResourceView** ppShaderResourceViews ); + void HSGetShader( + [annotation("_Outptr_result_maybenull_")] ID3D11HullShader** ppHullShader, + [annotation("_Out_writes_opt_(*pNumClassInstances)")] ID3D11ClassInstance** ppClassInstances, + [annotation("_Inout_opt_")] UINT* pNumClassInstances); + void HSGetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_Out_writes_opt_(NumSamplers)")] ID3D11SamplerState** ppSamplers ); + void HSGetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers ); + void DSGetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D11ShaderResourceView** ppShaderResourceViews ); + void DSGetShader( + [annotation("_Outptr_result_maybenull_")] ID3D11DomainShader** ppDomainShader, + [annotation("_Out_writes_opt_(*pNumClassInstances)")] ID3D11ClassInstance** ppClassInstances, + [annotation("_Inout_opt_")] UINT* pNumClassInstances); + void DSGetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_Out_writes_opt_(NumSamplers)")] ID3D11SamplerState** ppSamplers ); + void DSGetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers ); + void CSGetShaderResources( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot )")] UINT NumViews, + [annotation("_Out_writes_opt_(NumViews)")] ID3D11ShaderResourceView** ppShaderResourceViews ); + void CSGetUnorderedAccessViews( + [annotation("_In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot )")] UINT NumUAVs, + [annotation("_Out_writes_opt_(NumUAVs)")] ID3D11UnorderedAccessView** ppUnorderedAccessViews ); + void CSGetShader( + [annotation("_Outptr_result_maybenull_")] ID3D11ComputeShader** ppComputeShader, + [annotation("_Out_writes_opt_(*pNumClassInstances)")] ID3D11ClassInstance** ppClassInstances, + [annotation("_Inout_opt_")] UINT* pNumClassInstances); + void CSGetSamplers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot )")] UINT NumSamplers, + [annotation("_Out_writes_opt_(NumSamplers)")] ID3D11SamplerState** ppSamplers ); + void CSGetConstantBuffers( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers ); +// /GET functions + + void ClearState(); + void Flush(); + // !!! END MIDDLE-FREQUENCY !!! + + // !!! Order of functions is in decreasing order of priority ( as far as performance is concerned ) !!! + // !!! BEGIN LOW-FREQUENCY !!! + D3D11_DEVICE_CONTEXT_TYPE GetType(); + UINT GetContextFlags(); + HRESULT FinishCommandList( + BOOL RestoreDeferredContextState, + [annotation("_COM_Outptr_opt_")] ID3D11CommandList** ppCommandList ); + + // !!! END LOW-FREQUENCY !!! +}; + +cpp_quote( "#if !defined( D3D11_VIDEO_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_VIDEO_DEFAULT {};" ) +cpp_quote( "extern const DECLSPEC_SELECTANY CD3D11_VIDEO_DEFAULT D3D11_VIDEO_DEFAULT;" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +interface ID3D11VideoDecoderOutputView; +interface ID3D11VideoProcessorInputView; + +cpp_quote("#if !defined(APP_DEPRECATED_HRESULT) && !defined(APP_DEPRECATED_HRESULT_TYPEDEF)") +cpp_quote("#define APP_DEPRECATED_HRESULT_TYPEDEF") +typedef HRESULT APP_DEPRECATED_HRESULT; +cpp_quote("#endif") + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoDecoder +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_MOCOMP, 0xe6a9f44b, 0x61b0, 0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_IDCT, 0xbf22ad00, 0x03ea, 0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2_VLD, 0xee27417f, 0x5e28, 0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG1_VLD, 0x6f3ec719, 0x3735, 0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG2and1_VLD, 0x86695f12, 0x340e, 0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60);") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_MOCOMP_NOFGT, 0x1b81be64, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_MOCOMP_FGT, 0x1b81be65, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_IDCT_NOFGT, 0x1b81be66, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_IDCT_FGT, 0x1b81be67, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_NOFGT, 0x1b81be68, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_FGT, 0x1b81be69, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_WITHFMOASO_NOFGT, 0xd5f04ff9, 0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd);") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_STEREO_PROGRESSIVE_NOFGT, 0xd79be8da, 0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_STEREO_NOFGT, 0xf9aaccbb, 0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_H264_VLD_MULTIVIEW_NOFGT, 0x705b9d82, 0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c);") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV8_POSTPROC, 0x1b81be80, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV8_MOCOMP, 0x1b81be81, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_POSTPROC, 0x1b81be90, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_MOCOMP, 0x1b81be91, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_WMV9_IDCT, 0x1b81be94, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_POSTPROC, 0x1b81beA0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_MOCOMP, 0x1b81beA1, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_IDCT, 0x1b81beA2, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_VLD, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VC1_D2010, 0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_SIMPLE, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_NOGMC, 0xed418a9f, 0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_GMC, 0xab998b5b, 0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae);") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN, 0x5b11d51b, 0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10, 0x107af0e0, 0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MONOCHROME, 0x0685b993, 0x3d8c, 0x43a0, 0x8b, 0x28, 0xd7, 0x4c, 0x2d, 0x68, 0x99, 0xa4);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MONOCHROME10, 0x142a1d0f, 0x69dd, 0x4ec9, 0x85, 0x91, 0xb1, 0x2f, 0xfc, 0xb9, 0x1a, 0x29);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN12, 0x1a72925f, 0x0c2c, 0x4f15, 0x96, 0xfb, 0xb1, 0x7d, 0x14, 0x73, 0x60, 0x3f);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10_422, 0x0bac4fe5, 0x1532, 0x4429, 0xa8, 0x54, 0xf8, 0x4d, 0xe0, 0x49, 0x53, 0xdb);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN12_422, 0x55bcac81, 0xf311, 0x4093, 0xa7, 0xd0, 0x1c, 0xbc, 0x0b, 0x84, 0x9b, 0xee);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN_444, 0x4008018f, 0xf537, 0x4b36, 0x98, 0xcf, 0x61, 0xaf, 0x8a, 0x2c, 0x1a, 0x33);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10_EXT, 0x9cc55490, 0xe37c, 0x4932, 0x86, 0x84, 0x49, 0x20, 0xf9, 0xf6, 0x40, 0x9c);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10_444, 0x0dabeffa, 0x4458, 0x4602, 0xbc, 0x03, 0x07, 0x95, 0x65, 0x9d, 0x61, 0x7c);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN12_444, 0x9798634d, 0xfe9d, 0x48e5, 0xb4, 0xda, 0xdb, 0xec, 0x45, 0xb3, 0xdf, 0x01);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_HEVC_VLD_MAIN16, 0xa4fbdbb0, 0xa113, 0x482b, 0xa2, 0x32, 0x63, 0x5c, 0xc0, 0x69, 0x7f, 0x6d);") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP9_VLD_PROFILE0, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP9_VLD_10BIT_PROFILE2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_VP8_VLD, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7);") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_AV1_VLD_PROFILE0, 0xb8be4ccb, 0xcf53, 0x46ba, 0x8d, 0x59, 0xd6, 0xb8, 0xa6, 0xda, 0x5d, 0x2a);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_AV1_VLD_PROFILE1, 0x6936ff0f, 0x45b1, 0x4163, 0x9c, 0xc1, 0x64, 0x6e, 0xf6, 0x94, 0x61, 0x08);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_AV1_VLD_PROFILE2, 0x0c5f2aa1, 0xe541, 0x4089, 0xbb, 0x7b, 0x98, 0x11, 0x0a, 0x19, 0xd7, 0xc8);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_AV1_VLD_12BIT_PROFILE2, 0x17127009, 0xa00f, 0x4ce1, 0x99, 0x4e, 0xbf, 0x40, 0x81, 0xf6, 0xf3, 0xf0);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_AV1_VLD_12BIT_PROFILE2_420, 0x2d80bed6, 0x9cac, 0x4835, 0x9e, 0x91, 0x32, 0x7b, 0xbc, 0x4f, 0x9e, 0xe8);") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MJPEG_VLD_420, 0x725cb506, 0x0c29, 0x43c4, 0x94, 0x40, 0x8e, 0x93, 0x97, 0x90, 0x3a, 0x04);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MJPEG_VLD_422, 0x5b77b9cd, 0x1a35, 0x4c30, 0x9f, 0xd8, 0xef, 0x4b, 0x60, 0xc0, 0x35, 0xdd);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MJPEG_VLD_444, 0xd95161f9, 0x0d44, 0x47e6, 0xbc, 0xf5, 0x1b, 0xfb, 0xfb, 0x26, 0x8f, 0x97);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_MJPEG_VLD_4444, 0xc91748d5, 0xfd18, 0x4aca, 0x9d, 0xb3, 0x3a, 0x66, 0x34, 0xab, 0x54, 0x7d);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_JPEG_VLD_420, 0xcf782c83, 0xbef5, 0x4a2c, 0x87, 0xcb, 0x60, 0x19, 0xe7, 0xb1, 0x75, 0xac);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_JPEG_VLD_422, 0xf04df417, 0xeee2, 0x4067, 0xa7, 0x78, 0xf3, 0x5c, 0x15, 0xab, 0x97, 0x21);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_PROFILE_JPEG_VLD_444, 0x4cd00e17, 0x89ba, 0x48ef, 0xb9, 0xf9, 0xed, 0xcb, 0x82, 0x71, 0x3f, 0x65);") + +typedef struct D3D11_VIDEO_DECODER_DESC +{ + + GUID Guid; + UINT SampleWidth; + UINT SampleHeight; + DXGI_FORMAT OutputFormat; +} D3D11_VIDEO_DECODER_DESC; + +typedef struct D3D11_VIDEO_DECODER_CONFIG +{ + GUID guidConfigBitstreamEncryption; + GUID guidConfigMBcontrolEncryption; + GUID guidConfigResidDiffEncryption; + UINT ConfigBitstreamRaw; + UINT ConfigMBcontrolRasterOrder; + UINT ConfigResidDiffHost; + UINT ConfigSpatialResid8; + UINT ConfigResid8Subtraction; + UINT ConfigSpatialHost8or9Clipping; + UINT ConfigSpatialResidInterleaved; + UINT ConfigIntraResidUnsigned; + UINT ConfigResidDiffAccelerator; + UINT ConfigHostInverseScan; + UINT ConfigSpecificIDCT; + UINT Config4GroupedCoefs; + USHORT ConfigMinRenderTargetBuffCount; + USHORT ConfigDecoderSpecific; +} D3D11_VIDEO_DECODER_CONFIG; + + +typedef enum D3D11_VIDEO_DECODER_BUFFER_TYPE +{ + D3D11_VIDEO_DECODER_BUFFER_PICTURE_PARAMETERS = 0, + D3D11_VIDEO_DECODER_BUFFER_MACROBLOCK_CONTROL = 1, + D3D11_VIDEO_DECODER_BUFFER_RESIDUAL_DIFFERENCE = 2, + D3D11_VIDEO_DECODER_BUFFER_DEBLOCKING_CONTROL = 3, + D3D11_VIDEO_DECODER_BUFFER_INVERSE_QUANTIZATION_MATRIX = 4, + D3D11_VIDEO_DECODER_BUFFER_SLICE_CONTROL = 5, + D3D11_VIDEO_DECODER_BUFFER_BITSTREAM = 6, + D3D11_VIDEO_DECODER_BUFFER_MOTION_VECTOR = 7, + D3D11_VIDEO_DECODER_BUFFER_FILM_GRAIN = 8, + D3D11_VIDEO_DECODER_BUFFER_HUFFMAN_TABLE = 9 +} D3D11_VIDEO_DECODER_BUFFER_TYPE; + +typedef struct _D3D11_AES_CTR_IV +{ + UINT64 IV; // Big-Endian IV + UINT64 Count; // Big-Endian Block Count +} D3D11_AES_CTR_IV; + +typedef struct D3D11_ENCRYPTED_BLOCK_INFO +{ + UINT NumEncryptedBytesAtBeginning; + UINT NumBytesInSkipPattern; + UINT NumBytesInEncryptPattern; +} D3D11_ENCRYPTED_BLOCK_INFO; + +typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC +{ + D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType; + UINT BufferIndex; + UINT DataOffset; + UINT DataSize; + UINT FirstMBaddress; + UINT NumMBsInBuffer; + UINT Width; + UINT Height; + UINT Stride; + UINT ReservedBits; + [annotation("_Field_size_opt_(IVSize)")] void* pIV; + UINT IVSize; + BOOL PartialEncryption; + D3D11_ENCRYPTED_BLOCK_INFO EncryptedBlockInfo; +} D3D11_VIDEO_DECODER_BUFFER_DESC; + +typedef struct D3D11_VIDEO_DECODER_EXTENSION +{ + UINT Function; + [annotation("_Field_size_(PrivateInputDataSize)")] void* pPrivateInputData; + UINT PrivateInputDataSize; + [annotation("_Field_size_(PrivateOutputDataSize)")] void* pPrivateOutputData; + UINT PrivateOutputDataSize; + UINT ResourceCount; + [annotation("_Field_size_opt_(ResourceCount)")] ID3D11Resource** ppResourceList; +} D3D11_VIDEO_DECODER_EXTENSION; + +[ uuid( 3C9C5B51-995D-48d1-9B8D-FA5CAEDED65C ), object, local, pointer_default( unique ) ] +interface ID3D11VideoDecoder + : ID3D11DeviceChild +{ + HRESULT GetCreationParameters( + [annotation("_Out_")] D3D11_VIDEO_DECODER_DESC* pVideoDesc, + [annotation("_Out_")] D3D11_VIDEO_DECODER_CONFIG *pConfig ); + + HRESULT GetDriverHandle( + [annotation("_Out_")] HANDLE* pDriverHandle ); +}; + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoProcessorEnum +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT +{ + D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_INPUT = 0x00000001, + D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x00000002, +} D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT; + +typedef enum D3D11_VIDEO_PROCESSOR_DEVICE_CAPS +{ + D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_LINEAR_SPACE = 0x1, + D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_xvYCC = 0x2, + D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x4, + D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x8, + D3D11_VIDEO_PROCESSOR_DEVICE_CAPS_NOMINAL_RANGE = 0x10 +} D3D11_VIDEO_PROCESSOR_DEVICE_CAPS; + +typedef enum D3D11_VIDEO_PROCESSOR_FEATURE_CAPS +{ + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_FILL = 0x1, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_CONSTRICTION = 0x2, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LUMA_KEY = 0x4, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_PALETTE = 0x8, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_LEGACY = 0x10, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_STEREO = 0x20, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ROTATION = 0x40, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_ALPHA_STREAM = 0x80, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_PIXEL_ASPECT_RATIO = 0x100, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_MIRROR = 0x200, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_SHADER_USAGE = 0x400, + D3D11_VIDEO_PROCESSOR_FEATURE_CAPS_METADATA_HDR10 = 0x800, +} D3D11_VIDEO_PROCESSOR_FEATURE_CAPS; + +typedef enum D3D11_VIDEO_PROCESSOR_FILTER_CAPS +{ + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_BRIGHTNESS = 0x1, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_CONTRAST = 0x2, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_HUE = 0x4, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_SATURATION = 0x8, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_NOISE_REDUCTION = 0x10, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_EDGE_ENHANCEMENT = 0x20, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_ANAMORPHIC_SCALING = 0x40, + D3D11_VIDEO_PROCESSOR_FILTER_CAPS_STEREO_ADJUSTMENT = 0x80 +} D3D11_VIDEO_PROCESSOR_FILTER_CAPS; + +typedef enum D3D11_VIDEO_PROCESSOR_FORMAT_CAPS +{ + D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_INTERLACED = 0x1, + D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_PROCAMP = 0x2, + D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_RGB_LUMA_KEY = 0x4, + D3D11_VIDEO_PROCESSOR_FORMAT_CAPS_PALETTE_INTERLACED = 0x8 +} D3D11_VIDEO_PROCESSOR_FORMAT_CAPS; + +typedef enum D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS +{ + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DENOISE = 0x01, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_DERINGING = 0x02, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_EDGE_ENHANCEMENT = 0x04, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_COLOR_CORRECTION = 0x08, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_FLESH_TONE_MAPPING = 0x10, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_IMAGE_STABILIZATION = 0x20, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_SUPER_RESOLUTION = 0x40, + D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS_ANAMORPHIC_SCALING = 0x80 +} D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS; + +typedef enum D3D11_VIDEO_PROCESSOR_STEREO_CAPS +{ + D3D11_VIDEO_PROCESSOR_STEREO_CAPS_MONO_OFFSET = 0x01, + D3D11_VIDEO_PROCESSOR_STEREO_CAPS_ROW_INTERLEAVED = 0x02, + D3D11_VIDEO_PROCESSOR_STEREO_CAPS_COLUMN_INTERLEAVED = 0x04, + D3D11_VIDEO_PROCESSOR_STEREO_CAPS_CHECKERBOARD = 0x08, + D3D11_VIDEO_PROCESSOR_STEREO_CAPS_FLIP_MODE = 0x10 +} D3D11_VIDEO_PROCESSOR_STEREO_CAPS; + +typedef struct D3D11_VIDEO_PROCESSOR_CAPS +{ + UINT DeviceCaps; + UINT FeatureCaps; + UINT FilterCaps; + UINT InputFormatCaps; + UINT AutoStreamCaps; + UINT StereoCaps; + UINT RateConversionCapsCount; + UINT MaxInputStreams; + UINT MaxStreamStates; +} D3D11_VIDEO_PROCESSOR_CAPS; + +typedef enum D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS +{ + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x1, + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x2, + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x4, + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x8, + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10, + D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20 +} D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS; + +typedef enum D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS +{ + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32 = 0x1, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_22 = 0x2, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2224 = 0x4, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_2332 = 0x8, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_32322 = 0x10, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_55 = 0x20, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_64 = 0x40, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_87 = 0x80, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_222222222223 = 0x100, + D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS_OTHER = 0x80000000 +} D3D11_VIDEO_PROCESSOR_ITELECINE_CAPS; + +typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS +{ + UINT PastFrames; + UINT FutureFrames; + UINT ProcessorCaps; + UINT ITelecineCaps; + UINT CustomRateCount; +} D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS; + +typedef enum D3D11_CONTENT_PROTECTION_CAPS +{ + D3D11_CONTENT_PROTECTION_CAPS_SOFTWARE = 0x00000001, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE = 0x00000002, + D3D11_CONTENT_PROTECTION_CAPS_PROTECTION_ALWAYS_ON = 0x00000004, + D3D11_CONTENT_PROTECTION_CAPS_PARTIAL_DECRYPTION = 0x00000008, + D3D11_CONTENT_PROTECTION_CAPS_CONTENT_KEY = 0x00000010, + D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY = 0x00000020, + D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK = 0x00000040, + D3D11_CONTENT_PROTECTION_CAPS_ENCRYPTED_READ_BACK_KEY = 0x00000080, + D3D11_CONTENT_PROTECTION_CAPS_SEQUENTIAL_CTR_IV = 0x00000100, + D3D11_CONTENT_PROTECTION_CAPS_ENCRYPT_SLICEDATA_ONLY = 0x00000200, + D3D11_CONTENT_PROTECTION_CAPS_DECRYPTION_BLT = 0x00000400, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECT_UNCOMPRESSED = 0x00000800, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_PROTECTED_MEMORY_PAGEABLE = 0x00001000, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_TEARDOWN = 0x00002000, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION = 0x00004000, + D3D11_CONTENT_PROTECTION_CAPS_HARDWARE_DRM_COMMUNICATION_MULTI_THREADED = 0x00008000, +} D3D11_CONTENT_PROTECTION_CAPS; + +cpp_quote("DEFINE_GUID(D3D11_CRYPTO_TYPE_AES128_CTR, 0x9b6bd711, 0x4f74, 0x41c9, 0x9e, 0x7b, 0xb, 0xe2, 0xd7, 0xd9, 0x3b, 0x4f );") + +cpp_quote("DEFINE_GUID(D3D11_DECODER_ENCRYPTION_HW_CENC, 0x89d6ac4f, 0x9f2, 0x4229, 0xb2, 0xcd, 0x37, 0x74, 0xa, 0x6d, 0xfd, 0x81);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_BITSTREAM_ENCRYPTION_TYPE_CENC, 0xb0405235, 0xc13d, 0x44f2, 0x9a, 0xe5, 0xdd, 0x48, 0xe0, 0x8e, 0x5b, 0x67);") +cpp_quote("DEFINE_GUID(D3D11_DECODER_BITSTREAM_ENCRYPTION_TYPE_CBCS, 0x422d9319, 0x9d21, 0x4bb7, 0x93, 0x71, 0xfa, 0xf5, 0xa8, 0x2c, 0x3e, 0x04);") + + +cpp_quote("DEFINE_GUID(D3D11_KEY_EXCHANGE_HW_PROTECTION, 0xb1170d8a, 0x628d, 0x4da3, 0xad, 0x3b, 0x82, 0xdd, 0xb0, 0x8b, 0x49, 0x70);") + +typedef struct D3D11_VIDEO_CONTENT_PROTECTION_CAPS +{ + UINT Caps; + UINT KeyExchangeTypeCount; + UINT BlockAlignmentSize; + ULONGLONG ProtectedMemorySize; +} D3D11_VIDEO_CONTENT_PROTECTION_CAPS; + +typedef struct D3D11_VIDEO_PROCESSOR_CUSTOM_RATE +{ + DXGI_RATIONAL CustomRate; + UINT OutputFrames; + BOOL InputInterlaced; + UINT InputFramesOrFields; +} D3D11_VIDEO_PROCESSOR_CUSTOM_RATE; + +typedef enum D3D11_VIDEO_PROCESSOR_FILTER +{ + D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS = 0, + D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST = 1, + D3D11_VIDEO_PROCESSOR_FILTER_HUE = 2, + D3D11_VIDEO_PROCESSOR_FILTER_SATURATION = 3, + D3D11_VIDEO_PROCESSOR_FILTER_NOISE_REDUCTION = 4, + D3D11_VIDEO_PROCESSOR_FILTER_EDGE_ENHANCEMENT = 5, + D3D11_VIDEO_PROCESSOR_FILTER_ANAMORPHIC_SCALING = 6, + D3D11_VIDEO_PROCESSOR_FILTER_STEREO_ADJUSTMENT = 7, +} D3D11_VIDEO_PROCESSOR_FILTER; + +typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE +{ + int Minimum; + int Maximum; + int Default; + float Multiplier; +} D3D11_VIDEO_PROCESSOR_FILTER_RANGE; + +typedef enum D3D11_VIDEO_FRAME_FORMAT +{ + D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0, + D3D11_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1, + D3D11_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2 +} D3D11_VIDEO_FRAME_FORMAT; + +typedef enum D3D11_VIDEO_USAGE +{ + D3D11_VIDEO_USAGE_PLAYBACK_NORMAL = 0, + D3D11_VIDEO_USAGE_OPTIMAL_SPEED = 1, + D3D11_VIDEO_USAGE_OPTIMAL_QUALITY = 2 +} D3D11_VIDEO_USAGE; + +typedef struct D3D11_VIDEO_PROCESSOR_CONTENT_DESC +{ + D3D11_VIDEO_FRAME_FORMAT InputFrameFormat; + DXGI_RATIONAL InputFrameRate; + UINT InputWidth; + UINT InputHeight; + DXGI_RATIONAL OutputFrameRate; + UINT OutputWidth; + UINT OutputHeight; + D3D11_VIDEO_USAGE Usage; +} D3D11_VIDEO_PROCESSOR_CONTENT_DESC; + + +[ uuid( 31627037-53AB-4200-9061-05FAA9AB45F9 ), object, local, pointer_default( unique ) ] +interface ID3D11VideoProcessorEnumerator : ID3D11DeviceChild +{ + HRESULT GetVideoProcessorContentDesc( + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_CONTENT_DESC* pContentDesc ); + + HRESULT CheckVideoProcessorFormat( + [annotation("_In_")] DXGI_FORMAT Format, + [annotation("_Out_")] UINT* pFlags ); + + HRESULT GetVideoProcessorCaps( + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_CAPS* pCaps ); + + HRESULT GetVideoProcessorRateConversionCaps( + [annotation("_In_")] UINT TypeIndex, + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS* pCaps ); + + HRESULT GetVideoProcessorCustomRate( + [annotation("_In_")] UINT TypeIndex, + [annotation("_In_")] UINT CustomRateIndex, + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_CUSTOM_RATE* pRate ); + + HRESULT GetVideoProcessorFilterRange( + [annotation("_In_")] D3D11_VIDEO_PROCESSOR_FILTER Filter, + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_FILTER_RANGE* pRange ); +} + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoProcessor +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef struct D3D11_VIDEO_COLOR_RGBA +{ + float R; + float G; + float B; + float A; +} D3D11_VIDEO_COLOR_RGBA; + +typedef struct D3D11_VIDEO_COLOR_YCbCrA +{ + float Y; + float Cb; + float Cr; + float A; +} D3D11_VIDEO_COLOR_YCbCrA; + +typedef struct D3D11_VIDEO_COLOR +{ + union + { + D3D11_VIDEO_COLOR_YCbCrA YCbCr; + D3D11_VIDEO_COLOR_RGBA RGBA; + }; +} D3D11_VIDEO_COLOR; + +typedef enum D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE +{ + D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_UNDEFINED = 0, + D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_16_235 = 1, + D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE_0_255 = 2 +} D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE; + +typedef struct D3D11_VIDEO_PROCESSOR_COLOR_SPACE +{ + UINT Usage :1; + UINT RGB_Range :1; + UINT YCbCr_Matrix :1; + UINT YCbCr_xvYCC :1; + UINT Nominal_Range :2; // D3D11_VIDEO_PROCESSOR_NOMINAL_RANGE + UINT Reserved : 26; +} D3D11_VIDEO_PROCESSOR_COLOR_SPACE; + +typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE +{ + D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE = 0, + D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND = 1, + D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION = 2, + D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM = 3 +} D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE; + +typedef enum D3D11_VIDEO_PROCESSOR_OUTPUT_RATE +{ + D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL = 0, + D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF = 1, + D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM = 2 +} D3D11_VIDEO_PROCESSOR_OUTPUT_RATE; + +typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FORMAT +{ + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO = 0, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_HORIZONTAL = 1, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_VERTICAL = 2, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE = 3, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET = 4, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_ROW_INTERLEAVED = 5, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_COLUMN_INTERLEAVED = 6, + D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_CHECKERBOARD = 7 +} D3D11_VIDEO_PROCESSOR_STEREO_FORMAT; + +typedef enum D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE +{ + D3D11_VIDEO_PROCESSOR_STEREO_FLIP_NONE = 0, + D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME0 = 1, + D3D11_VIDEO_PROCESSOR_STEREO_FLIP_FRAME1 = 2, +} D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE; + +typedef enum D3D11_VIDEO_PROCESSOR_ROTATION +{ + D3D11_VIDEO_PROCESSOR_ROTATION_IDENTITY = 0, + D3D11_VIDEO_PROCESSOR_ROTATION_90 = 1, + D3D11_VIDEO_PROCESSOR_ROTATION_180 = 2, + D3D11_VIDEO_PROCESSOR_ROTATION_270 = 3, +} D3D11_VIDEO_PROCESSOR_ROTATION; + +typedef struct D3D11_VIDEO_PROCESSOR_STREAM +{ + BOOL Enable; + UINT OutputIndex; + UINT InputFrameOrField; + UINT PastFrames; + UINT FutureFrames; + [annotation("_Field_size_(PastFrames)")] ID3D11VideoProcessorInputView **ppPastSurfaces; + ID3D11VideoProcessorInputView *pInputSurface; + [annotation("_Field_size_(FutureFrames)")] ID3D11VideoProcessorInputView **ppFutureSurfaces; + [annotation("_Field_size_opt_(PastFrames)")] ID3D11VideoProcessorInputView **ppPastSurfacesRight; + ID3D11VideoProcessorInputView *pInputSurfaceRight; + [annotation("_Field_size_(FutureFrames)")] ID3D11VideoProcessorInputView **ppFutureSurfacesRight; +} D3D11_VIDEO_PROCESSOR_STREAM; + + +[ uuid( 1D7B0652-185F-41c6-85CE-0C5BE3D4AE6C ), object, local, pointer_default( unique ) ] +interface ID3D11VideoProcessor + : ID3D11DeviceChild +{ + void GetContentDesc( + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_CONTENT_DESC* pDesc); + + void GetRateConversionCaps( + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS* pCaps); +}; + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// AuthenticatedChannel +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +#define D3D11_OMAC_SIZE 16 + +typedef struct D3D11_OMAC +{ + BYTE Omac[D3D11_OMAC_SIZE]; +} D3D11_OMAC; + +typedef enum D3D11_AUTHENTICATED_CHANNEL_TYPE +{ + D3D11_AUTHENTICATED_CHANNEL_D3D11 = 1, + D3D11_AUTHENTICATED_CHANNEL_DRIVER_SOFTWARE = 2, + D3D11_AUTHENTICATED_CHANNEL_DRIVER_HARDWARE = 3, +} D3D11_AUTHENTICATED_CHANNEL_TYPE; + + +[ uuid( 3015A308-DCBD-47aa-A747-192486D14D4A ), object, local, pointer_default( unique ) ] +interface ID3D11AuthenticatedChannel + : ID3D11DeviceChild +{ + HRESULT GetCertificateSize( + [annotation("_Out_")] UINT* pCertificateSize); + + HRESULT GetCertificate( + [annotation("_In_")] UINT CertificateSize, + [annotation("_Out_writes_bytes_(CertificateSize)")] BYTE* pCertificate); + + void GetChannelHandle( + [annotation("_Out_")] HANDLE* pChannelHandle); +}; + +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_PROTECTION, 0xa84eb584, 0xc495, 0x48aa, 0xb9, 0x4d, 0x8b, 0xd2, 0xd6, 0xfb, 0xce, 0x5 );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE, 0xbc1b18a5, 0xb1fb, 0x42ab, 0xbd, 0x94, 0xb5, 0x82, 0x8b, 0x4b, 0xf7, 0xbe );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE, 0xec1c539d, 0x8cff, 0x4e2a, 0xbc, 0xc4, 0xf5, 0x69, 0x2f, 0x99, 0xf4, 0x80 );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION, 0x2634499e, 0xd018, 0x4d74, 0xac, 0x17, 0x7f, 0x72, 0x40, 0x59, 0x52, 0x8d );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT, 0xdb207b3, 0x9450, 0x46a6, 0x82, 0xde, 0x1b, 0x96, 0xd4, 0x4f, 0x9c, 0xf2 );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS, 0x649bbadb, 0xf0f4, 0x4639, 0xa1, 0x5b, 0x24, 0x39, 0x3f, 0xc3, 0xab, 0xac );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT, 0x12f0bd6, 0xe662, 0x4474, 0xbe, 0xfd, 0xaa, 0x53, 0xe5, 0x14, 0x3c, 0x6d );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT, 0x2c042b5e, 0x8c07, 0x46d5, 0xaa, 0xbe, 0x8f, 0x75, 0xcb, 0xad, 0x4c, 0x31 );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_OUTPUT_ID, 0x839ddca3, 0x9b4e, 0x41e4, 0xb0, 0x53, 0x89, 0x2b, 0xd2, 0xa1, 0x1e, 0xe7 );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ATTRIBUTES, 0x6214d9d2, 0x432c, 0x4abb, 0x9f, 0xce, 0x21, 0x6e, 0xea, 0x26, 0x9e, 0x3b );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_ENCRYPTION_WHEN_ACCESSIBLE_GUID_COUNT, 0xb30f7066, 0x203c, 0x4b07, 0x93, 0xfc, 0xce, 0xaa, 0xfd, 0x61, 0x24, 0x1e );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_ENCRYPTION_WHEN_ACCESSIBLE_GUID, 0xf83a5958, 0xe986, 0x4bda, 0xbe, 0xb0, 0x41, 0x1f, 0x6a, 0x7a, 0x1, 0xb7 );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_QUERY_CURRENT_ENCRYPTION_WHEN_ACCESSIBLE, 0xec1791c7, 0xdad3, 0x4f15, 0x9e, 0xc3, 0xfa, 0xa9, 0x3d, 0x60, 0xd4, 0xf0 );") + +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE, 0x6114bdb, 0x3523, 0x470a, 0x8d, 0xca, 0xfb, 0xc2, 0x84, 0x51, 0x54, 0xf0 );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_CONFIGURE_PROTECTION, 0x50455658, 0x3f47, 0x4362, 0xbf, 0x99, 0xbf, 0xdf, 0xcd, 0xe9, 0xed, 0x29 );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION, 0x6346cc54, 0x2cfc, 0x4ad4, 0x82, 0x24, 0xd1, 0x58, 0x37, 0xde, 0x77, 0x0 );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE, 0x772d047, 0x1b40, 0x48e8, 0x9c, 0xa6, 0xb5, 0xf5, 0x10, 0xde, 0x9f, 0x1 );") +cpp_quote("DEFINE_GUID( D3D11_AUTHENTICATED_CONFIGURE_ENCRYPTION_WHEN_ACCESSIBLE, 0x41fff286, 0x6ae0, 0x4d43, 0x9d, 0x55, 0xa4, 0x6e, 0x9e, 0xfd, 0x15, 0x8a );") + +typedef struct D3D11_AUTHENTICATED_QUERY_INPUT +{ + GUID QueryType; + HANDLE hChannel; + UINT SequenceNumber; +} D3D11_AUTHENTICATED_QUERY_INPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT +{ + D3D11_OMAC omac; + GUID QueryType; + HANDLE hChannel; + UINT SequenceNumber; + HRESULT ReturnCode; +} D3D11_AUTHENTICATED_QUERY_OUTPUT; + +typedef union D3D11_AUTHENTICATED_PROTECTION_FLAGS +{ + struct + { + UINT ProtectionEnabled : 1; + UINT OverlayOrFullscreenRequired : 1; + UINT Reserved : 30; + } Flags; + UINT Value; +} D3D11_AUTHENTICATED_PROTECTION_FLAGS; + +typedef struct D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + D3D11_AUTHENTICATED_PROTECTION_FLAGS ProtectionFlags; + +} D3D11_AUTHENTICATED_QUERY_PROTECTION_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType; + +} D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + HANDLE DeviceHandle; +} D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT +{ + D3D11_AUTHENTICATED_QUERY_INPUT Input; + HANDLE DecoderHandle; +} D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_INPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + HANDLE DecoderHandle; + HANDLE CryptoSessionHandle; + HANDLE DeviceHandle; +} D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + UINT RestrictedSharedResourceProcessCount; +} D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT +{ + D3D11_AUTHENTICATED_QUERY_INPUT Input; + UINT ProcessIndex; +} D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_INPUT; + +typedef enum D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE +{ + D3D11_PROCESSIDTYPE_UNKNOWN = 0, + D3D11_PROCESSIDTYPE_DWM = 1, + D3D11_PROCESSIDTYPE_HANDLE = 2 +} D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE; + +typedef struct D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + UINT ProcessIndex; + D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessIdentifier; + HANDLE ProcessHandle; +} D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + UINT UnrestrictedProtectedSharedResourceCount; +} D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT +{ + D3D11_AUTHENTICATED_QUERY_INPUT Input; + HANDLE DeviceHandle; + HANDLE CryptoSessionHandle; +} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_INPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + HANDLE DeviceHandle; + HANDLE CryptoSessionHandle; + UINT OutputIDCount; +} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT +{ + D3D11_AUTHENTICATED_QUERY_INPUT Input; + HANDLE DeviceHandle; + HANDLE CryptoSessionHandle; + UINT OutputIDIndex; +} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_INPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + HANDLE DeviceHandle; + HANDLE CryptoSessionHandle; + UINT OutputIDIndex; + UINT64 OutputID; +} D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_OUTPUT; + +typedef enum D3D11_BUS_TYPE +{ + D3D11_BUS_TYPE_OTHER = 0x00000000, + D3D11_BUS_TYPE_PCI = 0x00000001, + D3D11_BUS_TYPE_PCIX = 0x00000002, + D3D11_BUS_TYPE_PCIEXPRESS = 0x00000003, + D3D11_BUS_TYPE_AGP = 0x00000004, + D3D11_BUS_IMPL_MODIFIER_INSIDE_OF_CHIPSET = 0x00010000, + D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP = 0x00020000, + D3D11_BUS_IMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET = 0x00030000, + D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR = 0x00040000, + D3D11_BUS_IMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE = 0x00050000, + D3D11_BUS_IMPL_MODIFIER_NON_STANDARD = 0x80000000, +} D3D11_BUS_TYPE; + +typedef struct D3D11_AUTHENTICATED_QUERY_ACESSIBILITY_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + D3D11_BUS_TYPE BusType; + BOOL AccessibleInContiguousBlocks; + BOOL AccessibleInNonContiguousBlocks; +} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + UINT EncryptionGuidCount; +} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_COUNT_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT +{ + D3D11_AUTHENTICATED_QUERY_INPUT Input; + UINT EncryptionGuidIndex; +} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_INPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + UINT EncryptionGuidIndex; + GUID EncryptionGuid; +} D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ENCRYPTION_GUID_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT +{ + D3D11_AUTHENTICATED_QUERY_OUTPUT Output; + GUID EncryptionGuid; +} D3D11_AUTHENTICATED_QUERY_CURRENT_ACCESSIBILITY_ENCRYPTION_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_INPUT +{ + D3D11_OMAC omac; + GUID ConfigureType; + HANDLE hChannel; + UINT SequenceNumber; +} D3D11_AUTHENTICATED_CONFIGURE_INPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_OUTPUT +{ + D3D11_OMAC omac; + GUID ConfigureType; + HANDLE hChannel; + UINT SequenceNumber; + HRESULT ReturnCode; +} D3D11_AUTHENTICATED_CONFIGURE_OUTPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT +{ + D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; + UINT StartSequenceQuery; + UINT StartSequenceConfigure; +} D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE_INPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT +{ + D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; + D3D11_AUTHENTICATED_PROTECTION_FLAGS Protections; +} D3D11_AUTHENTICATED_CONFIGURE_PROTECTION_INPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT +{ + D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; + HANDLE DecoderHandle; + HANDLE CryptoSessionHandle; + HANDLE DeviceHandle; +} D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION_INPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT +{ + D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; + D3D11_AUTHENTICATED_PROCESS_IDENTIFIER_TYPE ProcessType; + HANDLE ProcessHandle; + BOOL AllowAccess; +} D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE_INPUT; + +typedef struct D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT +{ + D3D11_AUTHENTICATED_CONFIGURE_INPUT Parameters; + GUID EncryptionGuid; +} D3D11_AUTHENTICATED_CONFIGURE_ACCESSIBLE_ENCRYPTION_INPUT; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// CryptoSession +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + + +cpp_quote("DEFINE_GUID(D3D11_KEY_EXCHANGE_RSAES_OAEP, 0xc1949895, 0xd72a, 0x4a1d, 0x8e, 0x5d, 0xed, 0x85, 0x7d, 0x17, 0x15, 0x20);") + +[ uuid( 9B32F9AD-BDCC-40a6-A39D-D5C865845720 ), object, local, pointer_default( unique ) ] +interface ID3D11CryptoSession + : ID3D11DeviceChild +{ + void GetCryptoType( + [annotation("_Out_")] GUID* pCryptoType); + + void GetDecoderProfile( + [annotation("_Out_")] GUID* pDecoderProfile); + + HRESULT GetCertificateSize( + [annotation("_Out_")] UINT* pCertificateSize); + + HRESULT GetCertificate( + [annotation("_In_")] UINT CertificateSize, + [annotation("_Out_writes_bytes_(CertificateSize)")] BYTE* pCertificate); + + void GetCryptoSessionHandle( + [annotation("_Out_")] HANDLE* pCryptoSessionHandle); +}; + +typedef enum D3D11_VDOV_DIMENSION +{ + D3D11_VDOV_DIMENSION_UNKNOWN = 0, + D3D11_VDOV_DIMENSION_TEXTURE2D = 1, +} D3D11_VDOV_DIMENSION; + +typedef struct D3D11_TEX2D_VDOV +{ + UINT ArraySlice; +} D3D11_TEX2D_VDOV; + +typedef struct D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC +{ + GUID DecodeProfile; + D3D11_VDOV_DIMENSION ViewDimension; + + union + { + D3D11_TEX2D_VDOV Texture2D; + }; +} D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC; + +[ uuid( C2931AEA-2A85-4f20-860F-FBA1FD256E18 ), object, local, pointer_default( unique ) ] +interface ID3D11VideoDecoderOutputView + : ID3D11View +{ + void GetDesc( [annotation("_Out_")] D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC* pDesc ); +}; + +typedef enum D3D11_VPIV_DIMENSION +{ + D3D11_VPIV_DIMENSION_UNKNOWN = 0, + D3D11_VPIV_DIMENSION_TEXTURE2D = 1, +} D3D11_VPIV_DIMENSION; + +typedef struct D3D11_TEX2D_VPIV +{ + UINT MipSlice; + UINT ArraySlice; +} D3D11_TEX2D_VPIV; + +typedef struct D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC +{ + UINT FourCC; + D3D11_VPIV_DIMENSION ViewDimension; + + union + { + D3D11_TEX2D_VPIV Texture2D; + }; +} D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC; + +[ uuid( 11EC5A5F-51DC-4945-AB34-6E8C21300EA5 ), object, local, pointer_default( unique ) ] +interface ID3D11VideoProcessorInputView + : ID3D11View +{ + void GetDesc( [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC* pDesc ); +}; + +typedef enum D3D11_VPOV_DIMENSION +{ + D3D11_VPOV_DIMENSION_UNKNOWN = 0, + D3D11_VPOV_DIMENSION_TEXTURE2D = 1, + D3D11_VPOV_DIMENSION_TEXTURE2DARRAY = 2, +} D3D11_VPOV_DIMENSION; + +typedef struct D3D11_TEX2D_VPOV +{ + UINT MipSlice; +} D3D11_TEX2D_VPOV; + +typedef struct D3D11_TEX2D_ARRAY_VPOV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D11_TEX2D_ARRAY_VPOV; + +typedef struct D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC +{ + D3D11_VPOV_DIMENSION ViewDimension; + + union + { + D3D11_TEX2D_VPOV Texture2D; + D3D11_TEX2D_ARRAY_VPOV Texture2DArray; + }; +} D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC; + +[ uuid( A048285E-25A9-4527-BD93-D68B68C44254 ), object, local, pointer_default( unique ) ] +interface ID3D11VideoProcessorOutputView + : ID3D11View +{ + void GetDesc( [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC* pDesc ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoContext +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( 61F21C45-3C0E-4a74-9CEA-67100D9AD5E4 ), object, local, pointer_default( unique ) ] +interface ID3D11VideoContext + : ID3D11DeviceChild +{ + // Decode + HRESULT GetDecoderBuffer( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder, + D3D11_VIDEO_DECODER_BUFFER_TYPE Type, + [annotation("_Out_")] UINT* pBufferSize, + [annotation("_Outptr_result_bytebuffer_(*pBufferSize)")] void** ppBuffer ); + + HRESULT ReleaseDecoderBuffer( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder, + [annotation("_In_")] D3D11_VIDEO_DECODER_BUFFER_TYPE Type ); + + HRESULT DecoderBeginFrame( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder, + [annotation("_In_")] ID3D11VideoDecoderOutputView* pView, + UINT ContentKeySize, + [annotation("_In_reads_bytes_opt_(ContentKeySize)")] const void* pContentKey ); + + HRESULT DecoderEndFrame( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder ); + + HRESULT SubmitDecoderBuffers( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder, + [annotation("_In_")] UINT NumBuffers, + [annotation("_In_reads_(NumBuffers)")] const D3D11_VIDEO_DECODER_BUFFER_DESC* pBufferDesc ); + + APP_DEPRECATED_HRESULT DecoderExtension( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder, + [annotation("_In_")] const D3D11_VIDEO_DECODER_EXTENSION* pExtensionData ); + + void VideoProcessorSetOutputTargetRect( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] BOOL Enable, + [annotation("_In_opt_")] const RECT* pRect); + + void VideoProcessorSetOutputBackgroundColor( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] BOOL YCbCr, + [annotation("_In_")] const D3D11_VIDEO_COLOR* pColor); + + void VideoProcessorSetOutputColorSpace( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE* pColorSpace); + + void VideoProcessorSetOutputAlphaFillMode( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE AlphaFillMode, + [annotation("_In_")] UINT StreamIndex); + + void VideoProcessorSetOutputConstriction( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] BOOL Enable, + [annotation("_In_")] SIZE Size); + + void VideoProcessorSetOutputStereoMode( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] BOOL Enable); + + APP_DEPRECATED_HRESULT VideoProcessorSetOutputExtension( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] const GUID* pExtensionGuid, + [annotation("_In_")] UINT DataSize, + [annotation("_In_")] void* pData); + + void VideoProcessorGetOutputTargetRect( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_Out_")] BOOL* Enabled, + [annotation("_Out_")] RECT* pRect); + + void VideoProcessorGetOutputBackgroundColor( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_Out_")] BOOL* pYCbCr, + [annotation("_Out_")] D3D11_VIDEO_COLOR* pColor); + + void VideoProcessorGetOutputColorSpace( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_COLOR_SPACE* pColorSpace); + + void VideoProcessorGetOutputAlphaFillMode( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE* pAlphaFillMode, + [annotation("_Out_")] UINT* pStreamIndex); + + void VideoProcessorGetOutputConstriction( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_Out_")] BOOL* pEnabled, + [annotation("_Out_")] SIZE* pSize); + + void VideoProcessorGetOutputStereoMode( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_Out_")] BOOL* pEnabled); + + APP_DEPRECATED_HRESULT VideoProcessorGetOutputExtension( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] const GUID* pExtensionGuid, + [annotation("_In_")] UINT DataSize, + [annotation("_Out_writes_bytes_(DataSize)")] void* pData); + + void VideoProcessorSetStreamFrameFormat( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] D3D11_VIDEO_FRAME_FORMAT FrameFormat); + + void VideoProcessorSetStreamColorSpace( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] const D3D11_VIDEO_PROCESSOR_COLOR_SPACE* pColorSpace); + + void VideoProcessorSetStreamOutputRate( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate, + [annotation("_In_")] BOOL RepeatFrame, + [annotation("_In_opt_")] const DXGI_RATIONAL* pCustomRate); + + void VideoProcessorSetStreamSourceRect( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] BOOL Enable, + [annotation("_In_opt_")] const RECT* pRect); + + void VideoProcessorSetStreamDestRect( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] BOOL Enable, + [annotation("_In_opt_")] const RECT* pRect); + + void VideoProcessorSetStreamAlpha( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] BOOL Enable, + [annotation("_In_")] FLOAT Alpha); + + void VideoProcessorSetStreamPalette( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] UINT Count, + [annotation("_In_reads_opt_(Count)")] const UINT* pEntries); + + void VideoProcessorSetStreamPixelAspectRatio( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] BOOL Enable, + [annotation("_In_opt_")] const DXGI_RATIONAL* pSourceAspectRatio, + [annotation("_In_opt_")] const DXGI_RATIONAL* pDestinationAspectRatio); + + void VideoProcessorSetStreamLumaKey( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] BOOL Enable, + [annotation("_In_")] FLOAT Lower, + [annotation("_In_")] FLOAT Upper); + + void VideoProcessorSetStreamStereoFormat( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] BOOL Enable, + [annotation("_In_")] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format, + [annotation("_In_")] BOOL LeftViewFrame0, + [annotation("_In_")] BOOL BaseViewFrame0, + [annotation("_In_")] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode, + [annotation("_In_")] int MonoOffset); + + void VideoProcessorSetStreamAutoProcessingMode( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] BOOL Enable); + + void VideoProcessorSetStreamFilter( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] D3D11_VIDEO_PROCESSOR_FILTER Filter, + [annotation("_In_")] BOOL Enable, + [annotation("_In_")] int Level); + + APP_DEPRECATED_HRESULT VideoProcessorSetStreamExtension( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] const GUID* pExtensionGuid, + [annotation("_In_")] UINT DataSize, + [annotation("_In_")] void* pData); + + void VideoProcessorGetStreamFrameFormat( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] D3D11_VIDEO_FRAME_FORMAT* pFrameFormat); + + void VideoProcessorGetStreamColorSpace( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_COLOR_SPACE* pColorSpace); + + void VideoProcessorGetStreamOutputRate( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE* pOutputRate, + [annotation("_Out_")] BOOL* pRepeatFrame, + [annotation("_Out_")] DXGI_RATIONAL* pCustomRate); + + void VideoProcessorGetStreamSourceRect( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] BOOL* pEnabled, + [annotation("_Out_")] RECT* pRect); + + void VideoProcessorGetStreamDestRect( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] BOOL* pEnabled, + [annotation("_Out_")] RECT* pRect); + + void VideoProcessorGetStreamAlpha( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] BOOL* pEnabled, + [annotation("_Out_")] FLOAT* pAlpha); + + void VideoProcessorGetStreamPalette( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] UINT Count, + [annotation("_Out_writes_(Count)")] UINT* pEntries); + + void VideoProcessorGetStreamPixelAspectRatio( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] BOOL* pEnabled, + [annotation("_Out_")] DXGI_RATIONAL* pSourceAspectRatio, + [annotation("_Out_")] DXGI_RATIONAL* pDestinationAspectRatio); + + void VideoProcessorGetStreamLumaKey( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] BOOL* pEnabled, + [annotation("_Out_")] FLOAT* pLower, + [annotation("_Out_")] FLOAT* pUpper); + + void VideoProcessorGetStreamStereoFormat( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] BOOL* pEnable, + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_STEREO_FORMAT* pFormat, + [annotation("_Out_")] BOOL* pLeftViewFrame0, + [annotation("_Out_")] BOOL* pBaseViewFrame0, + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE* pFlipMode, + [annotation("_Out_")] int* MonoOffset); + + void VideoProcessorGetStreamAutoProcessingMode( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] BOOL* pEnabled); + + void VideoProcessorGetStreamFilter( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] D3D11_VIDEO_PROCESSOR_FILTER Filter, + [annotation("_Out_")] BOOL* pEnabled, + [annotation("_Out_")] int* pLevel); + + APP_DEPRECATED_HRESULT VideoProcessorGetStreamExtension( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] const GUID* pExtensionGuid, + [annotation("_In_")] UINT DataSize, + [annotation("_Out_writes_bytes_(DataSize)")] void* pData); + + HRESULT VideoProcessorBlt( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] ID3D11VideoProcessorOutputView *pView, + [annotation("_In_")] UINT OutputFrame, + [annotation("_In_")] UINT StreamCount, + [annotation("_In_reads_(StreamCount)")] const D3D11_VIDEO_PROCESSOR_STREAM *pStreams); + + HRESULT NegotiateCryptoSessionKeyExchange( + [annotation("_In_")] ID3D11CryptoSession* pCryptoSession, + [annotation("_In_")] UINT DataSize, + [annotation("_Inout_updates_bytes_(DataSize)")] void* pData); + + void EncryptionBlt( + [annotation("_In_")] ID3D11CryptoSession* pCryptoSession, + [annotation("_In_")] ID3D11Texture2D* pSrcSurface, + [annotation("_In_")] ID3D11Texture2D* pDstSurface, + [annotation("_In_")] UINT IVSize, + [annotation("_Inout_opt_bytecount_(IVSize)")] void* pIV); + + void DecryptionBlt( + [annotation("_In_")] ID3D11CryptoSession* pCryptoSession, + [annotation("_In_")] ID3D11Texture2D* pSrcSurface, + [annotation("_In_")] ID3D11Texture2D* pDstSurface, + [annotation("_In_opt_")] D3D11_ENCRYPTED_BLOCK_INFO* pEncryptedBlockInfo, + [annotation("_In_")] UINT ContentKeySize, + [annotation("_In_reads_bytes_opt_(ContentKeySize)")] const void* pContentKey, + [annotation("_In_")] UINT IVSize, + [annotation("_Inout_opt_bytecount_(IVSize)")] void* pIV ); + + void StartSessionKeyRefresh( + [annotation("_In_")] ID3D11CryptoSession* pCryptoSession, + [annotation("_In_")] UINT RandomNumberSize, + [annotation("_Out_writes_bytes_(RandomNumberSize)")] void* pRandomNumber); + + void FinishSessionKeyRefresh( + [annotation("_In_")] ID3D11CryptoSession* pCryptoSession); + + HRESULT GetEncryptionBltKey( + [annotation("_In_")] ID3D11CryptoSession* pCryptoSession, + [annotation("_In_")] UINT KeySize, + [annotation("_Out_writes_bytes_(KeySize)")] void* pReadbackKey); + + HRESULT NegotiateAuthenticatedChannelKeyExchange( + [annotation("_In_")] ID3D11AuthenticatedChannel* pChannel, + [annotation("_In_")] UINT DataSize, + [annotation("_Inout_updates_bytes_(DataSize)")] void* pData); + + HRESULT QueryAuthenticatedChannel( + [annotation("_In_")] ID3D11AuthenticatedChannel* pChannel, + [annotation("_In_")] UINT InputSize, + [annotation("_In_reads_bytes_(InputSize)")] const void* pInput, + [annotation("_In_")] UINT OutputSize, + [annotation("_Out_writes_bytes_(OutputSize)")] void* pOutput); + + HRESULT ConfigureAuthenticatedChannel( + [annotation("_In_")] ID3D11AuthenticatedChannel* pChannel, + [annotation("_In_")] UINT InputSize, + [annotation("_In_reads_bytes_(InputSize)")] const void* pInput, + [annotation("_Out_")] D3D11_AUTHENTICATED_CONFIGURE_OUTPUT* pOutput); + + void VideoProcessorSetStreamRotation( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] BOOL Enable, + [annotation("_In_")] D3D11_VIDEO_PROCESSOR_ROTATION Rotation); + + void VideoProcessorGetStreamRotation( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] BOOL* pEnable, + [annotation("_Out_")] D3D11_VIDEO_PROCESSOR_ROTATION* pRotation); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Device +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( 10EC4D5B-975A-4689-B9E4-D0AAC30FE333 ), object, local, pointer_default( unique ) ] +interface ID3D11VideoDevice + : IUnknown +{ + // Create* + HRESULT CreateVideoDecoder( + [annotation("_In_")] const D3D11_VIDEO_DECODER_DESC *pVideoDesc, + [annotation("_In_")] const D3D11_VIDEO_DECODER_CONFIG *pConfig, + [annotation("_COM_Outptr_")] ID3D11VideoDecoder **ppDecoder); + + HRESULT CreateVideoProcessor( + [annotation("_In_")] ID3D11VideoProcessorEnumerator* pEnum, + [annotation("_In_")] UINT RateConversionIndex, + [annotation("_COM_Outptr_")] ID3D11VideoProcessor **ppVideoProcessor); + + HRESULT CreateAuthenticatedChannel( + [annotation("_In_")] D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType, + [annotation("_COM_Outptr_")] ID3D11AuthenticatedChannel** ppAuthenticatedChannel); + + HRESULT CreateCryptoSession( + [annotation("_In_")] const GUID* pCryptoType, + [annotation("_In_opt_")] const GUID* pDecoderProfile, + [annotation("_In_")] const GUID* pKeyExchangeType, + [annotation("_COM_Outptr_")] ID3D11CryptoSession** ppCryptoSession); + + HRESULT CreateVideoDecoderOutputView( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_")] const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC* pDesc, + [annotation("_COM_Outptr_opt_")] ID3D11VideoDecoderOutputView** ppVDOVView ); + + HRESULT CreateVideoProcessorInputView( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_")] ID3D11VideoProcessorEnumerator* pEnum, + [annotation("_In_")] const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC* pDesc, + [annotation("_COM_Outptr_opt_")] ID3D11VideoProcessorInputView** ppVPIView ); + + HRESULT CreateVideoProcessorOutputView( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_")] ID3D11VideoProcessorEnumerator* pEnum, + [annotation("_In_")] const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC* pDesc, + [annotation("_COM_Outptr_opt_")] ID3D11VideoProcessorOutputView** ppVPOView ); + + HRESULT CreateVideoProcessorEnumerator( + [annotation("_In_")] const D3D11_VIDEO_PROCESSOR_CONTENT_DESC* pDesc, + [annotation("_COM_Outptr_")] ID3D11VideoProcessorEnumerator** ppEnum ); + + // Check + UINT GetVideoDecoderProfileCount( void ); + + HRESULT GetVideoDecoderProfile( + [annotation("_In_")] UINT Index, + [annotation("_Out_")] GUID* pDecoderProfile ); + + HRESULT CheckVideoDecoderFormat( + [annotation("_In_")] const GUID* pDecoderProfile, + [annotation("_In_")] DXGI_FORMAT Format, + [annotation("_Out_")] BOOL* pSupported ); + + HRESULT GetVideoDecoderConfigCount( + [annotation("_In_")] const D3D11_VIDEO_DECODER_DESC* pDesc, + [annotation("_Out_")] UINT* pCount ); + + HRESULT GetVideoDecoderConfig( + [annotation("_In_")] const D3D11_VIDEO_DECODER_DESC* pDesc, + [annotation("_In_")] UINT Index, + [annotation("_Out_")] D3D11_VIDEO_DECODER_CONFIG* pConfig ); + + HRESULT GetContentProtectionCaps( + [annotation("_In_opt_")] const GUID* pCryptoType, + [annotation("_In_opt_")] const GUID* pDecoderProfile, + [annotation("_Out_")] D3D11_VIDEO_CONTENT_PROTECTION_CAPS* pCaps ); + + HRESULT CheckCryptoKeyExchange( + [annotation("_In_")] const GUID* pCryptoType, + [annotation("_In_opt_")] const GUID* pDecoderProfile, + [annotation("_In_")] UINT Index, + [annotation("_Out_")] GUID* pKeyExchangeType ); + + HRESULT SetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_In_")] UINT DataSize, + [annotation("_In_reads_bytes_opt_(DataSize)")] const void* pData ); + + HRESULT SetPrivateDataInterface( + [annotation("_In_")] REFGUID guid, + [annotation("_In_opt_")] const IUnknown* pData ); +}; + + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Device +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +cpp_quote("#include ") + +[ uuid( db6f6ddb-ac77-4e88-8253-819df9bbf140 ), object, local, pointer_default( unique ) ] +interface ID3D11Device + : IUnknown +{ + // Create* + HRESULT CreateBuffer( + [annotation("_In_")] const D3D11_BUFFER_DESC* pDesc, + [annotation("_In_opt_")] const D3D11_SUBRESOURCE_DATA* pInitialData, + [annotation("_COM_Outptr_opt_")] ID3D11Buffer** ppBuffer ); + HRESULT CreateTexture1D( + [annotation("_In_")] const D3D11_TEXTURE1D_DESC* pDesc, + [annotation("_In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize))")] const D3D11_SUBRESOURCE_DATA* pInitialData, + [annotation("_COM_Outptr_opt_")] ID3D11Texture1D** ppTexture1D ); + HRESULT CreateTexture2D( + [annotation("_In_")] const D3D11_TEXTURE2D_DESC* pDesc, + [annotation("_In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize))")] const D3D11_SUBRESOURCE_DATA* pInitialData, + [annotation("_COM_Outptr_opt_")] ID3D11Texture2D** ppTexture2D ); + HRESULT CreateTexture3D( + [annotation("_In_")] const D3D11_TEXTURE3D_DESC* pDesc, + [annotation("_In_reads_opt_(_Inexpressible_(pDesc->MipLevels))")] const D3D11_SUBRESOURCE_DATA* pInitialData, + [annotation("_COM_Outptr_opt_")] ID3D11Texture3D** ppTexture3D ); + HRESULT CreateShaderResourceView( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_opt_")] const D3D11_SHADER_RESOURCE_VIEW_DESC* pDesc, + [annotation("_COM_Outptr_opt_")] ID3D11ShaderResourceView** ppSRView ); + HRESULT CreateUnorderedAccessView( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_opt_")] const D3D11_UNORDERED_ACCESS_VIEW_DESC* pDesc, + [annotation("_COM_Outptr_opt_")] ID3D11UnorderedAccessView** ppUAView ); + HRESULT CreateRenderTargetView( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_opt_")] const D3D11_RENDER_TARGET_VIEW_DESC* pDesc, + [annotation("_COM_Outptr_opt_")] ID3D11RenderTargetView** ppRTView ); + HRESULT CreateDepthStencilView( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_opt_")] const D3D11_DEPTH_STENCIL_VIEW_DESC* pDesc, + [annotation("_COM_Outptr_opt_")] ID3D11DepthStencilView** ppDepthStencilView ); + HRESULT CreateInputLayout( + [annotation("_In_reads_(NumElements)")] const D3D11_INPUT_ELEMENT_DESC* pInputElementDescs, + [annotation("_In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT )")] UINT NumElements, + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecodeWithInputSignature, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_COM_Outptr_opt_")] ID3D11InputLayout** ppInputLayout ); + HRESULT CreateVertexShader( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_In_opt_")] ID3D11ClassLinkage* pClassLinkage, + [annotation("_COM_Outptr_opt_")] ID3D11VertexShader** ppVertexShader ); + HRESULT CreateGeometryShader( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_In_opt_")] ID3D11ClassLinkage* pClassLinkage, + [annotation("_COM_Outptr_opt_")] ID3D11GeometryShader** ppGeometryShader ); + HRESULT CreateGeometryShaderWithStreamOutput( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_In_reads_opt_(NumEntries)")] const D3D11_SO_DECLARATION_ENTRY* pSODeclaration, + [annotation("_In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT )")] UINT NumEntries, + [annotation("_In_reads_opt_(NumStrides)")] const UINT* pBufferStrides, + [annotation("_In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT )")] UINT NumStrides, + [annotation("_In_")] UINT RasterizedStream, + [annotation("_In_opt_")] ID3D11ClassLinkage* pClassLinkage, + [annotation("_COM_Outptr_opt_")] ID3D11GeometryShader** ppGeometryShader ); + HRESULT CreatePixelShader( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_In_opt_")] ID3D11ClassLinkage* pClassLinkage, + [annotation("_COM_Outptr_opt_")] ID3D11PixelShader** ppPixelShader ); + HRESULT CreateHullShader( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_In_opt_")] ID3D11ClassLinkage* pClassLinkage, + [annotation("_COM_Outptr_opt_")] ID3D11HullShader** ppHullShader ); + HRESULT CreateDomainShader( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_In_opt_")] ID3D11ClassLinkage* pClassLinkage, + [annotation("_COM_Outptr_opt_")] ID3D11DomainShader** ppDomainShader ); + HRESULT CreateComputeShader( + [annotation("_In_reads_(BytecodeLength)")] const void* pShaderBytecode, + [annotation("_In_")] SIZE_T BytecodeLength, + [annotation("_In_opt_")] ID3D11ClassLinkage* pClassLinkage, + [annotation("_COM_Outptr_opt_")] ID3D11ComputeShader** ppComputeShader ); + HRESULT CreateClassLinkage( + [annotation("_COM_Outptr_")] ID3D11ClassLinkage** ppLinkage); + HRESULT CreateBlendState( + [annotation("_In_")] const D3D11_BLEND_DESC* pBlendStateDesc, + [annotation("_COM_Outptr_opt_")] ID3D11BlendState** ppBlendState ); + HRESULT CreateDepthStencilState( + [annotation("_In_")] const D3D11_DEPTH_STENCIL_DESC* pDepthStencilDesc, + [annotation("_COM_Outptr_opt_")] ID3D11DepthStencilState** ppDepthStencilState ); + HRESULT CreateRasterizerState( + [annotation("_In_")] const D3D11_RASTERIZER_DESC* pRasterizerDesc, + [annotation("_COM_Outptr_opt_")] ID3D11RasterizerState** ppRasterizerState ); + HRESULT CreateSamplerState( + [annotation("_In_")] const D3D11_SAMPLER_DESC* pSamplerDesc, + [annotation("_COM_Outptr_opt_")] ID3D11SamplerState** ppSamplerState ); + HRESULT CreateQuery( + [annotation("_In_")] const D3D11_QUERY_DESC* pQueryDesc, + [annotation("_COM_Outptr_opt_")] ID3D11Query** ppQuery ); + HRESULT CreatePredicate( + [annotation("_In_")] const D3D11_QUERY_DESC* pPredicateDesc, + [annotation("_COM_Outptr_opt_")] ID3D11Predicate** ppPredicate ); + HRESULT CreateCounter( + [annotation("_In_")] const D3D11_COUNTER_DESC* pCounterDesc, + [annotation("_COM_Outptr_opt_")] ID3D11Counter** ppCounter ); + HRESULT CreateDeferredContext( + UINT ContextFlags, // Reserved parameter; must be 0 + [annotation("_COM_Outptr_opt_")] ID3D11DeviceContext** ppDeferredContext ); + HRESULT OpenSharedResource( + [annotation("_In_")] HANDLE hResource, + [annotation("_In_")] REFIID ReturnedInterface, + [annotation("_COM_Outptr_opt_")] void ** ppResource); + + // Check* + HRESULT CheckFormatSupport( + [annotation("_In_")] DXGI_FORMAT Format, + [annotation("_Out_")] UINT* pFormatSupport ); + HRESULT CheckMultisampleQualityLevels( + [annotation("_In_")] DXGI_FORMAT Format, + [annotation("_In_")] UINT SampleCount, + [annotation("_Out_")] UINT* pNumQualityLevels ); + void CheckCounterInfo( [annotation("_Out_")] D3D11_COUNTER_INFO* pCounterInfo ); + HRESULT CheckCounter( + [annotation("_In_")] const D3D11_COUNTER_DESC* pDesc, + [annotation("_Out_")] D3D11_COUNTER_TYPE* pType, + [annotation("_Out_")] UINT* pActiveCounters, + [annotation("_Out_writes_opt_(*pNameLength)")] LPSTR szName, + [annotation("_Inout_opt_")] UINT* pNameLength, + [annotation("_Out_writes_opt_(*pUnitsLength)")] LPSTR szUnits, + [annotation("_Inout_opt_")] UINT* pUnitsLength, + [annotation("_Out_writes_opt_(*pDescriptionLength)")] LPSTR szDescription, + [annotation("_Inout_opt_")] UINT* pDescriptionLength ); + HRESULT CheckFeatureSupport( + D3D11_FEATURE Feature, + [annotation("_Out_writes_bytes_(FeatureSupportDataSize)")] void* pFeatureSupportData, + UINT FeatureSupportDataSize ); + + HRESULT GetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_Inout_")] UINT* pDataSize, + [annotation("_Out_writes_bytes_opt_(*pDataSize)")] void* pData ); + HRESULT SetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_In_")] UINT DataSize, + [annotation("_In_reads_bytes_opt_(DataSize)")] const void* pData ); + HRESULT SetPrivateDataInterface( + [annotation("_In_")] REFGUID guid, + [annotation("_In_opt_")] const IUnknown* pData ); + + D3D_FEATURE_LEVEL GetFeatureLevel(); + UINT GetCreationFlags(); + HRESULT GetDeviceRemovedReason(); + void GetImmediateContext( [annotation("_Outptr_")] ID3D11DeviceContext** ppImmediateContext ); + HRESULT SetExceptionMode( UINT RaiseFlags ); + UINT GetExceptionMode(); +}; + + +typedef enum D3D11_CREATE_DEVICE_FLAG +{ + D3D11_CREATE_DEVICE_SINGLETHREADED = 0x1, + D3D11_CREATE_DEVICE_DEBUG = 0x2, + D3D11_CREATE_DEVICE_SWITCH_TO_REF = 0x4, + D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS = 0x8, + D3D11_CREATE_DEVICE_BGRA_SUPPORT = 0x20, + D3D11_CREATE_DEVICE_DEBUGGABLE = 0x40, + D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY = 0x0080, + D3D11_CREATE_DEVICE_DISABLE_GPU_TIMEOUT = 0x0100, + D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800, + +} D3D11_CREATE_DEVICE_FLAG; + +const UINT D3D11_SDK_VERSION = 7; + + +cpp_quote( "#if !defined( D3D11_IGNORE_SDK_LAYERS ) ") +cpp_quote( "#include \"d3d11sdklayers.h\" ") +cpp_quote( "#endif ") + +cpp_quote( "#include \"d3d10_1.h\"" ) // 10_1.h must be included before any other d3d10 headers that would include d3d10.h +#pragma region Desktop Family +cpp_quote( "#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") +cpp_quote( "#include \"d3d10shader.h\" ") +cpp_quote( "#include \"d3d10_1shader.h\" ") + +cpp_quote( "#include \"d3d10misc.h\" ") + +cpp_quote( "#include \"d3d10effect.h\" ") + + +cpp_quote( "#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + + +cpp_quote( "" ) +cpp_quote( "///////////////////////////////////////////////////////////////////////////" ) +cpp_quote( "// D3D11CreateDevice" ) +cpp_quote( "// ------------------" ) +cpp_quote( "//" ) +cpp_quote( "// pAdapter" ) +cpp_quote( "// If NULL, D3D11CreateDevice will choose the primary adapter and" ) +cpp_quote( "// create a new instance from a temporarily created IDXGIFactory." ) +cpp_quote( "// If non-NULL, D3D11CreateDevice will register the appropriate" ) +cpp_quote( "// device, if necessary (via IDXGIAdapter::RegisterDrver), before" ) +cpp_quote( "// creating the device." ) +cpp_quote( "// DriverType" ) +cpp_quote( "// Specifies the driver type to be created: hardware, reference or" ) +cpp_quote( "// null." ) +cpp_quote( "// Software" ) +cpp_quote( "// HMODULE of a DLL implementing a software rasterizer. Must be NULL for" ) +cpp_quote( "// non-Software driver types." ) +cpp_quote( "// Flags" ) +cpp_quote( "// Any of those documented for D3D11CreateDeviceAndSwapChain." ) +cpp_quote( "// pFeatureLevels" ) +cpp_quote( "// Any of those documented for D3D11CreateDeviceAndSwapChain." ) +cpp_quote( "// FeatureLevels" ) +cpp_quote( "// Size of feature levels array." ) +cpp_quote( "// SDKVersion" ) +cpp_quote( "// SDK version. Use the D3D11_SDK_VERSION macro." ) +cpp_quote( "// ppDevice" ) +cpp_quote( "// Pointer to returned interface. May be NULL." ) +cpp_quote( "// pFeatureLevel" ) +cpp_quote( "// Pointer to returned feature level. May be NULL." ) +cpp_quote( "// ppImmediateContext" ) +cpp_quote( "// Pointer to returned interface. May be NULL." ) +cpp_quote( "//" ) +cpp_quote( "// Return Values" ) +cpp_quote( "// Any of those documented for " ) +cpp_quote( "// CreateDXGIFactory1" ) +cpp_quote( "// IDXGIFactory::EnumAdapters" ) +cpp_quote( "// IDXGIAdapter::RegisterDriver" ) +cpp_quote( "// D3D11CreateDevice" ) +cpp_quote( "//" ) +cpp_quote( "///////////////////////////////////////////////////////////////////////////" ) +cpp_quote( "typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE)( _In_opt_ IDXGIAdapter*, " ) +cpp_quote( " D3D_DRIVER_TYPE, HMODULE, UINT, " ) +cpp_quote( " _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL*, " ) +cpp_quote( " UINT FeatureLevels, UINT, _COM_Outptr_opt_ ID3D11Device**, " ) +cpp_quote( " _Out_opt_ D3D_FEATURE_LEVEL*, _COM_Outptr_opt_ ID3D11DeviceContext** );" ) +cpp_quote( "" ) +cpp_quote( "HRESULT WINAPI D3D11CreateDevice(" ) +cpp_quote( " _In_opt_ IDXGIAdapter* pAdapter," ) +cpp_quote( " D3D_DRIVER_TYPE DriverType," ) +cpp_quote( " HMODULE Software," ) +cpp_quote( " UINT Flags," ) +cpp_quote( " _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL* pFeatureLevels," ) +cpp_quote( " UINT FeatureLevels," ) +cpp_quote( " UINT SDKVersion," ) +cpp_quote( " _COM_Outptr_opt_ ID3D11Device** ppDevice," ) +cpp_quote( " _Out_opt_ D3D_FEATURE_LEVEL* pFeatureLevel," ) +cpp_quote( " _COM_Outptr_opt_ ID3D11DeviceContext** ppImmediateContext );" ) +cpp_quote( "" ) + +#pragma region Desktop Family +cpp_quote( "#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote( "///////////////////////////////////////////////////////////////////////////" ) +cpp_quote( "// D3D11CreateDeviceAndSwapChain" ) +cpp_quote( "// ------------------------------" ) +cpp_quote( "//" ) +cpp_quote( "// ppAdapter" ) +cpp_quote( "// If NULL, D3D11CreateDevice will choose the primary adapter and " ) +cpp_quote( "// create a new instance from a temporarily created IDXGIFactory." ) +cpp_quote( "// If non-NULL, D3D11CreateDevice will register the appropriate" ) +cpp_quote( "// device, if necessary (via IDXGIAdapter::RegisterDrver), before" ) +cpp_quote( "// creating the device." ) +cpp_quote( "// DriverType" ) +cpp_quote( "// Specifies the driver type to be created: hardware, reference or" ) +cpp_quote( "// null." ) +cpp_quote( "// Software" ) +cpp_quote( "// HMODULE of a DLL implementing a software rasterizer. Must be NULL for" ) +cpp_quote( "// non-Software driver types." ) +cpp_quote( "// Flags" ) +cpp_quote( "// Any of those documented for D3D11CreateDevice." ) +cpp_quote( "// pFeatureLevels" ) +cpp_quote( "// Array of any of the following:" ) +cpp_quote( "// D3D_FEATURE_LEVEL_11_0" ) +cpp_quote( "// D3D_FEATURE_LEVEL_10_1" ) +cpp_quote( "// D3D_FEATURE_LEVEL_10_0" ) +cpp_quote( "// D3D_FEATURE_LEVEL_9_3" ) +cpp_quote( "// D3D_FEATURE_LEVEL_9_2" ) +cpp_quote( "// D3D_FEATURE_LEVEL_9_1" ) +cpp_quote( "// Order indicates sequence in which instantiation will be attempted. If" ) +cpp_quote( "// NULL, then the implied order is the same as previously listed (i.e. " ) +cpp_quote( "// prefer most features available). " ) +cpp_quote( "// FeatureLevels" ) +cpp_quote( "// Size of feature levels array." ) +cpp_quote( "// SDKVersion" ) +cpp_quote( "// SDK version. Use the D3D11_SDK_VERSION macro." ) +cpp_quote( "// pSwapChainDesc" ) +cpp_quote( "// Swap chain description, may be NULL." ) +cpp_quote( "// ppSwapChain" ) +cpp_quote( "// Pointer to returned interface. May be NULL." ) +cpp_quote( "// ppDevice" ) +cpp_quote( "// Pointer to returned interface. May be NULL." ) +cpp_quote( "// pFeatureLevel" ) +cpp_quote( "// Pointer to returned feature level. May be NULL." ) +cpp_quote( "// ppImmediateContext" ) +cpp_quote( "// Pointer to returned interface. May be NULL." ) +cpp_quote( "//" ) +cpp_quote( "// Return Values" ) +cpp_quote( "// Any of those documented for " ) +cpp_quote( "// CreateDXGIFactory1" ) +cpp_quote( "// IDXGIFactory::EnumAdapters" ) +cpp_quote( "// IDXGIAdapter::RegisterDriver" ) +cpp_quote( "// D3D11CreateDevice" ) +cpp_quote( "// IDXGIFactory::CreateSwapChain" ) +cpp_quote( "//" ) +cpp_quote( "///////////////////////////////////////////////////////////////////////////" ) +cpp_quote( "typedef HRESULT (WINAPI* PFN_D3D11_CREATE_DEVICE_AND_SWAP_CHAIN)( _In_opt_ IDXGIAdapter*, " ) +cpp_quote( " D3D_DRIVER_TYPE, HMODULE, UINT, " ) +cpp_quote( " _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL*, " ) +cpp_quote( " UINT FeatureLevels, UINT, _In_opt_ CONST DXGI_SWAP_CHAIN_DESC*, " ) +cpp_quote( " _COM_Outptr_opt_ IDXGISwapChain**, _COM_Outptr_opt_ ID3D11Device**, " ) +cpp_quote( " _Out_opt_ D3D_FEATURE_LEVEL*, _COM_Outptr_opt_ ID3D11DeviceContext** );" ) +cpp_quote( "" ) +cpp_quote( "HRESULT WINAPI D3D11CreateDeviceAndSwapChain(" ) +cpp_quote( " _In_opt_ IDXGIAdapter* pAdapter," ) +cpp_quote( " D3D_DRIVER_TYPE DriverType," ) +cpp_quote( " HMODULE Software," ) +cpp_quote( " UINT Flags," ) +cpp_quote( " _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL* pFeatureLevels," ) +cpp_quote( " UINT FeatureLevels," ) +cpp_quote( " UINT SDKVersion," ) +cpp_quote( " _In_opt_ CONST DXGI_SWAP_CHAIN_DESC* pSwapChainDesc," ) +cpp_quote( " _COM_Outptr_opt_ IDXGISwapChain** ppSwapChain," ) +cpp_quote( " _COM_Outptr_opt_ ID3D11Device** ppDevice," ) +cpp_quote( " _Out_opt_ D3D_FEATURE_LEVEL* pFeatureLevel," ) +cpp_quote( " _COM_Outptr_opt_ ID3D11DeviceContext** ppImmediateContext );" ) +cpp_quote( "" ) + +cpp_quote( "#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote( "DEFINE_GUID(IID_ID3D11DeviceChild,0x1841e5c8,0x16b0,0x489b,0xbc,0xc8,0x44,0xcf,0xb0,0xd5,0xde,0xae);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11DepthStencilState,0x03823efb,0x8d8f,0x4e1c,0x9a,0xa2,0xf6,0x4b,0xb2,0xcb,0xfd,0xf1);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11BlendState,0x75b68faa,0x347d,0x4159,0x8f,0x45,0xa0,0x64,0x0f,0x01,0xcd,0x9a);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11RasterizerState,0x9bb4ab81,0xab1a,0x4d8f,0xb5,0x06,0xfc,0x04,0x20,0x0b,0x6e,0xe7);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Resource,0xdc8e63f3,0xd12b,0x4952,0xb4,0x7b,0x5e,0x45,0x02,0x6a,0x86,0x2d);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Buffer,0x48570b85,0xd1ee,0x4fcd,0xa2,0x50,0xeb,0x35,0x07,0x22,0xb0,0x37);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Texture1D,0xf8fb5c27,0xc6b3,0x4f75,0xa4,0xc8,0x43,0x9a,0xf2,0xef,0x56,0x4c);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Texture2D,0x6f15aaf2,0xd208,0x4e89,0x9a,0xb4,0x48,0x95,0x35,0xd3,0x4f,0x9c);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Texture3D,0x037e866e,0xf56d,0x4357,0xa8,0xaf,0x9d,0xab,0xbe,0x6e,0x25,0x0e);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11View,0x839d1216,0xbb2e,0x412b,0xb7,0xf4,0xa9,0xdb,0xeb,0xe0,0x8e,0xd1);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11ShaderResourceView,0xb0e06fe0,0x8192,0x4e1a,0xb1,0xca,0x36,0xd7,0x41,0x47,0x10,0xb2);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11RenderTargetView,0xdfdba067,0x0b8d,0x4865,0x87,0x5b,0xd7,0xb4,0x51,0x6c,0xc1,0x64);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11DepthStencilView,0x9fdac92a,0x1876,0x48c3,0xaf,0xad,0x25,0xb9,0x4f,0x84,0xa9,0xb6);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11UnorderedAccessView,0x28acf509,0x7f5c,0x48f6,0x86,0x11,0xf3,0x16,0x01,0x0a,0x63,0x80);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VertexShader,0x3b301d64,0xd678,0x4289,0x88,0x97,0x22,0xf8,0x92,0x8b,0x72,0xf3);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11HullShader,0x8e5c6061,0x628a,0x4c8e,0x82,0x64,0xbb,0xe4,0x5c,0xb3,0xd5,0xdd);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11DomainShader,0xf582c508,0x0f36,0x490c,0x99,0x77,0x31,0xee,0xce,0x26,0x8c,0xfa);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11GeometryShader,0x38325b96,0xeffb,0x4022,0xba,0x02,0x2e,0x79,0x5b,0x70,0x27,0x5c);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11PixelShader,0xea82e40d,0x51dc,0x4f33,0x93,0xd4,0xdb,0x7c,0x91,0x25,0xae,0x8c);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11ComputeShader,0x4f5b196e,0xc2bd,0x495e,0xbd,0x01,0x1f,0xde,0xd3,0x8e,0x49,0x69);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11InputLayout,0xe4819ddc,0x4cf0,0x4025,0xbd,0x26,0x5d,0xe8,0x2a,0x3e,0x07,0xb7);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11SamplerState,0xda6fea51,0x564c,0x4487,0x98,0x10,0xf0,0xd0,0xf9,0xb4,0xe3,0xa5);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Asynchronous,0x4b35d0cd,0x1e15,0x4258,0x9c,0x98,0x1b,0x13,0x33,0xf6,0xdd,0x3b);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Query,0xd6c00747,0x87b7,0x425e,0xb8,0x4d,0x44,0xd1,0x08,0x56,0x0a,0xfd);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Predicate,0x9eb576dd,0x9f77,0x4d86,0x81,0xaa,0x8b,0xab,0x5f,0xe4,0x90,0xe2);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Counter,0x6e8c49fb,0xa371,0x4770,0xb4,0x40,0x29,0x08,0x60,0x22,0xb7,0x41);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11ClassInstance,0xa6cd7faa,0xb0b7,0x4a2f,0x94,0x36,0x86,0x62,0xa6,0x57,0x97,0xcb);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11ClassLinkage,0xddf57cba,0x9543,0x46e4,0xa1,0x2b,0xf2,0x07,0xa0,0xfe,0x7f,0xed);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11CommandList,0xa24bc4d1,0x769e,0x43f7,0x80,0x13,0x98,0xff,0x56,0x6c,0x18,0xe2);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11DeviceContext,0xc0bfa96c,0xe089,0x44fb,0x8e,0xaf,0x26,0xf8,0x79,0x61,0x90,0xda);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoDecoder,0x3C9C5B51,0x995D,0x48d1,0x9B,0x8D,0xFA,0x5C,0xAE,0xDE,0xD6,0x5C);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoProcessorEnumerator,0x31627037,0x53AB,0x4200,0x90,0x61,0x05,0xFA,0xA9,0xAB,0x45,0xF9);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoProcessor,0x1D7B0652,0x185F,0x41c6,0x85,0xCE,0x0C,0x5B,0xE3,0xD4,0xAE,0x6C);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11AuthenticatedChannel,0x3015A308,0xDCBD,0x47aa,0xA7,0x47,0x19,0x24,0x86,0xD1,0x4D,0x4A);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11CryptoSession,0x9B32F9AD,0xBDCC,0x40a6,0xA3,0x9D,0xD5,0xC8,0x65,0x84,0x57,0x20);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoDecoderOutputView,0xC2931AEA,0x2A85,0x4f20,0x86,0x0F,0xFB,0xA1,0xFD,0x25,0x6E,0x18);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoProcessorInputView,0x11EC5A5F,0x51DC,0x4945,0xAB,0x34,0x6E,0x8C,0x21,0x30,0x0E,0xA5);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoProcessorOutputView,0xA048285E,0x25A9,0x4527,0xBD,0x93,0xD6,0x8B,0x68,0xC4,0x42,0x54);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoContext,0x61F21C45,0x3C0E,0x4a74,0x9C,0xEA,0x67,0x10,0x0D,0x9A,0xD5,0xE4);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoDevice,0x10EC4D5B,0x975A,0x4689,0xB9,0xE4,0xD0,0xAA,0xC3,0x0F,0xE3,0x33);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Device,0xdb6f6ddb,0xac77,0x4e88,0x82,0x53,0x81,0x9d,0xf9,0xbb,0xf1,0x40);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_1.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_1.h new file mode 100644 index 0000000000000000000000000000000000000000..df3a84e4ab5ba99d99f5f488fcae222423ef7e08 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_1.h @@ -0,0 +1,5559 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d11_1_h__ +#define __d3d11_1_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D11BlendState1_FWD_DEFINED__ +#define __ID3D11BlendState1_FWD_DEFINED__ +typedef interface ID3D11BlendState1 ID3D11BlendState1; + +#endif /* __ID3D11BlendState1_FWD_DEFINED__ */ + + +#ifndef __ID3D11RasterizerState1_FWD_DEFINED__ +#define __ID3D11RasterizerState1_FWD_DEFINED__ +typedef interface ID3D11RasterizerState1 ID3D11RasterizerState1; + +#endif /* __ID3D11RasterizerState1_FWD_DEFINED__ */ + + +#ifndef __ID3DDeviceContextState_FWD_DEFINED__ +#define __ID3DDeviceContextState_FWD_DEFINED__ +typedef interface ID3DDeviceContextState ID3DDeviceContextState; + +#endif /* __ID3DDeviceContextState_FWD_DEFINED__ */ + + +#ifndef __ID3D11DeviceContext1_FWD_DEFINED__ +#define __ID3D11DeviceContext1_FWD_DEFINED__ +typedef interface ID3D11DeviceContext1 ID3D11DeviceContext1; + +#endif /* __ID3D11DeviceContext1_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoContext1_FWD_DEFINED__ +#define __ID3D11VideoContext1_FWD_DEFINED__ +typedef interface ID3D11VideoContext1 ID3D11VideoContext1; + +#endif /* __ID3D11VideoContext1_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoDevice1_FWD_DEFINED__ +#define __ID3D11VideoDevice1_FWD_DEFINED__ +typedef interface ID3D11VideoDevice1 ID3D11VideoDevice1; + +#endif /* __ID3D11VideoDevice1_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoProcessorEnumerator1_FWD_DEFINED__ +#define __ID3D11VideoProcessorEnumerator1_FWD_DEFINED__ +typedef interface ID3D11VideoProcessorEnumerator1 ID3D11VideoProcessorEnumerator1; + +#endif /* __ID3D11VideoProcessorEnumerator1_FWD_DEFINED__ */ + + +#ifndef __ID3D11Device1_FWD_DEFINED__ +#define __ID3D11Device1_FWD_DEFINED__ +typedef interface ID3D11Device1 ID3D11Device1; + +#endif /* __ID3D11Device1_FWD_DEFINED__ */ + + +#ifndef __ID3DUserDefinedAnnotation_FWD_DEFINED__ +#define __ID3DUserDefinedAnnotation_FWD_DEFINED__ +typedef interface ID3DUserDefinedAnnotation ID3DUserDefinedAnnotation; + +#endif /* __ID3DUserDefinedAnnotation_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "dxgi1_2.h" +#include "d3dcommon.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d11_1_0000_0000 */ +/* [local] */ + +#ifdef __cplusplus +} +#endif +#include "d3d11.h" // +#ifdef __cplusplus +extern "C"{ +#endif +typedef +enum D3D11_COPY_FLAGS + { + D3D11_COPY_NO_OVERWRITE = 0x1, + D3D11_COPY_DISCARD = 0x2 + } D3D11_COPY_FLAGS; + +typedef +enum D3D11_LOGIC_OP + { + D3D11_LOGIC_OP_CLEAR = 0, + D3D11_LOGIC_OP_SET = ( D3D11_LOGIC_OP_CLEAR + 1 ) , + D3D11_LOGIC_OP_COPY = ( D3D11_LOGIC_OP_SET + 1 ) , + D3D11_LOGIC_OP_COPY_INVERTED = ( D3D11_LOGIC_OP_COPY + 1 ) , + D3D11_LOGIC_OP_NOOP = ( D3D11_LOGIC_OP_COPY_INVERTED + 1 ) , + D3D11_LOGIC_OP_INVERT = ( D3D11_LOGIC_OP_NOOP + 1 ) , + D3D11_LOGIC_OP_AND = ( D3D11_LOGIC_OP_INVERT + 1 ) , + D3D11_LOGIC_OP_NAND = ( D3D11_LOGIC_OP_AND + 1 ) , + D3D11_LOGIC_OP_OR = ( D3D11_LOGIC_OP_NAND + 1 ) , + D3D11_LOGIC_OP_NOR = ( D3D11_LOGIC_OP_OR + 1 ) , + D3D11_LOGIC_OP_XOR = ( D3D11_LOGIC_OP_NOR + 1 ) , + D3D11_LOGIC_OP_EQUIV = ( D3D11_LOGIC_OP_XOR + 1 ) , + D3D11_LOGIC_OP_AND_REVERSE = ( D3D11_LOGIC_OP_EQUIV + 1 ) , + D3D11_LOGIC_OP_AND_INVERTED = ( D3D11_LOGIC_OP_AND_REVERSE + 1 ) , + D3D11_LOGIC_OP_OR_REVERSE = ( D3D11_LOGIC_OP_AND_INVERTED + 1 ) , + D3D11_LOGIC_OP_OR_INVERTED = ( D3D11_LOGIC_OP_OR_REVERSE + 1 ) + } D3D11_LOGIC_OP; + +typedef struct D3D11_RENDER_TARGET_BLEND_DESC1 + { + BOOL BlendEnable; + BOOL LogicOpEnable; + D3D11_BLEND SrcBlend; + D3D11_BLEND DestBlend; + D3D11_BLEND_OP BlendOp; + D3D11_BLEND SrcBlendAlpha; + D3D11_BLEND DestBlendAlpha; + D3D11_BLEND_OP BlendOpAlpha; + D3D11_LOGIC_OP LogicOp; + UINT8 RenderTargetWriteMask; + } D3D11_RENDER_TARGET_BLEND_DESC1; + +typedef struct D3D11_BLEND_DESC1 + { + BOOL AlphaToCoverageEnable; + BOOL IndependentBlendEnable; + D3D11_RENDER_TARGET_BLEND_DESC1 RenderTarget[ 8 ]; + } D3D11_BLEND_DESC1; + +/* Note, the array size for RenderTarget[] above is D3D11_SIMULTANEOUS_RENDERTARGET_COUNT. + IDL processing/generation of this header replaces the define; this comment is merely explaining what happened. */ +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_BLEND_DESC1 : public D3D11_BLEND_DESC1 +{ + CD3D11_BLEND_DESC1() = default; + explicit CD3D11_BLEND_DESC1( const D3D11_BLEND_DESC1& o ) : + D3D11_BLEND_DESC1( o ) + {} + explicit CD3D11_BLEND_DESC1( CD3D11_DEFAULT ) + { + AlphaToCoverageEnable = FALSE; + IndependentBlendEnable = FALSE; + const D3D11_RENDER_TARGET_BLEND_DESC1 defaultRenderTargetBlendDesc = + { + FALSE,FALSE, + D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD, + D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD, + D3D11_LOGIC_OP_NOOP, + D3D11_COLOR_WRITE_ENABLE_ALL, + }; + for (UINT i = 0; i < D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; ++i) + RenderTarget[ i ] = defaultRenderTargetBlendDesc; + } + ~CD3D11_BLEND_DESC1() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D11BlendState1_INTERFACE_DEFINED__ +#define __ID3D11BlendState1_INTERFACE_DEFINED__ + +/* interface ID3D11BlendState1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11BlendState1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cc86fabe-da55-401d-85e7-e3c9de2877e9") + ID3D11BlendState1 : public ID3D11BlendState + { + public: + virtual void STDMETHODCALLTYPE GetDesc1( + /* [annotation] */ + _Out_ D3D11_BLEND_DESC1 *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11BlendState1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11BlendState1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11BlendState1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11BlendState1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11BlendState1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11BlendState1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11BlendState1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11BlendState1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11BlendState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11BlendState1 * This, + /* [annotation] */ + _Out_ D3D11_BLEND_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11BlendState1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D11BlendState1 * This, + /* [annotation] */ + _Out_ D3D11_BLEND_DESC1 *pDesc); + + END_INTERFACE + } ID3D11BlendState1Vtbl; + + interface ID3D11BlendState1 + { + CONST_VTBL struct ID3D11BlendState1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11BlendState1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11BlendState1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11BlendState1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11BlendState1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11BlendState1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11BlendState1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11BlendState1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11BlendState1_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D11BlendState1_GetDesc1(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11BlendState1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_1_0000_0001 */ +/* [local] */ + +typedef struct D3D11_RASTERIZER_DESC1 + { + D3D11_FILL_MODE FillMode; + D3D11_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + INT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL ScissorEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; + UINT ForcedSampleCount; + } D3D11_RASTERIZER_DESC1; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_RASTERIZER_DESC1 : public D3D11_RASTERIZER_DESC1 +{ + CD3D11_RASTERIZER_DESC1() = default; + explicit CD3D11_RASTERIZER_DESC1( const D3D11_RASTERIZER_DESC1& o ) : + D3D11_RASTERIZER_DESC1( o ) + {} + explicit CD3D11_RASTERIZER_DESC1( CD3D11_DEFAULT ) + { + FillMode = D3D11_FILL_SOLID; + CullMode = D3D11_CULL_BACK; + FrontCounterClockwise = FALSE; + DepthBias = D3D11_DEFAULT_DEPTH_BIAS; + DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP; + SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS; + DepthClipEnable = TRUE; + ScissorEnable = FALSE; + MultisampleEnable = FALSE; + AntialiasedLineEnable = FALSE; + ForcedSampleCount = 0; + } + explicit CD3D11_RASTERIZER_DESC1( + D3D11_FILL_MODE fillMode, + D3D11_CULL_MODE cullMode, + BOOL frontCounterClockwise, + INT depthBias, + FLOAT depthBiasClamp, + FLOAT slopeScaledDepthBias, + BOOL depthClipEnable, + BOOL scissorEnable, + BOOL multisampleEnable, + BOOL antialiasedLineEnable, + UINT forcedSampleCount ) + { + FillMode = fillMode; + CullMode = cullMode; + FrontCounterClockwise = frontCounterClockwise; + DepthBias = depthBias; + DepthBiasClamp = depthBiasClamp; + SlopeScaledDepthBias = slopeScaledDepthBias; + DepthClipEnable = depthClipEnable; + ScissorEnable = scissorEnable; + MultisampleEnable = multisampleEnable; + AntialiasedLineEnable = antialiasedLineEnable; + ForcedSampleCount = forcedSampleCount; + } + ~CD3D11_RASTERIZER_DESC1() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0001_v0_0_s_ifspec; + +#ifndef __ID3D11RasterizerState1_INTERFACE_DEFINED__ +#define __ID3D11RasterizerState1_INTERFACE_DEFINED__ + +/* interface ID3D11RasterizerState1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11RasterizerState1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1217d7a6-5039-418c-b042-9cbe256afd6e") + ID3D11RasterizerState1 : public ID3D11RasterizerState + { + public: + virtual void STDMETHODCALLTYPE GetDesc1( + /* [annotation] */ + _Out_ D3D11_RASTERIZER_DESC1 *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11RasterizerState1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11RasterizerState1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11RasterizerState1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11RasterizerState1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11RasterizerState1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11RasterizerState1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11RasterizerState1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11RasterizerState1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11RasterizerState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11RasterizerState1 * This, + /* [annotation] */ + _Out_ D3D11_RASTERIZER_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11RasterizerState1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D11RasterizerState1 * This, + /* [annotation] */ + _Out_ D3D11_RASTERIZER_DESC1 *pDesc); + + END_INTERFACE + } ID3D11RasterizerState1Vtbl; + + interface ID3D11RasterizerState1 + { + CONST_VTBL struct ID3D11RasterizerState1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11RasterizerState1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11RasterizerState1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11RasterizerState1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11RasterizerState1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11RasterizerState1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11RasterizerState1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11RasterizerState1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11RasterizerState1_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D11RasterizerState1_GetDesc1(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11RasterizerState1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_1_0000_0002 */ +/* [local] */ + +typedef +enum D3D11_1_CREATE_DEVICE_CONTEXT_STATE_FLAG + { + D3D11_1_CREATE_DEVICE_CONTEXT_STATE_SINGLETHREADED = 0x1 + } D3D11_1_CREATE_DEVICE_CONTEXT_STATE_FLAG; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0002_v0_0_s_ifspec; + +#ifndef __ID3DDeviceContextState_INTERFACE_DEFINED__ +#define __ID3DDeviceContextState_INTERFACE_DEFINED__ + +/* interface ID3DDeviceContextState */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3DDeviceContextState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5c1e0d8a-7c23-48f9-8c59-a92958ceff11") + ID3DDeviceContextState : public ID3D11DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3DDeviceContextStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3DDeviceContextState * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3DDeviceContextState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3DDeviceContextState * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3DDeviceContextState * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3DDeviceContextState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3DDeviceContextState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3DDeviceContextState * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + END_INTERFACE + } ID3DDeviceContextStateVtbl; + + interface ID3DDeviceContextState + { + CONST_VTBL struct ID3DDeviceContextStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3DDeviceContextState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3DDeviceContextState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3DDeviceContextState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3DDeviceContextState_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3DDeviceContextState_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3DDeviceContextState_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3DDeviceContextState_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3DDeviceContextState_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11DeviceContext1_INTERFACE_DEFINED__ +#define __ID3D11DeviceContext1_INTERFACE_DEFINED__ + +/* interface ID3D11DeviceContext1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11DeviceContext1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bb2c6faa-b5fb-4082-8e6b-388b8cfa90e1") + ID3D11DeviceContext1 : public ID3D11DeviceContext + { + public: + virtual void STDMETHODCALLTYPE CopySubresourceRegion1( + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox, + /* [annotation] */ + _In_ UINT CopyFlags) = 0; + + virtual void STDMETHODCALLTYPE UpdateSubresource1( + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch, + /* [annotation] */ + _In_ UINT CopyFlags) = 0; + + virtual void STDMETHODCALLTYPE DiscardResource( + /* [annotation] */ + _In_ ID3D11Resource *pResource) = 0; + + virtual void STDMETHODCALLTYPE DiscardView( + /* [annotation] */ + _In_ ID3D11View *pResourceView) = 0; + + virtual void STDMETHODCALLTYPE VSSetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE HSSetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE DSSetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE GSSetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE PSSetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE CSSetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE VSGetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE HSGetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE DSGetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE GSGetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE PSGetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE CSGetConstantBuffers1( + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants) = 0; + + virtual void STDMETHODCALLTYPE SwapDeviceContextState( + /* [annotation] */ + _In_ ID3DDeviceContextState *pState, + /* [annotation] */ + _Outptr_opt_ ID3DDeviceContextState **ppPreviousState) = 0; + + virtual void STDMETHODCALLTYPE ClearView( + /* [annotation] */ + _In_ ID3D11View *pView, + /* [annotation] */ + _In_ const FLOAT Color[ 4 ], + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRect, + UINT NumRects) = 0; + + virtual void STDMETHODCALLTYPE DiscardView1( + /* [annotation] */ + _In_ ID3D11View *pResourceView, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects, + UINT NumRects) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11DeviceContext1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11DeviceContext1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11DeviceContext1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11DeviceContext1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetConstantBuffers) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetShaderResources) + void ( STDMETHODCALLTYPE *PSSetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetShader) + void ( STDMETHODCALLTYPE *PSSetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11PixelShader *pPixelShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetSamplers) + void ( STDMETHODCALLTYPE *PSSetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetShader) + void ( STDMETHODCALLTYPE *VSSetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11VertexShader *pVertexShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexed) + void ( STDMETHODCALLTYPE *DrawIndexed )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ UINT IndexCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Draw) + void ( STDMETHODCALLTYPE *Draw )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ UINT VertexCount, + /* [annotation] */ + _In_ UINT StartVertexLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D11_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_opt_ D3D11_MAPPED_SUBRESOURCE *pMappedResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetConstantBuffers) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetInputLayout) + void ( STDMETHODCALLTYPE *IASetInputLayout )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11InputLayout *pInputLayout); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppVertexBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pStrides, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11Buffer *pIndexBuffer, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT Offset); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ UINT IndexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ UINT VertexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetConstantBuffers) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetShader) + void ( STDMETHODCALLTYPE *GSSetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11GeometryShader *pShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ D3D11_PRIMITIVE_TOPOLOGY Topology); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetShaderResources) + void ( STDMETHODCALLTYPE *VSSetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetSamplers) + void ( STDMETHODCALLTYPE *VSSetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Begin) + void ( STDMETHODCALLTYPE *Begin )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, End) + void ( STDMETHODCALLTYPE *End )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync, + /* [annotation] */ + _Out_writes_bytes_opt_( DataSize ) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11Predicate *pPredicate, + /* [annotation] */ + _In_ BOOL PredicateValue); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetShaderResources) + void ( STDMETHODCALLTYPE *GSSetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetSamplers) + void ( STDMETHODCALLTYPE *GSSetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetRenderTargetsAndUnorderedAccessViews) + void ( STDMETHODCALLTYPE *OMSetRenderTargetsAndUnorderedAccessViews )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ UINT NumRTVs, + /* [annotation] */ + _In_reads_opt_(NumRTVs) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_ UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetBlendState) + void ( STDMETHODCALLTYPE *OMSetBlendState )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11BlendState *pBlendState, + /* [annotation] */ + _In_opt_ const FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _In_ UINT SampleMask); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetDepthStencilState) + void ( STDMETHODCALLTYPE *OMSetDepthStencilState )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilState *pDepthStencilState, + /* [annotation] */ + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppSOTargets, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawAuto) + void ( STDMETHODCALLTYPE *DrawAuto )( + ID3D11DeviceContext1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexedInstancedIndirect) + void ( STDMETHODCALLTYPE *DrawIndexedInstancedIndirect )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawInstancedIndirect) + void ( STDMETHODCALLTYPE *DrawInstancedIndirect )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ UINT ThreadGroupCountX, + /* [annotation] */ + _In_ UINT ThreadGroupCountY, + /* [annotation] */ + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DispatchIndirect) + void ( STDMETHODCALLTYPE *DispatchIndirect )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetState) + void ( STDMETHODCALLTYPE *RSSetState )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11RasterizerState *pRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + /* [annotation] */ + _In_reads_opt_(NumViewports) const D3D11_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopySubresourceRegion) + void ( STDMETHODCALLTYPE *CopySubresourceRegion )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, UpdateSubresource) + void ( STDMETHODCALLTYPE *UpdateSubresource )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopyStructureCount) + void ( STDMETHODCALLTYPE *CopyStructureCount )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pDstBuffer, + /* [annotation] */ + _In_ UINT DstAlignedByteOffset, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pSrcView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11RenderTargetView *pRenderTargetView, + /* [annotation] */ + _In_ const FLOAT ColorRGBA[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const UINT Values[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const FLOAT Values[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_ UINT ClearFlags, + /* [annotation] */ + _In_ FLOAT Depth, + /* [annotation] */ + _In_ UINT8 Stencil); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GenerateMips) + void ( STDMETHODCALLTYPE *GenerateMips )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11ShaderResourceView *pShaderResourceView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SetResourceMinLOD) + void ( STDMETHODCALLTYPE *SetResourceMinLOD )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + FLOAT MinLOD); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetResourceMinLOD) + FLOAT ( STDMETHODCALLTYPE *GetResourceMinLOD )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ExecuteCommandList) + void ( STDMETHODCALLTYPE *ExecuteCommandList )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11CommandList *pCommandList, + BOOL RestoreContextState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetShaderResources) + void ( STDMETHODCALLTYPE *HSSetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetShader) + void ( STDMETHODCALLTYPE *HSSetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11HullShader *pHullShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetSamplers) + void ( STDMETHODCALLTYPE *HSSetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetConstantBuffers) + void ( STDMETHODCALLTYPE *HSSetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetShaderResources) + void ( STDMETHODCALLTYPE *DSSetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetShader) + void ( STDMETHODCALLTYPE *DSSetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11DomainShader *pDomainShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetSamplers) + void ( STDMETHODCALLTYPE *DSSetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetConstantBuffers) + void ( STDMETHODCALLTYPE *DSSetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetShaderResources) + void ( STDMETHODCALLTYPE *CSSetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetUnorderedAccessViews) + void ( STDMETHODCALLTYPE *CSSetUnorderedAccessViews )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetShader) + void ( STDMETHODCALLTYPE *CSSetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_opt_ ID3D11ComputeShader *pComputeShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetSamplers) + void ( STDMETHODCALLTYPE *CSSetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetConstantBuffers) + void ( STDMETHODCALLTYPE *CSSetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetConstantBuffers) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetShaderResources) + void ( STDMETHODCALLTYPE *PSGetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetShader) + void ( STDMETHODCALLTYPE *PSGetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11PixelShader **ppPixelShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetSamplers) + void ( STDMETHODCALLTYPE *PSGetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetShader) + void ( STDMETHODCALLTYPE *VSGetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11VertexShader **ppVertexShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetConstantBuffers) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetInputLayout) + void ( STDMETHODCALLTYPE *IAGetInputLayout )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetVertexBuffers) + void ( STDMETHODCALLTYPE *IAGetVertexBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppVertexBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pStrides, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetIndexBuffer) + void ( STDMETHODCALLTYPE *IAGetIndexBuffer )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Buffer **pIndexBuffer, + /* [annotation] */ + _Out_opt_ DXGI_FORMAT *Format, + /* [annotation] */ + _Out_opt_ UINT *Offset); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetConstantBuffers) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetShader) + void ( STDMETHODCALLTYPE *GSGetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11GeometryShader **ppGeometryShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IAGetPrimitiveTopology )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Out_ D3D11_PRIMITIVE_TOPOLOGY *pTopology); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetShaderResources) + void ( STDMETHODCALLTYPE *VSGetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetSamplers) + void ( STDMETHODCALLTYPE *VSGetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetPredication) + void ( STDMETHODCALLTYPE *GetPredication )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Predicate **ppPredicate, + /* [annotation] */ + _Out_opt_ BOOL *pPredicateValue); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetShaderResources) + void ( STDMETHODCALLTYPE *GSGetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetSamplers) + void ( STDMETHODCALLTYPE *GSGetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetRenderTargets) + void ( STDMETHODCALLTYPE *OMGetRenderTargets )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetRenderTargetsAndUnorderedAccessViews) + void ( STDMETHODCALLTYPE *OMGetRenderTargetsAndUnorderedAccessViews )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumRTVs, + /* [annotation] */ + _Out_writes_opt_(NumRTVs) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetBlendState) + void ( STDMETHODCALLTYPE *OMGetBlendState )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11BlendState **ppBlendState, + /* [annotation] */ + _Out_opt_ FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _Out_opt_ UINT *pSampleMask); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetDepthStencilState) + void ( STDMETHODCALLTYPE *OMGetDepthStencilState )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilState **ppDepthStencilState, + /* [annotation] */ + _Out_opt_ UINT *pStencilRef); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SOGetTargets) + void ( STDMETHODCALLTYPE *SOGetTargets )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppSOTargets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetState) + void ( STDMETHODCALLTYPE *RSGetState )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetViewports) + void ( STDMETHODCALLTYPE *RSGetViewports )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumViewports, + /* [annotation] */ + _Out_writes_opt_(*pNumViewports) D3D11_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetScissorRects) + void ( STDMETHODCALLTYPE *RSGetScissorRects )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumRects, + /* [annotation] */ + _Out_writes_opt_(*pNumRects) D3D11_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetShaderResources) + void ( STDMETHODCALLTYPE *HSGetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetShader) + void ( STDMETHODCALLTYPE *HSGetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11HullShader **ppHullShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetSamplers) + void ( STDMETHODCALLTYPE *HSGetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetConstantBuffers) + void ( STDMETHODCALLTYPE *HSGetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetShaderResources) + void ( STDMETHODCALLTYPE *DSGetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetShader) + void ( STDMETHODCALLTYPE *DSGetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11DomainShader **ppDomainShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetSamplers) + void ( STDMETHODCALLTYPE *DSGetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetConstantBuffers) + void ( STDMETHODCALLTYPE *DSGetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetShaderResources) + void ( STDMETHODCALLTYPE *CSGetShaderResources )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetUnorderedAccessViews) + void ( STDMETHODCALLTYPE *CSGetUnorderedAccessViews )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetShader) + void ( STDMETHODCALLTYPE *CSGetShader )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11ComputeShader **ppComputeShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetSamplers) + void ( STDMETHODCALLTYPE *CSGetSamplers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetConstantBuffers) + void ( STDMETHODCALLTYPE *CSGetConstantBuffers )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D11DeviceContext1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Flush) + void ( STDMETHODCALLTYPE *Flush )( + ID3D11DeviceContext1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetType) + D3D11_DEVICE_CONTEXT_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D11DeviceContext1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetContextFlags) + UINT ( STDMETHODCALLTYPE *GetContextFlags )( + ID3D11DeviceContext1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, FinishCommandList) + HRESULT ( STDMETHODCALLTYPE *FinishCommandList )( + ID3D11DeviceContext1 * This, + BOOL RestoreDeferredContextState, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11CommandList **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CopySubresourceRegion1) + void ( STDMETHODCALLTYPE *CopySubresourceRegion1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox, + /* [annotation] */ + _In_ UINT CopyFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, UpdateSubresource1) + void ( STDMETHODCALLTYPE *UpdateSubresource1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch, + /* [annotation] */ + _In_ UINT CopyFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardView) + void ( STDMETHODCALLTYPE *DiscardView )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11View *pResourceView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, VSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, HSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *HSSetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *DSSetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, GSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, PSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *CSSetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, VSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, HSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *HSGetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *DSGetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, GSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, PSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *CSGetConstantBuffers1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, SwapDeviceContextState) + void ( STDMETHODCALLTYPE *SwapDeviceContextState )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3DDeviceContextState *pState, + /* [annotation] */ + _Outptr_opt_ ID3DDeviceContextState **ppPreviousState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, ClearView) + void ( STDMETHODCALLTYPE *ClearView )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11View *pView, + /* [annotation] */ + _In_ const FLOAT Color[ 4 ], + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRect, + UINT NumRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardView1) + void ( STDMETHODCALLTYPE *DiscardView1 )( + ID3D11DeviceContext1 * This, + /* [annotation] */ + _In_ ID3D11View *pResourceView, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects, + UINT NumRects); + + END_INTERFACE + } ID3D11DeviceContext1Vtbl; + + interface ID3D11DeviceContext1 + { + CONST_VTBL struct ID3D11DeviceContext1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11DeviceContext1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11DeviceContext1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11DeviceContext1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11DeviceContext1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11DeviceContext1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11DeviceContext1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11DeviceContext1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11DeviceContext1_VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext1_PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext1_DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) \ + ( (This)->lpVtbl -> DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) ) + +#define ID3D11DeviceContext1_Draw(This,VertexCount,StartVertexLocation) \ + ( (This)->lpVtbl -> Draw(This,VertexCount,StartVertexLocation) ) + +#define ID3D11DeviceContext1_Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) \ + ( (This)->lpVtbl -> Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) ) + +#define ID3D11DeviceContext1_Unmap(This,pResource,Subresource) \ + ( (This)->lpVtbl -> Unmap(This,pResource,Subresource) ) + +#define ID3D11DeviceContext1_PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_IASetInputLayout(This,pInputLayout) \ + ( (This)->lpVtbl -> IASetInputLayout(This,pInputLayout) ) + +#define ID3D11DeviceContext1_IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D11DeviceContext1_IASetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D11DeviceContext1_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D11DeviceContext1_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D11DeviceContext1_GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_GSSetShader(This,pShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> GSSetShader(This,pShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext1_IASetPrimitiveTopology(This,Topology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,Topology) ) + +#define ID3D11DeviceContext1_VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_Begin(This,pAsync) \ + ( (This)->lpVtbl -> Begin(This,pAsync) ) + +#define ID3D11DeviceContext1_End(This,pAsync) \ + ( (This)->lpVtbl -> End(This,pAsync) ) + +#define ID3D11DeviceContext1_GetData(This,pAsync,pData,DataSize,GetDataFlags) \ + ( (This)->lpVtbl -> GetData(This,pAsync,pData,DataSize,GetDataFlags) ) + +#define ID3D11DeviceContext1_SetPredication(This,pPredicate,PredicateValue) \ + ( (This)->lpVtbl -> SetPredication(This,pPredicate,PredicateValue) ) + +#define ID3D11DeviceContext1_GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) ) + +#define ID3D11DeviceContext1_OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \ + ( (This)->lpVtbl -> OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) ) + +#define ID3D11DeviceContext1_OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) \ + ( (This)->lpVtbl -> OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) ) + +#define ID3D11DeviceContext1_OMSetDepthStencilState(This,pDepthStencilState,StencilRef) \ + ( (This)->lpVtbl -> OMSetDepthStencilState(This,pDepthStencilState,StencilRef) ) + +#define ID3D11DeviceContext1_SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) \ + ( (This)->lpVtbl -> SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) ) + +#define ID3D11DeviceContext1_DrawAuto(This) \ + ( (This)->lpVtbl -> DrawAuto(This) ) + +#define ID3D11DeviceContext1_DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext1_DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext1_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D11DeviceContext1_DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext1_RSSetState(This,pRasterizerState) \ + ( (This)->lpVtbl -> RSSetState(This,pRasterizerState) ) + +#define ID3D11DeviceContext1_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D11DeviceContext1_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D11DeviceContext1_CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) ) + +#define ID3D11DeviceContext1_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D11DeviceContext1_UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D11DeviceContext1_CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) \ + ( (This)->lpVtbl -> CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) ) + +#define ID3D11DeviceContext1_ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) ) + +#define ID3D11DeviceContext1_ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) ) + +#define ID3D11DeviceContext1_ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) ) + +#define ID3D11DeviceContext1_ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) ) + +#define ID3D11DeviceContext1_GenerateMips(This,pShaderResourceView) \ + ( (This)->lpVtbl -> GenerateMips(This,pShaderResourceView) ) + +#define ID3D11DeviceContext1_SetResourceMinLOD(This,pResource,MinLOD) \ + ( (This)->lpVtbl -> SetResourceMinLOD(This,pResource,MinLOD) ) + +#define ID3D11DeviceContext1_GetResourceMinLOD(This,pResource) \ + ( (This)->lpVtbl -> GetResourceMinLOD(This,pResource) ) + +#define ID3D11DeviceContext1_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D11DeviceContext1_ExecuteCommandList(This,pCommandList,RestoreContextState) \ + ( (This)->lpVtbl -> ExecuteCommandList(This,pCommandList,RestoreContextState) ) + +#define ID3D11DeviceContext1_HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext1_HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext1_DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \ + ( (This)->lpVtbl -> CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) ) + +#define ID3D11DeviceContext1_CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext1_CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext1_PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext1_PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_IAGetInputLayout(This,ppInputLayout) \ + ( (This)->lpVtbl -> IAGetInputLayout(This,ppInputLayout) ) + +#define ID3D11DeviceContext1_IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D11DeviceContext1_IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D11DeviceContext1_GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext1_IAGetPrimitiveTopology(This,pTopology) \ + ( (This)->lpVtbl -> IAGetPrimitiveTopology(This,pTopology) ) + +#define ID3D11DeviceContext1_VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_GetPredication(This,ppPredicate,pPredicateValue) \ + ( (This)->lpVtbl -> GetPredication(This,ppPredicate,pPredicateValue) ) + +#define ID3D11DeviceContext1_GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) \ + ( (This)->lpVtbl -> OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) ) + +#define ID3D11DeviceContext1_OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) \ + ( (This)->lpVtbl -> OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) ) + +#define ID3D11DeviceContext1_OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) \ + ( (This)->lpVtbl -> OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) ) + +#define ID3D11DeviceContext1_OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) \ + ( (This)->lpVtbl -> OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) ) + +#define ID3D11DeviceContext1_SOGetTargets(This,NumBuffers,ppSOTargets) \ + ( (This)->lpVtbl -> SOGetTargets(This,NumBuffers,ppSOTargets) ) + +#define ID3D11DeviceContext1_RSGetState(This,ppRasterizerState) \ + ( (This)->lpVtbl -> RSGetState(This,ppRasterizerState) ) + +#define ID3D11DeviceContext1_RSGetViewports(This,pNumViewports,pViewports) \ + ( (This)->lpVtbl -> RSGetViewports(This,pNumViewports,pViewports) ) + +#define ID3D11DeviceContext1_RSGetScissorRects(This,pNumRects,pRects) \ + ( (This)->lpVtbl -> RSGetScissorRects(This,pNumRects,pRects) ) + +#define ID3D11DeviceContext1_HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext1_HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext1_DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext1_CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) \ + ( (This)->lpVtbl -> CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) ) + +#define ID3D11DeviceContext1_CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext1_CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext1_CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext1_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D11DeviceContext1_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + +#define ID3D11DeviceContext1_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + +#define ID3D11DeviceContext1_GetContextFlags(This) \ + ( (This)->lpVtbl -> GetContextFlags(This) ) + +#define ID3D11DeviceContext1_FinishCommandList(This,RestoreDeferredContextState,ppCommandList) \ + ( (This)->lpVtbl -> FinishCommandList(This,RestoreDeferredContextState,ppCommandList) ) + + +#define ID3D11DeviceContext1_CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) \ + ( (This)->lpVtbl -> CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) ) + +#define ID3D11DeviceContext1_UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) \ + ( (This)->lpVtbl -> UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) ) + +#define ID3D11DeviceContext1_DiscardResource(This,pResource) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource) ) + +#define ID3D11DeviceContext1_DiscardView(This,pResourceView) \ + ( (This)->lpVtbl -> DiscardView(This,pResourceView) ) + +#define ID3D11DeviceContext1_VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext1_SwapDeviceContextState(This,pState,ppPreviousState) \ + ( (This)->lpVtbl -> SwapDeviceContextState(This,pState,ppPreviousState) ) + +#define ID3D11DeviceContext1_ClearView(This,pView,Color,pRect,NumRects) \ + ( (This)->lpVtbl -> ClearView(This,pView,Color,pRect,NumRects) ) + +#define ID3D11DeviceContext1_DiscardView1(This,pResourceView,pRects,NumRects) \ + ( (This)->lpVtbl -> DiscardView1(This,pResourceView,pRects,NumRects) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11DeviceContext1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_1_0000_0004 */ +/* [local] */ + +typedef struct D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK + { + UINT ClearSize; + UINT EncryptedSize; + } D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK; + +typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC1 + { + D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType; + UINT DataOffset; + UINT DataSize; + /* [annotation] */ + _Field_size_opt_(IVSize) void *pIV; + UINT IVSize; + /* [annotation] */ + _Field_size_opt_(SubSampleMappingCount) D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK *pSubSampleMappingBlock; + UINT SubSampleMappingCount; + } D3D11_VIDEO_DECODER_BUFFER_DESC1; + +typedef struct D3D11_VIDEO_DECODER_BEGIN_FRAME_CRYPTO_SESSION + { + ID3D11CryptoSession *pCryptoSession; + UINT BlobSize; + /* [annotation] */ + _Field_size_opt_(BlobSize) void *pBlob; + GUID *pKeyInfoId; + UINT PrivateDataSize; + /* [annotation] */ + _Field_size_opt_(PrivateDataSize) void *pPrivateData; + } D3D11_VIDEO_DECODER_BEGIN_FRAME_CRYPTO_SESSION; + +typedef +enum D3D11_VIDEO_DECODER_CAPS + { + D3D11_VIDEO_DECODER_CAPS_DOWNSAMPLE = 0x1, + D3D11_VIDEO_DECODER_CAPS_NON_REAL_TIME = 0x2, + D3D11_VIDEO_DECODER_CAPS_DOWNSAMPLE_DYNAMIC = 0x4, + D3D11_VIDEO_DECODER_CAPS_DOWNSAMPLE_REQUIRED = 0x8, + D3D11_VIDEO_DECODER_CAPS_UNSUPPORTED = 0x10 + } D3D11_VIDEO_DECODER_CAPS; + +typedef +enum D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINTS + { + D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_MULTIPLANE_OVERLAY_ROTATION = 0x1, + D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_MULTIPLANE_OVERLAY_RESIZE = 0x2, + D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_MULTIPLANE_OVERLAY_COLOR_SPACE_CONVERSION = 0x4, + D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_TRIPLE_BUFFER_OUTPUT = 0x8 + } D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINTS; + +typedef struct D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT + { + BOOL Enable; + UINT Width; + UINT Height; + DXGI_FORMAT Format; + } D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT; + +typedef +enum D3D11_CRYPTO_SESSION_STATUS + { + D3D11_CRYPTO_SESSION_STATUS_OK = 0, + D3D11_CRYPTO_SESSION_STATUS_KEY_LOST = 1, + D3D11_CRYPTO_SESSION_STATUS_KEY_AND_CONTENT_LOST = 2 + } D3D11_CRYPTO_SESSION_STATUS; + +typedef struct D3D11_KEY_EXCHANGE_HW_PROTECTION_INPUT_DATA + { + UINT PrivateDataSize; + UINT HWProtectionDataSize; + BYTE pbInput[ 4 ]; + } D3D11_KEY_EXCHANGE_HW_PROTECTION_INPUT_DATA; + +typedef struct D3D11_KEY_EXCHANGE_HW_PROTECTION_OUTPUT_DATA + { + UINT PrivateDataSize; + UINT MaxHWProtectionDataSize; + UINT HWProtectionDataSize; + UINT64 TransportTime; + UINT64 ExecutionTime; + BYTE pbOutput[ 4 ]; + } D3D11_KEY_EXCHANGE_HW_PROTECTION_OUTPUT_DATA; + +typedef struct D3D11_KEY_EXCHANGE_HW_PROTECTION_DATA + { + UINT HWProtectionFunctionID; + D3D11_KEY_EXCHANGE_HW_PROTECTION_INPUT_DATA *pInputData; + D3D11_KEY_EXCHANGE_HW_PROTECTION_OUTPUT_DATA *pOutputData; + HRESULT Status; + } D3D11_KEY_EXCHANGE_HW_PROTECTION_DATA; + +typedef struct D3D11_VIDEO_SAMPLE_DESC + { + UINT Width; + UINT Height; + DXGI_FORMAT Format; + DXGI_COLOR_SPACE_TYPE ColorSpace; + } D3D11_VIDEO_SAMPLE_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0004_v0_0_s_ifspec; + +#ifndef __ID3D11VideoContext1_INTERFACE_DEFINED__ +#define __ID3D11VideoContext1_INTERFACE_DEFINED__ + +/* interface ID3D11VideoContext1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoContext1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A7F026DA-A5F8-4487-A564-15E34357651E") + ID3D11VideoContext1 : public ID3D11VideoContext + { + public: + virtual HRESULT STDMETHODCALLTYPE SubmitDecoderBuffers1( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC1 *pBufferDesc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataForNewHardwareKey( + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT PrivateInputSize, + /* [annotation] */ + _In_reads_(PrivateInputSize) const void *pPrivatInputData, + /* [annotation] */ + _Out_ UINT64 *pPrivateOutputData) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckCryptoSessionStatus( + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _Out_ D3D11_CRYPTO_SESSION_STATUS *pStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE DecoderEnableDownsampling( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc, + /* [annotation] */ + _In_ UINT ReferenceFrameCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE DecoderUpdateDownsampling( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetOutputColorSpace1( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE ColorSpace) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetOutputShaderUsage( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL ShaderUsage) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetOutputColorSpace1( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetOutputShaderUsage( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pShaderUsage) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamColorSpace1( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE ColorSpace) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamMirror( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ BOOL FlipHorizontal, + /* [annotation] */ + _In_ BOOL FlipVertical) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamColorSpace1( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamMirror( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ BOOL *pFlipHorizontal, + /* [annotation] */ + _Out_ BOOL *pFlipVertical) = 0; + + virtual HRESULT STDMETHODCALLTYPE VideoProcessorGetBehaviorHints( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT OutputWidth, + /* [annotation] */ + _In_ UINT OutputHeight, + /* [annotation] */ + _In_ DXGI_FORMAT OutputFormat, + /* [annotation] */ + _In_ UINT StreamCount, + /* [annotation] */ + _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT *pStreams, + /* [annotation] */ + _Out_ UINT *pBehaviorHints) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoContext1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoContext1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoContext1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoContext1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, GetDecoderBuffer) + HRESULT ( STDMETHODCALLTYPE *GetDecoderBuffer )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + D3D11_VIDEO_DECODER_BUFFER_TYPE Type, + /* [annotation] */ + _Out_ UINT *pBufferSize, + /* [annotation] */ + _Outptr_result_bytebuffer_(*pBufferSize) void **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, ReleaseDecoderBuffer) + HRESULT ( STDMETHODCALLTYPE *ReleaseDecoderBuffer )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ D3D11_VIDEO_DECODER_BUFFER_TYPE Type); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderBeginFrame) + HRESULT ( STDMETHODCALLTYPE *DecoderBeginFrame )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ ID3D11VideoDecoderOutputView *pView, + UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderEndFrame) + HRESULT ( STDMETHODCALLTYPE *DecoderEndFrame )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, SubmitDecoderBuffers) + HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC *pBufferDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *DecoderExtension )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_EXTENSION *pExtensionData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputTargetRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputTargetRect )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputBackgroundColor) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputBackgroundColor )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL YCbCr, + /* [annotation] */ + _In_ const D3D11_VIDEO_COLOR *pColor); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputAlphaFillMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputAlphaFillMode )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE AlphaFillMode, + /* [annotation] */ + _In_ UINT StreamIndex); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputConstriction) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputConstriction )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ SIZE Size); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputStereoMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputStereoMode )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetOutputExtension )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputTargetRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputTargetRect )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *Enabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputBackgroundColor) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputBackgroundColor )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pYCbCr, + /* [annotation] */ + _Out_ D3D11_VIDEO_COLOR *pColor); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputAlphaFillMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputAlphaFillMode )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *pAlphaFillMode, + /* [annotation] */ + _Out_ UINT *pStreamIndex); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputConstriction) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputConstriction )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ SIZE *pSize); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputStereoMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputStereoMode )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pEnabled); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetOutputExtension )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Out_writes_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamFrameFormat) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFrameFormat )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_FRAME_FORMAT FrameFormat); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamOutputRate) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamOutputRate )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate, + /* [annotation] */ + _In_ BOOL RepeatFrame, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pCustomRate); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamSourceRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamSourceRect )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamDestRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamDestRect )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamAlpha) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAlpha )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ FLOAT Alpha); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamPalette) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPalette )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ UINT Count, + /* [annotation] */ + _In_reads_opt_(Count) const UINT *pEntries); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamPixelAspectRatio) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPixelAspectRatio )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pSourceAspectRatio, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pDestinationAspectRatio); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamLumaKey) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamLumaKey )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ FLOAT Lower, + /* [annotation] */ + _In_ FLOAT Upper); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamStereoFormat) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamStereoFormat )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format, + /* [annotation] */ + _In_ BOOL LeftViewFrame0, + /* [annotation] */ + _In_ BOOL BaseViewFrame0, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode, + /* [annotation] */ + _In_ int MonoOffset); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamAutoProcessingMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAutoProcessingMode )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamFilter) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFilter )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ int Level); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetStreamExtension )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamFrameFormat) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFrameFormat )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_FRAME_FORMAT *pFrameFormat); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamOutputRate) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamOutputRate )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *pOutputRate, + /* [annotation] */ + _Out_ BOOL *pRepeatFrame, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pCustomRate); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamSourceRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamSourceRect )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamDestRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamDestRect )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamAlpha) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAlpha )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ FLOAT *pAlpha); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamPalette) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPalette )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ UINT Count, + /* [annotation] */ + _Out_writes_(Count) UINT *pEntries); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamPixelAspectRatio) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPixelAspectRatio )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pSourceAspectRatio, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pDestinationAspectRatio); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamLumaKey) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamLumaKey )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ FLOAT *pLower, + /* [annotation] */ + _Out_ FLOAT *pUpper); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamStereoFormat) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamStereoFormat )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *pFormat, + /* [annotation] */ + _Out_ BOOL *pLeftViewFrame0, + /* [annotation] */ + _Out_ BOOL *pBaseViewFrame0, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *pFlipMode, + /* [annotation] */ + _Out_ int *MonoOffset); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamAutoProcessingMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAutoProcessingMode )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamFilter) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFilter )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ int *pLevel); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetStreamExtension )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Out_writes_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorBlt) + HRESULT ( STDMETHODCALLTYPE *VideoProcessorBlt )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ ID3D11VideoProcessorOutputView *pView, + /* [annotation] */ + _In_ UINT OutputFrame, + /* [annotation] */ + _In_ UINT StreamCount, + /* [annotation] */ + _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM *pStreams); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, NegotiateCryptoSessionKeyExchange) + HRESULT ( STDMETHODCALLTYPE *NegotiateCryptoSessionKeyExchange )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, EncryptionBlt) + void ( STDMETHODCALLTYPE *EncryptionBlt )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ ID3D11Texture2D *pSrcSurface, + /* [annotation] */ + _In_ ID3D11Texture2D *pDstSurface, + /* [annotation] */ + _In_ UINT IVSize, + /* [annotation] */ + _Inout_opt_bytecount_(IVSize) void *pIV); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecryptionBlt) + void ( STDMETHODCALLTYPE *DecryptionBlt )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ ID3D11Texture2D *pSrcSurface, + /* [annotation] */ + _In_ ID3D11Texture2D *pDstSurface, + /* [annotation] */ + _In_opt_ D3D11_ENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo, + /* [annotation] */ + _In_ UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey, + /* [annotation] */ + _In_ UINT IVSize, + /* [annotation] */ + _Inout_opt_bytecount_(IVSize) void *pIV); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, StartSessionKeyRefresh) + void ( STDMETHODCALLTYPE *StartSessionKeyRefresh )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT RandomNumberSize, + /* [annotation] */ + _Out_writes_bytes_(RandomNumberSize) void *pRandomNumber); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, FinishSessionKeyRefresh) + void ( STDMETHODCALLTYPE *FinishSessionKeyRefresh )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, GetEncryptionBltKey) + HRESULT ( STDMETHODCALLTYPE *GetEncryptionBltKey )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT KeySize, + /* [annotation] */ + _Out_writes_bytes_(KeySize) void *pReadbackKey); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, NegotiateAuthenticatedChannelKeyExchange) + HRESULT ( STDMETHODCALLTYPE *NegotiateAuthenticatedChannelKeyExchange )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, QueryAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *QueryAuthenticatedChannel )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT InputSize, + /* [annotation] */ + _In_reads_bytes_(InputSize) const void *pInput, + /* [annotation] */ + _In_ UINT OutputSize, + /* [annotation] */ + _Out_writes_bytes_(OutputSize) void *pOutput); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, ConfigureAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *ConfigureAuthenticatedChannel )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT InputSize, + /* [annotation] */ + _In_reads_bytes_(InputSize) const void *pInput, + /* [annotation] */ + _Out_ D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *pOutput); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamRotation) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamRotation )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_ROTATION Rotation); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamRotation) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamRotation )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_ROTATION *pRotation); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, SubmitDecoderBuffers1) + HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers1 )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC1 *pBufferDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, GetDataForNewHardwareKey) + HRESULT ( STDMETHODCALLTYPE *GetDataForNewHardwareKey )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT PrivateInputSize, + /* [annotation] */ + _In_reads_(PrivateInputSize) const void *pPrivatInputData, + /* [annotation] */ + _Out_ UINT64 *pPrivateOutputData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, CheckCryptoSessionStatus) + HRESULT ( STDMETHODCALLTYPE *CheckCryptoSessionStatus )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _Out_ D3D11_CRYPTO_SESSION_STATUS *pStatus); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, DecoderEnableDownsampling) + HRESULT ( STDMETHODCALLTYPE *DecoderEnableDownsampling )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc, + /* [annotation] */ + _In_ UINT ReferenceFrameCount); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, DecoderUpdateDownsampling) + HRESULT ( STDMETHODCALLTYPE *DecoderUpdateDownsampling )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetOutputColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace1 )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE ColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetOutputShaderUsage) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputShaderUsage )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL ShaderUsage); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetOutputColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace1 )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetOutputShaderUsage) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputShaderUsage )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pShaderUsage); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetStreamColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace1 )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE ColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetStreamMirror) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamMirror )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ BOOL FlipHorizontal, + /* [annotation] */ + _In_ BOOL FlipVertical); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetStreamColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace1 )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetStreamMirror) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamMirror )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ BOOL *pFlipHorizontal, + /* [annotation] */ + _Out_ BOOL *pFlipVertical); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetBehaviorHints) + HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetBehaviorHints )( + ID3D11VideoContext1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT OutputWidth, + /* [annotation] */ + _In_ UINT OutputHeight, + /* [annotation] */ + _In_ DXGI_FORMAT OutputFormat, + /* [annotation] */ + _In_ UINT StreamCount, + /* [annotation] */ + _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT *pStreams, + /* [annotation] */ + _Out_ UINT *pBehaviorHints); + + END_INTERFACE + } ID3D11VideoContext1Vtbl; + + interface ID3D11VideoContext1 + { + CONST_VTBL struct ID3D11VideoContext1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoContext1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoContext1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoContext1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoContext1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoContext1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoContext1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoContext1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoContext1_GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) \ + ( (This)->lpVtbl -> GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) ) + +#define ID3D11VideoContext1_ReleaseDecoderBuffer(This,pDecoder,Type) \ + ( (This)->lpVtbl -> ReleaseDecoderBuffer(This,pDecoder,Type) ) + +#define ID3D11VideoContext1_DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) \ + ( (This)->lpVtbl -> DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) ) + +#define ID3D11VideoContext1_DecoderEndFrame(This,pDecoder) \ + ( (This)->lpVtbl -> DecoderEndFrame(This,pDecoder) ) + +#define ID3D11VideoContext1_SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) \ + ( (This)->lpVtbl -> SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) ) + +#define ID3D11VideoContext1_DecoderExtension(This,pDecoder,pExtensionData) \ + ( (This)->lpVtbl -> DecoderExtension(This,pDecoder,pExtensionData) ) + +#define ID3D11VideoContext1_VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) ) + +#define ID3D11VideoContext1_VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) ) + +#define ID3D11VideoContext1_VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext1_VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) ) + +#define ID3D11VideoContext1_VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) ) + +#define ID3D11VideoContext1_VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) ) + +#define ID3D11VideoContext1_VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext1_VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) ) + +#define ID3D11VideoContext1_VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) ) + +#define ID3D11VideoContext1_VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext1_VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) ) + +#define ID3D11VideoContext1_VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) ) + +#define ID3D11VideoContext1_VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) ) + +#define ID3D11VideoContext1_VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext1_VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) \ + ( (This)->lpVtbl -> VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) ) + +#define ID3D11VideoContext1_NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) \ + ( (This)->lpVtbl -> NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) ) + +#define ID3D11VideoContext1_EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) \ + ( (This)->lpVtbl -> EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) ) + +#define ID3D11VideoContext1_DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) \ + ( (This)->lpVtbl -> DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) ) + +#define ID3D11VideoContext1_StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) \ + ( (This)->lpVtbl -> StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) ) + +#define ID3D11VideoContext1_FinishSessionKeyRefresh(This,pCryptoSession) \ + ( (This)->lpVtbl -> FinishSessionKeyRefresh(This,pCryptoSession) ) + +#define ID3D11VideoContext1_GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) \ + ( (This)->lpVtbl -> GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) ) + +#define ID3D11VideoContext1_NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) \ + ( (This)->lpVtbl -> NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) ) + +#define ID3D11VideoContext1_QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) \ + ( (This)->lpVtbl -> QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) ) + +#define ID3D11VideoContext1_ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) \ + ( (This)->lpVtbl -> ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) ) + + +#define ID3D11VideoContext1_SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) \ + ( (This)->lpVtbl -> SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) ) + +#define ID3D11VideoContext1_GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) \ + ( (This)->lpVtbl -> GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) ) + +#define ID3D11VideoContext1_CheckCryptoSessionStatus(This,pCryptoSession,pStatus) \ + ( (This)->lpVtbl -> CheckCryptoSessionStatus(This,pCryptoSession,pStatus) ) + +#define ID3D11VideoContext1_DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) \ + ( (This)->lpVtbl -> DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) ) + +#define ID3D11VideoContext1_DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) \ + ( (This)->lpVtbl -> DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) ) + +#define ID3D11VideoContext1_VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) ) + +#define ID3D11VideoContext1_VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) ) + +#define ID3D11VideoContext1_VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext1_VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) ) + +#define ID3D11VideoContext1_VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext1_VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) ) + +#define ID3D11VideoContext1_VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) \ + ( (This)->lpVtbl -> VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoContext1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11VideoDevice1_INTERFACE_DEFINED__ +#define __ID3D11VideoDevice1_INTERFACE_DEFINED__ + +/* interface ID3D11VideoDevice1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoDevice1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("29DA1D51-1321-4454-804B-F5FC9F861F0F") + ID3D11VideoDevice1 : public ID3D11VideoDevice + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCryptoSessionPrivateDataSize( + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ const GUID *pKeyExchangeType, + /* [annotation] */ + _Out_ UINT *pPrivateInputSize, + /* [annotation] */ + _Out_ UINT *pPrivateOutputSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoDecoderCaps( + /* [annotation] */ + _In_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ UINT SampleWidth, + /* [annotation] */ + _In_ UINT SampleHeight, + /* [annotation] */ + _In_ const DXGI_RATIONAL *pFrameRate, + /* [annotation] */ + _In_ UINT BitRate, + /* [annotation] */ + _In_opt_ const GUID *pCryptoType, + /* [annotation] */ + _Out_ UINT *pDecoderCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckVideoDecoderDownsampling( + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig, + /* [annotation] */ + _In_ const DXGI_RATIONAL *pFrameRate, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc, + /* [annotation] */ + _Out_ BOOL *pSupported, + /* [annotation] */ + _Out_ BOOL *pRealTimeHint) = 0; + + virtual HRESULT STDMETHODCALLTYPE RecommendVideoDecoderDownsampleParameters( + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig, + /* [annotation] */ + _In_ const DXGI_RATIONAL *pFrameRate, + /* [annotation] */ + _Out_ D3D11_VIDEO_SAMPLE_DESC *pRecommendedOutputDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoDevice1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoDevice1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoDevice1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoDevice1 * This); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoDecoder) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pVideoDesc, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_CONFIG *pConfig, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoDecoder **ppDecoder); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ UINT RateConversionIndex, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoProcessor **ppVideoProcessor); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *CreateAuthenticatedChannel )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType, + /* [annotation] */ + _COM_Outptr_ ID3D11AuthenticatedChannel **ppAuthenticatedChannel); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateCryptoSession) + HRESULT ( STDMETHODCALLTYPE *CreateCryptoSession )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ const GUID *pKeyExchangeType, + /* [annotation] */ + _COM_Outptr_ ID3D11CryptoSession **ppCryptoSession); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoDecoderOutputView) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderOutputView )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoDecoderOutputView **ppVDOVView); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessorInputView) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorInputView )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoProcessorInputView **ppVPIView); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessorOutputView) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorOutputView )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoProcessorOutputView **ppVPOView); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessorEnumerator) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorEnumerator )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoProcessorEnumerator **ppEnum); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderProfileCount) + UINT ( STDMETHODCALLTYPE *GetVideoDecoderProfileCount )( + ID3D11VideoDevice1 * This); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderProfile) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderProfile )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ GUID *pDecoderProfile); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CheckVideoDecoderFormat) + HRESULT ( STDMETHODCALLTYPE *CheckVideoDecoderFormat )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ BOOL *pSupported); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderConfigCount) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderConfigCount )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pDesc, + /* [annotation] */ + _Out_ UINT *pCount); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderConfig) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderConfig )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pDesc, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ D3D11_VIDEO_DECODER_CONFIG *pConfig); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetContentProtectionCaps) + HRESULT ( STDMETHODCALLTYPE *GetContentProtectionCaps )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_opt_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _Out_ D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CheckCryptoKeyExchange) + HRESULT ( STDMETHODCALLTYPE *CheckCryptoKeyExchange )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ GUID *pKeyExchangeType); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice1, GetCryptoSessionPrivateDataSize) + HRESULT ( STDMETHODCALLTYPE *GetCryptoSessionPrivateDataSize )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ const GUID *pKeyExchangeType, + /* [annotation] */ + _Out_ UINT *pPrivateInputSize, + /* [annotation] */ + _Out_ UINT *pPrivateOutputSize); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice1, GetVideoDecoderCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderCaps )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ UINT SampleWidth, + /* [annotation] */ + _In_ UINT SampleHeight, + /* [annotation] */ + _In_ const DXGI_RATIONAL *pFrameRate, + /* [annotation] */ + _In_ UINT BitRate, + /* [annotation] */ + _In_opt_ const GUID *pCryptoType, + /* [annotation] */ + _Out_ UINT *pDecoderCaps); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice1, CheckVideoDecoderDownsampling) + HRESULT ( STDMETHODCALLTYPE *CheckVideoDecoderDownsampling )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig, + /* [annotation] */ + _In_ const DXGI_RATIONAL *pFrameRate, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc, + /* [annotation] */ + _Out_ BOOL *pSupported, + /* [annotation] */ + _Out_ BOOL *pRealTimeHint); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice1, RecommendVideoDecoderDownsampleParameters) + HRESULT ( STDMETHODCALLTYPE *RecommendVideoDecoderDownsampleParameters )( + ID3D11VideoDevice1 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig, + /* [annotation] */ + _In_ const DXGI_RATIONAL *pFrameRate, + /* [annotation] */ + _Out_ D3D11_VIDEO_SAMPLE_DESC *pRecommendedOutputDesc); + + END_INTERFACE + } ID3D11VideoDevice1Vtbl; + + interface ID3D11VideoDevice1 + { + CONST_VTBL struct ID3D11VideoDevice1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoDevice1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoDevice1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoDevice1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoDevice1_CreateVideoDecoder(This,pVideoDesc,pConfig,ppDecoder) \ + ( (This)->lpVtbl -> CreateVideoDecoder(This,pVideoDesc,pConfig,ppDecoder) ) + +#define ID3D11VideoDevice1_CreateVideoProcessor(This,pEnum,RateConversionIndex,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,pEnum,RateConversionIndex,ppVideoProcessor) ) + +#define ID3D11VideoDevice1_CreateAuthenticatedChannel(This,ChannelType,ppAuthenticatedChannel) \ + ( (This)->lpVtbl -> CreateAuthenticatedChannel(This,ChannelType,ppAuthenticatedChannel) ) + +#define ID3D11VideoDevice1_CreateCryptoSession(This,pCryptoType,pDecoderProfile,pKeyExchangeType,ppCryptoSession) \ + ( (This)->lpVtbl -> CreateCryptoSession(This,pCryptoType,pDecoderProfile,pKeyExchangeType,ppCryptoSession) ) + +#define ID3D11VideoDevice1_CreateVideoDecoderOutputView(This,pResource,pDesc,ppVDOVView) \ + ( (This)->lpVtbl -> CreateVideoDecoderOutputView(This,pResource,pDesc,ppVDOVView) ) + +#define ID3D11VideoDevice1_CreateVideoProcessorInputView(This,pResource,pEnum,pDesc,ppVPIView) \ + ( (This)->lpVtbl -> CreateVideoProcessorInputView(This,pResource,pEnum,pDesc,ppVPIView) ) + +#define ID3D11VideoDevice1_CreateVideoProcessorOutputView(This,pResource,pEnum,pDesc,ppVPOView) \ + ( (This)->lpVtbl -> CreateVideoProcessorOutputView(This,pResource,pEnum,pDesc,ppVPOView) ) + +#define ID3D11VideoDevice1_CreateVideoProcessorEnumerator(This,pDesc,ppEnum) \ + ( (This)->lpVtbl -> CreateVideoProcessorEnumerator(This,pDesc,ppEnum) ) + +#define ID3D11VideoDevice1_GetVideoDecoderProfileCount(This) \ + ( (This)->lpVtbl -> GetVideoDecoderProfileCount(This) ) + +#define ID3D11VideoDevice1_GetVideoDecoderProfile(This,Index,pDecoderProfile) \ + ( (This)->lpVtbl -> GetVideoDecoderProfile(This,Index,pDecoderProfile) ) + +#define ID3D11VideoDevice1_CheckVideoDecoderFormat(This,pDecoderProfile,Format,pSupported) \ + ( (This)->lpVtbl -> CheckVideoDecoderFormat(This,pDecoderProfile,Format,pSupported) ) + +#define ID3D11VideoDevice1_GetVideoDecoderConfigCount(This,pDesc,pCount) \ + ( (This)->lpVtbl -> GetVideoDecoderConfigCount(This,pDesc,pCount) ) + +#define ID3D11VideoDevice1_GetVideoDecoderConfig(This,pDesc,Index,pConfig) \ + ( (This)->lpVtbl -> GetVideoDecoderConfig(This,pDesc,Index,pConfig) ) + +#define ID3D11VideoDevice1_GetContentProtectionCaps(This,pCryptoType,pDecoderProfile,pCaps) \ + ( (This)->lpVtbl -> GetContentProtectionCaps(This,pCryptoType,pDecoderProfile,pCaps) ) + +#define ID3D11VideoDevice1_CheckCryptoKeyExchange(This,pCryptoType,pDecoderProfile,Index,pKeyExchangeType) \ + ( (This)->lpVtbl -> CheckCryptoKeyExchange(This,pCryptoType,pDecoderProfile,Index,pKeyExchangeType) ) + +#define ID3D11VideoDevice1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoDevice1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoDevice1_GetCryptoSessionPrivateDataSize(This,pCryptoType,pDecoderProfile,pKeyExchangeType,pPrivateInputSize,pPrivateOutputSize) \ + ( (This)->lpVtbl -> GetCryptoSessionPrivateDataSize(This,pCryptoType,pDecoderProfile,pKeyExchangeType,pPrivateInputSize,pPrivateOutputSize) ) + +#define ID3D11VideoDevice1_GetVideoDecoderCaps(This,pDecoderProfile,SampleWidth,SampleHeight,pFrameRate,BitRate,pCryptoType,pDecoderCaps) \ + ( (This)->lpVtbl -> GetVideoDecoderCaps(This,pDecoderProfile,SampleWidth,SampleHeight,pFrameRate,BitRate,pCryptoType,pDecoderCaps) ) + +#define ID3D11VideoDevice1_CheckVideoDecoderDownsampling(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pOutputDesc,pSupported,pRealTimeHint) \ + ( (This)->lpVtbl -> CheckVideoDecoderDownsampling(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pOutputDesc,pSupported,pRealTimeHint) ) + +#define ID3D11VideoDevice1_RecommendVideoDecoderDownsampleParameters(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pRecommendedOutputDesc) \ + ( (This)->lpVtbl -> RecommendVideoDecoderDownsampleParameters(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pRecommendedOutputDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoDevice1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11VideoProcessorEnumerator1_INTERFACE_DEFINED__ +#define __ID3D11VideoProcessorEnumerator1_INTERFACE_DEFINED__ + +/* interface ID3D11VideoProcessorEnumerator1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoProcessorEnumerator1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("465217F2-5568-43CF-B5B9-F61D54531CA1") + ID3D11VideoProcessorEnumerator1 : public ID3D11VideoProcessorEnumerator + { + public: + virtual HRESULT STDMETHODCALLTYPE CheckVideoProcessorFormatConversion( + /* [annotation] */ + _In_ DXGI_FORMAT InputFormat, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ DXGI_FORMAT OutputFormat, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE OutputColorSpace, + /* [annotation] */ + _Out_ BOOL *pSupported) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoProcessorEnumerator1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoProcessorEnumerator1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoProcessorEnumerator1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoProcessorEnumerator1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, GetVideoProcessorContentDesc) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorContentDesc )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pContentDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, CheckVideoProcessorFormat) + HRESULT ( STDMETHODCALLTYPE *CheckVideoProcessorFormat )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFlags); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, GetVideoProcessorCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CAPS *pCaps); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, GetVideoProcessorRateConversionCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorRateConversionCaps )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _In_ UINT TypeIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS *pCaps); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, GetVideoProcessorCustomRate) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCustomRate )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _In_ UINT TypeIndex, + /* [annotation] */ + _In_ UINT CustomRateIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_CUSTOM_RATE *pRate); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator, GetVideoProcessorFilterRange) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorFilterRange )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_FILTER_RANGE *pRange); + + DECLSPEC_XFGVIRT(ID3D11VideoProcessorEnumerator1, CheckVideoProcessorFormatConversion) + HRESULT ( STDMETHODCALLTYPE *CheckVideoProcessorFormatConversion )( + ID3D11VideoProcessorEnumerator1 * This, + /* [annotation] */ + _In_ DXGI_FORMAT InputFormat, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ DXGI_FORMAT OutputFormat, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE OutputColorSpace, + /* [annotation] */ + _Out_ BOOL *pSupported); + + END_INTERFACE + } ID3D11VideoProcessorEnumerator1Vtbl; + + interface ID3D11VideoProcessorEnumerator1 + { + CONST_VTBL struct ID3D11VideoProcessorEnumerator1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoProcessorEnumerator1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoProcessorEnumerator1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoProcessorEnumerator1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoProcessorEnumerator1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoProcessorEnumerator1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoProcessorEnumerator1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoProcessorEnumerator1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoProcessorEnumerator1_GetVideoProcessorContentDesc(This,pContentDesc) \ + ( (This)->lpVtbl -> GetVideoProcessorContentDesc(This,pContentDesc) ) + +#define ID3D11VideoProcessorEnumerator1_CheckVideoProcessorFormat(This,Format,pFlags) \ + ( (This)->lpVtbl -> CheckVideoProcessorFormat(This,Format,pFlags) ) + +#define ID3D11VideoProcessorEnumerator1_GetVideoProcessorCaps(This,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorCaps(This,pCaps) ) + +#define ID3D11VideoProcessorEnumerator1_GetVideoProcessorRateConversionCaps(This,TypeIndex,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorRateConversionCaps(This,TypeIndex,pCaps) ) + +#define ID3D11VideoProcessorEnumerator1_GetVideoProcessorCustomRate(This,TypeIndex,CustomRateIndex,pRate) \ + ( (This)->lpVtbl -> GetVideoProcessorCustomRate(This,TypeIndex,CustomRateIndex,pRate) ) + +#define ID3D11VideoProcessorEnumerator1_GetVideoProcessorFilterRange(This,Filter,pRange) \ + ( (This)->lpVtbl -> GetVideoProcessorFilterRange(This,Filter,pRange) ) + + +#define ID3D11VideoProcessorEnumerator1_CheckVideoProcessorFormatConversion(This,InputFormat,InputColorSpace,OutputFormat,OutputColorSpace,pSupported) \ + ( (This)->lpVtbl -> CheckVideoProcessorFormatConversion(This,InputFormat,InputColorSpace,OutputFormat,OutputColorSpace,pSupported) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoProcessorEnumerator1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11Device1_INTERFACE_DEFINED__ +#define __ID3D11Device1_INTERFACE_DEFINED__ + +/* interface ID3D11Device1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Device1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a04bfb29-08ef-43d6-a49c-a9bdbdcbe686") + ID3D11Device1 : public ID3D11Device + { + public: + virtual void STDMETHODCALLTYPE GetImmediateContext1( + /* [annotation] */ + _Outptr_ ID3D11DeviceContext1 **ppImmediateContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDeferredContext1( + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateBlendState1( + /* [annotation] */ + _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRasterizerState1( + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDeviceContextState( + UINT Flags, + /* [annotation] */ + _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels, + UINT FeatureLevels, + UINT SDKVersion, + REFIID EmulatedInterface, + /* [annotation] */ + _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel, + /* [annotation] */ + _Out_opt_ ID3DDeviceContextState **ppContextState) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenSharedResource1( + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenSharedResourceByName( + /* [annotation] */ + _In_ LPCWSTR lpName, + /* [annotation] */ + _In_ DWORD dwDesiredAccess, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Device1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Device1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Device1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Device1 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBuffer) + HRESULT ( STDMETHODCALLTYPE *CreateBuffer )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_BUFFER_DESC *pDesc, + /* [annotation] */ + _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Buffer **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture1D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE1D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture2D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture3D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateShaderResourceView) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateUnorderedAccessView) + HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRenderTargetView) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilView) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateInputLayout) + HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )( + ID3D11Device1 * This, + /* [annotation] */ + _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateVertexShader) + HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )( + ID3D11Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShader) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )( + ID3D11Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShaderWithStreamOutput) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )( + ID3D11Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration, + /* [annotation] */ + _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries, + /* [annotation] */ + _In_reads_opt_(NumStrides) const UINT *pBufferStrides, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides, + /* [annotation] */ + _In_ UINT RasterizedStream, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePixelShader) + HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )( + ID3D11Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateHullShader) + HRESULT ( STDMETHODCALLTYPE *CreateHullShader )( + ID3D11Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11HullShader **ppHullShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDomainShader) + HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )( + ID3D11Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateComputeShader) + HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )( + ID3D11Device1 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateClassLinkage) + HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )( + ID3D11Device1 * This, + /* [annotation] */ + _COM_Outptr_ ID3D11ClassLinkage **ppLinkage); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBlendState) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilState) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRasterizerState) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateSamplerState) + HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_SAMPLER_DESC *pSamplerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateQuery) + HRESULT ( STDMETHODCALLTYPE *CreateQuery )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pQueryDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query **ppQuery); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePredicate) + HRESULT ( STDMETHODCALLTYPE *CreatePredicate )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pPredicateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Predicate **ppPredicate); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateCounter) + HRESULT ( STDMETHODCALLTYPE *CreateCounter )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pCounterDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Counter **ppCounter); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDeferredContext) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )( + ID3D11Device1 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device, OpenSharedResource) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFormatSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFormatSupport); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckMultisampleQualityLevels) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounterInfo) + void ( STDMETHODCALLTYPE *CheckCounterInfo )( + ID3D11Device1 * This, + /* [annotation] */ + _Out_ D3D11_COUNTER_INFO *pCounterInfo); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounter) + HRESULT ( STDMETHODCALLTYPE *CheckCounter )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pDesc, + /* [annotation] */ + _Out_ D3D11_COUNTER_TYPE *pType, + /* [annotation] */ + _Out_ UINT *pActiveCounters, + /* [annotation] */ + _Out_writes_opt_(*pNameLength) LPSTR szName, + /* [annotation] */ + _Inout_opt_ UINT *pNameLength, + /* [annotation] */ + _Out_writes_opt_(*pUnitsLength) LPSTR szUnits, + /* [annotation] */ + _Inout_opt_ UINT *pUnitsLength, + /* [annotation] */ + _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription, + /* [annotation] */ + _Inout_opt_ UINT *pDescriptionLength); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D11Device1 * This, + D3D11_FEATURE Feature, + /* [annotation] */ + _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D11Device, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, GetFeatureLevel) + D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )( + ID3D11Device1 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetCreationFlags) + UINT ( STDMETHODCALLTYPE *GetCreationFlags )( + ID3D11Device1 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D11Device1 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetImmediateContext) + void ( STDMETHODCALLTYPE *GetImmediateContext )( + ID3D11Device1 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device, SetExceptionMode) + HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )( + ID3D11Device1 * This, + UINT RaiseFlags); + + DECLSPEC_XFGVIRT(ID3D11Device, GetExceptionMode) + UINT ( STDMETHODCALLTYPE *GetExceptionMode )( + ID3D11Device1 * This); + + DECLSPEC_XFGVIRT(ID3D11Device1, GetImmediateContext1) + void ( STDMETHODCALLTYPE *GetImmediateContext1 )( + ID3D11Device1 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext1 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateDeferredContext1) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )( + ID3D11Device1 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateBlendState1) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateRasterizerState1) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateDeviceContextState) + HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )( + ID3D11Device1 * This, + UINT Flags, + /* [annotation] */ + _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels, + UINT FeatureLevels, + UINT SDKVersion, + REFIID EmulatedInterface, + /* [annotation] */ + _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel, + /* [annotation] */ + _Out_opt_ ID3DDeviceContextState **ppContextState); + + DECLSPEC_XFGVIRT(ID3D11Device1, OpenSharedResource1) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device1, OpenSharedResourceByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )( + ID3D11Device1 * This, + /* [annotation] */ + _In_ LPCWSTR lpName, + /* [annotation] */ + _In_ DWORD dwDesiredAccess, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource); + + END_INTERFACE + } ID3D11Device1Vtbl; + + interface ID3D11Device1 + { + CONST_VTBL struct ID3D11Device1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Device1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Device1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Device1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Device1_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \ + ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) ) + +#define ID3D11Device1_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \ + ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) ) + +#define ID3D11Device1_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) ) + +#define ID3D11Device1_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) ) + +#define ID3D11Device1_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) ) + +#define ID3D11Device1_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) ) + +#define ID3D11Device1_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) ) + +#define ID3D11Device1_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) ) + +#define ID3D11Device1_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \ + ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) ) + +#define ID3D11Device1_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \ + ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) ) + +#define ID3D11Device1_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device1_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device1_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \ + ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) ) + +#define ID3D11Device1_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \ + ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) ) + +#define ID3D11Device1_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \ + ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) ) + +#define ID3D11Device1_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \ + ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) ) + +#define ID3D11Device1_CreateClassLinkage(This,ppLinkage) \ + ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) ) + +#define ID3D11Device1_CreateBlendState(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device1_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \ + ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) ) + +#define ID3D11Device1_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device1_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \ + ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) ) + +#define ID3D11Device1_CreateQuery(This,pQueryDesc,ppQuery) \ + ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) ) + +#define ID3D11Device1_CreatePredicate(This,pPredicateDesc,ppPredicate) \ + ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) ) + +#define ID3D11Device1_CreateCounter(This,pCounterDesc,ppCounter) \ + ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) ) + +#define ID3D11Device1_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device1_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) ) + +#define ID3D11Device1_CheckFormatSupport(This,Format,pFormatSupport) \ + ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) ) + +#define ID3D11Device1_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) ) + +#define ID3D11Device1_CheckCounterInfo(This,pCounterInfo) \ + ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) ) + +#define ID3D11Device1_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \ + ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) ) + +#define ID3D11Device1_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D11Device1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Device1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Device1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D11Device1_GetFeatureLevel(This) \ + ( (This)->lpVtbl -> GetFeatureLevel(This) ) + +#define ID3D11Device1_GetCreationFlags(This) \ + ( (This)->lpVtbl -> GetCreationFlags(This) ) + +#define ID3D11Device1_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D11Device1_GetImmediateContext(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) ) + +#define ID3D11Device1_SetExceptionMode(This,RaiseFlags) \ + ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) ) + +#define ID3D11Device1_GetExceptionMode(This) \ + ( (This)->lpVtbl -> GetExceptionMode(This) ) + + +#define ID3D11Device1_GetImmediateContext1(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) ) + +#define ID3D11Device1_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device1_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device1_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device1_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \ + ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) ) + +#define ID3D11Device1_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) ) + +#define ID3D11Device1_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Device1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3DUserDefinedAnnotation_INTERFACE_DEFINED__ +#define __ID3DUserDefinedAnnotation_INTERFACE_DEFINED__ + +/* interface ID3DUserDefinedAnnotation */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3DUserDefinedAnnotation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b2daad8b-03d4-4dbf-95eb-32ab4b63d0ab") + ID3DUserDefinedAnnotation : public IUnknown + { + public: + virtual INT STDMETHODCALLTYPE BeginEvent( + /* [annotation] */ + _In_ LPCWSTR Name) = 0; + + virtual INT STDMETHODCALLTYPE EndEvent( void) = 0; + + virtual void STDMETHODCALLTYPE SetMarker( + /* [annotation] */ + _In_ LPCWSTR Name) = 0; + + virtual BOOL STDMETHODCALLTYPE GetStatus( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3DUserDefinedAnnotationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3DUserDefinedAnnotation * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3DUserDefinedAnnotation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3DUserDefinedAnnotation * This); + + DECLSPEC_XFGVIRT(ID3DUserDefinedAnnotation, BeginEvent) + INT ( STDMETHODCALLTYPE *BeginEvent )( + ID3DUserDefinedAnnotation * This, + /* [annotation] */ + _In_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3DUserDefinedAnnotation, EndEvent) + INT ( STDMETHODCALLTYPE *EndEvent )( + ID3DUserDefinedAnnotation * This); + + DECLSPEC_XFGVIRT(ID3DUserDefinedAnnotation, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3DUserDefinedAnnotation * This, + /* [annotation] */ + _In_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3DUserDefinedAnnotation, GetStatus) + BOOL ( STDMETHODCALLTYPE *GetStatus )( + ID3DUserDefinedAnnotation * This); + + END_INTERFACE + } ID3DUserDefinedAnnotationVtbl; + + interface ID3DUserDefinedAnnotation + { + CONST_VTBL struct ID3DUserDefinedAnnotationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3DUserDefinedAnnotation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3DUserDefinedAnnotation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3DUserDefinedAnnotation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3DUserDefinedAnnotation_BeginEvent(This,Name) \ + ( (This)->lpVtbl -> BeginEvent(This,Name) ) + +#define ID3DUserDefinedAnnotation_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3DUserDefinedAnnotation_SetMarker(This,Name) \ + ( (This)->lpVtbl -> SetMarker(This,Name) ) + +#define ID3DUserDefinedAnnotation_GetStatus(This) \ + ( (This)->lpVtbl -> GetStatus(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3DUserDefinedAnnotation_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_1_0000_0009 */ +/* [local] */ + +DEFINE_GUID(IID_ID3D11BlendState1,0xcc86fabe,0xda55,0x401d,0x85,0xe7,0xe3,0xc9,0xde,0x28,0x77,0xe9); +DEFINE_GUID(IID_ID3D11RasterizerState1,0x1217d7a6,0x5039,0x418c,0xb0,0x42,0x9c,0xbe,0x25,0x6a,0xfd,0x6e); +DEFINE_GUID(IID_ID3DDeviceContextState,0x5c1e0d8a,0x7c23,0x48f9,0x8c,0x59,0xa9,0x29,0x58,0xce,0xff,0x11); +DEFINE_GUID(IID_ID3D11DeviceContext1,0xbb2c6faa,0xb5fb,0x4082,0x8e,0x6b,0x38,0x8b,0x8c,0xfa,0x90,0xe1); +DEFINE_GUID(IID_ID3D11VideoContext1,0xA7F026DA,0xA5F8,0x4487,0xA5,0x64,0x15,0xE3,0x43,0x57,0x65,0x1E); +DEFINE_GUID(IID_ID3D11VideoDevice1,0x29DA1D51,0x1321,0x4454,0x80,0x4B,0xF5,0xFC,0x9F,0x86,0x1F,0x0F); +DEFINE_GUID(IID_ID3D11VideoProcessorEnumerator1,0x465217F2,0x5568,0x43CF,0xB5,0xB9,0xF6,0x1D,0x54,0x53,0x1C,0xA1); +DEFINE_GUID(IID_ID3D11Device1,0xa04bfb29,0x08ef,0x43d6,0xa4,0x9c,0xa9,0xbd,0xbd,0xcb,0xe6,0x86); +DEFINE_GUID(IID_ID3DUserDefinedAnnotation,0xb2daad8b,0x03d4,0x4dbf,0x95,0xeb,0x32,0xab,0x4b,0x63,0xd0,0xab); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_1_0000_0009_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_1.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_1.idl new file mode 100644 index 0000000000000000000000000000000000000000..b694938176b2120eca253deda24048b8f2e33500 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_1.idl @@ -0,0 +1,687 @@ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// D3D11.1 IDL +// +// Contains interface definitions for the D3D11.1 API. +// +// Copyright (C) Microsoft Corporation +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +import "oaidl.idl"; +import "ocidl.idl"; +import "dxgi1_2.idl"; +import "d3dcommon.idl"; + + +import "d3d11.idl"; // +cpp_quote( "#ifdef __cplusplus" ) +cpp_quote( "}" ) // extern C +cpp_quote( "#endif" ) +cpp_quote( "#include \"d3d11.h\" //") // +cpp_quote( "#ifdef __cplusplus" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +typedef enum D3D11_COPY_FLAGS +{ + D3D11_COPY_NO_OVERWRITE = 0x00000001, + D3D11_COPY_DISCARD = 0x00000002, +} D3D11_COPY_FLAGS; + +typedef enum D3D11_LOGIC_OP +{ + // Operation: + // (s == PS output, d = RTV contents) + D3D11_LOGIC_OP_CLEAR = 0, // 0 + D3D11_LOGIC_OP_SET, // 1 + D3D11_LOGIC_OP_COPY, // s + D3D11_LOGIC_OP_COPY_INVERTED, // ~s + D3D11_LOGIC_OP_NOOP, // d + D3D11_LOGIC_OP_INVERT, // ~d + D3D11_LOGIC_OP_AND, // s & d + D3D11_LOGIC_OP_NAND, // ~(s & d) + D3D11_LOGIC_OP_OR, // s | d + D3D11_LOGIC_OP_NOR, // ~(s | d) + D3D11_LOGIC_OP_XOR, // s ^ d + D3D11_LOGIC_OP_EQUIV, // ~(s ^ d) + D3D11_LOGIC_OP_AND_REVERSE, // s & ~d + D3D11_LOGIC_OP_AND_INVERTED, // ~s & d + D3D11_LOGIC_OP_OR_REVERSE, // s | ~d + D3D11_LOGIC_OP_OR_INVERTED, // ~s | d +} D3D11_LOGIC_OP; + +typedef struct D3D11_RENDER_TARGET_BLEND_DESC1 +{ + BOOL BlendEnable; + BOOL LogicOpEnable; // LogicOpEnable and BlendEnable can't both be true + D3D11_BLEND SrcBlend; + D3D11_BLEND DestBlend; + D3D11_BLEND_OP BlendOp; + D3D11_BLEND SrcBlendAlpha; + D3D11_BLEND DestBlendAlpha; + D3D11_BLEND_OP BlendOpAlpha; + D3D11_LOGIC_OP LogicOp; // applies to RGBA + UINT8 RenderTargetWriteMask; // D3D11_COLOR_WRITE_ENABLE +} D3D11_RENDER_TARGET_BLEND_DESC1; + +typedef struct D3D11_BLEND_DESC1 +{ + BOOL AlphaToCoverageEnable; // relevant to multisample antialiasing only + BOOL IndependentBlendEnable; // if FALSE, then replicate the first entry in RenderTarget array to other entries + D3D11_RENDER_TARGET_BLEND_DESC1 RenderTarget[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT]; +} D3D11_BLEND_DESC1; + +cpp_quote( "/* Note, the array size for RenderTarget[] above is D3D11_SIMULTANEOUS_RENDERTARGET_COUNT. ") +cpp_quote( " IDL processing/generation of this header replaces the define; this comment is merely explaining what happened. */" ) + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_BLEND_DESC1 : public D3D11_BLEND_DESC1" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_BLEND_DESC1() = default;" ) +cpp_quote( " explicit CD3D11_BLEND_DESC1( const D3D11_BLEND_DESC1& o ) :" ) +cpp_quote( " D3D11_BLEND_DESC1( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_BLEND_DESC1( CD3D11_DEFAULT )" ) +cpp_quote( " {" ) +cpp_quote( " AlphaToCoverageEnable = FALSE;" ) +cpp_quote( " IndependentBlendEnable = FALSE;" ) +cpp_quote( " const D3D11_RENDER_TARGET_BLEND_DESC1 defaultRenderTargetBlendDesc =" ) +cpp_quote( " {" ) +cpp_quote( " FALSE,FALSE," ) +cpp_quote( " D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD," ) +cpp_quote( " D3D11_BLEND_ONE, D3D11_BLEND_ZERO, D3D11_BLEND_OP_ADD," ) +cpp_quote( " D3D11_LOGIC_OP_NOOP," ) +cpp_quote( " D3D11_COLOR_WRITE_ENABLE_ALL," ) +cpp_quote( " };" ) +cpp_quote( " for (UINT i = 0; i < D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT; ++i)" ) +cpp_quote( " RenderTarget[ i ] = defaultRenderTargetBlendDesc;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_BLEND_DESC1() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid(cc86fabe-da55-401d-85e7-e3c9de2877e9), object, local, pointer_default( unique ) ] +interface ID3D11BlendState1 + : ID3D11BlendState +{ + void GetDesc1( [annotation("_Out_")] D3D11_BLEND_DESC1* pDesc ); +}; + + +typedef struct D3D11_RASTERIZER_DESC1 +{ + D3D11_FILL_MODE FillMode; + D3D11_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + INT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL ScissorEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; + UINT ForcedSampleCount; +} D3D11_RASTERIZER_DESC1; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_RASTERIZER_DESC1 : public D3D11_RASTERIZER_DESC1" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_RASTERIZER_DESC1() = default;" ) +cpp_quote( " explicit CD3D11_RASTERIZER_DESC1( const D3D11_RASTERIZER_DESC1& o ) :" ) +cpp_quote( " D3D11_RASTERIZER_DESC1( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_RASTERIZER_DESC1( CD3D11_DEFAULT )" ) +cpp_quote( " {" ) +cpp_quote( " FillMode = D3D11_FILL_SOLID;" ) +cpp_quote( " CullMode = D3D11_CULL_BACK;" ) +cpp_quote( " FrontCounterClockwise = FALSE;" ) +cpp_quote( " DepthBias = D3D11_DEFAULT_DEPTH_BIAS;" ) +cpp_quote( " DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;" ) +cpp_quote( " SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;" ) +cpp_quote( " DepthClipEnable = TRUE;" ) +cpp_quote( " ScissorEnable = FALSE;" ) +cpp_quote( " MultisampleEnable = FALSE;" ) +cpp_quote( " AntialiasedLineEnable = FALSE;" ) +cpp_quote( " ForcedSampleCount = 0;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RASTERIZER_DESC1(" ) +cpp_quote( " D3D11_FILL_MODE fillMode," ) +cpp_quote( " D3D11_CULL_MODE cullMode," ) +cpp_quote( " BOOL frontCounterClockwise," ) +cpp_quote( " INT depthBias," ) +cpp_quote( " FLOAT depthBiasClamp," ) +cpp_quote( " FLOAT slopeScaledDepthBias," ) +cpp_quote( " BOOL depthClipEnable," ) +cpp_quote( " BOOL scissorEnable," ) +cpp_quote( " BOOL multisampleEnable," ) +cpp_quote( " BOOL antialiasedLineEnable, " ) +cpp_quote( " UINT forcedSampleCount )" ) +cpp_quote( " {" ) +cpp_quote( " FillMode = fillMode;" ) +cpp_quote( " CullMode = cullMode;" ) +cpp_quote( " FrontCounterClockwise = frontCounterClockwise;" ) +cpp_quote( " DepthBias = depthBias;" ) +cpp_quote( " DepthBiasClamp = depthBiasClamp;" ) +cpp_quote( " SlopeScaledDepthBias = slopeScaledDepthBias;" ) +cpp_quote( " DepthClipEnable = depthClipEnable;" ) +cpp_quote( " ScissorEnable = scissorEnable;" ) +cpp_quote( " MultisampleEnable = multisampleEnable;" ) +cpp_quote( " AntialiasedLineEnable = antialiasedLineEnable;" ) +cpp_quote( " ForcedSampleCount = forcedSampleCount;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_RASTERIZER_DESC1() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid(1217d7a6-5039-418c-b042-9cbe256afd6e), object, local, pointer_default( unique ) ] +interface ID3D11RasterizerState1 + : ID3D11RasterizerState +{ + void GetDesc1( [annotation("_Out_")] D3D11_RASTERIZER_DESC1* pDesc ); +}; + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// DeviceContextState +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef enum D3D11_1_CREATE_DEVICE_CONTEXT_STATE_FLAG +{ + D3D11_1_CREATE_DEVICE_CONTEXT_STATE_SINGLETHREADED = 0x1, + +} D3D11_1_CREATE_DEVICE_CONTEXT_STATE_FLAG; + +[ uuid( 5c1e0d8a-7c23-48f9-8c59-a92958ceff11 ), object, local, pointer_default( unique ) ] +interface ID3DDeviceContextState + : ID3D11DeviceChild +{ +}; +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// DeviceContext +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( bb2c6faa-b5fb-4082-8e6b-388b8cfa90e1 ), object, local, pointer_default( unique ) ] +interface ID3D11DeviceContext1 + : ID3D11DeviceContext +{ + void CopySubresourceRegion1( + [annotation("_In_")] ID3D11Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_")] UINT DstX, + [annotation("_In_")] UINT DstY, + [annotation("_In_")] UINT DstZ, + [annotation("_In_")] ID3D11Resource* pSrcResource, + [annotation("_In_")] UINT SrcSubresource, + [annotation("_In_opt_")] const D3D11_BOX* pSrcBox, + [annotation("_In_")] UINT CopyFlags ); + + void UpdateSubresource1( + [annotation("_In_")] ID3D11Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_opt_")] const D3D11_BOX* pDstBox, + [annotation("_In_")] const void* pSrcData, + [annotation("_In_")] UINT SrcRowPitch, + [annotation("_In_")] UINT SrcDepthPitch, + [annotation("_In_")] UINT CopyFlags ); + + void DiscardResource( + [annotation("_In_")] ID3D11Resource* pResource + ); + + void DiscardView ( + [annotation("_In_")] ID3D11View* pResourceView + ); + + void VSSetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pFirstConstant, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pNumConstants ); + + void HSSetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pFirstConstant, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pNumConstants ); + + void DSSetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pFirstConstant, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pNumConstants ); + + void GSSetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pFirstConstant, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pNumConstants ); + + void PSSetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pFirstConstant, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pNumConstants ); + + void CSSetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] ID3D11Buffer*const* ppConstantBuffers, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pFirstConstant, + [annotation("_In_reads_opt_(NumBuffers)")] const UINT* pNumConstants ); + + void VSGetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pFirstConstant, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pNumConstants ); + + void HSGetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pFirstConstant, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pNumConstants ); + + void DSGetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pFirstConstant, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pNumConstants ); + + void GSGetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pFirstConstant, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pNumConstants ); + + void PSGetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pFirstConstant, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pNumConstants ); + + void CSGetConstantBuffers1( + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 )")] + UINT StartSlot, + [annotation("_In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot )")] + UINT NumBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] ID3D11Buffer** ppConstantBuffers, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pFirstConstant, + [annotation("_Out_writes_opt_(NumBuffers)")] UINT* pNumConstants ); + + void SwapDeviceContextState( + [annotation("_In_")] ID3DDeviceContextState* pState, + [annotation("_Outptr_opt_")] ID3DDeviceContextState** ppPreviousState ); + + void ClearView( + [annotation("_In_")] ID3D11View* pView, + [annotation("_In_")] const FLOAT Color[ 4 ], + [annotation("_In_reads_opt_(NumRects)")] const D3D11_RECT* pRect, + UINT NumRects ); + + void DiscardView1 ( + [annotation("_In_")] ID3D11View* pResourceView, + [annotation("_In_reads_opt_(NumRects)")] const D3D11_RECT* pRects, + UINT NumRects + ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoDecoder +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef struct D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK +{ + UINT ClearSize; + UINT EncryptedSize; +} D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK; + +typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC1 +{ + D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType; + UINT DataOffset; + UINT DataSize; + [annotation("_Field_size_opt_(IVSize)")] void* pIV; + UINT IVSize; + [annotation("_Field_size_opt_(SubSampleMappingCount)")] D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK* pSubSampleMappingBlock; + UINT SubSampleMappingCount; +} D3D11_VIDEO_DECODER_BUFFER_DESC1; + +typedef struct D3D11_VIDEO_DECODER_BEGIN_FRAME_CRYPTO_SESSION +{ + ID3D11CryptoSession* pCryptoSession; + UINT BlobSize; + [annotation("_Field_size_opt_(BlobSize)")] void* pBlob; + GUID* pKeyInfoId; + UINT PrivateDataSize; + [annotation("_Field_size_opt_(PrivateDataSize)")] void* pPrivateData; +} D3D11_VIDEO_DECODER_BEGIN_FRAME_CRYPTO_SESSION; + +typedef enum D3D11_VIDEO_DECODER_CAPS +{ + D3D11_VIDEO_DECODER_CAPS_DOWNSAMPLE = 0x1, + D3D11_VIDEO_DECODER_CAPS_NON_REAL_TIME = 0x02, + D3D11_VIDEO_DECODER_CAPS_DOWNSAMPLE_DYNAMIC = 0x04, + D3D11_VIDEO_DECODER_CAPS_DOWNSAMPLE_REQUIRED = 0x08, + D3D11_VIDEO_DECODER_CAPS_UNSUPPORTED = 0x10, +} D3D11_VIDEO_DECODER_CAPS; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoProcessor +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINTS +{ + D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_MULTIPLANE_OVERLAY_ROTATION = 0x01, + D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_MULTIPLANE_OVERLAY_RESIZE = 0x02, + D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_MULTIPLANE_OVERLAY_COLOR_SPACE_CONVERSION = 0x04, + D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINT_TRIPLE_BUFFER_OUTPUT = 0x08, +} D3D11_VIDEO_PROCESSOR_BEHAVIOR_HINTS; + +typedef struct D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT +{ + BOOL Enable; + UINT Width; + UINT Height; + DXGI_FORMAT Format; +} D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// CryptoSession +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D11_CRYPTO_SESSION_STATUS +{ + D3D11_CRYPTO_SESSION_STATUS_OK = 0, + D3D11_CRYPTO_SESSION_STATUS_KEY_LOST = 1, + D3D11_CRYPTO_SESSION_STATUS_KEY_AND_CONTENT_LOST = 2 +} D3D11_CRYPTO_SESSION_STATUS; + +typedef struct D3D11_KEY_EXCHANGE_HW_PROTECTION_INPUT_DATA +{ + UINT PrivateDataSize; + UINT HWProtectionDataSize; + BYTE pbInput[4]; +} D3D11_KEY_EXCHANGE_HW_PROTECTION_INPUT_DATA; + +typedef struct D3D11_KEY_EXCHANGE_HW_PROTECTION_OUTPUT_DATA +{ + UINT PrivateDataSize; + UINT MaxHWProtectionDataSize; + UINT HWProtectionDataSize; + UINT64 TransportTime; + UINT64 ExecutionTime; + BYTE pbOutput[4]; +} D3D11_KEY_EXCHANGE_HW_PROTECTION_OUTPUT_DATA; + +typedef struct D3D11_KEY_EXCHANGE_HW_PROTECTION_DATA +{ + UINT HWProtectionFunctionID; + D3D11_KEY_EXCHANGE_HW_PROTECTION_INPUT_DATA *pInputData; + D3D11_KEY_EXCHANGE_HW_PROTECTION_OUTPUT_DATA *pOutputData; + HRESULT Status; +} D3D11_KEY_EXCHANGE_HW_PROTECTION_DATA; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoSample +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_VIDEO_SAMPLE_DESC +{ + UINT Width; + UINT Height; + DXGI_FORMAT Format; + DXGI_COLOR_SPACE_TYPE ColorSpace; +} D3D11_VIDEO_SAMPLE_DESC; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoContext1 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[uuid(A7F026DA-A5F8-4487-A564-15E34357651E), object, local, pointer_default(unique)] +interface ID3D11VideoContext1 + : ID3D11VideoContext +{ + HRESULT SubmitDecoderBuffers1( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder, + [annotation("_In_")] UINT NumBuffers, + [annotation("_In_reads_(NumBuffers)")] const D3D11_VIDEO_DECODER_BUFFER_DESC1* pBufferDesc); + + HRESULT GetDataForNewHardwareKey( + [annotation("_In_")] ID3D11CryptoSession* pCryptoSession, + [annotation("_In_")] UINT PrivateInputSize, + [annotation("_In_reads_(PrivateInputSize)")] const void* pPrivatInputData, + [annotation("_Out_")] UINT64* pPrivateOutputData); + + HRESULT CheckCryptoSessionStatus( + [annotation("_In_")] ID3D11CryptoSession* pCryptoSession, + [annotation("_Out_")] D3D11_CRYPTO_SESSION_STATUS* pStatus); + + HRESULT DecoderEnableDownsampling( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder, + [annotation("_In_")] DXGI_COLOR_SPACE_TYPE InputColorSpace, + [annotation("_In_")] const D3D11_VIDEO_SAMPLE_DESC* pOutputDesc, + [annotation("_In_")] UINT ReferenceFrameCount); + + HRESULT DecoderUpdateDownsampling( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder, + [annotation("_In_")] const D3D11_VIDEO_SAMPLE_DESC* pOutputDesc); + + void VideoProcessorSetOutputColorSpace1( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] DXGI_COLOR_SPACE_TYPE ColorSpace); + + void VideoProcessorSetOutputShaderUsage( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] BOOL ShaderUsage); + + void VideoProcessorGetOutputColorSpace1( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_Out_")] DXGI_COLOR_SPACE_TYPE* pColorSpace); + + void VideoProcessorGetOutputShaderUsage( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_Out_")] BOOL* pShaderUsage); + + void VideoProcessorSetStreamColorSpace1( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] DXGI_COLOR_SPACE_TYPE ColorSpace); + + void VideoProcessorSetStreamMirror( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] BOOL Enable, + [annotation("_In_")] BOOL FlipHorizontal, + [annotation("_In_")] BOOL FlipVertical); + + void VideoProcessorGetStreamColorSpace1( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] DXGI_COLOR_SPACE_TYPE* pColorSpace); + + void VideoProcessorGetStreamMirror( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] BOOL* pEnable, + [annotation("_Out_")] BOOL* pFlipHorizontal, + [annotation("_Out_")] BOOL* pFlipVertical); + + HRESULT VideoProcessorGetBehaviorHints( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT OutputWidth, + [annotation("_In_")] UINT OutputHeight, + [annotation("_In_")] DXGI_FORMAT OutputFormat, + [annotation("_In_")] UINT StreamCount, + [annotation("_In_reads_(StreamCount)")] const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT *pStreams, + [annotation("_Out_")] UINT* pBehaviorHints); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Device +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[uuid(29DA1D51-1321-4454-804B-F5FC9F861F0F), object, local, pointer_default(unique)] +interface ID3D11VideoDevice1 + : ID3D11VideoDevice +{ + HRESULT GetCryptoSessionPrivateDataSize( + [annotation("_In_")] const GUID* pCryptoType, + [annotation("_In_opt_")] const GUID* pDecoderProfile, + [annotation("_In_")] const GUID* pKeyExchangeType, + [annotation("_Out_")] UINT* pPrivateInputSize, + [annotation("_Out_")] UINT* pPrivateOutputSize); + + HRESULT GetVideoDecoderCaps( + [annotation("_In_")] const GUID* pDecoderProfile, + [annotation("_In_")] UINT SampleWidth, + [annotation("_In_")] UINT SampleHeight, + [annotation("_In_")] const DXGI_RATIONAL* pFrameRate, + [annotation("_In_")] UINT BitRate, + [annotation("_In_opt_")] const GUID* pCryptoType, + [annotation("_Out_")] UINT* pDecoderCaps); + + HRESULT CheckVideoDecoderDownsampling( + [annotation("_In_")] const D3D11_VIDEO_DECODER_DESC* pInputDesc, + [annotation("_In_")] DXGI_COLOR_SPACE_TYPE InputColorSpace, + [annotation("_In_")] const D3D11_VIDEO_DECODER_CONFIG* pInputConfig, + [annotation("_In_")] const DXGI_RATIONAL* pFrameRate, + [annotation("_In_")] const D3D11_VIDEO_SAMPLE_DESC* pOutputDesc, + [annotation("_Out_")] BOOL* pSupported, + [annotation("_Out_")] BOOL* pRealTimeHint); + + HRESULT RecommendVideoDecoderDownsampleParameters( + [annotation("_In_")] const D3D11_VIDEO_DECODER_DESC* pInputDesc, + [annotation("_In_")] DXGI_COLOR_SPACE_TYPE InputColorSpace, + [annotation("_In_")] const D3D11_VIDEO_DECODER_CONFIG* pInputConfig, + [annotation("_In_")] const DXGI_RATIONAL* pFrameRate, + [annotation("_Out_")] D3D11_VIDEO_SAMPLE_DESC* pRecommendedOutputDesc); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoProcessorEnum +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[uuid(465217F2-5568-43CF-B5B9-F61D54531CA1), object, local, pointer_default(unique)] +interface ID3D11VideoProcessorEnumerator1 + : ID3D11VideoProcessorEnumerator +{ + HRESULT CheckVideoProcessorFormatConversion( + [annotation("_In_")] DXGI_FORMAT InputFormat, + [annotation("_In_")] DXGI_COLOR_SPACE_TYPE InputColorSpace, + [annotation("_In_")] DXGI_FORMAT OutputFormat, + [annotation("_In_")] DXGI_COLOR_SPACE_TYPE OutputColorSpace, + [annotation("_Out_")] BOOL* pSupported); +}; + +[ uuid( a04bfb29-08ef-43d6-a49c-a9bdbdcbe686 ), object, local, pointer_default( unique ) ] +interface ID3D11Device1 + : ID3D11Device +{ + void GetImmediateContext1( [annotation("_Outptr_")] ID3D11DeviceContext1** ppImmediateContext ); + + HRESULT CreateDeferredContext1( + UINT ContextFlags, // Reserved parameter; must be 0 + [annotation("_COM_Outptr_opt_")] ID3D11DeviceContext1** ppDeferredContext ); + + HRESULT CreateBlendState1( + [annotation("_In_")] const D3D11_BLEND_DESC1* pBlendStateDesc, + [annotation("_COM_Outptr_opt_")] ID3D11BlendState1** ppBlendState ); + + HRESULT CreateRasterizerState1( + [annotation("_In_")] const D3D11_RASTERIZER_DESC1* pRasterizerDesc, + [annotation("_COM_Outptr_opt_")] ID3D11RasterizerState1** ppRasterizerState ); + + HRESULT CreateDeviceContextState( + UINT Flags, + [annotation("_In_reads_( FeatureLevels )")] const D3D_FEATURE_LEVEL*pFeatureLevels, + UINT FeatureLevels, + UINT SDKVersion, + REFIID EmulatedInterface, + [annotation("_Out_opt_")] D3D_FEATURE_LEVEL * pChosenFeatureLevel, + [annotation("_Out_opt_")] ID3DDeviceContextState** ppContextState ); + + HRESULT OpenSharedResource1( + [annotation("_In_")] HANDLE hResource, + [annotation("_In_")] REFIID returnedInterface, + [annotation("_COM_Outptr_")] void** ppResource); + + HRESULT OpenSharedResourceByName( + [annotation("_In_")] LPCWSTR lpName, + [annotation("_In_")] DWORD dwDesiredAccess, + [annotation("_In_")] REFIID returnedInterface, + [annotation("_COM_Outptr_")] void** ppResource); +}; + +[ uuid( b2daad8b-03d4-4dbf-95eb-32ab4b63d0ab ), object, local, pointer_default( unique ) ] +interface ID3DUserDefinedAnnotation + : IUnknown +{ + INT BeginEvent( + [annotation("_In_")] LPCWSTR Name ); + INT EndEvent( void ); + void SetMarker( + [annotation("_In_")] LPCWSTR Name ); + BOOL GetStatus( void ); +}; + +cpp_quote( "DEFINE_GUID(IID_ID3D11BlendState1,0xcc86fabe,0xda55,0x401d,0x85,0xe7,0xe3,0xc9,0xde,0x28,0x77,0xe9);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11RasterizerState1,0x1217d7a6,0x5039,0x418c,0xb0,0x42,0x9c,0xbe,0x25,0x6a,0xfd,0x6e);" ) +cpp_quote( "DEFINE_GUID(IID_ID3DDeviceContextState,0x5c1e0d8a,0x7c23,0x48f9,0x8c,0x59,0xa9,0x29,0x58,0xce,0xff,0x11);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11DeviceContext1,0xbb2c6faa,0xb5fb,0x4082,0x8e,0x6b,0x38,0x8b,0x8c,0xfa,0x90,0xe1);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoContext1,0xA7F026DA,0xA5F8,0x4487,0xA5,0x64,0x15,0xE3,0x43,0x57,0x65,0x1E);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoDevice1,0x29DA1D51,0x1321,0x4454,0x80,0x4B,0xF5,0xFC,0x9F,0x86,0x1F,0x0F);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoProcessorEnumerator1,0x465217F2,0x5568,0x43CF,0xB5,0xB9,0xF6,0x1D,0x54,0x53,0x1C,0xA1);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Device1,0xa04bfb29,0x08ef,0x43d6,0xa4,0x9c,0xa9,0xbd,0xbd,0xcb,0xe6,0x86);" ) +cpp_quote( "DEFINE_GUID(IID_ID3DUserDefinedAnnotation,0xb2daad8b,0x03d4,0x4dbf,0x95,0xeb,0x32,0xab,0x4b,0x63,0xd0,0xab);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_2.h new file mode 100644 index 0000000000000000000000000000000000000000..566f47ed5bf4ccbdba1bb527e5ec56d2375dddec --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_2.h @@ -0,0 +1,2927 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d11_2_h__ +#define __d3d11_2_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D11DeviceContext2_FWD_DEFINED__ +#define __ID3D11DeviceContext2_FWD_DEFINED__ +typedef interface ID3D11DeviceContext2 ID3D11DeviceContext2; + +#endif /* __ID3D11DeviceContext2_FWD_DEFINED__ */ + + +#ifndef __ID3D11Device2_FWD_DEFINED__ +#define __ID3D11Device2_FWD_DEFINED__ +typedef interface ID3D11Device2 ID3D11Device2; + +#endif /* __ID3D11Device2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "dxgi1_3.h" +#include "d3dcommon.h" +#include "d3d11_1.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d11_2_0000_0000 */ +/* [local] */ + +#ifdef __cplusplus +} +#endif +#include "d3d11_1.h" // +#ifdef __cplusplus +extern "C"{ +#endif +typedef struct D3D11_TILED_RESOURCE_COORDINATE + { + UINT X; + UINT Y; + UINT Z; + UINT Subresource; + } D3D11_TILED_RESOURCE_COORDINATE; + +typedef struct D3D11_TILE_REGION_SIZE + { + UINT NumTiles; + BOOL bUseBox; + UINT Width; + UINT16 Height; + UINT16 Depth; + } D3D11_TILE_REGION_SIZE; + +typedef +enum D3D11_TILE_MAPPING_FLAG + { + D3D11_TILE_MAPPING_NO_OVERWRITE = 0x1 + } D3D11_TILE_MAPPING_FLAG; + +typedef +enum D3D11_TILE_RANGE_FLAG + { + D3D11_TILE_RANGE_NULL = 0x1, + D3D11_TILE_RANGE_SKIP = 0x2, + D3D11_TILE_RANGE_REUSE_SINGLE_TILE = 0x4 + } D3D11_TILE_RANGE_FLAG; + +typedef struct D3D11_SUBRESOURCE_TILING + { + UINT WidthInTiles; + UINT16 HeightInTiles; + UINT16 DepthInTiles; + UINT StartTileIndexInOverallResource; + } D3D11_SUBRESOURCE_TILING; + +#define D3D11_PACKED_TILE ( 0xffffffff ) + +typedef struct D3D11_TILE_SHAPE + { + UINT WidthInTexels; + UINT HeightInTexels; + UINT DepthInTexels; + } D3D11_TILE_SHAPE; + +typedef struct D3D11_PACKED_MIP_DESC + { + UINT8 NumStandardMips; + UINT8 NumPackedMips; + UINT NumTilesForPackedMips; + UINT StartTileIndexInOverallResource; + } D3D11_PACKED_MIP_DESC; + +typedef +enum D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG + { + D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_TILED_RESOURCE = 0x1 + } D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG; + +typedef +enum D3D11_TILE_COPY_FLAG + { + D3D11_TILE_COPY_NO_OVERWRITE = 0x1, + D3D11_TILE_COPY_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2, + D3D11_TILE_COPY_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4 + } D3D11_TILE_COPY_FLAG; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_2_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_2_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D11DeviceContext2_INTERFACE_DEFINED__ +#define __ID3D11DeviceContext2_INTERFACE_DEFINED__ + +/* interface ID3D11DeviceContext2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11DeviceContext2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("420d5b32-b90c-4da4-bef0-359f6a24a83a") + ID3D11DeviceContext2 : public ID3D11DeviceContext1 + { + public: + virtual HRESULT STDMETHODCALLTYPE UpdateTileMappings( + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _In_ UINT NumTiledResourceRegions, + /* [annotation] */ + _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILED_RESOURCE_COORDINATE *pTiledResourceRegionStartCoordinates, + /* [annotation] */ + _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILE_REGION_SIZE *pTiledResourceRegionSizes, + /* [annotation] */ + _In_opt_ ID3D11Buffer *pTilePool, + /* [annotation] */ + _In_ UINT NumRanges, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pRangeFlags, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pTilePoolStartOffsets, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts, + /* [annotation] */ + _In_ UINT Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE CopyTileMappings( + /* [annotation] */ + _In_ ID3D11Resource *pDestTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestRegionStartCoordinate, + /* [annotation] */ + _In_ ID3D11Resource *pSourceTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pSourceRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize, + /* [annotation] */ + _In_ UINT Flags) = 0; + + virtual void STDMETHODCALLTYPE CopyTiles( + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize, + /* [annotation] */ + _In_ ID3D11Buffer *pBuffer, + /* [annotation] */ + _In_ UINT64 BufferStartOffsetInBytes, + /* [annotation] */ + _In_ UINT Flags) = 0; + + virtual void STDMETHODCALLTYPE UpdateTiles( + /* [annotation] */ + _In_ ID3D11Resource *pDestTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestTileRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pDestTileRegionSize, + /* [annotation] */ + _In_ const void *pSourceTileData, + /* [annotation] */ + _In_ UINT Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE ResizeTilePool( + /* [annotation] */ + _In_ ID3D11Buffer *pTilePool, + /* [annotation] */ + _In_ UINT64 NewSizeInBytes) = 0; + + virtual void STDMETHODCALLTYPE TiledResourceBarrier( + /* [annotation] */ + _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessBeforeBarrier, + /* [annotation] */ + _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessAfterBarrier) = 0; + + virtual BOOL STDMETHODCALLTYPE IsAnnotationEnabled( void) = 0; + + virtual void STDMETHODCALLTYPE SetMarkerInt( + /* [annotation] */ + _In_ LPCWSTR pLabel, + INT Data) = 0; + + virtual void STDMETHODCALLTYPE BeginEventInt( + /* [annotation] */ + _In_ LPCWSTR pLabel, + INT Data) = 0; + + virtual void STDMETHODCALLTYPE EndEvent( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11DeviceContext2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11DeviceContext2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11DeviceContext2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11DeviceContext2 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetConstantBuffers) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetShaderResources) + void ( STDMETHODCALLTYPE *PSSetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetShader) + void ( STDMETHODCALLTYPE *PSSetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11PixelShader *pPixelShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetSamplers) + void ( STDMETHODCALLTYPE *PSSetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetShader) + void ( STDMETHODCALLTYPE *VSSetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11VertexShader *pVertexShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexed) + void ( STDMETHODCALLTYPE *DrawIndexed )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ UINT IndexCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Draw) + void ( STDMETHODCALLTYPE *Draw )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ UINT VertexCount, + /* [annotation] */ + _In_ UINT StartVertexLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D11_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_opt_ D3D11_MAPPED_SUBRESOURCE *pMappedResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetConstantBuffers) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetInputLayout) + void ( STDMETHODCALLTYPE *IASetInputLayout )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11InputLayout *pInputLayout); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppVertexBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pStrides, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11Buffer *pIndexBuffer, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT Offset); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ UINT IndexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ UINT VertexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetConstantBuffers) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetShader) + void ( STDMETHODCALLTYPE *GSSetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11GeometryShader *pShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ D3D11_PRIMITIVE_TOPOLOGY Topology); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetShaderResources) + void ( STDMETHODCALLTYPE *VSSetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetSamplers) + void ( STDMETHODCALLTYPE *VSSetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Begin) + void ( STDMETHODCALLTYPE *Begin )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, End) + void ( STDMETHODCALLTYPE *End )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync, + /* [annotation] */ + _Out_writes_bytes_opt_( DataSize ) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11Predicate *pPredicate, + /* [annotation] */ + _In_ BOOL PredicateValue); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetShaderResources) + void ( STDMETHODCALLTYPE *GSSetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetSamplers) + void ( STDMETHODCALLTYPE *GSSetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetRenderTargetsAndUnorderedAccessViews) + void ( STDMETHODCALLTYPE *OMSetRenderTargetsAndUnorderedAccessViews )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ UINT NumRTVs, + /* [annotation] */ + _In_reads_opt_(NumRTVs) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_ UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetBlendState) + void ( STDMETHODCALLTYPE *OMSetBlendState )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11BlendState *pBlendState, + /* [annotation] */ + _In_opt_ const FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _In_ UINT SampleMask); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetDepthStencilState) + void ( STDMETHODCALLTYPE *OMSetDepthStencilState )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilState *pDepthStencilState, + /* [annotation] */ + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppSOTargets, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawAuto) + void ( STDMETHODCALLTYPE *DrawAuto )( + ID3D11DeviceContext2 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexedInstancedIndirect) + void ( STDMETHODCALLTYPE *DrawIndexedInstancedIndirect )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawInstancedIndirect) + void ( STDMETHODCALLTYPE *DrawInstancedIndirect )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ UINT ThreadGroupCountX, + /* [annotation] */ + _In_ UINT ThreadGroupCountY, + /* [annotation] */ + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DispatchIndirect) + void ( STDMETHODCALLTYPE *DispatchIndirect )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetState) + void ( STDMETHODCALLTYPE *RSSetState )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11RasterizerState *pRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + /* [annotation] */ + _In_reads_opt_(NumViewports) const D3D11_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopySubresourceRegion) + void ( STDMETHODCALLTYPE *CopySubresourceRegion )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, UpdateSubresource) + void ( STDMETHODCALLTYPE *UpdateSubresource )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopyStructureCount) + void ( STDMETHODCALLTYPE *CopyStructureCount )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pDstBuffer, + /* [annotation] */ + _In_ UINT DstAlignedByteOffset, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pSrcView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11RenderTargetView *pRenderTargetView, + /* [annotation] */ + _In_ const FLOAT ColorRGBA[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const UINT Values[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const FLOAT Values[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_ UINT ClearFlags, + /* [annotation] */ + _In_ FLOAT Depth, + /* [annotation] */ + _In_ UINT8 Stencil); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GenerateMips) + void ( STDMETHODCALLTYPE *GenerateMips )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11ShaderResourceView *pShaderResourceView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SetResourceMinLOD) + void ( STDMETHODCALLTYPE *SetResourceMinLOD )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + FLOAT MinLOD); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetResourceMinLOD) + FLOAT ( STDMETHODCALLTYPE *GetResourceMinLOD )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ExecuteCommandList) + void ( STDMETHODCALLTYPE *ExecuteCommandList )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11CommandList *pCommandList, + BOOL RestoreContextState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetShaderResources) + void ( STDMETHODCALLTYPE *HSSetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetShader) + void ( STDMETHODCALLTYPE *HSSetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11HullShader *pHullShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetSamplers) + void ( STDMETHODCALLTYPE *HSSetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetConstantBuffers) + void ( STDMETHODCALLTYPE *HSSetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetShaderResources) + void ( STDMETHODCALLTYPE *DSSetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetShader) + void ( STDMETHODCALLTYPE *DSSetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11DomainShader *pDomainShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetSamplers) + void ( STDMETHODCALLTYPE *DSSetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetConstantBuffers) + void ( STDMETHODCALLTYPE *DSSetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetShaderResources) + void ( STDMETHODCALLTYPE *CSSetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetUnorderedAccessViews) + void ( STDMETHODCALLTYPE *CSSetUnorderedAccessViews )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetShader) + void ( STDMETHODCALLTYPE *CSSetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11ComputeShader *pComputeShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetSamplers) + void ( STDMETHODCALLTYPE *CSSetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetConstantBuffers) + void ( STDMETHODCALLTYPE *CSSetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetConstantBuffers) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetShaderResources) + void ( STDMETHODCALLTYPE *PSGetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetShader) + void ( STDMETHODCALLTYPE *PSGetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11PixelShader **ppPixelShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetSamplers) + void ( STDMETHODCALLTYPE *PSGetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetShader) + void ( STDMETHODCALLTYPE *VSGetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11VertexShader **ppVertexShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetConstantBuffers) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetInputLayout) + void ( STDMETHODCALLTYPE *IAGetInputLayout )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetVertexBuffers) + void ( STDMETHODCALLTYPE *IAGetVertexBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppVertexBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pStrides, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetIndexBuffer) + void ( STDMETHODCALLTYPE *IAGetIndexBuffer )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Buffer **pIndexBuffer, + /* [annotation] */ + _Out_opt_ DXGI_FORMAT *Format, + /* [annotation] */ + _Out_opt_ UINT *Offset); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetConstantBuffers) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetShader) + void ( STDMETHODCALLTYPE *GSGetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11GeometryShader **ppGeometryShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IAGetPrimitiveTopology )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Out_ D3D11_PRIMITIVE_TOPOLOGY *pTopology); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetShaderResources) + void ( STDMETHODCALLTYPE *VSGetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetSamplers) + void ( STDMETHODCALLTYPE *VSGetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetPredication) + void ( STDMETHODCALLTYPE *GetPredication )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Predicate **ppPredicate, + /* [annotation] */ + _Out_opt_ BOOL *pPredicateValue); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetShaderResources) + void ( STDMETHODCALLTYPE *GSGetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetSamplers) + void ( STDMETHODCALLTYPE *GSGetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetRenderTargets) + void ( STDMETHODCALLTYPE *OMGetRenderTargets )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetRenderTargetsAndUnorderedAccessViews) + void ( STDMETHODCALLTYPE *OMGetRenderTargetsAndUnorderedAccessViews )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumRTVs, + /* [annotation] */ + _Out_writes_opt_(NumRTVs) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetBlendState) + void ( STDMETHODCALLTYPE *OMGetBlendState )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11BlendState **ppBlendState, + /* [annotation] */ + _Out_opt_ FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _Out_opt_ UINT *pSampleMask); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetDepthStencilState) + void ( STDMETHODCALLTYPE *OMGetDepthStencilState )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilState **ppDepthStencilState, + /* [annotation] */ + _Out_opt_ UINT *pStencilRef); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SOGetTargets) + void ( STDMETHODCALLTYPE *SOGetTargets )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppSOTargets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetState) + void ( STDMETHODCALLTYPE *RSGetState )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetViewports) + void ( STDMETHODCALLTYPE *RSGetViewports )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumViewports, + /* [annotation] */ + _Out_writes_opt_(*pNumViewports) D3D11_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetScissorRects) + void ( STDMETHODCALLTYPE *RSGetScissorRects )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumRects, + /* [annotation] */ + _Out_writes_opt_(*pNumRects) D3D11_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetShaderResources) + void ( STDMETHODCALLTYPE *HSGetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetShader) + void ( STDMETHODCALLTYPE *HSGetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11HullShader **ppHullShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetSamplers) + void ( STDMETHODCALLTYPE *HSGetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetConstantBuffers) + void ( STDMETHODCALLTYPE *HSGetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetShaderResources) + void ( STDMETHODCALLTYPE *DSGetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetShader) + void ( STDMETHODCALLTYPE *DSGetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11DomainShader **ppDomainShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetSamplers) + void ( STDMETHODCALLTYPE *DSGetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetConstantBuffers) + void ( STDMETHODCALLTYPE *DSGetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetShaderResources) + void ( STDMETHODCALLTYPE *CSGetShaderResources )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetUnorderedAccessViews) + void ( STDMETHODCALLTYPE *CSGetUnorderedAccessViews )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetShader) + void ( STDMETHODCALLTYPE *CSGetShader )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11ComputeShader **ppComputeShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetSamplers) + void ( STDMETHODCALLTYPE *CSGetSamplers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetConstantBuffers) + void ( STDMETHODCALLTYPE *CSGetConstantBuffers )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D11DeviceContext2 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Flush) + void ( STDMETHODCALLTYPE *Flush )( + ID3D11DeviceContext2 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetType) + D3D11_DEVICE_CONTEXT_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D11DeviceContext2 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetContextFlags) + UINT ( STDMETHODCALLTYPE *GetContextFlags )( + ID3D11DeviceContext2 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, FinishCommandList) + HRESULT ( STDMETHODCALLTYPE *FinishCommandList )( + ID3D11DeviceContext2 * This, + BOOL RestoreDeferredContextState, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11CommandList **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CopySubresourceRegion1) + void ( STDMETHODCALLTYPE *CopySubresourceRegion1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox, + /* [annotation] */ + _In_ UINT CopyFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, UpdateSubresource1) + void ( STDMETHODCALLTYPE *UpdateSubresource1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch, + /* [annotation] */ + _In_ UINT CopyFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardView) + void ( STDMETHODCALLTYPE *DiscardView )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11View *pResourceView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, VSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, HSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *HSSetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *DSSetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, GSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, PSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *CSSetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, VSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, HSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *HSGetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *DSGetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, GSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, PSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *CSGetConstantBuffers1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, SwapDeviceContextState) + void ( STDMETHODCALLTYPE *SwapDeviceContextState )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3DDeviceContextState *pState, + /* [annotation] */ + _Outptr_opt_ ID3DDeviceContextState **ppPreviousState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, ClearView) + void ( STDMETHODCALLTYPE *ClearView )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11View *pView, + /* [annotation] */ + _In_ const FLOAT Color[ 4 ], + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRect, + UINT NumRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardView1) + void ( STDMETHODCALLTYPE *DiscardView1 )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11View *pResourceView, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects, + UINT NumRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, UpdateTileMappings) + HRESULT ( STDMETHODCALLTYPE *UpdateTileMappings )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _In_ UINT NumTiledResourceRegions, + /* [annotation] */ + _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILED_RESOURCE_COORDINATE *pTiledResourceRegionStartCoordinates, + /* [annotation] */ + _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILE_REGION_SIZE *pTiledResourceRegionSizes, + /* [annotation] */ + _In_opt_ ID3D11Buffer *pTilePool, + /* [annotation] */ + _In_ UINT NumRanges, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pRangeFlags, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pTilePoolStartOffsets, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, CopyTileMappings) + HRESULT ( STDMETHODCALLTYPE *CopyTileMappings )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDestTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestRegionStartCoordinate, + /* [annotation] */ + _In_ ID3D11Resource *pSourceTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pSourceRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize, + /* [annotation] */ + _In_ ID3D11Buffer *pBuffer, + /* [annotation] */ + _In_ UINT64 BufferStartOffsetInBytes, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, UpdateTiles) + void ( STDMETHODCALLTYPE *UpdateTiles )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDestTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestTileRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pDestTileRegionSize, + /* [annotation] */ + _In_ const void *pSourceTileData, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, ResizeTilePool) + HRESULT ( STDMETHODCALLTYPE *ResizeTilePool )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pTilePool, + /* [annotation] */ + _In_ UINT64 NewSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, TiledResourceBarrier) + void ( STDMETHODCALLTYPE *TiledResourceBarrier )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessBeforeBarrier, + /* [annotation] */ + _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessAfterBarrier); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, IsAnnotationEnabled) + BOOL ( STDMETHODCALLTYPE *IsAnnotationEnabled )( + ID3D11DeviceContext2 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, SetMarkerInt) + void ( STDMETHODCALLTYPE *SetMarkerInt )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ LPCWSTR pLabel, + INT Data); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, BeginEventInt) + void ( STDMETHODCALLTYPE *BeginEventInt )( + ID3D11DeviceContext2 * This, + /* [annotation] */ + _In_ LPCWSTR pLabel, + INT Data); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D11DeviceContext2 * This); + + END_INTERFACE + } ID3D11DeviceContext2Vtbl; + + interface ID3D11DeviceContext2 + { + CONST_VTBL struct ID3D11DeviceContext2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11DeviceContext2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11DeviceContext2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11DeviceContext2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11DeviceContext2_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11DeviceContext2_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11DeviceContext2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11DeviceContext2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11DeviceContext2_VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext2_PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext2_DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) \ + ( (This)->lpVtbl -> DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) ) + +#define ID3D11DeviceContext2_Draw(This,VertexCount,StartVertexLocation) \ + ( (This)->lpVtbl -> Draw(This,VertexCount,StartVertexLocation) ) + +#define ID3D11DeviceContext2_Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) \ + ( (This)->lpVtbl -> Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) ) + +#define ID3D11DeviceContext2_Unmap(This,pResource,Subresource) \ + ( (This)->lpVtbl -> Unmap(This,pResource,Subresource) ) + +#define ID3D11DeviceContext2_PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_IASetInputLayout(This,pInputLayout) \ + ( (This)->lpVtbl -> IASetInputLayout(This,pInputLayout) ) + +#define ID3D11DeviceContext2_IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D11DeviceContext2_IASetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D11DeviceContext2_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D11DeviceContext2_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D11DeviceContext2_GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_GSSetShader(This,pShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> GSSetShader(This,pShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext2_IASetPrimitiveTopology(This,Topology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,Topology) ) + +#define ID3D11DeviceContext2_VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_Begin(This,pAsync) \ + ( (This)->lpVtbl -> Begin(This,pAsync) ) + +#define ID3D11DeviceContext2_End(This,pAsync) \ + ( (This)->lpVtbl -> End(This,pAsync) ) + +#define ID3D11DeviceContext2_GetData(This,pAsync,pData,DataSize,GetDataFlags) \ + ( (This)->lpVtbl -> GetData(This,pAsync,pData,DataSize,GetDataFlags) ) + +#define ID3D11DeviceContext2_SetPredication(This,pPredicate,PredicateValue) \ + ( (This)->lpVtbl -> SetPredication(This,pPredicate,PredicateValue) ) + +#define ID3D11DeviceContext2_GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) ) + +#define ID3D11DeviceContext2_OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \ + ( (This)->lpVtbl -> OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) ) + +#define ID3D11DeviceContext2_OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) \ + ( (This)->lpVtbl -> OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) ) + +#define ID3D11DeviceContext2_OMSetDepthStencilState(This,pDepthStencilState,StencilRef) \ + ( (This)->lpVtbl -> OMSetDepthStencilState(This,pDepthStencilState,StencilRef) ) + +#define ID3D11DeviceContext2_SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) \ + ( (This)->lpVtbl -> SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) ) + +#define ID3D11DeviceContext2_DrawAuto(This) \ + ( (This)->lpVtbl -> DrawAuto(This) ) + +#define ID3D11DeviceContext2_DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext2_DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext2_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D11DeviceContext2_DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext2_RSSetState(This,pRasterizerState) \ + ( (This)->lpVtbl -> RSSetState(This,pRasterizerState) ) + +#define ID3D11DeviceContext2_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D11DeviceContext2_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D11DeviceContext2_CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) ) + +#define ID3D11DeviceContext2_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D11DeviceContext2_UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D11DeviceContext2_CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) \ + ( (This)->lpVtbl -> CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) ) + +#define ID3D11DeviceContext2_ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) ) + +#define ID3D11DeviceContext2_ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) ) + +#define ID3D11DeviceContext2_ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) ) + +#define ID3D11DeviceContext2_ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) ) + +#define ID3D11DeviceContext2_GenerateMips(This,pShaderResourceView) \ + ( (This)->lpVtbl -> GenerateMips(This,pShaderResourceView) ) + +#define ID3D11DeviceContext2_SetResourceMinLOD(This,pResource,MinLOD) \ + ( (This)->lpVtbl -> SetResourceMinLOD(This,pResource,MinLOD) ) + +#define ID3D11DeviceContext2_GetResourceMinLOD(This,pResource) \ + ( (This)->lpVtbl -> GetResourceMinLOD(This,pResource) ) + +#define ID3D11DeviceContext2_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D11DeviceContext2_ExecuteCommandList(This,pCommandList,RestoreContextState) \ + ( (This)->lpVtbl -> ExecuteCommandList(This,pCommandList,RestoreContextState) ) + +#define ID3D11DeviceContext2_HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext2_HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext2_DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \ + ( (This)->lpVtbl -> CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) ) + +#define ID3D11DeviceContext2_CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext2_CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext2_PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext2_PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_IAGetInputLayout(This,ppInputLayout) \ + ( (This)->lpVtbl -> IAGetInputLayout(This,ppInputLayout) ) + +#define ID3D11DeviceContext2_IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D11DeviceContext2_IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D11DeviceContext2_GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext2_IAGetPrimitiveTopology(This,pTopology) \ + ( (This)->lpVtbl -> IAGetPrimitiveTopology(This,pTopology) ) + +#define ID3D11DeviceContext2_VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_GetPredication(This,ppPredicate,pPredicateValue) \ + ( (This)->lpVtbl -> GetPredication(This,ppPredicate,pPredicateValue) ) + +#define ID3D11DeviceContext2_GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) \ + ( (This)->lpVtbl -> OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) ) + +#define ID3D11DeviceContext2_OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) \ + ( (This)->lpVtbl -> OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) ) + +#define ID3D11DeviceContext2_OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) \ + ( (This)->lpVtbl -> OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) ) + +#define ID3D11DeviceContext2_OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) \ + ( (This)->lpVtbl -> OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) ) + +#define ID3D11DeviceContext2_SOGetTargets(This,NumBuffers,ppSOTargets) \ + ( (This)->lpVtbl -> SOGetTargets(This,NumBuffers,ppSOTargets) ) + +#define ID3D11DeviceContext2_RSGetState(This,ppRasterizerState) \ + ( (This)->lpVtbl -> RSGetState(This,ppRasterizerState) ) + +#define ID3D11DeviceContext2_RSGetViewports(This,pNumViewports,pViewports) \ + ( (This)->lpVtbl -> RSGetViewports(This,pNumViewports,pViewports) ) + +#define ID3D11DeviceContext2_RSGetScissorRects(This,pNumRects,pRects) \ + ( (This)->lpVtbl -> RSGetScissorRects(This,pNumRects,pRects) ) + +#define ID3D11DeviceContext2_HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext2_HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext2_DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext2_CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) \ + ( (This)->lpVtbl -> CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) ) + +#define ID3D11DeviceContext2_CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext2_CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext2_CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext2_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D11DeviceContext2_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + +#define ID3D11DeviceContext2_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + +#define ID3D11DeviceContext2_GetContextFlags(This) \ + ( (This)->lpVtbl -> GetContextFlags(This) ) + +#define ID3D11DeviceContext2_FinishCommandList(This,RestoreDeferredContextState,ppCommandList) \ + ( (This)->lpVtbl -> FinishCommandList(This,RestoreDeferredContextState,ppCommandList) ) + + +#define ID3D11DeviceContext2_CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) \ + ( (This)->lpVtbl -> CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) ) + +#define ID3D11DeviceContext2_UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) \ + ( (This)->lpVtbl -> UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) ) + +#define ID3D11DeviceContext2_DiscardResource(This,pResource) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource) ) + +#define ID3D11DeviceContext2_DiscardView(This,pResourceView) \ + ( (This)->lpVtbl -> DiscardView(This,pResourceView) ) + +#define ID3D11DeviceContext2_VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext2_SwapDeviceContextState(This,pState,ppPreviousState) \ + ( (This)->lpVtbl -> SwapDeviceContextState(This,pState,ppPreviousState) ) + +#define ID3D11DeviceContext2_ClearView(This,pView,Color,pRect,NumRects) \ + ( (This)->lpVtbl -> ClearView(This,pView,Color,pRect,NumRects) ) + +#define ID3D11DeviceContext2_DiscardView1(This,pResourceView,pRects,NumRects) \ + ( (This)->lpVtbl -> DiscardView1(This,pResourceView,pRects,NumRects) ) + + +#define ID3D11DeviceContext2_UpdateTileMappings(This,pTiledResource,NumTiledResourceRegions,pTiledResourceRegionStartCoordinates,pTiledResourceRegionSizes,pTilePool,NumRanges,pRangeFlags,pTilePoolStartOffsets,pRangeTileCounts,Flags) \ + ( (This)->lpVtbl -> UpdateTileMappings(This,pTiledResource,NumTiledResourceRegions,pTiledResourceRegionStartCoordinates,pTiledResourceRegionSizes,pTilePool,NumRanges,pRangeFlags,pTilePoolStartOffsets,pRangeTileCounts,Flags) ) + +#define ID3D11DeviceContext2_CopyTileMappings(This,pDestTiledResource,pDestRegionStartCoordinate,pSourceTiledResource,pSourceRegionStartCoordinate,pTileRegionSize,Flags) \ + ( (This)->lpVtbl -> CopyTileMappings(This,pDestTiledResource,pDestRegionStartCoordinate,pSourceTiledResource,pSourceRegionStartCoordinate,pTileRegionSize,Flags) ) + +#define ID3D11DeviceContext2_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D11DeviceContext2_UpdateTiles(This,pDestTiledResource,pDestTileRegionStartCoordinate,pDestTileRegionSize,pSourceTileData,Flags) \ + ( (This)->lpVtbl -> UpdateTiles(This,pDestTiledResource,pDestTileRegionStartCoordinate,pDestTileRegionSize,pSourceTileData,Flags) ) + +#define ID3D11DeviceContext2_ResizeTilePool(This,pTilePool,NewSizeInBytes) \ + ( (This)->lpVtbl -> ResizeTilePool(This,pTilePool,NewSizeInBytes) ) + +#define ID3D11DeviceContext2_TiledResourceBarrier(This,pTiledResourceOrViewAccessBeforeBarrier,pTiledResourceOrViewAccessAfterBarrier) \ + ( (This)->lpVtbl -> TiledResourceBarrier(This,pTiledResourceOrViewAccessBeforeBarrier,pTiledResourceOrViewAccessAfterBarrier) ) + +#define ID3D11DeviceContext2_IsAnnotationEnabled(This) \ + ( (This)->lpVtbl -> IsAnnotationEnabled(This) ) + +#define ID3D11DeviceContext2_SetMarkerInt(This,pLabel,Data) \ + ( (This)->lpVtbl -> SetMarkerInt(This,pLabel,Data) ) + +#define ID3D11DeviceContext2_BeginEventInt(This,pLabel,Data) \ + ( (This)->lpVtbl -> BeginEventInt(This,pLabel,Data) ) + +#define ID3D11DeviceContext2_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11DeviceContext2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11Device2_INTERFACE_DEFINED__ +#define __ID3D11Device2_INTERFACE_DEFINED__ + +/* interface ID3D11Device2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Device2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9d06dffa-d1e5-4d07-83a8-1bb123f2f841") + ID3D11Device2 : public ID3D11Device1 + { + public: + virtual void STDMETHODCALLTYPE GetImmediateContext2( + /* [annotation] */ + _Outptr_ ID3D11DeviceContext2 **ppImmediateContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDeferredContext2( + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext) = 0; + + virtual void STDMETHODCALLTYPE GetResourceTiling( + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _Out_opt_ UINT *pNumTilesForEntireResource, + /* [annotation] */ + _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc, + /* [annotation] */ + _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + /* [annotation] */ + _Inout_opt_ UINT *pNumSubresourceTilings, + /* [annotation] */ + _In_ UINT FirstSubresourceTilingToGet, + /* [annotation] */ + _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckMultisampleQualityLevels1( + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _In_ UINT Flags, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Device2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Device2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Device2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Device2 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBuffer) + HRESULT ( STDMETHODCALLTYPE *CreateBuffer )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_BUFFER_DESC *pDesc, + /* [annotation] */ + _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Buffer **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture1D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE1D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture2D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture3D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateShaderResourceView) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateUnorderedAccessView) + HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRenderTargetView) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilView) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateInputLayout) + HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )( + ID3D11Device2 * This, + /* [annotation] */ + _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateVertexShader) + HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )( + ID3D11Device2 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShader) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )( + ID3D11Device2 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShaderWithStreamOutput) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )( + ID3D11Device2 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration, + /* [annotation] */ + _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries, + /* [annotation] */ + _In_reads_opt_(NumStrides) const UINT *pBufferStrides, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides, + /* [annotation] */ + _In_ UINT RasterizedStream, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePixelShader) + HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )( + ID3D11Device2 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateHullShader) + HRESULT ( STDMETHODCALLTYPE *CreateHullShader )( + ID3D11Device2 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11HullShader **ppHullShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDomainShader) + HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )( + ID3D11Device2 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateComputeShader) + HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )( + ID3D11Device2 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateClassLinkage) + HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )( + ID3D11Device2 * This, + /* [annotation] */ + _COM_Outptr_ ID3D11ClassLinkage **ppLinkage); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBlendState) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilState) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRasterizerState) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateSamplerState) + HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_SAMPLER_DESC *pSamplerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateQuery) + HRESULT ( STDMETHODCALLTYPE *CreateQuery )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pQueryDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query **ppQuery); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePredicate) + HRESULT ( STDMETHODCALLTYPE *CreatePredicate )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pPredicateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Predicate **ppPredicate); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateCounter) + HRESULT ( STDMETHODCALLTYPE *CreateCounter )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pCounterDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Counter **ppCounter); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDeferredContext) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )( + ID3D11Device2 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device, OpenSharedResource) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFormatSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFormatSupport); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckMultisampleQualityLevels) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounterInfo) + void ( STDMETHODCALLTYPE *CheckCounterInfo )( + ID3D11Device2 * This, + /* [annotation] */ + _Out_ D3D11_COUNTER_INFO *pCounterInfo); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounter) + HRESULT ( STDMETHODCALLTYPE *CheckCounter )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pDesc, + /* [annotation] */ + _Out_ D3D11_COUNTER_TYPE *pType, + /* [annotation] */ + _Out_ UINT *pActiveCounters, + /* [annotation] */ + _Out_writes_opt_(*pNameLength) LPSTR szName, + /* [annotation] */ + _Inout_opt_ UINT *pNameLength, + /* [annotation] */ + _Out_writes_opt_(*pUnitsLength) LPSTR szUnits, + /* [annotation] */ + _Inout_opt_ UINT *pUnitsLength, + /* [annotation] */ + _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription, + /* [annotation] */ + _Inout_opt_ UINT *pDescriptionLength); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D11Device2 * This, + D3D11_FEATURE Feature, + /* [annotation] */ + _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D11Device, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, GetFeatureLevel) + D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )( + ID3D11Device2 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetCreationFlags) + UINT ( STDMETHODCALLTYPE *GetCreationFlags )( + ID3D11Device2 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D11Device2 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetImmediateContext) + void ( STDMETHODCALLTYPE *GetImmediateContext )( + ID3D11Device2 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device, SetExceptionMode) + HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )( + ID3D11Device2 * This, + UINT RaiseFlags); + + DECLSPEC_XFGVIRT(ID3D11Device, GetExceptionMode) + UINT ( STDMETHODCALLTYPE *GetExceptionMode )( + ID3D11Device2 * This); + + DECLSPEC_XFGVIRT(ID3D11Device1, GetImmediateContext1) + void ( STDMETHODCALLTYPE *GetImmediateContext1 )( + ID3D11Device2 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext1 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateDeferredContext1) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )( + ID3D11Device2 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateBlendState1) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateRasterizerState1) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateDeviceContextState) + HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )( + ID3D11Device2 * This, + UINT Flags, + /* [annotation] */ + _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels, + UINT FeatureLevels, + UINT SDKVersion, + REFIID EmulatedInterface, + /* [annotation] */ + _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel, + /* [annotation] */ + _Out_opt_ ID3DDeviceContextState **ppContextState); + + DECLSPEC_XFGVIRT(ID3D11Device1, OpenSharedResource1) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device1, OpenSharedResourceByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ LPCWSTR lpName, + /* [annotation] */ + _In_ DWORD dwDesiredAccess, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device2, GetImmediateContext2) + void ( STDMETHODCALLTYPE *GetImmediateContext2 )( + ID3D11Device2 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext2 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device2, CreateDeferredContext2) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext2 )( + ID3D11Device2 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device2, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _Out_opt_ UINT *pNumTilesForEntireResource, + /* [annotation] */ + _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc, + /* [annotation] */ + _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + /* [annotation] */ + _Inout_opt_ UINT *pNumSubresourceTilings, + /* [annotation] */ + _In_ UINT FirstSubresourceTilingToGet, + /* [annotation] */ + _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D11Device2, CheckMultisampleQualityLevels1) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels1 )( + ID3D11Device2 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _In_ UINT Flags, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + END_INTERFACE + } ID3D11Device2Vtbl; + + interface ID3D11Device2 + { + CONST_VTBL struct ID3D11Device2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Device2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Device2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Device2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Device2_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \ + ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) ) + +#define ID3D11Device2_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \ + ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) ) + +#define ID3D11Device2_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) ) + +#define ID3D11Device2_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) ) + +#define ID3D11Device2_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) ) + +#define ID3D11Device2_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) ) + +#define ID3D11Device2_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) ) + +#define ID3D11Device2_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) ) + +#define ID3D11Device2_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \ + ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) ) + +#define ID3D11Device2_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \ + ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) ) + +#define ID3D11Device2_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device2_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device2_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \ + ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) ) + +#define ID3D11Device2_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \ + ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) ) + +#define ID3D11Device2_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \ + ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) ) + +#define ID3D11Device2_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \ + ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) ) + +#define ID3D11Device2_CreateClassLinkage(This,ppLinkage) \ + ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) ) + +#define ID3D11Device2_CreateBlendState(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device2_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \ + ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) ) + +#define ID3D11Device2_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device2_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \ + ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) ) + +#define ID3D11Device2_CreateQuery(This,pQueryDesc,ppQuery) \ + ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) ) + +#define ID3D11Device2_CreatePredicate(This,pPredicateDesc,ppPredicate) \ + ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) ) + +#define ID3D11Device2_CreateCounter(This,pCounterDesc,ppCounter) \ + ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) ) + +#define ID3D11Device2_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device2_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) ) + +#define ID3D11Device2_CheckFormatSupport(This,Format,pFormatSupport) \ + ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) ) + +#define ID3D11Device2_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) ) + +#define ID3D11Device2_CheckCounterInfo(This,pCounterInfo) \ + ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) ) + +#define ID3D11Device2_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \ + ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) ) + +#define ID3D11Device2_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D11Device2_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Device2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Device2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D11Device2_GetFeatureLevel(This) \ + ( (This)->lpVtbl -> GetFeatureLevel(This) ) + +#define ID3D11Device2_GetCreationFlags(This) \ + ( (This)->lpVtbl -> GetCreationFlags(This) ) + +#define ID3D11Device2_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D11Device2_GetImmediateContext(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) ) + +#define ID3D11Device2_SetExceptionMode(This,RaiseFlags) \ + ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) ) + +#define ID3D11Device2_GetExceptionMode(This) \ + ( (This)->lpVtbl -> GetExceptionMode(This) ) + + +#define ID3D11Device2_GetImmediateContext1(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) ) + +#define ID3D11Device2_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device2_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device2_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device2_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \ + ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) ) + +#define ID3D11Device2_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) ) + +#define ID3D11Device2_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) ) + + +#define ID3D11Device2_GetImmediateContext2(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext2(This,ppImmediateContext) ) + +#define ID3D11Device2_CreateDeferredContext2(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext2(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device2_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) + +#define ID3D11Device2_CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Device2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_2_0000_0002 */ +/* [local] */ + +DEFINE_GUID(IID_ID3D11DeviceContext2,0x420d5b32,0xb90c,0x4da4,0xbe,0xf0,0x35,0x9f,0x6a,0x24,0xa8,0x3a); +DEFINE_GUID(IID_ID3D11Device2,0x9d06dffa,0xd1e5,0x4d07,0x83,0xa8,0x1b,0xb1,0x23,0xf2,0xf8,0x41); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_2_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_2_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_2.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_2.idl new file mode 100644 index 0000000000000000000000000000000000000000..2161bcdc3f25ecd8e492bdd1815aa2c64fae261d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_2.idl @@ -0,0 +1,175 @@ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// D3D11.2 IDL +// +// Contains interface definitions for the D3D11.2 API. +// +// Copyright (C) Microsoft Corporation +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +import "oaidl.idl"; +import "ocidl.idl"; +import "dxgi1_3.idl"; +import "d3dcommon.idl"; + + + +import "d3d11_1.idl"; // +cpp_quote( "#ifdef __cplusplus" ) +cpp_quote( "}" ) // extern C +cpp_quote( "#endif" ) +cpp_quote( "#include \"d3d11_1.h\" //") // +cpp_quote( "#ifdef __cplusplus" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +typedef struct D3D11_TILED_RESOURCE_COORDINATE +{ + UINT X; + UINT Y; + UINT Z; + UINT Subresource; +} D3D11_TILED_RESOURCE_COORDINATE; + +typedef struct D3D11_TILE_REGION_SIZE +{ + UINT NumTiles; + BOOL bUseBox; + UINT Width; + UINT16 Height; + UINT16 Depth; +} D3D11_TILE_REGION_SIZE; + +typedef enum D3D11_TILE_MAPPING_FLAG +{ + D3D11_TILE_MAPPING_NO_OVERWRITE = 0x00000001, +} D3D11_TILE_MAPPING_FLAG; + +typedef enum D3D11_TILE_RANGE_FLAG +{ + D3D11_TILE_RANGE_NULL = 0x00000001, + D3D11_TILE_RANGE_SKIP = 0x00000002, + D3D11_TILE_RANGE_REUSE_SINGLE_TILE = 0x00000004, +} D3D11_TILE_RANGE_FLAG; + +typedef struct D3D11_SUBRESOURCE_TILING +{ + UINT WidthInTiles; + UINT16 HeightInTiles; + UINT16 DepthInTiles; + UINT StartTileIndexInOverallResource; +} D3D11_SUBRESOURCE_TILING; + +const UINT D3D11_PACKED_TILE = 0xffffffff; + +typedef struct D3D11_TILE_SHAPE +{ + UINT WidthInTexels; + UINT HeightInTexels; + UINT DepthInTexels; +} D3D11_TILE_SHAPE; + +typedef struct D3D11_PACKED_MIP_DESC +{ + UINT8 NumStandardMips; + UINT8 NumPackedMips; + UINT NumTilesForPackedMips; + UINT StartTileIndexInOverallResource; +} D3D11_PACKED_MIP_DESC; + +typedef enum D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG +{ + D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_TILED_RESOURCE = 0x00000001, +} D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG; + +typedef enum D3D11_TILE_COPY_FLAG +{ + D3D11_TILE_COPY_NO_OVERWRITE = 0x00000001, + D3D11_TILE_COPY_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x00000002, + D3D11_TILE_COPY_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x00000004, +} D3D11_TILE_COPY_FLAG; +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// DeviceContext2 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( 420d5b32-b90c-4da4-bef0-359f6a24a83a ), object, local, pointer_default( unique ) ] +interface ID3D11DeviceContext2 + : ID3D11DeviceContext1 +{ + HRESULT UpdateTileMappings( [annotation("_In_")] ID3D11Resource* pTiledResource, + [annotation("_In_")] UINT NumTiledResourceRegions, + [annotation("_In_reads_opt_(NumTiledResourceRegions)")] const D3D11_TILED_RESOURCE_COORDINATE* pTiledResourceRegionStartCoordinates, + [annotation("_In_reads_opt_(NumTiledResourceRegions)")] const D3D11_TILE_REGION_SIZE* pTiledResourceRegionSizes, + [annotation("_In_opt_")] ID3D11Buffer* pTilePool, + [annotation("_In_")] UINT NumRanges, + [annotation("_In_reads_opt_(NumRanges)")] const UINT* pRangeFlags, + [annotation("_In_reads_opt_(NumRanges)")] const UINT* pTilePoolStartOffsets, + [annotation("_In_reads_opt_(NumRanges)")] const UINT* pRangeTileCounts, + [annotation("_In_")] UINT Flags + ); + + HRESULT CopyTileMappings( [annotation("_In_")] ID3D11Resource* pDestTiledResource, + [annotation("_In_")] const D3D11_TILED_RESOURCE_COORDINATE* pDestRegionStartCoordinate, + [annotation("_In_")] ID3D11Resource* pSourceTiledResource, + [annotation("_In_")] const D3D11_TILED_RESOURCE_COORDINATE* pSourceRegionStartCoordinate, + [annotation("_In_")] const D3D11_TILE_REGION_SIZE* pTileRegionSize, + [annotation("_In_")] UINT Flags + ); + + void CopyTiles( [annotation("_In_")] ID3D11Resource* pTiledResource, + [annotation("_In_")] const D3D11_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, + [annotation("_In_")] const D3D11_TILE_REGION_SIZE* pTileRegionSize, + [annotation("_In_")] ID3D11Buffer* pBuffer, + [annotation("_In_")] UINT64 BufferStartOffsetInBytes, + [annotation("_In_")] UINT Flags + ); + + void UpdateTiles( [annotation("_In_")] ID3D11Resource* pDestTiledResource, + [annotation("_In_")] const D3D11_TILED_RESOURCE_COORDINATE* pDestTileRegionStartCoordinate, + [annotation("_In_")] const D3D11_TILE_REGION_SIZE* pDestTileRegionSize, + [annotation("_In_")] const void* pSourceTileData, + [annotation("_In_")] UINT Flags + ); + + HRESULT ResizeTilePool( [annotation("_In_")] ID3D11Buffer* pTilePool, + [annotation("_In_")] UINT64 NewSizeInBytes ); + + void TiledResourceBarrier( [annotation("_In_opt_")] ID3D11DeviceChild* pTiledResourceOrViewAccessBeforeBarrier, + [annotation("_In_opt_")] ID3D11DeviceChild* pTiledResourceOrViewAccessAfterBarrier + ); + + BOOL IsAnnotationEnabled(); + void SetMarkerInt( [annotation("_In_")] LPCWSTR pLabel, INT Data ); + void BeginEventInt( [annotation("_In_")] LPCWSTR pLabel, INT Data ); + void EndEvent(); +};[ uuid( 9d06dffa-d1e5-4d07-83a8-1bb123f2f841 ), object, local, pointer_default( unique ) ] +interface ID3D11Device2 + : ID3D11Device1 +{ + void GetImmediateContext2( [annotation("_Outptr_")] ID3D11DeviceContext2** ppImmediateContext ); + + HRESULT CreateDeferredContext2( + UINT ContextFlags, + [annotation("_COM_Outptr_opt_")] ID3D11DeviceContext2** ppDeferredContext ); + + void GetResourceTiling( + [annotation("_In_")] ID3D11Resource* pTiledResource, + [annotation("_Out_opt_")] UINT* pNumTilesForEntireResource, + [annotation("_Out_opt_")] D3D11_PACKED_MIP_DESC* pPackedMipDesc, + [annotation("_Out_opt_")] D3D11_TILE_SHAPE* pStandardTileShapeForNonPackedMips, + [annotation("_Inout_opt_")] UINT* pNumSubresourceTilings, + [annotation("_In_")] UINT FirstSubresourceTilingToGet, + [annotation("_Out_writes_(*pNumSubresourceTilings)")] D3D11_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips + ); + + HRESULT CheckMultisampleQualityLevels1( + [annotation("_In_")] DXGI_FORMAT Format, + [annotation("_In_")] UINT SampleCount, + [annotation("_In_")] UINT Flags, + [annotation("_Out_")] UINT *pNumQualityLevels); +}; +cpp_quote( "DEFINE_GUID(IID_ID3D11DeviceContext2,0x420d5b32,0xb90c,0x4da4,0xbe,0xf0,0x35,0x9f,0x6a,0x24,0xa8,0x3a);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Device2,0x9d06dffa,0xd1e5,0x4d07,0x83,0xa8,0x1b,0xb1,0x23,0xf2,0xf8,0x41);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_3.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_3.h new file mode 100644 index 0000000000000000000000000000000000000000..7c56e052a32fbd8326d98cfe8de09d4af7b64431 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_3.h @@ -0,0 +1,7281 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d11_3_h__ +#define __d3d11_3_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D11Texture2D1_FWD_DEFINED__ +#define __ID3D11Texture2D1_FWD_DEFINED__ +typedef interface ID3D11Texture2D1 ID3D11Texture2D1; + +#endif /* __ID3D11Texture2D1_FWD_DEFINED__ */ + + +#ifndef __ID3D11Texture3D1_FWD_DEFINED__ +#define __ID3D11Texture3D1_FWD_DEFINED__ +typedef interface ID3D11Texture3D1 ID3D11Texture3D1; + +#endif /* __ID3D11Texture3D1_FWD_DEFINED__ */ + + +#ifndef __ID3D11RasterizerState2_FWD_DEFINED__ +#define __ID3D11RasterizerState2_FWD_DEFINED__ +typedef interface ID3D11RasterizerState2 ID3D11RasterizerState2; + +#endif /* __ID3D11RasterizerState2_FWD_DEFINED__ */ + + +#ifndef __ID3D11ShaderResourceView1_FWD_DEFINED__ +#define __ID3D11ShaderResourceView1_FWD_DEFINED__ +typedef interface ID3D11ShaderResourceView1 ID3D11ShaderResourceView1; + +#endif /* __ID3D11ShaderResourceView1_FWD_DEFINED__ */ + + +#ifndef __ID3D11RenderTargetView1_FWD_DEFINED__ +#define __ID3D11RenderTargetView1_FWD_DEFINED__ +typedef interface ID3D11RenderTargetView1 ID3D11RenderTargetView1; + +#endif /* __ID3D11RenderTargetView1_FWD_DEFINED__ */ + + +#ifndef __ID3D11UnorderedAccessView1_FWD_DEFINED__ +#define __ID3D11UnorderedAccessView1_FWD_DEFINED__ +typedef interface ID3D11UnorderedAccessView1 ID3D11UnorderedAccessView1; + +#endif /* __ID3D11UnorderedAccessView1_FWD_DEFINED__ */ + + +#ifndef __ID3D11Query1_FWD_DEFINED__ +#define __ID3D11Query1_FWD_DEFINED__ +typedef interface ID3D11Query1 ID3D11Query1; + +#endif /* __ID3D11Query1_FWD_DEFINED__ */ + + +#ifndef __ID3D11DeviceContext3_FWD_DEFINED__ +#define __ID3D11DeviceContext3_FWD_DEFINED__ +typedef interface ID3D11DeviceContext3 ID3D11DeviceContext3; + +#endif /* __ID3D11DeviceContext3_FWD_DEFINED__ */ + + +#ifndef __ID3D11Fence_FWD_DEFINED__ +#define __ID3D11Fence_FWD_DEFINED__ +typedef interface ID3D11Fence ID3D11Fence; + +#endif /* __ID3D11Fence_FWD_DEFINED__ */ + + +#ifndef __ID3D11DeviceContext4_FWD_DEFINED__ +#define __ID3D11DeviceContext4_FWD_DEFINED__ +typedef interface ID3D11DeviceContext4 ID3D11DeviceContext4; + +#endif /* __ID3D11DeviceContext4_FWD_DEFINED__ */ + + +#ifndef __ID3D11Device3_FWD_DEFINED__ +#define __ID3D11Device3_FWD_DEFINED__ +typedef interface ID3D11Device3 ID3D11Device3; + +#endif /* __ID3D11Device3_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "dxgi1_3.h" +#include "d3dcommon.h" +#include "d3d11_2.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d11_3_0000_0000 */ +/* [local] */ + +#ifdef __cplusplus +} +#endif +#include "d3d11_2.h" // +#ifdef __cplusplus +extern "C"{ +#endif +typedef +enum D3D11_CONTEXT_TYPE + { + D3D11_CONTEXT_TYPE_ALL = 0, + D3D11_CONTEXT_TYPE_3D = 1, + D3D11_CONTEXT_TYPE_COMPUTE = 2, + D3D11_CONTEXT_TYPE_COPY = 3, + D3D11_CONTEXT_TYPE_VIDEO = 4 + } D3D11_CONTEXT_TYPE; + +#ifdef __cplusplus +enum D3D11_TEXTURE_LAYOUT : int +{ +D3D11_TEXTURE_LAYOUT_UNDEFINED = 0, +D3D11_TEXTURE_LAYOUT_ROW_MAJOR = 1, +D3D11_TEXTURE_LAYOUT_64K_STANDARD_SWIZZLE = 2, +}; +#else +typedef +enum D3D11_TEXTURE_LAYOUT + { + D3D11_TEXTURE_LAYOUT_UNDEFINED = 0, + D3D11_TEXTURE_LAYOUT_ROW_MAJOR = 1, + D3D11_TEXTURE_LAYOUT_64K_STANDARD_SWIZZLE = 2 + } D3D11_TEXTURE_LAYOUT; + +#endif +typedef struct D3D11_TEXTURE2D_DESC1 + { + UINT Width; + UINT Height; + UINT MipLevels; + UINT ArraySize; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + D3D11_TEXTURE_LAYOUT TextureLayout; + } D3D11_TEXTURE2D_DESC1; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_TEXTURE2D_DESC1 : public D3D11_TEXTURE2D_DESC1 +{ + CD3D11_TEXTURE2D_DESC1() = default; + explicit CD3D11_TEXTURE2D_DESC1( const D3D11_TEXTURE2D_DESC1& o ) : + D3D11_TEXTURE2D_DESC1( o ) + {} + explicit CD3D11_TEXTURE2D_DESC1( + DXGI_FORMAT format, + UINT width, + UINT height, + UINT arraySize = 1, + UINT mipLevels = 0, + UINT bindFlags = D3D11_BIND_SHADER_RESOURCE, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + UINT cpuaccessFlags = 0, + UINT sampleCount = 1, + UINT sampleQuality = 0, + UINT miscFlags = 0, + D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED) + { + Width = width; + Height = height; + MipLevels = mipLevels; + ArraySize = arraySize; + Format = format; + SampleDesc.Count = sampleCount; + SampleDesc.Quality = sampleQuality; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + TextureLayout = textureLayout; + } + explicit CD3D11_TEXTURE2D_DESC1( + const D3D11_TEXTURE2D_DESC &desc, + D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED) + { + Width = desc.Width; + Height = desc.Height; + MipLevels = desc.MipLevels; + ArraySize = desc.ArraySize; + Format = desc.Format; + SampleDesc.Count = desc.SampleDesc.Count; + SampleDesc.Quality = desc. SampleDesc.Quality; + Usage = desc.Usage; + BindFlags = desc.BindFlags; + CPUAccessFlags = desc.CPUAccessFlags; + MiscFlags = desc.MiscFlags; + TextureLayout = textureLayout; + } + ~CD3D11_TEXTURE2D_DESC1() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D11Texture2D1_INTERFACE_DEFINED__ +#define __ID3D11Texture2D1_INTERFACE_DEFINED__ + +/* interface ID3D11Texture2D1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Texture2D1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51218251-1E33-4617-9CCB-4D3A4367E7BB") + ID3D11Texture2D1 : public ID3D11Texture2D + { + public: + virtual void STDMETHODCALLTYPE GetDesc1( + /* [annotation] */ + _Out_ D3D11_TEXTURE2D_DESC1 *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Texture2D1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Texture2D1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Texture2D1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Texture2D1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Texture2D1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Texture2D1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Texture2D1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Texture2D1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D11Texture2D1 * This, + /* [annotation] */ + _Out_ D3D11_RESOURCE_DIMENSION *pResourceDimension); + + DECLSPEC_XFGVIRT(ID3D11Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D11Texture2D1 * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D11Texture2D1 * This); + + DECLSPEC_XFGVIRT(ID3D11Texture2D, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11Texture2D1 * This, + /* [annotation] */ + _Out_ D3D11_TEXTURE2D_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11Texture2D1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D11Texture2D1 * This, + /* [annotation] */ + _Out_ D3D11_TEXTURE2D_DESC1 *pDesc); + + END_INTERFACE + } ID3D11Texture2D1Vtbl; + + interface ID3D11Texture2D1 + { + CONST_VTBL struct ID3D11Texture2D1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Texture2D1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Texture2D1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Texture2D1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Texture2D1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Texture2D1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Texture2D1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Texture2D1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Texture2D1_GetType(This,pResourceDimension) \ + ( (This)->lpVtbl -> GetType(This,pResourceDimension) ) + +#define ID3D11Texture2D1_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D11Texture2D1_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + + +#define ID3D11Texture2D1_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D11Texture2D1_GetDesc1(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Texture2D1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_3_0000_0001 */ +/* [local] */ + +typedef struct D3D11_TEXTURE3D_DESC1 + { + UINT Width; + UINT Height; + UINT Depth; + UINT MipLevels; + DXGI_FORMAT Format; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + D3D11_TEXTURE_LAYOUT TextureLayout; + } D3D11_TEXTURE3D_DESC1; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_TEXTURE3D_DESC1 : public D3D11_TEXTURE3D_DESC1 +{ + CD3D11_TEXTURE3D_DESC1() = default; + explicit CD3D11_TEXTURE3D_DESC1( const D3D11_TEXTURE3D_DESC1& o ) : + D3D11_TEXTURE3D_DESC1( o ) + {} + explicit CD3D11_TEXTURE3D_DESC1( + DXGI_FORMAT format, + UINT width, + UINT height, + UINT depth, + UINT mipLevels = 0, + UINT bindFlags = D3D11_BIND_SHADER_RESOURCE, + D3D11_USAGE usage = D3D11_USAGE_DEFAULT, + UINT cpuaccessFlags = 0, + UINT miscFlags = 0, + D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED) + { + Width = width; + Height = height; + Depth = depth; + MipLevels = mipLevels; + Format = format; + Usage = usage; + BindFlags = bindFlags; + CPUAccessFlags = cpuaccessFlags; + MiscFlags = miscFlags; + TextureLayout = textureLayout; + } + explicit CD3D11_TEXTURE3D_DESC1( + const D3D11_TEXTURE3D_DESC &desc, + D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED) + { + Width = desc.Width; + Height = desc.Height; + Depth = desc.Depth; + MipLevels = desc.MipLevels; + Format = desc.Format; + Usage = desc.Usage; + BindFlags = desc.BindFlags; + CPUAccessFlags = desc.CPUAccessFlags; + MiscFlags = desc.MiscFlags; + TextureLayout = textureLayout; + } + ~CD3D11_TEXTURE3D_DESC1() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0001_v0_0_s_ifspec; + +#ifndef __ID3D11Texture3D1_INTERFACE_DEFINED__ +#define __ID3D11Texture3D1_INTERFACE_DEFINED__ + +/* interface ID3D11Texture3D1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Texture3D1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0C711683-2853-4846-9BB0-F3E60639E46A") + ID3D11Texture3D1 : public ID3D11Texture3D + { + public: + virtual void STDMETHODCALLTYPE GetDesc1( + /* [annotation] */ + _Out_ D3D11_TEXTURE3D_DESC1 *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Texture3D1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Texture3D1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Texture3D1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Texture3D1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Texture3D1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Texture3D1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Texture3D1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Texture3D1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetType) + void ( STDMETHODCALLTYPE *GetType )( + ID3D11Texture3D1 * This, + /* [annotation] */ + _Out_ D3D11_RESOURCE_DIMENSION *pResourceDimension); + + DECLSPEC_XFGVIRT(ID3D11Resource, SetEvictionPriority) + void ( STDMETHODCALLTYPE *SetEvictionPriority )( + ID3D11Texture3D1 * This, + /* [annotation] */ + _In_ UINT EvictionPriority); + + DECLSPEC_XFGVIRT(ID3D11Resource, GetEvictionPriority) + UINT ( STDMETHODCALLTYPE *GetEvictionPriority )( + ID3D11Texture3D1 * This); + + DECLSPEC_XFGVIRT(ID3D11Texture3D, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11Texture3D1 * This, + /* [annotation] */ + _Out_ D3D11_TEXTURE3D_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11Texture3D1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D11Texture3D1 * This, + /* [annotation] */ + _Out_ D3D11_TEXTURE3D_DESC1 *pDesc); + + END_INTERFACE + } ID3D11Texture3D1Vtbl; + + interface ID3D11Texture3D1 + { + CONST_VTBL struct ID3D11Texture3D1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Texture3D1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Texture3D1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Texture3D1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Texture3D1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Texture3D1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Texture3D1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Texture3D1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Texture3D1_GetType(This,pResourceDimension) \ + ( (This)->lpVtbl -> GetType(This,pResourceDimension) ) + +#define ID3D11Texture3D1_SetEvictionPriority(This,EvictionPriority) \ + ( (This)->lpVtbl -> SetEvictionPriority(This,EvictionPriority) ) + +#define ID3D11Texture3D1_GetEvictionPriority(This) \ + ( (This)->lpVtbl -> GetEvictionPriority(This) ) + + +#define ID3D11Texture3D1_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D11Texture3D1_GetDesc1(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Texture3D1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_3_0000_0002 */ +/* [local] */ + +typedef +enum D3D11_CONSERVATIVE_RASTERIZATION_MODE + { + D3D11_CONSERVATIVE_RASTERIZATION_MODE_OFF = 0, + D3D11_CONSERVATIVE_RASTERIZATION_MODE_ON = 1 + } D3D11_CONSERVATIVE_RASTERIZATION_MODE; + +typedef struct D3D11_RASTERIZER_DESC2 + { + D3D11_FILL_MODE FillMode; + D3D11_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + INT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL ScissorEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; + UINT ForcedSampleCount; + D3D11_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster; + } D3D11_RASTERIZER_DESC2; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_RASTERIZER_DESC2 : public D3D11_RASTERIZER_DESC2 +{ + CD3D11_RASTERIZER_DESC2() = default; + explicit CD3D11_RASTERIZER_DESC2( const D3D11_RASTERIZER_DESC2& o ) : + D3D11_RASTERIZER_DESC2( o ) + {} + explicit CD3D11_RASTERIZER_DESC2( CD3D11_DEFAULT ) + { + FillMode = D3D11_FILL_SOLID; + CullMode = D3D11_CULL_BACK; + FrontCounterClockwise = FALSE; + DepthBias = D3D11_DEFAULT_DEPTH_BIAS; + DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP; + SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS; + DepthClipEnable = TRUE; + ScissorEnable = FALSE; + MultisampleEnable = FALSE; + AntialiasedLineEnable = FALSE; + ForcedSampleCount = 0; + ConservativeRaster = D3D11_CONSERVATIVE_RASTERIZATION_MODE_OFF; + } + explicit CD3D11_RASTERIZER_DESC2( + D3D11_FILL_MODE fillMode, + D3D11_CULL_MODE cullMode, + BOOL frontCounterClockwise, + INT depthBias, + FLOAT depthBiasClamp, + FLOAT slopeScaledDepthBias, + BOOL depthClipEnable, + BOOL scissorEnable, + BOOL multisampleEnable, + BOOL antialiasedLineEnable, + UINT forcedSampleCount, + D3D11_CONSERVATIVE_RASTERIZATION_MODE conservativeRaster ) + { + FillMode = fillMode; + CullMode = cullMode; + FrontCounterClockwise = frontCounterClockwise; + DepthBias = depthBias; + DepthBiasClamp = depthBiasClamp; + SlopeScaledDepthBias = slopeScaledDepthBias; + DepthClipEnable = depthClipEnable; + ScissorEnable = scissorEnable; + MultisampleEnable = multisampleEnable; + AntialiasedLineEnable = antialiasedLineEnable; + ForcedSampleCount = forcedSampleCount; + ConservativeRaster = conservativeRaster; + } + ~CD3D11_RASTERIZER_DESC2() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0002_v0_0_s_ifspec; + +#ifndef __ID3D11RasterizerState2_INTERFACE_DEFINED__ +#define __ID3D11RasterizerState2_INTERFACE_DEFINED__ + +/* interface ID3D11RasterizerState2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11RasterizerState2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6fbd02fb-209f-46c4-b059-2ed15586a6ac") + ID3D11RasterizerState2 : public ID3D11RasterizerState1 + { + public: + virtual void STDMETHODCALLTYPE GetDesc2( + /* [annotation] */ + _Out_ D3D11_RASTERIZER_DESC2 *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11RasterizerState2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11RasterizerState2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11RasterizerState2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11RasterizerState2 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11RasterizerState2 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11RasterizerState2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11RasterizerState2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11RasterizerState2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11RasterizerState, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11RasterizerState2 * This, + /* [annotation] */ + _Out_ D3D11_RASTERIZER_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11RasterizerState1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D11RasterizerState2 * This, + /* [annotation] */ + _Out_ D3D11_RASTERIZER_DESC1 *pDesc); + + DECLSPEC_XFGVIRT(ID3D11RasterizerState2, GetDesc2) + void ( STDMETHODCALLTYPE *GetDesc2 )( + ID3D11RasterizerState2 * This, + /* [annotation] */ + _Out_ D3D11_RASTERIZER_DESC2 *pDesc); + + END_INTERFACE + } ID3D11RasterizerState2Vtbl; + + interface ID3D11RasterizerState2 + { + CONST_VTBL struct ID3D11RasterizerState2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11RasterizerState2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11RasterizerState2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11RasterizerState2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11RasterizerState2_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11RasterizerState2_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11RasterizerState2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11RasterizerState2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11RasterizerState2_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D11RasterizerState2_GetDesc1(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc) ) + + +#define ID3D11RasterizerState2_GetDesc2(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc2(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11RasterizerState2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_3_0000_0003 */ +/* [local] */ + +typedef struct D3D11_TEX2D_SRV1 + { + UINT MostDetailedMip; + UINT MipLevels; + UINT PlaneSlice; + } D3D11_TEX2D_SRV1; + +typedef struct D3D11_TEX2D_ARRAY_SRV1 + { + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; + } D3D11_TEX2D_ARRAY_SRV1; + +typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC1 + { + DXGI_FORMAT Format; + D3D11_SRV_DIMENSION ViewDimension; + union + { + D3D11_BUFFER_SRV Buffer; + D3D11_TEX1D_SRV Texture1D; + D3D11_TEX1D_ARRAY_SRV Texture1DArray; + D3D11_TEX2D_SRV1 Texture2D; + D3D11_TEX2D_ARRAY_SRV1 Texture2DArray; + D3D11_TEX2DMS_SRV Texture2DMS; + D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray; + D3D11_TEX3D_SRV Texture3D; + D3D11_TEXCUBE_SRV TextureCube; + D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray; + D3D11_BUFFEREX_SRV BufferEx; + } ; + } D3D11_SHADER_RESOURCE_VIEW_DESC1; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_SHADER_RESOURCE_VIEW_DESC1 : public D3D11_SHADER_RESOURCE_VIEW_DESC1 +{ + CD3D11_SHADER_RESOURCE_VIEW_DESC1() = default; + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1( const D3D11_SHADER_RESOURCE_VIEW_DESC1& o ) : + D3D11_SHADER_RESOURCE_VIEW_DESC1( o ) + {} + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1( + D3D11_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mostDetailedMip = 0, // FirstElement for BUFFER + UINT mipLevels = -1, // NumElements for BUFFER + UINT firstArraySlice = 0, // First2DArrayFace for TEXTURECUBEARRAY + UINT arraySize = -1, // NumCubes for TEXTURECUBEARRAY + UINT flags = 0, // BUFFEREX only + UINT planeSlice = 0 ) // Texture2D and Texture2DArray only + { + Format = format; + ViewDimension = viewDimension; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_BUFFER: + Buffer.FirstElement = mostDetailedMip; + Buffer.NumElements = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURE1D: + Texture1D.MostDetailedMip = mostDetailedMip; + Texture1D.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MostDetailedMip = mostDetailedMip; + Texture1DArray.MipLevels = mipLevels; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + case D3D11_SRV_DIMENSION_TEXTURE2D: + Texture2D.MostDetailedMip = mostDetailedMip; + Texture2D.MipLevels = mipLevels; + Texture2D.PlaneSlice = planeSlice; + break; + case D3D11_SRV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MostDetailedMip = mostDetailedMip; + Texture2DArray.MipLevels = mipLevels; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + Texture2DArray.PlaneSlice = planeSlice; + break; + case D3D11_SRV_DIMENSION_TEXTURE2DMS: + break; + case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY: + Texture2DMSArray.FirstArraySlice = firstArraySlice; + Texture2DMSArray.ArraySize = arraySize; + break; + case D3D11_SRV_DIMENSION_TEXTURE3D: + Texture3D.MostDetailedMip = mostDetailedMip; + Texture3D.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURECUBE: + TextureCube.MostDetailedMip = mostDetailedMip; + TextureCube.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY: + TextureCubeArray.MostDetailedMip = mostDetailedMip; + TextureCubeArray.MipLevels = mipLevels; + TextureCubeArray.First2DArrayFace = firstArraySlice; + TextureCubeArray.NumCubes = arraySize; + break; + case D3D11_SRV_DIMENSION_BUFFEREX: + BufferEx.FirstElement = mostDetailedMip; + BufferEx.NumElements = mipLevels; + BufferEx.Flags = flags; + break; + default: break; + } + } + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1( + _In_ ID3D11Buffer*, + DXGI_FORMAT format, + UINT firstElement, + UINT numElements, + UINT flags = 0 ) + { + Format = format; + ViewDimension = D3D11_SRV_DIMENSION_BUFFEREX; + BufferEx.FirstElement = firstElement; + BufferEx.NumElements = numElements; + BufferEx.Flags = flags; + } + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1( + _In_ ID3D11Texture1D* pTex1D, + D3D11_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mostDetailedMip = 0, + UINT mipLevels = -1, + UINT firstArraySlice = 0, + UINT arraySize = -1 ) + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == mipLevels || + ((UINT)-1 == arraySize && D3D11_SRV_DIMENSION_TEXTURE1DARRAY == viewDimension)) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_TEXTURE1D: + Texture1D.MostDetailedMip = mostDetailedMip; + Texture1D.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MostDetailedMip = mostDetailedMip; + Texture1DArray.MipLevels = mipLevels; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1( + _In_ ID3D11Texture2D* pTex2D, + D3D11_SRV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mostDetailedMip = 0, + UINT mipLevels = -1, + UINT firstArraySlice = 0, // First2DArrayFace for TEXTURECUBEARRAY + UINT arraySize = -1, // NumCubes for TEXTURECUBEARRAY + UINT planeSlice = 0 ) // PlaneSlice for TEXTURE2D or TEXTURE2DARRAY + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == mipLevels && + D3D11_SRV_DIMENSION_TEXTURE2DMS != viewDimension && + D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY != viewDimension) || + ((UINT)-1 == arraySize && + (D3D11_SRV_DIMENSION_TEXTURE2DARRAY == viewDimension || + D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY == viewDimension || + D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension))) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip; + if ((UINT)-1 == arraySize) + { + arraySize = TexDesc.ArraySize - firstArraySlice; + if (D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension) arraySize /= 6; + } + } + Format = format; + switch (viewDimension) + { + case D3D11_SRV_DIMENSION_TEXTURE2D: + Texture2D.MostDetailedMip = mostDetailedMip; + Texture2D.MipLevels = mipLevels; + Texture2D.PlaneSlice = planeSlice; + break; + case D3D11_SRV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MostDetailedMip = mostDetailedMip; + Texture2DArray.MipLevels = mipLevels; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + Texture2DArray.PlaneSlice = planeSlice; + break; + case D3D11_SRV_DIMENSION_TEXTURE2DMS: + break; + case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY: + Texture2DMSArray.FirstArraySlice = firstArraySlice; + Texture2DMSArray.ArraySize = arraySize; + break; + case D3D11_SRV_DIMENSION_TEXTURECUBE: + TextureCube.MostDetailedMip = mostDetailedMip; + TextureCube.MipLevels = mipLevels; + break; + case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY: + TextureCubeArray.MostDetailedMip = mostDetailedMip; + TextureCubeArray.MipLevels = mipLevels; + TextureCubeArray.First2DArrayFace = firstArraySlice; + TextureCubeArray.NumCubes = arraySize; + break; + default: break; + } + } + explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1( + _In_ ID3D11Texture3D* pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mostDetailedMip = 0, + UINT mipLevels = -1 ) + { + ViewDimension = D3D11_SRV_DIMENSION_TEXTURE3D; + if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == mipLevels) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip; + } + Format = format; + Texture3D.MostDetailedMip = mostDetailedMip; + Texture3D.MipLevels = mipLevels; + } + ~CD3D11_SHADER_RESOURCE_VIEW_DESC1() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0003_v0_0_s_ifspec; + +#ifndef __ID3D11ShaderResourceView1_INTERFACE_DEFINED__ +#define __ID3D11ShaderResourceView1_INTERFACE_DEFINED__ + +/* interface ID3D11ShaderResourceView1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11ShaderResourceView1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("91308b87-9040-411d-8c67-c39253ce3802") + ID3D11ShaderResourceView1 : public ID3D11ShaderResourceView + { + public: + virtual void STDMETHODCALLTYPE GetDesc1( + /* [annotation] */ + _Out_ D3D11_SHADER_RESOURCE_VIEW_DESC1 *pDesc1) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11ShaderResourceView1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11ShaderResourceView1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11ShaderResourceView1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11ShaderResourceView1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11ShaderResourceView1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11ShaderResourceView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11ShaderResourceView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11ShaderResourceView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11ShaderResourceView1 * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D11ShaderResourceView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11ShaderResourceView1 * This, + /* [annotation] */ + _Out_ D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11ShaderResourceView1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D11ShaderResourceView1 * This, + /* [annotation] */ + _Out_ D3D11_SHADER_RESOURCE_VIEW_DESC1 *pDesc1); + + END_INTERFACE + } ID3D11ShaderResourceView1Vtbl; + + interface ID3D11ShaderResourceView1 + { + CONST_VTBL struct ID3D11ShaderResourceView1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11ShaderResourceView1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11ShaderResourceView1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11ShaderResourceView1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11ShaderResourceView1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11ShaderResourceView1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11ShaderResourceView1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11ShaderResourceView1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11ShaderResourceView1_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D11ShaderResourceView1_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D11ShaderResourceView1_GetDesc1(This,pDesc1) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc1) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11ShaderResourceView1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_3_0000_0004 */ +/* [local] */ + +typedef struct D3D11_TEX2D_RTV1 + { + UINT MipSlice; + UINT PlaneSlice; + } D3D11_TEX2D_RTV1; + +typedef struct D3D11_TEX2D_ARRAY_RTV1 + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; + } D3D11_TEX2D_ARRAY_RTV1; + +typedef struct D3D11_RENDER_TARGET_VIEW_DESC1 + { + DXGI_FORMAT Format; + D3D11_RTV_DIMENSION ViewDimension; + union + { + D3D11_BUFFER_RTV Buffer; + D3D11_TEX1D_RTV Texture1D; + D3D11_TEX1D_ARRAY_RTV Texture1DArray; + D3D11_TEX2D_RTV1 Texture2D; + D3D11_TEX2D_ARRAY_RTV1 Texture2DArray; + D3D11_TEX2DMS_RTV Texture2DMS; + D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray; + D3D11_TEX3D_RTV Texture3D; + } ; + } D3D11_RENDER_TARGET_VIEW_DESC1; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_RENDER_TARGET_VIEW_DESC1 : public D3D11_RENDER_TARGET_VIEW_DESC1 +{ + CD3D11_RENDER_TARGET_VIEW_DESC1() = default; + explicit CD3D11_RENDER_TARGET_VIEW_DESC1( const D3D11_RENDER_TARGET_VIEW_DESC1& o ) : + D3D11_RENDER_TARGET_VIEW_DESC1( o ) + {} + explicit CD3D11_RENDER_TARGET_VIEW_DESC1( + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, // FirstElement for BUFFER + UINT firstArraySlice = 0, // NumElements for BUFFER, FirstWSlice for TEXTURE3D + UINT arraySize = -1, // WSize for TEXTURE3D + UINT planeSlice = 0 ) // PlaneSlice for TEXTURE2D and TEXTURE2DARRAY + { + Format = format; + ViewDimension = viewDimension; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_BUFFER: + Buffer.FirstElement = mipSlice; + Buffer.NumElements = firstArraySlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE1D: + Texture1D.MipSlice = mipSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MipSlice = mipSlice; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + case D3D11_RTV_DIMENSION_TEXTURE2D: + Texture2D.MipSlice = mipSlice; + Texture2D.PlaneSlice = planeSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MipSlice = mipSlice; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + Texture2DArray.PlaneSlice = planeSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE2DMS: + break; + case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY: + Texture2DMSArray.FirstArraySlice = firstArraySlice; + Texture2DMSArray.ArraySize = arraySize; + break; + case D3D11_RTV_DIMENSION_TEXTURE3D: + Texture3D.MipSlice = mipSlice; + Texture3D.FirstWSlice = firstArraySlice; + Texture3D.WSize = arraySize; + break; + default: break; + } + } + explicit CD3D11_RENDER_TARGET_VIEW_DESC1( + _In_ ID3D11Buffer*, + DXGI_FORMAT format, + UINT firstElement, + UINT numElements ) + { + Format = format; + ViewDimension = D3D11_RTV_DIMENSION_BUFFER; + Buffer.FirstElement = firstElement; + Buffer.NumElements = numElements; + } + explicit CD3D11_RENDER_TARGET_VIEW_DESC1( + _In_ ID3D11Texture1D* pTex1D, + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1 ) + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == arraySize && D3D11_RTV_DIMENSION_TEXTURE1DARRAY == viewDimension)) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE1D: + Texture1D.MipSlice = mipSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MipSlice = mipSlice; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_RENDER_TARGET_VIEW_DESC1( + _In_ ID3D11Texture2D* pTex2D, + D3D11_RTV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1, + UINT planeSlice = 0 ) + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == arraySize && + (D3D11_RTV_DIMENSION_TEXTURE2DARRAY == viewDimension || + D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY == viewDimension))) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_RTV_DIMENSION_TEXTURE2D: + Texture2D.MipSlice = mipSlice; + Texture2D.PlaneSlice = planeSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MipSlice = mipSlice; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + Texture2DArray.PlaneSlice = planeSlice; + break; + case D3D11_RTV_DIMENSION_TEXTURE2DMS: + break; + case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY: + Texture2DMSArray.FirstArraySlice = firstArraySlice; + Texture2DMSArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_RENDER_TARGET_VIEW_DESC1( + _In_ ID3D11Texture3D* pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstWSlice = 0, + UINT wSize = -1 ) + { + ViewDimension = D3D11_RTV_DIMENSION_TEXTURE3D; + if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == wSize) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == wSize) wSize = TexDesc.Depth - firstWSlice; + } + Format = format; + Texture3D.MipSlice = mipSlice; + Texture3D.FirstWSlice = firstWSlice; + Texture3D.WSize = wSize; + } + ~CD3D11_RENDER_TARGET_VIEW_DESC1() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0004_v0_0_s_ifspec; + +#ifndef __ID3D11RenderTargetView1_INTERFACE_DEFINED__ +#define __ID3D11RenderTargetView1_INTERFACE_DEFINED__ + +/* interface ID3D11RenderTargetView1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11RenderTargetView1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ffbe2e23-f011-418a-ac56-5ceed7c5b94b") + ID3D11RenderTargetView1 : public ID3D11RenderTargetView + { + public: + virtual void STDMETHODCALLTYPE GetDesc1( + /* [annotation] */ + _Out_ D3D11_RENDER_TARGET_VIEW_DESC1 *pDesc1) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11RenderTargetView1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11RenderTargetView1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11RenderTargetView1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11RenderTargetView1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11RenderTargetView1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11RenderTargetView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11RenderTargetView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11RenderTargetView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11RenderTargetView1 * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D11RenderTargetView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11RenderTargetView1 * This, + /* [annotation] */ + _Out_ D3D11_RENDER_TARGET_VIEW_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11RenderTargetView1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D11RenderTargetView1 * This, + /* [annotation] */ + _Out_ D3D11_RENDER_TARGET_VIEW_DESC1 *pDesc1); + + END_INTERFACE + } ID3D11RenderTargetView1Vtbl; + + interface ID3D11RenderTargetView1 + { + CONST_VTBL struct ID3D11RenderTargetView1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11RenderTargetView1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11RenderTargetView1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11RenderTargetView1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11RenderTargetView1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11RenderTargetView1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11RenderTargetView1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11RenderTargetView1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11RenderTargetView1_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D11RenderTargetView1_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D11RenderTargetView1_GetDesc1(This,pDesc1) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc1) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11RenderTargetView1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_3_0000_0005 */ +/* [local] */ + +typedef struct D3D11_TEX2D_UAV1 + { + UINT MipSlice; + UINT PlaneSlice; + } D3D11_TEX2D_UAV1; + +typedef struct D3D11_TEX2D_ARRAY_UAV1 + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; + } D3D11_TEX2D_ARRAY_UAV1; + +typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC1 + { + DXGI_FORMAT Format; + D3D11_UAV_DIMENSION ViewDimension; + union + { + D3D11_BUFFER_UAV Buffer; + D3D11_TEX1D_UAV Texture1D; + D3D11_TEX1D_ARRAY_UAV Texture1DArray; + D3D11_TEX2D_UAV1 Texture2D; + D3D11_TEX2D_ARRAY_UAV1 Texture2DArray; + D3D11_TEX3D_UAV Texture3D; + } ; + } D3D11_UNORDERED_ACCESS_VIEW_DESC1; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_UNORDERED_ACCESS_VIEW_DESC1 : public D3D11_UNORDERED_ACCESS_VIEW_DESC1 +{ + CD3D11_UNORDERED_ACCESS_VIEW_DESC1() = default; + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1( const D3D11_UNORDERED_ACCESS_VIEW_DESC1& o ) : + D3D11_UNORDERED_ACCESS_VIEW_DESC1( o ) + {} + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1( + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, // FirstElement for BUFFER + UINT firstArraySlice = 0, // NumElements for BUFFER, FirstWSlice for TEXTURE3D + UINT arraySize = -1, // WSize for TEXTURE3D + UINT flags = 0, // BUFFER only + UINT planeSlice = 0 ) // PlaneSlice for TEXTURE2D and TEXTURE2DARRAY + { + Format = format; + ViewDimension = viewDimension; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_BUFFER: + Buffer.FirstElement = mipSlice; + Buffer.NumElements = firstArraySlice; + Buffer.Flags = flags; + break; + case D3D11_UAV_DIMENSION_TEXTURE1D: + Texture1D.MipSlice = mipSlice; + break; + case D3D11_UAV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MipSlice = mipSlice; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + case D3D11_UAV_DIMENSION_TEXTURE2D: + Texture2D.MipSlice = mipSlice; + Texture2D.PlaneSlice = planeSlice; + break; + case D3D11_UAV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MipSlice = mipSlice; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + Texture2DArray.PlaneSlice = planeSlice; + break; + case D3D11_UAV_DIMENSION_TEXTURE3D: + Texture3D.MipSlice = mipSlice; + Texture3D.FirstWSlice = firstArraySlice; + Texture3D.WSize = arraySize; + break; + default: break; + } + } + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1( + _In_ ID3D11Buffer*, + DXGI_FORMAT format, + UINT firstElement, + UINT numElements, + UINT flags = 0 ) + { + Format = format; + ViewDimension = D3D11_UAV_DIMENSION_BUFFER; + Buffer.FirstElement = firstElement; + Buffer.NumElements = numElements; + Buffer.Flags = flags; + } + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1( + _In_ ID3D11Texture1D* pTex1D, + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1 ) + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == arraySize && D3D11_UAV_DIMENSION_TEXTURE1DARRAY == viewDimension)) + { + D3D11_TEXTURE1D_DESC TexDesc; + pTex1D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_TEXTURE1D: + Texture1D.MipSlice = mipSlice; + break; + case D3D11_UAV_DIMENSION_TEXTURE1DARRAY: + Texture1DArray.MipSlice = mipSlice; + Texture1DArray.FirstArraySlice = firstArraySlice; + Texture1DArray.ArraySize = arraySize; + break; + default: break; + } + } + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1( + _In_ ID3D11Texture2D* pTex2D, + D3D11_UAV_DIMENSION viewDimension, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstArraySlice = 0, + UINT arraySize = -1, + UINT planeSlice = 0 ) + { + ViewDimension = viewDimension; + if (DXGI_FORMAT_UNKNOWN == format || + ((UINT)-1 == arraySize && D3D11_UAV_DIMENSION_TEXTURE2DARRAY == viewDimension)) + { + D3D11_TEXTURE2D_DESC TexDesc; + pTex2D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice; + } + Format = format; + switch (viewDimension) + { + case D3D11_UAV_DIMENSION_TEXTURE2D: + Texture2D.MipSlice = mipSlice; + Texture2D.PlaneSlice = planeSlice; + break; + case D3D11_UAV_DIMENSION_TEXTURE2DARRAY: + Texture2DArray.MipSlice = mipSlice; + Texture2DArray.FirstArraySlice = firstArraySlice; + Texture2DArray.ArraySize = arraySize; + Texture2DArray.PlaneSlice = planeSlice; + break; + default: break; + } + } + explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1( + _In_ ID3D11Texture3D* pTex3D, + DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN, + UINT mipSlice = 0, + UINT firstWSlice = 0, + UINT wSize = -1 ) + { + ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D; + if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == wSize) + { + D3D11_TEXTURE3D_DESC TexDesc; + pTex3D->GetDesc( &TexDesc ); + if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format; + if ((UINT)-1 == wSize) wSize = TexDesc.Depth - firstWSlice; + } + Format = format; + Texture3D.MipSlice = mipSlice; + Texture3D.FirstWSlice = firstWSlice; + Texture3D.WSize = wSize; + } + ~CD3D11_UNORDERED_ACCESS_VIEW_DESC1() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0005_v0_0_s_ifspec; + +#ifndef __ID3D11UnorderedAccessView1_INTERFACE_DEFINED__ +#define __ID3D11UnorderedAccessView1_INTERFACE_DEFINED__ + +/* interface ID3D11UnorderedAccessView1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11UnorderedAccessView1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7b3b6153-a886-4544-ab37-6537c8500403") + ID3D11UnorderedAccessView1 : public ID3D11UnorderedAccessView + { + public: + virtual void STDMETHODCALLTYPE GetDesc1( + /* [annotation] */ + _Out_ D3D11_UNORDERED_ACCESS_VIEW_DESC1 *pDesc1) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11UnorderedAccessView1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11UnorderedAccessView1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11UnorderedAccessView1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11UnorderedAccessView1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11UnorderedAccessView1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11UnorderedAccessView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11UnorderedAccessView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11UnorderedAccessView1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11View, GetResource) + void ( STDMETHODCALLTYPE *GetResource )( + ID3D11UnorderedAccessView1 * This, + /* [annotation] */ + _Outptr_ ID3D11Resource **ppResource); + + DECLSPEC_XFGVIRT(ID3D11UnorderedAccessView, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11UnorderedAccessView1 * This, + /* [annotation] */ + _Out_ D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11UnorderedAccessView1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D11UnorderedAccessView1 * This, + /* [annotation] */ + _Out_ D3D11_UNORDERED_ACCESS_VIEW_DESC1 *pDesc1); + + END_INTERFACE + } ID3D11UnorderedAccessView1Vtbl; + + interface ID3D11UnorderedAccessView1 + { + CONST_VTBL struct ID3D11UnorderedAccessView1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11UnorderedAccessView1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11UnorderedAccessView1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11UnorderedAccessView1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11UnorderedAccessView1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11UnorderedAccessView1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11UnorderedAccessView1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11UnorderedAccessView1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11UnorderedAccessView1_GetResource(This,ppResource) \ + ( (This)->lpVtbl -> GetResource(This,ppResource) ) + + +#define ID3D11UnorderedAccessView1_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D11UnorderedAccessView1_GetDesc1(This,pDesc1) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc1) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11UnorderedAccessView1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_3_0000_0006 */ +/* [local] */ + +typedef struct D3D11_QUERY_DESC1 + { + D3D11_QUERY Query; + UINT MiscFlags; + D3D11_CONTEXT_TYPE ContextType; + } D3D11_QUERY_DESC1; + +#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus ) +} +struct CD3D11_QUERY_DESC1 : public D3D11_QUERY_DESC1 +{ + CD3D11_QUERY_DESC1() = default; + explicit CD3D11_QUERY_DESC1( const D3D11_QUERY_DESC1& o ) : + D3D11_QUERY_DESC1( o ) + {} + explicit CD3D11_QUERY_DESC1( + D3D11_QUERY query, + UINT miscFlags = 0, + D3D11_CONTEXT_TYPE contextType = D3D11_CONTEXT_TYPE_ALL ) + { + Query = query; + MiscFlags = miscFlags; + ContextType = contextType; + } + ~CD3D11_QUERY_DESC1() {} +}; +extern "C"{ +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0006_v0_0_s_ifspec; + +#ifndef __ID3D11Query1_INTERFACE_DEFINED__ +#define __ID3D11Query1_INTERFACE_DEFINED__ + +/* interface ID3D11Query1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Query1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("631b4766-36dc-461d-8db6-c47e13e60916") + ID3D11Query1 : public ID3D11Query + { + public: + virtual void STDMETHODCALLTYPE GetDesc1( + /* [annotation] */ + _Out_ D3D11_QUERY_DESC1 *pDesc1) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Query1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Query1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Query1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Query1 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Query1 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Query1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Query1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Query1 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Asynchronous, GetDataSize) + UINT ( STDMETHODCALLTYPE *GetDataSize )( + ID3D11Query1 * This); + + DECLSPEC_XFGVIRT(ID3D11Query, GetDesc) + void ( STDMETHODCALLTYPE *GetDesc )( + ID3D11Query1 * This, + /* [annotation] */ + _Out_ D3D11_QUERY_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D11Query1, GetDesc1) + void ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D11Query1 * This, + /* [annotation] */ + _Out_ D3D11_QUERY_DESC1 *pDesc1); + + END_INTERFACE + } ID3D11Query1Vtbl; + + interface ID3D11Query1 + { + CONST_VTBL struct ID3D11Query1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Query1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Query1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Query1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Query1_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Query1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Query1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Query1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Query1_GetDataSize(This) \ + ( (This)->lpVtbl -> GetDataSize(This) ) + + +#define ID3D11Query1_GetDesc(This,pDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pDesc) ) + + +#define ID3D11Query1_GetDesc1(This,pDesc1) \ + ( (This)->lpVtbl -> GetDesc1(This,pDesc1) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Query1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_3_0000_0007 */ +/* [local] */ + +typedef +enum D3D11_FENCE_FLAG + { + D3D11_FENCE_FLAG_NONE = 0, + D3D11_FENCE_FLAG_SHARED = 0x2, + D3D11_FENCE_FLAG_SHARED_CROSS_ADAPTER = 0x4, + D3D11_FENCE_FLAG_NON_MONITORED = 0x8 + } D3D11_FENCE_FLAG; + +DEFINE_ENUM_FLAG_OPERATORS(D3D11_FENCE_FLAG); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0007_v0_0_s_ifspec; + +#ifndef __ID3D11DeviceContext3_INTERFACE_DEFINED__ +#define __ID3D11DeviceContext3_INTERFACE_DEFINED__ + +/* interface ID3D11DeviceContext3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11DeviceContext3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b4e3c01d-e79e-4637-91b2-510e9f4c9b8f") + ID3D11DeviceContext3 : public ID3D11DeviceContext2 + { + public: + virtual void STDMETHODCALLTYPE Flush1( + D3D11_CONTEXT_TYPE ContextType, + /* [annotation] */ + _In_opt_ HANDLE hEvent) = 0; + + virtual void STDMETHODCALLTYPE SetHardwareProtectionState( + /* [annotation] */ + _In_ BOOL HwProtectionEnable) = 0; + + virtual void STDMETHODCALLTYPE GetHardwareProtectionState( + /* [annotation] */ + _Out_ BOOL *pHwProtectionEnable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11DeviceContext3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11DeviceContext3 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11DeviceContext3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11DeviceContext3 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetConstantBuffers) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetShaderResources) + void ( STDMETHODCALLTYPE *PSSetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetShader) + void ( STDMETHODCALLTYPE *PSSetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11PixelShader *pPixelShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetSamplers) + void ( STDMETHODCALLTYPE *PSSetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetShader) + void ( STDMETHODCALLTYPE *VSSetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11VertexShader *pVertexShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexed) + void ( STDMETHODCALLTYPE *DrawIndexed )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ UINT IndexCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Draw) + void ( STDMETHODCALLTYPE *Draw )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ UINT VertexCount, + /* [annotation] */ + _In_ UINT StartVertexLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D11_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_opt_ D3D11_MAPPED_SUBRESOURCE *pMappedResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetConstantBuffers) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetInputLayout) + void ( STDMETHODCALLTYPE *IASetInputLayout )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11InputLayout *pInputLayout); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppVertexBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pStrides, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11Buffer *pIndexBuffer, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT Offset); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ UINT IndexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ UINT VertexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetConstantBuffers) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetShader) + void ( STDMETHODCALLTYPE *GSSetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11GeometryShader *pShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ D3D11_PRIMITIVE_TOPOLOGY Topology); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetShaderResources) + void ( STDMETHODCALLTYPE *VSSetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetSamplers) + void ( STDMETHODCALLTYPE *VSSetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Begin) + void ( STDMETHODCALLTYPE *Begin )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, End) + void ( STDMETHODCALLTYPE *End )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync, + /* [annotation] */ + _Out_writes_bytes_opt_( DataSize ) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11Predicate *pPredicate, + /* [annotation] */ + _In_ BOOL PredicateValue); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetShaderResources) + void ( STDMETHODCALLTYPE *GSSetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetSamplers) + void ( STDMETHODCALLTYPE *GSSetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetRenderTargetsAndUnorderedAccessViews) + void ( STDMETHODCALLTYPE *OMSetRenderTargetsAndUnorderedAccessViews )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ UINT NumRTVs, + /* [annotation] */ + _In_reads_opt_(NumRTVs) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_ UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetBlendState) + void ( STDMETHODCALLTYPE *OMSetBlendState )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11BlendState *pBlendState, + /* [annotation] */ + _In_opt_ const FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _In_ UINT SampleMask); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetDepthStencilState) + void ( STDMETHODCALLTYPE *OMSetDepthStencilState )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilState *pDepthStencilState, + /* [annotation] */ + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppSOTargets, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawAuto) + void ( STDMETHODCALLTYPE *DrawAuto )( + ID3D11DeviceContext3 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexedInstancedIndirect) + void ( STDMETHODCALLTYPE *DrawIndexedInstancedIndirect )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawInstancedIndirect) + void ( STDMETHODCALLTYPE *DrawInstancedIndirect )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ UINT ThreadGroupCountX, + /* [annotation] */ + _In_ UINT ThreadGroupCountY, + /* [annotation] */ + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DispatchIndirect) + void ( STDMETHODCALLTYPE *DispatchIndirect )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetState) + void ( STDMETHODCALLTYPE *RSSetState )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11RasterizerState *pRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + /* [annotation] */ + _In_reads_opt_(NumViewports) const D3D11_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopySubresourceRegion) + void ( STDMETHODCALLTYPE *CopySubresourceRegion )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, UpdateSubresource) + void ( STDMETHODCALLTYPE *UpdateSubresource )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopyStructureCount) + void ( STDMETHODCALLTYPE *CopyStructureCount )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pDstBuffer, + /* [annotation] */ + _In_ UINT DstAlignedByteOffset, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pSrcView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11RenderTargetView *pRenderTargetView, + /* [annotation] */ + _In_ const FLOAT ColorRGBA[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const UINT Values[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const FLOAT Values[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_ UINT ClearFlags, + /* [annotation] */ + _In_ FLOAT Depth, + /* [annotation] */ + _In_ UINT8 Stencil); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GenerateMips) + void ( STDMETHODCALLTYPE *GenerateMips )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11ShaderResourceView *pShaderResourceView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SetResourceMinLOD) + void ( STDMETHODCALLTYPE *SetResourceMinLOD )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + FLOAT MinLOD); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetResourceMinLOD) + FLOAT ( STDMETHODCALLTYPE *GetResourceMinLOD )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ExecuteCommandList) + void ( STDMETHODCALLTYPE *ExecuteCommandList )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11CommandList *pCommandList, + BOOL RestoreContextState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetShaderResources) + void ( STDMETHODCALLTYPE *HSSetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetShader) + void ( STDMETHODCALLTYPE *HSSetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11HullShader *pHullShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetSamplers) + void ( STDMETHODCALLTYPE *HSSetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetConstantBuffers) + void ( STDMETHODCALLTYPE *HSSetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetShaderResources) + void ( STDMETHODCALLTYPE *DSSetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetShader) + void ( STDMETHODCALLTYPE *DSSetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11DomainShader *pDomainShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetSamplers) + void ( STDMETHODCALLTYPE *DSSetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetConstantBuffers) + void ( STDMETHODCALLTYPE *DSSetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetShaderResources) + void ( STDMETHODCALLTYPE *CSSetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetUnorderedAccessViews) + void ( STDMETHODCALLTYPE *CSSetUnorderedAccessViews )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetShader) + void ( STDMETHODCALLTYPE *CSSetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11ComputeShader *pComputeShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetSamplers) + void ( STDMETHODCALLTYPE *CSSetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetConstantBuffers) + void ( STDMETHODCALLTYPE *CSSetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetConstantBuffers) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetShaderResources) + void ( STDMETHODCALLTYPE *PSGetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetShader) + void ( STDMETHODCALLTYPE *PSGetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11PixelShader **ppPixelShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetSamplers) + void ( STDMETHODCALLTYPE *PSGetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetShader) + void ( STDMETHODCALLTYPE *VSGetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11VertexShader **ppVertexShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetConstantBuffers) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetInputLayout) + void ( STDMETHODCALLTYPE *IAGetInputLayout )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetVertexBuffers) + void ( STDMETHODCALLTYPE *IAGetVertexBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppVertexBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pStrides, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetIndexBuffer) + void ( STDMETHODCALLTYPE *IAGetIndexBuffer )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Buffer **pIndexBuffer, + /* [annotation] */ + _Out_opt_ DXGI_FORMAT *Format, + /* [annotation] */ + _Out_opt_ UINT *Offset); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetConstantBuffers) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetShader) + void ( STDMETHODCALLTYPE *GSGetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11GeometryShader **ppGeometryShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IAGetPrimitiveTopology )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Out_ D3D11_PRIMITIVE_TOPOLOGY *pTopology); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetShaderResources) + void ( STDMETHODCALLTYPE *VSGetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetSamplers) + void ( STDMETHODCALLTYPE *VSGetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetPredication) + void ( STDMETHODCALLTYPE *GetPredication )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Predicate **ppPredicate, + /* [annotation] */ + _Out_opt_ BOOL *pPredicateValue); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetShaderResources) + void ( STDMETHODCALLTYPE *GSGetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetSamplers) + void ( STDMETHODCALLTYPE *GSGetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetRenderTargets) + void ( STDMETHODCALLTYPE *OMGetRenderTargets )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetRenderTargetsAndUnorderedAccessViews) + void ( STDMETHODCALLTYPE *OMGetRenderTargetsAndUnorderedAccessViews )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumRTVs, + /* [annotation] */ + _Out_writes_opt_(NumRTVs) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetBlendState) + void ( STDMETHODCALLTYPE *OMGetBlendState )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11BlendState **ppBlendState, + /* [annotation] */ + _Out_opt_ FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _Out_opt_ UINT *pSampleMask); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetDepthStencilState) + void ( STDMETHODCALLTYPE *OMGetDepthStencilState )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilState **ppDepthStencilState, + /* [annotation] */ + _Out_opt_ UINT *pStencilRef); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SOGetTargets) + void ( STDMETHODCALLTYPE *SOGetTargets )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppSOTargets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetState) + void ( STDMETHODCALLTYPE *RSGetState )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetViewports) + void ( STDMETHODCALLTYPE *RSGetViewports )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumViewports, + /* [annotation] */ + _Out_writes_opt_(*pNumViewports) D3D11_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetScissorRects) + void ( STDMETHODCALLTYPE *RSGetScissorRects )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumRects, + /* [annotation] */ + _Out_writes_opt_(*pNumRects) D3D11_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetShaderResources) + void ( STDMETHODCALLTYPE *HSGetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetShader) + void ( STDMETHODCALLTYPE *HSGetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11HullShader **ppHullShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetSamplers) + void ( STDMETHODCALLTYPE *HSGetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetConstantBuffers) + void ( STDMETHODCALLTYPE *HSGetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetShaderResources) + void ( STDMETHODCALLTYPE *DSGetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetShader) + void ( STDMETHODCALLTYPE *DSGetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11DomainShader **ppDomainShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetSamplers) + void ( STDMETHODCALLTYPE *DSGetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetConstantBuffers) + void ( STDMETHODCALLTYPE *DSGetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetShaderResources) + void ( STDMETHODCALLTYPE *CSGetShaderResources )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetUnorderedAccessViews) + void ( STDMETHODCALLTYPE *CSGetUnorderedAccessViews )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetShader) + void ( STDMETHODCALLTYPE *CSGetShader )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11ComputeShader **ppComputeShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetSamplers) + void ( STDMETHODCALLTYPE *CSGetSamplers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetConstantBuffers) + void ( STDMETHODCALLTYPE *CSGetConstantBuffers )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D11DeviceContext3 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Flush) + void ( STDMETHODCALLTYPE *Flush )( + ID3D11DeviceContext3 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetType) + D3D11_DEVICE_CONTEXT_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D11DeviceContext3 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetContextFlags) + UINT ( STDMETHODCALLTYPE *GetContextFlags )( + ID3D11DeviceContext3 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, FinishCommandList) + HRESULT ( STDMETHODCALLTYPE *FinishCommandList )( + ID3D11DeviceContext3 * This, + BOOL RestoreDeferredContextState, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11CommandList **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CopySubresourceRegion1) + void ( STDMETHODCALLTYPE *CopySubresourceRegion1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox, + /* [annotation] */ + _In_ UINT CopyFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, UpdateSubresource1) + void ( STDMETHODCALLTYPE *UpdateSubresource1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch, + /* [annotation] */ + _In_ UINT CopyFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardView) + void ( STDMETHODCALLTYPE *DiscardView )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11View *pResourceView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, VSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, HSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *HSSetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *DSSetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, GSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, PSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *CSSetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, VSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, HSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *HSGetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *DSGetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, GSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, PSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *CSGetConstantBuffers1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, SwapDeviceContextState) + void ( STDMETHODCALLTYPE *SwapDeviceContextState )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3DDeviceContextState *pState, + /* [annotation] */ + _Outptr_opt_ ID3DDeviceContextState **ppPreviousState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, ClearView) + void ( STDMETHODCALLTYPE *ClearView )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11View *pView, + /* [annotation] */ + _In_ const FLOAT Color[ 4 ], + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRect, + UINT NumRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardView1) + void ( STDMETHODCALLTYPE *DiscardView1 )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11View *pResourceView, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects, + UINT NumRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, UpdateTileMappings) + HRESULT ( STDMETHODCALLTYPE *UpdateTileMappings )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _In_ UINT NumTiledResourceRegions, + /* [annotation] */ + _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILED_RESOURCE_COORDINATE *pTiledResourceRegionStartCoordinates, + /* [annotation] */ + _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILE_REGION_SIZE *pTiledResourceRegionSizes, + /* [annotation] */ + _In_opt_ ID3D11Buffer *pTilePool, + /* [annotation] */ + _In_ UINT NumRanges, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pRangeFlags, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pTilePoolStartOffsets, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, CopyTileMappings) + HRESULT ( STDMETHODCALLTYPE *CopyTileMappings )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDestTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestRegionStartCoordinate, + /* [annotation] */ + _In_ ID3D11Resource *pSourceTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pSourceRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize, + /* [annotation] */ + _In_ ID3D11Buffer *pBuffer, + /* [annotation] */ + _In_ UINT64 BufferStartOffsetInBytes, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, UpdateTiles) + void ( STDMETHODCALLTYPE *UpdateTiles )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDestTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestTileRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pDestTileRegionSize, + /* [annotation] */ + _In_ const void *pSourceTileData, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, ResizeTilePool) + HRESULT ( STDMETHODCALLTYPE *ResizeTilePool )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pTilePool, + /* [annotation] */ + _In_ UINT64 NewSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, TiledResourceBarrier) + void ( STDMETHODCALLTYPE *TiledResourceBarrier )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessBeforeBarrier, + /* [annotation] */ + _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessAfterBarrier); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, IsAnnotationEnabled) + BOOL ( STDMETHODCALLTYPE *IsAnnotationEnabled )( + ID3D11DeviceContext3 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, SetMarkerInt) + void ( STDMETHODCALLTYPE *SetMarkerInt )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ LPCWSTR pLabel, + INT Data); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, BeginEventInt) + void ( STDMETHODCALLTYPE *BeginEventInt )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ LPCWSTR pLabel, + INT Data); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D11DeviceContext3 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext3, Flush1) + void ( STDMETHODCALLTYPE *Flush1 )( + ID3D11DeviceContext3 * This, + D3D11_CONTEXT_TYPE ContextType, + /* [annotation] */ + _In_opt_ HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext3, SetHardwareProtectionState) + void ( STDMETHODCALLTYPE *SetHardwareProtectionState )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _In_ BOOL HwProtectionEnable); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext3, GetHardwareProtectionState) + void ( STDMETHODCALLTYPE *GetHardwareProtectionState )( + ID3D11DeviceContext3 * This, + /* [annotation] */ + _Out_ BOOL *pHwProtectionEnable); + + END_INTERFACE + } ID3D11DeviceContext3Vtbl; + + interface ID3D11DeviceContext3 + { + CONST_VTBL struct ID3D11DeviceContext3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11DeviceContext3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11DeviceContext3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11DeviceContext3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11DeviceContext3_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11DeviceContext3_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11DeviceContext3_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11DeviceContext3_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11DeviceContext3_VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext3_PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext3_DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) \ + ( (This)->lpVtbl -> DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) ) + +#define ID3D11DeviceContext3_Draw(This,VertexCount,StartVertexLocation) \ + ( (This)->lpVtbl -> Draw(This,VertexCount,StartVertexLocation) ) + +#define ID3D11DeviceContext3_Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) \ + ( (This)->lpVtbl -> Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) ) + +#define ID3D11DeviceContext3_Unmap(This,pResource,Subresource) \ + ( (This)->lpVtbl -> Unmap(This,pResource,Subresource) ) + +#define ID3D11DeviceContext3_PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_IASetInputLayout(This,pInputLayout) \ + ( (This)->lpVtbl -> IASetInputLayout(This,pInputLayout) ) + +#define ID3D11DeviceContext3_IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D11DeviceContext3_IASetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D11DeviceContext3_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D11DeviceContext3_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D11DeviceContext3_GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_GSSetShader(This,pShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> GSSetShader(This,pShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext3_IASetPrimitiveTopology(This,Topology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,Topology) ) + +#define ID3D11DeviceContext3_VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_Begin(This,pAsync) \ + ( (This)->lpVtbl -> Begin(This,pAsync) ) + +#define ID3D11DeviceContext3_End(This,pAsync) \ + ( (This)->lpVtbl -> End(This,pAsync) ) + +#define ID3D11DeviceContext3_GetData(This,pAsync,pData,DataSize,GetDataFlags) \ + ( (This)->lpVtbl -> GetData(This,pAsync,pData,DataSize,GetDataFlags) ) + +#define ID3D11DeviceContext3_SetPredication(This,pPredicate,PredicateValue) \ + ( (This)->lpVtbl -> SetPredication(This,pPredicate,PredicateValue) ) + +#define ID3D11DeviceContext3_GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) ) + +#define ID3D11DeviceContext3_OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \ + ( (This)->lpVtbl -> OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) ) + +#define ID3D11DeviceContext3_OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) \ + ( (This)->lpVtbl -> OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) ) + +#define ID3D11DeviceContext3_OMSetDepthStencilState(This,pDepthStencilState,StencilRef) \ + ( (This)->lpVtbl -> OMSetDepthStencilState(This,pDepthStencilState,StencilRef) ) + +#define ID3D11DeviceContext3_SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) \ + ( (This)->lpVtbl -> SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) ) + +#define ID3D11DeviceContext3_DrawAuto(This) \ + ( (This)->lpVtbl -> DrawAuto(This) ) + +#define ID3D11DeviceContext3_DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext3_DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext3_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D11DeviceContext3_DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext3_RSSetState(This,pRasterizerState) \ + ( (This)->lpVtbl -> RSSetState(This,pRasterizerState) ) + +#define ID3D11DeviceContext3_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D11DeviceContext3_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D11DeviceContext3_CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) ) + +#define ID3D11DeviceContext3_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D11DeviceContext3_UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D11DeviceContext3_CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) \ + ( (This)->lpVtbl -> CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) ) + +#define ID3D11DeviceContext3_ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) ) + +#define ID3D11DeviceContext3_ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) ) + +#define ID3D11DeviceContext3_ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) ) + +#define ID3D11DeviceContext3_ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) ) + +#define ID3D11DeviceContext3_GenerateMips(This,pShaderResourceView) \ + ( (This)->lpVtbl -> GenerateMips(This,pShaderResourceView) ) + +#define ID3D11DeviceContext3_SetResourceMinLOD(This,pResource,MinLOD) \ + ( (This)->lpVtbl -> SetResourceMinLOD(This,pResource,MinLOD) ) + +#define ID3D11DeviceContext3_GetResourceMinLOD(This,pResource) \ + ( (This)->lpVtbl -> GetResourceMinLOD(This,pResource) ) + +#define ID3D11DeviceContext3_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D11DeviceContext3_ExecuteCommandList(This,pCommandList,RestoreContextState) \ + ( (This)->lpVtbl -> ExecuteCommandList(This,pCommandList,RestoreContextState) ) + +#define ID3D11DeviceContext3_HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext3_HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext3_DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \ + ( (This)->lpVtbl -> CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) ) + +#define ID3D11DeviceContext3_CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext3_CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext3_PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext3_PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_IAGetInputLayout(This,ppInputLayout) \ + ( (This)->lpVtbl -> IAGetInputLayout(This,ppInputLayout) ) + +#define ID3D11DeviceContext3_IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D11DeviceContext3_IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D11DeviceContext3_GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext3_IAGetPrimitiveTopology(This,pTopology) \ + ( (This)->lpVtbl -> IAGetPrimitiveTopology(This,pTopology) ) + +#define ID3D11DeviceContext3_VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_GetPredication(This,ppPredicate,pPredicateValue) \ + ( (This)->lpVtbl -> GetPredication(This,ppPredicate,pPredicateValue) ) + +#define ID3D11DeviceContext3_GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) \ + ( (This)->lpVtbl -> OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) ) + +#define ID3D11DeviceContext3_OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) \ + ( (This)->lpVtbl -> OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) ) + +#define ID3D11DeviceContext3_OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) \ + ( (This)->lpVtbl -> OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) ) + +#define ID3D11DeviceContext3_OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) \ + ( (This)->lpVtbl -> OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) ) + +#define ID3D11DeviceContext3_SOGetTargets(This,NumBuffers,ppSOTargets) \ + ( (This)->lpVtbl -> SOGetTargets(This,NumBuffers,ppSOTargets) ) + +#define ID3D11DeviceContext3_RSGetState(This,ppRasterizerState) \ + ( (This)->lpVtbl -> RSGetState(This,ppRasterizerState) ) + +#define ID3D11DeviceContext3_RSGetViewports(This,pNumViewports,pViewports) \ + ( (This)->lpVtbl -> RSGetViewports(This,pNumViewports,pViewports) ) + +#define ID3D11DeviceContext3_RSGetScissorRects(This,pNumRects,pRects) \ + ( (This)->lpVtbl -> RSGetScissorRects(This,pNumRects,pRects) ) + +#define ID3D11DeviceContext3_HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext3_HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext3_DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext3_CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) \ + ( (This)->lpVtbl -> CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) ) + +#define ID3D11DeviceContext3_CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext3_CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext3_CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext3_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D11DeviceContext3_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + +#define ID3D11DeviceContext3_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + +#define ID3D11DeviceContext3_GetContextFlags(This) \ + ( (This)->lpVtbl -> GetContextFlags(This) ) + +#define ID3D11DeviceContext3_FinishCommandList(This,RestoreDeferredContextState,ppCommandList) \ + ( (This)->lpVtbl -> FinishCommandList(This,RestoreDeferredContextState,ppCommandList) ) + + +#define ID3D11DeviceContext3_CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) \ + ( (This)->lpVtbl -> CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) ) + +#define ID3D11DeviceContext3_UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) \ + ( (This)->lpVtbl -> UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) ) + +#define ID3D11DeviceContext3_DiscardResource(This,pResource) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource) ) + +#define ID3D11DeviceContext3_DiscardView(This,pResourceView) \ + ( (This)->lpVtbl -> DiscardView(This,pResourceView) ) + +#define ID3D11DeviceContext3_VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext3_SwapDeviceContextState(This,pState,ppPreviousState) \ + ( (This)->lpVtbl -> SwapDeviceContextState(This,pState,ppPreviousState) ) + +#define ID3D11DeviceContext3_ClearView(This,pView,Color,pRect,NumRects) \ + ( (This)->lpVtbl -> ClearView(This,pView,Color,pRect,NumRects) ) + +#define ID3D11DeviceContext3_DiscardView1(This,pResourceView,pRects,NumRects) \ + ( (This)->lpVtbl -> DiscardView1(This,pResourceView,pRects,NumRects) ) + + +#define ID3D11DeviceContext3_UpdateTileMappings(This,pTiledResource,NumTiledResourceRegions,pTiledResourceRegionStartCoordinates,pTiledResourceRegionSizes,pTilePool,NumRanges,pRangeFlags,pTilePoolStartOffsets,pRangeTileCounts,Flags) \ + ( (This)->lpVtbl -> UpdateTileMappings(This,pTiledResource,NumTiledResourceRegions,pTiledResourceRegionStartCoordinates,pTiledResourceRegionSizes,pTilePool,NumRanges,pRangeFlags,pTilePoolStartOffsets,pRangeTileCounts,Flags) ) + +#define ID3D11DeviceContext3_CopyTileMappings(This,pDestTiledResource,pDestRegionStartCoordinate,pSourceTiledResource,pSourceRegionStartCoordinate,pTileRegionSize,Flags) \ + ( (This)->lpVtbl -> CopyTileMappings(This,pDestTiledResource,pDestRegionStartCoordinate,pSourceTiledResource,pSourceRegionStartCoordinate,pTileRegionSize,Flags) ) + +#define ID3D11DeviceContext3_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D11DeviceContext3_UpdateTiles(This,pDestTiledResource,pDestTileRegionStartCoordinate,pDestTileRegionSize,pSourceTileData,Flags) \ + ( (This)->lpVtbl -> UpdateTiles(This,pDestTiledResource,pDestTileRegionStartCoordinate,pDestTileRegionSize,pSourceTileData,Flags) ) + +#define ID3D11DeviceContext3_ResizeTilePool(This,pTilePool,NewSizeInBytes) \ + ( (This)->lpVtbl -> ResizeTilePool(This,pTilePool,NewSizeInBytes) ) + +#define ID3D11DeviceContext3_TiledResourceBarrier(This,pTiledResourceOrViewAccessBeforeBarrier,pTiledResourceOrViewAccessAfterBarrier) \ + ( (This)->lpVtbl -> TiledResourceBarrier(This,pTiledResourceOrViewAccessBeforeBarrier,pTiledResourceOrViewAccessAfterBarrier) ) + +#define ID3D11DeviceContext3_IsAnnotationEnabled(This) \ + ( (This)->lpVtbl -> IsAnnotationEnabled(This) ) + +#define ID3D11DeviceContext3_SetMarkerInt(This,pLabel,Data) \ + ( (This)->lpVtbl -> SetMarkerInt(This,pLabel,Data) ) + +#define ID3D11DeviceContext3_BeginEventInt(This,pLabel,Data) \ + ( (This)->lpVtbl -> BeginEventInt(This,pLabel,Data) ) + +#define ID3D11DeviceContext3_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + + +#define ID3D11DeviceContext3_Flush1(This,ContextType,hEvent) \ + ( (This)->lpVtbl -> Flush1(This,ContextType,hEvent) ) + +#define ID3D11DeviceContext3_SetHardwareProtectionState(This,HwProtectionEnable) \ + ( (This)->lpVtbl -> SetHardwareProtectionState(This,HwProtectionEnable) ) + +#define ID3D11DeviceContext3_GetHardwareProtectionState(This,pHwProtectionEnable) \ + ( (This)->lpVtbl -> GetHardwareProtectionState(This,pHwProtectionEnable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11DeviceContext3_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11Fence_INTERFACE_DEFINED__ +#define __ID3D11Fence_INTERFACE_DEFINED__ + +/* interface ID3D11Fence */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Fence; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("affde9d1-1df7-4bb7-8a34-0f46251dab80") + ID3D11Fence : public ID3D11DeviceChild + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateSharedHandle( + /* [annotation] */ + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + /* [annotation] */ + _In_ DWORD dwAccess, + /* [annotation] */ + _In_opt_ LPCWSTR lpName, + /* [annotation] */ + _Out_ HANDLE *pHandle) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetCompletedValue( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetEventOnCompletion( + /* [annotation] */ + _In_ UINT64 Value, + /* [annotation] */ + _In_ HANDLE hEvent) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11FenceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Fence * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Fence * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Fence * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11Fence * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Fence * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Fence * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Fence * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Fence, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D11Fence * This, + /* [annotation] */ + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + /* [annotation] */ + _In_ DWORD dwAccess, + /* [annotation] */ + _In_opt_ LPCWSTR lpName, + /* [annotation] */ + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D11Fence, GetCompletedValue) + UINT64 ( STDMETHODCALLTYPE *GetCompletedValue )( + ID3D11Fence * This); + + DECLSPEC_XFGVIRT(ID3D11Fence, SetEventOnCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnCompletion )( + ID3D11Fence * This, + /* [annotation] */ + _In_ UINT64 Value, + /* [annotation] */ + _In_ HANDLE hEvent); + + END_INTERFACE + } ID3D11FenceVtbl; + + interface ID3D11Fence + { + CONST_VTBL struct ID3D11FenceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Fence_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Fence_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Fence_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Fence_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11Fence_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Fence_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Fence_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11Fence_CreateSharedHandle(This,pAttributes,dwAccess,lpName,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pAttributes,dwAccess,lpName,pHandle) ) + +#define ID3D11Fence_GetCompletedValue(This) \ + ( (This)->lpVtbl -> GetCompletedValue(This) ) + +#define ID3D11Fence_SetEventOnCompletion(This,Value,hEvent) \ + ( (This)->lpVtbl -> SetEventOnCompletion(This,Value,hEvent) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Fence_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11DeviceContext4_INTERFACE_DEFINED__ +#define __ID3D11DeviceContext4_INTERFACE_DEFINED__ + +/* interface ID3D11DeviceContext4 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11DeviceContext4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("917600da-f58c-4c33-98d8-3e15b390fa24") + ID3D11DeviceContext4 : public ID3D11DeviceContext3 + { + public: + virtual HRESULT STDMETHODCALLTYPE Signal( + /* [annotation] */ + _In_ ID3D11Fence *pFence, + /* [annotation] */ + _In_ UINT64 Value) = 0; + + virtual HRESULT STDMETHODCALLTYPE Wait( + /* [annotation] */ + _In_ ID3D11Fence *pFence, + /* [annotation] */ + _In_ UINT64 Value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11DeviceContext4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11DeviceContext4 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11DeviceContext4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11DeviceContext4 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetConstantBuffers) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetShaderResources) + void ( STDMETHODCALLTYPE *PSSetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetShader) + void ( STDMETHODCALLTYPE *PSSetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11PixelShader *pPixelShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetSamplers) + void ( STDMETHODCALLTYPE *PSSetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetShader) + void ( STDMETHODCALLTYPE *VSSetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11VertexShader *pVertexShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexed) + void ( STDMETHODCALLTYPE *DrawIndexed )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ UINT IndexCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Draw) + void ( STDMETHODCALLTYPE *Draw )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ UINT VertexCount, + /* [annotation] */ + _In_ UINT StartVertexLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource, + /* [annotation] */ + _In_ D3D11_MAP MapType, + /* [annotation] */ + _In_ UINT MapFlags, + /* [annotation] */ + _Out_opt_ D3D11_MAPPED_SUBRESOURCE *pMappedResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ UINT Subresource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSSetConstantBuffers) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetInputLayout) + void ( STDMETHODCALLTYPE *IASetInputLayout )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11InputLayout *pInputLayout); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppVertexBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pStrides, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11Buffer *pIndexBuffer, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT Offset); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ UINT IndexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartIndexLocation, + /* [annotation] */ + _In_ INT BaseVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ UINT VertexCountPerInstance, + /* [annotation] */ + _In_ UINT InstanceCount, + /* [annotation] */ + _In_ UINT StartVertexLocation, + /* [annotation] */ + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetConstantBuffers) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetShader) + void ( STDMETHODCALLTYPE *GSSetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11GeometryShader *pShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ D3D11_PRIMITIVE_TOPOLOGY Topology); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetShaderResources) + void ( STDMETHODCALLTYPE *VSSetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSSetSamplers) + void ( STDMETHODCALLTYPE *VSSetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Begin) + void ( STDMETHODCALLTYPE *Begin )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, End) + void ( STDMETHODCALLTYPE *End )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Asynchronous *pAsync, + /* [annotation] */ + _Out_writes_bytes_opt_( DataSize ) void *pData, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ UINT GetDataFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11Predicate *pPredicate, + /* [annotation] */ + _In_ BOOL PredicateValue); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetShaderResources) + void ( STDMETHODCALLTYPE *GSSetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSSetSamplers) + void ( STDMETHODCALLTYPE *GSSetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetRenderTargetsAndUnorderedAccessViews) + void ( STDMETHODCALLTYPE *OMSetRenderTargetsAndUnorderedAccessViews )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ UINT NumRTVs, + /* [annotation] */ + _In_reads_opt_(NumRTVs) ID3D11RenderTargetView *const *ppRenderTargetViews, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_ UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetBlendState) + void ( STDMETHODCALLTYPE *OMSetBlendState )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11BlendState *pBlendState, + /* [annotation] */ + _In_opt_ const FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _In_ UINT SampleMask); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMSetDepthStencilState) + void ( STDMETHODCALLTYPE *OMSetDepthStencilState )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11DepthStencilState *pDepthStencilState, + /* [annotation] */ + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppSOTargets, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawAuto) + void ( STDMETHODCALLTYPE *DrawAuto )( + ID3D11DeviceContext4 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawIndexedInstancedIndirect) + void ( STDMETHODCALLTYPE *DrawIndexedInstancedIndirect )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DrawInstancedIndirect) + void ( STDMETHODCALLTYPE *DrawInstancedIndirect )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ UINT ThreadGroupCountX, + /* [annotation] */ + _In_ UINT ThreadGroupCountY, + /* [annotation] */ + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DispatchIndirect) + void ( STDMETHODCALLTYPE *DispatchIndirect )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pBufferForArgs, + /* [annotation] */ + _In_ UINT AlignedByteOffsetForArgs); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetState) + void ( STDMETHODCALLTYPE *RSSetState )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11RasterizerState *pRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + /* [annotation] */ + _In_reads_opt_(NumViewports) const D3D11_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopySubresourceRegion) + void ( STDMETHODCALLTYPE *CopySubresourceRegion )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, UpdateSubresource) + void ( STDMETHODCALLTYPE *UpdateSubresource )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CopyStructureCount) + void ( STDMETHODCALLTYPE *CopyStructureCount )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pDstBuffer, + /* [annotation] */ + _In_ UINT DstAlignedByteOffset, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pSrcView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11RenderTargetView *pRenderTargetView, + /* [annotation] */ + _In_ const FLOAT ColorRGBA[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const UINT Values[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11UnorderedAccessView *pUnorderedAccessView, + /* [annotation] */ + _In_ const FLOAT Values[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11DepthStencilView *pDepthStencilView, + /* [annotation] */ + _In_ UINT ClearFlags, + /* [annotation] */ + _In_ FLOAT Depth, + /* [annotation] */ + _In_ UINT8 Stencil); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GenerateMips) + void ( STDMETHODCALLTYPE *GenerateMips )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11ShaderResourceView *pShaderResourceView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SetResourceMinLOD) + void ( STDMETHODCALLTYPE *SetResourceMinLOD )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + FLOAT MinLOD); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetResourceMinLOD) + FLOAT ( STDMETHODCALLTYPE *GetResourceMinLOD )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ExecuteCommandList) + void ( STDMETHODCALLTYPE *ExecuteCommandList )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11CommandList *pCommandList, + BOOL RestoreContextState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetShaderResources) + void ( STDMETHODCALLTYPE *HSSetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetShader) + void ( STDMETHODCALLTYPE *HSSetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11HullShader *pHullShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetSamplers) + void ( STDMETHODCALLTYPE *HSSetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSSetConstantBuffers) + void ( STDMETHODCALLTYPE *HSSetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetShaderResources) + void ( STDMETHODCALLTYPE *DSSetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetShader) + void ( STDMETHODCALLTYPE *DSSetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11DomainShader *pDomainShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetSamplers) + void ( STDMETHODCALLTYPE *DSSetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSSetConstantBuffers) + void ( STDMETHODCALLTYPE *DSSetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetShaderResources) + void ( STDMETHODCALLTYPE *CSSetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _In_reads_opt_(NumViews) ID3D11ShaderResourceView *const *ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetUnorderedAccessViews) + void ( STDMETHODCALLTYPE *CSSetUnorderedAccessViews )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _In_reads_opt_(NumUAVs) ID3D11UnorderedAccessView *const *ppUnorderedAccessViews, + /* [annotation] */ + _In_reads_opt_(NumUAVs) const UINT *pUAVInitialCounts); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetShader) + void ( STDMETHODCALLTYPE *CSSetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11ComputeShader *pComputeShader, + /* [annotation] */ + _In_reads_opt_(NumClassInstances) ID3D11ClassInstance *const *ppClassInstances, + UINT NumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetSamplers) + void ( STDMETHODCALLTYPE *CSSetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _In_reads_opt_(NumSamplers) ID3D11SamplerState *const *ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSSetConstantBuffers) + void ( STDMETHODCALLTYPE *CSSetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetConstantBuffers) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetShaderResources) + void ( STDMETHODCALLTYPE *PSGetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetShader) + void ( STDMETHODCALLTYPE *PSGetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11PixelShader **ppPixelShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetSamplers) + void ( STDMETHODCALLTYPE *PSGetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetShader) + void ( STDMETHODCALLTYPE *VSGetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11VertexShader **ppVertexShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, PSGetConstantBuffers) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetInputLayout) + void ( STDMETHODCALLTYPE *IAGetInputLayout )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetVertexBuffers) + void ( STDMETHODCALLTYPE *IAGetVertexBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppVertexBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pStrides, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pOffsets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetIndexBuffer) + void ( STDMETHODCALLTYPE *IAGetIndexBuffer )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Buffer **pIndexBuffer, + /* [annotation] */ + _Out_opt_ DXGI_FORMAT *Format, + /* [annotation] */ + _Out_opt_ UINT *Offset); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetConstantBuffers) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetShader) + void ( STDMETHODCALLTYPE *GSGetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11GeometryShader **ppGeometryShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, IAGetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IAGetPrimitiveTopology )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Out_ D3D11_PRIMITIVE_TOPOLOGY *pTopology); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetShaderResources) + void ( STDMETHODCALLTYPE *VSGetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, VSGetSamplers) + void ( STDMETHODCALLTYPE *VSGetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetPredication) + void ( STDMETHODCALLTYPE *GetPredication )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11Predicate **ppPredicate, + /* [annotation] */ + _Out_opt_ BOOL *pPredicateValue); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetShaderResources) + void ( STDMETHODCALLTYPE *GSGetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GSGetSamplers) + void ( STDMETHODCALLTYPE *GSGetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetRenderTargets) + void ( STDMETHODCALLTYPE *OMGetRenderTargets )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetRenderTargetsAndUnorderedAccessViews) + void ( STDMETHODCALLTYPE *OMGetRenderTargetsAndUnorderedAccessViews )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ) UINT NumRTVs, + /* [annotation] */ + _Out_writes_opt_(NumRTVs) ID3D11RenderTargetView **ppRenderTargetViews, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilView **ppDepthStencilView, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - 1 ) UINT UAVStartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_PS_CS_UAV_REGISTER_COUNT - UAVStartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetBlendState) + void ( STDMETHODCALLTYPE *OMGetBlendState )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11BlendState **ppBlendState, + /* [annotation] */ + _Out_opt_ FLOAT BlendFactor[ 4 ], + /* [annotation] */ + _Out_opt_ UINT *pSampleMask); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, OMGetDepthStencilState) + void ( STDMETHODCALLTYPE *OMGetDepthStencilState )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_opt_result_maybenull_ ID3D11DepthStencilState **ppDepthStencilState, + /* [annotation] */ + _Out_opt_ UINT *pStencilRef); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, SOGetTargets) + void ( STDMETHODCALLTYPE *SOGetTargets )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppSOTargets); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetState) + void ( STDMETHODCALLTYPE *RSGetState )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetViewports) + void ( STDMETHODCALLTYPE *RSGetViewports )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumViewports, + /* [annotation] */ + _Out_writes_opt_(*pNumViewports) D3D11_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, RSGetScissorRects) + void ( STDMETHODCALLTYPE *RSGetScissorRects )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Inout_ /*_range(0, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE )*/ UINT *pNumRects, + /* [annotation] */ + _Out_writes_opt_(*pNumRects) D3D11_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetShaderResources) + void ( STDMETHODCALLTYPE *HSGetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetShader) + void ( STDMETHODCALLTYPE *HSGetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11HullShader **ppHullShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetSamplers) + void ( STDMETHODCALLTYPE *HSGetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, HSGetConstantBuffers) + void ( STDMETHODCALLTYPE *HSGetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetShaderResources) + void ( STDMETHODCALLTYPE *DSGetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetShader) + void ( STDMETHODCALLTYPE *DSGetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11DomainShader **ppDomainShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetSamplers) + void ( STDMETHODCALLTYPE *DSGetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, DSGetConstantBuffers) + void ( STDMETHODCALLTYPE *DSGetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetShaderResources) + void ( STDMETHODCALLTYPE *CSGetShaderResources )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot ) UINT NumViews, + /* [annotation] */ + _Out_writes_opt_(NumViews) ID3D11ShaderResourceView **ppShaderResourceViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetUnorderedAccessViews) + void ( STDMETHODCALLTYPE *CSGetUnorderedAccessViews )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_1_UAV_SLOT_COUNT - StartSlot ) UINT NumUAVs, + /* [annotation] */ + _Out_writes_opt_(NumUAVs) ID3D11UnorderedAccessView **ppUnorderedAccessViews); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetShader) + void ( STDMETHODCALLTYPE *CSGetShader )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Outptr_result_maybenull_ ID3D11ComputeShader **ppComputeShader, + /* [annotation] */ + _Out_writes_opt_(*pNumClassInstances) ID3D11ClassInstance **ppClassInstances, + /* [annotation] */ + _Inout_opt_ UINT *pNumClassInstances); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetSamplers) + void ( STDMETHODCALLTYPE *CSGetSamplers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot ) UINT NumSamplers, + /* [annotation] */ + _Out_writes_opt_(NumSamplers) ID3D11SamplerState **ppSamplers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, CSGetConstantBuffers) + void ( STDMETHODCALLTYPE *CSGetConstantBuffers )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D11DeviceContext4 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, Flush) + void ( STDMETHODCALLTYPE *Flush )( + ID3D11DeviceContext4 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetType) + D3D11_DEVICE_CONTEXT_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D11DeviceContext4 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, GetContextFlags) + UINT ( STDMETHODCALLTYPE *GetContextFlags )( + ID3D11DeviceContext4 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext, FinishCommandList) + HRESULT ( STDMETHODCALLTYPE *FinishCommandList )( + ID3D11DeviceContext4 * This, + BOOL RestoreDeferredContextState, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11CommandList **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CopySubresourceRegion1) + void ( STDMETHODCALLTYPE *CopySubresourceRegion1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_ UINT DstX, + /* [annotation] */ + _In_ UINT DstY, + /* [annotation] */ + _In_ UINT DstZ, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox, + /* [annotation] */ + _In_ UINT CopyFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, UpdateSubresource1) + void ( STDMETHODCALLTYPE *UpdateSubresource1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch, + /* [annotation] */ + _In_ UINT CopyFlags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardView) + void ( STDMETHODCALLTYPE *DiscardView )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11View *pResourceView); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, VSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *VSSetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, HSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *HSSetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *DSSetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, GSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *GSSetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, PSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *PSSetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CSSetConstantBuffers1) + void ( STDMETHODCALLTYPE *CSSetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) ID3D11Buffer *const *ppConstantBuffers, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pFirstConstant, + /* [annotation] */ + _In_reads_opt_(NumBuffers) const UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, VSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *VSGetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, HSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *HSGetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *DSGetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, GSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *GSGetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, PSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *PSGetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, CSGetConstantBuffers1) + void ( STDMETHODCALLTYPE *CSGetConstantBuffers1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1 ) UINT StartSlot, + /* [annotation] */ + _In_range_( 0, D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot ) UINT NumBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) ID3D11Buffer **ppConstantBuffers, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pFirstConstant, + /* [annotation] */ + _Out_writes_opt_(NumBuffers) UINT *pNumConstants); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, SwapDeviceContextState) + void ( STDMETHODCALLTYPE *SwapDeviceContextState )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3DDeviceContextState *pState, + /* [annotation] */ + _Outptr_opt_ ID3DDeviceContextState **ppPreviousState); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, ClearView) + void ( STDMETHODCALLTYPE *ClearView )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11View *pView, + /* [annotation] */ + _In_ const FLOAT Color[ 4 ], + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRect, + UINT NumRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext1, DiscardView1) + void ( STDMETHODCALLTYPE *DiscardView1 )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11View *pResourceView, + /* [annotation] */ + _In_reads_opt_(NumRects) const D3D11_RECT *pRects, + UINT NumRects); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, UpdateTileMappings) + HRESULT ( STDMETHODCALLTYPE *UpdateTileMappings )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _In_ UINT NumTiledResourceRegions, + /* [annotation] */ + _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILED_RESOURCE_COORDINATE *pTiledResourceRegionStartCoordinates, + /* [annotation] */ + _In_reads_opt_(NumTiledResourceRegions) const D3D11_TILE_REGION_SIZE *pTiledResourceRegionSizes, + /* [annotation] */ + _In_opt_ ID3D11Buffer *pTilePool, + /* [annotation] */ + _In_ UINT NumRanges, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pRangeFlags, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pTilePoolStartOffsets, + /* [annotation] */ + _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, CopyTileMappings) + HRESULT ( STDMETHODCALLTYPE *CopyTileMappings )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDestTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestRegionStartCoordinate, + /* [annotation] */ + _In_ ID3D11Resource *pSourceTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pSourceRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pTileRegionSize, + /* [annotation] */ + _In_ ID3D11Buffer *pBuffer, + /* [annotation] */ + _In_ UINT64 BufferStartOffsetInBytes, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, UpdateTiles) + void ( STDMETHODCALLTYPE *UpdateTiles )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDestTiledResource, + /* [annotation] */ + _In_ const D3D11_TILED_RESOURCE_COORDINATE *pDestTileRegionStartCoordinate, + /* [annotation] */ + _In_ const D3D11_TILE_REGION_SIZE *pDestTileRegionSize, + /* [annotation] */ + _In_ const void *pSourceTileData, + /* [annotation] */ + _In_ UINT Flags); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, ResizeTilePool) + HRESULT ( STDMETHODCALLTYPE *ResizeTilePool )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Buffer *pTilePool, + /* [annotation] */ + _In_ UINT64 NewSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, TiledResourceBarrier) + void ( STDMETHODCALLTYPE *TiledResourceBarrier )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessBeforeBarrier, + /* [annotation] */ + _In_opt_ ID3D11DeviceChild *pTiledResourceOrViewAccessAfterBarrier); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, IsAnnotationEnabled) + BOOL ( STDMETHODCALLTYPE *IsAnnotationEnabled )( + ID3D11DeviceContext4 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, SetMarkerInt) + void ( STDMETHODCALLTYPE *SetMarkerInt )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ LPCWSTR pLabel, + INT Data); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, BeginEventInt) + void ( STDMETHODCALLTYPE *BeginEventInt )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ LPCWSTR pLabel, + INT Data); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext2, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D11DeviceContext4 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext3, Flush1) + void ( STDMETHODCALLTYPE *Flush1 )( + ID3D11DeviceContext4 * This, + D3D11_CONTEXT_TYPE ContextType, + /* [annotation] */ + _In_opt_ HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext3, SetHardwareProtectionState) + void ( STDMETHODCALLTYPE *SetHardwareProtectionState )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ BOOL HwProtectionEnable); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext3, GetHardwareProtectionState) + void ( STDMETHODCALLTYPE *GetHardwareProtectionState )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _Out_ BOOL *pHwProtectionEnable); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext4, Signal) + HRESULT ( STDMETHODCALLTYPE *Signal )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Fence *pFence, + /* [annotation] */ + _In_ UINT64 Value); + + DECLSPEC_XFGVIRT(ID3D11DeviceContext4, Wait) + HRESULT ( STDMETHODCALLTYPE *Wait )( + ID3D11DeviceContext4 * This, + /* [annotation] */ + _In_ ID3D11Fence *pFence, + /* [annotation] */ + _In_ UINT64 Value); + + END_INTERFACE + } ID3D11DeviceContext4Vtbl; + + interface ID3D11DeviceContext4 + { + CONST_VTBL struct ID3D11DeviceContext4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11DeviceContext4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11DeviceContext4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11DeviceContext4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11DeviceContext4_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11DeviceContext4_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11DeviceContext4_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11DeviceContext4_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11DeviceContext4_VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> PSSetShader(This,pPixelShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext4_PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> VSSetShader(This,pVertexShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext4_DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) \ + ( (This)->lpVtbl -> DrawIndexed(This,IndexCount,StartIndexLocation,BaseVertexLocation) ) + +#define ID3D11DeviceContext4_Draw(This,VertexCount,StartVertexLocation) \ + ( (This)->lpVtbl -> Draw(This,VertexCount,StartVertexLocation) ) + +#define ID3D11DeviceContext4_Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) \ + ( (This)->lpVtbl -> Map(This,pResource,Subresource,MapType,MapFlags,pMappedResource) ) + +#define ID3D11DeviceContext4_Unmap(This,pResource,Subresource) \ + ( (This)->lpVtbl -> Unmap(This,pResource,Subresource) ) + +#define ID3D11DeviceContext4_PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_IASetInputLayout(This,pInputLayout) \ + ( (This)->lpVtbl -> IASetInputLayout(This,pInputLayout) ) + +#define ID3D11DeviceContext4_IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D11DeviceContext4_IASetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D11DeviceContext4_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D11DeviceContext4_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D11DeviceContext4_GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_GSSetShader(This,pShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> GSSetShader(This,pShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext4_IASetPrimitiveTopology(This,Topology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,Topology) ) + +#define ID3D11DeviceContext4_VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_Begin(This,pAsync) \ + ( (This)->lpVtbl -> Begin(This,pAsync) ) + +#define ID3D11DeviceContext4_End(This,pAsync) \ + ( (This)->lpVtbl -> End(This,pAsync) ) + +#define ID3D11DeviceContext4_GetData(This,pAsync,pData,DataSize,GetDataFlags) \ + ( (This)->lpVtbl -> GetData(This,pAsync,pData,DataSize,GetDataFlags) ) + +#define ID3D11DeviceContext4_SetPredication(This,pPredicate,PredicateValue) \ + ( (This)->lpVtbl -> SetPredication(This,pPredicate,PredicateValue) ) + +#define ID3D11DeviceContext4_GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumViews,ppRenderTargetViews,pDepthStencilView) ) + +#define ID3D11DeviceContext4_OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \ + ( (This)->lpVtbl -> OMSetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,pDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) ) + +#define ID3D11DeviceContext4_OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) \ + ( (This)->lpVtbl -> OMSetBlendState(This,pBlendState,BlendFactor,SampleMask) ) + +#define ID3D11DeviceContext4_OMSetDepthStencilState(This,pDepthStencilState,StencilRef) \ + ( (This)->lpVtbl -> OMSetDepthStencilState(This,pDepthStencilState,StencilRef) ) + +#define ID3D11DeviceContext4_SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) \ + ( (This)->lpVtbl -> SOSetTargets(This,NumBuffers,ppSOTargets,pOffsets) ) + +#define ID3D11DeviceContext4_DrawAuto(This) \ + ( (This)->lpVtbl -> DrawAuto(This) ) + +#define ID3D11DeviceContext4_DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DrawIndexedInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext4_DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DrawInstancedIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext4_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D11DeviceContext4_DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) \ + ( (This)->lpVtbl -> DispatchIndirect(This,pBufferForArgs,AlignedByteOffsetForArgs) ) + +#define ID3D11DeviceContext4_RSSetState(This,pRasterizerState) \ + ( (This)->lpVtbl -> RSSetState(This,pRasterizerState) ) + +#define ID3D11DeviceContext4_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D11DeviceContext4_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D11DeviceContext4_CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> CopySubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox) ) + +#define ID3D11DeviceContext4_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D11DeviceContext4_UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> UpdateSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D11DeviceContext4_CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) \ + ( (This)->lpVtbl -> CopyStructureCount(This,pDstBuffer,DstAlignedByteOffset,pSrcView) ) + +#define ID3D11DeviceContext4_ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,pRenderTargetView,ColorRGBA) ) + +#define ID3D11DeviceContext4_ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,pUnorderedAccessView,Values) ) + +#define ID3D11DeviceContext4_ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,pUnorderedAccessView,Values) ) + +#define ID3D11DeviceContext4_ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,pDepthStencilView,ClearFlags,Depth,Stencil) ) + +#define ID3D11DeviceContext4_GenerateMips(This,pShaderResourceView) \ + ( (This)->lpVtbl -> GenerateMips(This,pShaderResourceView) ) + +#define ID3D11DeviceContext4_SetResourceMinLOD(This,pResource,MinLOD) \ + ( (This)->lpVtbl -> SetResourceMinLOD(This,pResource,MinLOD) ) + +#define ID3D11DeviceContext4_GetResourceMinLOD(This,pResource) \ + ( (This)->lpVtbl -> GetResourceMinLOD(This,pResource) ) + +#define ID3D11DeviceContext4_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D11DeviceContext4_ExecuteCommandList(This,pCommandList,RestoreContextState) \ + ( (This)->lpVtbl -> ExecuteCommandList(This,pCommandList,RestoreContextState) ) + +#define ID3D11DeviceContext4_HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> HSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> HSSetShader(This,pHullShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext4_HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> HSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> HSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> DSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> DSSetShader(This,pDomainShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext4_DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> DSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> DSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> CSSetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) \ + ( (This)->lpVtbl -> CSSetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews,pUAVInitialCounts) ) + +#define ID3D11DeviceContext4_CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) \ + ( (This)->lpVtbl -> CSSetShader(This,pComputeShader,ppClassInstances,NumClassInstances) ) + +#define ID3D11DeviceContext4_CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> CSSetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> CSSetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> VSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> PSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> PSGetShader(This,ppPixelShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext4_PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> PSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> VSGetShader(This,ppVertexShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext4_PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> PSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_IAGetInputLayout(This,ppInputLayout) \ + ( (This)->lpVtbl -> IAGetInputLayout(This,ppInputLayout) ) + +#define ID3D11DeviceContext4_IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) \ + ( (This)->lpVtbl -> IAGetVertexBuffers(This,StartSlot,NumBuffers,ppVertexBuffers,pStrides,pOffsets) ) + +#define ID3D11DeviceContext4_IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) \ + ( (This)->lpVtbl -> IAGetIndexBuffer(This,pIndexBuffer,Format,Offset) ) + +#define ID3D11DeviceContext4_GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> GSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> GSGetShader(This,ppGeometryShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext4_IAGetPrimitiveTopology(This,pTopology) \ + ( (This)->lpVtbl -> IAGetPrimitiveTopology(This,pTopology) ) + +#define ID3D11DeviceContext4_VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> VSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> VSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_GetPredication(This,ppPredicate,pPredicateValue) \ + ( (This)->lpVtbl -> GetPredication(This,ppPredicate,pPredicateValue) ) + +#define ID3D11DeviceContext4_GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> GSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> GSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) \ + ( (This)->lpVtbl -> OMGetRenderTargets(This,NumViews,ppRenderTargetViews,ppDepthStencilView) ) + +#define ID3D11DeviceContext4_OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) \ + ( (This)->lpVtbl -> OMGetRenderTargetsAndUnorderedAccessViews(This,NumRTVs,ppRenderTargetViews,ppDepthStencilView,UAVStartSlot,NumUAVs,ppUnorderedAccessViews) ) + +#define ID3D11DeviceContext4_OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) \ + ( (This)->lpVtbl -> OMGetBlendState(This,ppBlendState,BlendFactor,pSampleMask) ) + +#define ID3D11DeviceContext4_OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) \ + ( (This)->lpVtbl -> OMGetDepthStencilState(This,ppDepthStencilState,pStencilRef) ) + +#define ID3D11DeviceContext4_SOGetTargets(This,NumBuffers,ppSOTargets) \ + ( (This)->lpVtbl -> SOGetTargets(This,NumBuffers,ppSOTargets) ) + +#define ID3D11DeviceContext4_RSGetState(This,ppRasterizerState) \ + ( (This)->lpVtbl -> RSGetState(This,ppRasterizerState) ) + +#define ID3D11DeviceContext4_RSGetViewports(This,pNumViewports,pViewports) \ + ( (This)->lpVtbl -> RSGetViewports(This,pNumViewports,pViewports) ) + +#define ID3D11DeviceContext4_RSGetScissorRects(This,pNumRects,pRects) \ + ( (This)->lpVtbl -> RSGetScissorRects(This,pNumRects,pRects) ) + +#define ID3D11DeviceContext4_HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> HSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> HSGetShader(This,ppHullShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext4_HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> HSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> HSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> DSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> DSGetShader(This,ppDomainShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext4_DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> DSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> DSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) \ + ( (This)->lpVtbl -> CSGetShaderResources(This,StartSlot,NumViews,ppShaderResourceViews) ) + +#define ID3D11DeviceContext4_CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) \ + ( (This)->lpVtbl -> CSGetUnorderedAccessViews(This,StartSlot,NumUAVs,ppUnorderedAccessViews) ) + +#define ID3D11DeviceContext4_CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) \ + ( (This)->lpVtbl -> CSGetShader(This,ppComputeShader,ppClassInstances,pNumClassInstances) ) + +#define ID3D11DeviceContext4_CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) \ + ( (This)->lpVtbl -> CSGetSamplers(This,StartSlot,NumSamplers,ppSamplers) ) + +#define ID3D11DeviceContext4_CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) \ + ( (This)->lpVtbl -> CSGetConstantBuffers(This,StartSlot,NumBuffers,ppConstantBuffers) ) + +#define ID3D11DeviceContext4_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D11DeviceContext4_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + +#define ID3D11DeviceContext4_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + +#define ID3D11DeviceContext4_GetContextFlags(This) \ + ( (This)->lpVtbl -> GetContextFlags(This) ) + +#define ID3D11DeviceContext4_FinishCommandList(This,RestoreDeferredContextState,ppCommandList) \ + ( (This)->lpVtbl -> FinishCommandList(This,RestoreDeferredContextState,ppCommandList) ) + + +#define ID3D11DeviceContext4_CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) \ + ( (This)->lpVtbl -> CopySubresourceRegion1(This,pDstResource,DstSubresource,DstX,DstY,DstZ,pSrcResource,SrcSubresource,pSrcBox,CopyFlags) ) + +#define ID3D11DeviceContext4_UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) \ + ( (This)->lpVtbl -> UpdateSubresource1(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch,CopyFlags) ) + +#define ID3D11DeviceContext4_DiscardResource(This,pResource) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource) ) + +#define ID3D11DeviceContext4_DiscardView(This,pResourceView) \ + ( (This)->lpVtbl -> DiscardView(This,pResourceView) ) + +#define ID3D11DeviceContext4_VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> VSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> HSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> DSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> GSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> PSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> CSSetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> VSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> HSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> DSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> GSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> PSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) \ + ( (This)->lpVtbl -> CSGetConstantBuffers1(This,StartSlot,NumBuffers,ppConstantBuffers,pFirstConstant,pNumConstants) ) + +#define ID3D11DeviceContext4_SwapDeviceContextState(This,pState,ppPreviousState) \ + ( (This)->lpVtbl -> SwapDeviceContextState(This,pState,ppPreviousState) ) + +#define ID3D11DeviceContext4_ClearView(This,pView,Color,pRect,NumRects) \ + ( (This)->lpVtbl -> ClearView(This,pView,Color,pRect,NumRects) ) + +#define ID3D11DeviceContext4_DiscardView1(This,pResourceView,pRects,NumRects) \ + ( (This)->lpVtbl -> DiscardView1(This,pResourceView,pRects,NumRects) ) + + +#define ID3D11DeviceContext4_UpdateTileMappings(This,pTiledResource,NumTiledResourceRegions,pTiledResourceRegionStartCoordinates,pTiledResourceRegionSizes,pTilePool,NumRanges,pRangeFlags,pTilePoolStartOffsets,pRangeTileCounts,Flags) \ + ( (This)->lpVtbl -> UpdateTileMappings(This,pTiledResource,NumTiledResourceRegions,pTiledResourceRegionStartCoordinates,pTiledResourceRegionSizes,pTilePool,NumRanges,pRangeFlags,pTilePoolStartOffsets,pRangeTileCounts,Flags) ) + +#define ID3D11DeviceContext4_CopyTileMappings(This,pDestTiledResource,pDestRegionStartCoordinate,pSourceTiledResource,pSourceRegionStartCoordinate,pTileRegionSize,Flags) \ + ( (This)->lpVtbl -> CopyTileMappings(This,pDestTiledResource,pDestRegionStartCoordinate,pSourceTiledResource,pSourceRegionStartCoordinate,pTileRegionSize,Flags) ) + +#define ID3D11DeviceContext4_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D11DeviceContext4_UpdateTiles(This,pDestTiledResource,pDestTileRegionStartCoordinate,pDestTileRegionSize,pSourceTileData,Flags) \ + ( (This)->lpVtbl -> UpdateTiles(This,pDestTiledResource,pDestTileRegionStartCoordinate,pDestTileRegionSize,pSourceTileData,Flags) ) + +#define ID3D11DeviceContext4_ResizeTilePool(This,pTilePool,NewSizeInBytes) \ + ( (This)->lpVtbl -> ResizeTilePool(This,pTilePool,NewSizeInBytes) ) + +#define ID3D11DeviceContext4_TiledResourceBarrier(This,pTiledResourceOrViewAccessBeforeBarrier,pTiledResourceOrViewAccessAfterBarrier) \ + ( (This)->lpVtbl -> TiledResourceBarrier(This,pTiledResourceOrViewAccessBeforeBarrier,pTiledResourceOrViewAccessAfterBarrier) ) + +#define ID3D11DeviceContext4_IsAnnotationEnabled(This) \ + ( (This)->lpVtbl -> IsAnnotationEnabled(This) ) + +#define ID3D11DeviceContext4_SetMarkerInt(This,pLabel,Data) \ + ( (This)->lpVtbl -> SetMarkerInt(This,pLabel,Data) ) + +#define ID3D11DeviceContext4_BeginEventInt(This,pLabel,Data) \ + ( (This)->lpVtbl -> BeginEventInt(This,pLabel,Data) ) + +#define ID3D11DeviceContext4_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + + +#define ID3D11DeviceContext4_Flush1(This,ContextType,hEvent) \ + ( (This)->lpVtbl -> Flush1(This,ContextType,hEvent) ) + +#define ID3D11DeviceContext4_SetHardwareProtectionState(This,HwProtectionEnable) \ + ( (This)->lpVtbl -> SetHardwareProtectionState(This,HwProtectionEnable) ) + +#define ID3D11DeviceContext4_GetHardwareProtectionState(This,pHwProtectionEnable) \ + ( (This)->lpVtbl -> GetHardwareProtectionState(This,pHwProtectionEnable) ) + + +#define ID3D11DeviceContext4_Signal(This,pFence,Value) \ + ( (This)->lpVtbl -> Signal(This,pFence,Value) ) + +#define ID3D11DeviceContext4_Wait(This,pFence,Value) \ + ( (This)->lpVtbl -> Wait(This,pFence,Value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11DeviceContext4_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11Device3_INTERFACE_DEFINED__ +#define __ID3D11Device3_INTERFACE_DEFINED__ + +/* interface ID3D11Device3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Device3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A05C8C37-D2C6-4732-B3A0-9CE0B0DC9AE6") + ID3D11Device3 : public ID3D11Device2 + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateTexture2D1( + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC1 *pDesc1, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels * pDesc1->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D1 **ppTexture2D) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateTexture3D1( + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC1 *pDesc1, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D1 **ppTexture3D) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRasterizerState2( + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC2 *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState2 **ppRasterizerState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateShaderResourceView1( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView1 **ppSRView1) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateUnorderedAccessView1( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView1 **ppUAView1) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRenderTargetView1( + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView1 **ppRTView1) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateQuery1( + /* [annotation] */ + _In_ const D3D11_QUERY_DESC1 *pQueryDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query1 **ppQuery1) = 0; + + virtual void STDMETHODCALLTYPE GetImmediateContext3( + /* [annotation] */ + _Outptr_ ID3D11DeviceContext3 **ppImmediateContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDeferredContext3( + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext3 **ppDeferredContext) = 0; + + virtual void STDMETHODCALLTYPE WriteToSubresource( + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch) = 0; + + virtual void STDMETHODCALLTYPE ReadFromSubresource( + /* [annotation] */ + _Out_ void *pDstData, + /* [annotation] */ + _In_ UINT DstRowPitch, + /* [annotation] */ + _In_ UINT DstDepthPitch, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Device3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Device3 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Device3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Device3 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBuffer) + HRESULT ( STDMETHODCALLTYPE *CreateBuffer )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_BUFFER_DESC *pDesc, + /* [annotation] */ + _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Buffer **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture1D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE1D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture2D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture3D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateShaderResourceView) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateUnorderedAccessView) + HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRenderTargetView) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilView) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateInputLayout) + HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )( + ID3D11Device3 * This, + /* [annotation] */ + _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateVertexShader) + HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )( + ID3D11Device3 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShader) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )( + ID3D11Device3 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShaderWithStreamOutput) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )( + ID3D11Device3 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration, + /* [annotation] */ + _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries, + /* [annotation] */ + _In_reads_opt_(NumStrides) const UINT *pBufferStrides, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides, + /* [annotation] */ + _In_ UINT RasterizedStream, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePixelShader) + HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )( + ID3D11Device3 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateHullShader) + HRESULT ( STDMETHODCALLTYPE *CreateHullShader )( + ID3D11Device3 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11HullShader **ppHullShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDomainShader) + HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )( + ID3D11Device3 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateComputeShader) + HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )( + ID3D11Device3 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateClassLinkage) + HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )( + ID3D11Device3 * This, + /* [annotation] */ + _COM_Outptr_ ID3D11ClassLinkage **ppLinkage); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBlendState) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilState) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRasterizerState) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateSamplerState) + HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_SAMPLER_DESC *pSamplerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateQuery) + HRESULT ( STDMETHODCALLTYPE *CreateQuery )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pQueryDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query **ppQuery); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePredicate) + HRESULT ( STDMETHODCALLTYPE *CreatePredicate )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pPredicateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Predicate **ppPredicate); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateCounter) + HRESULT ( STDMETHODCALLTYPE *CreateCounter )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pCounterDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Counter **ppCounter); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDeferredContext) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )( + ID3D11Device3 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device, OpenSharedResource) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFormatSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFormatSupport); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckMultisampleQualityLevels) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounterInfo) + void ( STDMETHODCALLTYPE *CheckCounterInfo )( + ID3D11Device3 * This, + /* [annotation] */ + _Out_ D3D11_COUNTER_INFO *pCounterInfo); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounter) + HRESULT ( STDMETHODCALLTYPE *CheckCounter )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pDesc, + /* [annotation] */ + _Out_ D3D11_COUNTER_TYPE *pType, + /* [annotation] */ + _Out_ UINT *pActiveCounters, + /* [annotation] */ + _Out_writes_opt_(*pNameLength) LPSTR szName, + /* [annotation] */ + _Inout_opt_ UINT *pNameLength, + /* [annotation] */ + _Out_writes_opt_(*pUnitsLength) LPSTR szUnits, + /* [annotation] */ + _Inout_opt_ UINT *pUnitsLength, + /* [annotation] */ + _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription, + /* [annotation] */ + _Inout_opt_ UINT *pDescriptionLength); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D11Device3 * This, + D3D11_FEATURE Feature, + /* [annotation] */ + _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D11Device, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, GetFeatureLevel) + D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )( + ID3D11Device3 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetCreationFlags) + UINT ( STDMETHODCALLTYPE *GetCreationFlags )( + ID3D11Device3 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D11Device3 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetImmediateContext) + void ( STDMETHODCALLTYPE *GetImmediateContext )( + ID3D11Device3 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device, SetExceptionMode) + HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )( + ID3D11Device3 * This, + UINT RaiseFlags); + + DECLSPEC_XFGVIRT(ID3D11Device, GetExceptionMode) + UINT ( STDMETHODCALLTYPE *GetExceptionMode )( + ID3D11Device3 * This); + + DECLSPEC_XFGVIRT(ID3D11Device1, GetImmediateContext1) + void ( STDMETHODCALLTYPE *GetImmediateContext1 )( + ID3D11Device3 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext1 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateDeferredContext1) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )( + ID3D11Device3 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateBlendState1) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateRasterizerState1) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateDeviceContextState) + HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )( + ID3D11Device3 * This, + UINT Flags, + /* [annotation] */ + _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels, + UINT FeatureLevels, + UINT SDKVersion, + REFIID EmulatedInterface, + /* [annotation] */ + _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel, + /* [annotation] */ + _Out_opt_ ID3DDeviceContextState **ppContextState); + + DECLSPEC_XFGVIRT(ID3D11Device1, OpenSharedResource1) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device1, OpenSharedResourceByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ LPCWSTR lpName, + /* [annotation] */ + _In_ DWORD dwDesiredAccess, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device2, GetImmediateContext2) + void ( STDMETHODCALLTYPE *GetImmediateContext2 )( + ID3D11Device3 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext2 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device2, CreateDeferredContext2) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext2 )( + ID3D11Device3 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device2, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _Out_opt_ UINT *pNumTilesForEntireResource, + /* [annotation] */ + _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc, + /* [annotation] */ + _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + /* [annotation] */ + _Inout_opt_ UINT *pNumSubresourceTilings, + /* [annotation] */ + _In_ UINT FirstSubresourceTilingToGet, + /* [annotation] */ + _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D11Device2, CheckMultisampleQualityLevels1) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels1 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _In_ UINT Flags, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateTexture2D1) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D1 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC1 *pDesc1, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels * pDesc1->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D1 **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateTexture3D1) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D1 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC1 *pDesc1, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D1 **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateRasterizerState2) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState2 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC2 *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState2 **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateShaderResourceView1) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView1 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView1 **ppSRView1); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateUnorderedAccessView1) + HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView1 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView1 **ppUAView1); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateRenderTargetView1) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView1 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView1 **ppRTView1); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateQuery1) + HRESULT ( STDMETHODCALLTYPE *CreateQuery1 )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC1 *pQueryDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query1 **ppQuery1); + + DECLSPEC_XFGVIRT(ID3D11Device3, GetImmediateContext3) + void ( STDMETHODCALLTYPE *GetImmediateContext3 )( + ID3D11Device3 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext3 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateDeferredContext3) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext3 )( + ID3D11Device3 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext3 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device3, WriteToSubresource) + void ( STDMETHODCALLTYPE *WriteToSubresource )( + ID3D11Device3 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D11Device3, ReadFromSubresource) + void ( STDMETHODCALLTYPE *ReadFromSubresource )( + ID3D11Device3 * This, + /* [annotation] */ + _Out_ void *pDstData, + /* [annotation] */ + _In_ UINT DstRowPitch, + /* [annotation] */ + _In_ UINT DstDepthPitch, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox); + + END_INTERFACE + } ID3D11Device3Vtbl; + + interface ID3D11Device3 + { + CONST_VTBL struct ID3D11Device3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Device3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Device3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Device3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Device3_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \ + ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) ) + +#define ID3D11Device3_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \ + ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) ) + +#define ID3D11Device3_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) ) + +#define ID3D11Device3_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) ) + +#define ID3D11Device3_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) ) + +#define ID3D11Device3_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) ) + +#define ID3D11Device3_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) ) + +#define ID3D11Device3_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) ) + +#define ID3D11Device3_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \ + ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) ) + +#define ID3D11Device3_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \ + ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) ) + +#define ID3D11Device3_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device3_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device3_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \ + ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) ) + +#define ID3D11Device3_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \ + ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) ) + +#define ID3D11Device3_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \ + ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) ) + +#define ID3D11Device3_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \ + ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) ) + +#define ID3D11Device3_CreateClassLinkage(This,ppLinkage) \ + ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) ) + +#define ID3D11Device3_CreateBlendState(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device3_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \ + ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) ) + +#define ID3D11Device3_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device3_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \ + ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) ) + +#define ID3D11Device3_CreateQuery(This,pQueryDesc,ppQuery) \ + ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) ) + +#define ID3D11Device3_CreatePredicate(This,pPredicateDesc,ppPredicate) \ + ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) ) + +#define ID3D11Device3_CreateCounter(This,pCounterDesc,ppCounter) \ + ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) ) + +#define ID3D11Device3_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device3_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) ) + +#define ID3D11Device3_CheckFormatSupport(This,Format,pFormatSupport) \ + ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) ) + +#define ID3D11Device3_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) ) + +#define ID3D11Device3_CheckCounterInfo(This,pCounterInfo) \ + ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) ) + +#define ID3D11Device3_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \ + ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) ) + +#define ID3D11Device3_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D11Device3_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Device3_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Device3_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D11Device3_GetFeatureLevel(This) \ + ( (This)->lpVtbl -> GetFeatureLevel(This) ) + +#define ID3D11Device3_GetCreationFlags(This) \ + ( (This)->lpVtbl -> GetCreationFlags(This) ) + +#define ID3D11Device3_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D11Device3_GetImmediateContext(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) ) + +#define ID3D11Device3_SetExceptionMode(This,RaiseFlags) \ + ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) ) + +#define ID3D11Device3_GetExceptionMode(This) \ + ( (This)->lpVtbl -> GetExceptionMode(This) ) + + +#define ID3D11Device3_GetImmediateContext1(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) ) + +#define ID3D11Device3_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device3_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device3_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device3_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \ + ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) ) + +#define ID3D11Device3_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) ) + +#define ID3D11Device3_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) ) + + +#define ID3D11Device3_GetImmediateContext2(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext2(This,ppImmediateContext) ) + +#define ID3D11Device3_CreateDeferredContext2(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext2(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device3_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) + +#define ID3D11Device3_CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) ) + + +#define ID3D11Device3_CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) ) + +#define ID3D11Device3_CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) ) + +#define ID3D11Device3_CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device3_CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) \ + ( (This)->lpVtbl -> CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) ) + +#define ID3D11Device3_CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) ) + +#define ID3D11Device3_CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) \ + ( (This)->lpVtbl -> CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) ) + +#define ID3D11Device3_CreateQuery1(This,pQueryDesc1,ppQuery1) \ + ( (This)->lpVtbl -> CreateQuery1(This,pQueryDesc1,ppQuery1) ) + +#define ID3D11Device3_GetImmediateContext3(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext3(This,ppImmediateContext) ) + +#define ID3D11Device3_CreateDeferredContext3(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext3(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device3_WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D11Device3_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Device3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_3_0000_0011 */ +/* [local] */ + +DEFINE_GUID(IID_ID3D11Texture2D1,0x51218251,0x1E33,0x4617,0x9C,0xCB,0x4D,0x3A,0x43,0x67,0xE7,0xBB); +DEFINE_GUID(IID_ID3D11Texture3D1,0x0C711683,0x2853,0x4846,0x9B,0xB0,0xF3,0xE6,0x06,0x39,0xE4,0x6A); +DEFINE_GUID(IID_ID3D11RasterizerState2,0x6fbd02fb,0x209f,0x46c4,0xb0,0x59,0x2e,0xd1,0x55,0x86,0xa6,0xac); +DEFINE_GUID(IID_ID3D11ShaderResourceView1,0x91308b87,0x9040,0x411d,0x8c,0x67,0xc3,0x92,0x53,0xce,0x38,0x02); +DEFINE_GUID(IID_ID3D11RenderTargetView1,0xffbe2e23,0xf011,0x418a,0xac,0x56,0x5c,0xee,0xd7,0xc5,0xb9,0x4b); +DEFINE_GUID(IID_ID3D11UnorderedAccessView1,0x7b3b6153,0xa886,0x4544,0xab,0x37,0x65,0x37,0xc8,0x50,0x04,0x03); +DEFINE_GUID(IID_ID3D11Query1,0x631b4766,0x36dc,0x461d,0x8d,0xb6,0xc4,0x7e,0x13,0xe6,0x09,0x16); +DEFINE_GUID(IID_ID3D11DeviceContext3,0xb4e3c01d,0xe79e,0x4637,0x91,0xb2,0x51,0x0e,0x9f,0x4c,0x9b,0x8f); +DEFINE_GUID(IID_ID3D11Fence,0xaffde9d1,0x1df7,0x4bb7,0x8a,0x34,0x0f,0x46,0x25,0x1d,0xab,0x80); +DEFINE_GUID(IID_ID3D11DeviceContext4,0x917600da,0xf58c,0x4c33,0x98,0xd8,0x3e,0x15,0xb3,0x90,0xfa,0x24); +DEFINE_GUID(IID_ID3D11Device3,0xA05C8C37,0xD2C6,0x4732,0xB3,0xA0,0x9C,0xE0,0xB0,0xDC,0x9A,0xE6); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_3_0000_0011_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_3.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_3.idl new file mode 100644 index 0000000000000000000000000000000000000000..042fa18b771a108521a5f60c26711855f400f307 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_3.idl @@ -0,0 +1,1173 @@ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// D3D11.3 IDL +// +// Contains interface definitions for the D3D11.3 API. +// +// Copyright (C) Microsoft Corporation +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +import "oaidl.idl"; +import "ocidl.idl"; +import "dxgi1_3.idl"; +import "d3dcommon.idl"; + + +import "d3d11_2.idl"; // +cpp_quote( "#ifdef __cplusplus" ) +cpp_quote( "}" ) // extern C +cpp_quote( "#endif" ) +cpp_quote( "#include \"d3d11_2.h\" //") // +cpp_quote( "#ifdef __cplusplus" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +typedef enum D3D11_CONTEXT_TYPE +{ + D3D11_CONTEXT_TYPE_ALL = 0, + D3D11_CONTEXT_TYPE_3D = 1, + D3D11_CONTEXT_TYPE_COMPUTE = 2, + D3D11_CONTEXT_TYPE_COPY = 3, + D3D11_CONTEXT_TYPE_VIDEO = 4, +} D3D11_CONTEXT_TYPE; + +cpp_quote("#ifdef __cplusplus") +cpp_quote("enum D3D11_TEXTURE_LAYOUT : int") +cpp_quote("{") +cpp_quote("D3D11_TEXTURE_LAYOUT_UNDEFINED = 0,") +cpp_quote("D3D11_TEXTURE_LAYOUT_ROW_MAJOR = 1,") +cpp_quote("D3D11_TEXTURE_LAYOUT_64K_STANDARD_SWIZZLE = 2,") +cpp_quote("};") +cpp_quote("#else") +typedef enum D3D11_TEXTURE_LAYOUT +{ + D3D11_TEXTURE_LAYOUT_UNDEFINED = 0, + D3D11_TEXTURE_LAYOUT_ROW_MAJOR = 1, + D3D11_TEXTURE_LAYOUT_64K_STANDARD_SWIZZLE = 2, +} D3D11_TEXTURE_LAYOUT; +cpp_quote("#endif") + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Texture2D +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_TEXTURE2D_DESC1 +{ + UINT Width; + UINT Height; + UINT MipLevels; + UINT ArraySize; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + D3D11_TEXTURE_LAYOUT TextureLayout; +} D3D11_TEXTURE2D_DESC1; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_TEXTURE2D_DESC1 : public D3D11_TEXTURE2D_DESC1" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_TEXTURE2D_DESC1() = default;" ) +cpp_quote( " explicit CD3D11_TEXTURE2D_DESC1( const D3D11_TEXTURE2D_DESC1& o ) :" ) +cpp_quote( " D3D11_TEXTURE2D_DESC1( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_TEXTURE2D_DESC1(" ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT width," ) +cpp_quote( " UINT height," ) +cpp_quote( " UINT arraySize = 1," ) +cpp_quote( " UINT mipLevels = 0," ) +cpp_quote( " UINT bindFlags = D3D11_BIND_SHADER_RESOURCE," ) +cpp_quote( " D3D11_USAGE usage = D3D11_USAGE_DEFAULT," ) +cpp_quote( " UINT cpuaccessFlags = 0," ) +cpp_quote( " UINT sampleCount = 1," ) +cpp_quote( " UINT sampleQuality = 0," ) +cpp_quote( " UINT miscFlags = 0," ) +cpp_quote( " D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED)" ) +cpp_quote( " {" ) +cpp_quote( " Width = width;" ) +cpp_quote( " Height = height;" ) +cpp_quote( " MipLevels = mipLevels;" ) +cpp_quote( " ArraySize = arraySize;" ) +cpp_quote( " Format = format;" ) +cpp_quote( " SampleDesc.Count = sampleCount;" ) +cpp_quote( " SampleDesc.Quality = sampleQuality;" ) +cpp_quote( " Usage = usage;" ) +cpp_quote( " BindFlags = bindFlags;" ) +cpp_quote( " CPUAccessFlags = cpuaccessFlags;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " TextureLayout = textureLayout;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_TEXTURE2D_DESC1(" ) +cpp_quote( " const D3D11_TEXTURE2D_DESC &desc," ) +cpp_quote( " D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED)" ) +cpp_quote( " {" ) +cpp_quote( " Width = desc.Width;" ) +cpp_quote( " Height = desc.Height;" ) +cpp_quote( " MipLevels = desc.MipLevels;" ) +cpp_quote( " ArraySize = desc.ArraySize;" ) +cpp_quote( " Format = desc.Format;" ) +cpp_quote( " SampleDesc.Count = desc.SampleDesc.Count;" ) +cpp_quote( " SampleDesc.Quality = desc. SampleDesc.Quality;" ) +cpp_quote( " Usage = desc.Usage;" ) +cpp_quote( " BindFlags = desc.BindFlags;" ) +cpp_quote( " CPUAccessFlags = desc.CPUAccessFlags;" ) +cpp_quote( " MiscFlags = desc.MiscFlags;" ) +cpp_quote( " TextureLayout = textureLayout;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_TEXTURE2D_DESC1() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + + +[ uuid( 51218251-1E33-4617-9CCB-4D3A4367E7BB ), object, local, pointer_default( unique ) ] +interface ID3D11Texture2D1 + : ID3D11Texture2D +{ + void GetDesc1( [annotation("_Out_")] D3D11_TEXTURE2D_DESC1* pDesc ); +}; + + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Texture3D +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_TEXTURE3D_DESC1 +{ + UINT Width; + UINT Height; + UINT Depth; + UINT MipLevels; + DXGI_FORMAT Format; + D3D11_USAGE Usage; + UINT BindFlags; + UINT CPUAccessFlags; + UINT MiscFlags; + D3D11_TEXTURE_LAYOUT TextureLayout; +} D3D11_TEXTURE3D_DESC1; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_TEXTURE3D_DESC1 : public D3D11_TEXTURE3D_DESC1" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_TEXTURE3D_DESC1() = default;" ) +cpp_quote( " explicit CD3D11_TEXTURE3D_DESC1( const D3D11_TEXTURE3D_DESC1& o ) :" ) +cpp_quote( " D3D11_TEXTURE3D_DESC1( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_TEXTURE3D_DESC1(" ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT width," ) +cpp_quote( " UINT height," ) +cpp_quote( " UINT depth," ) +cpp_quote( " UINT mipLevels = 0," ) +cpp_quote( " UINT bindFlags = D3D11_BIND_SHADER_RESOURCE," ) +cpp_quote( " D3D11_USAGE usage = D3D11_USAGE_DEFAULT," ) +cpp_quote( " UINT cpuaccessFlags = 0," ) +cpp_quote( " UINT miscFlags = 0," ) +cpp_quote( " D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED)" ) +cpp_quote( " {" ) +cpp_quote( " Width = width;" ) +cpp_quote( " Height = height;" ) +cpp_quote( " Depth = depth;" ) +cpp_quote( " MipLevels = mipLevels;" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Usage = usage;" ) +cpp_quote( " BindFlags = bindFlags;" ) +cpp_quote( " CPUAccessFlags = cpuaccessFlags;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " TextureLayout = textureLayout;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_TEXTURE3D_DESC1(" ) +cpp_quote( " const D3D11_TEXTURE3D_DESC &desc," ) +cpp_quote( " D3D11_TEXTURE_LAYOUT textureLayout = D3D11_TEXTURE_LAYOUT_UNDEFINED)" ) +cpp_quote( " {" ) +cpp_quote( " Width = desc.Width;" ) +cpp_quote( " Height = desc.Height;" ) +cpp_quote( " Depth = desc.Depth;" ) +cpp_quote( " MipLevels = desc.MipLevels;" ) +cpp_quote( " Format = desc.Format;" ) +cpp_quote( " Usage = desc.Usage;" ) +cpp_quote( " BindFlags = desc.BindFlags;" ) +cpp_quote( " CPUAccessFlags = desc.CPUAccessFlags;" ) +cpp_quote( " MiscFlags = desc.MiscFlags;" ) +cpp_quote( " TextureLayout = textureLayout;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_TEXTURE3D_DESC1() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 0C711683-2853-4846-9BB0-F3E60639E46A ), object, local, pointer_default( unique ) ] +interface ID3D11Texture3D1 + : ID3D11Texture3D +{ + void GetDesc1( [annotation("_Out_")] D3D11_TEXTURE3D_DESC1* pDesc ); +}; + + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Rasterizer State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D11_CONSERVATIVE_RASTERIZATION_MODE +{ + D3D11_CONSERVATIVE_RASTERIZATION_MODE_OFF = 0, // Default + D3D11_CONSERVATIVE_RASTERIZATION_MODE_ON = 1, +} D3D11_CONSERVATIVE_RASTERIZATION_MODE; + +typedef struct D3D11_RASTERIZER_DESC2 +{ + D3D11_FILL_MODE FillMode; + D3D11_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + INT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL ScissorEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; + UINT ForcedSampleCount; + D3D11_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster; +} D3D11_RASTERIZER_DESC2; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_RASTERIZER_DESC2 : public D3D11_RASTERIZER_DESC2" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_RASTERIZER_DESC2() = default;" ) +cpp_quote( " explicit CD3D11_RASTERIZER_DESC2( const D3D11_RASTERIZER_DESC2& o ) :" ) +cpp_quote( " D3D11_RASTERIZER_DESC2( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_RASTERIZER_DESC2( CD3D11_DEFAULT )" ) +cpp_quote( " {" ) +cpp_quote( " FillMode = D3D11_FILL_SOLID;" ) +cpp_quote( " CullMode = D3D11_CULL_BACK;" ) +cpp_quote( " FrontCounterClockwise = FALSE;" ) +cpp_quote( " DepthBias = D3D11_DEFAULT_DEPTH_BIAS;" ) +cpp_quote( " DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;" ) +cpp_quote( " SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;" ) +cpp_quote( " DepthClipEnable = TRUE;" ) +cpp_quote( " ScissorEnable = FALSE;" ) +cpp_quote( " MultisampleEnable = FALSE;" ) +cpp_quote( " AntialiasedLineEnable = FALSE;" ) +cpp_quote( " ForcedSampleCount = 0;" ) +cpp_quote( " ConservativeRaster = D3D11_CONSERVATIVE_RASTERIZATION_MODE_OFF;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RASTERIZER_DESC2(" ) +cpp_quote( " D3D11_FILL_MODE fillMode," ) +cpp_quote( " D3D11_CULL_MODE cullMode," ) +cpp_quote( " BOOL frontCounterClockwise," ) +cpp_quote( " INT depthBias," ) +cpp_quote( " FLOAT depthBiasClamp," ) +cpp_quote( " FLOAT slopeScaledDepthBias," ) +cpp_quote( " BOOL depthClipEnable," ) +cpp_quote( " BOOL scissorEnable," ) +cpp_quote( " BOOL multisampleEnable," ) +cpp_quote( " BOOL antialiasedLineEnable, " ) +cpp_quote( " UINT forcedSampleCount, " ) +cpp_quote( " D3D11_CONSERVATIVE_RASTERIZATION_MODE conservativeRaster )" ) +cpp_quote( " {" ) +cpp_quote( " FillMode = fillMode;" ) +cpp_quote( " CullMode = cullMode;" ) +cpp_quote( " FrontCounterClockwise = frontCounterClockwise;" ) +cpp_quote( " DepthBias = depthBias;" ) +cpp_quote( " DepthBiasClamp = depthBiasClamp;" ) +cpp_quote( " SlopeScaledDepthBias = slopeScaledDepthBias;" ) +cpp_quote( " DepthClipEnable = depthClipEnable;" ) +cpp_quote( " ScissorEnable = scissorEnable;" ) +cpp_quote( " MultisampleEnable = multisampleEnable;" ) +cpp_quote( " AntialiasedLineEnable = antialiasedLineEnable;" ) +cpp_quote( " ForcedSampleCount = forcedSampleCount;" ) +cpp_quote( " ConservativeRaster = conservativeRaster;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_RASTERIZER_DESC2() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid(6fbd02fb-209f-46c4-b059-2ed15586a6ac), object, local, pointer_default( unique ) ] +interface ID3D11RasterizerState2 + : ID3D11RasterizerState1 +{ + void GetDesc2( [annotation("_Out_")] D3D11_RASTERIZER_DESC2* pDesc ); +}; + + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// ShaderResourceView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_TEX2D_SRV1 +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT PlaneSlice; +} D3D11_TEX2D_SRV1; + +typedef struct D3D11_TEX2D_ARRAY_SRV1 +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; +} D3D11_TEX2D_ARRAY_SRV1; + +typedef struct D3D11_SHADER_RESOURCE_VIEW_DESC1 +{ + DXGI_FORMAT Format; + D3D11_SRV_DIMENSION ViewDimension; + + union + { + D3D11_BUFFER_SRV Buffer; + D3D11_TEX1D_SRV Texture1D; + D3D11_TEX1D_ARRAY_SRV Texture1DArray; + D3D11_TEX2D_SRV1 Texture2D; + D3D11_TEX2D_ARRAY_SRV1 Texture2DArray; + D3D11_TEX2DMS_SRV Texture2DMS; + D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray; + D3D11_TEX3D_SRV Texture3D; + D3D11_TEXCUBE_SRV TextureCube; + D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray; + D3D11_BUFFEREX_SRV BufferEx; + }; +} D3D11_SHADER_RESOURCE_VIEW_DESC1; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_SHADER_RESOURCE_VIEW_DESC1 : public D3D11_SHADER_RESOURCE_VIEW_DESC1" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_SHADER_RESOURCE_VIEW_DESC1() = default;" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1( const D3D11_SHADER_RESOURCE_VIEW_DESC1& o ) :" ) +cpp_quote( " D3D11_SHADER_RESOURCE_VIEW_DESC1( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1(" ) +cpp_quote( " D3D11_SRV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mostDetailedMip = 0, // FirstElement for BUFFER" ) +cpp_quote( " UINT mipLevels = -1, // NumElements for BUFFER" ) +cpp_quote( " UINT firstArraySlice = 0, // First2DArrayFace for TEXTURECUBEARRAY" ) +cpp_quote( " UINT arraySize = -1, // NumCubes for TEXTURECUBEARRAY" ) +cpp_quote( " UINT flags = 0, // BUFFEREX only" ) +cpp_quote( " UINT planeSlice = 0 ) // Texture2D and Texture2DArray only" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_SRV_DIMENSION_BUFFER:" ) +cpp_quote( " Buffer.FirstElement = mostDetailedMip;" ) +cpp_quote( " Buffer.NumElements = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture1D.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture1DArray.MipLevels = mipLevels;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture2D.MipLevels = mipLevels;" ) +cpp_quote( " Texture2D.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture2DArray.MipLevels = mipLevels;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " Texture2DArray.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " Texture2DMSArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DMSArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE3D:" ) +cpp_quote( " Texture3D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture3D.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURECUBE:" ) +cpp_quote( " TextureCube.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " TextureCube.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:" ) +cpp_quote( " TextureCubeArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " TextureCubeArray.MipLevels = mipLevels;" ) +cpp_quote( " TextureCubeArray.First2DArrayFace = firstArraySlice;" ) +cpp_quote( " TextureCubeArray.NumCubes = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_BUFFEREX:" ) +cpp_quote( " BufferEx.FirstElement = mostDetailedMip;" ) +cpp_quote( " BufferEx.NumElements = mipLevels;" ) +cpp_quote( " BufferEx.Flags = flags;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Buffer*," ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT firstElement," ) +cpp_quote( " UINT numElements," ) +cpp_quote( " UINT flags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = D3D11_SRV_DIMENSION_BUFFEREX;" ) +cpp_quote( " BufferEx.FirstElement = firstElement;" ) +cpp_quote( " BufferEx.NumElements = numElements;" ) +cpp_quote( " BufferEx.Flags = flags;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Texture1D* pTex1D," ) +cpp_quote( " D3D11_SRV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mostDetailedMip = 0," ) +cpp_quote( " UINT mipLevels = -1," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == mipLevels ||" ) +cpp_quote( " ((UINT)-1 == arraySize && D3D11_SRV_DIMENSION_TEXTURE1DARRAY == viewDimension))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE1D_DESC TexDesc;" ) +cpp_quote( " pTex1D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture1D.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture1DArray.MipLevels = mipLevels;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Texture2D* pTex2D," ) +cpp_quote( " D3D11_SRV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mostDetailedMip = 0," ) +cpp_quote( " UINT mipLevels = -1," ) +cpp_quote( " UINT firstArraySlice = 0, // First2DArrayFace for TEXTURECUBEARRAY" ) +cpp_quote( " UINT arraySize = -1, // NumCubes for TEXTURECUBEARRAY" ) +cpp_quote( " UINT planeSlice = 0 ) // PlaneSlice for TEXTURE2D or TEXTURE2DARRAY" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || " ) +cpp_quote( " ((UINT)-1 == mipLevels &&" ) +cpp_quote( " D3D11_SRV_DIMENSION_TEXTURE2DMS != viewDimension &&" ) +cpp_quote( " D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY != viewDimension) ||" ) +cpp_quote( " ((UINT)-1 == arraySize &&" ) +cpp_quote( " (D3D11_SRV_DIMENSION_TEXTURE2DARRAY == viewDimension ||" ) +cpp_quote( " D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY == viewDimension ||" ) +cpp_quote( " D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension)))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE2D_DESC TexDesc;" ) +cpp_quote( " pTex2D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip;" ) +cpp_quote( " if ((UINT)-1 == arraySize)" ) +cpp_quote( " {" ) +cpp_quote( " arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " if (D3D11_SRV_DIMENSION_TEXTURECUBEARRAY == viewDimension) arraySize /= 6;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture2D.MipLevels = mipLevels;" ) +cpp_quote( " Texture2D.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture2DArray.MipLevels = mipLevels;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " Texture2DArray.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " Texture2DMSArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DMSArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURECUBE:" ) +cpp_quote( " TextureCube.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " TextureCube.MipLevels = mipLevels;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_SRV_DIMENSION_TEXTURECUBEARRAY:" ) +cpp_quote( " TextureCubeArray.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " TextureCubeArray.MipLevels = mipLevels;" ) +cpp_quote( " TextureCubeArray.First2DArrayFace = firstArraySlice;" ) +cpp_quote( " TextureCubeArray.NumCubes = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_SHADER_RESOURCE_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Texture3D* pTex3D," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mostDetailedMip = 0," ) +cpp_quote( " UINT mipLevels = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = D3D11_SRV_DIMENSION_TEXTURE3D;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == mipLevels)" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE3D_DESC TexDesc;" ) +cpp_quote( " pTex3D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == mipLevels) mipLevels = TexDesc.MipLevels - mostDetailedMip;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Texture3D.MostDetailedMip = mostDetailedMip;" ) +cpp_quote( " Texture3D.MipLevels = mipLevels;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_SHADER_RESOURCE_VIEW_DESC1() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 91308b87-9040-411d-8c67-c39253ce3802 ), object, local, pointer_default( unique ) ] +interface ID3D11ShaderResourceView1 + : ID3D11ShaderResourceView +{ + void GetDesc1( [annotation("_Out_")] D3D11_SHADER_RESOURCE_VIEW_DESC1* pDesc1 ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// RenderTargetView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_TEX2D_RTV1 +{ + UINT MipSlice; + UINT PlaneSlice; +} D3D11_TEX2D_RTV1; + +typedef struct D3D11_TEX2D_ARRAY_RTV1 +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; +} D3D11_TEX2D_ARRAY_RTV1; + +typedef struct D3D11_RENDER_TARGET_VIEW_DESC1 +{ + DXGI_FORMAT Format; + D3D11_RTV_DIMENSION ViewDimension; + + union + { + D3D11_BUFFER_RTV Buffer; + D3D11_TEX1D_RTV Texture1D; + D3D11_TEX1D_ARRAY_RTV Texture1DArray; + D3D11_TEX2D_RTV1 Texture2D; + D3D11_TEX2D_ARRAY_RTV1 Texture2DArray; + D3D11_TEX2DMS_RTV Texture2DMS; + D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray; + D3D11_TEX3D_RTV Texture3D; + }; +} D3D11_RENDER_TARGET_VIEW_DESC1; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_RENDER_TARGET_VIEW_DESC1 : public D3D11_RENDER_TARGET_VIEW_DESC1" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_RENDER_TARGET_VIEW_DESC1() = default;" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC1( const D3D11_RENDER_TARGET_VIEW_DESC1& o ) :" ) +cpp_quote( " D3D11_RENDER_TARGET_VIEW_DESC1( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC1(" ) +cpp_quote( " D3D11_RTV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0, // FirstElement for BUFFER" ) +cpp_quote( " UINT firstArraySlice = 0, // NumElements for BUFFER, FirstWSlice for TEXTURE3D" ) +cpp_quote( " UINT arraySize = -1, // WSize for TEXTURE3D" ) +cpp_quote( " UINT planeSlice = 0 ) // PlaneSlice for TEXTURE2D and TEXTURE2DARRAY" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_RTV_DIMENSION_BUFFER:" ) +cpp_quote( " Buffer.FirstElement = mipSlice;" ) +cpp_quote( " Buffer.NumElements = firstArraySlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MipSlice = mipSlice;" ) +cpp_quote( " Texture2D.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " Texture2DArray.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " Texture2DMSArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DMSArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE3D:" ) +cpp_quote( " Texture3D.MipSlice = mipSlice;" ) +cpp_quote( " Texture3D.FirstWSlice = firstArraySlice;" ) +cpp_quote( " Texture3D.WSize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Buffer*," ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT firstElement," ) +cpp_quote( " UINT numElements )" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = D3D11_RTV_DIMENSION_BUFFER;" ) +cpp_quote( " Buffer.FirstElement = firstElement;" ) +cpp_quote( " Buffer.NumElements = numElements;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Texture1D* pTex1D," ) +cpp_quote( " D3D11_RTV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format ||" ) +cpp_quote( " ((UINT)-1 == arraySize && D3D11_RTV_DIMENSION_TEXTURE1DARRAY == viewDimension))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE1D_DESC TexDesc;" ) +cpp_quote( " pTex1D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Texture2D* pTex2D," ) +cpp_quote( " D3D11_RTV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1," ) +cpp_quote( " UINT planeSlice = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || " ) +cpp_quote( " ((UINT)-1 == arraySize &&" ) +cpp_quote( " (D3D11_RTV_DIMENSION_TEXTURE2DARRAY == viewDimension ||" ) +cpp_quote( " D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY == viewDimension)))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE2D_DESC TexDesc;" ) +cpp_quote( " pTex2D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MipSlice = mipSlice;" ) +cpp_quote( " Texture2D.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " Texture2DArray.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DMS:" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY:" ) +cpp_quote( " Texture2DMSArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DMSArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_RENDER_TARGET_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Texture3D* pTex3D," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstWSlice = 0," ) +cpp_quote( " UINT wSize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = D3D11_RTV_DIMENSION_TEXTURE3D;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == wSize)" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE3D_DESC TexDesc;" ) +cpp_quote( " pTex3D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == wSize) wSize = TexDesc.Depth - firstWSlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Texture3D.MipSlice = mipSlice;" ) +cpp_quote( " Texture3D.FirstWSlice = firstWSlice;" ) +cpp_quote( " Texture3D.WSize = wSize;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_RENDER_TARGET_VIEW_DESC1() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( ffbe2e23-f011-418a-ac56-5ceed7c5b94b ), object, local, pointer_default( unique ) ] +interface ID3D11RenderTargetView1 + : ID3D11RenderTargetView +{ + void GetDesc1( [annotation("_Out_")] D3D11_RENDER_TARGET_VIEW_DESC1* pDesc1 ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// UnorderedAccessView +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_TEX2D_UAV1 +{ + UINT MipSlice; + UINT PlaneSlice; +} D3D11_TEX2D_UAV1; + +typedef struct D3D11_TEX2D_ARRAY_UAV1 +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; +} D3D11_TEX2D_ARRAY_UAV1; + +typedef struct D3D11_UNORDERED_ACCESS_VIEW_DESC1 +{ + DXGI_FORMAT Format; + D3D11_UAV_DIMENSION ViewDimension; + + union + { + D3D11_BUFFER_UAV Buffer; + D3D11_TEX1D_UAV Texture1D; + D3D11_TEX1D_ARRAY_UAV Texture1DArray; + D3D11_TEX2D_UAV1 Texture2D; + D3D11_TEX2D_ARRAY_UAV1 Texture2DArray; + D3D11_TEX3D_UAV Texture3D; + }; +} D3D11_UNORDERED_ACCESS_VIEW_DESC1; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_UNORDERED_ACCESS_VIEW_DESC1 : public D3D11_UNORDERED_ACCESS_VIEW_DESC1" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_UNORDERED_ACCESS_VIEW_DESC1() = default;" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1( const D3D11_UNORDERED_ACCESS_VIEW_DESC1& o ) :" ) +cpp_quote( " D3D11_UNORDERED_ACCESS_VIEW_DESC1( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1(" ) +cpp_quote( " D3D11_UAV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0, // FirstElement for BUFFER" ) +cpp_quote( " UINT firstArraySlice = 0, // NumElements for BUFFER, FirstWSlice for TEXTURE3D" ) +cpp_quote( " UINT arraySize = -1, // WSize for TEXTURE3D" ) +cpp_quote( " UINT flags = 0, // BUFFER only" ) +cpp_quote( " UINT planeSlice = 0 ) // PlaneSlice for TEXTURE2D and TEXTURE2DARRAY" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_UAV_DIMENSION_BUFFER:" ) +cpp_quote( " Buffer.FirstElement = mipSlice;" ) +cpp_quote( " Buffer.NumElements = firstArraySlice;" ) +cpp_quote( " Buffer.Flags = flags;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MipSlice = mipSlice;" ) +cpp_quote( " Texture2D.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " Texture2DArray.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE3D:" ) +cpp_quote( " Texture3D.MipSlice = mipSlice;" ) +cpp_quote( " Texture3D.FirstWSlice = firstArraySlice;" ) +cpp_quote( " Texture3D.WSize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Buffer*," ) +cpp_quote( " DXGI_FORMAT format," ) +cpp_quote( " UINT firstElement," ) +cpp_quote( " UINT numElements," ) +cpp_quote( " UINT flags = 0 )" ) +cpp_quote( " {" ) +cpp_quote( " Format = format;" ) +cpp_quote( " ViewDimension = D3D11_UAV_DIMENSION_BUFFER;" ) +cpp_quote( " Buffer.FirstElement = firstElement;" ) +cpp_quote( " Buffer.NumElements = numElements;" ) +cpp_quote( " Buffer.Flags = flags;" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Texture1D* pTex1D," ) +cpp_quote( " D3D11_UAV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format ||" ) +cpp_quote( " ((UINT)-1 == arraySize && D3D11_UAV_DIMENSION_TEXTURE1DARRAY == viewDimension))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE1D_DESC TexDesc;" ) +cpp_quote( " pTex1D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE1D:" ) +cpp_quote( " Texture1D.MipSlice = mipSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE1DARRAY:" ) +cpp_quote( " Texture1DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture1DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture1DArray.ArraySize = arraySize;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Texture2D* pTex2D," ) +cpp_quote( " D3D11_UAV_DIMENSION viewDimension," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstArraySlice = 0," ) +cpp_quote( " UINT arraySize = -1, " ) +cpp_quote( " UINT planeSlice = 0 ) " ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = viewDimension;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || " ) +cpp_quote( " ((UINT)-1 == arraySize && D3D11_UAV_DIMENSION_TEXTURE2DARRAY == viewDimension))" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE2D_DESC TexDesc;" ) +cpp_quote( " pTex2D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == arraySize) arraySize = TexDesc.ArraySize - firstArraySlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " switch (viewDimension)" ) +cpp_quote( " {" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE2D:" ) +cpp_quote( " Texture2D.MipSlice = mipSlice;" ) +cpp_quote( " Texture2D.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " case D3D11_UAV_DIMENSION_TEXTURE2DARRAY:" ) +cpp_quote( " Texture2DArray.MipSlice = mipSlice;" ) +cpp_quote( " Texture2DArray.FirstArraySlice = firstArraySlice;" ) +cpp_quote( " Texture2DArray.ArraySize = arraySize;" ) +cpp_quote( " Texture2DArray.PlaneSlice = planeSlice;" ) +cpp_quote( " break;" ) +cpp_quote( " default: break;" ) +cpp_quote( " }" ) +cpp_quote( " }" ) +cpp_quote( " explicit CD3D11_UNORDERED_ACCESS_VIEW_DESC1(" ) +cpp_quote( " _In_ ID3D11Texture3D* pTex3D," ) +cpp_quote( " DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN," ) +cpp_quote( " UINT mipSlice = 0," ) +cpp_quote( " UINT firstWSlice = 0," ) +cpp_quote( " UINT wSize = -1 )" ) +cpp_quote( " {" ) +cpp_quote( " ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D;" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format || (UINT)-1 == wSize)" ) +cpp_quote( " {" ) +cpp_quote( " D3D11_TEXTURE3D_DESC TexDesc;" ) +cpp_quote( " pTex3D->GetDesc( &TexDesc );" ) +cpp_quote( " if (DXGI_FORMAT_UNKNOWN == format) format = TexDesc.Format;" ) +cpp_quote( " if ((UINT)-1 == wSize) wSize = TexDesc.Depth - firstWSlice;" ) +cpp_quote( " }" ) +cpp_quote( " Format = format;" ) +cpp_quote( " Texture3D.MipSlice = mipSlice;" ) +cpp_quote( " Texture3D.FirstWSlice = firstWSlice;" ) +cpp_quote( " Texture3D.WSize = wSize;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_UNORDERED_ACCESS_VIEW_DESC1() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 7b3b6153-a886-4544-ab37-6537c8500403 ), object, local, pointer_default( unique ) ] +interface ID3D11UnorderedAccessView1 + : ID3D11UnorderedAccessView +{ + void GetDesc1( [annotation("_Out_")] D3D11_UNORDERED_ACCESS_VIEW_DESC1* pDesc1 ); +}; + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Query +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef struct D3D11_QUERY_DESC1 { + D3D11_QUERY Query; + UINT MiscFlags; + D3D11_CONTEXT_TYPE ContextType; + } D3D11_QUERY_DESC1; + +cpp_quote( "#if !defined( D3D11_NO_HELPERS ) && defined( __cplusplus )" ) +cpp_quote( "}" ) // extern C +cpp_quote( "struct CD3D11_QUERY_DESC1 : public D3D11_QUERY_DESC1" ) +cpp_quote( "{" ) +cpp_quote( " CD3D11_QUERY_DESC1() = default;" ) +cpp_quote( " explicit CD3D11_QUERY_DESC1( const D3D11_QUERY_DESC1& o ) :" ) +cpp_quote( " D3D11_QUERY_DESC1( o )" ) +cpp_quote( " {}" ) +cpp_quote( " explicit CD3D11_QUERY_DESC1(" ) +cpp_quote( " D3D11_QUERY query," ) +cpp_quote( " UINT miscFlags = 0," ) +cpp_quote( " D3D11_CONTEXT_TYPE contextType = D3D11_CONTEXT_TYPE_ALL )" ) +cpp_quote( " {" ) +cpp_quote( " Query = query;" ) +cpp_quote( " MiscFlags = miscFlags;" ) +cpp_quote( " ContextType = contextType;" ) +cpp_quote( " }" ) +cpp_quote( " ~CD3D11_QUERY_DESC1() {}" ) +cpp_quote( "};" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +[ uuid( 631b4766-36dc-461d-8db6-c47e13e60916 ), object, local, pointer_default( unique ) ] +interface ID3D11Query1 + : ID3D11Query +{ + void GetDesc1( [annotation("_Out_")] D3D11_QUERY_DESC1* pDesc1 ); +}; + + +typedef enum D3D11_FENCE_FLAG +{ + D3D11_FENCE_FLAG_NONE = 0x0, + D3D11_FENCE_FLAG_SHARED = 0x2, + D3D11_FENCE_FLAG_SHARED_CROSS_ADAPTER = 0x4, + D3D11_FENCE_FLAG_NON_MONITORED = 0x8, +} D3D11_FENCE_FLAG; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS(D3D11_FENCE_FLAG);" ) +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// DeviceContext3 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( b4e3c01d-e79e-4637-91b2-510e9f4c9b8f ), object, local, pointer_default( unique ) ] +interface ID3D11DeviceContext3 + : ID3D11DeviceContext2 +{ + void Flush1( + D3D11_CONTEXT_TYPE ContextType, + [annotation("_In_opt_")] HANDLE hEvent); + + void SetHardwareProtectionState( + [annotation("_In_")] BOOL HwProtectionEnable); + + void GetHardwareProtectionState( + [annotation("_Out_")] BOOL* pHwProtectionEnable); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// ID3D11Fence +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[uuid(affde9d1-1df7-4bb7-8a34-0f46251dab80), object, local, pointer_default(unique)] +interface ID3D11Fence + : ID3D11DeviceChild +{ + HRESULT CreateSharedHandle( + [annotation("_In_opt_")] const SECURITY_ATTRIBUTES *pAttributes, + [annotation("_In_")] DWORD dwAccess, + [annotation("_In_opt_")] LPCWSTR lpName, + [annotation("_Out_")] HANDLE *pHandle + ); + + UINT64 GetCompletedValue(); + + HRESULT SetEventOnCompletion( + [annotation("_In_")] UINT64 Value, + [annotation("_In_")] HANDLE hEvent + ); +}; + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// DeviceContext4 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( 917600da-f58c-4c33-98d8-3e15b390fa24 ), object, local, pointer_default( unique ) ] +interface ID3D11DeviceContext4 + : ID3D11DeviceContext3 +{ + HRESULT Signal( + [annotation("_In_")] ID3D11Fence *pFence, + [annotation("_In_")] UINT64 Value + ); + + HRESULT Wait( + [annotation("_In_")] ID3D11Fence *pFence, + [annotation("_In_")] UINT64 Value + ); +}; +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Device3 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( A05C8C37-D2C6-4732-B3A0-9CE0B0DC9AE6 ), object, local, pointer_default( unique ) ] +interface ID3D11Device3 + : ID3D11Device2 +{ + HRESULT CreateTexture2D1( + [annotation("_In_")] const D3D11_TEXTURE2D_DESC1* pDesc1, + [annotation("_In_reads_opt_(_Inexpressible_(pDesc1->MipLevels * pDesc1->ArraySize))")] const D3D11_SUBRESOURCE_DATA* pInitialData, + [annotation("_COM_Outptr_opt_")] ID3D11Texture2D1** ppTexture2D ); + + HRESULT CreateTexture3D1( + [annotation("_In_")] const D3D11_TEXTURE3D_DESC1* pDesc1, + [annotation("_In_reads_opt_(_Inexpressible_(pDesc1->MipLevels))")] const D3D11_SUBRESOURCE_DATA* pInitialData, + [annotation("_COM_Outptr_opt_")] ID3D11Texture3D1** ppTexture3D ); + + HRESULT CreateRasterizerState2( + [annotation("_In_")] const D3D11_RASTERIZER_DESC2* pRasterizerDesc, + [annotation("_COM_Outptr_opt_")] ID3D11RasterizerState2** ppRasterizerState ); + + HRESULT CreateShaderResourceView1( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_opt_")] const D3D11_SHADER_RESOURCE_VIEW_DESC1* pDesc1, + [annotation("_COM_Outptr_opt_")] ID3D11ShaderResourceView1** ppSRView1 ); + + HRESULT CreateUnorderedAccessView1( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_opt_")] const D3D11_UNORDERED_ACCESS_VIEW_DESC1* pDesc1, + [annotation("_COM_Outptr_opt_")] ID3D11UnorderedAccessView1** ppUAView1 ); + + HRESULT CreateRenderTargetView1( + [annotation("_In_")] ID3D11Resource* pResource, + [annotation("_In_opt_")] const D3D11_RENDER_TARGET_VIEW_DESC1* pDesc1, + [annotation("_COM_Outptr_opt_")] ID3D11RenderTargetView1** ppRTView1 ); + + HRESULT CreateQuery1( + [annotation("_In_")] const D3D11_QUERY_DESC1 *pQueryDesc1, + [annotation("_COM_Outptr_opt_")] ID3D11Query1 **ppQuery1 + ); + + void GetImmediateContext3( + [annotation("_Outptr_")] ID3D11DeviceContext3** ppImmediateContext + ); + + HRESULT CreateDeferredContext3( + UINT ContextFlags, + [annotation("_COM_Outptr_opt_")] ID3D11DeviceContext3** ppDeferredContext + ); + + void WriteToSubresource( + [annotation("_In_")] ID3D11Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_opt_")] const D3D11_BOX* pDstBox, + [annotation("_In_")] const void* pSrcData, + [annotation("_In_")] UINT SrcRowPitch, + [annotation("_In_")] UINT SrcDepthPitch + ); + + void ReadFromSubresource( + [annotation("_Out_")] void* pDstData, + [annotation("_In_")] UINT DstRowPitch, + [annotation("_In_")] UINT DstDepthPitch, + [annotation("_In_")] ID3D11Resource* pSrcResource, + [annotation("_In_")] UINT SrcSubresource, + [annotation("_In_opt_")] const D3D11_BOX* pSrcBox + ); +}; +cpp_quote( "DEFINE_GUID(IID_ID3D11Texture2D1,0x51218251,0x1E33,0x4617,0x9C,0xCB,0x4D,0x3A,0x43,0x67,0xE7,0xBB);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Texture3D1,0x0C711683,0x2853,0x4846,0x9B,0xB0,0xF3,0xE6,0x06,0x39,0xE4,0x6A);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11RasterizerState2,0x6fbd02fb,0x209f,0x46c4,0xb0,0x59,0x2e,0xd1,0x55,0x86,0xa6,0xac);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11ShaderResourceView1,0x91308b87,0x9040,0x411d,0x8c,0x67,0xc3,0x92,0x53,0xce,0x38,0x02);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11RenderTargetView1,0xffbe2e23,0xf011,0x418a,0xac,0x56,0x5c,0xee,0xd7,0xc5,0xb9,0x4b);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11UnorderedAccessView1,0x7b3b6153,0xa886,0x4544,0xab,0x37,0x65,0x37,0xc8,0x50,0x04,0x03);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Query1,0x631b4766,0x36dc,0x461d,0x8d,0xb6,0xc4,0x7e,0x13,0xe6,0x09,0x16);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11DeviceContext3,0xb4e3c01d,0xe79e,0x4637,0x91,0xb2,0x51,0x0e,0x9f,0x4c,0x9b,0x8f);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Fence,0xaffde9d1,0x1df7,0x4bb7,0x8a,0x34,0x0f,0x46,0x25,0x1d,0xab,0x80);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11DeviceContext4,0x917600da,0xf58c,0x4c33,0x98,0xd8,0x3e,0x15,0xb3,0x90,0xfa,0x24);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Device3,0xA05C8C37,0xD2C6,0x4732,0xB3,0xA0,0x9C,0xE0,0xB0,0xDC,0x9A,0xE6);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_4.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_4.h new file mode 100644 index 0000000000000000000000000000000000000000..53d1651cdf84abe091af718459bf15ec2fc50171 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_4.h @@ -0,0 +1,5108 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d11_4_h__ +#define __d3d11_4_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D11Device4_FWD_DEFINED__ +#define __ID3D11Device4_FWD_DEFINED__ +typedef interface ID3D11Device4 ID3D11Device4; + +#endif /* __ID3D11Device4_FWD_DEFINED__ */ + + +#ifndef __ID3D11Device5_FWD_DEFINED__ +#define __ID3D11Device5_FWD_DEFINED__ +typedef interface ID3D11Device5 ID3D11Device5; + +#endif /* __ID3D11Device5_FWD_DEFINED__ */ + + +#ifndef __ID3D11Multithread_FWD_DEFINED__ +#define __ID3D11Multithread_FWD_DEFINED__ +typedef interface ID3D11Multithread ID3D11Multithread; + +#endif /* __ID3D11Multithread_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoContext2_FWD_DEFINED__ +#define __ID3D11VideoContext2_FWD_DEFINED__ +typedef interface ID3D11VideoContext2 ID3D11VideoContext2; + +#endif /* __ID3D11VideoContext2_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoDevice2_FWD_DEFINED__ +#define __ID3D11VideoDevice2_FWD_DEFINED__ +typedef interface ID3D11VideoDevice2 ID3D11VideoDevice2; + +#endif /* __ID3D11VideoDevice2_FWD_DEFINED__ */ + + +#ifndef __ID3D11VideoContext3_FWD_DEFINED__ +#define __ID3D11VideoContext3_FWD_DEFINED__ +typedef interface ID3D11VideoContext3 ID3D11VideoContext3; + +#endif /* __ID3D11VideoContext3_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "dxgi1_5.h" +#include "d3dcommon.h" +#include "d3d11_3.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d11_4_0000_0000 */ +/* [local] */ + +#ifdef __cplusplus +} +#endif +#include "d3d11_3.h" // +#ifdef __cplusplus +extern "C"{ +#endif +#pragma region App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D11Device4_INTERFACE_DEFINED__ +#define __ID3D11Device4_INTERFACE_DEFINED__ + +/* interface ID3D11Device4 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Device4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8992ab71-02e6-4b8d-ba48-b056dcda42c4") + ID3D11Device4 : public ID3D11Device3 + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterDeviceRemovedEvent( + /* [annotation] */ + _In_ HANDLE hEvent, + /* [annotation] */ + _Out_ DWORD *pdwCookie) = 0; + + virtual void STDMETHODCALLTYPE UnregisterDeviceRemoved( + /* [annotation] */ + _In_ DWORD dwCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Device4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Device4 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Device4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Device4 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBuffer) + HRESULT ( STDMETHODCALLTYPE *CreateBuffer )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_BUFFER_DESC *pDesc, + /* [annotation] */ + _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Buffer **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture1D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE1D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture2D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture3D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateShaderResourceView) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateUnorderedAccessView) + HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRenderTargetView) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilView) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateInputLayout) + HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )( + ID3D11Device4 * This, + /* [annotation] */ + _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateVertexShader) + HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )( + ID3D11Device4 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShader) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )( + ID3D11Device4 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShaderWithStreamOutput) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )( + ID3D11Device4 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration, + /* [annotation] */ + _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries, + /* [annotation] */ + _In_reads_opt_(NumStrides) const UINT *pBufferStrides, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides, + /* [annotation] */ + _In_ UINT RasterizedStream, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePixelShader) + HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )( + ID3D11Device4 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateHullShader) + HRESULT ( STDMETHODCALLTYPE *CreateHullShader )( + ID3D11Device4 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11HullShader **ppHullShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDomainShader) + HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )( + ID3D11Device4 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateComputeShader) + HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )( + ID3D11Device4 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateClassLinkage) + HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )( + ID3D11Device4 * This, + /* [annotation] */ + _COM_Outptr_ ID3D11ClassLinkage **ppLinkage); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBlendState) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilState) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRasterizerState) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateSamplerState) + HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_SAMPLER_DESC *pSamplerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateQuery) + HRESULT ( STDMETHODCALLTYPE *CreateQuery )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pQueryDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query **ppQuery); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePredicate) + HRESULT ( STDMETHODCALLTYPE *CreatePredicate )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pPredicateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Predicate **ppPredicate); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateCounter) + HRESULT ( STDMETHODCALLTYPE *CreateCounter )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pCounterDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Counter **ppCounter); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDeferredContext) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )( + ID3D11Device4 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device, OpenSharedResource) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFormatSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFormatSupport); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckMultisampleQualityLevels) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounterInfo) + void ( STDMETHODCALLTYPE *CheckCounterInfo )( + ID3D11Device4 * This, + /* [annotation] */ + _Out_ D3D11_COUNTER_INFO *pCounterInfo); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounter) + HRESULT ( STDMETHODCALLTYPE *CheckCounter )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pDesc, + /* [annotation] */ + _Out_ D3D11_COUNTER_TYPE *pType, + /* [annotation] */ + _Out_ UINT *pActiveCounters, + /* [annotation] */ + _Out_writes_opt_(*pNameLength) LPSTR szName, + /* [annotation] */ + _Inout_opt_ UINT *pNameLength, + /* [annotation] */ + _Out_writes_opt_(*pUnitsLength) LPSTR szUnits, + /* [annotation] */ + _Inout_opt_ UINT *pUnitsLength, + /* [annotation] */ + _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription, + /* [annotation] */ + _Inout_opt_ UINT *pDescriptionLength); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D11Device4 * This, + D3D11_FEATURE Feature, + /* [annotation] */ + _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D11Device, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, GetFeatureLevel) + D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )( + ID3D11Device4 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetCreationFlags) + UINT ( STDMETHODCALLTYPE *GetCreationFlags )( + ID3D11Device4 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D11Device4 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetImmediateContext) + void ( STDMETHODCALLTYPE *GetImmediateContext )( + ID3D11Device4 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device, SetExceptionMode) + HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )( + ID3D11Device4 * This, + UINT RaiseFlags); + + DECLSPEC_XFGVIRT(ID3D11Device, GetExceptionMode) + UINT ( STDMETHODCALLTYPE *GetExceptionMode )( + ID3D11Device4 * This); + + DECLSPEC_XFGVIRT(ID3D11Device1, GetImmediateContext1) + void ( STDMETHODCALLTYPE *GetImmediateContext1 )( + ID3D11Device4 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext1 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateDeferredContext1) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )( + ID3D11Device4 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateBlendState1) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateRasterizerState1) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateDeviceContextState) + HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )( + ID3D11Device4 * This, + UINT Flags, + /* [annotation] */ + _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels, + UINT FeatureLevels, + UINT SDKVersion, + REFIID EmulatedInterface, + /* [annotation] */ + _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel, + /* [annotation] */ + _Out_opt_ ID3DDeviceContextState **ppContextState); + + DECLSPEC_XFGVIRT(ID3D11Device1, OpenSharedResource1) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device1, OpenSharedResourceByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ LPCWSTR lpName, + /* [annotation] */ + _In_ DWORD dwDesiredAccess, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device2, GetImmediateContext2) + void ( STDMETHODCALLTYPE *GetImmediateContext2 )( + ID3D11Device4 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext2 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device2, CreateDeferredContext2) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext2 )( + ID3D11Device4 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device2, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _Out_opt_ UINT *pNumTilesForEntireResource, + /* [annotation] */ + _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc, + /* [annotation] */ + _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + /* [annotation] */ + _Inout_opt_ UINT *pNumSubresourceTilings, + /* [annotation] */ + _In_ UINT FirstSubresourceTilingToGet, + /* [annotation] */ + _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D11Device2, CheckMultisampleQualityLevels1) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels1 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _In_ UINT Flags, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateTexture2D1) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D1 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC1 *pDesc1, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels * pDesc1->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D1 **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateTexture3D1) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D1 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC1 *pDesc1, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D1 **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateRasterizerState2) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState2 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC2 *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState2 **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateShaderResourceView1) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView1 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView1 **ppSRView1); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateUnorderedAccessView1) + HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView1 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView1 **ppUAView1); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateRenderTargetView1) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView1 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView1 **ppRTView1); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateQuery1) + HRESULT ( STDMETHODCALLTYPE *CreateQuery1 )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC1 *pQueryDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query1 **ppQuery1); + + DECLSPEC_XFGVIRT(ID3D11Device3, GetImmediateContext3) + void ( STDMETHODCALLTYPE *GetImmediateContext3 )( + ID3D11Device4 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext3 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateDeferredContext3) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext3 )( + ID3D11Device4 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext3 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device3, WriteToSubresource) + void ( STDMETHODCALLTYPE *WriteToSubresource )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D11Device3, ReadFromSubresource) + void ( STDMETHODCALLTYPE *ReadFromSubresource )( + ID3D11Device4 * This, + /* [annotation] */ + _Out_ void *pDstData, + /* [annotation] */ + _In_ UINT DstRowPitch, + /* [annotation] */ + _In_ UINT DstDepthPitch, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D11Device4, RegisterDeviceRemovedEvent) + HRESULT ( STDMETHODCALLTYPE *RegisterDeviceRemovedEvent )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ HANDLE hEvent, + /* [annotation] */ + _Out_ DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(ID3D11Device4, UnregisterDeviceRemoved) + void ( STDMETHODCALLTYPE *UnregisterDeviceRemoved )( + ID3D11Device4 * This, + /* [annotation] */ + _In_ DWORD dwCookie); + + END_INTERFACE + } ID3D11Device4Vtbl; + + interface ID3D11Device4 + { + CONST_VTBL struct ID3D11Device4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Device4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Device4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Device4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Device4_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \ + ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) ) + +#define ID3D11Device4_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \ + ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) ) + +#define ID3D11Device4_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) ) + +#define ID3D11Device4_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) ) + +#define ID3D11Device4_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) ) + +#define ID3D11Device4_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) ) + +#define ID3D11Device4_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) ) + +#define ID3D11Device4_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) ) + +#define ID3D11Device4_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \ + ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) ) + +#define ID3D11Device4_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \ + ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) ) + +#define ID3D11Device4_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device4_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device4_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \ + ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) ) + +#define ID3D11Device4_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \ + ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) ) + +#define ID3D11Device4_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \ + ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) ) + +#define ID3D11Device4_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \ + ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) ) + +#define ID3D11Device4_CreateClassLinkage(This,ppLinkage) \ + ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) ) + +#define ID3D11Device4_CreateBlendState(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device4_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \ + ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) ) + +#define ID3D11Device4_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device4_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \ + ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) ) + +#define ID3D11Device4_CreateQuery(This,pQueryDesc,ppQuery) \ + ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) ) + +#define ID3D11Device4_CreatePredicate(This,pPredicateDesc,ppPredicate) \ + ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) ) + +#define ID3D11Device4_CreateCounter(This,pCounterDesc,ppCounter) \ + ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) ) + +#define ID3D11Device4_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device4_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) ) + +#define ID3D11Device4_CheckFormatSupport(This,Format,pFormatSupport) \ + ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) ) + +#define ID3D11Device4_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) ) + +#define ID3D11Device4_CheckCounterInfo(This,pCounterInfo) \ + ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) ) + +#define ID3D11Device4_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \ + ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) ) + +#define ID3D11Device4_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D11Device4_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Device4_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Device4_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D11Device4_GetFeatureLevel(This) \ + ( (This)->lpVtbl -> GetFeatureLevel(This) ) + +#define ID3D11Device4_GetCreationFlags(This) \ + ( (This)->lpVtbl -> GetCreationFlags(This) ) + +#define ID3D11Device4_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D11Device4_GetImmediateContext(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) ) + +#define ID3D11Device4_SetExceptionMode(This,RaiseFlags) \ + ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) ) + +#define ID3D11Device4_GetExceptionMode(This) \ + ( (This)->lpVtbl -> GetExceptionMode(This) ) + + +#define ID3D11Device4_GetImmediateContext1(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) ) + +#define ID3D11Device4_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device4_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device4_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device4_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \ + ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) ) + +#define ID3D11Device4_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) ) + +#define ID3D11Device4_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) ) + + +#define ID3D11Device4_GetImmediateContext2(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext2(This,ppImmediateContext) ) + +#define ID3D11Device4_CreateDeferredContext2(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext2(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device4_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) + +#define ID3D11Device4_CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) ) + + +#define ID3D11Device4_CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) ) + +#define ID3D11Device4_CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) ) + +#define ID3D11Device4_CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device4_CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) \ + ( (This)->lpVtbl -> CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) ) + +#define ID3D11Device4_CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) ) + +#define ID3D11Device4_CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) \ + ( (This)->lpVtbl -> CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) ) + +#define ID3D11Device4_CreateQuery1(This,pQueryDesc1,ppQuery1) \ + ( (This)->lpVtbl -> CreateQuery1(This,pQueryDesc1,ppQuery1) ) + +#define ID3D11Device4_GetImmediateContext3(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext3(This,ppImmediateContext) ) + +#define ID3D11Device4_CreateDeferredContext3(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext3(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device4_WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D11Device4_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) ) + + +#define ID3D11Device4_RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) \ + ( (This)->lpVtbl -> RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) ) + +#define ID3D11Device4_UnregisterDeviceRemoved(This,dwCookie) \ + ( (This)->lpVtbl -> UnregisterDeviceRemoved(This,dwCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Device4_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11Device5_INTERFACE_DEFINED__ +#define __ID3D11Device5_INTERFACE_DEFINED__ + +/* interface ID3D11Device5 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Device5; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8ffde202-a0e7-45df-9e01-e837801b5ea0") + ID3D11Device5 : public ID3D11Device4 + { + public: + virtual HRESULT STDMETHODCALLTYPE OpenSharedFence( + /* [annotation] */ + _In_ HANDLE hFence, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppFence) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateFence( + /* [annotation] */ + _In_ UINT64 InitialValue, + /* [annotation] */ + _In_ D3D11_FENCE_FLAG Flags, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppFence) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11Device5Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Device5 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Device5 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Device5 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBuffer) + HRESULT ( STDMETHODCALLTYPE *CreateBuffer )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_BUFFER_DESC *pDesc, + /* [annotation] */ + _In_opt_ const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Buffer **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture1D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture1D )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE1D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture1D **ppTexture1D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture2D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels * pDesc->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateTexture3D) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC *pDesc, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateShaderResourceView) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView **ppSRView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateUnorderedAccessView) + HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView **ppUAView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRenderTargetView) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView **ppRTView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilView) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_DEPTH_STENCIL_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilView **ppDepthStencilView); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateInputLayout) + HRESULT ( STDMETHODCALLTYPE *CreateInputLayout )( + ID3D11Device5 * This, + /* [annotation] */ + _In_reads_(NumElements) const D3D11_INPUT_ELEMENT_DESC *pInputElementDescs, + /* [annotation] */ + _In_range_( 0, D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ) UINT NumElements, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecodeWithInputSignature, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11InputLayout **ppInputLayout); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateVertexShader) + HRESULT ( STDMETHODCALLTYPE *CreateVertexShader )( + ID3D11Device5 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VertexShader **ppVertexShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShader) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShader )( + ID3D11Device5 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateGeometryShaderWithStreamOutput) + HRESULT ( STDMETHODCALLTYPE *CreateGeometryShaderWithStreamOutput )( + ID3D11Device5 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_reads_opt_(NumEntries) const D3D11_SO_DECLARATION_ENTRY *pSODeclaration, + /* [annotation] */ + _In_range_( 0, D3D11_SO_STREAM_COUNT * D3D11_SO_OUTPUT_COMPONENT_COUNT ) UINT NumEntries, + /* [annotation] */ + _In_reads_opt_(NumStrides) const UINT *pBufferStrides, + /* [annotation] */ + _In_range_( 0, D3D11_SO_BUFFER_SLOT_COUNT ) UINT NumStrides, + /* [annotation] */ + _In_ UINT RasterizedStream, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11GeometryShader **ppGeometryShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePixelShader) + HRESULT ( STDMETHODCALLTYPE *CreatePixelShader )( + ID3D11Device5 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11PixelShader **ppPixelShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateHullShader) + HRESULT ( STDMETHODCALLTYPE *CreateHullShader )( + ID3D11Device5 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11HullShader **ppHullShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDomainShader) + HRESULT ( STDMETHODCALLTYPE *CreateDomainShader )( + ID3D11Device5 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DomainShader **ppDomainShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateComputeShader) + HRESULT ( STDMETHODCALLTYPE *CreateComputeShader )( + ID3D11Device5 * This, + /* [annotation] */ + _In_reads_(BytecodeLength) const void *pShaderBytecode, + /* [annotation] */ + _In_ SIZE_T BytecodeLength, + /* [annotation] */ + _In_opt_ ID3D11ClassLinkage *pClassLinkage, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ComputeShader **ppComputeShader); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateClassLinkage) + HRESULT ( STDMETHODCALLTYPE *CreateClassLinkage )( + ID3D11Device5 * This, + /* [annotation] */ + _COM_Outptr_ ID3D11ClassLinkage **ppLinkage); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateBlendState) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDepthStencilState) + HRESULT ( STDMETHODCALLTYPE *CreateDepthStencilState )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_DEPTH_STENCIL_DESC *pDepthStencilDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DepthStencilState **ppDepthStencilState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateRasterizerState) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateSamplerState) + HRESULT ( STDMETHODCALLTYPE *CreateSamplerState )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_SAMPLER_DESC *pSamplerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11SamplerState **ppSamplerState); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateQuery) + HRESULT ( STDMETHODCALLTYPE *CreateQuery )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pQueryDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query **ppQuery); + + DECLSPEC_XFGVIRT(ID3D11Device, CreatePredicate) + HRESULT ( STDMETHODCALLTYPE *CreatePredicate )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC *pPredicateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Predicate **ppPredicate); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateCounter) + HRESULT ( STDMETHODCALLTYPE *CreateCounter )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pCounterDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Counter **ppCounter); + + DECLSPEC_XFGVIRT(ID3D11Device, CreateDeferredContext) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext )( + ID3D11Device5 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device, OpenSharedResource) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFormatSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFormatSupport )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ UINT *pFormatSupport); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckMultisampleQualityLevels) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounterInfo) + void ( STDMETHODCALLTYPE *CheckCounterInfo )( + ID3D11Device5 * This, + /* [annotation] */ + _Out_ D3D11_COUNTER_INFO *pCounterInfo); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckCounter) + HRESULT ( STDMETHODCALLTYPE *CheckCounter )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_COUNTER_DESC *pDesc, + /* [annotation] */ + _Out_ D3D11_COUNTER_TYPE *pType, + /* [annotation] */ + _Out_ UINT *pActiveCounters, + /* [annotation] */ + _Out_writes_opt_(*pNameLength) LPSTR szName, + /* [annotation] */ + _Inout_opt_ UINT *pNameLength, + /* [annotation] */ + _Out_writes_opt_(*pUnitsLength) LPSTR szUnits, + /* [annotation] */ + _Inout_opt_ UINT *pUnitsLength, + /* [annotation] */ + _Out_writes_opt_(*pDescriptionLength) LPSTR szDescription, + /* [annotation] */ + _Inout_opt_ UINT *pDescriptionLength); + + DECLSPEC_XFGVIRT(ID3D11Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D11Device5 * This, + D3D11_FEATURE Feature, + /* [annotation] */ + _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D11Device, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_(*pDataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11Device, GetFeatureLevel) + D3D_FEATURE_LEVEL ( STDMETHODCALLTYPE *GetFeatureLevel )( + ID3D11Device5 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetCreationFlags) + UINT ( STDMETHODCALLTYPE *GetCreationFlags )( + ID3D11Device5 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D11Device5 * This); + + DECLSPEC_XFGVIRT(ID3D11Device, GetImmediateContext) + void ( STDMETHODCALLTYPE *GetImmediateContext )( + ID3D11Device5 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device, SetExceptionMode) + HRESULT ( STDMETHODCALLTYPE *SetExceptionMode )( + ID3D11Device5 * This, + UINT RaiseFlags); + + DECLSPEC_XFGVIRT(ID3D11Device, GetExceptionMode) + UINT ( STDMETHODCALLTYPE *GetExceptionMode )( + ID3D11Device5 * This); + + DECLSPEC_XFGVIRT(ID3D11Device1, GetImmediateContext1) + void ( STDMETHODCALLTYPE *GetImmediateContext1 )( + ID3D11Device5 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext1 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateDeferredContext1) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext1 )( + ID3D11Device5 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext1 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateBlendState1) + HRESULT ( STDMETHODCALLTYPE *CreateBlendState1 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_BLEND_DESC1 *pBlendStateDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11BlendState1 **ppBlendState); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateRasterizerState1) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState1 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC1 *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState1 **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device1, CreateDeviceContextState) + HRESULT ( STDMETHODCALLTYPE *CreateDeviceContextState )( + ID3D11Device5 * This, + UINT Flags, + /* [annotation] */ + _In_reads_( FeatureLevels ) const D3D_FEATURE_LEVEL *pFeatureLevels, + UINT FeatureLevels, + UINT SDKVersion, + REFIID EmulatedInterface, + /* [annotation] */ + _Out_opt_ D3D_FEATURE_LEVEL *pChosenFeatureLevel, + /* [annotation] */ + _Out_opt_ ID3DDeviceContextState **ppContextState); + + DECLSPEC_XFGVIRT(ID3D11Device1, OpenSharedResource1) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResource1 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ HANDLE hResource, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device1, OpenSharedResourceByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedResourceByName )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ LPCWSTR lpName, + /* [annotation] */ + _In_ DWORD dwDesiredAccess, + /* [annotation] */ + _In_ REFIID returnedInterface, + /* [annotation] */ + _COM_Outptr_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D11Device2, GetImmediateContext2) + void ( STDMETHODCALLTYPE *GetImmediateContext2 )( + ID3D11Device5 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext2 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device2, CreateDeferredContext2) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext2 )( + ID3D11Device5 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext2 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device2, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ ID3D11Resource *pTiledResource, + /* [annotation] */ + _Out_opt_ UINT *pNumTilesForEntireResource, + /* [annotation] */ + _Out_opt_ D3D11_PACKED_MIP_DESC *pPackedMipDesc, + /* [annotation] */ + _Out_opt_ D3D11_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + /* [annotation] */ + _Inout_opt_ UINT *pNumSubresourceTilings, + /* [annotation] */ + _In_ UINT FirstSubresourceTilingToGet, + /* [annotation] */ + _Out_writes_(*pNumSubresourceTilings) D3D11_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D11Device2, CheckMultisampleQualityLevels1) + HRESULT ( STDMETHODCALLTYPE *CheckMultisampleQualityLevels1 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _In_ UINT SampleCount, + /* [annotation] */ + _In_ UINT Flags, + /* [annotation] */ + _Out_ UINT *pNumQualityLevels); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateTexture2D1) + HRESULT ( STDMETHODCALLTYPE *CreateTexture2D1 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE2D_DESC1 *pDesc1, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels * pDesc1->ArraySize)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture2D1 **ppTexture2D); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateTexture3D1) + HRESULT ( STDMETHODCALLTYPE *CreateTexture3D1 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_TEXTURE3D_DESC1 *pDesc1, + /* [annotation] */ + _In_reads_opt_(_Inexpressible_(pDesc1->MipLevels)) const D3D11_SUBRESOURCE_DATA *pInitialData, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Texture3D1 **ppTexture3D); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateRasterizerState2) + HRESULT ( STDMETHODCALLTYPE *CreateRasterizerState2 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_RASTERIZER_DESC2 *pRasterizerDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RasterizerState2 **ppRasterizerState); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateShaderResourceView1) + HRESULT ( STDMETHODCALLTYPE *CreateShaderResourceView1 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_SHADER_RESOURCE_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11ShaderResourceView1 **ppSRView1); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateUnorderedAccessView1) + HRESULT ( STDMETHODCALLTYPE *CreateUnorderedAccessView1 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_UNORDERED_ACCESS_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11UnorderedAccessView1 **ppUAView1); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateRenderTargetView1) + HRESULT ( STDMETHODCALLTYPE *CreateRenderTargetView1 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_opt_ const D3D11_RENDER_TARGET_VIEW_DESC1 *pDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11RenderTargetView1 **ppRTView1); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateQuery1) + HRESULT ( STDMETHODCALLTYPE *CreateQuery1 )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ const D3D11_QUERY_DESC1 *pQueryDesc1, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11Query1 **ppQuery1); + + DECLSPEC_XFGVIRT(ID3D11Device3, GetImmediateContext3) + void ( STDMETHODCALLTYPE *GetImmediateContext3 )( + ID3D11Device5 * This, + /* [annotation] */ + _Outptr_ ID3D11DeviceContext3 **ppImmediateContext); + + DECLSPEC_XFGVIRT(ID3D11Device3, CreateDeferredContext3) + HRESULT ( STDMETHODCALLTYPE *CreateDeferredContext3 )( + ID3D11Device5 * This, + UINT ContextFlags, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11DeviceContext3 **ppDeferredContext); + + DECLSPEC_XFGVIRT(ID3D11Device3, WriteToSubresource) + void ( STDMETHODCALLTYPE *WriteToSubresource )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ ID3D11Resource *pDstResource, + /* [annotation] */ + _In_ UINT DstSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pDstBox, + /* [annotation] */ + _In_ const void *pSrcData, + /* [annotation] */ + _In_ UINT SrcRowPitch, + /* [annotation] */ + _In_ UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D11Device3, ReadFromSubresource) + void ( STDMETHODCALLTYPE *ReadFromSubresource )( + ID3D11Device5 * This, + /* [annotation] */ + _Out_ void *pDstData, + /* [annotation] */ + _In_ UINT DstRowPitch, + /* [annotation] */ + _In_ UINT DstDepthPitch, + /* [annotation] */ + _In_ ID3D11Resource *pSrcResource, + /* [annotation] */ + _In_ UINT SrcSubresource, + /* [annotation] */ + _In_opt_ const D3D11_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D11Device4, RegisterDeviceRemovedEvent) + HRESULT ( STDMETHODCALLTYPE *RegisterDeviceRemovedEvent )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ HANDLE hEvent, + /* [annotation] */ + _Out_ DWORD *pdwCookie); + + DECLSPEC_XFGVIRT(ID3D11Device4, UnregisterDeviceRemoved) + void ( STDMETHODCALLTYPE *UnregisterDeviceRemoved )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ DWORD dwCookie); + + DECLSPEC_XFGVIRT(ID3D11Device5, OpenSharedFence) + HRESULT ( STDMETHODCALLTYPE *OpenSharedFence )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ HANDLE hFence, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D11Device5, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D11Device5 * This, + /* [annotation] */ + _In_ UINT64 InitialValue, + /* [annotation] */ + _In_ D3D11_FENCE_FLAG Flags, + /* [annotation] */ + _In_ REFIID ReturnedInterface, + /* [annotation] */ + _COM_Outptr_opt_ void **ppFence); + + END_INTERFACE + } ID3D11Device5Vtbl; + + interface ID3D11Device5 + { + CONST_VTBL struct ID3D11Device5Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Device5_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Device5_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Device5_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Device5_CreateBuffer(This,pDesc,pInitialData,ppBuffer) \ + ( (This)->lpVtbl -> CreateBuffer(This,pDesc,pInitialData,ppBuffer) ) + +#define ID3D11Device5_CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) \ + ( (This)->lpVtbl -> CreateTexture1D(This,pDesc,pInitialData,ppTexture1D) ) + +#define ID3D11Device5_CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D(This,pDesc,pInitialData,ppTexture2D) ) + +#define ID3D11Device5_CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D(This,pDesc,pInitialData,ppTexture3D) ) + +#define ID3D11Device5_CreateShaderResourceView(This,pResource,pDesc,ppSRView) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,ppSRView) ) + +#define ID3D11Device5_CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pDesc,ppUAView) ) + +#define ID3D11Device5_CreateRenderTargetView(This,pResource,pDesc,ppRTView) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,ppRTView) ) + +#define ID3D11Device5_CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,ppDepthStencilView) ) + +#define ID3D11Device5_CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) \ + ( (This)->lpVtbl -> CreateInputLayout(This,pInputElementDescs,NumElements,pShaderBytecodeWithInputSignature,BytecodeLength,ppInputLayout) ) + +#define ID3D11Device5_CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) \ + ( (This)->lpVtbl -> CreateVertexShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppVertexShader) ) + +#define ID3D11Device5_CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device5_CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) \ + ( (This)->lpVtbl -> CreateGeometryShaderWithStreamOutput(This,pShaderBytecode,BytecodeLength,pSODeclaration,NumEntries,pBufferStrides,NumStrides,RasterizedStream,pClassLinkage,ppGeometryShader) ) + +#define ID3D11Device5_CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) \ + ( (This)->lpVtbl -> CreatePixelShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppPixelShader) ) + +#define ID3D11Device5_CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) \ + ( (This)->lpVtbl -> CreateHullShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppHullShader) ) + +#define ID3D11Device5_CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) \ + ( (This)->lpVtbl -> CreateDomainShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppDomainShader) ) + +#define ID3D11Device5_CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) \ + ( (This)->lpVtbl -> CreateComputeShader(This,pShaderBytecode,BytecodeLength,pClassLinkage,ppComputeShader) ) + +#define ID3D11Device5_CreateClassLinkage(This,ppLinkage) \ + ( (This)->lpVtbl -> CreateClassLinkage(This,ppLinkage) ) + +#define ID3D11Device5_CreateBlendState(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device5_CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) \ + ( (This)->lpVtbl -> CreateDepthStencilState(This,pDepthStencilDesc,ppDepthStencilState) ) + +#define ID3D11Device5_CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device5_CreateSamplerState(This,pSamplerDesc,ppSamplerState) \ + ( (This)->lpVtbl -> CreateSamplerState(This,pSamplerDesc,ppSamplerState) ) + +#define ID3D11Device5_CreateQuery(This,pQueryDesc,ppQuery) \ + ( (This)->lpVtbl -> CreateQuery(This,pQueryDesc,ppQuery) ) + +#define ID3D11Device5_CreatePredicate(This,pPredicateDesc,ppPredicate) \ + ( (This)->lpVtbl -> CreatePredicate(This,pPredicateDesc,ppPredicate) ) + +#define ID3D11Device5_CreateCounter(This,pCounterDesc,ppCounter) \ + ( (This)->lpVtbl -> CreateCounter(This,pCounterDesc,ppCounter) ) + +#define ID3D11Device5_CreateDeferredContext(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device5_OpenSharedResource(This,hResource,ReturnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource(This,hResource,ReturnedInterface,ppResource) ) + +#define ID3D11Device5_CheckFormatSupport(This,Format,pFormatSupport) \ + ( (This)->lpVtbl -> CheckFormatSupport(This,Format,pFormatSupport) ) + +#define ID3D11Device5_CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels(This,Format,SampleCount,pNumQualityLevels) ) + +#define ID3D11Device5_CheckCounterInfo(This,pCounterInfo) \ + ( (This)->lpVtbl -> CheckCounterInfo(This,pCounterInfo) ) + +#define ID3D11Device5_CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) \ + ( (This)->lpVtbl -> CheckCounter(This,pDesc,pType,pActiveCounters,szName,pNameLength,szUnits,pUnitsLength,szDescription,pDescriptionLength) ) + +#define ID3D11Device5_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D11Device5_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11Device5_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11Device5_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D11Device5_GetFeatureLevel(This) \ + ( (This)->lpVtbl -> GetFeatureLevel(This) ) + +#define ID3D11Device5_GetCreationFlags(This) \ + ( (This)->lpVtbl -> GetCreationFlags(This) ) + +#define ID3D11Device5_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D11Device5_GetImmediateContext(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext(This,ppImmediateContext) ) + +#define ID3D11Device5_SetExceptionMode(This,RaiseFlags) \ + ( (This)->lpVtbl -> SetExceptionMode(This,RaiseFlags) ) + +#define ID3D11Device5_GetExceptionMode(This) \ + ( (This)->lpVtbl -> GetExceptionMode(This) ) + + +#define ID3D11Device5_GetImmediateContext1(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext1(This,ppImmediateContext) ) + +#define ID3D11Device5_CreateDeferredContext1(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext1(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device5_CreateBlendState1(This,pBlendStateDesc,ppBlendState) \ + ( (This)->lpVtbl -> CreateBlendState1(This,pBlendStateDesc,ppBlendState) ) + +#define ID3D11Device5_CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState1(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device5_CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) \ + ( (This)->lpVtbl -> CreateDeviceContextState(This,Flags,pFeatureLevels,FeatureLevels,SDKVersion,EmulatedInterface,pChosenFeatureLevel,ppContextState) ) + +#define ID3D11Device5_OpenSharedResource1(This,hResource,returnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResource1(This,hResource,returnedInterface,ppResource) ) + +#define ID3D11Device5_OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) \ + ( (This)->lpVtbl -> OpenSharedResourceByName(This,lpName,dwDesiredAccess,returnedInterface,ppResource) ) + + +#define ID3D11Device5_GetImmediateContext2(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext2(This,ppImmediateContext) ) + +#define ID3D11Device5_CreateDeferredContext2(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext2(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device5_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) + +#define ID3D11Device5_CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) \ + ( (This)->lpVtbl -> CheckMultisampleQualityLevels1(This,Format,SampleCount,Flags,pNumQualityLevels) ) + + +#define ID3D11Device5_CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) \ + ( (This)->lpVtbl -> CreateTexture2D1(This,pDesc1,pInitialData,ppTexture2D) ) + +#define ID3D11Device5_CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) \ + ( (This)->lpVtbl -> CreateTexture3D1(This,pDesc1,pInitialData,ppTexture3D) ) + +#define ID3D11Device5_CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) \ + ( (This)->lpVtbl -> CreateRasterizerState2(This,pRasterizerDesc,ppRasterizerState) ) + +#define ID3D11Device5_CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) \ + ( (This)->lpVtbl -> CreateShaderResourceView1(This,pResource,pDesc1,ppSRView1) ) + +#define ID3D11Device5_CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView1(This,pResource,pDesc1,ppUAView1) ) + +#define ID3D11Device5_CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) \ + ( (This)->lpVtbl -> CreateRenderTargetView1(This,pResource,pDesc1,ppRTView1) ) + +#define ID3D11Device5_CreateQuery1(This,pQueryDesc1,ppQuery1) \ + ( (This)->lpVtbl -> CreateQuery1(This,pQueryDesc1,ppQuery1) ) + +#define ID3D11Device5_GetImmediateContext3(This,ppImmediateContext) \ + ( (This)->lpVtbl -> GetImmediateContext3(This,ppImmediateContext) ) + +#define ID3D11Device5_CreateDeferredContext3(This,ContextFlags,ppDeferredContext) \ + ( (This)->lpVtbl -> CreateDeferredContext3(This,ContextFlags,ppDeferredContext) ) + +#define ID3D11Device5_WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> WriteToSubresource(This,pDstResource,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D11Device5_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,pSrcResource,SrcSubresource,pSrcBox) ) + + +#define ID3D11Device5_RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) \ + ( (This)->lpVtbl -> RegisterDeviceRemovedEvent(This,hEvent,pdwCookie) ) + +#define ID3D11Device5_UnregisterDeviceRemoved(This,dwCookie) \ + ( (This)->lpVtbl -> UnregisterDeviceRemoved(This,dwCookie) ) + + +#define ID3D11Device5_OpenSharedFence(This,hFence,ReturnedInterface,ppFence) \ + ( (This)->lpVtbl -> OpenSharedFence(This,hFence,ReturnedInterface,ppFence) ) + +#define ID3D11Device5_CreateFence(This,InitialValue,Flags,ReturnedInterface,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,ReturnedInterface,ppFence) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Device5_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11Multithread_INTERFACE_DEFINED__ +#define __ID3D11Multithread_INTERFACE_DEFINED__ + +/* interface ID3D11Multithread */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Multithread; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B7E4E00-342C-4106-A19F-4F2704F689F0") + ID3D11Multithread : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE Enter( void) = 0; + + virtual void STDMETHODCALLTYPE Leave( void) = 0; + + virtual BOOL STDMETHODCALLTYPE SetMultithreadProtected( + /* [annotation] */ + _In_ BOOL bMTProtect) = 0; + + virtual BOOL STDMETHODCALLTYPE GetMultithreadProtected( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11MultithreadVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Multithread * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Multithread * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Multithread * This); + + DECLSPEC_XFGVIRT(ID3D11Multithread, Enter) + void ( STDMETHODCALLTYPE *Enter )( + ID3D11Multithread * This); + + DECLSPEC_XFGVIRT(ID3D11Multithread, Leave) + void ( STDMETHODCALLTYPE *Leave )( + ID3D11Multithread * This); + + DECLSPEC_XFGVIRT(ID3D11Multithread, SetMultithreadProtected) + BOOL ( STDMETHODCALLTYPE *SetMultithreadProtected )( + ID3D11Multithread * This, + /* [annotation] */ + _In_ BOOL bMTProtect); + + DECLSPEC_XFGVIRT(ID3D11Multithread, GetMultithreadProtected) + BOOL ( STDMETHODCALLTYPE *GetMultithreadProtected )( + ID3D11Multithread * This); + + END_INTERFACE + } ID3D11MultithreadVtbl; + + interface ID3D11Multithread + { + CONST_VTBL struct ID3D11MultithreadVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Multithread_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Multithread_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Multithread_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Multithread_Enter(This) \ + ( (This)->lpVtbl -> Enter(This) ) + +#define ID3D11Multithread_Leave(This) \ + ( (This)->lpVtbl -> Leave(This) ) + +#define ID3D11Multithread_SetMultithreadProtected(This,bMTProtect) \ + ( (This)->lpVtbl -> SetMultithreadProtected(This,bMTProtect) ) + +#define ID3D11Multithread_GetMultithreadProtected(This) \ + ( (This)->lpVtbl -> GetMultithreadProtected(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Multithread_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11VideoContext2_INTERFACE_DEFINED__ +#define __ID3D11VideoContext2_INTERFACE_DEFINED__ + +/* interface ID3D11VideoContext2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoContext2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4E7374C-6243-4D1B-AE87-52B4F740E261") + ID3D11VideoContext2 : public ID3D11VideoContext1 + { + public: + virtual void STDMETHODCALLTYPE VideoProcessorSetOutputHDRMetaData( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ DXGI_HDR_METADATA_TYPE Type, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _In_reads_bytes_opt_(Size) const void *pHDRMetaData) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetOutputHDRMetaData( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ DXGI_HDR_METADATA_TYPE *pType, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _Out_writes_bytes_opt_(Size) void *pMetaData) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorSetStreamHDRMetaData( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ DXGI_HDR_METADATA_TYPE Type, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _In_reads_bytes_opt_(Size) const void *pHDRMetaData) = 0; + + virtual void STDMETHODCALLTYPE VideoProcessorGetStreamHDRMetaData( + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ DXGI_HDR_METADATA_TYPE *pType, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _Out_writes_bytes_opt_(Size) void *pMetaData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoContext2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoContext2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoContext2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoContext2 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, GetDecoderBuffer) + HRESULT ( STDMETHODCALLTYPE *GetDecoderBuffer )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + D3D11_VIDEO_DECODER_BUFFER_TYPE Type, + /* [annotation] */ + _Out_ UINT *pBufferSize, + /* [annotation] */ + _Outptr_result_bytebuffer_(*pBufferSize) void **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, ReleaseDecoderBuffer) + HRESULT ( STDMETHODCALLTYPE *ReleaseDecoderBuffer )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ D3D11_VIDEO_DECODER_BUFFER_TYPE Type); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderBeginFrame) + HRESULT ( STDMETHODCALLTYPE *DecoderBeginFrame )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ ID3D11VideoDecoderOutputView *pView, + UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderEndFrame) + HRESULT ( STDMETHODCALLTYPE *DecoderEndFrame )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, SubmitDecoderBuffers) + HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC *pBufferDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *DecoderExtension )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_EXTENSION *pExtensionData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputTargetRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputTargetRect )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputBackgroundColor) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputBackgroundColor )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL YCbCr, + /* [annotation] */ + _In_ const D3D11_VIDEO_COLOR *pColor); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputAlphaFillMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputAlphaFillMode )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE AlphaFillMode, + /* [annotation] */ + _In_ UINT StreamIndex); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputConstriction) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputConstriction )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ SIZE Size); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputStereoMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputStereoMode )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetOutputExtension )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputTargetRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputTargetRect )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *Enabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputBackgroundColor) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputBackgroundColor )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pYCbCr, + /* [annotation] */ + _Out_ D3D11_VIDEO_COLOR *pColor); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputAlphaFillMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputAlphaFillMode )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *pAlphaFillMode, + /* [annotation] */ + _Out_ UINT *pStreamIndex); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputConstriction) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputConstriction )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ SIZE *pSize); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputStereoMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputStereoMode )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pEnabled); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetOutputExtension )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Out_writes_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamFrameFormat) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFrameFormat )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_FRAME_FORMAT FrameFormat); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamOutputRate) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamOutputRate )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate, + /* [annotation] */ + _In_ BOOL RepeatFrame, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pCustomRate); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamSourceRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamSourceRect )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamDestRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamDestRect )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamAlpha) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAlpha )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ FLOAT Alpha); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamPalette) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPalette )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ UINT Count, + /* [annotation] */ + _In_reads_opt_(Count) const UINT *pEntries); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamPixelAspectRatio) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPixelAspectRatio )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pSourceAspectRatio, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pDestinationAspectRatio); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamLumaKey) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamLumaKey )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ FLOAT Lower, + /* [annotation] */ + _In_ FLOAT Upper); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamStereoFormat) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamStereoFormat )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format, + /* [annotation] */ + _In_ BOOL LeftViewFrame0, + /* [annotation] */ + _In_ BOOL BaseViewFrame0, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode, + /* [annotation] */ + _In_ int MonoOffset); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamAutoProcessingMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAutoProcessingMode )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamFilter) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFilter )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ int Level); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetStreamExtension )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamFrameFormat) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFrameFormat )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_FRAME_FORMAT *pFrameFormat); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamOutputRate) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamOutputRate )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *pOutputRate, + /* [annotation] */ + _Out_ BOOL *pRepeatFrame, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pCustomRate); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamSourceRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamSourceRect )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamDestRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamDestRect )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamAlpha) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAlpha )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ FLOAT *pAlpha); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamPalette) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPalette )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ UINT Count, + /* [annotation] */ + _Out_writes_(Count) UINT *pEntries); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamPixelAspectRatio) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPixelAspectRatio )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pSourceAspectRatio, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pDestinationAspectRatio); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamLumaKey) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamLumaKey )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ FLOAT *pLower, + /* [annotation] */ + _Out_ FLOAT *pUpper); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamStereoFormat) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamStereoFormat )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *pFormat, + /* [annotation] */ + _Out_ BOOL *pLeftViewFrame0, + /* [annotation] */ + _Out_ BOOL *pBaseViewFrame0, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *pFlipMode, + /* [annotation] */ + _Out_ int *MonoOffset); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamAutoProcessingMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAutoProcessingMode )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamFilter) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFilter )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ int *pLevel); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetStreamExtension )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Out_writes_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorBlt) + HRESULT ( STDMETHODCALLTYPE *VideoProcessorBlt )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ ID3D11VideoProcessorOutputView *pView, + /* [annotation] */ + _In_ UINT OutputFrame, + /* [annotation] */ + _In_ UINT StreamCount, + /* [annotation] */ + _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM *pStreams); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, NegotiateCryptoSessionKeyExchange) + HRESULT ( STDMETHODCALLTYPE *NegotiateCryptoSessionKeyExchange )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, EncryptionBlt) + void ( STDMETHODCALLTYPE *EncryptionBlt )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ ID3D11Texture2D *pSrcSurface, + /* [annotation] */ + _In_ ID3D11Texture2D *pDstSurface, + /* [annotation] */ + _In_ UINT IVSize, + /* [annotation] */ + _Inout_opt_bytecount_(IVSize) void *pIV); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecryptionBlt) + void ( STDMETHODCALLTYPE *DecryptionBlt )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ ID3D11Texture2D *pSrcSurface, + /* [annotation] */ + _In_ ID3D11Texture2D *pDstSurface, + /* [annotation] */ + _In_opt_ D3D11_ENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo, + /* [annotation] */ + _In_ UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey, + /* [annotation] */ + _In_ UINT IVSize, + /* [annotation] */ + _Inout_opt_bytecount_(IVSize) void *pIV); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, StartSessionKeyRefresh) + void ( STDMETHODCALLTYPE *StartSessionKeyRefresh )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT RandomNumberSize, + /* [annotation] */ + _Out_writes_bytes_(RandomNumberSize) void *pRandomNumber); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, FinishSessionKeyRefresh) + void ( STDMETHODCALLTYPE *FinishSessionKeyRefresh )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, GetEncryptionBltKey) + HRESULT ( STDMETHODCALLTYPE *GetEncryptionBltKey )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT KeySize, + /* [annotation] */ + _Out_writes_bytes_(KeySize) void *pReadbackKey); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, NegotiateAuthenticatedChannelKeyExchange) + HRESULT ( STDMETHODCALLTYPE *NegotiateAuthenticatedChannelKeyExchange )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, QueryAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *QueryAuthenticatedChannel )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT InputSize, + /* [annotation] */ + _In_reads_bytes_(InputSize) const void *pInput, + /* [annotation] */ + _In_ UINT OutputSize, + /* [annotation] */ + _Out_writes_bytes_(OutputSize) void *pOutput); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, ConfigureAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *ConfigureAuthenticatedChannel )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT InputSize, + /* [annotation] */ + _In_reads_bytes_(InputSize) const void *pInput, + /* [annotation] */ + _Out_ D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *pOutput); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamRotation) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamRotation )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_ROTATION Rotation); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamRotation) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamRotation )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_ROTATION *pRotation); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, SubmitDecoderBuffers1) + HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers1 )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC1 *pBufferDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, GetDataForNewHardwareKey) + HRESULT ( STDMETHODCALLTYPE *GetDataForNewHardwareKey )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT PrivateInputSize, + /* [annotation] */ + _In_reads_(PrivateInputSize) const void *pPrivatInputData, + /* [annotation] */ + _Out_ UINT64 *pPrivateOutputData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, CheckCryptoSessionStatus) + HRESULT ( STDMETHODCALLTYPE *CheckCryptoSessionStatus )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _Out_ D3D11_CRYPTO_SESSION_STATUS *pStatus); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, DecoderEnableDownsampling) + HRESULT ( STDMETHODCALLTYPE *DecoderEnableDownsampling )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc, + /* [annotation] */ + _In_ UINT ReferenceFrameCount); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, DecoderUpdateDownsampling) + HRESULT ( STDMETHODCALLTYPE *DecoderUpdateDownsampling )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetOutputColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace1 )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE ColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetOutputShaderUsage) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputShaderUsage )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL ShaderUsage); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetOutputColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace1 )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetOutputShaderUsage) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputShaderUsage )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pShaderUsage); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetStreamColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace1 )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE ColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetStreamMirror) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamMirror )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ BOOL FlipHorizontal, + /* [annotation] */ + _In_ BOOL FlipVertical); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetStreamColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace1 )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetStreamMirror) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamMirror )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ BOOL *pFlipHorizontal, + /* [annotation] */ + _Out_ BOOL *pFlipVertical); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetBehaviorHints) + HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetBehaviorHints )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT OutputWidth, + /* [annotation] */ + _In_ UINT OutputHeight, + /* [annotation] */ + _In_ DXGI_FORMAT OutputFormat, + /* [annotation] */ + _In_ UINT StreamCount, + /* [annotation] */ + _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT *pStreams, + /* [annotation] */ + _Out_ UINT *pBehaviorHints); + + DECLSPEC_XFGVIRT(ID3D11VideoContext2, VideoProcessorSetOutputHDRMetaData) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputHDRMetaData )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ DXGI_HDR_METADATA_TYPE Type, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _In_reads_bytes_opt_(Size) const void *pHDRMetaData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext2, VideoProcessorGetOutputHDRMetaData) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputHDRMetaData )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ DXGI_HDR_METADATA_TYPE *pType, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _Out_writes_bytes_opt_(Size) void *pMetaData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext2, VideoProcessorSetStreamHDRMetaData) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamHDRMetaData )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ DXGI_HDR_METADATA_TYPE Type, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _In_reads_bytes_opt_(Size) const void *pHDRMetaData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext2, VideoProcessorGetStreamHDRMetaData) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamHDRMetaData )( + ID3D11VideoContext2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ DXGI_HDR_METADATA_TYPE *pType, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _Out_writes_bytes_opt_(Size) void *pMetaData); + + END_INTERFACE + } ID3D11VideoContext2Vtbl; + + interface ID3D11VideoContext2 + { + CONST_VTBL struct ID3D11VideoContext2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoContext2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoContext2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoContext2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoContext2_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoContext2_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoContext2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoContext2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoContext2_GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) \ + ( (This)->lpVtbl -> GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) ) + +#define ID3D11VideoContext2_ReleaseDecoderBuffer(This,pDecoder,Type) \ + ( (This)->lpVtbl -> ReleaseDecoderBuffer(This,pDecoder,Type) ) + +#define ID3D11VideoContext2_DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) \ + ( (This)->lpVtbl -> DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) ) + +#define ID3D11VideoContext2_DecoderEndFrame(This,pDecoder) \ + ( (This)->lpVtbl -> DecoderEndFrame(This,pDecoder) ) + +#define ID3D11VideoContext2_SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) \ + ( (This)->lpVtbl -> SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) ) + +#define ID3D11VideoContext2_DecoderExtension(This,pDecoder,pExtensionData) \ + ( (This)->lpVtbl -> DecoderExtension(This,pDecoder,pExtensionData) ) + +#define ID3D11VideoContext2_VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) ) + +#define ID3D11VideoContext2_VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) ) + +#define ID3D11VideoContext2_VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext2_VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) ) + +#define ID3D11VideoContext2_VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) ) + +#define ID3D11VideoContext2_VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) ) + +#define ID3D11VideoContext2_VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext2_VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) ) + +#define ID3D11VideoContext2_VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) ) + +#define ID3D11VideoContext2_VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext2_VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) ) + +#define ID3D11VideoContext2_VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) ) + +#define ID3D11VideoContext2_VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) ) + +#define ID3D11VideoContext2_VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext2_VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) \ + ( (This)->lpVtbl -> VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) ) + +#define ID3D11VideoContext2_NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) \ + ( (This)->lpVtbl -> NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) ) + +#define ID3D11VideoContext2_EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) \ + ( (This)->lpVtbl -> EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) ) + +#define ID3D11VideoContext2_DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) \ + ( (This)->lpVtbl -> DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) ) + +#define ID3D11VideoContext2_StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) \ + ( (This)->lpVtbl -> StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) ) + +#define ID3D11VideoContext2_FinishSessionKeyRefresh(This,pCryptoSession) \ + ( (This)->lpVtbl -> FinishSessionKeyRefresh(This,pCryptoSession) ) + +#define ID3D11VideoContext2_GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) \ + ( (This)->lpVtbl -> GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) ) + +#define ID3D11VideoContext2_NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) \ + ( (This)->lpVtbl -> NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) ) + +#define ID3D11VideoContext2_QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) \ + ( (This)->lpVtbl -> QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) ) + +#define ID3D11VideoContext2_ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) \ + ( (This)->lpVtbl -> ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) ) + + +#define ID3D11VideoContext2_SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) \ + ( (This)->lpVtbl -> SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) ) + +#define ID3D11VideoContext2_GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) \ + ( (This)->lpVtbl -> GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) ) + +#define ID3D11VideoContext2_CheckCryptoSessionStatus(This,pCryptoSession,pStatus) \ + ( (This)->lpVtbl -> CheckCryptoSessionStatus(This,pCryptoSession,pStatus) ) + +#define ID3D11VideoContext2_DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) \ + ( (This)->lpVtbl -> DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) ) + +#define ID3D11VideoContext2_DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) \ + ( (This)->lpVtbl -> DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) ) + +#define ID3D11VideoContext2_VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) ) + +#define ID3D11VideoContext2_VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) ) + +#define ID3D11VideoContext2_VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext2_VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) ) + +#define ID3D11VideoContext2_VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) \ + ( (This)->lpVtbl -> VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) ) + + +#define ID3D11VideoContext2_VideoProcessorSetOutputHDRMetaData(This,pVideoProcessor,Type,Size,pHDRMetaData) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputHDRMetaData(This,pVideoProcessor,Type,Size,pHDRMetaData) ) + +#define ID3D11VideoContext2_VideoProcessorGetOutputHDRMetaData(This,pVideoProcessor,pType,Size,pMetaData) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputHDRMetaData(This,pVideoProcessor,pType,Size,pMetaData) ) + +#define ID3D11VideoContext2_VideoProcessorSetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,Type,Size,pHDRMetaData) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,Type,Size,pHDRMetaData) ) + +#define ID3D11VideoContext2_VideoProcessorGetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,pType,Size,pMetaData) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,pType,Size,pMetaData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoContext2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_4_0000_0004 */ +/* [local] */ + +typedef +enum D3D11_FEATURE_VIDEO + { + D3D11_FEATURE_VIDEO_DECODER_HISTOGRAM = 0 + } D3D11_FEATURE_VIDEO; + +typedef +enum D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT + { + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_Y = 0, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_U = 1, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_V = 2, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_R = 0, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_G = 1, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_B = 2, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_A = 3 + } D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT; + +typedef +enum D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS + { + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_NONE = 0, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_Y = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_Y ) , + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_U = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_U ) , + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_V = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_V ) , + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_R = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_R ) , + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_G = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_G ) , + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_B = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_B ) , + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_A = ( 1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_A ) + } D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS ); +typedef struct D3D11_FEATURE_DATA_VIDEO_DECODER_HISTOGRAM + { + D3D11_VIDEO_DECODER_DESC DecoderDesc; + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS Components; + UINT BinCount; + UINT CounterBitDepth; + } D3D11_FEATURE_DATA_VIDEO_DECODER_HISTOGRAM; + +typedef +enum D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS + { + D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAG_NONE = 0 + } D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS ); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0004_v0_0_s_ifspec; + +#ifndef __ID3D11VideoDevice2_INTERFACE_DEFINED__ +#define __ID3D11VideoDevice2_INTERFACE_DEFINED__ + +/* interface ID3D11VideoDevice2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoDevice2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("59C0CB01-35F0-4A70-8F67-87905C906A53") + ID3D11VideoDevice2 : public ID3D11VideoDevice1 + { + public: + virtual HRESULT STDMETHODCALLTYPE CheckFeatureSupport( + D3D11_FEATURE_VIDEO Feature, + /* [annotation] */ + _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE NegotiateCryptoSessionKeyExchangeMT( + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS flags, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoDevice2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoDevice2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoDevice2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoDevice2 * This); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoDecoder) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pVideoDesc, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_CONFIG *pConfig, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoDecoder **ppDecoder); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ UINT RateConversionIndex, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoProcessor **ppVideoProcessor); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *CreateAuthenticatedChannel )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ D3D11_AUTHENTICATED_CHANNEL_TYPE ChannelType, + /* [annotation] */ + _COM_Outptr_ ID3D11AuthenticatedChannel **ppAuthenticatedChannel); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateCryptoSession) + HRESULT ( STDMETHODCALLTYPE *CreateCryptoSession )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ const GUID *pKeyExchangeType, + /* [annotation] */ + _COM_Outptr_ ID3D11CryptoSession **ppCryptoSession); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoDecoderOutputView) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderOutputView )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoDecoderOutputView **ppVDOVView); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessorInputView) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorInputView )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_INPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoProcessorInputView **ppVPIView); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessorOutputView) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorOutputView )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ ID3D11Resource *pResource, + /* [annotation] */ + _In_ ID3D11VideoProcessorEnumerator *pEnum, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_opt_ ID3D11VideoProcessorOutputView **ppVPOView); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CreateVideoProcessorEnumerator) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessorEnumerator )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_CONTENT_DESC *pDesc, + /* [annotation] */ + _COM_Outptr_ ID3D11VideoProcessorEnumerator **ppEnum); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderProfileCount) + UINT ( STDMETHODCALLTYPE *GetVideoDecoderProfileCount )( + ID3D11VideoDevice2 * This); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderProfile) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderProfile )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ GUID *pDecoderProfile); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CheckVideoDecoderFormat) + HRESULT ( STDMETHODCALLTYPE *CheckVideoDecoderFormat )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ DXGI_FORMAT Format, + /* [annotation] */ + _Out_ BOOL *pSupported); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderConfigCount) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderConfigCount )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pDesc, + /* [annotation] */ + _Out_ UINT *pCount); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetVideoDecoderConfig) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderConfig )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pDesc, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ D3D11_VIDEO_DECODER_CONFIG *pConfig); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, GetContentProtectionCaps) + HRESULT ( STDMETHODCALLTYPE *GetContentProtectionCaps )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_opt_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _Out_ D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, CheckCryptoKeyExchange) + HRESULT ( STDMETHODCALLTYPE *CheckCryptoKeyExchange )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ UINT Index, + /* [annotation] */ + _Out_ GUID *pKeyExchangeType); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice1, GetCryptoSessionPrivateDataSize) + HRESULT ( STDMETHODCALLTYPE *GetCryptoSessionPrivateDataSize )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const GUID *pCryptoType, + /* [annotation] */ + _In_opt_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ const GUID *pKeyExchangeType, + /* [annotation] */ + _Out_ UINT *pPrivateInputSize, + /* [annotation] */ + _Out_ UINT *pPrivateOutputSize); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice1, GetVideoDecoderCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderCaps )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const GUID *pDecoderProfile, + /* [annotation] */ + _In_ UINT SampleWidth, + /* [annotation] */ + _In_ UINT SampleHeight, + /* [annotation] */ + _In_ const DXGI_RATIONAL *pFrameRate, + /* [annotation] */ + _In_ UINT BitRate, + /* [annotation] */ + _In_opt_ const GUID *pCryptoType, + /* [annotation] */ + _Out_ UINT *pDecoderCaps); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice1, CheckVideoDecoderDownsampling) + HRESULT ( STDMETHODCALLTYPE *CheckVideoDecoderDownsampling )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig, + /* [annotation] */ + _In_ const DXGI_RATIONAL *pFrameRate, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc, + /* [annotation] */ + _Out_ BOOL *pSupported, + /* [annotation] */ + _Out_ BOOL *pRealTimeHint); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice1, RecommendVideoDecoderDownsampleParameters) + HRESULT ( STDMETHODCALLTYPE *RecommendVideoDecoderDownsampleParameters )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_DESC *pInputDesc, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_CONFIG *pInputConfig, + /* [annotation] */ + _In_ const DXGI_RATIONAL *pFrameRate, + /* [annotation] */ + _Out_ D3D11_VIDEO_SAMPLE_DESC *pRecommendedOutputDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice2, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D11VideoDevice2 * This, + D3D11_FEATURE_VIDEO Feature, + /* [annotation] */ + _Out_writes_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D11VideoDevice2, NegotiateCryptoSessionKeyExchangeMT) + HRESULT ( STDMETHODCALLTYPE *NegotiateCryptoSessionKeyExchangeMT )( + ID3D11VideoDevice2 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS flags, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData); + + END_INTERFACE + } ID3D11VideoDevice2Vtbl; + + interface ID3D11VideoDevice2 + { + CONST_VTBL struct ID3D11VideoDevice2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoDevice2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoDevice2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoDevice2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoDevice2_CreateVideoDecoder(This,pVideoDesc,pConfig,ppDecoder) \ + ( (This)->lpVtbl -> CreateVideoDecoder(This,pVideoDesc,pConfig,ppDecoder) ) + +#define ID3D11VideoDevice2_CreateVideoProcessor(This,pEnum,RateConversionIndex,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,pEnum,RateConversionIndex,ppVideoProcessor) ) + +#define ID3D11VideoDevice2_CreateAuthenticatedChannel(This,ChannelType,ppAuthenticatedChannel) \ + ( (This)->lpVtbl -> CreateAuthenticatedChannel(This,ChannelType,ppAuthenticatedChannel) ) + +#define ID3D11VideoDevice2_CreateCryptoSession(This,pCryptoType,pDecoderProfile,pKeyExchangeType,ppCryptoSession) \ + ( (This)->lpVtbl -> CreateCryptoSession(This,pCryptoType,pDecoderProfile,pKeyExchangeType,ppCryptoSession) ) + +#define ID3D11VideoDevice2_CreateVideoDecoderOutputView(This,pResource,pDesc,ppVDOVView) \ + ( (This)->lpVtbl -> CreateVideoDecoderOutputView(This,pResource,pDesc,ppVDOVView) ) + +#define ID3D11VideoDevice2_CreateVideoProcessorInputView(This,pResource,pEnum,pDesc,ppVPIView) \ + ( (This)->lpVtbl -> CreateVideoProcessorInputView(This,pResource,pEnum,pDesc,ppVPIView) ) + +#define ID3D11VideoDevice2_CreateVideoProcessorOutputView(This,pResource,pEnum,pDesc,ppVPOView) \ + ( (This)->lpVtbl -> CreateVideoProcessorOutputView(This,pResource,pEnum,pDesc,ppVPOView) ) + +#define ID3D11VideoDevice2_CreateVideoProcessorEnumerator(This,pDesc,ppEnum) \ + ( (This)->lpVtbl -> CreateVideoProcessorEnumerator(This,pDesc,ppEnum) ) + +#define ID3D11VideoDevice2_GetVideoDecoderProfileCount(This) \ + ( (This)->lpVtbl -> GetVideoDecoderProfileCount(This) ) + +#define ID3D11VideoDevice2_GetVideoDecoderProfile(This,Index,pDecoderProfile) \ + ( (This)->lpVtbl -> GetVideoDecoderProfile(This,Index,pDecoderProfile) ) + +#define ID3D11VideoDevice2_CheckVideoDecoderFormat(This,pDecoderProfile,Format,pSupported) \ + ( (This)->lpVtbl -> CheckVideoDecoderFormat(This,pDecoderProfile,Format,pSupported) ) + +#define ID3D11VideoDevice2_GetVideoDecoderConfigCount(This,pDesc,pCount) \ + ( (This)->lpVtbl -> GetVideoDecoderConfigCount(This,pDesc,pCount) ) + +#define ID3D11VideoDevice2_GetVideoDecoderConfig(This,pDesc,Index,pConfig) \ + ( (This)->lpVtbl -> GetVideoDecoderConfig(This,pDesc,Index,pConfig) ) + +#define ID3D11VideoDevice2_GetContentProtectionCaps(This,pCryptoType,pDecoderProfile,pCaps) \ + ( (This)->lpVtbl -> GetContentProtectionCaps(This,pCryptoType,pDecoderProfile,pCaps) ) + +#define ID3D11VideoDevice2_CheckCryptoKeyExchange(This,pCryptoType,pDecoderProfile,Index,pKeyExchangeType) \ + ( (This)->lpVtbl -> CheckCryptoKeyExchange(This,pCryptoType,pDecoderProfile,Index,pKeyExchangeType) ) + +#define ID3D11VideoDevice2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoDevice2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoDevice2_GetCryptoSessionPrivateDataSize(This,pCryptoType,pDecoderProfile,pKeyExchangeType,pPrivateInputSize,pPrivateOutputSize) \ + ( (This)->lpVtbl -> GetCryptoSessionPrivateDataSize(This,pCryptoType,pDecoderProfile,pKeyExchangeType,pPrivateInputSize,pPrivateOutputSize) ) + +#define ID3D11VideoDevice2_GetVideoDecoderCaps(This,pDecoderProfile,SampleWidth,SampleHeight,pFrameRate,BitRate,pCryptoType,pDecoderCaps) \ + ( (This)->lpVtbl -> GetVideoDecoderCaps(This,pDecoderProfile,SampleWidth,SampleHeight,pFrameRate,BitRate,pCryptoType,pDecoderCaps) ) + +#define ID3D11VideoDevice2_CheckVideoDecoderDownsampling(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pOutputDesc,pSupported,pRealTimeHint) \ + ( (This)->lpVtbl -> CheckVideoDecoderDownsampling(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pOutputDesc,pSupported,pRealTimeHint) ) + +#define ID3D11VideoDevice2_RecommendVideoDecoderDownsampleParameters(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pRecommendedOutputDesc) \ + ( (This)->lpVtbl -> RecommendVideoDecoderDownsampleParameters(This,pInputDesc,InputColorSpace,pInputConfig,pFrameRate,pRecommendedOutputDesc) ) + + +#define ID3D11VideoDevice2_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D11VideoDevice2_NegotiateCryptoSessionKeyExchangeMT(This,pCryptoSession,flags,DataSize,pData) \ + ( (This)->lpVtbl -> NegotiateCryptoSessionKeyExchangeMT(This,pCryptoSession,flags,DataSize,pData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoDevice2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_4_0000_0005 */ +/* [local] */ + +typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC2 + { + D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType; + UINT DataOffset; + UINT DataSize; + /* [annotation] */ + _Field_size_opt_(IVSize) void *pIV; + UINT IVSize; + /* [annotation] */ + _Field_size_opt_(SubSampleMappingCount) D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK *pSubSampleMappingBlock; + UINT SubSampleMappingCount; + UINT cBlocksStripeEncrypted; + UINT cBlocksStripeClear; + } D3D11_VIDEO_DECODER_BUFFER_DESC2; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0005_v0_0_s_ifspec; + +#ifndef __ID3D11VideoContext3_INTERFACE_DEFINED__ +#define __ID3D11VideoContext3_INTERFACE_DEFINED__ + +/* interface ID3D11VideoContext3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11VideoContext3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A9E2FAA0-CB39-418F-A0B7-D8AAD4DE672E") + ID3D11VideoContext3 : public ID3D11VideoContext2 + { + public: + virtual HRESULT STDMETHODCALLTYPE DecoderBeginFrame1( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ ID3D11VideoDecoderOutputView *pView, + UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey, + /* [annotation] */ + _In_range_(0, D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS) UINT NumComponentHistograms, + /* [annotation] */ + _In_reads_opt_(NumComponentHistograms) const UINT *pHistogramOffsets, + /* [annotation] */ + _In_reads_opt_(NumComponentHistograms) ID3D11Buffer *const *ppHistogramBuffers) = 0; + + virtual HRESULT STDMETHODCALLTYPE SubmitDecoderBuffers2( + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC2 *pBufferDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11VideoContext3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11VideoContext3 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11VideoContext3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11VideoContext3 * This); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetDevice) + void ( STDMETHODCALLTYPE *GetDevice )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _Outptr_ ID3D11Device **ppDevice); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _Inout_ UINT *pDataSize, + /* [annotation] */ + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D11DeviceChild, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ REFGUID guid, + /* [annotation] */ + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, GetDecoderBuffer) + HRESULT ( STDMETHODCALLTYPE *GetDecoderBuffer )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + D3D11_VIDEO_DECODER_BUFFER_TYPE Type, + /* [annotation] */ + _Out_ UINT *pBufferSize, + /* [annotation] */ + _Outptr_result_bytebuffer_(*pBufferSize) void **ppBuffer); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, ReleaseDecoderBuffer) + HRESULT ( STDMETHODCALLTYPE *ReleaseDecoderBuffer )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ D3D11_VIDEO_DECODER_BUFFER_TYPE Type); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderBeginFrame) + HRESULT ( STDMETHODCALLTYPE *DecoderBeginFrame )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ ID3D11VideoDecoderOutputView *pView, + UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderEndFrame) + HRESULT ( STDMETHODCALLTYPE *DecoderEndFrame )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, SubmitDecoderBuffers) + HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC *pBufferDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecoderExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *DecoderExtension )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ const D3D11_VIDEO_DECODER_EXTENSION *pExtensionData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputTargetRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputTargetRect )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputBackgroundColor) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputBackgroundColor )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL YCbCr, + /* [annotation] */ + _In_ const D3D11_VIDEO_COLOR *pColor); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputAlphaFillMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputAlphaFillMode )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE AlphaFillMode, + /* [annotation] */ + _In_ UINT StreamIndex); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputConstriction) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputConstriction )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ SIZE Size); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputStereoMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputStereoMode )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetOutputExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetOutputExtension )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputTargetRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputTargetRect )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *Enabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputBackgroundColor) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputBackgroundColor )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pYCbCr, + /* [annotation] */ + _Out_ D3D11_VIDEO_COLOR *pColor); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputAlphaFillMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputAlphaFillMode )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE *pAlphaFillMode, + /* [annotation] */ + _Out_ UINT *pStreamIndex); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputConstriction) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputConstriction )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ SIZE *pSize); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputStereoMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputStereoMode )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pEnabled); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetOutputExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetOutputExtension )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Out_writes_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamFrameFormat) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFrameFormat )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_FRAME_FORMAT FrameFormat); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamOutputRate) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamOutputRate )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate, + /* [annotation] */ + _In_ BOOL RepeatFrame, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pCustomRate); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamSourceRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamSourceRect )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamDestRect) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamDestRect )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamAlpha) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAlpha )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ FLOAT Alpha); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamPalette) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPalette )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ UINT Count, + /* [annotation] */ + _In_reads_opt_(Count) const UINT *pEntries); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamPixelAspectRatio) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamPixelAspectRatio )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pSourceAspectRatio, + /* [annotation] */ + _In_opt_ const DXGI_RATIONAL *pDestinationAspectRatio); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamLumaKey) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamLumaKey )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ FLOAT Lower, + /* [annotation] */ + _In_ FLOAT Upper); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamStereoFormat) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamStereoFormat )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format, + /* [annotation] */ + _In_ BOOL LeftViewFrame0, + /* [annotation] */ + _In_ BOOL BaseViewFrame0, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode, + /* [annotation] */ + _In_ int MonoOffset); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamAutoProcessingMode) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamAutoProcessingMode )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamFilter) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamFilter )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ int Level); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorSetStreamExtension )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _In_ void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamFrameFormat) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFrameFormat )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_FRAME_FORMAT *pFrameFormat); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamColorSpace) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_COLOR_SPACE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamOutputRate) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamOutputRate )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_OUTPUT_RATE *pOutputRate, + /* [annotation] */ + _Out_ BOOL *pRepeatFrame, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pCustomRate); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamSourceRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamSourceRect )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamDestRect) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamDestRect )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ RECT *pRect); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamAlpha) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAlpha )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ FLOAT *pAlpha); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamPalette) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPalette )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ UINT Count, + /* [annotation] */ + _Out_writes_(Count) UINT *pEntries); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamPixelAspectRatio) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamPixelAspectRatio )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pSourceAspectRatio, + /* [annotation] */ + _Out_ DXGI_RATIONAL *pDestinationAspectRatio); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamLumaKey) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamLumaKey )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ FLOAT *pLower, + /* [annotation] */ + _Out_ FLOAT *pUpper); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamStereoFormat) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamStereoFormat )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FORMAT *pFormat, + /* [annotation] */ + _Out_ BOOL *pLeftViewFrame0, + /* [annotation] */ + _Out_ BOOL *pBaseViewFrame0, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *pFlipMode, + /* [annotation] */ + _Out_ int *MonoOffset); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamAutoProcessingMode) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamAutoProcessingMode )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnabled); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamFilter) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamFilter )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_FILTER Filter, + /* [annotation] */ + _Out_ BOOL *pEnabled, + /* [annotation] */ + _Out_ int *pLevel); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamExtension) + APP_DEPRECATED_HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetStreamExtension )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ const GUID *pExtensionGuid, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Out_writes_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorBlt) + HRESULT ( STDMETHODCALLTYPE *VideoProcessorBlt )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ ID3D11VideoProcessorOutputView *pView, + /* [annotation] */ + _In_ UINT OutputFrame, + /* [annotation] */ + _In_ UINT StreamCount, + /* [annotation] */ + _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM *pStreams); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, NegotiateCryptoSessionKeyExchange) + HRESULT ( STDMETHODCALLTYPE *NegotiateCryptoSessionKeyExchange )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, EncryptionBlt) + void ( STDMETHODCALLTYPE *EncryptionBlt )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ ID3D11Texture2D *pSrcSurface, + /* [annotation] */ + _In_ ID3D11Texture2D *pDstSurface, + /* [annotation] */ + _In_ UINT IVSize, + /* [annotation] */ + _Inout_opt_bytecount_(IVSize) void *pIV); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, DecryptionBlt) + void ( STDMETHODCALLTYPE *DecryptionBlt )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ ID3D11Texture2D *pSrcSurface, + /* [annotation] */ + _In_ ID3D11Texture2D *pDstSurface, + /* [annotation] */ + _In_opt_ D3D11_ENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo, + /* [annotation] */ + _In_ UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey, + /* [annotation] */ + _In_ UINT IVSize, + /* [annotation] */ + _Inout_opt_bytecount_(IVSize) void *pIV); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, StartSessionKeyRefresh) + void ( STDMETHODCALLTYPE *StartSessionKeyRefresh )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT RandomNumberSize, + /* [annotation] */ + _Out_writes_bytes_(RandomNumberSize) void *pRandomNumber); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, FinishSessionKeyRefresh) + void ( STDMETHODCALLTYPE *FinishSessionKeyRefresh )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, GetEncryptionBltKey) + HRESULT ( STDMETHODCALLTYPE *GetEncryptionBltKey )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT KeySize, + /* [annotation] */ + _Out_writes_bytes_(KeySize) void *pReadbackKey); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, NegotiateAuthenticatedChannelKeyExchange) + HRESULT ( STDMETHODCALLTYPE *NegotiateAuthenticatedChannelKeyExchange )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT DataSize, + /* [annotation] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, QueryAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *QueryAuthenticatedChannel )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT InputSize, + /* [annotation] */ + _In_reads_bytes_(InputSize) const void *pInput, + /* [annotation] */ + _In_ UINT OutputSize, + /* [annotation] */ + _Out_writes_bytes_(OutputSize) void *pOutput); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, ConfigureAuthenticatedChannel) + HRESULT ( STDMETHODCALLTYPE *ConfigureAuthenticatedChannel )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11AuthenticatedChannel *pChannel, + /* [annotation] */ + _In_ UINT InputSize, + /* [annotation] */ + _In_reads_bytes_(InputSize) const void *pInput, + /* [annotation] */ + _Out_ D3D11_AUTHENTICATED_CONFIGURE_OUTPUT *pOutput); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorSetStreamRotation) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamRotation )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ D3D11_VIDEO_PROCESSOR_ROTATION Rotation); + + DECLSPEC_XFGVIRT(ID3D11VideoContext, VideoProcessorGetStreamRotation) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamRotation )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ D3D11_VIDEO_PROCESSOR_ROTATION *pRotation); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, SubmitDecoderBuffers1) + HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers1 )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC1 *pBufferDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, GetDataForNewHardwareKey) + HRESULT ( STDMETHODCALLTYPE *GetDataForNewHardwareKey )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _In_ UINT PrivateInputSize, + /* [annotation] */ + _In_reads_(PrivateInputSize) const void *pPrivatInputData, + /* [annotation] */ + _Out_ UINT64 *pPrivateOutputData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, CheckCryptoSessionStatus) + HRESULT ( STDMETHODCALLTYPE *CheckCryptoSessionStatus )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11CryptoSession *pCryptoSession, + /* [annotation] */ + _Out_ D3D11_CRYPTO_SESSION_STATUS *pStatus); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, DecoderEnableDownsampling) + HRESULT ( STDMETHODCALLTYPE *DecoderEnableDownsampling )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE InputColorSpace, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc, + /* [annotation] */ + _In_ UINT ReferenceFrameCount); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, DecoderUpdateDownsampling) + HRESULT ( STDMETHODCALLTYPE *DecoderUpdateDownsampling )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ const D3D11_VIDEO_SAMPLE_DESC *pOutputDesc); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetOutputColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputColorSpace1 )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE ColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetOutputShaderUsage) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputShaderUsage )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ BOOL ShaderUsage); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetOutputColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputColorSpace1 )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetOutputShaderUsage) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputShaderUsage )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ BOOL *pShaderUsage); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetStreamColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamColorSpace1 )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ DXGI_COLOR_SPACE_TYPE ColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorSetStreamMirror) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamMirror )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ BOOL Enable, + /* [annotation] */ + _In_ BOOL FlipHorizontal, + /* [annotation] */ + _In_ BOOL FlipVertical); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetStreamColorSpace1) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamColorSpace1 )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ DXGI_COLOR_SPACE_TYPE *pColorSpace); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetStreamMirror) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamMirror )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ BOOL *pEnable, + /* [annotation] */ + _Out_ BOOL *pFlipHorizontal, + /* [annotation] */ + _Out_ BOOL *pFlipVertical); + + DECLSPEC_XFGVIRT(ID3D11VideoContext1, VideoProcessorGetBehaviorHints) + HRESULT ( STDMETHODCALLTYPE *VideoProcessorGetBehaviorHints )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT OutputWidth, + /* [annotation] */ + _In_ UINT OutputHeight, + /* [annotation] */ + _In_ DXGI_FORMAT OutputFormat, + /* [annotation] */ + _In_ UINT StreamCount, + /* [annotation] */ + _In_reads_(StreamCount) const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT *pStreams, + /* [annotation] */ + _Out_ UINT *pBehaviorHints); + + DECLSPEC_XFGVIRT(ID3D11VideoContext2, VideoProcessorSetOutputHDRMetaData) + void ( STDMETHODCALLTYPE *VideoProcessorSetOutputHDRMetaData )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ DXGI_HDR_METADATA_TYPE Type, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _In_reads_bytes_opt_(Size) const void *pHDRMetaData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext2, VideoProcessorGetOutputHDRMetaData) + void ( STDMETHODCALLTYPE *VideoProcessorGetOutputHDRMetaData )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _Out_ DXGI_HDR_METADATA_TYPE *pType, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _Out_writes_bytes_opt_(Size) void *pMetaData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext2, VideoProcessorSetStreamHDRMetaData) + void ( STDMETHODCALLTYPE *VideoProcessorSetStreamHDRMetaData )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _In_ DXGI_HDR_METADATA_TYPE Type, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _In_reads_bytes_opt_(Size) const void *pHDRMetaData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext2, VideoProcessorGetStreamHDRMetaData) + void ( STDMETHODCALLTYPE *VideoProcessorGetStreamHDRMetaData )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoProcessor *pVideoProcessor, + /* [annotation] */ + _In_ UINT StreamIndex, + /* [annotation] */ + _Out_ DXGI_HDR_METADATA_TYPE *pType, + /* [annotation] */ + _In_ UINT Size, + /* [annotation] */ + _Out_writes_bytes_opt_(Size) void *pMetaData); + + DECLSPEC_XFGVIRT(ID3D11VideoContext3, DecoderBeginFrame1) + HRESULT ( STDMETHODCALLTYPE *DecoderBeginFrame1 )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ ID3D11VideoDecoderOutputView *pView, + UINT ContentKeySize, + /* [annotation] */ + _In_reads_bytes_opt_(ContentKeySize) const void *pContentKey, + /* [annotation] */ + _In_range_(0, D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS) UINT NumComponentHistograms, + /* [annotation] */ + _In_reads_opt_(NumComponentHistograms) const UINT *pHistogramOffsets, + /* [annotation] */ + _In_reads_opt_(NumComponentHistograms) ID3D11Buffer *const *ppHistogramBuffers); + + DECLSPEC_XFGVIRT(ID3D11VideoContext3, SubmitDecoderBuffers2) + HRESULT ( STDMETHODCALLTYPE *SubmitDecoderBuffers2 )( + ID3D11VideoContext3 * This, + /* [annotation] */ + _In_ ID3D11VideoDecoder *pDecoder, + /* [annotation] */ + _In_ UINT NumBuffers, + /* [annotation] */ + _In_reads_(NumBuffers) const D3D11_VIDEO_DECODER_BUFFER_DESC2 *pBufferDesc); + + END_INTERFACE + } ID3D11VideoContext3Vtbl; + + interface ID3D11VideoContext3 + { + CONST_VTBL struct ID3D11VideoContext3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11VideoContext3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11VideoContext3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11VideoContext3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11VideoContext3_GetDevice(This,ppDevice) \ + ( (This)->lpVtbl -> GetDevice(This,ppDevice) ) + +#define ID3D11VideoContext3_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D11VideoContext3_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D11VideoContext3_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + + +#define ID3D11VideoContext3_GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) \ + ( (This)->lpVtbl -> GetDecoderBuffer(This,pDecoder,Type,pBufferSize,ppBuffer) ) + +#define ID3D11VideoContext3_ReleaseDecoderBuffer(This,pDecoder,Type) \ + ( (This)->lpVtbl -> ReleaseDecoderBuffer(This,pDecoder,Type) ) + +#define ID3D11VideoContext3_DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) \ + ( (This)->lpVtbl -> DecoderBeginFrame(This,pDecoder,pView,ContentKeySize,pContentKey) ) + +#define ID3D11VideoContext3_DecoderEndFrame(This,pDecoder) \ + ( (This)->lpVtbl -> DecoderEndFrame(This,pDecoder) ) + +#define ID3D11VideoContext3_SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) \ + ( (This)->lpVtbl -> SubmitDecoderBuffers(This,pDecoder,NumBuffers,pBufferDesc) ) + +#define ID3D11VideoContext3_DecoderExtension(This,pDecoder,pExtensionData) \ + ( (This)->lpVtbl -> DecoderExtension(This,pDecoder,pExtensionData) ) + +#define ID3D11VideoContext3_VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputTargetRect(This,pVideoProcessor,Enable,pRect) ) + +#define ID3D11VideoContext3_VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputBackgroundColor(This,pVideoProcessor,YCbCr,pColor) ) + +#define ID3D11VideoContext3_VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext3_VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputAlphaFillMode(This,pVideoProcessor,AlphaFillMode,StreamIndex) ) + +#define ID3D11VideoContext3_VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputConstriction(This,pVideoProcessor,Enable,Size) ) + +#define ID3D11VideoContext3_VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputStereoMode(This,pVideoProcessor,Enable) ) + +#define ID3D11VideoContext3_VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext3_VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputTargetRect(This,pVideoProcessor,Enabled,pRect) ) + +#define ID3D11VideoContext3_VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputBackgroundColor(This,pVideoProcessor,pYCbCr,pColor) ) + +#define ID3D11VideoContext3_VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext3_VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputAlphaFillMode(This,pVideoProcessor,pAlphaFillMode,pStreamIndex) ) + +#define ID3D11VideoContext3_VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputConstriction(This,pVideoProcessor,pEnabled,pSize) ) + +#define ID3D11VideoContext3_VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputStereoMode(This,pVideoProcessor,pEnabled) ) + +#define ID3D11VideoContext3_VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputExtension(This,pVideoProcessor,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamFrameFormat(This,pVideoProcessor,StreamIndex,FrameFormat) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamOutputRate(This,pVideoProcessor,StreamIndex,OutputRate,RepeatFrame,pCustomRate) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamSourceRect(This,pVideoProcessor,StreamIndex,Enable,pRect) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamDestRect(This,pVideoProcessor,StreamIndex,Enable,pRect) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamAlpha(This,pVideoProcessor,StreamIndex,Enable,Alpha) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,Enable,pSourceAspectRatio,pDestinationAspectRatio) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamLumaKey(This,pVideoProcessor,StreamIndex,Enable,Lower,Upper) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamStereoFormat(This,pVideoProcessor,StreamIndex,Enable,Format,LeftViewFrame0,BaseViewFrame0,FlipMode,MonoOffset) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,Enable) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,Enable,Level) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamFrameFormat(This,pVideoProcessor,StreamIndex,pFrameFormat) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamOutputRate(This,pVideoProcessor,StreamIndex,pOutputRate,pRepeatFrame,pCustomRate) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamSourceRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamDestRect(This,pVideoProcessor,StreamIndex,pEnabled,pRect) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamAlpha(This,pVideoProcessor,StreamIndex,pEnabled,pAlpha) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamPalette(This,pVideoProcessor,StreamIndex,Count,pEntries) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamPixelAspectRatio(This,pVideoProcessor,StreamIndex,pEnabled,pSourceAspectRatio,pDestinationAspectRatio) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamLumaKey(This,pVideoProcessor,StreamIndex,pEnabled,pLower,pUpper) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamStereoFormat(This,pVideoProcessor,StreamIndex,pEnable,pFormat,pLeftViewFrame0,pBaseViewFrame0,pFlipMode,MonoOffset) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamAutoProcessingMode(This,pVideoProcessor,StreamIndex,pEnabled) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamFilter(This,pVideoProcessor,StreamIndex,Filter,pEnabled,pLevel) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamExtension(This,pVideoProcessor,StreamIndex,pExtensionGuid,DataSize,pData) ) + +#define ID3D11VideoContext3_VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) \ + ( (This)->lpVtbl -> VideoProcessorBlt(This,pVideoProcessor,pView,OutputFrame,StreamCount,pStreams) ) + +#define ID3D11VideoContext3_NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) \ + ( (This)->lpVtbl -> NegotiateCryptoSessionKeyExchange(This,pCryptoSession,DataSize,pData) ) + +#define ID3D11VideoContext3_EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) \ + ( (This)->lpVtbl -> EncryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,IVSize,pIV) ) + +#define ID3D11VideoContext3_DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) \ + ( (This)->lpVtbl -> DecryptionBlt(This,pCryptoSession,pSrcSurface,pDstSurface,pEncryptedBlockInfo,ContentKeySize,pContentKey,IVSize,pIV) ) + +#define ID3D11VideoContext3_StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) \ + ( (This)->lpVtbl -> StartSessionKeyRefresh(This,pCryptoSession,RandomNumberSize,pRandomNumber) ) + +#define ID3D11VideoContext3_FinishSessionKeyRefresh(This,pCryptoSession) \ + ( (This)->lpVtbl -> FinishSessionKeyRefresh(This,pCryptoSession) ) + +#define ID3D11VideoContext3_GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) \ + ( (This)->lpVtbl -> GetEncryptionBltKey(This,pCryptoSession,KeySize,pReadbackKey) ) + +#define ID3D11VideoContext3_NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) \ + ( (This)->lpVtbl -> NegotiateAuthenticatedChannelKeyExchange(This,pChannel,DataSize,pData) ) + +#define ID3D11VideoContext3_QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) \ + ( (This)->lpVtbl -> QueryAuthenticatedChannel(This,pChannel,InputSize,pInput,OutputSize,pOutput) ) + +#define ID3D11VideoContext3_ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) \ + ( (This)->lpVtbl -> ConfigureAuthenticatedChannel(This,pChannel,InputSize,pInput,pOutput) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamRotation(This,pVideoProcessor,StreamIndex,Enable,Rotation) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamRotation(This,pVideoProcessor,StreamIndex,pEnable,pRotation) ) + + +#define ID3D11VideoContext3_SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) \ + ( (This)->lpVtbl -> SubmitDecoderBuffers1(This,pDecoder,NumBuffers,pBufferDesc) ) + +#define ID3D11VideoContext3_GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) \ + ( (This)->lpVtbl -> GetDataForNewHardwareKey(This,pCryptoSession,PrivateInputSize,pPrivatInputData,pPrivateOutputData) ) + +#define ID3D11VideoContext3_CheckCryptoSessionStatus(This,pCryptoSession,pStatus) \ + ( (This)->lpVtbl -> CheckCryptoSessionStatus(This,pCryptoSession,pStatus) ) + +#define ID3D11VideoContext3_DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) \ + ( (This)->lpVtbl -> DecoderEnableDownsampling(This,pDecoder,InputColorSpace,pOutputDesc,ReferenceFrameCount) ) + +#define ID3D11VideoContext3_DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) \ + ( (This)->lpVtbl -> DecoderUpdateDownsampling(This,pDecoder,pOutputDesc) ) + +#define ID3D11VideoContext3_VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputColorSpace1(This,pVideoProcessor,ColorSpace) ) + +#define ID3D11VideoContext3_VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputShaderUsage(This,pVideoProcessor,ShaderUsage) ) + +#define ID3D11VideoContext3_VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputColorSpace1(This,pVideoProcessor,pColorSpace) ) + +#define ID3D11VideoContext3_VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputShaderUsage(This,pVideoProcessor,pShaderUsage) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamColorSpace1(This,pVideoProcessor,StreamIndex,ColorSpace) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamMirror(This,pVideoProcessor,StreamIndex,Enable,FlipHorizontal,FlipVertical) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamColorSpace1(This,pVideoProcessor,StreamIndex,pColorSpace) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamMirror(This,pVideoProcessor,StreamIndex,pEnable,pFlipHorizontal,pFlipVertical) ) + +#define ID3D11VideoContext3_VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) \ + ( (This)->lpVtbl -> VideoProcessorGetBehaviorHints(This,pVideoProcessor,OutputWidth,OutputHeight,OutputFormat,StreamCount,pStreams,pBehaviorHints) ) + + +#define ID3D11VideoContext3_VideoProcessorSetOutputHDRMetaData(This,pVideoProcessor,Type,Size,pHDRMetaData) \ + ( (This)->lpVtbl -> VideoProcessorSetOutputHDRMetaData(This,pVideoProcessor,Type,Size,pHDRMetaData) ) + +#define ID3D11VideoContext3_VideoProcessorGetOutputHDRMetaData(This,pVideoProcessor,pType,Size,pMetaData) \ + ( (This)->lpVtbl -> VideoProcessorGetOutputHDRMetaData(This,pVideoProcessor,pType,Size,pMetaData) ) + +#define ID3D11VideoContext3_VideoProcessorSetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,Type,Size,pHDRMetaData) \ + ( (This)->lpVtbl -> VideoProcessorSetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,Type,Size,pHDRMetaData) ) + +#define ID3D11VideoContext3_VideoProcessorGetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,pType,Size,pMetaData) \ + ( (This)->lpVtbl -> VideoProcessorGetStreamHDRMetaData(This,pVideoProcessor,StreamIndex,pType,Size,pMetaData) ) + + +#define ID3D11VideoContext3_DecoderBeginFrame1(This,pDecoder,pView,ContentKeySize,pContentKey,NumComponentHistograms,pHistogramOffsets,ppHistogramBuffers) \ + ( (This)->lpVtbl -> DecoderBeginFrame1(This,pDecoder,pView,ContentKeySize,pContentKey,NumComponentHistograms,pHistogramOffsets,ppHistogramBuffers) ) + +#define ID3D11VideoContext3_SubmitDecoderBuffers2(This,pDecoder,NumBuffers,pBufferDesc) \ + ( (This)->lpVtbl -> SubmitDecoderBuffers2(This,pDecoder,NumBuffers,pBufferDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11VideoContext3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11_4_0000_0006 */ +/* [local] */ + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS4 + { + BOOL ExtendedNV12SharedTextureSupported; + } D3D11_FEATURE_DATA_D3D11_OPTIONS4; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +DEFINE_GUID(IID_ID3D11Device4,0x8992ab71,0x02e6,0x4b8d,0xba,0x48,0xb0,0x56,0xdc,0xda,0x42,0xc4); +DEFINE_GUID(IID_ID3D11Device5,0x8ffde202,0xa0e7,0x45df,0x9e,0x01,0xe8,0x37,0x80,0x1b,0x5e,0xa0); +DEFINE_GUID(IID_ID3D11Multithread,0x9B7E4E00,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0); +DEFINE_GUID(IID_ID3D11VideoContext2,0xC4E7374C,0x6243,0x4D1B,0xAE,0x87,0x52,0xB4,0xF7,0x40,0xE2,0x61); +DEFINE_GUID(IID_ID3D11VideoDevice2,0x59C0CB01,0x35F0,0x4A70,0x8F,0x67,0x87,0x90,0x5C,0x90,0x6A,0x53); +DEFINE_GUID(IID_ID3D11VideoContext3,0xA9E2FAA0,0xCB39,0x418F,0xA0,0xB7,0xD8,0xAA,0xD4,0xDE,0x67,0x2E); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11_4_0000_0006_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_4.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_4.idl new file mode 100644 index 0000000000000000000000000000000000000000..7feeb6b547536cd91d2ea171fdae6eaa5caac856 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11_4.idl @@ -0,0 +1,248 @@ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// D3D11.4 IDL +// +// Contains interface definitions for the D3D11.4 API. +// +// Copyright (C) Microsoft Corporation +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +import "oaidl.idl"; +import "ocidl.idl"; +import "dxgi1_5.idl"; +import "d3dcommon.idl"; + +import "d3d11_3.idl"; // +cpp_quote( "#ifdef __cplusplus" ) +cpp_quote( "}" ) // extern C +cpp_quote( "#endif" ) +cpp_quote( "#include \"d3d11_3.h\" //") // +cpp_quote( "#ifdef __cplusplus" ) +cpp_quote( "extern \"C\"{" ) +cpp_quote( "#endif" ) + +#pragma region App Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Device4 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 8992ab71-02e6-4b8d-ba48-b056dcda42c4 ), object, local, pointer_default( unique ) ] +interface ID3D11Device4 + : ID3D11Device3 +{ + HRESULT RegisterDeviceRemovedEvent( + [annotation("_In_")] HANDLE hEvent, + [annotation("_Out_")] DWORD* pdwCookie + ); + + void UnregisterDeviceRemoved( [annotation("_In_")] DWORD dwCookie ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Device5 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +[ uuid( 8ffde202-a0e7-45df-9e01-e837801b5ea0 ), object, local, pointer_default( unique ) ] +interface ID3D11Device5 + : ID3D11Device4 +{ + HRESULT OpenSharedFence( + [annotation("_In_")] HANDLE hFence, + [annotation("_In_")] REFIID ReturnedInterface, + [annotation("_COM_Outptr_opt_")] void ** ppFence + ); + + HRESULT CreateFence( + [annotation("_In_")] UINT64 InitialValue, + [annotation("_In_")] D3D11_FENCE_FLAG Flags, + [annotation("_In_")] REFIID ReturnedInterface, + [annotation("_COM_Outptr_opt_")] void ** ppFence + ); +}; + +//================================================================================================================================== +// +// Multithread Interface +// +//================================================================================================================================== +[ uuid( 9B7E4E00-342C-4106-A19F-4F2704F689F0 ), object, local, pointer_default( unique ) ] +interface ID3D11Multithread + : IUnknown +{ + void Enter(); + void Leave(); + BOOL SetMultithreadProtected( [annotation("_In_")] BOOL bMTProtect ); + BOOL GetMultithreadProtected(); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoContext2 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[uuid(C4E7374C-6243-4D1B-AE87-52B4F740E261), object, local, pointer_default(unique)] +interface ID3D11VideoContext2 + : ID3D11VideoContext1 +{ + void VideoProcessorSetOutputHDRMetaData( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] DXGI_HDR_METADATA_TYPE Type, + [annotation("_In_")] UINT Size, + [annotation("_In_reads_bytes_opt_(Size)")] const void* pHDRMetaData + ); + + void VideoProcessorGetOutputHDRMetaData( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_Out_")] DXGI_HDR_METADATA_TYPE* pType, + [annotation("_In_")] UINT Size, + [annotation("_Out_writes_bytes_opt_(Size)")] void* pMetaData + ); + + void VideoProcessorSetStreamHDRMetaData( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_In_")] DXGI_HDR_METADATA_TYPE Type, + [annotation("_In_")] UINT Size, + [annotation("_In_reads_bytes_opt_(Size)")] const void* pHDRMetaData + ); + + void VideoProcessorGetStreamHDRMetaData( + [annotation("_In_")] ID3D11VideoProcessor* pVideoProcessor, + [annotation("_In_")] UINT StreamIndex, + [annotation("_Out_")] DXGI_HDR_METADATA_TYPE* pType, + [annotation("_In_")] UINT Size, + [annotation("_Out_writes_bytes_opt_(Size)")] void* pMetaData + ); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoDevice2 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D11_FEATURE_VIDEO +{ + D3D11_FEATURE_VIDEO_DECODER_HISTOGRAM = 0, +} D3D11_FEATURE_VIDEO; + +typedef enum D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT +{ + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_Y = 0, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_U = 1, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_V = 2, + + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_R = 0, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_G = 1, + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_B = 2, + + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_A = 3, +} D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT; + +typedef enum D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS +{ + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_NONE = 0x0, + + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_Y = (1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_Y), + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_U = (1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_U), + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_V = (1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_V), + + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_R = (1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_R), + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_G = (1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_G), + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_B = (1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_B), + + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAG_A = (1 << D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_A), +} D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS );") + +typedef struct D3D11_FEATURE_DATA_VIDEO_DECODER_HISTOGRAM +{ + D3D11_VIDEO_DECODER_DESC DecoderDesc; // in + D3D11_VIDEO_DECODER_HISTOGRAM_COMPONENT_FLAGS Components; // out + UINT BinCount; // out + UINT CounterBitDepth; // out +} D3D11_FEATURE_DATA_VIDEO_DECODER_HISTOGRAM; + +typedef enum D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS +{ + D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAG_NONE = 0x0, +} D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS );") + +[uuid(59C0CB01-35F0-4A70-8F67-87905C906A53), object, local, pointer_default(unique)] +interface ID3D11VideoDevice2 + : ID3D11VideoDevice1 +{ + HRESULT CheckFeatureSupport( + D3D11_FEATURE_VIDEO Feature, + [annotation("_Out_writes_bytes_(FeatureSupportDataSize)")] void* pFeatureSupportData, + UINT FeatureSupportDataSize + ); + + HRESULT NegotiateCryptoSessionKeyExchangeMT( + [annotation("_In_")] ID3D11CryptoSession* pCryptoSession, + [annotation("_In_")] D3D11_CRYPTO_SESSION_KEY_EXCHANGE_FLAGS flags, + [annotation("_In_")] UINT DataSize, + [annotation("_Inout_updates_bytes_(DataSize)")] void* pData); +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// VideoContext3 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC2 +{ + D3D11_VIDEO_DECODER_BUFFER_TYPE BufferType; + UINT DataOffset; + UINT DataSize; + [annotation("_Field_size_opt_(IVSize)")] void* pIV; + UINT IVSize; + [annotation("_Field_size_opt_(SubSampleMappingCount)")] D3D11_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK* pSubSampleMappingBlock; + UINT SubSampleMappingCount; + UINT cBlocksStripeEncrypted; + UINT cBlocksStripeClear; +} D3D11_VIDEO_DECODER_BUFFER_DESC2; + +[uuid(A9E2FAA0-CB39-418F-A0B7-D8AAD4DE672E), object, local, pointer_default(unique)] +interface ID3D11VideoContext3 + : ID3D11VideoContext2 +{ + HRESULT DecoderBeginFrame1( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder, + [annotation("_In_")] ID3D11VideoDecoderOutputView* pView, + UINT ContentKeySize, + [annotation("_In_reads_bytes_opt_(ContentKeySize)")] const void* pContentKey, + [annotation("_In_range_(0, D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS)")] UINT NumComponentHistograms, + [annotation("_In_reads_opt_(NumComponentHistograms)")] const UINT* pHistogramOffsets, + [annotation("_In_reads_opt_(NumComponentHistograms)")] ID3D11Buffer* const* ppHistogramBuffers + ); + + HRESULT SubmitDecoderBuffers2( + [annotation("_In_")] ID3D11VideoDecoder* pDecoder, + [annotation("_In_")] UINT NumBuffers, + [annotation("_In_reads_(NumBuffers)")] const D3D11_VIDEO_DECODER_BUFFER_DESC2* pBufferDesc); + +}; + +typedef struct D3D11_FEATURE_DATA_D3D11_OPTIONS4 +{ + BOOL ExtendedNV12SharedTextureSupported; +} D3D11_FEATURE_DATA_D3D11_OPTIONS4; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +cpp_quote( "DEFINE_GUID(IID_ID3D11Device4,0x8992ab71,0x02e6,0x4b8d,0xba,0x48,0xb0,0x56,0xdc,0xda,0x42,0xc4);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Device5,0x8ffde202,0xa0e7,0x45df,0x9e,0x01,0xe8,0x37,0x80,0x1b,0x5e,0xa0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11Multithread,0x9B7E4E00,0x342C,0x4106,0xA1,0x9F,0x4F,0x27,0x04,0xF6,0x89,0xF0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoContext2,0xC4E7374C,0x6243,0x4D1B,0xAE,0x87,0x52,0xB4,0xF7,0x40,0xE2,0x61);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoDevice2,0x59C0CB01,0x35F0,0x4A70,0x8F,0x67,0x87,0x90,0x5C,0x90,0x6A,0x53);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11VideoContext3,0xA9E2FAA0,0xCB39,0x418F,0xA0,0xB7,0xD8,0xAA,0xD4,0xDE,0x67,0x2E);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11on12.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11on12.h new file mode 100644 index 0000000000000000000000000000000000000000..42eee530852f69d8fec65965b83c3c50db7d4827 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11on12.h @@ -0,0 +1,578 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d11on12_h__ +#define __d3d11on12_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D11On12Device_FWD_DEFINED__ +#define __ID3D11On12Device_FWD_DEFINED__ +typedef interface ID3D11On12Device ID3D11On12Device; + +#endif /* __ID3D11On12Device_FWD_DEFINED__ */ + + +#ifndef __ID3D11On12Device1_FWD_DEFINED__ +#define __ID3D11On12Device1_FWD_DEFINED__ +typedef interface ID3D11On12Device1 ID3D11On12Device1; + +#endif /* __ID3D11On12Device1_FWD_DEFINED__ */ + + +#ifndef __ID3D11On12Device2_FWD_DEFINED__ +#define __ID3D11On12Device2_FWD_DEFINED__ +typedef interface ID3D11On12Device2 ID3D11On12Device2; + +#endif /* __ID3D11On12Device2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "d3d11.h" +#include "d3d12.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d11on12_0000_0000 */ +/* [local] */ + +#include +#pragma region App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) + +/////////////////////////////////////////////////////////////////////////// +// D3D11On12CreateDevice +// ------------------ +// +// pDevice +// Specifies a pre-existing D3D12 device to use for D3D11 interop. +// May not be NULL. +// Flags +// Any of those documented for D3D11CreateDeviceAndSwapChain. +// pFeatureLevels +// Array of any of the following: +// D3D_FEATURE_LEVEL_12_1 +// D3D_FEATURE_LEVEL_12_0 +// D3D_FEATURE_LEVEL_11_1 +// D3D_FEATURE_LEVEL_11_0 +// D3D_FEATURE_LEVEL_10_1 +// D3D_FEATURE_LEVEL_10_0 +// D3D_FEATURE_LEVEL_9_3 +// D3D_FEATURE_LEVEL_9_2 +// D3D_FEATURE_LEVEL_9_1 +// The first feature level which is less than or equal to the +// D3D12 device's feature level will be used to perform D3D11 validation. +// Creation will fail if no acceptable feature levels are provided. +// Providing NULL will default to the D3D12 device's feature level. +// FeatureLevels +// Size of feature levels array. +// ppCommandQueues +// Array of unique queues for D3D11On12 to use. Valid queue types: +// 3D command queue. +// Flags must be compatible with device flags, and its NodeMask must +// be a subset of the NodeMask provided to this API. +// NumQueues +// Size of command queue array. +// NodeMask +// Which node of the D3D12 device to use. Only 1 bit may be set. +// ppDevice +// Pointer to returned interface. May be NULL. +// ppImmediateContext +// Pointer to returned interface. May be NULL. +// pChosenFeatureLevel +// Pointer to returned feature level. May be NULL. +// +// Return Values +// Any of those documented for +// D3D11CreateDevice +// +/////////////////////////////////////////////////////////////////////////// +typedef HRESULT (WINAPI* PFN_D3D11ON12_CREATE_DEVICE)( _In_ IUnknown*, UINT, + _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL*, UINT FeatureLevels, + _In_reads_opt_( NumQueues ) IUnknown* CONST*, UINT NumQueues, + UINT, _COM_Outptr_opt_ ID3D11Device**, _COM_Outptr_opt_ ID3D11DeviceContext**, + _Out_opt_ D3D_FEATURE_LEVEL* ); + +HRESULT WINAPI D3D11On12CreateDevice( + _In_ IUnknown* pDevice, + UINT Flags, + _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL* pFeatureLevels, + UINT FeatureLevels, + _In_reads_opt_( NumQueues ) IUnknown* CONST* ppCommandQueues, + UINT NumQueues, + UINT NodeMask, + _COM_Outptr_opt_ ID3D11Device** ppDevice, + _COM_Outptr_opt_ ID3D11DeviceContext** ppImmediateContext, + _Out_opt_ D3D_FEATURE_LEVEL* pChosenFeatureLevel ); + +typedef struct D3D11_RESOURCE_FLAGS + { + UINT BindFlags; + UINT MiscFlags; + UINT CPUAccessFlags; + UINT StructureByteStride; + } D3D11_RESOURCE_FLAGS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11on12_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11on12_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D11On12Device_INTERFACE_DEFINED__ +#define __ID3D11On12Device_INTERFACE_DEFINED__ + +/* interface ID3D11On12Device */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11On12Device; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("85611e73-70a9-490e-9614-a9e302777904") + ID3D11On12Device : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateWrappedResource( + _In_ IUnknown *pResource12, + _In_ const D3D11_RESOURCE_FLAGS *pFlags11, + D3D12_RESOURCE_STATES InState, + D3D12_RESOURCE_STATES OutState, + REFIID riid, + _COM_Outptr_opt_ void **ppResource11) = 0; + + virtual void STDMETHODCALLTYPE ReleaseWrappedResources( + _In_reads_( NumResources ) ID3D11Resource *const *ppResources, + UINT NumResources) = 0; + + virtual void STDMETHODCALLTYPE AcquireWrappedResources( + _In_reads_( NumResources ) ID3D11Resource *const *ppResources, + UINT NumResources) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11On12DeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11On12Device * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11On12Device * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11On12Device * This); + + DECLSPEC_XFGVIRT(ID3D11On12Device, CreateWrappedResource) + HRESULT ( STDMETHODCALLTYPE *CreateWrappedResource )( + ID3D11On12Device * This, + _In_ IUnknown *pResource12, + _In_ const D3D11_RESOURCE_FLAGS *pFlags11, + D3D12_RESOURCE_STATES InState, + D3D12_RESOURCE_STATES OutState, + REFIID riid, + _COM_Outptr_opt_ void **ppResource11); + + DECLSPEC_XFGVIRT(ID3D11On12Device, ReleaseWrappedResources) + void ( STDMETHODCALLTYPE *ReleaseWrappedResources )( + ID3D11On12Device * This, + _In_reads_( NumResources ) ID3D11Resource *const *ppResources, + UINT NumResources); + + DECLSPEC_XFGVIRT(ID3D11On12Device, AcquireWrappedResources) + void ( STDMETHODCALLTYPE *AcquireWrappedResources )( + ID3D11On12Device * This, + _In_reads_( NumResources ) ID3D11Resource *const *ppResources, + UINT NumResources); + + END_INTERFACE + } ID3D11On12DeviceVtbl; + + interface ID3D11On12Device + { + CONST_VTBL struct ID3D11On12DeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11On12Device_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11On12Device_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11On12Device_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11On12Device_CreateWrappedResource(This,pResource12,pFlags11,InState,OutState,riid,ppResource11) \ + ( (This)->lpVtbl -> CreateWrappedResource(This,pResource12,pFlags11,InState,OutState,riid,ppResource11) ) + +#define ID3D11On12Device_ReleaseWrappedResources(This,ppResources,NumResources) \ + ( (This)->lpVtbl -> ReleaseWrappedResources(This,ppResources,NumResources) ) + +#define ID3D11On12Device_AcquireWrappedResources(This,ppResources,NumResources) \ + ( (This)->lpVtbl -> AcquireWrappedResources(This,ppResources,NumResources) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11On12Device_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11On12Device1_INTERFACE_DEFINED__ +#define __ID3D11On12Device1_INTERFACE_DEFINED__ + +/* interface ID3D11On12Device1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11On12Device1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bdb64df4-ea2f-4c70-b861-aaab1258bb5d") + ID3D11On12Device1 : public ID3D11On12Device + { + public: + virtual HRESULT STDMETHODCALLTYPE GetD3D12Device( + REFIID riid, + _COM_Outptr_ void **ppvDevice) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11On12Device1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11On12Device1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11On12Device1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11On12Device1 * This); + + DECLSPEC_XFGVIRT(ID3D11On12Device, CreateWrappedResource) + HRESULT ( STDMETHODCALLTYPE *CreateWrappedResource )( + ID3D11On12Device1 * This, + _In_ IUnknown *pResource12, + _In_ const D3D11_RESOURCE_FLAGS *pFlags11, + D3D12_RESOURCE_STATES InState, + D3D12_RESOURCE_STATES OutState, + REFIID riid, + _COM_Outptr_opt_ void **ppResource11); + + DECLSPEC_XFGVIRT(ID3D11On12Device, ReleaseWrappedResources) + void ( STDMETHODCALLTYPE *ReleaseWrappedResources )( + ID3D11On12Device1 * This, + _In_reads_( NumResources ) ID3D11Resource *const *ppResources, + UINT NumResources); + + DECLSPEC_XFGVIRT(ID3D11On12Device, AcquireWrappedResources) + void ( STDMETHODCALLTYPE *AcquireWrappedResources )( + ID3D11On12Device1 * This, + _In_reads_( NumResources ) ID3D11Resource *const *ppResources, + UINT NumResources); + + DECLSPEC_XFGVIRT(ID3D11On12Device1, GetD3D12Device) + HRESULT ( STDMETHODCALLTYPE *GetD3D12Device )( + ID3D11On12Device1 * This, + REFIID riid, + _COM_Outptr_ void **ppvDevice); + + END_INTERFACE + } ID3D11On12Device1Vtbl; + + interface ID3D11On12Device1 + { + CONST_VTBL struct ID3D11On12Device1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11On12Device1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11On12Device1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11On12Device1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11On12Device1_CreateWrappedResource(This,pResource12,pFlags11,InState,OutState,riid,ppResource11) \ + ( (This)->lpVtbl -> CreateWrappedResource(This,pResource12,pFlags11,InState,OutState,riid,ppResource11) ) + +#define ID3D11On12Device1_ReleaseWrappedResources(This,ppResources,NumResources) \ + ( (This)->lpVtbl -> ReleaseWrappedResources(This,ppResources,NumResources) ) + +#define ID3D11On12Device1_AcquireWrappedResources(This,ppResources,NumResources) \ + ( (This)->lpVtbl -> AcquireWrappedResources(This,ppResources,NumResources) ) + + +#define ID3D11On12Device1_GetD3D12Device(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetD3D12Device(This,riid,ppvDevice) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11On12Device1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11On12Device2_INTERFACE_DEFINED__ +#define __ID3D11On12Device2_INTERFACE_DEFINED__ + +/* interface ID3D11On12Device2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11On12Device2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("dc90f331-4740-43fa-866e-67f12cb58223") + ID3D11On12Device2 : public ID3D11On12Device1 + { + public: + virtual HRESULT STDMETHODCALLTYPE UnwrapUnderlyingResource( + _In_ ID3D11Resource *pResource11, + _In_ ID3D12CommandQueue *pCommandQueue, + REFIID riid, + _COM_Outptr_ void **ppvResource12) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReturnUnderlyingResource( + _In_ ID3D11Resource *pResource11, + UINT NumSync, + _In_reads_(NumSync) UINT64 *pSignalValues, + _In_reads_(NumSync) ID3D12Fence **ppFences) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11On12Device2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11On12Device2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11On12Device2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11On12Device2 * This); + + DECLSPEC_XFGVIRT(ID3D11On12Device, CreateWrappedResource) + HRESULT ( STDMETHODCALLTYPE *CreateWrappedResource )( + ID3D11On12Device2 * This, + _In_ IUnknown *pResource12, + _In_ const D3D11_RESOURCE_FLAGS *pFlags11, + D3D12_RESOURCE_STATES InState, + D3D12_RESOURCE_STATES OutState, + REFIID riid, + _COM_Outptr_opt_ void **ppResource11); + + DECLSPEC_XFGVIRT(ID3D11On12Device, ReleaseWrappedResources) + void ( STDMETHODCALLTYPE *ReleaseWrappedResources )( + ID3D11On12Device2 * This, + _In_reads_( NumResources ) ID3D11Resource *const *ppResources, + UINT NumResources); + + DECLSPEC_XFGVIRT(ID3D11On12Device, AcquireWrappedResources) + void ( STDMETHODCALLTYPE *AcquireWrappedResources )( + ID3D11On12Device2 * This, + _In_reads_( NumResources ) ID3D11Resource *const *ppResources, + UINT NumResources); + + DECLSPEC_XFGVIRT(ID3D11On12Device1, GetD3D12Device) + HRESULT ( STDMETHODCALLTYPE *GetD3D12Device )( + ID3D11On12Device2 * This, + REFIID riid, + _COM_Outptr_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D11On12Device2, UnwrapUnderlyingResource) + HRESULT ( STDMETHODCALLTYPE *UnwrapUnderlyingResource )( + ID3D11On12Device2 * This, + _In_ ID3D11Resource *pResource11, + _In_ ID3D12CommandQueue *pCommandQueue, + REFIID riid, + _COM_Outptr_ void **ppvResource12); + + DECLSPEC_XFGVIRT(ID3D11On12Device2, ReturnUnderlyingResource) + HRESULT ( STDMETHODCALLTYPE *ReturnUnderlyingResource )( + ID3D11On12Device2 * This, + _In_ ID3D11Resource *pResource11, + UINT NumSync, + _In_reads_(NumSync) UINT64 *pSignalValues, + _In_reads_(NumSync) ID3D12Fence **ppFences); + + END_INTERFACE + } ID3D11On12Device2Vtbl; + + interface ID3D11On12Device2 + { + CONST_VTBL struct ID3D11On12Device2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11On12Device2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11On12Device2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11On12Device2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11On12Device2_CreateWrappedResource(This,pResource12,pFlags11,InState,OutState,riid,ppResource11) \ + ( (This)->lpVtbl -> CreateWrappedResource(This,pResource12,pFlags11,InState,OutState,riid,ppResource11) ) + +#define ID3D11On12Device2_ReleaseWrappedResources(This,ppResources,NumResources) \ + ( (This)->lpVtbl -> ReleaseWrappedResources(This,ppResources,NumResources) ) + +#define ID3D11On12Device2_AcquireWrappedResources(This,ppResources,NumResources) \ + ( (This)->lpVtbl -> AcquireWrappedResources(This,ppResources,NumResources) ) + + +#define ID3D11On12Device2_GetD3D12Device(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetD3D12Device(This,riid,ppvDevice) ) + + +#define ID3D11On12Device2_UnwrapUnderlyingResource(This,pResource11,pCommandQueue,riid,ppvResource12) \ + ( (This)->lpVtbl -> UnwrapUnderlyingResource(This,pResource11,pCommandQueue,riid,ppvResource12) ) + +#define ID3D11On12Device2_ReturnUnderlyingResource(This,pResource11,NumSync,pSignalValues,ppFences) \ + ( (This)->lpVtbl -> ReturnUnderlyingResource(This,pResource11,NumSync,pSignalValues,ppFences) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11On12Device2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11on12_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion +DEFINE_GUID(IID_ID3D11On12Device,0x85611e73,0x70a9,0x490e,0x96,0x14,0xa9,0xe3,0x02,0x77,0x79,0x04); +DEFINE_GUID(IID_ID3D11On12Device1,0xbdb64df4,0xea2f,0x4c70,0xb8,0x61,0xaa,0xab,0x12,0x58,0xbb,0x5d); +DEFINE_GUID(IID_ID3D11On12Device2,0xdc90f331,0x4740,0x43fa,0x86,0x6e,0x67,0xf1,0x2c,0xb5,0x82,0x23); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11on12_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11on12_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11on12.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11on12.idl new file mode 100644 index 0000000000000000000000000000000000000000..07f34cbe0bf900f4d9bc7e9939fe028f6788701e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11on12.idl @@ -0,0 +1,146 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ +import "oaidl.idl"; +import "ocidl.idl"; + +import "d3d11.idl"; +import "d3d12.idl"; + + +cpp_quote("#include ") + +#pragma region App Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)") + +cpp_quote( "" ) +cpp_quote( "///////////////////////////////////////////////////////////////////////////" ) +cpp_quote( "// D3D11On12CreateDevice" ) +cpp_quote( "// ------------------" ) +cpp_quote( "//" ) +cpp_quote( "// pDevice" ) +cpp_quote( "// Specifies a pre-existing D3D12 device to use for D3D11 interop." ) +cpp_quote( "// May not be NULL." ) +cpp_quote( "// Flags" ) +cpp_quote( "// Any of those documented for D3D11CreateDeviceAndSwapChain." ) +cpp_quote( "// pFeatureLevels" ) +cpp_quote( "// Array of any of the following:" ) +cpp_quote( "// D3D_FEATURE_LEVEL_12_1" ) +cpp_quote( "// D3D_FEATURE_LEVEL_12_0" ) +cpp_quote( "// D3D_FEATURE_LEVEL_11_1" ) +cpp_quote( "// D3D_FEATURE_LEVEL_11_0" ) +cpp_quote( "// D3D_FEATURE_LEVEL_10_1" ) +cpp_quote( "// D3D_FEATURE_LEVEL_10_0" ) +cpp_quote( "// D3D_FEATURE_LEVEL_9_3" ) +cpp_quote( "// D3D_FEATURE_LEVEL_9_2" ) +cpp_quote( "// D3D_FEATURE_LEVEL_9_1" ) +cpp_quote( "// The first feature level which is less than or equal to the" ) +cpp_quote( "// D3D12 device's feature level will be used to perform D3D11 validation." ) +cpp_quote( "// Creation will fail if no acceptable feature levels are provided." ) +cpp_quote( "// Providing NULL will default to the D3D12 device's feature level." ) +cpp_quote( "// FeatureLevels" ) +cpp_quote( "// Size of feature levels array." ) +cpp_quote( "// ppCommandQueues" ) +cpp_quote( "// Array of unique queues for D3D11On12 to use. Valid queue types:" ) +cpp_quote( "// 3D command queue." ) +cpp_quote( "// Flags must be compatible with device flags, and its NodeMask must" ) +cpp_quote( "// be a subset of the NodeMask provided to this API." ) +cpp_quote( "// NumQueues" ) +cpp_quote( "// Size of command queue array." ) +cpp_quote( "// NodeMask" ) +cpp_quote( "// Which node of the D3D12 device to use. Only 1 bit may be set." ) +cpp_quote( "// ppDevice" ) +cpp_quote( "// Pointer to returned interface. May be NULL." ) +cpp_quote( "// ppImmediateContext" ) +cpp_quote( "// Pointer to returned interface. May be NULL." ) +cpp_quote( "// pChosenFeatureLevel" ) +cpp_quote( "// Pointer to returned feature level. May be NULL." ) +cpp_quote( "//" ) +cpp_quote( "// Return Values" ) +cpp_quote( "// Any of those documented for " ) +cpp_quote( "// D3D11CreateDevice" ) +cpp_quote( "//" ) +cpp_quote( "///////////////////////////////////////////////////////////////////////////" ) +cpp_quote( "typedef HRESULT (WINAPI* PFN_D3D11ON12_CREATE_DEVICE)( _In_ IUnknown*, UINT, " ) +cpp_quote( " _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL*, UINT FeatureLevels, " ) +cpp_quote( " _In_reads_opt_( NumQueues ) IUnknown* CONST*, UINT NumQueues, " ) +cpp_quote( " UINT, _COM_Outptr_opt_ ID3D11Device**, _COM_Outptr_opt_ ID3D11DeviceContext**, " ) +cpp_quote( " _Out_opt_ D3D_FEATURE_LEVEL* );" ) +cpp_quote( "" ) +cpp_quote( "HRESULT WINAPI D3D11On12CreateDevice(" ) +cpp_quote( " _In_ IUnknown* pDevice," ) +cpp_quote( " UINT Flags," ) +cpp_quote( " _In_reads_opt_( FeatureLevels ) CONST D3D_FEATURE_LEVEL* pFeatureLevels," ) +cpp_quote( " UINT FeatureLevels," ) +cpp_quote( " _In_reads_opt_( NumQueues ) IUnknown* CONST* ppCommandQueues," ) +cpp_quote( " UINT NumQueues," ) +cpp_quote( " UINT NodeMask," ) +cpp_quote( " _COM_Outptr_opt_ ID3D11Device** ppDevice," ) +cpp_quote( " _COM_Outptr_opt_ ID3D11DeviceContext** ppImmediateContext," ) +cpp_quote( " _Out_opt_ D3D_FEATURE_LEVEL* pChosenFeatureLevel );" ) +cpp_quote( "" ) + +typedef struct D3D11_RESOURCE_FLAGS +{ + UINT BindFlags; + UINT MiscFlags; + UINT CPUAccessFlags; + UINT StructureByteStride; +} D3D11_RESOURCE_FLAGS; + +[ uuid( 85611e73-70a9-490e-9614-a9e302777904 ), object, local, pointer_default( unique ) ] +interface ID3D11On12Device + : IUnknown +{ + HRESULT CreateWrappedResource( + [annotation("_In_")] IUnknown* pResource12, + [annotation("_In_")] const D3D11_RESOURCE_FLAGS* pFlags11, + D3D12_RESOURCE_STATES InState, + D3D12_RESOURCE_STATES OutState, + [in] REFIID riid, // Expected: D3D11 resource interface + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppResource11 + ); + + void ReleaseWrappedResources( + [annotation("_In_reads_( NumResources )")] ID3D11Resource* const* ppResources, + UINT NumResources + ); + void AcquireWrappedResources( + [annotation("_In_reads_( NumResources )")] ID3D11Resource* const* ppResources, + UINT NumResources + ); +} + +[ uuid( bdb64df4-ea2f-4c70-b861-aaab1258bb5d ), object, local, pointer_default( unique ) ] +interface ID3D11On12Device1 + : ID3D11On12Device +{ + HRESULT GetD3D12Device(REFIID riid, [annotation("_COM_Outptr_")] void** ppvDevice); +} + +[ uuid( dc90f331-4740-43fa-866e-67f12cb58223 ), object, local, pointer_default( unique ) ] +interface ID3D11On12Device2 + : ID3D11On12Device1 +{ + HRESULT UnwrapUnderlyingResource( + [annotation("_In_")] ID3D11Resource* pResource11, + [annotation("_In_")] ID3D12CommandQueue* pCommandQueue, + REFIID riid, + [annotation("_COM_Outptr_")] void** ppvResource12 ); + + HRESULT ReturnUnderlyingResource( + [annotation("_In_")] ID3D11Resource* pResource11, + UINT NumSync, + [annotation("_In_reads_(NumSync) ")] UINT64* pSignalValues, + [annotation("_In_reads_(NumSync) ")] ID3D12Fence** ppFences ); +} + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */") +#pragma endregion + +cpp_quote( "DEFINE_GUID(IID_ID3D11On12Device,0x85611e73,0x70a9,0x490e,0x96,0x14,0xa9,0xe3,0x02,0x77,0x79,0x04);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11On12Device1,0xbdb64df4,0xea2f,0x4c70,0xb8,0x61,0xaa,0xab,0x12,0x58,0xbb,0x5d);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11On12Device2,0xdc90f331,0x4740,0x43fa,0x86,0x6e,0x67,0xf1,0x2c,0xb5,0x82,0x23);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11sdklayers.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11sdklayers.h new file mode 100644 index 0000000000000000000000000000000000000000..cb6631fd0263fcf13dc065cddf25ba41b9f7484f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11sdklayers.h @@ -0,0 +1,2707 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d11sdklayers_h__ +#define __d3d11sdklayers_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D11Debug_FWD_DEFINED__ +#define __ID3D11Debug_FWD_DEFINED__ +typedef interface ID3D11Debug ID3D11Debug; + +#endif /* __ID3D11Debug_FWD_DEFINED__ */ + + +#ifndef __ID3D11SwitchToRef_FWD_DEFINED__ +#define __ID3D11SwitchToRef_FWD_DEFINED__ +typedef interface ID3D11SwitchToRef ID3D11SwitchToRef; + +#endif /* __ID3D11SwitchToRef_FWD_DEFINED__ */ + + +#ifndef __ID3D11TracingDevice_FWD_DEFINED__ +#define __ID3D11TracingDevice_FWD_DEFINED__ +typedef interface ID3D11TracingDevice ID3D11TracingDevice; + +#endif /* __ID3D11TracingDevice_FWD_DEFINED__ */ + + +#ifndef __ID3D11RefTrackingOptions_FWD_DEFINED__ +#define __ID3D11RefTrackingOptions_FWD_DEFINED__ +typedef interface ID3D11RefTrackingOptions ID3D11RefTrackingOptions; + +#endif /* __ID3D11RefTrackingOptions_FWD_DEFINED__ */ + + +#ifndef __ID3D11RefDefaultTrackingOptions_FWD_DEFINED__ +#define __ID3D11RefDefaultTrackingOptions_FWD_DEFINED__ +typedef interface ID3D11RefDefaultTrackingOptions ID3D11RefDefaultTrackingOptions; + +#endif /* __ID3D11RefDefaultTrackingOptions_FWD_DEFINED__ */ + + +#ifndef __ID3D11InfoQueue_FWD_DEFINED__ +#define __ID3D11InfoQueue_FWD_DEFINED__ +typedef interface ID3D11InfoQueue ID3D11InfoQueue; + +#endif /* __ID3D11InfoQueue_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "d3d11.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d11sdklayers_0000_0000 */ +/* [local] */ + +#include +#pragma region Application Family +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#define D3D11_SDK_LAYERS_VERSION ( 1 ) + +#define D3D11_DEBUG_FEATURE_FLUSH_PER_RENDER_OP ( 0x1 ) + +#define D3D11_DEBUG_FEATURE_FINISH_PER_RENDER_OP ( 0x2 ) + +#define D3D11_DEBUG_FEATURE_PRESENT_PER_RENDER_OP ( 0x4 ) + +#define D3D11_DEBUG_FEATURE_ALWAYS_DISCARD_OFFERED_RESOURCE ( 0x8 ) + +#define D3D11_DEBUG_FEATURE_NEVER_DISCARD_OFFERED_RESOURCE ( 0x10 ) + +#define D3D11_DEBUG_FEATURE_AVOID_BEHAVIOR_CHANGING_DEBUG_AIDS ( 0x40 ) + +#define D3D11_DEBUG_FEATURE_DISABLE_TILED_RESOURCE_MAPPING_TRACKING_AND_VALIDATION ( 0x80 ) + +typedef +enum D3D11_RLDO_FLAGS + { + D3D11_RLDO_SUMMARY = 0x1, + D3D11_RLDO_DETAIL = 0x2, + D3D11_RLDO_IGNORE_INTERNAL = 0x4 + } D3D11_RLDO_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D11_RLDO_FLAGS) + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11sdklayers_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11sdklayers_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D11Debug_INTERFACE_DEFINED__ +#define __ID3D11Debug_INTERFACE_DEFINED__ + +/* interface ID3D11Debug */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11Debug; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79cf2233-7536-4948-9d36-1e4692dc5760") + ID3D11Debug : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetFeatureMask( + UINT Mask) = 0; + + virtual UINT STDMETHODCALLTYPE GetFeatureMask( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPresentPerRenderOpDelay( + UINT Milliseconds) = 0; + + virtual UINT STDMETHODCALLTYPE GetPresentPerRenderOpDelay( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSwapChain( + /* [annotation] */ + _In_opt_ IDXGISwapChain *pSwapChain) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSwapChain( + /* [annotation] */ + _Out_ IDXGISwapChain **ppSwapChain) = 0; + + virtual HRESULT STDMETHODCALLTYPE ValidateContext( + /* [annotation] */ + _In_ ID3D11DeviceContext *pContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReportLiveDeviceObjects( + D3D11_RLDO_FLAGS Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE ValidateContextForDispatch( + /* [annotation] */ + _In_ ID3D11DeviceContext *pContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11DebugVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11Debug * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11Debug * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11Debug * This); + + DECLSPEC_XFGVIRT(ID3D11Debug, SetFeatureMask) + HRESULT ( STDMETHODCALLTYPE *SetFeatureMask )( + ID3D11Debug * This, + UINT Mask); + + DECLSPEC_XFGVIRT(ID3D11Debug, GetFeatureMask) + UINT ( STDMETHODCALLTYPE *GetFeatureMask )( + ID3D11Debug * This); + + DECLSPEC_XFGVIRT(ID3D11Debug, SetPresentPerRenderOpDelay) + HRESULT ( STDMETHODCALLTYPE *SetPresentPerRenderOpDelay )( + ID3D11Debug * This, + UINT Milliseconds); + + DECLSPEC_XFGVIRT(ID3D11Debug, GetPresentPerRenderOpDelay) + UINT ( STDMETHODCALLTYPE *GetPresentPerRenderOpDelay )( + ID3D11Debug * This); + + DECLSPEC_XFGVIRT(ID3D11Debug, SetSwapChain) + HRESULT ( STDMETHODCALLTYPE *SetSwapChain )( + ID3D11Debug * This, + /* [annotation] */ + _In_opt_ IDXGISwapChain *pSwapChain); + + DECLSPEC_XFGVIRT(ID3D11Debug, GetSwapChain) + HRESULT ( STDMETHODCALLTYPE *GetSwapChain )( + ID3D11Debug * This, + /* [annotation] */ + _Out_ IDXGISwapChain **ppSwapChain); + + DECLSPEC_XFGVIRT(ID3D11Debug, ValidateContext) + HRESULT ( STDMETHODCALLTYPE *ValidateContext )( + ID3D11Debug * This, + /* [annotation] */ + _In_ ID3D11DeviceContext *pContext); + + DECLSPEC_XFGVIRT(ID3D11Debug, ReportLiveDeviceObjects) + HRESULT ( STDMETHODCALLTYPE *ReportLiveDeviceObjects )( + ID3D11Debug * This, + D3D11_RLDO_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D11Debug, ValidateContextForDispatch) + HRESULT ( STDMETHODCALLTYPE *ValidateContextForDispatch )( + ID3D11Debug * This, + /* [annotation] */ + _In_ ID3D11DeviceContext *pContext); + + END_INTERFACE + } ID3D11DebugVtbl; + + interface ID3D11Debug + { + CONST_VTBL struct ID3D11DebugVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11Debug_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11Debug_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11Debug_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11Debug_SetFeatureMask(This,Mask) \ + ( (This)->lpVtbl -> SetFeatureMask(This,Mask) ) + +#define ID3D11Debug_GetFeatureMask(This) \ + ( (This)->lpVtbl -> GetFeatureMask(This) ) + +#define ID3D11Debug_SetPresentPerRenderOpDelay(This,Milliseconds) \ + ( (This)->lpVtbl -> SetPresentPerRenderOpDelay(This,Milliseconds) ) + +#define ID3D11Debug_GetPresentPerRenderOpDelay(This) \ + ( (This)->lpVtbl -> GetPresentPerRenderOpDelay(This) ) + +#define ID3D11Debug_SetSwapChain(This,pSwapChain) \ + ( (This)->lpVtbl -> SetSwapChain(This,pSwapChain) ) + +#define ID3D11Debug_GetSwapChain(This,ppSwapChain) \ + ( (This)->lpVtbl -> GetSwapChain(This,ppSwapChain) ) + +#define ID3D11Debug_ValidateContext(This,pContext) \ + ( (This)->lpVtbl -> ValidateContext(This,pContext) ) + +#define ID3D11Debug_ReportLiveDeviceObjects(This,Flags) \ + ( (This)->lpVtbl -> ReportLiveDeviceObjects(This,Flags) ) + +#define ID3D11Debug_ValidateContextForDispatch(This,pContext) \ + ( (This)->lpVtbl -> ValidateContextForDispatch(This,pContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11Debug_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11sdklayers_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11sdklayers_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11sdklayers_0000_0001_v0_0_s_ifspec; + +#ifndef __ID3D11SwitchToRef_INTERFACE_DEFINED__ +#define __ID3D11SwitchToRef_INTERFACE_DEFINED__ + +/* interface ID3D11SwitchToRef */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11SwitchToRef; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1ef337e3-58e7-4f83-a692-db221f5ed47e") + ID3D11SwitchToRef : public IUnknown + { + public: + virtual BOOL STDMETHODCALLTYPE SetUseRef( + BOOL UseRef) = 0; + + virtual BOOL STDMETHODCALLTYPE GetUseRef( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11SwitchToRefVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11SwitchToRef * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11SwitchToRef * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11SwitchToRef * This); + + DECLSPEC_XFGVIRT(ID3D11SwitchToRef, SetUseRef) + BOOL ( STDMETHODCALLTYPE *SetUseRef )( + ID3D11SwitchToRef * This, + BOOL UseRef); + + DECLSPEC_XFGVIRT(ID3D11SwitchToRef, GetUseRef) + BOOL ( STDMETHODCALLTYPE *GetUseRef )( + ID3D11SwitchToRef * This); + + END_INTERFACE + } ID3D11SwitchToRefVtbl; + + interface ID3D11SwitchToRef + { + CONST_VTBL struct ID3D11SwitchToRefVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11SwitchToRef_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11SwitchToRef_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11SwitchToRef_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11SwitchToRef_SetUseRef(This,UseRef) \ + ( (This)->lpVtbl -> SetUseRef(This,UseRef) ) + +#define ID3D11SwitchToRef_GetUseRef(This) \ + ( (This)->lpVtbl -> GetUseRef(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11SwitchToRef_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11sdklayers_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region PC Application Family +#pragma region PC Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP) +typedef +enum D3D11_SHADER_TRACKING_RESOURCE_TYPE + { + D3D11_SHADER_TRACKING_RESOURCE_TYPE_NONE = 0, + D3D11_SHADER_TRACKING_RESOURCE_TYPE_UAV_DEVICEMEMORY = 1, + D3D11_SHADER_TRACKING_RESOURCE_TYPE_NON_UAV_DEVICEMEMORY = 2, + D3D11_SHADER_TRACKING_RESOURCE_TYPE_ALL_DEVICEMEMORY = 3, + D3D11_SHADER_TRACKING_RESOURCE_TYPE_GROUPSHARED_MEMORY = 4, + D3D11_SHADER_TRACKING_RESOURCE_TYPE_ALL_SHARED_MEMORY = 5, + D3D11_SHADER_TRACKING_RESOURCE_TYPE_GROUPSHARED_NON_UAV = 6, + D3D11_SHADER_TRACKING_RESOURCE_TYPE_ALL = 7 + } D3D11_SHADER_TRACKING_RESOURCE_TYPE; + +typedef +enum D3D11_SHADER_TRACKING_OPTION + { + D3D11_SHADER_TRACKING_OPTION_IGNORE = 0, + D3D11_SHADER_TRACKING_OPTION_TRACK_UNINITIALIZED = 0x1, + D3D11_SHADER_TRACKING_OPTION_TRACK_RAW = 0x2, + D3D11_SHADER_TRACKING_OPTION_TRACK_WAR = 0x4, + D3D11_SHADER_TRACKING_OPTION_TRACK_WAW = 0x8, + D3D11_SHADER_TRACKING_OPTION_ALLOW_SAME = 0x10, + D3D11_SHADER_TRACKING_OPTION_TRACK_ATOMIC_CONSISTENCY = 0x20, + D3D11_SHADER_TRACKING_OPTION_TRACK_RAW_ACROSS_THREADGROUPS = 0x40, + D3D11_SHADER_TRACKING_OPTION_TRACK_WAR_ACROSS_THREADGROUPS = 0x80, + D3D11_SHADER_TRACKING_OPTION_TRACK_WAW_ACROSS_THREADGROUPS = 0x100, + D3D11_SHADER_TRACKING_OPTION_TRACK_ATOMIC_CONSISTENCY_ACROSS_THREADGROUPS = 0x200, + D3D11_SHADER_TRACKING_OPTION_UAV_SPECIFIC_FLAGS = ( ( ( D3D11_SHADER_TRACKING_OPTION_TRACK_RAW_ACROSS_THREADGROUPS | D3D11_SHADER_TRACKING_OPTION_TRACK_WAR_ACROSS_THREADGROUPS ) | D3D11_SHADER_TRACKING_OPTION_TRACK_WAW_ACROSS_THREADGROUPS ) | D3D11_SHADER_TRACKING_OPTION_TRACK_ATOMIC_CONSISTENCY_ACROSS_THREADGROUPS ) , + D3D11_SHADER_TRACKING_OPTION_ALL_HAZARDS = ( ( ( ( ( ( ( D3D11_SHADER_TRACKING_OPTION_TRACK_RAW | D3D11_SHADER_TRACKING_OPTION_TRACK_WAR ) | D3D11_SHADER_TRACKING_OPTION_TRACK_WAW ) | D3D11_SHADER_TRACKING_OPTION_TRACK_ATOMIC_CONSISTENCY ) | D3D11_SHADER_TRACKING_OPTION_TRACK_RAW_ACROSS_THREADGROUPS ) | D3D11_SHADER_TRACKING_OPTION_TRACK_WAR_ACROSS_THREADGROUPS ) | D3D11_SHADER_TRACKING_OPTION_TRACK_WAW_ACROSS_THREADGROUPS ) | D3D11_SHADER_TRACKING_OPTION_TRACK_ATOMIC_CONSISTENCY_ACROSS_THREADGROUPS ) , + D3D11_SHADER_TRACKING_OPTION_ALL_HAZARDS_ALLOWING_SAME = ( D3D11_SHADER_TRACKING_OPTION_ALL_HAZARDS | D3D11_SHADER_TRACKING_OPTION_ALLOW_SAME ) , + D3D11_SHADER_TRACKING_OPTION_ALL_OPTIONS = ( D3D11_SHADER_TRACKING_OPTION_ALL_HAZARDS_ALLOWING_SAME | D3D11_SHADER_TRACKING_OPTION_TRACK_UNINITIALIZED ) + } D3D11_SHADER_TRACKING_OPTIONS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11sdklayers_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11sdklayers_0000_0002_v0_0_s_ifspec; + +#ifndef __ID3D11TracingDevice_INTERFACE_DEFINED__ +#define __ID3D11TracingDevice_INTERFACE_DEFINED__ + +/* interface ID3D11TracingDevice */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11TracingDevice; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1911c771-1587-413e-a7e0-fb26c3de0268") + ID3D11TracingDevice : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetShaderTrackingOptionsByType( + /* [annotation] */ + _In_ UINT ResourceTypeFlags, + /* [annotation] */ + _In_ UINT Options) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetShaderTrackingOptions( + /* [annotation] */ + _In_ IUnknown *pShader, + /* [annotation] */ + _In_ UINT Options) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11TracingDeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11TracingDevice * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11TracingDevice * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11TracingDevice * This); + + DECLSPEC_XFGVIRT(ID3D11TracingDevice, SetShaderTrackingOptionsByType) + HRESULT ( STDMETHODCALLTYPE *SetShaderTrackingOptionsByType )( + ID3D11TracingDevice * This, + /* [annotation] */ + _In_ UINT ResourceTypeFlags, + /* [annotation] */ + _In_ UINT Options); + + DECLSPEC_XFGVIRT(ID3D11TracingDevice, SetShaderTrackingOptions) + HRESULT ( STDMETHODCALLTYPE *SetShaderTrackingOptions )( + ID3D11TracingDevice * This, + /* [annotation] */ + _In_ IUnknown *pShader, + /* [annotation] */ + _In_ UINT Options); + + END_INTERFACE + } ID3D11TracingDeviceVtbl; + + interface ID3D11TracingDevice + { + CONST_VTBL struct ID3D11TracingDeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11TracingDevice_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11TracingDevice_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11TracingDevice_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11TracingDevice_SetShaderTrackingOptionsByType(This,ResourceTypeFlags,Options) \ + ( (This)->lpVtbl -> SetShaderTrackingOptionsByType(This,ResourceTypeFlags,Options) ) + +#define ID3D11TracingDevice_SetShaderTrackingOptions(This,pShader,Options) \ + ( (This)->lpVtbl -> SetShaderTrackingOptions(This,pShader,Options) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11TracingDevice_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11RefTrackingOptions_INTERFACE_DEFINED__ +#define __ID3D11RefTrackingOptions_INTERFACE_DEFINED__ + +/* interface ID3D11RefTrackingOptions */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11RefTrackingOptions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("193dacdf-0db2-4c05-a55c-ef06cac56fd9") + ID3D11RefTrackingOptions : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetTrackingOptions( + UINT uOptions) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11RefTrackingOptionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11RefTrackingOptions * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11RefTrackingOptions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11RefTrackingOptions * This); + + DECLSPEC_XFGVIRT(ID3D11RefTrackingOptions, SetTrackingOptions) + HRESULT ( STDMETHODCALLTYPE *SetTrackingOptions )( + ID3D11RefTrackingOptions * This, + UINT uOptions); + + END_INTERFACE + } ID3D11RefTrackingOptionsVtbl; + + interface ID3D11RefTrackingOptions + { + CONST_VTBL struct ID3D11RefTrackingOptionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11RefTrackingOptions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11RefTrackingOptions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11RefTrackingOptions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11RefTrackingOptions_SetTrackingOptions(This,uOptions) \ + ( (This)->lpVtbl -> SetTrackingOptions(This,uOptions) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11RefTrackingOptions_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11RefDefaultTrackingOptions_INTERFACE_DEFINED__ +#define __ID3D11RefDefaultTrackingOptions_INTERFACE_DEFINED__ + +/* interface ID3D11RefDefaultTrackingOptions */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11RefDefaultTrackingOptions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("03916615-c644-418c-9bf4-75db5be63ca0") + ID3D11RefDefaultTrackingOptions : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetTrackingOptions( + UINT ResourceTypeFlags, + UINT Options) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11RefDefaultTrackingOptionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11RefDefaultTrackingOptions * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11RefDefaultTrackingOptions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11RefDefaultTrackingOptions * This); + + DECLSPEC_XFGVIRT(ID3D11RefDefaultTrackingOptions, SetTrackingOptions) + HRESULT ( STDMETHODCALLTYPE *SetTrackingOptions )( + ID3D11RefDefaultTrackingOptions * This, + UINT ResourceTypeFlags, + UINT Options); + + END_INTERFACE + } ID3D11RefDefaultTrackingOptionsVtbl; + + interface ID3D11RefDefaultTrackingOptions + { + CONST_VTBL struct ID3D11RefDefaultTrackingOptionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11RefDefaultTrackingOptions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11RefDefaultTrackingOptions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11RefDefaultTrackingOptions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11RefDefaultTrackingOptions_SetTrackingOptions(This,ResourceTypeFlags,Options) \ + ( (This)->lpVtbl -> SetTrackingOptions(This,ResourceTypeFlags,Options) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11RefDefaultTrackingOptions_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11sdklayers_0000_0005 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP) */ +#pragma endregion +#pragma endregion +#pragma region Application Family +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +DEFINE_GUID(DXGI_DEBUG_D3D11, 0x4b99317b, 0xac39, 0x4aa6, 0xbb, 0xb, 0xba, 0xa0, 0x47, 0x84, 0x79, 0x8f); +#define D3D11_REGKEY_PATH __TEXT("Software\\Microsoft\\Direct3D") +#define D3D11_MUTE_DEBUG_OUTPUT __TEXT("MuteDebugOutput") +#define D3D11_ENABLE_BREAK_ON_MESSAGE __TEXT("EnableBreakOnMessage") +#define D3D11_INFOQUEUE_STORAGE_FILTER_OVERRIDE __TEXT("InfoQueueStorageFilterOverride") +#define D3D11_MUTE_CATEGORY __TEXT("Mute_CATEGORY_%s") +#define D3D11_MUTE_SEVERITY __TEXT("Mute_SEVERITY_%s") +#define D3D11_MUTE_ID_STRING __TEXT("Mute_ID_%s") +#define D3D11_MUTE_ID_DECIMAL __TEXT("Mute_ID_%d") +#define D3D11_UNMUTE_SEVERITY_INFO __TEXT("Unmute_SEVERITY_INFO") +#define D3D11_BREAKON_CATEGORY __TEXT("BreakOn_CATEGORY_%s") +#define D3D11_BREAKON_SEVERITY __TEXT("BreakOn_SEVERITY_%s") +#define D3D11_BREAKON_ID_STRING __TEXT("BreakOn_ID_%s") +#define D3D11_BREAKON_ID_DECIMAL __TEXT("BreakOn_ID_%d") +#define D3D11_APPSIZE_STRING __TEXT("Size") +#define D3D11_APPNAME_STRING __TEXT("Name") +#define D3D11_FORCE_DEBUGGABLE __TEXT("ForceDebuggable") +#define D3D11_FORCE_SHADER_SKIP_OPTIMIZATION __TEXT("ForceShaderSkipOptimization") +typedef +enum D3D11_MESSAGE_CATEGORY + { + D3D11_MESSAGE_CATEGORY_APPLICATION_DEFINED = 0, + D3D11_MESSAGE_CATEGORY_MISCELLANEOUS = ( D3D11_MESSAGE_CATEGORY_APPLICATION_DEFINED + 1 ) , + D3D11_MESSAGE_CATEGORY_INITIALIZATION = ( D3D11_MESSAGE_CATEGORY_MISCELLANEOUS + 1 ) , + D3D11_MESSAGE_CATEGORY_CLEANUP = ( D3D11_MESSAGE_CATEGORY_INITIALIZATION + 1 ) , + D3D11_MESSAGE_CATEGORY_COMPILATION = ( D3D11_MESSAGE_CATEGORY_CLEANUP + 1 ) , + D3D11_MESSAGE_CATEGORY_STATE_CREATION = ( D3D11_MESSAGE_CATEGORY_COMPILATION + 1 ) , + D3D11_MESSAGE_CATEGORY_STATE_SETTING = ( D3D11_MESSAGE_CATEGORY_STATE_CREATION + 1 ) , + D3D11_MESSAGE_CATEGORY_STATE_GETTING = ( D3D11_MESSAGE_CATEGORY_STATE_SETTING + 1 ) , + D3D11_MESSAGE_CATEGORY_RESOURCE_MANIPULATION = ( D3D11_MESSAGE_CATEGORY_STATE_GETTING + 1 ) , + D3D11_MESSAGE_CATEGORY_EXECUTION = ( D3D11_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + 1 ) , + D3D11_MESSAGE_CATEGORY_SHADER = ( D3D11_MESSAGE_CATEGORY_EXECUTION + 1 ) + } D3D11_MESSAGE_CATEGORY; + +typedef +enum D3D11_MESSAGE_SEVERITY + { + D3D11_MESSAGE_SEVERITY_CORRUPTION = 0, + D3D11_MESSAGE_SEVERITY_ERROR = ( D3D11_MESSAGE_SEVERITY_CORRUPTION + 1 ) , + D3D11_MESSAGE_SEVERITY_WARNING = ( D3D11_MESSAGE_SEVERITY_ERROR + 1 ) , + D3D11_MESSAGE_SEVERITY_INFO = ( D3D11_MESSAGE_SEVERITY_WARNING + 1 ) , + D3D11_MESSAGE_SEVERITY_MESSAGE = ( D3D11_MESSAGE_SEVERITY_INFO + 1 ) + } D3D11_MESSAGE_SEVERITY; + +typedef +enum D3D11_MESSAGE_ID + { + D3D11_MESSAGE_ID_UNKNOWN = 0, + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD = ( D3D11_MESSAGE_ID_UNKNOWN + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_STRING_FROM_APPLICATION = ( D3D11_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_THIS = ( D3D11_MESSAGE_ID_STRING_FROM_APPLICATION + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER1 = ( D3D11_MESSAGE_ID_CORRUPTED_THIS + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER2 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER1 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER3 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER2 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER4 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER3 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER5 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER4 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER6 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER5 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER7 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER6 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER8 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER7 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER9 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER8 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER10 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER9 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER11 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER10 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER12 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER11 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER13 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER12 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER14 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER13 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER15 = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER14 + 1 ) , + D3D11_MESSAGE_ID_CORRUPTED_MULTITHREADING = ( D3D11_MESSAGE_ID_CORRUPTED_PARAMETER15 + 1 ) , + D3D11_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY = ( D3D11_MESSAGE_ID_CORRUPTED_MULTITHREADING + 1 ) , + D3D11_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_GETPRIVATEDATA_MOREDATA = ( D3D11_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA = ( D3D11_MESSAGE_ID_GETPRIVATEDATA_MOREDATA + 1 ) , + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN = ( D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA + 1 ) , + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS = ( D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN + 1 ) , + D3D11_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS = ( D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY = ( D3D11_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT = ( D3D11_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES = ( D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS = ( D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS = ( D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS = ( D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS = ( D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_NULLDESC = ( D3D11_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS = ( D3D11_MESSAGE_ID_CREATEBUFFER_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT = ( D3D11_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_NULLDESC = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_NULLDESC = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_NULLDESC = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT = ( D3D11_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT + 1 ) , + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE = ( D3D11_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE = ( D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY = ( D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX + 1 ) , + D3D11_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE + 1 ) , + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE = ( D3D11_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE = ( D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE + 1 ) , + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE = ( D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE + 1 ) , + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE = ( D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE + 1 ) , + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP = ( D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE + 1 ) , + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS = ( D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP + 1 ) , + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS = ( D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS + 1 ) , + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC = ( D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK = ( D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC + 1 ) , + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS + 1 ) , + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS = ( D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY + 1 ) , + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG = ( D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC = ( D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED = ( D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED = ( D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED + 1 ) , + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER = ( D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE = ( D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE + 1 ) , + D3D11_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER = ( D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID = ( D3D11_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE = ( D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED = ( D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED + 1 ) , + D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER = ( D3D11_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER = ( D3D11_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER = ( D3D11_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED = ( D3D11_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED + 1 ) , + D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER = ( D3D11_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT = ( D3D11_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR = ( D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT + 1 ) , + D3D11_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH = ( D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR + 1 ) , + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH = ( D3D11_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH + 1 ) , + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID = ( D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID + 1 ) , + D3D11_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID = ( D3D11_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE = ( D3D11_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID + 1 ) , + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE = ( D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX = ( D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE = ( D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX + 1 ) , + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE = ( D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE + 1 ) , + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE = ( D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE + 1 ) , + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE = ( D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE + 1 ) , + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE = ( D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE + 1 ) , + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE = ( D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE + 1 ) , + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE = ( D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE + 1 ) , + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX = ( D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE = ( D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID = ( D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID = ( D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID = ( D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID = ( D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID = ( D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID + 1 ) , + D3D11_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE = ( D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID + 1 ) , + D3D11_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS = ( D3D11_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE + 1 ) , + D3D11_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED = ( D3D11_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN = ( D3D11_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED + 1 ) , + D3D11_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED = ( D3D11_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN + 1 ) , + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE = ( D3D11_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED + 1 ) , + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE = ( D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE + 1 ) , + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS = ( D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED = ( D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN = ( D3D11_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED + 1 ) , + D3D11_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE = ( D3D11_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN + 1 ) , + D3D11_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED = ( D3D11_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE = ( D3D11_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED + 1 ) , + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE = ( D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE + 1 ) , + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS = ( D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED = ( D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN = ( D3D11_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED + 1 ) , + D3D11_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE = ( D3D11_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN + 1 ) , + D3D11_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED = ( D3D11_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE = ( D3D11_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED + 1 ) , + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE = ( D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE + 1 ) , + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS = ( D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED = ( D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN = ( D3D11_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED + 1 ) , + D3D11_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE = ( D3D11_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN + 1 ) , + D3D11_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED = ( D3D11_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED = ( D3D11_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED + 1 ) , + D3D11_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED = ( D3D11_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED + 1 ) , + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS = ( D3D11_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED + 1 ) , + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS + 1 ) , + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN = ( D3D11_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE = ( D3D11_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN + 1 ) , + D3D11_MESSAGE_ID_REF_THREADING_MODE = ( D3D11_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE + 1 ) , + D3D11_MESSAGE_ID_REF_UMDRIVER_EXCEPTION = ( D3D11_MESSAGE_ID_REF_THREADING_MODE + 1 ) , + D3D11_MESSAGE_ID_REF_KMDRIVER_EXCEPTION = ( D3D11_MESSAGE_ID_REF_UMDRIVER_EXCEPTION + 1 ) , + D3D11_MESSAGE_ID_REF_HARDWARE_EXCEPTION = ( D3D11_MESSAGE_ID_REF_KMDRIVER_EXCEPTION + 1 ) , + D3D11_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE = ( D3D11_MESSAGE_ID_REF_HARDWARE_EXCEPTION + 1 ) , + D3D11_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER = ( D3D11_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE + 1 ) , + D3D11_MESSAGE_ID_REF_OUT_OF_MEMORY = ( D3D11_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER + 1 ) , + D3D11_MESSAGE_ID_REF_INFO = ( D3D11_MESSAGE_ID_REF_OUT_OF_MEMORY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW = ( D3D11_MESSAGE_ID_REF_INFO + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW = ( D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW = ( D3D11_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW = ( D3D11_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW = ( D3D11_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW = ( D3D11_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND = ( D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX = ( D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE = ( D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK = ( D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE = ( D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS = ( D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL = ( D3D11_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL = ( D3D11_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL = ( D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID = ( D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL = ( D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY = ( D3D11_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER = ( D3D11_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING = ( D3D11_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 = ( D3D11_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING + 1 ) , + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT = ( D3D11_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 + 1 ) , + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT = ( D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT + 1 ) , + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT = ( D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN = ( D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC = ( D3D11_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC + 1 ) , + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW = ( D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS = ( D3D11_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY = ( D3D11_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY + 1 ) , + D3D11_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY + 1 ) , + D3D11_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER = ( D3D11_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED = ( D3D11_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER + 1 ) , + D3D11_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER = ( D3D11_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED + 1 ) , + D3D11_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + 1 ) , + D3D11_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN = ( D3D11_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATECOUNTER_NULLDESC = ( D3D11_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN + 1 ) , + D3D11_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER = ( D3D11_MESSAGE_ID_CREATECOUNTER_NULLDESC + 1 ) , + D3D11_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER = ( D3D11_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER + 1 ) , + D3D11_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE = ( D3D11_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + 1 ) , + D3D11_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED = ( D3D11_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE + 1 ) , + D3D11_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION = ( D3D11_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_QUERY_BEGIN_DUPLICATE = ( D3D11_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION + 1 ) , + D3D11_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS = ( D3D11_MESSAGE_ID_QUERY_BEGIN_DUPLICATE + 1 ) , + D3D11_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION = ( D3D11_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS + 1 ) , + D3D11_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS = ( D3D11_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION + 1 ) , + D3D11_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN = ( D3D11_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS + 1 ) , + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE = ( D3D11_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN + 1 ) , + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS = ( D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE + 1 ) , + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL = ( D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH = ( D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE = ( D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE = ( D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT = ( D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT + 1 ) , + D3D11_MESSAGE_ID_LIVE_OBJECT_SUMMARY = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_LIVE_BUFFER = ( D3D11_MESSAGE_ID_LIVE_OBJECT_SUMMARY + 1 ) , + D3D11_MESSAGE_ID_LIVE_TEXTURE1D = ( D3D11_MESSAGE_ID_LIVE_BUFFER + 1 ) , + D3D11_MESSAGE_ID_LIVE_TEXTURE2D = ( D3D11_MESSAGE_ID_LIVE_TEXTURE1D + 1 ) , + D3D11_MESSAGE_ID_LIVE_TEXTURE3D = ( D3D11_MESSAGE_ID_LIVE_TEXTURE2D + 1 ) , + D3D11_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW = ( D3D11_MESSAGE_ID_LIVE_TEXTURE3D + 1 ) , + D3D11_MESSAGE_ID_LIVE_RENDERTARGETVIEW = ( D3D11_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW + 1 ) , + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW = ( D3D11_MESSAGE_ID_LIVE_RENDERTARGETVIEW + 1 ) , + D3D11_MESSAGE_ID_LIVE_VERTEXSHADER = ( D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW + 1 ) , + D3D11_MESSAGE_ID_LIVE_GEOMETRYSHADER = ( D3D11_MESSAGE_ID_LIVE_VERTEXSHADER + 1 ) , + D3D11_MESSAGE_ID_LIVE_PIXELSHADER = ( D3D11_MESSAGE_ID_LIVE_GEOMETRYSHADER + 1 ) , + D3D11_MESSAGE_ID_LIVE_INPUTLAYOUT = ( D3D11_MESSAGE_ID_LIVE_PIXELSHADER + 1 ) , + D3D11_MESSAGE_ID_LIVE_SAMPLER = ( D3D11_MESSAGE_ID_LIVE_INPUTLAYOUT + 1 ) , + D3D11_MESSAGE_ID_LIVE_BLENDSTATE = ( D3D11_MESSAGE_ID_LIVE_SAMPLER + 1 ) , + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE = ( D3D11_MESSAGE_ID_LIVE_BLENDSTATE + 1 ) , + D3D11_MESSAGE_ID_LIVE_RASTERIZERSTATE = ( D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE + 1 ) , + D3D11_MESSAGE_ID_LIVE_QUERY = ( D3D11_MESSAGE_ID_LIVE_RASTERIZERSTATE + 1 ) , + D3D11_MESSAGE_ID_LIVE_PREDICATE = ( D3D11_MESSAGE_ID_LIVE_QUERY + 1 ) , + D3D11_MESSAGE_ID_LIVE_COUNTER = ( D3D11_MESSAGE_ID_LIVE_PREDICATE + 1 ) , + D3D11_MESSAGE_ID_LIVE_DEVICE = ( D3D11_MESSAGE_ID_LIVE_COUNTER + 1 ) , + D3D11_MESSAGE_ID_LIVE_SWAPCHAIN = ( D3D11_MESSAGE_ID_LIVE_DEVICE + 1 ) , + D3D11_MESSAGE_ID_D3D10_MESSAGES_END = ( D3D11_MESSAGE_ID_LIVE_SWAPCHAIN + 1 ) , + D3D11_MESSAGE_ID_D3D10L9_MESSAGES_START = 0x100000, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED = ( D3D11_MESSAGE_ID_D3D10L9_MESSAGES_START + 1 ) , + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT = ( D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY + 1 ) , + D3D11_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE + 1 ) , + D3D11_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS = ( D3D11_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS = ( D3D11_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS = ( D3D11_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND = ( D3D11_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D = ( D3D11_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE = ( D3D11_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE = ( D3D11_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE + 1 ) , + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS = ( D3D11_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE + 1 ) , + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS = ( D3D11_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS + 1 ) , + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX = ( D3D11_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS = ( D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS = ( D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY = ( D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS + 1 ) , + D3D11_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK = ( D3D11_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY + 1 ) , + D3D11_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK = ( D3D11_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT = ( D3D11_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE + 1 ) , + D3D11_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE = ( D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD = ( D3D11_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER = ( D3D11_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE = ( D3D11_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE = ( D3D11_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE = ( D3D11_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS = ( D3D11_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES = ( D3D11_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED = ( D3D11_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES + 1 ) , + D3D11_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED + 1 ) , + D3D11_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND = ( D3D11_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE + 1 ) , + D3D11_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3 = ( D3D11_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED = ( D3D11_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3 + 1 ) , + D3D11_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO = ( D3D11_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION = ( D3D11_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED = ( D3D11_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION + 1 ) , + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR = ( D3D11_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA = ( D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR + 1 ) , + D3D11_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP = ( D3D11_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA + 1 ) , + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP + 1 ) , + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT = ( D3D11_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_COPYRESOURCE_NO_3D_MISMATCHED_UPDATES = ( D3D11_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT + 1 ) , + D3D11_MESSAGE_ID_D3D10L9_MESSAGES_END = ( D3D11_MESSAGE_ID_COPYRESOURCE_NO_3D_MISMATCHED_UPDATES + 1 ) , + D3D11_MESSAGE_ID_D3D11_MESSAGES_START = 0x200000, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFLAGS = ( D3D11_MESSAGE_ID_D3D11_MESSAGES_START + 1 ) , + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDCLASSLINKAGE = ( D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDCLASSLINKAGE = ( D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDCLASSLINKAGE + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTREAMS = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDCLASSLINKAGE + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAMTORASTERIZER = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTREAMS + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTREAMS = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAMTORASTERIZER + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCLASSLINKAGE = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTREAMS + 1 ) , + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDCLASSLINKAGE = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCLASSLINKAGE + 1 ) , + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALID_COMMANDLISTFLAGS = ( D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDCLASSLINKAGE + 1 ) , + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_SINGLETHREADED = ( D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALID_COMMANDLISTFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_SINGLETHREADED + 1 ) , + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALID_CALL_RETURN = ( D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALID_CALL_RETURN + 1 ) , + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_ONIMMEDIATECONTEXT = ( D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_FINISHDISPLAYLIST_ONIMMEDIATECONTEXT + 1 ) , + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_INVALID_CALL_RETURN = ( D3D11_MESSAGE_ID_FINISHDISPLAYLIST_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAM = ( D3D11_MESSAGE_ID_FINISHDISPLAYLIST_INVALID_CALL_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDENTRIES = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTRIDES = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDENTRIES + 1 ) , + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTRIDES = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTRIDES + 1 ) , + D3D11_MESSAGE_ID_DEVICE_HSSETSHADERRESOURCES_HAZARD = ( D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTRIDES + 1 ) , + D3D11_MESSAGE_ID_DEVICE_HSSETCONSTANTBUFFERS_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_HSSETSHADERRESOURCES_HAZARD + 1 ) , + D3D11_MESSAGE_ID_HSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_DEVICE_HSSETCONSTANTBUFFERS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_HSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDCALL = ( D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CREATEHULLSHADER_OUTOFMEMORY = ( D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDCALL + 1 ) , + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERBYTECODE = ( D3D11_MESSAGE_ID_CREATEHULLSHADER_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERTYPE = ( D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERBYTECODE + 1 ) , + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDCLASSLINKAGE = ( D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERTYPE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_HSSETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDCLASSLINKAGE + 1 ) , + D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_INVALIDBUFFER = ( D3D11_MESSAGE_ID_DEVICE_HSSETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_HSSETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_INVALIDBUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_HSSETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_HSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_HSGETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_HSSETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_HSGETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_HSGETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_HSGETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_HSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DSSETSHADERRESOURCES_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_HSGETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DSSETCONSTANTBUFFERS_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_DSSETSHADERRESOURCES_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_DEVICE_DSSETCONSTANTBUFFERS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_DSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCALL = ( D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_OUTOFMEMORY = ( D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCALL + 1 ) , + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERBYTECODE = ( D3D11_MESSAGE_ID_CREATEDOMAINSHADER_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERTYPE = ( D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERBYTECODE + 1 ) , + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCLASSLINKAGE = ( D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERTYPE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DSSETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCLASSLINKAGE + 1 ) , + D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_INVALIDBUFFER = ( D3D11_MESSAGE_ID_DEVICE_DSSETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DSSETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_INVALIDBUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DSSETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_DSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DSGETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_DSSETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DSGETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_DSGETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DSGETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_DSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_XOR_DS_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_DSGETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEFERRED_CONTEXT_REMOVAL_PROCESS_AT_FAULT = ( D3D11_MESSAGE_ID_DEVICE_DRAW_HS_XOR_DS_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_INVALID_ARG_BUFFER = ( D3D11_MESSAGE_ID_DEFERRED_CONTEXT_REMOVAL_PROCESS_AT_FAULT + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_OFFSET_UNALIGNED = ( D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_INVALID_ARG_BUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_OFFSET_OVERFLOW = ( D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_OFFSET_UNALIGNED + 1 ) , + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDMAPTYPE = ( D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_OFFSET_OVERFLOW + 1 ) , + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDSUBRESOURCE = ( D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDMAPTYPE + 1 ) , + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDFLAGS = ( D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_RESOURCE_MAP_ALREADYMAPPED = ( D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_RESOURCE_MAP_DEVICEREMOVED_RETURN = ( D3D11_MESSAGE_ID_RESOURCE_MAP_ALREADYMAPPED + 1 ) , + D3D11_MESSAGE_ID_RESOURCE_MAP_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_RESOURCE_MAP_DEVICEREMOVED_RETURN + 1 ) , + D3D11_MESSAGE_ID_RESOURCE_MAP_WITHOUT_INITIAL_DISCARD = ( D3D11_MESSAGE_ID_RESOURCE_MAP_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_RESOURCE_UNMAP_INVALIDSUBRESOURCE = ( D3D11_MESSAGE_ID_RESOURCE_MAP_WITHOUT_INITIAL_DISCARD + 1 ) , + D3D11_MESSAGE_ID_RESOURCE_UNMAP_NOTMAPPED = ( D3D11_MESSAGE_ID_RESOURCE_UNMAP_INVALIDSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RASTERIZING_CONTROL_POINTS = ( D3D11_MESSAGE_ID_RESOURCE_UNMAP_NOTMAPPED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RASTERIZING_CONTROL_POINTS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_SIGNATURE_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_HULL_SHADER_INPUT_TOPOLOGY_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_SIGNATURE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_CONTROL_POINT_COUNT_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_DRAW_HULL_SHADER_INPUT_TOPOLOGY_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_TESSELLATOR_DOMAIN_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_CONTROL_POINT_COUNT_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_CREATE_CONTEXT = ( D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_TESSELLATOR_DOMAIN_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_LIVE_CONTEXT = ( D3D11_MESSAGE_ID_CREATE_CONTEXT + 1 ) , + D3D11_MESSAGE_ID_DESTROY_CONTEXT = ( D3D11_MESSAGE_ID_LIVE_CONTEXT + 1 ) , + D3D11_MESSAGE_ID_CREATE_BUFFER = ( D3D11_MESSAGE_ID_DESTROY_CONTEXT + 1 ) , + D3D11_MESSAGE_ID_LIVE_BUFFER_WIN7 = ( D3D11_MESSAGE_ID_CREATE_BUFFER + 1 ) , + D3D11_MESSAGE_ID_DESTROY_BUFFER = ( D3D11_MESSAGE_ID_LIVE_BUFFER_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_TEXTURE1D = ( D3D11_MESSAGE_ID_DESTROY_BUFFER + 1 ) , + D3D11_MESSAGE_ID_LIVE_TEXTURE1D_WIN7 = ( D3D11_MESSAGE_ID_CREATE_TEXTURE1D + 1 ) , + D3D11_MESSAGE_ID_DESTROY_TEXTURE1D = ( D3D11_MESSAGE_ID_LIVE_TEXTURE1D_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_TEXTURE2D = ( D3D11_MESSAGE_ID_DESTROY_TEXTURE1D + 1 ) , + D3D11_MESSAGE_ID_LIVE_TEXTURE2D_WIN7 = ( D3D11_MESSAGE_ID_CREATE_TEXTURE2D + 1 ) , + D3D11_MESSAGE_ID_DESTROY_TEXTURE2D = ( D3D11_MESSAGE_ID_LIVE_TEXTURE2D_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_TEXTURE3D = ( D3D11_MESSAGE_ID_DESTROY_TEXTURE2D + 1 ) , + D3D11_MESSAGE_ID_LIVE_TEXTURE3D_WIN7 = ( D3D11_MESSAGE_ID_CREATE_TEXTURE3D + 1 ) , + D3D11_MESSAGE_ID_DESTROY_TEXTURE3D = ( D3D11_MESSAGE_ID_LIVE_TEXTURE3D_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_SHADERRESOURCEVIEW = ( D3D11_MESSAGE_ID_DESTROY_TEXTURE3D + 1 ) , + D3D11_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW_WIN7 = ( D3D11_MESSAGE_ID_CREATE_SHADERRESOURCEVIEW + 1 ) , + D3D11_MESSAGE_ID_DESTROY_SHADERRESOURCEVIEW = ( D3D11_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_RENDERTARGETVIEW = ( D3D11_MESSAGE_ID_DESTROY_SHADERRESOURCEVIEW + 1 ) , + D3D11_MESSAGE_ID_LIVE_RENDERTARGETVIEW_WIN7 = ( D3D11_MESSAGE_ID_CREATE_RENDERTARGETVIEW + 1 ) , + D3D11_MESSAGE_ID_DESTROY_RENDERTARGETVIEW = ( D3D11_MESSAGE_ID_LIVE_RENDERTARGETVIEW_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_DEPTHSTENCILVIEW = ( D3D11_MESSAGE_ID_DESTROY_RENDERTARGETVIEW + 1 ) , + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW_WIN7 = ( D3D11_MESSAGE_ID_CREATE_DEPTHSTENCILVIEW + 1 ) , + D3D11_MESSAGE_ID_DESTROY_DEPTHSTENCILVIEW = ( D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_VERTEXSHADER = ( D3D11_MESSAGE_ID_DESTROY_DEPTHSTENCILVIEW + 1 ) , + D3D11_MESSAGE_ID_LIVE_VERTEXSHADER_WIN7 = ( D3D11_MESSAGE_ID_CREATE_VERTEXSHADER + 1 ) , + D3D11_MESSAGE_ID_DESTROY_VERTEXSHADER = ( D3D11_MESSAGE_ID_LIVE_VERTEXSHADER_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_HULLSHADER = ( D3D11_MESSAGE_ID_DESTROY_VERTEXSHADER + 1 ) , + D3D11_MESSAGE_ID_LIVE_HULLSHADER = ( D3D11_MESSAGE_ID_CREATE_HULLSHADER + 1 ) , + D3D11_MESSAGE_ID_DESTROY_HULLSHADER = ( D3D11_MESSAGE_ID_LIVE_HULLSHADER + 1 ) , + D3D11_MESSAGE_ID_CREATE_DOMAINSHADER = ( D3D11_MESSAGE_ID_DESTROY_HULLSHADER + 1 ) , + D3D11_MESSAGE_ID_LIVE_DOMAINSHADER = ( D3D11_MESSAGE_ID_CREATE_DOMAINSHADER + 1 ) , + D3D11_MESSAGE_ID_DESTROY_DOMAINSHADER = ( D3D11_MESSAGE_ID_LIVE_DOMAINSHADER + 1 ) , + D3D11_MESSAGE_ID_CREATE_GEOMETRYSHADER = ( D3D11_MESSAGE_ID_DESTROY_DOMAINSHADER + 1 ) , + D3D11_MESSAGE_ID_LIVE_GEOMETRYSHADER_WIN7 = ( D3D11_MESSAGE_ID_CREATE_GEOMETRYSHADER + 1 ) , + D3D11_MESSAGE_ID_DESTROY_GEOMETRYSHADER = ( D3D11_MESSAGE_ID_LIVE_GEOMETRYSHADER_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_PIXELSHADER = ( D3D11_MESSAGE_ID_DESTROY_GEOMETRYSHADER + 1 ) , + D3D11_MESSAGE_ID_LIVE_PIXELSHADER_WIN7 = ( D3D11_MESSAGE_ID_CREATE_PIXELSHADER + 1 ) , + D3D11_MESSAGE_ID_DESTROY_PIXELSHADER = ( D3D11_MESSAGE_ID_LIVE_PIXELSHADER_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_INPUTLAYOUT = ( D3D11_MESSAGE_ID_DESTROY_PIXELSHADER + 1 ) , + D3D11_MESSAGE_ID_LIVE_INPUTLAYOUT_WIN7 = ( D3D11_MESSAGE_ID_CREATE_INPUTLAYOUT + 1 ) , + D3D11_MESSAGE_ID_DESTROY_INPUTLAYOUT = ( D3D11_MESSAGE_ID_LIVE_INPUTLAYOUT_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_SAMPLER = ( D3D11_MESSAGE_ID_DESTROY_INPUTLAYOUT + 1 ) , + D3D11_MESSAGE_ID_LIVE_SAMPLER_WIN7 = ( D3D11_MESSAGE_ID_CREATE_SAMPLER + 1 ) , + D3D11_MESSAGE_ID_DESTROY_SAMPLER = ( D3D11_MESSAGE_ID_LIVE_SAMPLER_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_BLENDSTATE = ( D3D11_MESSAGE_ID_DESTROY_SAMPLER + 1 ) , + D3D11_MESSAGE_ID_LIVE_BLENDSTATE_WIN7 = ( D3D11_MESSAGE_ID_CREATE_BLENDSTATE + 1 ) , + D3D11_MESSAGE_ID_DESTROY_BLENDSTATE = ( D3D11_MESSAGE_ID_LIVE_BLENDSTATE_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_DEPTHSTENCILSTATE = ( D3D11_MESSAGE_ID_DESTROY_BLENDSTATE + 1 ) , + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE_WIN7 = ( D3D11_MESSAGE_ID_CREATE_DEPTHSTENCILSTATE + 1 ) , + D3D11_MESSAGE_ID_DESTROY_DEPTHSTENCILSTATE = ( D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_RASTERIZERSTATE = ( D3D11_MESSAGE_ID_DESTROY_DEPTHSTENCILSTATE + 1 ) , + D3D11_MESSAGE_ID_LIVE_RASTERIZERSTATE_WIN7 = ( D3D11_MESSAGE_ID_CREATE_RASTERIZERSTATE + 1 ) , + D3D11_MESSAGE_ID_DESTROY_RASTERIZERSTATE = ( D3D11_MESSAGE_ID_LIVE_RASTERIZERSTATE_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_QUERY = ( D3D11_MESSAGE_ID_DESTROY_RASTERIZERSTATE + 1 ) , + D3D11_MESSAGE_ID_LIVE_QUERY_WIN7 = ( D3D11_MESSAGE_ID_CREATE_QUERY + 1 ) , + D3D11_MESSAGE_ID_DESTROY_QUERY = ( D3D11_MESSAGE_ID_LIVE_QUERY_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_PREDICATE = ( D3D11_MESSAGE_ID_DESTROY_QUERY + 1 ) , + D3D11_MESSAGE_ID_LIVE_PREDICATE_WIN7 = ( D3D11_MESSAGE_ID_CREATE_PREDICATE + 1 ) , + D3D11_MESSAGE_ID_DESTROY_PREDICATE = ( D3D11_MESSAGE_ID_LIVE_PREDICATE_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_COUNTER = ( D3D11_MESSAGE_ID_DESTROY_PREDICATE + 1 ) , + D3D11_MESSAGE_ID_DESTROY_COUNTER = ( D3D11_MESSAGE_ID_CREATE_COUNTER + 1 ) , + D3D11_MESSAGE_ID_CREATE_COMMANDLIST = ( D3D11_MESSAGE_ID_DESTROY_COUNTER + 1 ) , + D3D11_MESSAGE_ID_LIVE_COMMANDLIST = ( D3D11_MESSAGE_ID_CREATE_COMMANDLIST + 1 ) , + D3D11_MESSAGE_ID_DESTROY_COMMANDLIST = ( D3D11_MESSAGE_ID_LIVE_COMMANDLIST + 1 ) , + D3D11_MESSAGE_ID_CREATE_CLASSINSTANCE = ( D3D11_MESSAGE_ID_DESTROY_COMMANDLIST + 1 ) , + D3D11_MESSAGE_ID_LIVE_CLASSINSTANCE = ( D3D11_MESSAGE_ID_CREATE_CLASSINSTANCE + 1 ) , + D3D11_MESSAGE_ID_DESTROY_CLASSINSTANCE = ( D3D11_MESSAGE_ID_LIVE_CLASSINSTANCE + 1 ) , + D3D11_MESSAGE_ID_CREATE_CLASSLINKAGE = ( D3D11_MESSAGE_ID_DESTROY_CLASSINSTANCE + 1 ) , + D3D11_MESSAGE_ID_LIVE_CLASSLINKAGE = ( D3D11_MESSAGE_ID_CREATE_CLASSLINKAGE + 1 ) , + D3D11_MESSAGE_ID_DESTROY_CLASSLINKAGE = ( D3D11_MESSAGE_ID_LIVE_CLASSLINKAGE + 1 ) , + D3D11_MESSAGE_ID_LIVE_DEVICE_WIN7 = ( D3D11_MESSAGE_ID_DESTROY_CLASSLINKAGE + 1 ) , + D3D11_MESSAGE_ID_LIVE_OBJECT_SUMMARY_WIN7 = ( D3D11_MESSAGE_ID_LIVE_DEVICE_WIN7 + 1 ) , + D3D11_MESSAGE_ID_CREATE_COMPUTESHADER = ( D3D11_MESSAGE_ID_LIVE_OBJECT_SUMMARY_WIN7 + 1 ) , + D3D11_MESSAGE_ID_LIVE_COMPUTESHADER = ( D3D11_MESSAGE_ID_CREATE_COMPUTESHADER + 1 ) , + D3D11_MESSAGE_ID_DESTROY_COMPUTESHADER = ( D3D11_MESSAGE_ID_LIVE_COMPUTESHADER + 1 ) , + D3D11_MESSAGE_ID_CREATE_UNORDEREDACCESSVIEW = ( D3D11_MESSAGE_ID_DESTROY_COMPUTESHADER + 1 ) , + D3D11_MESSAGE_ID_LIVE_UNORDEREDACCESSVIEW = ( D3D11_MESSAGE_ID_CREATE_UNORDEREDACCESSVIEW + 1 ) , + D3D11_MESSAGE_ID_DESTROY_UNORDEREDACCESSVIEW = ( D3D11_MESSAGE_ID_LIVE_UNORDEREDACCESSVIEW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INTERFACES_FEATURELEVEL = ( D3D11_MESSAGE_ID_DESTROY_UNORDEREDACCESSVIEW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INTERFACE_COUNT_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_SETSHADER_INTERFACES_FEATURELEVEL + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE = ( D3D11_MESSAGE_ID_DEVICE_SETSHADER_INTERFACE_COUNT_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_INDEX = ( D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_TYPE = ( D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_INDEX + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_DATA = ( D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_TYPE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETSHADER_UNBOUND_INSTANCE_DATA = ( D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_DATA + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INSTANCE_DATA_BINDINGS = ( D3D11_MESSAGE_ID_DEVICE_SETSHADER_UNBOUND_INSTANCE_DATA + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATESHADER_CLASSLINKAGE_FULL = ( D3D11_MESSAGE_ID_DEVICE_SETSHADER_INSTANCE_DATA_BINDINGS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_UNRECOGNIZED_FEATURE = ( D3D11_MESSAGE_ID_DEVICE_CREATESHADER_CLASSLINKAGE_FULL + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_MISMATCHED_DATA_SIZE = ( D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_UNRECOGNIZED_FEATURE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_MISMATCHED_DATA_SIZE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSSETSHADERRESOURCES_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSSETCONSTANTBUFFERS_HAZARD = ( D3D11_MESSAGE_ID_DEVICE_CSSETSHADERRESOURCES_HAZARD + 1 ) , + D3D11_MESSAGE_ID_CSSETSHADERRESOURCES_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_DEVICE_CSSETCONSTANTBUFFERS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_CSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCALL = ( D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_OUTOFMEMORY = ( D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCALL + 1 ) , + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERBYTECODE = ( D3D11_MESSAGE_ID_CREATECOMPUTESHADER_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERTYPE = ( D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERBYTECODE + 1 ) , + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCLASSLINKAGE = ( D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERTYPE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSSETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCLASSLINKAGE + 1 ) , + D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_INVALIDBUFFER = ( D3D11_MESSAGE_ID_DEVICE_CSSETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSSETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_INVALIDBUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSSETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_CSSETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSGETSHADERRESOURCES_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_CSSETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSGETCONSTANTBUFFERS_BUFFERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_CSGETSHADERRESOURCES_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSGETSAMPLERS_SAMPLERS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_CSGETCONSTANTBUFFERS_BUFFERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEFLOATOPSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CSGETSAMPLERS_SAMPLERS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEFLOATOPSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEFLOATOPSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEFLOATOPSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEFLOATOPSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEFLOATOPSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEFLOATOPSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEFLOATOPSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEFLOATOPSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEFLOATOPSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEFLOATOPSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEFLOATOPSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEFLOATOPSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDSTRUCTURESTRIDE = ( D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEFLOATOPSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFLAGS = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDSTRUCTURESTRIDE + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDRESOURCE = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDESC = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDRESOURCE + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDESC + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDIMENSIONS = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_UNRECOGNIZEDFORMAT = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDIMENSIONS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_HAZARD = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_UNRECOGNIZEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_OVERLAPPING_OLD_SLOTS = ( D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_NO_OP = ( D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_OVERLAPPING_OLD_SLOTS + 1 ) , + D3D11_MESSAGE_ID_CSSETUNORDEREDACCESSVIEWS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_NO_OP + 1 ) , + D3D11_MESSAGE_ID_PSSETUNORDEREDACCESSVIEWS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_CSSETUNORDEREDACCESSVIEWS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_PSSETUNORDEREDACCESSVIEWS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_TOOMANYOBJECTS = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_HAZARD = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_TOOMANYOBJECTS + 1 ) , + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_DENORMFLUSH = ( D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_HAZARD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSS_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_DENORMFLUSH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSGETUNORDEREDACCESSS_VIEWS_EMPTY = ( D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSS_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFLAGS = ( D3D11_MESSAGE_ID_DEVICE_CSGETUNORDEREDACCESSS_VIEWS_EMPTY + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESESOURCEVIEW_TOOMANYOBJECTS = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_INVALID_ARG_BUFFER = ( D3D11_MESSAGE_ID_CREATESHADERRESESOURCEVIEW_TOOMANYOBJECTS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_OFFSET_UNALIGNED = ( D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_INVALID_ARG_BUFFER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_OFFSET_OVERFLOW = ( D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_OFFSET_UNALIGNED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDCONTEXT = ( D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_OFFSET_OVERFLOW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDRESOURCE = ( D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDCONTEXT + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDMINLOD = ( D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDRESOURCE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GETRESOURCEMINLOD_INVALIDCONTEXT = ( D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDMINLOD + 1 ) , + D3D11_MESSAGE_ID_DEVICE_GETRESOURCEMINLOD_INVALIDRESOURCE = ( D3D11_MESSAGE_ID_DEVICE_GETRESOURCEMINLOD_INVALIDCONTEXT + 1 ) , + D3D11_MESSAGE_ID_OMSETDEPTHSTENCIL_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_DEVICE_GETRESOURCEMINLOD_INVALIDRESOURCE + 1 ) , + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DEPTH_READONLY = ( D3D11_MESSAGE_ID_OMSETDEPTHSTENCIL_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_STENCIL_READONLY = ( D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DEPTH_READONLY + 1 ) , + D3D11_MESSAGE_ID_CHECKFEATURESUPPORT_FORMAT_DEPRECATED = ( D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_STENCIL_READONLY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_RETURN_TYPE_MISMATCH = ( D3D11_MESSAGE_ID_CHECKFEATURESUPPORT_FORMAT_DEPRECATED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_RETURN_TYPE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_UNORDEREDACCESSVIEW_RENDERTARGETVIEW_OVERLAP = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_DIMENSION_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_DRAW_UNORDEREDACCESSVIEW_RENDERTARGETVIEW_OVERLAP + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_APPEND_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_DIMENSION_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMICS_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_APPEND_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_STRUCTURE_STRIDE_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMICS_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_BUFFER_TYPE_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_STRUCTURE_STRIDE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_RAW_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_BUFFER_TYPE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_FORMAT_LD_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_RAW_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_FORMAT_STORE_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_FORMAT_LD_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_ADD_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_FORMAT_STORE_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_BITWISE_OPS_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_ADD_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_CMPSTORE_CMPEXCHANGE_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_BITWISE_OPS_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_EXCHANGE_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_CMPSTORE_CMPEXCHANGE_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_SIGNED_MINMAX_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_EXCHANGE_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_UNSIGNED_MINMAX_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_SIGNED_MINMAX_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DISPATCH_BOUND_RESOURCE_MAPPED = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_UNSIGNED_MINMAX_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DISPATCH_THREADGROUPCOUNT_OVERFLOW = ( D3D11_MESSAGE_ID_DEVICE_DISPATCH_BOUND_RESOURCE_MAPPED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DISPATCH_THREADGROUPCOUNT_ZERO = ( D3D11_MESSAGE_ID_DEVICE_DISPATCH_THREADGROUPCOUNT_OVERFLOW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_STRUCTURE_STRIDE_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_DISPATCH_THREADGROUPCOUNT_ZERO + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_BUFFER_TYPE_MISMATCH = ( D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_STRUCTURE_STRIDE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_RAW_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_BUFFER_TYPE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DISPATCH_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_RAW_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_DISPATCH_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDOFFSET = ( D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_LARGEOFFSET = ( D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDOFFSET + 1 ) , + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDDESTINATIONSTATE = ( D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_LARGEOFFSET + 1 ) , + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDSOURCESTATE = ( D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDDESTINATIONSTATE + 1 ) , + D3D11_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDSOURCESTATE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_INVALIDVIEW = ( D3D11_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_INVALIDOFFSET = ( D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_INVALIDVIEW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_TOOMANYVIEWS = ( D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_INVALIDOFFSET + 1 ) , + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWFLOAT_INVALIDFORMAT = ( D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_TOOMANYVIEWS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_COUNTER_UNSUPPORTED = ( D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWFLOAT_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_REF_WARNING = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_COUNTER_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_PIXEL_SHADER_WITHOUT_RTV_OR_DSV = ( D3D11_MESSAGE_ID_REF_WARNING + 1 ) , + D3D11_MESSAGE_ID_SHADER_ABORT = ( D3D11_MESSAGE_ID_DEVICE_DRAW_PIXEL_SHADER_WITHOUT_RTV_OR_DSV + 1 ) , + D3D11_MESSAGE_ID_SHADER_MESSAGE = ( D3D11_MESSAGE_ID_SHADER_ABORT + 1 ) , + D3D11_MESSAGE_ID_SHADER_ERROR = ( D3D11_MESSAGE_ID_SHADER_MESSAGE + 1 ) , + D3D11_MESSAGE_ID_OFFERRESOURCES_INVALIDRESOURCE = ( D3D11_MESSAGE_ID_SHADER_ERROR + 1 ) , + D3D11_MESSAGE_ID_HSSETSAMPLERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_OFFERRESOURCES_INVALIDRESOURCE + 1 ) , + D3D11_MESSAGE_ID_DSSETSAMPLERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_HSSETSAMPLERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CSSETSAMPLERS_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_DSSETSAMPLERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_HSSETSHADER_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_CSSETSAMPLERS_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_DSSETSHADER_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_HSSETSHADER_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_CSSETSHADER_UNBINDDELETINGOBJECT = ( D3D11_MESSAGE_ID_DSSETSHADER_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_ENQUEUESETEVENT_INVALIDARG_RETURN = ( D3D11_MESSAGE_ID_CSSETSHADER_UNBINDDELETINGOBJECT + 1 ) , + D3D11_MESSAGE_ID_ENQUEUESETEVENT_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_ENQUEUESETEVENT_INVALIDARG_RETURN + 1 ) , + D3D11_MESSAGE_ID_ENQUEUESETEVENT_ACCESSDENIED_RETURN = ( D3D11_MESSAGE_ID_ENQUEUESETEVENT_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_NUMUAVS_INVALIDRANGE = ( D3D11_MESSAGE_ID_ENQUEUESETEVENT_ACCESSDENIED_RETURN + 1 ) , + D3D11_MESSAGE_ID_USE_OF_ZERO_REFCOUNT_OBJECT = ( D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_NUMUAVS_INVALIDRANGE + 1 ) , + D3D11_MESSAGE_ID_D3D11_MESSAGES_END = ( D3D11_MESSAGE_ID_USE_OF_ZERO_REFCOUNT_OBJECT + 1 ) , + D3D11_MESSAGE_ID_D3D11_1_MESSAGES_START = 0x300000, + D3D11_MESSAGE_ID_CREATE_VIDEODECODER = ( D3D11_MESSAGE_ID_D3D11_1_MESSAGES_START + 1 ) , + D3D11_MESSAGE_ID_CREATE_VIDEOPROCESSORENUM = ( D3D11_MESSAGE_ID_CREATE_VIDEODECODER + 1 ) , + D3D11_MESSAGE_ID_CREATE_VIDEOPROCESSOR = ( D3D11_MESSAGE_ID_CREATE_VIDEOPROCESSORENUM + 1 ) , + D3D11_MESSAGE_ID_CREATE_DECODEROUTPUTVIEW = ( D3D11_MESSAGE_ID_CREATE_VIDEOPROCESSOR + 1 ) , + D3D11_MESSAGE_ID_CREATE_PROCESSORINPUTVIEW = ( D3D11_MESSAGE_ID_CREATE_DECODEROUTPUTVIEW + 1 ) , + D3D11_MESSAGE_ID_CREATE_PROCESSOROUTPUTVIEW = ( D3D11_MESSAGE_ID_CREATE_PROCESSORINPUTVIEW + 1 ) , + D3D11_MESSAGE_ID_CREATE_DEVICECONTEXTSTATE = ( D3D11_MESSAGE_ID_CREATE_PROCESSOROUTPUTVIEW + 1 ) , + D3D11_MESSAGE_ID_LIVE_VIDEODECODER = ( D3D11_MESSAGE_ID_CREATE_DEVICECONTEXTSTATE + 1 ) , + D3D11_MESSAGE_ID_LIVE_VIDEOPROCESSORENUM = ( D3D11_MESSAGE_ID_LIVE_VIDEODECODER + 1 ) , + D3D11_MESSAGE_ID_LIVE_VIDEOPROCESSOR = ( D3D11_MESSAGE_ID_LIVE_VIDEOPROCESSORENUM + 1 ) , + D3D11_MESSAGE_ID_LIVE_DECODEROUTPUTVIEW = ( D3D11_MESSAGE_ID_LIVE_VIDEOPROCESSOR + 1 ) , + D3D11_MESSAGE_ID_LIVE_PROCESSORINPUTVIEW = ( D3D11_MESSAGE_ID_LIVE_DECODEROUTPUTVIEW + 1 ) , + D3D11_MESSAGE_ID_LIVE_PROCESSOROUTPUTVIEW = ( D3D11_MESSAGE_ID_LIVE_PROCESSORINPUTVIEW + 1 ) , + D3D11_MESSAGE_ID_LIVE_DEVICECONTEXTSTATE = ( D3D11_MESSAGE_ID_LIVE_PROCESSOROUTPUTVIEW + 1 ) , + D3D11_MESSAGE_ID_DESTROY_VIDEODECODER = ( D3D11_MESSAGE_ID_LIVE_DEVICECONTEXTSTATE + 1 ) , + D3D11_MESSAGE_ID_DESTROY_VIDEOPROCESSORENUM = ( D3D11_MESSAGE_ID_DESTROY_VIDEODECODER + 1 ) , + D3D11_MESSAGE_ID_DESTROY_VIDEOPROCESSOR = ( D3D11_MESSAGE_ID_DESTROY_VIDEOPROCESSORENUM + 1 ) , + D3D11_MESSAGE_ID_DESTROY_DECODEROUTPUTVIEW = ( D3D11_MESSAGE_ID_DESTROY_VIDEOPROCESSOR + 1 ) , + D3D11_MESSAGE_ID_DESTROY_PROCESSORINPUTVIEW = ( D3D11_MESSAGE_ID_DESTROY_DECODEROUTPUTVIEW + 1 ) , + D3D11_MESSAGE_ID_DESTROY_PROCESSOROUTPUTVIEW = ( D3D11_MESSAGE_ID_DESTROY_PROCESSORINPUTVIEW + 1 ) , + D3D11_MESSAGE_ID_DESTROY_DEVICECONTEXTSTATE = ( D3D11_MESSAGE_ID_DESTROY_PROCESSOROUTPUTVIEW + 1 ) , + D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_INVALIDFLAGS = ( D3D11_MESSAGE_ID_DESTROY_DEVICECONTEXTSTATE + 1 ) , + D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_INVALIDFEATURELEVEL = ( D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_FEATURELEVELS_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_INVALIDFEATURELEVEL + 1 ) , + D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_INVALIDREFIID = ( D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_FEATURELEVELS_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DISCARDVIEW_INVALIDVIEW = ( D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_INVALIDREFIID + 1 ) , + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION1_INVALIDCOPYFLAGS = ( D3D11_MESSAGE_ID_DEVICE_DISCARDVIEW_INVALIDVIEW + 1 ) , + D3D11_MESSAGE_ID_UPDATESUBRESOURCE1_INVALIDCOPYFLAGS = ( D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION1_INVALIDCOPYFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFORCEDSAMPLECOUNT = ( D3D11_MESSAGE_ID_UPDATESUBRESOURCE1_INVALIDCOPYFLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODER_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFORCEDSAMPLECOUNT + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODER_NULLPARAM = ( D3D11_MESSAGE_ID_CREATEVIDEODECODER_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODER_INVALIDFORMAT = ( D3D11_MESSAGE_ID_CREATEVIDEODECODER_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODER_ZEROWIDTHHEIGHT = ( D3D11_MESSAGE_ID_CREATEVIDEODECODER_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODER_DRIVER_INVALIDBUFFERSIZE = ( D3D11_MESSAGE_ID_CREATEVIDEODECODER_ZEROWIDTHHEIGHT + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODER_DRIVER_INVALIDBUFFERUSAGE = ( D3D11_MESSAGE_ID_CREATEVIDEODECODER_DRIVER_INVALIDBUFFERSIZE + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERPROFILECOUNT_OUTOFMEMORY = ( D3D11_MESSAGE_ID_CREATEVIDEODECODER_DRIVER_INVALIDBUFFERUSAGE + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERPROFILE_NULLPARAM = ( D3D11_MESSAGE_ID_GETVIDEODECODERPROFILECOUNT_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERPROFILE_INVALIDINDEX = ( D3D11_MESSAGE_ID_GETVIDEODECODERPROFILE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERPROFILE_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_GETVIDEODECODERPROFILE_INVALIDINDEX + 1 ) , + D3D11_MESSAGE_ID_CHECKVIDEODECODERFORMAT_NULLPARAM = ( D3D11_MESSAGE_ID_GETVIDEODECODERPROFILE_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CHECKVIDEODECODERFORMAT_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CHECKVIDEODECODERFORMAT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERCONFIGCOUNT_NULLPARAM = ( D3D11_MESSAGE_ID_CHECKVIDEODECODERFORMAT_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERCONFIGCOUNT_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_GETVIDEODECODERCONFIGCOUNT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERCONFIG_NULLPARAM = ( D3D11_MESSAGE_ID_GETVIDEODECODERCONFIGCOUNT_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERCONFIG_INVALIDINDEX = ( D3D11_MESSAGE_ID_GETVIDEODECODERCONFIG_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERCONFIG_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_GETVIDEODECODERCONFIG_INVALIDINDEX + 1 ) , + D3D11_MESSAGE_ID_GETDECODERCREATIONPARAMS_NULLPARAM = ( D3D11_MESSAGE_ID_GETVIDEODECODERCONFIG_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_GETDECODERDRIVERHANDLE_NULLPARAM = ( D3D11_MESSAGE_ID_GETDECODERCREATIONPARAMS_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETDECODERBUFFER_NULLPARAM = ( D3D11_MESSAGE_ID_GETDECODERDRIVERHANDLE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETDECODERBUFFER_INVALIDBUFFER = ( D3D11_MESSAGE_ID_GETDECODERBUFFER_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETDECODERBUFFER_INVALIDTYPE = ( D3D11_MESSAGE_ID_GETDECODERBUFFER_INVALIDBUFFER + 1 ) , + D3D11_MESSAGE_ID_GETDECODERBUFFER_LOCKED = ( D3D11_MESSAGE_ID_GETDECODERBUFFER_INVALIDTYPE + 1 ) , + D3D11_MESSAGE_ID_RELEASEDECODERBUFFER_NULLPARAM = ( D3D11_MESSAGE_ID_GETDECODERBUFFER_LOCKED + 1 ) , + D3D11_MESSAGE_ID_RELEASEDECODERBUFFER_INVALIDTYPE = ( D3D11_MESSAGE_ID_RELEASEDECODERBUFFER_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_RELEASEDECODERBUFFER_NOTLOCKED = ( D3D11_MESSAGE_ID_RELEASEDECODERBUFFER_INVALIDTYPE + 1 ) , + D3D11_MESSAGE_ID_DECODERBEGINFRAME_NULLPARAM = ( D3D11_MESSAGE_ID_RELEASEDECODERBUFFER_NOTLOCKED + 1 ) , + D3D11_MESSAGE_ID_DECODERBEGINFRAME_HAZARD = ( D3D11_MESSAGE_ID_DECODERBEGINFRAME_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_DECODERENDFRAME_NULLPARAM = ( D3D11_MESSAGE_ID_DECODERBEGINFRAME_HAZARD + 1 ) , + D3D11_MESSAGE_ID_SUBMITDECODERBUFFERS_NULLPARAM = ( D3D11_MESSAGE_ID_DECODERENDFRAME_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_SUBMITDECODERBUFFERS_INVALIDTYPE = ( D3D11_MESSAGE_ID_SUBMITDECODERBUFFERS_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_DECODEREXTENSION_NULLPARAM = ( D3D11_MESSAGE_ID_SUBMITDECODERBUFFERS_INVALIDTYPE + 1 ) , + D3D11_MESSAGE_ID_DECODEREXTENSION_INVALIDRESOURCE = ( D3D11_MESSAGE_ID_DECODEREXTENSION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_DECODEREXTENSION_INVALIDRESOURCE + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_NULLPARAM = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDFRAMEFORMAT = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDUSAGE = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDFRAMEFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDINPUTFRAMERATE = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDUSAGE + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDOUTPUTFRAMERATE = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDINPUTFRAMERATE + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDWIDTHHEIGHT = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDOUTPUTFRAMERATE + 1 ) , + D3D11_MESSAGE_ID_GETVIDEOPROCESSORCONTENTDESC_NULLPARAM = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDWIDTHHEIGHT + 1 ) , + D3D11_MESSAGE_ID_CHECKVIDEOPROCESSORFORMAT_NULLPARAM = ( D3D11_MESSAGE_ID_GETVIDEOPROCESSORCONTENTDESC_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEOPROCESSORCAPS_NULLPARAM = ( D3D11_MESSAGE_ID_CHECKVIDEOPROCESSORFORMAT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEOPROCESSORRATECONVERSIONCAPS_NULLPARAM = ( D3D11_MESSAGE_ID_GETVIDEOPROCESSORCAPS_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEOPROCESSORRATECONVERSIONCAPS_INVALIDINDEX = ( D3D11_MESSAGE_ID_GETVIDEOPROCESSORRATECONVERSIONCAPS_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEOPROCESSORCUSTOMRATE_NULLPARAM = ( D3D11_MESSAGE_ID_GETVIDEOPROCESSORRATECONVERSIONCAPS_INVALIDINDEX + 1 ) , + D3D11_MESSAGE_ID_GETVIDEOPROCESSORCUSTOMRATE_INVALIDINDEX = ( D3D11_MESSAGE_ID_GETVIDEOPROCESSORCUSTOMRATE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEOPROCESSORFILTERRANGE_NULLPARAM = ( D3D11_MESSAGE_ID_GETVIDEOPROCESSORCUSTOMRATE_INVALIDINDEX + 1 ) , + D3D11_MESSAGE_ID_GETVIDEOPROCESSORFILTERRANGE_UNSUPPORTED = ( D3D11_MESSAGE_ID_GETVIDEOPROCESSORFILTERRANGE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOR_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_GETVIDEOPROCESSORFILTERRANGE_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOR_NULLPARAM = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOR_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTTARGETRECT_NULLPARAM = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOR_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTBACKGROUNDCOLOR_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTTARGETRECT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTBACKGROUNDCOLOR_INVALIDALPHA = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTBACKGROUNDCOLOR_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCOLORSPACE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTBACKGROUNDCOLOR_INVALIDALPHA + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCOLORSPACE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_INVALIDFILLMODE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCONSTRICTION_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_INVALIDFILLMODE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTSTEREOMODE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCONSTRICTION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTSTEREOMODE_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTSTEREOMODE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTEXTENSION_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTSTEREOMODE_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTTARGETRECT_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTEXTENSION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTBACKGROUNDCOLOR_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTTARGETRECT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTCOLORSPACE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTBACKGROUNDCOLOR_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTALPHAFILLMODE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTCOLORSPACE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTCONSTRICTION_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTALPHAFILLMODE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCONSTRICTION_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTCONSTRICTION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCONSTRICTION_INVALIDSIZE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCONSTRICTION_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTSTEREOMODE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCONSTRICTION_INVALIDSIZE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTEXTENSION_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTSTEREOMODE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFRAMEFORMAT_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTEXTENSION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFRAMEFORMAT_INVALIDFORMAT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFRAMEFORMAT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFRAMEFORMAT_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFRAMEFORMAT_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFRAMEFORMAT_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_INVALIDRATE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_INVALIDFLAG = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_INVALIDRATE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_INVALIDFLAG + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSOURCERECT_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSOURCERECT_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSOURCERECT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSOURCERECT_INVALIDRECT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSOURCERECT_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMDESTRECT_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSOURCERECT_INVALIDRECT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMDESTRECT_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMDESTRECT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMDESTRECT_INVALIDRECT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMDESTRECT_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMDESTRECT_INVALIDRECT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_INVALIDALPHA = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_INVALIDALPHA + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_INVALIDCOUNT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_INVALIDALPHA = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_INVALIDCOUNT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_INVALIDALPHA + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_INVALIDRATIO = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_INVALIDRATIO + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_INVALIDRANGE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_INVALIDRANGE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_FLIPUNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_MONOOFFSETUNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_FLIPUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_FORMATUNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_MONOOFFSETUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_INVALIDFORMAT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_FORMATUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMAUTOPROCESSINGMODE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMAUTOPROCESSINGMODE_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMAUTOPROCESSINGMODE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMAUTOPROCESSINGMODE_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_INVALIDFILTER = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_INVALIDFILTER + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_INVALIDLEVEL = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMEXTENSION_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_INVALIDLEVEL + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMEXTENSION_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMEXTENSION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFRAMEFORMAT_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMEXTENSION_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFRAMEFORMAT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMOUTPUTRATE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSOURCERECT_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMOUTPUTRATE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMDESTRECT_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSOURCERECT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMALPHA_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMDESTRECT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPALETTE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMALPHA_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPIXELASPECTRATIO_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPALETTE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMLUMAKEY_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPIXELASPECTRATIO_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSTEREOFORMAT_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMLUMAKEY_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMAUTOPROCESSINGMODE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSTEREOFORMAT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFILTER_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMAUTOPROCESSINGMODE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMEXTENSION_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFILTER_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMEXTENSION_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMEXTENSION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMEXTENSION_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDSTREAMCOUNT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_TARGETRECT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDSTREAMCOUNT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDOUTPUT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_TARGETRECT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDPASTFRAMES = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDOUTPUT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDFUTUREFRAMES = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDPASTFRAMES + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDSOURCERECT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDFUTUREFRAMES + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDDESTRECT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDSOURCERECT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDINPUTRESOURCE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDDESTRECT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDARRAYSIZE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDINPUTRESOURCE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDARRAY = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDARRAYSIZE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_RIGHTEXPECTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDARRAY + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_RIGHTNOTEXPECTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_RIGHTEXPECTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_STEREONOTENABLED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_RIGHTNOTEXPECTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDRIGHTRESOURCE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_STEREONOTENABLED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_NOSTEREOSTREAMS = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDRIGHTRESOURCE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INPUTHAZARD = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_NOSTEREOSTREAMS + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_OUTPUTHAZARD = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INPUTHAZARD + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_OUTPUTHAZARD + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_NULLPARAM = ( D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDTYPE = ( D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDBIND = ( D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDTYPE + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_UNSUPPORTEDFORMAT = ( D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDBIND + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDMIP = ( D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_UNSUPPORTEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_UNSUPPORTEMIP = ( D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDMIP + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDARRAYSIZE = ( D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_UNSUPPORTEMIP + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDARRAY = ( D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDARRAYSIZE + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDDIMENSION = ( D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDARRAY + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDDIMENSION + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_NULLPARAM = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDTYPE = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDBIND = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDTYPE + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDMISC = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDBIND + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDUSAGE = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDMISC + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDFORMAT = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDUSAGE + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDFOURCC = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDMIP = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDFOURCC + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_UNSUPPORTEDMIP = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDMIP + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDARRAYSIZE = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_UNSUPPORTEDMIP + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDARRAY = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDARRAYSIZE + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDDIMENSION = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDARRAY + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDDIMENSION + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_NULLPARAM = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDTYPE = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDBIND = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDTYPE + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDFORMAT = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDBIND + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDMIP = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDFORMAT + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_UNSUPPORTEDMIP = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDMIP + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_UNSUPPORTEDARRAY = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_UNSUPPORTEDMIP + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDARRAY = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_UNSUPPORTEDARRAY + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDDIMENSION = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDARRAY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_FORCED_SAMPLE_COUNT = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDDIMENSION + 1 ) , + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDLOGICOPS = ( D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_FORCED_SAMPLE_COUNT + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDARRAYWITHDECODER = ( D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDLOGICOPS + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDARRAYWITHDECODER = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDARRAYWITHDECODER + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDARRAYWITHDECODER = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDARRAYWITHDECODER + 1 ) , + D3D11_MESSAGE_ID_DEVICE_LOCKEDOUT_INTERFACE = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDARRAYWITHDECODER + 1 ) , + D3D11_MESSAGE_ID_REF_WARNING_ATOMIC_INCONSISTENT = ( D3D11_MESSAGE_ID_DEVICE_LOCKEDOUT_INTERFACE + 1 ) , + D3D11_MESSAGE_ID_REF_WARNING_READING_UNINITIALIZED_RESOURCE = ( D3D11_MESSAGE_ID_REF_WARNING_ATOMIC_INCONSISTENT + 1 ) , + D3D11_MESSAGE_ID_REF_WARNING_RAW_HAZARD = ( D3D11_MESSAGE_ID_REF_WARNING_READING_UNINITIALIZED_RESOURCE + 1 ) , + D3D11_MESSAGE_ID_REF_WARNING_WAR_HAZARD = ( D3D11_MESSAGE_ID_REF_WARNING_RAW_HAZARD + 1 ) , + D3D11_MESSAGE_ID_REF_WARNING_WAW_HAZARD = ( D3D11_MESSAGE_ID_REF_WARNING_WAR_HAZARD + 1 ) , + D3D11_MESSAGE_ID_CREATECRYPTOSESSION_NULLPARAM = ( D3D11_MESSAGE_ID_REF_WARNING_WAW_HAZARD + 1 ) , + D3D11_MESSAGE_ID_CREATECRYPTOSESSION_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATECRYPTOSESSION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETCRYPTOTYPE_NULLPARAM = ( D3D11_MESSAGE_ID_CREATECRYPTOSESSION_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_GETDECODERPROFILE_NULLPARAM = ( D3D11_MESSAGE_ID_GETCRYPTOTYPE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETCRYPTOSESSIONCERTIFICATESIZE_NULLPARAM = ( D3D11_MESSAGE_ID_GETDECODERPROFILE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETCRYPTOSESSIONCERTIFICATE_NULLPARAM = ( D3D11_MESSAGE_ID_GETCRYPTOSESSIONCERTIFICATESIZE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETCRYPTOSESSIONCERTIFICATE_WRONGSIZE = ( D3D11_MESSAGE_ID_GETCRYPTOSESSIONCERTIFICATE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETCRYPTOSESSIONHANDLE_WRONGSIZE = ( D3D11_MESSAGE_ID_GETCRYPTOSESSIONCERTIFICATE_WRONGSIZE + 1 ) , + D3D11_MESSAGE_ID_NEGOTIATECRPYTOSESSIONKEYEXCHANGE_NULLPARAM = ( D3D11_MESSAGE_ID_GETCRYPTOSESSIONHANDLE_WRONGSIZE + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_UNSUPPORTED = ( D3D11_MESSAGE_ID_NEGOTIATECRPYTOSESSIONKEYEXCHANGE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_NULLPARAM = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_WRONGDEVICE = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_WRONGDEVICE = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_WRONGDEVICE + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_FORMAT_MISMATCH = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_WRONGDEVICE + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SIZE_MISMATCH = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_FORMAT_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_MULTISAMPLED = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_SIZE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_NOT_STAGING = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_MULTISAMPLED + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_MAPPED = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_NOT_STAGING + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_MAPPED = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_MAPPED + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_OFFERED = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_MAPPED + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_OFFERED = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_OFFERED + 1 ) , + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_CONTENT_UNDEFINED = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_OFFERED + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_UNSUPPORTED = ( D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_CONTENT_UNDEFINED + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_NULLPARAM = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_WRONGDEVICE = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_WRONGDEVICE = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_WRONGDEVICE + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_FORMAT_MISMATCH = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_WRONGDEVICE + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_SIZE_MISMATCH = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_FORMAT_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_MULTISAMPLED = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_SIZE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_NOT_STAGING = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_MULTISAMPLED + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_NOT_RENDER_TARGET = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_NOT_STAGING + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_MAPPED = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_NOT_RENDER_TARGET + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_MAPPED = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_MAPPED + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_OFFERED = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_MAPPED + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_OFFERED = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_OFFERED + 1 ) , + D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_CONTENT_UNDEFINED = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_OFFERED + 1 ) , + D3D11_MESSAGE_ID_STARTSESSIONKEYREFRESH_NULLPARAM = ( D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_CONTENT_UNDEFINED + 1 ) , + D3D11_MESSAGE_ID_STARTSESSIONKEYREFRESH_INVALIDSIZE = ( D3D11_MESSAGE_ID_STARTSESSIONKEYREFRESH_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_FINISHSESSIONKEYREFRESH_NULLPARAM = ( D3D11_MESSAGE_ID_STARTSESSIONKEYREFRESH_INVALIDSIZE + 1 ) , + D3D11_MESSAGE_ID_GETENCRYPTIONBLTKEY_NULLPARAM = ( D3D11_MESSAGE_ID_FINISHSESSIONKEYREFRESH_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETENCRYPTIONBLTKEY_INVALIDSIZE = ( D3D11_MESSAGE_ID_GETENCRYPTIONBLTKEY_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETCONTENTPROTECTIONCAPS_NULLPARAM = ( D3D11_MESSAGE_ID_GETENCRYPTIONBLTKEY_INVALIDSIZE + 1 ) , + D3D11_MESSAGE_ID_CHECKCRYPTOKEYEXCHANGE_NULLPARAM = ( D3D11_MESSAGE_ID_GETCONTENTPROTECTIONCAPS_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CHECKCRYPTOKEYEXCHANGE_INVALIDINDEX = ( D3D11_MESSAGE_ID_CHECKCRYPTOKEYEXCHANGE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_NULLPARAM = ( D3D11_MESSAGE_ID_CHECKCRYPTOKEYEXCHANGE_INVALIDINDEX + 1 ) , + D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_UNSUPPORTED = ( D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_INVALIDTYPE = ( D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_OUTOFMEMORY_RETURN = ( D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_INVALIDTYPE + 1 ) , + D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATESIZE_INVALIDCHANNEL = ( D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_OUTOFMEMORY_RETURN + 1 ) , + D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATESIZE_NULLPARAM = ( D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATESIZE_INVALIDCHANNEL + 1 ) , + D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATE_INVALIDCHANNEL = ( D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATESIZE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATE_NULLPARAM = ( D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATE_INVALIDCHANNEL + 1 ) , + D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATE_WRONGSIZE = ( D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_NEGOTIATEAUTHENTICATEDCHANNELKEYEXCHANGE_INVALIDCHANNEL = ( D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATE_WRONGSIZE + 1 ) , + D3D11_MESSAGE_ID_NEGOTIATEAUTHENTICATEDCHANNELKEYEXCHANGE_NULLPARAM = ( D3D11_MESSAGE_ID_NEGOTIATEAUTHENTICATEDCHANNELKEYEXCHANGE_INVALIDCHANNEL + 1 ) , + D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_NULLPARAM = ( D3D11_MESSAGE_ID_NEGOTIATEAUTHENTICATEDCHANNELKEYEXCHANGE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_WRONGCHANNEL = ( D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_UNSUPPORTEDQUERY = ( D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_WRONGCHANNEL + 1 ) , + D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_WRONGSIZE = ( D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_UNSUPPORTEDQUERY + 1 ) , + D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_INVALIDPROCESSINDEX = ( D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_WRONGSIZE + 1 ) , + D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_NULLPARAM = ( D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_INVALIDPROCESSINDEX + 1 ) , + D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_WRONGCHANNEL = ( D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_UNSUPPORTEDCONFIGURE = ( D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_WRONGCHANNEL + 1 ) , + D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_WRONGSIZE = ( D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_UNSUPPORTEDCONFIGURE + 1 ) , + D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_INVALIDPROCESSIDTYPE = ( D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_WRONGSIZE + 1 ) , + D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT = ( D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_INVALIDPROCESSIDTYPE + 1 ) , + D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT = ( D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT + 1 ) , + D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT = ( D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT + 1 ) , + D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT = ( D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT + 1 ) , + D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT = ( D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT + 1 ) , + D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT = ( D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT + 1 ) , + D3D11_MESSAGE_ID_NEGOTIATECRPYTOSESSIONKEYEXCHANGE_INVALIDSIZE = ( D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT + 1 ) , + D3D11_MESSAGE_ID_NEGOTIATEAUTHENTICATEDCHANNELKEYEXCHANGE_INVALIDSIZE = ( D3D11_MESSAGE_ID_NEGOTIATECRPYTOSESSIONKEYEXCHANGE_INVALIDSIZE + 1 ) , + D3D11_MESSAGE_ID_OFFERRESOURCES_INVALIDPRIORITY = ( D3D11_MESSAGE_ID_NEGOTIATEAUTHENTICATEDCHANNELKEYEXCHANGE_INVALIDSIZE + 1 ) , + D3D11_MESSAGE_ID_GETCRYPTOSESSIONHANDLE_OUTOFMEMORY = ( D3D11_MESSAGE_ID_OFFERRESOURCES_INVALIDPRIORITY + 1 ) , + D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_NULLPARAM = ( D3D11_MESSAGE_ID_GETCRYPTOSESSIONHANDLE_OUTOFMEMORY + 1 ) , + D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_INVALIDTYPE = ( D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_INVALIDBIND = ( D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_INVALIDTYPE + 1 ) , + D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_INVALIDARRAY = ( D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_INVALIDBIND + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_NULLPARAM = ( D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_INVALIDARRAY + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_INVALID = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_INVALID + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMROTATION_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDVIEW = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMROTATION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDVIEW + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_SHADEREXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEEXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_SHADEREXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_SHADEREXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEEXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_SHADEREXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_SHADEREXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEEXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_SHADEREXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_SHADEREXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEEXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEEXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_SHADEREXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_SHADEREXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEEXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_SHADEREXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_SHADEREXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEEXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEEXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_SHADEREXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_SHADEREXTENSIONSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEEXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_MINPRECISION = ( D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_SHADEREXTENSIONSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_UNSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_MINPRECISION + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_UAVSNOTSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_UAVSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_UAVSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_UAVSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_UAVSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_UAVSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_UAVSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UAVSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_UAVSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_UAVSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UAVSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_UAVSNOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_UAVSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_INVALIDOFFSET = ( D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_UAVSNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_TOOMANYVIEWS = ( D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_INVALIDOFFSET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_NOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_TOOMANYVIEWS + 1 ) , + D3D11_MESSAGE_ID_SWAPDEVICECONTEXTSTATE_NOTSUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_NOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_PREFERUPDATESUBRESOURCE1 = ( D3D11_MESSAGE_ID_SWAPDEVICECONTEXTSTATE_NOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_GETDC_INACCESSIBLE = ( D3D11_MESSAGE_ID_UPDATESUBRESOURCE_PREFERUPDATESUBRESOURCE1 + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDRECT = ( D3D11_MESSAGE_ID_GETDC_INACCESSIBLE + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLE_MASK_IGNORED_ON_FL9 = ( D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDRECT + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE1_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLE_MASK_IGNORED_ON_FL9 + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BY_NAME_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE1_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_ENQUEUESETEVENT_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BY_NAME_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_OFFERRELEASE_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_ENQUEUESETEVENT_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_OFFERRESOURCES_INACCESSIBLE = ( D3D11_MESSAGE_ID_OFFERRELEASE_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDMSAA = ( D3D11_MESSAGE_ID_OFFERRESOURCES_INACCESSIBLE + 1 ) , + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDMSAA = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDMSAA + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDSOURCERECT = ( D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDMSAA + 1 ) , + D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_EMPTYRECT = ( D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDSOURCERECT + 1 ) , + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_EMPTYDESTBOX = ( D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_EMPTYRECT + 1 ) , + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_EMPTYSOURCEBOX = ( D3D11_MESSAGE_ID_UPDATESUBRESOURCE_EMPTYDESTBOX + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_LOGIC_OPS = ( D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_EMPTYSOURCEBOX + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_DEPTHSTENCILVIEW_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_LOGIC_OPS + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RENDERTARGETVIEW_NOT_SET = ( D3D11_MESSAGE_ID_DEVICE_DRAW_DEPTHSTENCILVIEW_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RENDERTARGETVIEW_NOT_SET_DUE_TO_FLIP_PRESENT = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RENDERTARGETVIEW_NOT_SET + 1 ) , + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_NOT_SET_DUE_TO_FLIP_PRESENT = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RENDERTARGETVIEW_NOT_SET_DUE_TO_FLIP_PRESENT + 1 ) , + D3D11_MESSAGE_ID_GETDATAFORNEWHARDWAREKEY_NULLPARAM = ( D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_NOT_SET_DUE_TO_FLIP_PRESENT + 1 ) , + D3D11_MESSAGE_ID_CHECKCRYPTOSESSIONSTATUS_NULLPARAM = ( D3D11_MESSAGE_ID_GETDATAFORNEWHARDWAREKEY_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETCRYPTOSESSIONPRIVATEDATASIZE_NULLPARAM = ( D3D11_MESSAGE_ID_CHECKCRYPTOSESSIONSTATUS_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERCAPS_NULLPARAM = ( D3D11_MESSAGE_ID_GETCRYPTOSESSIONPRIVATEDATASIZE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_GETVIDEODECODERCAPS_ZEROWIDTHHEIGHT = ( D3D11_MESSAGE_ID_GETVIDEODECODERCAPS_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CHECKVIDEODECODERDOWNSAMPLING_NULLPARAM = ( D3D11_MESSAGE_ID_GETVIDEODECODERCAPS_ZEROWIDTHHEIGHT + 1 ) , + D3D11_MESSAGE_ID_CHECKVIDEODECODERDOWNSAMPLING_INVALIDCOLORSPACE = ( D3D11_MESSAGE_ID_CHECKVIDEODECODERDOWNSAMPLING_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CHECKVIDEODECODERDOWNSAMPLING_ZEROWIDTHHEIGHT = ( D3D11_MESSAGE_ID_CHECKVIDEODECODERDOWNSAMPLING_INVALIDCOLORSPACE + 1 ) , + D3D11_MESSAGE_ID_VIDEODECODERENABLEDOWNSAMPLING_NULLPARAM = ( D3D11_MESSAGE_ID_CHECKVIDEODECODERDOWNSAMPLING_ZEROWIDTHHEIGHT + 1 ) , + D3D11_MESSAGE_ID_VIDEODECODERENABLEDOWNSAMPLING_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEODECODERENABLEDOWNSAMPLING_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEODECODERUPDATEDOWNSAMPLING_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEODECODERENABLEDOWNSAMPLING_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEODECODERUPDATEDOWNSAMPLING_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEODECODERUPDATEDOWNSAMPLING_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CHECKVIDEOPROCESSORFORMATCONVERSION_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEODECODERUPDATEDOWNSAMPLING_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCOLORSPACE1_NULLPARAM = ( D3D11_MESSAGE_ID_CHECKVIDEOPROCESSORFORMATCONVERSION_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTCOLORSPACE1_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCOLORSPACE1_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE1_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTCOLORSPACE1_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE1_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE1_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMMIRROR_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE1_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMMIRROR_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMMIRROR_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMMIRROR_UNSUPPORTED = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMMIRROR_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE1_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMMIRROR_UNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMMIRROR_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE1_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_RECOMMENDVIDEODECODERDOWNSAMPLING_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMMIRROR_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_RECOMMENDVIDEODECODERDOWNSAMPLING_INVALIDCOLORSPACE = ( D3D11_MESSAGE_ID_RECOMMENDVIDEODECODERDOWNSAMPLING_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_RECOMMENDVIDEODECODERDOWNSAMPLING_ZEROWIDTHHEIGHT = ( D3D11_MESSAGE_ID_RECOMMENDVIDEODECODERDOWNSAMPLING_INVALIDCOLORSPACE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTSHADERUSAGE_NULLPARAM = ( D3D11_MESSAGE_ID_RECOMMENDVIDEODECODERDOWNSAMPLING_ZEROWIDTHHEIGHT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTSHADERUSAGE_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTSHADERUSAGE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTSHADERUSAGE_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_INVALIDSTREAMCOUNT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_TARGETRECT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_INVALIDSTREAMCOUNT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_INVALIDSOURCERECT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_TARGETRECT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_INVALIDDESTRECT = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_INVALIDSOURCERECT + 1 ) , + D3D11_MESSAGE_ID_GETCRYPTOSESSIONPRIVATEDATASIZE_INVALID_KEY_EXCHANGE_TYPE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_INVALIDDESTRECT + 1 ) , + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE1_ACCESS_DENIED = ( D3D11_MESSAGE_ID_GETCRYPTOSESSIONPRIVATEDATASIZE_INVALID_KEY_EXCHANGE_TYPE + 1 ) , + D3D11_MESSAGE_ID_D3D11_1_MESSAGES_END = ( D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE1_ACCESS_DENIED + 1 ) , + D3D11_MESSAGE_ID_D3D11_2_MESSAGES_START = ( D3D11_MESSAGE_ID_D3D11_1_MESSAGES_END + 1 ) , + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDUSAGE = ( D3D11_MESSAGE_ID_D3D11_2_MESSAGES_START + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDUSAGE = ( D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDUSAGE + 1 ) , + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDUSAGE = ( D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDUSAGE + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_LEVEL9_STEPRATE_NOT_1 = ( D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDUSAGE + 1 ) , + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_LEVEL9_INSTANCING_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_LEVEL9_STEPRATE_NOT_1 + 1 ) , + D3D11_MESSAGE_ID_UPDATETILEMAPPINGS_INVALID_PARAMETER = ( D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_LEVEL9_INSTANCING_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_COPYTILEMAPPINGS_INVALID_PARAMETER = ( D3D11_MESSAGE_ID_UPDATETILEMAPPINGS_INVALID_PARAMETER + 1 ) , + D3D11_MESSAGE_ID_COPYTILES_INVALID_PARAMETER = ( D3D11_MESSAGE_ID_COPYTILEMAPPINGS_INVALID_PARAMETER + 1 ) , + D3D11_MESSAGE_ID_UPDATETILES_INVALID_PARAMETER = ( D3D11_MESSAGE_ID_COPYTILES_INVALID_PARAMETER + 1 ) , + D3D11_MESSAGE_ID_RESIZETILEPOOL_INVALID_PARAMETER = ( D3D11_MESSAGE_ID_UPDATETILES_INVALID_PARAMETER + 1 ) , + D3D11_MESSAGE_ID_TILEDRESOURCEBARRIER_INVALID_PARAMETER = ( D3D11_MESSAGE_ID_RESIZETILEPOOL_INVALID_PARAMETER + 1 ) , + D3D11_MESSAGE_ID_NULL_TILE_MAPPING_ACCESS_WARNING = ( D3D11_MESSAGE_ID_TILEDRESOURCEBARRIER_INVALID_PARAMETER + 1 ) , + D3D11_MESSAGE_ID_NULL_TILE_MAPPING_ACCESS_ERROR = ( D3D11_MESSAGE_ID_NULL_TILE_MAPPING_ACCESS_WARNING + 1 ) , + D3D11_MESSAGE_ID_DIRTY_TILE_MAPPING_ACCESS = ( D3D11_MESSAGE_ID_NULL_TILE_MAPPING_ACCESS_ERROR + 1 ) , + D3D11_MESSAGE_ID_DUPLICATE_TILE_MAPPINGS_IN_COVERED_AREA = ( D3D11_MESSAGE_ID_DIRTY_TILE_MAPPING_ACCESS + 1 ) , + D3D11_MESSAGE_ID_TILE_MAPPINGS_IN_COVERED_AREA_DUPLICATED_OUTSIDE = ( D3D11_MESSAGE_ID_DUPLICATE_TILE_MAPPINGS_IN_COVERED_AREA + 1 ) , + D3D11_MESSAGE_ID_TILE_MAPPINGS_SHARED_BETWEEN_INCOMPATIBLE_RESOURCES = ( D3D11_MESSAGE_ID_TILE_MAPPINGS_IN_COVERED_AREA_DUPLICATED_OUTSIDE + 1 ) , + D3D11_MESSAGE_ID_TILE_MAPPINGS_SHARED_BETWEEN_INPUT_AND_OUTPUT = ( D3D11_MESSAGE_ID_TILE_MAPPINGS_SHARED_BETWEEN_INCOMPATIBLE_RESOURCES + 1 ) , + D3D11_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_INVALIDFLAGS = ( D3D11_MESSAGE_ID_TILE_MAPPINGS_SHARED_BETWEEN_INPUT_AND_OUTPUT + 1 ) , + D3D11_MESSAGE_ID_GETRESOURCETILING_NONTILED_RESOURCE = ( D3D11_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_RESIZETILEPOOL_SHRINK_WITH_MAPPINGS_STILL_DEFINED_PAST_END = ( D3D11_MESSAGE_ID_GETRESOURCETILING_NONTILED_RESOURCE + 1 ) , + D3D11_MESSAGE_ID_NEED_TO_CALL_TILEDRESOURCEBARRIER = ( D3D11_MESSAGE_ID_RESIZETILEPOOL_SHRINK_WITH_MAPPINGS_STILL_DEFINED_PAST_END + 1 ) , + D3D11_MESSAGE_ID_CREATEDEVICE_INVALIDARGS = ( D3D11_MESSAGE_ID_NEED_TO_CALL_TILEDRESOURCEBARRIER + 1 ) , + D3D11_MESSAGE_ID_CREATEDEVICE_WARNING = ( D3D11_MESSAGE_ID_CREATEDEVICE_INVALIDARGS + 1 ) , + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWUINT_HAZARD = ( D3D11_MESSAGE_ID_CREATEDEVICE_WARNING + 1 ) , + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWFLOAT_HAZARD = ( D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWUINT_HAZARD + 1 ) , + D3D11_MESSAGE_ID_TILED_RESOURCE_TIER_1_BUFFER_TEXTURE_MISMATCH = ( D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWFLOAT_HAZARD + 1 ) , + D3D11_MESSAGE_ID_CREATE_CRYPTOSESSION = ( D3D11_MESSAGE_ID_TILED_RESOURCE_TIER_1_BUFFER_TEXTURE_MISMATCH + 1 ) , + D3D11_MESSAGE_ID_CREATE_AUTHENTICATEDCHANNEL = ( D3D11_MESSAGE_ID_CREATE_CRYPTOSESSION + 1 ) , + D3D11_MESSAGE_ID_LIVE_CRYPTOSESSION = ( D3D11_MESSAGE_ID_CREATE_AUTHENTICATEDCHANNEL + 1 ) , + D3D11_MESSAGE_ID_LIVE_AUTHENTICATEDCHANNEL = ( D3D11_MESSAGE_ID_LIVE_CRYPTOSESSION + 1 ) , + D3D11_MESSAGE_ID_DESTROY_CRYPTOSESSION = ( D3D11_MESSAGE_ID_LIVE_AUTHENTICATEDCHANNEL + 1 ) , + D3D11_MESSAGE_ID_DESTROY_AUTHENTICATEDCHANNEL = ( D3D11_MESSAGE_ID_DESTROY_CRYPTOSESSION + 1 ) , + D3D11_MESSAGE_ID_D3D11_2_MESSAGES_END = ( D3D11_MESSAGE_ID_DESTROY_AUTHENTICATEDCHANNEL + 1 ) , + D3D11_MESSAGE_ID_D3D11_3_MESSAGES_START = ( D3D11_MESSAGE_ID_D3D11_2_MESSAGES_END + 1 ) , + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALID_CONSERVATIVERASTERMODE = ( D3D11_MESSAGE_ID_D3D11_3_MESSAGES_START + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_SYSTEMVALUE = ( D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALID_CONSERVATIVERASTERMODE + 1 ) , + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDCONTEXTTYPE = ( D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_SYSTEMVALUE + 1 ) , + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_DECODENOTSUPPORTED = ( D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDCONTEXTTYPE + 1 ) , + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_ENCODENOTSUPPORTED = ( D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_DECODENOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDPLANEINDEX = ( D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_ENCODENOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDVIDEOPLANEINDEX = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDPLANEINDEX + 1 ) , + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_AMBIGUOUSVIDEOPLANEINDEX = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDVIDEOPLANEINDEX + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDPLANEINDEX = ( D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_AMBIGUOUSVIDEOPLANEINDEX + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDVIDEOPLANEINDEX = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDPLANEINDEX + 1 ) , + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_AMBIGUOUSVIDEOPLANEINDEX = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDVIDEOPLANEINDEX + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDPLANEINDEX = ( D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_AMBIGUOUSVIDEOPLANEINDEX + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDVIDEOPLANEINDEX = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDPLANEINDEX + 1 ) , + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_AMBIGUOUSVIDEOPLANEINDEX = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDVIDEOPLANEINDEX + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDSCANDATAOFFSET = ( D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_AMBIGUOUSVIDEOPLANEINDEX + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_NOTSUPPORTED = ( D3D11_MESSAGE_ID_JPEGDECODE_INVALIDSCANDATAOFFSET + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_DIMENSIONSTOOLARGE = ( D3D11_MESSAGE_ID_JPEGDECODE_NOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDCOMPONENTS = ( D3D11_MESSAGE_ID_JPEGDECODE_DIMENSIONSTOOLARGE + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_DESTINATIONNOT2D = ( D3D11_MESSAGE_ID_JPEGDECODE_INVALIDCOMPONENTS + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_TILEDRESOURCESUNSUPPORTED = ( D3D11_MESSAGE_ID_JPEGDECODE_DESTINATIONNOT2D + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_GUARDRECTSUNSUPPORTED = ( D3D11_MESSAGE_ID_JPEGDECODE_TILEDRESOURCESUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_FORMATUNSUPPORTED = ( D3D11_MESSAGE_ID_JPEGDECODE_GUARDRECTSUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDSUBRESOURCE = ( D3D11_MESSAGE_ID_JPEGDECODE_FORMATUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDMIPLEVEL = ( D3D11_MESSAGE_ID_JPEGDECODE_INVALIDSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_EMPTYDESTBOX = ( D3D11_MESSAGE_ID_JPEGDECODE_INVALIDMIPLEVEL + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_DESTBOXNOT2D = ( D3D11_MESSAGE_ID_JPEGDECODE_EMPTYDESTBOX + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_DESTBOXNOTSUB = ( D3D11_MESSAGE_ID_JPEGDECODE_DESTBOXNOT2D + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_DESTBOXESINTERSECT = ( D3D11_MESSAGE_ID_JPEGDECODE_DESTBOXNOTSUB + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_XSUBSAMPLEMISMATCH = ( D3D11_MESSAGE_ID_JPEGDECODE_DESTBOXESINTERSECT + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_YSUBSAMPLEMISMATCH = ( D3D11_MESSAGE_ID_JPEGDECODE_XSUBSAMPLEMISMATCH + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_XSUBSAMPLEODD = ( D3D11_MESSAGE_ID_JPEGDECODE_YSUBSAMPLEMISMATCH + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_YSUBSAMPLEODD = ( D3D11_MESSAGE_ID_JPEGDECODE_XSUBSAMPLEODD + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_OUTPUTDIMENSIONSTOOLARGE = ( D3D11_MESSAGE_ID_JPEGDECODE_YSUBSAMPLEODD + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_NONPOW2SCALEUNSUPPORTED = ( D3D11_MESSAGE_ID_JPEGDECODE_OUTPUTDIMENSIONSTOOLARGE + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_FRACTIONALDOWNSCALETOLARGE = ( D3D11_MESSAGE_ID_JPEGDECODE_NONPOW2SCALEUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_CHROMASIZEMISMATCH = ( D3D11_MESSAGE_ID_JPEGDECODE_FRACTIONALDOWNSCALETOLARGE + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_LUMACHROMASIZEMISMATCH = ( D3D11_MESSAGE_ID_JPEGDECODE_CHROMASIZEMISMATCH + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDNUMDESTINATIONS = ( D3D11_MESSAGE_ID_JPEGDECODE_LUMACHROMASIZEMISMATCH + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_SUBBOXUNSUPPORTED = ( D3D11_MESSAGE_ID_JPEGDECODE_INVALIDNUMDESTINATIONS + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_1DESTUNSUPPORTEDFORMAT = ( D3D11_MESSAGE_ID_JPEGDECODE_SUBBOXUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_3DESTUNSUPPORTEDFORMAT = ( D3D11_MESSAGE_ID_JPEGDECODE_1DESTUNSUPPORTEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_SCALEUNSUPPORTED = ( D3D11_MESSAGE_ID_JPEGDECODE_3DESTUNSUPPORTEDFORMAT + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDSOURCESIZE = ( D3D11_MESSAGE_ID_JPEGDECODE_SCALEUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDCOPYFLAGS = ( D3D11_MESSAGE_ID_JPEGDECODE_INVALIDSOURCESIZE + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_HAZARD = ( D3D11_MESSAGE_ID_JPEGDECODE_INVALIDCOPYFLAGS + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPORTEDSRCBUFFERUSAGE = ( D3D11_MESSAGE_ID_JPEGDECODE_HAZARD + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPORTEDSRCBUFFERMISCFLAGS = ( D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPORTEDSRCBUFFERUSAGE + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPORTEDDSTTEXTUREUSAGE = ( D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPORTEDSRCBUFFERMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_BACKBUFFERNOTSUPPORTED = ( D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPORTEDDSTTEXTUREUSAGE + 1 ) , + D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPRTEDCOPYFLAGS = ( D3D11_MESSAGE_ID_JPEGDECODE_BACKBUFFERNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_NOTSUPPORTED = ( D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPRTEDCOPYFLAGS + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_INVALIDSCANDATAOFFSET = ( D3D11_MESSAGE_ID_JPEGENCODE_NOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_INVALIDCOMPONENTS = ( D3D11_MESSAGE_ID_JPEGENCODE_INVALIDSCANDATAOFFSET + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_SOURCENOT2D = ( D3D11_MESSAGE_ID_JPEGENCODE_INVALIDCOMPONENTS + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_TILEDRESOURCESUNSUPPORTED = ( D3D11_MESSAGE_ID_JPEGENCODE_SOURCENOT2D + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_GUARDRECTSUNSUPPORTED = ( D3D11_MESSAGE_ID_JPEGENCODE_TILEDRESOURCESUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_XSUBSAMPLEMISMATCH = ( D3D11_MESSAGE_ID_JPEGENCODE_GUARDRECTSUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_YSUBSAMPLEMISMATCH = ( D3D11_MESSAGE_ID_JPEGENCODE_XSUBSAMPLEMISMATCH + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_FORMATUNSUPPORTED = ( D3D11_MESSAGE_ID_JPEGENCODE_YSUBSAMPLEMISMATCH + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_INVALIDSUBRESOURCE = ( D3D11_MESSAGE_ID_JPEGENCODE_FORMATUNSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_INVALIDMIPLEVEL = ( D3D11_MESSAGE_ID_JPEGENCODE_INVALIDSUBRESOURCE + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_DIMENSIONSTOOLARGE = ( D3D11_MESSAGE_ID_JPEGENCODE_INVALIDMIPLEVEL + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_HAZARD = ( D3D11_MESSAGE_ID_JPEGENCODE_DIMENSIONSTOOLARGE + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_UNSUPPORTEDDSTBUFFERUSAGE = ( D3D11_MESSAGE_ID_JPEGENCODE_HAZARD + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_UNSUPPORTEDDSTBUFFERMISCFLAGS = ( D3D11_MESSAGE_ID_JPEGENCODE_UNSUPPORTEDDSTBUFFERUSAGE + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_UNSUPPORTEDSRCTEXTUREUSAGE = ( D3D11_MESSAGE_ID_JPEGENCODE_UNSUPPORTEDDSTBUFFERMISCFLAGS + 1 ) , + D3D11_MESSAGE_ID_JPEGENCODE_BACKBUFFERNOTSUPPORTED = ( D3D11_MESSAGE_ID_JPEGENCODE_UNSUPPORTEDSRCTEXTUREUSAGE + 1 ) , + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_UNSUPPORTEDCONTEXTTTYPEFORQUERY = ( D3D11_MESSAGE_ID_JPEGENCODE_BACKBUFFERNOTSUPPORTED + 1 ) , + D3D11_MESSAGE_ID_FLUSH1_INVALIDCONTEXTTYPE = ( D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_UNSUPPORTEDCONTEXTTTYPEFORQUERY + 1 ) , + D3D11_MESSAGE_ID_DEVICE_SETHARDWAREPROTECTION_INVALIDCONTEXT = ( D3D11_MESSAGE_ID_FLUSH1_INVALIDCONTEXTTYPE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTHDRMETADATA_NULLPARAM = ( D3D11_MESSAGE_ID_DEVICE_SETHARDWAREPROTECTION_INVALIDCONTEXT + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTHDRMETADATA_INVALIDSIZE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTHDRMETADATA_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTHDRMETADATA_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTHDRMETADATA_INVALIDSIZE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTHDRMETADATA_INVALIDSIZE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTHDRMETADATA_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMHDRMETADATA_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTHDRMETADATA_INVALIDSIZE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMHDRMETADATA_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMHDRMETADATA_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMHDRMETADATA_INVALIDSIZE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMHDRMETADATA_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMHDRMETADATA_NULLPARAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMHDRMETADATA_INVALIDSIZE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMHDRMETADATA_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMHDRMETADATA_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMHDRMETADATA_INVALIDSIZE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMHDRMETADATA_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFRAMEFORMAT_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMHDRMETADATA_INVALIDSIZE + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFRAMEFORMAT_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMOUTPUTRATE_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSOURCERECT_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMOUTPUTRATE_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMDESTRECT_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSOURCERECT_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMALPHA_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMDESTRECT_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPALETTE_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMALPHA_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPIXELASPECTRATIO_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPALETTE_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMLUMAKEY_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPIXELASPECTRATIO_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSTEREOFORMAT_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMLUMAKEY_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMAUTOPROCESSINGMODE_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSTEREOFORMAT_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFILTER_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMAUTOPROCESSINGMODE_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMROTATION_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFILTER_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE1_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMROTATION_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMMIRROR_INVALIDSTREAM = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE1_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_CREATE_FENCE = ( D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMMIRROR_INVALIDSTREAM + 1 ) , + D3D11_MESSAGE_ID_LIVE_FENCE = ( D3D11_MESSAGE_ID_CREATE_FENCE + 1 ) , + D3D11_MESSAGE_ID_DESTROY_FENCE = ( D3D11_MESSAGE_ID_LIVE_FENCE + 1 ) , + D3D11_MESSAGE_ID_CREATE_SYNCHRONIZEDCHANNEL = ( D3D11_MESSAGE_ID_DESTROY_FENCE + 1 ) , + D3D11_MESSAGE_ID_LIVE_SYNCHRONIZEDCHANNEL = ( D3D11_MESSAGE_ID_CREATE_SYNCHRONIZEDCHANNEL + 1 ) , + D3D11_MESSAGE_ID_DESTROY_SYNCHRONIZEDCHANNEL = ( D3D11_MESSAGE_ID_LIVE_SYNCHRONIZEDCHANNEL + 1 ) , + D3D11_MESSAGE_ID_CREATEFENCE_INVALIDFLAGS = ( D3D11_MESSAGE_ID_DESTROY_SYNCHRONIZEDCHANNEL + 1 ) , + D3D11_MESSAGE_ID_D3D11_3_MESSAGES_END = ( D3D11_MESSAGE_ID_CREATEFENCE_INVALIDFLAGS + 1 ) , + D3D11_MESSAGE_ID_D3D11_5_MESSAGES_START = ( D3D11_MESSAGE_ID_D3D11_3_MESSAGES_END + 1 ) , + D3D11_MESSAGE_ID_NEGOTIATECRYPTOSESSIONKEYEXCHANGEMT_INVALIDKEYEXCHANGETYPE = ( D3D11_MESSAGE_ID_D3D11_5_MESSAGES_START + 1 ) , + D3D11_MESSAGE_ID_NEGOTIATECRYPTOSESSIONKEYEXCHANGEMT_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_NEGOTIATECRYPTOSESSIONKEYEXCHANGEMT_INVALIDKEYEXCHANGETYPE + 1 ) , + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_COMPONENT_COUNT = ( D3D11_MESSAGE_ID_NEGOTIATECRYPTOSESSIONKEYEXCHANGEMT_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_COMPONENT = ( D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_COMPONENT_COUNT + 1 ) , + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_SIZE = ( D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_COMPONENT + 1 ) , + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_USAGE = ( D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_SIZE + 1 ) , + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_MISC_FLAGS = ( D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_USAGE + 1 ) , + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_OFFSET = ( D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_MISC_FLAGS + 1 ) , + D3D11_MESSAGE_ID_CREATE_TRACKEDWORKLOAD = ( D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_OFFSET + 1 ) , + D3D11_MESSAGE_ID_LIVE_TRACKEDWORKLOAD = ( D3D11_MESSAGE_ID_CREATE_TRACKEDWORKLOAD + 1 ) , + D3D11_MESSAGE_ID_DESTROY_TRACKEDWORKLOAD = ( D3D11_MESSAGE_ID_LIVE_TRACKEDWORKLOAD + 1 ) , + D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_NULLPARAM = ( D3D11_MESSAGE_ID_DESTROY_TRACKEDWORKLOAD + 1 ) , + D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_INVALID_MAX_INSTANCES = ( D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_NULLPARAM + 1 ) , + D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_INVALID_DEADLINE_TYPE = ( D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_INVALID_MAX_INSTANCES + 1 ) , + D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_INVALID_ENGINE_TYPE = ( D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_INVALID_DEADLINE_TYPE + 1 ) , + D3D11_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOADS = ( D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_INVALID_ENGINE_TYPE + 1 ) , + D3D11_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOAD_PAIRS = ( D3D11_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOADS + 1 ) , + D3D11_MESSAGE_ID_INCOMPLETE_TRACKED_WORKLOAD_PAIR = ( D3D11_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOAD_PAIRS + 1 ) , + D3D11_MESSAGE_ID_OUT_OF_ORDER_TRACKED_WORKLOAD_PAIR = ( D3D11_MESSAGE_ID_INCOMPLETE_TRACKED_WORKLOAD_PAIR + 1 ) , + D3D11_MESSAGE_ID_CANNOT_ADD_TRACKED_WORKLOAD = ( D3D11_MESSAGE_ID_OUT_OF_ORDER_TRACKED_WORKLOAD_PAIR + 1 ) , + D3D11_MESSAGE_ID_TRACKED_WORKLOAD_NOT_SUPPORTED = ( D3D11_MESSAGE_ID_CANNOT_ADD_TRACKED_WORKLOAD + 1 ) , + D3D11_MESSAGE_ID_TRACKED_WORKLOAD_ENGINE_TYPE_NOT_FOUND = ( D3D11_MESSAGE_ID_TRACKED_WORKLOAD_NOT_SUPPORTED + 1 ) , + D3D11_MESSAGE_ID_NO_TRACKED_WORKLOAD_SLOT_AVAILABLE = ( D3D11_MESSAGE_ID_TRACKED_WORKLOAD_ENGINE_TYPE_NOT_FOUND + 1 ) , + D3D11_MESSAGE_ID_END_TRACKED_WORKLOAD_INVALID_ARG = ( D3D11_MESSAGE_ID_NO_TRACKED_WORKLOAD_SLOT_AVAILABLE + 1 ) , + D3D11_MESSAGE_ID_TRACKED_WORKLOAD_DISJOINT_FAILURE = ( D3D11_MESSAGE_ID_END_TRACKED_WORKLOAD_INVALID_ARG + 1 ) , + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_AND_WRITE_MASK_MISMATCH = ( D3D11_MESSAGE_ID_TRACKED_WORKLOAD_DISJOINT_FAILURE + 1 ) , + D3D11_MESSAGE_ID_D3D11_5_MESSAGES_END = ( D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_AND_WRITE_MASK_MISMATCH + 1 ) + } D3D11_MESSAGE_ID; + +typedef struct D3D11_MESSAGE + { + D3D11_MESSAGE_CATEGORY Category; + D3D11_MESSAGE_SEVERITY Severity; + D3D11_MESSAGE_ID ID; + /* [annotation] */ + _Field_size_(DescriptionByteLength) const char *pDescription; + SIZE_T DescriptionByteLength; + } D3D11_MESSAGE; + +typedef struct D3D11_INFO_QUEUE_FILTER_DESC + { + UINT NumCategories; + /* [annotation] */ + _Field_size_(NumCategories) D3D11_MESSAGE_CATEGORY *pCategoryList; + UINT NumSeverities; + /* [annotation] */ + _Field_size_(NumSeverities) D3D11_MESSAGE_SEVERITY *pSeverityList; + UINT NumIDs; + /* [annotation] */ + _Field_size_(NumIDs) D3D11_MESSAGE_ID *pIDList; + } D3D11_INFO_QUEUE_FILTER_DESC; + +typedef struct D3D11_INFO_QUEUE_FILTER + { + D3D11_INFO_QUEUE_FILTER_DESC AllowList; + D3D11_INFO_QUEUE_FILTER_DESC DenyList; + } D3D11_INFO_QUEUE_FILTER; + +#define D3D11_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024 + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11sdklayers_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11sdklayers_0000_0005_v0_0_s_ifspec; + +#ifndef __ID3D11InfoQueue_INTERFACE_DEFINED__ +#define __ID3D11InfoQueue_INTERFACE_DEFINED__ + +/* interface ID3D11InfoQueue */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11InfoQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6543dbb6-1b48-42f5-ab82-e97ec74326f6") + ID3D11InfoQueue : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetMessageCountLimit( + /* [annotation] */ + _In_ UINT64 MessageCountLimit) = 0; + + virtual void STDMETHODCALLTYPE ClearStoredMessages( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMessage( + /* [annotation] */ + _In_ UINT64 MessageIndex, + /* [annotation] */ + _Out_writes_bytes_opt_(*pMessageByteLength) D3D11_MESSAGE *pMessage, + /* [annotation] */ + _Inout_ SIZE_T *pMessageByteLength) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesAllowedByStorageFilter( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDeniedByStorageFilter( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessages( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessagesAllowedByRetrievalFilter( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDiscardedByMessageCountLimit( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetMessageCountLimit( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddStorageFilterEntries( + /* [annotation] */ + _In_ D3D11_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStorageFilter( + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) D3D11_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength) = 0; + + virtual void STDMETHODCALLTYPE ClearStorageFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushEmptyStorageFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushCopyOfStorageFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushStorageFilter( + /* [annotation] */ + _In_ D3D11_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual void STDMETHODCALLTYPE PopStorageFilter( void) = 0; + + virtual UINT STDMETHODCALLTYPE GetStorageFilterStackSize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRetrievalFilterEntries( + /* [annotation] */ + _In_ D3D11_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRetrievalFilter( + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) D3D11_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength) = 0; + + virtual void STDMETHODCALLTYPE ClearRetrievalFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushEmptyRetrievalFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushCopyOfRetrievalFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushRetrievalFilter( + /* [annotation] */ + _In_ D3D11_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual void STDMETHODCALLTYPE PopRetrievalFilter( void) = 0; + + virtual UINT STDMETHODCALLTYPE GetRetrievalFilterStackSize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMessage( + /* [annotation] */ + _In_ D3D11_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ D3D11_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ D3D11_MESSAGE_ID ID, + /* [annotation] */ + _In_ LPCSTR pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddApplicationMessage( + /* [annotation] */ + _In_ D3D11_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ LPCSTR pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnCategory( + /* [annotation] */ + _In_ D3D11_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnSeverity( + /* [annotation] */ + _In_ D3D11_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnID( + /* [annotation] */ + _In_ D3D11_MESSAGE_ID ID, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnCategory( + /* [annotation] */ + _In_ D3D11_MESSAGE_CATEGORY Category) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnSeverity( + /* [annotation] */ + _In_ D3D11_MESSAGE_SEVERITY Severity) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnID( + /* [annotation] */ + _In_ D3D11_MESSAGE_ID ID) = 0; + + virtual void STDMETHODCALLTYPE SetMuteDebugOutput( + /* [annotation] */ + _In_ BOOL bMute) = 0; + + virtual BOOL STDMETHODCALLTYPE GetMuteDebugOutput( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11InfoQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11InfoQueue * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, SetMessageCountLimit) + HRESULT ( STDMETHODCALLTYPE *SetMessageCountLimit )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ UINT64 MessageCountLimit); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, ClearStoredMessages) + void ( STDMETHODCALLTYPE *ClearStoredMessages )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetMessage) + HRESULT ( STDMETHODCALLTYPE *GetMessage )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ UINT64 MessageIndex, + /* [annotation] */ + _Out_writes_bytes_opt_(*pMessageByteLength) D3D11_MESSAGE *pMessage, + /* [annotation] */ + _Inout_ SIZE_T *pMessageByteLength); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetNumMessagesAllowedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesAllowedByStorageFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetNumMessagesDeniedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDeniedByStorageFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetNumStoredMessages) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessages )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetNumStoredMessagesAllowedByRetrievalFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessagesAllowedByRetrievalFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetNumMessagesDiscardedByMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDiscardedByMessageCountLimit )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetMessageCountLimit )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, AddStorageFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddStorageFilterEntries )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetStorageFilter) + HRESULT ( STDMETHODCALLTYPE *GetStorageFilter )( + ID3D11InfoQueue * This, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) D3D11_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, ClearStorageFilter) + void ( STDMETHODCALLTYPE *ClearStorageFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, PushEmptyStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyStorageFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, PushCopyOfStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfStorageFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, PushStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushStorageFilter )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, PopStorageFilter) + void ( STDMETHODCALLTYPE *PopStorageFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetStorageFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetStorageFilterStackSize )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, AddRetrievalFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddRetrievalFilterEntries )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *GetRetrievalFilter )( + ID3D11InfoQueue * This, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) D3D11_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, ClearRetrievalFilter) + void ( STDMETHODCALLTYPE *ClearRetrievalFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, PushEmptyRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyRetrievalFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, PushCopyOfRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfRetrievalFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, PushRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushRetrievalFilter )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, PopRetrievalFilter) + void ( STDMETHODCALLTYPE *PopRetrievalFilter )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetRetrievalFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetRetrievalFilterStackSize )( + ID3D11InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, AddMessage) + HRESULT ( STDMETHODCALLTYPE *AddMessage )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ D3D11_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ D3D11_MESSAGE_ID ID, + /* [annotation] */ + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, AddApplicationMessage) + HRESULT ( STDMETHODCALLTYPE *AddApplicationMessage )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, SetBreakOnCategory) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnCategory )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, SetBreakOnSeverity) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnSeverity )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, SetBreakOnID) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnID )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_MESSAGE_ID ID, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetBreakOnCategory) + BOOL ( STDMETHODCALLTYPE *GetBreakOnCategory )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_MESSAGE_CATEGORY Category); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetBreakOnSeverity) + BOOL ( STDMETHODCALLTYPE *GetBreakOnSeverity )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_MESSAGE_SEVERITY Severity); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetBreakOnID) + BOOL ( STDMETHODCALLTYPE *GetBreakOnID )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ D3D11_MESSAGE_ID ID); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, SetMuteDebugOutput) + void ( STDMETHODCALLTYPE *SetMuteDebugOutput )( + ID3D11InfoQueue * This, + /* [annotation] */ + _In_ BOOL bMute); + + DECLSPEC_XFGVIRT(ID3D11InfoQueue, GetMuteDebugOutput) + BOOL ( STDMETHODCALLTYPE *GetMuteDebugOutput )( + ID3D11InfoQueue * This); + + END_INTERFACE + } ID3D11InfoQueueVtbl; + + interface ID3D11InfoQueue + { + CONST_VTBL struct ID3D11InfoQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11InfoQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11InfoQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11InfoQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11InfoQueue_SetMessageCountLimit(This,MessageCountLimit) \ + ( (This)->lpVtbl -> SetMessageCountLimit(This,MessageCountLimit) ) + +#define ID3D11InfoQueue_ClearStoredMessages(This) \ + ( (This)->lpVtbl -> ClearStoredMessages(This) ) + +#define ID3D11InfoQueue_GetMessage(This,MessageIndex,pMessage,pMessageByteLength) \ + ( (This)->lpVtbl -> GetMessage(This,MessageIndex,pMessage,pMessageByteLength) ) + +#define ID3D11InfoQueue_GetNumMessagesAllowedByStorageFilter(This) \ + ( (This)->lpVtbl -> GetNumMessagesAllowedByStorageFilter(This) ) + +#define ID3D11InfoQueue_GetNumMessagesDeniedByStorageFilter(This) \ + ( (This)->lpVtbl -> GetNumMessagesDeniedByStorageFilter(This) ) + +#define ID3D11InfoQueue_GetNumStoredMessages(This) \ + ( (This)->lpVtbl -> GetNumStoredMessages(This) ) + +#define ID3D11InfoQueue_GetNumStoredMessagesAllowedByRetrievalFilter(This) \ + ( (This)->lpVtbl -> GetNumStoredMessagesAllowedByRetrievalFilter(This) ) + +#define ID3D11InfoQueue_GetNumMessagesDiscardedByMessageCountLimit(This) \ + ( (This)->lpVtbl -> GetNumMessagesDiscardedByMessageCountLimit(This) ) + +#define ID3D11InfoQueue_GetMessageCountLimit(This) \ + ( (This)->lpVtbl -> GetMessageCountLimit(This) ) + +#define ID3D11InfoQueue_AddStorageFilterEntries(This,pFilter) \ + ( (This)->lpVtbl -> AddStorageFilterEntries(This,pFilter) ) + +#define ID3D11InfoQueue_GetStorageFilter(This,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetStorageFilter(This,pFilter,pFilterByteLength) ) + +#define ID3D11InfoQueue_ClearStorageFilter(This) \ + ( (This)->lpVtbl -> ClearStorageFilter(This) ) + +#define ID3D11InfoQueue_PushEmptyStorageFilter(This) \ + ( (This)->lpVtbl -> PushEmptyStorageFilter(This) ) + +#define ID3D11InfoQueue_PushCopyOfStorageFilter(This) \ + ( (This)->lpVtbl -> PushCopyOfStorageFilter(This) ) + +#define ID3D11InfoQueue_PushStorageFilter(This,pFilter) \ + ( (This)->lpVtbl -> PushStorageFilter(This,pFilter) ) + +#define ID3D11InfoQueue_PopStorageFilter(This) \ + ( (This)->lpVtbl -> PopStorageFilter(This) ) + +#define ID3D11InfoQueue_GetStorageFilterStackSize(This) \ + ( (This)->lpVtbl -> GetStorageFilterStackSize(This) ) + +#define ID3D11InfoQueue_AddRetrievalFilterEntries(This,pFilter) \ + ( (This)->lpVtbl -> AddRetrievalFilterEntries(This,pFilter) ) + +#define ID3D11InfoQueue_GetRetrievalFilter(This,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetRetrievalFilter(This,pFilter,pFilterByteLength) ) + +#define ID3D11InfoQueue_ClearRetrievalFilter(This) \ + ( (This)->lpVtbl -> ClearRetrievalFilter(This) ) + +#define ID3D11InfoQueue_PushEmptyRetrievalFilter(This) \ + ( (This)->lpVtbl -> PushEmptyRetrievalFilter(This) ) + +#define ID3D11InfoQueue_PushCopyOfRetrievalFilter(This) \ + ( (This)->lpVtbl -> PushCopyOfRetrievalFilter(This) ) + +#define ID3D11InfoQueue_PushRetrievalFilter(This,pFilter) \ + ( (This)->lpVtbl -> PushRetrievalFilter(This,pFilter) ) + +#define ID3D11InfoQueue_PopRetrievalFilter(This) \ + ( (This)->lpVtbl -> PopRetrievalFilter(This) ) + +#define ID3D11InfoQueue_GetRetrievalFilterStackSize(This) \ + ( (This)->lpVtbl -> GetRetrievalFilterStackSize(This) ) + +#define ID3D11InfoQueue_AddMessage(This,Category,Severity,ID,pDescription) \ + ( (This)->lpVtbl -> AddMessage(This,Category,Severity,ID,pDescription) ) + +#define ID3D11InfoQueue_AddApplicationMessage(This,Severity,pDescription) \ + ( (This)->lpVtbl -> AddApplicationMessage(This,Severity,pDescription) ) + +#define ID3D11InfoQueue_SetBreakOnCategory(This,Category,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnCategory(This,Category,bEnable) ) + +#define ID3D11InfoQueue_SetBreakOnSeverity(This,Severity,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnSeverity(This,Severity,bEnable) ) + +#define ID3D11InfoQueue_SetBreakOnID(This,ID,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnID(This,ID,bEnable) ) + +#define ID3D11InfoQueue_GetBreakOnCategory(This,Category) \ + ( (This)->lpVtbl -> GetBreakOnCategory(This,Category) ) + +#define ID3D11InfoQueue_GetBreakOnSeverity(This,Severity) \ + ( (This)->lpVtbl -> GetBreakOnSeverity(This,Severity) ) + +#define ID3D11InfoQueue_GetBreakOnID(This,ID) \ + ( (This)->lpVtbl -> GetBreakOnID(This,ID) ) + +#define ID3D11InfoQueue_SetMuteDebugOutput(This,bMute) \ + ( (This)->lpVtbl -> SetMuteDebugOutput(This,bMute) ) + +#define ID3D11InfoQueue_GetMuteDebugOutput(This) \ + ( (This)->lpVtbl -> GetMuteDebugOutput(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11InfoQueue_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11sdklayers_0000_0006 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma endregion +DEFINE_GUID(IID_ID3D11Debug,0x79cf2233,0x7536,0x4948,0x9d,0x36,0x1e,0x46,0x92,0xdc,0x57,0x60); +DEFINE_GUID(IID_ID3D11SwitchToRef,0x1ef337e3,0x58e7,0x4f83,0xa6,0x92,0xdb,0x22,0x1f,0x5e,0xd4,0x7e); +DEFINE_GUID(IID_ID3D11TracingDevice,0x1911c771,0x1587,0x413e,0xa7,0xe0,0xfb,0x26,0xc3,0xde,0x02,0x68); +DEFINE_GUID(IID_ID3D11RefTrackingOptions,0x193dacdf,0x0db2,0x4c05,0xa5,0x5c,0xef,0x06,0xca,0xc5,0x6f,0xd9); +DEFINE_GUID(IID_ID3D11RefDefaultTrackingOptions,0x03916615,0xc644,0x418c,0x9b,0xf4,0x75,0xdb,0x5b,0xe6,0x3c,0xa0); +DEFINE_GUID(IID_ID3D11InfoQueue,0x6543dbb6,0x1b48,0x42f5,0xab,0x82,0xe9,0x7e,0xc7,0x43,0x26,0xf6); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11sdklayers_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11sdklayers_0000_0006_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11sdklayers.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11sdklayers.idl new file mode 100644 index 0000000000000000000000000000000000000000..7b31d505fafb7a73955781b08dd3b5f1fceda823 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11sdklayers.idl @@ -0,0 +1,2046 @@ +////////////////////////////////////////////////////////////////////////////////////////////// +// // +// D3D11SDKLayers.idl // +// // +// Contains interface definitions for the D3D11 SDK Layers . // +// // +// Copyright (c) Microsoft Corporation. // +// // +////////////////////////////////////////////////////////////////////////////////////////////// + +import "oaidl.idl"; +import "ocidl.idl"; +import "d3d11.idl"; + +cpp_quote("#include ") + +#pragma region Application Family +cpp_quote("#pragma region Application Family") +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +const UINT D3D11_SDK_LAYERS_VERSION = 1; + +//================================================================================================================================== +// +// Debugging Layer +// +//================================================================================================================================== +const UINT D3D11_DEBUG_FEATURE_FLUSH_PER_RENDER_OP = 0x1; +const UINT D3D11_DEBUG_FEATURE_FINISH_PER_RENDER_OP = 0x2; +const UINT D3D11_DEBUG_FEATURE_PRESENT_PER_RENDER_OP = 0x4; +const UINT D3D11_DEBUG_FEATURE_ALWAYS_DISCARD_OFFERED_RESOURCE = 0x8; +const UINT D3D11_DEBUG_FEATURE_NEVER_DISCARD_OFFERED_RESOURCE = 0x10; +const UINT D3D11_DEBUG_FEATURE_AVOID_BEHAVIOR_CHANGING_DEBUG_AIDS = 0x40; +const UINT D3D11_DEBUG_FEATURE_DISABLE_TILED_RESOURCE_MAPPING_TRACKING_AND_VALIDATION = 0x80; + + +typedef enum D3D11_RLDO_FLAGS +{ + D3D11_RLDO_SUMMARY = 0x1, + D3D11_RLDO_DETAIL = 0x2, + D3D11_RLDO_IGNORE_INTERNAL = 0x4, + +} D3D11_RLDO_FLAGS; + +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS(D3D11_RLDO_FLAGS)") + +[ uuid( 79cf2233-7536-4948-9d36-1e4692dc5760 ), object, local, pointer_default( unique ) ] +interface ID3D11Debug + : IUnknown +{ + HRESULT SetFeatureMask( UINT Mask ); + UINT GetFeatureMask(); + HRESULT SetPresentPerRenderOpDelay( UINT Milliseconds ); + UINT GetPresentPerRenderOpDelay(); + HRESULT SetSwapChain( [ annotation( "_In_opt_" ) ] IDXGISwapChain* pSwapChain ); + HRESULT GetSwapChain( [ annotation( "_Out_" ) ] IDXGISwapChain** ppSwapChain ); + HRESULT ValidateContext( [annotation("_In_")] ID3D11DeviceContext* pContext ); + HRESULT ReportLiveDeviceObjects( D3D11_RLDO_FLAGS Flags ); + HRESULT ValidateContextForDispatch( [annotation("_In_")] ID3D11DeviceContext* pContext ); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +cpp_quote("#pragma endregion") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +[ uuid( 1ef337e3-58e7-4f83-a692-db221f5ed47e ), object, local, pointer_default( unique ) ] +interface ID3D11SwitchToRef + : IUnknown +{ + BOOL SetUseRef( BOOL UseRef ); + BOOL GetUseRef(); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region PC Application Family +cpp_quote("#pragma region PC Application Family") +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP)") + +typedef enum D3D11_SHADER_TRACKING_RESOURCE_TYPE +{ + D3D11_SHADER_TRACKING_RESOURCE_TYPE_NONE = 0, // call has no effect + D3D11_SHADER_TRACKING_RESOURCE_TYPE_UAV_DEVICEMEMORY = 1, // call affects device memory created with UAV bind flags + D3D11_SHADER_TRACKING_RESOURCE_TYPE_NON_UAV_DEVICEMEMORY = 2, // call affects device memory created without UAV bind flags + D3D11_SHADER_TRACKING_RESOURCE_TYPE_ALL_DEVICEMEMORY = 3, // call affects all device memory + D3D11_SHADER_TRACKING_RESOURCE_TYPE_GROUPSHARED_MEMORY = 4, // call affects all shaders that use group shared memory created + D3D11_SHADER_TRACKING_RESOURCE_TYPE_ALL_SHARED_MEMORY = 5, // call affects everything except device memory created without UAV bind flags + D3D11_SHADER_TRACKING_RESOURCE_TYPE_GROUPSHARED_NON_UAV = 6, // call affects everything except device memory created with UAV bind flags + D3D11_SHADER_TRACKING_RESOURCE_TYPE_ALL = 7, // call affects all memory on the device +} D3D11_SHADER_TRACKING_RESOURCE_TYPE; + +typedef enum D3D11_SHADER_TRACKING_OPTION +{ + D3D11_SHADER_TRACKING_OPTION_IGNORE = 0, + D3D11_SHADER_TRACKING_OPTION_TRACK_UNINITIALIZED = 0x1, // track reading uninitialized data + D3D11_SHADER_TRACKING_OPTION_TRACK_RAW = 0x2, // track read-after-write hazards + D3D11_SHADER_TRACKING_OPTION_TRACK_WAR = 0x4, // track write-after-read hazards + D3D11_SHADER_TRACKING_OPTION_TRACK_WAW = 0x8, // track write-after-write hazards + D3D11_SHADER_TRACKING_OPTION_ALLOW_SAME = 0x10, // allow a hazard if the data + D3D11_SHADER_TRACKING_OPTION_TRACK_ATOMIC_CONSISTENCY = 0x20, // make sure only one type of atomic + // is used on an address + // written didn't change the value + D3D11_SHADER_TRACKING_OPTION_TRACK_RAW_ACROSS_THREADGROUPS = 0x40, + // track read-after-write hazards + // across thread groups + D3D11_SHADER_TRACKING_OPTION_TRACK_WAR_ACROSS_THREADGROUPS = 0x80, + // track write-after-read hazards + // across thread groups + D3D11_SHADER_TRACKING_OPTION_TRACK_WAW_ACROSS_THREADGROUPS = 0x100, + // track write-after-write hazards + // across thread groups + D3D11_SHADER_TRACKING_OPTION_TRACK_ATOMIC_CONSISTENCY_ACROSS_THREADGROUPS = 0x200, + // make sure only one type of atomic + // is used on an address + // across thread groups + + D3D11_SHADER_TRACKING_OPTION_UAV_SPECIFIC_FLAGS = // flags ignored for GSM + D3D11_SHADER_TRACKING_OPTION_TRACK_RAW_ACROSS_THREADGROUPS | + D3D11_SHADER_TRACKING_OPTION_TRACK_WAR_ACROSS_THREADGROUPS | + D3D11_SHADER_TRACKING_OPTION_TRACK_WAW_ACROSS_THREADGROUPS | + D3D11_SHADER_TRACKING_OPTION_TRACK_ATOMIC_CONSISTENCY_ACROSS_THREADGROUPS, + + D3D11_SHADER_TRACKING_OPTION_ALL_HAZARDS = + D3D11_SHADER_TRACKING_OPTION_TRACK_RAW | + D3D11_SHADER_TRACKING_OPTION_TRACK_WAR | + D3D11_SHADER_TRACKING_OPTION_TRACK_WAW | + D3D11_SHADER_TRACKING_OPTION_TRACK_ATOMIC_CONSISTENCY | + D3D11_SHADER_TRACKING_OPTION_TRACK_RAW_ACROSS_THREADGROUPS | + D3D11_SHADER_TRACKING_OPTION_TRACK_WAR_ACROSS_THREADGROUPS | + D3D11_SHADER_TRACKING_OPTION_TRACK_WAW_ACROSS_THREADGROUPS | + D3D11_SHADER_TRACKING_OPTION_TRACK_ATOMIC_CONSISTENCY_ACROSS_THREADGROUPS, + + D3D11_SHADER_TRACKING_OPTION_ALL_HAZARDS_ALLOWING_SAME = + D3D11_SHADER_TRACKING_OPTION_ALL_HAZARDS | + D3D11_SHADER_TRACKING_OPTION_ALLOW_SAME, + + D3D11_SHADER_TRACKING_OPTION_ALL_OPTIONS = + D3D11_SHADER_TRACKING_OPTION_ALL_HAZARDS_ALLOWING_SAME | + D3D11_SHADER_TRACKING_OPTION_TRACK_UNINITIALIZED, +} D3D11_SHADER_TRACKING_OPTIONS; + +[ uuid( 1911c771-1587-413e-a7e0-fb26c3de0268 ), object, local, pointer_default( unique ) ] +interface ID3D11TracingDevice + : IUnknown +{ + HRESULT SetShaderTrackingOptionsByType( + // UINT so that bitwise operations may be used + [annotation("_In_")] UINT ResourceTypeFlags, + [annotation("_In_")] UINT Options); + + // Note that this will set the options for all invocations of this shader after + // the call until the next call. Specifying a flag that is UAV-specific here for a + // compute shader will be ignored. + HRESULT SetShaderTrackingOptions( + [annotation("_In_")] IUnknown* pShader, + [annotation("_In_")] UINT Options); +}; + +[ uuid( 193dacdf-0db2-4c05-a55c-ef06cac56fd9 ), object, local, pointer_default( unique ) ] +interface ID3D11RefTrackingOptions + : IUnknown +{ + HRESULT SetTrackingOptions( UINT uOptions ); +}; + +[ uuid( 03916615-c644-418c-9bf4-75db5be63ca0 ), object, local, pointer_default( unique ) ] +interface ID3D11RefDefaultTrackingOptions + : IUnknown +{ + HRESULT SetTrackingOptions( UINT ResourceTypeFlags, UINT Options ); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP) */") +cpp_quote("#pragma endregion") +#pragma endregion + +#pragma region Application Family +cpp_quote("#pragma region Application Family") +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + + +// +// DXGI Debug D3D11 Producer GUID +// +cpp_quote("DEFINE_GUID(DXGI_DEBUG_D3D11, 0x4b99317b, 0xac39, 0x4aa6, 0xbb, 0xb, 0xba, 0xa0, 0x47, 0x84, 0x79, 0x8f);") + +// +// D3D11 Registry path and keys +// +cpp_quote( "#define D3D11_REGKEY_PATH __TEXT(\"Software\\\\Microsoft\\\\Direct3D\")" ) +cpp_quote( "#define D3D11_MUTE_DEBUG_OUTPUT __TEXT(\"MuteDebugOutput\")" ) +cpp_quote( "#define D3D11_ENABLE_BREAK_ON_MESSAGE __TEXT(\"EnableBreakOnMessage\")" ) +cpp_quote( "#define D3D11_INFOQUEUE_STORAGE_FILTER_OVERRIDE __TEXT(\"InfoQueueStorageFilterOverride\")" ) +cpp_quote( "#define D3D11_MUTE_CATEGORY __TEXT(\"Mute_CATEGORY_%s\")" ) +cpp_quote( "#define D3D11_MUTE_SEVERITY __TEXT(\"Mute_SEVERITY_%s\")" ) +cpp_quote( "#define D3D11_MUTE_ID_STRING __TEXT(\"Mute_ID_%s\")" ) +cpp_quote( "#define D3D11_MUTE_ID_DECIMAL __TEXT(\"Mute_ID_%d\")" ) +cpp_quote( "#define D3D11_UNMUTE_SEVERITY_INFO __TEXT(\"Unmute_SEVERITY_INFO\")" ) +cpp_quote( "#define D3D11_BREAKON_CATEGORY __TEXT(\"BreakOn_CATEGORY_%s\")" ) +cpp_quote( "#define D3D11_BREAKON_SEVERITY __TEXT(\"BreakOn_SEVERITY_%s\")" ) +cpp_quote( "#define D3D11_BREAKON_ID_STRING __TEXT(\"BreakOn_ID_%s\")" ) +cpp_quote( "#define D3D11_BREAKON_ID_DECIMAL __TEXT(\"BreakOn_ID_%d\")" ) +cpp_quote( "#define D3D11_APPSIZE_STRING __TEXT(\"Size\")" ) +cpp_quote( "#define D3D11_APPNAME_STRING __TEXT(\"Name\")" ) +cpp_quote( "#define D3D11_FORCE_DEBUGGABLE __TEXT(\"ForceDebuggable\")" ) +cpp_quote( "#define D3D11_FORCE_SHADER_SKIP_OPTIMIZATION __TEXT(\"ForceShaderSkipOptimization\")" ) + +//================================================================================================================================== +// +// Info Queue +// +//================================================================================================================================== +typedef enum D3D11_MESSAGE_CATEGORY { + D3D11_MESSAGE_CATEGORY_APPLICATION_DEFINED, + D3D11_MESSAGE_CATEGORY_MISCELLANEOUS, + D3D11_MESSAGE_CATEGORY_INITIALIZATION, + D3D11_MESSAGE_CATEGORY_CLEANUP, + D3D11_MESSAGE_CATEGORY_COMPILATION, + D3D11_MESSAGE_CATEGORY_STATE_CREATION, + D3D11_MESSAGE_CATEGORY_STATE_SETTING, + D3D11_MESSAGE_CATEGORY_STATE_GETTING, + D3D11_MESSAGE_CATEGORY_RESOURCE_MANIPULATION, + D3D11_MESSAGE_CATEGORY_EXECUTION, + D3D11_MESSAGE_CATEGORY_SHADER, +} D3D11_MESSAGE_CATEGORY; + +typedef enum D3D11_MESSAGE_SEVERITY { + D3D11_MESSAGE_SEVERITY_CORRUPTION, + D3D11_MESSAGE_SEVERITY_ERROR, + D3D11_MESSAGE_SEVERITY_WARNING, + D3D11_MESSAGE_SEVERITY_INFO, + D3D11_MESSAGE_SEVERITY_MESSAGE +} D3D11_MESSAGE_SEVERITY; + +// Unique ID for every error +typedef enum D3D11_MESSAGE_ID { + D3D11_MESSAGE_ID_UNKNOWN = 0, + + //-------------------------------------------------------------------------- + // Messages Used by Core + // Message IDs generated from core are at the beginning + // since the core changes less frequently than the debug layer. + + // hazard checking + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD, + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD, + D3D11_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD, + D3D11_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD, + D3D11_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD, + D3D11_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD, + D3D11_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD, + D3D11_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD, + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD, + D3D11_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD, + + // End of Messages used by Core + // ------------------------------------------------------------------------ + D3D11_MESSAGE_ID_STRING_FROM_APPLICATION, + D3D11_MESSAGE_ID_CORRUPTED_THIS, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER1, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER2, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER3, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER4, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER5, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER6, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER7, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER8, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER9, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER10, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER11, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER12, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER13, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER14, + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER15, + D3D11_MESSAGE_ID_CORRUPTED_MULTITHREADING, + D3D11_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY, + + D3D11_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT, + + D3D11_MESSAGE_ID_GETPRIVATEDATA_MOREDATA, + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA, + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN, + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS, + D3D11_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS, + D3D11_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY, + + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT, + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES, + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE, + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS, + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS, + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS, + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS, + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS, + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA, + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS, + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS, + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS, + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATEBUFFER_NULLDESC, + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS, + D3D11_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION, + + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT, + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT, + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES, + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE, + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA, + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS, + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS, + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATETEXTURE1D_NULLDESC, + D3D11_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION, + + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT, + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT, + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES, + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE, + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA, + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS, + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS, + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATETEXTURE2D_NULLDESC, + D3D11_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION, + + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT, + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT, + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES, + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE, + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA, + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS, + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS, + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS, + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATETEXTURE3D_NULLDESC, + D3D11_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION, + + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN, + + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN, + + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN, + + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC, + + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY, + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE, + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE, + + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE, + + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE, + + D3D11_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY, + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE, + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE, + + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE, + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE, + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP, + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS, + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS, + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC, + + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC, + + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC, + + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC, + + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY, + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS, + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG, + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC, + + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED, + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED, + + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER, + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE, + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY, + + D3D11_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER, + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID, + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE, + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED, + + D3D11_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY, + + D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER, + D3D11_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY, + + D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER, + D3D11_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY, + + D3D11_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER, + D3D11_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED, + + D3D11_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY, + + D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER, + D3D11_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT, + + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR, + + D3D11_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH, + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH, + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID, + + D3D11_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID, + + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE, + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE, + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX, + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE, + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE, + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE, + + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE, + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE, + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE, + + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE, + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX, + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE, + + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID, + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID, + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID, + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID, + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID, + + D3D11_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE, + D3D11_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS, + D3D11_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED, + D3D11_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN, + D3D11_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED, + + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE, + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE, + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS, + D3D11_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED, + D3D11_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN, + D3D11_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE, + D3D11_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED, + + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE, + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE, + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS, + D3D11_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED, + D3D11_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN, + D3D11_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE, + D3D11_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED, + + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE, + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE, + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS, + D3D11_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED, + D3D11_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN, + D3D11_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE, + D3D11_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED, + + D3D11_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED, + D3D11_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED, + + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS, + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN, + + D3D11_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE, + D3D11_MESSAGE_ID_REF_THREADING_MODE, + D3D11_MESSAGE_ID_REF_UMDRIVER_EXCEPTION, + D3D11_MESSAGE_ID_REF_KMDRIVER_EXCEPTION, + D3D11_MESSAGE_ID_REF_HARDWARE_EXCEPTION, + D3D11_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE, + D3D11_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER, + D3D11_MESSAGE_ID_REF_OUT_OF_MEMORY, + D3D11_MESSAGE_ID_REF_INFO, + + //drawtime validation + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW, + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW, + D3D11_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW, + D3D11_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW, + + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW, + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW, + + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND, + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX, + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE, + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK, + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE, + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS, + + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL, + D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL, + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL, + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID, + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL, + D3D11_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT, + D3D11_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED, + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY, + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED, + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED, + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED, + D3D11_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED, + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE, + D3D11_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER, + D3D11_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING, + D3D11_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0, + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT, + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT, + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT, + + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN, + + D3D11_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC, + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH, + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW, + D3D11_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS, + D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH, + + D3D11_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY, + D3D11_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY, + + D3D11_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER, + D3D11_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED, + D3D11_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER, + D3D11_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN, + D3D11_MESSAGE_ID_CREATECOUNTER_NULLDESC, + D3D11_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER, + D3D11_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER, + D3D11_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE, + D3D11_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED, + D3D11_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION, + D3D11_MESSAGE_ID_QUERY_BEGIN_DUPLICATE, + D3D11_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS, + D3D11_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION, + D3D11_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS, + D3D11_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN, + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE, + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS, + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL, + + D3D11_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN, + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE, + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT, + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH, + + D3D11_MESSAGE_ID_LIVE_OBJECT_SUMMARY, + D3D11_MESSAGE_ID_LIVE_BUFFER, + D3D11_MESSAGE_ID_LIVE_TEXTURE1D, + D3D11_MESSAGE_ID_LIVE_TEXTURE2D, + D3D11_MESSAGE_ID_LIVE_TEXTURE3D, + D3D11_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW, + D3D11_MESSAGE_ID_LIVE_RENDERTARGETVIEW, + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW, + D3D11_MESSAGE_ID_LIVE_VERTEXSHADER, + D3D11_MESSAGE_ID_LIVE_GEOMETRYSHADER, + D3D11_MESSAGE_ID_LIVE_PIXELSHADER, + D3D11_MESSAGE_ID_LIVE_INPUTLAYOUT, + D3D11_MESSAGE_ID_LIVE_SAMPLER, + D3D11_MESSAGE_ID_LIVE_BLENDSTATE, + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE, + D3D11_MESSAGE_ID_LIVE_RASTERIZERSTATE, + D3D11_MESSAGE_ID_LIVE_QUERY, + D3D11_MESSAGE_ID_LIVE_PREDICATE, + D3D11_MESSAGE_ID_LIVE_COUNTER, + D3D11_MESSAGE_ID_LIVE_DEVICE, + D3D11_MESSAGE_ID_LIVE_SWAPCHAIN, + + D3D11_MESSAGE_ID_D3D10_MESSAGES_END, + + //10on9 messages: + //-------------------------------------------------------------------------- + D3D11_MESSAGE_ID_D3D10L9_MESSAGES_START = 0x00100000, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED, + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE, + D3D11_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED, + D3D11_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS, + D3D11_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS, + D3D11_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS, + D3D11_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND, + D3D11_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D, + D3D11_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE, + D3D11_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE, + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS, + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS, + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX, + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS, + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS, + D3D11_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY, + D3D11_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK, + D3D11_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE, + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE, + D3D11_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES, + D3D11_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET, + D3D11_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER, + D3D11_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE, + D3D11_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS, + D3D11_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT, + D3D11_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS, + D3D11_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES, + D3D11_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED, + D3D11_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED, + D3D11_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED, + D3D11_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED, + D3D11_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE, + D3D11_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED, + D3D11_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3, + D3D11_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED, + D3D11_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO, + D3D11_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION, + D3D11_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED, + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR, + D3D11_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA, + D3D11_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP, + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED, + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT, + D3D11_MESSAGE_ID_COPYRESOURCE_NO_3D_MISMATCHED_UPDATES, + D3D11_MESSAGE_ID_D3D10L9_MESSAGES_END, + + // D3D11 messages: + //-------------------------------------------------------------------------- + D3D11_MESSAGE_ID_D3D11_MESSAGES_START = 0x00200000, + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFLAGS, + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDCLASSLINKAGE, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDCLASSLINKAGE, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTREAMS, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAMTORASTERIZER, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTREAMS, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCLASSLINKAGE, + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDCLASSLINKAGE, + + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALID_COMMANDLISTFLAGS, + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_SINGLETHREADED, + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALID_CALL_RETURN, + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_OUTOFMEMORY_RETURN, + + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_ONIMMEDIATECONTEXT, + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_INVALID_CALL_RETURN, + + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAM, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDENTRIES, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTRIDES, + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTRIDES, + + D3D11_MESSAGE_ID_DEVICE_HSSETSHADERRESOURCES_HAZARD, + D3D11_MESSAGE_ID_DEVICE_HSSETCONSTANTBUFFERS_HAZARD, + D3D11_MESSAGE_ID_HSSETSHADERRESOURCES_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDCALL, + D3D11_MESSAGE_ID_CREATEHULLSHADER_OUTOFMEMORY, + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERBYTECODE, + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERTYPE, + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDCLASSLINKAGE, + D3D11_MESSAGE_ID_DEVICE_HSSETSHADERRESOURCES_VIEWS_EMPTY, + D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_INVALIDBUFFER, + D3D11_MESSAGE_ID_DEVICE_HSSETCONSTANTBUFFERS_BUFFERS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_HSSETSAMPLERS_SAMPLERS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_HSGETSHADERRESOURCES_VIEWS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_HSGETCONSTANTBUFFERS_BUFFERS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_HSGETSAMPLERS_SAMPLERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_DSSETSHADERRESOURCES_HAZARD, + D3D11_MESSAGE_ID_DEVICE_DSSETCONSTANTBUFFERS_HAZARD, + D3D11_MESSAGE_ID_DSSETSHADERRESOURCES_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCALL, + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_OUTOFMEMORY, + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERBYTECODE, + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERTYPE, + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCLASSLINKAGE, + D3D11_MESSAGE_ID_DEVICE_DSSETSHADERRESOURCES_VIEWS_EMPTY, + D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_INVALIDBUFFER, + D3D11_MESSAGE_ID_DEVICE_DSSETCONSTANTBUFFERS_BUFFERS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_DSSETSAMPLERS_SAMPLERS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_DSGETSHADERRESOURCES_VIEWS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_DSGETCONSTANTBUFFERS_BUFFERS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_DSGETSAMPLERS_SAMPLERS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_XOR_DS_MISMATCH, + D3D11_MESSAGE_ID_DEFERRED_CONTEXT_REMOVAL_PROCESS_AT_FAULT, + + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_INVALID_ARG_BUFFER, + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_OFFSET_UNALIGNED, + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_OFFSET_OVERFLOW, + + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDMAPTYPE, + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDSUBRESOURCE, + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDFLAGS, + D3D11_MESSAGE_ID_RESOURCE_MAP_ALREADYMAPPED, + D3D11_MESSAGE_ID_RESOURCE_MAP_DEVICEREMOVED_RETURN, + D3D11_MESSAGE_ID_RESOURCE_MAP_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_RESOURCE_MAP_WITHOUT_INITIAL_DISCARD, + D3D11_MESSAGE_ID_RESOURCE_UNMAP_INVALIDSUBRESOURCE, + D3D11_MESSAGE_ID_RESOURCE_UNMAP_NOTMAPPED, + + D3D11_MESSAGE_ID_DEVICE_DRAW_RASTERIZING_CONTROL_POINTS, + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_SIGNATURE_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_DRAW_HULL_SHADER_INPUT_TOPOLOGY_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_CONTROL_POINT_COUNT_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_TESSELLATOR_DOMAIN_MISMATCH, + D3D11_MESSAGE_ID_CREATE_CONTEXT, + D3D11_MESSAGE_ID_LIVE_CONTEXT, + D3D11_MESSAGE_ID_DESTROY_CONTEXT, + D3D11_MESSAGE_ID_CREATE_BUFFER, + D3D11_MESSAGE_ID_LIVE_BUFFER_WIN7, + D3D11_MESSAGE_ID_DESTROY_BUFFER, + D3D11_MESSAGE_ID_CREATE_TEXTURE1D, + D3D11_MESSAGE_ID_LIVE_TEXTURE1D_WIN7, + D3D11_MESSAGE_ID_DESTROY_TEXTURE1D, + D3D11_MESSAGE_ID_CREATE_TEXTURE2D, + D3D11_MESSAGE_ID_LIVE_TEXTURE2D_WIN7, + D3D11_MESSAGE_ID_DESTROY_TEXTURE2D, + D3D11_MESSAGE_ID_CREATE_TEXTURE3D, + D3D11_MESSAGE_ID_LIVE_TEXTURE3D_WIN7, + D3D11_MESSAGE_ID_DESTROY_TEXTURE3D, + D3D11_MESSAGE_ID_CREATE_SHADERRESOURCEVIEW, + D3D11_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW_WIN7, + D3D11_MESSAGE_ID_DESTROY_SHADERRESOURCEVIEW, + D3D11_MESSAGE_ID_CREATE_RENDERTARGETVIEW, + D3D11_MESSAGE_ID_LIVE_RENDERTARGETVIEW_WIN7, + D3D11_MESSAGE_ID_DESTROY_RENDERTARGETVIEW, + D3D11_MESSAGE_ID_CREATE_DEPTHSTENCILVIEW, + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW_WIN7, + D3D11_MESSAGE_ID_DESTROY_DEPTHSTENCILVIEW, + D3D11_MESSAGE_ID_CREATE_VERTEXSHADER, + D3D11_MESSAGE_ID_LIVE_VERTEXSHADER_WIN7, + D3D11_MESSAGE_ID_DESTROY_VERTEXSHADER, + D3D11_MESSAGE_ID_CREATE_HULLSHADER, + D3D11_MESSAGE_ID_LIVE_HULLSHADER, + D3D11_MESSAGE_ID_DESTROY_HULLSHADER, + D3D11_MESSAGE_ID_CREATE_DOMAINSHADER, + D3D11_MESSAGE_ID_LIVE_DOMAINSHADER, + D3D11_MESSAGE_ID_DESTROY_DOMAINSHADER, + D3D11_MESSAGE_ID_CREATE_GEOMETRYSHADER, + D3D11_MESSAGE_ID_LIVE_GEOMETRYSHADER_WIN7, + D3D11_MESSAGE_ID_DESTROY_GEOMETRYSHADER, + D3D11_MESSAGE_ID_CREATE_PIXELSHADER, + D3D11_MESSAGE_ID_LIVE_PIXELSHADER_WIN7, + D3D11_MESSAGE_ID_DESTROY_PIXELSHADER, + D3D11_MESSAGE_ID_CREATE_INPUTLAYOUT, + D3D11_MESSAGE_ID_LIVE_INPUTLAYOUT_WIN7, + D3D11_MESSAGE_ID_DESTROY_INPUTLAYOUT, + D3D11_MESSAGE_ID_CREATE_SAMPLER, + D3D11_MESSAGE_ID_LIVE_SAMPLER_WIN7, + D3D11_MESSAGE_ID_DESTROY_SAMPLER, + D3D11_MESSAGE_ID_CREATE_BLENDSTATE, + D3D11_MESSAGE_ID_LIVE_BLENDSTATE_WIN7, + D3D11_MESSAGE_ID_DESTROY_BLENDSTATE, + D3D11_MESSAGE_ID_CREATE_DEPTHSTENCILSTATE, + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE_WIN7, + D3D11_MESSAGE_ID_DESTROY_DEPTHSTENCILSTATE, + D3D11_MESSAGE_ID_CREATE_RASTERIZERSTATE, + D3D11_MESSAGE_ID_LIVE_RASTERIZERSTATE_WIN7, + D3D11_MESSAGE_ID_DESTROY_RASTERIZERSTATE, + D3D11_MESSAGE_ID_CREATE_QUERY, + D3D11_MESSAGE_ID_LIVE_QUERY_WIN7, + D3D11_MESSAGE_ID_DESTROY_QUERY, + D3D11_MESSAGE_ID_CREATE_PREDICATE, + D3D11_MESSAGE_ID_LIVE_PREDICATE_WIN7, + D3D11_MESSAGE_ID_DESTROY_PREDICATE, + D3D11_MESSAGE_ID_CREATE_COUNTER, + D3D11_MESSAGE_ID_DESTROY_COUNTER, + D3D11_MESSAGE_ID_CREATE_COMMANDLIST, + D3D11_MESSAGE_ID_LIVE_COMMANDLIST, + D3D11_MESSAGE_ID_DESTROY_COMMANDLIST, + D3D11_MESSAGE_ID_CREATE_CLASSINSTANCE, + D3D11_MESSAGE_ID_LIVE_CLASSINSTANCE, + D3D11_MESSAGE_ID_DESTROY_CLASSINSTANCE, + D3D11_MESSAGE_ID_CREATE_CLASSLINKAGE, + D3D11_MESSAGE_ID_LIVE_CLASSLINKAGE, + D3D11_MESSAGE_ID_DESTROY_CLASSLINKAGE, + D3D11_MESSAGE_ID_LIVE_DEVICE_WIN7, + D3D11_MESSAGE_ID_LIVE_OBJECT_SUMMARY_WIN7, + D3D11_MESSAGE_ID_CREATE_COMPUTESHADER, + D3D11_MESSAGE_ID_LIVE_COMPUTESHADER, + D3D11_MESSAGE_ID_DESTROY_COMPUTESHADER, + D3D11_MESSAGE_ID_CREATE_UNORDEREDACCESSVIEW, + D3D11_MESSAGE_ID_LIVE_UNORDEREDACCESSVIEW, + D3D11_MESSAGE_ID_DESTROY_UNORDEREDACCESSVIEW, + + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INTERFACES_FEATURELEVEL, + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INTERFACE_COUNT_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE, + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_INDEX, + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_TYPE, + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_DATA, + D3D11_MESSAGE_ID_DEVICE_SETSHADER_UNBOUND_INSTANCE_DATA, + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INSTANCE_DATA_BINDINGS, + + D3D11_MESSAGE_ID_DEVICE_CREATESHADER_CLASSLINKAGE_FULL, + + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_UNRECOGNIZED_FEATURE, + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_MISMATCHED_DATA_SIZE, + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_INVALIDARG_RETURN, + + D3D11_MESSAGE_ID_DEVICE_CSSETSHADERRESOURCES_HAZARD, + D3D11_MESSAGE_ID_DEVICE_CSSETCONSTANTBUFFERS_HAZARD, + D3D11_MESSAGE_ID_CSSETSHADERRESOURCES_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCALL, + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_OUTOFMEMORY, + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERBYTECODE, + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERTYPE, + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCLASSLINKAGE, + D3D11_MESSAGE_ID_DEVICE_CSSETSHADERRESOURCES_VIEWS_EMPTY, + D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_INVALIDBUFFER, + D3D11_MESSAGE_ID_DEVICE_CSSETCONSTANTBUFFERS_BUFFERS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_CSSETSAMPLERS_SAMPLERS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_CSGETSHADERRESOURCES_VIEWS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_CSGETCONSTANTBUFFERS_BUFFERS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_CSGETSAMPLERS_SAMPLERS_EMPTY, + + D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEFLOATOPSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEFLOATOPSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEFLOATOPSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEFLOATOPSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEFLOATOPSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEFLOATOPSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEFLOATOPSNOTSUPPORTED, + + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDSTRUCTURESTRIDE, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFLAGS, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDRESOURCE, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDESC, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDIMENSIONS, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_UNRECOGNIZEDFORMAT, + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_HAZARD, + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_OVERLAPPING_OLD_SLOTS, + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_NO_OP, + D3D11_MESSAGE_ID_CSSETUNORDEREDACCESSVIEWS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_PSSETUNORDEREDACCESSVIEWS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_TOOMANYOBJECTS, + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_HAZARD, + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_DENORMFLUSH, + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSS_VIEWS_EMPTY, + D3D11_MESSAGE_ID_DEVICE_CSGETUNORDEREDACCESSS_VIEWS_EMPTY, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFLAGS, + D3D11_MESSAGE_ID_CREATESHADERRESESOURCEVIEW_TOOMANYOBJECTS, + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_INVALID_ARG_BUFFER, + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_OFFSET_UNALIGNED, + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_OFFSET_OVERFLOW, + + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDCONTEXT, + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDRESOURCE, + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDMINLOD, + D3D11_MESSAGE_ID_DEVICE_GETRESOURCEMINLOD_INVALIDCONTEXT, + D3D11_MESSAGE_ID_DEVICE_GETRESOURCEMINLOD_INVALIDRESOURCE, + + D3D11_MESSAGE_ID_OMSETDEPTHSTENCIL_UNBINDDELETINGOBJECT, + + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DEPTH_READONLY, + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_STENCIL_READONLY, + D3D11_MESSAGE_ID_CHECKFEATURESUPPORT_FORMAT_DEPRECATED, + + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_RETURN_TYPE_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_DRAW_UNORDEREDACCESSVIEW_RENDERTARGETVIEW_OVERLAP, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_DIMENSION_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_APPEND_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMICS_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_STRUCTURE_STRIDE_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_BUFFER_TYPE_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_RAW_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_FORMAT_LD_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_FORMAT_STORE_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_ADD_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_BITWISE_OPS_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_CMPSTORE_CMPEXCHANGE_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_EXCHANGE_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_SIGNED_MINMAX_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_UNSIGNED_MINMAX_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_DISPATCH_BOUND_RESOURCE_MAPPED, + D3D11_MESSAGE_ID_DEVICE_DISPATCH_THREADGROUPCOUNT_OVERFLOW, + D3D11_MESSAGE_ID_DEVICE_DISPATCH_THREADGROUPCOUNT_ZERO, + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_STRUCTURE_STRIDE_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_BUFFER_TYPE_MISMATCH, + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_RAW_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_DISPATCH_UNSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_UNSUPPORTED, + + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDOFFSET, + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_LARGEOFFSET, + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDDESTINATIONSTATE, + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDSOURCESTATE, + + D3D11_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_NOT_SUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_INVALIDVIEW, + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_INVALIDOFFSET, + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_TOOMANYVIEWS, + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWFLOAT_INVALIDFORMAT, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_COUNTER_UNSUPPORTED, + + D3D11_MESSAGE_ID_REF_WARNING, + + D3D11_MESSAGE_ID_DEVICE_DRAW_PIXEL_SHADER_WITHOUT_RTV_OR_DSV, + + D3D11_MESSAGE_ID_SHADER_ABORT, + D3D11_MESSAGE_ID_SHADER_MESSAGE, + D3D11_MESSAGE_ID_SHADER_ERROR, + + D3D11_MESSAGE_ID_OFFERRESOURCES_INVALIDRESOURCE, + D3D11_MESSAGE_ID_HSSETSAMPLERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_DSSETSAMPLERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_CSSETSAMPLERS_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_HSSETSHADER_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_DSSETSHADER_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_CSSETSHADER_UNBINDDELETINGOBJECT, + D3D11_MESSAGE_ID_ENQUEUESETEVENT_INVALIDARG_RETURN, + D3D11_MESSAGE_ID_ENQUEUESETEVENT_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_ENQUEUESETEVENT_ACCESSDENIED_RETURN, + + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_NUMUAVS_INVALIDRANGE, + + D3D11_MESSAGE_ID_USE_OF_ZERO_REFCOUNT_OBJECT, + + D3D11_MESSAGE_ID_D3D11_MESSAGES_END, + + // D3D11.1 messages: + //-------------------------------------------------------------------------- + D3D11_MESSAGE_ID_D3D11_1_MESSAGES_START = 0x00300000, + + D3D11_MESSAGE_ID_CREATE_VIDEODECODER, + D3D11_MESSAGE_ID_CREATE_VIDEOPROCESSORENUM, + D3D11_MESSAGE_ID_CREATE_VIDEOPROCESSOR, + D3D11_MESSAGE_ID_CREATE_DECODEROUTPUTVIEW, + D3D11_MESSAGE_ID_CREATE_PROCESSORINPUTVIEW, + D3D11_MESSAGE_ID_CREATE_PROCESSOROUTPUTVIEW, + D3D11_MESSAGE_ID_CREATE_DEVICECONTEXTSTATE, + D3D11_MESSAGE_ID_LIVE_VIDEODECODER, + D3D11_MESSAGE_ID_LIVE_VIDEOPROCESSORENUM, + D3D11_MESSAGE_ID_LIVE_VIDEOPROCESSOR, + D3D11_MESSAGE_ID_LIVE_DECODEROUTPUTVIEW, + D3D11_MESSAGE_ID_LIVE_PROCESSORINPUTVIEW, + D3D11_MESSAGE_ID_LIVE_PROCESSOROUTPUTVIEW, + D3D11_MESSAGE_ID_LIVE_DEVICECONTEXTSTATE, + D3D11_MESSAGE_ID_DESTROY_VIDEODECODER, + D3D11_MESSAGE_ID_DESTROY_VIDEOPROCESSORENUM, + D3D11_MESSAGE_ID_DESTROY_VIDEOPROCESSOR, + D3D11_MESSAGE_ID_DESTROY_DECODEROUTPUTVIEW, + D3D11_MESSAGE_ID_DESTROY_PROCESSORINPUTVIEW, + D3D11_MESSAGE_ID_DESTROY_PROCESSOROUTPUTVIEW, + D3D11_MESSAGE_ID_DESTROY_DEVICECONTEXTSTATE, + + D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_INVALIDFLAGS, + D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_INVALIDFEATURELEVEL, + D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_FEATURELEVELS_NOT_SUPPORTED, + D3D11_MESSAGE_ID_CREATEDEVICECONTEXTSTATE_INVALIDREFIID, + D3D11_MESSAGE_ID_DEVICE_DISCARDVIEW_INVALIDVIEW, + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION1_INVALIDCOPYFLAGS, + D3D11_MESSAGE_ID_UPDATESUBRESOURCE1_INVALIDCOPYFLAGS, + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFORCEDSAMPLECOUNT, + + D3D11_MESSAGE_ID_CREATEVIDEODECODER_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATEVIDEODECODER_NULLPARAM, + D3D11_MESSAGE_ID_CREATEVIDEODECODER_INVALIDFORMAT, + D3D11_MESSAGE_ID_CREATEVIDEODECODER_ZEROWIDTHHEIGHT, + D3D11_MESSAGE_ID_CREATEVIDEODECODER_DRIVER_INVALIDBUFFERSIZE, + D3D11_MESSAGE_ID_CREATEVIDEODECODER_DRIVER_INVALIDBUFFERUSAGE, + D3D11_MESSAGE_ID_GETVIDEODECODERPROFILECOUNT_OUTOFMEMORY, + D3D11_MESSAGE_ID_GETVIDEODECODERPROFILE_NULLPARAM, + D3D11_MESSAGE_ID_GETVIDEODECODERPROFILE_INVALIDINDEX, + D3D11_MESSAGE_ID_GETVIDEODECODERPROFILE_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CHECKVIDEODECODERFORMAT_NULLPARAM, + D3D11_MESSAGE_ID_CHECKVIDEODECODERFORMAT_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_GETVIDEODECODERCONFIGCOUNT_NULLPARAM, + D3D11_MESSAGE_ID_GETVIDEODECODERCONFIGCOUNT_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_GETVIDEODECODERCONFIG_NULLPARAM, + D3D11_MESSAGE_ID_GETVIDEODECODERCONFIG_INVALIDINDEX, + D3D11_MESSAGE_ID_GETVIDEODECODERCONFIG_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_GETDECODERCREATIONPARAMS_NULLPARAM, + D3D11_MESSAGE_ID_GETDECODERDRIVERHANDLE_NULLPARAM, + D3D11_MESSAGE_ID_GETDECODERBUFFER_NULLPARAM, + D3D11_MESSAGE_ID_GETDECODERBUFFER_INVALIDBUFFER, + D3D11_MESSAGE_ID_GETDECODERBUFFER_INVALIDTYPE, + D3D11_MESSAGE_ID_GETDECODERBUFFER_LOCKED, + D3D11_MESSAGE_ID_RELEASEDECODERBUFFER_NULLPARAM, + D3D11_MESSAGE_ID_RELEASEDECODERBUFFER_INVALIDTYPE, + D3D11_MESSAGE_ID_RELEASEDECODERBUFFER_NOTLOCKED, + D3D11_MESSAGE_ID_DECODERBEGINFRAME_NULLPARAM, + D3D11_MESSAGE_ID_DECODERBEGINFRAME_HAZARD, + D3D11_MESSAGE_ID_DECODERENDFRAME_NULLPARAM, + D3D11_MESSAGE_ID_SUBMITDECODERBUFFERS_NULLPARAM, + D3D11_MESSAGE_ID_SUBMITDECODERBUFFERS_INVALIDTYPE, + D3D11_MESSAGE_ID_DECODEREXTENSION_NULLPARAM, + D3D11_MESSAGE_ID_DECODEREXTENSION_INVALIDRESOURCE, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_NULLPARAM, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDFRAMEFORMAT, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDUSAGE, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDINPUTFRAMERATE, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDOUTPUTFRAMERATE, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORENUMERATOR_INVALIDWIDTHHEIGHT, + D3D11_MESSAGE_ID_GETVIDEOPROCESSORCONTENTDESC_NULLPARAM, + D3D11_MESSAGE_ID_CHECKVIDEOPROCESSORFORMAT_NULLPARAM, + D3D11_MESSAGE_ID_GETVIDEOPROCESSORCAPS_NULLPARAM, + D3D11_MESSAGE_ID_GETVIDEOPROCESSORRATECONVERSIONCAPS_NULLPARAM, + D3D11_MESSAGE_ID_GETVIDEOPROCESSORRATECONVERSIONCAPS_INVALIDINDEX, + D3D11_MESSAGE_ID_GETVIDEOPROCESSORCUSTOMRATE_NULLPARAM, + D3D11_MESSAGE_ID_GETVIDEOPROCESSORCUSTOMRATE_INVALIDINDEX, + D3D11_MESSAGE_ID_GETVIDEOPROCESSORFILTERRANGE_NULLPARAM, + D3D11_MESSAGE_ID_GETVIDEOPROCESSORFILTERRANGE_UNSUPPORTED, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOR_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOR_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTTARGETRECT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTBACKGROUNDCOLOR_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTBACKGROUNDCOLOR_INVALIDALPHA, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCOLORSPACE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_UNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTALPHAFILLMODE_INVALIDFILLMODE, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCONSTRICTION_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTSTEREOMODE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTSTEREOMODE_UNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTEXTENSION_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTTARGETRECT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTBACKGROUNDCOLOR_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTCOLORSPACE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTALPHAFILLMODE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTCONSTRICTION_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCONSTRICTION_UNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCONSTRICTION_INVALIDSIZE, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTSTEREOMODE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTEXTENSION_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFRAMEFORMAT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFRAMEFORMAT_INVALIDFORMAT, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFRAMEFORMAT_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_INVALIDRATE, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_INVALIDFLAG, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMOUTPUTRATE_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSOURCERECT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSOURCERECT_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSOURCERECT_INVALIDRECT, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMDESTRECT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMDESTRECT_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMDESTRECT_INVALIDRECT, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_INVALIDALPHA, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_INVALIDCOUNT, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPALETTE_INVALIDALPHA, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_INVALIDRATIO, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_INVALIDRANGE, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMLUMAKEY_UNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_UNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_FLIPUNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_MONOOFFSETUNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_FORMATUNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMSTEREOFORMAT_INVALIDFORMAT, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMAUTOPROCESSINGMODE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMAUTOPROCESSINGMODE_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_INVALIDFILTER, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_UNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMFILTER_INVALIDLEVEL, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMEXTENSION_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMEXTENSION_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFRAMEFORMAT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMOUTPUTRATE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSOURCERECT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMDESTRECT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMALPHA_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPALETTE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPIXELASPECTRATIO_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMLUMAKEY_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSTEREOFORMAT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMAUTOPROCESSINGMODE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFILTER_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMEXTENSION_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMEXTENSION_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDSTREAMCOUNT, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_TARGETRECT, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDOUTPUT, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDPASTFRAMES, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDFUTUREFRAMES, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDSOURCERECT, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDDESTRECT, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDINPUTRESOURCE, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDARRAYSIZE, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDARRAY, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_RIGHTEXPECTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_RIGHTNOTEXPECTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_STEREONOTENABLED, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INVALIDRIGHTRESOURCE, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_NOSTEREOSTREAMS, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_INPUTHAZARD, + D3D11_MESSAGE_ID_VIDEOPROCESSORBLT_OUTPUTHAZARD, + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_NULLPARAM, + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDTYPE, + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDBIND, + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_UNSUPPORTEDFORMAT, + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDMIP, + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_UNSUPPORTEMIP, + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDARRAYSIZE, + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDARRAY, + D3D11_MESSAGE_ID_CREATEVIDEODECODEROUTPUTVIEW_INVALIDDIMENSION, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_NULLPARAM, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDTYPE, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDBIND, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDMISC, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDUSAGE, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDFORMAT, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDFOURCC, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDMIP, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_UNSUPPORTEDMIP, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDARRAYSIZE, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDARRAY, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDDIMENSION, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_NULLPARAM, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDTYPE, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDBIND, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDFORMAT, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDMIP, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_UNSUPPORTEDMIP, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_UNSUPPORTEDARRAY, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDARRAY, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDDIMENSION, + + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_FORCED_SAMPLE_COUNT, + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDLOGICOPS, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDARRAYWITHDECODER, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDARRAYWITHDECODER, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDARRAYWITHDECODER, + D3D11_MESSAGE_ID_DEVICE_LOCKEDOUT_INTERFACE, + D3D11_MESSAGE_ID_REF_WARNING_ATOMIC_INCONSISTENT, + D3D11_MESSAGE_ID_REF_WARNING_READING_UNINITIALIZED_RESOURCE, + D3D11_MESSAGE_ID_REF_WARNING_RAW_HAZARD, + D3D11_MESSAGE_ID_REF_WARNING_WAR_HAZARD, + D3D11_MESSAGE_ID_REF_WARNING_WAW_HAZARD, + + D3D11_MESSAGE_ID_CREATECRYPTOSESSION_NULLPARAM, + D3D11_MESSAGE_ID_CREATECRYPTOSESSION_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_GETCRYPTOTYPE_NULLPARAM, + D3D11_MESSAGE_ID_GETDECODERPROFILE_NULLPARAM, + D3D11_MESSAGE_ID_GETCRYPTOSESSIONCERTIFICATESIZE_NULLPARAM, + D3D11_MESSAGE_ID_GETCRYPTOSESSIONCERTIFICATE_NULLPARAM, + D3D11_MESSAGE_ID_GETCRYPTOSESSIONCERTIFICATE_WRONGSIZE, + D3D11_MESSAGE_ID_GETCRYPTOSESSIONHANDLE_WRONGSIZE, + D3D11_MESSAGE_ID_NEGOTIATECRPYTOSESSIONKEYEXCHANGE_NULLPARAM, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_UNSUPPORTED, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_NULLPARAM, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_WRONGDEVICE, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_WRONGDEVICE, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_FORMAT_MISMATCH, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SIZE_MISMATCH, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_MULTISAMPLED, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_NOT_STAGING, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_MAPPED, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_MAPPED, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_OFFERED, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_DST_OFFERED, + D3D11_MESSAGE_ID_ENCRYPTIONBLT_SRC_CONTENT_UNDEFINED, + D3D11_MESSAGE_ID_DECRYPTIONBLT_UNSUPPORTED, + D3D11_MESSAGE_ID_DECRYPTIONBLT_NULLPARAM, + D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_WRONGDEVICE, + D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_WRONGDEVICE, + D3D11_MESSAGE_ID_DECRYPTIONBLT_FORMAT_MISMATCH, + D3D11_MESSAGE_ID_DECRYPTIONBLT_SIZE_MISMATCH, + D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_MULTISAMPLED, + D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_NOT_STAGING, + D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_NOT_RENDER_TARGET, + D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_MAPPED, + D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_MAPPED, + D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_OFFERED, + D3D11_MESSAGE_ID_DECRYPTIONBLT_DST_OFFERED, + D3D11_MESSAGE_ID_DECRYPTIONBLT_SRC_CONTENT_UNDEFINED, + D3D11_MESSAGE_ID_STARTSESSIONKEYREFRESH_NULLPARAM, + D3D11_MESSAGE_ID_STARTSESSIONKEYREFRESH_INVALIDSIZE, + D3D11_MESSAGE_ID_FINISHSESSIONKEYREFRESH_NULLPARAM, + D3D11_MESSAGE_ID_GETENCRYPTIONBLTKEY_NULLPARAM, + D3D11_MESSAGE_ID_GETENCRYPTIONBLTKEY_INVALIDSIZE, + D3D11_MESSAGE_ID_GETCONTENTPROTECTIONCAPS_NULLPARAM, + D3D11_MESSAGE_ID_CHECKCRYPTOKEYEXCHANGE_NULLPARAM, + D3D11_MESSAGE_ID_CHECKCRYPTOKEYEXCHANGE_INVALIDINDEX, + D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_NULLPARAM, + D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_UNSUPPORTED, + D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_INVALIDTYPE, + D3D11_MESSAGE_ID_CREATEAUTHENTICATEDCHANNEL_OUTOFMEMORY_RETURN, + D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATESIZE_INVALIDCHANNEL, + D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATESIZE_NULLPARAM, + D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATE_INVALIDCHANNEL, + D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATE_NULLPARAM, + D3D11_MESSAGE_ID_GETAUTHENTICATEDCHANNELCERTIFICATE_WRONGSIZE, + D3D11_MESSAGE_ID_NEGOTIATEAUTHENTICATEDCHANNELKEYEXCHANGE_INVALIDCHANNEL, + D3D11_MESSAGE_ID_NEGOTIATEAUTHENTICATEDCHANNELKEYEXCHANGE_NULLPARAM, + D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_NULLPARAM, + D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_WRONGCHANNEL, + D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_UNSUPPORTEDQUERY, + D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_WRONGSIZE, + D3D11_MESSAGE_ID_QUERYAUTHENTICATEDCHANNEL_INVALIDPROCESSINDEX, + D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_NULLPARAM, + D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_WRONGCHANNEL, + D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_UNSUPPORTEDCONFIGURE, + D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_WRONGSIZE, + D3D11_MESSAGE_ID_CONFIGUREAUTHENTICATEDCHANNEL_INVALIDPROCESSIDTYPE, + + D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT, + D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT, + D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT, + D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT, + D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT, + D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_INVALIDBUFFEROFFSETORCOUNT, + + D3D11_MESSAGE_ID_NEGOTIATECRPYTOSESSIONKEYEXCHANGE_INVALIDSIZE, + D3D11_MESSAGE_ID_NEGOTIATEAUTHENTICATEDCHANNELKEYEXCHANGE_INVALIDSIZE, + + D3D11_MESSAGE_ID_OFFERRESOURCES_INVALIDPRIORITY, + + D3D11_MESSAGE_ID_GETCRYPTOSESSIONHANDLE_OUTOFMEMORY, + D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_NULLPARAM, + D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_INVALIDTYPE, + D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_INVALIDBIND, + D3D11_MESSAGE_ID_ACQUIREHANDLEFORCAPTURE_INVALIDARRAY, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_INVALID, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMROTATION_UNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMROTATION_NULLPARAM, + + D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDVIEW, + + D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEEXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_SHADEREXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEEXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_SHADEREXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEEXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_SHADEREXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEEXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_SHADEREXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEEXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_SHADEREXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEEXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_SHADEREXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEEXTENSIONSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_SHADEREXTENSIONSNOTSUPPORTED, + + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_MINPRECISION, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMALPHA_UNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMPIXELASPECTRATIO_UNSUPPORTED, + + D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_UAVSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_UAVSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_UAVSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_UAVSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UAVSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_UAVSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_UAVSNOTSUPPORTED, + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_INVALIDOFFSET, + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_TOOMANYVIEWS, + + D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_NOTSUPPORTED, + + D3D11_MESSAGE_ID_SWAPDEVICECONTEXTSTATE_NOTSUPPORTED, + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_PREFERUPDATESUBRESOURCE1, + + D3D11_MESSAGE_ID_GETDC_INACCESSIBLE, + + D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDRECT, + + D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLE_MASK_IGNORED_ON_FL9, + + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE1_NOT_SUPPORTED, + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BY_NAME_NOT_SUPPORTED, + D3D11_MESSAGE_ID_ENQUEUESETEVENT_NOT_SUPPORTED, + D3D11_MESSAGE_ID_OFFERRELEASE_NOT_SUPPORTED, + + D3D11_MESSAGE_ID_OFFERRESOURCES_INACCESSIBLE, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSORINPUTVIEW_INVALIDMSAA, + D3D11_MESSAGE_ID_CREATEVIDEOPROCESSOROUTPUTVIEW_INVALIDMSAA, + + D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDSOURCERECT, + D3D11_MESSAGE_ID_DEVICE_CLEARVIEW_EMPTYRECT, + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_EMPTYDESTBOX, + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_EMPTYSOURCEBOX, + D3D11_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_LOGIC_OPS, + D3D11_MESSAGE_ID_DEVICE_DRAW_DEPTHSTENCILVIEW_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_DRAW_RENDERTARGETVIEW_NOT_SET, + D3D11_MESSAGE_ID_DEVICE_DRAW_RENDERTARGETVIEW_NOT_SET_DUE_TO_FLIP_PRESENT, + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_NOT_SET_DUE_TO_FLIP_PRESENT, + + D3D11_MESSAGE_ID_GETDATAFORNEWHARDWAREKEY_NULLPARAM, + D3D11_MESSAGE_ID_CHECKCRYPTOSESSIONSTATUS_NULLPARAM, + D3D11_MESSAGE_ID_GETCRYPTOSESSIONPRIVATEDATASIZE_NULLPARAM, + D3D11_MESSAGE_ID_GETVIDEODECODERCAPS_NULLPARAM, + D3D11_MESSAGE_ID_GETVIDEODECODERCAPS_ZEROWIDTHHEIGHT, + D3D11_MESSAGE_ID_CHECKVIDEODECODERDOWNSAMPLING_NULLPARAM, + D3D11_MESSAGE_ID_CHECKVIDEODECODERDOWNSAMPLING_INVALIDCOLORSPACE, + D3D11_MESSAGE_ID_CHECKVIDEODECODERDOWNSAMPLING_ZEROWIDTHHEIGHT, + D3D11_MESSAGE_ID_VIDEODECODERENABLEDOWNSAMPLING_NULLPARAM, + D3D11_MESSAGE_ID_VIDEODECODERENABLEDOWNSAMPLING_UNSUPPORTED, + D3D11_MESSAGE_ID_VIDEODECODERUPDATEDOWNSAMPLING_NULLPARAM, + D3D11_MESSAGE_ID_VIDEODECODERUPDATEDOWNSAMPLING_UNSUPPORTED, + D3D11_MESSAGE_ID_CHECKVIDEOPROCESSORFORMATCONVERSION_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTCOLORSPACE1_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTCOLORSPACE1_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE1_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMCOLORSPACE1_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMMIRROR_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMMIRROR_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMMIRROR_UNSUPPORTED, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE1_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMMIRROR_NULLPARAM, + D3D11_MESSAGE_ID_RECOMMENDVIDEODECODERDOWNSAMPLING_NULLPARAM, + D3D11_MESSAGE_ID_RECOMMENDVIDEODECODERDOWNSAMPLING_INVALIDCOLORSPACE, + D3D11_MESSAGE_ID_RECOMMENDVIDEODECODERDOWNSAMPLING_ZEROWIDTHHEIGHT, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTSHADERUSAGE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTSHADERUSAGE_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_INVALIDSTREAMCOUNT, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_TARGETRECT, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_INVALIDSOURCERECT, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETBEHAVIORHINTS_INVALIDDESTRECT, + D3D11_MESSAGE_ID_GETCRYPTOSESSIONPRIVATEDATASIZE_INVALID_KEY_EXCHANGE_TYPE, + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE1_ACCESS_DENIED, + + D3D11_MESSAGE_ID_D3D11_1_MESSAGES_END, + + // D3D11.2 messages: + //-------------------------------------------------------------------------- + D3D11_MESSAGE_ID_D3D11_2_MESSAGES_START, + + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDUSAGE, + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDUSAGE, + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDUSAGE, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_LEVEL9_STEPRATE_NOT_1, + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_LEVEL9_INSTANCING_NOT_SUPPORTED, + D3D11_MESSAGE_ID_UPDATETILEMAPPINGS_INVALID_PARAMETER, + D3D11_MESSAGE_ID_COPYTILEMAPPINGS_INVALID_PARAMETER, + D3D11_MESSAGE_ID_COPYTILES_INVALID_PARAMETER, + D3D11_MESSAGE_ID_UPDATETILES_INVALID_PARAMETER, + D3D11_MESSAGE_ID_RESIZETILEPOOL_INVALID_PARAMETER, + D3D11_MESSAGE_ID_TILEDRESOURCEBARRIER_INVALID_PARAMETER, + D3D11_MESSAGE_ID_NULL_TILE_MAPPING_ACCESS_WARNING, + D3D11_MESSAGE_ID_NULL_TILE_MAPPING_ACCESS_ERROR, + D3D11_MESSAGE_ID_DIRTY_TILE_MAPPING_ACCESS, + D3D11_MESSAGE_ID_DUPLICATE_TILE_MAPPINGS_IN_COVERED_AREA, + D3D11_MESSAGE_ID_TILE_MAPPINGS_IN_COVERED_AREA_DUPLICATED_OUTSIDE, + D3D11_MESSAGE_ID_TILE_MAPPINGS_SHARED_BETWEEN_INCOMPATIBLE_RESOURCES, + D3D11_MESSAGE_ID_TILE_MAPPINGS_SHARED_BETWEEN_INPUT_AND_OUTPUT, + D3D11_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_INVALIDFLAGS, + D3D11_MESSAGE_ID_GETRESOURCETILING_NONTILED_RESOURCE, + D3D11_MESSAGE_ID_RESIZETILEPOOL_SHRINK_WITH_MAPPINGS_STILL_DEFINED_PAST_END, + D3D11_MESSAGE_ID_NEED_TO_CALL_TILEDRESOURCEBARRIER, + + D3D11_MESSAGE_ID_CREATEDEVICE_INVALIDARGS, + D3D11_MESSAGE_ID_CREATEDEVICE_WARNING, + + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWUINT_HAZARD, + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWFLOAT_HAZARD, + + D3D11_MESSAGE_ID_TILED_RESOURCE_TIER_1_BUFFER_TEXTURE_MISMATCH, + + D3D11_MESSAGE_ID_CREATE_CRYPTOSESSION, + D3D11_MESSAGE_ID_CREATE_AUTHENTICATEDCHANNEL, + D3D11_MESSAGE_ID_LIVE_CRYPTOSESSION, + D3D11_MESSAGE_ID_LIVE_AUTHENTICATEDCHANNEL, + D3D11_MESSAGE_ID_DESTROY_CRYPTOSESSION, + D3D11_MESSAGE_ID_DESTROY_AUTHENTICATEDCHANNEL, + + D3D11_MESSAGE_ID_D3D11_2_MESSAGES_END, + + // D3D11.3 messages: + //-------------------------------------------------------------------------- + D3D11_MESSAGE_ID_D3D11_3_MESSAGES_START, + + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALID_CONSERVATIVERASTERMODE, + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_SYSTEMVALUE, + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDCONTEXTTYPE, + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_DECODENOTSUPPORTED, + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_ENCODENOTSUPPORTED, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDPLANEINDEX, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDVIDEOPLANEINDEX, + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_AMBIGUOUSVIDEOPLANEINDEX, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDPLANEINDEX, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDVIDEOPLANEINDEX, + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_AMBIGUOUSVIDEOPLANEINDEX, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDPLANEINDEX, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDVIDEOPLANEINDEX, + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_AMBIGUOUSVIDEOPLANEINDEX, + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDSCANDATAOFFSET, + D3D11_MESSAGE_ID_JPEGDECODE_NOTSUPPORTED, + D3D11_MESSAGE_ID_JPEGDECODE_DIMENSIONSTOOLARGE, + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDCOMPONENTS, + D3D11_MESSAGE_ID_JPEGDECODE_DESTINATIONNOT2D, + D3D11_MESSAGE_ID_JPEGDECODE_TILEDRESOURCESUNSUPPORTED, + D3D11_MESSAGE_ID_JPEGDECODE_GUARDRECTSUNSUPPORTED, + D3D11_MESSAGE_ID_JPEGDECODE_FORMATUNSUPPORTED, + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDSUBRESOURCE, + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDMIPLEVEL, + D3D11_MESSAGE_ID_JPEGDECODE_EMPTYDESTBOX, + D3D11_MESSAGE_ID_JPEGDECODE_DESTBOXNOT2D, + D3D11_MESSAGE_ID_JPEGDECODE_DESTBOXNOTSUB, + D3D11_MESSAGE_ID_JPEGDECODE_DESTBOXESINTERSECT, + D3D11_MESSAGE_ID_JPEGDECODE_XSUBSAMPLEMISMATCH, + D3D11_MESSAGE_ID_JPEGDECODE_YSUBSAMPLEMISMATCH, + D3D11_MESSAGE_ID_JPEGDECODE_XSUBSAMPLEODD, + D3D11_MESSAGE_ID_JPEGDECODE_YSUBSAMPLEODD, + D3D11_MESSAGE_ID_JPEGDECODE_OUTPUTDIMENSIONSTOOLARGE, + D3D11_MESSAGE_ID_JPEGDECODE_NONPOW2SCALEUNSUPPORTED, + D3D11_MESSAGE_ID_JPEGDECODE_FRACTIONALDOWNSCALETOLARGE, + D3D11_MESSAGE_ID_JPEGDECODE_CHROMASIZEMISMATCH, + D3D11_MESSAGE_ID_JPEGDECODE_LUMACHROMASIZEMISMATCH, + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDNUMDESTINATIONS, + D3D11_MESSAGE_ID_JPEGDECODE_SUBBOXUNSUPPORTED, + D3D11_MESSAGE_ID_JPEGDECODE_1DESTUNSUPPORTEDFORMAT, + D3D11_MESSAGE_ID_JPEGDECODE_3DESTUNSUPPORTEDFORMAT, + D3D11_MESSAGE_ID_JPEGDECODE_SCALEUNSUPPORTED, + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDSOURCESIZE, + D3D11_MESSAGE_ID_JPEGDECODE_INVALIDCOPYFLAGS, + D3D11_MESSAGE_ID_JPEGDECODE_HAZARD, + D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPORTEDSRCBUFFERUSAGE, + D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPORTEDSRCBUFFERMISCFLAGS, + D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPORTEDDSTTEXTUREUSAGE, + D3D11_MESSAGE_ID_JPEGDECODE_BACKBUFFERNOTSUPPORTED, + D3D11_MESSAGE_ID_JPEGDECODE_UNSUPPRTEDCOPYFLAGS, + D3D11_MESSAGE_ID_JPEGENCODE_NOTSUPPORTED, + D3D11_MESSAGE_ID_JPEGENCODE_INVALIDSCANDATAOFFSET, + D3D11_MESSAGE_ID_JPEGENCODE_INVALIDCOMPONENTS, + D3D11_MESSAGE_ID_JPEGENCODE_SOURCENOT2D, + D3D11_MESSAGE_ID_JPEGENCODE_TILEDRESOURCESUNSUPPORTED, + D3D11_MESSAGE_ID_JPEGENCODE_GUARDRECTSUNSUPPORTED, + D3D11_MESSAGE_ID_JPEGENCODE_XSUBSAMPLEMISMATCH, + D3D11_MESSAGE_ID_JPEGENCODE_YSUBSAMPLEMISMATCH, + D3D11_MESSAGE_ID_JPEGENCODE_FORMATUNSUPPORTED, + D3D11_MESSAGE_ID_JPEGENCODE_INVALIDSUBRESOURCE, + D3D11_MESSAGE_ID_JPEGENCODE_INVALIDMIPLEVEL, + D3D11_MESSAGE_ID_JPEGENCODE_DIMENSIONSTOOLARGE, + D3D11_MESSAGE_ID_JPEGENCODE_HAZARD, + D3D11_MESSAGE_ID_JPEGENCODE_UNSUPPORTEDDSTBUFFERUSAGE, + D3D11_MESSAGE_ID_JPEGENCODE_UNSUPPORTEDDSTBUFFERMISCFLAGS, + D3D11_MESSAGE_ID_JPEGENCODE_UNSUPPORTEDSRCTEXTUREUSAGE, + D3D11_MESSAGE_ID_JPEGENCODE_BACKBUFFERNOTSUPPORTED, + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_UNSUPPORTEDCONTEXTTTYPEFORQUERY, + D3D11_MESSAGE_ID_FLUSH1_INVALIDCONTEXTTYPE, + D3D11_MESSAGE_ID_DEVICE_SETHARDWAREPROTECTION_INVALIDCONTEXT, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTHDRMETADATA_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETOUTPUTHDRMETADATA_INVALIDSIZE, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTHDRMETADATA_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETOUTPUTHDRMETADATA_INVALIDSIZE, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMHDRMETADATA_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMHDRMETADATA_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORSETSTREAMHDRMETADATA_INVALIDSIZE, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMHDRMETADATA_NULLPARAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMHDRMETADATA_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMHDRMETADATA_INVALIDSIZE, + + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFRAMEFORMAT_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMOUTPUTRATE_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSOURCERECT_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMDESTRECT_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMALPHA_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPALETTE_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMPIXELASPECTRATIO_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMLUMAKEY_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMSTEREOFORMAT_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMAUTOPROCESSINGMODE_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMFILTER_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMROTATION_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMCOLORSPACE1_INVALIDSTREAM, + D3D11_MESSAGE_ID_VIDEOPROCESSORGETSTREAMMIRROR_INVALIDSTREAM, + + D3D11_MESSAGE_ID_CREATE_FENCE, + D3D11_MESSAGE_ID_LIVE_FENCE, + D3D11_MESSAGE_ID_DESTROY_FENCE, + + D3D11_MESSAGE_ID_CREATE_SYNCHRONIZEDCHANNEL, + D3D11_MESSAGE_ID_LIVE_SYNCHRONIZEDCHANNEL, + D3D11_MESSAGE_ID_DESTROY_SYNCHRONIZEDCHANNEL, + + D3D11_MESSAGE_ID_CREATEFENCE_INVALIDFLAGS, + + D3D11_MESSAGE_ID_D3D11_3_MESSAGES_END, + + // D3D11.5 messages: + //-------------------------------------------------------------------------- + D3D11_MESSAGE_ID_D3D11_5_MESSAGES_START, + + D3D11_MESSAGE_ID_NEGOTIATECRYPTOSESSIONKEYEXCHANGEMT_INVALIDKEYEXCHANGETYPE, + D3D11_MESSAGE_ID_NEGOTIATECRYPTOSESSIONKEYEXCHANGEMT_NOT_SUPPORTED, + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_COMPONENT_COUNT, + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_COMPONENT, + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_SIZE, + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_USAGE, + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_MISC_FLAGS, + D3D11_MESSAGE_ID_DECODERBEGINFRAME_INVALID_HISTOGRAM_BUFFER_OFFSET, + + D3D11_MESSAGE_ID_CREATE_TRACKEDWORKLOAD, + D3D11_MESSAGE_ID_LIVE_TRACKEDWORKLOAD, + D3D11_MESSAGE_ID_DESTROY_TRACKEDWORKLOAD, + D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_NULLPARAM, + D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_INVALID_MAX_INSTANCES, + D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_INVALID_DEADLINE_TYPE, + D3D11_MESSAGE_ID_CREATE_TRACKED_WORKLOAD_INVALID_ENGINE_TYPE, + D3D11_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOADS, + D3D11_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOAD_PAIRS, + D3D11_MESSAGE_ID_INCOMPLETE_TRACKED_WORKLOAD_PAIR, + D3D11_MESSAGE_ID_OUT_OF_ORDER_TRACKED_WORKLOAD_PAIR, + D3D11_MESSAGE_ID_CANNOT_ADD_TRACKED_WORKLOAD, + D3D11_MESSAGE_ID_TRACKED_WORKLOAD_NOT_SUPPORTED, + D3D11_MESSAGE_ID_TRACKED_WORKLOAD_ENGINE_TYPE_NOT_FOUND, + D3D11_MESSAGE_ID_NO_TRACKED_WORKLOAD_SLOT_AVAILABLE, + D3D11_MESSAGE_ID_END_TRACKED_WORKLOAD_INVALID_ARG, + D3D11_MESSAGE_ID_TRACKED_WORKLOAD_DISJOINT_FAILURE, + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_AND_WRITE_MASK_MISMATCH, + D3D11_MESSAGE_ID_D3D11_5_MESSAGES_END, + +} D3D11_MESSAGE_ID; + +typedef struct D3D11_MESSAGE +{ + D3D11_MESSAGE_CATEGORY Category; + D3D11_MESSAGE_SEVERITY Severity; + D3D11_MESSAGE_ID ID; + [annotation("_Field_size_(DescriptionByteLength)")] const char* pDescription; + SIZE_T DescriptionByteLength; +} D3D11_MESSAGE; + +typedef struct D3D11_INFO_QUEUE_FILTER_DESC +{ + UINT NumCategories; + [annotation("_Field_size_(NumCategories)")] D3D11_MESSAGE_CATEGORY* pCategoryList; + UINT NumSeverities; + [annotation("_Field_size_(NumSeverities)")] D3D11_MESSAGE_SEVERITY* pSeverityList; + UINT NumIDs; + [annotation("_Field_size_(NumIDs)")] D3D11_MESSAGE_ID* pIDList; +} D3D11_INFO_QUEUE_FILTER_DESC; + +// To use, memset to 0, then fill in what you need. +typedef struct D3D11_INFO_QUEUE_FILTER +{ + D3D11_INFO_QUEUE_FILTER_DESC AllowList; + D3D11_INFO_QUEUE_FILTER_DESC DenyList; +} D3D11_INFO_QUEUE_FILTER; + +//============================================================================= +// ID3D11InfoQueue +// +// Logs D3D11 Messages. +// This interface can be queried from ID3D11Device, as long as the device +// was created with the debug layer. +// +// +cpp_quote("#define D3D11_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024") +[ uuid( 6543dbb6-1b48-42f5-ab82-e97ec74326f6 ), object, local, pointer_default( unique ) ] +interface ID3D11InfoQueue + : IUnknown +{ + //========================================================================= + // Methods for configuring how much data is stored in the queue. + + // SetMessageCountLimit() + // This sets how many messages are stored. When the queue is full, + // new messages coming in push old messages out. + // Passing -1 to SetMessageCountLimit means the queue has + // unlimited size (go until out of memory or ClearStoredMessages()). + // The default message count size is + // D3D11_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT + // Returns S_OK or E_INVALIDARG. + HRESULT SetMessageCountLimit( [annotation("_In_")] UINT64 MessageCountLimit ); + + // ClearStoredMessages + void ClearStoredMessages(); + + //========================================================================= + // Methods for retrieving data or statistics from the queue. + + // GetMessage() + // Retrieves messages, one at a time, from the queue which pass any + // retrieval filter currently defined. If there is no retrieval filter, + // all messages can be retrieved. + // The MessageIndex parameter is a 0 based index into the results passing + // the filter. The number of results is returned by + // GetNumStoredMessagesAllowedByRetrievalFilter(). + // + // Note this does not remove the message from the queue. + // + // pMessageByteLength inputs the size of the buffer passed in via + // pMessage, and outputs the size of the message. pMessage can be NULL + // when the size of the required buffer is being queried (return S_FALSE). + // + // NOTE: The returned buffer pMessage is NOT just the size of D3D11_MESSAGE, + // it includes extra memory after the D3D11_MESSAGE for storing the string + // description, which is pointed to from within D3D11_MESSAGE. Therefore + // applications should check the size needed for pMessage as described above. + // + // Watch out for thread safety when making consecutive calls first to + // determine the buffer size required and then to pass in the buffer and + // retrieve the message, and also between calling + // GetNumStoredMessagesAllowedByRetrievalFilter() and enumerating through + // the results via GetMessagE(). + // + // Returns: S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT GetMessage( + [annotation("_In_")] UINT64 MessageIndex, + [annotation("_Out_writes_bytes_opt_(*pMessageByteLength)")] D3D11_MESSAGE* pMessage, + [annotation("_Inout_")] SIZE_T* pMessageByteLength ); + + // GetNumMessagesAllowedByStorageFilter() + // Returns how many messages sent to the queue passed + // whatever storage filter was active upon receipt of + // the message. + // This can be a larger value than the message count limit, + // returned by GetMessageCountLimit(), since old messages are discarded + // when the queue is full to prevent overflow. + UINT64 GetNumMessagesAllowedByStorageFilter(); + + // GetNumMessagesDeniedByStorageFilter() + UINT64 GetNumMessagesDeniedByStorageFilter(); + + // GetNumStoredMessages() + // Returns how many messages are currently stored in the queue. + UINT64 GetNumStoredMessages(); + + // GetNumStoredMessagesAllowedByRetrievalFilter() + // Returns how many messages that are currently in the queue + // pass any retrieval filter that is currently set. + // The MessageIndex parameter to GetMessage() indexes + // an array of this many results. + UINT64 GetNumStoredMessagesAllowedByRetrievalFilter(); + + // GetNumMessagesDiscardedByMessageCountLimit() + UINT64 GetNumMessagesDiscardedByMessageCountLimit(); + + // GetMessageCountLimit + // This is how many messages can be stored in the queue. + // When the queue is full, new messages coming in push old messages out. + // -1 means there is no limit. + UINT64 GetMessageCountLimit(); + + //========================================================================= + // Methods for filtering what gets stored in the queue + + // AddStorageFilterEntries() + // Adds to the existing entries at top of stack + // Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT AddStorageFilterEntries( + [annotation("_In_")] D3D11_INFO_QUEUE_FILTER* pFilter ); + + // GetStorageFilter() + // Gets all entries at top of stack. + // The application must allocate the output buffer. The size required can be + // queried by passing null for pFilter and looking at the returned + // pFilterByteLength (HRESULT is S_FALSE). Note that D3D11_INFO_QUEUE_FILTER contains + // pointers - these will point to locations within the same + // contiguous buffer - *pFilterByteLength is the total storage needed for all + // data. So the application needs to only allocate/free the memory for pFilter. + // Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY + HRESULT GetStorageFilter( + [annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] D3D11_INFO_QUEUE_FILTER* pFilter, + [annotation("_Inout_")] SIZE_T* pFilterByteLength ); + + // ClearStorageFilter() + // Clears filter at the top of the stack (if there is one) + void ClearStorageFilter(); + + // PushEmptyStorageFilter() + // Push an empty storage filter on the stack to allow local filtering changes. + // For convenience, this is automatically called by SetStorageFilter() + // if the stack is empty. Thus if the stack is not needed, filters can be + // defined without ever bothering to push or pop. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushEmptyStorageFilter(); + + // PushCopyOfStorageFilter() + // Push a copy of the current filter so that local modifications can be made + // starting from what currently exists. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushCopyOfStorageFilter(); + + // PushStorageFilter() + // Push a filter passed as a parameter onto the stack. This is + // just a helper for calling PushEmptyStorageFilter() followed + // by AddStorageFilterEntries() + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT PushStorageFilter( + [annotation("_In_")] D3D11_INFO_QUEUE_FILTER* pFilter ); + + // PopStorageFilter() + // Pop the current storage filter off the stack (if there is one) + void PopStorageFilter(); + + // GetStorageFilterStackSize() + UINT GetStorageFilterStackSize(); + + //========================================================================= + // Methods for filtering what gets read out of the queue by GetMessage(). + + // AddRetrievalFilterEntries() + // Adds to the existing entries at top of stack + // Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT AddRetrievalFilterEntries( + [annotation("_In_")] D3D11_INFO_QUEUE_FILTER* pFilter ); + + // GetRetrievalFilter() + // Gets all entries at top of stack. + // The application must allocate the output buffer. The size required can be + // queried by passing null for pFilter and looking at the returned + // pFilterByteLength (HRESULT is S_FALSE). Note that D3D11_INFO_QUEUE_FILTER contains + // pointers - these will point to locations within the same + // contiguous buffer - *pFilterByteLength is the total storage needed for all + // data. So the application needs to only allocate/free the memory for pFilter. + // Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY + HRESULT GetRetrievalFilter( + [annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] D3D11_INFO_QUEUE_FILTER* pFilter, + [annotation("_Inout_")] SIZE_T* pFilterByteLength ); + + // ClearRetrievalFilter() + // Clears filter at the top of the stack (if there is one) + void ClearRetrievalFilter(); + + // PushEmptyRetrievalFilter() + // Push an empty storage filter on the stack to allow local filtering changes. + // For convenience, this is automatically called by SetRetrievalFilter() + // if the stack is empty. Thus if the stack is not needed, filters can be + // defined without ever bothering to push or pop. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushEmptyRetrievalFilter(); + + // PushCopyOfRetrievalFilter() + // Push a copy of the current filter so that local modifications can be made + // starting from what currently exists. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushCopyOfRetrievalFilter(); + + // PushRetrievalFilter() + // Push a filter passed as a parameter onto the stack. This is + // just a helper for calling PushEmptyRetrievalFilter() followed + // by AddRetrievalFilterEntries() + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT PushRetrievalFilter( + [annotation("_In_")] D3D11_INFO_QUEUE_FILTER* pFilter ); + + // PopRetrievalFilter() + // Pop the current storage filter off the stack (if there is one) + void PopRetrievalFilter(); + + // GetRetrievalFilterStackSize() + UINT GetRetrievalFilterStackSize(); + + //========================================================================= + // Methods for adding entries to the queue. + + // AddMessage() + // This is used by D3D11 components to log messages. Nothing stops + // applications from calling this, but it isn’t particularly useful. + // If an application wishes to insert custom strings into the queue, + // AddApplicationMessage() below is suggested. See below. + // + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY + HRESULT AddMessage( + [annotation("_In_")] D3D11_MESSAGE_CATEGORY Category, + [annotation("_In_")] D3D11_MESSAGE_SEVERITY Severity, + [annotation("_In_")] D3D11_MESSAGE_ID ID, + [annotation("_In_")] LPCSTR pDescription); + + // AddApplicationMessage() + // This is a convenience for applications that want + // to insert strings of their own into the queue, perhaps to log issues + // of its own, or to mark out points in time in the queue. This + // has the same effect as calling AddMessage() above with the + // following settings: + // Category = D3D11_MESSAGE_CATEGORY_APPLICATION_DEFINED + // Severity = + // ID = D3D11_MESSAGE_ID_STRING_FROM_APPLICATION + // pDescription = + // + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY + HRESULT AddApplicationMessage( + [annotation("_In_")] D3D11_MESSAGE_SEVERITY Severity, + [annotation("_In_")] LPCSTR pDescription); + + //========================================================================= + // Methods for breaking on errors that pass the storage filter. + HRESULT SetBreakOnCategory( + [annotation("_In_")] D3D11_MESSAGE_CATEGORY Category, + [annotation("_In_")] BOOL bEnable ); + HRESULT SetBreakOnSeverity( + [annotation("_In_")] D3D11_MESSAGE_SEVERITY Severity, + [annotation("_In_")] BOOL bEnable ); + HRESULT SetBreakOnID( + [annotation("_In_")] D3D11_MESSAGE_ID ID, + [annotation("_In_")] BOOL bEnable ); + + BOOL GetBreakOnCategory( + [annotation("_In_")] D3D11_MESSAGE_CATEGORY Category ); + BOOL GetBreakOnSeverity( + [annotation("_In_")] D3D11_MESSAGE_SEVERITY Severity ); + BOOL GetBreakOnID( + [annotation("_In_")] D3D11_MESSAGE_ID ID ); + + //========================================================================= + // Methods for globally muting debug spte from the InfoQueue + void SetMuteDebugOutput( + [annotation("_In_")] BOOL bMute ); + BOOL GetMuteDebugOutput(); + + +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +cpp_quote("#pragma endregion") +#pragma endregion + +cpp_quote( "DEFINE_GUID(IID_ID3D11Debug,0x79cf2233,0x7536,0x4948,0x9d,0x36,0x1e,0x46,0x92,0xdc,0x57,0x60);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11SwitchToRef,0x1ef337e3,0x58e7,0x4f83,0xa6,0x92,0xdb,0x22,0x1f,0x5e,0xd4,0x7e);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11TracingDevice,0x1911c771,0x1587,0x413e,0xa7,0xe0,0xfb,0x26,0xc3,0xde,0x02,0x68);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11RefTrackingOptions,0x193dacdf,0x0db2,0x4c05,0xa5,0x5c,0xef,0x06,0xca,0xc5,0x6f,0xd9);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11RefDefaultTrackingOptions,0x03916615,0xc644,0x418c,0x9b,0xf4,0x75,0xdb,0x5b,0xe6,0x3c,0xa0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D11InfoQueue,0x6543dbb6,0x1b48,0x42f5,0xab,0x82,0xe9,0x7e,0xc7,0x43,0x26,0xf6);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11shader.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11shader.h new file mode 100644 index 0000000000000000000000000000000000000000..2f1eaa8f8c468cc593dce29052ab5bca92c7ad57 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11shader.h @@ -0,0 +1,601 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: D3D11Shader.h +// Content: D3D11 Shader Types and APIs +// +////////////////////////////////////////////////////////////////////////////// + +#ifndef __D3D11SHADER_H__ +#define __D3D11SHADER_H__ + +#include "d3dcommon.h" + + +typedef enum D3D11_SHADER_VERSION_TYPE +{ + D3D11_SHVER_PIXEL_SHADER = 0, + D3D11_SHVER_VERTEX_SHADER = 1, + D3D11_SHVER_GEOMETRY_SHADER = 2, + + // D3D11 Shaders + D3D11_SHVER_HULL_SHADER = 3, + D3D11_SHVER_DOMAIN_SHADER = 4, + D3D11_SHVER_COMPUTE_SHADER = 5, + + D3D11_SHVER_RESERVED0 = 0xFFF0, +} D3D11_SHADER_VERSION_TYPE; + +#define D3D11_SHVER_GET_TYPE(_Version) \ + (((_Version) >> 16) & 0xffff) +#define D3D11_SHVER_GET_MAJOR(_Version) \ + (((_Version) >> 4) & 0xf) +#define D3D11_SHVER_GET_MINOR(_Version) \ + (((_Version) >> 0) & 0xf) + +// Slot ID for library function return +#define D3D_RETURN_PARAMETER_INDEX (-1) + +typedef D3D_RESOURCE_RETURN_TYPE D3D11_RESOURCE_RETURN_TYPE; + +typedef D3D_CBUFFER_TYPE D3D11_CBUFFER_TYPE; + + +typedef struct _D3D11_SIGNATURE_PARAMETER_DESC +{ + LPCSTR SemanticName; // Name of the semantic + UINT SemanticIndex; // Index of the semantic + UINT Register; // Number of member variables + D3D_NAME SystemValueType;// A predefined system value, or D3D_NAME_UNDEFINED if not applicable + D3D_REGISTER_COMPONENT_TYPE ComponentType; // Scalar type (e.g. uint, float, etc.) + BYTE Mask; // Mask to indicate which components of the register + // are used (combination of D3D10_COMPONENT_MASK values) + BYTE ReadWriteMask; // Mask to indicate whether a given component is + // never written (if this is an output signature) or + // always read (if this is an input signature). + // (combination of D3D_MASK_* values) + UINT Stream; // Stream index + D3D_MIN_PRECISION MinPrecision; // Minimum desired interpolation precision +} D3D11_SIGNATURE_PARAMETER_DESC; + +typedef struct _D3D11_SHADER_BUFFER_DESC +{ + LPCSTR Name; // Name of the constant buffer + D3D_CBUFFER_TYPE Type; // Indicates type of buffer content + UINT Variables; // Number of member variables + UINT Size; // Size of CB (in bytes) + UINT uFlags; // Buffer description flags +} D3D11_SHADER_BUFFER_DESC; + +typedef struct _D3D11_SHADER_VARIABLE_DESC +{ + LPCSTR Name; // Name of the variable + UINT StartOffset; // Offset in constant buffer's backing store + UINT Size; // Size of variable (in bytes) + UINT uFlags; // Variable flags + LPVOID DefaultValue; // Raw pointer to default value + UINT StartTexture; // First texture index (or -1 if no textures used) + UINT TextureSize; // Number of texture slots possibly used. + UINT StartSampler; // First sampler index (or -1 if no textures used) + UINT SamplerSize; // Number of sampler slots possibly used. +} D3D11_SHADER_VARIABLE_DESC; + +typedef struct _D3D11_SHADER_TYPE_DESC +{ + D3D_SHADER_VARIABLE_CLASS Class; // Variable class (e.g. object, matrix, etc.) + D3D_SHADER_VARIABLE_TYPE Type; // Variable type (e.g. float, sampler, etc.) + UINT Rows; // Number of rows (for matrices, 1 for other numeric, 0 if not applicable) + UINT Columns; // Number of columns (for vectors & matrices, 1 for other numeric, 0 if not applicable) + UINT Elements; // Number of elements (0 if not an array) + UINT Members; // Number of members (0 if not a structure) + UINT Offset; // Offset from the start of structure (0 if not a structure member) + LPCSTR Name; // Name of type, can be NULL +} D3D11_SHADER_TYPE_DESC; + +typedef D3D_TESSELLATOR_DOMAIN D3D11_TESSELLATOR_DOMAIN; + +typedef D3D_TESSELLATOR_PARTITIONING D3D11_TESSELLATOR_PARTITIONING; + +typedef D3D_TESSELLATOR_OUTPUT_PRIMITIVE D3D11_TESSELLATOR_OUTPUT_PRIMITIVE; + +typedef struct _D3D11_SHADER_DESC +{ + UINT Version; // Shader version + LPCSTR Creator; // Creator string + UINT Flags; // Shader compilation/parse flags + + UINT ConstantBuffers; // Number of constant buffers + UINT BoundResources; // Number of bound resources + UINT InputParameters; // Number of parameters in the input signature + UINT OutputParameters; // Number of parameters in the output signature + + UINT InstructionCount; // Number of emitted instructions + UINT TempRegisterCount; // Number of temporary registers used + UINT TempArrayCount; // Number of temporary arrays used + UINT DefCount; // Number of constant defines + UINT DclCount; // Number of declarations (input + output) + UINT TextureNormalInstructions; // Number of non-categorized texture instructions + UINT TextureLoadInstructions; // Number of texture load instructions + UINT TextureCompInstructions; // Number of texture comparison instructions + UINT TextureBiasInstructions; // Number of texture bias instructions + UINT TextureGradientInstructions; // Number of texture gradient instructions + UINT FloatInstructionCount; // Number of floating point arithmetic instructions used + UINT IntInstructionCount; // Number of signed integer arithmetic instructions used + UINT UintInstructionCount; // Number of unsigned integer arithmetic instructions used + UINT StaticFlowControlCount; // Number of static flow control instructions used + UINT DynamicFlowControlCount; // Number of dynamic flow control instructions used + UINT MacroInstructionCount; // Number of macro instructions used + UINT ArrayInstructionCount; // Number of array instructions used + UINT CutInstructionCount; // Number of cut instructions used + UINT EmitInstructionCount; // Number of emit instructions used + D3D_PRIMITIVE_TOPOLOGY GSOutputTopology; // Geometry shader output topology + UINT GSMaxOutputVertexCount; // Geometry shader maximum output vertex count + D3D_PRIMITIVE InputPrimitive; // GS/HS input primitive + UINT PatchConstantParameters; // Number of parameters in the patch constant signature + UINT cGSInstanceCount; // Number of Geometry shader instances + UINT cControlPoints; // Number of control points in the HS->DS stage + D3D_TESSELLATOR_OUTPUT_PRIMITIVE HSOutputPrimitive; // Primitive output by the tessellator + D3D_TESSELLATOR_PARTITIONING HSPartitioning; // Partitioning mode of the tessellator + D3D_TESSELLATOR_DOMAIN TessellatorDomain; // Domain of the tessellator (quad, tri, isoline) + // instruction counts + UINT cBarrierInstructions; // Number of barrier instructions in a compute shader + UINT cInterlockedInstructions; // Number of interlocked instructions + UINT cTextureStoreInstructions; // Number of texture writes +} D3D11_SHADER_DESC; + +typedef struct _D3D11_SHADER_INPUT_BIND_DESC +{ + LPCSTR Name; // Name of the resource + D3D_SHADER_INPUT_TYPE Type; // Type of resource (e.g. texture, cbuffer, etc.) + UINT BindPoint; // Starting bind point + UINT BindCount; // Number of contiguous bind points (for arrays) + + UINT uFlags; // Input binding flags + D3D_RESOURCE_RETURN_TYPE ReturnType; // Return type (if texture) + D3D_SRV_DIMENSION Dimension; // Dimension (if texture) + UINT NumSamples; // Number of samples (0 if not MS texture) +} D3D11_SHADER_INPUT_BIND_DESC; + +#define D3D_SHADER_REQUIRES_DOUBLES 0x00000001 +#define D3D_SHADER_REQUIRES_EARLY_DEPTH_STENCIL 0x00000002 +#define D3D_SHADER_REQUIRES_UAVS_AT_EVERY_STAGE 0x00000004 +#define D3D_SHADER_REQUIRES_64_UAVS 0x00000008 +#define D3D_SHADER_REQUIRES_MINIMUM_PRECISION 0x00000010 +#define D3D_SHADER_REQUIRES_11_1_DOUBLE_EXTENSIONS 0x00000020 +#define D3D_SHADER_REQUIRES_11_1_SHADER_EXTENSIONS 0x00000040 +#define D3D_SHADER_REQUIRES_LEVEL_9_COMPARISON_FILTERING 0x00000080 +#define D3D_SHADER_REQUIRES_TILED_RESOURCES 0x00000100 + + +typedef struct _D3D11_LIBRARY_DESC +{ + LPCSTR Creator; // The name of the originator of the library. + UINT Flags; // Compilation flags. + UINT FunctionCount; // Number of functions exported from the library. +} D3D11_LIBRARY_DESC; + +typedef struct _D3D11_FUNCTION_DESC +{ + UINT Version; // Shader version + LPCSTR Creator; // Creator string + UINT Flags; // Shader compilation/parse flags + + UINT ConstantBuffers; // Number of constant buffers + UINT BoundResources; // Number of bound resources + + UINT InstructionCount; // Number of emitted instructions + UINT TempRegisterCount; // Number of temporary registers used + UINT TempArrayCount; // Number of temporary arrays used + UINT DefCount; // Number of constant defines + UINT DclCount; // Number of declarations (input + output) + UINT TextureNormalInstructions; // Number of non-categorized texture instructions + UINT TextureLoadInstructions; // Number of texture load instructions + UINT TextureCompInstructions; // Number of texture comparison instructions + UINT TextureBiasInstructions; // Number of texture bias instructions + UINT TextureGradientInstructions; // Number of texture gradient instructions + UINT FloatInstructionCount; // Number of floating point arithmetic instructions used + UINT IntInstructionCount; // Number of signed integer arithmetic instructions used + UINT UintInstructionCount; // Number of unsigned integer arithmetic instructions used + UINT StaticFlowControlCount; // Number of static flow control instructions used + UINT DynamicFlowControlCount; // Number of dynamic flow control instructions used + UINT MacroInstructionCount; // Number of macro instructions used + UINT ArrayInstructionCount; // Number of array instructions used + UINT MovInstructionCount; // Number of mov instructions used + UINT MovcInstructionCount; // Number of movc instructions used + UINT ConversionInstructionCount; // Number of type conversion instructions used + UINT BitwiseInstructionCount; // Number of bitwise arithmetic instructions used + D3D_FEATURE_LEVEL MinFeatureLevel; // Min target of the function byte code + UINT64 RequiredFeatureFlags; // Required feature flags + + LPCSTR Name; // Function name + INT FunctionParameterCount; // Number of logical parameters in the function signature (not including return) + BOOL HasReturn; // TRUE, if function returns a value, false - it is a subroutine + BOOL Has10Level9VertexShader; // TRUE, if there is a 10L9 VS blob + BOOL Has10Level9PixelShader; // TRUE, if there is a 10L9 PS blob +} D3D11_FUNCTION_DESC; + +typedef struct _D3D11_PARAMETER_DESC +{ + LPCSTR Name; // Parameter name. + LPCSTR SemanticName; // Parameter semantic name (+index). + D3D_SHADER_VARIABLE_TYPE Type; // Element type. + D3D_SHADER_VARIABLE_CLASS Class; // Scalar/Vector/Matrix. + UINT Rows; // Rows are for matrix parameters. + UINT Columns; // Components or Columns in matrix. + D3D_INTERPOLATION_MODE InterpolationMode; // Interpolation mode. + D3D_PARAMETER_FLAGS Flags; // Parameter modifiers. + + UINT FirstInRegister; // The first input register for this parameter. + UINT FirstInComponent; // The first input register component for this parameter. + UINT FirstOutRegister; // The first output register for this parameter. + UINT FirstOutComponent; // The first output register component for this parameter. +} D3D11_PARAMETER_DESC; + + +////////////////////////////////////////////////////////////////////////////// +// Interfaces //////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D11ShaderReflectionType ID3D11ShaderReflectionType; +typedef interface ID3D11ShaderReflectionType *LPD3D11SHADERREFLECTIONTYPE; + +typedef interface ID3D11ShaderReflectionVariable ID3D11ShaderReflectionVariable; +typedef interface ID3D11ShaderReflectionVariable *LPD3D11SHADERREFLECTIONVARIABLE; + +typedef interface ID3D11ShaderReflectionConstantBuffer ID3D11ShaderReflectionConstantBuffer; +typedef interface ID3D11ShaderReflectionConstantBuffer *LPD3D11SHADERREFLECTIONCONSTANTBUFFER; + +typedef interface ID3D11ShaderReflection ID3D11ShaderReflection; +typedef interface ID3D11ShaderReflection *LPD3D11SHADERREFLECTION; + +typedef interface ID3D11LibraryReflection ID3D11LibraryReflection; +typedef interface ID3D11LibraryReflection *LPD3D11LIBRARYREFLECTION; + +typedef interface ID3D11FunctionReflection ID3D11FunctionReflection; +typedef interface ID3D11FunctionReflection *LPD3D11FUNCTIONREFLECTION; + +typedef interface ID3D11FunctionParameterReflection ID3D11FunctionParameterReflection; +typedef interface ID3D11FunctionParameterReflection *LPD3D11FUNCTIONPARAMETERREFLECTION; + +// {6E6FFA6A-9BAE-4613-A51E-91652D508C21} +interface DECLSPEC_UUID("6E6FFA6A-9BAE-4613-A51E-91652D508C21") ID3D11ShaderReflectionType; +DEFINE_GUID(IID_ID3D11ShaderReflectionType, +0x6e6ffa6a, 0x9bae, 0x4613, 0xa5, 0x1e, 0x91, 0x65, 0x2d, 0x50, 0x8c, 0x21); + +#undef INTERFACE +#define INTERFACE ID3D11ShaderReflectionType + +DECLARE_INTERFACE(ID3D11ShaderReflectionType) +{ + STDMETHOD(GetDesc)(THIS_ _Out_ D3D11_SHADER_TYPE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D11ShaderReflectionType*, GetMemberTypeByIndex)(THIS_ _In_ UINT Index) PURE; + STDMETHOD_(ID3D11ShaderReflectionType*, GetMemberTypeByName)(THIS_ _In_ LPCSTR Name) PURE; + STDMETHOD_(LPCSTR, GetMemberTypeName)(THIS_ _In_ UINT Index) PURE; + + STDMETHOD(IsEqual)(THIS_ _In_ ID3D11ShaderReflectionType* pType) PURE; + STDMETHOD_(ID3D11ShaderReflectionType*, GetSubType)(THIS) PURE; + STDMETHOD_(ID3D11ShaderReflectionType*, GetBaseClass)(THIS) PURE; + STDMETHOD_(UINT, GetNumInterfaces)(THIS) PURE; + STDMETHOD_(ID3D11ShaderReflectionType*, GetInterfaceByIndex)(THIS_ _In_ UINT uIndex) PURE; + STDMETHOD(IsOfType)(THIS_ _In_ ID3D11ShaderReflectionType* pType) PURE; + STDMETHOD(ImplementsInterface)(THIS_ _In_ ID3D11ShaderReflectionType* pBase) PURE; +}; + +// {51F23923-F3E5-4BD1-91CB-606177D8DB4C} +interface DECLSPEC_UUID("51F23923-F3E5-4BD1-91CB-606177D8DB4C") ID3D11ShaderReflectionVariable; +DEFINE_GUID(IID_ID3D11ShaderReflectionVariable, +0x51f23923, 0xf3e5, 0x4bd1, 0x91, 0xcb, 0x60, 0x61, 0x77, 0xd8, 0xdb, 0x4c); + +#undef INTERFACE +#define INTERFACE ID3D11ShaderReflectionVariable + +DECLARE_INTERFACE(ID3D11ShaderReflectionVariable) +{ + STDMETHOD(GetDesc)(THIS_ _Out_ D3D11_SHADER_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D11ShaderReflectionType*, GetType)(THIS) PURE; + STDMETHOD_(ID3D11ShaderReflectionConstantBuffer*, GetBuffer)(THIS) PURE; + + STDMETHOD_(UINT, GetInterfaceSlot)(THIS_ _In_ UINT uArrayIndex) PURE; +}; + +// {EB62D63D-93DD-4318-8AE8-C6F83AD371B8} +interface DECLSPEC_UUID("EB62D63D-93DD-4318-8AE8-C6F83AD371B8") ID3D11ShaderReflectionConstantBuffer; +DEFINE_GUID(IID_ID3D11ShaderReflectionConstantBuffer, +0xeb62d63d, 0x93dd, 0x4318, 0x8a, 0xe8, 0xc6, 0xf8, 0x3a, 0xd3, 0x71, 0xb8); + +#undef INTERFACE +#define INTERFACE ID3D11ShaderReflectionConstantBuffer + +DECLARE_INTERFACE(ID3D11ShaderReflectionConstantBuffer) +{ + STDMETHOD(GetDesc)(THIS_ D3D11_SHADER_BUFFER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D11ShaderReflectionVariable*, GetVariableByIndex)(THIS_ _In_ UINT Index) PURE; + STDMETHOD_(ID3D11ShaderReflectionVariable*, GetVariableByName)(THIS_ _In_ LPCSTR Name) PURE; +}; + +// The ID3D11ShaderReflection IID may change from SDK version to SDK version +// if the reflection API changes. This prevents new code with the new API +// from working with an old binary. Recompiling with the new header +// will pick up the new IID. + +// 8d536ca1-0cca-4956-a837-786963755584 +interface DECLSPEC_UUID("8d536ca1-0cca-4956-a837-786963755584") ID3D11ShaderReflection; +DEFINE_GUID(IID_ID3D11ShaderReflection, +0x8d536ca1, 0x0cca, 0x4956, 0xa8, 0x37, 0x78, 0x69, 0x63, 0x75, 0x55, 0x84); + +#undef INTERFACE +#define INTERFACE ID3D11ShaderReflection + +DECLARE_INTERFACE_(ID3D11ShaderReflection, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ _In_ REFIID iid, + _Out_ LPVOID *ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + STDMETHOD(GetDesc)(THIS_ _Out_ D3D11_SHADER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D11ShaderReflectionConstantBuffer*, GetConstantBufferByIndex)(THIS_ _In_ UINT Index) PURE; + STDMETHOD_(ID3D11ShaderReflectionConstantBuffer*, GetConstantBufferByName)(THIS_ _In_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDesc)(THIS_ _In_ UINT ResourceIndex, + _Out_ D3D11_SHADER_INPUT_BIND_DESC *pDesc) PURE; + + STDMETHOD(GetInputParameterDesc)(THIS_ _In_ UINT ParameterIndex, + _Out_ D3D11_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + STDMETHOD(GetOutputParameterDesc)(THIS_ _In_ UINT ParameterIndex, + _Out_ D3D11_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + STDMETHOD(GetPatchConstantParameterDesc)(THIS_ _In_ UINT ParameterIndex, + _Out_ D3D11_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D11ShaderReflectionVariable*, GetVariableByName)(THIS_ _In_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDescByName)(THIS_ _In_ LPCSTR Name, + _Out_ D3D11_SHADER_INPUT_BIND_DESC *pDesc) PURE; + + STDMETHOD_(UINT, GetMovInstructionCount)(THIS) PURE; + STDMETHOD_(UINT, GetMovcInstructionCount)(THIS) PURE; + STDMETHOD_(UINT, GetConversionInstructionCount)(THIS) PURE; + STDMETHOD_(UINT, GetBitwiseInstructionCount)(THIS) PURE; + + STDMETHOD_(D3D_PRIMITIVE, GetGSInputPrimitive)(THIS) PURE; + STDMETHOD_(BOOL, IsSampleFrequencyShader)(THIS) PURE; + + STDMETHOD_(UINT, GetNumInterfaceSlots)(THIS) PURE; + STDMETHOD(GetMinFeatureLevel)(THIS_ _Out_ enum D3D_FEATURE_LEVEL* pLevel) PURE; + + STDMETHOD_(UINT, GetThreadGroupSize)(THIS_ + _Out_opt_ UINT* pSizeX, + _Out_opt_ UINT* pSizeY, + _Out_opt_ UINT* pSizeZ) PURE; + + STDMETHOD_(UINT64, GetRequiresFlags)(THIS) PURE; +}; + +// {54384F1B-5B3E-4BB7-AE01-60BA3097CBB6} +interface DECLSPEC_UUID("54384F1B-5B3E-4BB7-AE01-60BA3097CBB6") ID3D11LibraryReflection; +DEFINE_GUID(IID_ID3D11LibraryReflection, +0x54384f1b, 0x5b3e, 0x4bb7, 0xae, 0x1, 0x60, 0xba, 0x30, 0x97, 0xcb, 0xb6); + +#undef INTERFACE +#define INTERFACE ID3D11LibraryReflection + +DECLARE_INTERFACE_(ID3D11LibraryReflection, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ _In_ REFIID iid, _Out_ LPVOID * ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + STDMETHOD(GetDesc)(THIS_ _Out_ D3D11_LIBRARY_DESC * pDesc) PURE; + + STDMETHOD_(ID3D11FunctionReflection *, GetFunctionByIndex)(THIS_ _In_ INT FunctionIndex) PURE; +}; + +// {207BCECB-D683-4A06-A8A3-9B149B9F73A4} +interface DECLSPEC_UUID("207BCECB-D683-4A06-A8A3-9B149B9F73A4") ID3D11FunctionReflection; +DEFINE_GUID(IID_ID3D11FunctionReflection, +0x207bcecb, 0xd683, 0x4a06, 0xa8, 0xa3, 0x9b, 0x14, 0x9b, 0x9f, 0x73, 0xa4); + +#undef INTERFACE +#define INTERFACE ID3D11FunctionReflection + +DECLARE_INTERFACE(ID3D11FunctionReflection) +{ + STDMETHOD(GetDesc)(THIS_ _Out_ D3D11_FUNCTION_DESC * pDesc) PURE; + + STDMETHOD_(ID3D11ShaderReflectionConstantBuffer *, GetConstantBufferByIndex)(THIS_ _In_ UINT BufferIndex) PURE; + STDMETHOD_(ID3D11ShaderReflectionConstantBuffer *, GetConstantBufferByName)(THIS_ _In_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDesc)(THIS_ _In_ UINT ResourceIndex, + _Out_ D3D11_SHADER_INPUT_BIND_DESC * pDesc) PURE; + + STDMETHOD_(ID3D11ShaderReflectionVariable *, GetVariableByName)(THIS_ _In_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDescByName)(THIS_ _In_ LPCSTR Name, + _Out_ D3D11_SHADER_INPUT_BIND_DESC * pDesc) PURE; + + // Use D3D_RETURN_PARAMETER_INDEX to get description of the return value. + STDMETHOD_(ID3D11FunctionParameterReflection *, GetFunctionParameter)(THIS_ _In_ INT ParameterIndex) PURE; +}; + +// {42757488-334F-47FE-982E-1A65D08CC462} +interface DECLSPEC_UUID("42757488-334F-47FE-982E-1A65D08CC462") ID3D11FunctionParameterReflection; +DEFINE_GUID(IID_ID3D11FunctionParameterReflection, +0x42757488, 0x334f, 0x47fe, 0x98, 0x2e, 0x1a, 0x65, 0xd0, 0x8c, 0xc4, 0x62); + +#undef INTERFACE +#define INTERFACE ID3D11FunctionParameterReflection + +DECLARE_INTERFACE(ID3D11FunctionParameterReflection) +{ + STDMETHOD(GetDesc)(THIS_ _Out_ D3D11_PARAMETER_DESC * pDesc) PURE; +}; + + +// {469E07F7-045A-48D5-AA12-68A478CDF75D} +interface DECLSPEC_UUID("469E07F7-045A-48D5-AA12-68A478CDF75D") ID3D11ModuleInstance; +DEFINE_GUID(IID_ID3D11ModuleInstance, +0x469e07f7, 0x45a, 0x48d5, 0xaa, 0x12, 0x68, 0xa4, 0x78, 0xcd, 0xf7, 0x5d); + +#undef INTERFACE +#define INTERFACE ID3D11ModuleInstance + +DECLARE_INTERFACE_(ID3D11ModuleInstance, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ _In_ REFIID iid, _Out_ LPVOID * ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // + // Resource binding API. + // + STDMETHOD(BindConstantBuffer)(THIS_ _In_ UINT uSrcSlot, _In_ UINT uDstSlot, _In_ UINT cbDstOffset) PURE; + STDMETHOD(BindConstantBufferByName)(THIS_ _In_ LPCSTR pName, _In_ UINT uDstSlot, _In_ UINT cbDstOffset) PURE; + + STDMETHOD(BindResource)(THIS_ _In_ UINT uSrcSlot, _In_ UINT uDstSlot, _In_ UINT uCount) PURE; + STDMETHOD(BindResourceByName)(THIS_ _In_ LPCSTR pName, _In_ UINT uDstSlot, _In_ UINT uCount) PURE; + + STDMETHOD(BindSampler)(THIS_ _In_ UINT uSrcSlot, _In_ UINT uDstSlot, _In_ UINT uCount) PURE; + STDMETHOD(BindSamplerByName)(THIS_ _In_ LPCSTR pName, _In_ UINT uDstSlot, _In_ UINT uCount) PURE; + + STDMETHOD(BindUnorderedAccessView)(THIS_ _In_ UINT uSrcSlot, _In_ UINT uDstSlot, _In_ UINT uCount) PURE; + STDMETHOD(BindUnorderedAccessViewByName)(THIS_ _In_ LPCSTR pName, _In_ UINT uDstSlot, _In_ UINT uCount) PURE; + + STDMETHOD(BindResourceAsUnorderedAccessView)(THIS_ _In_ UINT uSrcSrvSlot, _In_ UINT uDstUavSlot, _In_ UINT uCount) PURE; + STDMETHOD(BindResourceAsUnorderedAccessViewByName)(THIS_ _In_ LPCSTR pSrvName, _In_ UINT uDstUavSlot, _In_ UINT uCount) PURE; +}; + +// {CAC701EE-80FC-4122-8242-10B39C8CEC34} +interface DECLSPEC_UUID("CAC701EE-80FC-4122-8242-10B39C8CEC34") ID3D11Module; +DEFINE_GUID(IID_ID3D11Module, +0xcac701ee, 0x80fc, 0x4122, 0x82, 0x42, 0x10, 0xb3, 0x9c, 0x8c, 0xec, 0x34); + +#undef INTERFACE +#define INTERFACE ID3D11Module + +DECLARE_INTERFACE_(ID3D11Module, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ _In_ REFIID iid, _Out_ LPVOID * ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // Create an instance of a module for resource re-binding. + STDMETHOD(CreateInstance)(THIS_ _In_opt_ LPCSTR pNamespace, + _COM_Outptr_ interface ID3D11ModuleInstance ** ppModuleInstance) PURE; +}; + + +// {59A6CD0E-E10D-4C1F-88C0-63ABA1DAF30E} +interface DECLSPEC_UUID("59A6CD0E-E10D-4C1F-88C0-63ABA1DAF30E") ID3D11Linker; +DEFINE_GUID(IID_ID3D11Linker, +0x59a6cd0e, 0xe10d, 0x4c1f, 0x88, 0xc0, 0x63, 0xab, 0xa1, 0xda, 0xf3, 0xe); + +#undef INTERFACE +#define INTERFACE ID3D11Linker + +DECLARE_INTERFACE_(ID3D11Linker, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ _In_ REFIID iid, _Out_ LPVOID * ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // Link the shader and produce a shader blob suitable to D3D runtime. + STDMETHOD(Link)(THIS_ _In_ interface ID3D11ModuleInstance * pEntry, + _In_ LPCSTR pEntryName, + _In_ LPCSTR pTargetName, + _In_ UINT uFlags, + _COM_Outptr_ ID3DBlob ** ppShaderBlob, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob ** ppErrorBuffer) PURE; + + // Add an instance of a library module to be used for linking. + STDMETHOD(UseLibrary)(THIS_ _In_ interface ID3D11ModuleInstance * pLibraryMI) PURE; + + // Add a clip plane with the plane coefficients taken from a cbuffer entry for 10L9 shaders. + STDMETHOD(AddClipPlaneFromCBuffer)(THIS_ _In_ UINT uCBufferSlot, _In_ UINT uCBufferEntry) PURE; +}; + + +// {D80DD70C-8D2F-4751-94A1-03C79B3556DB} +interface DECLSPEC_UUID("D80DD70C-8D2F-4751-94A1-03C79B3556DB") ID3D11LinkingNode; +DEFINE_GUID(IID_ID3D11LinkingNode, +0xd80dd70c, 0x8d2f, 0x4751, 0x94, 0xa1, 0x3, 0xc7, 0x9b, 0x35, 0x56, 0xdb); + +#undef INTERFACE +#define INTERFACE ID3D11LinkingNode + +DECLARE_INTERFACE_(ID3D11LinkingNode, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ _In_ REFIID iid, _Out_ LPVOID * ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; +}; + + +// {54133220-1CE8-43D3-8236-9855C5CEECFF} +interface DECLSPEC_UUID("54133220-1CE8-43D3-8236-9855C5CEECFF") ID3D11FunctionLinkingGraph; +DEFINE_GUID(IID_ID3D11FunctionLinkingGraph, +0x54133220, 0x1ce8, 0x43d3, 0x82, 0x36, 0x98, 0x55, 0xc5, 0xce, 0xec, 0xff); + +#undef INTERFACE +#define INTERFACE ID3D11FunctionLinkingGraph + +DECLARE_INTERFACE_(ID3D11FunctionLinkingGraph, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ _In_ REFIID iid, _Out_ LPVOID * ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // Create a shader module out of FLG description. + STDMETHOD(CreateModuleInstance)(THIS_ _COM_Outptr_ interface ID3D11ModuleInstance ** ppModuleInstance, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob ** ppErrorBuffer) PURE; + + STDMETHOD(SetInputSignature)(THIS_ __in_ecount(cInputParameters) const D3D11_PARAMETER_DESC * pInputParameters, + _In_ UINT cInputParameters, + _COM_Outptr_ interface ID3D11LinkingNode ** ppInputNode) PURE; + + STDMETHOD(SetOutputSignature)(THIS_ __in_ecount(cOutputParameters) const D3D11_PARAMETER_DESC * pOutputParameters, + _In_ UINT cOutputParameters, + _COM_Outptr_ interface ID3D11LinkingNode ** ppOutputNode) PURE; + + STDMETHOD(CallFunction)(THIS_ _In_opt_ LPCSTR pModuleInstanceNamespace, + _In_ interface ID3D11Module * pModuleWithFunctionPrototype, + _In_ LPCSTR pFunctionName, + _COM_Outptr_ interface ID3D11LinkingNode ** ppCallNode) PURE; + + STDMETHOD(PassValue)(THIS_ _In_ interface ID3D11LinkingNode * pSrcNode, + _In_ INT SrcParameterIndex, + _In_ interface ID3D11LinkingNode * pDstNode, + _In_ INT DstParameterIndex) PURE; + + STDMETHOD(PassValueWithSwizzle)(THIS_ _In_ interface ID3D11LinkingNode * pSrcNode, + _In_ INT SrcParameterIndex, + _In_ LPCSTR pSrcSwizzle, + _In_ interface ID3D11LinkingNode * pDstNode, + _In_ INT DstParameterIndex, + _In_ LPCSTR pDstSwizzle) PURE; + + STDMETHOD(GetLastError)(THIS_ _Always_(_Outptr_opt_result_maybenull_) ID3DBlob ** ppErrorBuffer) PURE; + + STDMETHOD(GenerateHlsl)(THIS_ _In_ UINT uFlags, // uFlags is reserved for future use. + _COM_Outptr_ ID3DBlob ** ppBuffer) PURE; +}; + + +////////////////////////////////////////////////////////////////////////////// +// APIs ////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif //__D3D11SHADER_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11shadertracing.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11shadertracing.h new file mode 100644 index 0000000000000000000000000000000000000000..cd7b6f383a2a9fecac7dec2583905f8523bf71bc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d11shadertracing.h @@ -0,0 +1,593 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d11ShaderTracing_h__ +#define __d3d11ShaderTracing_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D11ShaderTrace_FWD_DEFINED__ +#define __ID3D11ShaderTrace_FWD_DEFINED__ +typedef interface ID3D11ShaderTrace ID3D11ShaderTrace; + +#endif /* __ID3D11ShaderTrace_FWD_DEFINED__ */ + + +#ifndef __ID3D11ShaderTraceFactory_FWD_DEFINED__ +#define __ID3D11ShaderTraceFactory_FWD_DEFINED__ +typedef interface ID3D11ShaderTraceFactory ID3D11ShaderTraceFactory; + +#endif /* __ID3D11ShaderTraceFactory_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d11ShaderTracing_0000_0000 */ +/* [local] */ + +typedef +enum D3D11_SHADER_TYPE + { + D3D11_VERTEX_SHADER = 1, + D3D11_HULL_SHADER = 2, + D3D11_DOMAIN_SHADER = 3, + D3D11_GEOMETRY_SHADER = 4, + D3D11_PIXEL_SHADER = 5, + D3D11_COMPUTE_SHADER = 6 + } D3D11_SHADER_TYPE; + +#define D3D11_TRACE_COMPONENT_X 0x1 +#define D3D11_TRACE_COMPONENT_Y 0x2 +#define D3D11_TRACE_COMPONENT_Z 0x4 +#define D3D11_TRACE_COMPONENT_W 0x8 +typedef UINT8 D3D11_TRACE_COMPONENT_MASK; + +typedef struct D3D11_VERTEX_SHADER_TRACE_DESC + { + UINT64 Invocation; + } D3D11_VERTEX_SHADER_TRACE_DESC; + +typedef struct D3D11_HULL_SHADER_TRACE_DESC + { + UINT64 Invocation; + } D3D11_HULL_SHADER_TRACE_DESC; + +typedef struct D3D11_DOMAIN_SHADER_TRACE_DESC + { + UINT64 Invocation; + } D3D11_DOMAIN_SHADER_TRACE_DESC; + +typedef struct D3D11_GEOMETRY_SHADER_TRACE_DESC + { + UINT64 Invocation; + } D3D11_GEOMETRY_SHADER_TRACE_DESC; + +typedef struct D3D11_PIXEL_SHADER_TRACE_DESC + { + UINT64 Invocation; + INT X; + INT Y; + UINT64 SampleMask; + } D3D11_PIXEL_SHADER_TRACE_DESC; + +typedef struct D3D11_COMPUTE_SHADER_TRACE_DESC + { + UINT64 Invocation; + UINT ThreadIDInGroup[ 3 ]; + UINT ThreadGroupID[ 3 ]; + } D3D11_COMPUTE_SHADER_TRACE_DESC; + +#define D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_WRITES 0x1 +#define D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_READS 0x2 +typedef struct D3D11_SHADER_TRACE_DESC + { + D3D11_SHADER_TYPE Type; + UINT Flags; + union + { + D3D11_VERTEX_SHADER_TRACE_DESC VertexShaderTraceDesc; + D3D11_HULL_SHADER_TRACE_DESC HullShaderTraceDesc; + D3D11_DOMAIN_SHADER_TRACE_DESC DomainShaderTraceDesc; + D3D11_GEOMETRY_SHADER_TRACE_DESC GeometryShaderTraceDesc; + D3D11_PIXEL_SHADER_TRACE_DESC PixelShaderTraceDesc; + D3D11_COMPUTE_SHADER_TRACE_DESC ComputeShaderTraceDesc; + } ; + } D3D11_SHADER_TRACE_DESC; + +typedef +enum D3D11_TRACE_GS_INPUT_PRIMITIVE + { + D3D11_TRACE_GS_INPUT_PRIMITIVE_UNDEFINED = 0, + D3D11_TRACE_GS_INPUT_PRIMITIVE_POINT = 1, + D3D11_TRACE_GS_INPUT_PRIMITIVE_LINE = 2, + D3D11_TRACE_GS_INPUT_PRIMITIVE_TRIANGLE = 3, + D3D11_TRACE_GS_INPUT_PRIMITIVE_LINE_ADJ = 6, + D3D11_TRACE_GS_INPUT_PRIMITIVE_TRIANGLE_ADJ = 7 + } D3D11_TRACE_GS_INPUT_PRIMITIVE; + +typedef struct D3D11_TRACE_STATS + { + D3D11_SHADER_TRACE_DESC TraceDesc; + UINT8 NumInvocationsInStamp; + UINT8 TargetStampIndex; + UINT NumTraceSteps; + D3D11_TRACE_COMPONENT_MASK InputMask[ 32 ]; + D3D11_TRACE_COMPONENT_MASK OutputMask[ 32 ]; + UINT16 NumTemps; + UINT16 MaxIndexableTempIndex; + UINT16 IndexableTempSize[ 4096 ]; + UINT16 ImmediateConstantBufferSize; + UINT PixelPosition[ 4 ][ 2 ]; + UINT64 PixelCoverageMask[ 4 ]; + UINT64 PixelDiscardedMask[ 4 ]; + UINT64 PixelCoverageMaskAfterShader[ 4 ]; + UINT64 PixelCoverageMaskAfterA2CSampleMask[ 4 ]; + UINT64 PixelCoverageMaskAfterA2CSampleMaskDepth[ 4 ]; + UINT64 PixelCoverageMaskAfterA2CSampleMaskDepthStencil[ 4 ]; + BOOL PSOutputsDepth; + BOOL PSOutputsMask; + D3D11_TRACE_GS_INPUT_PRIMITIVE GSInputPrimitive; + BOOL GSInputsPrimitiveID; + D3D11_TRACE_COMPONENT_MASK HSOutputPatchConstantMask[ 32 ]; + D3D11_TRACE_COMPONENT_MASK DSInputPatchConstantMask[ 32 ]; + } D3D11_TRACE_STATS; + +typedef struct D3D11_TRACE_VALUE + { + UINT Bits[ 4 ]; + D3D11_TRACE_COMPONENT_MASK ValidMask; + } D3D11_TRACE_VALUE; + +typedef +enum D3D11_TRACE_REGISTER_TYPE + { + D3D11_TRACE_OUTPUT_NULL_REGISTER = 0, + D3D11_TRACE_INPUT_REGISTER = ( D3D11_TRACE_OUTPUT_NULL_REGISTER + 1 ) , + D3D11_TRACE_INPUT_PRIMITIVE_ID_REGISTER = ( D3D11_TRACE_INPUT_REGISTER + 1 ) , + D3D11_TRACE_IMMEDIATE_CONSTANT_BUFFER = ( D3D11_TRACE_INPUT_PRIMITIVE_ID_REGISTER + 1 ) , + D3D11_TRACE_TEMP_REGISTER = ( D3D11_TRACE_IMMEDIATE_CONSTANT_BUFFER + 1 ) , + D3D11_TRACE_INDEXABLE_TEMP_REGISTER = ( D3D11_TRACE_TEMP_REGISTER + 1 ) , + D3D11_TRACE_OUTPUT_REGISTER = ( D3D11_TRACE_INDEXABLE_TEMP_REGISTER + 1 ) , + D3D11_TRACE_OUTPUT_DEPTH_REGISTER = ( D3D11_TRACE_OUTPUT_REGISTER + 1 ) , + D3D11_TRACE_CONSTANT_BUFFER = ( D3D11_TRACE_OUTPUT_DEPTH_REGISTER + 1 ) , + D3D11_TRACE_IMMEDIATE32 = ( D3D11_TRACE_CONSTANT_BUFFER + 1 ) , + D3D11_TRACE_SAMPLER = ( D3D11_TRACE_IMMEDIATE32 + 1 ) , + D3D11_TRACE_RESOURCE = ( D3D11_TRACE_SAMPLER + 1 ) , + D3D11_TRACE_RASTERIZER = ( D3D11_TRACE_RESOURCE + 1 ) , + D3D11_TRACE_OUTPUT_COVERAGE_MASK = ( D3D11_TRACE_RASTERIZER + 1 ) , + D3D11_TRACE_STREAM = ( D3D11_TRACE_OUTPUT_COVERAGE_MASK + 1 ) , + D3D11_TRACE_THIS_POINTER = ( D3D11_TRACE_STREAM + 1 ) , + D3D11_TRACE_OUTPUT_CONTROL_POINT_ID_REGISTER = ( D3D11_TRACE_THIS_POINTER + 1 ) , + D3D11_TRACE_INPUT_FORK_INSTANCE_ID_REGISTER = ( D3D11_TRACE_OUTPUT_CONTROL_POINT_ID_REGISTER + 1 ) , + D3D11_TRACE_INPUT_JOIN_INSTANCE_ID_REGISTER = ( D3D11_TRACE_INPUT_FORK_INSTANCE_ID_REGISTER + 1 ) , + D3D11_TRACE_INPUT_CONTROL_POINT_REGISTER = ( D3D11_TRACE_INPUT_JOIN_INSTANCE_ID_REGISTER + 1 ) , + D3D11_TRACE_OUTPUT_CONTROL_POINT_REGISTER = ( D3D11_TRACE_INPUT_CONTROL_POINT_REGISTER + 1 ) , + D3D11_TRACE_INPUT_PATCH_CONSTANT_REGISTER = ( D3D11_TRACE_OUTPUT_CONTROL_POINT_REGISTER + 1 ) , + D3D11_TRACE_INPUT_DOMAIN_POINT_REGISTER = ( D3D11_TRACE_INPUT_PATCH_CONSTANT_REGISTER + 1 ) , + D3D11_TRACE_UNORDERED_ACCESS_VIEW = ( D3D11_TRACE_INPUT_DOMAIN_POINT_REGISTER + 1 ) , + D3D11_TRACE_THREAD_GROUP_SHARED_MEMORY = ( D3D11_TRACE_UNORDERED_ACCESS_VIEW + 1 ) , + D3D11_TRACE_INPUT_THREAD_ID_REGISTER = ( D3D11_TRACE_THREAD_GROUP_SHARED_MEMORY + 1 ) , + D3D11_TRACE_INPUT_THREAD_GROUP_ID_REGISTER = ( D3D11_TRACE_INPUT_THREAD_ID_REGISTER + 1 ) , + D3D11_TRACE_INPUT_THREAD_ID_IN_GROUP_REGISTER = ( D3D11_TRACE_INPUT_THREAD_GROUP_ID_REGISTER + 1 ) , + D3D11_TRACE_INPUT_COVERAGE_MASK_REGISTER = ( D3D11_TRACE_INPUT_THREAD_ID_IN_GROUP_REGISTER + 1 ) , + D3D11_TRACE_INPUT_THREAD_ID_IN_GROUP_FLATTENED_REGISTER = ( D3D11_TRACE_INPUT_COVERAGE_MASK_REGISTER + 1 ) , + D3D11_TRACE_INPUT_GS_INSTANCE_ID_REGISTER = ( D3D11_TRACE_INPUT_THREAD_ID_IN_GROUP_FLATTENED_REGISTER + 1 ) , + D3D11_TRACE_OUTPUT_DEPTH_GREATER_EQUAL_REGISTER = ( D3D11_TRACE_INPUT_GS_INSTANCE_ID_REGISTER + 1 ) , + D3D11_TRACE_OUTPUT_DEPTH_LESS_EQUAL_REGISTER = ( D3D11_TRACE_OUTPUT_DEPTH_GREATER_EQUAL_REGISTER + 1 ) , + D3D11_TRACE_IMMEDIATE64 = ( D3D11_TRACE_OUTPUT_DEPTH_LESS_EQUAL_REGISTER + 1 ) , + D3D11_TRACE_INPUT_CYCLE_COUNTER_REGISTER = ( D3D11_TRACE_IMMEDIATE64 + 1 ) , + D3D11_TRACE_INTERFACE_POINTER = ( D3D11_TRACE_INPUT_CYCLE_COUNTER_REGISTER + 1 ) + } D3D11_TRACE_REGISTER_TYPE; + +#define D3D11_TRACE_REGISTER_FLAGS_RELATIVE_INDEXING 0x1 +typedef struct D3D11_TRACE_REGISTER + { + D3D11_TRACE_REGISTER_TYPE RegType; + union + { + UINT16 Index1D; + UINT16 Index2D[ 2 ]; + } ; + UINT8 OperandIndex; + UINT8 Flags; + } D3D11_TRACE_REGISTER; + +#define D3D11_TRACE_MISC_GS_EMIT 0x1 +#define D3D11_TRACE_MISC_GS_CUT 0x2 +#define D3D11_TRACE_MISC_PS_DISCARD 0x4 +#define D3D11_TRACE_MISC_GS_EMIT_STREAM 0x8 +#define D3D11_TRACE_MISC_GS_CUT_STREAM 0x10 +#define D3D11_TRACE_MISC_HALT 0x20 +#define D3D11_TRACE_MISC_MESSAGE 0x40 +typedef UINT16 D3D11_TRACE_MISC_OPERATIONS_MASK; + +typedef struct D3D11_TRACE_STEP + { + UINT ID; + BOOL InstructionActive; + UINT8 NumRegistersWritten; + UINT8 NumRegistersRead; + D3D11_TRACE_MISC_OPERATIONS_MASK MiscOperations; + UINT OpcodeType; + UINT64 CurrentGlobalCycle; + } D3D11_TRACE_STEP; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11ShaderTracing_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11ShaderTracing_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D11ShaderTrace_INTERFACE_DEFINED__ +#define __ID3D11ShaderTrace_INTERFACE_DEFINED__ + +/* interface ID3D11ShaderTrace */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11ShaderTrace; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("36b013e6-2811-4845-baa7-d623fe0df104") + ID3D11ShaderTrace : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE TraceReady( + /* [annotation] */ + _Out_opt_ UINT64 *pTestCount) = 0; + + virtual void STDMETHODCALLTYPE ResetTrace( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTraceStats( + /* [annotation] */ + _Out_ D3D11_TRACE_STATS *pTraceStats) = 0; + + virtual HRESULT STDMETHODCALLTYPE PSSelectStamp( + /* [annotation] */ + _In_ UINT stampIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInitialRegisterContents( + /* [annotation] */ + _In_ D3D11_TRACE_REGISTER *pRegister, + /* [annotation] */ + _Out_ D3D11_TRACE_VALUE *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStep( + /* [annotation] */ + _In_ UINT stepIndex, + /* [annotation] */ + _Out_ D3D11_TRACE_STEP *pTraceStep) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetWrittenRegister( + /* [annotation] */ + _In_ UINT stepIndex, + /* [annotation] */ + _In_ UINT writtenRegisterIndex, + /* [annotation] */ + _Out_ D3D11_TRACE_REGISTER *pRegister, + /* [annotation] */ + _Out_ D3D11_TRACE_VALUE *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReadRegister( + /* [annotation] */ + _In_ UINT stepIndex, + /* [annotation] */ + _In_ UINT readRegisterIndex, + /* [annotation] */ + _Out_ D3D11_TRACE_REGISTER *pRegister, + /* [annotation] */ + _Out_ D3D11_TRACE_VALUE *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11ShaderTraceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11ShaderTrace * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11ShaderTrace * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11ShaderTrace * This); + + DECLSPEC_XFGVIRT(ID3D11ShaderTrace, TraceReady) + HRESULT ( STDMETHODCALLTYPE *TraceReady )( + ID3D11ShaderTrace * This, + /* [annotation] */ + _Out_opt_ UINT64 *pTestCount); + + DECLSPEC_XFGVIRT(ID3D11ShaderTrace, ResetTrace) + void ( STDMETHODCALLTYPE *ResetTrace )( + ID3D11ShaderTrace * This); + + DECLSPEC_XFGVIRT(ID3D11ShaderTrace, GetTraceStats) + HRESULT ( STDMETHODCALLTYPE *GetTraceStats )( + ID3D11ShaderTrace * This, + /* [annotation] */ + _Out_ D3D11_TRACE_STATS *pTraceStats); + + DECLSPEC_XFGVIRT(ID3D11ShaderTrace, PSSelectStamp) + HRESULT ( STDMETHODCALLTYPE *PSSelectStamp )( + ID3D11ShaderTrace * This, + /* [annotation] */ + _In_ UINT stampIndex); + + DECLSPEC_XFGVIRT(ID3D11ShaderTrace, GetInitialRegisterContents) + HRESULT ( STDMETHODCALLTYPE *GetInitialRegisterContents )( + ID3D11ShaderTrace * This, + /* [annotation] */ + _In_ D3D11_TRACE_REGISTER *pRegister, + /* [annotation] */ + _Out_ D3D11_TRACE_VALUE *pValue); + + DECLSPEC_XFGVIRT(ID3D11ShaderTrace, GetStep) + HRESULT ( STDMETHODCALLTYPE *GetStep )( + ID3D11ShaderTrace * This, + /* [annotation] */ + _In_ UINT stepIndex, + /* [annotation] */ + _Out_ D3D11_TRACE_STEP *pTraceStep); + + DECLSPEC_XFGVIRT(ID3D11ShaderTrace, GetWrittenRegister) + HRESULT ( STDMETHODCALLTYPE *GetWrittenRegister )( + ID3D11ShaderTrace * This, + /* [annotation] */ + _In_ UINT stepIndex, + /* [annotation] */ + _In_ UINT writtenRegisterIndex, + /* [annotation] */ + _Out_ D3D11_TRACE_REGISTER *pRegister, + /* [annotation] */ + _Out_ D3D11_TRACE_VALUE *pValue); + + DECLSPEC_XFGVIRT(ID3D11ShaderTrace, GetReadRegister) + HRESULT ( STDMETHODCALLTYPE *GetReadRegister )( + ID3D11ShaderTrace * This, + /* [annotation] */ + _In_ UINT stepIndex, + /* [annotation] */ + _In_ UINT readRegisterIndex, + /* [annotation] */ + _Out_ D3D11_TRACE_REGISTER *pRegister, + /* [annotation] */ + _Out_ D3D11_TRACE_VALUE *pValue); + + END_INTERFACE + } ID3D11ShaderTraceVtbl; + + interface ID3D11ShaderTrace + { + CONST_VTBL struct ID3D11ShaderTraceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11ShaderTrace_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11ShaderTrace_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11ShaderTrace_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11ShaderTrace_TraceReady(This,pTestCount) \ + ( (This)->lpVtbl -> TraceReady(This,pTestCount) ) + +#define ID3D11ShaderTrace_ResetTrace(This) \ + ( (This)->lpVtbl -> ResetTrace(This) ) + +#define ID3D11ShaderTrace_GetTraceStats(This,pTraceStats) \ + ( (This)->lpVtbl -> GetTraceStats(This,pTraceStats) ) + +#define ID3D11ShaderTrace_PSSelectStamp(This,stampIndex) \ + ( (This)->lpVtbl -> PSSelectStamp(This,stampIndex) ) + +#define ID3D11ShaderTrace_GetInitialRegisterContents(This,pRegister,pValue) \ + ( (This)->lpVtbl -> GetInitialRegisterContents(This,pRegister,pValue) ) + +#define ID3D11ShaderTrace_GetStep(This,stepIndex,pTraceStep) \ + ( (This)->lpVtbl -> GetStep(This,stepIndex,pTraceStep) ) + +#define ID3D11ShaderTrace_GetWrittenRegister(This,stepIndex,writtenRegisterIndex,pRegister,pValue) \ + ( (This)->lpVtbl -> GetWrittenRegister(This,stepIndex,writtenRegisterIndex,pRegister,pValue) ) + +#define ID3D11ShaderTrace_GetReadRegister(This,stepIndex,readRegisterIndex,pRegister,pValue) \ + ( (This)->lpVtbl -> GetReadRegister(This,stepIndex,readRegisterIndex,pRegister,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11ShaderTrace_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D11ShaderTraceFactory_INTERFACE_DEFINED__ +#define __ID3D11ShaderTraceFactory_INTERFACE_DEFINED__ + +/* interface ID3D11ShaderTraceFactory */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D11ShaderTraceFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1fbad429-66ab-41cc-9617-667ac10e4459") + ID3D11ShaderTraceFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateShaderTrace( + /* [annotation] */ + _In_ IUnknown *pShader, + /* [annotation] */ + _In_ D3D11_SHADER_TRACE_DESC *pTraceDesc, + /* [annotation] */ + _COM_Outptr_ ID3D11ShaderTrace **ppShaderTrace) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D11ShaderTraceFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D11ShaderTraceFactory * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D11ShaderTraceFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D11ShaderTraceFactory * This); + + DECLSPEC_XFGVIRT(ID3D11ShaderTraceFactory, CreateShaderTrace) + HRESULT ( STDMETHODCALLTYPE *CreateShaderTrace )( + ID3D11ShaderTraceFactory * This, + /* [annotation] */ + _In_ IUnknown *pShader, + /* [annotation] */ + _In_ D3D11_SHADER_TRACE_DESC *pTraceDesc, + /* [annotation] */ + _COM_Outptr_ ID3D11ShaderTrace **ppShaderTrace); + + END_INTERFACE + } ID3D11ShaderTraceFactoryVtbl; + + interface ID3D11ShaderTraceFactory + { + CONST_VTBL struct ID3D11ShaderTraceFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D11ShaderTraceFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D11ShaderTraceFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D11ShaderTraceFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D11ShaderTraceFactory_CreateShaderTrace(This,pShader,pTraceDesc,ppShaderTrace) \ + ( (This)->lpVtbl -> CreateShaderTrace(This,pShader,pTraceDesc,ppShaderTrace) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D11ShaderTraceFactory_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d11ShaderTracing_0000_0002 */ +/* [local] */ + +HRESULT WINAPI +D3DDisassemble11Trace(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_ ID3D11ShaderTrace* pTrace, + _In_ UINT StartStep, + _In_ UINT NumSteps, + _In_ UINT Flags, + _COM_Outptr_ interface ID3D10Blob** ppDisassembly); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d11ShaderTracing_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d11ShaderTracing_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12.h new file mode 100644 index 0000000000000000000000000000000000000000..fa881e9dcee6a3cae95e288ffdb387e20b7620ad --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12.h @@ -0,0 +1,35787 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d12_h__ +#define __d3d12_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D12Object_FWD_DEFINED__ +#define __ID3D12Object_FWD_DEFINED__ +typedef interface ID3D12Object ID3D12Object; + +#endif /* __ID3D12Object_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceChild_FWD_DEFINED__ +#define __ID3D12DeviceChild_FWD_DEFINED__ +typedef interface ID3D12DeviceChild ID3D12DeviceChild; + +#endif /* __ID3D12DeviceChild_FWD_DEFINED__ */ + + +#ifndef __ID3D12RootSignature_FWD_DEFINED__ +#define __ID3D12RootSignature_FWD_DEFINED__ +typedef interface ID3D12RootSignature ID3D12RootSignature; + +#endif /* __ID3D12RootSignature_FWD_DEFINED__ */ + + +#ifndef __ID3D12RootSignatureDeserializer_FWD_DEFINED__ +#define __ID3D12RootSignatureDeserializer_FWD_DEFINED__ +typedef interface ID3D12RootSignatureDeserializer ID3D12RootSignatureDeserializer; + +#endif /* __ID3D12RootSignatureDeserializer_FWD_DEFINED__ */ + + +#ifndef __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__ +#define __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__ +typedef interface ID3D12VersionedRootSignatureDeserializer ID3D12VersionedRootSignatureDeserializer; + +#endif /* __ID3D12VersionedRootSignatureDeserializer_FWD_DEFINED__ */ + + +#ifndef __ID3D12Pageable_FWD_DEFINED__ +#define __ID3D12Pageable_FWD_DEFINED__ +typedef interface ID3D12Pageable ID3D12Pageable; + +#endif /* __ID3D12Pageable_FWD_DEFINED__ */ + + +#ifndef __ID3D12Heap_FWD_DEFINED__ +#define __ID3D12Heap_FWD_DEFINED__ +typedef interface ID3D12Heap ID3D12Heap; + +#endif /* __ID3D12Heap_FWD_DEFINED__ */ + + +#ifndef __ID3D12Resource_FWD_DEFINED__ +#define __ID3D12Resource_FWD_DEFINED__ +typedef interface ID3D12Resource ID3D12Resource; + +#endif /* __ID3D12Resource_FWD_DEFINED__ */ + + +#ifndef __ID3D12CommandAllocator_FWD_DEFINED__ +#define __ID3D12CommandAllocator_FWD_DEFINED__ +typedef interface ID3D12CommandAllocator ID3D12CommandAllocator; + +#endif /* __ID3D12CommandAllocator_FWD_DEFINED__ */ + + +#ifndef __ID3D12Fence_FWD_DEFINED__ +#define __ID3D12Fence_FWD_DEFINED__ +typedef interface ID3D12Fence ID3D12Fence; + +#endif /* __ID3D12Fence_FWD_DEFINED__ */ + + +#ifndef __ID3D12Fence1_FWD_DEFINED__ +#define __ID3D12Fence1_FWD_DEFINED__ +typedef interface ID3D12Fence1 ID3D12Fence1; + +#endif /* __ID3D12Fence1_FWD_DEFINED__ */ + + +#ifndef __ID3D12PipelineState_FWD_DEFINED__ +#define __ID3D12PipelineState_FWD_DEFINED__ +typedef interface ID3D12PipelineState ID3D12PipelineState; + +#endif /* __ID3D12PipelineState_FWD_DEFINED__ */ + + +#ifndef __ID3D12DescriptorHeap_FWD_DEFINED__ +#define __ID3D12DescriptorHeap_FWD_DEFINED__ +typedef interface ID3D12DescriptorHeap ID3D12DescriptorHeap; + +#endif /* __ID3D12DescriptorHeap_FWD_DEFINED__ */ + + +#ifndef __ID3D12QueryHeap_FWD_DEFINED__ +#define __ID3D12QueryHeap_FWD_DEFINED__ +typedef interface ID3D12QueryHeap ID3D12QueryHeap; + +#endif /* __ID3D12QueryHeap_FWD_DEFINED__ */ + + +#ifndef __ID3D12CommandSignature_FWD_DEFINED__ +#define __ID3D12CommandSignature_FWD_DEFINED__ +typedef interface ID3D12CommandSignature ID3D12CommandSignature; + +#endif /* __ID3D12CommandSignature_FWD_DEFINED__ */ + + +#ifndef __ID3D12CommandList_FWD_DEFINED__ +#define __ID3D12CommandList_FWD_DEFINED__ +typedef interface ID3D12CommandList ID3D12CommandList; + +#endif /* __ID3D12CommandList_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList ID3D12GraphicsCommandList; + +#endif /* __ID3D12GraphicsCommandList_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList1_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList1_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList1 ID3D12GraphicsCommandList1; + +#endif /* __ID3D12GraphicsCommandList1_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList2_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList2_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList2 ID3D12GraphicsCommandList2; + +#endif /* __ID3D12GraphicsCommandList2_FWD_DEFINED__ */ + + +#ifndef __ID3D12CommandQueue_FWD_DEFINED__ +#define __ID3D12CommandQueue_FWD_DEFINED__ +typedef interface ID3D12CommandQueue ID3D12CommandQueue; + +#endif /* __ID3D12CommandQueue_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device_FWD_DEFINED__ +#define __ID3D12Device_FWD_DEFINED__ +typedef interface ID3D12Device ID3D12Device; + +#endif /* __ID3D12Device_FWD_DEFINED__ */ + + +#ifndef __ID3D12PipelineLibrary_FWD_DEFINED__ +#define __ID3D12PipelineLibrary_FWD_DEFINED__ +typedef interface ID3D12PipelineLibrary ID3D12PipelineLibrary; + +#endif /* __ID3D12PipelineLibrary_FWD_DEFINED__ */ + + +#ifndef __ID3D12PipelineLibrary1_FWD_DEFINED__ +#define __ID3D12PipelineLibrary1_FWD_DEFINED__ +typedef interface ID3D12PipelineLibrary1 ID3D12PipelineLibrary1; + +#endif /* __ID3D12PipelineLibrary1_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device1_FWD_DEFINED__ +#define __ID3D12Device1_FWD_DEFINED__ +typedef interface ID3D12Device1 ID3D12Device1; + +#endif /* __ID3D12Device1_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device2_FWD_DEFINED__ +#define __ID3D12Device2_FWD_DEFINED__ +typedef interface ID3D12Device2 ID3D12Device2; + +#endif /* __ID3D12Device2_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device3_FWD_DEFINED__ +#define __ID3D12Device3_FWD_DEFINED__ +typedef interface ID3D12Device3 ID3D12Device3; + +#endif /* __ID3D12Device3_FWD_DEFINED__ */ + + +#ifndef __ID3D12ProtectedSession_FWD_DEFINED__ +#define __ID3D12ProtectedSession_FWD_DEFINED__ +typedef interface ID3D12ProtectedSession ID3D12ProtectedSession; + +#endif /* __ID3D12ProtectedSession_FWD_DEFINED__ */ + + +#ifndef __ID3D12ProtectedResourceSession_FWD_DEFINED__ +#define __ID3D12ProtectedResourceSession_FWD_DEFINED__ +typedef interface ID3D12ProtectedResourceSession ID3D12ProtectedResourceSession; + +#endif /* __ID3D12ProtectedResourceSession_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device4_FWD_DEFINED__ +#define __ID3D12Device4_FWD_DEFINED__ +typedef interface ID3D12Device4 ID3D12Device4; + +#endif /* __ID3D12Device4_FWD_DEFINED__ */ + + +#ifndef __ID3D12LifetimeOwner_FWD_DEFINED__ +#define __ID3D12LifetimeOwner_FWD_DEFINED__ +typedef interface ID3D12LifetimeOwner ID3D12LifetimeOwner; + +#endif /* __ID3D12LifetimeOwner_FWD_DEFINED__ */ + + +#ifndef __ID3D12SwapChainAssistant_FWD_DEFINED__ +#define __ID3D12SwapChainAssistant_FWD_DEFINED__ +typedef interface ID3D12SwapChainAssistant ID3D12SwapChainAssistant; + +#endif /* __ID3D12SwapChainAssistant_FWD_DEFINED__ */ + + +#ifndef __ID3D12LifetimeTracker_FWD_DEFINED__ +#define __ID3D12LifetimeTracker_FWD_DEFINED__ +typedef interface ID3D12LifetimeTracker ID3D12LifetimeTracker; + +#endif /* __ID3D12LifetimeTracker_FWD_DEFINED__ */ + + +#ifndef __ID3D12StateObject_FWD_DEFINED__ +#define __ID3D12StateObject_FWD_DEFINED__ +typedef interface ID3D12StateObject ID3D12StateObject; + +#endif /* __ID3D12StateObject_FWD_DEFINED__ */ + + +#ifndef __ID3D12StateObjectProperties_FWD_DEFINED__ +#define __ID3D12StateObjectProperties_FWD_DEFINED__ +typedef interface ID3D12StateObjectProperties ID3D12StateObjectProperties; + +#endif /* __ID3D12StateObjectProperties_FWD_DEFINED__ */ + + +#ifndef __ID3D12StateObjectProperties1_FWD_DEFINED__ +#define __ID3D12StateObjectProperties1_FWD_DEFINED__ +typedef interface ID3D12StateObjectProperties1 ID3D12StateObjectProperties1; + +#endif /* __ID3D12StateObjectProperties1_FWD_DEFINED__ */ + + +#ifndef __ID3D12WorkGraphProperties_FWD_DEFINED__ +#define __ID3D12WorkGraphProperties_FWD_DEFINED__ +typedef interface ID3D12WorkGraphProperties ID3D12WorkGraphProperties; + +#endif /* __ID3D12WorkGraphProperties_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device5_FWD_DEFINED__ +#define __ID3D12Device5_FWD_DEFINED__ +typedef interface ID3D12Device5 ID3D12Device5; + +#endif /* __ID3D12Device5_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__ +#define __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__ +typedef interface ID3D12DeviceRemovedExtendedDataSettings ID3D12DeviceRemovedExtendedDataSettings; + +#endif /* __ID3D12DeviceRemovedExtendedDataSettings_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__ +#define __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__ +typedef interface ID3D12DeviceRemovedExtendedDataSettings1 ID3D12DeviceRemovedExtendedDataSettings1; + +#endif /* __ID3D12DeviceRemovedExtendedDataSettings1_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__ +#define __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__ +typedef interface ID3D12DeviceRemovedExtendedDataSettings2 ID3D12DeviceRemovedExtendedDataSettings2; + +#endif /* __ID3D12DeviceRemovedExtendedDataSettings2_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__ +#define __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__ +typedef interface ID3D12DeviceRemovedExtendedData ID3D12DeviceRemovedExtendedData; + +#endif /* __ID3D12DeviceRemovedExtendedData_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__ +#define __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__ +typedef interface ID3D12DeviceRemovedExtendedData1 ID3D12DeviceRemovedExtendedData1; + +#endif /* __ID3D12DeviceRemovedExtendedData1_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__ +#define __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__ +typedef interface ID3D12DeviceRemovedExtendedData2 ID3D12DeviceRemovedExtendedData2; + +#endif /* __ID3D12DeviceRemovedExtendedData2_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device6_FWD_DEFINED__ +#define __ID3D12Device6_FWD_DEFINED__ +typedef interface ID3D12Device6 ID3D12Device6; + +#endif /* __ID3D12Device6_FWD_DEFINED__ */ + + +#ifndef __ID3D12ProtectedResourceSession1_FWD_DEFINED__ +#define __ID3D12ProtectedResourceSession1_FWD_DEFINED__ +typedef interface ID3D12ProtectedResourceSession1 ID3D12ProtectedResourceSession1; + +#endif /* __ID3D12ProtectedResourceSession1_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device7_FWD_DEFINED__ +#define __ID3D12Device7_FWD_DEFINED__ +typedef interface ID3D12Device7 ID3D12Device7; + +#endif /* __ID3D12Device7_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device8_FWD_DEFINED__ +#define __ID3D12Device8_FWD_DEFINED__ +typedef interface ID3D12Device8 ID3D12Device8; + +#endif /* __ID3D12Device8_FWD_DEFINED__ */ + + +#ifndef __ID3D12Resource1_FWD_DEFINED__ +#define __ID3D12Resource1_FWD_DEFINED__ +typedef interface ID3D12Resource1 ID3D12Resource1; + +#endif /* __ID3D12Resource1_FWD_DEFINED__ */ + + +#ifndef __ID3D12Resource2_FWD_DEFINED__ +#define __ID3D12Resource2_FWD_DEFINED__ +typedef interface ID3D12Resource2 ID3D12Resource2; + +#endif /* __ID3D12Resource2_FWD_DEFINED__ */ + + +#ifndef __ID3D12Heap1_FWD_DEFINED__ +#define __ID3D12Heap1_FWD_DEFINED__ +typedef interface ID3D12Heap1 ID3D12Heap1; + +#endif /* __ID3D12Heap1_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList3_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList3_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList3 ID3D12GraphicsCommandList3; + +#endif /* __ID3D12GraphicsCommandList3_FWD_DEFINED__ */ + + +#ifndef __ID3D12MetaCommand_FWD_DEFINED__ +#define __ID3D12MetaCommand_FWD_DEFINED__ +typedef interface ID3D12MetaCommand ID3D12MetaCommand; + +#endif /* __ID3D12MetaCommand_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList4_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList4_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList4 ID3D12GraphicsCommandList4; + +#endif /* __ID3D12GraphicsCommandList4_FWD_DEFINED__ */ + + +#ifndef __ID3D12ShaderCacheSession_FWD_DEFINED__ +#define __ID3D12ShaderCacheSession_FWD_DEFINED__ +typedef interface ID3D12ShaderCacheSession ID3D12ShaderCacheSession; + +#endif /* __ID3D12ShaderCacheSession_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device9_FWD_DEFINED__ +#define __ID3D12Device9_FWD_DEFINED__ +typedef interface ID3D12Device9 ID3D12Device9; + +#endif /* __ID3D12Device9_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device10_FWD_DEFINED__ +#define __ID3D12Device10_FWD_DEFINED__ +typedef interface ID3D12Device10 ID3D12Device10; + +#endif /* __ID3D12Device10_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device11_FWD_DEFINED__ +#define __ID3D12Device11_FWD_DEFINED__ +typedef interface ID3D12Device11 ID3D12Device11; + +#endif /* __ID3D12Device11_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device12_FWD_DEFINED__ +#define __ID3D12Device12_FWD_DEFINED__ +typedef interface ID3D12Device12 ID3D12Device12; + +#endif /* __ID3D12Device12_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device13_FWD_DEFINED__ +#define __ID3D12Device13_FWD_DEFINED__ +typedef interface ID3D12Device13 ID3D12Device13; + +#endif /* __ID3D12Device13_FWD_DEFINED__ */ + + +#ifndef __ID3D12Device14_FWD_DEFINED__ +#define __ID3D12Device14_FWD_DEFINED__ +typedef interface ID3D12Device14 ID3D12Device14; + +#endif /* __ID3D12Device14_FWD_DEFINED__ */ + + +#ifndef __ID3D12VirtualizationGuestDevice_FWD_DEFINED__ +#define __ID3D12VirtualizationGuestDevice_FWD_DEFINED__ +typedef interface ID3D12VirtualizationGuestDevice ID3D12VirtualizationGuestDevice; + +#endif /* __ID3D12VirtualizationGuestDevice_FWD_DEFINED__ */ + + +#ifndef __ID3D12Tools_FWD_DEFINED__ +#define __ID3D12Tools_FWD_DEFINED__ +typedef interface ID3D12Tools ID3D12Tools; + +#endif /* __ID3D12Tools_FWD_DEFINED__ */ + + +#ifndef __ID3D12Tools1_FWD_DEFINED__ +#define __ID3D12Tools1_FWD_DEFINED__ +typedef interface ID3D12Tools1 ID3D12Tools1; + +#endif /* __ID3D12Tools1_FWD_DEFINED__ */ + + +#ifndef __ID3D12Tools2_FWD_DEFINED__ +#define __ID3D12Tools2_FWD_DEFINED__ +typedef interface ID3D12Tools2 ID3D12Tools2; + +#endif /* __ID3D12Tools2_FWD_DEFINED__ */ + + +#ifndef __ID3D12PageableTools_FWD_DEFINED__ +#define __ID3D12PageableTools_FWD_DEFINED__ +typedef interface ID3D12PageableTools ID3D12PageableTools; + +#endif /* __ID3D12PageableTools_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceTools_FWD_DEFINED__ +#define __ID3D12DeviceTools_FWD_DEFINED__ +typedef interface ID3D12DeviceTools ID3D12DeviceTools; + +#endif /* __ID3D12DeviceTools_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceTools1_FWD_DEFINED__ +#define __ID3D12DeviceTools1_FWD_DEFINED__ +typedef interface ID3D12DeviceTools1 ID3D12DeviceTools1; + +#endif /* __ID3D12DeviceTools1_FWD_DEFINED__ */ + + +#ifndef __ID3D12SDKConfiguration_FWD_DEFINED__ +#define __ID3D12SDKConfiguration_FWD_DEFINED__ +typedef interface ID3D12SDKConfiguration ID3D12SDKConfiguration; + +#endif /* __ID3D12SDKConfiguration_FWD_DEFINED__ */ + + +#ifndef __ID3D12SDKConfiguration1_FWD_DEFINED__ +#define __ID3D12SDKConfiguration1_FWD_DEFINED__ +typedef interface ID3D12SDKConfiguration1 ID3D12SDKConfiguration1; + +#endif /* __ID3D12SDKConfiguration1_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceFactory_FWD_DEFINED__ +#define __ID3D12DeviceFactory_FWD_DEFINED__ +typedef interface ID3D12DeviceFactory ID3D12DeviceFactory; + +#endif /* __ID3D12DeviceFactory_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceConfiguration_FWD_DEFINED__ +#define __ID3D12DeviceConfiguration_FWD_DEFINED__ +typedef interface ID3D12DeviceConfiguration ID3D12DeviceConfiguration; + +#endif /* __ID3D12DeviceConfiguration_FWD_DEFINED__ */ + + +#ifndef __ID3D12DeviceConfiguration1_FWD_DEFINED__ +#define __ID3D12DeviceConfiguration1_FWD_DEFINED__ +typedef interface ID3D12DeviceConfiguration1 ID3D12DeviceConfiguration1; + +#endif /* __ID3D12DeviceConfiguration1_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList5_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList5_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList5 ID3D12GraphicsCommandList5; + +#endif /* __ID3D12GraphicsCommandList5_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList6_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList6_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList6 ID3D12GraphicsCommandList6; + +#endif /* __ID3D12GraphicsCommandList6_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList7_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList7_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList7 ID3D12GraphicsCommandList7; + +#endif /* __ID3D12GraphicsCommandList7_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList8_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList8_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList8 ID3D12GraphicsCommandList8; + +#endif /* __ID3D12GraphicsCommandList8_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList9_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList9_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList9 ID3D12GraphicsCommandList9; + +#endif /* __ID3D12GraphicsCommandList9_FWD_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList10_FWD_DEFINED__ +#define __ID3D12GraphicsCommandList10_FWD_DEFINED__ +typedef interface ID3D12GraphicsCommandList10 ID3D12GraphicsCommandList10; + +#endif /* __ID3D12GraphicsCommandList10_FWD_DEFINED__ */ + + +#ifndef __ID3D12DSRDeviceFactory_FWD_DEFINED__ +#define __ID3D12DSRDeviceFactory_FWD_DEFINED__ +typedef interface ID3D12DSRDeviceFactory ID3D12DSRDeviceFactory; + +#endif /* __ID3D12DSRDeviceFactory_FWD_DEFINED__ */ + + +#ifndef __ID3D12GBVDiagnostics_FWD_DEFINED__ +#define __ID3D12GBVDiagnostics_FWD_DEFINED__ +typedef interface ID3D12GBVDiagnostics ID3D12GBVDiagnostics; + +#endif /* __ID3D12GBVDiagnostics_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "dxgicommon.h" +#include "dxgiformat.h" +#include "d3dcommon.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d12_0000_0000 */ +/* [local] */ + +#include +#pragma region App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) +#ifndef _D3D12_CONSTANTS +#define _D3D12_CONSTANTS +#define D3D12_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff ) + +#define D3D12_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff ) + +#define D3D12_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff ) + +#define D3D12_APPEND_ALIGNED_ELEMENT ( 0xffffffff ) + +#define D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 ) + +#define D3D12_CLIP_OR_CULL_DISTANCE_COUNT ( 8 ) + +#define D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 ) + +#define D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 ) + +#define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 ) + +#define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 ) + +#define D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 ) + +#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 ) + +#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 ) + +#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 ) + +#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 ) + +#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 ) + +#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 ) + +#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 ) + +#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 ) + +#define D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 ) + +#define D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 ) + +#define D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 ) + +#define D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 ) + +#define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 ) + +#define D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 ) + +#define D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 ) + +#define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 ) + +#define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 ) + +#define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 ) + +#define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 ) + +#define D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT ( 256 ) + +#define D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 ) + +#define D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 ) + +#define D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 ) + +#define D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 ) + +#define D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 ) + +#define D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 ) + +#define D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 ) + +#define D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 ) + +#define D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 ) + +#define D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 ) + +#define D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 ) + +#define D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 ) + +#define D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 ) + +#define D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 ) + +#define D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 ) + +#define D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 ) + +#define D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 ) + +#define D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 ) + +#define D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 ) + +#define D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 ) + +#define D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 ) + +#define D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 ) + +#define D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 ) + +#define D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 ) + +#define D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 ) + +#define D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 ) + +#define D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 ) + +#define D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 ) + +#define D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 ) + +#define D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 ) + +#define D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 ) + +#define D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 ) + +#define D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 ) + +#define D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 ) + +#define D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 ) + +#define D3D12_CS_4_X_THREAD_GROUP_MAX_X ( 768 ) + +#define D3D12_CS_4_X_THREAD_GROUP_MAX_Y ( 768 ) + +#define D3D12_CS_4_X_UAV_REGISTER_COUNT ( 1 ) + +#define D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 ) + +#define D3D12_CS_TGSM_REGISTER_COUNT ( 8192 ) + +#define D3D12_CS_TGSM_REGISTER_READS_PER_INST ( 1 ) + +#define D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 ) + +#define D3D12_CS_THREADGROUPID_REGISTER_COUNT ( 1 ) + +#define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 ) + +#define D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 ) + +#define D3D12_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 ) + +#define D3D12_CS_THREADID_REGISTER_COMPONENTS ( 3 ) + +#define D3D12_CS_THREADID_REGISTER_COUNT ( 1 ) + +#define D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 ) + +#define D3D12_CS_THREAD_GROUP_MAX_X ( 1024 ) + +#define D3D12_CS_THREAD_GROUP_MAX_Y ( 1024 ) + +#define D3D12_CS_THREAD_GROUP_MAX_Z ( 64 ) + +#define D3D12_CS_THREAD_GROUP_MIN_X ( 1 ) + +#define D3D12_CS_THREAD_GROUP_MIN_Y ( 1 ) + +#define D3D12_CS_THREAD_GROUP_MIN_Z ( 1 ) + +#define D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 ) + +#define D3D12_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f ) +#define D3D12_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f ) +#define D3D12_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f ) +#define D3D12_DEFAULT_BLEND_FACTOR_RED ( 1.0f ) +#define D3D12_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f ) +#define D3D12_DEFAULT_DEPTH_BIAS ( 0 ) + +#define D3D12_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f ) +#define D3D12_DEFAULT_MAX_ANISOTROPY ( 16 ) + +#define D3D12_DEFAULT_MIP_LOD_BIAS ( 0.0f ) +#define D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 4194304 ) + +#define D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 ) + +#define D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 ) + +#define D3D12_DEFAULT_SAMPLE_MASK ( 0xffffffff ) + +#define D3D12_DEFAULT_SCISSOR_ENDX ( 0 ) + +#define D3D12_DEFAULT_SCISSOR_ENDY ( 0 ) + +#define D3D12_DEFAULT_SCISSOR_STARTX ( 0 ) + +#define D3D12_DEFAULT_SCISSOR_STARTY ( 0 ) + +#define D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f ) +#define D3D12_DEFAULT_STENCIL_READ_MASK ( 0xff ) + +#define D3D12_DEFAULT_STENCIL_REFERENCE ( 0 ) + +#define D3D12_DEFAULT_STENCIL_WRITE_MASK ( 0xff ) + +#define D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 ) + +#define D3D12_DEFAULT_VIEWPORT_HEIGHT ( 0 ) + +#define D3D12_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f ) +#define D3D12_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f ) +#define D3D12_DEFAULT_VIEWPORT_TOPLEFTX ( 0 ) + +#define D3D12_DEFAULT_VIEWPORT_TOPLEFTY ( 0 ) + +#define D3D12_DEFAULT_VIEWPORT_WIDTH ( 0 ) + +#define D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND ( 0xffffffff ) + +#define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END ( 0xfffffff7 ) + +#define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 ) + +#define D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 ) + +#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 ) + +#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 ) + +#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 ) + +#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 ) + +#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 ) + +#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_DS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_DS_OUTPUT_REGISTER_COUNT ( 32 ) + +#define D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 ) +#define D3D12_FLOAT32_MAX ( 3.402823466e+38f ) +#define D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f ) +#define D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f ) +#define D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f ) +#define D3D12_FLOAT_TO_SRGB_OFFSET ( 0.055f ) +#define D3D12_FLOAT_TO_SRGB_SCALE_1 ( 12.92f ) +#define D3D12_FLOAT_TO_SRGB_SCALE_2 ( 1.055f ) +#define D3D12_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f ) +#define D3D12_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f ) +#define D3D12_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f ) +#define D3D12_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f ) +#define D3D12_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f ) +#define D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 ) + +#define D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 ) + +#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 ) + +#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 ) + +#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_GS_INPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_GS_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D12_GS_INPUT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_GS_INPUT_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_GS_INPUT_REGISTER_VERTICES ( 32 ) + +#define D3D12_GS_MAX_INSTANCE_COUNT ( 32 ) + +#define D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 ) + +#define D3D12_GS_OUTPUT_ELEMENTS ( 32 ) + +#define D3D12_GS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_GS_OUTPUT_REGISTER_COUNT ( 32 ) + +#define D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 ) + +#define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff ) + +#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 ) + +#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 ) + +#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 ) + +#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff ) + +#define D3D12_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f ) +#define D3D12_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f ) +#define D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 ) + +#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 ) + +#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 ) + +#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 ) + +#define D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 ) + +#define D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 ) + +#define D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 ) + +#define D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 ) + +#define D3D12_IA_INSTANCE_ID_BIT_COUNT ( 32 ) + +#define D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 ) + +#define D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 ) + +#define D3D12_IA_PRIMITIVE_ID_BIT_COUNT ( 32 ) + +#define D3D12_IA_VERTEX_ID_BIT_COUNT ( 32 ) + +#define D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 ) + +#define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 ) + +#define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 ) + +#define D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff ) + +#define D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff ) + +#define D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff ) + +#define D3D12_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff ) + +#define D3D12_LINEAR_GAMMA ( 1.0f ) +#define D3D12_MAJOR_VERSION ( 12 ) + +#define D3D12_MAX_BORDER_COLOR_COMPONENT ( 1.0f ) +#define D3D12_MAX_DEPTH ( 1.0f ) +#define D3D12_MAX_LIVE_STATIC_SAMPLERS ( 2032 ) + +#define D3D12_MAX_MAXANISOTROPY ( 16 ) + +#define D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 ) + +#define D3D12_MAX_POSITION_VALUE ( 3.402823466e+34f ) +#define D3D12_MAX_ROOT_COST ( 64 ) + +#define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 ( 1000000 ) + +#define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 ( 1000000 ) + +#define D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE ( 2048 ) + +#define D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 ) + +#define D3D12_MAX_VIEW_INSTANCE_COUNT ( 4 ) + +#define D3D12_MINOR_VERSION ( 0 ) + +#define D3D12_MIN_BORDER_COLOR_COMPONENT ( 0.0f ) +#define D3D12_MIN_DEPTH ( 0.0f ) +#define D3D12_MIN_MAXANISOTROPY ( 0 ) + +#define D3D12_MIP_LOD_BIAS_MAX ( 15.99f ) +#define D3D12_MIP_LOD_BIAS_MIN ( -16.0f ) +#define D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 ) + +#define D3D12_MIP_LOD_RANGE_BIT_COUNT ( 8 ) + +#define D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f ) +#define D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 ) + +#define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff ) + +#define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff8 ) + +#define D3D12_PACKED_TILE ( 0xffffffff ) + +#define D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 ) + +#define D3D12_PREVIEW_SDK_VERSION ( 717 ) + +#define D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 ) + +#define D3D12_PS_CS_UAV_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_PS_CS_UAV_REGISTER_COUNT ( 8 ) + +#define D3D12_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 ) + +#define D3D12_PS_CS_UAV_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff ) + +#define D3D12_PS_FRONTFACING_FALSE_VALUE ( 0 ) + +#define D3D12_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff ) + +#define D3D12_PS_INPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_PS_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D12_PS_INPUT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_PS_INPUT_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f ) +#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 ) + +#define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 ) + +#define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 ) + +#define D3D12_PS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_PS_OUTPUT_REGISTER_COUNT ( 8 ) + +#define D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f ) +#define D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 ) + +#define D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT ( 8 ) + +#define D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT ( 256 ) + +#define D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT ( 16 ) + +#define D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES ( 32 ) + +#define D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH ( 31 ) + +#define D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 16777216 ) + +#define D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE ( 16777216 ) + +#define D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 536870912 ) + +#define D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS ( 1073741824 ) + +#define D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE ( 4096 ) + +#define D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT ( 32 ) + +#define D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT ( 64 ) + +#define D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT ( 16 ) + +#define D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 ) + +#define D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 ) + +#define D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 ) + +#define D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 ) + +#define D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 ) + +#define D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 ) + +#define D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 ) + +#define D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 ) + +#define D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 ) + +#define D3D12_REQ_MAXANISOTROPY ( 16 ) + +#define D3D12_REQ_MIP_LEVELS ( 15 ) + +#define D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 ) + +#define D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 ) + +#define D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 ) + +#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 ) + +#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f ) +#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 ) + +#define D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 ) + +#define D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 ) + +#define D3D12_REQ_SUBRESOURCES ( 30720 ) + +#define D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 ) + +#define D3D12_REQ_TEXTURE1D_U_DIMENSION ( 16384 ) + +#define D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 ) + +#define D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 ) + +#define D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 ) + +#define D3D12_REQ_TEXTURECUBE_DIMENSION ( 16384 ) + +#define D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 ) + +#define D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES ( 0xffffffff ) + +#define D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT ( 2 ) + +#define D3D12_SDK_VERSION ( 616 ) + +#define D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES ( 32 ) + +#define D3D12_SHADER_MAJOR_VERSION ( 5 ) + +#define D3D12_SHADER_MAX_INSTANCES ( 65535 ) + +#define D3D12_SHADER_MAX_INTERFACES ( 253 ) + +#define D3D12_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 ) + +#define D3D12_SHADER_MAX_TYPES ( 65535 ) + +#define D3D12_SHADER_MINOR_VERSION ( 1 ) + +#define D3D12_SHIFT_INSTRUCTION_PAD_VALUE ( 0 ) + +#define D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 ) + +#define D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 ) + +#define D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 ) + +#define D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT ( 4096 ) + +#define D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 ) + +#define D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 ) + +#define D3D12_SO_BUFFER_SLOT_COUNT ( 4 ) + +#define D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff ) + +#define D3D12_SO_NO_RASTERIZED_STREAM ( 0xffffffff ) + +#define D3D12_SO_OUTPUT_COMPONENT_COUNT ( 128 ) + +#define D3D12_SO_STREAM_COUNT ( 4 ) + +#define D3D12_SPEC_DATE_DAY ( 14 ) + +#define D3D12_SPEC_DATE_MONTH ( 11 ) + +#define D3D12_SPEC_DATE_YEAR ( 2014 ) + +#define D3D12_SPEC_VERSION ( 1.16 ) +#define D3D12_SRGB_GAMMA ( 2.2f ) +#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f ) +#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f ) +#define D3D12_SRGB_TO_FLOAT_EXPONENT ( 2.4f ) +#define D3D12_SRGB_TO_FLOAT_OFFSET ( 0.055f ) +#define D3D12_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f ) +#define D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f ) +#define D3D12_STANDARD_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 ) + +#define D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 ) + +#define D3D12_STANDARD_PIXEL_COMPONENT_COUNT ( 128 ) + +#define D3D12_STANDARD_PIXEL_ELEMENT_COUNT ( 32 ) + +#define D3D12_STANDARD_VECTOR_SIZE ( 4 ) + +#define D3D12_STANDARD_VERTEX_ELEMENT_COUNT ( 32 ) + +#define D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 ) + +#define D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 ) + +#define D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 ) + +#define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff ) + +#define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 ) + +#define D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 ) + +#define D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 ) + +#define D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 ) + +#define D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 ) + +#define D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 ) + +#define D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 ) + +#define D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 ) + +#define D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 ) + +#define D3D12_TEXTURE_DATA_PITCH_ALIGNMENT ( 256 ) + +#define D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT ( 512 ) + +#define D3D12_TIGHT_ALIGNMENT_MIN_COMMITTED_RESOURCE_ALIGNEMNT ( 4096 ) + +#define D3D12_TIGHT_ALIGNMENT_MIN_PLACED_RESOURCE_ALIGNEMNT ( 8 ) + +#define D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 ) + +#define D3D12_TRACKED_WORKLOAD_MAX_INSTANCES ( 32 ) + +#define D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT ( 4096 ) + +#define D3D12_UAV_SLOT_COUNT ( 64 ) + +#define D3D12_UNBOUND_MEMORY_ACCESS_RESULT ( 0 ) + +#define D3D12_VIDEO_DECODE_MAX_ARGUMENTS ( 10 ) + +#define D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS ( 4 ) + +#define D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT ( 256 ) + +#define D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT ( 256 ) + +#define D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN ( 0xffffffff ) + +#define D3D12_VIDEO_ENCODER_AV1_INVALID_DPB_RESOURCE_INDEX ( 0xff ) + +#define D3D12_VIDEO_ENCODER_AV1_MAX_TILE_COLS ( 64 ) + +#define D3D12_VIDEO_ENCODER_AV1_MAX_TILE_ROWS ( 64 ) + +#define D3D12_VIDEO_ENCODER_AV1_SUPERRES_DENOM_MIN ( 9 ) + +#define D3D12_VIDEO_ENCODER_AV1_SUPERRES_NUM ( 8 ) + +#define D3D12_VIDEO_PROCESS_MAX_FILTERS ( 32 ) + +#define D3D12_VIDEO_PROCESS_STEREO_VIEWS ( 2 ) + +#define D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 ) + +#define D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 ) + +#define D3D12_VIEWPORT_BOUNDS_MAX ( 32767 ) + +#define D3D12_VIEWPORT_BOUNDS_MIN ( -32768 ) + +#define D3D12_VS_INPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_VS_INPUT_REGISTER_COUNT ( 32 ) + +#define D3D12_VS_INPUT_REGISTER_READS_PER_INST ( 2 ) + +#define D3D12_VS_INPUT_REGISTER_READ_PORTS ( 1 ) + +#define D3D12_VS_OUTPUT_REGISTER_COMPONENTS ( 4 ) + +#define D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 ) + +#define D3D12_VS_OUTPUT_REGISTER_COUNT ( 32 ) + +#define D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 ) + +#define D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 ) + +#define D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 ) + +#define D3D12_WORK_GRAPHS_BACKING_MEMORY_ALIGNMENT_IN_BYTES ( 8 ) + +#define D3D12_WORK_GRAPHS_MAX_NODE_DEPTH ( 32 ) + +#endif + +typedef UINT64 D3D12_GPU_VIRTUAL_ADDRESS; + +typedef +enum D3D12_COMMAND_LIST_TYPE + { + D3D12_COMMAND_LIST_TYPE_DIRECT = 0, + D3D12_COMMAND_LIST_TYPE_BUNDLE = 1, + D3D12_COMMAND_LIST_TYPE_COMPUTE = 2, + D3D12_COMMAND_LIST_TYPE_COPY = 3, + D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE = 4, + D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS = 5, + D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE = 6, + D3D12_COMMAND_LIST_TYPE_NONE = -1 + } D3D12_COMMAND_LIST_TYPE; + +typedef +enum D3D12_COMMAND_QUEUE_FLAGS + { + D3D12_COMMAND_QUEUE_FLAG_NONE = 0, + D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT = 0x1 + } D3D12_COMMAND_QUEUE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_QUEUE_FLAGS ) +typedef +enum D3D12_COMMAND_QUEUE_PRIORITY + { + D3D12_COMMAND_QUEUE_PRIORITY_NORMAL = 0, + D3D12_COMMAND_QUEUE_PRIORITY_HIGH = 100, + D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME = 10000 + } D3D12_COMMAND_QUEUE_PRIORITY; + +typedef struct D3D12_COMMAND_QUEUE_DESC + { + D3D12_COMMAND_LIST_TYPE Type; + INT Priority; + D3D12_COMMAND_QUEUE_FLAGS Flags; + UINT NodeMask; + } D3D12_COMMAND_QUEUE_DESC; + +typedef +enum D3D12_PRIMITIVE_TOPOLOGY_TYPE + { + D3D12_PRIMITIVE_TOPOLOGY_TYPE_UNDEFINED = 0, + D3D12_PRIMITIVE_TOPOLOGY_TYPE_POINT = 1, + D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE = 2, + D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE = 3, + D3D12_PRIMITIVE_TOPOLOGY_TYPE_PATCH = 4 + } D3D12_PRIMITIVE_TOPOLOGY_TYPE; + +typedef +enum D3D12_INPUT_CLASSIFICATION + { + D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA = 0, + D3D12_INPUT_CLASSIFICATION_PER_INSTANCE_DATA = 1 + } D3D12_INPUT_CLASSIFICATION; + +typedef struct D3D12_INPUT_ELEMENT_DESC + { + LPCSTR SemanticName; + UINT SemanticIndex; + DXGI_FORMAT Format; + UINT InputSlot; + UINT AlignedByteOffset; + D3D12_INPUT_CLASSIFICATION InputSlotClass; + UINT InstanceDataStepRate; + } D3D12_INPUT_ELEMENT_DESC; + +typedef +enum D3D12_FILL_MODE + { + D3D12_FILL_MODE_WIREFRAME = 2, + D3D12_FILL_MODE_SOLID = 3 + } D3D12_FILL_MODE; + +typedef D3D_PRIMITIVE_TOPOLOGY D3D12_PRIMITIVE_TOPOLOGY; + +typedef D3D_PRIMITIVE D3D12_PRIMITIVE; + +typedef +enum D3D12_CULL_MODE + { + D3D12_CULL_MODE_NONE = 1, + D3D12_CULL_MODE_FRONT = 2, + D3D12_CULL_MODE_BACK = 3 + } D3D12_CULL_MODE; + +typedef struct D3D12_SO_DECLARATION_ENTRY + { + UINT Stream; + LPCSTR SemanticName; + UINT SemanticIndex; + BYTE StartComponent; + BYTE ComponentCount; + BYTE OutputSlot; + } D3D12_SO_DECLARATION_ENTRY; + +typedef struct D3D12_VIEWPORT + { + FLOAT TopLeftX; + FLOAT TopLeftY; + FLOAT Width; + FLOAT Height; + FLOAT MinDepth; + FLOAT MaxDepth; + } D3D12_VIEWPORT; + +typedef RECT D3D12_RECT; + +typedef struct D3D12_BOX + { + UINT left; + UINT top; + UINT front; + UINT right; + UINT bottom; + UINT back; + } D3D12_BOX; + +#ifdef __midl +#ifndef LUID_DEFINED +#define LUID_DEFINED 1 +typedef struct __LUID + { + DWORD LowPart; + LONG HighPart; + } LUID; + +typedef struct __LUID *PLUID; + +#endif +#endif +typedef +enum D3D12_COMPARISON_FUNC + { + D3D12_COMPARISON_FUNC_NONE = 0, + D3D12_COMPARISON_FUNC_NEVER = 1, + D3D12_COMPARISON_FUNC_LESS = 2, + D3D12_COMPARISON_FUNC_EQUAL = 3, + D3D12_COMPARISON_FUNC_LESS_EQUAL = 4, + D3D12_COMPARISON_FUNC_GREATER = 5, + D3D12_COMPARISON_FUNC_NOT_EQUAL = 6, + D3D12_COMPARISON_FUNC_GREATER_EQUAL = 7, + D3D12_COMPARISON_FUNC_ALWAYS = 8 + } D3D12_COMPARISON_FUNC; + +typedef +enum D3D12_DEPTH_WRITE_MASK + { + D3D12_DEPTH_WRITE_MASK_ZERO = 0, + D3D12_DEPTH_WRITE_MASK_ALL = 1 + } D3D12_DEPTH_WRITE_MASK; + +typedef +enum D3D12_STENCIL_OP + { + D3D12_STENCIL_OP_KEEP = 1, + D3D12_STENCIL_OP_ZERO = 2, + D3D12_STENCIL_OP_REPLACE = 3, + D3D12_STENCIL_OP_INCR_SAT = 4, + D3D12_STENCIL_OP_DECR_SAT = 5, + D3D12_STENCIL_OP_INVERT = 6, + D3D12_STENCIL_OP_INCR = 7, + D3D12_STENCIL_OP_DECR = 8 + } D3D12_STENCIL_OP; + +typedef struct D3D12_DEPTH_STENCILOP_DESC + { + D3D12_STENCIL_OP StencilFailOp; + D3D12_STENCIL_OP StencilDepthFailOp; + D3D12_STENCIL_OP StencilPassOp; + D3D12_COMPARISON_FUNC StencilFunc; + } D3D12_DEPTH_STENCILOP_DESC; + +typedef struct D3D12_DEPTH_STENCIL_DESC + { + BOOL DepthEnable; + D3D12_DEPTH_WRITE_MASK DepthWriteMask; + D3D12_COMPARISON_FUNC DepthFunc; + BOOL StencilEnable; + UINT8 StencilReadMask; + UINT8 StencilWriteMask; + D3D12_DEPTH_STENCILOP_DESC FrontFace; + D3D12_DEPTH_STENCILOP_DESC BackFace; + } D3D12_DEPTH_STENCIL_DESC; + +typedef struct D3D12_DEPTH_STENCIL_DESC1 + { + BOOL DepthEnable; + D3D12_DEPTH_WRITE_MASK DepthWriteMask; + D3D12_COMPARISON_FUNC DepthFunc; + BOOL StencilEnable; + UINT8 StencilReadMask; + UINT8 StencilWriteMask; + D3D12_DEPTH_STENCILOP_DESC FrontFace; + D3D12_DEPTH_STENCILOP_DESC BackFace; + BOOL DepthBoundsTestEnable; + } D3D12_DEPTH_STENCIL_DESC1; + +typedef struct D3D12_DEPTH_STENCILOP_DESC1 + { + D3D12_STENCIL_OP StencilFailOp; + D3D12_STENCIL_OP StencilDepthFailOp; + D3D12_STENCIL_OP StencilPassOp; + D3D12_COMPARISON_FUNC StencilFunc; + UINT8 StencilReadMask; + UINT8 StencilWriteMask; + } D3D12_DEPTH_STENCILOP_DESC1; + +typedef struct D3D12_DEPTH_STENCIL_DESC2 + { + BOOL DepthEnable; + D3D12_DEPTH_WRITE_MASK DepthWriteMask; + D3D12_COMPARISON_FUNC DepthFunc; + BOOL StencilEnable; + D3D12_DEPTH_STENCILOP_DESC1 FrontFace; + D3D12_DEPTH_STENCILOP_DESC1 BackFace; + BOOL DepthBoundsTestEnable; + } D3D12_DEPTH_STENCIL_DESC2; + +typedef +enum D3D12_BLEND + { + D3D12_BLEND_ZERO = 1, + D3D12_BLEND_ONE = 2, + D3D12_BLEND_SRC_COLOR = 3, + D3D12_BLEND_INV_SRC_COLOR = 4, + D3D12_BLEND_SRC_ALPHA = 5, + D3D12_BLEND_INV_SRC_ALPHA = 6, + D3D12_BLEND_DEST_ALPHA = 7, + D3D12_BLEND_INV_DEST_ALPHA = 8, + D3D12_BLEND_DEST_COLOR = 9, + D3D12_BLEND_INV_DEST_COLOR = 10, + D3D12_BLEND_SRC_ALPHA_SAT = 11, + D3D12_BLEND_BLEND_FACTOR = 14, + D3D12_BLEND_INV_BLEND_FACTOR = 15, + D3D12_BLEND_SRC1_COLOR = 16, + D3D12_BLEND_INV_SRC1_COLOR = 17, + D3D12_BLEND_SRC1_ALPHA = 18, + D3D12_BLEND_INV_SRC1_ALPHA = 19, + D3D12_BLEND_ALPHA_FACTOR = 20, + D3D12_BLEND_INV_ALPHA_FACTOR = 21 + } D3D12_BLEND; + +typedef +enum D3D12_BLEND_OP + { + D3D12_BLEND_OP_ADD = 1, + D3D12_BLEND_OP_SUBTRACT = 2, + D3D12_BLEND_OP_REV_SUBTRACT = 3, + D3D12_BLEND_OP_MIN = 4, + D3D12_BLEND_OP_MAX = 5 + } D3D12_BLEND_OP; + +typedef +enum D3D12_COLOR_WRITE_ENABLE + { + D3D12_COLOR_WRITE_ENABLE_RED = 1, + D3D12_COLOR_WRITE_ENABLE_GREEN = 2, + D3D12_COLOR_WRITE_ENABLE_BLUE = 4, + D3D12_COLOR_WRITE_ENABLE_ALPHA = 8, + D3D12_COLOR_WRITE_ENABLE_ALL = ( ( ( D3D12_COLOR_WRITE_ENABLE_RED | D3D12_COLOR_WRITE_ENABLE_GREEN ) | D3D12_COLOR_WRITE_ENABLE_BLUE ) | D3D12_COLOR_WRITE_ENABLE_ALPHA ) + } D3D12_COLOR_WRITE_ENABLE; + +typedef +enum D3D12_LOGIC_OP + { + D3D12_LOGIC_OP_CLEAR = 0, + D3D12_LOGIC_OP_SET = ( D3D12_LOGIC_OP_CLEAR + 1 ) , + D3D12_LOGIC_OP_COPY = ( D3D12_LOGIC_OP_SET + 1 ) , + D3D12_LOGIC_OP_COPY_INVERTED = ( D3D12_LOGIC_OP_COPY + 1 ) , + D3D12_LOGIC_OP_NOOP = ( D3D12_LOGIC_OP_COPY_INVERTED + 1 ) , + D3D12_LOGIC_OP_INVERT = ( D3D12_LOGIC_OP_NOOP + 1 ) , + D3D12_LOGIC_OP_AND = ( D3D12_LOGIC_OP_INVERT + 1 ) , + D3D12_LOGIC_OP_NAND = ( D3D12_LOGIC_OP_AND + 1 ) , + D3D12_LOGIC_OP_OR = ( D3D12_LOGIC_OP_NAND + 1 ) , + D3D12_LOGIC_OP_NOR = ( D3D12_LOGIC_OP_OR + 1 ) , + D3D12_LOGIC_OP_XOR = ( D3D12_LOGIC_OP_NOR + 1 ) , + D3D12_LOGIC_OP_EQUIV = ( D3D12_LOGIC_OP_XOR + 1 ) , + D3D12_LOGIC_OP_AND_REVERSE = ( D3D12_LOGIC_OP_EQUIV + 1 ) , + D3D12_LOGIC_OP_AND_INVERTED = ( D3D12_LOGIC_OP_AND_REVERSE + 1 ) , + D3D12_LOGIC_OP_OR_REVERSE = ( D3D12_LOGIC_OP_AND_INVERTED + 1 ) , + D3D12_LOGIC_OP_OR_INVERTED = ( D3D12_LOGIC_OP_OR_REVERSE + 1 ) + } D3D12_LOGIC_OP; + +typedef struct D3D12_RENDER_TARGET_BLEND_DESC + { + BOOL BlendEnable; + BOOL LogicOpEnable; + D3D12_BLEND SrcBlend; + D3D12_BLEND DestBlend; + D3D12_BLEND_OP BlendOp; + D3D12_BLEND SrcBlendAlpha; + D3D12_BLEND DestBlendAlpha; + D3D12_BLEND_OP BlendOpAlpha; + D3D12_LOGIC_OP LogicOp; + UINT8 RenderTargetWriteMask; + } D3D12_RENDER_TARGET_BLEND_DESC; + +typedef struct D3D12_BLEND_DESC + { + BOOL AlphaToCoverageEnable; + BOOL IndependentBlendEnable; + D3D12_RENDER_TARGET_BLEND_DESC RenderTarget[ 8 ]; + } D3D12_BLEND_DESC; + +/* Note, the array size for RenderTarget[] above is D3D12_SIMULTANEOUS_RENDERTARGET_COUNT. + IDL processing/generation of this header replaces the define; this comment is merely explaining what happened. */ +typedef +enum D3D12_CONSERVATIVE_RASTERIZATION_MODE + { + D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF = 0, + D3D12_CONSERVATIVE_RASTERIZATION_MODE_ON = 1 + } D3D12_CONSERVATIVE_RASTERIZATION_MODE; + +typedef struct D3D12_RASTERIZER_DESC + { + D3D12_FILL_MODE FillMode; + D3D12_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + INT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; + UINT ForcedSampleCount; + D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster; + } D3D12_RASTERIZER_DESC; + +typedef struct D3D12_RASTERIZER_DESC1 + { + D3D12_FILL_MODE FillMode; + D3D12_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + FLOAT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; + UINT ForcedSampleCount; + D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster; + } D3D12_RASTERIZER_DESC1; + +typedef +enum D3D12_LINE_RASTERIZATION_MODE + { + D3D12_LINE_RASTERIZATION_MODE_ALIASED = 0, + D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED = ( D3D12_LINE_RASTERIZATION_MODE_ALIASED + 1 ) , + D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE = ( D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED + 1 ) , + D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_NARROW = ( D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE + 1 ) + } D3D12_LINE_RASTERIZATION_MODE; + +typedef struct D3D12_RASTERIZER_DESC2 + { + D3D12_FILL_MODE FillMode; + D3D12_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + FLOAT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + D3D12_LINE_RASTERIZATION_MODE LineRasterizationMode; + UINT ForcedSampleCount; + D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster; + } D3D12_RASTERIZER_DESC2; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D12Object_INTERFACE_DEFINED__ +#define __ID3D12Object_INTERFACE_DEFINED__ + +/* interface ID3D12Object */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Object; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c4fec28f-7966-4e95-9f94-f431cb56c3b8") + ID3D12Object : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPrivateData( + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateData( + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrivateDataInterface( + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetName( + _In_z_ LPCWSTR Name) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12ObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Object * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Object * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Object * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Object * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Object * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Object * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Object * This, + _In_z_ LPCWSTR Name); + + END_INTERFACE + } ID3D12ObjectVtbl; + + interface ID3D12Object + { + CONST_VTBL struct ID3D12ObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Object_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Object_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Object_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Object_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Object_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Object_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Object_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Object_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DeviceChild_INTERFACE_DEFINED__ +#define __ID3D12DeviceChild_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceChild */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceChild; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("905db94b-a00c-4140-9df5-2b64ca9ea357") + ID3D12DeviceChild : public ID3D12Object + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDevice( + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceChildVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceChild * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceChild * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceChild * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12DeviceChild * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12DeviceChild * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12DeviceChild * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12DeviceChild * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12DeviceChild * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + END_INTERFACE + } ID3D12DeviceChildVtbl; + + interface ID3D12DeviceChild + { + CONST_VTBL struct ID3D12DeviceChildVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceChild_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceChild_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceChild_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DeviceChild_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12DeviceChild_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12DeviceChild_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12DeviceChild_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12DeviceChild_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceChild_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12RootSignature_INTERFACE_DEFINED__ +#define __ID3D12RootSignature_INTERFACE_DEFINED__ + +/* interface ID3D12RootSignature */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12RootSignature; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c54a6b66-72df-4ee8-8be5-a946a1429214") + ID3D12RootSignature : public ID3D12DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D12RootSignatureVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12RootSignature * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12RootSignature * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12RootSignature * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12RootSignature * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12RootSignature * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12RootSignature * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12RootSignature * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12RootSignature * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + END_INTERFACE + } ID3D12RootSignatureVtbl; + + interface ID3D12RootSignature + { + CONST_VTBL struct ID3D12RootSignatureVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12RootSignature_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12RootSignature_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12RootSignature_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12RootSignature_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12RootSignature_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12RootSignature_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12RootSignature_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12RootSignature_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12RootSignature_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0001 */ +/* [local] */ + +typedef struct D3D12_SHADER_BYTECODE + { + _Field_size_bytes_full_(BytecodeLength) const void *pShaderBytecode; + SIZE_T BytecodeLength; + } D3D12_SHADER_BYTECODE; + +typedef struct D3D12_STREAM_OUTPUT_DESC + { + _Field_size_full_(NumEntries) const D3D12_SO_DECLARATION_ENTRY *pSODeclaration; + UINT NumEntries; + _Field_size_full_(NumStrides) const UINT *pBufferStrides; + UINT NumStrides; + UINT RasterizedStream; + } D3D12_STREAM_OUTPUT_DESC; + +typedef struct D3D12_INPUT_LAYOUT_DESC + { + _Field_size_full_(NumElements) const D3D12_INPUT_ELEMENT_DESC *pInputElementDescs; + UINT NumElements; + } D3D12_INPUT_LAYOUT_DESC; + +typedef +enum D3D12_INDEX_BUFFER_STRIP_CUT_VALUE + { + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_DISABLED = 0, + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFF = 1, + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFFFFFF = 2 + } D3D12_INDEX_BUFFER_STRIP_CUT_VALUE; + +typedef +enum D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS + { + D3D12_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff, + D3D12_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe + } D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS; + +typedef struct D3D12_CACHED_PIPELINE_STATE + { + _Field_size_bytes_full_(CachedBlobSizeInBytes) const void *pCachedBlob; + SIZE_T CachedBlobSizeInBytes; + } D3D12_CACHED_PIPELINE_STATE; + +typedef +enum D3D12_PIPELINE_STATE_FLAGS + { + D3D12_PIPELINE_STATE_FLAG_NONE = 0, + D3D12_PIPELINE_STATE_FLAG_TOOL_DEBUG = 0x1, + D3D12_PIPELINE_STATE_FLAG_DYNAMIC_DEPTH_BIAS = 0x4, + D3D12_PIPELINE_STATE_FLAG_DYNAMIC_INDEX_BUFFER_STRIP_CUT = 0x8 + } D3D12_PIPELINE_STATE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_PIPELINE_STATE_FLAGS ) +typedef struct D3D12_GRAPHICS_PIPELINE_STATE_DESC + { + ID3D12RootSignature *pRootSignature; + D3D12_SHADER_BYTECODE VS; + D3D12_SHADER_BYTECODE PS; + D3D12_SHADER_BYTECODE DS; + D3D12_SHADER_BYTECODE HS; + D3D12_SHADER_BYTECODE GS; + D3D12_STREAM_OUTPUT_DESC StreamOutput; + D3D12_BLEND_DESC BlendState; + UINT SampleMask; + D3D12_RASTERIZER_DESC RasterizerState; + D3D12_DEPTH_STENCIL_DESC DepthStencilState; + D3D12_INPUT_LAYOUT_DESC InputLayout; + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue; + D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType; + UINT NumRenderTargets; + DXGI_FORMAT RTVFormats[ 8 ]; + DXGI_FORMAT DSVFormat; + DXGI_SAMPLE_DESC SampleDesc; + UINT NodeMask; + D3D12_CACHED_PIPELINE_STATE CachedPSO; + D3D12_PIPELINE_STATE_FLAGS Flags; + } D3D12_GRAPHICS_PIPELINE_STATE_DESC; + +typedef struct D3D12_COMPUTE_PIPELINE_STATE_DESC + { + ID3D12RootSignature *pRootSignature; + D3D12_SHADER_BYTECODE CS; + UINT NodeMask; + D3D12_CACHED_PIPELINE_STATE CachedPSO; + D3D12_PIPELINE_STATE_FLAGS Flags; + } D3D12_COMPUTE_PIPELINE_STATE_DESC; + +struct D3D12_RT_FORMAT_ARRAY + { + DXGI_FORMAT RTFormats[ 8 ]; + UINT NumRenderTargets; + } ; +typedef struct D3D12_PIPELINE_STATE_STREAM_DESC + { + _In_ SIZE_T SizeInBytes; + _In_reads_(_Inexpressible_("Dependent on size of subobjects")) void *pPipelineStateSubobjectStream; + } D3D12_PIPELINE_STATE_STREAM_DESC; + +typedef +enum D3D12_PIPELINE_STATE_SUBOBJECT_TYPE + { + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE = 0, + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 + 1 ) , + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS = 24, + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS = 25, + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 = 26, + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER1 = 27, + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2 = 28, + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MAX_VALID = ( D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2 + 1 ) + } D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; + +typedef +enum D3D12_FEATURE + { + D3D12_FEATURE_D3D12_OPTIONS = 0, + D3D12_FEATURE_ARCHITECTURE = 1, + D3D12_FEATURE_FEATURE_LEVELS = 2, + D3D12_FEATURE_FORMAT_SUPPORT = 3, + D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS = 4, + D3D12_FEATURE_FORMAT_INFO = 5, + D3D12_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT = 6, + D3D12_FEATURE_SHADER_MODEL = 7, + D3D12_FEATURE_D3D12_OPTIONS1 = 8, + D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT = 10, + D3D12_FEATURE_ROOT_SIGNATURE = 12, + D3D12_FEATURE_ARCHITECTURE1 = 16, + D3D12_FEATURE_D3D12_OPTIONS2 = 18, + D3D12_FEATURE_SHADER_CACHE = 19, + D3D12_FEATURE_COMMAND_QUEUE_PRIORITY = 20, + D3D12_FEATURE_D3D12_OPTIONS3 = 21, + D3D12_FEATURE_EXISTING_HEAPS = 22, + D3D12_FEATURE_D3D12_OPTIONS4 = 23, + D3D12_FEATURE_SERIALIZATION = 24, + D3D12_FEATURE_CROSS_NODE = 25, + D3D12_FEATURE_D3D12_OPTIONS5 = 27, + D3D12_FEATURE_DISPLAYABLE = 28, + D3D12_FEATURE_D3D12_OPTIONS6 = 30, + D3D12_FEATURE_QUERY_META_COMMAND = 31, + D3D12_FEATURE_D3D12_OPTIONS7 = 32, + D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPE_COUNT = 33, + D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPES = 34, + D3D12_FEATURE_D3D12_OPTIONS8 = 36, + D3D12_FEATURE_D3D12_OPTIONS9 = 37, + D3D12_FEATURE_D3D12_OPTIONS10 = 39, + D3D12_FEATURE_D3D12_OPTIONS11 = 40, + D3D12_FEATURE_D3D12_OPTIONS12 = 41, + D3D12_FEATURE_D3D12_OPTIONS13 = 42, + D3D12_FEATURE_D3D12_OPTIONS14 = 43, + D3D12_FEATURE_D3D12_OPTIONS15 = 44, + D3D12_FEATURE_D3D12_OPTIONS16 = 45, + D3D12_FEATURE_D3D12_OPTIONS17 = 46, + D3D12_FEATURE_D3D12_OPTIONS18 = 47, + D3D12_FEATURE_D3D12_OPTIONS19 = 48, + D3D12_FEATURE_D3D12_OPTIONS20 = 49, + D3D12_FEATURE_PREDICATION = 50, + D3D12_FEATURE_PLACED_RESOURCE_SUPPORT_INFO = 51, + D3D12_FEATURE_HARDWARE_COPY = 52, + D3D12_FEATURE_D3D12_OPTIONS21 = 53, + D3D12_FEATURE_APPLICATION_SPECIFIC_DRIVER_STATE = 56, + D3D12_FEATURE_BYTECODE_BYPASS_HASH_SUPPORTED = 57, + D3D12_FEATURE_SHADER_CACHE_ABI_SUPPORT = 61 + } D3D12_FEATURE; + +typedef +enum D3D12_SHADER_MIN_PRECISION_SUPPORT + { + D3D12_SHADER_MIN_PRECISION_SUPPORT_NONE = 0, + D3D12_SHADER_MIN_PRECISION_SUPPORT_10_BIT = 0x1, + D3D12_SHADER_MIN_PRECISION_SUPPORT_16_BIT = 0x2 + } D3D12_SHADER_MIN_PRECISION_SUPPORT; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_MIN_PRECISION_SUPPORT ) +typedef +enum D3D12_TILED_RESOURCES_TIER + { + D3D12_TILED_RESOURCES_TIER_NOT_SUPPORTED = 0, + D3D12_TILED_RESOURCES_TIER_1 = 1, + D3D12_TILED_RESOURCES_TIER_2 = 2, + D3D12_TILED_RESOURCES_TIER_3 = 3, + D3D12_TILED_RESOURCES_TIER_4 = 4 + } D3D12_TILED_RESOURCES_TIER; + +typedef +enum D3D12_RESOURCE_BINDING_TIER + { + D3D12_RESOURCE_BINDING_TIER_1 = 1, + D3D12_RESOURCE_BINDING_TIER_2 = 2, + D3D12_RESOURCE_BINDING_TIER_3 = 3 + } D3D12_RESOURCE_BINDING_TIER; + +typedef +enum D3D12_CONSERVATIVE_RASTERIZATION_TIER + { + D3D12_CONSERVATIVE_RASTERIZATION_TIER_NOT_SUPPORTED = 0, + D3D12_CONSERVATIVE_RASTERIZATION_TIER_1 = 1, + D3D12_CONSERVATIVE_RASTERIZATION_TIER_2 = 2, + D3D12_CONSERVATIVE_RASTERIZATION_TIER_3 = 3 + } D3D12_CONSERVATIVE_RASTERIZATION_TIER; + +typedef +enum D3D12_FORMAT_SUPPORT1 + { + D3D12_FORMAT_SUPPORT1_NONE = 0, + D3D12_FORMAT_SUPPORT1_BUFFER = 0x1, + D3D12_FORMAT_SUPPORT1_IA_VERTEX_BUFFER = 0x2, + D3D12_FORMAT_SUPPORT1_IA_INDEX_BUFFER = 0x4, + D3D12_FORMAT_SUPPORT1_SO_BUFFER = 0x8, + D3D12_FORMAT_SUPPORT1_TEXTURE1D = 0x10, + D3D12_FORMAT_SUPPORT1_TEXTURE2D = 0x20, + D3D12_FORMAT_SUPPORT1_TEXTURE3D = 0x40, + D3D12_FORMAT_SUPPORT1_TEXTURECUBE = 0x80, + D3D12_FORMAT_SUPPORT1_SHADER_LOAD = 0x100, + D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE = 0x200, + D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_COMPARISON = 0x400, + D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_MONO_TEXT = 0x800, + D3D12_FORMAT_SUPPORT1_MIP = 0x1000, + D3D12_FORMAT_SUPPORT1_RENDER_TARGET = 0x4000, + D3D12_FORMAT_SUPPORT1_BLENDABLE = 0x8000, + D3D12_FORMAT_SUPPORT1_DEPTH_STENCIL = 0x10000, + D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RESOLVE = 0x40000, + D3D12_FORMAT_SUPPORT1_DISPLAY = 0x80000, + D3D12_FORMAT_SUPPORT1_CAST_WITHIN_BIT_LAYOUT = 0x100000, + D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RENDERTARGET = 0x200000, + D3D12_FORMAT_SUPPORT1_MULTISAMPLE_LOAD = 0x400000, + D3D12_FORMAT_SUPPORT1_SHADER_GATHER = 0x800000, + D3D12_FORMAT_SUPPORT1_BACK_BUFFER_CAST = 0x1000000, + D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW = 0x2000000, + D3D12_FORMAT_SUPPORT1_SHADER_GATHER_COMPARISON = 0x4000000, + D3D12_FORMAT_SUPPORT1_DECODER_OUTPUT = 0x8000000, + D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_OUTPUT = 0x10000000, + D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_INPUT = 0x20000000, + D3D12_FORMAT_SUPPORT1_VIDEO_ENCODER = 0x40000000 + } D3D12_FORMAT_SUPPORT1; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_FORMAT_SUPPORT1 ) +typedef +enum D3D12_FORMAT_SUPPORT2 + { + D3D12_FORMAT_SUPPORT2_NONE = 0, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x1, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x2, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x4, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x8, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x10, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x20, + D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x40, + D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x80, + D3D12_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x100, + D3D12_FORMAT_SUPPORT2_TILED = 0x200, + D3D12_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x4000, + D3D12_FORMAT_SUPPORT2_SAMPLER_FEEDBACK = 0x8000, + D3D12_FORMAT_SUPPORT2_DISPLAYABLE = 0x10000 + } D3D12_FORMAT_SUPPORT2; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_FORMAT_SUPPORT2 ) +typedef +enum D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS + { + D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_NONE = 0, + D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_TILED_RESOURCE = 0x1 + } D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS ) +typedef +enum D3D12_CROSS_NODE_SHARING_TIER + { + D3D12_CROSS_NODE_SHARING_TIER_NOT_SUPPORTED = 0, + D3D12_CROSS_NODE_SHARING_TIER_1_EMULATED = 1, + D3D12_CROSS_NODE_SHARING_TIER_1 = 2, + D3D12_CROSS_NODE_SHARING_TIER_2 = 3, + D3D12_CROSS_NODE_SHARING_TIER_3 = 4 + } D3D12_CROSS_NODE_SHARING_TIER; + +typedef +enum D3D12_RESOURCE_HEAP_TIER + { + D3D12_RESOURCE_HEAP_TIER_1 = 1, + D3D12_RESOURCE_HEAP_TIER_2 = 2 + } D3D12_RESOURCE_HEAP_TIER; + +typedef +enum D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER + { + D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_NOT_SUPPORTED = 0, + D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_1 = 1, + D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_2 = 2 + } D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER; + +typedef +enum D3D12_VIEW_INSTANCING_TIER + { + D3D12_VIEW_INSTANCING_TIER_NOT_SUPPORTED = 0, + D3D12_VIEW_INSTANCING_TIER_1 = 1, + D3D12_VIEW_INSTANCING_TIER_2 = 2, + D3D12_VIEW_INSTANCING_TIER_3 = 3 + } D3D12_VIEW_INSTANCING_TIER; + +typedef +enum D3D12_WORK_GRAPHS_TIER + { + D3D12_WORK_GRAPHS_TIER_NOT_SUPPORTED = 0, + D3D12_WORK_GRAPHS_TIER_1_0 = 10 + } D3D12_WORK_GRAPHS_TIER; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS + { + _Out_ BOOL DoublePrecisionFloatShaderOps; + _Out_ BOOL OutputMergerLogicOp; + _Out_ D3D12_SHADER_MIN_PRECISION_SUPPORT MinPrecisionSupport; + _Out_ D3D12_TILED_RESOURCES_TIER TiledResourcesTier; + _Out_ D3D12_RESOURCE_BINDING_TIER ResourceBindingTier; + _Out_ BOOL PSSpecifiedStencilRefSupported; + _Out_ BOOL TypedUAVLoadAdditionalFormats; + _Out_ BOOL ROVsSupported; + _Out_ D3D12_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier; + _Out_ UINT MaxGPUVirtualAddressBitsPerResource; + _Out_ BOOL StandardSwizzle64KBSupported; + _Out_ D3D12_CROSS_NODE_SHARING_TIER CrossNodeSharingTier; + _Out_ BOOL CrossAdapterRowMajorTextureSupported; + _Out_ BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation; + _Out_ D3D12_RESOURCE_HEAP_TIER ResourceHeapTier; + } D3D12_FEATURE_DATA_D3D12_OPTIONS; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS1 + { + _Out_ BOOL WaveOps; + _Out_ UINT WaveLaneCountMin; + _Out_ UINT WaveLaneCountMax; + _Out_ UINT TotalLaneCount; + _Out_ BOOL ExpandedComputeResourceStates; + _Out_ BOOL Int64ShaderOps; + } D3D12_FEATURE_DATA_D3D12_OPTIONS1; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS2 + { + _Out_ BOOL DepthBoundsTestSupported; + _Out_ D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER ProgrammableSamplePositionsTier; + } D3D12_FEATURE_DATA_D3D12_OPTIONS2; + +typedef +enum D3D_ROOT_SIGNATURE_VERSION + { + D3D_ROOT_SIGNATURE_VERSION_1 = 0x1, + D3D_ROOT_SIGNATURE_VERSION_1_0 = 0x1, + D3D_ROOT_SIGNATURE_VERSION_1_1 = 0x2, + D3D_ROOT_SIGNATURE_VERSION_1_2 = 0x3 + } D3D_ROOT_SIGNATURE_VERSION; + +typedef struct D3D12_FEATURE_DATA_ROOT_SIGNATURE + { + _Inout_ D3D_ROOT_SIGNATURE_VERSION HighestVersion; + } D3D12_FEATURE_DATA_ROOT_SIGNATURE; + +typedef struct D3D12_FEATURE_DATA_ARCHITECTURE + { + _In_ UINT NodeIndex; + _Out_ BOOL TileBasedRenderer; + _Out_ BOOL UMA; + _Out_ BOOL CacheCoherentUMA; + } D3D12_FEATURE_DATA_ARCHITECTURE; + +typedef struct D3D12_FEATURE_DATA_ARCHITECTURE1 + { + _In_ UINT NodeIndex; + _Out_ BOOL TileBasedRenderer; + _Out_ BOOL UMA; + _Out_ BOOL CacheCoherentUMA; + _Out_ BOOL IsolatedMMU; + } D3D12_FEATURE_DATA_ARCHITECTURE1; + +typedef struct D3D12_FEATURE_DATA_FEATURE_LEVELS + { + _In_ UINT NumFeatureLevels; + _In_reads_(NumFeatureLevels) const D3D_FEATURE_LEVEL *pFeatureLevelsRequested; + _Out_ D3D_FEATURE_LEVEL MaxSupportedFeatureLevel; + } D3D12_FEATURE_DATA_FEATURE_LEVELS; + +typedef +enum D3D_SHADER_MODEL + { + D3D_SHADER_MODEL_NONE = 0, + D3D_SHADER_MODEL_5_1 = 0x51, + D3D_SHADER_MODEL_6_0 = 0x60, + D3D_SHADER_MODEL_6_1 = 0x61, + D3D_SHADER_MODEL_6_2 = 0x62, + D3D_SHADER_MODEL_6_3 = 0x63, + D3D_SHADER_MODEL_6_4 = 0x64, + D3D_SHADER_MODEL_6_5 = 0x65, + D3D_SHADER_MODEL_6_6 = 0x66, + D3D_SHADER_MODEL_6_7 = 0x67, + D3D_SHADER_MODEL_6_8 = 0x68, + D3D_SHADER_MODEL_6_9 = 0x69, + D3D_HIGHEST_SHADER_MODEL = D3D_SHADER_MODEL_6_9 + } D3D_SHADER_MODEL; + +typedef struct D3D12_FEATURE_DATA_SHADER_MODEL + { + _Inout_ D3D_SHADER_MODEL HighestShaderModel; + } D3D12_FEATURE_DATA_SHADER_MODEL; + +typedef struct D3D12_FEATURE_DATA_FORMAT_SUPPORT + { + _In_ DXGI_FORMAT Format; + _Out_ D3D12_FORMAT_SUPPORT1 Support1; + _Out_ D3D12_FORMAT_SUPPORT2 Support2; + } D3D12_FEATURE_DATA_FORMAT_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS + { + _In_ DXGI_FORMAT Format; + _In_ UINT SampleCount; + _In_ D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS Flags; + _Out_ UINT NumQualityLevels; + } D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS; + +typedef struct D3D12_FEATURE_DATA_FORMAT_INFO + { + DXGI_FORMAT Format; + UINT8 PlaneCount; + } D3D12_FEATURE_DATA_FORMAT_INFO; + +typedef struct D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT + { + UINT MaxGPUVirtualAddressBitsPerResource; + UINT MaxGPUVirtualAddressBitsPerProcess; + } D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT; + +typedef +enum D3D12_SHADER_CACHE_SUPPORT_FLAGS + { + D3D12_SHADER_CACHE_SUPPORT_NONE = 0, + D3D12_SHADER_CACHE_SUPPORT_SINGLE_PSO = 0x1, + D3D12_SHADER_CACHE_SUPPORT_LIBRARY = 0x2, + D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x4, + D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x8, + D3D12_SHADER_CACHE_SUPPORT_DRIVER_MANAGED_CACHE = 0x10, + D3D12_SHADER_CACHE_SUPPORT_SHADER_CONTROL_CLEAR = 0x20, + D3D12_SHADER_CACHE_SUPPORT_SHADER_SESSION_DELETE = 0x40 + } D3D12_SHADER_CACHE_SUPPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_SUPPORT_FLAGS ) +typedef struct D3D12_FEATURE_DATA_SHADER_CACHE + { + _Out_ D3D12_SHADER_CACHE_SUPPORT_FLAGS SupportFlags; + } D3D12_FEATURE_DATA_SHADER_CACHE; + +typedef struct D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY + { + _In_ D3D12_COMMAND_LIST_TYPE CommandListType; + _In_ UINT Priority; + _Out_ BOOL PriorityForTypeIsSupported; + } D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY; + +typedef +enum D3D12_COMMAND_LIST_SUPPORT_FLAGS + { + D3D12_COMMAND_LIST_SUPPORT_FLAG_NONE = 0, + D3D12_COMMAND_LIST_SUPPORT_FLAG_DIRECT = ( 1 << D3D12_COMMAND_LIST_TYPE_DIRECT ) , + D3D12_COMMAND_LIST_SUPPORT_FLAG_BUNDLE = ( 1 << D3D12_COMMAND_LIST_TYPE_BUNDLE ) , + D3D12_COMMAND_LIST_SUPPORT_FLAG_COMPUTE = ( 1 << D3D12_COMMAND_LIST_TYPE_COMPUTE ) , + D3D12_COMMAND_LIST_SUPPORT_FLAG_COPY = ( 1 << D3D12_COMMAND_LIST_TYPE_COPY ) , + D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_DECODE = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE ) , + D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_PROCESS = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS ) , + D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_ENCODE = ( 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE ) + } D3D12_COMMAND_LIST_SUPPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_LIST_SUPPORT_FLAGS ) +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS3 + { + _Out_ BOOL CopyQueueTimestampQueriesSupported; + _Out_ BOOL CastingFullyTypedFormatSupported; + _Out_ D3D12_COMMAND_LIST_SUPPORT_FLAGS WriteBufferImmediateSupportFlags; + _Out_ D3D12_VIEW_INSTANCING_TIER ViewInstancingTier; + _Out_ BOOL BarycentricsSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS3; + +typedef struct D3D12_FEATURE_DATA_EXISTING_HEAPS + { + _Out_ BOOL Supported; + } D3D12_FEATURE_DATA_EXISTING_HEAPS; + +typedef +enum D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER + { + D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 = 0, + D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 = ( D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0 + 1 ) , + D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_2 = ( D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1 + 1 ) + } D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER; + +typedef struct D3D12_FEATURE_DATA_DISPLAYABLE + { + _Out_ BOOL DisplayableTexture; + _Out_ D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier; + } D3D12_FEATURE_DATA_DISPLAYABLE; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS4 + { + _Out_ BOOL MSAA64KBAlignedTextureSupported; + _Out_ D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier; + _Out_ BOOL Native16BitShaderOpsSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS4; + +typedef +enum D3D12_HEAP_SERIALIZATION_TIER + { + D3D12_HEAP_SERIALIZATION_TIER_0 = 0, + D3D12_HEAP_SERIALIZATION_TIER_10 = 10 + } D3D12_HEAP_SERIALIZATION_TIER; + +typedef struct D3D12_FEATURE_DATA_SERIALIZATION + { + _In_ UINT NodeIndex; + _Out_ D3D12_HEAP_SERIALIZATION_TIER HeapSerializationTier; + } D3D12_FEATURE_DATA_SERIALIZATION; + +typedef struct D3D12_FEATURE_DATA_CROSS_NODE + { + D3D12_CROSS_NODE_SHARING_TIER SharingTier; + BOOL AtomicShaderInstructions; + } D3D12_FEATURE_DATA_CROSS_NODE; + +typedef +enum D3D12_RENDER_PASS_TIER + { + D3D12_RENDER_PASS_TIER_0 = 0, + D3D12_RENDER_PASS_TIER_1 = 1, + D3D12_RENDER_PASS_TIER_2 = 2 + } D3D12_RENDER_PASS_TIER; + +typedef +enum D3D12_RAYTRACING_TIER + { + D3D12_RAYTRACING_TIER_NOT_SUPPORTED = 0, + D3D12_RAYTRACING_TIER_1_0 = 10, + D3D12_RAYTRACING_TIER_1_1 = 11, + D3D12_RAYTRACING_TIER_1_2 = 12 + } D3D12_RAYTRACING_TIER; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS5 + { + _Out_ BOOL SRVOnlyTiledResourceTier3; + _Out_ D3D12_RENDER_PASS_TIER RenderPassesTier; + _Out_ D3D12_RAYTRACING_TIER RaytracingTier; + } D3D12_FEATURE_DATA_D3D12_OPTIONS5; + +typedef +enum D3D12_VARIABLE_SHADING_RATE_TIER + { + D3D12_VARIABLE_SHADING_RATE_TIER_NOT_SUPPORTED = 0, + D3D12_VARIABLE_SHADING_RATE_TIER_1 = 1, + D3D12_VARIABLE_SHADING_RATE_TIER_2 = 2 + } D3D12_VARIABLE_SHADING_RATE_TIER; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS6 + { + _Out_ BOOL AdditionalShadingRatesSupported; + _Out_ BOOL PerPrimitiveShadingRateSupportedWithViewportIndexing; + _Out_ D3D12_VARIABLE_SHADING_RATE_TIER VariableShadingRateTier; + _Out_ UINT ShadingRateImageTileSize; + _Out_ BOOL BackgroundProcessingSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS6; + +typedef +enum D3D12_MESH_SHADER_TIER + { + D3D12_MESH_SHADER_TIER_NOT_SUPPORTED = 0, + D3D12_MESH_SHADER_TIER_1 = 10 + } D3D12_MESH_SHADER_TIER; + +typedef +enum D3D12_SAMPLER_FEEDBACK_TIER + { + D3D12_SAMPLER_FEEDBACK_TIER_NOT_SUPPORTED = 0, + D3D12_SAMPLER_FEEDBACK_TIER_0_9 = 90, + D3D12_SAMPLER_FEEDBACK_TIER_1_0 = 100 + } D3D12_SAMPLER_FEEDBACK_TIER; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS7 + { + _Out_ D3D12_MESH_SHADER_TIER MeshShaderTier; + _Out_ D3D12_SAMPLER_FEEDBACK_TIER SamplerFeedbackTier; + } D3D12_FEATURE_DATA_D3D12_OPTIONS7; + +typedef struct D3D12_FEATURE_DATA_QUERY_META_COMMAND + { + _In_ GUID CommandId; + _In_ UINT NodeMask; + _Field_size_bytes_full_opt_( QueryInputDataSizeInBytes ) const void *pQueryInputData; + _In_ SIZE_T QueryInputDataSizeInBytes; + _Field_size_bytes_full_( QueryOutputDataSizeInBytes ) void *pQueryOutputData; + _In_ SIZE_T QueryOutputDataSizeInBytes; + } D3D12_FEATURE_DATA_QUERY_META_COMMAND; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS8 + { + _Out_ BOOL UnalignedBlockTexturesSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS8; + +typedef +enum D3D12_WAVE_MMA_TIER + { + D3D12_WAVE_MMA_TIER_NOT_SUPPORTED = 0, + D3D12_WAVE_MMA_TIER_1_0 = 10 + } D3D12_WAVE_MMA_TIER; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS9 + { + _Out_ BOOL MeshShaderPipelineStatsSupported; + _Out_ BOOL MeshShaderSupportsFullRangeRenderTargetArrayIndex; + _Out_ BOOL AtomicInt64OnTypedResourceSupported; + _Out_ BOOL AtomicInt64OnGroupSharedSupported; + _Out_ BOOL DerivativesInMeshAndAmplificationShadersSupported; + _Out_ D3D12_WAVE_MMA_TIER WaveMMATier; + } D3D12_FEATURE_DATA_D3D12_OPTIONS9; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS10 + { + _Out_ BOOL VariableRateShadingSumCombinerSupported; + _Out_ BOOL MeshShaderPerPrimitiveShadingRateSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS10; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS11 + { + _Out_ BOOL AtomicInt64OnDescriptorHeapResourceSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS11; + +typedef +enum D3D12_TRI_STATE + { + D3D12_TRI_STATE_UNKNOWN = -1, + D3D12_TRI_STATE_FALSE = 0, + D3D12_TRI_STATE_TRUE = 1 + } D3D12_TRI_STATE; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS12 + { + _Out_ D3D12_TRI_STATE MSPrimitivesPipelineStatisticIncludesCulledPrimitives; + _Out_ BOOL EnhancedBarriersSupported; + _Out_ BOOL RelaxedFormatCastingSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS12; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS13 + { + _Out_ BOOL UnrestrictedBufferTextureCopyPitchSupported; + _Out_ BOOL UnrestrictedVertexElementAlignmentSupported; + _Out_ BOOL InvertedViewportHeightFlipsYSupported; + _Out_ BOOL InvertedViewportDepthFlipsZSupported; + _Out_ BOOL TextureCopyBetweenDimensionsSupported; + _Out_ BOOL AlphaBlendFactorSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS13; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS14 + { + _Out_ BOOL AdvancedTextureOpsSupported; + _Out_ BOOL WriteableMSAATexturesSupported; + _Out_ BOOL IndependentFrontAndBackStencilRefMaskSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS14; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS15 + { + _Out_ BOOL TriangleFanSupported; + _Out_ BOOL DynamicIndexBufferStripCutSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS15; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS16 + { + _Out_ BOOL DynamicDepthBiasSupported; + _Out_ BOOL GPUUploadHeapSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS16; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS17 + { + _Out_ BOOL NonNormalizedCoordinateSamplersSupported; + _Out_ BOOL ManualWriteTrackingResourceSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS17; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS18 + { + _Out_ BOOL RenderPassesValid; + } D3D12_FEATURE_DATA_D3D12_OPTIONS18; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS19 + { + BOOL MismatchingOutputDimensionsSupported; + UINT SupportedSampleCountsWithNoOutputs; + BOOL PointSamplingAddressesNeverRoundUp; + BOOL RasterizerDesc2Supported; + BOOL NarrowQuadrilateralLinesSupported; + BOOL AnisoFilterWithPointMipSupported; + UINT MaxSamplerDescriptorHeapSize; + UINT MaxSamplerDescriptorHeapSizeWithStaticSamplers; + UINT MaxViewDescriptorHeapSize; + _Out_ BOOL ComputeOnlyCustomHeapSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS19; + +typedef +enum D3D12_RECREATE_AT_TIER + { + D3D12_RECREATE_AT_TIER_NOT_SUPPORTED = 0, + D3D12_RECREATE_AT_TIER_1 = 1 + } D3D12_RECREATE_AT_TIER; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS20 + { + _Out_ BOOL ComputeOnlyWriteWatchSupported; + D3D12_RECREATE_AT_TIER RecreateAtTier; + } D3D12_FEATURE_DATA_D3D12_OPTIONS20; + +typedef +enum D3D12_EXECUTE_INDIRECT_TIER + { + D3D12_EXECUTE_INDIRECT_TIER_1_0 = 10, + D3D12_EXECUTE_INDIRECT_TIER_1_1 = 11 + } D3D12_EXECUTE_INDIRECT_TIER; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS21 + { + _Out_ D3D12_WORK_GRAPHS_TIER WorkGraphsTier; + _Out_ D3D12_EXECUTE_INDIRECT_TIER ExecuteIndirectTier; + _Out_ BOOL SampleCmpGradientAndBiasSupported; + _Out_ BOOL ExtendedCommandInfoSupported; + } D3D12_FEATURE_DATA_D3D12_OPTIONS21; + +typedef struct D3D12_FEATURE_DATA_PREDICATION + { + _Out_ BOOL Supported; + } D3D12_FEATURE_DATA_PREDICATION; + +typedef struct D3D12_FEATURE_DATA_HARDWARE_COPY + { + _Out_ BOOL Supported; + } D3D12_FEATURE_DATA_HARDWARE_COPY; + +typedef struct D3D12_FEATURE_DATA_APPLICATION_SPECIFIC_DRIVER_STATE + { + _Out_ BOOL Supported; + } D3D12_FEATURE_DATA_APPLICATION_SPECIFIC_DRIVER_STATE; + +typedef struct D3D12_FEATURE_DATA_BYTECODE_BYPASS_HASH_SUPPORTED + { + _Out_ BOOL Supported; + } D3D12_FEATURE_DATA_BYTECODE_BYPASS_HASH_SUPPORTED; + +typedef struct D3D12_RESOURCE_ALLOCATION_INFO + { + UINT64 SizeInBytes; + UINT64 Alignment; + } D3D12_RESOURCE_ALLOCATION_INFO; + +typedef struct D3D12_RESOURCE_ALLOCATION_INFO1 + { + UINT64 Offset; + UINT64 Alignment; + UINT64 SizeInBytes; + } D3D12_RESOURCE_ALLOCATION_INFO1; + +typedef +enum D3D12_HEAP_TYPE + { + D3D12_HEAP_TYPE_DEFAULT = 1, + D3D12_HEAP_TYPE_UPLOAD = 2, + D3D12_HEAP_TYPE_READBACK = 3, + D3D12_HEAP_TYPE_CUSTOM = 4, + D3D12_HEAP_TYPE_GPU_UPLOAD = 5 + } D3D12_HEAP_TYPE; + +typedef +enum D3D12_CPU_PAGE_PROPERTY + { + D3D12_CPU_PAGE_PROPERTY_UNKNOWN = 0, + D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE = 1, + D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE = 2, + D3D12_CPU_PAGE_PROPERTY_WRITE_BACK = 3 + } D3D12_CPU_PAGE_PROPERTY; + +typedef +enum D3D12_MEMORY_POOL + { + D3D12_MEMORY_POOL_UNKNOWN = 0, + D3D12_MEMORY_POOL_L0 = 1, + D3D12_MEMORY_POOL_L1 = 2 + } D3D12_MEMORY_POOL; + +typedef struct D3D12_HEAP_PROPERTIES + { + D3D12_HEAP_TYPE Type; + D3D12_CPU_PAGE_PROPERTY CPUPageProperty; + D3D12_MEMORY_POOL MemoryPoolPreference; + UINT CreationNodeMask; + UINT VisibleNodeMask; + } D3D12_HEAP_PROPERTIES; + +typedef +enum D3D12_HEAP_FLAGS + { + D3D12_HEAP_FLAG_NONE = 0, + D3D12_HEAP_FLAG_SHARED = 0x1, + D3D12_HEAP_FLAG_DENY_BUFFERS = 0x4, + D3D12_HEAP_FLAG_ALLOW_DISPLAY = 0x8, + D3D12_HEAP_FLAG_SHARED_CROSS_ADAPTER = 0x20, + D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES = 0x40, + D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES = 0x80, + D3D12_HEAP_FLAG_HARDWARE_PROTECTED = 0x100, + D3D12_HEAP_FLAG_ALLOW_WRITE_WATCH = 0x200, + D3D12_HEAP_FLAG_ALLOW_SHADER_ATOMICS = 0x400, + D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT = 0x800, + D3D12_HEAP_FLAG_CREATE_NOT_ZEROED = 0x1000, + D3D12_HEAP_FLAG_TOOLS_USE_MANUAL_WRITE_TRACKING = 0x2000, + D3D12_HEAP_FLAG_ALLOW_ALL_BUFFERS_AND_TEXTURES = 0, + D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS = 0xc0, + D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES = 0x44, + D3D12_HEAP_FLAG_ALLOW_ONLY_RT_DS_TEXTURES = 0x84 + } D3D12_HEAP_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_HEAP_FLAGS ) +typedef struct D3D12_HEAP_DESC + { + UINT64 SizeInBytes; + D3D12_HEAP_PROPERTIES Properties; + UINT64 Alignment; + D3D12_HEAP_FLAGS Flags; + } D3D12_HEAP_DESC; + +typedef +enum D3D12_RESOURCE_DIMENSION + { + D3D12_RESOURCE_DIMENSION_UNKNOWN = 0, + D3D12_RESOURCE_DIMENSION_BUFFER = 1, + D3D12_RESOURCE_DIMENSION_TEXTURE1D = 2, + D3D12_RESOURCE_DIMENSION_TEXTURE2D = 3, + D3D12_RESOURCE_DIMENSION_TEXTURE3D = 4 + } D3D12_RESOURCE_DIMENSION; + +typedef struct D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO + { + _In_ DXGI_FORMAT Format; + _In_ D3D12_RESOURCE_DIMENSION Dimension; + _In_ D3D12_HEAP_PROPERTIES DestHeapProperties; + _Out_ BOOL Supported; + } D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO; + +typedef +enum D3D12_TEXTURE_LAYOUT + { + D3D12_TEXTURE_LAYOUT_UNKNOWN = 0, + D3D12_TEXTURE_LAYOUT_ROW_MAJOR = 1, + D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE = 2, + D3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE = 3 + } D3D12_TEXTURE_LAYOUT; + +typedef +enum D3D12_RESOURCE_FLAGS + { + D3D12_RESOURCE_FLAG_NONE = 0, + D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET = 0x1, + D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL = 0x2, + D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS = 0x4, + D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE = 0x8, + D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER = 0x10, + D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS = 0x20, + D3D12_RESOURCE_FLAG_VIDEO_DECODE_REFERENCE_ONLY = 0x40, + D3D12_RESOURCE_FLAG_VIDEO_ENCODE_REFERENCE_ONLY = 0x80, + D3D12_RESOURCE_FLAG_RAYTRACING_ACCELERATION_STRUCTURE = 0x100 + } D3D12_RESOURCE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_FLAGS ) +typedef struct D3D12_MIP_REGION + { + UINT Width; + UINT Height; + UINT Depth; + } D3D12_MIP_REGION; + +typedef struct D3D12_RESOURCE_DESC + { + D3D12_RESOURCE_DIMENSION Dimension; + UINT64 Alignment; + UINT64 Width; + UINT Height; + UINT16 DepthOrArraySize; + UINT16 MipLevels; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; + D3D12_TEXTURE_LAYOUT Layout; + D3D12_RESOURCE_FLAGS Flags; + } D3D12_RESOURCE_DESC; + +typedef struct D3D12_RESOURCE_DESC1 + { + D3D12_RESOURCE_DIMENSION Dimension; + UINT64 Alignment; + UINT64 Width; + UINT Height; + UINT16 DepthOrArraySize; + UINT16 MipLevels; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; + D3D12_TEXTURE_LAYOUT Layout; + D3D12_RESOURCE_FLAGS Flags; + D3D12_MIP_REGION SamplerFeedbackMipRegion; + } D3D12_RESOURCE_DESC1; + +typedef struct D3D12_DEPTH_STENCIL_VALUE + { + FLOAT Depth; + UINT8 Stencil; + } D3D12_DEPTH_STENCIL_VALUE; + +typedef struct D3D12_CLEAR_VALUE + { + DXGI_FORMAT Format; + union + { + FLOAT Color[ 4 ]; + D3D12_DEPTH_STENCIL_VALUE DepthStencil; + } ; + } D3D12_CLEAR_VALUE; + +typedef struct D3D12_RANGE + { + SIZE_T Begin; + SIZE_T End; + } D3D12_RANGE; + +typedef struct D3D12_RANGE_UINT64 + { + UINT64 Begin; + UINT64 End; + } D3D12_RANGE_UINT64; + +typedef struct D3D12_SUBRESOURCE_RANGE_UINT64 + { + UINT Subresource; + D3D12_RANGE_UINT64 Range; + } D3D12_SUBRESOURCE_RANGE_UINT64; + +typedef struct D3D12_SUBRESOURCE_INFO + { + UINT64 Offset; + UINT RowPitch; + UINT DepthPitch; + } D3D12_SUBRESOURCE_INFO; + +typedef struct D3D12_TILED_RESOURCE_COORDINATE + { + UINT X; + UINT Y; + UINT Z; + UINT Subresource; + } D3D12_TILED_RESOURCE_COORDINATE; + +typedef struct D3D12_TILE_REGION_SIZE + { + UINT NumTiles; + BOOL UseBox; + UINT Width; + UINT16 Height; + UINT16 Depth; + } D3D12_TILE_REGION_SIZE; + +typedef +enum D3D12_TILE_RANGE_FLAGS + { + D3D12_TILE_RANGE_FLAG_NONE = 0, + D3D12_TILE_RANGE_FLAG_NULL = 1, + D3D12_TILE_RANGE_FLAG_SKIP = 2, + D3D12_TILE_RANGE_FLAG_REUSE_SINGLE_TILE = 4 + } D3D12_TILE_RANGE_FLAGS; + +typedef struct D3D12_SUBRESOURCE_TILING + { + UINT WidthInTiles; + UINT16 HeightInTiles; + UINT16 DepthInTiles; + UINT StartTileIndexInOverallResource; + } D3D12_SUBRESOURCE_TILING; + +typedef struct D3D12_TILE_SHAPE + { + UINT WidthInTexels; + UINT HeightInTexels; + UINT DepthInTexels; + } D3D12_TILE_SHAPE; + +typedef struct D3D12_PACKED_MIP_INFO + { + UINT8 NumStandardMips; + UINT8 NumPackedMips; + UINT NumTilesForPackedMips; + UINT StartTileIndexInOverallResource; + } D3D12_PACKED_MIP_INFO; + +typedef +enum D3D12_TILE_MAPPING_FLAGS + { + D3D12_TILE_MAPPING_FLAG_NONE = 0, + D3D12_TILE_MAPPING_FLAG_NO_HAZARD = 0x1 + } D3D12_TILE_MAPPING_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_TILE_MAPPING_FLAGS ) +typedef +enum D3D12_TILE_COPY_FLAGS + { + D3D12_TILE_COPY_FLAG_NONE = 0, + D3D12_TILE_COPY_FLAG_NO_HAZARD = 0x1, + D3D12_TILE_COPY_FLAG_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2, + D3D12_TILE_COPY_FLAG_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4 + } D3D12_TILE_COPY_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_TILE_COPY_FLAGS ) +typedef +enum D3D12_RESOURCE_STATES + { + D3D12_RESOURCE_STATE_COMMON = 0, + D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER = 0x1, + D3D12_RESOURCE_STATE_INDEX_BUFFER = 0x2, + D3D12_RESOURCE_STATE_RENDER_TARGET = 0x4, + D3D12_RESOURCE_STATE_UNORDERED_ACCESS = 0x8, + D3D12_RESOURCE_STATE_DEPTH_WRITE = 0x10, + D3D12_RESOURCE_STATE_DEPTH_READ = 0x20, + D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE = 0x40, + D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE = 0x80, + D3D12_RESOURCE_STATE_STREAM_OUT = 0x100, + D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT = 0x200, + D3D12_RESOURCE_STATE_COPY_DEST = 0x400, + D3D12_RESOURCE_STATE_COPY_SOURCE = 0x800, + D3D12_RESOURCE_STATE_RESOLVE_DEST = 0x1000, + D3D12_RESOURCE_STATE_RESOLVE_SOURCE = 0x2000, + D3D12_RESOURCE_STATE_RAYTRACING_ACCELERATION_STRUCTURE = 0x400000, + D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE = 0x1000000, + D3D12_RESOURCE_STATE_RESERVED_INTERNAL_8000 = 0x8000, + D3D12_RESOURCE_STATE_RESERVED_INTERNAL_4000 = 0x4000, + D3D12_RESOURCE_STATE_RESERVED_INTERNAL_100000 = 0x100000, + D3D12_RESOURCE_STATE_RESERVED_INTERNAL_40000000 = 0x40000000, + D3D12_RESOURCE_STATE_RESERVED_INTERNAL_80000000 = 0x80000000, + D3D12_RESOURCE_STATE_GENERIC_READ = ( ( ( ( ( 0x1 | 0x2 ) | 0x40 ) | 0x80 ) | 0x200 ) | 0x800 ) , + D3D12_RESOURCE_STATE_ALL_SHADER_RESOURCE = ( 0x40 | 0x80 ) , + D3D12_RESOURCE_STATE_PRESENT = 0, + D3D12_RESOURCE_STATE_PREDICATION = 0x200, + D3D12_RESOURCE_STATE_VIDEO_DECODE_READ = 0x10000, + D3D12_RESOURCE_STATE_VIDEO_DECODE_WRITE = 0x20000, + D3D12_RESOURCE_STATE_VIDEO_PROCESS_READ = 0x40000, + D3D12_RESOURCE_STATE_VIDEO_PROCESS_WRITE = 0x80000, + D3D12_RESOURCE_STATE_VIDEO_ENCODE_READ = 0x200000, + D3D12_RESOURCE_STATE_VIDEO_ENCODE_WRITE = 0x800000 + } D3D12_RESOURCE_STATES; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_STATES ) +typedef +enum D3D12_RESOURCE_BARRIER_TYPE + { + D3D12_RESOURCE_BARRIER_TYPE_TRANSITION = 0, + D3D12_RESOURCE_BARRIER_TYPE_ALIASING = ( D3D12_RESOURCE_BARRIER_TYPE_TRANSITION + 1 ) , + D3D12_RESOURCE_BARRIER_TYPE_UAV = ( D3D12_RESOURCE_BARRIER_TYPE_ALIASING + 1 ) + } D3D12_RESOURCE_BARRIER_TYPE; + + +typedef struct D3D12_RESOURCE_TRANSITION_BARRIER + { + ID3D12Resource *pResource; + UINT Subresource; + D3D12_RESOURCE_STATES StateBefore; + D3D12_RESOURCE_STATES StateAfter; + } D3D12_RESOURCE_TRANSITION_BARRIER; + +typedef struct D3D12_RESOURCE_ALIASING_BARRIER + { + ID3D12Resource *pResourceBefore; + ID3D12Resource *pResourceAfter; + } D3D12_RESOURCE_ALIASING_BARRIER; + +typedef struct D3D12_RESOURCE_UAV_BARRIER + { + ID3D12Resource *pResource; + } D3D12_RESOURCE_UAV_BARRIER; + +typedef +enum D3D12_RESOURCE_BARRIER_FLAGS + { + D3D12_RESOURCE_BARRIER_FLAG_NONE = 0, + D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY = 0x1, + D3D12_RESOURCE_BARRIER_FLAG_END_ONLY = 0x2 + } D3D12_RESOURCE_BARRIER_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_BARRIER_FLAGS ) +typedef struct D3D12_RESOURCE_BARRIER + { + D3D12_RESOURCE_BARRIER_TYPE Type; + D3D12_RESOURCE_BARRIER_FLAGS Flags; + union + { + D3D12_RESOURCE_TRANSITION_BARRIER Transition; + D3D12_RESOURCE_ALIASING_BARRIER Aliasing; + D3D12_RESOURCE_UAV_BARRIER UAV; + } ; + } D3D12_RESOURCE_BARRIER; + +typedef struct D3D12_SUBRESOURCE_FOOTPRINT + { + DXGI_FORMAT Format; + UINT Width; + UINT Height; + UINT Depth; + UINT RowPitch; + } D3D12_SUBRESOURCE_FOOTPRINT; + +typedef struct D3D12_PLACED_SUBRESOURCE_FOOTPRINT + { + UINT64 Offset; + D3D12_SUBRESOURCE_FOOTPRINT Footprint; + } D3D12_PLACED_SUBRESOURCE_FOOTPRINT; + +typedef +enum D3D12_TEXTURE_COPY_TYPE + { + D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX = 0, + D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT = 1 + } D3D12_TEXTURE_COPY_TYPE; + +typedef struct D3D12_TEXTURE_COPY_LOCATION + { + ID3D12Resource *pResource; + D3D12_TEXTURE_COPY_TYPE Type; + union + { + D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint; + UINT SubresourceIndex; + } ; + } D3D12_TEXTURE_COPY_LOCATION; + +typedef +enum D3D12_RESOLVE_MODE + { + D3D12_RESOLVE_MODE_DECOMPRESS = 0, + D3D12_RESOLVE_MODE_MIN = 1, + D3D12_RESOLVE_MODE_MAX = 2, + D3D12_RESOLVE_MODE_AVERAGE = 3, + D3D12_RESOLVE_MODE_ENCODE_SAMPLER_FEEDBACK = 4, + D3D12_RESOLVE_MODE_DECODE_SAMPLER_FEEDBACK = 5 + } D3D12_RESOLVE_MODE; + +typedef struct D3D12_SAMPLE_POSITION + { + INT8 X; + INT8 Y; + } D3D12_SAMPLE_POSITION; + +typedef struct D3D12_VIEW_INSTANCE_LOCATION + { + UINT ViewportArrayIndex; + UINT RenderTargetArrayIndex; + } D3D12_VIEW_INSTANCE_LOCATION; + +typedef +enum D3D12_VIEW_INSTANCING_FLAGS + { + D3D12_VIEW_INSTANCING_FLAG_NONE = 0, + D3D12_VIEW_INSTANCING_FLAG_ENABLE_VIEW_INSTANCE_MASKING = 0x1 + } D3D12_VIEW_INSTANCING_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_VIEW_INSTANCING_FLAGS ) +typedef struct D3D12_VIEW_INSTANCING_DESC + { + UINT ViewInstanceCount; + _Field_size_full_(ViewInstanceCount) const D3D12_VIEW_INSTANCE_LOCATION *pViewInstanceLocations; + D3D12_VIEW_INSTANCING_FLAGS Flags; + } D3D12_VIEW_INSTANCING_DESC; + +typedef +enum D3D12_SHADER_COMPONENT_MAPPING + { + D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_0 = 0, + D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_1 = 1, + D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_2 = 2, + D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_3 = 3, + D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_0 = 4, + D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_1 = 5 + } D3D12_SHADER_COMPONENT_MAPPING; + +#define D3D12_SHADER_COMPONENT_MAPPING_MASK 0x7 +#define D3D12_SHADER_COMPONENT_MAPPING_SHIFT 3 +#define D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES (1<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*4)) +#define D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(Src0,Src1,Src2,Src3) ((((Src0)&D3D12_SHADER_COMPONENT_MAPPING_MASK)| \ + (((Src1)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<> (D3D12_SHADER_COMPONENT_MAPPING_SHIFT*ComponentToExtract) & D3D12_SHADER_COMPONENT_MAPPING_MASK)) +#define D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(0,1,2,3) +typedef +enum D3D12_BUFFER_SRV_FLAGS + { + D3D12_BUFFER_SRV_FLAG_NONE = 0, + D3D12_BUFFER_SRV_FLAG_RAW = 0x1 + } D3D12_BUFFER_SRV_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_BUFFER_SRV_FLAGS ) +typedef struct D3D12_BUFFER_SRV + { + UINT64 FirstElement; + UINT NumElements; + UINT StructureByteStride; + D3D12_BUFFER_SRV_FLAGS Flags; + } D3D12_BUFFER_SRV; + +typedef struct D3D12_TEX1D_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + FLOAT ResourceMinLODClamp; + } D3D12_TEX1D_SRV; + +typedef struct D3D12_TEX1D_ARRAY_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; + FLOAT ResourceMinLODClamp; + } D3D12_TEX1D_ARRAY_SRV; + +typedef struct D3D12_TEX2D_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + UINT PlaneSlice; + FLOAT ResourceMinLODClamp; + } D3D12_TEX2D_SRV; + +typedef struct D3D12_TEX2D_ARRAY_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; + FLOAT ResourceMinLODClamp; + } D3D12_TEX2D_ARRAY_SRV; + +typedef struct D3D12_TEX3D_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + FLOAT ResourceMinLODClamp; + } D3D12_TEX3D_SRV; + +typedef struct D3D12_TEXCUBE_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + FLOAT ResourceMinLODClamp; + } D3D12_TEXCUBE_SRV; + +typedef struct D3D12_TEXCUBE_ARRAY_SRV + { + UINT MostDetailedMip; + UINT MipLevels; + UINT First2DArrayFace; + UINT NumCubes; + FLOAT ResourceMinLODClamp; + } D3D12_TEXCUBE_ARRAY_SRV; + +typedef struct D3D12_TEX2DMS_SRV + { + UINT UnusedField_NothingToDefine; + } D3D12_TEX2DMS_SRV; + +typedef struct D3D12_TEX2DMS_ARRAY_SRV + { + UINT FirstArraySlice; + UINT ArraySize; + } D3D12_TEX2DMS_ARRAY_SRV; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV + { + D3D12_GPU_VIRTUAL_ADDRESS Location; + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV; + +typedef +enum D3D12_SRV_DIMENSION + { + D3D12_SRV_DIMENSION_UNKNOWN = 0, + D3D12_SRV_DIMENSION_BUFFER = 1, + D3D12_SRV_DIMENSION_TEXTURE1D = 2, + D3D12_SRV_DIMENSION_TEXTURE1DARRAY = 3, + D3D12_SRV_DIMENSION_TEXTURE2D = 4, + D3D12_SRV_DIMENSION_TEXTURE2DARRAY = 5, + D3D12_SRV_DIMENSION_TEXTURE2DMS = 6, + D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D12_SRV_DIMENSION_TEXTURE3D = 8, + D3D12_SRV_DIMENSION_TEXTURECUBE = 9, + D3D12_SRV_DIMENSION_TEXTURECUBEARRAY = 10, + D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE = 11 + } D3D12_SRV_DIMENSION; + +typedef struct D3D12_SHADER_RESOURCE_VIEW_DESC + { + DXGI_FORMAT Format; + D3D12_SRV_DIMENSION ViewDimension; + UINT Shader4ComponentMapping; + union + { + D3D12_BUFFER_SRV Buffer; + D3D12_TEX1D_SRV Texture1D; + D3D12_TEX1D_ARRAY_SRV Texture1DArray; + D3D12_TEX2D_SRV Texture2D; + D3D12_TEX2D_ARRAY_SRV Texture2DArray; + D3D12_TEX2DMS_SRV Texture2DMS; + D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray; + D3D12_TEX3D_SRV Texture3D; + D3D12_TEXCUBE_SRV TextureCube; + D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray; + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV RaytracingAccelerationStructure; + } ; + } D3D12_SHADER_RESOURCE_VIEW_DESC; + +typedef struct D3D12_CONSTANT_BUFFER_VIEW_DESC + { + D3D12_GPU_VIRTUAL_ADDRESS BufferLocation; + UINT SizeInBytes; + } D3D12_CONSTANT_BUFFER_VIEW_DESC; + +typedef +enum D3D12_FILTER + { + D3D12_FILTER_MIN_MAG_MIP_POINT = 0, + D3D12_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x1, + D3D12_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x4, + D3D12_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x5, + D3D12_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x10, + D3D12_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x11, + D3D12_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x14, + D3D12_FILTER_MIN_MAG_MIP_LINEAR = 0x15, + D3D12_FILTER_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x54, + D3D12_FILTER_ANISOTROPIC = 0x55, + D3D12_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x80, + D3D12_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x81, + D3D12_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x84, + D3D12_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x85, + D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x90, + D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x91, + D3D12_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x94, + D3D12_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x95, + D3D12_FILTER_COMPARISON_MIN_MAG_ANISOTROPIC_MIP_POINT = 0xd4, + D3D12_FILTER_COMPARISON_ANISOTROPIC = 0xd5, + D3D12_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x100, + D3D12_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x101, + D3D12_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x104, + D3D12_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x105, + D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x110, + D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x111, + D3D12_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x114, + D3D12_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x115, + D3D12_FILTER_MINIMUM_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x154, + D3D12_FILTER_MINIMUM_ANISOTROPIC = 0x155, + D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x180, + D3D12_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x181, + D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x184, + D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x185, + D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x190, + D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x191, + D3D12_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x194, + D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x195, + D3D12_FILTER_MAXIMUM_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x1d4, + D3D12_FILTER_MAXIMUM_ANISOTROPIC = 0x1d5 + } D3D12_FILTER; + +typedef +enum D3D12_FILTER_TYPE + { + D3D12_FILTER_TYPE_POINT = 0, + D3D12_FILTER_TYPE_LINEAR = 1 + } D3D12_FILTER_TYPE; + +typedef +enum D3D12_FILTER_REDUCTION_TYPE + { + D3D12_FILTER_REDUCTION_TYPE_STANDARD = 0, + D3D12_FILTER_REDUCTION_TYPE_COMPARISON = 1, + D3D12_FILTER_REDUCTION_TYPE_MINIMUM = 2, + D3D12_FILTER_REDUCTION_TYPE_MAXIMUM = 3 + } D3D12_FILTER_REDUCTION_TYPE; + +#define D3D12_FILTER_REDUCTION_TYPE_MASK ( 0x3 ) + +#define D3D12_FILTER_REDUCTION_TYPE_SHIFT ( 7 ) + +#define D3D12_FILTER_TYPE_MASK ( 0x3 ) + +#define D3D12_MIN_FILTER_SHIFT ( 4 ) + +#define D3D12_MAG_FILTER_SHIFT ( 2 ) + +#define D3D12_MIP_FILTER_SHIFT ( 0 ) + +#define D3D12_ANISOTROPIC_FILTERING_BIT ( 0x40 ) + +#define D3D12_ENCODE_BASIC_FILTER( min, mag, mip, reduction ) \ + ( ( D3D12_FILTER ) ( \ + ( ( ( min ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MIN_FILTER_SHIFT ) | \ + ( ( ( mag ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MAG_FILTER_SHIFT ) | \ + ( ( ( mip ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MIP_FILTER_SHIFT ) | \ + ( ( ( reduction ) & D3D12_FILTER_REDUCTION_TYPE_MASK ) << D3D12_FILTER_REDUCTION_TYPE_SHIFT ) ) ) +#define D3D12_ENCODE_ANISOTROPIC_FILTER( reduction ) \ + ( ( D3D12_FILTER ) ( \ + D3D12_ANISOTROPIC_FILTERING_BIT | \ + D3D12_ENCODE_BASIC_FILTER( D3D12_FILTER_TYPE_LINEAR, \ + D3D12_FILTER_TYPE_LINEAR, \ + D3D12_FILTER_TYPE_LINEAR, \ + reduction ) ) ) +#define D3D12_ENCODE_MIN_MAG_ANISOTROPIC_MIP_POINT_FILTER( reduction ) \ + ( ( D3D12_FILTER ) ( \ + D3D12_ANISOTROPIC_FILTERING_BIT | \ + D3D12_ENCODE_BASIC_FILTER( D3D12_FILTER_TYPE_LINEAR, \ + D3D12_FILTER_TYPE_LINEAR, \ + D3D12_FILTER_TYPE_POINT, \ + reduction ) ) ) +#define D3D12_DECODE_MIN_FILTER( D3D12Filter ) \ + ( ( D3D12_FILTER_TYPE ) \ + ( ( ( D3D12Filter ) >> D3D12_MIN_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) ) +#define D3D12_DECODE_MAG_FILTER( D3D12Filter ) \ + ( ( D3D12_FILTER_TYPE ) \ + ( ( ( D3D12Filter ) >> D3D12_MAG_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) ) +#define D3D12_DECODE_MIP_FILTER( D3D12Filter ) \ + ( ( D3D12_FILTER_TYPE ) \ + ( ( ( D3D12Filter ) >> D3D12_MIP_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) ) +#define D3D12_DECODE_FILTER_REDUCTION( D3D12Filter ) \ + ( ( D3D12_FILTER_REDUCTION_TYPE ) \ + ( ( ( D3D12Filter ) >> D3D12_FILTER_REDUCTION_TYPE_SHIFT ) & D3D12_FILTER_REDUCTION_TYPE_MASK ) ) +#define D3D12_DECODE_IS_COMPARISON_FILTER( D3D12Filter ) \ + ( D3D12_DECODE_FILTER_REDUCTION( D3D12Filter ) == D3D12_FILTER_REDUCTION_TYPE_COMPARISON ) +#define D3D12_DECODE_IS_ANISOTROPIC_FILTER( D3D12Filter ) \ + ( ( ( D3D12Filter ) & D3D12_ANISOTROPIC_FILTERING_BIT ) && \ + ( D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MIN_FILTER( D3D12Filter ) ) && \ + ( D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MAG_FILTER( D3D12Filter ) ) ) +typedef +enum D3D12_TEXTURE_ADDRESS_MODE + { + D3D12_TEXTURE_ADDRESS_MODE_WRAP = 1, + D3D12_TEXTURE_ADDRESS_MODE_MIRROR = 2, + D3D12_TEXTURE_ADDRESS_MODE_CLAMP = 3, + D3D12_TEXTURE_ADDRESS_MODE_BORDER = 4, + D3D12_TEXTURE_ADDRESS_MODE_MIRROR_ONCE = 5 + } D3D12_TEXTURE_ADDRESS_MODE; + +typedef struct D3D12_SAMPLER_DESC + { + D3D12_FILTER Filter; + D3D12_TEXTURE_ADDRESS_MODE AddressU; + D3D12_TEXTURE_ADDRESS_MODE AddressV; + D3D12_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D12_COMPARISON_FUNC ComparisonFunc; + FLOAT BorderColor[ 4 ]; + FLOAT MinLOD; + FLOAT MaxLOD; + } D3D12_SAMPLER_DESC; + +typedef +enum D3D12_SAMPLER_FLAGS + { + D3D12_SAMPLER_FLAG_NONE = 0, + D3D12_SAMPLER_FLAG_UINT_BORDER_COLOR = 0x1, + D3D12_SAMPLER_FLAG_NON_NORMALIZED_COORDINATES = 0x2 + } D3D12_SAMPLER_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_SAMPLER_FLAGS ) +typedef struct D3D12_SAMPLER_DESC2 + { + D3D12_FILTER Filter; + D3D12_TEXTURE_ADDRESS_MODE AddressU; + D3D12_TEXTURE_ADDRESS_MODE AddressV; + D3D12_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D12_COMPARISON_FUNC ComparisonFunc; + union + { + FLOAT FloatBorderColor[ 4 ]; + UINT UintBorderColor[ 4 ]; + } ; + FLOAT MinLOD; + FLOAT MaxLOD; + D3D12_SAMPLER_FLAGS Flags; + } D3D12_SAMPLER_DESC2; + +typedef +enum D3D12_BUFFER_UAV_FLAGS + { + D3D12_BUFFER_UAV_FLAG_NONE = 0, + D3D12_BUFFER_UAV_FLAG_RAW = 0x1 + } D3D12_BUFFER_UAV_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_BUFFER_UAV_FLAGS ) +typedef struct D3D12_BUFFER_UAV + { + UINT64 FirstElement; + UINT NumElements; + UINT StructureByteStride; + UINT64 CounterOffsetInBytes; + D3D12_BUFFER_UAV_FLAGS Flags; + } D3D12_BUFFER_UAV; + +typedef struct D3D12_TEX1D_UAV + { + UINT MipSlice; + } D3D12_TEX1D_UAV; + +typedef struct D3D12_TEX1D_ARRAY_UAV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D12_TEX1D_ARRAY_UAV; + +typedef struct D3D12_TEX2D_UAV + { + UINT MipSlice; + UINT PlaneSlice; + } D3D12_TEX2D_UAV; + +typedef struct D3D12_TEX2D_ARRAY_UAV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; + } D3D12_TEX2D_ARRAY_UAV; + +typedef struct D3D12_TEX2DMS_UAV + { + UINT UnusedField_NothingToDefine; + } D3D12_TEX2DMS_UAV; + +typedef struct D3D12_TEX2DMS_ARRAY_UAV + { + UINT FirstArraySlice; + UINT ArraySize; + } D3D12_TEX2DMS_ARRAY_UAV; + +typedef struct D3D12_TEX3D_UAV + { + UINT MipSlice; + UINT FirstWSlice; + UINT WSize; + } D3D12_TEX3D_UAV; + +typedef +enum D3D12_UAV_DIMENSION + { + D3D12_UAV_DIMENSION_UNKNOWN = 0, + D3D12_UAV_DIMENSION_BUFFER = 1, + D3D12_UAV_DIMENSION_TEXTURE1D = 2, + D3D12_UAV_DIMENSION_TEXTURE1DARRAY = 3, + D3D12_UAV_DIMENSION_TEXTURE2D = 4, + D3D12_UAV_DIMENSION_TEXTURE2DARRAY = 5, + D3D12_UAV_DIMENSION_TEXTURE2DMS = 6, + D3D12_UAV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D12_UAV_DIMENSION_TEXTURE3D = 8 + } D3D12_UAV_DIMENSION; + +typedef struct D3D12_UNORDERED_ACCESS_VIEW_DESC + { + DXGI_FORMAT Format; + D3D12_UAV_DIMENSION ViewDimension; + union + { + D3D12_BUFFER_UAV Buffer; + D3D12_TEX1D_UAV Texture1D; + D3D12_TEX1D_ARRAY_UAV Texture1DArray; + D3D12_TEX2D_UAV Texture2D; + D3D12_TEX2D_ARRAY_UAV Texture2DArray; + D3D12_TEX2DMS_UAV Texture2DMS; + D3D12_TEX2DMS_ARRAY_UAV Texture2DMSArray; + D3D12_TEX3D_UAV Texture3D; + } ; + } D3D12_UNORDERED_ACCESS_VIEW_DESC; + +typedef struct D3D12_BUFFER_RTV + { + UINT64 FirstElement; + UINT NumElements; + } D3D12_BUFFER_RTV; + +typedef struct D3D12_TEX1D_RTV + { + UINT MipSlice; + } D3D12_TEX1D_RTV; + +typedef struct D3D12_TEX1D_ARRAY_RTV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D12_TEX1D_ARRAY_RTV; + +typedef struct D3D12_TEX2D_RTV + { + UINT MipSlice; + UINT PlaneSlice; + } D3D12_TEX2D_RTV; + +typedef struct D3D12_TEX2DMS_RTV + { + UINT UnusedField_NothingToDefine; + } D3D12_TEX2DMS_RTV; + +typedef struct D3D12_TEX2D_ARRAY_RTV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; + } D3D12_TEX2D_ARRAY_RTV; + +typedef struct D3D12_TEX2DMS_ARRAY_RTV + { + UINT FirstArraySlice; + UINT ArraySize; + } D3D12_TEX2DMS_ARRAY_RTV; + +typedef struct D3D12_TEX3D_RTV + { + UINT MipSlice; + UINT FirstWSlice; + UINT WSize; + } D3D12_TEX3D_RTV; + +typedef +enum D3D12_RTV_DIMENSION + { + D3D12_RTV_DIMENSION_UNKNOWN = 0, + D3D12_RTV_DIMENSION_BUFFER = 1, + D3D12_RTV_DIMENSION_TEXTURE1D = 2, + D3D12_RTV_DIMENSION_TEXTURE1DARRAY = 3, + D3D12_RTV_DIMENSION_TEXTURE2D = 4, + D3D12_RTV_DIMENSION_TEXTURE2DARRAY = 5, + D3D12_RTV_DIMENSION_TEXTURE2DMS = 6, + D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D12_RTV_DIMENSION_TEXTURE3D = 8 + } D3D12_RTV_DIMENSION; + +typedef struct D3D12_RENDER_TARGET_VIEW_DESC + { + DXGI_FORMAT Format; + D3D12_RTV_DIMENSION ViewDimension; + union + { + D3D12_BUFFER_RTV Buffer; + D3D12_TEX1D_RTV Texture1D; + D3D12_TEX1D_ARRAY_RTV Texture1DArray; + D3D12_TEX2D_RTV Texture2D; + D3D12_TEX2D_ARRAY_RTV Texture2DArray; + D3D12_TEX2DMS_RTV Texture2DMS; + D3D12_TEX2DMS_ARRAY_RTV Texture2DMSArray; + D3D12_TEX3D_RTV Texture3D; + } ; + } D3D12_RENDER_TARGET_VIEW_DESC; + +typedef struct D3D12_TEX1D_DSV + { + UINT MipSlice; + } D3D12_TEX1D_DSV; + +typedef struct D3D12_TEX1D_ARRAY_DSV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D12_TEX1D_ARRAY_DSV; + +typedef struct D3D12_TEX2D_DSV + { + UINT MipSlice; + } D3D12_TEX2D_DSV; + +typedef struct D3D12_TEX2D_ARRAY_DSV + { + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + } D3D12_TEX2D_ARRAY_DSV; + +typedef struct D3D12_TEX2DMS_DSV + { + UINT UnusedField_NothingToDefine; + } D3D12_TEX2DMS_DSV; + +typedef struct D3D12_TEX2DMS_ARRAY_DSV + { + UINT FirstArraySlice; + UINT ArraySize; + } D3D12_TEX2DMS_ARRAY_DSV; + +typedef +enum D3D12_DSV_FLAGS + { + D3D12_DSV_FLAG_NONE = 0, + D3D12_DSV_FLAG_READ_ONLY_DEPTH = 0x1, + D3D12_DSV_FLAG_READ_ONLY_STENCIL = 0x2 + } D3D12_DSV_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_DSV_FLAGS ) +typedef +enum D3D12_DSV_DIMENSION + { + D3D12_DSV_DIMENSION_UNKNOWN = 0, + D3D12_DSV_DIMENSION_TEXTURE1D = 1, + D3D12_DSV_DIMENSION_TEXTURE1DARRAY = 2, + D3D12_DSV_DIMENSION_TEXTURE2D = 3, + D3D12_DSV_DIMENSION_TEXTURE2DARRAY = 4, + D3D12_DSV_DIMENSION_TEXTURE2DMS = 5, + D3D12_DSV_DIMENSION_TEXTURE2DMSARRAY = 6 + } D3D12_DSV_DIMENSION; + +typedef struct D3D12_DEPTH_STENCIL_VIEW_DESC + { + DXGI_FORMAT Format; + D3D12_DSV_DIMENSION ViewDimension; + D3D12_DSV_FLAGS Flags; + union + { + D3D12_TEX1D_DSV Texture1D; + D3D12_TEX1D_ARRAY_DSV Texture1DArray; + D3D12_TEX2D_DSV Texture2D; + D3D12_TEX2D_ARRAY_DSV Texture2DArray; + D3D12_TEX2DMS_DSV Texture2DMS; + D3D12_TEX2DMS_ARRAY_DSV Texture2DMSArray; + } ; + } D3D12_DEPTH_STENCIL_VIEW_DESC; + +typedef +enum D3D12_CLEAR_FLAGS + { + D3D12_CLEAR_FLAG_DEPTH = 0x1, + D3D12_CLEAR_FLAG_STENCIL = 0x2 + } D3D12_CLEAR_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_CLEAR_FLAGS ) +typedef +enum D3D12_FENCE_FLAGS + { + D3D12_FENCE_FLAG_NONE = 0, + D3D12_FENCE_FLAG_SHARED = 0x1, + D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER = 0x2, + D3D12_FENCE_FLAG_NON_MONITORED = 0x4 + } D3D12_FENCE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_FENCE_FLAGS ) +typedef +enum D3D12_DESCRIPTOR_HEAP_TYPE + { + D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV = 0, + D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER = ( D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV + 1 ) , + D3D12_DESCRIPTOR_HEAP_TYPE_RTV = ( D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER + 1 ) , + D3D12_DESCRIPTOR_HEAP_TYPE_DSV = ( D3D12_DESCRIPTOR_HEAP_TYPE_RTV + 1 ) , + D3D12_DESCRIPTOR_HEAP_TYPE_NUM_TYPES = ( D3D12_DESCRIPTOR_HEAP_TYPE_DSV + 1 ) + } D3D12_DESCRIPTOR_HEAP_TYPE; + +typedef +enum D3D12_DESCRIPTOR_HEAP_FLAGS + { + D3D12_DESCRIPTOR_HEAP_FLAG_NONE = 0, + D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE = 0x1 + } D3D12_DESCRIPTOR_HEAP_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_DESCRIPTOR_HEAP_FLAGS ) +typedef struct D3D12_DESCRIPTOR_HEAP_DESC + { + D3D12_DESCRIPTOR_HEAP_TYPE Type; + UINT NumDescriptors; + D3D12_DESCRIPTOR_HEAP_FLAGS Flags; + UINT NodeMask; + } D3D12_DESCRIPTOR_HEAP_DESC; + +typedef +enum D3D12_DESCRIPTOR_RANGE_TYPE + { + D3D12_DESCRIPTOR_RANGE_TYPE_SRV = 0, + D3D12_DESCRIPTOR_RANGE_TYPE_UAV = ( D3D12_DESCRIPTOR_RANGE_TYPE_SRV + 1 ) , + D3D12_DESCRIPTOR_RANGE_TYPE_CBV = ( D3D12_DESCRIPTOR_RANGE_TYPE_UAV + 1 ) , + D3D12_DESCRIPTOR_RANGE_TYPE_SAMPLER = ( D3D12_DESCRIPTOR_RANGE_TYPE_CBV + 1 ) + } D3D12_DESCRIPTOR_RANGE_TYPE; + +typedef struct D3D12_DESCRIPTOR_RANGE + { + D3D12_DESCRIPTOR_RANGE_TYPE RangeType; + UINT NumDescriptors; + UINT BaseShaderRegister; + UINT RegisterSpace; + UINT OffsetInDescriptorsFromTableStart; + } D3D12_DESCRIPTOR_RANGE; + +typedef struct D3D12_ROOT_DESCRIPTOR_TABLE + { + UINT NumDescriptorRanges; + _Field_size_full_(NumDescriptorRanges) const D3D12_DESCRIPTOR_RANGE *pDescriptorRanges; + } D3D12_ROOT_DESCRIPTOR_TABLE; + +typedef struct D3D12_ROOT_CONSTANTS + { + UINT ShaderRegister; + UINT RegisterSpace; + UINT Num32BitValues; + } D3D12_ROOT_CONSTANTS; + +typedef struct D3D12_ROOT_DESCRIPTOR + { + UINT ShaderRegister; + UINT RegisterSpace; + } D3D12_ROOT_DESCRIPTOR; + +typedef +enum D3D12_SHADER_VISIBILITY + { + D3D12_SHADER_VISIBILITY_ALL = 0, + D3D12_SHADER_VISIBILITY_VERTEX = 1, + D3D12_SHADER_VISIBILITY_HULL = 2, + D3D12_SHADER_VISIBILITY_DOMAIN = 3, + D3D12_SHADER_VISIBILITY_GEOMETRY = 4, + D3D12_SHADER_VISIBILITY_PIXEL = 5, + D3D12_SHADER_VISIBILITY_AMPLIFICATION = 6, + D3D12_SHADER_VISIBILITY_MESH = 7 + } D3D12_SHADER_VISIBILITY; + +typedef +enum D3D12_ROOT_PARAMETER_TYPE + { + D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE = 0, + D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS = ( D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE + 1 ) , + D3D12_ROOT_PARAMETER_TYPE_CBV = ( D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS + 1 ) , + D3D12_ROOT_PARAMETER_TYPE_SRV = ( D3D12_ROOT_PARAMETER_TYPE_CBV + 1 ) , + D3D12_ROOT_PARAMETER_TYPE_UAV = ( D3D12_ROOT_PARAMETER_TYPE_SRV + 1 ) + } D3D12_ROOT_PARAMETER_TYPE; + +typedef struct D3D12_ROOT_PARAMETER + { + D3D12_ROOT_PARAMETER_TYPE ParameterType; + union + { + D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable; + D3D12_ROOT_CONSTANTS Constants; + D3D12_ROOT_DESCRIPTOR Descriptor; + } ; + D3D12_SHADER_VISIBILITY ShaderVisibility; + } D3D12_ROOT_PARAMETER; + +typedef +enum D3D12_ROOT_SIGNATURE_FLAGS + { + D3D12_ROOT_SIGNATURE_FLAG_NONE = 0, + D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT = 0x1, + D3D12_ROOT_SIGNATURE_FLAG_DENY_VERTEX_SHADER_ROOT_ACCESS = 0x2, + D3D12_ROOT_SIGNATURE_FLAG_DENY_HULL_SHADER_ROOT_ACCESS = 0x4, + D3D12_ROOT_SIGNATURE_FLAG_DENY_DOMAIN_SHADER_ROOT_ACCESS = 0x8, + D3D12_ROOT_SIGNATURE_FLAG_DENY_GEOMETRY_SHADER_ROOT_ACCESS = 0x10, + D3D12_ROOT_SIGNATURE_FLAG_DENY_PIXEL_SHADER_ROOT_ACCESS = 0x20, + D3D12_ROOT_SIGNATURE_FLAG_ALLOW_STREAM_OUTPUT = 0x40, + D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE = 0x80, + D3D12_ROOT_SIGNATURE_FLAG_DENY_AMPLIFICATION_SHADER_ROOT_ACCESS = 0x100, + D3D12_ROOT_SIGNATURE_FLAG_DENY_MESH_SHADER_ROOT_ACCESS = 0x200, + D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED = 0x400, + D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED = 0x800 + } D3D12_ROOT_SIGNATURE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_ROOT_SIGNATURE_FLAGS ) +typedef +enum D3D12_STATIC_BORDER_COLOR + { + D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK = 0, + D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK = ( D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK + 1 ) , + D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK + 1 ) , + D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE + 1 ) , + D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE_UINT = ( D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT + 1 ) + } D3D12_STATIC_BORDER_COLOR; + +typedef struct D3D12_STATIC_SAMPLER_DESC + { + D3D12_FILTER Filter; + D3D12_TEXTURE_ADDRESS_MODE AddressU; + D3D12_TEXTURE_ADDRESS_MODE AddressV; + D3D12_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D12_COMPARISON_FUNC ComparisonFunc; + D3D12_STATIC_BORDER_COLOR BorderColor; + FLOAT MinLOD; + FLOAT MaxLOD; + UINT ShaderRegister; + UINT RegisterSpace; + D3D12_SHADER_VISIBILITY ShaderVisibility; + } D3D12_STATIC_SAMPLER_DESC; + +typedef struct D3D12_STATIC_SAMPLER_DESC1 + { + D3D12_FILTER Filter; + D3D12_TEXTURE_ADDRESS_MODE AddressU; + D3D12_TEXTURE_ADDRESS_MODE AddressV; + D3D12_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D12_COMPARISON_FUNC ComparisonFunc; + D3D12_STATIC_BORDER_COLOR BorderColor; + FLOAT MinLOD; + FLOAT MaxLOD; + UINT ShaderRegister; + UINT RegisterSpace; + D3D12_SHADER_VISIBILITY ShaderVisibility; + D3D12_SAMPLER_FLAGS Flags; + } D3D12_STATIC_SAMPLER_DESC1; + +typedef struct D3D12_ROOT_SIGNATURE_DESC + { + UINT NumParameters; + _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER *pParameters; + UINT NumStaticSamplers; + _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers; + D3D12_ROOT_SIGNATURE_FLAGS Flags; + } D3D12_ROOT_SIGNATURE_DESC; + +typedef +enum D3D12_DESCRIPTOR_RANGE_FLAGS + { + D3D12_DESCRIPTOR_RANGE_FLAG_NONE = 0, + D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_VOLATILE = 0x1, + D3D12_DESCRIPTOR_RANGE_FLAG_DATA_VOLATILE = 0x2, + D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4, + D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC = 0x8, + D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS = 0x10000 + } D3D12_DESCRIPTOR_RANGE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_DESCRIPTOR_RANGE_FLAGS ) +typedef struct D3D12_DESCRIPTOR_RANGE1 + { + D3D12_DESCRIPTOR_RANGE_TYPE RangeType; + UINT NumDescriptors; + UINT BaseShaderRegister; + UINT RegisterSpace; + D3D12_DESCRIPTOR_RANGE_FLAGS Flags; + UINT OffsetInDescriptorsFromTableStart; + } D3D12_DESCRIPTOR_RANGE1; + +typedef struct D3D12_ROOT_DESCRIPTOR_TABLE1 + { + UINT NumDescriptorRanges; + _Field_size_full_(NumDescriptorRanges) const D3D12_DESCRIPTOR_RANGE1 *pDescriptorRanges; + } D3D12_ROOT_DESCRIPTOR_TABLE1; + +typedef +enum D3D12_ROOT_DESCRIPTOR_FLAGS + { + D3D12_ROOT_DESCRIPTOR_FLAG_NONE = 0, + D3D12_ROOT_DESCRIPTOR_FLAG_DATA_VOLATILE = 0x2, + D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4, + D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC = 0x8 + } D3D12_ROOT_DESCRIPTOR_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_ROOT_DESCRIPTOR_FLAGS ) +typedef struct D3D12_ROOT_DESCRIPTOR1 + { + UINT ShaderRegister; + UINT RegisterSpace; + D3D12_ROOT_DESCRIPTOR_FLAGS Flags; + } D3D12_ROOT_DESCRIPTOR1; + +typedef struct D3D12_ROOT_PARAMETER1 + { + D3D12_ROOT_PARAMETER_TYPE ParameterType; + union + { + D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable; + D3D12_ROOT_CONSTANTS Constants; + D3D12_ROOT_DESCRIPTOR1 Descriptor; + } ; + D3D12_SHADER_VISIBILITY ShaderVisibility; + } D3D12_ROOT_PARAMETER1; + +typedef struct D3D12_ROOT_SIGNATURE_DESC1 + { + UINT NumParameters; + _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER1 *pParameters; + UINT NumStaticSamplers; + _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers; + D3D12_ROOT_SIGNATURE_FLAGS Flags; + } D3D12_ROOT_SIGNATURE_DESC1; + +typedef struct D3D12_ROOT_SIGNATURE_DESC2 + { + UINT NumParameters; + _Field_size_full_(NumParameters) const D3D12_ROOT_PARAMETER1 *pParameters; + UINT NumStaticSamplers; + _Field_size_full_(NumStaticSamplers) const D3D12_STATIC_SAMPLER_DESC1 *pStaticSamplers; + D3D12_ROOT_SIGNATURE_FLAGS Flags; + } D3D12_ROOT_SIGNATURE_DESC2; + +typedef struct D3D12_VERSIONED_ROOT_SIGNATURE_DESC + { + D3D_ROOT_SIGNATURE_VERSION Version; + union + { + D3D12_ROOT_SIGNATURE_DESC Desc_1_0; + D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1; + D3D12_ROOT_SIGNATURE_DESC2 Desc_1_2; + } ; + } D3D12_VERSIONED_ROOT_SIGNATURE_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0001_v0_0_s_ifspec; + +#ifndef __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__ +#define __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__ + +/* interface ID3D12RootSignatureDeserializer */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12RootSignatureDeserializer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("34AB647B-3CC8-46AC-841B-C0965645C046") + ID3D12RootSignatureDeserializer : public IUnknown + { + public: + virtual const D3D12_ROOT_SIGNATURE_DESC *STDMETHODCALLTYPE GetRootSignatureDesc( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12RootSignatureDeserializerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12RootSignatureDeserializer * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12RootSignatureDeserializer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12RootSignatureDeserializer * This); + + DECLSPEC_XFGVIRT(ID3D12RootSignatureDeserializer, GetRootSignatureDesc) + const D3D12_ROOT_SIGNATURE_DESC *( STDMETHODCALLTYPE *GetRootSignatureDesc )( + ID3D12RootSignatureDeserializer * This); + + END_INTERFACE + } ID3D12RootSignatureDeserializerVtbl; + + interface ID3D12RootSignatureDeserializer + { + CONST_VTBL struct ID3D12RootSignatureDeserializerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12RootSignatureDeserializer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12RootSignatureDeserializer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12RootSignatureDeserializer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12RootSignatureDeserializer_GetRootSignatureDesc(This) \ + ( (This)->lpVtbl -> GetRootSignatureDesc(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12RootSignatureDeserializer_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__ +#define __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__ + +/* interface ID3D12VersionedRootSignatureDeserializer */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VersionedRootSignatureDeserializer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7F91CE67-090C-4BB7-B78E-ED8FF2E31DA0") + ID3D12VersionedRootSignatureDeserializer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRootSignatureDescAtVersion( + D3D_ROOT_SIGNATURE_VERSION convertToVersion, + _Out_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **ppDesc) = 0; + + virtual const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *STDMETHODCALLTYPE GetUnconvertedRootSignatureDesc( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VersionedRootSignatureDeserializerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VersionedRootSignatureDeserializer * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VersionedRootSignatureDeserializer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VersionedRootSignatureDeserializer * This); + + DECLSPEC_XFGVIRT(ID3D12VersionedRootSignatureDeserializer, GetRootSignatureDescAtVersion) + HRESULT ( STDMETHODCALLTYPE *GetRootSignatureDescAtVersion )( + ID3D12VersionedRootSignatureDeserializer * This, + D3D_ROOT_SIGNATURE_VERSION convertToVersion, + _Out_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC **ppDesc); + + DECLSPEC_XFGVIRT(ID3D12VersionedRootSignatureDeserializer, GetUnconvertedRootSignatureDesc) + const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *( STDMETHODCALLTYPE *GetUnconvertedRootSignatureDesc )( + ID3D12VersionedRootSignatureDeserializer * This); + + END_INTERFACE + } ID3D12VersionedRootSignatureDeserializerVtbl; + + interface ID3D12VersionedRootSignatureDeserializer + { + CONST_VTBL struct ID3D12VersionedRootSignatureDeserializerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VersionedRootSignatureDeserializer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VersionedRootSignatureDeserializer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VersionedRootSignatureDeserializer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VersionedRootSignatureDeserializer_GetRootSignatureDescAtVersion(This,convertToVersion,ppDesc) \ + ( (This)->lpVtbl -> GetRootSignatureDescAtVersion(This,convertToVersion,ppDesc) ) + +#define ID3D12VersionedRootSignatureDeserializer_GetUnconvertedRootSignatureDesc(This) \ + ( (This)->lpVtbl -> GetUnconvertedRootSignatureDesc(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VersionedRootSignatureDeserializer_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0003 */ +/* [local] */ + +typedef HRESULT (WINAPI* PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)( + _In_ const D3D12_ROOT_SIGNATURE_DESC* pRootSignature, + _In_ D3D_ROOT_SIGNATURE_VERSION Version, + _Out_ ID3DBlob** ppBlob, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob); + +HRESULT WINAPI D3D12SerializeRootSignature( + _In_ const D3D12_ROOT_SIGNATURE_DESC* pRootSignature, + _In_ D3D_ROOT_SIGNATURE_VERSION Version, + _Out_ ID3DBlob** ppBlob, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob); + +typedef HRESULT (WINAPI* PFN_D3D12_CREATE_ROOT_SIGNATURE_DESERIALIZER)( + _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSizeInBytes, + _In_ REFIID pRootSignatureDeserializerInterface, + _Out_ void** ppRootSignatureDeserializer); + +HRESULT WINAPI D3D12CreateRootSignatureDeserializer( + _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSizeInBytes, + _In_ REFIID pRootSignatureDeserializerInterface, + _Out_ void** ppRootSignatureDeserializer); + +typedef HRESULT (WINAPI* PFN_D3D12_SERIALIZE_VERSIONED_ROOT_SIGNATURE)( + _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature, + _Out_ ID3DBlob** ppBlob, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob); + +HRESULT WINAPI D3D12SerializeVersionedRootSignature( + _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature, + _Out_ ID3DBlob** ppBlob, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob); + +typedef HRESULT (WINAPI* PFN_D3D12_CREATE_VERSIONED_ROOT_SIGNATURE_DESERIALIZER)( + _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSizeInBytes, + _In_ REFIID pRootSignatureDeserializerInterface, + _Out_ void** ppRootSignatureDeserializer); + +HRESULT WINAPI D3D12CreateVersionedRootSignatureDeserializer( + _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSizeInBytes, + _In_ REFIID pRootSignatureDeserializerInterface, + _Out_ void** ppRootSignatureDeserializer); + +typedef HRESULT (WINAPI* PFN_D3D12_CREATE_VERSIONED_ROOT_SIGNATURE_DESERIALIZER_FROM_SUBOBJECT_IN_LIBRARY)( + _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSizeInBytes, + _In_ LPCWSTR RootSignatureSubobjectName, + _In_ REFIID pRootSignatureDeserializerInterface, + _Out_ void** ppRootSignatureDeserializer); + +HRESULT WINAPI D3D12CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary( + _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSizeInBytes, + _In_opt_ LPCWSTR RootSignatureSubobjectName, + _In_ REFIID pRootSignatureDeserializerInterface, + _Out_ void** ppRootSignatureDeserializer); + +typedef struct D3D12_CPU_DESCRIPTOR_HANDLE + { + SIZE_T ptr; + } D3D12_CPU_DESCRIPTOR_HANDLE; + +typedef struct D3D12_GPU_DESCRIPTOR_HANDLE + { + UINT64 ptr; + } D3D12_GPU_DESCRIPTOR_HANDLE; + +// If rects are supplied in D3D12_DISCARD_REGION, below, the resource +// must have 2D subresources with all specified subresources the same dimension. +typedef struct D3D12_DISCARD_REGION + { + UINT NumRects; + _In_reads_(NumRects) const D3D12_RECT *pRects; + UINT FirstSubresource; + UINT NumSubresources; + } D3D12_DISCARD_REGION; + +typedef +enum D3D12_QUERY_HEAP_TYPE + { + D3D12_QUERY_HEAP_TYPE_OCCLUSION = 0, + D3D12_QUERY_HEAP_TYPE_TIMESTAMP = 1, + D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS = 2, + D3D12_QUERY_HEAP_TYPE_SO_STATISTICS = 3, + D3D12_QUERY_HEAP_TYPE_VIDEO_DECODE_STATISTICS = 4, + D3D12_QUERY_HEAP_TYPE_COPY_QUEUE_TIMESTAMP = 5, + D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS1 = 7 + } D3D12_QUERY_HEAP_TYPE; + +typedef struct D3D12_QUERY_HEAP_DESC + { + D3D12_QUERY_HEAP_TYPE Type; + UINT Count; + UINT NodeMask; + } D3D12_QUERY_HEAP_DESC; + +typedef +enum D3D12_QUERY_TYPE + { + D3D12_QUERY_TYPE_OCCLUSION = 0, + D3D12_QUERY_TYPE_BINARY_OCCLUSION = 1, + D3D12_QUERY_TYPE_TIMESTAMP = 2, + D3D12_QUERY_TYPE_PIPELINE_STATISTICS = 3, + D3D12_QUERY_TYPE_SO_STATISTICS_STREAM0 = 4, + D3D12_QUERY_TYPE_SO_STATISTICS_STREAM1 = 5, + D3D12_QUERY_TYPE_SO_STATISTICS_STREAM2 = 6, + D3D12_QUERY_TYPE_SO_STATISTICS_STREAM3 = 7, + D3D12_QUERY_TYPE_VIDEO_DECODE_STATISTICS = 8, + D3D12_QUERY_TYPE_PIPELINE_STATISTICS1 = 10 + } D3D12_QUERY_TYPE; + +typedef +enum D3D12_PREDICATION_OP + { + D3D12_PREDICATION_OP_EQUAL_ZERO = 0, + D3D12_PREDICATION_OP_NOT_EQUAL_ZERO = 1 + } D3D12_PREDICATION_OP; + +typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS + { + UINT64 IAVertices; + UINT64 IAPrimitives; + UINT64 VSInvocations; + UINT64 GSInvocations; + UINT64 GSPrimitives; + UINT64 CInvocations; + UINT64 CPrimitives; + UINT64 PSInvocations; + UINT64 HSInvocations; + UINT64 DSInvocations; + UINT64 CSInvocations; + } D3D12_QUERY_DATA_PIPELINE_STATISTICS; + +typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS1 + { + UINT64 IAVertices; + UINT64 IAPrimitives; + UINT64 VSInvocations; + UINT64 GSInvocations; + UINT64 GSPrimitives; + UINT64 CInvocations; + UINT64 CPrimitives; + UINT64 PSInvocations; + UINT64 HSInvocations; + UINT64 DSInvocations; + UINT64 CSInvocations; + UINT64 ASInvocations; + UINT64 MSInvocations; + UINT64 MSPrimitives; + } D3D12_QUERY_DATA_PIPELINE_STATISTICS1; + +typedef struct D3D12_QUERY_DATA_SO_STATISTICS + { + UINT64 NumPrimitivesWritten; + UINT64 PrimitivesStorageNeeded; + } D3D12_QUERY_DATA_SO_STATISTICS; + +typedef struct D3D12_STREAM_OUTPUT_BUFFER_VIEW + { + D3D12_GPU_VIRTUAL_ADDRESS BufferLocation; + UINT64 SizeInBytes; + D3D12_GPU_VIRTUAL_ADDRESS BufferFilledSizeLocation; + } D3D12_STREAM_OUTPUT_BUFFER_VIEW; + +typedef struct D3D12_DRAW_ARGUMENTS + { + UINT VertexCountPerInstance; + UINT InstanceCount; + UINT StartVertexLocation; + UINT StartInstanceLocation; + } D3D12_DRAW_ARGUMENTS; + +typedef struct D3D12_DRAW_INDEXED_ARGUMENTS + { + UINT IndexCountPerInstance; + UINT InstanceCount; + UINT StartIndexLocation; + INT BaseVertexLocation; + UINT StartInstanceLocation; + } D3D12_DRAW_INDEXED_ARGUMENTS; + +typedef struct D3D12_DISPATCH_ARGUMENTS + { + UINT ThreadGroupCountX; + UINT ThreadGroupCountY; + UINT ThreadGroupCountZ; + } D3D12_DISPATCH_ARGUMENTS; + +typedef struct D3D12_VERTEX_BUFFER_VIEW + { + D3D12_GPU_VIRTUAL_ADDRESS BufferLocation; + UINT SizeInBytes; + UINT StrideInBytes; + } D3D12_VERTEX_BUFFER_VIEW; + +typedef struct D3D12_INDEX_BUFFER_VIEW + { + D3D12_GPU_VIRTUAL_ADDRESS BufferLocation; + UINT SizeInBytes; + DXGI_FORMAT Format; + } D3D12_INDEX_BUFFER_VIEW; + +typedef +enum D3D12_INDIRECT_ARGUMENT_TYPE + { + D3D12_INDIRECT_ARGUMENT_TYPE_DRAW = 0, + D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED = ( D3D12_INDIRECT_ARGUMENT_TYPE_DRAW + 1 ) , + D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH = ( D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED + 1 ) , + D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH + 1 ) , + D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW + 1 ) , + D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT = ( D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW + 1 ) , + D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT + 1 ) , + D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW + 1 ) , + D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW = ( D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW + 1 ) , + D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS = ( D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW + 1 ) , + D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS + 1 ) , + D3D12_INDIRECT_ARGUMENT_TYPE_INCREMENTING_CONSTANT = ( D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH + 1 ) + } D3D12_INDIRECT_ARGUMENT_TYPE; + +typedef struct D3D12_INDIRECT_ARGUMENT_DESC + { + D3D12_INDIRECT_ARGUMENT_TYPE Type; + union + { + struct + { + UINT Slot; + } VertexBuffer; + struct + { + UINT RootParameterIndex; + UINT DestOffsetIn32BitValues; + UINT Num32BitValuesToSet; + } Constant; + struct + { + UINT RootParameterIndex; + } ConstantBufferView; + struct + { + UINT RootParameterIndex; + } ShaderResourceView; + struct + { + UINT RootParameterIndex; + } UnorderedAccessView; + struct + { + UINT RootParameterIndex; + UINT DestOffsetIn32BitValues; + } IncrementingConstant; + } ; + } D3D12_INDIRECT_ARGUMENT_DESC; + +typedef struct D3D12_COMMAND_SIGNATURE_DESC + { + UINT ByteStride; + UINT NumArgumentDescs; + _Field_size_full_(NumArgumentDescs) const D3D12_INDIRECT_ARGUMENT_DESC *pArgumentDescs; + UINT NodeMask; + } D3D12_COMMAND_SIGNATURE_DESC; + + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0003_v0_0_s_ifspec; + +#ifndef __ID3D12Pageable_INTERFACE_DEFINED__ +#define __ID3D12Pageable_INTERFACE_DEFINED__ + +/* interface ID3D12Pageable */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Pageable; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("63ee58fb-1268-4835-86da-f008ce62f0d6") + ID3D12Pageable : public ID3D12DeviceChild + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D12PageableVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Pageable * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Pageable * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Pageable * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Pageable * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Pageable * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Pageable * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Pageable * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12Pageable * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + END_INTERFACE + } ID3D12PageableVtbl; + + interface ID3D12Pageable + { + CONST_VTBL struct ID3D12PageableVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Pageable_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Pageable_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Pageable_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Pageable_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Pageable_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Pageable_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Pageable_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Pageable_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Pageable_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Heap_INTERFACE_DEFINED__ +#define __ID3D12Heap_INTERFACE_DEFINED__ + +/* interface ID3D12Heap */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Heap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6b3b2502-6e51-45b3-90ee-9884265e8df3") + ID3D12Heap : public ID3D12Pageable + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_HEAP_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_HEAP_DESC * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12HeapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Heap * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Heap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Heap * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Heap * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Heap * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Heap * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Heap * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12Heap * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12Heap, GetDesc) +#if !defined(_WIN32) + D3D12_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12Heap * This); + +#else + D3D12_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12Heap * This, + D3D12_HEAP_DESC * RetVal); + +#endif + + END_INTERFACE + } ID3D12HeapVtbl; + + interface ID3D12Heap + { + CONST_VTBL struct ID3D12HeapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Heap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Heap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Heap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Heap_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Heap_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Heap_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Heap_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Heap_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#if !defined(_WIN32) + +#define ID3D12Heap_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12Heap_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Heap_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Resource_INTERFACE_DEFINED__ +#define __ID3D12Resource_INTERFACE_DEFINED__ + +/* interface ID3D12Resource */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Resource; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("696442be-a72e-4059-bc79-5b5c98040fad") + ID3D12Resource : public ID3D12Pageable + { + public: + virtual HRESULT STDMETHODCALLTYPE Map( + UINT Subresource, + _In_opt_ const D3D12_RANGE *pReadRange, + _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData) = 0; + + virtual void STDMETHODCALLTYPE Unmap( + UINT Subresource, + _In_opt_ const D3D12_RANGE *pWrittenRange) = 0; + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_RESOURCE_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_RESOURCE_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_RESOURCE_DESC * RetVal) = 0; +#endif + + virtual D3D12_GPU_VIRTUAL_ADDRESS STDMETHODCALLTYPE GetGPUVirtualAddress( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE WriteToSubresource( + UINT DstSubresource, + _In_opt_ const D3D12_BOX *pDstBox, + _In_ const void *pSrcData, + UINT SrcRowPitch, + UINT SrcDepthPitch) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReadFromSubresource( + _Out_ void *pDstData, + UINT DstRowPitch, + UINT DstDepthPitch, + UINT SrcSubresource, + _In_opt_ const D3D12_BOX *pSrcBox) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHeapProperties( + _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties, + _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12ResourceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Resource * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Resource * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Resource * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Resource * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Resource * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Resource * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Resource * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12Resource * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12Resource, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D12Resource * This, + UINT Subresource, + _In_opt_ const D3D12_RANGE *pReadRange, + _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData); + + DECLSPEC_XFGVIRT(ID3D12Resource, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D12Resource * This, + UINT Subresource, + _In_opt_ const D3D12_RANGE *pWrittenRange); + + DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc) +#if !defined(_WIN32) + D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12Resource * This); + +#else + D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12Resource * This, + D3D12_RESOURCE_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress) + D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )( + ID3D12Resource * This); + + DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource) + HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )( + ID3D12Resource * This, + UINT DstSubresource, + _In_opt_ const D3D12_BOX *pDstBox, + _In_ const void *pSrcData, + UINT SrcRowPitch, + UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource) + HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )( + ID3D12Resource * This, + _Out_ void *pDstData, + UINT DstRowPitch, + UINT DstDepthPitch, + UINT SrcSubresource, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties) + HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )( + ID3D12Resource * This, + _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties, + _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags); + + END_INTERFACE + } ID3D12ResourceVtbl; + + interface ID3D12Resource + { + CONST_VTBL struct ID3D12ResourceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Resource_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Resource_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Resource_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Resource_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Resource_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Resource_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Resource_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Resource_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12Resource_Map(This,Subresource,pReadRange,ppData) \ + ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) ) + +#define ID3D12Resource_Unmap(This,Subresource,pWrittenRange) \ + ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) ) +#if !defined(_WIN32) + +#define ID3D12Resource_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12Resource_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#define ID3D12Resource_GetGPUVirtualAddress(This) \ + ( (This)->lpVtbl -> GetGPUVirtualAddress(This) ) + +#define ID3D12Resource_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D12Resource_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) ) + +#define ID3D12Resource_GetHeapProperties(This,pHeapProperties,pHeapFlags) \ + ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Resource_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12CommandAllocator_INTERFACE_DEFINED__ +#define __ID3D12CommandAllocator_INTERFACE_DEFINED__ + +/* interface ID3D12CommandAllocator */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12CommandAllocator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6102dee4-af59-4b09-b999-b44d73f09b24") + ID3D12CommandAllocator : public ID3D12Pageable + { + public: + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12CommandAllocatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12CommandAllocator * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12CommandAllocator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12CommandAllocator * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12CommandAllocator * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12CommandAllocator * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12CommandAllocator * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12CommandAllocator * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12CommandAllocator * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandAllocator, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12CommandAllocator * This); + + END_INTERFACE + } ID3D12CommandAllocatorVtbl; + + interface ID3D12CommandAllocator + { + CONST_VTBL struct ID3D12CommandAllocatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12CommandAllocator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12CommandAllocator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12CommandAllocator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12CommandAllocator_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12CommandAllocator_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12CommandAllocator_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12CommandAllocator_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12CommandAllocator_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12CommandAllocator_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12CommandAllocator_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Fence_INTERFACE_DEFINED__ +#define __ID3D12Fence_INTERFACE_DEFINED__ + +/* interface ID3D12Fence */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Fence; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0a753dcf-c4d8-4b91-adf6-be5a60d95a76") + ID3D12Fence : public ID3D12Pageable + { + public: + virtual UINT64 STDMETHODCALLTYPE GetCompletedValue( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetEventOnCompletion( + UINT64 Value, + HANDLE hEvent) = 0; + + virtual HRESULT STDMETHODCALLTYPE Signal( + UINT64 Value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12FenceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Fence * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Fence * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Fence * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Fence * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Fence * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Fence * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Fence * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12Fence * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12Fence, GetCompletedValue) + UINT64 ( STDMETHODCALLTYPE *GetCompletedValue )( + ID3D12Fence * This); + + DECLSPEC_XFGVIRT(ID3D12Fence, SetEventOnCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnCompletion )( + ID3D12Fence * This, + UINT64 Value, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Fence, Signal) + HRESULT ( STDMETHODCALLTYPE *Signal )( + ID3D12Fence * This, + UINT64 Value); + + END_INTERFACE + } ID3D12FenceVtbl; + + interface ID3D12Fence + { + CONST_VTBL struct ID3D12FenceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Fence_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Fence_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Fence_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Fence_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Fence_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Fence_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Fence_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Fence_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12Fence_GetCompletedValue(This) \ + ( (This)->lpVtbl -> GetCompletedValue(This) ) + +#define ID3D12Fence_SetEventOnCompletion(This,Value,hEvent) \ + ( (This)->lpVtbl -> SetEventOnCompletion(This,Value,hEvent) ) + +#define ID3D12Fence_Signal(This,Value) \ + ( (This)->lpVtbl -> Signal(This,Value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Fence_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Fence1_INTERFACE_DEFINED__ +#define __ID3D12Fence1_INTERFACE_DEFINED__ + +/* interface ID3D12Fence1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Fence1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a") + ID3D12Fence1 : public ID3D12Fence + { + public: + virtual D3D12_FENCE_FLAGS STDMETHODCALLTYPE GetCreationFlags( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Fence1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Fence1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Fence1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Fence1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Fence1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Fence1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Fence1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Fence1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12Fence1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12Fence, GetCompletedValue) + UINT64 ( STDMETHODCALLTYPE *GetCompletedValue )( + ID3D12Fence1 * This); + + DECLSPEC_XFGVIRT(ID3D12Fence, SetEventOnCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnCompletion )( + ID3D12Fence1 * This, + UINT64 Value, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Fence, Signal) + HRESULT ( STDMETHODCALLTYPE *Signal )( + ID3D12Fence1 * This, + UINT64 Value); + + DECLSPEC_XFGVIRT(ID3D12Fence1, GetCreationFlags) + D3D12_FENCE_FLAGS ( STDMETHODCALLTYPE *GetCreationFlags )( + ID3D12Fence1 * This); + + END_INTERFACE + } ID3D12Fence1Vtbl; + + interface ID3D12Fence1 + { + CONST_VTBL struct ID3D12Fence1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Fence1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Fence1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Fence1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Fence1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Fence1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Fence1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Fence1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Fence1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12Fence1_GetCompletedValue(This) \ + ( (This)->lpVtbl -> GetCompletedValue(This) ) + +#define ID3D12Fence1_SetEventOnCompletion(This,Value,hEvent) \ + ( (This)->lpVtbl -> SetEventOnCompletion(This,Value,hEvent) ) + +#define ID3D12Fence1_Signal(This,Value) \ + ( (This)->lpVtbl -> Signal(This,Value) ) + + +#define ID3D12Fence1_GetCreationFlags(This) \ + ( (This)->lpVtbl -> GetCreationFlags(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Fence1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12PipelineState_INTERFACE_DEFINED__ +#define __ID3D12PipelineState_INTERFACE_DEFINED__ + +/* interface ID3D12PipelineState */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12PipelineState; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("765a30f3-f624-4c6f-a828-ace948622445") + ID3D12PipelineState : public ID3D12Pageable + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCachedBlob( + _COM_Outptr_ ID3DBlob **ppBlob) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12PipelineStateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12PipelineState * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12PipelineState * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12PipelineState * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12PipelineState * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12PipelineState * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12PipelineState * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12PipelineState * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12PipelineState * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12PipelineState, GetCachedBlob) + HRESULT ( STDMETHODCALLTYPE *GetCachedBlob )( + ID3D12PipelineState * This, + _COM_Outptr_ ID3DBlob **ppBlob); + + END_INTERFACE + } ID3D12PipelineStateVtbl; + + interface ID3D12PipelineState + { + CONST_VTBL struct ID3D12PipelineStateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12PipelineState_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12PipelineState_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12PipelineState_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12PipelineState_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12PipelineState_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12PipelineState_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12PipelineState_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12PipelineState_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12PipelineState_GetCachedBlob(This,ppBlob) \ + ( (This)->lpVtbl -> GetCachedBlob(This,ppBlob) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12PipelineState_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DescriptorHeap_INTERFACE_DEFINED__ +#define __ID3D12DescriptorHeap_INTERFACE_DEFINED__ + +/* interface ID3D12DescriptorHeap */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DescriptorHeap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8efb471d-616c-4f49-90f7-127bb763fa51") + ID3D12DescriptorHeap : public ID3D12Pageable + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_DESCRIPTOR_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_DESCRIPTOR_HEAP_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_DESCRIPTOR_HEAP_DESC * RetVal) = 0; +#endif + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_CPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart( void) = 0; +#else + virtual D3D12_CPU_DESCRIPTOR_HANDLE *STDMETHODCALLTYPE GetCPUDescriptorHandleForHeapStart( + D3D12_CPU_DESCRIPTOR_HANDLE * RetVal) = 0; +#endif + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_GPU_DESCRIPTOR_HANDLE STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart( void) = 0; +#else + virtual D3D12_GPU_DESCRIPTOR_HANDLE *STDMETHODCALLTYPE GetGPUDescriptorHandleForHeapStart( + D3D12_GPU_DESCRIPTOR_HANDLE * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DescriptorHeapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DescriptorHeap * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DescriptorHeap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DescriptorHeap * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12DescriptorHeap * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12DescriptorHeap * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12DescriptorHeap * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12DescriptorHeap * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12DescriptorHeap * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetDesc) +#if !defined(_WIN32) + D3D12_DESCRIPTOR_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12DescriptorHeap * This); + +#else + D3D12_DESCRIPTOR_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12DescriptorHeap * This, + D3D12_DESCRIPTOR_HEAP_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetCPUDescriptorHandleForHeapStart) +#if !defined(_WIN32) + D3D12_CPU_DESCRIPTOR_HANDLE ( STDMETHODCALLTYPE *GetCPUDescriptorHandleForHeapStart )( + ID3D12DescriptorHeap * This); + +#else + D3D12_CPU_DESCRIPTOR_HANDLE *( STDMETHODCALLTYPE *GetCPUDescriptorHandleForHeapStart )( + ID3D12DescriptorHeap * This, + D3D12_CPU_DESCRIPTOR_HANDLE * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12DescriptorHeap, GetGPUDescriptorHandleForHeapStart) +#if !defined(_WIN32) + D3D12_GPU_DESCRIPTOR_HANDLE ( STDMETHODCALLTYPE *GetGPUDescriptorHandleForHeapStart )( + ID3D12DescriptorHeap * This); + +#else + D3D12_GPU_DESCRIPTOR_HANDLE *( STDMETHODCALLTYPE *GetGPUDescriptorHandleForHeapStart )( + ID3D12DescriptorHeap * This, + D3D12_GPU_DESCRIPTOR_HANDLE * RetVal); + +#endif + + END_INTERFACE + } ID3D12DescriptorHeapVtbl; + + interface ID3D12DescriptorHeap + { + CONST_VTBL struct ID3D12DescriptorHeapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DescriptorHeap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DescriptorHeap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DescriptorHeap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DescriptorHeap_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12DescriptorHeap_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12DescriptorHeap_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12DescriptorHeap_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12DescriptorHeap_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#if !defined(_WIN32) + +#define ID3D12DescriptorHeap_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12DescriptorHeap_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif +#if !defined(_WIN32) + +#define ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(This) \ + ( (This)->lpVtbl -> GetCPUDescriptorHandleForHeapStart(This) ) +#else +#define ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(This,RetVal) \ + ( (This)->lpVtbl -> GetCPUDescriptorHandleForHeapStart(This,RetVal) ) +#endif +#if !defined(_WIN32) + +#define ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(This) \ + ( (This)->lpVtbl -> GetGPUDescriptorHandleForHeapStart(This) ) +#else +#define ID3D12DescriptorHeap_GetGPUDescriptorHandleForHeapStart(This,RetVal) \ + ( (This)->lpVtbl -> GetGPUDescriptorHandleForHeapStart(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DescriptorHeap_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12QueryHeap_INTERFACE_DEFINED__ +#define __ID3D12QueryHeap_INTERFACE_DEFINED__ + +/* interface ID3D12QueryHeap */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12QueryHeap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0d9658ae-ed45-469e-a61d-970ec583cab4") + ID3D12QueryHeap : public ID3D12Pageable + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D12QueryHeapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12QueryHeap * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12QueryHeap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12QueryHeap * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12QueryHeap * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12QueryHeap * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12QueryHeap * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12QueryHeap * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12QueryHeap * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + END_INTERFACE + } ID3D12QueryHeapVtbl; + + interface ID3D12QueryHeap + { + CONST_VTBL struct ID3D12QueryHeapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12QueryHeap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12QueryHeap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12QueryHeap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12QueryHeap_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12QueryHeap_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12QueryHeap_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12QueryHeap_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12QueryHeap_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12QueryHeap_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12CommandSignature_INTERFACE_DEFINED__ +#define __ID3D12CommandSignature_INTERFACE_DEFINED__ + +/* interface ID3D12CommandSignature */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12CommandSignature; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c36a797c-ec80-4f0a-8985-a7b2475082d1") + ID3D12CommandSignature : public ID3D12Pageable + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D12CommandSignatureVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12CommandSignature * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12CommandSignature * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12CommandSignature * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12CommandSignature * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12CommandSignature * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12CommandSignature * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12CommandSignature * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12CommandSignature * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + END_INTERFACE + } ID3D12CommandSignatureVtbl; + + interface ID3D12CommandSignature + { + CONST_VTBL struct ID3D12CommandSignatureVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12CommandSignature_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12CommandSignature_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12CommandSignature_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12CommandSignature_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12CommandSignature_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12CommandSignature_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12CommandSignature_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12CommandSignature_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12CommandSignature_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12CommandList_INTERFACE_DEFINED__ +#define __ID3D12CommandList_INTERFACE_DEFINED__ + +/* interface ID3D12CommandList */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12CommandList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7116d91c-e7e4-47ce-b8c6-ec8168f437e5") + ID3D12CommandList : public ID3D12DeviceChild + { + public: + virtual D3D12_COMMAND_LIST_TYPE STDMETHODCALLTYPE GetType( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12CommandListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12CommandList * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12CommandList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12CommandList * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12CommandList * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12CommandList * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12CommandList * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12CommandList * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12CommandList * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12CommandList * This); + + END_INTERFACE + } ID3D12CommandListVtbl; + + interface ID3D12CommandList + { + CONST_VTBL struct ID3D12CommandListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12CommandList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12CommandList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12CommandList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12CommandList_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12CommandList_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12CommandList_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12CommandList_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12CommandList_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12CommandList_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12CommandList_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5b160d0f-ac1b-4185-8ba8-b3ae42a5a455") + ID3D12GraphicsCommandList : public ID3D12CommandList + { + public: + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState) = 0; + + virtual void STDMETHODCALLTYPE ClearState( + _In_opt_ ID3D12PipelineState *pPipelineState) = 0; + + virtual void STDMETHODCALLTYPE DrawInstanced( + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation) = 0; + + virtual void STDMETHODCALLTYPE DrawIndexedInstanced( + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation) = 0; + + virtual void STDMETHODCALLTYPE Dispatch( + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ) = 0; + + virtual void STDMETHODCALLTYPE CopyBufferRegion( + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes) = 0; + + virtual void STDMETHODCALLTYPE CopyTextureRegion( + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox) = 0; + + virtual void STDMETHODCALLTYPE CopyResource( + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource) = 0; + + virtual void STDMETHODCALLTYPE CopyTiles( + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags) = 0; + + virtual void STDMETHODCALLTYPE ResolveSubresource( + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format) = 0; + + virtual void STDMETHODCALLTYPE IASetPrimitiveTopology( + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology) = 0; + + virtual void STDMETHODCALLTYPE RSSetViewports( + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports) = 0; + + virtual void STDMETHODCALLTYPE RSSetScissorRects( + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects) = 0; + + virtual void STDMETHODCALLTYPE OMSetBlendFactor( + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]) = 0; + + virtual void STDMETHODCALLTYPE OMSetStencilRef( + _In_ UINT StencilRef) = 0; + + virtual void STDMETHODCALLTYPE SetPipelineState( + _In_ ID3D12PipelineState *pPipelineState) = 0; + + virtual void STDMETHODCALLTYPE ResourceBarrier( + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers) = 0; + + virtual void STDMETHODCALLTYPE ExecuteBundle( + _In_ ID3D12GraphicsCommandList *pCommandList) = 0; + + virtual void STDMETHODCALLTYPE SetDescriptorHeaps( + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps) = 0; + + virtual void STDMETHODCALLTYPE SetComputeRootSignature( + _In_opt_ ID3D12RootSignature *pRootSignature) = 0; + + virtual void STDMETHODCALLTYPE SetGraphicsRootSignature( + _In_opt_ ID3D12RootSignature *pRootSignature) = 0; + + virtual void STDMETHODCALLTYPE SetComputeRootDescriptorTable( + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor) = 0; + + virtual void STDMETHODCALLTYPE SetGraphicsRootDescriptorTable( + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor) = 0; + + virtual void STDMETHODCALLTYPE SetComputeRoot32BitConstant( + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues) = 0; + + virtual void STDMETHODCALLTYPE SetGraphicsRoot32BitConstant( + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues) = 0; + + virtual void STDMETHODCALLTYPE SetComputeRoot32BitConstants( + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues) = 0; + + virtual void STDMETHODCALLTYPE SetGraphicsRoot32BitConstants( + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues) = 0; + + virtual void STDMETHODCALLTYPE SetComputeRootConstantBufferView( + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0; + + virtual void STDMETHODCALLTYPE SetGraphicsRootConstantBufferView( + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0; + + virtual void STDMETHODCALLTYPE SetComputeRootShaderResourceView( + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0; + + virtual void STDMETHODCALLTYPE SetGraphicsRootShaderResourceView( + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0; + + virtual void STDMETHODCALLTYPE SetComputeRootUnorderedAccessView( + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0; + + virtual void STDMETHODCALLTYPE SetGraphicsRootUnorderedAccessView( + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) = 0; + + virtual void STDMETHODCALLTYPE IASetIndexBuffer( + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView) = 0; + + virtual void STDMETHODCALLTYPE IASetVertexBuffers( + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews) = 0; + + virtual void STDMETHODCALLTYPE SOSetTargets( + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews) = 0; + + virtual void STDMETHODCALLTYPE OMSetRenderTargets( + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor) = 0; + + virtual void STDMETHODCALLTYPE ClearDepthStencilView( + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects) = 0; + + virtual void STDMETHODCALLTYPE ClearRenderTargetView( + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects) = 0; + + virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewUint( + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects) = 0; + + virtual void STDMETHODCALLTYPE ClearUnorderedAccessViewFloat( + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects) = 0; + + virtual void STDMETHODCALLTYPE DiscardResource( + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion) = 0; + + virtual void STDMETHODCALLTYPE BeginQuery( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index) = 0; + + virtual void STDMETHODCALLTYPE EndQuery( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index) = 0; + + virtual void STDMETHODCALLTYPE ResolveQueryData( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset) = 0; + + virtual void STDMETHODCALLTYPE SetPredication( + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation) = 0; + + virtual void STDMETHODCALLTYPE SetMarker( + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size) = 0; + + virtual void STDMETHODCALLTYPE BeginEvent( + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size) = 0; + + virtual void STDMETHODCALLTYPE EndEvent( void) = 0; + + virtual void STDMETHODCALLTYPE ExecuteIndirect( + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + END_INTERFACE + } ID3D12GraphicsCommandListVtbl; + + interface ID3D12GraphicsCommandList + { + CONST_VTBL struct ID3D12GraphicsCommandListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("553103fb-1fe7-4557-bb38-946d7d0e7ca7") + ID3D12GraphicsCommandList1 : public ID3D12GraphicsCommandList + { + public: + virtual void STDMETHODCALLTYPE AtomicCopyBufferUINT( + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges) = 0; + + virtual void STDMETHODCALLTYPE AtomicCopyBufferUINT64( + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges) = 0; + + virtual void STDMETHODCALLTYPE OMSetDepthBounds( + _In_ FLOAT Min, + _In_ FLOAT Max) = 0; + + virtual void STDMETHODCALLTYPE SetSamplePositions( + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions) = 0; + + virtual void STDMETHODCALLTYPE ResolveSubresourceRegion( + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode) = 0; + + virtual void STDMETHODCALLTYPE SetViewInstanceMask( + _In_ UINT Mask) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandList1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList1 * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList1 * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList1 * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList1 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList1 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList1 * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList1 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList1 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList1 * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList1 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList1 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList1 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList1 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList1 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList1 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList1 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds) + void ( STDMETHODCALLTYPE *OMSetDepthBounds )( + ID3D12GraphicsCommandList1 * This, + _In_ FLOAT Min, + _In_ FLOAT Max); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions) + void ( STDMETHODCALLTYPE *SetSamplePositions )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion) + void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )( + ID3D12GraphicsCommandList1 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask) + void ( STDMETHODCALLTYPE *SetViewInstanceMask )( + ID3D12GraphicsCommandList1 * This, + _In_ UINT Mask); + + END_INTERFACE + } ID3D12GraphicsCommandList1Vtbl; + + interface ID3D12GraphicsCommandList1 + { + CONST_VTBL struct ID3D12GraphicsCommandList1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList1_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList1_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList1_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList1_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList1_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList1_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList1_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList1_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList1_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList1_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList1_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList1_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList1_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList1_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList1_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList1_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList1_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList1_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList1_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList1_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList1_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList1_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList1_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList1_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList1_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList1_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList1_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList1_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList1_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList1_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList1_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList1_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList1_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList1_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList1_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList1_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList1_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList1_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList1_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList1_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList1_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList1_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList1_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList1_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList1_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList1_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList1_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList1_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList1_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList1_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList1_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + + +#define ID3D12GraphicsCommandList1_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList1_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList1_OMSetDepthBounds(This,Min,Max) \ + ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) ) + +#define ID3D12GraphicsCommandList1_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \ + ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) ) + +#define ID3D12GraphicsCommandList1_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \ + ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) ) + +#define ID3D12GraphicsCommandList1_SetViewInstanceMask(This,Mask) \ + ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0018 */ +/* [local] */ + +typedef struct D3D12_WRITEBUFFERIMMEDIATE_PARAMETER + { + D3D12_GPU_VIRTUAL_ADDRESS Dest; + UINT32 Value; + } D3D12_WRITEBUFFERIMMEDIATE_PARAMETER; + +typedef +enum D3D12_WRITEBUFFERIMMEDIATE_MODE + { + D3D12_WRITEBUFFERIMMEDIATE_MODE_DEFAULT = 0, + D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_IN = 0x1, + D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_OUT = 0x2 + } D3D12_WRITEBUFFERIMMEDIATE_MODE; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0018_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0018_v0_0_s_ifspec; + +#ifndef __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("38C3E585-FF17-412C-9150-4FC6F9D72A28") + ID3D12GraphicsCommandList2 : public ID3D12GraphicsCommandList1 + { + public: + virtual void STDMETHODCALLTYPE WriteBufferImmediate( + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandList2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList2 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList2 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList2 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList2 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList2 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList2 * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList2 * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList2 * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList2 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList2 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList2 * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList2 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList2 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList2 * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList2 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList2 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList2 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList2 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList2 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList2 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList2 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds) + void ( STDMETHODCALLTYPE *OMSetDepthBounds )( + ID3D12GraphicsCommandList2 * This, + _In_ FLOAT Min, + _In_ FLOAT Max); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions) + void ( STDMETHODCALLTYPE *SetSamplePositions )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion) + void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )( + ID3D12GraphicsCommandList2 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask) + void ( STDMETHODCALLTYPE *SetViewInstanceMask )( + ID3D12GraphicsCommandList2 * This, + _In_ UINT Mask); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12GraphicsCommandList2 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + END_INTERFACE + } ID3D12GraphicsCommandList2Vtbl; + + interface ID3D12GraphicsCommandList2 + { + CONST_VTBL struct ID3D12GraphicsCommandList2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList2_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList2_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList2_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList2_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList2_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList2_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList2_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList2_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList2_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList2_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList2_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList2_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList2_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList2_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList2_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList2_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList2_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList2_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList2_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList2_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList2_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList2_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList2_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList2_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList2_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList2_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList2_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList2_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList2_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList2_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList2_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList2_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList2_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList2_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList2_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList2_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList2_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList2_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList2_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList2_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList2_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList2_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList2_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList2_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList2_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList2_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList2_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList2_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList2_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList2_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList2_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList2_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList2_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList2_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + + +#define ID3D12GraphicsCommandList2_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList2_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList2_OMSetDepthBounds(This,Min,Max) \ + ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) ) + +#define ID3D12GraphicsCommandList2_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \ + ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) ) + +#define ID3D12GraphicsCommandList2_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \ + ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) ) + +#define ID3D12GraphicsCommandList2_SetViewInstanceMask(This,Mask) \ + ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) ) + + +#define ID3D12GraphicsCommandList2_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12CommandQueue_INTERFACE_DEFINED__ +#define __ID3D12CommandQueue_INTERFACE_DEFINED__ + +/* interface ID3D12CommandQueue */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12CommandQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0ec870a6-5d7e-4c22-8cfc-5baae07616ed") + ID3D12CommandQueue : public ID3D12Pageable + { + public: + virtual void STDMETHODCALLTYPE UpdateTileMappings( + _In_ ID3D12Resource *pResource, + UINT NumResourceRegions, + _In_reads_opt_(NumResourceRegions) const D3D12_TILED_RESOURCE_COORDINATE *pResourceRegionStartCoordinates, + _In_reads_opt_(NumResourceRegions) const D3D12_TILE_REGION_SIZE *pResourceRegionSizes, + _In_opt_ ID3D12Heap *pHeap, + UINT NumRanges, + _In_reads_opt_(NumRanges) const D3D12_TILE_RANGE_FLAGS *pRangeFlags, + _In_reads_opt_(NumRanges) const UINT *pHeapRangeStartOffsets, + _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts, + D3D12_TILE_MAPPING_FLAGS Flags) = 0; + + virtual void STDMETHODCALLTYPE CopyTileMappings( + _In_ ID3D12Resource *pDstResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pDstRegionStartCoordinate, + _In_ ID3D12Resource *pSrcResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pSrcRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pRegionSize, + D3D12_TILE_MAPPING_FLAGS Flags) = 0; + + virtual void STDMETHODCALLTYPE ExecuteCommandLists( + _In_ UINT NumCommandLists, + _In_reads_(NumCommandLists) ID3D12CommandList *const *ppCommandLists) = 0; + + virtual void STDMETHODCALLTYPE SetMarker( + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size) = 0; + + virtual void STDMETHODCALLTYPE BeginEvent( + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size) = 0; + + virtual void STDMETHODCALLTYPE EndEvent( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Signal( + ID3D12Fence *pFence, + UINT64 Value) = 0; + + virtual HRESULT STDMETHODCALLTYPE Wait( + ID3D12Fence *pFence, + UINT64 Value) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTimestampFrequency( + _Out_ UINT64 *pFrequency) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetClockCalibration( + _Out_ UINT64 *pGpuTimestamp, + _Out_ UINT64 *pCpuTimestamp) = 0; + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_COMMAND_QUEUE_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_COMMAND_QUEUE_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_COMMAND_QUEUE_DESC * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12CommandQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12CommandQueue * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12CommandQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12CommandQueue * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12CommandQueue * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12CommandQueue * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12CommandQueue * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12CommandQueue * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12CommandQueue * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, UpdateTileMappings) + void ( STDMETHODCALLTYPE *UpdateTileMappings )( + ID3D12CommandQueue * This, + _In_ ID3D12Resource *pResource, + UINT NumResourceRegions, + _In_reads_opt_(NumResourceRegions) const D3D12_TILED_RESOURCE_COORDINATE *pResourceRegionStartCoordinates, + _In_reads_opt_(NumResourceRegions) const D3D12_TILE_REGION_SIZE *pResourceRegionSizes, + _In_opt_ ID3D12Heap *pHeap, + UINT NumRanges, + _In_reads_opt_(NumRanges) const D3D12_TILE_RANGE_FLAGS *pRangeFlags, + _In_reads_opt_(NumRanges) const UINT *pHeapRangeStartOffsets, + _In_reads_opt_(NumRanges) const UINT *pRangeTileCounts, + D3D12_TILE_MAPPING_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, CopyTileMappings) + void ( STDMETHODCALLTYPE *CopyTileMappings )( + ID3D12CommandQueue * This, + _In_ ID3D12Resource *pDstResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pDstRegionStartCoordinate, + _In_ ID3D12Resource *pSrcResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pSrcRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pRegionSize, + D3D12_TILE_MAPPING_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, ExecuteCommandLists) + void ( STDMETHODCALLTYPE *ExecuteCommandLists )( + ID3D12CommandQueue * This, + _In_ UINT NumCommandLists, + _In_reads_(NumCommandLists) ID3D12CommandList *const *ppCommandLists); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12CommandQueue * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12CommandQueue * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12CommandQueue * This); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, Signal) + HRESULT ( STDMETHODCALLTYPE *Signal )( + ID3D12CommandQueue * This, + ID3D12Fence *pFence, + UINT64 Value); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, Wait) + HRESULT ( STDMETHODCALLTYPE *Wait )( + ID3D12CommandQueue * This, + ID3D12Fence *pFence, + UINT64 Value); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetTimestampFrequency) + HRESULT ( STDMETHODCALLTYPE *GetTimestampFrequency )( + ID3D12CommandQueue * This, + _Out_ UINT64 *pFrequency); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetClockCalibration) + HRESULT ( STDMETHODCALLTYPE *GetClockCalibration )( + ID3D12CommandQueue * This, + _Out_ UINT64 *pGpuTimestamp, + _Out_ UINT64 *pCpuTimestamp); + + DECLSPEC_XFGVIRT(ID3D12CommandQueue, GetDesc) +#if !defined(_WIN32) + D3D12_COMMAND_QUEUE_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12CommandQueue * This); + +#else + D3D12_COMMAND_QUEUE_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12CommandQueue * This, + D3D12_COMMAND_QUEUE_DESC * RetVal); + +#endif + + END_INTERFACE + } ID3D12CommandQueueVtbl; + + interface ID3D12CommandQueue + { + CONST_VTBL struct ID3D12CommandQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12CommandQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12CommandQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12CommandQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12CommandQueue_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12CommandQueue_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12CommandQueue_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12CommandQueue_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12CommandQueue_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12CommandQueue_UpdateTileMappings(This,pResource,NumResourceRegions,pResourceRegionStartCoordinates,pResourceRegionSizes,pHeap,NumRanges,pRangeFlags,pHeapRangeStartOffsets,pRangeTileCounts,Flags) \ + ( (This)->lpVtbl -> UpdateTileMappings(This,pResource,NumResourceRegions,pResourceRegionStartCoordinates,pResourceRegionSizes,pHeap,NumRanges,pRangeFlags,pHeapRangeStartOffsets,pRangeTileCounts,Flags) ) + +#define ID3D12CommandQueue_CopyTileMappings(This,pDstResource,pDstRegionStartCoordinate,pSrcResource,pSrcRegionStartCoordinate,pRegionSize,Flags) \ + ( (This)->lpVtbl -> CopyTileMappings(This,pDstResource,pDstRegionStartCoordinate,pSrcResource,pSrcRegionStartCoordinate,pRegionSize,Flags) ) + +#define ID3D12CommandQueue_ExecuteCommandLists(This,NumCommandLists,ppCommandLists) \ + ( (This)->lpVtbl -> ExecuteCommandLists(This,NumCommandLists,ppCommandLists) ) + +#define ID3D12CommandQueue_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12CommandQueue_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12CommandQueue_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12CommandQueue_Signal(This,pFence,Value) \ + ( (This)->lpVtbl -> Signal(This,pFence,Value) ) + +#define ID3D12CommandQueue_Wait(This,pFence,Value) \ + ( (This)->lpVtbl -> Wait(This,pFence,Value) ) + +#define ID3D12CommandQueue_GetTimestampFrequency(This,pFrequency) \ + ( (This)->lpVtbl -> GetTimestampFrequency(This,pFrequency) ) + +#define ID3D12CommandQueue_GetClockCalibration(This,pGpuTimestamp,pCpuTimestamp) \ + ( (This)->lpVtbl -> GetClockCalibration(This,pGpuTimestamp,pCpuTimestamp) ) +#if !defined(_WIN32) + +#define ID3D12CommandQueue_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12CommandQueue_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12CommandQueue_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Device_INTERFACE_DEFINED__ +#define __ID3D12Device_INTERFACE_DEFINED__ + +/* interface ID3D12Device */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("189819f1-1db6-4b57-be54-1821339b85f7") + ID3D12Device : public ID3D12Object + { + public: + virtual UINT STDMETHODCALLTYPE GetNodeCount( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateCommandQueue( + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateCommandAllocator( + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateGraphicsPipelineState( + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateComputePipelineState( + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateCommandList( + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList) = 0; + + virtual HRESULT STDMETHODCALLTYPE CheckFeatureSupport( + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDescriptorHeap( + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap) = 0; + + virtual UINT STDMETHODCALLTYPE GetDescriptorHandleIncrementSize( + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateRootSignature( + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature) = 0; + + virtual void STDMETHODCALLTYPE CreateConstantBufferView( + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0; + + virtual void STDMETHODCALLTYPE CreateShaderResourceView( + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0; + + virtual void STDMETHODCALLTYPE CreateUnorderedAccessView( + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0; + + virtual void STDMETHODCALLTYPE CreateRenderTargetView( + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0; + + virtual void STDMETHODCALLTYPE CreateDepthStencilView( + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0; + + virtual void STDMETHODCALLTYPE CreateSampler( + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0; + + virtual void STDMETHODCALLTYPE CopyDescriptors( + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType) = 0; + + virtual void STDMETHODCALLTYPE CopyDescriptorsSimple( + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType) = 0; + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo( + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs) = 0; +#else + virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo( + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs) = 0; +#endif + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_HEAP_PROPERTIES STDMETHODCALLTYPE GetCustomHeapProperties( + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType) = 0; +#else + virtual D3D12_HEAP_PROPERTIES *STDMETHODCALLTYPE GetCustomHeapProperties( + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType) = 0; +#endif + + virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource( + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateHeap( + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource( + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateReservedResource( + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSharedHandle( + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenSharedHandle( + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenSharedHandleByName( + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE MakeResident( + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects) = 0; + + virtual HRESULT STDMETHODCALLTYPE Evict( + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateFence( + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDeviceRemovedReason( void) = 0; + + virtual void STDMETHODCALLTYPE GetCopyableFootprints( + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateQueryHeap( + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStablePowerState( + BOOL Enable) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateCommandSignature( + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature) = 0; + + virtual void STDMETHODCALLTYPE GetResourceTiling( + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips) = 0; + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual LUID STDMETHODCALLTYPE GetAdapterLuid( void) = 0; +#else + virtual LUID *STDMETHODCALLTYPE GetAdapterLuid( + LUID * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device * This, + LUID * RetVal); + +#endif + + END_INTERFACE + } ID3D12DeviceVtbl; + + interface ID3D12Device + { + CONST_VTBL struct ID3D12DeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12PipelineLibrary_INTERFACE_DEFINED__ +#define __ID3D12PipelineLibrary_INTERFACE_DEFINED__ + +/* interface ID3D12PipelineLibrary */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12PipelineLibrary; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c64226a8-9201-46af-b4cc-53fb9ff7414f") + ID3D12PipelineLibrary : public ID3D12DeviceChild + { + public: + virtual HRESULT STDMETHODCALLTYPE StorePipeline( + _In_opt_ LPCWSTR pName, + _In_ ID3D12PipelineState *pPipeline) = 0; + + virtual HRESULT STDMETHODCALLTYPE LoadGraphicsPipeline( + _In_ LPCWSTR pName, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState) = 0; + + virtual HRESULT STDMETHODCALLTYPE LoadComputePipeline( + _In_ LPCWSTR pName, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState) = 0; + + virtual SIZE_T STDMETHODCALLTYPE GetSerializedSize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Serialize( + _Out_writes_(DataSizeInBytes) void *pData, + SIZE_T DataSizeInBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12PipelineLibraryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12PipelineLibrary * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12PipelineLibrary * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12PipelineLibrary * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12PipelineLibrary * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12PipelineLibrary * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12PipelineLibrary * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12PipelineLibrary * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12PipelineLibrary * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, StorePipeline) + HRESULT ( STDMETHODCALLTYPE *StorePipeline )( + ID3D12PipelineLibrary * This, + _In_opt_ LPCWSTR pName, + _In_ ID3D12PipelineState *pPipeline); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadGraphicsPipeline) + HRESULT ( STDMETHODCALLTYPE *LoadGraphicsPipeline )( + ID3D12PipelineLibrary * This, + _In_ LPCWSTR pName, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadComputePipeline) + HRESULT ( STDMETHODCALLTYPE *LoadComputePipeline )( + ID3D12PipelineLibrary * This, + _In_ LPCWSTR pName, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, GetSerializedSize) + SIZE_T ( STDMETHODCALLTYPE *GetSerializedSize )( + ID3D12PipelineLibrary * This); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, Serialize) + HRESULT ( STDMETHODCALLTYPE *Serialize )( + ID3D12PipelineLibrary * This, + _Out_writes_(DataSizeInBytes) void *pData, + SIZE_T DataSizeInBytes); + + END_INTERFACE + } ID3D12PipelineLibraryVtbl; + + interface ID3D12PipelineLibrary + { + CONST_VTBL struct ID3D12PipelineLibraryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12PipelineLibrary_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12PipelineLibrary_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12PipelineLibrary_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12PipelineLibrary_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12PipelineLibrary_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12PipelineLibrary_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12PipelineLibrary_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12PipelineLibrary_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12PipelineLibrary_StorePipeline(This,pName,pPipeline) \ + ( (This)->lpVtbl -> StorePipeline(This,pName,pPipeline) ) + +#define ID3D12PipelineLibrary_LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) ) + +#define ID3D12PipelineLibrary_LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) ) + +#define ID3D12PipelineLibrary_GetSerializedSize(This) \ + ( (This)->lpVtbl -> GetSerializedSize(This) ) + +#define ID3D12PipelineLibrary_Serialize(This,pData,DataSizeInBytes) \ + ( (This)->lpVtbl -> Serialize(This,pData,DataSizeInBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12PipelineLibrary_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12PipelineLibrary1_INTERFACE_DEFINED__ +#define __ID3D12PipelineLibrary1_INTERFACE_DEFINED__ + +/* interface ID3D12PipelineLibrary1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12PipelineLibrary1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("80eabf42-2568-4e5e-bd82-c37f86961dc3") + ID3D12PipelineLibrary1 : public ID3D12PipelineLibrary + { + public: + virtual HRESULT STDMETHODCALLTYPE LoadPipeline( + _In_ LPCWSTR pName, + _In_ const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12PipelineLibrary1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12PipelineLibrary1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12PipelineLibrary1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12PipelineLibrary1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12PipelineLibrary1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12PipelineLibrary1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12PipelineLibrary1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12PipelineLibrary1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12PipelineLibrary1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, StorePipeline) + HRESULT ( STDMETHODCALLTYPE *StorePipeline )( + ID3D12PipelineLibrary1 * This, + _In_opt_ LPCWSTR pName, + _In_ ID3D12PipelineState *pPipeline); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadGraphicsPipeline) + HRESULT ( STDMETHODCALLTYPE *LoadGraphicsPipeline )( + ID3D12PipelineLibrary1 * This, + _In_ LPCWSTR pName, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, LoadComputePipeline) + HRESULT ( STDMETHODCALLTYPE *LoadComputePipeline )( + ID3D12PipelineLibrary1 * This, + _In_ LPCWSTR pName, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, GetSerializedSize) + SIZE_T ( STDMETHODCALLTYPE *GetSerializedSize )( + ID3D12PipelineLibrary1 * This); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary, Serialize) + HRESULT ( STDMETHODCALLTYPE *Serialize )( + ID3D12PipelineLibrary1 * This, + _Out_writes_(DataSizeInBytes) void *pData, + SIZE_T DataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12PipelineLibrary1, LoadPipeline) + HRESULT ( STDMETHODCALLTYPE *LoadPipeline )( + ID3D12PipelineLibrary1 * This, + _In_ LPCWSTR pName, + _In_ const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + END_INTERFACE + } ID3D12PipelineLibrary1Vtbl; + + interface ID3D12PipelineLibrary1 + { + CONST_VTBL struct ID3D12PipelineLibrary1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12PipelineLibrary1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12PipelineLibrary1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12PipelineLibrary1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12PipelineLibrary1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12PipelineLibrary1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12PipelineLibrary1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12PipelineLibrary1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12PipelineLibrary1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12PipelineLibrary1_StorePipeline(This,pName,pPipeline) \ + ( (This)->lpVtbl -> StorePipeline(This,pName,pPipeline) ) + +#define ID3D12PipelineLibrary1_LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> LoadGraphicsPipeline(This,pName,pDesc,riid,ppPipelineState) ) + +#define ID3D12PipelineLibrary1_LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> LoadComputePipeline(This,pName,pDesc,riid,ppPipelineState) ) + +#define ID3D12PipelineLibrary1_GetSerializedSize(This) \ + ( (This)->lpVtbl -> GetSerializedSize(This) ) + +#define ID3D12PipelineLibrary1_Serialize(This,pData,DataSizeInBytes) \ + ( (This)->lpVtbl -> Serialize(This,pData,DataSizeInBytes) ) + + +#define ID3D12PipelineLibrary1_LoadPipeline(This,pName,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> LoadPipeline(This,pName,pDesc,riid,ppPipelineState) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12PipelineLibrary1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0023 */ +/* [local] */ + +typedef +enum D3D12_MULTIPLE_FENCE_WAIT_FLAGS + { + D3D12_MULTIPLE_FENCE_WAIT_FLAG_NONE = 0, + D3D12_MULTIPLE_FENCE_WAIT_FLAG_ANY = 0x1, + D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL = 0 + } D3D12_MULTIPLE_FENCE_WAIT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_MULTIPLE_FENCE_WAIT_FLAGS ) +typedef +enum D3D12_RESIDENCY_PRIORITY + { + D3D12_RESIDENCY_PRIORITY_MINIMUM = 0x28000000, + D3D12_RESIDENCY_PRIORITY_LOW = 0x50000000, + D3D12_RESIDENCY_PRIORITY_NORMAL = 0x78000000, + D3D12_RESIDENCY_PRIORITY_HIGH = 0xa0010000, + D3D12_RESIDENCY_PRIORITY_MAXIMUM = 0xc8000000 + } D3D12_RESIDENCY_PRIORITY; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0023_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0023_v0_0_s_ifspec; + +#ifndef __ID3D12Device1_INTERFACE_DEFINED__ +#define __ID3D12Device1_INTERFACE_DEFINED__ + +/* interface ID3D12Device1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("77acce80-638e-4e65-8895-c1f23386863e") + ID3D12Device1 : public ID3D12Device + { + public: + virtual HRESULT STDMETHODCALLTYPE CreatePipelineLibrary( + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetEventOnMultipleFenceCompletion( + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetResidencyPriority( + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device1 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device1 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device1 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device1 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device1 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device1 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device1 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device1 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device1 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device1 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device1 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device1 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device1 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device1 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device1 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device1 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device1 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device1 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device1 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device1 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device1 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device1 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device1 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device1 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device1 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device1 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device1 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device1 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device1 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device1 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device1 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device1 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device1 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device1 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device1 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device1 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device1 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device1 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device1 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device1 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device1 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device1 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device1 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + END_INTERFACE + } ID3D12Device1Vtbl; + + interface ID3D12Device1 + { + CONST_VTBL struct ID3D12Device1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device1_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device1_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device1_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device1_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device1_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device1_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device1_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device1_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device1_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device1_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device1_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device1_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device1_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device1_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device1_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device1_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device1_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device1_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device1_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device1_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device1_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device1_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device1_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device1_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device1_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device1_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device1_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device1_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device1_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device1_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device1_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device1_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device1_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device1_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device1_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device1_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device1_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device1_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device1_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device1_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device1_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device1_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device1_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Device2_INTERFACE_DEFINED__ +#define __ID3D12Device2_INTERFACE_DEFINED__ + +/* interface ID3D12Device2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("30baa41e-b15b-475c-a0bb-1af5c5b64328") + ID3D12Device2 : public ID3D12Device1 + { + public: + virtual HRESULT STDMETHODCALLTYPE CreatePipelineState( + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device2 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device2 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device2 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device2 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device2 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device2 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device2 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device2 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device2 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device2 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device2 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device2 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device2 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device2 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device2 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device2 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device2 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device2 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device2 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device2 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device2 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device2 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device2 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device2 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device2 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device2 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device2 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device2 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device2 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device2 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device2 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device2 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device2 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device2 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device2 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device2 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device2 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device2 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device2 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device2 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device2 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device2 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device2 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device2 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device2 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device2 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device2 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device2 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device2 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + END_INTERFACE + } ID3D12Device2Vtbl; + + interface ID3D12Device2 + { + CONST_VTBL struct ID3D12Device2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device2_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device2_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device2_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device2_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device2_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device2_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device2_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device2_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device2_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device2_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device2_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device2_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device2_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device2_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device2_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device2_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device2_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device2_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device2_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device2_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device2_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device2_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device2_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device2_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device2_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device2_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device2_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device2_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device2_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device2_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device2_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device2_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device2_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device2_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device2_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device2_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device2_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device2_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device2_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device2_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device2_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device2_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device2_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device2_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device2_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device2_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0025 */ +/* [local] */ + +typedef +enum D3D12_RESIDENCY_FLAGS + { + D3D12_RESIDENCY_FLAG_NONE = 0, + D3D12_RESIDENCY_FLAG_DENY_OVERBUDGET = 0x1 + } D3D12_RESIDENCY_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESIDENCY_FLAGS ) + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0025_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0025_v0_0_s_ifspec; + +#ifndef __ID3D12Device3_INTERFACE_DEFINED__ +#define __ID3D12Device3_INTERFACE_DEFINED__ + +/* interface ID3D12Device3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("81dadc15-2bad-4392-93c5-101345c4aa98") + ID3D12Device3 : public ID3D12Device2 + { + public: + virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromAddress( + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromFileMapping( + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnqueueMakeResident( + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device3 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device3 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device3 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device3 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device3 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device3 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device3 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device3 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device3 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device3 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device3 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device3 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device3 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device3 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device3 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device3 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device3 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device3 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device3 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device3 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device3 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device3 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device3 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device3 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device3 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device3 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device3 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device3 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device3 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device3 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device3 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device3 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device3 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device3 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device3 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device3 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device3 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device3 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device3 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device3 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device3 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device3 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device3 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device3 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device3 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device3 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device3 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device3 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device3 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device3 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device3 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device3 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device3 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + END_INTERFACE + } ID3D12Device3Vtbl; + + interface ID3D12Device3 + { + CONST_VTBL struct ID3D12Device3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device3_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device3_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device3_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device3_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device3_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device3_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device3_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device3_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device3_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device3_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device3_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device3_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device3_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device3_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device3_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device3_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device3_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device3_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device3_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device3_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device3_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device3_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device3_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device3_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device3_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device3_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device3_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device3_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device3_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device3_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device3_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device3_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device3_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device3_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device3_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device3_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device3_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device3_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device3_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device3_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device3_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device3_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device3_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device3_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device3_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device3_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device3_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device3_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device3_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device3_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device3_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0026 */ +/* [local] */ + +typedef +enum D3D12_COMMAND_LIST_FLAGS + { + D3D12_COMMAND_LIST_FLAG_NONE = 0 + } D3D12_COMMAND_LIST_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_LIST_FLAGS ) +typedef +enum D3D12_COMMAND_POOL_FLAGS + { + D3D12_COMMAND_POOL_FLAG_NONE = 0 + } D3D12_COMMAND_POOL_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_POOL_FLAGS ) +typedef +enum D3D12_COMMAND_RECORDER_FLAGS + { + D3D12_COMMAND_RECORDER_FLAG_NONE = 0 + } D3D12_COMMAND_RECORDER_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_RECORDER_FLAGS ) +typedef +enum D3D12_PROTECTED_SESSION_STATUS + { + D3D12_PROTECTED_SESSION_STATUS_OK = 0, + D3D12_PROTECTED_SESSION_STATUS_INVALID = 1 + } D3D12_PROTECTED_SESSION_STATUS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0026_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0026_v0_0_s_ifspec; + +#ifndef __ID3D12ProtectedSession_INTERFACE_DEFINED__ +#define __ID3D12ProtectedSession_INTERFACE_DEFINED__ + +/* interface ID3D12ProtectedSession */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12ProtectedSession; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A1533D18-0AC1-4084-85B9-89A96116806B") + ID3D12ProtectedSession : public ID3D12DeviceChild + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStatusFence( + REFIID riid, + _COM_Outptr_opt_ void **ppFence) = 0; + + virtual D3D12_PROTECTED_SESSION_STATUS STDMETHODCALLTYPE GetSessionStatus( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12ProtectedSessionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12ProtectedSession * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12ProtectedSession * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12ProtectedSession * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12ProtectedSession * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12ProtectedSession * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12ProtectedSession * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12ProtectedSession * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12ProtectedSession * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence) + HRESULT ( STDMETHODCALLTYPE *GetStatusFence )( + ID3D12ProtectedSession * This, + REFIID riid, + _COM_Outptr_opt_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus) + D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )( + ID3D12ProtectedSession * This); + + END_INTERFACE + } ID3D12ProtectedSessionVtbl; + + interface ID3D12ProtectedSession + { + CONST_VTBL struct ID3D12ProtectedSessionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12ProtectedSession_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12ProtectedSession_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12ProtectedSession_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12ProtectedSession_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12ProtectedSession_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12ProtectedSession_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12ProtectedSession_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12ProtectedSession_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12ProtectedSession_GetStatusFence(This,riid,ppFence) \ + ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) ) + +#define ID3D12ProtectedSession_GetSessionStatus(This) \ + ( (This)->lpVtbl -> GetSessionStatus(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12ProtectedSession_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0027 */ +/* [local] */ + +typedef +enum D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS + { + D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_NONE = 0, + D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_SUPPORTED = 0x1 + } D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS ) +typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT + { + UINT NodeIndex; + D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS Support; + } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT; + +typedef +enum D3D12_PROTECTED_RESOURCE_SESSION_FLAGS + { + D3D12_PROTECTED_RESOURCE_SESSION_FLAG_NONE = 0 + } D3D12_PROTECTED_RESOURCE_SESSION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_PROTECTED_RESOURCE_SESSION_FLAGS ) +typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC + { + UINT NodeMask; + D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags; + } D3D12_PROTECTED_RESOURCE_SESSION_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0027_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0027_v0_0_s_ifspec; + +#ifndef __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__ +#define __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__ + +/* interface ID3D12ProtectedResourceSession */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12ProtectedResourceSession; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6CD696F4-F289-40CC-8091-5A6C0A099C3D") + ID3D12ProtectedResourceSession : public ID3D12ProtectedSession + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12ProtectedResourceSessionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12ProtectedResourceSession * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12ProtectedResourceSession * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12ProtectedResourceSession * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12ProtectedResourceSession * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12ProtectedResourceSession * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12ProtectedResourceSession * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12ProtectedResourceSession * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12ProtectedResourceSession * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence) + HRESULT ( STDMETHODCALLTYPE *GetStatusFence )( + ID3D12ProtectedResourceSession * This, + REFIID riid, + _COM_Outptr_opt_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus) + D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )( + ID3D12ProtectedResourceSession * This); + + DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession, GetDesc) +#if !defined(_WIN32) + D3D12_PROTECTED_RESOURCE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12ProtectedResourceSession * This); + +#else + D3D12_PROTECTED_RESOURCE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12ProtectedResourceSession * This, + D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal); + +#endif + + END_INTERFACE + } ID3D12ProtectedResourceSessionVtbl; + + interface ID3D12ProtectedResourceSession + { + CONST_VTBL struct ID3D12ProtectedResourceSessionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12ProtectedResourceSession_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12ProtectedResourceSession_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12ProtectedResourceSession_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12ProtectedResourceSession_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12ProtectedResourceSession_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12ProtectedResourceSession_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12ProtectedResourceSession_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12ProtectedResourceSession_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12ProtectedResourceSession_GetStatusFence(This,riid,ppFence) \ + ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) ) + +#define ID3D12ProtectedResourceSession_GetSessionStatus(This) \ + ( (This)->lpVtbl -> GetSessionStatus(This) ) + +#if !defined(_WIN32) + +#define ID3D12ProtectedResourceSession_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12ProtectedResourceSession_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12ProtectedResourceSession_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Device4_INTERFACE_DEFINED__ +#define __ID3D12Device4_INTERFACE_DEFINED__ + +/* interface ID3D12Device4 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e865df17-a9ee-46f9-a463-3098315aa2e5") + ID3D12Device4 : public ID3D12Device3 + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateCommandList1( + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateProtectedResourceSession( + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource1( + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateHeap1( + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateReservedResource1( + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource) = 0; + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo1( + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0; +#else + virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo1( + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device4 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device4 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device4 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device4 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device4 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device4 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device4 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device4 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device4 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device4 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device4 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device4 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device4 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device4 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device4 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device4 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device4 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device4 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device4 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device4 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device4 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device4 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device4 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device4 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device4 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device4 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device4 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device4 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device4 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device4 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device4 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device4 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device4 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device4 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device4 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device4 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device4 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device4 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device4 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device4 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device4 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device4 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device4 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device4 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device4 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device4 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device4 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device4 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device4 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device4 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device4 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device4 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device4 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device4 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device4 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device4 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device4 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device4 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device4 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device4 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + END_INTERFACE + } ID3D12Device4Vtbl; + + interface ID3D12Device4 + { + CONST_VTBL struct ID3D12Device4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device4_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device4_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device4_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device4_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device4_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device4_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device4_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device4_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device4_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device4_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device4_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device4_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device4_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device4_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device4_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device4_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device4_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device4_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device4_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device4_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device4_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device4_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device4_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device4_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device4_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device4_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device4_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device4_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device4_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device4_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device4_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device4_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device4_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device4_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device4_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device4_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device4_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device4_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device4_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device4_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device4_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device4_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device4_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device4_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device4_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device4_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device4_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device4_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device4_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device4_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device4_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device4_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device4_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device4_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device4_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device4_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device4_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device4_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device4_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0029 */ +/* [local] */ + +typedef +enum D3D12_LIFETIME_STATE + { + D3D12_LIFETIME_STATE_IN_USE = 0, + D3D12_LIFETIME_STATE_NOT_IN_USE = ( D3D12_LIFETIME_STATE_IN_USE + 1 ) + } D3D12_LIFETIME_STATE; + + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0029_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0029_v0_0_s_ifspec; + +#ifndef __ID3D12LifetimeOwner_INTERFACE_DEFINED__ +#define __ID3D12LifetimeOwner_INTERFACE_DEFINED__ + +/* interface ID3D12LifetimeOwner */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12LifetimeOwner; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e667af9f-cd56-4f46-83ce-032e595d70a8") + ID3D12LifetimeOwner : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE LifetimeStateUpdated( + D3D12_LIFETIME_STATE NewState) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12LifetimeOwnerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12LifetimeOwner * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12LifetimeOwner * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12LifetimeOwner * This); + + DECLSPEC_XFGVIRT(ID3D12LifetimeOwner, LifetimeStateUpdated) + void ( STDMETHODCALLTYPE *LifetimeStateUpdated )( + ID3D12LifetimeOwner * This, + D3D12_LIFETIME_STATE NewState); + + END_INTERFACE + } ID3D12LifetimeOwnerVtbl; + + interface ID3D12LifetimeOwner + { + CONST_VTBL struct ID3D12LifetimeOwnerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12LifetimeOwner_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12LifetimeOwner_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12LifetimeOwner_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12LifetimeOwner_LifetimeStateUpdated(This,NewState) \ + ( (This)->lpVtbl -> LifetimeStateUpdated(This,NewState) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12LifetimeOwner_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12SwapChainAssistant_INTERFACE_DEFINED__ +#define __ID3D12SwapChainAssistant_INTERFACE_DEFINED__ + +/* interface ID3D12SwapChainAssistant */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12SwapChainAssistant; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f1df64b6-57fd-49cd-8807-c0eb88b45c8f") + ID3D12SwapChainAssistant : public IUnknown + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual LUID STDMETHODCALLTYPE GetLUID( void) = 0; +#else + virtual LUID *STDMETHODCALLTYPE GetLUID( + LUID * RetVal) = 0; +#endif + + virtual HRESULT STDMETHODCALLTYPE GetSwapChainObject( + REFIID riid, + _COM_Outptr_ void **ppv) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentResourceAndCommandQueue( + REFIID riidResource, + _COM_Outptr_ void **ppvResource, + REFIID riidQueue, + _COM_Outptr_ void **ppvQueue) = 0; + + virtual HRESULT STDMETHODCALLTYPE InsertImplicitSync( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12SwapChainAssistantVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12SwapChainAssistant * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12SwapChainAssistant * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12SwapChainAssistant * This); + + DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetLUID) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetLUID )( + ID3D12SwapChainAssistant * This); + +#else + LUID *( STDMETHODCALLTYPE *GetLUID )( + ID3D12SwapChainAssistant * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetSwapChainObject) + HRESULT ( STDMETHODCALLTYPE *GetSwapChainObject )( + ID3D12SwapChainAssistant * This, + REFIID riid, + _COM_Outptr_ void **ppv); + + DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, GetCurrentResourceAndCommandQueue) + HRESULT ( STDMETHODCALLTYPE *GetCurrentResourceAndCommandQueue )( + ID3D12SwapChainAssistant * This, + REFIID riidResource, + _COM_Outptr_ void **ppvResource, + REFIID riidQueue, + _COM_Outptr_ void **ppvQueue); + + DECLSPEC_XFGVIRT(ID3D12SwapChainAssistant, InsertImplicitSync) + HRESULT ( STDMETHODCALLTYPE *InsertImplicitSync )( + ID3D12SwapChainAssistant * This); + + END_INTERFACE + } ID3D12SwapChainAssistantVtbl; + + interface ID3D12SwapChainAssistant + { + CONST_VTBL struct ID3D12SwapChainAssistantVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12SwapChainAssistant_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12SwapChainAssistant_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12SwapChainAssistant_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + +#if !defined(_WIN32) + +#define ID3D12SwapChainAssistant_GetLUID(This) \ + ( (This)->lpVtbl -> GetLUID(This) ) +#else +#define ID3D12SwapChainAssistant_GetLUID(This,RetVal) \ + ( (This)->lpVtbl -> GetLUID(This,RetVal) ) +#endif + +#define ID3D12SwapChainAssistant_GetSwapChainObject(This,riid,ppv) \ + ( (This)->lpVtbl -> GetSwapChainObject(This,riid,ppv) ) + +#define ID3D12SwapChainAssistant_GetCurrentResourceAndCommandQueue(This,riidResource,ppvResource,riidQueue,ppvQueue) \ + ( (This)->lpVtbl -> GetCurrentResourceAndCommandQueue(This,riidResource,ppvResource,riidQueue,ppvQueue) ) + +#define ID3D12SwapChainAssistant_InsertImplicitSync(This) \ + ( (This)->lpVtbl -> InsertImplicitSync(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12SwapChainAssistant_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12LifetimeTracker_INTERFACE_DEFINED__ +#define __ID3D12LifetimeTracker_INTERFACE_DEFINED__ + +/* interface ID3D12LifetimeTracker */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12LifetimeTracker; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3fd03d36-4eb1-424a-a582-494ecb8ba813") + ID3D12LifetimeTracker : public ID3D12DeviceChild + { + public: + virtual HRESULT STDMETHODCALLTYPE DestroyOwnedObject( + _In_ ID3D12DeviceChild *pObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12LifetimeTrackerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12LifetimeTracker * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12LifetimeTracker * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12LifetimeTracker * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12LifetimeTracker * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12LifetimeTracker * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12LifetimeTracker * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12LifetimeTracker * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12LifetimeTracker * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12LifetimeTracker, DestroyOwnedObject) + HRESULT ( STDMETHODCALLTYPE *DestroyOwnedObject )( + ID3D12LifetimeTracker * This, + _In_ ID3D12DeviceChild *pObject); + + END_INTERFACE + } ID3D12LifetimeTrackerVtbl; + + interface ID3D12LifetimeTracker + { + CONST_VTBL struct ID3D12LifetimeTrackerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12LifetimeTracker_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12LifetimeTracker_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12LifetimeTracker_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12LifetimeTracker_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12LifetimeTracker_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12LifetimeTracker_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12LifetimeTracker_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12LifetimeTracker_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12LifetimeTracker_DestroyOwnedObject(This,pObject) \ + ( (This)->lpVtbl -> DestroyOwnedObject(This,pObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12LifetimeTracker_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0032 */ +/* [local] */ + +typedef +enum D3D12_META_COMMAND_PARAMETER_TYPE + { + D3D12_META_COMMAND_PARAMETER_TYPE_FLOAT = 0, + D3D12_META_COMMAND_PARAMETER_TYPE_UINT64 = 1, + D3D12_META_COMMAND_PARAMETER_TYPE_GPU_VIRTUAL_ADDRESS = 2, + D3D12_META_COMMAND_PARAMETER_TYPE_CPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 3, + D3D12_META_COMMAND_PARAMETER_TYPE_GPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 4 + } D3D12_META_COMMAND_PARAMETER_TYPE; + +typedef +enum D3D12_META_COMMAND_PARAMETER_FLAGS + { + D3D12_META_COMMAND_PARAMETER_FLAG_INPUT = 0x1, + D3D12_META_COMMAND_PARAMETER_FLAG_OUTPUT = 0x2 + } D3D12_META_COMMAND_PARAMETER_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_META_COMMAND_PARAMETER_FLAGS ) +typedef +enum D3D12_META_COMMAND_PARAMETER_STAGE + { + D3D12_META_COMMAND_PARAMETER_STAGE_CREATION = 0, + D3D12_META_COMMAND_PARAMETER_STAGE_INITIALIZATION = 1, + D3D12_META_COMMAND_PARAMETER_STAGE_EXECUTION = 2 + } D3D12_META_COMMAND_PARAMETER_STAGE; + +typedef struct D3D12_META_COMMAND_PARAMETER_DESC + { + LPCWSTR Name; + D3D12_META_COMMAND_PARAMETER_TYPE Type; + D3D12_META_COMMAND_PARAMETER_FLAGS Flags; + D3D12_RESOURCE_STATES RequiredResourceState; + UINT StructureOffset; + } D3D12_META_COMMAND_PARAMETER_DESC; + +typedef +enum D3D12_GRAPHICS_STATES + { + D3D12_GRAPHICS_STATE_NONE = 0, + D3D12_GRAPHICS_STATE_IA_VERTEX_BUFFERS = ( 1 << 0 ) , + D3D12_GRAPHICS_STATE_IA_INDEX_BUFFER = ( 1 << 1 ) , + D3D12_GRAPHICS_STATE_IA_PRIMITIVE_TOPOLOGY = ( 1 << 2 ) , + D3D12_GRAPHICS_STATE_DESCRIPTOR_HEAP = ( 1 << 3 ) , + D3D12_GRAPHICS_STATE_GRAPHICS_ROOT_SIGNATURE = ( 1 << 4 ) , + D3D12_GRAPHICS_STATE_COMPUTE_ROOT_SIGNATURE = ( 1 << 5 ) , + D3D12_GRAPHICS_STATE_RS_VIEWPORTS = ( 1 << 6 ) , + D3D12_GRAPHICS_STATE_RS_SCISSOR_RECTS = ( 1 << 7 ) , + D3D12_GRAPHICS_STATE_PREDICATION = ( 1 << 8 ) , + D3D12_GRAPHICS_STATE_OM_RENDER_TARGETS = ( 1 << 9 ) , + D3D12_GRAPHICS_STATE_OM_STENCIL_REF = ( 1 << 10 ) , + D3D12_GRAPHICS_STATE_OM_BLEND_FACTOR = ( 1 << 11 ) , + D3D12_GRAPHICS_STATE_PIPELINE_STATE = ( 1 << 12 ) , + D3D12_GRAPHICS_STATE_SO_TARGETS = ( 1 << 13 ) , + D3D12_GRAPHICS_STATE_OM_DEPTH_BOUNDS = ( 1 << 14 ) , + D3D12_GRAPHICS_STATE_SAMPLE_POSITIONS = ( 1 << 15 ) , + D3D12_GRAPHICS_STATE_VIEW_INSTANCE_MASK = ( 1 << 16 ) + } D3D12_GRAPHICS_STATES; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_GRAPHICS_STATES ) +typedef struct D3D12_META_COMMAND_DESC + { + GUID Id; + LPCWSTR Name; + D3D12_GRAPHICS_STATES InitializationDirtyState; + D3D12_GRAPHICS_STATES ExecutionDirtyState; + } D3D12_META_COMMAND_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0032_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0032_v0_0_s_ifspec; + +#ifndef __ID3D12StateObject_INTERFACE_DEFINED__ +#define __ID3D12StateObject_INTERFACE_DEFINED__ + +/* interface ID3D12StateObject */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12StateObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("47016943-fca8-4594-93ea-af258b55346d") + ID3D12StateObject : public ID3D12Pageable + { + public: + }; + + +#else /* C style interface */ + + typedef struct ID3D12StateObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12StateObject * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12StateObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12StateObject * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12StateObject * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12StateObject * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12StateObject * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12StateObject * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12StateObject * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + END_INTERFACE + } ID3D12StateObjectVtbl; + + interface ID3D12StateObject + { + CONST_VTBL struct ID3D12StateObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12StateObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12StateObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12StateObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12StateObject_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12StateObject_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12StateObject_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12StateObject_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12StateObject_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12StateObject_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12StateObjectProperties_INTERFACE_DEFINED__ +#define __ID3D12StateObjectProperties_INTERFACE_DEFINED__ + +/* interface ID3D12StateObjectProperties */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12StateObjectProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("de5fa827-9bf9-4f26-89ff-d7f56fde3860") + ID3D12StateObjectProperties : public IUnknown + { + public: + virtual void *STDMETHODCALLTYPE GetShaderIdentifier( + _In_ LPCWSTR pExportName) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetShaderStackSize( + _In_ LPCWSTR pExportName) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetPipelineStackSize( void) = 0; + + virtual void STDMETHODCALLTYPE SetPipelineStackSize( + UINT64 PipelineStackSizeInBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12StateObjectPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12StateObjectProperties * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12StateObjectProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12StateObjectProperties * This); + + DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderIdentifier) + void *( STDMETHODCALLTYPE *GetShaderIdentifier )( + ID3D12StateObjectProperties * This, + _In_ LPCWSTR pExportName); + + DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderStackSize) + UINT64 ( STDMETHODCALLTYPE *GetShaderStackSize )( + ID3D12StateObjectProperties * This, + _In_ LPCWSTR pExportName); + + DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetPipelineStackSize) + UINT64 ( STDMETHODCALLTYPE *GetPipelineStackSize )( + ID3D12StateObjectProperties * This); + + DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, SetPipelineStackSize) + void ( STDMETHODCALLTYPE *SetPipelineStackSize )( + ID3D12StateObjectProperties * This, + UINT64 PipelineStackSizeInBytes); + + END_INTERFACE + } ID3D12StateObjectPropertiesVtbl; + + interface ID3D12StateObjectProperties + { + CONST_VTBL struct ID3D12StateObjectPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12StateObjectProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12StateObjectProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12StateObjectProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12StateObjectProperties_GetShaderIdentifier(This,pExportName) \ + ( (This)->lpVtbl -> GetShaderIdentifier(This,pExportName) ) + +#define ID3D12StateObjectProperties_GetShaderStackSize(This,pExportName) \ + ( (This)->lpVtbl -> GetShaderStackSize(This,pExportName) ) + +#define ID3D12StateObjectProperties_GetPipelineStackSize(This) \ + ( (This)->lpVtbl -> GetPipelineStackSize(This) ) + +#define ID3D12StateObjectProperties_SetPipelineStackSize(This,PipelineStackSizeInBytes) \ + ( (This)->lpVtbl -> SetPipelineStackSize(This,PipelineStackSizeInBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12StateObjectProperties_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0034 */ +/* [local] */ + +typedef struct D3D12_PROGRAM_IDENTIFIER + { + UINT64 OpaqueData[ 4 ]; + } D3D12_PROGRAM_IDENTIFIER; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0034_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0034_v0_0_s_ifspec; + +#ifndef __ID3D12StateObjectProperties1_INTERFACE_DEFINED__ +#define __ID3D12StateObjectProperties1_INTERFACE_DEFINED__ + +/* interface ID3D12StateObjectProperties1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12StateObjectProperties1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("460caac7-1d24-446a-a184-ca67db494138") + ID3D12StateObjectProperties1 : public ID3D12StateObjectProperties + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_PROGRAM_IDENTIFIER STDMETHODCALLTYPE GetProgramIdentifier( + LPCWSTR pProgramName) = 0; +#else + virtual D3D12_PROGRAM_IDENTIFIER *STDMETHODCALLTYPE GetProgramIdentifier( + D3D12_PROGRAM_IDENTIFIER * RetVal, + LPCWSTR pProgramName) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12StateObjectProperties1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12StateObjectProperties1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12StateObjectProperties1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12StateObjectProperties1 * This); + + DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderIdentifier) + void *( STDMETHODCALLTYPE *GetShaderIdentifier )( + ID3D12StateObjectProperties1 * This, + _In_ LPCWSTR pExportName); + + DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetShaderStackSize) + UINT64 ( STDMETHODCALLTYPE *GetShaderStackSize )( + ID3D12StateObjectProperties1 * This, + _In_ LPCWSTR pExportName); + + DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, GetPipelineStackSize) + UINT64 ( STDMETHODCALLTYPE *GetPipelineStackSize )( + ID3D12StateObjectProperties1 * This); + + DECLSPEC_XFGVIRT(ID3D12StateObjectProperties, SetPipelineStackSize) + void ( STDMETHODCALLTYPE *SetPipelineStackSize )( + ID3D12StateObjectProperties1 * This, + UINT64 PipelineStackSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12StateObjectProperties1, GetProgramIdentifier) +#if !defined(_WIN32) + D3D12_PROGRAM_IDENTIFIER ( STDMETHODCALLTYPE *GetProgramIdentifier )( + ID3D12StateObjectProperties1 * This, + LPCWSTR pProgramName); + +#else + D3D12_PROGRAM_IDENTIFIER *( STDMETHODCALLTYPE *GetProgramIdentifier )( + ID3D12StateObjectProperties1 * This, + D3D12_PROGRAM_IDENTIFIER * RetVal, + LPCWSTR pProgramName); + +#endif + + END_INTERFACE + } ID3D12StateObjectProperties1Vtbl; + + interface ID3D12StateObjectProperties1 + { + CONST_VTBL struct ID3D12StateObjectProperties1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12StateObjectProperties1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12StateObjectProperties1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12StateObjectProperties1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12StateObjectProperties1_GetShaderIdentifier(This,pExportName) \ + ( (This)->lpVtbl -> GetShaderIdentifier(This,pExportName) ) + +#define ID3D12StateObjectProperties1_GetShaderStackSize(This,pExportName) \ + ( (This)->lpVtbl -> GetShaderStackSize(This,pExportName) ) + +#define ID3D12StateObjectProperties1_GetPipelineStackSize(This) \ + ( (This)->lpVtbl -> GetPipelineStackSize(This) ) + +#define ID3D12StateObjectProperties1_SetPipelineStackSize(This,PipelineStackSizeInBytes) \ + ( (This)->lpVtbl -> SetPipelineStackSize(This,PipelineStackSizeInBytes) ) + +#if !defined(_WIN32) + +#define ID3D12StateObjectProperties1_GetProgramIdentifier(This,pProgramName) \ + ( (This)->lpVtbl -> GetProgramIdentifier(This,pProgramName) ) +#else +#define ID3D12StateObjectProperties1_GetProgramIdentifier(This,RetVal,pProgramName) \ + ( (This)->lpVtbl -> GetProgramIdentifier(This,RetVal,pProgramName) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12StateObjectProperties1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0035 */ +/* [local] */ + +typedef struct D3D12_NODE_ID + { + LPCWSTR Name; + UINT ArrayIndex; + } D3D12_NODE_ID; + +typedef struct D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS + { + UINT64 MinSizeInBytes; + UINT64 MaxSizeInBytes; + UINT SizeGranularityInBytes; + } D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0035_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0035_v0_0_s_ifspec; + +#ifndef __ID3D12WorkGraphProperties_INTERFACE_DEFINED__ +#define __ID3D12WorkGraphProperties_INTERFACE_DEFINED__ + +/* interface ID3D12WorkGraphProperties */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12WorkGraphProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("065acf71-f863-4b89-82f4-02e4d5886757") + ID3D12WorkGraphProperties : public IUnknown + { + public: + virtual UINT STDMETHODCALLTYPE GetNumWorkGraphs( void) = 0; + + virtual LPCWSTR STDMETHODCALLTYPE GetProgramName( + UINT WorkGraphIndex) = 0; + + virtual UINT STDMETHODCALLTYPE GetWorkGraphIndex( + LPCWSTR pProgramName) = 0; + + virtual UINT STDMETHODCALLTYPE GetNumNodes( + UINT WorkGraphIndex) = 0; + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_NODE_ID STDMETHODCALLTYPE GetNodeID( + UINT WorkGraphIndex, + UINT NodeIndex) = 0; +#else + virtual D3D12_NODE_ID *STDMETHODCALLTYPE GetNodeID( + D3D12_NODE_ID * RetVal, + UINT WorkGraphIndex, + UINT NodeIndex) = 0; +#endif + + virtual UINT STDMETHODCALLTYPE GetNodeIndex( + UINT WorkGraphIndex, + D3D12_NODE_ID NodeID) = 0; + + virtual UINT STDMETHODCALLTYPE GetNodeLocalRootArgumentsTableIndex( + UINT WorkGraphIndex, + UINT NodeIndex) = 0; + + virtual UINT STDMETHODCALLTYPE GetNumEntrypoints( + UINT WorkGraphIndex) = 0; + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_NODE_ID STDMETHODCALLTYPE GetEntrypointID( + UINT WorkGraphIndex, + UINT EntrypointIndex) = 0; +#else + virtual D3D12_NODE_ID *STDMETHODCALLTYPE GetEntrypointID( + D3D12_NODE_ID * RetVal, + UINT WorkGraphIndex, + UINT EntrypointIndex) = 0; +#endif + + virtual UINT STDMETHODCALLTYPE GetEntrypointIndex( + UINT WorkGraphIndex, + D3D12_NODE_ID NodeID) = 0; + + virtual UINT STDMETHODCALLTYPE GetEntrypointRecordSizeInBytes( + UINT WorkGraphIndex, + UINT EntrypointIndex) = 0; + + virtual void STDMETHODCALLTYPE GetWorkGraphMemoryRequirements( + UINT WorkGraphIndex, + _Out_ D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS *pWorkGraphMemoryRequirements) = 0; + + virtual UINT STDMETHODCALLTYPE GetEntrypointRecordAlignmentInBytes( + UINT WorkGraphIndex, + UINT EntrypointIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12WorkGraphPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12WorkGraphProperties * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12WorkGraphProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12WorkGraphProperties * This); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNumWorkGraphs) + UINT ( STDMETHODCALLTYPE *GetNumWorkGraphs )( + ID3D12WorkGraphProperties * This); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetProgramName) + LPCWSTR ( STDMETHODCALLTYPE *GetProgramName )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetWorkGraphIndex) + UINT ( STDMETHODCALLTYPE *GetWorkGraphIndex )( + ID3D12WorkGraphProperties * This, + LPCWSTR pProgramName); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNumNodes) + UINT ( STDMETHODCALLTYPE *GetNumNodes )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNodeID) +#if !defined(_WIN32) + D3D12_NODE_ID ( STDMETHODCALLTYPE *GetNodeID )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex, + UINT NodeIndex); + +#else + D3D12_NODE_ID *( STDMETHODCALLTYPE *GetNodeID )( + ID3D12WorkGraphProperties * This, + D3D12_NODE_ID * RetVal, + UINT WorkGraphIndex, + UINT NodeIndex); + +#endif + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNodeIndex) + UINT ( STDMETHODCALLTYPE *GetNodeIndex )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex, + D3D12_NODE_ID NodeID); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNodeLocalRootArgumentsTableIndex) + UINT ( STDMETHODCALLTYPE *GetNodeLocalRootArgumentsTableIndex )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex, + UINT NodeIndex); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetNumEntrypoints) + UINT ( STDMETHODCALLTYPE *GetNumEntrypoints )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointID) +#if !defined(_WIN32) + D3D12_NODE_ID ( STDMETHODCALLTYPE *GetEntrypointID )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex, + UINT EntrypointIndex); + +#else + D3D12_NODE_ID *( STDMETHODCALLTYPE *GetEntrypointID )( + ID3D12WorkGraphProperties * This, + D3D12_NODE_ID * RetVal, + UINT WorkGraphIndex, + UINT EntrypointIndex); + +#endif + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointIndex) + UINT ( STDMETHODCALLTYPE *GetEntrypointIndex )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex, + D3D12_NODE_ID NodeID); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointRecordSizeInBytes) + UINT ( STDMETHODCALLTYPE *GetEntrypointRecordSizeInBytes )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex, + UINT EntrypointIndex); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetWorkGraphMemoryRequirements) + void ( STDMETHODCALLTYPE *GetWorkGraphMemoryRequirements )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex, + _Out_ D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS *pWorkGraphMemoryRequirements); + + DECLSPEC_XFGVIRT(ID3D12WorkGraphProperties, GetEntrypointRecordAlignmentInBytes) + UINT ( STDMETHODCALLTYPE *GetEntrypointRecordAlignmentInBytes )( + ID3D12WorkGraphProperties * This, + UINT WorkGraphIndex, + UINT EntrypointIndex); + + END_INTERFACE + } ID3D12WorkGraphPropertiesVtbl; + + interface ID3D12WorkGraphProperties + { + CONST_VTBL struct ID3D12WorkGraphPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12WorkGraphProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12WorkGraphProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12WorkGraphProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12WorkGraphProperties_GetNumWorkGraphs(This) \ + ( (This)->lpVtbl -> GetNumWorkGraphs(This) ) + +#define ID3D12WorkGraphProperties_GetProgramName(This,WorkGraphIndex) \ + ( (This)->lpVtbl -> GetProgramName(This,WorkGraphIndex) ) + +#define ID3D12WorkGraphProperties_GetWorkGraphIndex(This,pProgramName) \ + ( (This)->lpVtbl -> GetWorkGraphIndex(This,pProgramName) ) + +#define ID3D12WorkGraphProperties_GetNumNodes(This,WorkGraphIndex) \ + ( (This)->lpVtbl -> GetNumNodes(This,WorkGraphIndex) ) +#if !defined(_WIN32) + +#define ID3D12WorkGraphProperties_GetNodeID(This,WorkGraphIndex,NodeIndex) \ + ( (This)->lpVtbl -> GetNodeID(This,WorkGraphIndex,NodeIndex) ) +#else +#define ID3D12WorkGraphProperties_GetNodeID(This,RetVal,WorkGraphIndex,NodeIndex) \ + ( (This)->lpVtbl -> GetNodeID(This,RetVal,WorkGraphIndex,NodeIndex) ) +#endif + +#define ID3D12WorkGraphProperties_GetNodeIndex(This,WorkGraphIndex,NodeID) \ + ( (This)->lpVtbl -> GetNodeIndex(This,WorkGraphIndex,NodeID) ) + +#define ID3D12WorkGraphProperties_GetNodeLocalRootArgumentsTableIndex(This,WorkGraphIndex,NodeIndex) \ + ( (This)->lpVtbl -> GetNodeLocalRootArgumentsTableIndex(This,WorkGraphIndex,NodeIndex) ) + +#define ID3D12WorkGraphProperties_GetNumEntrypoints(This,WorkGraphIndex) \ + ( (This)->lpVtbl -> GetNumEntrypoints(This,WorkGraphIndex) ) +#if !defined(_WIN32) + +#define ID3D12WorkGraphProperties_GetEntrypointID(This,WorkGraphIndex,EntrypointIndex) \ + ( (This)->lpVtbl -> GetEntrypointID(This,WorkGraphIndex,EntrypointIndex) ) +#else +#define ID3D12WorkGraphProperties_GetEntrypointID(This,RetVal,WorkGraphIndex,EntrypointIndex) \ + ( (This)->lpVtbl -> GetEntrypointID(This,RetVal,WorkGraphIndex,EntrypointIndex) ) +#endif + +#define ID3D12WorkGraphProperties_GetEntrypointIndex(This,WorkGraphIndex,NodeID) \ + ( (This)->lpVtbl -> GetEntrypointIndex(This,WorkGraphIndex,NodeID) ) + +#define ID3D12WorkGraphProperties_GetEntrypointRecordSizeInBytes(This,WorkGraphIndex,EntrypointIndex) \ + ( (This)->lpVtbl -> GetEntrypointRecordSizeInBytes(This,WorkGraphIndex,EntrypointIndex) ) + +#define ID3D12WorkGraphProperties_GetWorkGraphMemoryRequirements(This,WorkGraphIndex,pWorkGraphMemoryRequirements) \ + ( (This)->lpVtbl -> GetWorkGraphMemoryRequirements(This,WorkGraphIndex,pWorkGraphMemoryRequirements) ) + +#define ID3D12WorkGraphProperties_GetEntrypointRecordAlignmentInBytes(This,WorkGraphIndex,EntrypointIndex) \ + ( (This)->lpVtbl -> GetEntrypointRecordAlignmentInBytes(This,WorkGraphIndex,EntrypointIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12WorkGraphProperties_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0036 */ +/* [local] */ + +typedef +enum D3D12_STATE_SUBOBJECT_TYPE + { + D3D12_STATE_SUBOBJECT_TYPE_STATE_OBJECT_CONFIG = 0, + D3D12_STATE_SUBOBJECT_TYPE_GLOBAL_ROOT_SIGNATURE = 1, + D3D12_STATE_SUBOBJECT_TYPE_LOCAL_ROOT_SIGNATURE = 2, + D3D12_STATE_SUBOBJECT_TYPE_NODE_MASK = 3, + D3D12_STATE_SUBOBJECT_TYPE_DXIL_LIBRARY = 5, + D3D12_STATE_SUBOBJECT_TYPE_EXISTING_COLLECTION = 6, + D3D12_STATE_SUBOBJECT_TYPE_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 7, + D3D12_STATE_SUBOBJECT_TYPE_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 8, + D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_SHADER_CONFIG = 9, + D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG = 10, + D3D12_STATE_SUBOBJECT_TYPE_HIT_GROUP = 11, + D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1 = 12, + D3D12_STATE_SUBOBJECT_TYPE_WORK_GRAPH = 13, + D3D12_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT = 14, + D3D12_STATE_SUBOBJECT_TYPE_BLEND = 15, + D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_MASK = 16, + D3D12_STATE_SUBOBJECT_TYPE_RASTERIZER = 17, + D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL = 18, + D3D12_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT = 19, + D3D12_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE = 20, + D3D12_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY = 21, + D3D12_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS = 22, + D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT = 23, + D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_DESC = 24, + D3D12_STATE_SUBOBJECT_TYPE_FLAGS = 26, + D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 = 27, + D3D12_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING = 28, + D3D12_STATE_SUBOBJECT_TYPE_GENERIC_PROGRAM = 29, + D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 = 30, + D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID = ( D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 + 1 ) + } D3D12_STATE_SUBOBJECT_TYPE; + +typedef struct D3D12_STATE_SUBOBJECT + { + D3D12_STATE_SUBOBJECT_TYPE Type; + const void *pDesc; + } D3D12_STATE_SUBOBJECT; + +typedef +enum D3D12_STATE_OBJECT_FLAGS + { + D3D12_STATE_OBJECT_FLAG_NONE = 0, + D3D12_STATE_OBJECT_FLAG_ALLOW_LOCAL_DEPENDENCIES_ON_EXTERNAL_DEFINITIONS = 0x1, + D3D12_STATE_OBJECT_FLAG_ALLOW_EXTERNAL_DEPENDENCIES_ON_LOCAL_DEFINITIONS = 0x2, + D3D12_STATE_OBJECT_FLAG_ALLOW_STATE_OBJECT_ADDITIONS = 0x4 + } D3D12_STATE_OBJECT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_STATE_OBJECT_FLAGS ) +typedef struct D3D12_STATE_OBJECT_CONFIG + { + D3D12_STATE_OBJECT_FLAGS Flags; + } D3D12_STATE_OBJECT_CONFIG; + +typedef struct D3D12_GLOBAL_ROOT_SIGNATURE + { + ID3D12RootSignature *pGlobalRootSignature; + } D3D12_GLOBAL_ROOT_SIGNATURE; + +typedef struct D3D12_LOCAL_ROOT_SIGNATURE + { + ID3D12RootSignature *pLocalRootSignature; + } D3D12_LOCAL_ROOT_SIGNATURE; + +typedef struct D3D12_NODE_MASK + { + UINT NodeMask; + } D3D12_NODE_MASK; + +typedef struct D3D12_SAMPLE_MASK + { + UINT SampleMask; + } D3D12_SAMPLE_MASK; + +typedef struct D3D12_IB_STRIP_CUT_VALUE + { + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IndexBufferStripCutValue; + } D3D12_IB_STRIP_CUT_VALUE; + +typedef struct D3D12_PRIMITIVE_TOPOLOGY_DESC + { + D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopology; + } D3D12_PRIMITIVE_TOPOLOGY_DESC; + +typedef struct D3D12_DEPTH_STENCIL_FORMAT + { + DXGI_FORMAT DepthStencilFormat; + } D3D12_DEPTH_STENCIL_FORMAT; + +typedef +enum D3D12_EXPORT_FLAGS + { + D3D12_EXPORT_FLAG_NONE = 0 + } D3D12_EXPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_EXPORT_FLAGS ) +typedef struct D3D12_EXPORT_DESC + { + LPCWSTR Name; + _In_opt_ LPCWSTR ExportToRename; + D3D12_EXPORT_FLAGS Flags; + } D3D12_EXPORT_DESC; + +typedef struct D3D12_DXIL_LIBRARY_DESC + { + D3D12_SHADER_BYTECODE DXILLibrary; + UINT NumExports; + _In_reads_(NumExports) const D3D12_EXPORT_DESC *pExports; + } D3D12_DXIL_LIBRARY_DESC; + +typedef struct D3D12_EXISTING_COLLECTION_DESC + { + ID3D12StateObject *pExistingCollection; + UINT NumExports; + _In_reads_(NumExports) const D3D12_EXPORT_DESC *pExports; + } D3D12_EXISTING_COLLECTION_DESC; + +typedef struct D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION + { + const D3D12_STATE_SUBOBJECT *pSubobjectToAssociate; + UINT NumExports; + _In_reads_(NumExports) LPCWSTR *pExports; + } D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION; + +typedef struct D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION + { + LPCWSTR SubobjectToAssociate; + UINT NumExports; + _In_reads_(NumExports) LPCWSTR *pExports; + } D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION; + +typedef +enum D3D12_HIT_GROUP_TYPE + { + D3D12_HIT_GROUP_TYPE_TRIANGLES = 0, + D3D12_HIT_GROUP_TYPE_PROCEDURAL_PRIMITIVE = 0x1 + } D3D12_HIT_GROUP_TYPE; + +typedef struct D3D12_HIT_GROUP_DESC + { + LPCWSTR HitGroupExport; + D3D12_HIT_GROUP_TYPE Type; + _In_opt_ LPCWSTR AnyHitShaderImport; + _In_opt_ LPCWSTR ClosestHitShaderImport; + _In_opt_ LPCWSTR IntersectionShaderImport; + } D3D12_HIT_GROUP_DESC; + +typedef struct D3D12_RAYTRACING_SHADER_CONFIG + { + UINT MaxPayloadSizeInBytes; + UINT MaxAttributeSizeInBytes; + } D3D12_RAYTRACING_SHADER_CONFIG; + +typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG + { + UINT MaxTraceRecursionDepth; + } D3D12_RAYTRACING_PIPELINE_CONFIG; + +typedef +enum D3D12_RAYTRACING_PIPELINE_FLAGS + { + D3D12_RAYTRACING_PIPELINE_FLAG_NONE = 0, + D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_TRIANGLES = 0x100, + D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200, + D3D12_RAYTRACING_PIPELINE_FLAG_ALLOW_OPACITY_MICROMAPS = 0x400 + } D3D12_RAYTRACING_PIPELINE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_PIPELINE_FLAGS ) +typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG1 + { + UINT MaxTraceRecursionDepth; + D3D12_RAYTRACING_PIPELINE_FLAGS Flags; + } D3D12_RAYTRACING_PIPELINE_CONFIG1; + +typedef struct D3D12_NODE_OUTPUT_OVERRIDES + { + UINT OutputIndex; + _In_opt_ const D3D12_NODE_ID *pNewName; + _In_opt_ const BOOL *pAllowSparseNodes; + _In_opt_ const UINT *pMaxRecords; + _In_opt_ const UINT *pMaxRecordsSharedWithOutputIndex; + } D3D12_NODE_OUTPUT_OVERRIDES; + +typedef struct D3D12_BROADCASTING_LAUNCH_OVERRIDES + { + _In_opt_ const UINT *pLocalRootArgumentsTableIndex; + _In_opt_ const BOOL *pProgramEntry; + _In_opt_ const D3D12_NODE_ID *pNewName; + _In_opt_ const D3D12_NODE_ID *pShareInputOf; + _In_reads_opt_(3) const UINT *pDispatchGrid; + _In_reads_opt_(3) const UINT *pMaxDispatchGrid; + UINT NumOutputOverrides; + _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides; + } D3D12_BROADCASTING_LAUNCH_OVERRIDES; + +typedef struct D3D12_COALESCING_LAUNCH_OVERRIDES + { + _In_opt_ const UINT *pLocalRootArgumentsTableIndex; + _In_opt_ const BOOL *pProgramEntry; + _In_opt_ const D3D12_NODE_ID *pNewName; + _In_opt_ const D3D12_NODE_ID *pShareInputOf; + UINT NumOutputOverrides; + _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides; + } D3D12_COALESCING_LAUNCH_OVERRIDES; + +typedef struct D3D12_THREAD_LAUNCH_OVERRIDES + { + _In_opt_ const UINT *pLocalRootArgumentsTableIndex; + _In_opt_ const BOOL *pProgramEntry; + _In_opt_ const D3D12_NODE_ID *pNewName; + _In_opt_ const D3D12_NODE_ID *pShareInputOf; + UINT NumOutputOverrides; + _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides; + } D3D12_THREAD_LAUNCH_OVERRIDES; + +typedef struct D3D12_COMMON_COMPUTE_NODE_OVERRIDES + { + _In_opt_ const UINT *pLocalRootArgumentsTableIndex; + _In_opt_ const BOOL *pProgramEntry; + _In_opt_ const D3D12_NODE_ID *pNewName; + _In_opt_ const D3D12_NODE_ID *pShareInputOf; + UINT NumOutputOverrides; + _In_reads_opt_(NumOutputOverrides) const D3D12_NODE_OUTPUT_OVERRIDES *pOutputOverrides; + } D3D12_COMMON_COMPUTE_NODE_OVERRIDES; + +typedef +enum D3D12_NODE_OVERRIDES_TYPE + { + D3D12_NODE_OVERRIDES_TYPE_NONE = 0, + D3D12_NODE_OVERRIDES_TYPE_BROADCASTING_LAUNCH = 1, + D3D12_NODE_OVERRIDES_TYPE_COALESCING_LAUNCH = 2, + D3D12_NODE_OVERRIDES_TYPE_THREAD_LAUNCH = 3, + D3D12_NODE_OVERRIDES_TYPE_COMMON_COMPUTE = 4 + } D3D12_NODE_OVERRIDES_TYPE; + +typedef struct D3D12_SHADER_NODE + { + LPCWSTR Shader; + D3D12_NODE_OVERRIDES_TYPE OverridesType; + union + { + const D3D12_BROADCASTING_LAUNCH_OVERRIDES *pBroadcastingLaunchOverrides; + const D3D12_COALESCING_LAUNCH_OVERRIDES *pCoalescingLaunchOverrides; + const D3D12_THREAD_LAUNCH_OVERRIDES *pThreadLaunchOverrides; + const D3D12_COMMON_COMPUTE_NODE_OVERRIDES *pCommonComputeNodeOverrides; + } ; + } D3D12_SHADER_NODE; + +typedef +enum D3D12_NODE_TYPE + { + D3D12_NODE_TYPE_SHADER = 0 + } D3D12_NODE_TYPE; + +typedef struct D3D12_NODE + { + D3D12_NODE_TYPE NodeType; + union + { + D3D12_SHADER_NODE Shader; + } ; + } D3D12_NODE; + +typedef +enum D3D12_WORK_GRAPH_FLAGS + { + D3D12_WORK_GRAPH_FLAG_NONE = 0, + D3D12_WORK_GRAPH_FLAG_INCLUDE_ALL_AVAILABLE_NODES = 0x1 + } D3D12_WORK_GRAPH_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_WORK_GRAPH_FLAGS ) +typedef struct D3D12_WORK_GRAPH_DESC + { + LPCWSTR ProgramName; + D3D12_WORK_GRAPH_FLAGS Flags; + UINT NumEntrypoints; + _In_reads_opt_(NumEntrypoints) const D3D12_NODE_ID *pEntrypoints; + UINT NumExplicitlyDefinedNodes; + _In_reads_opt_(NumExplicitlyDefinedNodes) const D3D12_NODE *pExplicitlyDefinedNodes; + } D3D12_WORK_GRAPH_DESC; + +typedef struct D3D12_GENERIC_PROGRAM_DESC + { + LPCWSTR ProgramName; + UINT NumExports; + _In_reads_(NumExports) LPCWSTR *pExports; + UINT NumSubobjects; + _In_reads_opt_(NumSubobjects) const D3D12_STATE_SUBOBJECT *const *ppSubobjects; + } D3D12_GENERIC_PROGRAM_DESC; + +typedef +enum D3D12_STATE_OBJECT_TYPE + { + D3D12_STATE_OBJECT_TYPE_COLLECTION = 0, + D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE = 3, + D3D12_STATE_OBJECT_TYPE_EXECUTABLE = 4 + } D3D12_STATE_OBJECT_TYPE; + +typedef struct D3D12_STATE_OBJECT_DESC + { + D3D12_STATE_OBJECT_TYPE Type; + UINT NumSubobjects; + _In_reads_(NumSubobjects) const D3D12_STATE_SUBOBJECT *pSubobjects; + } D3D12_STATE_OBJECT_DESC; + +typedef +enum D3D12_RAYTRACING_GEOMETRY_FLAGS + { + D3D12_RAYTRACING_GEOMETRY_FLAG_NONE = 0, + D3D12_RAYTRACING_GEOMETRY_FLAG_OPAQUE = 0x1, + D3D12_RAYTRACING_GEOMETRY_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION = 0x2 + } D3D12_RAYTRACING_GEOMETRY_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_GEOMETRY_FLAGS ) +typedef +enum D3D12_RAYTRACING_GEOMETRY_TYPE + { + D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES = 0, + D3D12_RAYTRACING_GEOMETRY_TYPE_PROCEDURAL_PRIMITIVE_AABBS = ( D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES + 1 ) , + D3D12_RAYTRACING_GEOMETRY_TYPE_OMM_TRIANGLES = ( D3D12_RAYTRACING_GEOMETRY_TYPE_PROCEDURAL_PRIMITIVE_AABBS + 1 ) + } D3D12_RAYTRACING_GEOMETRY_TYPE; + +typedef +enum D3D12_RAYTRACING_INSTANCE_FLAGS + { + D3D12_RAYTRACING_INSTANCE_FLAG_NONE = 0, + D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_CULL_DISABLE = 0x1, + D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_FRONT_COUNTERCLOCKWISE = 0x2, + D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_OPAQUE = 0x4, + D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_NON_OPAQUE = 0x8, + D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_OMM_2_STATE = 0x10, + D3D12_RAYTRACING_INSTANCE_FLAG_DISABLE_OMMS = 0x20 + } D3D12_RAYTRACING_INSTANCE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_INSTANCE_FLAGS ) +typedef struct D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE + { + D3D12_GPU_VIRTUAL_ADDRESS StartAddress; + UINT64 StrideInBytes; + } D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE; + +typedef struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE + { + D3D12_GPU_VIRTUAL_ADDRESS StartAddress; + UINT64 SizeInBytes; + } D3D12_GPU_VIRTUAL_ADDRESS_RANGE; + +typedef struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE + { + D3D12_GPU_VIRTUAL_ADDRESS StartAddress; + UINT64 SizeInBytes; + UINT64 StrideInBytes; + } D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE; + +typedef struct D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC + { + D3D12_GPU_VIRTUAL_ADDRESS Transform3x4; + DXGI_FORMAT IndexFormat; + DXGI_FORMAT VertexFormat; + UINT IndexCount; + UINT VertexCount; + D3D12_GPU_VIRTUAL_ADDRESS IndexBuffer; + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE VertexBuffer; + } D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC; + +typedef struct D3D12_RAYTRACING_AABB + { + FLOAT MinX; + FLOAT MinY; + FLOAT MinZ; + FLOAT MaxX; + FLOAT MaxY; + FLOAT MaxZ; + } D3D12_RAYTRACING_AABB; + +typedef struct D3D12_RAYTRACING_GEOMETRY_AABBS_DESC + { + UINT64 AABBCount; + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE AABBs; + } D3D12_RAYTRACING_GEOMETRY_AABBS_DESC; + +typedef +enum D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX + { + D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_TRANSPARENT = -1, + D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_OPAQUE = -2, + D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_TRANSPARENT = -3, + D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_OPAQUE = -4 + } D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX; + +typedef +enum D3D12_RAYTRACING_OPACITY_MICROMAP_STATE + { + D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_TRANSPARENT = 0, + D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_OPAQUE = 1, + D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_UNKNOWN_TRANSPARENT = 2, + D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_UNKNOWN_OPAQUE = 3 + } D3D12_RAYTRACING_OPACITY_MICROMAP_STATE; + +typedef +enum D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT + { + D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT_OC1_2_STATE = 0x1, + D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT_OC1_4_STATE = 0x2 + } D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_DESC +{ + UINT ByteOffset; + UINT SubdivisionLevel : 16; + D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT Format : 16; +} D3D12_RAYTRACING_OPACITY_MICROMAP_DESC; +typedef struct D3D12_RAYTRACING_GEOMETRY_OMM_LINKAGE_DESC + { + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE OpacityMicromapIndexBuffer; + DXGI_FORMAT OpacityMicromapIndexFormat; + UINT OpacityMicromapBaseLocation; + D3D12_GPU_VIRTUAL_ADDRESS OpacityMicromapArray; + } D3D12_RAYTRACING_GEOMETRY_OMM_LINKAGE_DESC; + +typedef struct D3D12_RAYTRACING_GEOMETRY_OMM_TRIANGLES_DESC + { + const D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC *pTriangles; + const D3D12_RAYTRACING_GEOMETRY_OMM_LINKAGE_DESC *pOmmLinkage; + } D3D12_RAYTRACING_GEOMETRY_OMM_TRIANGLES_DESC; + +typedef +enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS + { + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_NONE = 0, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_UPDATE = 0x1, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_COMPACTION = 0x2, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_TRACE = 0x4, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_BUILD = 0x8, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_MINIMIZE_MEMORY = 0x10, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PERFORM_UPDATE = 0x20, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_OMM_UPDATE = 0x40, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_DISABLE_OMMS = 0x80 + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS ) +typedef +enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE + { + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_CLONE = 0, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_COMPACT = 0x1, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_VISUALIZATION_DECODE_FOR_TOOLS = 0x2, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_SERIALIZE = 0x3, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_DESERIALIZE = 0x4 + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE; + +typedef +enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE + { + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL = 0, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL = 0x1, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_OPACITY_MICROMAP_ARRAY = 0x2 + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE; + +typedef +enum D3D12_ELEMENTS_LAYOUT + { + D3D12_ELEMENTS_LAYOUT_ARRAY = 0, + D3D12_ELEMENTS_LAYOUT_ARRAY_OF_POINTERS = 0x1 + } D3D12_ELEMENTS_LAYOUT; + +typedef +enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE + { + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE = 0, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION = 0x1, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION = 0x2, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE = 0x3 + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC + { + D3D12_GPU_VIRTUAL_ADDRESS DestBuffer; + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE InfoType; + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC + { + UINT64 CompactedSizeInBytes; + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC + { + UINT64 DecodedSizeInBytes; + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC; + +typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER + { + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type; + UINT NumDescs; + } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER; + +// Regarding D3D12_BUILD_RAY_TRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER above, +// depending on Type field, NumDescs above is followed by either: +// D3D12_RAY_TRACING_INSTANCE_DESC InstanceDescs[NumDescs] +// or D3D12_RAY_TRACING_GEOMETRY_DESC GeometryDescs[NumDescs]. +// or D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC (NumDescs == 1 in this case). +// +// For D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC, the pOmmHistogram pointer becomes a GPUVA instead of CPU pointer +// +// There is 4 bytes of padding between GeometryDesc structs in the array so alignment is natural when viewed by CPU. + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC + { + UINT64 SerializedSizeInBytes; + union + { + UINT64 NumBottomLevelAccelerationStructurePointers; + UINT64 NumBottomLevelAccelerationStructureHeaderAndPointerListPairs; + } ; + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC; + +typedef struct D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER + { + GUID DriverOpaqueGUID; + BYTE DriverOpaqueVersioningData[ 16 ]; + } D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER; + +typedef +enum D3D12_SERIALIZED_DATA_TYPE + { + D3D12_SERIALIZED_DATA_RAYTRACING_ACCELERATION_STRUCTURE = 0, + D3D12_SERIALIZED_DATA_APPLICATION_SPECIFIC_DRIVER_STATE = 0x1 + } D3D12_SERIALIZED_DATA_TYPE; + +typedef +enum D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS + { + D3D12_DRIVER_MATCHING_IDENTIFIER_COMPATIBLE_WITH_DEVICE = 0, + D3D12_DRIVER_MATCHING_IDENTIFIER_UNSUPPORTED_TYPE = 0x1, + D3D12_DRIVER_MATCHING_IDENTIFIER_UNRECOGNIZED = 0x2, + D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_VERSION = 0x3, + D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_TYPE = 0x4 + } D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS; + +typedef struct D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER + { + D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER DriverMatchingIdentifier; + UINT64 SerializedSizeInBytesIncludingHeader; + UINT64 DeserializedSizeInBytes; + UINT64 NumBottomLevelAccelerationStructurePointersAfterHeader; + } D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER; + +typedef +enum D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE + { + D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE_NONE = 0, + D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE_BOTTOM_LEVEL_POINTERS = 0, + D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE_BLOCKS = 0xffffffff + } D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE; + +typedef struct D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER1 + { + D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER DriverMatchingIdentifier; + UINT64 SerializedSizeInBytesIncludingHeader; + UINT64 DeserializedSizeInBytes; + union + { + UINT NumBottomLevelAccelerationStructurePointersAfterHeader; + UINT NumBlocks; + } ; + D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE HeaderPostambleType; + } D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER1; + +typedef +enum D3D12_SERIALIZED_BLOCK_TYPE + { + D3D12_RAYTRACING_SERIALIZED_BLOCK_TYPE_OPACITY_MICROMAPS = 0 + } D3D12_RAYTRACING_SERIALIZED_BLOCK_TYPE; + +typedef struct D3D12_RAYTRACING_SERIALIZED_BLOCK + { + D3D12_RAYTRACING_SERIALIZED_BLOCK_TYPE Type; + UINT64 NumBlockPointersAfterHeader; + } D3D12_RAYTRACING_SERIALIZED_BLOCK; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC + { + UINT64 CurrentSizeInBytes; + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC; + +typedef struct D3D12_RAYTRACING_INSTANCE_DESC + { + FLOAT Transform[ 3 ][ 4 ]; + UINT InstanceID : 24; + UINT InstanceMask : 8; + UINT InstanceContributionToHitGroupIndex : 24; + UINT Flags : 8; + D3D12_GPU_VIRTUAL_ADDRESS AccelerationStructure; + } D3D12_RAYTRACING_INSTANCE_DESC; + +typedef struct D3D12_RAYTRACING_GEOMETRY_DESC + { + D3D12_RAYTRACING_GEOMETRY_TYPE Type; + D3D12_RAYTRACING_GEOMETRY_FLAGS Flags; + union + { + D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC Triangles; + D3D12_RAYTRACING_GEOMETRY_AABBS_DESC AABBs; + D3D12_RAYTRACING_GEOMETRY_OMM_TRIANGLES_DESC OmmTriangles; + } ; + } D3D12_RAYTRACING_GEOMETRY_DESC; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_HISTOGRAM_ENTRY + { + UINT Count; + UINT SubdivisionLevel; + D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT Format; + } D3D12_RAYTRACING_OPACITY_MICROMAP_HISTOGRAM_ENTRY; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC + { + UINT NumOmmHistogramEntries; + const D3D12_RAYTRACING_OPACITY_MICROMAP_HISTOGRAM_ENTRY *pOmmHistogram; + D3D12_GPU_VIRTUAL_ADDRESS InputBuffer; + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE PerOmmDescs; + } D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC; + +typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS + { + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type; + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS Flags; + UINT NumDescs; + D3D12_ELEMENTS_LAYOUT DescsLayout; + union + { + D3D12_GPU_VIRTUAL_ADDRESS InstanceDescs; + const D3D12_RAYTRACING_GEOMETRY_DESC *pGeometryDescs; + const D3D12_RAYTRACING_GEOMETRY_DESC *const *ppGeometryDescs; + const D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC *pOpacityMicromapArrayDesc; + } ; + } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS; + +typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC + { + D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData; + D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS Inputs; + _In_opt_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData; + D3D12_GPU_VIRTUAL_ADDRESS ScratchAccelerationStructureData; + } D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO + { + UINT64 ResultDataMaxSizeInBytes; + UINT64 ScratchDataSizeInBytes; + UINT64 UpdateScratchDataSizeInBytes; + } D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO; + +typedef +enum D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TYPE + { + D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_CURRENT_SIZE = 0, + D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TOOLS_VISUALIZATION = 0x1 + } D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TYPE; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_DESC + { + D3D12_GPU_VIRTUAL_ADDRESS DestBuffer; + D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TYPE InfoType; + } D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_DESC; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_CURRENT_SIZE_DESC + { + UINT64 CurrentSizeInBytes; + } D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_CURRENT_SIZE_DESC; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC + { + UINT64 DecodedSizeInBytes; + } D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC; + +typedef +enum D3D12_RAY_FLAGS + { + D3D12_RAY_FLAG_NONE = 0, + D3D12_RAY_FLAG_FORCE_OPAQUE = 0x1, + D3D12_RAY_FLAG_FORCE_NON_OPAQUE = 0x2, + D3D12_RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH = 0x4, + D3D12_RAY_FLAG_SKIP_CLOSEST_HIT_SHADER = 0x8, + D3D12_RAY_FLAG_CULL_BACK_FACING_TRIANGLES = 0x10, + D3D12_RAY_FLAG_CULL_FRONT_FACING_TRIANGLES = 0x20, + D3D12_RAY_FLAG_CULL_OPAQUE = 0x40, + D3D12_RAY_FLAG_CULL_NON_OPAQUE = 0x80, + D3D12_RAY_FLAG_SKIP_TRIANGLES = 0x100, + D3D12_RAY_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200, + D3D12_RAY_FLAG_FORCE_OMM_2_STATE = 0x400 + } D3D12_RAY_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAY_FLAGS ) +typedef +enum D3D12_HIT_KIND + { + D3D12_HIT_KIND_TRIANGLE_FRONT_FACE = 0xfe, + D3D12_HIT_KIND_TRIANGLE_BACK_FACE = 0xff + } D3D12_HIT_KIND; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0036_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0036_v0_0_s_ifspec; + +#ifndef __ID3D12Device5_INTERFACE_DEFINED__ +#define __ID3D12Device5_INTERFACE_DEFINED__ + +/* interface ID3D12Device5 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device5; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8b4f173b-2fea-4b80-8f58-4307191ab95d") + ID3D12Device5 : public ID3D12Device4 + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateLifetimeTracker( + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker) = 0; + + virtual void STDMETHODCALLTYPE RemoveDevice( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateMetaCommands( + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumerateMetaCommandParameters( + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateMetaCommand( + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateStateObject( + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject) = 0; + + virtual void STDMETHODCALLTYPE GetRaytracingAccelerationStructurePrebuildInfo( + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo) = 0; + + virtual D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS STDMETHODCALLTYPE CheckDriverMatchingIdentifier( + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device5Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device5 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device5 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device5 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device5 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device5 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device5 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device5 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device5 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device5 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device5 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device5 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device5 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device5 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device5 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device5 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device5 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device5 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device5 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device5 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device5 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device5 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device5 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device5 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device5 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device5 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device5 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device5 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device5 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device5 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device5 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device5 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device5 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device5 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device5 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device5 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device5 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device5 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device5 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device5 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device5 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device5 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device5 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device5 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device5 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device5 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device5 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device5 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device5 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device5 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device5 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device5 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device5 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device5 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device5 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device5 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device5 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device5 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device5 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device5 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device5 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device5 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker) + HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )( + ID3D12Device5 * This, + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker); + + DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice) + void ( STDMETHODCALLTYPE *RemoveDevice )( + ID3D12Device5 * This); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )( + ID3D12Device5 * This, + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )( + ID3D12Device5 * This, + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand) + HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )( + ID3D12Device5 * This, + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject) + HRESULT ( STDMETHODCALLTYPE *CreateStateObject )( + ID3D12Device5 * This, + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo) + void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )( + ID3D12Device5 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo); + + DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier) + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )( + ID3D12Device5 * This, + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck); + + END_INTERFACE + } ID3D12Device5Vtbl; + + interface ID3D12Device5 + { + CONST_VTBL struct ID3D12Device5Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device5_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device5_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device5_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device5_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device5_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device5_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device5_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device5_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device5_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device5_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device5_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device5_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device5_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device5_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device5_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device5_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device5_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device5_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device5_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device5_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device5_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device5_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device5_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device5_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device5_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device5_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device5_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device5_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device5_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device5_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device5_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device5_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device5_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device5_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device5_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device5_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device5_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device5_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device5_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device5_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device5_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device5_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device5_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device5_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device5_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device5_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device5_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device5_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device5_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device5_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device5_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device5_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device5_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device5_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device5_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device5_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device5_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device5_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device5_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device5_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device5_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device5_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \ + ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) ) + +#define ID3D12Device5_RemoveDevice(This) \ + ( (This)->lpVtbl -> RemoveDevice(This) ) + +#define ID3D12Device5_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) ) + +#define ID3D12Device5_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) ) + +#define ID3D12Device5_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \ + ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) ) + +#define ID3D12Device5_CreateStateObject(This,pDesc,riid,ppStateObject) \ + ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) ) + +#define ID3D12Device5_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \ + ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) ) + +#define ID3D12Device5_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \ + ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device5_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0037 */ +/* [local] */ + +typedef +enum D3D12_AUTO_BREADCRUMB_OP + { + D3D12_AUTO_BREADCRUMB_OP_SETMARKER = 0, + D3D12_AUTO_BREADCRUMB_OP_BEGINEVENT = 1, + D3D12_AUTO_BREADCRUMB_OP_ENDEVENT = 2, + D3D12_AUTO_BREADCRUMB_OP_DRAWINSTANCED = 3, + D3D12_AUTO_BREADCRUMB_OP_DRAWINDEXEDINSTANCED = 4, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEINDIRECT = 5, + D3D12_AUTO_BREADCRUMB_OP_DISPATCH = 6, + D3D12_AUTO_BREADCRUMB_OP_COPYBUFFERREGION = 7, + D3D12_AUTO_BREADCRUMB_OP_COPYTEXTUREREGION = 8, + D3D12_AUTO_BREADCRUMB_OP_COPYRESOURCE = 9, + D3D12_AUTO_BREADCRUMB_OP_COPYTILES = 10, + D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCE = 11, + D3D12_AUTO_BREADCRUMB_OP_CLEARRENDERTARGETVIEW = 12, + D3D12_AUTO_BREADCRUMB_OP_CLEARUNORDEREDACCESSVIEW = 13, + D3D12_AUTO_BREADCRUMB_OP_CLEARDEPTHSTENCILVIEW = 14, + D3D12_AUTO_BREADCRUMB_OP_RESOURCEBARRIER = 15, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEBUNDLE = 16, + D3D12_AUTO_BREADCRUMB_OP_PRESENT = 17, + D3D12_AUTO_BREADCRUMB_OP_RESOLVEQUERYDATA = 18, + D3D12_AUTO_BREADCRUMB_OP_BEGINSUBMISSION = 19, + D3D12_AUTO_BREADCRUMB_OP_ENDSUBMISSION = 20, + D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME = 21, + D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES = 22, + D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT = 23, + D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT64 = 24, + D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCEREGION = 25, + D3D12_AUTO_BREADCRUMB_OP_WRITEBUFFERIMMEDIATE = 26, + D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME1 = 27, + D3D12_AUTO_BREADCRUMB_OP_SETPROTECTEDRESOURCESESSION = 28, + D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME2 = 29, + D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES1 = 30, + D3D12_AUTO_BREADCRUMB_OP_BUILDRAYTRACINGACCELERATIONSTRUCTURE = 31, + D3D12_AUTO_BREADCRUMB_OP_EMITRAYTRACINGACCELERATIONSTRUCTUREPOSTBUILDINFO = 32, + D3D12_AUTO_BREADCRUMB_OP_COPYRAYTRACINGACCELERATIONSTRUCTURE = 33, + D3D12_AUTO_BREADCRUMB_OP_DISPATCHRAYS = 34, + D3D12_AUTO_BREADCRUMB_OP_INITIALIZEMETACOMMAND = 35, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEMETACOMMAND = 36, + D3D12_AUTO_BREADCRUMB_OP_ESTIMATEMOTION = 37, + D3D12_AUTO_BREADCRUMB_OP_RESOLVEMOTIONVECTORHEAP = 38, + D3D12_AUTO_BREADCRUMB_OP_SETPIPELINESTATE1 = 39, + D3D12_AUTO_BREADCRUMB_OP_INITIALIZEEXTENSIONCOMMAND = 40, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEEXTENSIONCOMMAND = 41, + D3D12_AUTO_BREADCRUMB_OP_DISPATCHMESH = 42, + D3D12_AUTO_BREADCRUMB_OP_ENCODEFRAME = 43, + D3D12_AUTO_BREADCRUMB_OP_RESOLVEENCODEROUTPUTMETADATA = 44, + D3D12_AUTO_BREADCRUMB_OP_BARRIER = 45, + D3D12_AUTO_BREADCRUMB_OP_BEGIN_COMMAND_LIST = 46, + D3D12_AUTO_BREADCRUMB_OP_DISPATCHGRAPH = 47, + D3D12_AUTO_BREADCRUMB_OP_SETPROGRAM = 48, + D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES2 = 52 + } D3D12_AUTO_BREADCRUMB_OP; + +typedef struct D3D12_AUTO_BREADCRUMB_NODE + { + const char *pCommandListDebugNameA; + const wchar_t *pCommandListDebugNameW; + const char *pCommandQueueDebugNameA; + const wchar_t *pCommandQueueDebugNameW; + ID3D12GraphicsCommandList *pCommandList; + ID3D12CommandQueue *pCommandQueue; + UINT32 BreadcrumbCount; + const UINT32 *pLastBreadcrumbValue; + const D3D12_AUTO_BREADCRUMB_OP *pCommandHistory; + const struct D3D12_AUTO_BREADCRUMB_NODE *pNext; + } D3D12_AUTO_BREADCRUMB_NODE; + +typedef struct D3D12_DRED_BREADCRUMB_CONTEXT + { + UINT BreadcrumbIndex; + const wchar_t *pContextString; + } D3D12_DRED_BREADCRUMB_CONTEXT; + +typedef struct D3D12_AUTO_BREADCRUMB_NODE1 + { + const char *pCommandListDebugNameA; + const wchar_t *pCommandListDebugNameW; + const char *pCommandQueueDebugNameA; + const wchar_t *pCommandQueueDebugNameW; + ID3D12GraphicsCommandList *pCommandList; + ID3D12CommandQueue *pCommandQueue; + UINT BreadcrumbCount; + const UINT *pLastBreadcrumbValue; + const D3D12_AUTO_BREADCRUMB_OP *pCommandHistory; + const struct D3D12_AUTO_BREADCRUMB_NODE1 *pNext; + UINT BreadcrumbContextsCount; + D3D12_DRED_BREADCRUMB_CONTEXT *pBreadcrumbContexts; + } D3D12_AUTO_BREADCRUMB_NODE1; + +typedef +enum D3D12_DRED_VERSION + { + D3D12_DRED_VERSION_1_0 = 0x1, + D3D12_DRED_VERSION_1_1 = 0x2, + D3D12_DRED_VERSION_1_2 = 0x3, + D3D12_DRED_VERSION_1_3 = 0x4 + } D3D12_DRED_VERSION; + +typedef +enum D3D12_DRED_FLAGS + { + D3D12_DRED_FLAG_NONE = 0, + D3D12_DRED_FLAG_FORCE_ENABLE = 1, + D3D12_DRED_FLAG_DISABLE_AUTOBREADCRUMBS = 2 + } D3D12_DRED_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_DRED_FLAGS ) +typedef +enum D3D12_DRED_ENABLEMENT + { + D3D12_DRED_ENABLEMENT_SYSTEM_CONTROLLED = 0, + D3D12_DRED_ENABLEMENT_FORCED_OFF = 1, + D3D12_DRED_ENABLEMENT_FORCED_ON = 2 + } D3D12_DRED_ENABLEMENT; + +typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA + { + _In_ D3D12_DRED_FLAGS Flags; + _Out_ D3D12_AUTO_BREADCRUMB_NODE *pHeadAutoBreadcrumbNode; + } D3D12_DEVICE_REMOVED_EXTENDED_DATA; + +typedef +enum D3D12_DRED_ALLOCATION_TYPE + { + D3D12_DRED_ALLOCATION_TYPE_COMMAND_QUEUE = 19, + D3D12_DRED_ALLOCATION_TYPE_COMMAND_ALLOCATOR = 20, + D3D12_DRED_ALLOCATION_TYPE_PIPELINE_STATE = 21, + D3D12_DRED_ALLOCATION_TYPE_COMMAND_LIST = 22, + D3D12_DRED_ALLOCATION_TYPE_FENCE = 23, + D3D12_DRED_ALLOCATION_TYPE_DESCRIPTOR_HEAP = 24, + D3D12_DRED_ALLOCATION_TYPE_HEAP = 25, + D3D12_DRED_ALLOCATION_TYPE_QUERY_HEAP = 27, + D3D12_DRED_ALLOCATION_TYPE_COMMAND_SIGNATURE = 28, + D3D12_DRED_ALLOCATION_TYPE_PIPELINE_LIBRARY = 29, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER = 30, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_PROCESSOR = 32, + D3D12_DRED_ALLOCATION_TYPE_RESOURCE = 34, + D3D12_DRED_ALLOCATION_TYPE_PASS = 35, + D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSION = 36, + D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSIONPOLICY = 37, + D3D12_DRED_ALLOCATION_TYPE_PROTECTEDRESOURCESESSION = 38, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER_HEAP = 39, + D3D12_DRED_ALLOCATION_TYPE_COMMAND_POOL = 40, + D3D12_DRED_ALLOCATION_TYPE_COMMAND_RECORDER = 41, + D3D12_DRED_ALLOCATION_TYPE_STATE_OBJECT = 42, + D3D12_DRED_ALLOCATION_TYPE_METACOMMAND = 43, + D3D12_DRED_ALLOCATION_TYPE_SCHEDULINGGROUP = 44, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_ESTIMATOR = 45, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_VECTOR_HEAP = 46, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_EXTENSION_COMMAND = 47, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER = 48, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER_HEAP = 49, + D3D12_DRED_ALLOCATION_TYPE_INVALID = 0xffffffff + } D3D12_DRED_ALLOCATION_TYPE; + +typedef struct D3D12_DRED_ALLOCATION_NODE + { + const char *ObjectNameA; + const wchar_t *ObjectNameW; + D3D12_DRED_ALLOCATION_TYPE AllocationType; + const struct D3D12_DRED_ALLOCATION_NODE *pNext; + } D3D12_DRED_ALLOCATION_NODE; + +typedef struct D3D12_DRED_ALLOCATION_NODE1 + { + const char *ObjectNameA; + const wchar_t *ObjectNameW; + D3D12_DRED_ALLOCATION_TYPE AllocationType; + const struct D3D12_DRED_ALLOCATION_NODE1 *pNext; + const IUnknown *pObject; + } D3D12_DRED_ALLOCATION_NODE1; + +typedef struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT + { + _Out_ const D3D12_AUTO_BREADCRUMB_NODE *pHeadAutoBreadcrumbNode; + } D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT; + +typedef struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 + { + _Out_ const D3D12_AUTO_BREADCRUMB_NODE1 *pHeadAutoBreadcrumbNode; + } D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1; + +typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT + { + D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA; + _Out_ const D3D12_DRED_ALLOCATION_NODE *pHeadExistingAllocationNode; + _Out_ const D3D12_DRED_ALLOCATION_NODE *pHeadRecentFreedAllocationNode; + } D3D12_DRED_PAGE_FAULT_OUTPUT; + +typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT1 + { + D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA; + _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadExistingAllocationNode; + _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadRecentFreedAllocationNode; + } D3D12_DRED_PAGE_FAULT_OUTPUT1; + +typedef +enum D3D12_DRED_PAGE_FAULT_FLAGS + { + D3D12_DRED_PAGE_FAULT_FLAGS_NONE = 0 + } D3D12_DRED_PAGE_FAULT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_DRED_PAGE_FAULT_FLAGS ) +typedef +enum D3D12_DRED_DEVICE_STATE + { + D3D12_DRED_DEVICE_STATE_UNKNOWN = 0, + D3D12_DRED_DEVICE_STATE_HUNG = 3, + D3D12_DRED_DEVICE_STATE_FAULT = 6, + D3D12_DRED_DEVICE_STATE_PAGEFAULT = 7 + } D3D12_DRED_DEVICE_STATE; + +typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT2 + { + D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA; + _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadExistingAllocationNode; + _Out_ const D3D12_DRED_ALLOCATION_NODE1 *pHeadRecentFreedAllocationNode; + D3D12_DRED_PAGE_FAULT_FLAGS PageFaultFlags; + } D3D12_DRED_PAGE_FAULT_OUTPUT2; + +typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA1 + { + HRESULT DeviceRemovedReason; + D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT AutoBreadcrumbsOutput; + D3D12_DRED_PAGE_FAULT_OUTPUT PageFaultOutput; + } D3D12_DEVICE_REMOVED_EXTENDED_DATA1; + +typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA2 + { + HRESULT DeviceRemovedReason; + D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput; + D3D12_DRED_PAGE_FAULT_OUTPUT1 PageFaultOutput; + } D3D12_DEVICE_REMOVED_EXTENDED_DATA2; + +typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA3 + { + HRESULT DeviceRemovedReason; + D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput; + D3D12_DRED_PAGE_FAULT_OUTPUT2 PageFaultOutput; + D3D12_DRED_DEVICE_STATE DeviceState; + } D3D12_DEVICE_REMOVED_EXTENDED_DATA3; + +typedef struct D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA + { + D3D12_DRED_VERSION Version; + union + { + D3D12_DEVICE_REMOVED_EXTENDED_DATA Dred_1_0; + D3D12_DEVICE_REMOVED_EXTENDED_DATA1 Dred_1_1; + D3D12_DEVICE_REMOVED_EXTENDED_DATA2 Dred_1_2; + D3D12_DEVICE_REMOVED_EXTENDED_DATA3 Dred_1_3; + } ; + } D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0037_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0037_v0_0_s_ifspec; + +#ifndef __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__ +#define __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceRemovedExtendedDataSettings */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("82BC481C-6B9B-4030-AEDB-7EE3D1DF1E63") + ID3D12DeviceRemovedExtendedDataSettings : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE SetAutoBreadcrumbsEnablement( + D3D12_DRED_ENABLEMENT Enablement) = 0; + + virtual void STDMETHODCALLTYPE SetPageFaultEnablement( + D3D12_DRED_ENABLEMENT Enablement) = 0; + + virtual void STDMETHODCALLTYPE SetWatsonDumpEnablement( + D3D12_DRED_ENABLEMENT Enablement) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceRemovedExtendedDataSettingsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceRemovedExtendedDataSettings * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceRemovedExtendedDataSettings * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceRemovedExtendedDataSettings * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement) + void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )( + ID3D12DeviceRemovedExtendedDataSettings * This, + D3D12_DRED_ENABLEMENT Enablement); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement) + void ( STDMETHODCALLTYPE *SetPageFaultEnablement )( + ID3D12DeviceRemovedExtendedDataSettings * This, + D3D12_DRED_ENABLEMENT Enablement); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement) + void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )( + ID3D12DeviceRemovedExtendedDataSettings * This, + D3D12_DRED_ENABLEMENT Enablement); + + END_INTERFACE + } ID3D12DeviceRemovedExtendedDataSettingsVtbl; + + interface ID3D12DeviceRemovedExtendedDataSettings + { + CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettingsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceRemovedExtendedDataSettings_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceRemovedExtendedDataSettings_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceRemovedExtendedDataSettings_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DeviceRemovedExtendedDataSettings_SetAutoBreadcrumbsEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) ) + +#define ID3D12DeviceRemovedExtendedDataSettings_SetPageFaultEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) ) + +#define ID3D12DeviceRemovedExtendedDataSettings_SetWatsonDumpEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceRemovedExtendedDataSettings_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__ +#define __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceRemovedExtendedDataSettings1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DBD5AE51-3317-4F0A-ADF9-1D7CEDCAAE0B") + ID3D12DeviceRemovedExtendedDataSettings1 : public ID3D12DeviceRemovedExtendedDataSettings + { + public: + virtual void STDMETHODCALLTYPE SetBreadcrumbContextEnablement( + D3D12_DRED_ENABLEMENT Enablement) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceRemovedExtendedDataSettings1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceRemovedExtendedDataSettings1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceRemovedExtendedDataSettings1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceRemovedExtendedDataSettings1 * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement) + void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )( + ID3D12DeviceRemovedExtendedDataSettings1 * This, + D3D12_DRED_ENABLEMENT Enablement); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement) + void ( STDMETHODCALLTYPE *SetPageFaultEnablement )( + ID3D12DeviceRemovedExtendedDataSettings1 * This, + D3D12_DRED_ENABLEMENT Enablement); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement) + void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )( + ID3D12DeviceRemovedExtendedDataSettings1 * This, + D3D12_DRED_ENABLEMENT Enablement); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings1, SetBreadcrumbContextEnablement) + void ( STDMETHODCALLTYPE *SetBreadcrumbContextEnablement )( + ID3D12DeviceRemovedExtendedDataSettings1 * This, + D3D12_DRED_ENABLEMENT Enablement); + + END_INTERFACE + } ID3D12DeviceRemovedExtendedDataSettings1Vtbl; + + interface ID3D12DeviceRemovedExtendedDataSettings1 + { + CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettings1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceRemovedExtendedDataSettings1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceRemovedExtendedDataSettings1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceRemovedExtendedDataSettings1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DeviceRemovedExtendedDataSettings1_SetAutoBreadcrumbsEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) ) + +#define ID3D12DeviceRemovedExtendedDataSettings1_SetPageFaultEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) ) + +#define ID3D12DeviceRemovedExtendedDataSettings1_SetWatsonDumpEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) ) + + +#define ID3D12DeviceRemovedExtendedDataSettings1_SetBreadcrumbContextEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetBreadcrumbContextEnablement(This,Enablement) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceRemovedExtendedDataSettings1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__ +#define __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceRemovedExtendedDataSettings2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedDataSettings2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("61552388-01ab-4008-a436-83db189566ea") + ID3D12DeviceRemovedExtendedDataSettings2 : public ID3D12DeviceRemovedExtendedDataSettings1 + { + public: + virtual void STDMETHODCALLTYPE UseMarkersOnlyAutoBreadcrumbs( + BOOL MarkersOnly) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceRemovedExtendedDataSettings2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceRemovedExtendedDataSettings2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceRemovedExtendedDataSettings2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceRemovedExtendedDataSettings2 * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetAutoBreadcrumbsEnablement) + void ( STDMETHODCALLTYPE *SetAutoBreadcrumbsEnablement )( + ID3D12DeviceRemovedExtendedDataSettings2 * This, + D3D12_DRED_ENABLEMENT Enablement); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetPageFaultEnablement) + void ( STDMETHODCALLTYPE *SetPageFaultEnablement )( + ID3D12DeviceRemovedExtendedDataSettings2 * This, + D3D12_DRED_ENABLEMENT Enablement); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings, SetWatsonDumpEnablement) + void ( STDMETHODCALLTYPE *SetWatsonDumpEnablement )( + ID3D12DeviceRemovedExtendedDataSettings2 * This, + D3D12_DRED_ENABLEMENT Enablement); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings1, SetBreadcrumbContextEnablement) + void ( STDMETHODCALLTYPE *SetBreadcrumbContextEnablement )( + ID3D12DeviceRemovedExtendedDataSettings2 * This, + D3D12_DRED_ENABLEMENT Enablement); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedDataSettings2, UseMarkersOnlyAutoBreadcrumbs) + void ( STDMETHODCALLTYPE *UseMarkersOnlyAutoBreadcrumbs )( + ID3D12DeviceRemovedExtendedDataSettings2 * This, + BOOL MarkersOnly); + + END_INTERFACE + } ID3D12DeviceRemovedExtendedDataSettings2Vtbl; + + interface ID3D12DeviceRemovedExtendedDataSettings2 + { + CONST_VTBL struct ID3D12DeviceRemovedExtendedDataSettings2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceRemovedExtendedDataSettings2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceRemovedExtendedDataSettings2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceRemovedExtendedDataSettings2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DeviceRemovedExtendedDataSettings2_SetAutoBreadcrumbsEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetAutoBreadcrumbsEnablement(This,Enablement) ) + +#define ID3D12DeviceRemovedExtendedDataSettings2_SetPageFaultEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetPageFaultEnablement(This,Enablement) ) + +#define ID3D12DeviceRemovedExtendedDataSettings2_SetWatsonDumpEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetWatsonDumpEnablement(This,Enablement) ) + + +#define ID3D12DeviceRemovedExtendedDataSettings2_SetBreadcrumbContextEnablement(This,Enablement) \ + ( (This)->lpVtbl -> SetBreadcrumbContextEnablement(This,Enablement) ) + + +#define ID3D12DeviceRemovedExtendedDataSettings2_UseMarkersOnlyAutoBreadcrumbs(This,MarkersOnly) \ + ( (This)->lpVtbl -> UseMarkersOnlyAutoBreadcrumbs(This,MarkersOnly) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceRemovedExtendedDataSettings2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__ +#define __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceRemovedExtendedData */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("98931D33-5AE8-4791-AA3C-1A73A2934E71") + ID3D12DeviceRemovedExtendedData : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAutoBreadcrumbsOutput( + _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput( + _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceRemovedExtendedDataVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceRemovedExtendedData * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceRemovedExtendedData * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceRemovedExtendedData * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput) + HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )( + ID3D12DeviceRemovedExtendedData * This, + _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput) + HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )( + ID3D12DeviceRemovedExtendedData * This, + _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput); + + END_INTERFACE + } ID3D12DeviceRemovedExtendedDataVtbl; + + interface ID3D12DeviceRemovedExtendedData + { + CONST_VTBL struct ID3D12DeviceRemovedExtendedDataVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceRemovedExtendedData_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceRemovedExtendedData_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceRemovedExtendedData_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DeviceRemovedExtendedData_GetAutoBreadcrumbsOutput(This,pOutput) \ + ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) ) + +#define ID3D12DeviceRemovedExtendedData_GetPageFaultAllocationOutput(This,pOutput) \ + ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceRemovedExtendedData_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__ +#define __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceRemovedExtendedData1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9727A022-CF1D-4DDA-9EBA-EFFA653FC506") + ID3D12DeviceRemovedExtendedData1 : public ID3D12DeviceRemovedExtendedData + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAutoBreadcrumbsOutput1( + _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput1( + _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceRemovedExtendedData1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceRemovedExtendedData1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceRemovedExtendedData1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceRemovedExtendedData1 * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput) + HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )( + ID3D12DeviceRemovedExtendedData1 * This, + _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput) + HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )( + ID3D12DeviceRemovedExtendedData1 * This, + _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetAutoBreadcrumbsOutput1) + HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput1 )( + ID3D12DeviceRemovedExtendedData1 * This, + _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetPageFaultAllocationOutput1) + HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput1 )( + ID3D12DeviceRemovedExtendedData1 * This, + _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput); + + END_INTERFACE + } ID3D12DeviceRemovedExtendedData1Vtbl; + + interface ID3D12DeviceRemovedExtendedData1 + { + CONST_VTBL struct ID3D12DeviceRemovedExtendedData1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceRemovedExtendedData1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceRemovedExtendedData1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceRemovedExtendedData1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DeviceRemovedExtendedData1_GetAutoBreadcrumbsOutput(This,pOutput) \ + ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) ) + +#define ID3D12DeviceRemovedExtendedData1_GetPageFaultAllocationOutput(This,pOutput) \ + ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) ) + + +#define ID3D12DeviceRemovedExtendedData1_GetAutoBreadcrumbsOutput1(This,pOutput) \ + ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput1(This,pOutput) ) + +#define ID3D12DeviceRemovedExtendedData1_GetPageFaultAllocationOutput1(This,pOutput) \ + ( (This)->lpVtbl -> GetPageFaultAllocationOutput1(This,pOutput) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceRemovedExtendedData1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__ +#define __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceRemovedExtendedData2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceRemovedExtendedData2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("67FC5816-E4CA-4915-BF18-42541272DA54") + ID3D12DeviceRemovedExtendedData2 : public ID3D12DeviceRemovedExtendedData1 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPageFaultAllocationOutput2( + _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT2 *pOutput) = 0; + + virtual D3D12_DRED_DEVICE_STATE STDMETHODCALLTYPE GetDeviceState( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceRemovedExtendedData2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceRemovedExtendedData2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceRemovedExtendedData2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceRemovedExtendedData2 * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetAutoBreadcrumbsOutput) + HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput )( + ID3D12DeviceRemovedExtendedData2 * This, + _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData, GetPageFaultAllocationOutput) + HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput )( + ID3D12DeviceRemovedExtendedData2 * This, + _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetAutoBreadcrumbsOutput1) + HRESULT ( STDMETHODCALLTYPE *GetAutoBreadcrumbsOutput1 )( + ID3D12DeviceRemovedExtendedData2 * This, + _Out_ D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData1, GetPageFaultAllocationOutput1) + HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput1 )( + ID3D12DeviceRemovedExtendedData2 * This, + _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData2, GetPageFaultAllocationOutput2) + HRESULT ( STDMETHODCALLTYPE *GetPageFaultAllocationOutput2 )( + ID3D12DeviceRemovedExtendedData2 * This, + _Out_ D3D12_DRED_PAGE_FAULT_OUTPUT2 *pOutput); + + DECLSPEC_XFGVIRT(ID3D12DeviceRemovedExtendedData2, GetDeviceState) + D3D12_DRED_DEVICE_STATE ( STDMETHODCALLTYPE *GetDeviceState )( + ID3D12DeviceRemovedExtendedData2 * This); + + END_INTERFACE + } ID3D12DeviceRemovedExtendedData2Vtbl; + + interface ID3D12DeviceRemovedExtendedData2 + { + CONST_VTBL struct ID3D12DeviceRemovedExtendedData2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceRemovedExtendedData2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceRemovedExtendedData2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceRemovedExtendedData2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DeviceRemovedExtendedData2_GetAutoBreadcrumbsOutput(This,pOutput) \ + ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput(This,pOutput) ) + +#define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput(This,pOutput) \ + ( (This)->lpVtbl -> GetPageFaultAllocationOutput(This,pOutput) ) + + +#define ID3D12DeviceRemovedExtendedData2_GetAutoBreadcrumbsOutput1(This,pOutput) \ + ( (This)->lpVtbl -> GetAutoBreadcrumbsOutput1(This,pOutput) ) + +#define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput1(This,pOutput) \ + ( (This)->lpVtbl -> GetPageFaultAllocationOutput1(This,pOutput) ) + + +#define ID3D12DeviceRemovedExtendedData2_GetPageFaultAllocationOutput2(This,pOutput) \ + ( (This)->lpVtbl -> GetPageFaultAllocationOutput2(This,pOutput) ) + +#define ID3D12DeviceRemovedExtendedData2_GetDeviceState(This) \ + ( (This)->lpVtbl -> GetDeviceState(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceRemovedExtendedData2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0043 */ +/* [local] */ + +typedef +enum D3D12_BACKGROUND_PROCESSING_MODE + { + D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED = 0, + D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS = ( D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED + 1 ) , + D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK = ( D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS + 1 ) , + D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_PROFILING_BY_SYSTEM = ( D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK + 1 ) + } D3D12_BACKGROUND_PROCESSING_MODE; + +typedef +enum D3D12_MEASUREMENTS_ACTION + { + D3D12_MEASUREMENTS_ACTION_KEEP_ALL = 0, + D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS = ( D3D12_MEASUREMENTS_ACTION_KEEP_ALL + 1 ) , + D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY = ( D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS + 1 ) , + D3D12_MEASUREMENTS_ACTION_DISCARD_PREVIOUS = ( D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY + 1 ) + } D3D12_MEASUREMENTS_ACTION; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0043_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0043_v0_0_s_ifspec; + +#ifndef __ID3D12Device6_INTERFACE_DEFINED__ +#define __ID3D12Device6_INTERFACE_DEFINED__ + +/* interface ID3D12Device6 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device6; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c70b221b-40e4-4a17-89af-025a0727a6dc") + ID3D12Device6 : public ID3D12Device5 + { + public: + virtual HRESULT STDMETHODCALLTYPE SetBackgroundProcessingMode( + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + _In_opt_ HANDLE hEventToSignalUponCompletion, + _Out_opt_ BOOL *pbFurtherMeasurementsDesired) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device6Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device6 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device6 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device6 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device6 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device6 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device6 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device6 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device6 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device6 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device6 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device6 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device6 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device6 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device6 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device6 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device6 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device6 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device6 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device6 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device6 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device6 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device6 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device6 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device6 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device6 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device6 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device6 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device6 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device6 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device6 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device6 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device6 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device6 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device6 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device6 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device6 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device6 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device6 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device6 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device6 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device6 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device6 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device6 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device6 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device6 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device6 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device6 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device6 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device6 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device6 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device6 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device6 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device6 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device6 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device6 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device6 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device6 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device6 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device6 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device6 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device6 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker) + HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )( + ID3D12Device6 * This, + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker); + + DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice) + void ( STDMETHODCALLTYPE *RemoveDevice )( + ID3D12Device6 * This); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )( + ID3D12Device6 * This, + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )( + ID3D12Device6 * This, + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand) + HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )( + ID3D12Device6 * This, + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject) + HRESULT ( STDMETHODCALLTYPE *CreateStateObject )( + ID3D12Device6 * This, + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo) + void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )( + ID3D12Device6 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo); + + DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier) + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )( + ID3D12Device6 * This, + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck); + + DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode) + HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )( + ID3D12Device6 * This, + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + _In_opt_ HANDLE hEventToSignalUponCompletion, + _Out_opt_ BOOL *pbFurtherMeasurementsDesired); + + END_INTERFACE + } ID3D12Device6Vtbl; + + interface ID3D12Device6 + { + CONST_VTBL struct ID3D12Device6Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device6_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device6_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device6_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device6_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device6_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device6_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device6_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device6_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device6_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device6_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device6_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device6_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device6_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device6_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device6_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device6_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device6_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device6_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device6_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device6_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device6_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device6_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device6_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device6_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device6_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device6_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device6_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device6_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device6_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device6_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device6_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device6_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device6_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device6_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device6_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device6_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device6_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device6_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device6_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device6_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device6_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device6_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device6_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device6_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device6_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device6_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device6_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device6_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device6_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device6_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device6_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device6_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device6_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device6_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device6_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device6_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device6_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device6_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device6_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device6_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device6_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device6_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \ + ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) ) + +#define ID3D12Device6_RemoveDevice(This) \ + ( (This)->lpVtbl -> RemoveDevice(This) ) + +#define ID3D12Device6_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) ) + +#define ID3D12Device6_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) ) + +#define ID3D12Device6_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \ + ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) ) + +#define ID3D12Device6_CreateStateObject(This,pDesc,riid,ppStateObject) \ + ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) ) + +#define ID3D12Device6_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \ + ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) ) + +#define ID3D12Device6_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \ + ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) ) + + +#define ID3D12Device6_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \ + ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device6_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0044 */ +/* [local] */ + +DEFINE_GUID(D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED, 0x62B0084E, 0xC70E, 0x4DAA, 0xA1, 0x09, 0x30, 0xFF, 0x8D, 0x5A, 0x04, 0x82); +typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT + { + UINT NodeIndex; + UINT Count; + } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT; + +typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES + { + UINT NodeIndex; + UINT Count; + GUID *pTypes; + } D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES; + +typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC1 + { + UINT NodeMask; + D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags; + GUID ProtectionType; + } D3D12_PROTECTED_RESOURCE_SESSION_DESC1; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0044_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0044_v0_0_s_ifspec; + +#ifndef __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__ +#define __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__ + +/* interface ID3D12ProtectedResourceSession1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12ProtectedResourceSession1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D6F12DD6-76FB-406E-8961-4296EEFC0409") + ID3D12ProtectedResourceSession1 : public ID3D12ProtectedResourceSession + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC1 STDMETHODCALLTYPE GetDesc1( void) = 0; +#else + virtual D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *STDMETHODCALLTYPE GetDesc1( + D3D12_PROTECTED_RESOURCE_SESSION_DESC1 * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12ProtectedResourceSession1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12ProtectedResourceSession1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12ProtectedResourceSession1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12ProtectedResourceSession1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12ProtectedResourceSession1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12ProtectedResourceSession1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12ProtectedResourceSession1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12ProtectedResourceSession1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12ProtectedResourceSession1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetStatusFence) + HRESULT ( STDMETHODCALLTYPE *GetStatusFence )( + ID3D12ProtectedResourceSession1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12ProtectedSession, GetSessionStatus) + D3D12_PROTECTED_SESSION_STATUS ( STDMETHODCALLTYPE *GetSessionStatus )( + ID3D12ProtectedResourceSession1 * This); + + DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession, GetDesc) +#if !defined(_WIN32) + D3D12_PROTECTED_RESOURCE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12ProtectedResourceSession1 * This); + +#else + D3D12_PROTECTED_RESOURCE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12ProtectedResourceSession1 * This, + D3D12_PROTECTED_RESOURCE_SESSION_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12ProtectedResourceSession1, GetDesc1) +#if !defined(_WIN32) + D3D12_PROTECTED_RESOURCE_SESSION_DESC1 ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D12ProtectedResourceSession1 * This); + +#else + D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *( STDMETHODCALLTYPE *GetDesc1 )( + ID3D12ProtectedResourceSession1 * This, + D3D12_PROTECTED_RESOURCE_SESSION_DESC1 * RetVal); + +#endif + + END_INTERFACE + } ID3D12ProtectedResourceSession1Vtbl; + + interface ID3D12ProtectedResourceSession1 + { + CONST_VTBL struct ID3D12ProtectedResourceSession1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12ProtectedResourceSession1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12ProtectedResourceSession1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12ProtectedResourceSession1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12ProtectedResourceSession1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12ProtectedResourceSession1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12ProtectedResourceSession1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12ProtectedResourceSession1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12ProtectedResourceSession1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12ProtectedResourceSession1_GetStatusFence(This,riid,ppFence) \ + ( (This)->lpVtbl -> GetStatusFence(This,riid,ppFence) ) + +#define ID3D12ProtectedResourceSession1_GetSessionStatus(This) \ + ( (This)->lpVtbl -> GetSessionStatus(This) ) + +#if !defined(_WIN32) + +#define ID3D12ProtectedResourceSession1_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12ProtectedResourceSession1_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#if !defined(_WIN32) + +#define ID3D12ProtectedResourceSession1_GetDesc1(This) \ + ( (This)->lpVtbl -> GetDesc1(This) ) +#else +#define ID3D12ProtectedResourceSession1_GetDesc1(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc1(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12ProtectedResourceSession1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Device7_INTERFACE_DEFINED__ +#define __ID3D12Device7_INTERFACE_DEFINED__ + +/* interface ID3D12Device7 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device7; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5c014b53-68a1-4b9b-8bd1-dd6046b9358b") + ID3D12Device7 : public ID3D12Device6 + { + public: + virtual HRESULT STDMETHODCALLTYPE AddToStateObject( + const D3D12_STATE_OBJECT_DESC *pAddition, + ID3D12StateObject *pStateObjectToGrowFrom, + REFIID riid, + _COM_Outptr_ void **ppNewStateObject) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateProtectedResourceSession1( + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device7Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device7 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device7 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device7 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device7 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device7 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device7 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device7 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device7 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device7 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device7 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device7 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device7 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device7 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device7 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device7 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device7 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device7 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device7 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device7 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device7 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device7 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device7 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device7 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device7 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device7 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device7 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device7 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device7 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device7 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device7 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device7 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device7 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device7 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device7 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device7 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device7 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device7 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device7 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device7 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device7 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device7 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device7 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device7 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device7 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device7 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device7 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device7 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device7 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device7 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device7 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device7 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device7 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device7 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device7 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device7 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device7 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device7 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device7 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device7 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device7 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device7 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker) + HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )( + ID3D12Device7 * This, + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker); + + DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice) + void ( STDMETHODCALLTYPE *RemoveDevice )( + ID3D12Device7 * This); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )( + ID3D12Device7 * This, + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )( + ID3D12Device7 * This, + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand) + HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )( + ID3D12Device7 * This, + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject) + HRESULT ( STDMETHODCALLTYPE *CreateStateObject )( + ID3D12Device7 * This, + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo) + void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )( + ID3D12Device7 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo); + + DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier) + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )( + ID3D12Device7 * This, + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck); + + DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode) + HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )( + ID3D12Device7 * This, + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + _In_opt_ HANDLE hEventToSignalUponCompletion, + _Out_opt_ BOOL *pbFurtherMeasurementsDesired); + + DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject) + HRESULT ( STDMETHODCALLTYPE *AddToStateObject )( + ID3D12Device7 * This, + const D3D12_STATE_OBJECT_DESC *pAddition, + ID3D12StateObject *pStateObjectToGrowFrom, + REFIID riid, + _COM_Outptr_ void **ppNewStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )( + ID3D12Device7 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + END_INTERFACE + } ID3D12Device7Vtbl; + + interface ID3D12Device7 + { + CONST_VTBL struct ID3D12Device7Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device7_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device7_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device7_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device7_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device7_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device7_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device7_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device7_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device7_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device7_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device7_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device7_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device7_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device7_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device7_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device7_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device7_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device7_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device7_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device7_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device7_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device7_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device7_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device7_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device7_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device7_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device7_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device7_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device7_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device7_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device7_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device7_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device7_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device7_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device7_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device7_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device7_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device7_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device7_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device7_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device7_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device7_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device7_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device7_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device7_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device7_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device7_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device7_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device7_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device7_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device7_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device7_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device7_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device7_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device7_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device7_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device7_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device7_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device7_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device7_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device7_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device7_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \ + ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) ) + +#define ID3D12Device7_RemoveDevice(This) \ + ( (This)->lpVtbl -> RemoveDevice(This) ) + +#define ID3D12Device7_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) ) + +#define ID3D12Device7_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) ) + +#define ID3D12Device7_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \ + ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) ) + +#define ID3D12Device7_CreateStateObject(This,pDesc,riid,ppStateObject) \ + ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) ) + +#define ID3D12Device7_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \ + ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) ) + +#define ID3D12Device7_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \ + ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) ) + + +#define ID3D12Device7_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \ + ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) ) + + +#define ID3D12Device7_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \ + ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) ) + +#define ID3D12Device7_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device7_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Device8_INTERFACE_DEFINED__ +#define __ID3D12Device8_INTERFACE_DEFINED__ + +/* interface ID3D12Device8 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device8; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9218E6BB-F944-4F7E-A75C-B1B2C7B701F3") + ID3D12Device8 : public ID3D12Device7 + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo2( + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0; +#else + virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo2( + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0; +#endif + + virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource2( + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource1( + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource) = 0; + + virtual void STDMETHODCALLTYPE CreateSamplerFeedbackUnorderedAccessView( + _In_opt_ ID3D12Resource *pTargetedResource, + _In_opt_ ID3D12Resource *pFeedbackResource, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0; + + virtual void STDMETHODCALLTYPE GetCopyableFootprints1( + _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device8Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device8 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device8 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device8 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device8 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device8 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device8 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device8 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device8 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device8 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device8 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device8 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device8 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device8 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device8 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device8 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device8 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device8 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device8 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device8 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device8 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device8 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device8 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device8 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device8 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device8 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device8 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device8 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device8 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device8 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device8 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device8 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device8 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device8 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device8 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device8 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device8 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device8 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device8 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device8 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device8 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device8 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device8 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device8 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device8 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device8 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device8 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device8 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device8 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device8 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device8 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device8 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device8 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device8 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device8 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device8 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device8 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device8 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device8 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device8 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device8 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device8 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker) + HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )( + ID3D12Device8 * This, + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker); + + DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice) + void ( STDMETHODCALLTYPE *RemoveDevice )( + ID3D12Device8 * This); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )( + ID3D12Device8 * This, + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )( + ID3D12Device8 * This, + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand) + HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )( + ID3D12Device8 * This, + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject) + HRESULT ( STDMETHODCALLTYPE *CreateStateObject )( + ID3D12Device8 * This, + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo) + void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )( + ID3D12Device8 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo); + + DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier) + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )( + ID3D12Device8 * This, + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck); + + DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode) + HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )( + ID3D12Device8 * This, + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + _In_opt_ HANDLE hEventToSignalUponCompletion, + _Out_opt_ BOOL *pbFurtherMeasurementsDesired); + + DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject) + HRESULT ( STDMETHODCALLTYPE *AddToStateObject )( + ID3D12Device8 * This, + const D3D12_STATE_OBJECT_DESC *pAddition, + ID3D12StateObject *pStateObjectToGrowFrom, + REFIID riid, + _COM_Outptr_ void **ppNewStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )( + ID3D12Device8 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device8 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device8 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )( + ID3D12Device8 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )( + ID3D12Device8 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )( + ID3D12Device8 * This, + _In_opt_ ID3D12Resource *pTargetedResource, + _In_opt_ ID3D12Resource *pFeedbackResource, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1) + void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )( + ID3D12Device8 * This, + _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + END_INTERFACE + } ID3D12Device8Vtbl; + + interface ID3D12Device8 + { + CONST_VTBL struct ID3D12Device8Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device8_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device8_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device8_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device8_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device8_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device8_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device8_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device8_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device8_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device8_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device8_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device8_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device8_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device8_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device8_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device8_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device8_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device8_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device8_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device8_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device8_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device8_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device8_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device8_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device8_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device8_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device8_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device8_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device8_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device8_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device8_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device8_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device8_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device8_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device8_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device8_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device8_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device8_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device8_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device8_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device8_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device8_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device8_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device8_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device8_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device8_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device8_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device8_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device8_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device8_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device8_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device8_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device8_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device8_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device8_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device8_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device8_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device8_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device8_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device8_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device8_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device8_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \ + ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) ) + +#define ID3D12Device8_RemoveDevice(This) \ + ( (This)->lpVtbl -> RemoveDevice(This) ) + +#define ID3D12Device8_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) ) + +#define ID3D12Device8_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) ) + +#define ID3D12Device8_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \ + ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) ) + +#define ID3D12Device8_CreateStateObject(This,pDesc,riid,ppStateObject) \ + ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) ) + +#define ID3D12Device8_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \ + ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) ) + +#define ID3D12Device8_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \ + ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) ) + + +#define ID3D12Device8_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \ + ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) ) + + +#define ID3D12Device8_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \ + ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) ) + +#define ID3D12Device8_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) ) + +#if !defined(_WIN32) + +#define ID3D12Device8_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device8_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + +#define ID3D12Device8_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device8_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device8_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) ) + +#define ID3D12Device8_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device8_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Resource1_INTERFACE_DEFINED__ +#define __ID3D12Resource1_INTERFACE_DEFINED__ + +/* interface ID3D12Resource1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Resource1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9D5E227A-4430-4161-88B3-3ECA6BB16E19") + ID3D12Resource1 : public ID3D12Resource + { + public: + virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession( + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Resource1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Resource1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Resource1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Resource1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Resource1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Resource1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Resource1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Resource1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12Resource1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12Resource, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D12Resource1 * This, + UINT Subresource, + _In_opt_ const D3D12_RANGE *pReadRange, + _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData); + + DECLSPEC_XFGVIRT(ID3D12Resource, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D12Resource1 * This, + UINT Subresource, + _In_opt_ const D3D12_RANGE *pWrittenRange); + + DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc) +#if !defined(_WIN32) + D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12Resource1 * This); + +#else + D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12Resource1 * This, + D3D12_RESOURCE_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress) + D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )( + ID3D12Resource1 * This); + + DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource) + HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )( + ID3D12Resource1 * This, + UINT DstSubresource, + _In_opt_ const D3D12_BOX *pDstBox, + _In_ const void *pSrcData, + UINT SrcRowPitch, + UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource) + HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )( + ID3D12Resource1 * This, + _Out_ void *pDstData, + UINT DstRowPitch, + UINT DstDepthPitch, + UINT SrcSubresource, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties) + HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )( + ID3D12Resource1 * This, + _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties, + _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags); + + DECLSPEC_XFGVIRT(ID3D12Resource1, GetProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )( + ID3D12Resource1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession); + + END_INTERFACE + } ID3D12Resource1Vtbl; + + interface ID3D12Resource1 + { + CONST_VTBL struct ID3D12Resource1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Resource1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Resource1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Resource1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Resource1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Resource1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Resource1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Resource1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Resource1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12Resource1_Map(This,Subresource,pReadRange,ppData) \ + ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) ) + +#define ID3D12Resource1_Unmap(This,Subresource,pWrittenRange) \ + ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) ) +#if !defined(_WIN32) + +#define ID3D12Resource1_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12Resource1_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#define ID3D12Resource1_GetGPUVirtualAddress(This) \ + ( (This)->lpVtbl -> GetGPUVirtualAddress(This) ) + +#define ID3D12Resource1_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D12Resource1_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) ) + +#define ID3D12Resource1_GetHeapProperties(This,pHeapProperties,pHeapFlags) \ + ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) ) + + +#define ID3D12Resource1_GetProtectedResourceSession(This,riid,ppProtectedSession) \ + ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Resource1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Resource2_INTERFACE_DEFINED__ +#define __ID3D12Resource2_INTERFACE_DEFINED__ + +/* interface ID3D12Resource2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Resource2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BE36EC3B-EA85-4AEB-A45A-E9D76404A495") + ID3D12Resource2 : public ID3D12Resource1 + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_RESOURCE_DESC1 STDMETHODCALLTYPE GetDesc1( void) = 0; +#else + virtual D3D12_RESOURCE_DESC1 *STDMETHODCALLTYPE GetDesc1( + D3D12_RESOURCE_DESC1 * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Resource2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Resource2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Resource2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Resource2 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Resource2 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Resource2 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Resource2 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Resource2 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12Resource2 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12Resource, Map) + HRESULT ( STDMETHODCALLTYPE *Map )( + ID3D12Resource2 * This, + UINT Subresource, + _In_opt_ const D3D12_RANGE *pReadRange, + _Outptr_opt_result_bytebuffer_(_Inexpressible_("Dependent on resource")) void **ppData); + + DECLSPEC_XFGVIRT(ID3D12Resource, Unmap) + void ( STDMETHODCALLTYPE *Unmap )( + ID3D12Resource2 * This, + UINT Subresource, + _In_opt_ const D3D12_RANGE *pWrittenRange); + + DECLSPEC_XFGVIRT(ID3D12Resource, GetDesc) +#if !defined(_WIN32) + D3D12_RESOURCE_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12Resource2 * This); + +#else + D3D12_RESOURCE_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12Resource2 * This, + D3D12_RESOURCE_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Resource, GetGPUVirtualAddress) + D3D12_GPU_VIRTUAL_ADDRESS ( STDMETHODCALLTYPE *GetGPUVirtualAddress )( + ID3D12Resource2 * This); + + DECLSPEC_XFGVIRT(ID3D12Resource, WriteToSubresource) + HRESULT ( STDMETHODCALLTYPE *WriteToSubresource )( + ID3D12Resource2 * This, + UINT DstSubresource, + _In_opt_ const D3D12_BOX *pDstBox, + _In_ const void *pSrcData, + UINT SrcRowPitch, + UINT SrcDepthPitch); + + DECLSPEC_XFGVIRT(ID3D12Resource, ReadFromSubresource) + HRESULT ( STDMETHODCALLTYPE *ReadFromSubresource )( + ID3D12Resource2 * This, + _Out_ void *pDstData, + UINT DstRowPitch, + UINT DstDepthPitch, + UINT SrcSubresource, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12Resource, GetHeapProperties) + HRESULT ( STDMETHODCALLTYPE *GetHeapProperties )( + ID3D12Resource2 * This, + _Out_opt_ D3D12_HEAP_PROPERTIES *pHeapProperties, + _Out_opt_ D3D12_HEAP_FLAGS *pHeapFlags); + + DECLSPEC_XFGVIRT(ID3D12Resource1, GetProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )( + ID3D12Resource2 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession); + + DECLSPEC_XFGVIRT(ID3D12Resource2, GetDesc1) +#if !defined(_WIN32) + D3D12_RESOURCE_DESC1 ( STDMETHODCALLTYPE *GetDesc1 )( + ID3D12Resource2 * This); + +#else + D3D12_RESOURCE_DESC1 *( STDMETHODCALLTYPE *GetDesc1 )( + ID3D12Resource2 * This, + D3D12_RESOURCE_DESC1 * RetVal); + +#endif + + END_INTERFACE + } ID3D12Resource2Vtbl; + + interface ID3D12Resource2 + { + CONST_VTBL struct ID3D12Resource2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Resource2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Resource2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Resource2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Resource2_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Resource2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Resource2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Resource2_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Resource2_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12Resource2_Map(This,Subresource,pReadRange,ppData) \ + ( (This)->lpVtbl -> Map(This,Subresource,pReadRange,ppData) ) + +#define ID3D12Resource2_Unmap(This,Subresource,pWrittenRange) \ + ( (This)->lpVtbl -> Unmap(This,Subresource,pWrittenRange) ) +#if !defined(_WIN32) + +#define ID3D12Resource2_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12Resource2_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#define ID3D12Resource2_GetGPUVirtualAddress(This) \ + ( (This)->lpVtbl -> GetGPUVirtualAddress(This) ) + +#define ID3D12Resource2_WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) \ + ( (This)->lpVtbl -> WriteToSubresource(This,DstSubresource,pDstBox,pSrcData,SrcRowPitch,SrcDepthPitch) ) + +#define ID3D12Resource2_ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) \ + ( (This)->lpVtbl -> ReadFromSubresource(This,pDstData,DstRowPitch,DstDepthPitch,SrcSubresource,pSrcBox) ) + +#define ID3D12Resource2_GetHeapProperties(This,pHeapProperties,pHeapFlags) \ + ( (This)->lpVtbl -> GetHeapProperties(This,pHeapProperties,pHeapFlags) ) + + +#define ID3D12Resource2_GetProtectedResourceSession(This,riid,ppProtectedSession) \ + ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) ) + +#if !defined(_WIN32) + +#define ID3D12Resource2_GetDesc1(This) \ + ( (This)->lpVtbl -> GetDesc1(This) ) +#else +#define ID3D12Resource2_GetDesc1(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc1(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Resource2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Heap1_INTERFACE_DEFINED__ +#define __ID3D12Heap1_INTERFACE_DEFINED__ + +/* interface ID3D12Heap1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Heap1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("572F7389-2168-49E3-9693-D6DF5871BF6D") + ID3D12Heap1 : public ID3D12Heap + { + public: + virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession( + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Heap1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Heap1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Heap1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Heap1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Heap1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Heap1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Heap1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Heap1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12Heap1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12Heap, GetDesc) +#if !defined(_WIN32) + D3D12_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12Heap1 * This); + +#else + D3D12_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12Heap1 * This, + D3D12_HEAP_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Heap1, GetProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )( + ID3D12Heap1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession); + + END_INTERFACE + } ID3D12Heap1Vtbl; + + interface ID3D12Heap1 + { + CONST_VTBL struct ID3D12Heap1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Heap1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Heap1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Heap1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Heap1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Heap1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Heap1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Heap1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Heap1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#if !defined(_WIN32) + +#define ID3D12Heap1_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12Heap1_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + + +#define ID3D12Heap1_GetProtectedResourceSession(This,riid,ppProtectedSession) \ + ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Heap1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6FDA83A7-B84C-4E38-9AC8-C7BD22016B3D") + ID3D12GraphicsCommandList3 : public ID3D12GraphicsCommandList2 + { + public: + virtual void STDMETHODCALLTYPE SetProtectedResourceSession( + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandList3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList3 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList3 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList3 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList3 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList3 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList3 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList3 * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList3 * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList3 * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList3 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList3 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList3 * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList3 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList3 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList3 * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList3 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList3 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList3 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList3 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList3 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList3 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList3 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds) + void ( STDMETHODCALLTYPE *OMSetDepthBounds )( + ID3D12GraphicsCommandList3 * This, + _In_ FLOAT Min, + _In_ FLOAT Max); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions) + void ( STDMETHODCALLTYPE *SetSamplePositions )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion) + void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )( + ID3D12GraphicsCommandList3 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask) + void ( STDMETHODCALLTYPE *SetViewInstanceMask )( + ID3D12GraphicsCommandList3 * This, + _In_ UINT Mask); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12GraphicsCommandList3 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12GraphicsCommandList3 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + END_INTERFACE + } ID3D12GraphicsCommandList3Vtbl; + + interface ID3D12GraphicsCommandList3 + { + CONST_VTBL struct ID3D12GraphicsCommandList3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList3_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList3_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList3_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList3_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList3_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList3_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList3_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList3_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList3_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList3_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList3_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList3_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList3_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList3_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList3_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList3_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList3_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList3_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList3_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList3_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList3_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList3_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList3_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList3_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList3_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList3_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList3_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList3_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList3_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList3_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList3_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList3_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList3_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList3_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList3_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList3_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList3_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList3_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList3_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList3_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList3_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList3_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList3_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList3_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList3_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList3_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList3_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList3_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList3_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList3_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList3_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList3_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList3_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList3_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList3_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList3_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList3_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + + +#define ID3D12GraphicsCommandList3_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList3_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList3_OMSetDepthBounds(This,Min,Max) \ + ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) ) + +#define ID3D12GraphicsCommandList3_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \ + ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) ) + +#define ID3D12GraphicsCommandList3_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \ + ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) ) + +#define ID3D12GraphicsCommandList3_SetViewInstanceMask(This,Mask) \ + ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) ) + + +#define ID3D12GraphicsCommandList3_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12GraphicsCommandList3_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0051 */ +/* [local] */ + +typedef +enum D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE + { + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD = 0, + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD + 1 ) , + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE + 1 ) , + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_NO_ACCESS = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR + 1 ) , + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_NO_ACCESS + 1 ) , + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER + 1 ) , + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_UAV = ( D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV + 1 ) + } D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE; + +typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS + { + D3D12_CLEAR_VALUE ClearValue; + } D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS; + +typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS + { + UINT AdditionalWidth; + UINT AdditionalHeight; + } D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS; + +typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS + { + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE Type; + union + { + D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS Clear; + D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS PreserveLocal; + } ; + } D3D12_RENDER_PASS_BEGINNING_ACCESS; + +typedef +enum D3D12_RENDER_PASS_ENDING_ACCESS_TYPE + { + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD = 0, + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD + 1 ) , + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE + 1 ) , + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_NO_ACCESS = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE + 1 ) , + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_NO_ACCESS + 1 ) , + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER + 1 ) , + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_UAV = ( D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV + 1 ) + } D3D12_RENDER_PASS_ENDING_ACCESS_TYPE; + +typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS + { + UINT SrcSubresource; + UINT DstSubresource; + UINT DstX; + UINT DstY; + D3D12_RECT SrcRect; + } D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS; + +typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS + { + ID3D12Resource *pSrcResource; + ID3D12Resource *pDstResource; + UINT SubresourceCount; + _Field_size_full_(SubresourceCount) const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS *pSubresourceParameters; + DXGI_FORMAT Format; + D3D12_RESOLVE_MODE ResolveMode; + BOOL PreserveResolveSource; + } D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS; + +typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS + { + UINT AdditionalWidth; + UINT AdditionalHeight; + } D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS; + +typedef struct D3D12_RENDER_PASS_ENDING_ACCESS + { + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE Type; + union + { + D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS Resolve; + D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS PreserveLocal; + } ; + } D3D12_RENDER_PASS_ENDING_ACCESS; + +typedef struct D3D12_RENDER_PASS_RENDER_TARGET_DESC + { + D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor; + D3D12_RENDER_PASS_BEGINNING_ACCESS BeginningAccess; + D3D12_RENDER_PASS_ENDING_ACCESS EndingAccess; + } D3D12_RENDER_PASS_RENDER_TARGET_DESC; + +typedef struct D3D12_RENDER_PASS_DEPTH_STENCIL_DESC + { + D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor; + D3D12_RENDER_PASS_BEGINNING_ACCESS DepthBeginningAccess; + D3D12_RENDER_PASS_BEGINNING_ACCESS StencilBeginningAccess; + D3D12_RENDER_PASS_ENDING_ACCESS DepthEndingAccess; + D3D12_RENDER_PASS_ENDING_ACCESS StencilEndingAccess; + } D3D12_RENDER_PASS_DEPTH_STENCIL_DESC; + +typedef +enum D3D12_RENDER_PASS_FLAGS + { + D3D12_RENDER_PASS_FLAG_NONE = 0, + D3D12_RENDER_PASS_FLAG_ALLOW_UAV_WRITES = 0x1, + D3D12_RENDER_PASS_FLAG_SUSPENDING_PASS = 0x2, + D3D12_RENDER_PASS_FLAG_RESUMING_PASS = 0x4, + D3D12_RENDER_PASS_FLAG_BIND_READ_ONLY_DEPTH = 0x8, + D3D12_RENDER_PASS_FLAG_BIND_READ_ONLY_STENCIL = 0x10 + } D3D12_RENDER_PASS_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_RENDER_PASS_FLAGS ) + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0051_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0051_v0_0_s_ifspec; + +#ifndef __ID3D12MetaCommand_INTERFACE_DEFINED__ +#define __ID3D12MetaCommand_INTERFACE_DEFINED__ + +/* interface ID3D12MetaCommand */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12MetaCommand; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DBB84C27-36CE-4FC9-B801-F048C46AC570") + ID3D12MetaCommand : public ID3D12Pageable + { + public: + virtual UINT64 STDMETHODCALLTYPE GetRequiredParameterResourceSize( + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _In_ UINT ParameterIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12MetaCommandVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12MetaCommand * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12MetaCommand * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12MetaCommand * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12MetaCommand * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12MetaCommand * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12MetaCommand * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12MetaCommand * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12MetaCommand * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12MetaCommand, GetRequiredParameterResourceSize) + UINT64 ( STDMETHODCALLTYPE *GetRequiredParameterResourceSize )( + ID3D12MetaCommand * This, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _In_ UINT ParameterIndex); + + END_INTERFACE + } ID3D12MetaCommandVtbl; + + interface ID3D12MetaCommand + { + CONST_VTBL struct ID3D12MetaCommandVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12MetaCommand_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12MetaCommand_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12MetaCommand_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12MetaCommand_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12MetaCommand_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12MetaCommand_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12MetaCommand_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12MetaCommand_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12MetaCommand_GetRequiredParameterResourceSize(This,Stage,ParameterIndex) \ + ( (This)->lpVtbl -> GetRequiredParameterResourceSize(This,Stage,ParameterIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12MetaCommand_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0052 */ +/* [local] */ + +typedef struct D3D12_DISPATCH_RAYS_DESC + { + D3D12_GPU_VIRTUAL_ADDRESS_RANGE RayGenerationShaderRecord; + D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE MissShaderTable; + D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE HitGroupTable; + D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE CallableShaderTable; + UINT Width; + UINT Height; + UINT Depth; + } D3D12_DISPATCH_RAYS_DESC; + +typedef +enum D3D12_SET_WORK_GRAPH_FLAGS + { + D3D12_SET_WORK_GRAPH_FLAG_NONE = 0, + D3D12_SET_WORK_GRAPH_FLAG_INITIALIZE = 0x1 + } D3D12_SET_WORK_GRAPH_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_SET_WORK_GRAPH_FLAGS ) +typedef struct D3D12_SET_WORK_GRAPH_DESC + { + D3D12_PROGRAM_IDENTIFIER ProgramIdentifier; + D3D12_SET_WORK_GRAPH_FLAGS Flags; + D3D12_GPU_VIRTUAL_ADDRESS_RANGE BackingMemory; + D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE NodeLocalRootArgumentsTable; + } D3D12_SET_WORK_GRAPH_DESC; + +typedef struct D3D12_SET_RAYTRACING_PIPELINE_DESC + { + D3D12_PROGRAM_IDENTIFIER ProgramIdentifier; + } D3D12_SET_RAYTRACING_PIPELINE_DESC; + +typedef struct D3D12_SET_GENERIC_PIPELINE_DESC + { + D3D12_PROGRAM_IDENTIFIER ProgramIdentifier; + } D3D12_SET_GENERIC_PIPELINE_DESC; + +typedef +enum D3D12_PROGRAM_TYPE + { + D3D12_PROGRAM_TYPE_GENERIC_PIPELINE = 1, + D3D12_PROGRAM_TYPE_RAYTRACING_PIPELINE = 4, + D3D12_PROGRAM_TYPE_WORK_GRAPH = 5 + } D3D12_PROGRAM_TYPE; + +typedef struct D3D12_SET_PROGRAM_DESC + { + D3D12_PROGRAM_TYPE Type; + union + { + D3D12_SET_GENERIC_PIPELINE_DESC GenericPipeline; + D3D12_SET_RAYTRACING_PIPELINE_DESC RaytracingPipeline; + D3D12_SET_WORK_GRAPH_DESC WorkGraph; + } ; + } D3D12_SET_PROGRAM_DESC; + +typedef +enum D3D12_DISPATCH_MODE + { + D3D12_DISPATCH_MODE_NODE_CPU_INPUT = 0, + D3D12_DISPATCH_MODE_NODE_GPU_INPUT = 1, + D3D12_DISPATCH_MODE_MULTI_NODE_CPU_INPUT = 2, + D3D12_DISPATCH_MODE_MULTI_NODE_GPU_INPUT = 3 + } D3D12_DISPATCH_MODE; + +typedef struct D3D12_NODE_CPU_INPUT + { + UINT EntrypointIndex; + UINT NumRecords; + const void *pRecords; + UINT64 RecordStrideInBytes; + } D3D12_NODE_CPU_INPUT; + +typedef struct D3D12_NODE_GPU_INPUT + { + UINT EntrypointIndex; + UINT NumRecords; + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE Records; + } D3D12_NODE_GPU_INPUT; + +typedef struct D3D12_MULTI_NODE_CPU_INPUT + { + UINT NumNodeInputs; + const D3D12_NODE_CPU_INPUT *pNodeInputs; + UINT64 NodeInputStrideInBytes; + } D3D12_MULTI_NODE_CPU_INPUT; + +typedef struct D3D12_MULTI_NODE_GPU_INPUT + { + UINT NumNodeInputs; + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE NodeInputs; + } D3D12_MULTI_NODE_GPU_INPUT; + +typedef struct D3D12_DISPATCH_GRAPH_DESC + { + D3D12_DISPATCH_MODE Mode; + union + { + D3D12_NODE_CPU_INPUT NodeCPUInput; + D3D12_GPU_VIRTUAL_ADDRESS NodeGPUInput; + D3D12_MULTI_NODE_CPU_INPUT MultiNodeCPUInput; + D3D12_GPU_VIRTUAL_ADDRESS MultiNodeGPUInput; + } ; + } D3D12_DISPATCH_GRAPH_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0052_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0052_v0_0_s_ifspec; + +#ifndef __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList4 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8754318e-d3a9-4541-98cf-645b50dc4874") + ID3D12GraphicsCommandList4 : public ID3D12GraphicsCommandList3 + { + public: + virtual void STDMETHODCALLTYPE BeginRenderPass( + _In_ UINT NumRenderTargets, + _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets, + _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil, + D3D12_RENDER_PASS_FLAGS Flags) = 0; + + virtual void STDMETHODCALLTYPE EndRenderPass( void) = 0; + + virtual void STDMETHODCALLTYPE InitializeMetaCommand( + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData, + _In_ SIZE_T InitializationParametersDataSizeInBytes) = 0; + + virtual void STDMETHODCALLTYPE ExecuteMetaCommand( + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData, + _In_ SIZE_T ExecutionParametersDataSizeInBytes) = 0; + + virtual void STDMETHODCALLTYPE BuildRaytracingAccelerationStructure( + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc, + _In_ UINT NumPostbuildInfoDescs, + _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs) = 0; + + virtual void STDMETHODCALLTYPE EmitRaytracingAccelerationStructurePostbuildInfo( + _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc, + _In_ UINT NumSourceAccelerationStructures, + _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData) = 0; + + virtual void STDMETHODCALLTYPE CopyRaytracingAccelerationStructure( + _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData, + _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData, + _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode) = 0; + + virtual void STDMETHODCALLTYPE SetPipelineState1( + _In_ ID3D12StateObject *pStateObject) = 0; + + virtual void STDMETHODCALLTYPE DispatchRays( + _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandList4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList4 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList4 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList4 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList4 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList4 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList4 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList4 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList4 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList4 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList4 * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList4 * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList4 * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList4 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList4 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList4 * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList4 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList4 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList4 * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList4 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList4 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList4 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList4 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList4 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList4 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList4 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList4 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds) + void ( STDMETHODCALLTYPE *OMSetDepthBounds )( + ID3D12GraphicsCommandList4 * This, + _In_ FLOAT Min, + _In_ FLOAT Max); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions) + void ( STDMETHODCALLTYPE *SetSamplePositions )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion) + void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask) + void ( STDMETHODCALLTYPE *SetViewInstanceMask )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT Mask); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12GraphicsCommandList4 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12GraphicsCommandList4 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass) + void ( STDMETHODCALLTYPE *BeginRenderPass )( + ID3D12GraphicsCommandList4 * This, + _In_ UINT NumRenderTargets, + _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets, + _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil, + D3D12_RENDER_PASS_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass) + void ( STDMETHODCALLTYPE *EndRenderPass )( + ID3D12GraphicsCommandList4 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand) + void ( STDMETHODCALLTYPE *InitializeMetaCommand )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData, + _In_ SIZE_T InitializationParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand) + void ( STDMETHODCALLTYPE *ExecuteMetaCommand )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData, + _In_ SIZE_T ExecutionParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList4 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc, + _In_ UINT NumPostbuildInfoDescs, + _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo) + void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )( + ID3D12GraphicsCommandList4 * This, + _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc, + _In_ UINT NumSourceAccelerationStructures, + _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList4 * This, + _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData, + _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData, + _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1) + void ( STDMETHODCALLTYPE *SetPipelineState1 )( + ID3D12GraphicsCommandList4 * This, + _In_ ID3D12StateObject *pStateObject); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays) + void ( STDMETHODCALLTYPE *DispatchRays )( + ID3D12GraphicsCommandList4 * This, + _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc); + + END_INTERFACE + } ID3D12GraphicsCommandList4Vtbl; + + interface ID3D12GraphicsCommandList4 + { + CONST_VTBL struct ID3D12GraphicsCommandList4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList4_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList4_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList4_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList4_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList4_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList4_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList4_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList4_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList4_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList4_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList4_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList4_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList4_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList4_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList4_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList4_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList4_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList4_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList4_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList4_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList4_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList4_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList4_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList4_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList4_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList4_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList4_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList4_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList4_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList4_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList4_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList4_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList4_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList4_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList4_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList4_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList4_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList4_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList4_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList4_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList4_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList4_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList4_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList4_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList4_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList4_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList4_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList4_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList4_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList4_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList4_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList4_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList4_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList4_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList4_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList4_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList4_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + + +#define ID3D12GraphicsCommandList4_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList4_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList4_OMSetDepthBounds(This,Min,Max) \ + ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) ) + +#define ID3D12GraphicsCommandList4_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \ + ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) ) + +#define ID3D12GraphicsCommandList4_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \ + ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) ) + +#define ID3D12GraphicsCommandList4_SetViewInstanceMask(This,Mask) \ + ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) ) + + +#define ID3D12GraphicsCommandList4_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12GraphicsCommandList4_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + + +#define ID3D12GraphicsCommandList4_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \ + ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) ) + +#define ID3D12GraphicsCommandList4_EndRenderPass(This) \ + ( (This)->lpVtbl -> EndRenderPass(This) ) + +#define ID3D12GraphicsCommandList4_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList4_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList4_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \ + ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) ) + +#define ID3D12GraphicsCommandList4_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \ + ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) ) + +#define ID3D12GraphicsCommandList4_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \ + ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) ) + +#define ID3D12GraphicsCommandList4_SetPipelineState1(This,pStateObject) \ + ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) ) + +#define ID3D12GraphicsCommandList4_DispatchRays(This,pDesc) \ + ( (This)->lpVtbl -> DispatchRays(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList4_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0053 */ +/* [local] */ + +typedef +enum D3D12_SHADER_CACHE_MODE + { + D3D12_SHADER_CACHE_MODE_MEMORY = 0, + D3D12_SHADER_CACHE_MODE_DISK = ( D3D12_SHADER_CACHE_MODE_MEMORY + 1 ) + } D3D12_SHADER_CACHE_MODE; + +typedef +enum D3D12_SHADER_CACHE_FLAGS + { + D3D12_SHADER_CACHE_FLAG_NONE = 0, + D3D12_SHADER_CACHE_FLAG_DRIVER_VERSIONED = 0x1, + D3D12_SHADER_CACHE_FLAG_USE_WORKING_DIR = 0x2 + } D3D12_SHADER_CACHE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_FLAGS ) +typedef struct D3D12_SHADER_CACHE_SESSION_DESC + { + GUID Identifier; + D3D12_SHADER_CACHE_MODE Mode; + D3D12_SHADER_CACHE_FLAGS Flags; + UINT MaximumInMemoryCacheSizeBytes; + UINT MaximumInMemoryCacheEntries; + UINT MaximumValueFileSizeBytes; + UINT64 Version; + } D3D12_SHADER_CACHE_SESSION_DESC; + +typedef +enum D3D12_BARRIER_LAYOUT + { + D3D12_BARRIER_LAYOUT_UNDEFINED = 0xffffffff, + D3D12_BARRIER_LAYOUT_COMMON = 0, + D3D12_BARRIER_LAYOUT_PRESENT = 0, + D3D12_BARRIER_LAYOUT_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_PRESENT + 1 ) , + D3D12_BARRIER_LAYOUT_RENDER_TARGET = ( D3D12_BARRIER_LAYOUT_GENERIC_READ + 1 ) , + D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_RENDER_TARGET + 1 ) , + D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE = ( D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS + 1 ) , + D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ = ( D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE + 1 ) , + D3D12_BARRIER_LAYOUT_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ + 1 ) , + D3D12_BARRIER_LAYOUT_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_SHADER_RESOURCE + 1 ) , + D3D12_BARRIER_LAYOUT_COPY_DEST = ( D3D12_BARRIER_LAYOUT_COPY_SOURCE + 1 ) , + D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE = ( D3D12_BARRIER_LAYOUT_COPY_DEST + 1 ) , + D3D12_BARRIER_LAYOUT_RESOLVE_DEST = ( D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE + 1 ) , + D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE = ( D3D12_BARRIER_LAYOUT_RESOLVE_DEST + 1 ) , + D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ = ( D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE + 1 ) , + D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ + 1 ) , + D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ = ( D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE + 1 ) , + D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ + 1 ) , + D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ = ( D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE + 1 ) , + D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE = ( D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ + 1 ) , + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE + 1 ) , + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON + 1 ) , + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ + 1 ) , + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS + 1 ) , + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE + 1 ) , + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE + 1 ) , + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST + 1 ) , + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON + 1 ) , + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ + 1 ) , + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS + 1 ) , + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE + 1 ) , + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE + 1 ) , + D3D12_BARRIER_LAYOUT_VIDEO_QUEUE_COMMON = ( D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST + 1 ) + } D3D12_BARRIER_LAYOUT; + +typedef +enum D3D12_BARRIER_SYNC + { + D3D12_BARRIER_SYNC_NONE = 0, + D3D12_BARRIER_SYNC_ALL = 0x1, + D3D12_BARRIER_SYNC_DRAW = 0x2, + D3D12_BARRIER_SYNC_INDEX_INPUT = 0x4, + D3D12_BARRIER_SYNC_VERTEX_SHADING = 0x8, + D3D12_BARRIER_SYNC_PIXEL_SHADING = 0x10, + D3D12_BARRIER_SYNC_DEPTH_STENCIL = 0x20, + D3D12_BARRIER_SYNC_RENDER_TARGET = 0x40, + D3D12_BARRIER_SYNC_COMPUTE_SHADING = 0x80, + D3D12_BARRIER_SYNC_RAYTRACING = 0x100, + D3D12_BARRIER_SYNC_COPY = 0x200, + D3D12_BARRIER_SYNC_RESOLVE = 0x400, + D3D12_BARRIER_SYNC_EXECUTE_INDIRECT = 0x800, + D3D12_BARRIER_SYNC_PREDICATION = 0x800, + D3D12_BARRIER_SYNC_ALL_SHADING = 0x1000, + D3D12_BARRIER_SYNC_NON_PIXEL_SHADING = 0x2000, + D3D12_BARRIER_SYNC_EMIT_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO = 0x4000, + D3D12_BARRIER_SYNC_CLEAR_UNORDERED_ACCESS_VIEW = 0x8000, + D3D12_BARRIER_SYNC_VIDEO_DECODE = 0x100000, + D3D12_BARRIER_SYNC_VIDEO_PROCESS = 0x200000, + D3D12_BARRIER_SYNC_VIDEO_ENCODE = 0x400000, + D3D12_BARRIER_SYNC_BUILD_RAYTRACING_ACCELERATION_STRUCTURE = 0x800000, + D3D12_BARRIER_SYNC_COPY_RAYTRACING_ACCELERATION_STRUCTURE = 0x1000000, + D3D12_BARRIER_SYNC_SPLIT = 0x80000000 + } D3D12_BARRIER_SYNC; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_SYNC ) +typedef +enum D3D12_BARRIER_ACCESS + { + D3D12_BARRIER_ACCESS_COMMON = 0, + D3D12_BARRIER_ACCESS_VERTEX_BUFFER = 0x1, + D3D12_BARRIER_ACCESS_CONSTANT_BUFFER = 0x2, + D3D12_BARRIER_ACCESS_INDEX_BUFFER = 0x4, + D3D12_BARRIER_ACCESS_RENDER_TARGET = 0x8, + D3D12_BARRIER_ACCESS_UNORDERED_ACCESS = 0x10, + D3D12_BARRIER_ACCESS_DEPTH_STENCIL_WRITE = 0x20, + D3D12_BARRIER_ACCESS_DEPTH_STENCIL_READ = 0x40, + D3D12_BARRIER_ACCESS_SHADER_RESOURCE = 0x80, + D3D12_BARRIER_ACCESS_STREAM_OUTPUT = 0x100, + D3D12_BARRIER_ACCESS_INDIRECT_ARGUMENT = 0x200, + D3D12_BARRIER_ACCESS_PREDICATION = 0x200, + D3D12_BARRIER_ACCESS_COPY_DEST = 0x400, + D3D12_BARRIER_ACCESS_COPY_SOURCE = 0x800, + D3D12_BARRIER_ACCESS_RESOLVE_DEST = 0x1000, + D3D12_BARRIER_ACCESS_RESOLVE_SOURCE = 0x2000, + D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_READ = 0x4000, + D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_WRITE = 0x8000, + D3D12_BARRIER_ACCESS_SHADING_RATE_SOURCE = 0x10000, + D3D12_BARRIER_ACCESS_VIDEO_DECODE_READ = 0x20000, + D3D12_BARRIER_ACCESS_VIDEO_DECODE_WRITE = 0x40000, + D3D12_BARRIER_ACCESS_VIDEO_PROCESS_READ = 0x80000, + D3D12_BARRIER_ACCESS_VIDEO_PROCESS_WRITE = 0x100000, + D3D12_BARRIER_ACCESS_VIDEO_ENCODE_READ = 0x200000, + D3D12_BARRIER_ACCESS_VIDEO_ENCODE_WRITE = 0x400000, + D3D12_BARRIER_ACCESS_NO_ACCESS = 0x80000000 + } D3D12_BARRIER_ACCESS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_ACCESS ) +typedef +enum D3D12_BARRIER_TYPE + { + D3D12_BARRIER_TYPE_GLOBAL = 0, + D3D12_BARRIER_TYPE_TEXTURE = ( D3D12_BARRIER_TYPE_GLOBAL + 1 ) , + D3D12_BARRIER_TYPE_BUFFER = ( D3D12_BARRIER_TYPE_TEXTURE + 1 ) + } D3D12_BARRIER_TYPE; + +typedef +enum D3D12_TEXTURE_BARRIER_FLAGS + { + D3D12_TEXTURE_BARRIER_FLAG_NONE = 0, + D3D12_TEXTURE_BARRIER_FLAG_DISCARD = 0x1 + } D3D12_TEXTURE_BARRIER_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_TEXTURE_BARRIER_FLAGS ) +typedef struct D3D12_BARRIER_SUBRESOURCE_RANGE + { + UINT IndexOrFirstMipLevel; + UINT NumMipLevels; + UINT FirstArraySlice; + UINT NumArraySlices; + UINT FirstPlane; + UINT NumPlanes; + } D3D12_BARRIER_SUBRESOURCE_RANGE; + +typedef struct D3D12_GLOBAL_BARRIER + { + D3D12_BARRIER_SYNC SyncBefore; + D3D12_BARRIER_SYNC SyncAfter; + D3D12_BARRIER_ACCESS AccessBefore; + D3D12_BARRIER_ACCESS AccessAfter; + } D3D12_GLOBAL_BARRIER; + +typedef struct D3D12_TEXTURE_BARRIER + { + D3D12_BARRIER_SYNC SyncBefore; + D3D12_BARRIER_SYNC SyncAfter; + D3D12_BARRIER_ACCESS AccessBefore; + D3D12_BARRIER_ACCESS AccessAfter; + D3D12_BARRIER_LAYOUT LayoutBefore; + D3D12_BARRIER_LAYOUT LayoutAfter; + _In_ ID3D12Resource *pResource; + D3D12_BARRIER_SUBRESOURCE_RANGE Subresources; + D3D12_TEXTURE_BARRIER_FLAGS Flags; + } D3D12_TEXTURE_BARRIER; + +typedef struct D3D12_BUFFER_BARRIER + { + D3D12_BARRIER_SYNC SyncBefore; + D3D12_BARRIER_SYNC SyncAfter; + D3D12_BARRIER_ACCESS AccessBefore; + D3D12_BARRIER_ACCESS AccessAfter; + _In_ ID3D12Resource *pResource; + UINT64 Offset; + UINT64 Size; + } D3D12_BUFFER_BARRIER; + +typedef struct D3D12_BARRIER_GROUP + { + D3D12_BARRIER_TYPE Type; + UINT32 NumBarriers; + union + { + _In_reads_(NumBarriers) const D3D12_GLOBAL_BARRIER *pGlobalBarriers; + _In_reads_(NumBarriers) const D3D12_TEXTURE_BARRIER *pTextureBarriers; + _In_reads_(NumBarriers) const D3D12_BUFFER_BARRIER *pBufferBarriers; + } ; + } D3D12_BARRIER_GROUP; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0053_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0053_v0_0_s_ifspec; + +#ifndef __ID3D12ShaderCacheSession_INTERFACE_DEFINED__ +#define __ID3D12ShaderCacheSession_INTERFACE_DEFINED__ + +/* interface ID3D12ShaderCacheSession */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12ShaderCacheSession; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("28e2495d-0f64-4ae4-a6ec-129255dc49a8") + ID3D12ShaderCacheSession : public ID3D12DeviceChild + { + public: + virtual HRESULT STDMETHODCALLTYPE FindValue( + /* [annotation][in] */ + _In_reads_bytes_(KeySize) const void *pKey, + UINT KeySize, + /* [annotation][out] */ + _Out_writes_bytes_(*pValueSize) void *pValue, + _Inout_ UINT *pValueSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE StoreValue( + /* [annotation][in] */ + _In_reads_bytes_(KeySize) const void *pKey, + UINT KeySize, + /* [annotation][in] */ + _In_reads_bytes_(ValueSize) const void *pValue, + UINT ValueSize) = 0; + + virtual void STDMETHODCALLTYPE SetDeleteOnDestroy( void) = 0; + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_SHADER_CACHE_SESSION_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_SHADER_CACHE_SESSION_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_SHADER_CACHE_SESSION_DESC * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12ShaderCacheSessionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12ShaderCacheSession * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12ShaderCacheSession * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12ShaderCacheSession * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12ShaderCacheSession * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12ShaderCacheSession * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12ShaderCacheSession * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12ShaderCacheSession * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12ShaderCacheSession * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, FindValue) + HRESULT ( STDMETHODCALLTYPE *FindValue )( + ID3D12ShaderCacheSession * This, + /* [annotation][in] */ + _In_reads_bytes_(KeySize) const void *pKey, + UINT KeySize, + /* [annotation][out] */ + _Out_writes_bytes_(*pValueSize) void *pValue, + _Inout_ UINT *pValueSize); + + DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, StoreValue) + HRESULT ( STDMETHODCALLTYPE *StoreValue )( + ID3D12ShaderCacheSession * This, + /* [annotation][in] */ + _In_reads_bytes_(KeySize) const void *pKey, + UINT KeySize, + /* [annotation][in] */ + _In_reads_bytes_(ValueSize) const void *pValue, + UINT ValueSize); + + DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, SetDeleteOnDestroy) + void ( STDMETHODCALLTYPE *SetDeleteOnDestroy )( + ID3D12ShaderCacheSession * This); + + DECLSPEC_XFGVIRT(ID3D12ShaderCacheSession, GetDesc) +#if !defined(_WIN32) + D3D12_SHADER_CACHE_SESSION_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12ShaderCacheSession * This); + +#else + D3D12_SHADER_CACHE_SESSION_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12ShaderCacheSession * This, + D3D12_SHADER_CACHE_SESSION_DESC * RetVal); + +#endif + + END_INTERFACE + } ID3D12ShaderCacheSessionVtbl; + + interface ID3D12ShaderCacheSession + { + CONST_VTBL struct ID3D12ShaderCacheSessionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12ShaderCacheSession_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12ShaderCacheSession_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12ShaderCacheSession_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12ShaderCacheSession_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12ShaderCacheSession_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12ShaderCacheSession_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12ShaderCacheSession_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12ShaderCacheSession_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12ShaderCacheSession_FindValue(This,pKey,KeySize,pValue,pValueSize) \ + ( (This)->lpVtbl -> FindValue(This,pKey,KeySize,pValue,pValueSize) ) + +#define ID3D12ShaderCacheSession_StoreValue(This,pKey,KeySize,pValue,ValueSize) \ + ( (This)->lpVtbl -> StoreValue(This,pKey,KeySize,pValue,ValueSize) ) + +#define ID3D12ShaderCacheSession_SetDeleteOnDestroy(This) \ + ( (This)->lpVtbl -> SetDeleteOnDestroy(This) ) +#if !defined(_WIN32) + +#define ID3D12ShaderCacheSession_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12ShaderCacheSession_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12ShaderCacheSession_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0054 */ +/* [local] */ + +typedef +enum D3D12_SHADER_CACHE_KIND_FLAGS + { + D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CACHE_FOR_DRIVER = 0x1, + D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CONVERSIONS = 0x2, + D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_DRIVER_MANAGED = 0x4, + D3D12_SHADER_CACHE_KIND_FLAG_APPLICATION_MANAGED = 0x8 + } D3D12_SHADER_CACHE_KIND_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_KIND_FLAGS ) +typedef +enum D3D12_SHADER_CACHE_CONTROL_FLAGS + { + D3D12_SHADER_CACHE_CONTROL_FLAG_DISABLE = 0x1, + D3D12_SHADER_CACHE_CONTROL_FLAG_ENABLE = 0x2, + D3D12_SHADER_CACHE_CONTROL_FLAG_CLEAR = 0x4 + } D3D12_SHADER_CACHE_CONTROL_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_CONTROL_FLAGS ) + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0054_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0054_v0_0_s_ifspec; + +#ifndef __ID3D12Device9_INTERFACE_DEFINED__ +#define __ID3D12Device9_INTERFACE_DEFINED__ + +/* interface ID3D12Device9 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device9; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4c80e962-f032-4f60-bc9e-ebc2cfa1d83c") + ID3D12Device9 : public ID3D12Device8 + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateShaderCacheSession( + _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvSession) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShaderCacheControl( + D3D12_SHADER_CACHE_KIND_FLAGS Kinds, + D3D12_SHADER_CACHE_CONTROL_FLAGS Control) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateCommandQueue1( + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID CreatorID, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device9Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device9 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device9 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device9 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device9 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device9 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device9 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device9 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device9 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device9 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device9 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device9 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device9 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device9 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device9 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device9 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device9 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device9 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device9 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device9 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device9 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device9 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device9 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device9 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device9 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device9 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device9 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device9 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device9 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device9 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device9 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device9 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device9 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device9 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device9 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device9 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device9 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device9 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device9 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device9 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device9 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device9 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device9 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device9 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device9 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device9 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device9 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device9 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device9 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device9 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device9 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device9 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device9 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device9 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device9 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device9 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device9 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device9 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device9 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device9 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device9 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device9 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker) + HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )( + ID3D12Device9 * This, + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker); + + DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice) + void ( STDMETHODCALLTYPE *RemoveDevice )( + ID3D12Device9 * This); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )( + ID3D12Device9 * This, + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )( + ID3D12Device9 * This, + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand) + HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )( + ID3D12Device9 * This, + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject) + HRESULT ( STDMETHODCALLTYPE *CreateStateObject )( + ID3D12Device9 * This, + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo) + void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )( + ID3D12Device9 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo); + + DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier) + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )( + ID3D12Device9 * This, + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck); + + DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode) + HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )( + ID3D12Device9 * This, + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + _In_opt_ HANDLE hEventToSignalUponCompletion, + _Out_opt_ BOOL *pbFurtherMeasurementsDesired); + + DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject) + HRESULT ( STDMETHODCALLTYPE *AddToStateObject )( + ID3D12Device9 * This, + const D3D12_STATE_OBJECT_DESC *pAddition, + ID3D12StateObject *pStateObjectToGrowFrom, + REFIID riid, + _COM_Outptr_ void **ppNewStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )( + ID3D12Device9 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device9 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device9 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )( + ID3D12Device9 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )( + ID3D12Device9 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )( + ID3D12Device9 * This, + _In_opt_ ID3D12Resource *pTargetedResource, + _In_opt_ ID3D12Resource *pFeedbackResource, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1) + void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )( + ID3D12Device9 * This, + _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession) + HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )( + ID3D12Device9 * This, + _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvSession); + + DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl) + HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )( + ID3D12Device9 * This, + D3D12_SHADER_CACHE_KIND_FLAGS Kinds, + D3D12_SHADER_CACHE_CONTROL_FLAGS Control); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )( + ID3D12Device9 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID CreatorID, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + END_INTERFACE + } ID3D12Device9Vtbl; + + interface ID3D12Device9 + { + CONST_VTBL struct ID3D12Device9Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device9_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device9_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device9_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device9_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device9_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device9_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device9_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device9_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device9_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device9_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device9_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device9_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device9_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device9_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device9_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device9_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device9_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device9_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device9_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device9_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device9_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device9_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device9_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device9_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device9_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device9_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device9_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device9_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device9_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device9_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device9_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device9_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device9_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device9_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device9_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device9_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device9_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device9_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device9_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device9_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device9_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device9_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device9_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device9_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device9_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device9_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device9_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device9_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device9_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device9_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device9_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device9_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device9_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device9_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device9_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device9_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device9_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device9_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device9_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device9_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device9_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device9_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \ + ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) ) + +#define ID3D12Device9_RemoveDevice(This) \ + ( (This)->lpVtbl -> RemoveDevice(This) ) + +#define ID3D12Device9_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) ) + +#define ID3D12Device9_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) ) + +#define ID3D12Device9_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \ + ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) ) + +#define ID3D12Device9_CreateStateObject(This,pDesc,riid,ppStateObject) \ + ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) ) + +#define ID3D12Device9_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \ + ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) ) + +#define ID3D12Device9_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \ + ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) ) + + +#define ID3D12Device9_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \ + ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) ) + + +#define ID3D12Device9_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \ + ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) ) + +#define ID3D12Device9_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) ) + +#if !defined(_WIN32) + +#define ID3D12Device9_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device9_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + +#define ID3D12Device9_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device9_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device9_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) ) + +#define ID3D12Device9_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + + +#define ID3D12Device9_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \ + ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) ) + +#define ID3D12Device9_ShaderCacheControl(This,Kinds,Control) \ + ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) ) + +#define ID3D12Device9_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device9_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Device10_INTERFACE_DEFINED__ +#define __ID3D12Device10_INTERFACE_DEFINED__ + +/* interface ID3D12Device10 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device10; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("517f8718-aa66-49f9-b02b-a7ab89c06031") + ID3D12Device10 : public ID3D12Device9 + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateCommittedResource3( + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreatePlacedResource2( + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateReservedResource2( + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device10Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device10 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device10 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device10 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device10 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device10 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device10 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device10 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device10 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device10 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device10 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device10 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device10 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device10 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device10 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device10 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device10 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device10 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device10 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device10 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device10 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device10 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device10 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device10 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device10 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device10 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device10 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device10 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device10 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device10 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device10 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device10 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device10 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device10 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device10 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device10 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device10 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device10 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device10 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device10 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device10 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device10 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device10 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device10 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device10 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device10 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device10 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device10 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device10 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device10 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device10 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device10 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device10 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device10 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device10 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device10 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device10 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device10 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device10 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device10 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device10 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device10 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker) + HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )( + ID3D12Device10 * This, + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker); + + DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice) + void ( STDMETHODCALLTYPE *RemoveDevice )( + ID3D12Device10 * This); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )( + ID3D12Device10 * This, + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )( + ID3D12Device10 * This, + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand) + HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )( + ID3D12Device10 * This, + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject) + HRESULT ( STDMETHODCALLTYPE *CreateStateObject )( + ID3D12Device10 * This, + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo) + void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )( + ID3D12Device10 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo); + + DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier) + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )( + ID3D12Device10 * This, + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck); + + DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode) + HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )( + ID3D12Device10 * This, + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + _In_opt_ HANDLE hEventToSignalUponCompletion, + _Out_opt_ BOOL *pbFurtherMeasurementsDesired); + + DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject) + HRESULT ( STDMETHODCALLTYPE *AddToStateObject )( + ID3D12Device10 * This, + const D3D12_STATE_OBJECT_DESC *pAddition, + ID3D12StateObject *pStateObjectToGrowFrom, + REFIID riid, + _COM_Outptr_ void **ppNewStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )( + ID3D12Device10 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device10 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device10 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )( + ID3D12Device10 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )( + ID3D12Device10 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )( + ID3D12Device10 * This, + _In_opt_ ID3D12Resource *pTargetedResource, + _In_opt_ ID3D12Resource *pFeedbackResource, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1) + void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )( + ID3D12Device10 * This, + _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession) + HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )( + ID3D12Device10 * This, + _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvSession); + + DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl) + HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )( + ID3D12Device10 * This, + D3D12_SHADER_CACHE_KIND_FLAGS Kinds, + D3D12_SHADER_CACHE_CONTROL_FLAGS Control); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )( + ID3D12Device10 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID CreatorID, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )( + ID3D12Device10 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )( + ID3D12Device10 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )( + ID3D12Device10 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + END_INTERFACE + } ID3D12Device10Vtbl; + + interface ID3D12Device10 + { + CONST_VTBL struct ID3D12Device10Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device10_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device10_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device10_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device10_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device10_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device10_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device10_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device10_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device10_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device10_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device10_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device10_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device10_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device10_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device10_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device10_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device10_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device10_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device10_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device10_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device10_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device10_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device10_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device10_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device10_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device10_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device10_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device10_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device10_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device10_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device10_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device10_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device10_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device10_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device10_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device10_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device10_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device10_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device10_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device10_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device10_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device10_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device10_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device10_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device10_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device10_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device10_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device10_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device10_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device10_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device10_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device10_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device10_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device10_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device10_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device10_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device10_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device10_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device10_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device10_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device10_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device10_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \ + ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) ) + +#define ID3D12Device10_RemoveDevice(This) \ + ( (This)->lpVtbl -> RemoveDevice(This) ) + +#define ID3D12Device10_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) ) + +#define ID3D12Device10_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) ) + +#define ID3D12Device10_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \ + ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) ) + +#define ID3D12Device10_CreateStateObject(This,pDesc,riid,ppStateObject) \ + ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) ) + +#define ID3D12Device10_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \ + ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) ) + +#define ID3D12Device10_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \ + ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) ) + + +#define ID3D12Device10_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \ + ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) ) + + +#define ID3D12Device10_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \ + ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) ) + +#define ID3D12Device10_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) ) + +#if !defined(_WIN32) + +#define ID3D12Device10_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device10_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + +#define ID3D12Device10_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device10_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device10_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) ) + +#define ID3D12Device10_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + + +#define ID3D12Device10_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \ + ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) ) + +#define ID3D12Device10_ShaderCacheControl(This,Kinds,Control) \ + ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) ) + +#define ID3D12Device10_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) ) + + +#define ID3D12Device10_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) ) + +#define ID3D12Device10_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) ) + +#define ID3D12Device10_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device10_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Device11_INTERFACE_DEFINED__ +#define __ID3D12Device11_INTERFACE_DEFINED__ + +/* interface ID3D12Device11 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device11; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5405c344-d457-444e-b4dd-2366e45aee39") + ID3D12Device11 : public ID3D12Device10 + { + public: + virtual void STDMETHODCALLTYPE CreateSampler2( + _In_ const D3D12_SAMPLER_DESC2 *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device11Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device11 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device11 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device11 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device11 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device11 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device11 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device11 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device11 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device11 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device11 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device11 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device11 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device11 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device11 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device11 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device11 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device11 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device11 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device11 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device11 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device11 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device11 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device11 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device11 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device11 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device11 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device11 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device11 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device11 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device11 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device11 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device11 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device11 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device11 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device11 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device11 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device11 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device11 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device11 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device11 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device11 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device11 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device11 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device11 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device11 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device11 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device11 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device11 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device11 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device11 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device11 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device11 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device11 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device11 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device11 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device11 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device11 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device11 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device11 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device11 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device11 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker) + HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )( + ID3D12Device11 * This, + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker); + + DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice) + void ( STDMETHODCALLTYPE *RemoveDevice )( + ID3D12Device11 * This); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )( + ID3D12Device11 * This, + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )( + ID3D12Device11 * This, + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand) + HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )( + ID3D12Device11 * This, + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject) + HRESULT ( STDMETHODCALLTYPE *CreateStateObject )( + ID3D12Device11 * This, + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo) + void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )( + ID3D12Device11 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo); + + DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier) + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )( + ID3D12Device11 * This, + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck); + + DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode) + HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )( + ID3D12Device11 * This, + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + _In_opt_ HANDLE hEventToSignalUponCompletion, + _Out_opt_ BOOL *pbFurtherMeasurementsDesired); + + DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject) + HRESULT ( STDMETHODCALLTYPE *AddToStateObject )( + ID3D12Device11 * This, + const D3D12_STATE_OBJECT_DESC *pAddition, + ID3D12StateObject *pStateObjectToGrowFrom, + REFIID riid, + _COM_Outptr_ void **ppNewStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )( + ID3D12Device11 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device11 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device11 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )( + ID3D12Device11 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )( + ID3D12Device11 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )( + ID3D12Device11 * This, + _In_opt_ ID3D12Resource *pTargetedResource, + _In_opt_ ID3D12Resource *pFeedbackResource, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1) + void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )( + ID3D12Device11 * This, + _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession) + HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )( + ID3D12Device11 * This, + _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvSession); + + DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl) + HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )( + ID3D12Device11 * This, + D3D12_SHADER_CACHE_KIND_FLAGS Kinds, + D3D12_SHADER_CACHE_CONTROL_FLAGS Control); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )( + ID3D12Device11 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID CreatorID, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )( + ID3D12Device11 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )( + ID3D12Device11 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )( + ID3D12Device11 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2) + void ( STDMETHODCALLTYPE *CreateSampler2 )( + ID3D12Device11 * This, + _In_ const D3D12_SAMPLER_DESC2 *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + END_INTERFACE + } ID3D12Device11Vtbl; + + interface ID3D12Device11 + { + CONST_VTBL struct ID3D12Device11Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device11_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device11_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device11_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device11_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device11_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device11_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device11_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device11_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device11_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device11_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device11_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device11_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device11_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device11_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device11_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device11_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device11_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device11_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device11_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device11_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device11_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device11_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device11_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device11_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device11_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device11_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device11_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device11_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device11_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device11_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device11_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device11_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device11_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device11_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device11_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device11_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device11_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device11_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device11_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device11_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device11_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device11_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device11_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device11_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device11_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device11_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device11_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device11_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device11_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device11_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device11_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device11_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device11_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device11_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device11_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device11_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device11_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device11_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device11_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device11_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device11_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device11_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \ + ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) ) + +#define ID3D12Device11_RemoveDevice(This) \ + ( (This)->lpVtbl -> RemoveDevice(This) ) + +#define ID3D12Device11_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) ) + +#define ID3D12Device11_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) ) + +#define ID3D12Device11_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \ + ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) ) + +#define ID3D12Device11_CreateStateObject(This,pDesc,riid,ppStateObject) \ + ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) ) + +#define ID3D12Device11_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \ + ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) ) + +#define ID3D12Device11_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \ + ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) ) + + +#define ID3D12Device11_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \ + ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) ) + + +#define ID3D12Device11_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \ + ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) ) + +#define ID3D12Device11_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) ) + +#if !defined(_WIN32) + +#define ID3D12Device11_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device11_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + +#define ID3D12Device11_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device11_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device11_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) ) + +#define ID3D12Device11_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + + +#define ID3D12Device11_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \ + ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) ) + +#define ID3D12Device11_ShaderCacheControl(This,Kinds,Control) \ + ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) ) + +#define ID3D12Device11_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) ) + + +#define ID3D12Device11_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) ) + +#define ID3D12Device11_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) ) + +#define ID3D12Device11_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) ) + + +#define ID3D12Device11_CreateSampler2(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device11_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Device12_INTERFACE_DEFINED__ +#define __ID3D12Device12_INTERFACE_DEFINED__ + +/* interface ID3D12Device12 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device12; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5af5c532-4c91-4cd0-b541-15a405395fc5") + ID3D12Device12 : public ID3D12Device11 + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_RESOURCE_ALLOCATION_INFO STDMETHODCALLTYPE GetResourceAllocationInfo3( + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats, + _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0; +#else + virtual D3D12_RESOURCE_ALLOCATION_INFO *STDMETHODCALLTYPE GetResourceAllocationInfo3( + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats, + _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device12Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device12 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device12 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device12 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device12 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device12 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device12 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device12 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device12 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device12 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device12 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device12 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device12 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device12 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device12 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device12 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device12 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device12 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device12 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device12 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device12 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device12 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device12 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device12 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device12 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device12 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device12 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device12 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device12 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device12 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device12 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device12 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device12 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device12 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device12 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device12 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device12 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device12 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device12 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device12 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device12 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device12 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device12 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device12 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device12 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device12 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device12 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device12 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device12 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device12 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device12 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device12 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device12 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device12 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device12 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device12 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device12 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device12 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device12 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device12 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device12 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device12 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker) + HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )( + ID3D12Device12 * This, + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker); + + DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice) + void ( STDMETHODCALLTYPE *RemoveDevice )( + ID3D12Device12 * This); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )( + ID3D12Device12 * This, + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )( + ID3D12Device12 * This, + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand) + HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )( + ID3D12Device12 * This, + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject) + HRESULT ( STDMETHODCALLTYPE *CreateStateObject )( + ID3D12Device12 * This, + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo) + void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )( + ID3D12Device12 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo); + + DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier) + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )( + ID3D12Device12 * This, + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck); + + DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode) + HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )( + ID3D12Device12 * This, + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + _In_opt_ HANDLE hEventToSignalUponCompletion, + _Out_opt_ BOOL *pbFurtherMeasurementsDesired); + + DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject) + HRESULT ( STDMETHODCALLTYPE *AddToStateObject )( + ID3D12Device12 * This, + const D3D12_STATE_OBJECT_DESC *pAddition, + ID3D12StateObject *pStateObjectToGrowFrom, + REFIID riid, + _COM_Outptr_ void **ppNewStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )( + ID3D12Device12 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device12 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device12 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )( + ID3D12Device12 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )( + ID3D12Device12 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )( + ID3D12Device12 * This, + _In_opt_ ID3D12Resource *pTargetedResource, + _In_opt_ ID3D12Resource *pFeedbackResource, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1) + void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )( + ID3D12Device12 * This, + _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession) + HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )( + ID3D12Device12 * This, + _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvSession); + + DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl) + HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )( + ID3D12Device12 * This, + D3D12_SHADER_CACHE_KIND_FLAGS Kinds, + D3D12_SHADER_CACHE_CONTROL_FLAGS Control); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )( + ID3D12Device12 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID CreatorID, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )( + ID3D12Device12 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )( + ID3D12Device12 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )( + ID3D12Device12 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2) + void ( STDMETHODCALLTYPE *CreateSampler2 )( + ID3D12Device12 * This, + _In_ const D3D12_SAMPLER_DESC2 *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )( + ID3D12Device12 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats, + _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )( + ID3D12Device12 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats, + _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + END_INTERFACE + } ID3D12Device12Vtbl; + + interface ID3D12Device12 + { + CONST_VTBL struct ID3D12Device12Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device12_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device12_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device12_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device12_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device12_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device12_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device12_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device12_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device12_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device12_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device12_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device12_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device12_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device12_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device12_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device12_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device12_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device12_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device12_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device12_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device12_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device12_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device12_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device12_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device12_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device12_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device12_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device12_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device12_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device12_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device12_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device12_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device12_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device12_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device12_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device12_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device12_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device12_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device12_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device12_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device12_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device12_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device12_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device12_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device12_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device12_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device12_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device12_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device12_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device12_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device12_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device12_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device12_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device12_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device12_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device12_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device12_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device12_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device12_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device12_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device12_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device12_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \ + ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) ) + +#define ID3D12Device12_RemoveDevice(This) \ + ( (This)->lpVtbl -> RemoveDevice(This) ) + +#define ID3D12Device12_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) ) + +#define ID3D12Device12_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) ) + +#define ID3D12Device12_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \ + ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) ) + +#define ID3D12Device12_CreateStateObject(This,pDesc,riid,ppStateObject) \ + ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) ) + +#define ID3D12Device12_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \ + ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) ) + +#define ID3D12Device12_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \ + ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) ) + + +#define ID3D12Device12_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \ + ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) ) + + +#define ID3D12Device12_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \ + ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) ) + +#define ID3D12Device12_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) ) + +#if !defined(_WIN32) + +#define ID3D12Device12_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device12_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + +#define ID3D12Device12_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device12_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device12_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) ) + +#define ID3D12Device12_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + + +#define ID3D12Device12_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \ + ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) ) + +#define ID3D12Device12_ShaderCacheControl(This,Kinds,Control) \ + ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) ) + +#define ID3D12Device12_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) ) + + +#define ID3D12Device12_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) ) + +#define ID3D12Device12_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) ) + +#define ID3D12Device12_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) ) + + +#define ID3D12Device12_CreateSampler2(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) ) + +#if !defined(_WIN32) + +#define ID3D12Device12_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) ) +#else +#define ID3D12Device12_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device12_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Device13_INTERFACE_DEFINED__ +#define __ID3D12Device13_INTERFACE_DEFINED__ + +/* interface ID3D12Device13 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device13; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("14eecffc-4df8-40f7-a118-5c816f45695e") + ID3D12Device13 : public ID3D12Device12 + { + public: + virtual HRESULT STDMETHODCALLTYPE OpenExistingHeapFromAddress1( + _In_ const void *pAddress, + SIZE_T size, + REFIID riid, + _COM_Outptr_ void **ppvHeap) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device13Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device13 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device13 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device13 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device13 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device13 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device13 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device13 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device13 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device13 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device13 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device13 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device13 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device13 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device13 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device13 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device13 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device13 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device13 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device13 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device13 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device13 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device13 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device13 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device13 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device13 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device13 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device13 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device13 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device13 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device13 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device13 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device13 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device13 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device13 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device13 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device13 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device13 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device13 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device13 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device13 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device13 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device13 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device13 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device13 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device13 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device13 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device13 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device13 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device13 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device13 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device13 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device13 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device13 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device13 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device13 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device13 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device13 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device13 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device13 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device13 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device13 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker) + HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )( + ID3D12Device13 * This, + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker); + + DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice) + void ( STDMETHODCALLTYPE *RemoveDevice )( + ID3D12Device13 * This); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )( + ID3D12Device13 * This, + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )( + ID3D12Device13 * This, + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand) + HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )( + ID3D12Device13 * This, + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject) + HRESULT ( STDMETHODCALLTYPE *CreateStateObject )( + ID3D12Device13 * This, + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo) + void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )( + ID3D12Device13 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo); + + DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier) + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )( + ID3D12Device13 * This, + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck); + + DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode) + HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )( + ID3D12Device13 * This, + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + _In_opt_ HANDLE hEventToSignalUponCompletion, + _Out_opt_ BOOL *pbFurtherMeasurementsDesired); + + DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject) + HRESULT ( STDMETHODCALLTYPE *AddToStateObject )( + ID3D12Device13 * This, + const D3D12_STATE_OBJECT_DESC *pAddition, + ID3D12StateObject *pStateObjectToGrowFrom, + REFIID riid, + _COM_Outptr_ void **ppNewStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )( + ID3D12Device13 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device13 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device13 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )( + ID3D12Device13 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )( + ID3D12Device13 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )( + ID3D12Device13 * This, + _In_opt_ ID3D12Resource *pTargetedResource, + _In_opt_ ID3D12Resource *pFeedbackResource, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1) + void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )( + ID3D12Device13 * This, + _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession) + HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )( + ID3D12Device13 * This, + _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvSession); + + DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl) + HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )( + ID3D12Device13 * This, + D3D12_SHADER_CACHE_KIND_FLAGS Kinds, + D3D12_SHADER_CACHE_CONTROL_FLAGS Control); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )( + ID3D12Device13 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID CreatorID, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )( + ID3D12Device13 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )( + ID3D12Device13 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )( + ID3D12Device13 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2) + void ( STDMETHODCALLTYPE *CreateSampler2 )( + ID3D12Device13 * This, + _In_ const D3D12_SAMPLER_DESC2 *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )( + ID3D12Device13 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats, + _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )( + ID3D12Device13 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats, + _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device13, OpenExistingHeapFromAddress1) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress1 )( + ID3D12Device13 * This, + _In_ const void *pAddress, + SIZE_T size, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + END_INTERFACE + } ID3D12Device13Vtbl; + + interface ID3D12Device13 + { + CONST_VTBL struct ID3D12Device13Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device13_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device13_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device13_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device13_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device13_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device13_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device13_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device13_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device13_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device13_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device13_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device13_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device13_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device13_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device13_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device13_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device13_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device13_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device13_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device13_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device13_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device13_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device13_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device13_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device13_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device13_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device13_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device13_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device13_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device13_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device13_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device13_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device13_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device13_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device13_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device13_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device13_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device13_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device13_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device13_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device13_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device13_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device13_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device13_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device13_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device13_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device13_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device13_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device13_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device13_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device13_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device13_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device13_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device13_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device13_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device13_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device13_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device13_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device13_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device13_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device13_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device13_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \ + ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) ) + +#define ID3D12Device13_RemoveDevice(This) \ + ( (This)->lpVtbl -> RemoveDevice(This) ) + +#define ID3D12Device13_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) ) + +#define ID3D12Device13_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) ) + +#define ID3D12Device13_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \ + ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) ) + +#define ID3D12Device13_CreateStateObject(This,pDesc,riid,ppStateObject) \ + ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) ) + +#define ID3D12Device13_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \ + ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) ) + +#define ID3D12Device13_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \ + ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) ) + + +#define ID3D12Device13_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \ + ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) ) + + +#define ID3D12Device13_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \ + ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) ) + +#define ID3D12Device13_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) ) + +#if !defined(_WIN32) + +#define ID3D12Device13_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device13_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + +#define ID3D12Device13_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device13_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device13_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) ) + +#define ID3D12Device13_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + + +#define ID3D12Device13_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \ + ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) ) + +#define ID3D12Device13_ShaderCacheControl(This,Kinds,Control) \ + ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) ) + +#define ID3D12Device13_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) ) + + +#define ID3D12Device13_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) ) + +#define ID3D12Device13_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) ) + +#define ID3D12Device13_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) ) + + +#define ID3D12Device13_CreateSampler2(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) ) + +#if !defined(_WIN32) + +#define ID3D12Device13_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) ) +#else +#define ID3D12Device13_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device13_OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device13_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Device14_INTERFACE_DEFINED__ +#define __ID3D12Device14_INTERFACE_DEFINED__ + +/* interface ID3D12Device14 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Device14; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5f6e592d-d895-44c2-8e4a-88ad4926d323") + ID3D12Device14 : public ID3D12Device13 + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateRootSignatureFromSubobjectInLibrary( + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pLibraryBlob, + _In_ SIZE_T blobLengthInBytes, + _In_opt_ LPCWSTR subobjectName, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Device14Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Device14 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Device14 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Device14 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12Device14 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12Device14 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12Device14 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12Device14 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12Device, GetNodeCount) + UINT ( STDMETHODCALLTYPE *GetNodeCount )( + ID3D12Device14 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandQueue) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue )( + ID3D12Device14 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandAllocator) + HRESULT ( STDMETHODCALLTYPE *CreateCommandAllocator )( + ID3D12Device14 * This, + _In_ D3D12_COMMAND_LIST_TYPE type, + REFIID riid, + _COM_Outptr_ void **ppCommandAllocator); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateGraphicsPipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateGraphicsPipelineState )( + ID3D12Device14 * This, + _In_ const D3D12_GRAPHICS_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateComputePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreateComputePipelineState )( + ID3D12Device14 * This, + _In_ const D3D12_COMPUTE_PIPELINE_STATE_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandList) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList )( + ID3D12Device14 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ ID3D12CommandAllocator *pCommandAllocator, + _In_opt_ ID3D12PipelineState *pInitialState, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12Device14 * This, + D3D12_FEATURE Feature, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDescriptorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateDescriptorHeap )( + ID3D12Device14 * This, + _In_ const D3D12_DESCRIPTOR_HEAP_DESC *pDescriptorHeapDesc, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDescriptorHandleIncrementSize) + UINT ( STDMETHODCALLTYPE *GetDescriptorHandleIncrementSize )( + ID3D12Device14 * This, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRootSignature) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignature )( + ID3D12Device14 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pBlobWithRootSignature, + _In_ SIZE_T blobLengthInBytes, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateConstantBufferView) + void ( STDMETHODCALLTYPE *CreateConstantBufferView )( + ID3D12Device14 * This, + _In_opt_ const D3D12_CONSTANT_BUFFER_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateShaderResourceView) + void ( STDMETHODCALLTYPE *CreateShaderResourceView )( + ID3D12Device14 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_SHADER_RESOURCE_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateUnorderedAccessView )( + ID3D12Device14 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ ID3D12Resource *pCounterResource, + _In_opt_ const D3D12_UNORDERED_ACCESS_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateRenderTargetView) + void ( STDMETHODCALLTYPE *CreateRenderTargetView )( + ID3D12Device14 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_RENDER_TARGET_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateDepthStencilView) + void ( STDMETHODCALLTYPE *CreateDepthStencilView )( + ID3D12Device14 * This, + _In_opt_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DEPTH_STENCIL_VIEW_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSampler) + void ( STDMETHODCALLTYPE *CreateSampler )( + ID3D12Device14 * This, + _In_ const D3D12_SAMPLER_DESC *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptors) + void ( STDMETHODCALLTYPE *CopyDescriptors )( + ID3D12Device14 * This, + _In_ UINT NumDestDescriptorRanges, + _In_reads_(NumDestDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pDestDescriptorRangeStarts, + _In_reads_opt_(NumDestDescriptorRanges) const UINT *pDestDescriptorRangeSizes, + _In_ UINT NumSrcDescriptorRanges, + _In_reads_(NumSrcDescriptorRanges) const D3D12_CPU_DESCRIPTOR_HANDLE *pSrcDescriptorRangeStarts, + _In_reads_opt_(NumSrcDescriptorRanges) const UINT *pSrcDescriptorRangeSizes, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, CopyDescriptorsSimple) + void ( STDMETHODCALLTYPE *CopyDescriptorsSimple )( + ID3D12Device14 * This, + _In_ UINT NumDescriptors, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + _In_ D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceAllocationInfo) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device14 * This, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo )( + ID3D12Device14 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + _In_ UINT visibleMask, + _In_ UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, GetCustomHeapProperties) +#if !defined(_WIN32) + D3D12_HEAP_PROPERTIES ( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device14 * This, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#else + D3D12_HEAP_PROPERTIES *( STDMETHODCALLTYPE *GetCustomHeapProperties )( + ID3D12Device14 * This, + D3D12_HEAP_PROPERTIES * RetVal, + _In_ UINT nodeMask, + D3D12_HEAP_TYPE heapType); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommittedResource) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource )( + ID3D12Device14 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateHeap) + HRESULT ( STDMETHODCALLTYPE *CreateHeap )( + ID3D12Device14 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, CreatePlacedResource) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource )( + ID3D12Device14 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateReservedResource) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource )( + ID3D12Device14 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateSharedHandle) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHandle )( + ID3D12Device14 * This, + _In_ ID3D12DeviceChild *pObject, + _In_opt_ const SECURITY_ATTRIBUTES *pAttributes, + DWORD Access, + _In_opt_ LPCWSTR Name, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandle) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandle )( + ID3D12Device14 * This, + _In_ HANDLE NTHandle, + REFIID riid, + _COM_Outptr_opt_ void **ppvObj); + + DECLSPEC_XFGVIRT(ID3D12Device, OpenSharedHandleByName) + HRESULT ( STDMETHODCALLTYPE *OpenSharedHandleByName )( + ID3D12Device14 * This, + _In_ LPCWSTR Name, + DWORD Access, + /* [annotation][out] */ + _Out_ HANDLE *pNTHandle); + + DECLSPEC_XFGVIRT(ID3D12Device, MakeResident) + HRESULT ( STDMETHODCALLTYPE *MakeResident )( + ID3D12Device14 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, Evict) + HRESULT ( STDMETHODCALLTYPE *Evict )( + ID3D12Device14 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateFence) + HRESULT ( STDMETHODCALLTYPE *CreateFence )( + ID3D12Device14 * This, + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + REFIID riid, + _COM_Outptr_ void **ppFence); + + DECLSPEC_XFGVIRT(ID3D12Device, GetDeviceRemovedReason) + HRESULT ( STDMETHODCALLTYPE *GetDeviceRemovedReason )( + ID3D12Device14 * This); + + DECLSPEC_XFGVIRT(ID3D12Device, GetCopyableFootprints) + void ( STDMETHODCALLTYPE *GetCopyableFootprints )( + ID3D12Device14 * This, + _In_ const D3D12_RESOURCE_DESC *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateQueryHeap) + HRESULT ( STDMETHODCALLTYPE *CreateQueryHeap )( + ID3D12Device14 * This, + _In_ const D3D12_QUERY_HEAP_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device, SetStablePowerState) + HRESULT ( STDMETHODCALLTYPE *SetStablePowerState )( + ID3D12Device14 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Device, CreateCommandSignature) + HRESULT ( STDMETHODCALLTYPE *CreateCommandSignature )( + ID3D12Device14 * This, + _In_ const D3D12_COMMAND_SIGNATURE_DESC *pDesc, + _In_opt_ ID3D12RootSignature *pRootSignature, + REFIID riid, + _COM_Outptr_opt_ void **ppvCommandSignature); + + DECLSPEC_XFGVIRT(ID3D12Device, GetResourceTiling) + void ( STDMETHODCALLTYPE *GetResourceTiling )( + ID3D12Device14 * This, + _In_ ID3D12Resource *pTiledResource, + _Out_opt_ UINT *pNumTilesForEntireResource, + _Out_opt_ D3D12_PACKED_MIP_INFO *pPackedMipDesc, + _Out_opt_ D3D12_TILE_SHAPE *pStandardTileShapeForNonPackedMips, + _Inout_opt_ UINT *pNumSubresourceTilings, + _In_ UINT FirstSubresourceTilingToGet, + _Out_writes_(*pNumSubresourceTilings) D3D12_SUBRESOURCE_TILING *pSubresourceTilingsForNonPackedMips); + + DECLSPEC_XFGVIRT(ID3D12Device, GetAdapterLuid) +#if !defined(_WIN32) + LUID ( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device14 * This); + +#else + LUID *( STDMETHODCALLTYPE *GetAdapterLuid )( + ID3D12Device14 * This, + LUID * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device1, CreatePipelineLibrary) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineLibrary )( + ID3D12Device14 * This, + _In_reads_(BlobLength) const void *pLibraryBlob, + SIZE_T BlobLength, + REFIID riid, + _COM_Outptr_ void **ppPipelineLibrary); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetEventOnMultipleFenceCompletion) + HRESULT ( STDMETHODCALLTYPE *SetEventOnMultipleFenceCompletion )( + ID3D12Device14 * This, + _In_reads_(NumFences) ID3D12Fence *const *ppFences, + _In_reads_(NumFences) const UINT64 *pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent); + + DECLSPEC_XFGVIRT(ID3D12Device1, SetResidencyPriority) + HRESULT ( STDMETHODCALLTYPE *SetResidencyPriority )( + ID3D12Device14 * This, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_reads_(NumObjects) const D3D12_RESIDENCY_PRIORITY *pPriorities); + + DECLSPEC_XFGVIRT(ID3D12Device2, CreatePipelineState) + HRESULT ( STDMETHODCALLTYPE *CreatePipelineState )( + ID3D12Device14 * This, + const D3D12_PIPELINE_STATE_STREAM_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppPipelineState); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromAddress) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress )( + ID3D12Device14 * This, + _In_ const void *pAddress, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, OpenExistingHeapFromFileMapping) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromFileMapping )( + ID3D12Device14 * This, + _In_ HANDLE hFileMapping, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device3, EnqueueMakeResident) + HRESULT ( STDMETHODCALLTYPE *EnqueueMakeResident )( + ID3D12Device14 * This, + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + _In_reads_(NumObjects) ID3D12Pageable *const *ppObjects, + _In_ ID3D12Fence *pFenceToSignal, + UINT64 FenceValueToSignal); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommandList1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandList1 )( + ID3D12Device14 * This, + _In_ UINT nodeMask, + _In_ D3D12_COMMAND_LIST_TYPE type, + _In_ D3D12_COMMAND_LIST_FLAGS flags, + REFIID riid, + _COM_Outptr_ void **ppCommandList); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession )( + ID3D12Device14 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateCommittedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource1 )( + ID3D12Device14 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateHeap1 )( + ID3D12Device14 * This, + _In_ const D3D12_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device4, CreateReservedResource1) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource1 )( + ID3D12Device14 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device4, GetResourceAllocationInfo1) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device14 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo1 )( + ID3D12Device14 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateLifetimeTracker) + HRESULT ( STDMETHODCALLTYPE *CreateLifetimeTracker )( + ID3D12Device14 * This, + _In_ ID3D12LifetimeOwner *pOwner, + REFIID riid, + _COM_Outptr_ void **ppvTracker); + + DECLSPEC_XFGVIRT(ID3D12Device5, RemoveDevice) + void ( STDMETHODCALLTYPE *RemoveDevice )( + ID3D12Device14 * This); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommands) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommands )( + ID3D12Device14 * This, + _Inout_ UINT *pNumMetaCommands, + _Out_writes_opt_(*pNumMetaCommands) D3D12_META_COMMAND_DESC *pDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, EnumerateMetaCommandParameters) + HRESULT ( STDMETHODCALLTYPE *EnumerateMetaCommandParameters )( + ID3D12Device14 * This, + _In_ REFGUID CommandId, + _In_ D3D12_META_COMMAND_PARAMETER_STAGE Stage, + _Out_opt_ UINT *pTotalStructureSizeInBytes, + _Inout_ UINT *pParameterCount, + _Out_writes_opt_(*pParameterCount) D3D12_META_COMMAND_PARAMETER_DESC *pParameterDescs); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateMetaCommand) + HRESULT ( STDMETHODCALLTYPE *CreateMetaCommand )( + ID3D12Device14 * This, + _In_ REFGUID CommandId, + _In_ UINT NodeMask, + _In_reads_bytes_opt_(CreationParametersDataSizeInBytes) const void *pCreationParametersData, + _In_ SIZE_T CreationParametersDataSizeInBytes, + REFIID riid, + _COM_Outptr_ void **ppMetaCommand); + + DECLSPEC_XFGVIRT(ID3D12Device5, CreateStateObject) + HRESULT ( STDMETHODCALLTYPE *CreateStateObject )( + ID3D12Device14 * This, + const D3D12_STATE_OBJECT_DESC *pDesc, + REFIID riid, + _COM_Outptr_ void **ppStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device5, GetRaytracingAccelerationStructurePrebuildInfo) + void ( STDMETHODCALLTYPE *GetRaytracingAccelerationStructurePrebuildInfo )( + ID3D12Device14 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS *pDesc, + _Out_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo); + + DECLSPEC_XFGVIRT(ID3D12Device5, CheckDriverMatchingIdentifier) + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS ( STDMETHODCALLTYPE *CheckDriverMatchingIdentifier )( + ID3D12Device14 * This, + _In_ D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + _In_ const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER *pIdentifierToCheck); + + DECLSPEC_XFGVIRT(ID3D12Device6, SetBackgroundProcessingMode) + HRESULT ( STDMETHODCALLTYPE *SetBackgroundProcessingMode )( + ID3D12Device14 * This, + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + _In_opt_ HANDLE hEventToSignalUponCompletion, + _Out_opt_ BOOL *pbFurtherMeasurementsDesired); + + DECLSPEC_XFGVIRT(ID3D12Device7, AddToStateObject) + HRESULT ( STDMETHODCALLTYPE *AddToStateObject )( + ID3D12Device14 * This, + const D3D12_STATE_OBJECT_DESC *pAddition, + ID3D12StateObject *pStateObjectToGrowFrom, + REFIID riid, + _COM_Outptr_ void **ppNewStateObject); + + DECLSPEC_XFGVIRT(ID3D12Device7, CreateProtectedResourceSession1) + HRESULT ( STDMETHODCALLTYPE *CreateProtectedResourceSession1 )( + ID3D12Device14 * This, + _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppSession); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetResourceAllocationInfo2) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device14 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo2 )( + ID3D12Device14 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateCommittedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource2 )( + ID3D12Device14 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreatePlacedResource1) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource1 )( + ID3D12Device14 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_RESOURCE_STATES InitialState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device8, CreateSamplerFeedbackUnorderedAccessView) + void ( STDMETHODCALLTYPE *CreateSamplerFeedbackUnorderedAccessView )( + ID3D12Device14 * This, + _In_opt_ ID3D12Resource *pTargetedResource, + _In_opt_ ID3D12Resource *pFeedbackResource, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device8, GetCopyableFootprints1) + void ( STDMETHODCALLTYPE *GetCopyableFootprints1 )( + ID3D12Device14 * This, + _In_ const D3D12_RESOURCE_DESC1 *pResourceDesc, + _In_range_(0,D3D12_REQ_SUBRESOURCES) UINT FirstSubresource, + _In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource) UINT NumSubresources, + UINT64 BaseOffset, + _Out_writes_opt_(NumSubresources) D3D12_PLACED_SUBRESOURCE_FOOTPRINT *pLayouts, + _Out_writes_opt_(NumSubresources) UINT *pNumRows, + _Out_writes_opt_(NumSubresources) UINT64 *pRowSizeInBytes, + _Out_opt_ UINT64 *pTotalBytes); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateShaderCacheSession) + HRESULT ( STDMETHODCALLTYPE *CreateShaderCacheSession )( + ID3D12Device14 * This, + _In_ const D3D12_SHADER_CACHE_SESSION_DESC *pDesc, + REFIID riid, + _COM_Outptr_opt_ void **ppvSession); + + DECLSPEC_XFGVIRT(ID3D12Device9, ShaderCacheControl) + HRESULT ( STDMETHODCALLTYPE *ShaderCacheControl )( + ID3D12Device14 * This, + D3D12_SHADER_CACHE_KIND_FLAGS Kinds, + D3D12_SHADER_CACHE_CONTROL_FLAGS Control); + + DECLSPEC_XFGVIRT(ID3D12Device9, CreateCommandQueue1) + HRESULT ( STDMETHODCALLTYPE *CreateCommandQueue1 )( + ID3D12Device14 * This, + _In_ const D3D12_COMMAND_QUEUE_DESC *pDesc, + REFIID CreatorID, + REFIID riid, + _COM_Outptr_ void **ppCommandQueue); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreateCommittedResource3) + HRESULT ( STDMETHODCALLTYPE *CreateCommittedResource3 )( + ID3D12Device14 * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riidResource, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreatePlacedResource2) + HRESULT ( STDMETHODCALLTYPE *CreatePlacedResource2 )( + ID3D12Device14 * This, + _In_ ID3D12Heap *pHeap, + UINT64 HeapOffset, + _In_ const D3D12_RESOURCE_DESC1 *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device10, CreateReservedResource2) + HRESULT ( STDMETHODCALLTYPE *CreateReservedResource2 )( + ID3D12Device14 * This, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + _In_opt_count_(NumCastableFormats) const DXGI_FORMAT *pCastableFormats, + REFIID riid, + _COM_Outptr_opt_ void **ppvResource); + + DECLSPEC_XFGVIRT(ID3D12Device11, CreateSampler2) + void ( STDMETHODCALLTYPE *CreateSampler2 )( + ID3D12Device14 * This, + _In_ const D3D12_SAMPLER_DESC2 *pDesc, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + DECLSPEC_XFGVIRT(ID3D12Device12, GetResourceAllocationInfo3) +#if !defined(_WIN32) + D3D12_RESOURCE_ALLOCATION_INFO ( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )( + ID3D12Device14 * This, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats, + _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#else + D3D12_RESOURCE_ALLOCATION_INFO *( STDMETHODCALLTYPE *GetResourceAllocationInfo3 )( + ID3D12Device14 * This, + D3D12_RESOURCE_ALLOCATION_INFO * RetVal, + UINT visibleMask, + UINT numResourceDescs, + _In_reads_(numResourceDescs) const D3D12_RESOURCE_DESC1 *pResourceDescs, + _In_opt_count_(numResourceDescs) const UINT32 *pNumCastableFormats, + _In_opt_count_(numResourceDescs) const DXGI_FORMAT *const *ppCastableFormats, + _Out_writes_opt_(numResourceDescs) D3D12_RESOURCE_ALLOCATION_INFO1 *pResourceAllocationInfo1); + +#endif + + DECLSPEC_XFGVIRT(ID3D12Device13, OpenExistingHeapFromAddress1) + HRESULT ( STDMETHODCALLTYPE *OpenExistingHeapFromAddress1 )( + ID3D12Device14 * This, + _In_ const void *pAddress, + SIZE_T size, + REFIID riid, + _COM_Outptr_ void **ppvHeap); + + DECLSPEC_XFGVIRT(ID3D12Device14, CreateRootSignatureFromSubobjectInLibrary) + HRESULT ( STDMETHODCALLTYPE *CreateRootSignatureFromSubobjectInLibrary )( + ID3D12Device14 * This, + _In_ UINT nodeMask, + _In_reads_(blobLengthInBytes) const void *pLibraryBlob, + _In_ SIZE_T blobLengthInBytes, + _In_opt_ LPCWSTR subobjectName, + REFIID riid, + _COM_Outptr_ void **ppvRootSignature); + + END_INTERFACE + } ID3D12Device14Vtbl; + + interface ID3D12Device14 + { + CONST_VTBL struct ID3D12Device14Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Device14_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Device14_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Device14_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Device14_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12Device14_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12Device14_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12Device14_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12Device14_GetNodeCount(This) \ + ( (This)->lpVtbl -> GetNodeCount(This) ) + +#define ID3D12Device14_CreateCommandQueue(This,pDesc,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue(This,pDesc,riid,ppCommandQueue) ) + +#define ID3D12Device14_CreateCommandAllocator(This,type,riid,ppCommandAllocator) \ + ( (This)->lpVtbl -> CreateCommandAllocator(This,type,riid,ppCommandAllocator) ) + +#define ID3D12Device14_CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateGraphicsPipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device14_CreateComputePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreateComputePipelineState(This,pDesc,riid,ppPipelineState) ) + +#define ID3D12Device14_CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList(This,nodeMask,type,pCommandAllocator,pInitialState,riid,ppCommandList) ) + +#define ID3D12Device14_CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,Feature,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12Device14_CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateDescriptorHeap(This,pDescriptorHeapDesc,riid,ppvHeap) ) + +#define ID3D12Device14_GetDescriptorHandleIncrementSize(This,DescriptorHeapType) \ + ( (This)->lpVtbl -> GetDescriptorHandleIncrementSize(This,DescriptorHeapType) ) + +#define ID3D12Device14_CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignature(This,nodeMask,pBlobWithRootSignature,blobLengthInBytes,riid,ppvRootSignature) ) + +#define ID3D12Device14_CreateConstantBufferView(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateConstantBufferView(This,pDesc,DestDescriptor) ) + +#define ID3D12Device14_CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateShaderResourceView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device14_CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateUnorderedAccessView(This,pResource,pCounterResource,pDesc,DestDescriptor) ) + +#define ID3D12Device14_CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateRenderTargetView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device14_CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateDepthStencilView(This,pResource,pDesc,DestDescriptor) ) + +#define ID3D12Device14_CreateSampler(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler(This,pDesc,DestDescriptor) ) + +#define ID3D12Device14_CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptors(This,NumDestDescriptorRanges,pDestDescriptorRangeStarts,pDestDescriptorRangeSizes,NumSrcDescriptorRanges,pSrcDescriptorRangeStarts,pSrcDescriptorRangeSizes,DescriptorHeapsType) ) + +#define ID3D12Device14_CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) \ + ( (This)->lpVtbl -> CopyDescriptorsSimple(This,NumDescriptors,DestDescriptorRangeStart,SrcDescriptorRangeStart,DescriptorHeapsType) ) +#if !defined(_WIN32) + +#define ID3D12Device14_GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,visibleMask,numResourceDescs,pResourceDescs) ) +#else +#define ID3D12Device14_GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo(This,RetVal,visibleMask,numResourceDescs,pResourceDescs) ) +#endif +#if !defined(_WIN32) + +#define ID3D12Device14_GetCustomHeapProperties(This,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,nodeMask,heapType) ) +#else +#define ID3D12Device14_GetCustomHeapProperties(This,RetVal,nodeMask,heapType) \ + ( (This)->lpVtbl -> GetCustomHeapProperties(This,RetVal,nodeMask,heapType) ) +#endif + +#define ID3D12Device14_CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,riidResource,ppvResource) ) + +#define ID3D12Device14_CreateHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device14_CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device14_CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource(This,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device14_CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) \ + ( (This)->lpVtbl -> CreateSharedHandle(This,pObject,pAttributes,Access,Name,pHandle) ) + +#define ID3D12Device14_OpenSharedHandle(This,NTHandle,riid,ppvObj) \ + ( (This)->lpVtbl -> OpenSharedHandle(This,NTHandle,riid,ppvObj) ) + +#define ID3D12Device14_OpenSharedHandleByName(This,Name,Access,pNTHandle) \ + ( (This)->lpVtbl -> OpenSharedHandleByName(This,Name,Access,pNTHandle) ) + +#define ID3D12Device14_MakeResident(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> MakeResident(This,NumObjects,ppObjects) ) + +#define ID3D12Device14_Evict(This,NumObjects,ppObjects) \ + ( (This)->lpVtbl -> Evict(This,NumObjects,ppObjects) ) + +#define ID3D12Device14_CreateFence(This,InitialValue,Flags,riid,ppFence) \ + ( (This)->lpVtbl -> CreateFence(This,InitialValue,Flags,riid,ppFence) ) + +#define ID3D12Device14_GetDeviceRemovedReason(This) \ + ( (This)->lpVtbl -> GetDeviceRemovedReason(This) ) + +#define ID3D12Device14_GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + +#define ID3D12Device14_CreateQueryHeap(This,pDesc,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateQueryHeap(This,pDesc,riid,ppvHeap) ) + +#define ID3D12Device14_SetStablePowerState(This,Enable) \ + ( (This)->lpVtbl -> SetStablePowerState(This,Enable) ) + +#define ID3D12Device14_CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) \ + ( (This)->lpVtbl -> CreateCommandSignature(This,pDesc,pRootSignature,riid,ppvCommandSignature) ) + +#define ID3D12Device14_GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) \ + ( (This)->lpVtbl -> GetResourceTiling(This,pTiledResource,pNumTilesForEntireResource,pPackedMipDesc,pStandardTileShapeForNonPackedMips,pNumSubresourceTilings,FirstSubresourceTilingToGet,pSubresourceTilingsForNonPackedMips) ) +#if !defined(_WIN32) + +#define ID3D12Device14_GetAdapterLuid(This) \ + ( (This)->lpVtbl -> GetAdapterLuid(This) ) +#else +#define ID3D12Device14_GetAdapterLuid(This,RetVal) \ + ( (This)->lpVtbl -> GetAdapterLuid(This,RetVal) ) +#endif + + +#define ID3D12Device14_CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) \ + ( (This)->lpVtbl -> CreatePipelineLibrary(This,pLibraryBlob,BlobLength,riid,ppPipelineLibrary) ) + +#define ID3D12Device14_SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) \ + ( (This)->lpVtbl -> SetEventOnMultipleFenceCompletion(This,ppFences,pFenceValues,NumFences,Flags,hEvent) ) + +#define ID3D12Device14_SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) \ + ( (This)->lpVtbl -> SetResidencyPriority(This,NumObjects,ppObjects,pPriorities) ) + + +#define ID3D12Device14_CreatePipelineState(This,pDesc,riid,ppPipelineState) \ + ( (This)->lpVtbl -> CreatePipelineState(This,pDesc,riid,ppPipelineState) ) + + +#define ID3D12Device14_OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress(This,pAddress,riid,ppvHeap) ) + +#define ID3D12Device14_OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromFileMapping(This,hFileMapping,riid,ppvHeap) ) + +#define ID3D12Device14_EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) \ + ( (This)->lpVtbl -> EnqueueMakeResident(This,Flags,NumObjects,ppObjects,pFenceToSignal,FenceValueToSignal) ) + + +#define ID3D12Device14_CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) \ + ( (This)->lpVtbl -> CreateCommandList1(This,nodeMask,type,flags,riid,ppCommandList) ) + +#define ID3D12Device14_CreateProtectedResourceSession(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession(This,pDesc,riid,ppSession) ) + +#define ID3D12Device14_CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource1(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device14_CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) \ + ( (This)->lpVtbl -> CreateHeap1(This,pDesc,pProtectedSession,riid,ppvHeap) ) + +#define ID3D12Device14_CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource1(This,pDesc,InitialState,pOptimizedClearValue,pProtectedSession,riid,ppvResource) ) +#if !defined(_WIN32) + +#define ID3D12Device14_GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device14_GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo1(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device14_CreateLifetimeTracker(This,pOwner,riid,ppvTracker) \ + ( (This)->lpVtbl -> CreateLifetimeTracker(This,pOwner,riid,ppvTracker) ) + +#define ID3D12Device14_RemoveDevice(This) \ + ( (This)->lpVtbl -> RemoveDevice(This) ) + +#define ID3D12Device14_EnumerateMetaCommands(This,pNumMetaCommands,pDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommands(This,pNumMetaCommands,pDescs) ) + +#define ID3D12Device14_EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) \ + ( (This)->lpVtbl -> EnumerateMetaCommandParameters(This,CommandId,Stage,pTotalStructureSizeInBytes,pParameterCount,pParameterDescs) ) + +#define ID3D12Device14_CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) \ + ( (This)->lpVtbl -> CreateMetaCommand(This,CommandId,NodeMask,pCreationParametersData,CreationParametersDataSizeInBytes,riid,ppMetaCommand) ) + +#define ID3D12Device14_CreateStateObject(This,pDesc,riid,ppStateObject) \ + ( (This)->lpVtbl -> CreateStateObject(This,pDesc,riid,ppStateObject) ) + +#define ID3D12Device14_GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) \ + ( (This)->lpVtbl -> GetRaytracingAccelerationStructurePrebuildInfo(This,pDesc,pInfo) ) + +#define ID3D12Device14_CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) \ + ( (This)->lpVtbl -> CheckDriverMatchingIdentifier(This,SerializedDataType,pIdentifierToCheck) ) + + +#define ID3D12Device14_SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) \ + ( (This)->lpVtbl -> SetBackgroundProcessingMode(This,Mode,MeasurementsAction,hEventToSignalUponCompletion,pbFurtherMeasurementsDesired) ) + + +#define ID3D12Device14_AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) \ + ( (This)->lpVtbl -> AddToStateObject(This,pAddition,pStateObjectToGrowFrom,riid,ppNewStateObject) ) + +#define ID3D12Device14_CreateProtectedResourceSession1(This,pDesc,riid,ppSession) \ + ( (This)->lpVtbl -> CreateProtectedResourceSession1(This,pDesc,riid,ppSession) ) + +#if !defined(_WIN32) + +#define ID3D12Device14_GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#else +#define ID3D12Device14_GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo2(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pResourceAllocationInfo1) ) +#endif + +#define ID3D12Device14_CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource2(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pProtectedSession,riidResource,ppvResource) ) + +#define ID3D12Device14_CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource1(This,pHeap,HeapOffset,pDesc,InitialState,pOptimizedClearValue,riid,ppvResource) ) + +#define ID3D12Device14_CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSamplerFeedbackUnorderedAccessView(This,pTargetedResource,pFeedbackResource,DestDescriptor) ) + +#define ID3D12Device14_GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) \ + ( (This)->lpVtbl -> GetCopyableFootprints1(This,pResourceDesc,FirstSubresource,NumSubresources,BaseOffset,pLayouts,pNumRows,pRowSizeInBytes,pTotalBytes) ) + + +#define ID3D12Device14_CreateShaderCacheSession(This,pDesc,riid,ppvSession) \ + ( (This)->lpVtbl -> CreateShaderCacheSession(This,pDesc,riid,ppvSession) ) + +#define ID3D12Device14_ShaderCacheControl(This,Kinds,Control) \ + ( (This)->lpVtbl -> ShaderCacheControl(This,Kinds,Control) ) + +#define ID3D12Device14_CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) \ + ( (This)->lpVtbl -> CreateCommandQueue1(This,pDesc,CreatorID,riid,ppCommandQueue) ) + + +#define ID3D12Device14_CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) \ + ( (This)->lpVtbl -> CreateCommittedResource3(This,pHeapProperties,HeapFlags,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riidResource,ppvResource) ) + +#define ID3D12Device14_CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) \ + ( (This)->lpVtbl -> CreatePlacedResource2(This,pHeap,HeapOffset,pDesc,InitialLayout,pOptimizedClearValue,NumCastableFormats,pCastableFormats,riid,ppvResource) ) + +#define ID3D12Device14_CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) \ + ( (This)->lpVtbl -> CreateReservedResource2(This,pDesc,InitialLayout,pOptimizedClearValue,pProtectedSession,NumCastableFormats,pCastableFormats,riid,ppvResource) ) + + +#define ID3D12Device14_CreateSampler2(This,pDesc,DestDescriptor) \ + ( (This)->lpVtbl -> CreateSampler2(This,pDesc,DestDescriptor) ) + +#if !defined(_WIN32) + +#define ID3D12Device14_GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) ) +#else +#define ID3D12Device14_GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) \ + ( (This)->lpVtbl -> GetResourceAllocationInfo3(This,RetVal,visibleMask,numResourceDescs,pResourceDescs,pNumCastableFormats,ppCastableFormats,pResourceAllocationInfo1) ) +#endif + + +#define ID3D12Device14_OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) \ + ( (This)->lpVtbl -> OpenExistingHeapFromAddress1(This,pAddress,size,riid,ppvHeap) ) + + +#define ID3D12Device14_CreateRootSignatureFromSubobjectInLibrary(This,nodeMask,pLibraryBlob,blobLengthInBytes,subobjectName,riid,ppvRootSignature) \ + ( (This)->lpVtbl -> CreateRootSignatureFromSubobjectInLibrary(This,nodeMask,pLibraryBlob,blobLengthInBytes,subobjectName,riid,ppvRootSignature) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Device14_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0060 */ +/* [local] */ + +typedef union D3D12_VERSION_NUMBER + { + UINT64 Version; + UINT16 VersionParts[ 4 ]; + } D3D12_VERSION_NUMBER; + +typedef struct D3D12_FEATURE_DATA_SHADERCACHE_ABI_SUPPORT + { + WCHAR szAdapterFamily[ 128 ]; + UINT64 MinimumABISupportVersion; + UINT64 MaximumABISupportVersion; + D3D12_VERSION_NUMBER CompilerVersion; + D3D12_VERSION_NUMBER ApplicationProfileVersion; + } D3D12_FEATURE_DATA_SHADERCACHE_ABI_SUPPORT; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0060_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0060_v0_0_s_ifspec; + +#ifndef __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__ +#define __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__ + +/* interface ID3D12VirtualizationGuestDevice */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VirtualizationGuestDevice; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bc66d368-7373-4943-8757-fc87dc79e476") + ID3D12VirtualizationGuestDevice : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ShareWithHost( + _In_ ID3D12DeviceChild *pObject, + _Out_ HANDLE *pHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateFenceFd( + _In_ ID3D12Fence *pFence, + UINT64 FenceValue, + _Out_ int *pFenceFd) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VirtualizationGuestDeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VirtualizationGuestDevice * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VirtualizationGuestDevice * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VirtualizationGuestDevice * This); + + DECLSPEC_XFGVIRT(ID3D12VirtualizationGuestDevice, ShareWithHost) + HRESULT ( STDMETHODCALLTYPE *ShareWithHost )( + ID3D12VirtualizationGuestDevice * This, + _In_ ID3D12DeviceChild *pObject, + _Out_ HANDLE *pHandle); + + DECLSPEC_XFGVIRT(ID3D12VirtualizationGuestDevice, CreateFenceFd) + HRESULT ( STDMETHODCALLTYPE *CreateFenceFd )( + ID3D12VirtualizationGuestDevice * This, + _In_ ID3D12Fence *pFence, + UINT64 FenceValue, + _Out_ int *pFenceFd); + + END_INTERFACE + } ID3D12VirtualizationGuestDeviceVtbl; + + interface ID3D12VirtualizationGuestDevice + { + CONST_VTBL struct ID3D12VirtualizationGuestDeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VirtualizationGuestDevice_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VirtualizationGuestDevice_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VirtualizationGuestDevice_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VirtualizationGuestDevice_ShareWithHost(This,pObject,pHandle) \ + ( (This)->lpVtbl -> ShareWithHost(This,pObject,pHandle) ) + +#define ID3D12VirtualizationGuestDevice_CreateFenceFd(This,pFence,FenceValue,pFenceFd) \ + ( (This)->lpVtbl -> CreateFenceFd(This,pFence,FenceValue,pFenceFd) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VirtualizationGuestDevice_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Tools_INTERFACE_DEFINED__ +#define __ID3D12Tools_INTERFACE_DEFINED__ + +/* interface ID3D12Tools */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Tools; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7071e1f0-e84b-4b33-974f-12fa49de65c5") + ID3D12Tools : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE EnableShaderInstrumentation( + BOOL bEnable) = 0; + + virtual BOOL STDMETHODCALLTYPE ShaderInstrumentationEnabled( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12ToolsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Tools * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Tools * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Tools * This); + + DECLSPEC_XFGVIRT(ID3D12Tools, EnableShaderInstrumentation) + void ( STDMETHODCALLTYPE *EnableShaderInstrumentation )( + ID3D12Tools * This, + BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D12Tools, ShaderInstrumentationEnabled) + BOOL ( STDMETHODCALLTYPE *ShaderInstrumentationEnabled )( + ID3D12Tools * This); + + END_INTERFACE + } ID3D12ToolsVtbl; + + interface ID3D12Tools + { + CONST_VTBL struct ID3D12ToolsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Tools_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Tools_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Tools_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Tools_EnableShaderInstrumentation(This,bEnable) \ + ( (This)->lpVtbl -> EnableShaderInstrumentation(This,bEnable) ) + +#define ID3D12Tools_ShaderInstrumentationEnabled(This) \ + ( (This)->lpVtbl -> ShaderInstrumentationEnabled(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Tools_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Tools1_INTERFACE_DEFINED__ +#define __ID3D12Tools1_INTERFACE_DEFINED__ + +/* interface ID3D12Tools1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Tools1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e4fbc019-dd3c-43e1-8f32-7f649575f0a0") + ID3D12Tools1 : public ID3D12Tools + { + public: + virtual HRESULT STDMETHODCALLTYPE ReserveGPUVARangesAtCreate( + _In_reads_(uiNumRanges) D3D12_GPU_VIRTUAL_ADDRESS_RANGE *pRanges, + _In_ UINT uiNumRanges) = 0; + + virtual void STDMETHODCALLTYPE ClearReservedGPUVARangesList( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Tools1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Tools1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Tools1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Tools1 * This); + + DECLSPEC_XFGVIRT(ID3D12Tools, EnableShaderInstrumentation) + void ( STDMETHODCALLTYPE *EnableShaderInstrumentation )( + ID3D12Tools1 * This, + BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D12Tools, ShaderInstrumentationEnabled) + BOOL ( STDMETHODCALLTYPE *ShaderInstrumentationEnabled )( + ID3D12Tools1 * This); + + DECLSPEC_XFGVIRT(ID3D12Tools1, ReserveGPUVARangesAtCreate) + HRESULT ( STDMETHODCALLTYPE *ReserveGPUVARangesAtCreate )( + ID3D12Tools1 * This, + _In_reads_(uiNumRanges) D3D12_GPU_VIRTUAL_ADDRESS_RANGE *pRanges, + _In_ UINT uiNumRanges); + + DECLSPEC_XFGVIRT(ID3D12Tools1, ClearReservedGPUVARangesList) + void ( STDMETHODCALLTYPE *ClearReservedGPUVARangesList )( + ID3D12Tools1 * This); + + END_INTERFACE + } ID3D12Tools1Vtbl; + + interface ID3D12Tools1 + { + CONST_VTBL struct ID3D12Tools1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Tools1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Tools1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Tools1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Tools1_EnableShaderInstrumentation(This,bEnable) \ + ( (This)->lpVtbl -> EnableShaderInstrumentation(This,bEnable) ) + +#define ID3D12Tools1_ShaderInstrumentationEnabled(This) \ + ( (This)->lpVtbl -> ShaderInstrumentationEnabled(This) ) + + +#define ID3D12Tools1_ReserveGPUVARangesAtCreate(This,pRanges,uiNumRanges) \ + ( (This)->lpVtbl -> ReserveGPUVARangesAtCreate(This,pRanges,uiNumRanges) ) + +#define ID3D12Tools1_ClearReservedGPUVARangesList(This) \ + ( (This)->lpVtbl -> ClearReservedGPUVARangesList(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Tools1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Tools2_INTERFACE_DEFINED__ +#define __ID3D12Tools2_INTERFACE_DEFINED__ + +/* interface ID3D12Tools2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Tools2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("01d393c5-c9b0-42a1-958c-c26b02d4d097") + ID3D12Tools2 : public ID3D12Tools1 + { + public: + virtual HRESULT STDMETHODCALLTYPE SetApplicationSpecificDriverState( + _In_ IUnknown *pAdapter, + _In_opt_ ID3DBlob *pBlob) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Tools2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Tools2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Tools2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Tools2 * This); + + DECLSPEC_XFGVIRT(ID3D12Tools, EnableShaderInstrumentation) + void ( STDMETHODCALLTYPE *EnableShaderInstrumentation )( + ID3D12Tools2 * This, + BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D12Tools, ShaderInstrumentationEnabled) + BOOL ( STDMETHODCALLTYPE *ShaderInstrumentationEnabled )( + ID3D12Tools2 * This); + + DECLSPEC_XFGVIRT(ID3D12Tools1, ReserveGPUVARangesAtCreate) + HRESULT ( STDMETHODCALLTYPE *ReserveGPUVARangesAtCreate )( + ID3D12Tools2 * This, + _In_reads_(uiNumRanges) D3D12_GPU_VIRTUAL_ADDRESS_RANGE *pRanges, + _In_ UINT uiNumRanges); + + DECLSPEC_XFGVIRT(ID3D12Tools1, ClearReservedGPUVARangesList) + void ( STDMETHODCALLTYPE *ClearReservedGPUVARangesList )( + ID3D12Tools2 * This); + + DECLSPEC_XFGVIRT(ID3D12Tools2, SetApplicationSpecificDriverState) + HRESULT ( STDMETHODCALLTYPE *SetApplicationSpecificDriverState )( + ID3D12Tools2 * This, + _In_ IUnknown *pAdapter, + _In_opt_ ID3DBlob *pBlob); + + END_INTERFACE + } ID3D12Tools2Vtbl; + + interface ID3D12Tools2 + { + CONST_VTBL struct ID3D12Tools2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Tools2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Tools2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Tools2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Tools2_EnableShaderInstrumentation(This,bEnable) \ + ( (This)->lpVtbl -> EnableShaderInstrumentation(This,bEnable) ) + +#define ID3D12Tools2_ShaderInstrumentationEnabled(This) \ + ( (This)->lpVtbl -> ShaderInstrumentationEnabled(This) ) + + +#define ID3D12Tools2_ReserveGPUVARangesAtCreate(This,pRanges,uiNumRanges) \ + ( (This)->lpVtbl -> ReserveGPUVARangesAtCreate(This,pRanges,uiNumRanges) ) + +#define ID3D12Tools2_ClearReservedGPUVARangesList(This) \ + ( (This)->lpVtbl -> ClearReservedGPUVARangesList(This) ) + + +#define ID3D12Tools2_SetApplicationSpecificDriverState(This,pAdapter,pBlob) \ + ( (This)->lpVtbl -> SetApplicationSpecificDriverState(This,pAdapter,pBlob) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Tools2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12PageableTools_INTERFACE_DEFINED__ +#define __ID3D12PageableTools_INTERFACE_DEFINED__ + +/* interface ID3D12PageableTools */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12PageableTools; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8f1359db-d8d1-42f9-b5cf-79f4cbad0d3d") + ID3D12PageableTools : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAllocation( + _Inout_ D3D12_GPU_VIRTUAL_ADDRESS_RANGE *pAllocation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12PageableToolsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12PageableTools * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12PageableTools * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12PageableTools * This); + + DECLSPEC_XFGVIRT(ID3D12PageableTools, GetAllocation) + HRESULT ( STDMETHODCALLTYPE *GetAllocation )( + ID3D12PageableTools * This, + _Inout_ D3D12_GPU_VIRTUAL_ADDRESS_RANGE *pAllocation); + + END_INTERFACE + } ID3D12PageableToolsVtbl; + + interface ID3D12PageableTools + { + CONST_VTBL struct ID3D12PageableToolsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12PageableTools_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12PageableTools_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12PageableTools_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12PageableTools_GetAllocation(This,pAllocation) \ + ( (This)->lpVtbl -> GetAllocation(This,pAllocation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12PageableTools_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DeviceTools_INTERFACE_DEFINED__ +#define __ID3D12DeviceTools_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceTools */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceTools; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2ea68e9c-19c3-4e47-a109-6cdadff0aca9") + ID3D12DeviceTools : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE SetNextAllocationAddress( + _In_ D3D12_GPU_VIRTUAL_ADDRESS nextAllocationVirtualAddress) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceToolsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceTools * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceTools * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceTools * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceTools, SetNextAllocationAddress) + void ( STDMETHODCALLTYPE *SetNextAllocationAddress )( + ID3D12DeviceTools * This, + _In_ D3D12_GPU_VIRTUAL_ADDRESS nextAllocationVirtualAddress); + + END_INTERFACE + } ID3D12DeviceToolsVtbl; + + interface ID3D12DeviceTools + { + CONST_VTBL struct ID3D12DeviceToolsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceTools_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceTools_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceTools_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DeviceTools_SetNextAllocationAddress(This,nextAllocationVirtualAddress) \ + ( (This)->lpVtbl -> SetNextAllocationAddress(This,nextAllocationVirtualAddress) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceTools_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0066 */ +/* [local] */ + +typedef +enum D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS + { + D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_UNKNOWN = 1, + D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_USED = 2, + D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_IGNORED = 3, + D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_NOT_SPECIFIED = 4 + } D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0066_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0066_v0_0_s_ifspec; + +#ifndef __ID3D12DeviceTools1_INTERFACE_DEFINED__ +#define __ID3D12DeviceTools1_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceTools1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceTools1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e30e9fc7-e641-4d6e-8a81-9dd9206ec47a") + ID3D12DeviceTools1 : public ID3D12DeviceTools + { + public: + virtual HRESULT STDMETHODCALLTYPE GetApplicationSpecificDriverState( + _COM_Outptr_ ID3DBlob **ppBlob) = 0; + + virtual D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS STDMETHODCALLTYPE GetApplicationSpecificDriverBlobStatus( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceTools1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceTools1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceTools1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceTools1 * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceTools, SetNextAllocationAddress) + void ( STDMETHODCALLTYPE *SetNextAllocationAddress )( + ID3D12DeviceTools1 * This, + _In_ D3D12_GPU_VIRTUAL_ADDRESS nextAllocationVirtualAddress); + + DECLSPEC_XFGVIRT(ID3D12DeviceTools1, GetApplicationSpecificDriverState) + HRESULT ( STDMETHODCALLTYPE *GetApplicationSpecificDriverState )( + ID3D12DeviceTools1 * This, + _COM_Outptr_ ID3DBlob **ppBlob); + + DECLSPEC_XFGVIRT(ID3D12DeviceTools1, GetApplicationSpecificDriverBlobStatus) + D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS ( STDMETHODCALLTYPE *GetApplicationSpecificDriverBlobStatus )( + ID3D12DeviceTools1 * This); + + END_INTERFACE + } ID3D12DeviceTools1Vtbl; + + interface ID3D12DeviceTools1 + { + CONST_VTBL struct ID3D12DeviceTools1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceTools1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceTools1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceTools1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DeviceTools1_SetNextAllocationAddress(This,nextAllocationVirtualAddress) \ + ( (This)->lpVtbl -> SetNextAllocationAddress(This,nextAllocationVirtualAddress) ) + + +#define ID3D12DeviceTools1_GetApplicationSpecificDriverState(This,ppBlob) \ + ( (This)->lpVtbl -> GetApplicationSpecificDriverState(This,ppBlob) ) + +#define ID3D12DeviceTools1_GetApplicationSpecificDriverBlobStatus(This) \ + ( (This)->lpVtbl -> GetApplicationSpecificDriverBlobStatus(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceTools1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0067 */ +/* [local] */ + +typedef struct D3D12_SUBRESOURCE_DATA + { + const void *pData; + LONG_PTR RowPitch; + LONG_PTR SlicePitch; + } D3D12_SUBRESOURCE_DATA; + +typedef struct D3D12_MEMCPY_DEST + { + void *pData; + SIZE_T RowPitch; + SIZE_T SlicePitch; + } D3D12_MEMCPY_DEST; + +#if !defined( D3D12_IGNORE_SDK_LAYERS ) +#include "d3d12sdklayers.h" +#endif + +/////////////////////////////////////////////////////////////////////////// +// D3D12CreateDevice +// ------------------ +// +// pAdapter +// If NULL, D3D12CreateDevice will choose the primary adapter. +// If non-NULL, D3D12CreateDevice will use the provided adapter. +// MinimumFeatureLevel +// The minimum feature level required for successful device creation. +// riid +// The interface IID of the device to be returned. Expected: ID3D12Device. +// ppDevice +// Pointer to returned interface. May be NULL. +// +// Return Values +// Any of those documented for +// CreateDXGIFactory1 +// IDXGIFactory::EnumAdapters +// D3D12CreateDevice +// +/////////////////////////////////////////////////////////////////////////// +typedef HRESULT (WINAPI* PFN_D3D12_CREATE_DEVICE)( _In_opt_ IUnknown*, + D3D_FEATURE_LEVEL, + _In_ REFIID, _COM_Outptr_opt_ void** ); + +HRESULT WINAPI D3D12CreateDevice( + _In_opt_ IUnknown* pAdapter, + D3D_FEATURE_LEVEL MinimumFeatureLevel, + _In_ REFIID riid, // Expected: ID3D12Device + _COM_Outptr_opt_ void** ppDevice ); + + +typedef HRESULT (WINAPI* PFN_D3D12_GET_DEBUG_INTERFACE)( _In_ REFIID, _COM_Outptr_opt_ void** ); + +HRESULT WINAPI D3D12GetDebugInterface( _In_ REFIID riid, _COM_Outptr_opt_ void** ppvDebug ); + +// -------------------------------------------------------------------------------------------------------------------------------- +// D3D12EnableExperimentalFeatures +// +// Pass in a list of feature GUIDs to be enabled together. +// +// If a particular feature requires some configuration information on enablement, it will have +// a configuration struct that can be passed alongside the GUID. +// +// Some features might use an interface IID as the GUID. For these, once the feature is enabled via +// D3D12EnableExperimentalFeatures, D3D12GetDebugInterface can then be called with the IID to retrieve the interface +// for manipulating the feature. This allows for control that might not cleanly be expressed by just +// the configuration struct that D3D12EnableExperimentalFeatures provides. +// +// If this method is called and a change to existing feature enablement is made, +// all current D3D12 devices are set to DEVICE_REMOVED state, since under the covers there is really only one +// singleton device for a process. Removing the devices when configuration changes prevents +// mismatched expectations of how a device is supposed to work after it has been created from the app's point of view. +// +// The call returns E_NOINTERFACE if an unrecognized feature is passed in or Windows Developer mode is not on. +// The call returns E_INVALIDARG if the configuration of a feature is incorrect, the set of features passed +// in are known to be incompatible with each other, or other errors. +// Returns S_OK otherwise. +// +// -------------------------------------------------------------------------------------------------------------------------------- +HRESULT WINAPI D3D12EnableExperimentalFeatures( + UINT NumFeatures, + _In_count_(NumFeatures) const IID* pIIDs, + _In_opt_count_(NumFeatures) void* pConfigurationStructs, + _In_opt_count_(NumFeatures) UINT* pConfigurationStructSizes); + +// -------------------------------------------------------------------------------------------------------------------------------- +// Experimental Feature: D3D12ExperimentalShaderModels +// +// Use with D3D12EnableExperimentalFeatures to enable experimental shader model support, +// meaning shader models that haven't been finalized for use in retail. +// +// Enabling D3D12ExperimentalShaderModels needs no configuration struct, pass NULL in the pConfigurationStructs array. +// +// -------------------------------------------------------------------------------------------------------------------------------- +static const UUID D3D12ExperimentalShaderModels = { /* 76f5573e-f13a-40f5-b297-81ce9e18933f */ + 0x76f5573e, + 0xf13a, + 0x40f5, + { 0xb2, 0x97, 0x81, 0xce, 0x9e, 0x18, 0x93, 0x3f } +}; +// -------------------------------------------------------------------------------------------------------------------------------- +// Experimental Feature: D3D12TiledResourceTier4 +// +// Use with D3D12EnableExperimentalFeatures to enable tiled resource tier 4 support, +// meaning texture tile data-inheritance is allowed. +// +// Enabling D3D12TiledResourceTier4 needs no configuration struct, pass NULL in the pConfigurationStructs array. +// +// -------------------------------------------------------------------------------------------------------------------------------- +static const UUID D3D12TiledResourceTier4 = { /* c9c4725f-a81a-4f56-8c5b-c51039d694fb */ + 0xc9c4725f, + 0xa81a, + 0x4f56, + { 0x8c, 0x5b, 0xc5, 0x10, 0x39, 0xd6, 0x94, 0xfb } +}; +// -------------------------------------------------------------------------------------------------------------------------------- +// Experimental Feature: D3D12GPUUploadHeapsOnUnsupportedOS +// +// Use with D3D12EnableExperimentalFeatures to enable GPU upload heaps support on an unsupported OS, +// driver support is still required for this feature. +// +// Enabling D3D12GPUUploadHeapsOnUnsupportedOS needs no configuration struct, pass NULL in the pConfigurationStructs array. +// +// -------------------------------------------------------------------------------------------------------------------------------- +static const UUID D3D12GPUUploadHeapsOnUnsupportedOS = { /* 45dc51f3-767f-4588-b206-0baa2b16fbae */ + 0x45dc51f3, + 0x767f, + 0x4588, + { 0xb2, 0x06, 0x0b, 0xaa, 0x2b, 0x16, 0xfb, 0xae } +}; +// -------------------------------------------------------------------------------------------------------------------------------- +// D3D12GetInterface +// +// Retrieve Global D3D12 Interface. +// + +DEFINE_GUID(CLSID_D3D12Debug, 0xf2352aeb, 0xdd84, 0x49fe, 0xb9, 0x7b, 0xa9, 0xdc, 0xfd, 0xcc, 0x1b, 0x4f); +DEFINE_GUID(CLSID_D3D12Tools, 0xe38216b1, 0x3c8c, 0x4833, 0xaa, 0x09, 0x0a, 0x06, 0xb6, 0x5d, 0x96, 0xc8); +DEFINE_GUID(CLSID_D3D12DeviceRemovedExtendedData, 0x4a75bbc4, 0x9ff4, 0x4ad8, 0x9f, 0x18, 0xab, 0xae, 0x84, 0xdc, 0x5f, 0xf2); +DEFINE_GUID(CLSID_D3D12SDKConfiguration, 0x7cda6aca, 0xa03e, 0x49c8, 0x94, 0x58, 0x03, 0x34, 0xd2, 0x0e, 0x07, 0xce); +DEFINE_GUID(CLSID_D3D12DeviceFactory, 0x114863bf, 0xc386, 0x4aee, 0xb3, 0x9d, 0x8f, 0x0b, 0xbb, 0x06, 0x29, 0x55); +DEFINE_GUID(CLSID_D3D12DSRDeviceFactory, 0xbb6dd27e, 0x94a9, 0x41a6, 0x9f, 0x1b, 0x13, 0x37, 0x72, 0x17, 0x24, 0x28); + +typedef HRESULT (WINAPI* PFN_D3D12_GET_INTERFACE)( _In_ REFCLSID, _In_ REFIID, _COM_Outptr_opt_ void** ); + +HRESULT WINAPI D3D12GetInterface( _In_ REFCLSID rclsid, _In_ REFIID riid, _COM_Outptr_opt_ void** ppvDebug ); + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0067_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0067_v0_0_s_ifspec; + +#ifndef __ID3D12SDKConfiguration_INTERFACE_DEFINED__ +#define __ID3D12SDKConfiguration_INTERFACE_DEFINED__ + +/* interface ID3D12SDKConfiguration */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12SDKConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e9eb5314-33aa-42b2-a718-d77f58b1f1c7") + ID3D12SDKConfiguration : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetSDKVersion( + UINT SDKVersion, + _In_z_ LPCSTR SDKPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12SDKConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12SDKConfiguration * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12SDKConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12SDKConfiguration * This); + + DECLSPEC_XFGVIRT(ID3D12SDKConfiguration, SetSDKVersion) + HRESULT ( STDMETHODCALLTYPE *SetSDKVersion )( + ID3D12SDKConfiguration * This, + UINT SDKVersion, + _In_z_ LPCSTR SDKPath); + + END_INTERFACE + } ID3D12SDKConfigurationVtbl; + + interface ID3D12SDKConfiguration + { + CONST_VTBL struct ID3D12SDKConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12SDKConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12SDKConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12SDKConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12SDKConfiguration_SetSDKVersion(This,SDKVersion,SDKPath) \ + ( (This)->lpVtbl -> SetSDKVersion(This,SDKVersion,SDKPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12SDKConfiguration_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12SDKConfiguration1_INTERFACE_DEFINED__ +#define __ID3D12SDKConfiguration1_INTERFACE_DEFINED__ + +/* interface ID3D12SDKConfiguration1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12SDKConfiguration1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8aaf9303-ad25-48b9-9a57-d9c37e009d9f") + ID3D12SDKConfiguration1 : public ID3D12SDKConfiguration + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateDeviceFactory( + UINT SDKVersion, + _In_ LPCSTR SDKPath, + REFIID riid, + _COM_Outptr_ void **ppvFactory) = 0; + + virtual void STDMETHODCALLTYPE FreeUnusedSDKs( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12SDKConfiguration1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12SDKConfiguration1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12SDKConfiguration1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12SDKConfiguration1 * This); + + DECLSPEC_XFGVIRT(ID3D12SDKConfiguration, SetSDKVersion) + HRESULT ( STDMETHODCALLTYPE *SetSDKVersion )( + ID3D12SDKConfiguration1 * This, + UINT SDKVersion, + _In_z_ LPCSTR SDKPath); + + DECLSPEC_XFGVIRT(ID3D12SDKConfiguration1, CreateDeviceFactory) + HRESULT ( STDMETHODCALLTYPE *CreateDeviceFactory )( + ID3D12SDKConfiguration1 * This, + UINT SDKVersion, + _In_ LPCSTR SDKPath, + REFIID riid, + _COM_Outptr_ void **ppvFactory); + + DECLSPEC_XFGVIRT(ID3D12SDKConfiguration1, FreeUnusedSDKs) + void ( STDMETHODCALLTYPE *FreeUnusedSDKs )( + ID3D12SDKConfiguration1 * This); + + END_INTERFACE + } ID3D12SDKConfiguration1Vtbl; + + interface ID3D12SDKConfiguration1 + { + CONST_VTBL struct ID3D12SDKConfiguration1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12SDKConfiguration1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12SDKConfiguration1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12SDKConfiguration1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12SDKConfiguration1_SetSDKVersion(This,SDKVersion,SDKPath) \ + ( (This)->lpVtbl -> SetSDKVersion(This,SDKVersion,SDKPath) ) + + +#define ID3D12SDKConfiguration1_CreateDeviceFactory(This,SDKVersion,SDKPath,riid,ppvFactory) \ + ( (This)->lpVtbl -> CreateDeviceFactory(This,SDKVersion,SDKPath,riid,ppvFactory) ) + +#define ID3D12SDKConfiguration1_FreeUnusedSDKs(This) \ + ( (This)->lpVtbl -> FreeUnusedSDKs(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12SDKConfiguration1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0069 */ +/* [local] */ + +typedef +enum D3D12_DEVICE_FACTORY_FLAGS + { + D3D12_DEVICE_FACTORY_FLAG_NONE = 0, + D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_EXISTING_DEVICE = 0x1, + D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_INCOMPATIBLE_EXISTING_DEVICE = 0x2, + D3D12_DEVICE_FACTORY_FLAG_DISALLOW_STORING_NEW_DEVICE_AS_SINGLETON = 0x4 + } D3D12_DEVICE_FACTORY_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_DEVICE_FACTORY_FLAGS ) + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0069_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0069_v0_0_s_ifspec; + +#ifndef __ID3D12DeviceFactory_INTERFACE_DEFINED__ +#define __ID3D12DeviceFactory_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceFactory */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("61f307d3-d34e-4e7c-8374-3ba4de23cccb") + ID3D12DeviceFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFromGlobalState( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ApplyToGlobalState( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFlags( + D3D12_DEVICE_FACTORY_FLAGS flags) = 0; + + virtual D3D12_DEVICE_FACTORY_FLAGS STDMETHODCALLTYPE GetFlags( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConfigurationInterface( + REFCLSID clsid, + REFIID iid, + _COM_Outptr_ void **ppv) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnableExperimentalFeatures( + UINT NumFeatures, + _In_reads_(NumFeatures) const IID *pIIDs, + _In_reads_opt_(NumFeatures) void *pConfigurationStructs, + _In_reads_opt_(NumFeatures) UINT *pConfigurationStructSizes) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateDevice( + _In_opt_ IUnknown *adapter, + D3D_FEATURE_LEVEL FeatureLevel, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceFactory * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceFactory * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceFactory, InitializeFromGlobalState) + HRESULT ( STDMETHODCALLTYPE *InitializeFromGlobalState )( + ID3D12DeviceFactory * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceFactory, ApplyToGlobalState) + HRESULT ( STDMETHODCALLTYPE *ApplyToGlobalState )( + ID3D12DeviceFactory * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceFactory, SetFlags) + HRESULT ( STDMETHODCALLTYPE *SetFlags )( + ID3D12DeviceFactory * This, + D3D12_DEVICE_FACTORY_FLAGS flags); + + DECLSPEC_XFGVIRT(ID3D12DeviceFactory, GetFlags) + D3D12_DEVICE_FACTORY_FLAGS ( STDMETHODCALLTYPE *GetFlags )( + ID3D12DeviceFactory * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceFactory, GetConfigurationInterface) + HRESULT ( STDMETHODCALLTYPE *GetConfigurationInterface )( + ID3D12DeviceFactory * This, + REFCLSID clsid, + REFIID iid, + _COM_Outptr_ void **ppv); + + DECLSPEC_XFGVIRT(ID3D12DeviceFactory, EnableExperimentalFeatures) + HRESULT ( STDMETHODCALLTYPE *EnableExperimentalFeatures )( + ID3D12DeviceFactory * This, + UINT NumFeatures, + _In_reads_(NumFeatures) const IID *pIIDs, + _In_reads_opt_(NumFeatures) void *pConfigurationStructs, + _In_reads_opt_(NumFeatures) UINT *pConfigurationStructSizes); + + DECLSPEC_XFGVIRT(ID3D12DeviceFactory, CreateDevice) + HRESULT ( STDMETHODCALLTYPE *CreateDevice )( + ID3D12DeviceFactory * This, + _In_opt_ IUnknown *adapter, + D3D_FEATURE_LEVEL FeatureLevel, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + END_INTERFACE + } ID3D12DeviceFactoryVtbl; + + interface ID3D12DeviceFactory + { + CONST_VTBL struct ID3D12DeviceFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DeviceFactory_InitializeFromGlobalState(This) \ + ( (This)->lpVtbl -> InitializeFromGlobalState(This) ) + +#define ID3D12DeviceFactory_ApplyToGlobalState(This) \ + ( (This)->lpVtbl -> ApplyToGlobalState(This) ) + +#define ID3D12DeviceFactory_SetFlags(This,flags) \ + ( (This)->lpVtbl -> SetFlags(This,flags) ) + +#define ID3D12DeviceFactory_GetFlags(This) \ + ( (This)->lpVtbl -> GetFlags(This) ) + +#define ID3D12DeviceFactory_GetConfigurationInterface(This,clsid,iid,ppv) \ + ( (This)->lpVtbl -> GetConfigurationInterface(This,clsid,iid,ppv) ) + +#define ID3D12DeviceFactory_EnableExperimentalFeatures(This,NumFeatures,pIIDs,pConfigurationStructs,pConfigurationStructSizes) \ + ( (This)->lpVtbl -> EnableExperimentalFeatures(This,NumFeatures,pIIDs,pConfigurationStructs,pConfigurationStructSizes) ) + +#define ID3D12DeviceFactory_CreateDevice(This,adapter,FeatureLevel,riid,ppvDevice) \ + ( (This)->lpVtbl -> CreateDevice(This,adapter,FeatureLevel,riid,ppvDevice) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceFactory_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0070 */ +/* [local] */ + +typedef +enum D3D12_DEVICE_FLAGS + { + D3D12_DEVICE_FLAG_NONE = 0, + D3D12_DEVICE_FLAG_DEBUG_LAYER_ENABLED = 0x1, + D3D12_DEVICE_FLAG_GPU_BASED_VALIDATION_ENABLED = 0x2, + D3D12_DEVICE_FLAG_SYNCHRONIZED_COMMAND_QUEUE_VALIDATION_DISABLED = 0x4, + D3D12_DEVICE_FLAG_DRED_AUTO_BREADCRUMBS_ENABLED = 0x8, + D3D12_DEVICE_FLAG_DRED_PAGE_FAULT_REPORTING_ENABLED = 0x10, + D3D12_DEVICE_FLAG_DRED_WATSON_REPORTING_ENABLED = 0x20, + D3D12_DEVICE_FLAG_DRED_BREADCRUMB_CONTEXT_ENABLED = 0x40, + D3D12_DEVICE_FLAG_DRED_USE_MARKERS_ONLY_BREADCRUMBS = 0x80, + D3D12_DEVICE_FLAG_SHADER_INSTRUMENTATION_ENABLED = 0x100, + D3D12_DEVICE_FLAG_AUTO_DEBUG_NAME_ENABLED = 0x200, + D3D12_DEVICE_FLAG_FORCE_LEGACY_STATE_VALIDATION = 0x400 + } D3D12_DEVICE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_DEVICE_FLAGS ) +typedef struct D3D12_DEVICE_CONFIGURATION_DESC + { + D3D12_DEVICE_FLAGS Flags; + UINT GpuBasedValidationFlags; + UINT SDKVersion; + UINT NumEnabledExperimentalFeatures; + } D3D12_DEVICE_CONFIGURATION_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0070_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0070_v0_0_s_ifspec; + +#ifndef __ID3D12DeviceConfiguration_INTERFACE_DEFINED__ +#define __ID3D12DeviceConfiguration_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceConfiguration */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("78dbf87b-f766-422b-a61c-c8c446bdb9ad") + ID3D12DeviceConfiguration : public IUnknown + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_DEVICE_CONFIGURATION_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_DEVICE_CONFIGURATION_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_DEVICE_CONFIGURATION_DESC * RetVal) = 0; +#endif + + virtual HRESULT STDMETHODCALLTYPE GetEnabledExperimentalFeatures( + _Out_writes_(NumGuids) GUID *pGuids, + UINT NumGuids) = 0; + + virtual HRESULT STDMETHODCALLTYPE SerializeVersionedRootSignature( + _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc, + _COM_Outptr_ ID3DBlob **ppResult, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVersionedRootSignatureDeserializer( + _In_reads_bytes_(Size) const void *pBlob, + SIZE_T Size, + REFIID riid, + _COM_Outptr_ void **ppvDeserializer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceConfiguration * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceConfiguration * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetDesc) +#if !defined(_WIN32) + D3D12_DEVICE_CONFIGURATION_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12DeviceConfiguration * This); + +#else + D3D12_DEVICE_CONFIGURATION_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12DeviceConfiguration * This, + D3D12_DEVICE_CONFIGURATION_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetEnabledExperimentalFeatures) + HRESULT ( STDMETHODCALLTYPE *GetEnabledExperimentalFeatures )( + ID3D12DeviceConfiguration * This, + _Out_writes_(NumGuids) GUID *pGuids, + UINT NumGuids); + + DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, SerializeVersionedRootSignature) + HRESULT ( STDMETHODCALLTYPE *SerializeVersionedRootSignature )( + ID3D12DeviceConfiguration * This, + _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc, + _COM_Outptr_ ID3DBlob **ppResult, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError); + + DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, CreateVersionedRootSignatureDeserializer) + HRESULT ( STDMETHODCALLTYPE *CreateVersionedRootSignatureDeserializer )( + ID3D12DeviceConfiguration * This, + _In_reads_bytes_(Size) const void *pBlob, + SIZE_T Size, + REFIID riid, + _COM_Outptr_ void **ppvDeserializer); + + END_INTERFACE + } ID3D12DeviceConfigurationVtbl; + + interface ID3D12DeviceConfiguration + { + CONST_VTBL struct ID3D12DeviceConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + +#if !defined(_WIN32) + +#define ID3D12DeviceConfiguration_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12DeviceConfiguration_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#define ID3D12DeviceConfiguration_GetEnabledExperimentalFeatures(This,pGuids,NumGuids) \ + ( (This)->lpVtbl -> GetEnabledExperimentalFeatures(This,pGuids,NumGuids) ) + +#define ID3D12DeviceConfiguration_SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) \ + ( (This)->lpVtbl -> SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) ) + +#define ID3D12DeviceConfiguration_CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) \ + ( (This)->lpVtbl -> CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceConfiguration_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DeviceConfiguration1_INTERFACE_DEFINED__ +#define __ID3D12DeviceConfiguration1_INTERFACE_DEFINED__ + +/* interface ID3D12DeviceConfiguration1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DeviceConfiguration1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ed342442-6343-4e16-bb82-a3a577874e56") + ID3D12DeviceConfiguration1 : public ID3D12DeviceConfiguration + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary( + _In_reads_bytes_(Size) const void *pLibraryBlob, + SIZE_T Size, + LPCWSTR RootSignatureSubobjectName, + REFIID riid, + _COM_Outptr_ void **ppvDeserializer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DeviceConfiguration1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DeviceConfiguration1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DeviceConfiguration1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DeviceConfiguration1 * This); + + DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetDesc) +#if !defined(_WIN32) + D3D12_DEVICE_CONFIGURATION_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12DeviceConfiguration1 * This); + +#else + D3D12_DEVICE_CONFIGURATION_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12DeviceConfiguration1 * This, + D3D12_DEVICE_CONFIGURATION_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, GetEnabledExperimentalFeatures) + HRESULT ( STDMETHODCALLTYPE *GetEnabledExperimentalFeatures )( + ID3D12DeviceConfiguration1 * This, + _Out_writes_(NumGuids) GUID *pGuids, + UINT NumGuids); + + DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, SerializeVersionedRootSignature) + HRESULT ( STDMETHODCALLTYPE *SerializeVersionedRootSignature )( + ID3D12DeviceConfiguration1 * This, + _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc, + _COM_Outptr_ ID3DBlob **ppResult, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob **ppError); + + DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration, CreateVersionedRootSignatureDeserializer) + HRESULT ( STDMETHODCALLTYPE *CreateVersionedRootSignatureDeserializer )( + ID3D12DeviceConfiguration1 * This, + _In_reads_bytes_(Size) const void *pBlob, + SIZE_T Size, + REFIID riid, + _COM_Outptr_ void **ppvDeserializer); + + DECLSPEC_XFGVIRT(ID3D12DeviceConfiguration1, CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary) + HRESULT ( STDMETHODCALLTYPE *CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary )( + ID3D12DeviceConfiguration1 * This, + _In_reads_bytes_(Size) const void *pLibraryBlob, + SIZE_T Size, + LPCWSTR RootSignatureSubobjectName, + REFIID riid, + _COM_Outptr_ void **ppvDeserializer); + + END_INTERFACE + } ID3D12DeviceConfiguration1Vtbl; + + interface ID3D12DeviceConfiguration1 + { + CONST_VTBL struct ID3D12DeviceConfiguration1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DeviceConfiguration1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DeviceConfiguration1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DeviceConfiguration1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + +#if !defined(_WIN32) + +#define ID3D12DeviceConfiguration1_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12DeviceConfiguration1_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#define ID3D12DeviceConfiguration1_GetEnabledExperimentalFeatures(This,pGuids,NumGuids) \ + ( (This)->lpVtbl -> GetEnabledExperimentalFeatures(This,pGuids,NumGuids) ) + +#define ID3D12DeviceConfiguration1_SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) \ + ( (This)->lpVtbl -> SerializeVersionedRootSignature(This,pDesc,ppResult,ppError) ) + +#define ID3D12DeviceConfiguration1_CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) \ + ( (This)->lpVtbl -> CreateVersionedRootSignatureDeserializer(This,pBlob,Size,riid,ppvDeserializer) ) + + +#define ID3D12DeviceConfiguration1_CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(This,pLibraryBlob,Size,RootSignatureSubobjectName,riid,ppvDeserializer) \ + ( (This)->lpVtbl -> CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(This,pLibraryBlob,Size,RootSignatureSubobjectName,riid,ppvDeserializer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DeviceConfiguration1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0072 */ +/* [local] */ + +typedef +enum D3D12_AXIS_SHADING_RATE + { + D3D12_AXIS_SHADING_RATE_1X = 0, + D3D12_AXIS_SHADING_RATE_2X = 0x1, + D3D12_AXIS_SHADING_RATE_4X = 0x2 + } D3D12_AXIS_SHADING_RATE; + +#define D3D12_SHADING_RATE_X_AXIS_SHIFT 2 +#define D3D12_SHADING_RATE_VALID_MASK 3 +#define D3D12_MAKE_COARSE_SHADING_RATE(x,y) ((x) << D3D12_SHADING_RATE_X_AXIS_SHIFT | (y)) +#define D3D12_GET_COARSE_SHADING_RATE_X_AXIS(x) (((x) >> D3D12_SHADING_RATE_X_AXIS_SHIFT) & D3D12_SHADING_RATE_VALID_MASK) +#define D3D12_GET_COARSE_SHADING_RATE_Y_AXIS(y) ((y) & D3D12_SHADING_RATE_VALID_MASK) +typedef +enum D3D12_SHADING_RATE + { + D3D12_SHADING_RATE_1X1 = 0, + D3D12_SHADING_RATE_1X2 = 0x1, + D3D12_SHADING_RATE_2X1 = 0x4, + D3D12_SHADING_RATE_2X2 = 0x5, + D3D12_SHADING_RATE_2X4 = 0x6, + D3D12_SHADING_RATE_4X2 = 0x9, + D3D12_SHADING_RATE_4X4 = 0xa + } D3D12_SHADING_RATE; + +typedef +enum D3D12_SHADING_RATE_COMBINER + { + D3D12_SHADING_RATE_COMBINER_PASSTHROUGH = 0, + D3D12_SHADING_RATE_COMBINER_OVERRIDE = 1, + D3D12_SHADING_RATE_COMBINER_MIN = 2, + D3D12_SHADING_RATE_COMBINER_MAX = 3, + D3D12_SHADING_RATE_COMBINER_SUM = 4 + } D3D12_SHADING_RATE_COMBINER; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0072_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0072_v0_0_s_ifspec; + +#ifndef __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList5 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList5; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("55050859-4024-474c-87f5-6472eaee44ea") + ID3D12GraphicsCommandList5 : public ID3D12GraphicsCommandList4 + { + public: + virtual void STDMETHODCALLTYPE RSSetShadingRate( + _In_ D3D12_SHADING_RATE baseShadingRate, + _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners) = 0; + + virtual void STDMETHODCALLTYPE RSSetShadingRateImage( + _In_opt_ ID3D12Resource *shadingRateImage) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandList5Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList5 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList5 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList5 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList5 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList5 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList5 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList5 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList5 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList5 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList5 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList5 * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList5 * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList5 * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList5 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList5 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList5 * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList5 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList5 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList5 * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList5 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList5 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList5 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList5 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList5 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList5 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList5 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList5 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds) + void ( STDMETHODCALLTYPE *OMSetDepthBounds )( + ID3D12GraphicsCommandList5 * This, + _In_ FLOAT Min, + _In_ FLOAT Max); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions) + void ( STDMETHODCALLTYPE *SetSamplePositions )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion) + void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask) + void ( STDMETHODCALLTYPE *SetViewInstanceMask )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT Mask); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12GraphicsCommandList5 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12GraphicsCommandList5 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass) + void ( STDMETHODCALLTYPE *BeginRenderPass )( + ID3D12GraphicsCommandList5 * This, + _In_ UINT NumRenderTargets, + _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets, + _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil, + D3D12_RENDER_PASS_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass) + void ( STDMETHODCALLTYPE *EndRenderPass )( + ID3D12GraphicsCommandList5 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand) + void ( STDMETHODCALLTYPE *InitializeMetaCommand )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData, + _In_ SIZE_T InitializationParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand) + void ( STDMETHODCALLTYPE *ExecuteMetaCommand )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData, + _In_ SIZE_T ExecutionParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList5 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc, + _In_ UINT NumPostbuildInfoDescs, + _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo) + void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )( + ID3D12GraphicsCommandList5 * This, + _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc, + _In_ UINT NumSourceAccelerationStructures, + _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList5 * This, + _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData, + _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData, + _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1) + void ( STDMETHODCALLTYPE *SetPipelineState1 )( + ID3D12GraphicsCommandList5 * This, + _In_ ID3D12StateObject *pStateObject); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays) + void ( STDMETHODCALLTYPE *DispatchRays )( + ID3D12GraphicsCommandList5 * This, + _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate) + void ( STDMETHODCALLTYPE *RSSetShadingRate )( + ID3D12GraphicsCommandList5 * This, + _In_ D3D12_SHADING_RATE baseShadingRate, + _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage) + void ( STDMETHODCALLTYPE *RSSetShadingRateImage )( + ID3D12GraphicsCommandList5 * This, + _In_opt_ ID3D12Resource *shadingRateImage); + + END_INTERFACE + } ID3D12GraphicsCommandList5Vtbl; + + interface ID3D12GraphicsCommandList5 + { + CONST_VTBL struct ID3D12GraphicsCommandList5Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList5_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList5_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList5_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList5_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList5_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList5_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList5_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList5_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList5_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList5_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList5_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList5_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList5_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList5_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList5_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList5_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList5_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList5_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList5_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList5_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList5_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList5_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList5_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList5_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList5_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList5_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList5_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList5_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList5_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList5_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList5_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList5_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList5_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList5_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList5_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList5_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList5_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList5_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList5_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList5_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList5_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList5_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList5_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList5_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList5_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList5_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList5_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList5_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList5_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList5_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList5_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList5_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList5_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList5_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList5_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList5_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList5_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList5_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList5_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList5_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + + +#define ID3D12GraphicsCommandList5_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList5_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList5_OMSetDepthBounds(This,Min,Max) \ + ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) ) + +#define ID3D12GraphicsCommandList5_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \ + ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) ) + +#define ID3D12GraphicsCommandList5_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \ + ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) ) + +#define ID3D12GraphicsCommandList5_SetViewInstanceMask(This,Mask) \ + ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) ) + + +#define ID3D12GraphicsCommandList5_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12GraphicsCommandList5_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + + +#define ID3D12GraphicsCommandList5_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \ + ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) ) + +#define ID3D12GraphicsCommandList5_EndRenderPass(This) \ + ( (This)->lpVtbl -> EndRenderPass(This) ) + +#define ID3D12GraphicsCommandList5_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList5_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList5_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \ + ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) ) + +#define ID3D12GraphicsCommandList5_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \ + ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) ) + +#define ID3D12GraphicsCommandList5_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \ + ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) ) + +#define ID3D12GraphicsCommandList5_SetPipelineState1(This,pStateObject) \ + ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) ) + +#define ID3D12GraphicsCommandList5_DispatchRays(This,pDesc) \ + ( (This)->lpVtbl -> DispatchRays(This,pDesc) ) + + +#define ID3D12GraphicsCommandList5_RSSetShadingRate(This,baseShadingRate,combiners) \ + ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) ) + +#define ID3D12GraphicsCommandList5_RSSetShadingRateImage(This,shadingRateImage) \ + ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList5_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0073 */ +/* [local] */ + +typedef struct D3D12_DISPATCH_MESH_ARGUMENTS + { + UINT ThreadGroupCountX; + UINT ThreadGroupCountY; + UINT ThreadGroupCountZ; + } D3D12_DISPATCH_MESH_ARGUMENTS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0073_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0073_v0_0_s_ifspec; + +#ifndef __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList6 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList6; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c3827890-e548-4cfa-96cf-5689a9370f80") + ID3D12GraphicsCommandList6 : public ID3D12GraphicsCommandList5 + { + public: + virtual void STDMETHODCALLTYPE DispatchMesh( + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandList6Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList6 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList6 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList6 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList6 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList6 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList6 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList6 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList6 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList6 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList6 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList6 * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList6 * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList6 * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList6 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList6 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList6 * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList6 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList6 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList6 * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList6 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList6 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList6 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList6 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList6 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList6 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList6 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList6 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds) + void ( STDMETHODCALLTYPE *OMSetDepthBounds )( + ID3D12GraphicsCommandList6 * This, + _In_ FLOAT Min, + _In_ FLOAT Max); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions) + void ( STDMETHODCALLTYPE *SetSamplePositions )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion) + void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask) + void ( STDMETHODCALLTYPE *SetViewInstanceMask )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT Mask); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12GraphicsCommandList6 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12GraphicsCommandList6 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass) + void ( STDMETHODCALLTYPE *BeginRenderPass )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT NumRenderTargets, + _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets, + _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil, + D3D12_RENDER_PASS_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass) + void ( STDMETHODCALLTYPE *EndRenderPass )( + ID3D12GraphicsCommandList6 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand) + void ( STDMETHODCALLTYPE *InitializeMetaCommand )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData, + _In_ SIZE_T InitializationParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand) + void ( STDMETHODCALLTYPE *ExecuteMetaCommand )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData, + _In_ SIZE_T ExecutionParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList6 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc, + _In_ UINT NumPostbuildInfoDescs, + _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo) + void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )( + ID3D12GraphicsCommandList6 * This, + _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc, + _In_ UINT NumSourceAccelerationStructures, + _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList6 * This, + _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData, + _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData, + _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1) + void ( STDMETHODCALLTYPE *SetPipelineState1 )( + ID3D12GraphicsCommandList6 * This, + _In_ ID3D12StateObject *pStateObject); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays) + void ( STDMETHODCALLTYPE *DispatchRays )( + ID3D12GraphicsCommandList6 * This, + _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate) + void ( STDMETHODCALLTYPE *RSSetShadingRate )( + ID3D12GraphicsCommandList6 * This, + _In_ D3D12_SHADING_RATE baseShadingRate, + _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage) + void ( STDMETHODCALLTYPE *RSSetShadingRateImage )( + ID3D12GraphicsCommandList6 * This, + _In_opt_ ID3D12Resource *shadingRateImage); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh) + void ( STDMETHODCALLTYPE *DispatchMesh )( + ID3D12GraphicsCommandList6 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + END_INTERFACE + } ID3D12GraphicsCommandList6Vtbl; + + interface ID3D12GraphicsCommandList6 + { + CONST_VTBL struct ID3D12GraphicsCommandList6Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList6_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList6_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList6_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList6_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList6_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList6_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList6_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList6_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList6_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList6_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList6_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList6_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList6_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList6_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList6_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList6_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList6_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList6_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList6_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList6_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList6_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList6_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList6_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList6_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList6_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList6_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList6_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList6_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList6_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList6_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList6_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList6_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList6_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList6_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList6_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList6_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList6_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList6_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList6_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList6_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList6_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList6_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList6_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList6_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList6_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList6_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList6_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList6_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList6_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList6_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList6_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList6_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList6_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList6_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList6_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList6_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList6_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList6_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList6_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList6_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + + +#define ID3D12GraphicsCommandList6_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList6_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList6_OMSetDepthBounds(This,Min,Max) \ + ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) ) + +#define ID3D12GraphicsCommandList6_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \ + ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) ) + +#define ID3D12GraphicsCommandList6_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \ + ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) ) + +#define ID3D12GraphicsCommandList6_SetViewInstanceMask(This,Mask) \ + ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) ) + + +#define ID3D12GraphicsCommandList6_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12GraphicsCommandList6_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + + +#define ID3D12GraphicsCommandList6_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \ + ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) ) + +#define ID3D12GraphicsCommandList6_EndRenderPass(This) \ + ( (This)->lpVtbl -> EndRenderPass(This) ) + +#define ID3D12GraphicsCommandList6_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList6_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList6_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \ + ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) ) + +#define ID3D12GraphicsCommandList6_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \ + ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) ) + +#define ID3D12GraphicsCommandList6_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \ + ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) ) + +#define ID3D12GraphicsCommandList6_SetPipelineState1(This,pStateObject) \ + ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) ) + +#define ID3D12GraphicsCommandList6_DispatchRays(This,pDesc) \ + ( (This)->lpVtbl -> DispatchRays(This,pDesc) ) + + +#define ID3D12GraphicsCommandList6_RSSetShadingRate(This,baseShadingRate,combiners) \ + ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) ) + +#define ID3D12GraphicsCommandList6_RSSetShadingRateImage(This,shadingRateImage) \ + ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) ) + + +#define ID3D12GraphicsCommandList6_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList6_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList7 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList7; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("dd171223-8b61-4769-90e3-160ccde4e2c1") + ID3D12GraphicsCommandList7 : public ID3D12GraphicsCommandList6 + { + public: + virtual void STDMETHODCALLTYPE Barrier( + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandList7Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList7 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList7 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList7 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList7 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList7 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList7 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList7 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList7 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList7 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList7 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList7 * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList7 * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList7 * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList7 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList7 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList7 * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList7 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList7 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList7 * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList7 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList7 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList7 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList7 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList7 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList7 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList7 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList7 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds) + void ( STDMETHODCALLTYPE *OMSetDepthBounds )( + ID3D12GraphicsCommandList7 * This, + _In_ FLOAT Min, + _In_ FLOAT Max); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions) + void ( STDMETHODCALLTYPE *SetSamplePositions )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion) + void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask) + void ( STDMETHODCALLTYPE *SetViewInstanceMask )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT Mask); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12GraphicsCommandList7 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12GraphicsCommandList7 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass) + void ( STDMETHODCALLTYPE *BeginRenderPass )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT NumRenderTargets, + _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets, + _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil, + D3D12_RENDER_PASS_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass) + void ( STDMETHODCALLTYPE *EndRenderPass )( + ID3D12GraphicsCommandList7 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand) + void ( STDMETHODCALLTYPE *InitializeMetaCommand )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData, + _In_ SIZE_T InitializationParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand) + void ( STDMETHODCALLTYPE *ExecuteMetaCommand )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData, + _In_ SIZE_T ExecutionParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList7 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc, + _In_ UINT NumPostbuildInfoDescs, + _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo) + void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )( + ID3D12GraphicsCommandList7 * This, + _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc, + _In_ UINT NumSourceAccelerationStructures, + _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList7 * This, + _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData, + _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData, + _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1) + void ( STDMETHODCALLTYPE *SetPipelineState1 )( + ID3D12GraphicsCommandList7 * This, + _In_ ID3D12StateObject *pStateObject); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays) + void ( STDMETHODCALLTYPE *DispatchRays )( + ID3D12GraphicsCommandList7 * This, + _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate) + void ( STDMETHODCALLTYPE *RSSetShadingRate )( + ID3D12GraphicsCommandList7 * This, + _In_ D3D12_SHADING_RATE baseShadingRate, + _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage) + void ( STDMETHODCALLTYPE *RSSetShadingRateImage )( + ID3D12GraphicsCommandList7 * This, + _In_opt_ ID3D12Resource *shadingRateImage); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh) + void ( STDMETHODCALLTYPE *DispatchMesh )( + ID3D12GraphicsCommandList7 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier) + void ( STDMETHODCALLTYPE *Barrier )( + ID3D12GraphicsCommandList7 * This, + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups); + + END_INTERFACE + } ID3D12GraphicsCommandList7Vtbl; + + interface ID3D12GraphicsCommandList7 + { + CONST_VTBL struct ID3D12GraphicsCommandList7Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList7_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList7_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList7_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList7_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList7_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList7_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList7_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList7_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList7_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList7_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList7_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList7_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList7_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList7_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList7_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList7_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList7_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList7_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList7_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList7_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList7_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList7_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList7_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList7_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList7_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList7_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList7_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList7_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList7_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList7_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList7_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList7_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList7_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList7_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList7_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList7_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList7_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList7_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList7_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList7_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList7_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList7_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList7_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList7_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList7_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList7_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList7_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList7_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList7_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList7_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList7_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList7_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList7_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList7_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList7_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList7_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList7_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList7_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList7_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList7_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + + +#define ID3D12GraphicsCommandList7_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList7_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList7_OMSetDepthBounds(This,Min,Max) \ + ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) ) + +#define ID3D12GraphicsCommandList7_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \ + ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) ) + +#define ID3D12GraphicsCommandList7_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \ + ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) ) + +#define ID3D12GraphicsCommandList7_SetViewInstanceMask(This,Mask) \ + ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) ) + + +#define ID3D12GraphicsCommandList7_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12GraphicsCommandList7_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + + +#define ID3D12GraphicsCommandList7_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \ + ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) ) + +#define ID3D12GraphicsCommandList7_EndRenderPass(This) \ + ( (This)->lpVtbl -> EndRenderPass(This) ) + +#define ID3D12GraphicsCommandList7_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList7_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList7_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \ + ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) ) + +#define ID3D12GraphicsCommandList7_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \ + ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) ) + +#define ID3D12GraphicsCommandList7_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \ + ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) ) + +#define ID3D12GraphicsCommandList7_SetPipelineState1(This,pStateObject) \ + ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) ) + +#define ID3D12GraphicsCommandList7_DispatchRays(This,pDesc) \ + ( (This)->lpVtbl -> DispatchRays(This,pDesc) ) + + +#define ID3D12GraphicsCommandList7_RSSetShadingRate(This,baseShadingRate,combiners) \ + ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) ) + +#define ID3D12GraphicsCommandList7_RSSetShadingRateImage(This,shadingRateImage) \ + ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) ) + + +#define ID3D12GraphicsCommandList7_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + + +#define ID3D12GraphicsCommandList7_Barrier(This,NumBarrierGroups,pBarrierGroups) \ + ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList7_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList8 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList8; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ee936ef9-599d-4d28-938e-23c4ad05ce51") + ID3D12GraphicsCommandList8 : public ID3D12GraphicsCommandList7 + { + public: + virtual void STDMETHODCALLTYPE OMSetFrontAndBackStencilRef( + _In_ UINT FrontStencilRef, + _In_ UINT BackStencilRef) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandList8Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList8 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList8 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList8 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList8 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList8 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList8 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList8 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList8 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList8 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList8 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList8 * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList8 * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList8 * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList8 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList8 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList8 * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList8 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList8 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList8 * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList8 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList8 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList8 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList8 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList8 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList8 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList8 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList8 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds) + void ( STDMETHODCALLTYPE *OMSetDepthBounds )( + ID3D12GraphicsCommandList8 * This, + _In_ FLOAT Min, + _In_ FLOAT Max); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions) + void ( STDMETHODCALLTYPE *SetSamplePositions )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion) + void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask) + void ( STDMETHODCALLTYPE *SetViewInstanceMask )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT Mask); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12GraphicsCommandList8 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12GraphicsCommandList8 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass) + void ( STDMETHODCALLTYPE *BeginRenderPass )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT NumRenderTargets, + _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets, + _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil, + D3D12_RENDER_PASS_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass) + void ( STDMETHODCALLTYPE *EndRenderPass )( + ID3D12GraphicsCommandList8 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand) + void ( STDMETHODCALLTYPE *InitializeMetaCommand )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData, + _In_ SIZE_T InitializationParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand) + void ( STDMETHODCALLTYPE *ExecuteMetaCommand )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData, + _In_ SIZE_T ExecutionParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList8 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc, + _In_ UINT NumPostbuildInfoDescs, + _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo) + void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )( + ID3D12GraphicsCommandList8 * This, + _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc, + _In_ UINT NumSourceAccelerationStructures, + _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList8 * This, + _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData, + _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData, + _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1) + void ( STDMETHODCALLTYPE *SetPipelineState1 )( + ID3D12GraphicsCommandList8 * This, + _In_ ID3D12StateObject *pStateObject); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays) + void ( STDMETHODCALLTYPE *DispatchRays )( + ID3D12GraphicsCommandList8 * This, + _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate) + void ( STDMETHODCALLTYPE *RSSetShadingRate )( + ID3D12GraphicsCommandList8 * This, + _In_ D3D12_SHADING_RATE baseShadingRate, + _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage) + void ( STDMETHODCALLTYPE *RSSetShadingRateImage )( + ID3D12GraphicsCommandList8 * This, + _In_opt_ ID3D12Resource *shadingRateImage); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh) + void ( STDMETHODCALLTYPE *DispatchMesh )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier) + void ( STDMETHODCALLTYPE *Barrier )( + ID3D12GraphicsCommandList8 * This, + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef) + void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )( + ID3D12GraphicsCommandList8 * This, + _In_ UINT FrontStencilRef, + _In_ UINT BackStencilRef); + + END_INTERFACE + } ID3D12GraphicsCommandList8Vtbl; + + interface ID3D12GraphicsCommandList8 + { + CONST_VTBL struct ID3D12GraphicsCommandList8Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList8_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList8_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList8_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList8_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList8_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList8_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList8_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList8_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList8_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList8_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList8_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList8_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList8_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList8_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList8_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList8_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList8_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList8_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList8_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList8_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList8_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList8_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList8_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList8_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList8_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList8_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList8_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList8_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList8_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList8_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList8_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList8_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList8_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList8_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList8_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList8_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList8_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList8_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList8_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList8_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList8_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList8_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList8_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList8_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList8_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList8_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList8_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList8_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList8_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList8_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList8_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList8_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList8_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList8_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList8_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList8_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList8_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList8_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList8_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList8_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + + +#define ID3D12GraphicsCommandList8_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList8_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList8_OMSetDepthBounds(This,Min,Max) \ + ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) ) + +#define ID3D12GraphicsCommandList8_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \ + ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) ) + +#define ID3D12GraphicsCommandList8_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \ + ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) ) + +#define ID3D12GraphicsCommandList8_SetViewInstanceMask(This,Mask) \ + ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) ) + + +#define ID3D12GraphicsCommandList8_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12GraphicsCommandList8_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + + +#define ID3D12GraphicsCommandList8_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \ + ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) ) + +#define ID3D12GraphicsCommandList8_EndRenderPass(This) \ + ( (This)->lpVtbl -> EndRenderPass(This) ) + +#define ID3D12GraphicsCommandList8_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList8_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList8_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \ + ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) ) + +#define ID3D12GraphicsCommandList8_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \ + ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) ) + +#define ID3D12GraphicsCommandList8_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \ + ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) ) + +#define ID3D12GraphicsCommandList8_SetPipelineState1(This,pStateObject) \ + ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) ) + +#define ID3D12GraphicsCommandList8_DispatchRays(This,pDesc) \ + ( (This)->lpVtbl -> DispatchRays(This,pDesc) ) + + +#define ID3D12GraphicsCommandList8_RSSetShadingRate(This,baseShadingRate,combiners) \ + ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) ) + +#define ID3D12GraphicsCommandList8_RSSetShadingRateImage(This,shadingRateImage) \ + ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) ) + + +#define ID3D12GraphicsCommandList8_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + + +#define ID3D12GraphicsCommandList8_Barrier(This,NumBarrierGroups,pBarrierGroups) \ + ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) ) + + +#define ID3D12GraphicsCommandList8_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \ + ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList8_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList9 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList9; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("34ed2808-ffe6-4c2b-b11a-cabd2b0c59e1") + ID3D12GraphicsCommandList9 : public ID3D12GraphicsCommandList8 + { + public: + virtual void STDMETHODCALLTYPE RSSetDepthBias( + _In_ FLOAT DepthBias, + _In_ FLOAT DepthBiasClamp, + _In_ FLOAT SlopeScaledDepthBias) = 0; + + virtual void STDMETHODCALLTYPE IASetIndexBufferStripCutValue( + _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandList9Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList9 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList9 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList9 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList9 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList9 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList9 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList9 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList9 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList9 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList9 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList9 * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList9 * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList9 * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList9 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList9 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList9 * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList9 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList9 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList9 * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList9 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList9 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList9 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList9 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList9 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList9 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList9 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList9 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds) + void ( STDMETHODCALLTYPE *OMSetDepthBounds )( + ID3D12GraphicsCommandList9 * This, + _In_ FLOAT Min, + _In_ FLOAT Max); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions) + void ( STDMETHODCALLTYPE *SetSamplePositions )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion) + void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask) + void ( STDMETHODCALLTYPE *SetViewInstanceMask )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT Mask); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12GraphicsCommandList9 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12GraphicsCommandList9 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass) + void ( STDMETHODCALLTYPE *BeginRenderPass )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT NumRenderTargets, + _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets, + _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil, + D3D12_RENDER_PASS_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass) + void ( STDMETHODCALLTYPE *EndRenderPass )( + ID3D12GraphicsCommandList9 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand) + void ( STDMETHODCALLTYPE *InitializeMetaCommand )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData, + _In_ SIZE_T InitializationParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand) + void ( STDMETHODCALLTYPE *ExecuteMetaCommand )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData, + _In_ SIZE_T ExecutionParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList9 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc, + _In_ UINT NumPostbuildInfoDescs, + _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo) + void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )( + ID3D12GraphicsCommandList9 * This, + _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc, + _In_ UINT NumSourceAccelerationStructures, + _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList9 * This, + _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData, + _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData, + _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1) + void ( STDMETHODCALLTYPE *SetPipelineState1 )( + ID3D12GraphicsCommandList9 * This, + _In_ ID3D12StateObject *pStateObject); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays) + void ( STDMETHODCALLTYPE *DispatchRays )( + ID3D12GraphicsCommandList9 * This, + _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate) + void ( STDMETHODCALLTYPE *RSSetShadingRate )( + ID3D12GraphicsCommandList9 * This, + _In_ D3D12_SHADING_RATE baseShadingRate, + _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage) + void ( STDMETHODCALLTYPE *RSSetShadingRateImage )( + ID3D12GraphicsCommandList9 * This, + _In_opt_ ID3D12Resource *shadingRateImage); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh) + void ( STDMETHODCALLTYPE *DispatchMesh )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier) + void ( STDMETHODCALLTYPE *Barrier )( + ID3D12GraphicsCommandList9 * This, + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef) + void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )( + ID3D12GraphicsCommandList9 * This, + _In_ UINT FrontStencilRef, + _In_ UINT BackStencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, RSSetDepthBias) + void ( STDMETHODCALLTYPE *RSSetDepthBias )( + ID3D12GraphicsCommandList9 * This, + _In_ FLOAT DepthBias, + _In_ FLOAT DepthBiasClamp, + _In_ FLOAT SlopeScaledDepthBias); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, IASetIndexBufferStripCutValue) + void ( STDMETHODCALLTYPE *IASetIndexBufferStripCutValue )( + ID3D12GraphicsCommandList9 * This, + _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue); + + END_INTERFACE + } ID3D12GraphicsCommandList9Vtbl; + + interface ID3D12GraphicsCommandList9 + { + CONST_VTBL struct ID3D12GraphicsCommandList9Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList9_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList9_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList9_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList9_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList9_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList9_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList9_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList9_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList9_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList9_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList9_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList9_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList9_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList9_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList9_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList9_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList9_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList9_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList9_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList9_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList9_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList9_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList9_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList9_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList9_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList9_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList9_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList9_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList9_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList9_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList9_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList9_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList9_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList9_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList9_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList9_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList9_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList9_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList9_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList9_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList9_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList9_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList9_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList9_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList9_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList9_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList9_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList9_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList9_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList9_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList9_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList9_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList9_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList9_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList9_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList9_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList9_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList9_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList9_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList9_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + + +#define ID3D12GraphicsCommandList9_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList9_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList9_OMSetDepthBounds(This,Min,Max) \ + ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) ) + +#define ID3D12GraphicsCommandList9_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \ + ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) ) + +#define ID3D12GraphicsCommandList9_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \ + ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) ) + +#define ID3D12GraphicsCommandList9_SetViewInstanceMask(This,Mask) \ + ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) ) + + +#define ID3D12GraphicsCommandList9_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12GraphicsCommandList9_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + + +#define ID3D12GraphicsCommandList9_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \ + ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) ) + +#define ID3D12GraphicsCommandList9_EndRenderPass(This) \ + ( (This)->lpVtbl -> EndRenderPass(This) ) + +#define ID3D12GraphicsCommandList9_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList9_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList9_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \ + ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) ) + +#define ID3D12GraphicsCommandList9_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \ + ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) ) + +#define ID3D12GraphicsCommandList9_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \ + ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) ) + +#define ID3D12GraphicsCommandList9_SetPipelineState1(This,pStateObject) \ + ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) ) + +#define ID3D12GraphicsCommandList9_DispatchRays(This,pDesc) \ + ( (This)->lpVtbl -> DispatchRays(This,pDesc) ) + + +#define ID3D12GraphicsCommandList9_RSSetShadingRate(This,baseShadingRate,combiners) \ + ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) ) + +#define ID3D12GraphicsCommandList9_RSSetShadingRateImage(This,shadingRateImage) \ + ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) ) + + +#define ID3D12GraphicsCommandList9_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + + +#define ID3D12GraphicsCommandList9_Barrier(This,NumBarrierGroups,pBarrierGroups) \ + ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) ) + + +#define ID3D12GraphicsCommandList9_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \ + ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) ) + + +#define ID3D12GraphicsCommandList9_RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) \ + ( (This)->lpVtbl -> RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) ) + +#define ID3D12GraphicsCommandList9_IASetIndexBufferStripCutValue(This,IBStripCutValue) \ + ( (This)->lpVtbl -> IASetIndexBufferStripCutValue(This,IBStripCutValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList9_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12GraphicsCommandList10_INTERFACE_DEFINED__ +#define __ID3D12GraphicsCommandList10_INTERFACE_DEFINED__ + +/* interface ID3D12GraphicsCommandList10 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GraphicsCommandList10; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7013c015-d161-4b63-a08c-238552dd8acc") + ID3D12GraphicsCommandList10 : public ID3D12GraphicsCommandList9 + { + public: + virtual void STDMETHODCALLTYPE SetProgram( + _In_ const D3D12_SET_PROGRAM_DESC *pDesc) = 0; + + virtual void STDMETHODCALLTYPE DispatchGraph( + _In_ const D3D12_DISPATCH_GRAPH_DESC *pDesc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GraphicsCommandList10Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GraphicsCommandList10 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GraphicsCommandList10 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GraphicsCommandList10 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12GraphicsCommandList10 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12GraphicsCommandList10 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12GraphicsCommandList10 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12GraphicsCommandList10 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12GraphicsCommandList10 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12GraphicsCommandList10 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12GraphicsCommandList10 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12CommandAllocator *pAllocator, + _In_opt_ ID3D12PipelineState *pInitialState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12GraphicsCommandList10 * This, + _In_opt_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawInstanced) + void ( STDMETHODCALLTYPE *DrawInstanced )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT VertexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DrawIndexedInstanced) + void ( STDMETHODCALLTYPE *DrawIndexedInstanced )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT IndexCountPerInstance, + _In_ UINT InstanceCount, + _In_ UINT StartIndexLocation, + _In_ INT BaseVertexLocation, + _In_ UINT StartInstanceLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, Dispatch) + void ( STDMETHODCALLTYPE *Dispatch )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyBufferRegion) + void ( STDMETHODCALLTYPE *CopyBufferRegion )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTextureRegion) + void ( STDMETHODCALLTYPE *CopyTextureRegion )( + ID3D12GraphicsCommandList10 * This, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pDst, + UINT DstX, + UINT DstY, + UINT DstZ, + _In_ const D3D12_TEXTURE_COPY_LOCATION *pSrc, + _In_opt_ const D3D12_BOX *pSrcBox); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyResource) + void ( STDMETHODCALLTYPE *CopyResource )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12Resource *pDstResource, + _In_ ID3D12Resource *pSrcResource); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, CopyTiles) + void ( STDMETHODCALLTYPE *CopyTiles )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12Resource *pTiledResource, + _In_ const D3D12_TILED_RESOURCE_COORDINATE *pTileRegionStartCoordinate, + _In_ const D3D12_TILE_REGION_SIZE *pTileRegionSize, + _In_ ID3D12Resource *pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveSubresource) + void ( STDMETHODCALLTYPE *ResolveSubresource )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_ DXGI_FORMAT Format); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetPrimitiveTopology) + void ( STDMETHODCALLTYPE *IASetPrimitiveTopology )( + ID3D12GraphicsCommandList10 * This, + _In_ D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetViewports) + void ( STDMETHODCALLTYPE *RSSetViewports )( + ID3D12GraphicsCommandList10 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumViewports, + _In_reads_( NumViewports) const D3D12_VIEWPORT *pViewports); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, RSSetScissorRects) + void ( STDMETHODCALLTYPE *RSSetScissorRects )( + ID3D12GraphicsCommandList10 * This, + _In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) UINT NumRects, + _In_reads_( NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetBlendFactor) + void ( STDMETHODCALLTYPE *OMSetBlendFactor )( + ID3D12GraphicsCommandList10 * This, + _In_reads_opt_(4) const FLOAT BlendFactor[ 4 ]); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetStencilRef) + void ( STDMETHODCALLTYPE *OMSetStencilRef )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT StencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPipelineState) + void ( STDMETHODCALLTYPE *SetPipelineState )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12PipelineState *pPipelineState); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteBundle) + void ( STDMETHODCALLTYPE *ExecuteBundle )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12GraphicsCommandList *pCommandList); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetDescriptorHeaps) + void ( STDMETHODCALLTYPE *SetDescriptorHeaps )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT NumDescriptorHeaps, + _In_reads_(NumDescriptorHeaps) ID3D12DescriptorHeap *const *ppDescriptorHeaps); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootSignature) + void ( STDMETHODCALLTYPE *SetComputeRootSignature )( + ID3D12GraphicsCommandList10 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootSignature) + void ( STDMETHODCALLTYPE *SetGraphicsRootSignature )( + ID3D12GraphicsCommandList10 * This, + _In_opt_ ID3D12RootSignature *pRootSignature); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetComputeRootDescriptorTable )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootDescriptorTable) + void ( STDMETHODCALLTYPE *SetGraphicsRootDescriptorTable )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstant )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstant) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstant )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ UINT SrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetComputeRoot32BitConstants )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRoot32BitConstants) + void ( STDMETHODCALLTYPE *SetGraphicsRoot32BitConstants )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ UINT Num32BitValuesToSet, + _In_reads_(Num32BitValuesToSet*sizeof(UINT)) const void *pSrcData, + _In_ UINT DestOffsetIn32BitValues); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetComputeRootConstantBufferView )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootConstantBufferView) + void ( STDMETHODCALLTYPE *SetGraphicsRootConstantBufferView )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetComputeRootShaderResourceView )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootShaderResourceView) + void ( STDMETHODCALLTYPE *SetGraphicsRootShaderResourceView )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetComputeRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetComputeRootUnorderedAccessView )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetGraphicsRootUnorderedAccessView) + void ( STDMETHODCALLTYPE *SetGraphicsRootUnorderedAccessView )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT RootParameterIndex, + _In_ D3D12_GPU_VIRTUAL_ADDRESS BufferLocation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetIndexBuffer) + void ( STDMETHODCALLTYPE *IASetIndexBuffer )( + ID3D12GraphicsCommandList10 * This, + _In_opt_ const D3D12_INDEX_BUFFER_VIEW *pView); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, IASetVertexBuffers) + void ( STDMETHODCALLTYPE *IASetVertexBuffers )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_VERTEX_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SOSetTargets) + void ( STDMETHODCALLTYPE *SOSetTargets )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT StartSlot, + _In_ UINT NumViews, + _In_reads_opt_(NumViews) const D3D12_STREAM_OUTPUT_BUFFER_VIEW *pViews); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, OMSetRenderTargets) + void ( STDMETHODCALLTYPE *OMSetRenderTargets )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT NumRenderTargetDescriptors, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pRenderTargetDescriptors, + _In_ BOOL RTsSingleHandleToDescriptorRange, + _In_opt_ const D3D12_CPU_DESCRIPTOR_HANDLE *pDepthStencilDescriptor); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearDepthStencilView) + void ( STDMETHODCALLTYPE *ClearDepthStencilView )( + ID3D12GraphicsCommandList10 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + _In_ D3D12_CLEAR_FLAGS ClearFlags, + _In_ FLOAT Depth, + _In_ UINT8 Stencil, + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearRenderTargetView) + void ( STDMETHODCALLTYPE *ClearRenderTargetView )( + ID3D12GraphicsCommandList10 * This, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + _In_ const FLOAT ColorRGBA[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewUint) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewUint )( + ID3D12GraphicsCommandList10 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const UINT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ClearUnorderedAccessViewFloat) + void ( STDMETHODCALLTYPE *ClearUnorderedAccessViewFloat )( + ID3D12GraphicsCommandList10 * This, + _In_ D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + _In_ D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + _In_ ID3D12Resource *pResource, + _In_ const FLOAT Values[ 4 ], + _In_ UINT NumRects, + _In_reads_(NumRects) const D3D12_RECT *pRects); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12GraphicsCommandList10 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12GraphicsCommandList10 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12GraphicsCommandList10 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12GraphicsCommandList10 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList, ExecuteIndirect) + void ( STDMETHODCALLTYPE *ExecuteIndirect )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12CommandSignature *pCommandSignature, + _In_ UINT MaxCommandCount, + _In_ ID3D12Resource *pArgumentBuffer, + _In_ UINT64 ArgumentBufferOffset, + _In_opt_ ID3D12Resource *pCountBuffer, + _In_ UINT64 CountBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, AtomicCopyBufferUINT64) + void ( STDMETHODCALLTYPE *AtomicCopyBufferUINT64 )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12Resource *pDstBuffer, + UINT64 DstOffset, + _In_ ID3D12Resource *pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, + _In_reads_(Dependencies) ID3D12Resource *const *ppDependentResources, + _In_reads_(Dependencies) const D3D12_SUBRESOURCE_RANGE_UINT64 *pDependentSubresourceRanges); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, OMSetDepthBounds) + void ( STDMETHODCALLTYPE *OMSetDepthBounds )( + ID3D12GraphicsCommandList10 * This, + _In_ FLOAT Min, + _In_ FLOAT Max); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetSamplePositions) + void ( STDMETHODCALLTYPE *SetSamplePositions )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT NumSamplesPerPixel, + _In_ UINT NumPixels, + _In_reads_(NumSamplesPerPixel*NumPixels) D3D12_SAMPLE_POSITION *pSamplePositions); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, ResolveSubresourceRegion) + void ( STDMETHODCALLTYPE *ResolveSubresourceRegion )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12Resource *pDstResource, + _In_ UINT DstSubresource, + _In_ UINT DstX, + _In_ UINT DstY, + _In_ ID3D12Resource *pSrcResource, + _In_ UINT SrcSubresource, + _In_opt_ D3D12_RECT *pSrcRect, + _In_ DXGI_FORMAT Format, + _In_ D3D12_RESOLVE_MODE ResolveMode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList1, SetViewInstanceMask) + void ( STDMETHODCALLTYPE *SetViewInstanceMask )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT Mask); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList2, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12GraphicsCommandList10 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList3, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12GraphicsCommandList10 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BeginRenderPass) + void ( STDMETHODCALLTYPE *BeginRenderPass )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT NumRenderTargets, + _In_reads_opt_(NumRenderTargets) const D3D12_RENDER_PASS_RENDER_TARGET_DESC *pRenderTargets, + _In_opt_ const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC *pDepthStencil, + D3D12_RENDER_PASS_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EndRenderPass) + void ( STDMETHODCALLTYPE *EndRenderPass )( + ID3D12GraphicsCommandList10 * This); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, InitializeMetaCommand) + void ( STDMETHODCALLTYPE *InitializeMetaCommand )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(InitializationParametersDataSizeInBytes) const void *pInitializationParametersData, + _In_ SIZE_T InitializationParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, ExecuteMetaCommand) + void ( STDMETHODCALLTYPE *ExecuteMetaCommand )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12MetaCommand *pMetaCommand, + _In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes) const void *pExecutionParametersData, + _In_ SIZE_T ExecutionParametersDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, BuildRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *BuildRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList10 * This, + _In_ const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC *pDesc, + _In_ UINT NumPostbuildInfoDescs, + _In_reads_opt_(NumPostbuildInfoDescs) const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pPostbuildInfoDescs); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, EmitRaytracingAccelerationStructurePostbuildInfo) + void ( STDMETHODCALLTYPE *EmitRaytracingAccelerationStructurePostbuildInfo )( + ID3D12GraphicsCommandList10 * This, + _In_ const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC *pDesc, + _In_ UINT NumSourceAccelerationStructures, + _In_reads_( NumSourceAccelerationStructures ) const D3D12_GPU_VIRTUAL_ADDRESS *pSourceAccelerationStructureData); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, CopyRaytracingAccelerationStructure) + void ( STDMETHODCALLTYPE *CopyRaytracingAccelerationStructure )( + ID3D12GraphicsCommandList10 * This, + _In_ D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData, + _In_ D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData, + _In_ D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, SetPipelineState1) + void ( STDMETHODCALLTYPE *SetPipelineState1 )( + ID3D12GraphicsCommandList10 * This, + _In_ ID3D12StateObject *pStateObject); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList4, DispatchRays) + void ( STDMETHODCALLTYPE *DispatchRays )( + ID3D12GraphicsCommandList10 * This, + _In_ const D3D12_DISPATCH_RAYS_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRate) + void ( STDMETHODCALLTYPE *RSSetShadingRate )( + ID3D12GraphicsCommandList10 * This, + _In_ D3D12_SHADING_RATE baseShadingRate, + _In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT) const D3D12_SHADING_RATE_COMBINER *combiners); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList5, RSSetShadingRateImage) + void ( STDMETHODCALLTYPE *RSSetShadingRateImage )( + ID3D12GraphicsCommandList10 * This, + _In_opt_ ID3D12Resource *shadingRateImage); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList6, DispatchMesh) + void ( STDMETHODCALLTYPE *DispatchMesh )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT ThreadGroupCountX, + _In_ UINT ThreadGroupCountY, + _In_ UINT ThreadGroupCountZ); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList7, Barrier) + void ( STDMETHODCALLTYPE *Barrier )( + ID3D12GraphicsCommandList10 * This, + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList8, OMSetFrontAndBackStencilRef) + void ( STDMETHODCALLTYPE *OMSetFrontAndBackStencilRef )( + ID3D12GraphicsCommandList10 * This, + _In_ UINT FrontStencilRef, + _In_ UINT BackStencilRef); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, RSSetDepthBias) + void ( STDMETHODCALLTYPE *RSSetDepthBias )( + ID3D12GraphicsCommandList10 * This, + _In_ FLOAT DepthBias, + _In_ FLOAT DepthBiasClamp, + _In_ FLOAT SlopeScaledDepthBias); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList9, IASetIndexBufferStripCutValue) + void ( STDMETHODCALLTYPE *IASetIndexBufferStripCutValue )( + ID3D12GraphicsCommandList10 * This, + _In_ D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList10, SetProgram) + void ( STDMETHODCALLTYPE *SetProgram )( + ID3D12GraphicsCommandList10 * This, + _In_ const D3D12_SET_PROGRAM_DESC *pDesc); + + DECLSPEC_XFGVIRT(ID3D12GraphicsCommandList10, DispatchGraph) + void ( STDMETHODCALLTYPE *DispatchGraph )( + ID3D12GraphicsCommandList10 * This, + _In_ const D3D12_DISPATCH_GRAPH_DESC *pDesc); + + END_INTERFACE + } ID3D12GraphicsCommandList10Vtbl; + + interface ID3D12GraphicsCommandList10 + { + CONST_VTBL struct ID3D12GraphicsCommandList10Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GraphicsCommandList10_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GraphicsCommandList10_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GraphicsCommandList10_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GraphicsCommandList10_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12GraphicsCommandList10_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12GraphicsCommandList10_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12GraphicsCommandList10_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12GraphicsCommandList10_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12GraphicsCommandList10_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12GraphicsCommandList10_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12GraphicsCommandList10_Reset(This,pAllocator,pInitialState) \ + ( (This)->lpVtbl -> Reset(This,pAllocator,pInitialState) ) + +#define ID3D12GraphicsCommandList10_ClearState(This,pPipelineState) \ + ( (This)->lpVtbl -> ClearState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList10_DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawInstanced(This,VertexCountPerInstance,InstanceCount,StartVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList10_DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) \ + ( (This)->lpVtbl -> DrawIndexedInstanced(This,IndexCountPerInstance,InstanceCount,StartIndexLocation,BaseVertexLocation,StartInstanceLocation) ) + +#define ID3D12GraphicsCommandList10_Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> Dispatch(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + +#define ID3D12GraphicsCommandList10_CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) \ + ( (This)->lpVtbl -> CopyBufferRegion(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,NumBytes) ) + +#define ID3D12GraphicsCommandList10_CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) \ + ( (This)->lpVtbl -> CopyTextureRegion(This,pDst,DstX,DstY,DstZ,pSrc,pSrcBox) ) + +#define ID3D12GraphicsCommandList10_CopyResource(This,pDstResource,pSrcResource) \ + ( (This)->lpVtbl -> CopyResource(This,pDstResource,pSrcResource) ) + +#define ID3D12GraphicsCommandList10_CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) \ + ( (This)->lpVtbl -> CopyTiles(This,pTiledResource,pTileRegionStartCoordinate,pTileRegionSize,pBuffer,BufferStartOffsetInBytes,Flags) ) + +#define ID3D12GraphicsCommandList10_ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) \ + ( (This)->lpVtbl -> ResolveSubresource(This,pDstResource,DstSubresource,pSrcResource,SrcSubresource,Format) ) + +#define ID3D12GraphicsCommandList10_IASetPrimitiveTopology(This,PrimitiveTopology) \ + ( (This)->lpVtbl -> IASetPrimitiveTopology(This,PrimitiveTopology) ) + +#define ID3D12GraphicsCommandList10_RSSetViewports(This,NumViewports,pViewports) \ + ( (This)->lpVtbl -> RSSetViewports(This,NumViewports,pViewports) ) + +#define ID3D12GraphicsCommandList10_RSSetScissorRects(This,NumRects,pRects) \ + ( (This)->lpVtbl -> RSSetScissorRects(This,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList10_OMSetBlendFactor(This,BlendFactor) \ + ( (This)->lpVtbl -> OMSetBlendFactor(This,BlendFactor) ) + +#define ID3D12GraphicsCommandList10_OMSetStencilRef(This,StencilRef) \ + ( (This)->lpVtbl -> OMSetStencilRef(This,StencilRef) ) + +#define ID3D12GraphicsCommandList10_SetPipelineState(This,pPipelineState) \ + ( (This)->lpVtbl -> SetPipelineState(This,pPipelineState) ) + +#define ID3D12GraphicsCommandList10_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12GraphicsCommandList10_ExecuteBundle(This,pCommandList) \ + ( (This)->lpVtbl -> ExecuteBundle(This,pCommandList) ) + +#define ID3D12GraphicsCommandList10_SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) \ + ( (This)->lpVtbl -> SetDescriptorHeaps(This,NumDescriptorHeaps,ppDescriptorHeaps) ) + +#define ID3D12GraphicsCommandList10_SetComputeRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetComputeRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList10_SetGraphicsRootSignature(This,pRootSignature) \ + ( (This)->lpVtbl -> SetGraphicsRootSignature(This,pRootSignature) ) + +#define ID3D12GraphicsCommandList10_SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetComputeRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList10_SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) \ + ( (This)->lpVtbl -> SetGraphicsRootDescriptorTable(This,RootParameterIndex,BaseDescriptor) ) + +#define ID3D12GraphicsCommandList10_SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList10_SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstant(This,RootParameterIndex,SrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList10_SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetComputeRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList10_SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) \ + ( (This)->lpVtbl -> SetGraphicsRoot32BitConstants(This,RootParameterIndex,Num32BitValuesToSet,pSrcData,DestOffsetIn32BitValues) ) + +#define ID3D12GraphicsCommandList10_SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList10_SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootConstantBufferView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList10_SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList10_SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootShaderResourceView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList10_SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetComputeRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList10_SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) \ + ( (This)->lpVtbl -> SetGraphicsRootUnorderedAccessView(This,RootParameterIndex,BufferLocation) ) + +#define ID3D12GraphicsCommandList10_IASetIndexBuffer(This,pView) \ + ( (This)->lpVtbl -> IASetIndexBuffer(This,pView) ) + +#define ID3D12GraphicsCommandList10_IASetVertexBuffers(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> IASetVertexBuffers(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList10_SOSetTargets(This,StartSlot,NumViews,pViews) \ + ( (This)->lpVtbl -> SOSetTargets(This,StartSlot,NumViews,pViews) ) + +#define ID3D12GraphicsCommandList10_OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) \ + ( (This)->lpVtbl -> OMSetRenderTargets(This,NumRenderTargetDescriptors,pRenderTargetDescriptors,RTsSingleHandleToDescriptorRange,pDepthStencilDescriptor) ) + +#define ID3D12GraphicsCommandList10_ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearDepthStencilView(This,DepthStencilView,ClearFlags,Depth,Stencil,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList10_ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearRenderTargetView(This,RenderTargetView,ColorRGBA,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList10_ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewUint(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList10_ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) \ + ( (This)->lpVtbl -> ClearUnorderedAccessViewFloat(This,ViewGPUHandleInCurrentHeap,ViewCPUHandle,pResource,Values,NumRects,pRects) ) + +#define ID3D12GraphicsCommandList10_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12GraphicsCommandList10_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList10_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12GraphicsCommandList10_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12GraphicsCommandList10_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12GraphicsCommandList10_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList10_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12GraphicsCommandList10_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12GraphicsCommandList10_ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) \ + ( (This)->lpVtbl -> ExecuteIndirect(This,pCommandSignature,MaxCommandCount,pArgumentBuffer,ArgumentBufferOffset,pCountBuffer,CountBufferOffset) ) + + +#define ID3D12GraphicsCommandList10_AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList10_AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) \ + ( (This)->lpVtbl -> AtomicCopyBufferUINT64(This,pDstBuffer,DstOffset,pSrcBuffer,SrcOffset,Dependencies,ppDependentResources,pDependentSubresourceRanges) ) + +#define ID3D12GraphicsCommandList10_OMSetDepthBounds(This,Min,Max) \ + ( (This)->lpVtbl -> OMSetDepthBounds(This,Min,Max) ) + +#define ID3D12GraphicsCommandList10_SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) \ + ( (This)->lpVtbl -> SetSamplePositions(This,NumSamplesPerPixel,NumPixels,pSamplePositions) ) + +#define ID3D12GraphicsCommandList10_ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) \ + ( (This)->lpVtbl -> ResolveSubresourceRegion(This,pDstResource,DstSubresource,DstX,DstY,pSrcResource,SrcSubresource,pSrcRect,Format,ResolveMode) ) + +#define ID3D12GraphicsCommandList10_SetViewInstanceMask(This,Mask) \ + ( (This)->lpVtbl -> SetViewInstanceMask(This,Mask) ) + + +#define ID3D12GraphicsCommandList10_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12GraphicsCommandList10_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + + +#define ID3D12GraphicsCommandList10_BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) \ + ( (This)->lpVtbl -> BeginRenderPass(This,NumRenderTargets,pRenderTargets,pDepthStencil,Flags) ) + +#define ID3D12GraphicsCommandList10_EndRenderPass(This) \ + ( (This)->lpVtbl -> EndRenderPass(This) ) + +#define ID3D12GraphicsCommandList10_InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> InitializeMetaCommand(This,pMetaCommand,pInitializationParametersData,InitializationParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList10_ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteMetaCommand(This,pMetaCommand,pExecutionParametersData,ExecutionParametersDataSizeInBytes) ) + +#define ID3D12GraphicsCommandList10_BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) \ + ( (This)->lpVtbl -> BuildRaytracingAccelerationStructure(This,pDesc,NumPostbuildInfoDescs,pPostbuildInfoDescs) ) + +#define ID3D12GraphicsCommandList10_EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) \ + ( (This)->lpVtbl -> EmitRaytracingAccelerationStructurePostbuildInfo(This,pDesc,NumSourceAccelerationStructures,pSourceAccelerationStructureData) ) + +#define ID3D12GraphicsCommandList10_CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) \ + ( (This)->lpVtbl -> CopyRaytracingAccelerationStructure(This,DestAccelerationStructureData,SourceAccelerationStructureData,Mode) ) + +#define ID3D12GraphicsCommandList10_SetPipelineState1(This,pStateObject) \ + ( (This)->lpVtbl -> SetPipelineState1(This,pStateObject) ) + +#define ID3D12GraphicsCommandList10_DispatchRays(This,pDesc) \ + ( (This)->lpVtbl -> DispatchRays(This,pDesc) ) + + +#define ID3D12GraphicsCommandList10_RSSetShadingRate(This,baseShadingRate,combiners) \ + ( (This)->lpVtbl -> RSSetShadingRate(This,baseShadingRate,combiners) ) + +#define ID3D12GraphicsCommandList10_RSSetShadingRateImage(This,shadingRateImage) \ + ( (This)->lpVtbl -> RSSetShadingRateImage(This,shadingRateImage) ) + + +#define ID3D12GraphicsCommandList10_DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) \ + ( (This)->lpVtbl -> DispatchMesh(This,ThreadGroupCountX,ThreadGroupCountY,ThreadGroupCountZ) ) + + +#define ID3D12GraphicsCommandList10_Barrier(This,NumBarrierGroups,pBarrierGroups) \ + ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) ) + + +#define ID3D12GraphicsCommandList10_OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) \ + ( (This)->lpVtbl -> OMSetFrontAndBackStencilRef(This,FrontStencilRef,BackStencilRef) ) + + +#define ID3D12GraphicsCommandList10_RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) \ + ( (This)->lpVtbl -> RSSetDepthBias(This,DepthBias,DepthBiasClamp,SlopeScaledDepthBias) ) + +#define ID3D12GraphicsCommandList10_IASetIndexBufferStripCutValue(This,IBStripCutValue) \ + ( (This)->lpVtbl -> IASetIndexBufferStripCutValue(This,IBStripCutValue) ) + + +#define ID3D12GraphicsCommandList10_SetProgram(This,pDesc) \ + ( (This)->lpVtbl -> SetProgram(This,pDesc) ) + +#define ID3D12GraphicsCommandList10_DispatchGraph(This,pDesc) \ + ( (This)->lpVtbl -> DispatchGraph(This,pDesc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GraphicsCommandList10_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DSRDeviceFactory_INTERFACE_DEFINED__ +#define __ID3D12DSRDeviceFactory_INTERFACE_DEFINED__ + +/* interface ID3D12DSRDeviceFactory */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DSRDeviceFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f343d1a0-afe3-439f-b13d-cd87a43b70ca") + ID3D12DSRDeviceFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateDSRDevice( + ID3D12Device *pD3D12Device, + UINT NodeMask, + REFIID riid, + _COM_Outptr_ void **ppvDSRDevice) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DSRDeviceFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DSRDeviceFactory * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DSRDeviceFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DSRDeviceFactory * This); + + DECLSPEC_XFGVIRT(ID3D12DSRDeviceFactory, CreateDSRDevice) + HRESULT ( STDMETHODCALLTYPE *CreateDSRDevice )( + ID3D12DSRDeviceFactory * This, + ID3D12Device *pD3D12Device, + UINT NodeMask, + REFIID riid, + _COM_Outptr_ void **ppvDSRDevice); + + END_INTERFACE + } ID3D12DSRDeviceFactoryVtbl; + + interface ID3D12DSRDeviceFactory + { + CONST_VTBL struct ID3D12DSRDeviceFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DSRDeviceFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DSRDeviceFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DSRDeviceFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DSRDeviceFactory_CreateDSRDevice(This,pD3D12Device,NodeMask,riid,ppvDSRDevice) \ + ( (This)->lpVtbl -> CreateDSRDevice(This,pD3D12Device,NodeMask,riid,ppvDSRDevice) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DSRDeviceFactory_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12GBVDiagnostics_INTERFACE_DEFINED__ +#define __ID3D12GBVDiagnostics_INTERFACE_DEFINED__ + +/* interface ID3D12GBVDiagnostics */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12GBVDiagnostics; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("597985ab-9b75-4dbb-be23-0761195bebee") + ID3D12GBVDiagnostics : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetGBVEntireSubresourceStatesData( + _In_ ID3D12Resource *pResource, + _Out_writes_bytes_(DataSize) int *pData, + UINT DataSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGBVSubresourceState( + _In_ ID3D12Resource *pResource, + UINT Subresource, + _Out_ int *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGBVResourceUniformState( + _In_ ID3D12Resource *pResource, + _Out_ int *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGBVResourceInfo( + _In_ ID3D12Resource *pResource, + _In_opt_ D3D12_RESOURCE_DESC *pResourceDesc, + _In_opt_ UINT32 *pResourceHash, + _In_opt_ UINT32 *pSubresourceStatesByteOffset) = 0; + + virtual void STDMETHODCALLTYPE GBVReserved0( void) = 0; + + virtual void STDMETHODCALLTYPE GBVReserved1( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12GBVDiagnosticsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12GBVDiagnostics * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12GBVDiagnostics * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12GBVDiagnostics * This); + + DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVEntireSubresourceStatesData) + HRESULT ( STDMETHODCALLTYPE *GetGBVEntireSubresourceStatesData )( + ID3D12GBVDiagnostics * This, + _In_ ID3D12Resource *pResource, + _Out_writes_bytes_(DataSize) int *pData, + UINT DataSize); + + DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVSubresourceState) + HRESULT ( STDMETHODCALLTYPE *GetGBVSubresourceState )( + ID3D12GBVDiagnostics * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + _Out_ int *pData); + + DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVResourceUniformState) + HRESULT ( STDMETHODCALLTYPE *GetGBVResourceUniformState )( + ID3D12GBVDiagnostics * This, + _In_ ID3D12Resource *pResource, + _Out_ int *pData); + + DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GetGBVResourceInfo) + HRESULT ( STDMETHODCALLTYPE *GetGBVResourceInfo )( + ID3D12GBVDiagnostics * This, + _In_ ID3D12Resource *pResource, + _In_opt_ D3D12_RESOURCE_DESC *pResourceDesc, + _In_opt_ UINT32 *pResourceHash, + _In_opt_ UINT32 *pSubresourceStatesByteOffset); + + DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GBVReserved0) + void ( STDMETHODCALLTYPE *GBVReserved0 )( + ID3D12GBVDiagnostics * This); + + DECLSPEC_XFGVIRT(ID3D12GBVDiagnostics, GBVReserved1) + void ( STDMETHODCALLTYPE *GBVReserved1 )( + ID3D12GBVDiagnostics * This); + + END_INTERFACE + } ID3D12GBVDiagnosticsVtbl; + + interface ID3D12GBVDiagnostics + { + CONST_VTBL struct ID3D12GBVDiagnosticsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12GBVDiagnostics_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12GBVDiagnostics_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12GBVDiagnostics_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12GBVDiagnostics_GetGBVEntireSubresourceStatesData(This,pResource,pData,DataSize) \ + ( (This)->lpVtbl -> GetGBVEntireSubresourceStatesData(This,pResource,pData,DataSize) ) + +#define ID3D12GBVDiagnostics_GetGBVSubresourceState(This,pResource,Subresource,pData) \ + ( (This)->lpVtbl -> GetGBVSubresourceState(This,pResource,Subresource,pData) ) + +#define ID3D12GBVDiagnostics_GetGBVResourceUniformState(This,pResource,pData) \ + ( (This)->lpVtbl -> GetGBVResourceUniformState(This,pResource,pData) ) + +#define ID3D12GBVDiagnostics_GetGBVResourceInfo(This,pResource,pResourceDesc,pResourceHash,pSubresourceStatesByteOffset) \ + ( (This)->lpVtbl -> GetGBVResourceInfo(This,pResource,pResourceDesc,pResourceHash,pSubresourceStatesByteOffset) ) + +#define ID3D12GBVDiagnostics_GBVReserved0(This) \ + ( (This)->lpVtbl -> GBVReserved0(This) ) + +#define ID3D12GBVDiagnostics_GBVReserved1(This) \ + ( (This)->lpVtbl -> GBVReserved1(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12GBVDiagnostics_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12_0000_0080 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion +DEFINE_GUID(IID_ID3D12Object,0xc4fec28f,0x7966,0x4e95,0x9f,0x94,0xf4,0x31,0xcb,0x56,0xc3,0xb8); +DEFINE_GUID(IID_ID3D12DeviceChild,0x905db94b,0xa00c,0x4140,0x9d,0xf5,0x2b,0x64,0xca,0x9e,0xa3,0x57); +DEFINE_GUID(IID_ID3D12RootSignature,0xc54a6b66,0x72df,0x4ee8,0x8b,0xe5,0xa9,0x46,0xa1,0x42,0x92,0x14); +DEFINE_GUID(IID_ID3D12RootSignatureDeserializer,0x34AB647B,0x3CC8,0x46AC,0x84,0x1B,0xC0,0x96,0x56,0x45,0xC0,0x46); +DEFINE_GUID(IID_ID3D12VersionedRootSignatureDeserializer,0x7F91CE67,0x090C,0x4BB7,0xB7,0x8E,0xED,0x8F,0xF2,0xE3,0x1D,0xA0); +DEFINE_GUID(IID_ID3D12Pageable,0x63ee58fb,0x1268,0x4835,0x86,0xda,0xf0,0x08,0xce,0x62,0xf0,0xd6); +DEFINE_GUID(IID_ID3D12Heap,0x6b3b2502,0x6e51,0x45b3,0x90,0xee,0x98,0x84,0x26,0x5e,0x8d,0xf3); +DEFINE_GUID(IID_ID3D12Resource,0x696442be,0xa72e,0x4059,0xbc,0x79,0x5b,0x5c,0x98,0x04,0x0f,0xad); +DEFINE_GUID(IID_ID3D12CommandAllocator,0x6102dee4,0xaf59,0x4b09,0xb9,0x99,0xb4,0x4d,0x73,0xf0,0x9b,0x24); +DEFINE_GUID(IID_ID3D12Fence,0x0a753dcf,0xc4d8,0x4b91,0xad,0xf6,0xbe,0x5a,0x60,0xd9,0x5a,0x76); +DEFINE_GUID(IID_ID3D12Fence1,0x433685fe,0xe22b,0x4ca0,0xa8,0xdb,0xb5,0xb4,0xf4,0xdd,0x0e,0x4a); +DEFINE_GUID(IID_ID3D12PipelineState,0x765a30f3,0xf624,0x4c6f,0xa8,0x28,0xac,0xe9,0x48,0x62,0x24,0x45); +DEFINE_GUID(IID_ID3D12DescriptorHeap,0x8efb471d,0x616c,0x4f49,0x90,0xf7,0x12,0x7b,0xb7,0x63,0xfa,0x51); +DEFINE_GUID(IID_ID3D12QueryHeap,0x0d9658ae,0xed45,0x469e,0xa6,0x1d,0x97,0x0e,0xc5,0x83,0xca,0xb4); +DEFINE_GUID(IID_ID3D12CommandSignature,0xc36a797c,0xec80,0x4f0a,0x89,0x85,0xa7,0xb2,0x47,0x50,0x82,0xd1); +DEFINE_GUID(IID_ID3D12CommandList,0x7116d91c,0xe7e4,0x47ce,0xb8,0xc6,0xec,0x81,0x68,0xf4,0x37,0xe5); +DEFINE_GUID(IID_ID3D12GraphicsCommandList,0x5b160d0f,0xac1b,0x4185,0x8b,0xa8,0xb3,0xae,0x42,0xa5,0xa4,0x55); +DEFINE_GUID(IID_ID3D12GraphicsCommandList1,0x553103fb,0x1fe7,0x4557,0xbb,0x38,0x94,0x6d,0x7d,0x0e,0x7c,0xa7); +DEFINE_GUID(IID_ID3D12GraphicsCommandList2,0x38C3E585,0xFF17,0x412C,0x91,0x50,0x4F,0xC6,0xF9,0xD7,0x2A,0x28); +DEFINE_GUID(IID_ID3D12CommandQueue,0x0ec870a6,0x5d7e,0x4c22,0x8c,0xfc,0x5b,0xaa,0xe0,0x76,0x16,0xed); +DEFINE_GUID(IID_ID3D12Device,0x189819f1,0x1db6,0x4b57,0xbe,0x54,0x18,0x21,0x33,0x9b,0x85,0xf7); +DEFINE_GUID(IID_ID3D12PipelineLibrary,0xc64226a8,0x9201,0x46af,0xb4,0xcc,0x53,0xfb,0x9f,0xf7,0x41,0x4f); +DEFINE_GUID(IID_ID3D12PipelineLibrary1,0x80eabf42,0x2568,0x4e5e,0xbd,0x82,0xc3,0x7f,0x86,0x96,0x1d,0xc3); +DEFINE_GUID(IID_ID3D12Device1,0x77acce80,0x638e,0x4e65,0x88,0x95,0xc1,0xf2,0x33,0x86,0x86,0x3e); +DEFINE_GUID(IID_ID3D12Device2,0x30baa41e,0xb15b,0x475c,0xa0,0xbb,0x1a,0xf5,0xc5,0xb6,0x43,0x28); +DEFINE_GUID(IID_ID3D12Device3,0x81dadc15,0x2bad,0x4392,0x93,0xc5,0x10,0x13,0x45,0xc4,0xaa,0x98); +DEFINE_GUID(IID_ID3D12ProtectedSession,0xA1533D18,0x0AC1,0x4084,0x85,0xB9,0x89,0xA9,0x61,0x16,0x80,0x6B); +DEFINE_GUID(IID_ID3D12ProtectedResourceSession,0x6CD696F4,0xF289,0x40CC,0x80,0x91,0x5A,0x6C,0x0A,0x09,0x9C,0x3D); +DEFINE_GUID(IID_ID3D12Device4,0xe865df17,0xa9ee,0x46f9,0xa4,0x63,0x30,0x98,0x31,0x5a,0xa2,0xe5); +DEFINE_GUID(IID_ID3D12LifetimeOwner,0xe667af9f,0xcd56,0x4f46,0x83,0xce,0x03,0x2e,0x59,0x5d,0x70,0xa8); +DEFINE_GUID(IID_ID3D12SwapChainAssistant,0xf1df64b6,0x57fd,0x49cd,0x88,0x07,0xc0,0xeb,0x88,0xb4,0x5c,0x8f); +DEFINE_GUID(IID_ID3D12LifetimeTracker,0x3fd03d36,0x4eb1,0x424a,0xa5,0x82,0x49,0x4e,0xcb,0x8b,0xa8,0x13); +DEFINE_GUID(IID_ID3D12StateObject,0x47016943,0xfca8,0x4594,0x93,0xea,0xaf,0x25,0x8b,0x55,0x34,0x6d); +DEFINE_GUID(IID_ID3D12StateObjectProperties,0xde5fa827,0x9bf9,0x4f26,0x89,0xff,0xd7,0xf5,0x6f,0xde,0x38,0x60); +DEFINE_GUID(IID_ID3D12StateObjectProperties1,0x460caac7,0x1d24,0x446a,0xa1,0x84,0xca,0x67,0xdb,0x49,0x41,0x38); +DEFINE_GUID(IID_ID3D12WorkGraphProperties,0x065acf71,0xf863,0x4b89,0x82,0xf4,0x02,0xe4,0xd5,0x88,0x67,0x57); +DEFINE_GUID(IID_ID3D12Device5,0x8b4f173b,0x2fea,0x4b80,0x8f,0x58,0x43,0x07,0x19,0x1a,0xb9,0x5d); +DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings,0x82BC481C,0x6B9B,0x4030,0xAE,0xDB,0x7E,0xE3,0xD1,0xDF,0x1E,0x63); +DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings1,0xDBD5AE51,0x3317,0x4F0A,0xAD,0xF9,0x1D,0x7C,0xED,0xCA,0xAE,0x0B); +DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings2,0x61552388,0x01ab,0x4008,0xa4,0x36,0x83,0xdb,0x18,0x95,0x66,0xea); +DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData,0x98931D33,0x5AE8,0x4791,0xAA,0x3C,0x1A,0x73,0xA2,0x93,0x4E,0x71); +DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData1,0x9727A022,0xCF1D,0x4DDA,0x9E,0xBA,0xEF,0xFA,0x65,0x3F,0xC5,0x06); +DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData2,0x67FC5816,0xE4CA,0x4915,0xBF,0x18,0x42,0x54,0x12,0x72,0xDA,0x54); +DEFINE_GUID(IID_ID3D12Device6,0xc70b221b,0x40e4,0x4a17,0x89,0xaf,0x02,0x5a,0x07,0x27,0xa6,0xdc); +DEFINE_GUID(IID_ID3D12ProtectedResourceSession1,0xD6F12DD6,0x76FB,0x406E,0x89,0x61,0x42,0x96,0xEE,0xFC,0x04,0x09); +DEFINE_GUID(IID_ID3D12Device7,0x5c014b53,0x68a1,0x4b9b,0x8b,0xd1,0xdd,0x60,0x46,0xb9,0x35,0x8b); +DEFINE_GUID(IID_ID3D12Device8,0x9218E6BB,0xF944,0x4F7E,0xA7,0x5C,0xB1,0xB2,0xC7,0xB7,0x01,0xF3); +DEFINE_GUID(IID_ID3D12Resource1,0x9D5E227A,0x4430,0x4161,0x88,0xB3,0x3E,0xCA,0x6B,0xB1,0x6E,0x19); +DEFINE_GUID(IID_ID3D12Resource2,0xBE36EC3B,0xEA85,0x4AEB,0xA4,0x5A,0xE9,0xD7,0x64,0x04,0xA4,0x95); +DEFINE_GUID(IID_ID3D12Heap1,0x572F7389,0x2168,0x49E3,0x96,0x93,0xD6,0xDF,0x58,0x71,0xBF,0x6D); +DEFINE_GUID(IID_ID3D12GraphicsCommandList3,0x6FDA83A7,0xB84C,0x4E38,0x9A,0xC8,0xC7,0xBD,0x22,0x01,0x6B,0x3D); +DEFINE_GUID(IID_ID3D12MetaCommand,0xDBB84C27,0x36CE,0x4FC9,0xB8,0x01,0xF0,0x48,0xC4,0x6A,0xC5,0x70); +DEFINE_GUID(IID_ID3D12GraphicsCommandList4,0x8754318e,0xd3a9,0x4541,0x98,0xcf,0x64,0x5b,0x50,0xdc,0x48,0x74); +DEFINE_GUID(IID_ID3D12ShaderCacheSession,0x28e2495d,0x0f64,0x4ae4,0xa6,0xec,0x12,0x92,0x55,0xdc,0x49,0xa8); +DEFINE_GUID(IID_ID3D12Device9,0x4c80e962,0xf032,0x4f60,0xbc,0x9e,0xeb,0xc2,0xcf,0xa1,0xd8,0x3c); +DEFINE_GUID(IID_ID3D12Device10,0x517f8718,0xaa66,0x49f9,0xb0,0x2b,0xa7,0xab,0x89,0xc0,0x60,0x31); +DEFINE_GUID(IID_ID3D12Device11,0x5405c344,0xd457,0x444e,0xb4,0xdd,0x23,0x66,0xe4,0x5a,0xee,0x39); +DEFINE_GUID(IID_ID3D12Device12,0x5af5c532,0x4c91,0x4cd0,0xb5,0x41,0x15,0xa4,0x05,0x39,0x5f,0xc5); +DEFINE_GUID(IID_ID3D12Device13,0x14eecffc,0x4df8,0x40f7,0xa1,0x18,0x5c,0x81,0x6f,0x45,0x69,0x5e); +DEFINE_GUID(IID_ID3D12Device14,0x5f6e592d,0xd895,0x44c2,0x8e,0x4a,0x88,0xad,0x49,0x26,0xd3,0x23); +DEFINE_GUID(IID_ID3D12VirtualizationGuestDevice,0xbc66d368,0x7373,0x4943,0x87,0x57,0xfc,0x87,0xdc,0x79,0xe4,0x76); +DEFINE_GUID(IID_ID3D12Tools,0x7071e1f0,0xe84b,0x4b33,0x97,0x4f,0x12,0xfa,0x49,0xde,0x65,0xc5); +DEFINE_GUID(IID_ID3D12Tools1,0xe4fbc019,0xdd3c,0x43e1,0x8f,0x32,0x7f,0x64,0x95,0x75,0xf0,0xa0); +DEFINE_GUID(IID_ID3D12Tools2,0x01d393c5,0xc9b0,0x42a1,0x95,0x8c,0xc2,0x6b,0x02,0xd4,0xd0,0x97); +DEFINE_GUID(IID_ID3D12PageableTools,0x8f1359db,0xd8d1,0x42f9,0xb5,0xcf,0x79,0xf4,0xcb,0xad,0x0d,0x3d); +DEFINE_GUID(IID_ID3D12DeviceTools,0x2ea68e9c,0x19c3,0x4e47,0xa1,0x09,0x6c,0xda,0xdf,0xf0,0xac,0xa9); +DEFINE_GUID(IID_ID3D12DeviceTools1,0xe30e9fc7,0xe641,0x4d6e,0x8a,0x81,0x9d,0xd9,0x20,0x6e,0xc4,0x7a); +DEFINE_GUID(IID_ID3D12SDKConfiguration,0xe9eb5314,0x33aa,0x42b2,0xa7,0x18,0xd7,0x7f,0x58,0xb1,0xf1,0xc7); +DEFINE_GUID(IID_ID3D12SDKConfiguration1,0x8aaf9303,0xad25,0x48b9,0x9a,0x57,0xd9,0xc3,0x7e,0x00,0x9d,0x9f); +DEFINE_GUID(IID_ID3D12DeviceFactory,0x61f307d3,0xd34e,0x4e7c,0x83,0x74,0x3b,0xa4,0xde,0x23,0xcc,0xcb); +DEFINE_GUID(IID_ID3D12DeviceConfiguration,0x78dbf87b,0xf766,0x422b,0xa6,0x1c,0xc8,0xc4,0x46,0xbd,0xb9,0xad); +DEFINE_GUID(IID_ID3D12DeviceConfiguration1,0xed342442,0x6343,0x4e16,0xbb,0x82,0xa3,0xa5,0x77,0x87,0x4e,0x56); +DEFINE_GUID(IID_ID3D12GraphicsCommandList5,0x55050859,0x4024,0x474c,0x87,0xf5,0x64,0x72,0xea,0xee,0x44,0xea); +DEFINE_GUID(IID_ID3D12GraphicsCommandList6,0xc3827890,0xe548,0x4cfa,0x96,0xcf,0x56,0x89,0xa9,0x37,0x0f,0x80); +DEFINE_GUID(IID_ID3D12GraphicsCommandList7,0xdd171223,0x8b61,0x4769,0x90,0xe3,0x16,0x0c,0xcd,0xe4,0xe2,0xc1); +DEFINE_GUID(IID_ID3D12GraphicsCommandList8,0xee936ef9,0x599d,0x4d28,0x93,0x8e,0x23,0xc4,0xad,0x05,0xce,0x51); +DEFINE_GUID(IID_ID3D12GraphicsCommandList9,0x34ed2808,0xffe6,0x4c2b,0xb1,0x1a,0xca,0xbd,0x2b,0x0c,0x59,0xe1); +DEFINE_GUID(IID_ID3D12GraphicsCommandList10,0x7013c015,0xd161,0x4b63,0xa0,0x8c,0x23,0x85,0x52,0xdd,0x8a,0xcc); +DEFINE_GUID(IID_ID3D12DSRDeviceFactory,0xf343d1a0,0xafe3,0x439f,0xb1,0x3d,0xcd,0x87,0xa4,0x3b,0x70,0xca); +DEFINE_GUID(IID_ID3D12GBVDiagnostics,0x597985ab,0x9b75,0x4dbb,0xbe,0x23,0x07,0x61,0x19,0x5b,0xeb,0xee); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0080_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12_0000_0080_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12.idl new file mode 100644 index 0000000000000000000000000000000000000000..9db01e790111d4602b8724f241f5da0928aa648a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12.idl @@ -0,0 +1,6823 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ +import "oaidl.idl"; +import "ocidl.idl"; + +import "dxgicommon.idl"; +import "dxgiformat.idl"; + +import "d3dcommon.idl"; + +cpp_quote("#include ") + +#pragma region App Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)") + +// NOTE: The following constants are generated from the D3D12 hardware spec. Do not edit these values directly. +cpp_quote( "#ifndef _D3D12_CONSTANTS" ) +cpp_quote( "#define _D3D12_CONSTANTS" ) +const UINT D3D12_16BIT_INDEX_STRIP_CUT_VALUE = 0xffff; +const UINT D3D12_32BIT_INDEX_STRIP_CUT_VALUE = 0xffffffff; +const UINT D3D12_8BIT_INDEX_STRIP_CUT_VALUE = 0xff; +const UINT D3D12_APPEND_ALIGNED_ELEMENT = 0xffffffff; +const UINT D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = 9; +const UINT D3D12_CLIP_OR_CULL_DISTANCE_COUNT = 8; +const UINT D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = 2; +const UINT D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = 14; +const UINT D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = 4; +const UINT D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = 15; +const UINT D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = 16; +const UINT D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4; +const UINT D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = 15; +const UINT D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1; +const UINT D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1; +const UINT D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = 64; +const UINT D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = 4; +const UINT D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = 1; +const UINT D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = 1; +const UINT D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = 1; +const UINT D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = 1; +const UINT D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = 128; +const UINT D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = 1; +const UINT D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = 1; +const UINT D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = 128; +const UINT D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = 1; +const UINT D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT = 16; +const UINT D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = 1; +const UINT D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = 1; +const UINT D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT = 16; +const UINT D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = 32; +const UINT D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS = 4; +const UINT D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_COMMONSHADER_TEMP_REGISTER_COUNT = 4096; +const UINT D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = 3; +const UINT D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS = 3; +const UINT D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = 10; +const INT D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = -10; +const INT D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = -8; +const UINT D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = 7; +const UINT D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT = 256; +const UINT D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 256; +const UINT D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = 64; +const UINT D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 240; +const UINT D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = 68; +const UINT D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 224; +const UINT D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = 72; +const UINT D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 208; +const UINT D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = 76; +const UINT D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 192; +const UINT D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = 84; +const UINT D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 176; +const UINT D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = 92; +const UINT D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 160; +const UINT D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = 100; +const UINT D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 144; +const UINT D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = 112; +const UINT D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 128; +const UINT D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = 128; +const UINT D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 112; +const UINT D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = 144; +const UINT D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 96; +const UINT D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = 168; +const UINT D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 80; +const UINT D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = 204; +const UINT D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 64; +const UINT D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = 256; +const UINT D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 48; +const UINT D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = 340; +const UINT D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 32; +const UINT D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = 512; +const UINT D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = 16; +const UINT D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = 768; +const UINT D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = 1; +const UINT D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = 256; +const UINT D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = 768; +const UINT D3D12_CS_4_X_THREAD_GROUP_MAX_X = 768; +const UINT D3D12_CS_4_X_THREAD_GROUP_MAX_Y = 768; +const UINT D3D12_CS_4_X_UAV_REGISTER_COUNT = 1; +const UINT D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = 65535; +const UINT D3D12_CS_TGSM_REGISTER_COUNT = 8192; +const UINT D3D12_CS_TGSM_REGISTER_READS_PER_INST = 1; +const UINT D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = 1; +const UINT D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = 1; +const UINT D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS = 3; +const UINT D3D12_CS_THREADGROUPID_REGISTER_COUNT = 1; +const UINT D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS = 1; +const UINT D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT = 1; +const UINT D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS = 3; +const UINT D3D12_CS_THREADIDINGROUP_REGISTER_COUNT = 1; +const UINT D3D12_CS_THREADID_REGISTER_COMPONENTS = 3; +const UINT D3D12_CS_THREADID_REGISTER_COUNT = 1; +const UINT D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = 1024; +const UINT D3D12_CS_THREAD_GROUP_MAX_X = 1024; +const UINT D3D12_CS_THREAD_GROUP_MAX_Y = 1024; +const UINT D3D12_CS_THREAD_GROUP_MAX_Z = 64; +const UINT D3D12_CS_THREAD_GROUP_MIN_X = 1; +const UINT D3D12_CS_THREAD_GROUP_MIN_Y = 1; +const UINT D3D12_CS_THREAD_GROUP_MIN_Z = 1; +const UINT D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = 16384; +cpp_quote( "#define D3D12_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )" ) +cpp_quote( "#define D3D12_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )" ) +cpp_quote( "#define D3D12_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )" ) +cpp_quote( "#define D3D12_DEFAULT_BLEND_FACTOR_RED ( 1.0f )" ) +cpp_quote( "#define D3D12_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )" ) +const UINT D3D12_DEFAULT_DEPTH_BIAS = 0; +cpp_quote( "#define D3D12_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )" ) +const UINT D3D12_DEFAULT_MAX_ANISOTROPY = 16; +cpp_quote( "#define D3D12_DEFAULT_MIP_LOD_BIAS ( 0.0f )" ) +const UINT D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT = 4194304; +const UINT D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX = 0; +const UINT D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT = 65536; +const UINT D3D12_DEFAULT_SAMPLE_MASK = 0xffffffff; +const UINT D3D12_DEFAULT_SCISSOR_ENDX = 0; +const UINT D3D12_DEFAULT_SCISSOR_ENDY = 0; +const UINT D3D12_DEFAULT_SCISSOR_STARTX = 0; +const UINT D3D12_DEFAULT_SCISSOR_STARTY = 0; +cpp_quote( "#define D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )" ) +const UINT D3D12_DEFAULT_STENCIL_READ_MASK = 0xff; +const UINT D3D12_DEFAULT_STENCIL_REFERENCE = 0; +const UINT D3D12_DEFAULT_STENCIL_WRITE_MASK = 0xff; +const UINT D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = 0; +const UINT D3D12_DEFAULT_VIEWPORT_HEIGHT = 0; +cpp_quote( "#define D3D12_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )" ) +cpp_quote( "#define D3D12_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )" ) +const UINT D3D12_DEFAULT_VIEWPORT_TOPLEFTX = 0; +const UINT D3D12_DEFAULT_VIEWPORT_TOPLEFTY = 0; +const UINT D3D12_DEFAULT_VIEWPORT_WIDTH = 0; +const UINT D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND = 0xffffffff; +const UINT D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END = 0xfffffff7; +const UINT D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START = 0xfffffff0; +const UINT D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = 3968; +const UINT D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS = 4; +const UINT D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT = 32; +const UINT D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST = 2; +const UINT D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS = 1; +const UINT D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS = 3; +const UINT D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT = 1; +const UINT D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST = 2; +const UINT D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS = 1; +const UINT D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = 4; +const UINT D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT = 32; +const UINT D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = 2; +const UINT D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = 1; +const UINT D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = 1; +const UINT D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = 1; +const UINT D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = 2; +const UINT D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = 1; +const UINT D3D12_DS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_DS_OUTPUT_REGISTER_COUNT = 32; +cpp_quote( "#define D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )" ) +cpp_quote( "#define D3D12_FLOAT32_MAX ( 3.402823466e+38f )" ) +cpp_quote( "#define D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )" ) +cpp_quote( "#define D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )" ) +cpp_quote( "#define D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )" ) +cpp_quote( "#define D3D12_FLOAT_TO_SRGB_OFFSET ( 0.055f )" ) +cpp_quote( "#define D3D12_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )" ) +cpp_quote( "#define D3D12_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )" ) +cpp_quote( "#define D3D12_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )" ) +cpp_quote( "#define D3D12_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )" ) +cpp_quote( "#define D3D12_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )" ) +cpp_quote( "#define D3D12_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )" ) +cpp_quote( "#define D3D12_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )" ) +const UINT D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST = 2; +const UINT D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS = 1; +const UINT D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS = 1; +const UINT D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT = 1; +const UINT D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = 1; +const UINT D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT = 1; +const UINT D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = 2; +const UINT D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = 1; +const UINT D3D12_GS_INPUT_REGISTER_COMPONENTS = 4; +const UINT D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_GS_INPUT_REGISTER_COUNT = 32; +const UINT D3D12_GS_INPUT_REGISTER_READS_PER_INST = 2; +const UINT D3D12_GS_INPUT_REGISTER_READ_PORTS = 1; +const UINT D3D12_GS_INPUT_REGISTER_VERTICES = 32; +const UINT D3D12_GS_MAX_INSTANCE_COUNT = 32; +const UINT D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES = 1024; +const UINT D3D12_GS_OUTPUT_ELEMENTS = 32; +const UINT D3D12_GS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_GS_OUTPUT_REGISTER_COUNT = 32; +const UINT D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT = 32; +const UINT D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT = 32; +const UINT D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS = 4; +const UINT D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST = 2; +const UINT D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS = 1; +const UINT D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND = 0xFFFFFFFF; +const UINT D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS = 1; +const UINT D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT = 1; +const UINT D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST = 2; +const UINT D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS = 1; +const UINT D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS = 1; +const UINT D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT = 1; +const UINT D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST = 2; +const UINT D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS = 1; +const UINT D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = 1; +const UINT D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = 1; +const UINT D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = 2; +const UINT D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = 1; +const UINT D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND = 0xFFFFFFFF; +cpp_quote( "#define D3D12_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )" ) +cpp_quote( "#define D3D12_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )" ) +const UINT D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = 3968; +const UINT D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS = 1; +const UINT D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT = 1; +const UINT D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST = 2; +const UINT D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS = 1; +const UINT D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = 4; +const UINT D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT = 32; +const UINT D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = 2; +const UINT D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = 1; +const UINT D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS = 128; +const UINT D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = 0; +const UINT D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY = 0; +const UINT D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = 0; +const UINT D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = 1; +const UINT D3D12_IA_INSTANCE_ID_BIT_COUNT = 32; +const UINT D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT = 32; +const UINT D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT = 32; +const UINT D3D12_IA_PRIMITIVE_ID_BIT_COUNT = 32; +const UINT D3D12_IA_VERTEX_ID_BIT_COUNT = 32; +const UINT D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32; +const UINT D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 128; +const UINT D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 32; +const UINT D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = 0xffffffff; +const UINT D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER = 0xffffffff; +const UINT D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = 0xffffffff; +const UINT D3D12_KEEP_UNORDERED_ACCESS_VIEWS = 0xffffffff; +cpp_quote( "#define D3D12_LINEAR_GAMMA ( 1.0f )" ) +const UINT D3D12_MAJOR_VERSION = 12; +cpp_quote( "#define D3D12_MAX_BORDER_COLOR_COMPONENT ( 1.0f )" ) +cpp_quote( "#define D3D12_MAX_DEPTH ( 1.0f )" ) +const UINT D3D12_MAX_LIVE_STATIC_SAMPLERS = 2032; +const UINT D3D12_MAX_MAXANISOTROPY = 16; +const UINT D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT = 32; +cpp_quote( "#define D3D12_MAX_POSITION_VALUE ( 3.402823466e+34f )" ) +const UINT D3D12_MAX_ROOT_COST = 64; +const UINT D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 = 1000000; +const UINT D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 = 1000000; +const UINT D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE = 2048; +const UINT D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP = 17; +const UINT D3D12_MAX_VIEW_INSTANCE_COUNT = 4; +const UINT D3D12_MINOR_VERSION = 0; +cpp_quote( "#define D3D12_MIN_BORDER_COLOR_COMPONENT ( 0.0f )" ) +cpp_quote( "#define D3D12_MIN_DEPTH ( 0.0f )" ) +const UINT D3D12_MIN_MAXANISOTROPY = 0; +cpp_quote( "#define D3D12_MIP_LOD_BIAS_MAX ( 15.99f )" ) +cpp_quote( "#define D3D12_MIP_LOD_BIAS_MIN ( -16.0f )" ) +const UINT D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT = 8; +const UINT D3D12_MIP_LOD_RANGE_BIT_COUNT = 8; +cpp_quote( "#define D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )" ) +const UINT D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = 0; +const UINT D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END = 0xffffffff; +const UINT D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START = 0xfffffff8; +const UINT D3D12_PACKED_TILE = 0xffffffff; +const UINT D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT = 15; +const UINT D3D12_PREVIEW_SDK_VERSION = 717; +const UINT D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = 16; +const UINT D3D12_PS_CS_UAV_REGISTER_COMPONENTS = 1; +const UINT D3D12_PS_CS_UAV_REGISTER_COUNT = 8; +const UINT D3D12_PS_CS_UAV_REGISTER_READS_PER_INST = 1; +const UINT D3D12_PS_CS_UAV_REGISTER_READ_PORTS = 1; +const UINT D3D12_PS_FRONTFACING_DEFAULT_VALUE = 0xFFFFFFFF; +const UINT D3D12_PS_FRONTFACING_FALSE_VALUE = 0x00000000; +const UINT D3D12_PS_FRONTFACING_TRUE_VALUE = 0xFFFFFFFF; +const UINT D3D12_PS_INPUT_REGISTER_COMPONENTS = 4; +const UINT D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_PS_INPUT_REGISTER_COUNT = 32; +const UINT D3D12_PS_INPUT_REGISTER_READS_PER_INST = 2; +const UINT D3D12_PS_INPUT_REGISTER_READ_PORTS = 1; +cpp_quote( "#define D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )" ) +const UINT D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = 1; +const UINT D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT = 1; +const UINT D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1; +const UINT D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_PS_OUTPUT_MASK_REGISTER_COUNT = 1; +const UINT D3D12_PS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_PS_OUTPUT_REGISTER_COUNT = 8; +cpp_quote( "#define D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )" ) +const UINT D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT = 16; +const UINT D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT = 8; +const UINT D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT = 256; +const UINT D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT = 16; +const UINT D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES = 32; +const UINT D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH = 31; +const UINT D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE = 16777216; +const UINT D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE = 16777216; +const UINT D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE = 536870912; +const UINT D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS = 1073741824; +const UINT D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE = 4096; +const UINT D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT = 32; +const UINT D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT = 64; +const UINT D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT = 16; +const UINT D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = 4096; +const UINT D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = 27; +const UINT D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = 4096; +const UINT D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = 4096; +const UINT D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 32; +const UINT D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = 32; +const UINT D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = 16384; +const UINT D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = 1024; +const UINT D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = 4096; +const UINT D3D12_REQ_MAXANISOTROPY = 16; +const UINT D3D12_REQ_MIP_LEVELS = 15; +const UINT D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = 2048; +const UINT D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = 4096; +const UINT D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = 16384; +const UINT D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = 128; +cpp_quote( "#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )" ) +const UINT D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = 2048; +const UINT D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = 20; +const UINT D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = 4096; +const UINT D3D12_REQ_SUBRESOURCES = 30720; +const UINT D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = 2048; +const UINT D3D12_REQ_TEXTURE1D_U_DIMENSION = 16384; +const UINT D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048; +const UINT D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION = 16384; +const UINT D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 2048; +const UINT D3D12_REQ_TEXTURECUBE_DIMENSION = 16384; +const UINT D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = 0; +const UINT D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES = 0xffffffff; +const UINT D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT = 2; +const UINT D3D12_SDK_VERSION = 616; +const UINT D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES = 32; +const UINT D3D12_SHADER_MAJOR_VERSION = 5; +const UINT D3D12_SHADER_MAX_INSTANCES = 65535; +const UINT D3D12_SHADER_MAX_INTERFACES = 253; +const UINT D3D12_SHADER_MAX_INTERFACE_CALL_SITES = 4096; +const UINT D3D12_SHADER_MAX_TYPES = 65535; +const UINT D3D12_SHADER_MINOR_VERSION = 1; +const UINT D3D12_SHIFT_INSTRUCTION_PAD_VALUE = 0; +const UINT D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = 5; +const UINT D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT = 8; +const UINT D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT = 65536; +const UINT D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT = 4096; +const UINT D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048; +const UINT D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 512; +const UINT D3D12_SO_BUFFER_SLOT_COUNT = 4; +const UINT D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP = 0xffffffff; +const UINT D3D12_SO_NO_RASTERIZED_STREAM = 0xffffffff; +const UINT D3D12_SO_OUTPUT_COMPONENT_COUNT = 128; +const UINT D3D12_SO_STREAM_COUNT = 4; +const UINT D3D12_SPEC_DATE_DAY = 14; +const UINT D3D12_SPEC_DATE_MONTH = 11; +const UINT D3D12_SPEC_DATE_YEAR = 2014; +cpp_quote( "#define D3D12_SPEC_VERSION ( 1.16 )" ) +cpp_quote( "#define D3D12_SRGB_GAMMA ( 2.2f )" ) +cpp_quote( "#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )" ) +cpp_quote( "#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )" ) +cpp_quote( "#define D3D12_SRGB_TO_FLOAT_EXPONENT ( 2.4f )" ) +cpp_quote( "#define D3D12_SRGB_TO_FLOAT_OFFSET ( 0.055f )" ) +cpp_quote( "#define D3D12_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )" ) +cpp_quote( "#define D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )" ) +const UINT D3D12_STANDARD_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = 64; +const UINT D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = 4; +const UINT D3D12_STANDARD_PIXEL_COMPONENT_COUNT = 128; +const UINT D3D12_STANDARD_PIXEL_ELEMENT_COUNT = 32; +const UINT D3D12_STANDARD_VECTOR_SIZE = 4; +const UINT D3D12_STANDARD_VERTEX_ELEMENT_COUNT = 32; +const UINT D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = 64; +const UINT D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8; +const UINT D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT = 8; +const UINT D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END = 0xffffffff; +const UINT D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START = 0xfffffff0; +const UINT D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR = 64; +const UINT D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR = 64; +const UINT D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR = 63; +const UINT D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR = 64; +const UINT D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR = 2; +const UINT D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR = 1; +const UINT D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR = 1; +const UINT D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT = 16; +const UINT D3D12_TEXTURE_DATA_PITCH_ALIGNMENT = 256; +const UINT D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT = 512; +const UINT D3D12_TIGHT_ALIGNMENT_MIN_COMMITTED_RESOURCE_ALIGNEMNT = 4096; +const UINT D3D12_TIGHT_ALIGNMENT_MIN_PLACED_RESOURCE_ALIGNEMNT = 8; +const UINT D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES = 65536; +const UINT D3D12_TRACKED_WORKLOAD_MAX_INSTANCES = 32; +const UINT D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT = 4096; +const UINT D3D12_UAV_SLOT_COUNT = 64; +const UINT D3D12_UNBOUND_MEMORY_ACCESS_RESULT = 0; +const UINT D3D12_VIDEO_DECODE_MAX_ARGUMENTS = 10; +const UINT D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS = 4; +const UINT D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT = 256; +const UINT D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT = 256; +const UINT D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN = 0xffffffff; +const UINT D3D12_VIDEO_ENCODER_AV1_INVALID_DPB_RESOURCE_INDEX = 0xFF; +const UINT D3D12_VIDEO_ENCODER_AV1_MAX_TILE_COLS = 64; +const UINT D3D12_VIDEO_ENCODER_AV1_MAX_TILE_ROWS = 64; +const UINT D3D12_VIDEO_ENCODER_AV1_SUPERRES_DENOM_MIN = 9; +const UINT D3D12_VIDEO_ENCODER_AV1_SUPERRES_NUM = 8; +const UINT D3D12_VIDEO_PROCESS_MAX_FILTERS = 32; +const UINT D3D12_VIDEO_PROCESS_STEREO_VIEWS = 2; +const UINT D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = 15; +const UINT D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = 16; +const UINT D3D12_VIEWPORT_BOUNDS_MAX = 32767; +const INT D3D12_VIEWPORT_BOUNDS_MIN = -32768; +const UINT D3D12_VS_INPUT_REGISTER_COMPONENTS = 4; +const UINT D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_VS_INPUT_REGISTER_COUNT = 32; +const UINT D3D12_VS_INPUT_REGISTER_READS_PER_INST = 2; +const UINT D3D12_VS_INPUT_REGISTER_READ_PORTS = 1; +const UINT D3D12_VS_OUTPUT_REGISTER_COMPONENTS = 4; +const UINT D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = 32; +const UINT D3D12_VS_OUTPUT_REGISTER_COUNT = 32; +const UINT D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = 10; +const UINT D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = 25; +const UINT D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = 25; +const UINT D3D12_WORK_GRAPHS_BACKING_MEMORY_ALIGNMENT_IN_BYTES = 8; +const UINT D3D12_WORK_GRAPHS_MAX_NODE_DEPTH = 32; +cpp_quote( "#endif" ) + + +// Forward declarations +interface ID3D12CommandQueue; + + +typedef UINT64 D3D12_GPU_VIRTUAL_ADDRESS; + +typedef enum D3D12_COMMAND_LIST_TYPE +{ + D3D12_COMMAND_LIST_TYPE_DIRECT = 0, + D3D12_COMMAND_LIST_TYPE_BUNDLE = 1, + D3D12_COMMAND_LIST_TYPE_COMPUTE = 2, + D3D12_COMMAND_LIST_TYPE_COPY = 3, + D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE = 4, + D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS = 5, + D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE = 6, + + D3D12_COMMAND_LIST_TYPE_NONE = -1, + +} D3D12_COMMAND_LIST_TYPE; + +typedef enum D3D12_COMMAND_QUEUE_FLAGS +{ + D3D12_COMMAND_QUEUE_FLAG_NONE = 0x0, + D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT = 0x1, +} D3D12_COMMAND_QUEUE_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_QUEUE_FLAGS )" ) + +typedef enum D3D12_COMMAND_QUEUE_PRIORITY +{ + D3D12_COMMAND_QUEUE_PRIORITY_NORMAL = 0, + D3D12_COMMAND_QUEUE_PRIORITY_HIGH = 100, + D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME = 10000 +} D3D12_COMMAND_QUEUE_PRIORITY; + +typedef struct D3D12_COMMAND_QUEUE_DESC +{ + D3D12_COMMAND_LIST_TYPE Type; + INT Priority; + D3D12_COMMAND_QUEUE_FLAGS Flags; + UINT NodeMask; +} D3D12_COMMAND_QUEUE_DESC; + +typedef enum D3D12_PRIMITIVE_TOPOLOGY_TYPE +{ + D3D12_PRIMITIVE_TOPOLOGY_TYPE_UNDEFINED = 0, + D3D12_PRIMITIVE_TOPOLOGY_TYPE_POINT = 1, + D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE = 2, + D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE = 3, + D3D12_PRIMITIVE_TOPOLOGY_TYPE_PATCH = 4 +} D3D12_PRIMITIVE_TOPOLOGY_TYPE; + +typedef enum D3D12_INPUT_CLASSIFICATION +{ + D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA = 0, + D3D12_INPUT_CLASSIFICATION_PER_INSTANCE_DATA = 1 +} D3D12_INPUT_CLASSIFICATION; + +typedef struct D3D12_INPUT_ELEMENT_DESC +{ + LPCSTR SemanticName; + UINT SemanticIndex; + DXGI_FORMAT Format; + UINT InputSlot; + UINT AlignedByteOffset; + D3D12_INPUT_CLASSIFICATION InputSlotClass; + UINT InstanceDataStepRate; +} D3D12_INPUT_ELEMENT_DESC; + +// Keep FILL_MODE values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D12_FILL_MODE +{ + // 1 was POINT in D3D, unused in D3D12 + D3D12_FILL_MODE_WIREFRAME = 2, + D3D12_FILL_MODE_SOLID = 3 +} D3D12_FILL_MODE; + +typedef D3D_PRIMITIVE_TOPOLOGY D3D12_PRIMITIVE_TOPOLOGY; + +typedef D3D_PRIMITIVE D3D12_PRIMITIVE; + +// Keep CULL_MODE values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D12_CULL_MODE +{ + D3D12_CULL_MODE_NONE = 1, + D3D12_CULL_MODE_FRONT = 2, + D3D12_CULL_MODE_BACK = 3 +} D3D12_CULL_MODE; + +typedef struct D3D12_SO_DECLARATION_ENTRY +{ + UINT Stream; + LPCSTR SemanticName; + UINT SemanticIndex; + BYTE StartComponent; + BYTE ComponentCount; + BYTE OutputSlot; +} D3D12_SO_DECLARATION_ENTRY; + +typedef struct D3D12_VIEWPORT +{ + FLOAT TopLeftX; + FLOAT TopLeftY; + FLOAT Width; + FLOAT Height; + FLOAT MinDepth; + FLOAT MaxDepth; +} D3D12_VIEWPORT; + + +typedef RECT D3D12_RECT; + + +typedef struct D3D12_BOX +{ + UINT left; + UINT top; + UINT front; + UINT right; + UINT bottom; + UINT back; +} D3D12_BOX; + +//-------------------------------------------------------------------------------------------------------- +// The system LUID struct isn't defined in wtypes, so we repeat it here just +// for the MIDL compiler. +cpp_quote("#ifdef __midl") +cpp_quote("#ifndef LUID_DEFINED") +cpp_quote("#define LUID_DEFINED 1") +typedef struct __LUID { + DWORD LowPart; + LONG HighPart; +} LUID, * PLUID; +cpp_quote("#endif") +cpp_quote("#endif") + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Depth-Stencil State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// Keep COMPARISON_FUNC values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D12_COMPARISON_FUNC +{ + D3D12_COMPARISON_FUNC_NONE = 0, + D3D12_COMPARISON_FUNC_NEVER = 1, + D3D12_COMPARISON_FUNC_LESS = 2, + D3D12_COMPARISON_FUNC_EQUAL = 3, + D3D12_COMPARISON_FUNC_LESS_EQUAL = 4, + D3D12_COMPARISON_FUNC_GREATER = 5, + D3D12_COMPARISON_FUNC_NOT_EQUAL = 6, + D3D12_COMPARISON_FUNC_GREATER_EQUAL = 7, + D3D12_COMPARISON_FUNC_ALWAYS = 8 +} D3D12_COMPARISON_FUNC; + +typedef enum D3D12_DEPTH_WRITE_MASK +{ + D3D12_DEPTH_WRITE_MASK_ZERO = 0, + D3D12_DEPTH_WRITE_MASK_ALL = 1 +} D3D12_DEPTH_WRITE_MASK; + +// Keep STENCILOP values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D12_STENCIL_OP +{ + D3D12_STENCIL_OP_KEEP = 1, + D3D12_STENCIL_OP_ZERO = 2, + D3D12_STENCIL_OP_REPLACE = 3, + D3D12_STENCIL_OP_INCR_SAT = 4, + D3D12_STENCIL_OP_DECR_SAT = 5, + D3D12_STENCIL_OP_INVERT = 6, + D3D12_STENCIL_OP_INCR = 7, + D3D12_STENCIL_OP_DECR = 8 +} D3D12_STENCIL_OP; + +typedef struct D3D12_DEPTH_STENCILOP_DESC +{ + D3D12_STENCIL_OP StencilFailOp; + D3D12_STENCIL_OP StencilDepthFailOp; + D3D12_STENCIL_OP StencilPassOp; + D3D12_COMPARISON_FUNC StencilFunc; +} D3D12_DEPTH_STENCILOP_DESC; + +typedef struct D3D12_DEPTH_STENCIL_DESC +{ + BOOL DepthEnable; + D3D12_DEPTH_WRITE_MASK DepthWriteMask; + D3D12_COMPARISON_FUNC DepthFunc; + BOOL StencilEnable; + UINT8 StencilReadMask; + UINT8 StencilWriteMask; + D3D12_DEPTH_STENCILOP_DESC FrontFace; + D3D12_DEPTH_STENCILOP_DESC BackFace; +} D3D12_DEPTH_STENCIL_DESC; + +typedef struct D3D12_DEPTH_STENCIL_DESC1 +{ + BOOL DepthEnable; + D3D12_DEPTH_WRITE_MASK DepthWriteMask; + D3D12_COMPARISON_FUNC DepthFunc; + BOOL StencilEnable; + UINT8 StencilReadMask; + UINT8 StencilWriteMask; + D3D12_DEPTH_STENCILOP_DESC FrontFace; + D3D12_DEPTH_STENCILOP_DESC BackFace; + BOOL DepthBoundsTestEnable; +} D3D12_DEPTH_STENCIL_DESC1; + +// Front/back face independent stencil masks +typedef struct D3D12_DEPTH_STENCILOP_DESC1 +{ + D3D12_STENCIL_OP StencilFailOp; + D3D12_STENCIL_OP StencilDepthFailOp; + D3D12_STENCIL_OP StencilPassOp; + D3D12_COMPARISON_FUNC StencilFunc; + UINT8 StencilReadMask; + UINT8 StencilWriteMask; +} D3D12_DEPTH_STENCILOP_DESC1; + +typedef struct D3D12_DEPTH_STENCIL_DESC2 +{ + BOOL DepthEnable; + D3D12_DEPTH_WRITE_MASK DepthWriteMask; + D3D12_COMPARISON_FUNC DepthFunc; + BOOL StencilEnable; + D3D12_DEPTH_STENCILOP_DESC1 FrontFace; + D3D12_DEPTH_STENCILOP_DESC1 BackFace; + BOOL DepthBoundsTestEnable; +} D3D12_DEPTH_STENCIL_DESC2; + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Blend State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// Keep BLEND values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D12_BLEND +{ + D3D12_BLEND_ZERO = 1, + D3D12_BLEND_ONE = 2, + D3D12_BLEND_SRC_COLOR = 3, // PS output oN.rgb (N is current RT being blended) + D3D12_BLEND_INV_SRC_COLOR = 4, // 1.0f - PS output oN.rgb + D3D12_BLEND_SRC_ALPHA = 5, // PS output oN.a + D3D12_BLEND_INV_SRC_ALPHA = 6, // 1.0f - PS output oN.a + D3D12_BLEND_DEST_ALPHA = 7, // RT(N).a (N is current RT being blended) + D3D12_BLEND_INV_DEST_ALPHA = 8, // 1.0f - RT(N).a + D3D12_BLEND_DEST_COLOR = 9, // RT(N).rgb + D3D12_BLEND_INV_DEST_COLOR = 10,// 1.0f - RT(N).rgb + D3D12_BLEND_SRC_ALPHA_SAT = 11,// (f,f,f,1), f = min(1 - RT(N).a, oN.a) + // 12 reserved (was BOTHSRCALPHA) + // 13 reserved (was BOTHSRCALPHA) + D3D12_BLEND_BLEND_FACTOR = 14, + D3D12_BLEND_INV_BLEND_FACTOR = 15, + D3D12_BLEND_SRC1_COLOR = 16, // PS output o1.rgb + D3D12_BLEND_INV_SRC1_COLOR = 17, // 1.0f - PS output o1.rgb + D3D12_BLEND_SRC1_ALPHA = 18, // PS output o1.a + D3D12_BLEND_INV_SRC1_ALPHA = 19, // 1.0f - PS output o1.a + D3D12_BLEND_ALPHA_FACTOR = 20, + D3D12_BLEND_INV_ALPHA_FACTOR = 21 +} D3D12_BLEND; + +// Keep BLENDOP values in sync with earlier DX versions (HW consumes values directly). +typedef enum D3D12_BLEND_OP +{ + D3D12_BLEND_OP_ADD = 1, + D3D12_BLEND_OP_SUBTRACT = 2, + D3D12_BLEND_OP_REV_SUBTRACT = 3, + D3D12_BLEND_OP_MIN = 4, // min semantics are like min shader instruction + D3D12_BLEND_OP_MAX = 5, // max semantics are like max shader instruction +} D3D12_BLEND_OP; + +typedef enum D3D12_COLOR_WRITE_ENABLE +{ + D3D12_COLOR_WRITE_ENABLE_RED = 1, + D3D12_COLOR_WRITE_ENABLE_GREEN = 2, + D3D12_COLOR_WRITE_ENABLE_BLUE = 4, + D3D12_COLOR_WRITE_ENABLE_ALPHA = 8, + D3D12_COLOR_WRITE_ENABLE_ALL = (D3D12_COLOR_WRITE_ENABLE_RED|D3D12_COLOR_WRITE_ENABLE_GREEN| + D3D12_COLOR_WRITE_ENABLE_BLUE|D3D12_COLOR_WRITE_ENABLE_ALPHA), +} D3D12_COLOR_WRITE_ENABLE; + +typedef enum D3D12_LOGIC_OP +{ + // Operation: + // (s == PS output, d = RTV contents) + D3D12_LOGIC_OP_CLEAR = 0, // 0 + D3D12_LOGIC_OP_SET, // 1 + D3D12_LOGIC_OP_COPY, // s + D3D12_LOGIC_OP_COPY_INVERTED, // ~s + D3D12_LOGIC_OP_NOOP, // d + D3D12_LOGIC_OP_INVERT, // ~d + D3D12_LOGIC_OP_AND, // s & d + D3D12_LOGIC_OP_NAND, // ~(s & d) + D3D12_LOGIC_OP_OR, // s | d + D3D12_LOGIC_OP_NOR, // ~(s | d) + D3D12_LOGIC_OP_XOR, // s ^ d + D3D12_LOGIC_OP_EQUIV, // ~(s ^ d) + D3D12_LOGIC_OP_AND_REVERSE, // s & ~d + D3D12_LOGIC_OP_AND_INVERTED, // ~s & d + D3D12_LOGIC_OP_OR_REVERSE, // s | ~d + D3D12_LOGIC_OP_OR_INVERTED, // ~s | d +} D3D12_LOGIC_OP; + +typedef struct D3D12_RENDER_TARGET_BLEND_DESC +{ + BOOL BlendEnable; + BOOL LogicOpEnable; // LogicOpEnable and BlendEnable can't both be true + D3D12_BLEND SrcBlend; + D3D12_BLEND DestBlend; + D3D12_BLEND_OP BlendOp; + D3D12_BLEND SrcBlendAlpha; + D3D12_BLEND DestBlendAlpha; + D3D12_BLEND_OP BlendOpAlpha; + D3D12_LOGIC_OP LogicOp; // applies to RGBA + UINT8 RenderTargetWriteMask; // D3D12_COLOR_WRITE_ENABLE +} D3D12_RENDER_TARGET_BLEND_DESC; + +typedef struct D3D12_BLEND_DESC +{ + BOOL AlphaToCoverageEnable; // relevant to multisample antialiasing only + BOOL IndependentBlendEnable; // if FALSE, then replicate the first entry in RenderTarget array to other entries + D3D12_RENDER_TARGET_BLEND_DESC RenderTarget[D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT]; +} D3D12_BLEND_DESC; + +cpp_quote( "/* Note, the array size for RenderTarget[] above is D3D12_SIMULTANEOUS_RENDERTARGET_COUNT. ") +cpp_quote( " IDL processing/generation of this header replaces the define; this comment is merely explaining what happened. */" ) + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Rasterizer State +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D12_CONSERVATIVE_RASTERIZATION_MODE +{ + D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF = 0, // Default + D3D12_CONSERVATIVE_RASTERIZATION_MODE_ON = 1, +} D3D12_CONSERVATIVE_RASTERIZATION_MODE; + +typedef struct D3D12_RASTERIZER_DESC +{ + D3D12_FILL_MODE FillMode; + D3D12_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + INT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; + UINT ForcedSampleCount; + D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster; +} D3D12_RASTERIZER_DESC; + +typedef struct D3D12_RASTERIZER_DESC1 +{ + D3D12_FILL_MODE FillMode; + D3D12_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + FLOAT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + BOOL MultisampleEnable; + BOOL AntialiasedLineEnable; + UINT ForcedSampleCount; + D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster; +} D3D12_RASTERIZER_DESC1; + +typedef enum D3D12_LINE_RASTERIZATION_MODE +{ + D3D12_LINE_RASTERIZATION_MODE_ALIASED, + D3D12_LINE_RASTERIZATION_MODE_ALPHA_ANTIALIASED, + D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_WIDE, + D3D12_LINE_RASTERIZATION_MODE_QUADRILATERAL_NARROW, +} D3D12_LINE_RASTERIZATION_MODE; + +typedef struct D3D12_RASTERIZER_DESC2 +{ + D3D12_FILL_MODE FillMode; + D3D12_CULL_MODE CullMode; + BOOL FrontCounterClockwise; + FLOAT DepthBias; + FLOAT DepthBiasClamp; + FLOAT SlopeScaledDepthBias; + BOOL DepthClipEnable; + D3D12_LINE_RASTERIZATION_MODE LineRasterizationMode; + UINT ForcedSampleCount; + D3D12_CONSERVATIVE_RASTERIZATION_MODE ConservativeRaster; +} D3D12_RASTERIZER_DESC2; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Pipeline State v1 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +[ uuid( c54a6b66-72df-4ee8-8be5-a946a1429214 ), object, local, pointer_default( unique ) ] +interface ID3D12RootSignature + : ID3D12DeviceChild +{ +} + +typedef struct D3D12_SHADER_BYTECODE +{ + [annotation("_Field_size_bytes_full_(BytecodeLength)")] const void* pShaderBytecode; + SIZE_T BytecodeLength; +} D3D12_SHADER_BYTECODE; + +typedef struct D3D12_STREAM_OUTPUT_DESC +{ + [annotation("_Field_size_full_(NumEntries)")] const D3D12_SO_DECLARATION_ENTRY* pSODeclaration; + UINT NumEntries; + [annotation("_Field_size_full_(NumStrides)")] const UINT* pBufferStrides; + UINT NumStrides; + UINT RasterizedStream; +} D3D12_STREAM_OUTPUT_DESC; + +typedef struct D3D12_INPUT_LAYOUT_DESC +{ + [annotation("_Field_size_full_(NumElements)")] const D3D12_INPUT_ELEMENT_DESC* pInputElementDescs; + UINT NumElements; +} D3D12_INPUT_LAYOUT_DESC; + +typedef enum D3D12_INDEX_BUFFER_STRIP_CUT_VALUE +{ + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_DISABLED = 0, + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFF = 1, + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE_0xFFFFFFFF = 2 +} D3D12_INDEX_BUFFER_STRIP_CUT_VALUE; + +typedef enum D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS +{ + D3D12_STANDARD_MULTISAMPLE_PATTERN = 0xffffffff, + D3D12_CENTER_MULTISAMPLE_PATTERN = 0xfffffffe +} D3D12_STANDARD_MULTISAMPLE_QUALITY_LEVELS; + +typedef struct D3D12_CACHED_PIPELINE_STATE +{ + [annotation("_Field_size_bytes_full_(CachedBlobSizeInBytes)")] const void* pCachedBlob; + SIZE_T CachedBlobSizeInBytes; +} D3D12_CACHED_PIPELINE_STATE; + +typedef enum D3D12_PIPELINE_STATE_FLAGS +{ + D3D12_PIPELINE_STATE_FLAG_NONE = 0x0, + D3D12_PIPELINE_STATE_FLAG_TOOL_DEBUG = 0x1, + D3D12_PIPELINE_STATE_FLAG_DYNAMIC_DEPTH_BIAS = 0x4, + D3D12_PIPELINE_STATE_FLAG_DYNAMIC_INDEX_BUFFER_STRIP_CUT = 0x8, + +} D3D12_PIPELINE_STATE_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_PIPELINE_STATE_FLAGS )" ) + +typedef struct D3D12_GRAPHICS_PIPELINE_STATE_DESC +{ + ID3D12RootSignature* pRootSignature; + D3D12_SHADER_BYTECODE VS; + D3D12_SHADER_BYTECODE PS; + D3D12_SHADER_BYTECODE DS; + D3D12_SHADER_BYTECODE HS; + D3D12_SHADER_BYTECODE GS; + D3D12_STREAM_OUTPUT_DESC StreamOutput; + D3D12_BLEND_DESC BlendState; + UINT SampleMask; + D3D12_RASTERIZER_DESC RasterizerState; + D3D12_DEPTH_STENCIL_DESC DepthStencilState; + D3D12_INPUT_LAYOUT_DESC InputLayout; + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue; + D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopologyType; + UINT NumRenderTargets; + DXGI_FORMAT RTVFormats[ D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT ]; + DXGI_FORMAT DSVFormat; + DXGI_SAMPLE_DESC SampleDesc; + UINT NodeMask; + D3D12_CACHED_PIPELINE_STATE CachedPSO; + D3D12_PIPELINE_STATE_FLAGS Flags; +} D3D12_GRAPHICS_PIPELINE_STATE_DESC; + +typedef struct D3D12_COMPUTE_PIPELINE_STATE_DESC +{ + ID3D12RootSignature* pRootSignature; + D3D12_SHADER_BYTECODE CS; + UINT NodeMask; + D3D12_CACHED_PIPELINE_STATE CachedPSO; + D3D12_PIPELINE_STATE_FLAGS Flags; +} D3D12_COMPUTE_PIPELINE_STATE_DESC; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Pipeline State v2 +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +struct D3D12_RT_FORMAT_ARRAY +{ + DXGI_FORMAT RTFormats[D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT]; + UINT NumRenderTargets; +}; + +typedef struct D3D12_PIPELINE_STATE_STREAM_DESC +{ + [annotation("_In_")] SIZE_T SizeInBytes; + [annotation("_In_reads_(_Inexpressible_(\"Dependent on size of subobjects\"))")] void* pPipelineStateSubobjectStream; +} D3D12_PIPELINE_STATE_STREAM_DESC; + +typedef enum D3D12_PIPELINE_STATE_SUBOBJECT_TYPE +{ + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_ROOT_SIGNATURE, // ID3D12RootSignature* + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VS, // D3D12_SHADER_BYTECODE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PS, // D3D12_SHADER_BYTECODE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DS, // D3D12_SHADER_BYTECODE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_HS, // D3D12_SHADER_BYTECODE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_GS, // D3D12_SHADER_BYTECODE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CS, // D3D12_SHADER_BYTECODE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT, // D3D12_STREAM_OUTPUT_DESC + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_BLEND, // D3D12_BLEND_DESC + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_MASK, // UINT + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER, // D3D12_RASTERIZER_DESC + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL, // D3D12_DEPTH_STENCIL_DESC + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT, // D3D12_INPUT_LAYOUT_DESC + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE, // D3D12_INDEX_BUFFER_STRIP_CUT_VALUE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY, // D3D12_PRIMITIVE_TOPOLOGY_TYPE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS, // D3D12_RT_FORMAT_ARRAY + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT, // DXGI_FORMAT + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC, // DXGI_SAMPLE_DESC + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK, // UINT + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_CACHED_PSO, // D3D12_CACHED_PIPELINE_STATE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_FLAGS, // D3D12_PIPELINE_STATE_FLAGS + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1, // D3D12_DEPTH_STENCIL_DESC1 + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING, // D3D12_VIEW_INSTANCING_DESC + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS = 24, // D3D12_SHADER_BYTECODE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS = 25, // D3D12_SHADER_BYTECODE + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 = 26, // D3D12_DEPTH_STENCIL_DESC2 + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER1 = 27, // D3D12_RASTERIZER_DESC1 + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RASTERIZER2 = 28, // D3D12_RASTERIZER_DESC2 + D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MAX_VALID, +} D3D12_PIPELINE_STATE_SUBOBJECT_TYPE; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// D3D12 Caps +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D12_FEATURE +{ + D3D12_FEATURE_D3D12_OPTIONS = 0, + D3D12_FEATURE_ARCHITECTURE = 1, // Deprecated by D3D12_FEATURE_ARCHITECTURE1 + D3D12_FEATURE_FEATURE_LEVELS = 2, + D3D12_FEATURE_FORMAT_SUPPORT = 3, + D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS = 4, + D3D12_FEATURE_FORMAT_INFO = 5, + D3D12_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT = 6, + D3D12_FEATURE_SHADER_MODEL = 7, + D3D12_FEATURE_D3D12_OPTIONS1 = 8, + D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_SUPPORT = 10, + D3D12_FEATURE_ROOT_SIGNATURE = 12, + D3D12_FEATURE_ARCHITECTURE1 = 16, + D3D12_FEATURE_D3D12_OPTIONS2 = 18, + D3D12_FEATURE_SHADER_CACHE = 19, + D3D12_FEATURE_COMMAND_QUEUE_PRIORITY = 20, + D3D12_FEATURE_D3D12_OPTIONS3 = 21, + D3D12_FEATURE_EXISTING_HEAPS = 22, + D3D12_FEATURE_D3D12_OPTIONS4 = 23, + D3D12_FEATURE_SERIALIZATION = 24, + D3D12_FEATURE_CROSS_NODE = 25, + D3D12_FEATURE_D3D12_OPTIONS5 = 27, + D3D12_FEATURE_DISPLAYABLE = 28, + D3D12_FEATURE_D3D12_OPTIONS6 = 30, + D3D12_FEATURE_QUERY_META_COMMAND = 31, + D3D12_FEATURE_D3D12_OPTIONS7 = 32, + D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPE_COUNT = 33, + D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPES = 34, + D3D12_FEATURE_D3D12_OPTIONS8 = 36, + D3D12_FEATURE_D3D12_OPTIONS9 = 37, + D3D12_FEATURE_D3D12_OPTIONS10 = 39, + D3D12_FEATURE_D3D12_OPTIONS11 = 40, + D3D12_FEATURE_D3D12_OPTIONS12 = 41, + D3D12_FEATURE_D3D12_OPTIONS13 = 42, + D3D12_FEATURE_D3D12_OPTIONS14 = 43, + D3D12_FEATURE_D3D12_OPTIONS15 = 44, + D3D12_FEATURE_D3D12_OPTIONS16 = 45, + D3D12_FEATURE_D3D12_OPTIONS17 = 46, + D3D12_FEATURE_D3D12_OPTIONS18 = 47, + D3D12_FEATURE_D3D12_OPTIONS19 = 48, + D3D12_FEATURE_D3D12_OPTIONS20 = 49, + D3D12_FEATURE_PREDICATION = 50, + D3D12_FEATURE_PLACED_RESOURCE_SUPPORT_INFO = 51, + D3D12_FEATURE_HARDWARE_COPY = 52, + D3D12_FEATURE_D3D12_OPTIONS21 = 53, + D3D12_FEATURE_APPLICATION_SPECIFIC_DRIVER_STATE = 56, + D3D12_FEATURE_BYTECODE_BYPASS_HASH_SUPPORTED = 57, + D3D12_FEATURE_SHADER_CACHE_ABI_SUPPORT = 61, +} D3D12_FEATURE; + +typedef enum D3D12_SHADER_MIN_PRECISION_SUPPORT +{ + D3D12_SHADER_MIN_PRECISION_SUPPORT_NONE = 0x0, + D3D12_SHADER_MIN_PRECISION_SUPPORT_10_BIT = 0x1, + D3D12_SHADER_MIN_PRECISION_SUPPORT_16_BIT = 0x2 +} D3D12_SHADER_MIN_PRECISION_SUPPORT; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_MIN_PRECISION_SUPPORT )" ) + +typedef enum D3D12_TILED_RESOURCES_TIER +{ + D3D12_TILED_RESOURCES_TIER_NOT_SUPPORTED = 0, + D3D12_TILED_RESOURCES_TIER_1 = 1, + D3D12_TILED_RESOURCES_TIER_2 = 2, + D3D12_TILED_RESOURCES_TIER_3 = 3, + D3D12_TILED_RESOURCES_TIER_4 = 4, +} D3D12_TILED_RESOURCES_TIER; + +typedef enum D3D12_RESOURCE_BINDING_TIER +{ + D3D12_RESOURCE_BINDING_TIER_1 = 1, + D3D12_RESOURCE_BINDING_TIER_2 = 2, + D3D12_RESOURCE_BINDING_TIER_3 = 3, +} D3D12_RESOURCE_BINDING_TIER; + +typedef enum D3D12_CONSERVATIVE_RASTERIZATION_TIER { + D3D12_CONSERVATIVE_RASTERIZATION_TIER_NOT_SUPPORTED = 0, + D3D12_CONSERVATIVE_RASTERIZATION_TIER_1 = 1, + D3D12_CONSERVATIVE_RASTERIZATION_TIER_2 = 2, + D3D12_CONSERVATIVE_RASTERIZATION_TIER_3 = 3, +} D3D12_CONSERVATIVE_RASTERIZATION_TIER; + + +typedef enum D3D12_FORMAT_SUPPORT1 +{ + D3D12_FORMAT_SUPPORT1_NONE = 0, + D3D12_FORMAT_SUPPORT1_BUFFER = 0x00000001, + D3D12_FORMAT_SUPPORT1_IA_VERTEX_BUFFER = 0x00000002, + D3D12_FORMAT_SUPPORT1_IA_INDEX_BUFFER = 0x00000004, + D3D12_FORMAT_SUPPORT1_SO_BUFFER = 0x00000008, + D3D12_FORMAT_SUPPORT1_TEXTURE1D = 0x00000010, + D3D12_FORMAT_SUPPORT1_TEXTURE2D = 0x00000020, + D3D12_FORMAT_SUPPORT1_TEXTURE3D = 0x00000040, + D3D12_FORMAT_SUPPORT1_TEXTURECUBE = 0x00000080, + D3D12_FORMAT_SUPPORT1_SHADER_LOAD = 0x00000100, + D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE = 0x00000200, + D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_COMPARISON = 0x00000400, + D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE_MONO_TEXT = 0x00000800, + D3D12_FORMAT_SUPPORT1_MIP = 0x00001000, + D3D12_FORMAT_SUPPORT1_RENDER_TARGET = 0x00004000, + D3D12_FORMAT_SUPPORT1_BLENDABLE = 0x00008000, + D3D12_FORMAT_SUPPORT1_DEPTH_STENCIL = 0x00010000, + D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RESOLVE = 0x00040000, + D3D12_FORMAT_SUPPORT1_DISPLAY = 0x00080000, + D3D12_FORMAT_SUPPORT1_CAST_WITHIN_BIT_LAYOUT = 0x00100000, + D3D12_FORMAT_SUPPORT1_MULTISAMPLE_RENDERTARGET = 0x00200000, + D3D12_FORMAT_SUPPORT1_MULTISAMPLE_LOAD = 0x00400000, + D3D12_FORMAT_SUPPORT1_SHADER_GATHER = 0x00800000, + D3D12_FORMAT_SUPPORT1_BACK_BUFFER_CAST = 0x01000000, + D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW = 0x02000000, + D3D12_FORMAT_SUPPORT1_SHADER_GATHER_COMPARISON = 0x04000000, + D3D12_FORMAT_SUPPORT1_DECODER_OUTPUT = 0x08000000, + D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_OUTPUT = 0x10000000, + D3D12_FORMAT_SUPPORT1_VIDEO_PROCESSOR_INPUT = 0x20000000, + D3D12_FORMAT_SUPPORT1_VIDEO_ENCODER = 0x40000000, +} D3D12_FORMAT_SUPPORT1; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_FORMAT_SUPPORT1 )" ) + +typedef enum D3D12_FORMAT_SUPPORT2 +{ + D3D12_FORMAT_SUPPORT2_NONE = 0, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_ADD = 0x00000001, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS = 0x00000002, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE = 0x00000004, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE = 0x00000008, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX = 0x00000010, + D3D12_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX = 0x00000020, + D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD = 0x00000040, + D3D12_FORMAT_SUPPORT2_UAV_TYPED_STORE = 0x00000080, + D3D12_FORMAT_SUPPORT2_OUTPUT_MERGER_LOGIC_OP = 0x00000100, + D3D12_FORMAT_SUPPORT2_TILED = 0x00000200, + D3D12_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x00004000, + D3D12_FORMAT_SUPPORT2_SAMPLER_FEEDBACK = 0x00008000, + D3D12_FORMAT_SUPPORT2_DISPLAYABLE = 0x00010000, +} D3D12_FORMAT_SUPPORT2; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_FORMAT_SUPPORT2 )" ) + +typedef enum D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS +{ + D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_NONE = 0, + D3D12_MULTISAMPLE_QUALITY_LEVELS_FLAG_TILED_RESOURCE = 0x00000001, +} D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS )" ) + +typedef enum D3D12_CROSS_NODE_SHARING_TIER +{ + D3D12_CROSS_NODE_SHARING_TIER_NOT_SUPPORTED = 0, + D3D12_CROSS_NODE_SHARING_TIER_1_EMULATED = 1, + D3D12_CROSS_NODE_SHARING_TIER_1 = 2, + D3D12_CROSS_NODE_SHARING_TIER_2 = 3, + D3D12_CROSS_NODE_SHARING_TIER_3 = 4, +} D3D12_CROSS_NODE_SHARING_TIER; + +typedef enum D3D12_RESOURCE_HEAP_TIER +{ + D3D12_RESOURCE_HEAP_TIER_1 = 1, + D3D12_RESOURCE_HEAP_TIER_2 = 2, +} D3D12_RESOURCE_HEAP_TIER; + +typedef enum D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER +{ + D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_NOT_SUPPORTED = 0, + D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_1 = 1, + D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER_2 = 2, +} D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER; + +typedef enum D3D12_VIEW_INSTANCING_TIER +{ + D3D12_VIEW_INSTANCING_TIER_NOT_SUPPORTED = 0, + D3D12_VIEW_INSTANCING_TIER_1 = 1, + D3D12_VIEW_INSTANCING_TIER_2 = 2, + D3D12_VIEW_INSTANCING_TIER_3 = 3, +} D3D12_VIEW_INSTANCING_TIER; + + +typedef enum D3D12_WORK_GRAPHS_TIER { + D3D12_WORK_GRAPHS_TIER_NOT_SUPPORTED = 0, + D3D12_WORK_GRAPHS_TIER_1_0 = 10, +} D3D12_WORK_GRAPHS_TIER; + + +// D3D12_FEATURE_D3D12_OPTIONS +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS +{ + [annotation("_Out_")] BOOL DoublePrecisionFloatShaderOps; + [annotation("_Out_")] BOOL OutputMergerLogicOp; + [annotation("_Out_")] D3D12_SHADER_MIN_PRECISION_SUPPORT MinPrecisionSupport; + [annotation("_Out_")] D3D12_TILED_RESOURCES_TIER TiledResourcesTier; + [annotation("_Out_")] D3D12_RESOURCE_BINDING_TIER ResourceBindingTier; + [annotation("_Out_")] BOOL PSSpecifiedStencilRefSupported; + [annotation("_Out_")] BOOL TypedUAVLoadAdditionalFormats; + [annotation("_Out_")] BOOL ROVsSupported; + [annotation("_Out_")] D3D12_CONSERVATIVE_RASTERIZATION_TIER ConservativeRasterizationTier; + [annotation("_Out_")] UINT MaxGPUVirtualAddressBitsPerResource; + [annotation("_Out_")] BOOL StandardSwizzle64KBSupported; + [annotation("_Out_")] D3D12_CROSS_NODE_SHARING_TIER CrossNodeSharingTier; + [annotation("_Out_")] BOOL CrossAdapterRowMajorTextureSupported; + [annotation("_Out_")] BOOL VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation; + [annotation("_Out_")] D3D12_RESOURCE_HEAP_TIER ResourceHeapTier; +} D3D12_FEATURE_DATA_D3D12_OPTIONS; + +// D3D12_FEATURE_D3D12_OPTIONS1 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS1 +{ + [annotation("_Out_")] BOOL WaveOps; + [annotation("_Out_")] UINT WaveLaneCountMin; + [annotation("_Out_")] UINT WaveLaneCountMax; + [annotation("_Out_")] UINT TotalLaneCount; + [annotation("_Out_")] BOOL ExpandedComputeResourceStates; + [annotation("_Out_")] BOOL Int64ShaderOps; +} D3D12_FEATURE_DATA_D3D12_OPTIONS1; + +// D3D12_FEATURE_D3D12_OPTIONS2 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS2 +{ + [annotation("_Out_")] BOOL DepthBoundsTestSupported; + [annotation("_Out_")] D3D12_PROGRAMMABLE_SAMPLE_POSITIONS_TIER ProgrammableSamplePositionsTier; +} D3D12_FEATURE_DATA_D3D12_OPTIONS2; + +// D3D12_FEATURE_ROOT_SIGNATURE +typedef enum D3D_ROOT_SIGNATURE_VERSION +{ + D3D_ROOT_SIGNATURE_VERSION_1 = 0x1, + D3D_ROOT_SIGNATURE_VERSION_1_0 = 0x1, + D3D_ROOT_SIGNATURE_VERSION_1_1 = 0x2, + D3D_ROOT_SIGNATURE_VERSION_1_2 = 0x3, +} D3D_ROOT_SIGNATURE_VERSION; + +typedef struct D3D12_FEATURE_DATA_ROOT_SIGNATURE +{ + [annotation("_Inout_")] D3D_ROOT_SIGNATURE_VERSION HighestVersion; +} D3D12_FEATURE_DATA_ROOT_SIGNATURE; + +// D3D12_FEATURE_ARCHITECTURE +typedef struct D3D12_FEATURE_DATA_ARCHITECTURE // Deprecated by D3D12_FEATURE_DATA_ARCHITECTURE1 +{ + [annotation("_In_")] UINT NodeIndex; + [annotation("_Out_")] BOOL TileBasedRenderer; + [annotation("_Out_")] BOOL UMA; // Needed for applications to understand WRITE_COMBINE + [annotation("_Out_")] BOOL CacheCoherentUMA; // Only TRUE when UMA is also TRUE +} D3D12_FEATURE_DATA_ARCHITECTURE; + +// D3D12_FEATURE_ARCHITECTURE1 +typedef struct D3D12_FEATURE_DATA_ARCHITECTURE1 +{ + [annotation("_In_")] UINT NodeIndex; + [annotation("_Out_")] BOOL TileBasedRenderer; + [annotation("_Out_")] BOOL UMA; // Needed for applications to understand WRITE_COMBINE + [annotation("_Out_")] BOOL CacheCoherentUMA; // Only TRUE when UMA is also TRUE + [annotation("_Out_")] BOOL IsolatedMMU; // GPU accesses don't honor the same MMU functionality as the CPU +} D3D12_FEATURE_DATA_ARCHITECTURE1; + +// D3D12_FEATURE_FEATURE_LEVELS +typedef struct D3D12_FEATURE_DATA_FEATURE_LEVELS +{ + [annotation("_In_")] UINT NumFeatureLevels; + [annotation("_In_reads_(NumFeatureLevels)")] const D3D_FEATURE_LEVEL* pFeatureLevelsRequested; + [annotation("_Out_")] D3D_FEATURE_LEVEL MaxSupportedFeatureLevel; +} D3D12_FEATURE_DATA_FEATURE_LEVELS; + +// D3D_SHADER_MODEL +typedef enum D3D_SHADER_MODEL +{ + D3D_SHADER_MODEL_NONE = 0x0, // e.g MCDM Generic devices + D3D_SHADER_MODEL_5_1 = 0x51, + D3D_SHADER_MODEL_6_0 = 0x60, + D3D_SHADER_MODEL_6_1 = 0x61, + D3D_SHADER_MODEL_6_2 = 0x62, + D3D_SHADER_MODEL_6_3 = 0x63, + D3D_SHADER_MODEL_6_4 = 0x64, + D3D_SHADER_MODEL_6_5 = 0x65, + D3D_SHADER_MODEL_6_6 = 0x66, + D3D_SHADER_MODEL_6_7 = 0x67, + D3D_SHADER_MODEL_6_8 = 0x68, + D3D_SHADER_MODEL_6_9 = 0x69, + D3D_HIGHEST_SHADER_MODEL = D3D_SHADER_MODEL_6_9 +} D3D_SHADER_MODEL; + +typedef struct D3D12_FEATURE_DATA_SHADER_MODEL +{ + [annotation("_Inout_")] D3D_SHADER_MODEL HighestShaderModel; +} D3D12_FEATURE_DATA_SHADER_MODEL; + +// D3D12_FEATURE_FORMAT_SUPPORT +typedef struct D3D12_FEATURE_DATA_FORMAT_SUPPORT +{ + [annotation("_In_")] DXGI_FORMAT Format; + [annotation("_Out_")] D3D12_FORMAT_SUPPORT1 Support1; + [annotation("_Out_")] D3D12_FORMAT_SUPPORT2 Support2; +} D3D12_FEATURE_DATA_FORMAT_SUPPORT; + +// D3D12_FEATURE_MULTISAMPLE_QUALITY_LEVELS +typedef struct D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS +{ + [annotation("_In_")] DXGI_FORMAT Format; + [annotation("_In_")] UINT SampleCount; + [annotation("_In_")] D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS Flags; + [annotation("_Out_")] UINT NumQualityLevels; +} D3D12_FEATURE_DATA_MULTISAMPLE_QUALITY_LEVELS; + +// D3D12_FEATURE_FORMAT_INFO +typedef struct D3D12_FEATURE_DATA_FORMAT_INFO +{ + DXGI_FORMAT Format; + UINT8 PlaneCount; +} D3D12_FEATURE_DATA_FORMAT_INFO; + +// D3D12_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT +typedef struct D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT +{ + UINT MaxGPUVirtualAddressBitsPerResource; + UINT MaxGPUVirtualAddressBitsPerProcess; +} D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT; + + +typedef enum D3D12_SHADER_CACHE_SUPPORT_FLAGS +{ + D3D12_SHADER_CACHE_SUPPORT_NONE = 0x0, + D3D12_SHADER_CACHE_SUPPORT_SINGLE_PSO = 0x1, // Always supported + D3D12_SHADER_CACHE_SUPPORT_LIBRARY = 0x2, + D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x4, + D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x8, + D3D12_SHADER_CACHE_SUPPORT_DRIVER_MANAGED_CACHE = 0x10, + D3D12_SHADER_CACHE_SUPPORT_SHADER_CONTROL_CLEAR = 0x20, + D3D12_SHADER_CACHE_SUPPORT_SHADER_SESSION_DELETE = 0x40 +} D3D12_SHADER_CACHE_SUPPORT_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_SUPPORT_FLAGS )" ) + +// D3D12_FEATURE_SHADER_CACHE +typedef struct D3D12_FEATURE_DATA_SHADER_CACHE +{ + [annotation("_Out_")] D3D12_SHADER_CACHE_SUPPORT_FLAGS SupportFlags; +} D3D12_FEATURE_DATA_SHADER_CACHE; + +// D3D12_FEATURE_COMMAND_QUEUE_PRIORITY +typedef struct D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY +{ + [annotation("_In_")] D3D12_COMMAND_LIST_TYPE CommandListType; + [annotation("_In_")] UINT Priority; + [annotation("_Out_")] BOOL PriorityForTypeIsSupported; +} D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY; + +typedef enum D3D12_COMMAND_LIST_SUPPORT_FLAGS +{ + D3D12_COMMAND_LIST_SUPPORT_FLAG_NONE = 0x00000000, + D3D12_COMMAND_LIST_SUPPORT_FLAG_DIRECT = 1 << D3D12_COMMAND_LIST_TYPE_DIRECT, + D3D12_COMMAND_LIST_SUPPORT_FLAG_BUNDLE = 1 << D3D12_COMMAND_LIST_TYPE_BUNDLE, + D3D12_COMMAND_LIST_SUPPORT_FLAG_COMPUTE = 1 << D3D12_COMMAND_LIST_TYPE_COMPUTE, + D3D12_COMMAND_LIST_SUPPORT_FLAG_COPY = 1 << D3D12_COMMAND_LIST_TYPE_COPY, + D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_DECODE = 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_DECODE, + D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_PROCESS = 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_PROCESS, + D3D12_COMMAND_LIST_SUPPORT_FLAG_VIDEO_ENCODE = 1 << D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE, + +} D3D12_COMMAND_LIST_SUPPORT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_LIST_SUPPORT_FLAGS )") + +// D3D12_FEATURE_D3D12_OPTIONS3 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS3 +{ + [annotation("_Out_")] BOOL CopyQueueTimestampQueriesSupported; + [annotation("_Out_")] BOOL CastingFullyTypedFormatSupported; + [annotation("_Out_")] D3D12_COMMAND_LIST_SUPPORT_FLAGS WriteBufferImmediateSupportFlags; + [annotation("_Out_")] D3D12_VIEW_INSTANCING_TIER ViewInstancingTier; + [annotation("_Out_")] BOOL BarycentricsSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS3; + +// D3D12_FEATURE_EXISTING_HEAPS +typedef struct D3D12_FEATURE_DATA_EXISTING_HEAPS +{ + [annotation("_Out_")] BOOL Supported; +} D3D12_FEATURE_DATA_EXISTING_HEAPS; + +typedef enum D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER +{ + D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_0, + D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_1, + D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_2, +} D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER; + +typedef struct D3D12_FEATURE_DATA_DISPLAYABLE +{ + [annotation("_Out_")] BOOL DisplayableTexture; + [annotation("_Out_")] D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier; +} D3D12_FEATURE_DATA_DISPLAYABLE; + +// D3D12_FEATURE_D3D12_OPTIONS4 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS4 +{ + [annotation("_Out_")] BOOL MSAA64KBAlignedTextureSupported; + [annotation("_Out_")] D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER SharedResourceCompatibilityTier; + [annotation("_Out_")] BOOL Native16BitShaderOpsSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS4; + +typedef enum D3D12_HEAP_SERIALIZATION_TIER +{ + D3D12_HEAP_SERIALIZATION_TIER_0 = 0, + D3D12_HEAP_SERIALIZATION_TIER_10 = 10, +} D3D12_HEAP_SERIALIZATION_TIER; + +// D3D12_FEATURE_SERIALIZATION +typedef struct D3D12_FEATURE_DATA_SERIALIZATION +{ + [annotation("_In_")] UINT NodeIndex; + [annotation("_Out_")] D3D12_HEAP_SERIALIZATION_TIER HeapSerializationTier; +} D3D12_FEATURE_DATA_SERIALIZATION; + +// D3D12_FEATURE_CROSS_NODE +typedef struct D3D12_FEATURE_DATA_CROSS_NODE +{ + D3D12_CROSS_NODE_SHARING_TIER SharingTier; + BOOL AtomicShaderInstructions; +} D3D12_FEATURE_DATA_CROSS_NODE; + + +typedef enum D3D12_RENDER_PASS_TIER +{ + D3D12_RENDER_PASS_TIER_0 = 0, + D3D12_RENDER_PASS_TIER_1 = 1, + D3D12_RENDER_PASS_TIER_2 = 2, + + +} D3D12_RENDER_PASS_TIER; + +typedef enum D3D12_RAYTRACING_TIER +{ + D3D12_RAYTRACING_TIER_NOT_SUPPORTED = 0, + D3D12_RAYTRACING_TIER_1_0 = 10, + D3D12_RAYTRACING_TIER_1_1 = 11, + D3D12_RAYTRACING_TIER_1_2 = 12, +} D3D12_RAYTRACING_TIER; + +// D3D12_FEATURE_D3D12_OPTIONS5 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS5 +{ + [annotation("_Out_")] BOOL SRVOnlyTiledResourceTier3; + [annotation("_Out_")] D3D12_RENDER_PASS_TIER RenderPassesTier; + [annotation("_Out_")] D3D12_RAYTRACING_TIER RaytracingTier; +} D3D12_FEATURE_DATA_D3D12_OPTIONS5; + +typedef enum D3D12_VARIABLE_SHADING_RATE_TIER +{ + D3D12_VARIABLE_SHADING_RATE_TIER_NOT_SUPPORTED = 0, + D3D12_VARIABLE_SHADING_RATE_TIER_1 = 1, + D3D12_VARIABLE_SHADING_RATE_TIER_2 = 2, +} D3D12_VARIABLE_SHADING_RATE_TIER; + +// D3D12_FEATURE_D3D12_OPTIONS6 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS6 +{ + [annotation("_Out_")] BOOL AdditionalShadingRatesSupported; + [annotation("_Out_")] BOOL PerPrimitiveShadingRateSupportedWithViewportIndexing; + [annotation("_Out_")] D3D12_VARIABLE_SHADING_RATE_TIER VariableShadingRateTier; + [annotation("_Out_")] UINT ShadingRateImageTileSize; + [annotation("_Out_")] BOOL BackgroundProcessingSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS6; + +typedef enum D3D12_MESH_SHADER_TIER +{ + D3D12_MESH_SHADER_TIER_NOT_SUPPORTED = 0, + D3D12_MESH_SHADER_TIER_1 = 10, +} D3D12_MESH_SHADER_TIER; + +typedef enum D3D12_SAMPLER_FEEDBACK_TIER +{ + D3D12_SAMPLER_FEEDBACK_TIER_NOT_SUPPORTED = 0, + D3D12_SAMPLER_FEEDBACK_TIER_0_9 = 90, + D3D12_SAMPLER_FEEDBACK_TIER_1_0 = 100 +} D3D12_SAMPLER_FEEDBACK_TIER; + +// D3D12_FEATURE_D3D12_OPTIONS7 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS7 +{ + [annotation("_Out_")] D3D12_MESH_SHADER_TIER MeshShaderTier; + [annotation("_Out_")] D3D12_SAMPLER_FEEDBACK_TIER SamplerFeedbackTier; + +} D3D12_FEATURE_DATA_D3D12_OPTIONS7; + +typedef struct D3D12_FEATURE_DATA_QUERY_META_COMMAND +{ + [annotation("_In_")] GUID CommandId; + [annotation("_In_")] UINT NodeMask; + [annotation("_Field_size_bytes_full_opt_( QueryInputDataSizeInBytes )")] const void* pQueryInputData; + [annotation("_In_")] SIZE_T QueryInputDataSizeInBytes; + [annotation("_Field_size_bytes_full_( QueryOutputDataSizeInBytes )")] void* pQueryOutputData; + [annotation("_In_")] SIZE_T QueryOutputDataSizeInBytes; +} D3D12_FEATURE_DATA_QUERY_META_COMMAND; + +// D3D12_FEATURE_D3D12_OPTIONS8 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS8 +{ + [annotation("_Out_")] BOOL UnalignedBlockTexturesSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS8; + +typedef enum D3D12_WAVE_MMA_TIER { + D3D12_WAVE_MMA_TIER_NOT_SUPPORTED = 0, + D3D12_WAVE_MMA_TIER_1_0 = 10, +} D3D12_WAVE_MMA_TIER; + +// D3D12_FEATURE_D3D12_OPTIONS9 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS9 +{ + [annotation("_Out_")] BOOL MeshShaderPipelineStatsSupported; + [annotation("_Out_")] BOOL MeshShaderSupportsFullRangeRenderTargetArrayIndex; + [annotation("_Out_")] BOOL AtomicInt64OnTypedResourceSupported; + [annotation("_Out_")] BOOL AtomicInt64OnGroupSharedSupported; + [annotation("_Out_")] BOOL DerivativesInMeshAndAmplificationShadersSupported; + [annotation("_Out_")] D3D12_WAVE_MMA_TIER WaveMMATier; +} D3D12_FEATURE_DATA_D3D12_OPTIONS9; + +// D3D12_FEATURE_D3D12_OPTIONS10 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS10 +{ + [annotation("_Out_")] BOOL VariableRateShadingSumCombinerSupported; + [annotation("_Out_")] BOOL MeshShaderPerPrimitiveShadingRateSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS10; + +// D3D12_FEATURE_D3D12_OPTIONS11 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS11 +{ + [annotation("_Out_")] BOOL AtomicInt64OnDescriptorHeapResourceSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS11; + +typedef enum D3D12_TRI_STATE { + D3D12_TRI_STATE_UNKNOWN = -1, + D3D12_TRI_STATE_FALSE = 0, + D3D12_TRI_STATE_TRUE = 1, +} D3D12_TRI_STATE; + +// D3D12_FEATURE_D3D12_OPTIONS12 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS12 +{ + [annotation("_Out_")] D3D12_TRI_STATE MSPrimitivesPipelineStatisticIncludesCulledPrimitives; + [annotation("_Out_")] BOOL EnhancedBarriersSupported; + [annotation("_Out_")] BOOL RelaxedFormatCastingSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS12; + +// D3D12_FEATURE_D3D12_OPTIONS13 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS13 +{ + [annotation("_Out_")] BOOL UnrestrictedBufferTextureCopyPitchSupported; + [annotation("_Out_")] BOOL UnrestrictedVertexElementAlignmentSupported; + [annotation("_Out_")] BOOL InvertedViewportHeightFlipsYSupported; + [annotation("_Out_")] BOOL InvertedViewportDepthFlipsZSupported; + [annotation("_Out_")] BOOL TextureCopyBetweenDimensionsSupported; + [annotation("_Out_")] BOOL AlphaBlendFactorSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS13; + +// D3D12_FEATURE_D3D12_OPTIONS14 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS14 +{ + [annotation("_Out_")] BOOL AdvancedTextureOpsSupported; + [annotation("_Out_")] BOOL WriteableMSAATexturesSupported; + [annotation("_Out_")] BOOL IndependentFrontAndBackStencilRefMaskSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS14; + +// D3D12_FEATURE_D3D12_OPTIONS15 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS15 +{ + [annotation("_Out_")] BOOL TriangleFanSupported; + [annotation("_Out_")] BOOL DynamicIndexBufferStripCutSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS15; + +// D3D12_FEATURE_D3D12_OPTIONS16 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS16 +{ + [annotation("_Out_")] BOOL DynamicDepthBiasSupported; + [annotation("_Out_")] BOOL GPUUploadHeapSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS16; + +// D3D12_FEATURE_D3D12_OPTIONS17 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS17 +{ + [annotation("_Out_")] BOOL NonNormalizedCoordinateSamplersSupported; + [annotation("_Out_")] BOOL ManualWriteTrackingResourceSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS17; + +// D3D12_FEATURE_D3D12_OPTIONS18 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS18 +{ + [annotation("_Out_")] BOOL RenderPassesValid; +} D3D12_FEATURE_DATA_D3D12_OPTIONS18; + +// D3D12_FEATURE_D3D12_OPTIONS19 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS19 +{ + BOOL MismatchingOutputDimensionsSupported; + UINT SupportedSampleCountsWithNoOutputs; + BOOL PointSamplingAddressesNeverRoundUp; + BOOL RasterizerDesc2Supported; + BOOL NarrowQuadrilateralLinesSupported; + BOOL AnisoFilterWithPointMipSupported; + UINT MaxSamplerDescriptorHeapSize; + UINT MaxSamplerDescriptorHeapSizeWithStaticSamplers; + UINT MaxViewDescriptorHeapSize; + [annotation("_Out_")] BOOL ComputeOnlyCustomHeapSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS19; + + +typedef enum D3D12_RECREATE_AT_TIER +{ + D3D12_RECREATE_AT_TIER_NOT_SUPPORTED = 0, + + // * Supports retrieving resource and heap allocation information + // with ID3D12PageableTools::GetAllocationInfo + // * Supports setting resource and heap virtual addresses with + // ID3D12DeviceTools::SetNextAllocation + D3D12_RECREATE_AT_TIER_1 = 1, + +} D3D12_RECREATE_AT_TIER; + + +// D3D12_FEATURE_D3D12_OPTIONS20 +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS20 +{ + [annotation("_Out_")] BOOL ComputeOnlyWriteWatchSupported; + D3D12_RECREATE_AT_TIER RecreateAtTier; +} D3D12_FEATURE_DATA_D3D12_OPTIONS20; + +typedef enum D3D12_EXECUTE_INDIRECT_TIER +{ + D3D12_EXECUTE_INDIRECT_TIER_1_0 = 10, + D3D12_EXECUTE_INDIRECT_TIER_1_1 = 11, +} D3D12_EXECUTE_INDIRECT_TIER; + +typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS21 +{ + [annotation("_Out_")] D3D12_WORK_GRAPHS_TIER WorkGraphsTier; + [annotation("_Out_")] D3D12_EXECUTE_INDIRECT_TIER ExecuteIndirectTier; + [annotation("_Out_")] BOOL SampleCmpGradientAndBiasSupported; + [annotation("_Out_")] BOOL ExtendedCommandInfoSupported; +} D3D12_FEATURE_DATA_D3D12_OPTIONS21; + + + +typedef struct D3D12_FEATURE_DATA_PREDICATION +{ + [annotation("_Out_")] BOOL Supported; +} D3D12_FEATURE_DATA_PREDICATION; + +typedef struct D3D12_FEATURE_DATA_HARDWARE_COPY +{ + [annotation("_Out_")] BOOL Supported; +} D3D12_FEATURE_DATA_HARDWARE_COPY; + +typedef struct D3D12_FEATURE_DATA_APPLICATION_SPECIFIC_DRIVER_STATE +{ + [annotation("_Out_")] BOOL Supported; +} D3D12_FEATURE_DATA_APPLICATION_SPECIFIC_DRIVER_STATE; + +typedef struct D3D12_FEATURE_DATA_BYTECODE_BYPASS_HASH_SUPPORTED +{ + [annotation("_Out_")] BOOL Supported; +} D3D12_FEATURE_DATA_BYTECODE_BYPASS_HASH_SUPPORTED; + +typedef struct D3D12_RESOURCE_ALLOCATION_INFO +{ + UINT64 SizeInBytes; + UINT64 Alignment; +} D3D12_RESOURCE_ALLOCATION_INFO; + +typedef struct D3D12_RESOURCE_ALLOCATION_INFO1 +{ + UINT64 Offset; + UINT64 Alignment; + UINT64 SizeInBytes; +} D3D12_RESOURCE_ALLOCATION_INFO1; + +typedef enum D3D12_HEAP_TYPE +{ + D3D12_HEAP_TYPE_DEFAULT = 1, + D3D12_HEAP_TYPE_UPLOAD = 2, + D3D12_HEAP_TYPE_READBACK = 3, + D3D12_HEAP_TYPE_CUSTOM = 4, + D3D12_HEAP_TYPE_GPU_UPLOAD = 5, +} D3D12_HEAP_TYPE; + +typedef enum D3D12_CPU_PAGE_PROPERTY +{ + D3D12_CPU_PAGE_PROPERTY_UNKNOWN = 0, + D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE = 1, + D3D12_CPU_PAGE_PROPERTY_WRITE_COMBINE = 2, + D3D12_CPU_PAGE_PROPERTY_WRITE_BACK = 3, +} D3D12_CPU_PAGE_PROPERTY; + +typedef enum D3D12_MEMORY_POOL +{ + D3D12_MEMORY_POOL_UNKNOWN = 0, + D3D12_MEMORY_POOL_L0 = 1, // Maximum bandwidth for CPU + D3D12_MEMORY_POOL_L1 = 2, // More bandwidth for GPU, less for CPU +} D3D12_MEMORY_POOL; + +typedef struct D3D12_HEAP_PROPERTIES +{ + D3D12_HEAP_TYPE Type; + D3D12_CPU_PAGE_PROPERTY CPUPageProperty; + D3D12_MEMORY_POOL MemoryPoolPreference; + UINT CreationNodeMask; + UINT VisibleNodeMask; +} D3D12_HEAP_PROPERTIES; + +typedef enum D3D12_HEAP_FLAGS +{ + D3D12_HEAP_FLAG_NONE = 0x0, + D3D12_HEAP_FLAG_SHARED = 0x1, + D3D12_HEAP_FLAG_DENY_BUFFERS = 0x4, + D3D12_HEAP_FLAG_ALLOW_DISPLAY = 0x8, + D3D12_HEAP_FLAG_SHARED_CROSS_ADAPTER = 0x20, + D3D12_HEAP_FLAG_DENY_RT_DS_TEXTURES = 0x40, + D3D12_HEAP_FLAG_DENY_NON_RT_DS_TEXTURES = 0x80, + D3D12_HEAP_FLAG_HARDWARE_PROTECTED = 0x100, + D3D12_HEAP_FLAG_ALLOW_WRITE_WATCH = 0x200, + D3D12_HEAP_FLAG_ALLOW_SHADER_ATOMICS = 0x400, + D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT = 0x800, + D3D12_HEAP_FLAG_CREATE_NOT_ZEROED = 0x1000, + D3D12_HEAP_FLAG_TOOLS_USE_MANUAL_WRITE_TRACKING = 0x2000, + + // These are convenience aliases to manage resource heap tier restrictions. They cannot be bitwise OR'ed together cleanly. + D3D12_HEAP_FLAG_ALLOW_ALL_BUFFERS_AND_TEXTURES = 0x0, + D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS = 0xC0, + D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES = 0x44, + D3D12_HEAP_FLAG_ALLOW_ONLY_RT_DS_TEXTURES = 0x84, + + +} D3D12_HEAP_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_HEAP_FLAGS )" ) + +typedef struct D3D12_HEAP_DESC +{ + UINT64 SizeInBytes; + D3D12_HEAP_PROPERTIES Properties; + UINT64 Alignment; + D3D12_HEAP_FLAGS Flags; +} D3D12_HEAP_DESC; + +typedef enum D3D12_RESOURCE_DIMENSION +{ + D3D12_RESOURCE_DIMENSION_UNKNOWN = 0, + D3D12_RESOURCE_DIMENSION_BUFFER = 1, + D3D12_RESOURCE_DIMENSION_TEXTURE1D = 2, + D3D12_RESOURCE_DIMENSION_TEXTURE2D = 3, + D3D12_RESOURCE_DIMENSION_TEXTURE3D = 4, +} D3D12_RESOURCE_DIMENSION; + +typedef struct D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO +{ + [annotation("_In_")] DXGI_FORMAT Format; + [annotation("_In_")] D3D12_RESOURCE_DIMENSION Dimension; + [annotation("_In_")] D3D12_HEAP_PROPERTIES DestHeapProperties; + [annotation("_Out_")] BOOL Supported; +} D3D12_FEATURE_DATA_PLACED_RESOURCE_SUPPORT_INFO; + +typedef enum D3D12_TEXTURE_LAYOUT +{ + D3D12_TEXTURE_LAYOUT_UNKNOWN = 0, + D3D12_TEXTURE_LAYOUT_ROW_MAJOR = 1, // Must be used with buffers. Can be used with cross-adapter shared textures. + D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE = 2, + D3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE = 3, +} D3D12_TEXTURE_LAYOUT; + +typedef enum D3D12_RESOURCE_FLAGS +{ + D3D12_RESOURCE_FLAG_NONE = 0x0, + D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET = 0x1, + D3D12_RESOURCE_FLAG_ALLOW_DEPTH_STENCIL = 0x2, + D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS = 0x4, + D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE = 0x8, + D3D12_RESOURCE_FLAG_ALLOW_CROSS_ADAPTER = 0x10, + D3D12_RESOURCE_FLAG_ALLOW_SIMULTANEOUS_ACCESS = 0x20, + D3D12_RESOURCE_FLAG_VIDEO_DECODE_REFERENCE_ONLY = 0x40, + D3D12_RESOURCE_FLAG_VIDEO_ENCODE_REFERENCE_ONLY = 0x80, + D3D12_RESOURCE_FLAG_RAYTRACING_ACCELERATION_STRUCTURE = 0x100, + +} D3D12_RESOURCE_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_FLAGS )" ) + +typedef struct D3D12_MIP_REGION +{ + UINT Width; + UINT Height; + UINT Depth; +} D3D12_MIP_REGION; + +typedef struct D3D12_RESOURCE_DESC +{ + D3D12_RESOURCE_DIMENSION Dimension; + UINT64 Alignment; + UINT64 Width; + UINT Height; + UINT16 DepthOrArraySize; + UINT16 MipLevels; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; + D3D12_TEXTURE_LAYOUT Layout; + D3D12_RESOURCE_FLAGS Flags; +} D3D12_RESOURCE_DESC; + +typedef struct D3D12_RESOURCE_DESC1 +{ + D3D12_RESOURCE_DIMENSION Dimension; + UINT64 Alignment; + UINT64 Width; + UINT Height; + UINT16 DepthOrArraySize; + UINT16 MipLevels; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; + D3D12_TEXTURE_LAYOUT Layout; + D3D12_RESOURCE_FLAGS Flags; + D3D12_MIP_REGION SamplerFeedbackMipRegion; +} D3D12_RESOURCE_DESC1; + + + +typedef struct D3D12_DEPTH_STENCIL_VALUE +{ + FLOAT Depth; + UINT8 Stencil; +} D3D12_DEPTH_STENCIL_VALUE; + +typedef struct D3D12_CLEAR_VALUE +{ + DXGI_FORMAT Format; + union + { + FLOAT Color[4]; + D3D12_DEPTH_STENCIL_VALUE DepthStencil; + }; +} D3D12_CLEAR_VALUE; + +typedef struct D3D12_RANGE +{ + SIZE_T Begin; + SIZE_T End; // One past end, so (End - Begin) = Size +} D3D12_RANGE; + +typedef struct D3D12_RANGE_UINT64 +{ + UINT64 Begin; + UINT64 End; // One past end, so (End - Begin) = Size +} D3D12_RANGE_UINT64; + +typedef struct D3D12_SUBRESOURCE_RANGE_UINT64 +{ + UINT Subresource; + D3D12_RANGE_UINT64 Range; +} D3D12_SUBRESOURCE_RANGE_UINT64; + +typedef struct D3D12_SUBRESOURCE_INFO +{ + UINT64 Offset; + UINT RowPitch; + UINT DepthPitch; +} D3D12_SUBRESOURCE_INFO; + +typedef struct D3D12_TILED_RESOURCE_COORDINATE +{ + UINT X; + UINT Y; + UINT Z; + UINT Subresource; +} D3D12_TILED_RESOURCE_COORDINATE; + +typedef struct D3D12_TILE_REGION_SIZE +{ + UINT NumTiles; + BOOL UseBox; + UINT Width; + UINT16 Height; + UINT16 Depth; +} D3D12_TILE_REGION_SIZE; + +typedef enum D3D12_TILE_RANGE_FLAGS +{ + D3D12_TILE_RANGE_FLAG_NONE = 0, + D3D12_TILE_RANGE_FLAG_NULL = 1, + D3D12_TILE_RANGE_FLAG_SKIP = 2, + D3D12_TILE_RANGE_FLAG_REUSE_SINGLE_TILE = 4, + +} D3D12_TILE_RANGE_FLAGS; + +typedef struct D3D12_SUBRESOURCE_TILING +{ + UINT WidthInTiles; + UINT16 HeightInTiles; + UINT16 DepthInTiles; + UINT StartTileIndexInOverallResource; +} D3D12_SUBRESOURCE_TILING; + +typedef struct D3D12_TILE_SHAPE +{ + UINT WidthInTexels; + UINT HeightInTexels; + UINT DepthInTexels; +} D3D12_TILE_SHAPE; + +typedef struct D3D12_PACKED_MIP_INFO +{ + UINT8 NumStandardMips; + UINT8 NumPackedMips; + UINT NumTilesForPackedMips; + UINT StartTileIndexInOverallResource; +} D3D12_PACKED_MIP_INFO; + +typedef enum D3D12_TILE_MAPPING_FLAGS +{ + D3D12_TILE_MAPPING_FLAG_NONE = 0x0, + D3D12_TILE_MAPPING_FLAG_NO_HAZARD = 0x1, +} D3D12_TILE_MAPPING_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_TILE_MAPPING_FLAGS )" ) + +typedef enum D3D12_TILE_COPY_FLAGS +{ + D3D12_TILE_COPY_FLAG_NONE = 0x0, + D3D12_TILE_COPY_FLAG_NO_HAZARD = 0x1, + D3D12_TILE_COPY_FLAG_LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2, + D3D12_TILE_COPY_FLAG_SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4, +} D3D12_TILE_COPY_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_TILE_COPY_FLAGS )") + +// Resource Barrier +typedef enum D3D12_RESOURCE_STATES +{ + D3D12_RESOURCE_STATE_COMMON = 0, + + D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER = 0x00001, + D3D12_RESOURCE_STATE_INDEX_BUFFER = 0x00002, + D3D12_RESOURCE_STATE_RENDER_TARGET = 0x00004, + D3D12_RESOURCE_STATE_UNORDERED_ACCESS = 0x00008, + D3D12_RESOURCE_STATE_DEPTH_WRITE = 0x00010, + D3D12_RESOURCE_STATE_DEPTH_READ = 0x00020, + D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE = 0x00040, + D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE = 0x00080, + D3D12_RESOURCE_STATE_STREAM_OUT = 0x00100, + D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT = 0x00200, + D3D12_RESOURCE_STATE_COPY_DEST = 0x00400, + D3D12_RESOURCE_STATE_COPY_SOURCE = 0x00800, + D3D12_RESOURCE_STATE_RESOLVE_DEST = 0x01000, + D3D12_RESOURCE_STATE_RESOLVE_SOURCE = 0x02000, + D3D12_RESOURCE_STATE_RAYTRACING_ACCELERATION_STRUCTURE = 0x400000, + D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE = 0x1000000, + + D3D12_RESOURCE_STATE_RESERVED_INTERNAL_8000 = 0x8000, + D3D12_RESOURCE_STATE_RESERVED_INTERNAL_4000 = 0x4000, + D3D12_RESOURCE_STATE_RESERVED_INTERNAL_100000 = 0x100000, + D3D12_RESOURCE_STATE_RESERVED_INTERNAL_40000000 = 0x40000000, + D3D12_RESOURCE_STATE_RESERVED_INTERNAL_80000000 = 0x80000000, + + D3D12_RESOURCE_STATE_GENERIC_READ = + /*D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER*/ 0x0001 | + /*D3D12_RESOURCE_STATE_INDEX_BUFFER*/ 0x0002 | + /*D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE*/ 0x0040 | + /*D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE*/ 0x0080 | + /*D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT*/ 0x0200 | + /*D3D12_RESOURCE_STATE_COPY_SOURCE*/ 0x0800, + + D3D12_RESOURCE_STATE_ALL_SHADER_RESOURCE = + /*D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE*/ 0x40 | + /*D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE*/ 0x80, + + D3D12_RESOURCE_STATE_PRESENT = 0, + D3D12_RESOURCE_STATE_PREDICATION = /*D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT*/ 0x0200, + + D3D12_RESOURCE_STATE_VIDEO_DECODE_READ = 0x00010000, + D3D12_RESOURCE_STATE_VIDEO_DECODE_WRITE = 0x00020000, + D3D12_RESOURCE_STATE_VIDEO_PROCESS_READ = 0x00040000, + D3D12_RESOURCE_STATE_VIDEO_PROCESS_WRITE = 0x00080000, + D3D12_RESOURCE_STATE_VIDEO_ENCODE_READ = 0x00200000, + D3D12_RESOURCE_STATE_VIDEO_ENCODE_WRITE = 0x00800000, + +} D3D12_RESOURCE_STATES; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_STATES )" ) + +typedef enum D3D12_RESOURCE_BARRIER_TYPE +{ + D3D12_RESOURCE_BARRIER_TYPE_TRANSITION, + D3D12_RESOURCE_BARRIER_TYPE_ALIASING, + D3D12_RESOURCE_BARRIER_TYPE_UAV, +} D3D12_RESOURCE_BARRIER_TYPE; + +interface ID3D12Resource; + +typedef struct D3D12_RESOURCE_TRANSITION_BARRIER +{ + ID3D12Resource* pResource; + UINT Subresource; + D3D12_RESOURCE_STATES StateBefore; + D3D12_RESOURCE_STATES StateAfter; +} D3D12_RESOURCE_TRANSITION_BARRIER; + +typedef struct D3D12_RESOURCE_ALIASING_BARRIER +{ + ID3D12Resource* pResourceBefore; + ID3D12Resource* pResourceAfter; +} D3D12_RESOURCE_ALIASING_BARRIER; + +typedef struct D3D12_RESOURCE_UAV_BARRIER +{ + ID3D12Resource* pResource; +} D3D12_RESOURCE_UAV_BARRIER; + +typedef enum D3D12_RESOURCE_BARRIER_FLAGS +{ + D3D12_RESOURCE_BARRIER_FLAG_NONE = 0x0, + D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY = 0x1, + D3D12_RESOURCE_BARRIER_FLAG_END_ONLY = 0x2, +} D3D12_RESOURCE_BARRIER_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESOURCE_BARRIER_FLAGS )" ) + +typedef struct D3D12_RESOURCE_BARRIER +{ + D3D12_RESOURCE_BARRIER_TYPE Type; + D3D12_RESOURCE_BARRIER_FLAGS Flags; + + union + { + D3D12_RESOURCE_TRANSITION_BARRIER Transition; + D3D12_RESOURCE_ALIASING_BARRIER Aliasing; + D3D12_RESOURCE_UAV_BARRIER UAV; + }; +} D3D12_RESOURCE_BARRIER; + +typedef struct D3D12_SUBRESOURCE_FOOTPRINT +{ + DXGI_FORMAT Format; + UINT Width; + UINT Height; + UINT Depth; + UINT RowPitch; // Must be a multiple of D3D12_TEXTURE_DATA_PITCH_ALIGNMENT +} D3D12_SUBRESOURCE_FOOTPRINT; + +typedef struct D3D12_PLACED_SUBRESOURCE_FOOTPRINT +{ + UINT64 Offset; // Must be a multiple of D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT + D3D12_SUBRESOURCE_FOOTPRINT Footprint; +} D3D12_PLACED_SUBRESOURCE_FOOTPRINT; + +typedef enum D3D12_TEXTURE_COPY_TYPE +{ + D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX = 0, + D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT = 1, +} D3D12_TEXTURE_COPY_TYPE; + +typedef struct D3D12_TEXTURE_COPY_LOCATION +{ + ID3D12Resource* pResource; + D3D12_TEXTURE_COPY_TYPE Type; + union + { + D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint; + UINT SubresourceIndex; + }; +} D3D12_TEXTURE_COPY_LOCATION; + +typedef enum D3D12_RESOLVE_MODE +{ + D3D12_RESOLVE_MODE_DECOMPRESS = 0, + D3D12_RESOLVE_MODE_MIN = 1, + D3D12_RESOLVE_MODE_MAX = 2, + D3D12_RESOLVE_MODE_AVERAGE = 3, + D3D12_RESOLVE_MODE_ENCODE_SAMPLER_FEEDBACK = 4, + D3D12_RESOLVE_MODE_DECODE_SAMPLER_FEEDBACK = 5 +} D3D12_RESOLVE_MODE; + +typedef struct D3D12_SAMPLE_POSITION +{ + INT8 X; + INT8 Y; +} D3D12_SAMPLE_POSITION; + +typedef struct D3D12_VIEW_INSTANCE_LOCATION +{ + UINT ViewportArrayIndex; + UINT RenderTargetArrayIndex; +} D3D12_VIEW_INSTANCE_LOCATION; + +typedef enum D3D12_VIEW_INSTANCING_FLAGS +{ + D3D12_VIEW_INSTANCING_FLAG_NONE = 0x0, + D3D12_VIEW_INSTANCING_FLAG_ENABLE_VIEW_INSTANCE_MASKING = 0x1, +} D3D12_VIEW_INSTANCING_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_VIEW_INSTANCING_FLAGS )") + +typedef struct D3D12_VIEW_INSTANCING_DESC +{ + UINT ViewInstanceCount; + [annotation("_Field_size_full_(ViewInstanceCount)")] const D3D12_VIEW_INSTANCE_LOCATION* pViewInstanceLocations; + D3D12_VIEW_INSTANCING_FLAGS Flags; +} D3D12_VIEW_INSTANCING_DESC; + +// D3D12 view descriptions +typedef enum D3D12_SHADER_COMPONENT_MAPPING +{ + D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_0 = 0, + D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_1 = 1, + D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_2 = 2, + D3D12_SHADER_COMPONENT_MAPPING_FROM_MEMORY_COMPONENT_3 = 3, + D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_0 = 4, + D3D12_SHADER_COMPONENT_MAPPING_FORCE_VALUE_1 = 5, +} D3D12_SHADER_COMPONENT_MAPPING; + +cpp_quote( "#define D3D12_SHADER_COMPONENT_MAPPING_MASK 0x7 ") +cpp_quote( "#define D3D12_SHADER_COMPONENT_MAPPING_SHIFT 3 ") +cpp_quote( "#define D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES (1<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*4)) ") +cpp_quote( "#define D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(Src0,Src1,Src2,Src3) ((((Src0)&D3D12_SHADER_COMPONENT_MAPPING_MASK)| \\") +cpp_quote( " (((Src1)&D3D12_SHADER_COMPONENT_MAPPING_MASK)<> (D3D12_SHADER_COMPONENT_MAPPING_SHIFT*ComponentToExtract) & D3D12_SHADER_COMPONENT_MAPPING_MASK))") +cpp_quote( "#define D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(0,1,2,3) ") +typedef enum D3D12_BUFFER_SRV_FLAGS +{ + D3D12_BUFFER_SRV_FLAG_NONE = 0, + D3D12_BUFFER_SRV_FLAG_RAW = 0x00000001, // allow device multi-component reads with DWORD addressing +} D3D12_BUFFER_SRV_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_BUFFER_SRV_FLAGS )" ) + +typedef struct D3D12_BUFFER_SRV +{ + UINT64 FirstElement; + UINT NumElements; + UINT StructureByteStride; // if nonzero, format must be DXGI_FORMAT_UNKNOWN + D3D12_BUFFER_SRV_FLAGS Flags; +} D3D12_BUFFER_SRV; + +typedef struct D3D12_TEX1D_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + FLOAT ResourceMinLODClamp; +} D3D12_TEX1D_SRV; + +typedef struct D3D12_TEX1D_ARRAY_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; + FLOAT ResourceMinLODClamp; +} D3D12_TEX1D_ARRAY_SRV; + +typedef struct D3D12_TEX2D_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT PlaneSlice; + FLOAT ResourceMinLODClamp; +} D3D12_TEX2D_SRV; + +typedef struct D3D12_TEX2D_ARRAY_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; + FLOAT ResourceMinLODClamp; +} D3D12_TEX2D_ARRAY_SRV; + +typedef struct D3D12_TEX3D_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + FLOAT ResourceMinLODClamp; +} D3D12_TEX3D_SRV; + +typedef struct D3D12_TEXCUBE_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + FLOAT ResourceMinLODClamp; +} D3D12_TEXCUBE_SRV; + +typedef struct D3D12_TEXCUBE_ARRAY_SRV +{ + UINT MostDetailedMip; + UINT MipLevels; + UINT First2DArrayFace; + UINT NumCubes; + FLOAT ResourceMinLODClamp; +} D3D12_TEXCUBE_ARRAY_SRV; + +typedef struct D3D12_TEX2DMS_SRV +{ + // don't need to define anything specific for this view dimension + UINT UnusedField_NothingToDefine; +} D3D12_TEX2DMS_SRV; + +typedef struct D3D12_TEX2DMS_ARRAY_SRV +{ + UINT FirstArraySlice; + UINT ArraySize; +} D3D12_TEX2DMS_ARRAY_SRV; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV +{ + D3D12_GPU_VIRTUAL_ADDRESS Location; +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV; + +typedef enum D3D12_SRV_DIMENSION { + D3D12_SRV_DIMENSION_UNKNOWN = 0, + D3D12_SRV_DIMENSION_BUFFER = 1, + D3D12_SRV_DIMENSION_TEXTURE1D = 2, + D3D12_SRV_DIMENSION_TEXTURE1DARRAY = 3, + D3D12_SRV_DIMENSION_TEXTURE2D = 4, + D3D12_SRV_DIMENSION_TEXTURE2DARRAY = 5, + D3D12_SRV_DIMENSION_TEXTURE2DMS = 6, + D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D12_SRV_DIMENSION_TEXTURE3D = 8, + D3D12_SRV_DIMENSION_TEXTURECUBE = 9, + D3D12_SRV_DIMENSION_TEXTURECUBEARRAY = 10, + D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE = 11, +} D3D12_SRV_DIMENSION; + +typedef struct D3D12_SHADER_RESOURCE_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D12_SRV_DIMENSION ViewDimension; + UINT Shader4ComponentMapping; + + union + { + D3D12_BUFFER_SRV Buffer; + D3D12_TEX1D_SRV Texture1D; + D3D12_TEX1D_ARRAY_SRV Texture1DArray; + D3D12_TEX2D_SRV Texture2D; + D3D12_TEX2D_ARRAY_SRV Texture2DArray; + D3D12_TEX2DMS_SRV Texture2DMS; + D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray; + D3D12_TEX3D_SRV Texture3D; + D3D12_TEXCUBE_SRV TextureCube; + D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray; + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV RaytracingAccelerationStructure; + }; +} D3D12_SHADER_RESOURCE_VIEW_DESC; + +typedef struct D3D12_CONSTANT_BUFFER_VIEW_DESC +{ + D3D12_GPU_VIRTUAL_ADDRESS BufferLocation; + UINT SizeInBytes; +} D3D12_CONSTANT_BUFFER_VIEW_DESC; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Sampler +// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +typedef enum D3D12_FILTER +{ + // Bits used in defining enumeration of valid filters: + // bits [1:0] - mip: 0 == point, 1 == linear, 2,3 unused + // bits [3:2] - mag: 0 == point, 1 == linear, 2,3 unused + // bits [5:4] - min: 0 == point, 1 == linear, 2,3 unused + // bit [6] - aniso + // bits [8:7] - reduction type: + // 0 == standard filtering + // 1 == comparison + // 2 == min + // 3 == max + // bit [31] - mono 1-bit (narrow-purpose filter) [no longer supported in D3D12] + + D3D12_FILTER_MIN_MAG_MIP_POINT = 0x00000000, + D3D12_FILTER_MIN_MAG_POINT_MIP_LINEAR = 0x00000001, + D3D12_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x00000004, + D3D12_FILTER_MIN_POINT_MAG_MIP_LINEAR = 0x00000005, + D3D12_FILTER_MIN_LINEAR_MAG_MIP_POINT = 0x00000010, + D3D12_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x00000011, + D3D12_FILTER_MIN_MAG_LINEAR_MIP_POINT = 0x00000014, + D3D12_FILTER_MIN_MAG_MIP_LINEAR = 0x00000015, + D3D12_FILTER_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x00000054, + D3D12_FILTER_ANISOTROPIC = 0x00000055, + D3D12_FILTER_COMPARISON_MIN_MAG_MIP_POINT = 0x00000080, + D3D12_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR = 0x00000081, + D3D12_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x00000084, + D3D12_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR = 0x00000085, + D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT = 0x00000090, + D3D12_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x00000091, + D3D12_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT = 0x00000094, + D3D12_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR = 0x00000095, + D3D12_FILTER_COMPARISON_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x000000d4, + D3D12_FILTER_COMPARISON_ANISOTROPIC = 0x000000d5, + D3D12_FILTER_MINIMUM_MIN_MAG_MIP_POINT = 0x00000100, + D3D12_FILTER_MINIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x00000101, + D3D12_FILTER_MINIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x00000104, + D3D12_FILTER_MINIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x00000105, + D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x00000110, + D3D12_FILTER_MINIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x00000111, + D3D12_FILTER_MINIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x00000114, + D3D12_FILTER_MINIMUM_MIN_MAG_MIP_LINEAR = 0x00000115, + D3D12_FILTER_MINIMUM_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x00000154, + D3D12_FILTER_MINIMUM_ANISOTROPIC = 0x00000155, + D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_POINT = 0x00000180, + D3D12_FILTER_MAXIMUM_MIN_MAG_POINT_MIP_LINEAR = 0x00000181, + D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_LINEAR_MIP_POINT = 0x00000184, + D3D12_FILTER_MAXIMUM_MIN_POINT_MAG_MIP_LINEAR = 0x00000185, + D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_MIP_POINT = 0x00000190, + D3D12_FILTER_MAXIMUM_MIN_LINEAR_MAG_POINT_MIP_LINEAR = 0x00000191, + D3D12_FILTER_MAXIMUM_MIN_MAG_LINEAR_MIP_POINT = 0x00000194, + D3D12_FILTER_MAXIMUM_MIN_MAG_MIP_LINEAR = 0x00000195, + D3D12_FILTER_MAXIMUM_MIN_MAG_ANISOTROPIC_MIP_POINT = 0x000001d4, + D3D12_FILTER_MAXIMUM_ANISOTROPIC = 0x000001d5 +} D3D12_FILTER; + +typedef enum D3D12_FILTER_TYPE +{ + D3D12_FILTER_TYPE_POINT = 0, + D3D12_FILTER_TYPE_LINEAR = 1, +} D3D12_FILTER_TYPE; + +typedef enum D3D12_FILTER_REDUCTION_TYPE +{ + D3D12_FILTER_REDUCTION_TYPE_STANDARD = 0, + D3D12_FILTER_REDUCTION_TYPE_COMPARISON = 1, + D3D12_FILTER_REDUCTION_TYPE_MINIMUM = 2, + D3D12_FILTER_REDUCTION_TYPE_MAXIMUM = 3, +} D3D12_FILTER_REDUCTION_TYPE; + +const UINT D3D12_FILTER_REDUCTION_TYPE_MASK = 0x00000003; +const UINT D3D12_FILTER_REDUCTION_TYPE_SHIFT = 7; + +const UINT D3D12_FILTER_TYPE_MASK = 0x00000003; +const UINT D3D12_MIN_FILTER_SHIFT = 4; +const UINT D3D12_MAG_FILTER_SHIFT = 2; +const UINT D3D12_MIP_FILTER_SHIFT = 0; + +const UINT D3D12_ANISOTROPIC_FILTERING_BIT = 0x00000040; + +// encode enum entry for most filters except anisotropic filtering +cpp_quote( "#define D3D12_ENCODE_BASIC_FILTER( min, mag, mip, reduction ) \\" ) +cpp_quote( " ( ( D3D12_FILTER ) ( \\" ) +cpp_quote( " ( ( ( min ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MIN_FILTER_SHIFT ) | \\" ) +cpp_quote( " ( ( ( mag ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MAG_FILTER_SHIFT ) | \\" ) +cpp_quote( " ( ( ( mip ) & D3D12_FILTER_TYPE_MASK ) << D3D12_MIP_FILTER_SHIFT ) | \\" ) +cpp_quote( " ( ( ( reduction ) & D3D12_FILTER_REDUCTION_TYPE_MASK ) << D3D12_FILTER_REDUCTION_TYPE_SHIFT ) ) ) " ) + +// encode enum entry for anisotropic filtering (with or without comparison filtering) +cpp_quote( "#define D3D12_ENCODE_ANISOTROPIC_FILTER( reduction ) \\" ) +cpp_quote( " ( ( D3D12_FILTER ) ( \\" ) +cpp_quote( " D3D12_ANISOTROPIC_FILTERING_BIT | \\" ) +cpp_quote( " D3D12_ENCODE_BASIC_FILTER( D3D12_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " D3D12_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " D3D12_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " reduction ) ) ) " ) +cpp_quote( "#define D3D12_ENCODE_MIN_MAG_ANISOTROPIC_MIP_POINT_FILTER( reduction ) \\" ) +cpp_quote( " ( ( D3D12_FILTER ) ( \\" ) +cpp_quote( " D3D12_ANISOTROPIC_FILTERING_BIT | \\" ) +cpp_quote( " D3D12_ENCODE_BASIC_FILTER( D3D12_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " D3D12_FILTER_TYPE_LINEAR, \\" ) +cpp_quote( " D3D12_FILTER_TYPE_POINT, \\" ) +cpp_quote( " reduction ) ) ) " ) + +cpp_quote( "#define D3D12_DECODE_MIN_FILTER( D3D12Filter ) \\" ) +cpp_quote( " ( ( D3D12_FILTER_TYPE ) \\" ) +cpp_quote( " ( ( ( D3D12Filter ) >> D3D12_MIN_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D12_DECODE_MAG_FILTER( D3D12Filter ) \\" ) +cpp_quote( " ( ( D3D12_FILTER_TYPE ) \\" ) +cpp_quote( " ( ( ( D3D12Filter ) >> D3D12_MAG_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D12_DECODE_MIP_FILTER( D3D12Filter ) \\" ) +cpp_quote( " ( ( D3D12_FILTER_TYPE ) \\" ) +cpp_quote( " ( ( ( D3D12Filter ) >> D3D12_MIP_FILTER_SHIFT ) & D3D12_FILTER_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D12_DECODE_FILTER_REDUCTION( D3D12Filter ) \\" ) +cpp_quote( " ( ( D3D12_FILTER_REDUCTION_TYPE ) \\" ) +cpp_quote( " ( ( ( D3D12Filter ) >> D3D12_FILTER_REDUCTION_TYPE_SHIFT ) & D3D12_FILTER_REDUCTION_TYPE_MASK ) ) " ) + +cpp_quote( "#define D3D12_DECODE_IS_COMPARISON_FILTER( D3D12Filter ) \\" ) +cpp_quote( " ( D3D12_DECODE_FILTER_REDUCTION( D3D12Filter ) == D3D12_FILTER_REDUCTION_TYPE_COMPARISON ) " ) + +cpp_quote( "#define D3D12_DECODE_IS_ANISOTROPIC_FILTER( D3D12Filter ) \\" ) +cpp_quote( " ( ( ( D3D12Filter ) & D3D12_ANISOTROPIC_FILTERING_BIT ) && \\" ) +cpp_quote( " ( D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MIN_FILTER( D3D12Filter ) ) && \\" ) +cpp_quote( " ( D3D12_FILTER_TYPE_LINEAR == D3D12_DECODE_MAG_FILTER( D3D12Filter ) ) ) " ) + +typedef enum D3D12_TEXTURE_ADDRESS_MODE +{ + D3D12_TEXTURE_ADDRESS_MODE_WRAP = 1, + D3D12_TEXTURE_ADDRESS_MODE_MIRROR = 2, + D3D12_TEXTURE_ADDRESS_MODE_CLAMP = 3, + D3D12_TEXTURE_ADDRESS_MODE_BORDER = 4, + D3D12_TEXTURE_ADDRESS_MODE_MIRROR_ONCE = 5 +} D3D12_TEXTURE_ADDRESS_MODE; + + + +typedef struct D3D12_SAMPLER_DESC +{ + D3D12_FILTER Filter; + D3D12_TEXTURE_ADDRESS_MODE AddressU; + D3D12_TEXTURE_ADDRESS_MODE AddressV; + D3D12_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D12_COMPARISON_FUNC ComparisonFunc; + FLOAT BorderColor[4]; // RGBA + FLOAT MinLOD; + FLOAT MaxLOD; +} D3D12_SAMPLER_DESC; + + +typedef enum D3D12_SAMPLER_FLAGS +{ + D3D12_SAMPLER_FLAG_NONE = 0x0, + D3D12_SAMPLER_FLAG_UINT_BORDER_COLOR = 0x01, + D3D12_SAMPLER_FLAG_NON_NORMALIZED_COORDINATES = 0x02, +} D3D12_SAMPLER_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_SAMPLER_FLAGS )") + +typedef struct D3D12_SAMPLER_DESC2 +{ + D3D12_FILTER Filter; + D3D12_TEXTURE_ADDRESS_MODE AddressU; + D3D12_TEXTURE_ADDRESS_MODE AddressV; + D3D12_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D12_COMPARISON_FUNC ComparisonFunc; + union + { + FLOAT FloatBorderColor[4]; // RGBA + UINT UintBorderColor[4]; + }; + FLOAT MinLOD; + FLOAT MaxLOD; + D3D12_SAMPLER_FLAGS Flags; +} D3D12_SAMPLER_DESC2; + + + +typedef enum D3D12_BUFFER_UAV_FLAGS +{ + D3D12_BUFFER_UAV_FLAG_NONE = 0, + D3D12_BUFFER_UAV_FLAG_RAW = 0x00000001, +} D3D12_BUFFER_UAV_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_BUFFER_UAV_FLAGS )" ) + +typedef struct D3D12_BUFFER_UAV +{ + UINT64 FirstElement; + UINT NumElements; + UINT StructureByteStride; // if nonzero, format must be DXGI_FORMAT_UNKNOWN + UINT64 CounterOffsetInBytes; + D3D12_BUFFER_UAV_FLAGS Flags; +} D3D12_BUFFER_UAV; + +typedef struct D3D12_TEX1D_UAV +{ + UINT MipSlice; +} D3D12_TEX1D_UAV; + +typedef struct D3D12_TEX1D_ARRAY_UAV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D12_TEX1D_ARRAY_UAV; + +typedef struct D3D12_TEX2D_UAV +{ + UINT MipSlice; + UINT PlaneSlice; +} D3D12_TEX2D_UAV; + +typedef struct D3D12_TEX2D_ARRAY_UAV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; +} D3D12_TEX2D_ARRAY_UAV; + +typedef struct D3D12_TEX2DMS_UAV +{ + // don't need to define anything specific for this view dimension + UINT UnusedField_NothingToDefine; +} D3D12_TEX2DMS_UAV; + +typedef struct D3D12_TEX2DMS_ARRAY_UAV +{ + UINT FirstArraySlice; + UINT ArraySize; +} D3D12_TEX2DMS_ARRAY_UAV; + +typedef struct D3D12_TEX3D_UAV +{ + UINT MipSlice; + UINT FirstWSlice; + UINT WSize; +} D3D12_TEX3D_UAV; + +typedef enum D3D12_UAV_DIMENSION +{ + D3D12_UAV_DIMENSION_UNKNOWN = 0, + D3D12_UAV_DIMENSION_BUFFER = 1, + D3D12_UAV_DIMENSION_TEXTURE1D = 2, + D3D12_UAV_DIMENSION_TEXTURE1DARRAY = 3, + D3D12_UAV_DIMENSION_TEXTURE2D = 4, + D3D12_UAV_DIMENSION_TEXTURE2DARRAY = 5, + D3D12_UAV_DIMENSION_TEXTURE2DMS = 6, + D3D12_UAV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D12_UAV_DIMENSION_TEXTURE3D = 8, +} D3D12_UAV_DIMENSION; + +typedef struct D3D12_UNORDERED_ACCESS_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D12_UAV_DIMENSION ViewDimension; + + union + { + D3D12_BUFFER_UAV Buffer; + D3D12_TEX1D_UAV Texture1D; + D3D12_TEX1D_ARRAY_UAV Texture1DArray; + D3D12_TEX2D_UAV Texture2D; + D3D12_TEX2D_ARRAY_UAV Texture2DArray; + D3D12_TEX2DMS_UAV Texture2DMS; + D3D12_TEX2DMS_ARRAY_UAV Texture2DMSArray; + D3D12_TEX3D_UAV Texture3D; + }; +} D3D12_UNORDERED_ACCESS_VIEW_DESC; + +typedef struct D3D12_BUFFER_RTV +{ + UINT64 FirstElement; + UINT NumElements; +} D3D12_BUFFER_RTV; + +typedef struct D3D12_TEX1D_RTV +{ + UINT MipSlice; +} D3D12_TEX1D_RTV; + +typedef struct D3D12_TEX1D_ARRAY_RTV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D12_TEX1D_ARRAY_RTV; + +typedef struct D3D12_TEX2D_RTV +{ + UINT MipSlice; + UINT PlaneSlice; +} D3D12_TEX2D_RTV; + +typedef struct D3D12_TEX2DMS_RTV +{ + UINT UnusedField_NothingToDefine; +} D3D12_TEX2DMS_RTV; + +typedef struct D3D12_TEX2D_ARRAY_RTV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; + UINT PlaneSlice; +} D3D12_TEX2D_ARRAY_RTV; + +typedef struct D3D12_TEX2DMS_ARRAY_RTV +{ + UINT FirstArraySlice; + UINT ArraySize; +} D3D12_TEX2DMS_ARRAY_RTV; + +typedef struct D3D12_TEX3D_RTV +{ + UINT MipSlice; + UINT FirstWSlice; + UINT WSize; +} D3D12_TEX3D_RTV; + +typedef enum D3D12_RTV_DIMENSION +{ + D3D12_RTV_DIMENSION_UNKNOWN = 0, + D3D12_RTV_DIMENSION_BUFFER = 1, + D3D12_RTV_DIMENSION_TEXTURE1D = 2, + D3D12_RTV_DIMENSION_TEXTURE1DARRAY = 3, + D3D12_RTV_DIMENSION_TEXTURE2D = 4, + D3D12_RTV_DIMENSION_TEXTURE2DARRAY = 5, + D3D12_RTV_DIMENSION_TEXTURE2DMS = 6, + D3D12_RTV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D12_RTV_DIMENSION_TEXTURE3D = 8, +} D3D12_RTV_DIMENSION; + +typedef struct D3D12_RENDER_TARGET_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D12_RTV_DIMENSION ViewDimension; + + union + { + D3D12_BUFFER_RTV Buffer; + D3D12_TEX1D_RTV Texture1D; + D3D12_TEX1D_ARRAY_RTV Texture1DArray; + D3D12_TEX2D_RTV Texture2D; + D3D12_TEX2D_ARRAY_RTV Texture2DArray; + D3D12_TEX2DMS_RTV Texture2DMS; + D3D12_TEX2DMS_ARRAY_RTV Texture2DMSArray; + D3D12_TEX3D_RTV Texture3D; + }; +} D3D12_RENDER_TARGET_VIEW_DESC; + +typedef struct D3D12_TEX1D_DSV +{ + UINT MipSlice; +} D3D12_TEX1D_DSV; + +typedef struct D3D12_TEX1D_ARRAY_DSV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D12_TEX1D_ARRAY_DSV; + +typedef struct D3D12_TEX2D_DSV +{ + UINT MipSlice; +} D3D12_TEX2D_DSV; + +typedef struct D3D12_TEX2D_ARRAY_DSV +{ + UINT MipSlice; + UINT FirstArraySlice; + UINT ArraySize; +} D3D12_TEX2D_ARRAY_DSV; + +typedef struct D3D12_TEX2DMS_DSV +{ + UINT UnusedField_NothingToDefine; +} D3D12_TEX2DMS_DSV; + +typedef struct D3D12_TEX2DMS_ARRAY_DSV +{ + UINT FirstArraySlice; + UINT ArraySize; +} D3D12_TEX2DMS_ARRAY_DSV; + +typedef enum D3D12_DSV_FLAGS +{ + D3D12_DSV_FLAG_NONE = 0x0, + D3D12_DSV_FLAG_READ_ONLY_DEPTH = 0x1, + D3D12_DSV_FLAG_READ_ONLY_STENCIL = 0x2, +} D3D12_DSV_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_DSV_FLAGS )" ) + +typedef enum D3D12_DSV_DIMENSION +{ + D3D12_DSV_DIMENSION_UNKNOWN = 0, + D3D12_DSV_DIMENSION_TEXTURE1D = 1, + D3D12_DSV_DIMENSION_TEXTURE1DARRAY = 2, + D3D12_DSV_DIMENSION_TEXTURE2D = 3, + D3D12_DSV_DIMENSION_TEXTURE2DARRAY = 4, + D3D12_DSV_DIMENSION_TEXTURE2DMS = 5, + D3D12_DSV_DIMENSION_TEXTURE2DMSARRAY = 6, +} D3D12_DSV_DIMENSION; + +typedef struct D3D12_DEPTH_STENCIL_VIEW_DESC +{ + DXGI_FORMAT Format; + D3D12_DSV_DIMENSION ViewDimension; + D3D12_DSV_FLAGS Flags; + + union + { + D3D12_TEX1D_DSV Texture1D; + D3D12_TEX1D_ARRAY_DSV Texture1DArray; + D3D12_TEX2D_DSV Texture2D; + D3D12_TEX2D_ARRAY_DSV Texture2DArray; + D3D12_TEX2DMS_DSV Texture2DMS; + D3D12_TEX2DMS_ARRAY_DSV Texture2DMSArray; + }; +} D3D12_DEPTH_STENCIL_VIEW_DESC; + +typedef enum D3D12_CLEAR_FLAGS +{ + // Intentionally no flag for NONE + D3D12_CLEAR_FLAG_DEPTH = 0x01, + D3D12_CLEAR_FLAG_STENCIL = 0x02, +} D3D12_CLEAR_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_CLEAR_FLAGS )" ) + +typedef enum D3D12_FENCE_FLAGS +{ + D3D12_FENCE_FLAG_NONE = 0x0, + D3D12_FENCE_FLAG_SHARED = 0x1, + D3D12_FENCE_FLAG_SHARED_CROSS_ADAPTER = 0x2, + D3D12_FENCE_FLAG_NON_MONITORED = 0x4, +} D3D12_FENCE_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_FENCE_FLAGS )" ) + +typedef enum D3D12_DESCRIPTOR_HEAP_TYPE +{ + D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV, + D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER, + D3D12_DESCRIPTOR_HEAP_TYPE_RTV, + D3D12_DESCRIPTOR_HEAP_TYPE_DSV, + D3D12_DESCRIPTOR_HEAP_TYPE_NUM_TYPES +} D3D12_DESCRIPTOR_HEAP_TYPE; + +typedef enum D3D12_DESCRIPTOR_HEAP_FLAGS +{ + D3D12_DESCRIPTOR_HEAP_FLAG_NONE = 0x0, + D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE = 0x1, +} D3D12_DESCRIPTOR_HEAP_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_DESCRIPTOR_HEAP_FLAGS )" ) + +typedef struct D3D12_DESCRIPTOR_HEAP_DESC +{ + D3D12_DESCRIPTOR_HEAP_TYPE Type; + UINT NumDescriptors; + D3D12_DESCRIPTOR_HEAP_FLAGS Flags; + UINT NodeMask; +} D3D12_DESCRIPTOR_HEAP_DESC; + +typedef enum D3D12_DESCRIPTOR_RANGE_TYPE +{ + D3D12_DESCRIPTOR_RANGE_TYPE_SRV, + D3D12_DESCRIPTOR_RANGE_TYPE_UAV, + D3D12_DESCRIPTOR_RANGE_TYPE_CBV, + D3D12_DESCRIPTOR_RANGE_TYPE_SAMPLER +} D3D12_DESCRIPTOR_RANGE_TYPE; + +typedef struct D3D12_DESCRIPTOR_RANGE +{ + D3D12_DESCRIPTOR_RANGE_TYPE RangeType; + UINT NumDescriptors; + UINT BaseShaderRegister; + UINT RegisterSpace; + UINT OffsetInDescriptorsFromTableStart; +} D3D12_DESCRIPTOR_RANGE; + + +typedef struct D3D12_ROOT_DESCRIPTOR_TABLE +{ + UINT NumDescriptorRanges; + [annotation("_Field_size_full_(NumDescriptorRanges)")] const D3D12_DESCRIPTOR_RANGE* pDescriptorRanges; +} D3D12_ROOT_DESCRIPTOR_TABLE; + + +typedef struct D3D12_ROOT_CONSTANTS +{ + UINT ShaderRegister; + UINT RegisterSpace; + UINT Num32BitValues; +} D3D12_ROOT_CONSTANTS; + +typedef struct D3D12_ROOT_DESCRIPTOR +{ + UINT ShaderRegister; + UINT RegisterSpace; +} D3D12_ROOT_DESCRIPTOR; + +typedef enum D3D12_SHADER_VISIBILITY +{ + D3D12_SHADER_VISIBILITY_ALL = 0, + D3D12_SHADER_VISIBILITY_VERTEX = 1, + D3D12_SHADER_VISIBILITY_HULL = 2, + D3D12_SHADER_VISIBILITY_DOMAIN = 3, + D3D12_SHADER_VISIBILITY_GEOMETRY = 4, + D3D12_SHADER_VISIBILITY_PIXEL = 5, + D3D12_SHADER_VISIBILITY_AMPLIFICATION = 6, + D3D12_SHADER_VISIBILITY_MESH = 7, +} D3D12_SHADER_VISIBILITY; + +typedef enum D3D12_ROOT_PARAMETER_TYPE +{ + D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE, + D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS, + D3D12_ROOT_PARAMETER_TYPE_CBV, + D3D12_ROOT_PARAMETER_TYPE_SRV, + D3D12_ROOT_PARAMETER_TYPE_UAV +} D3D12_ROOT_PARAMETER_TYPE; + +typedef struct D3D12_ROOT_PARAMETER +{ + D3D12_ROOT_PARAMETER_TYPE ParameterType; + union + { + D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable; + D3D12_ROOT_CONSTANTS Constants; + D3D12_ROOT_DESCRIPTOR Descriptor; + }; + D3D12_SHADER_VISIBILITY ShaderVisibility; +} D3D12_ROOT_PARAMETER; + +typedef enum D3D12_ROOT_SIGNATURE_FLAGS +{ + D3D12_ROOT_SIGNATURE_FLAG_NONE = 0x0, + D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT = 0x1, + D3D12_ROOT_SIGNATURE_FLAG_DENY_VERTEX_SHADER_ROOT_ACCESS = 0x2, + D3D12_ROOT_SIGNATURE_FLAG_DENY_HULL_SHADER_ROOT_ACCESS = 0x4, + D3D12_ROOT_SIGNATURE_FLAG_DENY_DOMAIN_SHADER_ROOT_ACCESS = 0x8, + D3D12_ROOT_SIGNATURE_FLAG_DENY_GEOMETRY_SHADER_ROOT_ACCESS = 0x10, + D3D12_ROOT_SIGNATURE_FLAG_DENY_PIXEL_SHADER_ROOT_ACCESS = 0x20, + D3D12_ROOT_SIGNATURE_FLAG_ALLOW_STREAM_OUTPUT = 0x40, + D3D12_ROOT_SIGNATURE_FLAG_LOCAL_ROOT_SIGNATURE = 0x80, + D3D12_ROOT_SIGNATURE_FLAG_DENY_AMPLIFICATION_SHADER_ROOT_ACCESS = 0x100, + D3D12_ROOT_SIGNATURE_FLAG_DENY_MESH_SHADER_ROOT_ACCESS = 0x200, + D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED = 0x400, + D3D12_ROOT_SIGNATURE_FLAG_SAMPLER_HEAP_DIRECTLY_INDEXED = 0x800, +} D3D12_ROOT_SIGNATURE_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_ROOT_SIGNATURE_FLAGS )" ) + + +typedef enum D3D12_STATIC_BORDER_COLOR +{ + D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK, // 0.0f,0.0f,0.0f,0.0f + D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK, // 0.0f,0.0f,0.0f,1.0f + D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE, // 1.0f,1.0f,1.0f,1.0f + D3D12_STATIC_BORDER_COLOR_OPAQUE_BLACK_UINT, // 0,0,0,1 + D3D12_STATIC_BORDER_COLOR_OPAQUE_WHITE_UINT, // 1,1,1,1 + +} D3D12_STATIC_BORDER_COLOR; + +typedef struct D3D12_STATIC_SAMPLER_DESC +{ + D3D12_FILTER Filter; + D3D12_TEXTURE_ADDRESS_MODE AddressU; + D3D12_TEXTURE_ADDRESS_MODE AddressV; + D3D12_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D12_COMPARISON_FUNC ComparisonFunc; + D3D12_STATIC_BORDER_COLOR BorderColor; + FLOAT MinLOD; + FLOAT MaxLOD; + UINT ShaderRegister; + UINT RegisterSpace; + D3D12_SHADER_VISIBILITY ShaderVisibility; +} D3D12_STATIC_SAMPLER_DESC; + +typedef struct D3D12_STATIC_SAMPLER_DESC1 +{ + D3D12_FILTER Filter; + D3D12_TEXTURE_ADDRESS_MODE AddressU; + D3D12_TEXTURE_ADDRESS_MODE AddressV; + D3D12_TEXTURE_ADDRESS_MODE AddressW; + FLOAT MipLODBias; + UINT MaxAnisotropy; + D3D12_COMPARISON_FUNC ComparisonFunc; + D3D12_STATIC_BORDER_COLOR BorderColor; + FLOAT MinLOD; + FLOAT MaxLOD; + UINT ShaderRegister; + UINT RegisterSpace; + D3D12_SHADER_VISIBILITY ShaderVisibility; + D3D12_SAMPLER_FLAGS Flags; +} D3D12_STATIC_SAMPLER_DESC1; + +typedef struct D3D12_ROOT_SIGNATURE_DESC +{ + UINT NumParameters; + [annotation("_Field_size_full_(NumParameters)")] const D3D12_ROOT_PARAMETER* pParameters; + UINT NumStaticSamplers; + [annotation("_Field_size_full_(NumStaticSamplers)")] const D3D12_STATIC_SAMPLER_DESC* pStaticSamplers; + D3D12_ROOT_SIGNATURE_FLAGS Flags; +} D3D12_ROOT_SIGNATURE_DESC; + +typedef enum D3D12_DESCRIPTOR_RANGE_FLAGS +{ + D3D12_DESCRIPTOR_RANGE_FLAG_NONE = 0x0, + D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_VOLATILE = 0x1, + D3D12_DESCRIPTOR_RANGE_FLAG_DATA_VOLATILE = 0x2, + D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4, + D3D12_DESCRIPTOR_RANGE_FLAG_DATA_STATIC = 0x8, + D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS = 0x10000, +} D3D12_DESCRIPTOR_RANGE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_DESCRIPTOR_RANGE_FLAGS )") + +typedef struct D3D12_DESCRIPTOR_RANGE1 +{ + D3D12_DESCRIPTOR_RANGE_TYPE RangeType; + UINT NumDescriptors; + UINT BaseShaderRegister; + UINT RegisterSpace; + D3D12_DESCRIPTOR_RANGE_FLAGS Flags; + UINT OffsetInDescriptorsFromTableStart; +} D3D12_DESCRIPTOR_RANGE1; + +typedef struct D3D12_ROOT_DESCRIPTOR_TABLE1 +{ + UINT NumDescriptorRanges; + [annotation("_Field_size_full_(NumDescriptorRanges)")] const D3D12_DESCRIPTOR_RANGE1* pDescriptorRanges; +} D3D12_ROOT_DESCRIPTOR_TABLE1; + +typedef enum D3D12_ROOT_DESCRIPTOR_FLAGS +{ + D3D12_ROOT_DESCRIPTOR_FLAG_NONE = 0x0, + D3D12_ROOT_DESCRIPTOR_FLAG_DATA_VOLATILE = 0x2, + D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC_WHILE_SET_AT_EXECUTE = 0x4, + D3D12_ROOT_DESCRIPTOR_FLAG_DATA_STATIC = 0x8, +} D3D12_ROOT_DESCRIPTOR_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_ROOT_DESCRIPTOR_FLAGS )") + +typedef struct D3D12_ROOT_DESCRIPTOR1 +{ + UINT ShaderRegister; + UINT RegisterSpace; + D3D12_ROOT_DESCRIPTOR_FLAGS Flags; +} D3D12_ROOT_DESCRIPTOR1; + +typedef struct D3D12_ROOT_PARAMETER1 +{ + D3D12_ROOT_PARAMETER_TYPE ParameterType; + union + { + D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable; + D3D12_ROOT_CONSTANTS Constants; + D3D12_ROOT_DESCRIPTOR1 Descriptor; + }; + D3D12_SHADER_VISIBILITY ShaderVisibility; +} D3D12_ROOT_PARAMETER1; + +typedef struct D3D12_ROOT_SIGNATURE_DESC1 +{ + UINT NumParameters; + [annotation("_Field_size_full_(NumParameters)")] const D3D12_ROOT_PARAMETER1* pParameters; + UINT NumStaticSamplers; + [annotation("_Field_size_full_(NumStaticSamplers)")] const D3D12_STATIC_SAMPLER_DESC* pStaticSamplers; + D3D12_ROOT_SIGNATURE_FLAGS Flags; +} D3D12_ROOT_SIGNATURE_DESC1; + +typedef struct D3D12_ROOT_SIGNATURE_DESC2 +{ + UINT NumParameters; + [annotation("_Field_size_full_(NumParameters)")] const D3D12_ROOT_PARAMETER1* pParameters; + UINT NumStaticSamplers; + [annotation("_Field_size_full_(NumStaticSamplers)")] const D3D12_STATIC_SAMPLER_DESC1* pStaticSamplers; + D3D12_ROOT_SIGNATURE_FLAGS Flags; +} D3D12_ROOT_SIGNATURE_DESC2; + + +typedef struct D3D12_VERSIONED_ROOT_SIGNATURE_DESC +{ + D3D_ROOT_SIGNATURE_VERSION Version; + union + { + D3D12_ROOT_SIGNATURE_DESC Desc_1_0; + D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1; + D3D12_ROOT_SIGNATURE_DESC2 Desc_1_2; + }; +} D3D12_VERSIONED_ROOT_SIGNATURE_DESC; + +[ uuid( 34AB647B-3CC8-46AC-841B-C0965645C046 ), object, local, pointer_default( unique ) ] +interface ID3D12RootSignatureDeserializer + : IUnknown +{ + const D3D12_ROOT_SIGNATURE_DESC * GetRootSignatureDesc(); +}; + +[ uuid( 7F91CE67-090C-4BB7-B78E-ED8FF2E31DA0 ), object, local, pointer_default( unique ) ] +interface ID3D12VersionedRootSignatureDeserializer + : IUnknown +{ + HRESULT GetRootSignatureDescAtVersion(D3D_ROOT_SIGNATURE_VERSION convertToVersion, [annotation("_Out_")] const D3D12_VERSIONED_ROOT_SIGNATURE_DESC** ppDesc); + const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* GetUnconvertedRootSignatureDesc(); +}; + +cpp_quote( "typedef HRESULT (WINAPI* PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(") +cpp_quote( " _In_ const D3D12_ROOT_SIGNATURE_DESC* pRootSignature," ) +cpp_quote( " _In_ D3D_ROOT_SIGNATURE_VERSION Version," ) +cpp_quote( " _Out_ ID3DBlob** ppBlob," ) +cpp_quote( " _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);" ) +cpp_quote( "" ) +cpp_quote( "HRESULT WINAPI D3D12SerializeRootSignature(") +cpp_quote( " _In_ const D3D12_ROOT_SIGNATURE_DESC* pRootSignature," ) +cpp_quote( " _In_ D3D_ROOT_SIGNATURE_VERSION Version," ) +cpp_quote( " _Out_ ID3DBlob** ppBlob," ) +cpp_quote( " _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);" ) +cpp_quote( "" ) +cpp_quote( "typedef HRESULT (WINAPI* PFN_D3D12_CREATE_ROOT_SIGNATURE_DESERIALIZER)(") +cpp_quote( " _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData," ) +cpp_quote( " _In_ SIZE_T SrcDataSizeInBytes," ) +cpp_quote( " _In_ REFIID pRootSignatureDeserializerInterface," ) +cpp_quote( " _Out_ void** ppRootSignatureDeserializer);" ) +cpp_quote( "" ) +cpp_quote( "HRESULT WINAPI D3D12CreateRootSignatureDeserializer(") +cpp_quote( " _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData," ) +cpp_quote( " _In_ SIZE_T SrcDataSizeInBytes," ) +cpp_quote( " _In_ REFIID pRootSignatureDeserializerInterface," ) +cpp_quote( " _Out_ void** ppRootSignatureDeserializer);" ) +cpp_quote( "" ) +cpp_quote( "typedef HRESULT (WINAPI* PFN_D3D12_SERIALIZE_VERSIONED_ROOT_SIGNATURE)(" ) +cpp_quote( " _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature," ) +cpp_quote( " _Out_ ID3DBlob** ppBlob," ) +cpp_quote( " _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);" ) +cpp_quote( "" ) +cpp_quote( "HRESULT WINAPI D3D12SerializeVersionedRootSignature(" ) +cpp_quote( " _In_ const D3D12_VERSIONED_ROOT_SIGNATURE_DESC* pRootSignature," ) +cpp_quote( " _Out_ ID3DBlob** ppBlob," ) +cpp_quote( " _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorBlob);" ) +cpp_quote( "" ) +cpp_quote( "typedef HRESULT (WINAPI* PFN_D3D12_CREATE_VERSIONED_ROOT_SIGNATURE_DESERIALIZER)(" ) +cpp_quote( " _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData," ) +cpp_quote( " _In_ SIZE_T SrcDataSizeInBytes," ) +cpp_quote( " _In_ REFIID pRootSignatureDeserializerInterface," ) +cpp_quote( " _Out_ void** ppRootSignatureDeserializer);" ) +cpp_quote( "" ) +cpp_quote( "HRESULT WINAPI D3D12CreateVersionedRootSignatureDeserializer(") +cpp_quote( " _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData," ) +cpp_quote( " _In_ SIZE_T SrcDataSizeInBytes," ) +cpp_quote( " _In_ REFIID pRootSignatureDeserializerInterface," ) +cpp_quote( " _Out_ void** ppRootSignatureDeserializer);" ) +cpp_quote( "" ) +cpp_quote("typedef HRESULT (WINAPI* PFN_D3D12_CREATE_VERSIONED_ROOT_SIGNATURE_DESERIALIZER_FROM_SUBOBJECT_IN_LIBRARY)(") +cpp_quote(" _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,") +cpp_quote(" _In_ SIZE_T SrcDataSizeInBytes,") +cpp_quote(" _In_ LPCWSTR RootSignatureSubobjectName,") +cpp_quote(" _In_ REFIID pRootSignatureDeserializerInterface,") +cpp_quote(" _Out_ void** ppRootSignatureDeserializer);") +cpp_quote("") +cpp_quote("HRESULT WINAPI D3D12CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary(") +cpp_quote(" _In_reads_bytes_(SrcDataSizeInBytes) LPCVOID pSrcData,") +cpp_quote(" _In_ SIZE_T SrcDataSizeInBytes,") +cpp_quote(" _In_opt_ LPCWSTR RootSignatureSubobjectName,") +cpp_quote(" _In_ REFIID pRootSignatureDeserializerInterface,") +cpp_quote(" _Out_ void** ppRootSignatureDeserializer);") +cpp_quote("") + +typedef struct D3D12_CPU_DESCRIPTOR_HANDLE +{ + SIZE_T ptr; +} D3D12_CPU_DESCRIPTOR_HANDLE; + + +typedef struct D3D12_GPU_DESCRIPTOR_HANDLE +{ + UINT64 ptr; +} D3D12_GPU_DESCRIPTOR_HANDLE; + +cpp_quote( "// If rects are supplied in D3D12_DISCARD_REGION, below, the resource " ) +cpp_quote( "// must have 2D subresources with all specified subresources the same dimension." ) +typedef struct D3D12_DISCARD_REGION +{ + UINT NumRects; + [annotation("_In_reads_(NumRects)")] const D3D12_RECT* pRects; + UINT FirstSubresource; + UINT NumSubresources; +} D3D12_DISCARD_REGION; + +typedef enum D3D12_QUERY_HEAP_TYPE +{ + D3D12_QUERY_HEAP_TYPE_OCCLUSION = 0, + D3D12_QUERY_HEAP_TYPE_TIMESTAMP = 1, + D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS = 2, + D3D12_QUERY_HEAP_TYPE_SO_STATISTICS = 3, + D3D12_QUERY_HEAP_TYPE_VIDEO_DECODE_STATISTICS = 4, + D3D12_QUERY_HEAP_TYPE_COPY_QUEUE_TIMESTAMP = 5, + D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS1 = 7, + +} D3D12_QUERY_HEAP_TYPE; + +typedef struct D3D12_QUERY_HEAP_DESC +{ + D3D12_QUERY_HEAP_TYPE Type; + UINT Count; + UINT NodeMask; +} D3D12_QUERY_HEAP_DESC; + +typedef enum D3D12_QUERY_TYPE +{ + D3D12_QUERY_TYPE_OCCLUSION = 0, + D3D12_QUERY_TYPE_BINARY_OCCLUSION = 1, + D3D12_QUERY_TYPE_TIMESTAMP = 2, + D3D12_QUERY_TYPE_PIPELINE_STATISTICS = 3, + D3D12_QUERY_TYPE_SO_STATISTICS_STREAM0 = 4, + D3D12_QUERY_TYPE_SO_STATISTICS_STREAM1 = 5, + D3D12_QUERY_TYPE_SO_STATISTICS_STREAM2 = 6, + D3D12_QUERY_TYPE_SO_STATISTICS_STREAM3 = 7, + D3D12_QUERY_TYPE_VIDEO_DECODE_STATISTICS = 8, + D3D12_QUERY_TYPE_PIPELINE_STATISTICS1 = 10, + +} D3D12_QUERY_TYPE; + +typedef enum D3D12_PREDICATION_OP +{ + D3D12_PREDICATION_OP_EQUAL_ZERO = 0, + D3D12_PREDICATION_OP_NOT_EQUAL_ZERO = 1, +} D3D12_PREDICATION_OP; + +typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS +{ + UINT64 IAVertices; + UINT64 IAPrimitives; + UINT64 VSInvocations; + UINT64 GSInvocations; + UINT64 GSPrimitives; + UINT64 CInvocations; + UINT64 CPrimitives; + UINT64 PSInvocations; + UINT64 HSInvocations; + UINT64 DSInvocations; + UINT64 CSInvocations; +} D3D12_QUERY_DATA_PIPELINE_STATISTICS; + +typedef struct D3D12_QUERY_DATA_PIPELINE_STATISTICS1 +{ + UINT64 IAVertices; + UINT64 IAPrimitives; + UINT64 VSInvocations; + UINT64 GSInvocations; + UINT64 GSPrimitives; + UINT64 CInvocations; + UINT64 CPrimitives; + UINT64 PSInvocations; + UINT64 HSInvocations; + UINT64 DSInvocations; + UINT64 CSInvocations; + UINT64 ASInvocations; + UINT64 MSInvocations; + UINT64 MSPrimitives; +} D3D12_QUERY_DATA_PIPELINE_STATISTICS1; + +typedef struct D3D12_QUERY_DATA_SO_STATISTICS +{ + UINT64 NumPrimitivesWritten; + UINT64 PrimitivesStorageNeeded; +} D3D12_QUERY_DATA_SO_STATISTICS; + +typedef struct D3D12_STREAM_OUTPUT_BUFFER_VIEW +{ + D3D12_GPU_VIRTUAL_ADDRESS BufferLocation; + UINT64 SizeInBytes; + D3D12_GPU_VIRTUAL_ADDRESS BufferFilledSizeLocation; +} D3D12_STREAM_OUTPUT_BUFFER_VIEW; + +typedef struct D3D12_DRAW_ARGUMENTS +{ + UINT VertexCountPerInstance; + UINT InstanceCount; + UINT StartVertexLocation; + UINT StartInstanceLocation; +} D3D12_DRAW_ARGUMENTS; + +typedef struct D3D12_DRAW_INDEXED_ARGUMENTS +{ + UINT IndexCountPerInstance; + UINT InstanceCount; + UINT StartIndexLocation; + INT BaseVertexLocation; + UINT StartInstanceLocation; +} D3D12_DRAW_INDEXED_ARGUMENTS; + +typedef struct D3D12_DISPATCH_ARGUMENTS +{ + UINT ThreadGroupCountX; + UINT ThreadGroupCountY; + UINT ThreadGroupCountZ; +} D3D12_DISPATCH_ARGUMENTS; + +typedef struct D3D12_VERTEX_BUFFER_VIEW +{ + D3D12_GPU_VIRTUAL_ADDRESS BufferLocation; + UINT SizeInBytes; + UINT StrideInBytes; +} D3D12_VERTEX_BUFFER_VIEW; + +typedef struct D3D12_INDEX_BUFFER_VIEW +{ + D3D12_GPU_VIRTUAL_ADDRESS BufferLocation; + UINT SizeInBytes; + DXGI_FORMAT Format; +} D3D12_INDEX_BUFFER_VIEW; + +typedef enum D3D12_INDIRECT_ARGUMENT_TYPE +{ + D3D12_INDIRECT_ARGUMENT_TYPE_DRAW, + D3D12_INDIRECT_ARGUMENT_TYPE_DRAW_INDEXED, + D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH, + D3D12_INDIRECT_ARGUMENT_TYPE_VERTEX_BUFFER_VIEW, + D3D12_INDIRECT_ARGUMENT_TYPE_INDEX_BUFFER_VIEW, + D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT, + D3D12_INDIRECT_ARGUMENT_TYPE_CONSTANT_BUFFER_VIEW, + D3D12_INDIRECT_ARGUMENT_TYPE_SHADER_RESOURCE_VIEW, + D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW, + D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS, + D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_MESH, + D3D12_INDIRECT_ARGUMENT_TYPE_INCREMENTING_CONSTANT, +} D3D12_INDIRECT_ARGUMENT_TYPE; + +typedef struct D3D12_INDIRECT_ARGUMENT_DESC +{ + D3D12_INDIRECT_ARGUMENT_TYPE Type; + + union + { + struct + { + UINT Slot; + } VertexBuffer; + + struct + { + UINT RootParameterIndex; + UINT DestOffsetIn32BitValues; + UINT Num32BitValuesToSet; + } Constant; + + struct + { + UINT RootParameterIndex; + } ConstantBufferView; + + struct + { + UINT RootParameterIndex; + } ShaderResourceView; + + struct + { + UINT RootParameterIndex; + } UnorderedAccessView; + + // Tier 1.1 support + struct + { + UINT RootParameterIndex; + UINT DestOffsetIn32BitValues; + } IncrementingConstant; + }; +} D3D12_INDIRECT_ARGUMENT_DESC; + +typedef struct D3D12_COMMAND_SIGNATURE_DESC +{ + // The number of bytes between each drawing structure + UINT ByteStride; + UINT NumArgumentDescs; + [annotation("_Field_size_full_(NumArgumentDescs)")] const D3D12_INDIRECT_ARGUMENT_DESC* pArgumentDescs; + UINT NodeMask; +} D3D12_COMMAND_SIGNATURE_DESC; + +interface ID3D12Device; + +[ uuid( c4fec28f-7966-4e95-9f94-f431cb56c3b8 ), object, local, pointer_default( unique ) ] +interface ID3D12Object + : IUnknown +{ + HRESULT GetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_Inout_")] UINT* pDataSize, + [annotation("_Out_writes_bytes_opt_( *pDataSize )")] void* pData ); + HRESULT SetPrivateData( + [annotation("_In_")] REFGUID guid, + [annotation("_In_")] UINT DataSize, + [annotation("_In_reads_bytes_opt_( DataSize )")] const void* pData ); + HRESULT SetPrivateDataInterface( + [annotation("_In_")] REFGUID guid, + [annotation("_In_opt_")] const IUnknown* pData ); + HRESULT SetName( + [annotation("_In_z_")] LPCWSTR Name ); +} + +[ uuid( 905db94b-a00c-4140-9df5-2b64ca9ea357 ), object, local, pointer_default( unique ) ] +interface ID3D12DeviceChild + : ID3D12Object +{ + HRESULT GetDevice( + [in] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvDevice + ); +} + +[ uuid( 63ee58fb-1268-4835-86da-f008ce62f0d6 ), object, local, pointer_default( unique ) ] +interface ID3D12Pageable + : ID3D12DeviceChild +{ +} + +[ uuid( 6b3b2502-6e51-45b3-90ee-9884265e8df3 ), object, local, pointer_default( unique ) ] +interface ID3D12Heap + : ID3D12Pageable +{ + D3D12_HEAP_DESC GetDesc(); +} + +[ uuid( 696442be-a72e-4059-bc79-5b5c98040fad ), object, local, pointer_default( unique ) ] +interface ID3D12Resource + : ID3D12Pageable +{ + HRESULT Map( + UINT Subresource, + [annotation("_In_opt_")] const D3D12_RANGE* pReadRange, + [annotation("_Outptr_opt_result_bytebuffer_(_Inexpressible_(\"Dependent on resource\"))")] void** ppData); + + void Unmap(UINT Subresource, [annotation("_In_opt_")] const D3D12_RANGE* pWrittenRange ); + + D3D12_RESOURCE_DESC GetDesc(); + + D3D12_GPU_VIRTUAL_ADDRESS GetGPUVirtualAddress(); + + HRESULT WriteToSubresource( + UINT DstSubresource, + [annotation("_In_opt_")] const D3D12_BOX* pDstBox, + [annotation("_In_")] const void* pSrcData, + UINT SrcRowPitch, + UINT SrcDepthPitch ); + + HRESULT ReadFromSubresource( + [annotation("_Out_")] void* pDstData, + UINT DstRowPitch, + UINT DstDepthPitch, + UINT SrcSubresource, + [annotation("_In_opt_")] const D3D12_BOX* pSrcBox ); + + HRESULT GetHeapProperties( + [annotation("_Out_opt_")] D3D12_HEAP_PROPERTIES* pHeapProperties, + [annotation("_Out_opt_")] D3D12_HEAP_FLAGS* pHeapFlags + ); +} + +[ uuid( 6102dee4-af59-4b09-b999-b44d73f09b24 ), object, local, pointer_default( unique ) ] +interface ID3D12CommandAllocator + : ID3D12Pageable +{ + HRESULT Reset(); +} + +[ uuid( 0a753dcf-c4d8-4b91-adf6-be5a60d95a76 ), object, local, pointer_default( unique ) ] +interface ID3D12Fence + : ID3D12Pageable +{ + UINT64 GetCompletedValue(); + HRESULT SetEventOnCompletion(UINT64 Value, HANDLE hEvent); + HRESULT Signal(UINT64 Value); +}; + +[ uuid( 433685fe-e22b-4ca0-a8db-b5b4f4dd0e4a ), object, local, pointer_default( unique ) ] +interface ID3D12Fence1 + : ID3D12Fence +{ + D3D12_FENCE_FLAGS GetCreationFlags(); +}; + + +[ uuid( 765a30f3-f624-4c6f-a828-ace948622445 ), object, local, pointer_default( unique ) ] +interface ID3D12PipelineState + : ID3D12Pageable +{ + HRESULT GetCachedBlob([annotation("_COM_Outptr_")] ID3DBlob** ppBlob); +} + +[ uuid( 8efb471d-616c-4f49-90f7-127bb763fa51 ), object, local, pointer_default( unique ) ] +interface ID3D12DescriptorHeap + : ID3D12Pageable +{ + D3D12_DESCRIPTOR_HEAP_DESC GetDesc(); + + D3D12_CPU_DESCRIPTOR_HANDLE GetCPUDescriptorHandleForHeapStart(); + D3D12_GPU_DESCRIPTOR_HANDLE GetGPUDescriptorHandleForHeapStart(); +} + +[ uuid( 0d9658ae-ed45-469e-a61d-970ec583cab4 ), object, local, pointer_default( unique ) ] +interface ID3D12QueryHeap + : ID3D12Pageable +{ +}; + +[ uuid( c36a797c-ec80-4f0a-8985-a7b2475082d1 ), object, local, pointer_default( unique ) ] +interface ID3D12CommandSignature + : ID3D12Pageable +{ +}; + +[ uuid( 7116d91c-e7e4-47ce-b8c6-ec8168f437e5 ), object, local, pointer_default( unique ) ] +interface ID3D12CommandList + : ID3D12DeviceChild +{ + D3D12_COMMAND_LIST_TYPE GetType(); +} + +// Superseded by ID3D12GraphicsCommandList1 +[ uuid( 5b160d0f-ac1b-4185-8ba8-b3ae42a5a455 ), object, local, pointer_default( unique ) ] +interface ID3D12GraphicsCommandList + : ID3D12CommandList +{ + HRESULT Close(); + + HRESULT Reset( + [annotation("_In_")] ID3D12CommandAllocator* pAllocator, + [annotation("_In_opt_")] ID3D12PipelineState* pInitialState + ); + + void ClearState( + [annotation("_In_opt_")] ID3D12PipelineState* pPipelineState + ); + + void DrawInstanced( + [annotation("_In_")] UINT VertexCountPerInstance, + [annotation("_In_")] UINT InstanceCount, + [annotation("_In_")] UINT StartVertexLocation, + [annotation("_In_")] UINT StartInstanceLocation + ); + + void DrawIndexedInstanced( + [annotation("_In_")] UINT IndexCountPerInstance, + [annotation("_In_")] UINT InstanceCount, + [annotation("_In_")] UINT StartIndexLocation, + [annotation("_In_")] INT BaseVertexLocation, + [annotation("_In_")] UINT StartInstanceLocation + ); + + void Dispatch( + [annotation("_In_")] UINT ThreadGroupCountX, + [annotation("_In_")] UINT ThreadGroupCountY, + [annotation("_In_")] UINT ThreadGroupCountZ + ); + + void CopyBufferRegion( + [annotation("_In_")] ID3D12Resource* pDstBuffer, + UINT64 DstOffset, + [annotation("_In_")] ID3D12Resource* pSrcBuffer, + UINT64 SrcOffset, + UINT64 NumBytes + ); + + void CopyTextureRegion( + [annotation("_In_")] const D3D12_TEXTURE_COPY_LOCATION* pDst, + UINT DstX, UINT DstY, UINT DstZ, + [annotation("_In_")] const D3D12_TEXTURE_COPY_LOCATION* pSrc, + [annotation("_In_opt_")] const D3D12_BOX* pSrcBox + ); + + void CopyResource( + [annotation("_In_")] ID3D12Resource* pDstResource, + [annotation("_In_")] ID3D12Resource* pSrcResource + ); + + void CopyTiles( + [annotation("_In_")] ID3D12Resource* pTiledResource, + [annotation("_In_")] const D3D12_TILED_RESOURCE_COORDINATE* pTileRegionStartCoordinate, + [annotation("_In_")] const D3D12_TILE_REGION_SIZE* pTileRegionSize, + [annotation("_In_")] ID3D12Resource* pBuffer, + UINT64 BufferStartOffsetInBytes, + D3D12_TILE_COPY_FLAGS Flags + ); + + void ResolveSubresource( + [annotation("_In_")] ID3D12Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_")] ID3D12Resource* pSrcResource, + [annotation("_In_")] UINT SrcSubresource, + [annotation("_In_")] DXGI_FORMAT Format + ); + + void IASetPrimitiveTopology( + [annotation("_In_")] D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology + ); + + void RSSetViewports( + [annotation("_In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE)")] UINT NumViewports, + [annotation("_In_reads_( NumViewports)")] const D3D12_VIEWPORT* pViewports + ); + + void RSSetScissorRects( + [annotation("_In_range_(0, D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE)")] UINT NumRects, + [annotation("_In_reads_( NumRects)")] const D3D12_RECT* pRects + ); + + void OMSetBlendFactor( + [annotation("_In_reads_opt_(4)")] const FLOAT BlendFactor[ 4 ] + ); + + void OMSetStencilRef( + [annotation("_In_")] UINT StencilRef + ); + + void SetPipelineState( + [annotation("_In_")] ID3D12PipelineState* pPipelineState + ); + + void ResourceBarrier( + [annotation("_In_")] UINT NumBarriers, + [annotation("_In_reads_(NumBarriers)")] const D3D12_RESOURCE_BARRIER* pBarriers + ); + + void ExecuteBundle( + [annotation("_In_")] ID3D12GraphicsCommandList* pCommandList + ); + + void SetDescriptorHeaps( + [annotation("_In_")] UINT NumDescriptorHeaps, + [annotation("_In_reads_(NumDescriptorHeaps)")] ID3D12DescriptorHeap* const* ppDescriptorHeaps + ); + + void SetComputeRootSignature( + [annotation("_In_opt_")] ID3D12RootSignature* pRootSignature + ); + + void SetGraphicsRootSignature( + [annotation("_In_opt_")] ID3D12RootSignature* pRootSignature + ); + + void SetComputeRootDescriptorTable( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor + ); + + void SetGraphicsRootDescriptorTable( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor + ); + + // Single constant + void SetComputeRoot32BitConstant( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] UINT SrcData, + [annotation("_In_")] UINT DestOffsetIn32BitValues + ); + + void SetGraphicsRoot32BitConstant( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] UINT SrcData, + [annotation("_In_")] UINT DestOffsetIn32BitValues + ); + + // Group of constants + void SetComputeRoot32BitConstants( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] UINT Num32BitValuesToSet, + [annotation("_In_reads_(Num32BitValuesToSet*sizeof(UINT))")] const void* pSrcData, + [annotation("_In_")] UINT DestOffsetIn32BitValues + ); + + void SetGraphicsRoot32BitConstants( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] UINT Num32BitValuesToSet, + [annotation("_In_reads_(Num32BitValuesToSet*sizeof(UINT))")] const void* pSrcData, + [annotation("_In_")] UINT DestOffsetIn32BitValues + ); + + // CBV + void SetComputeRootConstantBufferView( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] D3D12_GPU_VIRTUAL_ADDRESS BufferLocation + ); + + void SetGraphicsRootConstantBufferView( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] D3D12_GPU_VIRTUAL_ADDRESS BufferLocation + ); + + // SRV + void SetComputeRootShaderResourceView( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] D3D12_GPU_VIRTUAL_ADDRESS BufferLocation + ); + + void SetGraphicsRootShaderResourceView( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] D3D12_GPU_VIRTUAL_ADDRESS BufferLocation + ); + + // UAV + void SetComputeRootUnorderedAccessView( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] D3D12_GPU_VIRTUAL_ADDRESS BufferLocation + ); + + void SetGraphicsRootUnorderedAccessView( + [annotation("_In_")] UINT RootParameterIndex, + [annotation("_In_")] D3D12_GPU_VIRTUAL_ADDRESS BufferLocation + ); + + void IASetIndexBuffer( + [annotation("_In_opt_")] const D3D12_INDEX_BUFFER_VIEW* pView + ); + + void IASetVertexBuffers( + [annotation("_In_")] UINT StartSlot, + [annotation("_In_")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] const D3D12_VERTEX_BUFFER_VIEW* pViews + ); + + void SOSetTargets( + [annotation("_In_")] UINT StartSlot, + [annotation("_In_")] UINT NumViews, + [annotation("_In_reads_opt_(NumViews)")] const D3D12_STREAM_OUTPUT_BUFFER_VIEW* pViews + ); + + void OMSetRenderTargets( + [annotation("_In_")] UINT NumRenderTargetDescriptors, + [annotation("_In_opt_")] const D3D12_CPU_DESCRIPTOR_HANDLE* pRenderTargetDescriptors, + [annotation("_In_")] BOOL RTsSingleHandleToDescriptorRange, + [annotation("_In_opt_")] const D3D12_CPU_DESCRIPTOR_HANDLE* pDepthStencilDescriptor + ); + + void ClearDepthStencilView( + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE DepthStencilView, + [annotation("_In_")] D3D12_CLEAR_FLAGS ClearFlags, + [annotation("_In_")] FLOAT Depth, + [annotation("_In_")] UINT8 Stencil, + [annotation("_In_")] UINT NumRects, + [annotation("_In_reads_(NumRects)")] const D3D12_RECT* pRects + ); + + void ClearRenderTargetView( + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, + [annotation("_In_")] const FLOAT ColorRGBA[4], + [annotation("_In_")] UINT NumRects, + [annotation("_In_reads_(NumRects)")] const D3D12_RECT* pRects + ); + + void ClearUnorderedAccessViewUint( + [annotation("_In_")] D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + [annotation("_In_")] ID3D12Resource* pResource, + [annotation("_In_")] const UINT Values[4], + [annotation("_In_")] UINT NumRects, + [annotation("_In_reads_(NumRects)")] const D3D12_RECT* pRects + ); + + void ClearUnorderedAccessViewFloat( + [annotation("_In_")] D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, + [annotation("_In_")] ID3D12Resource* pResource, + [annotation("_In_")] const FLOAT Values[4], + [annotation("_In_")] UINT NumRects, + [annotation("_In_reads_(NumRects)")] const D3D12_RECT* pRects + ); + + void DiscardResource( + [annotation("_In_")] ID3D12Resource* pResource, + [annotation("_In_opt_")] const D3D12_DISCARD_REGION* pRegion + ); + + void BeginQuery( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT Index + ); + + void EndQuery( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT Index + ); + + void ResolveQueryData( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT StartIndex, + [annotation("_In_")] UINT NumQueries, + [annotation("_In_")] ID3D12Resource* pDestinationBuffer, + [annotation("_In_")] UINT64 AlignedDestinationBufferOffset + ); + + void SetPredication( + [annotation("_In_opt_")] ID3D12Resource* pBuffer, + [annotation("_In_")] UINT64 AlignedBufferOffset, + [annotation("_In_")] D3D12_PREDICATION_OP Operation + ); + + void SetMarker(UINT Metadata, [annotation("_In_reads_bytes_opt_(Size)")] const void* pData, UINT Size); + void BeginEvent(UINT Metadata, [annotation("_In_reads_bytes_opt_(Size)")] const void* pData, UINT Size); + void EndEvent(); + + void ExecuteIndirect( + [annotation("_In_")] ID3D12CommandSignature* pCommandSignature, + [annotation("_In_")] UINT MaxCommandCount, + [annotation("_In_")] ID3D12Resource* pArgumentBuffer, + [annotation("_In_")] UINT64 ArgumentBufferOffset, + [annotation("_In_opt_")] ID3D12Resource* pCountBuffer, + [annotation("_In_")] UINT64 CountBufferOffset + ); +} + +[ uuid( 553103fb-1fe7-4557-bb38-946d7d0e7ca7 ), object, local, pointer_default( unique ) ] +interface ID3D12GraphicsCommandList1 + : ID3D12GraphicsCommandList +{ + void AtomicCopyBufferUINT( + [annotation("_In_")] ID3D12Resource* pDstBuffer, + UINT64 DstOffset, + [annotation("_In_")] ID3D12Resource* pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, // 0 Dependencies means only the dst buffer offset is synchronized + [annotation("_In_reads_(Dependencies)")] ID3D12Resource*const* ppDependentResources, + [annotation("_In_reads_(Dependencies)")] const D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges + ); + + // UINT64 is only valid on UMA architectures + void AtomicCopyBufferUINT64( + [annotation("_In_")] ID3D12Resource* pDstBuffer, + UINT64 DstOffset, + [annotation("_In_")] ID3D12Resource* pSrcBuffer, + UINT64 SrcOffset, + UINT Dependencies, // 0 Dependencies means only the dst buffer offset is synchronized + [annotation("_In_reads_(Dependencies)")] ID3D12Resource*const* ppDependentResources, + [annotation("_In_reads_(Dependencies)")] const D3D12_SUBRESOURCE_RANGE_UINT64* pDependentSubresourceRanges + ); + + void OMSetDepthBounds( + [annotation("_In_")] FLOAT Min, + [annotation("_In_")] FLOAT Max + ); + + void SetSamplePositions( + [annotation("_In_")] UINT NumSamplesPerPixel, + [annotation("_In_")] UINT NumPixels, + [annotation("_In_reads_(NumSamplesPerPixel*NumPixels)")] D3D12_SAMPLE_POSITION* pSamplePositions + ); + + void ResolveSubresourceRegion( + [annotation("_In_")] ID3D12Resource* pDstResource, + [annotation("_In_")] UINT DstSubresource, + [annotation("_In_")] UINT DstX, + [annotation("_In_")] UINT DstY, + [annotation("_In_")] ID3D12Resource* pSrcResource, + [annotation("_In_")] UINT SrcSubresource, + [annotation("_In_opt_")] D3D12_RECT* pSrcRect, + [annotation("_In_")] DXGI_FORMAT Format, + [annotation("_In_")] D3D12_RESOLVE_MODE ResolveMode + ); + + void SetViewInstanceMask( + [annotation("_In_")] UINT Mask + ); + +} + +typedef struct D3D12_WRITEBUFFERIMMEDIATE_PARAMETER +{ + D3D12_GPU_VIRTUAL_ADDRESS Dest; + UINT32 Value; +} D3D12_WRITEBUFFERIMMEDIATE_PARAMETER; + +typedef enum D3D12_WRITEBUFFERIMMEDIATE_MODE +{ + D3D12_WRITEBUFFERIMMEDIATE_MODE_DEFAULT = 0x0, + D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_IN = 0x1, + D3D12_WRITEBUFFERIMMEDIATE_MODE_MARKER_OUT = 0x2, + +} D3D12_WRITEBUFFERIMMEDIATE_MODE; + +[uuid(38C3E585-FF17-412C-9150-4FC6F9D72A28), object, local, pointer_default(unique)] +interface ID3D12GraphicsCommandList2 : ID3D12GraphicsCommandList1 +{ + void WriteBufferImmediate( + UINT Count, + [annotation("_In_reads_(Count)")] const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + [annotation("_In_reads_opt_(Count)")] const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes + ); +} + +[ uuid( 0ec870a6-5d7e-4c22-8cfc-5baae07616ed ), object, local, pointer_default( unique ) ] +interface ID3D12CommandQueue + : ID3D12Pageable +{ + void UpdateTileMappings( + [annotation("_In_")] ID3D12Resource* pResource, + UINT NumResourceRegions, + [annotation("_In_reads_opt_(NumResourceRegions)")] const D3D12_TILED_RESOURCE_COORDINATE* pResourceRegionStartCoordinates, + [annotation("_In_reads_opt_(NumResourceRegions)")] const D3D12_TILE_REGION_SIZE* pResourceRegionSizes, + [annotation("_In_opt_")] ID3D12Heap* pHeap, + UINT NumRanges, + [annotation("_In_reads_opt_(NumRanges)")] const D3D12_TILE_RANGE_FLAGS* pRangeFlags, + [annotation("_In_reads_opt_(NumRanges)")] const UINT* pHeapRangeStartOffsets, + [annotation("_In_reads_opt_(NumRanges)")] const UINT* pRangeTileCounts, + D3D12_TILE_MAPPING_FLAGS Flags ); + + void CopyTileMappings( + [annotation("_In_")] ID3D12Resource* pDstResource, + [annotation("_In_")] const D3D12_TILED_RESOURCE_COORDINATE* pDstRegionStartCoordinate, + [annotation("_In_")] ID3D12Resource* pSrcResource, + [annotation("_In_")] const D3D12_TILED_RESOURCE_COORDINATE* pSrcRegionStartCoordinate, + [annotation("_In_")] const D3D12_TILE_REGION_SIZE* pRegionSize, + D3D12_TILE_MAPPING_FLAGS Flags ); + + void ExecuteCommandLists( + [annotation("_In_")] UINT NumCommandLists, + [annotation("_In_reads_(NumCommandLists)")] ID3D12CommandList * const * ppCommandLists + ); + + void SetMarker(UINT Metadata, [annotation("_In_reads_bytes_opt_(Size)")] const void* pData, UINT Size); + void BeginEvent(UINT Metadata, [annotation("_In_reads_bytes_opt_(Size)")] const void* pData, UINT Size); + void EndEvent(); + + HRESULT Signal(ID3D12Fence* pFence, UINT64 Value); + HRESULT Wait(ID3D12Fence* pFence, UINT64 Value); + + HRESULT GetTimestampFrequency( + [annotation("_Out_")] UINT64* pFrequency + ); + + HRESULT GetClockCalibration( + [annotation("_Out_")] UINT64* pGpuTimestamp, + [annotation("_Out_")] UINT64* pCpuTimestamp + ); + + D3D12_COMMAND_QUEUE_DESC GetDesc(); +} + +[ uuid( 189819f1-1db6-4b57-be54-1821339b85f7 ), object, local, pointer_default( unique ) ] +interface ID3D12Device + : ID3D12Object +{ + UINT GetNodeCount(); + + HRESULT CreateCommandQueue( + [annotation("_In_")] const D3D12_COMMAND_QUEUE_DESC* pDesc, + [in] REFIID riid, // Expected: ID3D12CommandQueue + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppCommandQueue + ); + + HRESULT CreateCommandAllocator( + [annotation("_In_")] D3D12_COMMAND_LIST_TYPE type, + [in] REFIID riid, // Expected: ID3D12CommandAllocator + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppCommandAllocator + ); + + HRESULT CreateGraphicsPipelineState( + [annotation("_In_")] const D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, + [in] REFIID riid, // Expected: ID3D12PipelineState + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppPipelineState + ); + + HRESULT CreateComputePipelineState( + [annotation("_In_")] const D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, + [in] REFIID riid, // Expected: ID3D12PipelineState + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppPipelineState + ); + + HRESULT CreateCommandList( + [annotation("_In_")] UINT nodeMask, + [annotation("_In_")] D3D12_COMMAND_LIST_TYPE type, + [annotation("_In_")] ID3D12CommandAllocator* pCommandAllocator, + [annotation("_In_opt_")] ID3D12PipelineState* pInitialState, + [in] REFIID riid, // Expected: ID3D12CommandList + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppCommandList + ); + + HRESULT CheckFeatureSupport( + D3D12_FEATURE Feature, + [annotation("_Inout_updates_bytes_(FeatureSupportDataSize)")] void* pFeatureSupportData, + UINT FeatureSupportDataSize + ); + + HRESULT CreateDescriptorHeap( + [annotation("_In_")] const D3D12_DESCRIPTOR_HEAP_DESC* pDescriptorHeapDesc, + [in] REFIID riid, // Expected ID3D12DescriptorHeap + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvHeap); + + UINT GetDescriptorHandleIncrementSize( + [annotation("_In_")] D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapType); + + HRESULT CreateRootSignature( + [annotation("_In_")] UINT nodeMask, + [annotation("_In_reads_(blobLengthInBytes)")] const void* pBlobWithRootSignature, + [annotation("_In_")] SIZE_T blobLengthInBytes, + [in] REFIID riid, // Expected ID3D12RootSignature + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvRootSignature); + + void CreateConstantBufferView( + [annotation("_In_opt_")] const D3D12_CONSTANT_BUFFER_VIEW_DESC* pDesc, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + void CreateShaderResourceView( + [annotation("_In_opt_")] ID3D12Resource* pResource, + [annotation("_In_opt_")] const D3D12_SHADER_RESOURCE_VIEW_DESC* pDesc, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + void CreateUnorderedAccessView( + [annotation("_In_opt_")] ID3D12Resource* pResource, + [annotation("_In_opt_")] ID3D12Resource* pCounterResource, + [annotation("_In_opt_")] const D3D12_UNORDERED_ACCESS_VIEW_DESC* pDesc, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + void CreateRenderTargetView( + [annotation("_In_opt_")] ID3D12Resource* pResource, + [annotation("_In_opt_")] const D3D12_RENDER_TARGET_VIEW_DESC* pDesc, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + void CreateDepthStencilView( + [annotation("_In_opt_")] ID3D12Resource* pResource, + [annotation("_In_opt_")] const D3D12_DEPTH_STENCIL_VIEW_DESC* pDesc, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + void CreateSampler( + [annotation("_In_")] const D3D12_SAMPLER_DESC* pDesc, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + void CopyDescriptors( + [annotation("_In_")] UINT NumDestDescriptorRanges, + [annotation("_In_reads_(NumDestDescriptorRanges)")] const D3D12_CPU_DESCRIPTOR_HANDLE* pDestDescriptorRangeStarts, + [annotation("_In_reads_opt_(NumDestDescriptorRanges)")] const UINT* pDestDescriptorRangeSizes, // NULL means all ranges 1 + [annotation("_In_")] UINT NumSrcDescriptorRanges, + [annotation("_In_reads_(NumSrcDescriptorRanges)")] const D3D12_CPU_DESCRIPTOR_HANDLE* pSrcDescriptorRangeStarts, + [annotation("_In_reads_opt_(NumSrcDescriptorRanges)")] const UINT* pSrcDescriptorRangeSizes, // NULL means all ranges 1 + [annotation("_In_")] D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + void CopyDescriptorsSimple( + [annotation("_In_")] UINT NumDescriptors, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptorRangeStart, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE SrcDescriptorRangeStart, + [annotation("_In_")] D3D12_DESCRIPTOR_HEAP_TYPE DescriptorHeapsType); + + D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo( + [annotation("_In_")] UINT visibleMask, + [annotation("_In_")] UINT numResourceDescs, + [annotation("_In_reads_(numResourceDescs)")] const D3D12_RESOURCE_DESC* pResourceDescs ); + + D3D12_HEAP_PROPERTIES GetCustomHeapProperties( + [annotation("_In_")] UINT nodeMask, + D3D12_HEAP_TYPE heapType + ); + + HRESULT CreateCommittedResource( + [annotation("_In_")] const D3D12_HEAP_PROPERTIES* pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + [annotation("_In_")] const D3D12_RESOURCE_DESC* pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + [in] REFIID riidResource, // Expected: ID3D12Resource* + [out, iid_is(riidResource), annotation("_COM_Outptr_opt_")] void** ppvResource ); + + HRESULT CreateHeap( + [annotation("_In_")] const D3D12_HEAP_DESC* pDesc, + [in] REFIID riid, // Expected: ID3D12Heap* + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvHeap ); + + HRESULT CreatePlacedResource( + [annotation("_In_")] ID3D12Heap* pHeap, + UINT64 HeapOffset, + [annotation("_In_")] const D3D12_RESOURCE_DESC* pDesc, + D3D12_RESOURCE_STATES InitialState, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + [in] REFIID riid, // Expected: ID3D12Resource* + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvResource ); + + HRESULT CreateReservedResource( + [annotation("_In_")] const D3D12_RESOURCE_DESC* pDesc, + D3D12_RESOURCE_STATES InitialState, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + [in] REFIID riid, // Expected: ID3D12Resource* + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvResource ); + + HRESULT CreateSharedHandle( + [annotation("_In_")] ID3D12DeviceChild* pObject, + [annotation("_In_opt_")] const SECURITY_ATTRIBUTES* pAttributes, + DWORD Access, + [annotation("_In_opt_")] LPCWSTR Name, + [annotation("_Out_")] HANDLE* pHandle ); + + HRESULT OpenSharedHandle( + [annotation("_In_")] HANDLE NTHandle, + [in] REFIID riid, // Expected: ID3D12Resource*, ID3D12Heap*, or ID3D12Fence + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvObj ); + + HRESULT OpenSharedHandleByName( + [annotation("_In_")] LPCWSTR Name, + DWORD Access, + [out, annotation("_Out_")] HANDLE* pNTHandle ); + + HRESULT MakeResident( + UINT NumObjects, + [annotation("_In_reads_(NumObjects)")] ID3D12Pageable*const* ppObjects ); + + HRESULT Evict( + UINT NumObjects, + [annotation("_In_reads_(NumObjects)")] ID3D12Pageable*const* ppObjects ); + + HRESULT CreateFence( + UINT64 InitialValue, + D3D12_FENCE_FLAGS Flags, + [in] REFIID riid, // Expected: ID3D12Fence + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppFence); + + HRESULT GetDeviceRemovedReason(); + + void GetCopyableFootprints( + [annotation("_In_")] const D3D12_RESOURCE_DESC* pResourceDesc, + [annotation("_In_range_(0,D3D12_REQ_SUBRESOURCES)")] UINT FirstSubresource, + [annotation("_In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource)")] UINT NumSubresources, + UINT64 BaseOffset, + [annotation("_Out_writes_opt_(NumSubresources)")] D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, + [annotation("_Out_writes_opt_(NumSubresources)")] UINT* pNumRows, + [annotation("_Out_writes_opt_(NumSubresources)")] UINT64* pRowSizeInBytes, + [annotation("_Out_opt_")] UINT64* pTotalBytes ); + + HRESULT CreateQueryHeap( + [annotation("_In_")] const D3D12_QUERY_HEAP_DESC* pDesc, + [in] REFIID riid, // Expected: ID3D12QueryHeap + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvHeap + ); + + HRESULT SetStablePowerState(BOOL Enable); + + HRESULT CreateCommandSignature( + [annotation("_In_")] const D3D12_COMMAND_SIGNATURE_DESC* pDesc, + [annotation("_In_opt_")] ID3D12RootSignature* pRootSignature, + [in] REFIID riid, // Expected: ID3D12CommandSignature + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvCommandSignature + ); + + void GetResourceTiling( + [annotation("_In_")] ID3D12Resource* pTiledResource, + [annotation("_Out_opt_")] UINT* pNumTilesForEntireResource, + [annotation("_Out_opt_")] D3D12_PACKED_MIP_INFO* pPackedMipDesc, + [annotation("_Out_opt_")] D3D12_TILE_SHAPE* pStandardTileShapeForNonPackedMips, + [annotation("_Inout_opt_")] UINT* pNumSubresourceTilings, + [annotation("_In_")] UINT FirstSubresourceTilingToGet, + [annotation("_Out_writes_(*pNumSubresourceTilings)")] D3D12_SUBRESOURCE_TILING* pSubresourceTilingsForNonPackedMips + ); + + LUID GetAdapterLuid(); +} + +// D3D12 Revision 1 +[ uuid( c64226a8-9201-46af-b4cc-53fb9ff7414f ), object, local, pointer_default( unique ) ] +interface ID3D12PipelineLibrary + : ID3D12DeviceChild +{ + HRESULT StorePipeline( + [annotation("_In_opt_")] LPCWSTR pName, + [annotation("_In_")] ID3D12PipelineState *pPipeline + ); + + HRESULT LoadGraphicsPipeline( + [annotation("_In_")] LPCWSTR pName, + [annotation("_In_")] const D3D12_GRAPHICS_PIPELINE_STATE_DESC* pDesc, + [in] REFIID riid, // Expected: ID3D12PipelineState + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppPipelineState + ); + + HRESULT LoadComputePipeline( + [annotation("_In_")] LPCWSTR pName, + [annotation("_In_")] const D3D12_COMPUTE_PIPELINE_STATE_DESC* pDesc, + [in] REFIID riid, // Expected: ID3D12PipelineState + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppPipelineState + ); + + SIZE_T GetSerializedSize(); + + HRESULT Serialize( + [annotation("_Out_writes_(DataSizeInBytes)")] void* pData, + SIZE_T DataSizeInBytes + ); +} + +// Pipeline State v2 +[ uuid( 80eabf42-2568-4e5e-bd82-c37f86961dc3 ), object, local, pointer_default( unique ) ] +interface ID3D12PipelineLibrary1 + : ID3D12PipelineLibrary +{ + HRESULT LoadPipeline( + [annotation("_In_")] LPCWSTR pName, + [annotation("_In_")] const D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, + [in] REFIID riid, // Expected: ID3D12PipelineState + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppPipelineState + ); +} + +typedef enum D3D12_MULTIPLE_FENCE_WAIT_FLAGS +{ + D3D12_MULTIPLE_FENCE_WAIT_FLAG_NONE = 0x0, + D3D12_MULTIPLE_FENCE_WAIT_FLAG_ANY = 0x1, + + D3D12_MULTIPLE_FENCE_WAIT_FLAG_ALL = 0x0, // Alias, default behavior is ALL +} D3D12_MULTIPLE_FENCE_WAIT_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_MULTIPLE_FENCE_WAIT_FLAGS )" ) + +// Applications may use the whole value range of UINT for a priority. +// These names are merely semantic suggestions. +typedef enum D3D12_RESIDENCY_PRIORITY +{ + D3D12_RESIDENCY_PRIORITY_MINIMUM = 0x28000000, + D3D12_RESIDENCY_PRIORITY_LOW = 0x50000000, + D3D12_RESIDENCY_PRIORITY_NORMAL = 0x78000000, + D3D12_RESIDENCY_PRIORITY_HIGH = 0xa0010000, + D3D12_RESIDENCY_PRIORITY_MAXIMUM = 0xc8000000, +} D3D12_RESIDENCY_PRIORITY; + +[uuid(77acce80-638e-4e65-8895-c1f23386863e), object, local, pointer_default(unique)] +interface ID3D12Device1 + : ID3D12Device +{ + HRESULT CreatePipelineLibrary( + [annotation("_In_reads_(BlobLength)")] const void *pLibraryBlob, + SIZE_T BlobLength, + [in] REFIID riid, // Expected: ID3D12PipelineLibrary + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppPipelineLibrary + ); + + HRESULT SetEventOnMultipleFenceCompletion( + [annotation("_In_reads_(NumFences)")] ID3D12Fence* const* ppFences, + [annotation("_In_reads_(NumFences)")] const UINT64* pFenceValues, + UINT NumFences, + D3D12_MULTIPLE_FENCE_WAIT_FLAGS Flags, + HANDLE hEvent + ); + + HRESULT SetResidencyPriority( + UINT NumObjects, + [annotation("_In_reads_(NumObjects)")] ID3D12Pageable*const* ppObjects, + [annotation("_In_reads_(NumObjects)")] const D3D12_RESIDENCY_PRIORITY* pPriorities ); +} + +[uuid(30baa41e-b15b-475c-a0bb-1af5c5b64328), object, local, pointer_default(unique)] +interface ID3D12Device2 + : ID3D12Device1 +{ + HRESULT CreatePipelineState( + [in] const D3D12_PIPELINE_STATE_STREAM_DESC* pDesc, + [in] REFIID riid, // Can be any pipeline state interface, provided the pipeline subobjects match + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppPipelineState + ); +} + +typedef enum D3D12_RESIDENCY_FLAGS +{ + D3D12_RESIDENCY_FLAG_NONE = 0x0, + D3D12_RESIDENCY_FLAG_DENY_OVERBUDGET = 0x1, +} D3D12_RESIDENCY_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_RESIDENCY_FLAGS )" ) + +[uuid(81dadc15-2bad-4392-93c5-101345c4aa98), object, local, pointer_default(unique)] +interface ID3D12Device3 + : ID3D12Device2 +{ + HRESULT OpenExistingHeapFromAddress( + [annotation("_In_")] const void* pAddress, + [in] REFIID riid, // Expected: ID3D12Heap + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvHeap + ); + HRESULT OpenExistingHeapFromFileMapping( + [annotation("_In_")] HANDLE hFileMapping, + [in] REFIID riid, // Expected: ID3D12Heap + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvHeap + ); + HRESULT EnqueueMakeResident( + D3D12_RESIDENCY_FLAGS Flags, + UINT NumObjects, + [annotation("_In_reads_(NumObjects)")] ID3D12Pageable*const* ppObjects, + [annotation("_In_")] ID3D12Fence* pFenceToSignal, + UINT64 FenceValueToSignal + ); +} + +typedef enum D3D12_COMMAND_LIST_FLAGS +{ + D3D12_COMMAND_LIST_FLAG_NONE = 0x0, +} D3D12_COMMAND_LIST_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_LIST_FLAGS )") + + +typedef enum D3D12_COMMAND_POOL_FLAGS +{ + D3D12_COMMAND_POOL_FLAG_NONE = 0x0, + +} D3D12_COMMAND_POOL_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_POOL_FLAGS )") + +typedef enum D3D12_COMMAND_RECORDER_FLAGS +{ + D3D12_COMMAND_RECORDER_FLAG_NONE = 0x0, + +} D3D12_COMMAND_RECORDER_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMMAND_RECORDER_FLAGS )") + +typedef enum D3D12_PROTECTED_SESSION_STATUS +{ + D3D12_PROTECTED_SESSION_STATUS_OK = 0, + D3D12_PROTECTED_SESSION_STATUS_INVALID = 1, +} D3D12_PROTECTED_SESSION_STATUS; + +[uuid(A1533D18-0AC1-4084-85B9-89A96116806B), object, local, pointer_default(unique)] +interface ID3D12ProtectedSession + : ID3D12DeviceChild +{ + HRESULT GetStatusFence( + [in] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppFence); + + D3D12_PROTECTED_SESSION_STATUS GetSessionStatus(); +} + +typedef enum D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS +{ + D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_NONE = 0x0, + D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAG_SUPPORTED = 0x1, + +} D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS )") + +typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT +{ + UINT NodeIndex; // input + D3D12_PROTECTED_RESOURCE_SESSION_SUPPORT_FLAGS Support; // output +} D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_SUPPORT; + +typedef enum D3D12_PROTECTED_RESOURCE_SESSION_FLAGS +{ + D3D12_PROTECTED_RESOURCE_SESSION_FLAG_NONE = 0x0, + +} D3D12_PROTECTED_RESOURCE_SESSION_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_PROTECTED_RESOURCE_SESSION_FLAGS )") + +typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC +{ + UINT NodeMask; + D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags; +} D3D12_PROTECTED_RESOURCE_SESSION_DESC; + +[uuid(6CD696F4-F289-40CC-8091-5A6C0A099C3D), object, local, pointer_default(unique)] +interface ID3D12ProtectedResourceSession + : ID3D12ProtectedSession +{ + D3D12_PROTECTED_RESOURCE_SESSION_DESC GetDesc(); +} + +[uuid(e865df17-a9ee-46f9-a463-3098315aa2e5), object, local, pointer_default(unique)] +interface ID3D12Device4 + : ID3D12Device3 +{ + HRESULT CreateCommandList1( + [annotation("_In_")] UINT nodeMask, + [annotation("_In_")] D3D12_COMMAND_LIST_TYPE type, + [annotation("_In_")] D3D12_COMMAND_LIST_FLAGS flags, + [in] REFIID riid, // Expected: ID3D12CommandList + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppCommandList + ); + + HRESULT CreateProtectedResourceSession( + [annotation("_In_")] const D3D12_PROTECTED_RESOURCE_SESSION_DESC* pDesc, + [annotation("_In_")] REFIID riid, // Expected: ID3D12ProtectedResourceSession, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppSession + ); + + HRESULT CreateCommittedResource1( + [annotation("_In_")] const D3D12_HEAP_PROPERTIES* pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + [annotation("_In_")] const D3D12_RESOURCE_DESC* pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession *pProtectedSession, + [in] REFIID riidResource, // Expected: ID3D12Resource1* + [out, iid_is(riidResource), annotation("_COM_Outptr_opt_")] void** ppvResource + ); + + HRESULT CreateHeap1( + [annotation("_In_")] const D3D12_HEAP_DESC* pDesc, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession *pProtectedSession, + [in] REFIID riid, // Expected: ID3D12Heap1* + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvHeap + ); + + HRESULT CreateReservedResource1( + [annotation("_In_")] const D3D12_RESOURCE_DESC* pDesc, + D3D12_RESOURCE_STATES InitialState, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession *pProtectedSession, + [in] REFIID riid, // Expected: ID3D12Resource1* + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvResource + ); + + D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo1( + UINT visibleMask, + UINT numResourceDescs, + [annotation("_In_reads_(numResourceDescs)")] const D3D12_RESOURCE_DESC* pResourceDescs, + [annotation("_Out_writes_opt_(numResourceDescs)")] D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1 + ); +} + +typedef enum D3D12_LIFETIME_STATE +{ + D3D12_LIFETIME_STATE_IN_USE, + D3D12_LIFETIME_STATE_NOT_IN_USE, +} D3D12_LIFETIME_STATE; + +interface ID3D12LifetimeTracker; + +[uuid(e667af9f-cd56-4f46-83ce-032e595d70a8), object, local, pointer_default(unique)] +interface ID3D12LifetimeOwner : IUnknown +{ + void LifetimeStateUpdated(D3D12_LIFETIME_STATE NewState); +} + +[uuid(f1df64b6-57fd-49cd-8807-c0eb88b45c8f), object, local, pointer_default(unique)] +interface ID3D12SwapChainAssistant + : IUnknown +{ + LUID GetLUID(); + HRESULT GetSwapChainObject(REFIID riid, [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppv); + HRESULT GetCurrentResourceAndCommandQueue(REFIID riidResource, [out, iid_is(riidResource), annotation("_COM_Outptr_")] void** ppvResource, + REFIID riidQueue, [out, iid_is(riidQueue), annotation("_COM_Outptr_")] void** ppvQueue); + HRESULT InsertImplicitSync(); +} + +[uuid(3fd03d36-4eb1-424a-a582-494ecb8ba813), object, local, pointer_default(unique)] +interface ID3D12LifetimeTracker + : ID3D12DeviceChild +{ + HRESULT DestroyOwnedObject([annotation("_In_")] ID3D12DeviceChild* pObject); +} + +typedef enum D3D12_META_COMMAND_PARAMETER_TYPE +{ + D3D12_META_COMMAND_PARAMETER_TYPE_FLOAT = 0, + D3D12_META_COMMAND_PARAMETER_TYPE_UINT64 = 1, + D3D12_META_COMMAND_PARAMETER_TYPE_GPU_VIRTUAL_ADDRESS = 2, + D3D12_META_COMMAND_PARAMETER_TYPE_CPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 3, + D3D12_META_COMMAND_PARAMETER_TYPE_GPU_DESCRIPTOR_HANDLE_HEAP_TYPE_CBV_SRV_UAV = 4, +} D3D12_META_COMMAND_PARAMETER_TYPE; + +typedef enum D3D12_META_COMMAND_PARAMETER_FLAGS +{ + D3D12_META_COMMAND_PARAMETER_FLAG_INPUT = 0x00000001, + D3D12_META_COMMAND_PARAMETER_FLAG_OUTPUT = 0x00000002 +} D3D12_META_COMMAND_PARAMETER_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_META_COMMAND_PARAMETER_FLAGS )") + +typedef enum D3D12_META_COMMAND_PARAMETER_STAGE +{ + D3D12_META_COMMAND_PARAMETER_STAGE_CREATION = 0, + D3D12_META_COMMAND_PARAMETER_STAGE_INITIALIZATION = 1, + D3D12_META_COMMAND_PARAMETER_STAGE_EXECUTION = 2, +} D3D12_META_COMMAND_PARAMETER_STAGE; + +typedef struct D3D12_META_COMMAND_PARAMETER_DESC +{ + LPCWSTR Name; + D3D12_META_COMMAND_PARAMETER_TYPE Type; + D3D12_META_COMMAND_PARAMETER_FLAGS Flags; + D3D12_RESOURCE_STATES RequiredResourceState; + UINT StructureOffset; +} D3D12_META_COMMAND_PARAMETER_DESC; + +typedef enum D3D12_GRAPHICS_STATES +{ + D3D12_GRAPHICS_STATE_NONE = 0, + D3D12_GRAPHICS_STATE_IA_VERTEX_BUFFERS = (1 << 0), + D3D12_GRAPHICS_STATE_IA_INDEX_BUFFER = (1 << 1), + D3D12_GRAPHICS_STATE_IA_PRIMITIVE_TOPOLOGY = (1 << 2), + D3D12_GRAPHICS_STATE_DESCRIPTOR_HEAP = (1 << 3), + D3D12_GRAPHICS_STATE_GRAPHICS_ROOT_SIGNATURE = (1 << 4), + D3D12_GRAPHICS_STATE_COMPUTE_ROOT_SIGNATURE = (1 << 5), + D3D12_GRAPHICS_STATE_RS_VIEWPORTS = (1 << 6), + D3D12_GRAPHICS_STATE_RS_SCISSOR_RECTS = (1 << 7), + D3D12_GRAPHICS_STATE_PREDICATION = (1 << 8), + D3D12_GRAPHICS_STATE_OM_RENDER_TARGETS = (1 << 9), + D3D12_GRAPHICS_STATE_OM_STENCIL_REF = (1 << 10), + D3D12_GRAPHICS_STATE_OM_BLEND_FACTOR = (1 << 11), + D3D12_GRAPHICS_STATE_PIPELINE_STATE = (1 << 12), + D3D12_GRAPHICS_STATE_SO_TARGETS = (1 << 13), + D3D12_GRAPHICS_STATE_OM_DEPTH_BOUNDS = (1 << 14), + D3D12_GRAPHICS_STATE_SAMPLE_POSITIONS = (1 << 15), + D3D12_GRAPHICS_STATE_VIEW_INSTANCE_MASK = (1 << 16), + +} D3D12_GRAPHICS_STATES; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_GRAPHICS_STATES )") + +typedef struct D3D12_META_COMMAND_DESC +{ + GUID Id; + LPCWSTR Name; + D3D12_GRAPHICS_STATES InitializationDirtyState; + D3D12_GRAPHICS_STATES ExecutionDirtyState; +} D3D12_META_COMMAND_DESC; + +[uuid(47016943-fca8-4594-93ea-af258b55346d), object, local, pointer_default(unique)] +interface ID3D12StateObject + : ID3D12Pageable +{ +} + +[uuid(de5fa827-9bf9-4f26-89ff-d7f56fde3860), object, local, pointer_default(unique)] +interface ID3D12StateObjectProperties + : IUnknown +{ + void* GetShaderIdentifier([annotation("_In_")] LPCWSTR pExportName); + UINT64 GetShaderStackSize([annotation("_In_")] LPCWSTR pExportName); + UINT64 GetPipelineStackSize(); + void SetPipelineStackSize(UINT64 PipelineStackSizeInBytes); +} + +typedef struct D3D12_PROGRAM_IDENTIFIER +{ + UINT64 OpaqueData[4]; +} D3D12_PROGRAM_IDENTIFIER; + +[uuid(460caac7-1d24-446a-a184-ca67db494138), object, local, pointer_default(unique)] +interface ID3D12StateObjectProperties1 + : ID3D12StateObjectProperties +{ + D3D12_PROGRAM_IDENTIFIER GetProgramIdentifier(LPCWSTR pProgramName); +} + +typedef struct D3D12_NODE_ID +{ + LPCWSTR Name; + UINT ArrayIndex; +} D3D12_NODE_ID; + +typedef struct D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS +{ + UINT64 MinSizeInBytes; + UINT64 MaxSizeInBytes; + UINT SizeGranularityInBytes; +} D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS; + +[uuid(065acf71-f863-4b89-82f4-02e4d5886757), object, local, pointer_default(unique)] +interface ID3D12WorkGraphProperties : IUnknown +{ + UINT GetNumWorkGraphs(); + LPCWSTR GetProgramName(UINT WorkGraphIndex); + UINT GetWorkGraphIndex(LPCWSTR pProgramName); + + UINT GetNumNodes(UINT WorkGraphIndex); + D3D12_NODE_ID GetNodeID(UINT WorkGraphIndex, UINT NodeIndex); + UINT GetNodeIndex(UINT WorkGraphIndex, D3D12_NODE_ID NodeID); + UINT GetNodeLocalRootArgumentsTableIndex(UINT WorkGraphIndex, UINT NodeIndex); + + UINT GetNumEntrypoints(UINT WorkGraphIndex); + D3D12_NODE_ID GetEntrypointID(UINT WorkGraphIndex, UINT EntrypointIndex); + UINT GetEntrypointIndex(UINT WorkGraphIndex, D3D12_NODE_ID NodeID); + UINT GetEntrypointRecordSizeInBytes(UINT WorkGraphIndex, UINT EntrypointIndex); + + void GetWorkGraphMemoryRequirements( + UINT WorkGraphIndex, + [annotation("_Out_")] D3D12_WORK_GRAPH_MEMORY_REQUIREMENTS* pWorkGraphMemoryRequirements); + + UINT GetEntrypointRecordAlignmentInBytes(UINT WorkGraphIndex, UINT EntrypointIndex); +} + +typedef enum D3D12_STATE_SUBOBJECT_TYPE +{ + D3D12_STATE_SUBOBJECT_TYPE_STATE_OBJECT_CONFIG = 0, // D3D12_STATE_OBJECT_CONFIG + D3D12_STATE_SUBOBJECT_TYPE_GLOBAL_ROOT_SIGNATURE = 1, // D3D12_GLOBAL_ROOT_SIGNATURE + D3D12_STATE_SUBOBJECT_TYPE_LOCAL_ROOT_SIGNATURE = 2, // D3D12_LOCAL_ROOT_SIGNATURE + D3D12_STATE_SUBOBJECT_TYPE_NODE_MASK = 3, // D3D12_NODE_MASK + // 4 unused + D3D12_STATE_SUBOBJECT_TYPE_DXIL_LIBRARY = 5, // D3D12_DXIL_LIBRARY_DESC + D3D12_STATE_SUBOBJECT_TYPE_EXISTING_COLLECTION = 6, // D3D12_EXISTING_COLLECTION_DESC + D3D12_STATE_SUBOBJECT_TYPE_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 7, // D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION + D3D12_STATE_SUBOBJECT_TYPE_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION = 8, // D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION + D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_SHADER_CONFIG = 9, // D3D12_RAYTRACING_SHADER_CONFIG + D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG = 10, // D3D12_RAYTRACING_PIPELINE_CONFIG + D3D12_STATE_SUBOBJECT_TYPE_HIT_GROUP = 11, // D3D12_HIT_GROUP_DESC + D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1 = 12, // D3D12_RAYTRACING_PIPELINE_CONFIG1 + D3D12_STATE_SUBOBJECT_TYPE_WORK_GRAPH = 13, // D3D12_WORK_GRAPH_DESC + D3D12_STATE_SUBOBJECT_TYPE_STREAM_OUTPUT = 14, // D3D12_STREAM_OUTPUT_DESC + D3D12_STATE_SUBOBJECT_TYPE_BLEND = 15, // D3D12_BLEND_DESC + D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_MASK = 16, // UINT + D3D12_STATE_SUBOBJECT_TYPE_RASTERIZER = 17, // D3D12_RASTERIZER_DESC2 + D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL = 18, // D3D12_DEPTH_STENCIL_DESC + D3D12_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT = 19, // D3D12_INPUT_LAYOUT_DESC + D3D12_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE = 20, // D3D12_INDEX_BUFFER_STRIP_CUT_VALUE + D3D12_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY = 21, // D3D12_PRIMITIVE_TOPOLOGY_TYPE + D3D12_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS = 22, // D3D12_RT_FORMAT_ARRAY + D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT = 23, // DXGI_FORMAT + D3D12_STATE_SUBOBJECT_TYPE_SAMPLE_DESC = 24, // DXGI_SAMPLE_DESC + // 25 is unused + D3D12_STATE_SUBOBJECT_TYPE_FLAGS = 26, // D3D12_PIPELINE_STATE_FLAGS + D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL1 = 27, // D3D12_DEPTH_STENCIL_DESC1 + D3D12_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING = 28, // D3D12_VIEW_INSTANCING_DESC + D3D12_STATE_SUBOBJECT_TYPE_GENERIC_PROGRAM = 29, // D3D12_GENERIC_PROGRAM_DESC + D3D12_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL2 = 30, // D3D12_DEPTH_STENCIL_DESC2 + + D3D12_STATE_SUBOBJECT_TYPE_MAX_VALID, +} D3D12_STATE_SUBOBJECT_TYPE; + +typedef struct D3D12_STATE_SUBOBJECT +{ + D3D12_STATE_SUBOBJECT_TYPE Type; + const void* pDesc; +} D3D12_STATE_SUBOBJECT; + +typedef enum D3D12_STATE_OBJECT_FLAGS +{ + D3D12_STATE_OBJECT_FLAG_NONE = 0x0, + D3D12_STATE_OBJECT_FLAG_ALLOW_LOCAL_DEPENDENCIES_ON_EXTERNAL_DEFINITIONS = 0x1, + D3D12_STATE_OBJECT_FLAG_ALLOW_EXTERNAL_DEPENDENCIES_ON_LOCAL_DEFINITIONS = 0x2, + D3D12_STATE_OBJECT_FLAG_ALLOW_STATE_OBJECT_ADDITIONS = 0x4, +} D3D12_STATE_OBJECT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_STATE_OBJECT_FLAGS )") + +typedef struct D3D12_STATE_OBJECT_CONFIG +{ + D3D12_STATE_OBJECT_FLAGS Flags; +} D3D12_STATE_OBJECT_CONFIG; + +typedef struct D3D12_GLOBAL_ROOT_SIGNATURE +{ + ID3D12RootSignature* pGlobalRootSignature; +} D3D12_GLOBAL_ROOT_SIGNATURE; + +typedef struct D3D12_LOCAL_ROOT_SIGNATURE +{ + ID3D12RootSignature* pLocalRootSignature; +} D3D12_LOCAL_ROOT_SIGNATURE; + +typedef struct D3D12_NODE_MASK +{ + UINT NodeMask; +} D3D12_NODE_MASK; + +typedef struct D3D12_SAMPLE_MASK +{ + UINT SampleMask; +} D3D12_SAMPLE_MASK; + +typedef struct D3D12_IB_STRIP_CUT_VALUE +{ + D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IndexBufferStripCutValue; +} D3D12_IB_STRIP_CUT_VALUE; + +typedef struct D3D12_PRIMITIVE_TOPOLOGY_DESC +{ + D3D12_PRIMITIVE_TOPOLOGY_TYPE PrimitiveTopology; +} D3D12_PRIMITIVE_TOPOLOGY_DESC; + +typedef struct D3D12_DEPTH_STENCIL_FORMAT +{ + DXGI_FORMAT DepthStencilFormat; +} D3D12_DEPTH_STENCIL_FORMAT; + +typedef enum D3D12_EXPORT_FLAGS +{ + D3D12_EXPORT_FLAG_NONE = 0x0, +} D3D12_EXPORT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_EXPORT_FLAGS )") + +typedef struct D3D12_EXPORT_DESC +{ + LPCWSTR Name; + [annotation("_In_opt_")] LPCWSTR ExportToRename; + D3D12_EXPORT_FLAGS Flags; +} D3D12_EXPORT_DESC; + +typedef struct D3D12_DXIL_LIBRARY_DESC +{ + D3D12_SHADER_BYTECODE DXILLibrary; + UINT NumExports; // Optional, if 0 all exports in the library/collection will be surfaced + [annotation("_In_reads_(NumExports)")] const D3D12_EXPORT_DESC* pExports; +} D3D12_DXIL_LIBRARY_DESC; + +typedef struct D3D12_EXISTING_COLLECTION_DESC +{ + ID3D12StateObject* pExistingCollection; + UINT NumExports; // Optional, if 0 all exports in the library/collection will be surfaced + [annotation("_In_reads_(NumExports)")] const D3D12_EXPORT_DESC* pExports; +} D3D12_EXISTING_COLLECTION_DESC; + +typedef struct D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION +{ + const D3D12_STATE_SUBOBJECT* pSubobjectToAssociate; + UINT NumExports; + [annotation("_In_reads_(NumExports)")] LPCWSTR* pExports; +} D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION; + +typedef struct D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION +{ + LPCWSTR SubobjectToAssociate; + UINT NumExports; + [annotation("_In_reads_(NumExports)")] LPCWSTR* pExports; +} D3D12_DXIL_SUBOBJECT_TO_EXPORTS_ASSOCIATION; + +typedef enum D3D12_HIT_GROUP_TYPE +{ + D3D12_HIT_GROUP_TYPE_TRIANGLES = 0x0, + D3D12_HIT_GROUP_TYPE_PROCEDURAL_PRIMITIVE = 0x1, +} D3D12_HIT_GROUP_TYPE; + +typedef struct D3D12_HIT_GROUP_DESC +{ + LPCWSTR HitGroupExport; + D3D12_HIT_GROUP_TYPE Type; + [annotation("_In_opt_")] LPCWSTR AnyHitShaderImport; + [annotation("_In_opt_")] LPCWSTR ClosestHitShaderImport; + [annotation("_In_opt_")] LPCWSTR IntersectionShaderImport; +} D3D12_HIT_GROUP_DESC; + +typedef struct D3D12_RAYTRACING_SHADER_CONFIG +{ + UINT MaxPayloadSizeInBytes; + UINT MaxAttributeSizeInBytes; +} D3D12_RAYTRACING_SHADER_CONFIG; + +typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG +{ + UINT MaxTraceRecursionDepth; +} D3D12_RAYTRACING_PIPELINE_CONFIG; + +typedef enum D3D12_RAYTRACING_PIPELINE_FLAGS +{ + D3D12_RAYTRACING_PIPELINE_FLAG_NONE = 0x0, + D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_TRIANGLES = 0x100, + D3D12_RAYTRACING_PIPELINE_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200, + D3D12_RAYTRACING_PIPELINE_FLAG_ALLOW_OPACITY_MICROMAPS = 0x400, +} D3D12_RAYTRACING_PIPELINE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_PIPELINE_FLAGS )") + +typedef struct D3D12_RAYTRACING_PIPELINE_CONFIG1 +{ + UINT MaxTraceRecursionDepth; + D3D12_RAYTRACING_PIPELINE_FLAGS Flags; +} D3D12_RAYTRACING_PIPELINE_CONFIG1; + +typedef struct D3D12_NODE_OUTPUT_OVERRIDES +{ + UINT OutputIndex; + [annotation("_In_opt_")] const D3D12_NODE_ID* pNewName; + [annotation("_In_opt_")] const BOOL* pAllowSparseNodes; + [annotation("_In_opt_")] const UINT* pMaxRecords; + [annotation("_In_opt_")] const UINT* pMaxRecordsSharedWithOutputIndex; +} D3D12_NODE_OUTPUT_OVERRIDES; + +typedef struct D3D12_BROADCASTING_LAUNCH_OVERRIDES +{ + [annotation("_In_opt_")] const UINT* pLocalRootArgumentsTableIndex; + [annotation("_In_opt_")] const BOOL* pProgramEntry; + [annotation("_In_opt_")] const D3D12_NODE_ID* pNewName; + [annotation("_In_opt_ ")] const D3D12_NODE_ID* pShareInputOf; + [annotation("_In_reads_opt_(3)")] const UINT* pDispatchGrid; + [annotation("_In_reads_opt_(3)")] const UINT* pMaxDispatchGrid; + UINT NumOutputOverrides; + [annotation("_In_reads_opt_(NumOutputOverrides)")] const D3D12_NODE_OUTPUT_OVERRIDES* pOutputOverrides; +} D3D12_BROADCASTING_LAUNCH_OVERRIDES; + +typedef struct D3D12_COALESCING_LAUNCH_OVERRIDES +{ + [annotation("_In_opt_")] const UINT* pLocalRootArgumentsTableIndex; + [annotation("_In_opt_")] const BOOL* pProgramEntry; + [annotation("_In_opt_")] const D3D12_NODE_ID* pNewName; + [annotation("_In_opt_")] const D3D12_NODE_ID* pShareInputOf; + UINT NumOutputOverrides; + [annotation("_In_reads_opt_(NumOutputOverrides)")] const D3D12_NODE_OUTPUT_OVERRIDES* pOutputOverrides; +} D3D12_COALESCING_LAUNCH_OVERRIDES; + +typedef struct D3D12_THREAD_LAUNCH_OVERRIDES +{ + [annotation("_In_opt_")] const UINT* pLocalRootArgumentsTableIndex; + [annotation("_In_opt_")] const BOOL* pProgramEntry; + [annotation("_In_opt_")] const D3D12_NODE_ID* pNewName; + [annotation("_In_opt_")] const D3D12_NODE_ID* pShareInputOf; + UINT NumOutputOverrides; + [annotation("_In_reads_opt_(NumOutputOverrides)")] const D3D12_NODE_OUTPUT_OVERRIDES* pOutputOverrides; +} D3D12_THREAD_LAUNCH_OVERRIDES; + +typedef struct D3D12_COMMON_COMPUTE_NODE_OVERRIDES +{ + [annotation("_In_opt_")] const UINT* pLocalRootArgumentsTableIndex; + [annotation("_In_opt_")] const BOOL* pProgramEntry; + [annotation("_In_opt_")] const D3D12_NODE_ID* pNewName; + [annotation("_In_opt_")] const D3D12_NODE_ID* pShareInputOf; + UINT NumOutputOverrides; + [annotation("_In_reads_opt_(NumOutputOverrides)")] const D3D12_NODE_OUTPUT_OVERRIDES* pOutputOverrides; +} D3D12_COMMON_COMPUTE_NODE_OVERRIDES; + +typedef enum D3D12_NODE_OVERRIDES_TYPE +{ + D3D12_NODE_OVERRIDES_TYPE_NONE = 0, + D3D12_NODE_OVERRIDES_TYPE_BROADCASTING_LAUNCH = 1, + D3D12_NODE_OVERRIDES_TYPE_COALESCING_LAUNCH = 2, + D3D12_NODE_OVERRIDES_TYPE_THREAD_LAUNCH = 3, + D3D12_NODE_OVERRIDES_TYPE_COMMON_COMPUTE = 4, +} D3D12_NODE_OVERRIDES_TYPE; + +typedef struct D3D12_SHADER_NODE +{ + LPCWSTR Shader; + D3D12_NODE_OVERRIDES_TYPE OverridesType; + union + { + const D3D12_BROADCASTING_LAUNCH_OVERRIDES* pBroadcastingLaunchOverrides; + const D3D12_COALESCING_LAUNCH_OVERRIDES* pCoalescingLaunchOverrides; + const D3D12_THREAD_LAUNCH_OVERRIDES* pThreadLaunchOverrides; + const D3D12_COMMON_COMPUTE_NODE_OVERRIDES* pCommonComputeNodeOverrides; + }; +} D3D12_SHADER_NODE; + +typedef enum D3D12_NODE_TYPE +{ + D3D12_NODE_TYPE_SHADER = 0x0 +} D3D12_NODE_TYPE; + +typedef struct D3D12_NODE +{ + D3D12_NODE_TYPE NodeType; + union + { + D3D12_SHADER_NODE Shader; // D3D12_NODE_TYPE_SHADER + }; +} D3D12_NODE; + +typedef enum D3D12_WORK_GRAPH_FLAGS +{ + D3D12_WORK_GRAPH_FLAG_NONE = 0x0, + D3D12_WORK_GRAPH_FLAG_INCLUDE_ALL_AVAILABLE_NODES = 0x1, +} D3D12_WORK_GRAPH_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_WORK_GRAPH_FLAGS )") + +typedef struct D3D12_WORK_GRAPH_DESC +{ + LPCWSTR ProgramName; + D3D12_WORK_GRAPH_FLAGS Flags; + UINT NumEntrypoints; + [annotation("_In_reads_opt_(NumEntrypoints)")] const D3D12_NODE_ID* pEntrypoints; + UINT NumExplicitlyDefinedNodes; + [annotation("_In_reads_opt_(NumExplicitlyDefinedNodes)")] const D3D12_NODE* pExplicitlyDefinedNodes; +} D3D12_WORK_GRAPH_DESC; + +typedef struct D3D12_GENERIC_PROGRAM_DESC +{ + LPCWSTR ProgramName; + UINT NumExports; + [annotation("_In_reads_(NumExports)")] LPCWSTR* pExports; + UINT NumSubobjects; + [annotation("_In_reads_opt_(NumSubobjects)")] const D3D12_STATE_SUBOBJECT* const* ppSubobjects; +} D3D12_GENERIC_PROGRAM_DESC; + +typedef enum D3D12_STATE_OBJECT_TYPE +{ + D3D12_STATE_OBJECT_TYPE_COLLECTION = 0, + D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE = 3, + D3D12_STATE_OBJECT_TYPE_EXECUTABLE = 4 +} D3D12_STATE_OBJECT_TYPE; + +typedef struct D3D12_STATE_OBJECT_DESC +{ + D3D12_STATE_OBJECT_TYPE Type; + UINT NumSubobjects; + [annotation("_In_reads_(NumSubobjects)")] const D3D12_STATE_SUBOBJECT* pSubobjects; +} D3D12_STATE_OBJECT_DESC; + +typedef enum D3D12_RAYTRACING_GEOMETRY_FLAGS +{ + D3D12_RAYTRACING_GEOMETRY_FLAG_NONE = 0x0, + D3D12_RAYTRACING_GEOMETRY_FLAG_OPAQUE = 0x1, + D3D12_RAYTRACING_GEOMETRY_FLAG_NO_DUPLICATE_ANYHIT_INVOCATION = 0x2, +} D3D12_RAYTRACING_GEOMETRY_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_GEOMETRY_FLAGS )") + +typedef enum D3D12_RAYTRACING_GEOMETRY_TYPE +{ + D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES, + D3D12_RAYTRACING_GEOMETRY_TYPE_PROCEDURAL_PRIMITIVE_AABBS, + D3D12_RAYTRACING_GEOMETRY_TYPE_OMM_TRIANGLES +} D3D12_RAYTRACING_GEOMETRY_TYPE; + +typedef enum D3D12_RAYTRACING_INSTANCE_FLAGS +{ + D3D12_RAYTRACING_INSTANCE_FLAG_NONE = 0x0, + D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_CULL_DISABLE = 0x1, + D3D12_RAYTRACING_INSTANCE_FLAG_TRIANGLE_FRONT_COUNTERCLOCKWISE = 0x2, + D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_OPAQUE = 0x4, + D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_NON_OPAQUE = 0x8, + D3D12_RAYTRACING_INSTANCE_FLAG_FORCE_OMM_2_STATE = 0x10, + D3D12_RAYTRACING_INSTANCE_FLAG_DISABLE_OMMS = 0x20 +} D3D12_RAYTRACING_INSTANCE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_INSTANCE_FLAGS )") + +typedef struct D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE +{ + D3D12_GPU_VIRTUAL_ADDRESS StartAddress; + UINT64 StrideInBytes; +} D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE; + +typedef struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE +{ + D3D12_GPU_VIRTUAL_ADDRESS StartAddress; + UINT64 SizeInBytes; +} D3D12_GPU_VIRTUAL_ADDRESS_RANGE; + +typedef struct D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE +{ + D3D12_GPU_VIRTUAL_ADDRESS StartAddress; + UINT64 SizeInBytes; + UINT64 StrideInBytes; +} D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE; + +typedef struct D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC +{ + D3D12_GPU_VIRTUAL_ADDRESS Transform3x4; + DXGI_FORMAT IndexFormat; + DXGI_FORMAT VertexFormat; + UINT IndexCount; + UINT VertexCount; + D3D12_GPU_VIRTUAL_ADDRESS IndexBuffer; + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE VertexBuffer; +} D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC; + +typedef struct D3D12_RAYTRACING_AABB +{ + FLOAT MinX; + FLOAT MinY; + FLOAT MinZ; + FLOAT MaxX; + FLOAT MaxY; + FLOAT MaxZ; +} D3D12_RAYTRACING_AABB; + +typedef struct D3D12_RAYTRACING_GEOMETRY_AABBS_DESC +{ + UINT64 AABBCount; + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE AABBs; +} D3D12_RAYTRACING_GEOMETRY_AABBS_DESC; + +typedef enum D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX +{ + D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_TRANSPARENT = -1, + D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_OPAQUE = -2, + D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_TRANSPARENT = -3, + D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX_FULLY_UNKNOWN_OPAQUE = -4, +} D3D12_RAYTRACING_OPACITY_MICROMAP_SPECIAL_INDEX; + +typedef enum D3D12_RAYTRACING_OPACITY_MICROMAP_STATE +{ + D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_TRANSPARENT = 0, + D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_OPAQUE = 1, + D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_UNKNOWN_TRANSPARENT = 2, + D3D12_RAYTRACING_OPACITY_MICROMAP_STATE_UNKNOWN_OPAQUE = 3, +} D3D12_RAYTRACING_OPACITY_MICROMAP_STATE; + +typedef enum D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT +{ + D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT_OC1_2_STATE = 0x1, + D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT_OC1_4_STATE = 0x2, +} D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT; + +cpp_quote("typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_DESC") +cpp_quote("{") +cpp_quote(" UINT ByteOffset;") +cpp_quote(" UINT SubdivisionLevel : 16;") +cpp_quote(" D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT Format : 16;") +cpp_quote("} D3D12_RAYTRACING_OPACITY_MICROMAP_DESC;") + +typedef struct D3D12_RAYTRACING_GEOMETRY_OMM_LINKAGE_DESC +{ + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE OpacityMicromapIndexBuffer; + DXGI_FORMAT OpacityMicromapIndexFormat; + UINT OpacityMicromapBaseLocation; + D3D12_GPU_VIRTUAL_ADDRESS OpacityMicromapArray; +} D3D12_RAYTRACING_GEOMETRY_OMM_LINKAGE_DESC; + +typedef struct D3D12_RAYTRACING_GEOMETRY_OMM_TRIANGLES_DESC +{ + const D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC* pTriangles; + const D3D12_RAYTRACING_GEOMETRY_OMM_LINKAGE_DESC* pOmmLinkage; +} D3D12_RAYTRACING_GEOMETRY_OMM_TRIANGLES_DESC; + +typedef enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS +{ + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_NONE = 0x00, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_UPDATE = 0x01, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_COMPACTION = 0x02, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_TRACE = 0x04, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PREFER_FAST_BUILD = 0x08, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_MINIMIZE_MEMORY = 0x10, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_PERFORM_UPDATE = 0x20, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_OMM_UPDATE = 0x40, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAG_ALLOW_DISABLE_OMMS = 0x80, +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS )") + +typedef enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE +{ + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_CLONE = 0x0, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_COMPACT = 0x1, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_VISUALIZATION_DECODE_FOR_TOOLS = 0x2, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_SERIALIZE = 0x3, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE_DESERIALIZE = 0x4, +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE; + +typedef enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE +{ + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_TOP_LEVEL = 0x0, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_BOTTOM_LEVEL = 0x1, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE_OPACITY_MICROMAP_ARRAY = 0x2, +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE; + +typedef enum D3D12_ELEMENTS_LAYOUT +{ + D3D12_ELEMENTS_LAYOUT_ARRAY = 0x0, + D3D12_ELEMENTS_LAYOUT_ARRAY_OF_POINTERS = 0x1 +} D3D12_ELEMENTS_LAYOUT; + +typedef enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE +{ + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE = 0x0, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION = 0x1, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION = 0x2, + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE = 0x3, +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC +{ + D3D12_GPU_VIRTUAL_ADDRESS DestBuffer; + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TYPE InfoType; +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC +{ + UINT64 CompactedSizeInBytes; +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_COMPACTED_SIZE_DESC; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC +{ + UINT64 DecodedSizeInBytes; +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC; + +typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER +{ + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type; + UINT NumDescs; +} D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER; +cpp_quote("// Regarding D3D12_BUILD_RAY_TRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER above,") +cpp_quote("// depending on Type field, NumDescs above is followed by either:") +cpp_quote("// D3D12_RAY_TRACING_INSTANCE_DESC InstanceDescs[NumDescs]") +cpp_quote("// or D3D12_RAY_TRACING_GEOMETRY_DESC GeometryDescs[NumDescs].") +cpp_quote("// or D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC (NumDescs == 1 in this case).") +cpp_quote("//") +cpp_quote("// For D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC, the pOmmHistogram pointer becomes a GPUVA instead of CPU pointer") +cpp_quote("//") +cpp_quote("// There is 4 bytes of padding between GeometryDesc structs in the array so alignment is natural when viewed by CPU.") +cpp_quote("") + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC +{ + UINT64 SerializedSizeInBytes; + union + { + UINT64 NumBottomLevelAccelerationStructurePointers; + UINT64 NumBottomLevelAccelerationStructureHeaderAndPointerListPairs; + }; +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_SERIALIZATION_DESC; + +typedef struct D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER +{ + GUID DriverOpaqueGUID; + BYTE DriverOpaqueVersioningData[16]; +} D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER; + +typedef enum D3D12_SERIALIZED_DATA_TYPE +{ + D3D12_SERIALIZED_DATA_RAYTRACING_ACCELERATION_STRUCTURE = 0x0, + D3D12_SERIALIZED_DATA_APPLICATION_SPECIFIC_DRIVER_STATE = 0x1, +} D3D12_SERIALIZED_DATA_TYPE; + +typedef enum D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS +{ + D3D12_DRIVER_MATCHING_IDENTIFIER_COMPATIBLE_WITH_DEVICE = 0x0, + D3D12_DRIVER_MATCHING_IDENTIFIER_UNSUPPORTED_TYPE = 0x1, + D3D12_DRIVER_MATCHING_IDENTIFIER_UNRECOGNIZED = 0x2, + D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_VERSION = 0x3, + D3D12_DRIVER_MATCHING_IDENTIFIER_INCOMPATIBLE_TYPE = 0x4, +} D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS; + +typedef struct D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER +{ + D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER DriverMatchingIdentifier; + UINT64 SerializedSizeInBytesIncludingHeader; + UINT64 DeserializedSizeInBytes; + UINT64 NumBottomLevelAccelerationStructurePointersAfterHeader; +} D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER; + +typedef enum D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE +{ + D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE_NONE = 0, + D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE_BOTTOM_LEVEL_POINTERS = 0, + D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE_BLOCKS = 0xffffffff +} D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE; + +typedef struct D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER1 +{ + D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER DriverMatchingIdentifier; + UINT64 SerializedSizeInBytesIncludingHeader; + UINT64 DeserializedSizeInBytes; + union + { + UINT NumBottomLevelAccelerationStructurePointersAfterHeader; + UINT NumBlocks; + }; + D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER_POSTAMBLE_TYPE HeaderPostambleType; +} D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER1; + +typedef enum D3D12_SERIALIZED_BLOCK_TYPE +{ + D3D12_RAYTRACING_SERIALIZED_BLOCK_TYPE_OPACITY_MICROMAPS = 0x0, +} D3D12_RAYTRACING_SERIALIZED_BLOCK_TYPE; + +typedef struct D3D12_RAYTRACING_SERIALIZED_BLOCK +{ + D3D12_RAYTRACING_SERIALIZED_BLOCK_TYPE Type; + UINT64 NumBlockPointersAfterHeader; +} D3D12_RAYTRACING_SERIALIZED_BLOCK; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC +{ + UINT64 CurrentSizeInBytes; +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_CURRENT_SIZE_DESC; + +typedef struct D3D12_RAYTRACING_INSTANCE_DESC +{ + FLOAT Transform[3][4]; + UINT InstanceID : 24; + UINT InstanceMask : 8; + UINT InstanceContributionToHitGroupIndex : 24; + UINT Flags : 8; + D3D12_GPU_VIRTUAL_ADDRESS AccelerationStructure; +} D3D12_RAYTRACING_INSTANCE_DESC; + +typedef struct D3D12_RAYTRACING_GEOMETRY_DESC +{ + D3D12_RAYTRACING_GEOMETRY_TYPE Type; + D3D12_RAYTRACING_GEOMETRY_FLAGS Flags; + union + { + D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC Triangles; + D3D12_RAYTRACING_GEOMETRY_AABBS_DESC AABBs; + D3D12_RAYTRACING_GEOMETRY_OMM_TRIANGLES_DESC OmmTriangles; + }; +} D3D12_RAYTRACING_GEOMETRY_DESC; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_HISTOGRAM_ENTRY +{ + UINT Count; + UINT SubdivisionLevel; + D3D12_RAYTRACING_OPACITY_MICROMAP_FORMAT Format; +} D3D12_RAYTRACING_OPACITY_MICROMAP_HISTOGRAM_ENTRY; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC +{ + UINT NumOmmHistogramEntries; + const D3D12_RAYTRACING_OPACITY_MICROMAP_HISTOGRAM_ENTRY* pOmmHistogram; + D3D12_GPU_VIRTUAL_ADDRESS InputBuffer; + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE PerOmmDescs; +} D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC; + +typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS +{ + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_TYPE Type; + D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS Flags; + UINT NumDescs; + D3D12_ELEMENTS_LAYOUT DescsLayout; + union + { + D3D12_GPU_VIRTUAL_ADDRESS InstanceDescs; + const D3D12_RAYTRACING_GEOMETRY_DESC* pGeometryDescs; + const D3D12_RAYTRACING_GEOMETRY_DESC*const* ppGeometryDescs; + const D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_DESC* pOpacityMicromapArrayDesc; + }; +} D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS; + +typedef struct D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC +{ + D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData; + D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS Inputs; + [annotation("_In_opt_")] D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData; + D3D12_GPU_VIRTUAL_ADDRESS ScratchAccelerationStructureData; +} D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC; + +typedef struct D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO +{ + UINT64 ResultDataMaxSizeInBytes; + UINT64 ScratchDataSizeInBytes; + UINT64 UpdateScratchDataSizeInBytes; +} D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO; + +typedef enum D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TYPE +{ + D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_CURRENT_SIZE = 0x0, + D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TOOLS_VISUALIZATION = 0x1, +} D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TYPE; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_DESC +{ + D3D12_GPU_VIRTUAL_ADDRESS DestBuffer; + D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TYPE InfoType; +} D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_DESC; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_CURRENT_SIZE_DESC +{ + UINT64 CurrentSizeInBytes; +} D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_CURRENT_SIZE_DESC; + +typedef struct D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC +{ + UINT64 DecodedSizeInBytes; +} D3D12_RAYTRACING_OPACITY_MICROMAP_ARRAY_POSTBUILD_INFO_TOOLS_VISUALIZATION_DESC; + +typedef enum D3D12_RAY_FLAGS +{ + D3D12_RAY_FLAG_NONE = 0x00, + D3D12_RAY_FLAG_FORCE_OPAQUE = 0x01, + D3D12_RAY_FLAG_FORCE_NON_OPAQUE = 0x02, + D3D12_RAY_FLAG_ACCEPT_FIRST_HIT_AND_END_SEARCH = 0x04, + D3D12_RAY_FLAG_SKIP_CLOSEST_HIT_SHADER = 0x08, + D3D12_RAY_FLAG_CULL_BACK_FACING_TRIANGLES = 0x10, + D3D12_RAY_FLAG_CULL_FRONT_FACING_TRIANGLES = 0x20, + D3D12_RAY_FLAG_CULL_OPAQUE = 0x40, + D3D12_RAY_FLAG_CULL_NON_OPAQUE = 0x80, + D3D12_RAY_FLAG_SKIP_TRIANGLES = 0x100, + D3D12_RAY_FLAG_SKIP_PROCEDURAL_PRIMITIVES = 0x200, + D3D12_RAY_FLAG_FORCE_OMM_2_STATE = 0x400, +} D3D12_RAY_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_RAY_FLAGS )" ) + +typedef enum D3D12_HIT_KIND +{ + D3D12_HIT_KIND_TRIANGLE_FRONT_FACE = 0xfe, + D3D12_HIT_KIND_TRIANGLE_BACK_FACE = 0xff, +} D3D12_HIT_KIND; + +[uuid(8b4f173b-2fea-4b80-8f58-4307191ab95d), object, local, pointer_default(unique)] +interface ID3D12Device5 + : ID3D12Device4 +{ + HRESULT CreateLifetimeTracker( + [annotation("_In_")] ID3D12LifetimeOwner* pOwner, + [in] REFIID riid, // Expected: ID3D12LifetimeTracker* + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvTracker + ); + + void RemoveDevice(); + + HRESULT EnumerateMetaCommands( + [annotation("_Inout_")] UINT* pNumMetaCommands, + [annotation("_Out_writes_opt_(*pNumMetaCommands)")] D3D12_META_COMMAND_DESC* pDescs + ); + + HRESULT EnumerateMetaCommandParameters( + [annotation("_In_")] REFGUID CommandId, + [annotation("_In_")] D3D12_META_COMMAND_PARAMETER_STAGE Stage, + [annotation("_Out_opt_")] UINT* pTotalStructureSizeInBytes, + [annotation("_Inout_")] UINT* pParameterCount, + [annotation("_Out_writes_opt_(*pParameterCount)")] D3D12_META_COMMAND_PARAMETER_DESC* pParameterDescs + ); + + HRESULT CreateMetaCommand( + [annotation("_In_")] REFGUID CommandId, + [annotation("_In_")] UINT NodeMask, + [annotation("_In_reads_bytes_opt_(CreationParametersDataSizeInBytes)")] const void * pCreationParametersData, + [annotation("_In_")] SIZE_T CreationParametersDataSizeInBytes, + [in] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppMetaCommand + ); + + HRESULT CreateStateObject( + [in] const D3D12_STATE_OBJECT_DESC* pDesc, + [in] REFIID riid, // ID3D12StateObject + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppStateObject + ); + + void GetRaytracingAccelerationStructurePrebuildInfo( + [annotation("_In_")] const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* pDesc, + [annotation("_Out_")] D3D12_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO *pInfo + ); + + D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS CheckDriverMatchingIdentifier( + [annotation("_In_")] D3D12_SERIALIZED_DATA_TYPE SerializedDataType, + [annotation("_In_")] const D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER* pIdentifierToCheck); +} + + +typedef enum D3D12_AUTO_BREADCRUMB_OP +{ + D3D12_AUTO_BREADCRUMB_OP_SETMARKER = 0, + D3D12_AUTO_BREADCRUMB_OP_BEGINEVENT = 1, + D3D12_AUTO_BREADCRUMB_OP_ENDEVENT = 2, + D3D12_AUTO_BREADCRUMB_OP_DRAWINSTANCED = 3, + D3D12_AUTO_BREADCRUMB_OP_DRAWINDEXEDINSTANCED = 4, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEINDIRECT = 5, + D3D12_AUTO_BREADCRUMB_OP_DISPATCH = 6, + D3D12_AUTO_BREADCRUMB_OP_COPYBUFFERREGION = 7, + D3D12_AUTO_BREADCRUMB_OP_COPYTEXTUREREGION = 8, + D3D12_AUTO_BREADCRUMB_OP_COPYRESOURCE = 9, + D3D12_AUTO_BREADCRUMB_OP_COPYTILES = 10, + D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCE = 11, + D3D12_AUTO_BREADCRUMB_OP_CLEARRENDERTARGETVIEW = 12, + D3D12_AUTO_BREADCRUMB_OP_CLEARUNORDEREDACCESSVIEW = 13, + D3D12_AUTO_BREADCRUMB_OP_CLEARDEPTHSTENCILVIEW = 14, + D3D12_AUTO_BREADCRUMB_OP_RESOURCEBARRIER = 15, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEBUNDLE = 16, + D3D12_AUTO_BREADCRUMB_OP_PRESENT = 17, + D3D12_AUTO_BREADCRUMB_OP_RESOLVEQUERYDATA = 18, + D3D12_AUTO_BREADCRUMB_OP_BEGINSUBMISSION = 19, + D3D12_AUTO_BREADCRUMB_OP_ENDSUBMISSION = 20, + D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME = 21, + D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES = 22, + D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT = 23, + D3D12_AUTO_BREADCRUMB_OP_ATOMICCOPYBUFFERUINT64 = 24, + D3D12_AUTO_BREADCRUMB_OP_RESOLVESUBRESOURCEREGION = 25, + D3D12_AUTO_BREADCRUMB_OP_WRITEBUFFERIMMEDIATE = 26, + D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME1 = 27, + D3D12_AUTO_BREADCRUMB_OP_SETPROTECTEDRESOURCESESSION = 28, + D3D12_AUTO_BREADCRUMB_OP_DECODEFRAME2 = 29, + D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES1 = 30, + D3D12_AUTO_BREADCRUMB_OP_BUILDRAYTRACINGACCELERATIONSTRUCTURE = 31, + D3D12_AUTO_BREADCRUMB_OP_EMITRAYTRACINGACCELERATIONSTRUCTUREPOSTBUILDINFO = 32, + D3D12_AUTO_BREADCRUMB_OP_COPYRAYTRACINGACCELERATIONSTRUCTURE = 33, + D3D12_AUTO_BREADCRUMB_OP_DISPATCHRAYS = 34, + D3D12_AUTO_BREADCRUMB_OP_INITIALIZEMETACOMMAND = 35, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEMETACOMMAND = 36, + D3D12_AUTO_BREADCRUMB_OP_ESTIMATEMOTION = 37, + D3D12_AUTO_BREADCRUMB_OP_RESOLVEMOTIONVECTORHEAP = 38, + D3D12_AUTO_BREADCRUMB_OP_SETPIPELINESTATE1 = 39, + D3D12_AUTO_BREADCRUMB_OP_INITIALIZEEXTENSIONCOMMAND = 40, + D3D12_AUTO_BREADCRUMB_OP_EXECUTEEXTENSIONCOMMAND = 41, + D3D12_AUTO_BREADCRUMB_OP_DISPATCHMESH = 42, + D3D12_AUTO_BREADCRUMB_OP_ENCODEFRAME = 43, + D3D12_AUTO_BREADCRUMB_OP_RESOLVEENCODEROUTPUTMETADATA = 44, + D3D12_AUTO_BREADCRUMB_OP_BARRIER = 45, + D3D12_AUTO_BREADCRUMB_OP_BEGIN_COMMAND_LIST = 46, + D3D12_AUTO_BREADCRUMB_OP_DISPATCHGRAPH = 47, + D3D12_AUTO_BREADCRUMB_OP_SETPROGRAM = 48, + D3D12_AUTO_BREADCRUMB_OP_PROCESSFRAMES2 = 52, +} D3D12_AUTO_BREADCRUMB_OP; + +typedef struct D3D12_AUTO_BREADCRUMB_NODE +{ + const char *pCommandListDebugNameA; + const wchar_t *pCommandListDebugNameW; + const char *pCommandQueueDebugNameA; + const wchar_t *pCommandQueueDebugNameW; + ID3D12GraphicsCommandList *pCommandList; + ID3D12CommandQueue *pCommandQueue; + UINT32 BreadcrumbCount; + const UINT32 *pLastBreadcrumbValue; + const D3D12_AUTO_BREADCRUMB_OP *pCommandHistory; + const struct D3D12_AUTO_BREADCRUMB_NODE *pNext; // pointer to next node +} D3D12_AUTO_BREADCRUMB_NODE; + +typedef struct D3D12_DRED_BREADCRUMB_CONTEXT +{ + UINT BreadcrumbIndex; + const wchar_t *pContextString; +} D3D12_DRED_BREADCRUMB_CONTEXT; + +// !!! Must be castable to D3D12_AUTO_BREADCRUMB_NODE +typedef struct D3D12_AUTO_BREADCRUMB_NODE1 +{ + const char *pCommandListDebugNameA; + const wchar_t *pCommandListDebugNameW; + const char *pCommandQueueDebugNameA; + const wchar_t *pCommandQueueDebugNameW; + ID3D12GraphicsCommandList *pCommandList; + ID3D12CommandQueue *pCommandQueue; + UINT BreadcrumbCount; + const UINT *pLastBreadcrumbValue; + const D3D12_AUTO_BREADCRUMB_OP *pCommandHistory; + const struct D3D12_AUTO_BREADCRUMB_NODE1 *pNext; // pointer to next node + UINT BreadcrumbContextsCount; + D3D12_DRED_BREADCRUMB_CONTEXT *pBreadcrumbContexts; +} D3D12_AUTO_BREADCRUMB_NODE1; + +// D3D12_DRED_VERSION +typedef enum D3D12_DRED_VERSION +{ + D3D12_DRED_VERSION_1_0 = 0x1, + D3D12_DRED_VERSION_1_1 = 0x2, + D3D12_DRED_VERSION_1_2 = 0x3, + D3D12_DRED_VERSION_1_3 = 0x4, +} D3D12_DRED_VERSION; + +typedef enum D3D12_DRED_FLAGS +{ + D3D12_DRED_FLAG_NONE = 0, + D3D12_DRED_FLAG_FORCE_ENABLE = 1, + D3D12_DRED_FLAG_DISABLE_AUTOBREADCRUMBS = 2, +} D3D12_DRED_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_DRED_FLAGS )") + +typedef enum D3D12_DRED_ENABLEMENT +{ + D3D12_DRED_ENABLEMENT_SYSTEM_CONTROLLED = 0, + D3D12_DRED_ENABLEMENT_FORCED_OFF = 1, + D3D12_DRED_ENABLEMENT_FORCED_ON = 2, +} D3D12_DRED_ENABLEMENT; + +typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA +{ + [annotation("_In_")] D3D12_DRED_FLAGS Flags; // Dred flags + [annotation("_Out_")] D3D12_AUTO_BREADCRUMB_NODE *pHeadAutoBreadcrumbNode; // Pointer to head of a linked list of auto-breadcrumb data +} D3D12_DEVICE_REMOVED_EXTENDED_DATA; + +typedef enum D3D12_DRED_ALLOCATION_TYPE +{ + // Enum starts at 19 and skips 26 to maintain compatibility with older D3D12 drivers + D3D12_DRED_ALLOCATION_TYPE_COMMAND_QUEUE = 19, + D3D12_DRED_ALLOCATION_TYPE_COMMAND_ALLOCATOR = 20, + D3D12_DRED_ALLOCATION_TYPE_PIPELINE_STATE = 21, + D3D12_DRED_ALLOCATION_TYPE_COMMAND_LIST = 22, + D3D12_DRED_ALLOCATION_TYPE_FENCE = 23, + D3D12_DRED_ALLOCATION_TYPE_DESCRIPTOR_HEAP = 24, + D3D12_DRED_ALLOCATION_TYPE_HEAP = 25, + D3D12_DRED_ALLOCATION_TYPE_QUERY_HEAP = 27, + D3D12_DRED_ALLOCATION_TYPE_COMMAND_SIGNATURE = 28, + D3D12_DRED_ALLOCATION_TYPE_PIPELINE_LIBRARY = 29, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER = 30, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_PROCESSOR = 32, + D3D12_DRED_ALLOCATION_TYPE_RESOURCE = 34, + D3D12_DRED_ALLOCATION_TYPE_PASS = 35, + D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSION = 36, + D3D12_DRED_ALLOCATION_TYPE_CRYPTOSESSIONPOLICY = 37, + D3D12_DRED_ALLOCATION_TYPE_PROTECTEDRESOURCESESSION = 38, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_DECODER_HEAP = 39, + D3D12_DRED_ALLOCATION_TYPE_COMMAND_POOL = 40, + D3D12_DRED_ALLOCATION_TYPE_COMMAND_RECORDER = 41, + D3D12_DRED_ALLOCATION_TYPE_STATE_OBJECT = 42, + D3D12_DRED_ALLOCATION_TYPE_METACOMMAND = 43, + D3D12_DRED_ALLOCATION_TYPE_SCHEDULINGGROUP = 44, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_ESTIMATOR = 45, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_MOTION_VECTOR_HEAP = 46, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_EXTENSION_COMMAND = 47, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER = 48, + D3D12_DRED_ALLOCATION_TYPE_VIDEO_ENCODER_HEAP = 49, + + + D3D12_DRED_ALLOCATION_TYPE_INVALID = 0xFFFFFFFF +} D3D12_DRED_ALLOCATION_TYPE; + +typedef struct D3D12_DRED_ALLOCATION_NODE +{ + const char *ObjectNameA; + const wchar_t *ObjectNameW; + D3D12_DRED_ALLOCATION_TYPE AllocationType; + const struct D3D12_DRED_ALLOCATION_NODE *pNext; +} D3D12_DRED_ALLOCATION_NODE; + +typedef struct D3D12_DRED_ALLOCATION_NODE1 +{ + const char *ObjectNameA; + const wchar_t *ObjectNameW; + D3D12_DRED_ALLOCATION_TYPE AllocationType; + const struct D3D12_DRED_ALLOCATION_NODE1 *pNext; + const IUnknown *pObject; +} D3D12_DRED_ALLOCATION_NODE1; + +typedef struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT +{ + [annotation("_Out_")] const D3D12_AUTO_BREADCRUMB_NODE *pHeadAutoBreadcrumbNode; // Pointer to head of a null-terminated linked list of auto-breadcrumb data +} D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT; + +typedef struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 +{ + [annotation("_Out_")] const D3D12_AUTO_BREADCRUMB_NODE1 *pHeadAutoBreadcrumbNode; // Pointer to head of a null-terminated linked list of auto-breadcrumb data +} D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1; + +typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT +{ + D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA; //If the device removal was due to GPU Fault, this contains the VA of the faulting op + [annotation("_Out_")] const D3D12_DRED_ALLOCATION_NODE *pHeadExistingAllocationNode; + [annotation("_Out_")] const D3D12_DRED_ALLOCATION_NODE *pHeadRecentFreedAllocationNode; +} D3D12_DRED_PAGE_FAULT_OUTPUT; + +typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT1 +{ + D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA; //If the device removal was due to GPU Fault, this contains the VA of the faulting op + [annotation("_Out_")] const D3D12_DRED_ALLOCATION_NODE1 *pHeadExistingAllocationNode; + [annotation("_Out_")] const D3D12_DRED_ALLOCATION_NODE1 *pHeadRecentFreedAllocationNode; +} D3D12_DRED_PAGE_FAULT_OUTPUT1; + +typedef enum D3D12_DRED_PAGE_FAULT_FLAGS +{ + D3D12_DRED_PAGE_FAULT_FLAGS_NONE = 0, +} D3D12_DRED_PAGE_FAULT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_DRED_PAGE_FAULT_FLAGS )") + +typedef enum D3D12_DRED_DEVICE_STATE +{ + D3D12_DRED_DEVICE_STATE_UNKNOWN = 0, // Only known if DRED event occurred + D3D12_DRED_DEVICE_STATE_HUNG = 3, + D3D12_DRED_DEVICE_STATE_FAULT = 6, + D3D12_DRED_DEVICE_STATE_PAGEFAULT = 7, +} D3D12_DRED_DEVICE_STATE; + +typedef struct D3D12_DRED_PAGE_FAULT_OUTPUT2 +{ + D3D12_GPU_VIRTUAL_ADDRESS PageFaultVA; //If the device removal was due to GPU Fault, this contains the VA of the faulting op + [annotation("_Out_")] const D3D12_DRED_ALLOCATION_NODE1 *pHeadExistingAllocationNode; + [annotation("_Out_")] const D3D12_DRED_ALLOCATION_NODE1 *pHeadRecentFreedAllocationNode; + D3D12_DRED_PAGE_FAULT_FLAGS PageFaultFlags; + +} D3D12_DRED_PAGE_FAULT_OUTPUT2; + +typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA1 +{ + HRESULT DeviceRemovedReason; + D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT AutoBreadcrumbsOutput; + D3D12_DRED_PAGE_FAULT_OUTPUT PageFaultOutput; +} D3D12_DEVICE_REMOVED_EXTENDED_DATA1; + +typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA2 +{ + HRESULT DeviceRemovedReason; + D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput; + D3D12_DRED_PAGE_FAULT_OUTPUT1 PageFaultOutput; +} D3D12_DEVICE_REMOVED_EXTENDED_DATA2; + +typedef struct D3D12_DEVICE_REMOVED_EXTENDED_DATA3 +{ + HRESULT DeviceRemovedReason; + D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 AutoBreadcrumbsOutput; + D3D12_DRED_PAGE_FAULT_OUTPUT2 PageFaultOutput; + D3D12_DRED_DEVICE_STATE DeviceState; +} D3D12_DEVICE_REMOVED_EXTENDED_DATA3; + +typedef struct D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA +{ + D3D12_DRED_VERSION Version; // Version of the DRED data + union + { + D3D12_DEVICE_REMOVED_EXTENDED_DATA Dred_1_0; + D3D12_DEVICE_REMOVED_EXTENDED_DATA1 Dred_1_1; + D3D12_DEVICE_REMOVED_EXTENDED_DATA2 Dred_1_2; + D3D12_DEVICE_REMOVED_EXTENDED_DATA3 Dred_1_3; + }; +} D3D12_VERSIONED_DEVICE_REMOVED_EXTENDED_DATA; + +[uuid(82BC481C-6B9B-4030-AEDB-7EE3D1DF1E63), object, local, pointer_default(unique)] +interface ID3D12DeviceRemovedExtendedDataSettings + : IUnknown +{ + void SetAutoBreadcrumbsEnablement(D3D12_DRED_ENABLEMENT Enablement); + void SetPageFaultEnablement(D3D12_DRED_ENABLEMENT Enablement); + void SetWatsonDumpEnablement(D3D12_DRED_ENABLEMENT Enablement); +}; + +[uuid(DBD5AE51-3317-4F0A-ADF9-1D7CEDCAAE0B), object, local, pointer_default(unique)] +interface ID3D12DeviceRemovedExtendedDataSettings1 + : ID3D12DeviceRemovedExtendedDataSettings +{ + void SetBreadcrumbContextEnablement(D3D12_DRED_ENABLEMENT Enablement); +}; + +[uuid(61552388-01ab-4008-a436-83db189566ea), object, local, pointer_default(unique)] +interface ID3D12DeviceRemovedExtendedDataSettings2 + : ID3D12DeviceRemovedExtendedDataSettings1 +{ + void UseMarkersOnlyAutoBreadcrumbs(BOOL MarkersOnly); +}; + + +[uuid(98931D33-5AE8-4791-AA3C-1A73A2934E71), object, local, pointer_default(unique)] +interface ID3D12DeviceRemovedExtendedData + : IUnknown +{ + HRESULT GetAutoBreadcrumbsOutput([annotation("_Out_")] D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT *pOutput); + HRESULT GetPageFaultAllocationOutput([annotation("_Out_")] D3D12_DRED_PAGE_FAULT_OUTPUT *pOutput); +}; + +[uuid(9727A022-CF1D-4DDA-9EBA-EFFA653FC506), object, local, pointer_default(unique)] +interface ID3D12DeviceRemovedExtendedData1 + : ID3D12DeviceRemovedExtendedData +{ + HRESULT GetAutoBreadcrumbsOutput1([annotation("_Out_")] D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 *pOutput); + HRESULT GetPageFaultAllocationOutput1([annotation("_Out_")] D3D12_DRED_PAGE_FAULT_OUTPUT1 *pOutput); +}; + +[uuid(67FC5816-E4CA-4915-BF18-42541272DA54), object, local, pointer_default(unique)] +interface ID3D12DeviceRemovedExtendedData2 + : ID3D12DeviceRemovedExtendedData1 +{ + HRESULT GetPageFaultAllocationOutput2([annotation("_Out_")] D3D12_DRED_PAGE_FAULT_OUTPUT2 *pOutput); + D3D12_DRED_DEVICE_STATE GetDeviceState(); +}; + +typedef enum D3D12_BACKGROUND_PROCESSING_MODE +{ + D3D12_BACKGROUND_PROCESSING_MODE_ALLOWED, + D3D12_BACKGROUND_PROCESSING_MODE_ALLOW_INTRUSIVE_MEASUREMENTS, + D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK, + D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_PROFILING_BY_SYSTEM, +} D3D12_BACKGROUND_PROCESSING_MODE; + +typedef enum D3D12_MEASUREMENTS_ACTION +{ + D3D12_MEASUREMENTS_ACTION_KEEP_ALL, + D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS, + D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY, + D3D12_MEASUREMENTS_ACTION_DISCARD_PREVIOUS, +} D3D12_MEASUREMENTS_ACTION; + +[uuid(c70b221b-40e4-4a17-89af-025a0727a6dc), object, local, pointer_default(unique)] +interface ID3D12Device6 : ID3D12Device5 +{ + HRESULT SetBackgroundProcessingMode( + D3D12_BACKGROUND_PROCESSING_MODE Mode, + D3D12_MEASUREMENTS_ACTION MeasurementsAction, + [annotation("_In_opt_")] HANDLE hEventToSignalUponCompletion, + [annotation("_Out_opt_")] BOOL* pbFurtherMeasurementsDesired); +}; + +cpp_quote("DEFINE_GUID(D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED, 0x62B0084E, 0xC70E, 0x4DAA, 0xA1, 0x09, 0x30, 0xFF, 0x8D, 0x5A, 0x04, 0x82); ") + +// D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPE_COUNT +typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT +{ + UINT NodeIndex; // input + UINT Count; // output +} D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPE_COUNT; + +// D3D12_FEATURE_PROTECTED_RESOURCE_SESSION_TYPES +typedef struct D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES +{ + UINT NodeIndex; // input + UINT Count; // input + GUID* pTypes; // output +} D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_TYPES; + +typedef struct D3D12_PROTECTED_RESOURCE_SESSION_DESC1 +{ + UINT NodeMask; + D3D12_PROTECTED_RESOURCE_SESSION_FLAGS Flags; + GUID ProtectionType; +} D3D12_PROTECTED_RESOURCE_SESSION_DESC1; + +[uuid(D6F12DD6-76FB-406E-8961-4296EEFC0409), object, local, pointer_default(unique)] +interface ID3D12ProtectedResourceSession1 + : ID3D12ProtectedResourceSession +{ + D3D12_PROTECTED_RESOURCE_SESSION_DESC1 GetDesc1(); +}; + +[uuid(5c014b53-68a1-4b9b-8bd1-dd6046b9358b), object, local, pointer_default(unique)] +interface ID3D12Device7 : ID3D12Device6 +{ + HRESULT AddToStateObject( + [in] const D3D12_STATE_OBJECT_DESC* pAddition, + [in] ID3D12StateObject* pStateObjectToGrowFrom, + [in] REFIID riid, // ID3D12StateObject + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppNewStateObject + ); + + HRESULT CreateProtectedResourceSession1( + [annotation("_In_")] const D3D12_PROTECTED_RESOURCE_SESSION_DESC1* pDesc, + [annotation("_In_")] REFIID riid, // Expected: ID3D12ProtectedResourceSession1, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppSession + ); +}; + +[uuid(9218E6BB-F944-4F7E-A75C-B1B2C7B701F3), object, local, pointer_default(unique)] +interface ID3D12Device8 : ID3D12Device7 +{ + D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo2( + UINT visibleMask, + UINT numResourceDescs, + [annotation("_In_reads_(numResourceDescs)")] const D3D12_RESOURCE_DESC1* pResourceDescs, + [annotation("_Out_writes_opt_(numResourceDescs)")] D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1); + + HRESULT CreateCommittedResource2( + [annotation("_In_")] const D3D12_HEAP_PROPERTIES* pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + [annotation("_In_")] const D3D12_RESOURCE_DESC1* pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession* pProtectedSession, + [in] REFIID riidResource, // Expected: ID3D12Resource1* + [out, iid_is(riidResource), annotation("_COM_Outptr_opt_")] void** ppvResource); + + HRESULT CreatePlacedResource1( + [annotation("_In_")] ID3D12Heap* pHeap, + UINT64 HeapOffset, + [annotation("_In_")] const D3D12_RESOURCE_DESC1* pDesc, + D3D12_RESOURCE_STATES InitialState, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + [in] REFIID riid, // Expected: ID3D12Resource* + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvResource); + + void CreateSamplerFeedbackUnorderedAccessView( + [annotation("_In_opt_")] ID3D12Resource* pTargetedResource, + [annotation("_In_opt_")] ID3D12Resource* pFeedbackResource, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); + + void GetCopyableFootprints1( + [annotation("_In_")] const D3D12_RESOURCE_DESC1* pResourceDesc, + [annotation("_In_range_(0,D3D12_REQ_SUBRESOURCES)")] UINT FirstSubresource, + [annotation("_In_range_(0,D3D12_REQ_SUBRESOURCES-FirstSubresource)")] UINT NumSubresources, + UINT64 BaseOffset, + [annotation("_Out_writes_opt_(NumSubresources)")] D3D12_PLACED_SUBRESOURCE_FOOTPRINT* pLayouts, + [annotation("_Out_writes_opt_(NumSubresources)")] UINT* pNumRows, + [annotation("_Out_writes_opt_(NumSubresources)")] UINT64* pRowSizeInBytes, + [annotation("_Out_opt_")] UINT64* pTotalBytes); +}; + + +[uuid(9D5E227A-4430-4161-88B3-3ECA6BB16E19), object, local, pointer_default(unique)] +interface ID3D12Resource1 + : ID3D12Resource +{ + HRESULT GetProtectedResourceSession( + [in] REFIID riid, // Expected: ID3D12ProtectedResourceSession + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppProtectedSession); +} + +[uuid(BE36EC3B-EA85-4AEB-A45A-E9D76404A495), object, local, pointer_default(unique)] +interface ID3D12Resource2 + : ID3D12Resource1 +{ + D3D12_RESOURCE_DESC1 GetDesc1(); +} + + + +[uuid(572F7389-2168-49E3-9693-D6DF5871BF6D), object, local, pointer_default(unique)] +interface ID3D12Heap1 + : ID3D12Heap +{ + HRESULT GetProtectedResourceSession( + [in] REFIID riid, // Expected: ID3D12ProtectedResourceSession + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppProtectedSession); +} + + +[uuid(6FDA83A7-B84C-4E38-9AC8-C7BD22016B3D), object, local, pointer_default(unique)] +interface ID3D12GraphicsCommandList3 : ID3D12GraphicsCommandList2 +{ + void SetProtectedResourceSession( + [annotation("_In_opt_")]ID3D12ProtectedResourceSession *pProtectedResourceSession + ); +} + +// Beginning Access +typedef enum D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE +{ + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_DISCARD, + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE, + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_CLEAR, + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_NO_ACCESS, + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER, + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_SRV, + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE_PRESERVE_LOCAL_UAV +} D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE; + +typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS +{ + D3D12_CLEAR_VALUE ClearValue; +} D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS; + +typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS +{ + UINT AdditionalWidth; + UINT AdditionalHeight; +} D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS; + +typedef struct D3D12_RENDER_PASS_BEGINNING_ACCESS +{ + D3D12_RENDER_PASS_BEGINNING_ACCESS_TYPE Type; + + union + { + D3D12_RENDER_PASS_BEGINNING_ACCESS_CLEAR_PARAMETERS Clear; + D3D12_RENDER_PASS_BEGINNING_ACCESS_PRESERVE_LOCAL_PARAMETERS PreserveLocal; + }; +} D3D12_RENDER_PASS_BEGINNING_ACCESS; + +// Ending Access +typedef enum D3D12_RENDER_PASS_ENDING_ACCESS_TYPE +{ + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_DISCARD, + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE, + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_RESOLVE, + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_NO_ACCESS, + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_RENDER, + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_SRV, + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE_PRESERVE_LOCAL_UAV +} D3D12_RENDER_PASS_ENDING_ACCESS_TYPE; + +typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS +{ + UINT SrcSubresource; + UINT DstSubresource; + + UINT DstX; + UINT DstY; + D3D12_RECT SrcRect; // (0, 0, 0, 0) == resolve entire resource. + +} D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS; + +typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS +{ + ID3D12Resource* pSrcResource; + ID3D12Resource* pDstResource; + + // Can be a subset of RT's array slices, but can't target subresources that were't part of RTV/DSV. + UINT SubresourceCount; + [annotation("_Field_size_full_(SubresourceCount)")] const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS *pSubresourceParameters; + + DXGI_FORMAT Format; + D3D12_RESOLVE_MODE ResolveMode; + + BOOL PreserveResolveSource; + +} D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS; + +typedef struct D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS +{ + UINT AdditionalWidth; + UINT AdditionalHeight; +} D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS; + +typedef struct D3D12_RENDER_PASS_ENDING_ACCESS +{ + D3D12_RENDER_PASS_ENDING_ACCESS_TYPE Type; + + union + { + D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS Resolve; + D3D12_RENDER_PASS_ENDING_ACCESS_PRESERVE_LOCAL_PARAMETERS PreserveLocal; + }; +} D3D12_RENDER_PASS_ENDING_ACCESS; + +// Render Target Desc +typedef struct D3D12_RENDER_PASS_RENDER_TARGET_DESC +{ + D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor; + + D3D12_RENDER_PASS_BEGINNING_ACCESS BeginningAccess; + D3D12_RENDER_PASS_ENDING_ACCESS EndingAccess; + +} D3D12_RENDER_PASS_RENDER_TARGET_DESC; + +// Depth-Stencil Desc +typedef struct D3D12_RENDER_PASS_DEPTH_STENCIL_DESC +{ + D3D12_CPU_DESCRIPTOR_HANDLE cpuDescriptor; + + D3D12_RENDER_PASS_BEGINNING_ACCESS DepthBeginningAccess; + D3D12_RENDER_PASS_BEGINNING_ACCESS StencilBeginningAccess; + + D3D12_RENDER_PASS_ENDING_ACCESS DepthEndingAccess; + D3D12_RENDER_PASS_ENDING_ACCESS StencilEndingAccess; + +} D3D12_RENDER_PASS_DEPTH_STENCIL_DESC; + +typedef enum D3D12_RENDER_PASS_FLAGS +{ + D3D12_RENDER_PASS_FLAG_NONE = 0x0, + D3D12_RENDER_PASS_FLAG_ALLOW_UAV_WRITES = 0x1, + D3D12_RENDER_PASS_FLAG_SUSPENDING_PASS = 0x2, + D3D12_RENDER_PASS_FLAG_RESUMING_PASS = 0x4, + D3D12_RENDER_PASS_FLAG_BIND_READ_ONLY_DEPTH = 0x8, + D3D12_RENDER_PASS_FLAG_BIND_READ_ONLY_STENCIL = 0x10 +} D3D12_RENDER_PASS_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_RENDER_PASS_FLAGS )") + +[uuid(DBB84C27-36CE-4FC9-B801-F048C46AC570), object, local, pointer_default(unique)] +interface ID3D12MetaCommand : ID3D12Pageable +{ + UINT64 GetRequiredParameterResourceSize([annotation("_In_")] D3D12_META_COMMAND_PARAMETER_STAGE Stage, [annotation("_In_")] UINT ParameterIndex); +} + +typedef struct D3D12_DISPATCH_RAYS_DESC +{ + D3D12_GPU_VIRTUAL_ADDRESS_RANGE RayGenerationShaderRecord; + D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE MissShaderTable; + D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE HitGroupTable; + D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE CallableShaderTable; + UINT Width; + UINT Height; + UINT Depth; +} D3D12_DISPATCH_RAYS_DESC; + +typedef enum D3D12_SET_WORK_GRAPH_FLAGS +{ + D3D12_SET_WORK_GRAPH_FLAG_NONE = 0x0, + D3D12_SET_WORK_GRAPH_FLAG_INITIALIZE = 0x1, +} D3D12_SET_WORK_GRAPH_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_SET_WORK_GRAPH_FLAGS )" ) + +typedef struct D3D12_SET_WORK_GRAPH_DESC +{ + D3D12_PROGRAM_IDENTIFIER ProgramIdentifier; + D3D12_SET_WORK_GRAPH_FLAGS Flags; + D3D12_GPU_VIRTUAL_ADDRESS_RANGE BackingMemory; + D3D12_GPU_VIRTUAL_ADDRESS_RANGE_AND_STRIDE NodeLocalRootArgumentsTable; +} D3D12_SET_WORK_GRAPH_DESC; + +typedef struct D3D12_SET_RAYTRACING_PIPELINE_DESC +{ + D3D12_PROGRAM_IDENTIFIER ProgramIdentifier; +} D3D12_SET_RAYTRACING_PIPELINE_DESC; + +typedef struct D3D12_SET_GENERIC_PIPELINE_DESC +{ + D3D12_PROGRAM_IDENTIFIER ProgramIdentifier; +} D3D12_SET_GENERIC_PIPELINE_DESC; + +typedef enum D3D12_PROGRAM_TYPE +{ + D3D12_PROGRAM_TYPE_GENERIC_PIPELINE = 1, + D3D12_PROGRAM_TYPE_RAYTRACING_PIPELINE = 4, + D3D12_PROGRAM_TYPE_WORK_GRAPH = 5 +} D3D12_PROGRAM_TYPE; + +typedef struct D3D12_SET_PROGRAM_DESC +{ + D3D12_PROGRAM_TYPE Type; + union + { + D3D12_SET_GENERIC_PIPELINE_DESC GenericPipeline; + D3D12_SET_RAYTRACING_PIPELINE_DESC RaytracingPipeline; + D3D12_SET_WORK_GRAPH_DESC WorkGraph; + }; +} D3D12_SET_PROGRAM_DESC; + +typedef enum D3D12_DISPATCH_MODE +{ + D3D12_DISPATCH_MODE_NODE_CPU_INPUT = 0, // D3D12_NODE_CPU_INPUT + D3D12_DISPATCH_MODE_NODE_GPU_INPUT = 1, // D3D12_NODE_GPU_INPUT in GPU memory + D3D12_DISPATCH_MODE_MULTI_NODE_CPU_INPUT = 2, // D3D12_MULTI_NODE_CPU_INPUT + D3D12_DISPATCH_MODE_MULTI_NODE_GPU_INPUT = 3 // D3D12_MULTI_NODE_GPU_INPUT in GPU memory +} D3D12_DISPATCH_MODE; + +typedef struct D3D12_NODE_CPU_INPUT +{ + UINT EntrypointIndex; + UINT NumRecords; + const void* pRecords; + UINT64 RecordStrideInBytes; +} D3D12_NODE_CPU_INPUT; + +typedef struct D3D12_NODE_GPU_INPUT +{ + UINT EntrypointIndex; + UINT NumRecords; + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE Records; +} D3D12_NODE_GPU_INPUT; + +typedef struct D3D12_MULTI_NODE_CPU_INPUT +{ + UINT NumNodeInputs; + const D3D12_NODE_CPU_INPUT* pNodeInputs; + UINT64 NodeInputStrideInBytes; +} D3D12_MULTI_NODE_CPU_INPUT; + +typedef struct D3D12_MULTI_NODE_GPU_INPUT +{ + UINT NumNodeInputs; + D3D12_GPU_VIRTUAL_ADDRESS_AND_STRIDE NodeInputs; // D3D12_GPU_NODE_INPUT array +} D3D12_MULTI_NODE_GPU_INPUT; + +typedef struct D3D12_DISPATCH_GRAPH_DESC +{ + D3D12_DISPATCH_MODE Mode; + union + { + D3D12_NODE_CPU_INPUT NodeCPUInput; + D3D12_GPU_VIRTUAL_ADDRESS NodeGPUInput; + D3D12_MULTI_NODE_CPU_INPUT MultiNodeCPUInput; + D3D12_GPU_VIRTUAL_ADDRESS MultiNodeGPUInput; + }; +} D3D12_DISPATCH_GRAPH_DESC; + +[uuid(8754318e-d3a9-4541-98cf-645b50dc4874), object, local, pointer_default(unique)] +interface ID3D12GraphicsCommandList4 : ID3D12GraphicsCommandList3 +{ + void BeginRenderPass( + [annotation("_In_")] UINT NumRenderTargets, + [annotation("_In_reads_opt_(NumRenderTargets)")] const D3D12_RENDER_PASS_RENDER_TARGET_DESC* pRenderTargets, + [annotation("_In_opt_")] const D3D12_RENDER_PASS_DEPTH_STENCIL_DESC* pDepthStencil, + D3D12_RENDER_PASS_FLAGS Flags + ); + + void EndRenderPass(); + + void InitializeMetaCommand( + [annotation("_In_")] ID3D12MetaCommand * pMetaCommand, + [annotation("_In_reads_bytes_opt_(InitializationParametersDataSizeInBytes)")] const void * pInitializationParametersData, + [annotation("_In_")] SIZE_T InitializationParametersDataSizeInBytes + ); + + void ExecuteMetaCommand( + [annotation("_In_")] ID3D12MetaCommand * pMetaCommand, + [annotation("_In_reads_bytes_opt_(ExecutionParametersDataSizeInBytes)")] const void * pExecutionParametersData, + [annotation("_In_")] SIZE_T ExecutionParametersDataSizeInBytes + ); + + void BuildRaytracingAccelerationStructure( + [annotation("_In_")] const D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC* pDesc, + [annotation("_In_")] UINT NumPostbuildInfoDescs, + [annotation("_In_reads_opt_(NumPostbuildInfoDescs)")] const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pPostbuildInfoDescs + ); + + void EmitRaytracingAccelerationStructurePostbuildInfo( + [annotation("_In_")] const D3D12_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_DESC* pDesc, + [annotation("_In_")] UINT NumSourceAccelerationStructures, + [annotation("_In_reads_( NumSourceAccelerationStructures )")] const D3D12_GPU_VIRTUAL_ADDRESS* pSourceAccelerationStructureData); + + void CopyRaytracingAccelerationStructure( + [annotation("_In_")] D3D12_GPU_VIRTUAL_ADDRESS DestAccelerationStructureData, + [annotation("_In_")] D3D12_GPU_VIRTUAL_ADDRESS SourceAccelerationStructureData, + [annotation("_In_")] D3D12_RAYTRACING_ACCELERATION_STRUCTURE_COPY_MODE Mode); + + void SetPipelineState1( + [annotation("_In_")] ID3D12StateObject* pStateObject); + + void DispatchRays( + [annotation("_In_")] const D3D12_DISPATCH_RAYS_DESC* pDesc); +} + +typedef enum D3D12_SHADER_CACHE_MODE +{ + D3D12_SHADER_CACHE_MODE_MEMORY, + D3D12_SHADER_CACHE_MODE_DISK, +} D3D12_SHADER_CACHE_MODE; + +typedef enum D3D12_SHADER_CACHE_FLAGS +{ + D3D12_SHADER_CACHE_FLAG_NONE = 0x0, + D3D12_SHADER_CACHE_FLAG_DRIVER_VERSIONED = 0x1, + D3D12_SHADER_CACHE_FLAG_USE_WORKING_DIR = 0x2, +} D3D12_SHADER_CACHE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_FLAGS )") + +typedef struct D3D12_SHADER_CACHE_SESSION_DESC +{ + GUID Identifier; + D3D12_SHADER_CACHE_MODE Mode; + D3D12_SHADER_CACHE_FLAGS Flags; + + UINT MaximumInMemoryCacheSizeBytes; + UINT MaximumInMemoryCacheEntries; + + UINT MaximumValueFileSizeBytes; + + UINT64 Version; +} D3D12_SHADER_CACHE_SESSION_DESC; + +typedef enum D3D12_BARRIER_LAYOUT +{ + D3D12_BARRIER_LAYOUT_UNDEFINED = 0xffffffff, + D3D12_BARRIER_LAYOUT_COMMON = 0, + D3D12_BARRIER_LAYOUT_PRESENT = 0, + D3D12_BARRIER_LAYOUT_GENERIC_READ, + D3D12_BARRIER_LAYOUT_RENDER_TARGET, + D3D12_BARRIER_LAYOUT_UNORDERED_ACCESS, + D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_WRITE, + D3D12_BARRIER_LAYOUT_DEPTH_STENCIL_READ, + D3D12_BARRIER_LAYOUT_SHADER_RESOURCE, + D3D12_BARRIER_LAYOUT_COPY_SOURCE, + D3D12_BARRIER_LAYOUT_COPY_DEST, + D3D12_BARRIER_LAYOUT_RESOLVE_SOURCE, + D3D12_BARRIER_LAYOUT_RESOLVE_DEST, + D3D12_BARRIER_LAYOUT_SHADING_RATE_SOURCE, + D3D12_BARRIER_LAYOUT_VIDEO_DECODE_READ, + D3D12_BARRIER_LAYOUT_VIDEO_DECODE_WRITE, + D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_READ, + D3D12_BARRIER_LAYOUT_VIDEO_PROCESS_WRITE, + D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_READ, + D3D12_BARRIER_LAYOUT_VIDEO_ENCODE_WRITE, + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COMMON, + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_GENERIC_READ, + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_UNORDERED_ACCESS, + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_SHADER_RESOURCE, + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_SOURCE, + D3D12_BARRIER_LAYOUT_DIRECT_QUEUE_COPY_DEST, + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COMMON, + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_GENERIC_READ, + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_UNORDERED_ACCESS, + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_SHADER_RESOURCE, + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_SOURCE, + D3D12_BARRIER_LAYOUT_COMPUTE_QUEUE_COPY_DEST, + D3D12_BARRIER_LAYOUT_VIDEO_QUEUE_COMMON, + +} D3D12_BARRIER_LAYOUT; + +typedef enum D3D12_BARRIER_SYNC +{ + D3D12_BARRIER_SYNC_NONE = 0x0, + D3D12_BARRIER_SYNC_ALL = 0x1, + D3D12_BARRIER_SYNC_DRAW = 0x2, + D3D12_BARRIER_SYNC_INDEX_INPUT = 0x4, + D3D12_BARRIER_SYNC_VERTEX_SHADING = 0x8, + D3D12_BARRIER_SYNC_PIXEL_SHADING = 0x10, + D3D12_BARRIER_SYNC_DEPTH_STENCIL = 0x20, + D3D12_BARRIER_SYNC_RENDER_TARGET = 0x40, + D3D12_BARRIER_SYNC_COMPUTE_SHADING = 0x80, + D3D12_BARRIER_SYNC_RAYTRACING = 0x100, + D3D12_BARRIER_SYNC_COPY = 0x200, + D3D12_BARRIER_SYNC_RESOLVE = 0x400, + D3D12_BARRIER_SYNC_EXECUTE_INDIRECT = 0x800, + D3D12_BARRIER_SYNC_PREDICATION = 0x800, // Aliased with SYNC_EXECUTE_INDIRECT + D3D12_BARRIER_SYNC_ALL_SHADING = 0x1000, + D3D12_BARRIER_SYNC_NON_PIXEL_SHADING = 0x2000, + D3D12_BARRIER_SYNC_EMIT_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO = 0x4000, + D3D12_BARRIER_SYNC_CLEAR_UNORDERED_ACCESS_VIEW = 0x8000, + D3D12_BARRIER_SYNC_VIDEO_DECODE = 0x100000, + D3D12_BARRIER_SYNC_VIDEO_PROCESS = 0x200000, + D3D12_BARRIER_SYNC_VIDEO_ENCODE = 0x400000, + D3D12_BARRIER_SYNC_BUILD_RAYTRACING_ACCELERATION_STRUCTURE = 0x800000, + D3D12_BARRIER_SYNC_COPY_RAYTRACING_ACCELERATION_STRUCTURE = 0x1000000, + D3D12_BARRIER_SYNC_SPLIT = 0x80000000, +} D3D12_BARRIER_SYNC; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_SYNC )" ) + +typedef enum D3D12_BARRIER_ACCESS +{ + D3D12_BARRIER_ACCESS_COMMON = 0, + D3D12_BARRIER_ACCESS_VERTEX_BUFFER = 0x1, + D3D12_BARRIER_ACCESS_CONSTANT_BUFFER = 0x2, + D3D12_BARRIER_ACCESS_INDEX_BUFFER = 0x4, + D3D12_BARRIER_ACCESS_RENDER_TARGET = 0x8, + D3D12_BARRIER_ACCESS_UNORDERED_ACCESS = 0x10, + D3D12_BARRIER_ACCESS_DEPTH_STENCIL_WRITE = 0x20, + D3D12_BARRIER_ACCESS_DEPTH_STENCIL_READ = 0x40, + D3D12_BARRIER_ACCESS_SHADER_RESOURCE = 0x80, + D3D12_BARRIER_ACCESS_STREAM_OUTPUT = 0x100, + D3D12_BARRIER_ACCESS_INDIRECT_ARGUMENT = 0x200, + D3D12_BARRIER_ACCESS_PREDICATION = 0x200, // Aliased with ACCESS_INDIRECT_ARGUMENT + D3D12_BARRIER_ACCESS_COPY_DEST = 0x400, + D3D12_BARRIER_ACCESS_COPY_SOURCE = 0x800, + D3D12_BARRIER_ACCESS_RESOLVE_DEST = 0x1000, + D3D12_BARRIER_ACCESS_RESOLVE_SOURCE = 0x2000, + D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_READ = 0x4000, + D3D12_BARRIER_ACCESS_RAYTRACING_ACCELERATION_STRUCTURE_WRITE = 0x8000, + D3D12_BARRIER_ACCESS_SHADING_RATE_SOURCE = 0x10000, + D3D12_BARRIER_ACCESS_VIDEO_DECODE_READ = 0x20000, + D3D12_BARRIER_ACCESS_VIDEO_DECODE_WRITE = 0x40000, + D3D12_BARRIER_ACCESS_VIDEO_PROCESS_READ = 0x80000, + D3D12_BARRIER_ACCESS_VIDEO_PROCESS_WRITE = 0x100000, + D3D12_BARRIER_ACCESS_VIDEO_ENCODE_READ = 0x200000, + D3D12_BARRIER_ACCESS_VIDEO_ENCODE_WRITE = 0x400000, + D3D12_BARRIER_ACCESS_NO_ACCESS = 0x80000000, +} D3D12_BARRIER_ACCESS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_BARRIER_ACCESS )" ) + +typedef enum D3D12_BARRIER_TYPE +{ + D3D12_BARRIER_TYPE_GLOBAL, + D3D12_BARRIER_TYPE_TEXTURE, + D3D12_BARRIER_TYPE_BUFFER, +} D3D12_BARRIER_TYPE; + +typedef enum D3D12_TEXTURE_BARRIER_FLAGS +{ + D3D12_TEXTURE_BARRIER_FLAG_NONE = 0x0, + D3D12_TEXTURE_BARRIER_FLAG_DISCARD = 0x1, +} D3D12_TEXTURE_BARRIER_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_TEXTURE_BARRIER_FLAGS )") + +typedef struct D3D12_BARRIER_SUBRESOURCE_RANGE +{ + UINT IndexOrFirstMipLevel; + UINT NumMipLevels; + UINT FirstArraySlice; + UINT NumArraySlices; + UINT FirstPlane; + UINT NumPlanes; +} D3D12_BARRIER_SUBRESOURCE_RANGE; + +typedef struct D3D12_GLOBAL_BARRIER +{ + D3D12_BARRIER_SYNC SyncBefore; + D3D12_BARRIER_SYNC SyncAfter; + D3D12_BARRIER_ACCESS AccessBefore; + D3D12_BARRIER_ACCESS AccessAfter; +} D3D12_GLOBAL_BARRIER; + +typedef struct D3D12_TEXTURE_BARRIER +{ + D3D12_BARRIER_SYNC SyncBefore; + D3D12_BARRIER_SYNC SyncAfter; + D3D12_BARRIER_ACCESS AccessBefore; + D3D12_BARRIER_ACCESS AccessAfter; + D3D12_BARRIER_LAYOUT LayoutBefore; + D3D12_BARRIER_LAYOUT LayoutAfter; + [annotation("_In_")] ID3D12Resource *pResource; + D3D12_BARRIER_SUBRESOURCE_RANGE Subresources; + D3D12_TEXTURE_BARRIER_FLAGS Flags; +} D3D12_TEXTURE_BARRIER; + +typedef struct D3D12_BUFFER_BARRIER +{ + D3D12_BARRIER_SYNC SyncBefore; + D3D12_BARRIER_SYNC SyncAfter; + D3D12_BARRIER_ACCESS AccessBefore; + D3D12_BARRIER_ACCESS AccessAfter; + [annotation("_In_")] ID3D12Resource *pResource; + UINT64 Offset; + UINT64 Size; +} D3D12_BUFFER_BARRIER; + +typedef struct D3D12_BARRIER_GROUP +{ + D3D12_BARRIER_TYPE Type; + UINT32 NumBarriers; + union + { + [annotation("_In_reads_(NumBarriers)")] const D3D12_GLOBAL_BARRIER *pGlobalBarriers; + [annotation("_In_reads_(NumBarriers)")] const D3D12_TEXTURE_BARRIER *pTextureBarriers; + [annotation("_In_reads_(NumBarriers)")] const D3D12_BUFFER_BARRIER *pBufferBarriers; + }; +} D3D12_BARRIER_GROUP; + +[uuid(28e2495d-0f64-4ae4-a6ec-129255dc49a8), object, local, pointer_default(unique)] +interface ID3D12ShaderCacheSession + : ID3D12DeviceChild +{ + HRESULT FindValue( + [in, annotation("_In_reads_bytes_(KeySize)")] const void* pKey, + UINT KeySize, + [out, annotation("_Out_writes_bytes_(*pValueSize)")] void* pValue, + [annotation("_Inout_")] UINT* pValueSize); + HRESULT StoreValue( + [in, annotation("_In_reads_bytes_(KeySize)")] const void* pKey, + UINT KeySize, + [in, annotation("_In_reads_bytes_(ValueSize)")] const void* pValue, + UINT ValueSize); + + void SetDeleteOnDestroy(); + D3D12_SHADER_CACHE_SESSION_DESC GetDesc(); +}; + +typedef enum D3D12_SHADER_CACHE_KIND_FLAGS +{ + D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CACHE_FOR_DRIVER = 0x1, + D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_D3D_CONVERSIONS = 0x2, + D3D12_SHADER_CACHE_KIND_FLAG_IMPLICIT_DRIVER_MANAGED = 0x4, + D3D12_SHADER_CACHE_KIND_FLAG_APPLICATION_MANAGED = 0x8, +} D3D12_SHADER_CACHE_KIND_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_KIND_FLAGS )") + +typedef enum D3D12_SHADER_CACHE_CONTROL_FLAGS +{ + D3D12_SHADER_CACHE_CONTROL_FLAG_DISABLE = 0x1, + D3D12_SHADER_CACHE_CONTROL_FLAG_ENABLE = 0x2, + D3D12_SHADER_CACHE_CONTROL_FLAG_CLEAR = 0x4, +} D3D12_SHADER_CACHE_CONTROL_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_SHADER_CACHE_CONTROL_FLAGS )") + +[uuid(4c80e962-f032-4f60-bc9e-ebc2cfa1d83c), object, local, pointer_default(unique)] +interface ID3D12Device9 + : ID3D12Device8 +{ + HRESULT CreateShaderCacheSession( + [annotation("_In_")] const D3D12_SHADER_CACHE_SESSION_DESC* pDesc, + REFIID riid, + [annotation("_COM_Outptr_opt_")] void** ppvSession); + + HRESULT ShaderCacheControl( + D3D12_SHADER_CACHE_KIND_FLAGS Kinds, + D3D12_SHADER_CACHE_CONTROL_FLAGS Control); + + HRESULT CreateCommandQueue1( + [annotation("_In_")] const D3D12_COMMAND_QUEUE_DESC* pDesc, + REFIID CreatorID, + [in] REFIID riid, // Expected: ID3D12CommandQueue + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppCommandQueue + ); +}; + +[uuid(517f8718-aa66-49f9-b02b-a7ab89c06031), object, local, pointer_default(unique)] +interface ID3D12Device10 + : ID3D12Device9 +{ + HRESULT CreateCommittedResource3( + [annotation("_In_")] const D3D12_HEAP_PROPERTIES* pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + [annotation("_In_")] const D3D12_RESOURCE_DESC1* pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession* pProtectedSession, + UINT32 NumCastableFormats, + [annotation("_In_opt_count_(NumCastableFormats)")] const DXGI_FORMAT *pCastableFormats, + [in] REFIID riidResource, // Expected: ID3D12Resource1* + [out, iid_is(riidResource), annotation("_COM_Outptr_opt_")] void** ppvResource); + + HRESULT CreatePlacedResource2( + [annotation("_In_")] ID3D12Heap* pHeap, + UINT64 HeapOffset, + [annotation("_In_")] const D3D12_RESOURCE_DESC1* pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + UINT32 NumCastableFormats, + [annotation("_In_opt_count_(NumCastableFormats)")] const DXGI_FORMAT *pCastableFormats, + [in] REFIID riid, // Expected: ID3D12Resource* + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvResource); + + HRESULT CreateReservedResource2( + [annotation("_In_")] const D3D12_RESOURCE_DESC* pDesc, + D3D12_BARRIER_LAYOUT InitialLayout, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession *pProtectedSession, + UINT32 NumCastableFormats, + [annotation("_In_opt_count_(NumCastableFormats)")] const DXGI_FORMAT *pCastableFormats, + [in] REFIID riid, // Expected: ID3D12Resource1* + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppvResource + ); +}; + +[uuid(5405c344-d457-444e-b4dd-2366e45aee39), object, local, pointer_default(unique)] +interface ID3D12Device11 + : ID3D12Device10 +{ + void CreateSampler2( + [annotation("_In_")] const D3D12_SAMPLER_DESC2* pDesc, + [annotation("_In_")] D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor); +}; + +[uuid(5af5c532-4c91-4cd0-b541-15a405395fc5), object, local, pointer_default(unique)] +interface ID3D12Device12 + : ID3D12Device11 +{ + D3D12_RESOURCE_ALLOCATION_INFO GetResourceAllocationInfo3( + UINT visibleMask, + UINT numResourceDescs, + [annotation("_In_reads_(numResourceDescs)")] const D3D12_RESOURCE_DESC1* pResourceDescs, + [annotation("_In_opt_count_(numResourceDescs)")] const UINT32* pNumCastableFormats, + [annotation("_In_opt_count_(numResourceDescs)")] const DXGI_FORMAT *const *ppCastableFormats, + [annotation("_Out_writes_opt_(numResourceDescs)")] D3D12_RESOURCE_ALLOCATION_INFO1* pResourceAllocationInfo1); +}; + +[uuid(14eecffc-4df8-40f7-a118-5c816f45695e), object, local, pointer_default(unique)] +interface ID3D12Device13 + : ID3D12Device12 +{ + HRESULT OpenExistingHeapFromAddress1( + [annotation("_In_")] const void* pAddress, + SIZE_T size, + [in] REFIID riid, // Expected: ID3D12Heap + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvHeap + ); +}; + +[uuid(5f6e592d-d895-44c2-8e4a-88ad4926d323), object, local, pointer_default(unique)] +interface ID3D12Device14 : ID3D12Device13 +{ + HRESULT CreateRootSignatureFromSubobjectInLibrary( + [annotation("_In_")] UINT nodeMask, + [annotation("_In_reads_(blobLengthInBytes)")] const void* pLibraryBlob, + [annotation("_In_")] SIZE_T blobLengthInBytes, + [annotation("_In_opt_")] LPCWSTR subobjectName, + [in] REFIID riid, // Expected ID3D12RootSignature + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvRootSignature); +}; + +typedef union D3D12_VERSION_NUMBER +{ + UINT64 Version; + UINT16 VersionParts[4]; +} D3D12_VERSION_NUMBER; + +// D3D12_FEATURE_SHADER_CACHE_ABI_SUPPORT +typedef struct D3D12_FEATURE_DATA_SHADERCACHE_ABI_SUPPORT +{ + WCHAR szAdapterFamily[128]; + UINT64 MinimumABISupportVersion; + UINT64 MaximumABISupportVersion; + D3D12_VERSION_NUMBER CompilerVersion; + D3D12_VERSION_NUMBER ApplicationProfileVersion; +} D3D12_FEATURE_DATA_SHADERCACHE_ABI_SUPPORT; + + + + + +[uuid(bc66d368-7373-4943-8757-fc87dc79e476), object, local, pointer_default(unique)] +interface ID3D12VirtualizationGuestDevice + : IUnknown +{ + HRESULT ShareWithHost( + [annotation("_In_")] ID3D12DeviceChild* pObject, + [annotation("_Out_")] HANDLE* pHandle + ); + + HRESULT CreateFenceFd( + [annotation("_In_")] ID3D12Fence *pFence, + UINT64 FenceValue, + [annotation("_Out_")] int *pFenceFd + ); +}; + + +[uuid(7071e1f0-e84b-4b33-974f-12fa49de65c5), object, local, pointer_default(unique)] +interface ID3D12Tools + : IUnknown +{ + void EnableShaderInstrumentation(BOOL bEnable); + BOOL ShaderInstrumentationEnabled(); +} + +[uuid(e4fbc019-dd3c-43e1-8f32-7f649575f0a0), object, local, pointer_default(unique)] +interface ID3D12Tools1 + : ID3D12Tools +{ + HRESULT ReserveGPUVARangesAtCreate( + [annotation("_In_reads_(uiNumRanges)")] D3D12_GPU_VIRTUAL_ADDRESS_RANGE* pRanges, + [annotation("_In_")] UINT uiNumRanges); + void ClearReservedGPUVARangesList(); +} + +[uuid(01d393c5-c9b0-42a1-958c-c26b02d4d097), object, local, pointer_default(unique)] +interface ID3D12Tools2 + : ID3D12Tools1 +{ + HRESULT SetApplicationSpecificDriverState( + [annotation("_In_")] IUnknown* pAdapter, + [annotation("_In_opt_")] ID3DBlob* pBlob); +}; + +[uuid(8f1359db-d8d1-42f9-b5cf-79f4cbad0d3d), object, local, pointer_default(unique)] +interface ID3D12PageableTools + : IUnknown +{ + HRESULT GetAllocation( + [annotation("_Inout_")] D3D12_GPU_VIRTUAL_ADDRESS_RANGE* pAllocation); +} + +[uuid(2ea68e9c-19c3-4e47-a109-6cdadff0aca9), object, local, pointer_default(unique)] +interface ID3D12DeviceTools + : IUnknown +{ + void SetNextAllocationAddress( + [annotation("_In_")] D3D12_GPU_VIRTUAL_ADDRESS nextAllocationVirtualAddress); +} + +typedef enum D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS +{ + D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_UNKNOWN = 1, + D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_USED = 2, + D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_IGNORED = 3, + D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_NOT_SPECIFIED = 4, +} D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS; + +[uuid(e30e9fc7-e641-4d6e-8a81-9dd9206ec47a), object, local, pointer_default(unique)] +interface ID3D12DeviceTools1 + : ID3D12DeviceTools +{ + HRESULT GetApplicationSpecificDriverState( + [annotation("_COM_Outptr_")] ID3DBlob** ppBlob); + D3D12_APPLICATION_SPECIFIC_DRIVER_BLOB_STATUS GetApplicationSpecificDriverBlobStatus(); +} + + +typedef struct D3D12_SUBRESOURCE_DATA +{ + const void* pData; + LONG_PTR RowPitch; + LONG_PTR SlicePitch; +} D3D12_SUBRESOURCE_DATA; + +typedef struct D3D12_MEMCPY_DEST +{ + void* pData; + SIZE_T RowPitch; + SIZE_T SlicePitch; +} D3D12_MEMCPY_DEST; + + + +cpp_quote( "#if !defined( D3D12_IGNORE_SDK_LAYERS ) ") +cpp_quote( "#include \"d3d12sdklayers.h\" ") +cpp_quote( "#endif ") + + +cpp_quote("") +cpp_quote("///////////////////////////////////////////////////////////////////////////") +cpp_quote("// D3D12CreateDevice") +cpp_quote("// ------------------") +cpp_quote("//") +cpp_quote("// pAdapter") +cpp_quote("// If NULL, D3D12CreateDevice will choose the primary adapter.") +cpp_quote("// If non-NULL, D3D12CreateDevice will use the provided adapter.") +cpp_quote("// MinimumFeatureLevel") +cpp_quote("// The minimum feature level required for successful device creation.") +cpp_quote("// riid") +cpp_quote("// The interface IID of the device to be returned. Expected: ID3D12Device.") +cpp_quote("// ppDevice") +cpp_quote("// Pointer to returned interface. May be NULL.") +cpp_quote("//") +cpp_quote("// Return Values") +cpp_quote("// Any of those documented for ") +cpp_quote("// CreateDXGIFactory1") +cpp_quote("// IDXGIFactory::EnumAdapters") +cpp_quote("// D3D12CreateDevice") +cpp_quote("//") +cpp_quote("///////////////////////////////////////////////////////////////////////////") +cpp_quote("typedef HRESULT (WINAPI* PFN_D3D12_CREATE_DEVICE)( _In_opt_ IUnknown*, ") +cpp_quote(" D3D_FEATURE_LEVEL, ") +cpp_quote(" _In_ REFIID, _COM_Outptr_opt_ void** );") +cpp_quote("") +cpp_quote("HRESULT WINAPI D3D12CreateDevice(") +cpp_quote(" _In_opt_ IUnknown* pAdapter,") +cpp_quote(" D3D_FEATURE_LEVEL MinimumFeatureLevel,") +cpp_quote(" _In_ REFIID riid, // Expected: ID3D12Device") +cpp_quote(" _COM_Outptr_opt_ void** ppDevice );") +cpp_quote("") + +cpp_quote("") +cpp_quote("typedef HRESULT (WINAPI* PFN_D3D12_GET_DEBUG_INTERFACE)( _In_ REFIID, _COM_Outptr_opt_ void** );") +cpp_quote("") +cpp_quote("HRESULT WINAPI D3D12GetDebugInterface( _In_ REFIID riid, _COM_Outptr_opt_ void** ppvDebug );") +cpp_quote("") + +cpp_quote("// --------------------------------------------------------------------------------------------------------------------------------") +cpp_quote("// D3D12EnableExperimentalFeatures") +cpp_quote("//") +cpp_quote("// Pass in a list of feature GUIDs to be enabled together.") +cpp_quote("// ") +cpp_quote("// If a particular feature requires some configuration information on enablement, it will have") +cpp_quote("// a configuration struct that can be passed alongside the GUID.") +cpp_quote("// ") +cpp_quote("// Some features might use an interface IID as the GUID. For these, once the feature is enabled via") +cpp_quote("// D3D12EnableExperimentalFeatures, D3D12GetDebugInterface can then be called with the IID to retrieve the interface") +cpp_quote("// for manipulating the feature. This allows for control that might not cleanly be expressed by just ") +cpp_quote("// the configuration struct that D3D12EnableExperimentalFeatures provides.") +cpp_quote("//") +cpp_quote("// If this method is called and a change to existing feature enablement is made, ") +cpp_quote("// all current D3D12 devices are set to DEVICE_REMOVED state, since under the covers there is really only one") +cpp_quote("// singleton device for a process. Removing the devices when configuration changes prevents") +cpp_quote("// mismatched expectations of how a device is supposed to work after it has been created from the app's point of view.") +cpp_quote("//") +cpp_quote("// The call returns E_NOINTERFACE if an unrecognized feature is passed in or Windows Developer mode is not on.") +cpp_quote("// The call returns E_INVALIDARG if the configuration of a feature is incorrect, the set of features passed") +cpp_quote("// in are known to be incompatible with each other, or other errors.") +cpp_quote("// Returns S_OK otherwise.") +cpp_quote("//") +cpp_quote("// --------------------------------------------------------------------------------------------------------------------------------") +cpp_quote("HRESULT WINAPI D3D12EnableExperimentalFeatures(") +cpp_quote(" UINT NumFeatures,") +cpp_quote(" _In_count_(NumFeatures) const IID* pIIDs,") +cpp_quote(" _In_opt_count_(NumFeatures) void* pConfigurationStructs,") +cpp_quote(" _In_opt_count_(NumFeatures) UINT* pConfigurationStructSizes);") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------------------------------------------------------") +cpp_quote("// Experimental Feature: D3D12ExperimentalShaderModels") +cpp_quote("//") +cpp_quote("// Use with D3D12EnableExperimentalFeatures to enable experimental shader model support,") +cpp_quote("// meaning shader models that haven't been finalized for use in retail.") +cpp_quote("//") +cpp_quote("// Enabling D3D12ExperimentalShaderModels needs no configuration struct, pass NULL in the pConfigurationStructs array.") +cpp_quote("//") +cpp_quote("// --------------------------------------------------------------------------------------------------------------------------------") +cpp_quote("static const UUID D3D12ExperimentalShaderModels = { /* 76f5573e-f13a-40f5-b297-81ce9e18933f */") +cpp_quote(" 0x76f5573e,") +cpp_quote(" 0xf13a,") +cpp_quote(" 0x40f5,") +cpp_quote(" { 0xb2, 0x97, 0x81, 0xce, 0x9e, 0x18, 0x93, 0x3f }") +cpp_quote("};") +cpp_quote("// --------------------------------------------------------------------------------------------------------------------------------") +cpp_quote("// Experimental Feature: D3D12TiledResourceTier4") +cpp_quote("//") +cpp_quote("// Use with D3D12EnableExperimentalFeatures to enable tiled resource tier 4 support,") +cpp_quote("// meaning texture tile data-inheritance is allowed.") +cpp_quote("//") +cpp_quote("// Enabling D3D12TiledResourceTier4 needs no configuration struct, pass NULL in the pConfigurationStructs array.") +cpp_quote("//") +cpp_quote("// --------------------------------------------------------------------------------------------------------------------------------") +cpp_quote("static const UUID D3D12TiledResourceTier4 = { /* c9c4725f-a81a-4f56-8c5b-c51039d694fb */") +cpp_quote(" 0xc9c4725f,") +cpp_quote(" 0xa81a,") +cpp_quote(" 0x4f56,") +cpp_quote(" { 0x8c, 0x5b, 0xc5, 0x10, 0x39, 0xd6, 0x94, 0xfb }") +cpp_quote("};") +cpp_quote("// --------------------------------------------------------------------------------------------------------------------------------") +cpp_quote("// Experimental Feature: D3D12GPUUploadHeapsOnUnsupportedOS") +cpp_quote("//") +cpp_quote("// Use with D3D12EnableExperimentalFeatures to enable GPU upload heaps support on an unsupported OS, ") +cpp_quote("// driver support is still required for this feature.") +cpp_quote("//") +cpp_quote("// Enabling D3D12GPUUploadHeapsOnUnsupportedOS needs no configuration struct, pass NULL in the pConfigurationStructs array.") +cpp_quote("//") +cpp_quote("// --------------------------------------------------------------------------------------------------------------------------------") +cpp_quote("static const UUID D3D12GPUUploadHeapsOnUnsupportedOS = { /* 45dc51f3-767f-4588-b206-0baa2b16fbae */") +cpp_quote(" 0x45dc51f3,") +cpp_quote(" 0x767f,") +cpp_quote(" 0x4588,") +cpp_quote(" { 0xb2, 0x06, 0x0b, 0xaa, 0x2b, 0x16, 0xfb, 0xae }") +cpp_quote("};") + +cpp_quote("// --------------------------------------------------------------------------------------------------------------------------------") +cpp_quote("// D3D12GetInterface") +cpp_quote("//") +cpp_quote("// Retrieve Global D3D12 Interface.") +cpp_quote("//") +cpp_quote("") +cpp_quote("DEFINE_GUID(CLSID_D3D12Debug, 0xf2352aeb, 0xdd84, 0x49fe, 0xb9, 0x7b, 0xa9, 0xdc, 0xfd, 0xcc, 0x1b, 0x4f);") +cpp_quote("DEFINE_GUID(CLSID_D3D12Tools, 0xe38216b1, 0x3c8c, 0x4833, 0xaa, 0x09, 0x0a, 0x06, 0xb6, 0x5d, 0x96, 0xc8);") +cpp_quote("DEFINE_GUID(CLSID_D3D12DeviceRemovedExtendedData, 0x4a75bbc4, 0x9ff4, 0x4ad8, 0x9f, 0x18, 0xab, 0xae, 0x84, 0xdc, 0x5f, 0xf2);") +cpp_quote("DEFINE_GUID(CLSID_D3D12SDKConfiguration, 0x7cda6aca, 0xa03e, 0x49c8, 0x94, 0x58, 0x03, 0x34, 0xd2, 0x0e, 0x07, 0xce);") +cpp_quote("DEFINE_GUID(CLSID_D3D12DeviceFactory, 0x114863bf, 0xc386, 0x4aee, 0xb3, 0x9d, 0x8f, 0x0b, 0xbb, 0x06, 0x29, 0x55);") +cpp_quote("DEFINE_GUID(CLSID_D3D12DSRDeviceFactory, 0xbb6dd27e, 0x94a9, 0x41a6, 0x9f, 0x1b, 0x13, 0x37, 0x72, 0x17, 0x24, 0x28);") +cpp_quote("") +cpp_quote("typedef HRESULT (WINAPI* PFN_D3D12_GET_INTERFACE)( _In_ REFCLSID, _In_ REFIID, _COM_Outptr_opt_ void** );") +cpp_quote("") +cpp_quote("HRESULT WINAPI D3D12GetInterface( _In_ REFCLSID rclsid, _In_ REFIID riid, _COM_Outptr_opt_ void** ppvDebug );") +cpp_quote("") + +//================================================================================================================================== +// +// SDK Configuration +// +//================================================================================================================================== + +[uuid(e9eb5314-33aa-42b2-a718-d77f58b1f1c7), object, local, pointer_default(unique)] +interface ID3D12SDKConfiguration + : IUnknown +{ + HRESULT SetSDKVersion( + UINT SDKVersion, + [annotation("_In_z_")] LPCSTR SDKPath + ); +} + +[uuid(8aaf9303-ad25-48b9-9a57-d9c37e009d9f), object, local, pointer_default(unique)] +interface ID3D12SDKConfiguration1 + : ID3D12SDKConfiguration +{ + HRESULT CreateDeviceFactory( + UINT SDKVersion, + [annotation("_In_")] LPCSTR SDKPath, + REFIID riid, // Expected: ID3D12DeviceFactory + [annotation("_COM_Outptr_")] void **ppvFactory + ); + void FreeUnusedSDKs(); +} + +typedef enum D3D12_DEVICE_FACTORY_FLAGS +{ + D3D12_DEVICE_FACTORY_FLAG_NONE = 0, + D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_EXISTING_DEVICE = 0x1, + D3D12_DEVICE_FACTORY_FLAG_ALLOW_RETURNING_INCOMPATIBLE_EXISTING_DEVICE = 0x2, + D3D12_DEVICE_FACTORY_FLAG_DISALLOW_STORING_NEW_DEVICE_AS_SINGLETON = 0x4, +} D3D12_DEVICE_FACTORY_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_DEVICE_FACTORY_FLAGS )") + +[uuid(61f307d3-d34e-4e7c-8374-3ba4de23cccb), object, local, pointer_default(unique)] +interface ID3D12DeviceFactory + : IUnknown +{ + HRESULT InitializeFromGlobalState(); + HRESULT ApplyToGlobalState(); + + HRESULT SetFlags(D3D12_DEVICE_FACTORY_FLAGS flags); + D3D12_DEVICE_FACTORY_FLAGS GetFlags(); + + HRESULT GetConfigurationInterface( + REFCLSID clsid, + REFIID iid, + [annotation("_COM_Outptr_")] void **ppv); + + HRESULT EnableExperimentalFeatures( + UINT NumFeatures, + [annotation("_In_reads_(NumFeatures)")] const IID *pIIDs, + [annotation("_In_reads_opt_(NumFeatures)")] void *pConfigurationStructs, + [annotation("_In_reads_opt_(NumFeatures)")] UINT *pConfigurationStructSizes); + + HRESULT CreateDevice( + [annotation("_In_opt_")] IUnknown *adapter, + D3D_FEATURE_LEVEL FeatureLevel, + REFIID riid, + [annotation("_COM_Outptr_opt_")] void **ppvDevice); +}; + +typedef enum D3D12_DEVICE_FLAGS +{ + D3D12_DEVICE_FLAG_NONE = 0, + D3D12_DEVICE_FLAG_DEBUG_LAYER_ENABLED = 0x1, + D3D12_DEVICE_FLAG_GPU_BASED_VALIDATION_ENABLED = 0x2, + D3D12_DEVICE_FLAG_SYNCHRONIZED_COMMAND_QUEUE_VALIDATION_DISABLED = 0x4, + D3D12_DEVICE_FLAG_DRED_AUTO_BREADCRUMBS_ENABLED = 0x8, + D3D12_DEVICE_FLAG_DRED_PAGE_FAULT_REPORTING_ENABLED = 0x10, + D3D12_DEVICE_FLAG_DRED_WATSON_REPORTING_ENABLED = 0x20, + D3D12_DEVICE_FLAG_DRED_BREADCRUMB_CONTEXT_ENABLED = 0x40, + D3D12_DEVICE_FLAG_DRED_USE_MARKERS_ONLY_BREADCRUMBS = 0x80, + D3D12_DEVICE_FLAG_SHADER_INSTRUMENTATION_ENABLED = 0x100, + D3D12_DEVICE_FLAG_AUTO_DEBUG_NAME_ENABLED = 0x200, + D3D12_DEVICE_FLAG_FORCE_LEGACY_STATE_VALIDATION = 0x400, +} D3D12_DEVICE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D12_DEVICE_FLAGS )") + +typedef struct D3D12_DEVICE_CONFIGURATION_DESC +{ + D3D12_DEVICE_FLAGS Flags; + UINT GpuBasedValidationFlags; // D3D12_GPU_BASED_VALIDATION_FLAGS from d3d12sdklayers.h + UINT SDKVersion; + UINT NumEnabledExperimentalFeatures; +} D3D12_DEVICE_CONFIGURATION_DESC; + +[uuid(78dbf87b-f766-422b-a61c-c8c446bdb9ad), object, local, pointer_default(unique)] +interface ID3D12DeviceConfiguration + : IUnknown +{ + D3D12_DEVICE_CONFIGURATION_DESC GetDesc(); + HRESULT GetEnabledExperimentalFeatures([annotation("_Out_writes_(NumGuids)")] GUID *pGuids, UINT NumGuids); + + HRESULT SerializeVersionedRootSignature( + [annotation("_In_")] const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *pDesc, + [annotation("_COM_Outptr_")] ID3DBlob **ppResult, + [annotation("_Always_(_Outptr_opt_result_maybenull_)")] ID3DBlob **ppError); + + HRESULT CreateVersionedRootSignatureDeserializer( + [annotation("_In_reads_bytes_(Size)")] const void *pBlob, + SIZE_T Size, + REFIID riid, + [annotation("_COM_Outptr_")] void **ppvDeserializer); +}; + +[uuid(ed342442-6343-4e16-bb82-a3a577874e56), object, local, pointer_default(unique)] +interface ID3D12DeviceConfiguration1 + : ID3D12DeviceConfiguration +{ + HRESULT CreateVersionedRootSignatureDeserializerFromSubobjectInLibrary( + [annotation("_In_reads_bytes_(Size)")] const void* pLibraryBlob, + SIZE_T Size, + LPCWSTR RootSignatureSubobjectName, + REFIID riid, + [annotation("_COM_Outptr_")] void** ppvDeserializer); +}; + + +typedef enum D3D12_AXIS_SHADING_RATE +{ + D3D12_AXIS_SHADING_RATE_1X = 0x0, + D3D12_AXIS_SHADING_RATE_2X = 0x1, + D3D12_AXIS_SHADING_RATE_4X = 0x2 +} D3D12_AXIS_SHADING_RATE; + + +cpp_quote("#define D3D12_SHADING_RATE_X_AXIS_SHIFT 2") +cpp_quote("#define D3D12_SHADING_RATE_VALID_MASK 3") + +cpp_quote("#define D3D12_MAKE_COARSE_SHADING_RATE(x,y) ((x) << D3D12_SHADING_RATE_X_AXIS_SHIFT | (y))") + +cpp_quote("#define D3D12_GET_COARSE_SHADING_RATE_X_AXIS(x) (((x) >> D3D12_SHADING_RATE_X_AXIS_SHIFT) & D3D12_SHADING_RATE_VALID_MASK)") +cpp_quote("#define D3D12_GET_COARSE_SHADING_RATE_Y_AXIS(y) ((y) & D3D12_SHADING_RATE_VALID_MASK)") + +typedef enum D3D12_SHADING_RATE +{ + D3D12_SHADING_RATE_1X1 = 0x0, + D3D12_SHADING_RATE_1X2 = 0x1, + D3D12_SHADING_RATE_2X1 = 0x4, + D3D12_SHADING_RATE_2X2 = 0x5, + D3D12_SHADING_RATE_2X4 = 0x6, + D3D12_SHADING_RATE_4X2 = 0x9, + D3D12_SHADING_RATE_4X4 = 0xA +} D3D12_SHADING_RATE; + +typedef enum D3D12_SHADING_RATE_COMBINER +{ + D3D12_SHADING_RATE_COMBINER_PASSTHROUGH = 0, + D3D12_SHADING_RATE_COMBINER_OVERRIDE = 1, + D3D12_SHADING_RATE_COMBINER_MIN = 2, + D3D12_SHADING_RATE_COMBINER_MAX = 3, + D3D12_SHADING_RATE_COMBINER_SUM = 4, +} D3D12_SHADING_RATE_COMBINER; + +[uuid(55050859-4024-474c-87f5-6472eaee44ea), object, local, pointer_default(unique)] +interface ID3D12GraphicsCommandList5 : ID3D12GraphicsCommandList4 +{ + void RSSetShadingRate( + [annotation("_In_")] D3D12_SHADING_RATE baseShadingRate, + [annotation("_In_reads_opt_(D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT)")] const D3D12_SHADING_RATE_COMBINER* combiners); + + void RSSetShadingRateImage( + [annotation("_In_opt_")] ID3D12Resource* shadingRateImage); +} + +typedef struct D3D12_DISPATCH_MESH_ARGUMENTS +{ + UINT ThreadGroupCountX; + UINT ThreadGroupCountY; + UINT ThreadGroupCountZ; +} D3D12_DISPATCH_MESH_ARGUMENTS; + +[uuid(c3827890-e548-4cfa-96cf-5689a9370f80), object, local, pointer_default(unique)] +interface ID3D12GraphicsCommandList6 : ID3D12GraphicsCommandList5 +{ + void DispatchMesh( + [annotation("_In_")] UINT ThreadGroupCountX, + [annotation("_In_")] UINT ThreadGroupCountY, + [annotation("_In_")] UINT ThreadGroupCountZ + ); +} + +[uuid(dd171223-8b61-4769-90e3-160ccde4e2c1), object, local, pointer_default(unique)] +interface ID3D12GraphicsCommandList7 : ID3D12GraphicsCommandList6 +{ + void Barrier( + UINT32 NumBarrierGroups, + [annotation("_In_reads_(NumBarrierGroups)")] const D3D12_BARRIER_GROUP *pBarrierGroups + ); +}; + +[uuid(ee936ef9-599d-4d28-938e-23c4ad05ce51), object, local, pointer_default(unique)] +interface ID3D12GraphicsCommandList8 : ID3D12GraphicsCommandList7 +{ + void OMSetFrontAndBackStencilRef( + [annotation("_In_")] UINT FrontStencilRef, + [annotation("_In_")] UINT BackStencilRef + ); +}; + +[uuid(34ed2808-ffe6-4c2b-b11a-cabd2b0c59e1), object, local, pointer_default(unique)] +interface ID3D12GraphicsCommandList9 : ID3D12GraphicsCommandList8 +{ + void RSSetDepthBias( + [annotation("_In_")] FLOAT DepthBias, + [annotation("_In_")] FLOAT DepthBiasClamp, + [annotation("_In_")] FLOAT SlopeScaledDepthBias + ); + + void IASetIndexBufferStripCutValue( + [annotation("_In_")] D3D12_INDEX_BUFFER_STRIP_CUT_VALUE IBStripCutValue + ); +}; + +[uuid(7013c015-d161-4b63-a08c-238552dd8acc), object, local, pointer_default(unique)] +interface ID3D12GraphicsCommandList10 : ID3D12GraphicsCommandList9 +{ + void SetProgram([annotation("_In_")] const D3D12_SET_PROGRAM_DESC* pDesc); + void DispatchGraph([annotation("_In_")] const D3D12_DISPATCH_GRAPH_DESC* pDesc); +}; + + +[uuid(f343d1a0-afe3-439f-b13d-cd87a43b70ca), object, local, pointer_default(unique)] +interface ID3D12DSRDeviceFactory : IUnknown +{ + HRESULT CreateDSRDevice( + [in] ID3D12Device *pD3D12Device, + [in] UINT NodeMask, + [in] REFIID riid, // Expected IDSRDevice + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvDSRDevice); +} + +[uuid(597985ab-9b75-4dbb-be23-0761195bebee), object, local, pointer_default(unique)] +interface ID3D12GBVDiagnostics + : IUnknown +{ + HRESULT GetGBVEntireSubresourceStatesData( [annotation("_In_")] ID3D12Resource* pResource, [annotation("_Out_writes_bytes_(DataSize)")] int *pData, UINT DataSize ); + HRESULT GetGBVSubresourceState( [annotation("_In_")] ID3D12Resource* pResource, UINT Subresource, [annotation("_Out_")] int *pData ); + HRESULT GetGBVResourceUniformState( [annotation("_In_")] ID3D12Resource* pResource, [annotation("_Out_")] int *pData ); + HRESULT GetGBVResourceInfo( [annotation("_In_")] ID3D12Resource* pResource, + [annotation("_In_opt_")] D3D12_RESOURCE_DESC* pResourceDesc, + [annotation("_In_opt_")] UINT32* pResourceHash, + [annotation("_In_opt_")] UINT32* pSubresourceStatesByteOffset ); + + void GBVReserved0(); + + void GBVReserved1(); +} + +//---------------------------------------------------------------------------------------------------------- +// Old types which are still supported by the runtime for app-compat + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */") +#pragma endregion + +cpp_quote( "DEFINE_GUID(IID_ID3D12Object,0xc4fec28f,0x7966,0x4e95,0x9f,0x94,0xf4,0x31,0xcb,0x56,0xc3,0xb8);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceChild,0x905db94b,0xa00c,0x4140,0x9d,0xf5,0x2b,0x64,0xca,0x9e,0xa3,0x57);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12RootSignature,0xc54a6b66,0x72df,0x4ee8,0x8b,0xe5,0xa9,0x46,0xa1,0x42,0x92,0x14);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12RootSignatureDeserializer,0x34AB647B,0x3CC8,0x46AC,0x84,0x1B,0xC0,0x96,0x56,0x45,0xC0,0x46);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VersionedRootSignatureDeserializer,0x7F91CE67,0x090C,0x4BB7,0xB7,0x8E,0xED,0x8F,0xF2,0xE3,0x1D,0xA0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Pageable,0x63ee58fb,0x1268,0x4835,0x86,0xda,0xf0,0x08,0xce,0x62,0xf0,0xd6);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Heap,0x6b3b2502,0x6e51,0x45b3,0x90,0xee,0x98,0x84,0x26,0x5e,0x8d,0xf3);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Resource,0x696442be,0xa72e,0x4059,0xbc,0x79,0x5b,0x5c,0x98,0x04,0x0f,0xad);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12CommandAllocator,0x6102dee4,0xaf59,0x4b09,0xb9,0x99,0xb4,0x4d,0x73,0xf0,0x9b,0x24);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Fence,0x0a753dcf,0xc4d8,0x4b91,0xad,0xf6,0xbe,0x5a,0x60,0xd9,0x5a,0x76);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Fence1,0x433685fe,0xe22b,0x4ca0,0xa8,0xdb,0xb5,0xb4,0xf4,0xdd,0x0e,0x4a);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12PipelineState,0x765a30f3,0xf624,0x4c6f,0xa8,0x28,0xac,0xe9,0x48,0x62,0x24,0x45);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DescriptorHeap,0x8efb471d,0x616c,0x4f49,0x90,0xf7,0x12,0x7b,0xb7,0x63,0xfa,0x51);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12QueryHeap,0x0d9658ae,0xed45,0x469e,0xa6,0x1d,0x97,0x0e,0xc5,0x83,0xca,0xb4);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12CommandSignature,0xc36a797c,0xec80,0x4f0a,0x89,0x85,0xa7,0xb2,0x47,0x50,0x82,0xd1);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12CommandList,0x7116d91c,0xe7e4,0x47ce,0xb8,0xc6,0xec,0x81,0x68,0xf4,0x37,0xe5);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList,0x5b160d0f,0xac1b,0x4185,0x8b,0xa8,0xb3,0xae,0x42,0xa5,0xa4,0x55);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList1,0x553103fb,0x1fe7,0x4557,0xbb,0x38,0x94,0x6d,0x7d,0x0e,0x7c,0xa7);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList2,0x38C3E585,0xFF17,0x412C,0x91,0x50,0x4F,0xC6,0xF9,0xD7,0x2A,0x28);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12CommandQueue,0x0ec870a6,0x5d7e,0x4c22,0x8c,0xfc,0x5b,0xaa,0xe0,0x76,0x16,0xed);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device,0x189819f1,0x1db6,0x4b57,0xbe,0x54,0x18,0x21,0x33,0x9b,0x85,0xf7);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12PipelineLibrary,0xc64226a8,0x9201,0x46af,0xb4,0xcc,0x53,0xfb,0x9f,0xf7,0x41,0x4f);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12PipelineLibrary1,0x80eabf42,0x2568,0x4e5e,0xbd,0x82,0xc3,0x7f,0x86,0x96,0x1d,0xc3);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device1,0x77acce80,0x638e,0x4e65,0x88,0x95,0xc1,0xf2,0x33,0x86,0x86,0x3e);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device2,0x30baa41e,0xb15b,0x475c,0xa0,0xbb,0x1a,0xf5,0xc5,0xb6,0x43,0x28);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device3,0x81dadc15,0x2bad,0x4392,0x93,0xc5,0x10,0x13,0x45,0xc4,0xaa,0x98);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12ProtectedSession,0xA1533D18,0x0AC1,0x4084,0x85,0xB9,0x89,0xA9,0x61,0x16,0x80,0x6B);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12ProtectedResourceSession,0x6CD696F4,0xF289,0x40CC,0x80,0x91,0x5A,0x6C,0x0A,0x09,0x9C,0x3D);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device4,0xe865df17,0xa9ee,0x46f9,0xa4,0x63,0x30,0x98,0x31,0x5a,0xa2,0xe5);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12LifetimeOwner,0xe667af9f,0xcd56,0x4f46,0x83,0xce,0x03,0x2e,0x59,0x5d,0x70,0xa8);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12SwapChainAssistant,0xf1df64b6,0x57fd,0x49cd,0x88,0x07,0xc0,0xeb,0x88,0xb4,0x5c,0x8f);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12LifetimeTracker,0x3fd03d36,0x4eb1,0x424a,0xa5,0x82,0x49,0x4e,0xcb,0x8b,0xa8,0x13);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12StateObject,0x47016943,0xfca8,0x4594,0x93,0xea,0xaf,0x25,0x8b,0x55,0x34,0x6d);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12StateObjectProperties,0xde5fa827,0x9bf9,0x4f26,0x89,0xff,0xd7,0xf5,0x6f,0xde,0x38,0x60);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12StateObjectProperties1,0x460caac7,0x1d24,0x446a,0xa1,0x84,0xca,0x67,0xdb,0x49,0x41,0x38);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12WorkGraphProperties,0x065acf71,0xf863,0x4b89,0x82,0xf4,0x02,0xe4,0xd5,0x88,0x67,0x57);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device5,0x8b4f173b,0x2fea,0x4b80,0x8f,0x58,0x43,0x07,0x19,0x1a,0xb9,0x5d);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings,0x82BC481C,0x6B9B,0x4030,0xAE,0xDB,0x7E,0xE3,0xD1,0xDF,0x1E,0x63);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings1,0xDBD5AE51,0x3317,0x4F0A,0xAD,0xF9,0x1D,0x7C,0xED,0xCA,0xAE,0x0B);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedDataSettings2,0x61552388,0x01ab,0x4008,0xa4,0x36,0x83,0xdb,0x18,0x95,0x66,0xea);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData,0x98931D33,0x5AE8,0x4791,0xAA,0x3C,0x1A,0x73,0xA2,0x93,0x4E,0x71);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData1,0x9727A022,0xCF1D,0x4DDA,0x9E,0xBA,0xEF,0xFA,0x65,0x3F,0xC5,0x06);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceRemovedExtendedData2,0x67FC5816,0xE4CA,0x4915,0xBF,0x18,0x42,0x54,0x12,0x72,0xDA,0x54);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device6,0xc70b221b,0x40e4,0x4a17,0x89,0xaf,0x02,0x5a,0x07,0x27,0xa6,0xdc);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12ProtectedResourceSession1,0xD6F12DD6,0x76FB,0x406E,0x89,0x61,0x42,0x96,0xEE,0xFC,0x04,0x09);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device7,0x5c014b53,0x68a1,0x4b9b,0x8b,0xd1,0xdd,0x60,0x46,0xb9,0x35,0x8b);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device8,0x9218E6BB,0xF944,0x4F7E,0xA7,0x5C,0xB1,0xB2,0xC7,0xB7,0x01,0xF3);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Resource1,0x9D5E227A,0x4430,0x4161,0x88,0xB3,0x3E,0xCA,0x6B,0xB1,0x6E,0x19);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Resource2,0xBE36EC3B,0xEA85,0x4AEB,0xA4,0x5A,0xE9,0xD7,0x64,0x04,0xA4,0x95);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Heap1,0x572F7389,0x2168,0x49E3,0x96,0x93,0xD6,0xDF,0x58,0x71,0xBF,0x6D);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList3,0x6FDA83A7,0xB84C,0x4E38,0x9A,0xC8,0xC7,0xBD,0x22,0x01,0x6B,0x3D);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12MetaCommand,0xDBB84C27,0x36CE,0x4FC9,0xB8,0x01,0xF0,0x48,0xC4,0x6A,0xC5,0x70);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList4,0x8754318e,0xd3a9,0x4541,0x98,0xcf,0x64,0x5b,0x50,0xdc,0x48,0x74);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12ShaderCacheSession,0x28e2495d,0x0f64,0x4ae4,0xa6,0xec,0x12,0x92,0x55,0xdc,0x49,0xa8);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device9,0x4c80e962,0xf032,0x4f60,0xbc,0x9e,0xeb,0xc2,0xcf,0xa1,0xd8,0x3c);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device10,0x517f8718,0xaa66,0x49f9,0xb0,0x2b,0xa7,0xab,0x89,0xc0,0x60,0x31);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device11,0x5405c344,0xd457,0x444e,0xb4,0xdd,0x23,0x66,0xe4,0x5a,0xee,0x39);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device12,0x5af5c532,0x4c91,0x4cd0,0xb5,0x41,0x15,0xa4,0x05,0x39,0x5f,0xc5);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device13,0x14eecffc,0x4df8,0x40f7,0xa1,0x18,0x5c,0x81,0x6f,0x45,0x69,0x5e);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Device14,0x5f6e592d,0xd895,0x44c2,0x8e,0x4a,0x88,0xad,0x49,0x26,0xd3,0x23);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VirtualizationGuestDevice,0xbc66d368,0x7373,0x4943,0x87,0x57,0xfc,0x87,0xdc,0x79,0xe4,0x76);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Tools,0x7071e1f0,0xe84b,0x4b33,0x97,0x4f,0x12,0xfa,0x49,0xde,0x65,0xc5);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Tools1,0xe4fbc019,0xdd3c,0x43e1,0x8f,0x32,0x7f,0x64,0x95,0x75,0xf0,0xa0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Tools2,0x01d393c5,0xc9b0,0x42a1,0x95,0x8c,0xc2,0x6b,0x02,0xd4,0xd0,0x97);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12PageableTools,0x8f1359db,0xd8d1,0x42f9,0xb5,0xcf,0x79,0xf4,0xcb,0xad,0x0d,0x3d);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceTools,0x2ea68e9c,0x19c3,0x4e47,0xa1,0x09,0x6c,0xda,0xdf,0xf0,0xac,0xa9);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceTools1,0xe30e9fc7,0xe641,0x4d6e,0x8a,0x81,0x9d,0xd9,0x20,0x6e,0xc4,0x7a);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12SDKConfiguration,0xe9eb5314,0x33aa,0x42b2,0xa7,0x18,0xd7,0x7f,0x58,0xb1,0xf1,0xc7);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12SDKConfiguration1,0x8aaf9303,0xad25,0x48b9,0x9a,0x57,0xd9,0xc3,0x7e,0x00,0x9d,0x9f);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceFactory,0x61f307d3,0xd34e,0x4e7c,0x83,0x74,0x3b,0xa4,0xde,0x23,0xcc,0xcb);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceConfiguration,0x78dbf87b,0xf766,0x422b,0xa6,0x1c,0xc8,0xc4,0x46,0xbd,0xb9,0xad);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DeviceConfiguration1,0xed342442,0x6343,0x4e16,0xbb,0x82,0xa3,0xa5,0x77,0x87,0x4e,0x56);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList5,0x55050859,0x4024,0x474c,0x87,0xf5,0x64,0x72,0xea,0xee,0x44,0xea);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList6,0xc3827890,0xe548,0x4cfa,0x96,0xcf,0x56,0x89,0xa9,0x37,0x0f,0x80);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList7,0xdd171223,0x8b61,0x4769,0x90,0xe3,0x16,0x0c,0xcd,0xe4,0xe2,0xc1);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList8,0xee936ef9,0x599d,0x4d28,0x93,0x8e,0x23,0xc4,0xad,0x05,0xce,0x51);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList9,0x34ed2808,0xffe6,0x4c2b,0xb1,0x1a,0xca,0xbd,0x2b,0x0c,0x59,0xe1);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GraphicsCommandList10,0x7013c015,0xd161,0x4b63,0xa0,0x8c,0x23,0x85,0x52,0xdd,0x8a,0xcc);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DSRDeviceFactory,0xf343d1a0,0xafe3,0x439f,0xb1,0x3d,0xcd,0x87,0xa4,0x3b,0x70,0xca);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12GBVDiagnostics,0x597985ab,0x9b75,0x4dbb,0xbe,0x23,0x07,0x61,0x19,0x5b,0xeb,0xee);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12compatibility.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12compatibility.h new file mode 100644 index 0000000000000000000000000000000000000000..13bdada33274e988104af3687cfb433e6e9608bb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12compatibility.h @@ -0,0 +1,899 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d12compatibility_h__ +#define __d3d12compatibility_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D12CompatibilityDevice_FWD_DEFINED__ +#define __ID3D12CompatibilityDevice_FWD_DEFINED__ +typedef interface ID3D12CompatibilityDevice ID3D12CompatibilityDevice; + +#endif /* __ID3D12CompatibilityDevice_FWD_DEFINED__ */ + + +#ifndef __D3D11On12CreatorID_FWD_DEFINED__ +#define __D3D11On12CreatorID_FWD_DEFINED__ +typedef interface D3D11On12CreatorID D3D11On12CreatorID; + +#endif /* __D3D11On12CreatorID_FWD_DEFINED__ */ + + +#ifndef __D3D9On12CreatorID_FWD_DEFINED__ +#define __D3D9On12CreatorID_FWD_DEFINED__ +typedef interface D3D9On12CreatorID D3D9On12CreatorID; + +#endif /* __D3D9On12CreatorID_FWD_DEFINED__ */ + + +#ifndef __OpenGLOn12CreatorID_FWD_DEFINED__ +#define __OpenGLOn12CreatorID_FWD_DEFINED__ +typedef interface OpenGLOn12CreatorID OpenGLOn12CreatorID; + +#endif /* __OpenGLOn12CreatorID_FWD_DEFINED__ */ + + +#ifndef __OpenCLOn12CreatorID_FWD_DEFINED__ +#define __OpenCLOn12CreatorID_FWD_DEFINED__ +typedef interface OpenCLOn12CreatorID OpenCLOn12CreatorID; + +#endif /* __OpenCLOn12CreatorID_FWD_DEFINED__ */ + + +#ifndef __VulkanOn12CreatorID_FWD_DEFINED__ +#define __VulkanOn12CreatorID_FWD_DEFINED__ +typedef interface VulkanOn12CreatorID VulkanOn12CreatorID; + +#endif /* __VulkanOn12CreatorID_FWD_DEFINED__ */ + + +#ifndef __DirectMLTensorFlowCreatorID_FWD_DEFINED__ +#define __DirectMLTensorFlowCreatorID_FWD_DEFINED__ +typedef interface DirectMLTensorFlowCreatorID DirectMLTensorFlowCreatorID; + +#endif /* __DirectMLTensorFlowCreatorID_FWD_DEFINED__ */ + + +#ifndef __DirectMLPyTorchCreatorID_FWD_DEFINED__ +#define __DirectMLPyTorchCreatorID_FWD_DEFINED__ +typedef interface DirectMLPyTorchCreatorID DirectMLPyTorchCreatorID; + +#endif /* __DirectMLPyTorchCreatorID_FWD_DEFINED__ */ + + +#ifndef __DirectMLWebNNCreatorID_FWD_DEFINED__ +#define __DirectMLWebNNCreatorID_FWD_DEFINED__ +typedef interface DirectMLWebNNCreatorID DirectMLWebNNCreatorID; + +#endif /* __DirectMLWebNNCreatorID_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "d3d11on12.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d12compatibility_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) +typedef +enum D3D12_COMPATIBILITY_SHARED_FLAGS + { + D3D12_COMPATIBILITY_SHARED_FLAG_NONE = 0, + D3D12_COMPATIBILITY_SHARED_FLAG_NON_NT_HANDLE = 0x1, + D3D12_COMPATIBILITY_SHARED_FLAG_KEYED_MUTEX = 0x2, + D3D12_COMPATIBILITY_SHARED_FLAG_9_ON_12 = 0x4 + } D3D12_COMPATIBILITY_SHARED_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMPATIBILITY_SHARED_FLAGS ) +typedef +enum D3D12_REFLECT_SHARED_PROPERTY + { + D3D12_REFLECT_SHARED_PROPERTY_D3D11_RESOURCE_FLAGS = 0, + D3D12_REFELCT_SHARED_PROPERTY_COMPATIBILITY_SHARED_FLAGS = ( D3D12_REFLECT_SHARED_PROPERTY_D3D11_RESOURCE_FLAGS + 1 ) , + D3D12_REFLECT_SHARED_PROPERTY_NON_NT_SHARED_HANDLE = ( D3D12_REFELCT_SHARED_PROPERTY_COMPATIBILITY_SHARED_FLAGS + 1 ) + } D3D12_REFLECT_SHARED_PROPERTY; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12compatibility_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12compatibility_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D12CompatibilityDevice_INTERFACE_DEFINED__ +#define __ID3D12CompatibilityDevice_INTERFACE_DEFINED__ + +/* interface ID3D12CompatibilityDevice */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12CompatibilityDevice; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8f1c0e3c-fae3-4a82-b098-bfe1708207ff") + ID3D12CompatibilityDevice : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateSharedResource( + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ const D3D11_RESOURCE_FLAGS *pFlags11, + D3D12_COMPATIBILITY_SHARED_FLAGS CompatibilityFlags, + _In_opt_ ID3D12LifetimeTracker *pLifetimeTracker, + _In_opt_ ID3D12SwapChainAssistant *pOwningSwapchain, + REFIID riid, + _COM_Outptr_opt_ void **ppResource) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSharedHeap( + _In_ const D3D12_HEAP_DESC *pHeapDesc, + D3D12_COMPATIBILITY_SHARED_FLAGS CompatibilityFlags, + REFIID riid, + _COM_Outptr_opt_ void **ppHeap) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReflectSharedProperties( + _In_ ID3D12Object *pHeapOrResource, + D3D12_REFLECT_SHARED_PROPERTY ReflectType, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12CompatibilityDeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12CompatibilityDevice * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12CompatibilityDevice * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12CompatibilityDevice * This); + + DECLSPEC_XFGVIRT(ID3D12CompatibilityDevice, CreateSharedResource) + HRESULT ( STDMETHODCALLTYPE *CreateSharedResource )( + ID3D12CompatibilityDevice * This, + _In_ const D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + _In_ const D3D12_RESOURCE_DESC *pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + _In_opt_ const D3D12_CLEAR_VALUE *pOptimizedClearValue, + _In_opt_ const D3D11_RESOURCE_FLAGS *pFlags11, + D3D12_COMPATIBILITY_SHARED_FLAGS CompatibilityFlags, + _In_opt_ ID3D12LifetimeTracker *pLifetimeTracker, + _In_opt_ ID3D12SwapChainAssistant *pOwningSwapchain, + REFIID riid, + _COM_Outptr_opt_ void **ppResource); + + DECLSPEC_XFGVIRT(ID3D12CompatibilityDevice, CreateSharedHeap) + HRESULT ( STDMETHODCALLTYPE *CreateSharedHeap )( + ID3D12CompatibilityDevice * This, + _In_ const D3D12_HEAP_DESC *pHeapDesc, + D3D12_COMPATIBILITY_SHARED_FLAGS CompatibilityFlags, + REFIID riid, + _COM_Outptr_opt_ void **ppHeap); + + DECLSPEC_XFGVIRT(ID3D12CompatibilityDevice, ReflectSharedProperties) + HRESULT ( STDMETHODCALLTYPE *ReflectSharedProperties )( + ID3D12CompatibilityDevice * This, + _In_ ID3D12Object *pHeapOrResource, + D3D12_REFLECT_SHARED_PROPERTY ReflectType, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize); + + END_INTERFACE + } ID3D12CompatibilityDeviceVtbl; + + interface ID3D12CompatibilityDevice + { + CONST_VTBL struct ID3D12CompatibilityDeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12CompatibilityDevice_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12CompatibilityDevice_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12CompatibilityDevice_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12CompatibilityDevice_CreateSharedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pFlags11,CompatibilityFlags,pLifetimeTracker,pOwningSwapchain,riid,ppResource) \ + ( (This)->lpVtbl -> CreateSharedResource(This,pHeapProperties,HeapFlags,pDesc,InitialResourceState,pOptimizedClearValue,pFlags11,CompatibilityFlags,pLifetimeTracker,pOwningSwapchain,riid,ppResource) ) + +#define ID3D12CompatibilityDevice_CreateSharedHeap(This,pHeapDesc,CompatibilityFlags,riid,ppHeap) \ + ( (This)->lpVtbl -> CreateSharedHeap(This,pHeapDesc,CompatibilityFlags,riid,ppHeap) ) + +#define ID3D12CompatibilityDevice_ReflectSharedProperties(This,pHeapOrResource,ReflectType,pData,DataSize) \ + ( (This)->lpVtbl -> ReflectSharedProperties(This,pHeapOrResource,ReflectType,pData,DataSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12CompatibilityDevice_INTERFACE_DEFINED__ */ + + +#ifndef __D3D11On12CreatorID_INTERFACE_DEFINED__ +#define __D3D11On12CreatorID_INTERFACE_DEFINED__ + +/* interface D3D11On12CreatorID */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_D3D11On12CreatorID; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("edbf5678-2960-4e81-8429-99d4b2630c4e") + D3D11On12CreatorID : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct D3D11On12CreatorIDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + D3D11On12CreatorID * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + D3D11On12CreatorID * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + D3D11On12CreatorID * This); + + END_INTERFACE + } D3D11On12CreatorIDVtbl; + + interface D3D11On12CreatorID + { + CONST_VTBL struct D3D11On12CreatorIDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define D3D11On12CreatorID_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define D3D11On12CreatorID_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define D3D11On12CreatorID_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __D3D11On12CreatorID_INTERFACE_DEFINED__ */ + + +#ifndef __D3D9On12CreatorID_INTERFACE_DEFINED__ +#define __D3D9On12CreatorID_INTERFACE_DEFINED__ + +/* interface D3D9On12CreatorID */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_D3D9On12CreatorID; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fffcbb7f-15d3-42a2-841e-9d8d32f37ddd") + D3D9On12CreatorID : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct D3D9On12CreatorIDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + D3D9On12CreatorID * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + D3D9On12CreatorID * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + D3D9On12CreatorID * This); + + END_INTERFACE + } D3D9On12CreatorIDVtbl; + + interface D3D9On12CreatorID + { + CONST_VTBL struct D3D9On12CreatorIDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define D3D9On12CreatorID_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define D3D9On12CreatorID_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define D3D9On12CreatorID_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __D3D9On12CreatorID_INTERFACE_DEFINED__ */ + + +#ifndef __OpenGLOn12CreatorID_INTERFACE_DEFINED__ +#define __OpenGLOn12CreatorID_INTERFACE_DEFINED__ + +/* interface OpenGLOn12CreatorID */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_OpenGLOn12CreatorID; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6bb3cd34-0d19-45ab-97ed-d720ba3dfc80") + OpenGLOn12CreatorID : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct OpenGLOn12CreatorIDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + OpenGLOn12CreatorID * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + OpenGLOn12CreatorID * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + OpenGLOn12CreatorID * This); + + END_INTERFACE + } OpenGLOn12CreatorIDVtbl; + + interface OpenGLOn12CreatorID + { + CONST_VTBL struct OpenGLOn12CreatorIDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define OpenGLOn12CreatorID_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define OpenGLOn12CreatorID_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define OpenGLOn12CreatorID_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __OpenGLOn12CreatorID_INTERFACE_DEFINED__ */ + + +#ifndef __OpenCLOn12CreatorID_INTERFACE_DEFINED__ +#define __OpenCLOn12CreatorID_INTERFACE_DEFINED__ + +/* interface OpenCLOn12CreatorID */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_OpenCLOn12CreatorID; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3f76bb74-91b5-4a88-b126-20ca0331cd60") + OpenCLOn12CreatorID : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct OpenCLOn12CreatorIDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + OpenCLOn12CreatorID * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + OpenCLOn12CreatorID * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + OpenCLOn12CreatorID * This); + + END_INTERFACE + } OpenCLOn12CreatorIDVtbl; + + interface OpenCLOn12CreatorID + { + CONST_VTBL struct OpenCLOn12CreatorIDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define OpenCLOn12CreatorID_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define OpenCLOn12CreatorID_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define OpenCLOn12CreatorID_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __OpenCLOn12CreatorID_INTERFACE_DEFINED__ */ + + +#ifndef __VulkanOn12CreatorID_INTERFACE_DEFINED__ +#define __VulkanOn12CreatorID_INTERFACE_DEFINED__ + +/* interface VulkanOn12CreatorID */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_VulkanOn12CreatorID; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bc806e01-3052-406c-a3e8-9fc07f048f98") + VulkanOn12CreatorID : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct VulkanOn12CreatorIDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + VulkanOn12CreatorID * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + VulkanOn12CreatorID * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + VulkanOn12CreatorID * This); + + END_INTERFACE + } VulkanOn12CreatorIDVtbl; + + interface VulkanOn12CreatorID + { + CONST_VTBL struct VulkanOn12CreatorIDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define VulkanOn12CreatorID_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define VulkanOn12CreatorID_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define VulkanOn12CreatorID_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __VulkanOn12CreatorID_INTERFACE_DEFINED__ */ + + +#ifndef __DirectMLTensorFlowCreatorID_INTERFACE_DEFINED__ +#define __DirectMLTensorFlowCreatorID_INTERFACE_DEFINED__ + +/* interface DirectMLTensorFlowCreatorID */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_DirectMLTensorFlowCreatorID; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cb7490ac-8a0f-44ec-9b7b-6f4cafe8e9ab") + DirectMLTensorFlowCreatorID : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct DirectMLTensorFlowCreatorIDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + DirectMLTensorFlowCreatorID * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + DirectMLTensorFlowCreatorID * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + DirectMLTensorFlowCreatorID * This); + + END_INTERFACE + } DirectMLTensorFlowCreatorIDVtbl; + + interface DirectMLTensorFlowCreatorID + { + CONST_VTBL struct DirectMLTensorFlowCreatorIDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DirectMLTensorFlowCreatorID_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DirectMLTensorFlowCreatorID_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DirectMLTensorFlowCreatorID_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DirectMLTensorFlowCreatorID_INTERFACE_DEFINED__ */ + + +#ifndef __DirectMLPyTorchCreatorID_INTERFACE_DEFINED__ +#define __DirectMLPyTorchCreatorID_INTERFACE_DEFINED__ + +/* interface DirectMLPyTorchCreatorID */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_DirectMLPyTorchCreatorID; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("af029192-fba1-4b05-9116-235e06560354") + DirectMLPyTorchCreatorID : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct DirectMLPyTorchCreatorIDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + DirectMLPyTorchCreatorID * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + DirectMLPyTorchCreatorID * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + DirectMLPyTorchCreatorID * This); + + END_INTERFACE + } DirectMLPyTorchCreatorIDVtbl; + + interface DirectMLPyTorchCreatorID + { + CONST_VTBL struct DirectMLPyTorchCreatorIDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DirectMLPyTorchCreatorID_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DirectMLPyTorchCreatorID_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DirectMLPyTorchCreatorID_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DirectMLPyTorchCreatorID_INTERFACE_DEFINED__ */ + + +#ifndef __DirectMLWebNNCreatorID_INTERFACE_DEFINED__ +#define __DirectMLWebNNCreatorID_INTERFACE_DEFINED__ + +/* interface DirectMLWebNNCreatorID */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_DirectMLWebNNCreatorID; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fdf01a76-1e11-450f-902b-74f04ea08094") + DirectMLWebNNCreatorID : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct DirectMLWebNNCreatorIDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + DirectMLWebNNCreatorID * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + DirectMLWebNNCreatorID * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + DirectMLWebNNCreatorID * This); + + END_INTERFACE + } DirectMLWebNNCreatorIDVtbl; + + interface DirectMLWebNNCreatorID + { + CONST_VTBL struct DirectMLWebNNCreatorIDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DirectMLWebNNCreatorID_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DirectMLWebNNCreatorID_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DirectMLWebNNCreatorID_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DirectMLWebNNCreatorID_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12compatibility_0000_0009 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion +DEFINE_GUID(IID_ID3D12CompatibilityDevice,0x8f1c0e3c,0xfae3,0x4a82,0xb0,0x98,0xbf,0xe1,0x70,0x82,0x07,0xff); +DEFINE_GUID(IID_D3D11On12CreatorID,0xedbf5678,0x2960,0x4e81,0x84,0x29,0x99,0xd4,0xb2,0x63,0x0c,0x4e); +DEFINE_GUID(IID_D3D9On12CreatorID,0xfffcbb7f,0x15d3,0x42a2,0x84,0x1e,0x9d,0x8d,0x32,0xf3,0x7d,0xdd); +DEFINE_GUID(IID_OpenGLOn12CreatorID,0x6bb3cd34,0x0d19,0x45ab,0x97,0xed,0xd7,0x20,0xba,0x3d,0xfc,0x80); +DEFINE_GUID(IID_OpenCLOn12CreatorID,0x3f76bb74,0x91b5,0x4a88,0xb1,0x26,0x20,0xca,0x03,0x31,0xcd,0x60); +DEFINE_GUID(IID_VulkanOn12CreatorID,0xbc806e01,0x3052,0x406c,0xa3,0xe8,0x9f,0xc0,0x7f,0x04,0x8f,0x98); +DEFINE_GUID(IID_DirectMLTensorFlowCreatorID,0xcb7490ac,0x8a0f,0x44ec,0x9b,0x7b,0x6f,0x4c,0xaf,0xe8,0xe9,0xab); +DEFINE_GUID(IID_DirectMLPyTorchCreatorID,0xaf029192,0xfba1,0x4b05,0x91,0x16,0x23,0x5e,0x06,0x56,0x03,0x54); +DEFINE_GUID(IID_DirectMLWebNNCreatorID,0xfdf01a76,0x1e11,0x450f,0x90,0x2b,0x74,0xf0,0x4e,0xa0,0x80,0x94); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12compatibility_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12compatibility_0000_0009_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12compatibility.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12compatibility.idl new file mode 100644 index 0000000000000000000000000000000000000000..516a149c02cebe441b5eac0b83290f6312cc70d9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12compatibility.idl @@ -0,0 +1,100 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ +import "oaidl.idl"; +import "ocidl.idl"; + +import "d3d11on12.idl"; + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)") + +typedef enum D3D12_COMPATIBILITY_SHARED_FLAGS +{ + D3D12_COMPATIBILITY_SHARED_FLAG_NONE = 0, + D3D12_COMPATIBILITY_SHARED_FLAG_NON_NT_HANDLE = 0x1, + D3D12_COMPATIBILITY_SHARED_FLAG_KEYED_MUTEX = 0x2, + D3D12_COMPATIBILITY_SHARED_FLAG_9_ON_12 = 0x4, + +} D3D12_COMPATIBILITY_SHARED_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_COMPATIBILITY_SHARED_FLAGS )" ) + +typedef enum D3D12_REFLECT_SHARED_PROPERTY +{ + D3D12_REFLECT_SHARED_PROPERTY_D3D11_RESOURCE_FLAGS, // D3D11_RESOURCE_FLAGS + D3D12_REFELCT_SHARED_PROPERTY_COMPATIBILITY_SHARED_FLAGS, // D3D12_COMPATIBILITY_SHARED_FLAGS + D3D12_REFLECT_SHARED_PROPERTY_NON_NT_SHARED_HANDLE, // HANDLE +} D3D12_REFLECT_SHARED_PROPERTY; + +[ uuid( 8f1c0e3c-fae3-4a82-b098-bfe1708207ff ), object, local, pointer_default( unique ) ] +interface ID3D12CompatibilityDevice + : IUnknown +{ + HRESULT CreateSharedResource( + [annotation("_In_")] const D3D12_HEAP_PROPERTIES* pHeapProperties, + D3D12_HEAP_FLAGS HeapFlags, + [annotation("_In_")] const D3D12_RESOURCE_DESC* pDesc, + D3D12_RESOURCE_STATES InitialResourceState, + [annotation("_In_opt_")] const D3D12_CLEAR_VALUE* pOptimizedClearValue, + [annotation("_In_opt_")] const D3D11_RESOURCE_FLAGS* pFlags11, + D3D12_COMPATIBILITY_SHARED_FLAGS CompatibilityFlags, + [annotation("_In_opt_")] ID3D12LifetimeTracker* pLifetimeTracker, + [annotation("_In_opt_")] ID3D12SwapChainAssistant* pOwningSwapchain, + REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppResource); + + HRESULT CreateSharedHeap( + [annotation("_In_")] const D3D12_HEAP_DESC* pHeapDesc, + D3D12_COMPATIBILITY_SHARED_FLAGS CompatibilityFlags, + REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppHeap); + + HRESULT ReflectSharedProperties( + [annotation("_In_")] ID3D12Object* pHeapOrResource, + D3D12_REFLECT_SHARED_PROPERTY ReflectType, + [annotation("_Out_writes_bytes_(DataSize)")] void* pData, + UINT DataSize); +} + +[uuid(edbf5678-2960-4e81-8429-99d4b2630c4e), object, local, pointer_default(unique)] +interface D3D11On12CreatorID : IUnknown { }; + +[uuid(fffcbb7f-15d3-42a2-841e-9d8d32f37ddd), object, local, pointer_default(unique)] +interface D3D9On12CreatorID : IUnknown { }; + +[uuid(6bb3cd34-0d19-45ab-97ed-d720ba3dfc80), object, local, pointer_default(unique)] +interface OpenGLOn12CreatorID : IUnknown { }; + +[uuid(3f76bb74-91b5-4a88-b126-20ca0331cd60), object, local, pointer_default(unique)] +interface OpenCLOn12CreatorID : IUnknown { }; + +[uuid(bc806e01-3052-406c-a3e8-9fc07f048f98), object, local, pointer_default(unique)] +interface VulkanOn12CreatorID : IUnknown { }; + +[uuid(cb7490ac-8a0f-44ec-9b7b-6f4cafe8e9ab), object, local, pointer_default(unique)] +interface DirectMLTensorFlowCreatorID : IUnknown { }; + +[uuid(af029192-fba1-4b05-9116-235e06560354), object, local, pointer_default(unique)] +interface DirectMLPyTorchCreatorID : IUnknown { }; + +[uuid(fdf01a76-1e11-450f-902b-74f04ea08094), object, local, pointer_default(unique)] +interface DirectMLWebNNCreatorID : IUnknown { }; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */") +#pragma endregion + +cpp_quote( "DEFINE_GUID(IID_ID3D12CompatibilityDevice,0x8f1c0e3c,0xfae3,0x4a82,0xb0,0x98,0xbf,0xe1,0x70,0x82,0x07,0xff);" ) +cpp_quote( "DEFINE_GUID(IID_D3D11On12CreatorID,0xedbf5678,0x2960,0x4e81,0x84,0x29,0x99,0xd4,0xb2,0x63,0x0c,0x4e);" ) +cpp_quote( "DEFINE_GUID(IID_D3D9On12CreatorID,0xfffcbb7f,0x15d3,0x42a2,0x84,0x1e,0x9d,0x8d,0x32,0xf3,0x7d,0xdd);" ) +cpp_quote( "DEFINE_GUID(IID_OpenGLOn12CreatorID,0x6bb3cd34,0x0d19,0x45ab,0x97,0xed,0xd7,0x20,0xba,0x3d,0xfc,0x80);" ) +cpp_quote( "DEFINE_GUID(IID_OpenCLOn12CreatorID,0x3f76bb74,0x91b5,0x4a88,0xb1,0x26,0x20,0xca,0x03,0x31,0xcd,0x60);" ) +cpp_quote( "DEFINE_GUID(IID_VulkanOn12CreatorID,0xbc806e01,0x3052,0x406c,0xa3,0xe8,0x9f,0xc0,0x7f,0x04,0x8f,0x98);" ) +cpp_quote( "DEFINE_GUID(IID_DirectMLTensorFlowCreatorID,0xcb7490ac,0x8a0f,0x44ec,0x9b,0x7b,0x6f,0x4c,0xaf,0xe8,0xe9,0xab);" ) +cpp_quote( "DEFINE_GUID(IID_DirectMLPyTorchCreatorID,0xaf029192,0xfba1,0x4b05,0x91,0x16,0x23,0x5e,0x06,0x56,0x03,0x54);" ) +cpp_quote( "DEFINE_GUID(IID_DirectMLWebNNCreatorID,0xfdf01a76,0x1e11,0x450f,0x90,0x2b,0x74,0xf0,0x4e,0xa0,0x80,0x94);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12sdklayers.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12sdklayers.h new file mode 100644 index 0000000000000000000000000000000000000000..12c1fc36c643332ec2344ae78e463e398b6685ef --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12sdklayers.h @@ -0,0 +1,4278 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d12sdklayers_h__ +#define __d3d12sdklayers_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D12Debug_FWD_DEFINED__ +#define __ID3D12Debug_FWD_DEFINED__ +typedef interface ID3D12Debug ID3D12Debug; + +#endif /* __ID3D12Debug_FWD_DEFINED__ */ + + +#ifndef __ID3D12Debug1_FWD_DEFINED__ +#define __ID3D12Debug1_FWD_DEFINED__ +typedef interface ID3D12Debug1 ID3D12Debug1; + +#endif /* __ID3D12Debug1_FWD_DEFINED__ */ + + +#ifndef __ID3D12Debug2_FWD_DEFINED__ +#define __ID3D12Debug2_FWD_DEFINED__ +typedef interface ID3D12Debug2 ID3D12Debug2; + +#endif /* __ID3D12Debug2_FWD_DEFINED__ */ + + +#ifndef __ID3D12Debug3_FWD_DEFINED__ +#define __ID3D12Debug3_FWD_DEFINED__ +typedef interface ID3D12Debug3 ID3D12Debug3; + +#endif /* __ID3D12Debug3_FWD_DEFINED__ */ + + +#ifndef __ID3D12Debug4_FWD_DEFINED__ +#define __ID3D12Debug4_FWD_DEFINED__ +typedef interface ID3D12Debug4 ID3D12Debug4; + +#endif /* __ID3D12Debug4_FWD_DEFINED__ */ + + +#ifndef __ID3D12Debug5_FWD_DEFINED__ +#define __ID3D12Debug5_FWD_DEFINED__ +typedef interface ID3D12Debug5 ID3D12Debug5; + +#endif /* __ID3D12Debug5_FWD_DEFINED__ */ + + +#ifndef __ID3D12Debug6_FWD_DEFINED__ +#define __ID3D12Debug6_FWD_DEFINED__ +typedef interface ID3D12Debug6 ID3D12Debug6; + +#endif /* __ID3D12Debug6_FWD_DEFINED__ */ + + +#ifndef __ID3D12DebugDevice1_FWD_DEFINED__ +#define __ID3D12DebugDevice1_FWD_DEFINED__ +typedef interface ID3D12DebugDevice1 ID3D12DebugDevice1; + +#endif /* __ID3D12DebugDevice1_FWD_DEFINED__ */ + + +#ifndef __ID3D12DebugDevice_FWD_DEFINED__ +#define __ID3D12DebugDevice_FWD_DEFINED__ +typedef interface ID3D12DebugDevice ID3D12DebugDevice; + +#endif /* __ID3D12DebugDevice_FWD_DEFINED__ */ + + +#ifndef __ID3D12DebugDevice2_FWD_DEFINED__ +#define __ID3D12DebugDevice2_FWD_DEFINED__ +typedef interface ID3D12DebugDevice2 ID3D12DebugDevice2; + +#endif /* __ID3D12DebugDevice2_FWD_DEFINED__ */ + + +#ifndef __ID3D12DebugCommandQueue_FWD_DEFINED__ +#define __ID3D12DebugCommandQueue_FWD_DEFINED__ +typedef interface ID3D12DebugCommandQueue ID3D12DebugCommandQueue; + +#endif /* __ID3D12DebugCommandQueue_FWD_DEFINED__ */ + + +#ifndef __ID3D12DebugCommandQueue1_FWD_DEFINED__ +#define __ID3D12DebugCommandQueue1_FWD_DEFINED__ +typedef interface ID3D12DebugCommandQueue1 ID3D12DebugCommandQueue1; + +#endif /* __ID3D12DebugCommandQueue1_FWD_DEFINED__ */ + + +#ifndef __ID3D12DebugCommandList1_FWD_DEFINED__ +#define __ID3D12DebugCommandList1_FWD_DEFINED__ +typedef interface ID3D12DebugCommandList1 ID3D12DebugCommandList1; + +#endif /* __ID3D12DebugCommandList1_FWD_DEFINED__ */ + + +#ifndef __ID3D12DebugCommandList_FWD_DEFINED__ +#define __ID3D12DebugCommandList_FWD_DEFINED__ +typedef interface ID3D12DebugCommandList ID3D12DebugCommandList; + +#endif /* __ID3D12DebugCommandList_FWD_DEFINED__ */ + + +#ifndef __ID3D12DebugCommandList2_FWD_DEFINED__ +#define __ID3D12DebugCommandList2_FWD_DEFINED__ +typedef interface ID3D12DebugCommandList2 ID3D12DebugCommandList2; + +#endif /* __ID3D12DebugCommandList2_FWD_DEFINED__ */ + + +#ifndef __ID3D12DebugCommandList3_FWD_DEFINED__ +#define __ID3D12DebugCommandList3_FWD_DEFINED__ +typedef interface ID3D12DebugCommandList3 ID3D12DebugCommandList3; + +#endif /* __ID3D12DebugCommandList3_FWD_DEFINED__ */ + + +#ifndef __ID3D12SharingContract_FWD_DEFINED__ +#define __ID3D12SharingContract_FWD_DEFINED__ +typedef interface ID3D12SharingContract ID3D12SharingContract; + +#endif /* __ID3D12SharingContract_FWD_DEFINED__ */ + + +#ifndef __ID3D12ManualWriteTrackingResource_FWD_DEFINED__ +#define __ID3D12ManualWriteTrackingResource_FWD_DEFINED__ +typedef interface ID3D12ManualWriteTrackingResource ID3D12ManualWriteTrackingResource; + +#endif /* __ID3D12ManualWriteTrackingResource_FWD_DEFINED__ */ + + +#ifndef __ID3D12InfoQueue_FWD_DEFINED__ +#define __ID3D12InfoQueue_FWD_DEFINED__ +typedef interface ID3D12InfoQueue ID3D12InfoQueue; + +#endif /* __ID3D12InfoQueue_FWD_DEFINED__ */ + + +#ifndef __ID3D12InfoQueue1_FWD_DEFINED__ +#define __ID3D12InfoQueue1_FWD_DEFINED__ +typedef interface ID3D12InfoQueue1 ID3D12InfoQueue1; + +#endif /* __ID3D12InfoQueue1_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "d3d12.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d12sdklayers_0000_0000 */ +/* [local] */ + +#include +#pragma region App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D12Debug_INTERFACE_DEFINED__ +#define __ID3D12Debug_INTERFACE_DEFINED__ + +/* interface ID3D12Debug */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Debug; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("344488b7-6846-474b-b989-f027448245e0") + ID3D12Debug : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE EnableDebugLayer( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DebugVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Debug * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Debug * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Debug * This); + + DECLSPEC_XFGVIRT(ID3D12Debug, EnableDebugLayer) + void ( STDMETHODCALLTYPE *EnableDebugLayer )( + ID3D12Debug * This); + + END_INTERFACE + } ID3D12DebugVtbl; + + interface ID3D12Debug + { + CONST_VTBL struct ID3D12DebugVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Debug_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Debug_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Debug_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Debug_EnableDebugLayer(This) \ + ( (This)->lpVtbl -> EnableDebugLayer(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Debug_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12sdklayers_0000_0001 */ +/* [local] */ + +typedef +enum D3D12_GPU_BASED_VALIDATION_FLAGS + { + D3D12_GPU_BASED_VALIDATION_FLAGS_NONE = 0, + D3D12_GPU_BASED_VALIDATION_FLAGS_DISABLE_STATE_TRACKING = 0x1 + } D3D12_GPU_BASED_VALIDATION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_GPU_BASED_VALIDATION_FLAGS) + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0001_v0_0_s_ifspec; + +#ifndef __ID3D12Debug1_INTERFACE_DEFINED__ +#define __ID3D12Debug1_INTERFACE_DEFINED__ + +/* interface ID3D12Debug1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Debug1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("affaa4ca-63fe-4d8e-b8ad-159000af4304") + ID3D12Debug1 : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE EnableDebugLayer( void) = 0; + + virtual void STDMETHODCALLTYPE SetEnableGPUBasedValidation( + BOOL Enable) = 0; + + virtual void STDMETHODCALLTYPE SetEnableSynchronizedCommandQueueValidation( + BOOL Enable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Debug1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Debug1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Debug1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Debug1 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug1, EnableDebugLayer) + void ( STDMETHODCALLTYPE *EnableDebugLayer )( + ID3D12Debug1 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug1, SetEnableGPUBasedValidation) + void ( STDMETHODCALLTYPE *SetEnableGPUBasedValidation )( + ID3D12Debug1 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Debug1, SetEnableSynchronizedCommandQueueValidation) + void ( STDMETHODCALLTYPE *SetEnableSynchronizedCommandQueueValidation )( + ID3D12Debug1 * This, + BOOL Enable); + + END_INTERFACE + } ID3D12Debug1Vtbl; + + interface ID3D12Debug1 + { + CONST_VTBL struct ID3D12Debug1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Debug1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Debug1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Debug1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Debug1_EnableDebugLayer(This) \ + ( (This)->lpVtbl -> EnableDebugLayer(This) ) + +#define ID3D12Debug1_SetEnableGPUBasedValidation(This,Enable) \ + ( (This)->lpVtbl -> SetEnableGPUBasedValidation(This,Enable) ) + +#define ID3D12Debug1_SetEnableSynchronizedCommandQueueValidation(This,Enable) \ + ( (This)->lpVtbl -> SetEnableSynchronizedCommandQueueValidation(This,Enable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Debug1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Debug2_INTERFACE_DEFINED__ +#define __ID3D12Debug2_INTERFACE_DEFINED__ + +/* interface ID3D12Debug2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Debug2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("93a665c4-a3b2-4e5d-b692-a26ae14e3374") + ID3D12Debug2 : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE SetGPUBasedValidationFlags( + D3D12_GPU_BASED_VALIDATION_FLAGS Flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Debug2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Debug2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Debug2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Debug2 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug2, SetGPUBasedValidationFlags) + void ( STDMETHODCALLTYPE *SetGPUBasedValidationFlags )( + ID3D12Debug2 * This, + D3D12_GPU_BASED_VALIDATION_FLAGS Flags); + + END_INTERFACE + } ID3D12Debug2Vtbl; + + interface ID3D12Debug2 + { + CONST_VTBL struct ID3D12Debug2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Debug2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Debug2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Debug2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Debug2_SetGPUBasedValidationFlags(This,Flags) \ + ( (This)->lpVtbl -> SetGPUBasedValidationFlags(This,Flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Debug2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Debug3_INTERFACE_DEFINED__ +#define __ID3D12Debug3_INTERFACE_DEFINED__ + +/* interface ID3D12Debug3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Debug3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5cf4e58f-f671-4ff1-a542-3686e3d153d1") + ID3D12Debug3 : public ID3D12Debug + { + public: + virtual void STDMETHODCALLTYPE SetEnableGPUBasedValidation( + BOOL Enable) = 0; + + virtual void STDMETHODCALLTYPE SetEnableSynchronizedCommandQueueValidation( + BOOL Enable) = 0; + + virtual void STDMETHODCALLTYPE SetGPUBasedValidationFlags( + D3D12_GPU_BASED_VALIDATION_FLAGS Flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Debug3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Debug3 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Debug3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Debug3 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug, EnableDebugLayer) + void ( STDMETHODCALLTYPE *EnableDebugLayer )( + ID3D12Debug3 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetEnableGPUBasedValidation) + void ( STDMETHODCALLTYPE *SetEnableGPUBasedValidation )( + ID3D12Debug3 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetEnableSynchronizedCommandQueueValidation) + void ( STDMETHODCALLTYPE *SetEnableSynchronizedCommandQueueValidation )( + ID3D12Debug3 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetGPUBasedValidationFlags) + void ( STDMETHODCALLTYPE *SetGPUBasedValidationFlags )( + ID3D12Debug3 * This, + D3D12_GPU_BASED_VALIDATION_FLAGS Flags); + + END_INTERFACE + } ID3D12Debug3Vtbl; + + interface ID3D12Debug3 + { + CONST_VTBL struct ID3D12Debug3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Debug3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Debug3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Debug3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Debug3_EnableDebugLayer(This) \ + ( (This)->lpVtbl -> EnableDebugLayer(This) ) + + +#define ID3D12Debug3_SetEnableGPUBasedValidation(This,Enable) \ + ( (This)->lpVtbl -> SetEnableGPUBasedValidation(This,Enable) ) + +#define ID3D12Debug3_SetEnableSynchronizedCommandQueueValidation(This,Enable) \ + ( (This)->lpVtbl -> SetEnableSynchronizedCommandQueueValidation(This,Enable) ) + +#define ID3D12Debug3_SetGPUBasedValidationFlags(This,Flags) \ + ( (This)->lpVtbl -> SetGPUBasedValidationFlags(This,Flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Debug3_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Debug4_INTERFACE_DEFINED__ +#define __ID3D12Debug4_INTERFACE_DEFINED__ + +/* interface ID3D12Debug4 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Debug4; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("014b816e-9ec5-4a2f-a845-ffbe441ce13a") + ID3D12Debug4 : public ID3D12Debug3 + { + public: + virtual void STDMETHODCALLTYPE DisableDebugLayer( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Debug4Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Debug4 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Debug4 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Debug4 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug, EnableDebugLayer) + void ( STDMETHODCALLTYPE *EnableDebugLayer )( + ID3D12Debug4 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetEnableGPUBasedValidation) + void ( STDMETHODCALLTYPE *SetEnableGPUBasedValidation )( + ID3D12Debug4 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetEnableSynchronizedCommandQueueValidation) + void ( STDMETHODCALLTYPE *SetEnableSynchronizedCommandQueueValidation )( + ID3D12Debug4 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetGPUBasedValidationFlags) + void ( STDMETHODCALLTYPE *SetGPUBasedValidationFlags )( + ID3D12Debug4 * This, + D3D12_GPU_BASED_VALIDATION_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12Debug4, DisableDebugLayer) + void ( STDMETHODCALLTYPE *DisableDebugLayer )( + ID3D12Debug4 * This); + + END_INTERFACE + } ID3D12Debug4Vtbl; + + interface ID3D12Debug4 + { + CONST_VTBL struct ID3D12Debug4Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Debug4_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Debug4_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Debug4_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Debug4_EnableDebugLayer(This) \ + ( (This)->lpVtbl -> EnableDebugLayer(This) ) + + +#define ID3D12Debug4_SetEnableGPUBasedValidation(This,Enable) \ + ( (This)->lpVtbl -> SetEnableGPUBasedValidation(This,Enable) ) + +#define ID3D12Debug4_SetEnableSynchronizedCommandQueueValidation(This,Enable) \ + ( (This)->lpVtbl -> SetEnableSynchronizedCommandQueueValidation(This,Enable) ) + +#define ID3D12Debug4_SetGPUBasedValidationFlags(This,Flags) \ + ( (This)->lpVtbl -> SetGPUBasedValidationFlags(This,Flags) ) + + +#define ID3D12Debug4_DisableDebugLayer(This) \ + ( (This)->lpVtbl -> DisableDebugLayer(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Debug4_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Debug5_INTERFACE_DEFINED__ +#define __ID3D12Debug5_INTERFACE_DEFINED__ + +/* interface ID3D12Debug5 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Debug5; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("548d6b12-09fa-40e0-9069-5dcd589a52c9") + ID3D12Debug5 : public ID3D12Debug4 + { + public: + virtual void STDMETHODCALLTYPE SetEnableAutoName( + BOOL Enable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Debug5Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Debug5 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Debug5 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Debug5 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug, EnableDebugLayer) + void ( STDMETHODCALLTYPE *EnableDebugLayer )( + ID3D12Debug5 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetEnableGPUBasedValidation) + void ( STDMETHODCALLTYPE *SetEnableGPUBasedValidation )( + ID3D12Debug5 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetEnableSynchronizedCommandQueueValidation) + void ( STDMETHODCALLTYPE *SetEnableSynchronizedCommandQueueValidation )( + ID3D12Debug5 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetGPUBasedValidationFlags) + void ( STDMETHODCALLTYPE *SetGPUBasedValidationFlags )( + ID3D12Debug5 * This, + D3D12_GPU_BASED_VALIDATION_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12Debug4, DisableDebugLayer) + void ( STDMETHODCALLTYPE *DisableDebugLayer )( + ID3D12Debug5 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug5, SetEnableAutoName) + void ( STDMETHODCALLTYPE *SetEnableAutoName )( + ID3D12Debug5 * This, + BOOL Enable); + + END_INTERFACE + } ID3D12Debug5Vtbl; + + interface ID3D12Debug5 + { + CONST_VTBL struct ID3D12Debug5Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Debug5_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Debug5_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Debug5_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Debug5_EnableDebugLayer(This) \ + ( (This)->lpVtbl -> EnableDebugLayer(This) ) + + +#define ID3D12Debug5_SetEnableGPUBasedValidation(This,Enable) \ + ( (This)->lpVtbl -> SetEnableGPUBasedValidation(This,Enable) ) + +#define ID3D12Debug5_SetEnableSynchronizedCommandQueueValidation(This,Enable) \ + ( (This)->lpVtbl -> SetEnableSynchronizedCommandQueueValidation(This,Enable) ) + +#define ID3D12Debug5_SetGPUBasedValidationFlags(This,Flags) \ + ( (This)->lpVtbl -> SetGPUBasedValidationFlags(This,Flags) ) + + +#define ID3D12Debug5_DisableDebugLayer(This) \ + ( (This)->lpVtbl -> DisableDebugLayer(This) ) + + +#define ID3D12Debug5_SetEnableAutoName(This,Enable) \ + ( (This)->lpVtbl -> SetEnableAutoName(This,Enable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Debug5_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12Debug6_INTERFACE_DEFINED__ +#define __ID3D12Debug6_INTERFACE_DEFINED__ + +/* interface ID3D12Debug6 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12Debug6; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("82a816d6-5d01-4157-97d0-4975463fd1ed") + ID3D12Debug6 : public ID3D12Debug5 + { + public: + virtual void STDMETHODCALLTYPE SetForceLegacyBarrierValidation( + BOOL Enable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12Debug6Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12Debug6 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12Debug6 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12Debug6 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug, EnableDebugLayer) + void ( STDMETHODCALLTYPE *EnableDebugLayer )( + ID3D12Debug6 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetEnableGPUBasedValidation) + void ( STDMETHODCALLTYPE *SetEnableGPUBasedValidation )( + ID3D12Debug6 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetEnableSynchronizedCommandQueueValidation) + void ( STDMETHODCALLTYPE *SetEnableSynchronizedCommandQueueValidation )( + ID3D12Debug6 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Debug3, SetGPUBasedValidationFlags) + void ( STDMETHODCALLTYPE *SetGPUBasedValidationFlags )( + ID3D12Debug6 * This, + D3D12_GPU_BASED_VALIDATION_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12Debug4, DisableDebugLayer) + void ( STDMETHODCALLTYPE *DisableDebugLayer )( + ID3D12Debug6 * This); + + DECLSPEC_XFGVIRT(ID3D12Debug5, SetEnableAutoName) + void ( STDMETHODCALLTYPE *SetEnableAutoName )( + ID3D12Debug6 * This, + BOOL Enable); + + DECLSPEC_XFGVIRT(ID3D12Debug6, SetForceLegacyBarrierValidation) + void ( STDMETHODCALLTYPE *SetForceLegacyBarrierValidation )( + ID3D12Debug6 * This, + BOOL Enable); + + END_INTERFACE + } ID3D12Debug6Vtbl; + + interface ID3D12Debug6 + { + CONST_VTBL struct ID3D12Debug6Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12Debug6_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12Debug6_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12Debug6_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12Debug6_EnableDebugLayer(This) \ + ( (This)->lpVtbl -> EnableDebugLayer(This) ) + + +#define ID3D12Debug6_SetEnableGPUBasedValidation(This,Enable) \ + ( (This)->lpVtbl -> SetEnableGPUBasedValidation(This,Enable) ) + +#define ID3D12Debug6_SetEnableSynchronizedCommandQueueValidation(This,Enable) \ + ( (This)->lpVtbl -> SetEnableSynchronizedCommandQueueValidation(This,Enable) ) + +#define ID3D12Debug6_SetGPUBasedValidationFlags(This,Flags) \ + ( (This)->lpVtbl -> SetGPUBasedValidationFlags(This,Flags) ) + + +#define ID3D12Debug6_DisableDebugLayer(This) \ + ( (This)->lpVtbl -> DisableDebugLayer(This) ) + + +#define ID3D12Debug6_SetEnableAutoName(This,Enable) \ + ( (This)->lpVtbl -> SetEnableAutoName(This,Enable) ) + + +#define ID3D12Debug6_SetForceLegacyBarrierValidation(This,Enable) \ + ( (This)->lpVtbl -> SetForceLegacyBarrierValidation(This,Enable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12Debug6_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12sdklayers_0000_0007 */ +/* [local] */ + +DEFINE_GUID(WKPDID_D3DAutoDebugObjectNameW, 0xd4902e36, 0x757a, 0x4942, 0x95, 0x94, 0xb6, 0x76, 0x9a, 0xfa, 0x43, 0xcd); +typedef +enum D3D12_RLDO_FLAGS + { + D3D12_RLDO_NONE = 0, + D3D12_RLDO_SUMMARY = 0x1, + D3D12_RLDO_DETAIL = 0x2, + D3D12_RLDO_IGNORE_INTERNAL = 0x4 + } D3D12_RLDO_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_RLDO_FLAGS) +typedef +enum D3D12_DEBUG_DEVICE_PARAMETER_TYPE + { + D3D12_DEBUG_DEVICE_PARAMETER_FEATURE_FLAGS = 0, + D3D12_DEBUG_DEVICE_PARAMETER_GPU_BASED_VALIDATION_SETTINGS = ( D3D12_DEBUG_DEVICE_PARAMETER_FEATURE_FLAGS + 1 ) , + D3D12_DEBUG_DEVICE_PARAMETER_GPU_SLOWDOWN_PERFORMANCE_FACTOR = ( D3D12_DEBUG_DEVICE_PARAMETER_GPU_BASED_VALIDATION_SETTINGS + 1 ) , + D3D12_DEBUG_DEVICE_PARAMETER_BYTECODE_VALIDATION_MODE = ( D3D12_DEBUG_DEVICE_PARAMETER_GPU_SLOWDOWN_PERFORMANCE_FACTOR + 1 ) + } D3D12_DEBUG_DEVICE_PARAMETER_TYPE; + +typedef +enum D3D12_DEBUG_FEATURE + { + D3D12_DEBUG_FEATURE_NONE = 0, + D3D12_DEBUG_FEATURE_ALLOW_BEHAVIOR_CHANGING_DEBUG_AIDS = 0x1, + D3D12_DEBUG_FEATURE_CONSERVATIVE_RESOURCE_STATE_TRACKING = 0x2, + D3D12_DEBUG_FEATURE_DISABLE_VIRTUALIZED_BUNDLES_VALIDATION = 0x4, + D3D12_DEBUG_FEATURE_EMULATE_WINDOWS7 = 0x8 + } D3D12_DEBUG_FEATURE; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_DEBUG_FEATURE) +typedef +enum D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE + { + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_NONE = 0, + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_STATE_TRACKING_ONLY = ( D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_NONE + 1 ) , + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_UNGUARDED_VALIDATION = ( D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_STATE_TRACKING_ONLY + 1 ) , + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_GUARDED_VALIDATION = ( D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_UNGUARDED_VALIDATION + 1 ) , + NUM_D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODES = ( D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_GUARDED_VALIDATION + 1 ) + } D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE; + +typedef +enum D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS + { + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_NONE = 0, + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_FRONT_LOAD_CREATE_TRACKING_ONLY_SHADERS = 0x1, + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_FRONT_LOAD_CREATE_UNGUARDED_VALIDATION_SHADERS = 0x2, + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_FRONT_LOAD_CREATE_GUARDED_VALIDATION_SHADERS = 0x4, + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS_VALID_MASK = 0x7 + } D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS) +typedef struct D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS + { + UINT MaxMessagesPerCommandList; + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE DefaultShaderPatchMode; + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS PipelineStateCreateFlags; + } D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS; + +typedef struct D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR + { + FLOAT SlowdownFactor; + } D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR; + +typedef +enum D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_MODE + { + D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_DISABLED = 0, + D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_WHEN_HASH_BYPASSED = ( D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_DISABLED + 1 ) , + D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_ALL_BYTECODE = ( D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_WHEN_HASH_BYPASSED + 1 ) , + D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_MODE_DEFAULT = D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_WHEN_HASH_BYPASSED + } D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_MODE; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0007_v0_0_s_ifspec; + +#ifndef __ID3D12DebugDevice1_INTERFACE_DEFINED__ +#define __ID3D12DebugDevice1_INTERFACE_DEFINED__ + +/* interface ID3D12DebugDevice1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DebugDevice1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a9b71770-d099-4a65-a698-3dee10020f88") + ID3D12DebugDevice1 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetDebugParameter( + D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, + _In_reads_bytes_(DataSize) const void *pData, + UINT DataSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDebugParameter( + D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReportLiveDeviceObjects( + D3D12_RLDO_FLAGS Flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DebugDevice1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DebugDevice1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DebugDevice1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DebugDevice1 * This); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice1, SetDebugParameter) + HRESULT ( STDMETHODCALLTYPE *SetDebugParameter )( + ID3D12DebugDevice1 * This, + D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, + _In_reads_bytes_(DataSize) const void *pData, + UINT DataSize); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice1, GetDebugParameter) + HRESULT ( STDMETHODCALLTYPE *GetDebugParameter )( + ID3D12DebugDevice1 * This, + D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice1, ReportLiveDeviceObjects) + HRESULT ( STDMETHODCALLTYPE *ReportLiveDeviceObjects )( + ID3D12DebugDevice1 * This, + D3D12_RLDO_FLAGS Flags); + + END_INTERFACE + } ID3D12DebugDevice1Vtbl; + + interface ID3D12DebugDevice1 + { + CONST_VTBL struct ID3D12DebugDevice1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DebugDevice1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DebugDevice1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DebugDevice1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DebugDevice1_SetDebugParameter(This,Type,pData,DataSize) \ + ( (This)->lpVtbl -> SetDebugParameter(This,Type,pData,DataSize) ) + +#define ID3D12DebugDevice1_GetDebugParameter(This,Type,pData,DataSize) \ + ( (This)->lpVtbl -> GetDebugParameter(This,Type,pData,DataSize) ) + +#define ID3D12DebugDevice1_ReportLiveDeviceObjects(This,Flags) \ + ( (This)->lpVtbl -> ReportLiveDeviceObjects(This,Flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DebugDevice1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DebugDevice_INTERFACE_DEFINED__ +#define __ID3D12DebugDevice_INTERFACE_DEFINED__ + +/* interface ID3D12DebugDevice */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DebugDevice; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3febd6dd-4973-4787-8194-e45f9e28923e") + ID3D12DebugDevice : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetFeatureMask( + D3D12_DEBUG_FEATURE Mask) = 0; + + virtual D3D12_DEBUG_FEATURE STDMETHODCALLTYPE GetFeatureMask( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReportLiveDeviceObjects( + D3D12_RLDO_FLAGS Flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DebugDeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DebugDevice * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DebugDevice * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DebugDevice * This); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice, SetFeatureMask) + HRESULT ( STDMETHODCALLTYPE *SetFeatureMask )( + ID3D12DebugDevice * This, + D3D12_DEBUG_FEATURE Mask); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice, GetFeatureMask) + D3D12_DEBUG_FEATURE ( STDMETHODCALLTYPE *GetFeatureMask )( + ID3D12DebugDevice * This); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice, ReportLiveDeviceObjects) + HRESULT ( STDMETHODCALLTYPE *ReportLiveDeviceObjects )( + ID3D12DebugDevice * This, + D3D12_RLDO_FLAGS Flags); + + END_INTERFACE + } ID3D12DebugDeviceVtbl; + + interface ID3D12DebugDevice + { + CONST_VTBL struct ID3D12DebugDeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DebugDevice_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DebugDevice_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DebugDevice_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DebugDevice_SetFeatureMask(This,Mask) \ + ( (This)->lpVtbl -> SetFeatureMask(This,Mask) ) + +#define ID3D12DebugDevice_GetFeatureMask(This) \ + ( (This)->lpVtbl -> GetFeatureMask(This) ) + +#define ID3D12DebugDevice_ReportLiveDeviceObjects(This,Flags) \ + ( (This)->lpVtbl -> ReportLiveDeviceObjects(This,Flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DebugDevice_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DebugDevice2_INTERFACE_DEFINED__ +#define __ID3D12DebugDevice2_INTERFACE_DEFINED__ + +/* interface ID3D12DebugDevice2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DebugDevice2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("60eccbc1-378d-4df1-894c-f8ac5ce4d7dd") + ID3D12DebugDevice2 : public ID3D12DebugDevice + { + public: + virtual HRESULT STDMETHODCALLTYPE SetDebugParameter( + D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, + _In_reads_bytes_(DataSize) const void *pData, + UINT DataSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDebugParameter( + D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DebugDevice2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DebugDevice2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DebugDevice2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DebugDevice2 * This); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice, SetFeatureMask) + HRESULT ( STDMETHODCALLTYPE *SetFeatureMask )( + ID3D12DebugDevice2 * This, + D3D12_DEBUG_FEATURE Mask); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice, GetFeatureMask) + D3D12_DEBUG_FEATURE ( STDMETHODCALLTYPE *GetFeatureMask )( + ID3D12DebugDevice2 * This); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice, ReportLiveDeviceObjects) + HRESULT ( STDMETHODCALLTYPE *ReportLiveDeviceObjects )( + ID3D12DebugDevice2 * This, + D3D12_RLDO_FLAGS Flags); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice2, SetDebugParameter) + HRESULT ( STDMETHODCALLTYPE *SetDebugParameter )( + ID3D12DebugDevice2 * This, + D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, + _In_reads_bytes_(DataSize) const void *pData, + UINT DataSize); + + DECLSPEC_XFGVIRT(ID3D12DebugDevice2, GetDebugParameter) + HRESULT ( STDMETHODCALLTYPE *GetDebugParameter )( + ID3D12DebugDevice2 * This, + D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize); + + END_INTERFACE + } ID3D12DebugDevice2Vtbl; + + interface ID3D12DebugDevice2 + { + CONST_VTBL struct ID3D12DebugDevice2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DebugDevice2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DebugDevice2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DebugDevice2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DebugDevice2_SetFeatureMask(This,Mask) \ + ( (This)->lpVtbl -> SetFeatureMask(This,Mask) ) + +#define ID3D12DebugDevice2_GetFeatureMask(This) \ + ( (This)->lpVtbl -> GetFeatureMask(This) ) + +#define ID3D12DebugDevice2_ReportLiveDeviceObjects(This,Flags) \ + ( (This)->lpVtbl -> ReportLiveDeviceObjects(This,Flags) ) + + +#define ID3D12DebugDevice2_SetDebugParameter(This,Type,pData,DataSize) \ + ( (This)->lpVtbl -> SetDebugParameter(This,Type,pData,DataSize) ) + +#define ID3D12DebugDevice2_GetDebugParameter(This,Type,pData,DataSize) \ + ( (This)->lpVtbl -> GetDebugParameter(This,Type,pData,DataSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DebugDevice2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12sdklayers_0000_0010 */ +/* [local] */ + +DEFINE_GUID(DXGI_DEBUG_D3D12, 0xcf59a98c, 0xa950, 0x4326, 0x91, 0xef, 0x9b, 0xba, 0xa1, 0x7b, 0xfd, 0x95); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0010_v0_0_s_ifspec; + +#ifndef __ID3D12DebugCommandQueue_INTERFACE_DEFINED__ +#define __ID3D12DebugCommandQueue_INTERFACE_DEFINED__ + +/* interface ID3D12DebugCommandQueue */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DebugCommandQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("09e0bf36-54ac-484f-8847-4baeeab6053a") + ID3D12DebugCommandQueue : public IUnknown + { + public: + virtual BOOL STDMETHODCALLTYPE AssertResourceState( + _In_ ID3D12Resource *pResource, + UINT Subresource, + UINT State) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DebugCommandQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DebugCommandQueue * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DebugCommandQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DebugCommandQueue * This); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandQueue, AssertResourceState) + BOOL ( STDMETHODCALLTYPE *AssertResourceState )( + ID3D12DebugCommandQueue * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + UINT State); + + END_INTERFACE + } ID3D12DebugCommandQueueVtbl; + + interface ID3D12DebugCommandQueue + { + CONST_VTBL struct ID3D12DebugCommandQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DebugCommandQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DebugCommandQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DebugCommandQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DebugCommandQueue_AssertResourceState(This,pResource,Subresource,State) \ + ( (This)->lpVtbl -> AssertResourceState(This,pResource,Subresource,State) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DebugCommandQueue_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DebugCommandQueue1_INTERFACE_DEFINED__ +#define __ID3D12DebugCommandQueue1_INTERFACE_DEFINED__ + +/* interface ID3D12DebugCommandQueue1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DebugCommandQueue1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("16be35a2-bfd6-49f2-bcae-eaae4aff862d") + ID3D12DebugCommandQueue1 : public ID3D12DebugCommandQueue + { + public: + virtual void STDMETHODCALLTYPE AssertResourceAccess( + _In_ ID3D12Resource *pResource, + UINT Subresource, + D3D12_BARRIER_ACCESS Access) = 0; + + virtual void STDMETHODCALLTYPE AssertTextureLayout( + _In_ ID3D12Resource *pResource, + UINT Subresource, + D3D12_BARRIER_LAYOUT Layout) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DebugCommandQueue1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DebugCommandQueue1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DebugCommandQueue1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DebugCommandQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandQueue, AssertResourceState) + BOOL ( STDMETHODCALLTYPE *AssertResourceState )( + ID3D12DebugCommandQueue1 * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + UINT State); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandQueue1, AssertResourceAccess) + void ( STDMETHODCALLTYPE *AssertResourceAccess )( + ID3D12DebugCommandQueue1 * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + D3D12_BARRIER_ACCESS Access); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandQueue1, AssertTextureLayout) + void ( STDMETHODCALLTYPE *AssertTextureLayout )( + ID3D12DebugCommandQueue1 * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + D3D12_BARRIER_LAYOUT Layout); + + END_INTERFACE + } ID3D12DebugCommandQueue1Vtbl; + + interface ID3D12DebugCommandQueue1 + { + CONST_VTBL struct ID3D12DebugCommandQueue1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DebugCommandQueue1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DebugCommandQueue1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DebugCommandQueue1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DebugCommandQueue1_AssertResourceState(This,pResource,Subresource,State) \ + ( (This)->lpVtbl -> AssertResourceState(This,pResource,Subresource,State) ) + + +#define ID3D12DebugCommandQueue1_AssertResourceAccess(This,pResource,Subresource,Access) \ + ( (This)->lpVtbl -> AssertResourceAccess(This,pResource,Subresource,Access) ) + +#define ID3D12DebugCommandQueue1_AssertTextureLayout(This,pResource,Subresource,Layout) \ + ( (This)->lpVtbl -> AssertTextureLayout(This,pResource,Subresource,Layout) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DebugCommandQueue1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12sdklayers_0000_0012 */ +/* [local] */ + +typedef +enum D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE + { + D3D12_DEBUG_COMMAND_LIST_PARAMETER_GPU_BASED_VALIDATION_SETTINGS = 0 + } D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE; + +typedef struct D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS + { + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE ShaderPatchMode; + } D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0012_v0_0_s_ifspec; + +#ifndef __ID3D12DebugCommandList1_INTERFACE_DEFINED__ +#define __ID3D12DebugCommandList1_INTERFACE_DEFINED__ + +/* interface ID3D12DebugCommandList1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DebugCommandList1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("102ca951-311b-4b01-b11f-ecb83e061b37") + ID3D12DebugCommandList1 : public IUnknown + { + public: + virtual BOOL STDMETHODCALLTYPE AssertResourceState( + _In_ ID3D12Resource *pResource, + UINT Subresource, + UINT State) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDebugParameter( + D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, + _In_reads_bytes_(DataSize) const void *pData, + UINT DataSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDebugParameter( + D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DebugCommandList1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DebugCommandList1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DebugCommandList1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DebugCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList1, AssertResourceState) + BOOL ( STDMETHODCALLTYPE *AssertResourceState )( + ID3D12DebugCommandList1 * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + UINT State); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList1, SetDebugParameter) + HRESULT ( STDMETHODCALLTYPE *SetDebugParameter )( + ID3D12DebugCommandList1 * This, + D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, + _In_reads_bytes_(DataSize) const void *pData, + UINT DataSize); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList1, GetDebugParameter) + HRESULT ( STDMETHODCALLTYPE *GetDebugParameter )( + ID3D12DebugCommandList1 * This, + D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize); + + END_INTERFACE + } ID3D12DebugCommandList1Vtbl; + + interface ID3D12DebugCommandList1 + { + CONST_VTBL struct ID3D12DebugCommandList1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DebugCommandList1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DebugCommandList1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DebugCommandList1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DebugCommandList1_AssertResourceState(This,pResource,Subresource,State) \ + ( (This)->lpVtbl -> AssertResourceState(This,pResource,Subresource,State) ) + +#define ID3D12DebugCommandList1_SetDebugParameter(This,Type,pData,DataSize) \ + ( (This)->lpVtbl -> SetDebugParameter(This,Type,pData,DataSize) ) + +#define ID3D12DebugCommandList1_GetDebugParameter(This,Type,pData,DataSize) \ + ( (This)->lpVtbl -> GetDebugParameter(This,Type,pData,DataSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DebugCommandList1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DebugCommandList_INTERFACE_DEFINED__ +#define __ID3D12DebugCommandList_INTERFACE_DEFINED__ + +/* interface ID3D12DebugCommandList */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DebugCommandList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("09e0bf36-54ac-484f-8847-4baeeab6053f") + ID3D12DebugCommandList : public IUnknown + { + public: + virtual BOOL STDMETHODCALLTYPE AssertResourceState( + _In_ ID3D12Resource *pResource, + UINT Subresource, + UINT State) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFeatureMask( + D3D12_DEBUG_FEATURE Mask) = 0; + + virtual D3D12_DEBUG_FEATURE STDMETHODCALLTYPE GetFeatureMask( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DebugCommandListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DebugCommandList * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DebugCommandList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DebugCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList, AssertResourceState) + BOOL ( STDMETHODCALLTYPE *AssertResourceState )( + ID3D12DebugCommandList * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + UINT State); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList, SetFeatureMask) + HRESULT ( STDMETHODCALLTYPE *SetFeatureMask )( + ID3D12DebugCommandList * This, + D3D12_DEBUG_FEATURE Mask); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList, GetFeatureMask) + D3D12_DEBUG_FEATURE ( STDMETHODCALLTYPE *GetFeatureMask )( + ID3D12DebugCommandList * This); + + END_INTERFACE + } ID3D12DebugCommandListVtbl; + + interface ID3D12DebugCommandList + { + CONST_VTBL struct ID3D12DebugCommandListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DebugCommandList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DebugCommandList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DebugCommandList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DebugCommandList_AssertResourceState(This,pResource,Subresource,State) \ + ( (This)->lpVtbl -> AssertResourceState(This,pResource,Subresource,State) ) + +#define ID3D12DebugCommandList_SetFeatureMask(This,Mask) \ + ( (This)->lpVtbl -> SetFeatureMask(This,Mask) ) + +#define ID3D12DebugCommandList_GetFeatureMask(This) \ + ( (This)->lpVtbl -> GetFeatureMask(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DebugCommandList_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DebugCommandList2_INTERFACE_DEFINED__ +#define __ID3D12DebugCommandList2_INTERFACE_DEFINED__ + +/* interface ID3D12DebugCommandList2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DebugCommandList2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("aeb575cf-4e06-48be-ba3b-c450fc96652e") + ID3D12DebugCommandList2 : public ID3D12DebugCommandList + { + public: + virtual HRESULT STDMETHODCALLTYPE SetDebugParameter( + D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, + _In_reads_bytes_(DataSize) const void *pData, + UINT DataSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDebugParameter( + D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DebugCommandList2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DebugCommandList2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DebugCommandList2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DebugCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList, AssertResourceState) + BOOL ( STDMETHODCALLTYPE *AssertResourceState )( + ID3D12DebugCommandList2 * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + UINT State); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList, SetFeatureMask) + HRESULT ( STDMETHODCALLTYPE *SetFeatureMask )( + ID3D12DebugCommandList2 * This, + D3D12_DEBUG_FEATURE Mask); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList, GetFeatureMask) + D3D12_DEBUG_FEATURE ( STDMETHODCALLTYPE *GetFeatureMask )( + ID3D12DebugCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList2, SetDebugParameter) + HRESULT ( STDMETHODCALLTYPE *SetDebugParameter )( + ID3D12DebugCommandList2 * This, + D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, + _In_reads_bytes_(DataSize) const void *pData, + UINT DataSize); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList2, GetDebugParameter) + HRESULT ( STDMETHODCALLTYPE *GetDebugParameter )( + ID3D12DebugCommandList2 * This, + D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize); + + END_INTERFACE + } ID3D12DebugCommandList2Vtbl; + + interface ID3D12DebugCommandList2 + { + CONST_VTBL struct ID3D12DebugCommandList2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DebugCommandList2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DebugCommandList2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DebugCommandList2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DebugCommandList2_AssertResourceState(This,pResource,Subresource,State) \ + ( (This)->lpVtbl -> AssertResourceState(This,pResource,Subresource,State) ) + +#define ID3D12DebugCommandList2_SetFeatureMask(This,Mask) \ + ( (This)->lpVtbl -> SetFeatureMask(This,Mask) ) + +#define ID3D12DebugCommandList2_GetFeatureMask(This) \ + ( (This)->lpVtbl -> GetFeatureMask(This) ) + + +#define ID3D12DebugCommandList2_SetDebugParameter(This,Type,pData,DataSize) \ + ( (This)->lpVtbl -> SetDebugParameter(This,Type,pData,DataSize) ) + +#define ID3D12DebugCommandList2_GetDebugParameter(This,Type,pData,DataSize) \ + ( (This)->lpVtbl -> GetDebugParameter(This,Type,pData,DataSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DebugCommandList2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12DebugCommandList3_INTERFACE_DEFINED__ +#define __ID3D12DebugCommandList3_INTERFACE_DEFINED__ + +/* interface ID3D12DebugCommandList3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12DebugCommandList3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("197d5e15-4d37-4d34-af78-724cd70fdb1f") + ID3D12DebugCommandList3 : public ID3D12DebugCommandList2 + { + public: + virtual void STDMETHODCALLTYPE AssertResourceAccess( + _In_ ID3D12Resource *pResource, + UINT Subresource, + D3D12_BARRIER_ACCESS Access) = 0; + + virtual void STDMETHODCALLTYPE AssertTextureLayout( + _In_ ID3D12Resource *pResource, + UINT Subresource, + D3D12_BARRIER_LAYOUT Layout) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12DebugCommandList3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12DebugCommandList3 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12DebugCommandList3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12DebugCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList, AssertResourceState) + BOOL ( STDMETHODCALLTYPE *AssertResourceState )( + ID3D12DebugCommandList3 * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + UINT State); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList, SetFeatureMask) + HRESULT ( STDMETHODCALLTYPE *SetFeatureMask )( + ID3D12DebugCommandList3 * This, + D3D12_DEBUG_FEATURE Mask); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList, GetFeatureMask) + D3D12_DEBUG_FEATURE ( STDMETHODCALLTYPE *GetFeatureMask )( + ID3D12DebugCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList2, SetDebugParameter) + HRESULT ( STDMETHODCALLTYPE *SetDebugParameter )( + ID3D12DebugCommandList3 * This, + D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, + _In_reads_bytes_(DataSize) const void *pData, + UINT DataSize); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList2, GetDebugParameter) + HRESULT ( STDMETHODCALLTYPE *GetDebugParameter )( + ID3D12DebugCommandList3 * This, + D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, + _Out_writes_bytes_(DataSize) void *pData, + UINT DataSize); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList3, AssertResourceAccess) + void ( STDMETHODCALLTYPE *AssertResourceAccess )( + ID3D12DebugCommandList3 * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + D3D12_BARRIER_ACCESS Access); + + DECLSPEC_XFGVIRT(ID3D12DebugCommandList3, AssertTextureLayout) + void ( STDMETHODCALLTYPE *AssertTextureLayout )( + ID3D12DebugCommandList3 * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + D3D12_BARRIER_LAYOUT Layout); + + END_INTERFACE + } ID3D12DebugCommandList3Vtbl; + + interface ID3D12DebugCommandList3 + { + CONST_VTBL struct ID3D12DebugCommandList3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12DebugCommandList3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12DebugCommandList3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12DebugCommandList3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12DebugCommandList3_AssertResourceState(This,pResource,Subresource,State) \ + ( (This)->lpVtbl -> AssertResourceState(This,pResource,Subresource,State) ) + +#define ID3D12DebugCommandList3_SetFeatureMask(This,Mask) \ + ( (This)->lpVtbl -> SetFeatureMask(This,Mask) ) + +#define ID3D12DebugCommandList3_GetFeatureMask(This) \ + ( (This)->lpVtbl -> GetFeatureMask(This) ) + + +#define ID3D12DebugCommandList3_SetDebugParameter(This,Type,pData,DataSize) \ + ( (This)->lpVtbl -> SetDebugParameter(This,Type,pData,DataSize) ) + +#define ID3D12DebugCommandList3_GetDebugParameter(This,Type,pData,DataSize) \ + ( (This)->lpVtbl -> GetDebugParameter(This,Type,pData,DataSize) ) + + +#define ID3D12DebugCommandList3_AssertResourceAccess(This,pResource,Subresource,Access) \ + ( (This)->lpVtbl -> AssertResourceAccess(This,pResource,Subresource,Access) ) + +#define ID3D12DebugCommandList3_AssertTextureLayout(This,pResource,Subresource,Layout) \ + ( (This)->lpVtbl -> AssertTextureLayout(This,pResource,Subresource,Layout) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12DebugCommandList3_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12SharingContract_INTERFACE_DEFINED__ +#define __ID3D12SharingContract_INTERFACE_DEFINED__ + +/* interface ID3D12SharingContract */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12SharingContract; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0adf7d52-929c-4e61-addb-ffed30de66ef") + ID3D12SharingContract : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE Present( + _In_ ID3D12Resource *pResource, + UINT Subresource, + _In_ HWND window) = 0; + + virtual void STDMETHODCALLTYPE SharedFenceSignal( + _In_ ID3D12Fence *pFence, + UINT64 FenceValue) = 0; + + virtual void STDMETHODCALLTYPE BeginCapturableWork( + _In_ REFGUID guid) = 0; + + virtual void STDMETHODCALLTYPE EndCapturableWork( + _In_ REFGUID guid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12SharingContractVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12SharingContract * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12SharingContract * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12SharingContract * This); + + DECLSPEC_XFGVIRT(ID3D12SharingContract, Present) + void ( STDMETHODCALLTYPE *Present )( + ID3D12SharingContract * This, + _In_ ID3D12Resource *pResource, + UINT Subresource, + _In_ HWND window); + + DECLSPEC_XFGVIRT(ID3D12SharingContract, SharedFenceSignal) + void ( STDMETHODCALLTYPE *SharedFenceSignal )( + ID3D12SharingContract * This, + _In_ ID3D12Fence *pFence, + UINT64 FenceValue); + + DECLSPEC_XFGVIRT(ID3D12SharingContract, BeginCapturableWork) + void ( STDMETHODCALLTYPE *BeginCapturableWork )( + ID3D12SharingContract * This, + _In_ REFGUID guid); + + DECLSPEC_XFGVIRT(ID3D12SharingContract, EndCapturableWork) + void ( STDMETHODCALLTYPE *EndCapturableWork )( + ID3D12SharingContract * This, + _In_ REFGUID guid); + + END_INTERFACE + } ID3D12SharingContractVtbl; + + interface ID3D12SharingContract + { + CONST_VTBL struct ID3D12SharingContractVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12SharingContract_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12SharingContract_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12SharingContract_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12SharingContract_Present(This,pResource,Subresource,window) \ + ( (This)->lpVtbl -> Present(This,pResource,Subresource,window) ) + +#define ID3D12SharingContract_SharedFenceSignal(This,pFence,FenceValue) \ + ( (This)->lpVtbl -> SharedFenceSignal(This,pFence,FenceValue) ) + +#define ID3D12SharingContract_BeginCapturableWork(This,guid) \ + ( (This)->lpVtbl -> BeginCapturableWork(This,guid) ) + +#define ID3D12SharingContract_EndCapturableWork(This,guid) \ + ( (This)->lpVtbl -> EndCapturableWork(This,guid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12SharingContract_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12ManualWriteTrackingResource_INTERFACE_DEFINED__ +#define __ID3D12ManualWriteTrackingResource_INTERFACE_DEFINED__ + +/* interface ID3D12ManualWriteTrackingResource */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12ManualWriteTrackingResource; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("86ca3b85-49ad-4b6e-aed5-eddb18540f41") + ID3D12ManualWriteTrackingResource : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE TrackWrite( + UINT Subresource, + _In_opt_ const D3D12_RANGE *pWrittenRange) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12ManualWriteTrackingResourceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12ManualWriteTrackingResource * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12ManualWriteTrackingResource * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12ManualWriteTrackingResource * This); + + DECLSPEC_XFGVIRT(ID3D12ManualWriteTrackingResource, TrackWrite) + void ( STDMETHODCALLTYPE *TrackWrite )( + ID3D12ManualWriteTrackingResource * This, + UINT Subresource, + _In_opt_ const D3D12_RANGE *pWrittenRange); + + END_INTERFACE + } ID3D12ManualWriteTrackingResourceVtbl; + + interface ID3D12ManualWriteTrackingResource + { + CONST_VTBL struct ID3D12ManualWriteTrackingResourceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12ManualWriteTrackingResource_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12ManualWriteTrackingResource_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12ManualWriteTrackingResource_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12ManualWriteTrackingResource_TrackWrite(This,Subresource,pWrittenRange) \ + ( (This)->lpVtbl -> TrackWrite(This,Subresource,pWrittenRange) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12ManualWriteTrackingResource_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12sdklayers_0000_0018 */ +/* [local] */ + +typedef +enum D3D12_MESSAGE_CATEGORY + { + D3D12_MESSAGE_CATEGORY_APPLICATION_DEFINED = 0, + D3D12_MESSAGE_CATEGORY_MISCELLANEOUS = ( D3D12_MESSAGE_CATEGORY_APPLICATION_DEFINED + 1 ) , + D3D12_MESSAGE_CATEGORY_INITIALIZATION = ( D3D12_MESSAGE_CATEGORY_MISCELLANEOUS + 1 ) , + D3D12_MESSAGE_CATEGORY_CLEANUP = ( D3D12_MESSAGE_CATEGORY_INITIALIZATION + 1 ) , + D3D12_MESSAGE_CATEGORY_COMPILATION = ( D3D12_MESSAGE_CATEGORY_CLEANUP + 1 ) , + D3D12_MESSAGE_CATEGORY_STATE_CREATION = ( D3D12_MESSAGE_CATEGORY_COMPILATION + 1 ) , + D3D12_MESSAGE_CATEGORY_STATE_SETTING = ( D3D12_MESSAGE_CATEGORY_STATE_CREATION + 1 ) , + D3D12_MESSAGE_CATEGORY_STATE_GETTING = ( D3D12_MESSAGE_CATEGORY_STATE_SETTING + 1 ) , + D3D12_MESSAGE_CATEGORY_RESOURCE_MANIPULATION = ( D3D12_MESSAGE_CATEGORY_STATE_GETTING + 1 ) , + D3D12_MESSAGE_CATEGORY_EXECUTION = ( D3D12_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + 1 ) , + D3D12_MESSAGE_CATEGORY_SHADER = ( D3D12_MESSAGE_CATEGORY_EXECUTION + 1 ) + } D3D12_MESSAGE_CATEGORY; + +typedef +enum D3D12_MESSAGE_SEVERITY + { + D3D12_MESSAGE_SEVERITY_CORRUPTION = 0, + D3D12_MESSAGE_SEVERITY_ERROR = ( D3D12_MESSAGE_SEVERITY_CORRUPTION + 1 ) , + D3D12_MESSAGE_SEVERITY_WARNING = ( D3D12_MESSAGE_SEVERITY_ERROR + 1 ) , + D3D12_MESSAGE_SEVERITY_INFO = ( D3D12_MESSAGE_SEVERITY_WARNING + 1 ) , + D3D12_MESSAGE_SEVERITY_MESSAGE = ( D3D12_MESSAGE_SEVERITY_INFO + 1 ) + } D3D12_MESSAGE_SEVERITY; + +typedef +enum D3D12_MESSAGE_ID + { + D3D12_MESSAGE_ID_UNKNOWN = 0, + D3D12_MESSAGE_ID_STRING_FROM_APPLICATION = 1, + D3D12_MESSAGE_ID_CORRUPTED_THIS = 2, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER1 = 3, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER2 = 4, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER3 = 5, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER4 = 6, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER5 = 7, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER6 = 8, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER7 = 9, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER8 = 10, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER9 = 11, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER10 = 12, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER11 = 13, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER12 = 14, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER13 = 15, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER14 = 16, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER15 = 17, + D3D12_MESSAGE_ID_CORRUPTED_MULTITHREADING = 18, + D3D12_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY = 19, + D3D12_MESSAGE_ID_GETPRIVATEDATA_MOREDATA = 20, + D3D12_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA = 21, + D3D12_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS = 24, + D3D12_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY = 25, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT = 26, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC = 27, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT = 28, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDVIDEOPLANESLICE = 29, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDPLANESLICE = 30, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS = 31, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE = 32, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT = 35, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT = 36, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC = 37, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT = 38, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDVIDEOPLANESLICE = 39, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDPLANESLICE = 40, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS = 41, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE = 42, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT = 45, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC = 46, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT = 47, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS = 48, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE = 49, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY = 52, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS = 53, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT = 54, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT = 55, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT = 56, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS = 57, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH = 58, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE = 59, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE = 60, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT = 61, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC = 62, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE = 63, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC = 64, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT = 65, + D3D12_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY = 66, + D3D12_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE = 67, + D3D12_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE = 68, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY = 69, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE = 70, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE = 71, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY = 72, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE = 73, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE = 74, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES = 75, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED = 76, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED = 79, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT = 80, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT = 81, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT = 82, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT = 83, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION = 84, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT = 85, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE = 86, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC = 87, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH = 88, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS = 89, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX = 90, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE = 91, + D3D12_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY = 92, + D3D12_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE = 93, + D3D12_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE = 94, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE = 95, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE = 96, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP = 97, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS = 98, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK = 100, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC = 101, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP = 102, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP = 103, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP = 104, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC = 105, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP = 106, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP = 107, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP = 108, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC = 109, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND = 111, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND = 112, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP = 113, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA = 114, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA = 115, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA = 116, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK = 117, + D3D12_MESSAGE_ID_GET_PROGRAM_IDENTIFIER_ERROR = 118, + D3D12_MESSAGE_ID_GET_WORK_GRAPH_PROPERTIES_ERROR = 119, + D3D12_MESSAGE_ID_SET_PROGRAM_ERROR = 120, + D3D12_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID = 135, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ROOT_SIGNATURE_NOT_SET = 200, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ROOT_SIGNATURE_MISMATCH = 201, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_NOT_SET = 202, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL = 209, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_TOO_SMALL = 210, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_BUFFER_NOT_SET = 211, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_BUFFER_FORMAT_INVALID = 212, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_BUFFER_TOO_SMALL = 213, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INVALID_PRIMITIVETOPOLOGY = 219, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_STRIDE_UNALIGNED = 221, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_OFFSET_UNALIGNED = 222, + D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT = 232, + D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT = 233, + D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT = 234, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC = 239, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC = 240, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH = 245, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT = 253, + D3D12_MESSAGE_ID_LIVE_OBJECT_SUMMARY = 255, + D3D12_MESSAGE_ID_LIVE_DEVICE = 274, + D3D12_MESSAGE_ID_LIVE_SWAPCHAIN = 275, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFLAGS = 276, + D3D12_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDCLASSLINKAGE = 277, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDCLASSLINKAGE = 278, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAMTORASTERIZER = 280, + D3D12_MESSAGE_ID_CREATEPIXELSHADER_INVALIDCLASSLINKAGE = 283, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAM = 284, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDENTRIES = 285, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTRIDES = 286, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTRIDES = 287, + D3D12_MESSAGE_ID_CREATEHULLSHADER_OUTOFMEMORY = 289, + D3D12_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERBYTECODE = 290, + D3D12_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERTYPE = 291, + D3D12_MESSAGE_ID_CREATEHULLSHADER_INVALIDCLASSLINKAGE = 292, + D3D12_MESSAGE_ID_CREATEDOMAINSHADER_OUTOFMEMORY = 294, + D3D12_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERBYTECODE = 295, + D3D12_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERTYPE = 296, + D3D12_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCLASSLINKAGE = 297, + D3D12_MESSAGE_ID_RESOURCE_UNMAP_NOTMAPPED = 310, + D3D12_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_MISMATCHED_DATA_SIZE = 318, + D3D12_MESSAGE_ID_CREATECOMPUTESHADER_OUTOFMEMORY = 321, + D3D12_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERBYTECODE = 322, + D3D12_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCLASSLINKAGE = 323, + D3D12_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 331, + D3D12_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 332, + D3D12_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 333, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 334, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEFLOATOPSNOTSUPPORTED = 335, + D3D12_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 336, + D3D12_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEFLOATOPSNOTSUPPORTED = 337, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDRESOURCE = 340, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDESC = 341, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT = 342, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDVIDEOPLANESLICE = 343, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDPLANESLICE = 344, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDIMENSIONS = 345, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_UNRECOGNIZEDFORMAT = 346, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFLAGS = 354, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFORCEDSAMPLECOUNT = 401, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDLOGICOPS = 403, + D3D12_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 410, + D3D12_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 412, + D3D12_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 414, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 416, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEEXTENSIONSNOTSUPPORTED = 418, + D3D12_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 420, + D3D12_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 422, + D3D12_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_UAVSNOTSUPPORTED = 425, + D3D12_MESSAGE_ID_DEVICE_CREATEHULLSHADER_UAVSNOTSUPPORTED = 426, + D3D12_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_UAVSNOTSUPPORTED = 427, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_UAVSNOTSUPPORTED = 428, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UAVSNOTSUPPORTED = 429, + D3D12_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_UAVSNOTSUPPORTED = 430, + D3D12_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_UAVSNOTSUPPORTED = 431, + D3D12_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDSOURCERECT = 447, + D3D12_MESSAGE_ID_DEVICE_CLEARVIEW_EMPTYRECT = 448, + D3D12_MESSAGE_ID_UPDATETILEMAPPINGS_INVALID_PARAMETER = 493, + D3D12_MESSAGE_ID_COPYTILEMAPPINGS_INVALID_PARAMETER = 494, + D3D12_MESSAGE_ID_CREATEDEVICE_INVALIDARGS = 506, + D3D12_MESSAGE_ID_CREATEDEVICE_WARNING = 507, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_TYPE = 519, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_NULL_POINTER = 520, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_SUBRESOURCE = 521, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_RESERVED_BITS = 522, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISSING_BIND_FLAGS = 523, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISMATCHING_MISC_FLAGS = 524, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_MATCHING_STATES = 525, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_COMBINATION = 526, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_BEFORE_AFTER_MISMATCH = 527, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_RESOURCE = 528, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_SAMPLE_COUNT = 529, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_FLAGS = 530, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_COMBINED_FLAGS = 531, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_FLAGS_FOR_FORMAT = 532, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_SPLIT_BARRIER = 533, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_UNMATCHED_END = 534, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_UNMATCHED_BEGIN = 535, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_FLAG = 536, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_COMMAND_LIST_TYPE = 537, + D3D12_MESSAGE_ID_INVALID_SUBRESOURCE_STATE = 538, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_CONTENTION = 540, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_RESET = 541, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_RESET_BUNDLE = 542, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_CANNOT_RESET = 543, + D3D12_MESSAGE_ID_COMMAND_LIST_OPEN = 544, + D3D12_MESSAGE_ID_INVALID_BUNDLE_API = 546, + D3D12_MESSAGE_ID_COMMAND_LIST_CLOSED = 547, + D3D12_MESSAGE_ID_WRONG_COMMAND_ALLOCATOR_TYPE = 549, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_SYNC = 552, + D3D12_MESSAGE_ID_COMMAND_LIST_SYNC = 553, + D3D12_MESSAGE_ID_SET_DESCRIPTOR_HEAP_INVALID = 554, + D3D12_MESSAGE_ID_CREATE_COMMANDQUEUE = 557, + D3D12_MESSAGE_ID_CREATE_COMMANDALLOCATOR = 558, + D3D12_MESSAGE_ID_CREATE_PIPELINESTATE = 559, + D3D12_MESSAGE_ID_CREATE_COMMANDLIST12 = 560, + D3D12_MESSAGE_ID_CREATE_RESOURCE = 562, + D3D12_MESSAGE_ID_CREATE_DESCRIPTORHEAP = 563, + D3D12_MESSAGE_ID_CREATE_ROOTSIGNATURE = 564, + D3D12_MESSAGE_ID_CREATE_LIBRARY = 565, + D3D12_MESSAGE_ID_CREATE_HEAP = 566, + D3D12_MESSAGE_ID_CREATE_MONITOREDFENCE = 567, + D3D12_MESSAGE_ID_CREATE_QUERYHEAP = 568, + D3D12_MESSAGE_ID_CREATE_COMMANDSIGNATURE = 569, + D3D12_MESSAGE_ID_LIVE_COMMANDQUEUE = 570, + D3D12_MESSAGE_ID_LIVE_COMMANDALLOCATOR = 571, + D3D12_MESSAGE_ID_LIVE_PIPELINESTATE = 572, + D3D12_MESSAGE_ID_LIVE_COMMANDLIST12 = 573, + D3D12_MESSAGE_ID_LIVE_RESOURCE = 575, + D3D12_MESSAGE_ID_LIVE_DESCRIPTORHEAP = 576, + D3D12_MESSAGE_ID_LIVE_ROOTSIGNATURE = 577, + D3D12_MESSAGE_ID_LIVE_LIBRARY = 578, + D3D12_MESSAGE_ID_LIVE_HEAP = 579, + D3D12_MESSAGE_ID_LIVE_MONITOREDFENCE = 580, + D3D12_MESSAGE_ID_LIVE_QUERYHEAP = 581, + D3D12_MESSAGE_ID_LIVE_COMMANDSIGNATURE = 582, + D3D12_MESSAGE_ID_DESTROY_COMMANDQUEUE = 583, + D3D12_MESSAGE_ID_DESTROY_COMMANDALLOCATOR = 584, + D3D12_MESSAGE_ID_DESTROY_PIPELINESTATE = 585, + D3D12_MESSAGE_ID_DESTROY_COMMANDLIST12 = 586, + D3D12_MESSAGE_ID_DESTROY_RESOURCE = 588, + D3D12_MESSAGE_ID_DESTROY_DESCRIPTORHEAP = 589, + D3D12_MESSAGE_ID_DESTROY_ROOTSIGNATURE = 590, + D3D12_MESSAGE_ID_DESTROY_LIBRARY = 591, + D3D12_MESSAGE_ID_DESTROY_HEAP = 592, + D3D12_MESSAGE_ID_DESTROY_MONITOREDFENCE = 593, + D3D12_MESSAGE_ID_DESTROY_QUERYHEAP = 594, + D3D12_MESSAGE_ID_DESTROY_COMMANDSIGNATURE = 595, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDDIMENSIONS = 597, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDMISCFLAGS = 599, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDARG_RETURN = 602, + D3D12_MESSAGE_ID_CREATERESOURCE_OUTOFMEMORY_RETURN = 603, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDDESC = 604, + D3D12_MESSAGE_ID_POSSIBLY_INVALID_SUBRESOURCE_STATE = 607, + D3D12_MESSAGE_ID_INVALID_USE_OF_NON_RESIDENT_RESOURCE = 608, + D3D12_MESSAGE_ID_POSSIBLE_INVALID_USE_OF_NON_RESIDENT_RESOURCE = 609, + D3D12_MESSAGE_ID_BUNDLE_PIPELINE_STATE_MISMATCH = 610, + D3D12_MESSAGE_ID_PRIMITIVE_TOPOLOGY_MISMATCH_PIPELINE_STATE = 611, + D3D12_MESSAGE_ID_RENDER_TARGET_FORMAT_MISMATCH_PIPELINE_STATE = 613, + D3D12_MESSAGE_ID_RENDER_TARGET_SAMPLE_DESC_MISMATCH_PIPELINE_STATE = 614, + D3D12_MESSAGE_ID_DEPTH_STENCIL_FORMAT_MISMATCH_PIPELINE_STATE = 615, + D3D12_MESSAGE_ID_DEPTH_STENCIL_SAMPLE_DESC_MISMATCH_PIPELINE_STATE = 616, + D3D12_MESSAGE_ID_CREATESHADER_INVALIDBYTECODE = 622, + D3D12_MESSAGE_ID_CREATEHEAP_NULLDESC = 623, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDSIZE = 624, + D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDHEAPTYPE = 625, + D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDCPUPAGEPROPERTIES = 626, + D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDMEMORYPOOL = 627, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDPROPERTIES = 628, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDALIGNMENT = 629, + D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDMISCFLAGS = 630, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDMISCFLAGS = 631, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDARG_RETURN = 632, + D3D12_MESSAGE_ID_CREATEHEAP_OUTOFMEMORY_RETURN = 633, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_NULLHEAPPROPERTIES = 634, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDHEAPTYPE = 635, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDCPUPAGEPROPERTIES = 636, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDMEMORYPOOL = 637, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDHEAPPROPERTIES = 638, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDHEAPMISCFLAGS = 639, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDHEAPMISCFLAGS = 640, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDARG_RETURN = 641, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_OUTOFMEMORY_RETURN = 642, + D3D12_MESSAGE_ID_GETCUSTOMHEAPPROPERTIES_UNRECOGNIZEDHEAPTYPE = 643, + D3D12_MESSAGE_ID_GETCUSTOMHEAPPROPERTIES_INVALIDHEAPTYPE = 644, + D3D12_MESSAGE_ID_CREATE_DESCRIPTOR_HEAP_INVALID_DESC = 645, + D3D12_MESSAGE_ID_INVALID_DESCRIPTOR_HANDLE = 646, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALID_CONSERVATIVERASTERMODE = 647, + D3D12_MESSAGE_ID_CREATE_CONSTANT_BUFFER_VIEW_INVALID_RESOURCE = 649, + D3D12_MESSAGE_ID_CREATE_CONSTANT_BUFFER_VIEW_INVALID_DESC = 650, + D3D12_MESSAGE_ID_CREATE_UNORDEREDACCESS_VIEW_INVALID_COUNTER_USAGE = 652, + D3D12_MESSAGE_ID_COPY_DESCRIPTORS_INVALID_RANGES = 653, + D3D12_MESSAGE_ID_COPY_DESCRIPTORS_WRITE_ONLY_DESCRIPTOR = 654, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RTV_FORMAT_NOT_UNKNOWN = 655, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_RENDER_TARGET_COUNT = 656, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_VERTEX_SHADER_NOT_SET = 657, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INPUTLAYOUT_NOT_SET = 658, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_HS_DS_SIGNATURE_MISMATCH = 659, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_REGISTERINDEX = 660, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_COMPONENTTYPE = 661, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_REGISTERMASK = 662, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_SYSTEMVALUE = 663, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS = 664, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_MINPRECISION = 665, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND = 666, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_XOR_DS_MISMATCH = 667, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HULL_SHADER_INPUT_TOPOLOGY_MISMATCH = 668, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_DS_CONTROL_POINT_COUNT_MISMATCH = 669, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_DS_TESSELLATOR_DOMAIN_MISMATCH = 670, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN = 671, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_USE_OF_FORCED_SAMPLE_COUNT = 672, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_PRIMITIVETOPOLOGY = 673, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_SYSTEMVALUE = 674, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 = 675, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING = 676, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_PS_OUTPUT_TYPE_MISMATCH = 677, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_OM_RENDER_TARGET_DOES_NOT_SUPPORT_LOGIC_OPS = 678, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RENDERTARGETVIEW_NOT_SET = 679, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_DEPTHSTENCILVIEW_NOT_SET = 680, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_GS_INPUT_PRIMITIVE_MISMATCH = 681, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_POSITION_NOT_PRESENT = 682, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MISSING_ROOT_SIGNATURE_FLAGS = 683, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_INDEX_BUFFER_PROPERTIES = 684, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_SAMPLE_DESC = 685, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_ROOT_SIGNATURE_MISMATCH = 686, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_DS_ROOT_SIGNATURE_MISMATCH = 687, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_VS_ROOT_SIGNATURE_MISMATCH = 688, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_GS_ROOT_SIGNATURE_MISMATCH = 689, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_PS_ROOT_SIGNATURE_MISMATCH = 690, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MISSING_ROOT_SIGNATURE = 691, + D3D12_MESSAGE_ID_EXECUTE_BUNDLE_OPEN_BUNDLE = 692, + D3D12_MESSAGE_ID_EXECUTE_BUNDLE_DESCRIPTOR_HEAP_MISMATCH = 693, + D3D12_MESSAGE_ID_EXECUTE_BUNDLE_TYPE = 694, + D3D12_MESSAGE_ID_DRAW_EMPTY_SCISSOR_RECTANGLE = 695, + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_BLOB_NOT_FOUND = 696, + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_DESERIALIZE_FAILED = 697, + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_INVALID_CONFIGURATION = 698, + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_NOT_SUPPORTED_ON_DEVICE = 699, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_NULLRESOURCEPROPERTIES = 700, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_NULLHEAP = 701, + D3D12_MESSAGE_ID_GETRESOURCEALLOCATIONINFO_INVALIDRDESCS = 702, + D3D12_MESSAGE_ID_MAKERESIDENT_NULLOBJECTARRAY = 703, + D3D12_MESSAGE_ID_EVICT_NULLOBJECTARRAY = 705, + D3D12_MESSAGE_ID_SET_DESCRIPTOR_TABLE_INVALID = 708, + D3D12_MESSAGE_ID_SET_ROOT_CONSTANT_INVALID = 709, + D3D12_MESSAGE_ID_SET_ROOT_CONSTANT_BUFFER_VIEW_INVALID = 710, + D3D12_MESSAGE_ID_SET_ROOT_SHADER_RESOURCE_VIEW_INVALID = 711, + D3D12_MESSAGE_ID_SET_ROOT_UNORDERED_ACCESS_VIEW_INVALID = 712, + D3D12_MESSAGE_ID_SET_VERTEX_BUFFERS_INVALID_DESC = 713, + D3D12_MESSAGE_ID_SET_INDEX_BUFFER_INVALID_DESC = 715, + D3D12_MESSAGE_ID_SET_STREAM_OUTPUT_BUFFERS_INVALID_DESC = 717, + D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDDIMENSIONALITY = 718, + D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDLAYOUT = 719, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDDIMENSIONALITY = 720, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDALIGNMENT = 721, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDMIPLEVELS = 722, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDSAMPLEDESC = 723, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDLAYOUT = 724, + D3D12_MESSAGE_ID_SET_INDEX_BUFFER_INVALID = 725, + D3D12_MESSAGE_ID_SET_VERTEX_BUFFERS_INVALID = 726, + D3D12_MESSAGE_ID_SET_STREAM_OUTPUT_BUFFERS_INVALID = 727, + D3D12_MESSAGE_ID_SET_RENDER_TARGETS_INVALID = 728, + D3D12_MESSAGE_ID_CREATEQUERY_HEAP_INVALID_PARAMETERS = 729, + D3D12_MESSAGE_ID_BEGIN_END_QUERY_INVALID_PARAMETERS = 731, + D3D12_MESSAGE_ID_CLOSE_COMMAND_LIST_OPEN_QUERY = 732, + D3D12_MESSAGE_ID_RESOLVE_QUERY_DATA_INVALID_PARAMETERS = 733, + D3D12_MESSAGE_ID_SET_PREDICATION_INVALID_PARAMETERS = 734, + D3D12_MESSAGE_ID_TIMESTAMPS_NOT_SUPPORTED = 735, + D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDFORMAT = 737, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDFORMAT = 738, + D3D12_MESSAGE_ID_GETCOPYABLEFOOTPRINTS_INVALIDSUBRESOURCERANGE = 739, + D3D12_MESSAGE_ID_GETCOPYABLEFOOTPRINTS_INVALIDBASEOFFSET = 740, + D3D12_MESSAGE_ID_GETCOPYABLELAYOUT_INVALIDSUBRESOURCERANGE = 739, + D3D12_MESSAGE_ID_GETCOPYABLELAYOUT_INVALIDBASEOFFSET = 740, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_HEAP = 741, + D3D12_MESSAGE_ID_CREATE_SAMPLER_INVALID = 742, + D3D12_MESSAGE_ID_CREATECOMMANDSIGNATURE_INVALID = 743, + D3D12_MESSAGE_ID_EXECUTE_INDIRECT_INVALID_PARAMETERS = 744, + D3D12_MESSAGE_ID_GETGPUVIRTUALADDRESS_INVALID_RESOURCE_DIMENSION = 745, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDCLEARVALUE = 815, + D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDCLEARVALUEFORMAT = 816, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDCLEARVALUEFORMAT = 817, + D3D12_MESSAGE_ID_CREATERESOURCE_CLEARVALUEDENORMFLUSH = 818, + D3D12_MESSAGE_ID_CLEARRENDERTARGETVIEW_MISMATCHINGCLEARVALUE = 820, + D3D12_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_MISMATCHINGCLEARVALUE = 821, + D3D12_MESSAGE_ID_MAP_INVALIDHEAP = 822, + D3D12_MESSAGE_ID_UNMAP_INVALIDHEAP = 823, + D3D12_MESSAGE_ID_MAP_INVALIDRESOURCE = 824, + D3D12_MESSAGE_ID_UNMAP_INVALIDRESOURCE = 825, + D3D12_MESSAGE_ID_MAP_INVALIDSUBRESOURCE = 826, + D3D12_MESSAGE_ID_UNMAP_INVALIDSUBRESOURCE = 827, + D3D12_MESSAGE_ID_MAP_INVALIDRANGE = 828, + D3D12_MESSAGE_ID_UNMAP_INVALIDRANGE = 829, + D3D12_MESSAGE_ID_MAP_INVALIDDATAPOINTER = 832, + D3D12_MESSAGE_ID_MAP_INVALIDARG_RETURN = 833, + D3D12_MESSAGE_ID_MAP_OUTOFMEMORY_RETURN = 834, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_BUNDLENOTSUPPORTED = 835, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_COMMANDLISTMISMATCH = 836, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_OPENCOMMANDLIST = 837, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_FAILEDCOMMANDLIST = 838, + D3D12_MESSAGE_ID_COPYBUFFERREGION_NULLDST = 839, + D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALIDDSTRESOURCEDIMENSION = 840, + D3D12_MESSAGE_ID_COPYBUFFERREGION_DSTRANGEOUTOFBOUNDS = 841, + D3D12_MESSAGE_ID_COPYBUFFERREGION_NULLSRC = 842, + D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALIDSRCRESOURCEDIMENSION = 843, + D3D12_MESSAGE_ID_COPYBUFFERREGION_SRCRANGEOUTOFBOUNDS = 844, + D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALIDCOPYFLAGS = 845, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_NULLDST = 846, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDDSTTYPE = 847, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTRESOURCEDIMENSION = 848, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTRESOURCE = 849, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTSUBRESOURCE = 850, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTOFFSET = 851, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDDSTFORMAT = 852, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTFORMAT = 853, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTDIMENSIONS = 854, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTROWPITCH = 855, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTPLACEMENT = 856, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTDSPLACEDFOOTPRINTFORMAT = 857, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_DSTREGIONOUTOFBOUNDS = 858, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_NULLSRC = 859, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDSRCTYPE = 860, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCRESOURCEDIMENSION = 861, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCRESOURCE = 862, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCSUBRESOURCE = 863, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCOFFSET = 864, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDSRCFORMAT = 865, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCFORMAT = 866, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCDIMENSIONS = 867, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCROWPITCH = 868, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCPLACEMENT = 869, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCDSPLACEDFOOTPRINTFORMAT = 870, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_SRCREGIONOUTOFBOUNDS = 871, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTCOORDINATES = 872, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCBOX = 873, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_FORMATMISMATCH = 874, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_EMPTYBOX = 875, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDCOPYFLAGS = 876, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALID_SUBRESOURCE_INDEX = 877, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALID_FORMAT = 878, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_RESOURCE_MISMATCH = 879, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALID_SAMPLE_COUNT = 880, + D3D12_MESSAGE_ID_CREATECOMPUTEPIPELINESTATE_INVALID_SHADER = 881, + D3D12_MESSAGE_ID_CREATECOMPUTEPIPELINESTATE_CS_ROOT_SIGNATURE_MISMATCH = 882, + D3D12_MESSAGE_ID_CREATECOMPUTEPIPELINESTATE_MISSING_ROOT_SIGNATURE = 883, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_INVALIDCACHEDBLOB = 884, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBADAPTERMISMATCH = 885, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBDRIVERVERSIONMISMATCH = 886, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBDESCMISMATCH = 887, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBIGNORED = 888, + D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDHEAP = 889, + D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDRESOURCE = 890, + D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDBOX = 891, + D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDSUBRESOURCE = 892, + D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_EMPTYBOX = 893, + D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDHEAP = 894, + D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDRESOURCE = 895, + D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDBOX = 896, + D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDSUBRESOURCE = 897, + D3D12_MESSAGE_ID_READFROMSUBRESOURCE_EMPTYBOX = 898, + D3D12_MESSAGE_ID_TOO_MANY_NODES_SPECIFIED = 899, + D3D12_MESSAGE_ID_INVALID_NODE_INDEX = 900, + D3D12_MESSAGE_ID_GETHEAPPROPERTIES_INVALIDRESOURCE = 901, + D3D12_MESSAGE_ID_NODE_MASK_MISMATCH = 902, + D3D12_MESSAGE_ID_COMMAND_LIST_OUTOFMEMORY = 903, + D3D12_MESSAGE_ID_COMMAND_LIST_MULTIPLE_SWAPCHAIN_BUFFER_REFERENCES = 904, + D3D12_MESSAGE_ID_COMMAND_LIST_TOO_MANY_SWAPCHAIN_REFERENCES = 905, + D3D12_MESSAGE_ID_COMMAND_QUEUE_TOO_MANY_SWAPCHAIN_REFERENCES = 906, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_WRONGSWAPCHAINBUFFERREFERENCE = 907, + D3D12_MESSAGE_ID_COMMAND_LIST_SETRENDERTARGETS_INVALIDNUMRENDERTARGETS = 908, + D3D12_MESSAGE_ID_CREATE_QUEUE_INVALID_TYPE = 909, + D3D12_MESSAGE_ID_CREATE_QUEUE_INVALID_FLAGS = 910, + D3D12_MESSAGE_ID_CREATESHAREDRESOURCE_INVALIDFLAGS = 911, + D3D12_MESSAGE_ID_CREATESHAREDRESOURCE_INVALIDFORMAT = 912, + D3D12_MESSAGE_ID_CREATESHAREDHEAP_INVALIDFLAGS = 913, + D3D12_MESSAGE_ID_REFLECTSHAREDPROPERTIES_UNRECOGNIZEDPROPERTIES = 914, + D3D12_MESSAGE_ID_REFLECTSHAREDPROPERTIES_INVALIDSIZE = 915, + D3D12_MESSAGE_ID_REFLECTSHAREDPROPERTIES_INVALIDOBJECT = 916, + D3D12_MESSAGE_ID_KEYEDMUTEX_INVALIDOBJECT = 917, + D3D12_MESSAGE_ID_KEYEDMUTEX_INVALIDKEY = 918, + D3D12_MESSAGE_ID_KEYEDMUTEX_WRONGSTATE = 919, + D3D12_MESSAGE_ID_CREATE_QUEUE_INVALID_PRIORITY = 920, + D3D12_MESSAGE_ID_OBJECT_DELETED_WHILE_STILL_IN_USE = 921, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_INVALID_FLAGS = 922, + D3D12_MESSAGE_ID_HEAP_ADDRESS_RANGE_HAS_NO_RESOURCE = 923, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_RENDER_TARGET_DELETED = 924, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_ALL_RENDER_TARGETS_HAVE_UNKNOWN_FORMAT = 925, + D3D12_MESSAGE_ID_HEAP_ADDRESS_RANGE_INTERSECTS_MULTIPLE_BUFFERS = 926, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_GPU_WRITTEN_READBACK_RESOURCE_MAPPED = 927, + D3D12_MESSAGE_ID_UNMAP_RANGE_NOT_EMPTY = 929, + D3D12_MESSAGE_ID_MAP_INVALID_NULLRANGE = 930, + D3D12_MESSAGE_ID_UNMAP_INVALID_NULLRANGE = 931, + D3D12_MESSAGE_ID_NO_GRAPHICS_API_SUPPORT = 932, + D3D12_MESSAGE_ID_NO_COMPUTE_API_SUPPORT = 933, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_RESOURCE_FLAGS_NOT_SUPPORTED = 934, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_ROOT_ARGUMENT_UNINITIALIZED = 935, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_HEAP_INDEX_OUT_OF_BOUNDS = 936, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_TABLE_REGISTER_INDEX_OUT_OF_BOUNDS = 937, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_UNINITIALIZED = 938, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_TYPE_MISMATCH = 939, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_SRV_RESOURCE_DIMENSION_MISMATCH = 940, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_UAV_RESOURCE_DIMENSION_MISMATCH = 941, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_INCOMPATIBLE_RESOURCE_STATE = 942, + D3D12_MESSAGE_ID_COPYRESOURCE_NULLDST = 943, + D3D12_MESSAGE_ID_COPYRESOURCE_INVALIDDSTRESOURCE = 944, + D3D12_MESSAGE_ID_COPYRESOURCE_NULLSRC = 945, + D3D12_MESSAGE_ID_COPYRESOURCE_INVALIDSRCRESOURCE = 946, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_NULLDST = 947, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALIDDSTRESOURCE = 948, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_NULLSRC = 949, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALIDSRCRESOURCE = 950, + D3D12_MESSAGE_ID_PIPELINE_STATE_TYPE_MISMATCH = 951, + D3D12_MESSAGE_ID_COMMAND_LIST_DISPATCH_ROOT_SIGNATURE_NOT_SET = 952, + D3D12_MESSAGE_ID_COMMAND_LIST_DISPATCH_ROOT_SIGNATURE_MISMATCH = 953, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_ZERO_BARRIERS = 954, + D3D12_MESSAGE_ID_BEGIN_END_EVENT_MISMATCH = 955, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_POSSIBLE_BEFORE_AFTER_MISMATCH = 956, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISMATCHING_BEGIN_END = 957, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_INVALID_RESOURCE = 958, + D3D12_MESSAGE_ID_USE_OF_ZERO_REFCOUNT_OBJECT = 959, + D3D12_MESSAGE_ID_OBJECT_EVICTED_WHILE_STILL_IN_USE = 960, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_ROOT_DESCRIPTOR_ACCESS_OUT_OF_BOUNDS = 961, + D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_INVALIDLIBRARYBLOB = 962, + D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_DRIVERVERSIONMISMATCH = 963, + D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_ADAPTERVERSIONMISMATCH = 964, + D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_UNSUPPORTED = 965, + D3D12_MESSAGE_ID_CREATE_PIPELINELIBRARY = 966, + D3D12_MESSAGE_ID_LIVE_PIPELINELIBRARY = 967, + D3D12_MESSAGE_ID_DESTROY_PIPELINELIBRARY = 968, + D3D12_MESSAGE_ID_STOREPIPELINE_NONAME = 969, + D3D12_MESSAGE_ID_STOREPIPELINE_DUPLICATENAME = 970, + D3D12_MESSAGE_ID_LOADPIPELINE_NAMENOTFOUND = 971, + D3D12_MESSAGE_ID_LOADPIPELINE_INVALIDDESC = 972, + D3D12_MESSAGE_ID_PIPELINELIBRARY_SERIALIZE_NOTENOUGHMEMORY = 973, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_PS_OUTPUT_RT_OUTPUT_MISMATCH = 974, + D3D12_MESSAGE_ID_SETEVENTONMULTIPLEFENCECOMPLETION_INVALIDFLAGS = 975, + D3D12_MESSAGE_ID_CREATE_QUEUE_VIDEO_NOT_SUPPORTED = 976, + D3D12_MESSAGE_ID_CREATE_COMMAND_ALLOCATOR_VIDEO_NOT_SUPPORTED = 977, + D3D12_MESSAGE_ID_CREATEQUERY_HEAP_VIDEO_DECODE_STATISTICS_NOT_SUPPORTED = 978, + D3D12_MESSAGE_ID_CREATE_VIDEODECODECOMMANDLIST = 979, + D3D12_MESSAGE_ID_CREATE_VIDEODECODER = 980, + D3D12_MESSAGE_ID_CREATE_VIDEODECODESTREAM = 981, + D3D12_MESSAGE_ID_LIVE_VIDEODECODECOMMANDLIST = 982, + D3D12_MESSAGE_ID_LIVE_VIDEODECODER = 983, + D3D12_MESSAGE_ID_LIVE_VIDEODECODESTREAM = 984, + D3D12_MESSAGE_ID_DESTROY_VIDEODECODECOMMANDLIST = 985, + D3D12_MESSAGE_ID_DESTROY_VIDEODECODER = 986, + D3D12_MESSAGE_ID_DESTROY_VIDEODECODESTREAM = 987, + D3D12_MESSAGE_ID_DECODE_FRAME_INVALID_PARAMETERS = 988, + D3D12_MESSAGE_ID_DEPRECATED_API = 989, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISMATCHING_COMMAND_LIST_TYPE = 990, + D3D12_MESSAGE_ID_COMMAND_LIST_DESCRIPTOR_TABLE_NOT_SET = 991, + D3D12_MESSAGE_ID_COMMAND_LIST_ROOT_CONSTANT_BUFFER_VIEW_NOT_SET = 992, + D3D12_MESSAGE_ID_COMMAND_LIST_ROOT_SHADER_RESOURCE_VIEW_NOT_SET = 993, + D3D12_MESSAGE_ID_COMMAND_LIST_ROOT_UNORDERED_ACCESS_VIEW_NOT_SET = 994, + D3D12_MESSAGE_ID_DISCARD_INVALID_SUBRESOURCE_RANGE = 995, + D3D12_MESSAGE_ID_DISCARD_ONE_SUBRESOURCE_FOR_MIPS_WITH_RECTS = 996, + D3D12_MESSAGE_ID_DISCARD_NO_RECTS_FOR_NON_TEXTURE2D = 997, + D3D12_MESSAGE_ID_COPY_ON_SAME_SUBRESOURCE = 998, + D3D12_MESSAGE_ID_SETRESIDENCYPRIORITY_INVALID_PAGEABLE = 999, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_UNSUPPORTED = 1000, + D3D12_MESSAGE_ID_STATIC_DESCRIPTOR_INVALID_DESCRIPTOR_CHANGE = 1001, + D3D12_MESSAGE_ID_DATA_STATIC_DESCRIPTOR_INVALID_DATA_CHANGE = 1002, + D3D12_MESSAGE_ID_DATA_STATIC_WHILE_SET_AT_EXECUTE_DESCRIPTOR_INVALID_DATA_CHANGE = 1003, + D3D12_MESSAGE_ID_EXECUTE_BUNDLE_STATIC_DESCRIPTOR_DATA_STATIC_NOT_SET = 1004, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_RESOURCE_ACCESS_OUT_OF_BOUNDS = 1005, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_SAMPLER_MODE_MISMATCH = 1006, + D3D12_MESSAGE_ID_CREATE_FENCE_INVALID_FLAGS = 1007, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_DUPLICATE_SUBRESOURCE_TRANSITIONS = 1008, + D3D12_MESSAGE_ID_SETRESIDENCYPRIORITY_INVALID_PRIORITY = 1009, + D3D12_MESSAGE_ID_CREATE_DESCRIPTOR_HEAP_LARGE_NUM_DESCRIPTORS = 1013, + D3D12_MESSAGE_ID_BEGIN_EVENT = 1014, + D3D12_MESSAGE_ID_END_EVENT = 1015, + D3D12_MESSAGE_ID_CREATEDEVICE_DEBUG_LAYER_STARTUP_OPTIONS = 1016, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_DEPTHBOUNDSTEST_UNSUPPORTED = 1017, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_DUPLICATE_SUBOBJECT = 1018, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_UNKNOWN_SUBOBJECT = 1019, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_ZERO_SIZE_STREAM = 1020, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_INVALID_STREAM = 1021, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CANNOT_DEDUCE_TYPE = 1022, + D3D12_MESSAGE_ID_COMMAND_LIST_STATIC_DESCRIPTOR_RESOURCE_DIMENSION_MISMATCH = 1023, + D3D12_MESSAGE_ID_CREATE_COMMAND_QUEUE_INSUFFICIENT_PRIVILEGE_FOR_GLOBAL_REALTIME = 1024, + D3D12_MESSAGE_ID_CREATE_COMMAND_QUEUE_INSUFFICIENT_HARDWARE_SUPPORT_FOR_GLOBAL_REALTIME = 1025, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_ARCHITECTURE = 1026, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_DST = 1027, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DST_RESOURCE_DIMENSION = 1028, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_DST_RANGE_OUT_OF_BOUNDS = 1029, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_SRC = 1030, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_SRC_RESOURCE_DIMENSION = 1031, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_SRC_RANGE_OUT_OF_BOUNDS = 1032, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_OFFSET_ALIGNMENT = 1033, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_DEPENDENT_RESOURCES = 1034, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_DEPENDENT_SUBRESOURCE_RANGES = 1035, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DEPENDENT_RESOURCE = 1036, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DEPENDENT_SUBRESOURCE_RANGE = 1037, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_DEPENDENT_SUBRESOURCE_OUT_OF_BOUNDS = 1038, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_DEPENDENT_RANGE_OUT_OF_BOUNDS = 1039, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_ZERO_DEPENDENCIES = 1040, + D3D12_MESSAGE_ID_DEVICE_CREATE_SHARED_HANDLE_INVALIDARG = 1041, + D3D12_MESSAGE_ID_DESCRIPTOR_HANDLE_WITH_INVALID_RESOURCE = 1042, + D3D12_MESSAGE_ID_SETDEPTHBOUNDS_INVALIDARGS = 1043, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_RESOURCE_STATE_IMPRECISE = 1044, + D3D12_MESSAGE_ID_COMMAND_LIST_PIPELINE_STATE_NOT_SET = 1045, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_MODEL_MISMATCH = 1046, + D3D12_MESSAGE_ID_OBJECT_ACCESSED_WHILE_STILL_IN_USE = 1047, + D3D12_MESSAGE_ID_PROGRAMMABLE_MSAA_UNSUPPORTED = 1048, + D3D12_MESSAGE_ID_SETSAMPLEPOSITIONS_INVALIDARGS = 1049, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCEREGION_INVALID_RECT = 1050, + D3D12_MESSAGE_ID_CREATE_VIDEODECODECOMMANDQUEUE = 1051, + D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSCOMMANDLIST = 1052, + D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSCOMMANDQUEUE = 1053, + D3D12_MESSAGE_ID_LIVE_VIDEODECODECOMMANDQUEUE = 1054, + D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSCOMMANDLIST = 1055, + D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSCOMMANDQUEUE = 1056, + D3D12_MESSAGE_ID_DESTROY_VIDEODECODECOMMANDQUEUE = 1057, + D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSCOMMANDLIST = 1058, + D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSCOMMANDQUEUE = 1059, + D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSOR = 1060, + D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSSTREAM = 1061, + D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSOR = 1062, + D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSSTREAM = 1063, + D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSOR = 1064, + D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSSTREAM = 1065, + D3D12_MESSAGE_ID_PROCESS_FRAME_INVALID_PARAMETERS = 1066, + D3D12_MESSAGE_ID_COPY_INVALIDLAYOUT = 1067, + D3D12_MESSAGE_ID_CREATE_CRYPTO_SESSION = 1068, + D3D12_MESSAGE_ID_CREATE_CRYPTO_SESSION_POLICY = 1069, + D3D12_MESSAGE_ID_CREATE_PROTECTED_RESOURCE_SESSION = 1070, + D3D12_MESSAGE_ID_LIVE_CRYPTO_SESSION = 1071, + D3D12_MESSAGE_ID_LIVE_CRYPTO_SESSION_POLICY = 1072, + D3D12_MESSAGE_ID_LIVE_PROTECTED_RESOURCE_SESSION = 1073, + D3D12_MESSAGE_ID_DESTROY_CRYPTO_SESSION = 1074, + D3D12_MESSAGE_ID_DESTROY_CRYPTO_SESSION_POLICY = 1075, + D3D12_MESSAGE_ID_DESTROY_PROTECTED_RESOURCE_SESSION = 1076, + D3D12_MESSAGE_ID_PROTECTED_RESOURCE_SESSION_UNSUPPORTED = 1077, + D3D12_MESSAGE_ID_FENCE_INVALIDOPERATION = 1078, + D3D12_MESSAGE_ID_CREATEQUERY_HEAP_COPY_QUEUE_TIMESTAMPS_NOT_SUPPORTED = 1079, + D3D12_MESSAGE_ID_SAMPLEPOSITIONS_MISMATCH_DEFERRED = 1080, + D3D12_MESSAGE_ID_SAMPLEPOSITIONS_MISMATCH_RECORDTIME_ASSUMEDFROMFIRSTUSE = 1081, + D3D12_MESSAGE_ID_SAMPLEPOSITIONS_MISMATCH_RECORDTIME_ASSUMEDFROMCLEAR = 1082, + D3D12_MESSAGE_ID_CREATE_VIDEODECODERHEAP = 1083, + D3D12_MESSAGE_ID_LIVE_VIDEODECODERHEAP = 1084, + D3D12_MESSAGE_ID_DESTROY_VIDEODECODERHEAP = 1085, + D3D12_MESSAGE_ID_OPENEXISTINGHEAP_INVALIDARG_RETURN = 1086, + D3D12_MESSAGE_ID_OPENEXISTINGHEAP_OUTOFMEMORY_RETURN = 1087, + D3D12_MESSAGE_ID_OPENEXISTINGHEAP_INVALIDADDRESS = 1088, + D3D12_MESSAGE_ID_OPENEXISTINGHEAP_INVALIDHANDLE = 1089, + D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_INVALID_DEST = 1090, + D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_INVALID_MODE = 1091, + D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_INVALID_ALIGNMENT = 1092, + D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_NOT_SUPPORTED = 1093, + D3D12_MESSAGE_ID_SETVIEWINSTANCEMASK_INVALIDARGS = 1094, + D3D12_MESSAGE_ID_VIEW_INSTANCING_UNSUPPORTED = 1095, + D3D12_MESSAGE_ID_VIEW_INSTANCING_INVALIDARGS = 1096, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_MISMATCH_DECODE_REFERENCE_ONLY_FLAG = 1097, + D3D12_MESSAGE_ID_COPYRESOURCE_MISMATCH_DECODE_REFERENCE_ONLY_FLAG = 1098, + D3D12_MESSAGE_ID_CREATE_VIDEO_DECODE_HEAP_CAPS_FAILURE = 1099, + D3D12_MESSAGE_ID_CREATE_VIDEO_DECODE_HEAP_CAPS_UNSUPPORTED = 1100, + D3D12_MESSAGE_ID_VIDEO_DECODE_SUPPORT_INVALID_INPUT = 1101, + D3D12_MESSAGE_ID_CREATE_VIDEO_DECODER_UNSUPPORTED = 1102, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_METADATA_ERROR = 1103, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_VIEW_INSTANCING_VERTEX_SIZE_EXCEEDED = 1104, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RUNTIME_INTERNAL_ERROR = 1105, + D3D12_MESSAGE_ID_NO_VIDEO_API_SUPPORT = 1106, + D3D12_MESSAGE_ID_VIDEO_PROCESS_SUPPORT_INVALID_INPUT = 1107, + D3D12_MESSAGE_ID_CREATE_VIDEO_PROCESSOR_CAPS_FAILURE = 1108, + D3D12_MESSAGE_ID_VIDEO_PROCESS_SUPPORT_UNSUPPORTED_FORMAT = 1109, + D3D12_MESSAGE_ID_VIDEO_DECODE_FRAME_INVALID_ARGUMENT = 1110, + D3D12_MESSAGE_ID_ENQUEUE_MAKE_RESIDENT_INVALID_FLAGS = 1111, + D3D12_MESSAGE_ID_OPENEXISTINGHEAP_UNSUPPORTED = 1112, + D3D12_MESSAGE_ID_VIDEO_PROCESS_FRAMES_INVALID_ARGUMENT = 1113, + D3D12_MESSAGE_ID_VIDEO_DECODE_SUPPORT_UNSUPPORTED = 1114, + D3D12_MESSAGE_ID_CREATE_COMMANDRECORDER = 1115, + D3D12_MESSAGE_ID_LIVE_COMMANDRECORDER = 1116, + D3D12_MESSAGE_ID_DESTROY_COMMANDRECORDER = 1117, + D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_VIDEO_NOT_SUPPORTED = 1118, + D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_INVALID_SUPPORT_FLAGS = 1119, + D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_INVALID_FLAGS = 1120, + D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_MORE_RECORDERS_THAN_LOGICAL_PROCESSORS = 1121, + D3D12_MESSAGE_ID_CREATE_COMMANDPOOL = 1122, + D3D12_MESSAGE_ID_LIVE_COMMANDPOOL = 1123, + D3D12_MESSAGE_ID_DESTROY_COMMANDPOOL = 1124, + D3D12_MESSAGE_ID_CREATE_COMMAND_POOL_INVALID_FLAGS = 1125, + D3D12_MESSAGE_ID_CREATE_COMMAND_LIST_VIDEO_NOT_SUPPORTED = 1126, + D3D12_MESSAGE_ID_COMMAND_RECORDER_SUPPORT_FLAGS_MISMATCH = 1127, + D3D12_MESSAGE_ID_COMMAND_RECORDER_CONTENTION = 1128, + D3D12_MESSAGE_ID_COMMAND_RECORDER_USAGE_WITH_CREATECOMMANDLIST_COMMAND_LIST = 1129, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_USAGE_WITH_CREATECOMMANDLIST1_COMMAND_LIST = 1130, + D3D12_MESSAGE_ID_CANNOT_EXECUTE_EMPTY_COMMAND_LIST = 1131, + D3D12_MESSAGE_ID_CANNOT_RESET_COMMAND_POOL_WITH_OPEN_COMMAND_LISTS = 1132, + D3D12_MESSAGE_ID_CANNOT_USE_COMMAND_RECORDER_WITHOUT_CURRENT_TARGET = 1133, + D3D12_MESSAGE_ID_CANNOT_CHANGE_COMMAND_RECORDER_TARGET_WHILE_RECORDING = 1134, + D3D12_MESSAGE_ID_COMMAND_POOL_SYNC = 1135, + D3D12_MESSAGE_ID_EVICT_UNDERFLOW = 1136, + D3D12_MESSAGE_ID_CREATE_META_COMMAND = 1137, + D3D12_MESSAGE_ID_LIVE_META_COMMAND = 1138, + D3D12_MESSAGE_ID_DESTROY_META_COMMAND = 1139, + D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALID_DST_RESOURCE = 1140, + D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALID_SRC_RESOURCE = 1141, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DST_RESOURCE = 1142, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_SRC_RESOURCE = 1143, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_NULL_BUFFER = 1144, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_NULL_RESOURCE_DESC = 1145, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_UNSUPPORTED = 1146, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_BUFFER_DIMENSION = 1147, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_BUFFER_FLAGS = 1148, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_BUFFER_OFFSET = 1149, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_RESOURCE_DIMENSION = 1150, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_RESOURCE_FLAGS = 1151, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_OUTOFMEMORY_RETURN = 1152, + D3D12_MESSAGE_ID_CANNOT_CREATE_GRAPHICS_AND_VIDEO_COMMAND_RECORDER = 1153, + D3D12_MESSAGE_ID_UPDATETILEMAPPINGS_POSSIBLY_MISMATCHING_PROPERTIES = 1154, + D3D12_MESSAGE_ID_CREATE_COMMAND_LIST_INVALID_COMMAND_LIST_TYPE = 1155, + D3D12_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_INCOMPATIBLE_WITH_STRUCTURED_BUFFERS = 1156, + D3D12_MESSAGE_ID_COMPUTE_ONLY_DEVICE_OPERATION_UNSUPPORTED = 1157, + D3D12_MESSAGE_ID_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INVALID = 1158, + D3D12_MESSAGE_ID_EMIT_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_INVALID = 1159, + D3D12_MESSAGE_ID_COPY_RAYTRACING_ACCELERATION_STRUCTURE_INVALID = 1160, + D3D12_MESSAGE_ID_DISPATCH_RAYS_INVALID = 1161, + D3D12_MESSAGE_ID_GET_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_INVALID = 1162, + D3D12_MESSAGE_ID_CREATE_LIFETIMETRACKER = 1163, + D3D12_MESSAGE_ID_LIVE_LIFETIMETRACKER = 1164, + D3D12_MESSAGE_ID_DESTROY_LIFETIMETRACKER = 1165, + D3D12_MESSAGE_ID_DESTROYOWNEDOBJECT_OBJECTNOTOWNED = 1166, + D3D12_MESSAGE_ID_CREATE_TRACKEDWORKLOAD = 1167, + D3D12_MESSAGE_ID_LIVE_TRACKEDWORKLOAD = 1168, + D3D12_MESSAGE_ID_DESTROY_TRACKEDWORKLOAD = 1169, + D3D12_MESSAGE_ID_RENDER_PASS_ERROR = 1170, + D3D12_MESSAGE_ID_META_COMMAND_ID_INVALID = 1171, + D3D12_MESSAGE_ID_META_COMMAND_UNSUPPORTED_PARAMS = 1172, + D3D12_MESSAGE_ID_META_COMMAND_FAILED_ENUMERATION = 1173, + D3D12_MESSAGE_ID_META_COMMAND_PARAMETER_SIZE_MISMATCH = 1174, + D3D12_MESSAGE_ID_UNINITIALIZED_META_COMMAND = 1175, + D3D12_MESSAGE_ID_META_COMMAND_INVALID_GPU_VIRTUAL_ADDRESS = 1176, + D3D12_MESSAGE_ID_CREATE_VIDEOENCODECOMMANDLIST = 1177, + D3D12_MESSAGE_ID_LIVE_VIDEOENCODECOMMANDLIST = 1178, + D3D12_MESSAGE_ID_DESTROY_VIDEOENCODECOMMANDLIST = 1179, + D3D12_MESSAGE_ID_CREATE_VIDEOENCODECOMMANDQUEUE = 1180, + D3D12_MESSAGE_ID_LIVE_VIDEOENCODECOMMANDQUEUE = 1181, + D3D12_MESSAGE_ID_DESTROY_VIDEOENCODECOMMANDQUEUE = 1182, + D3D12_MESSAGE_ID_CREATE_VIDEOMOTIONESTIMATOR = 1183, + D3D12_MESSAGE_ID_LIVE_VIDEOMOTIONESTIMATOR = 1184, + D3D12_MESSAGE_ID_DESTROY_VIDEOMOTIONESTIMATOR = 1185, + D3D12_MESSAGE_ID_CREATE_VIDEOMOTIONVECTORHEAP = 1186, + D3D12_MESSAGE_ID_LIVE_VIDEOMOTIONVECTORHEAP = 1187, + D3D12_MESSAGE_ID_DESTROY_VIDEOMOTIONVECTORHEAP = 1188, + D3D12_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOADS = 1189, + D3D12_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOAD_PAIRS = 1190, + D3D12_MESSAGE_ID_OUT_OF_ORDER_TRACKED_WORKLOAD_PAIR = 1191, + D3D12_MESSAGE_ID_CANNOT_ADD_TRACKED_WORKLOAD = 1192, + D3D12_MESSAGE_ID_INCOMPLETE_TRACKED_WORKLOAD_PAIR = 1193, + D3D12_MESSAGE_ID_CREATE_STATE_OBJECT_ERROR = 1194, + D3D12_MESSAGE_ID_GET_SHADER_IDENTIFIER_ERROR = 1195, + D3D12_MESSAGE_ID_GET_SHADER_STACK_SIZE_ERROR = 1196, + D3D12_MESSAGE_ID_GET_PIPELINE_STACK_SIZE_ERROR = 1197, + D3D12_MESSAGE_ID_SET_PIPELINE_STACK_SIZE_ERROR = 1198, + D3D12_MESSAGE_ID_GET_SHADER_IDENTIFIER_SIZE_INVALID = 1199, + D3D12_MESSAGE_ID_CHECK_DRIVER_MATCHING_IDENTIFIER_INVALID = 1200, + D3D12_MESSAGE_ID_CHECK_DRIVER_MATCHING_IDENTIFIER_DRIVER_REPORTED_ISSUE = 1201, + D3D12_MESSAGE_ID_RENDER_PASS_INVALID_RESOURCE_BARRIER = 1202, + D3D12_MESSAGE_ID_RENDER_PASS_DISALLOWED_API_CALLED = 1203, + D3D12_MESSAGE_ID_RENDER_PASS_CANNOT_NEST_RENDER_PASSES = 1204, + D3D12_MESSAGE_ID_RENDER_PASS_CANNOT_END_WITHOUT_BEGIN = 1205, + D3D12_MESSAGE_ID_RENDER_PASS_CANNOT_CLOSE_COMMAND_LIST = 1206, + D3D12_MESSAGE_ID_RENDER_PASS_GPU_WORK_WHILE_SUSPENDED = 1207, + D3D12_MESSAGE_ID_RENDER_PASS_MISMATCHING_SUSPEND_RESUME = 1208, + D3D12_MESSAGE_ID_RENDER_PASS_NO_PRIOR_SUSPEND_WITHIN_EXECUTECOMMANDLISTS = 1209, + D3D12_MESSAGE_ID_RENDER_PASS_NO_SUBSEQUENT_RESUME_WITHIN_EXECUTECOMMANDLISTS = 1210, + D3D12_MESSAGE_ID_TRACKED_WORKLOAD_COMMAND_QUEUE_MISMATCH = 1211, + D3D12_MESSAGE_ID_TRACKED_WORKLOAD_NOT_SUPPORTED = 1212, + D3D12_MESSAGE_ID_RENDER_PASS_MISMATCHING_NO_ACCESS = 1213, + D3D12_MESSAGE_ID_RENDER_PASS_UNSUPPORTED_RESOLVE = 1214, + D3D12_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_INVALID_RESOURCE_PTR = 1215, + D3D12_MESSAGE_ID_WINDOWS7_FENCE_OUTOFORDER_SIGNAL = 1216, + D3D12_MESSAGE_ID_WINDOWS7_FENCE_OUTOFORDER_WAIT = 1217, + D3D12_MESSAGE_ID_VIDEO_CREATE_MOTION_ESTIMATOR_INVALID_ARGUMENT = 1218, + D3D12_MESSAGE_ID_VIDEO_CREATE_MOTION_VECTOR_HEAP_INVALID_ARGUMENT = 1219, + D3D12_MESSAGE_ID_ESTIMATE_MOTION_INVALID_ARGUMENT = 1220, + D3D12_MESSAGE_ID_RESOLVE_MOTION_VECTOR_HEAP_INVALID_ARGUMENT = 1221, + D3D12_MESSAGE_ID_GETGPUVIRTUALADDRESS_INVALID_HEAP_TYPE = 1222, + D3D12_MESSAGE_ID_SET_BACKGROUND_PROCESSING_MODE_INVALID_ARGUMENT = 1223, + D3D12_MESSAGE_ID_CREATE_COMMAND_LIST_INVALID_COMMAND_LIST_TYPE_FOR_FEATURE_LEVEL = 1224, + D3D12_MESSAGE_ID_CREATE_VIDEOEXTENSIONCOMMAND = 1225, + D3D12_MESSAGE_ID_LIVE_VIDEOEXTENSIONCOMMAND = 1226, + D3D12_MESSAGE_ID_DESTROY_VIDEOEXTENSIONCOMMAND = 1227, + D3D12_MESSAGE_ID_INVALID_VIDEO_EXTENSION_COMMAND_ID = 1228, + D3D12_MESSAGE_ID_VIDEO_EXTENSION_COMMAND_INVALID_ARGUMENT = 1229, + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_NOT_UNIQUE_IN_DXIL_LIBRARY = 1230, + D3D12_MESSAGE_ID_VARIABLE_SHADING_RATE_NOT_ALLOWED_WITH_TIR = 1231, + D3D12_MESSAGE_ID_GEOMETRY_SHADER_OUTPUTTING_BOTH_VIEWPORT_ARRAY_INDEX_AND_SHADING_RATE_NOT_SUPPORTED_ON_DEVICE = 1232, + D3D12_MESSAGE_ID_RSSETSHADING_RATE_INVALID_SHADING_RATE = 1233, + D3D12_MESSAGE_ID_RSSETSHADING_RATE_SHADING_RATE_NOT_PERMITTED_BY_CAP = 1234, + D3D12_MESSAGE_ID_RSSETSHADING_RATE_INVALID_COMBINER = 1235, + D3D12_MESSAGE_ID_RSSETSHADINGRATEIMAGE_REQUIRES_TIER_2 = 1236, + D3D12_MESSAGE_ID_RSSETSHADINGRATE_REQUIRES_TIER_1 = 1237, + D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_FORMAT = 1238, + D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_ARRAY_SIZE = 1239, + D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_MIP_LEVEL = 1240, + D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_SAMPLE_COUNT = 1241, + D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_SAMPLE_QUALITY = 1242, + D3D12_MESSAGE_ID_NON_RETAIL_SHADER_MODEL_WONT_VALIDATE = 1243, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_AS_ROOT_SIGNATURE_MISMATCH = 1244, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MS_ROOT_SIGNATURE_MISMATCH = 1245, + D3D12_MESSAGE_ID_ADD_TO_STATE_OBJECT_ERROR = 1246, + D3D12_MESSAGE_ID_CREATE_PROTECTED_RESOURCE_SESSION_INVALID_ARGUMENT = 1247, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MS_PSO_DESC_MISMATCH = 1248, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_MS_INCOMPLETE_TYPE = 1249, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_AS_NOT_MS_MISMATCH = 1250, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MS_NOT_PS_MISMATCH = 1251, + D3D12_MESSAGE_ID_NONZERO_SAMPLER_FEEDBACK_MIP_REGION_WITH_INCOMPATIBLE_FORMAT = 1252, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INPUTLAYOUT_SHADER_MISMATCH = 1253, + D3D12_MESSAGE_ID_EMPTY_DISPATCH = 1254, + D3D12_MESSAGE_ID_RESOURCE_FORMAT_REQUIRES_SAMPLER_FEEDBACK_CAPABILITY = 1255, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_MIP_REGION = 1256, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_DIMENSION = 1257, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_SAMPLE_COUNT = 1258, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_SAMPLE_QUALITY = 1259, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_LAYOUT = 1260, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_REQUIRES_UNORDERED_ACCESS_FLAG = 1261, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_CREATE_UAV_NULL_ARGUMENTS = 1262, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_UAV_REQUIRES_SAMPLER_FEEDBACK_CAPABILITY = 1263, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_CREATE_UAV_REQUIRES_FEEDBACK_MAP_FORMAT = 1264, + D3D12_MESSAGE_ID_CREATEMESHSHADER_INVALIDSHADERBYTECODE = 1265, + D3D12_MESSAGE_ID_CREATEMESHSHADER_OUTOFMEMORY = 1266, + D3D12_MESSAGE_ID_CREATEMESHSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE = 1267, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_SAMPLER_FEEDBACK_TRANSCODE_INVALID_FORMAT = 1268, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_SAMPLER_FEEDBACK_INVALID_MIP_LEVEL_COUNT = 1269, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_SAMPLER_FEEDBACK_TRANSCODE_ARRAY_SIZE_MISMATCH = 1270, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_CREATE_UAV_MISMATCHING_TARGETED_RESOURCE = 1271, + D3D12_MESSAGE_ID_CREATEMESHSHADER_OUTPUTEXCEEDSMAXSIZE = 1272, + D3D12_MESSAGE_ID_CREATEMESHSHADER_GROUPSHAREDEXCEEDSMAXSIZE = 1273, + D3D12_MESSAGE_ID_VERTEX_SHADER_OUTPUTTING_BOTH_VIEWPORT_ARRAY_INDEX_AND_SHADING_RATE_NOT_SUPPORTED_ON_DEVICE = 1274, + D3D12_MESSAGE_ID_MESH_SHADER_OUTPUTTING_BOTH_VIEWPORT_ARRAY_INDEX_AND_SHADING_RATE_NOT_SUPPORTED_ON_DEVICE = 1275, + D3D12_MESSAGE_ID_CREATEMESHSHADER_MISMATCHEDASMSPAYLOADSIZE = 1276, + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_UNBOUNDED_STATIC_DESCRIPTORS = 1277, + D3D12_MESSAGE_ID_CREATEAMPLIFICATIONSHADER_INVALIDSHADERBYTECODE = 1278, + D3D12_MESSAGE_ID_CREATEAMPLIFICATIONSHADER_OUTOFMEMORY = 1279, + D3D12_MESSAGE_ID_CREATE_SHADERCACHESESSION = 1280, + D3D12_MESSAGE_ID_LIVE_SHADERCACHESESSION = 1281, + D3D12_MESSAGE_ID_DESTROY_SHADERCACHESESSION = 1282, + D3D12_MESSAGE_ID_CREATESHADERCACHESESSION_INVALIDARGS = 1283, + D3D12_MESSAGE_ID_CREATESHADERCACHESESSION_DISABLED = 1284, + D3D12_MESSAGE_ID_CREATESHADERCACHESESSION_ALREADYOPEN = 1285, + D3D12_MESSAGE_ID_SHADERCACHECONTROL_DEVELOPERMODE = 1286, + D3D12_MESSAGE_ID_SHADERCACHECONTROL_INVALIDFLAGS = 1287, + D3D12_MESSAGE_ID_SHADERCACHECONTROL_STATEALREADYSET = 1288, + D3D12_MESSAGE_ID_SHADERCACHECONTROL_IGNOREDFLAG = 1289, + D3D12_MESSAGE_ID_SHADERCACHESESSION_STOREVALUE_ALREADYPRESENT = 1290, + D3D12_MESSAGE_ID_SHADERCACHESESSION_STOREVALUE_HASHCOLLISION = 1291, + D3D12_MESSAGE_ID_SHADERCACHESESSION_STOREVALUE_CACHEFULL = 1292, + D3D12_MESSAGE_ID_SHADERCACHESESSION_FINDVALUE_NOTFOUND = 1293, + D3D12_MESSAGE_ID_SHADERCACHESESSION_CORRUPT = 1294, + D3D12_MESSAGE_ID_SHADERCACHESESSION_DISABLED = 1295, + D3D12_MESSAGE_ID_OVERSIZED_DISPATCH = 1296, + D3D12_MESSAGE_ID_CREATE_VIDEOENCODER = 1297, + D3D12_MESSAGE_ID_LIVE_VIDEOENCODER = 1298, + D3D12_MESSAGE_ID_DESTROY_VIDEOENCODER = 1299, + D3D12_MESSAGE_ID_CREATE_VIDEOENCODERHEAP = 1300, + D3D12_MESSAGE_ID_LIVE_VIDEOENCODERHEAP = 1301, + D3D12_MESSAGE_ID_DESTROY_VIDEOENCODERHEAP = 1302, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_MISMATCH_ENCODE_REFERENCE_ONLY_FLAG = 1303, + D3D12_MESSAGE_ID_COPYRESOURCE_MISMATCH_ENCODE_REFERENCE_ONLY_FLAG = 1304, + D3D12_MESSAGE_ID_ENCODE_FRAME_INVALID_PARAMETERS = 1305, + D3D12_MESSAGE_ID_ENCODE_FRAME_UNSUPPORTED_PARAMETERS = 1306, + D3D12_MESSAGE_ID_RESOLVE_ENCODER_OUTPUT_METADATA_INVALID_PARAMETERS = 1307, + D3D12_MESSAGE_ID_RESOLVE_ENCODER_OUTPUT_METADATA_UNSUPPORTED_PARAMETERS = 1308, + D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_INVALID_PARAMETERS = 1309, + D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_UNSUPPORTED_PARAMETERS = 1310, + D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_HEAP_INVALID_PARAMETERS = 1311, + D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_HEAP_UNSUPPORTED_PARAMETERS = 1312, + D3D12_MESSAGE_ID_CREATECOMMANDLIST_NULL_COMMANDALLOCATOR = 1313, + D3D12_MESSAGE_ID_CLEAR_UNORDERED_ACCESS_VIEW_INVALID_DESCRIPTOR_HANDLE = 1314, + D3D12_MESSAGE_ID_DESCRIPTOR_HEAP_NOT_SHADER_VISIBLE = 1315, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_BLENDOP_WARNING = 1316, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_BLENDOPALPHA_WARNING = 1317, + D3D12_MESSAGE_ID_WRITE_COMBINE_PERFORMANCE_WARNING = 1318, + D3D12_MESSAGE_ID_RESOLVE_QUERY_INVALID_QUERY_STATE = 1319, + D3D12_MESSAGE_ID_SETPRIVATEDATA_NO_ACCESS = 1320, + D3D12_MESSAGE_ID_COMMAND_LIST_STATIC_DESCRIPTOR_SAMPLER_MODE_MISMATCH = 1321, + D3D12_MESSAGE_ID_GETCOPYABLEFOOTPRINTS_UNSUPPORTED_BUFFER_WIDTH = 1322, + D3D12_MESSAGE_ID_CREATEMESHSHADER_TOPOLOGY_MISMATCH = 1323, + D3D12_MESSAGE_ID_VRS_SUM_COMBINER_REQUIRES_CAPABILITY = 1324, + D3D12_MESSAGE_ID_SETTING_SHADING_RATE_FROM_MS_REQUIRES_CAPABILITY = 1325, + D3D12_MESSAGE_ID_SHADERCACHESESSION_SHADERCACHEDELETE_NOTSUPPORTED = 1326, + D3D12_MESSAGE_ID_SHADERCACHECONTROL_SHADERCACHECLEAR_NOTSUPPORTED = 1327, + D3D12_MESSAGE_ID_CREATERESOURCE_STATE_IGNORED = 1328, + D3D12_MESSAGE_ID_UNUSED_CROSS_EXECUTE_SPLIT_BARRIER = 1329, + D3D12_MESSAGE_ID_DEVICE_OPEN_SHARED_HANDLE_ACCESS_DENIED = 1330, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_VALUES = 1331, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_ACCESS = 1332, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_SYNC = 1333, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_LAYOUT = 1334, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_TYPE = 1335, + D3D12_MESSAGE_ID_OUT_OF_BOUNDS_BARRIER_SUBRESOURCE_RANGE = 1336, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_RESOURCE_DIMENSION = 1337, + D3D12_MESSAGE_ID_SET_SCISSOR_RECTS_INVALID_RECT = 1338, + D3D12_MESSAGE_ID_SHADING_RATE_SOURCE_REQUIRES_DIMENSION_TEXTURE2D = 1339, + D3D12_MESSAGE_ID_BUFFER_BARRIER_SUBREGION_OUT_OF_BOUNDS = 1340, + D3D12_MESSAGE_ID_UNSUPPORTED_BARRIER_LAYOUT = 1341, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALID_PARAMETERS = 1342, + D3D12_MESSAGE_ID_ENHANCED_BARRIERS_NOT_SUPPORTED = 1343, + D3D12_MESSAGE_ID_LEGACY_BARRIER_VALIDATION_FORCED_ON = 1346, + D3D12_MESSAGE_ID_EMPTY_ROOT_DESCRIPTOR_TABLE = 1347, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ELEMENT_OFFSET_UNALIGNED = 1348, + D3D12_MESSAGE_ID_ALPHA_BLEND_FACTOR_NOT_SUPPORTED = 1349, + D3D12_MESSAGE_ID_BARRIER_INTEROP_INVALID_LAYOUT = 1350, + D3D12_MESSAGE_ID_BARRIER_INTEROP_INVALID_STATE = 1351, + D3D12_MESSAGE_ID_GRAPHICS_PIPELINE_STATE_DESC_ZERO_SAMPLE_MASK = 1352, + D3D12_MESSAGE_ID_INDEPENDENT_STENCIL_REF_NOT_SUPPORTED = 1353, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INDEPENDENT_MASKS_UNSUPPORTED = 1354, + D3D12_MESSAGE_ID_TEXTURE_BARRIER_SUBRESOURCES_OUT_OF_BOUNDS = 1355, + D3D12_MESSAGE_ID_NON_OPTIMAL_BARRIER_ONLY_EXECUTE_COMMAND_LISTS = 1356, + D3D12_MESSAGE_ID_EXECUTE_INDIRECT_ZERO_COMMAND_COUNT = 1357, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_INCOMPATIBLE_TEXTURE_LAYOUT = 1358, + D3D12_MESSAGE_ID_DYNAMIC_INDEX_BUFFER_STRIP_CUT_NOT_SUPPORTED = 1359, + D3D12_MESSAGE_ID_PRIMITIVE_TOPOLOGY_TRIANGLE_FANS_NOT_SUPPORTED = 1360, + D3D12_MESSAGE_ID_CREATE_SAMPLER_COMPARISON_FUNC_IGNORED = 1361, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDHEAPTYPE = 1362, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDHEAPTYPE = 1363, + D3D12_MESSAGE_ID_DYNAMIC_DEPTH_BIAS_NOT_SUPPORTED = 1364, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_NON_WHOLE_DYNAMIC_DEPTH_BIAS = 1365, + D3D12_MESSAGE_ID_DYNAMIC_DEPTH_BIAS_FLAG_MISSING = 1366, + D3D12_MESSAGE_ID_DYNAMIC_DEPTH_BIAS_NO_PIPELINE = 1367, + D3D12_MESSAGE_ID_DYNAMIC_INDEX_BUFFER_STRIP_CUT_FLAG_MISSING = 1368, + D3D12_MESSAGE_ID_DYNAMIC_INDEX_BUFFER_STRIP_CUT_NO_PIPELINE = 1369, + D3D12_MESSAGE_ID_NONNORMALIZED_COORDINATE_SAMPLING_NOT_SUPPORTED = 1370, + D3D12_MESSAGE_ID_INVALID_CAST_TARGET = 1371, + D3D12_MESSAGE_ID_RENDER_PASS_COMMANDLIST_INVALID_END_STATE = 1372, + D3D12_MESSAGE_ID_RENDER_PASS_COMMANDLIST_INVALID_START_STATE = 1373, + D3D12_MESSAGE_ID_RENDER_PASS_MISMATCHING_ACCESS = 1374, + D3D12_MESSAGE_ID_RENDER_PASS_MISMATCHING_LOCAL_PRESERVE_PARAMETERS = 1375, + D3D12_MESSAGE_ID_RENDER_PASS_LOCAL_PRESERVE_RENDER_PARAMETERS_ERROR = 1376, + D3D12_MESSAGE_ID_RENDER_PASS_LOCAL_DEPTH_STENCIL_ERROR = 1377, + D3D12_MESSAGE_ID_DRAW_POTENTIALLY_OUTSIDE_OF_VALID_RENDER_AREA = 1378, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALID_LINERASTERIZATIONMODE = 1379, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDALIGNMENT_SMALLRESOURCE = 1380, + D3D12_MESSAGE_ID_GENERIC_DEVICE_OPERATION_UNSUPPORTED = 1381, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RENDER_TARGET_WRONG_WRITE_MASK = 1382, + D3D12_MESSAGE_ID_PROBABLE_PIX_EVENT_LEAK = 1383, + D3D12_MESSAGE_ID_PIX_EVENT_UNDERFLOW = 1384, + D3D12_MESSAGE_ID_RECREATEAT_INVALID_TARGET = 1385, + D3D12_MESSAGE_ID_RECREATEAT_INSUFFICIENT_SUPPORT = 1386, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_STRUCTURED_BUFFER_STRIDE_MISMATCH = 1387, + D3D12_MESSAGE_ID_DISPATCH_GRAPH_INVALID = 1388, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_TARGET_FORMAT_INVALID = 1389, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_TARGET_DIMENSION_INVALID = 1390, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_SOURCE_COLOR_FORMAT_INVALID = 1391, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_SOURCE_DEPTH_FORMAT_INVALID = 1392, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXPOSURE_SCALE_FORMAT_INVALID = 1393, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_ENGINE_CREATE_FLAGS_INVALID = 1394, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_LOAD_FAILURE = 1395, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_ENGINE_CREATION_ERROR = 1396, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_UPSCALER_CREATION_ERROR = 1397, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_UPSCALER_EXECUTION_ERROR = 1398, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_REGION_INVALID = 1399, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_TIME_DELTA_INVALID = 1400, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_REQUIRED_TEXTURE_IS_NULL = 1401, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_MOTION_VECTORS_FORMAT_INVALID = 1402, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_FLAGS_INVALID = 1403, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_FORMAT_INVALID = 1404, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_EXPOSURE_SCALE_TEXTURE_SIZE_INVALID = 1405, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_VARIANT_INDEX_OUT_OF_BOUNDS = 1406, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_VARIANT_ID_NOT_FOUND = 1407, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_DUPLICATE_VARIANT_ID = 1408, + D3D12_MESSAGE_ID_DIRECTSR_OUT_OF_MEMORY = 1409, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_UNEXPECTED_TEXTURE_IS_IGNORED = 1410, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EVICT_UNDERFLOW = 1411, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_OPTIONAL_TEXTURE_IS_NULL = 1412, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_INVALID_CAMERA_JITTER = 1413, + D3D12_MESSAGE_ID_CREATE_STATE_OBJECT_WARNING = 1414, + D3D12_MESSAGE_ID_GUID_TEXTURE_LAYOUT_UNSUPPORTED = 1415, + D3D12_MESSAGE_ID_RESOLVE_ENCODER_INPUT_PARAM_LAYOUT_INVALID_PARAMETERS = 1416, + D3D12_MESSAGE_ID_INVALID_BARRIER_ACCESS = 1417, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INSTANCE_COUNT_ZERO = 1418, + D3D12_MESSAGE_ID_DESCRIPTOR_HEAP_NOT_SET_BEFORE_ROOT_SIGNATURE_WITH_DIRECTLY_INDEXED_FLAG = 1419, + D3D12_MESSAGE_ID_DIFFERENT_DESCRIPTOR_HEAP_SET_AFTER_ROOT_SIGNATURE_WITH_DIRECTLY_INDEXED_FLAG = 1420, + D3D12_MESSAGE_ID_APPLICATION_SPECIFIC_DRIVER_STATE_NOT_SUPPORTED = 1421, + D3D12_MESSAGE_ID_RENDER_TARGET_OR_DEPTH_STENCIL_RESOUCE_NOT_INITIALIZED = 1422, + D3D12_MESSAGE_ID_BYTECODE_VALIDATION_ERROR = 1423, + D3D12_MESSAGE_ID_FENCE_ZERO_WAIT = 1424, + D3D12_MESSAGE_ID_NON_COMMON_RESOURCE_IN_COPY_QUEUE = 1425, + D3D12_MESSAGE_ID_D3D12_MESSAGES_END = ( D3D12_MESSAGE_ID_NON_COMMON_RESOURCE_IN_COPY_QUEUE + 1 ) + } D3D12_MESSAGE_ID; + +typedef struct D3D12_MESSAGE + { + D3D12_MESSAGE_CATEGORY Category; + D3D12_MESSAGE_SEVERITY Severity; + D3D12_MESSAGE_ID ID; + _Field_size_(DescriptionByteLength) const char *pDescription; + SIZE_T DescriptionByteLength; + } D3D12_MESSAGE; + +typedef struct D3D12_INFO_QUEUE_FILTER_DESC + { + UINT NumCategories; + _Field_size_(NumCategories) D3D12_MESSAGE_CATEGORY *pCategoryList; + UINT NumSeverities; + _Field_size_(NumSeverities) D3D12_MESSAGE_SEVERITY *pSeverityList; + UINT NumIDs; + _Field_size_(NumIDs) D3D12_MESSAGE_ID *pIDList; + } D3D12_INFO_QUEUE_FILTER_DESC; + +typedef struct D3D12_INFO_QUEUE_FILTER + { + D3D12_INFO_QUEUE_FILTER_DESC AllowList; + D3D12_INFO_QUEUE_FILTER_DESC DenyList; + } D3D12_INFO_QUEUE_FILTER; + +#define D3D12_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024 + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0018_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0018_v0_0_s_ifspec; + +#ifndef __ID3D12InfoQueue_INTERFACE_DEFINED__ +#define __ID3D12InfoQueue_INTERFACE_DEFINED__ + +/* interface ID3D12InfoQueue */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12InfoQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0742a90b-c387-483f-b946-30a7e4e61458") + ID3D12InfoQueue : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetMessageCountLimit( + _In_ UINT64 MessageCountLimit) = 0; + + virtual void STDMETHODCALLTYPE ClearStoredMessages( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMessage( + _In_ UINT64 MessageIndex, + _Out_writes_bytes_opt_(*pMessageByteLength) D3D12_MESSAGE *pMessage, + _Inout_ SIZE_T *pMessageByteLength) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesAllowedByStorageFilter( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDeniedByStorageFilter( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessages( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessagesAllowedByRetrievalFilter( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDiscardedByMessageCountLimit( void) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetMessageCountLimit( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddStorageFilterEntries( + _In_ D3D12_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStorageFilter( + _Out_writes_bytes_opt_(*pFilterByteLength) D3D12_INFO_QUEUE_FILTER *pFilter, + _Inout_ SIZE_T *pFilterByteLength) = 0; + + virtual void STDMETHODCALLTYPE ClearStorageFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushEmptyStorageFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushCopyOfStorageFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushStorageFilter( + _In_ D3D12_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual void STDMETHODCALLTYPE PopStorageFilter( void) = 0; + + virtual UINT STDMETHODCALLTYPE GetStorageFilterStackSize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRetrievalFilterEntries( + _In_ D3D12_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRetrievalFilter( + _Out_writes_bytes_opt_(*pFilterByteLength) D3D12_INFO_QUEUE_FILTER *pFilter, + _Inout_ SIZE_T *pFilterByteLength) = 0; + + virtual void STDMETHODCALLTYPE ClearRetrievalFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushEmptyRetrievalFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushCopyOfRetrievalFilter( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushRetrievalFilter( + _In_ D3D12_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual void STDMETHODCALLTYPE PopRetrievalFilter( void) = 0; + + virtual UINT STDMETHODCALLTYPE GetRetrievalFilterStackSize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMessage( + _In_ D3D12_MESSAGE_CATEGORY Category, + _In_ D3D12_MESSAGE_SEVERITY Severity, + _In_ D3D12_MESSAGE_ID ID, + _In_ LPCSTR pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddApplicationMessage( + _In_ D3D12_MESSAGE_SEVERITY Severity, + _In_ LPCSTR pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnCategory( + _In_ D3D12_MESSAGE_CATEGORY Category, + _In_ BOOL bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnSeverity( + _In_ D3D12_MESSAGE_SEVERITY Severity, + _In_ BOOL bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnID( + _In_ D3D12_MESSAGE_ID ID, + _In_ BOOL bEnable) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnCategory( + _In_ D3D12_MESSAGE_CATEGORY Category) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnSeverity( + _In_ D3D12_MESSAGE_SEVERITY Severity) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnID( + _In_ D3D12_MESSAGE_ID ID) = 0; + + virtual void STDMETHODCALLTYPE SetMuteDebugOutput( + _In_ BOOL bMute) = 0; + + virtual BOOL STDMETHODCALLTYPE GetMuteDebugOutput( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12InfoQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12InfoQueue * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, SetMessageCountLimit) + HRESULT ( STDMETHODCALLTYPE *SetMessageCountLimit )( + ID3D12InfoQueue * This, + _In_ UINT64 MessageCountLimit); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, ClearStoredMessages) + void ( STDMETHODCALLTYPE *ClearStoredMessages )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetMessage) + HRESULT ( STDMETHODCALLTYPE *GetMessage )( + ID3D12InfoQueue * This, + _In_ UINT64 MessageIndex, + _Out_writes_bytes_opt_(*pMessageByteLength) D3D12_MESSAGE *pMessage, + _Inout_ SIZE_T *pMessageByteLength); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetNumMessagesAllowedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesAllowedByStorageFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetNumMessagesDeniedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDeniedByStorageFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetNumStoredMessages) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessages )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetNumStoredMessagesAllowedByRetrievalFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessagesAllowedByRetrievalFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetNumMessagesDiscardedByMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDiscardedByMessageCountLimit )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetMessageCountLimit )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, AddStorageFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddStorageFilterEntries )( + ID3D12InfoQueue * This, + _In_ D3D12_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetStorageFilter) + HRESULT ( STDMETHODCALLTYPE *GetStorageFilter )( + ID3D12InfoQueue * This, + _Out_writes_bytes_opt_(*pFilterByteLength) D3D12_INFO_QUEUE_FILTER *pFilter, + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, ClearStorageFilter) + void ( STDMETHODCALLTYPE *ClearStorageFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushEmptyStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyStorageFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushCopyOfStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfStorageFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushStorageFilter )( + ID3D12InfoQueue * This, + _In_ D3D12_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PopStorageFilter) + void ( STDMETHODCALLTYPE *PopStorageFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetStorageFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetStorageFilterStackSize )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, AddRetrievalFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddRetrievalFilterEntries )( + ID3D12InfoQueue * This, + _In_ D3D12_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *GetRetrievalFilter )( + ID3D12InfoQueue * This, + _Out_writes_bytes_opt_(*pFilterByteLength) D3D12_INFO_QUEUE_FILTER *pFilter, + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, ClearRetrievalFilter) + void ( STDMETHODCALLTYPE *ClearRetrievalFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushEmptyRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyRetrievalFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushCopyOfRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfRetrievalFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushRetrievalFilter )( + ID3D12InfoQueue * This, + _In_ D3D12_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PopRetrievalFilter) + void ( STDMETHODCALLTYPE *PopRetrievalFilter )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetRetrievalFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetRetrievalFilterStackSize )( + ID3D12InfoQueue * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, AddMessage) + HRESULT ( STDMETHODCALLTYPE *AddMessage )( + ID3D12InfoQueue * This, + _In_ D3D12_MESSAGE_CATEGORY Category, + _In_ D3D12_MESSAGE_SEVERITY Severity, + _In_ D3D12_MESSAGE_ID ID, + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, AddApplicationMessage) + HRESULT ( STDMETHODCALLTYPE *AddApplicationMessage )( + ID3D12InfoQueue * This, + _In_ D3D12_MESSAGE_SEVERITY Severity, + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, SetBreakOnCategory) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnCategory )( + ID3D12InfoQueue * This, + _In_ D3D12_MESSAGE_CATEGORY Category, + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, SetBreakOnSeverity) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnSeverity )( + ID3D12InfoQueue * This, + _In_ D3D12_MESSAGE_SEVERITY Severity, + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, SetBreakOnID) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnID )( + ID3D12InfoQueue * This, + _In_ D3D12_MESSAGE_ID ID, + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetBreakOnCategory) + BOOL ( STDMETHODCALLTYPE *GetBreakOnCategory )( + ID3D12InfoQueue * This, + _In_ D3D12_MESSAGE_CATEGORY Category); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetBreakOnSeverity) + BOOL ( STDMETHODCALLTYPE *GetBreakOnSeverity )( + ID3D12InfoQueue * This, + _In_ D3D12_MESSAGE_SEVERITY Severity); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetBreakOnID) + BOOL ( STDMETHODCALLTYPE *GetBreakOnID )( + ID3D12InfoQueue * This, + _In_ D3D12_MESSAGE_ID ID); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, SetMuteDebugOutput) + void ( STDMETHODCALLTYPE *SetMuteDebugOutput )( + ID3D12InfoQueue * This, + _In_ BOOL bMute); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetMuteDebugOutput) + BOOL ( STDMETHODCALLTYPE *GetMuteDebugOutput )( + ID3D12InfoQueue * This); + + END_INTERFACE + } ID3D12InfoQueueVtbl; + + interface ID3D12InfoQueue + { + CONST_VTBL struct ID3D12InfoQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12InfoQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12InfoQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12InfoQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12InfoQueue_SetMessageCountLimit(This,MessageCountLimit) \ + ( (This)->lpVtbl -> SetMessageCountLimit(This,MessageCountLimit) ) + +#define ID3D12InfoQueue_ClearStoredMessages(This) \ + ( (This)->lpVtbl -> ClearStoredMessages(This) ) + +#define ID3D12InfoQueue_GetMessage(This,MessageIndex,pMessage,pMessageByteLength) \ + ( (This)->lpVtbl -> GetMessage(This,MessageIndex,pMessage,pMessageByteLength) ) + +#define ID3D12InfoQueue_GetNumMessagesAllowedByStorageFilter(This) \ + ( (This)->lpVtbl -> GetNumMessagesAllowedByStorageFilter(This) ) + +#define ID3D12InfoQueue_GetNumMessagesDeniedByStorageFilter(This) \ + ( (This)->lpVtbl -> GetNumMessagesDeniedByStorageFilter(This) ) + +#define ID3D12InfoQueue_GetNumStoredMessages(This) \ + ( (This)->lpVtbl -> GetNumStoredMessages(This) ) + +#define ID3D12InfoQueue_GetNumStoredMessagesAllowedByRetrievalFilter(This) \ + ( (This)->lpVtbl -> GetNumStoredMessagesAllowedByRetrievalFilter(This) ) + +#define ID3D12InfoQueue_GetNumMessagesDiscardedByMessageCountLimit(This) \ + ( (This)->lpVtbl -> GetNumMessagesDiscardedByMessageCountLimit(This) ) + +#define ID3D12InfoQueue_GetMessageCountLimit(This) \ + ( (This)->lpVtbl -> GetMessageCountLimit(This) ) + +#define ID3D12InfoQueue_AddStorageFilterEntries(This,pFilter) \ + ( (This)->lpVtbl -> AddStorageFilterEntries(This,pFilter) ) + +#define ID3D12InfoQueue_GetStorageFilter(This,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetStorageFilter(This,pFilter,pFilterByteLength) ) + +#define ID3D12InfoQueue_ClearStorageFilter(This) \ + ( (This)->lpVtbl -> ClearStorageFilter(This) ) + +#define ID3D12InfoQueue_PushEmptyStorageFilter(This) \ + ( (This)->lpVtbl -> PushEmptyStorageFilter(This) ) + +#define ID3D12InfoQueue_PushCopyOfStorageFilter(This) \ + ( (This)->lpVtbl -> PushCopyOfStorageFilter(This) ) + +#define ID3D12InfoQueue_PushStorageFilter(This,pFilter) \ + ( (This)->lpVtbl -> PushStorageFilter(This,pFilter) ) + +#define ID3D12InfoQueue_PopStorageFilter(This) \ + ( (This)->lpVtbl -> PopStorageFilter(This) ) + +#define ID3D12InfoQueue_GetStorageFilterStackSize(This) \ + ( (This)->lpVtbl -> GetStorageFilterStackSize(This) ) + +#define ID3D12InfoQueue_AddRetrievalFilterEntries(This,pFilter) \ + ( (This)->lpVtbl -> AddRetrievalFilterEntries(This,pFilter) ) + +#define ID3D12InfoQueue_GetRetrievalFilter(This,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetRetrievalFilter(This,pFilter,pFilterByteLength) ) + +#define ID3D12InfoQueue_ClearRetrievalFilter(This) \ + ( (This)->lpVtbl -> ClearRetrievalFilter(This) ) + +#define ID3D12InfoQueue_PushEmptyRetrievalFilter(This) \ + ( (This)->lpVtbl -> PushEmptyRetrievalFilter(This) ) + +#define ID3D12InfoQueue_PushCopyOfRetrievalFilter(This) \ + ( (This)->lpVtbl -> PushCopyOfRetrievalFilter(This) ) + +#define ID3D12InfoQueue_PushRetrievalFilter(This,pFilter) \ + ( (This)->lpVtbl -> PushRetrievalFilter(This,pFilter) ) + +#define ID3D12InfoQueue_PopRetrievalFilter(This) \ + ( (This)->lpVtbl -> PopRetrievalFilter(This) ) + +#define ID3D12InfoQueue_GetRetrievalFilterStackSize(This) \ + ( (This)->lpVtbl -> GetRetrievalFilterStackSize(This) ) + +#define ID3D12InfoQueue_AddMessage(This,Category,Severity,ID,pDescription) \ + ( (This)->lpVtbl -> AddMessage(This,Category,Severity,ID,pDescription) ) + +#define ID3D12InfoQueue_AddApplicationMessage(This,Severity,pDescription) \ + ( (This)->lpVtbl -> AddApplicationMessage(This,Severity,pDescription) ) + +#define ID3D12InfoQueue_SetBreakOnCategory(This,Category,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnCategory(This,Category,bEnable) ) + +#define ID3D12InfoQueue_SetBreakOnSeverity(This,Severity,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnSeverity(This,Severity,bEnable) ) + +#define ID3D12InfoQueue_SetBreakOnID(This,ID,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnID(This,ID,bEnable) ) + +#define ID3D12InfoQueue_GetBreakOnCategory(This,Category) \ + ( (This)->lpVtbl -> GetBreakOnCategory(This,Category) ) + +#define ID3D12InfoQueue_GetBreakOnSeverity(This,Severity) \ + ( (This)->lpVtbl -> GetBreakOnSeverity(This,Severity) ) + +#define ID3D12InfoQueue_GetBreakOnID(This,ID) \ + ( (This)->lpVtbl -> GetBreakOnID(This,ID) ) + +#define ID3D12InfoQueue_SetMuteDebugOutput(This,bMute) \ + ( (This)->lpVtbl -> SetMuteDebugOutput(This,bMute) ) + +#define ID3D12InfoQueue_GetMuteDebugOutput(This) \ + ( (This)->lpVtbl -> GetMuteDebugOutput(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12InfoQueue_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12sdklayers_0000_0019 */ +/* [local] */ + +typedef +enum D3D12_MESSAGE_CALLBACK_FLAGS + { + D3D12_MESSAGE_CALLBACK_FLAG_NONE = 0, + D3D12_MESSAGE_CALLBACK_IGNORE_FILTERS = 0x1 + } D3D12_MESSAGE_CALLBACK_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_MESSAGE_CALLBACK_FLAGS) +typedef void ( __stdcall *D3D12MessageFunc )( + D3D12_MESSAGE_CATEGORY Category, + D3D12_MESSAGE_SEVERITY Severity, + D3D12_MESSAGE_ID ID, + LPCSTR pDescription, + void *pContext); + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0019_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0019_v0_0_s_ifspec; + +#ifndef __ID3D12InfoQueue1_INTERFACE_DEFINED__ +#define __ID3D12InfoQueue1_INTERFACE_DEFINED__ + +/* interface ID3D12InfoQueue1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12InfoQueue1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2852dd88-b484-4c0c-b6b1-67168500e600") + ID3D12InfoQueue1 : public ID3D12InfoQueue + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterMessageCallback( + _In_ D3D12MessageFunc CallbackFunc, + _In_ D3D12_MESSAGE_CALLBACK_FLAGS CallbackFilterFlags, + _Inout_ void *pContext, + _Inout_ DWORD *pCallbackCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterMessageCallback( + _In_ DWORD CallbackCookie) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12InfoQueue1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12InfoQueue1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, SetMessageCountLimit) + HRESULT ( STDMETHODCALLTYPE *SetMessageCountLimit )( + ID3D12InfoQueue1 * This, + _In_ UINT64 MessageCountLimit); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, ClearStoredMessages) + void ( STDMETHODCALLTYPE *ClearStoredMessages )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetMessage) + HRESULT ( STDMETHODCALLTYPE *GetMessage )( + ID3D12InfoQueue1 * This, + _In_ UINT64 MessageIndex, + _Out_writes_bytes_opt_(*pMessageByteLength) D3D12_MESSAGE *pMessage, + _Inout_ SIZE_T *pMessageByteLength); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetNumMessagesAllowedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesAllowedByStorageFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetNumMessagesDeniedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDeniedByStorageFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetNumStoredMessages) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessages )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetNumStoredMessagesAllowedByRetrievalFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessagesAllowedByRetrievalFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetNumMessagesDiscardedByMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDiscardedByMessageCountLimit )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetMessageCountLimit )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, AddStorageFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddStorageFilterEntries )( + ID3D12InfoQueue1 * This, + _In_ D3D12_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetStorageFilter) + HRESULT ( STDMETHODCALLTYPE *GetStorageFilter )( + ID3D12InfoQueue1 * This, + _Out_writes_bytes_opt_(*pFilterByteLength) D3D12_INFO_QUEUE_FILTER *pFilter, + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, ClearStorageFilter) + void ( STDMETHODCALLTYPE *ClearStorageFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushEmptyStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyStorageFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushCopyOfStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfStorageFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushStorageFilter )( + ID3D12InfoQueue1 * This, + _In_ D3D12_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PopStorageFilter) + void ( STDMETHODCALLTYPE *PopStorageFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetStorageFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetStorageFilterStackSize )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, AddRetrievalFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddRetrievalFilterEntries )( + ID3D12InfoQueue1 * This, + _In_ D3D12_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *GetRetrievalFilter )( + ID3D12InfoQueue1 * This, + _Out_writes_bytes_opt_(*pFilterByteLength) D3D12_INFO_QUEUE_FILTER *pFilter, + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, ClearRetrievalFilter) + void ( STDMETHODCALLTYPE *ClearRetrievalFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushEmptyRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyRetrievalFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushCopyOfRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfRetrievalFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PushRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushRetrievalFilter )( + ID3D12InfoQueue1 * This, + _In_ D3D12_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, PopRetrievalFilter) + void ( STDMETHODCALLTYPE *PopRetrievalFilter )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetRetrievalFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetRetrievalFilterStackSize )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, AddMessage) + HRESULT ( STDMETHODCALLTYPE *AddMessage )( + ID3D12InfoQueue1 * This, + _In_ D3D12_MESSAGE_CATEGORY Category, + _In_ D3D12_MESSAGE_SEVERITY Severity, + _In_ D3D12_MESSAGE_ID ID, + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, AddApplicationMessage) + HRESULT ( STDMETHODCALLTYPE *AddApplicationMessage )( + ID3D12InfoQueue1 * This, + _In_ D3D12_MESSAGE_SEVERITY Severity, + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, SetBreakOnCategory) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnCategory )( + ID3D12InfoQueue1 * This, + _In_ D3D12_MESSAGE_CATEGORY Category, + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, SetBreakOnSeverity) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnSeverity )( + ID3D12InfoQueue1 * This, + _In_ D3D12_MESSAGE_SEVERITY Severity, + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, SetBreakOnID) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnID )( + ID3D12InfoQueue1 * This, + _In_ D3D12_MESSAGE_ID ID, + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetBreakOnCategory) + BOOL ( STDMETHODCALLTYPE *GetBreakOnCategory )( + ID3D12InfoQueue1 * This, + _In_ D3D12_MESSAGE_CATEGORY Category); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetBreakOnSeverity) + BOOL ( STDMETHODCALLTYPE *GetBreakOnSeverity )( + ID3D12InfoQueue1 * This, + _In_ D3D12_MESSAGE_SEVERITY Severity); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetBreakOnID) + BOOL ( STDMETHODCALLTYPE *GetBreakOnID )( + ID3D12InfoQueue1 * This, + _In_ D3D12_MESSAGE_ID ID); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, SetMuteDebugOutput) + void ( STDMETHODCALLTYPE *SetMuteDebugOutput )( + ID3D12InfoQueue1 * This, + _In_ BOOL bMute); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue, GetMuteDebugOutput) + BOOL ( STDMETHODCALLTYPE *GetMuteDebugOutput )( + ID3D12InfoQueue1 * This); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue1, RegisterMessageCallback) + HRESULT ( STDMETHODCALLTYPE *RegisterMessageCallback )( + ID3D12InfoQueue1 * This, + _In_ D3D12MessageFunc CallbackFunc, + _In_ D3D12_MESSAGE_CALLBACK_FLAGS CallbackFilterFlags, + _Inout_ void *pContext, + _Inout_ DWORD *pCallbackCookie); + + DECLSPEC_XFGVIRT(ID3D12InfoQueue1, UnregisterMessageCallback) + HRESULT ( STDMETHODCALLTYPE *UnregisterMessageCallback )( + ID3D12InfoQueue1 * This, + _In_ DWORD CallbackCookie); + + END_INTERFACE + } ID3D12InfoQueue1Vtbl; + + interface ID3D12InfoQueue1 + { + CONST_VTBL struct ID3D12InfoQueue1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12InfoQueue1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12InfoQueue1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12InfoQueue1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12InfoQueue1_SetMessageCountLimit(This,MessageCountLimit) \ + ( (This)->lpVtbl -> SetMessageCountLimit(This,MessageCountLimit) ) + +#define ID3D12InfoQueue1_ClearStoredMessages(This) \ + ( (This)->lpVtbl -> ClearStoredMessages(This) ) + +#define ID3D12InfoQueue1_GetMessage(This,MessageIndex,pMessage,pMessageByteLength) \ + ( (This)->lpVtbl -> GetMessage(This,MessageIndex,pMessage,pMessageByteLength) ) + +#define ID3D12InfoQueue1_GetNumMessagesAllowedByStorageFilter(This) \ + ( (This)->lpVtbl -> GetNumMessagesAllowedByStorageFilter(This) ) + +#define ID3D12InfoQueue1_GetNumMessagesDeniedByStorageFilter(This) \ + ( (This)->lpVtbl -> GetNumMessagesDeniedByStorageFilter(This) ) + +#define ID3D12InfoQueue1_GetNumStoredMessages(This) \ + ( (This)->lpVtbl -> GetNumStoredMessages(This) ) + +#define ID3D12InfoQueue1_GetNumStoredMessagesAllowedByRetrievalFilter(This) \ + ( (This)->lpVtbl -> GetNumStoredMessagesAllowedByRetrievalFilter(This) ) + +#define ID3D12InfoQueue1_GetNumMessagesDiscardedByMessageCountLimit(This) \ + ( (This)->lpVtbl -> GetNumMessagesDiscardedByMessageCountLimit(This) ) + +#define ID3D12InfoQueue1_GetMessageCountLimit(This) \ + ( (This)->lpVtbl -> GetMessageCountLimit(This) ) + +#define ID3D12InfoQueue1_AddStorageFilterEntries(This,pFilter) \ + ( (This)->lpVtbl -> AddStorageFilterEntries(This,pFilter) ) + +#define ID3D12InfoQueue1_GetStorageFilter(This,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetStorageFilter(This,pFilter,pFilterByteLength) ) + +#define ID3D12InfoQueue1_ClearStorageFilter(This) \ + ( (This)->lpVtbl -> ClearStorageFilter(This) ) + +#define ID3D12InfoQueue1_PushEmptyStorageFilter(This) \ + ( (This)->lpVtbl -> PushEmptyStorageFilter(This) ) + +#define ID3D12InfoQueue1_PushCopyOfStorageFilter(This) \ + ( (This)->lpVtbl -> PushCopyOfStorageFilter(This) ) + +#define ID3D12InfoQueue1_PushStorageFilter(This,pFilter) \ + ( (This)->lpVtbl -> PushStorageFilter(This,pFilter) ) + +#define ID3D12InfoQueue1_PopStorageFilter(This) \ + ( (This)->lpVtbl -> PopStorageFilter(This) ) + +#define ID3D12InfoQueue1_GetStorageFilterStackSize(This) \ + ( (This)->lpVtbl -> GetStorageFilterStackSize(This) ) + +#define ID3D12InfoQueue1_AddRetrievalFilterEntries(This,pFilter) \ + ( (This)->lpVtbl -> AddRetrievalFilterEntries(This,pFilter) ) + +#define ID3D12InfoQueue1_GetRetrievalFilter(This,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetRetrievalFilter(This,pFilter,pFilterByteLength) ) + +#define ID3D12InfoQueue1_ClearRetrievalFilter(This) \ + ( (This)->lpVtbl -> ClearRetrievalFilter(This) ) + +#define ID3D12InfoQueue1_PushEmptyRetrievalFilter(This) \ + ( (This)->lpVtbl -> PushEmptyRetrievalFilter(This) ) + +#define ID3D12InfoQueue1_PushCopyOfRetrievalFilter(This) \ + ( (This)->lpVtbl -> PushCopyOfRetrievalFilter(This) ) + +#define ID3D12InfoQueue1_PushRetrievalFilter(This,pFilter) \ + ( (This)->lpVtbl -> PushRetrievalFilter(This,pFilter) ) + +#define ID3D12InfoQueue1_PopRetrievalFilter(This) \ + ( (This)->lpVtbl -> PopRetrievalFilter(This) ) + +#define ID3D12InfoQueue1_GetRetrievalFilterStackSize(This) \ + ( (This)->lpVtbl -> GetRetrievalFilterStackSize(This) ) + +#define ID3D12InfoQueue1_AddMessage(This,Category,Severity,ID,pDescription) \ + ( (This)->lpVtbl -> AddMessage(This,Category,Severity,ID,pDescription) ) + +#define ID3D12InfoQueue1_AddApplicationMessage(This,Severity,pDescription) \ + ( (This)->lpVtbl -> AddApplicationMessage(This,Severity,pDescription) ) + +#define ID3D12InfoQueue1_SetBreakOnCategory(This,Category,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnCategory(This,Category,bEnable) ) + +#define ID3D12InfoQueue1_SetBreakOnSeverity(This,Severity,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnSeverity(This,Severity,bEnable) ) + +#define ID3D12InfoQueue1_SetBreakOnID(This,ID,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnID(This,ID,bEnable) ) + +#define ID3D12InfoQueue1_GetBreakOnCategory(This,Category) \ + ( (This)->lpVtbl -> GetBreakOnCategory(This,Category) ) + +#define ID3D12InfoQueue1_GetBreakOnSeverity(This,Severity) \ + ( (This)->lpVtbl -> GetBreakOnSeverity(This,Severity) ) + +#define ID3D12InfoQueue1_GetBreakOnID(This,ID) \ + ( (This)->lpVtbl -> GetBreakOnID(This,ID) ) + +#define ID3D12InfoQueue1_SetMuteDebugOutput(This,bMute) \ + ( (This)->lpVtbl -> SetMuteDebugOutput(This,bMute) ) + +#define ID3D12InfoQueue1_GetMuteDebugOutput(This) \ + ( (This)->lpVtbl -> GetMuteDebugOutput(This) ) + + +#define ID3D12InfoQueue1_RegisterMessageCallback(This,CallbackFunc,CallbackFilterFlags,pContext,pCallbackCookie) \ + ( (This)->lpVtbl -> RegisterMessageCallback(This,CallbackFunc,CallbackFilterFlags,pContext,pCallbackCookie) ) + +#define ID3D12InfoQueue1_UnregisterMessageCallback(This,CallbackCookie) \ + ( (This)->lpVtbl -> UnregisterMessageCallback(This,CallbackCookie) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12InfoQueue1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12sdklayers_0000_0020 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion +DEFINE_GUID(IID_ID3D12Debug,0x344488b7,0x6846,0x474b,0xb9,0x89,0xf0,0x27,0x44,0x82,0x45,0xe0); +DEFINE_GUID(IID_ID3D12Debug1,0xaffaa4ca,0x63fe,0x4d8e,0xb8,0xad,0x15,0x90,0x00,0xaf,0x43,0x04); +DEFINE_GUID(IID_ID3D12Debug2,0x93a665c4,0xa3b2,0x4e5d,0xb6,0x92,0xa2,0x6a,0xe1,0x4e,0x33,0x74); +DEFINE_GUID(IID_ID3D12Debug3,0x5cf4e58f,0xf671,0x4ff1,0xa5,0x42,0x36,0x86,0xe3,0xd1,0x53,0xd1); +DEFINE_GUID(IID_ID3D12Debug4,0x014b816e,0x9ec5,0x4a2f,0xa8,0x45,0xff,0xbe,0x44,0x1c,0xe1,0x3a); +DEFINE_GUID(IID_ID3D12Debug5,0x548d6b12,0x09fa,0x40e0,0x90,0x69,0x5d,0xcd,0x58,0x9a,0x52,0xc9); +DEFINE_GUID(IID_ID3D12Debug6,0x82a816d6,0x5d01,0x4157,0x97,0xd0,0x49,0x75,0x46,0x3f,0xd1,0xed); +DEFINE_GUID(IID_ID3D12DebugDevice1,0xa9b71770,0xd099,0x4a65,0xa6,0x98,0x3d,0xee,0x10,0x02,0x0f,0x88); +DEFINE_GUID(IID_ID3D12DebugDevice,0x3febd6dd,0x4973,0x4787,0x81,0x94,0xe4,0x5f,0x9e,0x28,0x92,0x3e); +DEFINE_GUID(IID_ID3D12DebugDevice2,0x60eccbc1,0x378d,0x4df1,0x89,0x4c,0xf8,0xac,0x5c,0xe4,0xd7,0xdd); +DEFINE_GUID(IID_ID3D12DebugCommandQueue,0x09e0bf36,0x54ac,0x484f,0x88,0x47,0x4b,0xae,0xea,0xb6,0x05,0x3a); +DEFINE_GUID(IID_ID3D12DebugCommandQueue1,0x16be35a2,0xbfd6,0x49f2,0xbc,0xae,0xea,0xae,0x4a,0xff,0x86,0x2d); +DEFINE_GUID(IID_ID3D12DebugCommandList1,0x102ca951,0x311b,0x4b01,0xb1,0x1f,0xec,0xb8,0x3e,0x06,0x1b,0x37); +DEFINE_GUID(IID_ID3D12DebugCommandList,0x09e0bf36,0x54ac,0x484f,0x88,0x47,0x4b,0xae,0xea,0xb6,0x05,0x3f); +DEFINE_GUID(IID_ID3D12DebugCommandList2,0xaeb575cf,0x4e06,0x48be,0xba,0x3b,0xc4,0x50,0xfc,0x96,0x65,0x2e); +DEFINE_GUID(IID_ID3D12DebugCommandList3,0x197d5e15,0x4d37,0x4d34,0xaf,0x78,0x72,0x4c,0xd7,0x0f,0xdb,0x1f); +DEFINE_GUID(IID_ID3D12SharingContract,0x0adf7d52,0x929c,0x4e61,0xad,0xdb,0xff,0xed,0x30,0xde,0x66,0xef); +DEFINE_GUID(IID_ID3D12ManualWriteTrackingResource,0x86ca3b85,0x49ad,0x4b6e,0xae,0xd5,0xed,0xdb,0x18,0x54,0x0f,0x41); +DEFINE_GUID(IID_ID3D12InfoQueue,0x0742a90b,0xc387,0x483f,0xb9,0x46,0x30,0xa7,0xe4,0xe6,0x14,0x58); +DEFINE_GUID(IID_ID3D12InfoQueue1,0x2852dd88,0xb484,0x4c0c,0xb6,0xb1,0x67,0x16,0x85,0x00,0xe6,0x00); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0020_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12sdklayers_0000_0020_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12sdklayers.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12sdklayers.idl new file mode 100644 index 0000000000000000000000000000000000000000..db6c2cb19f464af195e43c3a4f4adc7c100b57f2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12sdklayers.idl @@ -0,0 +1,1858 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ +import "oaidl.idl"; +import "ocidl.idl"; + +import "d3d12.idl"; + +cpp_quote("#include ") + +#pragma region App Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)") + +//================================================================================================================================== +// +// Debugging Layer +// +//================================================================================================================================== + +[uuid(344488b7-6846-474b-b989-f027448245e0), object, local, pointer_default(unique)] +interface ID3D12Debug + : IUnknown +{ + void EnableDebugLayer(); +} + +typedef enum D3D12_GPU_BASED_VALIDATION_FLAGS +{ + D3D12_GPU_BASED_VALIDATION_FLAGS_NONE = 0x00, + D3D12_GPU_BASED_VALIDATION_FLAGS_DISABLE_STATE_TRACKING = 0x01, + +} D3D12_GPU_BASED_VALIDATION_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_GPU_BASED_VALIDATION_FLAGS)") + + +[uuid(affaa4ca-63fe-4d8e-b8ad-159000af4304), object, local, pointer_default(unique)] +interface ID3D12Debug1 + : IUnknown +{ + void EnableDebugLayer(); + void SetEnableGPUBasedValidation(BOOL Enable); + void SetEnableSynchronizedCommandQueueValidation(BOOL Enable); +} + +[uuid(93a665c4-a3b2-4e5d-b692-a26ae14e3374), object, local, pointer_default(unique)] +interface ID3D12Debug2 + : IUnknown +{ + void SetGPUBasedValidationFlags(D3D12_GPU_BASED_VALIDATION_FLAGS Flags); +} + +[uuid(5cf4e58f-f671-4ff1-a542-3686e3d153d1), object, local, pointer_default(unique)] +interface ID3D12Debug3 + : ID3D12Debug +{ + void SetEnableGPUBasedValidation(BOOL Enable); + void SetEnableSynchronizedCommandQueueValidation(BOOL Enable); + void SetGPUBasedValidationFlags(D3D12_GPU_BASED_VALIDATION_FLAGS Flags); +} + +[uuid(014b816e-9ec5-4a2f-a845-ffbe441ce13a), object, local, pointer_default(unique)] +interface ID3D12Debug4 + : ID3D12Debug3 +{ + void DisableDebugLayer(); +} + +[uuid(548d6b12-09fa-40e0-9069-5dcd589a52c9), object, local, pointer_default(unique)] +interface ID3D12Debug5 + : ID3D12Debug4 +{ + void SetEnableAutoName(BOOL Enable); +} + +[uuid(82a816d6-5d01-4157-97d0-4975463fd1ed), object, local, pointer_default(unique)] +interface ID3D12Debug6 + : ID3D12Debug5 +{ + void SetForceLegacyBarrierValidation(BOOL Enable); +} + +cpp_quote("DEFINE_GUID(WKPDID_D3DAutoDebugObjectNameW, 0xd4902e36, 0x757a, 0x4942, 0x95, 0x94, 0xb6, 0x76, 0x9a, 0xfa, 0x43, 0xcd);") + +typedef enum D3D12_RLDO_FLAGS +{ + D3D12_RLDO_NONE = 0x0, + D3D12_RLDO_SUMMARY = 0x1, + D3D12_RLDO_DETAIL = 0x2, + D3D12_RLDO_IGNORE_INTERNAL = 0x4, + +} D3D12_RLDO_FLAGS; + +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS(D3D12_RLDO_FLAGS)") + +typedef enum D3D12_DEBUG_DEVICE_PARAMETER_TYPE +{ + D3D12_DEBUG_DEVICE_PARAMETER_FEATURE_FLAGS, + D3D12_DEBUG_DEVICE_PARAMETER_GPU_BASED_VALIDATION_SETTINGS, + D3D12_DEBUG_DEVICE_PARAMETER_GPU_SLOWDOWN_PERFORMANCE_FACTOR, + D3D12_DEBUG_DEVICE_PARAMETER_BYTECODE_VALIDATION_MODE +} D3D12_DEBUG_DEVICE_PARAMETER_TYPE; + +typedef enum D3D12_DEBUG_FEATURE +{ + D3D12_DEBUG_FEATURE_NONE = 0x00, + D3D12_DEBUG_FEATURE_ALLOW_BEHAVIOR_CHANGING_DEBUG_AIDS = 0x01, + D3D12_DEBUG_FEATURE_CONSERVATIVE_RESOURCE_STATE_TRACKING = 0x02, + D3D12_DEBUG_FEATURE_DISABLE_VIRTUALIZED_BUNDLES_VALIDATION = 0x04, + D3D12_DEBUG_FEATURE_EMULATE_WINDOWS7 = 0x08, +} D3D12_DEBUG_FEATURE; + +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_DEBUG_FEATURE)") + +typedef enum D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE +{ + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_NONE, + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_STATE_TRACKING_ONLY, + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_UNGUARDED_VALIDATION, + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE_GUARDED_VALIDATION, + NUM_D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODES +} D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE; + +typedef enum D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS +{ + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_NONE = 0x00, + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_FRONT_LOAD_CREATE_TRACKING_ONLY_SHADERS = 0x01, + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_FRONT_LOAD_CREATE_UNGUARDED_VALIDATION_SHADERS = 0x02, + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAG_FRONT_LOAD_CREATE_GUARDED_VALIDATION_SHADERS = 0x04, + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS_VALID_MASK = 0x07 +} D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS; + +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS)") + +typedef struct D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS +{ + UINT MaxMessagesPerCommandList; + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE DefaultShaderPatchMode; + D3D12_GPU_BASED_VALIDATION_PIPELINE_STATE_CREATE_FLAGS PipelineStateCreateFlags; +} D3D12_DEBUG_DEVICE_GPU_BASED_VALIDATION_SETTINGS; + +typedef struct D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR +{ + FLOAT SlowdownFactor; +} D3D12_DEBUG_DEVICE_GPU_SLOWDOWN_PERFORMANCE_FACTOR; + +typedef enum D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_MODE +{ + D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_DISABLED, + D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_WHEN_HASH_BYPASSED, + D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_ALL_BYTECODE, + D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_MODE_DEFAULT = + D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_WHEN_HASH_BYPASSED +} D3D12_DEBUG_DEVICE_BYTECODE_VALIDATION_MODE; + +[uuid(a9b71770-d099-4a65-a698-3dee10020f88), object, local, pointer_default(unique)] +interface ID3D12DebugDevice1 + : IUnknown +{ + HRESULT SetDebugParameter(D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, [annotation("_In_reads_bytes_(DataSize)")] const void *pData, UINT DataSize); + HRESULT GetDebugParameter(D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, [annotation("_Out_writes_bytes_(DataSize)")] void *pData, UINT DataSize); + HRESULT ReportLiveDeviceObjects( D3D12_RLDO_FLAGS Flags ); +} + +[uuid(3febd6dd-4973-4787-8194-e45f9e28923e), object, local, pointer_default(unique)] +interface ID3D12DebugDevice + : IUnknown +{ + HRESULT SetFeatureMask(D3D12_DEBUG_FEATURE Mask); + D3D12_DEBUG_FEATURE GetFeatureMask(); + HRESULT ReportLiveDeviceObjects(D3D12_RLDO_FLAGS Flags); +} + +[uuid(60eccbc1-378d-4df1-894c-f8ac5ce4d7dd), object, local, pointer_default(unique)] +interface ID3D12DebugDevice2 + : ID3D12DebugDevice +{ + HRESULT SetDebugParameter(D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, [annotation("_In_reads_bytes_(DataSize)")] const void *pData, UINT DataSize); + HRESULT GetDebugParameter(D3D12_DEBUG_DEVICE_PARAMETER_TYPE Type, [annotation("_Out_writes_bytes_(DataSize)")] void *pData, UINT DataSize); +} + +cpp_quote("DEFINE_GUID(DXGI_DEBUG_D3D12, 0xcf59a98c, 0xa950, 0x4326, 0x91, 0xef, 0x9b, 0xba, 0xa1, 0x7b, 0xfd, 0x95);") + + +[ uuid( 09e0bf36-54ac-484f-8847-4baeeab6053a ), object, local, pointer_default( unique ) ] +interface ID3D12DebugCommandQueue + : IUnknown +{ + BOOL AssertResourceState( [annotation("_In_")] ID3D12Resource* pResource, UINT Subresource, UINT State ); +// TODO: Stale BOOL AssertResourceStateThroughView( [annotation("_In_")] ID3D12View* pView, UINT State ); +}; + +[ uuid( 16be35a2-bfd6-49f2-bcae-eaae4aff862d ), object, local, pointer_default( unique ) ] +interface ID3D12DebugCommandQueue1 + : ID3D12DebugCommandQueue +{ + void AssertResourceAccess([annotation("_In_")] ID3D12Resource* pResource, UINT Subresource, D3D12_BARRIER_ACCESS Access); + void AssertTextureLayout([annotation("_In_")] ID3D12Resource* pResource, UINT Subresource, D3D12_BARRIER_LAYOUT Layout); +}; + +typedef enum D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE +{ + D3D12_DEBUG_COMMAND_LIST_PARAMETER_GPU_BASED_VALIDATION_SETTINGS, +} D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE; + +typedef struct D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS +{ + D3D12_GPU_BASED_VALIDATION_SHADER_PATCH_MODE ShaderPatchMode; +} D3D12_DEBUG_COMMAND_LIST_GPU_BASED_VALIDATION_SETTINGS; + +[ uuid( 102ca951-311b-4b01-b11f-ecb83e061b37 ), object, local, pointer_default( unique ) ] +interface ID3D12DebugCommandList1 + : IUnknown +{ + BOOL AssertResourceState( [annotation("_In_")] ID3D12Resource* pResource, UINT Subresource, UINT State ); + HRESULT SetDebugParameter(D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, [annotation("_In_reads_bytes_(DataSize)")] const void *pData, UINT DataSize); + HRESULT GetDebugParameter(D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, [annotation("_Out_writes_bytes_(DataSize)")] void *pData, UINT DataSize); +}; + +[uuid(09e0bf36-54ac-484f-8847-4baeeab6053f), object, local, pointer_default(unique)] +interface ID3D12DebugCommandList + : IUnknown +{ + BOOL AssertResourceState([annotation("_In_")] ID3D12Resource* pResource, UINT Subresource, UINT State); + HRESULT SetFeatureMask(D3D12_DEBUG_FEATURE Mask); + D3D12_DEBUG_FEATURE GetFeatureMask(); +}; + +[ uuid(aeb575cf-4e06-48be-ba3b-c450fc96652e), object, local, pointer_default( unique ) ] +interface ID3D12DebugCommandList2 + : ID3D12DebugCommandList +{ + HRESULT SetDebugParameter(D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, [annotation("_In_reads_bytes_(DataSize)")] const void *pData, UINT DataSize); + HRESULT GetDebugParameter(D3D12_DEBUG_COMMAND_LIST_PARAMETER_TYPE Type, [annotation("_Out_writes_bytes_(DataSize)")] void *pData, UINT DataSize); +}; + +[ uuid(197d5e15-4d37-4d34-af78-724cd70fdb1f), object, local, pointer_default( unique ) ] +interface ID3D12DebugCommandList3 + : ID3D12DebugCommandList2 +{ + void AssertResourceAccess([annotation("_In_")] ID3D12Resource* pResource, UINT Subresource, D3D12_BARRIER_ACCESS Access); + void AssertTextureLayout([annotation("_In_")] ID3D12Resource* pResource, UINT Subresource, D3D12_BARRIER_LAYOUT Layout); +}; + +[uuid(0adf7d52-929c-4e61-addb-ffed30de66ef), object, local, pointer_default(unique)] +interface ID3D12SharingContract + : IUnknown +{ + void Present([annotation("_In_")] ID3D12Resource* pResource, UINT Subresource, [annotation("_In_")] HWND window); + void SharedFenceSignal([annotation("_In_")] ID3D12Fence* pFence, UINT64 FenceValue); + void BeginCapturableWork([annotation("_In_")] REFGUID guid); + void EndCapturableWork([annotation("_In_")] REFGUID guid); +}; + +[uuid(86ca3b85-49ad-4b6e-aed5-eddb18540f41), object, local, pointer_default(unique)] +interface ID3D12ManualWriteTrackingResource + : IUnknown +{ + void TrackWrite( + UINT Subresource, + [annotation("_In_opt_")] const D3D12_RANGE* pWrittenRange); +}; + + +//================================================================================================================================== +// +// Info Queue +// +//================================================================================================================================== +typedef enum D3D12_MESSAGE_CATEGORY { + D3D12_MESSAGE_CATEGORY_APPLICATION_DEFINED, + D3D12_MESSAGE_CATEGORY_MISCELLANEOUS, + D3D12_MESSAGE_CATEGORY_INITIALIZATION, + D3D12_MESSAGE_CATEGORY_CLEANUP, + D3D12_MESSAGE_CATEGORY_COMPILATION, + D3D12_MESSAGE_CATEGORY_STATE_CREATION, + D3D12_MESSAGE_CATEGORY_STATE_SETTING, + D3D12_MESSAGE_CATEGORY_STATE_GETTING, + D3D12_MESSAGE_CATEGORY_RESOURCE_MANIPULATION, + D3D12_MESSAGE_CATEGORY_EXECUTION, + D3D12_MESSAGE_CATEGORY_SHADER, +} D3D12_MESSAGE_CATEGORY; + +typedef enum D3D12_MESSAGE_SEVERITY { + D3D12_MESSAGE_SEVERITY_CORRUPTION, + D3D12_MESSAGE_SEVERITY_ERROR, + D3D12_MESSAGE_SEVERITY_WARNING, + D3D12_MESSAGE_SEVERITY_INFO, + D3D12_MESSAGE_SEVERITY_MESSAGE +} D3D12_MESSAGE_SEVERITY; + +// Unique ID for every error +// CAUTION: New enum values should be appended to the list only. Inserting +// new enum values into the middle of the list results in changing the numeric +// values of some ID's from one SDK release to the next. This in-turn breaks +// PIX and customer tools/filters. +typedef enum D3D12_MESSAGE_ID { + D3D12_MESSAGE_ID_UNKNOWN = 0, + + //-------------------------------------------------------------------------- + // Messages Used by Core + // Message IDs generated from core are at the beginning + // since the core changes less frequently than the debug layer. + + // End of Messages used by Core + // ------------------------------------------------------------------------ + D3D12_MESSAGE_ID_STRING_FROM_APPLICATION = 1, + D3D12_MESSAGE_ID_CORRUPTED_THIS = 2, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER1 = 3, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER2 = 4, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER3 = 5, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER4 = 6, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER5 = 7, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER6 = 8, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER7 = 9, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER8 = 10, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER9 = 11, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER10 = 12, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER11 = 13, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER12 = 14, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER13 = 15, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER14 = 16, + D3D12_MESSAGE_ID_CORRUPTED_PARAMETER15 = 17, + D3D12_MESSAGE_ID_CORRUPTED_MULTITHREADING = 18, + D3D12_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY = 19, + + D3D12_MESSAGE_ID_GETPRIVATEDATA_MOREDATA = 20, + D3D12_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA = 21, + D3D12_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS = 24, + D3D12_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY = 25, + + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT = 26, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC = 27, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT = 28, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDVIDEOPLANESLICE = 29, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDPLANESLICE = 30, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS = 31, + D3D12_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE = 32, + + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT = 35, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT = 36, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC = 37, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT = 38, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDVIDEOPLANESLICE = 39, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDPLANESLICE = 40, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS = 41, + D3D12_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE = 42, + + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT = 45, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC = 46, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT = 47, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS = 48, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE = 49, + + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY = 52, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS = 53, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT = 54, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT = 55, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT = 56, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS = 57, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH = 58, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE = 59, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE = 60, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT = 61, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC = 62, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE = 63, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC = 64, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT = 65, + + D3D12_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY = 66, + D3D12_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE = 67, + D3D12_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE = 68, + + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY = 69, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE = 70, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE = 71, + + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY = 72, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE = 73, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE = 74, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES = 75, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED = 76, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED = 79, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT = 80, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT = 81, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT = 82, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT = 83, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION = 84, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT = 85, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE = 86, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC = 87, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH = 88, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS = 89, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX = 90, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE = 91, + + D3D12_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY = 92, + D3D12_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE = 93, + D3D12_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE = 94, + + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE = 95, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE = 96, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP = 97, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS = 98, + + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK = 100, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC = 101, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP = 102, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP = 103, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP = 104, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC = 105, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP = 106, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP = 107, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP = 108, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC = 109, + + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND = 111, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND = 112, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP = 113, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA = 114, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA = 115, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA = 116, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK = 117, + + D3D12_MESSAGE_ID_GET_PROGRAM_IDENTIFIER_ERROR = 118, + D3D12_MESSAGE_ID_GET_WORK_GRAPH_PROPERTIES_ERROR = 119, + D3D12_MESSAGE_ID_SET_PROGRAM_ERROR = 120, + + D3D12_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID = 135, + + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ROOT_SIGNATURE_NOT_SET = 200, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ROOT_SIGNATURE_MISMATCH = 201, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_NOT_SET = 202, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL = 209, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_TOO_SMALL = 210, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_BUFFER_NOT_SET = 211, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_BUFFER_FORMAT_INVALID = 212, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_BUFFER_TOO_SMALL = 213, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INVALID_PRIMITIVETOPOLOGY = 219, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_STRIDE_UNALIGNED = 221, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INDEX_OFFSET_UNALIGNED = 222, + D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT = 232, + D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT = 233, + D3D12_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT = 234, + + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC = 239, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC = 240, + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH = 245, + + D3D12_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT = 253, + + D3D12_MESSAGE_ID_LIVE_OBJECT_SUMMARY = 255, + D3D12_MESSAGE_ID_LIVE_DEVICE = 274, + D3D12_MESSAGE_ID_LIVE_SWAPCHAIN = 275, + + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFLAGS = 276, + D3D12_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDCLASSLINKAGE = 277, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDCLASSLINKAGE = 278, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAMTORASTERIZER = 280, + D3D12_MESSAGE_ID_CREATEPIXELSHADER_INVALIDCLASSLINKAGE = 283, + + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAM = 284, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDENTRIES = 285, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTRIDES = 286, + D3D12_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTRIDES = 287, + + D3D12_MESSAGE_ID_CREATEHULLSHADER_OUTOFMEMORY = 289, + D3D12_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERBYTECODE = 290, + D3D12_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERTYPE = 291, + D3D12_MESSAGE_ID_CREATEHULLSHADER_INVALIDCLASSLINKAGE = 292, + + D3D12_MESSAGE_ID_CREATEDOMAINSHADER_OUTOFMEMORY = 294, + D3D12_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERBYTECODE = 295, + D3D12_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERTYPE = 296, + D3D12_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCLASSLINKAGE = 297, + + D3D12_MESSAGE_ID_RESOURCE_UNMAP_NOTMAPPED = 310, + + D3D12_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_MISMATCHED_DATA_SIZE = 318, + + D3D12_MESSAGE_ID_CREATECOMPUTESHADER_OUTOFMEMORY = 321, + D3D12_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERBYTECODE = 322, + D3D12_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCLASSLINKAGE = 323, + + D3D12_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 331, + D3D12_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 332, + D3D12_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 333, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 334, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEFLOATOPSNOTSUPPORTED = 335, + D3D12_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEFLOATOPSNOTSUPPORTED = 336, + D3D12_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEFLOATOPSNOTSUPPORTED = 337, + + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDRESOURCE = 340, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDESC = 341, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT = 342, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDVIDEOPLANESLICE = 343, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDPLANESLICE = 344, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDIMENSIONS = 345, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_UNRECOGNIZEDFORMAT = 346, + D3D12_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFLAGS = 354, + + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFORCEDSAMPLECOUNT = 401, + + D3D12_MESSAGE_ID_CREATEBLENDSTATE_INVALIDLOGICOPS = 403, + + D3D12_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 410, + D3D12_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 412, + D3D12_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 414, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 416, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEEXTENSIONSNOTSUPPORTED = 418, + D3D12_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 420, + D3D12_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEEXTENSIONSNOTSUPPORTED = 422, + + D3D12_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_UAVSNOTSUPPORTED = 425, + D3D12_MESSAGE_ID_DEVICE_CREATEHULLSHADER_UAVSNOTSUPPORTED = 426, + D3D12_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_UAVSNOTSUPPORTED = 427, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_UAVSNOTSUPPORTED = 428, + D3D12_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UAVSNOTSUPPORTED = 429, + D3D12_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_UAVSNOTSUPPORTED = 430, + D3D12_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_UAVSNOTSUPPORTED = 431, + + D3D12_MESSAGE_ID_DEVICE_CLEARVIEW_INVALIDSOURCERECT = 447, + D3D12_MESSAGE_ID_DEVICE_CLEARVIEW_EMPTYRECT = 448, + + D3D12_MESSAGE_ID_UPDATETILEMAPPINGS_INVALID_PARAMETER = 493, + D3D12_MESSAGE_ID_COPYTILEMAPPINGS_INVALID_PARAMETER = 494, + + D3D12_MESSAGE_ID_CREATEDEVICE_INVALIDARGS = 506, + D3D12_MESSAGE_ID_CREATEDEVICE_WARNING = 507, + + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_TYPE = 519, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_NULL_POINTER = 520, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_SUBRESOURCE = 521, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_RESERVED_BITS = 522, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISSING_BIND_FLAGS = 523, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISMATCHING_MISC_FLAGS = 524, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_MATCHING_STATES = 525, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_COMBINATION = 526, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_BEFORE_AFTER_MISMATCH = 527, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_RESOURCE = 528, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_SAMPLE_COUNT = 529, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_FLAGS = 530, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_COMBINED_FLAGS = 531, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_FLAGS_FOR_FORMAT = 532, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_SPLIT_BARRIER = 533, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_UNMATCHED_END = 534, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_UNMATCHED_BEGIN = 535, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_FLAG = 536, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_COMMAND_LIST_TYPE = 537, + D3D12_MESSAGE_ID_INVALID_SUBRESOURCE_STATE = 538, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_CONTENTION = 540, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_RESET = 541, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_RESET_BUNDLE = 542, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_CANNOT_RESET = 543, + D3D12_MESSAGE_ID_COMMAND_LIST_OPEN = 544, + D3D12_MESSAGE_ID_INVALID_BUNDLE_API = 546, + D3D12_MESSAGE_ID_COMMAND_LIST_CLOSED = 547, + D3D12_MESSAGE_ID_WRONG_COMMAND_ALLOCATOR_TYPE = 549, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_SYNC = 552, + D3D12_MESSAGE_ID_COMMAND_LIST_SYNC = 553, + D3D12_MESSAGE_ID_SET_DESCRIPTOR_HEAP_INVALID = 554, + + D3D12_MESSAGE_ID_CREATE_COMMANDQUEUE = 557, + D3D12_MESSAGE_ID_CREATE_COMMANDALLOCATOR = 558, + D3D12_MESSAGE_ID_CREATE_PIPELINESTATE = 559, + D3D12_MESSAGE_ID_CREATE_COMMANDLIST12 = 560, + D3D12_MESSAGE_ID_CREATE_RESOURCE = 562, + D3D12_MESSAGE_ID_CREATE_DESCRIPTORHEAP = 563, + D3D12_MESSAGE_ID_CREATE_ROOTSIGNATURE = 564, + D3D12_MESSAGE_ID_CREATE_LIBRARY = 565, + D3D12_MESSAGE_ID_CREATE_HEAP = 566, + D3D12_MESSAGE_ID_CREATE_MONITOREDFENCE = 567, + D3D12_MESSAGE_ID_CREATE_QUERYHEAP = 568, + D3D12_MESSAGE_ID_CREATE_COMMANDSIGNATURE = 569, + + D3D12_MESSAGE_ID_LIVE_COMMANDQUEUE = 570, + D3D12_MESSAGE_ID_LIVE_COMMANDALLOCATOR = 571, + D3D12_MESSAGE_ID_LIVE_PIPELINESTATE = 572, + D3D12_MESSAGE_ID_LIVE_COMMANDLIST12 = 573, + D3D12_MESSAGE_ID_LIVE_RESOURCE = 575, + D3D12_MESSAGE_ID_LIVE_DESCRIPTORHEAP = 576, + D3D12_MESSAGE_ID_LIVE_ROOTSIGNATURE = 577, + D3D12_MESSAGE_ID_LIVE_LIBRARY = 578, + D3D12_MESSAGE_ID_LIVE_HEAP = 579, + D3D12_MESSAGE_ID_LIVE_MONITOREDFENCE = 580, + D3D12_MESSAGE_ID_LIVE_QUERYHEAP = 581, + D3D12_MESSAGE_ID_LIVE_COMMANDSIGNATURE = 582, + + D3D12_MESSAGE_ID_DESTROY_COMMANDQUEUE = 583, + D3D12_MESSAGE_ID_DESTROY_COMMANDALLOCATOR = 584, + D3D12_MESSAGE_ID_DESTROY_PIPELINESTATE = 585, + D3D12_MESSAGE_ID_DESTROY_COMMANDLIST12 = 586, + D3D12_MESSAGE_ID_DESTROY_RESOURCE = 588, + D3D12_MESSAGE_ID_DESTROY_DESCRIPTORHEAP = 589, + D3D12_MESSAGE_ID_DESTROY_ROOTSIGNATURE = 590, + D3D12_MESSAGE_ID_DESTROY_LIBRARY = 591, + D3D12_MESSAGE_ID_DESTROY_HEAP = 592, + D3D12_MESSAGE_ID_DESTROY_MONITOREDFENCE = 593, + D3D12_MESSAGE_ID_DESTROY_QUERYHEAP = 594, + D3D12_MESSAGE_ID_DESTROY_COMMANDSIGNATURE = 595, + + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDDIMENSIONS = 597, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDMISCFLAGS = 599, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDARG_RETURN = 602, + D3D12_MESSAGE_ID_CREATERESOURCE_OUTOFMEMORY_RETURN = 603, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDDESC = 604, + // This was shipped, but is no longer used. Do not reuse. + //D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDINITIALSTATE = 605, + D3D12_MESSAGE_ID_POSSIBLY_INVALID_SUBRESOURCE_STATE = 607, + D3D12_MESSAGE_ID_INVALID_USE_OF_NON_RESIDENT_RESOURCE = 608, + D3D12_MESSAGE_ID_POSSIBLE_INVALID_USE_OF_NON_RESIDENT_RESOURCE = 609, + D3D12_MESSAGE_ID_BUNDLE_PIPELINE_STATE_MISMATCH = 610, + D3D12_MESSAGE_ID_PRIMITIVE_TOPOLOGY_MISMATCH_PIPELINE_STATE = 611, + D3D12_MESSAGE_ID_RENDER_TARGET_FORMAT_MISMATCH_PIPELINE_STATE = 613, + D3D12_MESSAGE_ID_RENDER_TARGET_SAMPLE_DESC_MISMATCH_PIPELINE_STATE = 614, + D3D12_MESSAGE_ID_DEPTH_STENCIL_FORMAT_MISMATCH_PIPELINE_STATE = 615, + D3D12_MESSAGE_ID_DEPTH_STENCIL_SAMPLE_DESC_MISMATCH_PIPELINE_STATE = 616, + D3D12_MESSAGE_ID_CREATESHADER_INVALIDBYTECODE = 622, + D3D12_MESSAGE_ID_CREATEHEAP_NULLDESC = 623, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDSIZE = 624, + D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDHEAPTYPE = 625, + D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDCPUPAGEPROPERTIES = 626, + D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDMEMORYPOOL = 627, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDPROPERTIES = 628, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDALIGNMENT = 629, + D3D12_MESSAGE_ID_CREATEHEAP_UNRECOGNIZEDMISCFLAGS = 630, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDMISCFLAGS = 631, + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDARG_RETURN = 632, + D3D12_MESSAGE_ID_CREATEHEAP_OUTOFMEMORY_RETURN = 633, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_NULLHEAPPROPERTIES = 634, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDHEAPTYPE = 635, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDCPUPAGEPROPERTIES = 636, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDMEMORYPOOL = 637, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDHEAPPROPERTIES = 638, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_UNRECOGNIZEDHEAPMISCFLAGS = 639, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDHEAPMISCFLAGS = 640, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDARG_RETURN = 641, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_OUTOFMEMORY_RETURN = 642, + D3D12_MESSAGE_ID_GETCUSTOMHEAPPROPERTIES_UNRECOGNIZEDHEAPTYPE = 643, + D3D12_MESSAGE_ID_GETCUSTOMHEAPPROPERTIES_INVALIDHEAPTYPE = 644, + D3D12_MESSAGE_ID_CREATE_DESCRIPTOR_HEAP_INVALID_DESC = 645, + D3D12_MESSAGE_ID_INVALID_DESCRIPTOR_HANDLE = 646, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALID_CONSERVATIVERASTERMODE = 647, + D3D12_MESSAGE_ID_CREATE_CONSTANT_BUFFER_VIEW_INVALID_RESOURCE = 649, + D3D12_MESSAGE_ID_CREATE_CONSTANT_BUFFER_VIEW_INVALID_DESC = 650, + D3D12_MESSAGE_ID_CREATE_UNORDEREDACCESS_VIEW_INVALID_COUNTER_USAGE = 652, + D3D12_MESSAGE_ID_COPY_DESCRIPTORS_INVALID_RANGES = 653, + D3D12_MESSAGE_ID_COPY_DESCRIPTORS_WRITE_ONLY_DESCRIPTOR = 654, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RTV_FORMAT_NOT_UNKNOWN = 655, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_RENDER_TARGET_COUNT = 656, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_VERTEX_SHADER_NOT_SET = 657, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INPUTLAYOUT_NOT_SET = 658, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_HS_DS_SIGNATURE_MISMATCH = 659, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_REGISTERINDEX = 660, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_COMPONENTTYPE = 661, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_REGISTERMASK = 662, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_SYSTEMVALUE = 663, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS = 664, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_MINPRECISION = 665, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND = 666, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_XOR_DS_MISMATCH = 667, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HULL_SHADER_INPUT_TOPOLOGY_MISMATCH = 668, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_DS_CONTROL_POINT_COUNT_MISMATCH = 669, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_DS_TESSELLATOR_DOMAIN_MISMATCH = 670, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN = 671, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_USE_OF_FORCED_SAMPLE_COUNT = 672, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_PRIMITIVETOPOLOGY = 673, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_SYSTEMVALUE = 674, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 = 675, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING = 676, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_PS_OUTPUT_TYPE_MISMATCH = 677, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_OM_RENDER_TARGET_DOES_NOT_SUPPORT_LOGIC_OPS = 678, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RENDERTARGETVIEW_NOT_SET = 679, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_DEPTHSTENCILVIEW_NOT_SET = 680, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_GS_INPUT_PRIMITIVE_MISMATCH = 681, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_POSITION_NOT_PRESENT = 682, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MISSING_ROOT_SIGNATURE_FLAGS = 683, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_INDEX_BUFFER_PROPERTIES = 684, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INVALID_SAMPLE_DESC = 685, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_HS_ROOT_SIGNATURE_MISMATCH = 686, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_DS_ROOT_SIGNATURE_MISMATCH = 687, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_VS_ROOT_SIGNATURE_MISMATCH = 688, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_GS_ROOT_SIGNATURE_MISMATCH = 689, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_PS_ROOT_SIGNATURE_MISMATCH = 690, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MISSING_ROOT_SIGNATURE = 691, + D3D12_MESSAGE_ID_EXECUTE_BUNDLE_OPEN_BUNDLE = 692, + D3D12_MESSAGE_ID_EXECUTE_BUNDLE_DESCRIPTOR_HEAP_MISMATCH = 693, + D3D12_MESSAGE_ID_EXECUTE_BUNDLE_TYPE = 694, + D3D12_MESSAGE_ID_DRAW_EMPTY_SCISSOR_RECTANGLE = 695, + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_BLOB_NOT_FOUND = 696, + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_DESERIALIZE_FAILED = 697, + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_INVALID_CONFIGURATION = 698, + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_NOT_SUPPORTED_ON_DEVICE = 699, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_NULLRESOURCEPROPERTIES = 700, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_NULLHEAP = 701, + D3D12_MESSAGE_ID_GETRESOURCEALLOCATIONINFO_INVALIDRDESCS = 702, + D3D12_MESSAGE_ID_MAKERESIDENT_NULLOBJECTARRAY = 703, + D3D12_MESSAGE_ID_EVICT_NULLOBJECTARRAY = 705, + D3D12_MESSAGE_ID_SET_DESCRIPTOR_TABLE_INVALID = 708, + D3D12_MESSAGE_ID_SET_ROOT_CONSTANT_INVALID = 709, + D3D12_MESSAGE_ID_SET_ROOT_CONSTANT_BUFFER_VIEW_INVALID = 710, + D3D12_MESSAGE_ID_SET_ROOT_SHADER_RESOURCE_VIEW_INVALID = 711, + D3D12_MESSAGE_ID_SET_ROOT_UNORDERED_ACCESS_VIEW_INVALID = 712, + D3D12_MESSAGE_ID_SET_VERTEX_BUFFERS_INVALID_DESC = 713, + D3D12_MESSAGE_ID_SET_INDEX_BUFFER_INVALID_DESC = 715, + D3D12_MESSAGE_ID_SET_STREAM_OUTPUT_BUFFERS_INVALID_DESC = 717, + D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDDIMENSIONALITY = 718, + D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDLAYOUT = 719, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDDIMENSIONALITY = 720, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDALIGNMENT = 721, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDMIPLEVELS = 722, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDSAMPLEDESC = 723, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDLAYOUT = 724, + D3D12_MESSAGE_ID_SET_INDEX_BUFFER_INVALID = 725, + D3D12_MESSAGE_ID_SET_VERTEX_BUFFERS_INVALID = 726, + D3D12_MESSAGE_ID_SET_STREAM_OUTPUT_BUFFERS_INVALID = 727, + D3D12_MESSAGE_ID_SET_RENDER_TARGETS_INVALID = 728, + D3D12_MESSAGE_ID_CREATEQUERY_HEAP_INVALID_PARAMETERS = 729, + D3D12_MESSAGE_ID_BEGIN_END_QUERY_INVALID_PARAMETERS = 731, + D3D12_MESSAGE_ID_CLOSE_COMMAND_LIST_OPEN_QUERY = 732, + D3D12_MESSAGE_ID_RESOLVE_QUERY_DATA_INVALID_PARAMETERS = 733, + D3D12_MESSAGE_ID_SET_PREDICATION_INVALID_PARAMETERS = 734, + D3D12_MESSAGE_ID_TIMESTAMPS_NOT_SUPPORTED = 735, + // This was shipped, but is no longer used. Do not reuse. + //D3D12_MESSAGE_ID_UNSTABLE_POWER_STATE = 736, + D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDFORMAT = 737, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDFORMAT = 738, + D3D12_MESSAGE_ID_GETCOPYABLEFOOTPRINTS_INVALIDSUBRESOURCERANGE = 739, + D3D12_MESSAGE_ID_GETCOPYABLEFOOTPRINTS_INVALIDBASEOFFSET = 740, + // Note: These are the same as the above two, with the original (incorrect) name + D3D12_MESSAGE_ID_GETCOPYABLELAYOUT_INVALIDSUBRESOURCERANGE = 739, + D3D12_MESSAGE_ID_GETCOPYABLELAYOUT_INVALIDBASEOFFSET = 740, + D3D12_MESSAGE_ID_RESOURCE_BARRIER_INVALID_HEAP = 741, + D3D12_MESSAGE_ID_CREATE_SAMPLER_INVALID = 742, + D3D12_MESSAGE_ID_CREATECOMMANDSIGNATURE_INVALID = 743, + D3D12_MESSAGE_ID_EXECUTE_INDIRECT_INVALID_PARAMETERS = 744, + D3D12_MESSAGE_ID_GETGPUVIRTUALADDRESS_INVALID_RESOURCE_DIMENSION = 745, + + // These values shipped, but are no longer used. Do not reuse. + //D3D12_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDCONTEXTTYPE = 746, + //D3D12_MESSAGE_ID_CREATEQUERYORPREDICATE_DECODENOTSUPPORTED = 747, + //D3D12_MESSAGE_ID_CREATEQUERYORPREDICATE_ENCODENOTSUPPORTED = 748, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDCLEARVALUE = 815, + D3D12_MESSAGE_ID_CREATERESOURCE_UNRECOGNIZEDCLEARVALUEFORMAT = 816, + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDCLEARVALUEFORMAT = 817, + D3D12_MESSAGE_ID_CREATERESOURCE_CLEARVALUEDENORMFLUSH = 818, + D3D12_MESSAGE_ID_CLEARRENDERTARGETVIEW_MISMATCHINGCLEARVALUE = 820, + D3D12_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_MISMATCHINGCLEARVALUE = 821, + D3D12_MESSAGE_ID_MAP_INVALIDHEAP = 822, + D3D12_MESSAGE_ID_UNMAP_INVALIDHEAP = 823, + D3D12_MESSAGE_ID_MAP_INVALIDRESOURCE = 824, + D3D12_MESSAGE_ID_UNMAP_INVALIDRESOURCE = 825, + D3D12_MESSAGE_ID_MAP_INVALIDSUBRESOURCE = 826, + D3D12_MESSAGE_ID_UNMAP_INVALIDSUBRESOURCE = 827, + D3D12_MESSAGE_ID_MAP_INVALIDRANGE = 828, + D3D12_MESSAGE_ID_UNMAP_INVALIDRANGE = 829, + D3D12_MESSAGE_ID_MAP_INVALIDDATAPOINTER = 832, + D3D12_MESSAGE_ID_MAP_INVALIDARG_RETURN = 833, + D3D12_MESSAGE_ID_MAP_OUTOFMEMORY_RETURN = 834, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_BUNDLENOTSUPPORTED = 835, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_COMMANDLISTMISMATCH = 836, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_OPENCOMMANDLIST = 837, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_FAILEDCOMMANDLIST = 838, + D3D12_MESSAGE_ID_COPYBUFFERREGION_NULLDST = 839, + D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALIDDSTRESOURCEDIMENSION = 840, + D3D12_MESSAGE_ID_COPYBUFFERREGION_DSTRANGEOUTOFBOUNDS = 841, + D3D12_MESSAGE_ID_COPYBUFFERREGION_NULLSRC = 842, + D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALIDSRCRESOURCEDIMENSION = 843, + D3D12_MESSAGE_ID_COPYBUFFERREGION_SRCRANGEOUTOFBOUNDS = 844, + D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALIDCOPYFLAGS = 845, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_NULLDST = 846, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDDSTTYPE = 847, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTRESOURCEDIMENSION = 848, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTRESOURCE = 849, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTSUBRESOURCE = 850, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTOFFSET = 851, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDDSTFORMAT = 852, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTFORMAT = 853, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTDIMENSIONS = 854, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTROWPITCH = 855, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTPLACEMENT = 856, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTDSPLACEDFOOTPRINTFORMAT = 857, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_DSTREGIONOUTOFBOUNDS = 858, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_NULLSRC = 859, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDSRCTYPE = 860, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCRESOURCEDIMENSION = 861, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCRESOURCE = 862, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCSUBRESOURCE = 863, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCOFFSET = 864, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_UNRECOGNIZEDSRCFORMAT = 865, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCFORMAT = 866, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCDIMENSIONS = 867, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCROWPITCH = 868, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCPLACEMENT = 869, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCDSPLACEDFOOTPRINTFORMAT = 870, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_SRCREGIONOUTOFBOUNDS = 871, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDDSTCOORDINATES = 872, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDSRCBOX = 873, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_FORMATMISMATCH = 874, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_EMPTYBOX = 875, + D3D12_MESSAGE_ID_COPYTEXTUREREGION_INVALIDCOPYFLAGS = 876, + + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALID_SUBRESOURCE_INDEX = 877, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALID_FORMAT = 878, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_RESOURCE_MISMATCH = 879, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALID_SAMPLE_COUNT = 880, + + D3D12_MESSAGE_ID_CREATECOMPUTEPIPELINESTATE_INVALID_SHADER = 881, + D3D12_MESSAGE_ID_CREATECOMPUTEPIPELINESTATE_CS_ROOT_SIGNATURE_MISMATCH = 882, + D3D12_MESSAGE_ID_CREATECOMPUTEPIPELINESTATE_MISSING_ROOT_SIGNATURE = 883, + + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_INVALIDCACHEDBLOB = 884, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBADAPTERMISMATCH = 885, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBDRIVERVERSIONMISMATCH = 886, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBDESCMISMATCH = 887, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CACHEDBLOBIGNORED = 888, + D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDHEAP = 889, + D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDRESOURCE = 890, + D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDBOX = 891, + D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_INVALIDSUBRESOURCE = 892, + D3D12_MESSAGE_ID_WRITETOSUBRESOURCE_EMPTYBOX = 893, + D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDHEAP = 894, + D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDRESOURCE = 895, + D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDBOX = 896, + D3D12_MESSAGE_ID_READFROMSUBRESOURCE_INVALIDSUBRESOURCE = 897, + D3D12_MESSAGE_ID_READFROMSUBRESOURCE_EMPTYBOX = 898, + + D3D12_MESSAGE_ID_TOO_MANY_NODES_SPECIFIED = 899, + D3D12_MESSAGE_ID_INVALID_NODE_INDEX = 900, + + D3D12_MESSAGE_ID_GETHEAPPROPERTIES_INVALIDRESOURCE = 901, + D3D12_MESSAGE_ID_NODE_MASK_MISMATCH = 902, + D3D12_MESSAGE_ID_COMMAND_LIST_OUTOFMEMORY = 903, + D3D12_MESSAGE_ID_COMMAND_LIST_MULTIPLE_SWAPCHAIN_BUFFER_REFERENCES = 904, + D3D12_MESSAGE_ID_COMMAND_LIST_TOO_MANY_SWAPCHAIN_REFERENCES = 905, + D3D12_MESSAGE_ID_COMMAND_QUEUE_TOO_MANY_SWAPCHAIN_REFERENCES = 906, + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_WRONGSWAPCHAINBUFFERREFERENCE = 907, + D3D12_MESSAGE_ID_COMMAND_LIST_SETRENDERTARGETS_INVALIDNUMRENDERTARGETS = 908, + D3D12_MESSAGE_ID_CREATE_QUEUE_INVALID_TYPE = 909, + D3D12_MESSAGE_ID_CREATE_QUEUE_INVALID_FLAGS = 910, + + D3D12_MESSAGE_ID_CREATESHAREDRESOURCE_INVALIDFLAGS = 911, + D3D12_MESSAGE_ID_CREATESHAREDRESOURCE_INVALIDFORMAT = 912, + D3D12_MESSAGE_ID_CREATESHAREDHEAP_INVALIDFLAGS = 913, + D3D12_MESSAGE_ID_REFLECTSHAREDPROPERTIES_UNRECOGNIZEDPROPERTIES = 914, + D3D12_MESSAGE_ID_REFLECTSHAREDPROPERTIES_INVALIDSIZE = 915, + D3D12_MESSAGE_ID_REFLECTSHAREDPROPERTIES_INVALIDOBJECT = 916, + D3D12_MESSAGE_ID_KEYEDMUTEX_INVALIDOBJECT = 917, + D3D12_MESSAGE_ID_KEYEDMUTEX_INVALIDKEY = 918, + D3D12_MESSAGE_ID_KEYEDMUTEX_WRONGSTATE = 919, + D3D12_MESSAGE_ID_CREATE_QUEUE_INVALID_PRIORITY = 920, + + D3D12_MESSAGE_ID_OBJECT_DELETED_WHILE_STILL_IN_USE = 921, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_INVALID_FLAGS = 922, + + D3D12_MESSAGE_ID_HEAP_ADDRESS_RANGE_HAS_NO_RESOURCE = 923, + + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_RENDER_TARGET_DELETED = 924, + + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_ALL_RENDER_TARGETS_HAVE_UNKNOWN_FORMAT = 925, + + D3D12_MESSAGE_ID_HEAP_ADDRESS_RANGE_INTERSECTS_MULTIPLE_BUFFERS = 926, + + D3D12_MESSAGE_ID_EXECUTECOMMANDLISTS_GPU_WRITTEN_READBACK_RESOURCE_MAPPED = 927, + + D3D12_MESSAGE_ID_UNMAP_RANGE_NOT_EMPTY = 929, + D3D12_MESSAGE_ID_MAP_INVALID_NULLRANGE = 930, + D3D12_MESSAGE_ID_UNMAP_INVALID_NULLRANGE = 931, + + D3D12_MESSAGE_ID_NO_GRAPHICS_API_SUPPORT = 932, + D3D12_MESSAGE_ID_NO_COMPUTE_API_SUPPORT = 933, + + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_RESOURCE_FLAGS_NOT_SUPPORTED = 934, + + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_ROOT_ARGUMENT_UNINITIALIZED = 935, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_HEAP_INDEX_OUT_OF_BOUNDS = 936, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_TABLE_REGISTER_INDEX_OUT_OF_BOUNDS = 937, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_UNINITIALIZED = 938, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_DESCRIPTOR_TYPE_MISMATCH = 939, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_SRV_RESOURCE_DIMENSION_MISMATCH = 940, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_UAV_RESOURCE_DIMENSION_MISMATCH = 941, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_INCOMPATIBLE_RESOURCE_STATE = 942, + + D3D12_MESSAGE_ID_COPYRESOURCE_NULLDST = 943, + D3D12_MESSAGE_ID_COPYRESOURCE_INVALIDDSTRESOURCE = 944, + D3D12_MESSAGE_ID_COPYRESOURCE_NULLSRC = 945, + D3D12_MESSAGE_ID_COPYRESOURCE_INVALIDSRCRESOURCE = 946, + + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_NULLDST = 947, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALIDDSTRESOURCE = 948, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_NULLSRC = 949, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_INVALIDSRCRESOURCE = 950, + + D3D12_MESSAGE_ID_PIPELINE_STATE_TYPE_MISMATCH = 951, + D3D12_MESSAGE_ID_COMMAND_LIST_DISPATCH_ROOT_SIGNATURE_NOT_SET = 952, + D3D12_MESSAGE_ID_COMMAND_LIST_DISPATCH_ROOT_SIGNATURE_MISMATCH = 953, + + D3D12_MESSAGE_ID_RESOURCE_BARRIER_ZERO_BARRIERS = 954, + + D3D12_MESSAGE_ID_BEGIN_END_EVENT_MISMATCH = 955, + + D3D12_MESSAGE_ID_RESOURCE_BARRIER_POSSIBLE_BEFORE_AFTER_MISMATCH = 956, + + D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISMATCHING_BEGIN_END = 957, + + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_INVALID_RESOURCE = 958, + + D3D12_MESSAGE_ID_USE_OF_ZERO_REFCOUNT_OBJECT = 959, + + D3D12_MESSAGE_ID_OBJECT_EVICTED_WHILE_STILL_IN_USE = 960, + + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_ROOT_DESCRIPTOR_ACCESS_OUT_OF_BOUNDS = 961, + + D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_INVALIDLIBRARYBLOB = 962, + D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_DRIVERVERSIONMISMATCH = 963, + D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_ADAPTERVERSIONMISMATCH = 964, + D3D12_MESSAGE_ID_CREATEPIPELINELIBRARY_UNSUPPORTED = 965, + D3D12_MESSAGE_ID_CREATE_PIPELINELIBRARY = 966, + D3D12_MESSAGE_ID_LIVE_PIPELINELIBRARY = 967, + D3D12_MESSAGE_ID_DESTROY_PIPELINELIBRARY = 968, + + D3D12_MESSAGE_ID_STOREPIPELINE_NONAME = 969, + D3D12_MESSAGE_ID_STOREPIPELINE_DUPLICATENAME = 970, + D3D12_MESSAGE_ID_LOADPIPELINE_NAMENOTFOUND = 971, + D3D12_MESSAGE_ID_LOADPIPELINE_INVALIDDESC = 972, + D3D12_MESSAGE_ID_PIPELINELIBRARY_SERIALIZE_NOTENOUGHMEMORY = 973, + + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_PS_OUTPUT_RT_OUTPUT_MISMATCH = 974, + + D3D12_MESSAGE_ID_SETEVENTONMULTIPLEFENCECOMPLETION_INVALIDFLAGS = 975, + + D3D12_MESSAGE_ID_CREATE_QUEUE_VIDEO_NOT_SUPPORTED = 976, + D3D12_MESSAGE_ID_CREATE_COMMAND_ALLOCATOR_VIDEO_NOT_SUPPORTED = 977, + D3D12_MESSAGE_ID_CREATEQUERY_HEAP_VIDEO_DECODE_STATISTICS_NOT_SUPPORTED = 978, + D3D12_MESSAGE_ID_CREATE_VIDEODECODECOMMANDLIST = 979, + D3D12_MESSAGE_ID_CREATE_VIDEODECODER = 980, + D3D12_MESSAGE_ID_CREATE_VIDEODECODESTREAM = 981, + D3D12_MESSAGE_ID_LIVE_VIDEODECODECOMMANDLIST = 982, + D3D12_MESSAGE_ID_LIVE_VIDEODECODER = 983, + D3D12_MESSAGE_ID_LIVE_VIDEODECODESTREAM = 984, + D3D12_MESSAGE_ID_DESTROY_VIDEODECODECOMMANDLIST = 985, + D3D12_MESSAGE_ID_DESTROY_VIDEODECODER = 986, + D3D12_MESSAGE_ID_DESTROY_VIDEODECODESTREAM = 987, + D3D12_MESSAGE_ID_DECODE_FRAME_INVALID_PARAMETERS = 988, + + D3D12_MESSAGE_ID_DEPRECATED_API = 989, + + D3D12_MESSAGE_ID_RESOURCE_BARRIER_MISMATCHING_COMMAND_LIST_TYPE = 990, + + D3D12_MESSAGE_ID_COMMAND_LIST_DESCRIPTOR_TABLE_NOT_SET = 991, + D3D12_MESSAGE_ID_COMMAND_LIST_ROOT_CONSTANT_BUFFER_VIEW_NOT_SET = 992, + D3D12_MESSAGE_ID_COMMAND_LIST_ROOT_SHADER_RESOURCE_VIEW_NOT_SET = 993, + D3D12_MESSAGE_ID_COMMAND_LIST_ROOT_UNORDERED_ACCESS_VIEW_NOT_SET = 994, + + D3D12_MESSAGE_ID_DISCARD_INVALID_SUBRESOURCE_RANGE = 995, + D3D12_MESSAGE_ID_DISCARD_ONE_SUBRESOURCE_FOR_MIPS_WITH_RECTS = 996, + D3D12_MESSAGE_ID_DISCARD_NO_RECTS_FOR_NON_TEXTURE2D = 997, + + D3D12_MESSAGE_ID_COPY_ON_SAME_SUBRESOURCE = 998, + + D3D12_MESSAGE_ID_SETRESIDENCYPRIORITY_INVALID_PAGEABLE = 999, + + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_UNSUPPORTED = 1000, + + D3D12_MESSAGE_ID_STATIC_DESCRIPTOR_INVALID_DESCRIPTOR_CHANGE = 1001, + D3D12_MESSAGE_ID_DATA_STATIC_DESCRIPTOR_INVALID_DATA_CHANGE = 1002, + D3D12_MESSAGE_ID_DATA_STATIC_WHILE_SET_AT_EXECUTE_DESCRIPTOR_INVALID_DATA_CHANGE = 1003, + D3D12_MESSAGE_ID_EXECUTE_BUNDLE_STATIC_DESCRIPTOR_DATA_STATIC_NOT_SET = 1004, + + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_RESOURCE_ACCESS_OUT_OF_BOUNDS = 1005, + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_SAMPLER_MODE_MISMATCH = 1006, + + D3D12_MESSAGE_ID_CREATE_FENCE_INVALID_FLAGS = 1007, + + D3D12_MESSAGE_ID_RESOURCE_BARRIER_DUPLICATE_SUBRESOURCE_TRANSITIONS = 1008, + D3D12_MESSAGE_ID_SETRESIDENCYPRIORITY_INVALID_PRIORITY = 1009, + D3D12_MESSAGE_ID_CREATE_DESCRIPTOR_HEAP_LARGE_NUM_DESCRIPTORS = 1013, + + D3D12_MESSAGE_ID_BEGIN_EVENT = 1014, + D3D12_MESSAGE_ID_END_EVENT = 1015, + + D3D12_MESSAGE_ID_CREATEDEVICE_DEBUG_LAYER_STARTUP_OPTIONS = 1016, + + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_DEPTHBOUNDSTEST_UNSUPPORTED = 1017, + + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_DUPLICATE_SUBOBJECT = 1018, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_UNKNOWN_SUBOBJECT = 1019, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_ZERO_SIZE_STREAM = 1020, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_INVALID_STREAM = 1021, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_CANNOT_DEDUCE_TYPE = 1022, + + D3D12_MESSAGE_ID_COMMAND_LIST_STATIC_DESCRIPTOR_RESOURCE_DIMENSION_MISMATCH = 1023, + + D3D12_MESSAGE_ID_CREATE_COMMAND_QUEUE_INSUFFICIENT_PRIVILEGE_FOR_GLOBAL_REALTIME = 1024, + D3D12_MESSAGE_ID_CREATE_COMMAND_QUEUE_INSUFFICIENT_HARDWARE_SUPPORT_FOR_GLOBAL_REALTIME = 1025, + + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_ARCHITECTURE = 1026, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_DST = 1027, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DST_RESOURCE_DIMENSION = 1028, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_DST_RANGE_OUT_OF_BOUNDS = 1029, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_SRC = 1030, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_SRC_RESOURCE_DIMENSION = 1031, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_SRC_RANGE_OUT_OF_BOUNDS = 1032, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_OFFSET_ALIGNMENT = 1033, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_DEPENDENT_RESOURCES = 1034, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_NULL_DEPENDENT_SUBRESOURCE_RANGES = 1035, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DEPENDENT_RESOURCE = 1036, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DEPENDENT_SUBRESOURCE_RANGE = 1037, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_DEPENDENT_SUBRESOURCE_OUT_OF_BOUNDS = 1038, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_DEPENDENT_RANGE_OUT_OF_BOUNDS = 1039, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_ZERO_DEPENDENCIES = 1040, + + D3D12_MESSAGE_ID_DEVICE_CREATE_SHARED_HANDLE_INVALIDARG = 1041, + + D3D12_MESSAGE_ID_DESCRIPTOR_HANDLE_WITH_INVALID_RESOURCE = 1042, + + D3D12_MESSAGE_ID_SETDEPTHBOUNDS_INVALIDARGS = 1043, + + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_RESOURCE_STATE_IMPRECISE = 1044, + + D3D12_MESSAGE_ID_COMMAND_LIST_PIPELINE_STATE_NOT_SET = 1045, + + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_SHADER_MODEL_MISMATCH = 1046, + + D3D12_MESSAGE_ID_OBJECT_ACCESSED_WHILE_STILL_IN_USE = 1047, + + D3D12_MESSAGE_ID_PROGRAMMABLE_MSAA_UNSUPPORTED = 1048, + + D3D12_MESSAGE_ID_SETSAMPLEPOSITIONS_INVALIDARGS = 1049, + + D3D12_MESSAGE_ID_RESOLVESUBRESOURCEREGION_INVALID_RECT = 1050, + + D3D12_MESSAGE_ID_CREATE_VIDEODECODECOMMANDQUEUE = 1051, + D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSCOMMANDLIST = 1052, + D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSCOMMANDQUEUE = 1053, + D3D12_MESSAGE_ID_LIVE_VIDEODECODECOMMANDQUEUE = 1054, + D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSCOMMANDLIST = 1055, + D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSCOMMANDQUEUE = 1056, + D3D12_MESSAGE_ID_DESTROY_VIDEODECODECOMMANDQUEUE = 1057, + D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSCOMMANDLIST = 1058, + D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSCOMMANDQUEUE = 1059, + D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSOR = 1060, + D3D12_MESSAGE_ID_CREATE_VIDEOPROCESSSTREAM = 1061, + D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSOR = 1062, + D3D12_MESSAGE_ID_LIVE_VIDEOPROCESSSTREAM = 1063, + D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSOR = 1064, + D3D12_MESSAGE_ID_DESTROY_VIDEOPROCESSSTREAM = 1065, + + D3D12_MESSAGE_ID_PROCESS_FRAME_INVALID_PARAMETERS = 1066, + + D3D12_MESSAGE_ID_COPY_INVALIDLAYOUT = 1067, + + D3D12_MESSAGE_ID_CREATE_CRYPTO_SESSION = 1068, + D3D12_MESSAGE_ID_CREATE_CRYPTO_SESSION_POLICY = 1069, + D3D12_MESSAGE_ID_CREATE_PROTECTED_RESOURCE_SESSION = 1070, + D3D12_MESSAGE_ID_LIVE_CRYPTO_SESSION = 1071, + D3D12_MESSAGE_ID_LIVE_CRYPTO_SESSION_POLICY = 1072, + D3D12_MESSAGE_ID_LIVE_PROTECTED_RESOURCE_SESSION = 1073, + D3D12_MESSAGE_ID_DESTROY_CRYPTO_SESSION = 1074, + D3D12_MESSAGE_ID_DESTROY_CRYPTO_SESSION_POLICY = 1075, + D3D12_MESSAGE_ID_DESTROY_PROTECTED_RESOURCE_SESSION = 1076, + D3D12_MESSAGE_ID_PROTECTED_RESOURCE_SESSION_UNSUPPORTED = 1077, + + D3D12_MESSAGE_ID_FENCE_INVALIDOPERATION = 1078, + + D3D12_MESSAGE_ID_CREATEQUERY_HEAP_COPY_QUEUE_TIMESTAMPS_NOT_SUPPORTED = 1079, + + D3D12_MESSAGE_ID_SAMPLEPOSITIONS_MISMATCH_DEFERRED = 1080, + D3D12_MESSAGE_ID_SAMPLEPOSITIONS_MISMATCH_RECORDTIME_ASSUMEDFROMFIRSTUSE = 1081, + D3D12_MESSAGE_ID_SAMPLEPOSITIONS_MISMATCH_RECORDTIME_ASSUMEDFROMCLEAR = 1082, + + D3D12_MESSAGE_ID_CREATE_VIDEODECODERHEAP = 1083, + D3D12_MESSAGE_ID_LIVE_VIDEODECODERHEAP = 1084, + D3D12_MESSAGE_ID_DESTROY_VIDEODECODERHEAP = 1085, + + D3D12_MESSAGE_ID_OPENEXISTINGHEAP_INVALIDARG_RETURN = 1086, + D3D12_MESSAGE_ID_OPENEXISTINGHEAP_OUTOFMEMORY_RETURN = 1087, + D3D12_MESSAGE_ID_OPENEXISTINGHEAP_INVALIDADDRESS = 1088, + D3D12_MESSAGE_ID_OPENEXISTINGHEAP_INVALIDHANDLE = 1089, + + D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_INVALID_DEST = 1090, + D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_INVALID_MODE = 1091, + D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_INVALID_ALIGNMENT = 1092, + D3D12_MESSAGE_ID_WRITEBUFFERIMMEDIATE_NOT_SUPPORTED = 1093, + + D3D12_MESSAGE_ID_SETVIEWINSTANCEMASK_INVALIDARGS = 1094, + D3D12_MESSAGE_ID_VIEW_INSTANCING_UNSUPPORTED = 1095, + D3D12_MESSAGE_ID_VIEW_INSTANCING_INVALIDARGS = 1096, + + D3D12_MESSAGE_ID_COPYTEXTUREREGION_MISMATCH_DECODE_REFERENCE_ONLY_FLAG = 1097, + D3D12_MESSAGE_ID_COPYRESOURCE_MISMATCH_DECODE_REFERENCE_ONLY_FLAG = 1098, + + D3D12_MESSAGE_ID_CREATE_VIDEO_DECODE_HEAP_CAPS_FAILURE = 1099, + D3D12_MESSAGE_ID_CREATE_VIDEO_DECODE_HEAP_CAPS_UNSUPPORTED = 1100, + D3D12_MESSAGE_ID_VIDEO_DECODE_SUPPORT_INVALID_INPUT = 1101, + D3D12_MESSAGE_ID_CREATE_VIDEO_DECODER_UNSUPPORTED = 1102, + + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_METADATA_ERROR = 1103, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_VIEW_INSTANCING_VERTEX_SIZE_EXCEEDED = 1104, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RUNTIME_INTERNAL_ERROR = 1105, + + D3D12_MESSAGE_ID_NO_VIDEO_API_SUPPORT = 1106, + + D3D12_MESSAGE_ID_VIDEO_PROCESS_SUPPORT_INVALID_INPUT = 1107, + D3D12_MESSAGE_ID_CREATE_VIDEO_PROCESSOR_CAPS_FAILURE = 1108, + D3D12_MESSAGE_ID_VIDEO_PROCESS_SUPPORT_UNSUPPORTED_FORMAT = 1109, + + D3D12_MESSAGE_ID_VIDEO_DECODE_FRAME_INVALID_ARGUMENT = 1110, + + D3D12_MESSAGE_ID_ENQUEUE_MAKE_RESIDENT_INVALID_FLAGS = 1111, + D3D12_MESSAGE_ID_OPENEXISTINGHEAP_UNSUPPORTED = 1112, + + D3D12_MESSAGE_ID_VIDEO_PROCESS_FRAMES_INVALID_ARGUMENT = 1113, + + D3D12_MESSAGE_ID_VIDEO_DECODE_SUPPORT_UNSUPPORTED = 1114, + + D3D12_MESSAGE_ID_CREATE_COMMANDRECORDER = 1115, + D3D12_MESSAGE_ID_LIVE_COMMANDRECORDER = 1116, + D3D12_MESSAGE_ID_DESTROY_COMMANDRECORDER = 1117, + D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_VIDEO_NOT_SUPPORTED = 1118, + D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_INVALID_SUPPORT_FLAGS = 1119, + D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_INVALID_FLAGS = 1120, + D3D12_MESSAGE_ID_CREATE_COMMAND_RECORDER_MORE_RECORDERS_THAN_LOGICAL_PROCESSORS = 1121, + + D3D12_MESSAGE_ID_CREATE_COMMANDPOOL = 1122, + D3D12_MESSAGE_ID_LIVE_COMMANDPOOL = 1123, + D3D12_MESSAGE_ID_DESTROY_COMMANDPOOL = 1124, + D3D12_MESSAGE_ID_CREATE_COMMAND_POOL_INVALID_FLAGS = 1125, + + D3D12_MESSAGE_ID_CREATE_COMMAND_LIST_VIDEO_NOT_SUPPORTED = 1126, + + D3D12_MESSAGE_ID_COMMAND_RECORDER_SUPPORT_FLAGS_MISMATCH = 1127, + D3D12_MESSAGE_ID_COMMAND_RECORDER_CONTENTION = 1128, + + D3D12_MESSAGE_ID_COMMAND_RECORDER_USAGE_WITH_CREATECOMMANDLIST_COMMAND_LIST = 1129, + D3D12_MESSAGE_ID_COMMAND_ALLOCATOR_USAGE_WITH_CREATECOMMANDLIST1_COMMAND_LIST = 1130, + D3D12_MESSAGE_ID_CANNOT_EXECUTE_EMPTY_COMMAND_LIST = 1131, + + D3D12_MESSAGE_ID_CANNOT_RESET_COMMAND_POOL_WITH_OPEN_COMMAND_LISTS = 1132, + D3D12_MESSAGE_ID_CANNOT_USE_COMMAND_RECORDER_WITHOUT_CURRENT_TARGET = 1133, + D3D12_MESSAGE_ID_CANNOT_CHANGE_COMMAND_RECORDER_TARGET_WHILE_RECORDING = 1134, + D3D12_MESSAGE_ID_COMMAND_POOL_SYNC = 1135, + + D3D12_MESSAGE_ID_EVICT_UNDERFLOW = 1136, + + D3D12_MESSAGE_ID_CREATE_META_COMMAND = 1137, + D3D12_MESSAGE_ID_LIVE_META_COMMAND = 1138, + D3D12_MESSAGE_ID_DESTROY_META_COMMAND = 1139, + D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALID_DST_RESOURCE = 1140, + D3D12_MESSAGE_ID_COPYBUFFERREGION_INVALID_SRC_RESOURCE = 1141, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_DST_RESOURCE = 1142, + D3D12_MESSAGE_ID_ATOMICCOPYBUFFER_INVALID_SRC_RESOURCE = 1143, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_NULL_BUFFER = 1144, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_NULL_RESOURCE_DESC = 1145, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_UNSUPPORTED = 1146, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_BUFFER_DIMENSION = 1147, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_BUFFER_FLAGS = 1148, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_BUFFER_OFFSET = 1149, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_RESOURCE_DIMENSION = 1150, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_INVALID_RESOURCE_FLAGS = 1151, + D3D12_MESSAGE_ID_CREATEPLACEDRESOURCEONBUFFER_OUTOFMEMORY_RETURN = 1152, + + D3D12_MESSAGE_ID_CANNOT_CREATE_GRAPHICS_AND_VIDEO_COMMAND_RECORDER = 1153, + D3D12_MESSAGE_ID_UPDATETILEMAPPINGS_POSSIBLY_MISMATCHING_PROPERTIES = 1154, + + D3D12_MESSAGE_ID_CREATE_COMMAND_LIST_INVALID_COMMAND_LIST_TYPE = 1155, + + D3D12_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_INCOMPATIBLE_WITH_STRUCTURED_BUFFERS = 1156, + + D3D12_MESSAGE_ID_COMPUTE_ONLY_DEVICE_OPERATION_UNSUPPORTED = 1157, + + D3D12_MESSAGE_ID_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INVALID = 1158, + D3D12_MESSAGE_ID_EMIT_RAYTRACING_ACCELERATION_STRUCTURE_POSTBUILD_INFO_INVALID = 1159, + D3D12_MESSAGE_ID_COPY_RAYTRACING_ACCELERATION_STRUCTURE_INVALID = 1160, + D3D12_MESSAGE_ID_DISPATCH_RAYS_INVALID = 1161, + D3D12_MESSAGE_ID_GET_RAYTRACING_ACCELERATION_STRUCTURE_PREBUILD_INFO_INVALID = 1162, + + D3D12_MESSAGE_ID_CREATE_LIFETIMETRACKER = 1163, + D3D12_MESSAGE_ID_LIVE_LIFETIMETRACKER = 1164, + D3D12_MESSAGE_ID_DESTROY_LIFETIMETRACKER = 1165, + D3D12_MESSAGE_ID_DESTROYOWNEDOBJECT_OBJECTNOTOWNED = 1166, + + D3D12_MESSAGE_ID_CREATE_TRACKEDWORKLOAD = 1167, + D3D12_MESSAGE_ID_LIVE_TRACKEDWORKLOAD = 1168, + D3D12_MESSAGE_ID_DESTROY_TRACKEDWORKLOAD = 1169, + + D3D12_MESSAGE_ID_RENDER_PASS_ERROR = 1170, + + D3D12_MESSAGE_ID_META_COMMAND_ID_INVALID = 1171, + D3D12_MESSAGE_ID_META_COMMAND_UNSUPPORTED_PARAMS = 1172, + D3D12_MESSAGE_ID_META_COMMAND_FAILED_ENUMERATION = 1173, + D3D12_MESSAGE_ID_META_COMMAND_PARAMETER_SIZE_MISMATCH = 1174, + D3D12_MESSAGE_ID_UNINITIALIZED_META_COMMAND = 1175, + D3D12_MESSAGE_ID_META_COMMAND_INVALID_GPU_VIRTUAL_ADDRESS = 1176, + + D3D12_MESSAGE_ID_CREATE_VIDEOENCODECOMMANDLIST = 1177, + D3D12_MESSAGE_ID_LIVE_VIDEOENCODECOMMANDLIST = 1178, + D3D12_MESSAGE_ID_DESTROY_VIDEOENCODECOMMANDLIST = 1179, + + D3D12_MESSAGE_ID_CREATE_VIDEOENCODECOMMANDQUEUE = 1180, + D3D12_MESSAGE_ID_LIVE_VIDEOENCODECOMMANDQUEUE = 1181, + D3D12_MESSAGE_ID_DESTROY_VIDEOENCODECOMMANDQUEUE = 1182, + + D3D12_MESSAGE_ID_CREATE_VIDEOMOTIONESTIMATOR = 1183, + D3D12_MESSAGE_ID_LIVE_VIDEOMOTIONESTIMATOR = 1184, + D3D12_MESSAGE_ID_DESTROY_VIDEOMOTIONESTIMATOR = 1185, + + D3D12_MESSAGE_ID_CREATE_VIDEOMOTIONVECTORHEAP = 1186, + D3D12_MESSAGE_ID_LIVE_VIDEOMOTIONVECTORHEAP = 1187, + D3D12_MESSAGE_ID_DESTROY_VIDEOMOTIONVECTORHEAP = 1188, + + D3D12_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOADS = 1189, + D3D12_MESSAGE_ID_MULTIPLE_TRACKED_WORKLOAD_PAIRS = 1190, + D3D12_MESSAGE_ID_OUT_OF_ORDER_TRACKED_WORKLOAD_PAIR = 1191, + D3D12_MESSAGE_ID_CANNOT_ADD_TRACKED_WORKLOAD = 1192, + D3D12_MESSAGE_ID_INCOMPLETE_TRACKED_WORKLOAD_PAIR = 1193, + D3D12_MESSAGE_ID_CREATE_STATE_OBJECT_ERROR = 1194, + D3D12_MESSAGE_ID_GET_SHADER_IDENTIFIER_ERROR = 1195, + D3D12_MESSAGE_ID_GET_SHADER_STACK_SIZE_ERROR = 1196, + D3D12_MESSAGE_ID_GET_PIPELINE_STACK_SIZE_ERROR = 1197, + D3D12_MESSAGE_ID_SET_PIPELINE_STACK_SIZE_ERROR = 1198, + D3D12_MESSAGE_ID_GET_SHADER_IDENTIFIER_SIZE_INVALID = 1199, + D3D12_MESSAGE_ID_CHECK_DRIVER_MATCHING_IDENTIFIER_INVALID = 1200, + D3D12_MESSAGE_ID_CHECK_DRIVER_MATCHING_IDENTIFIER_DRIVER_REPORTED_ISSUE = 1201, + + D3D12_MESSAGE_ID_RENDER_PASS_INVALID_RESOURCE_BARRIER = 1202, + D3D12_MESSAGE_ID_RENDER_PASS_DISALLOWED_API_CALLED = 1203, + D3D12_MESSAGE_ID_RENDER_PASS_CANNOT_NEST_RENDER_PASSES = 1204, + D3D12_MESSAGE_ID_RENDER_PASS_CANNOT_END_WITHOUT_BEGIN = 1205, + D3D12_MESSAGE_ID_RENDER_PASS_CANNOT_CLOSE_COMMAND_LIST = 1206, + D3D12_MESSAGE_ID_RENDER_PASS_GPU_WORK_WHILE_SUSPENDED = 1207, + D3D12_MESSAGE_ID_RENDER_PASS_MISMATCHING_SUSPEND_RESUME = 1208, + D3D12_MESSAGE_ID_RENDER_PASS_NO_PRIOR_SUSPEND_WITHIN_EXECUTECOMMANDLISTS = 1209, + D3D12_MESSAGE_ID_RENDER_PASS_NO_SUBSEQUENT_RESUME_WITHIN_EXECUTECOMMANDLISTS = 1210, + + D3D12_MESSAGE_ID_TRACKED_WORKLOAD_COMMAND_QUEUE_MISMATCH = 1211, + D3D12_MESSAGE_ID_TRACKED_WORKLOAD_NOT_SUPPORTED = 1212, + + D3D12_MESSAGE_ID_RENDER_PASS_MISMATCHING_NO_ACCESS = 1213, + D3D12_MESSAGE_ID_RENDER_PASS_UNSUPPORTED_RESOLVE = 1214, + + D3D12_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_INVALID_RESOURCE_PTR = 1215, + + D3D12_MESSAGE_ID_WINDOWS7_FENCE_OUTOFORDER_SIGNAL = 1216, + D3D12_MESSAGE_ID_WINDOWS7_FENCE_OUTOFORDER_WAIT = 1217, + + D3D12_MESSAGE_ID_VIDEO_CREATE_MOTION_ESTIMATOR_INVALID_ARGUMENT = 1218, + D3D12_MESSAGE_ID_VIDEO_CREATE_MOTION_VECTOR_HEAP_INVALID_ARGUMENT = 1219, + D3D12_MESSAGE_ID_ESTIMATE_MOTION_INVALID_ARGUMENT = 1220, + D3D12_MESSAGE_ID_RESOLVE_MOTION_VECTOR_HEAP_INVALID_ARGUMENT = 1221, + + D3D12_MESSAGE_ID_GETGPUVIRTUALADDRESS_INVALID_HEAP_TYPE = 1222, + D3D12_MESSAGE_ID_SET_BACKGROUND_PROCESSING_MODE_INVALID_ARGUMENT = 1223, + D3D12_MESSAGE_ID_CREATE_COMMAND_LIST_INVALID_COMMAND_LIST_TYPE_FOR_FEATURE_LEVEL = 1224, + + D3D12_MESSAGE_ID_CREATE_VIDEOEXTENSIONCOMMAND = 1225, + D3D12_MESSAGE_ID_LIVE_VIDEOEXTENSIONCOMMAND = 1226, + D3D12_MESSAGE_ID_DESTROY_VIDEOEXTENSIONCOMMAND = 1227, + D3D12_MESSAGE_ID_INVALID_VIDEO_EXTENSION_COMMAND_ID = 1228, + D3D12_MESSAGE_ID_VIDEO_EXTENSION_COMMAND_INVALID_ARGUMENT = 1229, + + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_NOT_UNIQUE_IN_DXIL_LIBRARY = 1230, + + D3D12_MESSAGE_ID_VARIABLE_SHADING_RATE_NOT_ALLOWED_WITH_TIR = 1231, + D3D12_MESSAGE_ID_GEOMETRY_SHADER_OUTPUTTING_BOTH_VIEWPORT_ARRAY_INDEX_AND_SHADING_RATE_NOT_SUPPORTED_ON_DEVICE = 1232, + D3D12_MESSAGE_ID_RSSETSHADING_RATE_INVALID_SHADING_RATE = 1233, + D3D12_MESSAGE_ID_RSSETSHADING_RATE_SHADING_RATE_NOT_PERMITTED_BY_CAP = 1234, + D3D12_MESSAGE_ID_RSSETSHADING_RATE_INVALID_COMBINER = 1235, + D3D12_MESSAGE_ID_RSSETSHADINGRATEIMAGE_REQUIRES_TIER_2 = 1236, + D3D12_MESSAGE_ID_RSSETSHADINGRATE_REQUIRES_TIER_1 = 1237, + D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_FORMAT = 1238, + D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_ARRAY_SIZE = 1239, + D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_MIP_LEVEL = 1240, + D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_SAMPLE_COUNT = 1241, + D3D12_MESSAGE_ID_SHADING_RATE_IMAGE_INCORRECT_SAMPLE_QUALITY = 1242, + + D3D12_MESSAGE_ID_NON_RETAIL_SHADER_MODEL_WONT_VALIDATE = 1243, + + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_AS_ROOT_SIGNATURE_MISMATCH = 1244, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MS_ROOT_SIGNATURE_MISMATCH = 1245, + + D3D12_MESSAGE_ID_ADD_TO_STATE_OBJECT_ERROR = 1246, + + D3D12_MESSAGE_ID_CREATE_PROTECTED_RESOURCE_SESSION_INVALID_ARGUMENT = 1247, + + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MS_PSO_DESC_MISMATCH = 1248, + D3D12_MESSAGE_ID_CREATEPIPELINESTATE_MS_INCOMPLETE_TYPE = 1249, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_AS_NOT_MS_MISMATCH = 1250, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_MS_NOT_PS_MISMATCH = 1251, + D3D12_MESSAGE_ID_NONZERO_SAMPLER_FEEDBACK_MIP_REGION_WITH_INCOMPATIBLE_FORMAT = 1252, + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_INPUTLAYOUT_SHADER_MISMATCH = 1253, + + D3D12_MESSAGE_ID_EMPTY_DISPATCH = 1254, + + + D3D12_MESSAGE_ID_RESOURCE_FORMAT_REQUIRES_SAMPLER_FEEDBACK_CAPABILITY = 1255, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_MIP_REGION = 1256, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_DIMENSION = 1257, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_SAMPLE_COUNT = 1258, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_SAMPLE_QUALITY = 1259, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_INVALID_LAYOUT = 1260, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_MAP_REQUIRES_UNORDERED_ACCESS_FLAG = 1261, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_CREATE_UAV_NULL_ARGUMENTS = 1262, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_UAV_REQUIRES_SAMPLER_FEEDBACK_CAPABILITY = 1263, + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_CREATE_UAV_REQUIRES_FEEDBACK_MAP_FORMAT = 1264, + + D3D12_MESSAGE_ID_CREATEMESHSHADER_INVALIDSHADERBYTECODE = 1265, + D3D12_MESSAGE_ID_CREATEMESHSHADER_OUTOFMEMORY = 1266, + D3D12_MESSAGE_ID_CREATEMESHSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE = 1267, + + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_SAMPLER_FEEDBACK_TRANSCODE_INVALID_FORMAT = 1268, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_SAMPLER_FEEDBACK_INVALID_MIP_LEVEL_COUNT = 1269, + D3D12_MESSAGE_ID_RESOLVESUBRESOURCE_SAMPLER_FEEDBACK_TRANSCODE_ARRAY_SIZE_MISMATCH = 1270, + + D3D12_MESSAGE_ID_SAMPLER_FEEDBACK_CREATE_UAV_MISMATCHING_TARGETED_RESOURCE = 1271, + + D3D12_MESSAGE_ID_CREATEMESHSHADER_OUTPUTEXCEEDSMAXSIZE = 1272, + D3D12_MESSAGE_ID_CREATEMESHSHADER_GROUPSHAREDEXCEEDSMAXSIZE = 1273, + + D3D12_MESSAGE_ID_VERTEX_SHADER_OUTPUTTING_BOTH_VIEWPORT_ARRAY_INDEX_AND_SHADING_RATE_NOT_SUPPORTED_ON_DEVICE = 1274, + D3D12_MESSAGE_ID_MESH_SHADER_OUTPUTTING_BOTH_VIEWPORT_ARRAY_INDEX_AND_SHADING_RATE_NOT_SUPPORTED_ON_DEVICE = 1275, + D3D12_MESSAGE_ID_CREATEMESHSHADER_MISMATCHEDASMSPAYLOADSIZE = 1276, + + D3D12_MESSAGE_ID_CREATE_ROOT_SIGNATURE_UNBOUNDED_STATIC_DESCRIPTORS = 1277, + + D3D12_MESSAGE_ID_CREATEAMPLIFICATIONSHADER_INVALIDSHADERBYTECODE = 1278, + D3D12_MESSAGE_ID_CREATEAMPLIFICATIONSHADER_OUTOFMEMORY = 1279, + + D3D12_MESSAGE_ID_CREATE_SHADERCACHESESSION = 1280, + D3D12_MESSAGE_ID_LIVE_SHADERCACHESESSION = 1281, + D3D12_MESSAGE_ID_DESTROY_SHADERCACHESESSION = 1282, + + D3D12_MESSAGE_ID_CREATESHADERCACHESESSION_INVALIDARGS = 1283, + D3D12_MESSAGE_ID_CREATESHADERCACHESESSION_DISABLED = 1284, + D3D12_MESSAGE_ID_CREATESHADERCACHESESSION_ALREADYOPEN = 1285, + + D3D12_MESSAGE_ID_SHADERCACHECONTROL_DEVELOPERMODE = 1286, + D3D12_MESSAGE_ID_SHADERCACHECONTROL_INVALIDFLAGS = 1287, + D3D12_MESSAGE_ID_SHADERCACHECONTROL_STATEALREADYSET = 1288, + D3D12_MESSAGE_ID_SHADERCACHECONTROL_IGNOREDFLAG = 1289, + + D3D12_MESSAGE_ID_SHADERCACHESESSION_STOREVALUE_ALREADYPRESENT = 1290, + D3D12_MESSAGE_ID_SHADERCACHESESSION_STOREVALUE_HASHCOLLISION = 1291, + D3D12_MESSAGE_ID_SHADERCACHESESSION_STOREVALUE_CACHEFULL = 1292, + D3D12_MESSAGE_ID_SHADERCACHESESSION_FINDVALUE_NOTFOUND = 1293, + D3D12_MESSAGE_ID_SHADERCACHESESSION_CORRUPT = 1294, + D3D12_MESSAGE_ID_SHADERCACHESESSION_DISABLED = 1295, + + D3D12_MESSAGE_ID_OVERSIZED_DISPATCH = 1296, + D3D12_MESSAGE_ID_CREATE_VIDEOENCODER = 1297, + D3D12_MESSAGE_ID_LIVE_VIDEOENCODER = 1298, + D3D12_MESSAGE_ID_DESTROY_VIDEOENCODER = 1299, + D3D12_MESSAGE_ID_CREATE_VIDEOENCODERHEAP = 1300, + D3D12_MESSAGE_ID_LIVE_VIDEOENCODERHEAP = 1301, + D3D12_MESSAGE_ID_DESTROY_VIDEOENCODERHEAP = 1302, + + D3D12_MESSAGE_ID_COPYTEXTUREREGION_MISMATCH_ENCODE_REFERENCE_ONLY_FLAG = 1303, + D3D12_MESSAGE_ID_COPYRESOURCE_MISMATCH_ENCODE_REFERENCE_ONLY_FLAG = 1304, + D3D12_MESSAGE_ID_ENCODE_FRAME_INVALID_PARAMETERS = 1305, + D3D12_MESSAGE_ID_ENCODE_FRAME_UNSUPPORTED_PARAMETERS = 1306, + D3D12_MESSAGE_ID_RESOLVE_ENCODER_OUTPUT_METADATA_INVALID_PARAMETERS = 1307, + D3D12_MESSAGE_ID_RESOLVE_ENCODER_OUTPUT_METADATA_UNSUPPORTED_PARAMETERS = 1308, + D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_INVALID_PARAMETERS = 1309, + D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_UNSUPPORTED_PARAMETERS = 1310, + D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_HEAP_INVALID_PARAMETERS = 1311, + D3D12_MESSAGE_ID_CREATE_VIDEO_ENCODER_HEAP_UNSUPPORTED_PARAMETERS = 1312, + D3D12_MESSAGE_ID_CREATECOMMANDLIST_NULL_COMMANDALLOCATOR = 1313, + D3D12_MESSAGE_ID_CLEAR_UNORDERED_ACCESS_VIEW_INVALID_DESCRIPTOR_HANDLE = 1314, + D3D12_MESSAGE_ID_DESCRIPTOR_HEAP_NOT_SHADER_VISIBLE = 1315, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_BLENDOP_WARNING = 1316, + D3D12_MESSAGE_ID_CREATEBLENDSTATE_BLENDOPALPHA_WARNING = 1317, + D3D12_MESSAGE_ID_WRITE_COMBINE_PERFORMANCE_WARNING = 1318, + D3D12_MESSAGE_ID_RESOLVE_QUERY_INVALID_QUERY_STATE = 1319, + D3D12_MESSAGE_ID_SETPRIVATEDATA_NO_ACCESS = 1320, + D3D12_MESSAGE_ID_COMMAND_LIST_STATIC_DESCRIPTOR_SAMPLER_MODE_MISMATCH = 1321, + D3D12_MESSAGE_ID_GETCOPYABLEFOOTPRINTS_UNSUPPORTED_BUFFER_WIDTH = 1322, + D3D12_MESSAGE_ID_CREATEMESHSHADER_TOPOLOGY_MISMATCH = 1323, + D3D12_MESSAGE_ID_VRS_SUM_COMBINER_REQUIRES_CAPABILITY = 1324, + D3D12_MESSAGE_ID_SETTING_SHADING_RATE_FROM_MS_REQUIRES_CAPABILITY = 1325, + D3D12_MESSAGE_ID_SHADERCACHESESSION_SHADERCACHEDELETE_NOTSUPPORTED = 1326, + D3D12_MESSAGE_ID_SHADERCACHECONTROL_SHADERCACHECLEAR_NOTSUPPORTED = 1327, + D3D12_MESSAGE_ID_CREATERESOURCE_STATE_IGNORED = 1328, + D3D12_MESSAGE_ID_UNUSED_CROSS_EXECUTE_SPLIT_BARRIER = 1329, + D3D12_MESSAGE_ID_DEVICE_OPEN_SHARED_HANDLE_ACCESS_DENIED = 1330, + + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_VALUES = 1331, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_ACCESS = 1332, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_SYNC = 1333, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_LAYOUT = 1334, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_TYPE = 1335, + D3D12_MESSAGE_ID_OUT_OF_BOUNDS_BARRIER_SUBRESOURCE_RANGE = 1336, + D3D12_MESSAGE_ID_INCOMPATIBLE_BARRIER_RESOURCE_DIMENSION = 1337, + + D3D12_MESSAGE_ID_SET_SCISSOR_RECTS_INVALID_RECT = 1338, + + D3D12_MESSAGE_ID_SHADING_RATE_SOURCE_REQUIRES_DIMENSION_TEXTURE2D = 1339, + + D3D12_MESSAGE_ID_BUFFER_BARRIER_SUBREGION_OUT_OF_BOUNDS = 1340, + + D3D12_MESSAGE_ID_UNSUPPORTED_BARRIER_LAYOUT = 1341, + + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALID_PARAMETERS = 1342, + + D3D12_MESSAGE_ID_ENHANCED_BARRIERS_NOT_SUPPORTED = 1343, + + D3D12_MESSAGE_ID_LEGACY_BARRIER_VALIDATION_FORCED_ON = 1346, + + D3D12_MESSAGE_ID_EMPTY_ROOT_DESCRIPTOR_TABLE = 1347, + + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_ELEMENT_OFFSET_UNALIGNED = 1348, + + D3D12_MESSAGE_ID_ALPHA_BLEND_FACTOR_NOT_SUPPORTED = 1349, + + D3D12_MESSAGE_ID_BARRIER_INTEROP_INVALID_LAYOUT = 1350, + D3D12_MESSAGE_ID_BARRIER_INTEROP_INVALID_STATE = 1351, + + D3D12_MESSAGE_ID_GRAPHICS_PIPELINE_STATE_DESC_ZERO_SAMPLE_MASK = 1352, + + D3D12_MESSAGE_ID_INDEPENDENT_STENCIL_REF_NOT_SUPPORTED = 1353, + D3D12_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INDEPENDENT_MASKS_UNSUPPORTED = 1354, + + D3D12_MESSAGE_ID_TEXTURE_BARRIER_SUBRESOURCES_OUT_OF_BOUNDS = 1355, + + D3D12_MESSAGE_ID_NON_OPTIMAL_BARRIER_ONLY_EXECUTE_COMMAND_LISTS = 1356, + + D3D12_MESSAGE_ID_EXECUTE_INDIRECT_ZERO_COMMAND_COUNT = 1357, + + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_INCOMPATIBLE_TEXTURE_LAYOUT = 1358, + + D3D12_MESSAGE_ID_DYNAMIC_INDEX_BUFFER_STRIP_CUT_NOT_SUPPORTED = 1359, + D3D12_MESSAGE_ID_PRIMITIVE_TOPOLOGY_TRIANGLE_FANS_NOT_SUPPORTED = 1360, + + D3D12_MESSAGE_ID_CREATE_SAMPLER_COMPARISON_FUNC_IGNORED = 1361, + + D3D12_MESSAGE_ID_CREATEHEAP_INVALIDHEAPTYPE = 1362, + D3D12_MESSAGE_ID_CREATERESOURCEANDHEAP_INVALIDHEAPTYPE = 1363, + D3D12_MESSAGE_ID_DYNAMIC_DEPTH_BIAS_NOT_SUPPORTED = 1364, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_NON_WHOLE_DYNAMIC_DEPTH_BIAS = 1365, + + D3D12_MESSAGE_ID_DYNAMIC_DEPTH_BIAS_FLAG_MISSING = 1366, + D3D12_MESSAGE_ID_DYNAMIC_DEPTH_BIAS_NO_PIPELINE = 1367, + D3D12_MESSAGE_ID_DYNAMIC_INDEX_BUFFER_STRIP_CUT_FLAG_MISSING = 1368, + D3D12_MESSAGE_ID_DYNAMIC_INDEX_BUFFER_STRIP_CUT_NO_PIPELINE = 1369, + + D3D12_MESSAGE_ID_NONNORMALIZED_COORDINATE_SAMPLING_NOT_SUPPORTED = 1370, + + D3D12_MESSAGE_ID_INVALID_CAST_TARGET = 1371, + + D3D12_MESSAGE_ID_RENDER_PASS_COMMANDLIST_INVALID_END_STATE = 1372, + D3D12_MESSAGE_ID_RENDER_PASS_COMMANDLIST_INVALID_START_STATE = 1373, + D3D12_MESSAGE_ID_RENDER_PASS_MISMATCHING_ACCESS = 1374, + D3D12_MESSAGE_ID_RENDER_PASS_MISMATCHING_LOCAL_PRESERVE_PARAMETERS = 1375, + D3D12_MESSAGE_ID_RENDER_PASS_LOCAL_PRESERVE_RENDER_PARAMETERS_ERROR = 1376, + D3D12_MESSAGE_ID_RENDER_PASS_LOCAL_DEPTH_STENCIL_ERROR = 1377, + + D3D12_MESSAGE_ID_DRAW_POTENTIALLY_OUTSIDE_OF_VALID_RENDER_AREA = 1378, + D3D12_MESSAGE_ID_CREATERASTERIZERSTATE_INVALID_LINERASTERIZATIONMODE = 1379, + + D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDALIGNMENT_SMALLRESOURCE = 1380, + D3D12_MESSAGE_ID_GENERIC_DEVICE_OPERATION_UNSUPPORTED = 1381, + + D3D12_MESSAGE_ID_CREATEGRAPHICSPIPELINESTATE_RENDER_TARGET_WRONG_WRITE_MASK = 1382, + + D3D12_MESSAGE_ID_PROBABLE_PIX_EVENT_LEAK = 1383, + D3D12_MESSAGE_ID_PIX_EVENT_UNDERFLOW = 1384, + + D3D12_MESSAGE_ID_RECREATEAT_INVALID_TARGET = 1385, + D3D12_MESSAGE_ID_RECREATEAT_INSUFFICIENT_SUPPORT = 1386, + + D3D12_MESSAGE_ID_GPU_BASED_VALIDATION_STRUCTURED_BUFFER_STRIDE_MISMATCH = 1387, + + D3D12_MESSAGE_ID_DISPATCH_GRAPH_INVALID = 1388, + + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_TARGET_FORMAT_INVALID = 1389, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_TARGET_DIMENSION_INVALID = 1390, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_SOURCE_COLOR_FORMAT_INVALID = 1391, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_SOURCE_DEPTH_FORMAT_INVALID = 1392, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXPOSURE_SCALE_FORMAT_INVALID = 1393, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_ENGINE_CREATE_FLAGS_INVALID = 1394, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_LOAD_FAILURE = 1395, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_ENGINE_CREATION_ERROR = 1396, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_UPSCALER_CREATION_ERROR = 1397, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_EXTENSION_INTERNAL_UPSCALER_EXECUTION_ERROR = 1398, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_REGION_INVALID = 1399, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_TIME_DELTA_INVALID = 1400, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_REQUIRED_TEXTURE_IS_NULL = 1401, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_MOTION_VECTORS_FORMAT_INVALID = 1402, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_FLAGS_INVALID = 1403, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_FORMAT_INVALID = 1404, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_EXPOSURE_SCALE_TEXTURE_SIZE_INVALID = 1405, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_VARIANT_INDEX_OUT_OF_BOUNDS = 1406, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_VARIANT_ID_NOT_FOUND = 1407, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_DUPLICATE_VARIANT_ID = 1408, + D3D12_MESSAGE_ID_DIRECTSR_OUT_OF_MEMORY = 1409, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_UNEXPECTED_TEXTURE_IS_IGNORED = 1410, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EVICT_UNDERFLOW = 1411, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_OPTIONAL_TEXTURE_IS_NULL = 1412, + D3D12_MESSAGE_ID_DIRECTSR_SUPERRES_UPSCALER_EXECUTE_INVALID_CAMERA_JITTER = 1413, + D3D12_MESSAGE_ID_CREATE_STATE_OBJECT_WARNING = 1414, + D3D12_MESSAGE_ID_GUID_TEXTURE_LAYOUT_UNSUPPORTED = 1415, + D3D12_MESSAGE_ID_RESOLVE_ENCODER_INPUT_PARAM_LAYOUT_INVALID_PARAMETERS = 1416, + D3D12_MESSAGE_ID_INVALID_BARRIER_ACCESS = 1417, + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_INSTANCE_COUNT_ZERO = 1418, + D3D12_MESSAGE_ID_DESCRIPTOR_HEAP_NOT_SET_BEFORE_ROOT_SIGNATURE_WITH_DIRECTLY_INDEXED_FLAG = 1419, + D3D12_MESSAGE_ID_DIFFERENT_DESCRIPTOR_HEAP_SET_AFTER_ROOT_SIGNATURE_WITH_DIRECTLY_INDEXED_FLAG = 1420, + D3D12_MESSAGE_ID_APPLICATION_SPECIFIC_DRIVER_STATE_NOT_SUPPORTED = 1421, + D3D12_MESSAGE_ID_RENDER_TARGET_OR_DEPTH_STENCIL_RESOUCE_NOT_INITIALIZED = 1422, + D3D12_MESSAGE_ID_BYTECODE_VALIDATION_ERROR = 1423, + D3D12_MESSAGE_ID_FENCE_ZERO_WAIT = 1424, + D3D12_MESSAGE_ID_NON_COMMON_RESOURCE_IN_COPY_QUEUE = 1425, + D3D12_MESSAGE_ID_D3D12_MESSAGES_END +} D3D12_MESSAGE_ID; + +typedef struct D3D12_MESSAGE +{ + D3D12_MESSAGE_CATEGORY Category; + D3D12_MESSAGE_SEVERITY Severity; + D3D12_MESSAGE_ID ID; + [annotation("_Field_size_(DescriptionByteLength)")] const char* pDescription; + SIZE_T DescriptionByteLength; +} D3D12_MESSAGE; + +typedef struct D3D12_INFO_QUEUE_FILTER_DESC +{ + UINT NumCategories; + [annotation("_Field_size_(NumCategories)")] D3D12_MESSAGE_CATEGORY* pCategoryList; + UINT NumSeverities; + [annotation("_Field_size_(NumSeverities)")] D3D12_MESSAGE_SEVERITY* pSeverityList; + UINT NumIDs; + [annotation("_Field_size_(NumIDs)")] D3D12_MESSAGE_ID* pIDList; +} D3D12_INFO_QUEUE_FILTER_DESC; + +// To use, memset to 0, then fill in what you need. +typedef struct D3D12_INFO_QUEUE_FILTER +{ + D3D12_INFO_QUEUE_FILTER_DESC AllowList; + D3D12_INFO_QUEUE_FILTER_DESC DenyList; +} D3D12_INFO_QUEUE_FILTER; + +//============================================================================= +// ID3D12InfoQueue +// +// Logs D3D12 Messages. +// This interface can be queried from ID3D12Device, as long as the device +// was created with the debug layer. +// +// +cpp_quote("#define D3D12_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024") +[uuid(0742a90b-c387-483f-b946-30a7e4e61458), object, local, pointer_default(unique)] +interface ID3D12InfoQueue + : IUnknown +{ + //========================================================================= + // Methods for configuring how much data is stored in the queue. + + // SetMessageCountLimit() + // This sets how many messages are stored. When the queue is full, + // new messages coming in push old messages out. + // Passing -1 to SetMessageCountLimit means the queue has + // unlimited size (go until out of memory or ClearStoredMessages()). + // The default message count size is + // D3D12_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT + // Returns S_OK or E_INVALIDARG. + HRESULT SetMessageCountLimit([annotation("_In_")] UINT64 MessageCountLimit); + + // ClearStoredMessages + void ClearStoredMessages(); + + //========================================================================= + // Methods for retrieving data or statistics from the queue. + + // GetMessage() + // Retrieves messages, one at a time, from the queue which pass any + // retrieval filter currently defined. If there is no retrieval filter, + // all messages can be retrieved. + // The MessageIndex parameter is a 0 based index into the results passing + // the filter. The number of results is returned by + // GetNumStoredMessagesAllowedByRetrievalFilter(). + // + // Note this does not remove the message from the queue. + // + // pMessageByteLength inputs the size of the buffer passed in via + // pMessage, and outputs the size of the message. pMessage can be NULL + // when the size of the required buffer is being queried (return S_FALSE). + // + // NOTE: The returned buffer pMessage is NOT just the size of D3D12_MESSAGE, + // it includes extra memory after the D3D12_MESSAGE for storing the string + // description, which is pointed to from within D3D12_MESSAGE. Therefore + // applications should check the size needed for pMessage as described above. + // + // Watch out for thread safety when making consecutive calls first to + // determine the buffer size required and then to pass in the buffer and + // retrieve the message, and also between calling + // GetNumStoredMessagesAllowedByRetrievalFilter() and enumerating through + // the results via GetMessagE(). + // + // Returns: S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT GetMessage( + [annotation("_In_")] UINT64 MessageIndex, + [annotation("_Out_writes_bytes_opt_(*pMessageByteLength)")] D3D12_MESSAGE* pMessage, + [annotation("_Inout_")] SIZE_T* pMessageByteLength); + + // GetNumMessagesAllowedByStorageFilter() + // Returns how many messages sent to the queue passed + // whatever storage filter was active upon receipt of + // the message. + // This can be a larger value than the message count limit, + // returned by GetMessageCountLimit(), since old messages are discarded + // when the queue is full to prevent overflow. + UINT64 GetNumMessagesAllowedByStorageFilter(); + + // GetNumMessagesDeniedByStorageFilter() + UINT64 GetNumMessagesDeniedByStorageFilter(); + + // GetNumStoredMessages() + // Returns how many messages are currently stored in the queue. + UINT64 GetNumStoredMessages(); + + // GetNumStoredMessagesAllowedByRetrievalFilter() + // Returns how many messages that are currently in the queue + // pass any retrieval filter that is currently set. + // The MessageIndex parameter to GetMessage() indexes + // an array of this many results. + UINT64 GetNumStoredMessagesAllowedByRetrievalFilter(); + + // GetNumMessagesDiscardedByMessageCountLimit() + UINT64 GetNumMessagesDiscardedByMessageCountLimit(); + + // GetMessageCountLimit + // This is how many messages can be stored in the queue. + // When the queue is full, new messages coming in push old messages out. + // -1 means there is no limit. + UINT64 GetMessageCountLimit(); + + //========================================================================= + // Methods for filtering what gets stored in the queue + + // AddStorageFilterEntries() + // Adds to the existing entries at top of stack + // Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT AddStorageFilterEntries( + [annotation("_In_")] D3D12_INFO_QUEUE_FILTER* pFilter); + + // GetStorageFilter() + // Gets all entries at top of stack. + // The application must allocate the output buffer. The size required can be + // queried by passing null for pFilter and looking at the returned + // pFilterByteLength (HRESULT is S_FALSE). Note that D3D12_INFO_QUEUE_FILTER contains + // pointers - these will point to locations within the same + // contiguous buffer - *pFilterByteLength is the total storage needed for all + // data. So the application needs to only allocate/free the memory for pFilter. + // Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY + HRESULT GetStorageFilter( + [annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] D3D12_INFO_QUEUE_FILTER* pFilter, + [annotation("_Inout_")] SIZE_T* pFilterByteLength); + + // ClearStorageFilter() + // Clears filter at the top of the stack (if there is one) + void ClearStorageFilter(); + + // PushEmptyStorageFilter() + // Push an empty storage filter on the stack to allow local filtering changes. + // For convenience, this is automatically called by SetStorageFilter() + // if the stack is empty. Thus if the stack is not needed, filters can be + // defined without ever bothering to push or pop. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushEmptyStorageFilter(); + + // PushCopyOfStorageFilter() + // Push a copy of the current filter so that local modifications can be made + // starting from what currently exists. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushCopyOfStorageFilter(); + + // PushStorageFilter() + // Push a filter passed as a parameter onto the stack. This is + // just a helper for calling PushEmptyStorageFilter() followed + // by AddStorageFilterEntries() + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT PushStorageFilter( + [annotation("_In_")] D3D12_INFO_QUEUE_FILTER* pFilter); + + // PopStorageFilter() + // Pop the current storage filter off the stack (if there is one) + void PopStorageFilter(); + + // GetStorageFilterStackSize() + UINT GetStorageFilterStackSize(); + + //========================================================================= + // Methods for filtering what gets read out of the queue by GetMessage(). + + // AddRetrievalFilterEntries() + // Adds to the existing entries at top of stack + // Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT AddRetrievalFilterEntries( + [annotation("_In_")] D3D12_INFO_QUEUE_FILTER* pFilter); + + // GetRetrievalFilter() + // Gets all entries at top of stack. + // The application must allocate the output buffer. The size required can be + // queried by passing null for pFilter and looking at the returned + // pFilterByteLength (HRESULT is S_FALSE). Note that D3D12_INFO_QUEUE_FILTER contains + // pointers - these will point to locations within the same + // contiguous buffer - *pFilterByteLength is the total storage needed for all + // data. So the application needs to only allocate/free the memory for pFilter. + // Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY + HRESULT GetRetrievalFilter( + [annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] D3D12_INFO_QUEUE_FILTER* pFilter, + [annotation("_Inout_")] SIZE_T* pFilterByteLength); + + // ClearRetrievalFilter() + // Clears filter at the top of the stack (if there is one) + void ClearRetrievalFilter(); + + // PushEmptyRetrievalFilter() + // Push an empty storage filter on the stack to allow local filtering changes. + // For convenience, this is automatically called by SetRetrievalFilter() + // if the stack is empty. Thus if the stack is not needed, filters can be + // defined without ever bothering to push or pop. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushEmptyRetrievalFilter(); + + // PushCopyOfRetrievalFilter() + // Push a copy of the current filter so that local modifications can be made + // starting from what currently exists. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushCopyOfRetrievalFilter(); + + // PushRetrievalFilter() + // Push a filter passed as a parameter onto the stack. This is + // just a helper for calling PushEmptyRetrievalFilter() followed + // by AddRetrievalFilterEntries() + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT PushRetrievalFilter( + [annotation("_In_")] D3D12_INFO_QUEUE_FILTER* pFilter); + + // PopRetrievalFilter() + // Pop the current storage filter off the stack (if there is one) + void PopRetrievalFilter(); + + // GetRetrievalFilterStackSize() + UINT GetRetrievalFilterStackSize(); + + //========================================================================= + // Methods for adding entries to the queue. + + // AddMessage() + // This is used by D3D12 components to log messages. Nothing stops + // applications from calling this, but it isn’t particularly useful. + // If an application wishes to insert custom strings into the queue, + // AddApplicationMessage() below is suggested. See below. + // + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY + HRESULT AddMessage( + [annotation("_In_")] D3D12_MESSAGE_CATEGORY Category, + [annotation("_In_")] D3D12_MESSAGE_SEVERITY Severity, + [annotation("_In_")] D3D12_MESSAGE_ID ID, + [annotation("_In_")] LPCSTR pDescription); + + // AddApplicationMessage() + // This is a convenience for applications that want + // to insert strings of their own into the queue, perhaps to log issues + // of its own, or to mark out points in time in the queue. This + // has the same effect as calling AddMessage() above with the + // following settings: + // Category = D3D12_MESSAGE_CATEGORY_APPLICATION_DEFINED + // Severity = + // ID = D3D12_MESSAGE_ID_STRING_FROM_APPLICATION + // pDescription = + // + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY + HRESULT AddApplicationMessage( + [annotation("_In_")] D3D12_MESSAGE_SEVERITY Severity, + [annotation("_In_")] LPCSTR pDescription); + + //========================================================================= + // Methods for breaking on errors that pass the storage filter. + HRESULT SetBreakOnCategory( + [annotation("_In_")] D3D12_MESSAGE_CATEGORY Category, + [annotation("_In_")] BOOL bEnable); + HRESULT SetBreakOnSeverity( + [annotation("_In_")] D3D12_MESSAGE_SEVERITY Severity, + [annotation("_In_")] BOOL bEnable); + HRESULT SetBreakOnID( + [annotation("_In_")] D3D12_MESSAGE_ID ID, + [annotation("_In_")] BOOL bEnable); + + BOOL GetBreakOnCategory( + [annotation("_In_")] D3D12_MESSAGE_CATEGORY Category); + BOOL GetBreakOnSeverity( + [annotation("_In_")] D3D12_MESSAGE_SEVERITY Severity); + BOOL GetBreakOnID( + [annotation("_In_")] D3D12_MESSAGE_ID ID); + + //========================================================================= + // Methods for globally muting debug spte from the InfoQueue + void SetMuteDebugOutput( + [annotation("_In_")] BOOL bMute); + BOOL GetMuteDebugOutput(); +}; + +typedef enum D3D12_MESSAGE_CALLBACK_FLAGS +{ + D3D12_MESSAGE_CALLBACK_FLAG_NONE = 0x00, + D3D12_MESSAGE_CALLBACK_IGNORE_FILTERS = 0x01, + +} D3D12_MESSAGE_CALLBACK_FLAGS; + +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS(D3D12_MESSAGE_CALLBACK_FLAGS)") + +typedef void (__stdcall *D3D12MessageFunc) (D3D12_MESSAGE_CATEGORY Category, + D3D12_MESSAGE_SEVERITY Severity, + D3D12_MESSAGE_ID ID, + LPCSTR pDescription, + void* pContext); + +[ uuid( 2852dd88-b484-4c0c-b6b1-67168500e600 ), object, local, pointer_default( unique ) ] +interface ID3D12InfoQueue1 + : ID3D12InfoQueue +{ + HRESULT RegisterMessageCallback( + [annotation("_In_")] D3D12MessageFunc CallbackFunc, + [annotation("_In_")] D3D12_MESSAGE_CALLBACK_FLAGS CallbackFilterFlags, + [annotation("_Inout_")] void* pContext, + [annotation("_Inout_")] DWORD *pCallbackCookie); + + HRESULT UnregisterMessageCallback( + [annotation("_In_")] DWORD CallbackCookie); +}; + + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */") +#pragma endregion + +cpp_quote( "DEFINE_GUID(IID_ID3D12Debug,0x344488b7,0x6846,0x474b,0xb9,0x89,0xf0,0x27,0x44,0x82,0x45,0xe0);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Debug1,0xaffaa4ca,0x63fe,0x4d8e,0xb8,0xad,0x15,0x90,0x00,0xaf,0x43,0x04);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Debug2,0x93a665c4,0xa3b2,0x4e5d,0xb6,0x92,0xa2,0x6a,0xe1,0x4e,0x33,0x74);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Debug3,0x5cf4e58f,0xf671,0x4ff1,0xa5,0x42,0x36,0x86,0xe3,0xd1,0x53,0xd1);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Debug4,0x014b816e,0x9ec5,0x4a2f,0xa8,0x45,0xff,0xbe,0x44,0x1c,0xe1,0x3a);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Debug5,0x548d6b12,0x09fa,0x40e0,0x90,0x69,0x5d,0xcd,0x58,0x9a,0x52,0xc9);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12Debug6,0x82a816d6,0x5d01,0x4157,0x97,0xd0,0x49,0x75,0x46,0x3f,0xd1,0xed);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DebugDevice1,0xa9b71770,0xd099,0x4a65,0xa6,0x98,0x3d,0xee,0x10,0x02,0x0f,0x88);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DebugDevice,0x3febd6dd,0x4973,0x4787,0x81,0x94,0xe4,0x5f,0x9e,0x28,0x92,0x3e);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DebugDevice2,0x60eccbc1,0x378d,0x4df1,0x89,0x4c,0xf8,0xac,0x5c,0xe4,0xd7,0xdd);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DebugCommandQueue,0x09e0bf36,0x54ac,0x484f,0x88,0x47,0x4b,0xae,0xea,0xb6,0x05,0x3a);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DebugCommandQueue1,0x16be35a2,0xbfd6,0x49f2,0xbc,0xae,0xea,0xae,0x4a,0xff,0x86,0x2d);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DebugCommandList1,0x102ca951,0x311b,0x4b01,0xb1,0x1f,0xec,0xb8,0x3e,0x06,0x1b,0x37);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DebugCommandList,0x09e0bf36,0x54ac,0x484f,0x88,0x47,0x4b,0xae,0xea,0xb6,0x05,0x3f);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DebugCommandList2,0xaeb575cf,0x4e06,0x48be,0xba,0x3b,0xc4,0x50,0xfc,0x96,0x65,0x2e);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12DebugCommandList3,0x197d5e15,0x4d37,0x4d34,0xaf,0x78,0x72,0x4c,0xd7,0x0f,0xdb,0x1f);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12SharingContract,0x0adf7d52,0x929c,0x4e61,0xad,0xdb,0xff,0xed,0x30,0xde,0x66,0xef);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12ManualWriteTrackingResource,0x86ca3b85,0x49ad,0x4b6e,0xae,0xd5,0xed,0xdb,0x18,0x54,0x0f,0x41);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12InfoQueue,0x0742a90b,0xc387,0x483f,0xb9,0x46,0x30,0xa7,0xe4,0xe6,0x14,0x58);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12InfoQueue1,0x2852dd88,0xb484,0x4c0c,0xb6,0xb1,0x67,0x16,0x85,0x00,0xe6,0x00);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12shader.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12shader.h new file mode 100644 index 0000000000000000000000000000000000000000..65728dddf52f777d9fef7aa0f6dfef598eba7d5d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12shader.h @@ -0,0 +1,494 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +// +// File: D3D12Shader.h +// Content: D3D12 Shader Types and APIs +// +////////////////////////////////////////////////////////////////////////////// + +#ifndef __D3D12SHADER_H__ +#define __D3D12SHADER_H__ + +#include "d3dcommon.h" + +typedef enum D3D12_SHADER_VERSION_TYPE +{ + D3D12_SHVER_PIXEL_SHADER = 0, + D3D12_SHVER_VERTEX_SHADER = 1, + D3D12_SHVER_GEOMETRY_SHADER = 2, + + // D3D11 Shaders + D3D12_SHVER_HULL_SHADER = 3, + D3D12_SHVER_DOMAIN_SHADER = 4, + D3D12_SHVER_COMPUTE_SHADER = 5, + + // D3D12 Shaders + D3D12_SHVER_LIBRARY = 6, + + D3D12_SHVER_RAY_GENERATION_SHADER = 7, + D3D12_SHVER_INTERSECTION_SHADER = 8, + D3D12_SHVER_ANY_HIT_SHADER = 9, + D3D12_SHVER_CLOSEST_HIT_SHADER = 10, + D3D12_SHVER_MISS_SHADER = 11, + D3D12_SHVER_CALLABLE_SHADER = 12, + + D3D12_SHVER_MESH_SHADER = 13, + D3D12_SHVER_AMPLIFICATION_SHADER = 14, + + D3D12_SHVER_NODE_SHADER = 15, + + D3D12_SHVER_RESERVED0 = 0xFFF0, +} D3D12_SHADER_VERSION_TYPE; + +#define D3D12_SHVER_GET_TYPE(_Version) \ + (((_Version) >> 16) & 0xffff) +#define D3D12_SHVER_GET_MAJOR(_Version) \ + (((_Version) >> 4) & 0xf) +#define D3D12_SHVER_GET_MINOR(_Version) \ + (((_Version) >> 0) & 0xf) + +// Slot ID for library function return +#define D3D_RETURN_PARAMETER_INDEX (-1) + +typedef D3D_RESOURCE_RETURN_TYPE D3D12_RESOURCE_RETURN_TYPE; + +typedef D3D_CBUFFER_TYPE D3D12_CBUFFER_TYPE; + + +typedef struct _D3D12_SIGNATURE_PARAMETER_DESC +{ + LPCSTR SemanticName; // Name of the semantic + UINT SemanticIndex; // Index of the semantic + UINT Register; // Number of member variables + D3D_NAME SystemValueType;// A predefined system value, or D3D_NAME_UNDEFINED if not applicable + D3D_REGISTER_COMPONENT_TYPE ComponentType; // Scalar type (e.g. uint, float, etc.) + BYTE Mask; // Mask to indicate which components of the register + // are used (combination of D3D10_COMPONENT_MASK values) + BYTE ReadWriteMask; // Mask to indicate whether a given component is + // never written (if this is an output signature) or + // always read (if this is an input signature). + // (combination of D3D_MASK_* values) + UINT Stream; // Stream index + D3D_MIN_PRECISION MinPrecision; // Minimum desired interpolation precision +} D3D12_SIGNATURE_PARAMETER_DESC; + +typedef struct _D3D12_SHADER_BUFFER_DESC +{ + LPCSTR Name; // Name of the constant buffer + D3D_CBUFFER_TYPE Type; // Indicates type of buffer content + UINT Variables; // Number of member variables + UINT Size; // Size of CB (in bytes) + UINT uFlags; // Buffer description flags +} D3D12_SHADER_BUFFER_DESC; + +typedef struct _D3D12_SHADER_VARIABLE_DESC +{ + LPCSTR Name; // Name of the variable + UINT StartOffset; // Offset in constant buffer's backing store + UINT Size; // Size of variable (in bytes) + UINT uFlags; // Variable flags + LPVOID DefaultValue; // Raw pointer to default value + UINT StartTexture; // First texture index (or -1 if no textures used) + UINT TextureSize; // Number of texture slots possibly used. + UINT StartSampler; // First sampler index (or -1 if no textures used) + UINT SamplerSize; // Number of sampler slots possibly used. +} D3D12_SHADER_VARIABLE_DESC; + +typedef struct _D3D12_SHADER_TYPE_DESC +{ + D3D_SHADER_VARIABLE_CLASS Class; // Variable class (e.g. object, matrix, etc.) + D3D_SHADER_VARIABLE_TYPE Type; // Variable type (e.g. float, sampler, etc.) + UINT Rows; // Number of rows (for matrices, 1 for other numeric, 0 if not applicable) + UINT Columns; // Number of columns (for vectors & matrices, 1 for other numeric, 0 if not applicable) + UINT Elements; // Number of elements (0 if not an array) + UINT Members; // Number of members (0 if not a structure) + UINT Offset; // Offset from the start of structure (0 if not a structure member) + LPCSTR Name; // Name of type, can be NULL +} D3D12_SHADER_TYPE_DESC; + +typedef D3D_TESSELLATOR_DOMAIN D3D12_TESSELLATOR_DOMAIN; + +typedef D3D_TESSELLATOR_PARTITIONING D3D12_TESSELLATOR_PARTITIONING; + +typedef D3D_TESSELLATOR_OUTPUT_PRIMITIVE D3D12_TESSELLATOR_OUTPUT_PRIMITIVE; + +typedef struct _D3D12_SHADER_DESC +{ + UINT Version; // Shader version + LPCSTR Creator; // Creator string + UINT Flags; // Shader compilation/parse flags + + UINT ConstantBuffers; // Number of constant buffers + UINT BoundResources; // Number of bound resources + UINT InputParameters; // Number of parameters in the input signature + UINT OutputParameters; // Number of parameters in the output signature + + UINT InstructionCount; // Number of emitted instructions + UINT TempRegisterCount; // Number of temporary registers used + UINT TempArrayCount; // Number of temporary arrays used + UINT DefCount; // Number of constant defines + UINT DclCount; // Number of declarations (input + output) + UINT TextureNormalInstructions; // Number of non-categorized texture instructions + UINT TextureLoadInstructions; // Number of texture load instructions + UINT TextureCompInstructions; // Number of texture comparison instructions + UINT TextureBiasInstructions; // Number of texture bias instructions + UINT TextureGradientInstructions; // Number of texture gradient instructions + UINT FloatInstructionCount; // Number of floating point arithmetic instructions used + UINT IntInstructionCount; // Number of signed integer arithmetic instructions used + UINT UintInstructionCount; // Number of unsigned integer arithmetic instructions used + UINT StaticFlowControlCount; // Number of static flow control instructions used + UINT DynamicFlowControlCount; // Number of dynamic flow control instructions used + UINT MacroInstructionCount; // Number of macro instructions used + UINT ArrayInstructionCount; // Number of array instructions used + UINT CutInstructionCount; // Number of cut instructions used + UINT EmitInstructionCount; // Number of emit instructions used + D3D_PRIMITIVE_TOPOLOGY GSOutputTopology; // Geometry shader output topology + UINT GSMaxOutputVertexCount; // Geometry shader maximum output vertex count + D3D_PRIMITIVE InputPrimitive; // GS/HS input primitive + UINT PatchConstantParameters; // Number of parameters in the patch constant signature + UINT cGSInstanceCount; // Number of Geometry shader instances + UINT cControlPoints; // Number of control points in the HS->DS stage + D3D_TESSELLATOR_OUTPUT_PRIMITIVE HSOutputPrimitive; // Primitive output by the tessellator + D3D_TESSELLATOR_PARTITIONING HSPartitioning; // Partitioning mode of the tessellator + D3D_TESSELLATOR_DOMAIN TessellatorDomain; // Domain of the tessellator (quad, tri, isoline) + // instruction counts + UINT cBarrierInstructions; // Number of barrier instructions in a compute shader + UINT cInterlockedInstructions; // Number of interlocked instructions + UINT cTextureStoreInstructions; // Number of texture writes +} D3D12_SHADER_DESC; + +typedef struct _D3D12_SHADER_INPUT_BIND_DESC +{ + LPCSTR Name; // Name of the resource + D3D_SHADER_INPUT_TYPE Type; // Type of resource (e.g. texture, cbuffer, etc.) + UINT BindPoint; // Starting bind point + UINT BindCount; // Number of contiguous bind points (for arrays) + + UINT uFlags; // Input binding flags + D3D_RESOURCE_RETURN_TYPE ReturnType; // Return type (if texture) + D3D_SRV_DIMENSION Dimension; // Dimension (if texture) + UINT NumSamples; // Number of samples (0 if not MS texture) + UINT Space; // Register space + UINT uID; // Range ID in the bytecode +} D3D12_SHADER_INPUT_BIND_DESC; + +#define D3D_SHADER_REQUIRES_DOUBLES 0x00000001 +#define D3D_SHADER_REQUIRES_EARLY_DEPTH_STENCIL 0x00000002 +#define D3D_SHADER_REQUIRES_UAVS_AT_EVERY_STAGE 0x00000004 +#define D3D_SHADER_REQUIRES_64_UAVS 0x00000008 +#define D3D_SHADER_REQUIRES_MINIMUM_PRECISION 0x00000010 +#define D3D_SHADER_REQUIRES_11_1_DOUBLE_EXTENSIONS 0x00000020 +#define D3D_SHADER_REQUIRES_11_1_SHADER_EXTENSIONS 0x00000040 +#define D3D_SHADER_REQUIRES_LEVEL_9_COMPARISON_FILTERING 0x00000080 +#define D3D_SHADER_REQUIRES_TILED_RESOURCES 0x00000100 +#define D3D_SHADER_REQUIRES_STENCIL_REF 0x00000200 +#define D3D_SHADER_REQUIRES_INNER_COVERAGE 0x00000400 +#define D3D_SHADER_REQUIRES_TYPED_UAV_LOAD_ADDITIONAL_FORMATS 0x00000800 +#define D3D_SHADER_REQUIRES_ROVS 0x00001000 +#define D3D_SHADER_REQUIRES_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER 0x00002000 +#define D3D_SHADER_REQUIRES_WAVE_OPS 0x00004000 +#define D3D_SHADER_REQUIRES_INT64_OPS 0x00008000 +#define D3D_SHADER_REQUIRES_VIEW_ID 0x00010000 +#define D3D_SHADER_REQUIRES_BARYCENTRICS 0x00020000 +#define D3D_SHADER_REQUIRES_NATIVE_16BIT_OPS 0x00040000 +#define D3D_SHADER_REQUIRES_SHADING_RATE 0x00080000 +#define D3D_SHADER_REQUIRES_RAYTRACING_TIER_1_1 0x00100000 +#define D3D_SHADER_REQUIRES_SAMPLER_FEEDBACK 0x00200000 +#define D3D_SHADER_REQUIRES_ATOMIC_INT64_ON_TYPED_RESOURCE 0x00400000 +#define D3D_SHADER_REQUIRES_ATOMIC_INT64_ON_GROUP_SHARED 0x00800000 +#define D3D_SHADER_REQUIRES_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS 0x01000000 +#define D3D_SHADER_REQUIRES_RESOURCE_DESCRIPTOR_HEAP_INDEXING 0x02000000 +#define D3D_SHADER_REQUIRES_SAMPLER_DESCRIPTOR_HEAP_INDEXING 0x04000000 +#define D3D_SHADER_REQUIRES_WAVE_MMA 0x08000000 +#define D3D_SHADER_REQUIRES_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE 0x10000000 +#define D3D_SHADER_REQUIRES_ADVANCED_TEXTURE_OPS 0x20000000 +#define D3D_SHADER_REQUIRES_WRITEABLE_MSAA_TEXTURES 0x40000000 +#define D3D_SHADER_REQUIRES_SAMPLE_CMP_GRADIENT_OR_BIAS 0x80000000 +#define D3D_SHADER_REQUIRES_EXTENDED_COMMAND_INFO 0x100000000ull + + +typedef struct _D3D12_LIBRARY_DESC +{ + LPCSTR Creator; // The name of the originator of the library. + UINT Flags; // Compilation flags. + UINT FunctionCount; // Number of functions exported from the library. +} D3D12_LIBRARY_DESC; + +typedef struct _D3D12_FUNCTION_DESC +{ + UINT Version; // Shader version + LPCSTR Creator; // Creator string + UINT Flags; // Shader compilation/parse flags + + UINT ConstantBuffers; // Number of constant buffers + UINT BoundResources; // Number of bound resources + + UINT InstructionCount; // Number of emitted instructions + UINT TempRegisterCount; // Number of temporary registers used + UINT TempArrayCount; // Number of temporary arrays used + UINT DefCount; // Number of constant defines + UINT DclCount; // Number of declarations (input + output) + UINT TextureNormalInstructions; // Number of non-categorized texture instructions + UINT TextureLoadInstructions; // Number of texture load instructions + UINT TextureCompInstructions; // Number of texture comparison instructions + UINT TextureBiasInstructions; // Number of texture bias instructions + UINT TextureGradientInstructions; // Number of texture gradient instructions + UINT FloatInstructionCount; // Number of floating point arithmetic instructions used + UINT IntInstructionCount; // Number of signed integer arithmetic instructions used + UINT UintInstructionCount; // Number of unsigned integer arithmetic instructions used + UINT StaticFlowControlCount; // Number of static flow control instructions used + UINT DynamicFlowControlCount; // Number of dynamic flow control instructions used + UINT MacroInstructionCount; // Number of macro instructions used + UINT ArrayInstructionCount; // Number of array instructions used + UINT MovInstructionCount; // Number of mov instructions used + UINT MovcInstructionCount; // Number of movc instructions used + UINT ConversionInstructionCount; // Number of type conversion instructions used + UINT BitwiseInstructionCount; // Number of bitwise arithmetic instructions used + D3D_FEATURE_LEVEL MinFeatureLevel; // Min target of the function byte code + UINT64 RequiredFeatureFlags; // Required feature flags + + LPCSTR Name; // Function name + INT FunctionParameterCount; // Number of logical parameters in the function signature (not including return) + BOOL HasReturn; // TRUE, if function returns a value, false - it is a subroutine + BOOL Has10Level9VertexShader; // TRUE, if there is a 10L9 VS blob + BOOL Has10Level9PixelShader; // TRUE, if there is a 10L9 PS blob +} D3D12_FUNCTION_DESC; + +typedef struct _D3D12_PARAMETER_DESC +{ + LPCSTR Name; // Parameter name. + LPCSTR SemanticName; // Parameter semantic name (+index). + D3D_SHADER_VARIABLE_TYPE Type; // Element type. + D3D_SHADER_VARIABLE_CLASS Class; // Scalar/Vector/Matrix. + UINT Rows; // Rows are for matrix parameters. + UINT Columns; // Components or Columns in matrix. + D3D_INTERPOLATION_MODE InterpolationMode; // Interpolation mode. + D3D_PARAMETER_FLAGS Flags; // Parameter modifiers. + + UINT FirstInRegister; // The first input register for this parameter. + UINT FirstInComponent; // The first input register component for this parameter. + UINT FirstOutRegister; // The first output register for this parameter. + UINT FirstOutComponent; // The first output register component for this parameter. +} D3D12_PARAMETER_DESC; + + +////////////////////////////////////////////////////////////////////////////// +// Interfaces //////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +typedef interface ID3D12ShaderReflectionType ID3D12ShaderReflectionType; +typedef interface ID3D12ShaderReflectionType *LPD3D12SHADERREFLECTIONTYPE; + +typedef interface ID3D12ShaderReflectionVariable ID3D12ShaderReflectionVariable; +typedef interface ID3D12ShaderReflectionVariable *LPD3D12SHADERREFLECTIONVARIABLE; + +typedef interface ID3D12ShaderReflectionConstantBuffer ID3D12ShaderReflectionConstantBuffer; +typedef interface ID3D12ShaderReflectionConstantBuffer *LPD3D12SHADERREFLECTIONCONSTANTBUFFER; + +typedef interface ID3D12ShaderReflection ID3D12ShaderReflection; +typedef interface ID3D12ShaderReflection *LPD3D12SHADERREFLECTION; + +typedef interface ID3D12LibraryReflection ID3D12LibraryReflection; +typedef interface ID3D12LibraryReflection *LPD3D12LIBRARYREFLECTION; + +typedef interface ID3D12FunctionReflection ID3D12FunctionReflection; +typedef interface ID3D12FunctionReflection *LPD3D12FUNCTIONREFLECTION; + +typedef interface ID3D12FunctionParameterReflection ID3D12FunctionParameterReflection; +typedef interface ID3D12FunctionParameterReflection *LPD3D12FUNCTIONPARAMETERREFLECTION; + + +// {E913C351-783D-48CA-A1D1-4F306284AD56} +interface DECLSPEC_UUID("E913C351-783D-48CA-A1D1-4F306284AD56") ID3D12ShaderReflectionType; +DEFINE_GUID(IID_ID3D12ShaderReflectionType, +0xe913c351, 0x783d, 0x48ca, 0xa1, 0xd1, 0x4f, 0x30, 0x62, 0x84, 0xad, 0x56); + +#undef INTERFACE +#define INTERFACE ID3D12ShaderReflectionType + +DECLARE_INTERFACE(ID3D12ShaderReflectionType) +{ + STDMETHOD(GetDesc)(THIS_ _Out_ D3D12_SHADER_TYPE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D12ShaderReflectionType*, GetMemberTypeByIndex)(THIS_ _In_ UINT Index) PURE; + STDMETHOD_(ID3D12ShaderReflectionType*, GetMemberTypeByName)(THIS_ _In_ LPCSTR Name) PURE; + STDMETHOD_(LPCSTR, GetMemberTypeName)(THIS_ _In_ UINT Index) PURE; + + STDMETHOD(IsEqual)(THIS_ _In_ ID3D12ShaderReflectionType* pType) PURE; + STDMETHOD_(ID3D12ShaderReflectionType*, GetSubType)(THIS) PURE; + STDMETHOD_(ID3D12ShaderReflectionType*, GetBaseClass)(THIS) PURE; + STDMETHOD_(UINT, GetNumInterfaces)(THIS) PURE; + STDMETHOD_(ID3D12ShaderReflectionType*, GetInterfaceByIndex)(THIS_ _In_ UINT uIndex) PURE; + STDMETHOD(IsOfType)(THIS_ _In_ ID3D12ShaderReflectionType* pType) PURE; + STDMETHOD(ImplementsInterface)(THIS_ _In_ ID3D12ShaderReflectionType* pBase) PURE; +}; + +// {8337A8A6-A216-444A-B2F4-314733A73AEA} +interface DECLSPEC_UUID("8337A8A6-A216-444A-B2F4-314733A73AEA") ID3D12ShaderReflectionVariable; +DEFINE_GUID(IID_ID3D12ShaderReflectionVariable, +0x8337a8a6, 0xa216, 0x444a, 0xb2, 0xf4, 0x31, 0x47, 0x33, 0xa7, 0x3a, 0xea); + +#undef INTERFACE +#define INTERFACE ID3D12ShaderReflectionVariable + +DECLARE_INTERFACE(ID3D12ShaderReflectionVariable) +{ + STDMETHOD(GetDesc)(THIS_ _Out_ D3D12_SHADER_VARIABLE_DESC *pDesc) PURE; + + STDMETHOD_(ID3D12ShaderReflectionType*, GetType)(THIS) PURE; + STDMETHOD_(ID3D12ShaderReflectionConstantBuffer*, GetBuffer)(THIS) PURE; + + STDMETHOD_(UINT, GetInterfaceSlot)(THIS_ _In_ UINT uArrayIndex) PURE; +}; + +// {C59598B4-48B3-4869-B9B1-B1618B14A8B7} +interface DECLSPEC_UUID("C59598B4-48B3-4869-B9B1-B1618B14A8B7") ID3D12ShaderReflectionConstantBuffer; +DEFINE_GUID(IID_ID3D12ShaderReflectionConstantBuffer, +0xc59598b4, 0x48b3, 0x4869, 0xb9, 0xb1, 0xb1, 0x61, 0x8b, 0x14, 0xa8, 0xb7); + +#undef INTERFACE +#define INTERFACE ID3D12ShaderReflectionConstantBuffer + +DECLARE_INTERFACE(ID3D12ShaderReflectionConstantBuffer) +{ + STDMETHOD(GetDesc)(THIS_ D3D12_SHADER_BUFFER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D12ShaderReflectionVariable*, GetVariableByIndex)(THIS_ _In_ UINT Index) PURE; + STDMETHOD_(ID3D12ShaderReflectionVariable*, GetVariableByName)(THIS_ _In_ LPCSTR Name) PURE; +}; + +// The ID3D12ShaderReflection IID may change from SDK version to SDK version +// if the reflection API changes. This prevents new code with the new API +// from working with an old binary. Recompiling with the new header +// will pick up the new IID. + +// {5A58797D-A72C-478D-8BA2-EFC6B0EFE88E} +interface DECLSPEC_UUID("5A58797D-A72C-478D-8BA2-EFC6B0EFE88E") ID3D12ShaderReflection; +DEFINE_GUID(IID_ID3D12ShaderReflection, +0x5a58797d, 0xa72c, 0x478d, 0x8b, 0xa2, 0xef, 0xc6, 0xb0, 0xef, 0xe8, 0x8e); + +#undef INTERFACE +#define INTERFACE ID3D12ShaderReflection + +DECLARE_INTERFACE_(ID3D12ShaderReflection, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ _In_ REFIID iid, + _Out_ LPVOID *ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + STDMETHOD(GetDesc)(THIS_ _Out_ D3D12_SHADER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D12ShaderReflectionConstantBuffer*, GetConstantBufferByIndex)(THIS_ _In_ UINT Index) PURE; + STDMETHOD_(ID3D12ShaderReflectionConstantBuffer*, GetConstantBufferByName)(THIS_ _In_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDesc)(THIS_ _In_ UINT ResourceIndex, + _Out_ D3D12_SHADER_INPUT_BIND_DESC *pDesc) PURE; + + STDMETHOD(GetInputParameterDesc)(THIS_ _In_ UINT ParameterIndex, + _Out_ D3D12_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + STDMETHOD(GetOutputParameterDesc)(THIS_ _In_ UINT ParameterIndex, + _Out_ D3D12_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + STDMETHOD(GetPatchConstantParameterDesc)(THIS_ _In_ UINT ParameterIndex, + _Out_ D3D12_SIGNATURE_PARAMETER_DESC *pDesc) PURE; + + STDMETHOD_(ID3D12ShaderReflectionVariable*, GetVariableByName)(THIS_ _In_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDescByName)(THIS_ _In_ LPCSTR Name, + _Out_ D3D12_SHADER_INPUT_BIND_DESC *pDesc) PURE; + + STDMETHOD_(UINT, GetMovInstructionCount)(THIS) PURE; + STDMETHOD_(UINT, GetMovcInstructionCount)(THIS) PURE; + STDMETHOD_(UINT, GetConversionInstructionCount)(THIS) PURE; + STDMETHOD_(UINT, GetBitwiseInstructionCount)(THIS) PURE; + + STDMETHOD_(D3D_PRIMITIVE, GetGSInputPrimitive)(THIS) PURE; + STDMETHOD_(BOOL, IsSampleFrequencyShader)(THIS) PURE; + + STDMETHOD_(UINT, GetNumInterfaceSlots)(THIS) PURE; + STDMETHOD(GetMinFeatureLevel)(THIS_ _Out_ enum D3D_FEATURE_LEVEL* pLevel) PURE; + + STDMETHOD_(UINT, GetThreadGroupSize)(THIS_ + _Out_opt_ UINT* pSizeX, + _Out_opt_ UINT* pSizeY, + _Out_opt_ UINT* pSizeZ) PURE; + + STDMETHOD_(UINT64, GetRequiresFlags)(THIS) PURE; +}; + +// {8E349D19-54DB-4A56-9DC9-119D87BDB804} +interface DECLSPEC_UUID("8E349D19-54DB-4A56-9DC9-119D87BDB804") ID3D12LibraryReflection; +DEFINE_GUID(IID_ID3D12LibraryReflection, +0x8e349d19, 0x54db, 0x4a56, 0x9d, 0xc9, 0x11, 0x9d, 0x87, 0xbd, 0xb8, 0x4); + +#undef INTERFACE +#define INTERFACE ID3D12LibraryReflection + +DECLARE_INTERFACE_(ID3D12LibraryReflection, IUnknown) +{ + STDMETHOD(QueryInterface)(THIS_ _In_ REFIID iid, _Out_ LPVOID * ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + STDMETHOD(GetDesc)(THIS_ _Out_ D3D12_LIBRARY_DESC * pDesc) PURE; + + STDMETHOD_(ID3D12FunctionReflection *, GetFunctionByIndex)(THIS_ _In_ INT FunctionIndex) PURE; +}; + +// {1108795C-2772-4BA9-B2A8-D464DC7E2799} +interface DECLSPEC_UUID("1108795C-2772-4BA9-B2A8-D464DC7E2799") ID3D12FunctionReflection; +DEFINE_GUID(IID_ID3D12FunctionReflection, +0x1108795c, 0x2772, 0x4ba9, 0xb2, 0xa8, 0xd4, 0x64, 0xdc, 0x7e, 0x27, 0x99); + +#undef INTERFACE +#define INTERFACE ID3D12FunctionReflection + +DECLARE_INTERFACE(ID3D12FunctionReflection) +{ + STDMETHOD(GetDesc)(THIS_ _Out_ D3D12_FUNCTION_DESC * pDesc) PURE; + + STDMETHOD_(ID3D12ShaderReflectionConstantBuffer *, GetConstantBufferByIndex)(THIS_ _In_ UINT BufferIndex) PURE; + STDMETHOD_(ID3D12ShaderReflectionConstantBuffer *, GetConstantBufferByName)(THIS_ _In_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDesc)(THIS_ _In_ UINT ResourceIndex, + _Out_ D3D12_SHADER_INPUT_BIND_DESC * pDesc) PURE; + + STDMETHOD_(ID3D12ShaderReflectionVariable *, GetVariableByName)(THIS_ _In_ LPCSTR Name) PURE; + + STDMETHOD(GetResourceBindingDescByName)(THIS_ _In_ LPCSTR Name, + _Out_ D3D12_SHADER_INPUT_BIND_DESC * pDesc) PURE; + + // Use D3D_RETURN_PARAMETER_INDEX to get description of the return value. + STDMETHOD_(ID3D12FunctionParameterReflection *, GetFunctionParameter)(THIS_ _In_ INT ParameterIndex) PURE; +}; + +// {EC25F42D-7006-4F2B-B33E-02CC3375733F} +interface DECLSPEC_UUID("EC25F42D-7006-4F2B-B33E-02CC3375733F") ID3D12FunctionParameterReflection; +DEFINE_GUID(IID_ID3D12FunctionParameterReflection, +0xec25f42d, 0x7006, 0x4f2b, 0xb3, 0x3e, 0x2, 0xcc, 0x33, 0x75, 0x73, 0x3f); + +#undef INTERFACE +#define INTERFACE ID3D12FunctionParameterReflection + +DECLARE_INTERFACE(ID3D12FunctionParameterReflection) +{ + STDMETHOD(GetDesc)(THIS_ _Out_ D3D12_PARAMETER_DESC * pDesc) PURE; +}; + + +////////////////////////////////////////////////////////////////////////////// +// APIs ////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif //__D3D12SHADER_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12video.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12video.h new file mode 100644 index 0000000000000000000000000000000000000000..8bb3a22160e698a1a40af41ff9825d8c2061e157 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12video.h @@ -0,0 +1,9316 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3d12video_h__ +#define __d3d12video_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D12VideoDecoderHeap_FWD_DEFINED__ +#define __ID3D12VideoDecoderHeap_FWD_DEFINED__ +typedef interface ID3D12VideoDecoderHeap ID3D12VideoDecoderHeap; + +#endif /* __ID3D12VideoDecoderHeap_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDevice_FWD_DEFINED__ +#define __ID3D12VideoDevice_FWD_DEFINED__ +typedef interface ID3D12VideoDevice ID3D12VideoDevice; + +#endif /* __ID3D12VideoDevice_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDecoder_FWD_DEFINED__ +#define __ID3D12VideoDecoder_FWD_DEFINED__ +typedef interface ID3D12VideoDecoder ID3D12VideoDecoder; + +#endif /* __ID3D12VideoDecoder_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoProcessor_FWD_DEFINED__ +#define __ID3D12VideoProcessor_FWD_DEFINED__ +typedef interface ID3D12VideoProcessor ID3D12VideoProcessor; + +#endif /* __ID3D12VideoProcessor_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDecodeCommandList_FWD_DEFINED__ +#define __ID3D12VideoDecodeCommandList_FWD_DEFINED__ +typedef interface ID3D12VideoDecodeCommandList ID3D12VideoDecodeCommandList; + +#endif /* __ID3D12VideoDecodeCommandList_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoProcessCommandList_FWD_DEFINED__ +#define __ID3D12VideoProcessCommandList_FWD_DEFINED__ +typedef interface ID3D12VideoProcessCommandList ID3D12VideoProcessCommandList; + +#endif /* __ID3D12VideoProcessCommandList_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDecodeCommandList1_FWD_DEFINED__ +#define __ID3D12VideoDecodeCommandList1_FWD_DEFINED__ +typedef interface ID3D12VideoDecodeCommandList1 ID3D12VideoDecodeCommandList1; + +#endif /* __ID3D12VideoDecodeCommandList1_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoProcessCommandList1_FWD_DEFINED__ +#define __ID3D12VideoProcessCommandList1_FWD_DEFINED__ +typedef interface ID3D12VideoProcessCommandList1 ID3D12VideoProcessCommandList1; + +#endif /* __ID3D12VideoProcessCommandList1_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoMotionEstimator_FWD_DEFINED__ +#define __ID3D12VideoMotionEstimator_FWD_DEFINED__ +typedef interface ID3D12VideoMotionEstimator ID3D12VideoMotionEstimator; + +#endif /* __ID3D12VideoMotionEstimator_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoMotionVectorHeap_FWD_DEFINED__ +#define __ID3D12VideoMotionVectorHeap_FWD_DEFINED__ +typedef interface ID3D12VideoMotionVectorHeap ID3D12VideoMotionVectorHeap; + +#endif /* __ID3D12VideoMotionVectorHeap_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDevice1_FWD_DEFINED__ +#define __ID3D12VideoDevice1_FWD_DEFINED__ +typedef interface ID3D12VideoDevice1 ID3D12VideoDevice1; + +#endif /* __ID3D12VideoDevice1_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoEncodeCommandList_FWD_DEFINED__ +#define __ID3D12VideoEncodeCommandList_FWD_DEFINED__ +typedef interface ID3D12VideoEncodeCommandList ID3D12VideoEncodeCommandList; + +#endif /* __ID3D12VideoEncodeCommandList_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDecoder1_FWD_DEFINED__ +#define __ID3D12VideoDecoder1_FWD_DEFINED__ +typedef interface ID3D12VideoDecoder1 ID3D12VideoDecoder1; + +#endif /* __ID3D12VideoDecoder1_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDecoderHeap1_FWD_DEFINED__ +#define __ID3D12VideoDecoderHeap1_FWD_DEFINED__ +typedef interface ID3D12VideoDecoderHeap1 ID3D12VideoDecoderHeap1; + +#endif /* __ID3D12VideoDecoderHeap1_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoProcessor1_FWD_DEFINED__ +#define __ID3D12VideoProcessor1_FWD_DEFINED__ +typedef interface ID3D12VideoProcessor1 ID3D12VideoProcessor1; + +#endif /* __ID3D12VideoProcessor1_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoExtensionCommand_FWD_DEFINED__ +#define __ID3D12VideoExtensionCommand_FWD_DEFINED__ +typedef interface ID3D12VideoExtensionCommand ID3D12VideoExtensionCommand; + +#endif /* __ID3D12VideoExtensionCommand_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDevice2_FWD_DEFINED__ +#define __ID3D12VideoDevice2_FWD_DEFINED__ +typedef interface ID3D12VideoDevice2 ID3D12VideoDevice2; + +#endif /* __ID3D12VideoDevice2_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDecodeCommandList2_FWD_DEFINED__ +#define __ID3D12VideoDecodeCommandList2_FWD_DEFINED__ +typedef interface ID3D12VideoDecodeCommandList2 ID3D12VideoDecodeCommandList2; + +#endif /* __ID3D12VideoDecodeCommandList2_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDecodeCommandList3_FWD_DEFINED__ +#define __ID3D12VideoDecodeCommandList3_FWD_DEFINED__ +typedef interface ID3D12VideoDecodeCommandList3 ID3D12VideoDecodeCommandList3; + +#endif /* __ID3D12VideoDecodeCommandList3_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoProcessCommandList2_FWD_DEFINED__ +#define __ID3D12VideoProcessCommandList2_FWD_DEFINED__ +typedef interface ID3D12VideoProcessCommandList2 ID3D12VideoProcessCommandList2; + +#endif /* __ID3D12VideoProcessCommandList2_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoProcessCommandList3_FWD_DEFINED__ +#define __ID3D12VideoProcessCommandList3_FWD_DEFINED__ +typedef interface ID3D12VideoProcessCommandList3 ID3D12VideoProcessCommandList3; + +#endif /* __ID3D12VideoProcessCommandList3_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoEncodeCommandList1_FWD_DEFINED__ +#define __ID3D12VideoEncodeCommandList1_FWD_DEFINED__ +typedef interface ID3D12VideoEncodeCommandList1 ID3D12VideoEncodeCommandList1; + +#endif /* __ID3D12VideoEncodeCommandList1_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoEncoder_FWD_DEFINED__ +#define __ID3D12VideoEncoder_FWD_DEFINED__ +typedef interface ID3D12VideoEncoder ID3D12VideoEncoder; + +#endif /* __ID3D12VideoEncoder_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoEncoderHeap_FWD_DEFINED__ +#define __ID3D12VideoEncoderHeap_FWD_DEFINED__ +typedef interface ID3D12VideoEncoderHeap ID3D12VideoEncoderHeap; + +#endif /* __ID3D12VideoEncoderHeap_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoDevice3_FWD_DEFINED__ +#define __ID3D12VideoDevice3_FWD_DEFINED__ +typedef interface ID3D12VideoDevice3 ID3D12VideoDevice3; + +#endif /* __ID3D12VideoDevice3_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoEncodeCommandList2_FWD_DEFINED__ +#define __ID3D12VideoEncodeCommandList2_FWD_DEFINED__ +typedef interface ID3D12VideoEncodeCommandList2 ID3D12VideoEncodeCommandList2; + +#endif /* __ID3D12VideoEncodeCommandList2_FWD_DEFINED__ */ + + +#ifndef __ID3D12VideoEncodeCommandList3_FWD_DEFINED__ +#define __ID3D12VideoEncodeCommandList3_FWD_DEFINED__ +typedef interface ID3D12VideoEncodeCommandList3 ID3D12VideoEncodeCommandList3; + +#endif /* __ID3D12VideoEncodeCommandList3_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "dxgicommon.h" +#include "d3d12.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3d12video_0000_0000 */ +/* [local] */ + +#include +#pragma region App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) +typedef +enum D3D12_VIDEO_FIELD_TYPE + { + D3D12_VIDEO_FIELD_TYPE_NONE = 0, + D3D12_VIDEO_FIELD_TYPE_INTERLACED_TOP_FIELD_FIRST = 1, + D3D12_VIDEO_FIELD_TYPE_INTERLACED_BOTTOM_FIELD_FIRST = 2 + } D3D12_VIDEO_FIELD_TYPE; + +typedef +enum D3D12_VIDEO_FRAME_STEREO_FORMAT + { + D3D12_VIDEO_FRAME_STEREO_FORMAT_NONE = 0, + D3D12_VIDEO_FRAME_STEREO_FORMAT_MONO = 1, + D3D12_VIDEO_FRAME_STEREO_FORMAT_HORIZONTAL = 2, + D3D12_VIDEO_FRAME_STEREO_FORMAT_VERTICAL = 3, + D3D12_VIDEO_FRAME_STEREO_FORMAT_SEPARATE = 4 + } D3D12_VIDEO_FRAME_STEREO_FORMAT; + +typedef struct D3D12_VIDEO_FORMAT + { + DXGI_FORMAT Format; + DXGI_COLOR_SPACE_TYPE ColorSpace; + } D3D12_VIDEO_FORMAT; + +typedef struct D3D12_VIDEO_SAMPLE + { + UINT Width; + UINT Height; + D3D12_VIDEO_FORMAT Format; + } D3D12_VIDEO_SAMPLE; + +typedef +enum D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE + { + D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_NONE = 0, + D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_FIELD_BASED = 1 + } D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE; + +typedef +enum D3D12_FEATURE_VIDEO + { + D3D12_FEATURE_VIDEO_DECODE_SUPPORT = 0, + D3D12_FEATURE_VIDEO_DECODE_PROFILES = 1, + D3D12_FEATURE_VIDEO_DECODE_FORMATS = 2, + D3D12_FEATURE_VIDEO_DECODE_CONVERSION_SUPPORT = 3, + D3D12_FEATURE_VIDEO_PROCESS_SUPPORT = 5, + D3D12_FEATURE_VIDEO_PROCESS_MAX_INPUT_STREAMS = 6, + D3D12_FEATURE_VIDEO_PROCESS_REFERENCE_INFO = 7, + D3D12_FEATURE_VIDEO_DECODER_HEAP_SIZE = 8, + D3D12_FEATURE_VIDEO_PROCESSOR_SIZE = 9, + D3D12_FEATURE_VIDEO_DECODE_PROFILE_COUNT = 10, + D3D12_FEATURE_VIDEO_DECODE_FORMAT_COUNT = 11, + D3D12_FEATURE_VIDEO_ARCHITECTURE = 17, + D3D12_FEATURE_VIDEO_DECODE_HISTOGRAM = 18, + D3D12_FEATURE_VIDEO_FEATURE_AREA_SUPPORT = 19, + D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR = 20, + D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR_SIZE = 21, + D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_COUNT = 22, + D3D12_FEATURE_VIDEO_EXTENSION_COMMANDS = 23, + D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT = 24, + D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_PARAMETERS = 25, + D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_SUPPORT = 26, + D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_SIZE = 27, + D3D12_FEATURE_VIDEO_DECODE_PROTECTED_RESOURCES = 28, + D3D12_FEATURE_VIDEO_PROCESS_PROTECTED_RESOURCES = 29, + D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES = 30, + D3D12_FEATURE_VIDEO_DECODER_HEAP_SIZE1 = 31, + D3D12_FEATURE_VIDEO_PROCESSOR_SIZE1 = 32, + D3D12_FEATURE_VIDEO_ENCODER_CODEC = 33, + D3D12_FEATURE_VIDEO_ENCODER_PROFILE_LEVEL = 34, + D3D12_FEATURE_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT = 35, + D3D12_FEATURE_VIDEO_ENCODER_OUTPUT_RESOLUTION = 36, + D3D12_FEATURE_VIDEO_ENCODER_INPUT_FORMAT = 37, + D3D12_FEATURE_VIDEO_ENCODER_RATE_CONTROL_MODE = 38, + D3D12_FEATURE_VIDEO_ENCODER_INTRA_REFRESH_MODE = 39, + D3D12_FEATURE_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE = 40, + D3D12_FEATURE_VIDEO_ENCODER_HEAP_SIZE = 41, + D3D12_FEATURE_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT = 42, + D3D12_FEATURE_VIDEO_ENCODER_SUPPORT = 43, + D3D12_FEATURE_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT = 44, + D3D12_FEATURE_VIDEO_ENCODER_RESOURCE_REQUIREMENTS = 45, + D3D12_FEATURE_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG = 46, + D3D12_FEATURE_VIDEO_ENCODER_SUPPORT1 = 47 + } D3D12_FEATURE_VIDEO; + +typedef +enum D3D12_BITSTREAM_ENCRYPTION_TYPE + { + D3D12_BITSTREAM_ENCRYPTION_TYPE_NONE = 0 + } D3D12_BITSTREAM_ENCRYPTION_TYPE; + +typedef struct D3D12_VIDEO_DECODE_CONFIGURATION + { + GUID DecodeProfile; + D3D12_BITSTREAM_ENCRYPTION_TYPE BitstreamEncryption; + D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE InterlaceType; + } D3D12_VIDEO_DECODE_CONFIGURATION; + +typedef struct D3D12_VIDEO_DECODER_DESC + { + UINT NodeMask; + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; + } D3D12_VIDEO_DECODER_DESC; + +typedef struct D3D12_VIDEO_DECODER_HEAP_DESC + { + UINT NodeMask; + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; + UINT DecodeWidth; + UINT DecodeHeight; + DXGI_FORMAT Format; + DXGI_RATIONAL FrameRate; + UINT BitRate; + UINT MaxDecodePictureBufferCount; + } D3D12_VIDEO_DECODER_HEAP_DESC; + +typedef struct D3D12_VIDEO_SIZE_RANGE + { + UINT MaxWidth; + UINT MaxHeight; + UINT MinWidth; + UINT MinHeight; + } D3D12_VIDEO_SIZE_RANGE; + +typedef +enum D3D12_VIDEO_PROCESS_FILTER + { + D3D12_VIDEO_PROCESS_FILTER_BRIGHTNESS = 0, + D3D12_VIDEO_PROCESS_FILTER_CONTRAST = 1, + D3D12_VIDEO_PROCESS_FILTER_HUE = 2, + D3D12_VIDEO_PROCESS_FILTER_SATURATION = 3, + D3D12_VIDEO_PROCESS_FILTER_NOISE_REDUCTION = 4, + D3D12_VIDEO_PROCESS_FILTER_EDGE_ENHANCEMENT = 5, + D3D12_VIDEO_PROCESS_FILTER_ANAMORPHIC_SCALING = 6, + D3D12_VIDEO_PROCESS_FILTER_STEREO_ADJUSTMENT = 7 + } D3D12_VIDEO_PROCESS_FILTER; + +typedef +enum D3D12_VIDEO_PROCESS_FILTER_FLAGS + { + D3D12_VIDEO_PROCESS_FILTER_FLAG_NONE = 0, + D3D12_VIDEO_PROCESS_FILTER_FLAG_BRIGHTNESS = ( 1 << D3D12_VIDEO_PROCESS_FILTER_BRIGHTNESS ) , + D3D12_VIDEO_PROCESS_FILTER_FLAG_CONTRAST = ( 1 << D3D12_VIDEO_PROCESS_FILTER_CONTRAST ) , + D3D12_VIDEO_PROCESS_FILTER_FLAG_HUE = ( 1 << D3D12_VIDEO_PROCESS_FILTER_HUE ) , + D3D12_VIDEO_PROCESS_FILTER_FLAG_SATURATION = ( 1 << D3D12_VIDEO_PROCESS_FILTER_SATURATION ) , + D3D12_VIDEO_PROCESS_FILTER_FLAG_NOISE_REDUCTION = ( 1 << D3D12_VIDEO_PROCESS_FILTER_NOISE_REDUCTION ) , + D3D12_VIDEO_PROCESS_FILTER_FLAG_EDGE_ENHANCEMENT = ( 1 << D3D12_VIDEO_PROCESS_FILTER_EDGE_ENHANCEMENT ) , + D3D12_VIDEO_PROCESS_FILTER_FLAG_ANAMORPHIC_SCALING = ( 1 << D3D12_VIDEO_PROCESS_FILTER_ANAMORPHIC_SCALING ) , + D3D12_VIDEO_PROCESS_FILTER_FLAG_STEREO_ADJUSTMENT = ( 1 << D3D12_VIDEO_PROCESS_FILTER_STEREO_ADJUSTMENT ) + } D3D12_VIDEO_PROCESS_FILTER_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_FILTER_FLAGS ) +typedef +enum D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS + { + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_NONE = 0, + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_BOB = 0x1, + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_CUSTOM = 0x80000000 + } D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS ) +typedef struct D3D12_VIDEO_PROCESS_ALPHA_BLENDING + { + BOOL Enable; + FLOAT Alpha; + } D3D12_VIDEO_PROCESS_ALPHA_BLENDING; + +typedef struct D3D12_VIDEO_PROCESS_LUMA_KEY + { + BOOL Enable; + FLOAT Lower; + FLOAT Upper; + } D3D12_VIDEO_PROCESS_LUMA_KEY; + +typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC + { + DXGI_FORMAT Format; + DXGI_COLOR_SPACE_TYPE ColorSpace; + DXGI_RATIONAL SourceAspectRatio; + DXGI_RATIONAL DestinationAspectRatio; + DXGI_RATIONAL FrameRate; + D3D12_VIDEO_SIZE_RANGE SourceSizeRange; + D3D12_VIDEO_SIZE_RANGE DestinationSizeRange; + BOOL EnableOrientation; + D3D12_VIDEO_PROCESS_FILTER_FLAGS FilterFlags; + D3D12_VIDEO_FRAME_STEREO_FORMAT StereoFormat; + D3D12_VIDEO_FIELD_TYPE FieldType; + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceMode; + BOOL EnableAlphaBlending; + D3D12_VIDEO_PROCESS_LUMA_KEY LumaKey; + UINT NumPastFrames; + UINT NumFutureFrames; + BOOL EnableAutoProcessing; + } D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC; + +typedef +enum D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE + { + D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_OPAQUE = 0, + D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_BACKGROUND = 1, + D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_DESTINATION = 2, + D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_SOURCE_STREAM = 3 + } D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE; + +typedef struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC + { + DXGI_FORMAT Format; + DXGI_COLOR_SPACE_TYPE ColorSpace; + D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE AlphaFillMode; + UINT AlphaFillModeSourceStreamIndex; + FLOAT BackgroundColor[ 4 ]; + DXGI_RATIONAL FrameRate; + BOOL EnableStereo; + } D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D12VideoDecoderHeap_INTERFACE_DEFINED__ +#define __ID3D12VideoDecoderHeap_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDecoderHeap */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDecoderHeap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0946B7C9-EBF6-4047-BB73-8683E27DBB1F") + ID3D12VideoDecoderHeap : public ID3D12Pageable + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_VIDEO_DECODER_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_VIDEO_DECODER_HEAP_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_VIDEO_DECODER_HEAP_DESC * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDecoderHeapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDecoderHeap * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDecoderHeap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDecoderHeap * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoDecoderHeap * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoDecoderHeap * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoDecoderHeap * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoDecoderHeap * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoDecoderHeap * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoDecoderHeap, GetDesc) +#if !defined(_WIN32) + D3D12_VIDEO_DECODER_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoDecoderHeap * This); + +#else + D3D12_VIDEO_DECODER_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoDecoderHeap * This, + D3D12_VIDEO_DECODER_HEAP_DESC * RetVal); + +#endif + + END_INTERFACE + } ID3D12VideoDecoderHeapVtbl; + + interface ID3D12VideoDecoderHeap + { + CONST_VTBL struct ID3D12VideoDecoderHeapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDecoderHeap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDecoderHeap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDecoderHeap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDecoderHeap_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoDecoderHeap_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoDecoderHeap_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoDecoderHeap_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoDecoderHeap_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#if !defined(_WIN32) + +#define ID3D12VideoDecoderHeap_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12VideoDecoderHeap_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDecoderHeap_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoDevice_INTERFACE_DEFINED__ +#define __ID3D12VideoDevice_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDevice */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDevice; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1F052807-0B46-4ACC-8A89-364F793718A4") + ID3D12VideoDevice : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CheckFeatureSupport( + D3D12_FEATURE_VIDEO FeatureVideo, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoder( + _In_ const D3D12_VIDEO_DECODER_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoder) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoderHeap( + _In_ const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoderHeap) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessor( + UINT NodeMask, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc, + UINT NumInputStreamDescs, + _In_reads_(NumInputStreamDescs) const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoProcessor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDevice * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDevice * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDevice * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12VideoDevice * This, + D3D12_FEATURE_VIDEO FeatureVideo, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoDecoder) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )( + ID3D12VideoDevice * This, + _In_ const D3D12_VIDEO_DECODER_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoder); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoDecoderHeap) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderHeap )( + ID3D12VideoDevice * This, + _In_ const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoderHeap); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + ID3D12VideoDevice * This, + UINT NodeMask, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc, + UINT NumInputStreamDescs, + _In_reads_(NumInputStreamDescs) const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoProcessor); + + END_INTERFACE + } ID3D12VideoDeviceVtbl; + + interface ID3D12VideoDevice + { + CONST_VTBL struct ID3D12VideoDeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDevice_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDevice_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDevice_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDevice_CheckFeatureSupport(This,FeatureVideo,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,FeatureVideo,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12VideoDevice_CreateVideoDecoder(This,pDesc,riid,ppVideoDecoder) \ + ( (This)->lpVtbl -> CreateVideoDecoder(This,pDesc,riid,ppVideoDecoder) ) + +#define ID3D12VideoDevice_CreateVideoDecoderHeap(This,pVideoDecoderHeapDesc,riid,ppVideoDecoderHeap) \ + ( (This)->lpVtbl -> CreateVideoDecoderHeap(This,pVideoDecoderHeapDesc,riid,ppVideoDecoderHeap) ) + +#define ID3D12VideoDevice_CreateVideoProcessor(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,riid,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,riid,ppVideoProcessor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDevice_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoDecoder_INTERFACE_DEFINED__ +#define __ID3D12VideoDecoder_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDecoder */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDecoder; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C59B6BDC-7720-4074-A136-17A156037470") + ID3D12VideoDecoder : public ID3D12Pageable + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_VIDEO_DECODER_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_VIDEO_DECODER_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_VIDEO_DECODER_DESC * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDecoderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDecoder * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDecoder * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDecoder * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoDecoder * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoDecoder * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoDecoder * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoDecoder * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoDecoder * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoDecoder, GetDesc) +#if !defined(_WIN32) + D3D12_VIDEO_DECODER_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoDecoder * This); + +#else + D3D12_VIDEO_DECODER_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoDecoder * This, + D3D12_VIDEO_DECODER_DESC * RetVal); + +#endif + + END_INTERFACE + } ID3D12VideoDecoderVtbl; + + interface ID3D12VideoDecoder + { + CONST_VTBL struct ID3D12VideoDecoderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDecoder_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDecoder_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDecoder_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDecoder_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoDecoder_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoDecoder_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoDecoder_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoDecoder_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#if !defined(_WIN32) + +#define ID3D12VideoDecoder_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12VideoDecoder_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDecoder_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0003 */ +/* [local] */ + +typedef +enum D3D12_VIDEO_DECODE_TIER + { + D3D12_VIDEO_DECODE_TIER_NOT_SUPPORTED = 0, + D3D12_VIDEO_DECODE_TIER_1 = 1, + D3D12_VIDEO_DECODE_TIER_2 = 2, + D3D12_VIDEO_DECODE_TIER_3 = 3 + } D3D12_VIDEO_DECODE_TIER; + +typedef +enum D3D12_VIDEO_DECODE_SUPPORT_FLAGS + { + D3D12_VIDEO_DECODE_SUPPORT_FLAG_NONE = 0, + D3D12_VIDEO_DECODE_SUPPORT_FLAG_SUPPORTED = 0x1 + } D3D12_VIDEO_DECODE_SUPPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_SUPPORT_FLAGS ) +typedef +enum D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS + { + D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_NONE = 0, + D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_HEIGHT_ALIGNMENT_MULTIPLE_32_REQUIRED = 0x1, + D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_POST_PROCESSING_SUPPORTED = 0x2, + D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_REFERENCE_ONLY_ALLOCATIONS_REQUIRED = 0x4, + D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_ALLOW_RESOLUTION_CHANGE_ON_NON_KEY_FRAME = 0x8 + } D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS ) +typedef +enum D3D12_VIDEO_DECODE_STATUS + { + D3D12_VIDEO_DECODE_STATUS_OK = 0, + D3D12_VIDEO_DECODE_STATUS_CONTINUE = 1, + D3D12_VIDEO_DECODE_STATUS_CONTINUE_SKIP_DISPLAY = 2, + D3D12_VIDEO_DECODE_STATUS_RESTART = 3, + D3D12_VIDEO_DECODE_STATUS_RATE_EXCEEDED = 4 + } D3D12_VIDEO_DECODE_STATUS; + +typedef +enum D3D12_VIDEO_DECODE_ARGUMENT_TYPE + { + D3D12_VIDEO_DECODE_ARGUMENT_TYPE_PICTURE_PARAMETERS = 0, + D3D12_VIDEO_DECODE_ARGUMENT_TYPE_INVERSE_QUANTIZATION_MATRIX = 1, + D3D12_VIDEO_DECODE_ARGUMENT_TYPE_SLICE_CONTROL = 2, + D3D12_VIDEO_DECODE_ARGUMENT_TYPE_HUFFMAN_TABLE = 3 + } D3D12_VIDEO_DECODE_ARGUMENT_TYPE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT + { + UINT NodeIndex; + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; + UINT Width; + UINT Height; + DXGI_FORMAT DecodeFormat; + DXGI_RATIONAL FrameRate; + UINT BitRate; + D3D12_VIDEO_DECODE_SUPPORT_FLAGS SupportFlags; + D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS ConfigurationFlags; + D3D12_VIDEO_DECODE_TIER DecodeTier; + } D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT + { + UINT NodeIndex; + UINT ProfileCount; + } D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES + { + UINT NodeIndex; + UINT ProfileCount; + _Field_size_full_(ProfileCount) GUID *pProfiles; + } D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT + { + UINT NodeIndex; + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; + UINT FormatCount; + } D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS + { + UINT NodeIndex; + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; + UINT FormatCount; + _Field_size_full_(FormatCount) DXGI_FORMAT *pOutputFormats; + } D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE + { + BOOL IOCoherent; + } D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE; + +typedef +enum D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT + { + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_Y = 0, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_U = 1, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_V = 2, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_R = 0, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_G = 1, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_B = 2, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_A = 3 + } D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT; + +typedef +enum D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS + { + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_NONE = 0, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_Y = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_Y ) , + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_U = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_U ) , + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_V = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_V ) , + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_R = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_R ) , + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_G = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_G ) , + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_B = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_B ) , + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_A = ( 1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_A ) + } D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS ) +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM + { + UINT NodeIndex; + GUID DecodeProfile; + UINT Width; + UINT Height; + DXGI_FORMAT DecodeFormat; + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS Components; + UINT BinCount; + UINT CounterBitDepth; + } D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM; + +typedef +enum D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS + { + D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAG_NONE = 0, + D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAG_SUPPORTED = 0x1 + } D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS ) +typedef +enum D3D12_VIDEO_SCALE_SUPPORT_FLAGS + { + D3D12_VIDEO_SCALE_SUPPORT_FLAG_NONE = 0, + D3D12_VIDEO_SCALE_SUPPORT_FLAG_POW2_ONLY = 0x1, + D3D12_VIDEO_SCALE_SUPPORT_FLAG_EVEN_DIMENSIONS_ONLY = 0x2 + } D3D12_VIDEO_SCALE_SUPPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_SCALE_SUPPORT_FLAGS ) +typedef struct D3D12_VIDEO_SCALE_SUPPORT + { + D3D12_VIDEO_SIZE_RANGE OutputSizeRange; + D3D12_VIDEO_SCALE_SUPPORT_FLAGS Flags; + } D3D12_VIDEO_SCALE_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT + { + UINT NodeIndex; + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; + D3D12_VIDEO_SAMPLE DecodeSample; + D3D12_VIDEO_FORMAT OutputFormat; + DXGI_RATIONAL FrameRate; + UINT BitRate; + D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS SupportFlags; + D3D12_VIDEO_SCALE_SUPPORT ScaleSupport; + } D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE + { + D3D12_VIDEO_DECODER_HEAP_DESC VideoDecoderHeapDesc; + UINT64 MemoryPoolL0Size; + UINT64 MemoryPoolL1Size; + } D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE + { + UINT NodeMask; + const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc; + UINT NumInputStreamDescs; + const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs; + UINT64 MemoryPoolL0Size; + UINT64 MemoryPoolL1Size; + } D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE; + +typedef struct D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS + { + UINT64 Status; + UINT64 NumMacroblocksAffected; + DXGI_RATIONAL FrameRate; + UINT BitRate; + } D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS; + +typedef struct D3D12_VIDEO_DECODE_FRAME_ARGUMENT + { + D3D12_VIDEO_DECODE_ARGUMENT_TYPE Type; + UINT Size; + _Field_size_bytes_full_(Size) void *pData; + } D3D12_VIDEO_DECODE_FRAME_ARGUMENT; + +typedef struct D3D12_VIDEO_DECODE_REFERENCE_FRAMES + { + UINT NumTexture2Ds; + _Field_size_full_(NumTexture2Ds) ID3D12Resource **ppTexture2Ds; + _Field_size_full_(NumTexture2Ds) UINT *pSubresources; + _Field_size_full_opt_(NumTexture2Ds) ID3D12VideoDecoderHeap **ppHeaps; + } D3D12_VIDEO_DECODE_REFERENCE_FRAMES; + +typedef struct D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM + { + ID3D12Resource *pBuffer; + UINT64 Offset; + UINT64 Size; + } D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM; + +typedef struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS + { + BOOL Enable; + ID3D12Resource *pReferenceTexture2D; + UINT ReferenceSubresource; + DXGI_COLOR_SPACE_TYPE OutputColorSpace; + DXGI_COLOR_SPACE_TYPE DecodeColorSpace; + } D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS; + +typedef struct D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS + { + UINT NumFrameArguments; + D3D12_VIDEO_DECODE_FRAME_ARGUMENT FrameArguments[ 10 ]; + D3D12_VIDEO_DECODE_REFERENCE_FRAMES ReferenceFrames; + D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM CompressedBitstream; + ID3D12VideoDecoderHeap *pHeap; + } D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS; + +typedef struct D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS + { + ID3D12Resource *pOutputTexture2D; + UINT OutputSubresource; + D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS ConversionArguments; + } D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0003_v0_0_s_ifspec; + +#ifndef __ID3D12VideoProcessor_INTERFACE_DEFINED__ +#define __ID3D12VideoProcessor_INTERFACE_DEFINED__ + +/* interface ID3D12VideoProcessor */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoProcessor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("304FDB32-BEDE-410A-8545-943AC6A46138") + ID3D12VideoProcessor : public ID3D12Pageable + { + public: + virtual UINT STDMETHODCALLTYPE GetNodeMask( void) = 0; + + virtual UINT STDMETHODCALLTYPE GetNumInputStreamDescs( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInputStreamDescs( + UINT NumInputStreamDescs, + _Out_writes_(NumInputStreamDescs) D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs) = 0; + +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC STDMETHODCALLTYPE GetOutputStreamDesc( void) = 0; +#else + virtual D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *STDMETHODCALLTYPE GetOutputStreamDesc( + D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC * RetVal) = 0; +#endif + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoProcessorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoProcessor * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoProcessor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoProcessor * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoProcessor * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoProcessor * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoProcessor * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoProcessor * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoProcessor * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessor, GetNodeMask) + UINT ( STDMETHODCALLTYPE *GetNodeMask )( + ID3D12VideoProcessor * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessor, GetNumInputStreamDescs) + UINT ( STDMETHODCALLTYPE *GetNumInputStreamDescs )( + ID3D12VideoProcessor * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessor, GetInputStreamDescs) + HRESULT ( STDMETHODCALLTYPE *GetInputStreamDescs )( + ID3D12VideoProcessor * This, + UINT NumInputStreamDescs, + _Out_writes_(NumInputStreamDescs) D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessor, GetOutputStreamDesc) +#if !defined(_WIN32) + D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC ( STDMETHODCALLTYPE *GetOutputStreamDesc )( + ID3D12VideoProcessor * This); + +#else + D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *( STDMETHODCALLTYPE *GetOutputStreamDesc )( + ID3D12VideoProcessor * This, + D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC * RetVal); + +#endif + + END_INTERFACE + } ID3D12VideoProcessorVtbl; + + interface ID3D12VideoProcessor + { + CONST_VTBL struct ID3D12VideoProcessorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoProcessor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoProcessor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoProcessor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoProcessor_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoProcessor_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoProcessor_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoProcessor_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoProcessor_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12VideoProcessor_GetNodeMask(This) \ + ( (This)->lpVtbl -> GetNodeMask(This) ) + +#define ID3D12VideoProcessor_GetNumInputStreamDescs(This) \ + ( (This)->lpVtbl -> GetNumInputStreamDescs(This) ) + +#define ID3D12VideoProcessor_GetInputStreamDescs(This,NumInputStreamDescs,pInputStreamDescs) \ + ( (This)->lpVtbl -> GetInputStreamDescs(This,NumInputStreamDescs,pInputStreamDescs) ) +#if !defined(_WIN32) + +#define ID3D12VideoProcessor_GetOutputStreamDesc(This) \ + ( (This)->lpVtbl -> GetOutputStreamDesc(This) ) +#else +#define ID3D12VideoProcessor_GetOutputStreamDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetOutputStreamDesc(This,RetVal) ) +#endif + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoProcessor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0004 */ +/* [local] */ + +typedef +enum D3D12_VIDEO_PROCESS_FEATURE_FLAGS + { + D3D12_VIDEO_PROCESS_FEATURE_FLAG_NONE = 0, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_ALPHA_FILL = 0x1, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_LUMA_KEY = 0x2, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_STEREO = 0x4, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_ROTATION = 0x8, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_FLIP = 0x10, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_ALPHA_BLENDING = 0x20, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_PIXEL_ASPECT_RATIO = 0x40 + } D3D12_VIDEO_PROCESS_FEATURE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_FEATURE_FLAGS ) +typedef +enum D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS + { + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_NONE = 0, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_DENOISE = 0x1, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_DERINGING = 0x2, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_EDGE_ENHANCEMENT = 0x4, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_COLOR_CORRECTION = 0x8, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_FLESH_TONE_MAPPING = 0x10, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_IMAGE_STABILIZATION = 0x20, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_SUPER_RESOLUTION = 0x40, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_ANAMORPHIC_SCALING = 0x80, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_CUSTOM = 0x80000000 + } D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS ) +typedef +enum D3D12_VIDEO_PROCESS_ORIENTATION + { + D3D12_VIDEO_PROCESS_ORIENTATION_DEFAULT = 0, + D3D12_VIDEO_PROCESS_ORIENTATION_FLIP_HORIZONTAL = 1, + D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_90 = 2, + D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_90_FLIP_HORIZONTAL = 3, + D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_180 = 4, + D3D12_VIDEO_PROCESS_ORIENTATION_FLIP_VERTICAL = 5, + D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_270 = 6, + D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_270_FLIP_HORIZONTAL = 7 + } D3D12_VIDEO_PROCESS_ORIENTATION; + +typedef +enum D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS + { + D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_NONE = 0, + D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_FRAME_DISCONTINUITY = 0x1, + D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_FRAME_REPEAT = 0x2 + } D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS ) +typedef struct D3D12_VIDEO_PROCESS_FILTER_RANGE + { + INT Minimum; + INT Maximum; + INT Default; + FLOAT Multiplier; + } D3D12_VIDEO_PROCESS_FILTER_RANGE; + +typedef +enum D3D12_VIDEO_PROCESS_SUPPORT_FLAGS + { + D3D12_VIDEO_PROCESS_SUPPORT_FLAG_NONE = 0, + D3D12_VIDEO_PROCESS_SUPPORT_FLAG_SUPPORTED = 0x1 + } D3D12_VIDEO_PROCESS_SUPPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_SUPPORT_FLAGS ) +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT + { + UINT NodeIndex; + D3D12_VIDEO_SAMPLE InputSample; + D3D12_VIDEO_FIELD_TYPE InputFieldType; + D3D12_VIDEO_FRAME_STEREO_FORMAT InputStereoFormat; + DXGI_RATIONAL InputFrameRate; + D3D12_VIDEO_FORMAT OutputFormat; + D3D12_VIDEO_FRAME_STEREO_FORMAT OutputStereoFormat; + DXGI_RATIONAL OutputFrameRate; + D3D12_VIDEO_PROCESS_SUPPORT_FLAGS SupportFlags; + D3D12_VIDEO_SCALE_SUPPORT ScaleSupport; + D3D12_VIDEO_PROCESS_FEATURE_FLAGS FeatureSupport; + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceSupport; + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS AutoProcessingSupport; + D3D12_VIDEO_PROCESS_FILTER_FLAGS FilterSupport; + D3D12_VIDEO_PROCESS_FILTER_RANGE FilterRangeSupport[ 32 ]; + } D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS + { + UINT NodeIndex; + UINT MaxInputStreams; + } D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS; + +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO + { + UINT NodeIndex; + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceMode; + D3D12_VIDEO_PROCESS_FILTER_FLAGS Filters; + D3D12_VIDEO_PROCESS_FEATURE_FLAGS FeatureSupport; + DXGI_RATIONAL InputFrameRate; + DXGI_RATIONAL OutputFrameRate; + BOOL EnableAutoProcessing; + UINT PastFrames; + UINT FutureFrames; + } D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO; + +typedef struct D3D12_VIDEO_PROCESS_REFERENCE_SET + { + UINT NumPastFrames; + ID3D12Resource **ppPastFrames; + UINT *pPastSubresources; + UINT NumFutureFrames; + ID3D12Resource **ppFutureFrames; + UINT *pFutureSubresources; + } D3D12_VIDEO_PROCESS_REFERENCE_SET; + +typedef struct D3D12_VIDEO_PROCESS_TRANSFORM + { + D3D12_RECT SourceRectangle; + D3D12_RECT DestinationRectangle; + D3D12_VIDEO_PROCESS_ORIENTATION Orientation; + } D3D12_VIDEO_PROCESS_TRANSFORM; + +typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE + { + UINT OutputIndex; + UINT InputFrameOrField; + } D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE; + +typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM + { + ID3D12Resource *pTexture2D; + UINT Subresource; + D3D12_VIDEO_PROCESS_REFERENCE_SET ReferenceSet; + } D3D12_VIDEO_PROCESS_INPUT_STREAM; + +typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS + { + D3D12_VIDEO_PROCESS_INPUT_STREAM InputStream[ 2 ]; + D3D12_VIDEO_PROCESS_TRANSFORM Transform; + D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS Flags; + D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE RateInfo; + INT FilterLevels[ 32 ]; + D3D12_VIDEO_PROCESS_ALPHA_BLENDING AlphaBlending; + } D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS; + +typedef struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM + { + ID3D12Resource *pTexture2D; + UINT Subresource; + } D3D12_VIDEO_PROCESS_OUTPUT_STREAM; + +typedef struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS + { + D3D12_VIDEO_PROCESS_OUTPUT_STREAM OutputStream[ 2 ]; + D3D12_RECT TargetRectangle; + } D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0004_v0_0_s_ifspec; + +#ifndef __ID3D12VideoDecodeCommandList_INTERFACE_DEFINED__ +#define __ID3D12VideoDecodeCommandList_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDecodeCommandList */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDecodeCommandList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3B60536E-AD29-4E64-A269-F853837E5E53") + ID3D12VideoDecodeCommandList : public ID3D12CommandList + { + public: + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( + _In_ ID3D12CommandAllocator *pAllocator) = 0; + + virtual void STDMETHODCALLTYPE ClearState( void) = 0; + + virtual void STDMETHODCALLTYPE ResourceBarrier( + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers) = 0; + + virtual void STDMETHODCALLTYPE DiscardResource( + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion) = 0; + + virtual void STDMETHODCALLTYPE BeginQuery( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index) = 0; + + virtual void STDMETHODCALLTYPE EndQuery( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index) = 0; + + virtual void STDMETHODCALLTYPE ResolveQueryData( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset) = 0; + + virtual void STDMETHODCALLTYPE SetPredication( + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation) = 0; + + virtual void STDMETHODCALLTYPE SetMarker( + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size) = 0; + + virtual void STDMETHODCALLTYPE BeginEvent( + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size) = 0; + + virtual void STDMETHODCALLTYPE EndEvent( void) = 0; + + virtual void STDMETHODCALLTYPE DecodeFrame( + _In_ ID3D12VideoDecoder *pDecoder, + _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments) = 0; + + virtual void STDMETHODCALLTYPE WriteBufferImmediate( + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDecodeCommandListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDecodeCommandList * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDecodeCommandList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDecodeCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoDecodeCommandList * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoDecodeCommandList * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoDecodeCommandList * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoDecodeCommandList * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoDecodeCommandList * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoDecodeCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoDecodeCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoDecodeCommandList * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoDecodeCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoDecodeCommandList * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoDecodeCommandList * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoDecodeCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoDecodeCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoDecodeCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoDecodeCommandList * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoDecodeCommandList * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoDecodeCommandList * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoDecodeCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, DecodeFrame) + void ( STDMETHODCALLTYPE *DecodeFrame )( + ID3D12VideoDecodeCommandList * This, + _In_ ID3D12VideoDecoder *pDecoder, + _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoDecodeCommandList * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + END_INTERFACE + } ID3D12VideoDecodeCommandListVtbl; + + interface ID3D12VideoDecodeCommandList + { + CONST_VTBL struct ID3D12VideoDecodeCommandListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDecodeCommandList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDecodeCommandList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDecodeCommandList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDecodeCommandList_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoDecodeCommandList_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoDecodeCommandList_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoDecodeCommandList_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoDecodeCommandList_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoDecodeCommandList_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoDecodeCommandList_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoDecodeCommandList_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoDecodeCommandList_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoDecodeCommandList_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoDecodeCommandList_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoDecodeCommandList_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoDecodeCommandList_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoDecodeCommandList_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoDecodeCommandList_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoDecodeCommandList_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoDecodeCommandList_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoDecodeCommandList_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoDecodeCommandList_DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoDecodeCommandList_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDecodeCommandList_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoProcessCommandList_INTERFACE_DEFINED__ +#define __ID3D12VideoProcessCommandList_INTERFACE_DEFINED__ + +/* interface ID3D12VideoProcessCommandList */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoProcessCommandList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AEB2543A-167F-4682-ACC8-D159ED4A6209") + ID3D12VideoProcessCommandList : public ID3D12CommandList + { + public: + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( + _In_ ID3D12CommandAllocator *pAllocator) = 0; + + virtual void STDMETHODCALLTYPE ClearState( void) = 0; + + virtual void STDMETHODCALLTYPE ResourceBarrier( + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers) = 0; + + virtual void STDMETHODCALLTYPE DiscardResource( + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion) = 0; + + virtual void STDMETHODCALLTYPE BeginQuery( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index) = 0; + + virtual void STDMETHODCALLTYPE EndQuery( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index) = 0; + + virtual void STDMETHODCALLTYPE ResolveQueryData( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset) = 0; + + virtual void STDMETHODCALLTYPE SetPredication( + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation) = 0; + + virtual void STDMETHODCALLTYPE SetMarker( + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size) = 0; + + virtual void STDMETHODCALLTYPE BeginEvent( + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size) = 0; + + virtual void STDMETHODCALLTYPE EndEvent( void) = 0; + + virtual void STDMETHODCALLTYPE ProcessFrames( + _In_ ID3D12VideoProcessor *pVideoProcessor, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *pInputArguments) = 0; + + virtual void STDMETHODCALLTYPE WriteBufferImmediate( + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoProcessCommandListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoProcessCommandList * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoProcessCommandList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoProcessCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoProcessCommandList * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoProcessCommandList * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoProcessCommandList * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoProcessCommandList * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoProcessCommandList * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoProcessCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoProcessCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoProcessCommandList * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoProcessCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoProcessCommandList * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoProcessCommandList * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoProcessCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoProcessCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoProcessCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoProcessCommandList * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoProcessCommandList * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoProcessCommandList * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoProcessCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ProcessFrames) + void ( STDMETHODCALLTYPE *ProcessFrames )( + ID3D12VideoProcessCommandList * This, + _In_ ID3D12VideoProcessor *pVideoProcessor, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoProcessCommandList * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + END_INTERFACE + } ID3D12VideoProcessCommandListVtbl; + + interface ID3D12VideoProcessCommandList + { + CONST_VTBL struct ID3D12VideoProcessCommandListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoProcessCommandList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoProcessCommandList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoProcessCommandList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoProcessCommandList_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoProcessCommandList_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoProcessCommandList_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoProcessCommandList_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoProcessCommandList_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoProcessCommandList_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoProcessCommandList_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoProcessCommandList_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoProcessCommandList_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoProcessCommandList_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoProcessCommandList_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoProcessCommandList_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoProcessCommandList_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoProcessCommandList_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoProcessCommandList_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoProcessCommandList_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoProcessCommandList_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoProcessCommandList_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoProcessCommandList_ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) \ + ( (This)->lpVtbl -> ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) ) + +#define ID3D12VideoProcessCommandList_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoProcessCommandList_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0006 */ +/* [local] */ + +typedef struct D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM + { + UINT64 Offset; + ID3D12Resource *pBuffer; + } D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM; + +typedef struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1 + { + BOOL Enable; + ID3D12Resource *pReferenceTexture2D; + UINT ReferenceSubresource; + DXGI_COLOR_SPACE_TYPE OutputColorSpace; + DXGI_COLOR_SPACE_TYPE DecodeColorSpace; + UINT OutputWidth; + UINT OutputHeight; + } D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1; + +typedef struct D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 + { + ID3D12Resource *pOutputTexture2D; + UINT OutputSubresource; + D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1 ConversionArguments; + D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM Histograms[ 4 ]; + } D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0006_v0_0_s_ifspec; + +#ifndef __ID3D12VideoDecodeCommandList1_INTERFACE_DEFINED__ +#define __ID3D12VideoDecodeCommandList1_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDecodeCommandList1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDecodeCommandList1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D52F011B-B56E-453C-A05A-A7F311C8F472") + ID3D12VideoDecodeCommandList1 : public ID3D12VideoDecodeCommandList + { + public: + virtual void STDMETHODCALLTYPE DecodeFrame1( + _In_ ID3D12VideoDecoder *pDecoder, + _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *pOutputArguments, + _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDecodeCommandList1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDecodeCommandList1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDecodeCommandList1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDecodeCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoDecodeCommandList1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoDecodeCommandList1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoDecodeCommandList1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoDecodeCommandList1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoDecodeCommandList1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoDecodeCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoDecodeCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoDecodeCommandList1 * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoDecodeCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoDecodeCommandList1 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoDecodeCommandList1 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoDecodeCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoDecodeCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoDecodeCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoDecodeCommandList1 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoDecodeCommandList1 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoDecodeCommandList1 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoDecodeCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, DecodeFrame) + void ( STDMETHODCALLTYPE *DecodeFrame )( + ID3D12VideoDecodeCommandList1 * This, + _In_ ID3D12VideoDecoder *pDecoder, + _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoDecodeCommandList1 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList1, DecodeFrame1) + void ( STDMETHODCALLTYPE *DecodeFrame1 )( + ID3D12VideoDecodeCommandList1 * This, + _In_ ID3D12VideoDecoder *pDecoder, + _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *pOutputArguments, + _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments); + + END_INTERFACE + } ID3D12VideoDecodeCommandList1Vtbl; + + interface ID3D12VideoDecodeCommandList1 + { + CONST_VTBL struct ID3D12VideoDecodeCommandList1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDecodeCommandList1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDecodeCommandList1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDecodeCommandList1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDecodeCommandList1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoDecodeCommandList1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoDecodeCommandList1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoDecodeCommandList1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoDecodeCommandList1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoDecodeCommandList1_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoDecodeCommandList1_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoDecodeCommandList1_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoDecodeCommandList1_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoDecodeCommandList1_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoDecodeCommandList1_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoDecodeCommandList1_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoDecodeCommandList1_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoDecodeCommandList1_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoDecodeCommandList1_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoDecodeCommandList1_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoDecodeCommandList1_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoDecodeCommandList1_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoDecodeCommandList1_DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoDecodeCommandList1_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12VideoDecodeCommandList1_DecodeFrame1(This,pDecoder,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> DecodeFrame1(This,pDecoder,pOutputArguments,pInputArguments) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDecodeCommandList1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0007 */ +/* [local] */ + +typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 + { + D3D12_VIDEO_PROCESS_INPUT_STREAM InputStream[ 2 ]; + D3D12_VIDEO_PROCESS_TRANSFORM Transform; + D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS Flags; + D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE RateInfo; + INT FilterLevels[ 32 ]; + D3D12_VIDEO_PROCESS_ALPHA_BLENDING AlphaBlending; + D3D12_VIDEO_FIELD_TYPE FieldType; + } D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0007_v0_0_s_ifspec; + +#ifndef __ID3D12VideoProcessCommandList1_INTERFACE_DEFINED__ +#define __ID3D12VideoProcessCommandList1_INTERFACE_DEFINED__ + +/* interface ID3D12VideoProcessCommandList1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoProcessCommandList1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("542C5C4D-7596-434F-8C93-4EFA6766F267") + ID3D12VideoProcessCommandList1 : public ID3D12VideoProcessCommandList + { + public: + virtual void STDMETHODCALLTYPE ProcessFrames1( + _In_ ID3D12VideoProcessor *pVideoProcessor, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *pInputArguments) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoProcessCommandList1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoProcessCommandList1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoProcessCommandList1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoProcessCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoProcessCommandList1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoProcessCommandList1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoProcessCommandList1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoProcessCommandList1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoProcessCommandList1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoProcessCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoProcessCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoProcessCommandList1 * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoProcessCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoProcessCommandList1 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoProcessCommandList1 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoProcessCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoProcessCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoProcessCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoProcessCommandList1 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoProcessCommandList1 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoProcessCommandList1 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoProcessCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ProcessFrames) + void ( STDMETHODCALLTYPE *ProcessFrames )( + ID3D12VideoProcessCommandList1 * This, + _In_ ID3D12VideoProcessor *pVideoProcessor, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoProcessCommandList1 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList1, ProcessFrames1) + void ( STDMETHODCALLTYPE *ProcessFrames1 )( + ID3D12VideoProcessCommandList1 * This, + _In_ ID3D12VideoProcessor *pVideoProcessor, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *pInputArguments); + + END_INTERFACE + } ID3D12VideoProcessCommandList1Vtbl; + + interface ID3D12VideoProcessCommandList1 + { + CONST_VTBL struct ID3D12VideoProcessCommandList1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoProcessCommandList1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoProcessCommandList1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoProcessCommandList1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoProcessCommandList1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoProcessCommandList1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoProcessCommandList1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoProcessCommandList1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoProcessCommandList1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoProcessCommandList1_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoProcessCommandList1_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoProcessCommandList1_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoProcessCommandList1_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoProcessCommandList1_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoProcessCommandList1_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoProcessCommandList1_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoProcessCommandList1_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoProcessCommandList1_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoProcessCommandList1_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoProcessCommandList1_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoProcessCommandList1_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoProcessCommandList1_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoProcessCommandList1_ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) \ + ( (This)->lpVtbl -> ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) ) + +#define ID3D12VideoProcessCommandList1_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12VideoProcessCommandList1_ProcessFrames1(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) \ + ( (This)->lpVtbl -> ProcessFrames1(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoProcessCommandList1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0008 */ +/* [local] */ + +typedef +enum D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE + { + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_8X8 = 0, + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_16X16 = 1 + } D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE; + +typedef +enum D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS + { + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAG_NONE = 0, + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAG_8X8 = ( 1 << D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_8X8 ) , + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAG_16X16 = ( 1 << D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_16X16 ) + } D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS ) +typedef +enum D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION + { + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_QUARTER_PEL = 0 + } D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION; + +typedef +enum D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS + { + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAG_NONE = 0, + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAG_QUARTER_PEL = ( 1 << D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_QUARTER_PEL ) + } D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS ) +typedef struct D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT + { + UINT NodeIndex; + BOOL VideoDecodeSupport; + BOOL VideoProcessSupport; + BOOL VideoEncodeSupport; + } D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR + { + UINT NodeIndex; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS BlockSizeFlags; + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS PrecisionFlags; + D3D12_VIDEO_SIZE_RANGE SizeRange; + } D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR; + +typedef struct D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE + { + UINT NodeIndex; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE BlockSize; + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION Precision; + D3D12_VIDEO_SIZE_RANGE SizeRange; + BOOL Protected; + UINT64 MotionVectorHeapMemoryPoolL0Size; + UINT64 MotionVectorHeapMemoryPoolL1Size; + UINT64 MotionEstimatorMemoryPoolL0Size; + UINT64 MotionEstimatorMemoryPoolL1Size; + } D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE; + +typedef struct D3D12_VIDEO_MOTION_ESTIMATOR_DESC + { + UINT NodeMask; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE BlockSize; + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION Precision; + D3D12_VIDEO_SIZE_RANGE SizeRange; + } D3D12_VIDEO_MOTION_ESTIMATOR_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0008_v0_0_s_ifspec; + +#ifndef __ID3D12VideoMotionEstimator_INTERFACE_DEFINED__ +#define __ID3D12VideoMotionEstimator_INTERFACE_DEFINED__ + +/* interface ID3D12VideoMotionEstimator */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoMotionEstimator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("33FDAE0E-098B-428F-87BB-34B695DE08F8") + ID3D12VideoMotionEstimator : public ID3D12Pageable + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_VIDEO_MOTION_ESTIMATOR_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_VIDEO_MOTION_ESTIMATOR_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_VIDEO_MOTION_ESTIMATOR_DESC * RetVal) = 0; +#endif + + virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession( + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoMotionEstimatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoMotionEstimator * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoMotionEstimator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoMotionEstimator * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoMotionEstimator * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoMotionEstimator * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoMotionEstimator * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoMotionEstimator * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoMotionEstimator * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoMotionEstimator, GetDesc) +#if !defined(_WIN32) + D3D12_VIDEO_MOTION_ESTIMATOR_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoMotionEstimator * This); + +#else + D3D12_VIDEO_MOTION_ESTIMATOR_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoMotionEstimator * This, + D3D12_VIDEO_MOTION_ESTIMATOR_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12VideoMotionEstimator, GetProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )( + ID3D12VideoMotionEstimator * This, + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession); + + END_INTERFACE + } ID3D12VideoMotionEstimatorVtbl; + + interface ID3D12VideoMotionEstimator + { + CONST_VTBL struct ID3D12VideoMotionEstimatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoMotionEstimator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoMotionEstimator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoMotionEstimator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoMotionEstimator_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoMotionEstimator_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoMotionEstimator_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoMotionEstimator_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoMotionEstimator_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#if !defined(_WIN32) + +#define ID3D12VideoMotionEstimator_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12VideoMotionEstimator_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#define ID3D12VideoMotionEstimator_GetProtectedResourceSession(This,riid,ppProtectedSession) \ + ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoMotionEstimator_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0009 */ +/* [local] */ + +typedef struct D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC + { + UINT NodeMask; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE BlockSize; + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION Precision; + D3D12_VIDEO_SIZE_RANGE SizeRange; + } D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0009_v0_0_s_ifspec; + +#ifndef __ID3D12VideoMotionVectorHeap_INTERFACE_DEFINED__ +#define __ID3D12VideoMotionVectorHeap_INTERFACE_DEFINED__ + +/* interface ID3D12VideoMotionVectorHeap */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoMotionVectorHeap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5BE17987-743A-4061-834B-23D22DAEA505") + ID3D12VideoMotionVectorHeap : public ID3D12Pageable + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC * RetVal) = 0; +#endif + + virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession( + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoMotionVectorHeapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoMotionVectorHeap * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoMotionVectorHeap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoMotionVectorHeap * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoMotionVectorHeap * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoMotionVectorHeap * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoMotionVectorHeap * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoMotionVectorHeap * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoMotionVectorHeap * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoMotionVectorHeap, GetDesc) +#if !defined(_WIN32) + D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoMotionVectorHeap * This); + +#else + D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoMotionVectorHeap * This, + D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12VideoMotionVectorHeap, GetProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )( + ID3D12VideoMotionVectorHeap * This, + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession); + + END_INTERFACE + } ID3D12VideoMotionVectorHeapVtbl; + + interface ID3D12VideoMotionVectorHeap + { + CONST_VTBL struct ID3D12VideoMotionVectorHeapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoMotionVectorHeap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoMotionVectorHeap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoMotionVectorHeap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoMotionVectorHeap_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoMotionVectorHeap_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoMotionVectorHeap_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoMotionVectorHeap_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoMotionVectorHeap_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#if !defined(_WIN32) + +#define ID3D12VideoMotionVectorHeap_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12VideoMotionVectorHeap_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#define ID3D12VideoMotionVectorHeap_GetProtectedResourceSession(This,riid,ppProtectedSession) \ + ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoMotionVectorHeap_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoDevice1_INTERFACE_DEFINED__ +#define __ID3D12VideoDevice1_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDevice1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDevice1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("981611AD-A144-4C83-9890-F30E26D658AB") + ID3D12VideoDevice1 : public ID3D12VideoDevice + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateVideoMotionEstimator( + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoMotionEstimator) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoMotionVectorHeap( + _In_ const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoMotionVectorHeap) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDevice1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDevice1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDevice1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDevice1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12VideoDevice1 * This, + D3D12_FEATURE_VIDEO FeatureVideo, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoDecoder) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )( + ID3D12VideoDevice1 * This, + _In_ const D3D12_VIDEO_DECODER_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoder); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoDecoderHeap) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderHeap )( + ID3D12VideoDevice1 * This, + _In_ const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoderHeap); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + ID3D12VideoDevice1 * This, + UINT NodeMask, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc, + UINT NumInputStreamDescs, + _In_reads_(NumInputStreamDescs) const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoProcessor); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice1, CreateVideoMotionEstimator) + HRESULT ( STDMETHODCALLTYPE *CreateVideoMotionEstimator )( + ID3D12VideoDevice1 * This, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoMotionEstimator); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice1, CreateVideoMotionVectorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateVideoMotionVectorHeap )( + ID3D12VideoDevice1 * This, + _In_ const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoMotionVectorHeap); + + END_INTERFACE + } ID3D12VideoDevice1Vtbl; + + interface ID3D12VideoDevice1 + { + CONST_VTBL struct ID3D12VideoDevice1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDevice1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDevice1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDevice1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDevice1_CheckFeatureSupport(This,FeatureVideo,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,FeatureVideo,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12VideoDevice1_CreateVideoDecoder(This,pDesc,riid,ppVideoDecoder) \ + ( (This)->lpVtbl -> CreateVideoDecoder(This,pDesc,riid,ppVideoDecoder) ) + +#define ID3D12VideoDevice1_CreateVideoDecoderHeap(This,pVideoDecoderHeapDesc,riid,ppVideoDecoderHeap) \ + ( (This)->lpVtbl -> CreateVideoDecoderHeap(This,pVideoDecoderHeapDesc,riid,ppVideoDecoderHeap) ) + +#define ID3D12VideoDevice1_CreateVideoProcessor(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,riid,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,riid,ppVideoProcessor) ) + + +#define ID3D12VideoDevice1_CreateVideoMotionEstimator(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionEstimator) \ + ( (This)->lpVtbl -> CreateVideoMotionEstimator(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionEstimator) ) + +#define ID3D12VideoDevice1_CreateVideoMotionVectorHeap(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionVectorHeap) \ + ( (This)->lpVtbl -> CreateVideoMotionVectorHeap(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionVectorHeap) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDevice1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0011 */ +/* [local] */ + +typedef struct D3D12_RESOURCE_COORDINATE + { + UINT64 X; + UINT Y; + UINT Z; + UINT SubresourceIndex; + } D3D12_RESOURCE_COORDINATE; + +typedef struct D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT + { + ID3D12VideoMotionVectorHeap *pMotionVectorHeap; + } D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT; + +typedef struct D3D12_VIDEO_MOTION_ESTIMATOR_INPUT + { + ID3D12Resource *pInputTexture2D; + UINT InputSubresourceIndex; + ID3D12Resource *pReferenceTexture2D; + UINT ReferenceSubresourceIndex; + ID3D12VideoMotionVectorHeap *pHintMotionVectorHeap; + } D3D12_VIDEO_MOTION_ESTIMATOR_INPUT; + +typedef struct D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT + { + ID3D12Resource *pMotionVectorTexture2D; + D3D12_RESOURCE_COORDINATE MotionVectorCoordinate; + } D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT; + +typedef struct D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT + { + ID3D12VideoMotionVectorHeap *pMotionVectorHeap; + UINT PixelWidth; + UINT PixelHeight; + } D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0011_v0_0_s_ifspec; + +#ifndef __ID3D12VideoEncodeCommandList_INTERFACE_DEFINED__ +#define __ID3D12VideoEncodeCommandList_INTERFACE_DEFINED__ + +/* interface ID3D12VideoEncodeCommandList */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoEncodeCommandList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8455293A-0CBD-4831-9B39-FBDBAB724723") + ID3D12VideoEncodeCommandList : public ID3D12CommandList + { + public: + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( + _In_ ID3D12CommandAllocator *pAllocator) = 0; + + virtual void STDMETHODCALLTYPE ClearState( void) = 0; + + virtual void STDMETHODCALLTYPE ResourceBarrier( + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers) = 0; + + virtual void STDMETHODCALLTYPE DiscardResource( + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion) = 0; + + virtual void STDMETHODCALLTYPE BeginQuery( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index) = 0; + + virtual void STDMETHODCALLTYPE EndQuery( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index) = 0; + + virtual void STDMETHODCALLTYPE ResolveQueryData( + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset) = 0; + + virtual void STDMETHODCALLTYPE SetPredication( + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation) = 0; + + virtual void STDMETHODCALLTYPE SetMarker( + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size) = 0; + + virtual void STDMETHODCALLTYPE BeginEvent( + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size) = 0; + + virtual void STDMETHODCALLTYPE EndEvent( void) = 0; + + virtual void STDMETHODCALLTYPE EstimateMotion( + _In_ ID3D12VideoMotionEstimator *pMotionEstimator, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *pOutputArguments, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *pInputArguments) = 0; + + virtual void STDMETHODCALLTYPE ResolveMotionVectorHeap( + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *pOutputArguments, + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *pInputArguments) = 0; + + virtual void STDMETHODCALLTYPE WriteBufferImmediate( + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes) = 0; + + virtual void STDMETHODCALLTYPE SetProtectedResourceSession( + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoEncodeCommandListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoEncodeCommandList * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoEncodeCommandList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoEncodeCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoEncodeCommandList * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoEncodeCommandList * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoEncodeCommandList * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoEncodeCommandList * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoEncodeCommandList * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoEncodeCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoEncodeCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoEncodeCommandList * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoEncodeCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoEncodeCommandList * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoEncodeCommandList * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoEncodeCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoEncodeCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoEncodeCommandList * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoEncodeCommandList * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoEncodeCommandList * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoEncodeCommandList * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoEncodeCommandList * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EstimateMotion) + void ( STDMETHODCALLTYPE *EstimateMotion )( + ID3D12VideoEncodeCommandList * This, + _In_ ID3D12VideoMotionEstimator *pMotionEstimator, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *pOutputArguments, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResolveMotionVectorHeap) + void ( STDMETHODCALLTYPE *ResolveMotionVectorHeap )( + ID3D12VideoEncodeCommandList * This, + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *pOutputArguments, + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoEncodeCommandList * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12VideoEncodeCommandList * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + END_INTERFACE + } ID3D12VideoEncodeCommandListVtbl; + + interface ID3D12VideoEncodeCommandList + { + CONST_VTBL struct ID3D12VideoEncodeCommandListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoEncodeCommandList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoEncodeCommandList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoEncodeCommandList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoEncodeCommandList_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoEncodeCommandList_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoEncodeCommandList_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoEncodeCommandList_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoEncodeCommandList_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoEncodeCommandList_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoEncodeCommandList_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoEncodeCommandList_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoEncodeCommandList_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoEncodeCommandList_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoEncodeCommandList_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoEncodeCommandList_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoEncodeCommandList_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoEncodeCommandList_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoEncodeCommandList_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoEncodeCommandList_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoEncodeCommandList_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoEncodeCommandList_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoEncodeCommandList_EstimateMotion(This,pMotionEstimator,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> EstimateMotion(This,pMotionEstimator,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoEncodeCommandList_ResolveMotionVectorHeap(This,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> ResolveMotionVectorHeap(This,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoEncodeCommandList_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + +#define ID3D12VideoEncodeCommandList_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoEncodeCommandList_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0012 */ +/* [local] */ + +typedef +enum D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS + { + D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAG_NONE = 0, + D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAG_SUPPORTED = 0x1 + } D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS ) +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES + { + UINT NodeIndex; + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; + D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS SupportFlags; + } D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES; + +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES + { + UINT NodeIndex; + D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS SupportFlags; + } D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES; + +typedef struct D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES + { + UINT NodeIndex; + D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS SupportFlags; + } D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1 + { + D3D12_VIDEO_DECODER_HEAP_DESC VideoDecoderHeapDesc; + BOOL Protected; + UINT64 MemoryPoolL0Size; + UINT64 MemoryPoolL1Size; + } D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1; + +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1 + { + UINT NodeMask; + const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc; + UINT NumInputStreamDescs; + const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs; + BOOL Protected; + UINT64 MemoryPoolL0Size; + UINT64 MemoryPoolL1Size; + } D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1; + +typedef +enum D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE + { + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_CREATION = 0, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_INITIALIZATION = 1, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_EXECUTION = 2, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_CAPS_INPUT = 3, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_CAPS_OUTPUT = 4, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_DEVICE_EXECUTE_INPUT = 5, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_DEVICE_EXECUTE_OUTPUT = 6 + } D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE; + +typedef +enum D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE + { + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT8 = 0, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT16 = 1, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT32 = 2, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT64 = 3, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT8 = 4, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT16 = 5, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT32 = 6, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT64 = 7, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_FLOAT = 8, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_DOUBLE = 9, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_RESOURCE = 10 + } D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE; + +typedef +enum D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS + { + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAG_NONE = 0, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAG_READ = 0x1, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAG_WRITE = 0x2 + } D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS ) +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT + { + UINT NodeIndex; + UINT CommandCount; + } D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT; + +typedef struct D3D12_VIDEO_EXTENSION_COMMAND_INFO + { + GUID CommandId; + LPCWSTR Name; + D3D12_COMMAND_LIST_SUPPORT_FLAGS CommandListSupportFlags; + } D3D12_VIDEO_EXTENSION_COMMAND_INFO; + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS + { + UINT NodeIndex; + UINT CommandCount; + _Field_size_full_(CommandCount) D3D12_VIDEO_EXTENSION_COMMAND_INFO *pCommandInfos; + } D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS; + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT + { + GUID CommandId; + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE Stage; + UINT ParameterCount; + UINT ParameterPacking; + } D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT; + +typedef struct D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO + { + LPCWSTR Name; + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE Type; + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS Flags; + } D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO; + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS + { + GUID CommandId; + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE Stage; + UINT ParameterCount; + _Field_size_full_(ParameterCount) D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO *pParameterInfos; + } D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS; + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT + { + UINT NodeIndex; + GUID CommandId; + _Field_size_bytes_full_opt_(InputDataSizeInBytes) const void *pInputData; + SIZE_T InputDataSizeInBytes; + _Field_size_bytes_full_opt_(OutputDataSizeInBytes) void *pOutputData; + SIZE_T OutputDataSizeInBytes; + } D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE + { + UINT NodeIndex; + GUID CommandId; + _Field_size_bytes_full_(CreationParametersDataSizeInBytes) const void *pCreationParameters; + SIZE_T CreationParametersSizeInBytes; + UINT64 MemoryPoolL0Size; + UINT64 MemoryPoolL1Size; + } D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE; + +typedef struct D3D12_VIDEO_EXTENSION_COMMAND_DESC + { + UINT NodeMask; + GUID CommandId; + } D3D12_VIDEO_EXTENSION_COMMAND_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0012_v0_0_s_ifspec; + +#ifndef __ID3D12VideoDecoder1_INTERFACE_DEFINED__ +#define __ID3D12VideoDecoder1_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDecoder1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDecoder1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("79A2E5FB-CCD2-469A-9FDE-195D10951F7E") + ID3D12VideoDecoder1 : public ID3D12VideoDecoder + { + public: + virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession( + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDecoder1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDecoder1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDecoder1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDecoder1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoDecoder1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoDecoder1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoDecoder1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoDecoder1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoDecoder1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoDecoder, GetDesc) +#if !defined(_WIN32) + D3D12_VIDEO_DECODER_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoDecoder1 * This); + +#else + D3D12_VIDEO_DECODER_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoDecoder1 * This, + D3D12_VIDEO_DECODER_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12VideoDecoder1, GetProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )( + ID3D12VideoDecoder1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession); + + END_INTERFACE + } ID3D12VideoDecoder1Vtbl; + + interface ID3D12VideoDecoder1 + { + CONST_VTBL struct ID3D12VideoDecoder1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDecoder1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDecoder1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDecoder1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDecoder1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoDecoder1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoDecoder1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoDecoder1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoDecoder1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#if !defined(_WIN32) + +#define ID3D12VideoDecoder1_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12VideoDecoder1_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + + +#define ID3D12VideoDecoder1_GetProtectedResourceSession(This,riid,ppProtectedSession) \ + ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDecoder1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoDecoderHeap1_INTERFACE_DEFINED__ +#define __ID3D12VideoDecoderHeap1_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDecoderHeap1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDecoderHeap1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DA1D98C5-539F-41B2-BF6B-1198A03B6D26") + ID3D12VideoDecoderHeap1 : public ID3D12VideoDecoderHeap + { + public: + virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession( + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDecoderHeap1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDecoderHeap1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDecoderHeap1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDecoderHeap1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoDecoderHeap1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoDecoderHeap1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoDecoderHeap1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoDecoderHeap1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoDecoderHeap1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoDecoderHeap, GetDesc) +#if !defined(_WIN32) + D3D12_VIDEO_DECODER_HEAP_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoDecoderHeap1 * This); + +#else + D3D12_VIDEO_DECODER_HEAP_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoDecoderHeap1 * This, + D3D12_VIDEO_DECODER_HEAP_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12VideoDecoderHeap1, GetProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )( + ID3D12VideoDecoderHeap1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession); + + END_INTERFACE + } ID3D12VideoDecoderHeap1Vtbl; + + interface ID3D12VideoDecoderHeap1 + { + CONST_VTBL struct ID3D12VideoDecoderHeap1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDecoderHeap1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDecoderHeap1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDecoderHeap1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDecoderHeap1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoDecoderHeap1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoDecoderHeap1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoDecoderHeap1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoDecoderHeap1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#if !defined(_WIN32) + +#define ID3D12VideoDecoderHeap1_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12VideoDecoderHeap1_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + + +#define ID3D12VideoDecoderHeap1_GetProtectedResourceSession(This,riid,ppProtectedSession) \ + ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDecoderHeap1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoProcessor1_INTERFACE_DEFINED__ +#define __ID3D12VideoProcessor1_INTERFACE_DEFINED__ + +/* interface ID3D12VideoProcessor1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoProcessor1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F3CFE615-553F-425C-86D8-EE8C1B1FB01C") + ID3D12VideoProcessor1 : public ID3D12VideoProcessor + { + public: + virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession( + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoProcessor1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoProcessor1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoProcessor1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoProcessor1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoProcessor1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoProcessor1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoProcessor1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoProcessor1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoProcessor1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessor, GetNodeMask) + UINT ( STDMETHODCALLTYPE *GetNodeMask )( + ID3D12VideoProcessor1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessor, GetNumInputStreamDescs) + UINT ( STDMETHODCALLTYPE *GetNumInputStreamDescs )( + ID3D12VideoProcessor1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessor, GetInputStreamDescs) + HRESULT ( STDMETHODCALLTYPE *GetInputStreamDescs )( + ID3D12VideoProcessor1 * This, + UINT NumInputStreamDescs, + _Out_writes_(NumInputStreamDescs) D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessor, GetOutputStreamDesc) +#if !defined(_WIN32) + D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC ( STDMETHODCALLTYPE *GetOutputStreamDesc )( + ID3D12VideoProcessor1 * This); + +#else + D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *( STDMETHODCALLTYPE *GetOutputStreamDesc )( + ID3D12VideoProcessor1 * This, + D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12VideoProcessor1, GetProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )( + ID3D12VideoProcessor1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession); + + END_INTERFACE + } ID3D12VideoProcessor1Vtbl; + + interface ID3D12VideoProcessor1 + { + CONST_VTBL struct ID3D12VideoProcessor1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoProcessor1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoProcessor1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoProcessor1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoProcessor1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoProcessor1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoProcessor1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoProcessor1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoProcessor1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12VideoProcessor1_GetNodeMask(This) \ + ( (This)->lpVtbl -> GetNodeMask(This) ) + +#define ID3D12VideoProcessor1_GetNumInputStreamDescs(This) \ + ( (This)->lpVtbl -> GetNumInputStreamDescs(This) ) + +#define ID3D12VideoProcessor1_GetInputStreamDescs(This,NumInputStreamDescs,pInputStreamDescs) \ + ( (This)->lpVtbl -> GetInputStreamDescs(This,NumInputStreamDescs,pInputStreamDescs) ) +#if !defined(_WIN32) + +#define ID3D12VideoProcessor1_GetOutputStreamDesc(This) \ + ( (This)->lpVtbl -> GetOutputStreamDesc(This) ) +#else +#define ID3D12VideoProcessor1_GetOutputStreamDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetOutputStreamDesc(This,RetVal) ) +#endif + + +#define ID3D12VideoProcessor1_GetProtectedResourceSession(This,riid,ppProtectedSession) \ + ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoProcessor1_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoExtensionCommand_INTERFACE_DEFINED__ +#define __ID3D12VideoExtensionCommand_INTERFACE_DEFINED__ + +/* interface ID3D12VideoExtensionCommand */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoExtensionCommand; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("554E41E8-AE8E-4A8C-B7D2-5B4F274A30E4") + ID3D12VideoExtensionCommand : public ID3D12Pageable + { + public: +#if defined(_MSC_VER) || !defined(_WIN32) + virtual D3D12_VIDEO_EXTENSION_COMMAND_DESC STDMETHODCALLTYPE GetDesc( void) = 0; +#else + virtual D3D12_VIDEO_EXTENSION_COMMAND_DESC *STDMETHODCALLTYPE GetDesc( + D3D12_VIDEO_EXTENSION_COMMAND_DESC * RetVal) = 0; +#endif + + virtual HRESULT STDMETHODCALLTYPE GetProtectedResourceSession( + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoExtensionCommandVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoExtensionCommand * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoExtensionCommand * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoExtensionCommand * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoExtensionCommand * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoExtensionCommand * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoExtensionCommand * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoExtensionCommand * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoExtensionCommand * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoExtensionCommand, GetDesc) +#if !defined(_WIN32) + D3D12_VIDEO_EXTENSION_COMMAND_DESC ( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoExtensionCommand * This); + +#else + D3D12_VIDEO_EXTENSION_COMMAND_DESC *( STDMETHODCALLTYPE *GetDesc )( + ID3D12VideoExtensionCommand * This, + D3D12_VIDEO_EXTENSION_COMMAND_DESC * RetVal); + +#endif + + DECLSPEC_XFGVIRT(ID3D12VideoExtensionCommand, GetProtectedResourceSession) + HRESULT ( STDMETHODCALLTYPE *GetProtectedResourceSession )( + ID3D12VideoExtensionCommand * This, + REFIID riid, + _COM_Outptr_opt_ void **ppProtectedSession); + + END_INTERFACE + } ID3D12VideoExtensionCommandVtbl; + + interface ID3D12VideoExtensionCommand + { + CONST_VTBL struct ID3D12VideoExtensionCommandVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoExtensionCommand_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoExtensionCommand_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoExtensionCommand_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoExtensionCommand_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoExtensionCommand_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoExtensionCommand_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoExtensionCommand_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoExtensionCommand_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#if !defined(_WIN32) + +#define ID3D12VideoExtensionCommand_GetDesc(This) \ + ( (This)->lpVtbl -> GetDesc(This) ) +#else +#define ID3D12VideoExtensionCommand_GetDesc(This,RetVal) \ + ( (This)->lpVtbl -> GetDesc(This,RetVal) ) +#endif + +#define ID3D12VideoExtensionCommand_GetProtectedResourceSession(This,riid,ppProtectedSession) \ + ( (This)->lpVtbl -> GetProtectedResourceSession(This,riid,ppProtectedSession) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoExtensionCommand_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoDevice2_INTERFACE_DEFINED__ +#define __ID3D12VideoDevice2_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDevice2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDevice2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F019AC49-F838-4A95-9B17-579437C8F513") + ID3D12VideoDevice2 : public ID3D12VideoDevice1 + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoder1( + _In_ const D3D12_VIDEO_DECODER_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoder) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoderHeap1( + _In_ const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoderHeap) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessor1( + UINT NodeMask, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc, + UINT NumInputStreamDescs, + _In_reads_(NumInputStreamDescs) const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoProcessor) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoExtensionCommand( + _In_ const D3D12_VIDEO_EXTENSION_COMMAND_DESC *pDesc, + _In_reads_bytes_(CreationParametersDataSizeInBytes) const void *pCreationParameters, + SIZE_T CreationParametersDataSizeInBytes, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoExtensionCommand) = 0; + + virtual HRESULT STDMETHODCALLTYPE ExecuteExtensionCommand( + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes, + _Out_writes_bytes_(OutputDataSizeInBytes) void *pOutputData, + SIZE_T OutputDataSizeInBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDevice2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDevice2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDevice2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDevice2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12VideoDevice2 * This, + D3D12_FEATURE_VIDEO FeatureVideo, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoDecoder) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )( + ID3D12VideoDevice2 * This, + _In_ const D3D12_VIDEO_DECODER_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoder); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoDecoderHeap) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderHeap )( + ID3D12VideoDevice2 * This, + _In_ const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoderHeap); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + ID3D12VideoDevice2 * This, + UINT NodeMask, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc, + UINT NumInputStreamDescs, + _In_reads_(NumInputStreamDescs) const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoProcessor); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice1, CreateVideoMotionEstimator) + HRESULT ( STDMETHODCALLTYPE *CreateVideoMotionEstimator )( + ID3D12VideoDevice2 * This, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoMotionEstimator); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice1, CreateVideoMotionVectorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateVideoMotionVectorHeap )( + ID3D12VideoDevice2 * This, + _In_ const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoMotionVectorHeap); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice2, CreateVideoDecoder1) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder1 )( + ID3D12VideoDevice2 * This, + _In_ const D3D12_VIDEO_DECODER_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoder); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice2, CreateVideoDecoderHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderHeap1 )( + ID3D12VideoDevice2 * This, + _In_ const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoderHeap); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice2, CreateVideoProcessor1) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor1 )( + ID3D12VideoDevice2 * This, + UINT NodeMask, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc, + UINT NumInputStreamDescs, + _In_reads_(NumInputStreamDescs) const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoProcessor); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice2, CreateVideoExtensionCommand) + HRESULT ( STDMETHODCALLTYPE *CreateVideoExtensionCommand )( + ID3D12VideoDevice2 * This, + _In_ const D3D12_VIDEO_EXTENSION_COMMAND_DESC *pDesc, + _In_reads_bytes_(CreationParametersDataSizeInBytes) const void *pCreationParameters, + SIZE_T CreationParametersDataSizeInBytes, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoExtensionCommand); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice2, ExecuteExtensionCommand) + HRESULT ( STDMETHODCALLTYPE *ExecuteExtensionCommand )( + ID3D12VideoDevice2 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes, + _Out_writes_bytes_(OutputDataSizeInBytes) void *pOutputData, + SIZE_T OutputDataSizeInBytes); + + END_INTERFACE + } ID3D12VideoDevice2Vtbl; + + interface ID3D12VideoDevice2 + { + CONST_VTBL struct ID3D12VideoDevice2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDevice2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDevice2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDevice2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDevice2_CheckFeatureSupport(This,FeatureVideo,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,FeatureVideo,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12VideoDevice2_CreateVideoDecoder(This,pDesc,riid,ppVideoDecoder) \ + ( (This)->lpVtbl -> CreateVideoDecoder(This,pDesc,riid,ppVideoDecoder) ) + +#define ID3D12VideoDevice2_CreateVideoDecoderHeap(This,pVideoDecoderHeapDesc,riid,ppVideoDecoderHeap) \ + ( (This)->lpVtbl -> CreateVideoDecoderHeap(This,pVideoDecoderHeapDesc,riid,ppVideoDecoderHeap) ) + +#define ID3D12VideoDevice2_CreateVideoProcessor(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,riid,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,riid,ppVideoProcessor) ) + + +#define ID3D12VideoDevice2_CreateVideoMotionEstimator(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionEstimator) \ + ( (This)->lpVtbl -> CreateVideoMotionEstimator(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionEstimator) ) + +#define ID3D12VideoDevice2_CreateVideoMotionVectorHeap(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionVectorHeap) \ + ( (This)->lpVtbl -> CreateVideoMotionVectorHeap(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionVectorHeap) ) + + +#define ID3D12VideoDevice2_CreateVideoDecoder1(This,pDesc,pProtectedResourceSession,riid,ppVideoDecoder) \ + ( (This)->lpVtbl -> CreateVideoDecoder1(This,pDesc,pProtectedResourceSession,riid,ppVideoDecoder) ) + +#define ID3D12VideoDevice2_CreateVideoDecoderHeap1(This,pVideoDecoderHeapDesc,pProtectedResourceSession,riid,ppVideoDecoderHeap) \ + ( (This)->lpVtbl -> CreateVideoDecoderHeap1(This,pVideoDecoderHeapDesc,pProtectedResourceSession,riid,ppVideoDecoderHeap) ) + +#define ID3D12VideoDevice2_CreateVideoProcessor1(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,pProtectedResourceSession,riid,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor1(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,pProtectedResourceSession,riid,ppVideoProcessor) ) + +#define ID3D12VideoDevice2_CreateVideoExtensionCommand(This,pDesc,pCreationParameters,CreationParametersDataSizeInBytes,pProtectedResourceSession,riid,ppVideoExtensionCommand) \ + ( (This)->lpVtbl -> CreateVideoExtensionCommand(This,pDesc,pCreationParameters,CreationParametersDataSizeInBytes,pProtectedResourceSession,riid,ppVideoExtensionCommand) ) + +#define ID3D12VideoDevice2_ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes,pOutputData,OutputDataSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes,pOutputData,OutputDataSizeInBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDevice2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoDecodeCommandList2_INTERFACE_DEFINED__ +#define __ID3D12VideoDecodeCommandList2_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDecodeCommandList2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDecodeCommandList2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6e120880-c114-4153-8036-d247051e1729") + ID3D12VideoDecodeCommandList2 : public ID3D12VideoDecodeCommandList1 + { + public: + virtual void STDMETHODCALLTYPE SetProtectedResourceSession( + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession) = 0; + + virtual void STDMETHODCALLTYPE InitializeExtensionCommand( + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(InitializationParametersSizeInBytes) const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes) = 0; + + virtual void STDMETHODCALLTYPE ExecuteExtensionCommand( + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDecodeCommandList2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDecodeCommandList2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDecodeCommandList2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDecodeCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoDecodeCommandList2 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoDecodeCommandList2 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoDecodeCommandList2 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoDecodeCommandList2 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoDecodeCommandList2 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoDecodeCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoDecodeCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoDecodeCommandList2 * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoDecodeCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoDecodeCommandList2 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoDecodeCommandList2 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoDecodeCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoDecodeCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoDecodeCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoDecodeCommandList2 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoDecodeCommandList2 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoDecodeCommandList2 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoDecodeCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, DecodeFrame) + void ( STDMETHODCALLTYPE *DecodeFrame )( + ID3D12VideoDecodeCommandList2 * This, + _In_ ID3D12VideoDecoder *pDecoder, + _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoDecodeCommandList2 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList1, DecodeFrame1) + void ( STDMETHODCALLTYPE *DecodeFrame1 )( + ID3D12VideoDecodeCommandList2 * This, + _In_ ID3D12VideoDecoder *pDecoder, + _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *pOutputArguments, + _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList2, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12VideoDecodeCommandList2 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList2, InitializeExtensionCommand) + void ( STDMETHODCALLTYPE *InitializeExtensionCommand )( + ID3D12VideoDecodeCommandList2 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(InitializationParametersSizeInBytes) const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList2, ExecuteExtensionCommand) + void ( STDMETHODCALLTYPE *ExecuteExtensionCommand )( + ID3D12VideoDecodeCommandList2 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes); + + END_INTERFACE + } ID3D12VideoDecodeCommandList2Vtbl; + + interface ID3D12VideoDecodeCommandList2 + { + CONST_VTBL struct ID3D12VideoDecodeCommandList2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDecodeCommandList2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDecodeCommandList2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDecodeCommandList2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDecodeCommandList2_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoDecodeCommandList2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoDecodeCommandList2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoDecodeCommandList2_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoDecodeCommandList2_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoDecodeCommandList2_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoDecodeCommandList2_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoDecodeCommandList2_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoDecodeCommandList2_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoDecodeCommandList2_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoDecodeCommandList2_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoDecodeCommandList2_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoDecodeCommandList2_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoDecodeCommandList2_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoDecodeCommandList2_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoDecodeCommandList2_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoDecodeCommandList2_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoDecodeCommandList2_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoDecodeCommandList2_DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoDecodeCommandList2_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12VideoDecodeCommandList2_DecodeFrame1(This,pDecoder,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> DecodeFrame1(This,pDecoder,pOutputArguments,pInputArguments) ) + + +#define ID3D12VideoDecodeCommandList2_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + +#define ID3D12VideoDecodeCommandList2_InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) \ + ( (This)->lpVtbl -> InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) ) + +#define ID3D12VideoDecodeCommandList2_ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDecodeCommandList2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoDecodeCommandList3_INTERFACE_DEFINED__ +#define __ID3D12VideoDecodeCommandList3_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDecodeCommandList3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDecodeCommandList3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2aee8c37-9562-42da-8abf-61efeb2e4513") + ID3D12VideoDecodeCommandList3 : public ID3D12VideoDecodeCommandList2 + { + public: + virtual void STDMETHODCALLTYPE Barrier( + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDecodeCommandList3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDecodeCommandList3 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDecodeCommandList3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDecodeCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoDecodeCommandList3 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoDecodeCommandList3 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoDecodeCommandList3 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoDecodeCommandList3 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoDecodeCommandList3 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoDecodeCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoDecodeCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoDecodeCommandList3 * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoDecodeCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoDecodeCommandList3 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoDecodeCommandList3 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoDecodeCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoDecodeCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoDecodeCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoDecodeCommandList3 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoDecodeCommandList3 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoDecodeCommandList3 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoDecodeCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, DecodeFrame) + void ( STDMETHODCALLTYPE *DecodeFrame )( + ID3D12VideoDecodeCommandList3 * This, + _In_ ID3D12VideoDecoder *pDecoder, + _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoDecodeCommandList3 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList1, DecodeFrame1) + void ( STDMETHODCALLTYPE *DecodeFrame1 )( + ID3D12VideoDecodeCommandList3 * This, + _In_ ID3D12VideoDecoder *pDecoder, + _In_ const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *pOutputArguments, + _In_ const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList2, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12VideoDecodeCommandList3 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList2, InitializeExtensionCommand) + void ( STDMETHODCALLTYPE *InitializeExtensionCommand )( + ID3D12VideoDecodeCommandList3 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(InitializationParametersSizeInBytes) const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList2, ExecuteExtensionCommand) + void ( STDMETHODCALLTYPE *ExecuteExtensionCommand )( + ID3D12VideoDecodeCommandList3 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoDecodeCommandList3, Barrier) + void ( STDMETHODCALLTYPE *Barrier )( + ID3D12VideoDecodeCommandList3 * This, + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups); + + END_INTERFACE + } ID3D12VideoDecodeCommandList3Vtbl; + + interface ID3D12VideoDecodeCommandList3 + { + CONST_VTBL struct ID3D12VideoDecodeCommandList3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDecodeCommandList3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDecodeCommandList3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDecodeCommandList3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDecodeCommandList3_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoDecodeCommandList3_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoDecodeCommandList3_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoDecodeCommandList3_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoDecodeCommandList3_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoDecodeCommandList3_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoDecodeCommandList3_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoDecodeCommandList3_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoDecodeCommandList3_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoDecodeCommandList3_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoDecodeCommandList3_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoDecodeCommandList3_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoDecodeCommandList3_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoDecodeCommandList3_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoDecodeCommandList3_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoDecodeCommandList3_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoDecodeCommandList3_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoDecodeCommandList3_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoDecodeCommandList3_DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> DecodeFrame(This,pDecoder,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoDecodeCommandList3_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12VideoDecodeCommandList3_DecodeFrame1(This,pDecoder,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> DecodeFrame1(This,pDecoder,pOutputArguments,pInputArguments) ) + + +#define ID3D12VideoDecodeCommandList3_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + +#define ID3D12VideoDecodeCommandList3_InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) \ + ( (This)->lpVtbl -> InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) ) + +#define ID3D12VideoDecodeCommandList3_ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) ) + + +#define ID3D12VideoDecodeCommandList3_Barrier(This,NumBarrierGroups,pBarrierGroups) \ + ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDecodeCommandList3_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoProcessCommandList2_INTERFACE_DEFINED__ +#define __ID3D12VideoProcessCommandList2_INTERFACE_DEFINED__ + +/* interface ID3D12VideoProcessCommandList2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoProcessCommandList2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("db525ae4-6ad6-473c-baa7-59b2e37082e4") + ID3D12VideoProcessCommandList2 : public ID3D12VideoProcessCommandList1 + { + public: + virtual void STDMETHODCALLTYPE SetProtectedResourceSession( + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession) = 0; + + virtual void STDMETHODCALLTYPE InitializeExtensionCommand( + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(InitializationParametersSizeInBytes) const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes) = 0; + + virtual void STDMETHODCALLTYPE ExecuteExtensionCommand( + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoProcessCommandList2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoProcessCommandList2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoProcessCommandList2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoProcessCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoProcessCommandList2 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoProcessCommandList2 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoProcessCommandList2 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoProcessCommandList2 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoProcessCommandList2 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoProcessCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoProcessCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoProcessCommandList2 * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoProcessCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoProcessCommandList2 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoProcessCommandList2 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoProcessCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoProcessCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoProcessCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoProcessCommandList2 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoProcessCommandList2 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoProcessCommandList2 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoProcessCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ProcessFrames) + void ( STDMETHODCALLTYPE *ProcessFrames )( + ID3D12VideoProcessCommandList2 * This, + _In_ ID3D12VideoProcessor *pVideoProcessor, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoProcessCommandList2 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList1, ProcessFrames1) + void ( STDMETHODCALLTYPE *ProcessFrames1 )( + ID3D12VideoProcessCommandList2 * This, + _In_ ID3D12VideoProcessor *pVideoProcessor, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList2, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12VideoProcessCommandList2 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList2, InitializeExtensionCommand) + void ( STDMETHODCALLTYPE *InitializeExtensionCommand )( + ID3D12VideoProcessCommandList2 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(InitializationParametersSizeInBytes) const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList2, ExecuteExtensionCommand) + void ( STDMETHODCALLTYPE *ExecuteExtensionCommand )( + ID3D12VideoProcessCommandList2 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes); + + END_INTERFACE + } ID3D12VideoProcessCommandList2Vtbl; + + interface ID3D12VideoProcessCommandList2 + { + CONST_VTBL struct ID3D12VideoProcessCommandList2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoProcessCommandList2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoProcessCommandList2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoProcessCommandList2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoProcessCommandList2_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoProcessCommandList2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoProcessCommandList2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoProcessCommandList2_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoProcessCommandList2_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoProcessCommandList2_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoProcessCommandList2_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoProcessCommandList2_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoProcessCommandList2_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoProcessCommandList2_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoProcessCommandList2_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoProcessCommandList2_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoProcessCommandList2_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoProcessCommandList2_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoProcessCommandList2_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoProcessCommandList2_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoProcessCommandList2_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoProcessCommandList2_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoProcessCommandList2_ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) \ + ( (This)->lpVtbl -> ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) ) + +#define ID3D12VideoProcessCommandList2_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12VideoProcessCommandList2_ProcessFrames1(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) \ + ( (This)->lpVtbl -> ProcessFrames1(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) ) + + +#define ID3D12VideoProcessCommandList2_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + +#define ID3D12VideoProcessCommandList2_InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) \ + ( (This)->lpVtbl -> InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) ) + +#define ID3D12VideoProcessCommandList2_ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoProcessCommandList2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoProcessCommandList3_INTERFACE_DEFINED__ +#define __ID3D12VideoProcessCommandList3_INTERFACE_DEFINED__ + +/* interface ID3D12VideoProcessCommandList3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoProcessCommandList3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1a0a4ca4-9f08-40ce-9558-b411fd2666ff") + ID3D12VideoProcessCommandList3 : public ID3D12VideoProcessCommandList2 + { + public: + virtual void STDMETHODCALLTYPE Barrier( + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoProcessCommandList3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoProcessCommandList3 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoProcessCommandList3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoProcessCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoProcessCommandList3 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoProcessCommandList3 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoProcessCommandList3 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoProcessCommandList3 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoProcessCommandList3 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoProcessCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoProcessCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoProcessCommandList3 * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoProcessCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoProcessCommandList3 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoProcessCommandList3 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoProcessCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoProcessCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoProcessCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoProcessCommandList3 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoProcessCommandList3 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoProcessCommandList3 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoProcessCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, ProcessFrames) + void ( STDMETHODCALLTYPE *ProcessFrames )( + ID3D12VideoProcessCommandList3 * This, + _In_ ID3D12VideoProcessor *pVideoProcessor, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoProcessCommandList3 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList1, ProcessFrames1) + void ( STDMETHODCALLTYPE *ProcessFrames1 )( + ID3D12VideoProcessCommandList3 * This, + _In_ ID3D12VideoProcessor *pVideoProcessor, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + _In_reads_(NumInputStreams) const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList2, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12VideoProcessCommandList3 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList2, InitializeExtensionCommand) + void ( STDMETHODCALLTYPE *InitializeExtensionCommand )( + ID3D12VideoProcessCommandList3 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(InitializationParametersSizeInBytes) const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList2, ExecuteExtensionCommand) + void ( STDMETHODCALLTYPE *ExecuteExtensionCommand )( + ID3D12VideoProcessCommandList3 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoProcessCommandList3, Barrier) + void ( STDMETHODCALLTYPE *Barrier )( + ID3D12VideoProcessCommandList3 * This, + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups); + + END_INTERFACE + } ID3D12VideoProcessCommandList3Vtbl; + + interface ID3D12VideoProcessCommandList3 + { + CONST_VTBL struct ID3D12VideoProcessCommandList3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoProcessCommandList3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoProcessCommandList3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoProcessCommandList3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoProcessCommandList3_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoProcessCommandList3_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoProcessCommandList3_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoProcessCommandList3_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoProcessCommandList3_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoProcessCommandList3_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoProcessCommandList3_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoProcessCommandList3_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoProcessCommandList3_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoProcessCommandList3_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoProcessCommandList3_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoProcessCommandList3_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoProcessCommandList3_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoProcessCommandList3_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoProcessCommandList3_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoProcessCommandList3_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoProcessCommandList3_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoProcessCommandList3_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoProcessCommandList3_ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) \ + ( (This)->lpVtbl -> ProcessFrames(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) ) + +#define ID3D12VideoProcessCommandList3_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + + +#define ID3D12VideoProcessCommandList3_ProcessFrames1(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) \ + ( (This)->lpVtbl -> ProcessFrames1(This,pVideoProcessor,pOutputArguments,NumInputStreams,pInputArguments) ) + + +#define ID3D12VideoProcessCommandList3_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + +#define ID3D12VideoProcessCommandList3_InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) \ + ( (This)->lpVtbl -> InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) ) + +#define ID3D12VideoProcessCommandList3_ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) ) + + +#define ID3D12VideoProcessCommandList3_Barrier(This,NumBarrierGroups,pBarrierGroups) \ + ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoProcessCommandList3_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoEncodeCommandList1_INTERFACE_DEFINED__ +#define __ID3D12VideoEncodeCommandList1_INTERFACE_DEFINED__ + +/* interface ID3D12VideoEncodeCommandList1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoEncodeCommandList1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("94971eca-2bdb-4769-88cf-3675ea757ebc") + ID3D12VideoEncodeCommandList1 : public ID3D12VideoEncodeCommandList + { + public: + virtual void STDMETHODCALLTYPE InitializeExtensionCommand( + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(InitializationParametersSizeInBytes) const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes) = 0; + + virtual void STDMETHODCALLTYPE ExecuteExtensionCommand( + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoEncodeCommandList1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoEncodeCommandList1 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoEncodeCommandList1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoEncodeCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoEncodeCommandList1 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoEncodeCommandList1 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoEncodeCommandList1 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoEncodeCommandList1 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoEncodeCommandList1 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoEncodeCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoEncodeCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoEncodeCommandList1 * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoEncodeCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoEncodeCommandList1 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoEncodeCommandList1 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoEncodeCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoEncodeCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoEncodeCommandList1 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoEncodeCommandList1 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoEncodeCommandList1 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoEncodeCommandList1 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoEncodeCommandList1 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EstimateMotion) + void ( STDMETHODCALLTYPE *EstimateMotion )( + ID3D12VideoEncodeCommandList1 * This, + _In_ ID3D12VideoMotionEstimator *pMotionEstimator, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *pOutputArguments, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResolveMotionVectorHeap) + void ( STDMETHODCALLTYPE *ResolveMotionVectorHeap )( + ID3D12VideoEncodeCommandList1 * This, + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *pOutputArguments, + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoEncodeCommandList1 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12VideoEncodeCommandList1 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList1, InitializeExtensionCommand) + void ( STDMETHODCALLTYPE *InitializeExtensionCommand )( + ID3D12VideoEncodeCommandList1 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(InitializationParametersSizeInBytes) const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList1, ExecuteExtensionCommand) + void ( STDMETHODCALLTYPE *ExecuteExtensionCommand )( + ID3D12VideoEncodeCommandList1 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes); + + END_INTERFACE + } ID3D12VideoEncodeCommandList1Vtbl; + + interface ID3D12VideoEncodeCommandList1 + { + CONST_VTBL struct ID3D12VideoEncodeCommandList1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoEncodeCommandList1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoEncodeCommandList1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoEncodeCommandList1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoEncodeCommandList1_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoEncodeCommandList1_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoEncodeCommandList1_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoEncodeCommandList1_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoEncodeCommandList1_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoEncodeCommandList1_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoEncodeCommandList1_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoEncodeCommandList1_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoEncodeCommandList1_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoEncodeCommandList1_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoEncodeCommandList1_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoEncodeCommandList1_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoEncodeCommandList1_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoEncodeCommandList1_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoEncodeCommandList1_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoEncodeCommandList1_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoEncodeCommandList1_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoEncodeCommandList1_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoEncodeCommandList1_EstimateMotion(This,pMotionEstimator,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> EstimateMotion(This,pMotionEstimator,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoEncodeCommandList1_ResolveMotionVectorHeap(This,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> ResolveMotionVectorHeap(This,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoEncodeCommandList1_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + +#define ID3D12VideoEncodeCommandList1_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + + +#define ID3D12VideoEncodeCommandList1_InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) \ + ( (This)->lpVtbl -> InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) ) + +#define ID3D12VideoEncodeCommandList1_ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoEncodeCommandList1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0022 */ +/* [local] */ + +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG2, 0xee27417f, 0x5e28, 0x4e65, 0xbe, 0xea, 0x1d, 0x26, 0xb5, 0x08, 0xad, 0xc9); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG1_AND_MPEG2, 0x86695f12, 0x340e, 0x4f04, 0x9f, 0xd3, 0x92, 0x53, 0xdd, 0x32, 0x74, 0x60); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264, 0x1b81be68, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264_STEREO_PROGRESSIVE, 0xd79be8da, 0x0cf1, 0x4c81, 0xb8, 0x2a, 0x69, 0xa4, 0xe2, 0x36, 0xf4, 0x3d); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264_STEREO, 0xf9aaccbb, 0xc2b6, 0x4cfc, 0x87, 0x79, 0x57, 0x07, 0xb1, 0x76, 0x05, 0x52); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264_MULTIVIEW, 0x705b9d82, 0x76cf, 0x49d6, 0xb7, 0xe6, 0xac, 0x88, 0x72, 0xdb, 0x01, 0x3c); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VC1, 0x1b81beA3, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VC1_D2010, 0x1b81beA4, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_SIMPLE, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_ADVSIMPLE_NOGMC, 0xed418a9f, 0x010d, 0x4eda, 0x9a, 0xe3, 0x9a, 0x65, 0x35, 0x8d, 0x8d, 0x2e); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN, 0x5b11d51b, 0x2f4c, 0x4452, 0xbc, 0xc3, 0x09, 0xf2, 0xa1, 0x16, 0x0c, 0xc0); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10, 0x107af0e0, 0xef1a, 0x4d19, 0xab, 0xa8, 0x67, 0xa1, 0x63, 0x07, 0x3d, 0x13); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MONOCHROME, 0x0685b993, 0x3d8c, 0x43a0, 0x8b, 0x28, 0xd7, 0x4c, 0x2d, 0x68, 0x99, 0xa4); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MONOCHROME10, 0x142a1d0f, 0x69dd, 0x4ec9, 0x85, 0x91, 0xb1, 0x2f, 0xfc, 0xb9, 0x1a, 0x29); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN12, 0x1a72925f, 0x0c2c, 0x4f15, 0x96, 0xfb, 0xb1, 0x7d, 0x14, 0x73, 0x60, 0x3f); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10_422, 0x0bac4fe5, 0x1532, 0x4429, 0xa8, 0x54, 0xf8, 0x4d, 0xe0, 0x49, 0x53, 0xdb); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN12_422, 0x55bcac81, 0xf311, 0x4093, 0xa7, 0xd0, 0x1c, 0xbc, 0x0b, 0x84, 0x9b, 0xee); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN_444, 0x4008018f, 0xf537, 0x4b36, 0x98, 0xcf, 0x61, 0xaf, 0x8a, 0x2c, 0x1a, 0x33); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10_EXT, 0x9cc55490, 0xe37c, 0x4932, 0x86, 0x84, 0x49, 0x20, 0xf9, 0xf6, 0x40, 0x9c); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10_444, 0x0dabeffa, 0x4458, 0x4602, 0xbc, 0x03, 0x07, 0x95, 0x65, 0x9d, 0x61, 0x7c); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN12_444, 0x9798634d, 0xfe9d, 0x48e5, 0xb4, 0xda, 0xdb, 0xec, 0x45, 0xb3, 0xdf, 0x01); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN16, 0xa4fbdbb0, 0xa113, 0x482b, 0xa2, 0x32, 0x63, 0x5c, 0xc0, 0x69, 0x7f, 0x6d); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VP9, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VP8, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0, 0xb8be4ccb, 0xcf53, 0x46ba, 0x8d, 0x59, 0xd6, 0xb8, 0xa6, 0xda, 0x5d, 0x2a); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE1, 0x6936ff0f, 0x45b1, 0x4163, 0x9c, 0xc1, 0x64, 0x6e, 0xf6, 0x94, 0x61, 0x08); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE2, 0x0c5f2aa1, 0xe541, 0x4089, 0xbb, 0x7b, 0x98, 0x11, 0x0a, 0x19, 0xd7, 0xc8); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_AV1_12BIT_PROFILE2, 0x17127009, 0xa00f, 0x4ce1, 0x99, 0x4e, 0xbf, 0x40, 0x81, 0xf6, 0xf3, 0xf0); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_AV1_12BIT_PROFILE2_420, 0x2d80bed6, 0x9cac, 0x4835, 0x9e, 0x91, 0x32, 0x7b, 0xbc, 0x4f, 0x9e, 0xe8); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MJPEG_VLD_420, 0x725cb506, 0xc29, 0x43c4, 0x94, 0x40, 0x8e, 0x93, 0x97, 0x90, 0x3a, 0x4); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MJPEG_VLD_422, 0x5b77b9cd, 0x1a35, 0x4c30, 0x9f, 0xd8, 0xef, 0x4b, 0x60, 0xc0, 0x35, 0xdd); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MJPEG_VLD_444, 0xd95161f9, 0xd44, 0x47e6, 0xbc, 0xf5, 0x1b, 0xfb, 0xfb, 0x26, 0x8f, 0x97); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MJPEG_VLD_4444, 0xc91748d5, 0xfd18, 0x4aca, 0x9d, 0xb3, 0x3a, 0x66, 0x34, 0xab, 0x54, 0x7d); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_JPEG_VLD_420, 0xcf782c83, 0xbef5, 0x4a2c, 0x87, 0xcb, 0x60, 0x19, 0xe7, 0xb1, 0x75, 0xac); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_JPEG_VLD_422, 0xf04df417, 0xeee2, 0x4067, 0xa7, 0x78, 0xf3, 0x5c, 0x15, 0xab, 0x97, 0x21); +DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_JPEG_VLD_444, 0x4cd00e17, 0x89ba, 0x48ef, 0xb9, 0xf9, 0xed, 0xcb, 0x82, 0x71, 0x3f, 0x65); +typedef +enum D3D12_VIDEO_ENCODER_AV1_PROFILE + { + D3D12_VIDEO_ENCODER_AV1_PROFILE_MAIN = 0, + D3D12_VIDEO_ENCODER_AV1_PROFILE_HIGH = 1, + D3D12_VIDEO_ENCODER_AV1_PROFILE_PROFESSIONAL = 2 + } D3D12_VIDEO_ENCODER_AV1_PROFILE; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_LEVELS + { + D3D12_VIDEO_ENCODER_AV1_LEVELS_2_0 = 0, + D3D12_VIDEO_ENCODER_AV1_LEVELS_2_1 = 1, + D3D12_VIDEO_ENCODER_AV1_LEVELS_2_2 = 2, + D3D12_VIDEO_ENCODER_AV1_LEVELS_2_3 = 3, + D3D12_VIDEO_ENCODER_AV1_LEVELS_3_0 = 4, + D3D12_VIDEO_ENCODER_AV1_LEVELS_3_1 = 5, + D3D12_VIDEO_ENCODER_AV1_LEVELS_3_2 = 6, + D3D12_VIDEO_ENCODER_AV1_LEVELS_3_3 = 7, + D3D12_VIDEO_ENCODER_AV1_LEVELS_4_0 = 8, + D3D12_VIDEO_ENCODER_AV1_LEVELS_4_1 = 9, + D3D12_VIDEO_ENCODER_AV1_LEVELS_4_2 = 10, + D3D12_VIDEO_ENCODER_AV1_LEVELS_4_3 = 11, + D3D12_VIDEO_ENCODER_AV1_LEVELS_5_0 = 12, + D3D12_VIDEO_ENCODER_AV1_LEVELS_5_1 = 13, + D3D12_VIDEO_ENCODER_AV1_LEVELS_5_2 = 14, + D3D12_VIDEO_ENCODER_AV1_LEVELS_5_3 = 15, + D3D12_VIDEO_ENCODER_AV1_LEVELS_6_0 = 16, + D3D12_VIDEO_ENCODER_AV1_LEVELS_6_1 = 17, + D3D12_VIDEO_ENCODER_AV1_LEVELS_6_2 = 18, + D3D12_VIDEO_ENCODER_AV1_LEVELS_6_3 = 19, + D3D12_VIDEO_ENCODER_AV1_LEVELS_7_0 = 20, + D3D12_VIDEO_ENCODER_AV1_LEVELS_7_1 = 21, + D3D12_VIDEO_ENCODER_AV1_LEVELS_7_2 = 22, + D3D12_VIDEO_ENCODER_AV1_LEVELS_7_3 = 23 + } D3D12_VIDEO_ENCODER_AV1_LEVELS; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_TIER + { + D3D12_VIDEO_ENCODER_AV1_TIER_MAIN = 0, + D3D12_VIDEO_ENCODER_AV1_TIER_HIGH = 1 + } D3D12_VIDEO_ENCODER_AV1_TIER; + +typedef struct D3D12_VIDEO_ENCODER_AV1_LEVEL_TIER_CONSTRAINTS + { + D3D12_VIDEO_ENCODER_AV1_LEVELS Level; + D3D12_VIDEO_ENCODER_AV1_TIER Tier; + } D3D12_VIDEO_ENCODER_AV1_LEVEL_TIER_CONSTRAINTS; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS + { + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_128x128_SUPERBLOCK = 0x1, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_FILTER_INTRA = 0x2, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_INTRA_EDGE_FILTER = 0x4, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_INTERINTRA_COMPOUND = 0x8, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_MASKED_COMPOUND = 0x10, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_WARPED_MOTION = 0x20, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_DUAL_FILTER = 0x40, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_JNT_COMP = 0x80, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_FORCED_INTEGER_MOTION_VECTORS = 0x100, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_SUPER_RESOLUTION = 0x200, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_LOOP_RESTORATION_FILTER = 0x400, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_PALETTE_ENCODING = 0x800, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_CDEF_FILTERING = 0x1000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_INTRA_BLOCK_COPY = 0x2000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_FRAME_REFERENCE_MOTION_VECTORS = 0x4000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_ORDER_HINT_TOOLS = 0x8000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_AUTO_SEGMENTATION = 0x10000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_CUSTOM_SEGMENTATION = 0x20000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_LOOP_FILTER_DELTAS = 0x40000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_QUANTIZATION_DELTAS = 0x80000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_QUANTIZATION_MATRIX = 0x100000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_REDUCED_TX_SET = 0x200000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_MOTION_MODE_SWITCHABLE = 0x400000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_ALLOW_HIGH_PRECISION_MV = 0x800000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_SKIP_MODE_PRESENT = 0x1000000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_DELTA_LF_PARAMS = 0x2000000 + } D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_AV1_TX_MODE + { + D3D12_VIDEO_ENCODER_AV1_TX_MODE_ONLY4x4 = 0, + D3D12_VIDEO_ENCODER_AV1_TX_MODE_LARGEST = 1, + D3D12_VIDEO_ENCODER_AV1_TX_MODE_SELECT = 2 + } D3D12_VIDEO_ENCODER_AV1_TX_MODE; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAGS + { + D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAG_ONLY4x4 = ( 1 << D3D12_VIDEO_ENCODER_AV1_TX_MODE_ONLY4x4 ) , + D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAG_LARGEST = ( 1 << D3D12_VIDEO_ENCODER_AV1_TX_MODE_LARGEST ) , + D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAG_SELECT = ( 1 << D3D12_VIDEO_ENCODER_AV1_TX_MODE_SELECT ) + } D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS + { + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP = 0, + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP_SMOOTH = 1, + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP_SHARP = 2, + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_BILINEAR = 3, + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_SWITCHABLE = 4 + } D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAGS + { + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_EIGHTTAP = ( 1 << D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP ) , + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_EIGHTTAP_SMOOTH = ( 1 << D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP_SMOOTH ) , + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_EIGHTTAP_SHARP = ( 1 << D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP_SHARP ) , + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_BILINEAR = ( 1 << D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_BILINEAR ) , + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_SWITCHABLE = ( 1 << D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_SWITCHABLE ) + } D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE + { + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE_4x4 = 0, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE_8x8 = 1, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE_16x16 = 2, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE_32x32 = 3, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE_64x64 = 4 + } D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE + { + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_DISABLED = 0, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_Q = 1, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_Y_V = 2, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_Y_H = 3, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_U = 4, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_V = 5, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_REF_FRAME = 6, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_SKIP = 7, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_GLOBALMV = 8 + } D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAGS + { + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_DISABLED = ( 1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_DISABLED ) , + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_Q = ( 1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_Q ) , + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_LF_Y_V = ( 1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_Y_V ) , + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_LF_Y_H = ( 1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_Y_H ) , + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_LF_U = ( 1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_U ) , + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_LF_V = ( 1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_V ) , + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_REF_FRAME = ( 1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_REF_FRAME ) , + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_SKIP = ( 1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_SKIP ) , + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_GLOBALMV = ( 1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_GLOBALMV ) + } D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE + { + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE_DISABLED = 0, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE_SWITCHABLE = 1, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE_WIENER = 2, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE_SGRPROJ = 3 + } D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE + { + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE_DISABLED = 0, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE_32x32 = 1, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE_64x64 = 2, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE_128x128 = 3, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE_256x256 = 4 + } D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAGS + { + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAG_NOT_SUPPORTED = 0, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAG_32x32 = 0x1, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAG_64x64 = 0x2, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAG_128x128 = 0x4, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAG_256x256 = 0x8 + } D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION + { + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_IDENTITY = 0, + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_TRANSLATION = 1, + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_ROTZOOM = 2, + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_AFFINE = 3 + } D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS + { + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAG_IDENTITY = ( 1 << D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_IDENTITY ) , + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAG_TRANSLATION = ( 1 << D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_TRANSLATION ) , + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAG_ROTZOOM = ( 1 << D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_ROTZOOM ) , + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAG_AFFINE = ( 1 << D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_AFFINE ) + } D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAGS + { + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_QUANTIZATION = 0x1, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_QUANTIZATION_DELTA = 0x2, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_LOOP_FILTER = 0x4, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_LOOP_FILTER_DELTA = 0x8, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_CDEF_DATA = 0x10, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_CONTEXT_UPDATE_TILE_ID = 0x20, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_COMPOUND_PREDICTION_MODE = 0x40, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_PRIMARY_REF_FRAME = 0x80, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_REFERENCE_INDICES = 0x100 + } D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION_SUPPORT + { + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS SupportedFeatureFlags; + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS RequiredFeatureFlags; + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAGS SupportedInterpolationFilters; + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAGS SupportedRestorationParams[ 3 ][ 3 ]; + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAGS SupportedSegmentationModes; + D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAGS SupportedTxModes[ 4 ]; + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE SegmentationBlockSize; + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAGS PostEncodeValuesFlags; + UINT MaxTemporalLayers; + UINT MaxSpatialLayers; + } D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION_SUPPORT; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE + { + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_KEY_FRAME = 0, + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_INTER_FRAME = 1, + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_INTRA_ONLY_FRAME = 2, + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_SWITCH_FRAME = 3 + } D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS + { + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAG_KEY_FRAME = ( 1 << D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_KEY_FRAME ) , + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAG_INTER_FRAME = ( 1 << D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_INTER_FRAME ) , + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAG_INTRA_ONLY_FRAME = ( 1 << D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_INTRA_ONLY_FRAME ) , + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAG_SWITCH_FRAME = ( 1 << D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_SWITCH_FRAME ) + } D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE + { + D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE_SINGLE_REFERENCE = 0, + D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE_COMPOUND_REFERENCE = 1 + } D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT + { + D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE PredictionMode; + UINT MaxUniqueReferencesPerFrame; + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS SupportedFrameTypes; + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS SupportedReferenceWarpedMotionFlags; + } D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT; + +typedef struct D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION + { + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS FeatureFlags; + UINT OrderHintBitsMinus1; + } D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION; + +typedef struct D3D12_VIDEO_ENCODER_AV1_SEQUENCE_STRUCTURE + { + UINT IntraDistance; + UINT InterFramePeriod; + } D3D12_VIDEO_ENCODER_AV1_SEQUENCE_STRUCTURE; + +typedef struct D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_WARPED_MOTION_INFO + { + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION TransformationType; + INT TransformationMatrix[ 8 ]; + BOOL InvalidAffineSet; + } D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_WARPED_MOTION_INFO; + +typedef struct D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_DESCRIPTOR + { + UINT ReconstructedPictureResourceIndex; + UINT TemporalLayerIndexPlus1; + UINT SpatialLayerIndexPlus1; + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE FrameType; + D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_WARPED_MOTION_INFO WarpedMotionInfo; + UINT OrderHint; + UINT PictureIndex; + } D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_DESCRIPTOR; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAGS + { + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_ERROR_RESILIENT_MODE = 0x1, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_DISABLE_CDF_UPDATE = 0x2, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_PALETTE_ENCODING = 0x4, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_SKIP_MODE = 0x8, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_FRAME_REFERENCE_MOTION_VECTORS = 0x10, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_FORCE_INTEGER_MOTION_VECTORS = 0x20, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ALLOW_INTRA_BLOCK_COPY = 0x40, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_USE_SUPER_RESOLUTION = 0x80, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_DISABLE_FRAME_END_UPDATE_CDF = 0x100, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_FRAME_SEGMENTATION_AUTO = 0x200, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_FRAME_SEGMENTATION_CUSTOM = 0x400, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_WARPED_MOTION = 0x800, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_REDUCED_TX_SET = 0x1000, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_MOTION_MODE_SWITCHABLE = 0x2000, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ALLOW_HIGH_PRECISION_MV = 0x4000 + } D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_AV1_RESTORATION_CONFIG + { + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE FrameRestorationType[ 3 ]; + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE LoopRestorationPixelSize[ 3 ]; + } D3D12_VIDEO_ENCODER_AV1_RESTORATION_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_AV1_SEGMENT_DATA + { + UINT64 EnabledFeatures; + INT64 FeatureValue[ 8 ]; + } D3D12_VIDEO_ENCODER_AV1_SEGMENT_DATA; + +typedef struct D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_CONFIG + { + UINT64 UpdateMap; + UINT64 TemporalUpdate; + UINT64 UpdateData; + UINT64 NumSegments; + D3D12_VIDEO_ENCODER_AV1_SEGMENT_DATA SegmentsData[ 8 ]; + } D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MAP + { + UINT SegmentsMapByteSize; + UINT8 *pSegmentsMap; + } D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MAP; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_CONFIG + { + UINT64 LoopFilterLevel[ 2 ]; + UINT64 LoopFilterLevelU; + UINT64 LoopFilterLevelV; + UINT64 LoopFilterSharpnessLevel; + UINT64 LoopFilterDeltaEnabled; + UINT64 UpdateRefDelta; + INT64 RefDeltas[ 8 ]; + UINT64 UpdateModeDelta; + INT64 ModeDeltas[ 2 ]; + } D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_DELTA_CONFIG + { + UINT64 DeltaLFPresent; + UINT64 DeltaLFMulti; + UINT64 DeltaLFRes; + } D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_DELTA_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_CONFIG + { + UINT64 BaseQIndex; + INT64 YDCDeltaQ; + INT64 UDCDeltaQ; + INT64 UACDeltaQ; + INT64 VDCDeltaQ; + INT64 VACDeltaQ; + UINT64 UsingQMatrix; + UINT64 QMY; + UINT64 QMU; + UINT64 QMV; + } D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_DELTA_CONFIG + { + UINT64 DeltaQPresent; + UINT64 DeltaQRes; + } D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_DELTA_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_AV1_CDEF_CONFIG + { + UINT64 CdefBits; + UINT64 CdefDampingMinus3; + UINT64 CdefYPriStrength[ 8 ]; + UINT64 CdefUVPriStrength[ 8 ]; + UINT64 CdefYSecStrength[ 8 ]; + UINT64 CdefUVSecStrength[ 8 ]; + } D3D12_VIDEO_ENCODER_AV1_CDEF_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA + { + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAGS Flags; + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE FrameType; + D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE CompoundPredictionType; + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS InterpolationFilter; + D3D12_VIDEO_ENCODER_AV1_RESTORATION_CONFIG FrameRestorationConfig; + D3D12_VIDEO_ENCODER_AV1_TX_MODE TxMode; + UINT SuperResDenominator; + UINT OrderHint; + UINT PictureIndex; + UINT TemporalLayerIndexPlus1; + UINT SpatialLayerIndexPlus1; + D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_DESCRIPTOR ReferenceFramesReconPictureDescriptors[ 8 ]; + UINT ReferenceIndices[ 7 ]; + UINT PrimaryRefFrame; + UINT RefreshFrameFlags; + D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_CONFIG LoopFilter; + D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_DELTA_CONFIG LoopFilterDelta; + D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_CONFIG Quantization; + D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_DELTA_CONFIG QuantizationDelta; + D3D12_VIDEO_ENCODER_AV1_CDEF_CONFIG CDEF; + UINT QPMapValuesCount; + _Field_size_full_(QPMapValuesCount) INT16 *pRateControlQPMap; + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_CONFIG CustomSegmentation; + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MAP CustomSegmentsMap; + } D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA; + +typedef struct D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES + { + UINT64 RowCount; + UINT64 ColCount; + UINT64 RowHeights[ 64 ]; + UINT64 ColWidths[ 64 ]; + UINT64 ContextUpdateTileId; + } D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES; + +typedef struct D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES + { + UINT64 CompoundPredictionType; + D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_CONFIG LoopFilter; + D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_DELTA_CONFIG LoopFilterDelta; + D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_CONFIG Quantization; + D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_DELTA_CONFIG QuantizationDelta; + D3D12_VIDEO_ENCODER_AV1_CDEF_CONFIG CDEF; + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_CONFIG SegmentationConfig; + UINT64 PrimaryRefFrame; + UINT64 ReferenceIndices[ 7 ]; + } D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES; + +typedef +enum D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE + { + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_ABSOLUTE_QP_MAP = 0, + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_CQP = 1, + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_CBR = 2, + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_VBR = 3, + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_QVBR = 4 + } D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE; + +typedef +enum D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS + { + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_DELTA_QP = 0x1, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_FRAME_ANALYSIS = 0x2, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_QP_RANGE = 0x4, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_INITIAL_QP = 0x8, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_MAX_FRAME_SIZE = 0x10, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_VBV_SIZES = 0x20, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_EXTENSION1_SUPPORT = 0x40, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_QUALITY_VS_SPEED = 0x80 + } D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP + { + UINT ConstantQP_FullIntracodedFrame; + UINT ConstantQP_InterPredictedFrame_PrevRefOnly; + UINT ConstantQP_InterPredictedFrame_BiDirectionalRef; + } D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP1 + { + UINT ConstantQP_FullIntracodedFrame; + UINT ConstantQP_InterPredictedFrame_PrevRefOnly; + UINT ConstantQP_InterPredictedFrame_BiDirectionalRef; + UINT QualityVsSpeed; + } D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP1; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR + { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetBitRate; + UINT64 VBVCapacity; + UINT64 InitialVBVFullness; + } D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR1 + { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetBitRate; + UINT64 VBVCapacity; + UINT64 InitialVBVFullness; + UINT QualityVsSpeed; + } D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR1; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR + { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetAvgBitRate; + UINT64 PeakBitRate; + UINT64 VBVCapacity; + UINT64 InitialVBVFullness; + } D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR1 + { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetAvgBitRate; + UINT64 PeakBitRate; + UINT64 VBVCapacity; + UINT64 InitialVBVFullness; + UINT QualityVsSpeed; + } D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR1; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR + { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetAvgBitRate; + UINT64 PeakBitRate; + UINT ConstantQualityTarget; + } D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR1 + { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetAvgBitRate; + UINT64 PeakBitRate; + UINT ConstantQualityTarget; + UINT64 VBVCapacity; + UINT64 InitialVBVFullness; + UINT QualityVsSpeed; + } D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR1; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_ABSOLUTE_QP_MAP + { + UINT QualityVsSpeed; + } D3D12_VIDEO_ENCODER_RATE_CONTROL_ABSOLUTE_QP_MAP; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS + { + UINT DataSize; + union + { + const D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP *pConfiguration_CQP; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR *pConfiguration_CBR; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR *pConfiguration_VBR; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR *pConfiguration_QVBR; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP1 *pConfiguration_CQP1; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR1 *pConfiguration_CBR1; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR1 *pConfiguration_VBR1; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR1 *pConfiguration_QVBR1; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_ABSOLUTE_QP_MAP *pConfiguration_AbsoluteQPMap; + } ; + } D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL + { + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE Mode; + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS Flags; + D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS ConfigParams; + DXGI_RATIONAL TargetFrameRate; + } D3D12_VIDEO_ENCODER_RATE_CONTROL; + +typedef +enum D3D12_VIDEO_ENCODER_CODEC + { + D3D12_VIDEO_ENCODER_CODEC_H264 = 0, + D3D12_VIDEO_ENCODER_CODEC_HEVC = 1, + D3D12_VIDEO_ENCODER_CODEC_AV1 = 2 + } D3D12_VIDEO_ENCODER_CODEC; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + BOOL IsSupported; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC; + +typedef +enum D3D12_VIDEO_ENCODER_PROFILE_H264 + { + D3D12_VIDEO_ENCODER_PROFILE_H264_MAIN = 0, + D3D12_VIDEO_ENCODER_PROFILE_H264_HIGH = 1, + D3D12_VIDEO_ENCODER_PROFILE_H264_HIGH_10 = 2 + } D3D12_VIDEO_ENCODER_PROFILE_H264; + +typedef +enum D3D12_VIDEO_ENCODER_PROFILE_HEVC + { + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN = 0, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN10 = 1, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN12 = 2, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN10_422 = 3, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN12_422 = 4, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN_444 = 5, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN10_444 = 6, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN12_444 = 7, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN16_444 = 8 + } D3D12_VIDEO_ENCODER_PROFILE_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_PROFILE_DESC + { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_PROFILE_H264 *pH264Profile; + D3D12_VIDEO_ENCODER_PROFILE_HEVC *pHEVCProfile; + D3D12_VIDEO_ENCODER_AV1_PROFILE *pAV1Profile; + } ; + } D3D12_VIDEO_ENCODER_PROFILE_DESC; + +typedef +enum D3D12_VIDEO_ENCODER_LEVELS_H264 + { + D3D12_VIDEO_ENCODER_LEVELS_H264_1 = 0, + D3D12_VIDEO_ENCODER_LEVELS_H264_1b = 1, + D3D12_VIDEO_ENCODER_LEVELS_H264_11 = 2, + D3D12_VIDEO_ENCODER_LEVELS_H264_12 = 3, + D3D12_VIDEO_ENCODER_LEVELS_H264_13 = 4, + D3D12_VIDEO_ENCODER_LEVELS_H264_2 = 5, + D3D12_VIDEO_ENCODER_LEVELS_H264_21 = 6, + D3D12_VIDEO_ENCODER_LEVELS_H264_22 = 7, + D3D12_VIDEO_ENCODER_LEVELS_H264_3 = 8, + D3D12_VIDEO_ENCODER_LEVELS_H264_31 = 9, + D3D12_VIDEO_ENCODER_LEVELS_H264_32 = 10, + D3D12_VIDEO_ENCODER_LEVELS_H264_4 = 11, + D3D12_VIDEO_ENCODER_LEVELS_H264_41 = 12, + D3D12_VIDEO_ENCODER_LEVELS_H264_42 = 13, + D3D12_VIDEO_ENCODER_LEVELS_H264_5 = 14, + D3D12_VIDEO_ENCODER_LEVELS_H264_51 = 15, + D3D12_VIDEO_ENCODER_LEVELS_H264_52 = 16, + D3D12_VIDEO_ENCODER_LEVELS_H264_6 = 17, + D3D12_VIDEO_ENCODER_LEVELS_H264_61 = 18, + D3D12_VIDEO_ENCODER_LEVELS_H264_62 = 19 + } D3D12_VIDEO_ENCODER_LEVELS_H264; + +typedef +enum D3D12_VIDEO_ENCODER_TIER_HEVC + { + D3D12_VIDEO_ENCODER_TIER_HEVC_MAIN = 0, + D3D12_VIDEO_ENCODER_TIER_HEVC_HIGH = 1 + } D3D12_VIDEO_ENCODER_TIER_HEVC; + +typedef +enum D3D12_VIDEO_ENCODER_LEVELS_HEVC + { + D3D12_VIDEO_ENCODER_LEVELS_HEVC_1 = 0, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_2 = 1, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_21 = 2, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_3 = 3, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_31 = 4, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_4 = 5, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_41 = 6, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_5 = 7, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_51 = 8, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_52 = 9, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_6 = 10, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_61 = 11, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_62 = 12 + } D3D12_VIDEO_ENCODER_LEVELS_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC + { + D3D12_VIDEO_ENCODER_LEVELS_HEVC Level; + D3D12_VIDEO_ENCODER_TIER_HEVC Tier; + } D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_LEVEL_SETTING + { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_LEVELS_H264 *pH264LevelSetting; + D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC *pHEVCLevelSetting; + D3D12_VIDEO_ENCODER_AV1_LEVEL_TIER_CONSTRAINTS *pAV1LevelSetting; + } ; + } D3D12_VIDEO_ENCODER_LEVEL_SETTING; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; + BOOL IsSupported; + D3D12_VIDEO_ENCODER_LEVEL_SETTING MinSupportedLevel; + D3D12_VIDEO_ENCODER_LEVEL_SETTING MaxSupportedLevel; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC + { + UINT Width; + UINT Height; + } D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC + { + UINT WidthRatio; + UINT HeightRatio; + } D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + UINT ResolutionRatiosCount; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + UINT ResolutionRatiosCount; + BOOL IsSupported; + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC MinResolutionSupported; + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC MaxResolutionSupported; + UINT ResolutionWidthMultipleRequirement; + UINT ResolutionHeightMultipleRequirement; + _Field_size_full_(ResolutionRatiosCount) D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC *pResolutionRatios; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; + DXGI_FORMAT Format; + BOOL IsSupported; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE RateControlMode; + BOOL IsSupported; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE; + +typedef +enum D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE + { + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE_NONE = 0, + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE_ROW_BASED = 1 + } D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; + D3D12_VIDEO_ENCODER_LEVEL_SETTING Level; + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE IntraRefreshMode; + BOOL IsSupported; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE; + +typedef +enum D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE + { + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_FULL_FRAME = 0, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_BYTES_PER_SUBREGION = 1, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_SQUARE_UNITS_PER_SUBREGION_ROW_UNALIGNED = 2, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_PARTITIONING_ROWS_PER_SUBREGION = 3, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_PARTITIONING_SUBREGIONS_PER_FRAME = 4, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_GRID_PARTITION = 5, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_CONFIGURABLE_GRID_PARTITION = 6 + } D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; + D3D12_VIDEO_ENCODER_LEVEL_SETTING Level; + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionMode; + BOOL IsSupported; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE; + +typedef +enum D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAGS + { + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_NOT_SPECIFIED = 0x1, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_CODEC_CONSTRAINT = 0x2, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_HARDWARE_CONSTRAINT = 0x4, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_ROWS_COUNT = 0x8, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_COLS_COUNT = 0x10, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_WIDTH = 0x20, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_AREA = 0x40, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_TOTAL_TILES = 0x80 + } D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT + { + BOOL Use128SuperBlocks; + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES TilesConfiguration; + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAGS ValidationFlags; + UINT MinTileRows; + UINT MaxTileRows; + UINT MinTileCols; + UINT MaxTileCols; + UINT MinTileWidth; + UINT MaxTileWidth; + UINT MinTileArea; + UINT MaxTileArea; + UINT TileSizeBytesMinus1; + } D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT; + +typedef struct D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT + { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT *pAV1Support; + } ; + } D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; + D3D12_VIDEO_ENCODER_LEVEL_SETTING Level; + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionMode; + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC FrameResolution; + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT CodecSupport; + BOOL IsSupported; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG; + +typedef +enum D3D12_VIDEO_ENCODER_HEAP_FLAGS + { + D3D12_VIDEO_ENCODER_HEAP_FLAG_NONE = 0 + } D3D12_VIDEO_ENCODER_HEAP_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_HEAP_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_HEAP_DESC + { + UINT NodeMask; + D3D12_VIDEO_ENCODER_HEAP_FLAGS Flags; + D3D12_VIDEO_ENCODER_CODEC EncodeCodec; + D3D12_VIDEO_ENCODER_PROFILE_DESC EncodeProfile; + D3D12_VIDEO_ENCODER_LEVEL_SETTING EncodeLevel; + UINT ResolutionsListCount; + _Field_size_full_(ResolutionsListCount) const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC *pResolutionList; + } D3D12_VIDEO_ENCODER_HEAP_DESC; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE + { + D3D12_VIDEO_ENCODER_HEAP_DESC HeapDesc; + BOOL IsSupported; + UINT64 MemoryPoolL0Size; + UINT64 MemoryPoolL1Size; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE; + +typedef +enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_CABAC_ENCODING_SUPPORT = 0x1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_INTRA_SLICE_CONSTRAINED_ENCODING_SUPPORT = 0x2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_BFRAME_LTR_COMBINED_SUPPORT = 0x4, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_ADAPTIVE_8x8_TRANSFORM_ENCODING_SUPPORT = 0x8, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_DIRECT_SPATIAL_ENCODING_SUPPORT = 0x10, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_DIRECT_TEMPORAL_ENCODING_SUPPORT = 0x20, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_CONSTRAINED_INTRAPREDICTION_SUPPORT = 0x40, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_NUM_REF_IDX_ACTIVE_OVERRIDE_FLAG_SLICE_SUPPORT = 0x80 + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_1_DISABLE_ALL_SLICE_BLOCK_EDGES = 1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_2_DISABLE_SLICE_BOUNDARIES_BLOCKS = 2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_3_USE_TWO_STAGE_DEBLOCKING = 3, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_4_DISABLE_CHROMA_BLOCK_EDGES = 4, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_5_DISABLE_CHROMA_BLOCK_EDGES_AND_LUMA_BOUNDARIES = 5, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_6_DISABLE_CHROMA_BLOCK_EDGES_AND_USE_LUMA_TWO_STAGE_DEBLOCKING = 6 + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES; + +typedef +enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED = ( 1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED ) , + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_1_DISABLE_ALL_SLICE_BLOCK_EDGES = ( 1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_1_DISABLE_ALL_SLICE_BLOCK_EDGES ) , + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_2_DISABLE_SLICE_BOUNDARIES_BLOCKS = ( 1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_2_DISABLE_SLICE_BOUNDARIES_BLOCKS ) , + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_3_USE_TWO_STAGE_DEBLOCKING = ( 1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_3_USE_TWO_STAGE_DEBLOCKING ) , + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_4_DISABLE_CHROMA_BLOCK_EDGES = ( 1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_4_DISABLE_CHROMA_BLOCK_EDGES ) , + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_5_DISABLE_CHROMA_BLOCK_EDGES_AND_LUMA_BOUNDARIES = ( 1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_5_DISABLE_CHROMA_BLOCK_EDGES_AND_LUMA_BOUNDARIES ) , + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_6_DISABLE_CHROMA_BLOCK_EDGES_AND_USE_LUMA_TWO_STAGE_DEBLOCKING = ( 1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_6_DISABLE_CHROMA_BLOCK_EDGES_AND_USE_LUMA_TWO_STAGE_DEBLOCKING ) + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264 + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS SupportFlags; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS DisableDeblockingFilterSupportedModes; + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264; + +typedef +enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_BFRAME_LTR_COMBINED_SUPPORT = 0x1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_INTRA_SLICE_CONSTRAINED_ENCODING_SUPPORT = 0x2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CONSTRAINED_INTRAPREDICTION_SUPPORT = 0x4, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_SAO_FILTER_SUPPORT = 0x8, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_ASYMETRIC_MOTION_PARTITION_SUPPORT = 0x10, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_ASYMETRIC_MOTION_PARTITION_REQUIRED = 0x20, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_SUPPORT = 0x40, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_DISABLING_LOOP_FILTER_ACROSS_SLICES_SUPPORT = 0x80, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_P_FRAMES_IMPLEMENTED_AS_LOW_DELAY_B_FRAMES = 0x100, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_NUM_REF_IDX_ACTIVE_OVERRIDE_FLAG_SLICE_SUPPORT = 0x200, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_ROTATION_ENABLED_SUPPORT = 0x400, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_ROTATION_ENABLED_REQUIRED = 0x800, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_CONTEXT_ENABLED_SUPPORT = 0x1000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_CONTEXT_ENABLED_REQUIRED = 0x2000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_IMPLICIT_RDPCM_ENABLED_SUPPORT = 0x4000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_IMPLICIT_RDPCM_ENABLED_REQUIRED = 0x8000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_EXPLICIT_RDPCM_ENABLED_SUPPORT = 0x10000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_EXPLICIT_RDPCM_ENABLED_REQUIRED = 0x20000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_EXTENDED_PRECISION_PROCESSING_SUPPORT = 0x40000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_EXTENDED_PRECISION_PROCESSING_REQUIRED = 0x80000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_INTRA_SMOOTHING_DISABLED_SUPPORT = 0x100000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_INTRA_SMOOTHING_DISABLED_REQUIRED = 0x200000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_HIGH_PRECISION_OFFSETS_ENABLED_SUPPORT = 0x400000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_HIGH_PRECISION_OFFSETS_ENABLED_REQUIRED = 0x800000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_PERSISTENT_RICE_ADAPTATION_ENABLED_SUPPORT = 0x1000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_PERSISTENT_RICE_ADAPTATION_ENABLED_REQUIRED = 0x2000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CABAC_BYPASS_ALIGNMENT_ENABLED_SUPPORT = 0x4000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CABAC_BYPASS_ALIGNMENT_ENABLED_REQUIRED = 0x8000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CROSS_COMPONENT_PREDICTION_ENABLED_FLAG_SUPPORT = 0x10000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CROSS_COMPONENT_PREDICTION_ENABLED_FLAG_REQUIRED = 0x20000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CHROMA_QP_OFFSET_LIST_ENABLED_FLAG_SUPPORT = 0x40000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CHROMA_QP_OFFSET_LIST_ENABLED_FLAG_REQUIRED = 0x80000000 + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_8x8 = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_16x16 = 1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_32x32 = 2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_64x64 = 3 + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE; + +typedef +enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_4x4 = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_8x8 = 1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_16x16 = 2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_32x32 = 3 + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS SupportFlags; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MinLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MaxLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MinLumaTransformUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MaxLumaTransformUnitSize; + UCHAR max_transform_hierarchy_depth_inter; + UCHAR max_transform_hierarchy_depth_intra; + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC; + +typedef +enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS1 + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG1_NONE = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG1_SEPARATE_COLOUR_PLANE_SUPPORT = 0x1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG1_SEPARATE_COLOUR_PLANE_REQUIRED = 0x2 + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS1; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS1) +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC1 + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS SupportFlags; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MinLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MaxLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MinLumaTransformUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MaxLumaTransformUnitSize; + UCHAR max_transform_hierarchy_depth_inter; + UCHAR max_transform_hierarchy_depth_intra; + UINT allowed_diff_cu_chroma_qp_offset_depth_values; + UINT allowed_log2_sao_offset_scale_luma_values; + UINT allowed_log2_sao_offset_scale_chroma_values; + UINT allowed_log2_max_transform_skip_block_size_minus2_values; + UINT allowed_chroma_qp_offset_list_len_minus1_values; + UINT allowed_cb_qp_offset_list_values[ 6 ]; + UINT allowed_cr_qp_offset_list_values[ 6 ]; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS1 SupportFlags1; + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC1; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT + { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264 *pH264Support; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC *pHEVCSupport; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC1 *pHEVCSupport1; + D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION_SUPPORT *pAV1Support; + } ; + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; + BOOL IsSupported; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT CodecSupportLimits; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264 + { + UINT MaxL0ReferencesForP; + UINT MaxL0ReferencesForB; + UINT MaxL1ReferencesForB; + UINT MaxLongTermReferences; + UINT MaxDPBCapacity; + } D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC + { + UINT MaxL0ReferencesForP; + UINT MaxL0ReferencesForB; + UINT MaxL1ReferencesForB; + UINT MaxLongTermReferences; + UINT MaxDPBCapacity; + } D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT + { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264 *pH264Support; + D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC *pHEVCSupport; + D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT *pAV1Support; + } ; + } D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; + BOOL IsSupported; + D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT PictureSupport; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT; + +typedef +enum D3D12_VIDEO_ENCODER_SUPPORT_FLAGS + { + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_GENERAL_SUPPORT_OK = 0x1, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_RECONFIGURATION_AVAILABLE = 0x2, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RESOLUTION_RECONFIGURATION_AVAILABLE = 0x4, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_VBV_SIZE_CONFIG_AVAILABLE = 0x8, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_FRAME_ANALYSIS_AVAILABLE = 0x10, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RECONSTRUCTED_FRAMES_REQUIRE_TEXTURE_ARRAYS = 0x20, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_DELTA_QP_AVAILABLE = 0x40, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_SUBREGION_LAYOUT_RECONFIGURATION_AVAILABLE = 0x80, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_ADJUSTABLE_QP_RANGE_AVAILABLE = 0x100, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_INITIAL_QP_AVAILABLE = 0x200, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_MAX_FRAME_SIZE_AVAILABLE = 0x400, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_SEQUENCE_GOP_RECONFIGURATION_AVAILABLE = 0x800, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_MOTION_ESTIMATION_PRECISION_MODE_LIMIT_AVAILABLE = 0x1000, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_EXTENSION1_SUPPORT = 0x2000, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_QUALITY_VS_SPEED_AVAILABLE = 0x4000, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_READABLE_RECONSTRUCTED_PICTURE_LAYOUT_AVAILABLE = 0x8000 + } D3D12_VIDEO_ENCODER_SUPPORT_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_SUPPORT_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_USE_CONSTRAINED_INTRAPREDICTION = 0x1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_USE_ADAPTIVE_8x8_TRANSFORM = 0x2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_ENABLE_CABAC_ENCODING = 0x4, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_ALLOW_REQUEST_INTRA_CONSTRAINED_SLICES = 0x8 + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS) +typedef +enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES_DISABLED = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES_TEMPORAL = 1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES_SPATIAL = 2 + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264 + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS ConfigurationFlags; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES DirectModeConfig; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES DisableDeblockingFilterConfig; + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264; + +typedef +enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_DISABLE_LOOP_FILTER_ACROSS_SLICES = 0x1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ALLOW_REQUEST_INTRA_CONSTRAINED_SLICES = 0x2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ENABLE_SAO_FILTER = 0x4, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ENABLE_LONG_TERM_REFERENCES = 0x8, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_USE_ASYMETRIC_MOTION_PARTITION = 0x10, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ENABLE_TRANSFORM_SKIPPING = 0x20, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_USE_CONSTRAINED_INTRAPREDICTION = 0x40, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_TRANSFORM_SKIP_ROTATION = 0x80, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_TRANSFORM_SKIP_CONTEXT = 0x100, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_IMPLICIT_RDPCM = 0x200, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_EXPLICIT_RDPCM = 0x400, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_EXTENDED_PRECISION_PROCESSING = 0x800, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_INTRA_SMOOTHING_DISABLED = 0x1000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_HIGH_PRECISION_OFFSETS = 0x2000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_PERSISTENT_RICE_ADAPTATION = 0x4000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_CABAC_BYPASS_ALIGNMENT = 0x8000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_SEPARATE_COLOUR_PLANE = 0x10000 + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS ConfigurationFlags; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MinLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MaxLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MinLumaTransformUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MaxLumaTransformUnitSize; + UCHAR max_transform_hierarchy_depth_inter; + UCHAR max_transform_hierarchy_depth_intra; + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION + { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264 *pH264Config; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC *pHEVCConfig; + D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION *pAV1Config; + } ; + } D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION; + +typedef struct D3D12_VIDEO_ENCODER_INTRA_REFRESH + { + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE Mode; + UINT IntraRefreshDuration; + } D3D12_VIDEO_ENCODER_INTRA_REFRESH; + +typedef +enum D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE + { + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_MAXIMUM = 0, + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_FULL_PIXEL = 1, + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_HALF_PIXEL = 2, + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_QUARTER_PIXEL = 3, + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_EIGHTH_PIXEL = 4 + } D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS + { + UINT MaxSubregionsNumber; + UINT MaxIntraRefreshFrameDuration; + UINT SubregionBlockPixelsSize; + UINT QPMapRegionPixelsSize; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS; + +typedef +enum D3D12_VIDEO_ENCODER_VALIDATION_FLAGS + { + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_CODEC_NOT_SUPPORTED = 0x1, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_INPUT_FORMAT_NOT_SUPPORTED = 0x8, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_CODEC_CONFIGURATION_NOT_SUPPORTED = 0x10, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_RATE_CONTROL_MODE_NOT_SUPPORTED = 0x20, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_RATE_CONTROL_CONFIGURATION_NOT_SUPPORTED = 0x40, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_INTRA_REFRESH_MODE_NOT_SUPPORTED = 0x80, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_SUBREGION_LAYOUT_MODE_NOT_SUPPORTED = 0x100, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_RESOLUTION_NOT_SUPPORTED_IN_LIST = 0x200, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_GOP_STRUCTURE_NOT_SUPPORTED = 0x800, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_SUBREGION_LAYOUT_DATA_NOT_SUPPORTED = 0x1000, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_QPMAP_NOT_SUPPORTED = 0x2000, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_DIRTY_REGIONS_NOT_SUPPORTED = 0x4000, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_MOTION_SEARCH_NOT_SUPPORTED = 0x8000, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_FRAME_ANALYSIS_NOT_SUPPORTED = 0x10000 + } D3D12_VIDEO_ENCODER_VALIDATION_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_VALIDATION_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264 + { + UINT GOPLength; + UINT PPicturePeriod; + UCHAR pic_order_cnt_type; + UCHAR log2_max_frame_num_minus4; + UCHAR log2_max_pic_order_cnt_lsb_minus4; + } D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264; + +typedef struct D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC + { + UINT GOPLength; + UINT PPicturePeriod; + UCHAR log2_max_pic_order_cnt_lsb_minus4; + } D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE + { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264 *pH264GroupOfPictures; + D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC *pHEVCGroupOfPictures; + D3D12_VIDEO_ENCODER_AV1_SEQUENCE_STRUCTURE *pAV1SequenceStructure; + } ; + } D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION CodecConfiguration; + D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE CodecGopSequence; + D3D12_VIDEO_ENCODER_RATE_CONTROL RateControl; + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE IntraRefresh; + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionFrameEncoding; + UINT ResolutionsListCount; + const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC *pResolutionList; + UINT MaxReferenceFramesInDPB; + D3D12_VIDEO_ENCODER_VALIDATION_FLAGS ValidationFlags; + D3D12_VIDEO_ENCODER_SUPPORT_FLAGS SupportFlags; + D3D12_VIDEO_ENCODER_PROFILE_DESC SuggestedProfile; + D3D12_VIDEO_ENCODER_LEVEL_SETTING SuggestedLevel; + _Field_size_full_(ResolutionsListCount) D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS *pResolutionDependentSupport; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES + { + union + { + UINT MaxBytesPerSlice; + UINT NumberOfCodingUnitsPerSlice; + UINT NumberOfRowsPerSlice; + UINT NumberOfSlicesPerFrame; + } ; + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA + { + UINT DataSize; + union + { + const D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES *pSlicesPartition_H264; + const D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES *pSlicesPartition_HEVC; + const D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES *pTilesPartition_AV1; + } ; + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT1 + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION CodecConfiguration; + D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE CodecGopSequence; + D3D12_VIDEO_ENCODER_RATE_CONTROL RateControl; + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE IntraRefresh; + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionFrameEncoding; + UINT ResolutionsListCount; + const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC *pResolutionList; + UINT MaxReferenceFramesInDPB; + D3D12_VIDEO_ENCODER_VALIDATION_FLAGS ValidationFlags; + D3D12_VIDEO_ENCODER_SUPPORT_FLAGS SupportFlags; + D3D12_VIDEO_ENCODER_PROFILE_DESC SuggestedProfile; + D3D12_VIDEO_ENCODER_LEVEL_SETTING SuggestedLevel; + _Field_size_full_(ResolutionsListCount) D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS *pResolutionDependentSupport; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA SubregionFrameEncodingData; + UINT MaxQualityVsSpeed; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT1; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS + { + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC PictureTargetResolution; + BOOL IsSupported; + UINT CompressedBitstreamBufferAccessAlignment; + UINT EncoderMetadataBufferAccessAlignment; + UINT MaxEncoderOutputMetadataBufferSize; + } D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS; + +typedef +enum D3D12_VIDEO_ENCODER_FLAGS + { + D3D12_VIDEO_ENCODER_FLAG_NONE = 0 + } D3D12_VIDEO_ENCODER_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_DESC + { + UINT NodeMask; + D3D12_VIDEO_ENCODER_FLAGS Flags; + D3D12_VIDEO_ENCODER_CODEC EncodeCodec; + D3D12_VIDEO_ENCODER_PROFILE_DESC EncodeProfile; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION CodecConfiguration; + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE MaxMotionEstimationPrecision; + } D3D12_VIDEO_ENCODER_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0022_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0022_v0_0_s_ifspec; + +#ifndef __ID3D12VideoEncoder_INTERFACE_DEFINED__ +#define __ID3D12VideoEncoder_INTERFACE_DEFINED__ + +/* interface ID3D12VideoEncoder */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoEncoder; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2E0D212D-8DF9-44A6-A770-BB289B182737") + ID3D12VideoEncoder : public ID3D12Pageable + { + public: + virtual UINT STDMETHODCALLTYPE GetNodeMask( void) = 0; + + virtual D3D12_VIDEO_ENCODER_FLAGS STDMETHODCALLTYPE GetEncoderFlags( void) = 0; + + virtual D3D12_VIDEO_ENCODER_CODEC STDMETHODCALLTYPE GetCodec( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodecProfile( + _Inout_ D3D12_VIDEO_ENCODER_PROFILE_DESC dstProfile) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodecConfiguration( + _Inout_ D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION dstCodecConfig) = 0; + + virtual DXGI_FORMAT STDMETHODCALLTYPE GetInputFormat( void) = 0; + + virtual D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE STDMETHODCALLTYPE GetMaxMotionEstimationPrecision( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoEncoderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoEncoder * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoEncoder * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoEncoder * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoEncoder * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoEncoder * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoEncoder * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoEncoder * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoEncoder * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoder, GetNodeMask) + UINT ( STDMETHODCALLTYPE *GetNodeMask )( + ID3D12VideoEncoder * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoder, GetEncoderFlags) + D3D12_VIDEO_ENCODER_FLAGS ( STDMETHODCALLTYPE *GetEncoderFlags )( + ID3D12VideoEncoder * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoder, GetCodec) + D3D12_VIDEO_ENCODER_CODEC ( STDMETHODCALLTYPE *GetCodec )( + ID3D12VideoEncoder * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoder, GetCodecProfile) + HRESULT ( STDMETHODCALLTYPE *GetCodecProfile )( + ID3D12VideoEncoder * This, + _Inout_ D3D12_VIDEO_ENCODER_PROFILE_DESC dstProfile); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoder, GetCodecConfiguration) + HRESULT ( STDMETHODCALLTYPE *GetCodecConfiguration )( + ID3D12VideoEncoder * This, + _Inout_ D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION dstCodecConfig); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoder, GetInputFormat) + DXGI_FORMAT ( STDMETHODCALLTYPE *GetInputFormat )( + ID3D12VideoEncoder * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoder, GetMaxMotionEstimationPrecision) + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE ( STDMETHODCALLTYPE *GetMaxMotionEstimationPrecision )( + ID3D12VideoEncoder * This); + + END_INTERFACE + } ID3D12VideoEncoderVtbl; + + interface ID3D12VideoEncoder + { + CONST_VTBL struct ID3D12VideoEncoderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoEncoder_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoEncoder_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoEncoder_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoEncoder_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoEncoder_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoEncoder_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoEncoder_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoEncoder_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12VideoEncoder_GetNodeMask(This) \ + ( (This)->lpVtbl -> GetNodeMask(This) ) + +#define ID3D12VideoEncoder_GetEncoderFlags(This) \ + ( (This)->lpVtbl -> GetEncoderFlags(This) ) + +#define ID3D12VideoEncoder_GetCodec(This) \ + ( (This)->lpVtbl -> GetCodec(This) ) + +#define ID3D12VideoEncoder_GetCodecProfile(This,dstProfile) \ + ( (This)->lpVtbl -> GetCodecProfile(This,dstProfile) ) + +#define ID3D12VideoEncoder_GetCodecConfiguration(This,dstCodecConfig) \ + ( (This)->lpVtbl -> GetCodecConfiguration(This,dstCodecConfig) ) + +#define ID3D12VideoEncoder_GetInputFormat(This) \ + ( (This)->lpVtbl -> GetInputFormat(This) ) + +#define ID3D12VideoEncoder_GetMaxMotionEstimationPrecision(This) \ + ( (This)->lpVtbl -> GetMaxMotionEstimationPrecision(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoEncoder_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoEncoderHeap_INTERFACE_DEFINED__ +#define __ID3D12VideoEncoderHeap_INTERFACE_DEFINED__ + +/* interface ID3D12VideoEncoderHeap */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoEncoderHeap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22B35D96-876A-44C0-B25E-FB8C9C7F1C4A") + ID3D12VideoEncoderHeap : public ID3D12Pageable + { + public: + virtual UINT STDMETHODCALLTYPE GetNodeMask( void) = 0; + + virtual D3D12_VIDEO_ENCODER_HEAP_FLAGS STDMETHODCALLTYPE GetEncoderHeapFlags( void) = 0; + + virtual D3D12_VIDEO_ENCODER_CODEC STDMETHODCALLTYPE GetCodec( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodecProfile( + _Inout_ D3D12_VIDEO_ENCODER_PROFILE_DESC dstProfile) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodecLevel( + _Inout_ D3D12_VIDEO_ENCODER_LEVEL_SETTING dstLevel) = 0; + + virtual UINT STDMETHODCALLTYPE GetResolutionListCount( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetResolutionList( + const UINT ResolutionsListCount, + _Out_writes_(ResolutionsListCount) D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC *pResolutionList) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoEncoderHeapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoEncoderHeap * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoEncoderHeap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoEncoderHeap * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoEncoderHeap * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoEncoderHeap * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoEncoderHeap * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoEncoderHeap * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoEncoderHeap * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoderHeap, GetNodeMask) + UINT ( STDMETHODCALLTYPE *GetNodeMask )( + ID3D12VideoEncoderHeap * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoderHeap, GetEncoderHeapFlags) + D3D12_VIDEO_ENCODER_HEAP_FLAGS ( STDMETHODCALLTYPE *GetEncoderHeapFlags )( + ID3D12VideoEncoderHeap * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoderHeap, GetCodec) + D3D12_VIDEO_ENCODER_CODEC ( STDMETHODCALLTYPE *GetCodec )( + ID3D12VideoEncoderHeap * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoderHeap, GetCodecProfile) + HRESULT ( STDMETHODCALLTYPE *GetCodecProfile )( + ID3D12VideoEncoderHeap * This, + _Inout_ D3D12_VIDEO_ENCODER_PROFILE_DESC dstProfile); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoderHeap, GetCodecLevel) + HRESULT ( STDMETHODCALLTYPE *GetCodecLevel )( + ID3D12VideoEncoderHeap * This, + _Inout_ D3D12_VIDEO_ENCODER_LEVEL_SETTING dstLevel); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoderHeap, GetResolutionListCount) + UINT ( STDMETHODCALLTYPE *GetResolutionListCount )( + ID3D12VideoEncoderHeap * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncoderHeap, GetResolutionList) + HRESULT ( STDMETHODCALLTYPE *GetResolutionList )( + ID3D12VideoEncoderHeap * This, + const UINT ResolutionsListCount, + _Out_writes_(ResolutionsListCount) D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC *pResolutionList); + + END_INTERFACE + } ID3D12VideoEncoderHeapVtbl; + + interface ID3D12VideoEncoderHeap + { + CONST_VTBL struct ID3D12VideoEncoderHeapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoEncoderHeap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoEncoderHeap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoEncoderHeap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoEncoderHeap_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoEncoderHeap_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoEncoderHeap_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoEncoderHeap_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoEncoderHeap_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + + +#define ID3D12VideoEncoderHeap_GetNodeMask(This) \ + ( (This)->lpVtbl -> GetNodeMask(This) ) + +#define ID3D12VideoEncoderHeap_GetEncoderHeapFlags(This) \ + ( (This)->lpVtbl -> GetEncoderHeapFlags(This) ) + +#define ID3D12VideoEncoderHeap_GetCodec(This) \ + ( (This)->lpVtbl -> GetCodec(This) ) + +#define ID3D12VideoEncoderHeap_GetCodecProfile(This,dstProfile) \ + ( (This)->lpVtbl -> GetCodecProfile(This,dstProfile) ) + +#define ID3D12VideoEncoderHeap_GetCodecLevel(This,dstLevel) \ + ( (This)->lpVtbl -> GetCodecLevel(This,dstLevel) ) + +#define ID3D12VideoEncoderHeap_GetResolutionListCount(This) \ + ( (This)->lpVtbl -> GetResolutionListCount(This) ) + +#define ID3D12VideoEncoderHeap_GetResolutionList(This,ResolutionsListCount,pResolutionList) \ + ( (This)->lpVtbl -> GetResolutionList(This,ResolutionsListCount,pResolutionList) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoEncoderHeap_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoDevice3_INTERFACE_DEFINED__ +#define __ID3D12VideoDevice3_INTERFACE_DEFINED__ + +/* interface ID3D12VideoDevice3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoDevice3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4243ADB4-3A32-4666-973C-0CCC5625DC44") + ID3D12VideoDevice3 : public ID3D12VideoDevice2 + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateVideoEncoder( + _In_ const D3D12_VIDEO_ENCODER_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoEncoder) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoEncoderHeap( + _In_ const D3D12_VIDEO_ENCODER_HEAP_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoEncoderHeap) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoDevice3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoDevice3 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoDevice3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoDevice3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CheckFeatureSupport) + HRESULT ( STDMETHODCALLTYPE *CheckFeatureSupport )( + ID3D12VideoDevice3 * This, + D3D12_FEATURE_VIDEO FeatureVideo, + _Inout_updates_bytes_(FeatureSupportDataSize) void *pFeatureSupportData, + UINT FeatureSupportDataSize); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoDecoder) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )( + ID3D12VideoDevice3 * This, + _In_ const D3D12_VIDEO_DECODER_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoder); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoDecoderHeap) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderHeap )( + ID3D12VideoDevice3 * This, + _In_ const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoderHeap); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + ID3D12VideoDevice3 * This, + UINT NodeMask, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc, + UINT NumInputStreamDescs, + _In_reads_(NumInputStreamDescs) const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoProcessor); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice1, CreateVideoMotionEstimator) + HRESULT ( STDMETHODCALLTYPE *CreateVideoMotionEstimator )( + ID3D12VideoDevice3 * This, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoMotionEstimator); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice1, CreateVideoMotionVectorHeap) + HRESULT ( STDMETHODCALLTYPE *CreateVideoMotionVectorHeap )( + ID3D12VideoDevice3 * This, + _In_ const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoMotionVectorHeap); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice2, CreateVideoDecoder1) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder1 )( + ID3D12VideoDevice3 * This, + _In_ const D3D12_VIDEO_DECODER_DESC *pDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoder); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice2, CreateVideoDecoderHeap1) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoderHeap1 )( + ID3D12VideoDevice3 * This, + _In_ const D3D12_VIDEO_DECODER_HEAP_DESC *pVideoDecoderHeapDesc, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoDecoderHeap); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice2, CreateVideoProcessor1) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor1 )( + ID3D12VideoDevice3 * This, + UINT NodeMask, + _In_ const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc, + UINT NumInputStreamDescs, + _In_reads_(NumInputStreamDescs) const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoProcessor); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice2, CreateVideoExtensionCommand) + HRESULT ( STDMETHODCALLTYPE *CreateVideoExtensionCommand )( + ID3D12VideoDevice3 * This, + _In_ const D3D12_VIDEO_EXTENSION_COMMAND_DESC *pDesc, + _In_reads_bytes_(CreationParametersDataSizeInBytes) const void *pCreationParameters, + SIZE_T CreationParametersDataSizeInBytes, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoExtensionCommand); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice2, ExecuteExtensionCommand) + HRESULT ( STDMETHODCALLTYPE *ExecuteExtensionCommand )( + ID3D12VideoDevice3 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes, + _Out_writes_bytes_(OutputDataSizeInBytes) void *pOutputData, + SIZE_T OutputDataSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice3, CreateVideoEncoder) + HRESULT ( STDMETHODCALLTYPE *CreateVideoEncoder )( + ID3D12VideoDevice3 * This, + _In_ const D3D12_VIDEO_ENCODER_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoEncoder); + + DECLSPEC_XFGVIRT(ID3D12VideoDevice3, CreateVideoEncoderHeap) + HRESULT ( STDMETHODCALLTYPE *CreateVideoEncoderHeap )( + ID3D12VideoDevice3 * This, + _In_ const D3D12_VIDEO_ENCODER_HEAP_DESC *pDesc, + _In_ REFIID riid, + _COM_Outptr_ void **ppVideoEncoderHeap); + + END_INTERFACE + } ID3D12VideoDevice3Vtbl; + + interface ID3D12VideoDevice3 + { + CONST_VTBL struct ID3D12VideoDevice3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoDevice3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoDevice3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoDevice3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoDevice3_CheckFeatureSupport(This,FeatureVideo,pFeatureSupportData,FeatureSupportDataSize) \ + ( (This)->lpVtbl -> CheckFeatureSupport(This,FeatureVideo,pFeatureSupportData,FeatureSupportDataSize) ) + +#define ID3D12VideoDevice3_CreateVideoDecoder(This,pDesc,riid,ppVideoDecoder) \ + ( (This)->lpVtbl -> CreateVideoDecoder(This,pDesc,riid,ppVideoDecoder) ) + +#define ID3D12VideoDevice3_CreateVideoDecoderHeap(This,pVideoDecoderHeapDesc,riid,ppVideoDecoderHeap) \ + ( (This)->lpVtbl -> CreateVideoDecoderHeap(This,pVideoDecoderHeapDesc,riid,ppVideoDecoderHeap) ) + +#define ID3D12VideoDevice3_CreateVideoProcessor(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,riid,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,riid,ppVideoProcessor) ) + + +#define ID3D12VideoDevice3_CreateVideoMotionEstimator(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionEstimator) \ + ( (This)->lpVtbl -> CreateVideoMotionEstimator(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionEstimator) ) + +#define ID3D12VideoDevice3_CreateVideoMotionVectorHeap(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionVectorHeap) \ + ( (This)->lpVtbl -> CreateVideoMotionVectorHeap(This,pDesc,pProtectedResourceSession,riid,ppVideoMotionVectorHeap) ) + + +#define ID3D12VideoDevice3_CreateVideoDecoder1(This,pDesc,pProtectedResourceSession,riid,ppVideoDecoder) \ + ( (This)->lpVtbl -> CreateVideoDecoder1(This,pDesc,pProtectedResourceSession,riid,ppVideoDecoder) ) + +#define ID3D12VideoDevice3_CreateVideoDecoderHeap1(This,pVideoDecoderHeapDesc,pProtectedResourceSession,riid,ppVideoDecoderHeap) \ + ( (This)->lpVtbl -> CreateVideoDecoderHeap1(This,pVideoDecoderHeapDesc,pProtectedResourceSession,riid,ppVideoDecoderHeap) ) + +#define ID3D12VideoDevice3_CreateVideoProcessor1(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,pProtectedResourceSession,riid,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor1(This,NodeMask,pOutputStreamDesc,NumInputStreamDescs,pInputStreamDescs,pProtectedResourceSession,riid,ppVideoProcessor) ) + +#define ID3D12VideoDevice3_CreateVideoExtensionCommand(This,pDesc,pCreationParameters,CreationParametersDataSizeInBytes,pProtectedResourceSession,riid,ppVideoExtensionCommand) \ + ( (This)->lpVtbl -> CreateVideoExtensionCommand(This,pDesc,pCreationParameters,CreationParametersDataSizeInBytes,pProtectedResourceSession,riid,ppVideoExtensionCommand) ) + +#define ID3D12VideoDevice3_ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes,pOutputData,OutputDataSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes,pOutputData,OutputDataSizeInBytes) ) + + +#define ID3D12VideoDevice3_CreateVideoEncoder(This,pDesc,riid,ppVideoEncoder) \ + ( (This)->lpVtbl -> CreateVideoEncoder(This,pDesc,riid,ppVideoEncoder) ) + +#define ID3D12VideoDevice3_CreateVideoEncoderHeap(This,pDesc,riid,ppVideoEncoderHeap) \ + ( (This)->lpVtbl -> CreateVideoEncoderHeap(This,pDesc,riid,ppVideoEncoderHeap) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoDevice3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0025 */ +/* [local] */ + +typedef +enum D3D12_VIDEO_ENCODER_FRAME_TYPE_H264 + { + D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_I_FRAME = 0, + D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_P_FRAME = 1, + D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_B_FRAME = 2, + D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_IDR_FRAME = 3 + } D3D12_VIDEO_ENCODER_FRAME_TYPE_H264; + +typedef struct D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264 + { + UINT ReconstructedPictureResourceIndex; + BOOL IsLongTermReference; + UINT LongTermPictureIdx; + UINT PictureOrderCountNumber; + UINT FrameDecodingOrderNumber; + UINT TemporalLayerIndex; + } D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264; + +typedef +enum D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS + { + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAG_REQUEST_INTRA_CONSTRAINED_SLICES = 0x1, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAG_REQUEST_NUM_REF_IDX_ACTIVE_OVERRIDE_FLAG_SLICE = 0x2 + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION + { + UCHAR memory_management_control_operation; + UINT difference_of_pic_nums_minus1; + UINT long_term_pic_num; + UINT long_term_frame_idx; + UINT max_long_term_frame_idx_plus1; + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION + { + UCHAR modification_of_pic_nums_idc; + UINT abs_diff_pic_num_minus1; + UINT long_term_pic_num; + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264 + { + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS Flags; + D3D12_VIDEO_ENCODER_FRAME_TYPE_H264 FrameType; + UINT pic_parameter_set_id; + UINT idr_pic_id; + UINT PictureOrderCountNumber; + UINT FrameDecodingOrderNumber; + UINT TemporalLayerIndex; + UINT List0ReferenceFramesCount; + _Field_size_full_(List0ReferenceFramesCount) UINT *pList0ReferenceFrames; + UINT List1ReferenceFramesCount; + _Field_size_full_(List1ReferenceFramesCount) UINT *pList1ReferenceFrames; + UINT ReferenceFramesReconPictureDescriptorsCount; + _Field_size_full_(ReferenceFramesReconPictureDescriptorsCount) D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264 *pReferenceFramesReconPictureDescriptors; + UCHAR adaptive_ref_pic_marking_mode_flag; + UINT RefPicMarkingOperationsCommandsCount; + _Field_size_full_(RefPicMarkingOperationsCommandsCount) D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION *pRefPicMarkingOperationsCommands; + UINT List0RefPicModificationsCount; + _Field_size_full_(List0RefPicModificationsCount) D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION *pList0RefPicModifications; + UINT List1RefPicModificationsCount; + _Field_size_full_(List1RefPicModificationsCount) D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION *pList1RefPicModifications; + UINT QPMapValuesCount; + _Field_size_full_(QPMapValuesCount) INT8 *pRateControlQPMap; + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264; + +typedef +enum D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC + { + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_I_FRAME = 0, + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_P_FRAME = 1, + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_B_FRAME = 2, + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_IDR_FRAME = 3 + } D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC + { + UINT ReconstructedPictureResourceIndex; + BOOL IsRefUsedByCurrentPic; + BOOL IsLongTermReference; + UINT PictureOrderCountNumber; + UINT TemporalLayerIndex; + } D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC; + +typedef +enum D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS + { + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_REQUEST_INTRA_CONSTRAINED_SLICES = 0x1, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_REQUEST_NUM_REF_IDX_ACTIVE_OVERRIDE_FLAG_SLICE = 0x2, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_CROSS_COMPONENT_PREDICTION = 0x4, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_CHROMA_QP_OFFSET_LIST = 0x8 + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC + { + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS Flags; + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC FrameType; + UINT slice_pic_parameter_set_id; + UINT PictureOrderCountNumber; + UINT TemporalLayerIndex; + UINT List0ReferenceFramesCount; + _Field_size_full_(List0ReferenceFramesCount) UINT *pList0ReferenceFrames; + UINT List1ReferenceFramesCount; + _Field_size_full_(List1ReferenceFramesCount) UINT *pList1ReferenceFrames; + UINT ReferenceFramesReconPictureDescriptorsCount; + _Field_size_full_(ReferenceFramesReconPictureDescriptorsCount) D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC *pReferenceFramesReconPictureDescriptors; + UINT List0RefPicModificationsCount; + _Field_size_full_(List0RefPicModificationsCount) UINT *pList0RefPicModifications; + UINT List1RefPicModificationsCount; + _Field_size_full_(List1RefPicModificationsCount) UINT *pList1RefPicModifications; + UINT QPMapValuesCount; + _Field_size_full_(QPMapValuesCount) INT8 *pRateControlQPMap; + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC1 + { + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS Flags; + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC FrameType; + UINT slice_pic_parameter_set_id; + UINT PictureOrderCountNumber; + UINT TemporalLayerIndex; + UINT List0ReferenceFramesCount; + _Field_size_full_(List0ReferenceFramesCount) UINT *pList0ReferenceFrames; + UINT List1ReferenceFramesCount; + _Field_size_full_(List1ReferenceFramesCount) UINT *pList1ReferenceFrames; + UINT ReferenceFramesReconPictureDescriptorsCount; + _Field_size_full_(ReferenceFramesReconPictureDescriptorsCount) D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC *pReferenceFramesReconPictureDescriptors; + UINT List0RefPicModificationsCount; + _Field_size_full_(List0RefPicModificationsCount) UINT *pList0RefPicModifications; + UINT List1RefPicModificationsCount; + _Field_size_full_(List1RefPicModificationsCount) UINT *pList1RefPicModifications; + UINT QPMapValuesCount; + _Field_size_full_(QPMapValuesCount) INT8 *pRateControlQPMap; + UCHAR diff_cu_chroma_qp_offset_depth; + UCHAR log2_sao_offset_scale_luma; + UCHAR log2_sao_offset_scale_chroma; + UCHAR log2_max_transform_skip_block_size_minus2; + UCHAR chroma_qp_offset_list_len_minus1; + CHAR cb_qp_offset_list[ 6 ]; + CHAR cr_qp_offset_list[ 6 ]; + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC1; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA + { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264 *pH264PicData; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC *pHEVCPicData; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC1 *pHEVCPicData1; + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA *pAV1PicData; + } ; + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA; + +typedef struct D3D12_VIDEO_ENCODE_REFERENCE_FRAMES + { + UINT NumTexture2Ds; + _Field_size_full_(NumTexture2Ds) ID3D12Resource **ppTexture2Ds; + _Field_size_full_(NumTexture2Ds) UINT *pSubresources; + } D3D12_VIDEO_ENCODE_REFERENCE_FRAMES; + +typedef +enum D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS + { + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAG_USED_AS_REFERENCE_PICTURE = 0x1 + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC + { + UINT IntraRefreshFrameIndex; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS Flags; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA PictureControlCodecData; + D3D12_VIDEO_ENCODE_REFERENCE_FRAMES ReferenceFrames; + } D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC; + +typedef +enum D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS + { + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_RESOLUTION_CHANGE = 0x1, + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_RATE_CONTROL_CHANGE = 0x2, + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_SUBREGION_LAYOUT_CHANGE = 0x4, + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_REQUEST_INTRA_REFRESH = 0x8, + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_GOP_SEQUENCE_CHANGE = 0x10 + } D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC + { + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS Flags; + D3D12_VIDEO_ENCODER_INTRA_REFRESH IntraRefreshConfig; + D3D12_VIDEO_ENCODER_RATE_CONTROL RateControl; + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC PictureTargetResolution; + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SelectedLayoutMode; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA FrameSubregionsLayoutData; + D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE CodecGopSequence; + } D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC; + +typedef struct D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS + { + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC SequenceControlDesc; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC PictureControlDesc; + ID3D12Resource *pInputFrame; + UINT InputFrameSubresource; + UINT CurrentFrameBitstreamMetadataSize; + } D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS; + +typedef struct D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM + { + ID3D12Resource *pBuffer; + UINT64 FrameStartOffset; + } D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM; + +typedef struct D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE + { + ID3D12Resource *pReconstructedPicture; + UINT ReconstructedPictureSubresource; + } D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE; + +typedef struct D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA + { + UINT64 bSize; + UINT64 bStartOffset; + UINT64 bHeaderSize; + } D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA; + +typedef +enum D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS + { + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_NO_ERROR = 0, + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_CODEC_PICTURE_CONTROL_NOT_SUPPORTED = 0x1, + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_SUBREGION_LAYOUT_CONFIGURATION_NOT_SUPPORTED = 0x2, + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_INVALID_REFERENCE_PICTURES = 0x4, + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_RECONFIGURATION_REQUEST_NOT_SUPPORTED = 0x8, + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_INVALID_METADATA_BUFFER_SOURCE = 0x10 + } D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS) +typedef struct D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS + { + UINT64 AverageQP; + UINT64 IntraCodingUnitsCount; + UINT64 InterCodingUnitsCount; + UINT64 SkipCodingUnitsCount; + UINT64 AverageMotionEstimationXDirection; + UINT64 AverageMotionEstimationYDirection; + } D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS; + +typedef struct D3D12_VIDEO_ENCODER_OUTPUT_METADATA + { + UINT64 EncodeErrorFlags; + D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS EncodeStats; + UINT64 EncodedBitstreamWrittenBytesCount; + UINT64 WrittenSubregionsCount; + } D3D12_VIDEO_ENCODER_OUTPUT_METADATA; + +typedef struct D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER + { + ID3D12Resource *pBuffer; + UINT64 Offset; + } D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER; + +typedef struct D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS + { + D3D12_VIDEO_ENCODER_CODEC EncoderCodec; + D3D12_VIDEO_ENCODER_PROFILE_DESC EncoderProfile; + DXGI_FORMAT EncoderInputFormat; + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC EncodedPictureEffectiveResolution; + D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER HWLayoutMetadata; + } D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS; + +typedef struct D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS + { + D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER ResolvedLayoutMetadata; + } D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS; + +typedef struct D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS + { + D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM Bitstream; + D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE ReconstructedPicture; + D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER EncoderOutputMetadata; + } D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0025_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0025_v0_0_s_ifspec; + +#ifndef __ID3D12VideoEncodeCommandList2_INTERFACE_DEFINED__ +#define __ID3D12VideoEncodeCommandList2_INTERFACE_DEFINED__ + +/* interface ID3D12VideoEncodeCommandList2 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoEncodeCommandList2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("895491e2-e701-46a9-9a1f-8d3480ed867a") + ID3D12VideoEncodeCommandList2 : public ID3D12VideoEncodeCommandList1 + { + public: + virtual void STDMETHODCALLTYPE EncodeFrame( + _In_ ID3D12VideoEncoder *pEncoder, + _In_ ID3D12VideoEncoderHeap *pHeap, + _In_ const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS *pInputArguments, + _In_ const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS *pOutputArguments) = 0; + + virtual void STDMETHODCALLTYPE ResolveEncoderOutputMetadata( + _In_ const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS *pInputArguments, + _In_ const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS *pOutputArguments) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoEncodeCommandList2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoEncodeCommandList2 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoEncodeCommandList2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoEncodeCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoEncodeCommandList2 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoEncodeCommandList2 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoEncodeCommandList2 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoEncodeCommandList2 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoEncodeCommandList2 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoEncodeCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoEncodeCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoEncodeCommandList2 * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoEncodeCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoEncodeCommandList2 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoEncodeCommandList2 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoEncodeCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoEncodeCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoEncodeCommandList2 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoEncodeCommandList2 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoEncodeCommandList2 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoEncodeCommandList2 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoEncodeCommandList2 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EstimateMotion) + void ( STDMETHODCALLTYPE *EstimateMotion )( + ID3D12VideoEncodeCommandList2 * This, + _In_ ID3D12VideoMotionEstimator *pMotionEstimator, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *pOutputArguments, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResolveMotionVectorHeap) + void ( STDMETHODCALLTYPE *ResolveMotionVectorHeap )( + ID3D12VideoEncodeCommandList2 * This, + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *pOutputArguments, + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoEncodeCommandList2 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12VideoEncodeCommandList2 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList1, InitializeExtensionCommand) + void ( STDMETHODCALLTYPE *InitializeExtensionCommand )( + ID3D12VideoEncodeCommandList2 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(InitializationParametersSizeInBytes) const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList1, ExecuteExtensionCommand) + void ( STDMETHODCALLTYPE *ExecuteExtensionCommand )( + ID3D12VideoEncodeCommandList2 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList2, EncodeFrame) + void ( STDMETHODCALLTYPE *EncodeFrame )( + ID3D12VideoEncodeCommandList2 * This, + _In_ ID3D12VideoEncoder *pEncoder, + _In_ ID3D12VideoEncoderHeap *pHeap, + _In_ const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS *pInputArguments, + _In_ const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS *pOutputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList2, ResolveEncoderOutputMetadata) + void ( STDMETHODCALLTYPE *ResolveEncoderOutputMetadata )( + ID3D12VideoEncodeCommandList2 * This, + _In_ const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS *pInputArguments, + _In_ const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS *pOutputArguments); + + END_INTERFACE + } ID3D12VideoEncodeCommandList2Vtbl; + + interface ID3D12VideoEncodeCommandList2 + { + CONST_VTBL struct ID3D12VideoEncodeCommandList2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoEncodeCommandList2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoEncodeCommandList2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoEncodeCommandList2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoEncodeCommandList2_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoEncodeCommandList2_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoEncodeCommandList2_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoEncodeCommandList2_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoEncodeCommandList2_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoEncodeCommandList2_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoEncodeCommandList2_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoEncodeCommandList2_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoEncodeCommandList2_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoEncodeCommandList2_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoEncodeCommandList2_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoEncodeCommandList2_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoEncodeCommandList2_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoEncodeCommandList2_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoEncodeCommandList2_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoEncodeCommandList2_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoEncodeCommandList2_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoEncodeCommandList2_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoEncodeCommandList2_EstimateMotion(This,pMotionEstimator,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> EstimateMotion(This,pMotionEstimator,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoEncodeCommandList2_ResolveMotionVectorHeap(This,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> ResolveMotionVectorHeap(This,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoEncodeCommandList2_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + +#define ID3D12VideoEncodeCommandList2_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + + +#define ID3D12VideoEncodeCommandList2_InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) \ + ( (This)->lpVtbl -> InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) ) + +#define ID3D12VideoEncodeCommandList2_ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) ) + + +#define ID3D12VideoEncodeCommandList2_EncodeFrame(This,pEncoder,pHeap,pInputArguments,pOutputArguments) \ + ( (This)->lpVtbl -> EncodeFrame(This,pEncoder,pHeap,pInputArguments,pOutputArguments) ) + +#define ID3D12VideoEncodeCommandList2_ResolveEncoderOutputMetadata(This,pInputArguments,pOutputArguments) \ + ( (This)->lpVtbl -> ResolveEncoderOutputMetadata(This,pInputArguments,pOutputArguments) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoEncodeCommandList2_INTERFACE_DEFINED__ */ + + +#ifndef __ID3D12VideoEncodeCommandList3_INTERFACE_DEFINED__ +#define __ID3D12VideoEncodeCommandList3_INTERFACE_DEFINED__ + +/* interface ID3D12VideoEncodeCommandList3 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D12VideoEncodeCommandList3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7f027b22-1515-4e85-aa0d-026486580576") + ID3D12VideoEncodeCommandList3 : public ID3D12VideoEncodeCommandList2 + { + public: + virtual void STDMETHODCALLTYPE Barrier( + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D12VideoEncodeCommandList3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D12VideoEncodeCommandList3 * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D12VideoEncodeCommandList3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D12VideoEncodeCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12Object, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + ID3D12VideoEncodeCommandList3 * This, + _In_ REFGUID guid, + _Inout_ UINT *pDataSize, + _Out_writes_bytes_opt_( *pDataSize ) void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateData) + HRESULT ( STDMETHODCALLTYPE *SetPrivateData )( + ID3D12VideoEncodeCommandList3 * This, + _In_ REFGUID guid, + _In_ UINT DataSize, + _In_reads_bytes_opt_( DataSize ) const void *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetPrivateDataInterface) + HRESULT ( STDMETHODCALLTYPE *SetPrivateDataInterface )( + ID3D12VideoEncodeCommandList3 * This, + _In_ REFGUID guid, + _In_opt_ const IUnknown *pData); + + DECLSPEC_XFGVIRT(ID3D12Object, SetName) + HRESULT ( STDMETHODCALLTYPE *SetName )( + ID3D12VideoEncodeCommandList3 * This, + _In_z_ LPCWSTR Name); + + DECLSPEC_XFGVIRT(ID3D12DeviceChild, GetDevice) + HRESULT ( STDMETHODCALLTYPE *GetDevice )( + ID3D12VideoEncodeCommandList3 * This, + REFIID riid, + _COM_Outptr_opt_ void **ppvDevice); + + DECLSPEC_XFGVIRT(ID3D12CommandList, GetType) + D3D12_COMMAND_LIST_TYPE ( STDMETHODCALLTYPE *GetType )( + ID3D12VideoEncodeCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ID3D12VideoEncodeCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + ID3D12VideoEncodeCommandList3 * This, + _In_ ID3D12CommandAllocator *pAllocator); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ClearState) + void ( STDMETHODCALLTYPE *ClearState )( + ID3D12VideoEncodeCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResourceBarrier) + void ( STDMETHODCALLTYPE *ResourceBarrier )( + ID3D12VideoEncodeCommandList3 * This, + _In_ UINT NumBarriers, + _In_reads_(NumBarriers) const D3D12_RESOURCE_BARRIER *pBarriers); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, DiscardResource) + void ( STDMETHODCALLTYPE *DiscardResource )( + ID3D12VideoEncodeCommandList3 * This, + _In_ ID3D12Resource *pResource, + _In_opt_ const D3D12_DISCARD_REGION *pRegion); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, BeginQuery) + void ( STDMETHODCALLTYPE *BeginQuery )( + ID3D12VideoEncodeCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EndQuery) + void ( STDMETHODCALLTYPE *EndQuery )( + ID3D12VideoEncodeCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT Index); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResolveQueryData) + void ( STDMETHODCALLTYPE *ResolveQueryData )( + ID3D12VideoEncodeCommandList3 * This, + _In_ ID3D12QueryHeap *pQueryHeap, + _In_ D3D12_QUERY_TYPE Type, + _In_ UINT StartIndex, + _In_ UINT NumQueries, + _In_ ID3D12Resource *pDestinationBuffer, + _In_ UINT64 AlignedDestinationBufferOffset); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetPredication) + void ( STDMETHODCALLTYPE *SetPredication )( + ID3D12VideoEncodeCommandList3 * This, + _In_opt_ ID3D12Resource *pBuffer, + _In_ UINT64 AlignedBufferOffset, + _In_ D3D12_PREDICATION_OP Operation); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetMarker) + void ( STDMETHODCALLTYPE *SetMarker )( + ID3D12VideoEncodeCommandList3 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, BeginEvent) + void ( STDMETHODCALLTYPE *BeginEvent )( + ID3D12VideoEncodeCommandList3 * This, + UINT Metadata, + _In_reads_bytes_opt_(Size) const void *pData, + UINT Size); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EndEvent) + void ( STDMETHODCALLTYPE *EndEvent )( + ID3D12VideoEncodeCommandList3 * This); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, EstimateMotion) + void ( STDMETHODCALLTYPE *EstimateMotion )( + ID3D12VideoEncodeCommandList3 * This, + _In_ ID3D12VideoMotionEstimator *pMotionEstimator, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT *pOutputArguments, + _In_ const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, ResolveMotionVectorHeap) + void ( STDMETHODCALLTYPE *ResolveMotionVectorHeap )( + ID3D12VideoEncodeCommandList3 * This, + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT *pOutputArguments, + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT *pInputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, WriteBufferImmediate) + void ( STDMETHODCALLTYPE *WriteBufferImmediate )( + ID3D12VideoEncodeCommandList3 * This, + UINT Count, + _In_reads_(Count) const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + _In_reads_opt_(Count) const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList, SetProtectedResourceSession) + void ( STDMETHODCALLTYPE *SetProtectedResourceSession )( + ID3D12VideoEncodeCommandList3 * This, + _In_opt_ ID3D12ProtectedResourceSession *pProtectedResourceSession); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList1, InitializeExtensionCommand) + void ( STDMETHODCALLTYPE *InitializeExtensionCommand )( + ID3D12VideoEncodeCommandList3 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(InitializationParametersSizeInBytes) const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList1, ExecuteExtensionCommand) + void ( STDMETHODCALLTYPE *ExecuteExtensionCommand )( + ID3D12VideoEncodeCommandList3 * This, + _In_ ID3D12VideoExtensionCommand *pExtensionCommand, + _In_reads_bytes_(ExecutionParametersSizeInBytes) const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList2, EncodeFrame) + void ( STDMETHODCALLTYPE *EncodeFrame )( + ID3D12VideoEncodeCommandList3 * This, + _In_ ID3D12VideoEncoder *pEncoder, + _In_ ID3D12VideoEncoderHeap *pHeap, + _In_ const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS *pInputArguments, + _In_ const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS *pOutputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList2, ResolveEncoderOutputMetadata) + void ( STDMETHODCALLTYPE *ResolveEncoderOutputMetadata )( + ID3D12VideoEncodeCommandList3 * This, + _In_ const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS *pInputArguments, + _In_ const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS *pOutputArguments); + + DECLSPEC_XFGVIRT(ID3D12VideoEncodeCommandList3, Barrier) + void ( STDMETHODCALLTYPE *Barrier )( + ID3D12VideoEncodeCommandList3 * This, + UINT32 NumBarrierGroups, + _In_reads_(NumBarrierGroups) const D3D12_BARRIER_GROUP *pBarrierGroups); + + END_INTERFACE + } ID3D12VideoEncodeCommandList3Vtbl; + + interface ID3D12VideoEncodeCommandList3 + { + CONST_VTBL struct ID3D12VideoEncodeCommandList3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D12VideoEncodeCommandList3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D12VideoEncodeCommandList3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D12VideoEncodeCommandList3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D12VideoEncodeCommandList3_GetPrivateData(This,guid,pDataSize,pData) \ + ( (This)->lpVtbl -> GetPrivateData(This,guid,pDataSize,pData) ) + +#define ID3D12VideoEncodeCommandList3_SetPrivateData(This,guid,DataSize,pData) \ + ( (This)->lpVtbl -> SetPrivateData(This,guid,DataSize,pData) ) + +#define ID3D12VideoEncodeCommandList3_SetPrivateDataInterface(This,guid,pData) \ + ( (This)->lpVtbl -> SetPrivateDataInterface(This,guid,pData) ) + +#define ID3D12VideoEncodeCommandList3_SetName(This,Name) \ + ( (This)->lpVtbl -> SetName(This,Name) ) + + +#define ID3D12VideoEncodeCommandList3_GetDevice(This,riid,ppvDevice) \ + ( (This)->lpVtbl -> GetDevice(This,riid,ppvDevice) ) + + +#define ID3D12VideoEncodeCommandList3_GetType(This) \ + ( (This)->lpVtbl -> GetType(This) ) + + +#define ID3D12VideoEncodeCommandList3_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ID3D12VideoEncodeCommandList3_Reset(This,pAllocator) \ + ( (This)->lpVtbl -> Reset(This,pAllocator) ) + +#define ID3D12VideoEncodeCommandList3_ClearState(This) \ + ( (This)->lpVtbl -> ClearState(This) ) + +#define ID3D12VideoEncodeCommandList3_ResourceBarrier(This,NumBarriers,pBarriers) \ + ( (This)->lpVtbl -> ResourceBarrier(This,NumBarriers,pBarriers) ) + +#define ID3D12VideoEncodeCommandList3_DiscardResource(This,pResource,pRegion) \ + ( (This)->lpVtbl -> DiscardResource(This,pResource,pRegion) ) + +#define ID3D12VideoEncodeCommandList3_BeginQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> BeginQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoEncodeCommandList3_EndQuery(This,pQueryHeap,Type,Index) \ + ( (This)->lpVtbl -> EndQuery(This,pQueryHeap,Type,Index) ) + +#define ID3D12VideoEncodeCommandList3_ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) \ + ( (This)->lpVtbl -> ResolveQueryData(This,pQueryHeap,Type,StartIndex,NumQueries,pDestinationBuffer,AlignedDestinationBufferOffset) ) + +#define ID3D12VideoEncodeCommandList3_SetPredication(This,pBuffer,AlignedBufferOffset,Operation) \ + ( (This)->lpVtbl -> SetPredication(This,pBuffer,AlignedBufferOffset,Operation) ) + +#define ID3D12VideoEncodeCommandList3_SetMarker(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> SetMarker(This,Metadata,pData,Size) ) + +#define ID3D12VideoEncodeCommandList3_BeginEvent(This,Metadata,pData,Size) \ + ( (This)->lpVtbl -> BeginEvent(This,Metadata,pData,Size) ) + +#define ID3D12VideoEncodeCommandList3_EndEvent(This) \ + ( (This)->lpVtbl -> EndEvent(This) ) + +#define ID3D12VideoEncodeCommandList3_EstimateMotion(This,pMotionEstimator,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> EstimateMotion(This,pMotionEstimator,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoEncodeCommandList3_ResolveMotionVectorHeap(This,pOutputArguments,pInputArguments) \ + ( (This)->lpVtbl -> ResolveMotionVectorHeap(This,pOutputArguments,pInputArguments) ) + +#define ID3D12VideoEncodeCommandList3_WriteBufferImmediate(This,Count,pParams,pModes) \ + ( (This)->lpVtbl -> WriteBufferImmediate(This,Count,pParams,pModes) ) + +#define ID3D12VideoEncodeCommandList3_SetProtectedResourceSession(This,pProtectedResourceSession) \ + ( (This)->lpVtbl -> SetProtectedResourceSession(This,pProtectedResourceSession) ) + + +#define ID3D12VideoEncodeCommandList3_InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) \ + ( (This)->lpVtbl -> InitializeExtensionCommand(This,pExtensionCommand,pInitializationParameters,InitializationParametersSizeInBytes) ) + +#define ID3D12VideoEncodeCommandList3_ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) \ + ( (This)->lpVtbl -> ExecuteExtensionCommand(This,pExtensionCommand,pExecutionParameters,ExecutionParametersSizeInBytes) ) + + +#define ID3D12VideoEncodeCommandList3_EncodeFrame(This,pEncoder,pHeap,pInputArguments,pOutputArguments) \ + ( (This)->lpVtbl -> EncodeFrame(This,pEncoder,pHeap,pInputArguments,pOutputArguments) ) + +#define ID3D12VideoEncodeCommandList3_ResolveEncoderOutputMetadata(This,pInputArguments,pOutputArguments) \ + ( (This)->lpVtbl -> ResolveEncoderOutputMetadata(This,pInputArguments,pOutputArguments) ) + + +#define ID3D12VideoEncodeCommandList3_Barrier(This,NumBarrierGroups,pBarrierGroups) \ + ( (This)->lpVtbl -> Barrier(This,NumBarrierGroups,pBarrierGroups) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D12VideoEncodeCommandList3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3d12video_0000_0027 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion +DEFINE_GUID(IID_ID3D12VideoDecoderHeap,0x0946B7C9,0xEBF6,0x4047,0xBB,0x73,0x86,0x83,0xE2,0x7D,0xBB,0x1F); +DEFINE_GUID(IID_ID3D12VideoDevice,0x1F052807,0x0B46,0x4ACC,0x8A,0x89,0x36,0x4F,0x79,0x37,0x18,0xA4); +DEFINE_GUID(IID_ID3D12VideoDecoder,0xC59B6BDC,0x7720,0x4074,0xA1,0x36,0x17,0xA1,0x56,0x03,0x74,0x70); +DEFINE_GUID(IID_ID3D12VideoProcessor,0x304FDB32,0xBEDE,0x410A,0x85,0x45,0x94,0x3A,0xC6,0xA4,0x61,0x38); +DEFINE_GUID(IID_ID3D12VideoDecodeCommandList,0x3B60536E,0xAD29,0x4E64,0xA2,0x69,0xF8,0x53,0x83,0x7E,0x5E,0x53); +DEFINE_GUID(IID_ID3D12VideoProcessCommandList,0xAEB2543A,0x167F,0x4682,0xAC,0xC8,0xD1,0x59,0xED,0x4A,0x62,0x09); +DEFINE_GUID(IID_ID3D12VideoDecodeCommandList1,0xD52F011B,0xB56E,0x453C,0xA0,0x5A,0xA7,0xF3,0x11,0xC8,0xF4,0x72); +DEFINE_GUID(IID_ID3D12VideoProcessCommandList1,0x542C5C4D,0x7596,0x434F,0x8C,0x93,0x4E,0xFA,0x67,0x66,0xF2,0x67); +DEFINE_GUID(IID_ID3D12VideoMotionEstimator,0x33FDAE0E,0x098B,0x428F,0x87,0xBB,0x34,0xB6,0x95,0xDE,0x08,0xF8); +DEFINE_GUID(IID_ID3D12VideoMotionVectorHeap,0x5BE17987,0x743A,0x4061,0x83,0x4B,0x23,0xD2,0x2D,0xAE,0xA5,0x05); +DEFINE_GUID(IID_ID3D12VideoDevice1,0x981611AD,0xA144,0x4C83,0x98,0x90,0xF3,0x0E,0x26,0xD6,0x58,0xAB); +DEFINE_GUID(IID_ID3D12VideoEncodeCommandList,0x8455293A,0x0CBD,0x4831,0x9B,0x39,0xFB,0xDB,0xAB,0x72,0x47,0x23); +DEFINE_GUID(IID_ID3D12VideoDecoder1,0x79A2E5FB,0xCCD2,0x469A,0x9F,0xDE,0x19,0x5D,0x10,0x95,0x1F,0x7E); +DEFINE_GUID(IID_ID3D12VideoDecoderHeap1,0xDA1D98C5,0x539F,0x41B2,0xBF,0x6B,0x11,0x98,0xA0,0x3B,0x6D,0x26); +DEFINE_GUID(IID_ID3D12VideoProcessor1,0xF3CFE615,0x553F,0x425C,0x86,0xD8,0xEE,0x8C,0x1B,0x1F,0xB0,0x1C); +DEFINE_GUID(IID_ID3D12VideoExtensionCommand,0x554E41E8,0xAE8E,0x4A8C,0xB7,0xD2,0x5B,0x4F,0x27,0x4A,0x30,0xE4); +DEFINE_GUID(IID_ID3D12VideoDevice2,0xF019AC49,0xF838,0x4A95,0x9B,0x17,0x57,0x94,0x37,0xC8,0xF5,0x13); +DEFINE_GUID(IID_ID3D12VideoDecodeCommandList2,0x6e120880,0xc114,0x4153,0x80,0x36,0xd2,0x47,0x05,0x1e,0x17,0x29); +DEFINE_GUID(IID_ID3D12VideoDecodeCommandList3,0x2aee8c37,0x9562,0x42da,0x8a,0xbf,0x61,0xef,0xeb,0x2e,0x45,0x13); +DEFINE_GUID(IID_ID3D12VideoProcessCommandList2,0xdb525ae4,0x6ad6,0x473c,0xba,0xa7,0x59,0xb2,0xe3,0x70,0x82,0xe4); +DEFINE_GUID(IID_ID3D12VideoProcessCommandList3,0x1a0a4ca4,0x9f08,0x40ce,0x95,0x58,0xb4,0x11,0xfd,0x26,0x66,0xff); +DEFINE_GUID(IID_ID3D12VideoEncodeCommandList1,0x94971eca,0x2bdb,0x4769,0x88,0xcf,0x36,0x75,0xea,0x75,0x7e,0xbc); +DEFINE_GUID(IID_ID3D12VideoEncoder,0x2E0D212D,0x8DF9,0x44A6,0xA7,0x70,0xBB,0x28,0x9B,0x18,0x27,0x37); +DEFINE_GUID(IID_ID3D12VideoEncoderHeap,0x22B35D96,0x876A,0x44C0,0xB2,0x5E,0xFB,0x8C,0x9C,0x7F,0x1C,0x4A); +DEFINE_GUID(IID_ID3D12VideoDevice3,0x4243ADB4,0x3A32,0x4666,0x97,0x3C,0x0C,0xCC,0x56,0x25,0xDC,0x44); +DEFINE_GUID(IID_ID3D12VideoEncodeCommandList2,0x895491e2,0xe701,0x46a9,0x9a,0x1f,0x8d,0x34,0x80,0xed,0x86,0x7a); +DEFINE_GUID(IID_ID3D12VideoEncodeCommandList3,0x7f027b22,0x1515,0x4e85,0xaa,0x0d,0x02,0x64,0x86,0x58,0x05,0x76); + + +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0027_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3d12video_0000_0027_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12video.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12video.idl new file mode 100644 index 0000000000000000000000000000000000000000..0770b04844d73345641d78f88a574ca2413e32e5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d12video.idl @@ -0,0 +1,3173 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ +import "oaidl.idl"; +import "ocidl.idl"; + +import "dxgicommon.idl"; +import "d3d12.idl"; + +cpp_quote("#include ") + +#pragma region App Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)") + +typedef enum D3D12_VIDEO_FIELD_TYPE +{ + D3D12_VIDEO_FIELD_TYPE_NONE = 0, + D3D12_VIDEO_FIELD_TYPE_INTERLACED_TOP_FIELD_FIRST = 1, + D3D12_VIDEO_FIELD_TYPE_INTERLACED_BOTTOM_FIELD_FIRST = 2, +} D3D12_VIDEO_FIELD_TYPE; + +typedef enum D3D12_VIDEO_FRAME_STEREO_FORMAT +{ + D3D12_VIDEO_FRAME_STEREO_FORMAT_NONE = 0, + D3D12_VIDEO_FRAME_STEREO_FORMAT_MONO = 1, + D3D12_VIDEO_FRAME_STEREO_FORMAT_HORIZONTAL = 2, + D3D12_VIDEO_FRAME_STEREO_FORMAT_VERTICAL = 3, + D3D12_VIDEO_FRAME_STEREO_FORMAT_SEPARATE = 4, +} D3D12_VIDEO_FRAME_STEREO_FORMAT; + +typedef struct D3D12_VIDEO_FORMAT +{ + DXGI_FORMAT Format; + DXGI_COLOR_SPACE_TYPE ColorSpace; +} D3D12_VIDEO_FORMAT; + +typedef struct D3D12_VIDEO_SAMPLE +{ + UINT Width; + UINT Height; + D3D12_VIDEO_FORMAT Format; +} D3D12_VIDEO_SAMPLE; + +typedef enum D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE +{ + D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_NONE = 0, + D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE_FIELD_BASED = 1, +} D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE; + +typedef enum D3D12_FEATURE_VIDEO +{ + D3D12_FEATURE_VIDEO_DECODE_SUPPORT = 0, + D3D12_FEATURE_VIDEO_DECODE_PROFILES = 1, + D3D12_FEATURE_VIDEO_DECODE_FORMATS = 2, + D3D12_FEATURE_VIDEO_DECODE_CONVERSION_SUPPORT = 3, + D3D12_FEATURE_VIDEO_PROCESS_SUPPORT = 5, + D3D12_FEATURE_VIDEO_PROCESS_MAX_INPUT_STREAMS = 6, + D3D12_FEATURE_VIDEO_PROCESS_REFERENCE_INFO = 7, + D3D12_FEATURE_VIDEO_DECODER_HEAP_SIZE = 8, + D3D12_FEATURE_VIDEO_PROCESSOR_SIZE = 9, + D3D12_FEATURE_VIDEO_DECODE_PROFILE_COUNT = 10, + D3D12_FEATURE_VIDEO_DECODE_FORMAT_COUNT = 11, + D3D12_FEATURE_VIDEO_ARCHITECTURE = 17, + D3D12_FEATURE_VIDEO_DECODE_HISTOGRAM = 18, + D3D12_FEATURE_VIDEO_FEATURE_AREA_SUPPORT = 19, + D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR = 20, + D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR_SIZE = 21, + D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_COUNT = 22, + D3D12_FEATURE_VIDEO_EXTENSION_COMMANDS = 23, + D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT = 24, + D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_PARAMETERS = 25, + D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_SUPPORT = 26, + D3D12_FEATURE_VIDEO_EXTENSION_COMMAND_SIZE = 27, + D3D12_FEATURE_VIDEO_DECODE_PROTECTED_RESOURCES = 28, + D3D12_FEATURE_VIDEO_PROCESS_PROTECTED_RESOURCES = 29, + D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES = 30, + D3D12_FEATURE_VIDEO_DECODER_HEAP_SIZE1 = 31, + D3D12_FEATURE_VIDEO_PROCESSOR_SIZE1 = 32, + D3D12_FEATURE_VIDEO_ENCODER_CODEC = 33, + D3D12_FEATURE_VIDEO_ENCODER_PROFILE_LEVEL = 34, + D3D12_FEATURE_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT = 35, + D3D12_FEATURE_VIDEO_ENCODER_OUTPUT_RESOLUTION = 36, + D3D12_FEATURE_VIDEO_ENCODER_INPUT_FORMAT = 37, + D3D12_FEATURE_VIDEO_ENCODER_RATE_CONTROL_MODE = 38, + D3D12_FEATURE_VIDEO_ENCODER_INTRA_REFRESH_MODE = 39, + D3D12_FEATURE_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE = 40, + D3D12_FEATURE_VIDEO_ENCODER_HEAP_SIZE = 41, + D3D12_FEATURE_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT = 42, + D3D12_FEATURE_VIDEO_ENCODER_SUPPORT = 43, + D3D12_FEATURE_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT = 44, + D3D12_FEATURE_VIDEO_ENCODER_RESOURCE_REQUIREMENTS = 45, + D3D12_FEATURE_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG = 46, + D3D12_FEATURE_VIDEO_ENCODER_SUPPORT1 = 47, + +} D3D12_FEATURE_VIDEO; + +typedef enum D3D12_BITSTREAM_ENCRYPTION_TYPE +{ + D3D12_BITSTREAM_ENCRYPTION_TYPE_NONE = 0, +} D3D12_BITSTREAM_ENCRYPTION_TYPE; + +typedef struct D3D12_VIDEO_DECODE_CONFIGURATION +{ + GUID DecodeProfile; + D3D12_BITSTREAM_ENCRYPTION_TYPE BitstreamEncryption; + D3D12_VIDEO_FRAME_CODED_INTERLACE_TYPE InterlaceType; +} D3D12_VIDEO_DECODE_CONFIGURATION; + +typedef struct D3D12_VIDEO_DECODER_DESC +{ + UINT NodeMask; + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; +} D3D12_VIDEO_DECODER_DESC; + +typedef struct D3D12_VIDEO_DECODER_HEAP_DESC +{ + UINT NodeMask; + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; + UINT DecodeWidth; + UINT DecodeHeight; + DXGI_FORMAT Format; + DXGI_RATIONAL FrameRate; + UINT BitRate; + UINT MaxDecodePictureBufferCount; +} D3D12_VIDEO_DECODER_HEAP_DESC; + +typedef struct D3D12_VIDEO_SIZE_RANGE +{ + UINT MaxWidth; + UINT MaxHeight; + UINT MinWidth; + UINT MinHeight; +} D3D12_VIDEO_SIZE_RANGE; + +typedef enum D3D12_VIDEO_PROCESS_FILTER +{ + D3D12_VIDEO_PROCESS_FILTER_BRIGHTNESS = 0, + D3D12_VIDEO_PROCESS_FILTER_CONTRAST = 1, + D3D12_VIDEO_PROCESS_FILTER_HUE = 2, + D3D12_VIDEO_PROCESS_FILTER_SATURATION = 3, + D3D12_VIDEO_PROCESS_FILTER_NOISE_REDUCTION = 4, + D3D12_VIDEO_PROCESS_FILTER_EDGE_ENHANCEMENT = 5, + D3D12_VIDEO_PROCESS_FILTER_ANAMORPHIC_SCALING = 6, + D3D12_VIDEO_PROCESS_FILTER_STEREO_ADJUSTMENT = 7, +} D3D12_VIDEO_PROCESS_FILTER; + +typedef enum D3D12_VIDEO_PROCESS_FILTER_FLAGS +{ + D3D12_VIDEO_PROCESS_FILTER_FLAG_NONE = 0x0, + D3D12_VIDEO_PROCESS_FILTER_FLAG_BRIGHTNESS = (1 << D3D12_VIDEO_PROCESS_FILTER_BRIGHTNESS), + D3D12_VIDEO_PROCESS_FILTER_FLAG_CONTRAST = (1 << D3D12_VIDEO_PROCESS_FILTER_CONTRAST), + D3D12_VIDEO_PROCESS_FILTER_FLAG_HUE = (1 << D3D12_VIDEO_PROCESS_FILTER_HUE), + D3D12_VIDEO_PROCESS_FILTER_FLAG_SATURATION = (1 << D3D12_VIDEO_PROCESS_FILTER_SATURATION), + D3D12_VIDEO_PROCESS_FILTER_FLAG_NOISE_REDUCTION = (1 << D3D12_VIDEO_PROCESS_FILTER_NOISE_REDUCTION), + D3D12_VIDEO_PROCESS_FILTER_FLAG_EDGE_ENHANCEMENT = (1 << D3D12_VIDEO_PROCESS_FILTER_EDGE_ENHANCEMENT), + D3D12_VIDEO_PROCESS_FILTER_FLAG_ANAMORPHIC_SCALING = (1 << D3D12_VIDEO_PROCESS_FILTER_ANAMORPHIC_SCALING), + D3D12_VIDEO_PROCESS_FILTER_FLAG_STEREO_ADJUSTMENT = (1 << D3D12_VIDEO_PROCESS_FILTER_STEREO_ADJUSTMENT), + +} D3D12_VIDEO_PROCESS_FILTER_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_FILTER_FLAGS )") + +typedef enum D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS +{ + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_NONE = 0x0, + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_BOB = 0x1, + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAG_CUSTOM = 0x80000000, + +} D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS )") + +typedef struct D3D12_VIDEO_PROCESS_ALPHA_BLENDING +{ + BOOL Enable; + FLOAT Alpha; +} D3D12_VIDEO_PROCESS_ALPHA_BLENDING; + +typedef struct D3D12_VIDEO_PROCESS_LUMA_KEY +{ + BOOL Enable; + FLOAT Lower; + FLOAT Upper; +} D3D12_VIDEO_PROCESS_LUMA_KEY; + +typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC +{ + DXGI_FORMAT Format; + DXGI_COLOR_SPACE_TYPE ColorSpace; + DXGI_RATIONAL SourceAspectRatio; + DXGI_RATIONAL DestinationAspectRatio; + DXGI_RATIONAL FrameRate; + D3D12_VIDEO_SIZE_RANGE SourceSizeRange; + D3D12_VIDEO_SIZE_RANGE DestinationSizeRange; + BOOL EnableOrientation; + D3D12_VIDEO_PROCESS_FILTER_FLAGS FilterFlags; + D3D12_VIDEO_FRAME_STEREO_FORMAT StereoFormat; + D3D12_VIDEO_FIELD_TYPE FieldType; + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceMode; + BOOL EnableAlphaBlending; + D3D12_VIDEO_PROCESS_LUMA_KEY LumaKey; + UINT NumPastFrames; + UINT NumFutureFrames; + BOOL EnableAutoProcessing; +} D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC; + +typedef enum D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE +{ + D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_OPAQUE = 0, + D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_BACKGROUND = 1, + D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_DESTINATION = 2, + D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_SOURCE_STREAM = 3, +} D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE; + +typedef struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC +{ + DXGI_FORMAT Format; + DXGI_COLOR_SPACE_TYPE ColorSpace; + D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE AlphaFillMode; + UINT AlphaFillModeSourceStreamIndex; + FLOAT BackgroundColor[4]; + DXGI_RATIONAL FrameRate; + BOOL EnableStereo; +} D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC; + +[uuid(0946B7C9-EBF6-4047-BB73-8683E27DBB1F), object, local, pointer_default(unique)] +interface ID3D12VideoDecoderHeap + : ID3D12Pageable +{ + D3D12_VIDEO_DECODER_HEAP_DESC GetDesc(); +} + +[uuid(1F052807-0B46-4ACC-8A89-364F793718A4), object, local, pointer_default(unique)] +interface ID3D12VideoDevice + : IUnknown +{ + HRESULT CheckFeatureSupport( + D3D12_FEATURE_VIDEO FeatureVideo, + [annotation("_Inout_updates_bytes_(FeatureSupportDataSize)")] void* pFeatureSupportData, + UINT FeatureSupportDataSize + ); + + HRESULT CreateVideoDecoder( + [annotation("_In_")] const D3D12_VIDEO_DECODER_DESC* pDesc, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoDecoder, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppVideoDecoder + ); + + HRESULT CreateVideoDecoderHeap( + [annotation("_In_")]const D3D12_VIDEO_DECODER_HEAP_DESC* pVideoDecoderHeapDesc, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoDecoderHeap, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppVideoDecoderHeap + ); + + HRESULT CreateVideoProcessor( + UINT NodeMask, + [annotation("_In_")] const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc, + UINT NumInputStreamDescs, + [annotation("_In_reads_(NumInputStreamDescs)")]const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoProcessor, + [out, iid_is(riid), annotation("_COM_Outptr_")] void **ppVideoProcessor + ); +} + +[uuid(C59B6BDC-7720-4074-A136-17A156037470), object, local, pointer_default(unique)] +interface ID3D12VideoDecoder + : ID3D12Pageable +{ + D3D12_VIDEO_DECODER_DESC GetDesc(); +} + +typedef enum D3D12_VIDEO_DECODE_TIER +{ + D3D12_VIDEO_DECODE_TIER_NOT_SUPPORTED = 0, + D3D12_VIDEO_DECODE_TIER_1 = 1, + D3D12_VIDEO_DECODE_TIER_2 = 2, + D3D12_VIDEO_DECODE_TIER_3 = 3, +} D3D12_VIDEO_DECODE_TIER; + +typedef enum D3D12_VIDEO_DECODE_SUPPORT_FLAGS +{ + D3D12_VIDEO_DECODE_SUPPORT_FLAG_NONE = 0x0, + D3D12_VIDEO_DECODE_SUPPORT_FLAG_SUPPORTED = 0x1, + +} D3D12_VIDEO_DECODE_SUPPORT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_SUPPORT_FLAGS )") + +typedef enum D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS +{ + D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_NONE = 0x0, + D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_HEIGHT_ALIGNMENT_MULTIPLE_32_REQUIRED = 0x1, + D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_POST_PROCESSING_SUPPORTED = 0x2, + D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_REFERENCE_ONLY_ALLOCATIONS_REQUIRED = 0x4, + D3D12_VIDEO_DECODE_CONFIGURATION_FLAG_ALLOW_RESOLUTION_CHANGE_ON_NON_KEY_FRAME = 0x8, + +} D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS )") + +typedef enum D3D12_VIDEO_DECODE_STATUS +{ + D3D12_VIDEO_DECODE_STATUS_OK = 0, + D3D12_VIDEO_DECODE_STATUS_CONTINUE = 1, + D3D12_VIDEO_DECODE_STATUS_CONTINUE_SKIP_DISPLAY = 2, + D3D12_VIDEO_DECODE_STATUS_RESTART = 3, + D3D12_VIDEO_DECODE_STATUS_RATE_EXCEEDED = 4, +} D3D12_VIDEO_DECODE_STATUS; + +typedef enum D3D12_VIDEO_DECODE_ARGUMENT_TYPE +{ + D3D12_VIDEO_DECODE_ARGUMENT_TYPE_PICTURE_PARAMETERS = 0, + D3D12_VIDEO_DECODE_ARGUMENT_TYPE_INVERSE_QUANTIZATION_MATRIX = 1, + D3D12_VIDEO_DECODE_ARGUMENT_TYPE_SLICE_CONTROL = 2, + D3D12_VIDEO_DECODE_ARGUMENT_TYPE_HUFFMAN_TABLE = 3, +} D3D12_VIDEO_DECODE_ARGUMENT_TYPE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT +{ + UINT NodeIndex; // input + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; // input + UINT Width; // input + UINT Height; // input + DXGI_FORMAT DecodeFormat; // input + DXGI_RATIONAL FrameRate; // input + UINT BitRate; // input + D3D12_VIDEO_DECODE_SUPPORT_FLAGS SupportFlags; // output + D3D12_VIDEO_DECODE_CONFIGURATION_FLAGS ConfigurationFlags; // output + D3D12_VIDEO_DECODE_TIER DecodeTier; // output +} D3D12_FEATURE_DATA_VIDEO_DECODE_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT +{ + UINT NodeIndex; // input + UINT ProfileCount; // output +} D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILE_COUNT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES +{ + UINT NodeIndex; // input + UINT ProfileCount; // input + [annotation("_Field_size_full_(ProfileCount)")] GUID *pProfiles; // output. The list of supported profiles. The caller allocates storage for the profile list before calling CheckFeatureSupport. +} D3D12_FEATURE_DATA_VIDEO_DECODE_PROFILES; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT +{ + UINT NodeIndex; // input + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; // input + UINT FormatCount; // output +} D3D12_FEATURE_DATA_VIDEO_DECODE_FORMAT_COUNT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS +{ + UINT NodeIndex; // input + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; // input + UINT FormatCount; // input + [annotation("_Field_size_full_(FormatCount)")] DXGI_FORMAT *pOutputFormats; // output. The list of supported video formats. The caller allocates storage for the format list before calling CheckFeatureSupport. +} D3D12_FEATURE_DATA_VIDEO_DECODE_FORMATS; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE +{ + BOOL IOCoherent; +} D3D12_FEATURE_DATA_VIDEO_ARCHITECTURE; + +typedef enum D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT +{ + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_Y = 0, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_U = 1, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_V = 2, + + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_R = 0, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_G = 1, + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_B = 2, + + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_A = 3, +} D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT; + +typedef enum D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS +{ + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_NONE = 0x0, + + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_Y = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_Y), + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_U = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_U), + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_V = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_V), + + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_R = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_R), + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_G = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_G), + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_B = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_B), + + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAG_A = (1 << D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_A), +} D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS )") + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM +{ + UINT NodeIndex; // in + GUID DecodeProfile; // in + UINT Width; // in + UINT Height; // in + DXGI_FORMAT DecodeFormat; // in + D3D12_VIDEO_DECODE_HISTOGRAM_COMPONENT_FLAGS Components; // out + UINT BinCount; // out + UINT CounterBitDepth; // out +} D3D12_FEATURE_DATA_VIDEO_DECODE_HISTOGRAM; + +typedef enum D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS +{ + D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAG_NONE = 0x0, + D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAG_SUPPORTED = 0x1, + +} D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS )") + +typedef enum D3D12_VIDEO_SCALE_SUPPORT_FLAGS +{ + D3D12_VIDEO_SCALE_SUPPORT_FLAG_NONE = 0x0, + D3D12_VIDEO_SCALE_SUPPORT_FLAG_POW2_ONLY = 0x1, + D3D12_VIDEO_SCALE_SUPPORT_FLAG_EVEN_DIMENSIONS_ONLY = 0x2, + +} D3D12_VIDEO_SCALE_SUPPORT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_SCALE_SUPPORT_FLAGS )") + +typedef struct D3D12_VIDEO_SCALE_SUPPORT +{ + D3D12_VIDEO_SIZE_RANGE OutputSizeRange; + D3D12_VIDEO_SCALE_SUPPORT_FLAGS Flags; +} D3D12_VIDEO_SCALE_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT +{ + UINT NodeIndex; // input + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; // input + D3D12_VIDEO_SAMPLE DecodeSample; // input + D3D12_VIDEO_FORMAT OutputFormat; // input + DXGI_RATIONAL FrameRate; // input + UINT BitRate; // input + D3D12_VIDEO_DECODE_CONVERSION_SUPPORT_FLAGS SupportFlags; // output + D3D12_VIDEO_SCALE_SUPPORT ScaleSupport; // output +} D3D12_FEATURE_DATA_VIDEO_DECODE_CONVERSION_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE +{ + D3D12_VIDEO_DECODER_HEAP_DESC VideoDecoderHeapDesc; // input + UINT64 MemoryPoolL0Size; // output + UINT64 MemoryPoolL1Size; // output +} D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE +{ + UINT NodeMask; + const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc; // input + UINT NumInputStreamDescs; // input + const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs; // input + UINT64 MemoryPoolL0Size; // output + UINT64 MemoryPoolL1Size; // output +} D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE; + +typedef struct D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS +{ + UINT64 Status; // see D3D12_VIDEO_DECODE_STATUS + UINT64 NumMacroblocksAffected; + DXGI_RATIONAL FrameRate; + UINT BitRate; +} D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS; + +typedef struct D3D12_VIDEO_DECODE_FRAME_ARGUMENT +{ + D3D12_VIDEO_DECODE_ARGUMENT_TYPE Type; + UINT Size; + [annotation("_Field_size_bytes_full_(Size)")] void *pData; +} D3D12_VIDEO_DECODE_FRAME_ARGUMENT; + +typedef struct D3D12_VIDEO_DECODE_REFERENCE_FRAMES +{ + UINT NumTexture2Ds; + [annotation("_Field_size_full_(NumTexture2Ds)")] ID3D12Resource** ppTexture2Ds; + [annotation("_Field_size_full_(NumTexture2Ds)")] UINT* pSubresources; + [annotation("_Field_size_full_opt_(NumTexture2Ds)")] ID3D12VideoDecoderHeap** ppHeaps; // If null, assume single decoder heap from input args. +} D3D12_VIDEO_DECODE_REFERENCE_FRAMES; + +typedef struct D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM +{ + ID3D12Resource* pBuffer; + UINT64 Offset; + UINT64 Size; +} D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM; + +typedef struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS +{ + BOOL Enable; + ID3D12Resource* pReferenceTexture2D; + UINT ReferenceSubresource; + DXGI_COLOR_SPACE_TYPE OutputColorSpace; + DXGI_COLOR_SPACE_TYPE DecodeColorSpace; +} D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS; + +typedef struct D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS +{ + UINT NumFrameArguments; + D3D12_VIDEO_DECODE_FRAME_ARGUMENT FrameArguments[D3D12_VIDEO_DECODE_MAX_ARGUMENTS]; + D3D12_VIDEO_DECODE_REFERENCE_FRAMES ReferenceFrames; + D3D12_VIDEO_DECODE_COMPRESSED_BITSTREAM CompressedBitstream; + ID3D12VideoDecoderHeap *pHeap; +} D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS; + +typedef struct D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS +{ + ID3D12Resource* pOutputTexture2D; + UINT OutputSubresource; + D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS ConversionArguments; +} D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS; + +[uuid(304FDB32-BEDE-410A-8545-943AC6A46138), object, local, pointer_default(unique)] +interface ID3D12VideoProcessor + : ID3D12Pageable +{ + UINT GetNodeMask(); + UINT GetNumInputStreamDescs(); + HRESULT GetInputStreamDescs(UINT NumInputStreamDescs, [annotation("_Out_writes_(NumInputStreamDescs)")] D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs); + D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC GetOutputStreamDesc(); +} + +typedef enum D3D12_VIDEO_PROCESS_FEATURE_FLAGS +{ + D3D12_VIDEO_PROCESS_FEATURE_FLAG_NONE = 0x0, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_ALPHA_FILL = 0x1, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_LUMA_KEY = 0x2, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_STEREO = 0x4, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_ROTATION = 0x8, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_FLIP = 0x10, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_ALPHA_BLENDING = 0x20, + D3D12_VIDEO_PROCESS_FEATURE_FLAG_PIXEL_ASPECT_RATIO = 0x40, + +} D3D12_VIDEO_PROCESS_FEATURE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_FEATURE_FLAGS )") + +typedef enum D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS +{ + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_NONE = 0x0, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_DENOISE = 0x01, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_DERINGING = 0x02, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_EDGE_ENHANCEMENT = 0x04, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_COLOR_CORRECTION = 0x08, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_FLESH_TONE_MAPPING = 0x10, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_IMAGE_STABILIZATION = 0x20, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_SUPER_RESOLUTION = 0x40, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_ANAMORPHIC_SCALING = 0x80, + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAG_CUSTOM = 0x80000000, + +} D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS )") + +typedef enum D3D12_VIDEO_PROCESS_ORIENTATION +{ + D3D12_VIDEO_PROCESS_ORIENTATION_DEFAULT = 0, + D3D12_VIDEO_PROCESS_ORIENTATION_FLIP_HORIZONTAL = 1, + D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_90 = 2, + D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_90_FLIP_HORIZONTAL = 3, + D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_180 = 4, + D3D12_VIDEO_PROCESS_ORIENTATION_FLIP_VERTICAL = 5, + D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_270 = 6, + D3D12_VIDEO_PROCESS_ORIENTATION_CLOCKWISE_270_FLIP_HORIZONTAL = 7, +} D3D12_VIDEO_PROCESS_ORIENTATION; + +typedef enum D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS +{ + D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_NONE = 0x0, + D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_FRAME_DISCONTINUITY = 0x1, + D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAG_FRAME_REPEAT = 0x2, + +} D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS )") + +typedef struct D3D12_VIDEO_PROCESS_FILTER_RANGE +{ + INT Minimum; + INT Maximum; + INT Default; + FLOAT Multiplier; +} D3D12_VIDEO_PROCESS_FILTER_RANGE; + +typedef enum D3D12_VIDEO_PROCESS_SUPPORT_FLAGS +{ + D3D12_VIDEO_PROCESS_SUPPORT_FLAG_NONE = 0x0, + D3D12_VIDEO_PROCESS_SUPPORT_FLAG_SUPPORTED = 0x1, + +} D3D12_VIDEO_PROCESS_SUPPORT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROCESS_SUPPORT_FLAGS )") + +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT +{ + UINT NodeIndex; // input + D3D12_VIDEO_SAMPLE InputSample; // input + D3D12_VIDEO_FIELD_TYPE InputFieldType; // input + D3D12_VIDEO_FRAME_STEREO_FORMAT InputStereoFormat; // input + DXGI_RATIONAL InputFrameRate; // input + D3D12_VIDEO_FORMAT OutputFormat; // input + D3D12_VIDEO_FRAME_STEREO_FORMAT OutputStereoFormat; // input + DXGI_RATIONAL OutputFrameRate; // input + D3D12_VIDEO_PROCESS_SUPPORT_FLAGS SupportFlags; // output + D3D12_VIDEO_SCALE_SUPPORT ScaleSupport; // output + D3D12_VIDEO_PROCESS_FEATURE_FLAGS FeatureSupport; // output + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceSupport; // output + D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS AutoProcessingSupport; // output + D3D12_VIDEO_PROCESS_FILTER_FLAGS FilterSupport; // output + D3D12_VIDEO_PROCESS_FILTER_RANGE FilterRangeSupport[D3D12_VIDEO_PROCESS_MAX_FILTERS]; // output +} D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS +{ + UINT NodeIndex; // input + UINT MaxInputStreams; // output +} D3D12_FEATURE_DATA_VIDEO_PROCESS_MAX_INPUT_STREAMS; + +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO +{ + UINT NodeIndex; // input + D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceMode; // input + D3D12_VIDEO_PROCESS_FILTER_FLAGS Filters; // input + D3D12_VIDEO_PROCESS_FEATURE_FLAGS FeatureSupport; // input + DXGI_RATIONAL InputFrameRate; // input + DXGI_RATIONAL OutputFrameRate; // input + BOOL EnableAutoProcessing; // input + UINT PastFrames; // output + UINT FutureFrames; // output +} D3D12_FEATURE_DATA_VIDEO_PROCESS_REFERENCE_INFO; + +typedef struct D3D12_VIDEO_PROCESS_REFERENCE_SET +{ + UINT NumPastFrames; + ID3D12Resource **ppPastFrames; + UINT *pPastSubresources; + UINT NumFutureFrames; + ID3D12Resource **ppFutureFrames; + UINT *pFutureSubresources; +} D3D12_VIDEO_PROCESS_REFERENCE_SET; + +typedef struct D3D12_VIDEO_PROCESS_TRANSFORM +{ + D3D12_RECT SourceRectangle; + D3D12_RECT DestinationRectangle; + D3D12_VIDEO_PROCESS_ORIENTATION Orientation; +} D3D12_VIDEO_PROCESS_TRANSFORM; + +typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE +{ + UINT OutputIndex; + UINT InputFrameOrField; +} D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE; + +typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM +{ + ID3D12Resource *pTexture2D; + UINT Subresource; + D3D12_VIDEO_PROCESS_REFERENCE_SET ReferenceSet; +} D3D12_VIDEO_PROCESS_INPUT_STREAM; + +typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS +{ + D3D12_VIDEO_PROCESS_INPUT_STREAM InputStream[D3D12_VIDEO_PROCESS_STEREO_VIEWS]; + D3D12_VIDEO_PROCESS_TRANSFORM Transform; + D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS Flags; + D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE RateInfo; + INT FilterLevels[D3D12_VIDEO_PROCESS_MAX_FILTERS]; + D3D12_VIDEO_PROCESS_ALPHA_BLENDING AlphaBlending; +} D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS; + +typedef struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM +{ + ID3D12Resource* pTexture2D; + UINT Subresource; +} D3D12_VIDEO_PROCESS_OUTPUT_STREAM; + +typedef struct D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS +{ + D3D12_VIDEO_PROCESS_OUTPUT_STREAM OutputStream[D3D12_VIDEO_PROCESS_STEREO_VIEWS]; + D3D12_RECT TargetRectangle; +} D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS; + +[uuid(3B60536E-AD29-4E64-A269-F853837E5E53), object, local, pointer_default(unique)] +interface ID3D12VideoDecodeCommandList + : ID3D12CommandList +{ + HRESULT Close(); + + HRESULT Reset( + [annotation("_In_")] ID3D12CommandAllocator* pAllocator + ); + + void ClearState(); + + void ResourceBarrier( + [annotation("_In_")] UINT NumBarriers, + [annotation("_In_reads_(NumBarriers)")] const D3D12_RESOURCE_BARRIER* pBarriers + ); + + void DiscardResource( + [annotation("_In_")] ID3D12Resource* pResource, + [annotation("_In_opt_")] const D3D12_DISCARD_REGION* pRegion + ); + + void BeginQuery( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT Index + ); + + void EndQuery( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT Index + ); + + void ResolveQueryData( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT StartIndex, + [annotation("_In_")] UINT NumQueries, + [annotation("_In_")] ID3D12Resource* pDestinationBuffer, + [annotation("_In_")] UINT64 AlignedDestinationBufferOffset + ); + + void SetPredication( + [annotation("_In_opt_")] ID3D12Resource* pBuffer, + [annotation("_In_")] UINT64 AlignedBufferOffset, + [annotation("_In_")] D3D12_PREDICATION_OP Operation + ); + + void SetMarker( + UINT Metadata, + [annotation("_In_reads_bytes_opt_(Size)")] const void* pData, + UINT Size); + + void BeginEvent( + UINT Metadata, + [annotation("_In_reads_bytes_opt_(Size)")] const void* pData, + UINT Size); + + void EndEvent(); + + void DecodeFrame( + [annotation("_In_")] ID3D12VideoDecoder* pDecoder, + [annotation("_In_")] const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + [annotation("_In_")] const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments + ); + + void WriteBufferImmediate( + UINT Count, + [annotation("_In_reads_(Count)")] const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + [annotation("_In_reads_opt_(Count)")] const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes + ); +} + +[uuid(AEB2543A-167F-4682-ACC8-D159ED4A6209), object, local, pointer_default(unique)] +interface ID3D12VideoProcessCommandList + : ID3D12CommandList +{ + HRESULT Close(); + + HRESULT Reset( + [annotation("_In_")] ID3D12CommandAllocator* pAllocator + ); + + void ClearState(); + + void ResourceBarrier( + [annotation("_In_")] UINT NumBarriers, + [annotation("_In_reads_(NumBarriers)")] const D3D12_RESOURCE_BARRIER* pBarriers + ); + + void DiscardResource( + [annotation("_In_")] ID3D12Resource* pResource, + [annotation("_In_opt_")] const D3D12_DISCARD_REGION* pRegion + ); + + void BeginQuery( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT Index + ); + + void EndQuery( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT Index + ); + + void ResolveQueryData( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT StartIndex, + [annotation("_In_")] UINT NumQueries, + [annotation("_In_")] ID3D12Resource* pDestinationBuffer, + [annotation("_In_")] UINT64 AlignedDestinationBufferOffset + ); + + void SetPredication( + [annotation("_In_opt_")] ID3D12Resource* pBuffer, + [annotation("_In_")] UINT64 AlignedBufferOffset, + [annotation("_In_")] D3D12_PREDICATION_OP Operation + ); + + void SetMarker( + UINT Metadata, + [annotation("_In_reads_bytes_opt_(Size)")] const void* pData, + UINT Size); + + void BeginEvent( + UINT Metadata, + [annotation("_In_reads_bytes_opt_(Size)")] const void* pData, + UINT Size); + + void EndEvent(); + + void ProcessFrames( + [annotation("_In_")] ID3D12VideoProcessor* pVideoProcessor, + [annotation("_In_")] const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + [annotation("_In_reads_(NumInputStreams)")] const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS *pInputArguments + ); + + void WriteBufferImmediate( + UINT Count, + [annotation("_In_reads_(Count)")] const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + [annotation("_In_reads_opt_(Count)")] const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes + ); +} + +typedef struct D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM +{ + UINT64 Offset; + ID3D12Resource* pBuffer; +} D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM; + +typedef struct D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1 +{ + BOOL Enable; + ID3D12Resource* pReferenceTexture2D; + UINT ReferenceSubresource; + DXGI_COLOR_SPACE_TYPE OutputColorSpace; + DXGI_COLOR_SPACE_TYPE DecodeColorSpace; + UINT OutputWidth; + UINT OutputHeight; +} D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1; + +typedef struct D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 +{ + ID3D12Resource* pOutputTexture2D; + UINT OutputSubresource; + D3D12_VIDEO_DECODE_CONVERSION_ARGUMENTS1 ConversionArguments; + D3D12_VIDEO_DECODE_OUTPUT_HISTOGRAM Histograms[D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS]; +} D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1; + +[uuid(D52F011B-B56E-453C-A05A-A7F311C8F472), object, local, pointer_default(unique)] +interface ID3D12VideoDecodeCommandList1 + : ID3D12VideoDecodeCommandList +{ + void DecodeFrame1( + [annotation("_In_")] ID3D12VideoDecoder* pDecoder, + [annotation("_In_")] const D3D12_VIDEO_DECODE_OUTPUT_STREAM_ARGUMENTS1 *pOutputArguments, + [annotation("_In_")] const D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *pInputArguments + ); +} + +typedef struct D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 +{ + D3D12_VIDEO_PROCESS_INPUT_STREAM InputStream[D3D12_VIDEO_PROCESS_STEREO_VIEWS]; + D3D12_VIDEO_PROCESS_TRANSFORM Transform; + D3D12_VIDEO_PROCESS_INPUT_STREAM_FLAGS Flags; + D3D12_VIDEO_PROCESS_INPUT_STREAM_RATE RateInfo; + INT FilterLevels[D3D12_VIDEO_PROCESS_MAX_FILTERS]; + D3D12_VIDEO_PROCESS_ALPHA_BLENDING AlphaBlending; + D3D12_VIDEO_FIELD_TYPE FieldType; +} D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1; + +[uuid(542C5C4D-7596-434F-8C93-4EFA6766F267), object, local, pointer_default(unique)] +interface ID3D12VideoProcessCommandList1 : ID3D12VideoProcessCommandList +{ + void ProcessFrames1( + [annotation("_In_")] ID3D12VideoProcessor* pVideoProcessor, + [annotation("_In_")] const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS *pOutputArguments, + UINT NumInputStreams, + [annotation("_In_reads_(NumInputStreams)")] const D3D12_VIDEO_PROCESS_INPUT_STREAM_ARGUMENTS1 *pInputArguments + ); +} + +typedef enum D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE +{ + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_8X8 = 0, + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_16X16 = 1, +} D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE; + +typedef enum D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS +{ + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAG_NONE = 0, + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAG_8X8 = (1 << D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_8X8), + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAG_16X16 = (1 << D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_16X16), + +} D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS )" ) + +typedef enum D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION +{ + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_QUARTER_PEL = 0, +} D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION; + +typedef enum D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS +{ + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAG_NONE = 0, + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAG_QUARTER_PEL = (1 << D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_QUARTER_PEL), + +} D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS; +cpp_quote( "DEFINE_ENUM_FLAG_OPERATORS( D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS )" ) + +// D3D12_FEATURE_VIDEO_FEATURE_AREA_SUPPORT +typedef struct D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT +{ + UINT NodeIndex; // input + BOOL VideoDecodeSupport; // output + BOOL VideoProcessSupport; // output + BOOL VideoEncodeSupport; // output +} D3D12_FEATURE_DATA_VIDEO_FEATURE_AREA_SUPPORT; + +// D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR +typedef struct D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR +{ + UINT NodeIndex; // input + DXGI_FORMAT InputFormat; // input + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE_FLAGS BlockSizeFlags; // output + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION_FLAGS PrecisionFlags; // output + D3D12_VIDEO_SIZE_RANGE SizeRange; // output +} D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR; + +// D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR_SIZE +typedef struct D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE +{ + UINT NodeIndex; // input + DXGI_FORMAT InputFormat; // input + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE BlockSize; // input + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION Precision; // input + D3D12_VIDEO_SIZE_RANGE SizeRange; // input + BOOL Protected; // input + UINT64 MotionVectorHeapMemoryPoolL0Size; // output + UINT64 MotionVectorHeapMemoryPoolL1Size; // output + UINT64 MotionEstimatorMemoryPoolL0Size; // output + UINT64 MotionEstimatorMemoryPoolL1Size; // output +} D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE; + +typedef struct D3D12_VIDEO_MOTION_ESTIMATOR_DESC +{ + UINT NodeMask; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE BlockSize; + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION Precision; + D3D12_VIDEO_SIZE_RANGE SizeRange; + +} D3D12_VIDEO_MOTION_ESTIMATOR_DESC; + +[uuid(33FDAE0E-098B-428F-87BB-34B695DE08F8), object, local, pointer_default(unique)] +interface ID3D12VideoMotionEstimator + : ID3D12Pageable +{ + D3D12_VIDEO_MOTION_ESTIMATOR_DESC GetDesc(); + + HRESULT GetProtectedResourceSession( + [in] REFIID riid, // Expected: ID3D12ProtectedResourceSession + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppProtectedSession); +} + +typedef struct D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC +{ + UINT NodeMask; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_MOTION_ESTIMATOR_SEARCH_BLOCK_SIZE BlockSize; + D3D12_VIDEO_MOTION_ESTIMATOR_VECTOR_PRECISION Precision; + D3D12_VIDEO_SIZE_RANGE SizeRange; + +} D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC; + +[uuid(5BE17987-743A-4061-834B-23D22DAEA505), object, local, pointer_default(unique)] +interface ID3D12VideoMotionVectorHeap + : ID3D12Pageable +{ + D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC GetDesc(); + + HRESULT GetProtectedResourceSession( + [in] REFIID riid, // Expected: ID3D12ProtectedResourceSession + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppProtectedSession); +} + +[uuid(981611AD-A144-4C83-9890-F30E26D658AB), object, local, pointer_default(unique)] +interface ID3D12VideoDevice1 + : ID3D12VideoDevice +{ + HRESULT CreateVideoMotionEstimator( + [annotation("_In_")] const D3D12_VIDEO_MOTION_ESTIMATOR_DESC* pDesc, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession *pProtectedResourceSession, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoMotionEstimator, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppVideoMotionEstimator + ); + + HRESULT CreateVideoMotionVectorHeap( + [annotation("_In_")] const D3D12_VIDEO_MOTION_VECTOR_HEAP_DESC* pDesc, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession *pProtectedResourceSession, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoMotionVectorHeap, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppVideoMotionVectorHeap + ); +} + +typedef struct D3D12_RESOURCE_COORDINATE +{ + // Coordinate values below index pixels. + UINT64 X; // Used for buffer, 1D, 2D, 3D + UINT Y; // Used for 2D, 3D + UINT Z; // Used for 3D + UINT SubresourceIndex; // indexes into mips, arrays, and planes. Used for 1D, 2D, 3D +} D3D12_RESOURCE_COORDINATE; + +typedef struct D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT +{ + ID3D12VideoMotionVectorHeap* pMotionVectorHeap; +} D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT; + +typedef struct D3D12_VIDEO_MOTION_ESTIMATOR_INPUT +{ + ID3D12Resource* pInputTexture2D; + UINT InputSubresourceIndex; + ID3D12Resource* pReferenceTexture2D; + UINT ReferenceSubresourceIndex; + ID3D12VideoMotionVectorHeap* pHintMotionVectorHeap; +} D3D12_VIDEO_MOTION_ESTIMATOR_INPUT; + +typedef struct D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT +{ + ID3D12Resource* pMotionVectorTexture2D; + D3D12_RESOURCE_COORDINATE MotionVectorCoordinate; +} D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT; + +typedef struct D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT +{ + ID3D12VideoMotionVectorHeap* pMotionVectorHeap; + UINT PixelWidth; + UINT PixelHeight; +} D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT; + +[uuid(8455293A-0CBD-4831-9B39-FBDBAB724723), object, local, pointer_default(unique)] +interface ID3D12VideoEncodeCommandList + : ID3D12CommandList +{ + HRESULT Close(); + + HRESULT Reset( + [annotation("_In_")] ID3D12CommandAllocator* pAllocator + ); + + void ClearState(); + + void ResourceBarrier( + [annotation("_In_")] UINT NumBarriers, + [annotation("_In_reads_(NumBarriers)")] const D3D12_RESOURCE_BARRIER* pBarriers + ); + + void DiscardResource( + [annotation("_In_")] ID3D12Resource* pResource, + [annotation("_In_opt_")] const D3D12_DISCARD_REGION* pRegion + ); + + void BeginQuery( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT Index + ); + + void EndQuery( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT Index + ); + + void ResolveQueryData( + [annotation("_In_")] ID3D12QueryHeap* pQueryHeap, + [annotation("_In_")] D3D12_QUERY_TYPE Type, + [annotation("_In_")] UINT StartIndex, + [annotation("_In_")] UINT NumQueries, + [annotation("_In_")] ID3D12Resource* pDestinationBuffer, + [annotation("_In_")] UINT64 AlignedDestinationBufferOffset + ); + + void SetPredication( + [annotation("_In_opt_")] ID3D12Resource* pBuffer, + [annotation("_In_")] UINT64 AlignedBufferOffset, + [annotation("_In_")] D3D12_PREDICATION_OP Operation + ); + + void SetMarker( + UINT Metadata, + [annotation("_In_reads_bytes_opt_(Size)")] const void* pData, + UINT Size); + + void BeginEvent( + UINT Metadata, + [annotation("_In_reads_bytes_opt_(Size)")] const void* pData, + UINT Size); + + void EndEvent(); + + void EstimateMotion( + [annotation("_In_")] ID3D12VideoMotionEstimator* pMotionEstimator, + [annotation("_In_")] const D3D12_VIDEO_MOTION_ESTIMATOR_OUTPUT* pOutputArguments, + [annotation("_In_")] const D3D12_VIDEO_MOTION_ESTIMATOR_INPUT* pInputArguments + ); + + void ResolveMotionVectorHeap( + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_OUTPUT* pOutputArguments, + const D3D12_RESOLVE_VIDEO_MOTION_VECTOR_HEAP_INPUT* pInputArguments + ); + + void WriteBufferImmediate( + UINT Count, + [annotation("_In_reads_(Count)")] const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams, + [annotation("_In_reads_opt_(Count)")] const D3D12_WRITEBUFFERIMMEDIATE_MODE *pModes + ); + + void SetProtectedResourceSession( + [annotation("_In_opt_")]ID3D12ProtectedResourceSession *pProtectedResourceSession + ); +} + +typedef enum D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS +{ + D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAG_NONE = 0x0, + D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAG_SUPPORTED = 0x1, + +} D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS )") + +// D3D12_FEATURE_VIDEO_DECODE_PROTECTED_RESOURCES +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES +{ + UINT NodeIndex; // input + D3D12_VIDEO_DECODE_CONFIGURATION Configuration; // input + D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS SupportFlags; // output +} D3D12_FEATURE_DATA_VIDEO_DECODE_PROTECTED_RESOURCES; + +// D3D12_FEATURE_VIDEO_PROCESS_PROTECTED_RESOURCES +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES +{ + UINT NodeIndex; // input + D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS SupportFlags; // output +} D3D12_FEATURE_DATA_VIDEO_PROCESS_PROTECTED_RESOURCES; + +// D3D12_FEATURE_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES +typedef struct D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES +{ + UINT NodeIndex; // input + D3D12_VIDEO_PROTECTED_RESOURCE_SUPPORT_FLAGS SupportFlags; // output +} D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_PROTECTED_RESOURCES; + +//D3D12_FEATURE_VIDEO_DECODER_HEAP_SIZE1 +typedef struct D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1 +{ + D3D12_VIDEO_DECODER_HEAP_DESC VideoDecoderHeapDesc; // input + BOOL Protected; // input + UINT64 MemoryPoolL0Size; // output + UINT64 MemoryPoolL1Size; // output +} D3D12_FEATURE_DATA_VIDEO_DECODER_HEAP_SIZE1; + +// D3D12_FEATURE_VIDEO_PROCESSOR_SIZE1 +typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1 +{ + UINT NodeMask; + const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc; // input + UINT NumInputStreamDescs; // input + const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs; // input + BOOL Protected; // input + UINT64 MemoryPoolL0Size; // output + UINT64 MemoryPoolL1Size; // output +} D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1; + +typedef enum D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE +{ + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_CREATION = 0, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_INITIALIZATION = 1, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_EXECUTION = 2, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_CAPS_INPUT = 3, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_CAPS_OUTPUT = 4, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_DEVICE_EXECUTE_INPUT = 5, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE_DEVICE_EXECUTE_OUTPUT = 6, +} D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE; + +typedef enum D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE +{ + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT8 = 0, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT16 = 1, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT32 = 2, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_UINT64 = 3, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT8 = 4, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT16 = 5, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT32 = 6, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_SINT64 = 7, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_FLOAT = 8, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_DOUBLE = 9, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE_RESOURCE = 10, +} D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE; + +typedef enum D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS +{ + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAG_NONE = 0x00000000, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAG_READ = 0x00000001, + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAG_WRITE = 0x00000002 +} D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS; + +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS )") + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT +{ + UINT NodeIndex; // in + UINT CommandCount; // out +} D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_COUNT; + +typedef struct D3D12_VIDEO_EXTENSION_COMMAND_INFO +{ + GUID CommandId; + LPCWSTR Name; + D3D12_COMMAND_LIST_SUPPORT_FLAGS CommandListSupportFlags; +} D3D12_VIDEO_EXTENSION_COMMAND_INFO; + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS +{ + UINT NodeIndex; + UINT CommandCount; + [annotation("_Field_size_full_(CommandCount)")] D3D12_VIDEO_EXTENSION_COMMAND_INFO* pCommandInfos; +} D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMANDS; + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT +{ + GUID CommandId; // in + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE Stage; // in + UINT ParameterCount; // out + UINT ParameterPacking; // out +} D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETER_COUNT; + +typedef struct D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO +{ + LPCWSTR Name; + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_TYPE Type; + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_FLAGS Flags; +} D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO; + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS +{ + GUID CommandId; // in + D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_STAGE Stage; // in + UINT ParameterCount; // in + [annotation("_Field_size_full_(ParameterCount)")] D3D12_VIDEO_EXTENSION_COMMAND_PARAMETER_INFO* pParameterInfos; // out +} D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PARAMETERS; + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT +{ + UINT NodeIndex; + GUID CommandId; + [annotation("_Field_size_bytes_full_opt_(InputDataSizeInBytes)")] const void *pInputData; + SIZE_T InputDataSizeInBytes; + [annotation("_Field_size_bytes_full_opt_(OutputDataSizeInBytes)")] void *pOutputData; + SIZE_T OutputDataSizeInBytes; +} D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE +{ + UINT NodeIndex; + GUID CommandId; + [annotation("_Field_size_bytes_full_(CreationParametersDataSizeInBytes)")] const void* pCreationParameters; + SIZE_T CreationParametersSizeInBytes; + UINT64 MemoryPoolL0Size; // output + UINT64 MemoryPoolL1Size; // output +} D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE; + +typedef struct D3D12_VIDEO_EXTENSION_COMMAND_DESC +{ + UINT NodeMask; + GUID CommandId; +} D3D12_VIDEO_EXTENSION_COMMAND_DESC; + +[uuid(79A2E5FB-CCD2-469A-9FDE-195D10951F7E), object, local, pointer_default(unique)] +interface ID3D12VideoDecoder1 + : ID3D12VideoDecoder +{ + HRESULT GetProtectedResourceSession( + [in] REFIID riid, // Expected: ID3D12ProtectedResourceSession + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppProtectedSession); +} + +[uuid(DA1D98C5-539F-41B2-BF6B-1198A03B6D26), object, local, pointer_default(unique)] +interface ID3D12VideoDecoderHeap1 + : ID3D12VideoDecoderHeap +{ + HRESULT GetProtectedResourceSession( + [in] REFIID riid, // Expected: ID3D12ProtectedResourceSession + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppProtectedSession); +} + +[uuid(F3CFE615-553F-425C-86D8-EE8C1B1FB01C), object, local, pointer_default(unique)] +interface ID3D12VideoProcessor1 + : ID3D12VideoProcessor +{ + HRESULT GetProtectedResourceSession( + [in] REFIID riid, // Expected: ID3D12ProtectedResourceSession + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppProtectedSession); +} + +[uuid(554E41E8-AE8E-4A8C-B7D2-5B4F274A30E4), object, local, pointer_default(unique)] +interface ID3D12VideoExtensionCommand + : ID3D12Pageable +{ + D3D12_VIDEO_EXTENSION_COMMAND_DESC GetDesc(); + + HRESULT GetProtectedResourceSession( + [in] REFIID riid, // Expected: ID3D12ProtectedResourceSession + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void** ppProtectedSession); +} + +[uuid(F019AC49-F838-4A95-9B17-579437C8F513), object, local, pointer_default(unique)] +interface ID3D12VideoDevice2 + : ID3D12VideoDevice1 +{ + HRESULT CreateVideoDecoder1( + [annotation("_In_")] const D3D12_VIDEO_DECODER_DESC* pDesc, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession *pProtectedResourceSession, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoDecoder1, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppVideoDecoder + ); + + HRESULT CreateVideoDecoderHeap1( + [annotation("_In_")] const D3D12_VIDEO_DECODER_HEAP_DESC* pVideoDecoderHeapDesc, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession *pProtectedResourceSession, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoDecoderHeap1, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppVideoDecoderHeap + ); + + HRESULT CreateVideoProcessor1( + UINT NodeMask, + [annotation("_In_")] const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC* pOutputStreamDesc, + UINT NumInputStreamDescs, + [annotation("_In_reads_(NumInputStreamDescs)")]const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC *pInputStreamDescs, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession *pProtectedResourceSession, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoProcessor1, + [out, iid_is(riid), annotation("_COM_Outptr_")] void **ppVideoProcessor + ); + + HRESULT CreateVideoExtensionCommand( + [annotation("_In_")] const D3D12_VIDEO_EXTENSION_COMMAND_DESC* pDesc, + [annotation("_In_reads_bytes_(CreationParametersDataSizeInBytes)")] const void* pCreationParameters, + SIZE_T CreationParametersDataSizeInBytes, + [annotation("_In_opt_")] ID3D12ProtectedResourceSession* pProtectedResourceSession, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoExtensionCommand, + [annotation("_COM_Outptr_")] void** ppVideoExtensionCommand); + + HRESULT ExecuteExtensionCommand( + [annotation("_In_")] ID3D12VideoExtensionCommand* pExtensionCommand, + [annotation("_In_reads_bytes_(ExecutionParametersSizeInBytes)")] const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes, + [annotation("_Out_writes_bytes_(OutputDataSizeInBytes)")] void *pOutputData, + SIZE_T OutputDataSizeInBytes + ); +} + +[uuid(6e120880-c114-4153-8036-d247051e1729), object, local, pointer_default(unique)] +interface ID3D12VideoDecodeCommandList2 + : ID3D12VideoDecodeCommandList1 +{ + void SetProtectedResourceSession( + [annotation("_In_opt_")]ID3D12ProtectedResourceSession *pProtectedResourceSession + ); + + void InitializeExtensionCommand( + [annotation("_In_")] ID3D12VideoExtensionCommand* pExtensionCommand, + [annotation("_In_reads_bytes_(InitializationParametersSizeInBytes)")] const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes); + + void ExecuteExtensionCommand( + [annotation("_In_")] ID3D12VideoExtensionCommand* pExtensionCommand, + [annotation("_In_reads_bytes_(ExecutionParametersSizeInBytes)")] const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes); +} + +[uuid(2aee8c37-9562-42da-8abf-61efeb2e4513), object, local, pointer_default(unique)] +interface ID3D12VideoDecodeCommandList3 + : ID3D12VideoDecodeCommandList2 +{ + void Barrier( + UINT32 NumBarrierGroups, + [annotation("_In_reads_(NumBarrierGroups)")] const D3D12_BARRIER_GROUP *pBarrierGroups + ); +} + +[uuid(db525ae4-6ad6-473c-baa7-59b2e37082e4), object, local, pointer_default(unique)] +interface ID3D12VideoProcessCommandList2 + : ID3D12VideoProcessCommandList1 +{ + + void SetProtectedResourceSession( + [annotation("_In_opt_")]ID3D12ProtectedResourceSession *pProtectedResourceSession + ); + + void InitializeExtensionCommand( + [annotation("_In_")] ID3D12VideoExtensionCommand* pExtensionCommand, + [annotation("_In_reads_bytes_(InitializationParametersSizeInBytes)")] const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes); + + void ExecuteExtensionCommand( + [annotation("_In_")] ID3D12VideoExtensionCommand* pExtensionCommand, + [annotation("_In_reads_bytes_(ExecutionParametersSizeInBytes)")] const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes); +} + +[uuid(1a0a4ca4-9f08-40ce-9558-b411fd2666ff), object, local, pointer_default(unique)] +interface ID3D12VideoProcessCommandList3 + : ID3D12VideoProcessCommandList2 +{ + void Barrier( + UINT32 NumBarrierGroups, + [annotation("_In_reads_(NumBarrierGroups)")] const D3D12_BARRIER_GROUP *pBarrierGroups + ); +} + +[uuid(94971eca-2bdb-4769-88cf-3675ea757ebc), object, local, pointer_default(unique)] +interface ID3D12VideoEncodeCommandList1 + : ID3D12VideoEncodeCommandList +{ + void InitializeExtensionCommand( + [annotation("_In_")] ID3D12VideoExtensionCommand* pExtensionCommand, + [annotation("_In_reads_bytes_(InitializationParametersSizeInBytes)")] const void *pInitializationParameters, + SIZE_T InitializationParametersSizeInBytes); + + void ExecuteExtensionCommand( + [annotation("_In_")] ID3D12VideoExtensionCommand* pExtensionCommand, + [annotation("_In_reads_bytes_(ExecutionParametersSizeInBytes)")] const void *pExecutionParameters, + SIZE_T ExecutionParametersSizeInBytes); +} + +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG2, 0xee27417f, 0x5e28, 0x4e65, 0xbe, 0xea, 0x1d, 0x26, 0xb5, 0x08, 0xad, 0xc9); ") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG1_AND_MPEG2, 0x86695f12, 0x340e, 0x4f04, 0x9f, 0xd3, 0x92, 0x53, 0xdd, 0x32, 0x74, 0x60); ") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264, 0x1b81be68, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264_STEREO_PROGRESSIVE, 0xd79be8da, 0x0cf1, 0x4c81, 0xb8, 0x2a, 0x69, 0xa4, 0xe2, 0x36, 0xf4, 0x3d);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264_STEREO, 0xf9aaccbb, 0xc2b6, 0x4cfc, 0x87, 0x79, 0x57, 0x07, 0xb1, 0x76, 0x05, 0x52);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_H264_MULTIVIEW, 0x705b9d82, 0x76cf, 0x49d6, 0xb7, 0xe6, 0xac, 0x88, 0x72, 0xdb, 0x01, 0x3c);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VC1, 0x1b81beA3, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VC1_D2010, 0x1b81beA4, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_SIMPLE, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MPEG4PT2_ADVSIMPLE_NOGMC, 0xed418a9f, 0x010d, 0x4eda, 0x9a, 0xe3, 0x9a, 0x65, 0x35, 0x8d, 0x8d, 0x2e);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN, 0x5b11d51b, 0x2f4c, 0x4452, 0xbc, 0xc3, 0x09, 0xf2, 0xa1, 0x16, 0x0c, 0xc0);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10, 0x107af0e0, 0xef1a, 0x4d19, 0xab, 0xa8, 0x67, 0xa1, 0x63, 0x07, 0x3d, 0x13);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MONOCHROME, 0x0685b993, 0x3d8c, 0x43a0, 0x8b, 0x28, 0xd7, 0x4c, 0x2d, 0x68, 0x99, 0xa4);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MONOCHROME10, 0x142a1d0f, 0x69dd, 0x4ec9, 0x85, 0x91, 0xb1, 0x2f, 0xfc, 0xb9, 0x1a, 0x29);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN12, 0x1a72925f, 0x0c2c, 0x4f15, 0x96, 0xfb, 0xb1, 0x7d, 0x14, 0x73, 0x60, 0x3f);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10_422, 0x0bac4fe5, 0x1532, 0x4429, 0xa8, 0x54, 0xf8, 0x4d, 0xe0, 0x49, 0x53, 0xdb);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN12_422, 0x55bcac81, 0xf311, 0x4093, 0xa7, 0xd0, 0x1c, 0xbc, 0x0b, 0x84, 0x9b, 0xee);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN_444, 0x4008018f, 0xf537, 0x4b36, 0x98, 0xcf, 0x61, 0xaf, 0x8a, 0x2c, 0x1a, 0x33);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10_EXT, 0x9cc55490, 0xe37c, 0x4932, 0x86, 0x84, 0x49, 0x20, 0xf9, 0xf6, 0x40, 0x9c);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10_444, 0x0dabeffa, 0x4458, 0x4602, 0xbc, 0x03, 0x07, 0x95, 0x65, 0x9d, 0x61, 0x7c);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN12_444, 0x9798634d, 0xfe9d, 0x48e5, 0xb4, 0xda, 0xdb, 0xec, 0x45, 0xb3, 0xdf, 0x01);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN16, 0xa4fbdbb0, 0xa113, 0x482b, 0xa2, 0x32, 0x63, 0x5c, 0xc0, 0x69, 0x7f, 0x6d);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VP9, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_VP8, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0, 0xb8be4ccb, 0xcf53, 0x46ba, 0x8d, 0x59, 0xd6, 0xb8, 0xa6, 0xda, 0x5d, 0x2a);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE1, 0x6936ff0f, 0x45b1, 0x4163, 0x9c, 0xc1, 0x64, 0x6e, 0xf6, 0x94, 0x61, 0x08);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE2, 0x0c5f2aa1, 0xe541, 0x4089, 0xbb, 0x7b, 0x98, 0x11, 0x0a, 0x19, 0xd7, 0xc8);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_AV1_12BIT_PROFILE2, 0x17127009, 0xa00f, 0x4ce1, 0x99, 0x4e, 0xbf, 0x40, 0x81, 0xf6, 0xf3, 0xf0);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_AV1_12BIT_PROFILE2_420, 0x2d80bed6, 0x9cac, 0x4835, 0x9e, 0x91, 0x32, 0x7b, 0xbc, 0x4f, 0x9e, 0xe8);") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MJPEG_VLD_420, 0x725cb506, 0xc29, 0x43c4, 0x94, 0x40, 0x8e, 0x93, 0x97, 0x90, 0x3a, 0x4); ") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MJPEG_VLD_422, 0x5b77b9cd, 0x1a35, 0x4c30, 0x9f, 0xd8, 0xef, 0x4b, 0x60, 0xc0, 0x35, 0xdd); ") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MJPEG_VLD_444, 0xd95161f9, 0xd44, 0x47e6, 0xbc, 0xf5, 0x1b, 0xfb, 0xfb, 0x26, 0x8f, 0x97); ") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_MJPEG_VLD_4444, 0xc91748d5, 0xfd18, 0x4aca, 0x9d, 0xb3, 0x3a, 0x66, 0x34, 0xab, 0x54, 0x7d); ") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_JPEG_VLD_420, 0xcf782c83, 0xbef5, 0x4a2c, 0x87, 0xcb, 0x60, 0x19, 0xe7, 0xb1, 0x75, 0xac); ") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_JPEG_VLD_422, 0xf04df417, 0xeee2, 0x4067, 0xa7, 0x78, 0xf3, 0x5c, 0x15, 0xab, 0x97, 0x21); ") +cpp_quote("DEFINE_GUID(D3D12_VIDEO_DECODE_PROFILE_JPEG_VLD_444, 0x4cd00e17, 0x89ba, 0x48ef, 0xb9, 0xf9, 0xed, 0xcb, 0x82, 0x71, 0x3f, 0x65);") + +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Video Encoder +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +typedef enum D3D12_VIDEO_ENCODER_AV1_PROFILE +{ + D3D12_VIDEO_ENCODER_AV1_PROFILE_MAIN = 0, + D3D12_VIDEO_ENCODER_AV1_PROFILE_HIGH = 1, + D3D12_VIDEO_ENCODER_AV1_PROFILE_PROFESSIONAL = 2, +} D3D12_VIDEO_ENCODER_AV1_PROFILE; + +typedef enum D3D12_VIDEO_ENCODER_AV1_LEVELS +{ // These values are defined according to the AV1 codec standard spec + D3D12_VIDEO_ENCODER_AV1_LEVELS_2_0 = 0, + D3D12_VIDEO_ENCODER_AV1_LEVELS_2_1 = 1, + D3D12_VIDEO_ENCODER_AV1_LEVELS_2_2 = 2, + D3D12_VIDEO_ENCODER_AV1_LEVELS_2_3 = 3, + D3D12_VIDEO_ENCODER_AV1_LEVELS_3_0 = 4, + D3D12_VIDEO_ENCODER_AV1_LEVELS_3_1 = 5, + D3D12_VIDEO_ENCODER_AV1_LEVELS_3_2 = 6, + D3D12_VIDEO_ENCODER_AV1_LEVELS_3_3 = 7, + D3D12_VIDEO_ENCODER_AV1_LEVELS_4_0 = 8, + D3D12_VIDEO_ENCODER_AV1_LEVELS_4_1 = 9, + D3D12_VIDEO_ENCODER_AV1_LEVELS_4_2 = 10, + D3D12_VIDEO_ENCODER_AV1_LEVELS_4_3 = 11, + D3D12_VIDEO_ENCODER_AV1_LEVELS_5_0 = 12, + D3D12_VIDEO_ENCODER_AV1_LEVELS_5_1 = 13, + D3D12_VIDEO_ENCODER_AV1_LEVELS_5_2 = 14, + D3D12_VIDEO_ENCODER_AV1_LEVELS_5_3 = 15, + D3D12_VIDEO_ENCODER_AV1_LEVELS_6_0 = 16, + D3D12_VIDEO_ENCODER_AV1_LEVELS_6_1 = 17, + D3D12_VIDEO_ENCODER_AV1_LEVELS_6_2 = 18, + D3D12_VIDEO_ENCODER_AV1_LEVELS_6_3 = 19, + D3D12_VIDEO_ENCODER_AV1_LEVELS_7_0 = 20, + D3D12_VIDEO_ENCODER_AV1_LEVELS_7_1 = 21, + D3D12_VIDEO_ENCODER_AV1_LEVELS_7_2 = 22, + D3D12_VIDEO_ENCODER_AV1_LEVELS_7_3 = 23, +} D3D12_VIDEO_ENCODER_AV1_LEVELS; + +typedef enum D3D12_VIDEO_ENCODER_AV1_TIER +{ + D3D12_VIDEO_ENCODER_AV1_TIER_MAIN = 0, + D3D12_VIDEO_ENCODER_AV1_TIER_HIGH = 1, +} D3D12_VIDEO_ENCODER_AV1_TIER; + +typedef struct D3D12_VIDEO_ENCODER_AV1_LEVEL_TIER_CONSTRAINTS +{ + D3D12_VIDEO_ENCODER_AV1_LEVELS Level; + D3D12_VIDEO_ENCODER_AV1_TIER Tier; +} D3D12_VIDEO_ENCODER_AV1_LEVEL_TIER_CONSTRAINTS; + +typedef enum D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS +{ + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_128x128_SUPERBLOCK = 0x1, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_FILTER_INTRA = 0x2, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_INTRA_EDGE_FILTER = 0x4, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_INTERINTRA_COMPOUND = 0x8, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_MASKED_COMPOUND = 0x10, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_WARPED_MOTION = 0x20, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_DUAL_FILTER = 0x40, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_JNT_COMP = 0x80, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_FORCED_INTEGER_MOTION_VECTORS = 0x100, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_SUPER_RESOLUTION = 0x200, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_LOOP_RESTORATION_FILTER = 0x400, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_PALETTE_ENCODING = 0x800, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_CDEF_FILTERING = 0x1000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_INTRA_BLOCK_COPY = 0x2000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_FRAME_REFERENCE_MOTION_VECTORS = 0x4000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_ORDER_HINT_TOOLS = 0x8000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_AUTO_SEGMENTATION = 0x10000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_CUSTOM_SEGMENTATION = 0x20000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_LOOP_FILTER_DELTAS = 0x40000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_QUANTIZATION_DELTAS = 0x80000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_QUANTIZATION_MATRIX = 0x100000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_REDUCED_TX_SET = 0x200000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_MOTION_MODE_SWITCHABLE = 0x400000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_ALLOW_HIGH_PRECISION_MV = 0x800000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_SKIP_MODE_PRESENT = 0x1000000, + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAG_DELTA_LF_PARAMS = 0x2000000, +} D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_AV1_TX_MODE { + D3D12_VIDEO_ENCODER_AV1_TX_MODE_ONLY4x4 = 0, + D3D12_VIDEO_ENCODER_AV1_TX_MODE_LARGEST = 1, + D3D12_VIDEO_ENCODER_AV1_TX_MODE_SELECT = 2, +} D3D12_VIDEO_ENCODER_AV1_TX_MODE; + +typedef enum D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAGS { + D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAG_ONLY4x4 = (1 << D3D12_VIDEO_ENCODER_AV1_TX_MODE_ONLY4x4), + D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAG_LARGEST = (1 << D3D12_VIDEO_ENCODER_AV1_TX_MODE_LARGEST), + D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAG_SELECT = (1 << D3D12_VIDEO_ENCODER_AV1_TX_MODE_SELECT), +} D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS { + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP = 0, + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP_SMOOTH = 1, + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP_SHARP = 2, + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_BILINEAR = 3, + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_SWITCHABLE = 4, +} D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS; + +typedef enum D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAGS { + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_EIGHTTAP = (1 << D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP), + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_EIGHTTAP_SMOOTH = (1 << D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP_SMOOTH), + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_EIGHTTAP_SHARP = (1 << D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_EIGHTTAP_SHARP), + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_BILINEAR = (1 << D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_BILINEAR), + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAG_SWITCHABLE = (1 << D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_SWITCHABLE), +} D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE { + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE_4x4 = 0, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE_8x8 = 1, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE_16x16 = 2, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE_32x32 = 3, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE_64x64 = 4, +} D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE; + +typedef enum D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE { + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_DISABLED = 0, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_Q = 1, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_Y_V = 2, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_Y_H = 3, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_U = 4, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_V = 5, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_REF_FRAME = 6, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_SKIP = 7, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_GLOBALMV = 8, +} D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE; + +typedef enum D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAGS { + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_DISABLED = (1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_DISABLED), + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_Q = (1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_Q), + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_LF_Y_V = (1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_Y_V), + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_LF_Y_H = (1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_Y_H), + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_LF_U = (1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_U), + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_LF_V = (1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_LF_V), + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_REF_FRAME = (1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_REF_FRAME), + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_SKIP = (1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_SKIP), + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAG_ALT_GLOBALMV = (1 << D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_ALT_GLOBALMV), +} D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE { + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE_DISABLED = 0, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE_SWITCHABLE = 1, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE_WIENER = 2, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE_SGRPROJ = 3, +} D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE; + +typedef enum D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE { + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE_DISABLED = 0, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE_32x32 = 1, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE_64x64 = 2, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE_128x128 = 3, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE_256x256 = 4, +} D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE; + +typedef enum D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAGS { + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAG_NOT_SUPPORTED = 0x0, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAG_32x32 = 0x1, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAG_64x64 = 0x2, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAG_128x128 = 0x4, + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAG_256x256 = 0x8, +} D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION +{ + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_IDENTITY = 0, + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_TRANSLATION = 1, + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_ROTZOOM = 2, + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_AFFINE = 3, +} D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION; + +typedef enum D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS { + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAG_NONE = 0, // None is supported, reference warp motion arguments are ignored and is_global syntax is false for all references + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAG_IDENTITY = (1 << D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_IDENTITY), + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAG_TRANSLATION = (1 << D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_TRANSLATION), + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAG_ROTZOOM = (1 << D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_ROTZOOM), + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAG_AFFINE = (1 << D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_AFFINE), +} D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAGS { + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_NONE = 0, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_QUANTIZATION = 0x1, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_QUANTIZATION_DELTA = 0x2, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_LOOP_FILTER = 0x4, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_LOOP_FILTER_DELTA = 0x8, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_CDEF_DATA = 0x10, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_CONTEXT_UPDATE_TILE_ID = 0x20, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_COMPOUND_PREDICTION_MODE = 0x40, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_PRIMARY_REF_FRAME = 0x80, + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAG_REFERENCE_INDICES = 0x100, +} D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION_SUPPORT { + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS SupportedFeatureFlags; + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS RequiredFeatureFlags; + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS_FLAGS SupportedInterpolationFilters; + D3D12_VIDEO_ENCODER_AV1_RESTORATION_SUPPORT_FLAGS SupportedRestorationParams[3][3]; + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAGS SupportedSegmentationModes; + D3D12_VIDEO_ENCODER_AV1_TX_MODE_FLAGS SupportedTxModes[4]; // Different for D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE types + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_BLOCK_SIZE SegmentationBlockSize; + D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES_FLAGS PostEncodeValuesFlags; + UINT MaxTemporalLayers; + UINT MaxSpatialLayers; +} D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION_SUPPORT; + +typedef enum D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE +{ + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_KEY_FRAME = 0, + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_INTER_FRAME = 1, + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_INTRA_ONLY_FRAME = 2, + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_SWITCH_FRAME = 3, +} D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE; + +typedef enum D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS { + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAG_KEY_FRAME = (1 << D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_KEY_FRAME), + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAG_INTER_FRAME = (1 << D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_INTER_FRAME), + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAG_INTRA_ONLY_FRAME = (1 << D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_INTRA_ONLY_FRAME), + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAG_SWITCH_FRAME = (1 << D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_SWITCH_FRAME), +} D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE +{ + D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE_SINGLE_REFERENCE = 0, + D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE_COMPOUND_REFERENCE = 1, +} D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT { + D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE PredictionMode; + UINT MaxUniqueReferencesPerFrame; + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS SupportedFrameTypes; + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS SupportedReferenceWarpedMotionFlags; +} D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT; + +typedef struct D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION { + D3D12_VIDEO_ENCODER_AV1_FEATURE_FLAGS FeatureFlags; + UINT OrderHintBitsMinus1; +} D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION; + +typedef struct D3D12_VIDEO_ENCODER_AV1_SEQUENCE_STRUCTURE +{ + UINT IntraDistance; + UINT InterFramePeriod; +} D3D12_VIDEO_ENCODER_AV1_SEQUENCE_STRUCTURE; + +typedef struct D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_WARPED_MOTION_INFO +{ + D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION TransformationType; + INT TransformationMatrix[8]; + BOOL InvalidAffineSet; // Valid or invalid on affine set +} D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_WARPED_MOTION_INFO; + +typedef struct D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_DESCRIPTOR +{ + UINT ReconstructedPictureResourceIndex; + UINT TemporalLayerIndexPlus1; + UINT SpatialLayerIndexPlus1; + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE FrameType; + // Only used if supported in D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS, ignored by driver otherwise + D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_WARPED_MOTION_INFO WarpedMotionInfo; + UINT OrderHint; + UINT PictureIndex; +} D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_DESCRIPTOR; + +typedef enum D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAGS +{ + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_ERROR_RESILIENT_MODE = 0x1, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_DISABLE_CDF_UPDATE = 0x2, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_PALETTE_ENCODING = 0x4, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_SKIP_MODE = 0x8, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_FRAME_REFERENCE_MOTION_VECTORS = 0x10, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_FORCE_INTEGER_MOTION_VECTORS = 0x20, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ALLOW_INTRA_BLOCK_COPY = 0x40, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_USE_SUPER_RESOLUTION = 0x80, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_DISABLE_FRAME_END_UPDATE_CDF = 0x100, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_FRAME_SEGMENTATION_AUTO = 0x200, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_FRAME_SEGMENTATION_CUSTOM = 0x400, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ENABLE_WARPED_MOTION = 0x800, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_REDUCED_TX_SET = 0x1000, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_MOTION_MODE_SWITCHABLE = 0x2000, + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAG_ALLOW_HIGH_PRECISION_MV = 0x4000, + +} D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_AV1_RESTORATION_CONFIG { + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TYPE FrameRestorationType[3]; + D3D12_VIDEO_ENCODER_AV1_RESTORATION_TILESIZE LoopRestorationPixelSize[3]; +} D3D12_VIDEO_ENCODER_AV1_RESTORATION_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_AV1_SEGMENT_DATA { + UINT64 EnabledFeatures; // D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE_FLAGS + // For the enabled features in EnabledFeatures, the array below + // is indexed by D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MODE - 1 + INT64 FeatureValue[8]; +} D3D12_VIDEO_ENCODER_AV1_SEGMENT_DATA; + +typedef struct D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_CONFIG { + UINT64 UpdateMap; + UINT64 TemporalUpdate; + UINT64 UpdateData; + UINT64 NumSegments; + D3D12_VIDEO_ENCODER_AV1_SEGMENT_DATA SegmentsData[8]; +} D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MAP { + UINT SegmentsMapByteSize; + UINT8* pSegmentsMap; +} D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MAP; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_CONFIG { + UINT64 LoopFilterLevel[2]; + UINT64 LoopFilterLevelU; + UINT64 LoopFilterLevelV; + UINT64 LoopFilterSharpnessLevel; + UINT64 LoopFilterDeltaEnabled; + // loop_filter_delta_update = UpdateRefDelta || UpdateModeDelta + UINT64 UpdateRefDelta; + INT64 RefDeltas[8]; + UINT64 UpdateModeDelta; + INT64 ModeDeltas[2]; +} D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_DELTA_CONFIG { + UINT64 DeltaLFPresent; + UINT64 DeltaLFMulti; + UINT64 DeltaLFRes; +} D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_DELTA_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_CONFIG { + UINT64 BaseQIndex; + INT64 YDCDeltaQ; + INT64 UDCDeltaQ; + INT64 UACDeltaQ; + INT64 VDCDeltaQ; + INT64 VACDeltaQ; + UINT64 UsingQMatrix; + UINT64 QMY; + UINT64 QMU; + UINT64 QMV; +} D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_DELTA_CONFIG { + UINT64 DeltaQPresent; + UINT64 DeltaQRes; +} D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_DELTA_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_AV1_CDEF_CONFIG { + UINT64 CdefBits; + UINT64 CdefDampingMinus3; + UINT64 CdefYPriStrength[8]; + UINT64 CdefUVPriStrength[8]; + UINT64 CdefYSecStrength[8]; + UINT64 CdefUVSecStrength[8]; +} D3D12_VIDEO_ENCODER_AV1_CDEF_CONFIG; + +typedef struct D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA +{ + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_FLAGS Flags; + D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE FrameType; + D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE CompoundPredictionType; + D3D12_VIDEO_ENCODER_AV1_INTERPOLATION_FILTERS InterpolationFilter; + D3D12_VIDEO_ENCODER_AV1_RESTORATION_CONFIG FrameRestorationConfig; + D3D12_VIDEO_ENCODER_AV1_TX_MODE TxMode; + UINT SuperResDenominator; + UINT OrderHint; + UINT PictureIndex; + UINT TemporalLayerIndexPlus1; + UINT SpatialLayerIndexPlus1; + D3D12_VIDEO_ENCODER_AV1_REFERENCE_PICTURE_DESCRIPTOR ReferenceFramesReconPictureDescriptors[8]; + UINT ReferenceIndices[7]; + UINT PrimaryRefFrame; + UINT RefreshFrameFlags; + D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_CONFIG LoopFilter; + D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_DELTA_CONFIG LoopFilterDelta; + D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_CONFIG Quantization; + D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_DELTA_CONFIG QuantizationDelta; + D3D12_VIDEO_ENCODER_AV1_CDEF_CONFIG CDEF; + UINT QPMapValuesCount; + [annotation("_Field_size_full_(QPMapValuesCount)")] INT16* pRateControlQPMap; + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_CONFIG CustomSegmentation; + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_MAP CustomSegmentsMap; +} D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA; + +typedef struct D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES +{ + UINT64 RowCount; + UINT64 ColCount; + UINT64 RowHeights[D3D12_VIDEO_ENCODER_AV1_MAX_TILE_ROWS]; + UINT64 ColWidths[D3D12_VIDEO_ENCODER_AV1_MAX_TILE_COLS]; + UINT64 ContextUpdateTileId; +} D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES; + +typedef struct D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES +{ + UINT64 CompoundPredictionType; // D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE + D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_CONFIG LoopFilter; + D3D12_VIDEO_ENCODER_CODEC_AV1_LOOP_FILTER_DELTA_CONFIG LoopFilterDelta; + D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_CONFIG Quantization; + D3D12_VIDEO_ENCODER_CODEC_AV1_QUANTIZATION_DELTA_CONFIG QuantizationDelta; + D3D12_VIDEO_ENCODER_AV1_CDEF_CONFIG CDEF; + D3D12_VIDEO_ENCODER_AV1_SEGMENTATION_CONFIG SegmentationConfig; + UINT64 PrimaryRefFrame; // Aligned to 64 for use of post encode metadata with predication + UINT64 ReferenceIndices[7]; // Aligned to 64 for use of post encode metadata with predication +} D3D12_VIDEO_ENCODER_AV1_POST_ENCODE_VALUES; + +// +// Rate control API +// + +typedef enum D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE +{ + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_ABSOLUTE_QP_MAP = 0, + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_CQP = 1, + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_CBR = 2, + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_VBR = 3, + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_QVBR = 4, +} D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE; + +typedef enum D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS +{ + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_DELTA_QP = 0x1, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_FRAME_ANALYSIS = 0x2, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_QP_RANGE = 0x4, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_INITIAL_QP = 0x8, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_MAX_FRAME_SIZE = 0x10, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_VBV_SIZES = 0x20, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_EXTENSION1_SUPPORT = 0x40, + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_QUALITY_VS_SPEED = 0x80, +} D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP { + UINT ConstantQP_FullIntracodedFrame; + UINT ConstantQP_InterPredictedFrame_PrevRefOnly; + UINT ConstantQP_InterPredictedFrame_BiDirectionalRef; +} D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP1 { + UINT ConstantQP_FullIntracodedFrame; + UINT ConstantQP_InterPredictedFrame_PrevRefOnly; + UINT ConstantQP_InterPredictedFrame_BiDirectionalRef; + UINT QualityVsSpeed; +} D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP1; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetBitRate; + UINT64 VBVCapacity; + UINT64 InitialVBVFullness; +} D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR1 { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetBitRate; + UINT64 VBVCapacity; + UINT64 InitialVBVFullness; + UINT QualityVsSpeed; +} D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR1; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetAvgBitRate; + UINT64 PeakBitRate; + UINT64 VBVCapacity; + UINT64 InitialVBVFullness; +} D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR1 { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetAvgBitRate; + UINT64 PeakBitRate; + UINT64 VBVCapacity; + UINT64 InitialVBVFullness; + UINT QualityVsSpeed; +} D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR1; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR { + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetAvgBitRate; + UINT64 PeakBitRate; + UINT ConstantQualityTarget; +} D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR1 +{ + UINT InitialQP; + UINT MinQP; + UINT MaxQP; + UINT64 MaxFrameBitSize; + UINT64 TargetAvgBitRate; + UINT64 PeakBitRate; + UINT ConstantQualityTarget; + UINT64 VBVCapacity; + UINT64 InitialVBVFullness; + UINT QualityVsSpeed; +} D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR1; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_ABSOLUTE_QP_MAP { + UINT QualityVsSpeed; +} D3D12_VIDEO_ENCODER_RATE_CONTROL_ABSOLUTE_QP_MAP; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS +{ + UINT DataSize; + union + { + const D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP* pConfiguration_CQP; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR* pConfiguration_CBR; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR* pConfiguration_VBR; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR* pConfiguration_QVBR; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP1* pConfiguration_CQP1; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR1* pConfiguration_CBR1; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR1* pConfiguration_VBR1; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR1* pConfiguration_QVBR1; + const D3D12_VIDEO_ENCODER_RATE_CONTROL_ABSOLUTE_QP_MAP* pConfiguration_AbsoluteQPMap; + }; +} D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS; + +typedef struct D3D12_VIDEO_ENCODER_RATE_CONTROL { + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE Mode; + D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAGS Flags; + D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS ConfigParams; + DXGI_RATIONAL TargetFrameRate; +} D3D12_VIDEO_ENCODER_RATE_CONTROL; + +// +// Video Encoder support API +// + +typedef enum D3D12_VIDEO_ENCODER_CODEC +{ + D3D12_VIDEO_ENCODER_CODEC_H264 = 0, + D3D12_VIDEO_ENCODER_CODEC_HEVC = 1, + D3D12_VIDEO_ENCODER_CODEC_AV1 = 2, +} D3D12_VIDEO_ENCODER_CODEC; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC +{ + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + BOOL IsSupported; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC; + +typedef enum D3D12_VIDEO_ENCODER_PROFILE_H264 +{ + D3D12_VIDEO_ENCODER_PROFILE_H264_MAIN = 0, + D3D12_VIDEO_ENCODER_PROFILE_H264_HIGH = 1, + D3D12_VIDEO_ENCODER_PROFILE_H264_HIGH_10 = 2, +} D3D12_VIDEO_ENCODER_PROFILE_H264; + +typedef enum D3D12_VIDEO_ENCODER_PROFILE_HEVC +{ + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN = 0, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN10 = 1, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN12 = 2, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN10_422 = 3, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN12_422 = 4, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN_444 = 5, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN10_444 = 6, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN12_444 = 7, + D3D12_VIDEO_ENCODER_PROFILE_HEVC_MAIN16_444 = 8, +} D3D12_VIDEO_ENCODER_PROFILE_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_PROFILE_DESC +{ + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_PROFILE_H264* pH264Profile; + D3D12_VIDEO_ENCODER_PROFILE_HEVC* pHEVCProfile; + D3D12_VIDEO_ENCODER_AV1_PROFILE* pAV1Profile; + }; +} D3D12_VIDEO_ENCODER_PROFILE_DESC; + +typedef enum D3D12_VIDEO_ENCODER_LEVELS_H264 +{ + D3D12_VIDEO_ENCODER_LEVELS_H264_1 = 0, + D3D12_VIDEO_ENCODER_LEVELS_H264_1b = 1, + D3D12_VIDEO_ENCODER_LEVELS_H264_11 = 2, + D3D12_VIDEO_ENCODER_LEVELS_H264_12 = 3, + D3D12_VIDEO_ENCODER_LEVELS_H264_13 = 4, + D3D12_VIDEO_ENCODER_LEVELS_H264_2 = 5, + D3D12_VIDEO_ENCODER_LEVELS_H264_21 = 6, + D3D12_VIDEO_ENCODER_LEVELS_H264_22 = 7, + D3D12_VIDEO_ENCODER_LEVELS_H264_3 = 8, + D3D12_VIDEO_ENCODER_LEVELS_H264_31 = 9, + D3D12_VIDEO_ENCODER_LEVELS_H264_32 = 10, + D3D12_VIDEO_ENCODER_LEVELS_H264_4 = 11, + D3D12_VIDEO_ENCODER_LEVELS_H264_41 = 12, + D3D12_VIDEO_ENCODER_LEVELS_H264_42 = 13, + D3D12_VIDEO_ENCODER_LEVELS_H264_5 = 14, + D3D12_VIDEO_ENCODER_LEVELS_H264_51 = 15, + D3D12_VIDEO_ENCODER_LEVELS_H264_52 = 16, + D3D12_VIDEO_ENCODER_LEVELS_H264_6 = 17, + D3D12_VIDEO_ENCODER_LEVELS_H264_61 = 18, + D3D12_VIDEO_ENCODER_LEVELS_H264_62 = 19, +} D3D12_VIDEO_ENCODER_LEVELS_H264; + +typedef enum D3D12_VIDEO_ENCODER_TIER_HEVC +{ + D3D12_VIDEO_ENCODER_TIER_HEVC_MAIN = 0, + D3D12_VIDEO_ENCODER_TIER_HEVC_HIGH = 1, +} D3D12_VIDEO_ENCODER_TIER_HEVC; + +typedef enum D3D12_VIDEO_ENCODER_LEVELS_HEVC +{ + D3D12_VIDEO_ENCODER_LEVELS_HEVC_1 = 0, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_2 = 1, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_21 = 2, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_3 = 3, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_31 = 4, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_4 = 5, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_41 = 6, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_5 = 7, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_51 = 8, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_52 = 9, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_6 = 10, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_61 = 11, + D3D12_VIDEO_ENCODER_LEVELS_HEVC_62 = 12, +} D3D12_VIDEO_ENCODER_LEVELS_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC +{ + D3D12_VIDEO_ENCODER_LEVELS_HEVC Level; + D3D12_VIDEO_ENCODER_TIER_HEVC Tier; +} D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_LEVEL_SETTING +{ + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_LEVELS_H264* pH264LevelSetting; + D3D12_VIDEO_ENCODER_LEVEL_TIER_CONSTRAINTS_HEVC* pHEVCLevelSetting; + D3D12_VIDEO_ENCODER_AV1_LEVEL_TIER_CONSTRAINTS* pAV1LevelSetting; + }; +} D3D12_VIDEO_ENCODER_LEVEL_SETTING; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL +{ + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; // input + BOOL IsSupported; // output + D3D12_VIDEO_ENCODER_LEVEL_SETTING MinSupportedLevel; // output + D3D12_VIDEO_ENCODER_LEVEL_SETTING MaxSupportedLevel; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_PROFILE_LEVEL; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC +{ + UINT Width; + UINT Height; +} D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC +{ + UINT WidthRatio; + UINT HeightRatio; +} D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT +{ + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + UINT ResolutionRatiosCount; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION_RATIOS_COUNT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION +{ + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + UINT ResolutionRatiosCount; // input + BOOL IsSupported; // output + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC MinResolutionSupported; // output + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC MaxResolutionSupported; // output + UINT ResolutionWidthMultipleRequirement; // output + UINT ResolutionHeightMultipleRequirement; // output + [annotation("_Field_size_full_(ResolutionRatiosCount)")] D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_RATIO_DESC* pResolutionRatios; +} D3D12_FEATURE_DATA_VIDEO_ENCODER_OUTPUT_RESOLUTION; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT +{ + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; // input + DXGI_FORMAT Format; // input + BOOL IsSupported; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE +{ + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE RateControlMode; // input + BOOL IsSupported; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_RATE_CONTROL_MODE; + +typedef enum D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE +{ + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE_NONE = 0, + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE_ROW_BASED = 1, +} D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE { + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; // input + D3D12_VIDEO_ENCODER_LEVEL_SETTING Level; // input + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE IntraRefreshMode; // input + BOOL IsSupported; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_INTRA_REFRESH_MODE; + +typedef enum D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE +{ + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_FULL_FRAME = 0, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_BYTES_PER_SUBREGION = 1, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_SQUARE_UNITS_PER_SUBREGION_ROW_UNALIGNED = 2, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_PARTITIONING_ROWS_PER_SUBREGION = 3, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_PARTITIONING_SUBREGIONS_PER_FRAME = 4, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_GRID_PARTITION = 5, + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_CONFIGURABLE_GRID_PARTITION = 6, +} D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE +{ + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; // input + D3D12_VIDEO_ENCODER_LEVEL_SETTING Level; // input + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionMode; // input + BOOL IsSupported; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE; + +typedef enum D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAGS +{ + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_NOT_SPECIFIED = 0x1, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_CODEC_CONSTRAINT = 0x2, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_HARDWARE_CONSTRAINT = 0x4, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_ROWS_COUNT = 0x8, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_COLS_COUNT = 0x10, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_WIDTH = 0x20, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_AREA = 0x40, + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAG_TOTAL_TILES = 0x80, + +} D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT +{ + BOOL Use128SuperBlocks; + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES TilesConfiguration; + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_VALIDATION_FLAGS ValidationFlags; + UINT MinTileRows; + UINT MaxTileRows; + UINT MinTileCols; + UINT MaxTileCols; + UINT MinTileWidth; + UINT MaxTileWidth; + UINT MinTileArea; + UINT MaxTileArea; + UINT TileSizeBytesMinus1; +} D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT; + +typedef struct D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_AV1_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT* pAV1Support; + }; +} D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG +{ + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; // input + D3D12_VIDEO_ENCODER_LEVEL_SETTING Level; // input + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionMode; // input + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC FrameResolution; // input + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG_SUPPORT CodecSupport; // input/output + BOOL IsSupported; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_CONFIG; + +typedef enum D3D12_VIDEO_ENCODER_HEAP_FLAGS +{ + D3D12_VIDEO_ENCODER_HEAP_FLAG_NONE = 0x0, +} D3D12_VIDEO_ENCODER_HEAP_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_HEAP_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_HEAP_DESC +{ + UINT NodeMask; + D3D12_VIDEO_ENCODER_HEAP_FLAGS Flags; + D3D12_VIDEO_ENCODER_CODEC EncodeCodec; + D3D12_VIDEO_ENCODER_PROFILE_DESC EncodeProfile; + D3D12_VIDEO_ENCODER_LEVEL_SETTING EncodeLevel; + UINT ResolutionsListCount; + [annotation("_Field_size_full_(ResolutionsListCount)")] const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC* pResolutionList; +} D3D12_VIDEO_ENCODER_HEAP_DESC; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE { + D3D12_VIDEO_ENCODER_HEAP_DESC HeapDesc; // input + BOOL IsSupported; // output + UINT64 MemoryPoolL0Size; // output + UINT64 MemoryPoolL1Size; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_HEAP_SIZE; + +typedef enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS +{ + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_CABAC_ENCODING_SUPPORT = 0x1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_INTRA_SLICE_CONSTRAINED_ENCODING_SUPPORT = 0x2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_BFRAME_LTR_COMBINED_SUPPORT = 0x4, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_ADAPTIVE_8x8_TRANSFORM_ENCODING_SUPPORT = 0x8, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_DIRECT_SPATIAL_ENCODING_SUPPORT = 0x10, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_DIRECT_TEMPORAL_ENCODING_SUPPORT = 0x20, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_CONSTRAINED_INTRAPREDICTION_SUPPORT = 0x40, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_NUM_REF_IDX_ACTIVE_OVERRIDE_FLAG_SLICE_SUPPORT = 0x80, +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_1_DISABLE_ALL_SLICE_BLOCK_EDGES = 1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_2_DISABLE_SLICE_BOUNDARIES_BLOCKS = 2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_3_USE_TWO_STAGE_DEBLOCKING = 3, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_4_DISABLE_CHROMA_BLOCK_EDGES = 4, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_5_DISABLE_CHROMA_BLOCK_EDGES_AND_LUMA_BOUNDARIES = 5, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_6_DISABLE_CHROMA_BLOCK_EDGES_AND_USE_LUMA_TWO_STAGE_DEBLOCKING = 6, +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES; + +typedef enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED = (1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_0_ALL_LUMA_CHROMA_SLICE_BLOCK_EDGES_ALWAYS_FILTERED), + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_1_DISABLE_ALL_SLICE_BLOCK_EDGES = (1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_1_DISABLE_ALL_SLICE_BLOCK_EDGES), + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_2_DISABLE_SLICE_BOUNDARIES_BLOCKS = (1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_2_DISABLE_SLICE_BOUNDARIES_BLOCKS), + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_3_USE_TWO_STAGE_DEBLOCKING = (1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_3_USE_TWO_STAGE_DEBLOCKING), + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_4_DISABLE_CHROMA_BLOCK_EDGES = (1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_4_DISABLE_CHROMA_BLOCK_EDGES), + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_5_DISABLE_CHROMA_BLOCK_EDGES_AND_LUMA_BOUNDARIES = (1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_5_DISABLE_CHROMA_BLOCK_EDGES_AND_LUMA_BOUNDARIES), + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAG_6_DISABLE_CHROMA_BLOCK_EDGES_AND_USE_LUMA_TWO_STAGE_DEBLOCKING = (1 << D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_6_DISABLE_CHROMA_BLOCK_EDGES_AND_USE_LUMA_TWO_STAGE_DEBLOCKING), +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264 { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAGS SupportFlags; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODE_FLAGS DisableDeblockingFilterSupportedModes; +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264; + +typedef enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS +{ + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_BFRAME_LTR_COMBINED_SUPPORT = 0x1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_INTRA_SLICE_CONSTRAINED_ENCODING_SUPPORT = 0x2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CONSTRAINED_INTRAPREDICTION_SUPPORT = 0x4, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_SAO_FILTER_SUPPORT = 0x8, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_ASYMETRIC_MOTION_PARTITION_SUPPORT = 0x10, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_ASYMETRIC_MOTION_PARTITION_REQUIRED = 0x20, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_SUPPORT = 0x40, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_DISABLING_LOOP_FILTER_ACROSS_SLICES_SUPPORT = 0x80, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_P_FRAMES_IMPLEMENTED_AS_LOW_DELAY_B_FRAMES = 0x100, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_NUM_REF_IDX_ACTIVE_OVERRIDE_FLAG_SLICE_SUPPORT = 0x200, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_ROTATION_ENABLED_SUPPORT = 0x400, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_ROTATION_ENABLED_REQUIRED = 0x800, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_CONTEXT_ENABLED_SUPPORT = 0x1000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_TRANSFORM_SKIP_CONTEXT_ENABLED_REQUIRED = 0x2000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_IMPLICIT_RDPCM_ENABLED_SUPPORT = 0x4000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_IMPLICIT_RDPCM_ENABLED_REQUIRED = 0x8000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_EXPLICIT_RDPCM_ENABLED_SUPPORT = 0x10000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_EXPLICIT_RDPCM_ENABLED_REQUIRED = 0x20000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_EXTENDED_PRECISION_PROCESSING_SUPPORT = 0x40000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_EXTENDED_PRECISION_PROCESSING_REQUIRED = 0x80000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_INTRA_SMOOTHING_DISABLED_SUPPORT = 0x100000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_INTRA_SMOOTHING_DISABLED_REQUIRED = 0x200000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_HIGH_PRECISION_OFFSETS_ENABLED_SUPPORT = 0x400000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_HIGH_PRECISION_OFFSETS_ENABLED_REQUIRED = 0x800000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_PERSISTENT_RICE_ADAPTATION_ENABLED_SUPPORT = 0x1000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_PERSISTENT_RICE_ADAPTATION_ENABLED_REQUIRED = 0x2000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CABAC_BYPASS_ALIGNMENT_ENABLED_SUPPORT = 0x4000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CABAC_BYPASS_ALIGNMENT_ENABLED_REQUIRED = 0x8000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CROSS_COMPONENT_PREDICTION_ENABLED_FLAG_SUPPORT = 0x10000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CROSS_COMPONENT_PREDICTION_ENABLED_FLAG_REQUIRED = 0x20000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CHROMA_QP_OFFSET_LIST_ENABLED_FLAG_SUPPORT = 0x40000000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_CHROMA_QP_OFFSET_LIST_ENABLED_FLAG_REQUIRED = 0x80000000, // 2^31 - 32 bit integer enum type + +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_8x8 = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_16x16 = 1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_32x32 = 2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE_64x64 = 3, +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE; + +typedef enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_4x4 = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_8x8 = 1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_16x16 = 2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE_32x32 = 3, +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS SupportFlags; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MinLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MaxLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MinLumaTransformUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MaxLumaTransformUnitSize; + UCHAR max_transform_hierarchy_depth_inter; + UCHAR max_transform_hierarchy_depth_intra; +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC; + + +typedef enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS1 +{ + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG1_NONE = 0x0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG1_SEPARATE_COLOUR_PLANE_SUPPORT = 0x1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG1_SEPARATE_COLOUR_PLANE_REQUIRED = 0x2, +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS1; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS1)") + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC1 { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS SupportFlags; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MinLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MaxLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MinLumaTransformUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MaxLumaTransformUnitSize; + UCHAR max_transform_hierarchy_depth_inter; + UCHAR max_transform_hierarchy_depth_intra; + UINT allowed_diff_cu_chroma_qp_offset_depth_values; + UINT allowed_log2_sao_offset_scale_luma_values; + UINT allowed_log2_sao_offset_scale_chroma_values; + UINT allowed_log2_max_transform_skip_block_size_minus2_values; + UINT allowed_chroma_qp_offset_list_len_minus1_values; + UINT allowed_cb_qp_offset_list_values[6]; + UINT allowed_cr_qp_offset_list_values[6]; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAGS1 SupportFlags1; +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC1; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264* pH264Support; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC* pHEVCSupport; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC1* pHEVCSupport1; + D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION_SUPPORT* pAV1Support; + }; +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT { + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; // input + BOOL IsSupported; // output + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT CodecSupportLimits; // input/output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264 { + UINT MaxL0ReferencesForP; + UINT MaxL0ReferencesForB; + UINT MaxL1ReferencesForB; + UINT MaxLongTermReferences; + UINT MaxDPBCapacity; +} D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC { + UINT MaxL0ReferencesForP; + UINT MaxL0ReferencesForB; + UINT MaxL1ReferencesForB; + UINT MaxLongTermReferences; + UINT MaxDPBCapacity; +} D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT { + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_H264* pH264Support; + D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT_HEVC* pHEVCSupport; + D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT* pAV1Support; + }; +} D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT { + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; // input + BOOL IsSupported; // output + D3D12_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT PictureSupport; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_CODEC_PICTURE_CONTROL_SUPPORT; + +typedef enum D3D12_VIDEO_ENCODER_SUPPORT_FLAGS +{ + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_GENERAL_SUPPORT_OK = 0x1, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_RECONFIGURATION_AVAILABLE = 0x2, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RESOLUTION_RECONFIGURATION_AVAILABLE = 0x4, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_VBV_SIZE_CONFIG_AVAILABLE = 0x8, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_FRAME_ANALYSIS_AVAILABLE = 0x10, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RECONSTRUCTED_FRAMES_REQUIRE_TEXTURE_ARRAYS = 0x20, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_DELTA_QP_AVAILABLE = 0x40, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_SUBREGION_LAYOUT_RECONFIGURATION_AVAILABLE = 0x80, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_ADJUSTABLE_QP_RANGE_AVAILABLE = 0x100, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_INITIAL_QP_AVAILABLE = 0x200, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_MAX_FRAME_SIZE_AVAILABLE = 0x400, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_SEQUENCE_GOP_RECONFIGURATION_AVAILABLE = 0x800, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_MOTION_ESTIMATION_PRECISION_MODE_LIMIT_AVAILABLE = 0x1000, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_EXTENSION1_SUPPORT = 0x2000, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_QUALITY_VS_SPEED_AVAILABLE = 0x4000, + D3D12_VIDEO_ENCODER_SUPPORT_FLAG_READABLE_RECONSTRUCTED_PICTURE_LAYOUT_AVAILABLE = 0x8000, + +} D3D12_VIDEO_ENCODER_SUPPORT_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_SUPPORT_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS +{ + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_USE_CONSTRAINED_INTRAPREDICTION = 0x1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_USE_ADAPTIVE_8x8_TRANSFORM = 0x2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_ENABLE_CABAC_ENCODING = 0x4, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_ALLOW_REQUEST_INTRA_CONSTRAINED_SLICES = 0x8, +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS)") + +typedef enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES_DISABLED = 0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES_TEMPORAL = 1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES_SPATIAL = 2, +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264 +{ + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAGS ConfigurationFlags; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_DIRECT_MODES DirectModeConfig; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_SLICES_DEBLOCKING_MODES DisableDeblockingFilterConfig; +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264; + +typedef enum D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS +{ + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_DISABLE_LOOP_FILTER_ACROSS_SLICES = 0x1, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ALLOW_REQUEST_INTRA_CONSTRAINED_SLICES = 0x2, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ENABLE_SAO_FILTER = 0x4, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ENABLE_LONG_TERM_REFERENCES = 0x8, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_USE_ASYMETRIC_MOTION_PARTITION = 0x10, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_ENABLE_TRANSFORM_SKIPPING = 0x20, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_USE_CONSTRAINED_INTRAPREDICTION = 0x40, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_TRANSFORM_SKIP_ROTATION = 0x80, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_TRANSFORM_SKIP_CONTEXT = 0x100, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_IMPLICIT_RDPCM = 0x200, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_EXPLICIT_RDPCM = 0x400, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_EXTENDED_PRECISION_PROCESSING = 0x800, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_INTRA_SMOOTHING_DISABLED = 0x1000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_HIGH_PRECISION_OFFSETS = 0x2000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_PERSISTENT_RICE_ADAPTATION = 0x4000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_CABAC_BYPASS_ALIGNMENT = 0x8000, + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAG_SEPARATE_COLOUR_PLANE = 0x10000, +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_FLAGS ConfigurationFlags; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MinLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_CUSIZE MaxLumaCodingUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MinLumaTransformUnitSize; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC_TUSIZE MaxLumaTransformUnitSize; + UCHAR max_transform_hierarchy_depth_inter; + UCHAR max_transform_hierarchy_depth_intra; +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION +{ + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264* pH264Config; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_HEVC* pHEVCConfig; + D3D12_VIDEO_ENCODER_AV1_CODEC_CONFIGURATION* pAV1Config; + }; +} D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION; + +typedef struct D3D12_VIDEO_ENCODER_INTRA_REFRESH +{ + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE Mode; + UINT IntraRefreshDuration; +} D3D12_VIDEO_ENCODER_INTRA_REFRESH; + + +typedef enum D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE +{ + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_MAXIMUM = 0, + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_FULL_PIXEL = 1, + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_HALF_PIXEL = 2, + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_QUARTER_PIXEL = 3, + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE_EIGHTH_PIXEL = 4, +} D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS +{ + UINT MaxSubregionsNumber; + UINT MaxIntraRefreshFrameDuration; + UINT SubregionBlockPixelsSize; + UINT QPMapRegionPixelsSize; +} D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS; + +typedef enum D3D12_VIDEO_ENCODER_VALIDATION_FLAGS +{ + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_CODEC_NOT_SUPPORTED = 0x1, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_INPUT_FORMAT_NOT_SUPPORTED = 0x8, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_CODEC_CONFIGURATION_NOT_SUPPORTED = 0x10, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_RATE_CONTROL_MODE_NOT_SUPPORTED = 0x20, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_RATE_CONTROL_CONFIGURATION_NOT_SUPPORTED = 0x40, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_INTRA_REFRESH_MODE_NOT_SUPPORTED = 0x80, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_SUBREGION_LAYOUT_MODE_NOT_SUPPORTED = 0x100, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_RESOLUTION_NOT_SUPPORTED_IN_LIST = 0x200, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_GOP_STRUCTURE_NOT_SUPPORTED = 0x800, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_SUBREGION_LAYOUT_DATA_NOT_SUPPORTED = 0x1000, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_QPMAP_NOT_SUPPORTED = 0x2000, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_DIRTY_REGIONS_NOT_SUPPORTED = 0x4000, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_MOTION_SEARCH_NOT_SUPPORTED = 0x8000, + D3D12_VIDEO_ENCODER_VALIDATION_FLAG_FRAME_ANALYSIS_NOT_SUPPORTED = 0x10000, +} D3D12_VIDEO_ENCODER_VALIDATION_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_VALIDATION_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264 +{ + UINT GOPLength; + UINT PPicturePeriod; + UCHAR pic_order_cnt_type; + UCHAR log2_max_frame_num_minus4; + UCHAR log2_max_pic_order_cnt_lsb_minus4; +} D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264; + +typedef struct D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC +{ + UINT GOPLength; + UINT PPicturePeriod; + UCHAR log2_max_pic_order_cnt_lsb_minus4; +} D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE +{ + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_H264* pH264GroupOfPictures; + D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE_HEVC* pHEVCGroupOfPictures; + D3D12_VIDEO_ENCODER_AV1_SEQUENCE_STRUCTURE* pAV1SequenceStructure; + }; +} D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT +{ + // input + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION CodecConfiguration; + D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE CodecGopSequence; + D3D12_VIDEO_ENCODER_RATE_CONTROL RateControl; + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE IntraRefresh; + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionFrameEncoding; + UINT ResolutionsListCount; + const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC* pResolutionList; + UINT MaxReferenceFramesInDPB; + + // single value output + D3D12_VIDEO_ENCODER_VALIDATION_FLAGS ValidationFlags; + D3D12_VIDEO_ENCODER_SUPPORT_FLAGS SupportFlags; + D3D12_VIDEO_ENCODER_PROFILE_DESC SuggestedProfile; + D3D12_VIDEO_ENCODER_LEVEL_SETTING SuggestedLevel; // assuming max resolution from input list + + // resolution dependent output + [annotation("_Field_size_full_(ResolutionsListCount)")] D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS* pResolutionDependentSupport; +} D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES +{ + // Mutually exclusive options according to selected mode + union + { + // Use with mode: D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_BYTES_PER_SUBREGION + UINT MaxBytesPerSlice; + + // Use with mode: D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_SQUARE_UNITS_PER_SUBREGION_ROW_UNALIGNED + UINT NumberOfCodingUnitsPerSlice; + + // Use with mode: D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_PARTITIONING_ROWS_PER_SUBREGION + UINT NumberOfRowsPerSlice; + + // Use with mode: D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_PARTITIONING_SUBREGIONS_PER_FRAME + UINT NumberOfSlicesPerFrame; + }; +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA +{ + UINT DataSize; + union + { + const D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES* pSlicesPartition_H264; + const D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES* pSlicesPartition_HEVC; + const D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES* pTilesPartition_AV1; + }; + +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT1 +{ + /* Below match existing D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT */ + UINT NodeIndex; + D3D12_VIDEO_ENCODER_CODEC Codec; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION CodecConfiguration; + D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE CodecGopSequence; + D3D12_VIDEO_ENCODER_RATE_CONTROL RateControl; + D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE IntraRefresh; + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SubregionFrameEncoding; + UINT ResolutionsListCount; + const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC* pResolutionList; + UINT MaxReferenceFramesInDPB; + D3D12_VIDEO_ENCODER_VALIDATION_FLAGS ValidationFlags; + D3D12_VIDEO_ENCODER_SUPPORT_FLAGS SupportFlags; + D3D12_VIDEO_ENCODER_PROFILE_DESC SuggestedProfile; + D3D12_VIDEO_ENCODER_LEVEL_SETTING SuggestedLevel; + [annotation("_Field_size_full_(ResolutionsListCount)")] D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS* pResolutionDependentSupport; + + /* Below are new arguments for D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT1 */ + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA SubregionFrameEncodingData; // input + UINT MaxQualityVsSpeed; +} D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT1; + +typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS +{ + UINT NodeIndex; // input + D3D12_VIDEO_ENCODER_CODEC Codec; // input + D3D12_VIDEO_ENCODER_PROFILE_DESC Profile; // input + DXGI_FORMAT InputFormat; // input + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC PictureTargetResolution; // input + + BOOL IsSupported; // output + UINT CompressedBitstreamBufferAccessAlignment; // output + UINT EncoderMetadataBufferAccessAlignment; // output + UINT MaxEncoderOutputMetadataBufferSize; // output +} D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOURCE_REQUIREMENTS; + +// +// Video Encoder creation API +// + +typedef enum D3D12_VIDEO_ENCODER_FLAGS +{ + D3D12_VIDEO_ENCODER_FLAG_NONE = 0x0, +} D3D12_VIDEO_ENCODER_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_DESC +{ + UINT NodeMask; + D3D12_VIDEO_ENCODER_FLAGS Flags; + D3D12_VIDEO_ENCODER_CODEC EncodeCodec; + D3D12_VIDEO_ENCODER_PROFILE_DESC EncodeProfile; + DXGI_FORMAT InputFormat; + D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION CodecConfiguration; + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE MaxMotionEstimationPrecision; +} D3D12_VIDEO_ENCODER_DESC; + +[uuid(2E0D212D-8DF9-44A6-A770-BB289B182737), object, local, pointer_default(unique)] +interface ID3D12VideoEncoder + : ID3D12Pageable +{ + UINT GetNodeMask(); + D3D12_VIDEO_ENCODER_FLAGS GetEncoderFlags(); + D3D12_VIDEO_ENCODER_CODEC GetCodec(); + HRESULT GetCodecProfile([annotation("_Inout_")] D3D12_VIDEO_ENCODER_PROFILE_DESC dstProfile); + HRESULT GetCodecConfiguration([annotation("_Inout_")] D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION dstCodecConfig); + DXGI_FORMAT GetInputFormat(); + D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE GetMaxMotionEstimationPrecision(); +} + +[uuid(22B35D96-876A-44C0-B25E-FB8C9C7F1C4A), object, local, pointer_default(unique)] +interface ID3D12VideoEncoderHeap + : ID3D12Pageable +{ + UINT GetNodeMask(); + D3D12_VIDEO_ENCODER_HEAP_FLAGS GetEncoderHeapFlags(); + D3D12_VIDEO_ENCODER_CODEC GetCodec(); + HRESULT GetCodecProfile([annotation("_Inout_")] D3D12_VIDEO_ENCODER_PROFILE_DESC dstProfile); + HRESULT GetCodecLevel([annotation("_Inout_")] D3D12_VIDEO_ENCODER_LEVEL_SETTING dstLevel); + UINT GetResolutionListCount(); + HRESULT GetResolutionList( + const UINT ResolutionsListCount, + [annotation("_Out_writes_(ResolutionsListCount)")] D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC* pResolutionList); +} + +[uuid(4243ADB4-3A32-4666-973C-0CCC5625DC44), object, local, pointer_default(unique)] +interface ID3D12VideoDevice3 + : ID3D12VideoDevice2 +{ + + HRESULT CreateVideoEncoder( + [annotation("_In_")] const D3D12_VIDEO_ENCODER_DESC* pDesc, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoEncoder, + [annotation("_COM_Outptr_")] void** ppVideoEncoder); + + HRESULT CreateVideoEncoderHeap( + [annotation("_In_")] const D3D12_VIDEO_ENCODER_HEAP_DESC* pDesc, + [annotation("_In_")] REFIID riid, // Expected: IID_ID3D12VideoEncoderHeap, + [annotation("_COM_Outptr_")] void** ppVideoEncoderHeap); + +} + +// +// Video Encoder operation API +// + + +typedef enum D3D12_VIDEO_ENCODER_FRAME_TYPE_H264 +{ + D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_I_FRAME = 0, + D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_P_FRAME = 1, + D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_B_FRAME = 2, + D3D12_VIDEO_ENCODER_FRAME_TYPE_H264_IDR_FRAME = 3, +} D3D12_VIDEO_ENCODER_FRAME_TYPE_H264; + + +typedef struct D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264 +{ + UINT ReconstructedPictureResourceIndex; + BOOL IsLongTermReference; + UINT LongTermPictureIdx; + UINT PictureOrderCountNumber; + UINT FrameDecodingOrderNumber; + UINT TemporalLayerIndex; +} D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264; + +typedef enum D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS +{ + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAG_REQUEST_INTRA_CONSTRAINED_SLICES = 0x1, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAG_REQUEST_NUM_REF_IDX_ACTIVE_OVERRIDE_FLAG_SLICE = 0x2, +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION +{ + UCHAR memory_management_control_operation; + UINT difference_of_pic_nums_minus1; + UINT long_term_pic_num; + UINT long_term_frame_idx; + UINT max_long_term_frame_idx_plus1; +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION +{ + UCHAR modification_of_pic_nums_idc; + UINT abs_diff_pic_num_minus1; + UINT long_term_pic_num; +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264 +{ + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_FLAGS Flags; + D3D12_VIDEO_ENCODER_FRAME_TYPE_H264 FrameType; + UINT pic_parameter_set_id; + UINT idr_pic_id; + UINT PictureOrderCountNumber; + UINT FrameDecodingOrderNumber; + UINT TemporalLayerIndex; + UINT List0ReferenceFramesCount; + [annotation("_Field_size_full_(List0ReferenceFramesCount)")] UINT* pList0ReferenceFrames; + UINT List1ReferenceFramesCount; + [annotation("_Field_size_full_(List1ReferenceFramesCount)")] UINT* pList1ReferenceFrames; + UINT ReferenceFramesReconPictureDescriptorsCount; + [annotation("_Field_size_full_(ReferenceFramesReconPictureDescriptorsCount)")] D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_H264* pReferenceFramesReconPictureDescriptors; + UCHAR adaptive_ref_pic_marking_mode_flag; + UINT RefPicMarkingOperationsCommandsCount; + [annotation("_Field_size_full_(RefPicMarkingOperationsCommandsCount)")] D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_MARKING_OPERATION* pRefPicMarkingOperationsCommands; + UINT List0RefPicModificationsCount; + [annotation("_Field_size_full_(List0RefPicModificationsCount)")] D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION* pList0RefPicModifications; + UINT List1RefPicModificationsCount; + [annotation("_Field_size_full_(List1RefPicModificationsCount)")] D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264_REFERENCE_PICTURE_LIST_MODIFICATION_OPERATION* pList1RefPicModifications; + UINT QPMapValuesCount; + [annotation("_Field_size_full_(QPMapValuesCount)")] INT8 *pRateControlQPMap; +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264; + +typedef enum D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC +{ + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_I_FRAME = 0, + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_P_FRAME = 1, + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_B_FRAME = 2, + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC_IDR_FRAME = 3, +} D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC +{ + UINT ReconstructedPictureResourceIndex; + BOOL IsRefUsedByCurrentPic; + BOOL IsLongTermReference; + UINT PictureOrderCountNumber; + UINT TemporalLayerIndex; +} D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC; + +typedef enum D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS +{ + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_REQUEST_INTRA_CONSTRAINED_SLICES = 0x1, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_REQUEST_NUM_REF_IDX_ACTIVE_OVERRIDE_FLAG_SLICE = 0x2, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_CROSS_COMPONENT_PREDICTION = 0x4, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAG_CHROMA_QP_OFFSET_LIST = 0x8, +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC +{ + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS Flags; + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC FrameType; + UINT slice_pic_parameter_set_id; + UINT PictureOrderCountNumber; + UINT TemporalLayerIndex; + UINT List0ReferenceFramesCount; + [annotation("_Field_size_full_(List0ReferenceFramesCount)")] UINT* pList0ReferenceFrames; + UINT List1ReferenceFramesCount; + [annotation("_Field_size_full_(List1ReferenceFramesCount)")] UINT* pList1ReferenceFrames; + UINT ReferenceFramesReconPictureDescriptorsCount; + [annotation("_Field_size_full_(ReferenceFramesReconPictureDescriptorsCount)")] D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC* pReferenceFramesReconPictureDescriptors; + UINT List0RefPicModificationsCount; + [annotation("_Field_size_full_(List0RefPicModificationsCount)")] UINT* pList0RefPicModifications; + UINT List1RefPicModificationsCount; + [annotation("_Field_size_full_(List1RefPicModificationsCount)")] UINT* pList1RefPicModifications; + UINT QPMapValuesCount; + [annotation("_Field_size_full_(QPMapValuesCount)")] INT8 *pRateControlQPMap; +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC1 +{ + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC_FLAGS Flags; + D3D12_VIDEO_ENCODER_FRAME_TYPE_HEVC FrameType; + UINT slice_pic_parameter_set_id; + UINT PictureOrderCountNumber; + UINT TemporalLayerIndex; + UINT List0ReferenceFramesCount; + [annotation("_Field_size_full_(List0ReferenceFramesCount)")] UINT* pList0ReferenceFrames; + UINT List1ReferenceFramesCount; + [annotation("_Field_size_full_(List1ReferenceFramesCount)")] UINT* pList1ReferenceFrames; + UINT ReferenceFramesReconPictureDescriptorsCount; + [annotation("_Field_size_full_(ReferenceFramesReconPictureDescriptorsCount)")] D3D12_VIDEO_ENCODER_REFERENCE_PICTURE_DESCRIPTOR_HEVC* pReferenceFramesReconPictureDescriptors; + UINT List0RefPicModificationsCount; + [annotation("_Field_size_full_(List0RefPicModificationsCount)")] UINT* pList0RefPicModifications; + UINT List1RefPicModificationsCount; + [annotation("_Field_size_full_(List1RefPicModificationsCount)")] UINT* pList1RefPicModifications; + UINT QPMapValuesCount; + [annotation("_Field_size_full_(QPMapValuesCount)")] INT8* pRateControlQPMap; + UCHAR diff_cu_chroma_qp_offset_depth; + UCHAR log2_sao_offset_scale_luma; + UCHAR log2_sao_offset_scale_chroma; + UCHAR log2_max_transform_skip_block_size_minus2; + UCHAR chroma_qp_offset_list_len_minus1; + CHAR cb_qp_offset_list[6]; + CHAR cr_qp_offset_list[6]; +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC1; + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA +{ + UINT DataSize; + union + { + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_H264* pH264PicData; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC* pHEVCPicData; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA_HEVC1* pHEVCPicData1; + D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_CODEC_DATA* pAV1PicData; + }; +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA; + +typedef struct D3D12_VIDEO_ENCODE_REFERENCE_FRAMES +{ + UINT NumTexture2Ds; + [annotation("_Field_size_full_(NumTexture2Ds)")] ID3D12Resource** ppTexture2Ds; + [annotation("_Field_size_full_(NumTexture2Ds)")] UINT* pSubresources; +} D3D12_VIDEO_ENCODE_REFERENCE_FRAMES; + +typedef enum D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS +{ + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAG_USED_AS_REFERENCE_PICTURE = 0x1, +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC +{ + UINT IntraRefreshFrameIndex; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_FLAGS Flags; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_CODEC_DATA PictureControlCodecData; + D3D12_VIDEO_ENCODE_REFERENCE_FRAMES ReferenceFrames; +} D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC; + +typedef enum D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS +{ + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_NONE = 0x0, + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_RESOLUTION_CHANGE = 0x1, + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_RATE_CONTROL_CHANGE = 0x2, + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_SUBREGION_LAYOUT_CHANGE = 0x4, + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_REQUEST_INTRA_REFRESH = 0x8, + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAG_GOP_SEQUENCE_CHANGE = 0x10, +} D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC +{ + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_FLAGS Flags; + D3D12_VIDEO_ENCODER_INTRA_REFRESH IntraRefreshConfig; + D3D12_VIDEO_ENCODER_RATE_CONTROL RateControl; + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC PictureTargetResolution; + D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE SelectedLayoutMode; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA FrameSubregionsLayoutData; + D3D12_VIDEO_ENCODER_SEQUENCE_GOP_STRUCTURE CodecGopSequence; +} D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC; + +// +// Video Encoder operation commands API +// + +typedef struct D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS +{ + D3D12_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC SequenceControlDesc; + D3D12_VIDEO_ENCODER_PICTURE_CONTROL_DESC PictureControlDesc; + ID3D12Resource *pInputFrame; + UINT InputFrameSubresource; + UINT CurrentFrameBitstreamMetadataSize; +} D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS; + +typedef struct D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM +{ + ID3D12Resource* pBuffer; + UINT64 FrameStartOffset; +} D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM; + +typedef struct D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE +{ + ID3D12Resource *pReconstructedPicture; + UINT ReconstructedPictureSubresource; +} D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE; + +typedef struct D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA +{ + UINT64 bSize; + UINT64 bStartOffset; + UINT64 bHeaderSize; +} D3D12_VIDEO_ENCODER_FRAME_SUBREGION_METADATA; + +typedef enum D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS +{ + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_NO_ERROR = 0x0, + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_CODEC_PICTURE_CONTROL_NOT_SUPPORTED = 0x1, + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_SUBREGION_LAYOUT_CONFIGURATION_NOT_SUPPORTED = 0x2, + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_INVALID_REFERENCE_PICTURES = 0x4, + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_RECONFIGURATION_REQUEST_NOT_SUPPORTED = 0x8, + D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAG_INVALID_METADATA_BUFFER_SOURCE = 0x10, +} D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS)") + +typedef struct D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS +{ + UINT64 AverageQP; + UINT64 IntraCodingUnitsCount; + UINT64 InterCodingUnitsCount; + UINT64 SkipCodingUnitsCount; + UINT64 AverageMotionEstimationXDirection; + UINT64 AverageMotionEstimationYDirection; +} D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS; + +typedef struct D3D12_VIDEO_ENCODER_OUTPUT_METADATA +{ + UINT64 EncodeErrorFlags; // D3D12_VIDEO_ENCODER_ENCODE_ERROR_FLAGS + D3D12_VIDEO_ENCODER_OUTPUT_METADATA_STATISTICS EncodeStats; + UINT64 EncodedBitstreamWrittenBytesCount; + UINT64 WrittenSubregionsCount; +} D3D12_VIDEO_ENCODER_OUTPUT_METADATA; + +typedef struct D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER +{ + ID3D12Resource* pBuffer; + UINT64 Offset; +} D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER; + +typedef struct D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS +{ + D3D12_VIDEO_ENCODER_CODEC EncoderCodec; + D3D12_VIDEO_ENCODER_PROFILE_DESC EncoderProfile; + DXGI_FORMAT EncoderInputFormat; + D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC EncodedPictureEffectiveResolution; + D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER HWLayoutMetadata; +} D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS; + +typedef struct D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS +{ + D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER ResolvedLayoutMetadata; +} D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS; + +typedef struct D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS +{ + D3D12_VIDEO_ENCODER_COMPRESSED_BITSTREAM Bitstream; + D3D12_VIDEO_ENCODER_RECONSTRUCTED_PICTURE ReconstructedPicture; + D3D12_VIDEO_ENCODER_ENCODE_OPERATION_METADATA_BUFFER EncoderOutputMetadata; +} D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS; + +[uuid(895491e2-e701-46a9-9a1f-8d3480ed867a), object, local, pointer_default(unique)] +interface ID3D12VideoEncodeCommandList2 + : ID3D12VideoEncodeCommandList1 +{ + void EncodeFrame( + [annotation("_In_")] ID3D12VideoEncoder* pEncoder, + [annotation("_In_")] ID3D12VideoEncoderHeap *pHeap, + [annotation("_In_")] const D3D12_VIDEO_ENCODER_ENCODEFRAME_INPUT_ARGUMENTS *pInputArguments, + [annotation("_In_")] const D3D12_VIDEO_ENCODER_ENCODEFRAME_OUTPUT_ARGUMENTS *pOutputArguments); + + void ResolveEncoderOutputMetadata( + [annotation("_In_")] const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_INPUT_ARGUMENTS* pInputArguments, + [annotation("_In_")] const D3D12_VIDEO_ENCODER_RESOLVE_METADATA_OUTPUT_ARGUMENTS* pOutputArguments); +} + + +[uuid(7f027b22-1515-4e85-aa0d-026486580576), object, local, pointer_default(unique)] +interface ID3D12VideoEncodeCommandList3 + : ID3D12VideoEncodeCommandList2 +{ + + void Barrier( + UINT32 NumBarrierGroups, + [annotation("_In_reads_(NumBarrierGroups)")] const D3D12_BARRIER_GROUP *pBarrierGroups + ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */") +#pragma endregion + +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDecoderHeap,0x0946B7C9,0xEBF6,0x4047,0xBB,0x73,0x86,0x83,0xE2,0x7D,0xBB,0x1F);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDevice,0x1F052807,0x0B46,0x4ACC,0x8A,0x89,0x36,0x4F,0x79,0x37,0x18,0xA4);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDecoder,0xC59B6BDC,0x7720,0x4074,0xA1,0x36,0x17,0xA1,0x56,0x03,0x74,0x70);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoProcessor,0x304FDB32,0xBEDE,0x410A,0x85,0x45,0x94,0x3A,0xC6,0xA4,0x61,0x38);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDecodeCommandList,0x3B60536E,0xAD29,0x4E64,0xA2,0x69,0xF8,0x53,0x83,0x7E,0x5E,0x53);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoProcessCommandList,0xAEB2543A,0x167F,0x4682,0xAC,0xC8,0xD1,0x59,0xED,0x4A,0x62,0x09);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDecodeCommandList1,0xD52F011B,0xB56E,0x453C,0xA0,0x5A,0xA7,0xF3,0x11,0xC8,0xF4,0x72);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoProcessCommandList1,0x542C5C4D,0x7596,0x434F,0x8C,0x93,0x4E,0xFA,0x67,0x66,0xF2,0x67);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoMotionEstimator,0x33FDAE0E,0x098B,0x428F,0x87,0xBB,0x34,0xB6,0x95,0xDE,0x08,0xF8);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoMotionVectorHeap,0x5BE17987,0x743A,0x4061,0x83,0x4B,0x23,0xD2,0x2D,0xAE,0xA5,0x05);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDevice1,0x981611AD,0xA144,0x4C83,0x98,0x90,0xF3,0x0E,0x26,0xD6,0x58,0xAB);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoEncodeCommandList,0x8455293A,0x0CBD,0x4831,0x9B,0x39,0xFB,0xDB,0xAB,0x72,0x47,0x23);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDecoder1,0x79A2E5FB,0xCCD2,0x469A,0x9F,0xDE,0x19,0x5D,0x10,0x95,0x1F,0x7E);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDecoderHeap1,0xDA1D98C5,0x539F,0x41B2,0xBF,0x6B,0x11,0x98,0xA0,0x3B,0x6D,0x26);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoProcessor1,0xF3CFE615,0x553F,0x425C,0x86,0xD8,0xEE,0x8C,0x1B,0x1F,0xB0,0x1C);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoExtensionCommand,0x554E41E8,0xAE8E,0x4A8C,0xB7,0xD2,0x5B,0x4F,0x27,0x4A,0x30,0xE4);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDevice2,0xF019AC49,0xF838,0x4A95,0x9B,0x17,0x57,0x94,0x37,0xC8,0xF5,0x13);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDecodeCommandList2,0x6e120880,0xc114,0x4153,0x80,0x36,0xd2,0x47,0x05,0x1e,0x17,0x29);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDecodeCommandList3,0x2aee8c37,0x9562,0x42da,0x8a,0xbf,0x61,0xef,0xeb,0x2e,0x45,0x13);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoProcessCommandList2,0xdb525ae4,0x6ad6,0x473c,0xba,0xa7,0x59,0xb2,0xe3,0x70,0x82,0xe4);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoProcessCommandList3,0x1a0a4ca4,0x9f08,0x40ce,0x95,0x58,0xb4,0x11,0xfd,0x26,0x66,0xff);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoEncodeCommandList1,0x94971eca,0x2bdb,0x4769,0x88,0xcf,0x36,0x75,0xea,0x75,0x7e,0xbc);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoEncoder,0x2E0D212D,0x8DF9,0x44A6,0xA7,0x70,0xBB,0x28,0x9B,0x18,0x27,0x37);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoEncoderHeap,0x22B35D96,0x876A,0x44C0,0xB2,0x5E,0xFB,0x8C,0x9C,0x7F,0x1C,0x4A);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoDevice3,0x4243ADB4,0x3A32,0x4666,0x97,0x3C,0x0C,0xCC,0x56,0x25,0xDC,0x44);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoEncodeCommandList2,0x895491e2,0xe701,0x46a9,0x9a,0x1f,0x8d,0x34,0x80,0xed,0x86,0x7a);" ) +cpp_quote( "DEFINE_GUID(IID_ID3D12VideoEncodeCommandList3,0x7f027b22,0x1515,0x4e85,0xaa,0x0d,0x02,0x64,0x86,0x58,0x05,0x76);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d9helper.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d9helper.h new file mode 100644 index 0000000000000000000000000000000000000000..041993c5232b84907925f5e418d18af82d5dd091 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d9helper.h @@ -0,0 +1,1808 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: d3d9helper.h + * Content: Direct3D helper include file + * + ****************************************************************************/ + +#ifndef _D3D9_H_ +#define _D3D9_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef DIRECT3D_VERSION +#define DIRECT3D_VERSION 0x0900 +#endif //DIRECT3D_VERSION + +// include this file content only if compiling for DX9 interfaces +#if(DIRECT3D_VERSION >= 0x0900) + + +/* This identifier is passed to Direct3DCreate9 in order to ensure that an + * application was built against the correct header files. This number is + * incremented whenever a header (or other) change would require applications + * to be rebuilt. If the version doesn't match, Direct3DCreate9 will fail. + * (The number itself has no meaning.)*/ + +#define D3D_SDK_VERSION (31 | 0x80000000) + + +#include + +#define COM_NO_WINDOWS_H +#include + +#include + +#if !defined(HMONITOR_DECLARED) && (WINVER < 0x0500) + #define HMONITOR_DECLARED + DECLARE_HANDLE(HMONITOR); +#endif + +#define D3DAPI WINAPI + +/* + * Interface IID's + */ +#if defined( _WIN32 ) && !defined( _NO_COM) + +/* IID_IDirect3D9 */ +/* {81BDCBCA-64D4-426d-AE8D-AD0147F4275C} */ +DEFINE_GUID(IID_IDirect3D9, 0x81bdcbca, 0x64d4, 0x426d, 0xae, 0x8d, 0xad, 0x1, 0x47, 0xf4, 0x27, 0x5c); + +/* IID_IDirect3DDevice9 */ +// {D0223B96-BF7A-43fd-92BD-A43B0D82B9EB} */ +DEFINE_GUID(IID_IDirect3DDevice9, 0xd0223b96, 0xbf7a, 0x43fd, 0x92, 0xbd, 0xa4, 0x3b, 0xd, 0x82, 0xb9, 0xeb); + +/* IID_IDirect3DResource9 */ +// {05EEC05D-8F7D-4362-B999-D1BAF357C704} +DEFINE_GUID(IID_IDirect3DResource9, 0x5eec05d, 0x8f7d, 0x4362, 0xb9, 0x99, 0xd1, 0xba, 0xf3, 0x57, 0xc7, 0x4); + +/* IID_IDirect3DBaseTexture9 */ +/* {580CA87E-1D3C-4d54-991D-B7D3E3C298CE} */ +DEFINE_GUID(IID_IDirect3DBaseTexture9, 0x580ca87e, 0x1d3c, 0x4d54, 0x99, 0x1d, 0xb7, 0xd3, 0xe3, 0xc2, 0x98, 0xce); + +/* IID_IDirect3DTexture9 */ +/* {85C31227-3DE5-4f00-9B3A-F11AC38C18B5} */ +DEFINE_GUID(IID_IDirect3DTexture9, 0x85c31227, 0x3de5, 0x4f00, 0x9b, 0x3a, 0xf1, 0x1a, 0xc3, 0x8c, 0x18, 0xb5); + +/* IID_IDirect3DCubeTexture9 */ +/* {FFF32F81-D953-473a-9223-93D652ABA93F} */ +DEFINE_GUID(IID_IDirect3DCubeTexture9, 0xfff32f81, 0xd953, 0x473a, 0x92, 0x23, 0x93, 0xd6, 0x52, 0xab, 0xa9, 0x3f); + +/* IID_IDirect3DVolumeTexture9 */ +/* {2518526C-E789-4111-A7B9-47EF328D13E6} */ +DEFINE_GUID(IID_IDirect3DVolumeTexture9, 0x2518526c, 0xe789, 0x4111, 0xa7, 0xb9, 0x47, 0xef, 0x32, 0x8d, 0x13, 0xe6); + +/* IID_IDirect3DVertexBuffer9 */ +/* {B64BB1B5-FD70-4df6-BF91-19D0A12455E3} */ +DEFINE_GUID(IID_IDirect3DVertexBuffer9, 0xb64bb1b5, 0xfd70, 0x4df6, 0xbf, 0x91, 0x19, 0xd0, 0xa1, 0x24, 0x55, 0xe3); + +/* IID_IDirect3DIndexBuffer9 */ +/* {7C9DD65E-D3F7-4529-ACEE-785830ACDE35} */ +DEFINE_GUID(IID_IDirect3DIndexBuffer9, 0x7c9dd65e, 0xd3f7, 0x4529, 0xac, 0xee, 0x78, 0x58, 0x30, 0xac, 0xde, 0x35); + +/* IID_IDirect3DSurface9 */ +/* {0CFBAF3A-9FF6-429a-99B3-A2796AF8B89B} */ +DEFINE_GUID(IID_IDirect3DSurface9, 0xcfbaf3a, 0x9ff6, 0x429a, 0x99, 0xb3, 0xa2, 0x79, 0x6a, 0xf8, 0xb8, 0x9b); + +/* IID_IDirect3DVolume9 */ +/* {24F416E6-1F67-4aa7-B88E-D33F6F3128A1} */ +DEFINE_GUID(IID_IDirect3DVolume9, 0x24f416e6, 0x1f67, 0x4aa7, 0xb8, 0x8e, 0xd3, 0x3f, 0x6f, 0x31, 0x28, 0xa1); + +/* IID_IDirect3DSwapChain9 */ +/* {794950F2-ADFC-458a-905E-10A10B0B503B} */ +DEFINE_GUID(IID_IDirect3DSwapChain9, 0x794950f2, 0xadfc, 0x458a, 0x90, 0x5e, 0x10, 0xa1, 0xb, 0xb, 0x50, 0x3b); + +/* IID_IDirect3DVertexDeclaration9 */ +/* {DD13C59C-36FA-4098-A8FB-C7ED39DC8546} */ +DEFINE_GUID(IID_IDirect3DVertexDeclaration9, 0xdd13c59c, 0x36fa, 0x4098, 0xa8, 0xfb, 0xc7, 0xed, 0x39, 0xdc, 0x85, 0x46); + +/* IID_IDirect3DVertexShader9 */ +/* {EFC5557E-6265-4613-8A94-43857889EB36} */ +DEFINE_GUID(IID_IDirect3DVertexShader9, 0xefc5557e, 0x6265, 0x4613, 0x8a, 0x94, 0x43, 0x85, 0x78, 0x89, 0xeb, 0x36); + +/* IID_IDirect3DPixelShader9 */ +/* {6D3BDBDC-5B02-4415-B852-CE5E8BCCB289} */ +DEFINE_GUID(IID_IDirect3DPixelShader9, 0x6d3bdbdc, 0x5b02, 0x4415, 0xb8, 0x52, 0xce, 0x5e, 0x8b, 0xcc, 0xb2, 0x89); + +/* IID_IDirect3DStateBlock9 */ +/* {B07C4FE5-310D-4ba8-A23C-4F0F206F218B} */ +DEFINE_GUID(IID_IDirect3DStateBlock9, 0xb07c4fe5, 0x310d, 0x4ba8, 0xa2, 0x3c, 0x4f, 0xf, 0x20, 0x6f, 0x21, 0x8b); + +/* IID_IDirect3DQuery9 */ +/* {d9771460-a695-4f26-bbd3-27b840b541cc} */ +DEFINE_GUID(IID_IDirect3DQuery9, 0xd9771460, 0xa695, 0x4f26, 0xbb, 0xd3, 0x27, 0xb8, 0x40, 0xb5, 0x41, 0xcc); + + +#endif + +#ifdef __cplusplus + +#ifndef DECLSPEC_UUID +#if _MSC_VER >= 1100 +#define DECLSPEC_UUID(x) __declspec(uuid(x)) +#else +#define DECLSPEC_UUID(x) +#endif +#endif + +interface DECLSPEC_UUID("81BDCBCA-64D4-426d-AE8D-AD0147F4275C") IDirect3D9; +interface DECLSPEC_UUID("D0223B96-BF7A-43fd-92BD-A43B0D82B9EB") IDirect3DDevice9; + +interface DECLSPEC_UUID("B07C4FE5-310D-4ba8-A23C-4F0F206F218B") IDirect3DStateBlock9; +interface DECLSPEC_UUID("05EEC05D-8F7D-4362-B999-D1BAF357C704") IDirect3DResource9; +interface DECLSPEC_UUID("DD13C59C-36FA-4098-A8FB-C7ED39DC8546") IDirect3DVertexDeclaration9; +interface DECLSPEC_UUID("EFC5557E-6265-4613-8A94-43857889EB36") IDirect3DVertexShader9; +interface DECLSPEC_UUID("6D3BDBDC-5B02-4415-B852-CE5E8BCCB289") IDirect3DPixelShader9; +interface DECLSPEC_UUID("580CA87E-1D3C-4d54-991D-B7D3E3C298CE") IDirect3DBaseTexture9; +interface DECLSPEC_UUID("85C31227-3DE5-4f00-9B3A-F11AC38C18B5") IDirect3DTexture9; +interface DECLSPEC_UUID("2518526C-E789-4111-A7B9-47EF328D13E6") IDirect3DVolumeTexture9; +interface DECLSPEC_UUID("FFF32F81-D953-473a-9223-93D652ABA93F") IDirect3DCubeTexture9; + +interface DECLSPEC_UUID("B64BB1B5-FD70-4df6-BF91-19D0A12455E3") IDirect3DVertexBuffer9; +interface DECLSPEC_UUID("7C9DD65E-D3F7-4529-ACEE-785830ACDE35") IDirect3DIndexBuffer9; + +interface DECLSPEC_UUID("0CFBAF3A-9FF6-429a-99B3-A2796AF8B89B") IDirect3DSurface9; +interface DECLSPEC_UUID("24F416E6-1F67-4aa7-B88E-D33F6F3128A1") IDirect3DVolume9; + +interface DECLSPEC_UUID("794950F2-ADFC-458a-905E-10A10B0B503B") IDirect3DSwapChain9; +interface DECLSPEC_UUID("d9771460-a695-4f26-bbd3-27b840b541cc") IDirect3DQuery9; + + +#if defined(_COM_SMARTPTR_TYPEDEF) +_COM_SMARTPTR_TYPEDEF(IDirect3D9, __uuidof(IDirect3D9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DDevice9, __uuidof(IDirect3DDevice9)); + +_COM_SMARTPTR_TYPEDEF(IDirect3DStateBlock9, __uuidof(IDirect3DStateBlock9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DResource9, __uuidof(IDirect3DResource9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DVertexDeclaration9, __uuidof(IDirect3DVertexDeclaration9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DVertexShader9, __uuidof(IDirect3DVertexShader9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DPixelShader9, __uuidof(IDirect3DPixelShader9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DBaseTexture9, __uuidof(IDirect3DBaseTexture9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DTexture9, __uuidof(IDirect3DTexture9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DVolumeTexture9, __uuidof(IDirect3DVolumeTexture9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DCubeTexture9, __uuidof(IDirect3DCubeTexture9)); + +_COM_SMARTPTR_TYPEDEF(IDirect3DVertexBuffer9, __uuidof(IDirect3DVertexBuffer9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DIndexBuffer9, __uuidof(IDirect3DIndexBuffer9)); + +_COM_SMARTPTR_TYPEDEF(IDirect3DSurface9, __uuidof(IDirect3DSurface9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DVolume9, __uuidof(IDirect3DVolume9)); + +_COM_SMARTPTR_TYPEDEF(IDirect3DSwapChain9, __uuidof(IDirect3DSwapChain9)); +_COM_SMARTPTR_TYPEDEF(IDirect3DQuery9, __uuidof(IDirect3DQuery9)); + +#endif +#endif + + +typedef interface IDirect3D9 IDirect3D9; +typedef interface IDirect3DDevice9 IDirect3DDevice9; +typedef interface IDirect3DStateBlock9 IDirect3DStateBlock9; +typedef interface IDirect3DVertexDeclaration9 IDirect3DVertexDeclaration9; +typedef interface IDirect3DVertexShader9 IDirect3DVertexShader9; +typedef interface IDirect3DPixelShader9 IDirect3DPixelShader9; +typedef interface IDirect3DResource9 IDirect3DResource9; +typedef interface IDirect3DBaseTexture9 IDirect3DBaseTexture9; +typedef interface IDirect3DTexture9 IDirect3DTexture9; +typedef interface IDirect3DVolumeTexture9 IDirect3DVolumeTexture9; +typedef interface IDirect3DCubeTexture9 IDirect3DCubeTexture9; +typedef interface IDirect3DVertexBuffer9 IDirect3DVertexBuffer9; +typedef interface IDirect3DIndexBuffer9 IDirect3DIndexBuffer9; +typedef interface IDirect3DSurface9 IDirect3DSurface9; +typedef interface IDirect3DVolume9 IDirect3DVolume9; +typedef interface IDirect3DSwapChain9 IDirect3DSwapChain9; +typedef interface IDirect3DQuery9 IDirect3DQuery9; + + +#include "d3d9types.h" +#include "d3d9caps.h" + + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * DLL Function for creating a Direct3D9 object. This object supports + * enumeration and allows the creation of Direct3DDevice9 objects. + * Pass the value of the constant D3D_SDK_VERSION to this function, so + * that the run-time can validate that your application was compiled + * against the right headers. + */ + +IDirect3D9 * WINAPI Direct3DCreate9(UINT SDKVersion); + + +/* + * Direct3D interfaces + */ + + + + + +#undef INTERFACE +#define INTERFACE IDirect3D9 + +DECLARE_INTERFACE_(IDirect3D9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3D9 methods ***/ + STDMETHOD(RegisterSoftwareDevice)(THIS_ void* pInitializeFunction) PURE; + STDMETHOD_(UINT, GetAdapterCount)(THIS) PURE; + STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter,DWORD Flags,D3DADAPTER_IDENTIFIER9* pIdentifier) PURE; + STDMETHOD_(UINT, GetAdapterModeCount)(THIS_ UINT Adapter,D3DFORMAT Format) PURE; + STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter,D3DFORMAT Format,UINT Mode,D3DDISPLAYMODE* pMode) PURE; + STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter,D3DDISPLAYMODE* pMode) PURE; + STDMETHOD(CheckDeviceType)(THIS_ UINT iAdapter,D3DDEVTYPE DevType,D3DFORMAT DisplayFormat,D3DFORMAT BackBufferFormat,BOOL bWindowed) PURE; + STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT AdapterFormat,DWORD Usage,D3DRESOURCETYPE RType,D3DFORMAT CheckFormat) PURE; + STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT SurfaceFormat,BOOL Windowed,D3DMULTISAMPLE_TYPE MultiSampleType,DWORD* pQualityLevels) PURE; + STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT AdapterFormat,D3DFORMAT RenderTargetFormat,D3DFORMAT DepthStencilFormat) PURE; + STDMETHOD(CheckDeviceFormatConversion)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT SourceFormat,D3DFORMAT TargetFormat) PURE; + STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DCAPS9* pCaps) PURE; + STDMETHOD_(HMONITOR, GetAdapterMonitor)(THIS_ UINT Adapter) PURE; + STDMETHOD(CreateDevice)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,HWND hFocusWindow,DWORD BehaviorFlags,D3DPRESENT_PARAMETERS* pPresentationParameters,IDirect3DDevice9** ppReturnedDeviceInterface) PURE; + + /*** Helper information ***/ + LPCWSTR Version; +}; + +typedef struct IDirect3D9 *LPDIRECT3D9, *PDIRECT3D9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3D9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3D9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3D9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a) +#define IDirect3D9_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p) +#define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c) +#define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b) +#define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d) +#define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b) +#define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e) +#define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f) +#define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f) +#define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e) +#define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d) +#define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c) +#define IDirect3D9_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a) +#define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f) +#else +#define IDirect3D9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3D9_AddRef(p) (p)->AddRef() +#define IDirect3D9_Release(p) (p)->Release() +#define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a) +#define IDirect3D9_GetAdapterCount(p) (p)->GetAdapterCount() +#define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c) +#define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->GetAdapterModeCount(a,b) +#define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->EnumAdapterModes(a,b,c,d) +#define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b) +#define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e) +#define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f) +#define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->CheckDeviceMultiSampleType(a,b,c,d,e,f) +#define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e) +#define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->CheckDeviceFormatConversion(a,b,c,d) +#define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c) +#define IDirect3D9_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a) +#define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f) +#endif + + + + + + + +/* SwapChain */ + + + + + + + + + + + + + + + +#undef INTERFACE +#define INTERFACE IDirect3DDevice9 + +DECLARE_INTERFACE_(IDirect3DDevice9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DDevice9 methods ***/ + STDMETHOD(TestCooperativeLevel)(THIS) PURE; + STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE; + STDMETHOD(EvictManagedResources)(THIS) PURE; + STDMETHOD(GetDirect3D)(THIS_ IDirect3D9** ppD3D9) PURE; + STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS9* pCaps) PURE; + STDMETHOD(GetDisplayMode)(THIS_ UINT iSwapChain,D3DDISPLAYMODE* pMode) PURE; + STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS *pParameters) PURE; + STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot,UINT YHotSpot,IDirect3DSurface9* pCursorBitmap) PURE; + STDMETHOD_(void, SetCursorPosition)(THIS_ int X,int Y,DWORD Flags) PURE; + STDMETHOD_(BOOL, ShowCursor)(THIS_ BOOL bShow) PURE; + STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters,IDirect3DSwapChain9** pSwapChain) PURE; + STDMETHOD(GetSwapChain)(THIS_ UINT iSwapChain,IDirect3DSwapChain9** pSwapChain) PURE; + STDMETHOD_(UINT, GetNumberOfSwapChains)(THIS) PURE; + STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE; + STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion) PURE; + STDMETHOD(GetBackBuffer)(THIS_ UINT iSwapChain,UINT iBackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface9** ppBackBuffer) PURE; + STDMETHOD(GetRasterStatus)(THIS_ UINT iSwapChain,D3DRASTER_STATUS* pRasterStatus) PURE; + STDMETHOD(SetDialogBoxMode)(THIS_ BOOL bEnableDialogs) PURE; + STDMETHOD_(void, SetGammaRamp)(THIS_ UINT iSwapChain,DWORD Flags,CONST D3DGAMMARAMP* pRamp) PURE; + STDMETHOD_(void, GetGammaRamp)(THIS_ UINT iSwapChain,D3DGAMMARAMP* pRamp) PURE; + STDMETHOD(CreateTexture)(THIS_ UINT Width,UINT Height,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DTexture9** ppTexture,HANDLE* pSharedHandle) PURE; + STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width,UINT Height,UINT Depth,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DVolumeTexture9** ppVolumeTexture,HANDLE* pSharedHandle) PURE; + STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DCubeTexture9** ppCubeTexture,HANDLE* pSharedHandle) PURE; + STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length,DWORD Usage,DWORD FVF,D3DPOOL Pool,IDirect3DVertexBuffer9** ppVertexBuffer,HANDLE* pSharedHandle) PURE; + STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DIndexBuffer9** ppIndexBuffer,HANDLE* pSharedHandle) PURE; + STDMETHOD(CreateRenderTarget)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,DWORD MultisampleQuality,BOOL Lockable,IDirect3DSurface9** ppSurface,HANDLE* pSharedHandle) PURE; + STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,DWORD MultisampleQuality,BOOL Discard,IDirect3DSurface9** ppSurface,HANDLE* pSharedHandle) PURE; + STDMETHOD(UpdateSurface)(THIS_ IDirect3DSurface9* pSourceSurface,CONST RECT* pSourceRect,IDirect3DSurface9* pDestinationSurface,CONST POINT* pDestPoint) PURE; + STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture9* pSourceTexture,IDirect3DBaseTexture9* pDestinationTexture) PURE; + STDMETHOD(GetRenderTargetData)(THIS_ IDirect3DSurface9* pRenderTarget,IDirect3DSurface9* pDestSurface) PURE; + STDMETHOD(GetFrontBufferData)(THIS_ UINT iSwapChain,IDirect3DSurface9* pDestSurface) PURE; + STDMETHOD(StretchRect)(THIS_ IDirect3DSurface9* pSourceSurface,CONST RECT* pSourceRect,IDirect3DSurface9* pDestSurface,CONST RECT* pDestRect,D3DTEXTUREFILTERTYPE Filter) PURE; + STDMETHOD(ColorFill)(THIS_ IDirect3DSurface9* pSurface,CONST RECT* pRect,D3DCOLOR color) PURE; + STDMETHOD(CreateOffscreenPlainSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DPOOL Pool,IDirect3DSurface9** ppSurface,HANDLE* pSharedHandle) PURE; + STDMETHOD(SetRenderTarget)(THIS_ DWORD RenderTargetIndex,IDirect3DSurface9* pRenderTarget) PURE; + STDMETHOD(GetRenderTarget)(THIS_ DWORD RenderTargetIndex,IDirect3DSurface9** ppRenderTarget) PURE; + STDMETHOD(SetDepthStencilSurface)(THIS_ IDirect3DSurface9* pNewZStencil) PURE; + STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface9** ppZStencilSurface) PURE; + STDMETHOD(BeginScene)(THIS) PURE; + STDMETHOD(EndScene)(THIS) PURE; + STDMETHOD(Clear)(THIS_ DWORD Count,CONST D3DRECT* pRects,DWORD Flags,D3DCOLOR Color,float Z,DWORD Stencil) PURE; + STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,CONST D3DMATRIX* pMatrix) PURE; + STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,D3DMATRIX* pMatrix) PURE; + STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,CONST D3DMATRIX*) PURE; + STDMETHOD(SetViewport)(THIS_ CONST D3DVIEWPORT9* pViewport) PURE; + STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT9* pViewport) PURE; + STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL9* pMaterial) PURE; + STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL9* pMaterial) PURE; + STDMETHOD(SetLight)(THIS_ DWORD Index,CONST D3DLIGHT9*) PURE; + STDMETHOD(GetLight)(THIS_ DWORD Index,D3DLIGHT9*) PURE; + STDMETHOD(LightEnable)(THIS_ DWORD Index,BOOL Enable) PURE; + STDMETHOD(GetLightEnable)(THIS_ DWORD Index,BOOL* pEnable) PURE; + STDMETHOD(SetClipPlane)(THIS_ DWORD Index,CONST float* pPlane) PURE; + STDMETHOD(GetClipPlane)(THIS_ DWORD Index,float* pPlane) PURE; + STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD Value) PURE; + STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD* pValue) PURE; + STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type,IDirect3DStateBlock9** ppSB) PURE; + STDMETHOD(BeginStateBlock)(THIS) PURE; + STDMETHOD(EndStateBlock)(THIS_ IDirect3DStateBlock9** ppSB) PURE; + STDMETHOD(SetClipStatus)(THIS_ CONST D3DCLIPSTATUS9* pClipStatus) PURE; + STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS9* pClipStatus) PURE; + STDMETHOD(GetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture9** ppTexture) PURE; + STDMETHOD(SetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture9* pTexture) PURE; + STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD* pValue) PURE; + STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD Value) PURE; + STDMETHOD(GetSamplerState)(THIS_ DWORD Sampler,D3DSAMPLERSTATETYPE Type,DWORD* pValue) PURE; + STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler,D3DSAMPLERSTATETYPE Type,DWORD Value) PURE; + STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE; + STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber,CONST PALETTEENTRY* pEntries) PURE; + STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY* pEntries) PURE; + STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE; + STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT *PaletteNumber) PURE; + STDMETHOD(SetScissorRect)(THIS_ CONST RECT* pRect) PURE; + STDMETHOD(GetScissorRect)(THIS_ RECT* pRect) PURE; + STDMETHOD(SetSoftwareVertexProcessing)(THIS_ BOOL bSoftware) PURE; + STDMETHOD_(BOOL, GetSoftwareVertexProcessing)(THIS) PURE; + STDMETHOD(SetNPatchMode)(THIS_ float nSegments) PURE; + STDMETHOD_(float, GetNPatchMode)(THIS) PURE; + STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT StartVertex,UINT PrimitiveCount) PURE; + STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount) PURE; + STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT PrimitiveCount,CONST void* pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE; + STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT MinVertexIndex,UINT NumVertices,UINT PrimitiveCount,CONST void* pIndexData,D3DFORMAT IndexDataFormat,CONST void* pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE; + STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex,UINT DestIndex,UINT VertexCount,IDirect3DVertexBuffer9* pDestBuffer,IDirect3DVertexDeclaration9* pVertexDecl,DWORD Flags) PURE; + STDMETHOD(CreateVertexDeclaration)(THIS_ CONST D3DVERTEXELEMENT9* pVertexElements,IDirect3DVertexDeclaration9** ppDecl) PURE; + STDMETHOD(SetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9* pDecl) PURE; + STDMETHOD(GetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9** ppDecl) PURE; + STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE; + STDMETHOD(GetFVF)(THIS_ DWORD* pFVF) PURE; + STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD* pFunction,IDirect3DVertexShader9** ppShader) PURE; + STDMETHOD(SetVertexShader)(THIS_ IDirect3DVertexShader9* pShader) PURE; + STDMETHOD(GetVertexShader)(THIS_ IDirect3DVertexShader9** ppShader) PURE; + STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT StartRegister,CONST float* pConstantData,UINT Vector4fCount) PURE; + STDMETHOD(GetVertexShaderConstantF)(THIS_ UINT StartRegister,float* pConstantData,UINT Vector4fCount) PURE; + STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT StartRegister,CONST int* pConstantData,UINT Vector4iCount) PURE; + STDMETHOD(GetVertexShaderConstantI)(THIS_ UINT StartRegister,int* pConstantData,UINT Vector4iCount) PURE; + STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT StartRegister,CONST BOOL* pConstantData,UINT BoolCount) PURE; + STDMETHOD(GetVertexShaderConstantB)(THIS_ UINT StartRegister,BOOL* pConstantData,UINT BoolCount) PURE; + STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer9* pStreamData,UINT OffsetInBytes,UINT Stride) PURE; + STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer9** ppStreamData,UINT* OffsetInBytes,UINT* pStride) PURE; + STDMETHOD(SetStreamSourceFreq)(THIS_ UINT StreamNumber,UINT Divider) PURE; + STDMETHOD(GetStreamSourceFreq)(THIS_ UINT StreamNumber,UINT* Divider) PURE; + STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer9* pIndexData) PURE; + STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer9** ppIndexData) PURE; + STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD* pFunction,IDirect3DPixelShader9** ppShader) PURE; + STDMETHOD(SetPixelShader)(THIS_ IDirect3DPixelShader9* pShader) PURE; + STDMETHOD(GetPixelShader)(THIS_ IDirect3DPixelShader9** ppShader) PURE; + STDMETHOD(SetPixelShaderConstantF)(THIS_ UINT StartRegister,CONST float* pConstantData,UINT Vector4fCount) PURE; + STDMETHOD(GetPixelShaderConstantF)(THIS_ UINT StartRegister,float* pConstantData,UINT Vector4fCount) PURE; + STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT StartRegister,CONST int* pConstantData,UINT Vector4iCount) PURE; + STDMETHOD(GetPixelShaderConstantI)(THIS_ UINT StartRegister,int* pConstantData,UINT Vector4iCount) PURE; + STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT StartRegister,CONST BOOL* pConstantData,UINT BoolCount) PURE; + STDMETHOD(GetPixelShaderConstantB)(THIS_ UINT StartRegister,BOOL* pConstantData,UINT BoolCount) PURE; + STDMETHOD(DrawRectPatch)(THIS_ UINT Handle,CONST float* pNumSegs,CONST D3DRECTPATCH_INFO* pRectPatchInfo) PURE; + STDMETHOD(DrawTriPatch)(THIS_ UINT Handle,CONST float* pNumSegs,CONST D3DTRIPATCH_INFO* pTriPatchInfo) PURE; + STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE; + STDMETHOD(CreateQuery)(THIS_ D3DQUERYTYPE Type,IDirect3DQuery9** ppQuery) PURE; + + /*** Helper information ***/ + D3DDEVICE_CREATION_PARAMETERS CreationParameters; + D3DPRESENT_PARAMETERS PresentParameters; + D3DDISPLAYMODE DisplayMode; + D3DCAPS9 Caps; + + UINT AvailableTextureMem; + UINT SwapChains; + UINT Textures; + UINT VertexBuffers; + UINT IndexBuffers; + UINT VertexShaders; + UINT PixelShaders; + + D3DVIEWPORT9 Viewport; + D3DMATRIX ProjectionMatrix; + D3DMATRIX ViewMatrix; + D3DMATRIX WorldMatrix; + D3DMATRIX TextureMatrices[8]; + + DWORD FVF; + UINT VertexSize; + DWORD VertexShaderVersion; + DWORD PixelShaderVersion; + BOOL SoftwareVertexProcessing; + + D3DMATERIAL9 Material; + D3DLIGHT9 Lights[16]; + BOOL LightsEnabled[16]; + + D3DGAMMARAMP GammaRamp; + RECT ScissorRect; + BOOL DialogBoxMode; +}; + +typedef struct IDirect3DDevice9 *LPDIRECT3DDEVICE9, *PDIRECT3DDEVICE9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DDevice9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DDevice9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DDevice9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DDevice9_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p) +#define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p) +#define IDirect3DDevice9_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p) +#define IDirect3DDevice9_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) +#define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a) +#define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b) +#define IDirect3DDevice9_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a) +#define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c) +#define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c) +#define IDirect3DDevice9_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a) +#define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b) +#define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b) +#define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p) +#define IDirect3DDevice9_Reset(p,a) (p)->lpVtbl->Reset(p,a) +#define IDirect3DDevice9_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d) +#define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d) +#define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b) +#define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a) +#define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c) +#define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b) +#define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h) +#define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) +#define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g) +#define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f) +#define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f) +#define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h) +#define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) +#define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d) +#define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b) +#define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b) +#define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b) +#define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e) +#define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c) +#define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f) +#define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) +#define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b) +#define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a) +#define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a) +#define IDirect3DDevice9_BeginScene(p) (p)->lpVtbl->BeginScene(p) +#define IDirect3DDevice9_EndScene(p) (p)->lpVtbl->EndScene(p) +#define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f) +#define IDirect3DDevice9_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) +#define IDirect3DDevice9_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) +#define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) +#define IDirect3DDevice9_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) +#define IDirect3DDevice9_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) +#define IDirect3DDevice9_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) +#define IDirect3DDevice9_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) +#define IDirect3DDevice9_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b) +#define IDirect3DDevice9_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b) +#define IDirect3DDevice9_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b) +#define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b) +#define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b) +#define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b) +#define IDirect3DDevice9_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) +#define IDirect3DDevice9_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) +#define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b) +#define IDirect3DDevice9_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p) +#define IDirect3DDevice9_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a) +#define IDirect3DDevice9_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) +#define IDirect3DDevice9_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) +#define IDirect3DDevice9_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b) +#define IDirect3DDevice9_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b) +#define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c) +#define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c) +#define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c) +#define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c) +#define IDirect3DDevice9_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a) +#define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b) +#define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b) +#define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a) +#define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a) +#define IDirect3DDevice9_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a) +#define IDirect3DDevice9_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a) +#define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a) +#define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p) +#define IDirect3DDevice9_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a) +#define IDirect3DDevice9_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p) +#define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c) +#define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f) +#define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d) +#define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) +#define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f) +#define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b) +#define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a) +#define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a) +#define IDirect3DDevice9_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a) +#define IDirect3DDevice9_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a) +#define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b) +#define IDirect3DDevice9_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a) +#define IDirect3DDevice9_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a) +#define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c) +#define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c) +#define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c) +#define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c) +#define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c) +#define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c) +#define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d) +#define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d) +#define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b) +#define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b) +#define IDirect3DDevice9_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a) +#define IDirect3DDevice9_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a) +#define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b) +#define IDirect3DDevice9_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a) +#define IDirect3DDevice9_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a) +#define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c) +#define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c) +#define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c) +#define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c) +#define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c) +#define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c) +#define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c) +#define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c) +#define IDirect3DDevice9_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a) +#define IDirect3DDevice9_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b) +#else +#define IDirect3DDevice9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DDevice9_AddRef(p) (p)->AddRef() +#define IDirect3DDevice9_Release(p) (p)->Release() +#define IDirect3DDevice9_TestCooperativeLevel(p) (p)->TestCooperativeLevel() +#define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem() +#define IDirect3DDevice9_EvictManagedResources(p) (p)->EvictManagedResources() +#define IDirect3DDevice9_GetDirect3D(p,a) (p)->GetDirect3D(a) +#define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a) +#define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->GetDisplayMode(a,b) +#define IDirect3DDevice9_GetCreationParameters(p,a) (p)->GetCreationParameters(a) +#define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c) +#define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c) +#define IDirect3DDevice9_ShowCursor(p,a) (p)->ShowCursor(a) +#define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b) +#define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->GetSwapChain(a,b) +#define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->GetNumberOfSwapChains() +#define IDirect3DDevice9_Reset(p,a) (p)->Reset(a) +#define IDirect3DDevice9_Present(p,a,b,c,d) (p)->Present(a,b,c,d) +#define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d) +#define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->GetRasterStatus(a,b) +#define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->SetDialogBoxMode(a) +#define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->SetGammaRamp(a,b,c) +#define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b) +#define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->CreateTexture(a,b,c,d,e,f,g,h) +#define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h,i) +#define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->CreateCubeTexture(a,b,c,d,e,f,g) +#define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->CreateVertexBuffer(a,b,c,d,e,f) +#define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->CreateIndexBuffer(a,b,c,d,e,f) +#define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->CreateRenderTarget(a,b,c,d,e,f,g,h) +#define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->CreateDepthStencilSurface(a,b,c,d,e,f,g,h) +#define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->UpdateSurface(a,b,c,d) +#define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b) +#define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->GetRenderTargetData(a,b) +#define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->GetFrontBufferData(a,b) +#define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->StretchRect(a,b,c,d,e) +#define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->ColorFill(a,b,c) +#define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->CreateOffscreenPlainSurface(a,b,c,d,e,f) +#define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) +#define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->GetRenderTarget(a,b) +#define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->SetDepthStencilSurface(a) +#define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a) +#define IDirect3DDevice9_BeginScene(p) (p)->BeginScene() +#define IDirect3DDevice9_EndScene(p) (p)->EndScene() +#define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f) +#define IDirect3DDevice9_SetTransform(p,a,b) (p)->SetTransform(a,b) +#define IDirect3DDevice9_GetTransform(p,a,b) (p)->GetTransform(a,b) +#define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) +#define IDirect3DDevice9_SetViewport(p,a) (p)->SetViewport(a) +#define IDirect3DDevice9_GetViewport(p,a) (p)->GetViewport(a) +#define IDirect3DDevice9_SetMaterial(p,a) (p)->SetMaterial(a) +#define IDirect3DDevice9_GetMaterial(p,a) (p)->GetMaterial(a) +#define IDirect3DDevice9_SetLight(p,a,b) (p)->SetLight(a,b) +#define IDirect3DDevice9_GetLight(p,a,b) (p)->GetLight(a,b) +#define IDirect3DDevice9_LightEnable(p,a,b) (p)->LightEnable(a,b) +#define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b) +#define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b) +#define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b) +#define IDirect3DDevice9_SetRenderState(p,a,b) (p)->SetRenderState(a,b) +#define IDirect3DDevice9_GetRenderState(p,a,b) (p)->GetRenderState(a,b) +#define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b) +#define IDirect3DDevice9_BeginStateBlock(p) (p)->BeginStateBlock() +#define IDirect3DDevice9_EndStateBlock(p,a) (p)->EndStateBlock(a) +#define IDirect3DDevice9_SetClipStatus(p,a) (p)->SetClipStatus(a) +#define IDirect3DDevice9_GetClipStatus(p,a) (p)->GetClipStatus(a) +#define IDirect3DDevice9_GetTexture(p,a,b) (p)->GetTexture(a,b) +#define IDirect3DDevice9_SetTexture(p,a,b) (p)->SetTexture(a,b) +#define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c) +#define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c) +#define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->GetSamplerState(a,b,c) +#define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->SetSamplerState(a,b,c) +#define IDirect3DDevice9_ValidateDevice(p,a) (p)->ValidateDevice(a) +#define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b) +#define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b) +#define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a) +#define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a) +#define IDirect3DDevice9_SetScissorRect(p,a) (p)->SetScissorRect(a) +#define IDirect3DDevice9_GetScissorRect(p,a) (p)->GetScissorRect(a) +#define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->SetSoftwareVertexProcessing(a) +#define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->GetSoftwareVertexProcessing() +#define IDirect3DDevice9_SetNPatchMode(p,a) (p)->SetNPatchMode(a) +#define IDirect3DDevice9_GetNPatchMode(p) (p)->GetNPatchMode() +#define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c) +#define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->DrawIndexedPrimitive(a,b,c,d,e,f) +#define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d) +#define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h) +#define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->ProcessVertices(a,b,c,d,e,f) +#define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->CreateVertexDeclaration(a,b) +#define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->SetVertexDeclaration(a) +#define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->GetVertexDeclaration(a) +#define IDirect3DDevice9_SetFVF(p,a) (p)->SetFVF(a) +#define IDirect3DDevice9_GetFVF(p,a) (p)->GetFVF(a) +#define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->CreateVertexShader(a,b) +#define IDirect3DDevice9_SetVertexShader(p,a) (p)->SetVertexShader(a) +#define IDirect3DDevice9_GetVertexShader(p,a) (p)->GetVertexShader(a) +#define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->SetVertexShaderConstantF(a,b,c) +#define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->GetVertexShaderConstantF(a,b,c) +#define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->SetVertexShaderConstantI(a,b,c) +#define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->GetVertexShaderConstantI(a,b,c) +#define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->SetVertexShaderConstantB(a,b,c) +#define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->GetVertexShaderConstantB(a,b,c) +#define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->SetStreamSource(a,b,c,d) +#define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->GetStreamSource(a,b,c,d) +#define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->SetStreamSourceFreq(a,b) +#define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->GetStreamSourceFreq(a,b) +#define IDirect3DDevice9_SetIndices(p,a) (p)->SetIndices(a) +#define IDirect3DDevice9_GetIndices(p,a) (p)->GetIndices(a) +#define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b) +#define IDirect3DDevice9_SetPixelShader(p,a) (p)->SetPixelShader(a) +#define IDirect3DDevice9_GetPixelShader(p,a) (p)->GetPixelShader(a) +#define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->SetPixelShaderConstantF(a,b,c) +#define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->GetPixelShaderConstantF(a,b,c) +#define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->SetPixelShaderConstantI(a,b,c) +#define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->GetPixelShaderConstantI(a,b,c) +#define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->SetPixelShaderConstantB(a,b,c) +#define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->GetPixelShaderConstantB(a,b,c) +#define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c) +#define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c) +#define IDirect3DDevice9_DeletePatch(p,a) (p)->DeletePatch(a) +#define IDirect3DDevice9_CreateQuery(p,a,b) (p)->CreateQuery(a,b) +#endif + + +#undef INTERFACE +#define INTERFACE IDirect3DStateBlock9 + +DECLARE_INTERFACE_(IDirect3DStateBlock9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DStateBlock9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(Capture)(THIS) PURE; + STDMETHOD(Apply)(THIS) PURE; +}; + +typedef struct IDirect3DStateBlock9 *LPDIRECT3DSTATEBLOCK9, *PDIRECT3DSTATEBLOCK9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DStateBlock9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DStateBlock9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DStateBlock9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DStateBlock9_Capture(p) (p)->lpVtbl->Capture(p) +#define IDirect3DStateBlock9_Apply(p) (p)->lpVtbl->Apply(p) +#else +#define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DStateBlock9_AddRef(p) (p)->AddRef() +#define IDirect3DStateBlock9_Release(p) (p)->Release() +#define IDirect3DStateBlock9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DStateBlock9_Capture(p) (p)->Capture() +#define IDirect3DStateBlock9_Apply(p) (p)->Apply() +#endif + + + +#undef INTERFACE +#define INTERFACE IDirect3DSwapChain9 + +DECLARE_INTERFACE_(IDirect3DSwapChain9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DSwapChain9 methods ***/ + STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion,DWORD dwFlags) PURE; + STDMETHOD(GetFrontBufferData)(THIS_ IDirect3DSurface9* pDestSurface) PURE; + STDMETHOD(GetBackBuffer)(THIS_ UINT iBackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface9** ppBackBuffer) PURE; + STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS* pRasterStatus) PURE; + STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE* pMode) PURE; + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(GetPresentParameters)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE; + + /*** Helper information ***/ + D3DPRESENT_PARAMETERS PresentParameters; + D3DDISPLAYMODE DisplayMode; +}; + +typedef struct IDirect3DSwapChain9 *LPDIRECT3DSWAPCHAIN9, *PDIRECT3DSWAPCHAIN9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DSwapChain9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DSwapChain9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e) +#define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a) +#define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c) +#define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a) +#define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a) +#define IDirect3DSwapChain9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a) +#else +#define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DSwapChain9_AddRef(p) (p)->AddRef() +#define IDirect3DSwapChain9_Release(p) (p)->Release() +#define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->Present(a,b,c,d,e) +#define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->GetFrontBufferData(a) +#define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c) +#define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->GetRasterStatus(a) +#define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->GetDisplayMode(a) +#define IDirect3DSwapChain9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->GetPresentParameters(a) +#endif + + + +#undef INTERFACE +#define INTERFACE IDirect3DResource9 + +DECLARE_INTERFACE_(IDirect3DResource9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DResource9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; + STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; + STDMETHOD_(DWORD, GetPriority)(THIS) PURE; + STDMETHOD_(void, PreLoad)(THIS) PURE; + STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; +}; + +typedef struct IDirect3DResource9 *LPDIRECT3DRESOURCE9, *PDIRECT3DRESOURCE9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DResource9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DResource9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DResource9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DResource9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirect3DResource9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirect3DResource9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) +#define IDirect3DResource9_GetPriority(p) (p)->lpVtbl->GetPriority(p) +#define IDirect3DResource9_PreLoad(p) (p)->lpVtbl->PreLoad(p) +#define IDirect3DResource9_GetType(p) (p)->lpVtbl->GetType(p) +#else +#define IDirect3DResource9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DResource9_AddRef(p) (p)->AddRef() +#define IDirect3DResource9_Release(p) (p)->Release() +#define IDirect3DResource9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirect3DResource9_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirect3DResource9_SetPriority(p,a) (p)->SetPriority(a) +#define IDirect3DResource9_GetPriority(p) (p)->GetPriority() +#define IDirect3DResource9_PreLoad(p) (p)->PreLoad() +#define IDirect3DResource9_GetType(p) (p)->GetType() +#endif + + + +#undef INTERFACE +#define INTERFACE IDirect3DVertexDeclaration9 + +DECLARE_INTERFACE_(IDirect3DVertexDeclaration9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DVertexDeclaration9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9*,UINT* pNumElements) PURE; +}; + +typedef struct IDirect3DVertexDeclaration9 *LPDIRECT3DVERTEXDECLARATION9, *PDIRECT3DVERTEXDECLARATION9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DVertexDeclaration9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DVertexDeclaration9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->lpVtbl->GetDeclaration(p,a,b) +#else +#define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DVertexDeclaration9_AddRef(p) (p)->AddRef() +#define IDirect3DVertexDeclaration9_Release(p) (p)->Release() +#define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->GetDeclaration(a,b) +#endif + + + +#undef INTERFACE +#define INTERFACE IDirect3DVertexShader9 + +DECLARE_INTERFACE_(IDirect3DVertexShader9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DVertexShader9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(GetFunction)(THIS_ void*,UINT* pSizeOfData) PURE; + + /*** Helper information ***/ + DWORD Version; +}; + +typedef struct IDirect3DVertexShader9 *LPDIRECT3DVERTEXSHADER9, *PDIRECT3DVERTEXSHADER9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DVertexShader9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DVertexShader9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DVertexShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b) +#else +#define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DVertexShader9_AddRef(p) (p)->AddRef() +#define IDirect3DVertexShader9_Release(p) (p)->Release() +#define IDirect3DVertexShader9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->GetFunction(a,b) +#endif + + + +#undef INTERFACE +#define INTERFACE IDirect3DPixelShader9 + +DECLARE_INTERFACE_(IDirect3DPixelShader9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DPixelShader9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(GetFunction)(THIS_ void*,UINT* pSizeOfData) PURE; + + /*** Helper information ***/ + DWORD Version; +}; + +typedef struct IDirect3DPixelShader9 *LPDIRECT3DPIXELSHADER9, *PDIRECT3DPIXELSHADER9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DPixelShader9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DPixelShader9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DPixelShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b) +#else +#define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DPixelShader9_AddRef(p) (p)->AddRef() +#define IDirect3DPixelShader9_Release(p) (p)->Release() +#define IDirect3DPixelShader9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->GetFunction(a,b) +#endif + + + + +#undef INTERFACE +#define INTERFACE IDirect3DBaseTexture9 + +DECLARE_INTERFACE_(IDirect3DBaseTexture9, IDirect3DResource9) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DResource9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; + STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; + STDMETHOD_(DWORD, GetPriority)(THIS) PURE; + STDMETHOD_(void, PreLoad)(THIS) PURE; + STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; + STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE; + STDMETHOD_(DWORD, GetLOD)(THIS) PURE; + STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE; + STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE; + STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE; + STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE; +}; + +typedef struct IDirect3DBaseTexture9 *LPDIRECT3DBASETEXTURE9, *PDIRECT3DBASETEXTURE9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DBaseTexture9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DBaseTexture9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DBaseTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirect3DBaseTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) +#define IDirect3DBaseTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p) +#define IDirect3DBaseTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p) +#define IDirect3DBaseTexture9_GetType(p) (p)->lpVtbl->GetType(p) +#define IDirect3DBaseTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) +#define IDirect3DBaseTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p) +#define IDirect3DBaseTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) +#define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a) +#define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p) +#define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p) +#else +#define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DBaseTexture9_AddRef(p) (p)->AddRef() +#define IDirect3DBaseTexture9_Release(p) (p)->Release() +#define IDirect3DBaseTexture9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirect3DBaseTexture9_SetPriority(p,a) (p)->SetPriority(a) +#define IDirect3DBaseTexture9_GetPriority(p) (p)->GetPriority() +#define IDirect3DBaseTexture9_PreLoad(p) (p)->PreLoad() +#define IDirect3DBaseTexture9_GetType(p) (p)->GetType() +#define IDirect3DBaseTexture9_SetLOD(p,a) (p)->SetLOD(a) +#define IDirect3DBaseTexture9_GetLOD(p) (p)->GetLOD() +#define IDirect3DBaseTexture9_GetLevelCount(p) (p)->GetLevelCount() +#define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a) +#define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType() +#define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels() +#endif + + + + + +#undef INTERFACE +#define INTERFACE IDirect3DTexture9 + +DECLARE_INTERFACE_(IDirect3DTexture9, IDirect3DBaseTexture9) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DBaseTexture9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; + STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; + STDMETHOD_(DWORD, GetPriority)(THIS) PURE; + STDMETHOD_(void, PreLoad)(THIS) PURE; + STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; + STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE; + STDMETHOD_(DWORD, GetLOD)(THIS) PURE; + STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE; + STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE; + STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE; + STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE; + STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC *pDesc) PURE; + STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level,IDirect3DSurface9** ppSurfaceLevel) PURE; + STDMETHOD(LockRect)(THIS_ UINT Level,D3DLOCKED_RECT* pLockedRect,CONST RECT* pRect,DWORD Flags) PURE; + STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE; + STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pDirtyRect) PURE; + + /*** Helper information ***/ + LPCWSTR Name; + UINT Width; + UINT Height; + UINT Levels; + DWORD Usage; + D3DFORMAT Format; + D3DPOOL Pool; + DWORD Priority; + DWORD LOD; + D3DTEXTUREFILTERTYPE FilterType; + UINT LockCount; +}; + +typedef struct IDirect3DTexture9 *LPDIRECT3DTEXTURE9, *PDIRECT3DTEXTURE9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DTexture9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DTexture9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirect3DTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirect3DTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) +#define IDirect3DTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p) +#define IDirect3DTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p) +#define IDirect3DTexture9_GetType(p) (p)->lpVtbl->GetType(p) +#define IDirect3DTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) +#define IDirect3DTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p) +#define IDirect3DTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) +#define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a) +#define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p) +#define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p) +#define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) +#define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b) +#define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d) +#define IDirect3DTexture9_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a) +#define IDirect3DTexture9_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a) +#else +#define IDirect3DTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DTexture9_AddRef(p) (p)->AddRef() +#define IDirect3DTexture9_Release(p) (p)->Release() +#define IDirect3DTexture9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirect3DTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirect3DTexture9_SetPriority(p,a) (p)->SetPriority(a) +#define IDirect3DTexture9_GetPriority(p) (p)->GetPriority() +#define IDirect3DTexture9_PreLoad(p) (p)->PreLoad() +#define IDirect3DTexture9_GetType(p) (p)->GetType() +#define IDirect3DTexture9_SetLOD(p,a) (p)->SetLOD(a) +#define IDirect3DTexture9_GetLOD(p) (p)->GetLOD() +#define IDirect3DTexture9_GetLevelCount(p) (p)->GetLevelCount() +#define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a) +#define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType() +#define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels() +#define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) +#define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b) +#define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d) +#define IDirect3DTexture9_UnlockRect(p,a) (p)->UnlockRect(a) +#define IDirect3DTexture9_AddDirtyRect(p,a) (p)->AddDirtyRect(a) +#endif + + + + + +#undef INTERFACE +#define INTERFACE IDirect3DVolumeTexture9 + +DECLARE_INTERFACE_(IDirect3DVolumeTexture9, IDirect3DBaseTexture9) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DBaseTexture9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; + STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; + STDMETHOD_(DWORD, GetPriority)(THIS) PURE; + STDMETHOD_(void, PreLoad)(THIS) PURE; + STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; + STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE; + STDMETHOD_(DWORD, GetLOD)(THIS) PURE; + STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE; + STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE; + STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE; + STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE; + STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DVOLUME_DESC *pDesc) PURE; + STDMETHOD(GetVolumeLevel)(THIS_ UINT Level,IDirect3DVolume9** ppVolumeLevel) PURE; + STDMETHOD(LockBox)(THIS_ UINT Level,D3DLOCKED_BOX* pLockedVolume,CONST D3DBOX* pBox,DWORD Flags) PURE; + STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE; + STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX* pDirtyBox) PURE; + + /*** Helper information ***/ + LPCWSTR Name; + UINT Width; + UINT Height; + UINT Depth; + UINT Levels; + DWORD Usage; + D3DFORMAT Format; + D3DPOOL Pool; + DWORD Priority; + DWORD LOD; + D3DTEXTUREFILTERTYPE FilterType; + UINT LockCount; +}; + +typedef struct IDirect3DVolumeTexture9 *LPDIRECT3DVOLUMETEXTURE9, *PDIRECT3DVOLUMETEXTURE9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DVolumeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DVolumeTexture9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) +#define IDirect3DVolumeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p) +#define IDirect3DVolumeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p) +#define IDirect3DVolumeTexture9_GetType(p) (p)->lpVtbl->GetType(p) +#define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) +#define IDirect3DVolumeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p) +#define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) +#define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a) +#define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p) +#define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p) +#define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) +#define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b) +#define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d) +#define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a) +#define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a) +#else +#define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DVolumeTexture9_AddRef(p) (p)->AddRef() +#define IDirect3DVolumeTexture9_Release(p) (p)->Release() +#define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->SetPriority(a) +#define IDirect3DVolumeTexture9_GetPriority(p) (p)->GetPriority() +#define IDirect3DVolumeTexture9_PreLoad(p) (p)->PreLoad() +#define IDirect3DVolumeTexture9_GetType(p) (p)->GetType() +#define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->SetLOD(a) +#define IDirect3DVolumeTexture9_GetLOD(p) (p)->GetLOD() +#define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->GetLevelCount() +#define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a) +#define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType() +#define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels() +#define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) +#define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b) +#define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d) +#define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->UnlockBox(a) +#define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->AddDirtyBox(a) +#endif + + + + + +#undef INTERFACE +#define INTERFACE IDirect3DCubeTexture9 + +DECLARE_INTERFACE_(IDirect3DCubeTexture9, IDirect3DBaseTexture9) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DBaseTexture9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; + STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; + STDMETHOD_(DWORD, GetPriority)(THIS) PURE; + STDMETHOD_(void, PreLoad)(THIS) PURE; + STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; + STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE; + STDMETHOD_(DWORD, GetLOD)(THIS) PURE; + STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE; + STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE; + STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE; + STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE; + STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC *pDesc) PURE; + STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,IDirect3DSurface9** ppCubeMapSurface) PURE; + STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,D3DLOCKED_RECT* pLockedRect,CONST RECT* pRect,DWORD Flags) PURE; + STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level) PURE; + STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES FaceType,CONST RECT* pDirtyRect) PURE; + + /*** Helper information ***/ + LPCWSTR Name; + UINT Width; + UINT Height; + UINT Levels; + DWORD Usage; + D3DFORMAT Format; + D3DPOOL Pool; + DWORD Priority; + DWORD LOD; + D3DTEXTUREFILTERTYPE FilterType; + UINT LockCount; +}; + +typedef struct IDirect3DCubeTexture9 *LPDIRECT3DCUBETEXTURE9, *PDIRECT3DCUBETEXTURE9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DCubeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DCubeTexture9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DCubeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirect3DCubeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) +#define IDirect3DCubeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p) +#define IDirect3DCubeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p) +#define IDirect3DCubeTexture9_GetType(p) (p)->lpVtbl->GetType(p) +#define IDirect3DCubeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) +#define IDirect3DCubeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p) +#define IDirect3DCubeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p) +#define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a) +#define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p) +#define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p) +#define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b) +#define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c) +#define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e) +#define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b) +#define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b) +#else +#define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DCubeTexture9_AddRef(p) (p)->AddRef() +#define IDirect3DCubeTexture9_Release(p) (p)->Release() +#define IDirect3DCubeTexture9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirect3DCubeTexture9_SetPriority(p,a) (p)->SetPriority(a) +#define IDirect3DCubeTexture9_GetPriority(p) (p)->GetPriority() +#define IDirect3DCubeTexture9_PreLoad(p) (p)->PreLoad() +#define IDirect3DCubeTexture9_GetType(p) (p)->GetType() +#define IDirect3DCubeTexture9_SetLOD(p,a) (p)->SetLOD(a) +#define IDirect3DCubeTexture9_GetLOD(p) (p)->GetLOD() +#define IDirect3DCubeTexture9_GetLevelCount(p) (p)->GetLevelCount() +#define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a) +#define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType() +#define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels() +#define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b) +#define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c) +#define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e) +#define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->UnlockRect(a,b) +#define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b) +#endif + + + + +#undef INTERFACE +#define INTERFACE IDirect3DVertexBuffer9 + +DECLARE_INTERFACE_(IDirect3DVertexBuffer9, IDirect3DResource9) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DResource9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; + STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; + STDMETHOD_(DWORD, GetPriority)(THIS) PURE; + STDMETHOD_(void, PreLoad)(THIS) PURE; + STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; + STDMETHOD(Lock)(THIS_ UINT OffsetToLock,UINT SizeToLock,void** ppbData,DWORD Flags) PURE; + STDMETHOD(Unlock)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC *pDesc) PURE; + + /*** Helper information ***/ + LPCWSTR Name; + UINT Length; + DWORD Usage; + DWORD FVF; + D3DPOOL Pool; + DWORD Priority; + UINT LockCount; +}; + +typedef struct IDirect3DVertexBuffer9 *LPDIRECT3DVERTEXBUFFER9, *PDIRECT3DVERTEXBUFFER9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DVertexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DVertexBuffer9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) +#define IDirect3DVertexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p) +#define IDirect3DVertexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p) +#define IDirect3DVertexBuffer9_GetType(p) (p)->lpVtbl->GetType(p) +#define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) +#define IDirect3DVertexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p) +#define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) +#else +#define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DVertexBuffer9_AddRef(p) (p)->AddRef() +#define IDirect3DVertexBuffer9_Release(p) (p)->Release() +#define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->SetPriority(a) +#define IDirect3DVertexBuffer9_GetPriority(p) (p)->GetPriority() +#define IDirect3DVertexBuffer9_PreLoad(p) (p)->PreLoad() +#define IDirect3DVertexBuffer9_GetType(p) (p)->GetType() +#define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) +#define IDirect3DVertexBuffer9_Unlock(p) (p)->Unlock() +#define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->GetDesc(a) +#endif + + + + +#undef INTERFACE +#define INTERFACE IDirect3DIndexBuffer9 + +DECLARE_INTERFACE_(IDirect3DIndexBuffer9, IDirect3DResource9) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DResource9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; + STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; + STDMETHOD_(DWORD, GetPriority)(THIS) PURE; + STDMETHOD_(void, PreLoad)(THIS) PURE; + STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; + STDMETHOD(Lock)(THIS_ UINT OffsetToLock,UINT SizeToLock,void** ppbData,DWORD Flags) PURE; + STDMETHOD(Unlock)(THIS) PURE; + STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC *pDesc) PURE; + + /*** Helper information ***/ + LPCWSTR Name; + UINT Length; + DWORD Usage; + D3DFORMAT Format; + D3DPOOL Pool; + DWORD Priority; + UINT LockCount; +}; + +typedef struct IDirect3DIndexBuffer9 *LPDIRECT3DINDEXBUFFER9, *PDIRECT3DINDEXBUFFER9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DIndexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DIndexBuffer9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) +#define IDirect3DIndexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p) +#define IDirect3DIndexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p) +#define IDirect3DIndexBuffer9_GetType(p) (p)->lpVtbl->GetType(p) +#define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) +#define IDirect3DIndexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p) +#define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) +#else +#define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DIndexBuffer9_AddRef(p) (p)->AddRef() +#define IDirect3DIndexBuffer9_Release(p) (p)->Release() +#define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->SetPriority(a) +#define IDirect3DIndexBuffer9_GetPriority(p) (p)->GetPriority() +#define IDirect3DIndexBuffer9_PreLoad(p) (p)->PreLoad() +#define IDirect3DIndexBuffer9_GetType(p) (p)->GetType() +#define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) +#define IDirect3DIndexBuffer9_Unlock(p) (p)->Unlock() +#define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->GetDesc(a) +#endif + + + + +#undef INTERFACE +#define INTERFACE IDirect3DSurface9 + +DECLARE_INTERFACE_(IDirect3DSurface9, IDirect3DResource9) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DResource9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; + STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE; + STDMETHOD_(DWORD, GetPriority)(THIS) PURE; + STDMETHOD_(void, PreLoad)(THIS) PURE; + STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE; + STDMETHOD(GetContainer)(THIS_ REFIID riid,void** ppContainer) PURE; + STDMETHOD(GetDesc)(THIS_ D3DSURFACE_DESC *pDesc) PURE; + STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT* pLockedRect,CONST RECT* pRect,DWORD Flags) PURE; + STDMETHOD(UnlockRect)(THIS) PURE; + STDMETHOD(GetDC)(THIS_ HDC *phdc) PURE; + STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE; + + /*** Helper information ***/ + LPCWSTR Name; + UINT Width; + UINT Height; + DWORD Usage; + D3DFORMAT Format; + D3DPOOL Pool; + D3DMULTISAMPLE_TYPE MultiSampleType; + DWORD MultiSampleQuality; + DWORD Priority; + UINT LockCount; + UINT DCCount; +}; + +typedef struct IDirect3DSurface9 *LPDIRECT3DSURFACE9, *PDIRECT3DSURFACE9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DSurface9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DSurface9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DSurface9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DSurface9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirect3DSurface9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirect3DSurface9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) +#define IDirect3DSurface9_GetPriority(p) (p)->lpVtbl->GetPriority(p) +#define IDirect3DSurface9_PreLoad(p) (p)->lpVtbl->PreLoad(p) +#define IDirect3DSurface9_GetType(p) (p)->lpVtbl->GetType(p) +#define IDirect3DSurface9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b) +#define IDirect3DSurface9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) +#define IDirect3DSurface9_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c) +#define IDirect3DSurface9_UnlockRect(p) (p)->lpVtbl->UnlockRect(p) +#define IDirect3DSurface9_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) +#define IDirect3DSurface9_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) +#else +#define IDirect3DSurface9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DSurface9_AddRef(p) (p)->AddRef() +#define IDirect3DSurface9_Release(p) (p)->Release() +#define IDirect3DSurface9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirect3DSurface9_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirect3DSurface9_SetPriority(p,a) (p)->SetPriority(a) +#define IDirect3DSurface9_GetPriority(p) (p)->GetPriority() +#define IDirect3DSurface9_PreLoad(p) (p)->PreLoad() +#define IDirect3DSurface9_GetType(p) (p)->GetType() +#define IDirect3DSurface9_GetContainer(p,a,b) (p)->GetContainer(a,b) +#define IDirect3DSurface9_GetDesc(p,a) (p)->GetDesc(a) +#define IDirect3DSurface9_LockRect(p,a,b,c) (p)->LockRect(a,b,c) +#define IDirect3DSurface9_UnlockRect(p) (p)->UnlockRect() +#define IDirect3DSurface9_GetDC(p,a) (p)->GetDC(a) +#define IDirect3DSurface9_ReleaseDC(p,a) (p)->ReleaseDC(a) +#endif + + + + +#undef INTERFACE +#define INTERFACE IDirect3DVolume9 + +DECLARE_INTERFACE_(IDirect3DVolume9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DVolume9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE; + STDMETHOD(GetContainer)(THIS_ REFIID riid,void** ppContainer) PURE; + STDMETHOD(GetDesc)(THIS_ D3DVOLUME_DESC *pDesc) PURE; + STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX * pLockedVolume,CONST D3DBOX* pBox,DWORD Flags) PURE; + STDMETHOD(UnlockBox)(THIS) PURE; + + /*** Helper information ***/ + LPCWSTR Name; + UINT Width; + UINT Height; + UINT Depth; + DWORD Usage; + D3DFORMAT Format; + D3DPOOL Pool; + UINT LockCount; +}; + +typedef struct IDirect3DVolume9 *LPDIRECT3DVOLUME9, *PDIRECT3DVOLUME9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DVolume9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DVolume9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DVolume9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DVolume9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirect3DVolume9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirect3DVolume9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b) +#define IDirect3DVolume9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a) +#define IDirect3DVolume9_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c) +#define IDirect3DVolume9_UnlockBox(p) (p)->lpVtbl->UnlockBox(p) +#else +#define IDirect3DVolume9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DVolume9_AddRef(p) (p)->AddRef() +#define IDirect3DVolume9_Release(p) (p)->Release() +#define IDirect3DVolume9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirect3DVolume9_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirect3DVolume9_GetContainer(p,a,b) (p)->GetContainer(a,b) +#define IDirect3DVolume9_GetDesc(p,a) (p)->GetDesc(a) +#define IDirect3DVolume9_LockBox(p,a,b,c) (p)->LockBox(a,b,c) +#define IDirect3DVolume9_UnlockBox(p) (p)->UnlockBox() +#endif + + + +#undef INTERFACE +#define INTERFACE IDirect3DQuery9 + +DECLARE_INTERFACE_(IDirect3DQuery9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DQuery9 methods ***/ + STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE; + STDMETHOD_(D3DQUERYTYPE, GetType)(THIS) PURE; + STDMETHOD_(DWORD, GetDataSize)(THIS) PURE; + STDMETHOD(Issue)(THIS_ DWORD dwIssueFlags) PURE; + STDMETHOD(GetData)(THIS_ void* pData,DWORD dwSize,DWORD dwGetDataFlags) PURE; + + /*** Helper information ***/ + D3DQUERYTYPE Type; + DWORD DataSize; +}; + +typedef struct IDirect3DQuery9 *LPDIRECT3DQUERY9, *PDIRECT3DQUERY9; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DQuery9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DQuery9_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DQuery9_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DQuery9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a) +#define IDirect3DQuery9_GetType(p) (p)->lpVtbl->GetType(p) +#define IDirect3DQuery9_GetDataSize(p) (p)->lpVtbl->GetDataSize(p) +#define IDirect3DQuery9_Issue(p,a) (p)->lpVtbl->Issue(p,a) +#define IDirect3DQuery9_GetData(p,a,b,c) (p)->lpVtbl->GetData(p,a,b,c) +#else +#define IDirect3DQuery9_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DQuery9_AddRef(p) (p)->AddRef() +#define IDirect3DQuery9_Release(p) (p)->Release() +#define IDirect3DQuery9_GetDevice(p,a) (p)->GetDevice(a) +#define IDirect3DQuery9_GetType(p) (p)->GetType() +#define IDirect3DQuery9_GetDataSize(p) (p)->GetDataSize() +#define IDirect3DQuery9_Issue(p,a) (p)->Issue(a) +#define IDirect3DQuery9_GetData(p,a,b,c) (p)->GetData(a,b,c) +#endif + + +/**************************************************************************** + * Flags for SetPrivateData method on all D3D9 interfaces + * + * The passed pointer is an IUnknown ptr. The SizeOfData argument to SetPrivateData + * must be set to sizeof(IUnknown*). Direct3D will call AddRef through this + * pointer and Release when the private data is destroyed. The data will be + * destroyed when another SetPrivateData with the same GUID is set, when + * FreePrivateData is called, or when the D3D9 object is freed. + ****************************************************************************/ +#define D3DSPD_IUNKNOWN 0x00000001L + +/**************************************************************************** + * + * Flags for IDirect3D9::CreateDevice's BehaviorFlags + * + ****************************************************************************/ + +#define D3DCREATE_FPU_PRESERVE 0x00000002L +#define D3DCREATE_MULTITHREADED 0x00000004L + +#define D3DCREATE_PUREDEVICE 0x00000010L +#define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020L +#define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040L +#define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080L + +#define D3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100L +#define D3DCREATE_ADAPTERGROUP_DEVICE 0x00000200L + + +/**************************************************************************** + * + * Parameter for IDirect3D9::CreateDevice's iAdapter + * + ****************************************************************************/ + +#define D3DADAPTER_DEFAULT 0 + +/**************************************************************************** + * + * Flags for IDirect3D9::EnumAdapters + * + ****************************************************************************/ + +#define D3DENUM_NO_DRIVERVERSION 0x00000004L + +/**************************************************************************** + * + * Maximum number of back-buffers supported in DX8 + * + ****************************************************************************/ + +#define D3DPRESENT_BACK_BUFFERS_MAX 3L + +/**************************************************************************** + * + * Flags for IDirect3DDevice9::SetGammaRamp + * + ****************************************************************************/ + +#define D3DSGR_NO_CALIBRATION 0x00000000L +#define D3DSGR_CALIBRATE 0x00000001L + +/**************************************************************************** + * + * Flags for IDirect3DDevice9::SetCursorPosition + * + ****************************************************************************/ + +#define D3DCURSOR_IMMEDIATE_UPDATE 0x00000001L + +/**************************************************************************** + * + * Flags for IDirect3DSwapChain9::Present + * + ****************************************************************************/ + +#define D3DPRESENT_DONOTWAIT 0x00000001L +#define D3DPRESENT_LINEAR_CONTENT 0x00000002L + +/**************************************************************************** + * + * Flags for DrawPrimitive/DrawIndexedPrimitive + * Also valid for Begin/BeginIndexed + * Also valid for VertexBuffer::CreateVertexBuffer + ****************************************************************************/ + + +/* + * DirectDraw error codes + */ +#define _FACD3D 0x876 +#define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code ) +#define MAKE_D3DSTATUS( code ) MAKE_HRESULT( 0, _FACD3D, code ) + +/* + * Direct3D Errors + */ +#define D3D_OK S_OK + +#define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072) +#define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073) +#define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074) +#define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075) +#define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076) +#define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077) +#define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078) +#define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079) +#define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081) +#define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082) +#define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086) +#define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087) + +#define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150) +#define D3DERR_MOREDATA MAKE_D3DHRESULT(2151) +#define D3DERR_DEVICELOST MAKE_D3DHRESULT(2152) +#define D3DERR_DEVICENOTRESET MAKE_D3DHRESULT(2153) +#define D3DERR_NOTAVAILABLE MAKE_D3DHRESULT(2154) +#define D3DERR_OUTOFVIDEOMEMORY MAKE_D3DHRESULT(380) +#define D3DERR_INVALIDDEVICE MAKE_D3DHRESULT(2155) +#define D3DERR_INVALIDCALL MAKE_D3DHRESULT(2156) +#define D3DERR_DRIVERINVALIDCALL MAKE_D3DHRESULT(2157) +#define D3DERR_WASSTILLDRAWING MAKE_D3DHRESULT(540) +#define D3DOK_NOAUTOGEN MAKE_D3DSTATUS(2159) + + +#ifdef __cplusplus +}; +#endif + +#endif /* (DIRECT3D_VERSION >= 0x0900) */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _D3D_H_ */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d9on12.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d9on12.h new file mode 100644 index 0000000000000000000000000000000000000000..836117bdfba4dd0b16b233d0b1b079f34ded700a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3d9on12.h @@ -0,0 +1,109 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: d3d9on12.h + * Content: Direct3D include file + * + ****************************************************************************/ + +#ifndef _D3D9ON12_H_ +#define _D3D9ON12_H_ +#include "d3d9.h" +#include "d3d12.h" + +// include this file content only if compiling for DX9 interfaces +#if(DIRECT3D_VERSION >= 0x0900) + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// COM interface stuff to allow 9On12 struct to reference IUnknown +#include + +#define MAX_D3D9ON12_QUEUES 2 + +typedef struct _D3D9ON12_ARGS +{ + BOOL Enable9On12; + IUnknown *pD3D12Device; + IUnknown *ppD3D12Queues[MAX_D3D9ON12_QUEUES]; + UINT NumQueues; + UINT NodeMask; +} D3D9ON12_ARGS; + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Entry point interfaces for creating a IDirect3D9 with 9On12 arguments + */ + +typedef HRESULT (WINAPI *PFN_Direct3DCreate9On12Ex)(UINT SDKVersion, D3D9ON12_ARGS *pOverrideList, UINT NumOverrideEntries, IDirect3D9Ex** ppOutputInterface); +HRESULT WINAPI Direct3DCreate9On12Ex(UINT SDKVersion, D3D9ON12_ARGS *pOverrideList, UINT NumOverrideEntries, IDirect3D9Ex** ppOutputInterface); + +typedef IDirect3D9* (WINAPI *PFN_Direct3DCreate9On12)(UINT SDKVersion, D3D9ON12_ARGS *pOverrideList, UINT NumOverrideEntries); +IDirect3D9* WINAPI Direct3DCreate9On12(UINT SDKVersion, D3D9ON12_ARGS *pOverrideList, UINT NumOverrideEntries); + + +/* IID_IDirect3DDevice9On12 */ +/* {e7fda234-b589-4049-940d-8878977531c8} */ +DEFINE_GUID(IID_IDirect3DDevice9On12, 0xe7fda234, 0xb589, 0x4049, 0x94, 0x0d, 0x88, 0x78, 0x97, 0x75, 0x31, 0xc8); + +interface DECLSPEC_UUID("e7fda234-b589-4049-940d-8878977531c8") IDirect3DDevice9On12; + +#if defined(_COM_SMARTPTR_TYPEDEF) +_COM_SMARTPTR_TYPEDEF(IDirect3DDevice9On12, __uuidof(IDirect3DDevice9On12)); +#endif + + + + +#undef INTERFACE +#define INTERFACE IDirect3DDevice9On12 + +DECLARE_INTERFACE_(IDirect3DDevice9On12, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DDevice9On12 methods ***/ + STDMETHOD(GetD3D12Device)(THIS_ REFIID riid,void** ppvDevice) PURE; + STDMETHOD(UnwrapUnderlyingResource)(THIS_ IDirect3DResource9* pResource,ID3D12CommandQueue* pCommandQueue,REFIID riid,void** ppvResource12) PURE; + STDMETHOD(ReturnUnderlyingResource)(THIS_ IDirect3DResource9* pResource,UINT NumSync,UINT64* pSignalValues,ID3D12Fence** ppFences) PURE; +}; + +typedef struct IDirect3DDevice9On12 *LPDIRECT3DDEVICE9ON12, *PDIRECT3DDEVICE9ON12; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirect3DDevice9On12_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirect3DDevice9On12_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirect3DDevice9On12_Release(p) (p)->lpVtbl->Release(p) +#define IDirect3DDevice9On12_GetD3D12Device(p,a,b) (p)->lpVtbl->GetD3D12Device(p,a,b) +#define IDirect3DDevice9On12_UnwrapUnderlyingResource(p,a,b,c,d) (p)->lpVtbl->UnwrapUnderlyingResource(p,a,b,c,d) +#define IDirect3DDevice9On12_ReturnUnderlyingResource(p,a,b,c,d) (p)->lpVtbl->ReturnUnderlyingResource(p,a,b,c,d) +#else +#define IDirect3DDevice9On12_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirect3DDevice9On12_AddRef(p) (p)->AddRef() +#define IDirect3DDevice9On12_Release(p) (p)->Release() +#define IDirect3DDevice9On12_GetD3D12Device(p,a,b) (p)->GetD3D12Device(a,b) +#define IDirect3DDevice9On12_UnwrapUnderlyingResource(p,a,b,c,d) (p)->UnwrapUnderlyingResource(a,b,c,d) +#define IDirect3DDevice9On12_ReturnUnderlyingResource(p,a,b,c,d) (p)->ReturnUnderlyingResource(a,b,c,d) +#endif + + + +#ifdef __cplusplus +}; +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* (DIRECT3D_VERSION >= 0x0900) */ +#endif /* _D3D_H_ */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcaps.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcaps.h new file mode 100644 index 0000000000000000000000000000000000000000..15e419ffb264c0a8a09522cc66f3e22cee9778c0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcaps.h @@ -0,0 +1,609 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: d3dcaps.h + * Content: Direct3D capabilities include file + * + ***************************************************************************/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef _D3DCAPS_H +#define _D3DCAPS_H + +/* + * Pull in DirectDraw include file automatically: + */ +#include "ddraw.h" + +#ifndef DIRECT3D_VERSION +#define DIRECT3D_VERSION 0x0700 +#endif + +#if defined(_X86_) || defined(_IA64_) +#pragma pack(4) +#endif + +/* Description of capabilities of transform */ + +typedef struct _D3DTRANSFORMCAPS { + DWORD dwSize; + DWORD dwCaps; +} D3DTRANSFORMCAPS, *LPD3DTRANSFORMCAPS; + +#define D3DTRANSFORMCAPS_CLIP 0x00000001L /* Will clip whilst transforming */ + +/* Description of capabilities of lighting */ + +typedef struct _D3DLIGHTINGCAPS { + DWORD dwSize; + DWORD dwCaps; /* Lighting caps */ + DWORD dwLightingModel; /* Lighting model - RGB or mono */ + DWORD dwNumLights; /* Number of lights that can be handled */ +} D3DLIGHTINGCAPS, *LPD3DLIGHTINGCAPS; + +#define D3DLIGHTINGMODEL_RGB 0x00000001L +#define D3DLIGHTINGMODEL_MONO 0x00000002L + +#define D3DLIGHTCAPS_POINT 0x00000001L /* Point lights supported */ +#define D3DLIGHTCAPS_SPOT 0x00000002L /* Spot lights supported */ +#define D3DLIGHTCAPS_DIRECTIONAL 0x00000004L /* Directional lights supported */ +#if(DIRECT3D_VERSION < 0x700) +#define D3DLIGHTCAPS_PARALLELPOINT 0x00000008L /* Parallel point lights supported */ +#endif +#if(DIRECT3D_VERSION < 0x500) +#define D3DLIGHTCAPS_GLSPOT 0x00000010L /* GL syle spot lights supported */ +#endif + +/* Description of capabilities for each primitive type */ + +typedef struct _D3DPrimCaps { + DWORD dwSize; + DWORD dwMiscCaps; /* Capability flags */ + DWORD dwRasterCaps; + DWORD dwZCmpCaps; + DWORD dwSrcBlendCaps; + DWORD dwDestBlendCaps; + DWORD dwAlphaCmpCaps; + DWORD dwShadeCaps; + DWORD dwTextureCaps; + DWORD dwTextureFilterCaps; + DWORD dwTextureBlendCaps; + DWORD dwTextureAddressCaps; + DWORD dwStippleWidth; /* maximum width and height of */ + DWORD dwStippleHeight; /* of supported stipple (up to 32x32) */ +} D3DPRIMCAPS, *LPD3DPRIMCAPS; + +/* D3DPRIMCAPS dwMiscCaps */ + +#define D3DPMISCCAPS_MASKPLANES 0x00000001L +#define D3DPMISCCAPS_MASKZ 0x00000002L +#define D3DPMISCCAPS_LINEPATTERNREP 0x00000004L +#define D3DPMISCCAPS_CONFORMANT 0x00000008L +#define D3DPMISCCAPS_CULLNONE 0x00000010L +#define D3DPMISCCAPS_CULLCW 0x00000020L +#define D3DPMISCCAPS_CULLCCW 0x00000040L + +/* D3DPRIMCAPS dwRasterCaps */ + +#define D3DPRASTERCAPS_DITHER 0x00000001L +#define D3DPRASTERCAPS_ROP2 0x00000002L +#define D3DPRASTERCAPS_XOR 0x00000004L +#define D3DPRASTERCAPS_PAT 0x00000008L +#define D3DPRASTERCAPS_ZTEST 0x00000010L +#define D3DPRASTERCAPS_SUBPIXEL 0x00000020L +#define D3DPRASTERCAPS_SUBPIXELX 0x00000040L +#define D3DPRASTERCAPS_FOGVERTEX 0x00000080L +#define D3DPRASTERCAPS_FOGTABLE 0x00000100L +#define D3DPRASTERCAPS_STIPPLE 0x00000200L +#if(DIRECT3D_VERSION >= 0x0500) +#define D3DPRASTERCAPS_ANTIALIASSORTDEPENDENT 0x00000400L +#define D3DPRASTERCAPS_ANTIALIASSORTINDEPENDENT 0x00000800L +#define D3DPRASTERCAPS_ANTIALIASEDGES 0x00001000L +#define D3DPRASTERCAPS_MIPMAPLODBIAS 0x00002000L +#define D3DPRASTERCAPS_ZBIAS 0x00004000L +#define D3DPRASTERCAPS_ZBUFFERLESSHSR 0x00008000L +#define D3DPRASTERCAPS_FOGRANGE 0x00010000L +#define D3DPRASTERCAPS_ANISOTROPY 0x00020000L +#endif /* DIRECT3D_VERSION >= 0x0500 */ +#if(DIRECT3D_VERSION >= 0x0600) +#define D3DPRASTERCAPS_WBUFFER 0x00040000L +#define D3DPRASTERCAPS_TRANSLUCENTSORTINDEPENDENT 0x00080000L +#define D3DPRASTERCAPS_WFOG 0x00100000L +#define D3DPRASTERCAPS_ZFOG 0x00200000L +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +/* D3DPRIMCAPS dwZCmpCaps, dwAlphaCmpCaps */ + +#define D3DPCMPCAPS_NEVER 0x00000001L +#define D3DPCMPCAPS_LESS 0x00000002L +#define D3DPCMPCAPS_EQUAL 0x00000004L +#define D3DPCMPCAPS_LESSEQUAL 0x00000008L +#define D3DPCMPCAPS_GREATER 0x00000010L +#define D3DPCMPCAPS_NOTEQUAL 0x00000020L +#define D3DPCMPCAPS_GREATEREQUAL 0x00000040L +#define D3DPCMPCAPS_ALWAYS 0x00000080L + +/* D3DPRIMCAPS dwSourceBlendCaps, dwDestBlendCaps */ + +#define D3DPBLENDCAPS_ZERO 0x00000001L +#define D3DPBLENDCAPS_ONE 0x00000002L +#define D3DPBLENDCAPS_SRCCOLOR 0x00000004L +#define D3DPBLENDCAPS_INVSRCCOLOR 0x00000008L +#define D3DPBLENDCAPS_SRCALPHA 0x00000010L +#define D3DPBLENDCAPS_INVSRCALPHA 0x00000020L +#define D3DPBLENDCAPS_DESTALPHA 0x00000040L +#define D3DPBLENDCAPS_INVDESTALPHA 0x00000080L +#define D3DPBLENDCAPS_DESTCOLOR 0x00000100L +#define D3DPBLENDCAPS_INVDESTCOLOR 0x00000200L +#define D3DPBLENDCAPS_SRCALPHASAT 0x00000400L +#define D3DPBLENDCAPS_BOTHSRCALPHA 0x00000800L +#define D3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000L + +/* D3DPRIMCAPS dwShadeCaps */ + +#define D3DPSHADECAPS_COLORFLATMONO 0x00000001L +#define D3DPSHADECAPS_COLORFLATRGB 0x00000002L +#define D3DPSHADECAPS_COLORGOURAUDMONO 0x00000004L +#define D3DPSHADECAPS_COLORGOURAUDRGB 0x00000008L +#define D3DPSHADECAPS_COLORPHONGMONO 0x00000010L +#define D3DPSHADECAPS_COLORPHONGRGB 0x00000020L + +#define D3DPSHADECAPS_SPECULARFLATMONO 0x00000040L +#define D3DPSHADECAPS_SPECULARFLATRGB 0x00000080L +#define D3DPSHADECAPS_SPECULARGOURAUDMONO 0x00000100L +#define D3DPSHADECAPS_SPECULARGOURAUDRGB 0x00000200L +#define D3DPSHADECAPS_SPECULARPHONGMONO 0x00000400L +#define D3DPSHADECAPS_SPECULARPHONGRGB 0x00000800L + +#define D3DPSHADECAPS_ALPHAFLATBLEND 0x00001000L +#define D3DPSHADECAPS_ALPHAFLATSTIPPLED 0x00002000L +#define D3DPSHADECAPS_ALPHAGOURAUDBLEND 0x00004000L +#define D3DPSHADECAPS_ALPHAGOURAUDSTIPPLED 0x00008000L +#define D3DPSHADECAPS_ALPHAPHONGBLEND 0x00010000L +#define D3DPSHADECAPS_ALPHAPHONGSTIPPLED 0x00020000L + +#define D3DPSHADECAPS_FOGFLAT 0x00040000L +#define D3DPSHADECAPS_FOGGOURAUD 0x00080000L +#define D3DPSHADECAPS_FOGPHONG 0x00100000L + +/* D3DPRIMCAPS dwTextureCaps */ + +/* + * Perspective-correct texturing is supported + */ +#define D3DPTEXTURECAPS_PERSPECTIVE 0x00000001L + +/* + * Power-of-2 texture dimensions are required + */ +#define D3DPTEXTURECAPS_POW2 0x00000002L + +/* + * Alpha in texture pixels is supported + */ +#define D3DPTEXTURECAPS_ALPHA 0x00000004L + +/* + * Color-keyed textures are supported + */ +#define D3DPTEXTURECAPS_TRANSPARENCY 0x00000008L + +/* + * obsolete, see D3DPTADDRESSCAPS_BORDER + */ +#define D3DPTEXTURECAPS_BORDER 0x00000010L + +/* + * Only square textures are supported + */ +#define D3DPTEXTURECAPS_SQUAREONLY 0x00000020L + +#if(DIRECT3D_VERSION >= 0x0600) +/* + * Texture indices are not scaled by the texture size prior + * to interpolation. + */ +#define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE 0x00000040L + +/* + * Device can draw alpha from texture palettes + */ +#define D3DPTEXTURECAPS_ALPHAPALETTE 0x00000080L + +/* + * Device can use non-POW2 textures if: + * 1) D3DTEXTURE_ADDRESS is set to CLAMP for this texture's stage + * 2) D3DRS_WRAP(N) is zero for this texture's coordinates + * 3) mip mapping is not enabled (use magnification filter only) + */ +#define D3DPTEXTURECAPS_NONPOW2CONDITIONAL 0x00000100L + +#endif /* DIRECT3D_VERSION >= 0x0600 */ +#if(DIRECT3D_VERSION >= 0x0700) + +// 0x00000200L unused + +/* + * Device can divide transformed texture coordinates by the + * COUNTth texture coordinate (can do D3DTTFF_PROJECTED) + */ +#define D3DPTEXTURECAPS_PROJECTED 0x00000400L + +/* + * Device can do cubemap textures + */ +#define D3DPTEXTURECAPS_CUBEMAP 0x00000800L + +#define D3DPTEXTURECAPS_COLORKEYBLEND 0x00001000L +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* D3DPRIMCAPS dwTextureFilterCaps */ + +#define D3DPTFILTERCAPS_NEAREST 0x00000001L +#define D3DPTFILTERCAPS_LINEAR 0x00000002L +#define D3DPTFILTERCAPS_MIPNEAREST 0x00000004L +#define D3DPTFILTERCAPS_MIPLINEAR 0x00000008L +#define D3DPTFILTERCAPS_LINEARMIPNEAREST 0x00000010L +#define D3DPTFILTERCAPS_LINEARMIPLINEAR 0x00000020L + +#if(DIRECT3D_VERSION >= 0x0600) +/* Device3 Min Filter */ +#define D3DPTFILTERCAPS_MINFPOINT 0x00000100L +#define D3DPTFILTERCAPS_MINFLINEAR 0x00000200L +#define D3DPTFILTERCAPS_MINFANISOTROPIC 0x00000400L + +/* Device3 Mip Filter */ +#define D3DPTFILTERCAPS_MIPFPOINT 0x00010000L +#define D3DPTFILTERCAPS_MIPFLINEAR 0x00020000L + +/* Device3 Mag Filter */ +#define D3DPTFILTERCAPS_MAGFPOINT 0x01000000L +#define D3DPTFILTERCAPS_MAGFLINEAR 0x02000000L +#define D3DPTFILTERCAPS_MAGFANISOTROPIC 0x04000000L +#define D3DPTFILTERCAPS_MAGFAFLATCUBIC 0x08000000L +#define D3DPTFILTERCAPS_MAGFGAUSSIANCUBIC 0x10000000L +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +/* D3DPRIMCAPS dwTextureBlendCaps */ + +#define D3DPTBLENDCAPS_DECAL 0x00000001L +#define D3DPTBLENDCAPS_MODULATE 0x00000002L +#define D3DPTBLENDCAPS_DECALALPHA 0x00000004L +#define D3DPTBLENDCAPS_MODULATEALPHA 0x00000008L +#define D3DPTBLENDCAPS_DECALMASK 0x00000010L +#define D3DPTBLENDCAPS_MODULATEMASK 0x00000020L +#define D3DPTBLENDCAPS_COPY 0x00000040L +#if(DIRECT3D_VERSION >= 0x0500) +#define D3DPTBLENDCAPS_ADD 0x00000080L +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +/* D3DPRIMCAPS dwTextureAddressCaps */ +#define D3DPTADDRESSCAPS_WRAP 0x00000001L +#define D3DPTADDRESSCAPS_MIRROR 0x00000002L +#define D3DPTADDRESSCAPS_CLAMP 0x00000004L +#if(DIRECT3D_VERSION >= 0x0500) +#define D3DPTADDRESSCAPS_BORDER 0x00000008L +#define D3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010L +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) + +/* D3DDEVICEDESC dwStencilCaps */ + +#define D3DSTENCILCAPS_KEEP 0x00000001L +#define D3DSTENCILCAPS_ZERO 0x00000002L +#define D3DSTENCILCAPS_REPLACE 0x00000004L +#define D3DSTENCILCAPS_INCRSAT 0x00000008L +#define D3DSTENCILCAPS_DECRSAT 0x00000010L +#define D3DSTENCILCAPS_INVERT 0x00000020L +#define D3DSTENCILCAPS_INCR 0x00000040L +#define D3DSTENCILCAPS_DECR 0x00000080L + +/* D3DDEVICEDESC dwTextureOpCaps */ + +#define D3DTEXOPCAPS_DISABLE 0x00000001L +#define D3DTEXOPCAPS_SELECTARG1 0x00000002L +#define D3DTEXOPCAPS_SELECTARG2 0x00000004L +#define D3DTEXOPCAPS_MODULATE 0x00000008L +#define D3DTEXOPCAPS_MODULATE2X 0x00000010L +#define D3DTEXOPCAPS_MODULATE4X 0x00000020L +#define D3DTEXOPCAPS_ADD 0x00000040L +#define D3DTEXOPCAPS_ADDSIGNED 0x00000080L +#define D3DTEXOPCAPS_ADDSIGNED2X 0x00000100L +#define D3DTEXOPCAPS_SUBTRACT 0x00000200L +#define D3DTEXOPCAPS_ADDSMOOTH 0x00000400L +#define D3DTEXOPCAPS_BLENDDIFFUSEALPHA 0x00000800L +#define D3DTEXOPCAPS_BLENDTEXTUREALPHA 0x00001000L +#define D3DTEXOPCAPS_BLENDFACTORALPHA 0x00002000L +#define D3DTEXOPCAPS_BLENDTEXTUREALPHAPM 0x00004000L +#define D3DTEXOPCAPS_BLENDCURRENTALPHA 0x00008000L +#define D3DTEXOPCAPS_PREMODULATE 0x00010000L +#define D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR 0x00020000L +#define D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA 0x00040000L +#define D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR 0x00080000L +#define D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA 0x00100000L +#define D3DTEXOPCAPS_BUMPENVMAP 0x00200000L +#define D3DTEXOPCAPS_BUMPENVMAPLUMINANCE 0x00400000L +#define D3DTEXOPCAPS_DOTPRODUCT3 0x00800000L + +/* D3DDEVICEDESC dwFVFCaps flags */ + +#define D3DFVFCAPS_TEXCOORDCOUNTMASK 0x0000ffffL /* mask for texture coordinate count field */ +#define D3DFVFCAPS_DONOTSTRIPELEMENTS 0x00080000L /* Device prefers that vertex elements not be stripped */ + +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +/* + * Description for a device. + * This is used to describe a device that is to be created or to query + * the current device. + */ +typedef struct _D3DDeviceDesc { + DWORD dwSize; /* Size of D3DDEVICEDESC structure */ + DWORD dwFlags; /* Indicates which fields have valid data */ + D3DCOLORMODEL dcmColorModel; /* Color model of device */ + DWORD dwDevCaps; /* Capabilities of device */ + D3DTRANSFORMCAPS dtcTransformCaps; /* Capabilities of transform */ + BOOL bClipping; /* Device can do 3D clipping */ + D3DLIGHTINGCAPS dlcLightingCaps; /* Capabilities of lighting */ + D3DPRIMCAPS dpcLineCaps; + D3DPRIMCAPS dpcTriCaps; + DWORD dwDeviceRenderBitDepth; /* One of DDBB_8, 16, etc.. */ + DWORD dwDeviceZBufferBitDepth;/* One of DDBD_16, 32, etc.. */ + DWORD dwMaxBufferSize; /* Maximum execute buffer size */ + DWORD dwMaxVertexCount; /* Maximum vertex count */ +#if(DIRECT3D_VERSION >= 0x0500) + // *** New fields for DX5 *** // + + // Width and height caps are 0 for legacy HALs. + DWORD dwMinTextureWidth, dwMinTextureHeight; + DWORD dwMaxTextureWidth, dwMaxTextureHeight; + DWORD dwMinStippleWidth, dwMaxStippleWidth; + DWORD dwMinStippleHeight, dwMaxStippleHeight; +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) + // New fields for DX6 + DWORD dwMaxTextureRepeat; + DWORD dwMaxTextureAspectRatio; + DWORD dwMaxAnisotropy; + + // Guard band that the rasterizer can accommodate + // Screen-space vertices inside this space but outside the viewport + // will get clipped properly. + D3DVALUE dvGuardBandLeft; + D3DVALUE dvGuardBandTop; + D3DVALUE dvGuardBandRight; + D3DVALUE dvGuardBandBottom; + + D3DVALUE dvExtentsAdjust; + DWORD dwStencilCaps; + + DWORD dwFVFCaps; + DWORD dwTextureOpCaps; + WORD wMaxTextureBlendStages; + WORD wMaxSimultaneousTextures; +#endif /* DIRECT3D_VERSION >= 0x0600 */ +} D3DDEVICEDESC, *LPD3DDEVICEDESC; + +#if(DIRECT3D_VERSION >= 0x0700) +typedef struct _D3DDeviceDesc7 { + DWORD dwDevCaps; /* Capabilities of device */ + D3DPRIMCAPS dpcLineCaps; + D3DPRIMCAPS dpcTriCaps; + DWORD dwDeviceRenderBitDepth; /* One of DDBB_8, 16, etc.. */ + DWORD dwDeviceZBufferBitDepth;/* One of DDBD_16, 32, etc.. */ + + DWORD dwMinTextureWidth, dwMinTextureHeight; + DWORD dwMaxTextureWidth, dwMaxTextureHeight; + + DWORD dwMaxTextureRepeat; + DWORD dwMaxTextureAspectRatio; + DWORD dwMaxAnisotropy; + + D3DVALUE dvGuardBandLeft; + D3DVALUE dvGuardBandTop; + D3DVALUE dvGuardBandRight; + D3DVALUE dvGuardBandBottom; + + D3DVALUE dvExtentsAdjust; + DWORD dwStencilCaps; + + DWORD dwFVFCaps; + DWORD dwTextureOpCaps; + WORD wMaxTextureBlendStages; + WORD wMaxSimultaneousTextures; + + DWORD dwMaxActiveLights; + D3DVALUE dvMaxVertexW; + GUID deviceGUID; + + WORD wMaxUserClipPlanes; + WORD wMaxVertexBlendMatrices; + + DWORD dwVertexProcessingCaps; + + DWORD dwReserved1; + DWORD dwReserved2; + DWORD dwReserved3; + DWORD dwReserved4; +} D3DDEVICEDESC7, *LPD3DDEVICEDESC7; +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#define D3DDEVICEDESCSIZE (sizeof(D3DDEVICEDESC)) +#define D3DDEVICEDESC7SIZE (sizeof(D3DDEVICEDESC7)) + +typedef HRESULT (CALLBACK * LPD3DENUMDEVICESCALLBACK)(GUID FAR *lpGuid, LPSTR lpDeviceDescription, LPSTR lpDeviceName, LPD3DDEVICEDESC, LPD3DDEVICEDESC, LPVOID); + +#if(DIRECT3D_VERSION >= 0x0700) +typedef HRESULT (CALLBACK * LPD3DENUMDEVICESCALLBACK7)(LPSTR lpDeviceDescription, LPSTR lpDeviceName, LPD3DDEVICEDESC7, LPVOID); +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* D3DDEVICEDESC dwFlags indicating valid fields */ + +#define D3DDD_COLORMODEL 0x00000001L /* dcmColorModel is valid */ +#define D3DDD_DEVCAPS 0x00000002L /* dwDevCaps is valid */ +#define D3DDD_TRANSFORMCAPS 0x00000004L /* dtcTransformCaps is valid */ +#define D3DDD_LIGHTINGCAPS 0x00000008L /* dlcLightingCaps is valid */ +#define D3DDD_BCLIPPING 0x00000010L /* bClipping is valid */ +#define D3DDD_LINECAPS 0x00000020L /* dpcLineCaps is valid */ +#define D3DDD_TRICAPS 0x00000040L /* dpcTriCaps is valid */ +#define D3DDD_DEVICERENDERBITDEPTH 0x00000080L /* dwDeviceRenderBitDepth is valid */ +#define D3DDD_DEVICEZBUFFERBITDEPTH 0x00000100L /* dwDeviceZBufferBitDepth is valid */ +#define D3DDD_MAXBUFFERSIZE 0x00000200L /* dwMaxBufferSize is valid */ +#define D3DDD_MAXVERTEXCOUNT 0x00000400L /* dwMaxVertexCount is valid */ + +/* D3DDEVICEDESC dwDevCaps flags */ + +#define D3DDEVCAPS_FLOATTLVERTEX 0x00000001L /* Device accepts floating point */ + /* for post-transform vertex data */ +#define D3DDEVCAPS_SORTINCREASINGZ 0x00000002L /* Device needs data sorted for increasing Z */ +#define D3DDEVCAPS_SORTDECREASINGZ 0X00000004L /* Device needs data sorted for decreasing Z */ +#define D3DDEVCAPS_SORTEXACT 0x00000008L /* Device needs data sorted exactly */ + +#define D3DDEVCAPS_EXECUTESYSTEMMEMORY 0x00000010L /* Device can use execute buffers from system memory */ +#define D3DDEVCAPS_EXECUTEVIDEOMEMORY 0x00000020L /* Device can use execute buffers from video memory */ +#define D3DDEVCAPS_TLVERTEXSYSTEMMEMORY 0x00000040L /* Device can use TL buffers from system memory */ +#define D3DDEVCAPS_TLVERTEXVIDEOMEMORY 0x00000080L /* Device can use TL buffers from video memory */ +#define D3DDEVCAPS_TEXTURESYSTEMMEMORY 0x00000100L /* Device can texture from system memory */ +#define D3DDEVCAPS_TEXTUREVIDEOMEMORY 0x00000200L /* Device can texture from device memory */ +#if(DIRECT3D_VERSION >= 0x0500) +#define D3DDEVCAPS_DRAWPRIMTLVERTEX 0x00000400L /* Device can draw TLVERTEX primitives */ +#define D3DDEVCAPS_CANRENDERAFTERFLIP 0x00000800L /* Device can render without waiting for flip to complete */ +#define D3DDEVCAPS_TEXTURENONLOCALVIDMEM 0x00001000L /* Device can texture from nonlocal video memory */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +#if(DIRECT3D_VERSION >= 0x0600) +#define D3DDEVCAPS_DRAWPRIMITIVES2 0x00002000L /* Device can support DrawPrimitives2 */ +#define D3DDEVCAPS_SEPARATETEXTUREMEMORIES 0x00004000L /* Device is texturing from separate memory pools */ +#define D3DDEVCAPS_DRAWPRIMITIVES2EX 0x00008000L /* Device can support Extended DrawPrimitives2 i.e. DX7 compliant driver*/ +#endif /* DIRECT3D_VERSION >= 0x0600 */ +#if(DIRECT3D_VERSION >= 0x0700) +#define D3DDEVCAPS_HWTRANSFORMANDLIGHT 0x00010000L /* Device can support transformation and lighting in hardware and DRAWPRIMITIVES2EX must be also */ +#define D3DDEVCAPS_CANBLTSYSTONONLOCAL 0x00020000L /* Device supports a Tex Blt from system memory to non-local vidmem */ +#define D3DDEVCAPS_HWRASTERIZATION 0x00080000L /* Device has HW acceleration for rasterization */ + +/* + * These are the flags in the D3DDEVICEDESC7.dwVertexProcessingCaps field + */ + +/* device can do texgen */ +#define D3DVTXPCAPS_TEXGEN 0x00000001L +/* device can do IDirect3DDevice7 colormaterialsource ops */ +#define D3DVTXPCAPS_MATERIALSOURCE7 0x00000002L +/* device can do vertex fog */ +#define D3DVTXPCAPS_VERTEXFOG 0x00000004L +/* device can do directional lights */ +#define D3DVTXPCAPS_DIRECTIONALLIGHTS 0x00000008L +/* device can do positional lights (includes point and spot) */ +#define D3DVTXPCAPS_POSITIONALLIGHTS 0x00000010L +/* device can do local viewer */ +#define D3DVTXPCAPS_LOCALVIEWER 0x00000020L + +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#define D3DFDS_COLORMODEL 0x00000001L /* Match color model */ +#define D3DFDS_GUID 0x00000002L /* Match guid */ +#define D3DFDS_HARDWARE 0x00000004L /* Match hardware/software */ +#define D3DFDS_TRIANGLES 0x00000008L /* Match in triCaps */ +#define D3DFDS_LINES 0x00000010L /* Match in lineCaps */ +#define D3DFDS_MISCCAPS 0x00000020L /* Match primCaps.dwMiscCaps */ +#define D3DFDS_RASTERCAPS 0x00000040L /* Match primCaps.dwRasterCaps */ +#define D3DFDS_ZCMPCAPS 0x00000080L /* Match primCaps.dwZCmpCaps */ +#define D3DFDS_ALPHACMPCAPS 0x00000100L /* Match primCaps.dwAlphaCmpCaps */ +#define D3DFDS_SRCBLENDCAPS 0x00000200L /* Match primCaps.dwSourceBlendCaps */ +#define D3DFDS_DSTBLENDCAPS 0x00000400L /* Match primCaps.dwDestBlendCaps */ +#define D3DFDS_SHADECAPS 0x00000800L /* Match primCaps.dwShadeCaps */ +#define D3DFDS_TEXTURECAPS 0x00001000L /* Match primCaps.dwTextureCaps */ +#define D3DFDS_TEXTUREFILTERCAPS 0x00002000L /* Match primCaps.dwTextureFilterCaps */ +#define D3DFDS_TEXTUREBLENDCAPS 0x00004000L /* Match primCaps.dwTextureBlendCaps */ +#define D3DFDS_TEXTUREADDRESSCAPS 0x00008000L /* Match primCaps.dwTextureBlendCaps */ + +/* + * FindDevice arguments + */ +typedef struct _D3DFINDDEVICESEARCH { + DWORD dwSize; + DWORD dwFlags; + BOOL bHardware; + D3DCOLORMODEL dcmColorModel; + GUID guid; + DWORD dwCaps; + D3DPRIMCAPS dpcPrimCaps; +} D3DFINDDEVICESEARCH, *LPD3DFINDDEVICESEARCH; + +typedef struct _D3DFINDDEVICERESULT { + DWORD dwSize; + GUID guid; /* guid which matched */ + D3DDEVICEDESC ddHwDesc; /* hardware D3DDEVICEDESC */ + D3DDEVICEDESC ddSwDesc; /* software D3DDEVICEDESC */ +} D3DFINDDEVICERESULT, *LPD3DFINDDEVICERESULT; + +/* + * Description of execute buffer. + */ +typedef struct _D3DExecuteBufferDesc { + DWORD dwSize; /* size of this structure */ + DWORD dwFlags; /* flags indicating which fields are valid */ + DWORD dwCaps; /* capabilities of execute buffer */ + DWORD dwBufferSize; /* size of execute buffer data */ + LPVOID lpData; /* pointer to actual data */ +} D3DEXECUTEBUFFERDESC, *LPD3DEXECUTEBUFFERDESC; + +/* D3DEXECUTEBUFFER dwFlags indicating valid fields */ + +#define D3DDEB_BUFSIZE 0x00000001l /* buffer size valid */ +#define D3DDEB_CAPS 0x00000002l /* caps valid */ +#define D3DDEB_LPDATA 0x00000004l /* lpData valid */ + +/* D3DEXECUTEBUFFER dwCaps */ + +#define D3DDEBCAPS_SYSTEMMEMORY 0x00000001l /* buffer in system memory */ +#define D3DDEBCAPS_VIDEOMEMORY 0x00000002l /* buffer in device memory */ +#define D3DDEBCAPS_MEM (D3DDEBCAPS_SYSTEMMEMORY|D3DDEBCAPS_VIDEOMEMORY) + +#if(DIRECT3D_VERSION < 0x0800) + +#if(DIRECT3D_VERSION >= 0x0700) +typedef struct _D3DDEVINFO_TEXTUREMANAGER { + BOOL bThrashing; /* indicates if thrashing */ + DWORD dwApproxBytesDownloaded; /* Approximate number of bytes downloaded by texture manager */ + DWORD dwNumEvicts; /* number of textures evicted */ + DWORD dwNumVidCreates; /* number of textures created in video memory */ + DWORD dwNumTexturesUsed; /* number of textures used */ + DWORD dwNumUsedTexInVid; /* number of used textures present in video memory */ + DWORD dwWorkingSet; /* number of textures in video memory */ + DWORD dwWorkingSetBytes; /* number of bytes in video memory */ + DWORD dwTotalManaged; /* total number of managed textures */ + DWORD dwTotalBytes; /* total number of bytes of managed textures */ + DWORD dwLastPri; /* priority of last texture evicted */ +} D3DDEVINFO_TEXTUREMANAGER, *LPD3DDEVINFO_TEXTUREMANAGER; + +typedef struct _D3DDEVINFO_TEXTURING { + DWORD dwNumLoads; /* counts Load() API calls */ + DWORD dwApproxBytesLoaded; /* Approximate number bytes loaded via Load() */ + DWORD dwNumPreLoads; /* counts PreLoad() API calls */ + DWORD dwNumSet; /* counts SetTexture() API calls */ + DWORD dwNumCreates; /* counts texture creates */ + DWORD dwNumDestroys; /* counts texture destroys */ + DWORD dwNumSetPriorities; /* counts SetPriority() API calls */ + DWORD dwNumSetLODs; /* counts SetLOD() API calls */ + DWORD dwNumLocks; /* counts number of texture locks */ + DWORD dwNumGetDCs; /* counts number of GetDCs to textures */ +} D3DDEVINFO_TEXTURING, *LPD3DDEVINFO_TEXTURING; +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#endif //(DIRECT3D_VERSION < 0x0800) + +#pragma pack() + + +#endif /* _D3DCAPS_H_ */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcommon.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcommon.h new file mode 100644 index 0000000000000000000000000000000000000000..2d378b8e9ce02c1cfc8ac4ba1b90310b9a22fd10 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcommon.h @@ -0,0 +1,1133 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3dcommon_h__ +#define __d3dcommon_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3D10Blob_FWD_DEFINED__ +#define __ID3D10Blob_FWD_DEFINED__ +typedef interface ID3D10Blob ID3D10Blob; + +#endif /* __ID3D10Blob_FWD_DEFINED__ */ + + +#ifndef __ID3DDestructionNotifier_FWD_DEFINED__ +#define __ID3DDestructionNotifier_FWD_DEFINED__ +typedef interface ID3DDestructionNotifier ID3DDestructionNotifier; + +#endif /* __ID3DDestructionNotifier_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3dcommon_0000_0000 */ +/* [local] */ + +typedef +enum D3D_DRIVER_TYPE + { + D3D_DRIVER_TYPE_UNKNOWN = 0, + D3D_DRIVER_TYPE_HARDWARE = ( D3D_DRIVER_TYPE_UNKNOWN + 1 ) , + D3D_DRIVER_TYPE_REFERENCE = ( D3D_DRIVER_TYPE_HARDWARE + 1 ) , + D3D_DRIVER_TYPE_NULL = ( D3D_DRIVER_TYPE_REFERENCE + 1 ) , + D3D_DRIVER_TYPE_SOFTWARE = ( D3D_DRIVER_TYPE_NULL + 1 ) , + D3D_DRIVER_TYPE_WARP = ( D3D_DRIVER_TYPE_SOFTWARE + 1 ) + } D3D_DRIVER_TYPE; + +typedef +enum D3D_FEATURE_LEVEL + { + D3D_FEATURE_LEVEL_1_0_GENERIC = 0x100, + D3D_FEATURE_LEVEL_1_0_CORE = 0x1000, + D3D_FEATURE_LEVEL_9_1 = 0x9100, + D3D_FEATURE_LEVEL_9_2 = 0x9200, + D3D_FEATURE_LEVEL_9_3 = 0x9300, + D3D_FEATURE_LEVEL_10_0 = 0xa000, + D3D_FEATURE_LEVEL_10_1 = 0xa100, + D3D_FEATURE_LEVEL_11_0 = 0xb000, + D3D_FEATURE_LEVEL_11_1 = 0xb100, + D3D_FEATURE_LEVEL_12_0 = 0xc000, + D3D_FEATURE_LEVEL_12_1 = 0xc100, + D3D_FEATURE_LEVEL_12_2 = 0xc200 + } D3D_FEATURE_LEVEL; + +#define D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION 2048 +#define D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION 4096 +#define D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION 2048 +#define D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION 4096 +#define D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION 512 +#define D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION 4096 +#define D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION 256 +#define D3D_FL9_1_DEFAULT_MAX_ANISOTROPY 2 +#define D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT 65535 +#define D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT 1048575 +#define D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT 1 +#define D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT 4 +#define D3D_FL9_1_MAX_TEXTURE_REPEAT 128 +#define D3D_FL9_2_MAX_TEXTURE_REPEAT 2048 +#define D3D_FL9_3_MAX_TEXTURE_REPEAT 8192 +typedef +enum D3D_PRIMITIVE_TOPOLOGY + { + D3D_PRIMITIVE_TOPOLOGY_UNDEFINED = 0, + D3D_PRIMITIVE_TOPOLOGY_POINTLIST = 1, + D3D_PRIMITIVE_TOPOLOGY_LINELIST = 2, + D3D_PRIMITIVE_TOPOLOGY_LINESTRIP = 3, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST = 4, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP = 5, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLEFAN = 6, + D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10, + D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ = 11, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ = 12, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ = 13, + D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = 33, + D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST = 34, + D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST = 35, + D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST = 36, + D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST = 37, + D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST = 38, + D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST = 39, + D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST = 40, + D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST = 41, + D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST = 42, + D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST = 43, + D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST = 44, + D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST = 45, + D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST = 46, + D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST = 47, + D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST = 48, + D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST = 49, + D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST = 50, + D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST = 51, + D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST = 52, + D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST = 53, + D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST = 54, + D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST = 55, + D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST = 56, + D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST = 57, + D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST = 58, + D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST = 59, + D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST = 60, + D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST = 61, + D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST = 62, + D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST = 63, + D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST = 64, + D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED = D3D_PRIMITIVE_TOPOLOGY_UNDEFINED, + D3D10_PRIMITIVE_TOPOLOGY_POINTLIST = D3D_PRIMITIVE_TOPOLOGY_POINTLIST, + D3D10_PRIMITIVE_TOPOLOGY_LINELIST = D3D_PRIMITIVE_TOPOLOGY_LINELIST, + D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP = D3D_PRIMITIVE_TOPOLOGY_LINESTRIP, + D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST, + D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP = D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP, + D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ, + D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ = D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ, + D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ, + D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ = D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ, + D3D11_PRIMITIVE_TOPOLOGY_UNDEFINED = D3D_PRIMITIVE_TOPOLOGY_UNDEFINED, + D3D11_PRIMITIVE_TOPOLOGY_POINTLIST = D3D_PRIMITIVE_TOPOLOGY_POINTLIST, + D3D11_PRIMITIVE_TOPOLOGY_LINELIST = D3D_PRIMITIVE_TOPOLOGY_LINELIST, + D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP = D3D_PRIMITIVE_TOPOLOGY_LINESTRIP, + D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST, + D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP = D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP, + D3D11_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ, + D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ = D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ, + D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ, + D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ = D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ, + D3D11_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST + } D3D_PRIMITIVE_TOPOLOGY; + +typedef +enum D3D_PRIMITIVE + { + D3D_PRIMITIVE_UNDEFINED = 0, + D3D_PRIMITIVE_POINT = 1, + D3D_PRIMITIVE_LINE = 2, + D3D_PRIMITIVE_TRIANGLE = 3, + D3D_PRIMITIVE_LINE_ADJ = 6, + D3D_PRIMITIVE_TRIANGLE_ADJ = 7, + D3D_PRIMITIVE_1_CONTROL_POINT_PATCH = 8, + D3D_PRIMITIVE_2_CONTROL_POINT_PATCH = 9, + D3D_PRIMITIVE_3_CONTROL_POINT_PATCH = 10, + D3D_PRIMITIVE_4_CONTROL_POINT_PATCH = 11, + D3D_PRIMITIVE_5_CONTROL_POINT_PATCH = 12, + D3D_PRIMITIVE_6_CONTROL_POINT_PATCH = 13, + D3D_PRIMITIVE_7_CONTROL_POINT_PATCH = 14, + D3D_PRIMITIVE_8_CONTROL_POINT_PATCH = 15, + D3D_PRIMITIVE_9_CONTROL_POINT_PATCH = 16, + D3D_PRIMITIVE_10_CONTROL_POINT_PATCH = 17, + D3D_PRIMITIVE_11_CONTROL_POINT_PATCH = 18, + D3D_PRIMITIVE_12_CONTROL_POINT_PATCH = 19, + D3D_PRIMITIVE_13_CONTROL_POINT_PATCH = 20, + D3D_PRIMITIVE_14_CONTROL_POINT_PATCH = 21, + D3D_PRIMITIVE_15_CONTROL_POINT_PATCH = 22, + D3D_PRIMITIVE_16_CONTROL_POINT_PATCH = 23, + D3D_PRIMITIVE_17_CONTROL_POINT_PATCH = 24, + D3D_PRIMITIVE_18_CONTROL_POINT_PATCH = 25, + D3D_PRIMITIVE_19_CONTROL_POINT_PATCH = 26, + D3D_PRIMITIVE_20_CONTROL_POINT_PATCH = 27, + D3D_PRIMITIVE_21_CONTROL_POINT_PATCH = 28, + D3D_PRIMITIVE_22_CONTROL_POINT_PATCH = 29, + D3D_PRIMITIVE_23_CONTROL_POINT_PATCH = 30, + D3D_PRIMITIVE_24_CONTROL_POINT_PATCH = 31, + D3D_PRIMITIVE_25_CONTROL_POINT_PATCH = 32, + D3D_PRIMITIVE_26_CONTROL_POINT_PATCH = 33, + D3D_PRIMITIVE_27_CONTROL_POINT_PATCH = 34, + D3D_PRIMITIVE_28_CONTROL_POINT_PATCH = 35, + D3D_PRIMITIVE_29_CONTROL_POINT_PATCH = 36, + D3D_PRIMITIVE_30_CONTROL_POINT_PATCH = 37, + D3D_PRIMITIVE_31_CONTROL_POINT_PATCH = 38, + D3D_PRIMITIVE_32_CONTROL_POINT_PATCH = 39, + D3D10_PRIMITIVE_UNDEFINED = D3D_PRIMITIVE_UNDEFINED, + D3D10_PRIMITIVE_POINT = D3D_PRIMITIVE_POINT, + D3D10_PRIMITIVE_LINE = D3D_PRIMITIVE_LINE, + D3D10_PRIMITIVE_TRIANGLE = D3D_PRIMITIVE_TRIANGLE, + D3D10_PRIMITIVE_LINE_ADJ = D3D_PRIMITIVE_LINE_ADJ, + D3D10_PRIMITIVE_TRIANGLE_ADJ = D3D_PRIMITIVE_TRIANGLE_ADJ, + D3D11_PRIMITIVE_UNDEFINED = D3D_PRIMITIVE_UNDEFINED, + D3D11_PRIMITIVE_POINT = D3D_PRIMITIVE_POINT, + D3D11_PRIMITIVE_LINE = D3D_PRIMITIVE_LINE, + D3D11_PRIMITIVE_TRIANGLE = D3D_PRIMITIVE_TRIANGLE, + D3D11_PRIMITIVE_LINE_ADJ = D3D_PRIMITIVE_LINE_ADJ, + D3D11_PRIMITIVE_TRIANGLE_ADJ = D3D_PRIMITIVE_TRIANGLE_ADJ, + D3D11_PRIMITIVE_1_CONTROL_POINT_PATCH = D3D_PRIMITIVE_1_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_2_CONTROL_POINT_PATCH = D3D_PRIMITIVE_2_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_3_CONTROL_POINT_PATCH = D3D_PRIMITIVE_3_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_4_CONTROL_POINT_PATCH = D3D_PRIMITIVE_4_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_5_CONTROL_POINT_PATCH = D3D_PRIMITIVE_5_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_6_CONTROL_POINT_PATCH = D3D_PRIMITIVE_6_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_7_CONTROL_POINT_PATCH = D3D_PRIMITIVE_7_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_8_CONTROL_POINT_PATCH = D3D_PRIMITIVE_8_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_9_CONTROL_POINT_PATCH = D3D_PRIMITIVE_9_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_10_CONTROL_POINT_PATCH = D3D_PRIMITIVE_10_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_11_CONTROL_POINT_PATCH = D3D_PRIMITIVE_11_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_12_CONTROL_POINT_PATCH = D3D_PRIMITIVE_12_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_13_CONTROL_POINT_PATCH = D3D_PRIMITIVE_13_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_14_CONTROL_POINT_PATCH = D3D_PRIMITIVE_14_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_15_CONTROL_POINT_PATCH = D3D_PRIMITIVE_15_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_16_CONTROL_POINT_PATCH = D3D_PRIMITIVE_16_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_17_CONTROL_POINT_PATCH = D3D_PRIMITIVE_17_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_18_CONTROL_POINT_PATCH = D3D_PRIMITIVE_18_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_19_CONTROL_POINT_PATCH = D3D_PRIMITIVE_19_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_20_CONTROL_POINT_PATCH = D3D_PRIMITIVE_20_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_21_CONTROL_POINT_PATCH = D3D_PRIMITIVE_21_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_22_CONTROL_POINT_PATCH = D3D_PRIMITIVE_22_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_23_CONTROL_POINT_PATCH = D3D_PRIMITIVE_23_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_24_CONTROL_POINT_PATCH = D3D_PRIMITIVE_24_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_25_CONTROL_POINT_PATCH = D3D_PRIMITIVE_25_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_26_CONTROL_POINT_PATCH = D3D_PRIMITIVE_26_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_27_CONTROL_POINT_PATCH = D3D_PRIMITIVE_27_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_28_CONTROL_POINT_PATCH = D3D_PRIMITIVE_28_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_29_CONTROL_POINT_PATCH = D3D_PRIMITIVE_29_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_30_CONTROL_POINT_PATCH = D3D_PRIMITIVE_30_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_31_CONTROL_POINT_PATCH = D3D_PRIMITIVE_31_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_32_CONTROL_POINT_PATCH = D3D_PRIMITIVE_32_CONTROL_POINT_PATCH + } D3D_PRIMITIVE; + +typedef +enum D3D_SRV_DIMENSION + { + D3D_SRV_DIMENSION_UNKNOWN = 0, + D3D_SRV_DIMENSION_BUFFER = 1, + D3D_SRV_DIMENSION_TEXTURE1D = 2, + D3D_SRV_DIMENSION_TEXTURE1DARRAY = 3, + D3D_SRV_DIMENSION_TEXTURE2D = 4, + D3D_SRV_DIMENSION_TEXTURE2DARRAY = 5, + D3D_SRV_DIMENSION_TEXTURE2DMS = 6, + D3D_SRV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D_SRV_DIMENSION_TEXTURE3D = 8, + D3D_SRV_DIMENSION_TEXTURECUBE = 9, + D3D_SRV_DIMENSION_TEXTURECUBEARRAY = 10, + D3D_SRV_DIMENSION_BUFFEREX = 11, + D3D10_SRV_DIMENSION_UNKNOWN = D3D_SRV_DIMENSION_UNKNOWN, + D3D10_SRV_DIMENSION_BUFFER = D3D_SRV_DIMENSION_BUFFER, + D3D10_SRV_DIMENSION_TEXTURE1D = D3D_SRV_DIMENSION_TEXTURE1D, + D3D10_SRV_DIMENSION_TEXTURE1DARRAY = D3D_SRV_DIMENSION_TEXTURE1DARRAY, + D3D10_SRV_DIMENSION_TEXTURE2D = D3D_SRV_DIMENSION_TEXTURE2D, + D3D10_SRV_DIMENSION_TEXTURE2DARRAY = D3D_SRV_DIMENSION_TEXTURE2DARRAY, + D3D10_SRV_DIMENSION_TEXTURE2DMS = D3D_SRV_DIMENSION_TEXTURE2DMS, + D3D10_SRV_DIMENSION_TEXTURE2DMSARRAY = D3D_SRV_DIMENSION_TEXTURE2DMSARRAY, + D3D10_SRV_DIMENSION_TEXTURE3D = D3D_SRV_DIMENSION_TEXTURE3D, + D3D10_SRV_DIMENSION_TEXTURECUBE = D3D_SRV_DIMENSION_TEXTURECUBE, + D3D10_1_SRV_DIMENSION_UNKNOWN = D3D_SRV_DIMENSION_UNKNOWN, + D3D10_1_SRV_DIMENSION_BUFFER = D3D_SRV_DIMENSION_BUFFER, + D3D10_1_SRV_DIMENSION_TEXTURE1D = D3D_SRV_DIMENSION_TEXTURE1D, + D3D10_1_SRV_DIMENSION_TEXTURE1DARRAY = D3D_SRV_DIMENSION_TEXTURE1DARRAY, + D3D10_1_SRV_DIMENSION_TEXTURE2D = D3D_SRV_DIMENSION_TEXTURE2D, + D3D10_1_SRV_DIMENSION_TEXTURE2DARRAY = D3D_SRV_DIMENSION_TEXTURE2DARRAY, + D3D10_1_SRV_DIMENSION_TEXTURE2DMS = D3D_SRV_DIMENSION_TEXTURE2DMS, + D3D10_1_SRV_DIMENSION_TEXTURE2DMSARRAY = D3D_SRV_DIMENSION_TEXTURE2DMSARRAY, + D3D10_1_SRV_DIMENSION_TEXTURE3D = D3D_SRV_DIMENSION_TEXTURE3D, + D3D10_1_SRV_DIMENSION_TEXTURECUBE = D3D_SRV_DIMENSION_TEXTURECUBE, + D3D10_1_SRV_DIMENSION_TEXTURECUBEARRAY = D3D_SRV_DIMENSION_TEXTURECUBEARRAY, + D3D11_SRV_DIMENSION_UNKNOWN = D3D_SRV_DIMENSION_UNKNOWN, + D3D11_SRV_DIMENSION_BUFFER = D3D_SRV_DIMENSION_BUFFER, + D3D11_SRV_DIMENSION_TEXTURE1D = D3D_SRV_DIMENSION_TEXTURE1D, + D3D11_SRV_DIMENSION_TEXTURE1DARRAY = D3D_SRV_DIMENSION_TEXTURE1DARRAY, + D3D11_SRV_DIMENSION_TEXTURE2D = D3D_SRV_DIMENSION_TEXTURE2D, + D3D11_SRV_DIMENSION_TEXTURE2DARRAY = D3D_SRV_DIMENSION_TEXTURE2DARRAY, + D3D11_SRV_DIMENSION_TEXTURE2DMS = D3D_SRV_DIMENSION_TEXTURE2DMS, + D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY = D3D_SRV_DIMENSION_TEXTURE2DMSARRAY, + D3D11_SRV_DIMENSION_TEXTURE3D = D3D_SRV_DIMENSION_TEXTURE3D, + D3D11_SRV_DIMENSION_TEXTURECUBE = D3D_SRV_DIMENSION_TEXTURECUBE, + D3D11_SRV_DIMENSION_TEXTURECUBEARRAY = D3D_SRV_DIMENSION_TEXTURECUBEARRAY, + D3D11_SRV_DIMENSION_BUFFEREX = D3D_SRV_DIMENSION_BUFFEREX + } D3D_SRV_DIMENSION; + +#define D3D_SHADER_FEATURE_DOUBLES 0x00001 +#define D3D_SHADER_FEATURE_COMPUTE_SHADERS_PLUS_RAW_AND_STRUCTURED_BUFFERS_VIA_SHADER_4_X 0x00002 +#define D3D_SHADER_FEATURE_UAVS_AT_EVERY_STAGE 0x00004 +#define D3D_SHADER_FEATURE_64_UAVS 0x00008 +#define D3D_SHADER_FEATURE_MINIMUM_PRECISION 0x00010 +#define D3D_SHADER_FEATURE_11_1_DOUBLE_EXTENSIONS 0x00020 +#define D3D_SHADER_FEATURE_11_1_SHADER_EXTENSIONS 0x00040 +#define D3D_SHADER_FEATURE_LEVEL_9_COMPARISON_FILTERING 0x00080 +#define D3D_SHADER_FEATURE_TILED_RESOURCES 0x00100 +#define D3D_SHADER_FEATURE_STENCIL_REF 0x00200 +#define D3D_SHADER_FEATURE_INNER_COVERAGE 0x00400 +#define D3D_SHADER_FEATURE_TYPED_UAV_LOAD_ADDITIONAL_FORMATS 0x00800 +#define D3D_SHADER_FEATURE_ROVS 0x01000 +#define D3D_SHADER_FEATURE_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER 0x02000 +#define D3D_SHADER_FEATURE_WAVE_OPS 0x04000 +#define D3D_SHADER_FEATURE_INT64_OPS 0x08000 +#define D3D_SHADER_FEATURE_VIEW_ID 0x10000 +#define D3D_SHADER_FEATURE_BARYCENTRICS 0x20000 +#define D3D_SHADER_FEATURE_NATIVE_16BIT_OPS 0x40000 +#define D3D_SHADER_FEATURE_SHADING_RATE 0x80000 +#define D3D_SHADER_FEATURE_RAYTRACING_TIER_1_1 0x100000 +#define D3D_SHADER_FEATURE_SAMPLER_FEEDBACK 0x200000 +#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_TYPED_RESOURCE 0x400000 +#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_GROUP_SHARED 0x800000 +#define D3D_SHADER_FEATURE_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS 0x1000000 +#define D3D_SHADER_FEATURE_RESOURCE_DESCRIPTOR_HEAP_INDEXING 0x2000000 +#define D3D_SHADER_FEATURE_SAMPLER_DESCRIPTOR_HEAP_INDEXING 0x4000000 +#define D3D_SHADER_FEATURE_WAVE_MMA 0x8000000 +#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE 0x10000000 +#define D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS 0x20000000 +#define D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES 0x40000000 +#define D3D_SHADER_FEATURE_SAMPLE_CMP_GRADIENT_OR_BIAS 0x80000000 +#define D3D_SHADER_FEATURE_EXTENDED_COMMAND_INFO 0x100000000ull +#define D3D_OPT_SHADER_FEATURE_USES_DERIVATIVES 0x0000010000000000ull +#define D3D_OPT_SHADER_FEATURE_REQUIRES_GROUP 0x0000020000000000ull +typedef struct _D3D_SHADER_MACRO + { + LPCSTR Name; + LPCSTR Definition; + } D3D_SHADER_MACRO; + +typedef struct _D3D_SHADER_MACRO *LPD3D_SHADER_MACRO; + +DEFINE_GUID(IID_ID3D10Blob, 0x8ba5fb08, 0x5195, 0x40e2, 0xac, 0x58, 0xd, 0x98, 0x9c, 0x3a, 0x1, 0x2); + + +extern RPC_IF_HANDLE __MIDL_itf_d3dcommon_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3dcommon_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3D10Blob_INTERFACE_DEFINED__ +#define __ID3D10Blob_INTERFACE_DEFINED__ + +/* interface ID3D10Blob */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3D10Blob; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8BA5FB08-5195-40e2-AC58-0D989C3A0102") + ID3D10Blob : public IUnknown + { + public: + virtual LPVOID STDMETHODCALLTYPE GetBufferPointer( void) = 0; + + virtual SIZE_T STDMETHODCALLTYPE GetBufferSize( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3D10BlobVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3D10Blob * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3D10Blob * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3D10Blob * This); + + DECLSPEC_XFGVIRT(ID3D10Blob, GetBufferPointer) + LPVOID ( STDMETHODCALLTYPE *GetBufferPointer )( + ID3D10Blob * This); + + DECLSPEC_XFGVIRT(ID3D10Blob, GetBufferSize) + SIZE_T ( STDMETHODCALLTYPE *GetBufferSize )( + ID3D10Blob * This); + + END_INTERFACE + } ID3D10BlobVtbl; + + interface ID3D10Blob + { + CONST_VTBL struct ID3D10BlobVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3D10Blob_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3D10Blob_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3D10Blob_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3D10Blob_GetBufferPointer(This) \ + ( (This)->lpVtbl -> GetBufferPointer(This) ) + +#define ID3D10Blob_GetBufferSize(This) \ + ( (This)->lpVtbl -> GetBufferSize(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3D10Blob_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3dcommon_0000_0001 */ +/* [local] */ + +typedef interface ID3D10Blob* LPD3D10BLOB; +typedef ID3D10Blob ID3DBlob; + +typedef ID3DBlob* LPD3DBLOB; +#define IID_ID3DBlob IID_ID3D10Blob +typedef void ( __stdcall *PFN_DESTRUCTION_CALLBACK )( + void *pData); + + + +extern RPC_IF_HANDLE __MIDL_itf_d3dcommon_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3dcommon_0000_0001_v0_0_s_ifspec; + +#ifndef __ID3DDestructionNotifier_INTERFACE_DEFINED__ +#define __ID3DDestructionNotifier_INTERFACE_DEFINED__ + +/* interface ID3DDestructionNotifier */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3DDestructionNotifier; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a06eb39a-50da-425b-8c31-4eecd6c270f3") + ID3DDestructionNotifier : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterDestructionCallback( + /* [annotation] */ + _In_ PFN_DESTRUCTION_CALLBACK callbackFn, + /* [annotation] */ + _In_ void *pData, + /* [annotation] */ + _Out_ UINT *pCallbackID) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterDestructionCallback( + /* [annotation] */ + _In_ UINT callbackID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3DDestructionNotifierVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3DDestructionNotifier * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3DDestructionNotifier * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3DDestructionNotifier * This); + + DECLSPEC_XFGVIRT(ID3DDestructionNotifier, RegisterDestructionCallback) + HRESULT ( STDMETHODCALLTYPE *RegisterDestructionCallback )( + ID3DDestructionNotifier * This, + /* [annotation] */ + _In_ PFN_DESTRUCTION_CALLBACK callbackFn, + /* [annotation] */ + _In_ void *pData, + /* [annotation] */ + _Out_ UINT *pCallbackID); + + DECLSPEC_XFGVIRT(ID3DDestructionNotifier, UnregisterDestructionCallback) + HRESULT ( STDMETHODCALLTYPE *UnregisterDestructionCallback )( + ID3DDestructionNotifier * This, + /* [annotation] */ + _In_ UINT callbackID); + + END_INTERFACE + } ID3DDestructionNotifierVtbl; + + interface ID3DDestructionNotifier + { + CONST_VTBL struct ID3DDestructionNotifierVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3DDestructionNotifier_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3DDestructionNotifier_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3DDestructionNotifier_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3DDestructionNotifier_RegisterDestructionCallback(This,callbackFn,pData,pCallbackID) \ + ( (This)->lpVtbl -> RegisterDestructionCallback(This,callbackFn,pData,pCallbackID) ) + +#define ID3DDestructionNotifier_UnregisterDestructionCallback(This,callbackID) \ + ( (This)->lpVtbl -> UnregisterDestructionCallback(This,callbackID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3DDestructionNotifier_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3dcommon_0000_0002 */ +/* [local] */ + +typedef +enum _D3D_INCLUDE_TYPE + { + D3D_INCLUDE_LOCAL = 0, + D3D_INCLUDE_SYSTEM = ( D3D_INCLUDE_LOCAL + 1 ) , + D3D10_INCLUDE_LOCAL = D3D_INCLUDE_LOCAL, + D3D10_INCLUDE_SYSTEM = D3D_INCLUDE_SYSTEM, + D3D_INCLUDE_FORCE_DWORD = 0x7fffffff + } D3D_INCLUDE_TYPE; + +typedef interface ID3DInclude ID3DInclude; +#undef INTERFACE +#define INTERFACE ID3DInclude +DECLARE_INTERFACE(ID3DInclude) +{ + STDMETHOD(Open)(THIS_ D3D_INCLUDE_TYPE IncludeType, LPCSTR pFileName, LPCVOID pParentData, LPCVOID *ppData, UINT *pBytes) PURE; + STDMETHOD(Close)(THIS_ LPCVOID pData) PURE; +}; +typedef ID3DInclude* LPD3DINCLUDE; +typedef +enum _D3D_SHADER_VARIABLE_CLASS + { + D3D_SVC_SCALAR = 0, + D3D_SVC_VECTOR = ( D3D_SVC_SCALAR + 1 ) , + D3D_SVC_MATRIX_ROWS = ( D3D_SVC_VECTOR + 1 ) , + D3D_SVC_MATRIX_COLUMNS = ( D3D_SVC_MATRIX_ROWS + 1 ) , + D3D_SVC_OBJECT = ( D3D_SVC_MATRIX_COLUMNS + 1 ) , + D3D_SVC_STRUCT = ( D3D_SVC_OBJECT + 1 ) , + D3D_SVC_INTERFACE_CLASS = ( D3D_SVC_STRUCT + 1 ) , + D3D_SVC_INTERFACE_POINTER = ( D3D_SVC_INTERFACE_CLASS + 1 ) , + D3D10_SVC_SCALAR = D3D_SVC_SCALAR, + D3D10_SVC_VECTOR = D3D_SVC_VECTOR, + D3D10_SVC_MATRIX_ROWS = D3D_SVC_MATRIX_ROWS, + D3D10_SVC_MATRIX_COLUMNS = D3D_SVC_MATRIX_COLUMNS, + D3D10_SVC_OBJECT = D3D_SVC_OBJECT, + D3D10_SVC_STRUCT = D3D_SVC_STRUCT, + D3D11_SVC_INTERFACE_CLASS = D3D_SVC_INTERFACE_CLASS, + D3D11_SVC_INTERFACE_POINTER = D3D_SVC_INTERFACE_POINTER, + D3D_SVC_FORCE_DWORD = 0x7fffffff + } D3D_SHADER_VARIABLE_CLASS; + +typedef +enum _D3D_SHADER_VARIABLE_FLAGS + { + D3D_SVF_USERPACKED = 1, + D3D_SVF_USED = 2, + D3D_SVF_INTERFACE_POINTER = 4, + D3D_SVF_INTERFACE_PARAMETER = 8, + D3D10_SVF_USERPACKED = D3D_SVF_USERPACKED, + D3D10_SVF_USED = D3D_SVF_USED, + D3D11_SVF_INTERFACE_POINTER = D3D_SVF_INTERFACE_POINTER, + D3D11_SVF_INTERFACE_PARAMETER = D3D_SVF_INTERFACE_PARAMETER, + D3D_SVF_FORCE_DWORD = 0x7fffffff + } D3D_SHADER_VARIABLE_FLAGS; + +typedef +enum _D3D_SHADER_VARIABLE_TYPE + { + D3D_SVT_VOID = 0, + D3D_SVT_BOOL = 1, + D3D_SVT_INT = 2, + D3D_SVT_FLOAT = 3, + D3D_SVT_STRING = 4, + D3D_SVT_TEXTURE = 5, + D3D_SVT_TEXTURE1D = 6, + D3D_SVT_TEXTURE2D = 7, + D3D_SVT_TEXTURE3D = 8, + D3D_SVT_TEXTURECUBE = 9, + D3D_SVT_SAMPLER = 10, + D3D_SVT_SAMPLER1D = 11, + D3D_SVT_SAMPLER2D = 12, + D3D_SVT_SAMPLER3D = 13, + D3D_SVT_SAMPLERCUBE = 14, + D3D_SVT_PIXELSHADER = 15, + D3D_SVT_VERTEXSHADER = 16, + D3D_SVT_PIXELFRAGMENT = 17, + D3D_SVT_VERTEXFRAGMENT = 18, + D3D_SVT_UINT = 19, + D3D_SVT_UINT8 = 20, + D3D_SVT_GEOMETRYSHADER = 21, + D3D_SVT_RASTERIZER = 22, + D3D_SVT_DEPTHSTENCIL = 23, + D3D_SVT_BLEND = 24, + D3D_SVT_BUFFER = 25, + D3D_SVT_CBUFFER = 26, + D3D_SVT_TBUFFER = 27, + D3D_SVT_TEXTURE1DARRAY = 28, + D3D_SVT_TEXTURE2DARRAY = 29, + D3D_SVT_RENDERTARGETVIEW = 30, + D3D_SVT_DEPTHSTENCILVIEW = 31, + D3D_SVT_TEXTURE2DMS = 32, + D3D_SVT_TEXTURE2DMSARRAY = 33, + D3D_SVT_TEXTURECUBEARRAY = 34, + D3D_SVT_HULLSHADER = 35, + D3D_SVT_DOMAINSHADER = 36, + D3D_SVT_INTERFACE_POINTER = 37, + D3D_SVT_COMPUTESHADER = 38, + D3D_SVT_DOUBLE = 39, + D3D_SVT_RWTEXTURE1D = 40, + D3D_SVT_RWTEXTURE1DARRAY = 41, + D3D_SVT_RWTEXTURE2D = 42, + D3D_SVT_RWTEXTURE2DARRAY = 43, + D3D_SVT_RWTEXTURE3D = 44, + D3D_SVT_RWBUFFER = 45, + D3D_SVT_BYTEADDRESS_BUFFER = 46, + D3D_SVT_RWBYTEADDRESS_BUFFER = 47, + D3D_SVT_STRUCTURED_BUFFER = 48, + D3D_SVT_RWSTRUCTURED_BUFFER = 49, + D3D_SVT_APPEND_STRUCTURED_BUFFER = 50, + D3D_SVT_CONSUME_STRUCTURED_BUFFER = 51, + D3D_SVT_MIN8FLOAT = 52, + D3D_SVT_MIN10FLOAT = 53, + D3D_SVT_MIN16FLOAT = 54, + D3D_SVT_MIN12INT = 55, + D3D_SVT_MIN16INT = 56, + D3D_SVT_MIN16UINT = 57, + D3D_SVT_INT16 = 58, + D3D_SVT_UINT16 = 59, + D3D_SVT_FLOAT16 = 60, + D3D_SVT_INT64 = 61, + D3D_SVT_UINT64 = 62, + D3D10_SVT_VOID = D3D_SVT_VOID, + D3D10_SVT_BOOL = D3D_SVT_BOOL, + D3D10_SVT_INT = D3D_SVT_INT, + D3D10_SVT_FLOAT = D3D_SVT_FLOAT, + D3D10_SVT_STRING = D3D_SVT_STRING, + D3D10_SVT_TEXTURE = D3D_SVT_TEXTURE, + D3D10_SVT_TEXTURE1D = D3D_SVT_TEXTURE1D, + D3D10_SVT_TEXTURE2D = D3D_SVT_TEXTURE2D, + D3D10_SVT_TEXTURE3D = D3D_SVT_TEXTURE3D, + D3D10_SVT_TEXTURECUBE = D3D_SVT_TEXTURECUBE, + D3D10_SVT_SAMPLER = D3D_SVT_SAMPLER, + D3D10_SVT_SAMPLER1D = D3D_SVT_SAMPLER1D, + D3D10_SVT_SAMPLER2D = D3D_SVT_SAMPLER2D, + D3D10_SVT_SAMPLER3D = D3D_SVT_SAMPLER3D, + D3D10_SVT_SAMPLERCUBE = D3D_SVT_SAMPLERCUBE, + D3D10_SVT_PIXELSHADER = D3D_SVT_PIXELSHADER, + D3D10_SVT_VERTEXSHADER = D3D_SVT_VERTEXSHADER, + D3D10_SVT_PIXELFRAGMENT = D3D_SVT_PIXELFRAGMENT, + D3D10_SVT_VERTEXFRAGMENT = D3D_SVT_VERTEXFRAGMENT, + D3D10_SVT_UINT = D3D_SVT_UINT, + D3D10_SVT_UINT8 = D3D_SVT_UINT8, + D3D10_SVT_GEOMETRYSHADER = D3D_SVT_GEOMETRYSHADER, + D3D10_SVT_RASTERIZER = D3D_SVT_RASTERIZER, + D3D10_SVT_DEPTHSTENCIL = D3D_SVT_DEPTHSTENCIL, + D3D10_SVT_BLEND = D3D_SVT_BLEND, + D3D10_SVT_BUFFER = D3D_SVT_BUFFER, + D3D10_SVT_CBUFFER = D3D_SVT_CBUFFER, + D3D10_SVT_TBUFFER = D3D_SVT_TBUFFER, + D3D10_SVT_TEXTURE1DARRAY = D3D_SVT_TEXTURE1DARRAY, + D3D10_SVT_TEXTURE2DARRAY = D3D_SVT_TEXTURE2DARRAY, + D3D10_SVT_RENDERTARGETVIEW = D3D_SVT_RENDERTARGETVIEW, + D3D10_SVT_DEPTHSTENCILVIEW = D3D_SVT_DEPTHSTENCILVIEW, + D3D10_SVT_TEXTURE2DMS = D3D_SVT_TEXTURE2DMS, + D3D10_SVT_TEXTURE2DMSARRAY = D3D_SVT_TEXTURE2DMSARRAY, + D3D10_SVT_TEXTURECUBEARRAY = D3D_SVT_TEXTURECUBEARRAY, + D3D11_SVT_HULLSHADER = D3D_SVT_HULLSHADER, + D3D11_SVT_DOMAINSHADER = D3D_SVT_DOMAINSHADER, + D3D11_SVT_INTERFACE_POINTER = D3D_SVT_INTERFACE_POINTER, + D3D11_SVT_COMPUTESHADER = D3D_SVT_COMPUTESHADER, + D3D11_SVT_DOUBLE = D3D_SVT_DOUBLE, + D3D11_SVT_RWTEXTURE1D = D3D_SVT_RWTEXTURE1D, + D3D11_SVT_RWTEXTURE1DARRAY = D3D_SVT_RWTEXTURE1DARRAY, + D3D11_SVT_RWTEXTURE2D = D3D_SVT_RWTEXTURE2D, + D3D11_SVT_RWTEXTURE2DARRAY = D3D_SVT_RWTEXTURE2DARRAY, + D3D11_SVT_RWTEXTURE3D = D3D_SVT_RWTEXTURE3D, + D3D11_SVT_RWBUFFER = D3D_SVT_RWBUFFER, + D3D11_SVT_BYTEADDRESS_BUFFER = D3D_SVT_BYTEADDRESS_BUFFER, + D3D11_SVT_RWBYTEADDRESS_BUFFER = D3D_SVT_RWBYTEADDRESS_BUFFER, + D3D11_SVT_STRUCTURED_BUFFER = D3D_SVT_STRUCTURED_BUFFER, + D3D11_SVT_RWSTRUCTURED_BUFFER = D3D_SVT_RWSTRUCTURED_BUFFER, + D3D11_SVT_APPEND_STRUCTURED_BUFFER = D3D_SVT_APPEND_STRUCTURED_BUFFER, + D3D11_SVT_CONSUME_STRUCTURED_BUFFER = D3D_SVT_CONSUME_STRUCTURED_BUFFER, + D3D_SVT_FORCE_DWORD = 0x7fffffff + } D3D_SHADER_VARIABLE_TYPE; + +typedef +enum _D3D_SHADER_INPUT_FLAGS + { + D3D_SIF_USERPACKED = 0x1, + D3D_SIF_COMPARISON_SAMPLER = 0x2, + D3D_SIF_TEXTURE_COMPONENT_0 = 0x4, + D3D_SIF_TEXTURE_COMPONENT_1 = 0x8, + D3D_SIF_TEXTURE_COMPONENTS = 0xc, + D3D_SIF_UNUSED = 0x10, + D3D10_SIF_USERPACKED = D3D_SIF_USERPACKED, + D3D10_SIF_COMPARISON_SAMPLER = D3D_SIF_COMPARISON_SAMPLER, + D3D10_SIF_TEXTURE_COMPONENT_0 = D3D_SIF_TEXTURE_COMPONENT_0, + D3D10_SIF_TEXTURE_COMPONENT_1 = D3D_SIF_TEXTURE_COMPONENT_1, + D3D10_SIF_TEXTURE_COMPONENTS = D3D_SIF_TEXTURE_COMPONENTS, + D3D_SIF_FORCE_DWORD = 0x7fffffff + } D3D_SHADER_INPUT_FLAGS; + +typedef +enum _D3D_SHADER_INPUT_TYPE + { + D3D_SIT_CBUFFER = 0, + D3D_SIT_TBUFFER = ( D3D_SIT_CBUFFER + 1 ) , + D3D_SIT_TEXTURE = ( D3D_SIT_TBUFFER + 1 ) , + D3D_SIT_SAMPLER = ( D3D_SIT_TEXTURE + 1 ) , + D3D_SIT_UAV_RWTYPED = ( D3D_SIT_SAMPLER + 1 ) , + D3D_SIT_STRUCTURED = ( D3D_SIT_UAV_RWTYPED + 1 ) , + D3D_SIT_UAV_RWSTRUCTURED = ( D3D_SIT_STRUCTURED + 1 ) , + D3D_SIT_BYTEADDRESS = ( D3D_SIT_UAV_RWSTRUCTURED + 1 ) , + D3D_SIT_UAV_RWBYTEADDRESS = ( D3D_SIT_BYTEADDRESS + 1 ) , + D3D_SIT_UAV_APPEND_STRUCTURED = ( D3D_SIT_UAV_RWBYTEADDRESS + 1 ) , + D3D_SIT_UAV_CONSUME_STRUCTURED = ( D3D_SIT_UAV_APPEND_STRUCTURED + 1 ) , + D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER = ( D3D_SIT_UAV_CONSUME_STRUCTURED + 1 ) , + D3D_SIT_RTACCELERATIONSTRUCTURE = ( D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER + 1 ) , + D3D_SIT_UAV_FEEDBACKTEXTURE = ( D3D_SIT_RTACCELERATIONSTRUCTURE + 1 ) , + D3D10_SIT_CBUFFER = D3D_SIT_CBUFFER, + D3D10_SIT_TBUFFER = D3D_SIT_TBUFFER, + D3D10_SIT_TEXTURE = D3D_SIT_TEXTURE, + D3D10_SIT_SAMPLER = D3D_SIT_SAMPLER, + D3D11_SIT_UAV_RWTYPED = D3D_SIT_UAV_RWTYPED, + D3D11_SIT_STRUCTURED = D3D_SIT_STRUCTURED, + D3D11_SIT_UAV_RWSTRUCTURED = D3D_SIT_UAV_RWSTRUCTURED, + D3D11_SIT_BYTEADDRESS = D3D_SIT_BYTEADDRESS, + D3D11_SIT_UAV_RWBYTEADDRESS = D3D_SIT_UAV_RWBYTEADDRESS, + D3D11_SIT_UAV_APPEND_STRUCTURED = D3D_SIT_UAV_APPEND_STRUCTURED, + D3D11_SIT_UAV_CONSUME_STRUCTURED = D3D_SIT_UAV_CONSUME_STRUCTURED, + D3D11_SIT_UAV_RWSTRUCTURED_WITH_COUNTER = D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER + } D3D_SHADER_INPUT_TYPE; + +typedef +enum _D3D_SHADER_CBUFFER_FLAGS + { + D3D_CBF_USERPACKED = 1, + D3D10_CBF_USERPACKED = D3D_CBF_USERPACKED, + D3D_CBF_FORCE_DWORD = 0x7fffffff + } D3D_SHADER_CBUFFER_FLAGS; + +typedef +enum _D3D_CBUFFER_TYPE + { + D3D_CT_CBUFFER = 0, + D3D_CT_TBUFFER = ( D3D_CT_CBUFFER + 1 ) , + D3D_CT_INTERFACE_POINTERS = ( D3D_CT_TBUFFER + 1 ) , + D3D_CT_RESOURCE_BIND_INFO = ( D3D_CT_INTERFACE_POINTERS + 1 ) , + D3D10_CT_CBUFFER = D3D_CT_CBUFFER, + D3D10_CT_TBUFFER = D3D_CT_TBUFFER, + D3D11_CT_CBUFFER = D3D_CT_CBUFFER, + D3D11_CT_TBUFFER = D3D_CT_TBUFFER, + D3D11_CT_INTERFACE_POINTERS = D3D_CT_INTERFACE_POINTERS, + D3D11_CT_RESOURCE_BIND_INFO = D3D_CT_RESOURCE_BIND_INFO + } D3D_CBUFFER_TYPE; + +typedef +enum D3D_NAME + { + D3D_NAME_UNDEFINED = 0, + D3D_NAME_POSITION = 1, + D3D_NAME_CLIP_DISTANCE = 2, + D3D_NAME_CULL_DISTANCE = 3, + D3D_NAME_RENDER_TARGET_ARRAY_INDEX = 4, + D3D_NAME_VIEWPORT_ARRAY_INDEX = 5, + D3D_NAME_VERTEX_ID = 6, + D3D_NAME_PRIMITIVE_ID = 7, + D3D_NAME_INSTANCE_ID = 8, + D3D_NAME_IS_FRONT_FACE = 9, + D3D_NAME_SAMPLE_INDEX = 10, + D3D_NAME_FINAL_QUAD_EDGE_TESSFACTOR = 11, + D3D_NAME_FINAL_QUAD_INSIDE_TESSFACTOR = 12, + D3D_NAME_FINAL_TRI_EDGE_TESSFACTOR = 13, + D3D_NAME_FINAL_TRI_INSIDE_TESSFACTOR = 14, + D3D_NAME_FINAL_LINE_DETAIL_TESSFACTOR = 15, + D3D_NAME_FINAL_LINE_DENSITY_TESSFACTOR = 16, + D3D_NAME_BARYCENTRICS = 23, + D3D_NAME_SHADINGRATE = 24, + D3D_NAME_CULLPRIMITIVE = 25, + D3D_NAME_TARGET = 64, + D3D_NAME_DEPTH = 65, + D3D_NAME_COVERAGE = 66, + D3D_NAME_DEPTH_GREATER_EQUAL = 67, + D3D_NAME_DEPTH_LESS_EQUAL = 68, + D3D_NAME_STENCIL_REF = 69, + D3D_NAME_INNER_COVERAGE = 70, + D3D10_NAME_UNDEFINED = D3D_NAME_UNDEFINED, + D3D10_NAME_POSITION = D3D_NAME_POSITION, + D3D10_NAME_CLIP_DISTANCE = D3D_NAME_CLIP_DISTANCE, + D3D10_NAME_CULL_DISTANCE = D3D_NAME_CULL_DISTANCE, + D3D10_NAME_RENDER_TARGET_ARRAY_INDEX = D3D_NAME_RENDER_TARGET_ARRAY_INDEX, + D3D10_NAME_VIEWPORT_ARRAY_INDEX = D3D_NAME_VIEWPORT_ARRAY_INDEX, + D3D10_NAME_VERTEX_ID = D3D_NAME_VERTEX_ID, + D3D10_NAME_PRIMITIVE_ID = D3D_NAME_PRIMITIVE_ID, + D3D10_NAME_INSTANCE_ID = D3D_NAME_INSTANCE_ID, + D3D10_NAME_IS_FRONT_FACE = D3D_NAME_IS_FRONT_FACE, + D3D10_NAME_SAMPLE_INDEX = D3D_NAME_SAMPLE_INDEX, + D3D10_NAME_TARGET = D3D_NAME_TARGET, + D3D10_NAME_DEPTH = D3D_NAME_DEPTH, + D3D10_NAME_COVERAGE = D3D_NAME_COVERAGE, + D3D11_NAME_FINAL_QUAD_EDGE_TESSFACTOR = D3D_NAME_FINAL_QUAD_EDGE_TESSFACTOR, + D3D11_NAME_FINAL_QUAD_INSIDE_TESSFACTOR = D3D_NAME_FINAL_QUAD_INSIDE_TESSFACTOR, + D3D11_NAME_FINAL_TRI_EDGE_TESSFACTOR = D3D_NAME_FINAL_TRI_EDGE_TESSFACTOR, + D3D11_NAME_FINAL_TRI_INSIDE_TESSFACTOR = D3D_NAME_FINAL_TRI_INSIDE_TESSFACTOR, + D3D11_NAME_FINAL_LINE_DETAIL_TESSFACTOR = D3D_NAME_FINAL_LINE_DETAIL_TESSFACTOR, + D3D11_NAME_FINAL_LINE_DENSITY_TESSFACTOR = D3D_NAME_FINAL_LINE_DENSITY_TESSFACTOR, + D3D11_NAME_DEPTH_GREATER_EQUAL = D3D_NAME_DEPTH_GREATER_EQUAL, + D3D11_NAME_DEPTH_LESS_EQUAL = D3D_NAME_DEPTH_LESS_EQUAL, + D3D11_NAME_STENCIL_REF = D3D_NAME_STENCIL_REF, + D3D11_NAME_INNER_COVERAGE = D3D_NAME_INNER_COVERAGE, + D3D12_NAME_BARYCENTRICS = D3D_NAME_BARYCENTRICS, + D3D12_NAME_SHADINGRATE = D3D_NAME_SHADINGRATE, + D3D12_NAME_CULLPRIMITIVE = D3D_NAME_CULLPRIMITIVE + } D3D_NAME; + +typedef +enum D3D_RESOURCE_RETURN_TYPE + { + D3D_RETURN_TYPE_UNORM = 1, + D3D_RETURN_TYPE_SNORM = 2, + D3D_RETURN_TYPE_SINT = 3, + D3D_RETURN_TYPE_UINT = 4, + D3D_RETURN_TYPE_FLOAT = 5, + D3D_RETURN_TYPE_MIXED = 6, + D3D_RETURN_TYPE_DOUBLE = 7, + D3D_RETURN_TYPE_CONTINUED = 8, + D3D10_RETURN_TYPE_UNORM = D3D_RETURN_TYPE_UNORM, + D3D10_RETURN_TYPE_SNORM = D3D_RETURN_TYPE_SNORM, + D3D10_RETURN_TYPE_SINT = D3D_RETURN_TYPE_SINT, + D3D10_RETURN_TYPE_UINT = D3D_RETURN_TYPE_UINT, + D3D10_RETURN_TYPE_FLOAT = D3D_RETURN_TYPE_FLOAT, + D3D10_RETURN_TYPE_MIXED = D3D_RETURN_TYPE_MIXED, + D3D11_RETURN_TYPE_UNORM = D3D_RETURN_TYPE_UNORM, + D3D11_RETURN_TYPE_SNORM = D3D_RETURN_TYPE_SNORM, + D3D11_RETURN_TYPE_SINT = D3D_RETURN_TYPE_SINT, + D3D11_RETURN_TYPE_UINT = D3D_RETURN_TYPE_UINT, + D3D11_RETURN_TYPE_FLOAT = D3D_RETURN_TYPE_FLOAT, + D3D11_RETURN_TYPE_MIXED = D3D_RETURN_TYPE_MIXED, + D3D11_RETURN_TYPE_DOUBLE = D3D_RETURN_TYPE_DOUBLE, + D3D11_RETURN_TYPE_CONTINUED = D3D_RETURN_TYPE_CONTINUED + } D3D_RESOURCE_RETURN_TYPE; + +typedef +enum D3D_REGISTER_COMPONENT_TYPE + { + D3D_REGISTER_COMPONENT_UNKNOWN = 0, + D3D_REGISTER_COMPONENT_UINT32 = 1, + D3D_REGISTER_COMPONENT_SINT32 = 2, + D3D_REGISTER_COMPONENT_FLOAT32 = 3, + D3D_REGISTER_COMPONENT_UINT16 = 4, + D3D_REGISTER_COMPONENT_SINT16 = 5, + D3D_REGISTER_COMPONENT_FLOAT16 = 6, + D3D_REGISTER_COMPONENT_UINT64 = 7, + D3D_REGISTER_COMPONENT_SINT64 = 8, + D3D_REGISTER_COMPONENT_FLOAT64 = 9, + D3D10_REGISTER_COMPONENT_UNKNOWN = D3D_REGISTER_COMPONENT_UNKNOWN, + D3D10_REGISTER_COMPONENT_UINT32 = D3D_REGISTER_COMPONENT_UINT32, + D3D10_REGISTER_COMPONENT_SINT32 = D3D_REGISTER_COMPONENT_SINT32, + D3D10_REGISTER_COMPONENT_FLOAT32 = D3D_REGISTER_COMPONENT_FLOAT32, + D3D10_REGISTER_COMPONENT_UINT16 = D3D_REGISTER_COMPONENT_UINT16, + D3D10_REGISTER_COMPONENT_SINT16 = D3D_REGISTER_COMPONENT_SINT16, + D3D10_REGISTER_COMPONENT_FLOAT16 = D3D_REGISTER_COMPONENT_FLOAT16, + D3D10_REGISTER_COMPONENT_UINT64 = D3D_REGISTER_COMPONENT_UINT64, + D3D10_REGISTER_COMPONENT_SINT64 = D3D_REGISTER_COMPONENT_SINT64, + D3D10_REGISTER_COMPONENT_FLOAT64 = D3D_REGISTER_COMPONENT_FLOAT64 + } D3D_REGISTER_COMPONENT_TYPE; + +typedef +enum D3D_TESSELLATOR_DOMAIN + { + D3D_TESSELLATOR_DOMAIN_UNDEFINED = 0, + D3D_TESSELLATOR_DOMAIN_ISOLINE = 1, + D3D_TESSELLATOR_DOMAIN_TRI = 2, + D3D_TESSELLATOR_DOMAIN_QUAD = 3, + D3D11_TESSELLATOR_DOMAIN_UNDEFINED = D3D_TESSELLATOR_DOMAIN_UNDEFINED, + D3D11_TESSELLATOR_DOMAIN_ISOLINE = D3D_TESSELLATOR_DOMAIN_ISOLINE, + D3D11_TESSELLATOR_DOMAIN_TRI = D3D_TESSELLATOR_DOMAIN_TRI, + D3D11_TESSELLATOR_DOMAIN_QUAD = D3D_TESSELLATOR_DOMAIN_QUAD + } D3D_TESSELLATOR_DOMAIN; + +typedef +enum D3D_TESSELLATOR_PARTITIONING + { + D3D_TESSELLATOR_PARTITIONING_UNDEFINED = 0, + D3D_TESSELLATOR_PARTITIONING_INTEGER = 1, + D3D_TESSELLATOR_PARTITIONING_POW2 = 2, + D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD = 3, + D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN = 4, + D3D11_TESSELLATOR_PARTITIONING_UNDEFINED = D3D_TESSELLATOR_PARTITIONING_UNDEFINED, + D3D11_TESSELLATOR_PARTITIONING_INTEGER = D3D_TESSELLATOR_PARTITIONING_INTEGER, + D3D11_TESSELLATOR_PARTITIONING_POW2 = D3D_TESSELLATOR_PARTITIONING_POW2, + D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD = D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD, + D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN = D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN + } D3D_TESSELLATOR_PARTITIONING; + +typedef +enum D3D_TESSELLATOR_OUTPUT_PRIMITIVE + { + D3D_TESSELLATOR_OUTPUT_UNDEFINED = 0, + D3D_TESSELLATOR_OUTPUT_POINT = 1, + D3D_TESSELLATOR_OUTPUT_LINE = 2, + D3D_TESSELLATOR_OUTPUT_TRIANGLE_CW = 3, + D3D_TESSELLATOR_OUTPUT_TRIANGLE_CCW = 4, + D3D11_TESSELLATOR_OUTPUT_UNDEFINED = D3D_TESSELLATOR_OUTPUT_UNDEFINED, + D3D11_TESSELLATOR_OUTPUT_POINT = D3D_TESSELLATOR_OUTPUT_POINT, + D3D11_TESSELLATOR_OUTPUT_LINE = D3D_TESSELLATOR_OUTPUT_LINE, + D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CW = D3D_TESSELLATOR_OUTPUT_TRIANGLE_CW, + D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CCW = D3D_TESSELLATOR_OUTPUT_TRIANGLE_CCW + } D3D_TESSELLATOR_OUTPUT_PRIMITIVE; + +typedef +enum D3D_MIN_PRECISION + { + D3D_MIN_PRECISION_DEFAULT = 0, + D3D_MIN_PRECISION_FLOAT_16 = 1, + D3D_MIN_PRECISION_FLOAT_2_8 = 2, + D3D_MIN_PRECISION_RESERVED = 3, + D3D_MIN_PRECISION_SINT_16 = 4, + D3D_MIN_PRECISION_UINT_16 = 5, + D3D_MIN_PRECISION_ANY_16 = 0xf0, + D3D_MIN_PRECISION_ANY_10 = 0xf1 + } D3D_MIN_PRECISION; + +typedef +enum D3D_INTERPOLATION_MODE + { + D3D_INTERPOLATION_UNDEFINED = 0, + D3D_INTERPOLATION_CONSTANT = 1, + D3D_INTERPOLATION_LINEAR = 2, + D3D_INTERPOLATION_LINEAR_CENTROID = 3, + D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE = 4, + D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE_CENTROID = 5, + D3D_INTERPOLATION_LINEAR_SAMPLE = 6, + D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE_SAMPLE = 7 + } D3D_INTERPOLATION_MODE; + +typedef +enum _D3D_PARAMETER_FLAGS + { + D3D_PF_NONE = 0, + D3D_PF_IN = 0x1, + D3D_PF_OUT = 0x2, + D3D_PF_FORCE_DWORD = 0x7fffffff + } D3D_PARAMETER_FLAGS; + +typedef +enum D3D_FORMAT_LAYOUT + { + D3DFL_STANDARD = 0, + D3DFL_CUSTOM = -1 + } D3D_FORMAT_LAYOUT; + +typedef +enum D3D_FORMAT_TYPE_LEVEL + { + D3DFTL_NO_TYPE = 0, + D3DFTL_PARTIAL_TYPE = -2, + D3DFTL_FULL_TYPE = -1 + } D3D_FORMAT_TYPE_LEVEL; + +typedef +enum D3D_FORMAT_COMPONENT_NAME + { + D3DFCN_R = -4, + D3DFCN_G = -3, + D3DFCN_B = -2, + D3DFCN_A = -1, + D3DFCN_D = 0, + D3DFCN_S = 1, + D3DFCN_X = 2 + } D3D_FORMAT_COMPONENT_NAME; + +typedef +enum D3D_FORMAT_COMPONENT_INTERPRETATION + { + D3DFCI_TYPELESS = 0, + D3DFCI_FLOAT = -4, + D3DFCI_SNORM = -3, + D3DFCI_UNORM = -2, + D3DFCI_SINT = -1, + D3DFCI_UINT = 1, + D3DFCI_UNORM_SRGB = 2, + D3DFCI_BIASED_FIXED_2_8 = 3 + } D3D_FORMAT_COMPONENT_INTERPRETATION; + +DEFINE_GUID(WKPDID_D3DDebugObjectName,0x429b8c22,0x9188,0x4b0c,0x87,0x42,0xac,0xb0,0xbf,0x85,0xc2,0x00); +DEFINE_GUID(WKPDID_D3DDebugObjectNameW,0x4cca5fd8,0x921f,0x42c8,0x85,0x66,0x70,0xca,0xf2,0xa9,0xb7,0x41); +DEFINE_GUID(WKPDID_CommentStringW,0xd0149dc0,0x90e8,0x4ec8,0x81, 0x44, 0xe9, 0x00, 0xad, 0x26, 0x6b, 0xb2); +DEFINE_GUID(WKPDID_D3D12UniqueObjectId, 0x1b39de15, 0xec04, 0x4bae, 0xba, 0x4d, 0x8c, 0xef, 0x79, 0xfc, 0x04, 0xc1); +#define D3D_SET_OBJECT_NAME_N_A(pObject, Chars, pName) (pObject)->SetPrivateData(WKPDID_D3DDebugObjectName, Chars, pName) +#define D3D_SET_OBJECT_NAME_A(pObject, pName) D3D_SET_OBJECT_NAME_N_A(pObject, lstrlenA(pName), pName) +#define D3D_SET_OBJECT_NAME_N_W(pObject, Chars, pName) (pObject)->SetPrivateData(WKPDID_D3DDebugObjectNameW, Chars*2, pName) +#define D3D_SET_OBJECT_NAME_W(pObject, pName) D3D_SET_OBJECT_NAME_N_W(pObject, wcslen(pName), pName) +#define D3D_COMPONENT_MASK_X 1 +#define D3D_COMPONENT_MASK_Y 2 +#define D3D_COMPONENT_MASK_Z 4 +#define D3D_COMPONENT_MASK_W 8 +DEFINE_GUID(D3D_TEXTURE_LAYOUT_ROW_MAJOR,0xb5dc234f,0x72bb,0x4bec,0x97,0x05,0x8c,0xf2,0x58,0xdf,0x6b,0x6c); +DEFINE_GUID(D3D_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE,0x4c0f29e3,0x3f5f,0x4d35,0x84,0xc9,0xbc,0x09,0x83,0xb6,0x2c,0x28); + + +extern RPC_IF_HANDLE __MIDL_itf_d3dcommon_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3dcommon_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcommon.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcommon.idl new file mode 100644 index 0000000000000000000000000000000000000000..6ad5de763724748fa130c75bdc250c746fa00b76 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcommon.idl @@ -0,0 +1,991 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ +import "oaidl.idl"; +import "ocidl.idl"; + +//---------------------------------------------------------------------------- +// +// D3D-version-neutral runtime information. +// +//---------------------------------------------------------------------------- + +typedef enum D3D_DRIVER_TYPE +{ + D3D_DRIVER_TYPE_UNKNOWN, + D3D_DRIVER_TYPE_HARDWARE, + D3D_DRIVER_TYPE_REFERENCE, + D3D_DRIVER_TYPE_NULL, + D3D_DRIVER_TYPE_SOFTWARE, + D3D_DRIVER_TYPE_WARP, +} D3D_DRIVER_TYPE; + +typedef enum D3D_FEATURE_LEVEL +{ + D3D_FEATURE_LEVEL_1_0_GENERIC = 0x100, + D3D_FEATURE_LEVEL_1_0_CORE = 0x1000, + D3D_FEATURE_LEVEL_9_1 = 0x9100, + D3D_FEATURE_LEVEL_9_2 = 0x9200, + D3D_FEATURE_LEVEL_9_3 = 0x9300, + D3D_FEATURE_LEVEL_10_0 = 0xa000, + D3D_FEATURE_LEVEL_10_1 = 0xa100, + D3D_FEATURE_LEVEL_11_0 = 0xb000, + D3D_FEATURE_LEVEL_11_1 = 0xb100, + D3D_FEATURE_LEVEL_12_0 = 0xc000, + D3D_FEATURE_LEVEL_12_1 = 0xc100, + D3D_FEATURE_LEVEL_12_2 = 0xc200 +} D3D_FEATURE_LEVEL; + +cpp_quote("#define D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION 2048") +cpp_quote("#define D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION 4096") +cpp_quote("#define D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION 2048") +cpp_quote("#define D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION 4096") +cpp_quote("#define D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION 512") +cpp_quote("#define D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION 4096") +cpp_quote("#define D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION 256") +cpp_quote("#define D3D_FL9_1_DEFAULT_MAX_ANISOTROPY 2") +cpp_quote("#define D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT 65535") +cpp_quote("#define D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT 1048575") +cpp_quote("#define D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT 1") +cpp_quote("#define D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT 4") +cpp_quote("#define D3D_FL9_1_MAX_TEXTURE_REPEAT 128") +cpp_quote("#define D3D_FL9_2_MAX_TEXTURE_REPEAT 2048") +cpp_quote("#define D3D_FL9_3_MAX_TEXTURE_REPEAT 8192") + +typedef enum D3D_PRIMITIVE_TOPOLOGY +{ + D3D_PRIMITIVE_TOPOLOGY_UNDEFINED = 0, + D3D_PRIMITIVE_TOPOLOGY_POINTLIST = 1, + D3D_PRIMITIVE_TOPOLOGY_LINELIST = 2, + D3D_PRIMITIVE_TOPOLOGY_LINESTRIP = 3, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST = 4, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP = 5, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLEFAN = 6, + // Adjacency values should be equal to (0x8 & non-adjacency): + D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10, + D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ = 11, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ = 12, + D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ = 13, + D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = 33, + D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST = 34, + D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST = 35, + D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST = 36, + D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST = 37, + D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST = 38, + D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST = 39, + D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST = 40, + D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST = 41, + D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST = 42, + D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST = 43, + D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST = 44, + D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST = 45, + D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST = 46, + D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST = 47, + D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST = 48, + D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST = 49, + D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST = 50, + D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST = 51, + D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST = 52, + D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST = 53, + D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST = 54, + D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST = 55, + D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST = 56, + D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST = 57, + D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST = 58, + D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST = 59, + D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST = 60, + D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST = 61, + D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST = 62, + D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST = 63, + D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST = 64, + + D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED = D3D_PRIMITIVE_TOPOLOGY_UNDEFINED, + D3D10_PRIMITIVE_TOPOLOGY_POINTLIST = D3D_PRIMITIVE_TOPOLOGY_POINTLIST, + D3D10_PRIMITIVE_TOPOLOGY_LINELIST = D3D_PRIMITIVE_TOPOLOGY_LINELIST, + D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP = D3D_PRIMITIVE_TOPOLOGY_LINESTRIP, + D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST, + D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP = D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP, + D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ, + D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ = D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ, + D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ, + D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ = D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ, + + D3D11_PRIMITIVE_TOPOLOGY_UNDEFINED = D3D_PRIMITIVE_TOPOLOGY_UNDEFINED, + D3D11_PRIMITIVE_TOPOLOGY_POINTLIST = D3D_PRIMITIVE_TOPOLOGY_POINTLIST, + D3D11_PRIMITIVE_TOPOLOGY_LINELIST = D3D_PRIMITIVE_TOPOLOGY_LINELIST, + D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP = D3D_PRIMITIVE_TOPOLOGY_LINESTRIP, + D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST, + D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP = D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP, + D3D11_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ, + D3D11_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ = D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ, + D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ, + D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ = D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ, + D3D11_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST, + D3D11_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST = D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST +} D3D_PRIMITIVE_TOPOLOGY; + +typedef enum D3D_PRIMITIVE +{ + D3D_PRIMITIVE_UNDEFINED = 0, + D3D_PRIMITIVE_POINT = 1, + D3D_PRIMITIVE_LINE = 2, + D3D_PRIMITIVE_TRIANGLE = 3, + // Adjacency values should be equal to (0x4 & non-adjacency): + D3D_PRIMITIVE_LINE_ADJ = 6, + D3D_PRIMITIVE_TRIANGLE_ADJ = 7, + D3D_PRIMITIVE_1_CONTROL_POINT_PATCH = 8, + D3D_PRIMITIVE_2_CONTROL_POINT_PATCH = 9, + D3D_PRIMITIVE_3_CONTROL_POINT_PATCH = 10, + D3D_PRIMITIVE_4_CONTROL_POINT_PATCH = 11, + D3D_PRIMITIVE_5_CONTROL_POINT_PATCH = 12, + D3D_PRIMITIVE_6_CONTROL_POINT_PATCH = 13, + D3D_PRIMITIVE_7_CONTROL_POINT_PATCH = 14, + D3D_PRIMITIVE_8_CONTROL_POINT_PATCH = 15, + D3D_PRIMITIVE_9_CONTROL_POINT_PATCH = 16, + D3D_PRIMITIVE_10_CONTROL_POINT_PATCH = 17, + D3D_PRIMITIVE_11_CONTROL_POINT_PATCH = 18, + D3D_PRIMITIVE_12_CONTROL_POINT_PATCH = 19, + D3D_PRIMITIVE_13_CONTROL_POINT_PATCH = 20, + D3D_PRIMITIVE_14_CONTROL_POINT_PATCH = 21, + D3D_PRIMITIVE_15_CONTROL_POINT_PATCH = 22, + D3D_PRIMITIVE_16_CONTROL_POINT_PATCH = 23, + D3D_PRIMITIVE_17_CONTROL_POINT_PATCH = 24, + D3D_PRIMITIVE_18_CONTROL_POINT_PATCH = 25, + D3D_PRIMITIVE_19_CONTROL_POINT_PATCH = 26, + D3D_PRIMITIVE_20_CONTROL_POINT_PATCH = 27, + D3D_PRIMITIVE_21_CONTROL_POINT_PATCH = 28, + D3D_PRIMITIVE_22_CONTROL_POINT_PATCH = 29, + D3D_PRIMITIVE_23_CONTROL_POINT_PATCH = 30, + D3D_PRIMITIVE_24_CONTROL_POINT_PATCH = 31, + D3D_PRIMITIVE_25_CONTROL_POINT_PATCH = 32, + D3D_PRIMITIVE_26_CONTROL_POINT_PATCH = 33, + D3D_PRIMITIVE_27_CONTROL_POINT_PATCH = 34, + D3D_PRIMITIVE_28_CONTROL_POINT_PATCH = 35, + D3D_PRIMITIVE_29_CONTROL_POINT_PATCH = 36, + D3D_PRIMITIVE_30_CONTROL_POINT_PATCH = 37, + D3D_PRIMITIVE_31_CONTROL_POINT_PATCH = 38, + D3D_PRIMITIVE_32_CONTROL_POINT_PATCH = 39, + + D3D10_PRIMITIVE_UNDEFINED = D3D_PRIMITIVE_UNDEFINED, + D3D10_PRIMITIVE_POINT = D3D_PRIMITIVE_POINT, + D3D10_PRIMITIVE_LINE = D3D_PRIMITIVE_LINE, + D3D10_PRIMITIVE_TRIANGLE = D3D_PRIMITIVE_TRIANGLE, + D3D10_PRIMITIVE_LINE_ADJ = D3D_PRIMITIVE_LINE_ADJ, + D3D10_PRIMITIVE_TRIANGLE_ADJ = D3D_PRIMITIVE_TRIANGLE_ADJ, + + D3D11_PRIMITIVE_UNDEFINED = D3D_PRIMITIVE_UNDEFINED, + D3D11_PRIMITIVE_POINT = D3D_PRIMITIVE_POINT, + D3D11_PRIMITIVE_LINE = D3D_PRIMITIVE_LINE, + D3D11_PRIMITIVE_TRIANGLE = D3D_PRIMITIVE_TRIANGLE, + D3D11_PRIMITIVE_LINE_ADJ = D3D_PRIMITIVE_LINE_ADJ, + D3D11_PRIMITIVE_TRIANGLE_ADJ = D3D_PRIMITIVE_TRIANGLE_ADJ, + D3D11_PRIMITIVE_1_CONTROL_POINT_PATCH = D3D_PRIMITIVE_1_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_2_CONTROL_POINT_PATCH = D3D_PRIMITIVE_2_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_3_CONTROL_POINT_PATCH = D3D_PRIMITIVE_3_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_4_CONTROL_POINT_PATCH = D3D_PRIMITIVE_4_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_5_CONTROL_POINT_PATCH = D3D_PRIMITIVE_5_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_6_CONTROL_POINT_PATCH = D3D_PRIMITIVE_6_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_7_CONTROL_POINT_PATCH = D3D_PRIMITIVE_7_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_8_CONTROL_POINT_PATCH = D3D_PRIMITIVE_8_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_9_CONTROL_POINT_PATCH = D3D_PRIMITIVE_9_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_10_CONTROL_POINT_PATCH = D3D_PRIMITIVE_10_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_11_CONTROL_POINT_PATCH = D3D_PRIMITIVE_11_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_12_CONTROL_POINT_PATCH = D3D_PRIMITIVE_12_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_13_CONTROL_POINT_PATCH = D3D_PRIMITIVE_13_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_14_CONTROL_POINT_PATCH = D3D_PRIMITIVE_14_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_15_CONTROL_POINT_PATCH = D3D_PRIMITIVE_15_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_16_CONTROL_POINT_PATCH = D3D_PRIMITIVE_16_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_17_CONTROL_POINT_PATCH = D3D_PRIMITIVE_17_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_18_CONTROL_POINT_PATCH = D3D_PRIMITIVE_18_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_19_CONTROL_POINT_PATCH = D3D_PRIMITIVE_19_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_20_CONTROL_POINT_PATCH = D3D_PRIMITIVE_20_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_21_CONTROL_POINT_PATCH = D3D_PRIMITIVE_21_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_22_CONTROL_POINT_PATCH = D3D_PRIMITIVE_22_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_23_CONTROL_POINT_PATCH = D3D_PRIMITIVE_23_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_24_CONTROL_POINT_PATCH = D3D_PRIMITIVE_24_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_25_CONTROL_POINT_PATCH = D3D_PRIMITIVE_25_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_26_CONTROL_POINT_PATCH = D3D_PRIMITIVE_26_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_27_CONTROL_POINT_PATCH = D3D_PRIMITIVE_27_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_28_CONTROL_POINT_PATCH = D3D_PRIMITIVE_28_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_29_CONTROL_POINT_PATCH = D3D_PRIMITIVE_29_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_30_CONTROL_POINT_PATCH = D3D_PRIMITIVE_30_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_31_CONTROL_POINT_PATCH = D3D_PRIMITIVE_31_CONTROL_POINT_PATCH, + D3D11_PRIMITIVE_32_CONTROL_POINT_PATCH = D3D_PRIMITIVE_32_CONTROL_POINT_PATCH, +} D3D_PRIMITIVE; + +typedef enum D3D_SRV_DIMENSION +{ + D3D_SRV_DIMENSION_UNKNOWN = 0, + D3D_SRV_DIMENSION_BUFFER = 1, + D3D_SRV_DIMENSION_TEXTURE1D = 2, + D3D_SRV_DIMENSION_TEXTURE1DARRAY = 3, + D3D_SRV_DIMENSION_TEXTURE2D = 4, + D3D_SRV_DIMENSION_TEXTURE2DARRAY = 5, + D3D_SRV_DIMENSION_TEXTURE2DMS = 6, + D3D_SRV_DIMENSION_TEXTURE2DMSARRAY = 7, + D3D_SRV_DIMENSION_TEXTURE3D = 8, + D3D_SRV_DIMENSION_TEXTURECUBE = 9, + D3D_SRV_DIMENSION_TEXTURECUBEARRAY = 10, + D3D_SRV_DIMENSION_BUFFEREX = 11, + + D3D10_SRV_DIMENSION_UNKNOWN = D3D_SRV_DIMENSION_UNKNOWN, + D3D10_SRV_DIMENSION_BUFFER = D3D_SRV_DIMENSION_BUFFER, + D3D10_SRV_DIMENSION_TEXTURE1D = D3D_SRV_DIMENSION_TEXTURE1D, + D3D10_SRV_DIMENSION_TEXTURE1DARRAY = D3D_SRV_DIMENSION_TEXTURE1DARRAY, + D3D10_SRV_DIMENSION_TEXTURE2D = D3D_SRV_DIMENSION_TEXTURE2D, + D3D10_SRV_DIMENSION_TEXTURE2DARRAY = D3D_SRV_DIMENSION_TEXTURE2DARRAY, + D3D10_SRV_DIMENSION_TEXTURE2DMS = D3D_SRV_DIMENSION_TEXTURE2DMS, + D3D10_SRV_DIMENSION_TEXTURE2DMSARRAY = D3D_SRV_DIMENSION_TEXTURE2DMSARRAY, + D3D10_SRV_DIMENSION_TEXTURE3D = D3D_SRV_DIMENSION_TEXTURE3D, + D3D10_SRV_DIMENSION_TEXTURECUBE = D3D_SRV_DIMENSION_TEXTURECUBE, + + D3D10_1_SRV_DIMENSION_UNKNOWN = D3D_SRV_DIMENSION_UNKNOWN, + D3D10_1_SRV_DIMENSION_BUFFER = D3D_SRV_DIMENSION_BUFFER, + D3D10_1_SRV_DIMENSION_TEXTURE1D = D3D_SRV_DIMENSION_TEXTURE1D, + D3D10_1_SRV_DIMENSION_TEXTURE1DARRAY = D3D_SRV_DIMENSION_TEXTURE1DARRAY, + D3D10_1_SRV_DIMENSION_TEXTURE2D = D3D_SRV_DIMENSION_TEXTURE2D, + D3D10_1_SRV_DIMENSION_TEXTURE2DARRAY = D3D_SRV_DIMENSION_TEXTURE2DARRAY, + D3D10_1_SRV_DIMENSION_TEXTURE2DMS = D3D_SRV_DIMENSION_TEXTURE2DMS, + D3D10_1_SRV_DIMENSION_TEXTURE2DMSARRAY = D3D_SRV_DIMENSION_TEXTURE2DMSARRAY, + D3D10_1_SRV_DIMENSION_TEXTURE3D = D3D_SRV_DIMENSION_TEXTURE3D, + D3D10_1_SRV_DIMENSION_TEXTURECUBE = D3D_SRV_DIMENSION_TEXTURECUBE, + D3D10_1_SRV_DIMENSION_TEXTURECUBEARRAY = D3D_SRV_DIMENSION_TEXTURECUBEARRAY, + + D3D11_SRV_DIMENSION_UNKNOWN = D3D_SRV_DIMENSION_UNKNOWN, + D3D11_SRV_DIMENSION_BUFFER = D3D_SRV_DIMENSION_BUFFER, + D3D11_SRV_DIMENSION_TEXTURE1D = D3D_SRV_DIMENSION_TEXTURE1D, + D3D11_SRV_DIMENSION_TEXTURE1DARRAY = D3D_SRV_DIMENSION_TEXTURE1DARRAY, + D3D11_SRV_DIMENSION_TEXTURE2D = D3D_SRV_DIMENSION_TEXTURE2D, + D3D11_SRV_DIMENSION_TEXTURE2DARRAY = D3D_SRV_DIMENSION_TEXTURE2DARRAY, + D3D11_SRV_DIMENSION_TEXTURE2DMS = D3D_SRV_DIMENSION_TEXTURE2DMS, + D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY = D3D_SRV_DIMENSION_TEXTURE2DMSARRAY, + D3D11_SRV_DIMENSION_TEXTURE3D = D3D_SRV_DIMENSION_TEXTURE3D, + D3D11_SRV_DIMENSION_TEXTURECUBE = D3D_SRV_DIMENSION_TEXTURECUBE, + D3D11_SRV_DIMENSION_TEXTURECUBEARRAY = D3D_SRV_DIMENSION_TEXTURECUBEARRAY, + D3D11_SRV_DIMENSION_BUFFEREX = D3D_SRV_DIMENSION_BUFFEREX, +} D3D_SRV_DIMENSION; + +// Bits in shaders indicating features they use which the runtime checks against current device support: +cpp_quote("#define D3D_SHADER_FEATURE_DOUBLES 0x00001") +cpp_quote("#define D3D_SHADER_FEATURE_COMPUTE_SHADERS_PLUS_RAW_AND_STRUCTURED_BUFFERS_VIA_SHADER_4_X 0x00002") +cpp_quote("#define D3D_SHADER_FEATURE_UAVS_AT_EVERY_STAGE 0x00004") +cpp_quote("#define D3D_SHADER_FEATURE_64_UAVS 0x00008") +cpp_quote("#define D3D_SHADER_FEATURE_MINIMUM_PRECISION 0x00010") +cpp_quote("#define D3D_SHADER_FEATURE_11_1_DOUBLE_EXTENSIONS 0x00020") +cpp_quote("#define D3D_SHADER_FEATURE_11_1_SHADER_EXTENSIONS 0x00040") +cpp_quote("#define D3D_SHADER_FEATURE_LEVEL_9_COMPARISON_FILTERING 0x00080") +cpp_quote("#define D3D_SHADER_FEATURE_TILED_RESOURCES 0x00100") +cpp_quote("#define D3D_SHADER_FEATURE_STENCIL_REF 0x00200") +cpp_quote("#define D3D_SHADER_FEATURE_INNER_COVERAGE 0x00400") +cpp_quote("#define D3D_SHADER_FEATURE_TYPED_UAV_LOAD_ADDITIONAL_FORMATS 0x00800") +cpp_quote("#define D3D_SHADER_FEATURE_ROVS 0x01000") +cpp_quote("#define D3D_SHADER_FEATURE_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER 0x02000") +cpp_quote("#define D3D_SHADER_FEATURE_WAVE_OPS 0x04000") +cpp_quote("#define D3D_SHADER_FEATURE_INT64_OPS 0x08000") +cpp_quote("#define D3D_SHADER_FEATURE_VIEW_ID 0x10000") +cpp_quote("#define D3D_SHADER_FEATURE_BARYCENTRICS 0x20000") +cpp_quote("#define D3D_SHADER_FEATURE_NATIVE_16BIT_OPS 0x40000") +cpp_quote("#define D3D_SHADER_FEATURE_SHADING_RATE 0x80000") +cpp_quote("#define D3D_SHADER_FEATURE_RAYTRACING_TIER_1_1 0x100000") +cpp_quote("#define D3D_SHADER_FEATURE_SAMPLER_FEEDBACK 0x200000") +cpp_quote("#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_TYPED_RESOURCE 0x400000") +cpp_quote("#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_GROUP_SHARED 0x800000") +cpp_quote("#define D3D_SHADER_FEATURE_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS 0x1000000") +cpp_quote("#define D3D_SHADER_FEATURE_RESOURCE_DESCRIPTOR_HEAP_INDEXING 0x2000000") +cpp_quote("#define D3D_SHADER_FEATURE_SAMPLER_DESCRIPTOR_HEAP_INDEXING 0x4000000") +cpp_quote("#define D3D_SHADER_FEATURE_WAVE_MMA 0x8000000") +cpp_quote("#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE 0x10000000") +cpp_quote("#define D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS 0x20000000") +cpp_quote("#define D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES 0x40000000") +cpp_quote("#define D3D_SHADER_FEATURE_SAMPLE_CMP_GRADIENT_OR_BIAS 0x80000000") +cpp_quote("#define D3D_SHADER_FEATURE_EXTENDED_COMMAND_INFO 0x100000000ull") + +// This section is for flags that do not directly indicate a required feature, +// but are used to indicate something about the shader. + +// Flag for any derivative use. This allows call-graph validation +// in the runtime to detect misuse of derivatives for an entry point that cannot +// support it, or to determine when the flag +// D3D_SHADER_FEATURE_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS is required. +cpp_quote("#define D3D_OPT_SHADER_FEATURE_USES_DERIVATIVES 0x0000010000000000ull") + +cpp_quote("#define D3D_OPT_SHADER_FEATURE_REQUIRES_GROUP 0x0000020000000000ull") + + +// Additional internal shader feature flags are listed in dxbcutils.h (not relevant/useful for public to see) +// When adding entries here, make sure they don't conflict with what's there. + +//---------------------------------------------------------------------------- +// +// Shader compilation information. +// +//---------------------------------------------------------------------------- + +//---------------------------------------------------------------------------- +// D3D_SHADER_MACRO: +// ---------- +// Preprocessor macro definition. The application pass in a NULL-terminated +// array of this structure to various D3D APIs. This enables the application +// to #define tokens at runtime, before the file is parsed. +//---------------------------------------------------------------------------- + +typedef struct _D3D_SHADER_MACRO +{ + LPCSTR Name; + LPCSTR Definition; +} D3D_SHADER_MACRO, *LPD3D_SHADER_MACRO; + +//---------------------------------------------------------------------------- +// ID3DBlob: +// ------------ +// The buffer object is used by D3D to return arbitrary size data. +// For compatibility with D3D10 this interface is also called ID3D10Blob, +// but the version-neutral form is preferred. +// +// GetBufferPointer - +// Returns a pointer to the beginning of the buffer. +// +// GetBufferSize - +// Returns the size of the buffer, in bytes. +//---------------------------------------------------------------------------- + +// {8BA5FB08-5195-40e2-AC58-0D989C3A0102} +cpp_quote("DEFINE_GUID(IID_ID3D10Blob, 0x8ba5fb08, 0x5195, 0x40e2, 0xac, 0x58, 0xd, 0x98, 0x9c, 0x3a, 0x1, 0x2);") + +[ uuid( 8BA5FB08-5195-40e2-AC58-0D989C3A0102 ), object, local, pointer_default( unique ) ] +interface ID3D10Blob : IUnknown +{ + LPVOID GetBufferPointer(); + SIZE_T GetBufferSize(); +}; + +cpp_quote("typedef interface ID3D10Blob* LPD3D10BLOB;") + +typedef ID3D10Blob ID3DBlob; +cpp_quote("typedef ID3DBlob* LPD3DBLOB;") +cpp_quote("#define IID_ID3DBlob IID_ID3D10Blob") + +// ID3DDestructionNotifier: An interface to QI for, to set a callback which is triggered when the object is fully destroyed +typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void* pData); + +[uuid(a06eb39a-50da-425b-8c31-4eecd6c270f3), object, local, pointer_default(unique)] +interface ID3DDestructionNotifier + : IUnknown +{ + HRESULT RegisterDestructionCallback( + [annotation("_In_")] PFN_DESTRUCTION_CALLBACK callbackFn, + [annotation("_In_")] void* pData, + [annotation("_Out_")] UINT* pCallbackID + ); + HRESULT UnregisterDestructionCallback( + [annotation("_In_")] UINT callbackID + ); +}; + +typedef enum _D3D_INCLUDE_TYPE +{ + D3D_INCLUDE_LOCAL, + D3D_INCLUDE_SYSTEM, + + D3D10_INCLUDE_LOCAL = D3D_INCLUDE_LOCAL, + D3D10_INCLUDE_SYSTEM = D3D_INCLUDE_SYSTEM, + + // force 32-bit size enum + D3D_INCLUDE_FORCE_DWORD = 0x7fffffff +} D3D_INCLUDE_TYPE; + +//---------------------------------------------------------------------------- +// ID3DInclude: +// ------------- +// This interface is intended to be implemented by the application, and can +// be used by various D3D APIs. This enables application-specific handling +// of #include directives in source files. +// +// Open() +// Opens an include file. If successful, it should fill in ppData and +// pBytes. The data pointer returned must remain valid until Close is +// subsequently called. The name of the file is encoded in UTF-8 format. +// Close() +// Closes an include file. If Open was successful, Close is guaranteed +// to be called before the API using this interface returns. +//---------------------------------------------------------------------------- + +cpp_quote("typedef interface ID3DInclude ID3DInclude;") + +cpp_quote("#undef INTERFACE") +cpp_quote("#define INTERFACE ID3DInclude") + +cpp_quote("DECLARE_INTERFACE(ID3DInclude)") +cpp_quote("{") +cpp_quote(" STDMETHOD(Open)(THIS_ D3D_INCLUDE_TYPE IncludeType, LPCSTR pFileName, LPCVOID pParentData, LPCVOID *ppData, UINT *pBytes) PURE;") +cpp_quote(" STDMETHOD(Close)(THIS_ LPCVOID pData) PURE;") +cpp_quote("};") + +cpp_quote("typedef ID3DInclude* LPD3DINCLUDE;") + +//---------------------------------------------------------------------------- +// +// Shader reflection information. +// +//---------------------------------------------------------------------------- + +typedef enum _D3D_SHADER_VARIABLE_CLASS +{ + D3D_SVC_SCALAR, + D3D_SVC_VECTOR, + D3D_SVC_MATRIX_ROWS, + D3D_SVC_MATRIX_COLUMNS, + D3D_SVC_OBJECT, + D3D_SVC_STRUCT, + D3D_SVC_INTERFACE_CLASS, + D3D_SVC_INTERFACE_POINTER, + + D3D10_SVC_SCALAR = D3D_SVC_SCALAR, + D3D10_SVC_VECTOR = D3D_SVC_VECTOR, + D3D10_SVC_MATRIX_ROWS = D3D_SVC_MATRIX_ROWS, + D3D10_SVC_MATRIX_COLUMNS = D3D_SVC_MATRIX_COLUMNS, + D3D10_SVC_OBJECT = D3D_SVC_OBJECT, + D3D10_SVC_STRUCT = D3D_SVC_STRUCT, + + D3D11_SVC_INTERFACE_CLASS = D3D_SVC_INTERFACE_CLASS, + D3D11_SVC_INTERFACE_POINTER = D3D_SVC_INTERFACE_POINTER, + + // force 32-bit size enum + D3D_SVC_FORCE_DWORD = 0x7fffffff +} D3D_SHADER_VARIABLE_CLASS; + +typedef enum _D3D_SHADER_VARIABLE_FLAGS +{ + D3D_SVF_USERPACKED = 1, + D3D_SVF_USED = 2, + + D3D_SVF_INTERFACE_POINTER = 4, + D3D_SVF_INTERFACE_PARAMETER = 8, + + D3D10_SVF_USERPACKED = D3D_SVF_USERPACKED, + D3D10_SVF_USED = D3D_SVF_USED, + + D3D11_SVF_INTERFACE_POINTER = D3D_SVF_INTERFACE_POINTER, + D3D11_SVF_INTERFACE_PARAMETER = D3D_SVF_INTERFACE_PARAMETER, + + // force 32-bit size enum + D3D_SVF_FORCE_DWORD = 0x7fffffff +} D3D_SHADER_VARIABLE_FLAGS; + +typedef enum _D3D_SHADER_VARIABLE_TYPE +{ + D3D_SVT_VOID = 0, + D3D_SVT_BOOL = 1, + D3D_SVT_INT = 2, + D3D_SVT_FLOAT = 3, + D3D_SVT_STRING = 4, + D3D_SVT_TEXTURE = 5, + D3D_SVT_TEXTURE1D = 6, + D3D_SVT_TEXTURE2D = 7, + D3D_SVT_TEXTURE3D = 8, + D3D_SVT_TEXTURECUBE = 9, + D3D_SVT_SAMPLER = 10, + D3D_SVT_SAMPLER1D = 11, + D3D_SVT_SAMPLER2D = 12, + D3D_SVT_SAMPLER3D = 13, + D3D_SVT_SAMPLERCUBE = 14, + D3D_SVT_PIXELSHADER = 15, + D3D_SVT_VERTEXSHADER = 16, + D3D_SVT_PIXELFRAGMENT = 17, + D3D_SVT_VERTEXFRAGMENT = 18, + D3D_SVT_UINT = 19, + D3D_SVT_UINT8 = 20, + D3D_SVT_GEOMETRYSHADER = 21, + D3D_SVT_RASTERIZER = 22, + D3D_SVT_DEPTHSTENCIL = 23, + D3D_SVT_BLEND = 24, + D3D_SVT_BUFFER = 25, + D3D_SVT_CBUFFER = 26, + D3D_SVT_TBUFFER = 27, + D3D_SVT_TEXTURE1DARRAY = 28, + D3D_SVT_TEXTURE2DARRAY = 29, + D3D_SVT_RENDERTARGETVIEW = 30, + D3D_SVT_DEPTHSTENCILVIEW = 31, + + D3D_SVT_TEXTURE2DMS = 32, + D3D_SVT_TEXTURE2DMSARRAY = 33, + + D3D_SVT_TEXTURECUBEARRAY = 34, + + D3D_SVT_HULLSHADER = 35, + D3D_SVT_DOMAINSHADER = 36, + + D3D_SVT_INTERFACE_POINTER = 37, + D3D_SVT_COMPUTESHADER = 38, + + D3D_SVT_DOUBLE = 39, + + D3D_SVT_RWTEXTURE1D = 40, + D3D_SVT_RWTEXTURE1DARRAY = 41, + D3D_SVT_RWTEXTURE2D = 42, + D3D_SVT_RWTEXTURE2DARRAY = 43, + D3D_SVT_RWTEXTURE3D = 44, + D3D_SVT_RWBUFFER = 45, + + D3D_SVT_BYTEADDRESS_BUFFER = 46, + D3D_SVT_RWBYTEADDRESS_BUFFER = 47, + D3D_SVT_STRUCTURED_BUFFER = 48, + D3D_SVT_RWSTRUCTURED_BUFFER = 49, + D3D_SVT_APPEND_STRUCTURED_BUFFER = 50, + D3D_SVT_CONSUME_STRUCTURED_BUFFER = 51, + + D3D_SVT_MIN8FLOAT = 52, + D3D_SVT_MIN10FLOAT = 53, + D3D_SVT_MIN16FLOAT = 54, + D3D_SVT_MIN12INT = 55, + D3D_SVT_MIN16INT = 56, + D3D_SVT_MIN16UINT = 57, + + D3D_SVT_INT16 = 58, + D3D_SVT_UINT16 = 59, + D3D_SVT_FLOAT16 = 60, + D3D_SVT_INT64 = 61, + D3D_SVT_UINT64 = 62, + + D3D10_SVT_VOID = D3D_SVT_VOID, + D3D10_SVT_BOOL = D3D_SVT_BOOL, + D3D10_SVT_INT = D3D_SVT_INT, + D3D10_SVT_FLOAT = D3D_SVT_FLOAT, + D3D10_SVT_STRING = D3D_SVT_STRING, + D3D10_SVT_TEXTURE = D3D_SVT_TEXTURE, + D3D10_SVT_TEXTURE1D = D3D_SVT_TEXTURE1D, + D3D10_SVT_TEXTURE2D = D3D_SVT_TEXTURE2D, + D3D10_SVT_TEXTURE3D = D3D_SVT_TEXTURE3D, + D3D10_SVT_TEXTURECUBE = D3D_SVT_TEXTURECUBE, + D3D10_SVT_SAMPLER = D3D_SVT_SAMPLER, + D3D10_SVT_SAMPLER1D = D3D_SVT_SAMPLER1D, + D3D10_SVT_SAMPLER2D = D3D_SVT_SAMPLER2D, + D3D10_SVT_SAMPLER3D = D3D_SVT_SAMPLER3D, + D3D10_SVT_SAMPLERCUBE = D3D_SVT_SAMPLERCUBE, + D3D10_SVT_PIXELSHADER = D3D_SVT_PIXELSHADER, + D3D10_SVT_VERTEXSHADER = D3D_SVT_VERTEXSHADER, + D3D10_SVT_PIXELFRAGMENT = D3D_SVT_PIXELFRAGMENT, + D3D10_SVT_VERTEXFRAGMENT = D3D_SVT_VERTEXFRAGMENT, + D3D10_SVT_UINT = D3D_SVT_UINT, + D3D10_SVT_UINT8 = D3D_SVT_UINT8, + D3D10_SVT_GEOMETRYSHADER = D3D_SVT_GEOMETRYSHADER, + D3D10_SVT_RASTERIZER = D3D_SVT_RASTERIZER, + D3D10_SVT_DEPTHSTENCIL = D3D_SVT_DEPTHSTENCIL, + D3D10_SVT_BLEND = D3D_SVT_BLEND, + D3D10_SVT_BUFFER = D3D_SVT_BUFFER, + D3D10_SVT_CBUFFER = D3D_SVT_CBUFFER, + D3D10_SVT_TBUFFER = D3D_SVT_TBUFFER, + D3D10_SVT_TEXTURE1DARRAY = D3D_SVT_TEXTURE1DARRAY, + D3D10_SVT_TEXTURE2DARRAY = D3D_SVT_TEXTURE2DARRAY, + D3D10_SVT_RENDERTARGETVIEW = D3D_SVT_RENDERTARGETVIEW, + D3D10_SVT_DEPTHSTENCILVIEW = D3D_SVT_DEPTHSTENCILVIEW, + + D3D10_SVT_TEXTURE2DMS = D3D_SVT_TEXTURE2DMS, + D3D10_SVT_TEXTURE2DMSARRAY = D3D_SVT_TEXTURE2DMSARRAY, + + D3D10_SVT_TEXTURECUBEARRAY = D3D_SVT_TEXTURECUBEARRAY, + + D3D11_SVT_HULLSHADER = D3D_SVT_HULLSHADER, + D3D11_SVT_DOMAINSHADER = D3D_SVT_DOMAINSHADER, + + D3D11_SVT_INTERFACE_POINTER = D3D_SVT_INTERFACE_POINTER, + D3D11_SVT_COMPUTESHADER = D3D_SVT_COMPUTESHADER, + + D3D11_SVT_DOUBLE = D3D_SVT_DOUBLE, + + D3D11_SVT_RWTEXTURE1D = D3D_SVT_RWTEXTURE1D, + D3D11_SVT_RWTEXTURE1DARRAY = D3D_SVT_RWTEXTURE1DARRAY, + D3D11_SVT_RWTEXTURE2D = D3D_SVT_RWTEXTURE2D, + D3D11_SVT_RWTEXTURE2DARRAY = D3D_SVT_RWTEXTURE2DARRAY, + D3D11_SVT_RWTEXTURE3D = D3D_SVT_RWTEXTURE3D, + D3D11_SVT_RWBUFFER = D3D_SVT_RWBUFFER, + + D3D11_SVT_BYTEADDRESS_BUFFER = D3D_SVT_BYTEADDRESS_BUFFER, + D3D11_SVT_RWBYTEADDRESS_BUFFER = D3D_SVT_RWBYTEADDRESS_BUFFER, + D3D11_SVT_STRUCTURED_BUFFER = D3D_SVT_STRUCTURED_BUFFER, + D3D11_SVT_RWSTRUCTURED_BUFFER = D3D_SVT_RWSTRUCTURED_BUFFER, + D3D11_SVT_APPEND_STRUCTURED_BUFFER = D3D_SVT_APPEND_STRUCTURED_BUFFER, + D3D11_SVT_CONSUME_STRUCTURED_BUFFER = D3D_SVT_CONSUME_STRUCTURED_BUFFER, + + // force 32-bit size enum + D3D_SVT_FORCE_DWORD = 0x7fffffff +} D3D_SHADER_VARIABLE_TYPE; + +typedef enum _D3D_SHADER_INPUT_FLAGS +{ + D3D_SIF_USERPACKED = 0x01, + D3D_SIF_COMPARISON_SAMPLER = 0x02, // is this a comparison sampler? + D3D_SIF_TEXTURE_COMPONENT_0 = 0x04, // this 2-bit value encodes c - 1, where c + D3D_SIF_TEXTURE_COMPONENT_1 = 0x08, // is the number of components in the texture + D3D_SIF_TEXTURE_COMPONENTS = 0x0c, + D3D_SIF_UNUSED = 0x10, + + D3D10_SIF_USERPACKED = D3D_SIF_USERPACKED, + D3D10_SIF_COMPARISON_SAMPLER = D3D_SIF_COMPARISON_SAMPLER, + D3D10_SIF_TEXTURE_COMPONENT_0 = D3D_SIF_TEXTURE_COMPONENT_0, + D3D10_SIF_TEXTURE_COMPONENT_1 = D3D_SIF_TEXTURE_COMPONENT_1, + D3D10_SIF_TEXTURE_COMPONENTS = D3D_SIF_TEXTURE_COMPONENTS, + + // force 32-bit size enum + D3D_SIF_FORCE_DWORD = 0x7fffffff +} D3D_SHADER_INPUT_FLAGS; + +typedef enum _D3D_SHADER_INPUT_TYPE +{ + D3D_SIT_CBUFFER, + D3D_SIT_TBUFFER, + D3D_SIT_TEXTURE, + D3D_SIT_SAMPLER, + D3D_SIT_UAV_RWTYPED, + D3D_SIT_STRUCTURED, + D3D_SIT_UAV_RWSTRUCTURED, + D3D_SIT_BYTEADDRESS, + D3D_SIT_UAV_RWBYTEADDRESS, + D3D_SIT_UAV_APPEND_STRUCTURED, + D3D_SIT_UAV_CONSUME_STRUCTURED, + D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER, + D3D_SIT_RTACCELERATIONSTRUCTURE, + D3D_SIT_UAV_FEEDBACKTEXTURE, + + D3D10_SIT_CBUFFER = D3D_SIT_CBUFFER, + D3D10_SIT_TBUFFER = D3D_SIT_TBUFFER, + D3D10_SIT_TEXTURE = D3D_SIT_TEXTURE, + D3D10_SIT_SAMPLER = D3D_SIT_SAMPLER, + + D3D11_SIT_UAV_RWTYPED = D3D_SIT_UAV_RWTYPED, + D3D11_SIT_STRUCTURED = D3D_SIT_STRUCTURED, + D3D11_SIT_UAV_RWSTRUCTURED = D3D_SIT_UAV_RWSTRUCTURED, + D3D11_SIT_BYTEADDRESS = D3D_SIT_BYTEADDRESS, + D3D11_SIT_UAV_RWBYTEADDRESS = D3D_SIT_UAV_RWBYTEADDRESS, + D3D11_SIT_UAV_APPEND_STRUCTURED = D3D_SIT_UAV_APPEND_STRUCTURED, + D3D11_SIT_UAV_CONSUME_STRUCTURED = D3D_SIT_UAV_CONSUME_STRUCTURED, + D3D11_SIT_UAV_RWSTRUCTURED_WITH_COUNTER = D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER, +} D3D_SHADER_INPUT_TYPE; + +typedef enum _D3D_SHADER_CBUFFER_FLAGS +{ + D3D_CBF_USERPACKED = 1, + + D3D10_CBF_USERPACKED = D3D_CBF_USERPACKED, + + // force 32-bit size enum + D3D_CBF_FORCE_DWORD = 0x7fffffff +} D3D_SHADER_CBUFFER_FLAGS; + +typedef enum _D3D_CBUFFER_TYPE +{ + D3D_CT_CBUFFER, + D3D_CT_TBUFFER, + D3D_CT_INTERFACE_POINTERS, + D3D_CT_RESOURCE_BIND_INFO, + + D3D10_CT_CBUFFER = D3D_CT_CBUFFER, + D3D10_CT_TBUFFER = D3D_CT_TBUFFER, + + D3D11_CT_CBUFFER = D3D_CT_CBUFFER, + D3D11_CT_TBUFFER = D3D_CT_TBUFFER, + D3D11_CT_INTERFACE_POINTERS = D3D_CT_INTERFACE_POINTERS, + D3D11_CT_RESOURCE_BIND_INFO = D3D_CT_RESOURCE_BIND_INFO, +} D3D_CBUFFER_TYPE; + +typedef enum D3D_NAME +{ + D3D_NAME_UNDEFINED = 0, + + // Names meaningful to both HLSL and hardware + D3D_NAME_POSITION = 1, + D3D_NAME_CLIP_DISTANCE = 2, + D3D_NAME_CULL_DISTANCE = 3, + D3D_NAME_RENDER_TARGET_ARRAY_INDEX = 4, + D3D_NAME_VIEWPORT_ARRAY_INDEX = 5, + D3D_NAME_VERTEX_ID = 6, + D3D_NAME_PRIMITIVE_ID = 7, + D3D_NAME_INSTANCE_ID = 8, + D3D_NAME_IS_FRONT_FACE = 9, + D3D_NAME_SAMPLE_INDEX = 10, + D3D_NAME_FINAL_QUAD_EDGE_TESSFACTOR = 11, + D3D_NAME_FINAL_QUAD_INSIDE_TESSFACTOR = 12, + D3D_NAME_FINAL_TRI_EDGE_TESSFACTOR = 13, + D3D_NAME_FINAL_TRI_INSIDE_TESSFACTOR = 14, + D3D_NAME_FINAL_LINE_DETAIL_TESSFACTOR = 15, + D3D_NAME_FINAL_LINE_DENSITY_TESSFACTOR = 16, + D3D_NAME_BARYCENTRICS = 23, + D3D_NAME_SHADINGRATE = 24, + D3D_NAME_CULLPRIMITIVE = 25, + + // Names meaningful to HLSL only + D3D_NAME_TARGET = 64, + D3D_NAME_DEPTH = 65, + D3D_NAME_COVERAGE = 66, + D3D_NAME_DEPTH_GREATER_EQUAL = 67, + D3D_NAME_DEPTH_LESS_EQUAL = 68, + D3D_NAME_STENCIL_REF = 69, + D3D_NAME_INNER_COVERAGE = 70, + + D3D10_NAME_UNDEFINED = D3D_NAME_UNDEFINED, + D3D10_NAME_POSITION = D3D_NAME_POSITION, + D3D10_NAME_CLIP_DISTANCE = D3D_NAME_CLIP_DISTANCE, + D3D10_NAME_CULL_DISTANCE = D3D_NAME_CULL_DISTANCE, + D3D10_NAME_RENDER_TARGET_ARRAY_INDEX = D3D_NAME_RENDER_TARGET_ARRAY_INDEX, + D3D10_NAME_VIEWPORT_ARRAY_INDEX = D3D_NAME_VIEWPORT_ARRAY_INDEX, + D3D10_NAME_VERTEX_ID = D3D_NAME_VERTEX_ID, + D3D10_NAME_PRIMITIVE_ID = D3D_NAME_PRIMITIVE_ID, + D3D10_NAME_INSTANCE_ID = D3D_NAME_INSTANCE_ID, + D3D10_NAME_IS_FRONT_FACE = D3D_NAME_IS_FRONT_FACE, + D3D10_NAME_SAMPLE_INDEX = D3D_NAME_SAMPLE_INDEX, + D3D10_NAME_TARGET = D3D_NAME_TARGET, + D3D10_NAME_DEPTH = D3D_NAME_DEPTH, + D3D10_NAME_COVERAGE = D3D_NAME_COVERAGE, + + D3D11_NAME_FINAL_QUAD_EDGE_TESSFACTOR = D3D_NAME_FINAL_QUAD_EDGE_TESSFACTOR, + D3D11_NAME_FINAL_QUAD_INSIDE_TESSFACTOR = D3D_NAME_FINAL_QUAD_INSIDE_TESSFACTOR, + D3D11_NAME_FINAL_TRI_EDGE_TESSFACTOR = D3D_NAME_FINAL_TRI_EDGE_TESSFACTOR, + D3D11_NAME_FINAL_TRI_INSIDE_TESSFACTOR = D3D_NAME_FINAL_TRI_INSIDE_TESSFACTOR, + D3D11_NAME_FINAL_LINE_DETAIL_TESSFACTOR = D3D_NAME_FINAL_LINE_DETAIL_TESSFACTOR, + D3D11_NAME_FINAL_LINE_DENSITY_TESSFACTOR = D3D_NAME_FINAL_LINE_DENSITY_TESSFACTOR, + D3D11_NAME_DEPTH_GREATER_EQUAL = D3D_NAME_DEPTH_GREATER_EQUAL, + D3D11_NAME_DEPTH_LESS_EQUAL = D3D_NAME_DEPTH_LESS_EQUAL, + + D3D11_NAME_STENCIL_REF = D3D_NAME_STENCIL_REF, + D3D11_NAME_INNER_COVERAGE = D3D_NAME_INNER_COVERAGE, + + D3D12_NAME_BARYCENTRICS = D3D_NAME_BARYCENTRICS, + D3D12_NAME_SHADINGRATE = D3D_NAME_SHADINGRATE, + D3D12_NAME_CULLPRIMITIVE = D3D_NAME_CULLPRIMITIVE, +} D3D_NAME; + +typedef enum D3D_RESOURCE_RETURN_TYPE +{ + D3D_RETURN_TYPE_UNORM = 1, + D3D_RETURN_TYPE_SNORM = 2, + D3D_RETURN_TYPE_SINT = 3, + D3D_RETURN_TYPE_UINT = 4, + D3D_RETURN_TYPE_FLOAT = 5, + D3D_RETURN_TYPE_MIXED = 6, + D3D_RETURN_TYPE_DOUBLE = 7, + D3D_RETURN_TYPE_CONTINUED = 8, + + D3D10_RETURN_TYPE_UNORM = D3D_RETURN_TYPE_UNORM, + D3D10_RETURN_TYPE_SNORM = D3D_RETURN_TYPE_SNORM, + D3D10_RETURN_TYPE_SINT = D3D_RETURN_TYPE_SINT, + D3D10_RETURN_TYPE_UINT = D3D_RETURN_TYPE_UINT, + D3D10_RETURN_TYPE_FLOAT = D3D_RETURN_TYPE_FLOAT, + D3D10_RETURN_TYPE_MIXED = D3D_RETURN_TYPE_MIXED, + + D3D11_RETURN_TYPE_UNORM = D3D_RETURN_TYPE_UNORM, + D3D11_RETURN_TYPE_SNORM = D3D_RETURN_TYPE_SNORM, + D3D11_RETURN_TYPE_SINT = D3D_RETURN_TYPE_SINT, + D3D11_RETURN_TYPE_UINT = D3D_RETURN_TYPE_UINT, + D3D11_RETURN_TYPE_FLOAT = D3D_RETURN_TYPE_FLOAT, + D3D11_RETURN_TYPE_MIXED = D3D_RETURN_TYPE_MIXED, + D3D11_RETURN_TYPE_DOUBLE = D3D_RETURN_TYPE_DOUBLE, + D3D11_RETURN_TYPE_CONTINUED = D3D_RETURN_TYPE_CONTINUED, +} D3D_RESOURCE_RETURN_TYPE; + +typedef enum D3D_REGISTER_COMPONENT_TYPE +{ + D3D_REGISTER_COMPONENT_UNKNOWN = 0, + D3D_REGISTER_COMPONENT_UINT32 = 1, + D3D_REGISTER_COMPONENT_SINT32 = 2, + D3D_REGISTER_COMPONENT_FLOAT32 = 3, + D3D_REGISTER_COMPONENT_UINT16 = 4, + D3D_REGISTER_COMPONENT_SINT16 = 5, + D3D_REGISTER_COMPONENT_FLOAT16 = 6, + D3D_REGISTER_COMPONENT_UINT64 = 7, + D3D_REGISTER_COMPONENT_SINT64 = 8, + D3D_REGISTER_COMPONENT_FLOAT64 = 9, + + D3D10_REGISTER_COMPONENT_UNKNOWN = D3D_REGISTER_COMPONENT_UNKNOWN, + D3D10_REGISTER_COMPONENT_UINT32 = D3D_REGISTER_COMPONENT_UINT32, + D3D10_REGISTER_COMPONENT_SINT32 = D3D_REGISTER_COMPONENT_SINT32, + D3D10_REGISTER_COMPONENT_FLOAT32 = D3D_REGISTER_COMPONENT_FLOAT32, + D3D10_REGISTER_COMPONENT_UINT16 = D3D_REGISTER_COMPONENT_UINT16, + D3D10_REGISTER_COMPONENT_SINT16 = D3D_REGISTER_COMPONENT_SINT16, + D3D10_REGISTER_COMPONENT_FLOAT16 = D3D_REGISTER_COMPONENT_FLOAT16, + D3D10_REGISTER_COMPONENT_UINT64 = D3D_REGISTER_COMPONENT_UINT64, + D3D10_REGISTER_COMPONENT_SINT64 = D3D_REGISTER_COMPONENT_SINT64, + D3D10_REGISTER_COMPONENT_FLOAT64 = D3D_REGISTER_COMPONENT_FLOAT64, +} D3D_REGISTER_COMPONENT_TYPE; + +typedef enum D3D_TESSELLATOR_DOMAIN +{ + D3D_TESSELLATOR_DOMAIN_UNDEFINED = 0, + D3D_TESSELLATOR_DOMAIN_ISOLINE = 1, + D3D_TESSELLATOR_DOMAIN_TRI = 2, + D3D_TESSELLATOR_DOMAIN_QUAD = 3, + + D3D11_TESSELLATOR_DOMAIN_UNDEFINED = D3D_TESSELLATOR_DOMAIN_UNDEFINED, + D3D11_TESSELLATOR_DOMAIN_ISOLINE = D3D_TESSELLATOR_DOMAIN_ISOLINE, + D3D11_TESSELLATOR_DOMAIN_TRI = D3D_TESSELLATOR_DOMAIN_TRI, + D3D11_TESSELLATOR_DOMAIN_QUAD = D3D_TESSELLATOR_DOMAIN_QUAD, +} D3D_TESSELLATOR_DOMAIN; + +typedef enum D3D_TESSELLATOR_PARTITIONING +{ + D3D_TESSELLATOR_PARTITIONING_UNDEFINED = 0, + D3D_TESSELLATOR_PARTITIONING_INTEGER = 1, + D3D_TESSELLATOR_PARTITIONING_POW2 = 2, + D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD = 3, + D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN = 4, + + D3D11_TESSELLATOR_PARTITIONING_UNDEFINED = D3D_TESSELLATOR_PARTITIONING_UNDEFINED, + D3D11_TESSELLATOR_PARTITIONING_INTEGER = D3D_TESSELLATOR_PARTITIONING_INTEGER, + D3D11_TESSELLATOR_PARTITIONING_POW2 = D3D_TESSELLATOR_PARTITIONING_POW2, + D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD = D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_ODD, + D3D11_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN = D3D_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN, +} D3D_TESSELLATOR_PARTITIONING; + +typedef enum D3D_TESSELLATOR_OUTPUT_PRIMITIVE +{ + D3D_TESSELLATOR_OUTPUT_UNDEFINED = 0, + D3D_TESSELLATOR_OUTPUT_POINT = 1, + D3D_TESSELLATOR_OUTPUT_LINE = 2, + D3D_TESSELLATOR_OUTPUT_TRIANGLE_CW = 3, + D3D_TESSELLATOR_OUTPUT_TRIANGLE_CCW = 4, + + D3D11_TESSELLATOR_OUTPUT_UNDEFINED = D3D_TESSELLATOR_OUTPUT_UNDEFINED, + D3D11_TESSELLATOR_OUTPUT_POINT = D3D_TESSELLATOR_OUTPUT_POINT, + D3D11_TESSELLATOR_OUTPUT_LINE = D3D_TESSELLATOR_OUTPUT_LINE, + D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CW = D3D_TESSELLATOR_OUTPUT_TRIANGLE_CW, + D3D11_TESSELLATOR_OUTPUT_TRIANGLE_CCW = D3D_TESSELLATOR_OUTPUT_TRIANGLE_CCW, +} D3D_TESSELLATOR_OUTPUT_PRIMITIVE; + +typedef enum D3D_MIN_PRECISION +{ + D3D_MIN_PRECISION_DEFAULT = 0, // Default precision for the shader model + D3D_MIN_PRECISION_FLOAT_16 = 1, // Min 16 bit/component float + D3D_MIN_PRECISION_FLOAT_2_8 = 2, // Min 10(2.8)bit/comp. float + D3D_MIN_PRECISION_RESERVED = 3, // Reserved for future use + D3D_MIN_PRECISION_SINT_16 = 4, // Min 16 bit/comp. signed integer + D3D_MIN_PRECISION_UINT_16 = 5, // Min 16 bit/comp. unsigned integer + + // These values are abstractions of width only for use in situations + // where a general width is needed instead of specific types. They + // will never be used in shader operands. + D3D_MIN_PRECISION_ANY_16 = 0xf0, + D3D_MIN_PRECISION_ANY_10 = 0xf1, +} D3D_MIN_PRECISION; + +typedef enum D3D_INTERPOLATION_MODE +{ + D3D_INTERPOLATION_UNDEFINED = 0, + D3D_INTERPOLATION_CONSTANT = 1, + D3D_INTERPOLATION_LINEAR = 2, + D3D_INTERPOLATION_LINEAR_CENTROID = 3, + D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE = 4, + D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE_CENTROID = 5, + D3D_INTERPOLATION_LINEAR_SAMPLE = 6, + D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE_SAMPLE = 7, +} D3D_INTERPOLATION_MODE; + +// Parameter flags. +typedef enum _D3D_PARAMETER_FLAGS +{ + D3D_PF_NONE = 0x00000000, + D3D_PF_IN = 0x00000001, + D3D_PF_OUT = 0x00000002, + D3D_PF_FORCE_DWORD = 0x7fffffff +} D3D_PARAMETER_FLAGS; + +// Format Layout Properties +typedef enum D3D_FORMAT_LAYOUT +{ + D3DFL_STANDARD = 0, // standard layout + D3DFL_CUSTOM = -1 // custom layout + // Note, 1 bit allocated for this in FORMAT_DETAIL below. If you add fields here, add bits... + // NOTE SIGNED VALUES ARE USED SINCE COMPILER MAKES ENUMS SIGNED, AND BITFIELDS ARE SIGN EXTENDED ON READ +} D3D_FORMAT_LAYOUT; + +typedef enum D3D_FORMAT_TYPE_LEVEL +{ + D3DFTL_NO_TYPE = 0, + D3DFTL_PARTIAL_TYPE = -2, + D3DFTL_FULL_TYPE = -1, + // Note, 2 bits allocated for this in FORMAT_DETAIL below. If you add fields here, add bits... + // NOTE SIGNED VALUES ARE USED SINCE COMPILER MAKES ENUMS SIGNED, AND BITFIELDS ARE SIGN EXTENDED ON READ +} D3D_FORMAT_TYPE_LEVEL; + +typedef enum D3D_FORMAT_COMPONENT_NAME +{ + D3DFCN_R = -4, + D3DFCN_G = -3, + D3DFCN_B = -2, + D3DFCN_A = -1, + D3DFCN_D = 0, + D3DFCN_S = 1, + D3DFCN_X = 2, + // Note, 3 bits allocated for this in FORMAT_DETAIL below. If you add fields here, add bits... + // NOTE SIGNED VALUES ARE USED SINCE COMPILER MAKES ENUMS SIGNED, AND BITFIELDS ARE SIGN EXTENDED ON READ +} D3D_FORMAT_COMPONENT_NAME; + +typedef enum D3D_FORMAT_COMPONENT_INTERPRETATION +{ + D3DFCI_TYPELESS = 0, + D3DFCI_FLOAT = -4, + D3DFCI_SNORM = -3, + D3DFCI_UNORM = -2, + D3DFCI_SINT = -1, + D3DFCI_UINT = 1, + D3DFCI_UNORM_SRGB = 2, + D3DFCI_BIASED_FIXED_2_8 = 3, + // Note, 3 bits allocated for this in FORMAT_DETAIL below. If you add fields here, add bits... + // NOTE SIGNED VALUES ARE USED SINCE COMPILER MAKES ENUMS SIGNED, AND BITFIELDS ARE SIGN EXTENDED ON READ +} D3D_FORMAT_COMPONENT_INTERPRETATION; + +// Well-Known Private Data IDs (WKPDID_*): + +// WKPDID_D3DDebugObjectName provides a unique name to objects in order to assist the developer during debugging. +// +// const char c_szName[] = "texture.jpg"; +// pObject->SetPrivateData( WKPDID_D3DDebugObjectName, sizeof( c_szName ) - 1, c_szName ); +cpp_quote("DEFINE_GUID(WKPDID_D3DDebugObjectName,0x429b8c22,0x9188,0x4b0c,0x87,0x42,0xac,0xb0,0xbf,0x85,0xc2,0x00);") +cpp_quote("DEFINE_GUID(WKPDID_D3DDebugObjectNameW,0x4cca5fd8,0x921f,0x42c8,0x85,0x66,0x70,0xca,0xf2,0xa9,0xb7,0x41);") +cpp_quote("DEFINE_GUID(WKPDID_CommentStringW,0xd0149dc0,0x90e8,0x4ec8,0x81, 0x44, 0xe9, 0x00, 0xad, 0x26, 0x6b, 0xb2);") +cpp_quote("DEFINE_GUID(WKPDID_D3D12UniqueObjectId, 0x1b39de15, 0xec04, 0x4bae, 0xba, 0x4d, 0x8c, 0xef, 0x79, 0xfc, 0x04, 0xc1);") + +cpp_quote("#define D3D_SET_OBJECT_NAME_N_A(pObject, Chars, pName) (pObject)->SetPrivateData(WKPDID_D3DDebugObjectName, Chars, pName)") +cpp_quote("#define D3D_SET_OBJECT_NAME_A(pObject, pName) D3D_SET_OBJECT_NAME_N_A(pObject, lstrlenA(pName), pName)") +cpp_quote("#define D3D_SET_OBJECT_NAME_N_W(pObject, Chars, pName) (pObject)->SetPrivateData(WKPDID_D3DDebugObjectNameW, Chars*2, pName)") +cpp_quote("#define D3D_SET_OBJECT_NAME_W(pObject, pName) D3D_SET_OBJECT_NAME_N_W(pObject, wcslen(pName), pName)") + +cpp_quote("#define D3D_COMPONENT_MASK_X 1") +cpp_quote("#define D3D_COMPONENT_MASK_Y 2") +cpp_quote("#define D3D_COMPONENT_MASK_Z 4") +cpp_quote("#define D3D_COMPONENT_MASK_W 8") + +cpp_quote("DEFINE_GUID(D3D_TEXTURE_LAYOUT_ROW_MAJOR,0xb5dc234f,0x72bb,0x4bec,0x97,0x05,0x8c,0xf2,0x58,0xdf,0x6b,0x6c);") // Feature_D3D1XDisplayable +cpp_quote("DEFINE_GUID(D3D_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE,0x4c0f29e3,0x3f5f,0x4d35,0x84,0xc9,0xbc,0x09,0x83,0xb6,0x2c,0x28);") // Feature_D3D1XDisplayable + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcompiler.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcompiler.h new file mode 100644 index 0000000000000000000000000000000000000000..8aaaa2f55f72fcbdcc701166c536c5be9101af4e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcompiler.h @@ -0,0 +1,582 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: D3DCompiler.h +// Content: D3D Compilation Types and APIs +// +////////////////////////////////////////////////////////////////////////////// + +#ifndef __D3DCOMPILER_H__ +#define __D3DCOMPILER_H__ + +#include + +// Current name of the DLL shipped in the same SDK as this header. +#define D3DCOMPILER_DLL_W L"d3dcompiler_47.dll" +#define D3DCOMPILER_DLL_A "d3dcompiler_47.dll" + +// Current HLSL compiler version. +#define D3D_COMPILER_VERSION 47 + +#ifdef UNICODE + #define D3DCOMPILER_DLL D3DCOMPILER_DLL_W +#else + #define D3DCOMPILER_DLL D3DCOMPILER_DLL_A +#endif + +#include "d3d11shader.h" +#include "d3d12shader.h" + +////////////////////////////////////////////////////////////////////////////// +// APIs ////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) + +//---------------------------------------------------------------------------- +// D3DReadFileToBlob: +// ----------------- +// Simple helper routine to read a file on disk into memory +// for passing to other routines in this API. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DReadFileToBlob(_In_ LPCWSTR pFileName, + _Out_ ID3DBlob** ppContents); + +//---------------------------------------------------------------------------- +// D3DWriteBlobToFile: +// ------------------ +// Simple helper routine to write a memory blob to a file on disk. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DWriteBlobToFile(_In_ ID3DBlob* pBlob, + _In_ LPCWSTR pFileName, + _In_ BOOL bOverwrite); + +//---------------------------------------------------------------------------- +// D3DCOMPILE flags: +// ----------------- +// D3DCOMPILE_DEBUG +// Insert debug file/line/type/symbol information. +// +// D3DCOMPILE_SKIP_VALIDATION +// Do not validate the generated code against known capabilities and +// constraints. This option is only recommended when compiling shaders +// you KNOW will work. (ie. have compiled before without this option.) +// Shaders are always validated by D3D before they are set to the device. +// +// D3DCOMPILE_SKIP_OPTIMIZATION +// Instructs the compiler to skip optimization steps during code generation. +// Unless you are trying to isolate a problem in your code using this option +// is not recommended. +// +// D3DCOMPILE_PACK_MATRIX_ROW_MAJOR +// Unless explicitly specified, matrices will be packed in row-major order +// on input and output from the shader. +// +// D3DCOMPILE_PACK_MATRIX_COLUMN_MAJOR +// Unless explicitly specified, matrices will be packed in column-major +// order on input and output from the shader. This is generally more +// efficient, since it allows vector-matrix multiplication to be performed +// using a series of dot-products. +// +// D3DCOMPILE_PARTIAL_PRECISION +// Force all computations in resulting shader to occur at partial precision. +// This may result in faster evaluation of shaders on some hardware. +// +// D3DCOMPILE_FORCE_VS_SOFTWARE_NO_OPT +// Force compiler to compile against the next highest available software +// target for vertex shaders. This flag also turns optimizations off, +// and debugging on. +// +// D3DCOMPILE_FORCE_PS_SOFTWARE_NO_OPT +// Force compiler to compile against the next highest available software +// target for pixel shaders. This flag also turns optimizations off, +// and debugging on. +// +// D3DCOMPILE_NO_PRESHADER +// Disables Preshaders. Using this flag will cause the compiler to not +// pull out static expression for evaluation on the host cpu +// +// D3DCOMPILE_AVOID_FLOW_CONTROL +// Hint compiler to avoid flow-control constructs where possible. +// +// D3DCOMPILE_PREFER_FLOW_CONTROL +// Hint compiler to prefer flow-control constructs where possible. +// +// D3DCOMPILE_ENABLE_STRICTNESS +// By default, the HLSL/Effect compilers are not strict on deprecated syntax. +// Specifying this flag enables the strict mode. Deprecated syntax may be +// removed in a future release, and enabling syntax is a good way to make +// sure your shaders comply to the latest spec. +// +// D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY +// This enables older shaders to compile to 4_0 targets. +// +// D3DCOMPILE_DEBUG_NAME_FOR_SOURCE +// This enables a debug name to be generated based on source information. +// It requires D3DCOMPILE_DEBUG to be set, and is exclusive with +// D3DCOMPILE_DEBUG_NAME_FOR_BINARY. +// +// D3DCOMPILE_DEBUG_NAME_FOR_BINARY +// This enables a debug name to be generated based on compiled information. +// It requires D3DCOMPILE_DEBUG to be set, and is exclusive with +// D3DCOMPILE_DEBUG_NAME_FOR_SOURCE. +// +//---------------------------------------------------------------------------- + +#define D3DCOMPILE_DEBUG (1 << 0) +#define D3DCOMPILE_SKIP_VALIDATION (1 << 1) +#define D3DCOMPILE_SKIP_OPTIMIZATION (1 << 2) +#define D3DCOMPILE_PACK_MATRIX_ROW_MAJOR (1 << 3) +#define D3DCOMPILE_PACK_MATRIX_COLUMN_MAJOR (1 << 4) +#define D3DCOMPILE_PARTIAL_PRECISION (1 << 5) +#define D3DCOMPILE_FORCE_VS_SOFTWARE_NO_OPT (1 << 6) +#define D3DCOMPILE_FORCE_PS_SOFTWARE_NO_OPT (1 << 7) +#define D3DCOMPILE_NO_PRESHADER (1 << 8) +#define D3DCOMPILE_AVOID_FLOW_CONTROL (1 << 9) +#define D3DCOMPILE_PREFER_FLOW_CONTROL (1 << 10) +#define D3DCOMPILE_ENABLE_STRICTNESS (1 << 11) +#define D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY (1 << 12) +#define D3DCOMPILE_IEEE_STRICTNESS (1 << 13) +#define D3DCOMPILE_OPTIMIZATION_LEVEL0 (1 << 14) +#define D3DCOMPILE_OPTIMIZATION_LEVEL1 0 +#define D3DCOMPILE_OPTIMIZATION_LEVEL2 ((1 << 14) | (1 << 15)) +#define D3DCOMPILE_OPTIMIZATION_LEVEL3 (1 << 15) +#define D3DCOMPILE_RESERVED16 (1 << 16) +#define D3DCOMPILE_RESERVED17 (1 << 17) +#define D3DCOMPILE_WARNINGS_ARE_ERRORS (1 << 18) +#define D3DCOMPILE_RESOURCES_MAY_ALIAS (1 << 19) +#define D3DCOMPILE_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES (1 << 20) +#define D3DCOMPILE_ALL_RESOURCES_BOUND (1 << 21) +#define D3DCOMPILE_DEBUG_NAME_FOR_SOURCE (1 << 22) +#define D3DCOMPILE_DEBUG_NAME_FOR_BINARY (1 << 23) + +//---------------------------------------------------------------------------- +// D3DCOMPILE_EFFECT flags: +// ------------------------------------- +// These flags are passed in when creating an effect, and affect +// either compilation behavior or runtime effect behavior +// +// D3DCOMPILE_EFFECT_CHILD_EFFECT +// Compile this .fx file to a child effect. Child effects have no +// initializers for any shared values as these are initialied in the +// master effect (pool). +// +// D3DCOMPILE_EFFECT_ALLOW_SLOW_OPS +// By default, performance mode is enabled. Performance mode +// disallows mutable state objects by preventing non-literal +// expressions from appearing in state object definitions. +// Specifying this flag will disable the mode and allow for mutable +// state objects. +// +//---------------------------------------------------------------------------- + +#define D3DCOMPILE_EFFECT_CHILD_EFFECT (1 << 0) +#define D3DCOMPILE_EFFECT_ALLOW_SLOW_OPS (1 << 1) + +//---------------------------------------------------------------------------- +// D3DCOMPILE Flags2: +// ----------------- +// Root signature flags. (passed in Flags2) +#define D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST 0 +#define D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_1_0 (1 << 4) +#define D3DCOMPILE_FLAGS2_FORCE_ROOT_SIGNATURE_1_1 (1 << 5) + +//---------------------------------------------------------------------------- +// D3DCompile: +// ---------- +// Compile source text into bytecode appropriate for the given target. +//---------------------------------------------------------------------------- + +// D3D_COMPILE_STANDARD_FILE_INCLUDE can be passed for pInclude in any +// API and indicates that a simple default include handler should be +// used. The include handler will include files relative to the +// current directory and files relative to the directory of the initial source +// file. When used with APIs like D3DCompile pSourceName must be a +// file name and the initial relative directory will be derived from it. +#define D3D_COMPILE_STANDARD_FILE_INCLUDE ((ID3DInclude*)(UINT_PTR)1) + +HRESULT WINAPI +D3DCompile(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_opt_ LPCSTR pSourceName, + _In_reads_opt_(_Inexpressible_(pDefines->Name != NULL)) CONST D3D_SHADER_MACRO* pDefines, + _In_opt_ ID3DInclude* pInclude, + _In_opt_ LPCSTR pEntrypoint, + _In_ LPCSTR pTarget, + _In_ UINT Flags1, + _In_ UINT Flags2, + _Out_ ID3DBlob** ppCode, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorMsgs); + +typedef HRESULT (WINAPI *pD3DCompile) + (LPCVOID pSrcData, + SIZE_T SrcDataSize, + LPCSTR pFileName, + CONST D3D_SHADER_MACRO* pDefines, + ID3DInclude* pInclude, + LPCSTR pEntrypoint, + LPCSTR pTarget, + UINT Flags1, + UINT Flags2, + ID3DBlob** ppCode, + ID3DBlob** ppErrorMsgs); + +#define D3DCOMPILE_SECDATA_MERGE_UAV_SLOTS 0x00000001 +#define D3DCOMPILE_SECDATA_PRESERVE_TEMPLATE_SLOTS 0x00000002 +#define D3DCOMPILE_SECDATA_REQUIRE_TEMPLATE_MATCH 0x00000004 + +HRESULT WINAPI +D3DCompile2(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_opt_ LPCSTR pSourceName, + _In_reads_opt_(_Inexpressible_(pDefines->Name != NULL)) CONST D3D_SHADER_MACRO* pDefines, + _In_opt_ ID3DInclude* pInclude, + _In_ LPCSTR pEntrypoint, + _In_ LPCSTR pTarget, + _In_ UINT Flags1, + _In_ UINT Flags2, + _In_ UINT SecondaryDataFlags, + _In_reads_bytes_opt_(SecondaryDataSize) LPCVOID pSecondaryData, + _In_ SIZE_T SecondaryDataSize, + _Out_ ID3DBlob** ppCode, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorMsgs); + +HRESULT WINAPI +D3DCompileFromFile(_In_ LPCWSTR pFileName, + _In_reads_opt_(_Inexpressible_(pDefines->Name != NULL)) CONST D3D_SHADER_MACRO* pDefines, + _In_opt_ ID3DInclude* pInclude, + _In_ LPCSTR pEntrypoint, + _In_ LPCSTR pTarget, + _In_ UINT Flags1, + _In_ UINT Flags2, + _Out_ ID3DBlob** ppCode, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorMsgs); + +//---------------------------------------------------------------------------- +// D3DPreprocess: +// ------------- +// Process source text with the compiler's preprocessor and return +// the resulting text. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DPreprocess(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_opt_ LPCSTR pSourceName, + _In_opt_ CONST D3D_SHADER_MACRO* pDefines, + _In_opt_ ID3DInclude* pInclude, + _Out_ ID3DBlob** ppCodeText, + _Always_(_Outptr_opt_result_maybenull_) ID3DBlob** ppErrorMsgs); + +typedef HRESULT (WINAPI *pD3DPreprocess) + (LPCVOID pSrcData, + SIZE_T SrcDataSize, + LPCSTR pFileName, + CONST D3D_SHADER_MACRO* pDefines, + ID3DInclude* pInclude, + ID3DBlob** ppCodeText, + ID3DBlob** ppErrorMsgs); + +//---------------------------------------------------------------------------- +// D3DGetDebugInfo: +// ----------------------- +// Gets shader debug info. Debug info is generated by D3DCompile and is +// embedded in the body of the shader. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DGetDebugInfo(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _Out_ ID3DBlob** ppDebugInfo); + +//---------------------------------------------------------------------------- +// D3DReflect: +// ---------- +// Shader code contains metadata that can be inspected via the +// reflection APIs. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DReflect(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_ REFIID pInterface, + _Out_ void** ppReflector); + +//---------------------------------------------------------------------------- +// D3DReflectLibrary: +// ---------- +// Library code contains metadata that can be inspected via the library +// reflection APIs. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DReflectLibrary(__in_bcount(SrcDataSize) LPCVOID pSrcData, + __in SIZE_T SrcDataSize, + __in REFIID riid, + __out LPVOID * ppReflector); + +//---------------------------------------------------------------------------- +// D3DDisassemble: +// ---------------------- +// Takes a binary shader and returns a buffer containing text assembly. +//---------------------------------------------------------------------------- + +#define D3D_DISASM_ENABLE_COLOR_CODE 0x00000001 +#define D3D_DISASM_ENABLE_DEFAULT_VALUE_PRINTS 0x00000002 +#define D3D_DISASM_ENABLE_INSTRUCTION_NUMBERING 0x00000004 +#define D3D_DISASM_ENABLE_INSTRUCTION_CYCLE 0x00000008 +#define D3D_DISASM_DISABLE_DEBUG_INFO 0x00000010 +#define D3D_DISASM_ENABLE_INSTRUCTION_OFFSET 0x00000020 +#define D3D_DISASM_INSTRUCTION_ONLY 0x00000040 +#define D3D_DISASM_PRINT_HEX_LITERALS 0x00000080 + +HRESULT WINAPI +D3DDisassemble(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_ UINT Flags, + _In_opt_ LPCSTR szComments, + _Out_ ID3DBlob** ppDisassembly); + +typedef HRESULT (WINAPI *pD3DDisassemble) + (_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_ UINT Flags, + _In_opt_ LPCSTR szComments, + _Out_ ID3DBlob** ppDisassembly); + +HRESULT WINAPI +D3DDisassembleRegion(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_ UINT Flags, + _In_opt_ LPCSTR szComments, + _In_ SIZE_T StartByteOffset, + _In_ SIZE_T NumInsts, + _Out_opt_ SIZE_T* pFinishByteOffset, + _Out_ ID3DBlob** ppDisassembly); + +//---------------------------------------------------------------------------- +// Shader linking and Function Linking Graph (FLG) APIs +//---------------------------------------------------------------------------- +HRESULT WINAPI +D3DCreateLinker(__out interface ID3D11Linker ** ppLinker); + +HRESULT WINAPI +D3DLoadModule(_In_ LPCVOID pSrcData, + _In_ SIZE_T cbSrcDataSize, + _Out_ interface ID3D11Module ** ppModule); + +HRESULT WINAPI +D3DCreateFunctionLinkingGraph(_In_ UINT uFlags, + _Out_ interface ID3D11FunctionLinkingGraph ** ppFunctionLinkingGraph); + +//---------------------------------------------------------------------------- +// D3DGetTraceInstructionOffsets: +// ----------------------- +// Determines byte offsets for instructions within a shader blob. +// This information is useful for going between trace instruction +// indices and byte offsets that are used in debug information. +//---------------------------------------------------------------------------- + +#define D3D_GET_INST_OFFSETS_INCLUDE_NON_EXECUTABLE 0x00000001 + +HRESULT WINAPI +D3DGetTraceInstructionOffsets(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_ UINT Flags, + _In_ SIZE_T StartInstIndex, + _In_ SIZE_T NumInsts, + _Out_writes_to_opt_(NumInsts, min(NumInsts, *pTotalInsts)) SIZE_T* pOffsets, + _Out_opt_ SIZE_T* pTotalInsts); + +//---------------------------------------------------------------------------- +// D3DGetInputSignatureBlob: +// ----------------------- +// Retrieve the input signature from a compilation result. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DGetInputSignatureBlob(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _Out_ ID3DBlob** ppSignatureBlob); + +//---------------------------------------------------------------------------- +// D3DGetOutputSignatureBlob: +// ----------------------- +// Retrieve the output signature from a compilation result. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DGetOutputSignatureBlob(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _Out_ ID3DBlob** ppSignatureBlob); + +//---------------------------------------------------------------------------- +// D3DGetInputAndOutputSignatureBlob: +// ----------------------- +// Retrieve the input and output signatures from a compilation result. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DGetInputAndOutputSignatureBlob(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _Out_ ID3DBlob** ppSignatureBlob); + +//---------------------------------------------------------------------------- +// D3DStripShader: +// ----------------------- +// Removes unwanted blobs from a compilation result +//---------------------------------------------------------------------------- + +typedef enum D3DCOMPILER_STRIP_FLAGS +{ + D3DCOMPILER_STRIP_REFLECTION_DATA = 0x00000001, + D3DCOMPILER_STRIP_DEBUG_INFO = 0x00000002, + D3DCOMPILER_STRIP_TEST_BLOBS = 0x00000004, + D3DCOMPILER_STRIP_PRIVATE_DATA = 0x00000008, + D3DCOMPILER_STRIP_ROOT_SIGNATURE = 0x00000010, + D3DCOMPILER_STRIP_FORCE_DWORD = 0x7fffffff, +} D3DCOMPILER_STRIP_FLAGS; + +HRESULT WINAPI +D3DStripShader(_In_reads_bytes_(BytecodeLength) LPCVOID pShaderBytecode, + _In_ SIZE_T BytecodeLength, + _In_ UINT uStripFlags, + _Out_ ID3DBlob** ppStrippedBlob); + +//---------------------------------------------------------------------------- +// D3DGetBlobPart: +// ----------------------- +// Extracts information from a compilation result. +//---------------------------------------------------------------------------- + +typedef enum D3D_BLOB_PART +{ + D3D_BLOB_INPUT_SIGNATURE_BLOB, + D3D_BLOB_OUTPUT_SIGNATURE_BLOB, + D3D_BLOB_INPUT_AND_OUTPUT_SIGNATURE_BLOB, + D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB, + D3D_BLOB_ALL_SIGNATURE_BLOB, + D3D_BLOB_DEBUG_INFO, + D3D_BLOB_LEGACY_SHADER, + D3D_BLOB_XNA_PREPASS_SHADER, + D3D_BLOB_XNA_SHADER, + D3D_BLOB_PDB, + D3D_BLOB_PRIVATE_DATA, + D3D_BLOB_ROOT_SIGNATURE, + D3D_BLOB_DEBUG_NAME, + + // Test parts are only produced by special compiler versions and so + // are usually not present in shaders. + D3D_BLOB_TEST_ALTERNATE_SHADER = 0x8000, + D3D_BLOB_TEST_COMPILE_DETAILS, + D3D_BLOB_TEST_COMPILE_PERF, + D3D_BLOB_TEST_COMPILE_REPORT, +} D3D_BLOB_PART; + +HRESULT WINAPI +D3DGetBlobPart(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_ D3D_BLOB_PART Part, + _In_ UINT Flags, + _Out_ ID3DBlob** ppPart); + +//---------------------------------------------------------------------------- +// D3DSetBlobPart: +// ----------------------- +// Update information in a compilation result. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DSetBlobPart(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_ D3D_BLOB_PART Part, + _In_ UINT Flags, + _In_reads_bytes_(PartSize) LPCVOID pPart, + _In_ SIZE_T PartSize, + _Out_ ID3DBlob** ppNewShader); + +//---------------------------------------------------------------------------- +// D3DCreateBlob: +// ----------------------- +// Create an ID3DBlob instance. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DCreateBlob(_In_ SIZE_T Size, + _Out_ ID3DBlob** ppBlob); + +//---------------------------------------------------------------------------- +// D3DCompressShaders: +// ----------------------- +// Compresses a set of shaders into a more compact form. +//---------------------------------------------------------------------------- + +typedef struct _D3D_SHADER_DATA +{ + LPCVOID pBytecode; + SIZE_T BytecodeLength; +} D3D_SHADER_DATA; + +#define D3D_COMPRESS_SHADER_KEEP_ALL_PARTS 0x00000001 + +HRESULT WINAPI +D3DCompressShaders(_In_ UINT uNumShaders, + _In_reads_(uNumShaders) D3D_SHADER_DATA* pShaderData, + _In_ UINT uFlags, + _Out_ ID3DBlob** ppCompressedData); + +//---------------------------------------------------------------------------- +// D3DDecompressShaders: +// ----------------------- +// Decompresses one or more shaders from a compressed set. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DDecompressShaders(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _In_ UINT uNumShaders, + _In_ UINT uStartIndex, + _In_reads_opt_(uNumShaders) UINT* pIndices, + _In_ UINT uFlags, + _Out_writes_(uNumShaders) ID3DBlob** ppShaders, + _Out_opt_ UINT* pTotalShaders); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +//---------------------------------------------------------------------------- +// D3DDisassemble10Effect: +// ----------------------- +// Takes a D3D10 effect interface and returns a +// buffer containing text assembly. +//---------------------------------------------------------------------------- + +HRESULT WINAPI +D3DDisassemble10Effect(_In_ interface ID3D10Effect *pEffect, + _In_ UINT Flags, + _Out_ ID3DBlob** ppDisassembly); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif // #ifndef __D3DCOMPILER_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcompiler.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcompiler.inl new file mode 100644 index 0000000000000000000000000000000000000000..da7c87a032d5c8fe8fc66634982728b63897a8bc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcompiler.inl @@ -0,0 +1,41 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: D3DCompiler.inl +// Content: D3D Compilation Inline Functions +// +////////////////////////////////////////////////////////////////////////////// + +#ifndef __D3DCOMPILER_INL__ +#define __D3DCOMPILER_INL__ + +#include "d3dcompiler.h" + +////////////////////////////////////////////////////////////////////////////// +// APIs ////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +//---------------------------------------------------------------------------- +// Wrappers to retrieve specific reflection interfaces. +//---------------------------------------------------------------------------- + +FORCEINLINE HRESULT +D3D12Reflect(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _Out_ ID3D11ShaderReflection** ppReflector) +{ + return D3DReflect(pSrcData, SrcDataSize, + IID_ID3D12ShaderReflection, (void**)ppReflector); +} + +FORCEINLINE HRESULT +D3D12ReflectLibrary(_In_reads_bytes_(SrcDataSize) LPCVOID pSrcData, + _In_ SIZE_T SrcDataSize, + _Out_ ID3D12LibraryReflection ** ppReflector) +{ + return D3DReflectLibrary(pSrcData, SrcDataSize, + IID_ID3D12LibraryReflection, (void**)ppReflector); +} + +#endif // #ifndef __D3DCOMPILER_INL__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcsx.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcsx.h new file mode 100644 index 0000000000000000000000000000000000000000..77e46aafcb85f56f0eab51c22c7a6a70b0054076 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dcsx.h @@ -0,0 +1,416 @@ + +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: D3DX11GPGPU.h +// Content: D3DX11 General Purpose GPU computing algorithms +// +////////////////////////////////////////////////////////////////////////////// + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include "d3d11.h" + +#ifndef __D3DX11GPGPU_H__ +#define __D3DX11GPGPU_H__ + +// Current name of the DLL shipped in the same SDK as this header. + + +#define D3DCSX_DLL_W L"d3dcsx_47.dll" +#define D3DCSX_DLL_A "d3dcsx_47.dll" + +#ifdef UNICODE + #define D3DCSX_DLL D3DCSX_DLL_W +#else + #define D3DCSX_DLL D3DCSX_DLL_A +#endif + + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + + + + + + +////////////////////////////////////////////////////////////////////////////// + +typedef enum D3DX11_SCAN_DATA_TYPE +{ + D3DX11_SCAN_DATA_TYPE_FLOAT = 1, + D3DX11_SCAN_DATA_TYPE_INT, + D3DX11_SCAN_DATA_TYPE_UINT, +} D3DX11_SCAN_DATA_TYPE; + +typedef enum D3DX11_SCAN_OPCODE +{ + D3DX11_SCAN_OPCODE_ADD = 1, + D3DX11_SCAN_OPCODE_MIN, + D3DX11_SCAN_OPCODE_MAX, + D3DX11_SCAN_OPCODE_MUL, + D3DX11_SCAN_OPCODE_AND, + D3DX11_SCAN_OPCODE_OR, + D3DX11_SCAN_OPCODE_XOR, +} D3DX11_SCAN_OPCODE; + +typedef enum D3DX11_SCAN_DIRECTION +{ + D3DX11_SCAN_DIRECTION_FORWARD = 1, + D3DX11_SCAN_DIRECTION_BACKWARD, +} D3DX11_SCAN_DIRECTION; + + +////////////////////////////////////////////////////////////////////////////// +// ID3DX11Scan: +////////////////////////////////////////////////////////////////////////////// + +// {5089b68f-e71d-4d38-be8e-f363b95a9405} +DEFINE_GUID(IID_ID3DX11Scan, 0x5089b68f, 0xe71d, 0x4d38, 0xbe, 0x8e, 0xf3, 0x63, 0xb9, 0x5a, 0x94, 0x05); + +#undef INTERFACE +#define INTERFACE ID3DX11Scan + +DECLARE_INTERFACE_(ID3DX11Scan, IUnknown) +{ + // IUnknown + STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // ID3DX11Scan + + STDMETHOD(SetScanDirection)(THIS_ D3DX11_SCAN_DIRECTION Direction) PURE; + + //============================================================================= + // Performs an unsegmented scan of a sequence in-place or out-of-place + // ElementType element type + // OpCode binary operation + // Direction scan direction + // ElementScanSize size of scan, in elements + // pSrc input sequence on the device. pSrc==pDst for in-place scans + // pDst output sequence on the device + //============================================================================= + STDMETHOD(Scan)( THIS_ + D3DX11_SCAN_DATA_TYPE ElementType, + D3DX11_SCAN_OPCODE OpCode, + UINT ElementScanSize, + _In_ ID3D11UnorderedAccessView* pSrc, + _In_ ID3D11UnorderedAccessView* pDst + ) PURE; + + //============================================================================= + // Performs a multiscan of a sequence in-place or out-of-place + // ElementType element type + // OpCode binary operation + // Direction scan direction + // ElementScanSize size of scan, in elements + // ElementScanPitch pitch of the next scan, in elements + // ScanCount number of scans in a multiscan + // pSrc input sequence on the device. pSrc==pDst for in-place scans + // pDst output sequence on the device + //============================================================================= + STDMETHOD(Multiscan)( THIS_ + D3DX11_SCAN_DATA_TYPE ElementType, + D3DX11_SCAN_OPCODE OpCode, + UINT ElementScanSize, + UINT ElementScanPitch, + UINT ScanCount, + _In_ ID3D11UnorderedAccessView* pSrc, + _In_ ID3D11UnorderedAccessView* pDst + ) PURE; +}; + + +//============================================================================= +// Creates a scan context +// pDevice the device context +// MaxElementScanSize maximum single scan size, in elements (FLOAT, UINT, or INT) +// MaxScanCount maximum number of scans in multiscan +// ppScanContext new scan context +//============================================================================= +HRESULT WINAPI D3DX11CreateScan( + _In_ ID3D11DeviceContext* pDeviceContext, + UINT MaxElementScanSize, + UINT MaxScanCount, + _Out_ ID3DX11Scan** ppScan ); + + + +////////////////////////////////////////////////////////////////////////////// +// ID3DX11SegmentedScan: +////////////////////////////////////////////////////////////////////////////// + +// {a915128c-d954-4c79-bfe1-64db923194d6} +DEFINE_GUID(IID_ID3DX11SegmentedScan, 0xa915128c, 0xd954, 0x4c79, 0xbf, 0xe1, 0x64, 0xdb, 0x92, 0x31, 0x94, 0xd6); + +#undef INTERFACE +#define INTERFACE ID3DX11SegmentedScan + +DECLARE_INTERFACE_(ID3DX11SegmentedScan, IUnknown) +{ + // IUnknown + STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // ID3DX11SegmentedScan + + STDMETHOD(SetScanDirection)(THIS_ D3DX11_SCAN_DIRECTION Direction) PURE; + + //============================================================================= + // Performs a segscan of a sequence in-place or out-of-place + // ElementType element type + // OpCode binary operation + // Direction scan direction + // pSrcElementFlags compact array of bits, one per element of pSrc. A set value + // indicates the start of a new segment. + // ElementScanSize size of scan, in elements + // pSrc input sequence on the device. pSrc==pDst for in-place scans + // pDst output sequence on the device + //============================================================================= + STDMETHOD(SegScan)( THIS_ + D3DX11_SCAN_DATA_TYPE ElementType, + D3DX11_SCAN_OPCODE OpCode, + UINT ElementScanSize, + _In_opt_ ID3D11UnorderedAccessView* pSrc, + _In_ ID3D11UnorderedAccessView* pSrcElementFlags, + _In_ ID3D11UnorderedAccessView* pDst + ) PURE; +}; + + +//============================================================================= +// Creates a segmented scan context +// pDevice the device context +// MaxElementScanSize maximum single scan size, in elements (FLOAT, UINT, or INT) +// ppScanContext new scan context +//============================================================================= +HRESULT WINAPI D3DX11CreateSegmentedScan( + _In_ ID3D11DeviceContext* pDeviceContext, + UINT MaxElementScanSize, + _Out_ ID3DX11SegmentedScan** ppScan ); + + + +////////////////////////////////////////////////////////////////////////////// + +#define D3DX11_FFT_MAX_PRECOMPUTE_BUFFERS 4 +#define D3DX11_FFT_MAX_TEMP_BUFFERS 4 +#define D3DX11_FFT_MAX_DIMENSIONS 32 + + + +////////////////////////////////////////////////////////////////////////////// +// ID3DX11FFT: +////////////////////////////////////////////////////////////////////////////// + +// {b3f7a938-4c93-4310-a675-b30d6de50553} +DEFINE_GUID(IID_ID3DX11FFT, 0xb3f7a938, 0x4c93, 0x4310, 0xa6, 0x75, 0xb3, 0x0d, 0x6d, 0xe5, 0x05, 0x53); + +#undef INTERFACE +#define INTERFACE ID3DX11FFT + +DECLARE_INTERFACE_(ID3DX11FFT, IUnknown) +{ + // IUnknown + STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + + // ID3DX11FFT + + // scale for forward transform (defaults to 1 if set to 0) + STDMETHOD(SetForwardScale)(THIS_ FLOAT ForwardScale) PURE; + STDMETHOD_(FLOAT, GetForwardScale)(THIS) PURE; + + // scale for inverse transform (defaults to 1/N if set to 0, where N is + // the product of the transformed dimension lengths + STDMETHOD(SetInverseScale)(THIS_ FLOAT InverseScale) PURE; + STDMETHOD_(FLOAT, GetInverseScale)(THIS) PURE; + + //------------------------------------------------------------------------------ + // Attaches buffers to the context and performs any required precomputation. + // The buffers must be no smaller than the corresponding buffer sizes returned + // by D3DX11CreateFFT*(). Temp buffers may beshared between multiple contexts, + // though care should be taken to concurrently execute multiple FFTs which share + // temp buffers. + // + // NumTempBuffers number of buffers in ppTempBuffers + // ppTempBuffers temp buffers to attach + // NumPrecomputeBuffers number of buffers in ppPrecomputeBufferSizes + // ppPrecomputeBufferSizes buffers to hold precomputed data + STDMETHOD(AttachBuffersAndPrecompute)( THIS_ + _In_range_(0,D3DX11_FFT_MAX_TEMP_BUFFERS) UINT NumTempBuffers, + _In_reads_(NumTempBuffers) ID3D11UnorderedAccessView* const* ppTempBuffers, + _In_range_(0,D3DX11_FFT_MAX_PRECOMPUTE_BUFFERS) UINT NumPrecomputeBuffers, + _In_reads_(NumPrecomputeBuffers) ID3D11UnorderedAccessView* const* ppPrecomputeBufferSizes ) PURE; + + //------------------------------------------------------------------------------ + // Call after buffers have been attached to the context, pInput and *ppOuput can + // be one of the temp buffers. If *ppOutput == NULL, then the computation will ping-pong + // between temp buffers and the last buffer written to is stored at *ppOutput. + // Otherwise, *ppOutput is used as the output buffer (which may incur an extra copy). + // + // The format of complex data is interleaved components, e.g. (Real0, Imag0), + // (Real1, Imag1) ... etc. Data is stored in row major order + // + // pInputBuffer view onto input buffer + // ppOutpuBuffert pointer to view of output buffer + STDMETHOD(ForwardTransform)( THIS_ + _In_ const ID3D11UnorderedAccessView* pInputBuffer, + _Inout_ ID3D11UnorderedAccessView** ppOutputBuffer ) PURE; + + STDMETHOD(InverseTransform)( THIS_ + _In_ const ID3D11UnorderedAccessView* pInputBuffer, + _Inout_ ID3D11UnorderedAccessView** ppOutputBuffer ) PURE; +}; + + +////////////////////////////////////////////////////////////////////////////// +// ID3DX11FFT Creation Routines +////////////////////////////////////////////////////////////////////////////// + +typedef enum D3DX11_FFT_DATA_TYPE +{ + D3DX11_FFT_DATA_TYPE_REAL, + D3DX11_FFT_DATA_TYPE_COMPLEX, +} D3DX11_FFT_DATA_TYPE; + +typedef enum D3DX11_FFT_DIM_MASK +{ + D3DX11_FFT_DIM_MASK_1D = 0x1, + D3DX11_FFT_DIM_MASK_2D = 0x3, + D3DX11_FFT_DIM_MASK_3D = 0x7, +} D3DX11_FFT_DIM_MASK; + +typedef struct D3DX11_FFT_DESC +{ + UINT NumDimensions; // number of dimensions + UINT ElementLengths[D3DX11_FFT_MAX_DIMENSIONS]; // length of each dimension + UINT DimensionMask; // a bit set for each dimensions to transform + // (see D3DX11_FFT_DIM_MASK for common masks) + D3DX11_FFT_DATA_TYPE Type; // type of the elements in spatial domain +} D3DX11_FFT_DESC; + + +//------------------------------------------------------------------------------ +// NumTempBufferSizes Number of temporary buffers needed +// pTempBufferSizes Minimum sizes (in FLOATs) of temporary buffers +// NumPrecomputeBufferSizes Number of precompute buffers needed +// pPrecomputeBufferSizes minimum sizes (in FLOATs) for precompute buffers +//------------------------------------------------------------------------------ + +typedef struct D3DX11_FFT_BUFFER_INFO +{ + _Field_range_(0,D3DX11_FFT_MAX_TEMP_BUFFERS) UINT NumTempBufferSizes; + UINT TempBufferFloatSizes[D3DX11_FFT_MAX_TEMP_BUFFERS]; + _Field_range_(0,D3DX11_FFT_MAX_PRECOMPUTE_BUFFERS) UINT NumPrecomputeBufferSizes; + UINT PrecomputeBufferFloatSizes[D3DX11_FFT_MAX_PRECOMPUTE_BUFFERS]; +} D3DX11_FFT_BUFFER_INFO; + + +typedef enum D3DX11_FFT_CREATE_FLAG +{ + D3DX11_FFT_CREATE_FLAG_NO_PRECOMPUTE_BUFFERS = 0x01L, // do not precompute values and store into buffers +} D3DX11_FFT_CREATE_FLAG; + + +//------------------------------------------------------------------------------ +// Creates an ID3DX11FFT COM interface object and returns a pointer to it at *ppFFT. +// The descriptor describes the shape of the data as well as the scaling factors +// that should be used for forward and inverse transforms. +// The FFT computation may require temporaries that act as ping-pong buffers +// and for other purposes. aTempSizes is a list of the sizes required for +// temporaries. Likewise, some data may need to be precomputed and the sizes +// of those sizes are returned in aPrecomputedBufferSizes. +// +// To perform a computation, follow these steps: +// 1) Create the FFT context object +// 2) Precompute (and Attach temp working buffers of at least the required size) +// 3) Call Compute() on some input data +// +// Compute() may be called repeatedly with different inputs and transform +// directions. When finished with the FFT work, release the FFT interface() +// +// Device Direct3DDeviceContext to use in +// pDesc Descriptor for FFT transform in +// Count the number of 1D FFTs to perform in +// Flags See D3DX11_FFT_CREATE_FLAG in +// pBufferInfo Pointer to BUFFER_INFO struct, filled by funciton out +// ppFFT Pointer to returned context pointer out +//------------------------------------------------------------------------------ + +HRESULT WINAPI D3DX11CreateFFT( + ID3D11DeviceContext* pDeviceContext, + _In_ const D3DX11_FFT_DESC* pDesc, + UINT Flags, + _Out_ D3DX11_FFT_BUFFER_INFO* pBufferInfo, + _Out_ ID3DX11FFT** ppFFT + ); + +HRESULT WINAPI D3DX11CreateFFT1DReal( + ID3D11DeviceContext* pDeviceContext, + UINT X, + UINT Flags, + _Out_ D3DX11_FFT_BUFFER_INFO* pBufferInfo, + _Out_ ID3DX11FFT** ppFFT + ); +HRESULT WINAPI D3DX11CreateFFT1DComplex( + ID3D11DeviceContext* pDeviceContext, + UINT X, + UINT Flags, + _Out_ D3DX11_FFT_BUFFER_INFO* pBufferInfo, + _Out_ ID3DX11FFT** ppFFT + ); +HRESULT WINAPI D3DX11CreateFFT2DReal( + ID3D11DeviceContext* pDeviceContext, + UINT X, + UINT Y, + UINT Flags, + _Out_ D3DX11_FFT_BUFFER_INFO* pBufferInfo, + _Out_ ID3DX11FFT** ppFFT + ); +HRESULT WINAPI D3DX11CreateFFT2DComplex( + ID3D11DeviceContext* pDeviceContext, + UINT X, + UINT Y, + UINT Flags, + _Out_ D3DX11_FFT_BUFFER_INFO* pBufferInfo, + _Out_ ID3DX11FFT** ppFFT + ); +HRESULT WINAPI D3DX11CreateFFT3DReal( + ID3D11DeviceContext* pDeviceContext, + UINT X, + UINT Y, + UINT Z, + UINT Flags, + _Out_ D3DX11_FFT_BUFFER_INFO* pBufferInfo, + _Out_ ID3DX11FFT** ppFFT + ); +HRESULT WINAPI D3DX11CreateFFT3DComplex( + ID3D11DeviceContext* pDeviceContext, + UINT X, + UINT Y, + UINT Z, + UINT Flags, + _Out_ D3DX11_FFT_BUFFER_INFO* pBufferInfo, + _Out_ ID3DX11FFT** ppFFT + ); + + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif //__D3DX11GPGPU_H__ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dhal.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dhal.h new file mode 100644 index 0000000000000000000000000000000000000000..e36df051bb241cc145ad7e274042c48f13ee10ea --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dhal.h @@ -0,0 +1,2770 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: d3dhal.h + * Content: Direct3D HAL include file + * + ***************************************************************************/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef _D3DHAL_H_ +#define _D3DHAL_H_ +#include "ddraw.h" +#include "d3dtypes.h" +#include "d3dcaps.h" +#include "d3d.h" +#if(DIRECT3D_VERSION >= 0x0900 ) +#include "d3d9.h" +#include "dxva9typ.h" +#else +#include "d3d8.h" +#endif + +struct _D3DHAL_CALLBACKS; +typedef struct _D3DHAL_CALLBACKS D3DHAL_CALLBACKS, *LPD3DHAL_CALLBACKS; + +struct _D3DHAL_CALLBACKS2; +typedef struct _D3DHAL_CALLBACKS2 D3DHAL_CALLBACKS2, *LPD3DHAL_CALLBACKS2; + +struct _D3DHAL_CALLBACKS3; +typedef struct _D3DHAL_CALLBACKS3 D3DHAL_CALLBACKS3, *LPD3DHAL_CALLBACKS3; + +typedef struct _DDRAWI_DIRECTDRAW_GBL FAR *LPDDRAWI_DIRECTDRAW_GBL; +typedef struct _DDRAWI_DIRECTDRAW_LCL FAR *LPDDRAWI_DIRECTDRAW_LCL; +struct _DDRAWI_DDRAWSURFACE_LCL; +typedef struct _DDRAWI_DDRAWSURFACE_LCL FAR *LPDDRAWI_DDRAWSURFACE_LCL; + +/* + * If the HAL driver does not implement clipping, it must reserve at least + * this much space at the end of the LocalVertexBuffer for use by the HEL + * clipping. I.e. the vertex buffer contain dwNumVertices+dwNumClipVertices + * vertices. No extra space is needed by the HEL clipping in the + * LocalHVertexBuffer. + */ +#define D3DHAL_NUMCLIPVERTICES 20 + +/* + * These are a few special internal renderstates etc. that would + * logically be in d3dtypes.h, but that file is external, so they are + * here. + */ +#define D3DTSS_MAX_DX6 ((D3DTEXTURESTAGESTATETYPE)24) +#define D3DTSS_MAX_DX7 ((D3DTEXTURESTAGESTATETYPE)29) +#define D3DTSS_MAX_DX8 ((D3DTEXTURESTAGESTATETYPE)29) +#define D3DTSS_MAX_DX9 ((D3DTEXTURESTAGESTATETYPE)33) + +#if( DIRECT3D_VERSION >= 0x0900 ) +#define D3DTSS_MAX D3DTSS_MAX_DX9 +#elif( DIRECT3D_VERSION >= 0x0800 ) +#define D3DTSS_MAX D3DTSS_MAX_DX8 +#elif( DIRECT3D_VERSION >= 0x0700 ) +#define D3DTSS_MAX D3DTSS_MAX_DX7 +#else +#define D3DTSS_MAX D3DTSS_MAX_DX6 +#endif + +/* + * If DX8 driver wants to support pre-DX8 applications, it should use these + * definitions for pre-DX8 world matrices +*/ +#define D3DTRANSFORMSTATE_WORLD_DX7 1 +#define D3DTRANSFORMSTATE_WORLD1_DX7 4 +#define D3DTRANSFORMSTATE_WORLD2_DX7 5 +#define D3DTRANSFORMSTATE_WORLD3_DX7 6 + +/* + * Generally needed maximum state structure sizes. Note that the copy of + * these in refrasti.hpp must be kept in sync with these. + */ +#define D3DHAL_MAX_RSTATES_DX6 (256) +#define D3DHAL_MAX_RSTATES_DX7 (256) +#define D3DHAL_MAX_RSTATES_DX8 (256) +#define D3DHAL_MAX_RSTATES_DX9 (256) + +#if( DIRECT3D_VERSION >= 0x0900 ) +#define D3DHAL_MAX_RSTATES D3DHAL_MAX_RSTATES_DX9 +#elif( DIRECT3D_VERSION >= 0x0800 ) +#define D3DHAL_MAX_RSTATES D3DHAL_MAX_RSTATES_DX8 +#elif( DIRECT3D_VERSION >= 0x0700 ) +#define D3DHAL_MAX_RSTATES D3DHAL_MAX_RSTATES_DX7 +#else +#define D3DHAL_MAX_RSTATES D3DHAL_MAX_RSTATES_DX6 +#endif + +#define D3D_MAXRENDERSTATES ((D3DRENDERSTATETYPE)D3DHAL_MAX_RSTATES) + +/* Last state offset for combined render state and texture stage array + 1 */ +#define D3DHAL_MAX_RSTATES_AND_STAGES \ + (D3DHAL_TSS_RENDERSTATEBASE + \ + D3DHAL_TSS_MAXSTAGES * D3DHAL_TSS_STATESPERSTAGE) +/* Last texture state ID */ +#define D3DHAL_MAX_TEXTURESTATES (13) +/* Last texture state ID + 1 */ +#define D3DHAL_TEXTURESTATEBUF_SIZE (D3DHAL_MAX_TEXTURESTATES+1) + +/* + * If no dwNumVertices is given, this is what will be used. + */ +#define D3DHAL_DEFAULT_TL_NUM ((32 * 1024) / sizeof (D3DTLVERTEX)) +#define D3DHAL_DEFAULT_H_NUM ((32 * 1024) / sizeof (D3DHVERTEX)) + +/* + * Description for a device. + * This is used to describe a device that is to be created or to query + * the current device. + * + * For DX5 and subsequent runtimes, D3DDEVICEDESC is a user-visible + * structure that is not seen by the device drivers. The runtime + * stitches a D3DDEVICEDESC together using the D3DDEVICEDESC_V1 + * embedded in the GLOBALDRIVERDATA and the extended caps queried + * from the driver using GetDriverInfo. + */ + +typedef struct _D3DDeviceDesc_V1 { + DWORD dwSize; /* Size of D3DDEVICEDESC structure */ + DWORD dwFlags; /* Indicates which fields have valid data */ + D3DCOLORMODEL dcmColorModel; /* Color model of device */ + DWORD dwDevCaps; /* Capabilities of device */ + D3DTRANSFORMCAPS dtcTransformCaps; /* Capabilities of transform */ + BOOL bClipping; /* Device can do 3D clipping */ + D3DLIGHTINGCAPS dlcLightingCaps; /* Capabilities of lighting */ + D3DPRIMCAPS dpcLineCaps; + D3DPRIMCAPS dpcTriCaps; + DWORD dwDeviceRenderBitDepth; /* One of DDBD_16, etc.. */ + DWORD dwDeviceZBufferBitDepth;/* One of DDBD_16, 32, etc.. */ + DWORD dwMaxBufferSize; /* Maximum execute buffer size */ + DWORD dwMaxVertexCount; /* Maximum vertex count */ +} D3DDEVICEDESC_V1, *LPD3DDEVICEDESC_V1; + +#define D3DDEVICEDESCSIZE_V1 (sizeof(D3DDEVICEDESC_V1)) + +/* + * This is equivalent to the D3DDEVICEDESC understood by DX5, available only + * from DX6. It is the same as D3DDEVICEDESC structure in DX5. + * D3DDEVICEDESC is still the user-visible structure that is not seen by the + * device drivers. The runtime stitches a D3DDEVICEDESC together using the + * D3DDEVICEDESC_V1 embedded in the GLOBALDRIVERDATA and the extended caps + * queried from the driver using GetDriverInfo. + */ + +typedef struct _D3DDeviceDesc_V2 { + DWORD dwSize; /* Size of D3DDEVICEDESC structure */ + DWORD dwFlags; /* Indicates which fields have valid data */ + D3DCOLORMODEL dcmColorModel; /* Color model of device */ + DWORD dwDevCaps; /* Capabilities of device */ + D3DTRANSFORMCAPS dtcTransformCaps; /* Capabilities of transform */ + BOOL bClipping; /* Device can do 3D clipping */ + D3DLIGHTINGCAPS dlcLightingCaps; /* Capabilities of lighting */ + D3DPRIMCAPS dpcLineCaps; + D3DPRIMCAPS dpcTriCaps; + DWORD dwDeviceRenderBitDepth; /* One of DDBD_16, etc.. */ + DWORD dwDeviceZBufferBitDepth;/* One of DDBD_16, 32, etc.. */ + DWORD dwMaxBufferSize; /* Maximum execute buffer size */ + DWORD dwMaxVertexCount; /* Maximum vertex count */ + + DWORD dwMinTextureWidth, dwMinTextureHeight; + DWORD dwMaxTextureWidth, dwMaxTextureHeight; + DWORD dwMinStippleWidth, dwMaxStippleWidth; + DWORD dwMinStippleHeight, dwMaxStippleHeight; + +} D3DDEVICEDESC_V2, *LPD3DDEVICEDESC_V2; + +#define D3DDEVICEDESCSIZE_V2 (sizeof(D3DDEVICEDESC_V2)) + +#if(DIRECT3D_VERSION >= 0x0700) +/* + * This is equivalent to the D3DDEVICEDESC understood by DX6, available only + * from DX6. It is the same as D3DDEVICEDESC structure in DX6. + * D3DDEVICEDESC is still the user-visible structure that is not seen by the + * device drivers. The runtime stitches a D3DDEVICEDESC together using the + * D3DDEVICEDESC_V1 embedded in the GLOBALDRIVERDATA and the extended caps + * queried from the driver using GetDriverInfo. + */ + +typedef struct _D3DDeviceDesc_V3 { + DWORD dwSize; /* Size of D3DDEVICEDESC structure */ + DWORD dwFlags; /* Indicates which fields have valid data */ + D3DCOLORMODEL dcmColorModel; /* Color model of device */ + DWORD dwDevCaps; /* Capabilities of device */ + D3DTRANSFORMCAPS dtcTransformCaps; /* Capabilities of transform */ + BOOL bClipping; /* Device can do 3D clipping */ + D3DLIGHTINGCAPS dlcLightingCaps; /* Capabilities of lighting */ + D3DPRIMCAPS dpcLineCaps; + D3DPRIMCAPS dpcTriCaps; + DWORD dwDeviceRenderBitDepth; /* One of DDBD_16, etc.. */ + DWORD dwDeviceZBufferBitDepth;/* One of DDBD_16, 32, etc.. */ + DWORD dwMaxBufferSize; /* Maximum execute buffer size */ + DWORD dwMaxVertexCount; /* Maximum vertex count */ + + DWORD dwMinTextureWidth, dwMinTextureHeight; + DWORD dwMaxTextureWidth, dwMaxTextureHeight; + DWORD dwMinStippleWidth, dwMaxStippleWidth; + DWORD dwMinStippleHeight, dwMaxStippleHeight; + + DWORD dwMaxTextureRepeat; + DWORD dwMaxTextureAspectRatio; + DWORD dwMaxAnisotropy; + D3DVALUE dvGuardBandLeft; + D3DVALUE dvGuardBandTop; + D3DVALUE dvGuardBandRight; + D3DVALUE dvGuardBandBottom; + D3DVALUE dvExtentsAdjust; + DWORD dwStencilCaps; + DWORD dwFVFCaps; /* low 4 bits: 0 implies TLVERTEX only, 1..8 imply FVF aware */ + DWORD dwTextureOpCaps; + WORD wMaxTextureBlendStages; + WORD wMaxSimultaneousTextures; +} D3DDEVICEDESC_V3, *LPD3DDEVICEDESC_V3; + +#define D3DDEVICEDESCSIZE_V3 (sizeof(D3DDEVICEDESC_V3)) +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* -------------------------------------------------------------- + * Instantiated by the HAL driver on driver connection. + */ +typedef struct _D3DHAL_GLOBALDRIVERDATA { + DWORD dwSize; // Size of this structure + D3DDEVICEDESC_V1 hwCaps; // Capabilities of the hardware + DWORD dwNumVertices; // see following comment + DWORD dwNumClipVertices; // see following comment + DWORD dwNumTextureFormats; // Number of texture formats + LPDDSURFACEDESC lpTextureFormats; // Pointer to texture formats +} D3DHAL_GLOBALDRIVERDATA; + +typedef D3DHAL_GLOBALDRIVERDATA *LPD3DHAL_GLOBALDRIVERDATA; + +#define D3DHAL_GLOBALDRIVERDATASIZE (sizeof(D3DHAL_GLOBALDRIVERDATA)) + +#if(DIRECT3D_VERSION >= 0x0700) +/* -------------------------------------------------------------- + * Extended caps introduced with DX5 and queried with + * GetDriverInfo (GUID_D3DExtendedCaps). + */ +typedef struct _D3DHAL_D3DDX6EXTENDEDCAPS { + DWORD dwSize; // Size of this structure + + DWORD dwMinTextureWidth, dwMaxTextureWidth; + DWORD dwMinTextureHeight, dwMaxTextureHeight; + DWORD dwMinStippleWidth, dwMaxStippleWidth; + DWORD dwMinStippleHeight, dwMaxStippleHeight; + + /* fields added for DX6 */ + DWORD dwMaxTextureRepeat; + DWORD dwMaxTextureAspectRatio; + DWORD dwMaxAnisotropy; + D3DVALUE dvGuardBandLeft; + D3DVALUE dvGuardBandTop; + D3DVALUE dvGuardBandRight; + D3DVALUE dvGuardBandBottom; + D3DVALUE dvExtentsAdjust; + DWORD dwStencilCaps; + DWORD dwFVFCaps; /* low 4 bits: 0 implies TLVERTEX only, 1..8 imply FVF aware */ + DWORD dwTextureOpCaps; + WORD wMaxTextureBlendStages; + WORD wMaxSimultaneousTextures; + +} D3DHAL_D3DDX6EXTENDEDCAPS; +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* -------------------------------------------------------------- + * Extended caps introduced with DX5 and queried with + * GetDriverInfo (GUID_D3DExtendedCaps). + */ +typedef struct _D3DHAL_D3DEXTENDEDCAPS { + DWORD dwSize; // Size of this structure + + DWORD dwMinTextureWidth, dwMaxTextureWidth; + DWORD dwMinTextureHeight, dwMaxTextureHeight; + DWORD dwMinStippleWidth, dwMaxStippleWidth; + DWORD dwMinStippleHeight, dwMaxStippleHeight; + + /* fields added for DX6 */ + DWORD dwMaxTextureRepeat; + DWORD dwMaxTextureAspectRatio; + DWORD dwMaxAnisotropy; + D3DVALUE dvGuardBandLeft; + D3DVALUE dvGuardBandTop; + D3DVALUE dvGuardBandRight; + D3DVALUE dvGuardBandBottom; + D3DVALUE dvExtentsAdjust; + DWORD dwStencilCaps; + DWORD dwFVFCaps; /* low 4 bits: 0 implies TLVERTEX only, 1..8 imply FVF aware */ + DWORD dwTextureOpCaps; + WORD wMaxTextureBlendStages; + WORD wMaxSimultaneousTextures; + +#if(DIRECT3D_VERSION >= 0x0700) + /* fields added for DX7 */ + DWORD dwMaxActiveLights; + D3DVALUE dvMaxVertexW; + + WORD wMaxUserClipPlanes; + WORD wMaxVertexBlendMatrices; + + DWORD dwVertexProcessingCaps; + + DWORD dwReserved1; + DWORD dwReserved2; + DWORD dwReserved3; + DWORD dwReserved4; +#endif /* DIRECT3D_VERSION >= 0x0700 */ +} D3DHAL_D3DEXTENDEDCAPS; + +typedef D3DHAL_D3DEXTENDEDCAPS *LPD3DHAL_D3DEXTENDEDCAPS; +#define D3DHAL_D3DEXTENDEDCAPSSIZE (sizeof(D3DHAL_D3DEXTENDEDCAPS)) + +#if(DIRECT3D_VERSION >= 0x0700) +typedef D3DHAL_D3DDX6EXTENDEDCAPS *LPD3DHAL_D3DDX6EXTENDEDCAPS; +#define D3DHAL_D3DDX6EXTENDEDCAPSSIZE (sizeof(D3DHAL_D3DDX6EXTENDEDCAPS)) +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#if(DIRECT3D_VERSION >= 0x0900) +typedef struct _D3DCAPS8 +{ + /* Device Info */ + D3DDEVTYPE DeviceType; + UINT AdapterOrdinal; + + /* Caps from DX7 Draw */ + DWORD Caps; + DWORD Caps2; + DWORD Caps3; + DWORD PresentationIntervals; + + /* Cursor Caps */ + DWORD CursorCaps; + + /* 3D Device Caps */ + DWORD DevCaps; + + DWORD PrimitiveMiscCaps; + DWORD RasterCaps; + DWORD ZCmpCaps; + DWORD SrcBlendCaps; + DWORD DestBlendCaps; + DWORD AlphaCmpCaps; + DWORD ShadeCaps; + DWORD TextureCaps; + DWORD TextureFilterCaps; // D3DPTFILTERCAPS for IDirect3DTexture8's + DWORD CubeTextureFilterCaps; // D3DPTFILTERCAPS for IDirect3DCubeTexture8's + DWORD VolumeTextureFilterCaps; // D3DPTFILTERCAPS for IDirect3DVolumeTexture8's + DWORD TextureAddressCaps; // D3DPTADDRESSCAPS for IDirect3DTexture8's + DWORD VolumeTextureAddressCaps; // D3DPTADDRESSCAPS for IDirect3DVolumeTexture8's + + DWORD LineCaps; // D3DLINECAPS + + DWORD MaxTextureWidth, MaxTextureHeight; + DWORD MaxVolumeExtent; + + DWORD MaxTextureRepeat; + DWORD MaxTextureAspectRatio; + DWORD MaxAnisotropy; + float MaxVertexW; + + float GuardBandLeft; + float GuardBandTop; + float GuardBandRight; + float GuardBandBottom; + + float ExtentsAdjust; + DWORD StencilCaps; + + DWORD FVFCaps; + DWORD TextureOpCaps; + DWORD MaxTextureBlendStages; + DWORD MaxSimultaneousTextures; + + DWORD VertexProcessingCaps; + DWORD MaxActiveLights; + DWORD MaxUserClipPlanes; + DWORD MaxVertexBlendMatrices; + DWORD MaxVertexBlendMatrixIndex; + + float MaxPointSize; + + DWORD MaxPrimitiveCount; // max number of primitives per DrawPrimitive call + DWORD MaxVertexIndex; + DWORD MaxStreams; + DWORD MaxStreamStride; // max stride for SetStreamSource + + DWORD VertexShaderVersion; + DWORD MaxVertexShaderConst; // number of vertex shader constant registers + + DWORD PixelShaderVersion; + float MaxPixelShaderValue; // max value of pixel shader arithmetic component +} D3DCAPS8; + +typedef D3DLIGHT9 D3DLIGHT8; +typedef D3DMATERIAL9 D3DMATERIAL8; +typedef D3DVIEWPORT9 D3DVIEWPORT8; +#define D3DRS_EDGEANTIALIAS D3DRS_RESERVED0 +#ifndef D3DPRASTERCAPS_ANTIALIASEDGES +#define D3DPRASTERCAPS_ANTIALIASEDGES D3DPRASTERCAPS_RESERVED0 +#endif /* D3DPRASTERCAPS_ANTIALIASEDGES */ +#ifndef D3DPRASTERCAPS_STRETCHBLTMULTISAMPLE +#define D3DPRASTERCAPS_STRETCHBLTMULTISAMPLE 0x00800000L +#endif /* D3DPRASTERCAPS_STRETCHBLTMULTISAMPLE */ +#ifndef D3DPRASTERCAPS_PAT +#define D3DPRASTERCAPS_PAT 0x00000008L // equal to D3DPRASTERCAPS_RESERVED2 +#endif + + +// This cap should not be used in DX9+ drivers +// +#ifndef D3DVTXPCAPS_NO_VSDT_UBYTE4 +#define D3DVTXPCAPS_NO_VSDT_UBYTE4 0x00000080L /* device does not support D3DVSDT_UBYTE4 */ +#endif + +// These are old filter caps that have been retired. +#define D3DTEXF_FLATCUBIC 4 +#define D3DTEXF_GAUSSIANCUBIC 5 + +// These are line related states and caps that have been retired +typedef struct _D3DLINEPATTERN { + WORD wRepeatFactor; + WORD wLinePattern; +} D3DLINEPATTERN; + +#define D3DPMISCCAPS_LINEPATTERNREP 0x00000004L + +#endif /* DIRECT3D_VERSION >= 0x0900 */ + +/* -------------------------------------------------------------- + * Argument to the HAL functions. + * + * !!! When this structure is changed, D3DHAL_CONTEXTCREATEDATA in + * windows\published\ntgdistr.h also must be changed to be the same size !!! + * + */ + +typedef struct _D3DHAL_CONTEXTCREATEDATA +{ + union + { + LPDDRAWI_DIRECTDRAW_GBL lpDDGbl; // in: Driver struct (legacy) + LPDDRAWI_DIRECTDRAW_LCL lpDDLcl; // in: For DX7 driver onwards + }; + + union + { + LPDIRECTDRAWSURFACE lpDDS; // in: Surface to be used as target + LPDDRAWI_DDRAWSURFACE_LCL lpDDSLcl; // For DX7 onwards + }; + + union + { + LPDIRECTDRAWSURFACE lpDDSZ; // in: Surface to be used as Z + LPDDRAWI_DDRAWSURFACE_LCL lpDDSZLcl; // For DX7 onwards + }; + + union + { + DWORD dwPID; // in: Current process id + ULONG_PTR dwrstates; // Must be larger enough to hold a pointer as + // we can return a pointer in this field + }; + ULONG_PTR dwhContext; // out: Context handle + HRESULT ddrval; // out: Return value +} D3DHAL_CONTEXTCREATEDATA; +typedef D3DHAL_CONTEXTCREATEDATA *LPD3DHAL_CONTEXTCREATEDATA; + +typedef struct _D3DHAL_CONTEXTDESTROYDATA +{ + ULONG_PTR dwhContext; // in: Context handle + HRESULT ddrval; // out: Return value +} D3DHAL_CONTEXTDESTROYDATA; +typedef D3DHAL_CONTEXTDESTROYDATA *LPD3DHAL_CONTEXTDESTROYDATA; + +typedef struct _D3DHAL_CONTEXTDESTROYALLDATA +{ + DWORD dwPID; // in: Process id to destroy contexts for + HRESULT ddrval; // out: Return value +} D3DHAL_CONTEXTDESTROYALLDATA; +typedef D3DHAL_CONTEXTDESTROYALLDATA *LPD3DHAL_CONTEXTDESTROYALLDATA; + +typedef struct _D3DHAL_SCENECAPTUREDATA +{ + ULONG_PTR dwhContext; // in: Context handle + DWORD dwFlag; // in: Indicates beginning or end + HRESULT ddrval; // out: Return value +} D3DHAL_SCENECAPTUREDATA; +typedef D3DHAL_SCENECAPTUREDATA *LPD3DHAL_SCENECAPTUREDATA; + +typedef struct _D3DHAL_RENDERSTATEDATA +{ + ULONG_PTR dwhContext; // in: Context handle + DWORD dwOffset; // in: Where to find states in buffer + DWORD dwCount; // in: How many states to process + LPDIRECTDRAWSURFACE lpExeBuf; // in: Execute buffer containing data + HRESULT ddrval; // out: Return value +} D3DHAL_RENDERSTATEDATA; +typedef D3DHAL_RENDERSTATEDATA *LPD3DHAL_RENDERSTATEDATA; + +typedef struct _D3DHAL_RENDERPRIMITIVEDATA +{ + ULONG_PTR dwhContext; // in: Context handle + DWORD dwOffset; // in: Where to find primitive data in buffer + DWORD dwStatus; // in/out: Condition branch status + LPDIRECTDRAWSURFACE lpExeBuf; // in: Execute buffer containing data + DWORD dwTLOffset; // in: Byte offset in lpTLBuf for start of vertex data + LPDIRECTDRAWSURFACE lpTLBuf; // in: Execute buffer containing TLVertex data + D3DINSTRUCTION diInstruction; // in: Primitive instruction + HRESULT ddrval; // out: Return value +} D3DHAL_RENDERPRIMITIVEDATA; +typedef D3DHAL_RENDERPRIMITIVEDATA *LPD3DHAL_RENDERPRIMITIVEDATA; + +typedef struct _D3DHAL_TEXTURECREATEDATA +{ + ULONG_PTR dwhContext; // in: Context handle + LPDIRECTDRAWSURFACE lpDDS; // in: Pointer to surface object + DWORD dwHandle; // out: Handle to texture + HRESULT ddrval; // out: Return value +} D3DHAL_TEXTURECREATEDATA; +typedef D3DHAL_TEXTURECREATEDATA *LPD3DHAL_TEXTURECREATEDATA; + +typedef struct _D3DHAL_TEXTUREDESTROYDATA +{ + ULONG_PTR dwhContext; // in: Context handle + DWORD dwHandle; // in: Handle to texture + HRESULT ddrval; // out: Return value +} D3DHAL_TEXTUREDESTROYDATA; +typedef D3DHAL_TEXTUREDESTROYDATA *LPD3DHAL_TEXTUREDESTROYDATA; + +typedef struct _D3DHAL_TEXTURESWAPDATA +{ + ULONG_PTR dwhContext; // in: Context handle + DWORD dwHandle1; // in: Handle to texture 1 + DWORD dwHandle2; // in: Handle to texture 2 + HRESULT ddrval; // out: Return value +} D3DHAL_TEXTURESWAPDATA; +typedef D3DHAL_TEXTURESWAPDATA *LPD3DHAL_TEXTURESWAPDATA; + +typedef struct _D3DHAL_TEXTUREGETSURFDATA +{ + ULONG_PTR dwhContext; // in: Context handle + ULONG_PTR lpDDS; // out: Pointer to surface object + DWORD dwHandle; // in: Handle to texture + HRESULT ddrval; // out: Return value +} D3DHAL_TEXTUREGETSURFDATA; +typedef D3DHAL_TEXTUREGETSURFDATA *LPD3DHAL_TEXTUREGETSURFDATA; + +typedef struct _D3DHAL_GETSTATEDATA +{ + ULONG_PTR dwhContext; // in: Context handle + DWORD dwWhich; // in: Transform, lighting or render? + D3DSTATE ddState; // in/out: State. + HRESULT ddrval; // out: Return value +} D3DHAL_GETSTATEDATA; +typedef D3DHAL_GETSTATEDATA *LPD3DHAL_GETSTATEDATA; + + +/* -------------------------------------------------------------- + * Direct3D HAL Table. + * Instantiated by the HAL driver on connection. + * + * Calls take the form of: + * retcode = HalCall(HalCallData* lpData); + */ + +typedef DWORD (__stdcall *LPD3DHAL_CONTEXTCREATECB) (LPD3DHAL_CONTEXTCREATEDATA); +typedef DWORD (__stdcall *LPD3DHAL_CONTEXTDESTROYCB) (LPD3DHAL_CONTEXTDESTROYDATA); +typedef DWORD (__stdcall *LPD3DHAL_CONTEXTDESTROYALLCB) (LPD3DHAL_CONTEXTDESTROYALLDATA); +typedef DWORD (__stdcall *LPD3DHAL_SCENECAPTURECB) (LPD3DHAL_SCENECAPTUREDATA); +typedef DWORD (__stdcall *LPD3DHAL_RENDERSTATECB) (LPD3DHAL_RENDERSTATEDATA); +typedef DWORD (__stdcall *LPD3DHAL_RENDERPRIMITIVECB) (LPD3DHAL_RENDERPRIMITIVEDATA); +typedef DWORD (__stdcall *LPD3DHAL_TEXTURECREATECB) (LPD3DHAL_TEXTURECREATEDATA); +typedef DWORD (__stdcall *LPD3DHAL_TEXTUREDESTROYCB) (LPD3DHAL_TEXTUREDESTROYDATA); +typedef DWORD (__stdcall *LPD3DHAL_TEXTURESWAPCB) (LPD3DHAL_TEXTURESWAPDATA); +typedef DWORD (__stdcall *LPD3DHAL_TEXTUREGETSURFCB) (LPD3DHAL_TEXTUREGETSURFDATA); +typedef DWORD (__stdcall *LPD3DHAL_GETSTATECB) (LPD3DHAL_GETSTATEDATA); + + +/* + * Regarding dwNumVertices, specify 0 if you are relying on the HEL to do + * everything and you do not need the resultant TLVertex buffer to reside + * in device memory. + * The HAL driver will be asked to allocate dwNumVertices + dwNumClipVertices + * in the case described above. + */ + +typedef struct _D3DHAL_CALLBACKS +{ + DWORD dwSize; + + // Device context + LPD3DHAL_CONTEXTCREATECB ContextCreate; + LPD3DHAL_CONTEXTDESTROYCB ContextDestroy; + LPD3DHAL_CONTEXTDESTROYALLCB ContextDestroyAll; + + // Scene Capture + LPD3DHAL_SCENECAPTURECB SceneCapture; + + LPVOID lpReserved10; // Must be zero + LPVOID lpReserved11; // Must be zero + + // Execution + LPD3DHAL_RENDERSTATECB RenderState; + LPD3DHAL_RENDERPRIMITIVECB RenderPrimitive; + + DWORD dwReserved; // Must be zero + + // Textures + LPD3DHAL_TEXTURECREATECB TextureCreate; + LPD3DHAL_TEXTUREDESTROYCB TextureDestroy; + LPD3DHAL_TEXTURESWAPCB TextureSwap; + LPD3DHAL_TEXTUREGETSURFCB TextureGetSurf; + + LPVOID lpReserved12; // Must be zero + LPVOID lpReserved13; // Must be zero + LPVOID lpReserved14; // Must be zero + LPVOID lpReserved15; // Must be zero + LPVOID lpReserved16; // Must be zero + LPVOID lpReserved17; // Must be zero + LPVOID lpReserved18; // Must be zero + LPVOID lpReserved19; // Must be zero + LPVOID lpReserved20; // Must be zero + LPVOID lpReserved21; // Must be zero + + // Pipeline state + LPD3DHAL_GETSTATECB GetState; + + DWORD dwReserved0; // Must be zero + DWORD dwReserved1; // Must be zero + DWORD dwReserved2; // Must be zero + DWORD dwReserved3; // Must be zero + DWORD dwReserved4; // Must be zero + DWORD dwReserved5; // Must be zero + DWORD dwReserved6; // Must be zero + DWORD dwReserved7; // Must be zero + DWORD dwReserved8; // Must be zero + DWORD dwReserved9; // Must be zero + +} D3DHAL_CALLBACKS; +typedef D3DHAL_CALLBACKS *LPD3DHAL_CALLBACKS; + +#define D3DHAL_SIZE_V1 sizeof( D3DHAL_CALLBACKS ) + + +typedef struct _D3DHAL_SETRENDERTARGETDATA +{ + ULONG_PTR dwhContext; // in: Context handle + union + { + LPDIRECTDRAWSURFACE lpDDS; // in: new render target + LPDDRAWI_DDRAWSURFACE_LCL lpDDSLcl; + }; + + union + { + LPDIRECTDRAWSURFACE lpDDSZ; // in: new Z buffer + LPDDRAWI_DDRAWSURFACE_LCL lpDDSZLcl; + }; + + HRESULT ddrval; // out: Return value +} D3DHAL_SETRENDERTARGETDATA; +typedef D3DHAL_SETRENDERTARGETDATA FAR *LPD3DHAL_SETRENDERTARGETDATA; + +// This bit is the same as D3DCLEAR_RESERVED0 in d3d8types.h +// When set it means that driver has to cull rects against current viewport. +// The bit is set only for pure devices +// +#define D3DCLEAR_COMPUTERECTS 0x00000008l + +typedef struct _D3DHAL_CLEARDATA +{ + ULONG_PTR dwhContext; // in: Context handle + + // dwFlags can contain D3DCLEAR_TARGET or D3DCLEAR_ZBUFFER + DWORD dwFlags; // in: surfaces to clear + + DWORD dwFillColor; // in: Color value for rtarget + DWORD dwFillDepth; // in: Depth value for Z buffer + + LPD3DRECT lpRects; // in: Rectangles to clear + DWORD dwNumRects; // in: Number of rectangles + + HRESULT ddrval; // out: Return value +} D3DHAL_CLEARDATA; +typedef D3DHAL_CLEARDATA FAR *LPD3DHAL_CLEARDATA; + +typedef struct _D3DHAL_DRAWONEPRIMITIVEDATA +{ + ULONG_PTR dwhContext; // in: Context handle + + DWORD dwFlags; // in: flags + + D3DPRIMITIVETYPE PrimitiveType; // in: type of primitive to draw + union{ + D3DVERTEXTYPE VertexType; // in: type of vertices + DWORD dwFVFControl; // in: FVF control DWORD + }; + LPVOID lpvVertices; // in: pointer to vertices + DWORD dwNumVertices; // in: number of vertices + + DWORD dwReserved; // in: reserved + + HRESULT ddrval; // out: Return value + +} D3DHAL_DRAWONEPRIMITIVEDATA; +typedef D3DHAL_DRAWONEPRIMITIVEDATA *LPD3DHAL_DRAWONEPRIMITIVEDATA; + + +typedef struct _D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA +{ + ULONG_PTR dwhContext; // in: Context handle + + DWORD dwFlags; // in: flags word + + // Primitive and vertex type + D3DPRIMITIVETYPE PrimitiveType; // in: primitive type + union{ + D3DVERTEXTYPE VertexType; // in: vertex type + DWORD dwFVFControl; // in: FVF control DWORD + }; + + // Vertices + LPVOID lpvVertices; // in: vertex data + DWORD dwNumVertices; // in: vertex count + + // Indices + LPWORD lpwIndices; // in: index data + DWORD dwNumIndices; // in: index count + + HRESULT ddrval; // out: Return value +} D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA; +typedef D3DHAL_DRAWONEINDEXEDPRIMITIVEDATA *LPD3DHAL_DRAWONEINDEXEDPRIMITIVEDATA; + + +typedef struct _D3DHAL_DRAWPRIMCOUNTS +{ + WORD wNumStateChanges; + WORD wPrimitiveType; + WORD wVertexType; + WORD wNumVertices; +} D3DHAL_DRAWPRIMCOUNTS, *LPD3DHAL_DRAWPRIMCOUNTS; + +typedef struct _D3DHAL_DRAWPRIMITIVESDATA +{ + ULONG_PTR dwhContext; // in: Context handle + + DWORD dwFlags; + + // + // Data block: + // + // Consists of interleaved D3DHAL_DRAWPRIMCOUNTS, state change pairs, + // and primitive drawing commands. + // + // D3DHAL_DRAWPRIMCOUNTS: gives number of state change pairs and + // the information on the primitive to draw. + // wPrimitiveType is of type D3DPRIMITIVETYPE. Drivers + // must support all 7 of the primitive types specified + // in the DrawPrimitive API. + // Currently, wVertexType will always be D3DVT_TLVERTEX. + // If the wNumVertices member is 0, then the driver should + // return after doing the state changing. This is the + // terminator for the command stream. + // state change pairs: DWORD pairs specify the state changes that + // the driver should effect before drawing the primitive. + // wNumStateChanges can be 0, in which case the next primitive + // should be drawn without any state changes in between. + // If present, the state change pairs are NOT aligned, they + // immediately follow the PRIMCOUNTS structure. + // vertex data (if any): is 32-byte aligned. + // + // If a primcounts structure follows (i.e. if wNumVertices was nonzero + // in the previous one), then it will immediately follow the state + // changes or vertex data with no alignment padding. + // + + LPVOID lpvData; + + DWORD dwFVFControl; // in: FVF control DWORD + + HRESULT ddrval; // out: Return value +} D3DHAL_DRAWPRIMITIVESDATA; +typedef D3DHAL_DRAWPRIMITIVESDATA *LPD3DHAL_DRAWPRIMITIVESDATA; + +typedef DWORD (CALLBACK *LPD3DHAL_SETRENDERTARGETCB) (LPD3DHAL_SETRENDERTARGETDATA); +typedef DWORD (CALLBACK *LPD3DHAL_CLEARCB) (LPD3DHAL_CLEARDATA); +typedef DWORD (CALLBACK *LPD3DHAL_DRAWONEPRIMITIVECB) (LPD3DHAL_DRAWONEPRIMITIVEDATA); +typedef DWORD (CALLBACK *LPD3DHAL_DRAWONEINDEXEDPRIMITIVECB) (LPD3DHAL_DRAWONEINDEXEDPRIMITIVEDATA); +typedef DWORD (CALLBACK *LPD3DHAL_DRAWPRIMITIVESCB) (LPD3DHAL_DRAWPRIMITIVESDATA); + +typedef struct _D3DHAL_CALLBACKS2 +{ + DWORD dwSize; // size of struct + DWORD dwFlags; // flags for callbacks + LPD3DHAL_SETRENDERTARGETCB SetRenderTarget; + LPD3DHAL_CLEARCB Clear; + LPD3DHAL_DRAWONEPRIMITIVECB DrawOnePrimitive; + LPD3DHAL_DRAWONEINDEXEDPRIMITIVECB DrawOneIndexedPrimitive; + LPD3DHAL_DRAWPRIMITIVESCB DrawPrimitives; +} D3DHAL_CALLBACKS2; +typedef D3DHAL_CALLBACKS2 *LPD3DHAL_CALLBACKS2; + +#define D3DHAL_CALLBACKS2SIZE sizeof(D3DHAL_CALLBACKS2) + +#define D3DHAL2_CB32_SETRENDERTARGET 0x00000001L +#define D3DHAL2_CB32_CLEAR 0x00000002L +#define D3DHAL2_CB32_DRAWONEPRIMITIVE 0x00000004L +#define D3DHAL2_CB32_DRAWONEINDEXEDPRIMITIVE 0x00000008L +#define D3DHAL2_CB32_DRAWPRIMITIVES 0x00000010L + +/* -------------------------------------------------------------- + * D3DCallbacks3 - queried with GetDriverInfo (GUID_D3DCallbacks3). + * + * Clear2 - enables stencil clears (exposed to the API in + * IDirect3DViewport3::Clear2 + * ValidateTextureStageState - evaluates the context's current state (including + * multitexture) and returns an error if the hardware cannot + * accelerate the current state vector. + * DrawPrimitives2 - Renders primitives, and changes device state specified + * in the command buffer. + * + * Multitexture-aware drivers must implement both ValidateTextureStageState. + */ + +typedef struct _D3DHAL_CLEAR2DATA +{ + ULONG_PTR dwhContext; // in: Context handle + + // dwFlags can contain D3DCLEAR_TARGET, D3DCLEAR_ZBUFFER, and/or D3DCLEAR_STENCIL + DWORD dwFlags; // in: surfaces to clear + + DWORD dwFillColor; // in: Color value for rtarget + D3DVALUE dvFillDepth; // in: Depth value for Z buffer (0.0-1.0) + DWORD dwFillStencil; // in: value used to clear stencil buffer + + LPD3DRECT lpRects; // in: Rectangles to clear + DWORD dwNumRects; // in: Number of rectangles + + HRESULT ddrval; // out: Return value +} D3DHAL_CLEAR2DATA; +typedef D3DHAL_CLEAR2DATA FAR *LPD3DHAL_CLEAR2DATA; + +typedef struct _D3DHAL_VALIDATETEXTURESTAGESTATEDATA +{ + ULONG_PTR dwhContext; // in: Context handle + DWORD dwFlags; // in: Flags, currently set to 0 + ULONG_PTR dwReserved; // + DWORD dwNumPasses; // out: Number of passes the hardware + // can perform the operation in + HRESULT ddrval; // out: return value +} D3DHAL_VALIDATETEXTURESTAGESTATEDATA; +typedef D3DHAL_VALIDATETEXTURESTAGESTATEDATA *LPD3DHAL_VALIDATETEXTURESTAGESTATEDATA; + +//----------------------------------------------------------------------------- +// DrawPrimitives2 DDI +//----------------------------------------------------------------------------- + +// +// Command structure for vertex buffer rendering +// + +typedef struct _D3DHAL_DP2COMMAND +{ + BYTE bCommand; // vertex command + BYTE bReserved; + union + { + WORD wPrimitiveCount; // primitive count for unconnected primitives + WORD wStateCount; // count of render states to follow + }; +} D3DHAL_DP2COMMAND, *LPD3DHAL_DP2COMMAND; + +// +// DrawPrimitives2 commands: +// + +typedef enum _D3DHAL_DP2OPERATION +{ + D3DDP2OP_POINTS = 1, + D3DDP2OP_INDEXEDLINELIST = 2, + D3DDP2OP_INDEXEDTRIANGLELIST = 3, + D3DDP2OP_RENDERSTATE = 8, + D3DDP2OP_LINELIST = 15, + D3DDP2OP_LINESTRIP = 16, + D3DDP2OP_INDEXEDLINESTRIP = 17, + D3DDP2OP_TRIANGLELIST = 18, + D3DDP2OP_TRIANGLESTRIP = 19, + D3DDP2OP_INDEXEDTRIANGLESTRIP = 20, + D3DDP2OP_TRIANGLEFAN = 21, + D3DDP2OP_INDEXEDTRIANGLEFAN = 22, + D3DDP2OP_TRIANGLEFAN_IMM = 23, + D3DDP2OP_LINELIST_IMM = 24, + D3DDP2OP_TEXTURESTAGESTATE = 25, // Has edge flags and called from Execute + D3DDP2OP_INDEXEDTRIANGLELIST2 = 26, + D3DDP2OP_INDEXEDLINELIST2 = 27, + D3DDP2OP_VIEWPORTINFO = 28, + D3DDP2OP_WINFO = 29, +// two below are for pre-DX7 interface apps running DX7 driver + D3DDP2OP_SETPALETTE = 30, + D3DDP2OP_UPDATEPALETTE = 31, +#if(DIRECT3D_VERSION >= 0x0700) + // New for DX7 + D3DDP2OP_ZRANGE = 32, + D3DDP2OP_SETMATERIAL = 33, + D3DDP2OP_SETLIGHT = 34, + D3DDP2OP_CREATELIGHT = 35, + D3DDP2OP_SETTRANSFORM = 36, + D3DDP2OP_TEXBLT = 38, + D3DDP2OP_STATESET = 39, + D3DDP2OP_SETPRIORITY = 40, +#endif /* DIRECT3D_VERSION >= 0x0700 */ + D3DDP2OP_SETRENDERTARGET = 41, + D3DDP2OP_CLEAR = 42, +#if(DIRECT3D_VERSION >= 0x0700) + D3DDP2OP_SETTEXLOD = 43, + D3DDP2OP_SETCLIPPLANE = 44, +#endif /* DIRECT3D_VERSION >= 0x0700 */ +#if(DIRECT3D_VERSION >= 0x0800) + D3DDP2OP_CREATEVERTEXSHADER = 45, + D3DDP2OP_DELETEVERTEXSHADER = 46, + D3DDP2OP_SETVERTEXSHADER = 47, + D3DDP2OP_SETVERTEXSHADERCONST = 48, + D3DDP2OP_SETSTREAMSOURCE = 49, + D3DDP2OP_SETSTREAMSOURCEUM = 50, + D3DDP2OP_SETINDICES = 51, + D3DDP2OP_DRAWPRIMITIVE = 52, + D3DDP2OP_DRAWINDEXEDPRIMITIVE = 53, + D3DDP2OP_CREATEPIXELSHADER = 54, + D3DDP2OP_DELETEPIXELSHADER = 55, + D3DDP2OP_SETPIXELSHADER = 56, + D3DDP2OP_SETPIXELSHADERCONST = 57, + D3DDP2OP_CLIPPEDTRIANGLEFAN = 58, + D3DDP2OP_DRAWPRIMITIVE2 = 59, + D3DDP2OP_DRAWINDEXEDPRIMITIVE2= 60, + D3DDP2OP_DRAWRECTPATCH = 61, + D3DDP2OP_DRAWTRIPATCH = 62, + D3DDP2OP_VOLUMEBLT = 63, + D3DDP2OP_BUFFERBLT = 64, + D3DDP2OP_MULTIPLYTRANSFORM = 65, + D3DDP2OP_ADDDIRTYRECT = 66, + D3DDP2OP_ADDDIRTYBOX = 67, +#endif /* DIRECT3D_VERSION >= 0x0800 */ +#if(DIRECT3D_VERSION >= 0x0900) + D3DDP2OP_CREATEVERTEXSHADERDECL = 71, + D3DDP2OP_DELETEVERTEXSHADERDECL = 72, + D3DDP2OP_SETVERTEXSHADERDECL = 73, + D3DDP2OP_CREATEVERTEXSHADERFUNC = 74, + D3DDP2OP_DELETEVERTEXSHADERFUNC = 75, + D3DDP2OP_SETVERTEXSHADERFUNC = 76, + D3DDP2OP_SETVERTEXSHADERCONSTI = 77, + D3DDP2OP_SETSCISSORRECT = 79, + D3DDP2OP_SETSTREAMSOURCE2 = 80, + D3DDP2OP_BLT = 81, + D3DDP2OP_COLORFILL = 82, + D3DDP2OP_SETVERTEXSHADERCONSTB = 83, + D3DDP2OP_CREATEQUERY = 84, + D3DDP2OP_SETRENDERTARGET2 = 85, + D3DDP2OP_SETDEPTHSTENCIL = 86, + D3DDP2OP_RESPONSECONTINUE = 87, /* Can come only from driver */ + D3DDP2OP_RESPONSEQUERY = 88, /* Can come only from driver */ + D3DDP2OP_GENERATEMIPSUBLEVELS = 89, + D3DDP2OP_DELETEQUERY = 90, + D3DDP2OP_ISSUEQUERY = 91, + D3DDP2OP_SETPIXELSHADERCONSTI = 93, + D3DDP2OP_SETPIXELSHADERCONSTB = 94, + D3DDP2OP_SETSTREAMSOURCEFREQ = 95, + D3DDP2OP_SURFACEBLT = 96, + D3DDP2OP_SETCONVOLUTIONKERNELMONO = 97, + D3DDP2OP_COMPOSERECTS = 98, +#endif /* DIRECT3D_VERSION >= 0x0900 */ + +} D3DHAL_DP2OPERATION; + +// +// DrawPrimitives2 point primitives +// + +typedef struct _D3DHAL_DP2POINTS +{ + WORD wCount; + WORD wVStart; +} D3DHAL_DP2POINTS, *LPD3DHAL_DP2POINTS; + +// +// DrawPrimitives2 line primitives +// + +typedef struct _D3DHAL_DP2STARTVERTEX +{ + WORD wVStart; +} D3DHAL_DP2STARTVERTEX, *LPD3DHAL_DP2STARTVERTEX; + +typedef struct _D3DHAL_DP2LINELIST +{ + WORD wVStart; +} D3DHAL_DP2LINELIST, *LPD3DHAL_DP2LINELIST; + +typedef struct _D3DHAL_DP2INDEXEDLINELIST +{ + WORD wV1; + WORD wV2; +} D3DHAL_DP2INDEXEDLINELIST, *LPD3DHAL_DP2INDEXEDLINELIST; + +typedef struct _D3DHAL_DP2LINESTRIP +{ + WORD wVStart; +} D3DHAL_DP2LINESTRIP, *LPD3DHAL_DP2LINESTRIP; + +typedef struct _D3DHAL_DP2INDEXEDLINESTRIP +{ + WORD wV[2]; +} D3DHAL_DP2INDEXEDLINESTRIP, *LPD3DHAL_DP2INDEXEDLINESTRIP; + +// +// DrawPrimitives2 triangle primitives +// + +typedef struct _D3DHAL_DP2TRIANGLELIST +{ + WORD wVStart; +} D3DHAL_DP2TRIANGLELIST, *LPD3DHAL_DP2TRIANGLELIST; + +typedef struct _D3DHAL_DP2INDEXEDTRIANGLELIST +{ + WORD wV1; + WORD wV2; + WORD wV3; + WORD wFlags; +} D3DHAL_DP2INDEXEDTRIANGLELIST, *LPD3DHAL_DP2INDEXEDTRIANGLELIST; + +typedef struct _D3DHAL_DP2INDEXEDTRIANGLELIST2 +{ + WORD wV1; + WORD wV2; + WORD wV3; +} D3DHAL_DP2INDEXEDTRIANGLELIST2, *LPD3DHAL_DP2INDEXEDTRIANGLELIST2; + +typedef struct _D3DHAL_DP2TRIANGLESTRIP +{ + WORD wVStart; +} D3DHAL_DP2TRIANGLESTRIP, *LPD3DHAL_DP2TRIANGLESTRIP; + +typedef struct _D3DHAL_DP2INDEXEDTRIANGLESTRIP +{ + WORD wV[3]; +} D3DHAL_DP2INDEXEDTRIANGLESTRIP, *LPD3DHAL_DP2INDEXEDTRIANGLESTRIP; + +typedef struct _D3DHAL_DP2TRIANGLEFAN +{ + WORD wVStart; +} D3DHAL_DP2TRIANGLEFAN, *LPD3DHAL_DP2TRIANGLEFAN; + +typedef struct _D3DHAL_DP2INDEXEDTRIANGLEFAN +{ + WORD wV[3]; +} D3DHAL_DP2INDEXEDTRIANGLEFAN, *LPD3DHAL_DP2INDEXEDTRIANGLEFAN; + +typedef struct _D3DHAL_DP2TRIANGLEFAN_IMM +{ + DWORD dwEdgeFlags; +} D3DHAL_DP2TRIANGLEFAN_IMM; + +typedef D3DHAL_DP2TRIANGLEFAN_IMM *LPD3DHAL_DP2TRIANGLEFAN_IMM; + +// +// DrawPrimitives2 Renderstate changes +// + +typedef struct _D3DHAL_DP2RENDERSTATE +{ + D3DRENDERSTATETYPE RenderState; + union + { + D3DVALUE dvState; + DWORD dwState; + }; +} D3DHAL_DP2RENDERSTATE; +typedef D3DHAL_DP2RENDERSTATE * LPD3DHAL_DP2RENDERSTATE; + +typedef struct _D3DHAL_DP2TEXTURESTAGESTATE +{ + WORD wStage; + WORD TSState; + DWORD dwValue; +} D3DHAL_DP2TEXTURESTAGESTATE; +typedef D3DHAL_DP2TEXTURESTAGESTATE *LPD3DHAL_DP2TEXTURESTAGESTATE; + +typedef struct _D3DHAL_DP2VIEWPORTINFO +{ + DWORD dwX; + DWORD dwY; + DWORD dwWidth; + DWORD dwHeight; +} D3DHAL_DP2VIEWPORTINFO; +typedef D3DHAL_DP2VIEWPORTINFO *LPD3DHAL_DP2VIEWPORTINFO; + +typedef struct _D3DHAL_DP2WINFO +{ + D3DVALUE dvWNear; + D3DVALUE dvWFar; +} D3DHAL_DP2WINFO; +typedef D3DHAL_DP2WINFO *LPD3DHAL_DP2WINFO; + +typedef struct _D3DHAL_DP2SETPALETTE +{ + DWORD dwPaletteHandle; + DWORD dwPaletteFlags; + DWORD dwSurfaceHandle; +} D3DHAL_DP2SETPALETTE; +typedef D3DHAL_DP2SETPALETTE *LPD3DHAL_DP2SETPALETTE; + +typedef struct _D3DHAL_DP2UPDATEPALETTE +{ + DWORD dwPaletteHandle; + WORD wStartIndex; + WORD wNumEntries; +} D3DHAL_DP2UPDATEPALETTE; +typedef D3DHAL_DP2UPDATEPALETTE *LPD3DHAL_DP2UPDATEPALETTE; + +typedef struct _D3DHAL_DP2SETRENDERTARGET +{ + DWORD hRenderTarget; + DWORD hZBuffer; +} D3DHAL_DP2SETRENDERTARGET; +typedef D3DHAL_DP2SETRENDERTARGET *LPD3DHAL_DP2SETRENDERTARGET; + +#if(DIRECT3D_VERSION >= 0x0700) +// Values for dwOperations in the D3DHAL_DP2STATESET +#define D3DHAL_STATESETBEGIN 0 +#define D3DHAL_STATESETEND 1 +#define D3DHAL_STATESETDELETE 2 +#define D3DHAL_STATESETEXECUTE 3 +#define D3DHAL_STATESETCAPTURE 4 +#endif /* DIRECT3D_VERSION >= 0x0700 */ +#if(DIRECT3D_VERSION >= 0x0800) +#define D3DHAL_STATESETCREATE 5 +#endif /* DIRECT3D_VERSION >= 0x0800 */ +#if(DIRECT3D_VERSION >= 0x0700) + +typedef struct _D3DHAL_DP2STATESET +{ + DWORD dwOperation; + DWORD dwParam; // State set handle passed with D3DHAL_STATESETBEGIN, + // D3DHAL_STATESETEXECUTE, D3DHAL_STATESETDELETE + // D3DHAL_STATESETCAPTURE + D3DSTATEBLOCKTYPE sbType; // Type use with D3DHAL_STATESETBEGIN/END +} D3DHAL_DP2STATESET; +typedef D3DHAL_DP2STATESET *LPD3DHAL_DP2STATESET; +// +// T&L Hal specific stuff +// +typedef struct _D3DHAL_DP2ZRANGE +{ + D3DVALUE dvMinZ; + D3DVALUE dvMaxZ; +} D3DHAL_DP2ZRANGE; +typedef D3DHAL_DP2ZRANGE *LPD3DHAL_DP2ZRANGE; + +typedef D3DMATERIAL7 D3DHAL_DP2SETMATERIAL, *LPD3DHAL_DP2SETMATERIAL; + +// Values for dwDataType in D3DHAL_DP2SETLIGHT +#define D3DHAL_SETLIGHT_ENABLE 0 +#define D3DHAL_SETLIGHT_DISABLE 1 +// If this is set, light data will be passed in after the +// D3DLIGHT7 structure +#define D3DHAL_SETLIGHT_DATA 2 + +typedef struct _D3DHAL_DP2SETLIGHT +{ + DWORD dwIndex; + DWORD dwDataType; +} D3DHAL_DP2SETLIGHT; +typedef D3DHAL_DP2SETLIGHT *LPD3DHAL_DP2SETLIGHT; + +typedef struct _D3DHAL_DP2SETCLIPPLANE +{ + DWORD dwIndex; + D3DVALUE plane[4]; +} D3DHAL_DP2SETCLIPPLANE; +typedef D3DHAL_DP2SETCLIPPLANE *LPD3DHAL_DP2SETCLIPPLANE; + +typedef struct _D3DHAL_DP2CREATELIGHT +{ + DWORD dwIndex; +} D3DHAL_DP2CREATELIGHT; +typedef D3DHAL_DP2CREATELIGHT *LPD3DHAL_DP2CREATELIGHT; + +typedef struct _D3DHAL_DP2SETTRANSFORM +{ + D3DTRANSFORMSTATETYPE xfrmType; + D3DMATRIX matrix; +} D3DHAL_DP2SETTRANSFORM; +typedef D3DHAL_DP2SETTRANSFORM *LPD3DHAL_DP2SETTRANSFORM; + +typedef struct _D3DHAL_DP2MULTIPLYTRANSFORM +{ + D3DTRANSFORMSTATETYPE xfrmType; + D3DMATRIX matrix; +} D3DHAL_DP2MULTIPLYTRANSFORM; +typedef D3DHAL_DP2MULTIPLYTRANSFORM *LPD3DHAL_DP2MULTIPLYTRANSFORM; + +typedef struct _D3DHAL_DP2EXT +{ + DWORD dwExtToken; + DWORD dwSize; +} D3DHAL_DP2EXT; +typedef D3DHAL_DP2EXT *LPD3DHAL_DP2EXT; + +typedef struct _D3DHAL_DP2TEXBLT +{ + DWORD dwDDDestSurface;// dest surface + DWORD dwDDSrcSurface; // src surface + POINT pDest; + RECTL rSrc; // src rect + DWORD dwFlags; // blt flags +} D3DHAL_DP2TEXBLT; +typedef D3DHAL_DP2TEXBLT *LPD3DHAL_DP2TEXBLT; + +typedef struct _D3DHAL_DP2SETPRIORITY +{ + DWORD dwDDSurface; + DWORD dwPriority; +} D3DHAL_DP2SETPRIORITY; +typedef D3DHAL_DP2SETPRIORITY *LPD3DHAL_DP2SETPRIORITY; +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +typedef struct _D3DHAL_DP2CLEAR +{ + // dwFlags can contain D3DCLEAR_TARGET, D3DCLEAR_ZBUFFER, and/or D3DCLEAR_STENCIL + DWORD dwFlags; // in: surfaces to clear + DWORD dwFillColor; // in: Color value for rtarget + D3DVALUE dvFillDepth; // in: Depth value for Z buffer (0.0-1.0) + DWORD dwFillStencil; // in: value used to clear stencil buffer + RECT Rects[1]; // in: Rectangles to clear +} D3DHAL_DP2CLEAR; +typedef D3DHAL_DP2CLEAR *LPD3DHAL_DP2CLEAR; + + +#if(DIRECT3D_VERSION >= 0x0700) +typedef struct _D3DHAL_DP2SETTEXLOD +{ + DWORD dwDDSurface; + DWORD dwLOD; +} D3DHAL_DP2SETTEXLOD; +typedef D3DHAL_DP2SETTEXLOD *LPD3DHAL_DP2SETTEXLOD; +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#if(DIRECT3D_VERSION >= 0x0800) + +// Used by SetVertexShader, DeleteVertexShader +// SetVertexShaderDecl, DeleteVertexShaderDecl, +// SetVertexShaderFunc, DeleteVertexShaderFunc +typedef struct _D3DHAL_DP2VERTEXSHADER +{ + // Vertex shader handle. + // The handle could be 0, meaning that the current vertex shader is invalid + // (not set). When driver recieves handle 0, it should invalidate all + // streams pointer +#endif /* DIRECT3D_VERSION >= 0x0800 */ +#if(DIRECT3D_VERSION >= 0x0900) + // When SetVertexShaderDecl is used, the dwHandle could be a legacy FVF + // handle or a DX9 declaration handle. Bit 0 is set for DX9 declaration. + // + // When SetVertexShaderFunc is used and dwHandle is zero, this means fixed + // function pipeline +#endif /* DIRECT3D_VERSION >= 0x0900 */ +#if(DIRECT3D_VERSION >= 0x0800) + DWORD dwHandle; +} D3DHAL_DP2VERTEXSHADER; +typedef D3DHAL_DP2VERTEXSHADER *LPD3DHAL_DP2VERTEXSHADER; + +typedef struct _D3DHAL_DP2CREATEVERTEXSHADER +{ + DWORD dwHandle; // Shader handle + DWORD dwDeclSize; // Shader declaration size in bytes + DWORD dwCodeSize; // Shader code size in bytes + // Declaration follows + // Shader code follows +} D3DHAL_DP2CREATEVERTEXSHADER; +typedef D3DHAL_DP2CREATEVERTEXSHADER *LPD3DHAL_DP2CREATEVERTEXSHADER; + +// Used with all types of vertex shader constants +typedef struct _D3DHAL_DP2SETVERTEXSHADERCONST +{ + DWORD dwRegister; // Const register to start copying + DWORD dwCount; // Number of 4-float vectors to copy for D3DDP2OP_SETVERTEXSHADERCONST + // Number of 4-integer vectors to copy for D3DDP2OP_SETVERTEXSHADERCONSTI + // Number of BOOL values to copy for D3DDP2OP_SETVERTEXSHADERCONSTB + // Data follows +} D3DHAL_DP2SETVERTEXSHADERCONST; +typedef D3DHAL_DP2SETVERTEXSHADERCONST *LPD3DHAL_DP2SETVERTEXSHADERCONST; + +typedef struct _D3DHAL_DP2SETSTREAMSOURCE +{ + DWORD dwStream; // Stream index, starting from zero + DWORD dwVBHandle; // Vertex buffer handle + DWORD dwStride; // Vertex size in bytes +} D3DHAL_DP2SETSTREAMSOURCE; +typedef D3DHAL_DP2SETSTREAMSOURCE *LPD3DHAL_DP2SETSTREAMSOURCE; + +typedef struct _D3DHAL_DP2SETSTREAMSOURCEUM +{ + DWORD dwStream; // Stream index, starting from zero + DWORD dwStride; // Vertex size in bytes +} D3DHAL_DP2SETSTREAMSOURCEUM; +typedef D3DHAL_DP2SETSTREAMSOURCEUM *LPD3DHAL_DP2SETSTREAMSOURCEUM; + +typedef struct _D3DHAL_DP2SETINDICES +{ + DWORD dwVBHandle; // Index buffer handle + DWORD dwStride; // Index size in bytes (2 or 4) +} D3DHAL_DP2SETINDICES; +typedef D3DHAL_DP2SETINDICES *LPD3DHAL_DP2SETINDICES; + +typedef struct _D3DHAL_DP2DRAWPRIMITIVE +{ + D3DPRIMITIVETYPE primType; + DWORD VStart; + DWORD PrimitiveCount; +} D3DHAL_DP2DRAWPRIMITIVE; +typedef D3DHAL_DP2DRAWPRIMITIVE *LPD3DHAL_DP2DRAWPRIMITIVE; + +typedef struct _D3DHAL_DP2DRAWINDEXEDPRIMITIVE +{ + D3DPRIMITIVETYPE primType; + INT BaseVertexIndex; // Vertex which corresponds to index 0 + DWORD MinIndex; // Min vertex index in the vertex buffer + DWORD NumVertices; // Number of vertices starting from MinIndex + DWORD StartIndex; // Start index in the index buffer + DWORD PrimitiveCount; +} D3DHAL_DP2DRAWINDEXEDPRIMITIVE; +typedef D3DHAL_DP2DRAWINDEXEDPRIMITIVE *LPD3DHAL_DP2DRAWINDEXEDPRIMITIVE; + +typedef struct _D3DHAL_CLIPPEDTRIANGLEFAN +{ + DWORD FirstVertexOffset; // Offset in bytes in the current stream 0 + DWORD dwEdgeFlags; + DWORD PrimitiveCount; +} D3DHAL_CLIPPEDTRIANGLEFAN; +typedef D3DHAL_CLIPPEDTRIANGLEFAN *LPD3DHAL_CLIPPEDTRIANGLEFAN; + +typedef struct _D3DHAL_DP2DRAWPRIMITIVE2 +{ + D3DPRIMITIVETYPE primType; + DWORD FirstVertexOffset; // Offset in bytes in the stream 0 + DWORD PrimitiveCount; +} D3DHAL_DP2DRAWPRIMITIVE2; +typedef D3DHAL_DP2DRAWPRIMITIVE2 *LPD3DHAL_DP2DRAWPRIMITIVE2; + +typedef struct _D3DHAL_DP2DRAWINDEXEDPRIMITIVE2 +{ + D3DPRIMITIVETYPE primType; + INT BaseVertexOffset; // Stream 0 offset of the vertex which + // corresponds to index 0. This offset could be + // negative, but when an index is added to the + // offset the result is positive + DWORD MinIndex; // Min vertex index in the vertex buffer + DWORD NumVertices; // Number of vertices starting from MinIndex + DWORD StartIndexOffset; // Offset of the start index in the index buffer + DWORD PrimitiveCount; // Number of triangles (points, lines) +} D3DHAL_DP2DRAWINDEXEDPRIMITIVE2; +typedef D3DHAL_DP2DRAWINDEXEDPRIMITIVE2 *LPD3DHAL_DP2DRAWINDEXEDPRIMITIVE2; + +// Used by SetPixelShader and DeletePixelShader +typedef struct _D3DHAL_DP2PIXELSHADER +{ + // Pixel shader handle. + // The handle could be 0, meaning that the current pixel shader is invalid + // (not set). + DWORD dwHandle; +} D3DHAL_DP2PIXELSHADER; +typedef D3DHAL_DP2PIXELSHADER *LPD3DHAL_DP2PIXELSHADER; + +typedef struct _D3DHAL_DP2CREATEPIXELSHADER +{ + DWORD dwHandle; // Shader handle + DWORD dwCodeSize; // Shader code size in bytes + // Shader code follows +} D3DHAL_DP2CREATEPIXELSHADER; +typedef D3DHAL_DP2CREATEPIXELSHADER *LPD3DHAL_DP2CREATEPIXELSHADER; + +typedef struct _D3DHAL_DP2SETPIXELSHADERCONST +{ + DWORD dwRegister; // Const register to start copying + DWORD dwCount; // Number of 4-float vectors to copy for D3DDP2OP_SETPIXELSHADERCONST + // Number of 4-integer vectors to copy for D3DDP2OP_SETPIXELSHADERCONSTI + // Number of BOOL values to copy for D3DDP2OP_SETPIXELSHADERCONSTB + // Data follows +} D3DHAL_DP2SETPIXELSHADERCONST; +typedef D3DHAL_DP2SETPIXELSHADERCONST *LPD3DHAL_DP2SETPIXELSHADERCONST; + +// Flags that can be supplied to DRAWRECTPATCH and DRAWTRIPATCH +#define RTPATCHFLAG_HASSEGS 0x00000001L +#define RTPATCHFLAG_HASINFO 0x00000002L + +typedef struct _D3DHAL_DP2DRAWRECTPATCH +{ + DWORD Handle; + DWORD Flags; + // Optionally followed by D3DFLOAT[4] NumSegments and/or D3DRECTPATCH_INFO +} D3DHAL_DP2DRAWRECTPATCH; +typedef D3DHAL_DP2DRAWRECTPATCH *LPD3DHAL_DP2DRAWRECTPATCH; + +typedef struct _D3DHAL_DP2DRAWTRIPATCH +{ + DWORD Handle; + DWORD Flags; + // Optionally followed by D3DFLOAT[3] NumSegments and/or D3DTRIPATCH_INFO +} D3DHAL_DP2DRAWTRIPATCH; +typedef D3DHAL_DP2DRAWTRIPATCH *LPD3DHAL_DP2DRAWTRIPATCH; + +typedef struct _D3DHAL_DP2VOLUMEBLT +{ + DWORD dwDDDestSurface;// dest surface + DWORD dwDDSrcSurface; // src surface + DWORD dwDestX; // dest X (width) + DWORD dwDestY; // dest Y (height) + DWORD dwDestZ; // dest Z (depth) + D3DBOX srcBox; // src box + DWORD dwFlags; // blt flags +} D3DHAL_DP2VOLUMEBLT; +typedef D3DHAL_DP2VOLUMEBLT *LPD3DHAL_DP2VOLUMEBLT; + +typedef struct _D3DHAL_DP2BUFFERBLT +{ + DWORD dwDDDestSurface; // dest surface + DWORD dwDDSrcSurface; // src surface + DWORD dwOffset; // Offset in the dest surface (in BYTES) + D3DRANGE rSrc; // src range + DWORD dwFlags; // blt flags +} D3DHAL_DP2BUFFERBLT; +typedef D3DHAL_DP2BUFFERBLT *LPD3DHAL_DP2BUFFERBLT; + +typedef struct _D3DHAL_DP2ADDDIRTYRECT +{ + DWORD dwSurface; // Driver managed surface + RECTL rDirtyArea; // Area marked dirty +} D3DHAL_DP2ADDDIRTYRECT; +typedef D3DHAL_DP2ADDDIRTYRECT *LPD3DHAL_DP2ADDDIRTYRECT; + +typedef struct _D3DHAL_DP2ADDDIRTYBOX +{ + DWORD dwSurface; // Driver managed volume + D3DBOX DirtyBox; // Box marked dirty +} D3DHAL_DP2ADDDIRTYBOX; +typedef D3DHAL_DP2ADDDIRTYBOX *LPD3DHAL_DP2ADDDIRTYBOX; + +#endif /* DIRECT3D_VERSION >= 0x0800 */ + +#if(DIRECT3D_VERSION >= 0x0900) + +typedef struct _D3DHAL_DP2CREATEVERTEXSHADERDECL +{ + DWORD dwHandle; // Shader function handle + DWORD dwNumVertexElements; // Number of vertex elements + // D3DVERTEXELEMENT9 VertexElements[]; Vertex elements follow +} D3DHAL_DP2CREATEVERTEXSHADERDECL ; +typedef D3DHAL_DP2CREATEVERTEXSHADERDECL *LPD3DHAL_DP2CREATEVERTEXSHADERDECL; + +typedef struct _D3DHAL_DP2CREATEVERTEXSHADERFUNC +{ + DWORD dwHandle; // Shader function handle + DWORD dwSize; // Shader function size in bytes + // Shader declaration follows +} D3DHAL_DP2CREATEVERTEXSHADERFUNC ; +typedef D3DHAL_DP2CREATEVERTEXSHADERFUNC *LPD3DHAL_DP2CREATEVERTEXSHADERFUNC; + +typedef struct _D3DHAL_DP2SETSTREAMSOURCE2 +{ + DWORD dwStream; // Stream index, starting from zero + DWORD dwVBHandle; // Vertex buffer handle + DWORD dwOffset; // Offset of the first vertex size in bytes + DWORD dwStride; // Vertex size in bytes +} D3DHAL_DP2SETSTREAMSOURCE2; +typedef D3DHAL_DP2SETSTREAMSOURCE2 *LPD3DHAL_DP2SETSTREAMSOURCE2; + +typedef struct _D3DHAL_DP2SETSTREAMSOURCEFREQ +{ + DWORD dwStream; // Stream index, starting from zero + DWORD dwDivider; // Stream source divider +} D3DHAL_DP2SETSTREAMSOURCEFREQ; +typedef D3DHAL_DP2SETSTREAMSOURCEFREQ *LPD3DHAL_DP2SETSTREAMSOURCEFREQ; + +#define D3DHAL_ROW_WEIGHTS 1 +#define D3DHAL_COL_WEIGHTS 2 +typedef struct _D3DHAL_DP2SETCONVOLUTIONKERNELMONO +{ + DWORD dwWidth; // Kernel width + DWORD dwHeight; // Kernel height + DWORD dwFlags; + // If dwFlags & D3DHAL_ROW_WEIGHTS, then width floats follow. Otherwise row weights are 1.0. + // If dwFlags & D3DHAL_COL_WEIGHTS, then height floats follow. Otherwise column weights are 1.0. +} D3DHAL_DP2SETCONVOLUTIONKERNELMONO; +typedef D3DHAL_DP2SETCONVOLUTIONKERNELMONO *LPD3DHAL_DP2SETCONVOLUTIONKERNELMONO; + +typedef struct _D3DHAL_DP2COMPOSERECTS +{ + DWORD SrcSurfaceHandle; + DWORD DstSurfaceHandle; + DWORD SrcRectDescsVBHandle; + UINT NumRects; + DWORD DstRectDescsVBHandle; + D3DCOMPOSERECTSOP Operation; + INT XOffset; + INT YOffset; +} D3DHAL_DP2COMPOSERECTS; +typedef D3DHAL_DP2COMPOSERECTS *LPD3DHAL_DP2COMPOSERECTS; + +typedef RECT D3DHAL_DP2SETSCISSORRECT; +typedef D3DHAL_DP2SETSCISSORRECT *LPD3DHAL_DP2SETSCISSORRECT; + +typedef struct _D3DHAL_DP2BLT +{ + DWORD dwSource; // Source surface + RECTL rSource; // Source rectangle + DWORD dwSourceMipLevel; // Miplevel of lightweight surface + DWORD dwDest; // Dest surface + RECTL rDest; // Dest rectangle + DWORD dwDestMipLevel; // Miplevel of lightweight surface + DWORD Flags; // Can be DP2BLT_POINT, DP2BLT_LINEAR +} D3DHAL_DP2BLT; +typedef D3DHAL_DP2BLT *LPD3DHAL_DP2BLT; + +#define DP2BLT_POINT 0x00000001L +#define DP2BLT_LINEAR 0x00000002L + +typedef struct _D3DHAL_DP2COLORFILL +{ + DWORD dwSurface; // Surface getting filled + RECTL rRect; // Surface dimensions to fill + D3DCOLOR Color; // A8R8G8B8 fill color +} D3DHAL_DP2COLORFILL; +typedef D3DHAL_DP2COLORFILL *LPD3DHAL_DP2COLORFILL; + +typedef struct _D3DHAL_DP2SURFACEBLT +{ + DWORD dwSource; // Source surface + RECTL rSource; // Source rectangle + DWORD dwSourceMipLevel; // Miplevel of lightweight surface + DWORD dwDest; // Dest surface + RECTL rDest; // Dest rectangle + DWORD dwDestMipLevel; // Miplevel of lightweight surface + DWORD Flags; // No flags currently defined +} D3DHAL_DP2SURFACEBLT; +typedef D3DHAL_DP2SURFACEBLT *LPD3DHAL_DP2SURFACEBLT; + +typedef D3DHAL_DP2SETVERTEXSHADERCONST D3DHAL_DP2SETVERTEXSHADERCONSTI; +typedef D3DHAL_DP2SETVERTEXSHADERCONST *LPD3DHAL_DP2SETVERTEXSHADERCONSTI; +typedef D3DHAL_DP2SETVERTEXSHADERCONST D3DHAL_DP2SETVERTEXSHADERCONSTB; +typedef D3DHAL_DP2SETVERTEXSHADERCONSTB *LPD3DHAL_DP2SETVERTEXSHADERCONSTB; + +typedef D3DHAL_DP2SETPIXELSHADERCONST D3DHAL_DP2SETPIXELSHADERCONSTI; +typedef D3DHAL_DP2SETPIXELSHADERCONST *LPD3DHAL_DP2SETPIXELSHADERCONSTI; +typedef D3DHAL_DP2SETPIXELSHADERCONST D3DHAL_DP2SETPIXELSHADERCONSTB; +typedef D3DHAL_DP2SETPIXELSHADERCONSTB *LPD3DHAL_DP2SETPIXELSHADERCONSTB; + +typedef struct _D3DHAL_DP2CREATEQUERY +{ + DWORD dwQueryID; + D3DQUERYTYPE QueryType; +} D3DHAL_DP2CREATEQUERY; +typedef D3DHAL_DP2CREATEQUERY *LPD3DHAL_DP2CREATEQUERY; + +typedef struct _D3DHAL_DP2DELETEQUERY +{ + DWORD dwQueryID; +} D3DHAL_DP2DELETEQUERY; +typedef D3DHAL_DP2DELETEQUERY *LPD3DHAL_DP2DELETEQUERY; + +typedef struct _D3DHAL_DP2ISSUEQUERY +{ + DWORD dwQueryID; + DWORD dwFlags; +} D3DHAL_DP2ISSUEQUERY; +typedef D3DHAL_DP2ISSUEQUERY *LPD3DHAL_DP2ISSUEQUERY; + +typedef struct _D3DHAL_DP2SETRENDERTARGET2 +{ + DWORD RTIndex; + DWORD hRenderTarget; +} D3DHAL_DP2SETRENDERTARGET2; +typedef D3DHAL_DP2SETRENDERTARGET2 *LPD3DHAL_DP2SETRENDERTARGET2; + +typedef struct _D3DHAL_DP2SETDEPTHSTENCIL +{ + DWORD hZBuffer; +} D3DHAL_DP2SETDEPTHSTENCIL; +typedef D3DHAL_DP2SETDEPTHSTENCIL *LPD3DHAL_DP2SETDEPTHSTENCIL; + +typedef struct _D3DHAL_DP2GENERATEMIPSUBLEVELS +{ + DWORD hSurface; + D3DTEXTUREFILTERTYPE Filter; +} D3DHAL_DP2GENERATEMIPSUBLEVELS; +typedef D3DHAL_DP2GENERATEMIPSUBLEVELS *LPD3DHAL_DP2GENERATEMIPSUBLEVELS; + +// +// Command structure for driver responses: +// + +typedef struct _D3DHAL_DP2RESPONSE +{ + BYTE bCommand; /* response/ command id */ + BYTE bReserved; + WORD wStateCount; /* count of responses to follow */ + DWORD dwTotalSize; /* total size of response (including the DP2REPONSE struct) to enable skipping over. */ +} D3DHAL_DP2RESPONSE, *LPD3DHAL_DP2RESPONSE; + +/* Begin Responses */ +typedef struct _D3DHAL_DP2RESPONSEQUERY +{ + DWORD dwQueryID; + DWORD dwSize; +} D3DHAL_DP2RESPONSEQUERY; +typedef D3DHAL_DP2RESPONSEQUERY *LPD3DHAL_DP2RESPONSEQUERY; +/* End Responses */ + +#endif /* DIRECT3D_VERSION >= 0x0900 */ + +typedef struct _D3DHAL_DRAWPRIMITIVES2DATA { + ULONG_PTR dwhContext; // in: Context handle + DWORD dwFlags; // in: flags + DWORD dwVertexType; // in: vertex type + LPDDRAWI_DDRAWSURFACE_LCL lpDDCommands; // in: vertex buffer command data + DWORD dwCommandOffset; // in: offset to start of vertex buffer commands + DWORD dwCommandLength; // in: number of bytes of command data + union + { // based on D3DHALDP2_USERMEMVERTICES flag + LPDDRAWI_DDRAWSURFACE_LCL lpDDVertex;// in: surface containing vertex data + LPVOID lpVertices; // in: User mode pointer to vertices + }; + DWORD dwVertexOffset; // in: offset to start of vertex data + DWORD dwVertexLength; // in: number of vertices of vertex data + DWORD dwReqVertexBufSize; // in: number of bytes required for the next vertex buffer + DWORD dwReqCommandBufSize; // in: number of bytes required for the next commnand buffer + LPDWORD lpdwRStates; // in: Pointer to the array where render states are updated + union + { + DWORD dwVertexSize; // in: Size of each vertex in bytes + HRESULT ddrval; // out: return value + }; + DWORD dwErrorOffset; // out: offset in lpDDCommands to + // first D3DHAL_COMMAND not handled +} D3DHAL_DRAWPRIMITIVES2DATA; +typedef D3DHAL_DRAWPRIMITIVES2DATA *LPD3DHAL_DRAWPRIMITIVES2DATA; + +// Macros to access shader binary code +#define D3DSI_GETREGNUM(token) (token & D3DSP_REGNUM_MASK) +#define D3DSI_GETOPCODE(command) (command & D3DSI_OPCODE_MASK) +#define D3DSI_GETWRITEMASK(token) (token & D3DSP_WRITEMASK_ALL) +#define D3DVS_GETSWIZZLECOMP(source, component) (source >> ((component << 1) + 16) & 0x3) +#define D3DVS_GETSWIZZLE(token) (token & D3DVS_SWIZZLE_MASK) +#define D3DVS_GETSRCMODIFIER(token) (token & D3DSP_SRCMOD_MASK) +#define D3DVS_GETADDRESSMODE(token) (token & D3DVS_ADDRESSMODE_MASK) + +#if(DIRECT3D_VERSION < 0x0900) + +#define D3DSI_GETREGTYPE(token) ((D3DSHADER_PARAM_REGISTER_TYPE)(token & D3DSP_REGTYPE_MASK)) + +#else + +#define D3DSI_GETREGTYPE(token) ((D3DSHADER_PARAM_REGISTER_TYPE)(((token & D3DSP_REGTYPE_MASK) >> D3DSP_REGTYPE_SHIFT) | \ + ((token & D3DSP_REGTYPE_MASK2) >> D3DSP_REGTYPE_SHIFT2))) +#define D3DSI_GETUSAGE(token) ((token & D3DSP_DCL_USAGE_MASK) >> D3DSP_DCL_USAGE_SHIFT) +#define D3DSI_GETUSAGEINDEX(token) ((token & D3DSP_DCL_USAGEINDEX_MASK) >> D3DSP_DCL_USAGEINDEX_SHIFT) +#define D3DSI_GETINSTLENGTH(token) ((token & D3DSI_INSTLENGTH_MASK) >> D3DSI_INSTLENGTH_SHIFT) +#define D3DSI_GETCOMPARISON(token) ((D3DSHADER_COMPARISON)((token & D3DSHADER_COMPARISON_MASK) >> D3DSHADER_COMPARISON_SHIFT)) +#define D3DSI_GETREGISTERPROPERTIES(token) (token & D3DSP_REGISTERPROPERTIES_MASK) +#define D3DSI_GETTEXTURETYPE(token) (token & D3DSP_TEXTURETYPE_MASK) +#define D3DSI_GETDSTMODIFIER(token) (token & D3DSP_DSTMOD_MASK) +#define D3DSI_GETSWIZZLECOMP(source, component) (source >> ((component << 1) + 16) & 0x3) +#define D3DSI_GETSWIZZLE(token) (token & D3DVS_SWIZZLE_MASK) +#define D3DSI_GETSRCMODIFIER(token) (token & D3DSP_SRCMOD_MASK) +#define D3DSI_GETADDRESSMODE(token) (token & D3DVS_ADDRESSMODE_MASK) + +#ifdef __cplusplus +// This gets regtype, and also maps D3DSPR_CONSTn to D3DSPR_CONST (for easier parsing) +inline D3DSHADER_PARAM_REGISTER_TYPE D3DSI_GETREGTYPE_RESOLVING_CONSTANTS(DWORD token) +{ + D3DSHADER_PARAM_REGISTER_TYPE RegType = D3DSI_GETREGTYPE(token); + switch(RegType) + { + case D3DSPR_CONST4: + case D3DSPR_CONST3: + case D3DSPR_CONST2: + return D3DSPR_CONST; + default: + return RegType; + } +} + +// The inline function below retrieves register number for an opcode, +// taking into account that: if the type is a +// D3DSPR_CONSTn, the register number needs to be remapped. +// +// D3DSPR_CONST is for c0-c2047 +// D3DSPR_CONST2 is for c2048-c4095 +// D3DSPR_CONST3 is for c4096-c6143 +// D3DSPR_CONST4 is for c6144-c8191 +// +// For example if the instruction token specifies type D3DSPR_CONST4, reg# 3, +// the register number retrieved is 6147. +// For other register types, the register number is just returned unchanged. +inline UINT D3DSI_GETREGNUM_RESOLVING_CONSTANTS(DWORD token) +{ + D3DSHADER_PARAM_REGISTER_TYPE RegType = D3DSI_GETREGTYPE(token); + UINT RegNum = D3DSI_GETREGNUM(token); + switch(RegType) + { + case D3DSPR_CONST4: + return RegNum + 6144; + case D3DSPR_CONST3: + return RegNum + 4096; + case D3DSPR_CONST2: + return RegNum + 2048; + default: + return RegNum; + } +} +#endif // __cplusplus + +#endif + +// Indicates that the lpVertices field in the DrawPrimitives2 data is +// valid, i.e. user allocated memory. +#define D3DHALDP2_USERMEMVERTICES 0x00000001L +// Indicates that the command buffer and vertex buffer are a system memory execute buffer +// resulting from the use of the Execute buffer API. +#define D3DHALDP2_EXECUTEBUFFER 0x00000002L +// The swap flags indicate if it is OK for the driver to swap the submitted buffers with new +// buffers and asyncronously work on the submitted buffers. +#define D3DHALDP2_SWAPVERTEXBUFFER 0x00000004L +#define D3DHALDP2_SWAPCOMMANDBUFFER 0x00000008L +// The requested flags are present if the new buffers which the driver can allocate need to be +// of atleast a given size. If any of these flags are set, the corresponding dwReq* field in +// D3DHAL_DRAWPRIMITIVES2DATA will also be set with the requested size in bytes. +#define D3DHALDP2_REQVERTEXBUFSIZE 0x00000010L +#define D3DHALDP2_REQCOMMANDBUFSIZE 0x00000020L +// These flags are set by the driver upon return from DrawPrimitives2 indicating if the new +// buffers are not in system memory. +#define D3DHALDP2_VIDMEMVERTEXBUF 0x00000040L +#define D3DHALDP2_VIDMEMCOMMANDBUF 0x00000080L + +// Used by the driver to ask runtime to parse the execute buffer +#define D3DERR_COMMAND_UNPARSED MAKE_DDHRESULT(3000) + +typedef DWORD (CALLBACK *LPD3DHAL_CLEAR2CB) (LPD3DHAL_CLEAR2DATA); +typedef DWORD (CALLBACK *LPD3DHAL_VALIDATETEXTURESTAGESTATECB)(LPD3DHAL_VALIDATETEXTURESTAGESTATEDATA); +typedef DWORD (CALLBACK *LPD3DHAL_DRAWPRIMITIVES2CB) (LPD3DHAL_DRAWPRIMITIVES2DATA); + +typedef struct _D3DHAL_CALLBACKS3 +{ + DWORD dwSize; // size of struct + DWORD dwFlags; // flags for callbacks + LPD3DHAL_CLEAR2CB Clear2; + LPVOID lpvReserved; + LPD3DHAL_VALIDATETEXTURESTAGESTATECB ValidateTextureStageState; + LPD3DHAL_DRAWPRIMITIVES2CB DrawPrimitives2; +} D3DHAL_CALLBACKS3; +typedef D3DHAL_CALLBACKS3 *LPD3DHAL_CALLBACKS3; +#define D3DHAL_CALLBACKS3SIZE sizeof(D3DHAL_CALLBACKS3) + +// bit definitions for D3DHAL +#define D3DHAL3_CB32_CLEAR2 0x00000001L +#define D3DHAL3_CB32_RESERVED 0x00000002L +#define D3DHAL3_CB32_VALIDATETEXTURESTAGESTATE 0x00000004L +#define D3DHAL3_CB32_DRAWPRIMITIVES2 0x00000008L + +/* -------------------------------------------------------------- + * Texture stage renderstate mapping definitions. + * + * 256 renderstate slots [256, 511] are reserved for texture processing + * stage controls, which provides for 8 texture processing stages each + * with 32 DWORD controls. + * + * The renderstates within each stage are indexed by the + * D3DTEXTURESTAGESTATETYPE enumerants by adding the appropriate + * enumerant to the base for a given texture stage. + * + * Note, "state overrides" bias the renderstate by 256, so the two + * ranges overlap. Overrides are enabled for exebufs only, so all + * this means is that Texture3 cannot be used with exebufs. + */ + +/* + * Base of all texture stage state values in renderstate array. + */ +#define D3DHAL_TSS_RENDERSTATEBASE 256UL + +/* + * Maximum number of stages allowed. + */ +#define D3DHAL_TSS_MAXSTAGES 8 + +/* + * Number of state DWORDS per stage. + */ +#define D3DHAL_TSS_STATESPERSTAGE 64 + +/* + * Texture handle's offset into the 32-DWORD cascade state vector + */ +#define D3DTSS_TEXTUREMAP 0 + + +#if(DIRECT3D_VERSION >= 0x0900) +/* -------------------------------------------------------------- + * Texture sampler renderstate. + * + * D3DSAMPLERSTATETYPE (D3DSAMP_*) sampler states exist to + * separate sampler state from the rest of the D3DTSS_* states. + * D3DSAMP_* states are only visible at the API level; + * the runtime simply maps these to D3DTSS_* for drivers. + * + */ + +/* + * Maximum number of texture samplers allowed. + * + * If this number gets bigger than 32, some retooling + * will be needed, as DWORD bitfields are used all over the place. + */ +#define D3DHAL_SAMPLER_MAXSAMP 16 + +/* + * Maximum number of samplers in vertex shaders (must be power of 2) + */ +#define D3DHAL_SAMPLER_MAXVERTEXSAMP 4 + +/* + * Number of state DWORDS per sampler. + */ +#define D3DHAL_SAMPLER_STATESPERSAMP D3DSAMP_MAX + + +/* + * D3DTSS_* states that have been removed from the D3DTEXTURESTAGESTATETYPE + * and turned into the D3DSAMP_* enum D3DTEXTURESAMPLERTYPE. + * These defines allow D3DSAMP_* to be mapped to D3DTSS_* through the DDI + * so that drivers can simply understand D3DTSS_* and do not have to know + * about D3DSAMP_* at all. + * These defines are now labelled as D3DTSS_RESERVEDn in the public + * header definition of D3DTEXTURESTAGESTATETYPE. + */ +#define D3DTSS_ADDRESSU ((D3DTEXTURESTAGESTATETYPE)13) +#define D3DTSS_ADDRESSV ((D3DTEXTURESTAGESTATETYPE)14) +#define D3DTSS_BORDERCOLOR ((D3DTEXTURESTAGESTATETYPE)15) +#define D3DTSS_MAGFILTER ((D3DTEXTURESTAGESTATETYPE)16) +#define D3DTSS_MINFILTER ((D3DTEXTURESTAGESTATETYPE)17) +#define D3DTSS_MIPFILTER ((D3DTEXTURESTAGESTATETYPE)18) +#define D3DTSS_MIPMAPLODBIAS ((D3DTEXTURESTAGESTATETYPE)19) +#define D3DTSS_MAXMIPLEVEL ((D3DTEXTURESTAGESTATETYPE)20) +#define D3DTSS_MAXANISOTROPY ((D3DTEXTURESTAGESTATETYPE)21) +#define D3DTSS_ADDRESSW ((D3DTEXTURESTAGESTATETYPE)25) +#define D3DTSS_SRGBTEXTURE ((D3DTEXTURESTAGESTATETYPE)29) +#define D3DTSS_ELEMENTINDEX ((D3DTEXTURESTAGESTATETYPE)30) +#define D3DTSS_DMAPOFFSET ((D3DTEXTURESTAGESTATETYPE)31) + +// These renderstates were retired in DX8: +#ifndef D3DRS_SOFTWAREVERTEXPROCESSING +#define D3DRS_SOFTWAREVERTEXPROCESSING ((D3DRENDERSTATETYPE)153) +#endif + +// These renderstates were retired in DX9: +#ifndef D3DRS_PATCHSEGMENTS +#define D3DRS_LINEPATTERN ((D3DRENDERSTATETYPE)10) +#define D3DRS_ZVISIBLE ((D3DRENDERSTATETYPE)30) +#define D3DRS_PATCHSEGMENTS ((D3DRENDERSTATETYPE)164) +#endif + +#endif /* DIRECT3D_VERSION >= 0x0900 */ + +/* -------------------------------------------------------------- + * Flags for the data parameters. + */ + +/* + * SceneCapture() + * This is used as an indication to the driver that a scene is about to + * start or end, and that it should capture data if required. + */ +#define D3DHAL_SCENE_CAPTURE_START 0x00000000L +#define D3DHAL_SCENE_CAPTURE_END 0x00000001L + +/* + * Execute() + */ + +/* + * Use the instruction stream starting at dwOffset. + */ +#define D3DHAL_EXECUTE_NORMAL 0x00000000L + +/* + * Use the optional instruction override (diInstruction) and return + * after completion. dwOffset is the offset to the first primitive. + */ +#define D3DHAL_EXECUTE_OVERRIDE 0x00000001L + +/* + * GetState() + * The driver will get passed a flag in dwWhich specifying which module + * the state must come from. The driver then fills in ulArg[1] with the + * appropriate value depending on the state type given in ddState. + */ + +/* + * The following are used to get the state of a particular stage of the + * pipeline. + */ +#define D3DHALSTATE_GET_TRANSFORM 0x00000001L +#define D3DHALSTATE_GET_LIGHT 0x00000002L +#define D3DHALSTATE_GET_RENDER 0x00000004L + + +/* -------------------------------------------------------------- + * Return values from HAL functions. + */ + +/* + * The context passed in was bad. + */ +#define D3DHAL_CONTEXT_BAD 0x000000200L + +/* + * No more contexts left. + */ +#define D3DHAL_OUTOFCONTEXTS 0x000000201L + +/* + * Execute() and ExecuteClipped() + */ + +/* + * Executed to completion via early out. + * (e.g. totally clipped) + */ +#define D3DHAL_EXECUTE_ABORT 0x00000210L + +/* + * An unhandled instruction code was found (e.g. D3DOP_TRANSFORM). + * The dwOffset parameter must be set to the offset of the unhandled + * instruction. + * + * Only valid from Execute() + */ +#define D3DHAL_EXECUTE_UNHANDLED 0x00000211L + +// typedef for the Callback that the drivers can use to parse unknown commands +// passed to them via the DrawPrimitives2 callback. The driver obtains this +// callback thru a GetDriverInfo call with GUID_D3DParseUnknownCommandCallback +// made by ddraw somewhere around the initialization time. +typedef HRESULT (CALLBACK *PFND3DPARSEUNKNOWNCOMMAND) (LPVOID lpvCommands, + LPVOID *lplpvReturnedCommand); + + +/* + * DDI only renderstates. + */ +#define D3DRENDERSTATE_EVICTMANAGEDTEXTURES 61 // DDI render state only to Evict textures +#define D3DRENDERSTATE_SCENECAPTURE 62 // DDI only to replace SceneCapture +#define D3DRS_DELETERTPATCH 169 // DDI only to delete high order patch +#define D3DRS_MAXVERTEXSHADERINST ((D3DRENDERSTATETYPE)196) // DDI only: vs_3_0+ num instructions to execute. +#define D3DRS_MAXPIXELSHADERINST ((D3DRENDERSTATETYPE)197) // DDI only: ps_3_0+ num instructions to execute. +#define D3DRS_ZBIAS ((D3DRENDERSTATETYPE)47) // replaced by depthbias + +// Default values for D3DRS_MAXVERTEXSHADERINST and D3DRS_MAXPIXELSHADERINST +#define D3DINFINITEINSTRUCTIONS 0xffffffff + +//----------------------------------------------------------------------------- +// +// DirectX 8.0's new driver info querying mechanism. +// +// How to handle the new driver info query mechanism. +// +// DirectX 8.0 utilizes an extension to GetDriverInfo() to query for +// additional information from the driver. Currently this mechanism is only +// used for querying for DX8 style D3D caps but it may be used for other +// information over time. +// +// This extension to GetDriverInfo takes the form of a GetDriverInfo call +// with the GUID GUID_GetDriverInfo2. When a GetDriverInfo call with this +// GUID is received by the driver the driver must check the data passed +// in the lpvData field of the DD_GETDRIVERINFODATA data structure to see +// what information is being requested. +// +// It is important to note that the GUID GUID_GetDriverInfo2 is, in fact, +// the same as the GUID_DDStereoMode. If you driver doesn't handle +// GUID_DDStereoMode this is not an issue. However, if you wish your driver +// to handle GUID_DDStereoMode as well as GUID_GetDriverInfo2 special action +// must be taken. When a call tp GetDriverInfo with the GUID +// GUID_GetDriverInfo2/GUID_DDStereoMode is made the runtime sets the +// dwHeight field of the DD_STEREOMODE structure to the special value +// D3DGDI2_MAGIC. In this way you can determine when the request is a +// stereo mode call or a GetDriverInfo2 call. The dwHeight field of +// DD_STEREOMODE corresponds to the dwMagic field of the +// DD_GETDRIVERINFO2DATA structure. +// +// The dwExpectedSize field of the DD_GETDRIVERINFODATA structure is not +// used by when a GetDriverInfo2 request is being made and should be +// ignored. The actual expected size of the data is found in the +// dwExpectedSize of the DD_GETDRIVERINFO2DATA structure. +// +// Once the driver has determined that this is a call to +// GetDriverInfo2 it must then determine the type of information being +// requested by the runtime. This type is contained in the dwType field +// of the DD_GETDRIVERINFO2DATA data structure. +// +// Finally, once the driver knows this is a GetDriverInfo2 request of a +// particular type it can copy the requested data into the data buffer. +// It is important to note that the lpvData field of the DD_GETDRIVERINFODATA +// data structure points to data buffer in which to copy your data. lpvData +// also points to the DD_GETDRIVERINFO2DATA structure. This means that the +// data returned by the driver will overwrite the DD_GETDRIVERINFO2DATA +// structure and, hence, the DD_GETDRIVERINFO2DATA structure occupies the +// first few DWORDs of the buffer. +// +// The following code fragment demonstrates how to handle GetDriverInfo2. +// +// D3DCAPS8 myD3DCaps8; +// +// DWORD CALLBACK +// DdGetDriverInfo(LPDDHAL_GETDRIVERINFODATA lpData) +// { +// if (MATCH_GUID((lpData->guidInfo), GUID_GetDriverInfo2) ) +// { +// ASSERT(NULL != lpData); +// ASSERT(NULL != lpData->lpvData); +// +// // Is this a call to GetDriverInfo2 or DDStereoMode? +// if (((DD_GETDRIVERINFO2DATA*)(lpData->lpvData))->dwMagic == D3DGDI2_MAGIC) +// { +// // Yes, its a call to GetDriverInfo2, fetch the +// // DD_GETDRIVERINFO2DATA data structure. +// DD_GETDRIVERINFO2DATA* pgdi2 = lpData->lpvData; +// ASSERT(NULL != pgdi2); +// +// // What type of request is this? +// switch (pgdi2->dwType) +// { +// case D3DGDI2_TYPE_GETD3DCAPS8: +// { +// // The runtime is requesting the DX8 D3D caps so +// // copy them over now. +// +// // It should be noted that the dwExpectedSize field +// // of DD_GETDRIVERINFODATA is not used for +// // GetDriverInfo2 calls and should be ignored. +// size_t copySize = min(sizeof(myD3DCaps8), pgdi2->dwExpectedSize); +// memcpy(lpData->lpvData, &myD3DCaps8, copySize); +// lpData->dwActualSize = copySize; +// lpData->ddRVal = DD_OK; +// return DDHAL_DRIVER_HANDLED; +// } +// default: +// // For any other GetDriverInfo2 types not handled +// // or understood by the driver set an ddRVal of +// // DDERR_CURRENTLYNOTAVAIL and return +// // DDHAL_DRIVER_HANDLED. +// lpData->dwActualSize = 0; +// lpData->ddRVal = DDERR_CURRENTLYNOTAVAIL; +// return DDHAL_DRIVER_HANDLED; +// } +// } +// else +// { +// // It must be a call a request for stereo mode support. +// // Fetch the stereo mode data +// DD_STEREOMODE* pStereoMode = lpData->lpvData; +// ASSERT(NULL != pStereoMode); +// +// // Process the stereo mode request... +// lpData->dwActualSize = sizeof(DD_STEREOMODE); +// lpData->ddRVal = DD_OK; +// return DDHAL_DRIVER_HANDLED; +// } +// } +// +// // Handle any other device GUIDs... +// +// } // DdGetDriverInfo +// +//----------------------------------------------------------------------------- + +// +// The data structure which is passed to the driver when GetDriverInfo is +// called with a GUID of GUID_GetDriverInfo2. +// +// NOTE: Although the fields listed below are all read only this data +// structure is actually the first four DWORDs of the data buffer into +// which the driver writes the requested infomation. As such, these fields +// (and the entire data structure) are overwritten by the data returned by +// the driver. +// +typedef struct _DD_GETDRIVERINFO2DATA +{ + DWORD dwReserved; // Reserved Field. + // Driver should not read or write this field. + + DWORD dwMagic; // Magic Number. Has the value D3DGDI2_MAGIC if + // this is a GetDriverInfo2 call. Otherwise + // this structure is, in fact, a DD_STEREOMODE + // call. + // Driver should only read this field. + + DWORD dwType; // Type of information requested. This field + // contains one of the DDGDI2_TYPE_ #defines + // listed below. + // Driver should only read (not write) this + // field. + + DWORD dwExpectedSize; // Expected size of the information requested. + // Driver should only read (not write) this + // field. + + // The remainder of the data buffer (beyond the first four DWORDs) + // follows here. +} DD_GETDRIVERINFO2DATA; + +// +// IMPORTANT NOTE: This GUID has exactly the same value as GUID_DDStereoMode +// and as such you must be very careful when using it. If your driver needs +// to handle both GetDriverInfo2 and DDStereoMode it must have a single +// check for the shared GUID and then distinguish between which use of that +// GUID is being requested. +// +#define GUID_GetDriverInfo2 (GUID_DDStereoMode) + +// +// Magic value used to determine whether a GetDriverInfo call with the +// GUID GUID_GetDriverInfo2/GUID_DDStereoMode is a GetDriverInfo2 request +// or a query about stereo capabilities. This magic number is stored in +// the dwHeight field of the DD_STEREOMODE data structure. +// +#define D3DGDI2_MAGIC (0xFFFFFFFFul) + +// +// The types of information which can be requested from the driver via +// GetDriverInfo2. +// + +#define D3DGDI2_TYPE_GETD3DCAPS8 (0x00000001ul) // Return the D3DCAPS8 data +#define D3DGDI2_TYPE_GETFORMATCOUNT (0x00000002ul) // Return the number of supported formats +#define D3DGDI2_TYPE_GETFORMAT (0x00000003ul) // Return a particular format +#define D3DGDI2_TYPE_DXVERSION (0x00000004ul) // Notify driver of current DX Version +#define D3DGDI2_TYPE_GETD3DCAPS9 (0x00000010ul) // Return the D3DCAPS9 data +#define D3DGDI2_TYPE_GETEXTENDEDMODECOUNT (0x00000011ul) // Return the number of supported extended mode +#define D3DGDI2_TYPE_GETEXTENDEDMODE (0x00000012ul) // Return a particular extended mode +#define D3DGDI2_TYPE_GETADAPTERGROUP (0x00000013ul) // Return a adapter group information +#define D3DGDI2_TYPE_GETMULTISAMPLEQUALITYLEVELS (0x00000016ul) // Return the number of multisample quality levels +#define D3DGDI2_TYPE_DEFERRED_AGP_AWARE (0x00000018ul) // Runtime is aware of deferred AGP frees, and will send following (NT only) +#define D3DGDI2_TYPE_FREE_DEFERRED_AGP (0x00000019ul) // Free any deferred-freed AGP allocations for this process (NT only) +#define D3DGDI2_TYPE_DEFER_AGP_FREES (0x00000020ul) // Start defering AGP frees for this process +#define D3DGDI2_TYPE_GETD3DQUERYCOUNT (0x00000021ul) // Return the number of supported queries +#define D3DGDI2_TYPE_GETD3DQUERY (0x00000022ul) // Return supported query +#define D3DGDI2_TYPE_GETDDIVERSION (0x00000023ul) // Return DX9_DDI_VERSION + +// +// This data structure is returned by the driver in response to a +// GetDriverInfo2 query with the type D3DGDI2_TYPE_GETFORMATCOUNT. It simply +// gives the number of surface formats supported by the driver. Currently this +// structure consists of a single member giving the number of supported +// surface formats. +// +typedef struct _DD_GETFORMATCOUNTDATA +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwFormatCount; // [out] Number of supported surface formats + DWORD dwReserved; // Reserved +} DD_GETFORMATCOUNTDATA; + +// +// This data structure is used to request a specific surface format from the +// driver. It is guaranteed that the requested format will be greater than or +// equal to zero and less that the format count reported by the driver from +// the preceeding D3DGDI2_TYPE_GETFORMATCOUNT request. +// +typedef struct _DD_GETFORMATDATA +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwFormatIndex; // [in] The format to return + DDPIXELFORMAT format; // [out] The actual format +} DD_GETFORMATDATA; + +// +// This data structure is used to notify drivers about the DirectX version +// number. This is the value that is denoted as DD_RUNTIME_VERSION in the +// DDK headers. +// +typedef struct _DD_DXVERSION +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwDXVersion; // [in] The Version of DX + DWORD dwReserved; // Reserved +} DD_DXVERSION; + +// Informs driver that runtime will send a notification after last outstanding AGP +// lock has been released. +typedef struct _DD_DEFERRED_AGP_AWARE_DATA +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data +} DD_DEFERRED_AGP_AWARE_DATA; + +// Notification that the last AGP lock has been released. Driver can free all deferred AGP +// allocations for this process. +typedef struct _DD_FREE_DEFERRED_AGP_DATA +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwProcessId; // [in] Process ID for whom to free deferred AGP +} DD_FREE_DEFERRED_AGP_DATA; + +#if(DIRECT3D_VERSION >= 0x0900) +// +// This data structure is returned by the driver in response to a +// GetDriverInfo2 query with the type D3DGDI2_TYPE_GETEXTENDEDMODECOUNT. It simply +// gives the number of extended video modes supported by the driver. Currently this +// structure consists of a single member giving the number of supported extended +// video modes. +// +typedef struct _DD_GETEXTENDEDMODECOUNTDATA +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwModeCount; // [out] Number of supported extended video modes + DWORD dwReserved; // Reserved +} DD_GETEXTENDEDMODECOUNTDATA; + +// +// This data structure is used to request a specific extended video mode from the +// driver. It is guaranteed that the requested format will be greater than or +// equal to zero and less that the format count reported by the driver from +// the preceeding D3DGDI2_TYPE_GETEXTENDEDMODECOUNT request. +// +typedef struct _DD_GETEXTENDEDMODEDATA +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwModeIndex; // [in] The format to return + D3DDISPLAYMODE mode; // [out] The actual format +} DD_GETEXTENDEDMODEDATA; + +// +// This data structure is used to request a adapter group information from the driver. +// A adapter group is a set of adapters which share video hardware (like video memory, +// 3D accelerator). Thus it is mainly for DualView video adapter. Direct3D runtime +// will share surface resources (like texture, vertex buffers) across adapters within +// a adapter group upon application's request. +// +typedef struct _DD_GETADAPTERGROUPDATA +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + ULONG_PTR ulUniqueAdapterGroupId; // [out] The unique id of adapter group that this adapter belonging to + DWORD dwReserved1; // Reserved, must be 0 + DWORD dwReserved2; // Reserved, must be 0 +} DD_GETADAPTERGROUPDATA; + +typedef struct _DD_MULTISAMPLEQUALITYLEVELSDATA +{ + DD_GETDRIVERINFO2DATA gdi2; //[in/out] GetDriverInfo2 data + D3DFORMAT Format; //[in] Format of multi-sampled render-target + BOOL bFlip : 1; //[in] FALSE means blt-style resolution + D3DMULTISAMPLE_TYPE MSType : 31; //[in] + DWORD QualityLevels; //[out] +} DD_MULTISAMPLEQUALITYLEVELSDATA; + +typedef struct _DD_GETD3DQUERYCOUNTDATA +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwNumQueries; // [out] Number of queries +} DD_GETD3DQUERYCOUNTDATA; + +typedef struct _DD_GETD3DQUERYDATA +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + union + { + DWORD dwQueryIndex; // [in] Index of cap + D3DQUERYTYPE QueryType; // [out] Query cap + }; +} DD_GETD3DQUERYDATA; + +typedef struct _DD_GETDDIVERSIONDATA +{ + DD_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwDXVersion; // [in] DX version (9 for DX9, etc.) + DWORD dwDDIVersion; // [out] DX9_DDI_VERSION +} DD_GETDDIVERSIONDATA; + +#define DX9_DDI_VERSION 4 + +#endif /* DIRECT3D_VERSION >= 0x0900 */ + +#if(DIRECT3D_VERSION >= 0x0900) + +// GetDriverState IDs - D3DDEVINFO structures used for query mechanism in public headers + +#define D3DDEVINFOID_VCACHE 4 /* Used with D3DDEVINFOID_VCACHE */ + +// This was eliminated in DX9 but was exposed in DX8.1 so the drivers still need it +#define D3DFMT_W11V11U10 (D3DFORMAT)65 + +#endif /* DIRECT3D_VERSION >= 0x0900 */ + +// New Caps that are not API visible that the driver exposes. +#define D3DDEVCAPS_HWVERTEXBUFFER 0x02000000L /* Device supports Driver Allocated Vertex Buffers*/ +#define D3DDEVCAPS_HWINDEXBUFFER 0x04000000L /* Device supports Driver Allocated Index Buffers*/ +#define D3DDEVCAPS_SUBVOLUMELOCK 0x08000000L /* Device supports locking a part of volume texture*/ +#ifndef D3DPMISCCAPS_FOGINFVF +#define D3DPMISCCAPS_FOGINFVF 0x00002000L /* Device supports separate fog value in the FVF */ +#endif +#ifndef D3DFVF_FOG +#define D3DFVF_FOG 0x00002000L /* There is a separate fog value in the FVF vertex */ +#endif + +// +// This stuff is not API visible but should be DDI visible. +// Should be in Sync with d3d8types.h +// +#define D3DFMT_D32 (D3DFORMAT)71 +#define D3DFMT_S1D15 (D3DFORMAT)72 +#define D3DFMT_D15S1 (D3DFORMAT)73 +#define D3DFMT_S8D24 (D3DFORMAT)74 +#define D3DFMT_D24S8 (D3DFORMAT)75 +#define D3DFMT_X8D24 (D3DFORMAT)76 +#define D3DFMT_D24X8 (D3DFORMAT)77 +#define D3DFMT_X4S4D24 (D3DFORMAT)78 +#define D3DFMT_D24X4S4 (D3DFORMAT)79 + + +//-------------- Vertex shader defines -------------------------------- +// Vertex Shader register limits. D3D device must provide at least +// specified number of registers + +// This one was used by DX8 only. +#define D3DVS_MAXINSTRUCTIONCOUNT_V1_1 128 + +// Max number of labels in a shader +#define D3DVS_LABEL_MAX_V3_0 2048 + +// Max number of output texture coordinates +#define D3DVS_TCRDOUTREG_MAX_V1_1 8 +#define D3DVS_TCRDOUTREG_MAX_V2_0 8 +#define D3DVS_TCRDOUTREG_MAX_V2_1 8 +#define D3DVS_OUTPUTREG_MAX_V3_0 12 +#define D3DVS_OUTPUTREG_MAX_SW_DX9 16 + +// Max number of output registers +#define D3DVS_OUTPUTREG_MAX_V3_0 12 + +// Max number of output attributes (colors) +#define D3DVS_ATTROUTREG_MAX_V1_1 2 +#define D3DVS_ATTROUTREG_MAX_V2_0 2 +#define D3DVS_ATTROUTREG_MAX_V2_1 2 + +// Max number of input registers +#define D3DVS_INPUTREG_MAX_V1_1 16 +#define D3DVS_INPUTREG_MAX_V2_0 16 +#define D3DVS_INPUTREG_MAX_V2_1 16 +#define D3DVS_INPUTREG_MAX_V3_0 16 + +// Max number of temp registers +#define D3DVS_TEMPREG_MAX_V1_1 12 +#define D3DVS_TEMPREG_MAX_V2_0 12 +#define D3DVS_TEMPREG_MAX_V2_1 32 +#define D3DVS_TEMPREG_MAX_V3_0 32 + +// Max number of constant float vector registers +#define D3DVS_CONSTREG_MAX_V1_1 96 +#define D3DVS_CONSTREG_MAX_V2_0 8192 +#define D3DVS_CONSTREG_MAX_V2_1 8192 +#define D3DVS_CONSTREG_MAX_V3_0 8192 + +#define D3DVS_CONSTINTREG_MAX_SW_DX9 2048 + +// Max number of integer constant registers +#define D3DVS_CONSTINTREG_MAX_V2_0 16 +#define D3DVS_CONSTINTREG_MAX_V2_1 16 +#define D3DVS_CONSTINTREG_MAX_V3_0 16 + +#define D3DVS_CONSTBOOLREG_MAX_SW_DX9 2048 + +// Max number of BOOL constant registers +#define D3DVS_CONSTBOOLREG_MAX_V2_0 16 +#define D3DVS_CONSTBOOLREG_MAX_V2_1 16 +#define D3DVS_CONSTBOOLREG_MAX_V3_0 16 + +// Max number of vector address registers +#define D3DVS_ADDRREG_MAX_V1_1 1 +#define D3DVS_ADDRREG_MAX_V2_0 1 +#define D3DVS_ADDRREG_MAX_V2_1 1 +#define D3DVS_ADDRREG_MAX_V3_0 1 + +// Max absolute value of the loop step +#define D3DVS_MAXLOOPSTEP_V2_0 128 +#define D3DVS_MAXLOOPSTEP_V2_1 128 +#define D3DVS_MAXLOOPSTEP_V3_0 128 + +// Max absolute value of the loop initial valuep +#define D3DVS_MAXLOOPINITVALUE_V2_0 255 +#define D3DVS_MAXLOOPINITVALUE_V2_1 255 +#define D3DVS_MAXLOOPINITVALUE_V3_0 255 + +// Max loop interation count +#define D3DVS_MAXLOOPITERATIONCOUNT_V2_0 255 +#define D3DVS_MAXLOOPITERATIONCOUNT_V2_1 255 +#define D3DVS_MAXLOOPITERATIONCOUNT_V3_0 255 + +// Number of PREDICATE registers +#define D3DVS_PREDICATE_MAX_V2_1 1 +#define D3DVS_PREDICATE_MAX_V3_0 1 + +//---------------- End vertex shader defines ------------------------------- + + +//---------------- Pixel shader defines ------------------------------------ +// Pixel Shader register limits. D3D device must provide at least +// specified number of registers + +// Number of INPUT registers based on shader version +#define D3DPS_INPUTREG_MAX_V1_1 2 +#define D3DPS_INPUTREG_MAX_V1_2 2 +#define D3DPS_INPUTREG_MAX_V1_3 2 +#define D3DPS_INPUTREG_MAX_V1_4 2 +#define D3DPS_INPUTREG_MAX_V2_0 2 +#define D3DPS_INPUTREG_MAX_V2_1 2 +#define D3DPS_INPUTREG_MAX_V3_0 10 +#define D3DPS_INPUTREG_MAX_SW_DX9 14 + +// Number of TEMP registers based on shader version +#define D3DPS_TEMPREG_MAX_V1_1 2 +#define D3DPS_TEMPREG_MAX_V1_2 2 +#define D3DPS_TEMPREG_MAX_V1_3 2 +#define D3DPS_TEMPREG_MAX_V1_4 6 +#define D3DPS_TEMPREG_MAX_V2_0 12 +#define D3DPS_TEMPREG_MAX_V2_1 32 +#define D3DPS_TEMPREG_MAX_V3_0 32 + +// Number of TEXTURE registers based on shader version +#define D3DPS_TEXTUREREG_MAX_V1_1 4 +#define D3DPS_TEXTUREREG_MAX_V1_2 4 +#define D3DPS_TEXTUREREG_MAX_V1_3 4 +#define D3DPS_TEXTUREREG_MAX_V1_4 6 +#define D3DPS_TEXTUREREG_MAX_V2_0 8 +#define D3DPS_TEXTUREREG_MAX_V2_1 8 +#define D3DPS_TEXTUREREG_MAX_V3_0 0 + +// Number of COLOROUT registers based on shader version +#define D3DPS_COLOROUT_MAX_V2_0 4 +#define D3DPS_COLOROUT_MAX_V2_1 4 +#define D3DPS_COLOROUT_MAX_V3_0 4 + +// Number of PREDICATE registers based on shader version +#define D3DPS_PREDICATE_MAX_V2_1 1 +#define D3DPS_PREDICATE_MAX_V3_0 1 + +// Number of FLOAT constants based on shader version +#define D3DPS_CONSTREG_MAX_V1_1 8 +#define D3DPS_CONSTREG_MAX_V1_2 8 +#define D3DPS_CONSTREG_MAX_V1_3 8 +#define D3DPS_CONSTREG_MAX_V1_4 8 +#define D3DPS_CONSTREG_MAX_V2_0 32 +#define D3DPS_CONSTREG_MAX_V2_1 32 +#define D3DPS_CONSTREG_MAX_V3_0 224 +#define D3DPS_CONSTREG_MAX_SW_DX9 8192 + +// Max number of pixel shader hardware BOOL constant registers +#define D3DPS_CONSTBOOLREG_MAX_V2_1 16 +#define D3DPS_CONSTBOOLREG_MAX_V3_0 16 +#define D3DPS_CONSTBOOLREG_MAX_SW_DX9 2048 + +// Max number of pixel shader hardware INTEGER constant registers +#define D3DPS_CONSTINTREG_MAX_V2_1 16 +#define D3DPS_CONSTINTREG_MAX_V3_0 16 +#define D3DPS_CONSTINTREG_MAX_SW_DX9 2048 + +// Max absolute value for loop step +#define D3DPS_MAXLOOPSTEP_V2_1 128 +#define D3DPS_MAXLOOPSTEP_V3_0 128 + +// Max absolute value for loop initial value +#define D3DPS_MAXLOOPINITVALUE_V2_1 255 +#define D3DPS_MAXLOOPINITVALUE_V3_0 255 + +// Max loop interation count +#define D3DPS_MAXLOOPITERATIONCOUNT_V2_1 255 +#define D3DPS_MAXLOOPITERATIONCOUNT_V3_0 255 + +//---------------- End pixel shader defines ------------------------------- + +// Pixel Shader DX8 register limits. D3D device will have at most these +// specified number of registers +// +#define D3DPS_INPUTREG_MAX_DX8 8 +#define D3DPS_TEMPREG_MAX_DX8 8 +#define D3DPS_CONSTREG_MAX_DX8 8 +#define D3DPS_TEXTUREREG_MAX_DX8 8 + +#if(DIRECT3D_VERSION >= 0x0900) + +// bit declarations for _Type fields +#define D3DVSDT_FLOAT1 0x00 // 1D float expanded to (value, 0., 0., 1.) +#define D3DVSDT_FLOAT2 0x01 // 2D float expanded to (value, value, 0., 1.) +#define D3DVSDT_FLOAT3 0x02 // 3D float expanded to (value, value, value, 1.) +#define D3DVSDT_FLOAT4 0x03 // 4D float +#define D3DVSDT_D3DCOLOR 0x04 // 4D packed unsigned bytes mapped to 0. to 1. range + // Input is in D3DCOLOR format (ARGB) expanded to (R, G, B, A) +#define D3DVSDT_UBYTE4 0x05 // 4D unsigned byte +#define D3DVSDT_SHORT2 0x06 // 2D signed short expanded to (value, value, 0., 1.) +#define D3DVSDT_SHORT4 0x07 // 4D signed short + +#define D3DVSDE_POSITION 0 +#define D3DVSDE_BLENDWEIGHT 1 +#define D3DVSDE_BLENDINDICES 2 +#define D3DVSDE_NORMAL 3 +#define D3DVSDE_PSIZE 4 +#define D3DVSDE_DIFFUSE 5 +#define D3DVSDE_SPECULAR 6 +#define D3DVSDE_TEXCOORD0 7 +#define D3DVSDE_TEXCOORD1 8 +#define D3DVSDE_TEXCOORD2 9 +#define D3DVSDE_TEXCOORD3 10 +#define D3DVSDE_TEXCOORD4 11 +#define D3DVSDE_TEXCOORD5 12 +#define D3DVSDE_TEXCOORD6 13 +#define D3DVSDE_TEXCOORD7 14 +#define D3DVSDE_POSITION2 15 +#define D3DVSDE_NORMAL2 16 + +/* DX8 style vertex declaration + +Vertex Shader Declaration + +The declaration portion of a vertex shader defines the static external +interface of the shader. The information in the declaration includes: + +- Assignments of vertex shader input registers to data streams. These +assignments bind a specific vertex register to a single component within a +vertex stream. A vertex stream element is identified by a byte offset +within the stream and a type. The type specifies the arithmetic data type +plus the dimensionality (1, 2, 3, or 4 values). Stream data which is +less than 4 values are always expanded out to 4 values with zero or more +0.F values and one 1.F value. + +- Assignment of vertex shader input registers to implicit data from the +primitive tessellator. This controls the loading of vertex data which is +not loaded from a stream, but rather is generated during primitive +tessellation prior to the vertex shader. + +- Loading data into the constant memory at the time a shader is set as the +current shader. Each token specifies values for one or more contiguous 4 +DWORD constant registers. This allows the shader to update an arbitrary +subset of the constant memory, overwriting the device state (which +contains the current values of the constant memory). Note that these +values can be subsequently overwritten (between DrawPrimitive calls) +during the time a shader is bound to a device via the +SetVertexShaderConstant method. + + +Declaration arrays are single-dimensional arrays of DWORDs composed of +multiple tokens each of which is one or more DWORDs. The single-DWORD +token value 0xFFFFFFFF is a special token used to indicate the end of the +declaration array. The single DWORD token value 0x00000000 is a NOP token +with is ignored during the declaration parsing. Note that 0x00000000 is a +valid value for DWORDs following the first DWORD for multiple word tokens. + +[31:29] TokenType + 0x0 - NOP (requires all DWORD bits to be zero) + 0x1 - stream selector + 0x2 - stream data definition (map to vertex input memory) + 0x3 - vertex input memory from tessellator + 0x4 - constant memory from shader + 0x5 - extension + 0x6 - reserved + 0x7 - end-of-array (requires all DWORD bits to be 1) + +NOP Token (single DWORD token) + [31:29] 0x0 + [28:00] 0x0 + +Stream Selector (single DWORD token) + [31:29] 0x1 + [28] indicates whether this is a tessellator stream + [27:04] 0x0 + [03:00] stream selector (0..15) + +Stream Data Definition (single DWORD token) + Vertex Input Register Load + [31:29] 0x2 + [28] 0x0 + [27:20] 0x0 + [19:16] type (dimensionality and data type) + [15:04] 0x0 + [03:00] vertex register address (0..15) + Data Skip (no register load) + [31:29] 0x2 + [28] 0x1 + [27:20] 0x0 + [19:16] count of DWORDS to skip over (0..15) + [15:00] 0x0 + Vertex Input Memory from Tessellator Data (single DWORD token) + [31:29] 0x3 + [28] indicates whether data is normals or u/v + [27:24] 0x0 + [23:20] vertex register address (0..15) + [19:16] type (dimensionality) + [15:04] 0x0 + [03:00] vertex register address (0..15) + +Constant Memory from Shader (multiple DWORD token) + [31:29] 0x4 + [28:25] count of 4*DWORD constants to load (0..15) + [24:07] 0x0 + [06:00] constant memory address (0..95) + +Extension Token (single or multiple DWORD token) + [31:29] 0x5 + [28:24] count of additional DWORDs in token (0..31) + [23:00] extension-specific information + +End-of-array token (single DWORD token) + [31:29] 0x7 + [28:00] 0x1fffffff + +The stream selector token must be immediately followed by a contiguous set of stream data definition tokens. This token sequence fully defines that stream, including the set of elements within the stream, the order in which the elements appear, the type of each element, and the vertex register into which to load an element. +Streams are allowed to include data which is not loaded into a vertex register, thus allowing data which is not used for this shader to exist in the vertex stream. This skipped data is defined only by a count of DWORDs to skip over, since the type information is irrelevant. +The token sequence: +Stream Select: stream=0 +Stream Data Definition (Load): type=FLOAT3; register=3 +Stream Data Definition (Load): type=FLOAT3; register=4 +Stream Data Definition (Skip): count=2 +Stream Data Definition (Load): type=FLOAT2; register=7 + +defines stream zero to consist of 4 elements, 3 of which are loaded into registers and the fourth skipped over. Register 3 is loaded with the first three DWORDs in each vertex interpreted as FLOAT data. Register 4 is loaded with the 4th, 5th, and 6th DWORDs interpreted as FLOAT data. The next two DWORDs (7th and 8th) are skipped over and not loaded into any vertex input register. Register 7 is loaded with the 9th and 10th DWORDS interpreted as FLOAT data. +Placing of tokens other than NOPs between the Stream Selector and Stream Data Definition tokens is disallowed. + +*/ + +#ifndef __COMMONHALDEFINES +#define __COMMONHALDEFINES + +typedef enum _D3DVSD_TOKENTYPE +{ + D3DVSD_TOKEN_NOP = 0, // NOP or extension + D3DVSD_TOKEN_STREAM, // stream selector + D3DVSD_TOKEN_STREAMDATA, // stream data definition (map to vertex input memory) + D3DVSD_TOKEN_TESSELLATOR, // vertex input memory from tessellator + D3DVSD_TOKEN_CONSTMEM, // constant memory from shader + D3DVSD_TOKEN_EXT, // extension + D3DVSD_TOKEN_END = 7, // end-of-array (requires all DWORD bits to be 1) + D3DVSD_FORCE_DWORD = 0x7fffffff,// force 32-bit size enum +} D3DVSD_TOKENTYPE; +#endif // __COMMONHALDEFINES + +#define D3DVSD_TOKENTYPESHIFT 29 +#define D3DVSD_TOKENTYPEMASK (7 << D3DVSD_TOKENTYPESHIFT) + +#define D3DVSD_STREAMNUMBERSHIFT 0 +#define D3DVSD_STREAMNUMBERMASK (0xF << D3DVSD_STREAMNUMBERSHIFT) + +#define D3DVSD_DATALOADTYPESHIFT 28 +#define D3DVSD_DATALOADTYPEMASK (0x1 << D3DVSD_DATALOADTYPESHIFT) + +#define D3DVSD_DATATYPESHIFT 16 +#define D3DVSD_DATATYPEMASK (0xF << D3DVSD_DATATYPESHIFT) + +#define D3DVSD_SKIPCOUNTSHIFT 16 +#define D3DVSD_SKIPCOUNTMASK (0xF << D3DVSD_SKIPCOUNTSHIFT) + +#define D3DVSD_VERTEXREGSHIFT 0 +#define D3DVSD_VERTEXREGMASK (0x1F << D3DVSD_VERTEXREGSHIFT) + +#define D3DVSD_VERTEXREGINSHIFT 20 +#define D3DVSD_VERTEXREGINMASK (0xF << D3DVSD_VERTEXREGINSHIFT) + +#define D3DVSD_CONSTCOUNTSHIFT 25 +#define D3DVSD_CONSTCOUNTMASK (0xF << D3DVSD_CONSTCOUNTSHIFT) + +#define D3DVSD_CONSTADDRESSSHIFT 0 +#define D3DVSD_CONSTADDRESSMASK (0x7F << D3DVSD_CONSTADDRESSSHIFT) + +#define D3DVSD_CONSTRSSHIFT 16 +#define D3DVSD_CONSTRSMASK (0x1FFF << D3DVSD_CONSTRSSHIFT) + +#define D3DVSD_EXTCOUNTSHIFT 24 +#define D3DVSD_EXTCOUNTMASK (0x1F << D3DVSD_EXTCOUNTSHIFT) + +#define D3DVSD_EXTINFOSHIFT 0 +#define D3DVSD_EXTINFOMASK (0xFFFFFF << D3DVSD_EXTINFOSHIFT) + +#define D3DVSD_MAKETOKENTYPE(tokenType) ((tokenType << D3DVSD_TOKENTYPESHIFT) & D3DVSD_TOKENTYPEMASK) + +// macros for generation of CreateVertexShader Declaration token array + +// Set current stream +// _StreamNumber [0..(MaxStreams-1)] stream to get data from +// +#define D3DVSD_STREAM( _StreamNumber ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAM) | (_StreamNumber)) + +// Set tessellator stream +// +#define D3DVSD_STREAMTESSSHIFT 28 +#define D3DVSD_STREAMTESSMASK (1 << D3DVSD_STREAMTESSSHIFT) +#define D3DVSD_STREAM_TESS( ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAM) | (D3DVSD_STREAMTESSMASK)) + +// bind single vertex register to vertex element from vertex stream +// +// _VertexRegister [0..15] address of the vertex register +// _Type [D3DVSDT_*] dimensionality and arithmetic data type + +#define D3DVSD_REG( _VertexRegister, _Type ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAMDATA) | \ + ((_Type) << D3DVSD_DATATYPESHIFT) | (_VertexRegister)) + +// Skip _DWORDCount DWORDs in vertex +// +#define D3DVSD_SKIP( _DWORDCount ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAMDATA) | 0x10000000 | \ + ((_DWORDCount) << D3DVSD_SKIPCOUNTSHIFT)) + +// load data into vertex shader constant memory +// +// _ConstantAddress [0..95] - address of constant array to begin filling data +// _Count [0..15] - number of constant vectors to load (4 DWORDs each) +// followed by 4*_Count DWORDS of data +// +#define D3DVSD_CONST( _ConstantAddress, _Count ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_CONSTMEM) | \ + ((_Count) << D3DVSD_CONSTCOUNTSHIFT) | (_ConstantAddress)) + +// enable tessellator generated normals +// +// _VertexRegisterIn [0..15] address of vertex register whose input stream +// will be used in normal computation +// _VertexRegisterOut [0..15] address of vertex register to output the normal to +// +#define D3DVSD_TESSNORMAL( _VertexRegisterIn, _VertexRegisterOut ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_TESSELLATOR) | \ + ((_VertexRegisterIn) << D3DVSD_VERTEXREGINSHIFT) | \ + ((0x02) << D3DVSD_DATATYPESHIFT) | (_VertexRegisterOut)) + +// enable tessellator generated surface parameters +// +// _VertexRegister [0..15] address of vertex register to output parameters +// +#define D3DVSD_TESSUV( _VertexRegister ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_TESSELLATOR) | 0x10000000 | \ + ((0x01) << D3DVSD_DATATYPESHIFT) | (_VertexRegister)) + +// Generates END token +// +#define D3DVSD_END() 0xFFFFFFFF + +// Generates NOP token +#define D3DVSD_NOP() 0x00000000 + +#endif /* DIRECT3D_VERSION >= 0x0900 */ + +#endif /* _D3DHAL_H */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dhalex.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dhalex.h new file mode 100644 index 0000000000000000000000000000000000000000..b629d6ccb3656188b3818b87baeb3bd7c64c610d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dhalex.h @@ -0,0 +1,121 @@ +#ifndef _D3DHALEX_H +#define _D3DHALEX_H + +//----------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: d3dhalex.h +// Content: Direct3D HAL Extensions and Helpers include file +// This file contains definitions and macros which although not +// essential for building a driver are useful helpers and +// utilities. +// +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// +// Macros to help with handling the new GetDriverInfo2 mechanism. The following +// macros assist with handling the GetDriverInfo2 sub-call of GetDriverInfo. +// Two of the macros are simplified ways of differentiating between +// GetDriverInfo2 calls and DDStereoMode calls. The others are simplified ways +// of getting the data structures associated with those two calls. +// +// The following code fragment demonstrates how to handle GetDriverInfo2 using +// these macros. Compare this with the code fragment in d3dhal.h +// +// D3DCAPS8 myD3DCaps8; +// +// DWORD CALLBACK +// DdGetDriverInfo(LPDDHAL_GETDRIVERINFODATA lpData) +// { +// if (MATCH_GUID((lpData->guidInfo), GUID_GetDriverInfo2) ) +// { +// ASSERT(NULL != lpData); +// ASSERT(NULL != lpData->lpvData); +// +// // Is this a call to GetDriverInfo2 or DDStereoMode? +// if (D3DGDI_IS_GDI2(lpData)) +// { +// // Yes, its a call to GetDriverInfo2, fetch the +// // DD_GETDRIVERINFO2DATA data structure. +// DD_GETDRIVERINFO2DATA* pgdi2 = D3DGDI_GET_GDI2_DATA(lpData); +// ASSERT(NULL != pgdi2); +// +// // What type of request is this? +// switch (pgdi2->dwType) +// { +// case D3DGDI2_TYPE_GETD3DCAPS8: +// { +// // The runtime is requesting the DX8 D3D caps so +// // copy them over now. +// +// // It should be noted that the dwExpectedSize field +// // of DD_GETDRIVERINFODATA is not used for +// // GetDriverInfo2 calls and should be ignored. +// size_t copySize = min(sizeof(myD3DCaps8), pgdi2->dwExpectedSize); +// memcpy(lpData->lpvData, &myD3DCaps8, copySize); +// lpData->dwActualSize = copySize; +// lpData->ddRVal = DD_OK; +// return DDHAL_DRIVER_HANDLED; +// } +// default: +// // For any other GetDriverInfo2 types not handled +// // or understood by the driver set an ddRVal of +// // DDERR_CURRENTLYNOTAVAIL and return +// // DDHAL_DRIVER_HANDLED. +// return DDHAL_DRIVER_HANDLED; +// } +// } +// else +// { +// // It must be a call a request for stereo mode support. +// // Fetch the stereo mode data +// DD_STEREOMODE* pStereoMode = D3DGDI_GET_STEREOMODE_DATA(pData); +// ASSERT(NULL != pStereoMode); +// +// // Process the stereo mode request... +// lpData->dwActualSize = sizeof(DD_STEREOMODE); +// lpData->ddRVal = DD_OK; +// return DDHAL_DRIVER_HANDLED; +// } +// } +// +// // Handle any other device GUIDs... +// +// } // DdGetDriverInfo +// +//----------------------------------------------------------------------------- + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// Macros to determine what type of call a call to GetDriverInfo with the +// GUID GUID_GetDriverInfo2/GUID_DDStereoMode. A GetDriverInfo2 call or +// a DDStereoMode call. +// +#define D3DGDI_IS_GDI2(pData) \ + ((((DD_GETDRIVERINFO2DATA*)(pData->lpvData))->dwMagic) == D3DGDI2_MAGIC) + +#define D3DGDI_IS_STEREOMODE(pData) \ + ((((DD_STEREOMODE*) (pData->lpvData))->dwHeight) != D3DGDI2_MAGIC) + +// +// Macros to return the appropriate GetDriverInfo data structure for a +// call to GetDriverInfo with the GUID GUID_GetDriverInfo2/GUID_DDStereoMode. +// +#define D3DGDI_GET_GDI2_DATA(pData) \ + (D3DGDI_IS_GDI2(pData) ? (((DD_GETDRIVERINFO2DATA*)(pData->lpvData))) : NULL) + +#define D3DGDI_GET_STEREOMODE_DATA(pData) \ + (D3DGDI_IS_STEREOMODE(pData) ? (((DD_STEREOMODE*)(pData->lpvData))) : NULL) + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _D3DHALEX_H */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dnthal.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dnthal.h new file mode 100644 index 0000000000000000000000000000000000000000..c8a88b31c66c5a5834a96c817e923e9f4a243e7b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dnthal.h @@ -0,0 +1,2395 @@ +/*========================================================================== + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: d3dnthal.h + * Content: Direct3D HAL include file for NT + * + ***************************************************************************/ + +#ifndef _D3DNTHAL_H_ +#define _D3DNTHAL_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include +#ifndef _WINDOWS_ +#define _WINDOWS_ +#include +#include +#undef _WINDOWS_ +#else +#include +#include +#endif + +/* + * If the HAL driver does not implement clipping, it must reserve at least + * this much space at the end of the LocalVertexBuffer for use by the HEL + * clipping. I.e. the vertex buffer contain dwNumVertices+dwNumClipVertices + * vertices. No extra space is needed by the HEL clipping in the + * LocalHVertexBuffer. + */ +#define D3DNTHAL_NUMCLIPVERTICES 20 + +/* + * If no dwNumVertices is given, this is what will be used. + */ +#define D3DNTHAL_DEFAULT_TL_NUM ((32 * 1024) / sizeof (D3DTLVERTEX)) +#define D3DNTHAL_DEFAULT_H_NUM ((32 * 1024) / sizeof (D3DHVERTEX)) + +/* + * Description for a device. + * This is used to describe a device that is to be created or to query + * the current device. + * + * For DX5 and subsequent runtimes, D3DNTDEVICEDESC is a user-visible + * structure that is not seen by the device drivers. The runtime + * stitches a D3DNTDEVICEDESC together using the D3DNTDEVICEDESC_V1 + * embedded in the GLOBALDRIVERDATA and the extended caps queried + * from the driver using GetDriverInfo. + */ + +typedef struct _D3DNTHALDeviceDesc_V1 +{ + DWORD dwSize; // Size of D3DNTHALDEVICEDESC_V1 structure + DWORD dwFlags; // Indicates which fields have valid data + D3DCOLORMODEL dcmColorModel; // Color model of device + DWORD dwDevCaps; // Capabilities of device + D3DTRANSFORMCAPS dtcTransformCaps; // Capabilities of transform + BOOL bClipping; // Device can do 3D clipping + D3DLIGHTINGCAPS dlcLightingCaps; // Capabilities of lighting + D3DPRIMCAPS dpcLineCaps; + D3DPRIMCAPS dpcTriCaps; + DWORD dwDeviceRenderBitDepth; // One of DDBB_8, 16, etc.. + DWORD dwDeviceZBufferBitDepth; // One of DDBD_16, 32, etc.. + DWORD dwMaxBufferSize; // Maximum execute buffer size */ + DWORD dwMaxVertexCount; // Maximum vertex count */ +} D3DNTHALDEVICEDESC_V1, *LPD3DNTHALDEVICEDESC_V1; + +#define D3DNTHALDEVICEDESCSIZE_V1 (sizeof(D3DNTHALDEVICEDESC_V1)) + +/* + * This is equivalent to the D3DNTDEVICEDESC understood by DX5, available only + * from DX6. It is the same as D3DNTDEVICEDESC structure in DX5. + * D3DNTDEVICEDESC is still the user-visible structure that is not seen by the + * device drivers. The runtime stitches a D3DNTDEVICEDESC together using the + * D3DNTDEVICEDESC_V1 embedded in the GLOBALDRIVERDATA and the extended caps + * queried from the driver using GetDriverInfo. + */ + +typedef struct _D3DNTHALDeviceDesc_V2 +{ + DWORD dwSize; // Size of D3DNTDEVICEDESC structure + DWORD dwFlags; // Indicates which fields have valid data + D3DCOLORMODEL dcmColorModel; // Color model of device + DWORD dwDevCaps; // Capabilities of device + D3DTRANSFORMCAPS dtcTransformCaps; // Capabilities of transform + BOOL bClipping; // Device can do 3D clipping + D3DLIGHTINGCAPS dlcLightingCaps; // Capabilities of lighting + D3DPRIMCAPS dpcLineCaps; + D3DPRIMCAPS dpcTriCaps; + DWORD dwDeviceRenderBitDepth; // One of DDBD_16, etc.. + DWORD dwDeviceZBufferBitDepth; // One of DDBD_16, 32, etc.. + DWORD dwMaxBufferSize; // Maximum execute buffer size + DWORD dwMaxVertexCount; // Maximum vertex count + + DWORD dwMinTextureWidth, dwMinTextureHeight; + DWORD dwMaxTextureWidth, dwMaxTextureHeight; + DWORD dwMinStippleWidth, dwMaxStippleWidth; + DWORD dwMinStippleHeight, dwMaxStippleHeight; + +} D3DNTHALDEVICEDESC_V2, *LPD3DNTHALDEVICEDESC_V2; + +#define D3DNTHALDEVICEDESCSIZE_V2 (sizeof(D3DNTHALDEVICEDESC_V2)) + +#if(DIRECT3D_VERSION >= 0x0700) +/* + * This is equivalent to the D3DNTDEVICEDESC understood by DX6, available only + * from DX6. It is the same as D3DNTDEVICEDESC structure in DX6. + * D3DNTDEVICEDESC is still the user-visible structure that is not seen by the + * device drivers. The runtime stitches a D3DNTDEVICEDESC together using the + * D3DNTDEVICEDESC_V1 embedded in the GLOBALDRIVERDATA and the extended caps + * queried from the driver using GetDriverInfo. + */ + +typedef struct _D3DNTDeviceDesc_V3 +{ + DWORD dwSize; // Size of D3DNTDEVICEDESC structure + DWORD dwFlags; // Indicates which fields have valid data + D3DCOLORMODEL dcmColorModel; // Color model of device + DWORD dwDevCaps; // Capabilities of device + D3DTRANSFORMCAPS dtcTransformCaps; // Capabilities of transform + BOOL bClipping; // Device can do 3D clipping + D3DLIGHTINGCAPS dlcLightingCaps; // Capabilities of lighting + D3DPRIMCAPS dpcLineCaps; + D3DPRIMCAPS dpcTriCaps; + DWORD dwDeviceRenderBitDepth; // One of DDBD_16, etc.. + DWORD dwDeviceZBufferBitDepth; // One of DDBD_16, 32, etc.. + DWORD dwMaxBufferSize; // Maximum execute buffer size + DWORD dwMaxVertexCount; // Maximum vertex count + + DWORD dwMinTextureWidth, dwMinTextureHeight; + DWORD dwMaxTextureWidth, dwMaxTextureHeight; + DWORD dwMinStippleWidth, dwMaxStippleWidth; + DWORD dwMinStippleHeight, dwMaxStippleHeight; + + DWORD dwMaxTextureRepeat; + DWORD dwMaxTextureAspectRatio; + DWORD dwMaxAnisotropy; + D3DVALUE dvGuardBandLeft; + D3DVALUE dvGuardBandTop; + D3DVALUE dvGuardBandRight; + D3DVALUE dvGuardBandBottom; + D3DVALUE dvExtentsAdjust; + DWORD dwStencilCaps; + DWORD dwFVFCaps; // low 4 bits: 0 implies TLVERTEX only, 1..8 imply FVF aware + DWORD dwTextureOpCaps; + WORD wMaxTextureBlendStages; + WORD wMaxSimultaneousTextures; +} D3DNTDEVICEDESC_V3, *LPD3DNTDEVICEDESC_V3; + +#define D3DNTDEVICEDESCSIZE_V3 (sizeof(D3DNTDEVICEDESC_V3)) +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* -------------------------------------------------------------- + * Instantiated by the HAL driver on driver connection. + * + * Regarding dwNumVertices, specify 0 if you are relying on the HEL to do + * everything and you do not need the resultant TLVertex buffer to reside + * in device memory. + * The HAL driver will be asked to allocate dwNumVertices + dwNumClipVertices + * in the case described above. + */ +typedef struct _D3DNTHAL_GLOBALDRIVERDATA +{ + DWORD dwSize; // Size of this structure + D3DNTHALDEVICEDESC_V1 hwCaps; // Capabilities of the hardware + DWORD dwNumVertices; // see following comment + DWORD dwNumClipVertices; // see following comment + DWORD dwNumTextureFormats; // Number of texture formats + LPDDSURFACEDESC lpTextureFormats; // Pointer to texture formats +} D3DNTHAL_GLOBALDRIVERDATA; +typedef D3DNTHAL_GLOBALDRIVERDATA *LPD3DNTHAL_GLOBALDRIVERDATA; + +#define D3DNTHAL_GLOBALDRIVERDATASIZE (sizeof(D3DNTHAL_GLOBALDRIVERDATA)) + +#if(DIRECT3D_VERSION >= 0x0700) +/* -------------------------------------------------------------- + * Extended caps introduced with DX5 and queried with + * GetDriverInfo (GUID_D3DExtendedCaps). + */ +typedef struct _D3DNTHAL_D3DDX6EXTENDEDCAPS +{ + DWORD dwSize; // Size of this structure + + DWORD dwMinTextureWidth, dwMaxTextureWidth; + DWORD dwMinTextureHeight, dwMaxTextureHeight; + DWORD dwMinStippleWidth, dwMaxStippleWidth; + DWORD dwMinStippleHeight, dwMaxStippleHeight; + + // fields added for DX6 + DWORD dwMaxTextureRepeat; + DWORD dwMaxTextureAspectRatio; + DWORD dwMaxAnisotropy; + D3DVALUE dvGuardBandLeft; + D3DVALUE dvGuardBandTop; + D3DVALUE dvGuardBandRight; + D3DVALUE dvGuardBandBottom; + D3DVALUE dvExtentsAdjust; + DWORD dwStencilCaps; + DWORD dwFVFCaps; // low 4 bits: 0 implies TLVERTEX only, 1..8 imply FVF aware + DWORD dwTextureOpCaps; + WORD wMaxTextureBlendStages; + WORD wMaxSimultaneousTextures; + +} D3DNTHAL_D3DDX6EXTENDEDCAPS; +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* -------------------------------------------------------------- + * Extended caps introduced with DX5 and queried with + * GetDriverInfo (GUID_D3DExtendedCaps). + */ +typedef struct _D3DNTHAL_D3DEXTENDEDCAPS +{ + DWORD dwSize; // Size of this structure + DWORD dwMinTextureWidth, dwMaxTextureWidth; + DWORD dwMinTextureHeight, dwMaxTextureHeight; + DWORD dwMinStippleWidth, dwMaxStippleWidth; + DWORD dwMinStippleHeight, dwMaxStippleHeight; + + // fields added for DX6 + DWORD dwMaxTextureRepeat; + DWORD dwMaxTextureAspectRatio; + DWORD dwMaxAnisotropy; + D3DVALUE dvGuardBandLeft; + D3DVALUE dvGuardBandTop; + D3DVALUE dvGuardBandRight; + D3DVALUE dvGuardBandBottom; + D3DVALUE dvExtentsAdjust; + DWORD dwStencilCaps; + DWORD dwFVFCaps; // 0 implies TLVERTEX only, 1..8 imply full FVF aware */ + DWORD dwTextureOpCaps; + WORD wMaxTextureBlendStages; + WORD wMaxSimultaneousTextures; +#if(DIRECT3D_VERSION >= 0x0700) + /* fields added for DX7 */ + DWORD dwMaxActiveLights; + D3DVALUE dvMaxVertexW; + + WORD wMaxUserClipPlanes; + WORD wMaxVertexBlendMatrices; + + DWORD dwVertexProcessingCaps; + + DWORD dwReserved1; + DWORD dwReserved2; + DWORD dwReserved3; + DWORD dwReserved4; +#endif /* DIRECT3D_VERSION >= 0x0700 */ +} D3DNTHAL_D3DEXTENDEDCAPS; + +typedef D3DNTHAL_D3DEXTENDEDCAPS *LPD3DNTHAL_D3DEXTENDEDCAPS; + +#define D3DNTHAL_D3DEXTENDEDCAPSSIZE (sizeof(D3DNTHAL_D3DEXTENDEDCAPS)) + +// This is a temporary fix to make older NT drivers to compile +#define dvVertexProcessingCaps dwVertexProcessingCaps + +#if(DIRECT3D_VERSION >= 0x0700) +typedef D3DNTHAL_D3DDX6EXTENDEDCAPS *LPD3DNTHAL_D3DDX6EXTENDEDCAPS; +#define D3DNTHAL_D3DDX6EXTENDEDCAPSSIZE (sizeof(D3DNTHAL_D3DDX6EXTENDEDCAPS)) +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* -------------------------------------------------------------- + * Argument to the HAL functions. + */ + +typedef ULONG_PTR D3DINTHAL_BUFFERHANDLE, *LPD3DINTHAL_BUFFERHANDLE; + +typedef struct _D3DNTHAL_CONTEXTCREATEDATA +{ + union + { + PDD_DIRECTDRAW_GLOBAL lpDDGbl; // in: obsolete + PDD_DIRECTDRAW_LOCAL lpDDLcl; // in: Driver struct + }; + union + { + PDD_SURFACE_LOCAL lpDDS; // in: obsolete + PDD_SURFACE_LOCAL lpDDSLcl; // in: Surface to be used as target + }; + union + { + PDD_SURFACE_LOCAL lpDDSZ; // in: obsolete + PDD_SURFACE_LOCAL lpDDSZLcl; // in: Surface to be used as Z + }; + DWORD dwPID; // in: Current process id + ULONG_PTR dwhContext; // in/out: Context handle + HRESULT ddrval; // out: Return value +} D3DNTHAL_CONTEXTCREATEDATA; +typedef D3DNTHAL_CONTEXTCREATEDATA *LPD3DNTHAL_CONTEXTCREATEDATA; + +typedef struct _D3DNTHAL_CONTEXTDESTROYDATA +{ + ULONG_PTR dwhContext; // in: Context handle + HRESULT ddrval; // out: Return value +} D3DNTHAL_CONTEXTDESTROYDATA; +typedef D3DNTHAL_CONTEXTDESTROYDATA *LPD3DNTHAL_CONTEXTDESTROYDATA; + +typedef struct _D3DNTHAL_CONTEXTDESTROYALLDATA +{ + DWORD dwPID; // in: Process id to destroy contexts for + HRESULT ddrval; // out: Return value +} D3DNTHAL_CONTEXTDESTROYALLDATA; +typedef D3DNTHAL_CONTEXTDESTROYALLDATA *LPD3DNTHAL_CONTEXTDESTROYALLDATA; + +typedef struct _D3DNTHAL_SCENECAPTUREDATA +{ + ULONG_PTR dwhContext; // in: Context handle + DWORD dwFlag; // in: Indicates beginning or end + HRESULT ddrval; // out: Return value +} D3DNTHAL_SCENECAPTUREDATA; +typedef D3DNTHAL_SCENECAPTUREDATA *LPD3DNTHAL_SCENECAPTUREDATA; + +typedef struct _D3DNTHAL_TEXTURECREATEDATA +{ + ULONG_PTR dwhContext; // in: Context handle + HANDLE hDDS; // in: Handle to surface object + ULONG_PTR dwHandle; // out: Handle to texture + HRESULT ddrval; // out: Return value +} D3DNTHAL_TEXTURECREATEDATA; +typedef D3DNTHAL_TEXTURECREATEDATA *LPD3DNTHAL_TEXTURECREATEDATA; + +typedef struct _D3DNTHAL_TEXTUREDESTROYDATA +{ + ULONG_PTR dwhContext; // in: Context handle + ULONG_PTR dwHandle; // in: Handle to texture + HRESULT ddrval; // out: Return value +} D3DNTHAL_TEXTUREDESTROYDATA; +typedef D3DNTHAL_TEXTUREDESTROYDATA *LPD3DNTHAL_TEXTUREDESTROYDATA; + +typedef struct _D3DNTHAL_TEXTURESWAPDATA +{ + ULONG_PTR dwhContext; // in: Context handle + ULONG_PTR dwHandle1; // in: Handle to texture 1 + ULONG_PTR dwHandle2; // in: Handle to texture 2 + HRESULT ddrval; // out: Return value +} D3DNTHAL_TEXTURESWAPDATA; +typedef D3DNTHAL_TEXTURESWAPDATA *LPD3DNTHAL_TEXTURESWAPDATA; + +typedef struct _D3DNTHAL_TEXTUREGETSURFDATA +{ + ULONG_PTR dwhContext; // in: Context handle + HANDLE hDDS; // out: Handle to surface object + ULONG_PTR dwHandle; // in: Handle to texture + HRESULT ddrval; // out: Return value +} D3DNTHAL_TEXTUREGETSURFDATA; +typedef D3DNTHAL_TEXTUREGETSURFDATA *LPD3DNTHAL_TEXTUREGETSURFDATA; + +/* -------------------------------------------------------------- + * Flags for the data parameters. + */ + +/* + * SceneCapture() + * This is used as an indication to the driver that a scene is about to + * start or end, and that it should capture data if required. + */ +#define D3DNTHAL_SCENE_CAPTURE_START 0x00000000L +#define D3DNTHAL_SCENE_CAPTURE_END 0x00000001L + +/* -------------------------------------------------------------- + * Return values from HAL functions. + */ + +/* + * The context passed in was bad. + */ +#define D3DNTHAL_CONTEXT_BAD 0x000000200L + +/* + * No more contexts left. + */ +#define D3DNTHAL_OUTOFCONTEXTS 0x000000201L + +/* -------------------------------------------------------------- + * Direct3D HAL Table. + * Instantiated by the HAL driver on connection. + * + * Calls take the form of: + * retcode = HalCall(HalCallData* lpData); + */ + +typedef DWORD (APIENTRY *LPD3DNTHAL_CONTEXTCREATECB)(LPD3DNTHAL_CONTEXTCREATEDATA); +typedef DWORD (APIENTRY *LPD3DNTHAL_CONTEXTDESTROYCB)(LPD3DNTHAL_CONTEXTDESTROYDATA); +typedef DWORD (APIENTRY *LPD3DNTHAL_CONTEXTDESTROYALLCB)(LPD3DNTHAL_CONTEXTDESTROYALLDATA); +typedef DWORD (APIENTRY *LPD3DNTHAL_SCENECAPTURECB)(LPD3DNTHAL_SCENECAPTUREDATA); +typedef DWORD (APIENTRY *LPD3DNTHAL_TEXTURECREATECB)(LPD3DNTHAL_TEXTURECREATEDATA); +typedef DWORD (APIENTRY *LPD3DNTHAL_TEXTUREDESTROYCB)(LPD3DNTHAL_TEXTUREDESTROYDATA); +typedef DWORD (APIENTRY *LPD3DNTHAL_TEXTURESWAPCB)(LPD3DNTHAL_TEXTURESWAPDATA); +typedef DWORD (APIENTRY *LPD3DNTHAL_TEXTUREGETSURFCB)(LPD3DNTHAL_TEXTUREGETSURFDATA); + +typedef struct _D3DNTHAL_CALLBACKS +{ + DWORD dwSize; + + // Device context + LPD3DNTHAL_CONTEXTCREATECB ContextCreate; + LPD3DNTHAL_CONTEXTDESTROYCB ContextDestroy; + LPD3DNTHAL_CONTEXTDESTROYALLCB ContextDestroyAll; + + // Scene Capture + LPD3DNTHAL_SCENECAPTURECB SceneCapture; + + // Execution + LPVOID dwReserved10; // Must be zero (was Execute) + LPVOID dwReserved11; // Must be zero (was ExecuteClipped) + LPVOID dwReserved22; // Must be zero (was RenderState) + LPVOID dwReserved23; // Must be zero (was RenderPrimitive) + + ULONG_PTR dwReserved; // Must be zero + + // Textures + LPD3DNTHAL_TEXTURECREATECB TextureCreate; + LPD3DNTHAL_TEXTUREDESTROYCB TextureDestroy; + LPD3DNTHAL_TEXTURESWAPCB TextureSwap; + LPD3DNTHAL_TEXTUREGETSURFCB TextureGetSurf; + + LPVOID dwReserved12; // Must be zero + LPVOID dwReserved13; // Must be zero + LPVOID dwReserved14; // Must be zero + LPVOID dwReserved15; // Must be zero + LPVOID dwReserved16; // Must be zero + LPVOID dwReserved17; // Must be zero + LPVOID dwReserved18; // Must be zero + LPVOID dwReserved19; // Must be zero + LPVOID dwReserved20; // Must be zero + LPVOID dwReserved21; // Must be zero + + // Pipeline state + LPVOID dwReserved24; // Was GetState; + + ULONG_PTR dwReserved0; // Must be zero + ULONG_PTR dwReserved1; // Must be zero + ULONG_PTR dwReserved2; // Must be zero + ULONG_PTR dwReserved3; // Must be zero + ULONG_PTR dwReserved4; // Must be zero + ULONG_PTR dwReserved5; // Must be zero + ULONG_PTR dwReserved6; // Must be zero + ULONG_PTR dwReserved7; // Must be zero + ULONG_PTR dwReserved8; // Must be zero + ULONG_PTR dwReserved9; // Must be zero + +} D3DNTHAL_CALLBACKS; +typedef D3DNTHAL_CALLBACKS *LPD3DNTHAL_CALLBACKS; + +#define D3DNTHAL_SIZE_V1 sizeof(D3DNTHAL_CALLBACKS) + +typedef struct _D3DNTHAL_SETRENDERTARGETDATA +{ + ULONG_PTR dwhContext; // in: Context handle + PDD_SURFACE_LOCAL lpDDS; // in: new render target + PDD_SURFACE_LOCAL lpDDSZ; // in: new Z buffer + HRESULT ddrval; // out: Return value +} D3DNTHAL_SETRENDERTARGETDATA; +typedef D3DNTHAL_SETRENDERTARGETDATA *LPD3DNTHAL_SETRENDERTARGETDATA; + + +typedef DWORD (APIENTRY *LPD3DNTHAL_SETRENDERTARGETCB)(LPD3DNTHAL_SETRENDERTARGETDATA); + +typedef struct _D3DNTHAL_CALLBACKS2 +{ + DWORD dwSize; // size of struct + DWORD dwFlags; // flags for callbacks + + LPD3DNTHAL_SETRENDERTARGETCB SetRenderTarget; + LPVOID dwReserved1; // was Clear + LPVOID dwReserved2; // was DrawOnePrimitive + LPVOID dwReserved3; // was DrawOneIndexedPrimitive + LPVOID dwReserved4; // was DrawPrimitives +} D3DNTHAL_CALLBACKS2; +typedef D3DNTHAL_CALLBACKS2 *LPD3DNTHAL_CALLBACKS2; + +#define D3DNTHAL2_CB32_SETRENDERTARGET 0x00000001L + + +typedef struct _D3DNTHAL_CLEAR2DATA +{ + ULONG_PTR dwhContext; // in: Context handle + + // dwFlags can contain D3DCLEAR_TARGET or D3DCLEAR_ZBUFFER + DWORD dwFlags; // in: surfaces to clear + + DWORD dwFillColor; // in: Color value for rtarget + D3DVALUE dvFillDepth; // in: Depth value for + // Z-buffer (0.0-1.0) + DWORD dwFillStencil; // in: value used to clear stencil buffer + + LPD3DRECT lpRects; // in: Rectangles to clear + DWORD dwNumRects; // in: Number of rectangles + + HRESULT ddrval; // out: Return value +} D3DNTHAL_CLEAR2DATA; +typedef D3DNTHAL_CLEAR2DATA FAR *LPD3DNTHAL_CLEAR2DATA; + +typedef struct _D3DNTHAL_VALIDATETEXTURESTAGESTATEDATA +{ + ULONG_PTR dwhContext; // in: Context handle + DWORD dwFlags; // in: Flags, currently set to 0 + ULONG_PTR dwReserved; // + DWORD dwNumPasses; // out: Number of passes the hardware + // can perform the operation in + HRESULT ddrval; // out: return value +} D3DNTHAL_VALIDATETEXTURESTAGESTATEDATA; +typedef D3DNTHAL_VALIDATETEXTURESTAGESTATEDATA FAR *LPD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA; + +//----------------------------------------------------------------------------- +// DrawPrimitives2 DDI +//----------------------------------------------------------------------------- + +// +// Command structure for vertex buffer rendering +// + +typedef struct _D3DNTHAL_DP2COMMAND +{ + BYTE bCommand; // vertex command + BYTE bReserved; + union + { + WORD wPrimitiveCount; // primitive count for unconnected primitives + WORD wStateCount; // count of render states to follow + }; +} D3DNTHAL_DP2COMMAND, *LPDNT3DHAL_DP2COMMAND; + +// +// DrawPrimitives2 commands: +// + +typedef enum _D3DNTHAL_DP2OPERATION +{ + D3DNTDP2OP_POINTS = 1, + D3DNTDP2OP_INDEXEDLINELIST = 2, + D3DNTDP2OP_INDEXEDTRIANGLELIST = 3, + D3DNTDP2OP_RENDERSTATE = 8, + D3DNTDP2OP_LINELIST = 15, + D3DNTDP2OP_LINESTRIP = 16, + D3DNTDP2OP_INDEXEDLINESTRIP = 17, + D3DNTDP2OP_TRIANGLELIST = 18, + D3DNTDP2OP_TRIANGLESTRIP = 19, + D3DNTDP2OP_INDEXEDTRIANGLESTRIP = 20, + D3DNTDP2OP_TRIANGLEFAN = 21, + D3DNTDP2OP_INDEXEDTRIANGLEFAN = 22, + D3DNTDP2OP_TRIANGLEFAN_IMM = 23, + D3DNTDP2OP_LINELIST_IMM = 24, + D3DNTDP2OP_TEXTURESTAGESTATE = 25, + D3DNTDP2OP_INDEXEDTRIANGLELIST2 = 26, + D3DNTDP2OP_INDEXEDLINELIST2 = 27, + D3DNTDP2OP_VIEWPORTINFO = 28, + D3DNTDP2OP_WINFO = 29, + D3DNTDP2OP_SETPALETTE = 30, + D3DNTDP2OP_UPDATEPALETTE = 31, +#if(DIRECT3D_VERSION >= 0x0700) + //new for DX7 + D3DNTDP2OP_ZRANGE = 32, + D3DNTDP2OP_SETMATERIAL = 33, + D3DNTDP2OP_SETLIGHT = 34, + D3DNTDP2OP_CREATELIGHT = 35, + D3DNTDP2OP_SETTRANSFORM = 36, + D3DNTDP2OP_TEXBLT = 38, + D3DNTDP2OP_STATESET = 39, + D3DNTDP2OP_SETPRIORITY = 40, +#endif /* DIRECT3D_VERSION >= 0x0700 */ + D3DNTDP2OP_SETRENDERTARGET = 41, + D3DNTDP2OP_CLEAR = 42, +#if(DIRECT3D_VERSION >= 0x0700) + D3DNTDP2OP_SETTEXLOD = 43, + D3DNTDP2OP_SETCLIPPLANE = 44, +#endif /* DIRECT3D_VERSION >= 0x0700 */ +#if(DIRECT3D_VERSION >= 0x0800) + D3DNTDP2OP_CREATEVERTEXSHADER = 45, + D3DNTDP2OP_DELETEVERTEXSHADER = 46, + D3DNTDP2OP_SETVERTEXSHADER = 47, + D3DNTDP2OP_SETVERTEXSHADERCONST = 48, + D3DNTDP2OP_SETSTREAMSOURCE = 49, + D3DNTDP2OP_SETSTREAMSOURCEUM = 50, + D3DNTDP2OP_SETINDICES = 51, + D3DNTDP2OP_DRAWPRIMITIVE = 52, + D3DNTDP2OP_DRAWINDEXEDPRIMITIVE = 53, + D3DNTDP2OP_CREATEPIXELSHADER = 54, + D3DNTDP2OP_DELETEPIXELSHADER = 55, + D3DNTDP2OP_SETPIXELSHADER = 56, + D3DNTDP2OP_SETPIXELSHADERCONST = 57, + D3DNTDP2OP_CLIPPEDTRIANGLEFAN = 58, + D3DNTDP2OP_DRAWPRIMITIVE2 = 59, + D3DNTDP2OP_DRAWINDEXEDPRIMITIVE2 = 60, + D3DNTDP2OP_DRAWRECTPATCH = 61, + D3DNTDP2OP_DRAWTRIPATCH = 62, + D3DNTDP2OP_VOLUMEBLT = 63, + D3DNTDP2OP_BUFFERBLT = 64, + D3DNTDP2OP_MULTIPLYTRANSFORM = 65, + D3DNTDP2OP_ADDDIRTYRECT = 66, + D3DNTDP2OP_ADDDIRTYBOX = 67, +#endif /* DIRECT3D_VERSION >= 0x0800 */ +#if(DIRECT3D_VERSION >= 0x0900) + D3DNTDP2OP_CREATEVERTEXSHADERDECL = 71, + D3DNTDP2OP_DELETEVERTEXSHADERDECL = 72, + D3DNTDP2OP_SETVERTEXSHADERDECL = 73, + D3DNTDP2OP_CREATEVERTEXSHADERFUNC = 74, + D3DNTDP2OP_DELETEVERTEXSHADERFUNC = 75, + D3DNTDP2OP_SETVERTEXSHADERFUNC = 76, + D3DNTDP2OP_SETVERTEXSHADERCONSTI = 77, + D3DNTDP2OP_SETSCISSORRECT = 79, + D3DNTDP2OP_SETSTREAMSOURCE2 = 80, + D3DNTDP2OP_BLT = 81, + D3DNTDP2OP_COLORFILL = 82, + D3DNTDP2OP_SETVERTEXSHADERCONSTB = 83, + D3DNTDP2OP_CREATEQUERY = 84, + D3DNTDP2OP_SETRENDERTARGET2 = 85, + D3DNTDP2OP_SETDEPTHSTENCIL = 86, + D3DNTDP2OP_RESPONSECONTINUE = 87, // Can come only from driver + D3DNTDP2OP_RESPONSEQUERY = 88, // Can come only from driver + D3DNTDP2OP_GENERATEMIPSUBLEVELS = 89, + D3DNTDP2OP_DELETEQUERY = 90, + D3DNTDP2OP_ISSUEQUERY = 91, + D3DNTDP2OP_SETPIXELSHADERCONSTI = 93, + D3DNTDP2OP_SETPIXELSHADERCONSTB = 94, + D3DNTDP2OP_SETSTREAMSOURCEFREQ = 95, + D3DNTDP2OP_SURFACEBLT = 96, + D3DNTDP2OP_SETCONVOLUTIONKERNELMONO = 97, + D3DNTDP2OP_COMPOSERECTS = 98, +#endif /* DIRECT3D_VERSION >= 0x0900 */ +} D3DNTHAL_DP2OPERATION; + +// +// DrawPrimitives2 point primitives +// + +typedef struct _D3DNTHAL_DP2POINTS +{ + WORD wCount; + WORD wVStart; +} D3DNTHAL_DP2POINTS; + +// +// DrawPrimitives2 line primitives +// + +typedef struct _D3DNTHAL_DP2STARTVERTEX +{ + WORD wVStart; +} D3DNTHAL_DP2STARTVERTEX, *LPD3DNTHAL_DP2STARTVERTEX; + +typedef struct _D3DNTHAL_DP2LINELIST +{ + WORD wVStart; +} D3DNTHAL_DP2LINELIST; + +typedef struct _D3DNTHAL_DP2INDEXEDLINELIST +{ + WORD wV1; + WORD wV2; +} D3DNTHAL_DP2INDEXEDLINELIST; + +typedef struct _D3DNTHAL_DP2LINESTRIP +{ + WORD wVStart; +} D3DNTHAL_DP2LINESTRIP; + +typedef struct _D3DNTHAL_DP2INDEXEDLINESTRIP +{ + WORD wV[2]; +} D3DNTHAL_DP2INDEXEDLINESTRIP; + +// +// DrawPrimitives2 triangle primitives +// + +typedef struct _D3DNTHAL_DP2TRIANGLELIST +{ + WORD wVStart; +} D3DNTHAL_DP2TRIANGLELIST; + +typedef struct _D3DNTHAL_DP2INDEXEDTRIANGLELIST +{ + WORD wV1; + WORD wV2; + WORD wV3; + WORD wFlags; +} D3DNTHAL_DP2INDEXEDTRIANGLELIST; + +typedef struct _D3DNTHAL_DP2INDEXEDTRIANGLELIST2 { + WORD wV1; + WORD wV2; + WORD wV3; +} D3DNTHAL_DP2INDEXEDTRIANGLELIST2, *LPD3DNTHAL_DP2INDEXEDTRIANGLELIST2; + +typedef struct _D3DNTHAL_DP2TRIANGLESTRIP +{ + WORD wVStart; +} D3DNTHAL_DP2TRIANGLESTRIP; + +typedef struct _D3DNTHAL_DP2INDEXEDTRIANGLESTRIP +{ + WORD wV[3]; +} D3DNTHAL_DP2INDEXEDTRIANGLESTRIP; + +typedef struct _D3DNTHAL_DP2TRIANGLEFAN +{ + WORD wVStart; +} D3DNTHAL_DP2TRIANGLEFAN; + +typedef struct _D3DNTHAL_DP2INDEXEDTRIANGLEFAN +{ + WORD wV[3]; +} D3DNTHAL_DP2INDEXEDTRIANGLEFAN; + +typedef struct _D3DNTHAL_DP2TRIANGLEFAN_IMM +{ + DWORD dwEdgeFlags; +} D3DNTHAL_DP2TRIANGLEFAN_IMM, *LPD3DNTHAL_DP2TRIANGLEFAN_IMM; + +// +// DrawPrimitives2 Renderstate changes +// + +typedef struct _D3DNTHAL_DP2RENDERSTATE +{ + D3DRENDERSTATETYPE RenderState; + union + { + D3DVALUE fState; + DWORD dwState; + }; +} D3DNTHAL_DP2RENDERSTATE; +typedef D3DNTHAL_DP2RENDERSTATE * LPD3DNTHAL_DP2RENDERSTATE; + +typedef struct _D3DNTHAL_DP2TEXTURESTAGESTATE +{ + WORD wStage; + WORD TSState; + DWORD dwValue; +} D3DNTHAL_DP2TEXTURESTAGESTATE; +typedef D3DNTHAL_DP2TEXTURESTAGESTATE *LPD3DNTHAL_DP2TEXTURESTAGESTATE; + +typedef struct _D3DNTHAL_DP2VIEWPORTINFO +{ + DWORD dwX; + DWORD dwY; + DWORD dwWidth; + DWORD dwHeight; +} D3DNTHAL_DP2VIEWPORTINFO; +typedef D3DNTHAL_DP2VIEWPORTINFO *LPD3DNTHAL_DP2VIEWPORTINFO; + +typedef struct _D3DNTHAL_DP2WINFO +{ + D3DVALUE dvWNear; + D3DVALUE dvWFar; +} D3DNTHAL_DP2WINFO; +typedef D3DNTHAL_DP2WINFO *LPD3DNTHAL_DP2WINFO; + +typedef struct _D3DNTHAL_DP2SETPALETTE +{ + DWORD dwPaletteHandle; + DWORD dwPaletteFlags; + DWORD dwSurfaceHandle; +} D3DNTHAL_DP2SETPALETTE; +typedef D3DNTHAL_DP2SETPALETTE *LPD3DNTHAL_DP2SETPALETTE; + +typedef struct _D3DNTHAL_DP2UPDATEPALETTE +{ + DWORD dwPaletteHandle; + WORD wStartIndex; + WORD wNumEntries; +} D3DNTHAL_DP2UPDATEPALETTE; +typedef D3DNTHAL_DP2UPDATEPALETTE *LPD3DNTHAL_DP2UPDATEPALETTE; + +typedef struct _D3DNTHAL_DP2SETRENDERTARGET +{ + DWORD hRenderTarget; + DWORD hZBuffer; +} D3DNTHAL_DP2SETRENDERTARGET; +typedef D3DNTHAL_DP2SETRENDERTARGET *LPD3DNTHAL_DP2SETRENDERTARGET; + +#if(DIRECT3D_VERSION >= 0x0700) +// Values for dwOperations in the D3DHAL_DP2STATESET +#define D3DHAL_STATESETBEGIN 0 +#define D3DHAL_STATESETEND 1 +#define D3DHAL_STATESETDELETE 2 +#define D3DHAL_STATESETEXECUTE 3 +#define D3DHAL_STATESETCAPTURE 4 + +typedef struct _D3DNTHAL_DP2STATESET +{ + DWORD dwOperation; + DWORD dwParam; // State set handle passed with D3DHAL_STATESETBEGIN, + // D3DHAL_STATESETEXECUTE, D3DHAL_STATESETDELETE + // D3DHAL_STATESETCAPTURE + D3DSTATEBLOCKTYPE sbType; // Type use with D3DHAL_STATESETBEGIN/END +} D3DNTHAL_DP2STATESET; +typedef D3DNTHAL_DP2STATESET *LPD3DNTHAL_DP2STATESET; + +// +// T&L Hal specific stuff +// +typedef struct _D3DNTHAL_DP2ZRANGE +{ + D3DVALUE dvMinZ; + D3DVALUE dvMaxZ; +} D3DNTHAL_DP2ZRANGE; +typedef D3DNTHAL_DP2ZRANGE *LPD3DNTHAL_DP2ZRANGE; + +typedef D3DMATERIAL7 D3DNTHAL_DP2SETMATERIAL, *LPD3DNTHAL_DP2SETMATERIAL; + +typedef struct _D3DNTHAL_DP2SETLIGHT +{ + DWORD dwIndex; + union { + DWORD lightData; + DWORD dwDataType; + }; +} D3DNTHAL_DP2SETLIGHT; +typedef D3DNTHAL_DP2SETLIGHT *LPD3DNTHAL_DP2SETLIGHT; + +typedef struct _D3DNTHAL_DP2SETCLIPPLANE +{ + DWORD dwIndex; + D3DVALUE plane[4]; +} D3DNTHAL_DP2SETCLIPPLANE; +typedef D3DNTHAL_DP2SETCLIPPLANE *LPD3DNTHAL_DP2SETCLIPPLANE; + +typedef struct _D3DNTHAL_DP2CREATELIGHT +{ + DWORD dwIndex; +} D3DNTHAL_DP2CREATELIGHT; +typedef D3DNTHAL_DP2CREATELIGHT *LPD3DNTHAL_DP2CREATELIGHT; + +typedef struct _D3DNTHAL_DP2SETTRANSFORM +{ + D3DTRANSFORMSTATETYPE xfrmType; + D3DMATRIX matrix; +} D3DNTHAL_DP2SETTRANSFORM; +typedef D3DNTHAL_DP2SETTRANSFORM *LPD3DNTHAL_DP2SETTRANSFORM; + +typedef struct _D3DNTHAL_DP2EXT +{ + DWORD dwExtToken; + DWORD dwSize; +} D3DNTHAL_DP2EXT; +typedef D3DNTHAL_DP2EXT *LPD3DNTHAL_DP2EXT; + +typedef struct _D3DNTHAL_DP2TEXBLT +{ + DWORD dwDDDestSurface; // dest surface + DWORD dwDDSrcSurface; // src surface + POINT pDest; + RECTL rSrc; // src rect + DWORD dwFlags; // blt flags +} D3DNTHAL_DP2TEXBLT; +typedef D3DNTHAL_DP2TEXBLT *LPD3DNTHAL_DP2TEXBLT; + +typedef struct _D3DNTHAL_DP2SETPRIORITY +{ + DWORD dwDDDestSurface; // dest surface + DWORD dwPriority; +} D3DNTHAL_DP2SETPRIORITY; +typedef D3DNTHAL_DP2SETPRIORITY *LPD3DNTHAL_DP2SETPRIORITY; + +typedef struct _D3DNTHAL_DP2CLEAR +{ + // dwFlags can contain D3DCLEAR_TARGET, D3DCLEAR_ZBUFFER, and/or D3DCLEAR_STENCIL + DWORD dwFlags; // in: surfaces to clear + DWORD dwFillColor; // in: Color value for rtarget + D3DVALUE dvFillDepth; // in: Depth value for Z buffer (0.0-1.0) + DWORD dwFillStencil; // in: value used to clear stencil buffer + RECT Rects[1]; // in: Rectangles to clear +} D3DNTHAL_DP2CLEAR; +typedef D3DNTHAL_DP2CLEAR *LPD3DNTHAL_DP2CLEAR; + +typedef struct _D3DNTHAL_DP2SETTEXLOD +{ + DWORD dwDDSurface; + DWORD dwLOD; +} D3DNTHAL_DP2SETTEXLOD; +typedef D3DNTHAL_DP2SETTEXLOD *LPD3DNTHAL_DP2SETTEXLOD; + +#endif /* DIRECT3D_VERSION >= 0x0700 */ + + +typedef struct _D3DNTHAL_DRAWPRIMITIVES2DATA +{ + ULONG_PTR dwhContext; // in: Context handle + DWORD dwFlags; // in: flags (look below) + DWORD dwVertexType; // in: vertex type + PDD_SURFACE_LOCAL lpDDCommands; // in: vertex buffer command data + DWORD dwCommandOffset; // in: offset to start of vb commands + DWORD dwCommandLength; // in: number of bytes of command data + union + { + PDD_SURFACE_LOCAL lpDDVertex; // in: surface containing vertex data + LPVOID lpVertices; // in: User mode pointer to vertices + }; + DWORD dwVertexOffset; // in: offset to start of vertex data + DWORD dwVertexLength; // in: number of vertices of vertex data + DWORD dwReqVertexBufSize; // in: number of bytes required for + // the next vertex buffer + DWORD dwReqCommandBufSize; // in: number if bytes required for + // the next commnand buffer + LPDWORD lpdwRStates; // in: Pointer to the array where render states are updated + union + { + DWORD dwVertexSize; // in: Size of each vertex in bytes + HRESULT ddrval; // out: return value + }; + DWORD dwErrorOffset; // out: offset in LPDDVBCOMMAND to + // first failed D3DNTHAL_VBCOMMAND +} D3DNTHAL_DRAWPRIMITIVES2DATA; +typedef D3DNTHAL_DRAWPRIMITIVES2DATA FAR *LPD3DNTHAL_DRAWPRIMITIVES2DATA; + +// Indicates that the lpVertices field in the DrawPrimitives2 data is +// valid, i.e. user allocated memory. +#define D3DNTHALDP2_USERMEMVERTICES 0x00000001L +// Indicates that the command buffer and vertex buffer are a system memory execute buffer +// resulting from the use of the Execute buffer API. +#define D3DNTHALDP2_EXECUTEBUFFER 0x00000002L + +// The swap flags indicate if it is OK for the driver to swap the submitted buffers with new +// buffers and asyncronously work on the submitted buffers. +#define D3DNTHALDP2_SWAPVERTEXBUFFER 0x00000004L +#define D3DNTHALDP2_SWAPCOMMANDBUFFER 0x00000008L +// The requested flags are present if the new buffers which the driver can allocate need to be +// of atleast a given size. If any of these flags are set, the corresponding dwReq* field in +// D3DNTHAL_DRAWPRIMITIVES2DATA will also be set with the requested size in bytes. +#define D3DNTHALDP2_REQVERTEXBUFSIZE 0x00000010L +#define D3DNTHALDP2_REQCOMMANDBUFSIZE 0x00000020L +// These flags are set by the driver upon return from DrawPrimitives2 indicating if the new +// buffers are not in system memory. +#define D3DNTHALDP2_VIDMEMVERTEXBUF 0x00000040L +#define D3DNTHALDP2_VIDMEMCOMMANDBUF 0x00000080L + + +// Return values for the driver callback used in DP2 implementations +// Used by the driver to ask runtime to parse the execute buffer +#define D3DNTERR_COMMAND_UNPARSED MAKE_DDHRESULT(3000) + + +typedef DWORD (APIENTRY *LPD3DNTHAL_CLEAR2CB)(LPD3DNTHAL_CLEAR2DATA); +typedef DWORD (APIENTRY *LPD3DNTHAL_VALIDATETEXTURESTAGESTATECB)(LPD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA); +typedef DWORD (APIENTRY *LPD3DNTHAL_DRAWPRIMITIVES2CB)(LPD3DNTHAL_DRAWPRIMITIVES2DATA); + +typedef struct _D3DNTHAL_CALLBACKS3 +{ + DWORD dwSize; // size of struct + DWORD dwFlags; // flags for callbacks + + LPD3DNTHAL_CLEAR2CB Clear2; + LPVOID lpvReserved; + LPD3DNTHAL_VALIDATETEXTURESTAGESTATECB ValidateTextureStageState; + LPD3DNTHAL_DRAWPRIMITIVES2CB DrawPrimitives2; +} D3DNTHAL_CALLBACKS3; +typedef D3DNTHAL_CALLBACKS3 *LPD3DNTHAL_CALLBACKS3; + +#define D3DNTHAL3_CB32_CLEAR2 0x00000001L +#define D3DNTHAL3_CB32_RESERVED 0x00000002L +#define D3DNTHAL3_CB32_VALIDATETEXTURESTAGESTATE 0x00000004L +#define D3DNTHAL3_CB32_DRAWPRIMITIVES2 0x00000008L + +// typedef for the Callback that the drivers can use to parse unknown commands +// passed to them via the DrawPrimitives2 callback. The driver obtains this +// callback thru a GetDriverInfo call with GUID_D3DParseUnknownCommandCallback +// made by ddraw somewhere around the initialization time. +typedef HRESULT (CALLBACK *PFND3DNTPARSEUNKNOWNCOMMAND)(LPVOID lpvCommands, + LPVOID *lplpvReturnedCommand); + +/* -------------------------------------------------------------- + * Texture stage renderstate mapping definitions. + * + * 256 renderstate slots [256, 511] are reserved for texture processing + * stage controls, which provides for 8 texture processing stages each + * with 32 DWORD controls. + * + * The renderstates within each stage are indexed by the + * D3DTEXTURESTAGESTATETYPE enumerants by adding the appropriate + * enumerant to the base for a given texture stage. + * + * Note, "state overrides" bias the renderstate by 256, so the two + * ranges overlap. Overrides are enabled for exebufs only, so all + * this means is that Texture3 cannot be used with exebufs. + */ + +/* + * Base of all texture stage state values in renderstate array. + */ +#define D3DNTHAL_TSS_RENDERSTATEBASE 256UL + +/* + * Maximum number of stages allowed. + */ +#define D3DNTHAL_TSS_MAXSTAGES 8 + +/* + * Number of state DWORDS per stage. + */ +#define D3DNTHAL_TSS_STATESPERSTAGE 64 + +/* + * Texture handle's offset into the 32-DWORD cascade state vector + */ +#ifndef D3DTSS_TEXTUREMAP +#define D3DTSS_TEXTUREMAP 0 +#endif + +#if(DIRECT3D_VERSION >= 0x0900) +/* -------------------------------------------------------------- + * Texture sampler renderstate. + * + * D3DSAMPLERSTATETYPE (D3DSAMP_*) sampler states exist to + * separate sampler state from the rest of the D3DTSS_* states. + * D3DSAMP_* states are only visible at the API level; + * the runtime simply maps these to D3DTSS_* for drivers. + * + */ + +/* + * Maximum number of texture samplers allowed. + * + * If this number gets bigger than 32, some retooling + * will be needed, as DWORD bitfields are used all over the place. + */ +#define D3DHAL_SAMPLER_MAXSAMP 16 + +/* + * Maximum number of samplers in vertex shaders (must be power of 2) + */ +#define D3DHAL_SAMPLER_MAXVERTEXSAMP 4 + +/* + * Number of state DWORDS per sampler. + */ +#define D3DHAL_SAMPLER_STATESPERSAMP D3DSAMP_MAX + + +/* + * D3DTSS_* states that have been removed from the D3DTEXTURESTAGESTATETYPE + * and turned into the D3DSAMP_* enum D3DTEXTURESAMPLERTYPE. + * These defines allow D3DSAMP_* to be mapped to D3DTSS_* through the DDI + * so that drivers can simply understand D3DTSS_* and do not have to know + * about D3DSAMP_* at all. + * These defines are now labelled as D3DTSS_RESERVEDn in the public + * header definition of D3DTEXTURESTAGESTATETYPE. + */ +#ifndef D3DTSS_ADDRESSU +#define D3DTSS_ADDRESSU ((D3DTEXTURESTAGESTATETYPE)13) +#define D3DTSS_ADDRESSV ((D3DTEXTURESTAGESTATETYPE)14) +#define D3DTSS_BORDERCOLOR ((D3DTEXTURESTAGESTATETYPE)15) +#define D3DTSS_MAGFILTER ((D3DTEXTURESTAGESTATETYPE)16) +#define D3DTSS_MINFILTER ((D3DTEXTURESTAGESTATETYPE)17) +#define D3DTSS_MIPFILTER ((D3DTEXTURESTAGESTATETYPE)18) +#define D3DTSS_MIPMAPLODBIAS ((D3DTEXTURESTAGESTATETYPE)19) +#define D3DTSS_MAXMIPLEVEL ((D3DTEXTURESTAGESTATETYPE)20) +#define D3DTSS_MAXANISOTROPY ((D3DTEXTURESTAGESTATETYPE)21) +#define D3DTSS_ADDRESSW ((D3DTEXTURESTAGESTATETYPE)25) +#define D3DTSS_SRGBTEXTURE ((D3DTEXTURESTAGESTATETYPE)29) +#define D3DTSS_ELEMENTINDEX ((D3DTEXTURESTAGESTATETYPE)30) +#define D3DTSS_DMAPOFFSET ((D3DTEXTURESTAGESTATETYPE)31) +#endif + +// These renderstates were retired in DX8: +#ifndef D3DRS_SOFTWAREVERTEXPROCESSING +#define D3DRS_SOFTWAREVERTEXPROCESSING ((D3DRENDERSTATETYPE)153) +#endif + +// These renderstates were retired in DX9: +#ifndef D3DRS_PATCHSEGMENTS +#define D3DRS_LINEPATTERN ((D3DRENDERSTATETYPE)10) +#define D3DRS_ZVISIBLE ((D3DRENDERSTATETYPE)30) +#define D3DRS_PATCHSEGMENTS ((D3DRENDERSTATETYPE)164) +#endif + +// These are line related states and caps that have been retired + +typedef struct __NT_D3DLINEPATTERN { + WORD wRepeatFactor; + WORD wLinePattern; +} _NT_D3DLINEPATTERN; + +#ifndef D3DPMISCCAPS_LINEPATTERNREP +#define D3DPMISCCAPS_LINEPATTERNREP 0x00000004L +#endif + +// These are old filter caps that have been retired. +#ifndef D3DTEXF_FLATCUBIC +#define D3DTEXF_FLATCUBIC ((D3DTEXTUREFILTERTYPE)4) +#endif + +#ifndef D3DTEXF_GAUSSIANCUBIC +#define D3DTEXF_GAUSSIANCUBIC ((D3DTEXTUREFILTERTYPE)5) +#endif + +#ifndef D3DRS_ZBIAS +#define D3DRS_ZBIAS ((D3DRENDERSTATETYPE)47) // replaced by depthbias +#endif + +#ifndef D3DRS_MAXVERTEXSHADERINST +#define D3DRS_MAXVERTEXSHADERINST 196 // DDI only: vs_3_0+ num instructions to execute. +#endif + +#ifndef D3DRS_MAXPIXELSHADERINST +#define D3DRS_MAXPIXELSHADERINST 197 // DDI only: ps_3_0+ num instructions to execute. +#endif + +#endif /* DIRECT3D_VERSION >= 0x0900 */ + +/* + * DDI only renderstates. + */ +#define D3DRENDERSTATE_EVICTMANAGEDTEXTURES 61 // DDI render state only to Evict textures +#define D3DRENDERSTATE_SCENECAPTURE 62 // DDI only to replace SceneCapture + +#define _NT_D3DRS_DELETERTPATCH 169 // DDI only to delete high order patch + + +// Default values for D3DRS_MAXVERTEXSHADERINST and D3DRS_MAXPIXELSHADERINST +#define D3DINFINITEINSTRUCTIONS 0xffffffff + +#if(DIRECT3D_VERSION >= 0x0800 ) + +// New values for dwOperations in the D3DHAL_DP2STATESET +#define D3DNTHAL_STATESETCREATE 5 + +// This bit is the same as D3DCLEAR_RESERVED0 in d3d8types.h +// When set it means that driver has to cull rects against current viewport. +// The bit is set only for pure devices +// +#define D3DNTCLEAR_COMPUTERECTS 0x00000008l + + +typedef struct _D3DNTHAL_DP2MULTIPLYTRANSFORM +{ + D3DTRANSFORMSTATETYPE xfrmType; + D3DMATRIX matrix; +} D3DNTHAL_DP2MULTIPLYTRANSFORM; +typedef D3DNTHAL_DP2MULTIPLYTRANSFORM *LPD3DNTHAL_DP2MULTIPLYTRANSFORM; + + +// Used by SetVertexShader and DeleteVertexShader +typedef struct _D3DNTHAL_DP2VERTEXSHADER +{ + // Vertex shader handle. + // The handle could be 0, meaning that the current vertex shader is invalid + // (not set). When driver recieves handle 0, it should invalidate all + // streams pointer + DWORD dwHandle; +} D3DNTHAL_DP2VERTEXSHADER; +typedef D3DNTHAL_DP2VERTEXSHADER *LPD3DNTHAL_DP2VERTEXSHADER; + +typedef struct _D3DNTHAL_DP2CREATEVERTEXSHADER +{ + DWORD dwHandle; // Shader handle + DWORD dwDeclSize; // Shader declaration size in bytes + DWORD dwCodeSize; // Shader code size in bytes + // Declaration follows + // Shader code follows +} D3DNTHAL_DP2CREATEVERTEXSHADER; +typedef D3DNTHAL_DP2CREATEVERTEXSHADER *LPD3DNTHAL_DP2CREATEVERTEXSHADER; + +typedef struct _D3DNTHAL_DP2SETVERTEXSHADERCONST +{ + DWORD dwRegister; // Const register to start copying + DWORD dwCount; // Number of 4-float vectors to copy for D3DDP2OP_SETVERTEXSHADERCONST + // Number of 4-integer vectors to copy for D3DDP2OP_SETVERTEXSHADERCONSTI + // Number of BOOL values to copy for D3DDP2OP_SETVERTEXSHADERCONSTB + // Data follows +} D3DNTHAL_DP2SETVERTEXSHADERCONST; +typedef D3DNTHAL_DP2SETVERTEXSHADERCONST *LPD3DNTHAL_DP2SETVERTEXSHADERCONST; + +typedef struct _D3DNTHAL_DP2SETSTREAMSOURCE +{ + DWORD dwStream; // Stream index, starting from zero + DWORD dwVBHandle; // Vertex buffer handle + DWORD dwStride; // Vertex size in bytes +} D3DNTHAL_DP2SETSTREAMSOURCE; +typedef D3DNTHAL_DP2SETSTREAMSOURCE *LPD3DNTHAL_DP2SETSTREAMSOURCE; + +typedef struct _D3DNTHAL_DP2SETSTREAMSOURCEUM +{ + DWORD dwStream; // Stream index, starting from zero + DWORD dwStride; // Vertex size in bytes +} D3DNTHAL_DP2SETSTREAMSOURCEUM; +typedef D3DNTHAL_DP2SETSTREAMSOURCEUM *LPD3DNTHAL_DP2SETSTREAMSOURCEUM; + +typedef struct _D3DNTHAL_DP2SETINDICES +{ + DWORD dwVBHandle; // Index buffer handle + DWORD dwStride; // Index size in bytes (2 or 4) +} D3DNTHAL_DP2SETINDICES; +typedef D3DNTHAL_DP2SETINDICES *LPD3DNTHAL_DP2SETINDICES; + +typedef struct _D3DNTHAL_DP2DRAWPRIMITIVE +{ + D3DPRIMITIVETYPE primType; + DWORD VStart; + DWORD PrimitiveCount; +} D3DNTHAL_DP2DRAWPRIMITIVE; +typedef D3DNTHAL_DP2DRAWPRIMITIVE *LPD3DNTHAL_DP2DRAWPRIMITIVE; + +typedef struct _D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE +{ + D3DPRIMITIVETYPE primType; + INT BaseVertexIndex; // Vertex which corresponds to index 0 + DWORD MinIndex; // Min vertex index in the vertex buffer + DWORD NumVertices; // Number of vertices starting from MinIndex + DWORD StartIndex; // Start index in the index buffer + DWORD PrimitiveCount; +} D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE; +typedef D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE *LPD3DNTHAL_DP2DRAWINDEXEDPRIMITIVE; + +typedef struct _D3DNTHAL_CLIPPEDTRIANGLEFAN +{ + DWORD FirstVertexOffset; // Offset in bytes in the current stream 0 + DWORD dwEdgeFlags; + DWORD PrimitiveCount; +} D3DNTHAL_CLIPPEDTRIANGLEFAN; +typedef D3DNTHAL_CLIPPEDTRIANGLEFAN *LPD3DNTHAL_CLIPPEDTRIANGLEFAN; + +typedef struct _D3DNTHAL_DP2DRAWPRIMITIVE2 +{ + D3DPRIMITIVETYPE primType; + DWORD FirstVertexOffset; // Offset in bytes in the stream 0 + DWORD PrimitiveCount; +} D3DNTHAL_DP2DRAWPRIMITIVE2; +typedef D3DNTHAL_DP2DRAWPRIMITIVE2 *LPD3DNTHAL_DP2DRAWPRIMITIVE2; + +typedef struct _D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 +{ + D3DPRIMITIVETYPE primType; + INT BaseVertexOffset; // Stream 0 offset of the vertex which + // corresponds to index 0. This offset could be + // negative, but when an index is added to the + // offset the result is positive + DWORD MinIndex; // Min vertex index in the vertex buffer + DWORD NumVertices; // Number of vertices starting from MinIndex + DWORD StartIndexOffset; // Offset of the start index in the index buffer + DWORD PrimitiveCount; // Number of triangles (points, lines) +} D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2; +typedef D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 *LPD3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2; + +// Used by SetPixelShader and DeletePixelShader +typedef struct _D3DNTHAL_DP2PIXELSHADER +{ + // Pixel shader handle. + // The handle could be 0, meaning that the current pixel shader is invalid + // (not set). + DWORD dwHandle; +} D3DNTHAL_DP2PIXELSHADER; +typedef D3DNTHAL_DP2PIXELSHADER *LPD3DNTHAL_DP2PIXELSHADER; + +typedef struct _D3DNTHAL_DP2CREATEPIXELSHADER +{ + DWORD dwHandle; // Shader handle + DWORD dwCodeSize; // Shader code size in bytes + // Shader code follows +} D3DNTHAL_DP2CREATEPIXELSHADER; +typedef D3DNTHAL_DP2CREATEPIXELSHADER *LPD3DNTHAL_DP2CREATEPIXELSHADER; + +typedef struct _D3DNTHAL_DP2SETPIXELSHADERCONST +{ + DWORD dwRegister; // Const register to start copying + DWORD dwCount; // Number of 4-float vectors to copy for D3DDP2OP_SETPIXELSHADERCONST + // Number of 4-integer vectors to copy for D3DDP2OP_SETPIXELSHADERCONSTI + // Number of BOOL values to copy for D3DDP2OP_SETPIXELSHADERCONSTB + // Data follows +} D3DNTHAL_DP2SETPIXELSHADERCONST; +typedef D3DNTHAL_DP2SETPIXELSHADERCONST *LPD3DNTHAL_DP2SETPIXELSHADERCONST; + +// Flags that can be supplied to DRAWRECTPATCH and DRAWTRIPATCH +#define _NT_RTPATCHFLAG_HASSEGS 0x00000001L +#define _NT_RTPATCHFLAG_HASINFO 0x00000002L + +typedef struct _D3DNTHAL_DP2DRAWRECTPATCH +{ + DWORD Handle; + DWORD Flags; + // Optionally followed by D3DFLOAT[4] NumSegments and/or D3DRECTPATCH_INFO +} D3DNTHAL_DP2DRAWRECTPATCH; +typedef D3DNTHAL_DP2DRAWRECTPATCH *LPD3DNTHAL_DP2DRAWRECTPATCH; + +typedef struct _D3DNTHAL_DP2DRAWTRIPATCH +{ + DWORD Handle; + DWORD Flags; + // Optionally followed by D3DFLOAT[3] NumSegments and/or D3DTRIPATCH_INFO +} D3DNTHAL_DP2DRAWTRIPATCH; +typedef D3DNTHAL_DP2DRAWTRIPATCH *LPD3DNTHAL_DP2DRAWTRIPATCH; + +typedef struct _D3DNTHAL_DP2VOLUMEBLT +{ + DWORD dwDDDestSurface; // dest surface + DWORD dwDDSrcSurface; // src surface + DWORD dwDestX; // dest X (width) + DWORD dwDestY; // dest Y (height) + DWORD dwDestZ; // dest Z (depth) + D3DBOX srcBox; // src box + DWORD dwFlags; // blt flags +} D3DNTHAL_DP2VOLUMEBLT; +typedef D3DNTHAL_DP2VOLUMEBLT *LPD3DNTHAL_DP2VOLUMEBLT; + +typedef struct _D3DNTHAL_DP2BUFFERBLT +{ + DWORD dwDDDestSurface; // dest surface + DWORD dwDDSrcSurface; // src surface + DWORD dwOffset; // Offset in the dest surface (in BYTES) + D3DRANGE rSrc; // src range + DWORD dwFlags; // blt flags +} D3DNTHAL_DP2BUFFERBLT; +typedef D3DNTHAL_DP2BUFFERBLT *LPD3DNTHAL_DP2BUFFERBLT; + +typedef struct _D3DNTHAL_DP2ADDDIRTYRECT +{ + DWORD dwSurface; // Driver managed surface + RECTL rDirtyArea; // Area marked dirty +} D3DNTHAL_DP2ADDDIRTYRECT; +typedef D3DNTHAL_DP2ADDDIRTYRECT *LPD3DNTHAL_DP2ADDDIRTYRECT; + +typedef struct _D3DNTHAL_DP2ADDDIRTYBOX +{ + DWORD dwSurface; // Driver managed volume + D3DBOX DirtyBox; // Box marked dirty +} D3DNTHAL_DP2ADDDIRTYBOX; +typedef D3DNTHAL_DP2ADDDIRTYBOX *LPD3DNTHAL_DP2ADDDIRTYBOX; + +#if(DIRECT3D_VERSION >= 0x0900 ) + +typedef struct _D3DNTHAL_DP2CREATEVERTEXSHADERDECL +{ + DWORD dwHandle; // Shader function handle + DWORD dwNumVertexElements; // Number of vertex elements + // D3DVERTEXELEMENT9 VertexElements[] that follow +} D3DNTHAL_DP2CREATEVERTEXSHADERDECL ; +typedef D3DNTHAL_DP2CREATEVERTEXSHADERDECL *LPD3DNTHAL_DP2CREATEVERTEXSHADERDECL; + +typedef struct _D3DNTHAL_DP2CREATEVERTEXSHADERFUNC +{ + DWORD dwHandle; // Shader function handle + DWORD dwSize; // Shader function size in bytes + // Shader declaration follows +} D3DNTHAL_DP2CREATEVERTEXSHADERFUNC ; +typedef D3DNTHAL_DP2CREATEVERTEXSHADERFUNC *LPD3DNTHAL_DP2CREATEVERTEXSHADERFUNC; + +typedef struct _D3DNTHAL_DP2SETSTREAMSOURCE2 +{ + DWORD dwStream; // Stream index, starting from zero + DWORD dwVBHandle; // Vertex buffer handle + DWORD dwOffset; // Offset of the first vertex size in bytes + DWORD dwStride; // Vertex size in bytes +} D3DNTHAL_DP2SETSTREAMSOURCE2; +typedef D3DNTHAL_DP2SETSTREAMSOURCE2 *LPD3DNTHAL_DP2SETSTREAMSOURCE2; + +typedef struct _D3DNTHAL_DP2SETSTREAMSOURCEFREQ +{ + DWORD dwStream; // Stream index, starting from zero + DWORD dwDivider; // Stream source divider +} D3DNTHAL_DP2SETSTREAMSOURCEFREQ; +typedef D3DNTHAL_DP2SETSTREAMSOURCEFREQ *LPD3DNTHAL_DP2SETSTREAMSOURCEFREQ; + +#define D3DNTHAL_ROW_WEIGHTS 1 +#define D3DNTHAL_COL_WEIGHTS 2 +typedef struct _D3DNTHAL_DP2SETCONVOLUTIONKERNELMONO +{ + DWORD dwWidth; // Kernel width + DWORD dwHeight; // Kernel height + DWORD dwFlags; + // If dwFlags & D3DNTHAL_ROW_WEIGHTS, then width floats follow. Otherwise row weights are 1.0. + // If dwFlags & D3DNTHAL_COL_WEIGHTS, then height floats follow. Otherwise column weights are 1.0. +} D3DNTHAL_DP2SETCONVOLUTIONKERNELMONO; +typedef D3DNTHAL_DP2SETCONVOLUTIONKERNELMONO *LPD3DNTHAL_DP2SETCONVOLUTIONKERNELMONO; + +typedef struct _D3DNTHAL_DP2COMPOSERECTS +{ + DWORD SrcSurfaceHandle; + DWORD DstSurfaceHandle; + DWORD SrcRectDescsVBHandle; + UINT NumRects; + DWORD DstRectDescsVBHandle; + D3DCOMPOSERECTSOP Operation; + INT XOffset; + INT YOffset; +} D3DNTHAL_DP2COMPOSERECTS; +typedef D3DNTHAL_DP2COMPOSERECTS *LPD3DNTHAL_DP2COMPOSERECTS; + +typedef RECT D3DNTHAL_DP2SETSCISSORRECT; +typedef D3DNTHAL_DP2SETSCISSORRECT *LPD3DNTHAL_DP2SETSCISSORRECT; + +typedef struct _D3DNTHAL_DP2BLT +{ + DWORD dwSource; // Source surface + RECTL rSource; // Source rectangle + DWORD dwSourceMipLevel; // Miplevel of lightweight surface + DWORD dwDest; // Dest surface + RECTL rDest; // Dest rectangle + DWORD dwDestMipLevel; // Miplevel of lightweight surface + DWORD Flags; // Can be DP2BLT_POINT, DP2BLT_LINEAR +} D3DNTHAL_DP2BLT; +typedef D3DNTHAL_DP2BLT *LPD3DNTHAL_DP2BLT; + +#define DP2BLT_POINT 0x00000001L +#define DP2BLT_LINEAR 0x00000002L + +typedef struct _D3DNTHAL_DP2COLORFILL +{ + DWORD dwSurface; // Surface getting filled + RECTL rRect; // Surface dimensions to fill + D3DCOLOR Color; // A8R8G8B8 fill color +} D3DNTHAL_DP2COLORFILL; +typedef D3DNTHAL_DP2COLORFILL *LPD3DNTHAL_DP2COLORFILL; + +typedef struct _D3DNTHAL_DP2SURFACEBLT +{ + DWORD dwSource; // Source surface + RECTL rSource; // Source rectangle + DWORD dwSourceMipLevel; // Miplevel of lightweight surface + DWORD dwDest; // Dest surface + RECTL rDest; // Dest rectangle + DWORD dwDestMipLevel; // Miplevel of lightweight surface + DWORD Flags; // No flags currently defined +} D3DNTHAL_DP2SURFACEBLT; +typedef D3DNTHAL_DP2SURFACEBLT *LPD3DNTHAL_DP2SURFACEBLT; + +typedef D3DNTHAL_DP2SETVERTEXSHADERCONST D3DNTHAL_DP2SETVERTEXSHADERCONSTB; +typedef D3DNTHAL_DP2SETVERTEXSHADERCONSTB *LPD3DNTHAL_DP2SETVERTEXSHADERCONSTB; +typedef D3DNTHAL_DP2SETVERTEXSHADERCONST D3DNTHAL_DP2SETVERTEXSHADERCONSTI; +typedef D3DNTHAL_DP2SETVERTEXSHADERCONSTI *LPD3DNTHAL_DP2SETVERTEXSHADERCONSTI; + +typedef D3DNTHAL_DP2SETPIXELSHADERCONST D3DNTHAL_DP2SETPIXELSHADERCONSTB; +typedef D3DNTHAL_DP2SETPIXELSHADERCONSTB *LPD3DNTHAL_DP2SETPIXELSHADERCONSTB; +typedef D3DNTHAL_DP2SETPIXELSHADERCONST D3DNTHAL_DP2SETPIXELSHADERCONSTI; +typedef D3DNTHAL_DP2SETPIXELSHADERCONSTI *LPD3DNTHAL_DP2SETPIXELSHADERCONSTI; + +typedef struct _D3DNTHAL_DP2CREATEQUERY +{ + DWORD dwQueryID; + D3DQUERYTYPE QueryType; +} D3DNTHAL_DP2CREATEQUERY; +typedef D3DNTHAL_DP2CREATEQUERY *LPD3DNTHAL_DP2CREATEQUERY; + +typedef struct _D3DNTHAL_DP2DELETEQUERY +{ + DWORD dwQueryID; +} D3DNTHAL_DP2DELETEQUERY; +typedef D3DNTHAL_DP2DELETEQUERY *LPD3DNTHAL_DP2DELETEQUERY; + +typedef struct _D3DNTHAL_DP2ISSUEQUERY +{ + DWORD dwQueryID; + DWORD dwFlags; +} D3DNTHAL_DP2ISSUEQUERY; +typedef D3DNTHAL_DP2ISSUEQUERY *LPD3DNTHAL_DP2ISSUEQUERY; + +typedef struct _D3DNTHAL_DP2SETRENDERTARGET2 +{ + DWORD RTIndex; + DWORD hRenderTarget; +} D3DNTHAL_DP2SETRENDERTARGET2; +typedef D3DNTHAL_DP2SETRENDERTARGET2 *LPD3DNTHAL_DP2SETRENDERTARGET2; + +typedef struct _D3DNTHAL_DP2SETDEPTHSTENCIL +{ + DWORD hZBuffer; +} D3DNTHAL_DP2SETDEPTHSTENCIL; +typedef D3DNTHAL_DP2SETDEPTHSTENCIL *LPD3DNTHAL_DP2SETDEPTHSTENCIL; + +typedef struct _D3DNTHAL_DP2GENERATEMIPSUBLEVELS +{ + DWORD hSurface; + D3DTEXTUREFILTERTYPE Filter; +} D3DNTHAL_DP2GENERATEMIPSUBLEVELS; +typedef D3DNTHAL_DP2GENERATEMIPSUBLEVELS *LPD3DNTHAL_DP2GENERATEMIPSUBLEVELS; + +#define DDBLT_EXTENDED_PRESENTATION_STRETCHFACTOR 0x00000010l /* old DDBLT_ALPHAEDGEBLEND */ +// +// Command structure for driver responses: +// + +typedef struct _D3DNTHAL_DP2RESPONSE +{ + BYTE bCommand; // response/ command id + BYTE bReserved; + WORD wStateCount; // count of responses to follow + DWORD dwTotalSize; // total size of response (including the DP2REPONSE struct) to enable skipping over. +} D3DNTHAL_DP2RESPONSE, *LPD3DNTHAL_DP2RESPONSE; + +// Begin Responses +typedef struct _D3DNTHAL_DP2RESPONSEQUERY +{ + DWORD dwQueryID; + DWORD dwSize; +} D3DNTHAL_DP2RESPONSEQUERY; +typedef D3DNTHAL_DP2RESPONSEQUERY *LPD3DNTHAL_DP2RESPONSEQUERY; +// End Responses + +#endif // (DIRECT3D_VERSION >= 0x0900 ) + + +// Macros to access shader binary code + +#define _NT_D3DSI_GETREGNUM(token) (token & D3DSP_REGNUM_MASK) +#define _NT_D3DSI_GETOPCODE(command) (command & D3DSI_OPCODE_MASK) +#define _NT_D3DSI_GETWRITEMASK(token) (token & D3DSP_WRITEMASK_ALL) +#define _NT_D3DVS_GETSWIZZLECOMP(source, component) \ + (source >> ((component << 1) + 16) & 0x3) +#define _NT_D3DVS_GETSWIZZLE(token) (token & D3DVS_SWIZZLE_MASK) +#define _NT_D3DVS_GETSRCMODIFIER(token) (token & D3DSP_SRCMOD_MASK) +#define _NT_D3DVS_GETADDRESSMODE(token) (token & D3DVS_ADDRESSMODE_MASK) + +#if(DIRECT3D_VERSION < 0x0900) + +#define _NT_D3DSI_GETREGTYPE(token) ((D3DSHADER_PARAM_REGISTER_TYPE)(token & D3DSP_REGTYPE_MASK)) + +#else + +#define _NT_D3DSI_GETREGTYPE(token) ((D3DSHADER_PARAM_REGISTER_TYPE)(((token & D3DSP_REGTYPE_MASK) >> D3DSP_REGTYPE_SHIFT) | \ + ((token & D3DSP_REGTYPE_MASK2) >> D3DSP_REGTYPE_SHIFT2))) +#define _NT_D3DSI_GETUSAGE(token) ((token & D3DSP_DCL_USAGE_MASK) >> D3DSP_DCL_USAGE_SHIFT) +#define _NT_D3DSI_GETUSAGEINDEX(token) ((token & D3DSP_DCL_USAGEINDEX_MASK) >> D3DSP_DCL_USAGEINDEX_SHIFT) +#define _NT_D3DSI_GETINSTLENGTH(token) ((token & D3DSI_INSTLENGTH_MASK) >> D3DSI_INSTLENGTH_SHIFT) +#define _NT_D3DSI_GETCOMPARISON(token) ((D3DSHADER_COMPARISON)((token & D3DSHADER_COMPARISON_MASK) >> D3DSHADER_COMPARISON_SHIFT)) +#define _NT_D3DSI_GETREGISTERPROPERTIES(token) (token & D3DSP_REGISTERPROPERTIES_MASK) +#define _NT_D3DSI_GETTEXTURETYPE(token) (token & D3DSP_TEXTURETYPE_MASK) +#define _NT_D3DSI_GETDSTMODIFIER(token) (token & D3DSP_DSTMOD_MASK)) +#define _NT_D3DSI_GETSWIZZLECOMP(source, component) (source >> ((component << 1) + 16) & 0x3) +#define _NT_D3DSI_GETSWIZZLE(token) (token & D3DVS_SWIZZLE_MASK) +#define _NT_D3DSI_GETSRCMODIFIER(token) (token & D3DSP_SRCMOD_MASK) +#define _NT_D3DSI_GETADDRESSMODE(token) (token & D3DVS_ADDRESSMODE_MASK) + +#ifdef __cplusplus +// This gets regtype, and also maps D3DSPR_CONSTn to D3DSPR_CONST (for easier parsing) +inline +D3DSHADER_PARAM_REGISTER_TYPE +_NT_D3DSI_GETREGTYPE_RESOLVING_CONSTANTS( + DWORD token) +{ + D3DSHADER_PARAM_REGISTER_TYPE RegType = _NT_D3DSI_GETREGTYPE(token); + switch (RegType) + { + case D3DSPR_CONST4: + case D3DSPR_CONST3: + case D3DSPR_CONST2: + return D3DSPR_CONST; + default: + return RegType; + } +} + +// The inline function below retrieves register number for an opcode, +// taking into account that: if the type is a +// D3DSPR_CONSTn, the register number needs to be remapped. +// +// D3DSPR_CONST is for c0-c2047 +// D3DSPR_CONST2 is for c2048-c4095 +// D3DSPR_CONST3 is for c4096-c6143 +// D3DSPR_CONST4 is for c6144-c8191 +// +// For example if the instruction token specifies type D3DSPR_CONST4, reg# 3, +// the register number retrieved is 6147. +// For other register types, the register number is just returned unchanged. +inline +UINT +_NT_D3DSI_GETREGNUM_RESOLVING_CONSTANTS( + DWORD token) +{ + D3DSHADER_PARAM_REGISTER_TYPE RegType = _NT_D3DSI_GETREGTYPE(token); + UINT RegNum = _NT_D3DSI_GETREGNUM(token); + + switch(RegType) + { + case D3DSPR_CONST4: + return RegNum + 6144; + case D3DSPR_CONST3: + return RegNum + 4096; + case D3DSPR_CONST2: + return RegNum + 2048; + default: + return RegNum; + } +} +#endif // __cplusplus + +#endif + +//----------------------------------------------------------------------------- +// +// DirectX 8.0's new driver info querying mechanism. +// +// How to handle the new driver info query mechanism. +// +// DirectX 8.0 utilizes an extension to GetDriverInfo() to query for +// additional information from the driver. Currently this mechanism is only +// used for querying for DX8 style D3D caps but it may be used for other +// information over time. +// +// This extension to GetDriverInfo takes the form of a GetDriverInfo call +// with the GUID GUID_GetDriverInfo2. When a GetDriverInfo call with this +// GUID is received by the driver the driver must check the data passed +// in the lpvData field of the DD_GETDRIVERINFODATA data structure to see +// what information is being requested. +// +// It is important to note that the GUID GUID_GetDriverInfo2 is, in fact, +// the same as the GUID_DDStereoMode. If you driver doesn't handle +// GUID_DDStereoMode this is not an issue. However, if you wish your driver +// to handle GUID_DDStereoMode as well as GUID_GetDriverInfo2 special action +// must be taken. When a call tp GetDriverInfo with the GUID +// GUID_GetDriverInfo2/GUID_DDStereoMode is made the runtime sets the +// dwHeight field of the DD_STEREOMODE structure to the special value +// D3DGDI2_MAGIC. In this way you can determine when the request is a +// stereo mode call or a GetDriverInfo2 call. The dwHeight field of +// DD_STEREOMODE corresponds to the dwMagic field of the +// DD_GETDRIVERINFO2DATA structure. +// +// The dwExpectedSize field of the DD_GETDRIVERINFODATA structure is not +// used by when a GetDriverInfo2 request is being made and should be +// ignored. The actual expected size of the data is found in the +// dwExpectedSize of the DD_GETDRIVERINFO2DATA structure. +// +// Once the driver has determined that this is a call to +// GetDriverInfo2 it must then determine the type of information being +// requested by the runtime. This type is contained in the dwType field +// of the DD_GETDRIVERINFO2DATA data structure. +// +// Finally, once the driver knows this is a GetDriverInfo2 request of a +// particular type it can copy the requested data into the data buffer. +// It is important to note that the lpvData field of the DD_GETDRIVERINFODATA +// data structure points to data buffer in which to copy your data. lpvData +// also points to the DD_GETDRIVERINFO2DATA structure. This means that the +// data returned by the driver will overwrite the DD_GETDRIVERINFO2DATA +// structure and, hence, the DD_GETDRIVERINFO2DATA structure occupies the +// first few DWORDs of the buffer. +// +// The following code fragment demonstrates how to handle GetDriverInfo2. +// +// D3DCAPS8 myD3DCaps8; +// +// DWORD CALLBACK +// DdGetDriverInfo(LPDDHAL_GETDRIVERINFODATA lpData) +// { +// if (MATCH_GUID((lpData->guidInfo), GUID_GetDriverInfo2) ) +// { +// ASSERT(NULL != lpData); +// ASSERT(NULL != lpData->lpvData); +// +// // Is this a call to GetDriverInfo2 or DDStereoMode? +// if (((DD_GETDRIVERINFO2DATA*)(lpData->lpvData))->dwMagic == D3DGDI2_MAGIC) +// { +// // Yes, its a call to GetDriverInfo2, fetch the +// // DD_GETDRIVERINFO2DATA data structure. +// DD_GETDRIVERINFO2DATA* pgdi2 = lpData->lpvData; +// ASSERT(NULL != pgdi2); +// +// // What type of request is this? +// switch (pgdi2->dwType) +// { +// case D3DGDI2_TYPE_GETD3DCAPS8: +// { +// // The runtime is requesting the DX8 D3D caps so +// // copy them over now. +// +// // It should be noted that the dwExpectedSize field +// // of DD_GETDRIVERINFODATA is not used for +// // GetDriverInfo2 calls and should be ignored. +// size_t copySize = min(sizeof(myD3DCaps8), pgdi2->dwExpectedSize); +// memcpy(lpData->lpvData, &myD3DCaps8, copySize); +// lpData->dwActualSize = copySize; +// lpData->ddRVal = DD_OK; +// return DDHAL_DRIVER_HANDLED; +// } +// default: +// // For any other GetDriverInfo2 types not handled +// // or understood by the driver set an ddRVal of +// // DDERR_CURRENTLYNOTAVAIL and return +// // DDHAL_DRIVER_HANDLED. +// lpData->dwActualSize = 0; +// lpData->ddRVal = DDERR_CURRENTLYNOTAVAIL; +// return DDHAL_DRIVER_HANDLED; +// } +// } +// else +// { +// // It must be a call a request for stereo mode support. +// // Fetch the stereo mode data +// DD_STEREOMODE* pStereoMode = lpData->lpvData; +// ASSERT(NULL != pStereoMode); +// +// // Process the stereo mode request... +// lpData->dwActualSize = sizeof(DD_STEREOMODE); +// lpData->ddRVal = DD_OK; +// return DDHAL_DRIVER_HANDLED; +// } +// } +// +// // Handle any other device GUIDs... +// +// } // DdGetDriverInfo +// +//----------------------------------------------------------------------------- + +// +// The data structure which is passed to the driver when GetDriverInfo is +// called with a GUID of GUID_GetDriverInfo2. +// +// NOTE: Although the fields listed below are all read only this data +// structure is actually the first four DWORDs of the data buffer into +// which the driver writes the requested infomation. As such, these fields +// (and the entire data structure) are overwritten by the data returned by +// the driver. +// +typedef struct _DDNT_GETDRIVERINFO2DATA +{ + DWORD dwReserved; // Reserved Field. + // Driver should not read or write this field. + + DWORD dwMagic; // Magic Number. Has the value D3DGDI2_MAGIC if + // this is a GetDriverInfo2 call. Otherwise + // this structure is, in fact, a DD_STEREOMODE + // call. + // Driver should only read this field. + + DWORD dwType; // Type of information requested. This field + // contains one of the DDGDI2_TYPE_ #defines + // listed below. + // Driver should only read (not write) this + // field. + + DWORD dwExpectedSize; // Expected size of the information requested. + // Driver should only read (not write) this + // field. + + // The remainder of the data buffer (beyond the first four DWORDs) + // follows here. +} DDNT_GETDRIVERINFO2DATA; + +// +// IMPORTANT NOTE: This GUID has exactly the same value as GUID_DDStereoMode +// and as such you must be very careful when using it. If your driver needs +// to handle both GetDriverInfo2 and DDStereoMode it must have a single +// check for the shared GUID and then distinguish between which use of that +// GUID is being requested. +// +#define _NT_GUID_GetDriverInfo2 (GUID_DDStereoMode) + +// +// Magic value used to determine whether a GetDriverInfo call with the +// GUID GUID_GetDriverInfo2/GUID_DDStereoMode is a GetDriverInfo2 request +// or a query about stereo capabilities. This magic number is stored in +// the dwHeight field of the DD_STEREOMODE data structure. +// +#define _NT_D3DGDI2_MAGIC (0xFFFFFFFFul) + +// +// The types of information which can be requested from the driver via +// GetDriverInfo2. +// + +#define _NT_D3DGDI2_TYPE_GETD3DCAPS8 (0x00000001ul) // Return the D3DCAPS8 data +#define _NT_D3DGDI2_TYPE_GETFORMATCOUNT (0x00000002ul) // Return the number of supported formats +#define _NT_D3DGDI2_TYPE_GETFORMAT (0x00000003ul) // Return a particular format +#define _NT_D3DGDI2_TYPE_DXVERSION (0x00000004ul) // Notify driver of current DX Version +#define _NT_D3DGDI2_TYPE_DEFERRED_AGP_AWARE (0x00000018ul) // Runtime is aware of deferred AGP frees, and will send following +#define _NT_D3DGDI2_TYPE_FREE_DEFERRED_AGP (0x00000019ul) // Free any deferred-freed AGP allocations for this process +#define _NT_D3DGDI2_TYPE_DEFER_AGP_FREES (0x00000020ul) // Start Deferring AGP frees for this process +#if(DIRECT3D_VERSION >= 0x0900) +#define _NT_D3DGDI2_TYPE_GETD3DCAPS9 (0x00000010ul) // Return the D3DCAPS9 data +#define _NT_D3DGDI2_TYPE_GETEXTENDEDMODECOUNT (0x00000011ul) // Return the number of supported extended mode +#define _NT_D3DGDI2_TYPE_GETEXTENDEDMODE (0x00000012ul) // Return a particular extended mode +#define _NT_D3DGDI2_TYPE_GETADAPTERGROUP (0x00000013ul) // Return a adapter group information + +#define _NT_D3DGDI2_TYPE_GETMULTISAMPLEQUALITYLEVELS (0x00000016ul) // Return the number of multisample quality levels +#define _NT_D3DGDI2_TYPE_GETD3DQUERYCOUNT (0x00000021ul) // Return the number of suported queries +#define _NT_D3DGDI2_TYPE_GETD3DQUERY (0x00000022ul) // Return supported query +#define _NT_D3DGDI2_TYPE_GETDDIVERSION (0x00000023ul) // Return DX9_DDI_VERSION +#endif // (DIRECT3D_VERSION >= 0x0900) + +// +// This data structure is returned by the driver in response to a +// GetDriverInfo2 query with the type D3DGDI2_TYPE_GETFORMATCOUNT. It simply +// gives the number of surface formats supported by the driver. Currently this +// structure consists of a single member giving the number of supported +// surface formats. +// +typedef struct _DDNT_GETFORMATCOUNTDATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwFormatCount; // [out] Number of supported surface formats + DWORD dwReserved; // Reserved +} DDNT_GETFORMATCOUNTDATA; + +// +// This data structure is used to request a specific surface format from the +// driver. It is guaranteed that the requested format will be greater than or +// equal to zero and less that the format count reported by the driver from +// the preceeding D3DGDI2_TYPE_GETFORMATCOUNT request. +// +typedef struct _DDNT_GETFORMATDATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwFormatIndex; // [in] The format to return + DDPIXELFORMAT format; // [out] The actual format +} DDNT_GETFORMATDATA; + +// +// This data structure is used to notify drivers about the DirectX version +// number. This is the value that is denoted as DD_RUNTIME_VERSION in the +// DDK headers. +// +typedef struct _DDNT_DXVERSION +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwDXVersion; // [in] The Version of DX + DWORD dwReserved; // Reserved +} DDNT_DXVERSION; + +// Informs driver that runtime will send a notification after last outstanding AGP +// lock has been released. +typedef struct _DDNT_DEFERRED_AGP_AWARE_DATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data +} DDNT_DEFERRED_AGP_AWARE_DATA; + +// Notification that the last AGP lock has been released. Driver can free all deferred AGP +// allocations for this process. +typedef struct _DDNT_FREE_DEFERRED_AGP_DATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwProcessId; // [in] Process ID for whom to free deferred AGP +} DDNT_FREE_DEFERRED_AGP_DATA; + +#if(DIRECT3D_VERSION >= 0x0900) +// +// This data structure is returned by the driver in response to a +// GetDriverInfo2 query with the type D3DGDI2_TYPE_GETEXTENDEDMODECOUNT. It simply +// gives the number of extended video modes supported by the driver. Currently this +// structure consists of a single member giving the number of supported extended +// video modes. +// +typedef struct _DDNT_GETEXTENDEDMODECOUNTDATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwModeCount; // [out] Number of supported extended video modes + DWORD dwReserved; // Reserved +} DDNT_GETEXTENDEDMODECOUNTDATA; + +// +// This data structure is used to request a specific extended video mode from the +// driver. It is guaranteed that the requested format will be greater than or +// equal to zero and less that the format count reported by the driver from +// the preceeding D3DGDI2_TYPE_GETEXTENDEDMODECOUNT request. +// +typedef struct _DDNT_GETEXTENDEDMODEDATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwModeIndex; // [in] The format to return + D3DDISPLAYMODE mode; // [out] The actual format +} DDNT_GETEXTENDEDMODEDATA; + +// +// This data structure is used to request a adapter group information from the driver. +// A adapter group is a set of adapters which share video hardware (like video memory, +// 3D accelerator). Thus it is mainly for DualView video adapter. Direct3D runtime +// will share surface resources (like texture, vertex buffers) across adapters within +// a adapter group upon application's request. +// +typedef struct _DDNT_GETADAPTERGROUPDATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + ULONG_PTR ulUniqueAdapterGroupId; // [out] The unique id of adapter group that this adapter belonging to + DWORD dwReserved1; // Reserved, must be 0 + DWORD dwReserved2; // Reserved, must be 0 +} DDNT_GETADAPTERGROUPDATA; + + +// This data structure used to request the supported quality levels for a given sample count, +// presentation type, and pixel format. +typedef struct _DDNT_MULTISAMPLEQUALITYLEVELSDATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; //[in/out] GetDriverInfo2 data + D3DFORMAT Format; //[in] Format of multi-sampled render-target + BOOL bFlip : 1; //[in] FALSE means blt-style resolution + D3DMULTISAMPLE_TYPE MSType : 31; //[in] + DWORD QualityLevels; //[out] +} DDNT_MULTISAMPLEQUALITYLEVELSDATA; + +typedef struct _DDNT_GETD3DQUERYCOUNTDATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwNumQueries; // [out] Number of queries +} DDNT_GETD3DQUERYCOUNTDATA; + +typedef struct _DDNT_GETD3DQUERYDATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + union + { + DWORD dwQueryIndex; // [in] Index of cap + D3DQUERYTYPE QueryType; // [out] Query cap + }; +} DDNT_GETD3DQUERYDATA; + +typedef struct _DDNT_GETDDIVERSIONDATA +{ + DDNT_GETDRIVERINFO2DATA gdi2; // [in/out] GetDriverInfo2 data + DWORD dwDXVersion; // [in] DX Version (9 for DX9, etc.) + DWORD dwDDIVersion; // [out] DX9_DDI_VERSION +} DDNT_GETDDIVERSIONDATA; + +#define DX9_DDI_VERSION 4 + + +#endif // (DIRECT3D_VERSION >= 0x0900 ) + +#if(DIRECT3D_VERSION >= 0x0900) + +// GetDriverState IDs - D3DDEVINFO structures used for query mechanism in public headers + +// This was eliminated in DX9 but was exposed in DX8.1 so the drivers still need it +#define D3DFMT_W11V11U10 (D3DFORMAT)65 +#endif // (DIRECT3D_VERSION >= 0x0900 ) + +// New Caps that are not API visible that the driver exposes. +#define _NT_D3DDEVCAPS_HWVERTEXBUFFER 0x02000000L // Device supports Driver Allocated Vertex Buffers +#define _NT_D3DDEVCAPS_HWINDEXBUFFER 0x04000000L // Device supports Driver Allocated Index Buffers +#define _NT_D3DDEVCAPS_SUBVOLUMELOCK 0x08000000L // Device supports locking a part of volume texture +#define _NT_D3DPMISCCAPS_FOGINFVF 0x00002000L // Device supports separate fog value in the FVF + +// New FVF flags that are not API visible but accessed by the driver +// Note, that D3DFVF_RESERVED2 includes this flag and should not be used for validation + +#define _NT_D3DFVF_FOG 0x00002000L // There is a separate fog value in the FVF vertex + +// Flags that drivers need to expose for DX8 but were removed from the DX9 headers +#if(DIRECT3D_VERSION >= 0x0900) +#ifndef D3DPRASTERCAPS_STRETCHBLTMULTISAMPLE +#define D3DPRASTERCAPS_STRETCHBLTMULTISAMPLE 0x00800000L +#endif /* D3DPRASTERCAPS_STRETCHBLTMULTISAMPLE */ +#ifndef D3DPRASTERCAPS_PAT +#define D3DPRASTERCAPS_PAT D3DPRASTERCAPS_RESERVED2 +#endif +#endif + +// +// This stuff is not API visible but should be DDI visible. +// Should be in Sync with d3d8types.h +// +#define _NT_D3DFMT_D32 (D3DFORMAT)71 +#define _NT_D3DFMT_S1D15 (D3DFORMAT)72 +#define _NT_D3DFMT_D15S1 (D3DFORMAT)73 +#define _NT_D3DFMT_S8D24 (D3DFORMAT)74 +#define _NT_D3DFMT_D24S8 (D3DFORMAT)75 +#define _NT_D3DFMT_X8D24 (D3DFORMAT)76 +#define _NT_D3DFMT_D24X8 (D3DFORMAT)77 +#define _NT_D3DFMT_X4S4D24 (D3DFORMAT)78 +#define _NT_D3DFMT_D24X4S4 (D3DFORMAT)79 + +//---------------- Vertex shader defines ------------------------------- +// Vertex Shader register limits. D3D device must provide at least +// specified number of registers + +// This one was used in DX8 only. +#define _NT_D3DVS_MAXINSTRUCTIONCOUNT_V1_1 128 + +// Max number of labels in a shader +#define _NT_D3DVS_LABEL_MAX_V3_0 2048 + +// Max number of output texture coordinates +#define _NT_D3DVS_TCRDOUTREG_MAX_V1_1 8 +#define _NT_D3DVS_TCRDOUTREG_MAX_V2_0 8 +#define _NT_D3DVS_TCRDOUTREG_MAX_V2_1 8 +#define _NT_D3DVS_OUTPUTREG_MAX_V3_0 12 +#define _NT_D3DVS_OUTPUTREG_MAX_SW_DX9 16 + +// Max number of output attributes (colors) +#define _NT_D3DVS_ATTROUTREG_MAX_V1_1 2 +#define _NT_D3DVS_ATTROUTREG_MAX_V2_0 2 +#define _NT_D3DVS_ATTROUTREG_MAX_V2_1 2 + +// Max number of input registers +#define _NT_D3DVS_INPUTREG_MAX_V1_1 16 +#define _NT_D3DVS_INPUTREG_MAX_V2_0 16 +#define _NT_D3DVS_INPUTREG_MAX_V2_1 16 +#define _NT_D3DVS_INPUTREG_MAX_V3_0 16 + +// Max number of temp registers +#define _NT_D3DVS_TEMPREG_MAX_V1_1 12 +#define _NT_D3DVS_TEMPREG_MAX_V2_0 12 +#define _NT_D3DVS_TEMPREG_MAX_V2_1 32 +#define _NT_D3DVS_TEMPREG_MAX_V3_0 32 + +// Max number of constant float vector registers +#define _NT_D3DVS_CONSTREG_MAX_V1_1 96 +#define _NT_D3DVS_CONSTREG_MAX_V2_0 8192 +#define _NT_D3DVS_CONSTREG_MAX_V2_1 8192 +#define _NT_D3DVS_CONSTREG_MAX_V3_0 8192 + +// The number of INTEGER constants for software is limited only by the binary opcode specification: ;internal +#define _NT_D3DVS_CONSTINTREG_MAX_SW_DX9 2048 + +// Max number of integer constant registers +#define _NT_D3DVS_CONSTINTREG_MAX_V2_0 16 +#define _NT_D3DVS_CONSTINTREG_MAX_V2_1 16 +#define _NT_D3DVS_CONSTINTREG_MAX_V3_0 16 + +// The number of BOOL constants for software is limited only by the binary opcode specification: ;internal +#define _NT_D3DVS_CONSTBOOLREG_MAX_SW_DX9 2048 + +// Max number of BOOL constant registers +#define _NT_D3DVS_CONSTBOOLREG_MAX_V2_0 16 +#define _NT_D3DVS_CONSTBOOLREG_MAX_V2_1 16 +#define _NT_D3DVS_CONSTBOOLREG_MAX_V3_0 16 + +// Max number of vector address registers +#define _NT_D3DVS_ADDRREG_MAX_V1_1 1 +#define _NT_D3DVS_ADDRREG_MAX_V2_0 1 +#define _NT_D3DVS_ADDRREG_MAX_V2_1 1 +#define _NT_D3DVS_ADDRREG_MAX_V3_0 1 + +// Max absolute value of the loop step +#define _NT_D3DVS_MAXLOOPSTEP_V2_0 128 +#define _NT_D3DVS_MAXLOOPSTEP_V2_1 128 +#define _NT_D3DVS_MAXLOOPSTEP_V3_0 128 + +// Max absolute value of the loop initial valuep +#define _NT_D3DVS_MAXLOOPINITVALUE_V2_0 255 +#define _NT_D3DVS_MAXLOOPINITVALUE_V2_1 255 +#define _NT_D3DVS_MAXLOOPINITVALUE_V3_0 255 + +// Max loop interation count +#define _NT_D3DVS_MAXLOOPITERATIONCOUNT_V2_0 255 +#define _NT_D3DVS_MAXLOOPITERATIONCOUNT_V2_1 255 +#define _NT_D3DVS_MAXLOOPITERATIONCOUNT_V3_0 255 + +// Number of PREDICATE registers +#define _NT_D3DVS_PREDICATE_MAX_V2_1 1 +#define _NT_D3DVS_PREDICATE_MAX_V3_0 1 + +//---------------- End vertex shader defines ------------------------------- + + +//---------------- Pixel shader defines ---------------------------------- +// Pixel Shader register limits. D3D device must provide at least +// specified number of registers + +// Number of INPUT registers based on shader version +#define _NT_D3DPS_INPUTREG_MAX_V1_1 2 +#define _NT_D3DPS_INPUTREG_MAX_V1_2 2 +#define _NT_D3DPS_INPUTREG_MAX_V1_3 2 +#define _NT_D3DPS_INPUTREG_MAX_V1_4 2 +#define _NT_D3DPS_INPUTREG_MAX_V2_0 2 +#define _NT_D3DPS_INPUTREG_MAX_V2_1 2 +#define _NT_D3DPS_INPUTREG_MAX_V3_0 12 + +// Number of TEMP registers based on shader version +#define _NT_D3DPS_TEMPREG_MAX_V1_1 2 +#define _NT_D3DPS_TEMPREG_MAX_V1_2 2 +#define _NT_D3DPS_TEMPREG_MAX_V1_3 2 +#define _NT_D3DPS_TEMPREG_MAX_V1_4 6 +#define _NT_D3DPS_TEMPREG_MAX_V2_0 12 +#define _NT_D3DPS_TEMPREG_MAX_V2_1 32 +#define _NT_D3DPS_TEMPREG_MAX_V3_0 32 + +// Number of TEXTURE registers based on shader version +#define _NT_D3DPS_TEXTUREREG_MAX_V1_1 4 +#define _NT_D3DPS_TEXTUREREG_MAX_V1_2 4 +#define _NT_D3DPS_TEXTUREREG_MAX_V1_3 4 +#define _NT_D3DPS_TEXTUREREG_MAX_V1_4 6 +#define _NT_D3DPS_TEXTUREREG_MAX_V2_0 8 +#define _NT_D3DPS_TEXTUREREG_MAX_V2_1 8 +#define _NT_D3DPS_TEXTUREREG_MAX_V3_0 0 + +// Number of COLOROUT registers based on shader version +#define _NT_D3DPS_COLOROUT_MAX_V2_0 4 +#define _NT_D3DPS_COLOROUT_MAX_V2_1 4 +#define _NT_D3DPS_COLOROUT_MAX_V3_0 4 + +// Number of PREDICATE registers based on shader version +#define _NT_D3DPS_PREDICATE_MAX_V2_1 1 +#define _NT_D3DPS_PREDICATE_MAX_V3_0 1 + +// The number of FLOAT constants for software is limited only by the binary opcode specification: ;internal +#define _NT_D3DPS_CONSTREG_MAX_SW_DX9 8192 + +// Number of FLOAT constants based on shader version +#define _NT_D3DPS_CONSTREG_MAX_V1_1 8 +#define _NT_D3DPS_CONSTREG_MAX_V1_2 8 +#define _NT_D3DPS_CONSTREG_MAX_V1_3 8 +#define _NT_D3DPS_CONSTREG_MAX_V1_4 8 +#define _NT_D3DPS_CONSTREG_MAX_V2_0 32 +#define _NT_D3DPS_CONSTREG_MAX_V2_1 32 +#define _NT_D3DPS_CONSTREG_MAX_V3_0 224 + +// The number of BOOL constants for software is limited only by the binary opcode specification: ;internal +#define _NT_D3DPS_CONSTBOOLREG_MAX_SW_DX9 2048 + +// Max number of pixel shader hardware BOOL constant registers +#define _NT_D3DPS_CONSTBOOLREG_MAX_V2_1 16 +#define _NT_D3DPS_CONSTBOOLREG_MAX_V3_0 16 + +// The number of INTEGER constants for software is limited only by the binary opcode specification: ;internal +#define _NT_D3DPS_CONSTINTREG_MAX_SW_DX9 2048 + +// Max number of pixel shader hardware INTEGER constant registers +#define _NT_D3DPS_CONSTINTREG_MAX_V2_1 16 +#define _NT_D3DPS_CONSTINTREG_MAX_V3_0 16 + +// Max absolute value for loop step +#define _NT_D3DPS_MAXLOOPSTEP_V2_1 128 +#define _NT_D3DPS_MAXLOOPSTEP_V3_0 128 + +// Max absolute value for loop initial value +#define _NT_D3DPS_MAXLOOPINITVALUE_V2_1 255 +#define _NT_D3DPS_MAXLOOPINITVALUE_V3_0 255 + +// Max loop interation count +#define _NT_D3DPS_MAXLOOPITERATIONCOUNT_V2_1 255 +#define _NT_D3DPS_MAXLOOPITERATIONCOUNT_V3_0 255 + +//---------------- End pixel shader defines ------------------------------- + +// Pixel Shader DX8 register limits. D3D device will have at most these +// specified number of registers +// +// Sync up d3d?dm.hpp with D3DPS_*_MAX_DX8 ;internal +#define _NT_D3DPS_INPUTREG_MAX_DX8 8 +#define _NT_D3DPS_TEMPREG_MAX_DX8 8 +#define _NT_D3DPS_CONSTREG_MAX_DX8 8 +#define _NT_D3DPS_TEXTUREREG_MAX_DX8 8 + +#endif /* DIRECT3D_VERSION >= 0x0800 */ + +#if(DIRECT3D_VERSION >= 0x0900) + +// bit declarations for _Type fields +#define D3DVSDT_FLOAT1 0x00 // 1D float expanded to (value, 0., 0., 1.) +#define D3DVSDT_FLOAT2 0x01 // 2D float expanded to (value, value, 0., 1.) +#define D3DVSDT_FLOAT3 0x02 // 3D float expanded to (value, value, value, 1.) +#define D3DVSDT_FLOAT4 0x03 // 4D float +#define D3DVSDT_D3DCOLOR 0x04 // 4D packed unsigned bytes mapped to 0. to 1. range + // Input is in D3DCOLOR format (ARGB) expanded to (R, G, B, A) +#define D3DVSDT_UBYTE4 0x05 // 4D unsigned byte +#define D3DVSDT_SHORT2 0x06 // 2D signed short expanded to (value, value, 0., 1.) +#define D3DVSDT_SHORT4 0x07 // 4D signed short + +#define D3DVSDE_POSITION 0 +#define D3DVSDE_BLENDWEIGHT 1 +#define D3DVSDE_BLENDINDICES 2 +#define D3DVSDE_NORMAL 3 +#define D3DVSDE_PSIZE 4 +#define D3DVSDE_DIFFUSE 5 +#define D3DVSDE_SPECULAR 6 +#define D3DVSDE_TEXCOORD0 7 +#define D3DVSDE_TEXCOORD1 8 +#define D3DVSDE_TEXCOORD2 9 +#define D3DVSDE_TEXCOORD3 10 +#define D3DVSDE_TEXCOORD4 11 +#define D3DVSDE_TEXCOORD5 12 +#define D3DVSDE_TEXCOORD6 13 +#define D3DVSDE_TEXCOORD7 14 +#define D3DVSDE_POSITION2 15 +#define D3DVSDE_NORMAL2 16 + +/* DX8 style vertex declaration + +Vertex Shader Declaration + +The declaration portion of a vertex shader defines the static external +interface of the shader. The information in the declaration includes: + +- Assignments of vertex shader input registers to data streams. These +assignments bind a specific vertex register to a single component within a +vertex stream. A vertex stream element is identified by a byte offset +within the stream and a type. The type specifies the arithmetic data type +plus the dimensionality (1, 2, 3, or 4 values). Stream data which is +less than 4 values are always expanded out to 4 values with zero or more +0.F values and one 1.F value. + +- Assignment of vertex shader input registers to implicit data from the +primitive tessellator. This controls the loading of vertex data which is +not loaded from a stream, but rather is generated during primitive +tessellation prior to the vertex shader. + +- Loading data into the constant memory at the time a shader is set as the +current shader. Each token specifies values for one or more contiguous 4 +DWORD constant registers. This allows the shader to update an arbitrary +subset of the constant memory, overwriting the device state (which +contains the current values of the constant memory). Note that these +values can be subsequently overwritten (between DrawPrimitive calls) +during the time a shader is bound to a device via the +SetVertexShaderConstant method. + + +Declaration arrays are single-dimensional arrays of DWORDs composed of +multiple tokens each of which is one or more DWORDs. The single-DWORD +token value 0xFFFFFFFF is a special token used to indicate the end of the +declaration array. The single DWORD token value 0x00000000 is a NOP token +with is ignored during the declaration parsing. Note that 0x00000000 is a +valid value for DWORDs following the first DWORD for multiple word tokens. + +[31:29] TokenType + 0x0 - NOP (requires all DWORD bits to be zero) + 0x1 - stream selector + 0x2 - stream data definition (map to vertex input memory) + 0x3 - vertex input memory from tessellator + 0x4 - constant memory from shader + 0x5 - extension + 0x6 - reserved + 0x7 - end-of-array (requires all DWORD bits to be 1) + +NOP Token (single DWORD token) + [31:29] 0x0 + [28:00] 0x0 + +Stream Selector (single DWORD token) + [31:29] 0x1 + [28] indicates whether this is a tessellator stream + [27:04] 0x0 + [03:00] stream selector (0..15) + +Stream Data Definition (single DWORD token) + Vertex Input Register Load + [31:29] 0x2 + [28] 0x0 + [27:20] 0x0 + [19:16] type (dimensionality and data type) + [15:04] 0x0 + [03:00] vertex register address (0..15) + Data Skip (no register load) + [31:29] 0x2 + [28] 0x1 + [27:20] 0x0 + [19:16] count of DWORDS to skip over (0..15) + [15:00] 0x0 + Vertex Input Memory from Tessellator Data (single DWORD token) + [31:29] 0x3 + [28] indicates whether data is normals or u/v + [27:24] 0x0 + [23:20] vertex register address (0..15) + [19:16] type (dimensionality) + [15:04] 0x0 + [03:00] vertex register address (0..15) + +Constant Memory from Shader (multiple DWORD token) + [31:29] 0x4 + [28:25] count of 4*DWORD constants to load (0..15) + [24:07] 0x0 + [06:00] constant memory address (0..95) + +Extension Token (single or multiple DWORD token) + [31:29] 0x5 + [28:24] count of additional DWORDs in token (0..31) + [23:00] extension-specific information + +End-of-array token (single DWORD token) + [31:29] 0x7 + [28:00] 0x1fffffff + +The stream selector token must be immediately followed by a contiguous set of stream data definition tokens. This token sequence fully defines that stream, including the set of elements within the stream, the order in which the elements appear, the type of each element, and the vertex register into which to load an element. +Streams are allowed to include data which is not loaded into a vertex register, thus allowing data which is not used for this shader to exist in the vertex stream. This skipped data is defined only by a count of DWORDs to skip over, since the type information is irrelevant. +The token sequence: +Stream Select: stream=0 +Stream Data Definition (Load): type=FLOAT3; register=3 +Stream Data Definition (Load): type=FLOAT3; register=4 +Stream Data Definition (Skip): count=2 +Stream Data Definition (Load): type=FLOAT2; register=7 + +defines stream zero to consist of 4 elements, 3 of which are loaded into registers and the fourth skipped over. Register 3 is loaded with the first three DWORDs in each vertex interpreted as FLOAT data. Register 4 is loaded with the 4th, 5th, and 6th DWORDs interpreted as FLOAT data. The next two DWORDs (7th and 8th) are skipped over and not loaded into any vertex input register. Register 7 is loaded with the 9th and 10th DWORDS interpreted as FLOAT data. +Placing of tokens other than NOPs between the Stream Selector and Stream Data Definition tokens is disallowed. + +*/ + +#ifndef __COMMONHALDEFINES +#define __COMMONHALDEFINES + +typedef enum _D3DVSD_TOKENTYPE +{ + D3DVSD_TOKEN_NOP = 0, // NOP or extension + D3DVSD_TOKEN_STREAM, // stream selector + D3DVSD_TOKEN_STREAMDATA, // stream data definition (map to vertex input memory) + D3DVSD_TOKEN_TESSELLATOR, // vertex input memory from tessellator + D3DVSD_TOKEN_CONSTMEM, // constant memory from shader + D3DVSD_TOKEN_EXT, // extension + D3DVSD_TOKEN_END = 7, // end-of-array (requires all DWORD bits to be 1) + D3DVSD_FORCE_DWORD = 0x7fffffff,// force 32-bit size enum +} D3DVSD_TOKENTYPE; +#endif // __COMMONHALDEFINES + +#define D3DVSD_TOKENTYPESHIFT 29 +#define D3DVSD_TOKENTYPEMASK (7 << D3DVSD_TOKENTYPESHIFT) + +#define D3DVSD_STREAMNUMBERSHIFT 0 +#define D3DVSD_STREAMNUMBERMASK (0xF << D3DVSD_STREAMNUMBERSHIFT) + +#define D3DVSD_DATALOADTYPESHIFT 28 +#define D3DVSD_DATALOADTYPEMASK (0x1 << D3DVSD_DATALOADTYPESHIFT) + +#define D3DVSD_DATATYPESHIFT 16 +#define D3DVSD_DATATYPEMASK (0xF << D3DVSD_DATATYPESHIFT) + +#define D3DVSD_SKIPCOUNTSHIFT 16 +#define D3DVSD_SKIPCOUNTMASK (0xF << D3DVSD_SKIPCOUNTSHIFT) + +#define D3DVSD_VERTEXREGSHIFT 0 +#define D3DVSD_VERTEXREGMASK (0x1F << D3DVSD_VERTEXREGSHIFT) + +#define D3DVSD_VERTEXREGINSHIFT 20 +#define D3DVSD_VERTEXREGINMASK (0xF << D3DVSD_VERTEXREGINSHIFT) + +#define D3DVSD_CONSTCOUNTSHIFT 25 +#define D3DVSD_CONSTCOUNTMASK (0xF << D3DVSD_CONSTCOUNTSHIFT) + +#define D3DVSD_CONSTADDRESSSHIFT 0 +#define D3DVSD_CONSTADDRESSMASK (0x7F << D3DVSD_CONSTADDRESSSHIFT) + +#define D3DVSD_CONSTRSSHIFT 16 +#define D3DVSD_CONSTRSMASK (0x1FFF << D3DVSD_CONSTRSSHIFT) + +#define D3DVSD_EXTCOUNTSHIFT 24 +#define D3DVSD_EXTCOUNTMASK (0x1F << D3DVSD_EXTCOUNTSHIFT) + +#define D3DVSD_EXTINFOSHIFT 0 +#define D3DVSD_EXTINFOMASK (0xFFFFFF << D3DVSD_EXTINFOSHIFT) + +#define D3DVSD_MAKETOKENTYPE(tokenType) ((tokenType << D3DVSD_TOKENTYPESHIFT) & D3DVSD_TOKENTYPEMASK) + +// macros for generation of CreateVertexShader Declaration token array + +// Set current stream +// _StreamNumber [0..(MaxStreams-1)] stream to get data from +// +#define D3DVSD_STREAM( _StreamNumber ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAM) | (_StreamNumber)) + +// Set tessellator stream +// +#define D3DVSD_STREAMTESSSHIFT 28 +#define D3DVSD_STREAMTESSMASK (1 << D3DVSD_STREAMTESSSHIFT) +#define D3DVSD_STREAM_TESS( ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAM) | (D3DVSD_STREAMTESSMASK)) + +// bind single vertex register to vertex element from vertex stream +// +// _VertexRegister [0..15] address of the vertex register +// _Type [D3DVSDT_*] dimensionality and arithmetic data type + +#define D3DVSD_REG( _VertexRegister, _Type ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAMDATA) | \ + ((_Type) << D3DVSD_DATATYPESHIFT) | (_VertexRegister)) + +// Skip _DWORDCount DWORDs in vertex +// +#define D3DVSD_SKIP( _DWORDCount ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_STREAMDATA) | 0x10000000 | \ + ((_DWORDCount) << D3DVSD_SKIPCOUNTSHIFT)) + +// load data into vertex shader constant memory +// +// _ConstantAddress [0..95] - address of constant array to begin filling data +// _Count [0..15] - number of constant vectors to load (4 DWORDs each) +// followed by 4*_Count DWORDS of data +// +#define D3DVSD_CONST( _ConstantAddress, _Count ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_CONSTMEM) | \ + ((_Count) << D3DVSD_CONSTCOUNTSHIFT) | (_ConstantAddress)) + +// enable tessellator generated normals +// +// _VertexRegisterIn [0..15] address of vertex register whose input stream +// will be used in normal computation +// _VertexRegisterOut [0..15] address of vertex register to output the normal to +// +#define D3DVSD_TESSNORMAL( _VertexRegisterIn, _VertexRegisterOut ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_TESSELLATOR) | \ + ((_VertexRegisterIn) << D3DVSD_VERTEXREGINSHIFT) | \ + ((0x02) << D3DVSD_DATATYPESHIFT) | (_VertexRegisterOut)) + +// enable tessellator generated surface parameters +// +// _VertexRegister [0..15] address of vertex register to output parameters +// +#define D3DVSD_TESSUV( _VertexRegister ) \ + (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_TESSELLATOR) | 0x10000000 | \ + ((0x01) << D3DVSD_DATATYPESHIFT) | (_VertexRegister)) + +// Generates END token +// +#define D3DVSD_END() 0xFFFFFFFF + +// Generates NOP token +#define D3DVSD_NOP() 0x00000000 + +#endif /* DIRECT3D_VERSION >= 0x0900 */ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _D3DNTHAL_H */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dshadercacheregistration.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dshadercacheregistration.h new file mode 100644 index 0000000000000000000000000000000000000000..1e5e7d75d7f2ab50730a3bf8d729573aeeb8fd83 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dshadercacheregistration.h @@ -0,0 +1,998 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __d3dshadercacheregistration_h__ +#define __d3dshadercacheregistration_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ID3DShaderCacheInstallerClient_FWD_DEFINED__ +#define __ID3DShaderCacheInstallerClient_FWD_DEFINED__ +typedef interface ID3DShaderCacheInstallerClient ID3DShaderCacheInstallerClient; + +#endif /* __ID3DShaderCacheInstallerClient_FWD_DEFINED__ */ + + +#ifndef __ID3DShaderCacheComponent_FWD_DEFINED__ +#define __ID3DShaderCacheComponent_FWD_DEFINED__ +typedef interface ID3DShaderCacheComponent ID3DShaderCacheComponent; + +#endif /* __ID3DShaderCacheComponent_FWD_DEFINED__ */ + + +#ifndef __ID3DShaderCacheApplication_FWD_DEFINED__ +#define __ID3DShaderCacheApplication_FWD_DEFINED__ +typedef interface ID3DShaderCacheApplication ID3DShaderCacheApplication; + +#endif /* __ID3DShaderCacheApplication_FWD_DEFINED__ */ + + +#ifndef __ID3DShaderCacheInstaller_FWD_DEFINED__ +#define __ID3DShaderCacheInstaller_FWD_DEFINED__ +typedef interface ID3DShaderCacheInstaller ID3DShaderCacheInstaller; + +#endif /* __ID3DShaderCacheInstaller_FWD_DEFINED__ */ + + +#ifndef __ID3DShaderCacheExplorer_FWD_DEFINED__ +#define __ID3DShaderCacheExplorer_FWD_DEFINED__ +typedef interface ID3DShaderCacheExplorer ID3DShaderCacheExplorer; + +#endif /* __ID3DShaderCacheExplorer_FWD_DEFINED__ */ + + +#ifndef __ID3DShaderCacheInstallerFactory_FWD_DEFINED__ +#define __ID3DShaderCacheInstallerFactory_FWD_DEFINED__ +typedef interface ID3DShaderCacheInstallerFactory ID3DShaderCacheInstallerFactory; + +#endif /* __ID3DShaderCacheInstallerFactory_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_d3dshadercacheregistration_0000_0000 */ +/* [local] */ + +#pragma once +DEFINE_GUID(CLSID_D3DShaderCacheInstallerFactory, 0x16195a0b, 0x607c, 0x41f1, 0xbf, 0x03, 0xc7, 0x69, 0x4d, 0x60, 0xa8, 0xd4); +typedef +enum D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE + { + D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE_USER = 0, + D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE_SYSTEM = ( D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE_USER + 1 ) + } D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE; + + + + +extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0000_v0_0_s_ifspec; + +#ifndef __ID3DShaderCacheInstallerClient_INTERFACE_DEFINED__ +#define __ID3DShaderCacheInstallerClient_INTERFACE_DEFINED__ + +/* interface ID3DShaderCacheInstallerClient */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3DShaderCacheInstallerClient; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a16ee930-d9f6-4222-a514-244473e5d266") + ID3DShaderCacheInstallerClient + { + public: + BEGIN_INTERFACE + virtual HRESULT STDMETHODCALLTYPE GetInstallerName( + _Inout_ SIZE_T *pNameLength, + _Out_writes_opt_(*pNameLength) wchar_t *pName) = 0; + + virtual D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE STDMETHODCALLTYPE GetInstallerScope( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE HandleDriverUpdate( + _In_ ID3DShaderCacheInstaller *pInstaller) = 0; + + END_INTERFACE + }; + + +#else /* C style interface */ + + typedef struct ID3DShaderCacheInstallerClientVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstallerClient, GetInstallerName) + HRESULT ( STDMETHODCALLTYPE *GetInstallerName )( + ID3DShaderCacheInstallerClient * This, + _Inout_ SIZE_T *pNameLength, + _Out_writes_opt_(*pNameLength) wchar_t *pName); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstallerClient, GetInstallerScope) + D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE ( STDMETHODCALLTYPE *GetInstallerScope )( + ID3DShaderCacheInstallerClient * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstallerClient, HandleDriverUpdate) + HRESULT ( STDMETHODCALLTYPE *HandleDriverUpdate )( + ID3DShaderCacheInstallerClient * This, + _In_ ID3DShaderCacheInstaller *pInstaller); + + END_INTERFACE + } ID3DShaderCacheInstallerClientVtbl; + + interface ID3DShaderCacheInstallerClient + { + CONST_VTBL struct ID3DShaderCacheInstallerClientVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3DShaderCacheInstallerClient_GetInstallerName(This,pNameLength,pName) \ + ( (This)->lpVtbl -> GetInstallerName(This,pNameLength,pName) ) + +#define ID3DShaderCacheInstallerClient_GetInstallerScope(This) \ + ( (This)->lpVtbl -> GetInstallerScope(This) ) + +#define ID3DShaderCacheInstallerClient_HandleDriverUpdate(This,pInstaller) \ + ( (This)->lpVtbl -> HandleDriverUpdate(This,pInstaller) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3DShaderCacheInstallerClient_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3dshadercacheregistration_0000_0001 */ +/* [local] */ + +typedef struct D3D_SHADER_CACHE_PSDB_PROPERTIES + { + const wchar_t *pAdapterFamily; + const wchar_t *pPsdbPath; + } D3D_SHADER_CACHE_PSDB_PROPERTIES; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0001_v0_0_s_ifspec; + +#ifndef __ID3DShaderCacheComponent_INTERFACE_DEFINED__ +#define __ID3DShaderCacheComponent_INTERFACE_DEFINED__ + +/* interface ID3DShaderCacheComponent */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3DShaderCacheComponent; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("eed1bf00-f5c7-4cf7-885c-d0f9c0cb4828") + ID3DShaderCacheComponent : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetComponentName( + _Out_ const wchar_t **pName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStateObjectDatabasePath( + _Out_ const wchar_t **pPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrecompiledCachePath( + _In_ const wchar_t *pAdapterFamily, + _Inout_ const wchar_t **pPath) = 0; + + virtual UINT STDMETHODCALLTYPE GetPrecompiledShaderDatabaseCount( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrecompiledShaderDatabases( + UINT ArraySize, + _Out_writes_(ArraySize) D3D_SHADER_CACHE_PSDB_PROPERTIES *pPSDBs) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3DShaderCacheComponentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3DShaderCacheComponent * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3DShaderCacheComponent * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3DShaderCacheComponent * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheComponent, GetComponentName) + HRESULT ( STDMETHODCALLTYPE *GetComponentName )( + ID3DShaderCacheComponent * This, + _Out_ const wchar_t **pName); + + DECLSPEC_XFGVIRT(ID3DShaderCacheComponent, GetStateObjectDatabasePath) + HRESULT ( STDMETHODCALLTYPE *GetStateObjectDatabasePath )( + ID3DShaderCacheComponent * This, + _Out_ const wchar_t **pPath); + + DECLSPEC_XFGVIRT(ID3DShaderCacheComponent, GetPrecompiledCachePath) + HRESULT ( STDMETHODCALLTYPE *GetPrecompiledCachePath )( + ID3DShaderCacheComponent * This, + _In_ const wchar_t *pAdapterFamily, + _Inout_ const wchar_t **pPath); + + DECLSPEC_XFGVIRT(ID3DShaderCacheComponent, GetPrecompiledShaderDatabaseCount) + UINT ( STDMETHODCALLTYPE *GetPrecompiledShaderDatabaseCount )( + ID3DShaderCacheComponent * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheComponent, GetPrecompiledShaderDatabases) + HRESULT ( STDMETHODCALLTYPE *GetPrecompiledShaderDatabases )( + ID3DShaderCacheComponent * This, + UINT ArraySize, + _Out_writes_(ArraySize) D3D_SHADER_CACHE_PSDB_PROPERTIES *pPSDBs); + + END_INTERFACE + } ID3DShaderCacheComponentVtbl; + + interface ID3DShaderCacheComponent + { + CONST_VTBL struct ID3DShaderCacheComponentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3DShaderCacheComponent_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3DShaderCacheComponent_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3DShaderCacheComponent_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3DShaderCacheComponent_GetComponentName(This,pName) \ + ( (This)->lpVtbl -> GetComponentName(This,pName) ) + +#define ID3DShaderCacheComponent_GetStateObjectDatabasePath(This,pPath) \ + ( (This)->lpVtbl -> GetStateObjectDatabasePath(This,pPath) ) + +#define ID3DShaderCacheComponent_GetPrecompiledCachePath(This,pAdapterFamily,pPath) \ + ( (This)->lpVtbl -> GetPrecompiledCachePath(This,pAdapterFamily,pPath) ) + +#define ID3DShaderCacheComponent_GetPrecompiledShaderDatabaseCount(This) \ + ( (This)->lpVtbl -> GetPrecompiledShaderDatabaseCount(This) ) + +#define ID3DShaderCacheComponent_GetPrecompiledShaderDatabases(This,ArraySize,pPSDBs) \ + ( (This)->lpVtbl -> GetPrecompiledShaderDatabases(This,ArraySize,pPSDBs) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3DShaderCacheComponent_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3dshadercacheregistration_0000_0002 */ +/* [local] */ + +typedef +enum D3D_SHADER_CACHE_TARGET_FLAGS + { + D3D_SHADER_CACHE_TARGET_FLAG_NONE = 0 + } D3D_SHADER_CACHE_TARGET_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS( D3D_SHADER_CACHE_TARGET_FLAGS ) +typedef union D3D_VERSION_NUMBER + { + UINT64 Version; + UINT16 VersionParts[ 4 ]; + } D3D_VERSION_NUMBER; + +typedef struct D3D_SHADER_CACHE_COMPILER_PROPERTIES + { + wchar_t szAdapterFamily[ 128 ]; + UINT64 MinimumABISupportVersion; + UINT64 MaximumABISupportVersion; + D3D_VERSION_NUMBER CompilerVersion; + D3D_VERSION_NUMBER ApplicationProfileVersion; + } D3D_SHADER_CACHE_COMPILER_PROPERTIES; + +typedef struct D3D_SHADER_CACHE_APPLICATION_DESC + { + const wchar_t *pExeFilename; + const wchar_t *pName; + D3D_VERSION_NUMBER Version; + const wchar_t *pEngineName; + D3D_VERSION_NUMBER EngineVersion; + } D3D_SHADER_CACHE_APPLICATION_DESC; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0002_v0_0_s_ifspec; + +#ifndef __ID3DShaderCacheApplication_INTERFACE_DEFINED__ +#define __ID3DShaderCacheApplication_INTERFACE_DEFINED__ + +/* interface ID3DShaderCacheApplication */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3DShaderCacheApplication; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fc688ee2-1b35-4913-93be-1ca3fa7df39e") + ID3DShaderCacheApplication : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetExePath( + _Out_ const wchar_t **pExePath) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDesc( + _Out_ D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterComponent( + _In_ const wchar_t *pName, + _In_ const wchar_t *pStateObjectDBPath, + _In_ UINT NumPSDB, + _In_reads_(NumPSDB) const D3D_SHADER_CACHE_PSDB_PROPERTIES *pPSDBs, + REFIID riid, + _COM_Outptr_ void **ppvComponent) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveComponent( + _In_ ID3DShaderCacheComponent *pComponent) = 0; + + virtual UINT STDMETHODCALLTYPE GetComponentCount( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponent( + _In_ UINT index, + REFIID riid, + _COM_Outptr_ void **ppvComponent) = 0; + + virtual UINT STDMETHODCALLTYPE GetPrecompileTargetCount( + D3D_SHADER_CACHE_TARGET_FLAGS flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrecompileTargets( + _In_ UINT ArraySize, + _In_reads_(ArraySize) D3D_SHADER_CACHE_COMPILER_PROPERTIES *pArray, + D3D_SHADER_CACHE_TARGET_FLAGS flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInstallerName( + _Out_ const wchar_t **pInstallerName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3DShaderCacheApplicationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3DShaderCacheApplication * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3DShaderCacheApplication * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3DShaderCacheApplication * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetExePath) + HRESULT ( STDMETHODCALLTYPE *GetExePath )( + ID3DShaderCacheApplication * This, + _Out_ const wchar_t **pExePath); + + DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetDesc) + HRESULT ( STDMETHODCALLTYPE *GetDesc )( + ID3DShaderCacheApplication * This, + _Out_ D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc); + + DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, RegisterComponent) + HRESULT ( STDMETHODCALLTYPE *RegisterComponent )( + ID3DShaderCacheApplication * This, + _In_ const wchar_t *pName, + _In_ const wchar_t *pStateObjectDBPath, + _In_ UINT NumPSDB, + _In_reads_(NumPSDB) const D3D_SHADER_CACHE_PSDB_PROPERTIES *pPSDBs, + REFIID riid, + _COM_Outptr_ void **ppvComponent); + + DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, RemoveComponent) + HRESULT ( STDMETHODCALLTYPE *RemoveComponent )( + ID3DShaderCacheApplication * This, + _In_ ID3DShaderCacheComponent *pComponent); + + DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetComponentCount) + UINT ( STDMETHODCALLTYPE *GetComponentCount )( + ID3DShaderCacheApplication * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetComponent) + HRESULT ( STDMETHODCALLTYPE *GetComponent )( + ID3DShaderCacheApplication * This, + _In_ UINT index, + REFIID riid, + _COM_Outptr_ void **ppvComponent); + + DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetPrecompileTargetCount) + UINT ( STDMETHODCALLTYPE *GetPrecompileTargetCount )( + ID3DShaderCacheApplication * This, + D3D_SHADER_CACHE_TARGET_FLAGS flags); + + DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetPrecompileTargets) + HRESULT ( STDMETHODCALLTYPE *GetPrecompileTargets )( + ID3DShaderCacheApplication * This, + _In_ UINT ArraySize, + _In_reads_(ArraySize) D3D_SHADER_CACHE_COMPILER_PROPERTIES *pArray, + D3D_SHADER_CACHE_TARGET_FLAGS flags); + + DECLSPEC_XFGVIRT(ID3DShaderCacheApplication, GetInstallerName) + HRESULT ( STDMETHODCALLTYPE *GetInstallerName )( + ID3DShaderCacheApplication * This, + _Out_ const wchar_t **pInstallerName); + + END_INTERFACE + } ID3DShaderCacheApplicationVtbl; + + interface ID3DShaderCacheApplication + { + CONST_VTBL struct ID3DShaderCacheApplicationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3DShaderCacheApplication_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3DShaderCacheApplication_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3DShaderCacheApplication_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3DShaderCacheApplication_GetExePath(This,pExePath) \ + ( (This)->lpVtbl -> GetExePath(This,pExePath) ) + +#define ID3DShaderCacheApplication_GetDesc(This,pApplicationDesc) \ + ( (This)->lpVtbl -> GetDesc(This,pApplicationDesc) ) + +#define ID3DShaderCacheApplication_RegisterComponent(This,pName,pStateObjectDBPath,NumPSDB,pPSDBs,riid,ppvComponent) \ + ( (This)->lpVtbl -> RegisterComponent(This,pName,pStateObjectDBPath,NumPSDB,pPSDBs,riid,ppvComponent) ) + +#define ID3DShaderCacheApplication_RemoveComponent(This,pComponent) \ + ( (This)->lpVtbl -> RemoveComponent(This,pComponent) ) + +#define ID3DShaderCacheApplication_GetComponentCount(This) \ + ( (This)->lpVtbl -> GetComponentCount(This) ) + +#define ID3DShaderCacheApplication_GetComponent(This,index,riid,ppvComponent) \ + ( (This)->lpVtbl -> GetComponent(This,index,riid,ppvComponent) ) + +#define ID3DShaderCacheApplication_GetPrecompileTargetCount(This,flags) \ + ( (This)->lpVtbl -> GetPrecompileTargetCount(This,flags) ) + +#define ID3DShaderCacheApplication_GetPrecompileTargets(This,ArraySize,pArray,flags) \ + ( (This)->lpVtbl -> GetPrecompileTargets(This,ArraySize,pArray,flags) ) + +#define ID3DShaderCacheApplication_GetInstallerName(This,pInstallerName) \ + ( (This)->lpVtbl -> GetInstallerName(This,pInstallerName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3DShaderCacheApplication_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3dshadercacheregistration_0000_0003 */ +/* [local] */ + +typedef struct SC_HANDLE__ *SC_HANDLE; + + + +extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0003_v0_0_s_ifspec; + +#ifndef __ID3DShaderCacheInstaller_INTERFACE_DEFINED__ +#define __ID3DShaderCacheInstaller_INTERFACE_DEFINED__ + +/* interface ID3DShaderCacheInstaller */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3DShaderCacheInstaller; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bbe30de1-6318-4526-ae17-776693191bb4") + ID3DShaderCacheInstaller : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterDriverUpdateListener( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterDriverUpdateListener( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterServiceDriverUpdateTrigger( + SC_HANDLE hServiceHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterServiceDriverUpdateTrigger( + SC_HANDLE hServiceHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterApplication( + _In_ const wchar_t *pExePath, + _In_ const D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc, + REFIID riid, + _COM_Outptr_ void **ppvApp) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveApplication( + _In_ ID3DShaderCacheApplication *pApplication) = 0; + + virtual UINT STDMETHODCALLTYPE GetApplicationCount( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetApplication( + _In_ UINT index, + REFIID riid, + _COM_Outptr_ void **ppvApp) = 0; + + virtual HRESULT STDMETHODCALLTYPE ClearAllState( void) = 0; + + virtual UINT STDMETHODCALLTYPE GetMaxPrecompileTargetCount( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrecompileTargets( + _In_opt_ const D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc, + _Inout_ UINT *pArraySize, + _Out_writes_(*pArraySize) D3D_SHADER_CACHE_COMPILER_PROPERTIES *pArray, + D3D_SHADER_CACHE_TARGET_FLAGS flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3DShaderCacheInstallerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3DShaderCacheInstaller * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3DShaderCacheInstaller * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3DShaderCacheInstaller * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, RegisterDriverUpdateListener) + HRESULT ( STDMETHODCALLTYPE *RegisterDriverUpdateListener )( + ID3DShaderCacheInstaller * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, UnregisterDriverUpdateListener) + HRESULT ( STDMETHODCALLTYPE *UnregisterDriverUpdateListener )( + ID3DShaderCacheInstaller * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, RegisterServiceDriverUpdateTrigger) + HRESULT ( STDMETHODCALLTYPE *RegisterServiceDriverUpdateTrigger )( + ID3DShaderCacheInstaller * This, + SC_HANDLE hServiceHandle); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, UnregisterServiceDriverUpdateTrigger) + HRESULT ( STDMETHODCALLTYPE *UnregisterServiceDriverUpdateTrigger )( + ID3DShaderCacheInstaller * This, + SC_HANDLE hServiceHandle); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, RegisterApplication) + HRESULT ( STDMETHODCALLTYPE *RegisterApplication )( + ID3DShaderCacheInstaller * This, + _In_ const wchar_t *pExePath, + _In_ const D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc, + REFIID riid, + _COM_Outptr_ void **ppvApp); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, RemoveApplication) + HRESULT ( STDMETHODCALLTYPE *RemoveApplication )( + ID3DShaderCacheInstaller * This, + _In_ ID3DShaderCacheApplication *pApplication); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, GetApplicationCount) + UINT ( STDMETHODCALLTYPE *GetApplicationCount )( + ID3DShaderCacheInstaller * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, GetApplication) + HRESULT ( STDMETHODCALLTYPE *GetApplication )( + ID3DShaderCacheInstaller * This, + _In_ UINT index, + REFIID riid, + _COM_Outptr_ void **ppvApp); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, ClearAllState) + HRESULT ( STDMETHODCALLTYPE *ClearAllState )( + ID3DShaderCacheInstaller * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, GetMaxPrecompileTargetCount) + UINT ( STDMETHODCALLTYPE *GetMaxPrecompileTargetCount )( + ID3DShaderCacheInstaller * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstaller, GetPrecompileTargets) + HRESULT ( STDMETHODCALLTYPE *GetPrecompileTargets )( + ID3DShaderCacheInstaller * This, + _In_opt_ const D3D_SHADER_CACHE_APPLICATION_DESC *pApplicationDesc, + _Inout_ UINT *pArraySize, + _Out_writes_(*pArraySize) D3D_SHADER_CACHE_COMPILER_PROPERTIES *pArray, + D3D_SHADER_CACHE_TARGET_FLAGS flags); + + END_INTERFACE + } ID3DShaderCacheInstallerVtbl; + + interface ID3DShaderCacheInstaller + { + CONST_VTBL struct ID3DShaderCacheInstallerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3DShaderCacheInstaller_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3DShaderCacheInstaller_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3DShaderCacheInstaller_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3DShaderCacheInstaller_RegisterDriverUpdateListener(This) \ + ( (This)->lpVtbl -> RegisterDriverUpdateListener(This) ) + +#define ID3DShaderCacheInstaller_UnregisterDriverUpdateListener(This) \ + ( (This)->lpVtbl -> UnregisterDriverUpdateListener(This) ) + +#define ID3DShaderCacheInstaller_RegisterServiceDriverUpdateTrigger(This,hServiceHandle) \ + ( (This)->lpVtbl -> RegisterServiceDriverUpdateTrigger(This,hServiceHandle) ) + +#define ID3DShaderCacheInstaller_UnregisterServiceDriverUpdateTrigger(This,hServiceHandle) \ + ( (This)->lpVtbl -> UnregisterServiceDriverUpdateTrigger(This,hServiceHandle) ) + +#define ID3DShaderCacheInstaller_RegisterApplication(This,pExePath,pApplicationDesc,riid,ppvApp) \ + ( (This)->lpVtbl -> RegisterApplication(This,pExePath,pApplicationDesc,riid,ppvApp) ) + +#define ID3DShaderCacheInstaller_RemoveApplication(This,pApplication) \ + ( (This)->lpVtbl -> RemoveApplication(This,pApplication) ) + +#define ID3DShaderCacheInstaller_GetApplicationCount(This) \ + ( (This)->lpVtbl -> GetApplicationCount(This) ) + +#define ID3DShaderCacheInstaller_GetApplication(This,index,riid,ppvApp) \ + ( (This)->lpVtbl -> GetApplication(This,index,riid,ppvApp) ) + +#define ID3DShaderCacheInstaller_ClearAllState(This) \ + ( (This)->lpVtbl -> ClearAllState(This) ) + +#define ID3DShaderCacheInstaller_GetMaxPrecompileTargetCount(This) \ + ( (This)->lpVtbl -> GetMaxPrecompileTargetCount(This) ) + +#define ID3DShaderCacheInstaller_GetPrecompileTargets(This,pApplicationDesc,pArraySize,pArray,flags) \ + ( (This)->lpVtbl -> GetPrecompileTargets(This,pApplicationDesc,pArraySize,pArray,flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3DShaderCacheInstaller_INTERFACE_DEFINED__ */ + + +#ifndef __ID3DShaderCacheExplorer_INTERFACE_DEFINED__ +#define __ID3DShaderCacheExplorer_INTERFACE_DEFINED__ + +/* interface ID3DShaderCacheExplorer */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3DShaderCacheExplorer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("90432322-32f5-487f-9264-e9390fa58b2a") + ID3DShaderCacheExplorer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetApplicationFromExePath( + _In_ const wchar_t *pFullExePath, + REFIID riid, + _COM_Outptr_ void **ppvApp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3DShaderCacheExplorerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3DShaderCacheExplorer * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3DShaderCacheExplorer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3DShaderCacheExplorer * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheExplorer, GetApplicationFromExePath) + HRESULT ( STDMETHODCALLTYPE *GetApplicationFromExePath )( + ID3DShaderCacheExplorer * This, + _In_ const wchar_t *pFullExePath, + REFIID riid, + _COM_Outptr_ void **ppvApp); + + END_INTERFACE + } ID3DShaderCacheExplorerVtbl; + + interface ID3DShaderCacheExplorer + { + CONST_VTBL struct ID3DShaderCacheExplorerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3DShaderCacheExplorer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3DShaderCacheExplorer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3DShaderCacheExplorer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3DShaderCacheExplorer_GetApplicationFromExePath(This,pFullExePath,riid,ppvApp) \ + ( (This)->lpVtbl -> GetApplicationFromExePath(This,pFullExePath,riid,ppvApp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3DShaderCacheExplorer_INTERFACE_DEFINED__ */ + + +#ifndef __ID3DShaderCacheInstallerFactory_INTERFACE_DEFINED__ +#define __ID3DShaderCacheInstallerFactory_INTERFACE_DEFINED__ + +/* interface ID3DShaderCacheInstallerFactory */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_ID3DShaderCacheInstallerFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("09b2dfe4-840f-401a-804c-0dd8aadc9e9f") + ID3DShaderCacheInstallerFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateInstaller( + _In_ ID3DShaderCacheInstallerClient *pClient, + REFIID riid, + _COM_Outptr_ void **ppvInstaller) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateExplorer( + IUnknown *pUnknown, + REFIID riid, + _COM_Outptr_ void **ppvExplorer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ID3DShaderCacheInstallerFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ID3DShaderCacheInstallerFactory * This, + REFIID riid, + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ID3DShaderCacheInstallerFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ID3DShaderCacheInstallerFactory * This); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstallerFactory, CreateInstaller) + HRESULT ( STDMETHODCALLTYPE *CreateInstaller )( + ID3DShaderCacheInstallerFactory * This, + _In_ ID3DShaderCacheInstallerClient *pClient, + REFIID riid, + _COM_Outptr_ void **ppvInstaller); + + DECLSPEC_XFGVIRT(ID3DShaderCacheInstallerFactory, CreateExplorer) + HRESULT ( STDMETHODCALLTYPE *CreateExplorer )( + ID3DShaderCacheInstallerFactory * This, + IUnknown *pUnknown, + REFIID riid, + _COM_Outptr_ void **ppvExplorer); + + END_INTERFACE + } ID3DShaderCacheInstallerFactoryVtbl; + + interface ID3DShaderCacheInstallerFactory + { + CONST_VTBL struct ID3DShaderCacheInstallerFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ID3DShaderCacheInstallerFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ID3DShaderCacheInstallerFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ID3DShaderCacheInstallerFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ID3DShaderCacheInstallerFactory_CreateInstaller(This,pClient,riid,ppvInstaller) \ + ( (This)->lpVtbl -> CreateInstaller(This,pClient,riid,ppvInstaller) ) + +#define ID3DShaderCacheInstallerFactory_CreateExplorer(This,pUnknown,riid,ppvExplorer) \ + ( (This)->lpVtbl -> CreateExplorer(This,pUnknown,riid,ppvExplorer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ID3DShaderCacheInstallerFactory_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_d3dshadercacheregistration_0000_0006 */ +/* [local] */ + +DEFINE_GUID(IID_ID3DShaderCacheInstallerClient,0xa16ee930,0xd9f6,0x4222,0xa5,0x14,0x24,0x44,0x73,0xe5,0xd2,0x66); +DEFINE_GUID(IID_ID3DShaderCacheComponent,0xeed1bf00,0xf5c7,0x4cf7,0x88,0x5c,0xd0,0xf9,0xc0,0xcb,0x48,0x28); +DEFINE_GUID(IID_ID3DShaderCacheApplication,0xfc688ee2,0x1b35,0x4913,0x93,0xbe,0x1c,0xa3,0xfa,0x7d,0xf3,0x9e); +DEFINE_GUID(IID_ID3DShaderCacheInstaller,0xbbe30de1,0x6318,0x4526,0xae,0x17,0x77,0x66,0x93,0x19,0x1b,0xb4); +DEFINE_GUID(IID_ID3DShaderCacheExplorer,0x90432322,0x32f5,0x487f,0x92,0x64,0xe9,0x39,0x0f,0xa5,0x8b,0x2a); +DEFINE_GUID(IID_ID3DShaderCacheInstallerFactory,0x09b2dfe4,0x840f,0x401a,0x80,0x4c,0x0d,0xd8,0xaa,0xdc,0x9e,0x9f); + + +extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_d3dshadercacheregistration_0000_0006_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dshadercacheregistration.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dshadercacheregistration.idl new file mode 100644 index 0000000000000000000000000000000000000000..cae31e4f3a9c79ef114b00cfed488b235c572a45 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dshadercacheregistration.idl @@ -0,0 +1,195 @@ +/*------------------------------------------------------------------------------------- + * + * Copyright (c) Microsoft Corporation + * Licensed under the MIT license + * + *-------------------------------------------------------------------------------------*/ +#pragma once +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote("DEFINE_GUID(CLSID_D3DShaderCacheInstallerFactory, 0x16195a0b, 0x607c, 0x41f1, 0xbf, 0x03, 0xc7, 0x69, 0x4d, 0x60, 0xa8, 0xd4);") + +typedef enum D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE +{ + D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE_USER, + D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE_SYSTEM +} D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE; + +interface ID3DShaderCacheInstaller; + +// This interface is implemented by the game installer +[uuid(a16ee930-d9f6-4222-a514-244473e5d266), object, local, pointer_default(unique)] +interface ID3DShaderCacheInstallerClient +{ + HRESULT GetInstallerName( + [annotation("_Inout_")] SIZE_T* pNameLength, + [annotation("_Out_writes_opt_(*pNameLength)")] wchar_t* pName); + + D3D_SHADER_CACHE_APP_REGISTRATION_SCOPE GetInstallerScope(); + + HRESULT HandleDriverUpdate( + [annotation("_In_")] ID3DShaderCacheInstaller* pInstaller); +}; + +typedef struct D3D_SHADER_CACHE_PSDB_PROPERTIES +{ + const wchar_t* pAdapterFamily; + const wchar_t* pPsdbPath; +} D3D_SHADER_CACHE_PSDB_PROPERTIES; + +[uuid(eed1bf00-f5c7-4cf7-885c-d0f9c0cb4828), object, local, pointer_default(unique)] +interface ID3DShaderCacheComponent : IUnknown +{ + HRESULT GetComponentName( + [annotation("_Out_")] const wchar_t** pName); + + HRESULT GetStateObjectDatabasePath( + [annotation("_Out_")] const wchar_t** pPath); + + HRESULT GetPrecompiledCachePath( + [annotation("_In_")] const wchar_t* pAdapterFamily, + [annotation("_Inout_")] const wchar_t** pPath); + + UINT GetPrecompiledShaderDatabaseCount(); + + HRESULT GetPrecompiledShaderDatabases( + UINT ArraySize, + [annotation("_Out_writes_(ArraySize)")] D3D_SHADER_CACHE_PSDB_PROPERTIES * pPSDBs); +}; + +typedef enum D3D_SHADER_CACHE_TARGET_FLAGS +{ + D3D_SHADER_CACHE_TARGET_FLAG_NONE = 0, +}D3D_SHADER_CACHE_TARGET_FLAGS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS( D3D_SHADER_CACHE_TARGET_FLAGS )") + +typedef union D3D_VERSION_NUMBER +{ + UINT64 Version; + UINT16 VersionParts[4]; +} D3D_VERSION_NUMBER; + +typedef struct D3D_SHADER_CACHE_COMPILER_PROPERTIES +{ + wchar_t szAdapterFamily[128]; + UINT64 MinimumABISupportVersion; + UINT64 MaximumABISupportVersion; + D3D_VERSION_NUMBER CompilerVersion; + D3D_VERSION_NUMBER ApplicationProfileVersion; +} D3D_SHADER_CACHE_COMPILER_PROPERTIES; + +typedef struct D3D_SHADER_CACHE_APPLICATION_DESC +{ + const wchar_t* pExeFilename; + const wchar_t* pName; + D3D_VERSION_NUMBER Version; + const wchar_t* pEngineName; + D3D_VERSION_NUMBER EngineVersion; +} D3D_SHADER_CACHE_APPLICATION_DESC; + +[uuid(fc688ee2-1b35-4913-93be-1ca3fa7df39e), object, local, pointer_default(unique)] +interface ID3DShaderCacheApplication : IUnknown +{ + HRESULT GetExePath( + [annotation("_Out_")] const wchar_t** pExePath); + + HRESULT GetDesc( + [annotation("_Out_")] D3D_SHADER_CACHE_APPLICATION_DESC* pApplicationDesc); + + HRESULT RegisterComponent( + [annotation("_In_")] const wchar_t* pName, + [annotation("_In_")] const wchar_t* pStateObjectDBPath, + [annotation("_In_")] UINT NumPSDB, + [annotation("_In_reads_(NumPSDB)")] const D3D_SHADER_CACHE_PSDB_PROPERTIES* pPSDBs, + [in] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvComponent); + + HRESULT RemoveComponent( + [annotation("_In_")] ID3DShaderCacheComponent* pComponent); + + UINT GetComponentCount(); + + HRESULT GetComponent( + [annotation("_In_")] UINT index, + [in] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvComponent); + + UINT GetPrecompileTargetCount(D3D_SHADER_CACHE_TARGET_FLAGS flags); + + HRESULT GetPrecompileTargets( + [annotation("_In_")] UINT ArraySize, + [annotation("_In_reads_(ArraySize)")] D3D_SHADER_CACHE_COMPILER_PROPERTIES* pArray, + D3D_SHADER_CACHE_TARGET_FLAGS flags); + + HRESULT GetInstallerName( + [annotation("_Out_")] const wchar_t** pInstallerName); +}; + +typedef struct SC_HANDLE__ *SC_HANDLE; +[uuid(bbe30de1-6318-4526-ae17-776693191bb4), object, local, pointer_default(unique)] +interface ID3DShaderCacheInstaller : IUnknown +{ + HRESULT RegisterDriverUpdateListener(); + HRESULT UnregisterDriverUpdateListener(); + + HRESULT RegisterServiceDriverUpdateTrigger(SC_HANDLE hServiceHandle); + HRESULT UnregisterServiceDriverUpdateTrigger(SC_HANDLE hServiceHandle); + + HRESULT RegisterApplication( + [annotation("_In_")] const wchar_t* pExePath, + [annotation("_In_")] const D3D_SHADER_CACHE_APPLICATION_DESC* pApplicationDesc, + [in] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvApp); // Expected: ID3DShaderCacheApplication + + HRESULT RemoveApplication( + [annotation("_In_")] ID3DShaderCacheApplication* pApplication); // Expected: ID3DShaderCacheApplication + + UINT GetApplicationCount(); + + HRESULT GetApplication( + [annotation("_In_")] UINT index, + [in] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvApp); // Expected: ID3DShaderCacheApplication + + HRESULT ClearAllState(); + + UINT GetMaxPrecompileTargetCount(); + + HRESULT GetPrecompileTargets( + [annotation("_In_opt_")] const D3D_SHADER_CACHE_APPLICATION_DESC* pApplicationDesc, + [annotation("_Inout_")] UINT* pArraySize, + [annotation("_Out_writes_(*pArraySize)")] D3D_SHADER_CACHE_COMPILER_PROPERTIES* pArray, + D3D_SHADER_CACHE_TARGET_FLAGS flags); +}; + +[uuid(90432322-32f5-487f-9264-e9390fa58b2a), object, local, pointer_default(unique)] +interface ID3DShaderCacheExplorer : IUnknown +{ + HRESULT GetApplicationFromExePath( + [annotation("_In_")] const wchar_t* pFullExePath, + [in] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvApp); // Expected: ID3DShaderCacheApplication +}; + +[uuid(09b2dfe4-840f-401a-804c-0dd8aadc9e9f), object, local, pointer_default(unique)] +interface ID3DShaderCacheInstallerFactory : IUnknown +{ + HRESULT CreateInstaller( + [annotation("_In_")] ID3DShaderCacheInstallerClient* pClient, + [in] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvInstaller); + + HRESULT CreateExplorer( + [in] IUnknown* pUnknown, // Expected: ID3D12Device, IDXCoreAdapter, IDXGIAdapter + [in] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_")] void** ppvExplorer); // Expected: ID3DShaderCacheExplorer +}; + + +cpp_quote( "DEFINE_GUID(IID_ID3DShaderCacheInstallerClient,0xa16ee930,0xd9f6,0x4222,0xa5,0x14,0x24,0x44,0x73,0xe5,0xd2,0x66);" ) +cpp_quote( "DEFINE_GUID(IID_ID3DShaderCacheComponent,0xeed1bf00,0xf5c7,0x4cf7,0x88,0x5c,0xd0,0xf9,0xc0,0xcb,0x48,0x28);" ) +cpp_quote( "DEFINE_GUID(IID_ID3DShaderCacheApplication,0xfc688ee2,0x1b35,0x4913,0x93,0xbe,0x1c,0xa3,0xfa,0x7d,0xf3,0x9e);" ) +cpp_quote( "DEFINE_GUID(IID_ID3DShaderCacheInstaller,0xbbe30de1,0x6318,0x4526,0xae,0x17,0x77,0x66,0x93,0x19,0x1b,0xb4);" ) +cpp_quote( "DEFINE_GUID(IID_ID3DShaderCacheExplorer,0x90432322,0x32f5,0x487f,0x92,0x64,0xe9,0x39,0x0f,0xa5,0x8b,0x2a);" ) +cpp_quote( "DEFINE_GUID(IID_ID3DShaderCacheInstallerFactory,0x09b2dfe4,0x840f,0x401a,0x80,0x4c,0x0d,0xd8,0xaa,0xdc,0x9e,0x9f);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dtypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dtypes.h new file mode 100644 index 0000000000000000000000000000000000000000..7a95972446c792b4b5b2a7fcabf15d10fa7b3033 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dtypes.h @@ -0,0 +1,2133 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: d3dtypes.h + * Content: Direct3D types include file + * + ***************************************************************************/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef _D3DTYPES_H_ +#define _D3DTYPES_H_ + +#ifndef DIRECT3D_VERSION +#define DIRECT3D_VERSION 0x0700 +#endif + +#include + +#include + +#if (DIRECT3D_VERSION >= 0x0800) + +#ifndef _D3DHAL_H_ +#pragma message("should not include d3dtypes.h when compiling for DX8 or newer interfaces") +#endif + +#if (DIRECT3D_VERSION >= 0x0900) +#include +#else +#include +#endif +#endif + +#include "ddraw.h" + +#pragma warning(push) +#pragma warning(disable:4201) // anonymous unions warning +#if defined(_X86_) || defined(_IA64_) +#pragma pack(4) +#endif + + +/* D3DVALUE is the fundamental Direct3D fractional data type */ + +#define D3DVALP(val, prec) ((float)(val)) +#define D3DVAL(val) ((float)(val)) + +#ifndef DX_SHARED_DEFINES + +/* + * This definition is shared with other DirectX components whose header files + * might already have defined it. Therefore, we don't define this type if + * someone else already has (as indicated by the definition of + * DX_SHARED_DEFINES). We don't set DX_SHARED_DEFINES here as there are + * other types in this header that are also shared. The last of these + * shared defines in this file will set DX_SHARED_DEFINES. + */ +typedef float D3DVALUE, *LPD3DVALUE; + +#endif /* DX_SHARED_DEFINES */ + +#define D3DDivide(a, b) (float)((double) (a) / (double) (b)) +#define D3DMultiply(a, b) ((a) * (b)) + +typedef LONG D3DFIXED; + +#ifndef RGB_MAKE +/* + * Format of CI colors is + * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + * | alpha | color index | fraction | + * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + */ +#define CI_GETALPHA(ci) ((ci) >> 24) +#define CI_GETINDEX(ci) (((ci) >> 8) & 0xffff) +#define CI_GETFRACTION(ci) ((ci) & 0xff) +#define CI_ROUNDINDEX(ci) CI_GETINDEX((ci) + 0x80) +#define CI_MASKALPHA(ci) ((ci) & 0xffffff) +#define CI_MAKE(a, i, f) (((a) << 24) | ((i) << 8) | (f)) + +/* + * Format of RGBA colors is + * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + * | alpha | red | green | blue | + * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + */ +#define RGBA_GETALPHA(rgb) ((rgb) >> 24) +#define RGBA_GETRED(rgb) (((rgb) >> 16) & 0xff) +#define RGBA_GETGREEN(rgb) (((rgb) >> 8) & 0xff) +#define RGBA_GETBLUE(rgb) ((rgb) & 0xff) +#define RGBA_MAKE(r, g, b, a) ((D3DCOLOR) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b))) + +/* D3DRGB and D3DRGBA may be used as initialisers for D3DCOLORs + * The float values must be in the range 0..1 + */ +#define D3DRGB(r, g, b) \ + (0xff000000L | ( ((long)((r) * 255)) << 16) | (((long)((g) * 255)) << 8) | (long)((b) * 255)) +#define D3DRGBA(r, g, b, a) \ + ( (((long)((a) * 255)) << 24) | (((long)((r) * 255)) << 16) \ + | (((long)((g) * 255)) << 8) | (long)((b) * 255) \ + ) + +/* + * Format of RGB colors is + * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + * | ignored | red | green | blue | + * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + */ +#define RGB_GETRED(rgb) (((rgb) >> 16) & 0xff) +#define RGB_GETGREEN(rgb) (((rgb) >> 8) & 0xff) +#define RGB_GETBLUE(rgb) ((rgb) & 0xff) +#define RGBA_SETALPHA(rgba, x) (((x) << 24) | ((rgba) & 0x00ffffff)) +#define RGB_MAKE(r, g, b) ((D3DCOLOR) (((r) << 16) | ((g) << 8) | (b))) +#define RGBA_TORGB(rgba) ((D3DCOLOR) ((rgba) & 0xffffff)) +#define RGB_TORGBA(rgb) ((D3DCOLOR) ((rgb) | 0xff000000)) + +#endif + +/* + * Flags for Enumerate functions + */ + +/* + * Stop the enumeration + */ +#define D3DENUMRET_CANCEL DDENUMRET_CANCEL + +/* + * Continue the enumeration + */ +#define D3DENUMRET_OK DDENUMRET_OK + +typedef HRESULT (CALLBACK* LPD3DVALIDATECALLBACK)(LPVOID lpUserArg, DWORD dwOffset); +typedef HRESULT (CALLBACK* LPD3DENUMTEXTUREFORMATSCALLBACK)(LPDDSURFACEDESC lpDdsd, LPVOID lpContext); +typedef HRESULT (CALLBACK* LPD3DENUMPIXELFORMATSCALLBACK)(LPDDPIXELFORMAT lpDDPixFmt, LPVOID lpContext); + +#ifndef DX_SHARED_DEFINES + +/* + * This definition is shared with other DirectX components whose header files + * might already have defined it. Therefore, we don't define this type if + * someone else already has (as indicated by the definition of + * DX_SHARED_DEFINES). We don't set DX_SHARED_DEFINES here as there are + * other types in this header that are also shared. The last of these + * shared defines in this file will set DX_SHARED_DEFINES. + */ +#ifndef D3DCOLOR_DEFINED +typedef DWORD D3DCOLOR; +#define D3DCOLOR_DEFINED +#endif +typedef DWORD *LPD3DCOLOR; + +#endif /* DX_SHARED_DEFINES */ + +typedef DWORD D3DMATERIALHANDLE, *LPD3DMATERIALHANDLE; +typedef DWORD D3DTEXTUREHANDLE, *LPD3DTEXTUREHANDLE; +typedef DWORD D3DMATRIXHANDLE, *LPD3DMATRIXHANDLE; + +#ifndef D3DCOLORVALUE_DEFINED +typedef struct _D3DCOLORVALUE { + union { + D3DVALUE r; + D3DVALUE dvR; + }; + union { + D3DVALUE g; + D3DVALUE dvG; + }; + union { + D3DVALUE b; + D3DVALUE dvB; + }; + union { + D3DVALUE a; + D3DVALUE dvA; + }; +} D3DCOLORVALUE; +#define D3DCOLORVALUE_DEFINED +#endif +typedef struct _D3DCOLORVALUE *LPD3DCOLORVALUE; + +#ifndef D3DRECT_DEFINED +typedef struct _D3DRECT { + union { + LONG x1; + LONG lX1; + }; + union { + LONG y1; + LONG lY1; + }; + union { + LONG x2; + LONG lX2; + }; + union { + LONG y2; + LONG lY2; + }; +} D3DRECT; +#define D3DRECT_DEFINED +#endif +typedef struct _D3DRECT *LPD3DRECT; + +#ifndef DX_SHARED_DEFINES + +/* + * This definition is shared with other DirectX components whose header files + * might already have defined it. Therefore, we don't define this type if + * someone else already has (as indicated by the definition of + * DX_SHARED_DEFINES). + */ + +#ifndef D3DVECTOR_DEFINED +typedef struct _D3DVECTOR { + union { + D3DVALUE x; + D3DVALUE dvX; + }; + union { + D3DVALUE y; + D3DVALUE dvY; + }; + union { + D3DVALUE z; + D3DVALUE dvZ; + }; +#if(DIRECT3D_VERSION >= 0x0500) +#if (defined __cplusplus) && (defined D3D_OVERLOADS) + +public: + + // ===================================== + // Constructors + // ===================================== + + _D3DVECTOR() { } + _D3DVECTOR(D3DVALUE f); + _D3DVECTOR(D3DVALUE _x, D3DVALUE _y, D3DVALUE _z); + _D3DVECTOR(const D3DVALUE f[3]); + + // ===================================== + // Access grants + // ===================================== + + const D3DVALUE&operator[](int i) const; + D3DVALUE&operator[](int i); + + // ===================================== + // Assignment operators + // ===================================== + + _D3DVECTOR& operator += (const _D3DVECTOR& v); + _D3DVECTOR& operator -= (const _D3DVECTOR& v); + _D3DVECTOR& operator *= (const _D3DVECTOR& v); + _D3DVECTOR& operator /= (const _D3DVECTOR& v); + _D3DVECTOR& operator *= (D3DVALUE s); + _D3DVECTOR& operator /= (D3DVALUE s); + + // ===================================== + // Unary operators + // ===================================== + + friend _D3DVECTOR operator + (const _D3DVECTOR& v); + friend _D3DVECTOR operator - (const _D3DVECTOR& v); + + + // ===================================== + // Binary operators + // ===================================== + + // Addition and subtraction + friend _D3DVECTOR operator + (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + friend _D3DVECTOR operator - (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + // Scalar multiplication and division + friend _D3DVECTOR operator * (const _D3DVECTOR& v, D3DVALUE s); + friend _D3DVECTOR operator * (D3DVALUE s, const _D3DVECTOR& v); + friend _D3DVECTOR operator / (const _D3DVECTOR& v, D3DVALUE s); + // Memberwise multiplication and division + friend _D3DVECTOR operator * (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + friend _D3DVECTOR operator / (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + + // Vector dominance + friend int operator < (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + friend int operator <= (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + + // Bitwise equality + friend int operator == (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + + // Length-related functions + friend D3DVALUE SquareMagnitude (const _D3DVECTOR& v); + friend D3DVALUE Magnitude (const _D3DVECTOR& v); + + // Returns vector with same direction and unit length + friend _D3DVECTOR Normalize (const _D3DVECTOR& v); + + // Return min/max component of the input vector + friend D3DVALUE Min (const _D3DVECTOR& v); + friend D3DVALUE Max (const _D3DVECTOR& v); + + // Return memberwise min/max of input vectors + friend _D3DVECTOR Minimize (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + friend _D3DVECTOR Maximize (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + + // Dot and cross product + friend D3DVALUE DotProduct (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + friend _D3DVECTOR CrossProduct (const _D3DVECTOR& v1, const _D3DVECTOR& v2); + +#endif +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DVECTOR; +#define D3DVECTOR_DEFINED +#endif +typedef struct _D3DVECTOR *LPD3DVECTOR; + +/* + * As this is the last of the shared defines to be defined we now set + * D3D_SHARED_DEFINES to flag that fact that this header has defined these + * types. + */ +#define DX_SHARED_DEFINES + +#endif /* DX_SHARED_DEFINES */ + +/* + * Vertex data types supported in an ExecuteBuffer. + */ + +/* + * Homogeneous vertices + */ + +typedef struct _D3DHVERTEX { + DWORD dwFlags; /* Homogeneous clipping flags */ + union { + D3DVALUE hx; + D3DVALUE dvHX; + }; + union { + D3DVALUE hy; + D3DVALUE dvHY; + }; + union { + D3DVALUE hz; + D3DVALUE dvHZ; + }; +} D3DHVERTEX, *LPD3DHVERTEX; + +/* + * Transformed/lit vertices + */ +typedef struct _D3DTLVERTEX { + union { + D3DVALUE sx; /* Screen coordinates */ + D3DVALUE dvSX; + }; + union { + D3DVALUE sy; + D3DVALUE dvSY; + }; + union { + D3DVALUE sz; + D3DVALUE dvSZ; + }; + union { + D3DVALUE rhw; /* Reciprocal of homogeneous w */ + D3DVALUE dvRHW; + }; + union { + D3DCOLOR color; /* Vertex color */ + D3DCOLOR dcColor; + }; + union { + D3DCOLOR specular; /* Specular component of vertex */ + D3DCOLOR dcSpecular; + }; + union { + D3DVALUE tu; /* Texture coordinates */ + D3DVALUE dvTU; + }; + union { + D3DVALUE tv; + D3DVALUE dvTV; + }; +#if(DIRECT3D_VERSION >= 0x0500) +#if (defined __cplusplus) && (defined D3D_OVERLOADS) + _D3DTLVERTEX() { } + _D3DTLVERTEX(const D3DVECTOR& v, float _rhw, + D3DCOLOR _color, D3DCOLOR _specular, + float _tu, float _tv) + { sx = v.x; sy = v.y; sz = v.z; rhw = _rhw; + color = _color; specular = _specular; + tu = _tu; tv = _tv; + } +#endif +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DTLVERTEX, *LPD3DTLVERTEX; + +/* + * Untransformed/lit vertices + */ +typedef struct _D3DLVERTEX { + union { + D3DVALUE x; /* Homogeneous coordinates */ + D3DVALUE dvX; + }; + union { + D3DVALUE y; + D3DVALUE dvY; + }; + union { + D3DVALUE z; + D3DVALUE dvZ; + }; + DWORD dwReserved; + union { + D3DCOLOR color; /* Vertex color */ + D3DCOLOR dcColor; + }; + union { + D3DCOLOR specular; /* Specular component of vertex */ + D3DCOLOR dcSpecular; + }; + union { + D3DVALUE tu; /* Texture coordinates */ + D3DVALUE dvTU; + }; + union { + D3DVALUE tv; + D3DVALUE dvTV; + }; +#if(DIRECT3D_VERSION >= 0x0500) +#if (defined __cplusplus) && (defined D3D_OVERLOADS) + _D3DLVERTEX() { } + _D3DLVERTEX(const D3DVECTOR& v, + D3DCOLOR _color, D3DCOLOR _specular, + float _tu, float _tv) + { x = v.x; y = v.y; z = v.z; dwReserved = 0; + color = _color; specular = _specular; + tu = _tu; tv = _tv; + } +#endif +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DLVERTEX, *LPD3DLVERTEX; + +/* + * Untransformed/unlit vertices + */ + +typedef struct _D3DVERTEX { + union { + D3DVALUE x; /* Homogeneous coordinates */ + D3DVALUE dvX; + }; + union { + D3DVALUE y; + D3DVALUE dvY; + }; + union { + D3DVALUE z; + D3DVALUE dvZ; + }; + union { + D3DVALUE nx; /* Normal */ + D3DVALUE dvNX; + }; + union { + D3DVALUE ny; + D3DVALUE dvNY; + }; + union { + D3DVALUE nz; + D3DVALUE dvNZ; + }; + union { + D3DVALUE tu; /* Texture coordinates */ + D3DVALUE dvTU; + }; + union { + D3DVALUE tv; + D3DVALUE dvTV; + }; +#if(DIRECT3D_VERSION >= 0x0500) +#if (defined __cplusplus) && (defined D3D_OVERLOADS) + _D3DVERTEX() { } + _D3DVERTEX(const D3DVECTOR& v, const D3DVECTOR& n, float _tu, float _tv) + { x = v.x; y = v.y; z = v.z; + nx = n.x; ny = n.y; nz = n.z; + tu = _tu; tv = _tv; + } +#endif +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DVERTEX, *LPD3DVERTEX; + + +/* + * Matrix, viewport, and tranformation structures and definitions. + */ + +#ifndef D3DMATRIX_DEFINED +typedef struct _D3DMATRIX { +#if(DIRECT3D_VERSION >= 0x0500) +#if (defined __cplusplus) && (defined D3D_OVERLOADS) + union { + struct { +#endif + +#endif /* DIRECT3D_VERSION >= 0x0500 */ + D3DVALUE _11, _12, _13, _14; + D3DVALUE _21, _22, _23, _24; + D3DVALUE _31, _32, _33, _34; + D3DVALUE _41, _42, _43, _44; + +#if(DIRECT3D_VERSION >= 0x0500) +#if (defined __cplusplus) && (defined D3D_OVERLOADS) + }; + D3DVALUE m[4][4]; + }; + _D3DMATRIX() { } + _D3DMATRIX( D3DVALUE _m00, D3DVALUE _m01, D3DVALUE _m02, D3DVALUE _m03, + D3DVALUE _m10, D3DVALUE _m11, D3DVALUE _m12, D3DVALUE _m13, + D3DVALUE _m20, D3DVALUE _m21, D3DVALUE _m22, D3DVALUE _m23, + D3DVALUE _m30, D3DVALUE _m31, D3DVALUE _m32, D3DVALUE _m33 + ) + { + m[0][0] = _m00; m[0][1] = _m01; m[0][2] = _m02; m[0][3] = _m03; + m[1][0] = _m10; m[1][1] = _m11; m[1][2] = _m12; m[1][3] = _m13; + m[2][0] = _m20; m[2][1] = _m21; m[2][2] = _m22; m[2][3] = _m23; + m[3][0] = _m30; m[3][1] = _m31; m[3][2] = _m32; m[3][3] = _m33; + } + + D3DVALUE& operator()(int iRow, int iColumn) { return m[iRow][iColumn]; } + const D3DVALUE& operator()(int iRow, int iColumn) const { return m[iRow][iColumn]; } +#if(DIRECT3D_VERSION >= 0x0600) + friend _D3DMATRIX operator* (const _D3DMATRIX&, const _D3DMATRIX&); +#endif /* DIRECT3D_VERSION >= 0x0600 */ +#endif +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DMATRIX; +#define D3DMATRIX_DEFINED +#endif +typedef struct _D3DMATRIX *LPD3DMATRIX; + +#if (defined __cplusplus) && (defined D3D_OVERLOADS) +#include "d3dvec.inl" +#endif + +typedef struct _D3DVIEWPORT { + DWORD dwSize; + DWORD dwX; + DWORD dwY; /* Top left */ + DWORD dwWidth; + DWORD dwHeight; /* Dimensions */ + D3DVALUE dvScaleX; /* Scale homogeneous to screen */ + D3DVALUE dvScaleY; /* Scale homogeneous to screen */ + D3DVALUE dvMaxX; /* Min/max homogeneous x coord */ + D3DVALUE dvMaxY; /* Min/max homogeneous y coord */ + D3DVALUE dvMinZ; + D3DVALUE dvMaxZ; /* Min/max homogeneous z coord */ +} D3DVIEWPORT, *LPD3DVIEWPORT; + +#if(DIRECT3D_VERSION >= 0x0500) +typedef struct _D3DVIEWPORT2 { + DWORD dwSize; + DWORD dwX; + DWORD dwY; /* Viewport Top left */ + DWORD dwWidth; + DWORD dwHeight; /* Viewport Dimensions */ + D3DVALUE dvClipX; /* Top left of clip volume */ + D3DVALUE dvClipY; + D3DVALUE dvClipWidth; /* Clip Volume Dimensions */ + D3DVALUE dvClipHeight; + D3DVALUE dvMinZ; /* Min/max of clip Volume */ + D3DVALUE dvMaxZ; +} D3DVIEWPORT2, *LPD3DVIEWPORT2; +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0700) +typedef struct _D3DVIEWPORT7 { + DWORD dwX; + DWORD dwY; /* Viewport Top left */ + DWORD dwWidth; + DWORD dwHeight; /* Viewport Dimensions */ + D3DVALUE dvMinZ; /* Min/max of clip Volume */ + D3DVALUE dvMaxZ; +} D3DVIEWPORT7, *LPD3DVIEWPORT7; +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* + * Values for clip fields. + */ + +#if(DIRECT3D_VERSION >= 0x0700) + +// Max number of user clipping planes, supported in D3D. +#define D3DMAXUSERCLIPPLANES 32 + +// These bits could be ORed together to use with D3DRENDERSTATE_CLIPPLANEENABLE +// +#define D3DCLIPPLANE0 (1 << 0) +#define D3DCLIPPLANE1 (1 << 1) +#define D3DCLIPPLANE2 (1 << 2) +#define D3DCLIPPLANE3 (1 << 3) +#define D3DCLIPPLANE4 (1 << 4) +#define D3DCLIPPLANE5 (1 << 5) + +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#define D3DCLIP_LEFT 0x00000001L +#define D3DCLIP_RIGHT 0x00000002L +#define D3DCLIP_TOP 0x00000004L +#define D3DCLIP_BOTTOM 0x00000008L +#define D3DCLIP_FRONT 0x00000010L +#define D3DCLIP_BACK 0x00000020L +#define D3DCLIP_GEN0 0x00000040L +#define D3DCLIP_GEN1 0x00000080L +#define D3DCLIP_GEN2 0x00000100L +#define D3DCLIP_GEN3 0x00000200L +#define D3DCLIP_GEN4 0x00000400L +#define D3DCLIP_GEN5 0x00000800L + +/* + * Values for d3d status. + */ +#define D3DSTATUS_CLIPUNIONLEFT D3DCLIP_LEFT +#define D3DSTATUS_CLIPUNIONRIGHT D3DCLIP_RIGHT +#define D3DSTATUS_CLIPUNIONTOP D3DCLIP_TOP +#define D3DSTATUS_CLIPUNIONBOTTOM D3DCLIP_BOTTOM +#define D3DSTATUS_CLIPUNIONFRONT D3DCLIP_FRONT +#define D3DSTATUS_CLIPUNIONBACK D3DCLIP_BACK +#define D3DSTATUS_CLIPUNIONGEN0 D3DCLIP_GEN0 +#define D3DSTATUS_CLIPUNIONGEN1 D3DCLIP_GEN1 +#define D3DSTATUS_CLIPUNIONGEN2 D3DCLIP_GEN2 +#define D3DSTATUS_CLIPUNIONGEN3 D3DCLIP_GEN3 +#define D3DSTATUS_CLIPUNIONGEN4 D3DCLIP_GEN4 +#define D3DSTATUS_CLIPUNIONGEN5 D3DCLIP_GEN5 + +#define D3DSTATUS_CLIPINTERSECTIONLEFT 0x00001000L +#define D3DSTATUS_CLIPINTERSECTIONRIGHT 0x00002000L +#define D3DSTATUS_CLIPINTERSECTIONTOP 0x00004000L +#define D3DSTATUS_CLIPINTERSECTIONBOTTOM 0x00008000L +#define D3DSTATUS_CLIPINTERSECTIONFRONT 0x00010000L +#define D3DSTATUS_CLIPINTERSECTIONBACK 0x00020000L +#define D3DSTATUS_CLIPINTERSECTIONGEN0 0x00040000L +#define D3DSTATUS_CLIPINTERSECTIONGEN1 0x00080000L +#define D3DSTATUS_CLIPINTERSECTIONGEN2 0x00100000L +#define D3DSTATUS_CLIPINTERSECTIONGEN3 0x00200000L +#define D3DSTATUS_CLIPINTERSECTIONGEN4 0x00400000L +#define D3DSTATUS_CLIPINTERSECTIONGEN5 0x00800000L +#define D3DSTATUS_ZNOTVISIBLE 0x01000000L +/* Do not use 0x80000000 for any status flags in future as it is reserved */ + +#define D3DSTATUS_CLIPUNIONALL ( \ + D3DSTATUS_CLIPUNIONLEFT | \ + D3DSTATUS_CLIPUNIONRIGHT | \ + D3DSTATUS_CLIPUNIONTOP | \ + D3DSTATUS_CLIPUNIONBOTTOM | \ + D3DSTATUS_CLIPUNIONFRONT | \ + D3DSTATUS_CLIPUNIONBACK | \ + D3DSTATUS_CLIPUNIONGEN0 | \ + D3DSTATUS_CLIPUNIONGEN1 | \ + D3DSTATUS_CLIPUNIONGEN2 | \ + D3DSTATUS_CLIPUNIONGEN3 | \ + D3DSTATUS_CLIPUNIONGEN4 | \ + D3DSTATUS_CLIPUNIONGEN5 \ + ) + +#define D3DSTATUS_CLIPINTERSECTIONALL ( \ + D3DSTATUS_CLIPINTERSECTIONLEFT | \ + D3DSTATUS_CLIPINTERSECTIONRIGHT | \ + D3DSTATUS_CLIPINTERSECTIONTOP | \ + D3DSTATUS_CLIPINTERSECTIONBOTTOM | \ + D3DSTATUS_CLIPINTERSECTIONFRONT | \ + D3DSTATUS_CLIPINTERSECTIONBACK | \ + D3DSTATUS_CLIPINTERSECTIONGEN0 | \ + D3DSTATUS_CLIPINTERSECTIONGEN1 | \ + D3DSTATUS_CLIPINTERSECTIONGEN2 | \ + D3DSTATUS_CLIPINTERSECTIONGEN3 | \ + D3DSTATUS_CLIPINTERSECTIONGEN4 | \ + D3DSTATUS_CLIPINTERSECTIONGEN5 \ + ) + +#define D3DSTATUS_DEFAULT ( \ + D3DSTATUS_CLIPINTERSECTIONALL | \ + D3DSTATUS_ZNOTVISIBLE) + + +/* + * Options for direct transform calls + */ +#define D3DTRANSFORM_CLIPPED 0x00000001l +#define D3DTRANSFORM_UNCLIPPED 0x00000002l + +typedef struct _D3DTRANSFORMDATA { + DWORD dwSize; + LPVOID lpIn; /* Input vertices */ + DWORD dwInSize; /* Stride of input vertices */ + LPVOID lpOut; /* Output vertices */ + DWORD dwOutSize; /* Stride of output vertices */ + LPD3DHVERTEX lpHOut; /* Output homogeneous vertices */ + DWORD dwClip; /* Clipping hint */ + DWORD dwClipIntersection; + DWORD dwClipUnion; /* Union of all clip flags */ + D3DRECT drExtent; /* Extent of transformed vertices */ +} D3DTRANSFORMDATA, *LPD3DTRANSFORMDATA; + +/* + * Structure defining position and direction properties for lighting. + */ +typedef struct _D3DLIGHTINGELEMENT { + D3DVECTOR dvPosition; /* Lightable point in model space */ + D3DVECTOR dvNormal; /* Normalised unit vector */ +} D3DLIGHTINGELEMENT, *LPD3DLIGHTINGELEMENT; + +/* + * Structure defining material properties for lighting. + */ +typedef struct _D3DMATERIAL { + DWORD dwSize; + union { + D3DCOLORVALUE diffuse; /* Diffuse color RGBA */ + D3DCOLORVALUE dcvDiffuse; + }; + union { + D3DCOLORVALUE ambient; /* Ambient color RGB */ + D3DCOLORVALUE dcvAmbient; + }; + union { + D3DCOLORVALUE specular; /* Specular 'shininess' */ + D3DCOLORVALUE dcvSpecular; + }; + union { + D3DCOLORVALUE emissive; /* Emissive color RGB */ + D3DCOLORVALUE dcvEmissive; + }; + union { + D3DVALUE power; /* Sharpness if specular highlight */ + D3DVALUE dvPower; + }; + D3DTEXTUREHANDLE hTexture; /* Handle to texture map */ + DWORD dwRampSize; +} D3DMATERIAL, *LPD3DMATERIAL; + +#if(DIRECT3D_VERSION >= 0x0700) + +typedef struct _D3DMATERIAL7 { + union { + D3DCOLORVALUE diffuse; /* Diffuse color RGBA */ + D3DCOLORVALUE dcvDiffuse; + }; + union { + D3DCOLORVALUE ambient; /* Ambient color RGB */ + D3DCOLORVALUE dcvAmbient; + }; + union { + D3DCOLORVALUE specular; /* Specular 'shininess' */ + D3DCOLORVALUE dcvSpecular; + }; + union { + D3DCOLORVALUE emissive; /* Emissive color RGB */ + D3DCOLORVALUE dcvEmissive; + }; + union { + D3DVALUE power; /* Sharpness if specular highlight */ + D3DVALUE dvPower; + }; +} D3DMATERIAL7, *LPD3DMATERIAL7; + +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#if(DIRECT3D_VERSION < 0x0800) + +typedef enum _D3DLIGHTTYPE { + D3DLIGHT_POINT = 1, + D3DLIGHT_SPOT = 2, + D3DLIGHT_DIRECTIONAL = 3, +// Note: The following light type (D3DLIGHT_PARALLELPOINT) +// is no longer supported from D3D for DX7 onwards. + D3DLIGHT_PARALLELPOINT = 4, +#if(DIRECT3D_VERSION < 0x0500) // For backward compatible headers + D3DLIGHT_GLSPOT = 5, +#endif + D3DLIGHT_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +} D3DLIGHTTYPE; + +#else +#define D3DLIGHT_PARALLELPOINT (D3DLIGHTTYPE)4 +#define D3DLIGHT_GLSPOT (D3DLIGHTTYPE)5 + +#endif //(DIRECT3D_VERSION < 0x0800) + +/* + * Structure defining a light source and its properties. + */ +typedef struct _D3DLIGHT { + DWORD dwSize; + D3DLIGHTTYPE dltType; /* Type of light source */ + D3DCOLORVALUE dcvColor; /* Color of light */ + D3DVECTOR dvPosition; /* Position in world space */ + D3DVECTOR dvDirection; /* Direction in world space */ + D3DVALUE dvRange; /* Cutoff range */ + D3DVALUE dvFalloff; /* Falloff */ + D3DVALUE dvAttenuation0; /* Constant attenuation */ + D3DVALUE dvAttenuation1; /* Linear attenuation */ + D3DVALUE dvAttenuation2; /* Quadratic attenuation */ + D3DVALUE dvTheta; /* Inner angle of spotlight cone */ + D3DVALUE dvPhi; /* Outer angle of spotlight cone */ +} D3DLIGHT, *LPD3DLIGHT; + +#if(DIRECT3D_VERSION >= 0x0700) + +typedef struct _D3DLIGHT7 { + D3DLIGHTTYPE dltType; /* Type of light source */ + D3DCOLORVALUE dcvDiffuse; /* Diffuse color of light */ + D3DCOLORVALUE dcvSpecular; /* Specular color of light */ + D3DCOLORVALUE dcvAmbient; /* Ambient color of light */ + D3DVECTOR dvPosition; /* Position in world space */ + D3DVECTOR dvDirection; /* Direction in world space */ + D3DVALUE dvRange; /* Cutoff range */ + D3DVALUE dvFalloff; /* Falloff */ + D3DVALUE dvAttenuation0; /* Constant attenuation */ + D3DVALUE dvAttenuation1; /* Linear attenuation */ + D3DVALUE dvAttenuation2; /* Quadratic attenuation */ + D3DVALUE dvTheta; /* Inner angle of spotlight cone */ + D3DVALUE dvPhi; /* Outer angle of spotlight cone */ +} D3DLIGHT7, *LPD3DLIGHT7; + +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#if(DIRECT3D_VERSION >= 0x0500) +/* + * Structure defining a light source and its properties. + */ + +/* flags bits */ +#define D3DLIGHT_ACTIVE 0x00000001 +#define D3DLIGHT_NO_SPECULAR 0x00000002 +#define D3DLIGHT_ALL (D3DLIGHT_ACTIVE | D3DLIGHT_NO_SPECULAR) + +/* maximum valid light range */ +#define D3DLIGHT_RANGE_MAX ((float)sqrt(FLT_MAX)) + +typedef struct _D3DLIGHT2 { + DWORD dwSize; + D3DLIGHTTYPE dltType; /* Type of light source */ + D3DCOLORVALUE dcvColor; /* Color of light */ + D3DVECTOR dvPosition; /* Position in world space */ + D3DVECTOR dvDirection; /* Direction in world space */ + D3DVALUE dvRange; /* Cutoff range */ + D3DVALUE dvFalloff; /* Falloff */ + D3DVALUE dvAttenuation0; /* Constant attenuation */ + D3DVALUE dvAttenuation1; /* Linear attenuation */ + D3DVALUE dvAttenuation2; /* Quadratic attenuation */ + D3DVALUE dvTheta; /* Inner angle of spotlight cone */ + D3DVALUE dvPhi; /* Outer angle of spotlight cone */ + DWORD dwFlags; +} D3DLIGHT2, *LPD3DLIGHT2; + +#endif /* DIRECT3D_VERSION >= 0x0500 */ +typedef struct _D3DLIGHTDATA { + DWORD dwSize; + LPD3DLIGHTINGELEMENT lpIn; /* Input positions and normals */ + DWORD dwInSize; /* Stride of input elements */ + LPD3DTLVERTEX lpOut; /* Output colors */ + DWORD dwOutSize; /* Stride of output colors */ +} D3DLIGHTDATA, *LPD3DLIGHTDATA; + +#if(DIRECT3D_VERSION >= 0x0500) +/* + * Before DX5, these values were in an enum called + * D3DCOLORMODEL. This was not correct, since they are + * bit flags. A driver can surface either or both flags + * in the dcmColorModel member of D3DDEVICEDESC. + */ +#define D3DCOLOR_MONO 1 +#define D3DCOLOR_RGB 2 + +typedef DWORD D3DCOLORMODEL; +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +/* + * Options for clearing + */ +#define D3DCLEAR_TARGET 0x00000001l /* Clear target surface */ +#define D3DCLEAR_ZBUFFER 0x00000002l /* Clear target z buffer */ +#if(DIRECT3D_VERSION >= 0x0600) +#define D3DCLEAR_STENCIL 0x00000004l /* Clear stencil planes */ +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +/* + * Execute buffers are allocated via Direct3D. These buffers may then + * be filled by the application with instructions to execute along with + * vertex data. + */ + +/* + * Supported op codes for execute instructions. + */ +typedef enum _D3DOPCODE { + D3DOP_POINT = 1, + D3DOP_LINE = 2, + D3DOP_TRIANGLE = 3, + D3DOP_MATRIXLOAD = 4, + D3DOP_MATRIXMULTIPLY = 5, + D3DOP_STATETRANSFORM = 6, + D3DOP_STATELIGHT = 7, + D3DOP_STATERENDER = 8, + D3DOP_PROCESSVERTICES = 9, + D3DOP_TEXTURELOAD = 10, + D3DOP_EXIT = 11, + D3DOP_BRANCHFORWARD = 12, + D3DOP_SPAN = 13, + D3DOP_SETSTATUS = 14, +#if(DIRECT3D_VERSION >= 0x0500) + D3DOP_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DOPCODE; + +typedef struct _D3DINSTRUCTION { + BYTE bOpcode; /* Instruction opcode */ + BYTE bSize; /* Size of each instruction data unit */ + WORD wCount; /* Count of instruction data units to follow */ +} D3DINSTRUCTION, *LPD3DINSTRUCTION; + +/* + * Structure for texture loads + */ +typedef struct _D3DTEXTURELOAD { + D3DTEXTUREHANDLE hDestTexture; + D3DTEXTUREHANDLE hSrcTexture; +} D3DTEXTURELOAD, *LPD3DTEXTURELOAD; + +/* + * Structure for picking + */ +typedef struct _D3DPICKRECORD { + BYTE bOpcode; + BYTE bPad; + DWORD dwOffset; + D3DVALUE dvZ; +} D3DPICKRECORD, *LPD3DPICKRECORD; + +/* + * The following defines the rendering states which can be set in the + * execute buffer. + */ + +#if(DIRECT3D_VERSION < 0x0800) + +typedef enum _D3DSHADEMODE { + D3DSHADE_FLAT = 1, + D3DSHADE_GOURAUD = 2, + D3DSHADE_PHONG = 3, +#if(DIRECT3D_VERSION >= 0x0500) + D3DSHADE_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DSHADEMODE; + +typedef enum _D3DFILLMODE { + D3DFILL_POINT = 1, + D3DFILL_WIREFRAME = 2, + D3DFILL_SOLID = 3, +#if(DIRECT3D_VERSION >= 0x0500) + D3DFILL_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DFILLMODE; + +typedef struct _D3DLINEPATTERN { + WORD wRepeatFactor; + WORD wLinePattern; +} D3DLINEPATTERN; + +#endif //(DIRECT3D_VERSION < 0x0800) + +typedef enum _D3DTEXTUREFILTER { + D3DFILTER_NEAREST = 1, + D3DFILTER_LINEAR = 2, + D3DFILTER_MIPNEAREST = 3, + D3DFILTER_MIPLINEAR = 4, + D3DFILTER_LINEARMIPNEAREST = 5, + D3DFILTER_LINEARMIPLINEAR = 6, +#if(DIRECT3D_VERSION >= 0x0500) + D3DFILTER_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DTEXTUREFILTER; + +#if(DIRECT3D_VERSION < 0x0800) + +typedef enum _D3DBLEND { + D3DBLEND_ZERO = 1, + D3DBLEND_ONE = 2, + D3DBLEND_SRCCOLOR = 3, + D3DBLEND_INVSRCCOLOR = 4, + D3DBLEND_SRCALPHA = 5, + D3DBLEND_INVSRCALPHA = 6, + D3DBLEND_DESTALPHA = 7, + D3DBLEND_INVDESTALPHA = 8, + D3DBLEND_DESTCOLOR = 9, + D3DBLEND_INVDESTCOLOR = 10, + D3DBLEND_SRCALPHASAT = 11, + D3DBLEND_BOTHSRCALPHA = 12, + D3DBLEND_BOTHINVSRCALPHA = 13, +#if(DIRECT3D_VERSION >= 0x0500) + D3DBLEND_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DBLEND; + +#endif //(DIRECT3D_VERSION < 0x0800) + +typedef enum _D3DTEXTUREBLEND { + D3DTBLEND_DECAL = 1, + D3DTBLEND_MODULATE = 2, + D3DTBLEND_DECALALPHA = 3, + D3DTBLEND_MODULATEALPHA = 4, + D3DTBLEND_DECALMASK = 5, + D3DTBLEND_MODULATEMASK = 6, + D3DTBLEND_COPY = 7, +#if(DIRECT3D_VERSION >= 0x0500) + D3DTBLEND_ADD = 8, + D3DTBLEND_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DTEXTUREBLEND; + +#if(DIRECT3D_VERSION < 0x0800) + +typedef enum _D3DTEXTUREADDRESS { + D3DTADDRESS_WRAP = 1, + D3DTADDRESS_MIRROR = 2, + D3DTADDRESS_CLAMP = 3, +#if(DIRECT3D_VERSION >= 0x0500) + D3DTADDRESS_BORDER = 4, + D3DTADDRESS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DTEXTUREADDRESS; + +typedef enum _D3DCULL { + D3DCULL_NONE = 1, + D3DCULL_CW = 2, + D3DCULL_CCW = 3, +#if(DIRECT3D_VERSION >= 0x0500) + D3DCULL_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DCULL; + +typedef enum _D3DCMPFUNC { + D3DCMP_NEVER = 1, + D3DCMP_LESS = 2, + D3DCMP_EQUAL = 3, + D3DCMP_LESSEQUAL = 4, + D3DCMP_GREATER = 5, + D3DCMP_NOTEQUAL = 6, + D3DCMP_GREATEREQUAL = 7, + D3DCMP_ALWAYS = 8, +#if(DIRECT3D_VERSION >= 0x0500) + D3DCMP_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DCMPFUNC; + +#if(DIRECT3D_VERSION >= 0x0600) +typedef enum _D3DSTENCILOP { + D3DSTENCILOP_KEEP = 1, + D3DSTENCILOP_ZERO = 2, + D3DSTENCILOP_REPLACE = 3, + D3DSTENCILOP_INCRSAT = 4, + D3DSTENCILOP_DECRSAT = 5, + D3DSTENCILOP_INVERT = 6, + D3DSTENCILOP_INCR = 7, + D3DSTENCILOP_DECR = 8, + D3DSTENCILOP_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +} D3DSTENCILOP; +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +typedef enum _D3DFOGMODE { + D3DFOG_NONE = 0, + D3DFOG_EXP = 1, + D3DFOG_EXP2 = 2, +#if(DIRECT3D_VERSION >= 0x0500) + D3DFOG_LINEAR = 3, + D3DFOG_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DFOGMODE; + +#if(DIRECT3D_VERSION >= 0x0600) +typedef enum _D3DZBUFFERTYPE { + D3DZB_FALSE = 0, + D3DZB_TRUE = 1, // Z buffering + D3DZB_USEW = 2, // W buffering + D3DZB_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +} D3DZBUFFERTYPE; +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#endif //(DIRECT3D_VERSION < 0x0800) + +#if(DIRECT3D_VERSION >= 0x0500) +typedef enum _D3DANTIALIASMODE { + D3DANTIALIAS_NONE = 0, + D3DANTIALIAS_SORTDEPENDENT = 1, + D3DANTIALIAS_SORTINDEPENDENT = 2, + D3DANTIALIAS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +} D3DANTIALIASMODE; + +// Vertex types supported by Direct3D +typedef enum _D3DVERTEXTYPE { + D3DVT_VERTEX = 1, + D3DVT_LVERTEX = 2, + D3DVT_TLVERTEX = 3, + D3DVT_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +} D3DVERTEXTYPE; + +#if(DIRECT3D_VERSION < 0x0800) + +// Primitives supported by draw-primitive API +typedef enum _D3DPRIMITIVETYPE { + D3DPT_POINTLIST = 1, + D3DPT_LINELIST = 2, + D3DPT_LINESTRIP = 3, + D3DPT_TRIANGLELIST = 4, + D3DPT_TRIANGLESTRIP = 5, + D3DPT_TRIANGLEFAN = 6, + D3DPT_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +} D3DPRIMITIVETYPE; + +#endif //(DIRECT3D_VERSION < 0x0800) + +#endif /* DIRECT3D_VERSION >= 0x0500 */ +/* + * Amount to add to a state to generate the override for that state. + */ +#define D3DSTATE_OVERRIDE_BIAS 256 + +/* + * A state which sets the override flag for the specified state type. + */ +#define D3DSTATE_OVERRIDE(type) (D3DRENDERSTATETYPE)(((DWORD) (type) + D3DSTATE_OVERRIDE_BIAS)) + +#if(DIRECT3D_VERSION < 0x0800) + +typedef enum _D3DTRANSFORMSTATETYPE { + D3DTRANSFORMSTATE_WORLD = 1, + D3DTRANSFORMSTATE_VIEW = 2, + D3DTRANSFORMSTATE_PROJECTION = 3, +#if(DIRECT3D_VERSION >= 0x0700) + D3DTRANSFORMSTATE_WORLD1 = 4, // 2nd matrix to blend + D3DTRANSFORMSTATE_WORLD2 = 5, // 3rd matrix to blend + D3DTRANSFORMSTATE_WORLD3 = 6, // 4th matrix to blend + D3DTRANSFORMSTATE_TEXTURE0 = 16, + D3DTRANSFORMSTATE_TEXTURE1 = 17, + D3DTRANSFORMSTATE_TEXTURE2 = 18, + D3DTRANSFORMSTATE_TEXTURE3 = 19, + D3DTRANSFORMSTATE_TEXTURE4 = 20, + D3DTRANSFORMSTATE_TEXTURE5 = 21, + D3DTRANSFORMSTATE_TEXTURE6 = 22, + D3DTRANSFORMSTATE_TEXTURE7 = 23, +#endif /* DIRECT3D_VERSION >= 0x0700 */ +#if(DIRECT3D_VERSION >= 0x0500) + D3DTRANSFORMSTATE_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DTRANSFORMSTATETYPE; + +#else + +// +// legacy transform state names +// +#define D3DTRANSFORMSTATE_WORLD (D3DTRANSFORMSTATETYPE)1 +#define D3DTRANSFORMSTATE_VIEW (D3DTRANSFORMSTATETYPE)2 +#define D3DTRANSFORMSTATE_PROJECTION (D3DTRANSFORMSTATETYPE)3 +#define D3DTRANSFORMSTATE_WORLD1 (D3DTRANSFORMSTATETYPE)4 +#define D3DTRANSFORMSTATE_WORLD2 (D3DTRANSFORMSTATETYPE)5 +#define D3DTRANSFORMSTATE_WORLD3 (D3DTRANSFORMSTATETYPE)6 +#define D3DTRANSFORMSTATE_TEXTURE0 (D3DTRANSFORMSTATETYPE)16 +#define D3DTRANSFORMSTATE_TEXTURE1 (D3DTRANSFORMSTATETYPE)17 +#define D3DTRANSFORMSTATE_TEXTURE2 (D3DTRANSFORMSTATETYPE)18 +#define D3DTRANSFORMSTATE_TEXTURE3 (D3DTRANSFORMSTATETYPE)19 +#define D3DTRANSFORMSTATE_TEXTURE4 (D3DTRANSFORMSTATETYPE)20 +#define D3DTRANSFORMSTATE_TEXTURE5 (D3DTRANSFORMSTATETYPE)21 +#define D3DTRANSFORMSTATE_TEXTURE6 (D3DTRANSFORMSTATETYPE)22 +#define D3DTRANSFORMSTATE_TEXTURE7 (D3DTRANSFORMSTATETYPE)23 + +#endif //(DIRECT3D_VERSION < 0x0800) + +typedef enum _D3DLIGHTSTATETYPE { + D3DLIGHTSTATE_MATERIAL = 1, + D3DLIGHTSTATE_AMBIENT = 2, + D3DLIGHTSTATE_COLORMODEL = 3, + D3DLIGHTSTATE_FOGMODE = 4, + D3DLIGHTSTATE_FOGSTART = 5, + D3DLIGHTSTATE_FOGEND = 6, + D3DLIGHTSTATE_FOGDENSITY = 7, +#if(DIRECT3D_VERSION >= 0x0600) + D3DLIGHTSTATE_COLORVERTEX = 8, +#endif /* DIRECT3D_VERSION >= 0x0600 */ +#if(DIRECT3D_VERSION >= 0x0500) + D3DLIGHTSTATE_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DLIGHTSTATETYPE; + +#if(DIRECT3D_VERSION < 0x0800) + +typedef enum _D3DRENDERSTATETYPE { + D3DRENDERSTATE_ANTIALIAS = 2, /* D3DANTIALIASMODE */ + D3DRENDERSTATE_TEXTUREPERSPECTIVE = 4, /* TRUE for perspective correction */ + D3DRENDERSTATE_ZENABLE = 7, /* D3DZBUFFERTYPE (or TRUE/FALSE for legacy) */ + D3DRENDERSTATE_FILLMODE = 8, /* D3DFILL_MODE */ + D3DRENDERSTATE_SHADEMODE = 9, /* D3DSHADEMODE */ + D3DRENDERSTATE_LINEPATTERN = 10, /* D3DLINEPATTERN */ + D3DRENDERSTATE_ZWRITEENABLE = 14, /* TRUE to enable z writes */ + D3DRENDERSTATE_ALPHATESTENABLE = 15, /* TRUE to enable alpha tests */ + D3DRENDERSTATE_LASTPIXEL = 16, /* TRUE for last-pixel on lines */ + D3DRENDERSTATE_SRCBLEND = 19, /* D3DBLEND */ + D3DRENDERSTATE_DESTBLEND = 20, /* D3DBLEND */ + D3DRENDERSTATE_CULLMODE = 22, /* D3DCULL */ + D3DRENDERSTATE_ZFUNC = 23, /* D3DCMPFUNC */ + D3DRENDERSTATE_ALPHAREF = 24, /* D3DFIXED */ + D3DRENDERSTATE_ALPHAFUNC = 25, /* D3DCMPFUNC */ + D3DRENDERSTATE_DITHERENABLE = 26, /* TRUE to enable dithering */ +#if(DIRECT3D_VERSION >= 0x0500) + D3DRENDERSTATE_ALPHABLENDENABLE = 27, /* TRUE to enable alpha blending */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ + D3DRENDERSTATE_FOGENABLE = 28, /* TRUE to enable fog blending */ + D3DRENDERSTATE_SPECULARENABLE = 29, /* TRUE to enable specular */ + D3DRENDERSTATE_ZVISIBLE = 30, /* TRUE to enable z checking */ + D3DRENDERSTATE_STIPPLEDALPHA = 33, /* TRUE to enable stippled alpha (RGB device only) */ + D3DRENDERSTATE_FOGCOLOR = 34, /* D3DCOLOR */ + D3DRENDERSTATE_FOGTABLEMODE = 35, /* D3DFOGMODE */ +#if(DIRECT3D_VERSION >= 0x0700) + D3DRENDERSTATE_FOGSTART = 36, /* Fog start (for both vertex and pixel fog) */ + D3DRENDERSTATE_FOGEND = 37, /* Fog end */ + D3DRENDERSTATE_FOGDENSITY = 38, /* Fog density */ +#endif /* DIRECT3D_VERSION >= 0x0700 */ +#if(DIRECT3D_VERSION >= 0x0500) + D3DRENDERSTATE_EDGEANTIALIAS = 40, /* TRUE to enable edge antialiasing */ + D3DRENDERSTATE_COLORKEYENABLE = 41, /* TRUE to enable source colorkeyed textures */ + D3DRENDERSTATE_ZBIAS = 47, /* LONG Z bias */ + D3DRENDERSTATE_RANGEFOGENABLE = 48, /* Enables range-based fog */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) + D3DRENDERSTATE_STENCILENABLE = 52, /* BOOL enable/disable stenciling */ + D3DRENDERSTATE_STENCILFAIL = 53, /* D3DSTENCILOP to do if stencil test fails */ + D3DRENDERSTATE_STENCILZFAIL = 54, /* D3DSTENCILOP to do if stencil test passes and Z test fails */ + D3DRENDERSTATE_STENCILPASS = 55, /* D3DSTENCILOP to do if both stencil and Z tests pass */ + D3DRENDERSTATE_STENCILFUNC = 56, /* D3DCMPFUNC fn. Stencil Test passes if ((ref & mask) stencilfn (stencil & mask)) is true */ + D3DRENDERSTATE_STENCILREF = 57, /* Reference value used in stencil test */ + D3DRENDERSTATE_STENCILMASK = 58, /* Mask value used in stencil test */ + D3DRENDERSTATE_STENCILWRITEMASK = 59, /* Write mask applied to values written to stencil buffer */ + D3DRENDERSTATE_TEXTUREFACTOR = 60, /* D3DCOLOR used for multi-texture blend */ +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#if(DIRECT3D_VERSION >= 0x0600) + + /* + * 128 values [128, 255] are reserved for texture coordinate wrap flags. + * These are constructed with the D3DWRAP_U and D3DWRAP_V macros. Using + * a flags word preserves forward compatibility with texture coordinates + * that are >2D. + */ + D3DRENDERSTATE_WRAP0 = 128, /* wrap for 1st texture coord. set */ + D3DRENDERSTATE_WRAP1 = 129, /* wrap for 2nd texture coord. set */ + D3DRENDERSTATE_WRAP2 = 130, /* wrap for 3rd texture coord. set */ + D3DRENDERSTATE_WRAP3 = 131, /* wrap for 4th texture coord. set */ + D3DRENDERSTATE_WRAP4 = 132, /* wrap for 5th texture coord. set */ + D3DRENDERSTATE_WRAP5 = 133, /* wrap for 6th texture coord. set */ + D3DRENDERSTATE_WRAP6 = 134, /* wrap for 7th texture coord. set */ + D3DRENDERSTATE_WRAP7 = 135, /* wrap for 8th texture coord. set */ +#endif /* DIRECT3D_VERSION >= 0x0600 */ +#if(DIRECT3D_VERSION >= 0x0700) + D3DRENDERSTATE_CLIPPING = 136, + D3DRENDERSTATE_LIGHTING = 137, + D3DRENDERSTATE_EXTENTS = 138, + D3DRENDERSTATE_AMBIENT = 139, + D3DRENDERSTATE_FOGVERTEXMODE = 140, + D3DRENDERSTATE_COLORVERTEX = 141, + D3DRENDERSTATE_LOCALVIEWER = 142, + D3DRENDERSTATE_NORMALIZENORMALS = 143, + D3DRENDERSTATE_COLORKEYBLENDENABLE = 144, + D3DRENDERSTATE_DIFFUSEMATERIALSOURCE = 145, + D3DRENDERSTATE_SPECULARMATERIALSOURCE = 146, + D3DRENDERSTATE_AMBIENTMATERIALSOURCE = 147, + D3DRENDERSTATE_EMISSIVEMATERIALSOURCE = 148, + D3DRENDERSTATE_VERTEXBLEND = 151, + D3DRENDERSTATE_CLIPPLANEENABLE = 152, + +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +// +// retired renderstates - not supported for DX7 interfaces +// + D3DRENDERSTATE_TEXTUREHANDLE = 1, /* Texture handle for legacy interfaces (Texture,Texture2) */ + D3DRENDERSTATE_TEXTUREADDRESS = 3, /* D3DTEXTUREADDRESS */ + D3DRENDERSTATE_WRAPU = 5, /* TRUE for wrapping in u */ + D3DRENDERSTATE_WRAPV = 6, /* TRUE for wrapping in v */ + D3DRENDERSTATE_MONOENABLE = 11, /* TRUE to enable mono rasterization */ + D3DRENDERSTATE_ROP2 = 12, /* ROP2 */ + D3DRENDERSTATE_PLANEMASK = 13, /* DWORD physical plane mask */ + D3DRENDERSTATE_TEXTUREMAG = 17, /* D3DTEXTUREFILTER */ + D3DRENDERSTATE_TEXTUREMIN = 18, /* D3DTEXTUREFILTER */ + D3DRENDERSTATE_TEXTUREMAPBLEND = 21, /* D3DTEXTUREBLEND */ + D3DRENDERSTATE_SUBPIXEL = 31, /* TRUE to enable subpixel correction */ + D3DRENDERSTATE_SUBPIXELX = 32, /* TRUE to enable correction in X only */ + D3DRENDERSTATE_STIPPLEENABLE = 39, /* TRUE to enable stippling */ +#if(DIRECT3D_VERSION >= 0x0500) + D3DRENDERSTATE_BORDERCOLOR = 43, /* Border color for texturing w/border */ + D3DRENDERSTATE_TEXTUREADDRESSU = 44, /* Texture addressing mode for U coordinate */ + D3DRENDERSTATE_TEXTUREADDRESSV = 45, /* Texture addressing mode for V coordinate */ + D3DRENDERSTATE_MIPMAPLODBIAS = 46, /* D3DVALUE Mipmap LOD bias */ + D3DRENDERSTATE_ANISOTROPY = 49, /* Max. anisotropy. 1 = no anisotropy */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ + D3DRENDERSTATE_FLUSHBATCH = 50, /* Explicit flush for DP batching (DX5 Only) */ +#if(DIRECT3D_VERSION >= 0x0600) + D3DRENDERSTATE_TRANSLUCENTSORTINDEPENDENT=51, /* BOOL enable sort-independent transparency */ +#endif /* DIRECT3D_VERSION >= 0x0600 */ + D3DRENDERSTATE_STIPPLEPATTERN00 = 64, /* Stipple pattern 01... */ + D3DRENDERSTATE_STIPPLEPATTERN01 = 65, + D3DRENDERSTATE_STIPPLEPATTERN02 = 66, + D3DRENDERSTATE_STIPPLEPATTERN03 = 67, + D3DRENDERSTATE_STIPPLEPATTERN04 = 68, + D3DRENDERSTATE_STIPPLEPATTERN05 = 69, + D3DRENDERSTATE_STIPPLEPATTERN06 = 70, + D3DRENDERSTATE_STIPPLEPATTERN07 = 71, + D3DRENDERSTATE_STIPPLEPATTERN08 = 72, + D3DRENDERSTATE_STIPPLEPATTERN09 = 73, + D3DRENDERSTATE_STIPPLEPATTERN10 = 74, + D3DRENDERSTATE_STIPPLEPATTERN11 = 75, + D3DRENDERSTATE_STIPPLEPATTERN12 = 76, + D3DRENDERSTATE_STIPPLEPATTERN13 = 77, + D3DRENDERSTATE_STIPPLEPATTERN14 = 78, + D3DRENDERSTATE_STIPPLEPATTERN15 = 79, + D3DRENDERSTATE_STIPPLEPATTERN16 = 80, + D3DRENDERSTATE_STIPPLEPATTERN17 = 81, + D3DRENDERSTATE_STIPPLEPATTERN18 = 82, + D3DRENDERSTATE_STIPPLEPATTERN19 = 83, + D3DRENDERSTATE_STIPPLEPATTERN20 = 84, + D3DRENDERSTATE_STIPPLEPATTERN21 = 85, + D3DRENDERSTATE_STIPPLEPATTERN22 = 86, + D3DRENDERSTATE_STIPPLEPATTERN23 = 87, + D3DRENDERSTATE_STIPPLEPATTERN24 = 88, + D3DRENDERSTATE_STIPPLEPATTERN25 = 89, + D3DRENDERSTATE_STIPPLEPATTERN26 = 90, + D3DRENDERSTATE_STIPPLEPATTERN27 = 91, + D3DRENDERSTATE_STIPPLEPATTERN28 = 92, + D3DRENDERSTATE_STIPPLEPATTERN29 = 93, + D3DRENDERSTATE_STIPPLEPATTERN30 = 94, + D3DRENDERSTATE_STIPPLEPATTERN31 = 95, + +// +// retired renderstate names - the values are still used under new naming conventions +// + D3DRENDERSTATE_FOGTABLESTART = 36, /* Fog table start */ + D3DRENDERSTATE_FOGTABLEEND = 37, /* Fog table end */ + D3DRENDERSTATE_FOGTABLEDENSITY = 38, /* Fog table density */ + +#if(DIRECT3D_VERSION >= 0x0500) + D3DRENDERSTATE_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +#endif /* DIRECT3D_VERSION >= 0x0500 */ +} D3DRENDERSTATETYPE; + +#else + +// +// legacy renderstate names +// +#define D3DRENDERSTATE_TEXTUREPERSPECTIVE (D3DRENDERSTATETYPE)4 +#define D3DRENDERSTATE_ZENABLE (D3DRENDERSTATETYPE)7 +#define D3DRENDERSTATE_FILLMODE (D3DRENDERSTATETYPE)8 +#define D3DRENDERSTATE_SHADEMODE (D3DRENDERSTATETYPE)9 +#define D3DRENDERSTATE_LINEPATTERN (D3DRENDERSTATETYPE)10 +#define D3DRENDERSTATE_ZWRITEENABLE (D3DRENDERSTATETYPE)14 +#define D3DRENDERSTATE_ALPHATESTENABLE (D3DRENDERSTATETYPE)15 +#define D3DRENDERSTATE_LASTPIXEL (D3DRENDERSTATETYPE)16 +#define D3DRENDERSTATE_SRCBLEND (D3DRENDERSTATETYPE)19 +#define D3DRENDERSTATE_DESTBLEND (D3DRENDERSTATETYPE)20 +#define D3DRENDERSTATE_CULLMODE (D3DRENDERSTATETYPE)22 +#define D3DRENDERSTATE_ZFUNC (D3DRENDERSTATETYPE)23 +#define D3DRENDERSTATE_ALPHAREF (D3DRENDERSTATETYPE)24 +#define D3DRENDERSTATE_ALPHAFUNC (D3DRENDERSTATETYPE)25 +#define D3DRENDERSTATE_DITHERENABLE (D3DRENDERSTATETYPE)26 +#define D3DRENDERSTATE_ALPHABLENDENABLE (D3DRENDERSTATETYPE)27 +#define D3DRENDERSTATE_FOGENABLE (D3DRENDERSTATETYPE)28 +#define D3DRENDERSTATE_SPECULARENABLE (D3DRENDERSTATETYPE)29 +#define D3DRENDERSTATE_ZVISIBLE (D3DRENDERSTATETYPE)30 +#define D3DRENDERSTATE_STIPPLEDALPHA (D3DRENDERSTATETYPE)33 +#define D3DRENDERSTATE_FOGCOLOR (D3DRENDERSTATETYPE)34 +#define D3DRENDERSTATE_FOGTABLEMODE (D3DRENDERSTATETYPE)35 +#define D3DRENDERSTATE_FOGSTART (D3DRENDERSTATETYPE)36 +#define D3DRENDERSTATE_FOGEND (D3DRENDERSTATETYPE)37 +#define D3DRENDERSTATE_FOGDENSITY (D3DRENDERSTATETYPE)38 +#define D3DRENDERSTATE_EDGEANTIALIAS (D3DRENDERSTATETYPE)40 +#define D3DRENDERSTATE_ZBIAS (D3DRENDERSTATETYPE)47 +#define D3DRENDERSTATE_RANGEFOGENABLE (D3DRENDERSTATETYPE)48 +#define D3DRENDERSTATE_STENCILENABLE (D3DRENDERSTATETYPE)52 +#define D3DRENDERSTATE_STENCILFAIL (D3DRENDERSTATETYPE)53 +#define D3DRENDERSTATE_STENCILZFAIL (D3DRENDERSTATETYPE)54 +#define D3DRENDERSTATE_STENCILPASS (D3DRENDERSTATETYPE)55 +#define D3DRENDERSTATE_STENCILFUNC (D3DRENDERSTATETYPE)56 +#define D3DRENDERSTATE_STENCILREF (D3DRENDERSTATETYPE)57 +#define D3DRENDERSTATE_STENCILMASK (D3DRENDERSTATETYPE)58 +#define D3DRENDERSTATE_STENCILWRITEMASK (D3DRENDERSTATETYPE)59 +#define D3DRENDERSTATE_TEXTUREFACTOR (D3DRENDERSTATETYPE)60 +#define D3DRENDERSTATE_WRAP0 (D3DRENDERSTATETYPE)128 +#define D3DRENDERSTATE_WRAP1 (D3DRENDERSTATETYPE)129 +#define D3DRENDERSTATE_WRAP2 (D3DRENDERSTATETYPE)130 +#define D3DRENDERSTATE_WRAP3 (D3DRENDERSTATETYPE)131 +#define D3DRENDERSTATE_WRAP4 (D3DRENDERSTATETYPE)132 +#define D3DRENDERSTATE_WRAP5 (D3DRENDERSTATETYPE)133 +#define D3DRENDERSTATE_WRAP6 (D3DRENDERSTATETYPE)134 +#define D3DRENDERSTATE_WRAP7 (D3DRENDERSTATETYPE)135 + +#define D3DRENDERSTATE_CLIPPING (D3DRENDERSTATETYPE)136 +#define D3DRENDERSTATE_LIGHTING (D3DRENDERSTATETYPE)137 +#define D3DRENDERSTATE_EXTENTS (D3DRENDERSTATETYPE)138 +#define D3DRENDERSTATE_AMBIENT (D3DRENDERSTATETYPE)139 +#define D3DRENDERSTATE_FOGVERTEXMODE (D3DRENDERSTATETYPE)140 +#define D3DRENDERSTATE_COLORVERTEX (D3DRENDERSTATETYPE)141 +#define D3DRENDERSTATE_LOCALVIEWER (D3DRENDERSTATETYPE)142 +#define D3DRENDERSTATE_NORMALIZENORMALS (D3DRENDERSTATETYPE)143 +#define D3DRENDERSTATE_COLORKEYBLENDENABLE (D3DRENDERSTATETYPE)144 +#define D3DRENDERSTATE_DIFFUSEMATERIALSOURCE (D3DRENDERSTATETYPE)145 +#define D3DRENDERSTATE_SPECULARMATERIALSOURCE (D3DRENDERSTATETYPE)146 +#define D3DRENDERSTATE_AMBIENTMATERIALSOURCE (D3DRENDERSTATETYPE)147 +#define D3DRENDERSTATE_EMISSIVEMATERIALSOURCE (D3DRENDERSTATETYPE)148 +#define D3DRENDERSTATE_VERTEXBLEND (D3DRENDERSTATETYPE)151 +#define D3DRENDERSTATE_CLIPPLANEENABLE (D3DRENDERSTATETYPE)152 + +// +// retired renderstates - not supported for DX7 interfaces +// +#define D3DRENDERSTATE_TEXTUREHANDLE (D3DRENDERSTATETYPE)1 +#define D3DRENDERSTATE_ANTIALIAS (D3DRENDERSTATETYPE)2 +#define D3DRENDERSTATE_TEXTUREADDRESS (D3DRENDERSTATETYPE)3 +#define D3DRENDERSTATE_WRAPU (D3DRENDERSTATETYPE)5 +#define D3DRENDERSTATE_WRAPV (D3DRENDERSTATETYPE)6 +#define D3DRENDERSTATE_MONOENABLE (D3DRENDERSTATETYPE)11 +#define D3DRENDERSTATE_ROP2 (D3DRENDERSTATETYPE)12 +#define D3DRENDERSTATE_PLANEMASK (D3DRENDERSTATETYPE)13 +#define D3DRENDERSTATE_TEXTUREMAG (D3DRENDERSTATETYPE)17 +#define D3DRENDERSTATE_TEXTUREMIN (D3DRENDERSTATETYPE)18 +#define D3DRENDERSTATE_TEXTUREMAPBLEND (D3DRENDERSTATETYPE)21 +#define D3DRENDERSTATE_SUBPIXEL (D3DRENDERSTATETYPE)31 +#define D3DRENDERSTATE_SUBPIXELX (D3DRENDERSTATETYPE)32 +#define D3DRENDERSTATE_STIPPLEENABLE (D3DRENDERSTATETYPE)39 +#define D3DRENDERSTATE_OLDALPHABLENDENABLE (D3DRENDERSTATETYPE)42 +#define D3DRENDERSTATE_BORDERCOLOR (D3DRENDERSTATETYPE)43 +#define D3DRENDERSTATE_TEXTUREADDRESSU (D3DRENDERSTATETYPE)44 +#define D3DRENDERSTATE_TEXTUREADDRESSV (D3DRENDERSTATETYPE)45 +#define D3DRENDERSTATE_MIPMAPLODBIAS (D3DRENDERSTATETYPE)46 +#define D3DRENDERSTATE_ANISOTROPY (D3DRENDERSTATETYPE)49 +#define D3DRENDERSTATE_FLUSHBATCH (D3DRENDERSTATETYPE)50 +#define D3DRENDERSTATE_TRANSLUCENTSORTINDEPENDENT (D3DRENDERSTATETYPE)51 +#define D3DRENDERSTATE_STIPPLEPATTERN00 (D3DRENDERSTATETYPE)64 +#define D3DRENDERSTATE_STIPPLEPATTERN01 (D3DRENDERSTATETYPE)65 +#define D3DRENDERSTATE_STIPPLEPATTERN02 (D3DRENDERSTATETYPE)66 +#define D3DRENDERSTATE_STIPPLEPATTERN03 (D3DRENDERSTATETYPE)67 +#define D3DRENDERSTATE_STIPPLEPATTERN04 (D3DRENDERSTATETYPE)68 +#define D3DRENDERSTATE_STIPPLEPATTERN05 (D3DRENDERSTATETYPE)69 +#define D3DRENDERSTATE_STIPPLEPATTERN06 (D3DRENDERSTATETYPE)70 +#define D3DRENDERSTATE_STIPPLEPATTERN07 (D3DRENDERSTATETYPE)71 +#define D3DRENDERSTATE_STIPPLEPATTERN08 (D3DRENDERSTATETYPE)72 +#define D3DRENDERSTATE_STIPPLEPATTERN09 (D3DRENDERSTATETYPE)73 +#define D3DRENDERSTATE_STIPPLEPATTERN10 (D3DRENDERSTATETYPE)74 +#define D3DRENDERSTATE_STIPPLEPATTERN11 (D3DRENDERSTATETYPE)75 +#define D3DRENDERSTATE_STIPPLEPATTERN12 (D3DRENDERSTATETYPE)76 +#define D3DRENDERSTATE_STIPPLEPATTERN13 (D3DRENDERSTATETYPE)77 +#define D3DRENDERSTATE_STIPPLEPATTERN14 (D3DRENDERSTATETYPE)78 +#define D3DRENDERSTATE_STIPPLEPATTERN15 (D3DRENDERSTATETYPE)79 +#define D3DRENDERSTATE_STIPPLEPATTERN16 (D3DRENDERSTATETYPE)80 +#define D3DRENDERSTATE_STIPPLEPATTERN17 (D3DRENDERSTATETYPE)81 +#define D3DRENDERSTATE_STIPPLEPATTERN18 (D3DRENDERSTATETYPE)82 +#define D3DRENDERSTATE_STIPPLEPATTERN19 (D3DRENDERSTATETYPE)83 +#define D3DRENDERSTATE_STIPPLEPATTERN20 (D3DRENDERSTATETYPE)84 +#define D3DRENDERSTATE_STIPPLEPATTERN21 (D3DRENDERSTATETYPE)85 +#define D3DRENDERSTATE_STIPPLEPATTERN22 (D3DRENDERSTATETYPE)86 +#define D3DRENDERSTATE_STIPPLEPATTERN23 (D3DRENDERSTATETYPE)87 +#define D3DRENDERSTATE_STIPPLEPATTERN24 (D3DRENDERSTATETYPE)88 +#define D3DRENDERSTATE_STIPPLEPATTERN25 (D3DRENDERSTATETYPE)89 +#define D3DRENDERSTATE_STIPPLEPATTERN26 (D3DRENDERSTATETYPE)90 +#define D3DRENDERSTATE_STIPPLEPATTERN27 (D3DRENDERSTATETYPE)91 +#define D3DRENDERSTATE_STIPPLEPATTERN28 (D3DRENDERSTATETYPE)92 +#define D3DRENDERSTATE_STIPPLEPATTERN29 (D3DRENDERSTATETYPE)93 +#define D3DRENDERSTATE_STIPPLEPATTERN30 (D3DRENDERSTATETYPE)94 +#define D3DRENDERSTATE_STIPPLEPATTERN31 (D3DRENDERSTATETYPE)95 + +// +// retired renderstates - not supported for DX8 interfaces +// +#define D3DRENDERSTATE_COLORKEYENABLE (D3DRENDERSTATETYPE)41 +#define D3DRENDERSTATE_COLORKEYBLENDENABLE (D3DRENDERSTATETYPE)144 + +// +// retired renderstate names - the values are still used under new naming conventions +// +#define D3DRENDERSTATE_BLENDENABLE (D3DRENDERSTATETYPE)27 +#define D3DRENDERSTATE_FOGTABLESTART (D3DRENDERSTATETYPE)36 +#define D3DRENDERSTATE_FOGTABLEEND (D3DRENDERSTATETYPE)37 +#define D3DRENDERSTATE_FOGTABLEDENSITY (D3DRENDERSTATETYPE)38 + +#endif //(DIRECT3D_VERSION < 0x0800) + + +#if(DIRECT3D_VERSION < 0x0800) + +// Values for material source +typedef enum _D3DMATERIALCOLORSOURCE +{ + D3DMCS_MATERIAL = 0, // Color from material is used + D3DMCS_COLOR1 = 1, // Diffuse vertex color is used + D3DMCS_COLOR2 = 2, // Specular vertex color is used + D3DMCS_FORCE_DWORD = 0x7fffffff, // force 32-bit size enum +} D3DMATERIALCOLORSOURCE; + + +#if(DIRECT3D_VERSION >= 0x0500) +// For back-compatibility with legacy compilations +#define D3DRENDERSTATE_BLENDENABLE D3DRENDERSTATE_ALPHABLENDENABLE +#endif /* DIRECT3D_VERSION >= 0x0500 */ + +#if(DIRECT3D_VERSION >= 0x0600) + +// Bias to apply to the texture coordinate set to apply a wrap to. +#define D3DRENDERSTATE_WRAPBIAS 128UL + +/* Flags to construct the WRAP render states */ +#define D3DWRAP_U 0x00000001L +#define D3DWRAP_V 0x00000002L + +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#if(DIRECT3D_VERSION >= 0x0700) + +/* Flags to construct the WRAP render states for 1D thru 4D texture coordinates */ +#define D3DWRAPCOORD_0 0x00000001L // same as D3DWRAP_U +#define D3DWRAPCOORD_1 0x00000002L // same as D3DWRAP_V +#define D3DWRAPCOORD_2 0x00000004L +#define D3DWRAPCOORD_3 0x00000008L + +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#endif //(DIRECT3D_VERSION < 0x0800) + +#define D3DRENDERSTATE_STIPPLEPATTERN(y) (D3DRENDERSTATE_STIPPLEPATTERN00 + (y)) + +typedef struct _D3DSTATE { + union { +#if(DIRECT3D_VERSION < 0x0800) + D3DTRANSFORMSTATETYPE dtstTransformStateType; +#endif //(DIRECT3D_VERSION < 0x0800) + D3DLIGHTSTATETYPE dlstLightStateType; + D3DRENDERSTATETYPE drstRenderStateType; + }; + union { + DWORD dwArg[1]; + D3DVALUE dvArg[1]; + }; +} D3DSTATE, *LPD3DSTATE; + + +/* + * Operation used to load matrices + * hDstMat = hSrcMat + */ +typedef struct _D3DMATRIXLOAD { + D3DMATRIXHANDLE hDestMatrix; /* Destination matrix */ + D3DMATRIXHANDLE hSrcMatrix; /* Source matrix */ +} D3DMATRIXLOAD, *LPD3DMATRIXLOAD; + +/* + * Operation used to multiply matrices + * hDstMat = hSrcMat1 * hSrcMat2 + */ +typedef struct _D3DMATRIXMULTIPLY { + D3DMATRIXHANDLE hDestMatrix; /* Destination matrix */ + D3DMATRIXHANDLE hSrcMatrix1; /* First source matrix */ + D3DMATRIXHANDLE hSrcMatrix2; /* Second source matrix */ +} D3DMATRIXMULTIPLY, *LPD3DMATRIXMULTIPLY; + +/* + * Operation used to transform and light vertices. + */ +typedef struct _D3DPROCESSVERTICES { + DWORD dwFlags; /* Do we transform or light or just copy? */ + WORD wStart; /* Index to first vertex in source */ + WORD wDest; /* Index to first vertex in local buffer */ + DWORD dwCount; /* Number of vertices to be processed */ + DWORD dwReserved; /* Must be zero */ +} D3DPROCESSVERTICES, *LPD3DPROCESSVERTICES; + +#define D3DPROCESSVERTICES_TRANSFORMLIGHT 0x00000000L +#define D3DPROCESSVERTICES_TRANSFORM 0x00000001L +#define D3DPROCESSVERTICES_COPY 0x00000002L +#define D3DPROCESSVERTICES_OPMASK 0x00000007L + +#define D3DPROCESSVERTICES_UPDATEEXTENTS 0x00000008L +#define D3DPROCESSVERTICES_NOCOLOR 0x00000010L + + +#if(DIRECT3D_VERSION >= 0x0600) + + +#if(DIRECT3D_VERSION < 0x0800) + +/* + * State enumerants for per-stage texture processing. + */ +typedef enum _D3DTEXTURESTAGESTATETYPE +{ + D3DTSS_COLOROP = 1, /* D3DTEXTUREOP - per-stage blending controls for color channels */ + D3DTSS_COLORARG1 = 2, /* D3DTA_* (texture arg) */ + D3DTSS_COLORARG2 = 3, /* D3DTA_* (texture arg) */ + D3DTSS_ALPHAOP = 4, /* D3DTEXTUREOP - per-stage blending controls for alpha channel */ + D3DTSS_ALPHAARG1 = 5, /* D3DTA_* (texture arg) */ + D3DTSS_ALPHAARG2 = 6, /* D3DTA_* (texture arg) */ + D3DTSS_BUMPENVMAT00 = 7, /* D3DVALUE (bump mapping matrix) */ + D3DTSS_BUMPENVMAT01 = 8, /* D3DVALUE (bump mapping matrix) */ + D3DTSS_BUMPENVMAT10 = 9, /* D3DVALUE (bump mapping matrix) */ + D3DTSS_BUMPENVMAT11 = 10, /* D3DVALUE (bump mapping matrix) */ + D3DTSS_TEXCOORDINDEX = 11, /* identifies which set of texture coordinates index this texture */ + D3DTSS_ADDRESS = 12, /* D3DTEXTUREADDRESS for both coordinates */ + D3DTSS_ADDRESSU = 13, /* D3DTEXTUREADDRESS for U coordinate */ + D3DTSS_ADDRESSV = 14, /* D3DTEXTUREADDRESS for V coordinate */ + D3DTSS_BORDERCOLOR = 15, /* D3DCOLOR */ + D3DTSS_MAGFILTER = 16, /* D3DTEXTUREMAGFILTER filter to use for magnification */ + D3DTSS_MINFILTER = 17, /* D3DTEXTUREMINFILTER filter to use for minification */ + D3DTSS_MIPFILTER = 18, /* D3DTEXTUREMIPFILTER filter to use between mipmaps during minification */ + D3DTSS_MIPMAPLODBIAS = 19, /* D3DVALUE Mipmap LOD bias */ + D3DTSS_MAXMIPLEVEL = 20, /* DWORD 0..(n-1) LOD index of largest map to use (0 == largest) */ + D3DTSS_MAXANISOTROPY = 21, /* DWORD maximum anisotropy */ + D3DTSS_BUMPENVLSCALE = 22, /* D3DVALUE scale for bump map luminance */ + D3DTSS_BUMPENVLOFFSET = 23, /* D3DVALUE offset for bump map luminance */ +#if(DIRECT3D_VERSION >= 0x0700) + D3DTSS_TEXTURETRANSFORMFLAGS = 24, /* D3DTEXTURETRANSFORMFLAGS controls texture transform */ +#endif /* DIRECT3D_VERSION >= 0x0700 */ + D3DTSS_FORCE_DWORD = 0x7fffffff, /* force 32-bit size enum */ +} D3DTEXTURESTAGESTATETYPE; + +#if(DIRECT3D_VERSION >= 0x0700) +// Values, used with D3DTSS_TEXCOORDINDEX, to specify that the vertex data(position +// and normal in the camera space) should be taken as texture coordinates +// Low 16 bits are used to specify texture coordinate index, to take the WRAP mode from +// +#define D3DTSS_TCI_PASSTHRU 0x00000000 +#define D3DTSS_TCI_CAMERASPACENORMAL 0x00010000 +#define D3DTSS_TCI_CAMERASPACEPOSITION 0x00020000 +#define D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR 0x00030000 +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +/* + * Enumerations for COLOROP and ALPHAOP texture blending operations set in + * texture processing stage controls in D3DRENDERSTATE. + */ +typedef enum _D3DTEXTUREOP +{ +// Control + D3DTOP_DISABLE = 1, // disables stage + D3DTOP_SELECTARG1 = 2, // the default + D3DTOP_SELECTARG2 = 3, + +// Modulate + D3DTOP_MODULATE = 4, // multiply args together + D3DTOP_MODULATE2X = 5, // multiply and 1 bit + D3DTOP_MODULATE4X = 6, // multiply and 2 bits + +// Add + D3DTOP_ADD = 7, // add arguments together + D3DTOP_ADDSIGNED = 8, // add with -0.5 bias + D3DTOP_ADDSIGNED2X = 9, // as above but left 1 bit + D3DTOP_SUBTRACT = 10, // Arg1 - Arg2, with no saturation + D3DTOP_ADDSMOOTH = 11, // add 2 args, subtract product + // Arg1 + Arg2 - Arg1*Arg2 + // = Arg1 + (1-Arg1)*Arg2 + +// Linear alpha blend: Arg1*(Alpha) + Arg2*(1-Alpha) + D3DTOP_BLENDDIFFUSEALPHA = 12, // iterated alpha + D3DTOP_BLENDTEXTUREALPHA = 13, // texture alpha + D3DTOP_BLENDFACTORALPHA = 14, // alpha from D3DRENDERSTATE_TEXTUREFACTOR + // Linear alpha blend with pre-multiplied arg1 input: Arg1 + Arg2*(1-Alpha) + D3DTOP_BLENDTEXTUREALPHAPM = 15, // texture alpha + D3DTOP_BLENDCURRENTALPHA = 16, // by alpha of current color + +// Specular mapping + D3DTOP_PREMODULATE = 17, // modulate with next texture before use + D3DTOP_MODULATEALPHA_ADDCOLOR = 18, // Arg1.RGB + Arg1.A*Arg2.RGB + // COLOROP only + D3DTOP_MODULATECOLOR_ADDALPHA = 19, // Arg1.RGB*Arg2.RGB + Arg1.A + // COLOROP only + D3DTOP_MODULATEINVALPHA_ADDCOLOR = 20, // (1-Arg1.A)*Arg2.RGB + Arg1.RGB + // COLOROP only + D3DTOP_MODULATEINVCOLOR_ADDALPHA = 21, // (1-Arg1.RGB)*Arg2.RGB + Arg1.A + // COLOROP only + +// Bump mapping + D3DTOP_BUMPENVMAP = 22, // per pixel env map perturbation + D3DTOP_BUMPENVMAPLUMINANCE = 23, // with luminance channel + // This can do either diffuse or specular bump mapping with correct input. + // Performs the function (Arg1.R*Arg2.R + Arg1.G*Arg2.G + Arg1.B*Arg2.B) + // where each component has been scaled and offset to make it signed. + // The result is replicated into all four (including alpha) channels. + // This is a valid COLOROP only. + D3DTOP_DOTPRODUCT3 = 24, + + D3DTOP_FORCE_DWORD = 0x7fffffff, +} D3DTEXTUREOP; + +/* + * Values for COLORARG1,2 and ALPHAARG1,2 texture blending operations + * set in texture processing stage controls in D3DRENDERSTATE. + */ +#define D3DTA_SELECTMASK 0x0000000f // mask for arg selector +#define D3DTA_DIFFUSE 0x00000000 // select diffuse color +#define D3DTA_CURRENT 0x00000001 // select result of previous stage +#define D3DTA_TEXTURE 0x00000002 // select texture color +#define D3DTA_TFACTOR 0x00000003 // select RENDERSTATE_TEXTUREFACTOR +#if(DIRECT3D_VERSION >= 0x0700) +#define D3DTA_SPECULAR 0x00000004 // select specular color +#endif /* DIRECT3D_VERSION >= 0x0700 */ +#define D3DTA_COMPLEMENT 0x00000010 // take 1.0 - x +#define D3DTA_ALPHAREPLICATE 0x00000020 // replicate alpha to color components + +#endif //(DIRECT3D_VERSION < 0x0800) + +/* + * IDirect3DTexture2 State Filter Types + */ +typedef enum _D3DTEXTUREMAGFILTER +{ + D3DTFG_POINT = 1, // nearest + D3DTFG_LINEAR = 2, // linear interpolation + D3DTFG_FLATCUBIC = 3, // cubic + D3DTFG_GAUSSIANCUBIC = 4, // different cubic kernel + D3DTFG_ANISOTROPIC = 5, // +#if(DIRECT3D_VERSION >= 0x0700) +#endif /* DIRECT3D_VERSION >= 0x0700 */ + D3DTFG_FORCE_DWORD = 0x7fffffff, // force 32-bit size enum +} D3DTEXTUREMAGFILTER; + +typedef enum _D3DTEXTUREMINFILTER +{ + D3DTFN_POINT = 1, // nearest + D3DTFN_LINEAR = 2, // linear interpolation + D3DTFN_ANISOTROPIC = 3, // + D3DTFN_FORCE_DWORD = 0x7fffffff, // force 32-bit size enum +} D3DTEXTUREMINFILTER; + +typedef enum _D3DTEXTUREMIPFILTER +{ + D3DTFP_NONE = 1, // mipmapping disabled (use MAG filter) + D3DTFP_POINT = 2, // nearest + D3DTFP_LINEAR = 3, // linear interpolation + D3DTFP_FORCE_DWORD = 0x7fffffff, // force 32-bit size enum +} D3DTEXTUREMIPFILTER; + +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +/* + * Triangle flags + */ + +/* + * Tri strip and fan flags. + * START loads all three vertices + * EVEN and ODD load just v3 with even or odd culling + * START_FLAT contains a count from 0 to 29 that allows the + * whole strip or fan to be culled in one hit. + * e.g. for a quad len = 1 + */ +#define D3DTRIFLAG_START 0x00000000L +#define D3DTRIFLAG_STARTFLAT(len) (len) /* 0 < len < 30 */ +#define D3DTRIFLAG_ODD 0x0000001eL +#define D3DTRIFLAG_EVEN 0x0000001fL + +/* + * Triangle edge flags + * enable edges for wireframe or antialiasing + */ +#define D3DTRIFLAG_EDGEENABLE1 0x00000100L /* v0-v1 edge */ +#define D3DTRIFLAG_EDGEENABLE2 0x00000200L /* v1-v2 edge */ +#define D3DTRIFLAG_EDGEENABLE3 0x00000400L /* v2-v0 edge */ +#define D3DTRIFLAG_EDGEENABLETRIANGLE \ + (D3DTRIFLAG_EDGEENABLE1 | D3DTRIFLAG_EDGEENABLE2 | D3DTRIFLAG_EDGEENABLE3) + +/* + * Primitive structures and related defines. Vertex offsets are to types + * D3DVERTEX, D3DLVERTEX, or D3DTLVERTEX. + */ + +/* + * Triangle list primitive structure + */ +typedef struct _D3DTRIANGLE { + union { + WORD v1; /* Vertex indices */ + WORD wV1; + }; + union { + WORD v2; + WORD wV2; + }; + union { + WORD v3; + WORD wV3; + }; + WORD wFlags; /* Edge (and other) flags */ +} D3DTRIANGLE, *LPD3DTRIANGLE; + +/* + * Line list structure. + * The instruction count defines the number of line segments. + */ +typedef struct _D3DLINE { + union { + WORD v1; /* Vertex indices */ + WORD wV1; + }; + union { + WORD v2; + WORD wV2; + }; +} D3DLINE, *LPD3DLINE; + +/* + * Span structure + * Spans join a list of points with the same y value. + * If the y value changes, a new span is started. + */ +typedef struct _D3DSPAN { + WORD wCount; /* Number of spans */ + WORD wFirst; /* Index to first vertex */ +} D3DSPAN, *LPD3DSPAN; + +/* + * Point structure + */ +typedef struct _D3DPOINT { + WORD wCount; /* number of points */ + WORD wFirst; /* index to first vertex */ +} D3DPOINT, *LPD3DPOINT; + + +/* + * Forward branch structure. + * Mask is logically anded with the driver status mask + * if the result equals 'value', the branch is taken. + */ +typedef struct _D3DBRANCH { + DWORD dwMask; /* Bitmask against D3D status */ + DWORD dwValue; + BOOL bNegate; /* TRUE to negate comparison */ + DWORD dwOffset; /* How far to branch forward (0 for exit)*/ +} D3DBRANCH, *LPD3DBRANCH; + +/* + * Status used for set status instruction. + * The D3D status is initialised on device creation + * and is modified by all execute calls. + */ +typedef struct _D3DSTATUS { + DWORD dwFlags; /* Do we set extents or status */ + DWORD dwStatus; /* D3D status */ + D3DRECT drExtent; +} D3DSTATUS, *LPD3DSTATUS; + +#define D3DSETSTATUS_STATUS 0x00000001L +#define D3DSETSTATUS_EXTENTS 0x00000002L +#define D3DSETSTATUS_ALL (D3DSETSTATUS_STATUS | D3DSETSTATUS_EXTENTS) + +#if(DIRECT3D_VERSION >= 0x0500) +typedef struct _D3DCLIPSTATUS { + DWORD dwFlags; /* Do we set 2d extents, 3D extents or status */ + DWORD dwStatus; /* Clip status */ + float minx, maxx; /* X extents */ + float miny, maxy; /* Y extents */ + float minz, maxz; /* Z extents */ +} D3DCLIPSTATUS, *LPD3DCLIPSTATUS; + +#define D3DCLIPSTATUS_STATUS 0x00000001L +#define D3DCLIPSTATUS_EXTENTS2 0x00000002L +#define D3DCLIPSTATUS_EXTENTS3 0x00000004L + +#endif /* DIRECT3D_VERSION >= 0x0500 */ +/* + * Statistics structure + */ +typedef struct _D3DSTATS { + DWORD dwSize; + DWORD dwTrianglesDrawn; + DWORD dwLinesDrawn; + DWORD dwPointsDrawn; + DWORD dwSpansDrawn; + DWORD dwVerticesProcessed; +} D3DSTATS, *LPD3DSTATS; + +/* + * Execute options. + * When calling using D3DEXECUTE_UNCLIPPED all the primitives + * inside the buffer must be contained within the viewport. + */ +#define D3DEXECUTE_CLIPPED 0x00000001l +#define D3DEXECUTE_UNCLIPPED 0x00000002l + +typedef struct _D3DEXECUTEDATA { + DWORD dwSize; + DWORD dwVertexOffset; + DWORD dwVertexCount; + DWORD dwInstructionOffset; + DWORD dwInstructionLength; + DWORD dwHVertexOffset; + D3DSTATUS dsStatus; /* Status after execute */ +} D3DEXECUTEDATA, *LPD3DEXECUTEDATA; + +/* + * Palette flags. + * This are or'ed with the peFlags in the PALETTEENTRYs passed to DirectDraw. + */ +#define D3DPAL_FREE 0x00 /* Renderer may use this entry freely */ +#define D3DPAL_READONLY 0x40 /* Renderer may not set this entry */ +#define D3DPAL_RESERVED 0x80 /* Renderer may not use this entry */ + + +#if(DIRECT3D_VERSION >= 0x0600) + +typedef struct _D3DVERTEXBUFFERDESC { + DWORD dwSize; + DWORD dwCaps; + DWORD dwFVF; + DWORD dwNumVertices; +} D3DVERTEXBUFFERDESC, *LPD3DVERTEXBUFFERDESC; + +#define D3DVBCAPS_SYSTEMMEMORY 0x00000800l +#define D3DVBCAPS_WRITEONLY 0x00010000l +#define D3DVBCAPS_OPTIMIZED 0x80000000l +#define D3DVBCAPS_DONOTCLIP 0x00000001l + +/* Vertex Operations for ProcessVertices */ +#define D3DVOP_LIGHT (1 << 10) +#define D3DVOP_TRANSFORM (1 << 0) +#define D3DVOP_CLIP (1 << 2) +#define D3DVOP_EXTENTS (1 << 3) + + +#if(DIRECT3D_VERSION < 0x0800) + +/* The maximum number of vertices user can pass to any d3d + drawing function or to create vertex buffer with +*/ +#define D3DMAXNUMVERTICES ((1<<16) - 1) +/* The maximum number of primitives user can pass to any d3d + drawing function. +*/ +#define D3DMAXNUMPRIMITIVES ((1<<16) - 1) + +#if(DIRECT3D_VERSION >= 0x0700) + +/* Bits for dwFlags in ProcessVertices call */ +#define D3DPV_DONOTCOPYDATA (1 << 0) + +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#endif //(DIRECT3D_VERSION < 0x0800) + +//------------------------------------------------------------------- + +#if(DIRECT3D_VERSION < 0x0800) + +// Flexible vertex format bits +// +#define D3DFVF_RESERVED0 0x001 +#define D3DFVF_POSITION_MASK 0x00E +#define D3DFVF_XYZ 0x002 +#define D3DFVF_XYZRHW 0x004 +#if(DIRECT3D_VERSION >= 0x0700) +#define D3DFVF_XYZB1 0x006 +#define D3DFVF_XYZB2 0x008 +#define D3DFVF_XYZB3 0x00a +#define D3DFVF_XYZB4 0x00c +#define D3DFVF_XYZB5 0x00e + +#endif /* DIRECT3D_VERSION >= 0x0700 */ +#define D3DFVF_NORMAL 0x010 +#define D3DFVF_RESERVED1 0x020 +#define D3DFVF_DIFFUSE 0x040 +#define D3DFVF_SPECULAR 0x080 + +#define D3DFVF_TEXCOUNT_MASK 0xf00 +#define D3DFVF_TEXCOUNT_SHIFT 8 +#define D3DFVF_TEX0 0x000 +#define D3DFVF_TEX1 0x100 +#define D3DFVF_TEX2 0x200 +#define D3DFVF_TEX3 0x300 +#define D3DFVF_TEX4 0x400 +#define D3DFVF_TEX5 0x500 +#define D3DFVF_TEX6 0x600 +#define D3DFVF_TEX7 0x700 +#define D3DFVF_TEX8 0x800 + +#define D3DFVF_RESERVED2 0xf000 // 4 reserved bits + +#else +#define D3DFVF_RESERVED1 0x020 +#endif //(DIRECT3D_VERSION < 0x0800) + +#define D3DFVF_VERTEX ( D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1 ) +#define D3DFVF_LVERTEX ( D3DFVF_XYZ | D3DFVF_RESERVED1 | D3DFVF_DIFFUSE | \ + D3DFVF_SPECULAR | D3DFVF_TEX1 ) +#define D3DFVF_TLVERTEX ( D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_SPECULAR | \ + D3DFVF_TEX1 ) + + +typedef struct _D3DDP_PTRSTRIDE +{ + LPVOID lpvData; + DWORD dwStride; +} D3DDP_PTRSTRIDE; + +#define D3DDP_MAXTEXCOORD 8 + +typedef struct _D3DDRAWPRIMITIVESTRIDEDDATA +{ + D3DDP_PTRSTRIDE position; + D3DDP_PTRSTRIDE normal; + D3DDP_PTRSTRIDE diffuse; + D3DDP_PTRSTRIDE specular; + D3DDP_PTRSTRIDE textureCoords[D3DDP_MAXTEXCOORD]; +} D3DDRAWPRIMITIVESTRIDEDDATA, *LPD3DDRAWPRIMITIVESTRIDEDDATA; +//--------------------------------------------------------------------- +// ComputeSphereVisibility return values +// +#define D3DVIS_INSIDE_FRUSTUM 0 +#define D3DVIS_INTERSECT_FRUSTUM 1 +#define D3DVIS_OUTSIDE_FRUSTUM 2 +#define D3DVIS_INSIDE_LEFT 0 +#define D3DVIS_INTERSECT_LEFT (1 << 2) +#define D3DVIS_OUTSIDE_LEFT (2 << 2) +#define D3DVIS_INSIDE_RIGHT 0 +#define D3DVIS_INTERSECT_RIGHT (1 << 4) +#define D3DVIS_OUTSIDE_RIGHT (2 << 4) +#define D3DVIS_INSIDE_TOP 0 +#define D3DVIS_INTERSECT_TOP (1 << 6) +#define D3DVIS_OUTSIDE_TOP (2 << 6) +#define D3DVIS_INSIDE_BOTTOM 0 +#define D3DVIS_INTERSECT_BOTTOM (1 << 8) +#define D3DVIS_OUTSIDE_BOTTOM (2 << 8) +#define D3DVIS_INSIDE_NEAR 0 +#define D3DVIS_INTERSECT_NEAR (1 << 10) +#define D3DVIS_OUTSIDE_NEAR (2 << 10) +#define D3DVIS_INSIDE_FAR 0 +#define D3DVIS_INTERSECT_FAR (1 << 12) +#define D3DVIS_OUTSIDE_FAR (2 << 12) + +#define D3DVIS_MASK_FRUSTUM (3 << 0) +#define D3DVIS_MASK_LEFT (3 << 2) +#define D3DVIS_MASK_RIGHT (3 << 4) +#define D3DVIS_MASK_TOP (3 << 6) +#define D3DVIS_MASK_BOTTOM (3 << 8) +#define D3DVIS_MASK_NEAR (3 << 10) +#define D3DVIS_MASK_FAR (3 << 12) + +#endif /* DIRECT3D_VERSION >= 0x0600 */ + +#if(DIRECT3D_VERSION < 0x0800) + +#if(DIRECT3D_VERSION >= 0x0700) + +// To be used with GetInfo() +#define D3DDEVINFOID_TEXTUREMANAGER 1 +#define D3DDEVINFOID_D3DTEXTUREMANAGER 2 +#define D3DDEVINFOID_TEXTURING 3 + +typedef enum _D3DSTATEBLOCKTYPE +{ + D3DSBT_ALL = 1, // capture all state + D3DSBT_PIXELSTATE = 2, // capture pixel state + D3DSBT_VERTEXSTATE = 3, // capture vertex state + D3DSBT_FORCE_DWORD = 0xffffffff +} D3DSTATEBLOCKTYPE; + +// The D3DVERTEXBLENDFLAGS type is used with D3DRENDERSTATE_VERTEXBLEND state. +// +typedef enum _D3DVERTEXBLENDFLAGS +{ + D3DVBLEND_DISABLE = 0, // Disable vertex blending + D3DVBLEND_1WEIGHT = 1, // blend between 2 matrices + D3DVBLEND_2WEIGHTS = 2, // blend between 3 matrices + D3DVBLEND_3WEIGHTS = 3, // blend between 4 matrices +} D3DVERTEXBLENDFLAGS; + +typedef enum _D3DTEXTURETRANSFORMFLAGS { + D3DTTFF_DISABLE = 0, // texture coordinates are passed directly + D3DTTFF_COUNT1 = 1, // rasterizer should expect 1-D texture coords + D3DTTFF_COUNT2 = 2, // rasterizer should expect 2-D texture coords + D3DTTFF_COUNT3 = 3, // rasterizer should expect 3-D texture coords + D3DTTFF_COUNT4 = 4, // rasterizer should expect 4-D texture coords + D3DTTFF_PROJECTED = 256, // texcoords to be divided by COUNTth element + D3DTTFF_FORCE_DWORD = 0x7fffffff, +} D3DTEXTURETRANSFORMFLAGS; + +// Macros to set texture coordinate format bits in the FVF id + +#define D3DFVF_TEXTUREFORMAT2 0 // Two floating point values +#define D3DFVF_TEXTUREFORMAT1 3 // One floating point value +#define D3DFVF_TEXTUREFORMAT3 1 // Three floating point values +#define D3DFVF_TEXTUREFORMAT4 2 // Four floating point values + +#define D3DFVF_TEXCOORDSIZE3(CoordIndex) (D3DFVF_TEXTUREFORMAT3 << (CoordIndex*2 + 16)) +#define D3DFVF_TEXCOORDSIZE2(CoordIndex) (D3DFVF_TEXTUREFORMAT2) +#define D3DFVF_TEXCOORDSIZE4(CoordIndex) (D3DFVF_TEXTUREFORMAT4 << (CoordIndex*2 + 16)) +#define D3DFVF_TEXCOORDSIZE1(CoordIndex) (D3DFVF_TEXTUREFORMAT1 << (CoordIndex*2 + 16)) + + +#endif /* DIRECT3D_VERSION >= 0x0700 */ + +#else +// +// legacy vertex blend names +// +#define D3DVBLEND_DISABLE (D3DVERTEXBLENDFLAGS)0 +#define D3DVBLEND_1WEIGHT (D3DVERTEXBLENDFLAGS)1 +#define D3DVBLEND_2WEIGHTS (D3DVERTEXBLENDFLAGS)2 +#define D3DVBLEND_3WEIGHTS (D3DVERTEXBLENDFLAGS)3 + +#endif //(DIRECT3D_VERSION < 0x0800) + +#pragma pack() +#pragma warning(pop) + +#endif /* _D3DTYPES_H_ */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dvec.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dvec.inl new file mode 100644 index 0000000000000000000000000000000000000000..d3639ff548145b0b33ca8dd2023c7f425008b410 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/d3dvec.inl @@ -0,0 +1,262 @@ + +/****************************************************************** + * * + * D3DVec.inl * + * * + * Float-valued 3D vector class for Direct3D. * + * * + * Copyright (c) Microsoft Corp. All rights reserved. * + * * + ******************************************************************/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include + +// ===================================== +// Constructors +// ===================================== + +inline +_D3DVECTOR::_D3DVECTOR(D3DVALUE f) +{ + x = y = z = f; +} + +inline +_D3DVECTOR::_D3DVECTOR(D3DVALUE _x, D3DVALUE _y, D3DVALUE _z) +{ + x = _x; y = _y; z = _z; +} + +inline +_D3DVECTOR::_D3DVECTOR(const D3DVALUE f[3]) +{ + x = f[0]; y = f[1]; z = f[2]; +} + +// ===================================== +// Access grants +// ===================================== + +inline const D3DVALUE& +_D3DVECTOR::operator[](int i) const +{ + return (&x)[i]; +} + +inline D3DVALUE& +_D3DVECTOR::operator[](int i) +{ + return (&x)[i]; +} + + +// ===================================== +// Assignment operators +// ===================================== + +inline _D3DVECTOR& +_D3DVECTOR::operator += (const _D3DVECTOR& v) +{ + x += v.x; y += v.y; z += v.z; + return *this; +} + +inline _D3DVECTOR& +_D3DVECTOR::operator -= (const _D3DVECTOR& v) +{ + x -= v.x; y -= v.y; z -= v.z; + return *this; +} + +inline _D3DVECTOR& +_D3DVECTOR::operator *= (const _D3DVECTOR& v) +{ + x *= v.x; y *= v.y; z *= v.z; + return *this; +} + +inline _D3DVECTOR& +_D3DVECTOR::operator /= (const _D3DVECTOR& v) +{ + x /= v.x; y /= v.y; z /= v.z; + return *this; +} + +inline _D3DVECTOR& +_D3DVECTOR::operator *= (D3DVALUE s) +{ + x *= s; y *= s; z *= s; + return *this; +} + +inline _D3DVECTOR& +_D3DVECTOR::operator /= (D3DVALUE s) +{ + x /= s; y /= s; z /= s; + return *this; +} + +inline _D3DVECTOR +operator + (const _D3DVECTOR& v) +{ + return v; +} + +inline _D3DVECTOR +operator - (const _D3DVECTOR& v) +{ + return _D3DVECTOR(-v.x, -v.y, -v.z); +} + +inline _D3DVECTOR +operator + (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + return _D3DVECTOR(v1.x+v2.x, v1.y+v2.y, v1.z+v2.z); +} + +inline _D3DVECTOR +operator - (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + return _D3DVECTOR(v1.x-v2.x, v1.y-v2.y, v1.z-v2.z); +} + +inline _D3DVECTOR +operator * (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + return _D3DVECTOR(v1.x*v2.x, v1.y*v2.y, v1.z*v2.z); +} + +inline _D3DVECTOR +operator / (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + return _D3DVECTOR(v1.x/v2.x, v1.y/v2.y, v1.z/v2.z); +} + +inline int +operator < (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + return v1[0] < v2[0] && v1[1] < v2[1] && v1[2] < v2[2]; +} + +inline int +operator <= (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + return v1[0] <= v2[0] && v1[1] <= v2[1] && v1[2] <= v2[2]; +} + +inline _D3DVECTOR +operator * (const _D3DVECTOR& v, D3DVALUE s) +{ + return _D3DVECTOR(s*v.x, s*v.y, s*v.z); +} + +inline _D3DVECTOR +operator * (D3DVALUE s, const _D3DVECTOR& v) +{ + return _D3DVECTOR(s*v.x, s*v.y, s*v.z); +} + +inline _D3DVECTOR +operator / (const _D3DVECTOR& v, D3DVALUE s) +{ + return _D3DVECTOR(v.x/s, v.y/s, v.z/s); +} + +inline int +operator == (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + return v1.x==v2.x && v1.y==v2.y && v1.z == v2.z; +} + +inline D3DVALUE +Magnitude (const _D3DVECTOR& v) +{ + return (D3DVALUE) sqrt(SquareMagnitude(v)); +} + +inline D3DVALUE +SquareMagnitude (const _D3DVECTOR& v) +{ + return v.x*v.x + v.y*v.y + v.z*v.z; +} + +inline _D3DVECTOR +Normalize (const _D3DVECTOR& v) +{ + return v / Magnitude(v); +} + +inline D3DVALUE +Min (const _D3DVECTOR& v) +{ + D3DVALUE ret = v.x; + if (v.y < ret) ret = v.y; + if (v.z < ret) ret = v.z; + return ret; +} + +inline D3DVALUE +Max (const _D3DVECTOR& v) +{ + D3DVALUE ret = v.x; + if (ret < v.y) ret = v.y; + if (ret < v.z) ret = v.z; + return ret; +} + +inline _D3DVECTOR +Minimize (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + return _D3DVECTOR( v1[0] < v2[0] ? v1[0] : v2[0], + v1[1] < v2[1] ? v1[1] : v2[1], + v1[2] < v2[2] ? v1[2] : v2[2]); +} + +inline _D3DVECTOR +Maximize (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + return _D3DVECTOR( v1[0] > v2[0] ? v1[0] : v2[0], + v1[1] > v2[1] ? v1[1] : v2[1], + v1[2] > v2[2] ? v1[2] : v2[2]); +} + +inline D3DVALUE +DotProduct (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + return v1.x*v2.x + v1.y * v2.y + v1.z*v2.z; +} + +inline _D3DVECTOR +CrossProduct (const _D3DVECTOR& v1, const _D3DVECTOR& v2) +{ + _D3DVECTOR result; + + result[0] = v1[1] * v2[2] - v1[2] * v2[1]; + result[1] = v1[2] * v2[0] - v1[0] * v2[2]; + result[2] = v1[0] * v2[1] - v1[1] * v2[0]; + + return result; +} + +inline _D3DMATRIX +operator* (const _D3DMATRIX& a, const _D3DMATRIX& b) +{ + _D3DMATRIX ret; + for (int i=0; i<4; i++) { + for (int j=0; j<4; j++) { + ret(i, j) = 0.0f; + for (int k=0; k<4; k++) { + ret(i, j) += a(i, k) * b(k, j); + } + } + } + return ret; +} + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/daogetrw.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/daogetrw.h new file mode 100644 index 0000000000000000000000000000000000000000..5a2b17feab42f95a9540b81240dbe3b4546c3c0a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/daogetrw.h @@ -0,0 +1,161 @@ +/************************************************************************ +** D A O G E T R W . H * +** * +** GetRows interface * +** * +** Warning: This file is copied from cdaost.h. Changes must be made * +** in both files * +** * +** * +************************************************************************* +** Copyright (C) 1996 by Microsoft Corporation * +** All Rights Reserved * +************************************************************************/ + +#if !defined (_DAOGETRW_H_) +#define _DAOGETRW_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/* + Enumerations +*/ +typedef enum + { + DAOCOLKIND_IND = 0, + DAOCOLKIND_STR, + DAOCOLKIND_WSTR + } DAOCOLKIND; + +typedef enum + { + DAO_I2 = 0, + DAO_I4, + DAO_R4, + DAO_R8, + DAO_CURRENCY, + DAO_DATE, + DAO_BOOL, + DAO_BSTR, + DAO_LPSTR, + DAO_LPWSTR, + DAO_BLOB, + DAO_BYTES, + DAO_CHAR, + DAO_WCHAR, + DAO_ANYVARIANT, + DAO_BOOKMARK, + DAO_BYTE, + DAO_GUID, + DAO_DATATYPEMAX + } DAODATATYPE; + +/* + Macros +*/ +#define DAO_NOINDICATOR 0xffffffff +#define DAO_NULL 0xffffffff +#define DAO_CANTCOERCE 0xfffffffc +#define DAO_NOMAXLENGTH 0x00000000 + +#define DAOROWFETCH_CALLEEALLOCATES 0x00000001 +#define DAOROWFETCH_DONTADVANCE 0x00000002 +#define DAOROWFETCH_FORCEREFRESH 0x00000004 +#define DAOROWFETCH_BINDABSOLUTE 0x00000008 +#define DAOROWFETCH_ODBCNEXT 0x00000010 + +#define DAOBINDING_DIRECT 0x00000001 +#define DAOBINDING_VARIANT 0x00000002 +#define DAOBINDING_CALLBACK 0x00000004 + +/* + Structures +*/ +typedef struct + { + DWORD dwKind; + union + { + LONG ind; + LPCSTR lpstr; + LPCWSTR lpwstr; + }; + } DAOCOLUMNID; +typedef DAOCOLUMNID *LPDAOCOLUMNID; + +// Callback for binding +EXTERN_C typedef HRESULT (STDAPICALLTYPE *LPDAOBINDFUNC)(ULONG cb, DWORD dwUser, LPVOID *ppData); +#define DAOBINDINGFUNC(f) STDAPI f (ULONG cb, DWORD dwUser, LPVOID *ppData) + +typedef struct + { + DAOCOLUMNID columnID; + ULONG cbDataOffset; + ULONG cbMaxLen; + ULONG cbInfoOffset; + DWORD dwBinding; + DWORD dwDataType; + DWORD dwUser; + } DAOCOLUMNBINDING; +typedef DAOCOLUMNBINDING *LPDAOCOLUMNBINDING; + +typedef struct + { + ULONG cRowsRequested; + DWORD dwFlags; + LPVOID pData; + LPVOID pVarData; + ULONG cbVarData; + ULONG cRowsReturned; + } DAOFETCHROWS; +typedef DAOFETCHROWS *LPDAOFETCHROWS; + +/* + New Errors + + **NOTE: OLE standard ids to be determined. +*/ +#define S_BUFFERTOOSMALL MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x1000) +#define S_ENDOFCURSOR MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x1001) +#define S_SILENTCANCEL MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x1002) +#define S_RECORDDELETED MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_ITF, 0x1003) + +#define E_ROWTOOSHORT MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1000) +#define E_BADBINDINFO MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1001) +#define E_COLUMNUNAVAILABLE MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1002) + + +/* + Interfaces +*/ +#undef INTERFACE +#define INTERFACE ICDAORecordset +DECLARE_INTERFACE_(ICDAORecordset, IDispatch) + { + STDMETHOD(GetRows) (THIS_ LONG cRowsToSkip, LONG cCol, LPDAOCOLUMNBINDING prgBndCol, ULONG cbRowLen, LPDAOFETCHROWS pFetchRows) PURE; + STDMETHOD(SetNotify) (THIS_ REFIID riid, BOOL fNotify); + STDMETHOD(GetNotify) (THIS_ REFIID riid, BOOL *fNotify); + STDMETHOD(OnBeforeNotify) (THIS_ REFIID riid, DWORD cat, DWORD rsn, VARIANT v1, VARIANT v2); + STDMETHOD(OnAfterNotify) (THIS_ REFIID riid, DWORD cat, DWORD rsn, VARIANT v1, VARIANT v2, HRESULT hr); + STDMETHOD(PutLock) (THIS_ BOOL f); + STDMETHOD(GetLock) (THIS_ BOOL *f); + STDMETHOD(AddGetRowsErr) (THIS_ HRESULT hr) PURE; + }; + +//Get rows errors +#define errVtoFetchBuffTooSmall -30028 //3640 The fetch buffer was too small for the amount of data you requested. +#define errVtoEOFDuringFetch -30029 //3641 There are fewer records remaining in the recordset than you requested. +#define errVtoSilentCancel -30030 //3642 A cancel was performed on the operation. +#define errVtoRecordDeleted -30031 //3643 One of the records in the recordset was deleted by another process. +#define errVtoRowLenTooSmall -30032 //3646 The specified row length is shorter than the sum of the column lengths. +#define errVtoBadBindInfo -30033 //3645 One of the binding parameters is incorrect. +#define errVtoColumnMissing -30034 //3647 A column requested is not being returned to the recordset. + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _DAOGETRW_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/datetimeapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/datetimeapi.h new file mode 100644 index 0000000000000000000000000000000000000000..6f1b2fe0c4574aa3e25e6e8e133a08bc0c15e331 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/datetimeapi.h @@ -0,0 +1,150 @@ +/******************************************************************************** +* * +* datetimeapi.h -- ApiSet Contract for api-ms-win-core-datetime-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _DATETIMEAPI_H_ +#define _DATETIMEAPI_H_ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// For Windows Vista and above GetDateFormatEx is preferred +WINBASEAPI +int +WINAPI +GetDateFormatA( + _In_ LCID Locale, + _In_ DWORD dwFlags, + _In_opt_ CONST SYSTEMTIME* lpDate, + _In_opt_ LPCSTR lpFormat, + _Out_writes_opt_(cchDate) LPSTR lpDateStr, + _In_ int cchDate + ); + +WINBASEAPI +int +WINAPI +GetDateFormatW( + _In_ LCID Locale, + _In_ DWORD dwFlags, + _In_opt_ CONST SYSTEMTIME* lpDate, + _In_opt_ LPCWSTR lpFormat, + _Out_writes_opt_(cchDate) LPWSTR lpDateStr, + _In_ int cchDate + ); + +#ifdef UNICODE +#define GetDateFormat GetDateFormatW +#else +#define GetDateFormat GetDateFormatA +#endif // !UNICODE + +// For Windows Vista and above GetTimeFormatEx is preferred +WINBASEAPI +int +WINAPI +GetTimeFormatA( + _In_ LCID Locale, + _In_ DWORD dwFlags, + _In_opt_ CONST SYSTEMTIME* lpTime, + _In_opt_ LPCSTR lpFormat, + _Out_writes_opt_(cchTime) LPSTR lpTimeStr, + _In_ int cchTime + ); + +WINBASEAPI +int +WINAPI +GetTimeFormatW( + _In_ LCID Locale, + _In_ DWORD dwFlags, + _In_opt_ CONST SYSTEMTIME* lpTime, + _In_opt_ LPCWSTR lpFormat, + _Out_writes_opt_(cchTime) LPWSTR lpTimeStr, + _In_ int cchTime + ); + +#ifdef UNICODE +#define GetTimeFormat GetTimeFormatW +#else +#define GetTimeFormat GetTimeFormatA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +int +WINAPI +GetTimeFormatEx( + _In_opt_ LPCWSTR lpLocaleName, + _In_ DWORD dwFlags, + _In_opt_ CONST SYSTEMTIME* lpTime, + _In_opt_ LPCWSTR lpFormat, + _Out_writes_opt_(cchTime) LPWSTR lpTimeStr, + _In_ int cchTime + ); + +WINBASEAPI +int +WINAPI +GetDateFormatEx( + _In_opt_ LPCWSTR lpLocaleName, + _In_ DWORD dwFlags, + _In_opt_ CONST SYSTEMTIME* lpDate, + _In_opt_ LPCWSTR lpFormat, + _Out_writes_opt_(cchDate) LPWSTR lpDateStr, + _In_ int cchDate, + _In_opt_ LPCWSTR lpCalendar + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#define GetDurationFormatEx_DEFINED + +WINBASEAPI +int +WINAPI +GetDurationFormatEx( + _In_opt_ LPCWSTR lpLocaleName, + _In_ DWORD dwFlags, + _In_opt_ CONST SYSTEMTIME* lpDuration, + _In_ ULONGLONG ullDuration, + _In_opt_ LPCWSTR lpFormat, + _Out_writes_opt_(cchDuration) LPWSTR lpDurationStr, + _In_ int cchDuration + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // DATETIMEAPI + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/davclnt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/davclnt.h new file mode 100644 index 0000000000000000000000000000000000000000..c369d61a731092ac6646273faaa9d3ba62ad7e82 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/davclnt.h @@ -0,0 +1,177 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + DavClnt.h + +Abstract: + + This module defines the DAV specific functions that are exposed to the user + +Revision History: + +--*/ + +#ifndef _DAV_CLNT_H_ +#define _DAV_CLNT_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +#define OPAQUE_HANDLE DWORD + +// Certificates or other Auth types will be sent through this structure +typedef struct _DAV_CALLBACK_AUTH_BLOB{ + PVOID pBuffer; + ULONG ulSize; // Size of AuthBlob, + ULONG ulType; // Type of Cred sent in ppBuffer. Currently the only value it supports is 1 for PCCERT_CONTEXT. +}DAV_CALLBACK_AUTH_BLOB, *PDAV_CALLBACK_AUTH_BLOB; + +// Username and password will be sent through this structure +typedef struct _DAV_CALLBACK_AUTH_UNP{ + LPWSTR pszUserName; // UserName . Memory to be allocated by the callback + ULONG ulUserNameLength; // Length in WCHAR(Doesnt include terminating NULL) + LPWSTR pszPassword; // Password . Memory to be allocated by the callback + ULONG ulPasswordLength; // Length in WCHAR(Doesnt include terminating NULL) +}DAV_CALLBACK_AUTH_UNP, *PDAV_CALLBACK_AUTH_UNP; + +typedef struct _DAV_CALLBACK_CRED{ + DAV_CALLBACK_AUTH_BLOB AuthBlob; + DAV_CALLBACK_AUTH_UNP UNPBlob; + BOOL bAuthBlobValid; // Indicates if AuthBlob contents is valid. If false UNPBlob is valid + BOOL bSave; // Indicates the value of bsave flag. True indicates that the creds were written to credman false indicates that creds were not written to credman +}DAV_CALLBACK_CRED, *PDAV_CALLBACK_CRED; + +#define DAV_AUTHN_SCHEME_BASIC 0x00000001 +#define DAV_AUTHN_SCHEME_NTLM 0x00000002 +#define DAV_AUTHN_SCHEME_PASSPORT 0x00000004 +#define DAV_AUTHN_SCHEME_DIGEST 0x00000008 +#define DAV_AUTHN_SCHEME_NEGOTIATE 0x00000010 +#define DAV_AUTHN_SCHEME_CERT 0x00010000 +#define DAV_AUTHN_SCHEME_FBA 0x00100000 + +typedef enum +{ + DefaultBehavior, // Try the default behaviour. Dont use callback + RetryRequest, // Retry the connection with the newly gathered creds + CancelRequest // Cancel connection +} AUTHNEXTSTEP; + + +// Function signature for the callback to delete the memory allocated by the creds +typedef DWORD (CALLBACK *PFNDAVAUTHCALLBACK_FREECRED)(_In_ PVOID pbuffer); + +// Function signature for the Callback that will harvest the credentials +typedef DWORD (CALLBACK *PFNDAVAUTHCALLBACK)( + _In_ LPWSTR lpwzServerName, // Server Name + _In_ LPWSTR lpwzRemoteName, // Remote Name + _In_ DWORD dwAuthScheme, // Bitmap of DAV_AUTHN_SCHEME* values + _In_ DWORD dwFlags, // The flags that was passed to NPADDConnection + _Inout_ PDAV_CALLBACK_CRED pCallbackCred, // Creds collected by the callback + _Inout_ AUTHNEXTSTEP *NextStep, // Next step for DavClnt + _Out_ PFNDAVAUTHCALLBACK_FREECRED *pFreeCred // Callback to free the memory allocated for creds by the callback +); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +DavAddConnection( + _Inout_ HANDLE *ConnectionHandle, + _In_ LPCWSTR RemoteName, + _In_opt_ LPCWSTR UserName, + _In_opt_ LPCWSTR Password, + _In_reads_bytes_(CertSize) PBYTE ClientCert, + _In_ DWORD CertSize + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +DavDeleteConnection( + _In_ HANDLE ConnectionHandle + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +DavGetUNCFromHTTPPath ( + _In_ LPCWSTR Url, + _Out_writes_to_opt_(*lpSize, *lpSize) LPWSTR UncPath, + _Inout_ LPDWORD lpSize + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +DavGetHTTPFromUNCPath ( + _In_ LPCWSTR UncPath, + _Out_writes_to_opt_(*lpSize, *lpSize) LPWSTR Url, + _Inout_ LPDWORD lpSize + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +DavGetTheLockOwnerOfTheFile( + _In_ LPCWSTR FileName, + _Out_writes_bytes_opt_(*LockOwnerNameLengthInBytes) PWSTR LockOwnerName, + _Inout_ PULONG LockOwnerNameLengthInBytes + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +DavGetExtendedError( + _In_ HANDLE hFile, + _Out_ DWORD *ExtError, + _Out_writes_(*cChSize) LPWSTR ExtErrorString, + _Inout_ DWORD *cChSize + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +DavFlushFile( + _In_ HANDLE hFile + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +DavInvalidateCache( + _In_ LPCWSTR URLName + ); + +_Success_(return == ERROR_SUCCESS) +DWORD +WINAPI +DavCancelConnectionsToServer( + _In_ LPWSTR lpName, + _In_ BOOL fForce + ); + +OPAQUE_HANDLE +WINAPI +DavRegisterAuthCallback(_In_ PFNDAVAUTHCALLBACK CallBack, + _In_ ULONG Version); + +VOID +WINAPI +DavUnregisterAuthCallback(_In_ OPAQUE_HANDLE hCallback); + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbccmd.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbccmd.idl new file mode 100644 index 0000000000000000000000000000000000000000..6dec5f7fc744cc3bdc7dfe7febeb126fa6e8cbc9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbccmd.idl @@ -0,0 +1,49 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbccmd.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a1d-2a1c-11ce-ade5-00aa0044773d) + + +interface IDBCreateCommand : IUnknown { + + [local] + HRESULT CreateCommand( + [in, annotation("_In_opt_")] IUnknown * pUnkOuter, + [in] REFIID riid, + [out, iid_is(riid), annotation("_Outptr_")] IUnknown ** ppCommand + ); + + [call_as(CreateCommand)] + HRESULT RemoteCreateCommand( + [in] IUnknown * pUnkOuter, + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppCommand, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbcses.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbcses.idl new file mode 100644 index 0000000000000000000000000000000000000000..d301d305b34393ddbc48998caa7b2399d1803ed1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbcses.idl @@ -0,0 +1,49 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbcses.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a5d-2a1c-11ce-ade5-00aa0044773d) + + +interface IDBCreateSession : IUnknown { + + [local] + HRESULT CreateSession( + [in, annotation("_In_opt_")] IUnknown * pUnkOuter, + [in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), annotation("_Outptr_")] IUnknown ** ppDBSession + ); + + [call_as(CreateSession)] + HRESULT RemoteCreateSession( + [in] IUnknown * pUnkOuter, + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppDBSession, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdao.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdao.h new file mode 100644 index 0000000000000000000000000000000000000000..9a759e9e17679a68816c79f69de094f7f92a89fe --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdao.h @@ -0,0 +1,1209 @@ +/************************************************************************ +** D B D A O . H * +** * +************************************************************************* +** Copyright (C) 1996 by Microsoft Corporation * +** All Rights Reserved * +************************************************************************/ +/* + DBDAO.H + + Class definitions for ddao SDK. + +This is a part of the Microsoft Data Access Objects SDK library. +See the DAO SDK help information for detailed information regarding the +Microsoft Data Access Objects SDK product. + +*/ + +#ifndef _DBDAO_H_ +#define _DBDAO_H_ + +// Ignore warning "non dll-interface class 'X' used as base for dll-interface class 'Y' +#pragma warning( disable : 4275 ) + +//DAO must be built with an MFC version >= 4.2 (or you'll get memory problems with CStrings) + +#if _MFC_VER < 0x0420 +#error The DAOSDK 3.5 libraries will not operate correctly if built with MFC older than 4.2 +#endif + +#ifndef DAO35 +#define DAO35 +#endif + +#include +#include +#include +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// Decorations +#define CONSTRUCTOR +#define DESTRUCTOR + +//Disable export +#ifndef DLLEXPORT +#define DLLEXPORT __declspec( dllexport ) +#endif + +//Macro to convert HRESULT to IDA +#define DBERR(x) SCODE_CODE(GetScode(x)) + +// Include internal DAO definitions +#include <_dbdao.h> + +// DAO Recordset::GetRowsEx() binding definitions + +#define dbBindIndexINT 1 +#define dbBindIndexSTR 2 + +#define dbBindI2 DAO_I2 // long +#define dbBindI4 DAO_I4 // short +#define dbBindR4 DAO_R4 // float +#define dbBindR8 DAO_R8 // double +#define dbBindCY DAO_CURRENCY // Currency +#define dbBindDATE DAO_DATE // DATE +#define dbBindBOOL DAO_BOOL // VARIANT_BOOL +#define dbBindUI1 DAO_CHAR // unsigned char +#define dbBindVARIANT DAO_ANYVARIANT // VARIANT +#define dbBindWCHAR DAO_WCHAR // wchar_t[] (inline) + +#define dbBindBookmark DAO_BOOKMARK // bookmark psuedo field +#define dbBindLPSTR DAO_LPSTR // \0 string in pvVarBuffer +#define dbBindLPWSTR DAO_LPWSTR // wide string in pvVarBuffer +#define dbBindBlob DAO_BLOB // + +#ifdef _UNICODE +#define dbBindSTRING dbBindWCHAR +#define dbBindLPSTRING dbBindLPWSTR +#else +#define dbBindSTRING dbBindUI1 +#define dbBindLPSTRING dbBindLPSTR +#endif + +// Binding structure (Used with GetRowsEX) + +typedef struct + { + DWORD dwBindIndexType; + union + { + LONG i; + LPCTSTR pstr; + }; + + DWORD dwType; + DWORD dwOffset; + DWORD cb; + + } DAORSETBINDING, *LPDAORSETBINDING; + + + +/***************************************************************************** +* Forwards +*/ +class COleVariant; +class CdbBookmark; +class CdbException; +class CdbOleObject; +class CdbObject; +class CdbError; +class CdbProperty; +class CdbDBEngine; +class CdbWorkspace; +class CdbDatabase; +class CdbConnection; +class CdbRecordset; +class CdbGetRowsEx; +class CdbQueryDef; +class CdbTableDef; +class CdbField; +class CdbRelation; +class CdbIndex; +class CdbUser; +class CdbGroup; +class CdbDocument; +class CdbContainer; +class CdbParameter; +class CdbCollection; +class CdbErrors; +class CdbProperties; +class CdbWorkspaces; +class CdbDatabases; +class CdbConnections; +class CdbRecordsets; +class CdbQueryDefs; +class CdbTableDefs; +class CdbFields; +class CdbRelations; +class CdbIndexes; +class CdbUsers; +class CdbGroups; +class CdbDocuments; +class CdbContainers; +class CdbParameters; + + +/***************************************************************************** +* CdbException +*/ +class DLLEXPORT CdbException + { +public: + CONSTRUCTOR CdbException (HRESULT hr); + + HRESULT m_hr; + }; + + +/***************************************************************************** +* CdbBookmark +*/ +class DLLEXPORT CdbBookmark : public COleVariant + { + public: + + CONSTRUCTOR CdbBookmark (LPSAFEARRAY psa); + CONSTRUCTOR CdbBookmark (); + CONSTRUCTOR CdbBookmark (const CdbBookmark &); + CdbBookmark & operator = (const CdbBookmark &); + operator LPSAFEARRAY (VOID); + }; + + +/***************************************************************************** +* CdbIndexFields (special case for index fields) +*/ +class DLLEXPORT CdbIndexFields : public CdbFields + { + public: + CdbField Item (LPCTSTR pstr); + CdbField Item (LONG i); + CdbObject ObItem (LPCTSTR pstr); + CdbObject ObItem (LONG i); + }; + + +/***************************************************************************** +* CdbLastOLEError +*/ +class DLLEXPORT CdbLastOLEError : public CdbOleObject + { + public: + + CONSTRUCTOR CdbLastOLEError (VOID); + + CString GetSource (VOID); + CString GetDescription (VOID); + CString GetHelpFile (VOID); + DWORD GetHelpContext (VOID); + }; + +/***************************************************************************** +* CdbDBEngine +*/ +class DLLEXPORT CdbDBEngine : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbDBEngine (DAODBEngine *peng, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbDBEngine (BOOL bPrivate=FALSE, BOOL bStart=TRUE, LPCTSTR pstrIniPath=NULL, LPCTSTR pstrDefUser=NULL, LPCTSTR pstrDefPW=NULL, LONG lType=dbUseJet); + CONSTRUCTOR CdbDBEngine (const CdbDBEngine &); + CdbDBEngine & operator = (const CdbDBEngine &); + inline CdbWorkspace operator [] (LONG lIndex); + inline CdbWorkspace operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + VOID SetDefaultPassword (LPCTSTR pstr); + VOID SetDefaultUser (LPCTSTR pstr); + VOID SetIniPath (LPCTSTR pstr); + CString GetIniPath (VOID); + VOID SetDefaultType (LONG l); + LONG GetDefaultType (VOID); + VOID SetLoginTimeout (SHORT s); + SHORT GetLoginTimeout (VOID); + CString GetVersion (VOID); + CString GetSystemDB (VOID); + VOID SetSystemDB (LPCTSTR pstr); + + // Methods + CdbWorkspace CreateWorkspace (LPCTSTR pstrName, LPCTSTR pstrUser, LPCTSTR pstrPassword, LONG lType=-1); + CdbDatabase OpenDatabase (LPCTSTR pstrName, BOOL bExclusive, BOOL bReadOnly=FALSE, LPCTSTR pstrConnect=NULL); + CdbDatabase OpenDatabase (LPCTSTR pstrName, LONG lOption=0L, BOOL bReadOnly=FALSE, LPCTSTR pstrConnect=NULL); + CdbConnection OpenConnection (LPCTSTR pstrName, LONG lOption=-1L, BOOL bReadOnly=FALSE, LPCTSTR pstrConnect=NULL); + VOID CompactDatabase (LPCTSTR pstrOldDatabase, LPCTSTR pstrNewDatabase, LPCTSTR pstrDstConnect = NULL, LONG lOptions=-1, LPCTSTR pstrSrcConnect = NULL); + VOID RepairDatabase (LPCTSTR pstrDatabase); + VOID RegisterDatabase (LPCTSTR pstrDatabase, LPCTSTR pstrDriver, BOOL bSilent, LPCTSTR pstrAttributes); + VOID Idle (LONG lOptions=-1); + VOID Start (VOID); + VOID SetOption (long lOption, LPVARIANT pvValue); + + + // Collections + CdbWorkspaces Workspaces; + CdbErrors Errors; + + private: + BOOL m_bStarted; + }; + +/***************************************************************************** +* CdbWorkspace +*/ +class DLLEXPORT CdbWorkspace : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbWorkspace (VOID); + CONSTRUCTOR CdbWorkspace (DAOWorkspace *pwrk, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbWorkspace (const CdbWorkspace &); + CdbWorkspace & operator = (const CdbWorkspace &); + inline CdbDatabase operator [] (LONG lIndex); + inline CdbDatabase operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + CString GetName (VOID); + VOID SetName (LPCTSTR pstr); + CString GetUserName (VOID); + BOOL GetIsolateODBCTrans (VOID); + VOID SetIsolateODBCTrans (BOOL b); + LONG GetType (VOID); + LONG GetDefaultCursorDriver (VOID); + VOID SetDefaultCursorDriver (LONG l); + LONG GetLoginTimeout (VOID); + VOID SetLoginTimeout (LONG l); + + // Methods + VOID BeginTrans (VOID); + VOID CommitTrans (LONG lOptions=-1); + VOID Close (VOID); + VOID Rollback (VOID); + CdbDatabase OpenDatabase (LPCTSTR pstrName, BOOL bExclusive, BOOL bReadOnly=FALSE, LPCTSTR pstrConnect=NULL); + CdbDatabase OpenDatabase (LPCTSTR pstrName, LONG lOption=0L, BOOL bReadOnly=FALSE, LPCTSTR pstrConnect=NULL); + CdbConnection OpenConnection (LPCTSTR pstrName, LONG lOption=-1L, BOOL bReadOnly=FALSE, LPCTSTR pstrConnect=NULL); + CdbDatabase CreateDatabase (LPCTSTR pstrName, LPCTSTR pstrConnect, LONG lOption=-1); + CdbUser CreateUser (LPCTSTR pstrName=NULL, LPCTSTR pstrPID=NULL, LPCTSTR pstrPassword=NULL); + CdbGroup CreateGroup (LPCTSTR pstrName=NULL, LPCTSTR pstrPID=NULL); + + // Collections + CdbDatabases Databases; + CdbConnections Connections; + CdbUsers Users; + CdbGroups Groups; + }; + +/***************************************************************************** +* CdbDatabase +*/ +class DLLEXPORT CdbDatabase : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbDatabase (VOID); + CONSTRUCTOR CdbDatabase (DAODatabase *pdb, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbDatabase (const CdbDatabase &); + CdbDatabase & operator = (const CdbDatabase &); + inline CdbTableDef operator [] (LONG lIndex); + inline CdbTableDef operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + LONG GetCollatingOrder (VOID); + CString GetConnect (VOID); + VOID SetConnect (LPCTSTR pstrConnect); + CString GetName (VOID); + SHORT GetQueryTimeout (VOID); + VOID SetQueryTimeout (SHORT s); + BOOL GetTransactions (VOID); + BOOL GetUpdatable (VOID); + CString GetVersion (VOID); + LONG GetRecordsAffected (VOID); + CdbConnection GetConnection (VOID); + //Replication properties + CString GetReplicaID (VOID); + CString GetDesignMasterID (VOID); + VOID SetDesignMasterID (LPCTSTR pstrMasterID); + + + // Methods + VOID Close (VOID); + VOID Execute (LPCTSTR pstrQuery, LONG lOption=-1); + CdbRecordset OpenRecordset (LPCTSTR pstrName, LONG lType=-1, LONG lOptions=-1, LONG lLockEdit=-1); + CdbProperty CreateProperty (LPCTSTR pstrName=NULL, LONG lType=-1, LPVARIANT pvValue=NULL, BOOL bDDL=FALSE); + CdbRelation CreateRelation (LPCTSTR pstrName=NULL, LPCTSTR pstrTable=NULL, LPCTSTR pstrForiegn=NULL, LONG lAttributes=-1); + CdbTableDef CreateTableDef (LPCTSTR pstrName=NULL, LONG lAttributes=-1, LPCTSTR pstrSource=NULL, LPCTSTR pstrConnect=NULL); + CdbQueryDef CreateQueryDef (LPCTSTR pstrName=NULL, LPCTSTR pstrSQL=NULL); + VOID NewPassword (LPCTSTR pstrOld, LPCTSTR pstrNew); + //Replication methods + VOID Synchronize (LPCTSTR pstrReplica, LONG lType=-1); + VOID MakeReplica (LPCTSTR pstrPath, LPCTSTR pstrDescription, LONG lOptions=-1); + VOID PopulatePartial (LPCTSTR pstrDbPathName); + + // Collections + CdbTableDefs TableDefs; + CdbQueryDefs QueryDefs; + CdbRelations Relations; + CdbContainers Containers; + CdbRecordsets Recordsets; + }; + +/***************************************************************************** +* CdbConnection +*/ +class DLLEXPORT CdbConnection : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbConnection (VOID); + CONSTRUCTOR CdbConnection (DAOConnection *pconn, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbConnection (const CdbConnection &); + CdbConnection & operator = (const CdbConnection &); + inline CdbQueryDef operator [] (LONG lIndex); + inline CdbQueryDef operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + CString GetConnect (VOID); + CString GetName (VOID); + CdbDatabase GetDatabase (VOID); + SHORT GetQueryTimeout (VOID); + VOID SetQueryTimeout (SHORT s); + LONG GetRecordsAffected (VOID); + BOOL GetStillExecuting (VOID); + BOOL GetTransactions (VOID); + BOOL GetUpdatable (VOID); + + // Methods + VOID Cancel (VOID); + VOID Close (VOID); + CdbQueryDef CreateQueryDef (LPCTSTR pstrName=NULL, LPCTSTR pstrSQL=NULL); + VOID Execute (LPCTSTR pstrQuery, LONG lOption=-1); + CdbRecordset OpenRecordset (LPCTSTR pstrName, LONG lType=-1, LONG lOptions=-1, LONG lLockEdit=-1); + + // Collections + CdbQueryDefs QueryDefs; + CdbRecordsets Recordsets; + }; + +/***************************************************************************** +* CdbRecordset +*/ +class DLLEXPORT CdbRecordset : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbRecordset (VOID); + CONSTRUCTOR CdbRecordset (DAORecordset *prs, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbRecordset (const CdbRecordset &); + CdbRecordset & operator = (const CdbRecordset &); + inline CdbField operator [] (LONG lIndex); + inline CdbField operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + VOID SetGetRowsExInt (VOID); + + // Properties + BOOL GetBOF (VOID); + CdbBookmark GetBookmark (VOID); + VOID SetBookmark (class CdbBookmark); + BOOL GetBookmarkable (VOID); + COleDateTime GetDateCreated (VOID); + COleDateTime GetLastUpdated (VOID); + BOOL GetEOF (VOID); + CString GetFilter (VOID); + VOID SetFilter (LPCTSTR pstr); + CString GetIndex (VOID); + VOID SetIndex (LPCTSTR pstr); + CdbBookmark GetLastModified (VOID); + BOOL GetLockEdits (VOID); + VOID SetLockEdits (BOOL b); + CString GetName (VOID); + BOOL GetNoMatch (VOID); + CString GetSort (VOID); + VOID SetSort (LPCTSTR pstr); + BOOL GetTransactions (VOID); + SHORT GetType (VOID); + LONG GetRecordCount (VOID); + BOOL GetUpdatable (VOID); + BOOL GetRestartable (VOID); + CString GetValidationText (VOID); + CString GetValidationRule (VOID); + CdbBookmark GetCacheStart (VOID); + VOID SetCacheStart (CdbBookmark &pbm); + LONG GetCacheSize (VOID); + VOID SetCacheSize (LONG l); + FLOAT GetPercentPosition (VOID); + VOID SetPercentPosition (FLOAT f); + LONG GetAbsolutePosition (VOID); + VOID SetAbsolutePosition (LONG l); + SHORT GetEditMode (VOID); + LONG GetUpdateOptions (VOID); + VOID SetUpdateOptions (LONG l); + SHORT GetRecordStatus (VOID); + BOOL GetStillExecuting (VOID); + LONG GetBatchSize (VOID); + VOID SetBatchSize (LONG l); + LONG GetBatchCollisionCount (VOID); + COleVariant GetBatchCollisions (VOID); + CdbConnection GetConnection (VOID); + + // Methods + VOID CancelUpdate (short sType = dbUpdateRegular); + VOID AddNew (VOID); + VOID Close (VOID); + CdbRecordset OpenRecordset (LONG lType=-1, LONG lOption=-1); + VOID Delete (VOID); + VOID Edit (VOID); + VOID FindFirst (LPCTSTR pstrCriteria); + VOID FindLast (LPCTSTR pstrCriteria); + VOID FindNext (LPCTSTR pstrCriteria); + VOID FindPrevious (LPCTSTR pstrCriteria); + VOID MoveFirst (VOID); + VOID MoveLast (LONG lOptions=-1); + VOID MoveNext (VOID); + VOID MovePrevious (VOID); + VOID Seek (LPCTSTR pstrComparison, LONG lNumFields, COleVariant cKey, ...); + VOID Update (short sType = dbUpdateRegular, VARIANT_BOOL bForce = FALSE); + CdbRecordset Clone (VOID); + VOID Requery (CdbQueryDef *pq = NULL); + VOID Move (LONG lRows, CdbBookmark *bm=NULL); + VOID FillCache (LONG lRows=-1, CdbBookmark *pbm=NULL); + CdbQueryDef CopyQueryDef (VOID); + COleVariant GetRows (LONG lRows=-1); + LONG GetRowsEx (LPVOID pvBuffer, LONG cbRow, LPDAORSETBINDING prb, LONG cBinding, LPVOID pvVarBuffer = NULL, LONG cbVarBuffer = 0, LONG lRows = -1); + VOID Cancel (VOID); + BOOL NextRecordset (VOID); + + inline VOID GetFieldV (COleVariant &vIndex, COleVariant &vValue); + inline VOID SetFieldV (COleVariant &vIndex, LPVARIANT pv); + + + COleVariant GetField (LPCTSTR pstrIndex); + COleVariant GetField (LONG lIndex); + COleVariant GetField (COleVariant &vIndex); + COleVariant GetField (CString &str){return GetField((LPCTSTR)str);} + + VOID SetField (LPCTSTR pstrIndex, LPVARIANT pv); + VOID SetField (LONG lIndex, LPVARIANT pv); + VOID SetField (COleVariant &vIndex, LPVARIANT pv); + VOID SetField (CString &str, LPVARIANT pv){SetField((LPCTSTR)str, pv);} + + // Collections + CdbFields Fields; +protected: + // GetRowsEx interface + CdbGetRowsEx m_GetRowsInt; + }; + + +/***************************************************************************** +* CdbField +*/ +class DLLEXPORT CdbField : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbField (VOID); + CONSTRUCTOR CdbField (DAOField *pfld, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbField (const CdbField &); + CdbField & operator = (const CdbField &); + VOID OnInterfaceChange (VOID); + + // Properties + LONG GetCollatingOrder (VOID); + SHORT GetType (VOID); + VOID SetType (SHORT s); + CString GetName (VOID); + VOID SetName (LPCTSTR pstr); + LONG GetSize (VOID); + VOID SetSize (LONG l); + CString GetSourceField (VOID); + CString GetSourceTable (VOID); + COleVariant GetValue (VOID); + + VOID SetValue (LPVARIANT pv); + LONG GetAttributes (VOID); + VOID SetAttributes (LONG l); + SHORT GetOrdinalPosition (VOID); + VOID SetOrdinalPosition (SHORT s); + CString GetValidationText (VOID); + VOID SetValidationText (LPCTSTR pstr); + BOOL GetValidateOnSet (VOID); + VOID SetValidateOnSet (BOOL b); + CString GetValidationRule (VOID); + VOID SetValidationRule (LPCTSTR pstr); + CString GetDefaultValue (VOID); + VOID SetDefaultValue (LPCTSTR pstr); + VOID SetDefaultValue (LPVARIANT pv); + BOOL GetRequired (VOID); + VOID SetRequired (BOOL b); + BOOL GetAllowZeroLength (VOID); + VOID SetAllowZeroLength (BOOL b); + BOOL GetDataUpdatable (VOID); + CString GetForeignName (VOID); + VOID SetForeignName (LPCTSTR pstr); + COleVariant GetOriginalValue (VOID); + COleVariant GetVisibleValue (VOID); + + // Methods + VOID AppendChunk (LPVARIANT pv); + COleVariant GetChunk (LONG lOffset, LONG lBytes); + LONG FieldSize (VOID); + CdbProperty CreateProperty (LPCTSTR pstrName=NULL, LONG lType=-1, LPVARIANT pvValue=NULL, BOOL bDDL=FALSE); + }; + +/***************************************************************************** +* CdbQueryDef +*/ +class DLLEXPORT CdbQueryDef : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbQueryDef (VOID); + CONSTRUCTOR CdbQueryDef (DAOQueryDef *pqd, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbQueryDef (const CdbQueryDef &); + CdbQueryDef & operator = (const CdbQueryDef &); + inline CdbField operator [] (LONG lIndex); + inline CdbField operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + COleDateTime GetDateCreated (VOID); + COleDateTime GetLastUpdated (VOID); + CString GetName (VOID); + VOID SetName (LPCTSTR pstr); + SHORT GetODBCTimeout (VOID); + VOID SetODBCTimeout (SHORT s); + SHORT GetType (VOID); + CString GetSQL (VOID); + VOID SetSQL (LPCTSTR pstr); + BOOL GetUpdatable (VOID); + CString GetConnect (VOID); + VOID SetConnect (LPCTSTR pstr); + BOOL GetReturnsRecords (VOID); + VOID SetReturnsRecords (BOOL b); + LONG GetRecordsAffected (VOID); + LONG GetMaxRecords (VOID); + VOID SetMaxRecords (LONG l); + BOOL GetStillExecuting (VOID); + LONG GetCacheSize (VOID); + VOID SetCacheSize (LONG l); + COleVariant GetPrepare (VOID); + VOID SetPrepare (LPVARIANT pv); + + // Methods + CdbRecordset OpenRecordset (LONG lType=-1, LONG lOption=-1, LONG lLockEdit=-1); + VOID Execute (LONG lOption=-1); + CdbProperty CreateProperty (LPCTSTR pstrName=NULL, LONG lType=-1, LPVARIANT pvValue=NULL, BOOL bDDL=FALSE); + VOID Close (VOID); + VOID Cancel (VOID); + + // Collections + CdbFields Fields; + CdbParameters Parameters; + }; + +/***************************************************************************** +* CdbTableDef +*/ +class DLLEXPORT CdbTableDef : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbTableDef (VOID); + CONSTRUCTOR CdbTableDef (DAOTableDef *ptd, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbTableDef (const CdbTableDef &); + CdbTableDef & operator = (const CdbTableDef &); + inline CdbField operator [] (LONG lIndex); + inline CdbField operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + LONG GetAttributes (VOID); + VOID SetAttributes (LONG l); + CString GetConnect (VOID); + VOID SetConnect (LPCTSTR pstr); + COleDateTime GetDateCreated (VOID); + COleDateTime GetLastUpdated (VOID); + CString GetName (VOID); + VOID SetName (LPCTSTR pstr); + CString GetSourceTableName (VOID); + VOID SetSourceTableName (LPCTSTR pstr); + BOOL GetUpdatable (VOID); + CString GetValidationText (VOID); + VOID SetValidationText (LPCTSTR pstr); + CString GetValidationRule (VOID); + VOID SetValidationRule (LPCTSTR pstr); + LONG GetRecordCount (VOID); + CString GetConflictTable (VOID); + COleVariant GetReplicaFilter (VOID); + VOID SetReplicaFilter (LPVARIANT pv); + + // Methods + CdbRecordset OpenRecordset (LONG lType=-1, LONG lOption=-1); + VOID RefreshLink (VOID); + CdbField CreateField (LPCTSTR pstrName=NULL, LONG lType=-1, LONG lSize=-1); + CdbIndex CreateIndex (LPCTSTR pstrName=NULL); + CdbProperty CreateProperty (LPCTSTR pstrName=NULL, LONG lType=-1, LPVARIANT pvValue=NULL, BOOL bDDL=FALSE); + + // Collections + CdbFields Fields; + CdbIndexes Indexes; + }; + +/***************************************************************************** +* CdbIndex +*/ +class DLLEXPORT CdbIndex : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbIndex (VOID); + CONSTRUCTOR CdbIndex (DAOIndex *pidx, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbIndex (const CdbIndex &); + CdbIndex & operator = (const CdbIndex &); + inline CdbField operator [] (LONG lIndex); + inline CdbField operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + CString GetName (VOID); + VOID SetName (LPCTSTR pstr); + BOOL GetForeign (VOID); + BOOL GetUnique (VOID); + VOID SetUnique (BOOL b); + BOOL GetClustered (VOID); + VOID SetClustered (BOOL b); + BOOL GetRequired (VOID); + VOID SetRequired (BOOL b); + BOOL GetIgnoreNulls (VOID); + VOID SetIgnoreNulls (BOOL b); + BOOL GetPrimary (VOID); + VOID SetPrimary (BOOL b); + LONG GetDistinctCount (VOID); + + // Methods + CdbField CreateField (LPCTSTR pstrName=NULL, LONG lType=-1, LONG lSize=-1); + CdbProperty CreateProperty (LPCTSTR pstrName=NULL, LONG lType=-1, LPVARIANT pvValue=NULL, BOOL bDDL=FALSE); + + // Collections + CdbIndexFields Fields; + }; + +/***************************************************************************** +* CdbParameter +*/ +class DLLEXPORT CdbParameter : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbParameter (VOID); + CONSTRUCTOR CdbParameter (DAOParameter *pprm, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbParameter (const CdbParameter &); + CdbParameter & operator = (const CdbParameter &); + VOID OnInterfaceChange (VOID); + + // Properties + CString GetName (VOID); + COleVariant GetValue (VOID); + VOID SetValue (LPVARIANT pv); + SHORT GetType (VOID); + VOID SetType (SHORT i); + SHORT GetDirection (VOID); + VOID SetDirection (SHORT i); + }; + +/***************************************************************************** +* CdbRelation +*/ +class DLLEXPORT CdbRelation : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbRelation (VOID); + CONSTRUCTOR CdbRelation (DAORelation *prl, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbRelation (const CdbRelation &); + CdbRelation & operator = (const CdbRelation &); + inline CdbField operator [] (LONG lIndex); + inline CdbField operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + CString GetName (VOID); + VOID SetName (LPCTSTR pstr); + CString GetTable (VOID); + VOID SetTable (LPCTSTR pstr); + CString GetForeignTable (VOID); + VOID SetForeignTable (LPCTSTR pstr); + LONG GetAttributes (VOID); + VOID SetAttributes (LONG); + BOOL GetPartialReplica (VOID); + VOID SetPartialReplica (BOOL b); + + // Methods + CdbField CreateField (LPCTSTR pstrName=NULL, LONG lType=-1, LONG lSize=-1); + + // Collections + CdbFields Fields; + }; + +/***************************************************************************** +* CdbUser +*/ +class DLLEXPORT CdbUser : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbUser (VOID); + CONSTRUCTOR CdbUser (DAOUser *pusr, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbUser (const CdbUser &); + CdbUser & operator = (const CdbUser &); + inline CdbGroup operator [] (LONG lIndex); + inline CdbGroup operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + CString GetName (VOID); + VOID SetName (LPCTSTR pstr); + VOID SetPID (LPCTSTR pstr); + VOID SetPassword (LPCTSTR pstr); + + // Methods + VOID NewPassword (LPCTSTR pstrOld, LPCTSTR pstrNew); + CdbGroup CreateGroup (LPCTSTR pstrName=NULL, LPCTSTR pstrPID=NULL); + + // Collections + CdbGroups Groups; + }; + +/***************************************************************************** +* CdbGroup +*/ +class DLLEXPORT CdbGroup : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbGroup (VOID); + CONSTRUCTOR CdbGroup (DAOGroup *pgrp, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbGroup (const CdbGroup &); + CdbGroup & operator = (const CdbGroup &); + inline CdbUser operator [] (LONG lIndex); + inline CdbUser operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + CString GetName (VOID); + VOID SetName (LPCTSTR pstr); + VOID SetPID (LPCTSTR pstr); + + // Methods + CdbUser CreateUser (LPCTSTR pstrName=NULL, LPCTSTR pstrPID=NULL, LPCTSTR pstrPassword=NULL); + + // Collections + CdbUsers Users; + }; + +/***************************************************************************** +* CdbDocument +*/ +class DLLEXPORT CdbDocument : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbDocument (VOID); + CONSTRUCTOR CdbDocument (DAODocument *pdoc, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbDocument (const CdbDocument &); + CdbDocument & operator = (const CdbDocument &); + VOID OnInterfaceChange (VOID); + + // Properties + CString GetName (VOID); + CString GetOwner (VOID); + VOID SetOwner (LPCTSTR pstr); + CString GetContainer (VOID); + CString GetUserName (VOID); + VOID SetUserName (LPCTSTR pstr); + LONG GetPermissions (VOID); + VOID SetPermissions (LONG l); + COleDateTime GetDateCreated (VOID); + COleDateTime GetLastUpdated (VOID); + LONG GetAllPermissions (VOID); + //Methods + CdbProperty CreateProperty (LPCTSTR pstrName=NULL, LONG lType=-1, LPVARIANT pvValue=NULL, BOOL bDDL=FALSE); + }; + +/***************************************************************************** +* CdbContainer +*/ +class DLLEXPORT CdbContainer : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbContainer (VOID); + CONSTRUCTOR CdbContainer (DAOContainer *pctn, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbContainer (const CdbContainer &); + CdbContainer & operator = (const CdbContainer &); + inline CdbDocument operator [] (LONG lIndex); + inline CdbDocument operator [] (LPCTSTR pstrIndex); + VOID OnInterfaceChange (VOID); + + // Properties + CString GetName (VOID); + CString GetOwner (VOID); + VOID SetOwner (LPCTSTR pstr); + CString GetUserName (VOID); + VOID SetUserName (LPCTSTR pstr); + LONG GetPermissions (VOID); + VOID SetPermissions (LONG l); + BOOL GetInherit (VOID); + VOID SetInherit (BOOL b); + LONG GetAllPermissions (VOID); + + // Collections + CdbDocuments Documents; + }; + +/***************************************************************************** +* CdbError +*/ +class DLLEXPORT CdbError : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbError (VOID); + CONSTRUCTOR CdbError (DAOError *perr, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbError (const CdbError &); + CdbError & operator = (const CdbError &); + VOID OnInterfaceChange (VOID); + + // Properties + LONG GetNumber (VOID); + CString GetSource (VOID); + CString GetDescription (VOID); + CString GetHelpFile (VOID); + LONG GetHelpContext (VOID); + }; + +/***************************************************************************** +* CdbProperty +*/ +class DLLEXPORT CdbProperty : public CdbObject + { + public: + + // Administration + CONSTRUCTOR CdbProperty (VOID); + CONSTRUCTOR CdbProperty (DAOProperty *pprp, BOOL bAddRef=FALSE); + CONSTRUCTOR CdbProperty (const CdbProperty &); + CdbProperty & operator = (const CdbProperty &); + + // Properties + COleVariant GetValue (VOID); + VOID SetValue (LPVARIANT pv); + CString GetName (VOID); + VOID SetName (LPCTSTR pstrName); + SHORT GetType (VOID); + VOID SetType (SHORT sType); + BOOL GetInherited (VOID); + }; + + +/***************************************************************************** +* Inline functions +*/ +inline BOOL CdbOleObject::Exists(void) + { + return (m_punkInterface ? TRUE : FALSE); + } + +/***************************************************************************** +* Recordset GetField functions +*/ + + +inline VOID CdbRecordset::GetFieldV( + COleVariant &vIndex, + COleVariant &vValue) +{ + DAORecordset * prs = (DAORecordset *)GetInterface(); + + if (!prs) + { + DAOVINIT(vValue); + return; + } + + DAOMFC_CALL(prs->get_Collect(vIndex, &vValue)); + + return; +} + +inline VOID CdbRecordset::SetFieldV( + COleVariant &vIndex, + LPVARIANT pv) +{ + DAORecordset * prs = (DAORecordset *)GetInterface(); + + if (!prs) + return; + + DAOMFC_CALL(prs->put_Collect(vIndex, *pv)); +} + + +/***************************************************************************** +* Default collection operators +*/ +inline CdbWorkspace CdbDBEngine::operator [] + (LONG lIndex) +{ +return Workspaces[lIndex]; +} + +inline CdbWorkspace CdbDBEngine::operator [] + (LPCTSTR pstrIndex) +{ +return Workspaces[pstrIndex]; +} + + +inline CdbDatabase CdbWorkspace::operator [] + (LONG lIndex) +{ +return Databases[lIndex]; +} + +inline CdbDatabase CdbWorkspace::operator [] + (LPCTSTR pstrIndex) +{ +return Databases[pstrIndex]; +} + +inline CdbTableDef CdbDatabase::operator [] + (LONG lIndex) +{ +return TableDefs[lIndex]; +} + +inline CdbTableDef CdbDatabase::operator [] + (LPCTSTR pstrIndex) +{ +return TableDefs[pstrIndex]; +} + +inline CdbQueryDef CdbConnection::operator [] + (LONG lIndex) +{ +return QueryDefs[lIndex]; +} + +inline CdbQueryDef CdbConnection::operator [] + (LPCTSTR pstrIndex) +{ +return QueryDefs[pstrIndex]; +} + +inline CdbField CdbRecordset::operator [] + (LONG lIndex) +{ +return Fields[lIndex]; +} + +inline CdbField CdbRecordset::operator [] + (LPCTSTR pstrIndex) +{ +return Fields[pstrIndex]; +} + + + +inline CdbField CdbTableDef::operator [] + (LONG lIndex) +{ +return Fields[lIndex]; +} + +inline CdbField CdbTableDef::operator [] + (LPCTSTR pstrIndex) +{ +return Fields[pstrIndex]; +} + +inline CdbField CdbQueryDef::operator [] + (LONG lIndex) +{ +return Fields[lIndex]; +} + +inline CdbField CdbQueryDef::operator [] + (LPCTSTR pstrIndex) +{ +return Fields[pstrIndex]; +} + +inline CdbField CdbIndex::operator [] + (LONG lIndex) +{ +return Fields[lIndex]; +} + +inline CdbField CdbIndex::operator [] + (LPCTSTR pstrIndex) +{ +return Fields[pstrIndex]; +} + +inline CdbField CdbRelation::operator [] + (LONG lIndex) +{ +return Fields[lIndex]; +} + +inline CdbField CdbRelation::operator [] + (LPCTSTR pstrIndex) +{ +return Fields[pstrIndex]; +} + +inline CdbGroup CdbUser::operator [] + (LONG lIndex) +{ +return Groups[lIndex]; +} + +inline CdbGroup CdbUser::operator [] + (LPCTSTR pstrIndex) +{ +return Groups[pstrIndex]; +} + +inline CdbUser CdbGroup::operator [] + (LONG lIndex) +{ +return Users[lIndex]; +} + +inline CdbUser CdbGroup::operator [] + (LPCTSTR pstrIndex) +{ +return Users[pstrIndex]; +} + +inline CdbDocument CdbContainer::operator [] + (LONG lIndex) +{ +return Documents[lIndex]; +} + +inline CdbDocument CdbContainer::operator [] + (LPCTSTR pstrIndex) +{ +return Documents[pstrIndex]; +} + +/***************************************************************************** +* Use different DAO interface for wide (UNICODE) versions +*/ + +#ifdef _UNICODE + +#define dbIID_IDAODBEngine IID_IDAODBEngineW +#define dbIID_IDAOError IID_IDAOErrorW +#define dbIID_IDAOErrors IID_IDAOErrorsW +#define dbIID_IDAOProperty IID_IDAOPropertyW +#define dbIID_IDAOProperties IID_IDAOPropertiesW +#define dbIID_IDAORecordset IID_IDAORecordsetW +#define dbIID_IDAORecordsets IID_IDAORecordsetsW +#define dbIID_IDAOWorkspace IID_IDAOWorkspaceW +#define dbIID_IDAOWorkspaces IID_IDAOWorkspacesW +#define dbIID_IDAOConnection IID_IDAOConnectionW +#define dbIID_IDAOConnections IID_IDAOConnectionsW +#define dbIID_IDAOTableDef IID_IDAOTableDefW +#define dbIID_IDAOTableDefs IID_IDAOTableDefsW +#define dbIID_IDAOField IID_IDAOFieldW +#define dbIID_IDAOFields IID_IDAOFieldsW +#define dbIID_IDAOIndex IID_IDAOIndexW +#define dbIID_IDAOIndexes IID_IDAOIndexesW +#define dbIID_IDAOIndexFields IID_IDAOIndexFieldsW +#define dbIID_IDAOGroup IID_IDAOGroupW +#define dbIID_IDAOGroups IID_IDAOGroupsW +#define dbIID_IDAOUser IID_IDAOUserW +#define dbIID_IDAOUsers IID_IDAOUsersW +#define dbIID_IDAODatabase IID_IDAODatabaseW +#define dbIID_IDAODatabases IID_IDAODatabasesW +#define dbIID_IDAOQueryDef IID_IDAOQueryDefW +#define dbIID_IDAOQueryDefs IID_IDAOQueryDefsW +#define dbIID_IDAOParameter IID_IDAOParameterW +#define dbIID_IDAOParameters IID_IDAOParametersW +#define dbIID_IDAORelation IID_IDAORelationW +#define dbIID_IDAORelations IID_IDAORelationsW +#define dbIID_IDAOContainer IID_IDAOContainerW +#define dbIID_IDAOContainers IID_IDAOContainersW +#define dbIID_IDAODocument IID_IDAODocumentW +#define dbIID_IDAODocuments IID_IDAODocumentsW + +#else + +#define dbIID_IDAODBEngine IID_IDAODBEngine +#define dbIID_IDAOError IID_IDAOError +#define dbIID_IDAOErrors IID_IDAOErrors +#define dbIID_IDAOProperty IID_IDAOProperty +#define dbIID_IDAOProperties IID_IDAOProperties +#define dbIID_IDAORecordset IID_IDAORecordset +#define dbIID_IDAORecordsets IID_IDAORecordsets +#define dbIID_IDAOWorkspace IID_IDAOWorkspace +#define dbIID_IDAOWorkspaces IID_IDAOWorkspaces +#define dbIID_IDAOConnection IID_IDAOConnection +#define dbIID_IDAOConnections IID_IDAOConnections +#define dbIID_IDAOTableDef IID_IDAOTableDef +#define dbIID_IDAOTableDefs IID_IDAOTableDefs +#define dbIID_IDAOField IID_IDAOField +#define dbIID_IDAOFields IID_IDAOFields +#define dbIID_IDAOIndex IID_IDAOIndex +#define dbIID_IDAOIndexes IID_IDAOIndexes +#define dbIID_IDAOIndexFields IID_IDAOIndexFields +#define dbIID_IDAOGroup IID_IDAOGroup +#define dbIID_IDAOGroups IID_IDAOGroups +#define dbIID_IDAOUser IID_IDAOUser +#define dbIID_IDAOUsers IID_IDAOUsers +#define dbIID_IDAODatabase IID_IDAODatabase +#define dbIID_IDAODatabases IID_IDAODatabases +#define dbIID_IDAOQueryDef IID_IDAOQueryDef +#define dbIID_IDAOQueryDefs IID_IDAOQueryDefs +#define dbIID_IDAOParameter IID_IDAOParameter +#define dbIID_IDAOParameters IID_IDAOParameters +#define dbIID_IDAORelation IID_IDAORelation +#define dbIID_IDAORelations IID_IDAORelations +#define dbIID_IDAOContainer IID_IDAOContainer +#define dbIID_IDAOContainers IID_IDAOContainers +#define dbIID_IDAODocument IID_IDAODocument +#define dbIID_IDAODocuments IID_IDAODocuments + +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +#endif // _DBDAO_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdaoerr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdaoerr.h new file mode 100644 index 0000000000000000000000000000000000000000..b406b82b3d7bb811c236cfa59d45a8cb23ce9824 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdaoerr.h @@ -0,0 +1,709 @@ + +/************************************************************************ +** D B D A O E R R . H * * +** * +** History * +** ------- * +** 5-17-95 Added to DAO SDK * +** 7-17-95 Added DBDAOERR macro, removed internal only codes * +** 8-30-96 Added replication and ODBC direct errors * +** * +** The following #defines map the integer to a descriptive name +** i.e. 3270 -> E_DAO_VtoPropNotFound * +** * +** * +************************************************************************* +** Copyright (C) 1996 by Microsoft Corporation * +** All Rights Reserved * +************************************************************************/ + +#ifndef _DDAOERR_H_ +#define _DDAOERR_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define DBDAOERR(x) MAKE_SCODE(SEVERITY_ERROR, FACILITY_CONTROL, x) + +#define E_DAO_InternalError DBDAOERR(3000) //Reserved error (|); there is no message for this error. +#define E_DAO_InvalidParameter DBDAOERR(3001) //Invalid argument. +#define E_DAO_CantBegin DBDAOERR(3002) //Couldn't start session. +#define E_DAO_TransTooDeep DBDAOERR(3003) //Couldn't start transaction; too many transactions already nested. +#define E_DAO_DatabaseNotFound DBDAOERR(3004) //Couldn't find database '|'. +#define E_DAO_DatabaseInvalidName DBDAOERR(3005) //'|' isn't a valid database name. +#define E_DAO_DatabaseLocked DBDAOERR(3006) //Database '|' is exclusively locked. +#define E_DAO_DatabaseOpenError DBDAOERR(3007) //Can't open library database '|'. +#define E_DAO_TableLocked DBDAOERR(3008) //Table '|' is exclusively locked. +#define E_DAO_TableInUse DBDAOERR(3009) //Couldn't lock table '|'; currently in use. +#define E_DAO_TableDuplicate DBDAOERR(3010) //Table '|' already exists. +#define E_DAO_ObjectNotFound DBDAOERR(3011) //Couldn't find object '|'. +#define E_DAO_ObjectDuplicate DBDAOERR(3012) //Object '|' already exists. +#define E_DAO_CannotRename DBDAOERR(3013) //Couldn't rename installable ISAM file. +#define E_DAO_TooManyOpenTables DBDAOERR(3014) //Can't open any more tables. +#define E_DAO_IndexNotFound DBDAOERR(3015) //'|' isn't an index in this table. +#define E_DAO_ColumnDoesNotFit DBDAOERR(3016) //Field won't fit in record. +#define E_DAO_ColumnTooBig DBDAOERR(3017) //The size of a field is too long. +#define E_DAO_ColumnNotFound DBDAOERR(3018) //Couldn't find field '|'. +#define E_DAO_NoCurrentIndex DBDAOERR(3019) //Operation invalid without a current index. +#define E_DAO_RecordNoCopy DBDAOERR(3020) //Update or CancelUpdate without AddNew or Edit. +#define E_DAO_NoCurrentRecord DBDAOERR(3021) //No current record. +#define E_DAO_KeyDuplicate DBDAOERR(3022) //Duplicate value in index, primary key, or relationship. Changes were unsuccessful. +#define E_DAO_AlreadyPrepared DBDAOERR(3023) //AddNew or Edit already used. +#define E_DAO_FileNotFound DBDAOERR(3024) //Couldn't find file '|'. +#define E_DAO_TooManyOpenFiles DBDAOERR(3025) //Can't open any more files. +#define E_DAO_DiskFull DBDAOERR(3026) //Not enough space on disk. +#define E_DAO_PermissionDenied DBDAOERR(3027) //Can't update. Database or object is read-only. +#define E_DAO_CannotOpenSystemDb DBDAOERR(3028) //Can't start your application. The system database is missing or opened exclusively by another user. +#define E_DAO_InvalidLogon DBDAOERR(3029) //Not a valid account name or password. +#define E_DAO_InvalidAccountName DBDAOERR(3030) //'|' isn't a valid account name. +#define E_DAO_InvalidPassword DBDAOERR(3031) //Not a valid password. +#define E_DAO_InvalidOperation DBDAOERR(3032) //Can't perform this operation. +#define E_DAO_AccessDenied DBDAOERR(3033) //No permission for '|'. +#define E_DAO_NotInTransaction DBDAOERR(3034) //Commit or Rollback without BeginTrans. +#define E_DAO_OutOfMemory DBDAOERR(3035) //* +#define E_DAO_CantAllocatePage DBDAOERR(3036) //Database has reached maximum size. +#define E_DAO_NoMoreCursors DBDAOERR(3037) //Can't open any more tables or queries. +#define E_DAO_OutOfBuffers DBDAOERR(3038) //* +#define E_DAO_TooManyIndexes DBDAOERR(3039) //Couldn't create index; too many indexes already defined. +#define E_DAO_ReadVerifyFailure DBDAOERR(3040) //Disk I/O error during read. +#define E_DAO_FilesysVersion DBDAOERR(3041) //Can't open a database created with a previous version of your application. +#define E_DAO_NoMoreFiles DBDAOERR(3042) //Out of MS-DOS file handles. +#define E_DAO_DiskError DBDAOERR(3043) //Disk or network error. +#define E_DAO_InvalidPath DBDAOERR(3044) //'|' isn't a valid path. +#define E_DAO_FileShareViolation DBDAOERR(3045) //Couldn't use '|'; file already in use. +#define E_DAO_FileLockViolation DBDAOERR(3046) //Couldn't save; currently locked by another user. +#define E_DAO_RecordTooBig DBDAOERR(3047) //Record is too large. +#define E_DAO_TooManyOpenDatabases DBDAOERR(3048) //Can't open any more databases. +#define E_DAO_InvalidDatabase DBDAOERR(3049) //Can't open database '|'. It may not be a database that your application recognizes, or the file may be corrupt. +#define E_DAO_FileLockingUnavailable DBDAOERR(3050) //Couldn't lock file. +#define E_DAO_FileAccessDenied DBDAOERR(3051) //Couldn't open file '|'. +#define E_DAO_SharingBufferExceeded DBDAOERR(3052) //MS-DOS file sharing lock count exceeded. You need to increase the number of locks installed with SHARE.EXE. +#define E_DAO_TaskLimitExceeded DBDAOERR(3053) //Too many client tasks. +#define E_DAO_TooManyLongColumns DBDAOERR(3054) //Too many Memo or OLE object fields. +#define E_DAO_InvalidFilename DBDAOERR(3055) //Not a valid file name. +#define E_DAO_AbortSalvage DBDAOERR(3056) //Couldn't repair this database. +#define E_DAO_LinkNotSupported DBDAOERR(3057) //Operation not supported on attached, or linked, tables. +#define E_DAO_NullKeyDisallowed DBDAOERR(3058) //Index or primary key can't contain a null value. +#define E_DAO_OperationCanceled DBDAOERR(3059) //Operation canceled by user. +#define E_DAO_QueryParmTypeMismatch DBDAOERR(3060) //Wrong data type for parameter '|'. +#define E_DAO_QueryMissingParmsM DBDAOERR(3061) //Too few parameters. Expected |. +#define E_DAO_QueryDuplicateAliasM DBDAOERR(3062) //Duplicate output alias '|'. +#define E_DAO_QueryDuplicateOutputM DBDAOERR(3063) //Duplicate output destination '|'. +#define E_DAO_QueryIsBulkOp DBDAOERR(3064) //Can't open action query '|'. +#define E_DAO_QueryIsNotBulkOp DBDAOERR(3065) //Can't execute a non-action query. +#define E_DAO_QueryNoOutputsM DBDAOERR(3066) //Query or table must contain at least one output field. +#define E_DAO_QueryNoInputTablesM DBDAOERR(3067) //Query input must contain at least one table or query. +#define E_DAO_QueryInvalidAlias DBDAOERR(3068) //Not a valid alias name. +#define E_DAO_QueryInvalidBulkInputM DBDAOERR(3069) //The action query '|' cannot be used as a row source. +#define E_DAO_QueryUnboundRef DBDAOERR(3070) //Can't bind name '|'. +#define E_DAO_QueryExprEvaluation DBDAOERR(3071) //Can't evaluate expression. +#define E_DAO_EvalEBESErr DBDAOERR(3072) //| +#define E_DAO_QueryNotUpdatable DBDAOERR(3073) //Operation must use an updatable query. +#define E_DAO_TableRepeatInFromList DBDAOERR(3074) //Can't repeat table name '|' in FROM clause. +#define E_DAO_QueryExprSyntax DBDAOERR(3075) //|1 in query expression '|2'. +#define E_DAO_QbeExprSyntax DBDAOERR(3076) //| in criteria expression. +#define E_DAO_FindExprSyntax DBDAOERR(3077) //| in expression. +#define E_DAO_InputTableNotFound DBDAOERR(3078) //Couldn't find input table or query '|'. +#define E_DAO_QueryAmbigRefM DBDAOERR(3079) //Ambiguous field reference '|'. +#define E_DAO_JoinTableNotInput DBDAOERR(3080) //Joined table '|' not listed in FROM clause. +#define E_DAO_UnaliasedSelfJoin DBDAOERR(3081) //Can't join more than one table with the same name (|). +#define E_DAO_ColumnNotInJoinTable DBDAOERR(3082) //JOIN operation '|' refers to a non-joined table. +#define E_DAO_QueryIsMGB DBDAOERR(3083) //Can't use internal report query. +#define E_DAO_QueryInsIntoBulkMGB DBDAOERR(3084) //Can't insert data with action query. +#define E_DAO_ExprUnknownFunctionM DBDAOERR(3085) //Undefined function '|' in expression. +#define E_DAO_QueryCannotDelete DBDAOERR(3086) //Couldn't delete from specified tables. +#define E_DAO_QueryTooManyGroupExprs DBDAOERR(3087) //Too many expressions in GROUP BY clause. +#define E_DAO_QueryTooManyOrderExprs DBDAOERR(3088) //Too many expressions in ORDER BY clause. +#define E_DAO_QueryTooManyDistExprs DBDAOERR(3089) //Too many expressions in DISTINCT output. +#define E_DAO_Column2ndSysMaint DBDAOERR(3090) //Resultant table not allowed to have more than one Counter or Autonumber field. +#define E_DAO_HavingWOGrouping DBDAOERR(3091) //HAVING clause (|) without grouping or aggregation. +#define E_DAO_HavingOnTransform DBDAOERR(3092) //Can't use HAVING clause in TRANSFORM statement. +#define E_DAO_OrderVsDistinct DBDAOERR(3093) //ORDER BY clause (|) conflicts with DISTINCT. +#define E_DAO_OrderVsGroup DBDAOERR(3094) //ORDER BY clause (|) conflicts with GROUP BY clause. +#define E_DAO_AggregateInArgument DBDAOERR(3095) //Can't have aggregate function in expression (|). +#define E_DAO_AggregateInWhere DBDAOERR(3096) //Can't have aggregate function in WHERE clause (|). +#define E_DAO_AggregateInOrderBy DBDAOERR(3097) //Can't have aggregate function in ORDER BY clause (|). +#define E_DAO_AggregateInGroupBy DBDAOERR(3098) //Can't have aggregate function in GROUP BY clause (|). +#define E_DAO_AggregateInJoin DBDAOERR(3099) //Can't have aggregate function in JOIN operation (|). +#define E_DAO_NullInJoinKey DBDAOERR(3100) //Can't set field '|' in join key to Null. +#define E_DAO_ValueBreaksJoin DBDAOERR(3101) //There is no record in table '|2' with key matching field(s) '|1'. +#define E_DAO_QueryTreeCycle DBDAOERR(3102) //Circular reference caused by '|'. +#define E_DAO_OutputAliasCycle DBDAOERR(3103) //Circular reference caused by alias '|' in query definition's SELECT list. +#define E_DAO_QryDuplicatedFixedSetM DBDAOERR(3104) //Can't specify Fixed Column Heading '|' in a crosstab query more than once. +#define E_DAO_NoSelectIntoColumnName DBDAOERR(3105) //Missing destination field name in SELECT INTO statement (|). +#define E_DAO_NoUpdateColumnName DBDAOERR(3106) //Missing destination field name in UPDATE statement (|). +#define E_DAO_QueryNoInsertPerm DBDAOERR(3107) //Record(s) can't be added; no Insert Data permission on '|'. +#define E_DAO_QueryNoReplacePerm DBDAOERR(3108) //Record(s) can't be edited; no Update Data permission on '|'. +#define E_DAO_QueryNoDeletePerm DBDAOERR(3109) //Record(s) can't be deleted; no Delete Data permission on '|'. +#define E_DAO_QueryNoReadDefPerm DBDAOERR(3110) //Couldn't read definitions; no Read Design permission for table or query '|'. +#define E_DAO_QueryNoTblCrtPerm DBDAOERR(3111) //Couldn't create; no Create permission for table or query '|'. +#define E_DAO_QueryNoReadPerm DBDAOERR(3112) //Record(s) can't be read; no Read Data permission on '|'. +#define E_DAO_QueryColNotUpd DBDAOERR(3113) //Can't update '|'; field not updatable. +#define E_DAO_QueryLVInDistinct DBDAOERR(3114) //Can't include Memo or OLE object when you select unique values (|). +#define E_DAO_QueryLVInAggregate DBDAOERR(3115) //Can't have Memo or OLE object in aggregate argument (|). +#define E_DAO_QueryLVInHaving DBDAOERR(3116) //Can't have Memo or OLE object in criteria (|) for aggregate function. +#define E_DAO_QueryLVInOrderBy DBDAOERR(3117) //Can't sort on Memo or OLE object (|). +#define E_DAO_QueryLVInJoin DBDAOERR(3118) //Can't join on Memo or OLE object (|). +#define E_DAO_QueryLVInGroupBy DBDAOERR(3119) //Can't group on Memo or OLE object (|). +#define E_DAO_DotStarWithGrouping DBDAOERR(3120) //Can't group on fields selected with '*' (|). +#define E_DAO_StarWithGrouping DBDAOERR(3121) //Can't group on fields selected with '*'. +#define E_DAO_IllegalDetailRef DBDAOERR(3122) //'|' not part of aggregate function or grouping. +#define E_DAO_StarNotAtLevel0 DBDAOERR(3123) //Can't use '*' in crosstab query. +#define E_DAO_QueryInvalidMGBInput DBDAOERR(3124) //Can't input from internal report query (|). +#define E_DAO_InvalidName DBDAOERR(3125) //'|' isn't a valid name. +#define E_DAO_QueryBadBracketing DBDAOERR(3126) //Invalid bracketing of name '|'. +#define E_DAO_InsertIntoUnknownCol DBDAOERR(3127) //INSERT INTO statement contains unknown field name '|'. +#define E_DAO_QueryNoDeleteTables DBDAOERR(3128) //Must specify tables to delete from. +#define E_DAO_SQLSyntax DBDAOERR(3129) //Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'. +#define E_DAO_SQLDeleteSyntax DBDAOERR(3130) //Syntax error in DELETE statement. +#define E_DAO_SQLFromSyntax DBDAOERR(3131) //Syntax error in FROM clause. +#define E_DAO_SQLGroupBySyntax DBDAOERR(3132) //Syntax error in GROUP BY clause. +#define E_DAO_SQLHavingSyntax DBDAOERR(3133) //Syntax error in HAVING clause. +#define E_DAO_SQLInsertSyntax DBDAOERR(3134) //Syntax error in INSERT statement. +#define E_DAO_SQLJoinSyntax DBDAOERR(3135) //Syntax error in JOIN operation. +#define E_DAO_SQLLevelSyntax DBDAOERR(3136) //Syntax error in LEVEL clause. +#define E_DAO_SQLMissingSemicolon DBDAOERR(3137) //Missing semicolon (;) at end of SQL statement. +#define E_DAO_SQLOrderBySyntax DBDAOERR(3138) //Syntax error in ORDER BY clause. +#define E_DAO_SQLParameterSyntax DBDAOERR(3139) //Syntax error in PARAMETER clause. +#define E_DAO_SQLProcedureSyntax DBDAOERR(3140) //Syntax error in PROCEDURE clause. +#define E_DAO_SQLSelectSyntax DBDAOERR(3141) //Syntax error in SELECT statement. +#define E_DAO_SQLTooManyTokens DBDAOERR(3142) //Characters found after end of SQL statement. +#define E_DAO_SQLTransformSyntax DBDAOERR(3143) //Syntax error in TRANSFORM statement. +#define E_DAO_SQLUpdateSyntax DBDAOERR(3144) //Syntax error in UPDATE statement. +#define E_DAO_SQLWhereSyntax DBDAOERR(3145) //Syntax error in WHERE clause. +#define E_DAO_RmtSQLCError DBDAOERR(3146) //ODBC--call failed. +#define E_DAO_RmtDataOverflow DBDAOERR(3147) //* +#define E_DAO_RmtConnectFailed DBDAOERR(3148) //* +#define E_DAO_RmtIncorrectSqlcDll DBDAOERR(3149) //* +#define E_DAO_RmtMissingSqlcDll DBDAOERR(3150) //* +#define E_DAO_RmtConnectFailedM DBDAOERR(3151) //ODBC--connection to '|' failed. +#define E_DAO_RmtDrvrVer DBDAOERR(3152) //* +#define E_DAO_RmtSrvrVer DBDAOERR(3153) //* +#define E_DAO_RmtMissingOdbcDll DBDAOERR(3154) //ODBC--couldn't find DLL '|'. +#define E_DAO_RmtInsertFailedM DBDAOERR(3155) //ODBC--insert failed on attached (linked) table '|'. +#define E_DAO_RmtDeleteFailedM DBDAOERR(3156) //ODBC--delete failed on attached (linked) table '|'. +#define E_DAO_RmtUpdateFailedM DBDAOERR(3157) //ODBC--update failed on attached (linked) table '|'. +#define E_DAO_RecordLocked DBDAOERR(3158) //Couldn't save record; currently locked by another user. +#define E_DAO_InvalidBookmark DBDAOERR(3159) //Not a valid bookmark. +#define E_DAO_TableNotOpen DBDAOERR(3160) //Table isn't open. +#define E_DAO_DecryptFail DBDAOERR(3161) //Couldn't decrypt file. +#define E_DAO_NullInvalid DBDAOERR(3162) //Null is invalid. +#define E_DAO_InvalidBufferSize DBDAOERR(3163) //Couldn't perform operation; data too long for field. +#define E_DAO_ColumnNotUpdatable DBDAOERR(3164) //Field can't be updated. +#define E_DAO_CantMakeINFFile DBDAOERR(3165) //Couldn't open .INF file. +#define E_DAO_MissingMemoFile DBDAOERR(3166) //Missing memo file. +#define E_DAO_RecordDeleted DBDAOERR(3167) //Record is deleted. +#define E_DAO_INFFileError DBDAOERR(3168) //Invalid .INF file. +#define E_DAO_ExprIllegalType DBDAOERR(3169) //Illegal type in expression. +#define E_DAO_InstalIsamNotFound DBDAOERR(3170) //Couldn't find installable ISAM. +#define E_DAO_NoConfigParameters DBDAOERR(3171) //Couldn't find net path or user name. +#define E_DAO_CantAccessPdoxNetDir DBDAOERR(3172) //Couldn't open PARADOX.NET. +#define E_DAO_NoMSysAccounts DBDAOERR(3173) //Couldn't open table 'MSysAccounts' in the system database file. +#define E_DAO_NoMSysGroups DBDAOERR(3174) //Couldn't open table 'MSysGroups' in the system database file. +#define E_DAO_DateOutOfRange DBDAOERR(3175) //Date is out of range or is in an invalid format. +#define E_DAO_ImexCantOpenFile DBDAOERR(3176) //Couldn't open file '|'. +#define E_DAO_ImexBadTableName DBDAOERR(3177) //Not a valid table name. +#define E_DAO_ImexOutOfMemory DBDAOERR(3178) //* +#define E_DAO_ImexEndofFile DBDAOERR(3179) //Encountered unexpected end of file. +#define E_DAO_ImexCantWriteToFile DBDAOERR(3180) //Couldn't write to file '|'. +#define E_DAO_ImexBadRange DBDAOERR(3181) //Invalid range. +#define E_DAO_ImexBogusFile DBDAOERR(3182) //Invalid file format. +#define E_DAO_TempDiskFull DBDAOERR(3183) //Not enough space on temporary disk. +#define E_DAO_RmtLinkNotFound DBDAOERR(3184) //Couldn't execute query; couldn't find attached, or linked, table. +#define E_DAO_RmtTooManyColumns DBDAOERR(3185) //SELECT INTO remote database tried to produce too many fields. +#define E_DAO_ReadConflictM DBDAOERR(3186) //Couldn't save; currently locked by user '|2' on machine '|1'. +#define E_DAO_CommitConflictM DBDAOERR(3187) //Couldn't read; currently locked by user '|2' on machine '|1'. +#define E_DAO_SessionWriteConflict DBDAOERR(3188) //Couldn't update; currently locked by another session on this machine. +#define E_DAO_JetSpecialTableLocked DBDAOERR(3189) //Table '|1' is exclusively locked by user '|3' on machine '|2'. +#define E_DAO_TooManyColumns DBDAOERR(3190) //Too many fields defined. +#define E_DAO_ColumnDuplicate DBDAOERR(3191) //Can't define field more than once. +#define E_DAO_OutputTableNotFound DBDAOERR(3192) //Couldn't find output table '|'. +#define E_DAO_JetNoUserName DBDAOERR(3193) //(unknown) +#define E_DAO_JetNoMachineName DBDAOERR(3194) //(unknown) +#define E_DAO_JetNoColumnName DBDAOERR(3195) //(expression) +#define E_DAO_DatabaseInUse DBDAOERR(3196) //Couldn't use '|'; database already in use. +#define E_DAO_DataHasChanged DBDAOERR(3197) //Data has changed; operation stopped. +#define E_DAO_TooManySessions DBDAOERR(3198) //Couldn't start session. Too many sessions already active. +#define E_DAO_ReferenceNotFound DBDAOERR(3199) //Couldn't find reference. +#define E_DAO_IntegrityViolMasterM DBDAOERR(3200) //Can't delete or change record. Since related records exist in table '|', referential integrity rules would be violated. +#define E_DAO_IntegrityViolSlaveM DBDAOERR(3201) //Can't add or change record. Referential integrity rules require a related record in table '|'. +#define E_DAO_ReadConflict DBDAOERR(3202) //Couldn't save; currently locked by another user. +#define E_DAO_AggregatingHigherLevel DBDAOERR(3203) //Can't specify subquery in expression (|). +#define E_DAO_DatabaseDuplicate DBDAOERR(3204) //Database already exists. +#define E_DAO_QueryTooManyXvtColumn DBDAOERR(3205) //Too many crosstab column headers (|). +#define E_DAO_SelfReference DBDAOERR(3206) //Can't create a relationship between a field and itself. +#define E_DAO_CantUseUnkeyedTable DBDAOERR(3207) //Operation not supported on Paradox table with no primary key. +#define E_DAO_IllegalDeletedOption DBDAOERR(3208) //Invalid Deleted entry in the Xbase section of initialization setting. +#define E_DAO_IllegalStatsOption DBDAOERR(3209) //Invalid Stats entry in the Xbase section of initialization setting. +#define E_DAO_ConnStrTooLong DBDAOERR(3210) //Connection string too long. +#define E_DAO_TableInUseQM DBDAOERR(3211) //Couldn't lock table '|'; currently in use. +#define E_DAO_JetSpecialTableInUse DBDAOERR(3212) //Couldn't lock table '|1'; currently in use by user '|3' on machine '|2'. +#define E_DAO_IllegalDateOption DBDAOERR(3213) //Invalid Date entry in the Xbase section of initialization setting. +#define E_DAO_IllegalMarkOption DBDAOERR(3214) //Invalid Mark entry in the Xbase section of initialization setting. +#define E_DAO_BtrieveTooManyTasks DBDAOERR(3215) //Too many Btrieve tasks. +#define E_DAO_QueryParmNotTableid DBDAOERR(3216) //Parameter '|' specified where a table name is required. +#define E_DAO_QueryParmNotDatabase DBDAOERR(3217) //Parameter '|' specified where a database name is required. +#define E_DAO_WriteConflict DBDAOERR(3218) //Couldn't update; currently locked. +#define E_DAO_IllegalOperation DBDAOERR(3219) //Invalid operation. +#define E_DAO_WrongCollatingSequence DBDAOERR(3220) //Incorrect collating sequence. +#define E_DAO_BadConfigParameters DBDAOERR(3221) //Invalid entries in the Btrieve section of initialization setting. +#define E_DAO_QueryContainsDbParm DBDAOERR(3222) //Query can't contain a Database parameter. +#define E_DAO_QueryInvalidParmM DBDAOERR(3223) //'|' isn't a valid parameter name. +#define E_DAO_BtrieveDDCorrupted DBDAOERR(3224) //Can't read Btrieve data dictionary. +#define E_DAO_BtrieveDeadlock DBDAOERR(3225) //Encountered record locking deadlock while performing Btrieve operation. +#define E_DAO_BtrieveFailure DBDAOERR(3226) //Errors encountered while using the Btrieve DLL. +#define E_DAO_IllegalCenturyOption DBDAOERR(3227) //Invalid Century entry in the Xbase section of initialization setting. +#define E_DAO_IllegalCollatingSeq DBDAOERR(3228) //Invalid Collating Sequence. +#define E_DAO_NonModifiableKey DBDAOERR(3229) //Btrieve--can't change field. +#define E_DAO_ObsoleteLockFile DBDAOERR(3230) //Out-of-date Paradox lock file. +#define E_DAO_RmtColDataTruncated DBDAOERR(3231) //ODBC--field would be too long; data truncated. +#define E_DAO_RmtCreateTableFailed DBDAOERR(3232) //ODBC--couldn't create table. +#define E_DAO_RmtOdbcVer DBDAOERR(3233) //* +#define E_DAO_RmtQueryTimeout DBDAOERR(3234) //ODBC--remote query timeout expired. +#define E_DAO_RmtTypeIncompat DBDAOERR(3235) //ODBC--data type not supported on server. +#define E_DAO_RmtUnexpectedNull DBDAOERR(3236) //* +#define E_DAO_RmtUnexpectedType DBDAOERR(3237) //* +#define E_DAO_RmtValueOutOfRange DBDAOERR(3238) //ODBC--data out of range. +#define E_DAO_TooManyActiveUsers DBDAOERR(3239) //Too many active users. +#define E_DAO_CantStartBtrieve DBDAOERR(3240) //Btrieve--missing Btrieve engine. +#define E_DAO_OutOfBVResources DBDAOERR(3241) //Btrieve--out of resources. +#define E_DAO_QueryBadUpwardRefedM DBDAOERR(3242) //Invalid reference in SELECT statement. +#define E_DAO_ImexNoMatchingColumns DBDAOERR(3243) //None of the import field names match fields in the appended table. +#define E_DAO_ImexPasswordProtected DBDAOERR(3244) //Can't import password-protected spreadsheet. +#define E_DAO_ImexUnparsableRecord DBDAOERR(3245) //Couldn't parse field names from first row of import table. +#define E_DAO_InTransaction DBDAOERR(3246) //Operation not supported in transactions. +#define E_DAO_RmtLinkOutOfSync DBDAOERR(3247) //ODBC--linked table definition has changed. +#define E_DAO_IllegalNetworkOption DBDAOERR(3248) //Invalid NetworkAccess entry in initialization setting. +#define E_DAO_IllegalTimeoutOption DBDAOERR(3249) //Invalid PageTimeout entry in initialization setting. +#define E_DAO_CantBuildKey DBDAOERR(3250) //Couldn't build key. +#define E_DAO_FeatureNotAvailable DBDAOERR(3251) //Operation is not supported for this type of object. +#define E_DAO_IllegalReentrancy DBDAOERR(3252) //Can't open form whose underlying query contains a user-defined function that attempts to set or get the form's RecordsetClone property. +#define E_DAO_UNUSED DBDAOERR(3253) //* +#define E_DAO_RmtDenyWriteIsInvalid DBDAOERR(3254) //ODBC--Can't lock all records. +#define E_DAO_ODBCParmsChanged DBDAOERR(3255) //* +#define E_DAO_INFIndexNotFound DBDAOERR(3256) //Index file not found. +#define E_DAO_SQLOwnerAccessSyntax DBDAOERR(3257) //Syntax error in WITH OWNERACCESS OPTION declaration. +#define E_DAO_QueryAmbiguousJoins DBDAOERR(3258) //Query contains ambiguous outer joins. +#define E_DAO_InvalidColumnType DBDAOERR(3259) //Invalid field data type. +#define E_DAO_WriteConflictM DBDAOERR(3260) //Couldn't update; currently locked by user '|2' on machine '|1'. +#define E_DAO_TableLockedM DBDAOERR(3261) //| +#define E_DAO_TableInUseMUQM DBDAOERR(3262) //| +#define E_DAO_InvalidTableId DBDAOERR(3263) //Invalid database object. +#define E_DAO_VtoNoFields DBDAOERR(3264) //No fields defined - cannot append Tabledef or Index. +#define E_DAO_VtoNameNotFound DBDAOERR(3265) //Item not found in this collection. +#define E_DAO_VtoFieldInCollection DBDAOERR(3266) //Can't append. Field is part of a TableDefs collection. +#define E_DAO_VtoNotARecordset DBDAOERR(3267) //Property can be set only when the field is part of a Recordset object's Fields collection. +#define E_DAO_VtoNoSetObjInDb DBDAOERR(3268) //Can't set this property once the object is part of a collection. +#define E_DAO_VtoIndexInCollection DBDAOERR(3269) //Can't append. Index is part of a TableDefs collection. +#define E_DAO_VtoPropNotFound DBDAOERR(3270) //Property not found. +#define E_DAO_VtoIllegalValue DBDAOERR(3271) //Invalid property value. +#define E_DAO_VtoNotArray DBDAOERR(3272) //Object isn't a collection. +#define E_DAO_VtoNoSuchMethod DBDAOERR(3273) //Method not applicable for this object. +#define E_DAO_NotExternalFormat DBDAOERR(3274) //External table isn't in the expected format. +#define E_DAO_UnexpectedEngineReturn DBDAOERR(3275) //Unexpected error from external database driver (|). +#define E_DAO_InvalidDatabaseId DBDAOERR(3276) //Invalid database ID. +#define E_DAO_TooManyKeys DBDAOERR(3277) //Can't have more than 10 fields in an index. +#define E_DAO_NotInitialized DBDAOERR(3278) //Database engine hasn't been initialized. +#define E_DAO_AlreadyInitialized DBDAOERR(3279) //Database engine has already been initialized. +#define E_DAO_ColumnInUse DBDAOERR(3280) //Can't delete a field that is part of an index or is needed by the system. +#define E_DAO_IndexInUse DBDAOERR(3281) //Can't delete this index. It is either the current index or is used in a relationship. +#define E_DAO_TableNotEmpty DBDAOERR(3282) //Can't create field or index in a table that is already defined. +#define E_DAO_IndexHasPrimary DBDAOERR(3283) //Primary key already exists. +#define E_DAO_IndexDuplicate DBDAOERR(3284) //Index already exists. +#define E_DAO_IndexInvalidDef DBDAOERR(3285) //Invalid index definition. +#define E_DAO_WrongMemoFileType DBDAOERR(3286) //Format of memo file doesn't match specified external database format. +#define E_DAO_ColumnCannotIndex DBDAOERR(3287) //Can't create index on the given field. +#define E_DAO_IndexHasNoPrimary DBDAOERR(3288) //Paradox index is not primary. +#define E_DAO_DDLConstraintSyntax DBDAOERR(3289) //Syntax error in CONSTRAINT clause. +#define E_DAO_DDLCreateTableSyntax DBDAOERR(3290) //Syntax error in CREATE TABLE statement. +#define E_DAO_DDLCreateIndexSyntax DBDAOERR(3291) //Syntax error in CREATE INDEX statement. +#define E_DAO_DDLColumnDefSyntax DBDAOERR(3292) //Syntax error in field definition. +#define E_DAO_DDLAlterTableSyntax DBDAOERR(3293) //Syntax error in ALTER TABLE statement. +#define E_DAO_DDLDropIndexSyntax DBDAOERR(3294) //Syntax error in DROP INDEX statement. +#define E_DAO_DDLDropSyntax DBDAOERR(3295) //Syntax error in DROP TABLE or DROP INDEX. +#define E_DAO_V11NotSupported DBDAOERR(3296) //Join expression not supported. +#define E_DAO_ImexNothingToImport DBDAOERR(3297) //Couldn't import table or query. No records found, or all records contain errors. +#define E_DAO_RmtTableAmbiguous DBDAOERR(3298) //There are several tables with that name. Please specify owner in the format 'owner.table'. +#define E_DAO_JetODBCConformanceError DBDAOERR(3299) //ODBC Specification Conformance Error (|). This error should be reported to the ODBC driver vendor. +#define E_DAO_IllegalRelationship DBDAOERR(3300) //Can't create a relationship. +#define E_DAO_DBVerFeatureNotAvailable DBDAOERR(3301) //Can't perform this operation; features in this version are not available in databases with older formats. +#define E_DAO_RulesLoaded DBDAOERR(3302) //Can't change a rule while the rules for this table are in use. +#define E_DAO_ColumnInRelationship DBDAOERR(3303) //Can't delete this field. It's part of one or more relationships. +#define E_DAO_InvalidPin DBDAOERR(3304) //You must enter a personal identifier (PID) consisting of at least four and no more than 20 characters and digits. +#define E_DAO_RmtBogusConnStr DBDAOERR(3305) //Invalid connection string in pass-through query. +#define E_DAO_SingleColumnExpected DBDAOERR(3306) //At most one field can be returned from a subquery that doesn't use the EXISTS keyword. +#define E_DAO_ColumnCountMismatch DBDAOERR(3307) //The number of columns in the two selected tables or queries of a union query don't match. +#define E_DAO_InvalidTopArgumentM DBDAOERR(3308) //Invalid TOP argument in select query. +#define E_DAO_PropertyTooLarge DBDAOERR(3309) //Property setting can't be larger than 2 KB. +#define E_DAO_JPMInvalidForV1x DBDAOERR(3310) //This property isn't supported for external data sources or for databases created in a previous version. +#define E_DAO_PropertyExists DBDAOERR(3311) //Property specified already exists. +#define E_DAO_TLVNativeUserTablesOnly DBDAOERR(3312) //Validation rules and default values can't be placed on system or attached (linked) tables. +#define E_DAO_TLVInvalidColumn DBDAOERR(3313) //Can't place this validation expression on this field. +#define E_DAO_TLVNoNullM DBDAOERR(3314) //Field '|' can't contain a null value. +#define E_DAO_TLVNoBlankM DBDAOERR(3315) //Field '|' can't be a zero-length string. +#define E_DAO_TLVRuleViolationM DBDAOERR(3316) //| +#define E_DAO_TLVRuleVioNoMessage DBDAOERR(3317) //One or more values entered is prohibited by the validation rule '|2' set for '|1'. +#define E_DAO_QueryTopNotAllowedM DBDAOERR(3318) //Top not allowed in delete queries. +#define E_DAO_SQLUnionSyntax DBDAOERR(3319) //Syntax error in union query. +#define E_DAO_TLVExprSyntaxM DBDAOERR(3320) //| in table-level validation expression. +#define E_DAO_NoDbInConnStr DBDAOERR(3321) //No database specified in connection string or IN clause. +#define E_DAO_QueryBadValueListM DBDAOERR(3322) //Crosstab query contains one or more invalid fixed column headings. +#define E_DAO_QueryIsNotRowReturning DBDAOERR(3323) //The query can not be used as a row source. +#define E_DAO_QueryIsDDL DBDAOERR(3324) //This query is a DDL query and cannot be used as a row source. +#define E_DAO_SPTReturnedNoRecords DBDAOERR(3325) //Pass-through query with ReturnsRecords property set to True did not return any records. +#define E_DAO_QueryIsSnapshot DBDAOERR(3326) //This Recordset is not updatable. +#define E_DAO_QueryExprOutput DBDAOERR(3327) //Field '|' is based on an expression and can't be edited. +#define E_DAO_QueryTableRO DBDAOERR(3328) //Table '|2' is read-only. +#define E_DAO_QueryRowDeleted DBDAOERR(3329) //Record in table '|' was deleted by another user. +#define E_DAO_QueryRowLocked DBDAOERR(3330) //Record in table '|' is locked by another user. +#define E_DAO_QueryFixupChanged DBDAOERR(3331) //To make changes to this field, first save the record. +#define E_DAO_QueryCantFillIn DBDAOERR(3332) //Can't enter value into blank field on 'one' side of outer join. +#define E_DAO_QueryWouldOrphan DBDAOERR(3333) //Records in table '|' would have no record on the 'one' side. +#define E_DAO_V10Format DBDAOERR(3334) //Can be present only in version 1.0 format. +#define E_DAO_InvalidDelete DBDAOERR(3335) //DeleteOnly called with non-zero cbData. +#define E_DAO_IllegalIndexDDFOption DBDAOERR(3336) //Btrieve: Invalid IndexDDF option in initialization setting. +#define E_DAO_IllegalDataCodePage DBDAOERR(3337) //Invalid DataCodePage option in initialization setting. +#define E_DAO_XtrieveEnvironmentError DBDAOERR(3338) //Btrieve: Xtrieve options aren't correct in initialization setting. +#define E_DAO_IllegalIndexNumberOption DBDAOERR(3339) //Btrieve: Invalid IndexDeleteRenumber option in initialization setting. +#define E_DAO_QueryIsCorruptM DBDAOERR(3340) //Query '|' is corrupt. +#define E_DAO_IncorrectJoinKeyM DBDAOERR(3341) //Current field must match join key '|' on 'one' side of outer join because it has been updated. +#define E_DAO_QueryLVInSubqueryM DBDAOERR(3342) //Invalid Memo or OLE object in subquery '|'. +#define E_DAO_InvalidDatabaseM DBDAOERR(3343) //Unrecognized database format '|'. +#define E_DAO_TLVCouldNotBindRef DBDAOERR(3344) //Unknown or invalid reference '|1' in validation expression or default value in table '|2'. +#define E_DAO_CouldNotBindRef DBDAOERR(3345) //Unknown or invalid field reference '|'. +#define E_DAO_QueryWrongNumDestCol DBDAOERR(3346) //Number of query values and destination fields aren't the same. +#define E_DAO_QueryPKeyNotOutput DBDAOERR(3347) //Can't add record(s); primary key for table '|' not in recordset. +#define E_DAO_QueryJKeyNotOutput DBDAOERR(3348) //Can't add record(s); join key of table '|' not in recordset. +#define E_DAO_NumericFieldOverflow DBDAOERR(3349) //Numeric field overflow. +#define E_DAO_InvalidObject DBDAOERR(3350) //Object is invalid for operation. +#define E_DAO_OrderVsUnion DBDAOERR(3351) //ORDER BY expression (|) uses non-output fields. +#define E_DAO_NoInsertColumnNameM DBDAOERR(3352) //No destination field name in INSERT INTO statement (|). +#define E_DAO_MissingDDFFile DBDAOERR(3353) //Btrieve: Can't find file FIELD.DDF. +#define E_DAO_SingleRecordExpected DBDAOERR(3354) //At most one record can be returned by this subquery. +#define E_DAO_DefaultExprSyntax DBDAOERR(3355) //Syntax error in default value. +#define E_DAO_ExclusiveDBConflict DBDAOERR(3356) //The database is opened by user '|2' on machine '|1'. +#define E_DAO_QueryIsNotDDL DBDAOERR(3357) //This query is not a properly formed data-definition query. +#define E_DAO_SysDatabaseOpenError DBDAOERR(3358) //Can't open Microsoft Jet engine system database. +#define E_DAO_SQLInvalidSPT DBDAOERR(3359) //Pass-through query must contain at least one character. +#define E_DAO_QueryTooComplex DBDAOERR(3360) //Query is too complex. +#define E_DAO_SetOpInvalidInSubquery DBDAOERR(3361) //Unions not allowed in a subquery. +#define E_DAO_RmtMultiRowUpdate DBDAOERR(3362) //Single-row update/delete affected more than one row of an attached (linked) table. Unique index contains duplicate values. +#define E_DAO_QueryNoJoinedRecord DBDAOERR(3363) //Record(s) can't be added; no corresponding record on the 'one' side. +#define E_DAO_QueryLVInSetOp DBDAOERR(3364) //Can't use Memo or OLE object field '|' in SELECT clause of a union query. +#define E_DAO_VtoInvalidOnRemote DBDAOERR(3365) //Property value not valid for REMOTE objects. +#define E_DAO_VtoNoFieldsRel DBDAOERR(3366) //Can't append a relation with no fields defined. +#define E_DAO_VtoObjectInCollection DBDAOERR(3367) //Can't append. Object already in collection. +#define E_DAO_DDLDiffNumRelCols DBDAOERR(3368) //Relationship must be on the same number of fields with the same data types. +#define E_DAO_DDLIndexColNotFound DBDAOERR(3369) //Can't find field in index definition. +#define E_DAO_DDLPermissionDenied DBDAOERR(3370) //Can't modify the design of table '|'. It's in a read-only database. +#define E_DAO_DDLObjectNotFound DBDAOERR(3371) //Can't find table or constraint. +#define E_DAO_DDLIndexNotFound DBDAOERR(3372) //No such index '|2' on table '|1'. +#define E_DAO_DDLNoPkeyOnRefdTable DBDAOERR(3373) //Can't create relationship. Referenced table '|' doesn't have a primary key. +#define E_DAO_DDLColumnsNotUnique DBDAOERR(3374) //The specified fields are not uniquely indexed in table '|'. +#define E_DAO_DDLIndexDuplicate DBDAOERR(3375) //Table '|1' already has an index named '|2' +#define E_DAO_DDLTableNotFound DBDAOERR(3376) //Table '|' doesn't exist. +#define E_DAO_DDLRelNotFound DBDAOERR(3377) //No such relationship '|2' on table '|1'. +#define E_DAO_DDLRelDuplicate DBDAOERR(3378) //There is already a relationship named '|' in the current database. +#define E_DAO_DDLIntegrityViolation DBDAOERR(3379) //Can't create relationships to enforce referential integrity. Existing data in table '|2' violates referential integrity rules with related table '|1'. +#define E_DAO_DDLColumnDuplicate DBDAOERR(3380) //Field '|2' already exists in table '|1'. +#define E_DAO_DDLColumnNotFound DBDAOERR(3381) //There is no field named '|2' in table '|1'. +#define E_DAO_DDLColumnTooBig DBDAOERR(3382) //The size of field '|' is too long. +#define E_DAO_DDLColumnInRel DBDAOERR(3383) //Can't delete field '|'. It's part of one or more relationships. +#define E_DAO_VtoCantDeleteBuiltIn DBDAOERR(3384) //Can't delete a built-in property. +#define E_DAO_VtoUDPsDontSupportNull DBDAOERR(3385) //User-defined properties don't support a Null value. +#define E_DAO_VtoMissingRequiredParm DBDAOERR(3386) //Property '|' must be set before using this method. +#define E_DAO_JetJetInitInvalidPath DBDAOERR(3387) //Can't find TEMP directory. +#define E_DAO_TLVExprUnknownFunctionM DBDAOERR(3388) //Unknown function '|2' in validation expression or default value on '|1'. +#define E_DAO_QueryNotSupported DBDAOERR(3389) //Query support unavailable. +#define E_DAO_AccountDuplicate DBDAOERR(3390) //Account name already exists. +#define E_DAO_JetwrnPropCouldNotSave DBDAOERR(3391) //An error has occurred. Properties were not saved. +#define E_DAO_RelNoPrimaryIndexM DBDAOERR(3392) //There is no primary key in table '|'. +#define E_DAO_QueryKeyTooBig DBDAOERR(3393) //Can't perform join, group, sort, or indexed restriction. A value being searched or sorted on is too long. +#define E_DAO_PropMustBeDDL DBDAOERR(3394) //Can't save property; property is a schema property. +#define E_DAO_IllegalRIConstraint DBDAOERR(3395) //Invalid referential integrity constraint. +#define E_DAO_RIViolationMasterCM DBDAOERR(3396) //Can't perform cascading operation. Since related records exist in table '|', referential integrity rules would be violated. +#define E_DAO_RIViolationSlaveCM DBDAOERR(3397) //Can't perform cascading operation. There must be a related record in table '|'. +#define E_DAO_RIKeyNullDisallowedCM DBDAOERR(3398) //Can't perform cascading operation. It would result in a null key in table '|'. +#define E_DAO_RIKeyDuplicateCM DBDAOERR(3399) //Can't perform cascading operation. It would result in a duplicate key in table '|'. +#define E_DAO_RIUpdateTwiceCM DBDAOERR(3400) //Can't perform cascading operation. It would result in two updates on field '|2' in table '|1'. +#define E_DAO_RITLVNoNullCM DBDAOERR(3401) //Can't perform cascading operation. It would cause field '|' to become null, which is not allowed. +#define E_DAO_RITLVNoBlankCM DBDAOERR(3402) //Can't perform cascading operation. It would cause field '|' to become a zero-length string, which is not allowed. +#define E_DAO_RITLVRuleViolationCM DBDAOERR(3403) //Can't perform cascading operation: '|' +#define E_DAO_RITLVRuleVioCNoMessage DBDAOERR(3404) //Can't perform cascading operation. The value entered is prohibited by the validation rule '|2' set for '|1'. +#define E_DAO_TLVRuleEvalEBESErr DBDAOERR(3405) //Error '|' in validation rule. +#define E_DAO_TLVDefaultEvalEBESErr DBDAOERR(3406) //Error '|' in default value. +#define E_DAO_BadMSysConf DBDAOERR(3407) //The server's MSysConf table exists, but is in an incorrect format. Contact your system administrator. +#define E_DAO_TooManyFindSessions DBDAOERR(3408) //Too many FastFind Sessions were invoked. +#define E_DAO_InvalidColumnM DBDAOERR(3409) //Invalid field name '|' in definition of index or relationship. +#define E_DAO_REPReadOnly DBDAOERR(3410) //* +#define E_DAO_RIInvalidBufferSizeCM DBDAOERR(3411) //Invalid entry. Can't perform cascading operation specified in table '|1' because value entered is too big for field '|2'. +#define E_DAO_RIWriteConflictCM DBDAOERR(3412) //| +#define E_DAO_JetSpecialRIWriteConflictCM DBDAOERR(3413) //Can't perform cascading update on table '|1' because it is currently in use by user '|3' on machine '|2'. +#define E_DAO_RISessWriteConflictCM DBDAOERR(3414) //Can't perform cascading update on table '|' because it is currently in use. +#define E_DAO_NoBlank DBDAOERR(3415) //Zero-length string is valid only in a text or Memo field. +#define E_DAO_FutureError DBDAOERR(3416) //| +#define E_DAO_QueryInvalidBulkInput DBDAOERR(3417) //An action query cannot be used as a row source. +#define E_DAO_NetCtrlMismatch DBDAOERR(3418) //Can't open '|'. Another user has the table open using a different network control file or locking style. +#define E_DAO_4xTableWith3xLocking DBDAOERR(3419) //Can't open this Paradox 4.x or Paradox 5.x table because ParadoxNetStyle is set to 3.x in the initialization setting. +#define E_DAO_VtoObjectNotSet DBDAOERR(3420) //Object is invalid or not set. +#define E_DAO_VtoDataConvError DBDAOERR(3421) //Data type conversion error. +#define E_DAO_TableNotLocked DBDAOERR(3422) //Can't modify table structure. Another user has the table open +#define E_DAO_RmtDriverNotSupported DBDAOERR(3423) //You cannot use ODBC to attach an external Microsoft Access or ISAM database table to your database +#define E_DAO_InvalidLanguageId DBDAOERR(3424) //Can't create database; Invalid locale +#define E_DAO_VtoInvalidOpDuringCallback DBDAOERR(3425) //This method or property is not currently available on this Recordset +#define E_DAO_VtoActionCancelled DBDAOERR(3426) //The action was cancelled by an associated object +#define E_DAO_VtoOleAutoFailed DBDAOERR(3427) //Error in DAO automation +#define E_DAO_DatabaseCorrupted_Cmpct DBDAOERR(3428) //The Jet database engine has encountered a problem in your database. To correct the problem, you must repair and compact the database +#define E_DAO_IncompatibleIIsam DBDAOERR(3429) //Incompatible installable ISAM version +#define E_DAO_OLEInitializeFailure DBDAOERR(3430) //While loading the Excel installable ISAM, OLE was unable to initialize +#define E_DAO_OLENotCompoundFile DBDAOERR(3431) //This is not an Excel 5 file +#define E_DAO_OLEFailure DBDAOERR(3432) //Error opening an Excel 5 file +#define E_DAO_IllegalIisamIniOption DBDAOERR(3433) //Invalid parameter in [Excel ISAM] section of the initialization file +#define E_DAO_TableFull DBDAOERR(3434) //Can't expand named range +#define E_DAO_TableCantClear DBDAOERR(3435) //Cannot delete Excel cells +#define E_DAO_CreateFailed DBDAOERR(3436) //Failure creating file +#define E_DAO_DatabaseFull DBDAOERR(3437) //Excel spreadsheet is full +#define E_DAO_SpecAndColumnMismatch DBDAOERR(3438) //File specification and data do not match +#define E_DAO_CantOpenWordMergeFiles DBDAOERR(3439) //Can't attach or import Word mail merge file +#define E_DAO_FileHasNoColumns DBDAOERR(3440) //Text file has no columns +#define E_DAO_AmbiguousDelimiters DBDAOERR(3441) //Text file specification field separator matches decimal seperator or text delimiter +#define E_DAO_FileSpecErrorM DBDAOERR(3442) //Error in entry |2 of section [|1] in schema.ini +#define E_DAO_NoSpecForFixedFormatM DBDAOERR(3443) //Can't create fixed width text file without column specification in section [|2] of schema.ini +#define E_DAO_WidthMissInFixedSpecM DBDAOERR(3444) //Column width required for column |2 in section [|1] of schema.ini +#define E_DAO_VtoWrongDllVersion DBDAOERR(3445) //Incorrect version of JET DLL found +#define E_DAO_VtoMissingVBA DBDAOERR(3446) //Could not locate a VBA related file +#define E_DAO_VtoVBAFailed DBDAOERR(3447) //Failed to initialize VBA +#define E_DAO_VtoOLEFailed DBDAOERR(3448) //An OLE system function failed +#define E_DAO_InvalidCountry DBDAOERR(3449) //Missing country code +#define E_DAO_QueryIncompleteRowM DBDAOERR(3450) //Syntax error in query. Incomplete query clause +#define E_DAO_QueryParmTypeNotAllowed DBDAOERR(3451) //Illegal reference in query +#define E_DAO_REPDBNotMaster DBDAOERR(3452) //You can't make changes to the design of the database at this replica. +#define E_DAO_REPCantRelate DBDAOERR(3453) //You can't establish or maintain an enforced relationship between a replicated table and a local table. +#define E_DAO_REPNotOwner DBDAOERR(3454) //* +#define E_DAO_CantMakeReplicable DBDAOERR(3455) //Can't make the database replicable. +#define E_DAO_CantMakeObjectReplicable DBDAOERR(3456) //Can't make the |2 object in |1 container replicable. +#define E_DAO_REPCantKeepLocal DBDAOERR(3457) //You can't set the KeepLocal property for an object that is already replicated. +#define E_DAO_REPCantKeepDBLocal DBDAOERR(3458) //The KeepLocal property cannot be set on a database; it can be set only on the objects in a database. +#define E_DAO_CantUnreplDatabase DBDAOERR(3459) //After a database has been replicated, you cannot remove the replication features from the database. +#define E_DAO_ReplConflict DBDAOERR(3460) //The operation you attempted conflicts with an existing operation involving this member of the replica set. +#define E_DAO_REPSetRepid DBDAOERR(3461) //The replication property you are attempting to set or delete is read-only and can't be changed. +#define E_DAO_TransportLoadFailure DBDAOERR(3462) //Failure to load a DLL. +#define E_DAO_TransportLoadFailureM DBDAOERR(3463) //Can't find the .dll '|2'. +#define E_DAO_TypeMismatchM DBDAOERR(3464) //Data type mismatch in criteria expression. +#define E_DAO_DiskIOM DBDAOERR(3465) //The disk drive you are attempting to access is unreadable. +#define E_DAO_FileAccessDeniedM DBDAOERR(3466) //* +#define E_DAO_InvalidPathM DBDAOERR(3467) //* +#define E_DAO_TranspAccessDeniedM DBDAOERR(3468) //Access was denied while accessing dropbox folder '|2'. +#define E_DAO_TransportDiskFullM DBDAOERR(3469) //The disk for dropbox folder '|2' is full. +#define E_DAO_TransportDiskIOM DBDAOERR(3470) //Disk failure accessing dropbox folder '|2'. +#define E_DAO_LogWriteFail DBDAOERR(3471) //Failure to write to the Synchronizer log file. +#define E_DAO_LogDiskFullM DBDAOERR(3472) //Disk full for path '|1'. +#define E_DAO_LogDiskIOM DBDAOERR(3473) //Disk failure while accessing log file '|1'. +#define E_DAO_LogFileAccessDeniedM DBDAOERR(3474) //Can't open the log file '|1' for writing. +#define E_DAO_LogFileShareViolationM DBDAOERR(3475) //Sharing violation while attempting to open log file '|1' in Deny Write mode. +#define E_DAO_TransportInvalidPathM DBDAOERR(3476) //Invalid dropbox path '|2'. +#define E_DAO_TranspInvalidAddressM DBDAOERR(3477) //Dropbox address '|2' is syntactically invalid. +#define E_DAO_RepNotPartial DBDAOERR(3478) //The replica is not a partial replica. +#define E_DAO_RepPartial DBDAOERR(3479) //Can't designate a partial replica as the Design Master for the replica set. +#define E_DAO_PARTInvalidRelNameM DBDAOERR(3480) //The relationship '|' in the partial filter expression is invalid. +#define E_DAO_PARTInvalidTableNameM DBDAOERR(3481) //The table name '|' in the partial filter expression is invalid. +#define E_DAO_REPInvalidFilter DBDAOERR(3482) //The filter expression for the partial replica is invalid. +#define E_DAO_TranspInvalidPasswordM DBDAOERR(3483) //The password supplied for the dropbox folder '|2' is invalid. +#define E_DAO_TransDestInvalidPassword DBDAOERR(3484) //The password used by the Synchronizer to write to a destination dropbox folder is invalid. +#define E_DAO_REPDBNotRep DBDAOERR(3485) //The object can't be replicated because the database is not replicated. +#define E_DAO_REPSecondGuid DBDAOERR(3486) //You can't add a second Replication ID AutoNumber field to a table. +#define E_DAO_REPOnlyBuiltin DBDAOERR(3487) //The database you are attempting to replicate can't be converted. +#define E_DAO_REPNoSuchRepid DBDAOERR(3488) //The value specified is not a ReplicaID for any member in the replica set. +#define E_DAO_REPObjectNotRep DBDAOERR(3489) //The object specified can't be replicated because it is missing a necessary resource. +#define E_DAO_CantCreateReplica DBDAOERR(3490) //Can't create a new replica because the '|2' object in '|1' container could not be replicated. +#define E_DAO_MustOpenDbExclusive DBDAOERR(3491) //The database must be opened in exclusive mode before it can be replicated. +#define E_DAO_CantDoSchemaChange DBDAOERR(3492) //The synchronization failed because a design change could not be applied to one of the replicas. +#define E_DAO_UnableToSetParam DBDAOERR(3493) //Can't set the specified Registry parameter for the Synchronizer. +#define E_DAO_UnableToGetParam DBDAOERR(3494) //Unable to retrieve the specified Registry parameter for the Synchronizer. +#define E_DAO_REPNoSuchSchedule DBDAOERR(3495) //There are no scheduled synchronizations between the two Synchronizers. +#define E_DAO_REPNoSuchExchange DBDAOERR(3496) //Replication Manager cannot find the ExchangeID in the MSysExchangeLog table. +#define E_DAO_REPCantSetSchedule DBDAOERR(3497) //Unable to set a schedule for the Synchronizer. +#define E_DAO_REPCantGetSchedule DBDAOERR(3498) //* +#define E_DAO_REPCantGetDBPath DBDAOERR(3499) //Can't retrieve the full path information for a member of the replica set. +#define E_DAO_REPCantSetExchange DBDAOERR(3500) //You cannot specify two different Synchronizers to manage the same replica. +#define E_DAO_REPNotUpdated DBDAOERR(3501) //* +#define E_DAO_REPNotManaged DBDAOERR(3502) //The Design Master or replica is not being managed by a Synchronizer. +#define E_DAO_ValueNotSet DBDAOERR(3503) //The Synchronizer's Registry has no value set for the key you queried. +#define E_DAO_REPInvalidTID DBDAOERR(3504) //The Synchronizer ID does not match an existing ID in the MSysTranspAddress table. +#define E_DAO_REPFilterNotFound DBDAOERR(3505) //You attempted to delete or get information about a partial filter that does not exist in MSysFilters. +#define E_DAO_OpenLog DBDAOERR(3506) //The Synchronizer is unable to open the Synchronizer log. +#define E_DAO_WriteLog DBDAOERR(3507) //Failure writing to the Synchronizer log. +#define E_DAO_NoTransport DBDAOERR(3508) //There is no active transport for the Synchronizer. +#define E_DAO_TransportNotFound DBDAOERR(3509) //Could not find a valid transport for this Synchronizer. +#define E_DAO_ReplicaAlreadyLocked DBDAOERR(3510) //The member of the replica set you are attempting to synchronize is currently being used in another synchronization. +#define E_DAO_DBAccess DBDAOERR(3511) //* +#define E_DAO_TransportReadFailure DBDAOERR(3512) //Failed to read the dropbox folder. +#define E_DAO_TransportWriteFailure DBDAOERR(3513) //Failed to write to the dropbox folder. +#define E_DAO_NoExchange DBDAOERR(3514) //Synchronizer could not find any scheduled or on-demand synchronizations to process. +#define E_DAO_SysClock DBDAOERR(3515) //The Microsoft Jet database engine could not read the system clock on your computer. +#define E_DAO_NoTransportAddress DBDAOERR(3516) //Destination synchronizer is not configured to support indirect synchronronization, and the destination replica is unavailable for direct synchronization +#define E_DAO_NoMessage DBDAOERR(3517) //Synchronizer could not find any messages to process. +#define E_DAO_TransporterNotFound DBDAOERR(3518) //Could not find Synchronizer in the MSysTranspAddress table. +#define E_DAO_TransportSendFailure DBDAOERR(3519) //Failed to send a message. +#define E_DAO_ReplicaNotFound DBDAOERR(3520) //The replica name or ID does not match a currently managed member of the replica set. +#define E_DAO_OutOfSynch DBDAOERR(3521) //Two members of the replica set cannot be synchronized because there is no common point to start the synchronization. +#define E_DAO_ExchangeNotFound DBDAOERR(3522) //Synchronizer cannot find the record of a specific synchronization in the MSysExchangeLog table. +#define E_DAO_SchemaNotFound DBDAOERR(3523) //Synchronizer cannot find a specific version number in the MSysSchChange table. +#define E_DAO_SchemaHistMismatch DBDAOERR(3524) //The history of design changes in the replica does not match the history in the Design Master. +#define E_DAO_MessageDBAccess DBDAOERR(3525) //Synchronizer could not access the message database. +#define E_DAO_ObjectAlreadyExists DBDAOERR(3526) //The name selected for the system object is already in use. +#define E_DAO_ObjectDoesntExist DBDAOERR(3527) //The Synchronizer or Replication Manager could not find the system object. +#define E_DAO_NoNewData DBDAOERR(3528) //There is no new data in shared memory for the Synchronizer or Replication Manager to read. +#define E_DAO_PrevDataNotRead DBDAOERR(3529) //The Synchronizer or Replication Manager found unread data in the shared memory. The existing data will be overwritten. +#define E_DAO_ClientAlreadyExists DBDAOERR(3530) //The Synchronizer is already serving a client. +#define E_DAO_WaitTimeout DBDAOERR(3531) //The wait period for an event has timed out. +#define E_DAO_ServerInitialization DBDAOERR(3532) //Synchronizer could not be initialized. +#define E_DAO_ObjectAbandoned DBDAOERR(3533) //The system object used by a process still exists after the process has stopped. +#define E_DAO_NoEvent DBDAOERR(3534) //Synchronizer looked for a system event but did not find one to report to the client. +#define E_DAO_ClientSentTerm DBDAOERR(3535) //Client has asked the Synchronizer to terminate operation. +#define E_DAO_InvalidMessage DBDAOERR(3536) //Synchronizer received an invalid message for a member of the replica set that it manages. +#define E_DAO_NoClient DBDAOERR(3537) //The Synchronizer's client is no longer present and cannot be notified. +#define E_DAO_TooManyTasks DBDAOERR(3538) //Cannot initialize Synchronizer because there are too many applications running. +#define E_DAO_SysDiskIO DBDAOERR(3539) //A system error has occurred or your swap file has reached its limit. +#define E_DAO_PageFile DBDAOERR(3540) //Your swap file has reached its limit or is corrupted. +#define E_DAO_ProcessStillActive DBDAOERR(3541) //Synchronizer could not be shut down properly and is still active. +#define E_DAO_ProcessAborted DBDAOERR(3542) //Process stopped when attempting to terminate Synchronizer client. +#define E_DAO_TransporterNotSetup DBDAOERR(3543) //Synchronizer has not been set up. +#define E_DAO_ServerAlreadyRunning DBDAOERR(3544) //Synchronizer is already running. +#define E_DAO_DiffReplicaSet DBDAOERR(3545) //The two replicas you are attempting to synchronize are from different replica sets. +#define E_DAO_BadExchangeType DBDAOERR(3546) //The type of synchronization you are attempting is not valid. +#define E_DAO_NoReplica DBDAOERR(3547) //Synchronizer could not find a replica from the correct set to complete the synchronization. +#define E_DAO_GuidMismatch DBDAOERR(3548) //GUIDs do not match or the requested GUID could not be found. +#define E_DAO_FilenameTooLong DBDAOERR(3549) //The file name you provided is too long. +#define E_DAO_NoGuidIndex DBDAOERR(3550) //There is no index on the GUID column. +#define E_DAO_UnableToDeleteParam DBDAOERR(3551) //Unable to delete the specified Registry parameter for the Synchronizer. +#define E_DAO_ValueTooBig DBDAOERR(3552) //The size of the Registry parameter exceeds the maximum allowed. +#define E_DAO_REPGuidCreateFailure DBDAOERR(3553) //The GUID could not be created. +#define E_DAO_REPDBMovedCopied DBDAOERR(3554) //* +#define E_DAO_REPNoValidNick DBDAOERR(3555) //All valid nicknames for replicas are already in use. +#define E_DAO_TransportDestInvalidPath DBDAOERR(3556) //Invalid path for destination dropbox folder. +#define E_DAO_TransDestInvalidAddress DBDAOERR(3557) //Invalid address for destination dropbox folder. +#define E_DAO_TransportDestDiskIO DBDAOERR(3558) //Disk I/O error at destination dropbox folder. +#define E_DAO_TransportDestDiskFull DBDAOERR(3559) //Failure to write because destination disk is full. +#define E_DAO_REPSameReplicaID DBDAOERR(3560) //The two members of the replica set you are attempting to synchronize have the same ReplicaID. +#define E_DAO_REPBothMasters DBDAOERR(3561) //The two members of the replica set you are attempting to synchronize are both Design Masters. +#define E_DAO_TransDestAccessDenied DBDAOERR(3562) //Access denied at destination dropbox folder. +#define E_DAO_TransportSrcAccess DBDAOERR(3563) //Fatal error accessing a local dropbox folder. +#define E_DAO_TransportSrcFileNotFound DBDAOERR(3564) //Synchronizer can't find the source file for messages. +#define E_DAO_TransSrcSharingViolation DBDAOERR(3565) //There is a sharing violation in the source dropbox folder because the message database is open in another application. +#define E_DAO_NetworkIO DBDAOERR(3566) //Network I/O error. +#define E_DAO_TransportWrongMessage DBDAOERR(3567) //Message in dropbox folder belongs to the wrong Synchronizer. +#define E_DAO_TransportDeleteFailure DBDAOERR(3568) //Synchronizer could not delete a file. +#define E_DAO_RepRemoved DBDAOERR(3569) //This member of the replica set has been logically removed from the set and is no longer available. +#define E_DAO_FiltersChanged DBDAOERR(3570) //The filters defining a partial replica are out of synch with each other. +#define E_DAO_LimitedUpdate DBDAOERR(3571) //The attempt to set a column in a partial replica violated a rule governing partial replicas. +#define E_DAO_TempDiskIO DBDAOERR(3572) //A disk I/O error occurred while reading or writing to the TEMP directory. +#define E_DAO_DirNotManaged DBDAOERR(3573) //The directory you queried for a list of replicas is not a managed directory. +#define E_DAO_RepidChanged DBDAOERR(3574) //The ReplicaID for this member of the replica set was reassigned during a move or copy procedure. +#define E_DAO_DiskFullM DBDAOERR(3575) //The disk drive you are attempting to write to is full. +#define E_DAO_ShareViolationM DBDAOERR(3576) //The database you are attempting to open is already in use by another application. +#define E_DAO_UpdateReplCol DBDAOERR(3577) //Can't update replication system column. +#define E_DAO_GetDbinfoM DBDAOERR(3578) //Failure to replicate database; can't determine whether the database is open in exclusive mode. +#define E_DAO_MakeRepTablesM DBDAOERR(3579) //Could not create replication system tables needed to make the database replicable. +#define E_DAO_AddReplicaInfoM DBDAOERR(3580) //Could not add rows needed to make the database replicable. +#define E_DAO_OpenRepTablesM DBDAOERR(3581) //Can't open replication system table '|' because the table is already in use. +#define E_DAO_CreateReplicaObjectM DBDAOERR(3582) //Cannot make a new replica because the |2 object in |1 container could not be made replicable. +#define E_DAO_MakeObjectReplM DBDAOERR(3583) //Cannot make the |2 object in |1 container replicable. +#define E_DAO_OutOfMemoryM DBDAOERR(3584) //Insufficient memory to complete operation. +#define E_DAO_RepTooManyColumnsM DBDAOERR(3585) //Can't replicate the table; the number of columns exceeds the maximum allowed. +#define E_DAO_PARTFilterExprSyntaxM DBDAOERR(3586) //Syntax error in partial filter expression on table |1. +#define E_DAO_PARTUnknownTokenM DBDAOERR(3587) //Invalid expression in the ReplicaFilter property. +#define E_DAO_PARTExprEvaluationM DBDAOERR(3588) //Error when evaluating the partial filter expression. +#define E_DAO_PARTExprUnknownFuncM DBDAOERR(3589) //The partial filter expression contains an unknown function. +#define E_DAO_LimitedUpdateM DBDAOERR(3590) //Violates the rules for partial replicas. +#define E_DAO_LogInvalidPathM DBDAOERR(3591) //Log file path '|1' is invalid. +#define E_DAO_REPPasswdNotAllowed DBDAOERR(3592) //You can't replicate a password-protected database or set password protection on a replicated database. +#define E_DAO_BadSingleMasterAttrib DBDAOERR(3593) //You can't change the data master attribute for the replica set. +#define E_DAO_BadMultiMasterAttrib DBDAOERR(3594) //You can't change the data master attribute for the replica set. It allows data changes only at the Design Master. +#define E_DAO_REPCantRepair DBDAOERR(3595) //The system tables in your replica are no longer reliable and the replica should not be used. +#define E_DAO_NoDataIncluded DBDAOERR(3596) //* +#define E_DAO_SenderNotFound DBDAOERR(3597) //* +#define E_DAO_CouldnotFindService DBDAOERR(3598) //* +#define E_DAO_UnableToStartService DBDAOERR(3599) //* +#define E_DAO_ExprAggIllegalOnGuid DBDAOERR(3600) //Aggregation expressions cannot use GUIDs. +#define E_DAO_RefreshReplicaList DBDAOERR(3601) //* +#define E_DAO_MoreWorkNeeded DBDAOERR(3602) //* +#define E_DAO_SenderTooOld DBDAOERR(3603) //* +#define E_DAO_RepAccess DBDAOERR(3604) //* +#define E_DAO_REPDbNotReplicableM DBDAOERR(3605) //Synchronizing with a non-replicated database is not allowed. The '|' database is not a Design Master or replica. +#define E_DAO_DaemonDied DBDAOERR(3606) //* +#define E_DAO_REPCantDelete DBDAOERR(3607) //The replication property you are attempting to delete is read-only and cannot be removed. +#define E_DAO_IndexCantBuild DBDAOERR(3608) //Record length is too long for an indexed Paradox table. +#define E_DAO_RelNoPrimaryIndex DBDAOERR(3609) //No unique index found for the referenced field of the primary table. +#define E_DAO_QuerySameSrcDestTableM DBDAOERR(3610) //Same table '|' referenced as both the source and destination in make-table query. +#define E_DAO_InvalidDDLObject DBDAOERR(3611) //Can't execute data definition statements on linked data sources. +#define E_DAO_QueryMGBWithSubquery DBDAOERR(3612) //Multi-level GROUP BY clause is not allowed in a subquery. +#define E_DAO_SQLLinkNotSupported DBDAOERR(3613) //Can't create a relationship on linked ODBC tables. +#define E_DAO_InvalidFindOnGUID DBDAOERR(3614) //GUID not allowed in Find method criteria expression. +#define E_DAO_QueryJoinExprInComp DBDAOERR(3615) //Type mismatch in JOIN expression. +#define E_DAO_UpdateNotAvailable DBDAOERR(3616) //Updating data in a linked table is not supported by this ISAM. +#define E_DAO_DeleteNotAvailable DBDAOERR(3617) //Deleting data in a linked table is not supported by this ISAM. +#define E_DAO_ExceptTableCreateFail DBDAOERR(3618) //Exceptions table could not be created on import/export. +#define E_DAO_ExceptTableWriteFail DBDAOERR(3619) //Records could not be added to exceptions table. +#define E_DAO_ExcelOLEConnectLost DBDAOERR(3620) //The connection for viewing your linked Microsoft Excel worksheet was lost. +#define E_DAO_CantChangeDbPwdOnShared DBDAOERR(3621) //Can't change password on a shared open database. +#define E_DAO_RmtMustCheckTimeStamp DBDAOERR(3622) //You must use the dbSeeChanges option with OpenRecordset when accessing a SQL Server table that has an IDENTITY column. +#define E_DAO_NotWithBoundFileM DBDAOERR(3623) //Cannot access the FoxPro 3.0 bound DBF file '|'. +#define E_DAO_CommitConflict DBDAOERR(3624) //Couldn't read the record; currently locked by another user. +#define E_DAO_NoSuchSpecM DBDAOERR(3625) //The text file specification '|' does not exist. You can't import, export, or link using the specification. +#define E_DAO_TooManyIndexesM DBDAOERR(3626) //The operation failed. There are too many indexes on table '|'. Delete some of the indexes on the table and try the operation again. +#define E_DAO_TransExeNotFound DBDAOERR(3627) //Cannot find the executable file for the Synchronizer (mstran35.exe). +#define E_DAO_RemRepNotManaged DBDAOERR(3628) //Partner replica is not managed by a Synchronizer. +#define E_DAO_FSDropboxShared DBDAOERR(3629) //Synchronizer '|1' is also using the same File System dropbox '|2'. +#define E_DAO_FSDropboxSharedM DBDAOERR(3630) //Synchronizer '|1' is also using the same File System dropbox '|2'. +#define E_DAO_RepInvalidTableInFilter DBDAOERR(3631) //Invalid Table Name In Filter +#define E_DAO_InetNotEnabled DBDAOERR(3632) //Internet Transport not enabled on the remote Synchronizer. +#define E_DAO_VtoDllLoadFailed DBDAOERR(3633) //Can't load DLL: '|' +#define E_DAO_REPDBIsPartial DBDAOERR(3634) //Cannot create a replica using a partial replica. +#define E_DAO_CantCreatePartialSys DBDAOERR(3635) //Cannot create partial replica of a system database. +#define E_DAO_CantPopulateWithErrors DBDAOERR(3636) //Cannot populate the replica or change the replica's filter because the replica has conflicts or data errors. +#define E_DAO_QueryEmbeddedVarTab DBDAOERR(3637) //Cannot use the crosstab of a non-fixed column as a subquery. +#define E_DAO_SrcCntrlDB DBDAOERR(3638) //A Source Controlled database cannot be made replicable. +#define E_DAO_CantCreateSysReplica DBDAOERR(3639) //Cannot create a replica of a System database. +#define E_DAO_VtoFetchBuffTooSmall DBDAOERR(3640) //The fetch buffer was too small for the amount of data you requested. +#define E_DAO_VtoEOFDuringFetch DBDAOERR(3641) //There are fewer records remaining in the recordset than you requested. +#define E_DAO_VtoSilentCancel DBDAOERR(3642) //A cancel was performed on the operation. +#define E_DAO_VtoRecordDeleted DBDAOERR(3643) //One of the records in the recordset was deleted by another process. +#define E_DAO_3644 DBDAOERR(3644) //* +#define E_DAO_VtoBadBindInfo DBDAOERR(3645) //One of the binding parameters is incorrect. +#define E_DAO_VtoRowLenTooSmall DBDAOERR(3646) //The specified row length is shorter than the sum of the column lengths. +#define E_DAO_VtoColumnMissing DBDAOERR(3647) //A column requested is not being returned to the recordset. +#define E_DAO_BothPartials DBDAOERR(3648) //Cannot synchronize a partial replica with another partial replica. +#define E_DAO_InvalidCodePage DBDAOERR(3649) //The language-specific code page was not specified or could not be found. +#define E_DAO_InetTooSlow DBDAOERR(3650) //Either the Internet is very slow OR there is some problem in the replication manager setup on the internet server machine. +#define E_DAO_InetInvalidAddress DBDAOERR(3651) //Invalid internet address. +#define E_DAO_InetLoginFailure DBDAOERR(3652) //Internet login failure. +#define E_DAO_InetNotSetup DBDAOERR(3653) //Internet not set up. +#define E_DAO_InetInternalFailure DBDAOERR(3654) //Internal internet failure. +#define E_DAO_InetServicesUnavailable DBDAOERR(3655) //The wininet.dll can't be loaded or initialized. +#define E_DAO_PARTExprEvaluation DBDAOERR(3656) //Error in evaluating a partial expression +#define E_DAO_PARTFilterEvalM DBDAOERR(3657) //Error in evaluating the boolean filter expression for table '|1'. +#define E_DAO_PARTBinaryNotAllowedM DBDAOERR(3658) //Binary column '|' cannot be used in a boolean filter. +#define E_DAO_PARTUnenforcedRelM DBDAOERR(3659) //Relationship '|1' is unenforced. Relationship in a partial filter expression must be enforced. +#define E_DAO_ExchangeFailed DBDAOERR(3660) //Requested exchange failed because '|1' +#define E_DAO_ExchangeFailedM DBDAOERR(3661) //Requested exchange failed because '|1' +#define E_DAO_VtoRSNeedsBatchCursorLib DBDAOERR(3662) //* +#define E_DAO_VtoNeedDiffCursorLibrary DBDAOERR(3663) //This operation requires a different cursor library. +#define E_DAO_VtoStillConnecting DBDAOERR(3664) //An asynchronous OpenConnection call is not yet complete, and you cannot yet reference the returned Connection object until it is complete. +#define E_DAO_AccessDeniedRepl DBDAOERR(3665) //You cannot modify the replication system object '1' +#define E_DAO_AccessDeniedReplM DBDAOERR(3666) //You cannot modify the replication system object '1' +#define E_DAO_VtoOtherOperBlocking DBDAOERR(3667) //A different operation is preventing this operation from being executed. +#define E_DAO_VtoNoActiveConnection DBDAOERR(3668) //Can not perform this operation because there is no active connection. +#define E_DAO_VtoExecCancelled DBDAOERR(3669) //Execution cancelled. +#define E_DAO_VtoCursorNotValid DBDAOERR(3670) //Cursor is not valid. +#define E_DAO_VtoCanNotFindTable DBDAOERR(3671) //Can not find table to update. +#define E_DAO_VtoCanNotFindCursLib DBDAOERR(3672) //Failed to load RDOCURS.DLL. + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // def _DBDAOERR.H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdaoid.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdaoid.h new file mode 100644 index 0000000000000000000000000000000000000000..436986120877275b17ef3099e0cc4cc979b575c8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdaoid.h @@ -0,0 +1,321 @@ +/************************************************************************ +** D B D A O I D . H * +** * +** * +** OLE DAO component class id definitions * +** DAO has been allocated the GUID::Data1 range of 0x00025eXX * +** * +************************************************************************* +** Copyright (C) 1996 by Microsoft Corporation * +** All Rights Reserved * +************************************************************************/ + +/* The pre-3.5 GUIDs have been redefined with "30" added to the ID. For example: + IID_IDAOIndex becomes IID30_IDAOIndex + This way both the 30 and 3.5 GUIDs can be used at once +*/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +DEFINE_OLEGUID(LIBID_CJETSQLHELP, 0x00025f01, 0, 0); + +#define DEFINE_DAOGUID(name, l) \ + DEFINE_GUID(name, l, 0, 0x10, 0x80,0,0,0xAA,0,0x6D,0x2E,0xA4) + +// Type library +DEFINE_OLEGUID(LIBID_CDAO, 0x00025e01, 0, 0); +DEFINE_OLEGUID(LIBID_CDAO25, 0x00025e04, 0, 0); + +// StdObject +DEFINE_DAOGUID(IID_IDAOStdObject, 0x0000000A); + +// StdCollection +DEFINE_DAOGUID(IID_IDAOStdCollection, 0x0000000C); + +// Creatable Classes +DEFINE_DAOGUID(CLSID_CDAODBEngine, 0x00000010); +DEFINE_DAOGUID(CLSID_CDAOPrivDBEngine, 0x00000011); +DEFINE_DAOGUID(CLSID_CDAOConnection, 0x00000012); +DEFINE_DAOGUID(CLSID_CDAOTableDef, 0x00000013); +DEFINE_DAOGUID(CLSID_CDAOField, 0x00000014); +DEFINE_DAOGUID(CLSID_CDAOIndex, 0x00000015); +DEFINE_DAOGUID(CLSID_CDAOGroup, 0x00000016); +DEFINE_DAOGUID(CLSID_CDAOUser, 0x00000017); +DEFINE_DAOGUID(CLSID_CDAOQueryDef, 0x00000018); +DEFINE_DAOGUID(CLSID_CDAORelation, 0x00000019); + +// DBEngine +DEFINE_DAOGUID(IID_IDAODBEngine, 0x00000020); +DEFINE_DAOGUID(IID_IDAODBEngineW, 0x00000021); + +// Error +DEFINE_DAOGUID(IID_IDAOError, 0x00000022); +DEFINE_DAOGUID(IID_IDAOErrorW, 0x00000023); +DEFINE_DAOGUID(IID_IDAOErrors, 0x00000024); +DEFINE_DAOGUID(IID_IDAOErrorsW, 0x00000025); + +// Property +DEFINE_DAOGUID(IID_IDAOProperty, 0x00000026); +DEFINE_DAOGUID(IID_IDAOPropertyW, 0x00000027); +DEFINE_DAOGUID(IID_IDAOProperties, 0x00000028); +DEFINE_DAOGUID(IID_IDAOPropertiesW, 0x00000029); + +// Recordset +DEFINE_DAOGUID(IID_IDAORecordset, 0x00000030); +DEFINE_DAOGUID(IID_IDAORecordsetW, 0x00000031); +DEFINE_DAOGUID(IID_IDAORecordsets, 0x00000032); +DEFINE_DAOGUID(IID_IDAORecordsetsW, 0x00000033); +DEFINE_OLEGUID(IID_ICDAORecordset, 0x00025e31, 0, 0); //same as it was in 3.0 + +// Workspace +DEFINE_DAOGUID(IID_IDAOWorkspace, 0x00000038); +DEFINE_DAOGUID(IID_IDAOWorkspaceW, 0x00000039); +DEFINE_DAOGUID(IID_IDAOWorkspaces, 0x0000003A); +DEFINE_DAOGUID(IID_IDAOWorkspacesW, 0x0000003B); + +// Connection +DEFINE_DAOGUID(IID_IDAOConnection, 0x00000040); +DEFINE_DAOGUID(IID_IDAOConnectionW, 0x00000041); +DEFINE_DAOGUID(IID_IDAOConnections, 0x00000042); +DEFINE_DAOGUID(IID_IDAOConnectionsW, 0x00000043); + +// TableDef +DEFINE_DAOGUID(IID_IDAOTableDef, 0x00000048); +DEFINE_DAOGUID(IID_IDAOTableDefW, 0x00000049); +DEFINE_DAOGUID(IID_IDAOTableDefs, 0x0000004A); +DEFINE_DAOGUID(IID_IDAOTableDefsW, 0x0000004B); + +// Field +DEFINE_DAOGUID(IID_IDAOField, 0x00000050); +DEFINE_DAOGUID(IID_IDAOFieldW, 0x00000051); +DEFINE_DAOGUID(IID_IDAOFields, 0x00000052); +DEFINE_DAOGUID(IID_IDAOFieldsW, 0x00000053); + +// Index +DEFINE_DAOGUID(IID_IDAOIndex, 0x00000058); +DEFINE_DAOGUID(IID_IDAOIndexW, 0x00000059); +DEFINE_DAOGUID(IID_IDAOIndexes, 0x0000005A); +DEFINE_DAOGUID(IID_IDAOIndexesW, 0x0000005B); +DEFINE_DAOGUID(IID_IDAOIndexFields, 0x0000005C); +DEFINE_DAOGUID(IID_IDAOIndexFieldsW, 0x0000005D); + +// Group +DEFINE_DAOGUID(IID_IDAOGroup, 0x00000060); +DEFINE_DAOGUID(IID_IDAOGroupW, 0x00000061); +DEFINE_DAOGUID(IID_IDAOGroups, 0x00000062); +DEFINE_DAOGUID(IID_IDAOGroupsW, 0x00000063); + +// User +DEFINE_DAOGUID(IID_IDAOUser, 0x00000068); +DEFINE_DAOGUID(IID_IDAOUserW, 0x00000069); +DEFINE_DAOGUID(IID_IDAOUsers, 0x0000006A); +DEFINE_DAOGUID(IID_IDAOUsersW, 0x0000006B); + +// Database +DEFINE_DAOGUID(IID_IDAODatabase, 0x00000070); +DEFINE_DAOGUID(IID_IDAODatabaseW, 0x00000071); +DEFINE_DAOGUID(IID_IDAODatabases, 0x00000072); +DEFINE_DAOGUID(IID_IDAODatabasesW, 0x00000073); + +// QueryDef +DEFINE_DAOGUID(IID_IDAOQueryDef, 0x00000078); +DEFINE_DAOGUID(IID_IDAOQueryDefW, 0x00000079); +DEFINE_DAOGUID(IID_IDAOQueryDefs, 0x0000007A); +DEFINE_DAOGUID(IID_IDAOQueryDefsW, 0x0000007B); + +// Parameter +DEFINE_DAOGUID(IID_IDAOParameter, 0x00000080); +DEFINE_DAOGUID(IID_IDAOParameterW, 0x00000081); +DEFINE_DAOGUID(IID_IDAOParameters, 0x00000082); +DEFINE_DAOGUID(IID_IDAOParametersW, 0x00000083); + +// Relation +DEFINE_DAOGUID(IID_IDAORelation, 0x00000088); +DEFINE_DAOGUID(IID_IDAORelationW, 0x00000089); +DEFINE_DAOGUID(IID_IDAORelations, 0x0000008A); +DEFINE_DAOGUID(IID_IDAORelationsW, 0x0000008B); + +// Container +DEFINE_DAOGUID(IID_IDAOContainer, 0x00000090); +DEFINE_DAOGUID(IID_IDAOContainerW, 0x00000091); +DEFINE_DAOGUID(IID_IDAOContainers, 0x00000092); +DEFINE_DAOGUID(IID_IDAOContainersW, 0x00000093); + +// Document +DEFINE_DAOGUID(IID_IDAODocument, 0x00000098); +DEFINE_DAOGUID(IID_IDAODocumentW, 0x00000099); +DEFINE_DAOGUID(IID_IDAODocuments, 0x0000009A); +DEFINE_DAOGUID(IID_IDAODocumentsW, 0x0000009B); + +// Collections +DEFINE_DAOGUID(IID_IDAOCollection, 0x000000A0); +DEFINE_DAOGUID(IID_IDAODynaCollection, 0x000000A2); + +// Connection points +DEFINE_DAOGUID(IID_IDAOQueryCP, 0x000000B0); +DEFINE_DAOGUID(IID_IDAOQueryAS, 0x000000B2); + +// Type library +DEFINE_OLEGUID(LIBID30_CDAO, 0x00025e01, 0, 0); +DEFINE_OLEGUID(LIBID30_CDAO25, 0x00025e04, 0, 0); + +// StdObject +DEFINE_OLEGUID(IID30_IDAOStdObject, 0x00025e02, 0, 0); + +// StdCollection +DEFINE_OLEGUID(IID30_IDAOStdCollection, 0x00025e03, 0, 0); + +/* + NOTES: + * Two sets of CLSIDs exist for the DBEngine object. + * DBEngine and DBEngine30. The 30 extension means + * that this engine should load the 3.0 typelibrary + * from the registry. Otherwise, load the 2.5/3.0 + * compatability type library +*/ + +// DBEngine +DEFINE_OLEGUID(CLSID30_CDAODBEngine, 0x00025e15, 0, 0); +DEFINE_OLEGUID(IID30_IDAODBEngine, 0x00025e16, 0, 0); +DEFINE_OLEGUID(IID30_IDAODBEngineW, 0x00025e17, 0, 0); +DEFINE_OLEGUID(IID30_ICDAOJETDBEngine, 0x00025e18, 0, 0); +DEFINE_OLEGUID(CLSID30_CDAOPrivDBEngine, 0x00025e19, 0, 0); + +// Error +DEFINE_OLEGUID(IID30_IDAOError, 0x00025e1d, 0, 0); +DEFINE_OLEGUID(IID30_IDAOErrorW, 0x00025e1e, 0, 0); +DEFINE_OLEGUID(IID30_IDAOErrors, 0x00025e1f, 0, 0); +DEFINE_OLEGUID(IID30_IDAOErrorsW, 0x00025e20, 0, 0); +DEFINE_OLEGUID(IID30_ICDAOJETError, 0x00025e21, 0, 0); //used by Access, goes away post 3.0 + +// Property +DEFINE_OLEGUID(IID30_IDAOProperty, 0x00025e25, 0, 0); +DEFINE_OLEGUID(IID30_IDAOPropertyW, 0x00025e26, 0, 0); +DEFINE_OLEGUID(IID30_IDAOProperties, 0x00025e27, 0, 0); +DEFINE_OLEGUID(IID30_IDAOPropertiesW, 0x00025e28, 0, 0); + +// Recordset +DEFINE_OLEGUID(IID30_IDAORecordset, 0x00025e2d, 0, 0); +DEFINE_OLEGUID(IID30_IDAORecordsetW, 0x00025e2e, 0, 0); +DEFINE_OLEGUID(IID30_IDAORecordsets, 0x00025e2f, 0, 0); +DEFINE_OLEGUID(IID30_IDAORecordsetsW, 0x00025e30, 0, 0); +DEFINE_OLEGUID(IID30_ICDAORecordset, 0x00025e31, 0, 0); //NOTE: No change for 3.1 or 3.5 +DEFINE_OLEGUID(IID30_ICDAOJETRecordset, 0x00025e32, 0, 0); + +// Snapshot +DEFINE_OLEGUID(IID30_IDAOSnapshot, 0x00025e33, 0, 0); + +// Table +DEFINE_OLEGUID(IID30_IDAOTable, 0x00025e34, 0, 0); + +// Dynaset +DEFINE_OLEGUID(IID30_IDAODynaset, 0x00025e35, 0, 0); + +// Workspace +DEFINE_OLEGUID(IID30_IDAOWorkspace, 0x00025e3a, 0, 0); +DEFINE_OLEGUID(IID30_IDAOWorkspaceW, 0x00025e3b, 0, 0); +DEFINE_OLEGUID(IID30_IDAOWorkspaces, 0x00025e3c, 0, 0); +DEFINE_OLEGUID(IID30_IDAOWorkspacesW, 0x00025e3d, 0, 0); +DEFINE_OLEGUID(IID30_ICDAOJETWorkspace, 0x00025e3e, 0, 0); + +// Connection (new to 3.1) +DEFINE_OLEGUID(CLSID30_CDAOConnection, 0x00025eb1, 0, 0); +DEFINE_OLEGUID(IID30_IDAOConnection, 0x00025eb2, 0, 0); +DEFINE_OLEGUID(IID30_IDAOConnectionW, 0x00025eb3, 0, 0); +DEFINE_OLEGUID(IID30_IDAOConnections, 0x00025eb4, 0, 0); +DEFINE_OLEGUID(IID30_IDAOConnectionsW, 0x00025eb5, 0, 0); + +// TableDef +DEFINE_OLEGUID(CLSID30_CDAOTableDef, 0x00025e43, 0, 0); +DEFINE_OLEGUID(IID30_IDAOTableDef, 0x00025e44, 0, 0); +DEFINE_OLEGUID(IID30_IDAOTableDefW, 0x00025e45, 0, 0); +DEFINE_OLEGUID(IID30_IDAOTableDefs, 0x00025e46, 0, 0); +DEFINE_OLEGUID(IID30_IDAOTableDefsW, 0x00025e47, 0, 0); + +// Field +DEFINE_OLEGUID(CLSID30_CDAOField, 0x00025e4c, 0, 0); +DEFINE_OLEGUID(IID30_IDAOField, 0x00025e4d, 0, 0); +DEFINE_OLEGUID(IID30_IDAOFieldW, 0x00025e4e, 0, 0); +DEFINE_OLEGUID(IID30_IDAOFields, 0x00025e4f, 0, 0); +DEFINE_OLEGUID(IID30_IDAOFieldsW, 0x00025e50, 0, 0); +//DEFINE_OLEGUID(IID30_ICDAOJETField, 0x00025e51, 0, 0); //used by Access, goes away post 3.0 +DEFINE_OLEGUID(IID30_ICDAOJETField, 0x00025e49, 0, 0); //used by Access, goes away post 3.0 + +// Index +DEFINE_OLEGUID(CLSID30_CDAOIndex, 0x00025e55, 0, 0); +DEFINE_OLEGUID(IID30_IDAOIndex, 0x00025e56, 0, 0); +DEFINE_OLEGUID(IID30_IDAOIndexW, 0x00025ed7, 0, 0); +DEFINE_OLEGUID(IID30_IDAOIndexes, 0x00025e58, 0, 0); +DEFINE_OLEGUID(IID30_IDAOIndexesW, 0x00025e59, 0, 0); +DEFINE_OLEGUID(IID30_IDAOIndexFields, 0x00025e5a, 0, 0); +DEFINE_OLEGUID(IID30_IDAOIndexFieldsW, 0x00025e5b, 0, 0); + +// Group +DEFINE_OLEGUID(CLSID30_CDAOGroup, 0x00025e5f, 0, 0); +DEFINE_OLEGUID(IID30_IDAOGroup, 0x00025e60, 0, 0); +DEFINE_OLEGUID(IID30_IDAOGroupW, 0x00025e61, 0, 0); +DEFINE_OLEGUID(IID30_IDAOGroups, 0x00025e62, 0, 0); +DEFINE_OLEGUID(IID30_IDAOGroupsW, 0x00025e63, 0, 0); + +// User +DEFINE_OLEGUID(CLSID30_CDAOUser, 0x00025e68, 0, 0); +DEFINE_OLEGUID(IID30_IDAOUser, 0x00025e69, 0, 0); +DEFINE_OLEGUID(IID30_IDAOUserW, 0x00025e6a, 0, 0); +DEFINE_OLEGUID(IID30_IDAOUsers, 0x00025e6b, 0, 0); +DEFINE_OLEGUID(IID30_IDAOUsersW, 0x00025e6c, 0, 0); + +// Database +DEFINE_OLEGUID(IID30_IDAODatabase, 0x00025e71, 0, 0); +DEFINE_OLEGUID(IID30_IDAODatabaseW, 0x00025e72, 0, 0); +DEFINE_OLEGUID(IID30_IDAODatabases, 0x00025e73, 0, 0); +DEFINE_OLEGUID(IID30_IDAODatabasesW, 0x00025e74, 0, 0); +DEFINE_OLEGUID(IID30_ICDAOJETDatabase, 0x00025e75, 0, 0); + +// QueryDef +DEFINE_OLEGUID(CLSID30_CDAOQueryDef, 0x00025e7a, 0, 0); +DEFINE_OLEGUID(IID30_IDAOQueryDef, 0x00025e7b, 0, 0); +DEFINE_OLEGUID(IID30_IDAOQueryDefW, 0x00025e7c, 0, 0); +DEFINE_OLEGUID(IID30_IDAOQueryDefs, 0x00025e7d, 0, 0); +DEFINE_OLEGUID(IID30_IDAOQueryDefsW, 0x00025e7e, 0, 0); + +// Parameter +DEFINE_OLEGUID(IID30_IDAOParameter, 0x00025e83, 0, 0); +DEFINE_OLEGUID(IID30_IDAOParameterW, 0x00025e84, 0, 0); +DEFINE_OLEGUID(IID30_IDAOParameters, 0x00025e85, 0, 0); +DEFINE_OLEGUID(IID30_IDAOParametersW, 0x00025e86, 0, 0); + +// Relation +DEFINE_OLEGUID(CLSID30_CDAORelation, 0x00025e8b, 0, 0); +DEFINE_OLEGUID(IID30_IDAORelation, 0x00025e8c, 0, 0); +DEFINE_OLEGUID(IID30_IDAORelationW, 0x00025e8d, 0, 0); +DEFINE_OLEGUID(IID30_IDAORelations, 0x00025e8e, 0, 0); +DEFINE_OLEGUID(IID30_IDAORelationsW, 0x00025e8f, 0, 0); + +// Container +DEFINE_OLEGUID(IID30_IDAOContainer, 0x00025e94, 0, 0); +DEFINE_OLEGUID(IID30_IDAOContainerW, 0x00025e95, 0, 0); +DEFINE_OLEGUID(IID30_IDAOContainers, 0x00025e96, 0, 0); +DEFINE_OLEGUID(IID30_IDAOContainersW, 0x00025e97, 0, 0); + +// Document +DEFINE_OLEGUID(IID30_IDAODocument, 0x00025e9c, 0, 0); +DEFINE_OLEGUID(IID30_IDAODocumentW, 0x00025e9d, 0, 0); +DEFINE_OLEGUID(IID30_IDAODocuments, 0x00025e9e, 0, 0); +DEFINE_OLEGUID(IID30_IDAODocumentsW, 0x00025e9f, 0, 0); + +// Collections +DEFINE_OLEGUID(IID30_IDAOCollection, 0x00025ea4, 0, 0); +DEFINE_OLEGUID(IID30_IDAODynaCollection, 0x00025ea5, 0, 0); + +// Connection points +DEFINE_OLEGUID(IID30_IDAOQueryCP, 0x00025eaa, 0, 0); // Connection point +DEFINE_OLEGUID(IID30_IDAOQueryAS, 0x00025eab, 0, 0); // Advise sink interface + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdaoint.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdaoint.h new file mode 100644 index 0000000000000000000000000000000000000000..194d55981e48801c22ed9b77064c8c5862a7837c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdaoint.h @@ -0,0 +1,2029 @@ +/************************************************************************ +** D B D A O I N T. H * +** * +************************************************************************* +** Copyright (C) 1995-1997 by Microsoft Corporation * +** All Rights Reserved * +************************************************************************/ +/* + DBDAOINT.H + OLE DAO Interface. +This is a part of the Microsoft Data Access Objects SDK library. +See the dao*.hlp files for detailed information regarding the +Microsoft Data Access Objects SDK product. + +*/ +#ifndef _DBDAOINT_H_ +#define _DBDAOINT_H_ + +#ifndef _INC_TCHAR +#include +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// Forwards +interface _DAODBEngine; +#define DAODBEngine _DAODBEngine +interface DAOError; +interface _DAOCollection; +#define DAOCollection _DAOCollection +interface DAOErrors; +interface DAOProperty; +interface _DAODynaCollection; +#define DAODynaCollection _DAODynaCollection +interface DAOProperties; +interface DAOWorkspace; +interface DAOWorkspaces; +interface DAOConnection; +interface DAOConnections; +interface DAODatabase; +interface DAODatabases; +interface _DAOTableDef; +#define DAOTableDef _DAOTableDef +interface DAOTableDefs; +interface _DAOQueryDef; +#define DAOQueryDef _DAOQueryDef +interface DAOQueryDefs; +interface DAORecordset; +interface DAORecordsets; +interface _DAOField; +#define DAOField _DAOField +interface DAOFields; +interface _DAOIndex; +#define DAOIndex _DAOIndex +interface DAOIndexes; +interface DAOParameter; +interface DAOParameters; +interface _DAOUser; +#define DAOUser _DAOUser +interface DAOUsers; +interface _DAOGroup; +#define DAOGroup _DAOGroup +interface DAOGroups; +interface _DAORelation; +#define DAORelation _DAORelation +interface DAORelations; +interface DAOContainer; +interface DAOContainers; +interface DAODocument; +interface DAODocuments; +interface DAOIndexFields; + + + +typedef enum RecordsetTypeEnum + { dbOpenTable = 1, + dbOpenDynaset = 2, + dbOpenSnapshot = 4, + dbOpenForwardOnly = 8, + dbOpenDynamic = 16 + } RecordsetTypeEnum; + + +typedef enum EditModeEnum + { dbEditNone = 0, + dbEditInProgress = 1, + dbEditAdd = 2, + dbEditChanged = 4, + dbEditDeleted = 8, + dbEditNew = 16 + } EditModeEnum; + + +typedef enum RecordsetOptionEnum + { dbDenyWrite = 0x1, + dbDenyRead = 0x2, + dbReadOnly = 0x4, + dbAppendOnly = 0x8, + dbInconsistent = 0x10, + dbConsistent = 0x20, + dbSQLPassThrough = 0x40, + dbFailOnError = 0x80, + dbForwardOnly = 0x100, + dbSeeChanges = 0x200, + dbRunAsync = 0x400, + dbExecDirect = 0x800 + } RecordsetOptionEnum; + + +typedef enum LockTypeEnum + { dbPessimistic = 0x2, + dbOptimistic = 0x3, + dbOptimisticValue = 0x1, + dbOptimisticBatch = 0x5 + } LockTypeEnum; + + +typedef enum UpdateCriteriaEnum + { dbCriteriaKey = 0x1, + dbCriteriaModValues = 0x2, + dbCriteriaAllCols = 0x4, + dbCriteriaTimestamp = 0x8, + dbCriteriaDeleteInsert = 0x10, + dbCriteriaUpdate = 0x20 + } UpdateCriteriaEnum; + + +typedef enum FieldAttributeEnum + { dbFixedField = 0x1, + dbVariableField = 0x2, + dbAutoIncrField = 0x10, + dbUpdatableField = 0x20, + dbSystemField = 0x2000, + dbHyperlinkField = 0x8000, + dbDescending = 0x1 + } FieldAttributeEnum; + + +typedef enum DataTypeEnum + { dbBoolean = 1, + dbByte = 2, + dbInteger = 3, + dbLong = 4, + dbCurrency = 5, + dbSingle = 6, + dbDouble = 7, + dbDate = 8, + dbBinary = 9, + dbText = 10, + dbLongBinary = 11, + dbMemo = 12, + dbGUID = 15, + dbBigInt = 16, + dbVarBinary = 17, + dbChar = 18, + dbNumeric = 19, + dbDecimal = 20, + dbFloat = 21, + dbTime = 22, + dbTimeStamp = 23 + } DataTypeEnum; + + +typedef enum RelationAttributeEnum + { dbRelationUnique = 0x1, + dbRelationDontEnforce = 0x2, + dbRelationInherited = 0x4, + dbRelationUpdateCascade = 0x100, + dbRelationDeleteCascade = 0x1000, + dbRelationLeft = 0x1000000, + dbRelationRight = 0x2000000 + } RelationAttributeEnum; + + +typedef enum TableDefAttributeEnum + { dbAttachExclusive = 0x10000, + dbAttachSavePWD = 0x20000, + dbSystemObject = 0x80000002, + dbAttachedTable = 0x40000000, + dbAttachedODBC = 0x20000000, + dbHiddenObject = 0x1 + } TableDefAttributeEnum; + + +typedef enum QueryDefTypeEnum + { dbQSelect = 0, + dbQProcedure = 0xe0, + dbQAction = 0xf0, + dbQCrosstab = 0x10, + dbQDelete = 0x20, + dbQUpdate = 0x30, + dbQAppend = 0x40, + dbQMakeTable = 0x50, + dbQDDL = 0x60, + dbQSQLPassThrough = 0x70, + dbQSetOperation = 0x80, + dbQSPTBulk = 0x90, + dbQCompound = 0xa0 + } QueryDefTypeEnum; + + +typedef enum QueryDefStateEnum + { dbQPrepare = 1, + dbQUnprepare = 2 + } QueryDefStateEnum; + + +typedef enum DatabaseTypeEnum + { dbVersion10 = 1, + dbEncrypt = 2, + dbDecrypt = 4, + dbVersion11 = 8, + dbVersion20 = 16, + dbVersion30 = 32, + dbVersion40 = 64 + } DatabaseTypeEnum; + + +typedef enum CollatingOrderEnum + { dbSortNeutral = 0x400, + dbSortArabic = 0x401, + dbSortCyrillic = 0x419, + dbSortCzech = 0x405, + dbSortDutch = 0x413, + dbSortGeneral = 0x409, + dbSortGreek = 0x408, + dbSortHebrew = 0x40d, + dbSortHungarian = 0x40e, + dbSortIcelandic = 0x40f, + dbSortNorwdan = 0x406, + dbSortPDXIntl = 0x409, + dbSortPDXNor = 0x406, + dbSortPDXSwe = 0x41d, + dbSortPolish = 0x415, + dbSortSpanish = 0x40a, + dbSortSwedFin = 0x41d, + dbSortTurkish = 0x41f, + dbSortJapanese = 0x411, + dbSortChineseSimplified = 0x804, + dbSortChineseTraditional = 0x404, + dbSortKorean = 0x412, + dbSortThai = 0x41e, + dbSortSlovenian = 0x424, + dbSortUndefined = -1 + } CollatingOrderEnum; + + +typedef enum IdleEnum + { dbFreeLocks = 1, + dbRefreshCache = 8 + } IdleEnum; + + +typedef enum PermissionEnum + { dbSecNoAccess = 0, + dbSecFullAccess = 0xfffff, + dbSecDelete = 0x10000, + dbSecReadSec = 0x20000, + dbSecWriteSec = 0x40000, + dbSecWriteOwner = 0x80000, + dbSecDBCreate = 0x1, + dbSecDBOpen = 0x2, + dbSecDBExclusive = 0x4, + dbSecDBAdmin = 0x8, + dbSecCreate = 0x1, + dbSecReadDef = 0x4, + dbSecWriteDef = 0x1000c, + dbSecRetrieveData = 0x14, + dbSecInsertData = 0x20, + dbSecReplaceData = 0x40, + dbSecDeleteData = 0x80 + } PermissionEnum; + + +typedef enum SynchronizeTypeEnum + { dbRepExportChanges = 0x1, + dbRepImportChanges = 0x2, + dbRepImpExpChanges = 0x4, + dbRepSyncInternet = 0x10 + } SynchronizeTypeEnum; + + +typedef enum ReplicaTypeEnum + { dbRepMakeReadOnly = 0x2, + dbRepMakePartial = 0x1 + } ReplicaTypeEnum; + + +typedef enum WorkspaceTypeEnum + { dbUseODBC = 1, + dbUseJet = 2 + } WorkspaceTypeEnum; + + +typedef enum CursorDriverEnum + { dbUseDefaultCursor = -1, + dbUseODBCCursor = 1, + dbUseServerCursor = 2, + dbUseClientBatchCursor = 3, + dbUseNoCursor = 4 + } CursorDriverEnum; + + +typedef enum DriverPromptEnum + { dbDriverPrompt = 2, + dbDriverNoPrompt = 1, + dbDriverComplete = 0, + dbDriverCompleteRequired = 3 + } DriverPromptEnum; + + +typedef enum SetOptionEnum + { dbPageTimeout = 6, + dbLockRetry = 57, + dbMaxBufferSize = 8, + dbUserCommitSync = 58, + dbImplicitCommitSync = 59, + dbExclusiveAsyncDelay = 60, + dbSharedAsyncDelay = 61, + dbMaxLocksPerFile = 62, + dbLockDelay = 63, + dbRecycleLVs = 65, + dbFlushTransactionTimeout = 66 + } SetOptionEnum; + + +typedef enum ParameterDirectionEnum + { dbParamInput = 1, + dbParamOutput = 2, + dbParamInputOutput = 3, + dbParamReturnValue = 4 + } ParameterDirectionEnum; + + +typedef enum UpdateTypeEnum + { dbUpdateBatch = 4, + dbUpdateRegular = 1, + dbUpdateCurrentRecord = 2 + } UpdateTypeEnum; + + +typedef enum RecordStatusEnum + { dbRecordUnmodified = 0, + dbRecordModified = 1, + dbRecordNew = 2, + dbRecordDeleted = 3, + dbRecordDBDeleted = 4 + } RecordStatusEnum; + + +typedef enum CommitTransOptionsEnum + { dbForceOSFlush = 1 + } CommitTransOptionsEnum; + + +typedef enum _DAOSuppHelp + { LogMessages = 0, + KeepLocal = 0, + Replicable = 0, + ReplicableBool = 0, + V1xNullBehavior = 0 + } _DAOSuppHelp; + +#define dbLangArabic _T(";LANGID=0x0401;CP=1256;COUNTRY=0") +#define dbLangCzech _T(";LANGID=0x0405;CP=1250;COUNTRY=0") +#define dbLangDutch _T(";LANGID=0x0413;CP=1252;COUNTRY=0") +#define dbLangGeneral _T(";LANGID=0x0409;CP=1252;COUNTRY=0") +#define dbLangGreek _T(";LANGID=0x0408;CP=1253;COUNTRY=0") +#define dbLangHebrew _T(";LANGID=0x040D;CP=1255;COUNTRY=0") +#define dbLangHungarian _T(";LANGID=0x040E;CP=1250;COUNTRY=0") +#define dbLangIcelandic _T(";LANGID=0x040F;CP=1252;COUNTRY=0") +#define dbLangNordic _T(";LANGID=0x041D;CP=1252;COUNTRY=0") +#define dbLangNorwDan _T(";LANGID=0x0414;CP=1252;COUNTRY=0") +#define dbLangPolish _T(";LANGID=0x0415;CP=1250;COUNTRY=0") +#define dbLangCyrillic _T(";LANGID=0x0419;CP=1251;COUNTRY=0") +#define dbLangSpanish _T(";LANGID=0x040A;CP=1252;COUNTRY=0") +#define dbLangSwedFin _T(";LANGID=0x040B;CP=1252;COUNTRY=0") +#define dbLangTurkish _T(";LANGID=0x041F;CP=1254;COUNTRY=0") +#define dbLangJapanese _T(";LANGID=0x0411;CP=932;COUNTRY=0") +#define dbLangChineseSimplified _T(";LANGID=0x0804;CP=936;COUNTRY=0") +#define dbLangChineseTraditional _T(";LANGID=0x0404;CP=950;COUNTRY=0") +#define dbLangKorean _T(";LANGID=0x0412;CP=949;COUNTRY=0") +#define dbLangThai _T(";LANGID=0x041E;CP=874;COUNTRY=0") +#define dbLangSlovenian _T(";LANGID=0x0424;CP=1250;COUNTRY=0") +// Interface: _DAOCollection +#undef INTERFACE +#define INTERFACE _DAOCollection +DECLARE_INTERFACE_(_DAOCollection, IDispatch) + { + STDMETHOD(get_Count) (THIS_ short FAR* c) PURE; + STDMETHOD(_NewEnum) (THIS_ IUnknown * FAR* ppunk) PURE; + STDMETHOD(Refresh) (THIS) PURE; + }; + +// Interface: _DAODynaCollection +#undef INTERFACE +#define INTERFACE _DAODynaCollection +DECLARE_INTERFACE_(_DAODynaCollection, _DAOCollection) + { + STDMETHOD(Append) (THIS_ IDispatch * Object) PURE; + STDMETHOD(Delete) (THIS_ BSTR Name) PURE; + }; + +// Interface: _DAO +#undef INTERFACE +#define INTERFACE _DAO +DECLARE_INTERFACE_(_DAO, IDispatch) + { + STDMETHOD(get_Properties) (THIS_ DAOProperties FAR* FAR* ppprops) PURE; + }; +// Interface: _DAODBEngine +#undef INTERFACE +#define INTERFACE _DAODBEngine +DECLARE_INTERFACE_(_DAODBEngine, _DAO) +{ + STDMETHOD( get_Properties ) ( + /* [retval][out] */ DAOProperties __RPC_FAR *__RPC_FAR *ppprops ); + STDMETHOD( get_Version ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_IniPath ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_IniPath ) ( + + /* [in] */ BSTR path ) PURE; + STDMETHOD( put_DefaultUser ) ( + + /* [in] */ BSTR user ) PURE; + STDMETHOD( put_DefaultPassword ) ( + + /* [in] */ BSTR pw ) PURE; + STDMETHOD( get_LoginTimeout ) ( + + /* [retval][out] */ short __RPC_FAR *ps ) PURE; + STDMETHOD( put_LoginTimeout ) ( + + /* [in] */ short Timeout ) PURE; + STDMETHOD( get_Workspaces ) ( + + /* [retval][out] */ DAOWorkspaces __RPC_FAR *__RPC_FAR *ppworks ) PURE; + STDMETHOD( get_Errors ) ( + + /* [retval][out] */ DAOErrors __RPC_FAR *__RPC_FAR *pperrs ) PURE; + STDMETHOD( Idle ) ( + + /* [optional][in] */ VARIANT Action ) PURE; + STDMETHOD( CompactDatabase ) ( + + /* [in] */ BSTR SrcName, + /* [in] */ BSTR DstName, + /* [optional][in] */ VARIANT DstLocale, + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT SrcLocale ) PURE; + STDMETHOD( RepairDatabase ) ( + + /* [in] */ BSTR Name ) PURE; + STDMETHOD( RegisterDatabase ) ( + + /* [in] */ BSTR Dsn, + /* [in] */ BSTR Driver, + /* [in] */ VARIANT_BOOL Silent, + /* [in] */ BSTR Attributes ) PURE; + STDMETHOD( _30_CreateWorkspace ) ( + + /* [in] */ BSTR Name, + /* [in] */ BSTR UserName, + /* [in] */ BSTR Password, + /* [retval][out] */ DAOWorkspace __RPC_FAR *__RPC_FAR *ppwrk ) PURE; + STDMETHOD( OpenDatabase ) ( + + /* [in] */ BSTR Name, + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT ReadOnly, + /* [optional][in] */ VARIANT Connect, + /* [retval][out] */ DAODatabase __RPC_FAR *__RPC_FAR *ppdb ) PURE; + STDMETHOD( CreateDatabase ) ( + + /* [in] */ BSTR Name, + /* [in] */ BSTR Locale, + /* [optional][in] */ VARIANT Option, + /* [retval][out] */ DAODatabase __RPC_FAR *__RPC_FAR *ppdb ) PURE; + STDMETHOD( FreeLocks ) ( + VOID ) PURE; + STDMETHOD( BeginTrans ) ( + VOID ) PURE; + STDMETHOD( CommitTrans ) ( + + /* [defaultvalue][in] */ long Option ) PURE; + STDMETHOD( Rollback ) ( + VOID ) PURE; + STDMETHOD( SetDefaultWorkspace ) ( + + /* [in] */ BSTR Name, + /* [in] */ BSTR Password ) PURE; + STDMETHOD( SetDataAccessOption ) ( + + /* [in] */ short Option, + /* [in] */ VARIANT Value ) PURE; + STDMETHOD( ISAMStats ) ( + + /* [in] */ long StatNum, + /* [optional][in] */ VARIANT Reset, + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_SystemDB ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_SystemDB ) ( + + /* [in] */ BSTR SystemDBPath ) PURE; + STDMETHOD( CreateWorkspace ) ( + + /* [in] */ BSTR Name, + /* [in] */ BSTR UserName, + /* [in] */ BSTR Password, + /* [optional][in] */ VARIANT UseType, + /* [retval][out] */ DAOWorkspace __RPC_FAR *__RPC_FAR *ppwrk ) PURE; + STDMETHOD( OpenConnection ) ( + + /* [in] */ BSTR Name, + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT ReadOnly, + /* [optional][in] */ VARIANT Connect, + /* [retval][out] */ DAOConnection __RPC_FAR *__RPC_FAR *ppconn ) PURE; + STDMETHOD( get_DefaultType ) ( + + /* [retval][out] */ long __RPC_FAR *Option ) PURE; + STDMETHOD( put_DefaultType ) ( + + /* [in] */ long Option ) PURE; + STDMETHOD( SetOption ) ( + + /* [in] */ LONG Option, + /* [in] */ VARIANT Value ) PURE; + STDMETHOD( DumpObjects ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( DebugPrint ) ( + + /* [in] */ BSTR bstr ) PURE; + };// end interface; + +// Interface: DAOError +#undef INTERFACE +#define INTERFACE DAOError +DECLARE_INTERFACE_(DAOError, IDispatch) +{ + STDMETHOD( get_Number ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_Source ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_Description ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_HelpFile ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_HelpContext ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + };// end interface; + +// Interface: DAOErrors +#undef INTERFACE +#define INTERFACE DAOErrors +DECLARE_INTERFACE_(DAOErrors, _DAOCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOError __RPC_FAR *__RPC_FAR *pperr ) PURE; + };// end interface; + +// Interface: DAOProperty +#undef INTERFACE +#define INTERFACE DAOProperty +DECLARE_INTERFACE_(DAOProperty, _DAO) +{ + STDMETHOD( get_Value ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pval ) PURE; + STDMETHOD( put_Value ) ( + + /* [in] */ VARIANT val ) PURE; + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Name ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Type ) ( + + /* [retval][out] */ short __RPC_FAR *ptype ) PURE; + STDMETHOD( put_Type ) ( + + /* [in] */ short type ) PURE; + STDMETHOD( get_Inherited ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + };// end interface; + +// Interface: DAOProperties +#undef INTERFACE +#define INTERFACE DAOProperties +DECLARE_INTERFACE_(DAOProperties, _DAODynaCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOProperty __RPC_FAR *__RPC_FAR *ppprop ) PURE; + };// end interface; + +// Interface: DAOWorkspace +#undef INTERFACE +#define INTERFACE DAOWorkspace +DECLARE_INTERFACE_(DAOWorkspace, _DAO) +{ + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Name ) ( + + /* [in] */ BSTR Name ) PURE; + STDMETHOD( get_UserName ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put__30_UserName ) ( + + /* [in] */ BSTR UserName ) PURE; + STDMETHOD( put__30_Password ) ( + + /* [in] */ BSTR Password ) PURE; + STDMETHOD( get_IsolateODBCTrans ) ( + + /* [retval][out] */ short __RPC_FAR *ps ) PURE; + STDMETHOD( put_IsolateODBCTrans ) ( + + /* [in] */ short s ) PURE; + STDMETHOD( get_Databases ) ( + + /* [retval][out] */ DAODatabases __RPC_FAR *__RPC_FAR *ppdbs ) PURE; + STDMETHOD( get_Users ) ( + + /* [retval][out] */ DAOUsers __RPC_FAR *__RPC_FAR *ppusrs ) PURE; + STDMETHOD( get_Groups ) ( + + /* [retval][out] */ DAOGroups __RPC_FAR *__RPC_FAR *ppgrps ) PURE; + STDMETHOD( BeginTrans ) ( + VOID ) PURE; + STDMETHOD( CommitTrans ) ( + + /* [defaultvalue][in] */ long Options ) PURE; + STDMETHOD( Close ) ( + VOID ) PURE; + STDMETHOD( Rollback ) ( + VOID ) PURE; + STDMETHOD( OpenDatabase ) ( + + /* [in] */ BSTR Name, + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT ReadOnly, + /* [optional][in] */ VARIANT Connect, + /* [retval][out] */ DAODatabase __RPC_FAR *__RPC_FAR *ppdb ) PURE; + STDMETHOD( CreateDatabase ) ( + + /* [in] */ BSTR Name, + /* [in] */ BSTR Connect, + /* [optional][in] */ VARIANT Option, + /* [retval][out] */ DAODatabase __RPC_FAR *__RPC_FAR *ppdb ) PURE; + STDMETHOD( CreateUser ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT PID, + /* [optional][in] */ VARIANT Password, + /* [retval][out] */ DAOUser __RPC_FAR *__RPC_FAR *ppusr ) PURE; + STDMETHOD( CreateGroup ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT PID, + /* [retval][out] */ DAOGroup __RPC_FAR *__RPC_FAR *ppgrp ) PURE; + STDMETHOD( OpenConnection ) ( + + /* [in] */ BSTR Name, + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT ReadOnly, + /* [optional][in] */ VARIANT Connect, + /* [retval][out] */ DAOConnection __RPC_FAR *__RPC_FAR *ppconn ) PURE; + STDMETHOD( get_LoginTimeout ) ( + + /* [retval][out] */ long __RPC_FAR *pTimeout ) PURE; + STDMETHOD( put_LoginTimeout ) ( + + /* [in] */ long Timeout ) PURE; + STDMETHOD( get_DefaultCursorDriver ) ( + + /* [retval][out] */ long __RPC_FAR *pCursorType ) PURE; + STDMETHOD( put_DefaultCursorDriver ) ( + + /* [in] */ long CursorType ) PURE; + STDMETHOD( get_hEnv ) ( + + /* [retval][out] */ LONG __RPC_FAR *phEnv ) PURE; + STDMETHOD( get_Type ) ( + + /* [retval][out] */ LONG __RPC_FAR *ptype ) PURE; + STDMETHOD( get_Connections ) ( + + /* [retval][out] */ DAOConnections __RPC_FAR *__RPC_FAR *ppcns ) PURE; + };// end interface; + +// Interface: DAOWorkspaces +#undef INTERFACE +#define INTERFACE DAOWorkspaces +DECLARE_INTERFACE_(DAOWorkspaces, _DAODynaCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOWorkspace __RPC_FAR *__RPC_FAR *ppwrk ) PURE; + };// end interface; + +// Interface: DAOConnection +#undef INTERFACE +#define INTERFACE DAOConnection +DECLARE_INTERFACE_(DAOConnection, IDispatch) +{ + STDMETHOD( QueryInterface ) ( REFIID riid, LPVOID FAR* ppvObj ); + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_Connect ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_Database ) ( + + /* [retval][out] */ DAODatabase __RPC_FAR *__RPC_FAR *ppDb ) PURE; + STDMETHOD( get_hDbc ) ( + + /* [retval][out] */ LONG __RPC_FAR *phDbc ) PURE; + STDMETHOD( get_QueryTimeout ) ( + + /* [retval][out] */ SHORT __RPC_FAR *pSeconds ) PURE; + STDMETHOD( put_QueryTimeout ) ( + + /* [in] */ SHORT Seconds ) PURE; + STDMETHOD( get_Transactions ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_RecordsAffected ) ( + + /* [retval][out] */ LONG __RPC_FAR *pRecords ) PURE; + STDMETHOD( get_StillExecuting ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pStillExec ) PURE; + STDMETHOD( get_Updatable ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pStillExec ) PURE; + STDMETHOD( get_QueryDefs ) ( + + /* [retval][out] */ DAOQueryDefs __RPC_FAR *__RPC_FAR *ppqdfs ) PURE; + STDMETHOD( get_Recordsets ) ( + + /* [retval][out] */ DAORecordsets __RPC_FAR *__RPC_FAR *pprsts ) PURE; + STDMETHOD( Cancel ) ( + VOID ) PURE; + STDMETHOD( Close ) ( + VOID ) PURE; + STDMETHOD( CreateQueryDef ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT SQLText, + /* [retval][out] */ DAOQueryDef __RPC_FAR *__RPC_FAR *ppqdf ) PURE; + STDMETHOD( Execute ) ( + + /* [in] */ BSTR Query, + /* [optional][in] */ VARIANT Options ) PURE; + STDMETHOD( OpenRecordset ) ( + + /* [in] */ BSTR Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT LockEdit, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + };// end interface; + +// Interface: DAOConnections +#undef INTERFACE +#define INTERFACE DAOConnections +DECLARE_INTERFACE_(DAOConnections, _DAOCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOConnection __RPC_FAR *__RPC_FAR *ppconn ) PURE; + };// end interface; + +// Interface: DAODatabase +#undef INTERFACE +#define INTERFACE DAODatabase +DECLARE_INTERFACE_(DAODatabase, _DAO) +{ + STDMETHOD( get_CollatingOrder ) ( + + /* [retval][out] */ LONG __RPC_FAR *pl ) PURE; + STDMETHOD( get_Connect ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_QueryTimeout ) ( + + /* [retval][out] */ short __RPC_FAR *ps ) PURE; + STDMETHOD( put_QueryTimeout ) ( + + /* [in] */ short Timeout ) PURE; + STDMETHOD( get_Transactions ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_Updatable ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_Version ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_RecordsAffected ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_TableDefs ) ( + + /* [retval][out] */ DAOTableDefs __RPC_FAR *__RPC_FAR *pptdfs ) PURE; + STDMETHOD( get_QueryDefs ) ( + + /* [retval][out] */ DAOQueryDefs __RPC_FAR *__RPC_FAR *ppqdfs ) PURE; + STDMETHOD( get_Relations ) ( + + /* [retval][out] */ DAORelations __RPC_FAR *__RPC_FAR *pprls ) PURE; + STDMETHOD( get_Containers ) ( + + /* [retval][out] */ DAOContainers __RPC_FAR *__RPC_FAR *ppctns ) PURE; + STDMETHOD( get_Recordsets ) ( + + /* [retval][out] */ DAORecordsets __RPC_FAR *__RPC_FAR *pprsts ) PURE; + STDMETHOD( Close ) ( + VOID ) PURE; + STDMETHOD( Execute ) ( + + /* [in] */ BSTR Query, + /* [optional][in] */ VARIANT Options ) PURE; + STDMETHOD( _30_OpenRecordset ) ( + + /* [in] */ BSTR Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Options, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( CreateProperty ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Value, + /* [optional][in] */ VARIANT DDL, + /* [retval][out] */ DAOProperty __RPC_FAR *__RPC_FAR *pprp ) PURE; + STDMETHOD( CreateRelation ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Table, + /* [optional][in] */ VARIANT ForeignTable, + /* [optional][in] */ VARIANT Attributes, + /* [retval][out] */ DAORelation __RPC_FAR *__RPC_FAR *pprel ) PURE; + STDMETHOD( CreateTableDef ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Attributes, + /* [optional][in] */ VARIANT SourceTablename, + /* [optional][in] */ VARIANT Connect, + /* [retval][out] */ DAOTableDef __RPC_FAR *__RPC_FAR *pptdf ) PURE; + STDMETHOD( BeginTrans ) ( + VOID ) PURE; + STDMETHOD( CommitTrans ) ( + + /* [defaultvalue][in] */ long Options ) PURE; + STDMETHOD( Rollback ) ( + VOID ) PURE; + STDMETHOD( CreateDynaset ) ( + + /* [in] */ BSTR Name, + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT Inconsistent, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( CreateQueryDef ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT SQLText, + /* [retval][out] */ DAOQueryDef __RPC_FAR *__RPC_FAR *ppqdf ) PURE; + STDMETHOD( CreateSnapshot ) ( + + /* [in] */ BSTR Source, + /* [optional][in] */ VARIANT Options, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( DeleteQueryDef ) ( + + /* [in] */ BSTR Name ) PURE; + STDMETHOD( ExecuteSQL ) ( + + /* [in] */ BSTR SQL, + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( ListFields ) ( + + /* [in] */ BSTR Name, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( ListTables ) ( + + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( OpenQueryDef ) ( + + /* [in] */ BSTR Name, + /* [retval][out] */ DAOQueryDef __RPC_FAR *__RPC_FAR *ppqdf ) PURE; + STDMETHOD( OpenTable ) ( + + /* [in] */ BSTR Name, + /* [optional][in] */ VARIANT Options, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( get_ReplicaID ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_DesignMasterID ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_DesignMasterID ) ( + + /* [in] */ BSTR MasterID ) PURE; + STDMETHOD( Synchronize ) ( + + /* [in] */ BSTR DbPathName, + /* [optional][in] */ VARIANT ExchangeType ) PURE; + STDMETHOD( MakeReplica ) ( + + /* [in] */ BSTR PathName, + /* [in] */ BSTR Description, + /* [optional][in] */ VARIANT Options ) PURE; + STDMETHOD( put_Connect ) ( + + /* [in] */ BSTR ODBCConnnect ) PURE; + STDMETHOD( NewPassword ) ( + + /* [in] */ BSTR bstrOld, + /* [in] */ BSTR bstrNew ) PURE; + STDMETHOD( OpenRecordset ) ( + + /* [in] */ BSTR Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT LockEdit, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( get_Connection ) ( + + /* [retval][out] */ DAOConnection __RPC_FAR *__RPC_FAR *ppCn ) PURE; + STDMETHOD( PopulatePartial ) ( + + /* [in] */ BSTR DbPathName ) PURE; + };// end interface; + +// Interface: DAODatabases +#undef INTERFACE +#define INTERFACE DAODatabases +DECLARE_INTERFACE_(DAODatabases, _DAOCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAODatabase __RPC_FAR *__RPC_FAR *ppdb ) PURE; + };// end interface; + +// Interface: _DAOTableDef +#undef INTERFACE +#define INTERFACE _DAOTableDef +DECLARE_INTERFACE_(_DAOTableDef, _DAO) +{ + STDMETHOD( get_Attributes ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( put_Attributes ) ( + + /* [in] */ long Attributes ) PURE; + STDMETHOD( get_Connect ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Connect ) ( + + /* [in] */ BSTR Connection ) PURE; + STDMETHOD( get_DateCreated ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_LastUpdated ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Name ) ( + + /* [in] */ BSTR Name ) PURE; + STDMETHOD( get_SourceTableName ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_SourceTableName ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Updatable ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_ValidationText ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_ValidationText ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_ValidationRule ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_ValidationRule ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_RecordCount ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_Fields ) ( + + /* [retval][out] */ DAOFields __RPC_FAR *__RPC_FAR *ppflds ) PURE; + STDMETHOD( get_Indexes ) ( + + /* [retval][out] */ DAOIndexes __RPC_FAR *__RPC_FAR *ppidxs ) PURE; + STDMETHOD( OpenRecordset ) ( + + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Options, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( RefreshLink ) ( + VOID ) PURE; + STDMETHOD( CreateField ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Size, + /* [retval][out] */ DAOField __RPC_FAR *__RPC_FAR *ppfld ) PURE; + STDMETHOD( CreateIndex ) ( + + /* [optional][in] */ VARIANT Name, + /* [retval][out] */ DAOIndex __RPC_FAR *__RPC_FAR *ppidx ) PURE; + STDMETHOD( CreateProperty ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Value, + /* [optional][in] */ VARIANT DDL, + /* [retval][out] */ DAOProperty __RPC_FAR *__RPC_FAR *pprp ) PURE; + STDMETHOD( get_ConflictTable ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_ReplicaFilter ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pFilter ) PURE; + STDMETHOD( put_ReplicaFilter ) ( + + /* [in] */ VARIANT Filter ) PURE; + };// end interface; + +// Interface: DAOTableDefs +#undef INTERFACE +#define INTERFACE DAOTableDefs +DECLARE_INTERFACE_(DAOTableDefs, _DAODynaCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOTableDef __RPC_FAR *__RPC_FAR *pptdf ) PURE; + };// end interface; + +// Interface: _DAOQueryDef +#undef INTERFACE +#define INTERFACE _DAOQueryDef +DECLARE_INTERFACE_(_DAOQueryDef, _DAO) +{ + STDMETHOD( get_DateCreated ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_LastUpdated ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Name ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_ODBCTimeout ) ( + + /* [retval][out] */ short __RPC_FAR *ps ) PURE; + STDMETHOD( put_ODBCTimeout ) ( + + /* [in] */ short timeout ) PURE; + STDMETHOD( get_Type ) ( + + /* [retval][out] */ short __RPC_FAR *pi ) PURE; + STDMETHOD( get_SQL ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_SQL ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Updatable ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_Connect ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Connect ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_ReturnsRecords ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_ReturnsRecords ) ( + + /* [in] */ VARIANT_BOOL f ) PURE; + STDMETHOD( get_RecordsAffected ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_Fields ) ( + + /* [retval][out] */ DAOFields __RPC_FAR *__RPC_FAR *ppflds ) PURE; + STDMETHOD( get_Parameters ) ( + + /* [retval][out] */ DAOParameters __RPC_FAR *__RPC_FAR *ppprms ) PURE; + STDMETHOD( Close ) ( + VOID ) PURE; + STDMETHOD( _30_OpenRecordset ) ( + + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Options, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( _30__OpenRecordset ) ( + + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Options, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( _Copy ) ( + + /* [retval][out] */ DAOQueryDef __RPC_FAR *__RPC_FAR *ppqdf ) PURE; + STDMETHOD( Execute ) ( + + /* [optional][in] */ VARIANT Options ) PURE; + STDMETHOD( Compare ) ( + + /* [in] */ DAOQueryDef __RPC_FAR *pQdef, + /* [in] */ SHORT __RPC_FAR *lps ) PURE; + STDMETHOD( CreateDynaset ) ( + + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT Inconsistent, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( CreateSnapshot ) ( + + /* [optional][in] */ VARIANT Options, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( ListParameters ) ( + + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( CreateProperty ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Value, + /* [optional][in] */ VARIANT DDL, + /* [retval][out] */ DAOProperty __RPC_FAR *__RPC_FAR *pprp ) PURE; + STDMETHOD( OpenRecordset ) ( + + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT LockEdit, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( _OpenRecordset ) ( + + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT LockEdit, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( Cancel ) ( + VOID ) PURE; + STDMETHOD( get_hStmt ) ( + + /* [retval][out] */ LONG __RPC_FAR *phStmt ) PURE; + STDMETHOD( get_MaxRecords ) ( + + /* [retval][out] */ LONG __RPC_FAR *pMxRecs ) PURE; + STDMETHOD( put_MaxRecords ) ( + + /* [in] */ LONG MxRecs ) PURE; + STDMETHOD( get_StillExecuting ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pStillExec ) PURE; + STDMETHOD( get_CacheSize ) ( + + /* [retval][out] */ long __RPC_FAR *lCacheSize ) PURE; + STDMETHOD( put_CacheSize ) ( + + /* [in] */ long lCacheSize ) PURE; + STDMETHOD( get_Prepare ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pb ) PURE; + STDMETHOD( put_Prepare ) ( + + /* [in] */ VARIANT f ) PURE; + };// end interface; + +// Interface: DAOQueryDefs +#undef INTERFACE +#define INTERFACE DAOQueryDefs +DECLARE_INTERFACE_(DAOQueryDefs, _DAODynaCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOQueryDef __RPC_FAR *__RPC_FAR *ppqdef ) PURE; + };// end interface; + +// Interface: DAORecordset +#undef INTERFACE +#define INTERFACE DAORecordset +DECLARE_INTERFACE_(DAORecordset, _DAO) +{ + STDMETHOD( GetIDsOfNames ) ( REFIID riid, OLECHAR FAR* FAR* rgszNames, UINT cNames, LCID lcid, DISPID FAR* rgdispid ); + STDMETHOD( Invoke ) ( DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS FAR* pdispparams, VARIANT FAR* pvarResult, EXCEPINFO FAR* pexcepinfo, UINT FAR* puArgErr ); + STDMETHOD( get_BOF ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_Bookmark ) ( + + /* [retval][out] */ SAFEARRAY __RPC_FAR * __RPC_FAR *ppsach ) PURE; + STDMETHOD( put_Bookmark ) ( + + /* [in] */ SAFEARRAY __RPC_FAR * __RPC_FAR *psach ) PURE; + STDMETHOD( get_Bookmarkable ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_DateCreated ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_EOF ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_Filter ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Filter ) ( + + /* [in] */ BSTR Filter ) PURE; + STDMETHOD( get_Index ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Index ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_LastModified ) ( + + /* [retval][out] */ SAFEARRAY __RPC_FAR * __RPC_FAR *ppsa ) PURE; + STDMETHOD( get_LastUpdated ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_LockEdits ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_LockEdits ) ( + + /* [in] */ VARIANT_BOOL Lock ) PURE; + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_NoMatch ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_Sort ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Sort ) ( + + /* [in] */ BSTR Sort ) PURE; + STDMETHOD( get_Transactions ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_Type ) ( + + /* [retval][out] */ short __RPC_FAR *ps ) PURE; + STDMETHOD( get_RecordCount ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_Updatable ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_Restartable ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_ValidationText ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_ValidationRule ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_CacheStart ) ( + + /* [retval][out] */ SAFEARRAY __RPC_FAR * __RPC_FAR *ppsa ) PURE; + STDMETHOD( put_CacheStart ) ( + + /* [in] */ SAFEARRAY __RPC_FAR * __RPC_FAR *psa ) PURE; + STDMETHOD( get_CacheSize ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( put_CacheSize ) ( + + /* [in] */ long CacheSize ) PURE; + STDMETHOD( get_PercentPosition ) ( + + /* [retval][out] */ float __RPC_FAR *pd ) PURE; + STDMETHOD( put_PercentPosition ) ( + + /* [in] */ float Position ) PURE; + STDMETHOD( get_AbsolutePosition ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( put_AbsolutePosition ) ( + + /* [in] */ long Position ) PURE; + STDMETHOD( get_EditMode ) ( + + /* [retval][out] */ short __RPC_FAR *pi ) PURE; + STDMETHOD( get_ODBCFetchCount ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_ODBCFetchDelay ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_Parent ) ( + + /* [retval][out] */ DAODatabase __RPC_FAR *__RPC_FAR *pdb ) PURE; + STDMETHOD( get_Fields ) ( + + /* [retval][out] */ DAOFields __RPC_FAR *__RPC_FAR *ppflds ) PURE; + STDMETHOD( get_Indexes ) ( + + /* [retval][out] */ DAOIndexes __RPC_FAR *__RPC_FAR *ppidxs ) PURE; + STDMETHOD( _30_CancelUpdate ) ( + VOID ) PURE; + STDMETHOD( AddNew ) ( + VOID ) PURE; + STDMETHOD( Close ) ( + VOID ) PURE; + STDMETHOD( OpenRecordset ) ( + + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Options, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( Delete ) ( + VOID ) PURE; + STDMETHOD( Edit ) ( + VOID ) PURE; + STDMETHOD( FindFirst ) ( + + /* [in] */ BSTR Criteria ) PURE; + STDMETHOD( FindLast ) ( + + /* [in] */ BSTR Criteria ) PURE; + STDMETHOD( FindNext ) ( + + /* [in] */ BSTR Criteria ) PURE; + STDMETHOD( FindPrevious ) ( + + /* [in] */ BSTR Criteria ) PURE; + STDMETHOD( MoveFirst ) ( + VOID ) PURE; + STDMETHOD( _30_MoveLast ) ( + VOID ) PURE; + STDMETHOD( MoveNext ) ( + VOID ) PURE; + STDMETHOD( MovePrevious ) ( + VOID ) PURE; + STDMETHOD( Seek ) ( + + /* [in] */ BSTR Comparison, + /* [in] */ VARIANT Key1, + /* [optional][in] */ VARIANT Key2, + /* [optional][in] */ VARIANT Key3, + /* [optional][in] */ VARIANT Key4, + /* [optional][in] */ VARIANT Key5, + /* [optional][in] */ VARIANT Key6, + /* [optional][in] */ VARIANT Key7, + /* [optional][in] */ VARIANT Key8, + /* [optional][in] */ VARIANT Key9, + /* [optional][in] */ VARIANT Key10, + /* [optional][in] */ VARIANT Key11, + /* [optional][in] */ VARIANT Key12, + /* [optional][in] */ VARIANT Key13 ) PURE; + STDMETHOD( _30_Update ) ( + VOID ) PURE; + STDMETHOD( Clone ) ( + + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( Requery ) ( + + /* [optional][in] */ VARIANT NewQueryDef ) PURE; + STDMETHOD( Move ) ( + + /* [in] */ long Rows, + /* [optional][in] */ VARIANT StartBookmark ) PURE; + STDMETHOD( FillCache ) ( + + /* [optional][in] */ VARIANT Rows, + /* [optional][in] */ VARIANT StartBookmark ) PURE; + STDMETHOD( CreateDynaset ) ( + + /* [optional][in] */ VARIANT Options, + /* [optional][in] */ VARIANT Inconsistent, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( CreateSnapshot ) ( + + /* [optional][in] */ VARIANT Options, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( CopyQueryDef ) ( + + /* [retval][out] */ DAOQueryDef __RPC_FAR *__RPC_FAR *ppqdf ) PURE; + STDMETHOD( ListFields ) ( + + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( ListIndexes ) ( + + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + STDMETHOD( GetRows ) ( + + /* [optional][in] */ VARIANT NumRows, + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_Collect ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( put_Collect ) ( + + /* [in] */ VARIANT Item, + /* [in] */ VARIANT value ) PURE; + STDMETHOD( Cancel ) ( + VOID ) PURE; + STDMETHOD( NextRecordset ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_hStmt ) ( + + /* [retval][out] */ LONG __RPC_FAR *phStmt ) PURE; + STDMETHOD( get_StillExecuting ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pStillExec ) PURE; + STDMETHOD( get_BatchSize ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( put_BatchSize ) ( + + /* [in] */ long BatchSize ) PURE; + STDMETHOD( get_BatchCollisionCount ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_BatchCollisions ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_Connection ) ( + + /* [retval][out] */ DAOConnection __RPC_FAR *__RPC_FAR *ppCn ) PURE; + STDMETHOD( putref_Connection ) ( + + /* [in] */ DAOConnection __RPC_FAR *pNewCn ) PURE; + STDMETHOD( get_RecordStatus ) ( + + /* [retval][out] */ short __RPC_FAR *pi ) PURE; + STDMETHOD( get_UpdateOptions ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( put_UpdateOptions ) ( + + /* [in] */ long l ) PURE; + STDMETHOD( CancelUpdate ) ( + + /* [defaultvalue][in] */ long UpdateType ) PURE; + STDMETHOD( Update ) ( + + /* [defaultvalue][in] */ long UpdateType, + /* [defaultvalue][in] */ VARIANT_BOOL Force ) PURE; + STDMETHOD( MoveLast ) ( + + /* [defaultvalue][in] */ long Options ) PURE; + };// end interface; + +// Interface: DAORecordsets +#undef INTERFACE +#define INTERFACE DAORecordsets +DECLARE_INTERFACE_(DAORecordsets, _DAOCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAORecordset __RPC_FAR *__RPC_FAR *pprst ) PURE; + };// end interface; + +// Interface: _DAOField +#undef INTERFACE +#define INTERFACE _DAOField +DECLARE_INTERFACE_(_DAOField, _DAO) +{ + STDMETHOD( get_CollatingOrder ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_Type ) ( + + /* [retval][out] */ short __RPC_FAR *ps ) PURE; + STDMETHOD( put_Type ) ( + + /* [in] */ short Type ) PURE; + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Name ) ( + + /* [in] */ BSTR Name ) PURE; + STDMETHOD( get_Size ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( put_Size ) ( + + /* [in] */ long Size ) PURE; + STDMETHOD( get_SourceField ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_SourceTable ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_Value ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( put_Value ) ( + + /* [in] */ VARIANT Val ) PURE; + STDMETHOD( get_Attributes ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( put_Attributes ) ( + + /* [in] */ long Attr ) PURE; + STDMETHOD( get_OrdinalPosition ) ( + + /* [retval][out] */ short __RPC_FAR *ps ) PURE; + STDMETHOD( put_OrdinalPosition ) ( + + /* [in] */ short Pos ) PURE; + STDMETHOD( get_ValidationText ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_ValidationText ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_ValidateOnSet ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_ValidateOnSet ) ( + + /* [in] */ VARIANT_BOOL Validate ) PURE; + STDMETHOD( get_ValidationRule ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_ValidationRule ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_DefaultValue ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( put_DefaultValue ) ( + + /* [in] */ VARIANT var ) PURE; + STDMETHOD( get_Required ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_Required ) ( + + /* [in] */ VARIANT_BOOL fReq ) PURE; + STDMETHOD( get_AllowZeroLength ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_AllowZeroLength ) ( + + /* [in] */ VARIANT_BOOL fAllow ) PURE; + STDMETHOD( get_DataUpdatable ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_ForeignName ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_ForeignName ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( AppendChunk ) ( + + /* [in] */ VARIANT Val ) PURE; + STDMETHOD( GetChunk ) ( + + /* [in] */ long Offset, + /* [in] */ long Bytes, + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( _30_FieldSize ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( CreateProperty ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Value, + /* [optional][in] */ VARIANT DDL, + /* [retval][out] */ DAOProperty __RPC_FAR *__RPC_FAR *pprp ) PURE; + STDMETHOD( get_CollectionIndex ) ( + + /* [retval][out] */ short __RPC_FAR *i ) PURE; + STDMETHOD( get_OriginalValue ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_VisibleValue ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_FieldSize ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + };// end interface; + +// Interface: DAOFields +#undef INTERFACE +#define INTERFACE DAOFields +DECLARE_INTERFACE_(DAOFields, _DAODynaCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOField __RPC_FAR *__RPC_FAR *ppfld ) PURE; + };// end interface; + +// Interface: _DAOIndex +#undef INTERFACE +#define INTERFACE _DAOIndex +DECLARE_INTERFACE_(_DAOIndex, _DAO) +{ + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Name ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Foreign ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( get_Unique ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_Unique ) ( + + /* [in] */ VARIANT_BOOL fUnique ) PURE; + STDMETHOD( get_Clustered ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_Clustered ) ( + + /* [in] */ VARIANT_BOOL fClustered ) PURE; + STDMETHOD( get_Required ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_Required ) ( + + /* [in] */ VARIANT_BOOL fRequired ) PURE; + STDMETHOD( get_IgnoreNulls ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_IgnoreNulls ) ( + + /* [in] */ VARIANT_BOOL fIgnoreNulls ) PURE; + STDMETHOD( get_Primary ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_Primary ) ( + + /* [in] */ VARIANT_BOOL fPrimary ) PURE; + STDMETHOD( get_DistinctCount ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( get_Fields ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pv ) PURE; + STDMETHOD( put_Fields ) ( + + /* [in] */ VARIANT v ) PURE; + STDMETHOD( CreateField ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Size, + /* [retval][out] */ DAOField __RPC_FAR *__RPC_FAR *ppfld ) PURE; + STDMETHOD( CreateProperty ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Value, + /* [optional][in] */ VARIANT DDL, + /* [retval][out] */ DAOProperty __RPC_FAR *__RPC_FAR *pprp ) PURE; + };// end interface; + +// Interface: DAOIndexes +#undef INTERFACE +#define INTERFACE DAOIndexes +DECLARE_INTERFACE_(DAOIndexes, _DAODynaCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOIndex __RPC_FAR *__RPC_FAR *ppidx ) PURE; + };// end interface; + +// Interface: DAOParameter +#undef INTERFACE +#define INTERFACE DAOParameter +DECLARE_INTERFACE_(DAOParameter, _DAO) +{ + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_Value ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( put_Value ) ( + + /* [in] */ VARIANT val ) PURE; + STDMETHOD( get_Type ) ( + + /* [retval][out] */ short __RPC_FAR *ps ) PURE; + STDMETHOD( put_Type ) ( + + /* [in] */ short s ) PURE; + STDMETHOD( get_Direction ) ( + + /* [retval][out] */ short __RPC_FAR *pOption ) PURE; + STDMETHOD( put_Direction ) ( + + /* [in] */ short Option ) PURE; + };// end interface; + +// Interface: DAOParameters +#undef INTERFACE +#define INTERFACE DAOParameters +DECLARE_INTERFACE_(DAOParameters, _DAOCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOParameter __RPC_FAR *__RPC_FAR *ppprm ) PURE; + };// end interface; + +// Interface: _DAOUser +#undef INTERFACE +#define INTERFACE _DAOUser +DECLARE_INTERFACE_(_DAOUser, _DAO) +{ + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Name ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( put_PID ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( put_Password ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Groups ) ( + + /* [retval][out] */ DAOGroups __RPC_FAR *__RPC_FAR *ppgrps ) PURE; + STDMETHOD( NewPassword ) ( + + /* [in] */ BSTR bstrOld, + /* [in] */ BSTR bstrNew ) PURE; + STDMETHOD( CreateGroup ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT PID, + /* [retval][out] */ DAOGroup __RPC_FAR *__RPC_FAR *ppgrp ) PURE; + };// end interface; + +// Interface: DAOUsers +#undef INTERFACE +#define INTERFACE DAOUsers +DECLARE_INTERFACE_(DAOUsers, _DAODynaCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOUser __RPC_FAR *__RPC_FAR *ppusr ) PURE; + };// end interface; + +// Interface: _DAOGroup +#undef INTERFACE +#define INTERFACE _DAOGroup +DECLARE_INTERFACE_(_DAOGroup, _DAO) +{ + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Name ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( put_PID ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Users ) ( + + /* [retval][out] */ DAOUsers __RPC_FAR *__RPC_FAR *ppusrs ) PURE; + STDMETHOD( CreateUser ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT PID, + /* [optional][in] */ VARIANT Password, + /* [retval][out] */ DAOUser __RPC_FAR *__RPC_FAR *ppusr ) PURE; + };// end interface; + +// Interface: DAOGroups +#undef INTERFACE +#define INTERFACE DAOGroups +DECLARE_INTERFACE_(DAOGroups, _DAODynaCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOGroup __RPC_FAR *__RPC_FAR *ppgrp ) PURE; + };// end interface; + +// Interface: _DAORelation +#undef INTERFACE +#define INTERFACE _DAORelation +DECLARE_INTERFACE_(_DAORelation, _DAO) +{ + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Name ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Table ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Table ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_ForeignTable ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_ForeignTable ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Attributes ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( put_Attributes ) ( + + /* [in] */ long attr ) PURE; + STDMETHOD( get_Fields ) ( + + /* [retval][out] */ DAOFields __RPC_FAR *__RPC_FAR *ppflds ) PURE; + STDMETHOD( CreateField ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Size, + /* [retval][out] */ DAOField __RPC_FAR *__RPC_FAR *ppfld ) PURE; + STDMETHOD( get_PartialReplica ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pfPartialReplica ) PURE; + STDMETHOD( put_PartialReplica ) ( + + /* [in] */ VARIANT_BOOL fPartialReplica ) PURE; + };// end interface; + +// Interface: DAORelations +#undef INTERFACE +#define INTERFACE DAORelations +DECLARE_INTERFACE_(DAORelations, _DAODynaCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAORelation __RPC_FAR *__RPC_FAR *pprel ) PURE; + };// end interface; + +// Interface: DAOContainer +#undef INTERFACE +#define INTERFACE DAOContainer +DECLARE_INTERFACE_(DAOContainer, _DAO) +{ + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_Owner ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Owner ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_UserName ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_UserName ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Permissions ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( put_Permissions ) ( + + /* [in] */ long permissions ) PURE; + STDMETHOD( get_Inherit ) ( + + /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pb ) PURE; + STDMETHOD( put_Inherit ) ( + + /* [in] */ VARIANT_BOOL fInherit ) PURE; + STDMETHOD( get_Documents ) ( + + /* [retval][out] */ DAODocuments __RPC_FAR *__RPC_FAR *ppdocs ) PURE; + STDMETHOD( get_AllPermissions ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + };// end interface; + +// Interface: DAOContainers +#undef INTERFACE +#define INTERFACE DAOContainers +DECLARE_INTERFACE_(DAOContainers, _DAOCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAOContainer __RPC_FAR *__RPC_FAR *ppctn ) PURE; + };// end interface; + +// Interface: DAODocument +#undef INTERFACE +#define INTERFACE DAODocument +DECLARE_INTERFACE_(DAODocument, _DAO) +{ + STDMETHOD( get_Name ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_Owner ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_Owner ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Container ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( get_UserName ) ( + + /* [retval][out] */ BSTR __RPC_FAR *pbstr ) PURE; + STDMETHOD( put_UserName ) ( + + /* [in] */ BSTR bstr ) PURE; + STDMETHOD( get_Permissions ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( put_Permissions ) ( + + /* [in] */ long permissions ) PURE; + STDMETHOD( get_DateCreated ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_LastUpdated ) ( + + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + STDMETHOD( get_AllPermissions ) ( + + /* [retval][out] */ long __RPC_FAR *pl ) PURE; + STDMETHOD( CreateProperty ) ( + + /* [optional][in] */ VARIANT Name, + /* [optional][in] */ VARIANT Type, + /* [optional][in] */ VARIANT Value, + /* [optional][in] */ VARIANT DDL, + /* [retval][out] */ DAOProperty __RPC_FAR *__RPC_FAR *pprp ) PURE; + };// end interface; + +// Interface: DAODocuments +#undef INTERFACE +#define INTERFACE DAODocuments +DECLARE_INTERFACE_(DAODocuments, _DAOCollection) +{ + STDMETHOD( get_Item ) ( + + /* [in] */ VARIANT Item, + /* [retval][out] */ DAODocument __RPC_FAR *__RPC_FAR *ppdoc ) PURE; + };// end interface; + +// Interface: DAOIndexFields +#undef INTERFACE +#define INTERFACE DAOIndexFields +DECLARE_INTERFACE_(DAOIndexFields, _DAODynaCollection) +{ + STDMETHOD( get_Item ) ( + + /* [optional][in] */ VARIANT Item, + /* [retval][out] */ VARIANT __RPC_FAR *pvar ) PURE; + };// end interface; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _DBDAOINT_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdsad.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdsad.idl new file mode 100644 index 0000000000000000000000000000000000000000..4ec8e6ed1c1d8138cd77d55a25bc7fe6bee87afc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbdsad.idl @@ -0,0 +1,118 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbdsad.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a7a-2a1c-11ce-ade5-00aa0044773d) + + +interface IDBDataSourceAdmin : IUnknown { + + [local] + HRESULT CreateDataSource( + [in] ULONG cPropertySets, + [in, out, size_is(cPropertySets), annotation("_Inout_updates_opt_(cPropertySets)")] DBPROPSET rgPropertySets[], + [in, annotation("_In_opt_")] IUnknown * pUnkOuter, + [in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), annotation("_Outptr_opt_")] IUnknown ** ppDBSession + ); + + [call_as(CreateDataSource)] + HRESULT RemoteCreateDataSource( + [in] ULONG cPropertySets, + [in, unique, size_is(cPropertySets)] DBPROPSET * rgPropertySets, + [in] IUnknown * pUnkOuter, + [in] REFIID riid, + [in, out, unique, iid_is(riid)] IUnknown ** ppDBSession, + [in] ULONG cTotalProps, + [out, size_is(cTotalProps)] DBPROPSTATUS * rgPropStatus, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT DestroyDataSource( + ); + + [call_as(DestroyDataSource)] + HRESULT RemoteDestroyDataSource( + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetCreationProperties( + [in] ULONG cPropertyIDSets, + [in, size_is(cPropertyIDSets), annotation("_In_reads_opt_(cPropertyIDSets)")] const DBPROPIDSET rgPropertyIDSets[], + [out, annotation("_Out_")] ULONG * pcPropertyInfoSets, + [out, size_is(,*pcPropertyInfoSets), annotation("_Outptr_result_buffer_maybenull_(*pcPropertyInfoSets)")] DBPROPINFOSET ** prgPropertyInfoSets, + [out, annotation("_Outptr_opt_result_maybenull_z_")] OLECHAR ** ppDescBuffer + ); + +#ifdef _WIN64 //Use casting by ULONG in attribute size_is under 64-bit environment. + + [call_as(GetCreationProperties)] + HRESULT RemoteGetCreationProperties( + [in] ULONG cPropertyIDSets, + [in, unique, size_is(cPropertyIDSets)] const DBPROPIDSET * rgPropertyIDSets, + [in, out] ULONG * pcPropertyInfoSets, + [out, size_is(,*pcPropertyInfoSets)] DBPROPINFOSET ** prgPropertyInfoSets, + [in, out] DBCOUNTITEM * pcOffsets, + [out, size_is(,(ULONG)*pcOffsets)] DBBYTEOFFSET ** prgDescOffsets, + [in, out] ULONG * pcbDescBuffer, + [in, out, unique, size_is(,*pcbDescBuffer)] OLECHAR ** ppDescBuffer, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#else //No casting by ULONG for 32-bit. + + [call_as(GetCreationProperties)] + HRESULT RemoteGetCreationProperties( + [in] ULONG cPropertyIDSets, + [in, unique, size_is(cPropertyIDSets)] const DBPROPIDSET * rgPropertyIDSets, + [in, out] ULONG * pcPropertyInfoSets, + [out, size_is(,*pcPropertyInfoSets)] DBPROPINFOSET ** prgPropertyInfoSets, + [in, out] DBCOUNTITEM * pcOffsets, + [out, size_is(,*pcOffsets)] DBBYTEOFFSET ** prgDescOffsets, + [in, out] ULONG * pcbDescBuffer, + [in, out, unique, size_is(,*pcbDescBuffer)] OLECHAR ** ppDescBuffer, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#endif + + [local] + HRESULT ModifyDataSource( + [in] ULONG cPropertySets, + [in,out, size_is(cPropertySets), annotation("_Inout_updates_opt_(cPropertySets)")] DBPROPSET rgPropertySets[] + ); + + [call_as(ModifyDataSource)] + HRESULT RemoteModifyDataSource( + [in] ULONG cPropertySets, + [in, size_is(cPropertySets)] DBPROPSET * rgPropertySets, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbinfo.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbinfo.idl new file mode 100644 index 0000000000000000000000000000000000000000..bac91d6f03b129ab20fd8795c38e14dddf6a403f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbinfo.idl @@ -0,0 +1,133 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbinfo.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a89-2a1c-11ce-ade5-00aa0044773d) + + +interface IDBInfo : IUnknown { + +typedef DWORD DBLITERAL; + +enum DBLITERALENUM { + DBLITERAL_INVALID =0, + DBLITERAL_BINARY_LITERAL =1, + DBLITERAL_CATALOG_NAME =2, + DBLITERAL_CATALOG_SEPARATOR =3, + DBLITERAL_CHAR_LITERAL =4, + DBLITERAL_COLUMN_ALIAS =5, + DBLITERAL_COLUMN_NAME =6, + DBLITERAL_CORRELATION_NAME =7, + DBLITERAL_CURSOR_NAME =8, + DBLITERAL_ESCAPE_PERCENT =9, + DBLITERAL_ESCAPE_UNDERSCORE =10, + DBLITERAL_INDEX_NAME =11, + DBLITERAL_LIKE_PERCENT =12, + DBLITERAL_LIKE_UNDERSCORE =13, + DBLITERAL_PROCEDURE_NAME =14, + DBLITERAL_QUOTE =15, + DBLITERAL_SCHEMA_NAME =16, + DBLITERAL_TABLE_NAME =17, + DBLITERAL_TEXT_COMMAND =18, + DBLITERAL_USER_NAME =19, + DBLITERAL_VIEW_NAME =20, +}; + +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +cpp_quote("#define DBLITERAL_QUOTE_PREFIX DBLITERAL_QUOTE") +enum DBLITERALENUM20 { + DBLITERAL_CUBE_NAME =21, + DBLITERAL_DIMENSION_NAME =22, + DBLITERAL_HIERARCHY_NAME =23, + DBLITERAL_LEVEL_NAME =24, + DBLITERAL_MEMBER_NAME =25, + DBLITERAL_PROPERTY_NAME =26, + DBLITERAL_SCHEMA_SEPARATOR =27, + DBLITERAL_QUOTE_SUFFIX =28, + +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +cpp_quote("#define DBLITERAL_ESCAPE_PERCENT_PREFIX DBLITERAL_ESCAPE_PERCENT") +cpp_quote("#define DBLITERAL_ESCAPE_UNDERSCORE_PREFIX DBLITERAL_ESCAPE_UNDERSCORE") +enum DBLITERALENUM21 { + DBLITERAL_ESCAPE_PERCENT_SUFFIX = 29, + DBLITERAL_ESCAPE_UNDERSCORE_SUFFIX =30, +}; +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + + + +typedef struct tagDBLITERALINFO { + LPOLESTR pwszLiteralValue; + LPOLESTR pwszInvalidChars; + LPOLESTR pwszInvalidStartingChars; + DBLITERAL lt; + BOOL fSupported; + ULONG cchMaxLen; +} DBLITERALINFO; + + [local] + HRESULT GetKeywords( + [out, annotation("_Outptr_")] LPOLESTR * ppwszKeywords + ); + + [call_as(GetKeywords)] + HRESULT RemoteGetKeywords( + [in, out, unique] LPOLESTR * ppwszKeywords, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetLiteralInfo( + [in] ULONG cLiterals, + [in, size_is(cLiterals), annotation("_In_reads_opt_(cLiterals)")] const DBLITERAL rgLiterals[], + [in, out,annotation("_Out_")] ULONG * pcLiteralInfo, + [out, size_is(,*pcLiteralInfo), annotation("_Outptr_result_buffer_(*pcLiteralInfo)")] DBLITERALINFO ** prgLiteralInfo, + [out, annotation("_Outptr_result_z_")] OLECHAR ** ppCharBuffer + ); + + [call_as(GetLiteralInfo)] + HRESULT RemoteGetLiteralInfo( + [in] ULONG cLiterals, + [in, unique, size_is(cLiterals)] const DBLITERAL *rgLiterals, + [in, out] ULONG * pcLiteralInfo, + [out, size_is(,*pcLiteralInfo)] DBLITERALINFO ** prgLiteralInfo, + [out, size_is(,*pcLiteralInfo)] DB_UPARAMS ** prgLVOffsets, + [out, size_is(,*pcLiteralInfo)] DB_UPARAMS ** prgICOffsets, + [out, size_is(,*pcLiteralInfo)] DB_UPARAMS ** prgISCOffsets, + [in, out] ULONG * pcbCharBuffer, + [in, out, unique, size_is(,*pcbCharBuffer)] OLECHAR ** ppCharBuffer, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbinit.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbinit.idl new file mode 100644 index 0000000000000000000000000000000000000000..d998a5b328aa31a04050c09511da69b1c9887321 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbinit.idl @@ -0,0 +1,52 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbinit.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a8b-2a1c-11ce-ade5-00aa0044773d) + + +interface IDBInitialize : IUnknown { + + [local] + HRESULT Initialize( + ); + + [call_as(Initialize)] + HRESULT RemoteInitialize( + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT Uninitialize( + ); + + [call_as(Uninitialize)] + HRESULT RemoteUninitialize( + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbnetlib.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbnetlib.h new file mode 100644 index 0000000000000000000000000000000000000000..d9b270105712498172cfc69da1e5447ab8f305e2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbnetlib.h @@ -0,0 +1,157 @@ +// DBNETLIB.H -This file contains Windows NT Net-Library prototypes and defines +#ifndef _DBNETLIB_H_ +#define _DBNETLIB_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#define NETERR LONG +#define TIMEINT USHORT +#define RETCODE int +#define IOINT USHORT + +// Special neterr values +#define NETE_NOTSUPPORTED 109 +#define NETE_TIMEOUT -2 +#define NETE_ERROR -1 +#define NETE_DUPLICATE -4 +#define NETE_NOT_CONNECTED 233 +#define ENUM_SUCCESS 0 +#define MORE_DATA 1 +#define NET_NOT_AVAIL 2 +#define NETE_NOMAP 0 +#define NETE_NOMEMORY 1 +#define NETE_NOACCESS 2 +#define NETE_CONNBUSY 3 +#define NETE_CONNBROKEN 4 +#define NETE_TOOMANYCONN 5 +#define NETE_SERVERNOTFOUND 6 +#define NETE_NETNOTSTARTED 7 +#define NETE_NORESOURCE 8 +#define NETE_NETBUSY 9 +#define NETE_NONETACCESS 10 +#define NETE_GENERAL 11 +#define NETE_CONNMODE 12 +#define NETE_NAMENOTFOUND 13 +#define NETE_INVALIDCONN 14 +#define NETE_NETDATAERR 15 +#define NETE_TOOMANYFILES 16 +#define NETE_CANTCONNECT 17 +#define NETE_SSLSEC 18 +#define NETE_ENCRYPT_REQ 19 +#define NETE_ENCRYPT_NOTSUP 20 + +typedef enum { NLOPT_SET_ENCRYPT, + NLOPT_SET_PACKET_SIZE } OPT_REQUEST; + +typedef struct _OPTSTRUCT +{ + int iSize; + BOOL fEncrypt; + OPT_REQUEST iRequest; + DWORD dwPacketSize; +} +OPTSTRUCT; + +// Super Socket support with eventually be the only NETLIB support for +// both SQL Servers and their clients. For now we will still include the +// original NETLIB definitions. +// + +IOINT ConnectionObjectSize( void ); + +IOINT ConnectionRead( void *, + BYTE *, + IOINT, + IOINT, + TIMEINT, + NETERR UNALIGNED * ); + +IOINT ConnectionWrite( void *, + BYTE *, + IOINT, + NETERR UNALIGNED * ); + +IOINT ConnectionTransact( void *, + BYTE *, + BYTE *, + IOINT, + IOINT, + IOINT, + TIMEINT, + NETERR UNALIGNED * ); + +IOINT ConnectionWriteOOB( void *, + BYTE *, + IOINT, + NETERR UNALIGNED * ); + +RETCODE ConnectionOpen( void *, + CHAR *, + NETERR * ); + +RETCODE ConnectionOpenW( void *, + WCHAR *, + NETERR * ); + +RETCODE ConnectionClose( void *, + NETERR UNALIGNED * ); + +RETCODE ConnectionCheckForData( void *, + LONG *, + NETERR UNALIGNED * ); + +BOOL ConnectionError( void *, + NETERR *, + CHAR **, + NETERR * ); + +BOOL ConnectionErrorW( void *, + NETERR *, + WCHAR **, + NETERR * ); + +ULONG ConnectionVer(void); + +ULONG ConnectionSqlVer( void * ); + +RETCODE ConnectionServerEnum( CHAR *, + IOINT, + IOINT UNALIGNED * ); + +RETCODE ConnectionServerEnumW( WCHAR *, + ULONG, + IOINT UNALIGNED * ); + +BOOL ConnectionOption( void * , + OPTSTRUCT * ); + +void ConnectionGetSvrUser( void * , + char * ); + +HANDLE InitEnumServers( LPWSTR , + LPWSTR ); + +BOOL GetNextEnumeration( HANDLE , + BYTE * , + int * ); + +void CloseEnumServers( HANDLE ); + +BOOL InitSSPIPackage (DWORD *pcbMaxMessage); + +BOOL TermSSPIPackage (void); + +BOOL GenClientContext (DWORD dwKey, BYTE *pIn, DWORD cbIn, BYTE *pOut, DWORD *pcbOut, BOOL *pfDone, CHAR *szUserName); + +BOOL InitSession (DWORD dwKey); + +BOOL TermSession (DWORD dwKey); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbprop.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbprop.idl new file mode 100644 index 0000000000000000000000000000000000000000..0ef3c8d6f1fb03d20ebf4967f32a386156a2326c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbprop.idl @@ -0,0 +1,92 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbprop.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a8a-2a1c-11ce-ade5-00aa0044773d) + + +interface IDBProperties : IUnknown { + + [local] + HRESULT GetProperties( + [in] ULONG cPropertyIDSets, + [in, size_is(cPropertyIDSets), annotation("_In_reads_opt_(cPropertyIDSets)")] + const DBPROPIDSET rgPropertyIDSets[], + [in, out, annotation("_Out_")] ULONG * pcPropertySets, + [out, size_is(,*pcPropertySets), annotation("_Outptr_result_buffer_maybenull_(*pcPropertySets)")] + DBPROPSET ** prgPropertySets + ); + + [call_as(GetProperties)] + HRESULT RemoteGetProperties( + [in] ULONG cPropertyIDSets, + [in, unique, size_is(cPropertyIDSets)] const DBPROPIDSET *rgPropertyIDSets, + [in, out] ULONG * pcPropertySets, + [out, size_is(,*pcPropertySets)] DBPROPSET ** prgPropertySets, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetPropertyInfo( + [in] ULONG cPropertyIDSets, + [in, size_is(cPropertyIDSets), annotation("_In_reads_opt_(cPropertyIDSets)")] + const DBPROPIDSET rgPropertyIDSets[], + [in, out, annotation("_Out_")] ULONG * pcPropertyInfoSets, + [out, size_is(,*pcPropertyInfoSets), annotation("_Outptr_result_buffer_maybenull_(*pcPropertyInfoSets)")] + DBPROPINFOSET ** prgPropertyInfoSets, + [out, annotation("_Outptr_opt_result_maybenull_z_")] OLECHAR ** ppDescBuffer + ); + + [call_as(GetPropertyInfo)] + HRESULT RemoteGetPropertyInfo( + [in] ULONG cPropertyIDSets, + [in, unique, size_is(cPropertyIDSets)] const DBPROPIDSET * rgPropertyIDSets, + [in, out] ULONG * pcPropertyInfoSets, + [out, size_is(,*pcPropertyInfoSets)] DBPROPINFOSET ** prgPropertyInfoSets, + [in, out] ULONG * pcOffsets, + [out, size_is(,*pcOffsets)] DBBYTEOFFSET ** prgDescOffsets, + [in, out] ULONG * pcbDescBuffer, + [in, out, unique, size_is(,*pcbDescBuffer)] OLECHAR ** ppDescBuffer, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT SetProperties( + [in] ULONG cPropertySets, + [in, out, size_is(cPropertySets), annotation("_Inout_updates_opt_(cPropertySets)")] DBPROPSET rgPropertySets[] + ); + + [call_as(SetProperties)] + HRESULT RemoteSetProperties( + [in] ULONG cPropertySets, + [in, unique, size_is(cPropertySets)] DBPROPSET * rgPropertySets, + [in] ULONG cTotalProps, + [out, size_is(cTotalProps)] DBPROPSTATUS * rgPropStatus, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbrtpr.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbrtpr.idl new file mode 100644 index 0000000000000000000000000000000000000000..fe5ee085dd969d158fcf0c28c026c35971af8f43 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbrtpr.idl @@ -0,0 +1,35 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbrtpr.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" + + REMOTED_INTERFACE(0c733ab3-2a1c-11ce-ade5-00aa0044773d) + + +interface IDBBinderProperties : IDBProperties +{ + HRESULT Reset( + ); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbs.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbs.idl new file mode 100644 index 0000000000000000000000000000000000000000..1e1fa010aec509288110d9bb66f919b2d25b928b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbs.idl @@ -0,0 +1,2435 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbs.idl +// +// Contents: OLE/DB structure definititions +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +[ + uuid(0c733a80-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] + +interface DBStructureDefinitions { + + // + // A DBID is the way a particular column is identified. + // It consists of a GUID followed by either a LONG or a Unicode + // string. + // +cpp_quote("#ifndef UNALIGNED") +cpp_quote("#if defined(_MIPS_) || defined(_ALPHA_) || defined(_PPC_)") +cpp_quote("#define UNALIGNED __unaligned") +cpp_quote("#else") +cpp_quote("#define UNALIGNED") +cpp_quote("#endif") +cpp_quote("#endif //UNALIGNED") + +cpp_quote("#undef OLEDBDECLSPEC") +cpp_quote("#if _MSC_VER >= 1100 && (!defined(SHx) || (defined(SHx) && _MSC_VER >= 1200))") +cpp_quote("#define OLEDBDECLSPEC __declspec(selectany)") +cpp_quote("#else") +cpp_quote("#define OLEDBDECLSPEC ") +cpp_quote("#endif //_MSC_VER") + +typedef DWORD DBKIND; + +enum DBKINDENUM { + DBKIND_GUID_NAME, + DBKIND_GUID_PROPID, + DBKIND_NAME, + DBKIND_PGUID_NAME, + DBKIND_PGUID_PROPID, + DBKIND_PROPID, + DBKIND_GUID, +}; + +typedef struct tagDBID { + [switch_type(DBKIND),switch_is(eKind)] union { + [case(DBKIND_GUID_NAME, DBKIND_GUID_PROPID, DBKIND_GUID, DBKIND_NAME, DBKIND_PROPID)] GUID guid; + [case(DBKIND_PGUID_NAME, DBKIND_PGUID_PROPID)] GUID *pguid; + [default] ; + } uGuid; + DBKIND eKind; + [switch_type(DBKIND),switch_is(eKind)] union { + [case(DBKIND_GUID_NAME, DBKIND_NAME, DBKIND_PGUID_NAME)] LPOLESTR pwszName; + [case(DBKIND_GUID_PROPID, DBKIND_PGUID_PROPID, DBKIND_PROPID, DBKIND_GUID)] ULONG ulPropid; + [default] ; + } uName; +} DBID; + + // + // DB_NUMERIC type + // + +typedef struct tagDB_NUMERIC { + BYTE precision; // not to exceed 28 + BYTE scale; + BYTE sign; + BYTE val[16]; +} DB_NUMERIC; + + // + // DECIMAL and ULONGLONG definitions, just in case + // + +cpp_quote("#ifndef _ULONGLONG_") +cpp_quote("typedef hyper LONGLONG;") +cpp_quote("") +cpp_quote("typedef MIDL_uhyper ULONGLONG;") +cpp_quote("") +cpp_quote("typedef LONGLONG __RPC_FAR *PLONGLONG;") +cpp_quote("") +cpp_quote("typedef ULONGLONG __RPC_FAR *PULONGLONG;") +cpp_quote("") +cpp_quote("#endif // _ULONGLONG_") +cpp_quote("#ifndef DECIMAL_NEG") +cpp_quote("#ifndef DECIMAL_SETZERO") +cpp_quote("typedef struct tagDEC {") +cpp_quote(" USHORT wReserved;") +cpp_quote(" union {") +cpp_quote(" struct {") +cpp_quote(" BYTE scale;") +cpp_quote(" BYTE sign;") +cpp_quote(" };") +cpp_quote(" USHORT signscale;") +cpp_quote(" };") +cpp_quote(" ULONG Hi32;") +cpp_quote(" union {") +cpp_quote(" struct {") +cpp_quote("#ifdef _MAC") +cpp_quote(" ULONG Mid32;") +cpp_quote(" ULONG Lo32;") +cpp_quote("#else") +cpp_quote(" ULONG Lo32;") +cpp_quote(" ULONG Mid32;") +cpp_quote("#endif") +cpp_quote(" };") +cpp_quote(" ULONGLONG Lo64;") +cpp_quote(" };") +cpp_quote("} DECIMAL;") +cpp_quote("#define DECIMAL_NEG ((BYTE)0x80)") +cpp_quote("#define DECIMAL_SETZERO(dec) {(dec).Lo64 = 0; (dec).Hi32 = 0; (dec).signscale = 0;}") +cpp_quote("#endif // DECIMAL_SETZERO") +cpp_quote("#endif // DECIMAL_NEG") + + + // + // DBVECTOR type + // + +typedef struct tagDBVECTOR { + DBLENGTH size; + [size_is((ULONG)size)] void * ptr; +} DBVECTOR; + + // + // DBDATE, DBTIME, and DBTIMESTAMP + // + +typedef struct tagDBDATE { + SHORT year; + USHORT month; + USHORT day; +} DBDATE; + +typedef struct tagDBTIME { + USHORT hour; + USHORT minute; + USHORT second; +} DBTIME; + +typedef struct tagDBTIMESTAMP { + SHORT year; + USHORT month; + USHORT day; + USHORT hour; + USHORT minute; + USHORT second; + ULONG fraction; +} DBTIMESTAMP; + +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +cpp_quote("#if !defined(_WINBASE_) && !defined(_FILETIME_)") +cpp_quote("#define _FILETIME_") +cpp_quote("typedef struct _FILETIME {") +cpp_quote(" DWORD dwLowDateTime;") +cpp_quote(" DWORD dwHighDateTime;") +cpp_quote(" } FILETIME;") +cpp_quote("#endif // !_FILETIME") + +typedef signed char SBYTE; + +typedef struct tagDB_VARNUMERIC + { + BYTE precision; + SBYTE scale; + BYTE sign; + BYTE val[]; + } DB_VARNUMERIC; + +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +// VERSION 2.1 +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +typedef struct _SEC_OBJECT_ELEMENT { + GUID guidObjectType; + DBID ObjectID; +} SEC_OBJECT_ELEMENT; + +typedef struct _SEC_OBJECT { + DWORD cObjects; + [size_is(cObjects)] SEC_OBJECT_ELEMENT *prgObjects; +} SEC_OBJECT; + +typedef struct tagDBIMPLICITSESSION { + IUnknown *pUnkOuter; + IID *piid; + IUnknown *pSession; +} DBIMPLICITSESSION; +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + + // + // DBTYPE -- data type indicators + // + +typedef WORD DBTYPE; + +enum DBTYPEENUM { + // The following values exactly match VARENUM in OLE Automation and may + // be used in VARIANT + DBTYPE_EMPTY = 0, + DBTYPE_NULL = 1, + DBTYPE_I2 = 2, + DBTYPE_I4 = 3, + DBTYPE_R4 = 4, + DBTYPE_R8 = 5, + DBTYPE_CY = 6, + DBTYPE_DATE = 7, + DBTYPE_BSTR = 8, + DBTYPE_IDISPATCH = 9, + DBTYPE_ERROR = 10, + DBTYPE_BOOL = 11, + DBTYPE_VARIANT = 12, + DBTYPE_IUNKNOWN = 13, + DBTYPE_DECIMAL = 14, + DBTYPE_UI1 = 17, + DBTYPE_ARRAY = 0x2000, + DBTYPE_BYREF = 0x4000, + + // The following values exactly match VARENUM in OLE Automation but cannot + // be used in VARIANT + DBTYPE_I1 = 16, + DBTYPE_UI2 = 18, + DBTYPE_UI4 = 19, + DBTYPE_I8 = 20, + DBTYPE_UI8 = 21, + DBTYPE_GUID = 72, + DBTYPE_VECTOR = 0x1000, + DBTYPE_RESERVED = 0x8000, + + // The following values are not in VARENUM in OLE + DBTYPE_BYTES = 128, + DBTYPE_STR = 129, + DBTYPE_WSTR = 130, + DBTYPE_NUMERIC = 131, + DBTYPE_UDT = 132, + DBTYPE_DBDATE = 133, + DBTYPE_DBTIME = 134, + DBTYPE_DBTIMESTAMP = 135, +}; + +cpp_quote("// Introduce some new DBTYPTE value to support 64bits ColumnsRowset") +cpp_quote("#ifdef _WIN64") +cpp_quote("#define DBTYPEFOR_DBLENGTH DBTYPE_UI8") +cpp_quote("#define DBTYPEFOR_DBROWCOUNT DBTYPE_I8") +cpp_quote("#define DBTYPEFOR_DBORDINAL DBTYPE_UI8") +cpp_quote("#else") +cpp_quote("#define DBTYPEFOR_DBLENGTH DBTYPE_UI4") +cpp_quote("#define DBTYPEFOR_DBROWCOUNT DBTYPE_I4") +cpp_quote("#define DBTYPEFOR_DBORDINAL DBTYPE_UI4") +cpp_quote("#endif") + +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") +enum DBTYPEENUM15 { + DBTYPE_HCHAPTER = 136, +}; +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +enum DBTYPEENUM20 { + DBTYPE_FILETIME = 64, + DBTYPE_PROPVARIANT = 138, + DBTYPE_VARNUMERIC = 139, +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + + // + // DBBINDING -- describes the relationship between a field and its value + // + +typedef DWORD DBPART; + +enum DBPARTENUM { + DBPART_INVALID = 0x0, + DBPART_VALUE = 0x1, + DBPART_LENGTH = 0x2, + DBPART_STATUS = 0x4, +}; + +typedef DWORD DBPARAMIO; + +enum DBPARAMIOENUM { + DBPARAMIO_NOTPARAM = 0x00, + DBPARAMIO_INPUT = 0x01, + DBPARAMIO_OUTPUT = 0x02, +}; + +// VERSION 1.5 +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") +typedef DWORD DBBINDFLAG; + +enum DBBINDFLAGENUM { + DBBINDFLAG_HTML = 0x01, +}; +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +typedef DWORD DBMEMOWNER; + +enum DBMEMOWNERENUM { + DBMEMOWNER_CLIENTOWNED = 0x0, + DBMEMOWNER_PROVIDEROWNED = 0x1, +}; + +typedef struct tagDBOBJECT { + DWORD dwFlags; + IID iid; +} DBOBJECT; + +typedef DWORD DBSTATUS; + +enum DBSTATUSENUM { + DBSTATUS_S_OK = 0, + DBSTATUS_E_BADACCESSOR = 1, + DBSTATUS_E_CANTCONVERTVALUE = 2, + DBSTATUS_S_ISNULL = 3, + DBSTATUS_S_TRUNCATED = 4, + DBSTATUS_E_SIGNMISMATCH = 5, + DBSTATUS_E_DATAOVERFLOW = 6, + DBSTATUS_E_CANTCREATE = 7, + DBSTATUS_E_UNAVAILABLE = 8, + DBSTATUS_E_PERMISSIONDENIED = 9, + DBSTATUS_E_INTEGRITYVIOLATION = 10, + DBSTATUS_E_SCHEMAVIOLATION = 11, + DBSTATUS_E_BADSTATUS = 12, + DBSTATUS_S_DEFAULT = 13, +}; + +// VERSION 2.0 +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +enum DBSTATUSENUM20 { + MDSTATUS_S_CELLEMPTY = 14, + DBSTATUS_S_IGNORE = 15, +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +// VERSION 2.1 +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +enum DBSTATUSENUM21 { + DBSTATUS_E_DOESNOTEXIST = 16, + DBSTATUS_E_INVALIDURL = 17, + DBSTATUS_E_RESOURCELOCKED = 18, + DBSTATUS_E_RESOURCEEXISTS = 19, + DBSTATUS_E_CANNOTCOMPLETE = 20, + DBSTATUS_E_VOLUMENOTFOUND = 21, + DBSTATUS_E_OUTOFSPACE = 22, + DBSTATUS_S_CANNOTDELETESOURCE= 23, + DBSTATUS_E_READONLY = 24, + DBSTATUS_E_RESOURCEOUTOFSCOPE = 25, + DBSTATUS_S_ALREADYEXISTS =26, +}; + +typedef DWORD DBBINDURLFLAG; + +enum DBBINDURLFLAGENUM { + DBBINDURLFLAG_READ = 0x00000001L, + DBBINDURLFLAG_WRITE = 0x00000002L, + DBBINDURLFLAG_READWRITE = 0x00000003L, + DBBINDURLFLAG_SHARE_DENY_READ = 0x00000004L, + DBBINDURLFLAG_SHARE_DENY_WRITE = 0x00000008L, + DBBINDURLFLAG_SHARE_EXCLUSIVE = 0x0000000CL, + DBBINDURLFLAG_SHARE_DENY_NONE = 0x00000010L, + DBBINDURLFLAG_ASYNCHRONOUS = 0x00001000L, + DBBINDURLFLAG_COLLECTION = 0x00002000L, + DBBINDURLFLAG_DELAYFETCHSTREAM = 0x00004000L, + DBBINDURLFLAG_DELAYFETCHCOLUMNS = 0x00008000L, + DBBINDURLFLAG_RECURSIVE = 0x00400000L, + DBBINDURLFLAG_OUTPUT = 0x00800000L, + DBBINDURLFLAG_WAITFORINIT = 0x01000000L, + DBBINDURLFLAG_OPENIFEXISTS = 0x02000000L, + DBBINDURLFLAG_OVERWRITE = 0x04000000L, + DBBINDURLFLAG_ISSTRUCTUREDDOCUMENT = 0x08000000L, + }; + +typedef DWORD DBBINDURLSTATUS; + +enum DBBINDURLSTATUSENUM { + DBBINDURLSTATUS_S_OK = 0x00000000L, + DBBINDURLSTATUS_S_DENYNOTSUPPORTED = 0x00000001L, + DBBINDURLSTATUS_S_DENYTYPENOTSUPPORTED = 0x00000004L, + DBBINDURLSTATUS_S_REDIRECTED = 0x00000008L, + }; + + +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + +cpp_quote("//@@@+ V2.5") +cpp_quote("#if( OLEDBVER >= 0x0250 )") +enum DBSTATUSENUM25 { + DBSTATUS_E_CANCELED = 27, + DBSTATUS_E_NOTCOLLECTION =28, +}; +cpp_quote("#endif // OLEDBVER >= 0x0250") +cpp_quote("//@@@- V2.5") + +typedef struct tagDBBINDEXT { + [size_is((ULONG)ulExtension)] BYTE * pExtension; + DBCOUNTITEM ulExtension; +} DBBINDEXT; + +typedef struct tagDBBINDING { + DBORDINAL iOrdinal; + DBBYTEOFFSET obValue; + DBBYTEOFFSET obLength; + DBBYTEOFFSET obStatus; + ITypeInfo * pTypeInfo; + DBOBJECT *pObject; + DBBINDEXT *pBindExt; + DBPART dwPart; + DBMEMOWNER dwMemOwner; + DBPARAMIO eParamIO; + DBLENGTH cbMaxLen; + DWORD dwFlags; + DBTYPE wType; + BYTE bPrecision; + BYTE bScale; +} DBBINDING; + + + // + // ROWSTATUS values + // + +typedef DWORD DBROWSTATUS; + +enum DBROWSTATUSENUM { + DBROWSTATUS_S_OK = 0, +// DBROWSTATUS_S_LOCKUPGRADED = 1, + DBROWSTATUS_S_MULTIPLECHANGES = 2, + DBROWSTATUS_S_PENDINGCHANGES = 3, + DBROWSTATUS_E_CANCELED = 4, +// DBROWSTATUS_E_CANTLOCKROW = 5, + DBROWSTATUS_E_CANTRELEASE = 6, + DBROWSTATUS_E_CONCURRENCYVIOLATION = 7, + DBROWSTATUS_E_DELETED = 8, + DBROWSTATUS_E_PENDINGINSERT = 9, + DBROWSTATUS_E_NEWLYINSERTED = 10, + DBROWSTATUS_E_INTEGRITYVIOLATION = 11, + DBROWSTATUS_E_INVALID = 12, + DBROWSTATUS_E_MAXPENDCHANGESEXCEEDED = 13, + DBROWSTATUS_E_OBJECTOPEN = 14, + DBROWSTATUS_E_OUTOFMEMORY = 15, + DBROWSTATUS_E_PERMISSIONDENIED = 16, + DBROWSTATUS_E_LIMITREACHED = 17, + DBROWSTATUS_E_SCHEMAVIOLATION = 18, + DBROWSTATUS_E_FAIL = 19, +}; + +// VERSION 2.0 +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +enum DBROWSTATUSENUM20 { + DBROWSTATUS_S_NOCHANGE = 20, +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +cpp_quote("//@@@+ V2.6") +cpp_quote("#if( OLEDBVER >= 0x0260 )") +enum DBSTATUSENUM26 { + DBSTATUS_S_ROWSETCOLUMN = 29 +}; + +cpp_quote("#endif // OLEDBVER >= 0x0260") +cpp_quote("//@@@- V2.6") + + // + // HACCESSOR and related definitions + // + +typedef ULONG_PTR HACCESSOR; + +cpp_quote("#define DB_NULL_HACCESSOR 0x00 // deprecated; use DB_INVALID_HACCESSOR instead") +cpp_quote("#define DB_INVALID_HACCESSOR 0x00") + + // + // HROW and related definitions + // + +typedef ULONG_PTR HROW; + +cpp_quote("#define DB_NULL_HROW 0x00") + +// PPP -- until HWATCHREGION is gone from the two V1.0 fn's... +//cpp_quote("//@@@+ V2.0") +//cpp_quote("#if( OLEDBVER >= 0x0200 )") + + // + // HWATCHREGION and related definitions + // + +typedef ULONG_PTR HWATCHREGION; + +cpp_quote("#define DBWATCHREGION_NULL NULL") + +//cpp_quote("#endif // OLEDBVER >= 0x0200") +//cpp_quote("//@@@- V2.0") + + // + // HCHAPTER and related definitions + // + +typedef ULONG_PTR HCHAPTER; + +cpp_quote("#define DB_NULL_HCHAPTER 0x00") +cpp_quote("#define DB_INVALID_HCHAPTER 0x00 // deprecated; use DB_NULL_HCHAPTER instead") + + // + // DBFAILUREINFO -- info on error rows + // + +typedef struct tagDBFAILUREINFO { + HROW hRow; + DBORDINAL iColumn; + HRESULT failure; +} DBFAILUREINFO; + + // + // DBCOLUMNFLAGS -- describe column characteristics + // + +typedef DWORD DBCOLUMNFLAGS; + +enum DBCOLUMNFLAGSENUM { + DBCOLUMNFLAGS_ISBOOKMARK = 0x0001, + DBCOLUMNFLAGS_MAYDEFER = 0x0002, + DBCOLUMNFLAGS_WRITE = 0x0004, + DBCOLUMNFLAGS_WRITEUNKNOWN = 0x0008, + DBCOLUMNFLAGS_ISFIXEDLENGTH = 0x0010, + DBCOLUMNFLAGS_ISNULLABLE = 0x0020, + DBCOLUMNFLAGS_MAYBENULL = 0x0040, + DBCOLUMNFLAGS_ISLONG = 0x0080, + DBCOLUMNFLAGS_ISROWID = 0x0100, + DBCOLUMNFLAGS_ISROWVER = 0x0200, + DBCOLUMNFLAGS_CACHEDEFERRED = 0x1000, +}; + +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +enum DBCOLUMNFLAGSENUM20 { + DBCOLUMNFLAGS_SCALEISNEGATIVE = 0x4000, + DBCOLUMNFLAGS_RESERVED = 0x8000, +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +// deprecated +cpp_quote("//@@@+ oledb_deprecated") +cpp_quote("#ifdef oledb_deprecated") +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +enum DBCOLUMNFLAGSDEPRECATED { + DBCOLUMNFLAGS_KEYCOLUMN = 0x8000 // return this information using IColumnsRowset +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") +cpp_quote("#endif // oledb_deprecated") +cpp_quote("//@@@- oledb_deprecated") + +// VERSION 1.5 +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") +enum DBCOLUMNFLAGS15ENUM { + DBCOLUMNFLAGS_ISCHAPTER = 0x2000, +}; +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +enum DBCOLUMNFLAGSENUM21 { + DBCOLUMNFLAGS_ISROWURL = 0x10000, + DBCOLUMNFLAGS_ISDEFAULTSTREAM = 0x20000, + DBCOLUMNFLAGS_ISCOLLECTION = 0x40000, +}; +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + +cpp_quote("//@@@+ V2.6") +cpp_quote("#if( OLEDBVER >= 0x0260 )") +enum DBCOLUMNFLAGSENUM26 { + DBCOLUMNFLAGS_ISSTREAM = 0x80000, + DBCOLUMNFLAGS_ISROWSET = 0x100000, + DBCOLUMNFLAGS_ISROW = 0x200000, + DBCOLUMNFLAGS_ROWSPECIFICCOLUMN = 0x400000, +}; + +enum DBTABLESTATISTICSTYPE26 { + DBSTAT_HISTOGRAM = 0x0001, + DBSTAT_COLUMN_CARDINALITY = 0x0002, + DBSTAT_TUPLE_CARDINALITY = 0x0004, +}; + +cpp_quote("#endif // OLEDBVER >= 0x0260") +cpp_quote("//@@@- V2.6") + // + // DBCOLUMNINFO struct + // + +typedef struct tagDBCOLUMNINFO { + LPOLESTR pwszName; + ITypeInfo * pTypeInfo; + DBORDINAL iOrdinal; + DBCOLUMNFLAGS dwFlags; + DBLENGTH ulColumnSize; + DBTYPE wType; + BYTE bPrecision; + BYTE bScale; + DBID columnid; +} DBCOLUMNINFO; + + // + // Predefined bookmark values + // + +typedef enum tagDBBOOKMARK { + DBBMK_INVALID = 0, + DBBMK_FIRST, + DBBMK_LAST +} DBBOOKMARK; + +cpp_quote("#define STD_BOOKMARKLENGTH 1") + + // + // Comparison of GUIDs + // + +cpp_quote("#ifdef __cplusplus") +cpp_quote("inline BOOL IsEqualGUIDBase(const GUID &rguid1, const GUID &rguid2)") +cpp_quote("{ return !memcmp(&(rguid1.Data2), &(rguid2.Data2), sizeof(GUID) - sizeof(rguid1.Data1)); }") +cpp_quote("#else // !__cplusplus") +cpp_quote("#define IsEqualGuidBase(rguid1, rguid2) (!memcmp(&((rguid1).Data2), &((rguid2).Data2), sizeof(GUID) - sizeof((rguid1).Data1)))") +cpp_quote("#endif // __cplusplus") + + // + // DB_INVALIDCOLUMN define + // + +cpp_quote("#ifdef _WIN64") +cpp_quote("") +cpp_quote("#define DB_INVALIDCOLUMN _UI64_MAX") +cpp_quote("") +cpp_quote("#else") +cpp_quote("") +cpp_quote("#define DB_INVALIDCOLUMN ULONG_MAX") +cpp_quote("") +cpp_quote("#endif // _WIN64") + + // + // Predefined DBID's + // + +cpp_quote("#define DBCIDGUID {0x0C733A81L,0x2A1C,0x11CE,{0xAD,0xE5,0x00,0xAA,0x00,0x44,0x77,0x3D}}") +cpp_quote("#define DB_NULLGUID {0x00000000L,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}") + +cpp_quote("#ifdef DBINITCONSTANTS") + +cpp_quote("extern const OLEDBDECLSPEC DBID DB_NULLID = {DB_NULLGUID, 0, (LPOLESTR)0};") + +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_IDNAME = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)2};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_NAME = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)3};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_NUMBER = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)4};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_TYPE = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)5};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_PRECISION = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)7};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_SCALE = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)8};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_FLAGS = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)9};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_BASECOLUMNNAME = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)10};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_BASETABLENAME = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)11};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_COLLATINGSEQUENCE = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)12};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_COMPUTEMODE = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)13};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_DEFAULTVALUE = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)14};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_DOMAINNAME = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)15};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_HASDEFAULT = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)16};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_ISAUTOINCREMENT = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)17};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_ISCASESENSITIVE = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)18};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_ISSEARCHABLE = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)20};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_ISUNIQUE = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)21};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_BASECATALOGNAME = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)23};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_BASESCHEMANAME = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)24};") + +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_GUID = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)29};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_PROPID = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)30};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_TYPEINFO = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)31};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_DOMAINCATALOG = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)32};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_DOMAINSCHEMA = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)33};") + +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_DATETIMEPRECISION = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)34};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_NUMERICPRECISIONRADIX = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)35};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_OCTETLENGTH = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)36};") + +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_COLUMNSIZE = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)37};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_CLSID = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)38};") + +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") + +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_MAYSORT = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)39};") + +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +cpp_quote("#else // !DBINITCONSTANTS") + +cpp_quote("extern const DBID DB_NULLID;") + +cpp_quote("extern const DBID DBCOLUMN_IDNAME;") +cpp_quote("extern const DBID DBCOLUMN_NAME;") +cpp_quote("extern const DBID DBCOLUMN_NUMBER;") +cpp_quote("extern const DBID DBCOLUMN_TYPE;") +cpp_quote("extern const DBID DBCOLUMN_PRECISION;") +cpp_quote("extern const DBID DBCOLUMN_SCALE;") +cpp_quote("extern const DBID DBCOLUMN_FLAGS;") +cpp_quote("extern const DBID DBCOLUMN_BASECOLUMNNAME;") +cpp_quote("extern const DBID DBCOLUMN_BASETABLENAME;") +cpp_quote("extern const DBID DBCOLUMN_COLLATINGSEQUENCE;") +cpp_quote("extern const DBID DBCOLUMN_COMPUTEMODE;") +cpp_quote("extern const DBID DBCOLUMN_DEFAULTVALUE;") +cpp_quote("extern const DBID DBCOLUMN_DOMAINNAME;") +cpp_quote("extern const DBID DBCOLUMN_HASDEFAULT;") +cpp_quote("extern const DBID DBCOLUMN_ISAUTOINCREMENT;") +cpp_quote("extern const DBID DBCOLUMN_ISCASESENSITIVE;") +cpp_quote("extern const DBID DBCOLUMN_ISSEARCHABLE;") +cpp_quote("extern const DBID DBCOLUMN_ISUNIQUE;") +cpp_quote("extern const DBID DBCOLUMN_BASECATALOGNAME;") +cpp_quote("extern const DBID DBCOLUMN_BASESCHEMANAME;") + +cpp_quote("extern const DBID DBCOLUMN_GUID;") +cpp_quote("extern const DBID DBCOLUMN_PROPID;") +cpp_quote("extern const DBID DBCOLUMN_TYPEINFO;") +cpp_quote("extern const DBID DBCOLUMN_DOMAINCATALOG;") +cpp_quote("extern const DBID DBCOLUMN_DOMAINSCHEMA;") + +cpp_quote("extern const DBID DBCOLUMN_DATETIMEPRECISION;") +cpp_quote("extern const DBID DBCOLUMN_NUMERICPRECISIONRADIX;") +cpp_quote("extern const DBID DBCOLUMN_OCTETLENGTH;") + +cpp_quote("extern const DBID DBCOLUMN_COLUMNSIZE;") +cpp_quote("extern const DBID DBCOLUMN_CLSID;") + +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") + +cpp_quote("extern const DBID DBCOLUMN_MAYSORT;") + +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +cpp_quote("#endif // DBINITCONSTANTS") + + // + // Well-known GUIDs + // + +cpp_quote("#ifdef DBINITCONSTANTS") +cpp_quote("//@@@+ V2.6") +cpp_quote("#if( OLEDBVER >= 0x0260 )") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_FUNCTIONS = {0xa07ccd07,0x8148,0x11d0,{0x87,0xbb,0x00,0xc0,0x4f,0xc3,0x39,0x42}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_ACTIONS = {0xa07ccd08,0x8148,0x11d0,{0x87,0xbb,0x00,0xc0,0x4f,0xc3,0x39,0x42}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_COMMANDS = {0xa07ccd09,0x8148,0x11d0,{0x87,0xbb,0x00,0xc0,0x4f,0xc3,0x39,0x42}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_SETS = {0xa07ccd0b,0x8148,0x11d0,{0x87,0xbb,0x00,0xc0,0x4f,0xc3,0x39,0x42}};") +cpp_quote("#endif // OLEDBVER >= 0x0260") +cpp_quote("//@@@- V2.6") + +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_TABLES_INFO = {0xc8b522e0,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDGUID_MDX = {0xa07cccd0,0x8148,0x11d0,{0x87,0xbb,0x00,0xc0,0x4f,0xc3,0x39,0x42}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_MDX = {0xa07cccd0,0x8148,0x11d0,{0x87,0xbb,0x00,0xc0,0x4f,0xc3,0x39,0x42}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_CUBES = {0xc8b522d8,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_DIMENSIONS = {0xc8b522d9,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_HIERARCHIES = {0xc8b522da,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_LEVELS = {0xc8b522db,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_MEASURES = {0xc8b522dc,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_PROPERTIES = {0xc8b522dd,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID MDSCHEMA_MEMBERS = {0xc8b522de,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_BASETABLEVERSION = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)40};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_KEYCOLUMN = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)41};") +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +cpp_quote("#define DBGUID_ROWURL {0x0C733AB6L,0x2A1C,0x11CE,{0xAD,0xE5,0x00,0xAA,0x00,0x44,0x77,0x3D}}") +cpp_quote("#define DBGUID_ROWDEFAULTSTREAM {0x0C733AB7L,0x2A1C,0x11CE,{0xAD,0xE5,0x00,0xAA,0x00,0x44,0x77,0x3D}}") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_TRUSTEE = {0xc8b522e1,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_TABLE = {0xc8b522e2,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_COLUMN = {0xc8b522e4,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_DATABASE = {0xc8b522e5,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_PROCEDURE = {0xc8b522e6,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_VIEW = {0xc8b522e7,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_SCHEMA = {0xc8b522e8,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_DOMAIN = {0xc8b522e9,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_COLLATION = {0xc8b522ea,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_TRUSTEE = {0xc8b522eb,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_SCHEMAROWSET = {0xc8b522ec,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_CHARACTERSET = {0xc8b522ed,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBOBJECT_TRANSLATION = {0xc8b522ee,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_TRUSTEE = {0xc8b522ef,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_COLUMNALL = {0xc8b522f0,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_INDEXALL = {0xc8b522f1,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_TABLEALL = {0xc8b522f2,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_TRUSTEEALL = {0xc8b522f3,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_CONSTRAINTALL = {0xc8b522fa,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_DSO = {0xc8b522f4,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_SESSION = {0xc8b522f5,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_ROWSET = {0xc8b522f6,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_ROW = {0xc8b522f7,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_COMMAND = {0xc8b522f8,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_STREAM = {0xc8b522f9,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_ROWURL = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)0};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_PARSENAME = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)2};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_PARENTNAME = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)3};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_ABSOLUTEPARSENAME = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)4};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_ISHIDDEN = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)5};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_ISREADONLY = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)6};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_CONTENTTYPE = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)7};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_CONTENTCLASS = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)8};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_CONTENTLANGUAGE = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)9};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_CREATIONTIME = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)10};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_LASTACCESSTIME = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)11};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_LASTWRITETIME = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)12};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_STREAMSIZE = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)13};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_ISCOLLECTION = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)14};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_ISSTRUCTUREDDOCUMENT = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)15};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_DEFAULTDOCUMENT = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)16};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_DISPLAYNAME = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)17};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_ISROOT = {DBGUID_ROWURL, DBKIND_GUID_PROPID, (LPOLESTR)18};") +cpp_quote("extern const OLEDBDECLSPEC DBID DBROWCOL_DEFAULTSTREAM = {DBGUID_ROWDEFAULTSTREAM, DBKIND_GUID_PROPID, (LPOLESTR)0};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_CONTAINEROBJECT = {0xc8b522fb,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") + +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_ASSERTIONS = {0xc8b52210,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_CATALOGS = {0xc8b52211,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_CHARACTER_SETS = {0xc8b52212,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_COLLATIONS = {0xc8b52213,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_COLUMNS = {0xc8b52214,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_CHECK_CONSTRAINTS = {0xc8b52215,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_CONSTRAINT_COLUMN_USAGE = {0xc8b52216,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_CONSTRAINT_TABLE_USAGE = {0xc8b52217,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_KEY_COLUMN_USAGE = {0xc8b52218,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_REFERENTIAL_CONSTRAINTS = {0xc8b52219,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_TABLE_CONSTRAINTS = {0xc8b5221a,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_COLUMN_DOMAIN_USAGE = {0xc8b5221b,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_INDEXES = {0xc8b5221e,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_COLUMN_PRIVILEGES = {0xc8b52221,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_TABLE_PRIVILEGES = {0xc8b52222,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_USAGE_PRIVILEGES = {0xc8b52223,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_PROCEDURES = {0xc8b52224,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_SCHEMATA = {0xc8b52225,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_SQL_LANGUAGES = {0xc8b52226,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_STATISTICS = {0xc8b52227,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_TABLES = {0xc8b52229,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_TRANSLATIONS = {0xc8b5222a,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_PROVIDER_TYPES = {0xc8b5222c,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_VIEWS = {0xc8b5222d,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_VIEW_COLUMN_USAGE = {0xc8b5222e,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_VIEW_TABLE_USAGE = {0xc8b5222f,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_PROCEDURE_PARAMETERS = {0xc8b522b8,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_FOREIGN_KEYS = {0xc8b522c4,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_PRIMARY_KEYS = {0xc8b522c5,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_PROCEDURE_COLUMNS = {0xc8b522c9,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") + +cpp_quote("extern const OLEDBDECLSPEC GUID DBCOL_SELFCOLUMNS = {0xc8b52231,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBCOL_SPECIALCOL = {0xc8b52232,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") + +cpp_quote("extern const OLEDBDECLSPEC GUID PSGUID_QUERY = {0x49691c90,0x7e17,0x101a,{0xa9,0x1c,0x08,0x00,0x2b,0x2e,0xcd,0xa9}};") + +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_COLUMN = {0xc8b522b9,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_DATASOURCE = {0xc8b522ba,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_DATASOURCEINFO = {0xc8b522bb,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_DBINIT = {0xc8b522bc,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_INDEX = {0xc8b522bd,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_ROWSET = {0xc8b522be,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_TABLE = {0xc8b522bf,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_DATASOURCEALL = {0xc8b522c0,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_DATASOURCEINFOALL = {0xc8b522c1,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_ROWSETALL = {0xc8b522c2,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_SESSION = {0xc8b522c6,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_SESSIONALL = {0xc8b522c7,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_DBINITALL = {0xc8b522ca,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_PROPERTIESINERROR = {0xc8b522d4,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") + +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_VIEW = {0xc8b522df,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +cpp_quote("//@@@+ V2.5") +cpp_quote("#if( OLEDBVER >= 0x0250 )") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_VIEWALL = {0xc8b522fc,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("#endif // OLEDBVER >= 0x0250") +cpp_quote("//@@@- V2.5") + +cpp_quote("//@@@+ V2.6") +cpp_quote("#if( OLEDBVER >= 0x0260 )") + +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_STREAM = {0xc8b522fd,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBPROPSET_STREAMALL = {0xc8b522fe,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") + +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_TABLE_STATISTICS = {0xc8b522ff,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBSCHEMA_CHECK_CONSTRAINTS_BY_TABLE = {0xc8b52301,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") + +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_HISTOGRAM_ROWSET = {0xc8b52300,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") + +// Note that propid 42 is reserved for DBCOLUMN_HASCHILDROWSET in oledbnew.h +cpp_quote("extern const OLEDBDECLSPEC DBID DBCOLUMN_DERIVEDCOLUMNNAME = {DBCIDGUID, DBKIND_GUID_PROPID, (LPOLESTR)43};") + +cpp_quote("#endif // OLEDBVER >= 0x0260") +cpp_quote("//@@@- V2.6") + +cpp_quote("// DBGUID_DBSQL is deprecated; use DBGUID_DEFAULT instead") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_DBSQL = {0xc8b521fb,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_DEFAULT = {0xc8b521fb,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DBGUID_SQL = {0xc8b522d7,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") + +cpp_quote("#else // !DBINITCONSTANTS") + +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +cpp_quote("extern const GUID DBSCHEMA_TABLES_INFO;") +cpp_quote("extern const GUID MDGUID_MDX;") +cpp_quote("extern const GUID DBGUID_MDX;") +cpp_quote("extern const GUID MDSCHEMA_CUBES;") +cpp_quote("extern const GUID MDSCHEMA_DIMENSIONS;") +cpp_quote("extern const GUID MDSCHEMA_HIERARCHIES;") +cpp_quote("extern const GUID MDSCHEMA_LEVELS;") +cpp_quote("extern const GUID MDSCHEMA_MEASURES;") +cpp_quote("extern const GUID MDSCHEMA_PROPERTIES;") +cpp_quote("extern const GUID MDSCHEMA_MEMBERS;") +cpp_quote("extern const DBID DBCOLUMN_BASETABLEVERSION;") +cpp_quote("extern const DBID DBCOLUMN_KEYCOLUMN;") +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +cpp_quote("extern const GUID DBPROPSET_TRUSTEE;") +cpp_quote("extern const GUID DBOBJECT_TABLE;") +cpp_quote("extern const GUID DBOBJECT_COLUMN;") +cpp_quote("extern const GUID DBOBJECT_DATABASE;") +cpp_quote("extern const GUID DBOBJECT_PROCEDURE;") +cpp_quote("extern const GUID DBOBJECT_VIEW;") +cpp_quote("extern const GUID DBOBJECT_SCHEMA;") +cpp_quote("extern const GUID DBOBJECT_DOMAIN;") +cpp_quote("extern const GUID DBOBJECT_COLLATION;") +cpp_quote("extern const GUID DBOBJECT_TRUSTEE;") +cpp_quote("extern const GUID DBOBJECT_SCHEMAROWSET;") +cpp_quote("extern const GUID DBOBJECT_CHARACTERSET;") +cpp_quote("extern const GUID DBOBJECT_TRANSLATION;") +cpp_quote("extern const GUID DBSCHEMA_TRUSTEE;") +cpp_quote("extern const GUID DBPROPSET_COLUMNALL;") +cpp_quote("extern const GUID DBPROPSET_INDEXALL;") +cpp_quote("extern const GUID DBPROPSET_TABLEALL;") +cpp_quote("extern const GUID DBPROPSET_TRUSTEEALL;") +cpp_quote("extern const GUID DBPROPSET_CONSTRAINTALL;") +cpp_quote("extern const GUID DBGUID_DSO; ") +cpp_quote("extern const GUID DBGUID_SESSION;") +cpp_quote("extern const GUID DBGUID_ROWSET; ") +cpp_quote("extern const GUID DBGUID_ROW; ") +cpp_quote("extern const GUID DBGUID_COMMAND;") +cpp_quote("extern const GUID DBGUID_STREAM; ") +cpp_quote("extern const DBID DBROWCOL_ROWURL; ") +cpp_quote("extern const DBID DBROWCOL_PARSENAME; ") +cpp_quote("extern const DBID DBROWCOL_PARENTNAME; ") +cpp_quote("extern const DBID DBROWCOL_ABSOLUTEPARSENAME; ") +cpp_quote("extern const DBID DBROWCOL_ISHIDDEN; ") +cpp_quote("extern const DBID DBROWCOL_ISREADONLY; ") +cpp_quote("extern const DBID DBROWCOL_CONTENTTYPE; ") +cpp_quote("extern const DBID DBROWCOL_CONTENTCLASS; ") +cpp_quote("extern const DBID DBROWCOL_CONTENTLANGUAGE; ") +cpp_quote("extern const DBID DBROWCOL_CREATIONTIME; ") +cpp_quote("extern const DBID DBROWCOL_LASTACCESSTIME; ") +cpp_quote("extern const DBID DBROWCOL_LASTWRITETIME; ") +cpp_quote("extern const DBID DBROWCOL_STREAMSIZE; ") +cpp_quote("extern const DBID DBROWCOL_ISCOLLECTION; ") +cpp_quote("extern const DBID DBROWCOL_ISSTRUCTUREDDOCUMENT; ") +cpp_quote("extern const DBID DBROWCOL_DEFAULTDOCUMENT; ") +cpp_quote("extern const DBID DBROWCOL_DISPLAYNAME; ") +cpp_quote("extern const DBID DBROWCOL_ISROOT; ") +cpp_quote("extern const DBID DBROWCOL_DEFAULTSTREAM; ") +cpp_quote("extern const GUID DBGUID_CONTAINEROBJECT;") +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + +cpp_quote("extern const GUID DBSCHEMA_ASSERTIONS;") +cpp_quote("extern const GUID DBSCHEMA_CATALOGS;") +cpp_quote("extern const GUID DBSCHEMA_CHARACTER_SETS;") +cpp_quote("extern const GUID DBSCHEMA_COLLATIONS;") +cpp_quote("extern const GUID DBSCHEMA_COLUMNS;") +cpp_quote("extern const GUID DBSCHEMA_CHECK_CONSTRAINTS;") +cpp_quote("extern const GUID DBSCHEMA_CONSTRAINT_COLUMN_USAGE;") +cpp_quote("extern const GUID DBSCHEMA_CONSTRAINT_TABLE_USAGE;") +cpp_quote("extern const GUID DBSCHEMA_KEY_COLUMN_USAGE;") +cpp_quote("extern const GUID DBSCHEMA_REFERENTIAL_CONSTRAINTS;") +cpp_quote("extern const GUID DBSCHEMA_TABLE_CONSTRAINTS;") +cpp_quote("extern const GUID DBSCHEMA_COLUMN_DOMAIN_USAGE;") +cpp_quote("extern const GUID DBSCHEMA_INDEXES;") +cpp_quote("extern const GUID DBSCHEMA_COLUMN_PRIVILEGES;") +cpp_quote("extern const GUID DBSCHEMA_TABLE_PRIVILEGES;") +cpp_quote("extern const GUID DBSCHEMA_USAGE_PRIVILEGES;") +cpp_quote("extern const GUID DBSCHEMA_PROCEDURES;") +cpp_quote("extern const GUID DBSCHEMA_SCHEMATA;") +cpp_quote("extern const GUID DBSCHEMA_SQL_LANGUAGES;") +cpp_quote("extern const GUID DBSCHEMA_STATISTICS;") +cpp_quote("extern const GUID DBSCHEMA_TABLES;") +cpp_quote("extern const GUID DBSCHEMA_TRANSLATIONS;") +cpp_quote("extern const GUID DBSCHEMA_PROVIDER_TYPES;") +cpp_quote("extern const GUID DBSCHEMA_VIEWS;") +cpp_quote("extern const GUID DBSCHEMA_VIEW_COLUMN_USAGE;") +cpp_quote("extern const GUID DBSCHEMA_VIEW_TABLE_USAGE;") +cpp_quote("extern const GUID DBSCHEMA_PROCEDURE_PARAMETERS;") +cpp_quote("extern const GUID DBSCHEMA_FOREIGN_KEYS;") +cpp_quote("extern const GUID DBSCHEMA_PRIMARY_KEYS;") +cpp_quote("extern const GUID DBSCHEMA_PROCEDURE_COLUMNS;") + +cpp_quote("extern const GUID DBCOL_SELFCOLUMNS;") +cpp_quote("extern const GUID DBCOL_SPECIALCOL;") + +cpp_quote("extern const GUID PSGUID_QUERY;") + +cpp_quote("extern const GUID DBPROPSET_COLUMN;") +cpp_quote("extern const GUID DBPROPSET_DATASOURCE;") +cpp_quote("extern const GUID DBPROPSET_DATASOURCEINFO;") +cpp_quote("extern const GUID DBPROPSET_DBINIT;") +cpp_quote("extern const GUID DBPROPSET_INDEX;") +cpp_quote("extern const GUID DBPROPSET_ROWSET;") +cpp_quote("extern const GUID DBPROPSET_TABLE;") +cpp_quote("extern const GUID DBPROPSET_DATASOURCEALL;") +cpp_quote("extern const GUID DBPROPSET_DATASOURCEINFOALL;") +cpp_quote("extern const GUID DBPROPSET_ROWSETALL;") +cpp_quote("extern const GUID DBPROPSET_SESSION;") +cpp_quote("extern const GUID DBPROPSET_SESSIONALL;") +cpp_quote("extern const GUID DBPROPSET_DBINITALL;") +cpp_quote("extern const GUID DBPROPSET_PROPERTIESINERROR;") + +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") +cpp_quote("extern const GUID DBPROPSET_VIEW;") +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +cpp_quote("//@@@+ V2.5") +cpp_quote("#if( OLEDBVER >= 0x0250 )") +cpp_quote("extern const GUID DBPROPSET_VIEWALL;") +cpp_quote("#endif // OLEDBVER >= 0x0250") +cpp_quote("//@@@- V2.5") + +cpp_quote("//@@@+ V2.6") +cpp_quote("#if( OLEDBVER >= 0x0260 )") +cpp_quote("extern const GUID DBPROPSET_STREAM;") +cpp_quote("extern const GUID DBPROPSET_STREAMALL;") + +cpp_quote("extern const GUID DBSCHEMA_TABLE_STATISTICS;") +cpp_quote("extern const GUID DBSCHEMA_CHECK_CONSTRAINTS_BY_TABLE;") + +cpp_quote("extern const GUID DBGUID_HISTOGRAM_ROWSET;") + +cpp_quote("extern const DBID DBCOLUMN_DERIVEDCOLUMNNAME;") + +cpp_quote("extern const GUID MDSCHEMA_FUNCTIONS;") +cpp_quote("extern const GUID MDSCHEMA_ACTIONS;") +cpp_quote("extern const GUID MDSCHEMA_COMMANDS;") +cpp_quote("extern const GUID MDSCHEMA_SETS;") + +cpp_quote("#endif // OLEDBVER >= 0x0260") +cpp_quote("//@@@- V2.6") + +cpp_quote("// DBGUID_DBSQL is deprecated; use DBGUID_DEFAULT instead") +cpp_quote("extern const GUID DBGUID_DBSQL;") +cpp_quote("extern const GUID DBGUID_DEFAULT;") +cpp_quote("extern const GUID DBGUID_SQL;") + +cpp_quote("#endif // DBINITCONSTANTS") + + // + // DBPROPID's + // + +enum DBPROPENUM { + DBPROP_ABORTPRESERVE = 0x00000002L, + DBPROP_ACTIVESESSIONS = 0x00000003L, + DBPROP_APPENDONLY = 0x000000bbL, + DBPROP_ASYNCTXNABORT = 0x000000a8L, + DBPROP_ASYNCTXNCOMMIT = 0x00000004L, + DBPROP_AUTH_CACHE_AUTHINFO = 0x00000005L, + DBPROP_AUTH_ENCRYPT_PASSWORD = 0x00000006L, + DBPROP_AUTH_INTEGRATED = 0x00000007L, + DBPROP_AUTH_MASK_PASSWORD = 0x00000008L, + DBPROP_AUTH_PASSWORD = 0x00000009L, + DBPROP_AUTH_PERSIST_ENCRYPTED = 0x0000000aL, + DBPROP_AUTH_PERSIST_SENSITIVE_AUTHINFO = 0x0000000bL, + DBPROP_AUTH_USERID = 0x0000000cL, + DBPROP_BLOCKINGSTORAGEOBJECTS = 0x0000000dL, + DBPROP_BOOKMARKS = 0x0000000eL, + DBPROP_BOOKMARKSKIPPED = 0x0000000fL, + DBPROP_BOOKMARKTYPE = 0x00000010L, + DBPROP_BYREFACCESSORS = 0x00000078L, + DBPROP_CACHEDEFERRED = 0x00000011L, + DBPROP_CANFETCHBACKWARDS = 0x00000012L, + DBPROP_CANHOLDROWS = 0x00000013L, + DBPROP_CANSCROLLBACKWARDS = 0x00000015L, + DBPROP_CATALOGLOCATION = 0x00000016L, + DBPROP_CATALOGTERM = 0x00000017L, + DBPROP_CATALOGUSAGE = 0x00000018L, + DBPROP_CHANGEINSERTEDROWS = 0x000000bcL, + DBPROP_COL_AUTOINCREMENT = 0x0000001aL, + DBPROP_COL_DEFAULT = 0x0000001bL, + DBPROP_COL_DESCRIPTION = 0x0000001cL, + DBPROP_COL_FIXEDLENGTH = 0x000000a7L, + DBPROP_COL_NULLABLE = 0x0000001dL, + DBPROP_COL_PRIMARYKEY = 0x0000001eL, + DBPROP_COL_UNIQUE = 0x0000001fL, + DBPROP_COLUMNDEFINITION = 0x00000020L, + DBPROP_COLUMNRESTRICT = 0x00000021L, + DBPROP_COMMANDTIMEOUT = 0x00000022L, + DBPROP_COMMITPRESERVE = 0x00000023L, + DBPROP_CONCATNULLBEHAVIOR = 0x00000024L, + DBPROP_CURRENTCATALOG = 0x00000025L, + DBPROP_DATASOURCENAME = 0x00000026L, + DBPROP_DATASOURCEREADONLY = 0x00000027L, + DBPROP_DBMSNAME = 0x00000028L, + DBPROP_DBMSVER = 0x00000029L, + DBPROP_DEFERRED = 0x0000002aL, + DBPROP_DELAYSTORAGEOBJECTS = 0x0000002bL, + DBPROP_DSOTHREADMODEL = 0x000000a9L, + DBPROP_GROUPBY = 0x0000002cL, + DBPROP_HETEROGENEOUSTABLES = 0x0000002dL, + DBPROP_IAccessor = 0x00000079L, + DBPROP_IColumnsInfo = 0x0000007aL, + DBPROP_IColumnsRowset = 0x0000007bL, + DBPROP_IConnectionPointContainer = 0x0000007cL, + DBPROP_IConvertType = 0x000000c2L, + DBPROP_IRowset = 0x0000007eL, + DBPROP_IRowsetChange = 0x0000007fL, + DBPROP_IRowsetIdentity = 0x00000080L, + DBPROP_IRowsetIndex = 0x0000009fL, + DBPROP_IRowsetInfo = 0x00000081L, + DBPROP_IRowsetLocate = 0x00000082L, + DBPROP_IRowsetResynch = 0x00000084L, + DBPROP_IRowsetScroll = 0x00000085L, + DBPROP_IRowsetUpdate = 0x00000086L, + DBPROP_ISupportErrorInfo = 0x00000087L, + DBPROP_ILockBytes = 0x00000088L, + DBPROP_ISequentialStream = 0x00000089L, + DBPROP_IStorage = 0x0000008aL, + DBPROP_IStream = 0x0000008bL, + DBPROP_IDENTIFIERCASE = 0x0000002eL, + DBPROP_IMMOBILEROWS = 0x0000002fL, + DBPROP_INDEX_AUTOUPDATE = 0x00000030L, + DBPROP_INDEX_CLUSTERED = 0x00000031L, + DBPROP_INDEX_FILLFACTOR = 0x00000032L, + DBPROP_INDEX_INITIALSIZE = 0x00000033L, + DBPROP_INDEX_NULLCOLLATION = 0x00000034L, + DBPROP_INDEX_NULLS = 0x00000035L, + DBPROP_INDEX_PRIMARYKEY = 0x00000036L, + DBPROP_INDEX_SORTBOOKMARKS = 0x00000037L, + DBPROP_INDEX_TEMPINDEX = 0x000000a3L, + DBPROP_INDEX_TYPE = 0x00000038L, + DBPROP_INDEX_UNIQUE = 0x00000039L, + DBPROP_INIT_DATASOURCE = 0x0000003bL, + DBPROP_INIT_HWND = 0x0000003cL, + DBPROP_INIT_IMPERSONATION_LEVEL = 0x0000003dL, + DBPROP_INIT_LCID = 0x000000baL, + DBPROP_INIT_LOCATION = 0x0000003eL, + DBPROP_INIT_MODE = 0x0000003fL, + DBPROP_INIT_PROMPT = 0x00000040L, + DBPROP_INIT_PROTECTION_LEVEL = 0x00000041L, + DBPROP_INIT_PROVIDERSTRING = 0x000000a0L, + DBPROP_INIT_TIMEOUT = 0x00000042L, + DBPROP_LITERALBOOKMARKS = 0x00000043L, + DBPROP_LITERALIDENTITY = 0x00000044L, + DBPROP_MAXINDEXSIZE = 0x00000046L, + DBPROP_MAXOPENROWS = 0x00000047L, + DBPROP_MAXPENDINGROWS = 0x00000048L, + DBPROP_MAXROWS = 0x00000049L, + DBPROP_MAXROWSIZE = 0x0000004aL, + DBPROP_MAXROWSIZEINCLUDESBLOB = 0x0000004bL, + DBPROP_MAXTABLESINSELECT = 0x0000004cL, + DBPROP_MAYWRITECOLUMN = 0x0000004dL, + DBPROP_MEMORYUSAGE = 0x0000004eL, + DBPROP_MULTIPLEPARAMSETS = 0x000000bfL, + DBPROP_MULTIPLERESULTS = 0x000000c4L, + DBPROP_MULTIPLESTORAGEOBJECTS = 0x00000050L, + DBPROP_MULTITABLEUPDATE = 0x00000051L, + DBPROP_NOTIFICATIONGRANULARITY = 0x000000c6L, + DBPROP_NOTIFICATIONPHASES = 0x00000052L, + + DBPROP_NOTIFYCOLUMNSET = 0x000000abL, + DBPROP_NOTIFYROWDELETE = 0x000000adL, + DBPROP_NOTIFYROWFIRSTCHANGE = 0x000000aeL, + DBPROP_NOTIFYROWINSERT = 0x000000afL, + DBPROP_NOTIFYROWRESYNCH = 0x000000b1L, + DBPROP_NOTIFYROWSETCHANGED = 0x000000d3L, + DBPROP_NOTIFYROWSETRELEASE = 0x000000b2L, + DBPROP_NOTIFYROWSETFETCHPOSITIONCHANGE = 0x000000b3L, + DBPROP_NOTIFYROWUNDOCHANGE = 0x000000b4L, + DBPROP_NOTIFYROWUNDODELETE = 0x000000b5L, + DBPROP_NOTIFYROWUNDOINSERT = 0x000000b6L, + DBPROP_NOTIFYROWUPDATE = 0x000000b7L, + DBPROP_NULLCOLLATION = 0x00000053L, + DBPROP_OLEOBJECTS = 0x00000054L, + DBPROP_ORDERBYCOLUMNSINSELECT = 0x00000055L, + DBPROP_ORDEREDBOOKMARKS = 0x00000056L, + DBPROP_OTHERINSERT = 0x00000057L, + DBPROP_OTHERUPDATEDELETE = 0x00000058L, + DBPROP_OUTPUTPARAMETERAVAILABILITY = 0x000000b8L, + DBPROP_OWNINSERT = 0x00000059L, + DBPROP_OWNUPDATEDELETE = 0x0000005aL, + DBPROP_PERSISTENTIDTYPE = 0x000000b9L, + DBPROP_PREPAREABORTBEHAVIOR = 0x0000005bL, + DBPROP_PREPARECOMMITBEHAVIOR = 0x0000005cL, + DBPROP_PROCEDURETERM = 0x0000005dL, + DBPROP_PROVIDERNAME = 0x00000060L, + DBPROP_PROVIDEROLEDBVER = 0x00000061L, + DBPROP_PROVIDERVER = 0x00000062L, + DBPROP_QUICKRESTART = 0x00000063L, + DBPROP_QUOTEDIDENTIFIERCASE = 0x00000064L, + DBPROP_REENTRANTEVENTS = 0x00000065L, + DBPROP_REMOVEDELETED = 0x00000066L, + DBPROP_REPORTMULTIPLECHANGES = 0x00000067L, + DBPROP_RETURNPENDINGINSERTS = 0x000000bdL, + DBPROP_ROWRESTRICT = 0x00000068L, + DBPROP_ROWSETCONVERSIONSONCOMMAND = 0x000000c0L, + DBPROP_ROWTHREADMODEL = 0x00000069L, + DBPROP_SCHEMATERM = 0x0000006aL, + DBPROP_SCHEMAUSAGE = 0x0000006bL, + DBPROP_SERVERCURSOR = 0x0000006cL, + DBPROP_SESS_AUTOCOMMITISOLEVELS = 0x000000beL, + DBPROP_SQLSUPPORT = 0x0000006dL, + DBPROP_STRONGIDENTITY = 0x00000077L, + DBPROP_STRUCTUREDSTORAGE = 0x0000006fL, + DBPROP_SUBQUERIES = 0x00000070L, + DBPROP_SUPPORTEDTXNDDL = 0x000000a1L, + DBPROP_SUPPORTEDTXNISOLEVELS = 0x00000071L, + DBPROP_SUPPORTEDTXNISORETAIN = 0x00000072L, + DBPROP_TABLETERM = 0x00000073L, + DBPROP_TBL_TEMPTABLE = 0x0000008cL, + DBPROP_TRANSACTEDOBJECT = 0x00000074L, + DBPROP_UPDATABILITY = 0x00000075L, + DBPROP_USERNAME = 0x00000076L, +}; + +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") +enum DBPROPENUM15 { + DBPROP_FILTERCOMPAREOPS = 0x000000d1L, + DBPROP_FINDCOMPAREOPS = 0x000000d2L, + DBPROP_IChapteredRowset = 0x000000caL, + DBPROP_IDBAsynchStatus = 0x000000cbL, + DBPROP_IRowsetFind = 0x000000ccL, + DBPROP_IRowsetView = 0x000000d4L, + DBPROP_IViewChapter = 0x000000d5L, + DBPROP_IViewFilter = 0x000000d6L, + DBPROP_IViewRowset = 0x000000d7L, + DBPROP_IViewSort = 0x000000d8L, + DBPROP_INIT_ASYNCH = 0x000000c8L, + DBPROP_MAXOPENCHAPTERS = 0x000000c7L, + DBPROP_MAXORSINFILTER = 0x000000cdL, + DBPROP_MAXSORTCOLUMNS = 0x000000ceL, + DBPROP_ROWSET_ASYNCH = 0x000000c9L, + DBPROP_SORTONINDEX = 0x000000cfL, +}; +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +// VERSION 2.0 +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +cpp_quote("#define DBPROP_PROVIDERFILENAME DBPROP_PROVIDERNAME") +cpp_quote("#define DBPROP_SERVER_NAME DBPROP_SERVERNAME") + +enum DBPROPENUM20 { + DBPROP_IMultipleResults = 0x000000d9L, + DBPROP_DATASOURCE_TYPE = 0x000000fbL, + MDPROP_AXES = 0x000000fcL, + MDPROP_FLATTENING_SUPPORT = 0x000000fdL, + MDPROP_MDX_JOINCUBES = 0x000000feL, + MDPROP_NAMED_LEVELS = 0x000000ffL, + MDPROP_RANGEROWSET = 0x00000100L, + MDPROP_MDX_SLICER = 0x000000daL, + MDPROP_MDX_CUBEQUALIFICATION = 0x000000dbL, + MDPROP_MDX_OUTERREFERENCE = 0x000000dcL, + MDPROP_MDX_QUERYBYPROPERTY = 0x000000ddL, + MDPROP_MDX_CASESUPPORT = 0x000000deL, + MDPROP_MDX_STRING_COMPOP = 0x000000e0L, + MDPROP_MDX_DESCFLAGS = 0x000000e1L, + MDPROP_MDX_SET_FUNCTIONS = 0x000000e2L, + MDPROP_MDX_MEMBER_FUNCTIONS = 0x000000e3L, + MDPROP_MDX_NUMERIC_FUNCTIONS = 0x000000e4L, + MDPROP_MDX_FORMULAS = 0x000000e5L, + MDPROP_AGGREGATECELL_UPDATE = 0x000000e6L, + MDPROP_MDX_AGGREGATECELL_UPDATE = MDPROP_AGGREGATECELL_UPDATE, + MDPROP_MDX_OBJQUALIFICATION = 0x00000105L, + MDPROP_MDX_NONMEASURE_EXPRESSIONS = 0x00000106L, + DBPROP_ACCESSORDER = 0x000000e7L, + DBPROP_BOOKMARKINFO = 0x000000e8L, + DBPROP_INIT_CATALOG = 0x000000e9L, + DBPROP_ROW_BULKOPS = 0x000000eaL, + DBPROP_PROVIDERFRIENDLYNAME = 0x000000ebL, + DBPROP_LOCKMODE = 0x000000ecL, + DBPROP_MULTIPLECONNECTIONS = 0x000000edL, + DBPROP_UNIQUEROWS = 0x000000eeL, + DBPROP_SERVERDATAONINSERT = 0x000000efL, + DBPROP_STORAGEFLAGS = 0x000000f0L, + DBPROP_CONNECTIONSTATUS = 0x000000f4L, + DBPROP_ALTERCOLUMN = 0x000000f5L, + DBPROP_COLUMNLCID = 0x000000f6L, + DBPROP_RESETDATASOURCE = 0x000000f7L, + DBPROP_INIT_OLEDBSERVICES = 0x000000f8L, + DBPROP_IRowsetRefresh = 0x000000f9L, + DBPROP_SERVERNAME = 0x000000faL, + DBPROP_IParentRowset = 0x00000101L, + DBPROP_HIDDENCOLUMNS = 0x00000102L, + DBPROP_PROVIDERMEMORY = 0x00000103L, + DBPROP_CLIENTCURSOR = 0x00000104L, +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +// VERSION 2.1 +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +enum DBPROPENUM21 { + DBPROP_TRUSTEE_USERNAME = 0x000000f1L, + DBPROP_TRUSTEE_AUTHENTICATION = 0x000000f2L, + DBPROP_TRUSTEE_NEWAUTHENTICATION = 0x000000f3L, + DBPROP_IRow = 0x00000107L, + DBPROP_IRowChange = 0x00000108L, + DBPROP_IRowSchemaChange = 0x00000109L, + DBPROP_IGetRow = 0x0000010aL, + DBPROP_IScopedOperations = 0x0000010bL, + DBPROP_IBindResource = 0x0000010cL, + DBPROP_ICreateRow = 0x0000010dL, + DBPROP_INIT_BINDFLAGS = 0x0000010eL, + DBPROP_INIT_LOCKOWNER = 0x0000010fL, + DBPROP_GENERATEURL = 0x00000111L, + DBPROP_IDBBinderProperties = 0x00000112L, + DBPROP_IColumnsInfo2 = 0x00000113L, + DBPROP_IRegisterProvider = 0x00000114L, + DBPROP_IGetSession = 0x00000115L, + DBPROP_IGetSourceRow = 0x00000116L, + DBPROP_IRowsetCurrentIndex = 0x00000117L, + DBPROP_OPENROWSETSUPPORT = 0x00000118L, + DBPROP_COL_ISLONG = 0x00000119L, +}; +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + +// VERSION 2.5 +cpp_quote("//@@@+ V2.5") +cpp_quote("#if( OLEDBVER >= 0x0250 )") +enum DBPROPENUM25 { + DBPROP_COL_SEED = 0x0000011aL, + DBPROP_COL_INCREMENT = 0x0000011bL, + DBPROP_INIT_GENERALTIMEOUT = 0x0000011cL, + DBPROP_COMSERVICES = 0x0000011dL, +}; +cpp_quote("#endif // OLEDBVER >= 0x0250") +cpp_quote("//@@@- V2.5") + +// VERSION 2.6 +cpp_quote("//@@@+ V2.6") +cpp_quote("#if( OLEDBVER >= 0x0260 )") +enum DBPROPENUM26 { + DBPROP_OUTPUTSTREAM = 0x0000011eL, + DBPROP_OUTPUTENCODING = 0x0000011fL, + DBPROP_TABLESTATISTICS = 0x00000120L, + DBPROP_SKIPROWCOUNTRESULTS = 0x00000123L, + DBPROP_IRowsetBookmark = 0x00000124L, + MDPROP_VISUALMODE = 0x00000125L, +}; +cpp_quote("#endif // OLEDBVER >= 0x0260") +cpp_quote("//@@@- V2.6") + +//+ +// +// DBPROP_IPersistFile -- reserved for future = 0x121L, +// DBPROP_IPersistStream -- reserved for future = 0x122L, +// +// Next free value: 0x00000126L +//- + +// deprecated +cpp_quote("//@@@+ oledb_deprecated") +cpp_quote("#ifdef oledb_deprecated") +enum DBPROPENUMDEPRECATED { + DBPROP_IRowsetExactScroll = 0x0000009aL, + DBPROP_MARSHALLABLE = 0x000000c5L, + DBPROP_FILTEROPS = 0x000000d0L, +}; +cpp_quote("#endif // oledb_deprecated") +cpp_quote("//@@@- oledb_deprecated") + + // + // Property value defines + // + +cpp_quote("#define DBPROPVAL_BMK_NUMERIC 0x00000001L") +cpp_quote("#define DBPROPVAL_BMK_KEY 0x00000002L") + +cpp_quote("#define DBPROPVAL_CL_START 0x00000001L") +cpp_quote("#define DBPROPVAL_CL_END 0x00000002L") + +cpp_quote("#define DBPROPVAL_CU_DML_STATEMENTS 0x00000001L") +cpp_quote("#define DBPROPVAL_CU_TABLE_DEFINITION 0x00000002L") +cpp_quote("#define DBPROPVAL_CU_INDEX_DEFINITION 0x00000004L") +cpp_quote("#define DBPROPVAL_CU_PRIVILEGE_DEFINITION 0x00000008L") + +cpp_quote("#define DBPROPVAL_CD_NOTNULL 0x00000001L") + +cpp_quote("#define DBPROPVAL_CB_NULL 0x00000001L") +cpp_quote("#define DBPROPVAL_CB_NON_NULL 0x00000002L") + +cpp_quote("#define DBPROPVAL_FU_NOT_SUPPORTED 0x00000001L") +cpp_quote("#define DBPROPVAL_FU_COLUMN 0x00000002L") +cpp_quote("#define DBPROPVAL_FU_TABLE 0x00000004L") +cpp_quote("#define DBPROPVAL_FU_CATALOG 0x00000008L") + +cpp_quote("#define DBPROPVAL_GB_NOT_SUPPORTED 0x00000001L") +cpp_quote("#define DBPROPVAL_GB_EQUALS_SELECT 0x00000002L") +cpp_quote("#define DBPROPVAL_GB_CONTAINS_SELECT 0x00000004L") +cpp_quote("#define DBPROPVAL_GB_NO_RELATION 0x00000008L") + +cpp_quote("#define DBPROPVAL_HT_DIFFERENT_CATALOGS 0x00000001L") +cpp_quote("#define DBPROPVAL_HT_DIFFERENT_PROVIDERS 0x00000002L") + +cpp_quote("#define DBPROPVAL_IC_UPPER 0x00000001L") +cpp_quote("#define DBPROPVAL_IC_LOWER 0x00000002L") +cpp_quote("#define DBPROPVAL_IC_SENSITIVE 0x00000004L") +cpp_quote("#define DBPROPVAL_IC_MIXED 0x00000008L") + +// deprecated +cpp_quote("//@@@+ oledb_deprecated") +cpp_quote("#ifdef oledb_deprecated") +cpp_quote("#define DBPROPVAL_LM_NONE 0x00000001L") +cpp_quote("#define DBPROPVAL_LM_READ 0x00000002L") +cpp_quote("#define DBPROPVAL_LM_INTENT 0x00000004L") +cpp_quote("#define DBPROPVAL_LM_RITE 0x00000008L") +cpp_quote("#endif // oledb_deprecated") +cpp_quote("//@@@- oledb_deprecated") + +cpp_quote("#define DBPROPVAL_NP_OKTODO 0x00000001L") +cpp_quote("#define DBPROPVAL_NP_ABOUTTODO 0x00000002L") +cpp_quote("#define DBPROPVAL_NP_SYNCHAFTER 0x00000004L") +cpp_quote("#define DBPROPVAL_NP_FAILEDTODO 0x00000008L") +cpp_quote("#define DBPROPVAL_NP_DIDEVENT 0x00000010L") + +cpp_quote("#define DBPROPVAL_NC_END 0x00000001L") +cpp_quote("#define DBPROPVAL_NC_HIGH 0x00000002L") +cpp_quote("#define DBPROPVAL_NC_LOW 0x00000004L") +cpp_quote("#define DBPROPVAL_NC_START 0x00000008L") + +cpp_quote("#define DBPROPVAL_OO_BLOB 0x00000001L") +cpp_quote("#define DBPROPVAL_OO_IPERSIST 0x00000002L") + +cpp_quote("#define DBPROPVAL_CB_DELETE 0x00000001L") +cpp_quote("#define DBPROPVAL_CB_PRESERVE 0x00000002L") + +cpp_quote("#define DBPROPVAL_SU_DML_STATEMENTS 0x00000001L") +cpp_quote("#define DBPROPVAL_SU_TABLE_DEFINITION 0x00000002L") +cpp_quote("#define DBPROPVAL_SU_INDEX_DEFINITION 0x00000004L") +cpp_quote("#define DBPROPVAL_SU_PRIVILEGE_DEFINITION 0x00000008L") + +cpp_quote("#define DBPROPVAL_SQ_CORRELATEDSUBQUERIES 0x00000001L") +cpp_quote("#define DBPROPVAL_SQ_COMPARISON 0x00000002L") +cpp_quote("#define DBPROPVAL_SQ_EXISTS 0x00000004L") +cpp_quote("#define DBPROPVAL_SQ_IN 0x00000008L") +cpp_quote("#define DBPROPVAL_SQ_QUANTIFIED 0x00000010L") +cpp_quote("#define DBPROPVAL_SQ_TABLE 0x00000020L") + +cpp_quote("#define DBPROPVAL_SS_ISEQUENTIALSTREAM 0x00000001L") +cpp_quote("#define DBPROPVAL_SS_ISTREAM 0x00000002L") +cpp_quote("#define DBPROPVAL_SS_ISTORAGE 0x00000004L") +cpp_quote("#define DBPROPVAL_SS_ILOCKBYTES 0x00000008L") + +cpp_quote("#define DBPROPVAL_TI_CHAOS 0x00000010L") +cpp_quote("#define DBPROPVAL_TI_READUNCOMMITTED 0x00000100L") +cpp_quote("#define DBPROPVAL_TI_BROWSE 0x00000100L") +cpp_quote("#define DBPROPVAL_TI_CURSORSTABILITY 0x00001000L") +cpp_quote("#define DBPROPVAL_TI_READCOMMITTED 0x00001000L") +cpp_quote("#define DBPROPVAL_TI_REPEATABLEREAD 0x00010000L") +cpp_quote("#define DBPROPVAL_TI_SERIALIZABLE 0x00100000L") +cpp_quote("#define DBPROPVAL_TI_ISOLATED 0x00100000L") + +cpp_quote("#define DBPROPVAL_TR_COMMIT_DC 0x00000001L") +cpp_quote("#define DBPROPVAL_TR_COMMIT 0x00000002L") +cpp_quote("#define DBPROPVAL_TR_COMMIT_NO 0x00000004L") +cpp_quote("#define DBPROPVAL_TR_ABORT_DC 0x00000008L") +cpp_quote("#define DBPROPVAL_TR_ABORT 0x00000010L") +cpp_quote("#define DBPROPVAL_TR_ABORT_NO 0x00000020L") +cpp_quote("#define DBPROPVAL_TR_DONTCARE 0x00000040L") +cpp_quote("#define DBPROPVAL_TR_BOTH 0x00000080L") +cpp_quote("#define DBPROPVAL_TR_NONE 0x00000100L") +cpp_quote("#define DBPROPVAL_TR_OPTIMISTIC 0x00000200L") + +cpp_quote("#define DBPROPVAL_RT_FREETHREAD 0x00000001L") +cpp_quote("#define DBPROPVAL_RT_APTMTTHREAD 0x00000002L") +cpp_quote("#define DBPROPVAL_RT_SINGLETHREAD 0x00000004L") + +cpp_quote("#define DBPROPVAL_UP_CHANGE 0x00000001L") +cpp_quote("#define DBPROPVAL_UP_DELETE 0x00000002L") +cpp_quote("#define DBPROPVAL_UP_INSERT 0x00000004L") + +cpp_quote("#define DBPROPVAL_SQL_NONE 0x00000000L") +cpp_quote("#define DBPROPVAL_SQL_ODBC_MINIMUM 0x00000001L") +cpp_quote("#define DBPROPVAL_SQL_ODBC_CORE 0x00000002L") +cpp_quote("#define DBPROPVAL_SQL_ODBC_EXTENDED 0x00000004L") +cpp_quote("#define DBPROPVAL_SQL_ANSI89_IEF 0x00000008L") +cpp_quote("#define DBPROPVAL_SQL_ANSI92_ENTRY 0x00000010L") +cpp_quote("#define DBPROPVAL_SQL_FIPS_TRANSITIONAL 0x00000020L") +cpp_quote("#define DBPROPVAL_SQL_ANSI92_INTERMEDIATE 0x00000040L") +cpp_quote("#define DBPROPVAL_SQL_ANSI92_FULL 0x00000080L") +cpp_quote("#define DBPROPVAL_SQL_ESCAPECLAUSES 0x00000100L") + +cpp_quote("#define DBPROPVAL_IT_BTREE 0x00000001L") +cpp_quote("#define DBPROPVAL_IT_HASH 0x00000002L") +cpp_quote("#define DBPROPVAL_IT_CONTENT 0x00000003L") +cpp_quote("#define DBPROPVAL_IT_OTHER 0x00000004L") + +cpp_quote("#define DBPROPVAL_IN_DISALLOWNULL 0x00000001L") +cpp_quote("#define DBPROPVAL_IN_IGNORENULL 0x00000002L") +cpp_quote("#define DBPROPVAL_IN_IGNOREANYNULL 0x00000004L") + +cpp_quote("#define DBPROPVAL_TC_NONE 0x00000000L") +cpp_quote("#define DBPROPVAL_TC_DML 0x00000001L") +cpp_quote("#define DBPROPVAL_TC_DDL_COMMIT 0x00000002L") +cpp_quote("#define DBPROPVAL_TC_DDL_IGNORE 0x00000004L") +cpp_quote("#define DBPROPVAL_TC_ALL 0x00000008L") + +cpp_quote("#define DBPROPVAL_NP_OKTODO 0x00000001L") +cpp_quote("#define DBPROPVAL_NP_ABOUTTODO 0x00000002L") +cpp_quote("#define DBPROPVAL_NP_SYNCHAFTER 0x00000004L") + +cpp_quote("#define DBPROPVAL_OA_NOTSUPPORTED 0x00000001L") +cpp_quote("#define DBPROPVAL_OA_ATEXECUTE 0x00000002L") +cpp_quote("#define DBPROPVAL_OA_ATROWRELEASE 0x00000004L") + +cpp_quote("#define DBPROPVAL_MR_NOTSUPPORTED 0x00000000L") +cpp_quote("#define DBPROPVAL_MR_SUPPORTED 0x00000001L") +cpp_quote("#define DBPROPVAL_MR_CONCURRENT 0x00000002L") + +cpp_quote("#define DBPROPVAL_PT_GUID_NAME 0x00000001L") +cpp_quote("#define DBPROPVAL_PT_GUID_PROPID 0x00000002L") +cpp_quote("#define DBPROPVAL_PT_NAME 0x00000004L") +cpp_quote("#define DBPROPVAL_PT_GUID 0x00000008L") +cpp_quote("#define DBPROPVAL_PT_PROPID 0x00000010L") +cpp_quote("#define DBPROPVAL_PT_PGUID_NAME 0x00000020L") +cpp_quote("#define DBPROPVAL_PT_PGUID_PROPID 0x00000040L") + +cpp_quote("#define DBPROPVAL_NT_SINGLEROW 0x00000001L") +cpp_quote("#define DBPROPVAL_NT_MULTIPLEROWS 0x00000002L") + +// VERSION 1.5 +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") + +cpp_quote("#define DBPROPVAL_ASYNCH_INITIALIZE 0x00000001L") +cpp_quote("#define DBPROPVAL_ASYNCH_SEQUENTIALPOPULATION 0x00000002L") +cpp_quote("#define DBPROPVAL_ASYNCH_RANDOMPOPULATION 0x00000004L") + +cpp_quote("#define DBPROPVAL_OP_EQUAL 0x00000001L") +cpp_quote("#define DBPROPVAL_OP_RELATIVE 0x00000002L") +cpp_quote("#define DBPROPVAL_OP_STRING 0x00000004L") + +cpp_quote("#define DBPROPVAL_CO_EQUALITY 0x00000001L") +cpp_quote("#define DBPROPVAL_CO_STRING 0x00000002L") +cpp_quote("#define DBPROPVAL_CO_CASESENSITIVE 0x00000004L") +cpp_quote("#define DBPROPVAL_CO_CASEINSENSITIVE 0x00000008L") +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +// VERSION 2.0 +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") + +cpp_quote("#define DBPROPVAL_CO_CONTAINS 0x00000010L") +cpp_quote("#define DBPROPVAL_CO_BEGINSWITH 0x00000020L") + +cpp_quote("#define DBPROPVAL_ASYNCH_BACKGROUNDPOPULATION 0x00000008L") +cpp_quote("#define DBPROPVAL_ASYNCH_PREPOPULATE 0x00000010L") +cpp_quote("#define DBPROPVAL_ASYNCH_POPULATEONDEMAND 0x00000020L") + +cpp_quote("#define DBPROPVAL_LM_NONE 0x00000001L") +cpp_quote("#define DBPROPVAL_LM_SINGLEROW 0x00000002L") + +cpp_quote("#define DBPROPVAL_SQL_SUBMINIMUM 0x00000200L") + +cpp_quote("#define DBPROPVAL_DST_TDP 0x00000001L") +cpp_quote("#define DBPROPVAL_DST_MDP 0x00000002L") +cpp_quote("#define DBPROPVAL_DST_TDPANDMDP 0x00000003L") + +cpp_quote("#define MDPROPVAL_AU_UNSUPPORTED 0x00000000L") +cpp_quote("#define MDPROPVAL_AU_UNCHANGED 0x00000001L") +cpp_quote("#define MDPROPVAL_AU_UNKNOWN 0x00000002L") + +cpp_quote("#define MDPROPVAL_MF_WITH_CALCMEMBERS 0x00000001L") +cpp_quote("#define MDPROPVAL_MF_WITH_NAMEDSETS 0x00000002L") +cpp_quote("#define MDPROPVAL_MF_CREATE_CALCMEMBERS 0x00000004L") +cpp_quote("#define MDPROPVAL_MF_CREATE_NAMEDSETS 0x00000008L") +cpp_quote("#define MDPROPVAL_MF_SCOPE_SESSION 0x00000010L") +cpp_quote("#define MDPROPVAL_MF_SCOPE_GLOBAL 0x00000020L") +cpp_quote("#define MDPROPVAL_MMF_COUSIN 0x00000001L") +cpp_quote("#define MDPROPVAL_MMF_PARALLELPERIOD 0x00000002L") +cpp_quote("#define MDPROPVAL_MMF_OPENINGPERIOD 0x00000004L") +cpp_quote("#define MDPROPVAL_MMF_CLOSINGPERIOD 0x00000008L") +cpp_quote("#define MDPROPVAL_MNF_MEDIAN 0x00000001L") +cpp_quote("#define MDPROPVAL_MNF_VAR 0x00000002L") +cpp_quote("#define MDPROPVAL_MNF_STDDEV 0x00000004L") +cpp_quote("#define MDPROPVAL_MNF_RANK 0x00000008L") +cpp_quote("#define MDPROPVAL_MNF_AGGREGATE 0x00000010L") +cpp_quote("#define MDPROPVAL_MNF_COVARIANCE 0x00000020L") +cpp_quote("#define MDPROPVAL_MNF_CORRELATION 0x00000040L") +cpp_quote("#define MDPROPVAL_MNF_LINREGSLOPE 0x00000080L") +cpp_quote("#define MDPROPVAL_MNF_LINREGVARIANCE 0x00000100L") +cpp_quote("#define MDPROPVAL_MNF_LINREG2 0x00000200L") +cpp_quote("#define MDPROPVAL_MNF_LINREGPOINT 0x00000400L") +cpp_quote("#define MDPROPVAL_MNF_DRILLDOWNLEVEL 0x00000800L") +cpp_quote("#define MDPROPVAL_MNF_DRILLDOWNMEMBERTOP 0x00001000L") +cpp_quote("#define MDPROPVAL_MNF_DRILLDOWNMEMBERBOTTOM 0x00002000L") +cpp_quote("#define MDPROPVAL_MNF_DRILLDOWNLEVELTOP 0x00004000L") +cpp_quote("#define MDPROPVAL_MNF_DRILLDOWNLEVELBOTTOM 0x00008000L") +cpp_quote("#define MDPROPVAL_MNF_DRILLUPMEMBER 0x00010000L") +cpp_quote("#define MDPROPVAL_MNF_DRILLUPLEVEL 0x00020000L") +cpp_quote("#define MDPROPVAL_MMF_COUSIN 0x00000001L") +cpp_quote("#define MDPROPVAL_MMF_PARALLELPERIOD 0x00000002L") +cpp_quote("#define MDPROPVAL_MMF_OPENINGPERIOD 0x00000004L") +cpp_quote("#define MDPROPVAL_MMF_CLOSINGPERIOD 0x00000008L") +cpp_quote("#define MDPROPVAL_MSF_TOPPERCENT 0x00000001L") +cpp_quote("#define MDPROPVAL_MSF_BOTTOMPERCENT 0x00000002L") +cpp_quote("#define MDPROPVAL_MSF_TOPSUM 0x00000004L") +cpp_quote("#define MDPROPVAL_MSF_BOTTOMSUM 0x00000008L") +cpp_quote("#define MDPROPVAL_MSF_PERIODSTODATE 0x00000010L") +cpp_quote("#define MDPROPVAL_MSF_LASTPERIODS 0x00000020L") +cpp_quote("#define MDPROPVAL_MSF_YTD 0x00000040L") +cpp_quote("#define MDPROPVAL_MSF_QTD 0x00000080L") +cpp_quote("#define MDPROPVAL_MSF_MTD 0x00000100L") +cpp_quote("#define MDPROPVAL_MSF_WTD 0x00000200L") +cpp_quote("#define MDPROPVAL_MSF_DRILLDOWNMEMBBER 0x00000400L") +cpp_quote("#define MDPROPVAL_MSF_DRILLDOWNLEVEL 0x00000800L") +cpp_quote("#define MDPROPVAL_MSF_DRILLDOWNMEMBERTOP 0x00001000L") +cpp_quote("#define MDPROPVAL_MSF_DRILLDOWNMEMBERBOTTOM 0x00002000L") +cpp_quote("#define MDPROPVAL_MSF_DRILLDOWNLEVELTOP 0x00004000L") +cpp_quote("#define MDPROPVAL_MSF_DRILLDOWNLEVELBOTTOM 0x00008000L") +cpp_quote("#define MDPROPVAL_MSF_DRILLUPMEMBER 0x00010000L") +cpp_quote("#define MDPROPVAL_MSF_DRILLUPLEVEL 0x00020000L") +cpp_quote("#define MDPROPVAL_MSF_TOGGLEDRILLSTATE 0x00040000L") + +cpp_quote("// values for MDPROP_MDX_DESCFLAGS") +cpp_quote("#define MDPROPVAL_MD_SELF 0x00000001L") +cpp_quote("#define MDPROPVAL_MD_BEFORE 0x00000002L") +cpp_quote("#define MDPROPVAL_MD_AFTER 0x00000004L") +cpp_quote("// values for MDPROP_MDX_STRING_COMPOP") +cpp_quote("#define MDPROPVAL_MSC_LESSTHAN 0x00000001L") +cpp_quote("#define MDPROPVAL_MSC_GREATERTHAN 0x00000002L") +cpp_quote("#define MDPROPVAL_MSC_LESSTHANEQUAL 0x00000004L") +cpp_quote("#define MDPROPVAL_MSC_GREATERTHANEQUAL 0x00000008L") +cpp_quote("#define MDPROPVAL_MC_SINGLECASE 0x00000001L") +cpp_quote("#define MDPROPVAL_MC_SEARCHEDCASE 0x00000002L") +cpp_quote("#define MDPROPVAL_MOQ_OUTERREFERENCE 0x00000001L") +cpp_quote("#define MDPROPVAL_MOQ_DATASOURCE_CUBE 0x00000001L") +cpp_quote("#define MDPROPVAL_MOQ_CATALOG_CUBE 0x00000002L") +cpp_quote("#define MDPROPVAL_MOQ_SCHEMA_CUBE 0x00000004L") +cpp_quote("#define MDPROPVAL_MOQ_CUBE_DIM 0x00000008L") +cpp_quote("#define MDPROPVAL_MOQ_DIM_HIER 0x00000010L") +cpp_quote("#define MDPROPVAL_MOQ_DIMHIER_LEVEL 0x00000020L") +cpp_quote("#define MDPROPVAL_MOQ_LEVEL_MEMBER 0x00000040L") +cpp_quote("#define MDPROPVAL_MOQ_MEMBER_MEMBER 0x00000080L") +cpp_quote("#define MDPROPVAL_MOQ_DIMHIER_MEMBER 0x00000100L") +cpp_quote("#define MDPROPVAL_FS_FULL_SUPPORT 0x00000001L") +cpp_quote("#define MDPROPVAL_FS_GENERATED_COLUMN 0x00000002L") +cpp_quote("#define MDPROPVAL_FS_GENERATED_DIMENSION 0x00000003L") +cpp_quote("#define MDPROPVAL_FS_NO_SUPPORT 0x00000004L") +cpp_quote("#define MDPROPVAL_NL_NAMEDLEVELS 0x00000001L") +cpp_quote("#define MDPROPVAL_NL_NUMBEREDLEVELS 0x00000002L") +cpp_quote("#define MDPROPVAL_MJC_SINGLECUBE 0x00000001L") +cpp_quote("#define MDPROPVAL_MJC_MULTICUBES 0x00000002L") +cpp_quote("#define MDPROPVAL_MJC_IMPLICITCUBE 0x00000004L") +cpp_quote("#define MDPROPVAL_RR_NORANGEROWSET 0x00000001L") +cpp_quote("#define MDPROPVAL_RR_READONLY 0x00000002L") +cpp_quote("#define MDPROPVAL_RR_UPDATE 0x00000004L") +cpp_quote("#define MDPROPVAL_MS_MULTIPLETUPLES 0x00000001L") +cpp_quote("#define MDPROPVAL_MS_SINGLETUPLE 0x00000002L") +cpp_quote("#define MDPROPVAL_NME_ALLDIMENSIONS 0x00000000L") +cpp_quote("#define MDPROPVAL_NME_MEASURESONLY 0x00000001L") + +cpp_quote("#define DBPROPVAL_AO_SEQUENTIAL 0x00000000L") +cpp_quote("#define DBPROPVAL_AO_SEQUENTIALSTORAGEOBJECTS 0x00000001L") +cpp_quote("#define DBPROPVAL_AO_RANDOM 0x00000002L") + +cpp_quote("#define DBPROPVAL_BD_ROWSET 0x00000000L") +cpp_quote("#define DBPROPVAL_BD_INTRANSACTION 0x00000001L") +cpp_quote("#define DBPROPVAL_BD_XTRANSACTION 0x00000002L") +cpp_quote("#define DBPROPVAL_BD_REORGANIZATION 0x00000003L") + +cpp_quote("#define BMK_DURABILITY_ROWSET DBPROPVAL_BD_ROWSET") +cpp_quote("#define BMK_DURABILITY_INTRANSACTION DBPROPVAL_BD_INTRANSACTION") +cpp_quote("#define BMK_DURABILITY_XTRANSACTION DBPROPVAL_BD_XTRANSACTION") +cpp_quote("#define BMK_DURABILITY_REORGANIZATION DBPROPVAL_BD_REORGANIZATION") + +cpp_quote("#define DBPROPVAL_BO_NOLOG 0x00000000L") +cpp_quote("#define DBPROPVAL_BO_NOINDEXUPDATE 0x00000001L") +cpp_quote("#define DBPROPVAL_BO_REFINTEGRITY 0x00000002L") +cpp_quote("#if !defined(_WINBASE_)") +cpp_quote("#define OF_READ 0x00000000") +cpp_quote("#define OF_WRITE 0x00000001") +cpp_quote("#define OF_READWRITE 0x00000002") +cpp_quote("#define OF_SHARE_COMPAT 0x00000000") +cpp_quote("#define OF_SHARE_EXCLUSIVE 0x00000010") +cpp_quote("#define OF_SHARE_DENY_WRITE 0x00000020") +cpp_quote("#define OF_SHARE_DENY_READ 0x00000030") +cpp_quote("#define OF_SHARE_DENY_NONE 0x00000040") +cpp_quote("#define OF_PARSE 0x00000100") +cpp_quote("#define OF_DELETE 0x00000200") +cpp_quote("#define OF_VERIFY 0x00000400") +cpp_quote("#define OF_CANCEL 0x00000800") +cpp_quote("#define OF_CREATE 0x00001000") +cpp_quote("#define OF_PROMPT 0x00002000") +cpp_quote("#define OF_EXIST 0x00004000") +cpp_quote("#define OF_REOPEN 0x00008000") +cpp_quote("#endif // !_WINBASE_") +cpp_quote("#define DBPROPVAL_STGM_READ OF_READ") +cpp_quote("#define DBPROPVAL_STGM_WRITE OF_WRITE") +cpp_quote("#define DBPROPVAL_STGM_READWRITE OF_READWRITE") +cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_NONE OF_SHARE_DENY_NONE") +cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_READ OF_SHARE_DENY_READ") +cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_WRITE OF_SHARE_DENY_WRITE") +cpp_quote("#define DBPROPVAL_STGM_SHARE_EXCLUSIVE OF_SHARE_EXCLUSIVE") +cpp_quote("#define DBPROPVAL_STGM_DIRECT 0x00010000") +cpp_quote("#define DBPROPVAL_STGM_TRANSACTED 0x00020000") +cpp_quote("#define DBPROPVAL_STGM_CREATE OF_CREATE") +cpp_quote("#define DBPROPVAL_STGM_CONVERT 0x00040000") +cpp_quote("#define DBPROPVAL_STGM_FAILIFTHERE 0x00080000") +cpp_quote("#define DBPROPVAL_STGM_PRIORITY 0x00100000") +cpp_quote("#define DBPROPVAL_STGM_DELETEONRELEASE 0x00200000") +cpp_quote("#define DBPROPVAL_GB_COLLATE 0x00000010L") +cpp_quote("#define DBPROPVAL_CS_UNINITIALIZED 0x00000000L") +cpp_quote("#define DBPROPVAL_CS_INITIALIZED 0x00000001L") +cpp_quote("#define DBPROPVAL_CS_COMMUNICATIONFAILURE 0x00000002L") + +cpp_quote("#define DBPROPVAL_RD_RESETALL 0xffffffffL") +cpp_quote("#define DBPROPVAL_OS_RESOURCEPOOLING 0x00000001L") +cpp_quote("#define DBPROPVAL_OS_TXNENLISTMENT 0x00000002L") +cpp_quote("#define DBPROPVAL_OS_CLIENTCURSOR 0x00000004L") +cpp_quote("#define DBPROPVAL_OS_ENABLEALL 0xffffffffL") +cpp_quote("#define DBPROPVAL_BI_CROSSROWSET 0x00000001L") + +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +// VERSION 2.1 +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +cpp_quote("#define MDPROPVAL_NL_SCHEMAONLY 0x00000004L") + +cpp_quote("#define DBPROPVAL_OS_DISABLEALL 0x00000000L") + +cpp_quote("#define DBPROPVAL_OO_ROWOBJECT 0x00000004L") +cpp_quote("#define DBPROPVAL_OO_SCOPED 0x00000008L") +cpp_quote("#define DBPROPVAL_OO_DIRECTBIND 0x00000010L") + +cpp_quote("#define DBPROPVAL_DST_DOCSOURCE 0x00000004L") + +cpp_quote("#define DBPROPVAL_GU_NOTSUPPORTED 0x00000001L") +cpp_quote("#define DBPROPVAL_GU_SUFFIX 0x00000002L") + +cpp_quote("#define DB_BINDFLAGS_DELAYFETCHCOLUMNS 0x00000001L") +cpp_quote("#define DB_BINDFLAGS_DELAYFETCHSTREAM 0x00000002L") +cpp_quote("#define DB_BINDFLAGS_RECURSIVE 0x00000004L") +cpp_quote("#define DB_BINDFLAGS_OUTPUT 0x00000008L") +cpp_quote("#define DB_BINDFLAGS_COLLECTION 0x00000010L") +cpp_quote("#define DB_BINDFLAGS_OPENIFEXISTS 0x00000020L") +cpp_quote("#define DB_BINDFLAGS_OVERWRITE 0x00000040L") +cpp_quote("#define DB_BINDFLAGS_ISSTRUCTUREDDOCUMENT 0x00000080L") + +cpp_quote("#define DBPROPVAL_ORS_TABLE 0x00000000L") +cpp_quote("#define DBPROPVAL_ORS_INDEX 0x00000001L") +cpp_quote("#define DBPROPVAL_ORS_INTEGRATEDINDEX 0x00000002L") + +cpp_quote("#define DBPROPVAL_TC_DDL_LOCK 0x00000010L") + +cpp_quote("#define DBPROPVAL_ORS_STOREDPROC 0x00000004L") + +cpp_quote("#define DBPROPVAL_IN_ALLOWNULL 0x00000000L") + +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + + +// VERSION 2.5 +cpp_quote("//@@@+ V2.5") +cpp_quote("#if( OLEDBVER >= 0x0250 )") + +cpp_quote("#define DBPROPVAL_OO_SINGLETON 0x00000020L") +cpp_quote("#define DBPROPVAL_OS_AGR_AFTERSESSION 0x00000008L") + +cpp_quote("#define DBPROPVAL_CM_TRANSACTIONS 0x00000001L") +cpp_quote("#endif // OLEDBVER >= 0x0250") +cpp_quote("//@@@- V2.5") + + +// VERSION 2.6 +cpp_quote("//@@@+ V2.6") +cpp_quote("#if( OLEDBVER >= 0x0260 )") + +cpp_quote("#define DBPROPVAL_TS_CARDINALITY 0x00000001L") +cpp_quote("#define DBPROPVAL_TS_HISTOGRAM 0x00000002L") + +cpp_quote("#define DBPROPVAL_ORS_HISTOGRAM 0x00000008L") + +cpp_quote("#define MDPROPVAL_VISUAL_MODE_DEFAULT 0x00000000L") +cpp_quote("#define MDPROPVAL_VISUAL_MODE_VISUAL 0x00000001L") +cpp_quote("#define MDPROPVAL_VISUAL_MODE_VISUAL_OFF 0x00000002L") + +cpp_quote("#endif // OLEDBVER >= 0x0260") +cpp_quote("//@@@- V2.6") + + +cpp_quote("#define DB_IMP_LEVEL_ANONYMOUS 0x00") +cpp_quote("#define DB_IMP_LEVEL_IDENTIFY 0x01") +cpp_quote("#define DB_IMP_LEVEL_IMPERSONATE 0x02") +cpp_quote("#define DB_IMP_LEVEL_DELEGATE 0x03") + +cpp_quote("#define DBPROMPT_PROMPT 0x01") +cpp_quote("#define DBPROMPT_COMPLETE 0x02") +cpp_quote("#define DBPROMPT_COMPLETEREQUIRED 0x03") +cpp_quote("#define DBPROMPT_NOPROMPT 0x04") + +cpp_quote("#define DB_PROT_LEVEL_NONE 0x00") +cpp_quote("#define DB_PROT_LEVEL_CONNECT 0x01") +cpp_quote("#define DB_PROT_LEVEL_CALL 0x02") +cpp_quote("#define DB_PROT_LEVEL_PKT 0x03") +cpp_quote("#define DB_PROT_LEVEL_PKT_INTEGRITY 0x04") +cpp_quote("#define DB_PROT_LEVEL_PKT_PRIVACY 0x05") + +cpp_quote("#define DB_MODE_READ 0x01") +cpp_quote("#define DB_MODE_WRITE 0x02") +cpp_quote("#define DB_MODE_READWRITE 0x03") +cpp_quote("#define DB_MODE_SHARE_DENY_READ 0x04") +cpp_quote("#define DB_MODE_SHARE_DENY_WRITE 0x08") +cpp_quote("#define DB_MODE_SHARE_EXCLUSIVE 0x0c") +cpp_quote("#define DB_MODE_SHARE_DENY_NONE 0x10") + +cpp_quote("#define DBCOMPUTEMODE_COMPUTED 0x01") +cpp_quote("#define DBCOMPUTEMODE_DYNAMIC 0x02") +cpp_quote("#define DBCOMPUTEMODE_NOTCOMPUTED 0x03") + +cpp_quote("#define DBPROPVAL_DF_INITIALLY_DEFERRED 0x01") +cpp_quote("#define DBPROPVAL_DF_INITIALLY_IMMEDIATE 0x02") +cpp_quote("#define DBPROPVAL_DF_NOT_DEFERRABLE 0x03") + + // + // DBPARAMS structure and related defintions + // + +typedef struct tagDBPARAMS { + void * pData; + DB_UPARAMS cParamSets; + HACCESSOR hAccessor; +} DBPARAMS; + +typedef DWORD DBPARAMFLAGS; + +enum DBPARAMFLAGSENUM { + DBPARAMFLAGS_ISINPUT = 0x001, + DBPARAMFLAGS_ISOUTPUT = 0x002, + DBPARAMFLAGS_ISSIGNED = 0x010, + DBPARAMFLAGS_ISNULLABLE = 0x040, + DBPARAMFLAGS_ISLONG = 0x080, +}; + +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +enum DBPARAMFLAGSENUM20 { + DBPARAMFLAGS_SCALEISNEGATIVE = 0x100, +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +typedef struct tagDBPARAMINFO { + DBPARAMFLAGS dwFlags; + DBORDINAL iOrdinal; + LPOLESTR pwszName; + ITypeInfo * pTypeInfo; + DBLENGTH ulParamSize; + DBTYPE wType; + BYTE bPrecision; + BYTE bScale; +} DBPARAMINFO; + + // + // Property structs and related definitions + // + +typedef DWORD DBPROPID; + +typedef struct tagDBPROPIDSET { + [size_is(cPropertyIDs)] DBPROPID * rgPropertyIDs; + ULONG cPropertyIDs; + GUID guidPropertySet; +} DBPROPIDSET; + +typedef DWORD DBPROPFLAGS; + +enum DBPROPFLAGSENUM { + DBPROPFLAGS_NOTSUPPORTED = 0x0000, + DBPROPFLAGS_COLUMN = 0x0001, + DBPROPFLAGS_DATASOURCE = 0x0002, + DBPROPFLAGS_DATASOURCECREATE = 0x0004, + DBPROPFLAGS_DATASOURCEINFO = 0x0008, + DBPROPFLAGS_DBINIT = 0x0010, + DBPROPFLAGS_INDEX = 0x0020, + DBPROPFLAGS_ROWSET = 0x0040, + DBPROPFLAGS_TABLE = 0x0080, + DBPROPFLAGS_COLUMNOK = 0x0100, + DBPROPFLAGS_READ = 0x0200, + DBPROPFLAGS_WRITE = 0x0400, + DBPROPFLAGS_REQUIRED = 0x0800, + DBPROPFLAGS_SESSION = 0x1000, +}; + +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +enum DBPROPFLAGSENUM21 { + DBPROPFLAGS_TRUSTEE = 0x2000, +}; +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + +cpp_quote("//@@@+ V2.5") +cpp_quote("#if( OLEDBVER >= 0x0250 )") +enum DBPROPFLAGSENUM25 { + DBPROPFLAGS_VIEW = 0x4000, +}; +cpp_quote("#endif // OLEDBVER >= 0x0250") +cpp_quote("//@@@- V2.5") + +cpp_quote("//@@@+ V2.6") +cpp_quote("#if( OLEDBVER >= 0x0260 )") +enum DBPROPFLAGSENUM26 { + DBPROPFLAGS_STREAM = 0x8000, +}; +cpp_quote("#endif // OLEDBVER >= 0x0260") +cpp_quote("//@@@- V2.6") + +typedef struct tagDBPROPINFO { + LPOLESTR pwszDescription; + DBPROPID dwPropertyID; + DBPROPFLAGS dwFlags; + VARTYPE vtType; + VARIANT vValues; +} DBPROPINFO; + + +typedef DBPROPINFO * PDBPROPINFO; + +typedef struct tagDBPROPINFOSET +{ + [size_is(cPropertyInfos)] PDBPROPINFO rgPropertyInfos; + ULONG cPropertyInfos; + GUID guidPropertySet; +} DBPROPINFOSET; + +typedef DWORD DBPROPOPTIONS; + +cpp_quote("// DBPROPOPTIONS_SETIFCHEAP is deprecated; use DBPROPOPTIONS_OPTIONAL instead.") +enum DBPROPOPTIONSENUM { + DBPROPOPTIONS_REQUIRED = 0x0000, + DBPROPOPTIONS_SETIFCHEAP = 0x0001, + DBPROPOPTIONS_OPTIONAL = 0x0001, +}; + +typedef DWORD DBPROPSTATUS; + +enum DBPROPSTATUSENUM { + DBPROPSTATUS_OK = 0, + DBPROPSTATUS_NOTSUPPORTED = 1, + DBPROPSTATUS_BADVALUE = 2, + DBPROPSTATUS_BADOPTION = 3, + DBPROPSTATUS_BADCOLUMN = 4, + DBPROPSTATUS_NOTALLSETTABLE = 5, + DBPROPSTATUS_NOTSETTABLE = 6, + DBPROPSTATUS_NOTSET = 7, + DBPROPSTATUS_CONFLICTING = 8, +}; + +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +enum DBPROPSTATUSENUM21 { + DBPROPSTATUS_NOTAVAILABLE = 9, +}; + +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + +typedef struct tagDBPROP { + DBPROPID dwPropertyID; + DBPROPOPTIONS dwOptions; + DBPROPSTATUS dwStatus; + DBID colid; + VARIANT vValue; +} DBPROP; + +typedef struct tagDBPROPSET { + [size_is(cProperties)] DBPROP * rgProperties; + ULONG cProperties; + GUID guidPropertySet; +} DBPROPSET; + + // + // Schema definitions + // + +cpp_quote("#define DBPARAMTYPE_INPUT 0x01") +cpp_quote("#define DBPARAMTYPE_INPUTOUTPUT 0x02") +cpp_quote("#define DBPARAMTYPE_OUTPUT 0x03") +cpp_quote("#define DBPARAMTYPE_RETURNVALUE 0x04") + +cpp_quote("#define DB_PT_UNKNOWN 0x01") +cpp_quote("#define DB_PT_PROCEDURE 0x02") +cpp_quote("#define DB_PT_FUNCTION 0x03") + +cpp_quote("#define DB_REMOTE 0x01") +cpp_quote("#define DB_LOCAL_SHARED 0x02") +cpp_quote("#define DB_LOCAL_EXCLUSIVE 0x03") + +cpp_quote("#define DB_COLLATION_ASC 0x01") +cpp_quote("#define DB_COLLATION_DESC 0x02") + +cpp_quote("#define DB_UNSEARCHABLE 0x01") +cpp_quote("#define DB_LIKE_ONLY 0x02") +cpp_quote("#define DB_ALL_EXCEPT_LIKE 0x03") +cpp_quote("#define DB_SEARCHABLE 0x04") + +// VERSION 2.0 +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") + +cpp_quote("#define MDTREEOP_CHILDREN 0x01") +cpp_quote("#define MDTREEOP_SIBLINGS 0x02") +cpp_quote("#define MDTREEOP_PARENT 0x04") +cpp_quote("#define MDTREEOP_SELF 0x08") +cpp_quote("#define MDTREEOP_DESCENDANTS 0x10") +cpp_quote("#define MDTREEOP_ANCESTORS 0x20") + +cpp_quote("#define MD_DIMTYPE_UNKNOWN 0x00") +cpp_quote("#define MD_DIMTYPE_TIME 0x01") +cpp_quote("#define MD_DIMTYPE_MEASURE 0x02") +cpp_quote("#define MD_DIMTYPE_OTHER 0x03") + +cpp_quote("#define MDLEVEL_TYPE_UNKNOWN 0x0000") +cpp_quote("#define MDLEVEL_TYPE_REGULAR 0x0000") +cpp_quote("#define MDLEVEL_TYPE_ALL 0x0001") +cpp_quote("#define MDLEVEL_TYPE_CALCULATED 0x0002") +cpp_quote("#define MDLEVEL_TYPE_TIME 0x0004") +cpp_quote("#define MDLEVEL_TYPE_RESERVED1 0x0008") +cpp_quote("#define MDLEVEL_TYPE_TIME_YEARS 0x0014") +cpp_quote("#define MDLEVEL_TYPE_TIME_HALF_YEAR 0x0024") +cpp_quote("#define MDLEVEL_TYPE_TIME_QUARTERS 0x0044") +cpp_quote("#define MDLEVEL_TYPE_TIME_MONTHS 0x0084") +cpp_quote("#define MDLEVEL_TYPE_TIME_WEEKS 0x0104") +cpp_quote("#define MDLEVEL_TYPE_TIME_DAYS 0x0204") +cpp_quote("#define MDLEVEL_TYPE_TIME_HOURS 0x0304") +cpp_quote("#define MDLEVEL_TYPE_TIME_MINUTES 0x0404") +cpp_quote("#define MDLEVEL_TYPE_TIME_SECONDS 0x0804") +cpp_quote("#define MDLEVEL_TYPE_TIME_UNDEFINED 0x1004") + +cpp_quote("#define MDMEASURE_AGGR_UNKNOWN 0x00") +cpp_quote("#define MDMEASURE_AGGR_SUM 0x01") +cpp_quote("#define MDMEASURE_AGGR_COUNT 0x02") +cpp_quote("#define MDMEASURE_AGGR_MIN 0x03") +cpp_quote("#define MDMEASURE_AGGR_MAX 0x04") +cpp_quote("#define MDMEASURE_AGGR_AVG 0x05") +cpp_quote("#define MDMEASURE_AGGR_VAR 0x06") +cpp_quote("#define MDMEASURE_AGGR_STD 0x07") +cpp_quote("#define MDMEASURE_AGGR_CALCULATED 0x7f") + +cpp_quote("#define MDPROP_MEMBER 0x01") +cpp_quote("#define MDPROP_CELL 0x02") + +cpp_quote("#define MDMEMBER_TYPE_UNKNOWN 0x00") +cpp_quote("#define MDMEMBER_TYPE_REGULAR 0x01") +cpp_quote("#define MDMEMBER_TYPE_ALL 0x02") +cpp_quote("#define MDMEMBER_TYPE_MEASURE 0x03") +cpp_quote("#define MDMEMBER_TYPE_FORMULA 0x04") +cpp_quote("#define MDMEMBER_TYPE_RESERVE1 0x05") +cpp_quote("#define MDMEMBER_TYPE_RESERVE2 0x06") +cpp_quote("#define MDMEMBER_TYPE_RESERVE3 0x07") +cpp_quote("#define MDMEMBER_TYPE_RESERVE4 0x08") +cpp_quote("#define MDDISPINFO_DRILLED_DOWN 0x00010000") +cpp_quote("#define MDDISPINFO_PARENT_SAME_AS_PREV 0x00020000") + +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + + // + // Index column definition + // + +typedef DWORD DBINDEX_COL_ORDER; + +enum DBINDEX_COL_ORDERENUM { + DBINDEX_COL_ORDER_ASC, + DBINDEX_COL_ORDER_DESC, +}; + +typedef struct tagDBINDEXCOLUMNDESC { + DBID * pColumnID; + DBINDEX_COL_ORDER eIndexColOrder; +} DBINDEXCOLUMNDESC; + + // + // Column description + // + +typedef struct tagDBCOLUMNDESC { + LPOLESTR pwszTypeName; + ITypeInfo * pTypeInfo; + [size_is(cPropertySets)] DBPROPSET * rgPropertySets; + CLSID * pclsid; + ULONG cPropertySets; + DBLENGTH ulColumnSize; + DBID dbcid; + DBTYPE wType; + BYTE bPrecision; + BYTE bScale; +} DBCOLUMNDESC; + + // + // Column Access + // +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") + +typedef struct tagDBCOLUMNACCESS { + void* pData; + DBID columnid; + DBLENGTH cbDataLen; + DBSTATUS dwStatus; + DBLENGTH cbMaxLen; + DB_DWRESERVE dwReserved; + DBTYPE wType; + BYTE bPrecision; + BYTE bScale; +} DBCOLUMNACCESS; + +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + +// VERSION 2.0 +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") + +typedef DWORD DBCOLUMNDESCFLAGS; + +enum DBCOLUMNDESCFLAGSENUM { + DBCOLUMNDESCFLAGS_TYPENAME = 0x0001, + DBCOLUMNDESCFLAGS_ITYPEINFO = 0x0002, + DBCOLUMNDESCFLAGS_PROPERTIES= 0x0004, + DBCOLUMNDESCFLAGS_CLSID = 0x0008, + DBCOLUMNDESCFLAGS_COLSIZE = 0x0010, + DBCOLUMNDESCFLAGS_DBCID = 0x0020, + DBCOLUMNDESCFLAGS_WTYPE = 0x0040, + DBCOLUMNDESCFLAGS_PRECISION = 0x0080, + DBCOLUMNDESCFLAGS_SCALE = 0x0100, +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + // + // Notification events and reasons + // + +typedef DWORD DBEVENTPHASE; + +enum DBEVENTPHASEENUM { + DBEVENTPHASE_OKTODO, + DBEVENTPHASE_ABOUTTODO, + DBEVENTPHASE_SYNCHAFTER, + DBEVENTPHASE_FAILEDTODO, + DBEVENTPHASE_DIDEVENT +}; + +typedef DWORD DBREASON; + +enum DBREASONENUM { + DBREASON_ROWSET_FETCHPOSITIONCHANGE, + DBREASON_ROWSET_RELEASE, + DBREASON_COLUMN_SET, + DBREASON_COLUMN_RECALCULATED, + DBREASON_ROW_ACTIVATE, + DBREASON_ROW_RELEASE, + DBREASON_ROW_DELETE, + DBREASON_ROW_FIRSTCHANGE, + DBREASON_ROW_INSERT, + DBREASON_ROW_RESYNCH, + DBREASON_ROW_UNDOCHANGE, + DBREASON_ROW_UNDOINSERT, + DBREASON_ROW_UNDODELETE, + DBREASON_ROW_UPDATE, + DBREASON_ROWSET_CHANGED, +}; + +// VERSION 1.5 +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") +enum DBREASONENUM15 { + DBREASON_ROWPOSITION_CHANGED = DBREASON_ROWSET_CHANGED + 1, + DBREASON_ROWPOSITION_CHAPTERCHANGED, + DBREASON_ROWPOSITION_CLEARED, + DBREASON_ROW_ASYNCHINSERT, +}; +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +cpp_quote("//@@@+ V1.5") +cpp_quote("#if( OLEDBVER >= 0x0150 )") + + // + // Comparison operations + // + +typedef DWORD DBCOMPAREOP; + +enum DBCOMPAREOPSENUM { + DBCOMPAREOPS_LT = 0, + DBCOMPAREOPS_LE = 1, + DBCOMPAREOPS_EQ = 2, + DBCOMPAREOPS_GE = 3, + DBCOMPAREOPS_GT = 4, + DBCOMPAREOPS_BEGINSWITH = 5, + DBCOMPAREOPS_CONTAINS = 6, + DBCOMPAREOPS_NE = 7, + DBCOMPAREOPS_IGNORE = 8, + DBCOMPAREOPS_CASESENSITIVE = 0x1000, + DBCOMPAREOPS_CASEINSENSITIVE = 0x2000, +}; + +// VERSION 2.0 +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +enum DBCOMPAREOPSENUM20 { + DBCOMPAREOPS_NOTBEGINSWITH = 9, + DBCOMPAREOPS_NOTCONTAINS = 10, +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + // + // Asynch operations, status codes, and miscellaneous things + // + +typedef DWORD DBASYNCHOP; +enum DBASYNCHOPENUM { + DBASYNCHOP_OPEN, +}; + +typedef DWORD DBASYNCHPHASE; +enum DBASYNCHPHASEENUM { + DBASYNCHPHASE_INITIALIZATION, + DBASYNCHPHASE_POPULATION, + DBASYNCHPHASE_COMPLETE, + DBASYNCHPHASE_CANCELED, +}; + +cpp_quote("#define DB_COUNTUNAVAILABLE -1") + +cpp_quote("#endif // OLEDBVER >= 0x0150") +cpp_quote("//@@@- V1.5") + +typedef DWORD DBSORT; + +enum DBSORTENUM { + DBSORT_ASCENDING = 0, + DBSORT_DESCENDING, +}; + + // ICommandPersist + +cpp_quote("#if( OLEDBVER >= 0x0200 )") +typedef DWORD DBCOMMANDPERSISTFLAG; + +enum DBCOMMANDPERSISTFLAGENUM { + DBCOMMANDPERSISTFLAG_NOSAVE = 0x01, +}; +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +cpp_quote("#if( OLEDBVER >= 0x0210 )") + enum DBCOMMANDPERSISTFLAGENUM21 { + DBCOMMANDPERSISTFLAG_DEFAULT = 0x00, + DBCOMMANDPERSISTFLAG_PERSISTVIEW = 0x02, + DBCOMMANDPERSISTFLAG_PERSISTPROCEDURE = 0x04, + }; +typedef DWORD DBCONSTRAINTTYPE; + +enum DBCONSTRAINTTYPEENUM { + DBCONSTRAINTTYPE_UNIQUE = 0x0, + DBCONSTRAINTTYPE_FOREIGNKEY = 0x1, + DBCONSTRAINTTYPE_PRIMARYKEY = 0x2, + DBCONSTRAINTTYPE_CHECK = 0x3 + }; + +typedef DWORD DBUPDELRULE; + +enum DBUPDELRULEENUM { + DBUPDELRULE_NOACTION = 0x0, + DBUPDELRULE_CASCADE = 0x1, + DBUPDELRULE_SETNULL = 0x2, + DBUPDELRULE_SETDEFAULT = 0x3 + }; + +typedef DWORD DBMATCHTYPE; + +enum DBMATCHTYPEENUM { + DBMATCHTYPE_FULL = 0x0, + DBMATCHTYPE_NONE = 0x1, + DBMATCHTYPE_PARTIAL = 0x2 + }; + +typedef DWORD DBDEFERRABILITY; + +enum DBDEFERRABILITYENUM { + DBDEFERRABILITY_DEFERRED = 0x1, + DBDEFERRABILITY_DEFERRABLE = 0x2 + }; + +typedef struct tagDBCONSTRAINTDESC { + DBID * pConstraintID; + DBCONSTRAINTTYPE ConstraintType; + DBORDINAL cColumns; + [size_is((ULONG)cColumns)] DBID * rgColumnList; + DBID * pReferencedTableID; + DBORDINAL cForeignKeyColumns; + [size_is((ULONG)cForeignKeyColumns)] DBID * rgForeignKeyColumnList; + OLECHAR * pwszConstraintText; + DBUPDELRULE UpdateRule; + DBUPDELRULE DeleteRule; + DBMATCHTYPE MatchType; + DBDEFERRABILITY Deferrability; + DB_URESERVE cReserved; + [size_is((ULONG)cReserved)] DBPROPSET * rgReserved; +} DBCONSTRAINTDESC; + +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + + // + // Tensor additions + // + +// VERSION 2.0 +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") + +cpp_quote("#define MDFF_BOLD 0x01") +cpp_quote("#define MDFF_ITALIC 0x02") +cpp_quote("#define MDFF_UNDERLINE 0x04") +cpp_quote("#define MDFF_STRIKEOUT 0x08") + +typedef struct tagMDAXISINFO { + DBLENGTH cbSize; + DBCOUNTITEM iAxis; + DBCOUNTITEM cDimensions; + DBCOUNTITEM cCoordinates; + DBORDINAL *rgcColumns; + LPOLESTR *rgpwszDimensionNames; +} MDAXISINFO; + +cpp_quote("#define PMDAXISINFO_GETAT(rgAxisInfo, iAxis) ((MDAXISINFO *)(((BYTE *)(rgAxisInfo)) +((iAxis) * (rgAxisInfo)[0].cbSize)))") +cpp_quote("#define MDAXISINFO_GETAT(rgAxisInfo, iAxis) (*PMDAXISINFO_GETAT((rgAxisInfo), (iAxis)))") + +cpp_quote("#define MDAXIS_COLUMNS 0x00000000") +cpp_quote("#define MDAXIS_ROWS 0x00000001") +cpp_quote("#define MDAXIS_PAGES 0x00000002") +cpp_quote("#define MDAXIS_SECTIONS 0x00000003") +cpp_quote("#define MDAXIS_CHAPTERS 0x00000004") +cpp_quote("#define MDAXIS_SLICERS 0xffffffff") + +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + + // + // Interface remoting additions + // + +typedef struct tagRMTPACK { + ISequentialStream * pISeqStream; + ULONG cbData; + ULONG cBSTR; + [size_is(cBSTR)] BSTR * rgBSTR; + ULONG cVARIANT; + [size_is(cVARIANT)] VARIANT * rgVARIANT; + ULONG cIDISPATCH; + [size_is(cIDISPATCH)] IDispatch ** rgIDISPATCH; + ULONG cIUNKNOWN; + [size_is(cIUNKNOWN)] IUnknown ** rgIUNKNOWN; + ULONG cPROPVARIANT; + [size_is(cPROPVARIANT)] PROPVARIANT * rgPROPVARIANT; + ULONG cArray; + [size_is(cArray)] VARIANT * rgArray; +} RMTPACK; + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbscmd.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbscmd.idl new file mode 100644 index 0000000000000000000000000000000000000000..da33ef4752d484749efb801faabecdb891ff9375 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbscmd.idl @@ -0,0 +1,49 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbscmd.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + +#if( OLEDBVER >= 0x0200 ) + REMOTED_INTERFACE(0c733a50-2a1c-11ce-ade5-00aa0044773d) +#else + LOCAL_INTERFACE(0c733a50-2a1c-11ce-ade5-00aa0044773d) +#endif + + +interface IDBSchemaCommand : IUnknown { + + HRESULT GetCommand( + [in] IUnknown * pUnkOuter, + [in] REFGUID rguidSchema, + [out] ICommand ** ppCommand + ); + + HRESULT GetSchemas( + [in, out] ULONG * pcSchemas, + [out, size_is(,*pcSchemas)] GUID ** prgSchemas + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbsdep.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbsdep.idl new file mode 100644 index 0000000000000000000000000000000000000000..3fab7c51d349a51586f025a84df45cd76216a272 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbsdep.idl @@ -0,0 +1,117 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbsdep.idl +// +// Contents: OLE/DB structure definititions -- deprecated +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +[ + uuid(0c733aad-2a1c-11ce-ade5-00aa0044773d), + pointer_default(unique) +] + +interface DBStructureDefinitionsDep { + +cpp_quote("#ifndef UNALIGNED") +cpp_quote("#if defined(_MIPS_) || defined(_ALPHA_) || defined(_PPC_)") +cpp_quote("#define UNALIGNED __unaligned") +cpp_quote("#else") +cpp_quote("#define UNALIGNED") +cpp_quote("#endif") +cpp_quote("#endif //UNALIGNED") + +cpp_quote("#undef OLEDBDECLSPEC") +cpp_quote("#if _MSC_VER >= 1100") +cpp_quote("#define OLEDBDECLSPEC __declspec(selectany)") +cpp_quote("#else") +cpp_quote("#define OLEDBDECLSPEC ") +cpp_quote("#endif //_MSC_VER") + +cpp_quote("#ifdef DBINITCONSTANTS") + +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_CHECK_OPTION = {0xc8b5220b,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_CONSTRAINT_CHECK_DEFERRED = {0xc8b521f0,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_DROP_CASCADE = {0xc8b521f3,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_UNIQUE = {0xc8b521f5,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_ON_COMMIT_PRESERVE_ROWS = {0xc8b52230,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_PRIMARY = {0xc8b521fc,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_CLUSTERED = {0xc8b521ff,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_NONCLUSTERED = {0xc8b52200,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_BTREE = {0xc8b52201,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_HASH = {0xc8b52202,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_FILLFACTOR = {0xc8b52203,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_INITIALSIZE = {0xc8b52204,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_DISALLOWNULL = {0xc8b52205,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_IGNORENULL = {0xc8b52206,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_IGNOREANYNULL = {0xc8b52207,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_SORTBOOKMARKS = {0xc8b52208,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_AUTOMATICUPDATE = {0xc8b52209,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") +cpp_quote("extern const OLEDBDECLSPEC GUID DB_PROPERTY_EXPLICITUPDATE = {0xc8b5220a,0x5cf3,0x11ce,{0xad,0xe5,0x00,0xaa,0x00,0x44,0x77,0x3d}};") + +cpp_quote("#else // !DBINITCONSTANTS") + +cpp_quote("extern const GUID DB_PROPERTY_CHECK_OPTION;") +cpp_quote("extern const GUID DB_PROPERTY_CONSTRAINT_CHECK_DEFERRED;") +cpp_quote("extern const GUID DB_PROPERTY_DROP_CASCADE;") +cpp_quote("extern const GUID DB_PROPERTY_ON_COMMIT_PRESERVE_ROWS;") +cpp_quote("extern const GUID DB_PROPERTY_UNIQUE;") +cpp_quote("extern const GUID DB_PROPERTY_PRIMARY;") +cpp_quote("extern const GUID DB_PROPERTY_CLUSTERED;") +cpp_quote("extern const GUID DB_PROPERTY_NONCLUSTERED;") +cpp_quote("extern const GUID DB_PROPERTY_BTREE;") +cpp_quote("extern const GUID DB_PROPERTY_HASH;") +cpp_quote("extern const GUID DB_PROPERTY_FILLFACTOR;") +cpp_quote("extern const GUID DB_PROPERTY_INITIALSIZE;") +cpp_quote("extern const GUID DB_PROPERTY_DISALLOWNULL;") +cpp_quote("extern const GUID DB_PROPERTY_IGNORENULL;") +cpp_quote("extern const GUID DB_PROPERTY_IGNOREANYNULL;") +cpp_quote("extern const GUID DB_PROPERTY_SORTBOOKMARKS;") +cpp_quote("extern const GUID DB_PROPERTY_AUTOMATICUPDATE;") +cpp_quote("extern const GUID DB_PROPERTY_EXPLICITUPDATE;") + +cpp_quote("#endif // DBINITCONSTANTS") + +enum DBPROPENUM25_DEPRECATED { + DBPROP_ICommandCost = 0x0000008dL, + DBPROP_ICommandTree = 0x0000008eL, + DBPROP_ICommandValidate = 0x0000008fL, + DBPROP_IDBSchemaCommand = 0x00000090L, + DBPROP_IProvideMoniker = 0x0000007dL, + DBPROP_IQuery = 0x00000092L, + DBPROP_IReadData = 0x00000093L, + DBPROP_IRowsetAsynch = 0x00000094L, + DBPROP_IRowsetCopyRows = 0x00000095L, + DBPROP_IRowsetKeys = 0x00000097L, + DBPROP_IRowsetNewRowAfter = 0x00000098L, + DBPROP_IRowsetNextRowset = 0x00000099L, + DBPROP_IRowsetWatchAll = 0x0000009bL, + DBPROP_IRowsetWatchNotify = 0x0000009cL, + DBPROP_IRowsetWatchRegion = 0x0000009dL, + DBPROP_IRowsetWithParameters = 0x0000009eL, +}; + +enum DBREASONENUM25 { + DBREASON_ROWSET_ROWSADDED = DBREASON_ROW_ASYNCHINSERT + 1, + DBREASON_ROWSET_POPULATIONCOMPLETE, + DBREASON_ROWSET_POPULATIONSTOPPED, +}; + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbseci.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbseci.idl new file mode 100644 index 0000000000000000000000000000000000000000..42efe96795f04d98fc0652b9c400c5fb8ecf3449 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbseci.idl @@ -0,0 +1,109 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbseci.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + +#if( OLEDBVER >= 0x0200 ) + REMOTED_INTERFACE(0c733a62-2a1c-11ce-ade5-00aa0044773d) +#else + LOCAL_INTERFACE(0c733a62-2a1c-11ce-ade5-00aa0044773d) +#endif + + +interface IDBSecurityInfo : IUnknown { + +typedef DWORD DBTRUSTEEACCTTYPE; + +enum DBTRUSTEEACCTTYPEENUM { + DBTRUSTEEACCTTYPE_UNKNOWN, + DBTRUSTEEACCTTYPE_USER, + DBTRUSTEEACCTTYPE_GROUP, +}; + +typedef DWORD DBTRUSTEEIDTYPE; + +enum DBTRUSTEEIDTYPEENUM { + DBTRUSTEEIDTYPE_SID, + DBTRUSTEEIDTYPE_NAME, +}; + +typedef DWORD DBTRUSTEEMULT; + +enum DBTRUSTEEMULTENUM { + DBTRUSTEEMULT_NONE, + DBTRUSTEEMULT_IMPERSONATE, +}; + +typedef struct tagDBTRUSTEE { + struct tagDBTRUSTEE * pMultipleTrustee; + LPOLESTR pwszName; + DBTRUSTEEMULT dwMultipleTrusteeOp; + DBTRUSTEEIDTYPE dwTrusteeIDType; + DBTRUSTEEACCTTYPE dwTrusteeAcctType; +} DBTRUSTEE, *PDBTRUSTEE; + +typedef struct tagDBOBJECTTYPE { + LPOLESTR pwszObjectTypeName; + GUID * pguidObjectTypeId; +} DBOBJECTTYPE; + +typedef struct tagDBPERMTYPE { + LPOLESTR pwszPermissionTypeName; + GUID * pguidPermissionTypeId; +} DBPERMTYPE; + +typedef struct tagDBTRUSTEETYPE { + LPOLESTR pwszTrusteeTypeName; + GUID * pguidTrusteeTypeId; +} DBTRUSTEETYPE; + +typedef struct tagDBACCESSTRIPLE { +// DBPERMISSION Permission; + DBPERMTYPE PermissionType; + DBOBJECTTYPE ObjectType; + DBTRUSTEETYPE TrusteeType; +} DBACCESSTRIPLE; + + HRESULT GetAccessTriples( + [in, out] ULONG * pcAccessTriplesInfo, + [out, size_is(,*pcAccessTriplesInfo)] DBACCESSTRIPLE ** prgAccessTripleInfo + ); + + HRESULT GetAuthenticatedTrusteeIdentity( + [out] DBTRUSTEE * pTrustee + ); + + HRESULT GetObjectTypesInfo( + [in, out] ULONG * pcObjectInfo, + [out, size_is(,*pcObjectInfo)] DBOBJECTTYPE ** prgObjectInfo + ); + + HRESULT GetPermTypesInfo( + [in, out] ULONG * pcPermInfo, + [out, size_is(,*pcPermInfo)] DBPERMTYPE ** prgPermInfo + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbsrst.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbsrst.idl new file mode 100644 index 0000000000000000000000000000000000000000..1f3a7b336087d7e47402d4248544ba3b673325d0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dbsrst.idl @@ -0,0 +1,143 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: dbsrst.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a7b-2a1c-11ce-ade5-00aa0044773d) + + +interface IDBSchemaRowset : IUnknown { + +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_ASSERTIONS 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_CATALOGS 1") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_CHARACTER_SETS 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_COLLATIONS 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_COLUMNS 4") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_CHECK_CONSTRAINTS 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_CONSTRAINT_COLUMN_USAGE 4") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_CONSTRAINT_TABLE_USAGE 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_KEY_COLUMN_USAGE 7") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_REFERENTIAL_CONSTRAINTS 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_TABLE_CONSTRAINTS 7") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_COLUMN_DOMAIN_USAGE 4") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_INDEXES 5") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_OBJECT_ACTIONS 1") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_OBJECTS 1") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_COLUMN_PRIVILEGES 6") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_TABLE_PRIVILEGES 5") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_USAGE_PRIVILEGES 6") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_PROCEDURES 4") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_SCHEMATA 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_SQL_LANGUAGES 0") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_STATISTICS 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_TABLES 4") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_TRANSLATIONS 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_PROVIDER_TYPES 2") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_VIEWS 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_VIEW_COLUMN_USAGE 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_VIEW_TABLE_USAGE 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_PROCEDURE_PARAMETERS 4") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_FOREIGN_KEYS 6") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_PRIMARY_KEYS 3") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_PROCEDURE_COLUMNS 4") + +// VERSION 2.0 +cpp_quote("//@@@+ V2.0") +cpp_quote("#if( OLEDBVER >= 0x0200 )") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_TABLES_INFO 4") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_CUBES 3") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_DIMENSIONS 5") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_HIERARCHIES 6") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_LEVELS 7") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_MEASURES 5") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_PROPERTIES 9") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_MEMBERS 12") +cpp_quote("#endif // OLEDBVER >= 0x0200") +cpp_quote("//@@@- V2.0") + +cpp_quote("//@@@+ V2.1") +cpp_quote("#if( OLEDBVER >= 0x0210 )") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_TRUSTEE 4") +cpp_quote("#endif // OLEDBVER >= 0x0210") +cpp_quote("//@@@- V2.1") + +cpp_quote("//@@@+ V2.6") +cpp_quote("#if( OLEDBVER >= 0x0260 )") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_TABLE_STATISTICS 7") +cpp_quote("#define CRESTRICTIONS_DBSCHEMA_CHECK_CONSTRAINTS_BY_TABLE 6") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_FUNCTIONS 4") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_ACTIONS 8") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_COMMANDS 5") +cpp_quote("#define CRESTRICTIONS_MDSCHEMA_SETS 5") +cpp_quote("#endif // OLEDBVER >= 0x0260") +cpp_quote("//@@@- V2.6") + + [local] + HRESULT GetRowset( + [in, annotation("_In_opt_")] IUnknown * pUnkOuter, + [in] REFGUID rguidSchema, + [in] ULONG cRestrictions, + [in, size_is(cRestrictions), annotation("_In_reads_opt_(cRestrictions)")] + const VARIANT rgRestrictions[], + [in, annotation("_In_")] REFIID riid, + [in] ULONG cPropertySets, + [in, out, unique, size_is(cPropertySets), annotation("_Inout_updates_opt_(cPropertySets)")] + DBPROPSET rgPropertySets[], + [out, iid_is(riid), annotation("_Outptr_result_maybenull_")] + IUnknown ** ppRowset + ); + + [call_as(GetRowset)] + HRESULT RemoteGetRowset( + [in] IUnknown * pUnkOuter, + [in] REFGUID rguidSchema, + [in] ULONG cRestrictions, + [in, unique, size_is(cRestrictions)] const VARIANT * rgRestrictions, + [in] REFIID riid, + [in] ULONG cPropertySets, + [in, unique, size_is(cPropertySets)] DBPROPSET * rgPropertySets, + [out, iid_is(riid)] IUnknown ** ppRowset, + [in] ULONG cTotalProps, + [out, size_is(cTotalProps)] DBPROPSTATUS * rgPropStatus, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetSchemas( + [in, out, annotation("_Out_")] ULONG * pcSchemas, + [out, size_is(,*pcSchemas), annotation("_Outptr_result_buffer_maybenull_(*pcSchemas)")] GUID ** prgSchemas, + [out, size_is(,*pcSchemas), annotation("_Outptr_result_buffer_maybenull_(*pcSchemas)")] ULONG ** prgRestrictionSupport + ); + + [call_as(GetSchemas)] + HRESULT RemoteGetSchemas( + [in, out] ULONG * pcSchemas, + [out, size_is(,*pcSchemas)] GUID ** prgSchemas, + [out, size_is(,*pcSchemas)] ULONG ** prgRestrictionSupport, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dciman.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dciman.h new file mode 100644 index 0000000000000000000000000000000000000000..1da64fa5f3e9b6a143393434df8faaac7c8f1b0a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dciman.h @@ -0,0 +1,163 @@ +/**************************************************************************** + + DCIMAN.H + + Copyright (C) 1993-1999 Microsoft Corporation. All Rights Reserved. + + DCIMAN 1.0 client interface definitions + + ***************************************************************************/ + +#ifndef _INC_DCIMAN +#define _INC_DCIMAN + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#ifdef __cplusplus + #define __inline inline + extern "C" { +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/**************************************************************************** + ***************************************************************************/ + +#include "dciddi.h" // interface to the DCI provider + +/**************************************************************************** + ***************************************************************************/ + +DECLARE_HANDLE(HWINWATCH); // context handle for WinWatch instance + +/**************************************************************************** + ***************************************************************************/ + +extern HDC WINAPI DCIOpenProvider(void); +extern void WINAPI DCICloseProvider(HDC hdc); + +extern int WINAPI DCICreatePrimary(HDC hdc, LPDCISURFACEINFO FAR *lplpSurface); +extern int WINAPI DCICreateOffscreen(HDC hdc, DWORD dwCompression, DWORD dwRedMask, + DWORD dwGreenMask, DWORD dwBlueMask, DWORD dwWidth, DWORD dwHeight, + DWORD dwDCICaps, DWORD dwBitCount, LPDCIOFFSCREEN FAR *lplpSurface); +extern int WINAPI DCICreateOverlay(HDC hdc, LPVOID lpOffscreenSurf, + LPDCIOVERLAY FAR *lplpSurface); +extern int WINAPI DCIEnum(HDC hdc, LPRECT lprDst, LPRECT lprSrc, LPVOID lpFnCallback, + LPVOID lpContext); +extern DCIRVAL WINAPI DCISetSrcDestClip(LPDCIOFFSCREEN pdci, LPRECT srcrc, + LPRECT destrc, LPRGNDATA prd ); + +extern HWINWATCH WINAPI WinWatchOpen(HWND hwnd); +extern void WINAPI WinWatchClose(HWINWATCH hWW); + +// API changed to copy region data instead of return pointer to it +extern UINT WINAPI WinWatchGetClipList(HWINWATCH hWW, LPRECT prc, + UINT size, LPRGNDATA prd); +extern BOOL WINAPI WinWatchDidStatusChange(HWINWATCH hWW); + +extern DWORD WINAPI GetWindowRegionData(HWND hwnd, DWORD size, LPRGNDATA prd); +extern DWORD WINAPI GetDCRegionData(HDC hdc, DWORD size, LPRGNDATA prd); + + +#define WINWATCHNOTIFY_START 0 +#define WINWATCHNOTIFY_STOP 1 +#define WINWATCHNOTIFY_DESTROY 2 +#define WINWATCHNOTIFY_CHANGING 3 +#define WINWATCHNOTIFY_CHANGED 4 +typedef void (CALLBACK *WINWATCHNOTIFYPROC)(HWINWATCH hww, HWND hwnd, DWORD code, LPARAM lParam); + +extern BOOL WINAPI WinWatchNotify(HWINWATCH hWW, WINWATCHNOTIFYPROC NotifyCallback, + LPARAM NotifyParam ); + +#ifdef WIN32 +/**************************************************************************** + helper functions to call DCIMAN16.DLL + ***************************************************************************/ +extern void WINAPI DCIEndAccess(LPDCISURFACEINFO pdci); +extern DCIRVAL WINAPI DCIBeginAccess(LPDCISURFACEINFO pdci, int x, int y, int dx, int dy); +extern void WINAPI DCIDestroy(LPDCISURFACEINFO pdci); +extern DCIRVAL WINAPI DCIDraw(LPDCIOFFSCREEN pdci); +extern DCIRVAL WINAPI DCISetClipList(LPDCIOFFSCREEN pdci, LPRGNDATA prd); +extern DCIRVAL WINAPI DCISetDestination(LPDCIOFFSCREEN pdci, LPRECT dst, LPRECT src); + + +#else + +extern int WINAPI DCISendCommand(HDC hdc, VOID FAR *pcmd, int nSize, VOID FAR * FAR * lplpOut); + +/**************************************************************************** + helper macros to call DCI callbacks + ***************************************************************************/ +__inline void DCIDestroy(LPDCISURFACEINFO pdci) +{ + if( pdci->DestroySurface != NULL ) { + pdci->DestroySurface(pdci); + } +} + +__inline void DCIEndAccess(LPDCISURFACEINFO pdci) +{ + if( pdci->EndAccess != NULL ) { + pdci->EndAccess(pdci); + } +} + +__inline DCIRVAL DCIBeginAccess(LPDCISURFACEINFO pdci, int x, int y, int dx, int dy) +{ + RECT rc; + + if( pdci->BeginAccess != NULL ) { + rc.left=x; + rc.top=y; + rc.right = rc.left+dx; + rc.bottom = rc.top+dy; + return pdci->BeginAccess(pdci, &rc); + } else { + return DCI_OK; + } +} + +__inline DCIRVAL DCIDraw(LPDCIOFFSCREEN pdci) +{ + if( pdci->Draw != NULL ) { + return pdci->Draw(pdci); + } else { + return DCI_OK; + } +} + +__inline DCIRVAL DCISetClipList(LPDCIOFFSCREEN pdci, LPRGNDATA prd) +{ + if( pdci->SetClipList != NULL ) { + return pdci->SetClipList(pdci, prd); + } else { + return DCI_OK; + } +} + +__inline DCIRVAL DCISetDestination(LPDCIOFFSCREEN pdci, LPRECT dst, LPRECT src) +{ + if( pdci->SetDestination != NULL ) { + return pdci->SetDestination(pdci, dst, src); + } else { + return DCI_OK; + } +} +#endif + +/**************************************************************************** + ***************************************************************************/ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus + } +#endif + +#endif // _INC_DCIMAN diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcommon.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcommon.h new file mode 100644 index 0000000000000000000000000000000000000000..4b22413aa6b2de6525f58bf447f0cd9e3ed5b52e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcommon.h @@ -0,0 +1,411 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// Public API definitions shared by DWrite, D2D, and DImage. +// +//---------------------------------------------------------------------------- +#pragma once + +#ifndef DCOMMON_H_INCLUDED +#define DCOMMON_H_INCLUDED + +#include + +#ifndef DX_DECLARE_INTERFACE +#define DX_DECLARE_INTERFACE(x) DECLSPEC_UUID(x) DECLSPEC_NOVTABLE +#endif + +#ifndef CHECKMETHOD +#define CHECKMETHOD(method) virtual DECLSPEC_NOTHROW _Must_inspect_result_ HRESULT STDMETHODCALLTYPE method +#endif + +#pragma warning(push) +#pragma warning(disable:4201) // anonymous unions warning + +// +// Forward declarations +// +struct IDXGISurface; + +/// +/// The measuring method used for text layout. +/// +typedef enum DWRITE_MEASURING_MODE +{ + /// + /// Text is measured using glyph ideal metrics whose values are independent to the current display resolution. + /// + DWRITE_MEASURING_MODE_NATURAL, + + /// + /// Text is measured using glyph display compatible metrics whose values tuned for the current display resolution. + /// + DWRITE_MEASURING_MODE_GDI_CLASSIC, + + /// + // Text is measured using the same glyph display metrics as text measured by GDI using a font + // created with CLEARTYPE_NATURAL_QUALITY. + /// + DWRITE_MEASURING_MODE_GDI_NATURAL + +} DWRITE_MEASURING_MODE; + +#if NTDDI_VERSION >= NTDDI_WIN10_RS1 + +/// +/// Fonts may contain multiple drawable data formats for glyphs. These flags specify which formats +/// are supported in the font, either at a font-wide level or per glyph, and the app may use them +/// to tell DWrite which formats to return when splitting a color glyph run. +/// +enum DWRITE_GLYPH_IMAGE_FORMATS +{ + /// + /// Indicates no data is available for this glyph. + /// + DWRITE_GLYPH_IMAGE_FORMATS_NONE = 0x00000000, + + /// + /// The glyph has TrueType outlines. + /// + DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE = 0x00000001, + + /// + /// The glyph has CFF outlines. + /// + DWRITE_GLYPH_IMAGE_FORMATS_CFF = 0x00000002, + + /// + /// The glyph has multilayered COLR data. + /// + DWRITE_GLYPH_IMAGE_FORMATS_COLR = 0x00000004, + + /// + /// The glyph has SVG outlines as standard XML. + /// + /// + /// Fonts may store the content gzip'd rather than plain text, + /// indicated by the first two bytes as gzip header {0x1F 0x8B}. + /// + DWRITE_GLYPH_IMAGE_FORMATS_SVG = 0x00000008, + + /// + /// The glyph has PNG image data, with standard PNG IHDR. + /// + DWRITE_GLYPH_IMAGE_FORMATS_PNG = 0x00000010, + + /// + /// The glyph has JPEG image data, with standard JIFF SOI header. + /// + DWRITE_GLYPH_IMAGE_FORMATS_JPEG = 0x00000020, + + /// + /// The glyph has TIFF image data. + /// + DWRITE_GLYPH_IMAGE_FORMATS_TIFF = 0x00000040, + + /// + /// The glyph has raw 32-bit premultiplied BGRA data. + /// + DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8 = 0x00000080, + + /// + /// The glyph is represented by a tree of paint elements in the + /// font's COLR table. + /// + DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE = 0x00000100, +}; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_GLYPH_IMAGE_FORMATS); +#endif + +#define DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE_DEFINED + +#endif + +/// +/// Qualifies how alpha is to be treated in a bitmap or render target containing +/// alpha. +/// +typedef enum D2D1_ALPHA_MODE +{ + + /// + /// Alpha mode should be determined implicitly. Some target surfaces do not supply + /// or imply this information in which case alpha must be specified. + /// + D2D1_ALPHA_MODE_UNKNOWN = 0, + + /// + /// Treat the alpha as premultipled. + /// + D2D1_ALPHA_MODE_PREMULTIPLIED = 1, + + /// + /// Opacity is in the 'A' component only. + /// + D2D1_ALPHA_MODE_STRAIGHT = 2, + + /// + /// Ignore any alpha channel information. + /// + D2D1_ALPHA_MODE_IGNORE = 3, + + D2D1_ALPHA_MODE_FORCE_DWORD = 0xffffffff + +} D2D1_ALPHA_MODE; + +/// +/// Description of a pixel format. +/// +typedef struct D2D1_PIXEL_FORMAT +{ + DXGI_FORMAT format; + D2D1_ALPHA_MODE alphaMode; + +} D2D1_PIXEL_FORMAT; + +/// +/// Represents an x-coordinate and y-coordinate pair in two-dimensional space. +/// +typedef struct D2D_POINT_2U +{ + UINT32 x; + UINT32 y; + +} D2D_POINT_2U; + +/// +/// Represents an x-coordinate and y-coordinate pair in two-dimensional space. +/// +typedef struct D2D_POINT_2F +{ + FLOAT x; + FLOAT y; + +} D2D_POINT_2F; + +typedef POINT D2D_POINT_2L; + +/// +/// A vector of 2 FLOAT values (x, y). +/// +typedef struct D2D_VECTOR_2F +{ + FLOAT x; + FLOAT y; + +} D2D_VECTOR_2F; + + +/// +/// A vector of 3 FLOAT values (x, y, z). +/// +typedef struct D2D_VECTOR_3F +{ + FLOAT x; + FLOAT y; + FLOAT z; + +} D2D_VECTOR_3F; + + +/// +/// A vector of 4 FLOAT values (x, y, z, w). +/// +typedef struct D2D_VECTOR_4F +{ + FLOAT x; + FLOAT y; + FLOAT z; + FLOAT w; + +} D2D_VECTOR_4F; + + +/// +/// Represents a rectangle defined by the coordinates of the upper-left corner +/// (left, top) and the coordinates of the lower-right corner (right, bottom). +/// +typedef struct D2D_RECT_F +{ + FLOAT left; + FLOAT top; + FLOAT right; + FLOAT bottom; + +} D2D_RECT_F; + + +/// +/// Represents a rectangle defined by the coordinates of the upper-left corner +/// (left, top) and the coordinates of the lower-right corner (right, bottom). +/// +typedef struct D2D_RECT_U +{ + UINT32 left; + UINT32 top; + UINT32 right; + UINT32 bottom; + +} D2D_RECT_U; + +typedef RECT D2D_RECT_L; + +/// +/// Stores an ordered pair of floats, typically the width and height of a rectangle. +/// +typedef struct D2D_SIZE_F +{ + FLOAT width; + FLOAT height; + +} D2D_SIZE_F; + + +/// +/// Stores an ordered pair of integers, typically the width and height of a +/// rectangle. +/// +typedef struct D2D_SIZE_U +{ + UINT32 width; + UINT32 height; + +} D2D_SIZE_U; + + +/// +/// Represents a 3-by-2 matrix. +/// +typedef struct D2D_MATRIX_3X2_F +{ + union + { + struct + { + /// + /// Horizontal scaling / cosine of rotation + /// + FLOAT m11; + + /// + /// Vertical shear / sine of rotation + /// + FLOAT m12; + + /// + /// Horizontal shear / negative sine of rotation + /// + FLOAT m21; + + /// + /// Vertical scaling / cosine of rotation + /// + FLOAT m22; + + /// + /// Horizontal shift (always orthogonal regardless of rotation) + /// + FLOAT dx; + + /// + /// Vertical shift (always orthogonal regardless of rotation) + /// + FLOAT dy; + } DUMMYSTRUCTNAME; + + struct + { + FLOAT _11, _12; + FLOAT _21, _22; + FLOAT _31, _32; + } DUMMYSTRUCTNAME2; + + FLOAT m[3][2]; + } DUMMYUNIONNAME; + +} D2D_MATRIX_3X2_F; + + + +/// +/// Represents a 4-by-3 matrix. +/// +typedef struct D2D_MATRIX_4X3_F +{ + union + { + struct + { + FLOAT _11, _12, _13; + FLOAT _21, _22, _23; + FLOAT _31, _32, _33; + FLOAT _41, _42, _43; + } DUMMYSTRUCTNAME; + + FLOAT m[4][3]; + } DUMMYUNIONNAME; + +} D2D_MATRIX_4X3_F; + + +/// +/// Represents a 4-by-4 matrix. +/// +typedef struct D2D_MATRIX_4X4_F +{ + union + { + struct + { + FLOAT _11, _12, _13, _14; + FLOAT _21, _22, _23, _24; + FLOAT _31, _32, _33, _34; + FLOAT _41, _42, _43, _44; + } DUMMYSTRUCTNAME; + + FLOAT m[4][4]; + } DUMMYUNIONNAME; + +} D2D_MATRIX_4X4_F; + + +/// +/// Represents a 5-by-4 matrix. +/// +typedef struct D2D_MATRIX_5X4_F +{ + union + { + struct + { + FLOAT _11, _12, _13, _14; + FLOAT _21, _22, _23, _24; + FLOAT _31, _32, _33, _34; + FLOAT _41, _42, _43, _44; + FLOAT _51, _52, _53, _54; + } DUMMYSTRUCTNAME; + + FLOAT m[5][4]; + } DUMMYUNIONNAME; + +} D2D_MATRIX_5X4_F; + + +typedef D2D_POINT_2F D2D1_POINT_2F; +typedef D2D_POINT_2U D2D1_POINT_2U; +typedef D2D_POINT_2L D2D1_POINT_2L; +typedef D2D_RECT_F D2D1_RECT_F; +typedef D2D_RECT_U D2D1_RECT_U; +typedef D2D_RECT_L D2D1_RECT_L; +typedef D2D_SIZE_F D2D1_SIZE_F; +typedef D2D_SIZE_U D2D1_SIZE_U; +typedef D2D_MATRIX_3X2_F D2D1_MATRIX_3X2_F; + + +#pragma warning(pop) + +#endif /* DCOMMON_H_INCLUDED */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcomp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcomp.h new file mode 100644 index 0000000000000000000000000000000000000000..6a7d19dbbd8486fba8551f7b825fbd546217c237 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcomp.h @@ -0,0 +1,2529 @@ +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +//--------------------------------------------------------------------------- +#pragma once + +#include // for D2D_MATRIX_3X2_F +#ifndef D3DMATRIX_DEFINED +#include // for D3DMATRIX +#endif +#include // for D2D1_COMPOSITE_MODE +#include + +#include // for CompositionSurfaceType +#include // for IDirectCompositionAnimation interface + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +typedef interface IDCompositionAffineTransform2DEffect IDCompositionAffineTransform2DEffect; +typedef interface IDCompositionAnimation IDCompositionAnimation; +typedef interface IDCompositionArithmeticCompositeEffect IDCompositionArithmeticCompositeEffect; +typedef interface IDCompositionBlendEffect IDCompositionBlendEffect; +typedef interface IDCompositionBrightnessEffect IDCompositionBrightnessEffect; +typedef interface IDCompositionClip IDCompositionClip; +typedef interface IDCompositionColorMatrixEffect IDCompositionColorMatrixEffect; +typedef interface IDCompositionCompositeEffect IDCompositionCompositeEffect; +typedef interface IDCompositionDevice IDCompositionDevice; +typedef interface IDCompositionEffect IDCompositionEffect; +typedef interface IDCompositionEffectGroup IDCompositionEffectGroup; +typedef interface IDCompositionFilterEffect IDCompositionFilterEffect; +typedef interface IDCompositionGaussianBlurEffect IDCompositionGaussianBlurEffect; +typedef interface IDCompositionHueRotationEffect IDCompositionHueRotationEffect; +typedef interface IDCompositionLinearTransferEffect IDCompositionLinearTransferEffect; +typedef interface IDCompositionMatrixTransform IDCompositionMatrixTransform; +typedef interface IDCompositionMatrixTransform3D IDCompositionMatrixTransform3D; +typedef interface IDCompositionRectangleClip IDCompositionRectangleClip; +typedef interface IDCompositionRotateTransform IDCompositionRotateTransform; +typedef interface IDCompositionRotateTransform3D IDCompositionRotateTransform3D; +typedef interface IDCompositionSaturationEffect IDCompositionSaturationEffect; +typedef interface IDCompositionScaleTransform IDCompositionScaleTransform; +typedef interface IDCompositionScaleTransform3D IDCompositionScaleTransform3D; +typedef interface IDCompositionShadowEffect IDCompositionShadowEffect; +typedef interface IDCompositionSkewTransform IDCompositionSkewTransform; +typedef interface IDCompositionSurface IDCompositionSurface; +typedef interface IDCompositionTableTransferEffect IDCompositionTableTransferEffect; +typedef interface IDCompositionTarget IDCompositionTarget; +typedef interface IDCompositionTransform IDCompositionTransform; +typedef interface IDCompositionTransform3D IDCompositionTransform3D; +typedef interface IDCompositionTranslateTransform IDCompositionTranslateTransform; +typedef interface IDCompositionTranslateTransform3D IDCompositionTranslateTransform3D; +typedef interface IDCompositionTurbulenceEffect IDCompositionTurbulenceEffect; +typedef interface IDCompositionVirtualSurface IDCompositionVirtualSurface; +typedef interface IDCompositionVisual IDCompositionVisual; + +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionCreateDevice +// +// Synopsis: +// Creates a new DirectComposition device object, which can be used to create +// other DirectComposition objects. +// +//------------------------------------------------------------------------------ +STDAPI DCompositionCreateDevice( + _In_opt_ IDXGIDevice *dxgiDevice, + _In_ REFIID iid, + _Outptr_ void **dcompositionDevice + ); + +#if (_WIN32_WINNT >= _WIN32_WINNT_WINBLUE) +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionCreateDevice2 +// +// Synopsis: +// Creates a new DirectComposition device object, which can be used to create +// other DirectComposition objects. +// +//------------------------------------------------------------------------------ +STDAPI DCompositionCreateDevice2( + _In_opt_ IUnknown *renderingDevice, + _In_ REFIID iid, + _Outptr_ void **dcompositionDevice + ); +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WINBLUE) + +#if (_WIN32_WINNT >= _WIN32_WINNT_WINTHRESHOLD) +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionCreateDevice3 +// +// Synopsis: +// Creates a new DirectComposition device object, which can be used to create +// other DirectComposition objects. +// +//------------------------------------------------------------------------------ +STDAPI DCompositionCreateDevice3( + _In_opt_ IUnknown *renderingDevice, + _In_ REFIID iid, + _Outptr_ void **dcompositionDevice + ); + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WINTHRESHOLD) + +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionCreateSurfaceHandle +// +// Synopsis: +// Creates a new composition surface object, which can be bound to a +// DirectX swap chain or swap buffer or to a GDI bitmap and associated +// with a visual. +// +//------------------------------------------------------------------------------ +STDAPI DCompositionCreateSurfaceHandle( + _In_ DWORD desiredAccess, + _In_opt_ SECURITY_ATTRIBUTES *securityAttributes, + _Out_ HANDLE *surfaceHandle + ); + +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionAttachMouseWheelToHwnd +// +// Synopsis: +// Creates an Interaction/InputSink to route mouse wheel messages to the +// given HWND. After calling this API, the device owning the visual must +// be committed. +// +//------------------------------------------------------------------------------ +STDAPI DCompositionAttachMouseWheelToHwnd( + _In_ IDCompositionVisual* visual, + _In_ HWND hwnd, + _In_ BOOL enable + ); + +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionAttachMouseDragToHwnd +// +// Synopsis: +// Creates an Interaction/InputSink to route mouse button down and any +// subsequent move and up events to the given HWND. There is no move +// thresholding; when enabled, all events including and following the down +// are unconditionally redirected to the specified window. After calling this +// API, the device owning the visual must be committed. +// +//------------------------------------------------------------------------------ +STDAPI DCompositionAttachMouseDragToHwnd( + _In_ IDCompositionVisual* visual, + _In_ HWND hwnd, + _In_ BOOL enable + ); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + + +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionGetCurrentFrameId +// +// Synopsis: +// Returns the frameId of the most recently started composition frame. +// +//------------------------------------------------------------------------------ +STDAPI DCompositionGetFrameId( + _In_ COMPOSITION_FRAME_ID_TYPE frameIdType, + _Out_ COMPOSITION_FRAME_ID* frameId); + +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionGetStatistics +// +// Synopsis: +// Returns statistics for the requested frame, as well as an optional list +// of all target ids that existed at that time. +// +//------------------------------------------------------------------------------ +STDAPI DCompositionGetStatistics( + _In_ COMPOSITION_FRAME_ID frameId, + _Out_ COMPOSITION_FRAME_STATS* frameStats, + _In_ UINT targetIdCount, + _Out_writes_opt_(targetCount) COMPOSITION_TARGET_ID* targetIds, + _Out_opt_ UINT* actualTargetIdCount); + +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionGetCompositorStatistics +// +// Synopsis: +// Returns compositor target statistics for the requested frame. +// +//------------------------------------------------------------------------------ +STDAPI DCompositionGetTargetStatistics( + _In_ COMPOSITION_FRAME_ID frameId, + _In_ const COMPOSITION_TARGET_ID* targetId, + _Out_ COMPOSITION_TARGET_STATS* targetStats); + +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionBoostCompositorClock +// +// Synopsis: +// Requests compositor to temporarily increase framerate. +// +//------------------------------------------------------------------------------ +STDAPI DCompositionBoostCompositorClock( + _In_ BOOL enable); + +//+----------------------------------------------------------------------------- +// +// Function: +// DCompositionWaitForCompositorClock +// +// Synopsis: +// Waits for a compositor clock tick, other events, or a timeout. +// +//------------------------------------------------------------------------------ +STDAPI_(DWORD) DCompositionWaitForCompositorClock( + _In_range_(0, DCOMPOSITION_MAX_WAITFORCOMPOSITORCLOCK_OBJECTS) UINT count, + _In_reads_opt_(count) const HANDLE* handles, + _In_ DWORD timeoutInMs); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionDevice +// +// Synopsis: +// Serves as the root factory for all other DirectComposition objects and +// controls transactional composition. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionDevice +DECLARE_INTERFACE_IID_(IDCompositionDevice, IUnknown, "C37EA93A-E7AA-450D-B16F-9746CB0407F3") +{ + // Commits all DirectComposition commands pending on this device. + STDMETHOD(Commit)(THIS + ) PURE; + + // Waits for the last Commit to be processed by the composition engine + STDMETHOD(WaitForCommitCompletion)(THIS + ) PURE; + + // Gets timing information about the composition engine. + STDMETHOD(GetFrameStatistics)(THIS_ + _Out_ DCOMPOSITION_FRAME_STATISTICS *statistics + ) PURE; + + // Creates a composition target bound to a window represented by an HWND. + STDMETHOD(CreateTargetForHwnd)(THIS_ + _In_ HWND hwnd, + BOOL topmost, + _Outptr_ IDCompositionTarget **target + ) PURE; + + // Creates a new visual object. + STDMETHOD(CreateVisual)(THIS_ + _Outptr_ IDCompositionVisual **visual + ) PURE; + + // Creates a DirectComposition surface object + STDMETHOD(CreateSurface)(THIS_ + _In_ UINT width, + _In_ UINT height, + _In_ DXGI_FORMAT pixelFormat, + _In_ DXGI_ALPHA_MODE alphaMode, + _Outptr_ IDCompositionSurface **surface + ) PURE; + + // Creates a DirectComposition virtual surface object + STDMETHOD(CreateVirtualSurface)(THIS_ + _In_ UINT initialWidth, + _In_ UINT initialHeight, + _In_ DXGI_FORMAT pixelFormat, + _In_ DXGI_ALPHA_MODE alphaMode, + _Outptr_ IDCompositionVirtualSurface **virtualSurface + ) PURE; + + // Creates a surface wrapper around a pre-existing surface that can be associated with one or more visuals for composition. + STDMETHOD(CreateSurfaceFromHandle)(THIS_ + _In_ HANDLE handle, + _Outptr_ IUnknown **surface + ) PURE; + + // Creates a wrapper object that represents the rasterization of a layered window and which can be associated with a visual for composition. + STDMETHOD(CreateSurfaceFromHwnd)(THIS_ + _In_ HWND hwnd, + _Outptr_ IUnknown **surface + ) PURE; + + // Creates a 2D translation transform object. + STDMETHOD(CreateTranslateTransform)(THIS_ + _Outptr_ IDCompositionTranslateTransform **translateTransform + ) PURE; + + // Creates a 2D scale transform object. + STDMETHOD(CreateScaleTransform)(THIS_ + _Outptr_ IDCompositionScaleTransform **scaleTransform + ) PURE; + + // Creates a 2D rotation transform object. + STDMETHOD(CreateRotateTransform)(THIS_ + _Outptr_ IDCompositionRotateTransform **rotateTransform + ) PURE; + + // Creates a 2D skew transform object. + STDMETHOD(CreateSkewTransform)(THIS_ + _Outptr_ IDCompositionSkewTransform **skewTransform + ) PURE; + + // Creates a 2D 3x2 matrix transform object. + STDMETHOD(CreateMatrixTransform)(THIS_ + _Outptr_ IDCompositionMatrixTransform **matrixTransform + ) PURE; + + // Creates a 2D transform object that holds an array of 2D transform objects. + STDMETHOD(CreateTransformGroup)(THIS_ + _In_reads_(elements) IDCompositionTransform **transforms, + UINT elements, + _Outptr_ IDCompositionTransform **transformGroup + ) PURE; + + // Creates a 3D translation transform object. + STDMETHOD(CreateTranslateTransform3D)(THIS_ + _Outptr_ IDCompositionTranslateTransform3D **translateTransform3D + ) PURE; + + // Creates a 3D scale transform object. + STDMETHOD(CreateScaleTransform3D)(THIS_ + _Outptr_ IDCompositionScaleTransform3D **scaleTransform3D + ) PURE; + + // Creates a 3D rotation transform object. + STDMETHOD(CreateRotateTransform3D)(THIS_ + _Outptr_ IDCompositionRotateTransform3D **rotateTransform3D + ) PURE; + + // Creates a 3D 4x4 matrix transform object. + STDMETHOD(CreateMatrixTransform3D)(THIS_ + _Outptr_ IDCompositionMatrixTransform3D **matrixTransform3D + ) PURE; + + // Creates a 3D transform object that holds an array of 3D transform objects. + STDMETHOD(CreateTransform3DGroup)(THIS_ + _In_reads_(elements) IDCompositionTransform3D **transforms3D, + UINT elements, + _Outptr_ IDCompositionTransform3D **transform3DGroup + ) PURE; + + // Creates an effect group + STDMETHOD(CreateEffectGroup)(THIS_ + _Outptr_ IDCompositionEffectGroup **effectGroup + ) PURE; + + // Creates a clip object that can be used to clip the contents of a visual subtree. + STDMETHOD(CreateRectangleClip)(THIS_ + _Outptr_ IDCompositionRectangleClip **clip + ) PURE; + + // Creates an animation object + STDMETHOD(CreateAnimation)(THIS_ + _Outptr_ IDCompositionAnimation **animation + ) PURE; + + // Returns the states of the app's DX device and DWM's dx devices + STDMETHOD(CheckDeviceState)(THIS_ + _Out_ BOOL *pfValid + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionTarget +// +// Synopsis: +// An IDCompositionTarget interface represents a binding between a +// DirectComposition visual tree and a destination on top of which the +// visual tree should be composed. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionTarget +DECLARE_INTERFACE_IID_(IDCompositionTarget, IUnknown, "eacdd04c-117e-4e17-88f4-d1b12b0e3d89") +{ + // Sets the root visual + STDMETHOD(SetRoot)(THIS_ + _In_opt_ IDCompositionVisual* visual + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionVisual +// +// Synopsis: +// An IDCompositionVisual interface represents a visual that participates in +// a visual tree. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionVisual +DECLARE_INTERFACE_IID_(IDCompositionVisual, IUnknown, "4d93059d-097b-4651-9a60-f0f25116e2f3") +{ + // Changes the value of OffsetX property + STDMETHOD(SetOffsetX)(THIS_ + float offsetX + ) PURE; + + // Animates the value of the OffsetX property. + STDMETHOD(SetOffsetX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of OffsetY property + STDMETHOD(SetOffsetY)(THIS_ + float offsetY + ) PURE; + + // Animates the value of the OffsetY property. + STDMETHOD(SetOffsetY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Sets the matrix that modifies the coordinate system of this visual. + STDMETHOD(SetTransform)(THIS_ + const D2D_MATRIX_3X2_F& matrix + ) PURE; + + // Sets the transformation object that modifies the coordinate system of this visual. + STDMETHOD(SetTransform)(THIS_ + _In_opt_ IDCompositionTransform* transform + ) PURE; + + // Sets the visual that should act as this visual's parent for the + // purpose of establishing a base coordinate system. + STDMETHOD(SetTransformParent)(THIS_ + _In_opt_ IDCompositionVisual *visual + ) PURE; + + // Sets the effect object that is applied during the rendering of this visual + STDMETHOD(SetEffect)(THIS_ + _In_opt_ IDCompositionEffect *effect + ) PURE; + + // Sets the mode to use when interpolating pixels from bitmaps drawn not + // exactly at scale and axis-aligned. + STDMETHOD(SetBitmapInterpolationMode)(THIS_ + _In_ DCOMPOSITION_BITMAP_INTERPOLATION_MODE interpolationMode + ) PURE; + + // Sets the mode to use when drawing the edge of bitmaps that are not + // exactly axis-aligned and at precise pixel boundaries. + STDMETHOD(SetBorderMode)(THIS_ + _In_ DCOMPOSITION_BORDER_MODE borderMode + ) PURE; + + // Sets the clip object that restricts the rendering of this visual to a D2D rectangle. + STDMETHOD(SetClip)(THIS_ + const D2D_RECT_F& rect + ) PURE; + + // Sets the clip object that restricts the rendering of this visual to a rectangle. + STDMETHOD(SetClip)(THIS_ + _In_opt_ IDCompositionClip* clip + ) PURE; + + // Associates a bitmap with a visual + STDMETHOD(SetContent)(THIS_ + _In_opt_ IUnknown *content + ) PURE; + + // Adds a visual to the children list of another visual. + STDMETHOD(AddVisual)(THIS_ + _In_ IDCompositionVisual* visual, + BOOL insertAbove, + _In_opt_ IDCompositionVisual* referenceVisual + ) PURE; + + // Removes a visual from the children list of another visual. + STDMETHOD(RemoveVisual)(THIS_ + _In_ IDCompositionVisual* visual + ) PURE; + + // Removes all visuals from the children list of another visual. + STDMETHOD(RemoveAllVisuals)(THIS_ + ) PURE; + + // Sets the mode to use when composing the bitmap against the render target. + STDMETHOD(SetCompositeMode)(THIS_ + _In_ DCOMPOSITION_COMPOSITE_MODE compositeMode + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionEffect +// +// Synopsis: +// An IDCompositionEffect interface represents an effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionEffect +DECLARE_INTERFACE_IID_(IDCompositionEffect, IUnknown, "EC81B08F-BFCB-4e8d-B193-A915587999E8") +{ +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionTransform3D +// +// Synopsis: +// An IDCompositionTransform3D interface represents a 3D transformation. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionTransform3D +DECLARE_INTERFACE_IID_(IDCompositionTransform3D, IDCompositionEffect, "71185722-246B-41f2-AAD1-0443F7F4BFC2") +{ +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionTransform +// +// Synopsis: +// An IDCompositionTransform interface represents a 2D transformation that +// can be used to modify the coordinate space of a visual subtree. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionTransform +DECLARE_INTERFACE_IID_(IDCompositionTransform, IDCompositionTransform3D, "FD55FAA7-37E0-4c20-95D2-9BE45BC33F55") +{ +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionTranslateTransform +// +// Synopsis: +// An IDCompositionTranslateTransform interface represents a 2D transformation +// that affects only the offset of a visual along the x and y axes. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionTranslateTransform +DECLARE_INTERFACE_IID_(IDCompositionTranslateTransform, IDCompositionTransform, "06791122-C6F0-417d-8323-269E987F5954") +{ + // Changes the value of the OffsetX property. + STDMETHOD(SetOffsetX)(THIS_ + float offsetX + ) PURE; + + // Animates the value of the OffsetX property. + STDMETHOD(SetOffsetX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the OffsetY property. + STDMETHOD(SetOffsetY)(THIS_ + float offsetY + ) PURE; + + // Animates the value of the OffsetY property. + STDMETHOD(SetOffsetY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionScaleTransform +// +// Synopsis: +// An IDCompositionScaleTransform interface represents a 2D transformation that +// affects the scale of a visual along the x and y axes. The coordinate system +// is scaled from the specified center point. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionScaleTransform +DECLARE_INTERFACE_IID_(IDCompositionScaleTransform, IDCompositionTransform, "71FDE914-40EF-45ef-BD51-68B037C339F9") +{ + // Changes the value of the ScaleX property. + STDMETHOD(SetScaleX)(THIS_ + float scaleX + ) PURE; + + // Animates the value of the ScaleX property. + STDMETHOD(SetScaleX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the ScaleY property. + STDMETHOD(SetScaleY)(THIS_ + float scaleY + ) PURE; + + // Animates the value of the ScaleY property. + STDMETHOD(SetScaleY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterX property. + STDMETHOD(SetCenterX)(THIS_ + float centerX + ) PURE; + + // Animates the value of the CenterX property. + STDMETHOD(SetCenterX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterY property. + STDMETHOD(SetCenterY)(THIS_ + float centerY + ) PURE; + + // Animates the value of the CenterY property. + STDMETHOD(SetCenterY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionRotateTransform +// +// Synopsis: +// An IDCompositionRotateTransform interface represents a 2D transformation +// that affects the rotation of a visual along the z axis. The coordinate system +// is rotated around the specified center point. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionRotateTransform +DECLARE_INTERFACE_IID_(IDCompositionRotateTransform, IDCompositionTransform, "641ED83C-AE96-46c5-90DC-32774CC5C6D5") +{ + // Changes the value of the Angle property. + STDMETHOD(SetAngle)(THIS_ + float angle + ) PURE; + + // Animates the value of the Angle property. + STDMETHOD(SetAngle)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterX property. + STDMETHOD(SetCenterX)(THIS_ + float centerX + ) PURE; + + // Animates the value of the CenterX property. + STDMETHOD(SetCenterX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterY property. + STDMETHOD(SetCenterY)(THIS_ + float centerY + ) PURE; + + // Animates the value of the CenterY property. + STDMETHOD(SetCenterY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionSkewTransform +// +// Synopsis: +// An IDCompositionSkewTransform interface represents a 2D transformation that +// affects the skew of a visual along the x and y axes. The coordinate system +// is skewed around the specified center point. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionSkewTransform +DECLARE_INTERFACE_IID_(IDCompositionSkewTransform, IDCompositionTransform, "E57AA735-DCDB-4c72-9C61-0591F58889EE") +{ + // Changes the value of the AngleX property. + STDMETHOD(SetAngleX)(THIS_ + float angleX + ) PURE; + + // Animates the value of the AngleX property. + STDMETHOD(SetAngleX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the AngleY property. + STDMETHOD(SetAngleY)(THIS_ + float angleY + ) PURE; + + // Animates the value of the AngleY property. + STDMETHOD(SetAngleY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterX property. + STDMETHOD(SetCenterX)(THIS_ + float centerX + ) PURE; + + // Animates the value of the CenterX property. + STDMETHOD(SetCenterX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterY property. + STDMETHOD(SetCenterY)(THIS_ + float centerY + ) PURE; + + // Animates the value of the CenterY property. + STDMETHOD(SetCenterY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionMatrixTransform +// +// Synopsis: +// An IDCompositionMatrixTransform interface represents an arbitrary affine +// 2D transformation defined by a 3x2 matrix. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionMatrixTransform +DECLARE_INTERFACE_IID_(IDCompositionMatrixTransform, IDCompositionTransform, "16CDFF07-C503-419c-83F2-0965C7AF1FA6") +{ + // Changes all values of the matrix of this transform. + STDMETHOD(SetMatrix)(THIS_ + const D2D_MATRIX_3X2_F& matrix + ) PURE; + + // Changes a single element of the matrix of this transform. + STDMETHOD(SetMatrixElement)(THIS_ + _In_ int row, + _In_ int column, + _In_ float value + ) PURE; + + // Animates a single element of the matrix of this transform. + STDMETHOD(SetMatrixElement)(THIS_ + _In_ int row, + _In_ int column, + _In_ IDCompositionAnimation *animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionEffectGroup +// +// Synopsis: +// An IDCompositionEffectGroup holds effects, inluding 3D transforms that can +// be applied to a visual. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionEffectGroup +DECLARE_INTERFACE_IID_(IDCompositionEffectGroup, IDCompositionEffect, "A7929A74-E6B2-4bd6-8B95-4040119CA34D") +{ + // Changes the opacity property. + STDMETHOD(SetOpacity)(THIS_ + float opacity + ) PURE; + + // Animates the opacity property + STDMETHOD(SetOpacity)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Sets the 3D transform + STDMETHOD(SetTransform3D)(THIS_ + _In_opt_ IDCompositionTransform3D* transform3D + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionTranslateTransform3D +// +// Synopsis: +// An IDCompositionTranslateTransform3D interface represents a 3D transformation +// that affects the offset of a visual along the x,y and z axes. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionTranslateTransform3D +DECLARE_INTERFACE_IID_(IDCompositionTranslateTransform3D, IDCompositionTransform3D, "91636D4B-9BA1-4532-AAF7-E3344994D788") +{ + // Changes the value of the OffsetX property. + STDMETHOD(SetOffsetX)(THIS_ + float offsetX + ) PURE; + + // Animates the value of the OffsetX property. + STDMETHOD(SetOffsetX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the OffsetY property. + STDMETHOD(SetOffsetY)(THIS_ + float offsetY + ) PURE; + + // Animates the value of the OffsetY property. + STDMETHOD(SetOffsetY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the OffsetZ property. + STDMETHOD(SetOffsetZ)(THIS_ + float offsetZ + ) PURE; + + // Animates the value of the OffsetZ property. + STDMETHOD(SetOffsetZ)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionScaleTransform3D +// +// Synopsis: +// An IDCompositionScaleTransform3D interface represents a 3D transformation that +// affects the scale of a visual along the x, y and z axes. The coordinate system +// is scaled from the specified center point. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionScaleTransform3D +DECLARE_INTERFACE_IID_(IDCompositionScaleTransform3D, IDCompositionTransform3D, "2A9E9EAD-364B-4b15-A7C4-A1997F78B389") +{ + // Changes the value of the ScaleX property. + STDMETHOD(SetScaleX)(THIS_ + float scaleX + ) PURE; + + // Animates the value of the ScaleX property. + STDMETHOD(SetScaleX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the ScaleY property. + STDMETHOD(SetScaleY)(THIS_ + float scaleY + ) PURE; + + // Animates the value of the ScaleY property. + STDMETHOD(SetScaleY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the ScaleZ property. + STDMETHOD(SetScaleZ)(THIS_ + float scaleZ + ) PURE; + + // Animates the value of the ScaleZ property. + STDMETHOD(SetScaleZ)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterX property. + STDMETHOD(SetCenterX)(THIS_ + float centerX + ) PURE; + + // Animates the value of the CenterX property. + STDMETHOD(SetCenterX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterY property. + STDMETHOD(SetCenterY)(THIS_ + float centerY + ) PURE; + + // Animates the value of the CenterY property. + STDMETHOD(SetCenterY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterZ property. + STDMETHOD(SetCenterZ)(THIS_ + float centerZ + ) PURE; + + // Animates the value of the CenterZ property. + STDMETHOD(SetCenterZ)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionRotateTransform3D +// +// Synopsis: +// An IDCompositionRotateTransform3D interface represents a 3D transformation +// that affects the rotation of a visual along the specified axis at the +// specified center point. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionRotateTransform3D +DECLARE_INTERFACE_IID_(IDCompositionRotateTransform3D, IDCompositionTransform3D, "D8F5B23F-D429-4a91-B55A-D2F45FD75B18") +{ + // Changes the value of the Angle property. + STDMETHOD(SetAngle)(THIS_ + float angle + ) PURE; + + // Animates the value of the Angle property. + STDMETHOD(SetAngle)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the AxisX property. + STDMETHOD(SetAxisX)(THIS_ + float axisX + ) PURE; + + // Animates the value of the AxisX property. + STDMETHOD(SetAxisX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the AxisY property. + STDMETHOD(SetAxisY)(THIS_ + float axisY + ) PURE; + + // Animates the value of the AxisY property. + STDMETHOD(SetAxisY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the AxisZ property. + STDMETHOD(SetAxisZ)(THIS_ + float axisZ + ) PURE; + + // Animates the value of the AxisZ property. + STDMETHOD(SetAxisZ)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterX property. + STDMETHOD(SetCenterX)(THIS_ + float centerX + ) PURE; + + // Animates the value of the CenterX property. + STDMETHOD(SetCenterX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterY property. + STDMETHOD(SetCenterY)(THIS_ + float centerY + ) PURE; + + // Animates the value of the CenterY property. + STDMETHOD(SetCenterY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the CenterZ property. + STDMETHOD(SetCenterZ)(THIS_ + float centerZ + ) PURE; + + // Animates the value of the CenterZ property. + STDMETHOD(SetCenterZ)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionMatrixTransform3D +// +// Synopsis: +// An IDCompositionMatrixTransform3D interface represents an arbitrary +// 3D transformation defined by a 4x4 matrix. +// +//------------------------------------------------------------------------------ +#pragma warning(push) +#pragma warning(disable : 4995) // D3DMATRIX': name was marked as #pragma deprecated +#undef INTERFACE +#define INTERFACE IDCompositionMatrixTransform3D +DECLARE_INTERFACE_IID_(IDCompositionMatrixTransform3D, IDCompositionTransform3D, "4B3363F0-643B-41b7-B6E0-CCF22D34467C") +{ + // Changes all values of the matrix of this transform. + STDMETHOD(SetMatrix)(THIS_ + const D3DMATRIX& matrix + ) PURE; + + // Changes a single element of the matrix of this transform. + STDMETHOD(SetMatrixElement)(THIS_ + _In_ int row, + _In_ int column, + _In_ float value + ) PURE; + + // Animates a single element of the matrix of this transform. + STDMETHOD(SetMatrixElement)(THIS_ + _In_ int row, + _In_ int column, + _In_ IDCompositionAnimation *animation + ) PURE; +}; +#pragma warning(pop) + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionClip +// +// Synopsis: +// An IDCompositionClip interface represents a rectangle that restricts the +// rasterization of a visual subtree. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionClip +DECLARE_INTERFACE_IID_(IDCompositionClip, IUnknown, "64AC3703-9D3F-45ec-A109-7CAC0E7A13A7") +{ +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionRectangleClip +// +// Synopsis: +// An IDCompositionRectangleClip interface represents a rectangle that restricts +// the rasterization of a visual subtree. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionRectangleClip +DECLARE_INTERFACE_IID_(IDCompositionRectangleClip, IDCompositionClip, "9842AD7D-D9CF-4908-AED7-48B51DA5E7C2") +{ + // Changes the value of the Left property. + STDMETHOD(SetLeft)(THIS_ + float left + ) PURE; + + // Animates the value of the Left property. + STDMETHOD(SetLeft)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the Top property. + STDMETHOD(SetTop)(THIS_ + float top + ) PURE; + + // Animates the value of the Top property. + STDMETHOD(SetTop)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the Right property. + STDMETHOD(SetRight)(THIS_ + float right + ) PURE; + + // Animates the value of the Right property. + STDMETHOD(SetRight)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the Bottom property. + STDMETHOD(SetBottom)(THIS_ + float bottom + ) PURE; + + // Animates the value of the Bottom property. + STDMETHOD(SetBottom)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the x radius of the ellipse that rounds the + // top-left corner of the clip. + STDMETHOD(SetTopLeftRadiusX)(THIS_ + float radius + ) PURE; + + // Animates the value of the x radius of the ellipse that rounds the + // top-left corner of the clip. + STDMETHOD(SetTopLeftRadiusX)(THIS_ + _In_ IDCompositionAnimation *animation + ) PURE; + + // Changes the value of the y radius of the ellipse that rounds the + // top-left corner of the clip. + STDMETHOD(SetTopLeftRadiusY)(THIS_ + float radius + ) PURE; + + // Animates the value of the y radius of the ellipse that rounds the + // top-left corner of the clip. + STDMETHOD(SetTopLeftRadiusY)(THIS_ + _In_ IDCompositionAnimation *animation + ) PURE; + + // Changes the value of the x radius of the ellipse that rounds the + // top-right corner of the clip. + STDMETHOD(SetTopRightRadiusX)(THIS_ + float radius + ) PURE; + + // Animates the value of the x radius of the ellipse that rounds the + // top-right corner of the clip. + STDMETHOD(SetTopRightRadiusX)(THIS_ + _In_ IDCompositionAnimation *animation + ) PURE; + + // Changes the value of the y radius of the ellipse that rounds the + // top-right corner of the clip. + STDMETHOD(SetTopRightRadiusY)(THIS_ + float radius + ) PURE; + + // Animates the value of the y radius of the ellipse that rounds the + // top-right corner of the clip. + STDMETHOD(SetTopRightRadiusY)(THIS_ + _In_ IDCompositionAnimation *animation + ) PURE; + + // Changes the value of the x radius of the ellipse that rounds the + // bottom-left corner of the clip. + STDMETHOD(SetBottomLeftRadiusX)(THIS_ + float radius + ) PURE; + + // Animates the value of the x radius of the ellipse that rounds the + // bottom-left corner of the clip. + STDMETHOD(SetBottomLeftRadiusX)(THIS_ + _In_ IDCompositionAnimation *animation + ) PURE; + + // Changes the value of the y radius of the ellipse that rounds the + // bottom-left corner of the clip. + STDMETHOD(SetBottomLeftRadiusY)(THIS_ + float radius + ) PURE; + + // Animates the value of the y radius of the ellipse that rounds the + // bottom-left corner of the clip. + STDMETHOD(SetBottomLeftRadiusY)(THIS_ + _In_ IDCompositionAnimation *animation + ) PURE; + + // Changes the value of the x radius of the ellipse that rounds the + // bottom-right corner of the clip. + STDMETHOD(SetBottomRightRadiusX)(THIS_ + float radius + ) PURE; + + // Animates the value of the x radius of the ellipse that rounds the + // bottom-right corner of the clip. + STDMETHOD(SetBottomRightRadiusX)(THIS_ + _In_ IDCompositionAnimation *animation + ) PURE; + + // Changes the value of the y radius of the ellipse that rounds the + // bottom-right corner of the clip. + STDMETHOD(SetBottomRightRadiusY)(THIS_ + float radius + ) PURE; + + // Animates the value of the y radius of the ellipse that rounds the + // bottom-right corner of the clip. + STDMETHOD(SetBottomRightRadiusY)(THIS_ + _In_ IDCompositionAnimation *animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionSurface +// +// Synopsis: +// An IDCompositionSurface interface represents a wrapper around a DirectX +// object, or a sub-rectangle of one of those objects. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionSurface +DECLARE_INTERFACE_IID_(IDCompositionSurface, IUnknown, "BB8A4953-2C99-4F5A-96F5-4819027FA3AC") +{ + STDMETHOD(BeginDraw)(THIS_ + _In_opt_ const RECT *updateRect, + _In_ REFIID iid, + _Outptr_ void **updateObject, + _Out_ POINT *updateOffset + ) PURE; + + STDMETHOD(EndDraw)(THIS + ) PURE; + + STDMETHOD(SuspendDraw)(THIS + ) PURE; + + STDMETHOD(ResumeDraw)(THIS + ) PURE; + + STDMETHOD(Scroll)(THIS_ + _In_opt_ const RECT *scrollRect, + _In_opt_ const RECT *clipRect, + _In_ int offsetX, + _In_ int offsetY + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionVirtualSurface +// +// Synopsis: +// An IDCompositionVirtualSurface interface represents a sparsely +// allocated surface. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionVirtualSurface +DECLARE_INTERFACE_IID_(IDCompositionVirtualSurface, IDCompositionSurface, "AE471C51-5F53-4A24-8D3E-D0C39C30B3F0") +{ + STDMETHOD(Resize)(THIS_ + _In_ UINT width, + _In_ UINT height + ) PURE; + + STDMETHOD(Trim)(THIS_ + _In_reads_opt_(count) const RECT *rectangles, + _In_ UINT count + ) PURE; +}; + +#if (_WIN32_WINNT >= _WIN32_WINNT_WINBLUE) +typedef interface IDCompositionDesktopDevice IDCompositionDesktopDevice; +typedef interface IDCompositionDevice2 IDCompositionDevice2; +typedef interface IDCompositionDeviceDebug IDCompositionDeviceDebug; +typedef interface IDCompositionSurfaceFactory IDCompositionSurfaceFactory; +typedef interface IDCompositionVisual2 IDCompositionVisual2; +typedef interface IDCompositionVisualDebug IDCompositionVisualDebug; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionDevice2 +// +// Synopsis: +// Serves as the root factory for all other DirectComposition2 objects and +// controls transactional composition. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionDevice2 +DECLARE_INTERFACE_IID_(IDCompositionDevice2, IUnknown, "75F6468D-1B8E-447C-9BC6-75FEA80B5B25") +{ + // Commits all DirectComposition commands pending on this device. + STDMETHOD(Commit)(THIS + ) PURE; + + // Waits for the last Commit to be processed by the composition engine + STDMETHOD(WaitForCommitCompletion)(THIS + ) PURE; + + // Gets timing information about the composition engine. + STDMETHOD(GetFrameStatistics)(THIS_ + _Out_ DCOMPOSITION_FRAME_STATISTICS *statistics + ) PURE; + + // Creates a new visual object. + STDMETHOD(CreateVisual)(THIS_ + _Outptr_ IDCompositionVisual2 **visual + ) PURE; + + // Creates a factory for surface objects + STDMETHOD(CreateSurfaceFactory)(THIS_ + _In_ IUnknown *renderingDevice, + _Outptr_ IDCompositionSurfaceFactory **surfaceFactory + ) PURE; + + // Creates a DirectComposition surface object + STDMETHOD(CreateSurface)(THIS_ + _In_ UINT width, + _In_ UINT height, + _In_ DXGI_FORMAT pixelFormat, + _In_ DXGI_ALPHA_MODE alphaMode, + _Outptr_ IDCompositionSurface **surface + ) PURE; + + // Creates a DirectComposition virtual surface object + STDMETHOD(CreateVirtualSurface)(THIS_ + _In_ UINT initialWidth, + _In_ UINT initialHeight, + _In_ DXGI_FORMAT pixelFormat, + _In_ DXGI_ALPHA_MODE alphaMode, + _Outptr_ IDCompositionVirtualSurface **virtualSurface + ) PURE; + + // Creates a 2D translation transform object. + STDMETHOD(CreateTranslateTransform)(THIS_ + _Outptr_ IDCompositionTranslateTransform **translateTransform + ) PURE; + + // Creates a 2D scale transform object. + STDMETHOD(CreateScaleTransform)(THIS_ + _Outptr_ IDCompositionScaleTransform **scaleTransform + ) PURE; + + // Creates a 2D rotation transform object. + STDMETHOD(CreateRotateTransform)(THIS_ + _Outptr_ IDCompositionRotateTransform **rotateTransform + ) PURE; + + // Creates a 2D skew transform object. + STDMETHOD(CreateSkewTransform)(THIS_ + _Outptr_ IDCompositionSkewTransform **skewTransform + ) PURE; + + // Creates a 2D 3x2 matrix transform object. + STDMETHOD(CreateMatrixTransform)(THIS_ + _Outptr_ IDCompositionMatrixTransform **matrixTransform + ) PURE; + + // Creates a 2D transform object that holds an array of 2D transform objects. + STDMETHOD(CreateTransformGroup)(THIS_ + _In_reads_(elements) IDCompositionTransform **transforms, + UINT elements, + _Outptr_ IDCompositionTransform **transformGroup + ) PURE; + + // Creates a 3D translation transform object. + STDMETHOD(CreateTranslateTransform3D)(THIS_ + _Outptr_ IDCompositionTranslateTransform3D **translateTransform3D + ) PURE; + + // Creates a 3D scale transform object. + STDMETHOD(CreateScaleTransform3D)(THIS_ + _Outptr_ IDCompositionScaleTransform3D **scaleTransform3D + ) PURE; + + // Creates a 3D rotation transform object. + STDMETHOD(CreateRotateTransform3D)(THIS_ + _Outptr_ IDCompositionRotateTransform3D **rotateTransform3D + ) PURE; + + // Creates a 3D 4x4 matrix transform object. + STDMETHOD(CreateMatrixTransform3D)(THIS_ + _Outptr_ IDCompositionMatrixTransform3D **matrixTransform3D + ) PURE; + + // Creates a 3D transform object that holds an array of 3D transform objects. + STDMETHOD(CreateTransform3DGroup)(THIS_ + _In_reads_(elements) IDCompositionTransform3D **transforms3D, + UINT elements, + _Outptr_ IDCompositionTransform3D **transform3DGroup + ) PURE; + + // Creates an effect group + STDMETHOD(CreateEffectGroup)(THIS_ + _Outptr_ IDCompositionEffectGroup **effectGroup + ) PURE; + + // Creates a clip object that can be used to clip the contents of a visual subtree. + STDMETHOD(CreateRectangleClip)(THIS_ + _Outptr_ IDCompositionRectangleClip **clip + ) PURE; + + // Creates an animation object + STDMETHOD(CreateAnimation)(THIS_ + _Outptr_ IDCompositionAnimation **animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionDesktopDevice +// +// Synopsis: +// Serves as the root factory for all other desktop DirectComposition +// objects. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionDesktopDevice +DECLARE_INTERFACE_IID_(IDCompositionDesktopDevice, IDCompositionDevice2, "5F4633FE-1E08-4CB8-8C75-CE24333F5602") +{ + STDMETHOD(CreateTargetForHwnd)(THIS_ + _In_ HWND hwnd, + BOOL topmost, + _Outptr_ IDCompositionTarget **target + ) PURE; + + // Creates a surface wrapper around a pre-existing surface that can be associated with one or more visuals for composition. + STDMETHOD(CreateSurfaceFromHandle)(THIS_ + _In_ HANDLE handle, + _Outptr_ IUnknown **surface + ) PURE; + + // Creates a wrapper object that represents the rasterization of a layered window and which can be associated with a visual for composition. + STDMETHOD(CreateSurfaceFromHwnd)(THIS_ + _In_ HWND hwnd, + _Outptr_ IUnknown **surface + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionDeviceDebug +// +// Synopsis: +// IDCompositionDeviceDebug serves as a debug interface +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionDeviceDebug +DECLARE_INTERFACE_IID_(IDCompositionDeviceDebug, IUnknown, "A1A3C64A-224F-4A81-9773-4F03A89D3C6C") +{ + // Enables debug counters + STDMETHOD(EnableDebugCounters)(THIS_ + ) PURE; + + // Disables debug counters + STDMETHOD(DisableDebugCounters)(THIS_ + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionSurfaceFactory +// +// Synopsis: +// An IDCompositionSurfaceFactory interface represents an object that can +// create surfaces suitable for composition. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionSurfaceFactory +DECLARE_INTERFACE_IID_(IDCompositionSurfaceFactory, IUnknown, "E334BC12-3937-4E02-85EB-FCF4EB30D2C8") +{ + // Creates a DirectComposition surface object + STDMETHOD(CreateSurface)(THIS_ + _In_ UINT width, + _In_ UINT height, + _In_ DXGI_FORMAT pixelFormat, + _In_ DXGI_ALPHA_MODE alphaMode, + _Outptr_ IDCompositionSurface **surface + ) PURE; + + // Creates a DirectComposition virtual surface object + STDMETHOD(CreateVirtualSurface)(THIS_ + _In_ UINT initialWidth, + _In_ UINT initialHeight, + _In_ DXGI_FORMAT pixelFormat, + _In_ DXGI_ALPHA_MODE alphaMode, + _Outptr_ IDCompositionVirtualSurface **virtualSurface + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionVisual2 +// +// Synopsis: +// An IDCompositionVisual2 interface represents a visual that participates in +// a visual tree. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionVisual2 +DECLARE_INTERFACE_IID_(IDCompositionVisual2, IDCompositionVisual, "E8DE1639-4331-4B26-BC5F-6A321D347A85") +{ + // Changes the interpretation of the opacity property of an effect group + // associated with this visual + STDMETHOD(SetOpacityMode)(THIS_ + _In_ DCOMPOSITION_OPACITY_MODE mode + ) PURE; + + // Sets back face visibility + STDMETHOD(SetBackFaceVisibility)(THIS_ + _In_ DCOMPOSITION_BACKFACE_VISIBILITY visibility + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionVisualDebug +// +// Synopsis: +// An IDCompositionVisualDebug interface represents a debug visual +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionVisualDebug +DECLARE_INTERFACE_IID_(IDCompositionVisualDebug, IDCompositionVisual2, "FED2B808-5EB4-43A0-AEA3-35F65280F91B") +{ + // Enable heat map + STDMETHOD(EnableHeatMap)(THIS_ + _In_ const D2D1_COLOR_F &color + ) PURE; + + // Disable heat map + STDMETHOD(DisableHeatMap)(THIS_ + ) PURE; + + // Enable redraw regions + STDMETHOD(EnableRedrawRegions)(THIS_ + ) PURE; + + // Disable redraw regions + STDMETHOD(DisableRedrawRegions)(THIS_ + ) PURE; +}; +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WINBLUE) + +#if (_WIN32_WINNT >= _WIN32_WINNT_WINTHRESHOLD) +typedef interface IDCompositionDevice3 IDCompositionDevice3; +typedef interface IDCompositionVisual3 IDCompositionVisual3; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionVisual3 +// +// Synopsis: +// An IDCompositionVisual3 interface represents a visual that participates in +// a visual tree. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionVisual3 +DECLARE_INTERFACE_IID_(IDCompositionVisual3, IDCompositionVisualDebug, "2775F462-B6C1-4015-B0BE-B3E7D6A4976D") +{ + // Sets depth mode property associated with this visual + STDMETHOD(SetDepthMode)(THIS_ + _In_ DCOMPOSITION_DEPTH_MODE mode + ) PURE; + + // Changes the value of OffsetZ property. + STDMETHOD(SetOffsetZ)(THIS_ + float offsetZ + ) PURE; + + // Animates the value of the OffsetZ property. + STDMETHOD(SetOffsetZ)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the value of the Opacity property. + STDMETHOD(SetOpacity)(THIS_ + float opacity + ) PURE; + + // Animates the value of the Opacity property. + STDMETHOD(SetOpacity)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Sets the matrix that modifies the coordinate system of this visual. + STDMETHOD(SetTransform)(THIS_ + const D2D_MATRIX_4X4_F& matrix + ) PURE; + + // Sets the transformation object that modifies the coordinate system of this visual. + STDMETHOD(SetTransform)(THIS_ + _In_opt_ IDCompositionTransform3D* transform + ) PURE; + + // Changes the value of the Visible property + STDMETHOD(SetVisible)(THIS_ + BOOL visible + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionDevice3 +// +// Synopsis: +// Serves as the root factory for all other DirectComposition3 objects and +// controls transactional composition. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionDevice3 +DECLARE_INTERFACE_IID_(IDCompositionDevice3, IDCompositionDevice2, "0987CB06-F916-48BF-8D35-CE7641781BD9") +{ + // Effect creation calls, each creates an interface around a D2D1Effect + STDMETHOD(CreateGaussianBlurEffect)(THIS_ + _Outptr_ IDCompositionGaussianBlurEffect **gaussianBlurEffect + ) PURE; + + STDMETHOD(CreateBrightnessEffect)(THIS_ + _Outptr_ IDCompositionBrightnessEffect **brightnessEffect + ) PURE; + + STDMETHOD(CreateColorMatrixEffect)(THIS_ + _Outptr_ IDCompositionColorMatrixEffect **colorMatrixEffect + ) PURE; + + STDMETHOD(CreateShadowEffect)(THIS_ + _Outptr_ IDCompositionShadowEffect **shadowEffect + ) PURE; + + STDMETHOD(CreateHueRotationEffect)(THIS_ + _Outptr_ IDCompositionHueRotationEffect **hueRotationEffect + ) PURE; + + STDMETHOD(CreateSaturationEffect)(THIS_ + _Outptr_ IDCompositionSaturationEffect **saturationEffect + ) PURE; + + STDMETHOD(CreateTurbulenceEffect)(THIS_ + _Outptr_ IDCompositionTurbulenceEffect **turbulenceEffect + ) PURE; + + STDMETHOD(CreateLinearTransferEffect)(THIS_ + _Outptr_ IDCompositionLinearTransferEffect **linearTransferEffect + ) PURE; + + STDMETHOD(CreateTableTransferEffect)(THIS_ + _Outptr_ IDCompositionTableTransferEffect **tableTransferEffect + ) PURE; + + STDMETHOD(CreateCompositeEffect)(THIS_ + _Outptr_ IDCompositionCompositeEffect **compositeEffect + ) PURE; + + STDMETHOD(CreateBlendEffect)(THIS_ + _Outptr_ IDCompositionBlendEffect **blendEffect + ) PURE; + + STDMETHOD(CreateArithmeticCompositeEffect)(THIS_ + _Outptr_ IDCompositionArithmeticCompositeEffect **arithmeticCompositeEffect + ) PURE; + + STDMETHOD(CreateAffineTransform2DEffect)(THIS_ + _Outptr_ IDCompositionAffineTransform2DEffect **affineTransform2dEffect + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionFilterEffect +// +// Synopsis: +// An IDCompositionFilterEffect interface represents a filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionFilterEffect +DECLARE_INTERFACE_IID_(IDCompositionFilterEffect, IDCompositionEffect, "30C421D5-8CB2-4E9F-B133-37BE270D4AC2") +{ + // Sets the input at the given index to the filterEffect (NULL will use source visual, unless flagged otherwise) + STDMETHOD(SetInput)(THIS_ + _In_ UINT index, + _In_opt_ IUnknown *input, + _In_ UINT flags + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionGaussianBlurEffect +// +// Synopsis: +// An IDCompositionGaussianBlurEffect interface represents a gaussian blur filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionGaussianBlurEffect +DECLARE_INTERFACE_IID_(IDCompositionGaussianBlurEffect, IDCompositionFilterEffect, "45D4D0B7-1BD4-454E-8894-2BFA68443033") +{ + // Changes the amount of blur to be applied. + STDMETHOD(SetStandardDeviation)(THIS_ + _In_ float amount + ) PURE; + + STDMETHOD(SetStandardDeviation)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes border mode (see D2D1_GAUSSIANBLUR) + STDMETHOD(SetBorderMode)(THIS_ + _In_ D2D1_BORDER_MODE mode + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionBrightnessEffect +// +// Synopsis: +// An IDCompositionBrightnessEffect interface represents a brightness filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionBrightnessEffect +DECLARE_INTERFACE_IID_(IDCompositionBrightnessEffect, IDCompositionFilterEffect, "6027496E-CB3A-49AB-934F-D798DA4F7DA6") +{ + // Changes the value of white point property. + STDMETHOD(SetWhitePoint)(THIS_ + _In_ const D2D1_VECTOR_2F& whitePoint + ) PURE; + + // Changes the value of black point property + STDMETHOD(SetBlackPoint)(THIS_ + _In_ const D2D1_VECTOR_2F& blackPoint + ) PURE; + + // Changes the X value of the white point property. + STDMETHOD(SetWhitePointX)(THIS_ + _In_ float whitePointX + ) PURE; + + STDMETHOD(SetWhitePointX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the Y value of the white point property. + STDMETHOD(SetWhitePointY)(THIS_ + _In_ float whitePointY + ) PURE; + + STDMETHOD(SetWhitePointY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the X value of the black point property. + STDMETHOD(SetBlackPointX)(THIS_ + _In_ float blackPointX + ) PURE; + + STDMETHOD(SetBlackPointX)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes the Y value of the black point property. + STDMETHOD(SetBlackPointY)(THIS_ + _In_ float blackPointY + ) PURE; + + STDMETHOD(SetBlackPointY)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionColorMatrixEffect +// +// Synopsis: +// An IDCompositionColorMatrixEffect interface represents a color matrix filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionColorMatrixEffect +DECLARE_INTERFACE_IID_(IDCompositionColorMatrixEffect, IDCompositionFilterEffect, "C1170A22-3CE2-4966-90D4-55408BFC84C4") +{ + // Changes all values of the matrix for a color transform + STDMETHOD(SetMatrix)(THIS_ + _In_ const D2D1_MATRIX_5X4_F& matrix + ) PURE; + + // Changes a single element of the matrix of this color transform. + STDMETHOD(SetMatrixElement)(THIS_ + _In_ int row, + _In_ int column, + _In_ float value + ) PURE; + + // Animates a single element of the matrix of this color transform. + STDMETHOD(SetMatrixElement)(THIS_ + _In_ int row, + _In_ int column, + _In_ IDCompositionAnimation *animation + ) PURE; + + // Changes the alpha mode + STDMETHOD(SetAlphaMode)(THIS_ + _In_ D2D1_COLORMATRIX_ALPHA_MODE mode + ) PURE; + + // Sets the clamp output property + STDMETHOD(SetClampOutput)(THIS_ + _In_ BOOL clamp + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionShadowEffect +// +// Synopsis: +// An IDCompositionShadowEffect interface represents a shadow filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionShadowEffect +DECLARE_INTERFACE_IID_(IDCompositionShadowEffect, IDCompositionFilterEffect, "4AD18AC0-CFD2-4C2F-BB62-96E54FDB6879") +{ + // Changes the amount of blur to be applied. + STDMETHOD(SetStandardDeviation)(THIS_ + _In_ float amount + ) PURE; + + STDMETHOD(SetStandardDeviation)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + // Changes shadow color + STDMETHOD(SetColor)(THIS_ + _In_ const D2D1_VECTOR_4F &color + ) PURE; + + STDMETHOD(SetRed)(THIS_ + _In_ float amount + ) PURE; + + STDMETHOD(SetRed)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetGreen)(THIS_ + _In_ float amount + ) PURE; + + STDMETHOD(SetGreen)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetBlue)(THIS_ + _In_ float amount + ) PURE; + + STDMETHOD(SetBlue)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetAlpha)(THIS_ + _In_ float amount + ) PURE; + + STDMETHOD(SetAlpha)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionHueRotationEffect +// +// Synopsis: +// An IDCompositionHueRotationEffect interface represents a hue rotation filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionHueRotationEffect +DECLARE_INTERFACE_IID_(IDCompositionHueRotationEffect, IDCompositionFilterEffect, "6DB9F920-0770-4781-B0C6-381912F9D167") +{ + // Changes the angle of rotation + STDMETHOD(SetAngle)(THIS_ + _In_ float amountDegrees + ) PURE; + + STDMETHOD(SetAngle)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionSaturationEffect +// +// Synopsis: +// An IDCompositionSaturationEffect interface represents a saturation filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionSaturationEffect +DECLARE_INTERFACE_IID_(IDCompositionSaturationEffect, IDCompositionFilterEffect, "A08DEBDA-3258-4FA4-9F16-9174D3FE93B1") +{ + // Changes the amount of saturation to be applied. + STDMETHOD(SetSaturation)(THIS_ + _In_ float ratio + ) PURE; + + STDMETHOD(SetSaturation)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionTurbulenceEffect +// +// Synopsis: +// An IDCompositionTurbulenceEffect interface represents a turbulence filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionTurbulenceEffect +DECLARE_INTERFACE_IID_(IDCompositionTurbulenceEffect, IDCompositionFilterEffect, "A6A55BDA-C09C-49F3-9193-A41922C89715") +{ + // Changes the starting offset of the turbulence + STDMETHOD(SetOffset)(THIS_ + _In_ const D2D1_VECTOR_2F& offset + ) PURE; + + // Changes the base frequency of the turbulence + STDMETHOD(SetBaseFrequency)(THIS_ + _In_ const D2D1_VECTOR_2F& frequency + ) PURE; + + // Changes the output size of the turbulence + STDMETHOD(SetSize)(THIS_ + _In_ const D2D1_VECTOR_2F& size + ) PURE; + + // Sets the number of octaves + STDMETHOD(SetNumOctaves)(THIS_ + _In_ UINT numOctaves + ) PURE; + + // Set the random number seed + STDMETHOD(SetSeed)(THIS_ + _In_ UINT seed + ) PURE; + + // Set the noise mode + STDMETHOD(SetNoise)(THIS_ + _In_ D2D1_TURBULENCE_NOISE noise + ) PURE; + + // Set stitchable + STDMETHOD(SetStitchable)(THIS_ + _In_ BOOL stitchable + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionLinearTransferEffect +// +// Synopsis: +// An IDCompositionLinearTransferEffect interface represents a linear transfer filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionLinearTransferEffect +DECLARE_INTERFACE_IID_(IDCompositionLinearTransferEffect, IDCompositionFilterEffect, "4305EE5B-C4A0-4C88-9385-67124E017683") +{ + + STDMETHOD(SetRedYIntercept)(THIS_ + _In_ float redYIntercept + ) PURE; + + STDMETHOD(SetRedYIntercept)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetRedSlope)(THIS_ + _In_ float redSlope + ) PURE; + + STDMETHOD(SetRedSlope)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetRedDisable)(THIS_ + _In_ BOOL redDisable + ) PURE; + + STDMETHOD(SetGreenYIntercept)(THIS_ + _In_ float greenYIntercept + ) PURE; + + STDMETHOD(SetGreenYIntercept)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetGreenSlope)(THIS_ + _In_ float greenSlope + ) PURE; + + STDMETHOD(SetGreenSlope)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetGreenDisable)(THIS_ + _In_ BOOL greenDisable + ) PURE; + + STDMETHOD(SetBlueYIntercept)(THIS_ + _In_ float blueYIntercept + ) PURE; + + STDMETHOD(SetBlueYIntercept)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetBlueSlope)(THIS_ + _In_ float blueSlope + ) PURE; + + STDMETHOD(SetBlueSlope)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetBlueDisable)(THIS_ + _In_ BOOL blueDisable + ) PURE; + + STDMETHOD(SetAlphaYIntercept)(THIS_ + _In_ float alphaYIntercept + ) PURE; + + STDMETHOD(SetAlphaYIntercept)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetAlphaSlope)(THIS_ + _In_ float alphaSlope + ) PURE; + + STDMETHOD(SetAlphaSlope)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetAlphaDisable)(THIS_ + _In_ BOOL alphaDisable + ) PURE; + + STDMETHOD(SetClampOutput)(THIS_ + _In_ BOOL clampOutput + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionTableTransferEffect +// +// Synopsis: +// An IDCompositionTableTransferEffect interface represents a Table transfer filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionTableTransferEffect +DECLARE_INTERFACE_IID_(IDCompositionTableTransferEffect, IDCompositionFilterEffect, "9B7E82E2-69C5-4EB4-A5F5-A7033F5132CD") +{ + STDMETHOD(SetRedTable)(THIS_ + _In_count_(count) const float *tableValues, + _In_ UINT count + ) PURE; + + STDMETHOD(SetGreenTable)(THIS_ + _In_count_(count) const float *tableValues, + _In_ UINT count + ) PURE; + + STDMETHOD(SetBlueTable)(THIS_ + _In_count_(count) const float *tableValues, + _In_ UINT count + ) PURE; + + STDMETHOD(SetAlphaTable)(THIS_ + _In_count_(count) const float *tableValues, + _In_ UINT count + ) PURE; + + STDMETHOD(SetRedDisable)(THIS_ + _In_ BOOL redDisable + ) PURE; + + STDMETHOD(SetGreenDisable)(THIS_ + _In_ BOOL greenDisable + ) PURE; + + STDMETHOD(SetBlueDisable)(THIS_ + _In_ BOOL blueDisable + ) PURE; + + STDMETHOD(SetAlphaDisable)(THIS_ + _In_ BOOL alphaDisable + ) PURE; + + STDMETHOD(SetClampOutput)(THIS_ + _In_ BOOL clampOutput + ) PURE; + + // Note: To set individual values, the table must have already been initialized + // with a buffer of values of the appropriate size, or these calls will fail + STDMETHOD(SetRedTableValue)(THIS_ + _In_ UINT index, + _In_ float value + ) PURE; + + STDMETHOD(SetRedTableValue)(THIS_ + _In_ UINT index, + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetGreenTableValue)(THIS_ + _In_ UINT index, + _In_ float value + ) PURE; + + STDMETHOD(SetGreenTableValue)(THIS_ + _In_ UINT index, + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetBlueTableValue)(THIS_ + _In_ UINT index, + _In_ float value + ) PURE; + + STDMETHOD(SetBlueTableValue)(THIS_ + _In_ UINT index, + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetAlphaTableValue)(THIS_ + _In_ UINT index, + _In_ float value + ) PURE; + + STDMETHOD(SetAlphaTableValue)(THIS_ + _In_ UINT index, + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionCompositeEffect +// +// Synopsis: +// An IDCompositionCompositeEffect interface represents a composite filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionCompositeEffect +DECLARE_INTERFACE_IID_(IDCompositionCompositeEffect, IDCompositionFilterEffect, "576616C0-A231-494D-A38D-00FD5EC4DB46") +{ + // Changes the composite mode. + STDMETHOD(SetMode)(THIS_ + _In_ D2D1_COMPOSITE_MODE mode + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionBlendEffect +// +// Synopsis: +// An IDCompositionBlendEffect interface represents a blend filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionBlendEffect +DECLARE_INTERFACE_IID_(IDCompositionBlendEffect, IDCompositionFilterEffect, "33ECDC0A-578A-4A11-9C14-0CB90517F9C5") +{ + STDMETHOD(SetMode)(THIS_ + _In_ D2D1_BLEND_MODE mode + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionArithmeticCompositeEffect +// +// Synopsis: +// An IDCompositionArithmeticCompositeEffect interface represents an arithmetic composite filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionArithmeticCompositeEffect +DECLARE_INTERFACE_IID_(IDCompositionArithmeticCompositeEffect, IDCompositionFilterEffect, "3B67DFA8-E3DD-4E61-B640-46C2F3D739DC") +{ + STDMETHOD(SetCoefficients)(THIS_ + _In_ const D2D1_VECTOR_4F &coefficients + ) PURE; + + STDMETHOD(SetClampOutput)(THIS_ + _In_ BOOL clampoutput + ) PURE; + + STDMETHOD(SetCoefficient1)(THIS_ + _In_ float Coeffcient1 + ) PURE; + + STDMETHOD(SetCoefficient1)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetCoefficient2)(THIS_ + _In_ float Coefficient2 + ) PURE; + + STDMETHOD(SetCoefficient2)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetCoefficient3)(THIS_ + _In_ float Coefficient3 + ) PURE; + + STDMETHOD(SetCoefficient3)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; + + STDMETHOD(SetCoefficient4)(THIS_ + _In_ float Coefficient4 + ) PURE; + + STDMETHOD(SetCoefficient4)(THIS_ + _In_ IDCompositionAnimation* animation + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionAffineTransform2DEffect +// +// Synopsis: +// An IDCompositionAffineTransform2DEffect interface represents a affine transform 2D filter effect +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionAffineTransform2DEffect +DECLARE_INTERFACE_IID_(IDCompositionAffineTransform2DEffect, IDCompositionFilterEffect, "0B74B9E8-CDD6-492F-BBBC-5ED32157026D") +{ + STDMETHOD(SetInterpolationMode)(THIS_ + _In_ D2D1_2DAFFINETRANSFORM_INTERPOLATION_MODE interpolationMode + ) PURE; + + STDMETHOD(SetBorderMode)(THIS_ + _In_ D2D1_BORDER_MODE borderMode + ) PURE; + + STDMETHOD(SetTransformMatrix)(THIS_ + _In_ const D2D1_MATRIX_3X2_F &transformMatrix + ) PURE; + + STDMETHOD(SetTransformMatrixElement)(THIS_ + _In_ int row, + _In_ int column, + _In_ float value + ) PURE; + + STDMETHOD(SetTransformMatrixElement)(THIS_ + _In_ int row, + _In_ int column, + _In_ IDCompositionAnimation *animation + ) PURE; + + STDMETHOD(SetSharpness)(THIS_ + _In_ float sharpness + ) PURE; + + STDMETHOD(SetSharpness)(THIS_ + _In_ IDCompositionAnimation *animation + ) PURE; +}; + +struct DCompositionInkTrailPoint +{ + float x; + float y; + float radius; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionDelegatedInkTrail +// +// Synopsis: +// An IDCompositionDelegatedInkTrail interface represents low latency ink +// that the system renders on behalf of the app. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionDelegatedInkTrail +DECLARE_INTERFACE_IID_(IDCompositionDelegatedInkTrail, IUnknown, "C2448E9B-547D-4057-8CF5-8144EDE1C2DA") +{ + // Returns a generation id to be used when removing points later + STDMETHOD(AddTrailPoints)(THIS_ + _In_reads_(inkPointsCount) const DCompositionInkTrailPoint* inkPoints, + UINT inkPointsCount, + _Out_ UINT* generationId + ) PURE; + + // Returns a generation id to be used when removing points later + STDMETHOD(AddTrailPointsWithPrediction)(THIS_ + _In_reads_(inkPointsCount) const DCompositionInkTrailPoint* inkPoints, + UINT inkPointsCount, + _In_reads_(predictedInkPointsCount) const DCompositionInkTrailPoint* predictedInkPoints, + UINT predictedInkPointsCount, + _Out_ UINT* generationId + ) PURE; + + STDMETHOD(RemoveTrailPoints)(THIS_ + UINT generationId + ) PURE; + + STDMETHOD(StartNewTrail)(THIS_ + const D2D1_COLOR_F& color + ) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionInkTrailDevice +// +// Synopsis: +// An IDCompositionInkTrailDevice interface is the factory for +// creating DelegatedInkTrail objects +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionInkTrailDevice +DECLARE_INTERFACE_IID_(IDCompositionInkTrailDevice, IUnknown, "DF0C7CEC-CDEB-4D4A-B91C-721BF22F4E6C") +{ + STDMETHOD(CreateDelegatedInkTrail)( + _Out_ IDCompositionDelegatedInkTrail** inkTrail + ) PURE; + + STDMETHOD(CreateDelegatedInkTrailForSwapChain)( + _In_ IUnknown* swapChain, + _Out_ IDCompositionDelegatedInkTrail** inkTrail + ) PURE; +}; + +#if (NTDDI_VERSION >= NTDDI_WIN10_NI) + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionTexture +// +// Synopsis: +// An interface representing a raw D3D texture that can be bound to a +// dcomp visual as content. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionTexture +DECLARE_INTERFACE_IID_(IDCompositionTexture, IUnknown, "929BB1AA-725F-433B-ABD7-273075A835F2") +{ + STDMETHOD(SetSourceRect)(THIS_ + _In_ const D2D_RECT_U& sourceRect) PURE; + + STDMETHOD(SetColorSpace)(THIS_ + _In_ DXGI_COLOR_SPACE_TYPE colorSpace) PURE; + + STDMETHOD(SetAlphaMode)(THIS_ + _In_ DXGI_ALPHA_MODE alphaMode) PURE; + + STDMETHOD(GetAvailableFence)(THIS_ + _Out_ UINT64* fenceValue, + _In_ REFIID iid, + _Outptr_result_maybenull_ void** availableFence) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionDevice4 +// +// Synopsis: +// Serves as the root factory for composition textures. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionDevice4 +DECLARE_INTERFACE_IID_(IDCompositionDevice4, IDCompositionDevice3, "85FC5CCA-2DA6-494C-86B6-4A775C049B8A") +{ + // Determine whether or not the backing D3D device Supports composition textures + STDMETHOD(CheckCompositionTextureSupport)(THIS_ + _In_ IUnknown* renderingDevice, + _Out_ BOOL* supportsCompositionTextures) PURE; + + // Call to create a composition texture referencing the passed D3D texture + STDMETHOD(CreateCompositionTexture)(THIS_ + _In_ IUnknown* d3dTexture, + _Outptr_result_maybenull_ IDCompositionTexture** compositionTexture) PURE; +}; + +#endif // #if (NTDDI_VERSION >= NTDDI_WIN10_NI) + +#if (NTDDI_VERSION >= NTDDI_WIN11_GE) + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionDynamicTexture +// +// Synopsis: +// An interface representing a dynamically changing texture that can be +// bound to a dcomp visual as content. +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionDynamicTexture +DECLARE_INTERFACE_IID_(IDCompositionDynamicTexture, IUnknown, "A1DE1D3F-6405-447F-8E95-1383A34B0277") +{ + // Set current texture, assuming that every pixel has changed. + STDMETHOD(SetTexture)(THIS_ + _In_ IDCompositionTexture* pTexture) PURE; + + // Set current texture, assuming that only pixels inside the provided rects have changed. + // + // DWM will use the provided rects to optimize the redrawing of the texture on the screen, + // but it can't check the correctness of the provided rects, so the caller is responsible for + // including every pixel that changed in at least one rect. There are no guarantees about + // what will be redrawn outside of the provided dirty rects. It means that DWM may choose to draw + // any set of additional pixels outside of provided dirty rects if it needs to. + // + // If provided with an empty array or empty rects, this method will treat the texture as identical + // to the previous one so that DWM may choose not to redraw it. + STDMETHOD(SetTexture)(THIS_ + _In_ IDCompositionTexture* pTexture, + _In_count_(rectCount) const D2D_RECT_L *pRects, + _In_ size_t rectCount) PURE; +}; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionDevice5 +// +// Synopsis: +// Servers as the root factory for composition dynamic textures +// +//------------------------------------------------------------------------------ +#undef INTERFACE +#define INTERFACE IDCompositionDevice5 +DECLARE_INTERFACE_IID_(IDCompositionDevice5, IDCompositionDevice4, "2C6BEBFE-A603-472F-AF34-D2443356E61B") +{ + STDMETHOD(CreateDynamicTexture)(THIS_ + _Outptr_ IDCompositionDynamicTexture** compositionDynamicTexture) PURE; +}; + +#endif // #if (NTDDI_VERSION >= NTDDI_WIN11_GE) + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WINTHRESHOLD) + +#undef INTERFACE +#endif // NTDDI_WIN8 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcompanimation.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcompanimation.h new file mode 100644 index 0000000000000000000000000000000000000000..c2a0d45553100d4b6aee95ebae22bcbb26336afb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcompanimation.h @@ -0,0 +1,259 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dcompanimation_h__ +#define __dcompanimation_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDCompositionAnimation_FWD_DEFINED__ +#define __IDCompositionAnimation_FWD_DEFINED__ +typedef interface IDCompositionAnimation IDCompositionAnimation; + +#endif /* __IDCompositionAnimation_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dcompanimation_0000_0000 */ +/* [local] */ + +//--------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//--------------------------------------------------------------------------- +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_dcompanimation_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dcompanimation_0000_0000_v0_0_s_ifspec; + +#ifndef __IDCompositionAnimation_INTERFACE_DEFINED__ +#define __IDCompositionAnimation_INTERFACE_DEFINED__ + +/* interface IDCompositionAnimation */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDCompositionAnimation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CBFD91D9-51B2-45e4-B3DE-D19CCFB863C5") + IDCompositionAnimation : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAbsoluteBeginTime( + LARGE_INTEGER beginTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddCubic( + double beginOffset, + float constantCoefficient, + float linearCoefficient, + float quadraticCoefficient, + float cubicCoefficient) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddSinusoidal( + double beginOffset, + float bias, + float amplitude, + float frequency, + float phase) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRepeat( + double beginOffset, + double durationToRepeat) = 0; + + virtual HRESULT STDMETHODCALLTYPE End( + double endOffset, + float endValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDCompositionAnimationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDCompositionAnimation * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDCompositionAnimation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDCompositionAnimation * This); + + DECLSPEC_XFGVIRT(IDCompositionAnimation, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IDCompositionAnimation * This); + + DECLSPEC_XFGVIRT(IDCompositionAnimation, SetAbsoluteBeginTime) + HRESULT ( STDMETHODCALLTYPE *SetAbsoluteBeginTime )( + IDCompositionAnimation * This, + LARGE_INTEGER beginTime); + + DECLSPEC_XFGVIRT(IDCompositionAnimation, AddCubic) + HRESULT ( STDMETHODCALLTYPE *AddCubic )( + IDCompositionAnimation * This, + double beginOffset, + float constantCoefficient, + float linearCoefficient, + float quadraticCoefficient, + float cubicCoefficient); + + DECLSPEC_XFGVIRT(IDCompositionAnimation, AddSinusoidal) + HRESULT ( STDMETHODCALLTYPE *AddSinusoidal )( + IDCompositionAnimation * This, + double beginOffset, + float bias, + float amplitude, + float frequency, + float phase); + + DECLSPEC_XFGVIRT(IDCompositionAnimation, AddRepeat) + HRESULT ( STDMETHODCALLTYPE *AddRepeat )( + IDCompositionAnimation * This, + double beginOffset, + double durationToRepeat); + + DECLSPEC_XFGVIRT(IDCompositionAnimation, End) + HRESULT ( STDMETHODCALLTYPE *End )( + IDCompositionAnimation * This, + double endOffset, + float endValue); + + END_INTERFACE + } IDCompositionAnimationVtbl; + + interface IDCompositionAnimation + { + CONST_VTBL struct IDCompositionAnimationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDCompositionAnimation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDCompositionAnimation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDCompositionAnimation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDCompositionAnimation_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IDCompositionAnimation_SetAbsoluteBeginTime(This,beginTime) \ + ( (This)->lpVtbl -> SetAbsoluteBeginTime(This,beginTime) ) + +#define IDCompositionAnimation_AddCubic(This,beginOffset,constantCoefficient,linearCoefficient,quadraticCoefficient,cubicCoefficient) \ + ( (This)->lpVtbl -> AddCubic(This,beginOffset,constantCoefficient,linearCoefficient,quadraticCoefficient,cubicCoefficient) ) + +#define IDCompositionAnimation_AddSinusoidal(This,beginOffset,bias,amplitude,frequency,phase) \ + ( (This)->lpVtbl -> AddSinusoidal(This,beginOffset,bias,amplitude,frequency,phase) ) + +#define IDCompositionAnimation_AddRepeat(This,beginOffset,durationToRepeat) \ + ( (This)->lpVtbl -> AddRepeat(This,beginOffset,durationToRepeat) ) + +#define IDCompositionAnimation_End(This,endOffset,endValue) \ + ( (This)->lpVtbl -> End(This,endOffset,endValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDCompositionAnimation_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dcompanimation_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dcompanimation_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dcompanimation_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcompanimation.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcompanimation.idl new file mode 100644 index 0000000000000000000000000000000000000000..baf5e0812e305afb1990176fdb4af9a150d61944 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dcompanimation.idl @@ -0,0 +1,91 @@ +//-------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- + +cpp_quote("//---------------------------------------------------------------------------") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//---------------------------------------------------------------------------") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "wtypes.idl"; +import "unknwn.idl"; + +//+----------------------------------------------------------------------------- +// +// Interface: +// IDCompositionAnimation +// +// Synopsis: +// An IDCompositionAnimation interface represents a one-dimensional function that +// can be used to animate the value of a property of another DirectComposition object. +// +//------------------------------------------------------------------------------ +[ + local, + object, + uuid(CBFD91D9-51B2-45e4-B3DE-D19CCFB863C5), + helpstring("IDCompositionAnimation Interface"), + pointer_default(unique) +] +interface IDCompositionAnimation : IUnknown +{ + // Resets the animation function so that it contains no segments as when it was first created. + HRESULT + Reset + ( + ); + + // Sets the absolute time at which the animation curve starts. + HRESULT + SetAbsoluteBeginTime + ( + LARGE_INTEGER beginTime + ); + + // Adds a cubic polynomial segment to the animation function. + HRESULT + AddCubic + ( + double beginOffset, + float constantCoefficient, + float linearCoefficient, + float quadraticCoefficient, + float cubicCoefficient + ); + + // Adds a sinusoidal segment to the animation function. + HRESULT + AddSinusoidal + ( + double beginOffset, + float bias, + float amplitude, + float frequency, + float phase + ); + + // Repeats the animation. + HRESULT + AddRepeat + ( + double beginOffset, + double durationToRepeat + ); + + // Terminates an animation curve. + HRESULT + End + ( + double endOffset, + float endValue + ); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dde.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dde.h new file mode 100644 index 0000000000000000000000000000000000000000..e47a5d7987123cca8b5de231391bf79c9487bf7f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dde.h @@ -0,0 +1,212 @@ +/*****************************************************************************\ +* * +* dde.h - Dynamic Data Exchange structures and definitions * +* * +* Copyright (c) 1993-1999, Microsoft Corp. All rights reserved * +* * +\*****************************************************************************/ +#ifndef _DDEHEADER_INCLUDED_ +#define _DDEHEADER_INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifndef _WINDEF_ +#include +#endif + +#include + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) // padding added after data member +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// begin_r_dde + +/* DDE window messages */ + +#define WM_DDE_FIRST 0x03E0 +#define WM_DDE_INITIATE (WM_DDE_FIRST) +#define WM_DDE_TERMINATE (WM_DDE_FIRST+1) +#define WM_DDE_ADVISE (WM_DDE_FIRST+2) +#define WM_DDE_UNADVISE (WM_DDE_FIRST+3) +#define WM_DDE_ACK (WM_DDE_FIRST+4) +#define WM_DDE_DATA (WM_DDE_FIRST+5) +#define WM_DDE_REQUEST (WM_DDE_FIRST+6) +#define WM_DDE_POKE (WM_DDE_FIRST+7) +#define WM_DDE_EXECUTE (WM_DDE_FIRST+8) +#define WM_DDE_LAST (WM_DDE_FIRST+8) + +// end_r_dde + +/*---------------------------------------------------------------------------- +| DDEACK structure +| +| Structure of wStatus (LOWORD(lParam)) in WM_DDE_ACK message +| sent in response to a WM_DDE_DATA, WM_DDE_REQUEST, WM_DDE_POKE, +| WM_DDE_ADVISE, or WM_DDE_UNADVISE message. +| +----------------------------------------------------------------------------*/ + +typedef struct { +#ifndef _MAC + unsigned short bAppReturnCode:8, + reserved:6, + fBusy:1, + fAck:1; +#else + unsigned short usFlags; +#endif +} DDEACK; + + +/*---------------------------------------------------------------------------- +| DDEADVISE structure +| +| WM_DDE_ADVISE parameter structure for hOptions (LOWORD(lParam)) +| +----------------------------------------------------------------------------*/ + +typedef struct { +#ifndef _MAC + unsigned short reserved:14, + fDeferUpd:1, + fAckReq:1; +#else + unsigned short usFlags; +#endif + short cfFormat; +} DDEADVISE; + + +/*---------------------------------------------------------------------------- +| DDEDATA structure +| +| WM_DDE_DATA parameter structure for hData (LOWORD(lParam)). +| The actual size of this structure depends on the size of +| the Value array. +| +----------------------------------------------------------------------------*/ + +typedef struct { +#ifndef _MAC + unsigned short unused:12, + fResponse:1, + fRelease:1, + reserved:1, + fAckReq:1; +#else + unsigned short usFlags; +#endif + short cfFormat; + BYTE Value[1]; +} DDEDATA; + + +/*---------------------------------------------------------------------------- +| DDEPOKE structure +| +| WM_DDE_POKE parameter structure for hData (LOWORD(lParam)). +| The actual size of this structure depends on the size of +| the Value array. +| +----------------------------------------------------------------------------*/ + +typedef struct { +#ifndef _MAC + unsigned short unused:13, /* Earlier versions of DDE.H incorrectly */ + /* 12 unused bits. */ + fRelease:1, + fReserved:2; +#else + unsigned short usFlags; +#endif + short cfFormat; + BYTE Value[1]; /* This member was named rgb[1] in previous */ + /* versions of DDE.H */ + +} DDEPOKE; + +/*---------------------------------------------------------------------------- +The following typedef's were used in previous versions of the Windows SDK. +They are still valid. The above typedef's define exactly the same structures +as those below. The above typedef names are recommended, however, as they +are more meaningful. + +Note that the DDEPOKE structure typedef'ed in earlier versions of DDE.H did +not correctly define the bit positions. +----------------------------------------------------------------------------*/ + +typedef struct { +#ifndef _MAC + unsigned short unused:13, + fRelease:1, + fDeferUpd:1, + fAckReq:1; +#else + unsigned short usFlags; +#endif + short cfFormat; +} DDELN; + +typedef struct { +#ifndef _MAC + unsigned short unused:12, + fAck:1, + fRelease:1, + fReserved:1, + fAckReq:1; +#else + unsigned short usFlags; +#endif + short cfFormat; + BYTE rgb[1]; +} DDEUP; + + +/* + * DDE SECURITY + */ + +BOOL +WINAPI +DdeSetQualityOfService( + HWND hwndClient, + CONST SECURITY_QUALITY_OF_SERVICE *pqosNew, + PSECURITY_QUALITY_OF_SERVICE pqosPrev); + +BOOL +WINAPI +ImpersonateDdeClientWindow( + HWND hWndClient, + HWND hWndServer); + +/* + * DDE message packing APIs + */ +LPARAM APIENTRY PackDDElParam(_In_ UINT msg, _In_ UINT_PTR uiLo, _In_ UINT_PTR uiHi); +BOOL APIENTRY UnpackDDElParam(_In_ UINT msg, _In_ LPARAM lParam, _Out_ PUINT_PTR puiLo, _Out_ PUINT_PTR puiHi); +BOOL APIENTRY FreeDDElParam(_In_ UINT msg, _In_ LPARAM lParam); +LPARAM APIENTRY ReuseDDElParam(LPARAM lParam, UINT msgIn, UINT msgOut, UINT_PTR uiLo, UINT_PTR uiHi); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif // _DDEHEADER_INCLUDED_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dde.rh b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dde.rh new file mode 100644 index 0000000000000000000000000000000000000000..cfec406860d2e4696c8901cce991a099b9292051 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dde.rh @@ -0,0 +1,30 @@ +/*++ BUILD Version: 0000 Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + dde.rh + +Abstract: + + This module defines the 32-Bit Windows resource codes from dde.h. + +Revision History: + +--*/ + +/* DDE window messages */ + +#define WM_DDE_FIRST 0x03E0 +#define WM_DDE_INITIATE (WM_DDE_FIRST) +#define WM_DDE_TERMINATE (WM_DDE_FIRST+1) +#define WM_DDE_ADVISE (WM_DDE_FIRST+2) +#define WM_DDE_UNADVISE (WM_DDE_FIRST+3) +#define WM_DDE_ACK (WM_DDE_FIRST+4) +#define WM_DDE_DATA (WM_DDE_FIRST+5) +#define WM_DDE_REQUEST (WM_DDE_FIRST+6) +#define WM_DDE_POKE (WM_DDE_FIRST+7) +#define WM_DDE_EXECUTE (WM_DDE_FIRST+8) +#define WM_DDE_LAST (WM_DDE_FIRST+8) + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddeml.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddeml.h new file mode 100644 index 0000000000000000000000000000000000000000..a6276573b62d606f0e19c38456562acb6d43620a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddeml.h @@ -0,0 +1,674 @@ + + +#include + +/*++ BUILD Version: 0001 // Increment this if a change has global effects --*/ + +/*****************************************************************************\ +* * +* ddeml.h - DDEML API header file * +* * +* Version 3.10 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +\*****************************************************************************/ +#ifndef _INC_DDEMLH +#define _INC_DDEMLH + + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) // padding added after data member +#endif + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/******** public types ********/ + +DECLARE_HANDLE(HCONVLIST); +DECLARE_HANDLE(HCONV); +DECLARE_HANDLE(HSZ); +DECLARE_HANDLE(HDDEDATA); +#define EXPENTRY CALLBACK + +/* the following structure is for use with XTYP_WILDCONNECT processing. */ + +typedef struct tagHSZPAIR { + HSZ hszSvc; + HSZ hszTopic; +} HSZPAIR, FAR *PHSZPAIR; + +/* The following structure is used by DdeConnect() and DdeConnectList() and + by XTYP_CONNECT and XTYP_WILDCONNECT callbacks. */ + +typedef struct tagCONVCONTEXT { + UINT cb; /* set to sizeof(CONVCONTEXT) */ + UINT wFlags; /* none currently defined. */ + UINT wCountryID; /* country/region code for topic/item strings used. */ + int iCodePage; /* codepage used for topic/item strings. */ + DWORD dwLangID; /* language ID for topic/item strings. */ + DWORD dwSecurity; /* Private security code. */ + SECURITY_QUALITY_OF_SERVICE qos; /* client side's quality of service */ +} CONVCONTEXT, FAR *PCONVCONTEXT; + + +/* The following structure is used by DdeQueryConvInfo(): */ + +typedef struct tagCONVINFO { + DWORD cb; /* sizeof(CONVINFO) */ + DWORD_PTR hUser; /* user specified field */ + HCONV hConvPartner; /* hConv on other end or 0 if non-ddemgr partner */ + HSZ hszSvcPartner; /* app name of partner if obtainable */ + HSZ hszServiceReq; /* AppName requested for connection */ + HSZ hszTopic; /* Topic name for conversation */ + HSZ hszItem; /* transaction item name or NULL if quiescent */ + UINT wFmt; /* transaction format or NULL if quiescent */ + UINT wType; /* XTYP_ for current transaction */ + UINT wStatus; /* ST_ constant for current conversation */ + UINT wConvst; /* XST_ constant for current transaction */ + UINT wLastError; /* last transaction error. */ + HCONVLIST hConvList; /* parent hConvList if this conversation is in a list */ + CONVCONTEXT ConvCtxt; /* conversation context */ + HWND hwnd; /* window handle for this conversation */ + HWND hwndPartner; /* partner window handle for this conversation */ +} CONVINFO, FAR *PCONVINFO; + +/***** conversation states (usState) *****/ + +#define XST_NULL 0 /* quiescent states */ +#define XST_INCOMPLETE 1 +#define XST_CONNECTED 2 +#define XST_INIT1 3 /* mid-initiation states */ +#define XST_INIT2 4 +#define XST_REQSENT 5 /* active conversation states */ +#define XST_DATARCVD 6 +#define XST_POKESENT 7 +#define XST_POKEACKRCVD 8 +#define XST_EXECSENT 9 +#define XST_EXECACKRCVD 10 +#define XST_ADVSENT 11 +#define XST_UNADVSENT 12 +#define XST_ADVACKRCVD 13 +#define XST_UNADVACKRCVD 14 +#define XST_ADVDATASENT 15 +#define XST_ADVDATAACKRCVD 16 + +/* used in LOWORD(dwData1) of XTYP_ADVREQ callbacks... */ +#define CADV_LATEACK 0xFFFF + +/***** conversation status bits (fsStatus) *****/ + +#define ST_CONNECTED 0x0001 +#define ST_ADVISE 0x0002 +#define ST_ISLOCAL 0x0004 +#define ST_BLOCKED 0x0008 +#define ST_CLIENT 0x0010 +#define ST_TERMINATED 0x0020 +#define ST_INLIST 0x0040 +#define ST_BLOCKNEXT 0x0080 +#define ST_ISSELF 0x0100 + +/* DDE constants for wStatus field */ + +#define DDE_FACK 0x8000 +#define DDE_FBUSY 0x4000 +#define DDE_FDEFERUPD 0x4000 +#define DDE_FACKREQ 0x8000 +#define DDE_FRELEASE 0x2000 +#define DDE_FREQUESTED 0x1000 +#define DDE_FAPPSTATUS 0x00ff +#define DDE_FNOTPROCESSED 0x0000 + +#define DDE_FACKRESERVED (~(DDE_FACK | DDE_FBUSY | DDE_FAPPSTATUS)) +#define DDE_FADVRESERVED (~(DDE_FACKREQ | DDE_FDEFERUPD)) +#define DDE_FDATRESERVED (~(DDE_FACKREQ | DDE_FRELEASE | DDE_FREQUESTED)) +#define DDE_FPOKRESERVED (~(DDE_FRELEASE)) + +/***** message filter hook types *****/ + +#define MSGF_DDEMGR 0x8001 + +/***** codepage constants ****/ + +#define CP_WINANSI 1004 /* default codepage for windows & old DDE convs. */ +#define CP_WINUNICODE 1200 +#ifdef UNICODE +#define CP_WINNEUTRAL CP_WINUNICODE +#else // !UNICODE +#define CP_WINNEUTRAL CP_WINANSI +#endif // !UNICODE + +/***** transaction types *****/ + +#define XTYPF_NOBLOCK 0x0002 /* CBR_BLOCK will not work */ +#define XTYPF_NODATA 0x0004 /* DDE_FDEFERUPD */ +#define XTYPF_ACKREQ 0x0008 /* DDE_FACKREQ */ + +#define XCLASS_MASK 0xFC00 +#define XCLASS_BOOL 0x1000 +#define XCLASS_DATA 0x2000 +#define XCLASS_FLAGS 0x4000 +#define XCLASS_NOTIFICATION 0x8000 + +#define XTYP_ERROR (0x0000 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK ) +#define XTYP_ADVDATA (0x0010 | XCLASS_FLAGS ) +#define XTYP_ADVREQ (0x0020 | XCLASS_DATA | XTYPF_NOBLOCK ) +#define XTYP_ADVSTART (0x0030 | XCLASS_BOOL ) +#define XTYP_ADVSTOP (0x0040 | XCLASS_NOTIFICATION) +#define XTYP_EXECUTE (0x0050 | XCLASS_FLAGS ) +#define XTYP_CONNECT (0x0060 | XCLASS_BOOL | XTYPF_NOBLOCK) +#define XTYP_CONNECT_CONFIRM (0x0070 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK) +#define XTYP_XACT_COMPLETE (0x0080 | XCLASS_NOTIFICATION ) +#define XTYP_POKE (0x0090 | XCLASS_FLAGS ) +#define XTYP_REGISTER (0x00A0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK) +#define XTYP_REQUEST (0x00B0 | XCLASS_DATA ) +#define XTYP_DISCONNECT (0x00C0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK) +#define XTYP_UNREGISTER (0x00D0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK) +#define XTYP_WILDCONNECT (0x00E0 | XCLASS_DATA | XTYPF_NOBLOCK) + +#define XTYP_MASK 0x00F0 +#define XTYP_SHIFT 4 /* shift to turn XTYP_ into an index */ + +/***** Timeout constants *****/ + +#define TIMEOUT_ASYNC 0xFFFFFFFF + +/***** Transaction ID constants *****/ + +#define QID_SYNC 0xFFFFFFFF + +/****** public strings used in DDE ******/ + +#ifdef UNICODE +#define SZDDESYS_TOPIC L"System" +#define SZDDESYS_ITEM_TOPICS L"Topics" +#define SZDDESYS_ITEM_SYSITEMS L"SysItems" +#define SZDDESYS_ITEM_RTNMSG L"ReturnMessage" +#define SZDDESYS_ITEM_STATUS L"Status" +#define SZDDESYS_ITEM_FORMATS L"Formats" +#define SZDDESYS_ITEM_HELP L"Help" +#define SZDDE_ITEM_ITEMLIST L"TopicItemList" +#else +#define SZDDESYS_TOPIC "System" +#define SZDDESYS_ITEM_TOPICS "Topics" +#define SZDDESYS_ITEM_SYSITEMS "SysItems" +#define SZDDESYS_ITEM_RTNMSG "ReturnMessage" +#define SZDDESYS_ITEM_STATUS "Status" +#define SZDDESYS_ITEM_FORMATS "Formats" +#define SZDDESYS_ITEM_HELP "Help" +#define SZDDE_ITEM_ITEMLIST "TopicItemList" +#endif + + +/****** API entry points ******/ + +typedef HDDEDATA CALLBACK FNCALLBACK(UINT wType, UINT wFmt, HCONV hConv, + HSZ hsz1, HSZ hsz2, HDDEDATA hData, ULONG_PTR dwData1, ULONG_PTR dwData2); +typedef HDDEDATA (CALLBACK *PFNCALLBACK)(UINT wType, UINT wFmt, HCONV hConv, + HSZ hsz1, HSZ hsz2, HDDEDATA hData, ULONG_PTR dwData1, ULONG_PTR dwData2); + +#define CBR_BLOCK ((HDDEDATA)-1) + +/* DLL registration functions */ + +UINT +WINAPI +DdeInitializeA( + _Inout_ LPDWORD pidInst, + _In_ PFNCALLBACK pfnCallback, + _In_ DWORD afCmd, + _Reserved_ DWORD ulRes); +UINT +WINAPI +DdeInitializeW( + _Inout_ LPDWORD pidInst, + _In_ PFNCALLBACK pfnCallback, + _In_ DWORD afCmd, + _Reserved_ DWORD ulRes); +#ifdef UNICODE +#define DdeInitialize DdeInitializeW +#else +#define DdeInitialize DdeInitializeA +#endif // !UNICODE + +/* + * Callback filter flags for use with standard apps. + */ + +#define CBF_FAIL_SELFCONNECTIONS 0x00001000 +#define CBF_FAIL_CONNECTIONS 0x00002000 +#define CBF_FAIL_ADVISES 0x00004000 +#define CBF_FAIL_EXECUTES 0x00008000 +#define CBF_FAIL_POKES 0x00010000 +#define CBF_FAIL_REQUESTS 0x00020000 +#define CBF_FAIL_ALLSVRXACTIONS 0x0003f000 + +#define CBF_SKIP_CONNECT_CONFIRMS 0x00040000 +#define CBF_SKIP_REGISTRATIONS 0x00080000 +#define CBF_SKIP_UNREGISTRATIONS 0x00100000 +#define CBF_SKIP_DISCONNECTS 0x00200000 +#define CBF_SKIP_ALLNOTIFICATIONS 0x003c0000 + +/* + * Application command flags + */ +#define APPCMD_CLIENTONLY 0x00000010L +#define APPCMD_FILTERINITS 0x00000020L +#define APPCMD_MASK 0x00000FF0L + +/* + * Application classification flags + */ +#define APPCLASS_STANDARD 0x00000000L +#define APPCLASS_MASK 0x0000000FL + +BOOL +WINAPI +DdeUninitialize( + _In_ DWORD idInst); + +/* + * conversation enumeration functions + */ +HCONVLIST +WINAPI +DdeConnectList( + _In_ DWORD idInst, + _In_ HSZ hszService, + _In_ HSZ hszTopic, + _In_ HCONVLIST hConvList, + _In_opt_ PCONVCONTEXT pCC); + +HCONV +WINAPI +DdeQueryNextServer( + _In_ HCONVLIST hConvList, + _In_ HCONV hConvPrev); +BOOL +WINAPI +DdeDisconnectList( + _In_ HCONVLIST hConvList); + +/* + * conversation control functions + */ +HCONV +WINAPI +DdeConnect( + _In_ DWORD idInst, + _In_ HSZ hszService, + _In_ HSZ hszTopic, + _In_opt_ PCONVCONTEXT pCC); + +BOOL +WINAPI +DdeDisconnect( + _In_ HCONV hConv); + +HCONV +WINAPI +DdeReconnect( + _In_ HCONV hConv); + +UINT +WINAPI +DdeQueryConvInfo( + _In_ HCONV hConv, + _In_ DWORD idTransaction, + _Inout_ PCONVINFO pConvInfo); + +BOOL +WINAPI +DdeSetUserHandle( + _In_ HCONV hConv, + _In_ DWORD id, + _In_ DWORD_PTR hUser); + +BOOL +WINAPI +DdeAbandonTransaction( + _In_ DWORD idInst, + _In_ HCONV hConv, + _In_ DWORD idTransaction); + + +/* + * app server interface functions + */ +BOOL +WINAPI +DdePostAdvise( + _In_ DWORD idInst, + _In_ HSZ hszTopic, + _In_ HSZ hszItem); + +BOOL +WINAPI +DdeEnableCallback( + _In_ DWORD idInst, + _In_ HCONV hConv, + _In_ UINT wCmd); + +BOOL +WINAPI +DdeImpersonateClient( + _In_ HCONV hConv); + + +#define EC_ENABLEALL 0 +#define EC_ENABLEONE ST_BLOCKNEXT +#define EC_DISABLE ST_BLOCKED +#define EC_QUERYWAITING 2 + +HDDEDATA +WINAPI +DdeNameService( + _In_ DWORD idInst, + _In_opt_ HSZ hsz1, + _In_opt_ HSZ hsz2, + _In_ UINT afCmd); + +#define DNS_REGISTER 0x0001 +#define DNS_UNREGISTER 0x0002 +#define DNS_FILTERON 0x0004 +#define DNS_FILTEROFF 0x0008 + +/* + * app client interface functions + */ +HDDEDATA +WINAPI +DdeClientTransaction( + _In_opt_ LPBYTE pData, + _In_ DWORD cbData, + _In_ HCONV hConv, + _In_opt_ HSZ hszItem, + _In_ UINT wFmt, + _In_ UINT wType, + _In_ DWORD dwTimeout, + _Out_opt_ LPDWORD pdwResult); + + +/* + *data transfer functions + */ + +HDDEDATA +WINAPI +DdeCreateDataHandle( + _In_ DWORD idInst, + _In_reads_bytes_opt_(cb) LPBYTE pSrc, + _In_ DWORD cb, + _In_ DWORD cbOff, + _In_opt_ HSZ hszItem, + _In_ UINT wFmt, + _In_ UINT afCmd); + +HDDEDATA +WINAPI +DdeAddData( + _In_ HDDEDATA hData, + _In_reads_bytes_(cb) LPBYTE pSrc, + _In_ DWORD cb, + _In_ DWORD cbOff); + +DWORD +WINAPI +DdeGetData( + _In_ HDDEDATA hData, + _Out_writes_bytes_opt_(cbMax) LPBYTE pDst, + _In_ DWORD cbMax, + _In_ DWORD cbOff); + +LPBYTE +WINAPI +DdeAccessData( + _In_ HDDEDATA hData, + _Out_opt_ LPDWORD pcbDataSize); + +BOOL +WINAPI +DdeUnaccessData( + _In_ HDDEDATA hData); + +BOOL +WINAPI +DdeFreeDataHandle( + _In_ HDDEDATA hData); + +#define HDATA_APPOWNED 0x0001 + + +UINT +WINAPI +DdeGetLastError( + _In_ DWORD idInst); + + +#define DMLERR_NO_ERROR 0 /* must be 0 */ + +#define DMLERR_FIRST 0x4000 + +#define DMLERR_ADVACKTIMEOUT 0x4000 +#define DMLERR_BUSY 0x4001 +#define DMLERR_DATAACKTIMEOUT 0x4002 +#define DMLERR_DLL_NOT_INITIALIZED 0x4003 +#define DMLERR_DLL_USAGE 0x4004 +#define DMLERR_EXECACKTIMEOUT 0x4005 +#define DMLERR_INVALIDPARAMETER 0x4006 +#define DMLERR_LOW_MEMORY 0x4007 +#define DMLERR_MEMORY_ERROR 0x4008 +#define DMLERR_NOTPROCESSED 0x4009 +#define DMLERR_NO_CONV_ESTABLISHED 0x400a +#define DMLERR_POKEACKTIMEOUT 0x400b +#define DMLERR_POSTMSG_FAILED 0x400c +#define DMLERR_REENTRANCY 0x400d +#define DMLERR_SERVER_DIED 0x400e +#define DMLERR_SYS_ERROR 0x400f +#define DMLERR_UNADVACKTIMEOUT 0x4010 +#define DMLERR_UNFOUND_QUEUE_ID 0x4011 + +#define DMLERR_LAST 0x4011 + +HSZ +WINAPI +DdeCreateStringHandleA( + _In_ DWORD idInst, + _In_ LPCSTR psz, + _In_ int iCodePage); +HSZ +WINAPI +DdeCreateStringHandleW( + _In_ DWORD idInst, + _In_ LPCWSTR psz, + _In_ int iCodePage); +#ifdef UNICODE +#define DdeCreateStringHandle DdeCreateStringHandleW +#else +#define DdeCreateStringHandle DdeCreateStringHandleA +#endif // !UNICODE + +DWORD +WINAPI +DdeQueryStringA( + _In_ DWORD idInst, + _In_ HSZ hsz, + _Out_writes_opt_(cchMax) LPSTR psz, + _In_ DWORD cchMax, + _In_ int iCodePage); +DWORD +WINAPI +DdeQueryStringW( + _In_ DWORD idInst, + _In_ HSZ hsz, + _Out_writes_opt_(cchMax) LPWSTR psz, + _In_ DWORD cchMax, + _In_ int iCodePage); +#ifdef UNICODE +#define DdeQueryString DdeQueryStringW +#else +#define DdeQueryString DdeQueryStringA +#endif // !UNICODE + +BOOL +WINAPI +DdeFreeStringHandle( + _In_ DWORD idInst, + _In_ HSZ hsz); + +BOOL +WINAPI +DdeKeepStringHandle( + _In_ DWORD idInst, + _In_ HSZ hsz); + +int +WINAPI +DdeCmpStringHandles( + _In_ HSZ hsz1, + _In_ HSZ hsz2); + +#ifndef NODDEMLSPY +/* + * DDEML public debugging header file info + */ + +typedef struct tagDDEML_MSG_HOOK_DATA { // new for NT + UINT_PTR uiLo; // unpacked lo and hi parts of lParam + UINT_PTR uiHi; + DWORD cbData; // amount of data in message, if any. May be > than 32 bytes. + DWORD Data[8]; // data peeking by DDESPY is limited to 32 bytes. +} DDEML_MSG_HOOK_DATA, *PDDEML_MSG_HOOK_DATA; + + +typedef struct tagMONMSGSTRUCT { + UINT cb; + HWND hwndTo; + DWORD dwTime; + HANDLE hTask; + UINT wMsg; + WPARAM wParam; + LPARAM lParam; + DDEML_MSG_HOOK_DATA dmhd; // new for NT +} MONMSGSTRUCT, *PMONMSGSTRUCT; + +typedef struct tagMONCBSTRUCT { + UINT cb; + DWORD dwTime; + HANDLE hTask; + DWORD dwRet; + UINT wType; + UINT wFmt; + HCONV hConv; + HSZ hsz1; + HSZ hsz2; + HDDEDATA hData; + ULONG_PTR dwData1; + ULONG_PTR dwData2; + CONVCONTEXT cc; // new for NT for XTYP_CONNECT callbacks + DWORD cbData; // new for NT for data peeking + DWORD Data[8]; // new for NT for data peeking +} MONCBSTRUCT, *PMONCBSTRUCT; + +typedef struct tagMONHSZSTRUCTA { + UINT cb; + BOOL fsAction; /* MH_ value */ + DWORD dwTime; + HSZ hsz; + HANDLE hTask; + CHAR str[1]; +} MONHSZSTRUCTA, *PMONHSZSTRUCTA; +typedef struct tagMONHSZSTRUCTW { + UINT cb; + BOOL fsAction; /* MH_ value */ + DWORD dwTime; + HSZ hsz; + HANDLE hTask; + WCHAR str[1]; +} MONHSZSTRUCTW, *PMONHSZSTRUCTW; +#ifdef UNICODE +typedef MONHSZSTRUCTW MONHSZSTRUCT; +typedef PMONHSZSTRUCTW PMONHSZSTRUCT; +#else +typedef MONHSZSTRUCTA MONHSZSTRUCT; +typedef PMONHSZSTRUCTA PMONHSZSTRUCT; +#endif // UNICODE + +#define MH_CREATE 1 +#define MH_KEEP 2 +#define MH_DELETE 3 +#define MH_CLEANUP 4 + +typedef struct tagMONERRSTRUCT { + UINT cb; + UINT wLastError; + DWORD dwTime; + HANDLE hTask; +} MONERRSTRUCT, *PMONERRSTRUCT; + +typedef struct tagMONLINKSTRUCT { + UINT cb; + DWORD dwTime; + HANDLE hTask; + BOOL fEstablished; + BOOL fNoData; + HSZ hszSvc; + HSZ hszTopic; + HSZ hszItem; + UINT wFmt; + BOOL fServer; + HCONV hConvServer; + HCONV hConvClient; +} MONLINKSTRUCT, *PMONLINKSTRUCT; + +typedef struct tagMONCONVSTRUCT { + UINT cb; + BOOL fConnect; + DWORD dwTime; + HANDLE hTask; + HSZ hszSvc; + HSZ hszTopic; + HCONV hConvClient; // Globally unique value != apps local hConv + HCONV hConvServer; // Globally unique value != apps local hConv +} MONCONVSTRUCT, *PMONCONVSTRUCT; + +#define MAX_MONITORS 4 +#define APPCLASS_MONITOR 0x00000001L +#define XTYP_MONITOR (0x00F0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK) + +/* + * Callback filter flags for use with MONITOR apps - 0 implies no monitor + * callbacks. + */ +#define MF_HSZ_INFO 0x01000000 +#define MF_SENDMSGS 0x02000000 +#define MF_POSTMSGS 0x04000000 +#define MF_CALLBACKS 0x08000000 +#define MF_ERRORS 0x10000000 +#define MF_LINKS 0x20000000 +#define MF_CONV 0x40000000 + +#define MF_MASK 0xFF000000 +#endif /* NODDEMLSPY */ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + + +#endif /* _INC_DDEMLH */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddkernel.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddkernel.h new file mode 100644 index 0000000000000000000000000000000000000000..12bf52b6126394cd0965c82ac477c18aceebc06e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddkernel.h @@ -0,0 +1,311 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: ddkernel.h + * Content: APIs for accessing kernel mode support. + * + ***************************************************************************/ + +#ifndef __DDKM_INCLUDED__ +#define __DDKM_INCLUDED__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if defined( _WIN32 ) && !defined( _NO_COM ) +#define COM_NO_WINDOWS_H +#include +#else +#define IUnknown void +#undef CO_E_NOTINITIALIZED +#define CO_E_NOTINITIALIZED 0x800401F0L +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * GUIDS used by to get kernel interfaces + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +DEFINE_GUID( IID_IDirectDrawKernel, 0x8D56C120,0x6A08,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 ); +DEFINE_GUID( IID_IDirectDrawSurfaceKernel, 0x60755DA0,0x6A40,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 ); + +#endif + +/*============================================================================ + * + * DirectDraw Structures + * + * Various structures used to invoke the kernel API functions. + * + *==========================================================================*/ + +typedef struct IDirectDrawKernel FAR *LPDIRECTDRAWKERNEL; +typedef struct IDirectDrawSurfaceKernel FAR *LPDIRECTDRAWSURFACEKERNEL; +typedef struct _DDKERNELCAPS FAR *LPDDKERNELCAPS; + + +/* + * INTERACES FOLLOW: + * IDirectDrawKernel + * IVideoPort + */ + +/* + * IDirectDrawKernel + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawKernel +DECLARE_INTERFACE_( IDirectDrawKernel, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDraw methods ***/ + STDMETHOD(GetCaps)(THIS_ LPDDKERNELCAPS) PURE; + STDMETHOD(GetKernelHandle)(THIS_ PULONG_PTR) PURE; + STDMETHOD(ReleaseKernelHandle)(THIS) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawKernel_GetCaps(p, a) (p)->lpVtbl->GetCaps(p, a) +#define IDirectDrawKernel_GetKernelHandle(p, a) (p)->lpVtbl->GetKernelHandle(p, a) +#define IDirectDrawKernel_ReleaseKernelHandle(p) (p)->lpVtbl->ReleaseKernelHandle(p) +#endif + +#endif + +/* + * IDirectDrawSurfaceKernel + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawSurfaceKernel +DECLARE_INTERFACE_( IDirectDrawSurfaceKernel, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDraw methods ***/ + STDMETHOD(GetKernelHandle)(THIS_ PULONG_PTR) PURE; + STDMETHOD(ReleaseKernelHandle)(THIS) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawSurfaceKernel_GetKernelHandle(p, a) (p)->lpVtbl->GetKernelHandle(p, a) +#define IDirectDrawSurfaceKernel_ReleaseKernelHandle(p) (p)->lpVtbl->ReleaseKernelHandle(p) +#endif + +#endif + + +/* + * DDKERNELCAPS + */ +typedef struct _DDKERNELCAPS +{ + DWORD dwSize; // size of the DDKERNELCAPS structure + DWORD dwCaps; // Contains the DDKERNELCAPS_XXX flags + DWORD dwIRQCaps; // Contains the DDIRQ_XXX flags +} DDKERNELCAPS, FAR *LPDDKERNELCAPS; + + + +/**************************************************************************** + * + * DDKERNELCAPS CAPS + * + ****************************************************************************/ + +/* + * Indicates that the device supports field skipping. + */ +#define DDKERNELCAPS_SKIPFIELDS 0x00000001l + +/* + * Indicates that the device can support software autoflipping. + */ +#define DDKERNELCAPS_AUTOFLIP 0x00000002l + +/* + * Indicates that the device can switch between bob and weave. + */ +#define DDKERNELCAPS_SETSTATE 0x00000004l + +/* + * Indicates that a client can gain direct access to the frame buffer. + */ +#define DDKERNELCAPS_LOCK 0x00000008l + +/* + * Indicates that a client can manually flip the video port. + */ +#define DDKERNELCAPS_FLIPVIDEOPORT 0x00000010l + +/* + * Indicates that a client can manually flip the overlay. + */ +#define DDKERNELCAPS_FLIPOVERLAY 0x00000020l + +/* + * Indicates that the device supports a video port capture interface + * capable of transfering data to system memory. + */ +#define DDKERNELCAPS_CAPTURE_SYSMEM 0x00000040l + +/* + * Indicates that the device supports a video port capture interface + * capable of transfering data to non-local video memory. + */ +#define DDKERNELCAPS_CAPTURE_NONLOCALVIDMEM 0x00000080l + +/* + * Indicates that the device can report the polarity (even/odd) of + * the curent video field. + */ +#define DDKERNELCAPS_FIELDPOLARITY 0x00000100l + +/* + * Indicates that the device supports inverting the DIBs while capturing + * the data. + */ +#define DDKERNELCAPS_CAPTURE_INVERTED 0x00000200l + +/**************************************************************************** + * + * DDKERNELCAPS IRQ CAPS + * + ****************************************************************************/ + +/* + * The device can generate display VSYNC IRQs + */ +#define DDIRQ_DISPLAY_VSYNC 0x00000001l + +/* + * Reserved + */ +#define DDIRQ_RESERVED1 0x00000002l + +/* + * The device can generate video ports VSYNC IRQs using video port 0 + */ +#define DDIRQ_VPORT0_VSYNC 0x00000004l + +/* + * The device can generate video ports line IRQs using video port 0 + */ +#define DDIRQ_VPORT0_LINE 0x00000008l + +/* + * The device can generate video ports VSYNC IRQs using video port 1 + */ +#define DDIRQ_VPORT1_VSYNC 0x00000010l + +/* + * The device can generate video ports line IRQs using video port 1 + */ +#define DDIRQ_VPORT1_LINE 0x00000020l + +/* + * The device can generate video ports VSYNC IRQs using video port 2 + */ +#define DDIRQ_VPORT2_VSYNC 0x00000040l + +/* + * The device can generate video ports line IRQs using video port 2 + */ +#define DDIRQ_VPORT2_LINE 0x00000080l + +/* + * The device can generate video ports VSYNC IRQs using video port 3 + */ +#define DDIRQ_VPORT3_VSYNC 0x00000100l + +/* + * The device can generate video ports line IRQs using video port 3 + */ +#define DDIRQ_VPORT3_LINE 0x00000200l + +/* + * The device can generate video ports VSYNC IRQs using video port 4 + */ +#define DDIRQ_VPORT4_VSYNC 0x00000400l + +/* + * The device can generate video ports line IRQs using video port 4 + */ +#define DDIRQ_VPORT4_LINE 0x00000800l + +/* + * The device can generate video ports VSYNC IRQs using video port 5 + */ +#define DDIRQ_VPORT5_VSYNC 0x00001000l + +/* + * The device can generate video ports line IRQs using video port 5 + */ +#define DDIRQ_VPORT5_LINE 0x00002000l + +/* + * The device can generate video ports VSYNC IRQs using video port 6 + */ +#define DDIRQ_VPORT6_VSYNC 0x00004000l + +/* + * The device can generate video ports line IRQs using video port 6 + */ +#define DDIRQ_VPORT6_LINE 0x00008000l + +/* + * The device can generate video ports VSYNC IRQs using video port 7 + */ +#define DDIRQ_VPORT7_VSYNC 0x00010000l + +/* + * The device can generate video ports line IRQs using video port 7 + */ +#define DDIRQ_VPORT7_LINE 0x00020000l + +/* + * The device can generate video ports VSYNC IRQs using video port 8 + */ +#define DDIRQ_VPORT8_VSYNC 0x00040000l + +/* + * The device can generate video ports line IRQs using video port 8 + */ +#define DDIRQ_VPORT8_LINE 0x00080000l + +/* + * The device can generate video ports VSYNC IRQs using video port 9 + */ +#define DDIRQ_VPORT9_VSYNC 0x00010000l + +/* + * The device can generate video ports line IRQs using video port 9 + */ +#define DDIRQ_VPORT9_LINE 0x00020000l + + + +#ifdef __cplusplus +}; +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddkmapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddkmapi.h new file mode 100644 index 0000000000000000000000000000000000000000..100d018ab4cb8ab0e42ae6aad37ae491d6d5545d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddkmapi.h @@ -0,0 +1,503 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: ddkmapi.h + * Content: Kernel mode APIs for accessing DirectDraw support. + * + ***************************************************************************/ + +#ifndef __DDKMAPI_INCLUDED__ +#define __DDKMAPI_INCLUDED__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/* + * API entry point + */ +DWORD +FAR PASCAL +DxApi( + DWORD dwFunctionNum, + LPVOID lpvInBuffer, + DWORD cbInBuffer, + LPVOID lpvOutBuffer, + DWORD cbOutBuffer +); + +typedef +DWORD +(FAR PASCAL *LPDXAPI)( + DWORD dwFunctionNum, + LPVOID lpvInBuffer, + DWORD cbInBuffer, + LPVOID lpvOutBuffer, + DWORD cbOutBuffer +); + +#define DXAPI_MAJORVERSION 1 +#define DXAPI_MINORVERSION 0 + +#define DD_FIRST_DXAPI 0x500 + +typedef ULONG (FAR PASCAL *LPDD_NOTIFYCALLBACK)(DWORD dwFlags, PVOID pContext, DWORD dwParam1, DWORD dwParam2); + +/* + * Queries the DXAPI version number. + * + * Input: Null + * Output: LPDDGETVERSIONNUMBER + */ +#define DD_DXAPI_GETVERSIONNUMBER (DD_FIRST_DXAPI) + + typedef struct _DDGETVERSIONNUMBER + { + DWORD ddRVal; + DWORD dwMajorVersion; + DWORD dwMinorVersion; + } DDGETVERSIONNUMBER, FAR *LPDDGETVERSIONNUMBER; + +/* + * Closes the kernel mode handle. + * + * Input: LPDDCLOSEHANDLE + * Output: DWORD DirectDraw return value + */ +#define DD_DXAPI_CLOSEHANDLE (DD_FIRST_DXAPI+1) + + typedef struct _DDCLOSEHANDLE + { + HANDLE hHandle; + } DDCLOSEHANDLE, FAR *LPDDCLOSEHANDLE; + +/* + * Opens the DirectDraw object and returns a kernel mode handle. + * + * Input: LPDDOPENDIRECTDRAWIN + * Output: LPDDOPENDIRECTDRAWOUT + */ +#define DD_DXAPI_OPENDIRECTDRAW (DD_FIRST_DXAPI+2) + + typedef struct _DDOPENDIRECTDRAWIN + { + ULONG_PTR dwDirectDrawHandle; + LPDD_NOTIFYCALLBACK pfnDirectDrawClose; + PVOID pContext; + } DDOPENDIRECTDRAWIN, FAR *LPDDOPENDIRECTDRAWIN; + + typedef struct _DDOPENDIRECTDRAWOUT + { + DWORD ddRVal; + HANDLE hDirectDraw; + } DDOPENDIRECTDRAWOUT, FAR *LPDDOPENDIRECTDRAWOUT; + +/* + * Opens the surface and returns a kernel mode handle. + * + * Input: LPDDOPENSURFACEIN + * Output: LPDDOPENSURFACEOUT + */ +#define DD_DXAPI_OPENSURFACE (DD_FIRST_DXAPI+3) + + typedef struct _DDOPENSURFACEIN + { + HANDLE hDirectDraw; + ULONG_PTR dwSurfaceHandle; + LPDD_NOTIFYCALLBACK pfnSurfaceClose; + PVOID pContext; + } DDOPENSURFACEIN, FAR *LPDDOPENSURFACEIN; + + typedef struct _DDOPENSURFACEOUT + { + DWORD ddRVal; + HANDLE hSurface; + } DDOPENSURFACEOUT, FAR *LPDDOPENSURFACEOUT; + +/* + * Opens the VideoPort and returns a kernel mode handle. + * + * Input: LPDDOPENVIDEOPORTIN + * Output: LPDDOPENVIDEOPORTOUT + */ +#define DD_DXAPI_OPENVIDEOPORT (DD_FIRST_DXAPI+4) + + typedef struct _DDOPENVIDEOPORTIN + { + HANDLE hDirectDraw; + ULONG dwVideoPortHandle; + LPDD_NOTIFYCALLBACK pfnVideoPortClose; + PVOID pContext; + } DDOPENVIDEOPORTIN, FAR *LPDDOPENVIDEOPORTIN; + + typedef struct _DDOPENVIDEOPORTOUT + { + DWORD ddRVal; + HANDLE hVideoPort; + } DDOPENVIDEOPORTOUT, FAR *LPDDOPENVIDEOPORTOUT; + +/* + * Returns the kernel mode capabilities supported by the device + * + * Input: HANDLE hDirectDraw + * Output: LPDDGETKERNELCAPSOUT + */ +#define DD_DXAPI_GETKERNELCAPS (DD_FIRST_DXAPI+5) + + typedef struct _DDGETKERNELCAPSOUT + { + DWORD ddRVal; + DWORD dwCaps; + DWORD dwIRQCaps; + } DDGETKERNELCAPSOUT, FAR *LPDDGETKERNELCAPSOUT; + +/* + * Gets the current field number + * + * Input: LPDDGETFIELDNUMIN + * Output: LPDDGETFIELDNUMOUT + */ +#define DD_DXAPI_GET_VP_FIELD_NUMBER (DD_FIRST_DXAPI+6) + + typedef struct _DDGETFIELDNUMIN + { + HANDLE hDirectDraw; + HANDLE hVideoPort; + } DDGETFIELDNUMIN, FAR *LPDDGETFIELDNUMIN; + + typedef struct _DDGETFIELDNUMOUT + { + DWORD ddRVal; + DWORD dwFieldNum; + } DDGETFIELDNUMOUT, FAR *LPDDGETFIELDNUMOUT; + +/* + * Sets the current field number + * + * Input: LPDDSETFIELDNUM + * Output: DWORD DirectDraw return value + */ +#define DD_DXAPI_SET_VP_FIELD_NUMBER (DD_FIRST_DXAPI+7) + + typedef struct _DDSETFIELDNUM + { + HANDLE hDirectDraw; + HANDLE hVideoPort; + DWORD dwFieldNum; + } DDSETFIELDNUM, FAR *LPDDSETFIELDNUM; + +/* + * Indicates which fields should be skipped to undo the 3:2 pulldown. + * + * Input: LPDDSETSKIPFIELD + * Output: DWORD DirectDraw return value + */ +#define DD_DXAPI_SET_VP_SKIP_FIELD (DD_FIRST_DXAPI+8) + + typedef struct _DDSETSKIPFIELD + { + HANDLE hDirectDraw; + HANDLE hVideoPort; + DWORD dwStartField; + } DDSETSKIPFIELD, FAR *LPDDSETSKIPFIELD; + +/* + * Notifies whether the surface is in bob or weave mode. + * + * Input: LPDDGETSURFACESTATEIN + * Output: LPDDGETSURFACESTATEOUT + */ +#define DD_DXAPI_GET_SURFACE_STATE (DD_FIRST_DXAPI+9) + + typedef struct _DDGETSURFACESTATEIN + { + HANDLE hDirectDraw; + HANDLE hSurface; + } DDGETSURFACESTATEIN, FAR *LPDDGETSURFACESTATEIN; + + typedef struct _DDGETSURFACESTATEOUT + { + DWORD ddRVal; + DWORD dwStateCaps; + DWORD dwStateStatus; + } DDGETSURFACESTATEOUT, FAR *LPDDGETSURFACESTATEOUT; + +/* + * Changes the surface between bob and weave mode. + * + * Input: LPDDSETSURFACESTATE + * Output: DWORD DirectDraw return value + */ +#define DD_DXAPI_SET_SURFACE_STATE (DD_FIRST_DXAPI+10) + + typedef struct _DDSETSURFACETATE + { + HANDLE hDirectDraw; + HANDLE hSurface; + DWORD dwState; + DWORD dwStartField; + } DDSETSURFACESTATE, FAR *LPDDSETSURFACESTATE; + +/* + * Allows direct access to the surface memory + * + * Input: LPDDLOCKIN + * Output: LPDDLOCKOUT + */ +#define DD_DXAPI_LOCK (DD_FIRST_DXAPI+11) + + typedef struct _DDLOCKIN + { + HANDLE hDirectDraw; + HANDLE hSurface; + } DDLOCKIN, FAR *LPDDLOCKIN; + + typedef struct _DDLOCKOUT + { + DWORD ddRVal; + DWORD dwSurfHeight; + DWORD dwSurfWidth; + LONG lSurfPitch; + PVOID lpSurface; + DWORD SurfaceCaps; + DWORD dwFormatFlags; + DWORD dwFormatFourCC; + DWORD dwFormatBitCount; + union + { + DWORD dwRBitMask; + DWORD dwYBitMask; + }; + union + { + DWORD dwGBitMask; + DWORD dwUBitMask; + }; + union + { + DWORD dwBBitMask; + DWORD dwVBitMask; + }; + } DDLOCKOUT, FAR *LPDDLOCKOUT; + +/* + * Flips the overlay surface + * + * Input: LPDDFLIPOVERLAY + * Output: DWORD DirectDraw return value + */ +#define DD_DXAPI_FLIP_OVERLAY (DD_FIRST_DXAPI+12) + + typedef struct _DDFLIPOVERLAY + { + HANDLE hDirectDraw; + HANDLE hCurrentSurface; + HANDLE hTargetSurface; + DWORD dwFlags; + } DDFLIPOVERLAY, FAR *LPDDFLIPOVERLAY; + +/* + * Flips the video port + * + * Input: LPDDFLIPOVERLAY + * Output: DWORD DirectDraw return value + */ +#define DD_DXAPI_FLIP_VP (DD_FIRST_DXAPI+13) + + typedef struct _DDFLIPVIDEOPORT + { + HANDLE hDirectDraw; + HANDLE hVideoPort; + HANDLE hCurrentSurface; + HANDLE hTargetSurface; + DWORD dwFlags; + } DDFLIPVIDEOPORT, FAR *LPDDFLIPVIDEOPORT; + +/* + * Returns the current surface receiving the data while autoflipping + * + * Input: LPDDGETAUTOFLIPIN + * Output: LPDDGETAUTOFLIPOUT + */ +#define DD_DXAPI_GET_CURRENT_VP_AUTOFLIP_SURFACE (DD_FIRST_DXAPI+14) + + typedef struct _DDGETAUTOFLIPIN + { + HANDLE hDirectDraw; + HANDLE hVideoPort; + } DDGETAUTOFLIPIN, FAR *LPDDGETAUTOFLIPIN; + + typedef struct _DDGETAUTOFLIPOUT + { + DWORD ddRVal; + HANDLE hVideoSurface; + HANDLE hVBISurface; + BOOL bPolarity; + } DDGETAUTOFLIPOUT, FAR *LPDDGETAUTOFLIPOUT; + +/* + * Returns the surface that received the previous field of data (could + * be the same as current if video is interleaved) + * + * Input: LPDDGETAUTOFLIPIN + * Output: LPDDGETAUTOFLIPOUT + */ +#define DD_DXAPI_GET_LAST_VP_AUTOFLIP_SURFACE (DD_FIRST_DXAPI+15) + +/* + * Registers a callback for when various events occur. + * + * Input: LPDDREGISTERCALLBACK + * Output: DWORD DirectDraw return value + */ +#define DD_DXAPI_REGISTER_CALLBACK (DD_FIRST_DXAPI+16) + + typedef struct _DDREGISTERCALLBACK + { + HANDLE hDirectDraw; + ULONG dwEvents; + LPDD_NOTIFYCALLBACK pfnCallback; + ULONG_PTR dwParam1; + ULONG_PTR dwParam2; + PVOID pContext; + } DDREGISTERCALLBACK, FAR *LPDDREGISTERCALLBACK; + +/* + * Unregisters a callback for when various events occur. + * + * Input: LPDDREGISTERCALLBACK + * Output: DWORD DirectDraw return value + */ +#define DD_DXAPI_UNREGISTER_CALLBACK (DD_FIRST_DXAPI+17) + +/* + * Returns the polarity (odd/even) of the current field + * + * Input: LPDDGETPOLARITYIN + * Output: LPDDGETPOLARITYOUT + */ +#define DD_DXAPI_GET_POLARITY (DD_FIRST_DXAPI+18) + + typedef struct _DDGETPOLARITYIN + { + HANDLE hDirectDraw; + HANDLE hVideoPort; + } DDGETPOLARITYIN, FAR *LPDDGETPOLARITYIN; + + typedef struct _DDGETPOLARITYOUT + { + DWORD ddRVal; + BOOL bPolarity; + } DDGETPOLARITYOUT, FAR *LPDDGETPOLARITYOUT; + +/* + * Opens the device for capture + * + * Input: LPDDOPENCAPTUREDEVICEIN + * Output: LPDDOPENCAPTUREDEVICEOUT + */ +#define DD_DXAPI_OPENVPCAPTUREDEVICE (DD_FIRST_DXAPI+19) + + typedef struct _DDOPENVPCAPTUREDEVICEIN + { + HANDLE hDirectDraw; + HANDLE hVideoPort; + DWORD dwStartLine; + DWORD dwEndLine; + DWORD dwCaptureEveryNFields; + LPDD_NOTIFYCALLBACK pfnCaptureClose; + PVOID pContext; + DWORD dwFlags; + } DDOPENVPCAPTUREDEVICEIN, FAR * LPDDOPENVPCAPTUREDEVICEIN; + + typedef struct _DDOPENVPCAPTUREDEVICEOUT + { + DWORD ddRVal; + HANDLE hCapture; + } DDOPENVPCAPTUREDEVICEOUT, FAR * LPDDOPENVPCAPTUREDEVICEOUT; + + #define DDOPENCAPTURE_VIDEO 0x0001 // Capture from the video stream + #define DDOPENCAPTURE_VBI 0x0002 // Capture from the VBI stream + +/* + * Adds a capture buffer to the internal video port capture queue + * + * Input: LPDDADDVPCAPTUREBUFF + * Output: DWORD DirectDraw return value + */ +#define DD_DXAPI_ADDVPCAPTUREBUFFER (DD_FIRST_DXAPI+20) + + typedef struct _DDCAPBUFFINFO + { + DWORD dwFieldNumber; + DWORD bPolarity; + LARGE_INTEGER liTimeStamp; + DWORD ddRVal; + } DDCAPBUFFINFO, FAR * LPDDCAPBUFFINFO; + + typedef struct _DDADDVPCAPTUREBUFF + { + HANDLE hCapture; + DWORD dwFlags; + PMDL pMDL; + PKEVENT pKEvent; + LPDDCAPBUFFINFO lpBuffInfo; + } DDADDVPCAPTUREBUFF, FAR * LPDDADDVPCAPTUREBUFF; + + #define DDADDBUFF_SYSTEMMEMORY 0x0001 // lpBuffer points to sys mem + #define DDADDBUFF_NONLOCALVIDMEM 0x0002 // lpBuffer points to AGP mem + #define DDADDBUFF_INVERT 0x0004 // invert the buffer during capture + +/* + * Flushes the internal video port capture queue + * + * Input: HANDLE to capture device + * Output: DWORD DirectDraw return value + */ +#define DD_DXAPI_FLUSHVPCAPTUREBUFFERS (DD_FIRST_DXAPI+21) + + +/* + * State flags returned by DSVXD_DXAPI_DD_GET_SURFACE_STATE + */ +#define DDSTATE_BOB 0x0001 +#define DDSTATE_WEAVE 0x0002 +#define DDSTATE_EXPLICITLY_SET 0x0004 +#define DDSTATE_SOFTWARE_AUTOFLIP 0x0008 +#define DDSTATE_SKIPEVENFIELDS 0x0010 + +/* + * Event flags - passed into RegisterCallback + */ +#define DDEVENT_DISPLAY_VSYNC 0x0001 +#define DDEVENT_VP_VSYNC 0x0002 +#define DDEVENT_VP_LINE 0x0004 +#define DDEVENT_PRERESCHANGE 0x0008 +#define DDEVENT_POSTRESCHANGE 0x0010 +#define DDEVENT_PREDOSBOX 0x0020 +#define DDEVENT_POSTDOSBOX 0x0040 + +/* + * Notification flags - passed to the notification proc + */ +#define DDNOTIFY_DISPLAY_VSYNC 0x0001 // dwParam1 = hDirectDraw +#define DDNOTIFY_VP_VSYNC 0x0002 // dwParam1 = hVideoPort +#define DDNOTIFY_VP_LINE 0x0004 // dwParam1 = hVideoPort +#define DDNOTIFY_PRERESCHANGE 0x0008 // dwParam1 = hDirectDraw +#define DDNOTIFY_POSTRESCHANGE 0x0010 // dwParam1 = hDirectDraw +#define DDNOTIFY_PREDOSBOX 0x0020 // dwParam1 = hDirectDraw +#define DDNOTIFY_POSTDOSBOX 0x0040 // dwParam1 = hDirectDraw +#define DDNOTIFY_CLOSEDIRECTDRAW 0x0080 // dwParam1 = hDirectDraw +#define DDNOTIFY_CLOSESURFACE 0x0100 // dwParam1 = hSurface +#define DDNOTIFY_CLOSEVIDEOPORT 0x0200 // dwParam1 = hVideoPort +#define DDNOTIFY_CLOSECAPTURE 0x0400 // dwParam1 = hCapture + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpbackup.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpbackup.h new file mode 100644 index 0000000000000000000000000000000000000000..cfdfe7dffebe0ead31e8438ed9f5e3f1ecadd4d5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpbackup.h @@ -0,0 +1,385 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ddpbackup_h__ +#define __ddpbackup_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDedupReadFileCallback_FWD_DEFINED__ +#define __IDedupReadFileCallback_FWD_DEFINED__ +typedef interface IDedupReadFileCallback IDedupReadFileCallback; + +#endif /* __IDedupReadFileCallback_FWD_DEFINED__ */ + + +#ifndef __IDedupBackupSupport_FWD_DEFINED__ +#define __IDedupBackupSupport_FWD_DEFINED__ +typedef interface IDedupBackupSupport IDedupBackupSupport; + +#endif /* __IDedupBackupSupport_FWD_DEFINED__ */ + + +#ifndef __DedupBackupSupport_FWD_DEFINED__ +#define __DedupBackupSupport_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DedupBackupSupport DedupBackupSupport; +#else +typedef struct DedupBackupSupport DedupBackupSupport; +#endif /* __cplusplus */ + +#endif /* __DedupBackupSupport_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ddpbackup_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if (NTDDI_VERSION >= NTDDI_WIN8) +typedef struct _DEDUP_CONTAINER_EXTENT + { + ULONG ContainerIndex; + hyper StartOffset; + hyper Length; + } DEDUP_CONTAINER_EXTENT; + +typedef struct _DDP_FILE_EXTENT + { + hyper Length; + hyper Offset; + } DDP_FILE_EXTENT; + +typedef +enum _DEDUP_BACKUP_SUPPORT_PARAM_TYPE + { + DEDUP_RECONSTRUCT_UNOPTIMIZED = 1, + DEDUP_RECONSTRUCT_OPTIMIZED = 2 + } DEDUP_BACKUP_SUPPORT_PARAM_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_ddpbackup_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ddpbackup_0000_0000_v0_0_s_ifspec; + +#ifndef __IDedupReadFileCallback_INTERFACE_DEFINED__ +#define __IDedupReadFileCallback_INTERFACE_DEFINED__ + +/* interface IDedupReadFileCallback */ +/* [version][uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IDedupReadFileCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7BACC67A-2F1D-42D0-897E-6FF62DD533BB") + IDedupReadFileCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ReadBackupFile( + /* [in] */ __RPC__in BSTR FileFullPath, + /* [in] */ hyper FileOffset, + /* [in] */ ULONG SizeToRead, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(SizeToRead, *ReturnedSize) BYTE *FileBuffer, + /* [out] */ __RPC__out ULONG *ReturnedSize, + /* [in] */ DWORD Flags) = 0; + + virtual HRESULT STDMETHODCALLTYPE OrderContainersRestore( + /* [in] */ ULONG NumberOfContainers, + /* [size_is][in] */ __RPC__in_ecount_full(NumberOfContainers) BSTR *ContainerPaths, + /* [out] */ __RPC__out ULONG *ReadPlanEntries, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*ReadPlanEntries) DEDUP_CONTAINER_EXTENT **ReadPlan) = 0; + + virtual HRESULT STDMETHODCALLTYPE PreviewContainerRead( + /* [in] */ __RPC__in BSTR FileFullPath, + /* [in] */ ULONG NumberOfReads, + /* [size_is][in] */ __RPC__in_ecount_full(NumberOfReads) DDP_FILE_EXTENT *ReadOffsets) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDedupReadFileCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDedupReadFileCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDedupReadFileCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDedupReadFileCallback * This); + + DECLSPEC_XFGVIRT(IDedupReadFileCallback, ReadBackupFile) + HRESULT ( STDMETHODCALLTYPE *ReadBackupFile )( + __RPC__in IDedupReadFileCallback * This, + /* [in] */ __RPC__in BSTR FileFullPath, + /* [in] */ hyper FileOffset, + /* [in] */ ULONG SizeToRead, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(SizeToRead, *ReturnedSize) BYTE *FileBuffer, + /* [out] */ __RPC__out ULONG *ReturnedSize, + /* [in] */ DWORD Flags); + + DECLSPEC_XFGVIRT(IDedupReadFileCallback, OrderContainersRestore) + HRESULT ( STDMETHODCALLTYPE *OrderContainersRestore )( + __RPC__in IDedupReadFileCallback * This, + /* [in] */ ULONG NumberOfContainers, + /* [size_is][in] */ __RPC__in_ecount_full(NumberOfContainers) BSTR *ContainerPaths, + /* [out] */ __RPC__out ULONG *ReadPlanEntries, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*ReadPlanEntries) DEDUP_CONTAINER_EXTENT **ReadPlan); + + DECLSPEC_XFGVIRT(IDedupReadFileCallback, PreviewContainerRead) + HRESULT ( STDMETHODCALLTYPE *PreviewContainerRead )( + __RPC__in IDedupReadFileCallback * This, + /* [in] */ __RPC__in BSTR FileFullPath, + /* [in] */ ULONG NumberOfReads, + /* [size_is][in] */ __RPC__in_ecount_full(NumberOfReads) DDP_FILE_EXTENT *ReadOffsets); + + END_INTERFACE + } IDedupReadFileCallbackVtbl; + + interface IDedupReadFileCallback + { + CONST_VTBL struct IDedupReadFileCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDedupReadFileCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDedupReadFileCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDedupReadFileCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDedupReadFileCallback_ReadBackupFile(This,FileFullPath,FileOffset,SizeToRead,FileBuffer,ReturnedSize,Flags) \ + ( (This)->lpVtbl -> ReadBackupFile(This,FileFullPath,FileOffset,SizeToRead,FileBuffer,ReturnedSize,Flags) ) + +#define IDedupReadFileCallback_OrderContainersRestore(This,NumberOfContainers,ContainerPaths,ReadPlanEntries,ReadPlan) \ + ( (This)->lpVtbl -> OrderContainersRestore(This,NumberOfContainers,ContainerPaths,ReadPlanEntries,ReadPlan) ) + +#define IDedupReadFileCallback_PreviewContainerRead(This,FileFullPath,NumberOfReads,ReadOffsets) \ + ( (This)->lpVtbl -> PreviewContainerRead(This,FileFullPath,NumberOfReads,ReadOffsets) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDedupReadFileCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IDedupBackupSupport_INTERFACE_DEFINED__ +#define __IDedupBackupSupport_INTERFACE_DEFINED__ + +/* interface IDedupBackupSupport */ +/* [version][uuid][oleautomation][object] */ + + +EXTERN_C const IID IID_IDedupBackupSupport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C719D963-2B2D-415E-ACF7-7EB7CA596FF4") + IDedupBackupSupport : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RestoreFiles( + /* [in] */ ULONG NumberOfFiles, + /* [size_is][in] */ __RPC__in_ecount_full(NumberOfFiles) BSTR *FileFullPaths, + /* [in] */ __RPC__in_opt IDedupReadFileCallback *Store, + /* [in] */ DWORD Flags, + /* [size_is][out] */ __RPC__out_ecount_full(NumberOfFiles) HRESULT *FileResults) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDedupBackupSupportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDedupBackupSupport * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDedupBackupSupport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDedupBackupSupport * This); + + DECLSPEC_XFGVIRT(IDedupBackupSupport, RestoreFiles) + HRESULT ( STDMETHODCALLTYPE *RestoreFiles )( + __RPC__in IDedupBackupSupport * This, + /* [in] */ ULONG NumberOfFiles, + /* [size_is][in] */ __RPC__in_ecount_full(NumberOfFiles) BSTR *FileFullPaths, + /* [in] */ __RPC__in_opt IDedupReadFileCallback *Store, + /* [in] */ DWORD Flags, + /* [size_is][out] */ __RPC__out_ecount_full(NumberOfFiles) HRESULT *FileResults); + + END_INTERFACE + } IDedupBackupSupportVtbl; + + interface IDedupBackupSupport + { + CONST_VTBL struct IDedupBackupSupportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDedupBackupSupport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDedupBackupSupport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDedupBackupSupport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDedupBackupSupport_RestoreFiles(This,NumberOfFiles,FileFullPaths,Store,Flags,FileResults) \ + ( (This)->lpVtbl -> RestoreFiles(This,NumberOfFiles,FileFullPaths,Store,Flags,FileResults) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDedupBackupSupport_INTERFACE_DEFINED__ */ + + + +#ifndef __DedupBackup_LIBRARY_DEFINED__ +#define __DedupBackup_LIBRARY_DEFINED__ + +/* library DedupBackup */ +/* [version][uuid] */ + + +EXTERN_C const IID LIBID_DedupBackup; + +EXTERN_C const CLSID CLSID_DedupBackupSupport; + +#ifdef __cplusplus + +class DECLSPEC_UUID("73D6B2AD-2984-4715-B2E3-924C149744DD") +DedupBackupSupport; +#endif +#endif /* __DedupBackup_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_ddpbackup_0000_0003 */ +/* [local] */ + +#endif //(NTDDI_VERSION >= NTDDI_WIN8) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_ddpbackup_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ddpbackup_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpbackup.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpbackup.idl new file mode 100644 index 0000000000000000000000000000000000000000..f8578964ed2436ec730993919e45e43543cc33bb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpbackup.idl @@ -0,0 +1,97 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2010 Microsoft Corporation +// + +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)") + +typedef struct _DEDUP_CONTAINER_EXTENT { + ULONG ContainerIndex; // index of the container + hyper StartOffset; // start of the range + hyper Length; // length of the range +} DEDUP_CONTAINER_EXTENT; + +typedef struct _DDP_FILE_EXTENT +{ + hyper Length; + hyper Offset; +} DDP_FILE_EXTENT; + +typedef enum _DEDUP_BACKUP_SUPPORT_PARAM_TYPE +{ + DEDUP_RECONSTRUCT_UNOPTIMIZED = 1, + DEDUP_RECONSTRUCT_OPTIMIZED = 2, +} DEDUP_BACKUP_SUPPORT_PARAM_TYPE; + +/////////////////////////////////////////////////////////////////////////////// +// Interfaces +// + +// backup callback +[object, oleautomation, uuid(7BACC67A-2F1D-42D0-897E-6FF62DD533BB), version(1.0)] +interface IDedupReadFileCallback: IUnknown +{ + HRESULT ReadBackupFile( + [in] BSTR FileFullPath, + [in] hyper FileOffset, + [in] ULONG SizeToRead, + [out, size_is(SizeToRead), length_is(*ReturnedSize)] BYTE* FileBuffer, + [out] ULONG* ReturnedSize, + [in] DWORD Flags + ); + + HRESULT OrderContainersRestore( + [in] ULONG NumberOfContainers, + [in, size_is(NumberOfContainers)] BSTR* ContainerPaths, + [out] ULONG* ReadPlanEntries, + [out, size_is(,*ReadPlanEntries)] DEDUP_CONTAINER_EXTENT** ReadPlan + ); + + HRESULT PreviewContainerRead( + [in] BSTR FileFullPath, + [in] ULONG NumberOfReads, + [in, size_is(NumberOfReads)] DDP_FILE_EXTENT* ReadOffsets + ); +}; + +// backup support +[object, oleautomation, uuid(C719D963-2B2D-415E-ACF7-7EB7CA596FF4), version(1.0)] +interface IDedupBackupSupport: IUnknown +{ + HRESULT RestoreFiles( + [in] ULONG NumberOfFiles, + [in, size_is(NumberOfFiles)] BSTR* FileFullPaths, + [in] IDedupReadFileCallback* Store, + [in] DWORD Flags, + [out, size_is(NumberOfFiles)] HRESULT* FileResults + ); +}; + +[ + uuid(07AD57AF-6171-455B-B500-FEB99A6F4CF4), + version(1.0), +] +library DedupBackup +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [uuid(73D6B2AD-2984-4715-B2E3-924C149744DD)] + coclass DedupBackupSupport + { + [default] interface IDedupBackupSupport; + }; +} + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WIN8)") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpchunk.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpchunk.h new file mode 100644 index 0000000000000000000000000000000000000000..64a13bf6189f08803cd744df72156d1fac7ea13c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpchunk.h @@ -0,0 +1,370 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ddpchunk_h__ +#define __ddpchunk_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDedupChunkLibrary_FWD_DEFINED__ +#define __IDedupChunkLibrary_FWD_DEFINED__ +typedef interface IDedupChunkLibrary IDedupChunkLibrary; + +#endif /* __IDedupChunkLibrary_FWD_DEFINED__ */ + + +#ifndef __IDedupIterateChunksHash32_FWD_DEFINED__ +#define __IDedupIterateChunksHash32_FWD_DEFINED__ +typedef interface IDedupIterateChunksHash32 IDedupIterateChunksHash32; + +#endif /* __IDedupIterateChunksHash32_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ddpchunk_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +enum _DEDUP_SET_PARAM_TYPE + { + DEDUP_PT_MinChunkSizeBytes = 1, + DEDUP_PT_MaxChunkSizeBytes = 2, + DEDUP_PT_AvgChunkSizeBytes = 3, + DEDUP_PT_InvariantChunking = 4, + DEDUP_PT_DisableStrongHashComputation = 5 + } ; +#define DEDUP_CHUNKLIB_MAX_CHUNKS_ENUM ( 1024 ) + +typedef struct _DEDUP_CHUNK_INFO_HASH32 + { + DWORD ChunkFlags; + ULONGLONG ChunkOffsetInStream; + ULONGLONG ChunkSize; + BYTE HashVal[ 32 ]; + } DEDUP_CHUNK_INFO_HASH32; + + + +extern RPC_IF_HANDLE __MIDL_itf_ddpchunk_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ddpchunk_0000_0000_v0_0_s_ifspec; + +#ifndef __IDedupChunkLibrary_INTERFACE_DEFINED__ +#define __IDedupChunkLibrary_INTERFACE_DEFINED__ + +/* interface IDedupChunkLibrary */ +/* [object][version][uuid] */ + + +EXTERN_C const IID IID_IDedupChunkLibrary; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BB5144D7-2720-4DCC-8777-78597416EC23") + IDedupChunkLibrary : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeForPushBuffers( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Uninitialize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetParameter( + /* [in] */ DWORD dwParamType, + /* [in] */ VARIANT vParamValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE StartChunking( + /* [in] */ IID iidIteratorInterfaceID, + /* [out] */ __RPC__deref_out_opt IUnknown **ppChunksEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDedupChunkLibraryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDedupChunkLibrary * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDedupChunkLibrary * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDedupChunkLibrary * This); + + DECLSPEC_XFGVIRT(IDedupChunkLibrary, InitializeForPushBuffers) + HRESULT ( STDMETHODCALLTYPE *InitializeForPushBuffers )( + __RPC__in IDedupChunkLibrary * This); + + DECLSPEC_XFGVIRT(IDedupChunkLibrary, Uninitialize) + HRESULT ( STDMETHODCALLTYPE *Uninitialize )( + __RPC__in IDedupChunkLibrary * This); + + DECLSPEC_XFGVIRT(IDedupChunkLibrary, SetParameter) + HRESULT ( STDMETHODCALLTYPE *SetParameter )( + __RPC__in IDedupChunkLibrary * This, + /* [in] */ DWORD dwParamType, + /* [in] */ VARIANT vParamValue); + + DECLSPEC_XFGVIRT(IDedupChunkLibrary, StartChunking) + HRESULT ( STDMETHODCALLTYPE *StartChunking )( + __RPC__in IDedupChunkLibrary * This, + /* [in] */ IID iidIteratorInterfaceID, + /* [out] */ __RPC__deref_out_opt IUnknown **ppChunksEnum); + + END_INTERFACE + } IDedupChunkLibraryVtbl; + + interface IDedupChunkLibrary + { + CONST_VTBL struct IDedupChunkLibraryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDedupChunkLibrary_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDedupChunkLibrary_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDedupChunkLibrary_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDedupChunkLibrary_InitializeForPushBuffers(This) \ + ( (This)->lpVtbl -> InitializeForPushBuffers(This) ) + +#define IDedupChunkLibrary_Uninitialize(This) \ + ( (This)->lpVtbl -> Uninitialize(This) ) + +#define IDedupChunkLibrary_SetParameter(This,dwParamType,vParamValue) \ + ( (This)->lpVtbl -> SetParameter(This,dwParamType,vParamValue) ) + +#define IDedupChunkLibrary_StartChunking(This,iidIteratorInterfaceID,ppChunksEnum) \ + ( (This)->lpVtbl -> StartChunking(This,iidIteratorInterfaceID,ppChunksEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDedupChunkLibrary_INTERFACE_DEFINED__ */ + + +#ifndef __IDedupIterateChunksHash32_INTERFACE_DEFINED__ +#define __IDedupIterateChunksHash32_INTERFACE_DEFINED__ + +/* interface IDedupIterateChunksHash32 */ +/* [object][version][uuid] */ + + +EXTERN_C const IID IID_IDedupIterateChunksHash32; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("90B584D3-72AA-400F-9767-CAD866A5A2D8") + IDedupIterateChunksHash32 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE PushBuffer( + /* [size_is][in] */ __RPC__in_ecount_full(ulBufferLength) BYTE *pBuffer, + /* [in] */ ULONG ulBufferLength) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [range][in] */ __RPC__in_range(0,DEDUP_CHUNKLIB_MAX_CHUNKS_ENUM) ULONG ulMaxChunks, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulMaxChunks, *pulFetched) DEDUP_CHUNK_INFO_HASH32 *pArrChunks, + /* [out] */ __RPC__out ULONG *pulFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Drain( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDedupIterateChunksHash32Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDedupIterateChunksHash32 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDedupIterateChunksHash32 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDedupIterateChunksHash32 * This); + + DECLSPEC_XFGVIRT(IDedupIterateChunksHash32, PushBuffer) + HRESULT ( STDMETHODCALLTYPE *PushBuffer )( + __RPC__in IDedupIterateChunksHash32 * This, + /* [size_is][in] */ __RPC__in_ecount_full(ulBufferLength) BYTE *pBuffer, + /* [in] */ ULONG ulBufferLength); + + DECLSPEC_XFGVIRT(IDedupIterateChunksHash32, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IDedupIterateChunksHash32 * This, + /* [range][in] */ __RPC__in_range(0,DEDUP_CHUNKLIB_MAX_CHUNKS_ENUM) ULONG ulMaxChunks, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ulMaxChunks, *pulFetched) DEDUP_CHUNK_INFO_HASH32 *pArrChunks, + /* [out] */ __RPC__out ULONG *pulFetched); + + DECLSPEC_XFGVIRT(IDedupIterateChunksHash32, Drain) + HRESULT ( STDMETHODCALLTYPE *Drain )( + __RPC__in IDedupIterateChunksHash32 * This); + + DECLSPEC_XFGVIRT(IDedupIterateChunksHash32, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IDedupIterateChunksHash32 * This); + + END_INTERFACE + } IDedupIterateChunksHash32Vtbl; + + interface IDedupIterateChunksHash32 + { + CONST_VTBL struct IDedupIterateChunksHash32Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDedupIterateChunksHash32_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDedupIterateChunksHash32_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDedupIterateChunksHash32_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDedupIterateChunksHash32_PushBuffer(This,pBuffer,ulBufferLength) \ + ( (This)->lpVtbl -> PushBuffer(This,pBuffer,ulBufferLength) ) + +#define IDedupIterateChunksHash32_Next(This,ulMaxChunks,pArrChunks,pulFetched) \ + ( (This)->lpVtbl -> Next(This,ulMaxChunks,pArrChunks,pulFetched) ) + +#define IDedupIterateChunksHash32_Drain(This) \ + ( (This)->lpVtbl -> Drain(This) ) + +#define IDedupIterateChunksHash32_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDedupIterateChunksHash32_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ddpchunk_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_ddpchunk_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ddpchunk_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpchunk.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpchunk.idl new file mode 100644 index 0000000000000000000000000000000000000000..501d24042bb9c7302916fb0b31e8d4dbc38d944e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpchunk.idl @@ -0,0 +1,124 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + + + + +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +/////////////////////////////////////////////////////////////////////////////// +// Forward declarations +// + +interface IDedupIterateChunksHash32; + + +/////////////////////////////////////////////////////////////////////////////// +// Constants, error codes +// + + +// Parameter type for IDdpChunkingLibrary::SetParameter +enum _DEDUP_SET_PARAM_TYPE +{ + DEDUP_PT_MinChunkSizeBytes = 1, // the corresponding value is a VT_I4 specifying the min chunk size + DEDUP_PT_MaxChunkSizeBytes = 2, // the corresponding value is a VT_I4 specifying the max chunk size + DEDUP_PT_AvgChunkSizeBytes = 3, // the corresponding value is a VT_I4 specifying the avg chunk size + DEDUP_PT_InvariantChunking = 4, // the corresponding value is a VT_BOOL specifying whether the chunking algorithm needs to be invariant for the same data (default VARIANT_FALSE) + DEDUP_PT_DisableStrongHashComputation = 5, // the corresponding value is a VT_BOOL specifying whether the chunk library needs to skip computation of the strong hash +}; + +// Max # of chunks in a IDedupIterateChunksHash32::Next() call +const int DEDUP_CHUNKLIB_MAX_CHUNKS_ENUM = 1024; + + +/////////////////////////////////////////////////////////////////////////////// +// Structures +// + + +// Chunk information with 32-byte embedded hash value +typedef struct _DEDUP_CHUNK_INFO_HASH32 { + DWORD ChunkFlags; // Zero by default. Might be used to transmit extra information (see the DedupChunkInfoFlags enum) + ULONGLONG ChunkOffsetInStream; // Offset of the chunk in the stream + ULONGLONG ChunkSize; // size of the chunk + BYTE HashVal[32]; // 32-byte hash value for the chunk +} DEDUP_CHUNK_INFO_HASH32; + + +/////////////////////////////////////////////////////////////////////////////// +// Interfaces +// + + +// Main entry point +[uuid(BB5144D7-2720-4DCC-8777-78597416EC23), version(1.0)] +interface IDedupChunkLibrary: IUnknown +{ + // Initializes the COM object for chunking a series of buffers pushed through PushBuffer() + HRESULT InitializeForPushBuffers(); + + // Uninitializes the object (releases any internal buffers) + HRESULT Uninitialize(); + + // Sets a configuration parameter for the chunking alg. + // Needs to be called before enumeration. + // Parameters: + // - dwParamType - enumeration with the _DEDUP_SET_PARAM_TYPE values + // - dwParamValue - Param Value to be set to this object instance + HRESULT SetParameter([in] DWORD dwParamType, [in] VARIANT vParamValue); + + // Starts chunking and returns an iterator interface. + // Chunking will progress synchronously as soon as chunk info structures are enumerated. + // Notes: + // - The library will perform no throttling, prioritization, etc + // - chunk are guaranteed to be enumerated in increasing non-overlapping consecutive "segments" + // - The state is in-memory and lost after a crash + // Parameters: + // - iidIteratorInterfaceID - in W8, we only support IID_IDedupIterateChunksHash32 + // - ppChunksEnum - contains the returned IDedupIterateChunksHash32 instance + HRESULT StartChunking([in] IID iidIteratorInterfaceID, [out] IUnknown ** ppChunksEnum); +}; + + +// Chunk iterator interface (specialized for 32-byte hash) + [uuid(90B584D3-72AA-400F-9767-CAD866A5A2D8), version(1.0)] +interface IDedupIterateChunksHash32: IUnknown +{ + // Pushes the next in-memory buffer for chunking. Only works with InitializeForPushBuffers() + // After calling you need to enumerate all the chunks with Next() until you get DDP_E_MORE_BUFFERS. Only then you can call PushBuffer() again. + HRESULT PushBuffer( + [in, size_is(ulBufferLength)] BYTE * pBuffer, // Pointer to the buffer + [in] ULONG ulBufferLength // Buffer length + ); + + // Returns the next (*pulFetched) chunk structures in the supplied array + // Return values: + // - S_OK - Enumeration succeeded. More chunks are present (which require more calls to Next()) + // - S_FALSE: Enumeration succeeded and is done. + // - DDP_E_MORE_BUFFERS: You should call again PushBuffers() with a new buffer to continue the enumeration, or Drain() after the last buffer has been pushed + // Note: some chunks might remain unprocessed in memory, and will be processed only after the next PushBuffer() call, unless Drain() is called + HRESULT Next( + [in, range(0, DEDUP_CHUNKLIB_MAX_CHUNKS_ENUM)] ULONG ulMaxChunks, // Size of the input array + [out, size_is(ulMaxChunks), length_is(*pulFetched)] + DEDUP_CHUNK_INFO_HASH32 *pArrChunks, // Array of structures to be filled by Next() + [out] ULONG * pulFetched // Amount of filled chunk structures + ); + + // Makes the remaining unprocessed chunks available in Next(). To be called when there are no more buffers available + HRESULT Drain(); + + // Reset the internal state and release already-pushed buffers + HRESULT Reset(); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpcommon.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpcommon.h new file mode 100644 index 0000000000000000000000000000000000000000..e4578c93b85ca50652bdfef7c1343107e6d939e9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpcommon.h @@ -0,0 +1,164 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __ddpcommon_h__ +#define __ddpcommon_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +/* header files for imported files */ +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ddpcommon_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef +enum _DedupDataPortManagerOption + { + DedupDataPortManagerOption_None = 0, + DedupDataPortManagerOption_AutoStart = 0x1, + DedupDataPortManagerOption_SkipReconciliation = 0x2 + } DedupDataPortManagerOption; + +typedef +enum _DedupDataPortVolumeStatus + { + DedupDataPortVolumeStatus_Unknown = 0, + DedupDataPortVolumeStatus_NotEnabled = 1, + DedupDataPortVolumeStatus_NotAvailable = 2, + DedupDataPortVolumeStatus_Initializing = 3, + DedupDataPortVolumeStatus_Ready = 4, + DedupDataPortVolumeStatus_Maintenance = 5, + DedupDataPortVolumeStatus_Shutdown = 6 + } DedupDataPortVolumeStatus; + +typedef +enum _DedupDataPortRequestStatus + { + DedupDataPortRequestStatus_Unknown = 0, + DedupDataPortRequestStatus_Queued = 1, + DedupDataPortRequestStatus_Processing = 2, + DedupDataPortRequestStatus_Partial = 3, + DedupDataPortRequestStatus_Complete = 4, + DedupDataPortRequestStatus_Failed = 5 + } DedupDataPortRequestStatus; + +typedef +enum _DedupChunkFlags + { + DedupChunkFlags_None = 0, + DedupChunkFlags_Compressed = 1 + } DedupChunkFlags; + +typedef struct _DedupHash + { + BYTE Hash[ 32 ]; + } DedupHash; + +typedef struct _DedupChunk + { + DedupHash Hash; + DedupChunkFlags Flags; + DWORD LogicalSize; + DWORD DataSize; + } DedupChunk; + +typedef struct _DedupStreamEntry + { + DedupHash Hash; + DWORD LogicalSize; + DWORD64 Offset; + } DedupStreamEntry; + +typedef struct _DedupStream + { + BSTR Path; + DWORD64 Offset; + DWORD64 Length; + DWORD ChunkCount; + } DedupStream; + +typedef +enum _DedupChunkingAlgorithm + { + DedupChunkingAlgorithm_Unknonwn = 0, + DedupChunkingAlgorithm_V1 = 1 + } DedupChunkingAlgorithm; + +typedef +enum _DedupHashingAlgorithm + { + DedupHashingAlgorithm_Unknonwn = 0, + DedupHashingAlgorithm_V1 = 1 + } DedupHashingAlgorithm; + +typedef +enum _DedupCompressionAlgorithm + { + DedupCompressionAlgorithm_Unknonwn = 0, + DedupCompressionAlgorithm_Xpress = 1 + } DedupCompressionAlgorithm; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_ddpcommon_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ddpcommon_0000_0000_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpcommon.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpcommon.idl new file mode 100644 index 0000000000000000000000000000000000000000..9019898de6321a6589b04c74fa3e3cba3a2fab43 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpcommon.idl @@ -0,0 +1,131 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +import "oaidl.idl"; + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// +// Dataport +// + +// +// DataPort job management status +// +typedef enum _DedupDataPortManagerOption +{ + DedupDataPortManagerOption_None = 0x00000000, + DedupDataPortManagerOption_AutoStart = 0x00000001, + DedupDataPortManagerOption_SkipReconciliation = 0x00000002 +} DedupDataPortManagerOption; + +// +// Volume DataPort status +// +typedef enum _DedupDataPortVolumeStatus +{ + DedupDataPortVolumeStatus_Unknown = 0, // Invalid status + DedupDataPortVolumeStatus_NotEnabled = 1, // Deduplication not enabled on volume + DedupDataPortVolumeStatus_NotAvailable = 2, // DataPort job not running + DedupDataPortVolumeStatus_Initializing = 3, // DataPort Job initializing + DedupDataPortVolumeStatus_Ready = 4, // Ready to accept requests + DedupDataPortVolumeStatus_Maintenance = 5, // Reconciliation is running + DedupDataPortVolumeStatus_Shutdown = 6 // Job shutting down +} DedupDataPortVolumeStatus; + +// +// DataPort request status +// +typedef enum _DedupDataPortRequestStatus +{ + DedupDataPortRequestStatus_Unknown = 0, // Invalid status + DedupDataPortRequestStatus_Queued = 1, // Request queued + DedupDataPortRequestStatus_Processing = 2, // Running + DedupDataPortRequestStatus_Partial = 3, // Partial results available + DedupDataPortRequestStatus_Complete = 4, // Success + DedupDataPortRequestStatus_Failed = 5 // Failed +} DedupDataPortRequestStatus; + +// +// Chunk flags +// +typedef enum _DedupChunkFlags +{ + DedupChunkFlags_None = 0, // No flags + DedupChunkFlags_Compressed = 1 // Chunk is compressed +} DedupChunkFlags; + +// +// Dedup hash +// +typedef struct _DedupHash { + BYTE Hash[32]; // 32-byte chunk hash value +} DedupHash; + +// +// Dedup chunk info +// +typedef struct _DedupChunk +{ + DedupHash Hash; // Uncompressed data hash + DedupChunkFlags Flags; // Chunk flags + DWORD LogicalSize; // Uncompressed size; this field is optional + DWORD DataSize; // Compressed size +} DedupChunk; + +// +// Dedup stream entry +// +typedef struct _DedupStreamEntry +{ + DedupHash Hash; // Uncompressed data hash + DWORD LogicalSize; // Uncompressed size + DWORD64 Offset; // Start offset in file +} DedupStreamEntry; + +// +// Dedup stream +// +typedef struct _DedupStream +{ + BSTR Path; // File path + DWORD64 Offset; // Start offset in file + DWORD64 Length; // Stream length + DWORD ChunkCount; // Number of chunks +} DedupStream; + +// +// Chunking algorithm +// +typedef enum _DedupChunkingAlgorithm +{ + DedupChunkingAlgorithm_Unknonwn = 0, // Unknown + DedupChunkingAlgorithm_V1 = 1 // Deduplication V1 chunking algorithm +} DedupChunkingAlgorithm; + +// +// Hashing algorithm +// +typedef enum _DedupHashingAlgorithm +{ + DedupHashingAlgorithm_Unknonwn = 0, // Unknown + DedupHashingAlgorithm_V1 = 1 // Deduplication V1 hashing algorithm +} DedupHashingAlgorithm; + +// +// Compression algorithm +// +typedef enum _DedupCompressionAlgorithm +{ + DedupCompressionAlgorithm_Unknonwn = 0, // Unknown + DedupCompressionAlgorithm_Xpress = 1 // Xpress compression +} DedupCompressionAlgorithm; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpdataport.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpdataport.h new file mode 100644 index 0000000000000000000000000000000000000000..9f0248d8f3cc5a0b60163f171d59523accdb4129 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpdataport.h @@ -0,0 +1,579 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ddpdataport_h__ +#define __ddpdataport_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDedupDataPort_FWD_DEFINED__ +#define __IDedupDataPort_FWD_DEFINED__ +typedef interface IDedupDataPort IDedupDataPort; + +#endif /* __IDedupDataPort_FWD_DEFINED__ */ + + +#ifndef __IDedupDataPortManager_FWD_DEFINED__ +#define __IDedupDataPortManager_FWD_DEFINED__ +typedef interface IDedupDataPortManager IDedupDataPortManager; + +#endif /* __IDedupDataPortManager_FWD_DEFINED__ */ + + +#ifndef __IDedupDataPort_FWD_DEFINED__ +#define __IDedupDataPort_FWD_DEFINED__ +typedef interface IDedupDataPort IDedupDataPort; + +#endif /* __IDedupDataPort_FWD_DEFINED__ */ + + +#ifndef __IDedupDataPortManager_FWD_DEFINED__ +#define __IDedupDataPortManager_FWD_DEFINED__ +typedef interface IDedupDataPortManager IDedupDataPortManager; + +#endif /* __IDedupDataPortManager_FWD_DEFINED__ */ + + +#ifndef __DedupDataPort_FWD_DEFINED__ +#define __DedupDataPort_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DedupDataPort DedupDataPort; +#else +typedef struct DedupDataPort DedupDataPort; +#endif /* __cplusplus */ + +#endif /* __DedupDataPort_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "ddpcommon.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ddpdataport_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_ddpdataport_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ddpdataport_0000_0000_v0_0_s_ifspec; + +#ifndef __IDedupDataPort_INTERFACE_DEFINED__ +#define __IDedupDataPort_INTERFACE_DEFINED__ + +/* interface IDedupDataPort */ +/* [version][object][uuid] */ + + +EXTERN_C const IID IID_IDedupDataPort; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7963d734-40a9-4ea3-bbf6-5a89d26f7ae8") + IDedupDataPort : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStatus( + /* [out] */ __RPC__out DedupDataPortVolumeStatus *pStatus, + /* [optional][out] */ __RPC__out DWORD *pDataHeadroomMb) = 0; + + virtual HRESULT STDMETHODCALLTYPE LookupChunks( + /* [in] */ DWORD Count, + /* [size_is][in] */ __RPC__in_ecount_full(Count) DedupHash *pHashes, + /* [out] */ __RPC__out GUID *pRequestId) = 0; + + virtual HRESULT STDMETHODCALLTYPE InsertChunks( + /* [in] */ DWORD ChunkCount, + /* [size_is][in] */ __RPC__in_ecount_full(ChunkCount) DedupChunk *pChunkMetadata, + /* [in] */ DWORD DataByteCount, + /* [size_is][in] */ __RPC__in_ecount_full(DataByteCount) BYTE *pChunkData, + /* [out] */ __RPC__out GUID *pRequestId) = 0; + + virtual HRESULT STDMETHODCALLTYPE InsertChunksWithStream( + /* [in] */ DWORD ChunkCount, + /* [size_is][in] */ __RPC__in_ecount_full(ChunkCount) DedupChunk *pChunkMetadata, + /* [in] */ DWORD DataByteCount, + /* [in] */ __RPC__in_opt IStream *pChunkDataStream, + /* [out] */ __RPC__out GUID *pRequestId) = 0; + + virtual HRESULT STDMETHODCALLTYPE CommitStreams( + /* [in] */ DWORD StreamCount, + /* [size_is][in] */ __RPC__in_ecount_full(StreamCount) DedupStream *pStreams, + /* [in] */ DWORD EntryCount, + /* [size_is][in] */ __RPC__in_ecount_full(EntryCount) DedupStreamEntry *pEntries, + /* [out] */ __RPC__out GUID *pRequestId) = 0; + + virtual HRESULT STDMETHODCALLTYPE CommitStreamsWithStream( + /* [in] */ DWORD StreamCount, + /* [size_is][in] */ __RPC__in_ecount_full(StreamCount) DedupStream *pStreams, + /* [in] */ DWORD EntryCount, + /* [in] */ __RPC__in_opt IStream *pEntriesStream, + /* [out] */ __RPC__out GUID *pRequestId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreams( + /* [in] */ DWORD StreamCount, + /* [size_is][in] */ __RPC__in_ecount_full(StreamCount) BSTR *pStreamPaths, + /* [out] */ __RPC__out GUID *pRequestId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamsResults( + /* [in] */ GUID RequestId, + /* [in] */ DWORD MaxWaitMs, + /* [in] */ DWORD StreamEntryIndex, + /* [out] */ __RPC__out DWORD *pStreamCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pStreamCount) DedupStream **ppStreams, + /* [out] */ __RPC__out DWORD *pEntryCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pEntryCount) DedupStreamEntry **ppEntries, + /* [out] */ __RPC__out DedupDataPortRequestStatus *pStatus, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pStreamCount) HRESULT **ppItemResults) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChunks( + /* [in] */ DWORD Count, + /* [size_is][in] */ __RPC__in_ecount_full(Count) DedupHash *pHashes, + /* [out] */ __RPC__out GUID *pRequestId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetChunksResults( + /* [in] */ GUID RequestId, + /* [in] */ DWORD MaxWaitMs, + /* [in] */ DWORD ChunkIndex, + /* [out] */ __RPC__out DWORD *pChunkCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pChunkCount) DedupChunk **ppChunkMetadata, + /* [out] */ __RPC__out DWORD *pDataByteCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pDataByteCount) BYTE **ppChunkData, + /* [out] */ __RPC__out DedupDataPortRequestStatus *pStatus, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pChunkCount) HRESULT **ppItemResults) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRequestStatus( + /* [in] */ GUID RequestId, + /* [out] */ __RPC__out DedupDataPortRequestStatus *pStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRequestResults( + /* [in] */ GUID RequestId, + /* [in] */ DWORD MaxWaitMs, + /* [out] */ __RPC__out HRESULT *pBatchResult, + /* [out] */ __RPC__out DWORD *pBatchCount, + /* [out] */ __RPC__out DedupDataPortRequestStatus *pStatus, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pBatchCount) HRESULT **ppItemResults) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDedupDataPortVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDedupDataPort * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDedupDataPort * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDedupDataPort * This); + + DECLSPEC_XFGVIRT(IDedupDataPort, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in IDedupDataPort * This, + /* [out] */ __RPC__out DedupDataPortVolumeStatus *pStatus, + /* [optional][out] */ __RPC__out DWORD *pDataHeadroomMb); + + DECLSPEC_XFGVIRT(IDedupDataPort, LookupChunks) + HRESULT ( STDMETHODCALLTYPE *LookupChunks )( + __RPC__in IDedupDataPort * This, + /* [in] */ DWORD Count, + /* [size_is][in] */ __RPC__in_ecount_full(Count) DedupHash *pHashes, + /* [out] */ __RPC__out GUID *pRequestId); + + DECLSPEC_XFGVIRT(IDedupDataPort, InsertChunks) + HRESULT ( STDMETHODCALLTYPE *InsertChunks )( + __RPC__in IDedupDataPort * This, + /* [in] */ DWORD ChunkCount, + /* [size_is][in] */ __RPC__in_ecount_full(ChunkCount) DedupChunk *pChunkMetadata, + /* [in] */ DWORD DataByteCount, + /* [size_is][in] */ __RPC__in_ecount_full(DataByteCount) BYTE *pChunkData, + /* [out] */ __RPC__out GUID *pRequestId); + + DECLSPEC_XFGVIRT(IDedupDataPort, InsertChunksWithStream) + HRESULT ( STDMETHODCALLTYPE *InsertChunksWithStream )( + __RPC__in IDedupDataPort * This, + /* [in] */ DWORD ChunkCount, + /* [size_is][in] */ __RPC__in_ecount_full(ChunkCount) DedupChunk *pChunkMetadata, + /* [in] */ DWORD DataByteCount, + /* [in] */ __RPC__in_opt IStream *pChunkDataStream, + /* [out] */ __RPC__out GUID *pRequestId); + + DECLSPEC_XFGVIRT(IDedupDataPort, CommitStreams) + HRESULT ( STDMETHODCALLTYPE *CommitStreams )( + __RPC__in IDedupDataPort * This, + /* [in] */ DWORD StreamCount, + /* [size_is][in] */ __RPC__in_ecount_full(StreamCount) DedupStream *pStreams, + /* [in] */ DWORD EntryCount, + /* [size_is][in] */ __RPC__in_ecount_full(EntryCount) DedupStreamEntry *pEntries, + /* [out] */ __RPC__out GUID *pRequestId); + + DECLSPEC_XFGVIRT(IDedupDataPort, CommitStreamsWithStream) + HRESULT ( STDMETHODCALLTYPE *CommitStreamsWithStream )( + __RPC__in IDedupDataPort * This, + /* [in] */ DWORD StreamCount, + /* [size_is][in] */ __RPC__in_ecount_full(StreamCount) DedupStream *pStreams, + /* [in] */ DWORD EntryCount, + /* [in] */ __RPC__in_opt IStream *pEntriesStream, + /* [out] */ __RPC__out GUID *pRequestId); + + DECLSPEC_XFGVIRT(IDedupDataPort, GetStreams) + HRESULT ( STDMETHODCALLTYPE *GetStreams )( + __RPC__in IDedupDataPort * This, + /* [in] */ DWORD StreamCount, + /* [size_is][in] */ __RPC__in_ecount_full(StreamCount) BSTR *pStreamPaths, + /* [out] */ __RPC__out GUID *pRequestId); + + DECLSPEC_XFGVIRT(IDedupDataPort, GetStreamsResults) + HRESULT ( STDMETHODCALLTYPE *GetStreamsResults )( + __RPC__in IDedupDataPort * This, + /* [in] */ GUID RequestId, + /* [in] */ DWORD MaxWaitMs, + /* [in] */ DWORD StreamEntryIndex, + /* [out] */ __RPC__out DWORD *pStreamCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pStreamCount) DedupStream **ppStreams, + /* [out] */ __RPC__out DWORD *pEntryCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pEntryCount) DedupStreamEntry **ppEntries, + /* [out] */ __RPC__out DedupDataPortRequestStatus *pStatus, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pStreamCount) HRESULT **ppItemResults); + + DECLSPEC_XFGVIRT(IDedupDataPort, GetChunks) + HRESULT ( STDMETHODCALLTYPE *GetChunks )( + __RPC__in IDedupDataPort * This, + /* [in] */ DWORD Count, + /* [size_is][in] */ __RPC__in_ecount_full(Count) DedupHash *pHashes, + /* [out] */ __RPC__out GUID *pRequestId); + + DECLSPEC_XFGVIRT(IDedupDataPort, GetChunksResults) + HRESULT ( STDMETHODCALLTYPE *GetChunksResults )( + __RPC__in IDedupDataPort * This, + /* [in] */ GUID RequestId, + /* [in] */ DWORD MaxWaitMs, + /* [in] */ DWORD ChunkIndex, + /* [out] */ __RPC__out DWORD *pChunkCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pChunkCount) DedupChunk **ppChunkMetadata, + /* [out] */ __RPC__out DWORD *pDataByteCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pDataByteCount) BYTE **ppChunkData, + /* [out] */ __RPC__out DedupDataPortRequestStatus *pStatus, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pChunkCount) HRESULT **ppItemResults); + + DECLSPEC_XFGVIRT(IDedupDataPort, GetRequestStatus) + HRESULT ( STDMETHODCALLTYPE *GetRequestStatus )( + __RPC__in IDedupDataPort * This, + /* [in] */ GUID RequestId, + /* [out] */ __RPC__out DedupDataPortRequestStatus *pStatus); + + DECLSPEC_XFGVIRT(IDedupDataPort, GetRequestResults) + HRESULT ( STDMETHODCALLTYPE *GetRequestResults )( + __RPC__in IDedupDataPort * This, + /* [in] */ GUID RequestId, + /* [in] */ DWORD MaxWaitMs, + /* [out] */ __RPC__out HRESULT *pBatchResult, + /* [out] */ __RPC__out DWORD *pBatchCount, + /* [out] */ __RPC__out DedupDataPortRequestStatus *pStatus, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pBatchCount) HRESULT **ppItemResults); + + END_INTERFACE + } IDedupDataPortVtbl; + + interface IDedupDataPort + { + CONST_VTBL struct IDedupDataPortVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDedupDataPort_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDedupDataPort_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDedupDataPort_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDedupDataPort_GetStatus(This,pStatus,pDataHeadroomMb) \ + ( (This)->lpVtbl -> GetStatus(This,pStatus,pDataHeadroomMb) ) + +#define IDedupDataPort_LookupChunks(This,Count,pHashes,pRequestId) \ + ( (This)->lpVtbl -> LookupChunks(This,Count,pHashes,pRequestId) ) + +#define IDedupDataPort_InsertChunks(This,ChunkCount,pChunkMetadata,DataByteCount,pChunkData,pRequestId) \ + ( (This)->lpVtbl -> InsertChunks(This,ChunkCount,pChunkMetadata,DataByteCount,pChunkData,pRequestId) ) + +#define IDedupDataPort_InsertChunksWithStream(This,ChunkCount,pChunkMetadata,DataByteCount,pChunkDataStream,pRequestId) \ + ( (This)->lpVtbl -> InsertChunksWithStream(This,ChunkCount,pChunkMetadata,DataByteCount,pChunkDataStream,pRequestId) ) + +#define IDedupDataPort_CommitStreams(This,StreamCount,pStreams,EntryCount,pEntries,pRequestId) \ + ( (This)->lpVtbl -> CommitStreams(This,StreamCount,pStreams,EntryCount,pEntries,pRequestId) ) + +#define IDedupDataPort_CommitStreamsWithStream(This,StreamCount,pStreams,EntryCount,pEntriesStream,pRequestId) \ + ( (This)->lpVtbl -> CommitStreamsWithStream(This,StreamCount,pStreams,EntryCount,pEntriesStream,pRequestId) ) + +#define IDedupDataPort_GetStreams(This,StreamCount,pStreamPaths,pRequestId) \ + ( (This)->lpVtbl -> GetStreams(This,StreamCount,pStreamPaths,pRequestId) ) + +#define IDedupDataPort_GetStreamsResults(This,RequestId,MaxWaitMs,StreamEntryIndex,pStreamCount,ppStreams,pEntryCount,ppEntries,pStatus,ppItemResults) \ + ( (This)->lpVtbl -> GetStreamsResults(This,RequestId,MaxWaitMs,StreamEntryIndex,pStreamCount,ppStreams,pEntryCount,ppEntries,pStatus,ppItemResults) ) + +#define IDedupDataPort_GetChunks(This,Count,pHashes,pRequestId) \ + ( (This)->lpVtbl -> GetChunks(This,Count,pHashes,pRequestId) ) + +#define IDedupDataPort_GetChunksResults(This,RequestId,MaxWaitMs,ChunkIndex,pChunkCount,ppChunkMetadata,pDataByteCount,ppChunkData,pStatus,ppItemResults) \ + ( (This)->lpVtbl -> GetChunksResults(This,RequestId,MaxWaitMs,ChunkIndex,pChunkCount,ppChunkMetadata,pDataByteCount,ppChunkData,pStatus,ppItemResults) ) + +#define IDedupDataPort_GetRequestStatus(This,RequestId,pStatus) \ + ( (This)->lpVtbl -> GetRequestStatus(This,RequestId,pStatus) ) + +#define IDedupDataPort_GetRequestResults(This,RequestId,MaxWaitMs,pBatchResult,pBatchCount,pStatus,ppItemResults) \ + ( (This)->lpVtbl -> GetRequestResults(This,RequestId,MaxWaitMs,pBatchResult,pBatchCount,pStatus,ppItemResults) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDedupDataPort_INTERFACE_DEFINED__ */ + + +#ifndef __IDedupDataPortManager_INTERFACE_DEFINED__ +#define __IDedupDataPortManager_INTERFACE_DEFINED__ + +/* interface IDedupDataPortManager */ +/* [version][object][uuid] */ + + +EXTERN_C const IID IID_IDedupDataPortManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("44677452-b90a-445e-8192-cdcfe81511fb") + IDedupDataPortManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetConfiguration( + /* [out] */ __RPC__out DWORD *pMinChunkSize, + /* [out] */ __RPC__out DWORD *pMaxChunkSize, + /* [out] */ __RPC__out DedupChunkingAlgorithm *pChunkingAlgorithm, + /* [out] */ __RPC__out DedupHashingAlgorithm *pHashingAlgorithm, + /* [out] */ __RPC__out DedupCompressionAlgorithm *pCompressionAlgorithm) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVolumeStatus( + /* [in] */ DWORD Options, + /* [in] */ __RPC__in BSTR Path, + /* [out] */ __RPC__out DedupDataPortVolumeStatus *pStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVolumeDataPort( + /* [in] */ DWORD Options, + /* [in] */ __RPC__in BSTR Path, + /* [out] */ __RPC__deref_out_opt IDedupDataPort **ppDataPort) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDedupDataPortManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDedupDataPortManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDedupDataPortManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDedupDataPortManager * This); + + DECLSPEC_XFGVIRT(IDedupDataPortManager, GetConfiguration) + HRESULT ( STDMETHODCALLTYPE *GetConfiguration )( + __RPC__in IDedupDataPortManager * This, + /* [out] */ __RPC__out DWORD *pMinChunkSize, + /* [out] */ __RPC__out DWORD *pMaxChunkSize, + /* [out] */ __RPC__out DedupChunkingAlgorithm *pChunkingAlgorithm, + /* [out] */ __RPC__out DedupHashingAlgorithm *pHashingAlgorithm, + /* [out] */ __RPC__out DedupCompressionAlgorithm *pCompressionAlgorithm); + + DECLSPEC_XFGVIRT(IDedupDataPortManager, GetVolumeStatus) + HRESULT ( STDMETHODCALLTYPE *GetVolumeStatus )( + __RPC__in IDedupDataPortManager * This, + /* [in] */ DWORD Options, + /* [in] */ __RPC__in BSTR Path, + /* [out] */ __RPC__out DedupDataPortVolumeStatus *pStatus); + + DECLSPEC_XFGVIRT(IDedupDataPortManager, GetVolumeDataPort) + HRESULT ( STDMETHODCALLTYPE *GetVolumeDataPort )( + __RPC__in IDedupDataPortManager * This, + /* [in] */ DWORD Options, + /* [in] */ __RPC__in BSTR Path, + /* [out] */ __RPC__deref_out_opt IDedupDataPort **ppDataPort); + + END_INTERFACE + } IDedupDataPortManagerVtbl; + + interface IDedupDataPortManager + { + CONST_VTBL struct IDedupDataPortManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDedupDataPortManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDedupDataPortManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDedupDataPortManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDedupDataPortManager_GetConfiguration(This,pMinChunkSize,pMaxChunkSize,pChunkingAlgorithm,pHashingAlgorithm,pCompressionAlgorithm) \ + ( (This)->lpVtbl -> GetConfiguration(This,pMinChunkSize,pMaxChunkSize,pChunkingAlgorithm,pHashingAlgorithm,pCompressionAlgorithm) ) + +#define IDedupDataPortManager_GetVolumeStatus(This,Options,Path,pStatus) \ + ( (This)->lpVtbl -> GetVolumeStatus(This,Options,Path,pStatus) ) + +#define IDedupDataPortManager_GetVolumeDataPort(This,Options,Path,ppDataPort) \ + ( (This)->lpVtbl -> GetVolumeDataPort(This,Options,Path,ppDataPort) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDedupDataPortManager_INTERFACE_DEFINED__ */ + + + +#ifndef __DedupDataPort_LIBRARY_DEFINED__ +#define __DedupDataPort_LIBRARY_DEFINED__ + +/* library DedupDataPort */ +/* [version][uuid] */ + + + + +EXTERN_C const IID LIBID_DedupDataPort; + +EXTERN_C const CLSID CLSID_DedupDataPort; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8f107207-1829-48b2-a64b-e61f8e0d9acb") +DedupDataPort; +#endif +#endif /* __DedupDataPort_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_ddpdataport_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_ddpdataport_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ddpdataport_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpdataport.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpdataport.idl new file mode 100644 index 0000000000000000000000000000000000000000..b095584ab18c6b6506b6637c46308d06268bbc47 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddpdataport.idl @@ -0,0 +1,183 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +import "oaidl.idl"; +import "ocidl.idl"; + +import "ddpcommon.idl"; + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// +// DataPort interface +// +[uuid(7963d734-40a9-4ea3-bbf6-5a89d26f7ae8), object, version(1.0)] +interface IDedupDataPort : IUnknown +{ + // Get DataPort status + HRESULT GetStatus( + [out] DedupDataPortVolumeStatus* pStatus, // volume status + [out, optional] DWORD* pDataHeadroomMb // amount of data in MB that can be ingested before maintenance + ); + + // Lookup chunks + HRESULT LookupChunks( + [in] DWORD Count, // chunk count + [in, size_is(Count)] DedupHash* pHashes, // chunk hashes + [out] GUID* pRequestId // request id + ); + + // Insert chunks + HRESULT InsertChunks( + [in] DWORD ChunkCount, // chunk count + [in, size_is(ChunkCount)] DedupChunk* pChunkMetadata, // chunk metadata + [in] DWORD DataByteCount, // data byte count + [in, size_is(DataByteCount)] BYTE* pChunkData, // chunk data + [out] GUID* pRequestId // request id + ); + + // Insert chunks using IStream for chunk data + HRESULT InsertChunksWithStream( + [in] DWORD ChunkCount, // chunk count + [in, size_is(ChunkCount)] DedupChunk* pChunkMetadata, // chunk metadata + [in] DWORD DataByteCount, // data byte count + [in] IStream* pChunkDataStream, // chunk data stream + [out] GUID* pRequestId // request id + ); + + // Commit streams + HRESULT CommitStreams( + [in] DWORD StreamCount, // stream count + [in, size_is(StreamCount)] DedupStream* pStreams, // streams + [in] DWORD EntryCount, // stream entry count + [in, size_is(EntryCount)] DedupStreamEntry* pEntries, // stream entries + [out] GUID* pRequestId // request id + ); + + // Commit streams using IStream for stream entries + HRESULT CommitStreamsWithStream( + [in] DWORD StreamCount, // stream count + [in, size_is(StreamCount)] DedupStream* pStreams, // streams + [in] DWORD EntryCount, // stream entry count + [in] IStream* pEntriesStream, // stream entries stream + [out] GUID* pRequestId // request id + ); + + // Get streams + HRESULT GetStreams( + [in] DWORD StreamCount, // stream count + [in, size_is(StreamCount)] BSTR* pStreamPaths, // stream paths + [out] GUID* pRequestId // request id + ); + + // Get streams results + HRESULT GetStreamsResults( + [in] GUID RequestId, // request id of the GetStreams request + [in] DWORD MaxWaitMs, // max milliseconds to wait + [in] DWORD StreamEntryIndex, // index of first stream entry + [out] DWORD* pStreamCount, // stream count + [out, size_is(, *pStreamCount)] DedupStream** ppStreams, // streams + [out] DWORD* pEntryCount, // stream entry count + [out, size_is(, *pEntryCount)] DedupStreamEntry** ppEntries, // stream entries + [out] DedupDataPortRequestStatus* pStatus, // request status + [out, size_is(, *pStreamCount)] HRESULT** ppItemResults // item results + ); + + // Get chunks + HRESULT GetChunks( + [in] DWORD Count, // chunk count + [in, size_is(Count)] DedupHash* pHashes, // chunk hashes + [out] GUID* pRequestId // request id + ); + + // Get chunks results + HRESULT GetChunksResults( + [in] GUID RequestId, // request id of the GetChunks request + [in] DWORD MaxWaitMs, // max milliseconds to wait + [in] DWORD ChunkIndex, // index of first chunk + [out] DWORD* pChunkCount, // chunk count + [out, size_is(, *pChunkCount)] DedupChunk** ppChunkMetadata, // chunk metadata + [out] DWORD* pDataByteCount, // data byte count + [out, size_is(, *pDataByteCount)] BYTE** ppChunkData, // chunk data + [out] DedupDataPortRequestStatus* pStatus, // request status + [out, size_is(, *pChunkCount)] HRESULT** ppItemResults // item results + ); + + // Get request status + HRESULT GetRequestStatus( + [in] GUID RequestId, // request id + [out] DedupDataPortRequestStatus* pStatus // request status + ); + + // Get request results + HRESULT GetRequestResults( + [in] GUID RequestId, // request id + [in] DWORD MaxWaitMs, // max milliseconds to wait + [out] HRESULT* pBatchResult, // overall result + [out] DWORD* pBatchCount, // batch count + [out] DedupDataPortRequestStatus* pStatus, // request status + [out, size_is(, *pBatchCount)] HRESULT** ppItemResults // item results + ); +}; + +// +// DataPort factory interface +// +[uuid(44677452-b90a-445e-8192-cdcfe81511fb), object, version(1.0)] +interface IDedupDataPortManager : IUnknown +{ + // Get dedup configuration + HRESULT GetConfiguration( + [out] DWORD* pMinChunkSize, // minimum chunk size + [out] DWORD* pMaxChunkSize, // maximum chunk size + [out] DedupChunkingAlgorithm* pChunkingAlgorithm, // chunking algorithm + [out] DedupHashingAlgorithm* pHashingAlgorithm, // chunk hash algorithm + [out] DedupCompressionAlgorithm* pCompressionAlgorithm // chunk compression algorithm + ); + + // Get volume DataPort status + HRESULT GetVolumeStatus( + [in] DWORD Options, // DedupDataPortManagerOption option mask + [in] BSTR Path, // volume path + [out] DedupDataPortVolumeStatus* pStatus // volume status + ); + + // Get volume DataPort interface + // Until the volume is enabled for Dedup and the DataPort job for the volume is fully initialized, + // the method may return one of the following errors. + // DDP_E_VOLUME_DISABLED + // DDP_E_DATAPORT_NOT_READY + // Use GetVolumeStatus to detect the current status of DataPort for the volume + HRESULT GetVolumeDataPort( + [in] DWORD Options, // DedupDataPortManagerOption option mask + [in] BSTR Path, // volume path + [out] IDedupDataPort** ppDataPort // DataPort interface for the volume + ); +} + +[ + uuid(3bf36995-d074-4e1b-843d-bfafe3006a69), + version(1.0), +] +library DedupDataPort +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + interface IDedupDataPort; + interface IDedupDataPortManager; + + [uuid(8f107207-1829-48b2-a64b-e61f8e0d9acb)] + coclass DedupDataPort + { + [default] interface IDedupDataPortManager; + }; +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddraw.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddraw.h new file mode 100644 index 0000000000000000000000000000000000000000..c0b7b1e1ca4c142bce35b2404f91b0712f10940a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddraw.h @@ -0,0 +1,5867 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: ddraw.h + * Content: DirectDraw include file + * + ***************************************************************************/ + +#ifndef __DDRAW_INCLUDED__ +#define __DDRAW_INCLUDED__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// Always disable warning C4201: "nonstandard extension used : +// nameless struct/union" +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif +#pragma warning(disable:4201) + +/* + * If you wish an application built against the newest version of DirectDraw + * to run against an older DirectDraw run time then define DIRECTDRAW_VERSION + * to be the earlies version of DirectDraw you wish to run against. For, + * example if you wish an application to run against a DX 3 runtime define + * DIRECTDRAW_VERSION to be 0x0300. + */ +#ifndef DIRECTDRAW_VERSION +#define DIRECTDRAW_VERSION 0x0700 +#endif /* DIRECTDRAW_VERSION */ + +#if defined( _WIN32 ) && !defined( _NO_COM ) +#define COM_NO_WINDOWS_H +#include +#else +#define IUnknown void +#if !defined( NT_BUILD_ENVIRONMENT ) && !defined(WINNT) + #define CO_E_NOTINITIALIZED 0x800401F0L +#endif +#endif + +#define _FACDD 0x876 +#define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code ) + +#ifdef __cplusplus +extern "C" { +#endif + +// +// For compilers that don't support nameless unions, do a +// +// #define NONAMELESSUNION +// +// before #include +// + +#ifndef DUMMYUNIONNAMEN +#if defined(__cplusplus) || !defined(NONAMELESSUNION) +#define DUMMYUNIONNAMEN(n) +#else +#define DUMMYUNIONNAMEN(n) u##n +#endif +#endif + +#ifndef MAKEFOURCC + #define MAKEFOURCC(ch0, ch1, ch2, ch3) \ + ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \ + ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 )) +#endif //defined(MAKEFOURCC) + +/* + * FOURCC codes for DX compressed-texture pixel formats + */ +#define FOURCC_DXT1 (MAKEFOURCC('D','X','T','1')) +#define FOURCC_DXT2 (MAKEFOURCC('D','X','T','2')) +#define FOURCC_DXT3 (MAKEFOURCC('D','X','T','3')) +#define FOURCC_DXT4 (MAKEFOURCC('D','X','T','4')) +#define FOURCC_DXT5 (MAKEFOURCC('D','X','T','5')) + +/* + * GUIDS used by DirectDraw objects + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) + +DEFINE_GUID( CLSID_DirectDraw, 0xD7B70EE0,0x4340,0x11CF,0xB0,0x63,0x00,0x20,0xAF,0xC2,0xCD,0x35 ); +DEFINE_GUID( CLSID_DirectDraw7, 0x3c305196,0x50db,0x11d3,0x9c,0xfe,0x00,0xc0,0x4f,0xd9,0x30,0xc5 ); +DEFINE_GUID( CLSID_DirectDrawClipper, 0x593817A0,0x7DB3,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xb9,0x33,0x56 ); +DEFINE_GUID( IID_IDirectDraw, 0x6C14DB80,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); +DEFINE_GUID( IID_IDirectDraw2, 0xB3A6F3E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 ); +DEFINE_GUID( IID_IDirectDraw4, 0x9c59509a,0x39bd,0x11d1,0x8c,0x4a,0x00,0xc0,0x4f,0xd9,0x30,0xc5 ); +DEFINE_GUID( IID_IDirectDraw7, 0x15e65ec0,0x3b9c,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b ); +DEFINE_GUID( IID_IDirectDrawSurface, 0x6C14DB81,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); +DEFINE_GUID( IID_IDirectDrawSurface2, 0x57805885,0x6eec,0x11cf,0x94,0x41,0xa8,0x23,0x03,0xc1,0x0e,0x27 ); +DEFINE_GUID( IID_IDirectDrawSurface3, 0xDA044E00,0x69B2,0x11D0,0xA1,0xD5,0x00,0xAA,0x00,0xB8,0xDF,0xBB ); +DEFINE_GUID( IID_IDirectDrawSurface4, 0x0B2B8630,0xAD35,0x11D0,0x8E,0xA6,0x00,0x60,0x97,0x97,0xEA,0x5B ); +DEFINE_GUID( IID_IDirectDrawSurface7, 0x06675a80,0x3b9b,0x11d2,0xb9,0x2f,0x00,0x60,0x97,0x97,0xea,0x5b ); +DEFINE_GUID( IID_IDirectDrawPalette, 0x6C14DB84,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); +DEFINE_GUID( IID_IDirectDrawClipper, 0x6C14DB85,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); +DEFINE_GUID( IID_IDirectDrawColorControl, 0x4B9F0EE0,0x0D7E,0x11D0,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8 ); +DEFINE_GUID( IID_IDirectDrawGammaControl, 0x69C11C3E,0xB46B,0x11D1,0xAD,0x7A,0x00,0xC0,0x4F,0xC2,0x9B,0x4E ); + +#endif + +/*============================================================================ + * + * DirectDraw Structures + * + * Various structures used to invoke DirectDraw. + * + *==========================================================================*/ + +struct IDirectDraw; +struct IDirectDrawSurface; +struct IDirectDrawPalette; +struct IDirectDrawClipper; + +typedef struct IDirectDraw FAR *LPDIRECTDRAW; +typedef struct IDirectDraw2 FAR *LPDIRECTDRAW2; +typedef struct IDirectDraw4 FAR *LPDIRECTDRAW4; +typedef struct IDirectDraw7 FAR *LPDIRECTDRAW7; +typedef struct IDirectDrawSurface FAR *LPDIRECTDRAWSURFACE; +typedef struct IDirectDrawSurface2 FAR *LPDIRECTDRAWSURFACE2; +typedef struct IDirectDrawSurface3 FAR *LPDIRECTDRAWSURFACE3; +typedef struct IDirectDrawSurface4 FAR *LPDIRECTDRAWSURFACE4; +typedef struct IDirectDrawSurface7 FAR *LPDIRECTDRAWSURFACE7; +typedef struct IDirectDrawPalette FAR *LPDIRECTDRAWPALETTE; +typedef struct IDirectDrawClipper FAR *LPDIRECTDRAWCLIPPER; +typedef struct IDirectDrawColorControl FAR *LPDIRECTDRAWCOLORCONTROL; +typedef struct IDirectDrawGammaControl FAR *LPDIRECTDRAWGAMMACONTROL; + +typedef struct _DDFXROP FAR *LPDDFXROP; + + +typedef struct _DDSURFACEDESC FAR *LPDDSURFACEDESC; + +typedef struct _DDSURFACEDESC2 FAR *LPDDSURFACEDESC2; +typedef struct _DDCOLORCONTROL FAR *LPDDCOLORCONTROL; + +/* + * API's + */ +#if (defined (WIN32) || defined( _WIN32 ) ) && !defined( _NO_COM ) +//#if defined( _WIN32 ) && !defined( _NO_ENUM ) + typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKA)(GUID FAR *, LPSTR, LPSTR, LPVOID); + typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKW)(GUID FAR *, LPWSTR, LPWSTR, LPVOID); + extern _Check_return_ HRESULT WINAPI DirectDrawEnumerateW( LPDDENUMCALLBACKW lpCallback, LPVOID lpContext ); + extern _Check_return_ HRESULT WINAPI DirectDrawEnumerateA( LPDDENUMCALLBACKA lpCallback, LPVOID lpContext ); + /* + * Protect against old SDKs + */ + #if !defined(HMONITOR_DECLARED) && (WINVER < 0x0500) + #define HMONITOR_DECLARED + DECLARE_HANDLE(HMONITOR); + #endif + typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKEXA)(GUID FAR *, LPSTR, LPSTR, LPVOID, HMONITOR); + typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKEXW)(GUID FAR *, LPWSTR, LPWSTR, LPVOID, HMONITOR); + extern HRESULT WINAPI DirectDrawEnumerateExW( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags); + extern HRESULT WINAPI DirectDrawEnumerateExA( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags); + typedef HRESULT (WINAPI * LPDIRECTDRAWENUMERATEEXA)( LPDDENUMCALLBACKEXA lpCallback, LPVOID lpContext, DWORD dwFlags); + typedef HRESULT (WINAPI * LPDIRECTDRAWENUMERATEEXW)( LPDDENUMCALLBACKEXW lpCallback, LPVOID lpContext, DWORD dwFlags); + + #ifdef UNICODE + typedef LPDDENUMCALLBACKW LPDDENUMCALLBACK; + #define DirectDrawEnumerate DirectDrawEnumerateW + typedef LPDDENUMCALLBACKEXW LPDDENUMCALLBACKEX; + typedef LPDIRECTDRAWENUMERATEEXW LPDIRECTDRAWENUMERATEEX; + #define DirectDrawEnumerateEx DirectDrawEnumerateExW + #else + typedef LPDDENUMCALLBACKA LPDDENUMCALLBACK; + #define DirectDrawEnumerate DirectDrawEnumerateA + typedef LPDDENUMCALLBACKEXA LPDDENUMCALLBACKEX; + typedef LPDIRECTDRAWENUMERATEEXA LPDIRECTDRAWENUMERATEEX; + #define DirectDrawEnumerateEx DirectDrawEnumerateExA + #endif + extern _Check_return_ HRESULT WINAPI DirectDrawCreate( GUID FAR *lpGUID, LPDIRECTDRAW FAR *lplpDD, IUnknown FAR *pUnkOuter ); + extern HRESULT WINAPI DirectDrawCreateEx( GUID FAR * lpGuid, LPVOID *lplpDD, REFIID iid,IUnknown FAR *pUnkOuter ); + extern _Check_return_ HRESULT WINAPI DirectDrawCreateClipper( DWORD dwFlags, LPDIRECTDRAWCLIPPER FAR *lplpDDClipper, IUnknown FAR *pUnkOuter ); +#endif +/* + * Flags for DirectDrawEnumerateEx + * DirectDrawEnumerateEx supercedes DirectDrawEnumerate. You must use GetProcAddress to + * obtain a function pointer (of type LPDIRECTDRAWENUMERATEEX) to DirectDrawEnumerateEx. + * By default, only the primary display device is enumerated. + * DirectDrawEnumerate is equivalent to DirectDrawEnumerate(,,DDENUM_NONDISPLAYDEVICES) + */ + +/* + * This flag causes enumeration of any GDI display devices which are part of + * the Windows Desktop + */ +#define DDENUM_ATTACHEDSECONDARYDEVICES 0x00000001L + +/* + * This flag causes enumeration of any GDI display devices which are not + * part of the Windows Desktop + */ +#define DDENUM_DETACHEDSECONDARYDEVICES 0x00000002L + +/* + * This flag causes enumeration of non-display devices + */ +#define DDENUM_NONDISPLAYDEVICES 0x00000004L + + +#define REGSTR_KEY_DDHW_DESCRIPTION "Description" +#define REGSTR_KEY_DDHW_DRIVERNAME "DriverName" +#define REGSTR_PATH_DDHW "Hardware\\DirectDrawDrivers" + +#define DDCREATE_HARDWAREONLY 0x00000001l +#define DDCREATE_EMULATIONONLY 0x00000002l + +#if defined(WINNT) || !defined(WIN32) +#ifndef _HRESULT_DEFINED +#define _HRESULT_DEFINED +typedef _Return_type_success_(return >= 0) long HRESULT; +#endif // !_HRESULT_DEFINED +#endif + +//#ifndef WINNT +typedef HRESULT (FAR PASCAL * LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID); +typedef HRESULT (FAR PASCAL * LPDDENUMMODESCALLBACK2)(LPDDSURFACEDESC2, LPVOID); +typedef HRESULT (FAR PASCAL * LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID); +typedef HRESULT (FAR PASCAL * LPDDENUMSURFACESCALLBACK2)(LPDIRECTDRAWSURFACE4, LPDDSURFACEDESC2, LPVOID); +typedef HRESULT (FAR PASCAL * LPDDENUMSURFACESCALLBACK7)(LPDIRECTDRAWSURFACE7, LPDDSURFACEDESC2, LPVOID); +//#endif + +/* + * Generic pixel format with 8-bit RGB and alpha components + */ +typedef struct _DDARGB +{ + BYTE blue; + BYTE green; + BYTE red; + BYTE alpha; +} DDARGB; + +typedef DDARGB FAR *LPDDARGB; + +/* + * This version of the structure remains for backwards source compatibility. + * The DDARGB structure is the one that should be used for all DirectDraw APIs. + */ +typedef struct _DDRGBA +{ + BYTE red; + BYTE green; + BYTE blue; + BYTE alpha; +} DDRGBA; + +typedef DDRGBA FAR *LPDDRGBA; + + +/* + * DDCOLORKEY + */ +typedef struct _DDCOLORKEY +{ + DWORD dwColorSpaceLowValue; // low boundary of color space that is to + // be treated as Color Key, inclusive + DWORD dwColorSpaceHighValue; // high boundary of color space that is + // to be treated as Color Key, inclusive +} DDCOLORKEY; + +typedef DDCOLORKEY FAR* LPDDCOLORKEY; + +/* + * DDBLTFX + * Used to pass override information to the DIRECTDRAWSURFACE callback Blt. + */ +typedef struct _DDBLTFX +{ + DWORD dwSize; // size of structure + DWORD dwDDFX; // FX operations + DWORD dwROP; // Win32 raster operations + DWORD dwDDROP; // Raster operations new for DirectDraw + DWORD dwRotationAngle; // Rotation angle for blt + DWORD dwZBufferOpCode; // ZBuffer compares + DWORD dwZBufferLow; // Low limit of Z buffer + DWORD dwZBufferHigh; // High limit of Z buffer + DWORD dwZBufferBaseDest; // Destination base value + DWORD dwZDestConstBitDepth; // Bit depth used to specify Z constant for destination + union + { + DWORD dwZDestConst; // Constant to use as Z buffer for dest + LPDIRECTDRAWSURFACE lpDDSZBufferDest; // Surface to use as Z buffer for dest + } DUMMYUNIONNAMEN(1); + DWORD dwZSrcConstBitDepth; // Bit depth used to specify Z constant for source + union + { + DWORD dwZSrcConst; // Constant to use as Z buffer for src + LPDIRECTDRAWSURFACE lpDDSZBufferSrc; // Surface to use as Z buffer for src + } DUMMYUNIONNAMEN(2); + DWORD dwAlphaEdgeBlendBitDepth; // Bit depth used to specify constant for alpha edge blend + DWORD dwAlphaEdgeBlend; // Alpha for edge blending + DWORD dwReserved; + DWORD dwAlphaDestConstBitDepth; // Bit depth used to specify alpha constant for destination + union + { + DWORD dwAlphaDestConst; // Constant to use as Alpha Channel + LPDIRECTDRAWSURFACE lpDDSAlphaDest; // Surface to use as Alpha Channel + } DUMMYUNIONNAMEN(3); + DWORD dwAlphaSrcConstBitDepth; // Bit depth used to specify alpha constant for source + union + { + DWORD dwAlphaSrcConst; // Constant to use as Alpha Channel + LPDIRECTDRAWSURFACE lpDDSAlphaSrc; // Surface to use as Alpha Channel + } DUMMYUNIONNAMEN(4); + union + { + DWORD dwFillColor; // color in RGB or Palettized + DWORD dwFillDepth; // depth value for z-buffer + DWORD dwFillPixel; // pixel value for RGBA or RGBZ + LPDIRECTDRAWSURFACE lpDDSPattern; // Surface to use as pattern + } DUMMYUNIONNAMEN(5); + DDCOLORKEY ddckDestColorkey; // DestColorkey override + DDCOLORKEY ddckSrcColorkey; // SrcColorkey override +} DDBLTFX; + +typedef DDBLTFX FAR* LPDDBLTFX; + + + +/* + * DDSCAPS + */ +typedef struct _DDSCAPS +{ + DWORD dwCaps; // capabilities of surface wanted +} DDSCAPS; + +typedef DDSCAPS FAR* LPDDSCAPS; + + +/* + * DDOSCAPS + */ +typedef struct _DDOSCAPS +{ + DWORD dwCaps; // capabilities of surface wanted +} DDOSCAPS; + +typedef DDOSCAPS FAR* LPDDOSCAPS; + +/* + * This structure is used internally by DirectDraw. + */ +typedef struct _DDSCAPSEX +{ + DWORD dwCaps2; + DWORD dwCaps3; + union + { + DWORD dwCaps4; + DWORD dwVolumeDepth; + } DUMMYUNIONNAMEN(1); +} DDSCAPSEX, FAR * LPDDSCAPSEX; + +/* + * DDSCAPS2 + */ +typedef struct _DDSCAPS2 +{ + DWORD dwCaps; // capabilities of surface wanted + DWORD dwCaps2; + DWORD dwCaps3; + union + { + DWORD dwCaps4; + DWORD dwVolumeDepth; + } DUMMYUNIONNAMEN(1); +} DDSCAPS2; + +typedef DDSCAPS2 FAR* LPDDSCAPS2; + +/* + * DDCAPS + */ +#define DD_ROP_SPACE (256/32) // space required to store ROP array +/* + * NOTE: Our choosen structure number scheme is to append a single digit to + * the end of the structure giving the version that structure is associated + * with. + */ + +/* + * This structure represents the DDCAPS structure released in DirectDraw 1.0. It is used internally + * by DirectDraw to interpret caps passed into ddraw by drivers written prior to the release of DirectDraw 2.0. + * New applications should use the DDCAPS structure defined below. + */ +typedef struct _DDCAPS_DX1 +{ + DWORD dwSize; // size of the DDDRIVERCAPS structure + DWORD dwCaps; // driver specific capabilities + DWORD dwCaps2; // more driver specific capabilites + DWORD dwCKeyCaps; // color key capabilities of the surface + DWORD dwFXCaps; // driver specific stretching and effects capabilites + DWORD dwFXAlphaCaps; // alpha driver specific capabilities + DWORD dwPalCaps; // palette capabilities + DWORD dwSVCaps; // stereo vision capabilities + DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 + DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 + DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 + DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 + DWORD dwVidMemTotal; // total amount of video memory + DWORD dwVidMemFree; // amount of free video memory + DWORD dwMaxVisibleOverlays; // maximum number of visible overlays + DWORD dwCurrVisibleOverlays; // current number of visible overlays + DWORD dwNumFourCCCodes; // number of four cc codes + DWORD dwAlignBoundarySrc; // source rectangle alignment + DWORD dwAlignSizeSrc; // source rectangle byte size + DWORD dwAlignBoundaryDest; // dest rectangle alignment + DWORD dwAlignSizeDest; // dest rectangle byte size + DWORD dwAlignStrideAlign; // stride alignment + DWORD dwRops[DD_ROP_SPACE]; // ROPS supported + DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities + DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMinLiveVideoStretch; // OBSOLETE! This field remains for compatability reasons only + DWORD dwMaxLiveVideoStretch; // OBSOLETE! This field remains for compatability reasons only + DWORD dwMinHwCodecStretch; // OBSOLETE! This field remains for compatability reasons only + DWORD dwMaxHwCodecStretch; // OBSOLETE! This field remains for compatability reasons only + DWORD dwReserved1; // reserved + DWORD dwReserved2; // reserved + DWORD dwReserved3; // reserved +} DDCAPS_DX1; + +typedef DDCAPS_DX1 FAR* LPDDCAPS_DX1; + +/* + * This structure is the DDCAPS structure as it was in version 2 and 3 of Direct X. + * It is present for back compatability. + */ +typedef struct _DDCAPS_DX3 +{ + DWORD dwSize; // size of the DDDRIVERCAPS structure + DWORD dwCaps; // driver specific capabilities + DWORD dwCaps2; // more driver specific capabilites + DWORD dwCKeyCaps; // color key capabilities of the surface + DWORD dwFXCaps; // driver specific stretching and effects capabilites + DWORD dwFXAlphaCaps; // alpha driver specific capabilities + DWORD dwPalCaps; // palette capabilities + DWORD dwSVCaps; // stereo vision capabilities + DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 + DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 + DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 + DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 + DWORD dwVidMemTotal; // total amount of video memory + DWORD dwVidMemFree; // amount of free video memory + DWORD dwMaxVisibleOverlays; // maximum number of visible overlays + DWORD dwCurrVisibleOverlays; // current number of visible overlays + DWORD dwNumFourCCCodes; // number of four cc codes + DWORD dwAlignBoundarySrc; // source rectangle alignment + DWORD dwAlignSizeSrc; // source rectangle byte size + DWORD dwAlignBoundaryDest; // dest rectangle alignment + DWORD dwAlignSizeDest; // dest rectangle byte size + DWORD dwAlignStrideAlign; // stride alignment + DWORD dwRops[DD_ROP_SPACE]; // ROPS supported + DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities + DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwReserved1; // reserved + DWORD dwReserved2; // reserved + DWORD dwReserved3; // reserved + DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts + DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts + DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts + DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts + DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts + DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts + DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts + DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts + DWORD dwSSBCaps; // driver specific capabilities for System->System blts + DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts + DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts + DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts + DWORD dwReserved4; // reserved + DWORD dwReserved5; // reserved + DWORD dwReserved6; // reserved +} DDCAPS_DX3; +typedef DDCAPS_DX3 FAR* LPDDCAPS_DX3; + +/* + * This structure is the DDCAPS structure as it was in version 5 of Direct X. + * It is present for back compatability. + */ +typedef struct _DDCAPS_DX5 +{ +/* 0*/ DWORD dwSize; // size of the DDDRIVERCAPS structure +/* 4*/ DWORD dwCaps; // driver specific capabilities +/* 8*/ DWORD dwCaps2; // more driver specific capabilites +/* c*/ DWORD dwCKeyCaps; // color key capabilities of the surface +/* 10*/ DWORD dwFXCaps; // driver specific stretching and effects capabilites +/* 14*/ DWORD dwFXAlphaCaps; // alpha driver specific capabilities +/* 18*/ DWORD dwPalCaps; // palette capabilities +/* 1c*/ DWORD dwSVCaps; // stereo vision capabilities +/* 20*/ DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 +/* 24*/ DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 +/* 28*/ DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 +/* 2c*/ DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 +/* 30*/ DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 +/* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 +/* 38*/ DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 +/* 3c*/ DWORD dwVidMemTotal; // total amount of video memory +/* 40*/ DWORD dwVidMemFree; // amount of free video memory +/* 44*/ DWORD dwMaxVisibleOverlays; // maximum number of visible overlays +/* 48*/ DWORD dwCurrVisibleOverlays; // current number of visible overlays +/* 4c*/ DWORD dwNumFourCCCodes; // number of four cc codes +/* 50*/ DWORD dwAlignBoundarySrc; // source rectangle alignment +/* 54*/ DWORD dwAlignSizeSrc; // source rectangle byte size +/* 58*/ DWORD dwAlignBoundaryDest; // dest rectangle alignment +/* 5c*/ DWORD dwAlignSizeDest; // dest rectangle byte size +/* 60*/ DWORD dwAlignStrideAlign; // stride alignment +/* 64*/ DWORD dwRops[DD_ROP_SPACE]; // ROPS supported +/* 84*/ DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities +/* 88*/ DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 8c*/ DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 90*/ DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 94*/ DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 98*/ DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 9c*/ DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* a0*/ DWORD dwReserved1; // reserved +/* a4*/ DWORD dwReserved2; // reserved +/* a8*/ DWORD dwReserved3; // reserved +/* ac*/ DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts +/* b0*/ DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts +/* b4*/ DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts +/* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts +/* d8*/ DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts +/* dc*/ DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts +/* e0*/ DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts +/* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts +/*104*/ DWORD dwSSBCaps; // driver specific capabilities for System->System blts +/*108*/ DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts +/*10c*/ DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts +/*110*/ DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts +// Members added for DX5: +/*130*/ DWORD dwMaxVideoPorts; // maximum number of usable video ports +/*134*/ DWORD dwCurrVideoPorts; // current number of video ports used +/*138*/ DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts +/*13c*/ DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts +/*140*/ DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts +/*144*/ DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts +/*148*/ DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts +/*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts +} DDCAPS_DX5; +typedef DDCAPS_DX5 FAR* LPDDCAPS_DX5; + +typedef struct _DDCAPS_DX6 +{ +/* 0*/ DWORD dwSize; // size of the DDDRIVERCAPS structure +/* 4*/ DWORD dwCaps; // driver specific capabilities +/* 8*/ DWORD dwCaps2; // more driver specific capabilites +/* c*/ DWORD dwCKeyCaps; // color key capabilities of the surface +/* 10*/ DWORD dwFXCaps; // driver specific stretching and effects capabilites +/* 14*/ DWORD dwFXAlphaCaps; // alpha caps +/* 18*/ DWORD dwPalCaps; // palette capabilities +/* 1c*/ DWORD dwSVCaps; // stereo vision capabilities +/* 20*/ DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 +/* 24*/ DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 +/* 28*/ DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 +/* 2c*/ DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 +/* 30*/ DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 +/* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 +/* 38*/ DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 +/* 3c*/ DWORD dwVidMemTotal; // total amount of video memory +/* 40*/ DWORD dwVidMemFree; // amount of free video memory +/* 44*/ DWORD dwMaxVisibleOverlays; // maximum number of visible overlays +/* 48*/ DWORD dwCurrVisibleOverlays; // current number of visible overlays +/* 4c*/ DWORD dwNumFourCCCodes; // number of four cc codes +/* 50*/ DWORD dwAlignBoundarySrc; // source rectangle alignment +/* 54*/ DWORD dwAlignSizeSrc; // source rectangle byte size +/* 58*/ DWORD dwAlignBoundaryDest; // dest rectangle alignment +/* 5c*/ DWORD dwAlignSizeDest; // dest rectangle byte size +/* 60*/ DWORD dwAlignStrideAlign; // stride alignment +/* 64*/ DWORD dwRops[DD_ROP_SPACE]; // ROPS supported +/* 84*/ DDSCAPS ddsOldCaps; // Was DDSCAPS ddsCaps. ddsCaps is of type DDSCAPS2 for DX6 +/* 88*/ DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 8c*/ DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 90*/ DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 94*/ DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 98*/ DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 9c*/ DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* a0*/ DWORD dwReserved1; // reserved +/* a4*/ DWORD dwReserved2; // reserved +/* a8*/ DWORD dwReserved3; // reserved +/* ac*/ DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts +/* b0*/ DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts +/* b4*/ DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts +/* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts +/* d8*/ DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts +/* dc*/ DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts +/* e0*/ DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts +/* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts +/*104*/ DWORD dwSSBCaps; // driver specific capabilities for System->System blts +/*108*/ DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts +/*10c*/ DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts +/*110*/ DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts +/*130*/ DWORD dwMaxVideoPorts; // maximum number of usable video ports +/*134*/ DWORD dwCurrVideoPorts; // current number of video ports used +/*138*/ DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts +/*13c*/ DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts +/*140*/ DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts +/*144*/ DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts +/*148*/ DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts +/*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts +// Members added for DX6 release +/*16c*/ DDSCAPS2 ddsCaps; // Surface Caps +} DDCAPS_DX6; +typedef DDCAPS_DX6 FAR* LPDDCAPS_DX6; + +typedef struct _DDCAPS_DX7 +{ +/* 0*/ DWORD dwSize; // size of the DDDRIVERCAPS structure +/* 4*/ DWORD dwCaps; // driver specific capabilities +/* 8*/ DWORD dwCaps2; // more driver specific capabilites +/* c*/ DWORD dwCKeyCaps; // color key capabilities of the surface +/* 10*/ DWORD dwFXCaps; // driver specific stretching and effects capabilites +/* 14*/ DWORD dwFXAlphaCaps; // alpha driver specific capabilities +/* 18*/ DWORD dwPalCaps; // palette capabilities +/* 1c*/ DWORD dwSVCaps; // stereo vision capabilities +/* 20*/ DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 +/* 24*/ DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 +/* 28*/ DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 +/* 2c*/ DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 +/* 30*/ DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 +/* 34*/ DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 +/* 38*/ DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 +/* 3c*/ DWORD dwVidMemTotal; // total amount of video memory +/* 40*/ DWORD dwVidMemFree; // amount of free video memory +/* 44*/ DWORD dwMaxVisibleOverlays; // maximum number of visible overlays +/* 48*/ DWORD dwCurrVisibleOverlays; // current number of visible overlays +/* 4c*/ DWORD dwNumFourCCCodes; // number of four cc codes +/* 50*/ DWORD dwAlignBoundarySrc; // source rectangle alignment +/* 54*/ DWORD dwAlignSizeSrc; // source rectangle byte size +/* 58*/ DWORD dwAlignBoundaryDest; // dest rectangle alignment +/* 5c*/ DWORD dwAlignSizeDest; // dest rectangle byte size +/* 60*/ DWORD dwAlignStrideAlign; // stride alignment +/* 64*/ DWORD dwRops[DD_ROP_SPACE]; // ROPS supported +/* 84*/ DDSCAPS ddsOldCaps; // Was DDSCAPS ddsCaps. ddsCaps is of type DDSCAPS2 for DX6 +/* 88*/ DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 8c*/ DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 90*/ DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 94*/ DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 98*/ DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* 9c*/ DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 +/* a0*/ DWORD dwReserved1; // reserved +/* a4*/ DWORD dwReserved2; // reserved +/* a8*/ DWORD dwReserved3; // reserved +/* ac*/ DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts +/* b0*/ DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts +/* b4*/ DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts +/* b8*/ DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts +/* d8*/ DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts +/* dc*/ DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts +/* e0*/ DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts +/* e4*/ DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts +/*104*/ DWORD dwSSBCaps; // driver specific capabilities for System->System blts +/*108*/ DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts +/*10c*/ DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts +/*110*/ DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts +/*130*/ DWORD dwMaxVideoPorts; // maximum number of usable video ports +/*134*/ DWORD dwCurrVideoPorts; // current number of video ports used +/*138*/ DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts +/*13c*/ DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts +/*140*/ DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts +/*144*/ DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts +/*148*/ DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts +/*14c*/ DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts +// Members added for DX6 release +/*16c*/ DDSCAPS2 ddsCaps; // Surface Caps +} DDCAPS_DX7; +typedef DDCAPS_DX7 FAR* LPDDCAPS_DX7; + + +#if DIRECTDRAW_VERSION <= 0x300 + typedef DDCAPS_DX3 DDCAPS; +#elif DIRECTDRAW_VERSION <= 0x500 + typedef DDCAPS_DX5 DDCAPS; +#elif DIRECTDRAW_VERSION <= 0x600 + typedef DDCAPS_DX6 DDCAPS; +#else + typedef DDCAPS_DX7 DDCAPS; +#endif + +typedef DDCAPS FAR* LPDDCAPS; + +/* + * DDPIXELFORMAT + */ +#ifndef _DDPIXELFORMAT_DEFINED +#define _DDPIXELFORMAT_DEFINED +typedef struct _DDPIXELFORMAT +{ + DWORD dwSize; // size of structure + DWORD dwFlags; // pixel format flags + DWORD dwFourCC; // (FOURCC code) + union + { + DWORD dwRGBBitCount; // how many bits per pixel + DWORD dwYUVBitCount; // how many bits per pixel + DWORD dwZBufferBitDepth; // how many total bits/pixel in z buffer (including any stencil bits) + DWORD dwAlphaBitDepth; // how many bits for alpha channels + DWORD dwLuminanceBitCount; // how many bits per pixel + DWORD dwBumpBitCount; // how many bits per "buxel", total + DWORD dwPrivateFormatBitCount;// Bits per pixel of private driver formats. Only valid in texture + // format list and if DDPF_D3DFORMAT is set + } DUMMYUNIONNAMEN(1); + union + { + DWORD dwRBitMask; // mask for red bit + DWORD dwYBitMask; // mask for Y bits + DWORD dwStencilBitDepth; // how many stencil bits (note: dwZBufferBitDepth-dwStencilBitDepth is total Z-only bits) + DWORD dwLuminanceBitMask; // mask for luminance bits + DWORD dwBumpDuBitMask; // mask for bump map U delta bits + DWORD dwOperations; // DDPF_D3DFORMAT Operations + } DUMMYUNIONNAMEN(2); + union + { + DWORD dwGBitMask; // mask for green bits + DWORD dwUBitMask; // mask for U bits + DWORD dwZBitMask; // mask for Z bits + DWORD dwBumpDvBitMask; // mask for bump map V delta bits + struct + { + WORD wFlipMSTypes; // Multisample methods supported via flip for this D3DFORMAT + WORD wBltMSTypes; // Multisample methods supported via blt for this D3DFORMAT + } MultiSampleCaps; + + } DUMMYUNIONNAMEN(3); + union + { + DWORD dwBBitMask; // mask for blue bits + DWORD dwVBitMask; // mask for V bits + DWORD dwStencilBitMask; // mask for stencil bits + DWORD dwBumpLuminanceBitMask; // mask for luminance in bump map + } DUMMYUNIONNAMEN(4); + union + { + DWORD dwRGBAlphaBitMask; // mask for alpha channel + DWORD dwYUVAlphaBitMask; // mask for alpha channel + DWORD dwLuminanceAlphaBitMask;// mask for alpha channel + DWORD dwRGBZBitMask; // mask for Z channel + DWORD dwYUVZBitMask; // mask for Z channel + } DUMMYUNIONNAMEN(5); +} DDPIXELFORMAT; +#endif // _DDPIXELFORMAT_DEFINED + +typedef DDPIXELFORMAT FAR* LPDDPIXELFORMAT; + +/* + * DDOVERLAYFX + */ +typedef struct _DDOVERLAYFX +{ + DWORD dwSize; // size of structure + DWORD dwAlphaEdgeBlendBitDepth; // Bit depth used to specify constant for alpha edge blend + DWORD dwAlphaEdgeBlend; // Constant to use as alpha for edge blend + DWORD dwReserved; + DWORD dwAlphaDestConstBitDepth; // Bit depth used to specify alpha constant for destination + union + { + DWORD dwAlphaDestConst; // Constant to use as alpha channel for dest + LPDIRECTDRAWSURFACE lpDDSAlphaDest; // Surface to use as alpha channel for dest + } DUMMYUNIONNAMEN(1); + DWORD dwAlphaSrcConstBitDepth; // Bit depth used to specify alpha constant for source + union + { + DWORD dwAlphaSrcConst; // Constant to use as alpha channel for src + LPDIRECTDRAWSURFACE lpDDSAlphaSrc; // Surface to use as alpha channel for src + } DUMMYUNIONNAMEN(2); + DDCOLORKEY dckDestColorkey; // DestColorkey override + DDCOLORKEY dckSrcColorkey; // DestColorkey override + DWORD dwDDFX; // Overlay FX + DWORD dwFlags; // flags +} DDOVERLAYFX; + +typedef DDOVERLAYFX FAR *LPDDOVERLAYFX; + + +/* + * DDBLTBATCH: BltBatch entry structure + */ +typedef struct _DDBLTBATCH +{ + LPRECT lprDest; + LPDIRECTDRAWSURFACE lpDDSSrc; + LPRECT lprSrc; + DWORD dwFlags; + LPDDBLTFX lpDDBltFx; +} DDBLTBATCH; + +typedef DDBLTBATCH FAR * LPDDBLTBATCH; + + +/* + * DDGAMMARAMP + */ +typedef struct _DDGAMMARAMP +{ + WORD red[256]; + WORD green[256]; + WORD blue[256]; +} DDGAMMARAMP; +typedef DDGAMMARAMP FAR * LPDDGAMMARAMP; + +/* + * This is the structure within which DirectDraw returns data about the current graphics driver and chipset + */ + +#define MAX_DDDEVICEID_STRING 512 + +typedef struct tagDDDEVICEIDENTIFIER +{ + /* + * These elements are for presentation to the user only. They should not be used to identify particular + * drivers, since this is unreliable and many different strings may be associated with the same + * device, and the same driver from different vendors. + */ + char szDriver[MAX_DDDEVICEID_STRING]; + char szDescription[MAX_DDDEVICEID_STRING]; + + /* + * This element is the version of the DirectDraw/3D driver. It is legal to do <, > comparisons + * on the whole 64 bits. Caution should be exercised if you use this element to identify problematic + * drivers. It is recommended that guidDeviceIdentifier is used for this purpose. + * + * This version has the form: + * wProduct = HIWORD(liDriverVersion.HighPart) + * wVersion = LOWORD(liDriverVersion.HighPart) + * wSubVersion = HIWORD(liDriverVersion.LowPart) + * wBuild = LOWORD(liDriverVersion.LowPart) + */ +#ifdef _WIN32 + LARGE_INTEGER liDriverVersion; /* Defined for applications and other 32 bit components */ +#else + DWORD dwDriverVersionLowPart; /* Defined for 16 bit driver components */ + DWORD dwDriverVersionHighPart; +#endif + + + /* + * These elements can be used to identify particular chipsets. Use with extreme caution. + * dwVendorId Identifies the manufacturer. May be zero if unknown. + * dwDeviceId Identifies the type of chipset. May be zero if unknown. + * dwSubSysId Identifies the subsystem, typically this means the particular board. May be zero if unknown. + * dwRevision Identifies the revision level of the chipset. May be zero if unknown. + */ + DWORD dwVendorId; + DWORD dwDeviceId; + DWORD dwSubSysId; + DWORD dwRevision; + + /* + * This element can be used to check changes in driver/chipset. This GUID is a unique identifier for the + * driver/chipset pair. Use this element if you wish to track changes to the driver/chipset in order to + * reprofile the graphics subsystem. + * This element can also be used to identify particular problematic drivers. + */ + GUID guidDeviceIdentifier; +} DDDEVICEIDENTIFIER, * LPDDDEVICEIDENTIFIER; + +typedef struct tagDDDEVICEIDENTIFIER2 +{ + /* + * These elements are for presentation to the user only. They should not be used to identify particular + * drivers, since this is unreliable and many different strings may be associated with the same + * device, and the same driver from different vendors. + */ + char szDriver[MAX_DDDEVICEID_STRING]; + char szDescription[MAX_DDDEVICEID_STRING]; + + /* + * This element is the version of the DirectDraw/3D driver. It is legal to do <, > comparisons + * on the whole 64 bits. Caution should be exercised if you use this element to identify problematic + * drivers. It is recommended that guidDeviceIdentifier is used for this purpose. + * + * This version has the form: + * wProduct = HIWORD(liDriverVersion.HighPart) + * wVersion = LOWORD(liDriverVersion.HighPart) + * wSubVersion = HIWORD(liDriverVersion.LowPart) + * wBuild = LOWORD(liDriverVersion.LowPart) + */ +#ifdef _WIN32 + LARGE_INTEGER liDriverVersion; /* Defined for applications and other 32 bit components */ +#else + DWORD dwDriverVersionLowPart; /* Defined for 16 bit driver components */ + DWORD dwDriverVersionHighPart; +#endif + + + /* + * These elements can be used to identify particular chipsets. Use with extreme caution. + * dwVendorId Identifies the manufacturer. May be zero if unknown. + * dwDeviceId Identifies the type of chipset. May be zero if unknown. + * dwSubSysId Identifies the subsystem, typically this means the particular board. May be zero if unknown. + * dwRevision Identifies the revision level of the chipset. May be zero if unknown. + */ + DWORD dwVendorId; + DWORD dwDeviceId; + DWORD dwSubSysId; + DWORD dwRevision; + + /* + * This element can be used to check changes in driver/chipset. This GUID is a unique identifier for the + * driver/chipset pair. Use this element if you wish to track changes to the driver/chipset in order to + * reprofile the graphics subsystem. + * This element can also be used to identify particular problematic drivers. + */ + GUID guidDeviceIdentifier; + + /* + * This element is used to determine the Windows Hardware Quality Lab (WHQL) + * certification level for this driver/device pair. + */ + DWORD dwWHQLLevel; + +} DDDEVICEIDENTIFIER2, * LPDDDEVICEIDENTIFIER2; + +/* + * Flags for the IDirectDraw4::GetDeviceIdentifier method + */ + +/* + * This flag causes GetDeviceIdentifier to return information about the host (typically 2D) adapter in a system equipped + * with a stacked secondary 3D adapter. Such an adapter appears to the application as if it were part of the + * host adapter, but is typically physcially located on a separate card. The stacked secondary's information is + * returned when GetDeviceIdentifier's dwFlags field is zero, since this most accurately reflects the qualities + * of the DirectDraw object involved. + */ +#define DDGDI_GETHOSTIDENTIFIER 0x00000001L + +/* + * Macros for interpretting DDEVICEIDENTIFIER2.dwWHQLLevel + */ +#define GET_WHQL_YEAR( dwWHQLLevel ) \ + ( (dwWHQLLevel) / 0x10000 ) +#define GET_WHQL_MONTH( dwWHQLLevel ) \ + ( ( (dwWHQLLevel) / 0x100 ) & 0x00ff ) +#define GET_WHQL_DAY( dwWHQLLevel ) \ + ( (dwWHQLLevel) & 0xff ) + + +/* + * callbacks + */ +typedef DWORD (FAR PASCAL *LPCLIPPERCALLBACK)(LPDIRECTDRAWCLIPPER lpDDClipper, HWND hWnd, DWORD code, LPVOID lpContext ); +#ifdef STREAMING +typedef DWORD (FAR PASCAL *LPSURFACESTREAMINGCALLBACK)(DWORD); +#endif + + +/* + * INTERACES FOLLOW: + * IDirectDraw + * IDirectDrawClipper + * IDirectDrawPalette + * IDirectDrawSurface + */ + +/* + * IDirectDraw + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDraw +DECLARE_INTERFACE_( IDirectDraw, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDraw methods ***/ + STDMETHOD(Compact)(THIS) PURE; + STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE; + STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE; + STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC, LPDIRECTDRAWSURFACE FAR *, IUnknown FAR *) PURE; + STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE, LPDIRECTDRAWSURFACE FAR * ) PURE; + STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC, LPVOID, LPDDENUMMODESCALLBACK ) PURE; + STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC, LPVOID,LPDDENUMSURFACESCALLBACK ) PURE; + STDMETHOD(FlipToGDISurface)(THIS) PURE; + STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE; + STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC) PURE; + STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE; + STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE FAR *) PURE; + STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE; + STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE; + STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE; + STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE; + STDMETHOD(RestoreDisplayMode)(THIS) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE; + STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD) PURE; + STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDraw_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) +#define IDirectDraw_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDraw_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDraw_Compact(p) (p)->lpVtbl->Compact(p) +#define IDirectDraw_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c) +#define IDirectDraw_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d) +#define IDirectDraw_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c) +#define IDirectDraw_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b) +#define IDirectDraw_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d) +#define IDirectDraw_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d) +#define IDirectDraw_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p) +#define IDirectDraw_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b) +#define IDirectDraw_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a) +#define IDirectDraw_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b) +#define IDirectDraw_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a) +#define IDirectDraw_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a) +#define IDirectDraw_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a) +#define IDirectDraw_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a) +#define IDirectDraw_Initialize(p, a) (p)->lpVtbl->Initialize(p, a) +#define IDirectDraw_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p) +#define IDirectDraw_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b) +#define IDirectDraw_SetDisplayMode(p, a, b, c) (p)->lpVtbl->SetDisplayMode(p, a, b, c) +#define IDirectDraw_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b) +#else +#define IDirectDraw_QueryInterface(p, a, b) (p)->QueryInterface(a, b) +#define IDirectDraw_AddRef(p) (p)->AddRef() +#define IDirectDraw_Release(p) (p)->Release() +#define IDirectDraw_Compact(p) (p)->Compact() +#define IDirectDraw_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c) +#define IDirectDraw_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d) +#define IDirectDraw_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c) +#define IDirectDraw_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b) +#define IDirectDraw_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d) +#define IDirectDraw_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d) +#define IDirectDraw_FlipToGDISurface(p) (p)->FlipToGDISurface() +#define IDirectDraw_GetCaps(p, a, b) (p)->GetCaps(a, b) +#define IDirectDraw_GetDisplayMode(p, a) (p)->GetDisplayMode(a) +#define IDirectDraw_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b) +#define IDirectDraw_GetGDISurface(p, a) (p)->GetGDISurface(a) +#define IDirectDraw_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a) +#define IDirectDraw_GetScanLine(p, a) (p)->GetScanLine(a) +#define IDirectDraw_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a) +#define IDirectDraw_Initialize(p, a) (p)->Initialize(a) +#define IDirectDraw_RestoreDisplayMode(p) (p)->RestoreDisplayMode() +#define IDirectDraw_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b) +#define IDirectDraw_SetDisplayMode(p, a, b, c) (p)->SetDisplayMode(a, b, c) +#define IDirectDraw_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b) +#endif + +#endif + +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDraw2 +DECLARE_INTERFACE_( IDirectDraw2, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDraw methods ***/ + STDMETHOD(Compact)(THIS) PURE; + STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE; + STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE; + STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC, LPDIRECTDRAWSURFACE FAR *, IUnknown FAR *) PURE; + STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE, LPDIRECTDRAWSURFACE FAR * ) PURE; + STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC, LPVOID, LPDDENUMMODESCALLBACK ) PURE; + STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC, LPVOID,LPDDENUMSURFACESCALLBACK ) PURE; + STDMETHOD(FlipToGDISurface)(THIS) PURE; + STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE; + STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC) PURE; + STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE; + STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE FAR *) PURE; + STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE; + STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE; + STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE; + STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE; + STDMETHOD(RestoreDisplayMode)(THIS) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE; + STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE; + STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE; + /*** Added in the v2 interface ***/ + STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS, LPDWORD, LPDWORD) PURE; +}; +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDraw2_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) +#define IDirectDraw2_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDraw2_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDraw2_Compact(p) (p)->lpVtbl->Compact(p) +#define IDirectDraw2_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c) +#define IDirectDraw2_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d) +#define IDirectDraw2_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c) +#define IDirectDraw2_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b) +#define IDirectDraw2_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d) +#define IDirectDraw2_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d) +#define IDirectDraw2_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p) +#define IDirectDraw2_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b) +#define IDirectDraw2_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a) +#define IDirectDraw2_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b) +#define IDirectDraw2_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a) +#define IDirectDraw2_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a) +#define IDirectDraw2_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a) +#define IDirectDraw2_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a) +#define IDirectDraw2_Initialize(p, a) (p)->lpVtbl->Initialize(p, a) +#define IDirectDraw2_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p) +#define IDirectDraw2_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b) +#define IDirectDraw2_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e) +#define IDirectDraw2_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b) +#define IDirectDraw2_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c) +#else +#define IDirectDraw2_QueryInterface(p, a, b) (p)->QueryInterface(a, b) +#define IDirectDraw2_AddRef(p) (p)->AddRef() +#define IDirectDraw2_Release(p) (p)->Release() +#define IDirectDraw2_Compact(p) (p)->Compact() +#define IDirectDraw2_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c) +#define IDirectDraw2_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d) +#define IDirectDraw2_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c) +#define IDirectDraw2_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b) +#define IDirectDraw2_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d) +#define IDirectDraw2_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d) +#define IDirectDraw2_FlipToGDISurface(p) (p)->FlipToGDISurface() +#define IDirectDraw2_GetCaps(p, a, b) (p)->GetCaps(a, b) +#define IDirectDraw2_GetDisplayMode(p, a) (p)->GetDisplayMode(a) +#define IDirectDraw2_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b) +#define IDirectDraw2_GetGDISurface(p, a) (p)->GetGDISurface(a) +#define IDirectDraw2_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a) +#define IDirectDraw2_GetScanLine(p, a) (p)->GetScanLine(a) +#define IDirectDraw2_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a) +#define IDirectDraw2_Initialize(p, a) (p)->Initialize(a) +#define IDirectDraw2_RestoreDisplayMode(p) (p)->RestoreDisplayMode() +#define IDirectDraw2_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b) +#define IDirectDraw2_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e) +#define IDirectDraw2_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b) +#define IDirectDraw2_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c) +#endif + +#endif + +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDraw4 +DECLARE_INTERFACE_( IDirectDraw4, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDraw methods ***/ + STDMETHOD(Compact)(THIS) PURE; + STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE; + STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE; + STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC2, LPDIRECTDRAWSURFACE4 FAR *, IUnknown FAR *) PURE; + STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE4, LPDIRECTDRAWSURFACE4 FAR * ) PURE; + STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC2, LPVOID, LPDDENUMMODESCALLBACK2 ) PURE; + STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC2, LPVOID,LPDDENUMSURFACESCALLBACK2 ) PURE; + STDMETHOD(FlipToGDISurface)(THIS) PURE; + STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE; + STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC2) PURE; + STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE; + STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE4 FAR *) PURE; + STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE; + STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE; + STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE; + STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE; + STDMETHOD(RestoreDisplayMode)(THIS) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE; + STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE; + STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE; + /*** Added in the v2 interface ***/ + STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS2, LPDWORD, LPDWORD) PURE; + /*** Added in the V4 Interface ***/ + STDMETHOD(GetSurfaceFromDC) (THIS_ HDC, LPDIRECTDRAWSURFACE4 *) PURE; + STDMETHOD(RestoreAllSurfaces)(THIS) PURE; + STDMETHOD(TestCooperativeLevel)(THIS) PURE; + STDMETHOD(GetDeviceIdentifier)(THIS_ LPDDDEVICEIDENTIFIER, DWORD ) PURE; +}; +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDraw4_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) +#define IDirectDraw4_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDraw4_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDraw4_Compact(p) (p)->lpVtbl->Compact(p) +#define IDirectDraw4_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c) +#define IDirectDraw4_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d) +#define IDirectDraw4_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c) +#define IDirectDraw4_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b) +#define IDirectDraw4_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d) +#define IDirectDraw4_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d) +#define IDirectDraw4_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p) +#define IDirectDraw4_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b) +#define IDirectDraw4_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a) +#define IDirectDraw4_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b) +#define IDirectDraw4_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a) +#define IDirectDraw4_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a) +#define IDirectDraw4_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a) +#define IDirectDraw4_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a) +#define IDirectDraw4_Initialize(p, a) (p)->lpVtbl->Initialize(p, a) +#define IDirectDraw4_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p) +#define IDirectDraw4_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b) +#define IDirectDraw4_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e) +#define IDirectDraw4_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b) +#define IDirectDraw4_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c) +#define IDirectDraw4_GetSurfaceFromDC(p, a, b) (p)->lpVtbl->GetSurfaceFromDC(p, a, b) +#define IDirectDraw4_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p) +#define IDirectDraw4_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p) +#define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b) +#else +#define IDirectDraw4_QueryInterface(p, a, b) (p)->QueryInterface(a, b) +#define IDirectDraw4_AddRef(p) (p)->AddRef() +#define IDirectDraw4_Release(p) (p)->Release() +#define IDirectDraw4_Compact(p) (p)->Compact() +#define IDirectDraw4_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c) +#define IDirectDraw4_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d) +#define IDirectDraw4_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c) +#define IDirectDraw4_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b) +#define IDirectDraw4_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d) +#define IDirectDraw4_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d) +#define IDirectDraw4_FlipToGDISurface(p) (p)->FlipToGDISurface() +#define IDirectDraw4_GetCaps(p, a, b) (p)->GetCaps(a, b) +#define IDirectDraw4_GetDisplayMode(p, a) (p)->GetDisplayMode(a) +#define IDirectDraw4_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b) +#define IDirectDraw4_GetGDISurface(p, a) (p)->GetGDISurface(a) +#define IDirectDraw4_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a) +#define IDirectDraw4_GetScanLine(p, a) (p)->GetScanLine(a) +#define IDirectDraw4_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a) +#define IDirectDraw4_Initialize(p, a) (p)->Initialize(a) +#define IDirectDraw4_RestoreDisplayMode(p) (p)->RestoreDisplayMode() +#define IDirectDraw4_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b) +#define IDirectDraw4_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e) +#define IDirectDraw4_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b) +#define IDirectDraw4_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c) +#define IDirectDraw4_GetSurfaceFromDC(p, a, b) (p)->GetSurfaceFromDC(a, b) +#define IDirectDraw4_RestoreAllSurfaces(p) (p)->RestoreAllSurfaces() +#define IDirectDraw4_TestCooperativeLevel(p) (p)->TestCooperativeLevel() +#define IDirectDraw4_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b) +#endif + +#endif + +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDraw7 +DECLARE_INTERFACE_( IDirectDraw7, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDraw methods ***/ + STDMETHOD(Compact)(THIS) PURE; + STDMETHOD(CreateClipper)(THIS_ DWORD, LPDIRECTDRAWCLIPPER FAR*, IUnknown FAR * ) PURE; + STDMETHOD(CreatePalette)(THIS_ DWORD, LPPALETTEENTRY, LPDIRECTDRAWPALETTE FAR*, IUnknown FAR * ) PURE; + STDMETHOD(CreateSurface)(THIS_ LPDDSURFACEDESC2, LPDIRECTDRAWSURFACE7 FAR *, IUnknown FAR *) PURE; + STDMETHOD(DuplicateSurface)( THIS_ LPDIRECTDRAWSURFACE7, LPDIRECTDRAWSURFACE7 FAR * ) PURE; + STDMETHOD(EnumDisplayModes)( THIS_ DWORD, LPDDSURFACEDESC2, LPVOID, LPDDENUMMODESCALLBACK2 ) PURE; + STDMETHOD(EnumSurfaces)(THIS_ DWORD, LPDDSURFACEDESC2, LPVOID,LPDDENUMSURFACESCALLBACK7 ) PURE; + STDMETHOD(FlipToGDISurface)(THIS) PURE; + STDMETHOD(GetCaps)( THIS_ LPDDCAPS, LPDDCAPS) PURE; + STDMETHOD(GetDisplayMode)( THIS_ LPDDSURFACEDESC2) PURE; + STDMETHOD(GetFourCCCodes)(THIS_ LPDWORD, LPDWORD ) PURE; + STDMETHOD(GetGDISurface)(THIS_ LPDIRECTDRAWSURFACE7 FAR *) PURE; + STDMETHOD(GetMonitorFrequency)(THIS_ LPDWORD) PURE; + STDMETHOD(GetScanLine)(THIS_ LPDWORD) PURE; + STDMETHOD(GetVerticalBlankStatus)(THIS_ LPBOOL ) PURE; + STDMETHOD(Initialize)(THIS_ GUID FAR *) PURE; + STDMETHOD(RestoreDisplayMode)(THIS) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND, DWORD) PURE; + STDMETHOD(SetDisplayMode)(THIS_ DWORD, DWORD,DWORD, DWORD, DWORD) PURE; + STDMETHOD(WaitForVerticalBlank)(THIS_ DWORD, HANDLE ) PURE; + /*** Added in the v2 interface ***/ + STDMETHOD(GetAvailableVidMem)(THIS_ LPDDSCAPS2, LPDWORD, LPDWORD) PURE; + /*** Added in the V4 Interface ***/ + STDMETHOD(GetSurfaceFromDC) (THIS_ HDC, LPDIRECTDRAWSURFACE7 *) PURE; + STDMETHOD(RestoreAllSurfaces)(THIS) PURE; + STDMETHOD(TestCooperativeLevel)(THIS) PURE; + STDMETHOD(GetDeviceIdentifier)(THIS_ LPDDDEVICEIDENTIFIER2, DWORD ) PURE; + STDMETHOD(StartModeTest)(THIS_ LPSIZE, DWORD, DWORD ) PURE; + STDMETHOD(EvaluateMode)(THIS_ DWORD, DWORD * ) PURE; +}; +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDraw7_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) +#define IDirectDraw7_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDraw7_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDraw7_Compact(p) (p)->lpVtbl->Compact(p) +#define IDirectDraw7_CreateClipper(p, a, b, c) (p)->lpVtbl->CreateClipper(p, a, b, c) +#define IDirectDraw7_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d) +#define IDirectDraw7_CreateSurface(p, a, b, c) (p)->lpVtbl->CreateSurface(p, a, b, c) +#define IDirectDraw7_DuplicateSurface(p, a, b) (p)->lpVtbl->DuplicateSurface(p, a, b) +#define IDirectDraw7_EnumDisplayModes(p, a, b, c, d) (p)->lpVtbl->EnumDisplayModes(p, a, b, c, d) +#define IDirectDraw7_EnumSurfaces(p, a, b, c, d) (p)->lpVtbl->EnumSurfaces(p, a, b, c, d) +#define IDirectDraw7_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p) +#define IDirectDraw7_GetCaps(p, a, b) (p)->lpVtbl->GetCaps(p, a, b) +#define IDirectDraw7_GetDisplayMode(p, a) (p)->lpVtbl->GetDisplayMode(p, a) +#define IDirectDraw7_GetFourCCCodes(p, a, b) (p)->lpVtbl->GetFourCCCodes(p, a, b) +#define IDirectDraw7_GetGDISurface(p, a) (p)->lpVtbl->GetGDISurface(p, a) +#define IDirectDraw7_GetMonitorFrequency(p, a) (p)->lpVtbl->GetMonitorFrequency(p, a) +#define IDirectDraw7_GetScanLine(p, a) (p)->lpVtbl->GetScanLine(p, a) +#define IDirectDraw7_GetVerticalBlankStatus(p, a) (p)->lpVtbl->GetVerticalBlankStatus(p, a) +#define IDirectDraw7_Initialize(p, a) (p)->lpVtbl->Initialize(p, a) +#define IDirectDraw7_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p) +#define IDirectDraw7_SetCooperativeLevel(p, a, b) (p)->lpVtbl->SetCooperativeLevel(p, a, b) +#define IDirectDraw7_SetDisplayMode(p, a, b, c, d, e) (p)->lpVtbl->SetDisplayMode(p, a, b, c, d, e) +#define IDirectDraw7_WaitForVerticalBlank(p, a, b) (p)->lpVtbl->WaitForVerticalBlank(p, a, b) +#define IDirectDraw7_GetAvailableVidMem(p, a, b, c) (p)->lpVtbl->GetAvailableVidMem(p, a, b, c) +#define IDirectDraw7_GetSurfaceFromDC(p, a, b) (p)->lpVtbl->GetSurfaceFromDC(p, a, b) +#define IDirectDraw7_RestoreAllSurfaces(p) (p)->lpVtbl->RestoreAllSurfaces(p) +#define IDirectDraw7_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p) +#define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->lpVtbl->GetDeviceIdentifier(p,a,b) +#define IDirectDraw7_StartModeTest(p,a,b,c) (p)->lpVtbl->StartModeTest(p,a,b,c) +#define IDirectDraw7_EvaluateMode(p,a,b) (p)->lpVtbl->EvaluateMode(p,a,b) +#else +#define IDirectDraw7_QueryInterface(p, a, b) (p)->QueryInterface(a, b) +#define IDirectDraw7_AddRef(p) (p)->AddRef() +#define IDirectDraw7_Release(p) (p)->Release() +#define IDirectDraw7_Compact(p) (p)->Compact() +#define IDirectDraw7_CreateClipper(p, a, b, c) (p)->CreateClipper(a, b, c) +#define IDirectDraw7_CreatePalette(p, a, b, c, d) (p)->CreatePalette(a, b, c, d) +#define IDirectDraw7_CreateSurface(p, a, b, c) (p)->CreateSurface(a, b, c) +#define IDirectDraw7_DuplicateSurface(p, a, b) (p)->DuplicateSurface(a, b) +#define IDirectDraw7_EnumDisplayModes(p, a, b, c, d) (p)->EnumDisplayModes(a, b, c, d) +#define IDirectDraw7_EnumSurfaces(p, a, b, c, d) (p)->EnumSurfaces(a, b, c, d) +#define IDirectDraw7_FlipToGDISurface(p) (p)->FlipToGDISurface() +#define IDirectDraw7_GetCaps(p, a, b) (p)->GetCaps(a, b) +#define IDirectDraw7_GetDisplayMode(p, a) (p)->GetDisplayMode(a) +#define IDirectDraw7_GetFourCCCodes(p, a, b) (p)->GetFourCCCodes(a, b) +#define IDirectDraw7_GetGDISurface(p, a) (p)->GetGDISurface(a) +#define IDirectDraw7_GetMonitorFrequency(p, a) (p)->GetMonitorFrequency(a) +#define IDirectDraw7_GetScanLine(p, a) (p)->GetScanLine(a) +#define IDirectDraw7_GetVerticalBlankStatus(p, a) (p)->GetVerticalBlankStatus(a) +#define IDirectDraw7_Initialize(p, a) (p)->Initialize(a) +#define IDirectDraw7_RestoreDisplayMode(p) (p)->RestoreDisplayMode() +#define IDirectDraw7_SetCooperativeLevel(p, a, b) (p)->SetCooperativeLevel(a, b) +#define IDirectDraw7_SetDisplayMode(p, a, b, c, d, e) (p)->SetDisplayMode(a, b, c, d, e) +#define IDirectDraw7_WaitForVerticalBlank(p, a, b) (p)->WaitForVerticalBlank(a, b) +#define IDirectDraw7_GetAvailableVidMem(p, a, b, c) (p)->GetAvailableVidMem(a, b, c) +#define IDirectDraw7_GetSurfaceFromDC(p, a, b) (p)->GetSurfaceFromDC(a, b) +#define IDirectDraw7_RestoreAllSurfaces(p) (p)->RestoreAllSurfaces() +#define IDirectDraw7_TestCooperativeLevel(p) (p)->TestCooperativeLevel() +#define IDirectDraw7_GetDeviceIdentifier(p,a,b) (p)->GetDeviceIdentifier(a,b) +#define IDirectDraw7_StartModeTest(p,a,b,c) (p)->lpVtbl->StartModeTest(a,b,c) +#define IDirectDraw7_EvaluateMode(p,a,b) (p)->lpVtbl->EvaluateMode(a,b) +#endif + +#endif + + +/* + * IDirectDrawPalette + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawPalette +DECLARE_INTERFACE_( IDirectDrawPalette, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawPalette methods ***/ + STDMETHOD(GetCaps)(THIS_ LPDWORD) PURE; + STDMETHOD(GetEntries)(THIS_ DWORD,DWORD,DWORD,LPPALETTEENTRY) PURE; + STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, DWORD, LPPALETTEENTRY) PURE; + STDMETHOD(SetEntries)(THIS_ DWORD,DWORD,DWORD,LPPALETTEENTRY) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawPalette_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) +#define IDirectDrawPalette_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDrawPalette_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDrawPalette_GetCaps(p, a) (p)->lpVtbl->GetCaps(p, a) +#define IDirectDrawPalette_GetEntries(p, a, b, c, d) (p)->lpVtbl->GetEntries(p, a, b, c, d) +#define IDirectDrawPalette_Initialize(p, a, b, c) (p)->lpVtbl->Initialize(p, a, b, c) +#define IDirectDrawPalette_SetEntries(p, a, b, c, d) (p)->lpVtbl->SetEntries(p, a, b, c, d) +#else +#define IDirectDrawPalette_QueryInterface(p, a, b) (p)->QueryInterface(a, b) +#define IDirectDrawPalette_AddRef(p) (p)->AddRef() +#define IDirectDrawPalette_Release(p) (p)->Release() +#define IDirectDrawPalette_GetCaps(p, a) (p)->GetCaps(a) +#define IDirectDrawPalette_GetEntries(p, a, b, c, d) (p)->GetEntries(a, b, c, d) +#define IDirectDrawPalette_Initialize(p, a, b, c) (p)->Initialize(a, b, c) +#define IDirectDrawPalette_SetEntries(p, a, b, c, d) (p)->SetEntries(a, b, c, d) +#endif + +#endif + + +/* + * IDirectDrawClipper + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawClipper +DECLARE_INTERFACE_( IDirectDrawClipper, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawClipper methods ***/ + STDMETHOD(GetClipList)(THIS_ LPRECT, LPRGNDATA, LPDWORD) PURE; + STDMETHOD(GetHWnd)(THIS_ HWND FAR *) PURE; + STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, DWORD) PURE; + STDMETHOD(IsClipListChanged)(THIS_ BOOL FAR *) PURE; + STDMETHOD(SetClipList)(THIS_ LPRGNDATA,DWORD) PURE; + STDMETHOD(SetHWnd)(THIS_ DWORD, HWND ) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawClipper_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) +#define IDirectDrawClipper_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDrawClipper_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDrawClipper_GetClipList(p, a, b, c) (p)->lpVtbl->GetClipList(p, a, b, c) +#define IDirectDrawClipper_GetHWnd(p, a) (p)->lpVtbl->GetHWnd(p, a) +#define IDirectDrawClipper_Initialize(p, a, b) (p)->lpVtbl->Initialize(p, a, b) +#define IDirectDrawClipper_IsClipListChanged(p, a) (p)->lpVtbl->IsClipListChanged(p, a) +#define IDirectDrawClipper_SetClipList(p, a, b) (p)->lpVtbl->SetClipList(p, a, b) +#define IDirectDrawClipper_SetHWnd(p, a, b) (p)->lpVtbl->SetHWnd(p, a, b) +#else +#define IDirectDrawClipper_QueryInterface(p, a, b) (p)->QueryInterface(a, b) +#define IDirectDrawClipper_AddRef(p) (p)->AddRef() +#define IDirectDrawClipper_Release(p) (p)->Release() +#define IDirectDrawClipper_GetClipList(p, a, b, c) (p)->GetClipList(a, b, c) +#define IDirectDrawClipper_GetHWnd(p, a) (p)->GetHWnd(a) +#define IDirectDrawClipper_Initialize(p, a, b) (p)->Initialize(a, b) +#define IDirectDrawClipper_IsClipListChanged(p, a) (p)->IsClipListChanged(a) +#define IDirectDrawClipper_SetClipList(p, a, b) (p)->SetClipList(a, b) +#define IDirectDrawClipper_SetHWnd(p, a, b) (p)->SetHWnd(a, b) +#endif + +#endif + +/* + * IDirectDrawSurface and related interfaces + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawSurface +DECLARE_INTERFACE_( IDirectDrawSurface, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawSurface methods ***/ + STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE) PURE; + STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE; + STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE, LPRECT,DWORD, LPDDBLTFX) PURE; + STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; + STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE, LPRECT,DWORD) PURE; + STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE) PURE; + STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE; + STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE; + STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE; + STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE FAR *) PURE; + STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; + STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE; + STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; + STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; + STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE; + STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; + STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; + STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; + STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; + STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE; + STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE; + STDMETHOD(IsLost)(THIS) PURE; + STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE; + STDMETHOD(ReleaseDC)(THIS_ HDC) PURE; + STDMETHOD(Restore)(THIS) PURE; + STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; + STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; + STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; + STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; + STDMETHOD(Unlock)(THIS_ LPVOID) PURE; + STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE,LPRECT,DWORD, LPDDOVERLAYFX) PURE; + STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; + STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawSurface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectDrawSurface_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDrawSurface_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a) +#define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a) +#define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e) +#define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c) +#define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e) +#define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b) +#define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b) +#define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c) +#define IDirectDrawSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) +#define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b) +#define IDirectDrawSurface_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a) +#define IDirectDrawSurface_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b) +#define IDirectDrawSurface_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a) +#define IDirectDrawSurface_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b) +#define IDirectDrawSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) +#define IDirectDrawSurface_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a) +#define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b) +#define IDirectDrawSurface_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a) +#define IDirectDrawSurface_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a) +#define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) +#define IDirectDrawSurface_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirectDrawSurface_IsLost(p) (p)->lpVtbl->IsLost(p) +#define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) +#define IDirectDrawSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) +#define IDirectDrawSurface_Restore(p) (p)->lpVtbl->Restore(p) +#define IDirectDrawSurface_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a) +#define IDirectDrawSurface_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b) +#define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b) +#define IDirectDrawSurface_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a) +#define IDirectDrawSurface_Unlock(p,b) (p)->lpVtbl->Unlock(p,b) +#define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e) +#define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a) +#define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b) +#else +#define IDirectDrawSurface_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectDrawSurface_AddRef(p) (p)->AddRef() +#define IDirectDrawSurface_Release(p) (p)->Release() +#define IDirectDrawSurface_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a) +#define IDirectDrawSurface_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a) +#define IDirectDrawSurface_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e) +#define IDirectDrawSurface_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c) +#define IDirectDrawSurface_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e) +#define IDirectDrawSurface_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b) +#define IDirectDrawSurface_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b) +#define IDirectDrawSurface_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c) +#define IDirectDrawSurface_Flip(p,a,b) (p)->Flip(a,b) +#define IDirectDrawSurface_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b) +#define IDirectDrawSurface_GetBltStatus(p,a) (p)->GetBltStatus(a) +#define IDirectDrawSurface_GetCaps(p,b) (p)->GetCaps(b) +#define IDirectDrawSurface_GetClipper(p,a) (p)->GetClipper(a) +#define IDirectDrawSurface_GetColorKey(p,a,b) (p)->GetColorKey(a,b) +#define IDirectDrawSurface_GetDC(p,a) (p)->GetDC(a) +#define IDirectDrawSurface_GetFlipStatus(p,a) (p)->GetFlipStatus(a) +#define IDirectDrawSurface_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b) +#define IDirectDrawSurface_GetPalette(p,a) (p)->GetPalette(a) +#define IDirectDrawSurface_GetPixelFormat(p,a) (p)->GetPixelFormat(a) +#define IDirectDrawSurface_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a) +#define IDirectDrawSurface_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirectDrawSurface_IsLost(p) (p)->IsLost() +#define IDirectDrawSurface_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) +#define IDirectDrawSurface_ReleaseDC(p,a) (p)->ReleaseDC(a) +#define IDirectDrawSurface_Restore(p) (p)->Restore() +#define IDirectDrawSurface_SetClipper(p,a) (p)->SetClipper(a) +#define IDirectDrawSurface_SetColorKey(p,a,b) (p)->SetColorKey(a,b) +#define IDirectDrawSurface_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b) +#define IDirectDrawSurface_SetPalette(p,a) (p)->SetPalette(a) +#define IDirectDrawSurface_Unlock(p,b) (p)->Unlock(b) +#define IDirectDrawSurface_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e) +#define IDirectDrawSurface_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a) +#define IDirectDrawSurface_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b) +#endif + +/* + * IDirectDrawSurface2 and related interfaces + */ +#undef INTERFACE +#define INTERFACE IDirectDrawSurface2 +DECLARE_INTERFACE_( IDirectDrawSurface2, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawSurface methods ***/ + STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE2) PURE; + STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE; + STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE2, LPRECT,DWORD, LPDDBLTFX) PURE; + STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; + STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE2, LPRECT,DWORD) PURE; + STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE2) PURE; + STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE; + STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE; + STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE2, DWORD) PURE; + STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE2 FAR *) PURE; + STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; + STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE; + STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; + STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; + STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE; + STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; + STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; + STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; + STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; + STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE; + STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE; + STDMETHOD(IsLost)(THIS) PURE; + STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE; + STDMETHOD(ReleaseDC)(THIS_ HDC) PURE; + STDMETHOD(Restore)(THIS) PURE; + STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; + STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; + STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; + STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; + STDMETHOD(Unlock)(THIS_ LPVOID) PURE; + STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE2,LPRECT,DWORD, LPDDOVERLAYFX) PURE; + STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; + STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE2) PURE; + /*** Added in the v2 interface ***/ + STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE; + STDMETHOD(PageLock)(THIS_ DWORD) PURE; + STDMETHOD(PageUnlock)(THIS_ DWORD) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectDrawSurface2_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDrawSurface2_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a) +#define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a) +#define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e) +#define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c) +#define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e) +#define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b) +#define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b) +#define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c) +#define IDirectDrawSurface2_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) +#define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b) +#define IDirectDrawSurface2_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a) +#define IDirectDrawSurface2_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b) +#define IDirectDrawSurface2_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a) +#define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b) +#define IDirectDrawSurface2_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) +#define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a) +#define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b) +#define IDirectDrawSurface2_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a) +#define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a) +#define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) +#define IDirectDrawSurface2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirectDrawSurface2_IsLost(p) (p)->lpVtbl->IsLost(p) +#define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) +#define IDirectDrawSurface2_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) +#define IDirectDrawSurface2_Restore(p) (p)->lpVtbl->Restore(p) +#define IDirectDrawSurface2_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a) +#define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b) +#define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b) +#define IDirectDrawSurface2_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a) +#define IDirectDrawSurface2_Unlock(p,b) (p)->lpVtbl->Unlock(p,b) +#define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e) +#define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a) +#define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b) +#define IDirectDrawSurface2_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a) +#define IDirectDrawSurface2_PageLock(p,a) (p)->lpVtbl->PageLock(p,a) +#define IDirectDrawSurface2_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a) +#else +#define IDirectDrawSurface2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectDrawSurface2_AddRef(p) (p)->AddRef() +#define IDirectDrawSurface2_Release(p) (p)->Release() +#define IDirectDrawSurface2_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a) +#define IDirectDrawSurface2_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a) +#define IDirectDrawSurface2_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e) +#define IDirectDrawSurface2_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c) +#define IDirectDrawSurface2_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e) +#define IDirectDrawSurface2_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b) +#define IDirectDrawSurface2_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b) +#define IDirectDrawSurface2_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c) +#define IDirectDrawSurface2_Flip(p,a,b) (p)->Flip(a,b) +#define IDirectDrawSurface2_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b) +#define IDirectDrawSurface2_GetBltStatus(p,a) (p)->GetBltStatus(a) +#define IDirectDrawSurface2_GetCaps(p,b) (p)->GetCaps(b) +#define IDirectDrawSurface2_GetClipper(p,a) (p)->GetClipper(a) +#define IDirectDrawSurface2_GetColorKey(p,a,b) (p)->GetColorKey(a,b) +#define IDirectDrawSurface2_GetDC(p,a) (p)->GetDC(a) +#define IDirectDrawSurface2_GetFlipStatus(p,a) (p)->GetFlipStatus(a) +#define IDirectDrawSurface2_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b) +#define IDirectDrawSurface2_GetPalette(p,a) (p)->GetPalette(a) +#define IDirectDrawSurface2_GetPixelFormat(p,a) (p)->GetPixelFormat(a) +#define IDirectDrawSurface2_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a) +#define IDirectDrawSurface2_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirectDrawSurface2_IsLost(p) (p)->IsLost() +#define IDirectDrawSurface2_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) +#define IDirectDrawSurface2_ReleaseDC(p,a) (p)->ReleaseDC(a) +#define IDirectDrawSurface2_Restore(p) (p)->Restore() +#define IDirectDrawSurface2_SetClipper(p,a) (p)->SetClipper(a) +#define IDirectDrawSurface2_SetColorKey(p,a,b) (p)->SetColorKey(a,b) +#define IDirectDrawSurface2_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b) +#define IDirectDrawSurface2_SetPalette(p,a) (p)->SetPalette(a) +#define IDirectDrawSurface2_Unlock(p,b) (p)->Unlock(b) +#define IDirectDrawSurface2_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e) +#define IDirectDrawSurface2_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a) +#define IDirectDrawSurface2_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b) +#define IDirectDrawSurface2_GetDDInterface(p,a) (p)->GetDDInterface(a) +#define IDirectDrawSurface2_PageLock(p,a) (p)->PageLock(a) +#define IDirectDrawSurface2_PageUnlock(p,a) (p)->PageUnlock(a) +#endif + +/* + * IDirectDrawSurface3 and related interfaces + */ +#undef INTERFACE +#define INTERFACE IDirectDrawSurface3 +DECLARE_INTERFACE_( IDirectDrawSurface3, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawSurface methods ***/ + STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE3) PURE; + STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE; + STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE3, LPRECT,DWORD, LPDDBLTFX) PURE; + STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; + STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE3, LPRECT,DWORD) PURE; + STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE3) PURE; + STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK) PURE; + STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK) PURE; + STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE3, DWORD) PURE; + STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS, LPDIRECTDRAWSURFACE3 FAR *) PURE; + STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; + STDMETHOD(GetCaps)(THIS_ LPDDSCAPS) PURE; + STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; + STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; + STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE; + STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; + STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; + STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; + STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; + STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC) PURE; + STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC) PURE; + STDMETHOD(IsLost)(THIS) PURE; + STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC,DWORD,HANDLE) PURE; + STDMETHOD(ReleaseDC)(THIS_ HDC) PURE; + STDMETHOD(Restore)(THIS) PURE; + STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; + STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; + STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; + STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; + STDMETHOD(Unlock)(THIS_ LPVOID) PURE; + STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE3,LPRECT,DWORD, LPDDOVERLAYFX) PURE; + STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; + STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE3) PURE; + /*** Added in the v2 interface ***/ + STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE; + STDMETHOD(PageLock)(THIS_ DWORD) PURE; + STDMETHOD(PageUnlock)(THIS_ DWORD) PURE; + /*** Added in the V3 interface ***/ + STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC, DWORD) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectDrawSurface3_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDrawSurface3_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a) +#define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a) +#define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e) +#define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c) +#define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e) +#define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b) +#define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b) +#define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c) +#define IDirectDrawSurface3_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) +#define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b) +#define IDirectDrawSurface3_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a) +#define IDirectDrawSurface3_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b) +#define IDirectDrawSurface3_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a) +#define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b) +#define IDirectDrawSurface3_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) +#define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a) +#define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b) +#define IDirectDrawSurface3_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a) +#define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a) +#define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) +#define IDirectDrawSurface3_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirectDrawSurface3_IsLost(p) (p)->lpVtbl->IsLost(p) +#define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) +#define IDirectDrawSurface3_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) +#define IDirectDrawSurface3_Restore(p) (p)->lpVtbl->Restore(p) +#define IDirectDrawSurface3_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a) +#define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b) +#define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b) +#define IDirectDrawSurface3_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a) +#define IDirectDrawSurface3_Unlock(p,b) (p)->lpVtbl->Unlock(p,b) +#define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e) +#define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a) +#define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b) +#define IDirectDrawSurface3_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a) +#define IDirectDrawSurface3_PageLock(p,a) (p)->lpVtbl->PageLock(p,a) +#define IDirectDrawSurface3_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a) +#define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b) +#else +#define IDirectDrawSurface3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectDrawSurface3_AddRef(p) (p)->AddRef() +#define IDirectDrawSurface3_Release(p) (p)->Release() +#define IDirectDrawSurface3_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a) +#define IDirectDrawSurface3_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a) +#define IDirectDrawSurface3_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e) +#define IDirectDrawSurface3_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c) +#define IDirectDrawSurface3_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e) +#define IDirectDrawSurface3_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b) +#define IDirectDrawSurface3_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b) +#define IDirectDrawSurface3_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c) +#define IDirectDrawSurface3_Flip(p,a,b) (p)->Flip(a,b) +#define IDirectDrawSurface3_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b) +#define IDirectDrawSurface3_GetBltStatus(p,a) (p)->GetBltStatus(a) +#define IDirectDrawSurface3_GetCaps(p,b) (p)->GetCaps(b) +#define IDirectDrawSurface3_GetClipper(p,a) (p)->GetClipper(a) +#define IDirectDrawSurface3_GetColorKey(p,a,b) (p)->GetColorKey(a,b) +#define IDirectDrawSurface3_GetDC(p,a) (p)->GetDC(a) +#define IDirectDrawSurface3_GetFlipStatus(p,a) (p)->GetFlipStatus(a) +#define IDirectDrawSurface3_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b) +#define IDirectDrawSurface3_GetPalette(p,a) (p)->GetPalette(a) +#define IDirectDrawSurface3_GetPixelFormat(p,a) (p)->GetPixelFormat(a) +#define IDirectDrawSurface3_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a) +#define IDirectDrawSurface3_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirectDrawSurface3_IsLost(p) (p)->IsLost() +#define IDirectDrawSurface3_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) +#define IDirectDrawSurface3_ReleaseDC(p,a) (p)->ReleaseDC(a) +#define IDirectDrawSurface3_Restore(p) (p)->Restore() +#define IDirectDrawSurface3_SetClipper(p,a) (p)->SetClipper(a) +#define IDirectDrawSurface3_SetColorKey(p,a,b) (p)->SetColorKey(a,b) +#define IDirectDrawSurface3_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b) +#define IDirectDrawSurface3_SetPalette(p,a) (p)->SetPalette(a) +#define IDirectDrawSurface3_Unlock(p,b) (p)->Unlock(b) +#define IDirectDrawSurface3_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e) +#define IDirectDrawSurface3_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a) +#define IDirectDrawSurface3_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b) +#define IDirectDrawSurface3_GetDDInterface(p,a) (p)->GetDDInterface(a) +#define IDirectDrawSurface3_PageLock(p,a) (p)->PageLock(a) +#define IDirectDrawSurface3_PageUnlock(p,a) (p)->PageUnlock(a) +#define IDirectDrawSurface3_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b) +#endif + +/* + * IDirectDrawSurface4 and related interfaces + */ +#undef INTERFACE +#define INTERFACE IDirectDrawSurface4 +DECLARE_INTERFACE_( IDirectDrawSurface4, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawSurface methods ***/ + STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE4) PURE; + STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE; + STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE4, LPRECT,DWORD, LPDDBLTFX) PURE; + STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; + STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE4, LPRECT,DWORD) PURE; + STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE4) PURE; + STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK2) PURE; + STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK2) PURE; + STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE4, DWORD) PURE; + STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS2, LPDIRECTDRAWSURFACE4 FAR *) PURE; + STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; + STDMETHOD(GetCaps)(THIS_ LPDDSCAPS2) PURE; + STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; + STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; + STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE; + STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; + STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; + STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; + STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; + STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC2) PURE; + STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC2) PURE; + STDMETHOD(IsLost)(THIS) PURE; + STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC2,DWORD,HANDLE) PURE; + STDMETHOD(ReleaseDC)(THIS_ HDC) PURE; + STDMETHOD(Restore)(THIS) PURE; + STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; + STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; + STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; + STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; + STDMETHOD(Unlock)(THIS_ LPRECT) PURE; + STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE4,LPRECT,DWORD, LPDDOVERLAYFX) PURE; + STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; + STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE4) PURE; + /*** Added in the v2 interface ***/ + STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE; + STDMETHOD(PageLock)(THIS_ DWORD) PURE; + STDMETHOD(PageUnlock)(THIS_ DWORD) PURE; + /*** Added in the v3 interface ***/ + STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC2, DWORD) PURE; + /*** Added in the v4 interface ***/ + STDMETHOD(SetPrivateData)(THIS_ REFGUID, LPVOID, DWORD, DWORD) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID, LPVOID, LPDWORD) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID) PURE; + STDMETHOD(GetUniquenessValue)(THIS_ LPDWORD) PURE; + STDMETHOD(ChangeUniquenessValue)(THIS) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectDrawSurface4_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDrawSurface4_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a) +#define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a) +#define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e) +#define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c) +#define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e) +#define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b) +#define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b) +#define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c) +#define IDirectDrawSurface4_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) +#define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b) +#define IDirectDrawSurface4_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a) +#define IDirectDrawSurface4_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b) +#define IDirectDrawSurface4_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a) +#define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b) +#define IDirectDrawSurface4_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) +#define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a) +#define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b) +#define IDirectDrawSurface4_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a) +#define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a) +#define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) +#define IDirectDrawSurface4_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirectDrawSurface4_IsLost(p) (p)->lpVtbl->IsLost(p) +#define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) +#define IDirectDrawSurface4_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) +#define IDirectDrawSurface4_Restore(p) (p)->lpVtbl->Restore(p) +#define IDirectDrawSurface4_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a) +#define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b) +#define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b) +#define IDirectDrawSurface4_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a) +#define IDirectDrawSurface4_Unlock(p,b) (p)->lpVtbl->Unlock(p,b) +#define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e) +#define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a) +#define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b) +#define IDirectDrawSurface4_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a) +#define IDirectDrawSurface4_PageLock(p,a) (p)->lpVtbl->PageLock(p,a) +#define IDirectDrawSurface4_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a) +#define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b) +#define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirectDrawSurface4_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirectDrawSurface4_GetUniquenessValue(p, a) (p)->lpVtbl->GetUniquenessValue(p, a) +#define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p) +#else +#define IDirectDrawSurface4_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectDrawSurface4_AddRef(p) (p)->AddRef() +#define IDirectDrawSurface4_Release(p) (p)->Release() +#define IDirectDrawSurface4_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a) +#define IDirectDrawSurface4_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a) +#define IDirectDrawSurface4_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e) +#define IDirectDrawSurface4_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c) +#define IDirectDrawSurface4_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e) +#define IDirectDrawSurface4_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b) +#define IDirectDrawSurface4_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b) +#define IDirectDrawSurface4_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c) +#define IDirectDrawSurface4_Flip(p,a,b) (p)->Flip(a,b) +#define IDirectDrawSurface4_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b) +#define IDirectDrawSurface4_GetBltStatus(p,a) (p)->GetBltStatus(a) +#define IDirectDrawSurface4_GetCaps(p,b) (p)->GetCaps(b) +#define IDirectDrawSurface4_GetClipper(p,a) (p)->GetClipper(a) +#define IDirectDrawSurface4_GetColorKey(p,a,b) (p)->GetColorKey(a,b) +#define IDirectDrawSurface4_GetDC(p,a) (p)->GetDC(a) +#define IDirectDrawSurface4_GetFlipStatus(p,a) (p)->GetFlipStatus(a) +#define IDirectDrawSurface4_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b) +#define IDirectDrawSurface4_GetPalette(p,a) (p)->GetPalette(a) +#define IDirectDrawSurface4_GetPixelFormat(p,a) (p)->GetPixelFormat(a) +#define IDirectDrawSurface4_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a) +#define IDirectDrawSurface4_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirectDrawSurface4_IsLost(p) (p)->IsLost() +#define IDirectDrawSurface4_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) +#define IDirectDrawSurface4_ReleaseDC(p,a) (p)->ReleaseDC(a) +#define IDirectDrawSurface4_Restore(p) (p)->Restore() +#define IDirectDrawSurface4_SetClipper(p,a) (p)->SetClipper(a) +#define IDirectDrawSurface4_SetColorKey(p,a,b) (p)->SetColorKey(a,b) +#define IDirectDrawSurface4_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b) +#define IDirectDrawSurface4_SetPalette(p,a) (p)->SetPalette(a) +#define IDirectDrawSurface4_Unlock(p,b) (p)->Unlock(b) +#define IDirectDrawSurface4_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e) +#define IDirectDrawSurface4_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a) +#define IDirectDrawSurface4_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b) +#define IDirectDrawSurface4_GetDDInterface(p,a) (p)->GetDDInterface(a) +#define IDirectDrawSurface4_PageLock(p,a) (p)->PageLock(a) +#define IDirectDrawSurface4_PageUnlock(p,a) (p)->PageUnlock(a) +#define IDirectDrawSurface4_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b) +#define IDirectDrawSurface4_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirectDrawSurface4_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirectDrawSurface4_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirectDrawSurface4_GetUniquenessValue(p, a) (p)->GetUniquenessValue(a) +#define IDirectDrawSurface4_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue() +#endif + +/* + * IDirectDrawSurface7 and related interfaces + */ +#undef INTERFACE +#define INTERFACE IDirectDrawSurface7 +DECLARE_INTERFACE_( IDirectDrawSurface7, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawSurface methods ***/ + STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE7) PURE; + STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT) PURE; + STDMETHOD(Blt)(THIS_ LPRECT,LPDIRECTDRAWSURFACE7, LPRECT,DWORD, LPDDBLTFX) PURE; + STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH, DWORD, DWORD ) PURE; + STDMETHOD(BltFast)(THIS_ DWORD,DWORD,LPDIRECTDRAWSURFACE7, LPRECT,DWORD) PURE; + STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD,LPDIRECTDRAWSURFACE7) PURE; + STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID,LPDDENUMSURFACESCALLBACK7) PURE; + STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD,LPVOID,LPDDENUMSURFACESCALLBACK7) PURE; + STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE7, DWORD) PURE; + STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS2, LPDIRECTDRAWSURFACE7 FAR *) PURE; + STDMETHOD(GetBltStatus)(THIS_ DWORD) PURE; + STDMETHOD(GetCaps)(THIS_ LPDDSCAPS2) PURE; + STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER FAR*) PURE; + STDMETHOD(GetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; + STDMETHOD(GetDC)(THIS_ HDC FAR *) PURE; + STDMETHOD(GetFlipStatus)(THIS_ DWORD) PURE; + STDMETHOD(GetOverlayPosition)(THIS_ LPLONG, LPLONG ) PURE; + STDMETHOD(GetPalette)(THIS_ LPDIRECTDRAWPALETTE FAR*) PURE; + STDMETHOD(GetPixelFormat)(THIS_ LPDDPIXELFORMAT) PURE; + STDMETHOD(GetSurfaceDesc)(THIS_ LPDDSURFACEDESC2) PURE; + STDMETHOD(Initialize)(THIS_ LPDIRECTDRAW, LPDDSURFACEDESC2) PURE; + STDMETHOD(IsLost)(THIS) PURE; + STDMETHOD(Lock)(THIS_ LPRECT,LPDDSURFACEDESC2,DWORD,HANDLE) PURE; + STDMETHOD(ReleaseDC)(THIS_ HDC) PURE; + STDMETHOD(Restore)(THIS) PURE; + STDMETHOD(SetClipper)(THIS_ LPDIRECTDRAWCLIPPER) PURE; + STDMETHOD(SetColorKey)(THIS_ DWORD, LPDDCOLORKEY) PURE; + STDMETHOD(SetOverlayPosition)(THIS_ LONG, LONG ) PURE; + STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE) PURE; + STDMETHOD(Unlock)(THIS_ LPRECT) PURE; + STDMETHOD(UpdateOverlay)(THIS_ LPRECT, LPDIRECTDRAWSURFACE7,LPRECT,DWORD, LPDDOVERLAYFX) PURE; + STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD) PURE; + STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD, LPDIRECTDRAWSURFACE7) PURE; + /*** Added in the v2 interface ***/ + STDMETHOD(GetDDInterface)(THIS_ LPVOID FAR *) PURE; + STDMETHOD(PageLock)(THIS_ DWORD) PURE; + STDMETHOD(PageUnlock)(THIS_ DWORD) PURE; + /*** Added in the v3 interface ***/ + STDMETHOD(SetSurfaceDesc)(THIS_ LPDDSURFACEDESC2, DWORD) PURE; + /*** Added in the v4 interface ***/ + STDMETHOD(SetPrivateData)(THIS_ REFGUID, LPVOID, DWORD, DWORD) PURE; + STDMETHOD(GetPrivateData)(THIS_ REFGUID, LPVOID, LPDWORD) PURE; + STDMETHOD(FreePrivateData)(THIS_ REFGUID) PURE; + STDMETHOD(GetUniquenessValue)(THIS_ LPDWORD) PURE; + STDMETHOD(ChangeUniquenessValue)(THIS) PURE; + /*** Moved Texture7 methods here ***/ + STDMETHOD(SetPriority)(THIS_ DWORD) PURE; + STDMETHOD(GetPriority)(THIS_ LPDWORD) PURE; + STDMETHOD(SetLOD)(THIS_ DWORD) PURE; + STDMETHOD(GetLOD)(THIS_ LPDWORD) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectDrawSurface7_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDrawSurface7_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->lpVtbl->AddAttachedSurface(p,a) +#define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->lpVtbl->AddOverlayDirtyRect(p,a) +#define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e) +#define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->lpVtbl->BltBatch(p,a,b,c) +#define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e) +#define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->lpVtbl->DeleteAttachedSurface(p,a,b) +#define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->lpVtbl->EnumAttachedSurfaces(p,a,b) +#define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->lpVtbl->EnumOverlayZOrders(p,a,b,c) +#define IDirectDrawSurface7_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) +#define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->lpVtbl->GetAttachedSurface(p,a,b) +#define IDirectDrawSurface7_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a) +#define IDirectDrawSurface7_GetCaps(p,b) (p)->lpVtbl->GetCaps(p,b) +#define IDirectDrawSurface7_GetClipper(p,a) (p)->lpVtbl->GetClipper(p,a) +#define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->lpVtbl->GetColorKey(p,a,b) +#define IDirectDrawSurface7_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) +#define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a) +#define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->lpVtbl->GetOverlayPosition(p,a,b) +#define IDirectDrawSurface7_GetPalette(p,a) (p)->lpVtbl->GetPalette(p,a) +#define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->lpVtbl->GetPixelFormat(p,a) +#define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) +#define IDirectDrawSurface7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirectDrawSurface7_IsLost(p) (p)->lpVtbl->IsLost(p) +#define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d) +#define IDirectDrawSurface7_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) +#define IDirectDrawSurface7_Restore(p) (p)->lpVtbl->Restore(p) +#define IDirectDrawSurface7_SetClipper(p,a) (p)->lpVtbl->SetClipper(p,a) +#define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->lpVtbl->SetColorKey(p,a,b) +#define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->lpVtbl->SetOverlayPosition(p,a,b) +#define IDirectDrawSurface7_SetPalette(p,a) (p)->lpVtbl->SetPalette(p,a) +#define IDirectDrawSurface7_Unlock(p,b) (p)->lpVtbl->Unlock(p,b) +#define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->lpVtbl->UpdateOverlay(p,a,b,c,d,e) +#define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->lpVtbl->UpdateOverlayDisplay(p,a) +#define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->lpVtbl->UpdateOverlayZOrder(p,a,b) +#define IDirectDrawSurface7_GetDDInterface(p,a) (p)->lpVtbl->GetDDInterface(p,a) +#define IDirectDrawSurface7_PageLock(p,a) (p)->lpVtbl->PageLock(p,a) +#define IDirectDrawSurface7_PageUnlock(p,a) (p)->lpVtbl->PageUnlock(p,a) +#define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->lpVtbl->SetSurfaceDesc(p,a,b) +#define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d) +#define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c) +#define IDirectDrawSurface7_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a) +#define IDirectDrawSurface7_GetUniquenessValue(p, a) (p)->lpVtbl->GetUniquenessValue(p, a) +#define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->lpVtbl->ChangeUniquenessValue(p) +#define IDirectDrawSurface7_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) +#define IDirectDrawSurface7_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a) +#define IDirectDrawSurface7_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a) +#define IDirectDrawSurface7_GetLOD(p,a) (p)->lpVtbl->GetLOD(p,a) +#else +#define IDirectDrawSurface7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectDrawSurface7_AddRef(p) (p)->AddRef() +#define IDirectDrawSurface7_Release(p) (p)->Release() +#define IDirectDrawSurface7_AddAttachedSurface(p,a) (p)->AddAttachedSurface(a) +#define IDirectDrawSurface7_AddOverlayDirtyRect(p,a) (p)->AddOverlayDirtyRect(a) +#define IDirectDrawSurface7_Blt(p,a,b,c,d,e) (p)->Blt(a,b,c,d,e) +#define IDirectDrawSurface7_BltBatch(p,a,b,c) (p)->BltBatch(a,b,c) +#define IDirectDrawSurface7_BltFast(p,a,b,c,d,e) (p)->BltFast(a,b,c,d,e) +#define IDirectDrawSurface7_DeleteAttachedSurface(p,a,b) (p)->DeleteAttachedSurface(a,b) +#define IDirectDrawSurface7_EnumAttachedSurfaces(p,a,b) (p)->EnumAttachedSurfaces(a,b) +#define IDirectDrawSurface7_EnumOverlayZOrders(p,a,b,c) (p)->EnumOverlayZOrders(a,b,c) +#define IDirectDrawSurface7_Flip(p,a,b) (p)->Flip(a,b) +#define IDirectDrawSurface7_GetAttachedSurface(p,a,b) (p)->GetAttachedSurface(a,b) +#define IDirectDrawSurface7_GetBltStatus(p,a) (p)->GetBltStatus(a) +#define IDirectDrawSurface7_GetCaps(p,b) (p)->GetCaps(b) +#define IDirectDrawSurface7_GetClipper(p,a) (p)->GetClipper(a) +#define IDirectDrawSurface7_GetColorKey(p,a,b) (p)->GetColorKey(a,b) +#define IDirectDrawSurface7_GetDC(p,a) (p)->GetDC(a) +#define IDirectDrawSurface7_GetFlipStatus(p,a) (p)->GetFlipStatus(a) +#define IDirectDrawSurface7_GetOverlayPosition(p,a,b) (p)->GetOverlayPosition(a,b) +#define IDirectDrawSurface7_GetPalette(p,a) (p)->GetPalette(a) +#define IDirectDrawSurface7_GetPixelFormat(p,a) (p)->GetPixelFormat(a) +#define IDirectDrawSurface7_GetSurfaceDesc(p,a) (p)->GetSurfaceDesc(a) +#define IDirectDrawSurface7_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirectDrawSurface7_IsLost(p) (p)->IsLost() +#define IDirectDrawSurface7_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d) +#define IDirectDrawSurface7_ReleaseDC(p,a) (p)->ReleaseDC(a) +#define IDirectDrawSurface7_Restore(p) (p)->Restore() +#define IDirectDrawSurface7_SetClipper(p,a) (p)->SetClipper(a) +#define IDirectDrawSurface7_SetColorKey(p,a,b) (p)->SetColorKey(a,b) +#define IDirectDrawSurface7_SetOverlayPosition(p,a,b) (p)->SetOverlayPosition(a,b) +#define IDirectDrawSurface7_SetPalette(p,a) (p)->SetPalette(a) +#define IDirectDrawSurface7_Unlock(p,b) (p)->Unlock(b) +#define IDirectDrawSurface7_UpdateOverlay(p,a,b,c,d,e) (p)->UpdateOverlay(a,b,c,d,e) +#define IDirectDrawSurface7_UpdateOverlayDisplay(p,a) (p)->UpdateOverlayDisplay(a) +#define IDirectDrawSurface7_UpdateOverlayZOrder(p,a,b) (p)->UpdateOverlayZOrder(a,b) +#define IDirectDrawSurface7_GetDDInterface(p,a) (p)->GetDDInterface(a) +#define IDirectDrawSurface7_PageLock(p,a) (p)->PageLock(a) +#define IDirectDrawSurface7_PageUnlock(p,a) (p)->PageUnlock(a) +#define IDirectDrawSurface7_SetSurfaceDesc(p,a,b) (p)->SetSurfaceDesc(a,b) +#define IDirectDrawSurface7_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d) +#define IDirectDrawSurface7_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c) +#define IDirectDrawSurface7_FreePrivateData(p,a) (p)->FreePrivateData(a) +#define IDirectDrawSurface7_GetUniquenessValue(p, a) (p)->GetUniquenessValue(a) +#define IDirectDrawSurface7_ChangeUniquenessValue(p) (p)->ChangeUniquenessValue() +#define IDirectDrawSurface7_SetPriority(p,a) (p)->SetPriority(a) +#define IDirectDrawSurface7_GetPriority(p,a) (p)->GetPriority(a) +#define IDirectDrawSurface7_SetLOD(p,a) (p)->SetLOD(a) +#define IDirectDrawSurface7_GetLOD(p,a) (p)->GetLOD(a) +#endif + + +/* + * IDirectDrawColorControl + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawColorControl +DECLARE_INTERFACE_( IDirectDrawColorControl, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawColorControl methods ***/ + STDMETHOD(GetColorControls)(THIS_ LPDDCOLORCONTROL) PURE; + STDMETHOD(SetColorControls)(THIS_ LPDDCOLORCONTROL) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawColorControl_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) +#define IDirectDrawColorControl_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDrawColorControl_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDrawColorControl_GetColorControls(p, a) (p)->lpVtbl->GetColorControls(p, a) +#define IDirectDrawColorControl_SetColorControls(p, a) (p)->lpVtbl->SetColorControls(p, a) +#else +#define IDirectDrawColorControl_QueryInterface(p, a, b) (p)->QueryInterface(a, b) +#define IDirectDrawColorControl_AddRef(p) (p)->AddRef() +#define IDirectDrawColorControl_Release(p) (p)->Release() +#define IDirectDrawColorControl_GetColorControls(p, a) (p)->GetColorControls(a) +#define IDirectDrawColorControl_SetColorControls(p, a) (p)->SetColorControls(a) +#endif + +#endif + + +/* + * IDirectDrawGammaControl + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawGammaControl +DECLARE_INTERFACE_( IDirectDrawGammaControl, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawGammaControl methods ***/ + STDMETHOD(GetGammaRamp)(THIS_ DWORD, LPDDGAMMARAMP) PURE; + STDMETHOD(SetGammaRamp)(THIS_ DWORD, LPDDGAMMARAMP) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectDrawGammaControl_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) +#define IDirectDrawGammaControl_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectDrawGammaControl_Release(p) (p)->lpVtbl->Release(p) +#define IDirectDrawGammaControl_GetGammaRamp(p, a, b) (p)->lpVtbl->GetGammaRamp(p, a, b) +#define IDirectDrawGammaControl_SetGammaRamp(p, a, b) (p)->lpVtbl->SetGammaRamp(p, a, b) +#else +#define IDirectDrawGammaControl_QueryInterface(p, a, b) (p)->QueryInterface(a, b) +#define IDirectDrawGammaControl_AddRef(p) (p)->AddRef() +#define IDirectDrawGammaControl_Release(p) (p)->Release() +#define IDirectDrawGammaControl_GetGammaRamp(p, a, b) (p)->GetGammaRamp(a, b) +#define IDirectDrawGammaControl_SetGammaRamp(p, a, b) (p)->SetGammaRamp(a, b) +#endif + +#endif + + + +#endif + + +/* + * DDSURFACEDESC + */ +typedef struct _DDSURFACEDESC +{ + DWORD dwSize; // size of the DDSURFACEDESC structure + DWORD dwFlags; // determines what fields are valid + DWORD dwHeight; // height of surface to be created + DWORD dwWidth; // width of input surface + union + { + LONG lPitch; // distance to start of next line (return value only) + DWORD dwLinearSize; // Formless late-allocated optimized surface size + } DUMMYUNIONNAMEN(1); + DWORD dwBackBufferCount; // number of back buffers requested + union + { + DWORD dwMipMapCount; // number of mip-map levels requested + DWORD dwZBufferBitDepth; // depth of Z buffer requested + DWORD dwRefreshRate; // refresh rate (used when display mode is described) + } DUMMYUNIONNAMEN(2); + DWORD dwAlphaBitDepth; // depth of alpha buffer requested + DWORD dwReserved; // reserved + LPVOID lpSurface; // pointer to the associated surface memory + DDCOLORKEY ddckCKDestOverlay; // color key for destination overlay use + DDCOLORKEY ddckCKDestBlt; // color key for destination blt use + DDCOLORKEY ddckCKSrcOverlay; // color key for source overlay use + DDCOLORKEY ddckCKSrcBlt; // color key for source blt use + DDPIXELFORMAT ddpfPixelFormat; // pixel format description of the surface + DDSCAPS ddsCaps; // direct draw surface capabilities +} DDSURFACEDESC; + +/* + * DDSURFACEDESC2 + */ +typedef struct _DDSURFACEDESC2 +{ + DWORD dwSize; // size of the DDSURFACEDESC structure + DWORD dwFlags; // determines what fields are valid + DWORD dwHeight; // height of surface to be created + DWORD dwWidth; // width of input surface + union + { + LONG lPitch; // distance to start of next line (return value only) + DWORD dwLinearSize; // Formless late-allocated optimized surface size + } DUMMYUNIONNAMEN(1); + union + { + DWORD dwBackBufferCount; // number of back buffers requested + DWORD dwDepth; // the depth if this is a volume texture + } DUMMYUNIONNAMEN(5); + union + { + DWORD dwMipMapCount; // number of mip-map levels requestde + // dwZBufferBitDepth removed, use ddpfPixelFormat one instead + DWORD dwRefreshRate; // refresh rate (used when display mode is described) + DWORD dwSrcVBHandle; // The source used in VB::Optimize + } DUMMYUNIONNAMEN(2); + DWORD dwAlphaBitDepth; // depth of alpha buffer requested + DWORD dwReserved; // reserved + LPVOID lpSurface; // pointer to the associated surface memory + union + { + DDCOLORKEY ddckCKDestOverlay; // color key for destination overlay use + DWORD dwEmptyFaceColor; // Physical color for empty cubemap faces + } DUMMYUNIONNAMEN(3); + DDCOLORKEY ddckCKDestBlt; // color key for destination blt use + DDCOLORKEY ddckCKSrcOverlay; // color key for source overlay use + DDCOLORKEY ddckCKSrcBlt; // color key for source blt use + union + { + DDPIXELFORMAT ddpfPixelFormat; // pixel format description of the surface + DWORD dwFVF; // vertex format description of vertex buffers + } DUMMYUNIONNAMEN(4); + DDSCAPS2 ddsCaps; // direct draw surface capabilities + DWORD dwTextureStage; // stage in multitexture cascade +} DDSURFACEDESC2; + +/* + * ddsCaps field is valid. + */ +#define DDSD_CAPS 0x00000001l // default + +/* + * dwHeight field is valid. + */ +#define DDSD_HEIGHT 0x00000002l + +/* + * dwWidth field is valid. + */ +#define DDSD_WIDTH 0x00000004l + +/* + * lPitch is valid. + */ +#define DDSD_PITCH 0x00000008l + +/* + * dwBackBufferCount is valid. + */ +#define DDSD_BACKBUFFERCOUNT 0x00000020l + +/* + * dwZBufferBitDepth is valid. (shouldnt be used in DDSURFACEDESC2) + */ +#define DDSD_ZBUFFERBITDEPTH 0x00000040l + +/* + * dwAlphaBitDepth is valid. + */ +#define DDSD_ALPHABITDEPTH 0x00000080l + + +/* + * lpSurface is valid. + */ +#define DDSD_LPSURFACE 0x00000800l + +/* + * ddpfPixelFormat is valid. + */ +#define DDSD_PIXELFORMAT 0x00001000l + +/* + * ddckCKDestOverlay is valid. + */ +#define DDSD_CKDESTOVERLAY 0x00002000l + +/* + * ddckCKDestBlt is valid. + */ +#define DDSD_CKDESTBLT 0x00004000l + +/* + * ddckCKSrcOverlay is valid. + */ +#define DDSD_CKSRCOVERLAY 0x00008000l + +/* + * ddckCKSrcBlt is valid. + */ +#define DDSD_CKSRCBLT 0x00010000l + +/* + * dwMipMapCount is valid. + */ +#define DDSD_MIPMAPCOUNT 0x00020000l + + /* + * dwRefreshRate is valid + */ +#define DDSD_REFRESHRATE 0x00040000l + +/* + * dwLinearSize is valid + */ +#define DDSD_LINEARSIZE 0x00080000l + +/* + * dwTextureStage is valid + */ +#define DDSD_TEXTURESTAGE 0x00100000l +/* + * dwFVF is valid + */ +#define DDSD_FVF 0x00200000l +/* + * dwSrcVBHandle is valid + */ +#define DDSD_SRCVBHANDLE 0x00400000l + +/* + * dwDepth is valid + */ +#define DDSD_DEPTH 0x00800000l + +/* + * All input fields are valid. + */ +#define DDSD_ALL 0x00fff9eel + +/* + * DDOPTSURFACEDESC + */ +typedef struct _DDOPTSURFACEDESC +{ + DWORD dwSize; // size of the DDOPTSURFACEDESC structure + DWORD dwFlags; // determines what fields are valid + DDSCAPS2 ddSCaps; // Common caps like: Memory type + DDOSCAPS ddOSCaps; // Common caps like: Memory type + GUID guid; // Compression technique GUID + DWORD dwCompressionRatio; // Compression ratio +} DDOPTSURFACEDESC; + +/* + * guid field is valid. + */ +#define DDOSD_GUID 0x00000001l + +/* + * dwCompressionRatio field is valid. + */ +#define DDOSD_COMPRESSION_RATIO 0x00000002l + +/* + * ddSCaps field is valid. + */ +#define DDOSD_SCAPS 0x00000004l + +/* + * ddOSCaps field is valid. + */ +#define DDOSD_OSCAPS 0x00000008l + +/* + * All input fields are valid. + */ +#define DDOSD_ALL 0x0000000fl + +/* + * The surface's optimized pixelformat is compressed + */ +#define DDOSDCAPS_OPTCOMPRESSED 0x00000001l + +/* + * The surface's optimized pixelformat is reordered + */ +#define DDOSDCAPS_OPTREORDERED 0x00000002l + +/* + * The opt surface is a monolithic mipmap + */ +#define DDOSDCAPS_MONOLITHICMIPMAP 0x00000004l + +/* + * The valid Surf caps: + * #define DDSCAPS_SYSTEMMEMORY 0x00000800l + * #define DDSCAPS_VIDEOMEMORY 0x00004000l + * #define DDSCAPS_LOCALVIDMEM 0x10000000l + * #define DDSCAPS_NONLOCALVIDMEM 0x20000000l + */ +#define DDOSDCAPS_VALIDSCAPS 0x30004800l + +/* + * The valid OptSurf caps + */ +#define DDOSDCAPS_VALIDOSCAPS 0x00000007l + + +/* + * DDCOLORCONTROL + */ +typedef struct _DDCOLORCONTROL +{ + DWORD dwSize; + DWORD dwFlags; + LONG lBrightness; + LONG lContrast; + LONG lHue; + LONG lSaturation; + LONG lSharpness; + LONG lGamma; + LONG lColorEnable; + DWORD dwReserved1; +} DDCOLORCONTROL; + + +/* + * lBrightness field is valid. + */ +#define DDCOLOR_BRIGHTNESS 0x00000001l + +/* + * lContrast field is valid. + */ +#define DDCOLOR_CONTRAST 0x00000002l + +/* + * lHue field is valid. + */ +#define DDCOLOR_HUE 0x00000004l + +/* + * lSaturation field is valid. + */ +#define DDCOLOR_SATURATION 0x00000008l + +/* + * lSharpness field is valid. + */ +#define DDCOLOR_SHARPNESS 0x00000010l + +/* + * lGamma field is valid. + */ +#define DDCOLOR_GAMMA 0x00000020l + +/* + * lColorEnable field is valid. + */ +#define DDCOLOR_COLORENABLE 0x00000040l + + + +/*============================================================================ + * + * Direct Draw Capability Flags + * + * These flags are used to describe the capabilities of a given Surface. + * All flags are bit flags. + * + *==========================================================================*/ + +/**************************************************************************** + * + * DIRECTDRAWSURFACE CAPABILITY FLAGS + * + ****************************************************************************/ + +/* + * This bit is reserved. It should not be specified. + */ +#define DDSCAPS_RESERVED1 0x00000001l + +/* + * Indicates that this surface contains alpha-only information. + * (To determine if a surface is RGBA/YUVA, the pixel format must be + * interrogated.) + */ +#define DDSCAPS_ALPHA 0x00000002l + +/* + * Indicates that this surface is a backbuffer. It is generally + * set by CreateSurface when the DDSCAPS_FLIP capability bit is set. + * It indicates that this surface is THE back buffer of a surface + * flipping structure. DirectDraw supports N surfaces in a + * surface flipping structure. Only the surface that immediately + * precedeces the DDSCAPS_FRONTBUFFER has this capability bit set. + * The other surfaces are identified as back buffers by the presence + * of the DDSCAPS_FLIP capability, their attachment order, and the + * absence of the DDSCAPS_FRONTBUFFER and DDSCAPS_BACKBUFFER + * capabilities. The bit is sent to CreateSurface when a standalone + * back buffer is being created. This surface could be attached to + * a front buffer and/or back buffers to form a flipping surface + * structure after the CreateSurface call. See AddAttachments for + * a detailed description of the behaviors in this case. + */ +#define DDSCAPS_BACKBUFFER 0x00000004l + +/* + * Indicates a complex surface structure is being described. A + * complex surface structure results in the creation of more than + * one surface. The additional surfaces are attached to the root + * surface. The complex structure can only be destroyed by + * destroying the root. + */ +#define DDSCAPS_COMPLEX 0x00000008l + +/* + * Indicates that this surface is a part of a surface flipping structure. + * When it is passed to CreateSurface the DDSCAPS_FRONTBUFFER and + * DDSCAP_BACKBUFFER bits are not set. They are set by CreateSurface + * on the resulting creations. The dwBackBufferCount field in the + * DDSURFACEDESC structure must be set to at least 1 in order for + * the CreateSurface call to succeed. The DDSCAPS_COMPLEX capability + * must always be set with creating multiple surfaces through CreateSurface. + */ +#define DDSCAPS_FLIP 0x00000010l + +/* + * Indicates that this surface is THE front buffer of a surface flipping + * structure. It is generally set by CreateSurface when the DDSCAPS_FLIP + * capability bit is set. + * If this capability is sent to CreateSurface then a standalonw front buffer + * is created. This surface will not have the DDSCAPS_FLIP capability. + * It can be attached to other back buffers to form a flipping structure. + * See AddAttachments for a detailed description of the behaviors in this + * case. + */ +#define DDSCAPS_FRONTBUFFER 0x00000020l + +/* + * Indicates that this surface is any offscreen surface that is not an overlay, + * texture, zbuffer, front buffer, back buffer, or alpha surface. It is used + * to identify plain vanilla surfaces. + */ +#define DDSCAPS_OFFSCREENPLAIN 0x00000040l + +/* + * Indicates that this surface is an overlay. It may or may not be directly visible + * depending on whether or not it is currently being overlayed onto the primary + * surface. DDSCAPS_VISIBLE can be used to determine whether or not it is being + * overlayed at the moment. + */ +#define DDSCAPS_OVERLAY 0x00000080l + +/* + * Indicates that unique DirectDrawPalette objects can be created and + * attached to this surface. + */ +#define DDSCAPS_PALETTE 0x00000100l + +/* + * Indicates that this surface is the primary surface. The primary + * surface represents what the user is seeing at the moment. + */ +#define DDSCAPS_PRIMARYSURFACE 0x00000200l + + +/* + * This flag used to be DDSCAPS_PRIMARYSURFACELEFT, which is now + * obsolete. + */ +#define DDSCAPS_RESERVED3 0x00000400l +#define DDSCAPS_PRIMARYSURFACELEFT 0x00000000l + +/* + * Indicates that this surface memory was allocated in system memory + */ +#define DDSCAPS_SYSTEMMEMORY 0x00000800l + +/* + * Indicates that this surface can be used as a 3D texture. It does not + * indicate whether or not the surface is being used for that purpose. + */ +#define DDSCAPS_TEXTURE 0x00001000l + +/* + * Indicates that a surface may be a destination for 3D rendering. This + * bit must be set in order to query for a Direct3D Device Interface + * from this surface. + */ +#define DDSCAPS_3DDEVICE 0x00002000l + +/* + * Indicates that this surface exists in video memory. + */ +#define DDSCAPS_VIDEOMEMORY 0x00004000l + +/* + * Indicates that changes made to this surface are immediately visible. + * It is always set for the primary surface and is set for overlays while + * they are being overlayed and texture maps while they are being textured. + */ +#define DDSCAPS_VISIBLE 0x00008000l + +/* + * Indicates that only writes are permitted to the surface. Read accesses + * from the surface may or may not generate a protection fault, but the + * results of a read from this surface will not be meaningful. READ ONLY. + */ +#define DDSCAPS_WRITEONLY 0x00010000l + +/* + * Indicates that this surface is a z buffer. A z buffer does not contain + * displayable information. Instead it contains bit depth information that is + * used to determine which pixels are visible and which are obscured. + */ +#define DDSCAPS_ZBUFFER 0x00020000l + +/* + * Indicates surface will have a DC associated long term + */ +#define DDSCAPS_OWNDC 0x00040000l + +/* + * Indicates surface should be able to receive live video + */ +#define DDSCAPS_LIVEVIDEO 0x00080000l + +/* + * Indicates surface should be able to have a stream decompressed + * to it by the hardware. + */ +#define DDSCAPS_HWCODEC 0x00100000l + +/* + * Surface is a ModeX surface. + * + */ +#define DDSCAPS_MODEX 0x00200000l + +/* + * Indicates surface is one level of a mip-map. This surface will + * be attached to other DDSCAPS_MIPMAP surfaces to form the mip-map. + * This can be done explicitly, by creating a number of surfaces and + * attaching them with AddAttachedSurface or by implicitly by CreateSurface. + * If this bit is set then DDSCAPS_TEXTURE must also be set. + */ +#define DDSCAPS_MIPMAP 0x00400000l + +/* + * This bit is reserved. It should not be specified. + */ +#define DDSCAPS_RESERVED2 0x00800000l + + +/* + * Indicates that memory for the surface is not allocated until the surface + * is loaded (via the Direct3D texture Load() function). + */ +#define DDSCAPS_ALLOCONLOAD 0x04000000l + +/* + * Indicates that the surface will recieve data from a video port. + */ +#define DDSCAPS_VIDEOPORT 0x08000000l + +/* + * Indicates that a video memory surface is resident in true, local video + * memory rather than non-local video memory. If this flag is specified then + * so must DDSCAPS_VIDEOMEMORY. This flag is mutually exclusive with + * DDSCAPS_NONLOCALVIDMEM. + */ +#define DDSCAPS_LOCALVIDMEM 0x10000000l + +/* + * Indicates that a video memory surface is resident in non-local video + * memory rather than true, local video memory. If this flag is specified + * then so must DDSCAPS_VIDEOMEMORY. This flag is mutually exclusive with + * DDSCAPS_LOCALVIDMEM. + */ +#define DDSCAPS_NONLOCALVIDMEM 0x20000000l + +/* + * Indicates that this surface is a standard VGA mode surface, and not a + * ModeX surface. (This flag will never be set in combination with the + * DDSCAPS_MODEX flag). + */ +#define DDSCAPS_STANDARDVGAMODE 0x40000000l + +/* + * Indicates that this surface will be an optimized surface. This flag is + * currently only valid in conjunction with the DDSCAPS_TEXTURE flag. The surface + * will be created without any underlying video memory until loaded. + */ +#define DDSCAPS_OPTIMIZED 0x80000000l + + + +/* + * This bit is reserved + */ +#define DDSCAPS2_RESERVED4 0x00000002L +#define DDSCAPS2_HARDWAREDEINTERLACE 0x00000000L + +/* + * Indicates to the driver that this surface will be locked very frequently + * (for procedural textures, dynamic lightmaps, etc). Surfaces with this cap + * set must also have DDSCAPS_TEXTURE. This cap cannot be used with + * DDSCAPS2_HINTSTATIC and DDSCAPS2_OPAQUE. + */ +#define DDSCAPS2_HINTDYNAMIC 0x00000004L + +/* + * Indicates to the driver that this surface can be re-ordered/retiled on + * load. This operation will not change the size of the texture. It is + * relatively fast and symmetrical, since the application may lock these + * bits (although it will take a performance hit when doing so). Surfaces + * with this cap set must also have DDSCAPS_TEXTURE. This cap cannot be + * used with DDSCAPS2_HINTDYNAMIC and DDSCAPS2_OPAQUE. + */ +#define DDSCAPS2_HINTSTATIC 0x00000008L + +/* + * Indicates that the client would like this texture surface to be managed by the + * DirectDraw/Direct3D runtime. Surfaces with this cap set must also have + * DDSCAPS_TEXTURE set. + */ +#define DDSCAPS2_TEXTUREMANAGE 0x00000010L + +/* + * These bits are reserved for internal use */ +#define DDSCAPS2_RESERVED1 0x00000020L +#define DDSCAPS2_RESERVED2 0x00000040L + +/* + * Indicates to the driver that this surface will never be locked again. + * The driver is free to optimize this surface via retiling and actual compression. + * All calls to Lock() or Blts from this surface will fail. Surfaces with this + * cap set must also have DDSCAPS_TEXTURE. This cap cannot be used with + * DDSCAPS2_HINTDYNAMIC and DDSCAPS2_HINTSTATIC. + */ +#define DDSCAPS2_OPAQUE 0x00000080L + +/* + * Applications should set this bit at CreateSurface time to indicate that they + * intend to use antialiasing. Only valid if DDSCAPS_3DDEVICE is also set. + */ +#define DDSCAPS2_HINTANTIALIASING 0x00000100L + + +/* + * This flag is used at CreateSurface time to indicate that this set of + * surfaces is a cubic environment map + */ +#define DDSCAPS2_CUBEMAP 0x00000200L + +/* + * These flags preform two functions: + * - At CreateSurface time, they define which of the six cube faces are + * required by the application. + * - After creation, each face in the cubemap will have exactly one of these + * bits set. + */ +#define DDSCAPS2_CUBEMAP_POSITIVEX 0x00000400L +#define DDSCAPS2_CUBEMAP_NEGATIVEX 0x00000800L +#define DDSCAPS2_CUBEMAP_POSITIVEY 0x00001000L +#define DDSCAPS2_CUBEMAP_NEGATIVEY 0x00002000L +#define DDSCAPS2_CUBEMAP_POSITIVEZ 0x00004000L +#define DDSCAPS2_CUBEMAP_NEGATIVEZ 0x00008000L + +/* + * This macro may be used to specify all faces of a cube map at CreateSurface time + */ +#define DDSCAPS2_CUBEMAP_ALLFACES ( DDSCAPS2_CUBEMAP_POSITIVEX |\ + DDSCAPS2_CUBEMAP_NEGATIVEX |\ + DDSCAPS2_CUBEMAP_POSITIVEY |\ + DDSCAPS2_CUBEMAP_NEGATIVEY |\ + DDSCAPS2_CUBEMAP_POSITIVEZ |\ + DDSCAPS2_CUBEMAP_NEGATIVEZ ) + + +/* + * This flag is an additional flag which is present on mipmap sublevels from DX7 onwards + * It enables easier use of GetAttachedSurface rather than EnumAttachedSurfaces for surface + * constructs such as Cube Maps, wherein there are more than one mipmap surface attached + * to the root surface. + * This caps bit is ignored by CreateSurface + */ +#define DDSCAPS2_MIPMAPSUBLEVEL 0x00010000L + +/* This flag indicates that the texture should be managed by D3D only */ +#define DDSCAPS2_D3DTEXTUREMANAGE 0x00020000L + +/* This flag indicates that the managed surface can be safely lost */ +#define DDSCAPS2_DONOTPERSIST 0x00040000L + +/* indicates that this surface is part of a stereo flipping chain */ +#define DDSCAPS2_STEREOSURFACELEFT 0x00080000L + + +/* + * Indicates that the surface is a volume. + * Can be combined with DDSCAPS_MIPMAP to indicate a multi-level volume + */ +#define DDSCAPS2_VOLUME 0x00200000L + +/* + * Indicates that the surface may be locked multiple times by the application. + * This cap cannot be used with DDSCAPS2_OPAQUE. + */ +#define DDSCAPS2_NOTUSERLOCKABLE 0x00400000L + +/* + * Indicates that the vertex buffer data can be used to render points and + * point sprites. + */ +#define DDSCAPS2_POINTS 0x00800000L + +/* + * Indicates that the vertex buffer data can be used to render rt pactches. + */ +#define DDSCAPS2_RTPATCHES 0x01000000L + +/* + * Indicates that the vertex buffer data can be used to render n patches. + */ +#define DDSCAPS2_NPATCHES 0x02000000L + +/* + * This bit is reserved for internal use + */ +#define DDSCAPS2_RESERVED3 0x04000000L + + +/* + * Indicates that the contents of the backbuffer do not have to be preserved + * the contents of the backbuffer after they are presented. + */ +#define DDSCAPS2_DISCARDBACKBUFFER 0x10000000L + +/* + * Indicates that all surfaces in this creation chain should be given an alpha channel. + * This flag will be set on primary surface chains that may have no explicit pixel format + * (and thus take on the format of the current display mode). + * The driver should infer that all these surfaces have a format having an alpha channel. + * (e.g. assume D3DFMT_A8R8G8B8 if the display mode is x888.) + */ +#define DDSCAPS2_ENABLEALPHACHANNEL 0x20000000L + +/* + * Indicates that all surfaces in this creation chain is extended primary surface format. + * This flag will be set on extended primary surface chains that always have explicit pixel + * format and the pixel format is typically GDI (Graphics Device Interface) couldn't handle, + * thus only used with fullscreen application. (e.g. D3DFMT_A2R10G10B10 format) + */ +#define DDSCAPS2_EXTENDEDFORMATPRIMARY 0x40000000L + +/* + * Indicates that all surfaces in this creation chain is additional primary surface. + * This flag will be set on primary surface chains which must present on the adapter + * id provided on dwCaps4. Typically this will be used to create secondary primary surface + * on DualView display adapter. + */ +#define DDSCAPS2_ADDITIONALPRIMARY 0x80000000L + +/* + * This is a mask that indicates the set of bits that may be set + * at createsurface time to indicate number of samples per pixel + * when multisampling + */ +#define DDSCAPS3_MULTISAMPLE_MASK 0x0000001FL + +/* + * This is a mask that indicates the set of bits that may be set + * at createsurface time to indicate the quality level of rendering + * for the current number of samples per pixel + */ +#define DDSCAPS3_MULTISAMPLE_QUALITY_MASK 0x000000E0L +#define DDSCAPS3_MULTISAMPLE_QUALITY_SHIFT 5 + +/* + * This bit is reserved for internal use + */ +#define DDSCAPS3_RESERVED1 0x00000100L + +/* + * This bit is reserved for internal use + */ +#define DDSCAPS3_RESERVED2 0x00000200L + +/* + * This indicates whether this surface has light-weight miplevels + */ +#define DDSCAPS3_LIGHTWEIGHTMIPMAP 0x00000400L + +/* + * This indicates that the mipsublevels for this surface are auto-generated + */ +#define DDSCAPS3_AUTOGENMIPMAP 0x00000800L + +/* + * This indicates that the mipsublevels for this surface are auto-generated + */ +#define DDSCAPS3_DMAP 0x00001000L + +/* D3D9Ex only -- */ +#if !defined(D3D_DISABLE_9EX) + +/* + * This indicates that this surface is to be shared by processes + */ +#define DDSCAPS3_CREATESHAREDRESOURCE 0x00002000L + +/* + * This indicates that this surface need to be initialized before being + * shared, this bit implies that this surface is read only after initialization + * absence of this bit implies that this surface allows both read and write + */ +#define DDSCAPS3_READONLYRESOURCE 0x00004000L + +/* + * This indicates that this surface is to share an existing video memory with + * another surface created with DDSCAPS3_CREATESHAREDRESOURCE, This bit is never + * used with DDSCAPS3_CREATESHAREDRESOURCE + */ +#define DDSCAPS3_OPENSHAREDRESOURCE 0x00008000L + +#endif // !D3D_DISABLE_9EX +/* -- D3D9Ex only */ + + + /**************************************************************************** + * + * DIRECTDRAW DRIVER CAPABILITY FLAGS + * + ****************************************************************************/ + +/* + * Display hardware has 3D acceleration. + */ +#define DDCAPS_3D 0x00000001l + +/* + * Indicates that DirectDraw will support only dest rectangles that are aligned + * on DIRECTDRAWCAPS.dwAlignBoundaryDest boundaries of the surface, respectively. + * READ ONLY. + */ +#define DDCAPS_ALIGNBOUNDARYDEST 0x00000002l + +/* + * Indicates that DirectDraw will support only source rectangles whose sizes in + * BYTEs are DIRECTDRAWCAPS.dwAlignSizeDest multiples, respectively. READ ONLY. + */ +#define DDCAPS_ALIGNSIZEDEST 0x00000004l +/* + * Indicates that DirectDraw will support only source rectangles that are aligned + * on DIRECTDRAWCAPS.dwAlignBoundarySrc boundaries of the surface, respectively. + * READ ONLY. + */ +#define DDCAPS_ALIGNBOUNDARYSRC 0x00000008l + +/* + * Indicates that DirectDraw will support only source rectangles whose sizes in + * BYTEs are DIRECTDRAWCAPS.dwAlignSizeSrc multiples, respectively. READ ONLY. + */ +#define DDCAPS_ALIGNSIZESRC 0x00000010l + +/* + * Indicates that DirectDraw will create video memory surfaces that have a stride + * alignment equal to DIRECTDRAWCAPS.dwAlignStride. READ ONLY. + */ +#define DDCAPS_ALIGNSTRIDE 0x00000020l + +/* + * Display hardware is capable of blt operations. + */ +#define DDCAPS_BLT 0x00000040l + +/* + * Display hardware is capable of asynchronous blt operations. + */ +#define DDCAPS_BLTQUEUE 0x00000080l + +/* + * Display hardware is capable of color space conversions during the blt operation. + */ +#define DDCAPS_BLTFOURCC 0x00000100l + +/* + * Display hardware is capable of stretching during blt operations. + */ +#define DDCAPS_BLTSTRETCH 0x00000200l + +/* + * Display hardware is shared with GDI. + */ +#define DDCAPS_GDI 0x00000400l + +/* + * Display hardware can overlay. + */ +#define DDCAPS_OVERLAY 0x00000800l + +/* + * Set if display hardware supports overlays but can not clip them. + */ +#define DDCAPS_OVERLAYCANTCLIP 0x00001000l + +/* + * Indicates that overlay hardware is capable of color space conversions during + * the overlay operation. + */ +#define DDCAPS_OVERLAYFOURCC 0x00002000l + +/* + * Indicates that stretching can be done by the overlay hardware. + */ +#define DDCAPS_OVERLAYSTRETCH 0x00004000l + +/* + * Indicates that unique DirectDrawPalettes can be created for DirectDrawSurfaces + * other than the primary surface. + */ +#define DDCAPS_PALETTE 0x00008000l + +/* + * Indicates that palette changes can be syncd with the veritcal refresh. + */ +#define DDCAPS_PALETTEVSYNC 0x00010000l + +/* + * Display hardware can return the current scan line. + */ +#define DDCAPS_READSCANLINE 0x00020000l + + +/* + * This flag used to bo DDCAPS_STEREOVIEW, which is now obsolete + */ +#define DDCAPS_RESERVED1 0x00040000l + +/* + * Display hardware is capable of generating a vertical blank interrupt. + */ +#define DDCAPS_VBI 0x00080000l + +/* + * Supports the use of z buffers with blt operations. + */ +#define DDCAPS_ZBLTS 0x00100000l + +/* + * Supports Z Ordering of overlays. + */ +#define DDCAPS_ZOVERLAYS 0x00200000l + +/* + * Supports color key + */ +#define DDCAPS_COLORKEY 0x00400000l + +/* + * Supports alpha surfaces + */ +#define DDCAPS_ALPHA 0x00800000l + +/* + * colorkey is hardware assisted(DDCAPS_COLORKEY will also be set) + */ +#define DDCAPS_COLORKEYHWASSIST 0x01000000l + +/* + * no hardware support at all + */ +#define DDCAPS_NOHARDWARE 0x02000000l + +/* + * Display hardware is capable of color fill with bltter + */ +#define DDCAPS_BLTCOLORFILL 0x04000000l + +/* + * Display hardware is bank switched, and potentially very slow at + * random access to VRAM. + */ +#define DDCAPS_BANKSWITCHED 0x08000000l + +/* + * Display hardware is capable of depth filling Z-buffers with bltter + */ +#define DDCAPS_BLTDEPTHFILL 0x10000000l + +/* + * Display hardware is capable of clipping while bltting. + */ +#define DDCAPS_CANCLIP 0x20000000l + +/* + * Display hardware is capable of clipping while stretch bltting. + */ +#define DDCAPS_CANCLIPSTRETCHED 0x40000000l + +/* + * Display hardware is capable of bltting to or from system memory + */ +#define DDCAPS_CANBLTSYSMEM 0x80000000l + + + /**************************************************************************** + * + * MORE DIRECTDRAW DRIVER CAPABILITY FLAGS (dwCaps2) + * + ****************************************************************************/ + +/* + * Display hardware is certified + */ +#define DDCAPS2_CERTIFIED 0x00000001l + +/* + * Driver cannot interleave 2D operations (lock and blt) to surfaces with + * Direct3D rendering operations between calls to BeginScene() and EndScene() + */ +#define DDCAPS2_NO2DDURING3DSCENE 0x00000002l + +/* + * Display hardware contains a video port + */ +#define DDCAPS2_VIDEOPORT 0x00000004l + +/* + * The overlay can be automatically flipped according to the video port + * VSYNCs, providing automatic doubled buffered display of video port + * data using an overlay + */ +#define DDCAPS2_AUTOFLIPOVERLAY 0x00000008l + +/* + * Overlay can display each field of interlaced data individually while + * it is interleaved in memory without causing jittery artifacts. + */ +#define DDCAPS2_CANBOBINTERLEAVED 0x00000010l + +/* + * Overlay can display each field of interlaced data individually while + * it is not interleaved in memory without causing jittery artifacts. + */ +#define DDCAPS2_CANBOBNONINTERLEAVED 0x00000020l + +/* + * The overlay surface contains color controls (brightness, sharpness, etc.) + */ +#define DDCAPS2_COLORCONTROLOVERLAY 0x00000040l + +/* + * The primary surface contains color controls (gamma, etc.) + */ +#define DDCAPS2_COLORCONTROLPRIMARY 0x00000080l + +/* + * RGBZ -> RGB supported for 16:16 RGB:Z + */ +#define DDCAPS2_CANDROPZ16BIT 0x00000100l + +/* + * Driver supports non-local video memory. + */ +#define DDCAPS2_NONLOCALVIDMEM 0x00000200l + +/* + * Dirver supports non-local video memory but has different capabilities for + * non-local video memory surfaces. If this bit is set then so must + * DDCAPS2_NONLOCALVIDMEM. + */ +#define DDCAPS2_NONLOCALVIDMEMCAPS 0x00000400l + +/* + * Driver neither requires nor prefers surfaces to be pagelocked when performing + * blts involving system memory surfaces + */ +#define DDCAPS2_NOPAGELOCKREQUIRED 0x00000800l + +/* + * Driver can create surfaces which are wider than the primary surface + */ +#define DDCAPS2_WIDESURFACES 0x00001000l + +/* + * Driver supports bob without using a video port by handling the + * DDFLIP_ODD and DDFLIP_EVEN flags specified in Flip. + */ +#define DDCAPS2_CANFLIPODDEVEN 0x00002000l + +/* + * Driver supports bob using hardware + */ +#define DDCAPS2_CANBOBHARDWARE 0x00004000l + +/* + * Driver supports bltting any FOURCC surface to another surface of the same FOURCC + */ +#define DDCAPS2_COPYFOURCC 0x00008000l + + +/* + * Driver supports loadable gamma ramps for the primary surface + */ +#define DDCAPS2_PRIMARYGAMMA 0x00020000l + +/* + * Driver can render in windowed mode. + */ +#define DDCAPS2_CANRENDERWINDOWED 0x00080000l + +/* + * A calibrator is available to adjust the gamma ramp according to the + * physical display properties so that the result will be identical on + * all calibrated systems. + */ +#define DDCAPS2_CANCALIBRATEGAMMA 0x00100000l + +/* + * Indicates that the driver will respond to DDFLIP_INTERVALn flags + */ +#define DDCAPS2_FLIPINTERVAL 0x00200000l + +/* + * Indicates that the driver will respond to DDFLIP_NOVSYNC + */ +#define DDCAPS2_FLIPNOVSYNC 0x00400000l + +/* + * Driver supports management of video memory, if this flag is ON, + * driver manages the texture if requested with DDSCAPS2_TEXTUREMANAGE on + * DirectX manages the texture if this flag is OFF and surface has DDSCAPS2_TEXTUREMANAGE on + */ +#define DDCAPS2_CANMANAGETEXTURE 0x00800000l + +/* + * The Direct3D texture manager uses this cap to decide whether to put managed + * surfaces in non-local video memory. If the cap is set, the texture manager will + * put managed surfaces in non-local vidmem. Drivers that cannot texture from + * local vidmem SHOULD NOT set this cap. + */ +#define DDCAPS2_TEXMANINNONLOCALVIDMEM 0x01000000l + +/* + * Indicates that the driver supports DX7 type of stereo in at least one mode (which may + * not necessarily be the current mode). Applications should use IDirectDraw7 (or higher) + * ::EnumDisplayModes and check the DDSURFACEDESC.ddsCaps.dwCaps2 field for the presence of + * DDSCAPS2_STEREOSURFACELEFT to check if a particular mode supports stereo. The application + * can also use IDirectDraw7(or higher)::GetDisplayMode to check the current mode. + */ +#define DDCAPS2_STEREO 0x02000000L + +/* + * This caps bit is intended for internal DirectDraw use. + * -It is only valid if DDCAPS2_NONLOCALVIDMEMCAPS is set. + * -If this bit is set, then DDCAPS_CANBLTSYSMEM MUST be set by the driver (and + * all the assoicated system memory blt caps must be correct). + * -It implies that the system->video blt caps in DDCAPS also apply to system to + * nonlocal blts. I.e. the dwSVBCaps, dwSVBCKeyCaps, dwSVBFXCaps and dwSVBRops + * members of DDCAPS (DDCORECAPS) are filled in correctly. + * -Any blt from system to nonlocal memory that matches these caps bits will + * be passed to the driver. + * + * NOTE: This is intended to enable the driver itself to do efficient reordering + * of textures. This is NOT meant to imply that hardware can write into AGP memory. + * This operation is not currently supported. + */ +#define DDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL 0x04000000L + +/* + * was DDCAPS2_PUREHAL + */ +#define DDCAPS2_RESERVED1 0x08000000L + +/* + * Driver supports management of video memory, if this flag is ON, + * driver manages the resource if requested with DDSCAPS2_TEXTUREMANAGE on + * DirectX manages the resource if this flag is OFF and surface has DDSCAPS2_TEXTUREMANAGE on + */ +#define DDCAPS2_CANMANAGERESOURCE 0x10000000L + +/* + * Driver supports dynamic textures. This will allow the application to set + * D3DUSAGE_DYNAMIC (DDSCAPS2_HINTDYNAMIC for drivers) at texture create time. + * Video memory dynamic textures WILL be lockable by applications. It is + * expected that these locks will be very efficient (which implies that the + * driver should always maintain a linear copy, a pointer to which can be + * quickly handed out to the application). + */ +#define DDCAPS2_DYNAMICTEXTURES 0x20000000L + +/* + * Driver supports auto-generation of mipmaps. + */ +#define DDCAPS2_CANAUTOGENMIPMAP 0x40000000L + +/* D3D9Ex only -- */ +#if !defined(D3D_DISABLE_9EX) + +/* + * Driver supports sharing of cross process resouces + */ +#define DDCAPS2_CANSHARERESOURCE 0x80000000L + +#endif // !D3D_DISABLE_9EX +/* -- D3D9Ex only */ + + +/**************************************************************************** + * + * DIRECTDRAW FX ALPHA CAPABILITY FLAGS + * + ****************************************************************************/ + +/* + * Supports alpha blending around the edge of a source color keyed surface. + * For Blt. + */ +#define DDFXALPHACAPS_BLTALPHAEDGEBLEND 0x00000001l + +/* + * Supports alpha information in the pixel format. The bit depth of alpha + * information in the pixel format can be 1,2,4, or 8. The alpha value becomes + * more opaque as the alpha value increases. (0 is transparent.) + * For Blt. + */ +#define DDFXALPHACAPS_BLTALPHAPIXELS 0x00000002l + +/* + * Supports alpha information in the pixel format. The bit depth of alpha + * information in the pixel format can be 1,2,4, or 8. The alpha value + * becomes more transparent as the alpha value increases. (0 is opaque.) + * This flag can only be set if DDCAPS_ALPHA is set. + * For Blt. + */ +#define DDFXALPHACAPS_BLTALPHAPIXELSNEG 0x00000004l + +/* + * Supports alpha only surfaces. The bit depth of an alpha only surface can be + * 1,2,4, or 8. The alpha value becomes more opaque as the alpha value increases. + * (0 is transparent.) + * For Blt. + */ +#define DDFXALPHACAPS_BLTALPHASURFACES 0x00000008l + +/* + * The depth of the alpha channel data can range can be 1,2,4, or 8. + * The NEG suffix indicates that this alpha channel becomes more transparent + * as the alpha value increases. (0 is opaque.) This flag can only be set if + * DDCAPS_ALPHA is set. + * For Blt. + */ +#define DDFXALPHACAPS_BLTALPHASURFACESNEG 0x00000010l + +/* + * Supports alpha blending around the edge of a source color keyed surface. + * For Overlays. + */ +#define DDFXALPHACAPS_OVERLAYALPHAEDGEBLEND 0x00000020l + +/* + * Supports alpha information in the pixel format. The bit depth of alpha + * information in the pixel format can be 1,2,4, or 8. The alpha value becomes + * more opaque as the alpha value increases. (0 is transparent.) + * For Overlays. + */ +#define DDFXALPHACAPS_OVERLAYALPHAPIXELS 0x00000040l + +/* + * Supports alpha information in the pixel format. The bit depth of alpha + * information in the pixel format can be 1,2,4, or 8. The alpha value + * becomes more transparent as the alpha value increases. (0 is opaque.) + * This flag can only be set if DDCAPS_ALPHA is set. + * For Overlays. + */ +#define DDFXALPHACAPS_OVERLAYALPHAPIXELSNEG 0x00000080l + +/* + * Supports alpha only surfaces. The bit depth of an alpha only surface can be + * 1,2,4, or 8. The alpha value becomes more opaque as the alpha value increases. + * (0 is transparent.) + * For Overlays. + */ +#define DDFXALPHACAPS_OVERLAYALPHASURFACES 0x00000100l + +/* + * The depth of the alpha channel data can range can be 1,2,4, or 8. + * The NEG suffix indicates that this alpha channel becomes more transparent + * as the alpha value increases. (0 is opaque.) This flag can only be set if + * DDCAPS_ALPHA is set. + * For Overlays. + */ +#define DDFXALPHACAPS_OVERLAYALPHASURFACESNEG 0x00000200l + +#if DIRECTDRAW_VERSION < 0x0600 +#endif //DIRECTDRAW_VERSION + + +/**************************************************************************** + * + * DIRECTDRAW FX CAPABILITY FLAGS + * + ****************************************************************************/ + +/* + * Uses arithmetic operations to stretch and shrink surfaces during blt + * rather than pixel doubling techniques. Along the Y axis. + */ +#define DDFXCAPS_BLTARITHSTRETCHY 0x00000020l + +/* + * Uses arithmetic operations to stretch during blt + * rather than pixel doubling techniques. Along the Y axis. Only + * works for x1, x2, etc. + */ +#define DDFXCAPS_BLTARITHSTRETCHYN 0x00000010l + +/* + * Supports mirroring left to right in blt. + */ +#define DDFXCAPS_BLTMIRRORLEFTRIGHT 0x00000040l + +/* + * Supports mirroring top to bottom in blt. + */ +#define DDFXCAPS_BLTMIRRORUPDOWN 0x00000080l + +/* + * Supports arbitrary rotation for blts. + */ +#define DDFXCAPS_BLTROTATION 0x00000100l + +/* + * Supports 90 degree rotations for blts. + */ +#define DDFXCAPS_BLTROTATION90 0x00000200l + +/* + * DirectDraw supports arbitrary shrinking of a surface along the + * x axis (horizontal direction) for blts. + */ +#define DDFXCAPS_BLTSHRINKX 0x00000400l + +/* + * DirectDraw supports integer shrinking (1x,2x,) of a surface + * along the x axis (horizontal direction) for blts. + */ +#define DDFXCAPS_BLTSHRINKXN 0x00000800l + +/* + * DirectDraw supports arbitrary shrinking of a surface along the + * y axis (horizontal direction) for blts. + */ +#define DDFXCAPS_BLTSHRINKY 0x00001000l + +/* + * DirectDraw supports integer shrinking (1x,2x,) of a surface + * along the y axis (vertical direction) for blts. + */ +#define DDFXCAPS_BLTSHRINKYN 0x00002000l + +/* + * DirectDraw supports arbitrary stretching of a surface along the + * x axis (horizontal direction) for blts. + */ +#define DDFXCAPS_BLTSTRETCHX 0x00004000l + +/* + * DirectDraw supports integer stretching (1x,2x,) of a surface + * along the x axis (horizontal direction) for blts. + */ +#define DDFXCAPS_BLTSTRETCHXN 0x00008000l + +/* + * DirectDraw supports arbitrary stretching of a surface along the + * y axis (horizontal direction) for blts. + */ +#define DDFXCAPS_BLTSTRETCHY 0x00010000l + +/* + * DirectDraw supports integer stretching (1x,2x,) of a surface + * along the y axis (vertical direction) for blts. + */ +#define DDFXCAPS_BLTSTRETCHYN 0x00020000l + +/* + * Uses arithmetic operations to stretch and shrink surfaces during + * overlay rather than pixel doubling techniques. Along the Y axis + * for overlays. + */ +#define DDFXCAPS_OVERLAYARITHSTRETCHY 0x00040000l + +/* + * Uses arithmetic operations to stretch surfaces during + * overlay rather than pixel doubling techniques. Along the Y axis + * for overlays. Only works for x1, x2, etc. + */ +#define DDFXCAPS_OVERLAYARITHSTRETCHYN 0x00000008l + +/* + * DirectDraw supports arbitrary shrinking of a surface along the + * x axis (horizontal direction) for overlays. + */ +#define DDFXCAPS_OVERLAYSHRINKX 0x00080000l + +/* + * DirectDraw supports integer shrinking (1x,2x,) of a surface + * along the x axis (horizontal direction) for overlays. + */ +#define DDFXCAPS_OVERLAYSHRINKXN 0x00100000l + +/* + * DirectDraw supports arbitrary shrinking of a surface along the + * y axis (horizontal direction) for overlays. + */ +#define DDFXCAPS_OVERLAYSHRINKY 0x00200000l + +/* + * DirectDraw supports integer shrinking (1x,2x,) of a surface + * along the y axis (vertical direction) for overlays. + */ +#define DDFXCAPS_OVERLAYSHRINKYN 0x00400000l + +/* + * DirectDraw supports arbitrary stretching of a surface along the + * x axis (horizontal direction) for overlays. + */ +#define DDFXCAPS_OVERLAYSTRETCHX 0x00800000l + +/* + * DirectDraw supports integer stretching (1x,2x,) of a surface + * along the x axis (horizontal direction) for overlays. + */ +#define DDFXCAPS_OVERLAYSTRETCHXN 0x01000000l + +/* + * DirectDraw supports arbitrary stretching of a surface along the + * y axis (horizontal direction) for overlays. + */ +#define DDFXCAPS_OVERLAYSTRETCHY 0x02000000l + +/* + * DirectDraw supports integer stretching (1x,2x,) of a surface + * along the y axis (vertical direction) for overlays. + */ +#define DDFXCAPS_OVERLAYSTRETCHYN 0x04000000l + +/* + * DirectDraw supports mirroring of overlays across the vertical axis + */ +#define DDFXCAPS_OVERLAYMIRRORLEFTRIGHT 0x08000000l + +/* + * DirectDraw supports mirroring of overlays across the horizontal axis + */ +#define DDFXCAPS_OVERLAYMIRRORUPDOWN 0x10000000l + +/* + * DirectDraw supports deinterlacing of overlay surfaces + */ +#define DDFXCAPS_OVERLAYDEINTERLACE 0x20000000l + +/* + * Driver can do alpha blending for blits. + */ +#define DDFXCAPS_BLTALPHA 0x00000001l + + +/* + * Driver can do surface-reconstruction filtering for warped blits. + */ +#define DDFXCAPS_BLTFILTER DDFXCAPS_BLTARITHSTRETCHY + +/* + * Driver can do alpha blending for overlays. + */ +#define DDFXCAPS_OVERLAYALPHA 0x00000004l + + +/* + * Driver can do surface-reconstruction filtering for warped overlays. + */ +#define DDFXCAPS_OVERLAYFILTER DDFXCAPS_OVERLAYARITHSTRETCHY + +/**************************************************************************** + * + * DIRECTDRAW STEREO VIEW CAPABILITIES + * + ****************************************************************************/ + +/* + * This flag used to be DDSVCAPS_ENIGMA, which is now obsolete + */ + +#define DDSVCAPS_RESERVED1 0x00000001l + +/* + * This flag used to be DDSVCAPS_FLICKER, which is now obsolete + */ +#define DDSVCAPS_RESERVED2 0x00000002l + +/* + * This flag used to be DDSVCAPS_REDBLUE, which is now obsolete + */ +#define DDSVCAPS_RESERVED3 0x00000004l + +/* + * This flag used to be DDSVCAPS_SPLIT, which is now obsolete + */ +#define DDSVCAPS_RESERVED4 0x00000008l + +/* + * The stereo view is accomplished with switching technology + */ + +#define DDSVCAPS_STEREOSEQUENTIAL 0x00000010L + + + +/**************************************************************************** + * + * DIRECTDRAWPALETTE CAPABILITIES + * + ****************************************************************************/ + +/* + * Index is 4 bits. There are sixteen color entries in the palette table. + */ +#define DDPCAPS_4BIT 0x00000001l + +/* + * Index is onto a 8 bit color index. This field is only valid with the + * DDPCAPS_1BIT, DDPCAPS_2BIT or DDPCAPS_4BIT capability and the target + * surface is in 8bpp. Each color entry is one byte long and is an index + * into destination surface's 8bpp palette. + */ +#define DDPCAPS_8BITENTRIES 0x00000002l + +/* + * Index is 8 bits. There are 256 color entries in the palette table. + */ +#define DDPCAPS_8BIT 0x00000004l + +/* + * Indicates that this DIRECTDRAWPALETTE should use the palette color array + * passed into the lpDDColorArray parameter to initialize the DIRECTDRAWPALETTE + * object. + * This flag is obsolete. DirectDraw always initializes the color array from + * the lpDDColorArray parameter. The definition remains for source-level + * compatibility. + */ +#define DDPCAPS_INITIALIZE 0x00000000l + +/* + * This palette is the one attached to the primary surface. Changing this + * table has immediate effect on the display unless DDPSETPAL_VSYNC is specified + * and supported. + */ +#define DDPCAPS_PRIMARYSURFACE 0x00000010l + +/* + * This palette is the one attached to the primary surface left. Changing + * this table has immediate effect on the display for the left eye unless + * DDPSETPAL_VSYNC is specified and supported. + */ +#define DDPCAPS_PRIMARYSURFACELEFT 0x00000020l + +/* + * This palette can have all 256 entries defined + */ +#define DDPCAPS_ALLOW256 0x00000040l + +/* + * This palette can have modifications to it synced with the monitors + * refresh rate. + */ +#define DDPCAPS_VSYNC 0x00000080l + +/* + * Index is 1 bit. There are two color entries in the palette table. + */ +#define DDPCAPS_1BIT 0x00000100l + +/* + * Index is 2 bit. There are four color entries in the palette table. + */ +#define DDPCAPS_2BIT 0x00000200l + +/* + * The peFlags member of PALETTEENTRY denotes an 8 bit alpha value + */ +#define DDPCAPS_ALPHA 0x00000400l + + +/**************************************************************************** + * + * DIRECTDRAWPALETTE SETENTRY CONSTANTS + * + ****************************************************************************/ + + +/**************************************************************************** + * + * DIRECTDRAWPALETTE GETENTRY CONSTANTS + * + ****************************************************************************/ + +/* 0 is the only legal value */ + +/**************************************************************************** + * + * DIRECTDRAWSURFACE SETPRIVATEDATA CONSTANTS + * + ****************************************************************************/ + +/* + * The passed pointer is an IUnknown ptr. The cbData argument to SetPrivateData + * must be set to sizeof(IUnknown*). DirectDraw will call AddRef through this + * pointer and Release when the private data is destroyed. This includes when + * the surface or palette is destroyed before such priovate data is destroyed. + */ +#define DDSPD_IUNKNOWNPOINTER 0x00000001L + +/* + * Private data is only valid for the current state of the object, + * as determined by the uniqueness value. + */ +#define DDSPD_VOLATILE 0x00000002L + + +/**************************************************************************** + * + * DIRECTDRAWSURFACE SETPALETTE CONSTANTS + * + ****************************************************************************/ + + +/**************************************************************************** + * + * DIRECTDRAW BITDEPTH CONSTANTS + * + * NOTE: These are only used to indicate supported bit depths. These + * are flags only, they are not to be used as an actual bit depth. The + * absolute numbers 1, 2, 4, 8, 16, 24 and 32 are used to indicate actual + * bit depths in a surface or for changing the display mode. + * + ****************************************************************************/ + +/* + * 1 bit per pixel. + */ +#define DDBD_1 0x00004000l + +/* + * 2 bits per pixel. + */ +#define DDBD_2 0x00002000l + +/* + * 4 bits per pixel. + */ +#define DDBD_4 0x00001000l + +/* + * 8 bits per pixel. + */ +#define DDBD_8 0x00000800l + +/* + * 16 bits per pixel. + */ +#define DDBD_16 0x00000400l + +/* + * 24 bits per pixel. + */ +#define DDBD_24 0X00000200l + +/* + * 32 bits per pixel. + */ +#define DDBD_32 0x00000100l + +/**************************************************************************** + * + * DIRECTDRAWSURFACE SET/GET COLOR KEY FLAGS + * + ****************************************************************************/ + +/* + * Set if the structure contains a color space. Not set if the structure + * contains a single color key. + */ +#define DDCKEY_COLORSPACE 0x00000001l + +/* + * Set if the structure specifies a color key or color space which is to be + * used as a destination color key for blt operations. + */ +#define DDCKEY_DESTBLT 0x00000002l + +/* + * Set if the structure specifies a color key or color space which is to be + * used as a destination color key for overlay operations. + */ +#define DDCKEY_DESTOVERLAY 0x00000004l + +/* + * Set if the structure specifies a color key or color space which is to be + * used as a source color key for blt operations. + */ +#define DDCKEY_SRCBLT 0x00000008l + +/* + * Set if the structure specifies a color key or color space which is to be + * used as a source color key for overlay operations. + */ +#define DDCKEY_SRCOVERLAY 0x00000010l + + +/**************************************************************************** + * + * DIRECTDRAW COLOR KEY CAPABILITY FLAGS + * + ****************************************************************************/ + +/* + * Supports transparent blting using a color key to identify the replaceable + * bits of the destination surface for RGB colors. + */ +#define DDCKEYCAPS_DESTBLT 0x00000001l + +/* + * Supports transparent blting using a color space to identify the replaceable + * bits of the destination surface for RGB colors. + */ +#define DDCKEYCAPS_DESTBLTCLRSPACE 0x00000002l + +/* + * Supports transparent blting using a color space to identify the replaceable + * bits of the destination surface for YUV colors. + */ +#define DDCKEYCAPS_DESTBLTCLRSPACEYUV 0x00000004l + +/* + * Supports transparent blting using a color key to identify the replaceable + * bits of the destination surface for YUV colors. + */ +#define DDCKEYCAPS_DESTBLTYUV 0x00000008l + +/* + * Supports overlaying using colorkeying of the replaceable bits of the surface + * being overlayed for RGB colors. + */ +#define DDCKEYCAPS_DESTOVERLAY 0x00000010l + +/* + * Supports a color space as the color key for the destination for RGB colors. + */ +#define DDCKEYCAPS_DESTOVERLAYCLRSPACE 0x00000020l + +/* + * Supports a color space as the color key for the destination for YUV colors. + */ +#define DDCKEYCAPS_DESTOVERLAYCLRSPACEYUV 0x00000040l + +/* + * Supports only one active destination color key value for visible overlay + * surfaces. + */ +#define DDCKEYCAPS_DESTOVERLAYONEACTIVE 0x00000080l + +/* + * Supports overlaying using colorkeying of the replaceable bits of the + * surface being overlayed for YUV colors. + */ +#define DDCKEYCAPS_DESTOVERLAYYUV 0x00000100l + +/* + * Supports transparent blting using the color key for the source with + * this surface for RGB colors. + */ +#define DDCKEYCAPS_SRCBLT 0x00000200l + +/* + * Supports transparent blting using a color space for the source with + * this surface for RGB colors. + */ +#define DDCKEYCAPS_SRCBLTCLRSPACE 0x00000400l + +/* + * Supports transparent blting using a color space for the source with + * this surface for YUV colors. + */ +#define DDCKEYCAPS_SRCBLTCLRSPACEYUV 0x00000800l + +/* + * Supports transparent blting using the color key for the source with + * this surface for YUV colors. + */ +#define DDCKEYCAPS_SRCBLTYUV 0x00001000l + +/* + * Supports overlays using the color key for the source with this + * overlay surface for RGB colors. + */ +#define DDCKEYCAPS_SRCOVERLAY 0x00002000l + +/* + * Supports overlays using a color space as the source color key for + * the overlay surface for RGB colors. + */ +#define DDCKEYCAPS_SRCOVERLAYCLRSPACE 0x00004000l + +/* + * Supports overlays using a color space as the source color key for + * the overlay surface for YUV colors. + */ +#define DDCKEYCAPS_SRCOVERLAYCLRSPACEYUV 0x00008000l + +/* + * Supports only one active source color key value for visible + * overlay surfaces. + */ +#define DDCKEYCAPS_SRCOVERLAYONEACTIVE 0x00010000l + +/* + * Supports overlays using the color key for the source with this + * overlay surface for YUV colors. + */ +#define DDCKEYCAPS_SRCOVERLAYYUV 0x00020000l + +/* + * there are no bandwidth trade-offs for using colorkey with an overlay + */ +#define DDCKEYCAPS_NOCOSTOVERLAY 0x00040000l + + +/**************************************************************************** + * + * DIRECTDRAW PIXELFORMAT FLAGS + * + ****************************************************************************/ + +/* + * The surface has alpha channel information in the pixel format. + */ +#define DDPF_ALPHAPIXELS 0x00000001l + +/* + * The pixel format contains alpha only information + */ +#define DDPF_ALPHA 0x00000002l + +/* + * The FourCC code is valid. + */ +#define DDPF_FOURCC 0x00000004l + +/* + * The surface is 4-bit color indexed. + */ +#define DDPF_PALETTEINDEXED4 0x00000008l + +/* + * The surface is indexed into a palette which stores indices + * into the destination surface's 8-bit palette. + */ +#define DDPF_PALETTEINDEXEDTO8 0x00000010l + +/* + * The surface is 8-bit color indexed. + */ +#define DDPF_PALETTEINDEXED8 0x00000020l + +/* + * The RGB data in the pixel format structure is valid. + */ +#define DDPF_RGB 0x00000040l + +/* + * The surface will accept pixel data in the format specified + * and compress it during the write. + */ +#define DDPF_COMPRESSED 0x00000080l + +/* + * The surface will accept RGB data and translate it during + * the write to YUV data. The format of the data to be written + * will be contained in the pixel format structure. The DDPF_RGB + * flag will be set. + */ +#define DDPF_RGBTOYUV 0x00000100l + +/* + * pixel format is YUV - YUV data in pixel format struct is valid + */ +#define DDPF_YUV 0x00000200l + +/* + * pixel format is a z buffer only surface + */ +#define DDPF_ZBUFFER 0x00000400l + +/* + * The surface is 1-bit color indexed. + */ +#define DDPF_PALETTEINDEXED1 0x00000800l + +/* + * The surface is 2-bit color indexed. + */ +#define DDPF_PALETTEINDEXED2 0x00001000l + +/* + * The surface contains Z information in the pixels + */ +#define DDPF_ZPIXELS 0x00002000l + +/* + * The surface contains stencil information along with Z + */ +#define DDPF_STENCILBUFFER 0x00004000l + +/* + * Premultiplied alpha format -- the color components have been + * premultiplied by the alpha component. + */ +#define DDPF_ALPHAPREMULT 0x00008000l + + +/* + * Luminance data in the pixel format is valid. + * Use this flag for luminance-only or luminance+alpha surfaces, + * the bit depth is then ddpf.dwLuminanceBitCount. + */ +#define DDPF_LUMINANCE 0x00020000l + +/* + * Luminance data in the pixel format is valid. + * Use this flag when hanging luminance off bumpmap surfaces, + * the bit mask for the luminance portion of the pixel is then + * ddpf.dwBumpLuminanceBitMask + */ +#define DDPF_BUMPLUMINANCE 0x00040000l + +/* + * Bump map dUdV data in the pixel format is valid. + */ +#define DDPF_BUMPDUDV 0x00080000l + + +/*=========================================================================== + * + * + * DIRECTDRAW CALLBACK FLAGS + * + * + *==========================================================================*/ + +/**************************************************************************** + * + * DIRECTDRAW ENUMSURFACES FLAGS + * + ****************************************************************************/ + +/* + * Enumerate all of the surfaces that meet the search criterion. + */ +#define DDENUMSURFACES_ALL 0x00000001l + +/* + * A search hit is a surface that matches the surface description. + */ +#define DDENUMSURFACES_MATCH 0x00000002l + +/* + * A search hit is a surface that does not match the surface description. + */ +#define DDENUMSURFACES_NOMATCH 0x00000004l + +/* + * Enumerate the first surface that can be created which meets the search criterion. + */ +#define DDENUMSURFACES_CANBECREATED 0x00000008l + +/* + * Enumerate the surfaces that already exist that meet the search criterion. + */ +#define DDENUMSURFACES_DOESEXIST 0x00000010l + + +/**************************************************************************** + * + * DIRECTDRAW SETDISPLAYMODE FLAGS + * + ****************************************************************************/ + +/* + * The desired mode is a standard VGA mode + */ +#define DDSDM_STANDARDVGAMODE 0x00000001l + + +/**************************************************************************** + * + * DIRECTDRAW ENUMDISPLAYMODES FLAGS + * + ****************************************************************************/ + +/* + * Enumerate Modes with different refresh rates. EnumDisplayModes guarantees + * that a particular mode will be enumerated only once. This flag specifies whether + * the refresh rate is taken into account when determining if a mode is unique. + */ +#define DDEDM_REFRESHRATES 0x00000001l + +/* + * Enumerate VGA modes. Specify this flag if you wish to enumerate supported VGA + * modes such as mode 0x13 in addition to the usual ModeX modes (which are always + * enumerated if the application has previously called SetCooperativeLevel with the + * DDSCL_ALLOWMODEX flag set). + */ +#define DDEDM_STANDARDVGAMODES 0x00000002L + + +/**************************************************************************** + * + * DIRECTDRAW SETCOOPERATIVELEVEL FLAGS + * + ****************************************************************************/ + +/* + * Exclusive mode owner will be responsible for the entire primary surface. + * GDI can be ignored. used with DD + */ +#define DDSCL_FULLSCREEN 0x00000001l + +/* + * allow CTRL_ALT_DEL to work while in fullscreen exclusive mode + */ +#define DDSCL_ALLOWREBOOT 0x00000002l + +/* + * prevents DDRAW from modifying the application window. + * prevents DDRAW from minimize/restore the application window on activation. + */ +#define DDSCL_NOWINDOWCHANGES 0x00000004l + +/* + * app wants to work as a regular Windows application + */ +#define DDSCL_NORMAL 0x00000008l + +/* + * app wants exclusive access + */ +#define DDSCL_EXCLUSIVE 0x00000010l + + +/* + * app can deal with non-windows display modes + */ +#define DDSCL_ALLOWMODEX 0x00000040l + +/* + * this window will receive the focus messages + */ +#define DDSCL_SETFOCUSWINDOW 0x00000080l + +/* + * this window is associated with the DDRAW object and will + * cover the screen in fullscreen mode + */ +#define DDSCL_SETDEVICEWINDOW 0x00000100l + +/* + * app wants DDRAW to create a window to be associated with the + * DDRAW object + */ +#define DDSCL_CREATEDEVICEWINDOW 0x00000200l + +/* + * App explicitly asks DDRAW/D3D to be multithread safe. This makes D3D + * take the global crtisec more frequently. + */ +#define DDSCL_MULTITHREADED 0x00000400l + +/* + * App specifies that it would like to keep the FPU set up for optimal Direct3D + * performance (single precision and exceptions disabled) so Direct3D + * does not need to explicitly set the FPU each time. This is assumed by + * default in DirectX 7. See also DDSCL_FPUPRESERVE + */ +#define DDSCL_FPUSETUP 0x00000800l + +/* + * App specifies that it needs either double precision FPU or FPU exceptions + * enabled. This makes Direct3D explicitly set the FPU state eah time it is + * called. Setting the flag will reduce Direct3D performance. The flag is + * assumed by default in DirectX 6 and earlier. See also DDSCL_FPUSETUP + */ +#define DDSCL_FPUPRESERVE 0x00001000l + + +/**************************************************************************** + * + * DIRECTDRAW BLT FLAGS + * + ****************************************************************************/ + +/* + * Use the alpha information in the pixel format or the alpha channel surface + * attached to the destination surface as the alpha channel for this blt. + */ +#define DDBLT_ALPHADEST 0x00000001l + +/* + * Use the dwConstAlphaDest field in the DDBLTFX structure as the alpha channel + * for the destination surface for this blt. + */ +#define DDBLT_ALPHADESTCONSTOVERRIDE 0x00000002l + +/* + * The NEG suffix indicates that the destination surface becomes more + * transparent as the alpha value increases. (0 is opaque) + */ +#define DDBLT_ALPHADESTNEG 0x00000004l + +/* + * Use the lpDDSAlphaDest field in the DDBLTFX structure as the alpha + * channel for the destination for this blt. + */ +#define DDBLT_ALPHADESTSURFACEOVERRIDE 0x00000008l + +/* + * Use the dwAlphaEdgeBlend field in the DDBLTFX structure as the alpha channel + * for the edges of the image that border the color key colors. + */ +#define DDBLT_ALPHAEDGEBLEND 0x00000010l + +/* + * Use the alpha information in the pixel format or the alpha channel surface + * attached to the source surface as the alpha channel for this blt. + */ +#define DDBLT_ALPHASRC 0x00000020l + +/* + * Use the dwConstAlphaSrc field in the DDBLTFX structure as the alpha channel + * for the source for this blt. + */ +#define DDBLT_ALPHASRCCONSTOVERRIDE 0x00000040l + +/* + * The NEG suffix indicates that the source surface becomes more transparent + * as the alpha value increases. (0 is opaque) + */ +#define DDBLT_ALPHASRCNEG 0x00000080l + +/* + * Use the lpDDSAlphaSrc field in the DDBLTFX structure as the alpha channel + * for the source for this blt. + */ +#define DDBLT_ALPHASRCSURFACEOVERRIDE 0x00000100l + +/* + * Do this blt asynchronously through the FIFO in the order received. If + * there is no room in the hardware FIFO fail the call. + */ +#define DDBLT_ASYNC 0x00000200l + +/* + * Uses the dwFillColor field in the DDBLTFX structure as the RGB color + * to fill the destination rectangle on the destination surface with. + */ +#define DDBLT_COLORFILL 0x00000400l + +/* + * Uses the dwDDFX field in the DDBLTFX structure to specify the effects + * to use for the blt. + */ +#define DDBLT_DDFX 0x00000800l + +/* + * Uses the dwDDROPS field in the DDBLTFX structure to specify the ROPS + * that are not part of the Win32 API. + */ +#define DDBLT_DDROPS 0x00001000l + +/* + * Use the color key associated with the destination surface. + */ +#define DDBLT_KEYDEST 0x00002000l + +/* + * Use the dckDestColorkey field in the DDBLTFX structure as the color key + * for the destination surface. + */ +#define DDBLT_KEYDESTOVERRIDE 0x00004000l + +/* + * Use the color key associated with the source surface. + */ +#define DDBLT_KEYSRC 0x00008000l + +/* + * Use the dckSrcColorkey field in the DDBLTFX structure as the color key + * for the source surface. + */ +#define DDBLT_KEYSRCOVERRIDE 0x00010000l + +/* + * Use the dwROP field in the DDBLTFX structure for the raster operation + * for this blt. These ROPs are the same as the ones defined in the Win32 API. + */ +#define DDBLT_ROP 0x00020000l + +/* + * Use the dwRotationAngle field in the DDBLTFX structure as the angle + * (specified in 1/100th of a degree) to rotate the surface. + */ +#define DDBLT_ROTATIONANGLE 0x00040000l + +/* + * Z-buffered blt using the z-buffers attached to the source and destination + * surfaces and the dwZBufferOpCode field in the DDBLTFX structure as the + * z-buffer opcode. + */ +#define DDBLT_ZBUFFER 0x00080000l + +/* + * Z-buffered blt using the dwConstDest Zfield and the dwZBufferOpCode field + * in the DDBLTFX structure as the z-buffer and z-buffer opcode respectively + * for the destination. + */ +#define DDBLT_ZBUFFERDESTCONSTOVERRIDE 0x00100000l + +/* + * Z-buffered blt using the lpDDSDestZBuffer field and the dwZBufferOpCode + * field in the DDBLTFX structure as the z-buffer and z-buffer opcode + * respectively for the destination. + */ +#define DDBLT_ZBUFFERDESTOVERRIDE 0x00200000l + +/* + * Z-buffered blt using the dwConstSrcZ field and the dwZBufferOpCode field + * in the DDBLTFX structure as the z-buffer and z-buffer opcode respectively + * for the source. + */ +#define DDBLT_ZBUFFERSRCCONSTOVERRIDE 0x00400000l + +/* + * Z-buffered blt using the lpDDSSrcZBuffer field and the dwZBufferOpCode + * field in the DDBLTFX structure as the z-buffer and z-buffer opcode + * respectively for the source. + */ +#define DDBLT_ZBUFFERSRCOVERRIDE 0x00800000l + +/* + * wait until the device is ready to handle the blt + * this will cause blt to not return DDERR_WASSTILLDRAWING + */ +#define DDBLT_WAIT 0x01000000l + +/* + * Uses the dwFillDepth field in the DDBLTFX structure as the depth value + * to fill the destination rectangle on the destination Z-buffer surface + * with. + */ +#define DDBLT_DEPTHFILL 0x02000000l + + +/* + * Return immediately (with DDERR_WASSTILLDRAWING) if the device is not + * ready to schedule the blt at the time Blt() is called. + */ +#define DDBLT_DONOTWAIT 0x08000000l + +/* + * These flags indicate a presentation blt (i.e. a blt + * that moves surface contents from an offscreen back buffer to the primary + * surface). The driver is not allowed to "queue" more than three such blts. + * The "end" of the presentation blt is indicated, since the + * blt may be clipped, in which case the runtime will call the driver with + * several blts. All blts (even if not clipped) are tagged with DDBLT_PRESENTATION + * and the last (even if not clipped) additionally with DDBLT_LAST_PRESENTATION. + * Thus the true rule is that the driver must not schedule a DDBLT_PRESENTATION + * blt if there are 3 or more DDBLT_PRESENTLAST blts in the hardware pipe. + * If there are such blts in the pipe, the driver should return DDERR_WASSTILLDRAWING + * until the oldest queued DDBLT_LAST_PRESENTATION blts has been retired (i.e. the + * pixels have been actually written to the primary surface). Once the oldest blt + * has been retired, the driver is free to schedule the current blt. + * The goal is to provide a mechanism whereby the device's hardware queue never + * gets more than 3 frames ahead of the frames being generated by the application. + * When excessive queueing occurs, applications become unusable because the application + * visibly lags user input, and such problems make windowed interactive applications impossible. + * Some drivers may not have sufficient knowledge of their hardware's FIFO to know + * when a certain blt has been retired. Such drivers should code cautiously, and + * simply not allow any frames to be queued at all. DDBLT_LAST_PRESENTATION should cause + * such drivers to return DDERR_WASSTILLDRAWING until the accelerator is completely + * finished- exactly as if the application had called Lock on the source surface + * before calling Blt. + * In other words, the driver is allowed and encouraged to + * generate as much latency as it can, but never more than 3 frames worth. + * Implementation detail: Drivers should count blts against the SOURCE surface, not + * against the primary surface. This enables multiple parallel windowed application + * to function more optimally. + * This flag is passed only to DX8 or higher drivers. + * + * APPLICATIONS DO NOT SET THESE FLAGS. THEY ARE SET BY THE DIRECTDRAW RUNTIME. + * + */ +#define DDBLT_PRESENTATION 0x10000000l +#define DDBLT_LAST_PRESENTATION 0x20000000l + +/* + * If DDBLT_EXTENDED_FLAGS is set, then the driver should re-interpret + * other flags according to the definitions that follow. + * For example, bit 0 (0x00000001L) means DDBLT_ALPHADEST, unless + * DDBLT_EXTENDED_FLAGS is also set, in which case bit 0 means + * DDBLT_EXTENDED_LINEAR_CONTENT. + * Only DirectX9 and higher drivers will be given extended blt flags. + * Only flags explicitly mentioned here should be re-interpreted. + * All other flags retain their original meanings. + * + * List of re-interpreted flags: + * + * Bit Hex value New meaning old meaning + * --------------------------------------------------------------- + * 2 0x00000004 DDBLT_EXTENDED_LINEAR_CONTENT DDBLT_ALPHADESTNEG + * 4 0x00000010 DDBLT_EXTENDED_PRESENTATION_STRETCHFACTOR DDBLT_ALPHAEDGEBLEND + * + * + * NOTE: APPLICATIONS SHOULD NOT SET THIS FLAG. THIS FLAG IS INTENDED + * FOR USE BY THE DIRECT3D RUNTIME. + */ +#define DDBLT_EXTENDED_FLAGS 0x40000000l + +/* + * EXTENDED FLAG. SEE DEFINITION OF DDBLT_EXTENDED_FLAGS. + * This flag indidcates that the source surface contains content in a + * linear color space. The driver may perform gamma correction to the + * desktop color space (i.e. sRGB, gamma 2.2) as part of this blt. + * If the device can perform such a conversion as part of the copy, + * the driver should also set D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION + * + * NOTE: APPLICATIONS SHOULD NOT SET THIS FLAG. THIS FLAG IS INTENDED + * FOR USE BY THE DIRECT3D RUNTIME. Use IDirect3DSwapChain9::Present + * and specify D3DPRESENT_LINEAR_CONTENT in order to use this functionality. + */ +#define DDBLT_EXTENDED_LINEAR_CONTENT 0x00000004l + + +/**************************************************************************** + * + * BLTFAST FLAGS + * + ****************************************************************************/ + +#define DDBLTFAST_NOCOLORKEY 0x00000000 +#define DDBLTFAST_SRCCOLORKEY 0x00000001 +#define DDBLTFAST_DESTCOLORKEY 0x00000002 +#define DDBLTFAST_WAIT 0x00000010 +#define DDBLTFAST_DONOTWAIT 0x00000020 + +/**************************************************************************** + * + * FLIP FLAGS + * + ****************************************************************************/ + +#define DDFLIP_WAIT 0x00000001L + +/* + * Indicates that the target surface contains the even field of video data. + * This flag is only valid with an overlay surface. + */ +#define DDFLIP_EVEN 0x00000002L + +/* + * Indicates that the target surface contains the odd field of video data. + * This flag is only valid with an overlay surface. + */ +#define DDFLIP_ODD 0x00000004L + +/* + * Causes DirectDraw to perform the physical flip immediately and return + * to the application. Typically, what was the front buffer but is now the back + * buffer will still be visible (depending on timing) until the next vertical + * retrace. Subsequent operations involving the two flipped surfaces will + * not check to see if the physical flip has finished (i.e. will not return + * DDERR_WASSTILLDRAWING for that reason (but may for other reasons)). + * This allows an application to perform Flips at a higher frequency than the + * monitor refresh rate, but may introduce visible artifacts. + * Only effective if DDCAPS2_FLIPNOVSYNC is set. If that bit is not set, + * DDFLIP_NOVSYNC has no effect. + */ +#define DDFLIP_NOVSYNC 0x00000008L + + +/* + * Flip Interval Flags. These flags indicate how many vertical retraces to wait between + * each flip. The default is one. DirectDraw will return DDERR_WASSTILLDRAWING for each + * surface involved in the flip until the specified number of vertical retraces has + * ocurred. Only effective if DDCAPS2_FLIPINTERVAL is set. If that bit is not set, + * DDFLIP_INTERVALn has no effect. + */ + +/* + * DirectDraw will flip on every other vertical sync + */ +#define DDFLIP_INTERVAL2 0x02000000L + + +/* + * DirectDraw will flip on every third vertical sync + */ +#define DDFLIP_INTERVAL3 0x03000000L + + +/* + * DirectDraw will flip on every fourth vertical sync + */ +#define DDFLIP_INTERVAL4 0x04000000L + +/* + * DirectDraw will flip and display a main stereo surface + */ +#define DDFLIP_STEREO 0x00000010L + +/* + * On IDirectDrawSurface7 and higher interfaces, the default is DDFLIP_WAIT. If you wish + * to override the default and use time when the accelerator is busy (as denoted by + * the DDERR_WASSTILLDRAWING return code) then use DDFLIP_DONOTWAIT. + */ +#define DDFLIP_DONOTWAIT 0x00000020L + + +/**************************************************************************** + * + * DIRECTDRAW SURFACE OVERLAY FLAGS + * + ****************************************************************************/ + +/* + * Use the alpha information in the pixel format or the alpha channel surface + * attached to the destination surface as the alpha channel for the + * destination overlay. + */ +#define DDOVER_ALPHADEST 0x00000001l + +/* + * Use the dwConstAlphaDest field in the DDOVERLAYFX structure as the + * destination alpha channel for this overlay. + */ +#define DDOVER_ALPHADESTCONSTOVERRIDE 0x00000002l + +/* + * The NEG suffix indicates that the destination surface becomes more + * transparent as the alpha value increases. + */ +#define DDOVER_ALPHADESTNEG 0x00000004l + +/* + * Use the lpDDSAlphaDest field in the DDOVERLAYFX structure as the alpha + * channel destination for this overlay. + */ +#define DDOVER_ALPHADESTSURFACEOVERRIDE 0x00000008l + +/* + * Use the dwAlphaEdgeBlend field in the DDOVERLAYFX structure as the alpha + * channel for the edges of the image that border the color key colors. + */ +#define DDOVER_ALPHAEDGEBLEND 0x00000010l + +/* + * Use the alpha information in the pixel format or the alpha channel surface + * attached to the source surface as the source alpha channel for this overlay. + */ +#define DDOVER_ALPHASRC 0x00000020l + +/* + * Use the dwConstAlphaSrc field in the DDOVERLAYFX structure as the source + * alpha channel for this overlay. + */ +#define DDOVER_ALPHASRCCONSTOVERRIDE 0x00000040l + +/* + * The NEG suffix indicates that the source surface becomes more transparent + * as the alpha value increases. + */ +#define DDOVER_ALPHASRCNEG 0x00000080l + +/* + * Use the lpDDSAlphaSrc field in the DDOVERLAYFX structure as the alpha channel + * source for this overlay. + */ +#define DDOVER_ALPHASRCSURFACEOVERRIDE 0x00000100l + +/* + * Turn this overlay off. + */ +#define DDOVER_HIDE 0x00000200l + +/* + * Use the color key associated with the destination surface. + */ +#define DDOVER_KEYDEST 0x00000400l + +/* + * Use the dckDestColorkey field in the DDOVERLAYFX structure as the color key + * for the destination surface + */ +#define DDOVER_KEYDESTOVERRIDE 0x00000800l + +/* + * Use the color key associated with the source surface. + */ +#define DDOVER_KEYSRC 0x00001000l + +/* + * Use the dckSrcColorkey field in the DDOVERLAYFX structure as the color key + * for the source surface. + */ +#define DDOVER_KEYSRCOVERRIDE 0x00002000l + +/* + * Turn this overlay on. + */ +#define DDOVER_SHOW 0x00004000l + +/* + * Add a dirty rect to an emulated overlayed surface. + */ +#define DDOVER_ADDDIRTYRECT 0x00008000l + +/* + * Redraw all dirty rects on an emulated overlayed surface. + */ +#define DDOVER_REFRESHDIRTYRECTS 0x00010000l + +/* + * Redraw the entire surface on an emulated overlayed surface. + */ +#define DDOVER_REFRESHALL 0x00020000l + + +/* + * Use the overlay FX flags to define special overlay FX + */ +#define DDOVER_DDFX 0x00080000l + +/* + * Autoflip the overlay when ever the video port autoflips + */ +#define DDOVER_AUTOFLIP 0x00100000l + +/* + * Display each field of video port data individually without + * causing any jittery artifacts + */ +#define DDOVER_BOB 0x00200000l + +/* + * Indicates that bob/weave decisions should not be overridden by other + * interfaces. + */ +#define DDOVER_OVERRIDEBOBWEAVE 0x00400000l + +/* + * Indicates that the surface memory is composed of interleaved fields. + */ +#define DDOVER_INTERLEAVED 0x00800000l + +/* + * Indicates that bob will be performed using hardware rather than + * software or emulated. + */ +#define DDOVER_BOBHARDWARE 0x01000000l + +/* + * Indicates that overlay FX structure contains valid ARGB scaling factors. + */ +#define DDOVER_ARGBSCALEFACTORS 0x02000000l + +/* + * Indicates that ARGB scaling factors can be degraded to fit driver capabilities. + */ +#define DDOVER_DEGRADEARGBSCALING 0x04000000l + + +#ifdef COMBOX_SANDBOX +#define DX_LONGHORN_PRESERVEDC +#endif + +#ifdef DX_LONGHORN_PRESERVEDC + +/**************************************************************************** + * + * DIRECTDRAWSURFACE SETSURFACEDESC FLAGS + * + ****************************************************************************/ + +/* + * The default. The GDI DC will be tore down. + */ +#define DDSETSURFACEDESC_RECREATEDC 0x00000000L // default + +/* + * The default. The GDI DC will be kept. + */ +#define DDSETSURFACEDESC_PRESERVEDC 0x00000001L + + +#endif // DX_LONGHORN_PRESERVEDC + +/**************************************************************************** + * + * DIRECTDRAWSURFACE LOCK FLAGS + * + ****************************************************************************/ + +/* + * The default. Set to indicate that Lock should return a valid memory pointer + * to the top of the specified rectangle. If no rectangle is specified then a + * pointer to the top of the surface is returned. + */ +#define DDLOCK_SURFACEMEMORYPTR 0x00000000L // default + +/* + * Set to indicate that Lock should wait until it can obtain a valid memory + * pointer before returning. If this bit is set, Lock will never return + * DDERR_WASSTILLDRAWING. + */ +#define DDLOCK_WAIT 0x00000001L + +/* + * Set if an event handle is being passed to Lock. Lock will trigger the event + * when it can return the surface memory pointer requested. + */ +#define DDLOCK_EVENT 0x00000002L + +/* + * Indicates that the surface being locked will only be read from. + */ +#define DDLOCK_READONLY 0x00000010L + +/* + * Indicates that the surface being locked will only be written to + */ +#define DDLOCK_WRITEONLY 0x00000020L + + +/* + * Indicates that a system wide lock should not be taken when this surface + * is locked. This has several advantages (cursor responsiveness, ability + * to call more Windows functions, easier debugging) when locking video + * memory surfaces. However, an application specifying this flag must + * comply with a number of conditions documented in the help file. + * Furthermore, this flag cannot be specified when locking the primary. + */ +#define DDLOCK_NOSYSLOCK 0x00000800L + +/* + * Used only with Direct3D Vertex Buffer Locks. Indicates that no vertices + * that were referred to in Draw*PrimtiveVB calls since the start of the + * frame (or the last lock without this flag) will be modified during the + * lock. This can be useful when one is only appending data to the vertex + * buffer + */ +#define DDLOCK_NOOVERWRITE 0x00001000L + +/* + * Indicates that no assumptions will be made about the contents of the + * surface or vertex buffer during this lock. + * This enables two things: + * - Direct3D or the driver may provide an alternative memory + * area as the vertex buffer. This is useful when one plans to clear the + * contents of the vertex buffer and fill in new data. + * - Drivers sometimes store surface data in a re-ordered format. + * When the application locks the surface, the driver is forced to un-re-order + * the surface data before allowing the application to see the surface contents. + * This flag is a hint to the driver that it can skip the un-re-ordering process + * since the application plans to overwrite every single pixel in the surface + * or locked rectangle (and so erase any un-re-ordered pixels anyway). + * Applications should always set this flag when they intend to overwrite the entire + * surface or locked rectangle. + */ +#define DDLOCK_DISCARDCONTENTS 0x00002000L + /* + * DDLOCK_OKTOSWAP is an older, less informative name for DDLOCK_DISCARDCONTENTS + */ +#define DDLOCK_OKTOSWAP 0x00002000L + +/* + * On IDirectDrawSurface7 and higher interfaces, the default is DDLOCK_WAIT. If you wish + * to override the default and use time when the accelerator is busy (as denoted by + * the DDERR_WASSTILLDRAWING return code) then use DDLOCK_DONOTWAIT. + */ +#define DDLOCK_DONOTWAIT 0x00004000L + +/* + * This indicates volume texture lock with front and back specified. + */ +#define DDLOCK_HASVOLUMETEXTUREBOXRECT 0x00008000L + +/* + * This indicates that the driver should not update dirty rect information for this lock. + */ +#define DDLOCK_NODIRTYUPDATE 0x00010000L + + +/**************************************************************************** + * + * DIRECTDRAWSURFACE PAGELOCK FLAGS + * + ****************************************************************************/ + +/* + * No flags defined at present + */ + + +/**************************************************************************** + * + * DIRECTDRAWSURFACE PAGEUNLOCK FLAGS + * + ****************************************************************************/ + +/* + * No flags defined at present + */ + + +/**************************************************************************** + * + * DIRECTDRAWSURFACE BLT FX FLAGS + * + ****************************************************************************/ + +/* + * If stretching, use arithmetic stretching along the Y axis for this blt. + */ +#define DDBLTFX_ARITHSTRETCHY 0x00000001l + +/* + * Do this blt mirroring the surface left to right. Spin the + * surface around its y-axis. + */ +#define DDBLTFX_MIRRORLEFTRIGHT 0x00000002l + +/* + * Do this blt mirroring the surface up and down. Spin the surface + * around its x-axis. + */ +#define DDBLTFX_MIRRORUPDOWN 0x00000004l + +/* + * Schedule this blt to avoid tearing. + */ +#define DDBLTFX_NOTEARING 0x00000008l + +/* + * Do this blt rotating the surface one hundred and eighty degrees. + */ +#define DDBLTFX_ROTATE180 0x00000010l + +/* + * Do this blt rotating the surface two hundred and seventy degrees. + */ +#define DDBLTFX_ROTATE270 0x00000020l + +/* + * Do this blt rotating the surface ninety degrees. + */ +#define DDBLTFX_ROTATE90 0x00000040l + +/* + * Do this z blt using dwZBufferLow and dwZBufferHigh as range values + * specified to limit the bits copied from the source surface. + */ +#define DDBLTFX_ZBUFFERRANGE 0x00000080l + +/* + * Do this z blt adding the dwZBufferBaseDest to each of the sources z values + * before comparing it with the desting z values. + */ +#define DDBLTFX_ZBUFFERBASEDEST 0x00000100l + +/**************************************************************************** + * + * DIRECTDRAWSURFACE OVERLAY FX FLAGS + * + ****************************************************************************/ + +/* + * If stretching, use arithmetic stretching along the Y axis for this overlay. + */ +#define DDOVERFX_ARITHSTRETCHY 0x00000001l + +/* + * Mirror the overlay across the vertical axis + */ +#define DDOVERFX_MIRRORLEFTRIGHT 0x00000002l + +/* + * Mirror the overlay across the horizontal axis + */ +#define DDOVERFX_MIRRORUPDOWN 0x00000004l + +/* + * Deinterlace the overlay, if possible + */ +#define DDOVERFX_DEINTERLACE 0x00000008l + + +/**************************************************************************** + * + * DIRECTDRAW WAITFORVERTICALBLANK FLAGS + * + ****************************************************************************/ + +/* + * return when the vertical blank interval begins + */ +#define DDWAITVB_BLOCKBEGIN 0x00000001l + +/* + * set up an event to trigger when the vertical blank begins + */ +#define DDWAITVB_BLOCKBEGINEVENT 0x00000002l + +/* + * return when the vertical blank interval ends and display begins + */ +#define DDWAITVB_BLOCKEND 0x00000004l + +/**************************************************************************** + * + * DIRECTDRAW GETFLIPSTATUS FLAGS + * + ****************************************************************************/ + +/* + * is it OK to flip now? + */ +#define DDGFS_CANFLIP 0x00000001l + +/* + * is the last flip finished? + */ +#define DDGFS_ISFLIPDONE 0x00000002l + +/**************************************************************************** + * + * DIRECTDRAW GETBLTSTATUS FLAGS + * + ****************************************************************************/ + +/* + * is it OK to blt now? + */ +#define DDGBS_CANBLT 0x00000001l + +/* + * is the blt to the surface finished? + */ +#define DDGBS_ISBLTDONE 0x00000002l + + +/**************************************************************************** + * + * DIRECTDRAW ENUMOVERLAYZORDER FLAGS + * + ****************************************************************************/ + +/* + * Enumerate overlays back to front. + */ +#define DDENUMOVERLAYZ_BACKTOFRONT 0x00000000l + +/* + * Enumerate overlays front to back + */ +#define DDENUMOVERLAYZ_FRONTTOBACK 0x00000001l + +/**************************************************************************** + * + * DIRECTDRAW UPDATEOVERLAYZORDER FLAGS + * + ****************************************************************************/ + +/* + * Send overlay to front + */ +#define DDOVERZ_SENDTOFRONT 0x00000000l + +/* + * Send overlay to back + */ +#define DDOVERZ_SENDTOBACK 0x00000001l + +/* + * Move Overlay forward + */ +#define DDOVERZ_MOVEFORWARD 0x00000002l + +/* + * Move Overlay backward + */ +#define DDOVERZ_MOVEBACKWARD 0x00000003l + +/* + * Move Overlay in front of relative surface + */ +#define DDOVERZ_INSERTINFRONTOF 0x00000004l + +/* + * Move Overlay in back of relative surface + */ +#define DDOVERZ_INSERTINBACKOF 0x00000005l + + +/**************************************************************************** + * + * DIRECTDRAW SETGAMMARAMP FLAGS + * + ****************************************************************************/ + +/* + * Request calibrator to adjust the gamma ramp according to the physical + * properties of the display so that the result should appear identical + * on all systems. + */ +#define DDSGR_CALIBRATE 0x00000001L + + +/**************************************************************************** + * + * DIRECTDRAW STARTMODETEST FLAGS + * + ****************************************************************************/ + +/* + * Indicates that the mode being tested has passed + */ +#define DDSMT_ISTESTREQUIRED 0x00000001L + + +/**************************************************************************** + * + * DIRECTDRAW EVALUATEMODE FLAGS + * + ****************************************************************************/ + +/* + * Indicates that the mode being tested has passed + */ +#define DDEM_MODEPASSED 0x00000001L + +/* + * Indicates that the mode being tested has failed + */ +#define DDEM_MODEFAILED 0x00000002L + + +/*=========================================================================== + * + * + * DIRECTDRAW RETURN CODES + * + * The return values from DirectDraw Commands and Surface that return an HRESULT + * are codes from DirectDraw concerning the results of the action + * requested by DirectDraw. + * + *==========================================================================*/ + +/* + * Status is OK + * + * Issued by: DirectDraw Commands and all callbacks + */ +#define DD_OK S_OK +#define DD_FALSE S_FALSE + +/**************************************************************************** + * + * DIRECTDRAW ENUMCALLBACK RETURN VALUES + * + * EnumCallback returns are used to control the flow of the DIRECTDRAW and + * DIRECTDRAWSURFACE object enumerations. They can only be returned by + * enumeration callback routines. + * + ****************************************************************************/ + +/* + * stop the enumeration + */ +#define DDENUMRET_CANCEL 0 + +/* + * continue the enumeration + */ +#define DDENUMRET_OK 1 + +/**************************************************************************** + * + * DIRECTDRAW ERRORS + * + * Errors are represented by negative values and cannot be combined. + * + ****************************************************************************/ + +/* + * This object is already initialized + */ +#define DDERR_ALREADYINITIALIZED MAKE_DDHRESULT( 5 ) + +/* + * This surface can not be attached to the requested surface. + */ +#define DDERR_CANNOTATTACHSURFACE MAKE_DDHRESULT( 10 ) + +/* + * This surface can not be detached from the requested surface. + */ +#define DDERR_CANNOTDETACHSURFACE MAKE_DDHRESULT( 20 ) + +/* + * Support is currently not available. + */ +#define DDERR_CURRENTLYNOTAVAIL MAKE_DDHRESULT( 40 ) + +/* + * An exception was encountered while performing the requested operation + */ +#define DDERR_EXCEPTION MAKE_DDHRESULT( 55 ) + +/* + * Generic failure. + */ +#define DDERR_GENERIC E_FAIL + +/* + * Height of rectangle provided is not a multiple of reqd alignment + */ +#define DDERR_HEIGHTALIGN MAKE_DDHRESULT( 90 ) + +/* + * Unable to match primary surface creation request with existing + * primary surface. + */ +#define DDERR_INCOMPATIBLEPRIMARY MAKE_DDHRESULT( 95 ) + +/* + * One or more of the caps bits passed to the callback are incorrect. + */ +#define DDERR_INVALIDCAPS MAKE_DDHRESULT( 100 ) + +/* + * DirectDraw does not support provided Cliplist. + */ +#define DDERR_INVALIDCLIPLIST MAKE_DDHRESULT( 110 ) + +/* + * DirectDraw does not support the requested mode + */ +#define DDERR_INVALIDMODE MAKE_DDHRESULT( 120 ) + +/* + * DirectDraw received a pointer that was an invalid DIRECTDRAW object. + */ +#define DDERR_INVALIDOBJECT MAKE_DDHRESULT( 130 ) + +/* + * One or more of the parameters passed to the callback function are + * incorrect. + */ +#define DDERR_INVALIDPARAMS E_INVALIDARG + +/* + * pixel format was invalid as specified + */ +#define DDERR_INVALIDPIXELFORMAT MAKE_DDHRESULT( 145 ) + +/* + * Rectangle provided was invalid. + */ +#define DDERR_INVALIDRECT MAKE_DDHRESULT( 150 ) + +/* + * Operation could not be carried out because one or more surfaces are locked + */ +#define DDERR_LOCKEDSURFACES MAKE_DDHRESULT( 160 ) + +/* + * There is no 3D present. + */ +#define DDERR_NO3D MAKE_DDHRESULT( 170 ) + +/* + * Operation could not be carried out because there is no alpha accleration + * hardware present or available. + */ +#define DDERR_NOALPHAHW MAKE_DDHRESULT( 180 ) + +/* + * Operation could not be carried out because there is no stereo + * hardware present or available. + */ +#define DDERR_NOSTEREOHARDWARE MAKE_DDHRESULT( 181 ) + +/* + * Operation could not be carried out because there is no hardware + * present which supports stereo surfaces + */ +#define DDERR_NOSURFACELEFT MAKE_DDHRESULT( 182 ) + + + +/* + * no clip list available + */ +#define DDERR_NOCLIPLIST MAKE_DDHRESULT( 205 ) + +/* + * Operation could not be carried out because there is no color conversion + * hardware present or available. + */ +#define DDERR_NOCOLORCONVHW MAKE_DDHRESULT( 210 ) + +/* + * Create function called without DirectDraw object method SetCooperativeLevel + * being called. + */ +#define DDERR_NOCOOPERATIVELEVELSET MAKE_DDHRESULT( 212 ) + +/* + * Surface doesn't currently have a color key + */ +#define DDERR_NOCOLORKEY MAKE_DDHRESULT( 215 ) + +/* + * Operation could not be carried out because there is no hardware support + * of the dest color key. + */ +#define DDERR_NOCOLORKEYHW MAKE_DDHRESULT( 220 ) + +/* + * No DirectDraw support possible with current display driver + */ +#define DDERR_NODIRECTDRAWSUPPORT MAKE_DDHRESULT( 222 ) + +/* + * Operation requires the application to have exclusive mode but the + * application does not have exclusive mode. + */ +#define DDERR_NOEXCLUSIVEMODE MAKE_DDHRESULT( 225 ) + +/* + * Flipping visible surfaces is not supported. + */ +#define DDERR_NOFLIPHW MAKE_DDHRESULT( 230 ) + +/* + * There is no GDI present. + */ +#define DDERR_NOGDI MAKE_DDHRESULT( 240 ) + +/* + * Operation could not be carried out because there is no hardware present + * or available. + */ +#define DDERR_NOMIRRORHW MAKE_DDHRESULT( 250 ) + +/* + * Requested item was not found + */ +#define DDERR_NOTFOUND MAKE_DDHRESULT( 255 ) + +/* + * Operation could not be carried out because there is no overlay hardware + * present or available. + */ +#define DDERR_NOOVERLAYHW MAKE_DDHRESULT( 260 ) + +/* + * Operation could not be carried out because the source and destination + * rectangles are on the same surface and overlap each other. + */ +#define DDERR_OVERLAPPINGRECTS MAKE_DDHRESULT( 270 ) + +/* + * Operation could not be carried out because there is no appropriate raster + * op hardware present or available. + */ +#define DDERR_NORASTEROPHW MAKE_DDHRESULT( 280 ) + +/* + * Operation could not be carried out because there is no rotation hardware + * present or available. + */ +#define DDERR_NOROTATIONHW MAKE_DDHRESULT( 290 ) + +/* + * Operation could not be carried out because there is no hardware support + * for stretching + */ +#define DDERR_NOSTRETCHHW MAKE_DDHRESULT( 310 ) + +/* + * DirectDrawSurface is not in 4 bit color palette and the requested operation + * requires 4 bit color palette. + */ +#define DDERR_NOT4BITCOLOR MAKE_DDHRESULT( 316 ) + +/* + * DirectDrawSurface is not in 4 bit color index palette and the requested + * operation requires 4 bit color index palette. + */ +#define DDERR_NOT4BITCOLORINDEX MAKE_DDHRESULT( 317 ) + +/* + * DirectDraw Surface is not in 8 bit color mode and the requested operation + * requires 8 bit color. + */ +#define DDERR_NOT8BITCOLOR MAKE_DDHRESULT( 320 ) + +/* + * Operation could not be carried out because there is no texture mapping + * hardware present or available. + */ +#define DDERR_NOTEXTUREHW MAKE_DDHRESULT( 330 ) + +/* + * Operation could not be carried out because there is no hardware support + * for vertical blank synchronized operations. + */ +#define DDERR_NOVSYNCHW MAKE_DDHRESULT( 335 ) + +/* + * Operation could not be carried out because there is no hardware support + * for zbuffer blting. + */ +#define DDERR_NOZBUFFERHW MAKE_DDHRESULT( 340 ) + +/* + * Overlay surfaces could not be z layered based on their BltOrder because + * the hardware does not support z layering of overlays. + */ +#define DDERR_NOZOVERLAYHW MAKE_DDHRESULT( 350 ) + +/* + * The hardware needed for the requested operation has already been + * allocated. + */ +#define DDERR_OUTOFCAPS MAKE_DDHRESULT( 360 ) + +/* + * DirectDraw does not have enough memory to perform the operation. + */ +#define DDERR_OUTOFMEMORY E_OUTOFMEMORY + +/* + * DirectDraw does not have enough memory to perform the operation. + */ +#define DDERR_OUTOFVIDEOMEMORY MAKE_DDHRESULT( 380 ) + +/* + * hardware does not support clipped overlays + */ +#define DDERR_OVERLAYCANTCLIP MAKE_DDHRESULT( 382 ) + +/* + * Can only have ony color key active at one time for overlays + */ +#define DDERR_OVERLAYCOLORKEYONLYONEACTIVE MAKE_DDHRESULT( 384 ) + +/* + * Access to this palette is being refused because the palette is already + * locked by another thread. + */ +#define DDERR_PALETTEBUSY MAKE_DDHRESULT( 387 ) + +/* + * No src color key specified for this operation. + */ +#define DDERR_COLORKEYNOTSET MAKE_DDHRESULT( 400 ) + +/* + * This surface is already attached to the surface it is being attached to. + */ +#define DDERR_SURFACEALREADYATTACHED MAKE_DDHRESULT( 410 ) + +/* + * This surface is already a dependency of the surface it is being made a + * dependency of. + */ +#define DDERR_SURFACEALREADYDEPENDENT MAKE_DDHRESULT( 420 ) + +/* + * Access to this surface is being refused because the surface is already + * locked by another thread. + */ +#define DDERR_SURFACEBUSY MAKE_DDHRESULT( 430 ) + +/* + * Access to this surface is being refused because no driver exists + * which can supply a pointer to the surface. + * This is most likely to happen when attempting to lock the primary + * surface when no DCI provider is present. + * Will also happen on attempts to lock an optimized surface. + */ +#define DDERR_CANTLOCKSURFACE MAKE_DDHRESULT( 435 ) + +/* + * Access to Surface refused because Surface is obscured. + */ +#define DDERR_SURFACEISOBSCURED MAKE_DDHRESULT( 440 ) + +/* + * Access to this surface is being refused because the surface is gone. + * The DIRECTDRAWSURFACE object representing this surface should + * have Restore called on it. + */ +#define DDERR_SURFACELOST MAKE_DDHRESULT( 450 ) + +/* + * The requested surface is not attached. + */ +#define DDERR_SURFACENOTATTACHED MAKE_DDHRESULT( 460 ) + +/* + * Height requested by DirectDraw is too large. + */ +#define DDERR_TOOBIGHEIGHT MAKE_DDHRESULT( 470 ) + +/* + * Size requested by DirectDraw is too large -- The individual height and + * width are OK. + */ +#define DDERR_TOOBIGSIZE MAKE_DDHRESULT( 480 ) + +/* + * Width requested by DirectDraw is too large. + */ +#define DDERR_TOOBIGWIDTH MAKE_DDHRESULT( 490 ) + +/* + * Action not supported. + */ +#define DDERR_UNSUPPORTED E_NOTIMPL + +/* + * Pixel format requested is unsupported by DirectDraw + */ +#define DDERR_UNSUPPORTEDFORMAT MAKE_DDHRESULT( 510 ) + +/* + * Bitmask in the pixel format requested is unsupported by DirectDraw + */ +#define DDERR_UNSUPPORTEDMASK MAKE_DDHRESULT( 520 ) + +/* + * The specified stream contains invalid data + */ +#define DDERR_INVALIDSTREAM MAKE_DDHRESULT( 521 ) + +/* + * vertical blank is in progress + */ +#define DDERR_VERTICALBLANKINPROGRESS MAKE_DDHRESULT( 537 ) + +/* + * Informs DirectDraw that the previous Blt which is transfering information + * to or from this Surface is incomplete. + */ +#define DDERR_WASSTILLDRAWING MAKE_DDHRESULT( 540 ) + + +/* + * The specified surface type requires specification of the COMPLEX flag + */ +#define DDERR_DDSCAPSCOMPLEXREQUIRED MAKE_DDHRESULT( 542 ) + + +/* + * Rectangle provided was not horizontally aligned on reqd. boundary + */ +#define DDERR_XALIGN MAKE_DDHRESULT( 560 ) + +/* + * The GUID passed to DirectDrawCreate is not a valid DirectDraw driver + * identifier. + */ +#define DDERR_INVALIDDIRECTDRAWGUID MAKE_DDHRESULT( 561 ) + +/* + * A DirectDraw object representing this driver has already been created + * for this process. + */ +#define DDERR_DIRECTDRAWALREADYCREATED MAKE_DDHRESULT( 562 ) + +/* + * A hardware only DirectDraw object creation was attempted but the driver + * did not support any hardware. + */ +#define DDERR_NODIRECTDRAWHW MAKE_DDHRESULT( 563 ) + +/* + * this process already has created a primary surface + */ +#define DDERR_PRIMARYSURFACEALREADYEXISTS MAKE_DDHRESULT( 564 ) + +/* + * software emulation not available. + */ +#define DDERR_NOEMULATION MAKE_DDHRESULT( 565 ) + +/* + * region passed to Clipper::GetClipList is too small. + */ +#define DDERR_REGIONTOOSMALL MAKE_DDHRESULT( 566 ) + +/* + * an attempt was made to set a clip list for a clipper objec that + * is already monitoring an hwnd. + */ +#define DDERR_CLIPPERISUSINGHWND MAKE_DDHRESULT( 567 ) + +/* + * No clipper object attached to surface object + */ +#define DDERR_NOCLIPPERATTACHED MAKE_DDHRESULT( 568 ) + +/* + * Clipper notification requires an HWND or + * no HWND has previously been set as the CooperativeLevel HWND. + */ +#define DDERR_NOHWND MAKE_DDHRESULT( 569 ) + +/* + * HWND used by DirectDraw CooperativeLevel has been subclassed, + * this prevents DirectDraw from restoring state. + */ +#define DDERR_HWNDSUBCLASSED MAKE_DDHRESULT( 570 ) + +/* + * The CooperativeLevel HWND has already been set. + * It can not be reset while the process has surfaces or palettes created. + */ +#define DDERR_HWNDALREADYSET MAKE_DDHRESULT( 571 ) + +/* + * No palette object attached to this surface. + */ +#define DDERR_NOPALETTEATTACHED MAKE_DDHRESULT( 572 ) + +/* + * No hardware support for 16 or 256 color palettes. + */ +#define DDERR_NOPALETTEHW MAKE_DDHRESULT( 573 ) + +/* + * If a clipper object is attached to the source surface passed into a + * BltFast call. + */ +#define DDERR_BLTFASTCANTCLIP MAKE_DDHRESULT( 574 ) + +/* + * No blter. + */ +#define DDERR_NOBLTHW MAKE_DDHRESULT( 575 ) + +/* + * No DirectDraw ROP hardware. + */ +#define DDERR_NODDROPSHW MAKE_DDHRESULT( 576 ) + +/* + * returned when GetOverlayPosition is called on a hidden overlay + */ +#define DDERR_OVERLAYNOTVISIBLE MAKE_DDHRESULT( 577 ) + +/* + * returned when GetOverlayPosition is called on a overlay that UpdateOverlay + * has never been called on to establish a destionation. + */ +#define DDERR_NOOVERLAYDEST MAKE_DDHRESULT( 578 ) + +/* + * returned when the position of the overlay on the destionation is no longer + * legal for that destionation. + */ +#define DDERR_INVALIDPOSITION MAKE_DDHRESULT( 579 ) + +/* + * returned when an overlay member is called for a non-overlay surface + */ +#define DDERR_NOTAOVERLAYSURFACE MAKE_DDHRESULT( 580 ) + +/* + * An attempt was made to set the cooperative level when it was already + * set to exclusive. + */ +#define DDERR_EXCLUSIVEMODEALREADYSET MAKE_DDHRESULT( 581 ) + +/* + * An attempt has been made to flip a surface that is not flippable. + */ +#define DDERR_NOTFLIPPABLE MAKE_DDHRESULT( 582 ) + +/* + * Can't duplicate primary & 3D surfaces, or surfaces that are implicitly + * created. + */ +#define DDERR_CANTDUPLICATE MAKE_DDHRESULT( 583 ) + +/* + * Surface was not locked. An attempt to unlock a surface that was not + * locked at all, or by this process, has been attempted. + */ +#define DDERR_NOTLOCKED MAKE_DDHRESULT( 584 ) + +/* + * Windows can not create any more DCs, or a DC was requested for a paltte-indexed + * surface when the surface had no palette AND the display mode was not palette-indexed + * (in this case DirectDraw cannot select a proper palette into the DC) + */ +#define DDERR_CANTCREATEDC MAKE_DDHRESULT( 585 ) + +/* + * No DC was ever created for this surface. + */ +#define DDERR_NODC MAKE_DDHRESULT( 586 ) + +/* + * This surface can not be restored because it was created in a different + * mode. + */ +#define DDERR_WRONGMODE MAKE_DDHRESULT( 587 ) + +/* + * This surface can not be restored because it is an implicitly created + * surface. + */ +#define DDERR_IMPLICITLYCREATED MAKE_DDHRESULT( 588 ) + +/* + * The surface being used is not a palette-based surface + */ +#define DDERR_NOTPALETTIZED MAKE_DDHRESULT( 589 ) + + +/* + * The display is currently in an unsupported mode + */ +#define DDERR_UNSUPPORTEDMODE MAKE_DDHRESULT( 590 ) + +/* + * Operation could not be carried out because there is no mip-map + * texture mapping hardware present or available. + */ +#define DDERR_NOMIPMAPHW MAKE_DDHRESULT( 591 ) + +/* + * The requested action could not be performed because the surface was of + * the wrong type. + */ +#define DDERR_INVALIDSURFACETYPE MAKE_DDHRESULT( 592 ) + + +/* + * Device does not support optimized surfaces, therefore no video memory optimized surfaces + */ +#define DDERR_NOOPTIMIZEHW MAKE_DDHRESULT( 600 ) + +/* + * Surface is an optimized surface, but has not yet been allocated any memory + */ +#define DDERR_NOTLOADED MAKE_DDHRESULT( 601 ) + +/* + * Attempt was made to create or set a device window without first setting + * the focus window + */ +#define DDERR_NOFOCUSWINDOW MAKE_DDHRESULT( 602 ) + +/* + * Attempt was made to set a palette on a mipmap sublevel + */ +#define DDERR_NOTONMIPMAPSUBLEVEL MAKE_DDHRESULT( 603 ) + +/* + * A DC has already been returned for this surface. Only one DC can be + * retrieved per surface. + */ +#define DDERR_DCALREADYCREATED MAKE_DDHRESULT( 620 ) + +/* + * An attempt was made to allocate non-local video memory from a device + * that does not support non-local video memory. + */ +#define DDERR_NONONLOCALVIDMEM MAKE_DDHRESULT( 630 ) + +/* + * The attempt to page lock a surface failed. + */ +#define DDERR_CANTPAGELOCK MAKE_DDHRESULT( 640 ) + + +/* + * The attempt to page unlock a surface failed. + */ +#define DDERR_CANTPAGEUNLOCK MAKE_DDHRESULT( 660 ) + +/* + * An attempt was made to page unlock a surface with no outstanding page locks. + */ +#define DDERR_NOTPAGELOCKED MAKE_DDHRESULT( 680 ) + +/* + * There is more data available than the specified buffer size could hold + */ +#define DDERR_MOREDATA MAKE_DDHRESULT( 690 ) + +/* + * The data has expired and is therefore no longer valid. + */ +#define DDERR_EXPIRED MAKE_DDHRESULT( 691 ) + +/* + * The mode test has finished executing. + */ +#define DDERR_TESTFINISHED MAKE_DDHRESULT( 692 ) + +/* + * The mode test has switched to a new mode. + */ +#define DDERR_NEWMODE MAKE_DDHRESULT( 693 ) + +/* + * D3D has not yet been initialized. + */ +#define DDERR_D3DNOTINITIALIZED MAKE_DDHRESULT( 694 ) + +/* + * The video port is not active + */ +#define DDERR_VIDEONOTACTIVE MAKE_DDHRESULT( 695 ) + +/* + * The monitor does not have EDID data. + */ +#define DDERR_NOMONITORINFORMATION MAKE_DDHRESULT( 696 ) + +/* + * The driver does not enumerate display mode refresh rates. + */ +#define DDERR_NODRIVERSUPPORT MAKE_DDHRESULT( 697 ) + +/* + * Surfaces created by one direct draw device cannot be used directly by + * another direct draw device. + */ +#define DDERR_DEVICEDOESNTOWNSURFACE MAKE_DDHRESULT( 699 ) + + + +/* + * An attempt was made to invoke an interface member of a DirectDraw object + * created by CoCreateInstance() before it was initialized. + */ +#define DDERR_NOTINITIALIZED CO_E_NOTINITIALIZED + + +/* Alpha bit depth constants */ + + +#ifdef __cplusplus +}; +#endif + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#else +#pragma warning(default:4201) +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //__DDRAW_INCLUDED__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddrawgdi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddrawgdi.h new file mode 100644 index 0000000000000000000000000000000000000000..ce1c99333b51eb9cc5ac659e211c2f90d6b1e442 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddrawgdi.h @@ -0,0 +1,189 @@ +/******************************Module*Header*******************************\ +* Module Name: ddrawgdi.h +* +* Structures and defines for the private entry points in GDI to support +* DirectDraw. +* +* Copyright (c) Microsoft Corporation. All rights reserved. +\**************************************************************************/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef COMBOX_SANDBOX +#define DX_LONGHORN_PRESERVEDC +#endif + +// We rename the actual entry points for added protection against anyone +// trying to call our private entry points directly: + +#ifndef NODDRAWGDI +#define DdCreateDirectDrawObject GdiEntry1 +#define DdQueryDirectDrawObject GdiEntry2 +#define DdDeleteDirectDrawObject GdiEntry3 +#define DdCreateSurfaceObject GdiEntry4 +#define DdDeleteSurfaceObject GdiEntry5 +#define DdResetVisrgn GdiEntry6 +#define DdGetDC GdiEntry7 +#define DdReleaseDC GdiEntry8 +#define DdCreateDIBSection GdiEntry9 +#define DdReenableDirectDrawObject GdiEntry10 +#define DdAttachSurface GdiEntry11 +#define DdUnattachSurface GdiEntry12 +#define DdQueryDisplaySettingsUniqueness GdiEntry13 +#define DdGetDxHandle GdiEntry14 +#define DdSetGammaRamp GdiEntry15 +#define DdSwapTextureHandles GdiEntry16 + +#ifdef DX_LONGHORN_PRESERVEDC +#define DdChangeSurfacePointer GdiEntry17 +#endif // DX_LONGHORN_PRESERVEDC + +#endif + +BOOL +APIENTRY +DdCreateDirectDrawObject( + LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal, + HDC hdc + ); + +typedef struct _D3DHAL_CALLBACKS FAR *LPD3DHAL_CALLBACKS; +typedef struct _D3DHAL_GLOBALDRIVERDATA FAR *LPD3DHAL_GLOBALDRIVERDATA; + +BOOL +APIENTRY +DdQueryDirectDrawObject( + LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal, + LPDDHALINFO pHalInfo, + LPDDHAL_DDCALLBACKS pDDCallbacks, + LPDDHAL_DDSURFACECALLBACKS pDDSurfaceCallbacks, + LPDDHAL_DDPALETTECALLBACKS pDDPaletteCallbacks, + LPD3DHAL_CALLBACKS pD3dCallbacks, + LPD3DHAL_GLOBALDRIVERDATA pD3dDriverData, + LPDDHAL_DDEXEBUFCALLBACKS pD3dBufferCallbacks, + LPDDSURFACEDESC pD3dTextureFormats, + LPDWORD pdwFourCC, // Can be NULL + LPVIDMEM pvmList // Can be NULL + ); + +BOOL +APIENTRY +DdDeleteDirectDrawObject( + LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal + ); + +BOOL +APIENTRY +DdCreateSurfaceObject( + LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal, + BOOL bPrimarySurface + ); + +BOOL +APIENTRY +DdDeleteSurfaceObject( + LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal + ); + +BOOL +APIENTRY +DdResetVisrgn( + LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal, + HWND hWnd + ); + +HDC +APIENTRY +DdGetDC( + LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal, + LPPALETTEENTRY pColorTable + ); + +BOOL +APIENTRY +DdReleaseDC( + LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal + ); + +HBITMAP +APIENTRY +DdCreateDIBSection( + HDC hdc, + CONST BITMAPINFO* pbmi, + UINT iUsage, + VOID** ppvBits, + HANDLE hSectionApp, + DWORD dwOffset + ); + +BOOL +APIENTRY +DdReenableDirectDrawObject( + LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal, + BOOL* pbNewMode + ); + +BOOL +APIENTRY +DdAttachSurface( + LPDDRAWI_DDRAWSURFACE_LCL pSurfaceFrom, + LPDDRAWI_DDRAWSURFACE_LCL pSurfaceTo + ); + +VOID +APIENTRY +DdUnattachSurface( + LPDDRAWI_DDRAWSURFACE_LCL pSurface, + LPDDRAWI_DDRAWSURFACE_LCL pSurfaceAttached + ); + +ULONG +APIENTRY +DdQueryDisplaySettingsUniqueness( + VOID + ); + +HANDLE +APIENTRY +DdGetDxHandle( + LPDDRAWI_DIRECTDRAW_LCL pDDraw, + LPDDRAWI_DDRAWSURFACE_LCL pSurface, + BOOL bRelease + ); + +BOOL +APIENTRY +DdSetGammaRamp( + LPDDRAWI_DIRECTDRAW_LCL pDDraw, + HDC hdc, + LPVOID lpGammaRamp + ); + + + +DWORD +APIENTRY +DdSwapTextureHandles( + LPDDRAWI_DIRECTDRAW_LCL pDDraw, + LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1, + LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2 + ); + +#ifdef DX_LONGHORN_PRESERVEDC + +DWORD +APIENTRY +DdChangeSurfacePointer( + LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal, + LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal, + LPVOID pSurfacePointer + ); + +#endif // DX_LONGHORN_PRESERVEDC + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddrawi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddrawi.h new file mode 100644 index 0000000000000000000000000000000000000000..45eab20dc4433b6ccfb652d9983b127a0d784ffe --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddrawi.h @@ -0,0 +1,2991 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: ddrawi.h + * Content: DirectDraw internal header file + * Used by DirectDraw and by the display drivers. + * + ***************************************************************************/ +#ifndef __DDRAWI_INCLUDED__ +#define __DDRAWI_INCLUDED__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// This is a helper for external driver builds. +// +#if (!defined(WIN95)) && (!defined(WINNT)) +#define WIN95 +#endif + +/* + * METAQUESTION: Why are Windows handles stored as DWORDs instead of + * their proper types? + * METAANSWER: To make the thunk to the 16-bit side completely painless. + */ + +#define OBJECT_ISROOT 0x80000000l // object is root object + +/* + * stuff for drivers + */ +#ifndef _WIN32 +typedef long HRESULT; +typedef LPVOID REFIID; +#ifndef GUID_DEFINED + #define GUID_DEFINED + typedef struct _GUID { + ULONG Data1; + unsigned short Data2; + unsigned short Data3; + unsigned char Data4[8]; + } GUID; +#endif // !defined(GUID_DEFINED) + +typedef GUID FAR *LPGUID; +#define MAKE_HRESULT(sev,fac,code) \ + ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) ) +#endif + +/* + * These definitions are required to allow polymorphic structure members (i.e. those + * that are referred to both as DWORDs and as pointers) to resolve into a type + * of correct size to hold the largest of those two types (i.e. pointer) on 64 bit + * systems. For 32 bit environments, ULONG_PTR resolves to a DWORD. + */ +#ifndef MAXULONG_PTR +#define ULONG_PTR DWORD +#define PULONG_PTR LPDWORD +#endif //MAXULONG_PTR + + #include "ddraw.h" + #include "dvp.h" + #include "ddkernel.h" +#include "dmemmgr.h" + +#ifdef IS_16 +// ddraw16 16-bit compiler cannot handle 32-bit d3d headers included by d3dhal.h +// so for ddraw16 build, explicitly list d3dhal ptr types here +#define LPD3DHAL_GLOBALDRIVERDATA ULONG_PTR +#define LPD3DHAL_CALLBACKS ULONG_PTR +#define LPD3DHAL_CALLBACKS2 ULONG_PTR +#define LPD3DHAL_CALLBACKS3 ULONG_PTR +#define LPD3DHAL_D3DEXTENDEDCAPS ULONG_PTR +#define LPD3DHAL_COMMANDBUFFERCALLBACKS ULONG_PTR +#endif + +#ifndef _WIN32 +/* + * these error codes are DIFFERENT in Win32 and Win16!!!! + */ +#undef E_NOTIMPL +#undef E_OUTOFMEMORY +#undef E_INVALIDARG +#undef E_FAIL +#define E_NOTIMPL 0x80004001L +#define E_OUTOFMEMORY 0x8007000EL +#define E_INVALIDARG 0x80070057L +#define E_FAIL 0x80004005L +#endif + + +#define DDUNSUPPORTEDMODE ((DWORD) -1) + + +#define VALID_ALIGNMENT( align ) (!((align == 0) || (align % 2) != 0 )) + +#ifdef _WIN32 +/* + * These GUIDs are used to identify driver info structures, not interfaces, + * so the prefix GUID_ is used instead of IID_. + * + */ + +DEFINE_GUID( GUID_MiscellaneousCallbacks, 0xefd60cc0, 0x49e7, 0x11d0, 0x88, 0x9d, 0x00, 0xaa, 0x00, 0xbb, 0xb7, 0x6a); +DEFINE_GUID( GUID_VideoPortCallbacks, 0xefd60cc1, 0x49e7, 0x11d0, 0x88, 0x9d, 0x00, 0xaa, 0x00, 0xbb, 0xb7, 0x6a); +DEFINE_GUID( GUID_ColorControlCallbacks, 0xefd60cc2, 0x49e7, 0x11d0, 0x88, 0x9d, 0x00, 0xaa, 0x00, 0xbb, 0xb7, 0x6a); +DEFINE_GUID( GUID_VideoPortCaps, 0xefd60cc3, 0x49e7, 0x11d0, 0x88, 0x9d, 0x00, 0xaa, 0x00, 0xbb, 0xb7, 0x6a); +DEFINE_GUID( GUID_D3DCallbacks2, 0x0ba584e1, 0x70b6, 0x11d0, 0x88, 0x9d, 0x00, 0xaa, 0x00, 0xbb, 0xb7, 0x6a); +DEFINE_GUID( GUID_D3DCallbacks3, 0xddf41230, 0xec0a, 0x11d0, 0xa9, 0xb6, 0x00, 0xaa, 0x00, 0xc0, 0x99, 0x3e); +DEFINE_GUID( GUID_NonLocalVidMemCaps, 0x86c4fa80, 0x8d84, 0x11d0, 0x94, 0xe8, 0x00, 0xc0, 0x4f, 0xc3, 0x41, 0x37); +DEFINE_GUID( GUID_KernelCallbacks, 0x80863800, 0x6B06, 0x11D0, 0x9B, 0x06, 0x0, 0xA0, 0xC9, 0x03, 0xA3, 0xB8); +DEFINE_GUID( GUID_KernelCaps, 0xFFAA7540, 0x7AA8, 0x11D0, 0x9B, 0x06, 0x00, 0xA0, 0xC9, 0x03, 0xA3, 0xB8); +DEFINE_GUID( GUID_D3DExtendedCaps, 0x7de41f80, 0x9d93, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); +DEFINE_GUID( GUID_ZPixelFormats, 0x93869880, 0x36cf, 0x11d1, 0x9b, 0x1b, 0x0, 0xaa, 0x0, 0xbb, 0xb8, 0xae); +DEFINE_GUID( GUID_DDMoreSurfaceCaps, 0x3b8a0466, 0xf269, 0x11d1, 0x88, 0x0b, 0x0, 0xc0, 0x4f, 0xd9, 0x30, 0xc5); +DEFINE_GUID( GUID_DDStereoMode, 0xf828169c, 0xa8e8, 0x11d2, 0xa1, 0xf2, 0x0, 0xa0, 0xc9, 0x83, 0xea, 0xf6); +DEFINE_GUID( GUID_OptSurfaceKmodeInfo, 0xe05c8472, 0x51d4, 0x11d1, 0x8c, 0xce, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); +DEFINE_GUID( GUID_OptSurfaceUmodeInfo, 0x9d792804, 0x5fa8, 0x11d1, 0x8c, 0xd0, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); +DEFINE_GUID( GUID_UserModeDriverInfo, 0xf0b0e8e2, 0x5f97, 0x11d1, 0x8c, 0xd0, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); +DEFINE_GUID( GUID_UserModeDriverPassword, 0x97f861b6, 0x60a1, 0x11d1, 0x8c, 0xd0, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); +DEFINE_GUID(GUID_D3DParseUnknownCommandCallback, 0x2e04ffa0, 0x98e4, 0x11d1, 0x8c, 0xe1, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); +DEFINE_GUID( GUID_MotionCompCallbacks, 0xb1122b40, 0x5dA5, 0x11d1, 0x8f, 0xcF, 0x00, 0xc0, 0x4f, 0xc2, 0x9b, 0x4e); +DEFINE_GUID( GUID_Miscellaneous2Callbacks, 0x406B2F00, 0x3E5A, 0x11D1, 0xB6, 0x40, 0x00, 0xAA, 0x00, 0xA1, 0xF9, 0x6A); +#endif //_WIN32 + +// The Callback that the drivers can use to parse unknown commands +// passed to them via the DrawPrimitives2 callback. The driver obtains this +// callback thru a GetDriverInfo call with GUID_D3DParseUnknownCommandCallback +// made by ddraw somewhere around the initialization time. +#ifdef __cplusplus +extern "C" +#endif +HRESULT CALLBACK D3DParseUnknownCommand (LPVOID lpvCommands, + LPVOID *lplpvReturnedCommand); +/* + * This DDPF flag is used by drivers to signify that this format is new and may be + * a candidate for hiding from certain applications + * KEEP THIS DEFINITION IN SYNC WITH THAT OF DDPF_RESERVED1 IN DDRAW.H + */ +#define DDPF_NOVEL_TEXTURE_FORMAT 0x00100000l + + +/* + * This DDPF flag is used to indicate a DX8+ format capability entry in + * the texture format list. It is not visible to applications. + */ +#define DDPF_D3DFORMAT 0x00200000l + +/* + * List of operations supported on formats in DX8+ texture list. + * See the DX8 DDK for a complete description of these flags. + */ +#define D3DFORMAT_OP_TEXTURE 0x00000001L +#define D3DFORMAT_OP_VOLUMETEXTURE 0x00000002L +#define D3DFORMAT_OP_CUBETEXTURE 0x00000004L +#define D3DFORMAT_OP_OFFSCREEN_RENDERTARGET 0x00000008L +#define D3DFORMAT_OP_SAME_FORMAT_RENDERTARGET 0x00000010L +#define D3DFORMAT_OP_ZSTENCIL 0x00000040L +#define D3DFORMAT_OP_ZSTENCIL_WITH_ARBITRARY_COLOR_DEPTH 0x00000080L + +// This format can be used as a render target if the current display mode +// is the same depth if the alpha channel is ignored. e.g. if the device +// can render to A8R8G8B8 when the display mode is X8R8G8B8, then the +// format op list entry for A8R8G8B8 should have this cap. +#define D3DFORMAT_OP_SAME_FORMAT_UP_TO_ALPHA_RENDERTARGET 0x00000100L + +// This format contains DirectDraw support (including Flip). This flag +// should not to be set on alpha formats. +#define D3DFORMAT_OP_DISPLAYMODE 0x00000400L + +// The rasterizer can support some level of Direct3D support in this format +// and implies that the driver can create a Context in this mode (for some +// render target format). When this flag is set, the D3DFORMAT_OP_DISPLAYMODE +// flag must also be set. +#define D3DFORMAT_OP_3DACCELERATION 0x00000800L + +// If the driver needs a private format to be D3D or driver manageable, +// then it needs to tell D3D the pixelsize in bits per pixel by setting +// dwPrivateFormatBitCount in DDPIXELFORMAT and by setting the below +// format op. If the below format op is not set, then D3D or the driver +// will NOT be allowed to manage the format. +#define D3DFORMAT_OP_PIXELSIZE 0x00001000L + +// Indicates that this format can be converted to any RGB format for which +// D3DFORMAT_MEMBEROFGROUP_ARGB is specified +#define D3DFORMAT_OP_CONVERT_TO_ARGB 0x00002000L + +// Indicates that this format can be used to create offscreen plain surfaces. +#define D3DFORMAT_OP_OFFSCREENPLAIN 0x00004000L + +// Indicated that this format can be read as an SRGB texture (meaning that the +// sampler will linearize the looked up data) +#define D3DFORMAT_OP_SRGBREAD 0x00008000L + +// Indicates that this format can be used in the bumpmap instructions +#define D3DFORMAT_OP_BUMPMAP 0x00010000L + +// Indicates that this format can be sampled by the displacement map sampler +#define D3DFORMAT_OP_DMAP 0x00020000L + +// Indicates that this format cannot be used with texture filtering +#define D3DFORMAT_OP_NOFILTER 0x00040000L + +// Indicates that format conversions are supported to this RGB format if +// D3DFORMAT_OP_CONVERT_TO_ARGB is specified in the source format. +#define D3DFORMAT_MEMBEROFGROUP_ARGB 0x00080000L + +// Indicated that this format can be written as an SRGB target (meaning that the +// pixel pipe will DE-linearize data on output to format) +#define D3DFORMAT_OP_SRGBWRITE 0x00100000L + +// Indicates that this format cannot be used with alpha blending +#define D3DFORMAT_OP_NOALPHABLEND 0x00200000L + +//Indicates that the device can auto-generated sublevels for resources +//of this format +#define D3DFORMAT_OP_AUTOGENMIPMAP 0x00400000L + +// Indicates that this format cannot be used by vertex texture sampler +#define D3DFORMAT_OP_VERTEXTEXTURE 0x00800000L + +// Indicates that this format supports neither texture coordinate wrap modes, nor mipmapping +#define D3DFORMAT_OP_NOTEXCOORDWRAPNORMIP 0x01000000L + + +/* + * List of processes attached to a DirectDraw object + */ +typedef struct _PROCESS_LIST +{ + struct _PROCESS_LIST FAR *lpLink; + DWORD dwProcessId; + DWORD dwRefCnt; + DWORD dwAlphaDepth; + DWORD dwZDepth; +} PROCESS_LIST; +typedef PROCESS_LIST FAR *LPPROCESS_LIST; + +/* + * Information about the refresh rates that monitor/display card can support + */ +typedef struct _DDMONITORINFO +{ + WORD Manufacturer; // Montor manufacturer + WORD Product; // Monitor product ID + DWORD SerialNumber; // Monitor serial number + GUID DeviceIdentifier; // From DDDEVICEIDENTIFIER, describes card/driver + int Mode640x480; // Highest refresh rate support, 0 if none, -1 if untested + int Mode800x600; + int Mode1024x768; + int Mode1280x1024; + int Mode1600x1200; + int ModeReserved1; + int ModeReserved2; + int ModeReserved3; +} DDMONITORINFO, FAR *LPDDMONITORINFO; + + +/* + * DeleteFromActiveProcessList return codes + */ +#define DELETED_OK 0 +#define DELETED_LASTONE 1 +#define DELETED_NOTFOUND 2 + +#define DDBLT_ANYALPHA \ + (DDBLT_ALPHASRCSURFACEOVERRIDE | \ + DDBLT_ALPHASRCCONSTOVERRIDE | \ + DDBLT_ALPHASRC | \ + DDBLT_ALPHADESTSURFACEOVERRIDE | \ + DDBLT_ALPHADESTCONSTOVERRIDE | \ + DDBLT_ALPHADEST) + +#define DDOVER_ANYALPHA \ + (DDOVER_ALPHASRCSURFACEOVERRIDE | \ + DDOVER_ALPHASRCCONSTOVERRIDE | \ + DDOVER_ALPHASRC | \ + DDOVER_ALPHADESTSURFACEOVERRIDE | \ + DDOVER_ALPHADESTCONSTOVERRIDE | \ + DDOVER_ALPHADEST) + + +typedef struct IDirectDrawClipperVtbl DIRECTDRAWCLIPPERCALLBACKS; +typedef struct IDirectDrawPaletteVtbl DIRECTDRAWPALETTECALLBACKS; +typedef struct IDirectDrawSurfaceVtbl DIRECTDRAWSURFACECALLBACKS; +typedef struct IDirectDrawSurface2Vtbl DIRECTDRAWSURFACE2CALLBACKS; +typedef struct IDirectDrawSurface3Vtbl DIRECTDRAWSURFACE3CALLBACKS; +typedef struct IDirectDrawSurface4Vtbl DIRECTDRAWSURFACE4CALLBACKS; +typedef struct IDirectDrawSurface7Vtbl DIRECTDRAWSURFACE7CALLBACKS; +typedef struct IDirectDrawColorControlVtbl DIRECTDRAWCOLORCONTROLCALLBACKS; +typedef struct IDirectDrawVtbl DIRECTDRAWCALLBACKS; +typedef struct IDirectDraw2Vtbl DIRECTDRAW2CALLBACKS; +typedef struct IDirectDraw4Vtbl DIRECTDRAW4CALLBACKS; +typedef struct IDirectDraw7Vtbl DIRECTDRAW7CALLBACKS; +typedef struct IDirectDrawKernelVtbl DIRECTDRAWKERNELCALLBACKS; +typedef struct IDirectDrawSurfaceKernelVtbl DIRECTDRAWSURFACEKERNELCALLBACKS; +typedef struct IDirectDrawGammaControlVtbl DIRECTDRAWGAMMACONTROLCALLBACKS; + + +typedef DIRECTDRAWCLIPPERCALLBACKS FAR *LPDIRECTDRAWCLIPPERCALLBACKS; +typedef DIRECTDRAWPALETTECALLBACKS FAR *LPDIRECTDRAWPALETTECALLBACKS; +typedef DIRECTDRAWSURFACECALLBACKS FAR *LPDIRECTDRAWSURFACECALLBACKS; +typedef DIRECTDRAWCALLBACKS FAR *LPDIRECTDRAWCALLBACKS; + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined( IS_32 ) || defined( WIN32 ) || defined( _WIN32 ) + #undef IS_32 + #define IS_32 + #define DDAPI WINAPI + #define EXTERN_DDAPI WINAPI +#else + #define DDAPI __loadds WINAPI + #define EXTERN_DDAPI __export WINAPI +#endif + + +/* + * DCI escape + */ +#ifndef DCICOMMAND +#define DCICOMMAND 3075 // escape value +#endif + +/* + * this is the DirectDraw version + * passed to the driver in DCICMD.dwVersion + * + * Most older HALs will fail if DD_VERSION does not match what they + * are expecting. Therefore, DD_VERSION cannot change if we want DX5+ to + * run on DX2/3 HALs. For this reason, we added a new version call that + * allows the HAL to know the real version of DirectDraw, which is equal + * to DD_RUNTIME_VERSION. This is for informational purposes only. HALs + * should not fail DirectDraw if they receive an unknown DirectDraw runtime + * version. + */ +#define DD_VERSION 0x00000200l +#define DD_RUNTIME_VERSION 0x00000902l + +/* + * this is the HAL version. + * the driver returns this number from QUERYESCSUPPORT/DCICOMMAND + */ +#define DD_HAL_VERSION 0x0100 + +#include "dciddi.h" + +#define DDCREATEDRIVEROBJECT 10 // create an object +#define DDGET32BITDRIVERNAME 11 // get a 32-bit driver name +#define DDNEWCALLBACKFNS 12 // new callback fns coming +#define DDVERSIONINFO 13 // tells driver the ddraw version + +typedef struct +{ + char szName[260]; // 32-bit driver name + char szEntryPoint[64]; // entry point + DWORD dwContext; // context to pass to entry point +} DD32BITDRIVERDATA, FAR *LPDD32BITDRIVERDATA; + +typedef struct +{ + DWORD dwHALVersion; // Version of DirectDraw for which the HAL was created + ULONG_PTR dwReserved1; // Reserved for future use + ULONG_PTR dwReserved2; // Reserved for future use +} DDVERSIONDATA, FAR *LPDDVERSIONDATA; + +typedef DWORD (FAR PASCAL *LPDD32BITDRIVERINIT)(DWORD dwContext); + +/* + * pointer to video meory + */ +typedef ULONG_PTR FLATPTR; + +/* + * indicates that DDRAW.DLL has been unloaded... + */ +#define DDRAW_DLL_UNLOADED (LPVOID) 1 + +/* + * critical section types + */ +typedef LPVOID CSECT_HANDLE; +#ifdef NOUSE_CRITSECTS +typedef xxx CSECT; // generate an error for now +#else +#if defined( IS_32 ) && !defined( _NOCSECT_TYPE ) +typedef CRITICAL_SECTION CSECT; +typedef CSECT *LPCSECT; +#else +typedef struct +{ + DWORD vals[6]; +} CSECT; +typedef void FAR *LPCSECT; +#endif +#endif + +/* + * DLL names + */ +#define DDHAL_DRIVER_DLLNAME "DDRAW16.DLL" +#define DDHAL_APP_DLLNAME "DDRAW.DLL" + +/* + * maximum size of a driver name + */ +#ifndef CCHDEVICENAME +#define CCHDEVICENAME 32 +#endif +#define MAX_DRIVER_NAME CCHDEVICENAME + +/* + * largest palette supported + */ +#define MAX_PALETTE_SIZE 256 + +/* + * maximum number of surfaces that can be autoflipped between + */ +#define MAX_AUTOFLIP_BUFFERS 10 + +/* + * Indicates the surface is an execute buffer, i.e., a linear chunk of system + * or video memory that holds a Direct3D display list. A driver reports this + * cap to indicate that it can create execute buffers in video memory and + * Direct3D uses this bit to request execute buffers. However, it is not + * visible to via the API. + */ +#define DDSCAPS_EXECUTEBUFFER DDSCAPS_RESERVED2 +/* + * Indicates to the driver that the "execute" buffer that is to be created is actually + * a vertex buffer. Used by CreateVertexBuffer in D3D + */ +#define DDSCAPS2_VERTEXBUFFER DDSCAPS2_RESERVED1 + +/* + * Indicates to the driver that the "execute" buffer that is to be created is actually + * a command buffer. Used by internally in D3D + */ +#define DDSCAPS2_COMMANDBUFFER DDSCAPS2_RESERVED2 + +/* + * Indicates to the driver that the "execute" buffer that is to be created is actually + * an index buffer. + */ +#define DDSCAPS2_INDEXBUFFER DDSCAPS2_RESERVED3 + +/* + * Indicates to the driver that the render target contains video data + */ +#define DDSCAPS3_VIDEO DDSCAPS3_RESERVED2 + + +/* + * Internal formats are not exposed to applications. + */ + +#define D3DFMT_INTERNAL_D32 71 +#define D3DFMT_INTERNAL_S1D15 72 +#define D3DFMT_INTERNAL_D15S1 73 +#define D3DFMT_INTERNAL_S8D24 74 +#define D3DFMT_INTERNAL_D24S8 75 +#define D3DFMT_INTERNAL_X8D24 76 +#define D3DFMT_INTERNAL_D24X8 77 + + + +/* + * pre-declare pointers to structs containing data for DDHAL fns + */ +typedef struct _DDHAL_CREATEPALETTEDATA FAR *LPDDHAL_CREATEPALETTEDATA; +typedef struct _DDHAL_CREATESURFACEDATA FAR *LPDDHAL_CREATESURFACEDATA; +typedef struct _DDHAL_CANCREATESURFACEDATA FAR *LPDDHAL_CANCREATESURFACEDATA; +typedef struct _DDHAL_WAITFORVERTICALBLANKDATA FAR *LPDDHAL_WAITFORVERTICALBLANKDATA; +typedef struct _DDHAL_DESTROYDRIVERDATA FAR *LPDDHAL_DESTROYDRIVERDATA; +typedef struct _DDHAL_SETMODEDATA FAR *LPDDHAL_SETMODEDATA; +typedef struct _DDHAL_DRVSETCOLORKEYDATA FAR *LPDDHAL_DRVSETCOLORKEYDATA; +typedef struct _DDHAL_GETSCANLINEDATA FAR *LPDDHAL_GETSCANLINEDATA; + +typedef struct _DDHAL_DESTROYPALETTEDATA FAR *LPDDHAL_DESTROYPALETTEDATA; +typedef struct _DDHAL_SETENTRIESDATA FAR *LPDDHAL_SETENTRIESDATA; + +typedef struct _DDHAL_BLTDATA FAR *LPDDHAL_BLTDATA; +typedef struct _DDHAL_LOCKDATA FAR *LPDDHAL_LOCKDATA; +typedef struct _DDHAL_UNLOCKDATA FAR *LPDDHAL_UNLOCKDATA; +typedef struct _DDHAL_UPDATEOVERLAYDATA FAR *LPDDHAL_UPDATEOVERLAYDATA; +typedef struct _DDHAL_SETOVERLAYPOSITIONDATA FAR *LPDDHAL_SETOVERLAYPOSITIONDATA; +typedef struct _DDHAL_SETPALETTEDATA FAR *LPDDHAL_SETPALETTEDATA; +typedef struct _DDHAL_FLIPDATA FAR *LPDDHAL_FLIPDATA; +typedef struct _DDHAL_DESTROYSURFACEDATA FAR *LPDDHAL_DESTROYSURFACEDATA; +typedef struct _DDHAL_SETCLIPLISTDATA FAR *LPDDHAL_SETCLIPLISTDATA; +typedef struct _DDHAL_ADDATTACHEDSURFACEDATA FAR *LPDDHAL_ADDATTACHEDSURFACEDATA; +typedef struct _DDHAL_SETCOLORKEYDATA FAR *LPDDHAL_SETCOLORKEYDATA; +typedef struct _DDHAL_GETBLTSTATUSDATA FAR *LPDDHAL_GETBLTSTATUSDATA; +typedef struct _DDHAL_GETFLIPSTATUSDATA FAR *LPDDHAL_GETFLIPSTATUSDATA; +typedef struct _DDHAL_SETEXCLUSIVEMODEDATA FAR *LPDDHAL_SETEXCLUSIVEMODEDATA; +typedef struct _DDHAL_FLIPTOGDISURFACEDATA FAR *LPDDHAL_FLIPTOGDISURFACEDATA; + +typedef struct _DDHAL_CANCREATEVPORTDATA FAR *LPDDHAL_CANCREATEVPORTDATA; +typedef struct _DDHAL_CREATEVPORTDATA FAR *LPDDHAL_CREATEVPORTDATA; +typedef struct _DDHAL_FLIPVPORTDATA FAR *LPDDHAL_FLIPVPORTDATA; +typedef struct _DDHAL_GETVPORTCONNECTDATA FAR *LPDDHAL_GETVPORTCONNECTDATA; +typedef struct _DDHAL_GETVPORTBANDWIDTHDATA FAR *LPDDHAL_GETVPORTBANDWIDTHDATA; +typedef struct _DDHAL_GETVPORTINPUTFORMATDATA FAR *LPDDHAL_GETVPORTINPUTFORMATDATA; +typedef struct _DDHAL_GETVPORTOUTPUTFORMATDATA FAR *LPDDHAL_GETVPORTOUTPUTFORMATDATA; +typedef struct _DDHAL_GETVPORTFIELDDATA FAR *LPDDHAL_GETVPORTFIELDDATA; +typedef struct _DDHAL_GETVPORTLINEDATA FAR *LPDDHAL_GETVPORTLINEDATA; +typedef struct _DDHAL_DESTROYVPORTDATA FAR *LPDDHAL_DESTROYVPORTDATA; +typedef struct _DDHAL_GETVPORTFLIPSTATUSDATA FAR *LPDDHAL_GETVPORTFLIPSTATUSDATA; +typedef struct _DDHAL_UPDATEVPORTDATA FAR *LPDDHAL_UPDATEVPORTDATA; +typedef struct _DDHAL_WAITFORVPORTSYNCDATA FAR *LPDDHAL_WAITFORVPORTSYNCDATA; +typedef struct _DDHAL_GETVPORTSIGNALDATA FAR *LPDDHAL_GETVPORTSIGNALDATA; +typedef struct _DDHAL_VPORTCOLORDATA FAR *LPDDHAL_VPORTCOLORDATA; + +typedef struct _DDHAL_COLORCONTROLDATA FAR *LPDDHAL_COLORCONTROLDATA; + +typedef struct _DDHAL_GETAVAILDRIVERMEMORYDATA FAR *LPDDHAL_GETAVAILDRIVERMEMORYDATA; +typedef struct _DDHAL_UPDATENONLOCALHEAPDATA FAR *LPDDHAL_UPDATENONLOCALHEAPDATA; +typedef struct _DDHAL_GETHEAPALIGNMENTDATA FAR *LPDDHAL_GETHEAPALIGNMENTDATA; + +typedef struct _DDHAL_GETDRIVERINFODATA FAR *LPDDHAL_GETDRIVERINFODATA; + +typedef struct _DDHAL_SYNCSURFACEDATA FAR *LPDDHAL_SYNCSURFACEDATA; +typedef struct _DDHAL_SYNCVIDEOPORTDATA FAR *LPDDHAL_SYNCVIDEOPORTDATA; + +typedef struct _DDHAL_GETMOCOMPGUIDSDATA FAR *LPDDHAL_GETMOCOMPGUIDSDATA; +typedef struct _DDHAL_GETMOCOMPFORMATSDATA FAR *LPDDHAL_GETMOCOMPFORMATSDATA; +typedef struct _DDHAL_CREATEMOCOMPDATA FAR *LPDDHAL_CREATEMOCOMPDATA; +typedef struct _DDHAL_GETMOCOMPCOMPBUFFDATA FAR *LPDDHAL_GETMOCOMPCOMPBUFFDATA; +typedef struct _DDHAL_GETINTERNALMOCOMPDATA FAR *LPDDHAL_GETINTERNALMOCOMPDATA; +typedef struct _DDHAL_BEGINMOCOMPFRAMEDATA FAR *LPDDHAL_BEGINMOCOMPFRAMEDATA; +typedef struct _DDHAL_ENDMOCOMPFRAMEDATA FAR *LPDDHAL_ENDMOCOMPFRAMEDATA; +typedef struct _DDHAL_RENDERMOCOMPDATA FAR *LPDDHAL_RENDERMOCOMPDATA; +typedef struct _DDHAL_QUERYMOCOMPSTATUSDATA FAR *LPDDHAL_QUERYMOCOMPSTATUSDATA; +typedef struct _DDHAL_DESTROYMOCOMPDATA FAR *LPDDHAL_DESTROYMOCOMPDATA; + +typedef struct _DDHAL_CREATESURFACEEXDATA FAR *LPDDHAL_CREATESURFACEEXDATA; +typedef struct _DDHAL_GETDRIVERSTATEDATA FAR *LPDDHAL_GETDRIVERSTATEDATA; +typedef struct _DDHAL_DESTROYDDLOCALDATA FAR *LPDDHAL_DESTROYDDLOCALDATA; + +/* + * value in the fpVidMem; indicates dwBlockSize is valid (surface object) + */ +#define DDHAL_PLEASEALLOC_BLOCKSIZE 0x00000002l + + +/* + * Values in fpVidMem: Indicates dwLinearSizde is valid. + * THIS VALUE CAN ONLY BE USED BY A D3D Optimize DRIVER FUNCTION + * IT IS INVALID FOR A DRIVER TO RETURN THIS VALUE FROM CreateSurface32. + */ +#define DDHAL_PLEASEALLOC_LINEARSIZE 0x00000003l + +/* + * DRIVER SERVICES + * + * These services exported from ddraw.dll can be called by the HAL. + * They are intended for use by the d3d Optimize HAL call. + */ +extern HRESULT DDAPI LateAllocateSurfaceMem( + LPDIRECTDRAWSURFACE lpSurface, + DWORD dwPleaseAllocType, + DWORD dwWidthInBytesOrSize, + DWORD dwHeight); + +LPDIRECTDRAWSURFACE GetNextMipMap( + LPDIRECTDRAWSURFACE lpLevel); +/* + * video memory data structures (passed in DDHALINFO) + */ +typedef struct _VIDMEM +{ + DWORD dwFlags; // flags + FLATPTR fpStart; // start of memory chunk + union + { + FLATPTR fpEnd; // end of memory chunk + DWORD dwWidth; // width of chunk (rectanglar memory) + }; + DDSCAPS ddsCaps; // what this memory CANNOT be used for + DDSCAPS ddsCapsAlt; // what this memory CANNOT be used for if it must + union + { + LPVMEMHEAP lpHeap; // heap pointer, used by DDRAW + DWORD dwHeight; // height of chunk (rectanguler memory) + }; +} VIDMEM; +typedef VIDMEM FAR *LPVIDMEM; + +/* + * flags for vidmem struct + */ +#define VIDMEM_ISLINEAR 0x00000001l // heap is linear +#define VIDMEM_ISRECTANGULAR 0x00000002l // heap is rectangular +#define VIDMEM_ISHEAP 0x00000004l // heap is preallocated by driver +#define VIDMEM_ISNONLOCAL 0x00000008l // heap populated with non-local video memory +#define VIDMEM_ISWC 0x00000010l // heap populated with write combining memory +#define VIDMEM_HEAPDISABLED 0x00000020l // heap disabled + +typedef struct _VIDMEMINFO +{ +/* 0*/ FLATPTR fpPrimary; // pointer to primary surface +/* 4*/ DWORD dwFlags; // flags +/* 8*/ DWORD dwDisplayWidth; // current display width +/* c*/ DWORD dwDisplayHeight; // current display height +/*10*/ LONG lDisplayPitch; // current display pitch +/*14*/ DDPIXELFORMAT ddpfDisplay; // pixel format of display +/*34*/ DWORD dwOffscreenAlign; // byte alignment for offscreen surfaces +/*38*/ DWORD dwOverlayAlign; // byte alignment for overlays +/*3c*/ DWORD dwTextureAlign; // byte alignment for textures +/*40*/ DWORD dwZBufferAlign; // byte alignment for z buffers +/*44*/ DWORD dwAlphaAlign; // byte alignment for alpha +/*48*/ DWORD dwNumHeaps; // number of memory heaps in vmList +/*4c*/ LPVIDMEM pvmList; // array of heaps +} VIDMEMINFO; +typedef VIDMEMINFO FAR *LPVIDMEMINFO; + +typedef struct _HEAPALIAS // PRIVATE +{ + FLATPTR fpVidMem; // start of aliased vid mem + LPVOID lpAlias; // start of heap alias + DWORD dwAliasSize; // size of alias allocated +} HEAPALIAS; +typedef HEAPALIAS FAR *LPHEAPALIAS; + +typedef struct _HEAPALIASINFO // PRIVATE +{ + DWORD dwRefCnt; // reference count of these aliases + DWORD dwFlags; // flags + DWORD dwNumHeaps; // number of aliased heaps + LPHEAPALIAS lpAliases; // array of heaps +} HEAPALIASINFO; +typedef HEAPALIASINFO FAR *LPHEAPALIASINFO; + +#define HEAPALIASINFO_MAPPEDREAL 0x00000001l // PRIVATE: heap aliases mapped to real video memory +#define HEAPALIASINFO_MAPPEDDUMMY 0x00000002l // PRIVATE: heap aliased mapped to dummy memory + +typedef struct _DDRAWI_DIRECTDRAW_INT FAR *LPDDRAWI_DIRECTDRAW_INT; +typedef struct _DDRAWI_DIRECTDRAW_LCL FAR *LPDDRAWI_DIRECTDRAW_LCL; +typedef struct _DDRAWI_DIRECTDRAW_GBL FAR *LPDDRAWI_DIRECTDRAW_GBL; +typedef struct _DDRAWI_DDRAWSURFACE_GBL FAR *LPDDRAWI_DDRAWSURFACE_GBL; +typedef struct _DDRAWI_DDRAWSURFACE_GBL_MORE FAR *LPDDRAWI_DDRAWSURFACE_GBL_MORE; +typedef struct _DDRAWI_DDRAWPALETTE_GBL FAR *LPDDRAWI_DDRAWPALETTE_GBL; +typedef struct _DDRAWI_DDRAWPALETTE_INT FAR *LPDDRAWI_DDRAWPALETTE_INT; +typedef struct _DDRAWI_DDRAWCLIPPER_INT FAR *LPDDRAWI_DDRAWCLIPPER_INT; +typedef struct _DDRAWI_DDRAWCLIPPER_GBL FAR *LPDDRAWI_DDRAWCLIPPER_GBL; +typedef struct _DDRAWI_DDRAWSURFACE_MORE FAR *LPDDRAWI_DDRAWSURFACE_MORE; +typedef struct _DDRAWI_DDRAWSURFACE_LCL FAR *LPDDRAWI_DDRAWSURFACE_LCL; +typedef struct _DDRAWI_DDRAWSURFACE_INT FAR *LPDDRAWI_DDRAWSURFACE_INT; +typedef struct _DDRAWI_DDVIDEOPORT_INT FAR *LPDDRAWI_DDVIDEOPORT_INT; +typedef struct _DDRAWI_DDVIDEOPORT_LCL FAR *LPDDRAWI_DDVIDEOPORT_LCL; +typedef struct _DDRAWI_DDRAWPALETTE_LCL FAR *LPDDRAWI_DDRAWPALETTE_LCL; +typedef struct _DDRAWI_DDRAWCLIPPER_LCL FAR *LPDDRAWI_DDRAWCLIPPER_LCL; +typedef struct _DDRAWI_DDMOTIONCOMP_INT FAR *LPDDRAWI_DDMOTIONCOMP_INT; +typedef struct _DDRAWI_DDMOTIONCOMP_LCL FAR *LPDDRAWI_DDMOTIONCOMP_LCL; + +/* + * List of IUnknowns aggregated by a DirectDraw surface. + */ +typedef struct _IUNKNOWN_LIST +{ + struct _IUNKNOWN_LIST FAR *lpLink; + GUID FAR *lpGuid; + IUnknown FAR *lpIUnknown; +} IUNKNOWN_LIST; +typedef IUNKNOWN_LIST FAR *LPIUNKNOWN_LIST; + +/* + * hardware emulation layer stuff + */ +typedef BOOL (FAR PASCAL *LPDDHEL_INIT)(LPDDRAWI_DIRECTDRAW_GBL,BOOL); + +/* + * These structures contain the entry points in the display driver that + * DDRAW will call. Entries that the display driver does not care about + * should be NULL. Passed to DDRAW in DDHALINFO. + */ + +/* + * DIRECTDRAW object callbacks + */ +typedef DWORD (FAR PASCAL *LPDDHAL_SETCOLORKEY)(LPDDHAL_DRVSETCOLORKEYDATA ); +typedef DWORD (FAR PASCAL *LPDDHAL_CANCREATESURFACE)(LPDDHAL_CANCREATESURFACEDATA ); +typedef DWORD (FAR PASCAL *LPDDHAL_WAITFORVERTICALBLANK)(LPDDHAL_WAITFORVERTICALBLANKDATA ); +typedef DWORD (FAR PASCAL *LPDDHAL_CREATESURFACE)(LPDDHAL_CREATESURFACEDATA); +typedef DWORD (FAR PASCAL *LPDDHAL_DESTROYDRIVER)(LPDDHAL_DESTROYDRIVERDATA); +typedef DWORD (FAR PASCAL *LPDDHAL_SETMODE)(LPDDHAL_SETMODEDATA); +typedef DWORD (FAR PASCAL *LPDDHAL_CREATEPALETTE)(LPDDHAL_CREATEPALETTEDATA); +typedef DWORD (FAR PASCAL *LPDDHAL_GETSCANLINE)(LPDDHAL_GETSCANLINEDATA); +typedef DWORD (FAR PASCAL *LPDDHAL_SETEXCLUSIVEMODE)(LPDDHAL_SETEXCLUSIVEMODEDATA); +typedef DWORD (FAR PASCAL *LPDDHAL_FLIPTOGDISURFACE)(LPDDHAL_FLIPTOGDISURFACEDATA); + +typedef DWORD (FAR PASCAL *LPDDHAL_GETDRIVERINFO)(LPDDHAL_GETDRIVERINFODATA); + +typedef struct _DDHAL_DDCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + LPDDHAL_DESTROYDRIVER DestroyDriver; + LPDDHAL_CREATESURFACE CreateSurface; + LPDDHAL_SETCOLORKEY SetColorKey; + LPDDHAL_SETMODE SetMode; + LPDDHAL_WAITFORVERTICALBLANK WaitForVerticalBlank; + LPDDHAL_CANCREATESURFACE CanCreateSurface; + LPDDHAL_CREATEPALETTE CreatePalette; + LPDDHAL_GETSCANLINE GetScanLine; + // *** New fields for DX2 *** // + LPDDHAL_SETEXCLUSIVEMODE SetExclusiveMode; + LPDDHAL_FLIPTOGDISURFACE FlipToGDISurface; +} DDHAL_DDCALLBACKS; +typedef DDHAL_DDCALLBACKS FAR *LPDDHAL_DDCALLBACKS; + +#define DDCALLBACKSSIZE_V1 ( offsetof( DDHAL_DDCALLBACKS, SetExclusiveMode ) ) +#define DDCALLBACKSSIZE sizeof( DDHAL_DDCALLBACKS ) + +#define DDHAL_CB32_DESTROYDRIVER 0x00000001l +#define DDHAL_CB32_CREATESURFACE 0x00000002l +#define DDHAL_CB32_SETCOLORKEY 0x00000004l +#define DDHAL_CB32_SETMODE 0x00000008l +#define DDHAL_CB32_WAITFORVERTICALBLANK 0x00000010l +#define DDHAL_CB32_CANCREATESURFACE 0x00000020l +#define DDHAL_CB32_CREATEPALETTE 0x00000040l +#define DDHAL_CB32_GETSCANLINE 0x00000080l +#define DDHAL_CB32_SETEXCLUSIVEMODE 0x00000100l +#define DDHAL_CB32_FLIPTOGDISURFACE 0x00000200l + +/* + * DIRECTDRAWPALETTE object callbacks + */ +typedef DWORD (FAR PASCAL *LPDDHALPALCB_DESTROYPALETTE)(LPDDHAL_DESTROYPALETTEDATA ); +typedef DWORD (FAR PASCAL *LPDDHALPALCB_SETENTRIES)(LPDDHAL_SETENTRIESDATA ); + +typedef struct _DDHAL_DDPALETTECALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + LPDDHALPALCB_DESTROYPALETTE DestroyPalette; + LPDDHALPALCB_SETENTRIES SetEntries; +} DDHAL_DDPALETTECALLBACKS; +typedef DDHAL_DDPALETTECALLBACKS FAR *LPDDHAL_DDPALETTECALLBACKS; + +#define DDPALETTECALLBACKSSIZE sizeof( DDHAL_DDPALETTECALLBACKS ) + +#define DDHAL_PALCB32_DESTROYPALETTE 0x00000001l +#define DDHAL_PALCB32_SETENTRIES 0x00000002l + +/* + * DIRECTDRAWSURFACE object callbacks + */ +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_LOCK)(LPDDHAL_LOCKDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_UNLOCK)(LPDDHAL_UNLOCKDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_BLT)(LPDDHAL_BLTDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_UPDATEOVERLAY)(LPDDHAL_UPDATEOVERLAYDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_SETOVERLAYPOSITION)(LPDDHAL_SETOVERLAYPOSITIONDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_SETPALETTE)(LPDDHAL_SETPALETTEDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_FLIP)(LPDDHAL_FLIPDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_DESTROYSURFACE)(LPDDHAL_DESTROYSURFACEDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_SETCLIPLIST)(LPDDHAL_SETCLIPLISTDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_ADDATTACHEDSURFACE)(LPDDHAL_ADDATTACHEDSURFACEDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_SETCOLORKEY)(LPDDHAL_SETCOLORKEYDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_GETBLTSTATUS)(LPDDHAL_GETBLTSTATUSDATA); +typedef DWORD (FAR PASCAL *LPDDHALSURFCB_GETFLIPSTATUS)(LPDDHAL_GETFLIPSTATUSDATA); + + +typedef struct _DDHAL_DDSURFACECALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + LPDDHALSURFCB_DESTROYSURFACE DestroySurface; + LPDDHALSURFCB_FLIP Flip; + LPDDHALSURFCB_SETCLIPLIST SetClipList; + LPDDHALSURFCB_LOCK Lock; + LPDDHALSURFCB_UNLOCK Unlock; + LPDDHALSURFCB_BLT Blt; + LPDDHALSURFCB_SETCOLORKEY SetColorKey; + LPDDHALSURFCB_ADDATTACHEDSURFACE AddAttachedSurface; + LPDDHALSURFCB_GETBLTSTATUS GetBltStatus; + LPDDHALSURFCB_GETFLIPSTATUS GetFlipStatus; + LPDDHALSURFCB_UPDATEOVERLAY UpdateOverlay; + LPDDHALSURFCB_SETOVERLAYPOSITION SetOverlayPosition; + LPVOID reserved4; + LPDDHALSURFCB_SETPALETTE SetPalette; +} DDHAL_DDSURFACECALLBACKS; +typedef DDHAL_DDSURFACECALLBACKS FAR *LPDDHAL_DDSURFACECALLBACKS; + +#define DDSURFACECALLBACKSSIZE sizeof( DDHAL_DDSURFACECALLBACKS ) + +#define DDHAL_SURFCB32_DESTROYSURFACE 0x00000001l +#define DDHAL_SURFCB32_FLIP 0x00000002l +#define DDHAL_SURFCB32_SETCLIPLIST 0x00000004l +#define DDHAL_SURFCB32_LOCK 0x00000008l +#define DDHAL_SURFCB32_UNLOCK 0x00000010l +#define DDHAL_SURFCB32_BLT 0x00000020l +#define DDHAL_SURFCB32_SETCOLORKEY 0x00000040l +#define DDHAL_SURFCB32_ADDATTACHEDSURFACE 0x00000080l +#define DDHAL_SURFCB32_GETBLTSTATUS 0x00000100l +#define DDHAL_SURFCB32_GETFLIPSTATUS 0x00000200l +#define DDHAL_SURFCB32_UPDATEOVERLAY 0x00000400l +#define DDHAL_SURFCB32_SETOVERLAYPOSITION 0x00000800l +#define DDHAL_SURFCB32_RESERVED4 0x00001000l +#define DDHAL_SURFCB32_SETPALETTE 0x00002000l + +// This structure can be queried from the driver from DX5 onward +// using GetDriverInfo with GUID_MiscellaneousCallbacks + +typedef DWORD (FAR PASCAL *LPDDHAL_GETAVAILDRIVERMEMORY)(LPDDHAL_GETAVAILDRIVERMEMORYDATA); +typedef DWORD (FAR PASCAL *LPDDHAL_UPDATENONLOCALHEAP)(LPDDHAL_UPDATENONLOCALHEAPDATA); +typedef DWORD (FAR PASCAL *LPDDHAL_GETHEAPALIGNMENT)(LPDDHAL_GETHEAPALIGNMENTDATA); +/* + * This prototype is identical to that of GetBltStatus + */ + +typedef struct _DDHAL_DDMISCELLANEOUSCALLBACKS { + DWORD dwSize; + DWORD dwFlags; + LPDDHAL_GETAVAILDRIVERMEMORY GetAvailDriverMemory; + LPDDHAL_UPDATENONLOCALHEAP UpdateNonLocalHeap; + LPDDHAL_GETHEAPALIGNMENT GetHeapAlignment; + /* + * The GetSysmemBltStatus callback uses the same prototype as GetBltStatus. + * It is legal to point both pointers to the same driver routine. + */ + LPDDHALSURFCB_GETBLTSTATUS GetSysmemBltStatus; +} DDHAL_DDMISCELLANEOUSCALLBACKS, *LPDDHAL_DDMISCELLANEOUSCALLBACKS; + +#define DDHAL_MISCCB32_GETAVAILDRIVERMEMORY 0x00000001l +#define DDHAL_MISCCB32_UPDATENONLOCALHEAP 0x00000002l +#define DDHAL_MISCCB32_GETHEAPALIGNMENT 0x00000004l +#define DDHAL_MISCCB32_GETSYSMEMBLTSTATUS 0x00000008l + +#define DDMISCELLANEOUSCALLBACKSSIZE sizeof(DDHAL_DDMISCELLANEOUSCALLBACKS) + + +// DDHAL_DDMISCELLANEOUS2CALLBACKS: +// This structure can be queried from the driver from DX7 onward +// using GetDriverInfo with GUID_Miscellaneous2Callbacks + +typedef DWORD (FAR PASCAL *LPDDHAL_CREATESURFACEEX)(LPDDHAL_CREATESURFACEEXDATA); +typedef DWORD (FAR PASCAL *LPDDHAL_GETDRIVERSTATE)(LPDDHAL_GETDRIVERSTATEDATA); +typedef DWORD (FAR PASCAL *LPDDHAL_DESTROYDDLOCAL)(LPDDHAL_DESTROYDDLOCALDATA); + +typedef struct _DDHAL_DDMISCELLANEOUS2CALLBACKS { + DWORD dwSize; + DWORD dwFlags; + LPVOID Reserved; + LPDDHAL_CREATESURFACEEX CreateSurfaceEx; + LPDDHAL_GETDRIVERSTATE GetDriverState; + LPDDHAL_DESTROYDDLOCAL DestroyDDLocal; +} DDHAL_DDMISCELLANEOUS2CALLBACKS, *LPDDHAL_DDMISCELLANEOUS2CALLBACKS; + +#define DDHAL_MISC2CB32_CREATESURFACEEX 0x00000002l +#define DDHAL_MISC2CB32_GETDRIVERSTATE 0x00000004l +#define DDHAL_MISC2CB32_DESTROYDDLOCAL 0x00000008l + + +#define DDMISCELLANEOUS2CALLBACKSSIZE sizeof(DDHAL_DDMISCELLANEOUS2CALLBACKS) + + +/* + * DIRECTDRAWEXEBUF pseudo object callbacks + * + * NOTE: Execute buffers are not a distinct object type, they piggy back off + * the surface data structures and high level API. However, they have their + * own HAL callbacks as they may have different driver semantics from "normal" + * surfaces. They also piggy back off the HAL data structures. + * + * !!! NOTE: Need to resolve whether we export execute buffer copying as a + * blit or some other from of copy instruction. + */ +typedef DWORD (FAR PASCAL *LPDDHALEXEBUFCB_CANCREATEEXEBUF)(LPDDHAL_CANCREATESURFACEDATA ); +typedef DWORD (FAR PASCAL *LPDDHALEXEBUFCB_CREATEEXEBUF)(LPDDHAL_CREATESURFACEDATA); +typedef DWORD (FAR PASCAL *LPDDHALEXEBUFCB_DESTROYEXEBUF)(LPDDHAL_DESTROYSURFACEDATA); +typedef DWORD (FAR PASCAL *LPDDHALEXEBUFCB_LOCKEXEBUF)(LPDDHAL_LOCKDATA); +typedef DWORD (FAR PASCAL *LPDDHALEXEBUFCB_UNLOCKEXEBUF)(LPDDHAL_UNLOCKDATA); + +typedef struct _DDHAL_DDEXEBUFCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + LPDDHALEXEBUFCB_CANCREATEEXEBUF CanCreateExecuteBuffer; + LPDDHALEXEBUFCB_CREATEEXEBUF CreateExecuteBuffer; + LPDDHALEXEBUFCB_DESTROYEXEBUF DestroyExecuteBuffer; + LPDDHALEXEBUFCB_LOCKEXEBUF LockExecuteBuffer; + LPDDHALEXEBUFCB_UNLOCKEXEBUF UnlockExecuteBuffer; +} DDHAL_DDEXEBUFCALLBACKS; +typedef DDHAL_DDEXEBUFCALLBACKS FAR *LPDDHAL_DDEXEBUFCALLBACKS; + +#define DDEXEBUFCALLBACKSSIZE sizeof( DDHAL_DDEXEBUFCALLBACKS ) + +#define DDHAL_EXEBUFCB32_CANCREATEEXEBUF 0x00000001l +#define DDHAL_EXEBUFCB32_CREATEEXEBUF 0x00000002l +#define DDHAL_EXEBUFCB32_DESTROYEXEBUF 0x00000004l +#define DDHAL_EXEBUFCB32_LOCKEXEBUF 0x00000008l +#define DDHAL_EXEBUFCB32_UNLOCKEXEBUF 0x00000010l + +/* + * DIRECTVIDEOPORT object callbacks + */ +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_CANCREATEVIDEOPORT)(LPDDHAL_CANCREATEVPORTDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_CREATEVIDEOPORT)(LPDDHAL_CREATEVPORTDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_FLIP)(LPDDHAL_FLIPVPORTDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_GETBANDWIDTH)(LPDDHAL_GETVPORTBANDWIDTHDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_GETINPUTFORMATS)(LPDDHAL_GETVPORTINPUTFORMATDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_GETOUTPUTFORMATS)(LPDDHAL_GETVPORTOUTPUTFORMATDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_GETFIELD)(LPDDHAL_GETVPORTFIELDDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_GETLINE)(LPDDHAL_GETVPORTLINEDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_GETVPORTCONNECT)(LPDDHAL_GETVPORTCONNECTDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_DESTROYVPORT)(LPDDHAL_DESTROYVPORTDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_GETFLIPSTATUS)(LPDDHAL_GETVPORTFLIPSTATUSDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_UPDATE)(LPDDHAL_UPDATEVPORTDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_WAITFORSYNC)(LPDDHAL_WAITFORVPORTSYNCDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_GETSIGNALSTATUS)(LPDDHAL_GETVPORTSIGNALDATA); +typedef DWORD (FAR PASCAL *LPDDHALVPORTCB_COLORCONTROL)(LPDDHAL_VPORTCOLORDATA); + +typedef struct _DDHAL_DDVIDEOPORTCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + LPDDHALVPORTCB_CANCREATEVIDEOPORT CanCreateVideoPort; + LPDDHALVPORTCB_CREATEVIDEOPORT CreateVideoPort; + LPDDHALVPORTCB_FLIP FlipVideoPort; + LPDDHALVPORTCB_GETBANDWIDTH GetVideoPortBandwidth; + LPDDHALVPORTCB_GETINPUTFORMATS GetVideoPortInputFormats; + LPDDHALVPORTCB_GETOUTPUTFORMATS GetVideoPortOutputFormats; + LPVOID lpReserved1; + LPDDHALVPORTCB_GETFIELD GetVideoPortField; + LPDDHALVPORTCB_GETLINE GetVideoPortLine; + LPDDHALVPORTCB_GETVPORTCONNECT GetVideoPortConnectInfo; + LPDDHALVPORTCB_DESTROYVPORT DestroyVideoPort; + LPDDHALVPORTCB_GETFLIPSTATUS GetVideoPortFlipStatus; + LPDDHALVPORTCB_UPDATE UpdateVideoPort; + LPDDHALVPORTCB_WAITFORSYNC WaitForVideoPortSync; + LPDDHALVPORTCB_GETSIGNALSTATUS GetVideoSignalStatus; + LPDDHALVPORTCB_COLORCONTROL ColorControl; +} DDHAL_DDVIDEOPORTCALLBACKS; +typedef DDHAL_DDVIDEOPORTCALLBACKS FAR *LPDDHAL_DDVIDEOPORTCALLBACKS; + +#define DDVIDEOPORTCALLBACKSSIZE sizeof( DDHAL_DDVIDEOPORTCALLBACKS ) + +#define DDHAL_VPORT32_CANCREATEVIDEOPORT 0x00000001l +#define DDHAL_VPORT32_CREATEVIDEOPORT 0x00000002l +#define DDHAL_VPORT32_FLIP 0x00000004l +#define DDHAL_VPORT32_GETBANDWIDTH 0x00000008l +#define DDHAL_VPORT32_GETINPUTFORMATS 0x00000010l +#define DDHAL_VPORT32_GETOUTPUTFORMATS 0x00000020l +#define DDHAL_VPORT32_GETFIELD 0x00000080l +#define DDHAL_VPORT32_GETLINE 0x00000100l +#define DDHAL_VPORT32_GETCONNECT 0x00000200l +#define DDHAL_VPORT32_DESTROY 0x00000400l +#define DDHAL_VPORT32_GETFLIPSTATUS 0x00000800l +#define DDHAL_VPORT32_UPDATE 0x00001000l +#define DDHAL_VPORT32_WAITFORSYNC 0x00002000l +#define DDHAL_VPORT32_GETSIGNALSTATUS 0x00004000l +#define DDHAL_VPORT32_COLORCONTROL 0x00008000l + +/* + * DIRECTDRAWCOLORCONTROL object callbacks + */ +typedef DWORD (FAR PASCAL *LPDDHALCOLORCB_COLORCONTROL)(LPDDHAL_COLORCONTROLDATA); + +typedef struct _DDHAL_DDCOLORCONTROLCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + LPDDHALCOLORCB_COLORCONTROL ColorControl; +} DDHAL_DDCOLORCONTROLCALLBACKS; +typedef DDHAL_DDCOLORCONTROLCALLBACKS FAR *LPDDHAL_DDCOLORCONTROLCALLBACKS; + +#define DDCOLORCONTROLCALLBACKSSIZE sizeof( DDHAL_DDCOLORCONTROLCALLBACKS ) + +#define DDHAL_COLOR_COLORCONTROL 0x00000001l + +/* + * DIRECTDRAWSURFACEKERNEL object callbacks + * This structure can be queried from the driver from DX5 onward + * using GetDriverInfo with GUID_KernelCallbacks + */ +typedef DWORD (FAR PASCAL *LPDDHALKERNELCB_SYNCSURFACE)(LPDDHAL_SYNCSURFACEDATA); +typedef DWORD (FAR PASCAL *LPDDHALKERNELCB_SYNCVIDEOPORT)(LPDDHAL_SYNCVIDEOPORTDATA); + +typedef struct _DDHAL_DDKERNELCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + LPDDHALKERNELCB_SYNCSURFACE SyncSurfaceData; + LPDDHALKERNELCB_SYNCVIDEOPORT SyncVideoPortData; +} DDHAL_DDKERNELCALLBACKS, *LPDDHAL_DDKERNELCALLBACKS; + +#define DDHAL_KERNEL_SYNCSURFACEDATA 0x00000001l +#define DDHAL_KERNEL_SYNCVIDEOPORTDATA 0x00000002l + +#define DDKERNELCALLBACKSSIZE sizeof(DDHAL_DDKERNELCALLBACKS) + +typedef HRESULT (WINAPI *LPDDGAMMACALIBRATORPROC)( LPDDGAMMARAMP, LPBYTE); + +/* + * DIRECTDRAWMOTIONCOMP object callbacks + */ +typedef DWORD (FAR PASCAL *LPDDHALMOCOMPCB_GETGUIDS)( LPDDHAL_GETMOCOMPGUIDSDATA); +typedef DWORD (FAR PASCAL *LPDDHALMOCOMPCB_GETFORMATS)( LPDDHAL_GETMOCOMPFORMATSDATA); +typedef DWORD (FAR PASCAL *LPDDHALMOCOMPCB_CREATE)( LPDDHAL_CREATEMOCOMPDATA); +typedef DWORD (FAR PASCAL *LPDDHALMOCOMPCB_GETCOMPBUFFINFO)( LPDDHAL_GETMOCOMPCOMPBUFFDATA); +typedef DWORD (FAR PASCAL *LPDDHALMOCOMPCB_GETINTERNALINFO)( LPDDHAL_GETINTERNALMOCOMPDATA); +typedef DWORD (FAR PASCAL *LPDDHALMOCOMPCB_BEGINFRAME)( LPDDHAL_BEGINMOCOMPFRAMEDATA); +typedef DWORD (FAR PASCAL *LPDDHALMOCOMPCB_ENDFRAME)( LPDDHAL_ENDMOCOMPFRAMEDATA); +typedef DWORD (FAR PASCAL *LPDDHALMOCOMPCB_RENDER)( LPDDHAL_RENDERMOCOMPDATA); +typedef DWORD (FAR PASCAL *LPDDHALMOCOMPCB_QUERYSTATUS)( LPDDHAL_QUERYMOCOMPSTATUSDATA); +typedef DWORD (FAR PASCAL *LPDDHALMOCOMPCB_DESTROY)( LPDDHAL_DESTROYMOCOMPDATA); + +typedef struct _DDHAL_DDMOTIONCOMPCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + LPDDHALMOCOMPCB_GETGUIDS GetMoCompGuids; + LPDDHALMOCOMPCB_GETFORMATS GetMoCompFormats; + LPDDHALMOCOMPCB_CREATE CreateMoComp; + LPDDHALMOCOMPCB_GETCOMPBUFFINFO GetMoCompBuffInfo; + LPDDHALMOCOMPCB_GETINTERNALINFO GetInternalMoCompInfo; + LPDDHALMOCOMPCB_BEGINFRAME BeginMoCompFrame; + LPDDHALMOCOMPCB_ENDFRAME EndMoCompFrame; + LPDDHALMOCOMPCB_RENDER RenderMoComp; + LPDDHALMOCOMPCB_QUERYSTATUS QueryMoCompStatus; + LPDDHALMOCOMPCB_DESTROY DestroyMoComp; +} DDHAL_DDMOTIONCOMPCALLBACKS; +typedef DDHAL_DDMOTIONCOMPCALLBACKS FAR *LPDDHAL_DDMOTIONCOMPCALLBACKS; + +#define DDMOTIONCOMPCALLBACKSSIZE sizeof( DDHAL_DDMOTIONCOMPCALLBACKS ) + +#define DDHAL_MOCOMP32_GETGUIDS 0x00000001 +#define DDHAL_MOCOMP32_GETFORMATS 0x00000002 +#define DDHAL_MOCOMP32_CREATE 0x00000004 +#define DDHAL_MOCOMP32_GETCOMPBUFFINFO 0x00000008 +#define DDHAL_MOCOMP32_GETINTERNALINFO 0x00000010 +#define DDHAL_MOCOMP32_BEGINFRAME 0x00000020 +#define DDHAL_MOCOMP32_ENDFRAME 0x00000040 +#define DDHAL_MOCOMP32_RENDER 0x00000080 +#define DDHAL_MOCOMP32_QUERYSTATUS 0x00000100 +#define DDHAL_MOCOMP32_DESTROY 0x00000200 + + +/* + * CALLBACK RETURN VALUES + * * these are values returned by the driver from the above callback routines + */ +/* + * indicates that the display driver didn't do anything with the call + */ +#define DDHAL_DRIVER_NOTHANDLED 0x00000000l + +/* + * indicates that the display driver handled the call; HRESULT value is valid + */ +#define DDHAL_DRIVER_HANDLED 0x00000001l + +/* + * indicates that the display driver couldn't handle the call because it + * ran out of color key hardware resources + */ +#define DDHAL_DRIVER_NOCKEYHW 0x00000002l + +/* + * Capabilities structure for non-local video memory + */ +typedef struct _DDNONLOCALVIDMEMCAPS +{ + DWORD dwSize; + DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts + DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts + DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts + DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts + DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts +} DDNONLOCALVIDMEMCAPS; +typedef struct _DDNONLOCALVIDMEMCAPS FAR *LPDDNONLOCALVIDMEMCAPS; + + +/* + * More driver surface capabilities (in addition to those described in DDCORECAPS). + * This struct contains the caps bits added to the DDCAPS.ddsCaps structure in DX6. + */ +typedef struct _DDMORESURFACECAPS +{ + DWORD dwSize; // size of DDMORESURFACECAPS structure + DDSCAPSEX ddsCapsMore; + /* + * The DDMORESURFACECAPS struct is of variable size. The following list may be + * filled in by DX6-aware drivers (see DDVERSIONINFO) to restrict their + * video memory heaps (those which are exposed to DirectDraw) to + * certain sets of DDSCAPS_ bits. Thse entries are exactly analogous to + * the ddsCaps and ddsCapsAlt members of the VIDMEM structures listed in + * the VIDMEMINFO.pvmList member of DDHALINFO.vmiData. There should be + * exactly DDHALINFO.vmiData.dwNumHeaps copies of tagExtendedHeapRestrictions + * in this struct. The size of this struct is thus: + * DDMORESURFACECAPS.dwSize = sizeof(DDMORESURFACECAPS) + + * (DDHALINFO.vmiData.dwNumHeaps-1) * sizeof(DDSCAPSEX)*2; + * Note the -1 accounts for the fact that DDMORESURFACECAPS is declared to have 1 + * tagExtendedHeapRestrictions member. + */ + struct tagExtendedHeapRestrictions + { + DDSCAPSEX ddsCapsEx; + DDSCAPSEX ddsCapsExAlt; + } ddsExtendedHeapRestrictions[1]; +} DDMORESURFACECAPS, FAR * LPDDMORESURFACECAPS; + +// Stereo, driver returns DD_OK if mode is ok for stereo +typedef struct _DDSTEREOMODE +{ + DWORD dwSize; // size of DDSTEREOMODECAPS structure + + DWORD dwHeight; + DWORD dwWidth; + DWORD dwBpp; + DWORD dwRefreshRate; + + BOOL bSupported; // driver supports this video mode... + +} DDSTEREOMODE, FAR * LPDDSTEREOMODE; + + + + +/* + * DDRAW palette interface struct + */ +typedef struct _DDRAWI_DDRAWPALETTE_INT +{ + LPVOID lpVtbl; // pointer to array of interface methods + LPDDRAWI_DDRAWPALETTE_LCL lpLcl; // pointer to interface data + LPDDRAWI_DDRAWPALETTE_INT lpLink; // link to next interface + DWORD dwIntRefCnt; // interface reference count +} DDRAWI_DDRAWPALETTE_INT; + +/* + * DDRAW internal version of DIRECTDRAWPALETTE object; it has data after the vtable + */ +typedef struct _DDRAWI_DDRAWPALETTE_GBL +{ + DWORD dwRefCnt; // reference count + DWORD dwFlags; // flags + LPDDRAWI_DIRECTDRAW_LCL lpDD_lcl; // PRIVATE: DIRECTDRAW object + DWORD dwProcessId; // owning process + LPPALETTEENTRY lpColorTable; // array of palette entries + union + { + ULONG_PTR dwReserved1; // reserved for use by display driver which created this object + HPALETTE hHELGDIPalette; + }; + /* + * Fields added in version 5.0. Check if the ddraw version >= 5 (passed during + * driver initialization) to see if these fields will be present. + */ + DWORD dwDriverReserved; // For use by HAL, regardless of who created object + DWORD dwContentsStamp; // Incremented when palette changes. + /* + * Fields added in version 6 + */ + DWORD dwSaveStamp; // Incremented when palette changes. + /* + * And in version 7 + */ + DWORD dwHandle; //Handle used in drawprim2 palette notification + +} DDRAWI_DDRAWPALETTE_GBL; + + +/* + * (CMcC) The palette no longer maintains a back pointer to the owning surface + * (there may now be many owning surfaces). So the lpDDSurface is now dwReserved0 + * (this mod. assumes that sizeof(DWORD) == sizeof(LPDDRAWI_DDRAWSURFACE_LCL). A + * fairly safe assumption I think. + */ +typedef struct _DDRAWI_DDRAWPALETTE_LCL +{ + DWORD lpPalMore; // pointer to additional local data + LPDDRAWI_DDRAWPALETTE_GBL lpGbl; // pointer to data + ULONG_PTR dwUnused0; // not currently used. + DWORD dwLocalRefCnt; // local ref cnt + IUnknown FAR *pUnkOuter; // outer IUnknown + LPDDRAWI_DIRECTDRAW_LCL lpDD_lcl; // pointer to owning local driver object + ULONG_PTR dwReserved1; // reserved for use by display driver + /* + * Added for DX6 + */ + ULONG_PTR dwDDRAWReserved1; + ULONG_PTR dwDDRAWReserved2; + ULONG_PTR dwDDRAWReserved3; + +} DDRAWI_DDRAWPALETTE_LCL; + +// bit definition for dwFlags in DDRAWI_DDRAWPALETTE_GBL and +// dwPaletteFlags in D3DHAL_DP2SETPALETTE +#define DDRAWIPAL_256 0x00000001l // 256 entry palette +#define DDRAWIPAL_16 0x00000002l // 16 entry palette +#define DDRAWIPAL_GDI 0x00000004l // palette allocated through GDI +#define DDRAWIPAL_STORED_8 0x00000008l // palette stored as 8bpp/entry +#define DDRAWIPAL_STORED_16 0x00000010l // palette stored as 16bpp/entry +#define DDRAWIPAL_STORED_24 0x00000020l // palette stored as 24bpp/entry +#define DDRAWIPAL_EXCLUSIVE 0x00000040l // palette being used in exclusive mode +#define DDRAWIPAL_INHEL 0x00000080l // palette is done in the hel +#define DDRAWIPAL_DIRTY 0x00000100l // gdi palette out 'o sync +#define DDRAWIPAL_ALLOW256 0x00000200l // can fully update palette +#define DDRAWIPAL_4 0x00000400l // 4 entry palette +#define DDRAWIPAL_2 0x00000800l // 2 entry palette +#define DDRAWIPAL_STORED_8INDEX 0x00001000l // palette stored as 8-bit index into dst palette +#define DDRAWIPAL_ALPHA 0x00002000l // palette entries contain alpha + +/* + * DDRAW clipper interface struct + */ +typedef struct _DDRAWI_DDRAWCLIPPER_INT +{ + LPVOID lpVtbl; // pointer to array of interface methods + LPDDRAWI_DDRAWCLIPPER_LCL lpLcl; // pointer to interface data + LPDDRAWI_DDRAWCLIPPER_INT lpLink; // link to next interface + DWORD dwIntRefCnt; // interface reference count +} DDRAWI_DDRAWCLIPPER_INT; + +/* + * DDRAW internal version of DIRECTDRAWCLIPPER object; it has data after the vtable + */ +typedef struct _DDRAWI_DDRAWCLIPPER_GBL +{ + DWORD dwRefCnt; // reference count + DWORD dwFlags; // flags + LPDDRAWI_DIRECTDRAW_GBL lpDD; // PRIVATE: DIRECTDRAW object + DWORD dwProcessId; // owning process + ULONG_PTR dwReserved1; // reserved for use by display driver + ULONG_PTR hWnd; // window + LPRGNDATA lpStaticClipList; // clip list set by app +} DDRAWI_DDRAWCLIPPER_GBL; + +/* + * (CMcC) As with palettes, the clipper no longer maintains a back pointer to the + * owning surface (there may now be many owning surfaces). So the lpDDSurface + * is now dwReserved0 (this mod. assumes that sizeof(DWORD) == + * sizeof(LPDDRAWI_DDRAWSURFACE_LCL). A fairly safe assumption I think. + */ +typedef struct _DDRAWI_DDRAWCLIPPER_LCL +{ + DWORD lpClipMore; // pointer to additional local data + LPDDRAWI_DDRAWCLIPPER_GBL lpGbl; // pointer to data + LPDDRAWI_DIRECTDRAW_LCL lpDD_lcl; // pointer to owning local DD object + DWORD dwLocalRefCnt; // local ref cnt + IUnknown FAR *pUnkOuter; // outer IUnknown + LPDDRAWI_DIRECTDRAW_INT lpDD_int; // pointer to owning DD object interface + ULONG_PTR dwReserved1; // reserved for use by display driver + IUnknown * pAddrefedThisOwner; //This is the ddraw object that created this + //clipper, if nonzero. Must Release it when clipper + //is released. +} DDRAWI_DDRAWCLIPPER_LCL; + +#define DDRAWICLIP_WATCHWINDOW 0x00000001l +#define DDRAWICLIP_ISINITIALIZED 0x00000002l +#define DDRAWICLIP_INMASTERSPRITELIST 0x00000004l // clipper is referenced in master sprite list + +/* + * ATTACHLIST - internally used to maintain list of attached surfaces + */ +typedef struct _ATTACHLIST +{ + DWORD dwFlags; + struct _ATTACHLIST FAR *lpLink; // link to next attached surface + struct _DDRAWI_DDRAWSURFACE_LCL FAR *lpAttached; // attached surface local obj + struct _DDRAWI_DDRAWSURFACE_INT FAR *lpIAttached; // attached surface interface +} ATTACHLIST; +typedef ATTACHLIST FAR *LPATTACHLIST; +#define DDAL_IMPLICIT 0x00000001l + +/* + * DBLNODE - a node in a doubly-linked list of surface interfaces + */ +typedef struct _DBLNODE +{ + struct _DBLNODE FAR *next; // link to next node + struct _DBLNODE FAR *prev; // link to previous node + LPDDRAWI_DDRAWSURFACE_LCL object; // link to object + LPDDRAWI_DDRAWSURFACE_INT object_int; // object interface +} DBLNODE; +typedef DBLNODE FAR *LPDBLNODE; + +/* + * ACCESSRECTLIST - internally used to all rectangles that are accessed on a surface + */ +typedef struct _ACCESSRECTLIST +{ + struct _ACCESSRECTLIST FAR *lpLink; // link to next attached surface + RECT rDest; // rectangle being used + LPDDRAWI_DIRECTDRAW_LCL lpOwner; // owning local object + LPVOID lpSurfaceData; // associated screen ptr + DWORD dwFlags; // PRIVATE: flags + LPHEAPALIASINFO lpHeapAliasInfo; // PRIVATE: aliased heaps being used by this lock +} ACCESSRECTLIST; +typedef ACCESSRECTLIST FAR *LPACCESSRECTLIST; + +#define ACCESSRECT_VRAMSTYLE 0x00000001L // PRIVATE: this lock is vram style (vidmem or implict sysmem) +#define ACCESSRECT_NOTHOLDINGWIN16LOCK 0x00000002L // PRIVATE: this lock is not holding the Win16 lock +#define ACCESSRECT_BROKEN 0x00000004L // PRIVATE: this lock was broken by an invalidate - don't call HAL on unlock + +#ifndef WIN95 +/* + * Do not change the size of this struct. This will move various members of surface and ddraw + * structs and will prevent binaries from running on old win2k systems (or mismatched later NT builds) + */ +typedef struct _DISPLAYMODEINFO +{ + WORD wWidth; + WORD wHeight; + BYTE wBPP; + BYTE wMonitorsAttachedToDesktop; + WORD wRefreshRate; +} DISPLAYMODEINFO; +typedef struct _DISPLAYMODEINFO *LPDISPLAYMODEINFO; + +#define EQUAL_DISPLAYMODE(a, b) (0 == memcmp(&(a), &(b), sizeof (DISPLAYMODEINFO))) +#endif + + +/* + * DDRAW surface interface struct + */ +typedef struct _DDRAWI_DDRAWSURFACE_INT +{ + LPVOID lpVtbl; // pointer to array of interface methods + LPDDRAWI_DDRAWSURFACE_LCL lpLcl; // pointer to interface data + LPDDRAWI_DDRAWSURFACE_INT lpLink; // link to next interface + DWORD dwIntRefCnt; // interface reference count +} DDRAWI_DDRAWSURFACE_INT; + +/* + * DDRAW internal version of DIRECTDRAWSURFACE struct + * + * the GBL structure is global data for all duplicate objects + */ +typedef struct _DDRAWI_DDRAWSURFACE_GBL +{ + DWORD dwRefCnt; // reference count + DWORD dwGlobalFlags; // global flags + union + { + LPACCESSRECTLIST lpRectList; // list of accesses + DWORD dwBlockSizeY; // block size that display driver requested (return) + LONG lSlicePitch; // slice pitch for volume textures + }; + union + { + LPVMEMHEAP lpVidMemHeap; // heap vidmem was alloc'ed from + DWORD dwBlockSizeX; // block size that display driver requested (return) + }; + union + { + LPDDRAWI_DIRECTDRAW_GBL lpDD; // internal DIRECTDRAW object + LPVOID lpDDHandle; // handle to internal DIRECTDRAW object + // for use by display driver + // when calling fns in DDRAW16.DLL + }; + FLATPTR fpVidMem; // pointer to video memory + union + { + LONG lPitch; // pitch of surface + DWORD dwLinearSize; // linear size of non-rectangular surface + }; + WORD wHeight; // height of surface + WORD wWidth; // width of surface + DWORD dwUsageCount; // number of access to this surface + ULONG_PTR dwReserved1; // reserved for use by display driver + // + // NOTE: this part of the structure is ONLY allocated if the pixel + // format differs from that of the primary display + // + DDPIXELFORMAT ddpfSurface; // pixel format of surface +} DDRAWI_DDRAWSURFACE_GBL; + +/* + * This is an extender structure that is allocated off the end of the SURFACE_GBL + * structure. DO NOT place any structures whose size can change in here. + */ +#define GET_LPDDRAWSURFACE_GBL_MORE(psurf_gbl) \ + (*(LPDDRAWI_DDRAWSURFACE_GBL_MORE *) \ + ((BYTE *)psurf_gbl - sizeof(DWORD_PTR))) + +/* + * Return the physical memory pointer for a given surface global object. + * + * NOTE: The physical memory pointer is ONLY valid for surfaces allocated from + * non-local video memory. This field will not be valid for system memory or + * local video memory surfaces. + */ +#define SURFACE_PHYSICALVIDMEM( psurf_gbl ) \ + ( GET_LPDDRAWSURFACE_GBL_MORE( psurf_gbl )->fpPhysicalVidMem ) + +/* + * NOTE: This structure contains a set of fields for describing linear to physical + * page mappings in the case of page locked system memory. It can also contain the + * physical surface pointer of a surface in non-local memory. As there is no point + * in having both a linear to physical page translation table and a physical memory + * pointer for the same surface they are placed in a union. + */ +typedef struct _DDRAWI_DDRAWSURFACE_GBL_MORE +{ + DWORD dwSize; + union + { + DWORD dwPhysicalPageTable; // Physical address of page table (array of physical addresses/one per 4K page) + FLATPTR fpPhysicalVidMem; // Physical address of surface (non-local video memory only) + }; + LPDWORD pPageTable; // Linear address of page table + DWORD cPages; // Number of Pages + ULONG_PTR dwSavedDCContext; // PRIVATE: For use by DDSurface::GetDC + FLATPTR fpAliasedVidMem; // PRIVATE: Alias for original fpVidMem + ULONG_PTR dwDriverReserved; // Reserved for driver use (both system and video memory surfaces) + ULONG_PTR dwHELReserved; // PRIVATE: For HEL use only + DWORD cPageUnlocks; // Incremented whenever a surface is PageUnlocked + ULONG_PTR hKernelSurface; // Kernel handle for this surface + DWORD dwKernelRefCnt; // Ref count for kernel handle + LPDDCOLORCONTROL lpColorInfo; // PRIVATE: Initial color control settings + FLATPTR fpNTAlias; // PRIVATE: Used internally by NT DirectDraw + DWORD dwContentsStamp; // Changes when surface data may have changed. 0 means no information + LPVOID lpvUnswappedDriverReserved; // Reserved for use by display driver. Is not swapped when Flip is called on this surface + LPVOID lpDDRAWReserved2; + DWORD dwDDRAWReserved1; + DWORD dwDDRAWReserved2; + FLATPTR fpAliasOfVidMem; // PRIVATE: The original VidMem pointer of which fpAliasedVidMem is an alias of + // This is used to compare with a given fpVidMem to see if we can use the cached fpAliasedVidMem or + // if we need to call GetAliasedVidMem. +} DDRAWI_DDRAWSURFACE_GBL_MORE; + + + +/* + * a structure holding additional LCL surface information (can't simply be appended + * to the LCL structure as that structure is of variable size). + */ +typedef struct _DDRAWI_DDRAWSURFACE_MORE +{ + DWORD dwSize; + IUNKNOWN_LIST FAR *lpIUnknowns; // IUnknowns aggregated by this surface + LPDDRAWI_DIRECTDRAW_LCL lpDD_lcl; // Pointer to the DirectDraw local object + DWORD dwPageLockCount; // count of pagelocks + DWORD dwBytesAllocated; // size of sys mem allocated + LPDDRAWI_DIRECTDRAW_INT lpDD_int; // Pointer to the DirectDraw interface + DWORD dwMipMapCount; // Number of mip-map levels in the chain + LPDDRAWI_DDRAWCLIPPER_INT lpDDIClipper; // Interface to attached clipper object + //------- Fields added in Version 5.0 ------- + LPHEAPALIASINFO lpHeapAliasInfo; // PRIVATE: Aliased heaps being referenced by this lock + DWORD dwOverlayFlags; // Current overlay flags + VOID *rgjunc; // Blitter function table for new blitter + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port currently writting data to this surface + LPDDOVERLAYFX lpddOverlayFX; // current overlay fx + DDSCAPSEX ddsCapsEx; + DWORD dwTextureStage; // stage in multitexture cascade + LPVOID lpDDRAWReserved; + LPVOID lpDDRAWReserved2; + LPVOID lpDDrawReserved3; + DWORD dwDDrawReserved4; + LPVOID lpDDrawReserved5; + LPDWORD lpGammaRamp; + LPDWORD lpOriginalGammaRamp; + LPVOID lpDDrawReserved6; +#ifndef WIN95 + DISPLAYMODEINFO dmiDDrawReserved7; +#endif + DWORD dwSurfaceHandle; // cookie for use with CreateSurfaceEx DDI + DWORD qwDDrawReserved8[2]; + LPVOID lpDDrawReserved9; + DWORD cSurfaces; //PRIVATE + LPDDSURFACEDESC2 pCreatedDDSurfaceDesc2; //PRIVATE + LPDDRAWI_DDRAWSURFACE_LCL *slist; //PRIVATE + DWORD dwFVF; // saved FVF flags for exe bufs + LPVOID lpVB; //PRIVATE +} DDRAWI_DDRAWSURFACE_MORE; + +/* + * Special values assigned to dwPFIndex member of DDRAWI_DDRAWSURFACE_MORE. + */ +#define PFINDEX_UNINITIALIZED (0UL) // pixel-format index is in uninitialized state +#define PFINDEX_UNSUPPORTED (~0UL) // surface's pixel format is not supported by HEL + +/* + * the LCL structure is local data for each individual surface object + */ +struct _DDRAWI_DDRAWSURFACE_LCL +{ + LPDDRAWI_DDRAWSURFACE_MORE lpSurfMore; // pointer to additional local data + LPDDRAWI_DDRAWSURFACE_GBL lpGbl; // pointer to surface shared data + ULONG_PTR hDDSurface; // NT Kernel-mode handle was dwUnused0 + LPATTACHLIST lpAttachList; // link to surfaces we attached to + LPATTACHLIST lpAttachListFrom;// link to surfaces that attached to this one + DWORD dwLocalRefCnt; // object refcnt + DWORD dwProcessId; // owning process + DWORD dwFlags; // flags + DDSCAPS ddsCaps; // capabilities of surface + union + { + LPDDRAWI_DDRAWPALETTE_INT lpDDPalette; // associated palette + LPDDRAWI_DDRAWPALETTE_INT lp16DDPalette; // 16-bit ptr to associated palette + }; + union + { + LPDDRAWI_DDRAWCLIPPER_LCL lpDDClipper; // associated clipper + LPDDRAWI_DDRAWCLIPPER_INT lp16DDClipper; // 16-bit ptr to associated clipper + }; + DWORD dwModeCreatedIn; + DWORD dwBackBufferCount; // number of back buffers created + DDCOLORKEY ddckCKDestBlt; // color key for destination blt use + DDCOLORKEY ddckCKSrcBlt; // color key for source blt use +// IUnknown FAR *pUnkOuter; // outer IUnknown + ULONG_PTR hDC; // owned dc + ULONG_PTR dwReserved1; // reserved for use by display driver + + /* + * NOTE: this part of the structure is ONLY allocated if the surface + * can be used for overlays. ddckCKSrcOverlay MUST NOT BE MOVED + * from the start of this area. + */ + DDCOLORKEY ddckCKSrcOverlay;// color key for source overlay use + DDCOLORKEY ddckCKDestOverlay;// color key for destination overlay use + LPDDRAWI_DDRAWSURFACE_INT lpSurfaceOverlaying; // surface we are overlaying + DBLNODE dbnOverlayNode; + /* + * overlay rectangle, used by DDHEL + */ + RECT rcOverlaySrc; + RECT rcOverlayDest; + /* + * the below values are kept here for ddhel. they're set by UpdateOverlay, + * they're used whenever the overlays are redrawn. + */ + DWORD dwClrXparent; // the *actual* color key (override, colorkey, or CLR_INVALID) + DWORD dwAlpha; // the per surface alpha + /* + * overlay position + */ + LONG lOverlayX; // current x position + LONG lOverlayY; // current y position +}; +typedef struct _DDRAWI_DDRAWSURFACE_LCL DDRAWI_DDRAWSURFACE_LCL; + +#define DDRAWISURFGBL_MEMFREE 0x00000001L // video memory has been freed +#define DDRAWISURFGBL_SYSMEMREQUESTED 0x00000002L // surface is in system memory at request of user +#define DDRAWISURFGBL_ISGDISURFACE 0x00000004L // This surface represents what GDI thinks is front buffer +#define DDRAWISURFGBL_SOFTWAREAUTOFLIP 0x00000008L // This surface is autoflipped using software +#define DDRAWISURFGBL_LOCKNOTHOLDINGWIN16LOCK 0x00000010L // PRIVATE: a vram lock of the entire surface is not holding the Win16 lock +#define DDRAWISURFGBL_LOCKVRAMSTYLE 0x00000020L // PRIVATE: entire surface was locked with VRAM style lock +#define DDRAWISURFGBL_LOCKBROKEN 0x00000040L // PRIVATE: a lock of the entire surface was broken by an invalidate +#define DDRAWISURFGBL_IMPLICITHANDLE 0x00000080L // This dwKernelHandle was created implicitly +#define DDRAWISURFGBL_ISCLIENTMEM 0x00000100L // PRIVATE: the memory pointer to by fpVidMem was allocated by the client +#define DDRAWISURFGBL_HARDWAREOPSOURCE 0x00000200L // This surface was the source for an asynchronous hardware operation +#define DDRAWISURFGBL_HARDWAREOPDEST 0x00000400L // This surface was dest for an asynchronous hardware operation +#define DDRAWISURFGBL_HARDWAREOPSTARTED (DDRAWISURFGBL_HARDWAREOPSOURCE|DDRAWISURFGBL_HARDWAREOPDEST) +#define DDRAWISURFGBL_VPORTINTERLEAVED 0x00000800L // This surface contains interleaved video port data +#define DDRAWISURFGBL_VPORTDATA 0x00001000L // This surface received data from the video port +#define DDRAWISURFGBL_LATEALLOCATELINEAR 0x00002000L // Optimized surface was allocated as a formless chunk. lPitch invalid, dwLinearSize valid. +#define DDRAWISURFGBL_SYSMEMEXECUTEBUFFER 0x00004000L // Driver sets this flag to tell ddraw that the surface was allocated in system memory +#define DDRAWISURFGBL_FASTLOCKHELD 0x00008000L // PRIVATE: indicates that InternLock took the fast path +#define DDRAWISURFGBL_READONLYLOCKHELD 0x00010000L // PRIVATE: indicates that the application indicated read-only lock +#define DDRAWISURFGBL_DX8SURFACE 0x00080000L // PRIVATE: indicates that the surace was created using DX8 +#define DDRAWISURFGBL_DDHELDONTFREE 0x00100000L // PRIVATE: indicates that the surace memory should not be freed by the HEL +#define DDRAWISURFGBL_NOTIFYWHENUNLOCKED 0x00200000L // PRIVATE: indicates that the this surface help a NOSYSLOCK lock when a mode change occured + + +/* + * NOTE: This flag was previously DDRAWISURFGBL_INVALID. This flags has been retired + * and replaced by DDRAWISURF_INVALID in the local object. + */ +#define DDRAWISURFGBL_RESERVED0 0x80000000L // Reserved flag + +#define DDRAWISURF_ATTACHED 0x00000001L // surface is attached to another +#define DDRAWISURF_IMPLICITCREATE 0x00000002L // surface implicitly created +#define DDRAWISURF_ISFREE 0x00000004L // surface already freed (temp flag) +#define DDRAWISURF_ATTACHED_FROM 0x00000008L // surface has others attached to it +#define DDRAWISURF_IMPLICITROOT 0x00000010L // surface root of implicit creation +#define DDRAWISURF_PARTOFPRIMARYCHAIN 0x00000020L // surface is part of primary chain +#define DDRAWISURF_DATAISALIASED 0x00000040L // used for thunking +#define DDRAWISURF_HASDC 0x00000080L // has a DC +#define DDRAWISURF_HASCKEYDESTOVERLAY 0x00000100L // surface has CKDestOverlay +#define DDRAWISURF_HASCKEYDESTBLT 0x00000200L // surface has CKDestBlt +#define DDRAWISURF_HASCKEYSRCOVERLAY 0x00000400L // surface has CKSrcOverlay +#define DDRAWISURF_HASCKEYSRCBLT 0x00000800L // surface has CKSrcBlt +#define DDRAWISURF_LOCKEXCLUDEDCURSOR 0x00001000L // surface was locked and excluded cursor +#define DDRAWISURF_HASPIXELFORMAT 0x00002000L // surface structure has pixel format data +#define DDRAWISURF_HASOVERLAYDATA 0x00004000L // surface structure has overlay data +#define DDRAWISURF_SETGAMMA 0x00008000L // gamma ramp for this surface is active +#define DDRAWISURF_SW_CKEYDESTOVERLAY 0x00010000L // surface expects to process colorkey in software +#define DDRAWISURF_SW_CKEYDESTBLT 0x00020000L // surface expects to process colorkey in software +#define DDRAWISURF_SW_CKEYSRCOVERLAY 0x00040000L // surface expects to process colorkey in software +#define DDRAWISURF_SW_CKEYSRCBLT 0x00080000L // surface expects to process colorkey in software +#define DDRAWISURF_HW_CKEYDESTOVERLAY 0x00100000L // surface expects to process colorkey in hardware +#define DDRAWISURF_HW_CKEYDESTBLT 0x00200000L // surface expects to process colorkey in hardware +#define DDRAWISURF_HW_CKEYSRCOVERLAY 0x00400000L // surface expects to process colorkey in hardware +#define DDRAWISURF_HW_CKEYSRCBLT 0x00800000L // surface expects to process colorkey in hardware +#define DDRAWISURF_INMASTERSPRITELIST 0x01000000l // surface is referenced in master sprite list +#define DDRAWISURF_HELCB 0x02000000L // surface is the ddhel cb. must call hel for lock/blt. +#define DDRAWISURF_FRONTBUFFER 0x04000000L // surface was originally a front buffer +#define DDRAWISURF_BACKBUFFER 0x08000000L // surface was originally backbuffer +#define DDRAWISURF_INVALID 0x10000000L // surface has been invalidated by mode set +#define DDRAWISURF_DCIBUSY 0x20000000L // HEL has turned off BUSY so DCI would work +#define DDRAWISURF_GETDCNULL 0x40000000L // getdc could not lock and so returned GetDC(NULL) + +//#define DDRAWISURF_CANTLOCK 0x20000000L // surface cannot be locked (primary created by HEL) +#define DDRAWISURF_STEREOSURFACELEFT 0x20000000L // surface is left of stereo pair +#define DDRAWISURF_DRIVERMANAGED 0x40000000L // Surface is a driver managed texture (D3D) +#define DDRAWISURF_DCILOCK 0x80000000L // Surface was locked using DCIBeginAccess + +/* + * rop stuff + */ +#define ROP_HAS_SOURCE 0x00000001l +#define ROP_HAS_PATTERN 0x00000002l +#define ROP_HAS_SOURCEPATTERN ROP_HAS_SOURCE | ROP_HAS_PATTERN + +/* + * mode information + */ +typedef struct _DDHALMODEINFO +{ + DWORD dwWidth; // width (in pixels) of mode + DWORD dwHeight; // height (in pixels) of mode + LONG lPitch; // pitch (in bytes) of mode + DWORD dwBPP; // bits per pixel + WORD wFlags; // flags + WORD wRefreshRate; // refresh rate + DWORD dwRBitMask; // red bit mask + DWORD dwGBitMask; // green bit mask + DWORD dwBBitMask; // blue bit mask + DWORD dwAlphaBitMask; // alpha bit mask +} DDHALMODEINFO; +typedef DDHALMODEINFO FAR *LPDDHALMODEINFO; + +#define DDMODEINFO_PALETTIZED 0x0001 // mode is palettized +#define DDMODEINFO_MODEX 0x0002 // mode is a modex mode +#define DDMODEINFO_UNSUPPORTED 0x0004 // mode is not supported by driver + +/* + * Note internally, standard VGA modes are tagged as MODEX and STANDARDVGA + */ +#define DDMODEINFO_STANDARDVGA 0x0008 // mode is standard vga, e.g. mode 0x13 + +#define DDMODEINFO_MAXREFRESH 0x0010 // refresh rate specified is the max supported +#define DDMODEINFO_STEREO 0x0020 // mode can be switched to stereo + + +/* + * DDRAW interface struct + */ +typedef struct _DDRAWI_DIRECTDRAW_INT +{ + LPVOID lpVtbl; // pointer to array of interface methods + LPDDRAWI_DIRECTDRAW_LCL lpLcl; // pointer to interface data + LPDDRAWI_DIRECTDRAW_INT lpLink; // link to next interface + DWORD dwIntRefCnt; // interface reference count +} DDRAWI_DIRECTDRAW_INT; + +/* + * DDRAW version of DirectDraw object; it has data after the vtable + * + * all entries marked as PRIVATE are not for use by the display driver + */ +typedef struct _DDHAL_CALLBACKS +{ + DDHAL_DDCALLBACKS cbDDCallbacks; // addresses in display driver for DIRECTDRAW object HAL + DDHAL_DDSURFACECALLBACKS cbDDSurfaceCallbacks; // addresses in display driver for DIRECTDRAWSURFACE object HAL + DDHAL_DDPALETTECALLBACKS cbDDPaletteCallbacks; // addresses in display driver for DIRECTDRAWPALETTE object HAL + DDHAL_DDCALLBACKS HALDD; // HAL for DIRECTDRAW object + DDHAL_DDSURFACECALLBACKS HALDDSurface; // HAL for DIRECTDRAWSURFACE object + DDHAL_DDPALETTECALLBACKS HALDDPalette; // HAL for DIRECTDRAWPALETTE object + DDHAL_DDCALLBACKS HELDD; // HEL for DIRECTDRAW object + DDHAL_DDSURFACECALLBACKS HELDDSurface; // HEL for DIRECTDRAWSURFACE object + DDHAL_DDPALETTECALLBACKS HELDDPalette; // HEL for DIRECTDRAWPALETTE object + DDHAL_DDEXEBUFCALLBACKS cbDDExeBufCallbacks; // addresses in display driver for DIRECTDRAWEXEBUF pseudo object HAL + DDHAL_DDEXEBUFCALLBACKS HALDDExeBuf; // HAL for DIRECTDRAWEXEBUF pseudo object + DDHAL_DDEXEBUFCALLBACKS HELDDExeBuf; // HEL for DIRECTDRAWEXEBUF preudo object + DDHAL_DDVIDEOPORTCALLBACKS cbDDVideoPortCallbacks; // addresses in display driver for VideoPort object HAL + DDHAL_DDVIDEOPORTCALLBACKS HALDDVideoPort; // HAL for DIRECTDRAWVIDEOPORT psuedo object + DDHAL_DDCOLORCONTROLCALLBACKS cbDDColorControlCallbacks; // addresses in display driver for color control object HAL + DDHAL_DDCOLORCONTROLCALLBACKS HALDDColorControl; // HAL for DIRECTDRAWCOLORCONTROL psuedo object + DDHAL_DDMISCELLANEOUSCALLBACKS cbDDMiscellaneousCallbacks; + DDHAL_DDMISCELLANEOUSCALLBACKS HALDDMiscellaneous; + DDHAL_DDKERNELCALLBACKS cbDDKernelCallbacks; + DDHAL_DDKERNELCALLBACKS HALDDKernel; + DDHAL_DDMOTIONCOMPCALLBACKS cbDDMotionCompCallbacks; + DDHAL_DDMOTIONCOMPCALLBACKS HALDDMotionComp; + } DDHAL_CALLBACKS, far *LPDDHAL_CALLBACKS; + + +/* + * This structure mirrors the first entries of the DDCAPS but is of a fixed + * size and will not grow as DDCAPS grows. This is the structure your driver + * returns in DDCOREINFO. Additional caps will be requested via a GetDriverInfo + * call. + */ +typedef struct _DDCORECAPS +{ + DWORD dwSize; // size of the DDDRIVERCAPS structure + DWORD dwCaps; // driver specific capabilities + DWORD dwCaps2; // more driver specific capabilites + DWORD dwCKeyCaps; // color key capabilities of the surface + DWORD dwFXCaps; // driver specific stretching and effects capabilites + DWORD dwFXAlphaCaps; // alpha driver specific capabilities + DWORD dwPalCaps; // palette capabilities + DWORD dwSVCaps; // stereo vision capabilities + DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 + DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 + DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 + DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 + DWORD dwVidMemTotal; // total amount of video memory + DWORD dwVidMemFree; // amount of free video memory + DWORD dwMaxVisibleOverlays; // maximum number of visible overlays + DWORD dwCurrVisibleOverlays; // current number of visible overlays + DWORD dwNumFourCCCodes; // number of four cc codes + DWORD dwAlignBoundarySrc; // source rectangle alignment + DWORD dwAlignSizeSrc; // source rectangle byte size + DWORD dwAlignBoundaryDest; // dest rectangle alignment + DWORD dwAlignSizeDest; // dest rectangle byte size + DWORD dwAlignStrideAlign; // stride alignment + DWORD dwRops[DD_ROP_SPACE]; // ROPS supported + DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities + DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwReserved1; // reserved + DWORD dwReserved2; // reserved + DWORD dwReserved3; // reserved + DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts + DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts + DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts + DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts + DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts + DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts + DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts + DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts + DWORD dwSSBCaps; // driver specific capabilities for System->System blts + DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts + DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts + DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts + DWORD dwMaxVideoPorts; // maximum number of usable video ports + DWORD dwCurrVideoPorts; // current number of video ports used + DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts +} DDCORECAPS; + +typedef DDCORECAPS FAR* LPDDCORECAPS; + +typedef struct _DDRAWI_DIRECTDRAW_GBL +{ +/* 0*/ DWORD dwRefCnt; // reference count +/* 4*/ DWORD dwFlags; // flags +/* 8*/ FLATPTR fpPrimaryOrig; // primary surf vid mem. ptr +/* c*/ DDCORECAPS ddCaps; // driver caps +/*148*/ DWORD dwInternal1; // Private to ddraw.dll +/*16c*/ DWORD dwUnused1[9]; // not currently used +/*170*/ LPDDHAL_CALLBACKS lpDDCBtmp; // HAL callbacks +/*174*/ LPDDRAWI_DDRAWSURFACE_INT dsList; // PRIVATE: list of all surfaces +/*178*/ LPDDRAWI_DDRAWPALETTE_INT palList; // PRIVATE: list of all palettes +/*17c*/ LPDDRAWI_DDRAWCLIPPER_INT clipperList; // PRIVATE: list of all clippers +/*180*/ LPDDRAWI_DIRECTDRAW_GBL lp16DD; // PRIVATE: 16-bit ptr to this struct +/*184*/ DWORD dwMaxOverlays; // maximum number of overlays +/*188*/ DWORD dwCurrOverlays; // current number of visible overlays +/*18c*/ DWORD dwMonitorFrequency; // monitor frequency in current mode +/*190*/ DDCORECAPS ddHELCaps; // HEL capabilities +/*2cc*/ DWORD dwUnused2[50]; // not currently used +/*394*/ DDCOLORKEY ddckCKDestOverlay; // color key for destination overlay use +/*39c*/ DDCOLORKEY ddckCKSrcOverlay; // color key for source overlay use +/*3a4*/ VIDMEMINFO vmiData; // info about vid memory +/*3f4*/ LPVOID lpDriverHandle; // handle for use by display driver +/* */ // to call fns in DDRAW16.DLL +/*3f8*/ LPDDRAWI_DIRECTDRAW_LCL lpExclusiveOwner; // PRIVATE: exclusive local object +/*3fc*/ DWORD dwModeIndex; // current mode index +/*400*/ DWORD dwModeIndexOrig; // original mode index +/*404*/ DWORD dwNumFourCC; // number of fourcc codes supported +/*408*/ DWORD FAR *lpdwFourCC; // PRIVATE: fourcc codes supported +/*40c*/ DWORD dwNumModes; // number of modes supported +/*410*/ LPDDHALMODEINFO lpModeInfo; // PRIVATE: mode information +/*424*/ PROCESS_LIST plProcessList; // PRIVATE: list of processes using driver +/*428*/ DWORD dwSurfaceLockCount; // total number of outstanding locks +/*42c*/ DWORD dwAliasedLockCnt; // PRIVATE: number of outstanding aliased locks +/*430*/ ULONG_PTR dwReserved3; // reserved for use by display driver +/*434*/ ULONG_PTR hDD; // PRIVATE: NT Kernel-mode handle (was dwFree3). +/*438*/ char cObsolete[12]; // Obsolete field, do not use +/*444*/ DWORD dwReserved1; // reserved for use by display driver +/*448*/ DWORD dwReserved2; // reserved for use by display driver +/*44c*/ DBLNODE dbnOverlayRoot; // The root node of the doubly- +/* */ // linked list of overlay z orders. +/*45c*/ volatile LPWORD lpwPDeviceFlags; // driver physical device flags +/*460*/ DWORD dwPDevice; // driver physical device (16:16 pointer) +/*464*/ DWORD dwWin16LockCnt; // count on win16 holds +/*468*/ DWORD dwUnused3; // was lpWin16LockOwner +/*46c*/ DWORD hInstance; // instance handle of driver +/*470*/ DWORD dwEvent16; // 16-bit event +/*474*/ DWORD dwSaveNumModes; // saved number of modes supported +/* */ //------- Fields added in Version 2.0 ------- +/*478*/ ULONG_PTR lpD3DGlobalDriverData; // Global D3D Data +/*47c*/ ULONG_PTR lpD3DHALCallbacks; // D3D HAL Callbacks +/*480*/ DDCORECAPS ddBothCaps; // logical AND of driver and HEL caps +/* */ //------- Fields added in Version 5.0 ------- +/*5bc*/ LPDDVIDEOPORTCAPS lpDDVideoPortCaps;// Info returned by the HAL (an array if more than one video port) +/*5c0*/ LPDDRAWI_DDVIDEOPORT_INT dvpList; // PRIVATE: list of all video ports +/*5c4*/ ULONG_PTR lpD3DHALCallbacks2; // Post-DX3 D3D HAL callbacks +/*5c8*/ RECT rectDevice; // rectangle (in desktop coord) for device +/*5d8*/ DWORD cMonitors; // number of monitors in the system +/*5dc*/ LPVOID gpbmiSrc; // PRIVATE: used by HEL +/*5e0*/ LPVOID gpbmiDest; // PRIVATE: used by HEL +/*5e4*/ LPHEAPALIASINFO phaiHeapAliases; // PRIVATE: video memory heap aliases +/*5e8*/ ULONG_PTR hKernelHandle; +/*5ec*/ ULONG_PTR pfnNotifyProc; // Notification proc registered w/ VDD +/*5f0*/ LPDDKERNELCAPS lpDDKernelCaps; // Capabilies of kernel mode interface +/*5f4*/ LPDDNONLOCALVIDMEMCAPS lpddNLVCaps; // hardware non-local to local vidmem caps +/*5f8*/ LPDDNONLOCALVIDMEMCAPS lpddNLVHELCaps; // emulation layer non-local to local vidmem caps +/*5fc*/ LPDDNONLOCALVIDMEMCAPS lpddNLVBothCaps; // logical AND of hardware and emulation non-local to local vidmem caps +/*600*/ ULONG_PTR lpD3DExtendedCaps; // extended caps for D3D +/* */ //--------Fields added in Version 5.0A +/*604*/ DWORD dwDOSBoxEvent; // Event set when returning from a DOS box +/*608*/ RECT rectDesktop; // Desktop coordinates +/*618*/ char cDriverName[MAX_DRIVER_NAME]; // Display name +/* */ //------- Fields added in Version 6.0 ------- +/*638*/ ULONG_PTR lpD3DHALCallbacks3; // DX6 D3D callbacks +/*63c*/ DWORD dwNumZPixelFormats; // Number of z-buffer+stencil pixel formats +/*640*/ LPDDPIXELFORMAT lpZPixelFormats; // Pointer to array of z-buffer pixel formats +/*644*/ LPDDRAWI_DDMOTIONCOMP_INT mcList; // PRIVATE: list of all motion comp objects +/*648*/ DWORD hDDVxd; // handle to ddraw.vxd +/*64c*/ DDSCAPSEX ddsCapsMore; // as queried via GUID_DDMoreSurfaceCaps +} DDRAWI_DIRECTDRAW_GBL; + + +typedef struct _DDRAWI_DIRECTDRAW_LCL +{ + DWORD lpDDMore; // pointer to additional local data + LPDDRAWI_DIRECTDRAW_GBL lpGbl; // pointer to data + DWORD dwUnused0; // not currently used + DWORD dwLocalFlags; // local flags (DDRAWILCL_) + DWORD dwLocalRefCnt; // local ref cnt + DWORD dwProcessId; // owning process id + IUnknown FAR *pUnkOuter; // outer IUnknown + DWORD dwObsolete1; + ULONG_PTR hWnd; + ULONG_PTR hDC; + DWORD dwErrorMode; + LPDDRAWI_DDRAWSURFACE_INT lpPrimary; + LPDDRAWI_DDRAWSURFACE_INT lpCB; + DWORD dwPreferredMode; + //------- Fields added in Version 2.0 ------- + HINSTANCE hD3DInstance; // Handle of Direct3D's DLL. + IUnknown FAR *pD3DIUnknown; // Direct3D's aggregated IUnknown. + LPDDHAL_CALLBACKS lpDDCB; // HAL callbacks + ULONG_PTR hDDVxd; // handle to ddraw.vxd + //------- Fields added in Version 5.0 ------- + DWORD dwAppHackFlags; // app compatibilty flags + //------- Fields added in Version 5.A ------- + ULONG_PTR hFocusWnd; // Focus window set via SetCoopLevel + DWORD dwHotTracking; // Reactive menu etc setting cached while fullscreen + DWORD dwIMEState; // IME toolbar setting cached while fullscreen + //------- Fields added in Version 6.0 ------- + ULONG_PTR hWndPopup; + ULONG_PTR hDD; // PRIVATE: NT Kernel-mode handle + ULONG_PTR hGammaCalibrator; // Private + LPDDGAMMACALIBRATORPROC lpGammaCalibrator; // Private +} DDRAWI_DIRECTDRAW_LCL; + +#define DDRAWILCL_HASEXCLUSIVEMODE 0x00000001l +#define DDRAWILCL_ISFULLSCREEN 0x00000002l +#define DDRAWILCL_SETCOOPCALLED 0x00000004l +#define DDRAWILCL_ACTIVEYES 0x00000008l +#define DDRAWILCL_ACTIVENO 0x00000010l +#define DDRAWILCL_HOOKEDHWND 0x00000020l +#define DDRAWILCL_ALLOWMODEX 0x00000040l +#define DDRAWILCL_V1SCLBEHAVIOUR 0x00000080l +#define DDRAWILCL_MODEHASBEENCHANGED 0x00000100l +#define DDRAWILCL_CREATEDWINDOW 0x00000200l +#define DDRAWILCL_DIRTYDC 0x00000400l // Set on ChangeDisplaySettings, cleared when device DC is reinited +#define DDRAWILCL_DISABLEINACTIVATE 0x00000800l +#define DDRAWILCL_CURSORCLIPPED 0x00001000l +#define DDRAWILCL_EXPLICITMONITOR 0x00002000l // device was chosen explicitly i.e. not DDrawCreate(NULL) +#define DDRAWILCL_MULTITHREADED 0x00004000l // App threaten to be multithreaded +#define DDRAWILCL_FPUSETUP 0x00008000l // D3D does not need to switch to single prec/exceptions disabled each time +#define DDRAWILCL_POWEREDDOWN 0x00010000l // Private: indicates that screen saver is powered down +#define DDRAWILCL_DIRECTDRAW7 0x00020000l // PRIVATE: Marks if this is a IDirectDraw7 object +#define DDRAWILCL_ATTEMPTEDD3DCONTEXT 0x00040000l // PRIVATE: Marks if this ddraw local has attempted to create a d3d context +#define DDRAWILCL_FPUPRESERVE 0x00080000l // D3D needs to switch to single prec/exceptions disabled each time +#define DDRAWILCL_DX8DRIVER 0x00100000l // PRIVATE: Set if this drvier can handle lightweight surfaces +#define DDRAWILCL_DIRECTDRAW8 0x00200000l // PRIVATE: Marks if this is a IDirectDraw8 object + +#define DDRAWI_xxxxxxxxx1 0x00000001l // unused +#define DDRAWI_xxxxxxxxx2 0x00000002l // unused +#define DDRAWI_VIRTUALDESKTOP 0x00000008l // driver is really a multi-monitor virtual desktop +#define DDRAWI_MODEX 0x00000010l // driver is using modex +#define DDRAWI_DISPLAYDRV 0x00000020l // driver is display driver +#define DDRAWI_FULLSCREEN 0x00000040l // driver in fullscreen mode +#define DDRAWI_MODECHANGED 0x00000080l // display mode has been changed +#define DDRAWI_NOHARDWARE 0x00000100l // no driver hardware at all +#define DDRAWI_PALETTEINIT 0x00000200l // GDI palette stuff has been initalized +#define DDRAWI_NOEMULATION 0x00000400l // no emulation at all +#define DDRAWI_HASCKEYDESTOVERLAY 0x00000800l // driver has CKDestOverlay +#define DDRAWI_HASCKEYSRCOVERLAY 0x00001000l // driver has CKSrcOverlay +#define DDRAWI_HASGDIPALETTE 0x00002000l // GDI palette exists on primary surface +#define DDRAWI_EMULATIONINITIALIZED 0x00004000l // emulation is initialized +#define DDRAWI_HASGDIPALETTE_EXCLUSIVE 0x00008000l // exclusive mode palette +#define DDRAWI_MODEXILLEGAL 0x00010000l // modex is not supported by this hardware +#define DDRAWI_FLIPPEDTOGDI 0x00020000l // driver has been flipped to show GDI surface +#define DDRAWI_NEEDSWIN16FORVRAMLOCK 0x00040000l // PRIVATE: Win16 lock must be taken when locking a VRAM surface +#define DDRAWI_PDEVICEVRAMBITCLEARED 0x00080000l // PRIVATE: the PDEVICE's VRAM bit was cleared by a lock +#define DDRAWI_STANDARDVGA 0x00100000l // Device is using standard VGA mode (DDRAWI_MODEX will be set) +#define DDRAWI_EXTENDEDALIGNMENT 0x00200000l // At least one heap has extended alignment. Ignore alignment in VIDMEMINFO +#define DDRAWI_CHANGINGMODE 0x00400000l // Currently in the middle of a mode change +#define DDRAWI_GDIDRV 0x00800000l // Driver is a GDI driver +#define DDRAWI_ATTACHEDTODESKTOP 0x01000000l // Device is attached to the desktop +#define DDRAWI_UMODELOADED 0x02000000l // User mode driver dll is loaded +#define DDRAWI_DDRAWDATANOTFETCHED 0x04000000l // PRIVATE: Marks mode-change data fetched (NT) +#define DDRAWI_SECONDARYDRIVERLOADED 0x08000000l // PRIVATE: Marks if a secndary PVR-style HAL was loaded +#define DDRAWI_TESTINGMODES 0x10000000l // PRIVATE: A mode test in is progress +#define DDRAWI_DRIVERINFO2 0x20000000l // PRIVATE: Driver supports GetDriverInfo2 +#define DDRAWI_BADPDEV 0x40000000l // PRIVATE: Indiactes that we should not re-use this PDEV + + +/* + * VideoPort object interface + */ +typedef struct _DDRAWI_DDVIDEOPORT_INT +{ + LPVOID lpVtbl; // pointer to array of interface methods + LPDDRAWI_DDVIDEOPORT_LCL lpLcl; // pointer to interface data + LPDDRAWI_DDVIDEOPORT_INT lpLink; // link to next interface + DWORD dwIntRefCnt; // interface reference count + DWORD dwFlags; // Private +} DDRAWI_DDVIDEOPORT_INT; + +typedef struct _DDRAWI_DDVIDEOPORT_LCL +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // pointer to DIRECTDRAW_LCL + DDVIDEOPORTDESC ddvpDesc; // description used at create time + DDVIDEOPORTINFO ddvpInfo; // most recent video port info + LPDDRAWI_DDRAWSURFACE_INT lpSurface; // surface receiving the data + LPDDRAWI_DDRAWSURFACE_INT lpVBISurface; // surface receiving the VBI data + LPDDRAWI_DDRAWSURFACE_INT *lpFlipInts; // PRIVATE: surfaces currently being autoflipped + DWORD dwNumAutoflip; // Number of current autoflip surfaces + DWORD dwProcessID; // ID of process owning this video port + DWORD dwStateFlags; + DWORD dwFlags; + DWORD dwRefCnt; + FLATPTR fpLastFlip; // Location from which we last flipped + ULONG_PTR dwReserved1; // Reserved for display driver + ULONG_PTR dwReserved2; // Reserved for display driver + HANDLE hDDVideoPort; // NT Kernel-mode handle + DWORD dwNumVBIAutoflip;//Number of VBI surfaces currently being autoflipped + LPDDVIDEOPORTDESC lpVBIDesc; // PRIVATE + LPDDVIDEOPORTDESC lpVideoDesc; // PRIVATE + LPDDVIDEOPORTINFO lpVBIInfo; // PRIVATE + LPDDVIDEOPORTINFO lpVideoInfo; // PRIVATE + DWORD dwVBIProcessID; // ID of process owning this video port + LPDDRAWI_DDVIDEOPORT_INT lpVPNotify; +} DDRAWI_DDVIDEOPORT_LCL; + +#define DDRAWIVPORT_ON 0x00000001 // Video port is pumping data +#define DDRAWIVPORT_SOFTWARE_AUTOFLIP 0x00000002 // Video port cannot use hardware autoflip +#define DDRAWIVPORT_COLORKEYANDINTERP 0x00000004 // Overlay cannot bob and colorkey at same time +#define DDRAWIVPORT_NOKERNELHANDLES 0x00000008 // Unable to allocate kernel resources +#define DDRAWIVPORT_SOFTWARE_BOB 0x00000010 // All bobbing must be performed in software +#define DDRAWIVPORT_VBION 0x00000020 // Video is on for the VBI region +#define DDRAWIVPORT_VIDEOON 0x00000040 // Video is on for the video region + +/* + * MotionComp object interface + */ +typedef struct _DDRAWI_DDMOTIONCOMP_INT +{ + LPVOID lpVtbl; + LPDDRAWI_DDMOTIONCOMP_LCL lpLcl; + LPDDRAWI_DDMOTIONCOMP_INT lpLink; + DWORD dwIntRefCnt; +} DDRAWI_DDMOTIONCOMP_INT; + +typedef struct _DDRAWI_DDMOTIONCOMP_LCL +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + GUID guid; + DWORD dwUncompWidth; + DWORD dwUncompHeight; + DDPIXELFORMAT ddUncompPixelFormat; + DWORD dwInternalFlags; + DWORD dwRefCnt; + DWORD dwProcessId; + HANDLE hMoComp; + DWORD dwDriverReserved1; + DWORD dwDriverReserved2; + DWORD dwDriverReserved3; + LPVOID lpDriverReserved1; + LPVOID lpDriverReserved2; + LPVOID lpDriverReserved3; +} DDRAWI_DDMOTIONCOMP_LCL; + + +/* + * structure for display driver to call DDHAL_Create with + */ +typedef struct _DDHALINFO +{ + DWORD dwSize; + LPDDHAL_DDCALLBACKS lpDDCallbacks; // direct draw object callbacks + LPDDHAL_DDSURFACECALLBACKS lpDDSurfaceCallbacks; // surface object callbacks + LPDDHAL_DDPALETTECALLBACKS lpDDPaletteCallbacks; // palette object callbacks + VIDMEMINFO vmiData; // video memory info + DDCORECAPS ddCaps; // core hw specific caps + DWORD dwMonitorFrequency; // monitor frequency in current mode + LPDDHAL_GETDRIVERINFO GetDriverInfo; // callback to get arbitrary vtable from driver + DWORD dwModeIndex; // current mode: index into array + LPDWORD lpdwFourCC; // fourcc codes supported + DWORD dwNumModes; // number of modes supported + LPDDHALMODEINFO lpModeInfo; // mode information + DWORD dwFlags; // create flags + LPVOID lpPDevice; // physical device ptr + DWORD hInstance; // instance handle of driver + //------- Fields added in Version 2.0 ------- + ULONG_PTR lpD3DGlobalDriverData; // D3D global Data + ULONG_PTR lpD3DHALCallbacks; // D3D callbacks + LPDDHAL_DDEXEBUFCALLBACKS lpDDExeBufCallbacks; // Execute buffer pseudo object callbacks +} DDHALINFO; +typedef DDHALINFO FAR *LPDDHALINFO; + +#define DDHALINFOSIZE_V2 sizeof( DDHALINFO ) + +#define DDHALINFO_ISPRIMARYDISPLAY 0x00000001l // indicates driver is primary display driver +#define DDHALINFO_MODEXILLEGAL 0x00000002l // indicates this hardware does not support modex modes +#define DDHALINFO_GETDRIVERINFOSET 0x00000004l // indicates that GetDriverInfo is set +#define DDHALINFO_GETDRIVERINFO2 0x00000008l // indicates driver support GetDriverInfo2 variant + // of GetDriverInfo. New for DX 8.0 + +/* + * DDRAW16.DLL entry points + */ +typedef BOOL (DDAPI *LPDDHAL_SETINFO)( LPDDHALINFO lpDDHalInfo, BOOL reset ); +typedef FLATPTR (DDAPI *LPDDHAL_VIDMEMALLOC)( LPDDRAWI_DIRECTDRAW_GBL lpDD, int heap, DWORD dwWidth, DWORD dwHeight ); +typedef void (DDAPI *LPDDHAL_VIDMEMFREE)( LPDDRAWI_DIRECTDRAW_GBL lpDD, int heap, FLATPTR fpMem ); + +extern BOOL DDAPI DDHAL_SetInfo( LPDDHALINFO lpDDHALInfo, BOOL reset ); +extern FLATPTR DDAPI DDHAL_VidMemAlloc( LPDDRAWI_DIRECTDRAW_GBL lpDD, int heap, DWORD dwWidth, DWORD dwHeight ); +extern void DDAPI DDHAL_VidMemFree( LPDDRAWI_DIRECTDRAW_GBL lpDD, int heap, FLATPTR fpMem ); + + +typedef struct +{ + DWORD dwSize; + LPDDHAL_SETINFO lpSetInfo; + LPDDHAL_VIDMEMALLOC lpVidMemAlloc; + LPDDHAL_VIDMEMFREE lpVidMemFree; +} DDHALDDRAWFNS; +typedef DDHALDDRAWFNS FAR *LPDDHALDDRAWFNS; + +/**************************************************************************** + * + * DDHAL structures for Surface Object callbacks + * + ***************************************************************************/ + + +/* + * structure for passing information to DDHAL Blt and AlphaBlt fns + */ +typedef struct _DDHAL_BLTDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDDestSurface;// dest surface + RECTL rDest; // dest rect + LPDDRAWI_DDRAWSURFACE_LCL lpDDSrcSurface; // src surface + RECTL rSrc; // src rect + DWORD dwFlags; // blt flags + DWORD dwROPFlags; // ROP flags (valid for ROPS only) + DDBLTFX bltFX; // blt FX + HRESULT ddRVal; // return value + LPDDHALSURFCB_BLT Blt; // PRIVATE: ptr to callback + BOOL IsClipped; // clipped blt? + RECTL rOrigDest; // unclipped dest rect + // (only valid if IsClipped) + RECTL rOrigSrc; // unclipped src rect + // (only valid if IsClipped) + DWORD dwRectCnt; // count of dest rects + // (only valid if IsClipped) + LPRECT prDestRects; // array of dest rects + +} DDHAL_BLTDATA; + +/* + * structure for passing information to DDHAL Lock fn + */ +typedef struct _DDHAL_LOCKDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface struct + DWORD bHasRect; // rArea is valid + RECTL rArea; // area being locked + LPVOID lpSurfData; // pointer to screen memory (return value) + HRESULT ddRVal; // return value + LPDDHALSURFCB_LOCK Lock; // PRIVATE: ptr to callback + DWORD dwFlags; // DDLOCK flags +} DDHAL_LOCKDATA; + +/* + * structure for passing information to DDHAL Unlock fn + */ +typedef struct _DDHAL_UNLOCKDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface struct + HRESULT ddRVal; // return value + LPDDHALSURFCB_UNLOCK Unlock; // PRIVATE: ptr to callback +} DDHAL_UNLOCKDATA; + +/* + * structure for passing information to DDHAL UpdateOverlay fn + */ +typedef struct _DDHAL_UPDATEOVERLAYDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDDestSurface;// dest surface + RECTL rDest; // dest rect + LPDDRAWI_DDRAWSURFACE_LCL lpDDSrcSurface; // src surface + RECTL rSrc; // src rect + DWORD dwFlags; // flags + DDOVERLAYFX overlayFX; // overlay FX + HRESULT ddRVal; // return value + LPDDHALSURFCB_UPDATEOVERLAY UpdateOverlay; // PRIVATE: ptr to callback +} DDHAL_UPDATEOVERLAYDATA; + +/* + * structure for passing information to DDHAL UpdateOverlay fn + */ +typedef struct _DDHAL_SETOVERLAYPOSITIONDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSrcSurface; // src surface + LPDDRAWI_DDRAWSURFACE_LCL lpDDDestSurface;// dest surface + LONG lXPos; // x position + LONG lYPos; // y position + HRESULT ddRVal; // return value + LPDDHALSURFCB_SETOVERLAYPOSITION SetOverlayPosition; // PRIVATE: ptr to callback +} DDHAL_SETOVERLAYPOSITIONDATA; +/* + * structure for passing information to DDHAL SetPalette fn + */ +typedef struct _DDHAL_SETPALETTEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface struct + LPDDRAWI_DDRAWPALETTE_GBL lpDDPalette; // palette to set to surface + HRESULT ddRVal; // return value + LPDDHALSURFCB_SETPALETTE SetPalette; // PRIVATE: ptr to callback + BOOL Attach; // attach this palette? +} DDHAL_SETPALETTEDATA; + +/* + * structure for passing information to DDHAL Flip fn + */ +typedef struct _DDHAL_FLIPDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpSurfCurr; // current surface + LPDDRAWI_DDRAWSURFACE_LCL lpSurfTarg; // target surface (to flip to) + DWORD dwFlags; // flags + HRESULT ddRVal; // return value + LPDDHALSURFCB_FLIP Flip; // PRIVATE: ptr to callback + LPDDRAWI_DDRAWSURFACE_LCL lpSurfCurrLeft; // current surface + LPDDRAWI_DDRAWSURFACE_LCL lpSurfTargLeft; // target surface (to flip to) +} DDHAL_FLIPDATA; + +/* + * structure for passing information to DDHAL DestroySurface fn + */ +typedef struct _DDHAL_DESTROYSURFACEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface struct + HRESULT ddRVal; // return value + LPDDHALSURFCB_DESTROYSURFACE DestroySurface;// PRIVATE: ptr to callback +} DDHAL_DESTROYSURFACEDATA; + +/* + * structure for passing information to DDHAL SetClipList fn + */ +typedef struct _DDHAL_SETCLIPLISTDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface struct + HRESULT ddRVal; // return value + LPDDHALSURFCB_SETCLIPLIST SetClipList; // PRIVATE: ptr to callback +} DDHAL_SETCLIPLISTDATA; + +/* + * structure for passing information to DDHAL AddAttachedSurface fn + */ +typedef struct _DDHAL_ADDATTACHEDSURFACEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface struct + LPDDRAWI_DDRAWSURFACE_LCL lpSurfAttached; // surface to attach + HRESULT ddRVal; // return value + LPDDHALSURFCB_ADDATTACHEDSURFACE AddAttachedSurface; // PRIVATE: ptr to callback +} DDHAL_ADDATTACHEDSURFACEDATA; + +/* + * structure for passing information to DDHAL SetColorKey fn + */ +typedef struct _DDHAL_SETCOLORKEYDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface struct + DWORD dwFlags; // flags + DDCOLORKEY ckNew; // new color key + HRESULT ddRVal; // return value + LPDDHALSURFCB_SETCOLORKEY SetColorKey; // PRIVATE: ptr to callback +} DDHAL_SETCOLORKEYDATA; + +/* + * structure for passing information to DDHAL GetBltStatus fn + */ +typedef struct _DDHAL_GETBLTSTATUSDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface struct + DWORD dwFlags; // flags + HRESULT ddRVal; // return value + LPDDHALSURFCB_GETBLTSTATUS GetBltStatus; // PRIVATE: ptr to callback +} DDHAL_GETBLTSTATUSDATA; + +/* + * structure for passing information to DDHAL GetFlipStatus fn + */ +typedef struct _DDHAL_GETFLIPSTATUSDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface struct + DWORD dwFlags; // flags + HRESULT ddRVal; // return value + LPDDHALSURFCB_GETFLIPSTATUS GetFlipStatus; // PRIVATE: ptr to callback +} DDHAL_GETFLIPSTATUSDATA; + +/**************************************************************************** + * + * DDHAL structures for Palette Object callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL DestroyPalette fn + */ +typedef struct _DDHAL_DESTROYPALETTEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWPALETTE_GBL lpDDPalette; // palette struct + HRESULT ddRVal; // return value + LPDDHALPALCB_DESTROYPALETTE DestroyPalette; // PRIVATE: ptr to callback +} DDHAL_DESTROYPALETTEDATA; + +/* + * structure for passing information to DDHAL SetEntries fn + */ +typedef struct _DDHAL_SETENTRIESDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWPALETTE_GBL lpDDPalette; // palette struct + DWORD dwBase; // base palette index + DWORD dwNumEntries; // number of palette entries + LPPALETTEENTRY lpEntries; // color table + HRESULT ddRVal; // return value + LPDDHALPALCB_SETENTRIES SetEntries; // PRIVATE: ptr to callback +} DDHAL_SETENTRIESDATA; + +/**************************************************************************** + * + * DDHAL structures for Driver Object callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL CreateSurface fn + */ +typedef struct _DDHAL_CREATESURFACEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDSURFACEDESC lpDDSurfaceDesc;// description of surface being created + LPDDRAWI_DDRAWSURFACE_LCL FAR *lplpSList; // list of created surface objects + DWORD dwSCnt; // number of surfaces in SList + HRESULT ddRVal; // return value + LPDDHAL_CREATESURFACE CreateSurface; // PRIVATE: ptr to callback +} DDHAL_CREATESURFACEDATA; + +/* + * structure for passing information to DDHAL CanCreateSurface fn + */ +typedef struct _DDHAL_CANCREATESURFACEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDSURFACEDESC lpDDSurfaceDesc; // description of surface being created + DWORD bIsDifferentPixelFormat;// pixel format differs from primary surface + HRESULT ddRVal; // return value + LPDDHAL_CANCREATESURFACE CanCreateSurface; // PRIVATE: ptr to callback +} DDHAL_CANCREATESURFACEDATA; + +/* + * structure for passing information to DDHAL CreatePalette fn + */ +typedef struct _DDHAL_CREATEPALETTEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWPALETTE_GBL lpDDPalette; // ddraw palette struct + LPPALETTEENTRY lpColorTable; // colors to go in palette + HRESULT ddRVal; // return value + LPDDHAL_CREATEPALETTE CreatePalette; // PRIVATE: ptr to callback + BOOL is_excl; // process has exclusive mode +} DDHAL_CREATEPALETTEDATA; + +/* + * Return if the vertical blank is in progress + */ +#define DDWAITVB_I_TESTVB 0x80000006l + +/* + * structure for passing information to DDHAL WaitForVerticalBlank fn + */ +typedef struct _DDHAL_WAITFORVERTICALBLANKDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + DWORD dwFlags; // flags + DWORD bIsInVB; // is in vertical blank + ULONG_PTR hEvent; // event + HRESULT ddRVal; // return value + LPDDHAL_WAITFORVERTICALBLANK WaitForVerticalBlank; // PRIVATE: ptr to callback +} DDHAL_WAITFORVERTICALBLANKDATA; + +/* + * structure for passing information to DDHAL DestroyDriver fn + */ +typedef struct _DDHAL_DESTROYDRIVERDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + HRESULT ddRVal; // return value + LPDDHAL_DESTROYDRIVER DestroyDriver; // PRIVATE: ptr to callback +} DDHAL_DESTROYDRIVERDATA; + +/* + * structure for passing information to DDHAL SetMode fn + */ +typedef struct _DDHAL_SETMODEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + DWORD dwModeIndex; // new mode + HRESULT ddRVal; // return value + LPDDHAL_SETMODE SetMode; // PRIVATE: ptr to callback + BOOL inexcl; // in exclusive mode + BOOL useRefreshRate; // use the refresh rate data in the mode info +} DDHAL_SETMODEDATA; + +/* + * structure for passing information to DDHAL driver SetColorKey fn + */ +typedef struct _DDHAL_DRVSETCOLORKEYDATA +{ + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface struct + DWORD dwFlags; // flags + DDCOLORKEY ckNew; // new color key + HRESULT ddRVal; // return value + LPDDHAL_SETCOLORKEY SetColorKey; // PRIVATE: ptr to callback +} DDHAL_DRVSETCOLORKEYDATA; + +/* + * structure for passing information to DDHAL GetScanLine fn + */ +typedef struct _DDHAL_GETSCANLINEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + DWORD dwScanLine; // returned scan line + HRESULT ddRVal; // return value + LPDDHAL_GETSCANLINE GetScanLine; // PRIVATE: ptr to callback +} DDHAL_GETSCANLINEDATA; + +/* + * structure for passing information to DDHAL SetExclusiveMode fn + */ +typedef struct _DDHAL_SETEXCLUSIVEMODEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + DWORD dwEnterExcl; // TRUE if entering exclusive mode, FALSE is leaving + DWORD dwReserved; // reserved for future use + HRESULT ddRVal; // return value + LPDDHAL_SETEXCLUSIVEMODE SetExclusiveMode; // PRIVATE: ptr to callback +} DDHAL_SETEXCLUSIVEMODEDATA; + +/* + * structure for passing information to DDHAL FlipToGDISurface fn + */ +typedef struct _DDHAL_FLIPTOGDISURFACEDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + DWORD dwToGDI; // TRUE if flipping to the GDI surface, FALSE if flipping away + DWORD dwReserved; // reserved for future use + HRESULT ddRVal; // return value + LPDDHAL_FLIPTOGDISURFACE FlipToGDISurface; // PRIVATE: ptr to callback +} DDHAL_FLIPTOGDISURFACEDATA; + +/**************************************************************************** + * + * DDHAL structures for VideoPort callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL CanCreateVideoPort fn + */ +typedef struct _DDHAL_CANCREATEVPORTDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDVIDEOPORTDESC lpDDVideoPortDesc; + HRESULT ddRVal; // return value + LPDDHALVPORTCB_CANCREATEVIDEOPORT CanCreateVideoPort; // PRIVATE: ptr to callback +} DDHAL_CANCREATEVPORTDATA; + +/* + * structure for passing information to DDHAL CreateVideoPort fn + */ +typedef struct _DDHAL_CREATEVPORTDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDVIDEOPORTDESC lpDDVideoPortDesc; + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port created + HRESULT ddRVal; // return value + LPDDHALVPORTCB_CREATEVIDEOPORT CreateVideoPort; // PRIVATE: ptr to callback +} DDHAL_CREATEVPORTDATA; + +/* + * structure for passing information to DDHAL FlipVideoPort fn + */ +typedef struct _DDHAL_FLIPVPORTDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + LPDDRAWI_DDRAWSURFACE_LCL lpSurfCurr; // current surface + LPDDRAWI_DDRAWSURFACE_LCL lpSurfTarg; // target surface + HRESULT ddRVal; // return value + LPDDHALVPORTCB_FLIP FlipVideoPort; // PRIVATE: ptr to callback +} DDHAL_FLIPVPORTDATA; + +/* + * structure for passing information to DDHAL GetVideoPortBandwidth fn + */ +typedef struct _DDHAL_GETVPORTBANDWIDTHDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + LPDDPIXELFORMAT lpddpfFormat; // Format for bandwidth + DWORD dwWidth; + DWORD dwHeight; + DWORD dwFlags; // Prescale factor for bandwidth + LPDDVIDEOPORTBANDWIDTH lpBandwidth; // Returned bandwidth parameters + HRESULT ddRVal; // return value + LPDDHALVPORTCB_GETBANDWIDTH GetVideoPortBandwidth; // PRIVATE: ptr to callback +} DDHAL_GETVPORTBANDWIDTHDATA; + +/* + * structure for passing information to DDHAL GetVideoPortInputFormats fn + */ +typedef struct _DDHAL_GETVPORTINPUTFORMATDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + DWORD dwFlags; // VBI, regular, or both + LPDDPIXELFORMAT lpddpfFormat; // Array of formats + DWORD dwNumFormats; // # of formats in array + HRESULT ddRVal; // return value + LPDDHALVPORTCB_GETINPUTFORMATS GetVideoPortInputFormats; // PRIVATE: ptr to callback +} DDHAL_GETVPORTINPUTFORMATDATA; + +/* + * structure for passing information to DDHAL GetVideoPortOutputFormats fn + */ +typedef struct _DDHAL_GETVPORTOUTPUTFORMATDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + DWORD dwFlags; // VBI, regular, or both + LPDDPIXELFORMAT lpddpfInputFormat; // Input format + LPDDPIXELFORMAT lpddpfOutputFormats; // Array of output formats + DWORD dwNumFormats; // # of formats in array + HRESULT ddRVal; // return value + LPDDHALVPORTCB_GETOUTPUTFORMATS GetVideoPortOutputFormats; // PRIVATE: ptr to callback +} DDHAL_GETVPORTOUTPUTFORMATDATA; + +/* + * structure for passing information to DDHAL GetVideoPortField fn + */ +typedef struct _DDHAL_GETVPORTFIELDDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + BOOL bField; // TRUE if even + HRESULT ddRVal; // return value + LPDDHALVPORTCB_GETFIELD GetVideoPortField; // PRIVATE: ptr to callback +} DDHAL_GETVPORTFIELDDATA; + +/* + * structure for passing information to DDHAL GetVideoPortLine fn + */ +typedef struct _DDHAL_GETVPORTLINEDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + DWORD dwLine; // Current line counter + HRESULT ddRVal; // return value + LPDDHALVPORTCB_GETLINE GetVideoPortLine; // PRIVATE: ptr to callback +} DDHAL_GETVPORTLINEDATA; + +/* + * structure for passing information to DDHAL GetVideoPortConnectInfo fn + */ +typedef struct _DDHAL_GETVPORTCONNECTDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + DWORD dwPortId; // ID of desired video port + LPDDVIDEOPORTCONNECT lpConnect; // Array of DDVIDEOPORTCONNECT structures + DWORD dwNumEntries; // # of structures in array + HRESULT ddRVal; // return value + LPDDHALVPORTCB_GETVPORTCONNECT GetVideoPortConnectInfo; // PRIVATE: ptr to callback +} DDHAL_GETVPORTCONNECTDATA; + +/* + * structure for passing information to DDHAL DestroyVideoPort fn + */ +typedef struct _DDHAL_DESTROYVPORTDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + HRESULT ddRVal; // return value + LPDDHALVPORTCB_DESTROYVPORT DestroyVideoPort; // PRIVATE: ptr to callback +} DDHAL_DESTROYVPORTDATA; + +/* + * structure for passing information to DDHAL GetVideoPortFlipStatus fn + */ +typedef struct _DDHAL_GETVPORTFLIPSTATUSDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + FLATPTR fpSurface; // surface struct + HRESULT ddRVal; // return value + LPDDHALVPORTCB_GETFLIPSTATUS GetVideoPortFlipStatus; // PRIVATE: ptr to callback +} DDHAL_GETVPORTFLIPSTATUSDATA; + +/* + * structure for passing information to DDHAL UpdateVideoPort fn + */ +typedef struct _DDHAL_UPDATEVPORTDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + LPDDRAWI_DDRAWSURFACE_INT *lplpDDSurface; // surface struct + LPDDRAWI_DDRAWSURFACE_INT *lplpDDVBISurface; // VBI surface structure + LPDDVIDEOPORTINFO lpVideoInfo; // Video information + DWORD dwFlags; // DDRAWI_VPORTSTART, DDRAWI_VPORTSTOP, DDRAWI_VPORTUPDATE + DWORD dwNumAutoflip; // # of autoflip surfaces. If > 1, lpDDSurface and lpDDVBISurface are arrays. + DWORD dwNumVBIAutoflip; // # of autoflip surfaces. If > 1, lpDDSurface and lpDDVBISurface are arrays. + HRESULT ddRVal; // return value + LPDDHALVPORTCB_UPDATE UpdateVideoPort; // PRIVATE: ptr to callback +} DDHAL_UPDATEVPORTDATA; + +#define DDRAWI_VPORTSTART 0x0001 +#define DDRAWI_VPORTSTOP 0x0002 +#define DDRAWI_VPORTUPDATE 0x0003 + +/* + * structure for passing information to DDHAL WaitForVideoPortSync fn + */ +typedef struct _DDHAL_WAITFORVPORTSYNCDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + DWORD dwFlags; // DDVPEVENT_XXXX + DWORD dwLine; + DWORD dwTimeOut; // Max time to wait before returning + HRESULT ddRVal; // return value + LPDDHALVPORTCB_WAITFORSYNC WaitForVideoPortSync; // PRIVATE: ptr to callback +} DDHAL_WAITFORVPORTSYNCDATA; + +/* + * structure for passing information to DDHAL GetVideoSignalStatus fn + */ +typedef struct _DDHAL_GETVPORTSIGNALDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + DWORD dwStatus; // Video signal status + HRESULT ddRVal; // return value + LPDDHALVPORTCB_GETSIGNALSTATUS GetVideoSignalStatus;// PRIVATE: ptr to callback +} DDHAL_GETVPORTSIGNALDATA; + +/* + * structure for passing information to DDHAL GetVideoSignalStatus fn + */ +typedef struct _DDHAL_VPORTCOLORDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + DWORD dwFlags; // Video signal status + LPDDCOLORCONTROL lpColorData; + HRESULT ddRVal; // return value + LPDDHALVPORTCB_COLORCONTROL ColorControl; // PRIVATE: ptr to callback +} DDHAL_VPORTCOLORDATA; + +#define DDRAWI_VPORTGETCOLOR 0x0001 +#define DDRAWI_VPORTSETCOLOR 0x0002 + +/**************************************************************************** + * + * DDHAL structures for Color Control callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL ColorControl fn + */ +typedef struct _DDHAL_COLORCONTROLDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // surface + LPDDCOLORCONTROL lpColorData; // color control information + DWORD dwFlags; // DDRAWI_GETCOLOR/DDRAWI_SETCOLOR + HRESULT ddRVal; // return value + LPDDHALCOLORCB_COLORCONTROL ColorControl; // PRIVATE: ptr to callback +} DDHAL_COLORCONTROLDATA; + +#define DDRAWI_GETCOLOR 0x0001 +#define DDRAWI_SETCOLOR 0x0002 + +/**************************************************************************** + * + * DDHAL structure for GetDriverData callback + * + ***************************************************************************/ + +typedef struct _DDHAL_GETDRIVERINFODATA { + + // Input fields filled in by DirectDraw + DWORD dwSize; // Size of this structure + DWORD dwFlags; // Flags + GUID guidInfo; // GUID that DirectX is querying for + DWORD dwExpectedSize; // Size of callbacks structure expected by DirectDraw. + LPVOID lpvData; // Buffer that will receive the requested data + + // Output fields filled in by driver + DWORD dwActualSize; // Size of callbacks structure expected by driver + HRESULT ddRVal; // Return value from driver + + // Input field: Context information for driver + // On Win95, this is the dwReserved3 field of the DIRECTDRAW_GBL + // On NT, this is the hDD field of DIRECTDRAW_GBL + ULONG_PTR dwContext; // Context Information + +} DDHAL_GETDRIVERINFODATA; + +/**************************************************************************** + * + * DDHAL structure for misc. driver callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL GetAvailDriverMemory fn + */ +typedef struct _DDHAL_GETAVAILDRIVERMEMORYDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + DDSCAPS DDSCaps; // caps for type of surface memory + DWORD dwTotal; // total memory for this kind of surface + DWORD dwFree; // free memory for this kind of surface + HRESULT ddRVal; // return value + LPDDHAL_GETAVAILDRIVERMEMORY GetAvailDriverMemory; // PRIVATE: ptr to callback + DDSCAPSEX ddsCapsEx; // Added in V6. Driver should check DDVERSION info + // to see if this field is present. +} DDHAL_GETAVAILDRIVERMEMORYDATA; + +/* + * structure for passing information to DDHEL UpdateNonLocalHeap + */ +typedef struct _DDHAL_UPDATENONLOCALHEAPDATA +{ + LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + DWORD dwHeap; // heap index + FLATPTR fpGARTLin; // linear GART address of start of heap + FLATPTR fpGARTDev; // high physical GART address of start of heap + ULONG_PTR ulPolicyMaxBytes; // maximum amount of AGP memory to use + HRESULT ddRVal; // return value + LPDDHAL_UPDATENONLOCALHEAP UpdateNonLocalHeap; // PRIVATE: ptr to callback +} DDHAL_UPDATENONLOCALHEAPDATA; + +/* + * Heap Alignment Data Structures + */ +typedef struct _DDHAL_GETHEAPALIGNMENTDATA +{ + ULONG_PTR dwInstance; // driver context as returned from 32-bit driver init routine + DWORD dwHeap; // heap index passed by DirectDraw + HRESULT ddRVal; // return value + LPDDHAL_GETHEAPALIGNMENT GetHeapAlignment; // PRIVATE: ptr to callback. + HEAPALIGNMENT Alignment; // Filled in by driver. Defined in dmemmgr.h +} DDHAL_GETHEAPALIGNMENTDATA; + +/* + * These are the only caps you can set in DDHAL_GETHEAPALIGNMENTDATA.Alignment.ddsCaps. + * Any other caps will be rejected by DirectDraw. + */ + +#define DDHAL_ALIGNVALIDCAPS (DDSCAPS_OFFSCREENPLAIN | \ + DDSCAPS_EXECUTEBUFFER | \ + DDSCAPS_OVERLAY | \ + DDSCAPS_TEXTURE | \ + DDSCAPS_ZBUFFER | \ + DDSCAPS_ALPHA | \ + DDSCAPS_FLIP ) + +/* + * Note that GetSysmemBltStatus uses the same parameter block as GetBltStatus, + * namely DDHAL_GETBLTSTATUSDATA + */ + + +typedef struct _DDHAL_CREATESURFACEEXDATA { + DWORD dwFlags; // Currently always 0 and not used + LPDDRAWI_DIRECTDRAW_LCL lpDDLcl; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSLcl; // list of created surface objects + HRESULT ddRVal; // return value +} DDHAL_CREATESURFACEEXDATA; + +typedef struct _DDHAL_GETDRIVERSTATEDATA { + DWORD dwFlags; // Flags to indicate the data + // required + union + { + // LPDDRAWI_DIRECTDRAW_GBL lpDD; // driver struct + ULONG_PTR dwhContext; // d3d context + }; + LPDWORD lpdwStates; // ptr to the state data + // to be filled in by the + // driver + DWORD dwLength; + HRESULT ddRVal; // return value +} DDHAL_GETDRIVERSTATEDATA; + +typedef struct _DDHAL_DESTROYDDLOCALDATA +{ + DWORD dwFlags; + LPDDRAWI_DIRECTDRAW_LCL pDDLcl; + HRESULT ddRVal; +} DDHAL_DESTROYDDLOCALDATA; + +/**************************************************************************** + * + * DDHAL structure for kernel callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL SyncSurfaceData fn + */ +typedef struct _DDHAL_SYNCSURFACEDATA +{ + DWORD dwSize; // Size of this structure + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface; // Surface to sync with + DWORD dwSurfaceOffset; // Offset in frame buffer of surface + ULONG_PTR fpLockPtr; // Surface lock ptr + LONG lPitch; // Surface pitch + DWORD dwOverlayOffset; // Added to dwSurfaceOffset for origin, clipping, etc. + DWORD dwOverlaySrcWidth; // Src width of overlay + DWORD dwOverlaySrcHeight; // Src height of overlay + DWORD dwOverlayDestWidth; // Dest width of overlay + DWORD dwOverlayDestHeight; // Dest height of overlay + ULONG_PTR dwDriverReserved1; // Reserved for the HAL + ULONG_PTR dwDriverReserved2; // Reserved for the HAL + ULONG_PTR dwDriverReserved3; // Reserved for the HAL + HRESULT ddRVal; +} DDHAL_SYNCSURFACEDATA; + +/* + * structure for passing information to DDHAL SyncVideoPortData fn + */ +typedef struct _DDHAL_SYNCVIDEOPORTDATA +{ + DWORD dwSize; // Size of this structure + LPDDRAWI_DIRECTDRAW_LCL lpDD; // driver struct + LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort; // Video port object + DWORD dwOriginOffset; // Start address relative to surface + DWORD dwHeight; // Height of total video region (per field) + DWORD dwVBIHeight; // Height of VBI region (per field) + ULONG_PTR dwDriverReserved1; // Reserved for the HAL + ULONG_PTR dwDriverReserved2; // Reserved for the HAL + ULONG_PTR dwDriverReserved3; // Reserved for the HAL + HRESULT ddRVal; +} DDHAL_SYNCVIDEOPORTDATA; + + +/**************************************************************************** + * + * DDHAL structure for motion comp callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL GetMoCompGuids + */ +typedef struct _DDHAL_GETMOCOMPGUIDSDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + DWORD dwNumGuids; + LPGUID lpGuids; + HRESULT ddRVal; + LPDDHALMOCOMPCB_GETGUIDS GetMoCompGuids; +} DDHAL_GETMOCOMPGUIDSDATA; + +/* + * structure for passing information to DDHAL GetMoCompFormats + */ +typedef struct _DDHAL_GETMOCOMPFORMATSDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + LPGUID lpGuid; + DWORD dwNumFormats; + LPDDPIXELFORMAT lpFormats; + HRESULT ddRVal; + LPDDHALMOCOMPCB_GETFORMATS GetMoCompFormats; +} DDHAL_GETMOCOMPFORMATSDATA; + +/* + * structure for passing information to DDHAL CreateMoComp + */ +typedef struct _DDHAL_CREATEMOCOMPDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + LPDDRAWI_DDMOTIONCOMP_LCL lpMoComp; + LPGUID lpGuid; + DWORD dwUncompWidth; + DWORD dwUncompHeight; + DDPIXELFORMAT ddUncompPixelFormat; + LPVOID lpData; + DWORD dwDataSize; + HRESULT ddRVal; + LPDDHALMOCOMPCB_CREATE CreateMoComp; +} DDHAL_CREATEMOCOMPDATA; + +/* + * structure for passing information to DDHAL GetMoCompBuffInfo + */ +typedef struct _DDMCCOMPBUFFERINFO +{ + DWORD dwSize; // [in] size of the struct + DWORD dwNumCompBuffers; // [out] number of buffers required for compressed data + DWORD dwWidthToCreate; // [out] Width of surface to create + DWORD dwHeightToCreate; // [out] Height of surface to create + DWORD dwBytesToAllocate; // [out] Total number of bytes used by each surface + DDSCAPS2 ddCompCaps; // [out] caps to create surfaces to store compressed data + DDPIXELFORMAT ddPixelFormat; // [out] format to create surfaces to store compressed data +} DDMCCOMPBUFFERINFO, *LPDDMCCOMPBUFFERINFO; + +typedef struct _DDHAL_GETMOCOMPCOMPBUFFDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + LPGUID lpGuid; + DWORD dwWidth; // [in] width of uncompressed data + DWORD dwHeight; // [in] height of uncompressed data + DDPIXELFORMAT ddPixelFormat; // [in] pixel-format of uncompressed data + DWORD dwNumTypesCompBuffs;// [in/out] number of memory types required for comp buffers + LPDDMCCOMPBUFFERINFO lpCompBuffInfo; // [in] driver supplied info regarding comp buffers (allocated by client) + HRESULT ddRVal; // [out] + LPDDHALMOCOMPCB_GETCOMPBUFFINFO GetMoCompBuffInfo; +} DDHAL_GETMOCOMPCOMPBUFFDATA; + +/* + * structure for passing information to DDHAL GetMoCompBuffInfo + */ +typedef struct _DDHAL_GETINTERNALMOCOMPDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + LPGUID lpGuid; + DWORD dwWidth; // [in] width of uncompressed data + DWORD dwHeight; // [in] height of uncompressed data + DDPIXELFORMAT ddPixelFormat; // [in] pixel-format of uncompressed data + DWORD dwScratchMemAlloc; // [out] amount of scratch memory will the hal allocate for its private use + HRESULT ddRVal; // [out] + LPDDHALMOCOMPCB_GETINTERNALINFO GetInternalMoCompInfo; +} DDHAL_GETINTERNALMOCOMPDATA; + +/* + * structure for passing information to DDHAL BeginMoCompFrame + */ +typedef struct _DDHAL_BEGINMOCOMPFRAMEDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + LPDDRAWI_DDMOTIONCOMP_LCL lpMoComp; + LPDDRAWI_DDRAWSURFACE_LCL lpDestSurface; // [in] destination buffer in which to decoding this frame + DWORD dwInputDataSize; // [in] size of other misc input data to begin frame + LPVOID lpInputData; // [in] pointer to misc input data + DWORD dwOutputDataSize; // [in] size of other misc output data to begin frame + LPVOID lpOutputData; // [in] pointer to output misc data (allocated by client) + HRESULT ddRVal; // [out] + LPDDHALMOCOMPCB_BEGINFRAME BeginMoCompFrame; +} DDHAL_BEGINMOCOMPFRAMEDATA; + +/* + * structure for passing information to DDHAL EndMoCompFrame + */ +typedef struct _DDHAL_ENDMOCOMPFRAMEDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + LPDDRAWI_DDMOTIONCOMP_LCL lpMoComp; + LPVOID lpInputData; + DWORD dwInputDataSize; + HRESULT ddRVal; + LPDDHALMOCOMPCB_ENDFRAME EndMoCompFrame; +} DDHAL_ENDMOCOMPFRAMEDATA; + +/* + * structure for passing information to DDHAL RenderMoComp + */ +typedef struct _DDMCBUFFERINFO +{ + DWORD dwSize; // [in] size of the struct + LPDDRAWI_DDRAWSURFACE_LCL lpCompSurface; // [in] pointer to buffer containing compressed data + DWORD dwDataOffset; // [in] offset of relevant data from the beginning of buffer + DWORD dwDataSize; // [in] size of relevant data + LPVOID lpPrivate; // Reserved for DirectDraw; +} DDMCBUFFERINFO, *LPDDMCBUFFERINFO; + + +typedef struct _DDHAL_RENDERMOCOMPDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + LPDDRAWI_DDMOTIONCOMP_LCL lpMoComp; + DWORD dwNumBuffers; // [in] Number of entries in the lpMacroBlockInfo array + LPDDMCBUFFERINFO lpBufferInfo; // [in] Surfaces containing macro block info + DWORD dwFunction; // [in] Function + LPVOID lpInputData; + DWORD dwInputDataSize; + LPVOID lpOutputData; + DWORD dwOutputDataSize; + HRESULT ddRVal; // [out] + LPDDHALMOCOMPCB_RENDER RenderMoComp; +} DDHAL_RENDERMOCOMPDATA; + +/* + * structure for passing information to DDHAL QueryMoCompStatus + */ +typedef struct _DDHAL_QUERYMOCOMPSTATUSDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + LPDDRAWI_DDMOTIONCOMP_LCL lpMoComp; + LPDDRAWI_DDRAWSURFACE_LCL lpSurface; // [in] Surface being queried + DWORD dwFlags; // [in] DDMCQUERY_XXX falgs + HRESULT ddRVal; // [out] + LPDDHALMOCOMPCB_QUERYSTATUS QueryMoCompStatus; +} DDHAL_QUERYMOCOMPSTATUSDATA; + +#define DDMCQUERY_READ 0x00000001 + +/* + * structure for passing information to DDHAL DestroyVideo + */ +typedef struct _DDHAL_DESTROYMOCOMPDATA +{ + LPDDRAWI_DIRECTDRAW_LCL lpDD; + LPDDRAWI_DDMOTIONCOMP_LCL lpMoComp; + HRESULT ddRVal; + LPDDHALMOCOMPCB_DESTROY DestroyMoComp; +} DDHAL_DESTROYMOCOMPDATA; + + +#ifdef __cplusplus +}; +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddrawint.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddrawint.h new file mode 100644 index 0000000000000000000000000000000000000000..6c5fd22c13b4483bb5f16a0fd51e0b161a3ae6ad --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddrawint.h @@ -0,0 +1,2007 @@ +/*++ + +Copyright (c) Microsoft Corporation. All Rights Reserved. + +Module Name: + + ddrawint.h + +Abstract: + + Private entry points, defines and types for Windows NT DirectDraw + driver interface. Corresponds to Windows' 'ddrawi.h' file. + + The structure names for NT are different from that of Win95. Use + dx95type.h to aid in porting DirectX code from Win95 to NT. + +--*/ + +#ifndef __DD_INCLUDED__ +#define __DD_INCLUDED__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/* + * These GUIDs are used to identify driver info structures, not interfaces, + * so the prefix GUID_ is used instead of IID_. + */ + +DEFINE_GUID( GUID_MiscellaneousCallbacks, 0xefd60cc0, 0x49e7, 0x11d0, 0x88, 0x9d, 0x0, 0xaa, 0x0, 0xbb, 0xb7, 0x6a); +DEFINE_GUID( GUID_Miscellaneous2Callbacks, 0x406B2F00, 0x3E5A, 0x11D1, 0xB6, 0x40, 0x00, 0xAA, 0x00, 0xA1, 0xF9, 0x6A); +DEFINE_GUID( GUID_VideoPortCallbacks, 0xefd60cc1, 0x49e7, 0x11d0, 0x88, 0x9d, 0x0, 0xaa, 0x0, 0xbb, 0xb7, 0x6a); +DEFINE_GUID( GUID_ColorControlCallbacks, 0xefd60cc2, 0x49e7, 0x11d0, 0x88, 0x9d, 0x0, 0xaa, 0x0, 0xbb, 0xb7, 0x6a); +DEFINE_GUID( GUID_MotionCompCallbacks, 0xb1122b40, 0x5dA5, 0x11d1, 0x8f, 0xcF, 0x00, 0xc0, 0x4f, 0xc2, 0x9b, 0x4e); +DEFINE_GUID( GUID_VideoPortCaps, 0xefd60cc3, 0x49e7, 0x11d0, 0x88, 0x9d, 0x0, 0xaa, 0x0, 0xbb, 0xb7, 0x6a); +DEFINE_GUID( GUID_D3DCaps, 0x7bf06991, 0x8794, 0x11d0, 0x91, 0x39, 0x08, 0x00, 0x36, 0xd2, 0xef, 0x02); +DEFINE_GUID( GUID_D3DExtendedCaps, 0x7de41f80, 0x9d93, 0x11d0, 0x89, 0xab, 0x00, 0xa0, 0xc9, 0x05, 0x41, 0x29); +DEFINE_GUID( GUID_D3DCallbacks, 0x7bf06990, 0x8794, 0x11d0, 0x91, 0x39, 0x08, 0x00, 0x36, 0xd2, 0xef, 0x02); +DEFINE_GUID( GUID_D3DCallbacks2, 0xba584e1, 0x70b6, 0x11d0, 0x88, 0x9d, 0x0, 0xaa, 0x0, 0xbb, 0xb7, 0x6a); +DEFINE_GUID( GUID_D3DCallbacks3, 0xddf41230, 0xec0a, 0x11d0, 0xa9, 0xb6, 0x00, 0xaa, 0x00, 0xc0, 0x99, 0x3e); +DEFINE_GUID( GUID_NonLocalVidMemCaps, 0x86c4fa80, 0x8d84, 0x11d0, 0x94, 0xe8, 0x00, 0xc0, 0x4f, 0xc3, 0x41, 0x37); +DEFINE_GUID( GUID_KernelCallbacks, 0x80863800, 0x6B06, 0x11D0, 0x9B, 0x06, 0x0, 0xA0, 0xC9, 0x03, 0xA3, 0xB8); +DEFINE_GUID( GUID_KernelCaps, 0xFFAA7540, 0x7AA8, 0x11D0, 0x9B, 0x06, 0x00, 0xA0, 0xC9, 0x03, 0xA3, 0xB8); +DEFINE_GUID( GUID_ZPixelFormats, 0x93869880, 0x36cf, 0x11d1, 0x9b, 0x1b, 0x0, 0xaa, 0x0, 0xbb, 0xb8, 0xae); +DEFINE_GUID( GUID_DDMoreCaps, 0x880baf30, 0xb030, 0x11d0, 0x8e, 0xa7, 0x00, 0x60, 0x97, 0x97, 0xea, 0x5b); +DEFINE_GUID( GUID_D3DParseUnknownCommandCallback, 0x2e04ffa0, 0x98e4, 0x11d1, 0x8c, 0xe1, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); +DEFINE_GUID( GUID_NTCallbacks, 0x6fe9ecde, 0xdf89, 0x11d1, 0x9d, 0xb0, 0x00, 0x60, 0x08, 0x27, 0x71, 0xba); +DEFINE_GUID( GUID_DDMoreSurfaceCaps, 0x3b8a0466, 0xf269, 0x11d1, 0x88, 0x0b, 0x0, 0xc0, 0x4f, 0xd9, 0x30, 0xc5); +DEFINE_GUID( GUID_GetHeapAlignment, 0x42e02f16, 0x7b41, 0x11d2, 0x8b, 0xff, 0x0, 0xa0, 0xc9, 0x83, 0xea, 0xf6); +DEFINE_GUID( GUID_UpdateNonLocalHeap, 0x42e02f17, 0x7b41, 0x11d2, 0x8b, 0xff, 0x0, 0xa0, 0xc9, 0x83, 0xea, 0xf6); +DEFINE_GUID( GUID_NTPrivateDriverCaps, 0xfad16a23, 0x7b66, 0x11d2, 0x83, 0xd7, 0x0, 0xc0, 0x4f, 0x7c, 0xe5, 0x8c); +DEFINE_GUID( GUID_DDStereoMode, 0xf828169c, 0xa8e8, 0x11d2, 0xa1, 0xf2, 0x0, 0xa0, 0xc9, 0x83, 0xea, 0xf6); +DEFINE_GUID( GUID_VPE2Callbacks, 0x52882147, 0x2d47, 0x469a, 0xa0, 0xd1, 0x3, 0x45, 0x58, 0x90, 0xf6, 0xc8); + +#ifndef GUID_DEFS_ONLY + +#ifndef _NO_DDRAWINT_NO_COM +#ifndef _NO_COM +#define _NO_COM +#include "ddraw.h" +#include "dvp.h" +#undef _NO_COM +#else +#include "ddraw.h" +#include "dvp.h" +#endif +#else +#include "ddraw.h" +#include "dvp.h" +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#define MAKE_HRESULT(sev,fac,code) \ + ((HRESULT) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) ) + +/* + * offset into video meory + */ +typedef ULONG_PTR FLATPTR; + +/* + * maximum number of surfaces that can be autoflipped between + */ +#define MAX_AUTOFLIP_BUFFERS 10 + +/* + * Indicates the surface is D3D buffer, i.e., a linear chunk of + * memory that holds a Direct3D structure. A driver reports this + * cap to indicate that it can create buffers in video memory and + * Direct3D uses this bit to request buffers. However, it is not + * visible to the API. + */ +#define DDSCAPS_EXECUTEBUFFER DDSCAPS_RESERVED2 +#define DDSCAPS_COMMANDBUFFER DDSCAPS_RESERVED3 +#define DDSCAPS_VERTEXBUFFER DDSCAPS_RESERVED4 + + +/* + * This DDPF flag is used to indicate a DX8+ format capability entry in + * the texture format list. It is not visible to applications. + */ +#define DDPF_D3DFORMAT 0x00200000l + +/* + * List of operations supported on formats in DX8+ texture list. + * See the DX8 DDK for a complete description of these flags. + */ +#define D3DFORMAT_OP_TEXTURE 0x00000001L +#define D3DFORMAT_OP_VOLUMETEXTURE 0x00000002L +#define D3DFORMAT_OP_CUBETEXTURE 0x00000004L +#define D3DFORMAT_OP_OFFSCREEN_RENDERTARGET 0x00000008L +#define D3DFORMAT_OP_SAME_FORMAT_RENDERTARGET 0x00000010L +#define D3DFORMAT_OP_ZSTENCIL 0x00000040L +#define D3DFORMAT_OP_ZSTENCIL_WITH_ARBITRARY_COLOR_DEPTH 0x00000080L + +// This format can be used as a render target if the current display mode +// is the same depth if the alpha channel is ignored. e.g. if the device +// can render to A8R8G8B8 when the display mode is X8R8G8B8, then the +// format op list entry for A8R8G8B8 should have this cap. +#define D3DFORMAT_OP_SAME_FORMAT_UP_TO_ALPHA_RENDERTARGET 0x00000100L + +// This format contains DirectDraw support (including Flip). This flag +// should not to be set on alpha formats. +#define D3DFORMAT_OP_DISPLAYMODE 0x00000400L + +// The rasterizer can support some level of Direct3D support in this format +// and implies that the driver can create a Context in this mode (for some +// render target format). When this flag is set, the D3DFORMAT_OP_DISPLAYMODE +// flag must also be set. +#define D3DFORMAT_OP_3DACCELERATION 0x00000800L + +// If the driver needs a private format to be D3D or driver manageable, +// then it needs to tell D3D the pixelsize in bits per pixel by setting +// dwPrivateFormatBitCount in DDPIXELFORMAT and by setting the below +// format op. If the below format op is not set, then D3D or the driver +// will NOT be allowed to manage the format. +#define D3DFORMAT_OP_PIXELSIZE 0x00001000L + +// Indicates that this format can be converted to any RGB format for which +// D3DFORMAT_MEMBEROFGROUP_ARGB is specified +#define D3DFORMAT_OP_CONVERT_TO_ARGB 0x00002000L + +// Indicates that this format can be used to create offscreen plain surfaces. +#define D3DFORMAT_OP_OFFSCREENPLAIN 0x00004000L + +// Indicated that this format can be read as an SRGB texture (meaning that the +// sampler will linearize the looked up data) +#define D3DFORMAT_OP_SRGBREAD 0x00008000L + +// Indicates that this format can be used in the bumpmap instructions +#define D3DFORMAT_OP_BUMPMAP 0x00010000L + +// Indicates that this format can be sampled by the displacement map sampler +#define D3DFORMAT_OP_DMAP 0x00020000L + +// Indicates that this format cannot be used with texture filtering +#define D3DFORMAT_OP_NOFILTER 0x00040000L + +// Indicates that format conversions are supported to this RGB format if +// D3DFORMAT_OP_CONVERT_TO_ARGB is specified in the source format. +#define D3DFORMAT_MEMBEROFGROUP_ARGB 0x00080000L + +// Indicated that this format can be written as an SRGB target (meaning that the +// pixel pipe will DE-linearize data on output to format) +#define D3DFORMAT_OP_SRGBWRITE 0x00100000L + +// Indicates that this format cannot be used with alpha blending +#define D3DFORMAT_OP_NOALPHABLEND 0x00200000L + +//Indicates that the device can auto-generated sublevels for resources +//of this format +#define D3DFORMAT_OP_AUTOGENMIPMAP 0x00400000L + +// Indicates that this format cannot be used by vertex texture sampler +#define D3DFORMAT_OP_VERTEXTEXTURE 0x00800000L + +// Indicates that this format supports neither texture coordinate wrap modes, nor mipmapping +#define D3DFORMAT_OP_NOTEXCOORDWRAPNORMIP 0x01000000L + +/* + * pre-declare pointers to structs containing data for DDHAL driver fns + */ +typedef struct _DD_CREATEPALETTEDATA *PDD_CREATEPALETTEDATA; +typedef struct _DD_CREATESURFACEDATA *PDD_CREATESURFACEDATA; +typedef struct _DD_CANCREATESURFACEDATA *PDD_CANCREATESURFACEDATA; +typedef struct _DD_WAITFORVERTICALBLANKDATA *PDD_WAITFORVERTICALBLANKDATA; +typedef struct _DD_DESTROYDRIVERDATA *PDD_DESTROYDRIVERDATA; +typedef struct _DD_SETMODEDATA *PDD_SETMODEDATA; +typedef struct _DD_DRVSETCOLORKEYDATA *PDD_DRVSETCOLORKEYDATA; +typedef struct _DD_GETSCANLINEDATA *PDD_GETSCANLINEDATA; +typedef struct _DD_MAPMEMORYDATA *PDD_MAPMEMORYDATA; + +typedef struct _DD_DESTROYPALETTEDATA *PDD_DESTROYPALETTEDATA; +typedef struct _DD_SETENTRIESDATA *PDD_SETENTRIESDATA; + +typedef struct _DD_BLTDATA *PDD_BLTDATA; +typedef struct _DD_LOCKDATA *PDD_LOCKDATA; +typedef struct _DD_UNLOCKDATA *PDD_UNLOCKDATA; +typedef struct _DD_UPDATEOVERLAYDATA *PDD_UPDATEOVERLAYDATA; +typedef struct _DD_SETOVERLAYPOSITIONDATA *PDD_SETOVERLAYPOSITIONDATA; +typedef struct _DD_SETPALETTEDATA *PDD_SETPALETTEDATA; +typedef struct _DD_FLIPDATA *PDD_FLIPDATA; +typedef struct _DD_DESTROYSURFACEDATA *PDD_DESTROYSURFACEDATA; +typedef struct _DD_SETCLIPLISTDATA *PDD_SETCLIPLISTDATA; +typedef struct _DD_ADDATTACHEDSURFACEDATA *PDD_ADDATTACHEDSURFACEDATA; +typedef struct _DD_SETCOLORKEYDATA *PDD_SETCOLORKEYDATA; +typedef struct _DD_GETBLTSTATUSDATA *PDD_GETBLTSTATUSDATA; +typedef struct _DD_GETFLIPSTATUSDATA *PDD_GETFLIPSTATUSDATA; + +typedef struct _DD_CANCREATEVPORTDATA *PDD_CANCREATEVPORTDATA; +typedef struct _DD_CREATEVPORTDATA *PDD_CREATEVPORTDATA; +typedef struct _DD_FLIPVPORTDATA *PDD_FLIPVPORTDATA; +typedef struct _DD_GETVPORTCONNECTDATA *PDD_GETVPORTCONNECTDATA; +typedef struct _DD_GETVPORTBANDWIDTHDATA *PDD_GETVPORTBANDWIDTHDATA; +typedef struct _DD_GETVPORTINPUTFORMATDATA *PDD_GETVPORTINPUTFORMATDATA; +typedef struct _DD_GETVPORTOUTPUTFORMATDATA *PDD_GETVPORTOUTPUTFORMATDATA; +typedef struct _DD_GETVPORTAUTOFLIPSURFACEDATA *PDD_GETVPORTAUTOFLIPSURFACEDATA; +typedef struct _DD_GETVPORTFIELDDATA *PDD_GETVPORTFIELDDATA; +typedef struct _DD_GETVPORTLINEDATA *PDD_GETVPORTLINEDATA; +typedef struct _DD_DESTROYVPORTDATA *PDD_DESTROYVPORTDATA; +typedef struct _DD_GETVPORTFLIPSTATUSDATA *PDD_GETVPORTFLIPSTATUSDATA; +typedef struct _DD_UPDATEVPORTDATA *PDD_UPDATEVPORTDATA; +typedef struct _DD_WAITFORVPORTSYNCDATA *PDD_WAITFORVPORTSYNCDATA; +typedef struct _DD_GETVPORTSIGNALDATA *PDD_GETVPORTSIGNALDATA; +typedef struct _DD_VPORTCOLORDATA *PDD_VPORTCOLORDATA; + +typedef struct _DD_COLORCONTROLDATA *PDD_COLORCONTROLDATA; + +typedef struct _DD_GETAVAILDRIVERMEMORYDATA *PDD_GETAVAILDRIVERMEMORYDATA; + +typedef struct _DD_FREEDRIVERMEMORYDATA *PDD_FREEDRIVERMEMORYDATA; +typedef struct _DD_SETEXCLUSIVEMODEDATA *PDD_SETEXCLUSIVEMODEDATA; +typedef struct _DD_FLIPTOGDISURFACEDATA *PDD_FLIPTOGDISURFACEDATA; + +typedef struct _DD_GETDRIVERINFODATA *PDD_GETDRIVERINFODATA; + +typedef struct _DD_SYNCSURFACEDATA *PDD_SYNCSURFACEDATA; +typedef struct _DD_SYNCVIDEOPORTDATA *PDD_SYNCVIDEOPORTDATA; + +typedef struct _DD_GETMOCOMPGUIDSDATA *PDD_GETMOCOMPGUIDSDATA; +typedef struct _DD_GETMOCOMPFORMATSDATA *PDD_GETMOCOMPFORMATSDATA; +typedef struct _DD_CREATEMOCOMPDATA *PDD_CREATEMOCOMPDATA; +typedef struct _DD_GETMOCOMPCOMPBUFFDATA *PDD_GETMOCOMPCOMPBUFFDATA; +typedef struct _DD_GETINTERNALMOCOMPDATA *PDD_GETINTERNALMOCOMPDATA; +typedef struct _DD_BEGINMOCOMPFRAMEDATA *PDD_BEGINMOCOMPFRAMEDATA; +typedef struct _DD_ENDMOCOMPFRAMEDATA *PDD_ENDMOCOMPFRAMEDATA; +typedef struct _DD_RENDERMOCOMPDATA *PDD_RENDERMOCOMPDATA; +typedef struct _DD_QUERYMOCOMPSTATUSDATA *PDD_QUERYMOCOMPSTATUSDATA; +typedef struct _DD_DESTROYMOCOMPDATA *PDD_DESTROYMOCOMPDATA; + +// Miscelleneous2 callbacks +typedef struct _DD_CREATESURFACEEXDATA *PDD_CREATESURFACEEXDATA; +typedef struct _DD_GETDRIVERSTATEDATA *PDD_GETDRIVERSTATEDATA; +typedef struct _DD_DESTROYDDLOCALDATA *PDD_DESTROYDDLOCALDATA; +typedef struct _DD_MORESURFACECAPS *PDD_MORESURFACECAPS; +typedef struct _DD_STEREOMODE *PDD_STEREOMODE; +typedef struct _DD_UPDATENONLOCALHEAPDATA *PDD_UPDATENONLOCALHEAPDATA; + + + +/* + * The following structure is defined in dmemmgr.h + */ +struct _DD_GETHEAPALIGNMENTDATA; +typedef struct _DD_GETHEAPALIGNMENTDATA *PDD_GETHEAPALIGNMENTDATA; + +/* + * value in the fpVidMem; indicates dwBlockSize is valid (surface object) + */ +#define DDHAL_PLEASEALLOC_BLOCKSIZE 0x00000002l +#define DDHAL_PLEASEALLOC_USERMEM 0x00000004l + +/* + * video memory data structures (passed in DD_HALINFO) + */ +typedef struct _VIDEOMEMORY +{ + DWORD dwFlags; // flags + FLATPTR fpStart; // start of memory chunk + union + { + FLATPTR fpEnd; // end of memory chunk + DWORD dwWidth; // width of chunk (rectanglar memory) + }; + DDSCAPS ddsCaps; // what this memory CANNOT be used for + DDSCAPS ddsCapsAlt; // what this memory CANNOT be used for if it must + union + { + struct _VMEMHEAP *lpHeap; // heap pointer, used by DDRAW + DWORD dwHeight; // height of chunk (rectanguler memory) + }; +} VIDEOMEMORY; +typedef VIDEOMEMORY *LPVIDEOMEMORY; + +/* + * flags for vidmem struct + */ +#define VIDMEM_ISLINEAR 0x00000001l // heap is linear +#define VIDMEM_ISRECTANGULAR 0x00000002l // heap is rectangular +#define VIDMEM_ISHEAP 0x00000004l // heap is preallocated by driver +#define VIDMEM_ISNONLOCAL 0x00000008l // heap populated with non-local video memory +#define VIDMEM_ISWC 0x00000010l // heap populated with write combining memory +#define VIDMEM_HEAPDISABLED 0x00000020l // heap disabled + +typedef struct _VIDEOMEMORYINFO +{ + FLATPTR fpPrimary; // offset to primary surface + DWORD dwFlags; // flags + DWORD dwDisplayWidth; // current display width + DWORD dwDisplayHeight; // current display height + LONG lDisplayPitch; // current display pitch + DDPIXELFORMAT ddpfDisplay; // pixel format of display + DWORD dwOffscreenAlign; // byte alignment for offscreen surfaces + DWORD dwOverlayAlign; // byte alignment for overlays + DWORD dwTextureAlign; // byte alignment for textures + DWORD dwZBufferAlign; // byte alignment for z buffers + DWORD dwAlphaAlign; // byte alignment for alpha + PVOID pvPrimary; // kernel-mode pointer to primary surface +} VIDEOMEMORYINFO; +typedef VIDEOMEMORYINFO *LPVIDEOMEMORYINFO; + +/* + * These structures contain the entry points in the display driver that + * DDRAW will call. Entries that the display driver does not care about + * should be NULL. Passed to DDRAW in DD_HALINFO. + */ +typedef struct _DD_DIRECTDRAW_GLOBAL *PDD_DIRECTDRAW_GLOBAL; +typedef struct _DD_SURFACE_GLOBAL *PDD_SURFACE_GLOBAL; +typedef struct _DD_PALETTE_GLOBAL *PDD_PALETTE_GLOBAL; +typedef struct _DD_CLIPPER_GLOBAL *PDD_CLIPPER_GLOBAL; +typedef struct _DD_DIRECTDRAW_LOCAL *PDD_DIRECTDRAW_LOCAL; +typedef struct _DD_SURFACE_LOCAL *PDD_SURFACE_LOCAL; +typedef struct _DD_SURFACE_MORE *PDD_SURFACE_MORE; +typedef struct _DD_SURFACE_INT *PDD_SURFACE_INT; +typedef struct _DD_VIDEOPORT_LOCAL *PDD_VIDEOPORT_LOCAL; +typedef struct _DD_PALETTE_LOCAL *PDD_PALETTE_LOCAL; +typedef struct _DD_CLIPPER_LOCAL *PDD_CLIPPER_LOCAL; +typedef struct _DD_MOTIONCOMP_LOCAL *PDD_MOTIONCOMP_LOCAL; + +/* + * DIRECTDRAW object callbacks + */ +typedef DWORD (APIENTRY *PDD_SETCOLORKEY)(PDD_DRVSETCOLORKEYDATA ); +typedef DWORD (APIENTRY *PDD_CANCREATESURFACE)(PDD_CANCREATESURFACEDATA ); +typedef DWORD (APIENTRY *PDD_WAITFORVERTICALBLANK)(PDD_WAITFORVERTICALBLANKDATA ); +typedef DWORD (APIENTRY *PDD_CREATESURFACE)(PDD_CREATESURFACEDATA); +typedef DWORD (APIENTRY *PDD_DESTROYDRIVER)(PDD_DESTROYDRIVERDATA); +typedef DWORD (APIENTRY *PDD_SETMODE)(PDD_SETMODEDATA); +typedef DWORD (APIENTRY *PDD_CREATEPALETTE)(PDD_CREATEPALETTEDATA); +typedef DWORD (APIENTRY *PDD_GETSCANLINE)(PDD_GETSCANLINEDATA); +typedef DWORD (APIENTRY *PDD_MAPMEMORY)(PDD_MAPMEMORYDATA); + +typedef DWORD (APIENTRY *PDD_GETDRIVERINFO)(PDD_GETDRIVERINFODATA); + +typedef struct DD_CALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + PDD_DESTROYDRIVER DestroyDriver; + PDD_CREATESURFACE CreateSurface; + PDD_SETCOLORKEY SetColorKey; + PDD_SETMODE SetMode; + PDD_WAITFORVERTICALBLANK WaitForVerticalBlank; + PDD_CANCREATESURFACE CanCreateSurface; + PDD_CREATEPALETTE CreatePalette; + PDD_GETSCANLINE GetScanLine; + PDD_MAPMEMORY MapMemory; +} DD_CALLBACKS; + +typedef DD_CALLBACKS *PDD_CALLBACKS; + +#define DDHAL_CB32_DESTROYDRIVER 0x00000001l +#define DDHAL_CB32_CREATESURFACE 0x00000002l +#define DDHAL_CB32_SETCOLORKEY 0x00000004l +#define DDHAL_CB32_SETMODE 0x00000008l +#define DDHAL_CB32_WAITFORVERTICALBLANK 0x00000010l +#define DDHAL_CB32_CANCREATESURFACE 0x00000020l +#define DDHAL_CB32_CREATEPALETTE 0x00000040l +#define DDHAL_CB32_GETSCANLINE 0x00000080l +#define DDHAL_CB32_MAPMEMORY 0x80000000l + +// This structure can be queried from the driver from NT5 onward +// using GetDriverInfo with GUID_MiscellaneousCallbacks + +typedef DWORD (APIENTRY *PDD_GETAVAILDRIVERMEMORY)(PDD_GETAVAILDRIVERMEMORYDATA); + +typedef struct _DD_MISCELLANEOUSCALLBACKS { + DWORD dwSize; + DWORD dwFlags; + PDD_GETAVAILDRIVERMEMORY GetAvailDriverMemory; +} DD_MISCELLANEOUSCALLBACKS, *PDD_MISCELLANEOUSCALLBACKS; + +#define DDHAL_MISCCB32_GETAVAILDRIVERMEMORY 0x00000001l + +// DDHAL_DDMISCELLANEOUS2CALLBACKS: +// This structure can be queried from the driver from DX7 onward +// using GetDriverInfo with GUID_Miscellaneous2Callbacks + +typedef DWORD (APIENTRY *PDD_ALPHABLT)(PDD_BLTDATA); +typedef DWORD (APIENTRY *PDD_CREATESURFACEEX)(PDD_CREATESURFACEEXDATA); +typedef DWORD (APIENTRY *PDD_GETDRIVERSTATE)(PDD_GETDRIVERSTATEDATA); +typedef DWORD (APIENTRY *PDD_DESTROYDDLOCAL)(PDD_DESTROYDDLOCALDATA); + +typedef struct _DD_MISCELLANEOUS2CALLBACKS { + DWORD dwSize; + DWORD dwFlags; + PDD_ALPHABLT AlphaBlt; + PDD_CREATESURFACEEX CreateSurfaceEx; + PDD_GETDRIVERSTATE GetDriverState; + PDD_DESTROYDDLOCAL DestroyDDLocal; +} DD_MISCELLANEOUS2CALLBACKS, *PDD_MISCELLANEOUS2CALLBACKS; + +#define DDHAL_MISC2CB32_ALPHABLT 0x00000001l +#define DDHAL_MISC2CB32_CREATESURFACEEX 0x00000002l +#define DDHAL_MISC2CB32_GETDRIVERSTATE 0x00000004l +#define DDHAL_MISC2CB32_DESTROYDDLOCAL 0x00000008l + +// This is used in the CreateSurfaceEx callback to indicate that the +// SwapHandle emulation is being done +#define DDHAL_CREATESURFACEEX_SWAPHANDLES 0x00000001l + +// This structure can be queried from the driver from NT5 onward +// using GetDriverInfo with GUID_NTCallbacks + +typedef DWORD (APIENTRY *PDD_FREEDRIVERMEMORY)(PDD_FREEDRIVERMEMORYDATA); +typedef DWORD (APIENTRY *PDD_SETEXCLUSIVEMODE)(PDD_SETEXCLUSIVEMODEDATA); +typedef DWORD (APIENTRY *PDD_FLIPTOGDISURFACE)(PDD_FLIPTOGDISURFACEDATA); + +typedef struct _DD_NTCALLBACKS { + DWORD dwSize; + DWORD dwFlags; + PDD_FREEDRIVERMEMORY FreeDriverMemory; + PDD_SETEXCLUSIVEMODE SetExclusiveMode; + PDD_FLIPTOGDISURFACE FlipToGDISurface; +} DD_NTCALLBACKS, *PDD_NTCALLBACKS; + +#define DDHAL_NTCB32_FREEDRIVERMEMORY 0x00000001l +#define DDHAL_NTCB32_SETEXCLUSIVEMODE 0x00000002l +#define DDHAL_NTCB32_FLIPTOGDISURFACE 0x00000004l + +/* + * DIRECTDRAWPALETTE object callbacks + */ +typedef DWORD (APIENTRY *PDD_PALCB_DESTROYPALETTE)(PDD_DESTROYPALETTEDATA ); +typedef DWORD (APIENTRY *PDD_PALCB_SETENTRIES)(PDD_SETENTRIESDATA ); + +typedef struct DD_PALETTECALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + PDD_PALCB_DESTROYPALETTE DestroyPalette; + PDD_PALCB_SETENTRIES SetEntries; +} DD_PALETTECALLBACKS; + +typedef DD_PALETTECALLBACKS *PDD_PALETTECALLBACKS; + +#define DDHAL_PALCB32_DESTROYPALETTE 0x00000001l +#define DDHAL_PALCB32_SETENTRIES 0x00000002l + +/* + * DIRECTDRAWSURFACE object callbacks + */ +typedef DWORD (APIENTRY *PDD_SURFCB_LOCK)(PDD_LOCKDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_UNLOCK)(PDD_UNLOCKDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_BLT)(PDD_BLTDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_UPDATEOVERLAY)(PDD_UPDATEOVERLAYDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_SETOVERLAYPOSITION)(PDD_SETOVERLAYPOSITIONDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_SETPALETTE)(PDD_SETPALETTEDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_FLIP)(PDD_FLIPDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_DESTROYSURFACE)(PDD_DESTROYSURFACEDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_SETCLIPLIST)(PDD_SETCLIPLISTDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_ADDATTACHEDSURFACE)(PDD_ADDATTACHEDSURFACEDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_SETCOLORKEY)(PDD_SETCOLORKEYDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_GETBLTSTATUS)(PDD_GETBLTSTATUSDATA); +typedef DWORD (APIENTRY *PDD_SURFCB_GETFLIPSTATUS)(PDD_GETFLIPSTATUSDATA); + + +typedef struct DD_SURFACECALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + PDD_SURFCB_DESTROYSURFACE DestroySurface; + PDD_SURFCB_FLIP Flip; + PDD_SURFCB_SETCLIPLIST SetClipList; + PDD_SURFCB_LOCK Lock; + PDD_SURFCB_UNLOCK Unlock; + PDD_SURFCB_BLT Blt; + PDD_SURFCB_SETCOLORKEY SetColorKey; + PDD_SURFCB_ADDATTACHEDSURFACE AddAttachedSurface; + PDD_SURFCB_GETBLTSTATUS GetBltStatus; + PDD_SURFCB_GETFLIPSTATUS GetFlipStatus; + PDD_SURFCB_UPDATEOVERLAY UpdateOverlay; + PDD_SURFCB_SETOVERLAYPOSITION SetOverlayPosition; + LPVOID reserved4; + PDD_SURFCB_SETPALETTE SetPalette; +} DD_SURFACECALLBACKS; +typedef DD_SURFACECALLBACKS *PDD_SURFACECALLBACKS; + +#define DDHAL_SURFCB32_DESTROYSURFACE 0x00000001l +#define DDHAL_SURFCB32_FLIP 0x00000002l +#define DDHAL_SURFCB32_SETCLIPLIST 0x00000004l +#define DDHAL_SURFCB32_LOCK 0x00000008l +#define DDHAL_SURFCB32_UNLOCK 0x00000010l +#define DDHAL_SURFCB32_BLT 0x00000020l +#define DDHAL_SURFCB32_SETCOLORKEY 0x00000040l +#define DDHAL_SURFCB32_ADDATTACHEDSURFACE 0x00000080l +#define DDHAL_SURFCB32_GETBLTSTATUS 0x00000100l +#define DDHAL_SURFCB32_GETFLIPSTATUS 0x00000200l +#define DDHAL_SURFCB32_UPDATEOVERLAY 0x00000400l +#define DDHAL_SURFCB32_SETOVERLAYPOSITION 0x00000800l +#define DDHAL_SURFCB32_RESERVED4 0x00001000l +#define DDHAL_SURFCB32_SETPALETTE 0x00002000l + +/* + * DIRECTVIDEOPORT object callbacks + */ +typedef DWORD (APIENTRY *PDD_VPORTCB_CANCREATEVIDEOPORT)(PDD_CANCREATEVPORTDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_CREATEVIDEOPORT)(PDD_CREATEVPORTDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_FLIP)(PDD_FLIPVPORTDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_GETBANDWIDTH)(PDD_GETVPORTBANDWIDTHDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_GETINPUTFORMATS)(PDD_GETVPORTINPUTFORMATDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_GETOUTPUTFORMATS)(PDD_GETVPORTOUTPUTFORMATDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_GETAUTOFLIPSURF)(PDD_GETVPORTAUTOFLIPSURFACEDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_GETFIELD)(PDD_GETVPORTFIELDDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_GETLINE)(PDD_GETVPORTLINEDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_GETVPORTCONNECT)(PDD_GETVPORTCONNECTDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_DESTROYVPORT)(PDD_DESTROYVPORTDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_GETFLIPSTATUS)(PDD_GETVPORTFLIPSTATUSDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_UPDATE)(PDD_UPDATEVPORTDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_WAITFORSYNC)(PDD_WAITFORVPORTSYNCDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_GETSIGNALSTATUS)(PDD_GETVPORTSIGNALDATA); +typedef DWORD (APIENTRY *PDD_VPORTCB_COLORCONTROL)(PDD_VPORTCOLORDATA); + +typedef struct DD_VIDEOPORTCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + PDD_VPORTCB_CANCREATEVIDEOPORT CanCreateVideoPort; + PDD_VPORTCB_CREATEVIDEOPORT CreateVideoPort; + PDD_VPORTCB_FLIP FlipVideoPort; + PDD_VPORTCB_GETBANDWIDTH GetVideoPortBandwidth; + PDD_VPORTCB_GETINPUTFORMATS GetVideoPortInputFormats; + PDD_VPORTCB_GETOUTPUTFORMATS GetVideoPortOutputFormats; + LPVOID lpReserved1; + PDD_VPORTCB_GETFIELD GetVideoPortField; + PDD_VPORTCB_GETLINE GetVideoPortLine; + PDD_VPORTCB_GETVPORTCONNECT GetVideoPortConnectInfo; + PDD_VPORTCB_DESTROYVPORT DestroyVideoPort; + PDD_VPORTCB_GETFLIPSTATUS GetVideoPortFlipStatus; + PDD_VPORTCB_UPDATE UpdateVideoPort; + PDD_VPORTCB_WAITFORSYNC WaitForVideoPortSync; + PDD_VPORTCB_GETSIGNALSTATUS GetVideoSignalStatus; + PDD_VPORTCB_COLORCONTROL ColorControl; +} DD_VIDEOPORTCALLBACKS; + +typedef DD_VIDEOPORTCALLBACKS *PDD_VIDEOPORTCALLBACKS; + +#define DDHAL_VPORT32_CANCREATEVIDEOPORT 0x00000001l +#define DDHAL_VPORT32_CREATEVIDEOPORT 0x00000002l +#define DDHAL_VPORT32_FLIP 0x00000004l +#define DDHAL_VPORT32_GETBANDWIDTH 0x00000008l +#define DDHAL_VPORT32_GETINPUTFORMATS 0x00000010l +#define DDHAL_VPORT32_GETOUTPUTFORMATS 0x00000020l +#define DDHAL_VPORT32_GETAUTOFLIPSURF 0x00000040l +#define DDHAL_VPORT32_GETFIELD 0x00000080l +#define DDHAL_VPORT32_GETLINE 0x00000100l +#define DDHAL_VPORT32_GETCONNECT 0x00000200l +#define DDHAL_VPORT32_DESTROY 0x00000400l +#define DDHAL_VPORT32_GETFLIPSTATUS 0x00000800l +#define DDHAL_VPORT32_UPDATE 0x00001000l +#define DDHAL_VPORT32_WAITFORSYNC 0x00002000l +#define DDHAL_VPORT32_GETSIGNALSTATUS 0x00004000l +#define DDHAL_VPORT32_COLORCONTROL 0x00008000l + +/* + * DIRECTDRAWCOLORCONTROL object callbacks + */ +typedef DWORD (APIENTRY *PDD_COLORCB_COLORCONTROL)(PDD_COLORCONTROLDATA); + +typedef struct _DD_COLORCONTROLCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + PDD_COLORCB_COLORCONTROL ColorControl; +} DD_COLORCONTROLCALLBACKS; + +typedef DD_COLORCONTROLCALLBACKS *PDD_COLORCONTROLCALLBACKS; + +#define DDHAL_COLOR_COLORCONTROL 0x00000001l + +/* + * DIRECTDRAWSURFACEKERNEL object callbacks + * This structure can be queried from the driver from DX5 onward + * using GetDriverInfo with GUID_KernelCallbacks + */ +typedef DWORD (APIENTRY *PDD_KERNELCB_SYNCSURFACE)(PDD_SYNCSURFACEDATA); +typedef DWORD (APIENTRY *PDD_KERNELCB_SYNCVIDEOPORT)(PDD_SYNCVIDEOPORTDATA); + +typedef struct DD_KERNELCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + PDD_KERNELCB_SYNCSURFACE SyncSurfaceData; + PDD_KERNELCB_SYNCVIDEOPORT SyncVideoPortData; +} DD_KERNELCALLBACKS, *PDD_KERNELCALLBACKS; + +#define DDHAL_KERNEL_SYNCSURFACEDATA 0x00000001l +#define DDHAL_KERNEL_SYNCVIDEOPORTDATA 0x00000002l + +/* + * DIRECTDRAWVIDEO object callbacks + */ +typedef DWORD (APIENTRY *PDD_MOCOMPCB_GETGUIDS)( PDD_GETMOCOMPGUIDSDATA); +typedef DWORD (APIENTRY *PDD_MOCOMPCB_GETFORMATS)( PDD_GETMOCOMPFORMATSDATA); +typedef DWORD (APIENTRY *PDD_MOCOMPCB_CREATE)( PDD_CREATEMOCOMPDATA); +typedef DWORD (APIENTRY *PDD_MOCOMPCB_GETCOMPBUFFINFO)( PDD_GETMOCOMPCOMPBUFFDATA); +typedef DWORD (APIENTRY *PDD_MOCOMPCB_GETINTERNALINFO)( PDD_GETINTERNALMOCOMPDATA); +typedef DWORD (APIENTRY *PDD_MOCOMPCB_BEGINFRAME)( PDD_BEGINMOCOMPFRAMEDATA); +typedef DWORD (APIENTRY *PDD_MOCOMPCB_ENDFRAME)( PDD_ENDMOCOMPFRAMEDATA); +typedef DWORD (APIENTRY *PDD_MOCOMPCB_RENDER)( PDD_RENDERMOCOMPDATA); +typedef DWORD (APIENTRY *PDD_MOCOMPCB_QUERYSTATUS)( PDD_QUERYMOCOMPSTATUSDATA); +typedef DWORD (APIENTRY *PDD_MOCOMPCB_DESTROY)( PDD_DESTROYMOCOMPDATA); + +typedef struct DD_MOTIONCOMPCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + PDD_MOCOMPCB_GETGUIDS GetMoCompGuids; + PDD_MOCOMPCB_GETFORMATS GetMoCompFormats; + PDD_MOCOMPCB_CREATE CreateMoComp; + PDD_MOCOMPCB_GETCOMPBUFFINFO GetMoCompBuffInfo; + PDD_MOCOMPCB_GETINTERNALINFO GetInternalMoCompInfo; + PDD_MOCOMPCB_BEGINFRAME BeginMoCompFrame; + PDD_MOCOMPCB_ENDFRAME EndMoCompFrame; + PDD_MOCOMPCB_RENDER RenderMoComp; + PDD_MOCOMPCB_QUERYSTATUS QueryMoCompStatus; + PDD_MOCOMPCB_DESTROY DestroyMoComp; +} DD_MOTIONCOMPCALLBACKS; +typedef DD_MOTIONCOMPCALLBACKS *PDD_MOTIONCOMPCALLBACKS; + +#define DDHAL_MOCOMP32_GETGUIDS 0x00000001 +#define DDHAL_MOCOMP32_GETFORMATS 0x00000002 +#define DDHAL_MOCOMP32_CREATE 0x00000004 +#define DDHAL_MOCOMP32_GETCOMPBUFFINFO 0x00000008 +#define DDHAL_MOCOMP32_GETINTERNALINFO 0x00000010 +#define DDHAL_MOCOMP32_BEGINFRAME 0x00000020 +#define DDHAL_MOCOMP32_ENDFRAME 0x00000040 +#define DDHAL_MOCOMP32_RENDER 0x00000080 +#define DDHAL_MOCOMP32_QUERYSTATUS 0x00000100 +#define DDHAL_MOCOMP32_DESTROY 0x00000200 + +/* + * CALLBACK RETURN VALUES + * + * these are values returned by the driver from the above callback routines + */ +/* + * indicates that the display driver didn't do anything with the call + */ +#define DDHAL_DRIVER_NOTHANDLED 0x00000000l + +/* + * indicates that the display driver handled the call; HRESULT value is valid + */ +#define DDHAL_DRIVER_HANDLED 0x00000001l + +/* + * indicates that the display driver couldn't handle the call because it + * ran out of color key hardware resources + */ +#define DDHAL_DRIVER_NOCKEYHW 0x00000002l + +/* + * Capabilities structure for non-local video memory + */ +typedef struct _DD_NONLOCALVIDMEMCAPS +{ + DWORD dwSize; + DWORD dwNLVBCaps; // driver specific capabilities for non-local->local vidmem blts + DWORD dwNLVBCaps2; // more driver specific capabilities non-local->local vidmem blts + DWORD dwNLVBCKeyCaps; // driver color key capabilities for non-local->local vidmem blts + DWORD dwNLVBFXCaps; // driver FX capabilities for non-local->local blts + DWORD dwNLVBRops[DD_ROP_SPACE]; // ROPS supported for non-local->local blts +} DD_NONLOCALVIDMEMCAPS; +typedef struct _DD_NONLOCALVIDMEMCAPS *PDD_NONLOCALVIDMEMCAPS; + +/* + * DDRAW internal version of DIRECTDRAWPALETTE object; it has data after the vtable + */ +typedef struct _DD_PALETTE_GLOBAL +{ + ULONG_PTR dwReserved1; // reserved for use by display driver +} DD_PALETTE_GLOBAL; + +typedef struct _DD_PALETTE_LOCAL +{ + ULONG dwReserved0; // reserved for future expansion + ULONG_PTR dwReserved1; // reserved for use by display driver +} DD_PALETTE_LOCAL; + +/* + * DDRAW internal version of DIRECTDRAWCLIPPER object; it has data after the vtable + */ +typedef struct _DD_CLIPPER_GLOBAL +{ + ULONG_PTR dwReserved1; // reserved for use by display driver +} DD_CLIPPER_GLOBAL; + +typedef struct _DD_CLIPPER_LOCAL +{ + ULONG_PTR dwReserved1; // reserved for use by display driver +} DD_CLIPPER_LOCAL; + +typedef struct _DD_ATTACHLIST *PDD_ATTACHLIST; +typedef struct _DD_ATTACHLIST +{ + PDD_ATTACHLIST lpLink; // link to next attached surface + PDD_SURFACE_LOCAL lpAttached; // attached surface local object +} DD_ATTACHLIST; + +/* + * DDRAW surface interface struct + */ +typedef struct _DD_SURFACE_INT +{ + PDD_SURFACE_LOCAL lpLcl; // pointer to interface data +} DD_SURFACE_INT; + +/* + * DDRAW internal version of DIRECTDRAWSURFACE struct + * + * the GBL structure is global data for all duplicate objects + */ +typedef struct _DD_SURFACE_GLOBAL +{ + union + { + DWORD dwBlockSizeY; // block size that display driver requested (return) + LONG lSlicePitch; // slice pitch for volume textures + }; + + union + { + LPVIDEOMEMORY lpVidMemHeap; // heap vidmem was alloc'ed from + DWORD dwBlockSizeX; // block size that display driver requested (return) + DWORD dwUserMemSize; // user-mode memory size that display driver requested (return) + }; + + FLATPTR fpVidMem; // pointer to video memory + union + { + LONG lPitch; // pitch of surface + DWORD dwLinearSize; // linear size of non-rectangular surface + }; + LONG yHint; // y-coordinate of surface + LONG xHint; // x-coordinate of surface + DWORD wHeight; // height of surface + DWORD wWidth; // width of surface + ULONG_PTR dwReserved1; // reserved for use by display driver + DDPIXELFORMAT ddpfSurface; // pixel format of surface + FLATPTR fpHeapOffset; // raw offset in source heap + HANDLE hCreatorProcess;// opaque identifier for creating process +} DD_SURFACE_GLOBAL; + +/* + * a structure holding additional LCL surface information (to maintain some + * compatibility with Win95). + */ +typedef struct _DD_SURFACE_MORE +{ + DWORD dwMipMapCount; // number of mip-map levels + PDD_VIDEOPORT_LOCAL lpVideoPort; // video port currently writing data to this surface + DWORD dwOverlayFlags; // current overlay flags + DDSCAPSEX ddsCapsEx; // more surface capabilities + DWORD dwSurfaceHandle; // cookie for use with CreateSurfaceEx DDI +} DD_SURFACE_MORE, *PDD_SURFACE_MORE; + +/* + * the LCL structure is local data for each individual surface object + */ +typedef struct _DD_SURFACE_LOCAL +{ + PDD_SURFACE_GLOBAL lpGbl; // pointer to surface shared data + DWORD dwFlags; // flags + DDSCAPS ddsCaps; // capabilities of surface + ULONG_PTR dwReserved1; // reserved for use by display driver + union + { + DDCOLORKEY ddckCKSrcOverlay; // color key for source overlay use + DDCOLORKEY ddckCKSrcBlt; // color key for source blt and texture use + }; + union + { + DDCOLORKEY ddckCKDestOverlay;// color key for destination overlay use + DDCOLORKEY ddckCKDestBlt; // color key for destination blt + }; + PDD_SURFACE_MORE lpSurfMore; // pointer to additional local data + PDD_ATTACHLIST lpAttachList; // link to surfaces we attached to + PDD_ATTACHLIST lpAttachListFrom; // link to surfaces that attached to us + RECT rcOverlaySrc; // Overlay source rectangle relative to surface +} DD_SURFACE_LOCAL; + +#define DDRAWISURF_HASCKEYSRCBLT 0x00000800L // surface has CKSrcBlt +#define DDRAWISURF_HASPIXELFORMAT 0x00002000L // surface structure has pixel format data +#define DDRAWISURF_HASOVERLAYDATA 0x00004000L // surface structure has overlay data +#define DDRAWISURF_FRONTBUFFER 0x04000000L // surface was originally a front buffer +#define DDRAWISURF_BACKBUFFER 0x08000000L // surface was originally backbuffer +#define DDRAWISURF_INVALID 0x10000000L // surface has been invalidated by mode set +#define DDRAWISURF_DRIVERMANAGED 0x40000000L // surface is a driver managed texture (D3D) + +/* + * More driver capabilities (in addition to those described in DDCORECAPS). + * This struct contains the caps bits added to the DDCAPS structure in DX6. + */ +typedef struct _DD_MORECAPS +{ + DWORD dwSize; // size of DDMORECAPS structure + DWORD dwAlphaCaps; // driver-specific alpha caps for overlays & Vmem->Vmem blts + DWORD dwSVBAlphaCaps; // driver-specific alpha capabilities for System->Vmem blts + DWORD dwVSBAlphaCaps; // driver-specific alpha capabilities for Vmem->System blts + DWORD dwSSBAlphaCaps; // driver-specific alpha capabilities for System->System blts + DWORD dwFilterCaps; // driver-specific filter caps for overlays & Vmem->Vmem blts + DWORD dwSVBFilterCaps; // driver-specific filter capabilities for System->Vmem blts + DWORD dwVSBFilterCaps; // driver-specific filter capabilities for Vmem->System blts + DWORD dwSSBFilterCaps; // driver-specific filter capabilities for System->System blts +} DD_MORECAPS; + +typedef DD_MORECAPS *PDD_MORECAPS; + +/* + * rop stuff + */ +#define ROP_HAS_SOURCE 0x00000001l +#define ROP_HAS_PATTERN 0x00000002l +#define ROP_HAS_SOURCEPATTERN ROP_HAS_SOURCE | ROP_HAS_PATTERN + +/* + * This structure mirrors the first entries of the DDCAPS but is of a fixed + * size and will not grow as DDCAPS grows. This is the structure your driver + * returns in DDCOREINFO. Additional caps will be requested via a GetDriverInfo + * call. + */ +typedef struct _DDNTCORECAPS +{ + DWORD dwSize; // size of the DDDRIVERCAPS structure + DWORD dwCaps; // driver specific capabilities + DWORD dwCaps2; // more driver specific capabilites + DWORD dwCKeyCaps; // color key capabilities of the surface + DWORD dwFXCaps; // driver specific stretching and effects capabilites + DWORD dwFXAlphaCaps; // alpha driver specific capabilities + DWORD dwPalCaps; // palette capabilities + DWORD dwSVCaps; // stereo vision capabilities + DWORD dwAlphaBltConstBitDepths; // DDBD_2,4,8 + DWORD dwAlphaBltPixelBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaBltSurfaceBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaOverlayConstBitDepths; // DDBD_2,4,8 + DWORD dwAlphaOverlayPixelBitDepths; // DDBD_1,2,4,8 + DWORD dwAlphaOverlaySurfaceBitDepths; // DDBD_1,2,4,8 + DWORD dwZBufferBitDepths; // DDBD_8,16,24,32 + DWORD dwVidMemTotal; // total amount of video memory + DWORD dwVidMemFree; // amount of free video memory + DWORD dwMaxVisibleOverlays; // maximum number of visible overlays + DWORD dwCurrVisibleOverlays; // current number of visible overlays + DWORD dwNumFourCCCodes; // number of four cc codes + DWORD dwAlignBoundarySrc; // source rectangle alignment + DWORD dwAlignSizeSrc; // source rectangle byte size + DWORD dwAlignBoundaryDest; // dest rectangle alignment + DWORD dwAlignSizeDest; // dest rectangle byte size + DWORD dwAlignStrideAlign; // stride alignment + DWORD dwRops[DD_ROP_SPACE]; // ROPS supported + DDSCAPS ddsCaps; // DDSCAPS structure has all the general capabilities + DWORD dwMinOverlayStretch; // minimum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMaxOverlayStretch; // maximum overlay stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMinLiveVideoStretch; // minimum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMaxLiveVideoStretch; // maximum live video stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMinHwCodecStretch; // minimum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwMaxHwCodecStretch; // maximum hardware codec stretch factor multiplied by 1000, eg 1000 == 1.0, 1300 == 1.3 + DWORD dwReserved1; // reserved + DWORD dwReserved2; // reserved + DWORD dwReserved3; // reserved + DWORD dwSVBCaps; // driver specific capabilities for System->Vmem blts + DWORD dwSVBCKeyCaps; // driver color key capabilities for System->Vmem blts + DWORD dwSVBFXCaps; // driver FX capabilities for System->Vmem blts + DWORD dwSVBRops[DD_ROP_SPACE];// ROPS supported for System->Vmem blts + DWORD dwVSBCaps; // driver specific capabilities for Vmem->System blts + DWORD dwVSBCKeyCaps; // driver color key capabilities for Vmem->System blts + DWORD dwVSBFXCaps; // driver FX capabilities for Vmem->System blts + DWORD dwVSBRops[DD_ROP_SPACE];// ROPS supported for Vmem->System blts + DWORD dwSSBCaps; // driver specific capabilities for System->System blts + DWORD dwSSBCKeyCaps; // driver color key capabilities for System->System blts + DWORD dwSSBFXCaps; // driver FX capabilities for System->System blts + DWORD dwSSBRops[DD_ROP_SPACE];// ROPS supported for System->System blts + DWORD dwMaxVideoPorts; // maximum number of usable video ports + DWORD dwCurrVideoPorts; // current number of video ports used + DWORD dwSVBCaps2; // more driver specific capabilities for System->Vmem blts +} DDNTCORECAPS, *PDDNTCORECAPS; + +/* + * structure for D3D buffer callbacks + */ +typedef struct _DD_D3DBUFCALLBACKS +{ + DWORD dwSize; + DWORD dwFlags; + PDD_CANCREATESURFACE CanCreateD3DBuffer; + PDD_CREATESURFACE CreateD3DBuffer; + PDD_SURFCB_DESTROYSURFACE DestroyD3DBuffer; + PDD_SURFCB_LOCK LockD3DBuffer; + PDD_SURFCB_UNLOCK UnlockD3DBuffer; +} DD_D3DBUFCALLBACKS, *PDD_D3DBUFCALLBACKS; + +#define DDHAL_EXEBUFCB32_CANCREATEEXEBUF 0x00000001l +#define DDHAL_EXEBUFCB32_CREATEEXEBUF 0x00000002l +#define DDHAL_EXEBUFCB32_DESTROYEXEBUF 0x00000004l +#define DDHAL_EXEBUFCB32_LOCKEXEBUF 0x00000008l +#define DDHAL_EXEBUFCB32_UNLOCKEXEBUF 0x00000010l + +/* + * NT friendly names + */ +#define DDHAL_D3DBUFCB32_CANCREATED3DBUF DDHAL_EXEBUFCB32_CANCREATEEXEBUF +#define DDHAL_D3DBUFCB32_CREATED3DBUF DDHAL_EXEBUFCB32_CREATEEXEBUF +#define DDHAL_D3DBUFCB32_DESTROYD3DBUF DDHAL_EXEBUFCB32_DESTROYEXEBUF +#define DDHAL_D3DBUFCB32_LOCKD3DBUF DDHAL_EXEBUFCB32_LOCKEXEBUF +#define DDHAL_D3DBUFCB32_UNLOCKD3DBUF DDHAL_EXEBUFCB32_UNLOCKEXEBUF + + +/* + * structure for display driver to call DDHAL_Create with + * the _V4 version was used by NT4 drivers + */ +typedef struct _DD_HALINFO_V4 +{ + DWORD dwSize; + VIDEOMEMORYINFO vmiData; // video memory info + DDNTCORECAPS ddCaps; // hw specific caps + PDD_GETDRIVERINFO GetDriverInfo; // callback for querying driver data + DWORD dwFlags; // create flags +} DD_HALINFO_V4, *PDD_HALINFO_V4; + +typedef struct _DD_HALINFO +{ + DWORD dwSize; + VIDEOMEMORYINFO vmiData; // video memory info + DDNTCORECAPS ddCaps; // hw specific caps + PDD_GETDRIVERINFO GetDriverInfo; // callback for querying driver data + DWORD dwFlags; // create flags + LPVOID lpD3DGlobalDriverData; // D3D global Data + LPVOID lpD3DHALCallbacks; // D3D callbacks + PDD_D3DBUFCALLBACKS lpD3DBufCallbacks; // Buffer callbacks +} DD_HALINFO, *PDD_HALINFO; + +#define DDHALINFO_GETDRIVERINFOSET 0x00000004l // indicates that GetDriverInfo is set +#define DDHALINFO_GETDRIVERINFO2 0x00000008l // indicates driver support GetDriverInfo2 variant + // of GetDriverInfo. New for DX 8.0 + + +/* + * DDRAW version of DirectDraw object; + * + */ +typedef struct _DD_DIRECTDRAW_GLOBAL +{ + VOID* dhpdev; // driver's private PDEV pointer + ULONG_PTR dwReserved1; // reserved for use by display driver + ULONG_PTR dwReserved2; // reserved for use by display driver + LPDDVIDEOPORTCAPS lpDDVideoPortCaps;// Info returned by the HAL (an array if more than one video port) +} DD_DIRECTDRAW_GLOBAL; + +typedef struct _DD_DIRECTDRAW_LOCAL +{ + PDD_DIRECTDRAW_GLOBAL lpGbl; // pointer to data +} DD_DIRECTDRAW_LOCAL; + +typedef struct _DD_VIDEOPORT_LOCAL +{ + PDD_DIRECTDRAW_LOCAL lpDD; // pointer to DIRECTDRAW_LCL + DDVIDEOPORTDESC ddvpDesc; // description used at create time + DDVIDEOPORTINFO ddvpInfo; // most recent video port info + PDD_SURFACE_INT lpSurface; // surface receiving the data + PDD_SURFACE_INT lpVBISurface; // surface receiving the VBI data + DWORD dwNumAutoflip; // Number of current autoflip surfaces + DWORD dwNumVBIAutoflip; // Number of VBI surfaces currently being autoflipped + ULONG_PTR dwReserved1; // Reserved for display driver + ULONG_PTR dwReserved2; // Reserved for display driver + ULONG_PTR dwReserved3; // Reserved for display driver +} DD_VIDEOPORT_LOCAL; + +#define DDRAWIVPORT_ON 0x00000001 // Video port is pumping data +#define DDRAWIVPORT_SOFTWARE_AUTOFLIP 0x00000002 // Video port cannot use hardware autoflip +#define DDRAWIVPORT_COLORKEYANDINTERP 0x00000004 // Overlay cannot bob and colorkey at same time + +typedef struct _DD_MOTIONCOMP_LOCAL +{ + PDD_DIRECTDRAW_LOCAL lpDD; // pointer to DIRECTDRAW_LCL + GUID guid; + DWORD dwUncompWidth; + DWORD dwUncompHeight; + DDPIXELFORMAT ddUncompPixelFormat; + DWORD dwDriverReserved1; + DWORD dwDriverReserved2; + DWORD dwDriverReserved3; + LPVOID lpDriverReserved1; + LPVOID lpDriverReserved2; + LPVOID lpDriverReserved3; +} DD_MOTIONCOMP_LOCAL; + + +/* + * More driver surface capabilities (in addition to those described in DDCORECAPS). + * This struct contains the caps bits added to the DDCAPS.ddsCaps structure in DX6. + */ +typedef struct _DD_MORESURFACECAPS +{ + DWORD dwSize; // size of DDMORESURFACECAPS structure + DDSCAPSEX ddsCapsMore; + /* + * The DDMORESURFACECAPS struct is of variable size. The following list may be + * filled in by DX6-aware drivers (see DDVERSIONINFO) to restrict their + * video memory heaps (those which are exposed to DirectDraw) to + * certain sets of DDSCAPS_ bits. Thse entries are exactly analogous to + * the ddsCaps and ddsCapsAlt members of the VIDMEM structures listed in + * the VIDMEMINFO.pvmList member of DDHALINFO.vmiData. There should be + * exactly DDHALINFO.vmiData.dwNumHeaps copies of tagExtendedHeapRestrictions + * in this struct. The size of this struct is thus: + * DDMORESURFACECAPS.dwSize = sizeof(DDMORESURFACECAPS) + + * (DDHALINFO.vmiData.dwNumHeaps-1) * sizeof(DDSCAPSEX)*2; + * Note the -1 accounts for the fact that DDMORESURFACECAPS is declared to have 1 + * tagExtendedHeapRestrictions member. + */ + struct tagNTExtendedHeapRestrictions + { + DDSCAPSEX ddsCapsEx; + DDSCAPSEX ddsCapsExAlt; + } ddsExtendedHeapRestrictions[1]; +} DD_MORESURFACECAPS; + +// for DX7, we check each mode in the driver if it supports +// Stereo, driver returns DD_OK if mode is ok for stereo +typedef struct _DD_STEREOMODE +{ + DWORD dwSize; // size of DDSTEREOMODECAPS structure + + DWORD dwHeight; + DWORD dwWidth; + DWORD dwBpp; + DWORD dwRefreshRate; + + BOOL bSupported; + +} DD_STEREOMODE; + +typedef struct _DD_UPDATENONLOCALHEAPDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + DWORD dwHeap; // heap index + FLATPTR fpGARTLin; // linear GART address of start of heap + FLATPTR fpGARTDev; // high physical GART address of start of heap + ULONG_PTR ulPolicyMaxBytes; // maximum amount of AGP memory to use + HRESULT ddRVal; // return value + VOID* UpdateNonLocalHeap; // Unused: Win95 compatibility +} DD_UPDATENONLOCALHEAPDATA; + +/* + * Private caps that the driver passes to change DirectDraw behavior. + * These caps are not exposed to the application + */ + +typedef struct DD_NTPRIVATEDRIVERCAPS +{ + DWORD dwSize; + DWORD dwPrivateCaps; +} DD_NTPRIVATEDRIVERCAPS; + +// Driver wants DD_CREATESURFACEDATA.lplpSList to contain a list of +// surfaces to create rather than always a single surface. +#define DDHAL_PRIVATECAP_ATOMICSURFACECREATION 0x00000001l + +// Driver wants to be notified when creating a primary surface. +#define DDHAL_PRIVATECAP_NOTIFYPRIMARYCREATION 0x00000002l + +#define DDHAL_PRIVATECAP_RESERVED1 0x00000004l + +///////////////////////////////////////////////////////////////////////////// +// NT Note: +// +// The following structures must match, field for field, the corresponding +// structures as declared in 'ddrawi.h.' We cannot simply use the same +// structures because the sub-structures such as DD_DIRECTDRAW_GLOBAL are +// different, and have to be properly typed for the drivers. +// +///////////////////////////////////////////////////////////////////////////// + +/**************************************************************************** + * + * DDHAL structures for Surface Object callbacks + * + ***************************************************************************/ + +/* + * This special flag is seen only by drivers. The DD runtime sets this + * bit in DDHAL_BLTDATA.dwFlags if the dwAFlags and ddrgbaScaleFactors + * members at the end of the DDHAL_BLTDATA structure are valid. + * The flag is always set if the DDHAL_BLTDATA structure is passed to + * the driver via the AlphaBlt HAL callback; otherwise, the flag is zero. + */ +#define DDBLT_AFLAGS 0x80000000L + +/* + * This flag will be set in DDHAL_BLTDATA.dwAFlags if the call was originated + * by the AlphaBlt API method. If the call was originated by the Blt API, + * this flag will not be set. + * Drivers which have a unified Blt/AlphaBlt DDI can use this flag to distinguish + * between the two API calls. + */ +#define DDABLT_SRCOVERDEST 0x00000001L + +/* + * structure for passing information to DDHAL Blt fn + */ +typedef struct _DD_BLTDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDDestSurface;// dest surface + RECTL rDest; // dest rect + PDD_SURFACE_LOCAL lpDDSrcSurface; // src surface + RECTL rSrc; // src rect + DWORD dwFlags; // blt flags + DWORD dwROPFlags; // ROP flags (valid for ROPS only) + DDBLTFX bltFX; // blt FX + HRESULT ddRVal; // return value + VOID* Blt; // Unused: Win95 compatibility + BOOL IsClipped; // clipped blt? + RECTL rOrigDest; // unclipped dest rect + // (only valid if IsClipped) + RECTL rOrigSrc; // unclipped src rect + // (only valid if IsClipped) + DWORD dwRectCnt; // count of dest rects + // (only valid if IsClipped) + LPRECT prDestRects; // array of dest rects + // (only valid if IsClipped) + DWORD dwAFlags; // DDABLT_ flags (for AlphaBlt DDI) + DDARGB ddargbScaleFactors; // ARGB scaling factors (AlphaBlt) +} DD_BLTDATA; + +/* + * structure for passing information to DDHAL Lock fn + */ +typedef struct _DD_LOCKDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface struct + DWORD bHasRect; // rArea is valid + RECTL rArea; // area being locked + LPVOID lpSurfData; // pointer to screen memory (return value) + HRESULT ddRVal; // return value + VOID* Lock; // Unused: Win95 compatibility + DWORD dwFlags; // DDLOCK flags + FLATPTR fpProcess; // process start address +} DD_LOCKDATA; + +/* + * structure for passing information to DDHAL Unlock fn + */ +typedef struct _DD_UNLOCKDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface struct + HRESULT ddRVal; // return value + VOID* Unlock; // Unused: Win95 compatibility +} DD_UNLOCKDATA; + +/* + * structure for passing information to DDHAL UpdateOverlay fn + */ +typedef struct _DD_UPDATEOVERLAYDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDDestSurface;// dest surface + RECTL rDest; // dest rect + PDD_SURFACE_LOCAL lpDDSrcSurface; // src surface + RECTL rSrc; // src rect + DWORD dwFlags; // flags + DDOVERLAYFX overlayFX; // overlay FX + HRESULT ddRVal; // return value + VOID* UpdateOverlay; // Unused: Win95 compatibility +} DD_UPDATEOVERLAYDATA; + +/* + * structure for passing information to DDHAL UpdateOverlay fn + */ +typedef struct _DD_SETOVERLAYPOSITIONDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSrcSurface; // src surface + PDD_SURFACE_LOCAL lpDDDestSurface;// dest surface + LONG lXPos; // x position + LONG lYPos; // y position + HRESULT ddRVal; // return value + VOID* SetOverlayPosition; // Unused: Win95 compatibility +} DD_SETOVERLAYPOSITIONDATA; +/* + * structure for passing information to DDHAL SetPalette fn + */ +typedef struct _DD_SETPALETTEDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface struct + PDD_PALETTE_GLOBAL lpDDPalette; // palette to set to surface + HRESULT ddRVal; // return value + VOID* SetPalette; // Unused: Win95 compatibility + BOOL Attach; // attach this palette? +} DD_SETPALETTEDATA; + +/* + * structure for passing information to DDHAL Flip fn + */ +typedef struct _DD_FLIPDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpSurfCurr; // current surface + PDD_SURFACE_LOCAL lpSurfTarg; // target surface (to flip to) + DWORD dwFlags; // flags + HRESULT ddRVal; // return value + VOID* Flip; // Unused: Win95 compatibility + PDD_SURFACE_LOCAL lpSurfCurrLeft; // left target surface (to flip to) + PDD_SURFACE_LOCAL lpSurfTargLeft; // left target surface (to flip to) +} DD_FLIPDATA; + +/* + * structure for passing information to DDHAL DestroySurface fn + */ +typedef struct _DD_DESTROYSURFACEDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface struct + HRESULT ddRVal; // return value + VOID* DestroySurface;// Unused: Win95 compatibility +} DD_DESTROYSURFACEDATA; + +/* + * structure for passing information to DDHAL SetClipList fn + */ +typedef struct _DD_SETCLIPLISTDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface struct + HRESULT ddRVal; // return value + VOID* SetClipList; // Unused: Win95 compatibility +} DD_SETCLIPLISTDATA; + +/* + * structure for passing information to DDHAL AddAttachedSurface fn + */ +typedef struct _DD_ADDATTACHEDSURFACEDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface struct + PDD_SURFACE_LOCAL lpSurfAttached; // surface to attach + HRESULT ddRVal; // return value + VOID* AddAttachedSurface; // Unused: Win95 compatibility +} DD_ADDATTACHEDSURFACEDATA; + +/* + * structure for passing information to DDHAL SetColorKey fn + */ +typedef struct _DD_SETCOLORKEYDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface struct + DWORD dwFlags; // flags + DDCOLORKEY ckNew; // new color key + HRESULT ddRVal; // return value + VOID* SetColorKey; // Unused: Win95 compatibility +} DD_SETCOLORKEYDATA; + +/* + * structure for passing information to DDHAL GetBltStatus fn + */ +typedef struct _DD_GETBLTSTATUSDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface struct + DWORD dwFlags; // flags + HRESULT ddRVal; // return value + VOID* GetBltStatus; // Unused: Win95 compatibility +} DD_GETBLTSTATUSDATA; + +/* + * structure for passing information to DDHAL GetFlipStatus fn + */ +typedef struct _DD_GETFLIPSTATUSDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface struct + DWORD dwFlags; // flags + HRESULT ddRVal; // return value + VOID* GetFlipStatus; // Unused: Win95 compatibility +} DD_GETFLIPSTATUSDATA; + +/**************************************************************************** + * + * DDHAL structures for Palette Object callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL DestroyPalette fn + */ +typedef struct _DD_DESTROYPALETTEDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_PALETTE_GLOBAL lpDDPalette; // palette struct + HRESULT ddRVal; // return value + VOID* DestroyPalette; // Unused: Win95 compatibility +} DD_DESTROYPALETTEDATA; + +/* + * structure for passing information to DDHAL SetEntries fn + */ +typedef struct _DD_SETENTRIESDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_PALETTE_GLOBAL lpDDPalette; // palette struct + DWORD dwBase; // base palette index + DWORD dwNumEntries; // number of palette entries + LPPALETTEENTRY lpEntries; // color table + HRESULT ddRVal; // return value + VOID* SetEntries; // Unused: Win95 compatibility +} DD_SETENTRIESDATA; + +/**************************************************************************** + * + * DDHAL structures for Driver Object callbacks + * + ***************************************************************************/ + +typedef DDSURFACEDESC* PDD_SURFACEDESC; + +/* + * structure for passing information to DDHAL CreateSurface fn + */ +typedef struct _DD_CREATESURFACEDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACEDESC lpDDSurfaceDesc;// description of surface being created + PDD_SURFACE_LOCAL *lplpSList; // list of created surface objects + DWORD dwSCnt; // number of surfaces in SList + HRESULT ddRVal; // return value + VOID* CreateSurface; // Unused: Win95 compatibility +} DD_CREATESURFACEDATA; + +/* + * structure for passing information to DDHAL CanCreateSurface fn + */ +typedef struct _DD_CANCREATESURFACEDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACEDESC lpDDSurfaceDesc; // description of surface being created + DWORD bIsDifferentPixelFormat;// pixel format differs from primary surface + HRESULT ddRVal; // return value + VOID* CanCreateSurface; // Unused: Win95 compatibility +} DD_CANCREATESURFACEDATA; + +/* + * structure for passing information to DDHAL CreatePalette fn + */ +typedef struct _DD_CREATEPALETTEDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_PALETTE_GLOBAL lpDDPalette; // ddraw palette struct + LPPALETTEENTRY lpColorTable; // colors to go in palette + HRESULT ddRVal; // return value + VOID* CreatePalette; // Unused: Win95 compatibility + BOOL is_excl; // process has exclusive mode +} DD_CREATEPALETTEDATA; + +/* + * Return if the vertical blank is in progress + */ +#define DDWAITVB_I_TESTVB 0x80000006l + +/* + * structure for passing information to DDHAL WaitForVerticalBlank fn + */ +typedef struct _DD_WAITFORVERTICALBLANKDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + DWORD dwFlags; // flags + DWORD bIsInVB; // is in vertical blank + ULONG_PTR hEvent; // event + HRESULT ddRVal; // return value + VOID* WaitForVerticalBlank; // Unused: Win95 compatibility +} DD_WAITFORVERTICALBLANKDATA; + +/* + * structure for passing information to DDHAL driver SetColorKey fn + */ +typedef struct _DD_DRVSETCOLORKEYDATA +{ + PDD_SURFACE_LOCAL lpDDSurface; // surface struct + DWORD dwFlags; // flags + DDCOLORKEY ckNew; // new color key + HRESULT ddRVal; // return value + VOID* SetColorKey; // Unused: Win95 compatibility +} DD_DRVSETCOLORKEYDATA; + +/* + * structure for passing information to DDHAL GetScanLine fn + */ +typedef struct _DD_GETSCANLINEDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + DWORD dwScanLine; // returned scan line + HRESULT ddRVal; // return value + VOID* GetScanLine; // Unused: Win95 compatibility +} DD_GETSCANLINEDATA; + +/* + * structure for passing information to DDHAL MapMemory fn + */ +typedef struct _DD_MAPMEMORYDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + BOOL bMap; // TRUE if map; FALSe if un-map + HANDLE hProcess; // process handle + FLATPTR fpProcess; // returned address in process' address space + HRESULT ddRVal; // return value +} DD_MAPMEMORYDATA; + +/**************************************************************************** + * + * DDHAL structures for VideoPort callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL CanCreateVideoPort fn + */ +typedef struct _DD_CANCREATEVPORTDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + LPDDVIDEOPORTDESC lpDDVideoPortDesc; + HRESULT ddRVal; // return value + VOID* CanCreateVideoPort; // Unused: Win95 compatibility +} DD_CANCREATEVPORTDATA; + +/* + * structure for passing information to DDHAL CreateVideoPort fn + */ +typedef struct _DD_CREATEVPORTDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + LPDDVIDEOPORTDESC lpDDVideoPortDesc; + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port created + HRESULT ddRVal; // return value + VOID* CreateVideoPort; // Unused: Win95 compatibility +} DD_CREATEVPORTDATA; + +/* + * structure for passing information to DDHAL FlipVideoPort fn + */ +typedef struct _DD_FLIPVPORTDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + PDD_SURFACE_LOCAL lpSurfCurr; // current surface + PDD_SURFACE_LOCAL lpSurfTarg; // target surface + HRESULT ddRVal; // return value + VOID* FlipVideoPort; // Unused: Win95 compatibility +} DD_FLIPVPORTDATA; + +/* + * structure for passing information to DDHAL GetVideoPortBandwidth fn + */ +typedef struct _DD_GETVPORTBANDWIDTHDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + LPDDPIXELFORMAT lpddpfFormat; // Format for bandwidth + DWORD dwWidth; + DWORD dwHeight; + DWORD dwFlags; // Prescale factor for bandwidth + LPDDVIDEOPORTBANDWIDTH lpBandwidth; // Returned bandwidth parameters + HRESULT ddRVal; // return value + VOID* GetVideoPortBandwidth; // Unused: Win95 compatibility +} DD_GETVPORTBANDWIDTHDATA; + +/* + * structure for passing information to DDHAL GetVideoPortInputFormats fn + */ +typedef struct _DD_GETVPORTINPUTFORMATDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + DWORD dwFlags; // VBI, regular, or both + LPDDPIXELFORMAT lpddpfFormat; // Array of formats + DWORD dwNumFormats; // # of formats in array + HRESULT ddRVal; // return value + VOID* GetVideoPortInputFormats; // Unused: Win95 compatibility +} DD_GETVPORTINPUTFORMATDATA; + +/* + * structure for passing information to DDHAL GetVideoPortOutputFormats fn + */ +typedef struct _DD_GETVPORTOUTPUTFORMATDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + DWORD dwFlags; // VBI, regular, or both + LPDDPIXELFORMAT lpddpfInputFormat; // Input format + LPDDPIXELFORMAT lpddpfOutputFormats; // Array of output formats + DWORD dwNumFormats; // # of formats in array + HRESULT ddRVal; // return value + VOID* GetVideoPortInputFormats; // Unused: Win95 compatibility +} DD_GETVPORTOUTPUTFORMATDATA; + +/* + * structure for passing information to DDHAL GetVideoPortField fn + */ +typedef struct _DD_GETVPORTFIELDDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + BOOL bField; // TRUE if even + HRESULT ddRVal; // return value + VOID* GetVideoPortField; // Unused: Win95 compatibility +} DD_GETVPORTFIELDDATA; + +/* + * structure for passing information to DDHAL GetVideoPortLine fn + */ +typedef struct _DD_GETVPORTLINEDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + DWORD dwLine; // Current line counter + HRESULT ddRVal; // return value + VOID* GetVideoPortLine; // Unused: Win95 compatibility +} DD_GETVPORTLINEDATA; + +/* + * structure for passing information to DDHAL GetVideoPortConnectInfo fn + */ +typedef struct _DD_GETVPORTCONNECTDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + DWORD dwPortId; // ID of desired video port + LPDDVIDEOPORTCONNECT lpConnect; // Array of DDVIDEOPORTCONNECT structures + DWORD dwNumEntries; // # of structures in array + HRESULT ddRVal; // return value + VOID* GetVideoPortConnectInfo; // Unused: Win95 compatibility +} DD_GETVPORTCONNECTDATA; + +/* + * structure for passing information to DDHAL DestroyVideoPort fn + */ +typedef struct _DD_DESTROYVPORTDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + HRESULT ddRVal; // return value + VOID* DestroyVideoPort; // Unused: Win95 compatibility +} DD_DESTROYVPORTDATA; + +/* + * structure for passing information to DDHAL GetVideoPortFlipStatus fn + */ +typedef struct _DD_GETVPORTFLIPSTATUSDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + FLATPTR fpSurface; // surface struct + HRESULT ddRVal; // return value + VOID* GetVideoPortFlipStatus; // Unused: Win95 compatibility +} DD_GETVPORTFLIPSTATUSDATA; + +typedef DDVIDEOPORTINFO* PDD_VIDEOPORTINFO; +/* + * structure for passing information to DDHAL UpdateVideoPort fn + */ +typedef struct _DD_UPDATEVPORTDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + PDD_SURFACE_INT *lplpDDSurface; // surface struct + PDD_SURFACE_INT *lplpDDVBISurface; // VBI surface structure + PDD_VIDEOPORTINFO lpVideoInfo; // Video information + DWORD dwFlags; // DDRAWI_VPORTSTART, DDRAWI_VPORTSTOP, DDRAWI_VPORTUPDATE + DWORD dwNumAutoflip; // # of autoflip surfaces. If > 1, lpDDSurface is an array. + DWORD dwNumVBIAutoflip; // # of autoflip surfaces. If > 1, lpDDVBISurface is an array. + HRESULT ddRVal; // return value + VOID* UpdateVideoPort; // Unused: Win95 compatibility +} DD_UPDATEVPORTDATA; + +#define DDRAWI_VPORTSTART 0x0001 +#define DDRAWI_VPORTSTOP 0x0002 +#define DDRAWI_VPORTUPDATE 0x0003 + +/* + * structure for passing information to DDHAL WaitForVideoPortSync fn + */ +typedef struct _DD_WAITFORVPORTSYNCDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + DWORD dwFlags; // DDVPEVENT_XXXX + DWORD dwLine; + DWORD dwTimeOut; // Max time to wait before returning + HRESULT ddRVal; // return value + VOID* UpdateVideoPort; // Unused: Win95 compatibility +} DD_WAITFORVPORTSYNCDATA; + +/* + * structure for passing information to DDHAL GetVideoSignalStatus fn + */ +typedef struct _DD_GETVPORTSIGNALDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + DWORD dwStatus; // Video signal status + HRESULT ddRVal; // return value + VOID* GetVideoSignalStatus; // Unused: Win95 compatibility +} DD_GETVPORTSIGNALDATA; + +/* + * structure for passing information to DDHAL GetVideoSignalStatus fn + */ +typedef struct _DD_VPORTCOLORDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort; // Video port object + DWORD dwFlags; // Video signal status + LPDDCOLORCONTROL lpColorData; + HRESULT ddRVal; // return value + VOID* ColorControl; // Unused: Win95 compatibility +} DD_VPORTCOLORDATA; + +#define DDRAWI_VPORTGETCOLOR 0x0001 +#define DDRAWI_VPORTSETCOLOR 0x0002 + +/**************************************************************************** + * + * DDHAL structures for Color Control callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL ColorControl fn + */ +typedef struct _DD_COLORCONTROLDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface + LPDDCOLORCONTROL lpColorData; // color control information + DWORD dwFlags; // DDRAWI_GETCOLOR/DDRAWI_SETCOLOR + HRESULT ddRVal; // return value + VOID* ColorControl; // Unused: Win95 compatibility +} DD_COLORCONTROLDATA; + +#define DDRAWI_GETCOLOR 0x0001 +#define DDRAWI_SETCOLOR 0x0002 + +/**************************************************************************** + * + * DDHAL structure for GetDriverData callback + * + ***************************************************************************/ + +typedef struct _DD_GETDRIVERINFODATA { + + // Input fields filled in by DirectDraw + + VOID* dhpdev; // Driver context + DWORD dwSize; // Size of this structure + DWORD dwFlags; // Flags + GUID guidInfo; // GUID that DirectX is querying for + DWORD dwExpectedSize; // Size of callbacks structure expected by DirectDraw. + PVOID lpvData; // Buffer that will receive the requested data + + // Output fields filled in by driver + + DWORD dwActualSize; // Size of callbacks structure expected by driver + HRESULT ddRVal; // Return value from driver + +} DD_GETDRIVERINFODATA; + +/**************************************************************************** + * + * DDHAL structure for misc. driver callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL GetAvailDriverMemory fn + */ +typedef struct _DD_GETAVAILDRIVERMEMORYDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + DDSCAPS DDSCaps; // caps for type of surface memory + DWORD dwTotal; // total memory for this kind of surface + DWORD dwFree; // free memory for this kind of surface + HRESULT ddRVal; // return value + VOID* GetAvailDriverMemory; // Unused: Win95 compatibility +} DD_GETAVAILDRIVERMEMORYDATA; + + +/**************************************************************************** + * + * DDHAL structures for NT callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL FreeDriverMemory fn + */ +typedef struct _DD_FREEDRIVERMEMORYDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // surface object trying to be created + HRESULT ddRVal; // return value + VOID* FreeDriverMemory;// Unused: Win95 compatibility +} DD_FREEDRIVERMEMORYDATA; + +/* + * structure for passing information to DDHAL SetExclusiveMode fn + */ +typedef struct _DD_SETEXCLUSIVEMODEDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + DWORD dwEnterExcl; // TRUE if entering exclusive mode, FALSE is leaving + DWORD dwReserved; // reserved for future use + HRESULT ddRVal; // return value + VOID* SetExclusiveMode; // Unused: Win95 compatibility +} DD_SETEXCLUSIVEMODEDATA; + +/* + * structure for passing information to DDHAL FlipToGDISurface fn + */ +typedef struct _DD_FLIPTOGDISURFACEDATA +{ + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + DWORD dwToGDI; // TRUE if flipping to the GDI surface, FALSE if flipping away + DWORD dwReserved; // reserved for future use + HRESULT ddRVal; // return value + VOID* FlipToGDISurface; // Unused: Win95 compatibility +} DD_FLIPTOGDISURFACEDATA; + +/**************************************************************************** + * + * DDHAL structure for kernel callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL SyncSurfaceData fn + */ +typedef struct _DD_SYNCSURFACEDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_SURFACE_LOCAL lpDDSurface; // Surface to sync with + DWORD dwSurfaceOffset; // Offset in frame buffer of surface + ULONG_PTR fpLockPtr; // Surface lock ptr + LONG lPitch; // Surface pitch + DWORD dwOverlayOffset; // Added to dwSurfaceOffset for origin, clipping, etc. + ULONG dwDriverReserved1; // Reserved for the HAL + ULONG dwDriverReserved2; // Reserved for the HAL + ULONG dwDriverReserved3; // Reserved for the HAL + ULONG dwDriverReserved4; // Reserved for the HAL + HRESULT ddRVal; +} DD_SYNCSURFACEDATA; + +/* + * structure for passing information to DDHAL SyncVideoPortData fn + */ +typedef struct _DD_SYNCVIDEOPORTDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; // driver struct + PDD_VIDEOPORT_LOCAL lpVideoPort;// Video port object + DWORD dwOriginOffset; // Start address relative to surface + DWORD dwHeight; // Height of total video region (per field) + DWORD dwVBIHeight; // Height of VBI region (per field) + ULONG dwDriverReserved1; // Reserved for the HAL + ULONG dwDriverReserved2; // Reserved for the HAL + ULONG dwDriverReserved3; // Reserved for the HAL + HRESULT ddRVal; +} DD_SYNCVIDEOPORTDATA; + +/**************************************************************************** + * + * DDHAL structure for motion comp callbacks + * + ***************************************************************************/ + +/* + * structure for passing information to DDHAL GetMoCompGuids + */ +typedef struct _DD_GETMOCOMPGUIDSDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; + DWORD dwNumGuids; + GUID* lpGuids; + HRESULT ddRVal; +} DD_GETMOCOMPGUIDSDATA; + +/* + * structure for passing information to DDHAL GetMoCompFormats + */ +typedef struct _DD_GETMOCOMPFORMATSDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; + GUID* lpGuid; + DWORD dwNumFormats; + LPDDPIXELFORMAT lpFormats; + HRESULT ddRVal; +} DD_GETMOCOMPFORMATSDATA; + +/* + * structure for passing information to DDHAL CreateMoComp + */ +typedef struct _DD_CREATEMOCOMPDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; + PDD_MOTIONCOMP_LOCAL lpMoComp; + GUID* lpGuid; + DWORD dwUncompWidth; + DWORD dwUncompHeight; + DDPIXELFORMAT ddUncompPixelFormat; + LPVOID lpData; + DWORD dwDataSize; + HRESULT ddRVal; +} DD_CREATEMOCOMPDATA; + +/* + * structure for passing information to DDHAL GetMoCompBuffInfo + */ +typedef struct _DDCOMPBUFFERINFO +{ + DWORD dwSize; // [in] size of the struct + DWORD dwNumCompBuffers; // [out] number of buffers required for compressed data + DWORD dwWidthToCreate; // [out] Width of surface to create + DWORD dwHeightToCreate; // [out] Height of surface to create + DWORD dwBytesToAllocate; // [out] Total number of bytes used by each surface + DDSCAPS2 ddCompCaps; // [out] caps to create surfaces to store compressed data + DDPIXELFORMAT ddPixelFormat; // [out] format to create surfaces to store compressed data +} DDCOMPBUFFERINFO, *LPDDCOMPBUFFERINFO; + +typedef struct _DD_GETMOCOMPCOMPBUFFDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; + GUID* lpGuid; + DWORD dwWidth; // [in] width of uncompressed data + DWORD dwHeight; // [in] height of uncompressed data + DDPIXELFORMAT ddPixelFormat; // [in] pixel-format of uncompressed data + DWORD dwNumTypesCompBuffs;// [in/out] number of memory types required for comp buffers + LPDDCOMPBUFFERINFO lpCompBuffInfo; // [in] driver supplied info regarding comp buffers (allocated by client) + HRESULT ddRVal; // [out] +} DD_GETMOCOMPCOMPBUFFDATA; + +/* + * structure for passing information to DDHAL GetMoCompBuffInfo + */ +typedef struct _DD_GETINTERNALMOCOMPDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; + GUID* lpGuid; + DWORD dwWidth; // [in] width of uncompressed data + DWORD dwHeight; // [in] height of uncompressed data + DDPIXELFORMAT ddPixelFormat; // [in] pixel-format of uncompressed data + DWORD dwScratchMemAlloc; // [out] amount of scratch memory will the hal allocate for its private use + HRESULT ddRVal; // [out] +} DD_GETINTERNALMOCOMPDATA; + +/* + * structure for passing information to DDHAL BeginMoCompFrame + */ +typedef struct _DD_BEGINMOCOMPFRAMEDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; + PDD_MOTIONCOMP_LOCAL lpMoComp; + PDD_SURFACE_LOCAL lpDestSurface; // [in] destination buffer in which to decoding this frame + DWORD dwInputDataSize; // [in] size of other misc input data to begin frame + LPVOID lpInputData; // [in] pointer to misc input data + DWORD dwOutputDataSize; // [in] size of other misc output data to begin frame + LPVOID lpOutputData; // [in] pointer to output misc data (allocated by client) + HRESULT ddRVal; // [out] +} DD_BEGINMOCOMPFRAMEDATA; + +/* + * structure for passing information to DDHAL EndMoCompFrame + */ +typedef struct _DD_ENDMOCOMPFRAMEDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; + PDD_MOTIONCOMP_LOCAL lpMoComp; + LPVOID lpInputData; + DWORD dwInputDataSize; + HRESULT ddRVal; +} DD_ENDMOCOMPFRAMEDATA; + +/* + * structure for passing information to DDHAL RenderMoComp + */ +typedef struct _DDMOCOMPBUFFERINFO +{ + DWORD dwSize; // [in] size of the struct + PDD_SURFACE_LOCAL lpCompSurface; // [in] pointer to buffer containing compressed data + DWORD dwDataOffset; // [in] offset of relevant data from the beginning of buffer + DWORD dwDataSize; // [in] size of relevant data + LPVOID lpPrivate; // Reserved by DirectDraw +} DDMOCOMPBUFFERINFO, *LPDDMOCOMPBUFFERINFO; + +typedef struct _DD_RENDERMOCOMPDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; + PDD_MOTIONCOMP_LOCAL lpMoComp; + DWORD dwNumBuffers; // [in] Number of entries in the lpMacroBlockInfo array + LPDDMOCOMPBUFFERINFO lpBufferInfo; // [in] Surfaces containing macro block info + DWORD dwFunction; // [in] Function + LPVOID lpInputData; + DWORD dwInputDataSize; + LPVOID lpOutputData; + DWORD dwOutputDataSize; + HRESULT ddRVal; // [out] +} DD_RENDERMOCOMPDATA; + +/* + * structure for passing information to DDHAL QueryMoCompStatus + */ +typedef struct _DD_QUERYMOCOMPSTATUSDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; + PDD_MOTIONCOMP_LOCAL lpMoComp; + PDD_SURFACE_LOCAL lpSurface; // [in] Surface being queried + DWORD dwFlags; // [in] DDMCQUERY_XXX flags + HRESULT ddRVal; // [out] +} DD_QUERYMOCOMPSTATUSDATA; + +#define DDMCQUERY_READ 0x00000001 + +/* + * structure for passing information to DDHAL DestroyVideo + */ +typedef struct _DD_DESTROYMOCOMPDATA +{ + PDD_DIRECTDRAW_LOCAL lpDD; + PDD_MOTIONCOMP_LOCAL lpMoComp; + HRESULT ddRVal; +} DD_DESTROYMOCOMPDATA; + + +/**************************************************************************** + * + * DDHAL structures for Miscellaneous2 callbacks + * + ***************************************************************************/ +// This DDI is called by the kernel only. +typedef struct _DD_CREATESURFACEEXDATA +{ + DWORD dwFlags; + PDD_DIRECTDRAW_LOCAL lpDDLcl; // driver struct + PDD_SURFACE_LOCAL lpDDSLcl; // created surface + // objects + HRESULT ddRVal; // return value +} DD_CREATESURFACEEXDATA; + +// This DDI is used by both ddraw and d3d to obtain information from +// the driver. +typedef struct _DD_GETDRIVERSTATEDATA +{ + DWORD dwFlags; // Flags to indicate the data + // required + union + { + PDD_DIRECTDRAW_GLOBAL lpDD; // driver struct + DWORD_PTR dwhContext; // d3d context + }; + LPDWORD lpdwStates; // ptr to the state data + // to be filled in by the + // driver + DWORD dwLength; + HRESULT ddRVal; // return value +} DD_GETDRIVERSTATEDATA; + +typedef struct _DD_DESTROYDDLOCALDATA +{ + DWORD dwFlags; + PDD_DIRECTDRAW_LOCAL pDDLcl; + HRESULT ddRVal; +} DD_DESTROYDDLOCALDATA; + + +#ifdef __cplusplus +}; +#endif + +#endif // GUID_DEFS_ONLY + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddstream.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddstream.h new file mode 100644 index 0000000000000000000000000000000000000000..45edd368440edbd7d5657df2a011facb094c3756 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddstream.h @@ -0,0 +1,477 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ddstream_h__ +#define __ddstream_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDirectDrawMediaStream_FWD_DEFINED__ +#define __IDirectDrawMediaStream_FWD_DEFINED__ +typedef interface IDirectDrawMediaStream IDirectDrawMediaStream; + +#endif /* __IDirectDrawMediaStream_FWD_DEFINED__ */ + + +#ifndef __IDirectDrawStreamSample_FWD_DEFINED__ +#define __IDirectDrawStreamSample_FWD_DEFINED__ +typedef interface IDirectDrawStreamSample IDirectDrawStreamSample; + +#endif /* __IDirectDrawStreamSample_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "mmstream.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ddstream_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// +// The following declarations within the 'if 0' block are dummy typedefs used to make +// the ddstream.idl file build. The actual definitions are contained in DDRAW.H +// +#if 0 +typedef void *LPDDSURFACEDESC; + +typedef struct tDDSURFACEDESC DDSURFACEDESC; + +#endif +#include + +enum __MIDL___MIDL_itf_ddstream_0000_0000_0001 + { + DDSFF_PROGRESSIVERENDER = 0x1 + } ; + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_ddstream_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ddstream_0000_0000_v0_0_s_ifspec; + +#ifndef __IDirectDrawMediaStream_INTERFACE_DEFINED__ +#define __IDirectDrawMediaStream_INTERFACE_DEFINED__ + +/* interface IDirectDrawMediaStream */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IDirectDrawMediaStream; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F4104FCE-9A70-11d0-8FDE-00C04FD9189D") + IDirectDrawMediaStream : public IMediaStream + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFormat( + /* [out] */ DDSURFACEDESC *pDDSDCurrent, + /* [out] */ IDirectDrawPalette **ppDirectDrawPalette, + /* [out] */ DDSURFACEDESC *pDDSDDesired, + /* [out] */ DWORD *pdwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFormat( + /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, + /* [in] */ IDirectDrawPalette *pDirectDrawPalette) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDirectDraw( + /* [out] */ IDirectDraw **ppDirectDraw) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDirectDraw( + /* [in] */ IDirectDraw *pDirectDraw) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateSample( + /* [in] */ IDirectDrawSurface *pSurface, + /* [in] */ const RECT *pRect, + /* [in] */ DWORD dwFlags, + /* [out] */ IDirectDrawStreamSample **ppSample) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTimePerFrame( + /* [out] */ STREAM_TIME *pFrameTime) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectDrawMediaStreamVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectDrawMediaStream * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectDrawMediaStream * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectDrawMediaStream * This); + + DECLSPEC_XFGVIRT(IMediaStream, GetMultiMediaStream) + HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )( + IDirectDrawMediaStream * This, + /* [out] */ IMultiMediaStream **ppMultiMediaStream); + + DECLSPEC_XFGVIRT(IMediaStream, GetInformation) + HRESULT ( STDMETHODCALLTYPE *GetInformation )( + IDirectDrawMediaStream * This, + /* [out] */ MSPID *pPurposeId, + /* [out] */ STREAM_TYPE *pType); + + DECLSPEC_XFGVIRT(IMediaStream, SetSameFormat) + HRESULT ( STDMETHODCALLTYPE *SetSameFormat )( + IDirectDrawMediaStream * This, + /* [in] */ IMediaStream *pStreamThatHasDesiredFormat, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IMediaStream, AllocateSample) + HRESULT ( STDMETHODCALLTYPE *AllocateSample )( + IDirectDrawMediaStream * This, + /* [in] */ DWORD dwFlags, + /* [out] */ IStreamSample **ppSample); + + DECLSPEC_XFGVIRT(IMediaStream, CreateSharedSample) + HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )( + IDirectDrawMediaStream * This, + /* [in] */ IStreamSample *pExistingSample, + /* [in] */ DWORD dwFlags, + /* [out] */ IStreamSample **ppNewSample); + + DECLSPEC_XFGVIRT(IMediaStream, SendEndOfStream) + HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )( + IDirectDrawMediaStream * This, + DWORD dwFlags); + + DECLSPEC_XFGVIRT(IDirectDrawMediaStream, GetFormat) + HRESULT ( STDMETHODCALLTYPE *GetFormat )( + IDirectDrawMediaStream * This, + /* [out] */ DDSURFACEDESC *pDDSDCurrent, + /* [out] */ IDirectDrawPalette **ppDirectDrawPalette, + /* [out] */ DDSURFACEDESC *pDDSDDesired, + /* [out] */ DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(IDirectDrawMediaStream, SetFormat) + HRESULT ( STDMETHODCALLTYPE *SetFormat )( + IDirectDrawMediaStream * This, + /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc, + /* [in] */ IDirectDrawPalette *pDirectDrawPalette); + + DECLSPEC_XFGVIRT(IDirectDrawMediaStream, GetDirectDraw) + HRESULT ( STDMETHODCALLTYPE *GetDirectDraw )( + IDirectDrawMediaStream * This, + /* [out] */ IDirectDraw **ppDirectDraw); + + DECLSPEC_XFGVIRT(IDirectDrawMediaStream, SetDirectDraw) + HRESULT ( STDMETHODCALLTYPE *SetDirectDraw )( + IDirectDrawMediaStream * This, + /* [in] */ IDirectDraw *pDirectDraw); + + DECLSPEC_XFGVIRT(IDirectDrawMediaStream, CreateSample) + HRESULT ( STDMETHODCALLTYPE *CreateSample )( + IDirectDrawMediaStream * This, + /* [in] */ IDirectDrawSurface *pSurface, + /* [in] */ const RECT *pRect, + /* [in] */ DWORD dwFlags, + /* [out] */ IDirectDrawStreamSample **ppSample); + + DECLSPEC_XFGVIRT(IDirectDrawMediaStream, GetTimePerFrame) + HRESULT ( STDMETHODCALLTYPE *GetTimePerFrame )( + IDirectDrawMediaStream * This, + /* [out] */ STREAM_TIME *pFrameTime); + + END_INTERFACE + } IDirectDrawMediaStreamVtbl; + + interface IDirectDrawMediaStream + { + CONST_VTBL struct IDirectDrawMediaStreamVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectDrawMediaStream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectDrawMediaStream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectDrawMediaStream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectDrawMediaStream_GetMultiMediaStream(This,ppMultiMediaStream) \ + ( (This)->lpVtbl -> GetMultiMediaStream(This,ppMultiMediaStream) ) + +#define IDirectDrawMediaStream_GetInformation(This,pPurposeId,pType) \ + ( (This)->lpVtbl -> GetInformation(This,pPurposeId,pType) ) + +#define IDirectDrawMediaStream_SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) \ + ( (This)->lpVtbl -> SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) ) + +#define IDirectDrawMediaStream_AllocateSample(This,dwFlags,ppSample) \ + ( (This)->lpVtbl -> AllocateSample(This,dwFlags,ppSample) ) + +#define IDirectDrawMediaStream_CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) \ + ( (This)->lpVtbl -> CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) ) + +#define IDirectDrawMediaStream_SendEndOfStream(This,dwFlags) \ + ( (This)->lpVtbl -> SendEndOfStream(This,dwFlags) ) + + +#define IDirectDrawMediaStream_GetFormat(This,pDDSDCurrent,ppDirectDrawPalette,pDDSDDesired,pdwFlags) \ + ( (This)->lpVtbl -> GetFormat(This,pDDSDCurrent,ppDirectDrawPalette,pDDSDDesired,pdwFlags) ) + +#define IDirectDrawMediaStream_SetFormat(This,pDDSurfaceDesc,pDirectDrawPalette) \ + ( (This)->lpVtbl -> SetFormat(This,pDDSurfaceDesc,pDirectDrawPalette) ) + +#define IDirectDrawMediaStream_GetDirectDraw(This,ppDirectDraw) \ + ( (This)->lpVtbl -> GetDirectDraw(This,ppDirectDraw) ) + +#define IDirectDrawMediaStream_SetDirectDraw(This,pDirectDraw) \ + ( (This)->lpVtbl -> SetDirectDraw(This,pDirectDraw) ) + +#define IDirectDrawMediaStream_CreateSample(This,pSurface,pRect,dwFlags,ppSample) \ + ( (This)->lpVtbl -> CreateSample(This,pSurface,pRect,dwFlags,ppSample) ) + +#define IDirectDrawMediaStream_GetTimePerFrame(This,pFrameTime) \ + ( (This)->lpVtbl -> GetTimePerFrame(This,pFrameTime) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectDrawMediaStream_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectDrawStreamSample_INTERFACE_DEFINED__ +#define __IDirectDrawStreamSample_INTERFACE_DEFINED__ + +/* interface IDirectDrawStreamSample */ +/* [unique][uuid][local][object] */ + + +EXTERN_C const IID IID_IDirectDrawStreamSample; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F4104FCF-9A70-11d0-8FDE-00C04FD9189D") + IDirectDrawStreamSample : public IStreamSample + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSurface( + /* [out] */ IDirectDrawSurface **ppDirectDrawSurface, + /* [out] */ RECT *pRect) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetRect( + /* [in] */ const RECT *pRect) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectDrawStreamSampleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectDrawStreamSample * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectDrawStreamSample * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectDrawStreamSample * This); + + DECLSPEC_XFGVIRT(IStreamSample, GetMediaStream) + HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( + IDirectDrawStreamSample * This, + /* [in] */ IMediaStream **ppMediaStream); + + DECLSPEC_XFGVIRT(IStreamSample, GetSampleTimes) + HRESULT ( STDMETHODCALLTYPE *GetSampleTimes )( + IDirectDrawStreamSample * This, + /* [out] */ STREAM_TIME *pStartTime, + /* [out] */ STREAM_TIME *pEndTime, + /* [out] */ STREAM_TIME *pCurrentTime); + + DECLSPEC_XFGVIRT(IStreamSample, SetSampleTimes) + HRESULT ( STDMETHODCALLTYPE *SetSampleTimes )( + IDirectDrawStreamSample * This, + /* [in] */ const STREAM_TIME *pStartTime, + /* [in] */ const STREAM_TIME *pEndTime); + + DECLSPEC_XFGVIRT(IStreamSample, Update) + HRESULT ( STDMETHODCALLTYPE *Update )( + IDirectDrawStreamSample * This, + /* [in] */ DWORD dwFlags, + /* [in] */ HANDLE hEvent, + /* [in] */ PAPCFUNC pfnAPC, + /* [in] */ DWORD_PTR dwAPCData); + + DECLSPEC_XFGVIRT(IStreamSample, CompletionStatus) + HRESULT ( STDMETHODCALLTYPE *CompletionStatus )( + IDirectDrawStreamSample * This, + /* [in] */ DWORD dwFlags, + /* [in] */ DWORD dwMilliseconds); + + DECLSPEC_XFGVIRT(IDirectDrawStreamSample, GetSurface) + HRESULT ( STDMETHODCALLTYPE *GetSurface )( + IDirectDrawStreamSample * This, + /* [out] */ IDirectDrawSurface **ppDirectDrawSurface, + /* [out] */ RECT *pRect); + + DECLSPEC_XFGVIRT(IDirectDrawStreamSample, SetRect) + HRESULT ( STDMETHODCALLTYPE *SetRect )( + IDirectDrawStreamSample * This, + /* [in] */ const RECT *pRect); + + END_INTERFACE + } IDirectDrawStreamSampleVtbl; + + interface IDirectDrawStreamSample + { + CONST_VTBL struct IDirectDrawStreamSampleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectDrawStreamSample_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectDrawStreamSample_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectDrawStreamSample_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectDrawStreamSample_GetMediaStream(This,ppMediaStream) \ + ( (This)->lpVtbl -> GetMediaStream(This,ppMediaStream) ) + +#define IDirectDrawStreamSample_GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) \ + ( (This)->lpVtbl -> GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) ) + +#define IDirectDrawStreamSample_SetSampleTimes(This,pStartTime,pEndTime) \ + ( (This)->lpVtbl -> SetSampleTimes(This,pStartTime,pEndTime) ) + +#define IDirectDrawStreamSample_Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) \ + ( (This)->lpVtbl -> Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) ) + +#define IDirectDrawStreamSample_CompletionStatus(This,dwFlags,dwMilliseconds) \ + ( (This)->lpVtbl -> CompletionStatus(This,dwFlags,dwMilliseconds) ) + + +#define IDirectDrawStreamSample_GetSurface(This,ppDirectDrawSurface,pRect) \ + ( (This)->lpVtbl -> GetSurface(This,ppDirectDrawSurface,pRect) ) + +#define IDirectDrawStreamSample_SetRect(This,pRect) \ + ( (This)->lpVtbl -> SetRect(This,pRect) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectDrawStreamSample_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ddstream_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_ddstream_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ddstream_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddstream.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddstream.idl new file mode 100644 index 0000000000000000000000000000000000000000..3186d9d25b34a37f0762e8c24c76bcf99bede74f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ddstream.idl @@ -0,0 +1,95 @@ +//------------------------------------------------------------------------------ +// File: DDStream.idl +// +// Desc: Used by MIDL tool to generate ddstream.h +// +// Copyright (c) 1998-2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl"; +import "mmstream.idl"; + +cpp_quote("//") +cpp_quote("// The following declarations within the 'if 0' block are dummy typedefs used to make") +cpp_quote("// the ddstream.idl file build. The actual definitions are contained in DDRAW.H") +cpp_quote("//") +cpp_quote("#if 0") +typedef void * LPDDSURFACEDESC; +typedef struct tDDSURFACEDESC DDSURFACEDESC; +cpp_quote("#endif") +cpp_quote("#include ") + +enum { + DDSFF_PROGRESSIVERENDER = 0x00000001 +}; + +interface IDirectDraw; +interface IDirectDrawSurface; +interface IDirectDrawPalette; + +interface IDirectDrawMediaStream; +interface IDirectDrawStreamSample; + +// IDirectDrawMediaStream +[ +object, +local, +uuid(F4104FCE-9A70-11d0-8FDE-00C04FD9189D), +pointer_default(unique) +] +interface IDirectDrawMediaStream : IMediaStream +{ + HRESULT GetFormat( + [out] DDSURFACEDESC *pDDSDCurrent, + [out] IDirectDrawPalette **ppDirectDrawPalette, + [out] DDSURFACEDESC *pDDSDDesired, + [out] DWORD *pdwFlags); + + HRESULT SetFormat( + [in] const DDSURFACEDESC *pDDSurfaceDesc, + [in] IDirectDrawPalette *pDirectDrawPalette); + + HRESULT GetDirectDraw( + [out] IDirectDraw **ppDirectDraw); + + HRESULT SetDirectDraw( + [in] IDirectDraw *pDirectDraw); + + HRESULT CreateSample( + [in] IDirectDrawSurface *pSurface, + [in] const RECT *pRect, + [in] DWORD dwFlags, + [out]IDirectDrawStreamSample **ppSample); + + HRESULT GetTimePerFrame( + [out] STREAM_TIME *pFrameTime); +}; + + +// IDirectDrawStreamSample +[ +object, +local, +uuid(F4104FCF-9A70-11d0-8FDE-00C04FD9189D), +pointer_default(unique) +] +interface IDirectDrawStreamSample : IStreamSample +{ + HRESULT GetSurface( + [out] IDirectDrawSurface ** ppDirectDrawSurface, + [out] RECT * pRect); + + HRESULT SetRect( + [in] const RECT * pRect); + +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/debugapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/debugapi.h new file mode 100644 index 0000000000000000000000000000000000000000..4d747af33dc792d6241b0456d5898a0aeef3098c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/debugapi.h @@ -0,0 +1,147 @@ +/******************************************************************************** +* * +* DebugApi.h -- ApiSet Contract for api-ms-win-core-debug-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _APISETDEBUG_ +#define _APISETDEBUG_ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400) +WINBASEAPI +BOOL +WINAPI +IsDebuggerPresent( + VOID + ); + +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +VOID +WINAPI +DebugBreak( + VOID + ); + +WINBASEAPI +VOID +WINAPI +OutputDebugStringA( + _In_opt_ LPCSTR lpOutputString + ); + +WINBASEAPI +VOID +WINAPI +OutputDebugStringW( + _In_opt_ LPCWSTR lpOutputString + ); + +#ifdef UNICODE +#define OutputDebugString OutputDebugStringW +#else +#define OutputDebugString OutputDebugStringA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +APIENTRY +ContinueDebugEvent( + _In_ DWORD dwProcessId, + _In_ DWORD dwThreadId, + _In_ DWORD dwContinueStatus + ); + +WINBASEAPI +BOOL +APIENTRY +WaitForDebugEvent( + _Out_ LPDEBUG_EVENT lpDebugEvent, + _In_ DWORD dwMilliseconds + ); + +WINBASEAPI +BOOL +APIENTRY +DebugActiveProcess( + _In_ DWORD dwProcessId + ); + +WINBASEAPI +BOOL +APIENTRY +DebugActiveProcessStop( + _In_ DWORD dwProcessId + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#if (_WIN32_WINNT >= 0x0501) + +WINBASEAPI +BOOL +WINAPI +CheckRemoteDebuggerPresent( + _In_ HANDLE hProcess, + _Out_ PBOOL pbDebuggerPresent + ); + +#endif // (_WIN32_WINNT >= 0x0501) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +APIENTRY +WaitForDebugEventEx( + _Out_ LPDEBUG_EVENT lpDebugEvent, + _In_ DWORD dwMilliseconds + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _APISETDEBUG_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/delayloadhandler.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/delayloadhandler.h new file mode 100644 index 0000000000000000000000000000000000000000..7c65a98cc7bb2f982805abc209830deb9ca8edbf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/delayloadhandler.h @@ -0,0 +1,54 @@ +// +// delayloadhandler.h +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Define structures and prototypes necessary for implementing a delayload +// failure hook. +// + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifdef __cplusplus +extern "C" { +#endif + +#if NTDDI_VERSION >= NTDDI_WIN8 + +typedef struct _DELAYLOAD_PROC_DESCRIPTOR { + ULONG ImportDescribedByName; + union { + LPCSTR Name; + ULONG Ordinal; + } Description; +} DELAYLOAD_PROC_DESCRIPTOR, *PDELAYLOAD_PROC_DESCRIPTOR; + +typedef struct _DELAYLOAD_INFO { + ULONG Size; + PCIMAGE_DELAYLOAD_DESCRIPTOR DelayloadDescriptor; + PIMAGE_THUNK_DATA ThunkAddress; + LPCSTR TargetDllName; + DELAYLOAD_PROC_DESCRIPTOR TargetApiDescriptor; + PVOID TargetModuleBase; + PVOID Unused; + ULONG LastError; +} DELAYLOAD_INFO, *PDELAYLOAD_INFO; + +typedef +PVOID +(WINAPI *PDELAYLOAD_FAILURE_DLL_CALLBACK) ( + _In_ ULONG NotificationReason, + _In_ PDELAYLOAD_INFO DelayloadInfo + ); + +#define DELAYLOAD_GPA_FAILURE 4 + +extern PDELAYLOAD_FAILURE_DLL_CALLBACK __pfnDliFailureHook2; + +#endif // NTDDI_VERSION >= NTDDI_WIN8 + +#ifdef __cplusplus +} +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/deliveryoptimization.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deliveryoptimization.h new file mode 100644 index 0000000000000000000000000000000000000000..65ba3048911c355fddec9d0a62d0ba567945d6f5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deliveryoptimization.h @@ -0,0 +1,580 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __deliveryoptimization_h__ +#define __deliveryoptimization_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDODownload_FWD_DEFINED__ +#define __IDODownload_FWD_DEFINED__ +typedef interface IDODownload IDODownload; + +#endif /* __IDODownload_FWD_DEFINED__ */ + + +#ifndef __IDODownloadStatusCallback_FWD_DEFINED__ +#define __IDODownloadStatusCallback_FWD_DEFINED__ +typedef interface IDODownloadStatusCallback IDODownloadStatusCallback; + +#endif /* __IDODownloadStatusCallback_FWD_DEFINED__ */ + + +#ifndef __IDOManager_FWD_DEFINED__ +#define __IDOManager_FWD_DEFINED__ +typedef interface IDOManager IDOManager; + +#endif /* __IDOManager_FWD_DEFINED__ */ + + +#ifndef __DeliveryOptimization_FWD_DEFINED__ +#define __DeliveryOptimization_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DeliveryOptimization DeliveryOptimization; +#else +typedef struct DeliveryOptimization DeliveryOptimization; +#endif /* __cplusplus */ + +#endif /* __DeliveryOptimization_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_deliveryoptimization_0000_0000 */ +/* [local] */ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct _DO_DOWNLOAD_RANGE + { + UINT64 Offset; + UINT64 Length; + } DO_DOWNLOAD_RANGE; + +typedef struct _DO_DOWNLOAD_RANGES_INFO + { + UINT RangeCount; + /* [size_is] */ DO_DOWNLOAD_RANGE Ranges[ 1 ]; + } DO_DOWNLOAD_RANGES_INFO; + +typedef +enum _DODownloadState + { + DODownloadState_Created = 0, + DODownloadState_Transferring = ( DODownloadState_Created + 1 ) , + DODownloadState_Transferred = ( DODownloadState_Transferring + 1 ) , + DODownloadState_Finalized = ( DODownloadState_Transferred + 1 ) , + DODownloadState_Aborted = ( DODownloadState_Finalized + 1 ) , + DODownloadState_Paused = ( DODownloadState_Aborted + 1 ) + } DODownloadState; + +typedef struct _DO_DOWNLOAD_STATUS + { + UINT64 BytesTotal; + UINT64 BytesTransferred; + DODownloadState State; + HRESULT Error; + HRESULT ExtendedError; + } DO_DOWNLOAD_STATUS; + +typedef +enum _DODownloadCostPolicy + { + DODownloadCostPolicy_Always = 0, + DODownloadCostPolicy_Unrestricted = ( DODownloadCostPolicy_Always + 1 ) , + DODownloadCostPolicy_Standard = ( DODownloadCostPolicy_Unrestricted + 1 ) , + DODownloadCostPolicy_NoRoaming = ( DODownloadCostPolicy_Standard + 1 ) , + DODownloadCostPolicy_NoSurcharge = ( DODownloadCostPolicy_NoRoaming + 1 ) , + DODownloadCostPolicy_NoCellular = ( DODownloadCostPolicy_NoSurcharge + 1 ) + } DODownloadCostPolicy; + +typedef +enum _DODownloadProperty + { + DODownloadProperty_Id = 0, + DODownloadProperty_Uri = ( DODownloadProperty_Id + 1 ) , + DODownloadProperty_ContentId = ( DODownloadProperty_Uri + 1 ) , + DODownloadProperty_DisplayName = ( DODownloadProperty_ContentId + 1 ) , + DODownloadProperty_LocalPath = ( DODownloadProperty_DisplayName + 1 ) , + DODownloadProperty_HttpCustomHeaders = ( DODownloadProperty_LocalPath + 1 ) , + DODownloadProperty_CostPolicy = ( DODownloadProperty_HttpCustomHeaders + 1 ) , + DODownloadProperty_SecurityFlags = ( DODownloadProperty_CostPolicy + 1 ) , + DODownloadProperty_CallbackFreqPercent = ( DODownloadProperty_SecurityFlags + 1 ) , + DODownloadProperty_CallbackFreqSeconds = ( DODownloadProperty_CallbackFreqPercent + 1 ) , + DODownloadProperty_NoProgressTimeoutSeconds = ( DODownloadProperty_CallbackFreqSeconds + 1 ) , + DODownloadProperty_ForegroundPriority = ( DODownloadProperty_NoProgressTimeoutSeconds + 1 ) , + DODownloadProperty_BlockingMode = ( DODownloadProperty_ForegroundPriority + 1 ) , + DODownloadProperty_CallbackInterface = ( DODownloadProperty_BlockingMode + 1 ) , + DODownloadProperty_StreamInterface = ( DODownloadProperty_CallbackInterface + 1 ) , + DODownloadProperty_SecurityContext = ( DODownloadProperty_StreamInterface + 1 ) , + DODownloadProperty_NetworkToken = ( DODownloadProperty_SecurityContext + 1 ) , + DODownloadProperty_CorrelationVector = ( DODownloadProperty_NetworkToken + 1 ) , + DODownloadProperty_DecryptionInfo = ( DODownloadProperty_CorrelationVector + 1 ) , + DODownloadProperty_IntegrityCheckInfo = ( DODownloadProperty_DecryptionInfo + 1 ) , + DODownloadProperty_IntegrityCheckMandatory = ( DODownloadProperty_IntegrityCheckInfo + 1 ) , + DODownloadProperty_TotalSizeBytes = ( DODownloadProperty_IntegrityCheckMandatory + 1 ) , + DODownloadProperty_DisallowOnCellular = ( DODownloadProperty_TotalSizeBytes + 1 ) , + DODownloadProperty_HttpCustomAuthHeaders = ( DODownloadProperty_DisallowOnCellular + 1 ) , + DODownloadProperty_HttpAllowSecureToNonSecureRedirect = ( DODownloadProperty_HttpCustomAuthHeaders + 1 ) , + DODownloadProperty_NonVolatile = ( DODownloadProperty_HttpAllowSecureToNonSecureRedirect + 1 ) , + DODownloadProperty_HttpRedirectionTarget = ( DODownloadProperty_NonVolatile + 1 ) , + DODownloadProperty_HttpResponseHeaders = ( DODownloadProperty_HttpRedirectionTarget + 1 ) , + DODownloadProperty_HttpServerIPAddress = ( DODownloadProperty_HttpResponseHeaders + 1 ) , + DODownloadProperty_HttpStatusCode = ( DODownloadProperty_HttpServerIPAddress + 1 ) + } DODownloadProperty; + +typedef struct _DO_DOWNLOAD_ENUM_CATEGORY + { + DODownloadProperty Property; + LPCWSTR Value; + } DO_DOWNLOAD_ENUM_CATEGORY; + + + +extern RPC_IF_HANDLE __MIDL_itf_deliveryoptimization_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_deliveryoptimization_0000_0000_v0_0_s_ifspec; + +#ifndef __IDODownload_INTERFACE_DEFINED__ +#define __IDODownload_INTERFACE_DEFINED__ + +/* interface IDODownload */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IDODownload; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FBBD7FC0-C147-4727-A38D-827EF071EE77") + IDODownload : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Start( + /* [unique][in] */ __RPC__in_opt const DO_DOWNLOAD_RANGES_INFO *ranges) = 0; + + virtual HRESULT STDMETHODCALLTYPE Pause( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Abort( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finalize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatus( + /* [out] */ __RPC__out DO_DOWNLOAD_STATUS *status) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [in] */ DODownloadProperty propId, + /* [out] */ __RPC__out VARIANT *propVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProperty( + /* [in] */ DODownloadProperty propId, + /* [in] */ __RPC__in const VARIANT *propVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDODownloadVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDODownload * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDODownload * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDODownload * This); + + DECLSPEC_XFGVIRT(IDODownload, Start) + HRESULT ( STDMETHODCALLTYPE *Start )( + __RPC__in IDODownload * This, + /* [unique][in] */ __RPC__in_opt const DO_DOWNLOAD_RANGES_INFO *ranges); + + DECLSPEC_XFGVIRT(IDODownload, Pause) + HRESULT ( STDMETHODCALLTYPE *Pause )( + __RPC__in IDODownload * This); + + DECLSPEC_XFGVIRT(IDODownload, Abort) + HRESULT ( STDMETHODCALLTYPE *Abort )( + __RPC__in IDODownload * This); + + DECLSPEC_XFGVIRT(IDODownload, Finalize) + HRESULT ( STDMETHODCALLTYPE *Finalize )( + __RPC__in IDODownload * This); + + DECLSPEC_XFGVIRT(IDODownload, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in IDODownload * This, + /* [out] */ __RPC__out DO_DOWNLOAD_STATUS *status); + + DECLSPEC_XFGVIRT(IDODownload, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + __RPC__in IDODownload * This, + /* [in] */ DODownloadProperty propId, + /* [out] */ __RPC__out VARIANT *propVal); + + DECLSPEC_XFGVIRT(IDODownload, SetProperty) + HRESULT ( STDMETHODCALLTYPE *SetProperty )( + __RPC__in IDODownload * This, + /* [in] */ DODownloadProperty propId, + /* [in] */ __RPC__in const VARIANT *propVal); + + END_INTERFACE + } IDODownloadVtbl; + + interface IDODownload + { + CONST_VTBL struct IDODownloadVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDODownload_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDODownload_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDODownload_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDODownload_Start(This,ranges) \ + ( (This)->lpVtbl -> Start(This,ranges) ) + +#define IDODownload_Pause(This) \ + ( (This)->lpVtbl -> Pause(This) ) + +#define IDODownload_Abort(This) \ + ( (This)->lpVtbl -> Abort(This) ) + +#define IDODownload_Finalize(This) \ + ( (This)->lpVtbl -> Finalize(This) ) + +#define IDODownload_GetStatus(This,status) \ + ( (This)->lpVtbl -> GetStatus(This,status) ) + +#define IDODownload_GetProperty(This,propId,propVal) \ + ( (This)->lpVtbl -> GetProperty(This,propId,propVal) ) + +#define IDODownload_SetProperty(This,propId,propVal) \ + ( (This)->lpVtbl -> SetProperty(This,propId,propVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDODownload_INTERFACE_DEFINED__ */ + + +#ifndef __IDODownloadStatusCallback_INTERFACE_DEFINED__ +#define __IDODownloadStatusCallback_INTERFACE_DEFINED__ + +/* interface IDODownloadStatusCallback */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IDODownloadStatusCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D166E8E3-A90E-4392-8E87-05E996D3747D") + IDODownloadStatusCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnStatusChange( + /* [in] */ __RPC__in_opt IDODownload *download, + /* [in] */ __RPC__in const DO_DOWNLOAD_STATUS *status) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDODownloadStatusCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDODownloadStatusCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDODownloadStatusCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDODownloadStatusCallback * This); + + DECLSPEC_XFGVIRT(IDODownloadStatusCallback, OnStatusChange) + HRESULT ( STDMETHODCALLTYPE *OnStatusChange )( + __RPC__in IDODownloadStatusCallback * This, + /* [in] */ __RPC__in_opt IDODownload *download, + /* [in] */ __RPC__in const DO_DOWNLOAD_STATUS *status); + + END_INTERFACE + } IDODownloadStatusCallbackVtbl; + + interface IDODownloadStatusCallback + { + CONST_VTBL struct IDODownloadStatusCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDODownloadStatusCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDODownloadStatusCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDODownloadStatusCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDODownloadStatusCallback_OnStatusChange(This,download,status) \ + ( (This)->lpVtbl -> OnStatusChange(This,download,status) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDODownloadStatusCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IDOManager_INTERFACE_DEFINED__ +#define __IDOManager_INTERFACE_DEFINED__ + +/* interface IDOManager */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IDOManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("400E2D4A-1431-4C1A-A748-39CA472CFDB1") + IDOManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateDownload( + /* [out] */ __RPC__deref_out_opt IDODownload **download) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumDownloads( + /* [unique][in] */ __RPC__in_opt const DO_DOWNLOAD_ENUM_CATEGORY *category, + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDOManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDOManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDOManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDOManager * This); + + DECLSPEC_XFGVIRT(IDOManager, CreateDownload) + HRESULT ( STDMETHODCALLTYPE *CreateDownload )( + __RPC__in IDOManager * This, + /* [out] */ __RPC__deref_out_opt IDODownload **download); + + DECLSPEC_XFGVIRT(IDOManager, EnumDownloads) + HRESULT ( STDMETHODCALLTYPE *EnumDownloads )( + __RPC__in IDOManager * This, + /* [unique][in] */ __RPC__in_opt const DO_DOWNLOAD_ENUM_CATEGORY *category, + /* [out] */ __RPC__deref_out_opt IEnumUnknown **ppEnum); + + END_INTERFACE + } IDOManagerVtbl; + + interface IDOManager + { + CONST_VTBL struct IDOManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDOManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDOManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDOManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDOManager_CreateDownload(This,download) \ + ( (This)->lpVtbl -> CreateDownload(This,download) ) + +#define IDOManager_EnumDownloads(This,category,ppEnum) \ + ( (This)->lpVtbl -> EnumDownloads(This,category,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDOManager_INTERFACE_DEFINED__ */ + + + +#ifndef __DeliveryOptimization_LIBRARY_DEFINED__ +#define __DeliveryOptimization_LIBRARY_DEFINED__ + +/* library DeliveryOptimization */ +/* [uuid] */ + + +EXTERN_C const IID LIBID_DeliveryOptimization; + +EXTERN_C const CLSID CLSID_DeliveryOptimization; + +#ifdef __cplusplus + +class DECLSPEC_UUID("5b99fa76-721c-423c-adac-56d03c8a8007") +DeliveryOptimization; +#endif +#endif /* __DeliveryOptimization_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_deliveryoptimization_0000_0004 */ +/* [local] */ + +#define DO_LENGTH_TO_EOF (UINT64)(-1) + +#define DecryptionInfo_KeyData L"KeyData" +#define DecryptionInfo_EncryptionBufferSize L"EncryptionBufferSize" +#define DecryptionInfo_AlgorithmName L"AlgorithmName" +#define DecryptionInfo_ChainingMode L"ChainingMode" + +#define IntegrityCheckInfo_PiecesHashFileUrl L"PiecesHashFileUrl" +#define IntegrityCheckInfo_PiecesHashFileDigest L"PiecesHashFileDigest" +#define IntegrityCheckInfo_PiecesHashFileDigestAlgorithm L"PiecesHashFileDigestAlgorithm" +#define IntegrityCheckInfo_HashOfHashes L"HashOfHashes" + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_deliveryoptimization_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_deliveryoptimization_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/deliveryoptimization.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deliveryoptimization.idl new file mode 100644 index 0000000000000000000000000000000000000000..4ff837c529b3bf6e9f7d811bd69939b0d3cf14d9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deliveryoptimization.idl @@ -0,0 +1,150 @@ +//+------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//+------------------------------------------------------------------------- + +cpp_quote("#include ") +cpp_quote("") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") +cpp_quote("") + +#ifndef DO_NO_IMPORTS +import "oaidl.idl"; +#endif + +typedef struct _DO_DOWNLOAD_RANGE +{ + UINT64 Offset; + UINT64 Length; +} DO_DOWNLOAD_RANGE; + +typedef struct _DO_DOWNLOAD_RANGES_INFO +{ + UINT RangeCount; + [size_is(RangeCount)] DO_DOWNLOAD_RANGE Ranges[]; +} DO_DOWNLOAD_RANGES_INFO; + +typedef enum _DODownloadState +{ + DODownloadState_Created = 0, // download object is created but hasn't been started yet + DODownloadState_Transferring, // download is in progress + DODownloadState_Transferred, // download is transferred (can start again) + DODownloadState_Finalized, // download is finalized (cannot be started again) + DODownloadState_Aborted, // download is aborted + DODownloadState_Paused, // download has been paused on demand or due to (transient) error +} DODownloadState; + +typedef struct _DO_DOWNLOAD_STATUS +{ + UINT64 BytesTotal; + UINT64 BytesTransferred; + DODownloadState State; + HRESULT Error; + HRESULT ExtendedError; +} DO_DOWNLOAD_STATUS; + +typedef enum _DODownloadCostPolicy +{ + DODownloadCostPolicy_Always = 0, // download runs regardless of the cost + DODownloadCostPolicy_Unrestricted, // download runs unless imposes costs or traffic limits + DODownloadCostPolicy_Standard, // download runs unless neither subject to a surcharge nor near exhaustion + DODownloadCostPolicy_NoRoaming, // download runs unless that connectivity is subject to roaming surcharges + DODownloadCostPolicy_NoSurcharge, // download runs unless subject to a surcharge + DODownloadCostPolicy_NoCellular, // deprecated, use DODownloadProperty_DisallowOnCellular instead +} DODownloadCostPolicy; + +typedef enum _DODownloadProperty +{ + DODownloadProperty_Id = 0, // [VT_BSTR] read-only ID to uniquely identify the download + DODownloadProperty_Uri, // [VT_BSTR] remote URI path (required if content ID isn't provided) + DODownloadProperty_ContentId, // [VT_BSTR] download content ID (required if URI isn't provided) + DODownloadProperty_DisplayName, // [VT_BSTR] download display name + DODownloadProperty_LocalPath, // [VT_BSTR] Local path (may not exist, and DO will attempt to create it under the caller's token) + DODownloadProperty_HttpCustomHeaders, // [VT_BSTR] custom HTTP request headers + DODownloadProperty_CostPolicy, // [VT_UI4] one of the DODownloadCostPolicy values + DODownloadProperty_SecurityFlags, // [VT_UI4] WinHTTP security flags + DODownloadProperty_CallbackFreqPercent, // [VT_UI4] callback frequency calls based on percentage + DODownloadProperty_CallbackFreqSeconds, // [VT_UI4] callback frequency calls based on seconds (default: 1 second) + DODownloadProperty_NoProgressTimeoutSeconds, // [VT_UI4] DO timeout length for no download progress (min value: 60 sec and 0 is DO default) + DODownloadProperty_ForegroundPriority, // [VT_BOOL] foreground download (background is the default) + DODownloadProperty_BlockingMode, // [VT_BOOL] blocking mode - Start() will block until download is complete/error + DODownloadProperty_CallbackInterface, // [VT_UNKNOWN] IDODownloadStatusCallback* for download callbacks + DODownloadProperty_StreamInterface, // [VT_UNKNOWN] IStream* for direct streaming + DODownloadProperty_SecurityContext, // [VT_ARRAY | VT_UI1] bytes safe array of a serialized CERT_CONTEXT + DODownloadProperty_NetworkToken, // [VT_BOOL] network token to be used during HTTP operations (set false to clear the token) + DODownloadProperty_CorrelationVector, // [VT_BSTR] CV + DODownloadProperty_DecryptionInfo, // [VT_BSTR] decryption info [can't be read], serialized json + DODownloadProperty_IntegrityCheckInfo, // [VT_BSTR] PHF [can't be read], serialized json + DODownloadProperty_IntegrityCheckMandatory, // [VT_BOOL] PHF boolean + DODownloadProperty_TotalSizeBytes, // [VT_UI8] download size + // Added in 2020-H2 (Iron) + DODownloadProperty_DisallowOnCellular, // [VT_BOOL] don't download on cellular, regardless of cost policy + DODownloadProperty_HttpCustomAuthHeaders, // [VT_BSTR] custom HTTPS headers used when challenged + // Added in 2021-H2 (Nickel) + DODownloadProperty_HttpAllowSecureToNonSecureRedirect, // [VT_BOOL] https to http redirection (default: FALSE) + DODownloadProperty_NonVolatile, // [VT_BOOL] save download info to registry (default: FALSE) + // Added in 2023-H2 (Germanium) + DODownloadProperty_HttpRedirectionTarget, // [VT_BSTR] [read-only] URL to which the download was redirected, if any + DODownloadProperty_HttpResponseHeaders, // [VT_BSTR] [read-only] Response headers for the last HTTP response + DODownloadProperty_HttpServerIPAddress, // [VT_BSTR] [read-only] Server IP Address for the last HTTP response + DODownloadProperty_HttpStatusCode, // [VT_UI4] [read-only] Status code for the last HTTP response +} DODownloadProperty; + +typedef struct _DO_DOWNLOAD_ENUM_CATEGORY +{ + DODownloadProperty Property; + LPCWSTR Value; +} DO_DOWNLOAD_ENUM_CATEGORY; + +[ object, uuid(FBBD7FC0-C147-4727-A38D-827EF071EE77) ] +interface IDODownload : IUnknown +{ + HRESULT Start([in, unique] const DO_DOWNLOAD_RANGES_INFO *ranges); + HRESULT Pause(); + HRESULT Abort(); + HRESULT Finalize(); + HRESULT GetStatus([out] DO_DOWNLOAD_STATUS *status); + HRESULT GetProperty([in] DODownloadProperty propId, [out] VARIANT* propVal); + HRESULT SetProperty([in] DODownloadProperty propId, [in] const VARIANT* propVal); +} + +[ object, uuid(D166E8E3-A90E-4392-8E87-05E996D3747D) ] +interface IDODownloadStatusCallback : IUnknown +{ + HRESULT OnStatusChange([in] IDODownload *download, [in] const DO_DOWNLOAD_STATUS *status); +} + +[ object, uuid(400E2D4A-1431-4C1A-A748-39CA472CFDB1) ] +interface IDOManager : IUnknown +{ + HRESULT CreateDownload([out] IDODownload **download); + HRESULT EnumDownloads([in, unique] const DO_DOWNLOAD_ENUM_CATEGORY *category, [out] IEnumUnknown **ppEnum); +} + +[uuid(6a1fae95-21b8-46c4-a0c9-5d5fae106ef0)] +library DeliveryOptimization +{ + [uuid(5b99fa76-721c-423c-adac-56d03c8a8007)] + coclass DeliveryOptimization + { + interface IDOManager; + }; +} + +cpp_quote("#define DO_LENGTH_TO_EOF (UINT64)(-1)") +cpp_quote("") +cpp_quote("#define DecryptionInfo_KeyData L\"KeyData\"") +cpp_quote("#define DecryptionInfo_EncryptionBufferSize L\"EncryptionBufferSize\"") +cpp_quote("#define DecryptionInfo_AlgorithmName L\"AlgorithmName\"") +cpp_quote("#define DecryptionInfo_ChainingMode L\"ChainingMode\"") +cpp_quote("") +cpp_quote("#define IntegrityCheckInfo_PiecesHashFileUrl L\"PiecesHashFileUrl\"") +cpp_quote("#define IntegrityCheckInfo_PiecesHashFileDigest L\"PiecesHashFileDigest\"") +cpp_quote("#define IntegrityCheckInfo_PiecesHashFileDigestAlgorithm L\"PiecesHashFileDigestAlgorithm\"") +cpp_quote("#define IntegrityCheckInfo_HashOfHashes L\"HashOfHashes\"") +cpp_quote("") +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/deliveryoptimizationerrors.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deliveryoptimizationerrors.h new file mode 100644 index 0000000000000000000000000000000000000000..15ef95c8161479db21c96cad1291b148cc546e1f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deliveryoptimizationerrors.h @@ -0,0 +1,142 @@ +//+------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//+------------------------------------------------------------------------- +#ifndef __DELIVERYOPTIMIZATION_ERROR_H__ +#define __DELIVERYOPTIMIZATION_ERROR_H__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +// DeliveryOptimization error codes are HRESULTs using FACILITY_DELIVERY_OPTIMIZATION = 208 (0xD0). +// +// See winerror.h for more info on the layout of HRESULT values. + +#define DO_ZONE_MASK 0xF000 +#define DO_TRANSIENT_ZONE_MASK 0xF800 +#define DO_TRANSIENT_ZONE 0x3800 + +#ifdef FACILITY_DELIVERY_OPTIMIZATION +FORCEINLINE bool IS_DO_TRANSIENT_ERROR(HRESULT hr) +{ + return ( + FAILED(hr) && (HRESULT_FACILITY(hr) == FACILITY_DELIVERY_OPTIMIZATION) && + ((HRESULT_CODE(hr) & DO_TRANSIENT_ZONE_MASK) == DO_TRANSIENT_ZONE)); +} +#endif + +#ifndef _HRESULT_TYPEDEF_ +#ifdef RC_INVOKED +#define _HRESULT_TYPEDEF_(_sc) _sc +#else // RC_INVOKED +#define _HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc) +#endif // RC_INVOKED +#endif // _HRESULT_TYPEDEF_ + +// clang-format off + +#define DO_E_NO_SERVICE _HRESULT_TYPEDEF_(0x80D01001L) // Delivery Optimization was unable to provide the service + +// Download job codes + +#define DO_E_DOWNLOAD_NO_PROGRESS _HRESULT_TYPEDEF_(0x80D02002L) // Download of a file saw no progress within the defined period +#define DO_E_JOB_NOT_FOUND _HRESULT_TYPEDEF_(0x80D02003L) // Job was not found +#define DO_E_JOB_EMPTY _HRESULT_TYPEDEF_(0x80D02004L) // There were no files in the job +#define DO_E_NO_DOWNLOADS _HRESULT_TYPEDEF_(0x80D02005L) // No downloads currently exist +#define DO_E_MEMORYSTREAM_DOWNLOAD_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80D0200BL) // Memory stream transfer is not supported for this download +#define DO_E_JOB_TOO_OLD _HRESULT_TYPEDEF_(0x80D0200CL) // Job has neither completed nor has it been cancelled prior to reaching the maximum age threshold +#define DO_E_LOCALPATH_NOT_SET _HRESULT_TYPEDEF_(0x80D0200DL) // There is no local file path specified for this download +#define DO_E_FILE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80D02010L) // No file is available because no URL generated an error. +#define DO_E_UNKNOWN_PROPERTY_ID _HRESULT_TYPEDEF_(0x80D02011L) // SetProperty() or GetProperty() called with an unknown property ID +#define DO_E_READ_ONLY_PROPERTY _HRESULT_TYPEDEF_(0x80D02012L) // Unable to call SetProperty() on a read-only property +#define DO_E_INVALID_STATE _HRESULT_TYPEDEF_(0x80D02013L) // The requested action is not allowed in the current job state. The job might have been canceled or completed transferring. It is in a read-only state now. +#define DO_E_ERROR_INFORMATION_UNAVAILABLE _HRESULT_TYPEDEF_(0x80D02014L) // No errors have occurred +#define DO_E_WRITE_ONLY_PROPERTY _HRESULT_TYPEDEF_(0x80D02015L) // Unable to call GetProperty() on a write-only property +#define DO_E_INTEGRITYCHECKINFO_UNSPECIFIED _HRESULT_TYPEDEF_(0x80D02016L) // Download job is marked as requiring integrity checking but integrity checking info was not specified. +#define DO_E_INTEGRITYCHECKINFO_UNAVAILABLE _HRESULT_TYPEDEF_(0x80D02017L) // Download job is marked as requiring integrity checking but integrity checking info could not be retrieved +#define DO_E_FILE_DOWNLOADSINK_UNSPECIFIED _HRESULT_TYPEDEF_(0x80D02018L) // Unable to start a download because no download sink (either local file or stream interface) was specified +#define DO_E_FILE_DOWNLOADSINK_ALREADY_SET _HRESULT_TYPEDEF_(0x80D02019L) // An attempt to set a download sink failed because another type of sink is already set +#define DO_E_FILE_SIZE_UNKNOWN_HTTP_200 _HRESULT_TYPEDEF_(0x80D0201AL) // Unable to determine file size from HTTP 200 status code +#define DO_E_FILE_ENCRYPTION_EXPECTED _HRESULT_TYPEDEF_(0x80D0201BL) // Decryption key was provided but file on CDN does not appear to be encrypted +#define DO_E_FILE_SIZE_UNKNOWN_HTTP_206 _HRESULT_TYPEDEF_(0x80D0201CL) // Unable to determine file size from HTTP 206 status code +#define DO_E_FILE_SIZE_UNKNOWN_HTTP_2XX _HRESULT_TYPEDEF_(0x80D0201DL) // Unable to determine file size from an unexpected HTTP 2xx status code +#define DO_E_NETWORK_ACCESS_CONSENT_NEEDED _HRESULT_TYPEDEF_(0x80D0201EL) // User consent to access the network is required to proceed + +// IDODownload interface + +#define DO_E_DOWNLOAD_NO_URI _HRESULT_TYPEDEF_(0x80D02200L) // The download was started without providing a URI +#define DO_E_DOWNLOAD_NO_CONTENT_ID _HRESULT_TYPEDEF_(0x80D02201L) // The download was started without providing a content ID +#define DO_E_INVALID_CONTENT_ID _HRESULT_TYPEDEF_(0x80D02202L) // The specified content ID is invalid +#define DO_E_DOWNLOAD_RANGES_UNEXPECTED _HRESULT_TYPEDEF_(0x80D02203L) // Ranges are unexpected for the current download +#define DO_E_DOWNLOAD_RANGES_EXPECTED _HRESULT_TYPEDEF_(0x80D02204L) // Ranges are expected for the current download + +#define DO_E_NO_DOWNLOAD_PARTICIPATION _HRESULT_TYPEDEF_(0x80D03001L) // Download job not allowed due to participation throttling +#define DO_E_NO_DOWNLOAD_EXTSETTINGS _HRESULT_TYPEDEF_(0x80D03002L) // Download job not allowed due to user/admin settings + +// Transient conditions + +#define DO_E_BLOCKED_BY_COST_TRANSFER_POLICY _HRESULT_TYPEDEF_(0x80D03801L) // DO core paused the job due to cost policy restrictions +#define DO_E_DOWNLOADMODE_SET_BY_CP _HRESULT_TYPEDEF_(0x80D03802L) // DO job download mode restricted by content policy +#define DO_E_BLOCKED_BY_CELLULAR_POLICY _HRESULT_TYPEDEF_(0x80D03803L) // DO core paused the job due to detection of cellular network and policy restrictions +#define DO_E_BLOCKED_BY_POWER_STATE _HRESULT_TYPEDEF_(0x80D03804L) // DO core paused the job due to detection of power state change into non-AC mode +#define DO_E_BLOCKED_BY_NO_NETWORK _HRESULT_TYPEDEF_(0x80D03805L) // DO core paused the job due to loss of network connectivity +#define DO_E_DOWNLOADMODE_SET_BY_POLICY _HRESULT_TYPEDEF_(0x80D03806L) // DO job download mode restricted by policy +#define DO_E_BLOCKED_BY_VPN_POLICY _HRESULT_TYPEDEF_(0x80D03807L) // DO core paused the completed job due to detection of VPN network +#define DO_E_BLOCKED_BY_CRITICAL_MEMORY_USAGE _HRESULT_TYPEDEF_(0x80D03808L) // DO core paused the completed job due to detection of critical memory usage on the system +#define DO_E_DOWNLOADMODE_SET_BY_CACHE_ABSENCE _HRESULT_TYPEDEF_(0x80D03809L) // DO job download mode restricted due to absence of the cache folder +#define DO_E_CLOUD_SERVICES_UNREACHABLE _HRESULT_TYPEDEF_(0x80D0380AL) // Unable to contact one or more DO cloud services +#define DO_E_DOWNLOADMODE_SET_FOR_UNREG_CALLER _HRESULT_TYPEDEF_(0x80D0380BL) // DO job download mode restricted for unregistered caller +#define DO_E_DOWNLOADMODE_SET_FOR_SIMPLE_RANGES _HRESULT_TYPEDEF_(0x80D0380CL) // DO job is using the simple ranges download in simple mode +#define DO_E_UNEXPECTED_HTTP_STATUS_2XX _HRESULT_TYPEDEF_(0x80D0380DL) // DO job paused due to unexpected HTTP response codes (e.g. 204) + +// HTTP + +#define DO_E_HTTP_BLOCKSIZE_MISMATCH _HRESULT_TYPEDEF_(0x80D05001L) // HTTP server returned a response with data size not equal to what was requested +#define DO_E_HTTP_CERT_VALIDATION _HRESULT_TYPEDEF_(0x80D05002L) // The Http server certificate validation has failed +#define DO_E_INVALID_RANGE _HRESULT_TYPEDEF_(0x80D05010L) // The specified byte range is invalid +#define DO_E_INSUFFICIENT_RANGE_SUPPORT _HRESULT_TYPEDEF_(0x80D05011L) // The server does not support the necessary HTTP protocol. Delivery Optimization (DO) requires that the server support the Range protocol header. +#define DO_E_OVERLAPPING_RANGES _HRESULT_TYPEDEF_(0x80D05012L) // The list of byte ranges contains some overlapping ranges, which are not supported + +// General core codes + +#define DO_E_UPLOADING_BAD_PIECES _HRESULT_TYPEDEF_(0x80D06800L) // Too many bad pieces found during upload +#define DO_E_FATAL_CORE_ERROR _HRESULT_TYPEDEF_(0x80D06802L) // Fatal error encountered in core +#define DO_E_SERVICES_RESPONSE_EMPTY _HRESULT_TYPEDEF_(0x80D06803L) // Services response was an empty JSON content +#define DO_E_BAD_INCOMING_DATA _HRESULT_TYPEDEF_(0x80D06804L) // Received bad or incomplete data for a content piece +#define DO_E_BAD_PIECE_HASH _HRESULT_TYPEDEF_(0x80D06805L) // Content piece hash check failed +#define DO_E_BAD_PIECE_HASH_NO_BAN _HRESULT_TYPEDEF_(0x80D06806L) // Content piece hash check failed but source is not banned yet +#define DO_E_ALREADY_HAVE_PIECE _HRESULT_TYPEDEF_(0x80D06807L) // The piece was rejected because it already exists in the cache +#define DO_E_MISSING_PIECE _HRESULT_TYPEDEF_(0x80D06808L) // The piece requested is no longer available in the cache +#define DO_E_METAINFO_CONTENT _HRESULT_TYPEDEF_(0x80D06809L) // Failed to parse JSON from input buffer +#define DO_E_METAINFO_VERSION _HRESULT_TYPEDEF_(0x80D0680AL) // Invalid metainfo version +#define DO_E_SWARM_NOT_RUNNING _HRESULT_TYPEDEF_(0x80D0680BL) // The swarm isn't running +#define DO_E_UNRECOGNIZED_CONN _HRESULT_TYPEDEF_(0x80D0680CL) // The peer was not recognized by the connection manager +#define DO_E_PEER_BANNED _HRESULT_TYPEDEF_(0x80D0680DL) // The peer is banned +#define DO_E_CONNECT_TO_SELF _HRESULT_TYPEDEF_(0x80D0680EL) // The client is trying to connect to itself +#define DO_E_ALREADY_CONNECTED _HRESULT_TYPEDEF_(0x80D0680FL) // The socket or peer is already connected +#define DO_E_NO_MORE_CONNECTIONS _HRESULT_TYPEDEF_(0x80D06810L) // The maximum number of connections has been reached +#define DO_E_LOST_CONNECTION _HRESULT_TYPEDEF_(0x80D06811L) // The connection was lost +#define DO_E_UNRECOGNIZED_SWARM _HRESULT_TYPEDEF_(0x80D06812L) // The swarm ID is not recognized +#define DO_E_INVALID_HANDSHAKE_LEN _HRESULT_TYPEDEF_(0x80D06813L) // The handshake length is invalid +#define DO_E_SOCKET_CLOSED _HRESULT_TYPEDEF_(0x80D06814L) // The socket has been closed +#define DO_E_PEER_MSG_TOO_LONG _HRESULT_TYPEDEF_(0x80D06815L) // The message is too long +#define DO_E_INVALID_PEER_MSG _HRESULT_TYPEDEF_(0x80D06816L) // The message is invalid +#define DO_E_PEER_IS_UPLOAD _HRESULT_TYPEDEF_(0x80D06817L) // The peer is an upload +#define DO_E_PIN_FAIL_NO_PEERING _HRESULT_TYPEDEF_(0x80D06818L) // Cannot pin a swarm because it's not in peering mode +#define DO_E_DELETE_PINNED_SWARM _HRESULT_TYPEDEF_(0x80D06819L) // Cannot delete a pinned swarm without using the "force" flag + +#define DO_E_METAINFO_DIGEST_MATCH _HRESULT_TYPEDEF_(0x80D0681AL) // Hash digest of the input buffer did not match +#define DO_E_METAINFO_HOH_MATCH _HRESULT_TYPEDEF_(0x80D0681BL) // Hash-of-hashes preliminary match failed +#define DO_E_METAINFO_HOH_FINAL_MATCH _HRESULT_TYPEDEF_(0x80D0681CL) // Computed hash-of-hashes match failed +#define DO_E_METAINFO_CONTENT_LENGTH _HRESULT_TYPEDEF_(0x80D0681DL) // Content length is invalid +#define DO_E_METAINFO_PIECE_SIZE _HRESULT_TYPEDEF_(0x80D0681EL) // Piece size is invalid +#define DO_E_METAINFO_PARSE_HOH _HRESULT_TYPEDEF_(0x80D0681FL) // Failed to parse hash-of-hashes value +#define DO_E_METAINFO_PARSE_PIECEHASHES _HRESULT_TYPEDEF_(0x80D06820L) // Failed to parse array of piece hashes +#define DO_E_METAINFO_PARSE_ONE_PIECEHASH _HRESULT_TYPEDEF_(0x80D06821L) // Failed to parse an individual piece hash digest +#define DO_E_METAINFO_FILE_SIZE _HRESULT_TYPEDEF_(0x80D06822L) // Failed to get PHF file's size or size is bad + +// clang-format on + +#endif // __DELIVERYOPTIMIZATION_ERROR_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/devenum.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devenum.idl new file mode 100644 index 0000000000000000000000000000000000000000..a9b293458314692a5947ce5bcafaa4a0e01ae51b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devenum.idl @@ -0,0 +1,55 @@ +//------------------------------------------------------------------------------ +// File: DevEnum.idl +// +// Desc: IDL source for devenum.dll. This file will be processed by the +// MIDL tool to produce the type library (devenum.tlb) and marshalling +// code. +// +// Copyright (c) 1998 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#define CDEF_CLASS_DEFAULT 0x0001") +cpp_quote("#define CDEF_BYPASS_CLASS_MANAGER 0x0002") +//cpp_quote("#define CDEF_CLASS_LEGACY 0x0004") +cpp_quote("#define CDEF_MERIT_ABOVE_DO_NOT_USE 0x0008") + +// if any of these flags are set, then only the types specified by the +// flags are enumerated +cpp_quote("#define CDEF_DEVMON_CMGR_DEVICE 0x0010") +cpp_quote("#define CDEF_DEVMON_DMO 0x0020") +cpp_quote("#define CDEF_DEVMON_PNP_DEVICE 0x0040") +cpp_quote("#define CDEF_DEVMON_FILTER 0x0080") +cpp_quote("#define CDEF_DEVMON_SELECTIVE_MASK 0x00f0") + + +// Define for 'local' so that proxy-stubs can be generated for testing +#ifndef AM_LOCAL +#define AM_LOCAL local, +#define AM_ANNOTATION(_x_) ,annotation(_x_) +#endif + +[ + AM_LOCAL + object, + uuid(29840822-5B84-11D0-BD3B-00A0C911CE86), + pointer_default(unique) +] +interface ICreateDevEnum : IUnknown +{ + import "oaidl.idl"; + + HRESULT CreateClassEnumerator( + [in] REFCLSID clsidDeviceClass, + [out AM_ANNOTATION("_Out_")] IEnumMoniker ** ppEnumMoniker, + [in] DWORD dwFlags); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/devfiltertypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devfiltertypes.h new file mode 100644 index 0000000000000000000000000000000000000000..30c3738821c081299c00ad5ec23e140b3cc6e6e8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devfiltertypes.h @@ -0,0 +1,106 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + devfiltertypes.h + +Abstract: + + Defines types relating to device filters that evaluate on property sets + +--*/ + + + +#pragma once + +#include +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#include + +// +// DEVPROP_OPERATOR enum +// +// This enum are the operators that can be used in a DEVPROP_FILTER_EXPRESSION. +// + +typedef +#ifdef MIDL_PASS +[v1_enum] +#endif +enum _DEVPROP_OPERATOR { + // operator modifiers + DEVPROP_OPERATOR_MODIFIER_NOT = 0x00010000, + DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE = 0x00020000, + + // comparison operators + DEVPROP_OPERATOR_NONE = 0x00000000, + DEVPROP_OPERATOR_EXISTS = 0x00000001, + DEVPROP_OPERATOR_NOT_EXISTS = DEVPROP_OPERATOR_EXISTS | DEVPROP_OPERATOR_MODIFIER_NOT, + DEVPROP_OPERATOR_EQUALS = 0x00000002, + DEVPROP_OPERATOR_NOT_EQUALS = DEVPROP_OPERATOR_EQUALS | DEVPROP_OPERATOR_MODIFIER_NOT, + DEVPROP_OPERATOR_GREATER_THAN = 0x00000003, + DEVPROP_OPERATOR_LESS_THAN = 0x00000004, + DEVPROP_OPERATOR_GREATER_THAN_EQUALS = 0x00000005, + DEVPROP_OPERATOR_LESS_THAN_EQUALS = 0x00000006, + DEVPROP_OPERATOR_EQUALS_IGNORE_CASE = DEVPROP_OPERATOR_EQUALS | DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE, + DEVPROP_OPERATOR_NOT_EQUALS_IGNORE_CASE = DEVPROP_OPERATOR_EQUALS | DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE | DEVPROP_OPERATOR_MODIFIER_NOT, + DEVPROP_OPERATOR_BITWISE_AND = 0x00000007, + DEVPROP_OPERATOR_BITWISE_OR = 0x00000008, + DEVPROP_OPERATOR_BEGINS_WITH = 0x00000009, + DEVPROP_OPERATOR_ENDS_WITH = 0x0000000a, + DEVPROP_OPERATOR_CONTAINS = 0x0000000b, + DEVPROP_OPERATOR_BEGINS_WITH_IGNORE_CASE = DEVPROP_OPERATOR_BEGINS_WITH | DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE, + DEVPROP_OPERATOR_ENDS_WITH_IGNORE_CASE = DEVPROP_OPERATOR_ENDS_WITH | DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE, + DEVPROP_OPERATOR_CONTAINS_IGNORE_CASE = DEVPROP_OPERATOR_CONTAINS | DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE, + + // list operators + DEVPROP_OPERATOR_LIST_CONTAINS = 0x00001000, + DEVPROP_OPERATOR_LIST_ELEMENT_BEGINS_WITH = 0x00002000, + DEVPROP_OPERATOR_LIST_ELEMENT_ENDS_WITH = 0x00003000, + DEVPROP_OPERATOR_LIST_ELEMENT_CONTAINS = 0x00004000, + DEVPROP_OPERATOR_LIST_CONTAINS_IGNORE_CASE = DEVPROP_OPERATOR_LIST_CONTAINS | DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE, + DEVPROP_OPERATOR_LIST_ELEMENT_BEGINS_WITH_IGNORE_CASE = DEVPROP_OPERATOR_LIST_ELEMENT_BEGINS_WITH | DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE, + DEVPROP_OPERATOR_LIST_ELEMENT_ENDS_WITH_IGNORE_CASE = DEVPROP_OPERATOR_LIST_ELEMENT_ENDS_WITH | DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE, + DEVPROP_OPERATOR_LIST_ELEMENT_CONTAINS_IGNORE_CASE = DEVPROP_OPERATOR_LIST_ELEMENT_CONTAINS | DEVPROP_OPERATOR_MODIFIER_IGNORE_CASE, + + // logical operators + DEVPROP_OPERATOR_AND_OPEN = 0x00100000, + DEVPROP_OPERATOR_AND_CLOSE = 0x00200000, + DEVPROP_OPERATOR_OR_OPEN = 0x00300000, + DEVPROP_OPERATOR_OR_CLOSE = 0x00400000, + DEVPROP_OPERATOR_NOT_OPEN = 0x00500000, + DEVPROP_OPERATOR_NOT_CLOSE = 0x00600000, + + // array operators + DEVPROP_OPERATOR_ARRAY_CONTAINS = 0x10000000, + + // masks + DEVPROP_OPERATOR_MASK_EVAL = 0x00000FFF, + DEVPROP_OPERATOR_MASK_LIST = 0x0000F000, + DEVPROP_OPERATOR_MASK_MODIFIER = 0x000F0000, + DEVPROP_OPERATOR_MASK_NOT_LOGICAL = 0xF00FFFFF, + DEVPROP_OPERATOR_MASK_LOGICAL = 0x0FF00000, + DEVPROP_OPERATOR_MASK_ARRAY = 0xF0000000 + +} DEVPROP_OPERATOR, *PDEVPROP_OPERATOR; + +#ifndef MIDL_PASS +DEFINE_ENUM_FLAG_OPERATORS(DEVPROP_OPERATOR); +#endif + +// +// DEVPROP_FILTER_EXPRESSION structure +// +// An array of DEVPROP_FILTER_EXPRESSION structures makes a filter. +// + +typedef struct _DEVPROP_FILTER_EXPRESSION { + DEVPROP_OPERATOR Operator; + DEVPROPERTY Property; +} DEVPROP_FILTER_EXPRESSION, *PDEVPROP_FILTER_EXPRESSION; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/deviceaccess.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deviceaccess.h new file mode 100644 index 0000000000000000000000000000000000000000..8ed2b9afde23a392105ef74caa33cd51449c9ee4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deviceaccess.h @@ -0,0 +1,472 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __deviceaccess_h__ +#define __deviceaccess_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDeviceRequestCompletionCallback_FWD_DEFINED__ +#define __IDeviceRequestCompletionCallback_FWD_DEFINED__ +typedef interface IDeviceRequestCompletionCallback IDeviceRequestCompletionCallback; + +#endif /* __IDeviceRequestCompletionCallback_FWD_DEFINED__ */ + + +#ifndef __IDeviceIoControl_FWD_DEFINED__ +#define __IDeviceIoControl_FWD_DEFINED__ +typedef interface IDeviceIoControl IDeviceIoControl; + +#endif /* __IDeviceIoControl_FWD_DEFINED__ */ + + +#ifndef __ICreateDeviceAccessAsync_FWD_DEFINED__ +#define __ICreateDeviceAccessAsync_FWD_DEFINED__ +typedef interface ICreateDeviceAccessAsync ICreateDeviceAccessAsync; + +#endif /* __ICreateDeviceAccessAsync_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "wtypes.h" +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_deviceaccess_0000_0000 */ +/* [local] */ + +#if (NTDDI_VERSION >= NTDDI_WIN8) +STDAPI +CreateDeviceAccessInstance( + _In_ PCWSTR deviceInterfacePath, + _In_ DWORD desiredAccess, + _COM_Outptr_ ICreateDeviceAccessAsync **createAsync + ); +#endif +EXTERN_GUID( CLSID_DeviceIoControl, 0x12d3e372, 0x874b, 0x457d, 0x9f, 0xdf, 0x73, 0x97, 0x77, 0x78, 0x68, 0x6c ); + + + +extern RPC_IF_HANDLE __MIDL_itf_deviceaccess_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_deviceaccess_0000_0000_v0_0_s_ifspec; + +#ifndef __IDeviceRequestCompletionCallback_INTERFACE_DEFINED__ +#define __IDeviceRequestCompletionCallback_INTERFACE_DEFINED__ + +/* interface IDeviceRequestCompletionCallback */ +/* [unique][uuid][object] */ + +#define RequestCompletion Invoke + +EXTERN_C const IID IID_IDeviceRequestCompletionCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("999BAD24-9ACD-45BB-8669-2A2FC0288B04") + IDeviceRequestCompletionCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RequestCompletion( + /* [in] */ HRESULT requestResult, + /* [in] */ DWORD bytesReturned) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDeviceRequestCompletionCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDeviceRequestCompletionCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDeviceRequestCompletionCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDeviceRequestCompletionCallback * This); + + DECLSPEC_XFGVIRT(IDeviceRequestCompletionCallback, RequestCompletion) + HRESULT ( STDMETHODCALLTYPE *RequestCompletion )( + __RPC__in IDeviceRequestCompletionCallback * This, + /* [in] */ HRESULT requestResult, + /* [in] */ DWORD bytesReturned); + + END_INTERFACE + } IDeviceRequestCompletionCallbackVtbl; + + interface IDeviceRequestCompletionCallback + { + CONST_VTBL struct IDeviceRequestCompletionCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDeviceRequestCompletionCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDeviceRequestCompletionCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDeviceRequestCompletionCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDeviceRequestCompletionCallback_RequestCompletion(This,requestResult,bytesReturned) \ + ( (This)->lpVtbl -> RequestCompletion(This,requestResult,bytesReturned) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDeviceRequestCompletionCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IDeviceIoControl_INTERFACE_DEFINED__ +#define __IDeviceIoControl_INTERFACE_DEFINED__ + +/* interface IDeviceIoControl */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDeviceIoControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9EEFE161-23AB-4F18-9B49-991B586AE970") + IDeviceIoControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE DeviceIoControlSync( + /* [annotation][in] */ + _In_ DWORD ioControlCode, + /* [annotation][size_is][in] */ + _In_reads_opt_(inputBufferSize) UCHAR *inputBuffer, + /* [annotation][in] */ + _In_ DWORD inputBufferSize, + /* [annotation][size_is][out] */ + _Out_writes_opt_(outputBufferSize) UCHAR *outputBuffer, + /* [annotation][in] */ + _In_ DWORD outputBufferSize, + /* [annotation][out] */ + _Out_ DWORD *bytesReturned) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeviceIoControlAsync( + /* [annotation][in] */ + _In_ DWORD ioControlCode, + /* [annotation][size_is][in] */ + _In_reads_opt_(inputBufferSize) UCHAR *inputBuffer, + /* [annotation][in] */ + _In_ DWORD inputBufferSize, + /* [annotation][size_is][out] */ + _Out_writes_opt_(outputBufferSize) UCHAR *outputBuffer, + /* [annotation][in] */ + _In_ DWORD outputBufferSize, + /* [annotation][in] */ + _In_ IDeviceRequestCompletionCallback *requestCompletionCallback, + /* [annotation][out] */ + _Out_opt_ ULONG_PTR *cancelContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE CancelOperation( + /* [annotation][in] */ + _In_ ULONG_PTR cancelContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDeviceIoControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDeviceIoControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDeviceIoControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDeviceIoControl * This); + + DECLSPEC_XFGVIRT(IDeviceIoControl, DeviceIoControlSync) + HRESULT ( STDMETHODCALLTYPE *DeviceIoControlSync )( + IDeviceIoControl * This, + /* [annotation][in] */ + _In_ DWORD ioControlCode, + /* [annotation][size_is][in] */ + _In_reads_opt_(inputBufferSize) UCHAR *inputBuffer, + /* [annotation][in] */ + _In_ DWORD inputBufferSize, + /* [annotation][size_is][out] */ + _Out_writes_opt_(outputBufferSize) UCHAR *outputBuffer, + /* [annotation][in] */ + _In_ DWORD outputBufferSize, + /* [annotation][out] */ + _Out_ DWORD *bytesReturned); + + DECLSPEC_XFGVIRT(IDeviceIoControl, DeviceIoControlAsync) + HRESULT ( STDMETHODCALLTYPE *DeviceIoControlAsync )( + IDeviceIoControl * This, + /* [annotation][in] */ + _In_ DWORD ioControlCode, + /* [annotation][size_is][in] */ + _In_reads_opt_(inputBufferSize) UCHAR *inputBuffer, + /* [annotation][in] */ + _In_ DWORD inputBufferSize, + /* [annotation][size_is][out] */ + _Out_writes_opt_(outputBufferSize) UCHAR *outputBuffer, + /* [annotation][in] */ + _In_ DWORD outputBufferSize, + /* [annotation][in] */ + _In_ IDeviceRequestCompletionCallback *requestCompletionCallback, + /* [annotation][out] */ + _Out_opt_ ULONG_PTR *cancelContext); + + DECLSPEC_XFGVIRT(IDeviceIoControl, CancelOperation) + HRESULT ( STDMETHODCALLTYPE *CancelOperation )( + IDeviceIoControl * This, + /* [annotation][in] */ + _In_ ULONG_PTR cancelContext); + + END_INTERFACE + } IDeviceIoControlVtbl; + + interface IDeviceIoControl + { + CONST_VTBL struct IDeviceIoControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDeviceIoControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDeviceIoControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDeviceIoControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDeviceIoControl_DeviceIoControlSync(This,ioControlCode,inputBuffer,inputBufferSize,outputBuffer,outputBufferSize,bytesReturned) \ + ( (This)->lpVtbl -> DeviceIoControlSync(This,ioControlCode,inputBuffer,inputBufferSize,outputBuffer,outputBufferSize,bytesReturned) ) + +#define IDeviceIoControl_DeviceIoControlAsync(This,ioControlCode,inputBuffer,inputBufferSize,outputBuffer,outputBufferSize,requestCompletionCallback,cancelContext) \ + ( (This)->lpVtbl -> DeviceIoControlAsync(This,ioControlCode,inputBuffer,inputBufferSize,outputBuffer,outputBufferSize,requestCompletionCallback,cancelContext) ) + +#define IDeviceIoControl_CancelOperation(This,cancelContext) \ + ( (This)->lpVtbl -> CancelOperation(This,cancelContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDeviceIoControl_INTERFACE_DEFINED__ */ + + +#ifndef __ICreateDeviceAccessAsync_INTERFACE_DEFINED__ +#define __ICreateDeviceAccessAsync_INTERFACE_DEFINED__ + +/* interface ICreateDeviceAccessAsync */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_ICreateDeviceAccessAsync; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3474628F-683D-42D2-ABCB-DB018C6503BC") + ICreateDeviceAccessAsync : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Wait( + /* [annotation][in] */ + _In_ DWORD timeout) = 0; + + virtual HRESULT STDMETHODCALLTYPE Close( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetResult( + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][out] */ + _COM_Outptr_ void **deviceAccess) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICreateDeviceAccessAsyncVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICreateDeviceAccessAsync * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICreateDeviceAccessAsync * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICreateDeviceAccessAsync * This); + + DECLSPEC_XFGVIRT(ICreateDeviceAccessAsync, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + ICreateDeviceAccessAsync * This); + + DECLSPEC_XFGVIRT(ICreateDeviceAccessAsync, Wait) + HRESULT ( STDMETHODCALLTYPE *Wait )( + ICreateDeviceAccessAsync * This, + /* [annotation][in] */ + _In_ DWORD timeout); + + DECLSPEC_XFGVIRT(ICreateDeviceAccessAsync, Close) + HRESULT ( STDMETHODCALLTYPE *Close )( + ICreateDeviceAccessAsync * This); + + DECLSPEC_XFGVIRT(ICreateDeviceAccessAsync, GetResult) + HRESULT ( STDMETHODCALLTYPE *GetResult )( + ICreateDeviceAccessAsync * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][out] */ + _COM_Outptr_ void **deviceAccess); + + END_INTERFACE + } ICreateDeviceAccessAsyncVtbl; + + interface ICreateDeviceAccessAsync + { + CONST_VTBL struct ICreateDeviceAccessAsyncVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICreateDeviceAccessAsync_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICreateDeviceAccessAsync_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICreateDeviceAccessAsync_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICreateDeviceAccessAsync_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define ICreateDeviceAccessAsync_Wait(This,timeout) \ + ( (This)->lpVtbl -> Wait(This,timeout) ) + +#define ICreateDeviceAccessAsync_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#define ICreateDeviceAccessAsync_GetResult(This,riid,deviceAccess) \ + ( (This)->lpVtbl -> GetResult(This,riid,deviceAccess) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICreateDeviceAccessAsync_INTERFACE_DEFINED__ */ + + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/deviceaccess.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deviceaccess.idl new file mode 100644 index 0000000000000000000000000000000000000000..168401b3a700d854c3c0c6c2dd304ac448ea6d88 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deviceaccess.idl @@ -0,0 +1,92 @@ +import "wtypes.idl", "unknwn.idl"; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)") +cpp_quote("STDAPI") +cpp_quote("CreateDeviceAccessInstance(") +cpp_quote(" _In_ PCWSTR deviceInterfacePath,") +cpp_quote(" _In_ DWORD desiredAccess,") +cpp_quote(" _COM_Outptr_ ICreateDeviceAccessAsync **createAsync") +cpp_quote(" );") +cpp_quote("#endif") + +declare_guid(CLSID_DeviceIoControl, 12D3E372-874B-457D-9FDF-73977778686C); + +[object, + uuid (999BAD24-9ACD-45BB-8669-2A2FC0288B04), + pointer_default(unique) + ] +interface IDeviceRequestCompletionCallback : IUnknown +{ +cpp_quote("#define RequestCompletion Invoke") + + HRESULT + RequestCompletion( + [in] HRESULT requestResult, + [in] DWORD bytesReturned + ); +} + +[object, +uuid (9EEFE161-23AB-4F18-9B49-991B586AE970), +pointer_default(unique), +local +] +interface IDeviceIoControl : IUnknown +{ + + HRESULT + DeviceIoControlSync( + [in, annotation("_In_")] DWORD ioControlCode, + [in, size_is(inputBufferSize), annotation("_In_reads_opt_(inputBufferSize)")] UCHAR *inputBuffer, + [in, annotation("_In_")] DWORD inputBufferSize, + [out, size_is(outputBufferSize), annotation("_Out_writes_opt_(outputBufferSize)")] UCHAR *outputBuffer, + [in, annotation("_In_")] DWORD outputBufferSize, + [out, annotation("_Out_")] DWORD *bytesReturned + ); + + HRESULT + DeviceIoControlAsync( + [in, annotation("_In_")] DWORD ioControlCode, + [in, size_is(inputBufferSize), annotation("_In_reads_opt_(inputBufferSize)")] UCHAR *inputBuffer, + [in, annotation("_In_")] DWORD inputBufferSize, + [out, size_is(outputBufferSize), annotation("_Out_writes_opt_(outputBufferSize)")] UCHAR *outputBuffer, + [in, annotation("_In_")] DWORD outputBufferSize, + [in, annotation("_In_")] IDeviceRequestCompletionCallback * requestCompletionCallback, + [out, annotation("_Out_opt_")] ULONG_PTR * cancelContext + ); + + HRESULT + CancelOperation( + [in, annotation("_In_")] ULONG_PTR cancelContext + ); +} + +[object, + uuid (3474628F-683D-42D2-ABCB-DB018C6503BC), + pointer_default(unique), + local + ] +interface ICreateDeviceAccessAsync : IUnknown +{ + HRESULT + Cancel(); + + HRESULT + Wait( + [in, annotation("_In_")] DWORD timeout + ); + + HRESULT + Close(); + + // + // Current IIDs that are valid for this function are: + // + // IID_IDeviceIoControl + // + HRESULT + GetResult( + [in, annotation("_In_")] REFIID riid, + [out, annotation("_COM_Outptr_")] void** deviceAccess + ); +} diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/deviceservices.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deviceservices.h new file mode 100644 index 0000000000000000000000000000000000000000..68995c5cb83d797bf61dc87aea8a1379b47132f3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/deviceservices.h @@ -0,0 +1,78 @@ +/* + * DeviceServices.h + * + * Contains definitions for the core Device Services platform + * + * Copyright (c) Microsoft Corporation, All Rights Reserved. + * + */ + + +#ifndef _DEVICESERVICES_H_ +#define _DEVICESERVICES_H_ + +#include + + +/***************************************************************************** + Service Info +******************************************************************************/ + +/* Service Info Version */ +#define DEVSVC_SERVICEINFO_VERSION 0x00000064 + +/* Service Flags */ +#define DEVSVCTYPE_DEFAULT 0x00000000 +#define DEVSVCTYPE_ABSTRACT 0x00000001 + + +/***************************************************************************** + Common Service Properties +******************************************************************************/ + +DEFINE_DEVSVCGUID(NAMESPACE_Services, + 0x14fa7268, 0x0b6c, 0x4214, 0x94, 0x87, 0x43, 0x5b, 0x48, 0x0a, 0x8c, 0x4f ); + + +/* PKEY_Services_ServiceDisplayName + * + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_Services_ServiceDisplayName, + 0x14fa7268, 0x0b6c, 0x4214, 0x94, 0x87, 0x43, 0x5b, 0x48, 0x0a, 0x8c, 0x4f , + 2 ); + +#define NAME_Services_ServiceDisplayName L"ServiceDisplayName" + + +/* PKEY_Services_ServiceIcon + * + * Type: AUInt8 + * Form: ByteArray + */ + +DEFINE_DEVSVCPROPKEY(PKEY_Services_ServiceIcon, + 0x14fa7268, 0x0b6c, 0x4214, 0x94, 0x87, 0x43, 0x5b, 0x48, 0x0a, 0x8c, 0x4f , + 3 ); + +#define NAME_Services_ServiceIcon L"ServiceIcon" + + +/* PKEY_Services_ServiceLocale + * + * Contains the RFC4646 compliant language string for data in this service + * + * Type: String + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_Services_ServiceLocale, + 0x14fa7268, 0x0b6c, 0x4214, 0x94, 0x87, 0x43, 0x5b, 0x48, 0x0a, 0x8c, 0x4f , + 4 ); + +#define NAME_Services_ServiceLocale L"ServiceLocale" + + +#endif /*_DEVICESERVICES_H_*/ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/devicetopology.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devicetopology.h new file mode 100644 index 0000000000000000000000000000000000000000..7a076d97204d7bcfaf8c7929bbc3fa9176ad25e7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devicetopology.h @@ -0,0 +1,3965 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __devicetopology_h__ +#define __devicetopology_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IKsControl_FWD_DEFINED__ +#define __IKsControl_FWD_DEFINED__ +typedef interface IKsControl IKsControl; + +#endif /* __IKsControl_FWD_DEFINED__ */ + + +#ifndef __IPerChannelDbLevel_FWD_DEFINED__ +#define __IPerChannelDbLevel_FWD_DEFINED__ +typedef interface IPerChannelDbLevel IPerChannelDbLevel; + +#endif /* __IPerChannelDbLevel_FWD_DEFINED__ */ + + +#ifndef __IAudioVolumeLevel_FWD_DEFINED__ +#define __IAudioVolumeLevel_FWD_DEFINED__ +typedef interface IAudioVolumeLevel IAudioVolumeLevel; + +#endif /* __IAudioVolumeLevel_FWD_DEFINED__ */ + + +#ifndef __IAudioChannelConfig_FWD_DEFINED__ +#define __IAudioChannelConfig_FWD_DEFINED__ +typedef interface IAudioChannelConfig IAudioChannelConfig; + +#endif /* __IAudioChannelConfig_FWD_DEFINED__ */ + + +#ifndef __IAudioLoudness_FWD_DEFINED__ +#define __IAudioLoudness_FWD_DEFINED__ +typedef interface IAudioLoudness IAudioLoudness; + +#endif /* __IAudioLoudness_FWD_DEFINED__ */ + + +#ifndef __IAudioInputSelector_FWD_DEFINED__ +#define __IAudioInputSelector_FWD_DEFINED__ +typedef interface IAudioInputSelector IAudioInputSelector; + +#endif /* __IAudioInputSelector_FWD_DEFINED__ */ + + +#ifndef __IAudioOutputSelector_FWD_DEFINED__ +#define __IAudioOutputSelector_FWD_DEFINED__ +typedef interface IAudioOutputSelector IAudioOutputSelector; + +#endif /* __IAudioOutputSelector_FWD_DEFINED__ */ + + +#ifndef __IAudioMute_FWD_DEFINED__ +#define __IAudioMute_FWD_DEFINED__ +typedef interface IAudioMute IAudioMute; + +#endif /* __IAudioMute_FWD_DEFINED__ */ + + +#ifndef __IAudioBass_FWD_DEFINED__ +#define __IAudioBass_FWD_DEFINED__ +typedef interface IAudioBass IAudioBass; + +#endif /* __IAudioBass_FWD_DEFINED__ */ + + +#ifndef __IAudioMidrange_FWD_DEFINED__ +#define __IAudioMidrange_FWD_DEFINED__ +typedef interface IAudioMidrange IAudioMidrange; + +#endif /* __IAudioMidrange_FWD_DEFINED__ */ + + +#ifndef __IAudioTreble_FWD_DEFINED__ +#define __IAudioTreble_FWD_DEFINED__ +typedef interface IAudioTreble IAudioTreble; + +#endif /* __IAudioTreble_FWD_DEFINED__ */ + + +#ifndef __IAudioAutoGainControl_FWD_DEFINED__ +#define __IAudioAutoGainControl_FWD_DEFINED__ +typedef interface IAudioAutoGainControl IAudioAutoGainControl; + +#endif /* __IAudioAutoGainControl_FWD_DEFINED__ */ + + +#ifndef __IAudioPeakMeter_FWD_DEFINED__ +#define __IAudioPeakMeter_FWD_DEFINED__ +typedef interface IAudioPeakMeter IAudioPeakMeter; + +#endif /* __IAudioPeakMeter_FWD_DEFINED__ */ + + +#ifndef __IDeviceSpecificProperty_FWD_DEFINED__ +#define __IDeviceSpecificProperty_FWD_DEFINED__ +typedef interface IDeviceSpecificProperty IDeviceSpecificProperty; + +#endif /* __IDeviceSpecificProperty_FWD_DEFINED__ */ + + +#ifndef __IKsFormatSupport_FWD_DEFINED__ +#define __IKsFormatSupport_FWD_DEFINED__ +typedef interface IKsFormatSupport IKsFormatSupport; + +#endif /* __IKsFormatSupport_FWD_DEFINED__ */ + + +#ifndef __IKsJackDescription_FWD_DEFINED__ +#define __IKsJackDescription_FWD_DEFINED__ +typedef interface IKsJackDescription IKsJackDescription; + +#endif /* __IKsJackDescription_FWD_DEFINED__ */ + + +#ifndef __IKsJackDescription2_FWD_DEFINED__ +#define __IKsJackDescription2_FWD_DEFINED__ +typedef interface IKsJackDescription2 IKsJackDescription2; + +#endif /* __IKsJackDescription2_FWD_DEFINED__ */ + + +#ifndef __IKsJackDescription3_FWD_DEFINED__ +#define __IKsJackDescription3_FWD_DEFINED__ +typedef interface IKsJackDescription3 IKsJackDescription3; + +#endif /* __IKsJackDescription3_FWD_DEFINED__ */ + + +#ifndef __IKsJackSinkInformation_FWD_DEFINED__ +#define __IKsJackSinkInformation_FWD_DEFINED__ +typedef interface IKsJackSinkInformation IKsJackSinkInformation; + +#endif /* __IKsJackSinkInformation_FWD_DEFINED__ */ + + +#ifndef __IKsJackContainerId_FWD_DEFINED__ +#define __IKsJackContainerId_FWD_DEFINED__ +typedef interface IKsJackContainerId IKsJackContainerId; + +#endif /* __IKsJackContainerId_FWD_DEFINED__ */ + + +#ifndef __IPartsList_FWD_DEFINED__ +#define __IPartsList_FWD_DEFINED__ +typedef interface IPartsList IPartsList; + +#endif /* __IPartsList_FWD_DEFINED__ */ + + +#ifndef __IPart_FWD_DEFINED__ +#define __IPart_FWD_DEFINED__ +typedef interface IPart IPart; + +#endif /* __IPart_FWD_DEFINED__ */ + + +#ifndef __IConnector_FWD_DEFINED__ +#define __IConnector_FWD_DEFINED__ +typedef interface IConnector IConnector; + +#endif /* __IConnector_FWD_DEFINED__ */ + + +#ifndef __ISubunit_FWD_DEFINED__ +#define __ISubunit_FWD_DEFINED__ +typedef interface ISubunit ISubunit; + +#endif /* __ISubunit_FWD_DEFINED__ */ + + +#ifndef __IControlInterface_FWD_DEFINED__ +#define __IControlInterface_FWD_DEFINED__ +typedef interface IControlInterface IControlInterface; + +#endif /* __IControlInterface_FWD_DEFINED__ */ + + +#ifndef __IControlChangeNotify_FWD_DEFINED__ +#define __IControlChangeNotify_FWD_DEFINED__ +typedef interface IControlChangeNotify IControlChangeNotify; + +#endif /* __IControlChangeNotify_FWD_DEFINED__ */ + + +#ifndef __IDeviceTopology_FWD_DEFINED__ +#define __IDeviceTopology_FWD_DEFINED__ +typedef interface IDeviceTopology IDeviceTopology; + +#endif /* __IDeviceTopology_FWD_DEFINED__ */ + + +#ifndef __DeviceTopology_FWD_DEFINED__ +#define __DeviceTopology_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DeviceTopology DeviceTopology; +#else +typedef struct DeviceTopology DeviceTopology; +#endif /* __cplusplus */ + +#endif /* __DeviceTopology_FWD_DEFINED__ */ + + +#ifndef __IPartsList_FWD_DEFINED__ +#define __IPartsList_FWD_DEFINED__ +typedef interface IPartsList IPartsList; + +#endif /* __IPartsList_FWD_DEFINED__ */ + + +#ifndef __IPerChannelDbLevel_FWD_DEFINED__ +#define __IPerChannelDbLevel_FWD_DEFINED__ +typedef interface IPerChannelDbLevel IPerChannelDbLevel; + +#endif /* __IPerChannelDbLevel_FWD_DEFINED__ */ + + +#ifndef __IAudioVolumeLevel_FWD_DEFINED__ +#define __IAudioVolumeLevel_FWD_DEFINED__ +typedef interface IAudioVolumeLevel IAudioVolumeLevel; + +#endif /* __IAudioVolumeLevel_FWD_DEFINED__ */ + + +#ifndef __IAudioLoudness_FWD_DEFINED__ +#define __IAudioLoudness_FWD_DEFINED__ +typedef interface IAudioLoudness IAudioLoudness; + +#endif /* __IAudioLoudness_FWD_DEFINED__ */ + + +#ifndef __IAudioInputSelector_FWD_DEFINED__ +#define __IAudioInputSelector_FWD_DEFINED__ +typedef interface IAudioInputSelector IAudioInputSelector; + +#endif /* __IAudioInputSelector_FWD_DEFINED__ */ + + +#ifndef __IAudioMute_FWD_DEFINED__ +#define __IAudioMute_FWD_DEFINED__ +typedef interface IAudioMute IAudioMute; + +#endif /* __IAudioMute_FWD_DEFINED__ */ + + +#ifndef __IAudioBass_FWD_DEFINED__ +#define __IAudioBass_FWD_DEFINED__ +typedef interface IAudioBass IAudioBass; + +#endif /* __IAudioBass_FWD_DEFINED__ */ + + +#ifndef __IAudioMidrange_FWD_DEFINED__ +#define __IAudioMidrange_FWD_DEFINED__ +typedef interface IAudioMidrange IAudioMidrange; + +#endif /* __IAudioMidrange_FWD_DEFINED__ */ + + +#ifndef __IAudioTreble_FWD_DEFINED__ +#define __IAudioTreble_FWD_DEFINED__ +typedef interface IAudioTreble IAudioTreble; + +#endif /* __IAudioTreble_FWD_DEFINED__ */ + + +#ifndef __IAudioAutoGainControl_FWD_DEFINED__ +#define __IAudioAutoGainControl_FWD_DEFINED__ +typedef interface IAudioAutoGainControl IAudioAutoGainControl; + +#endif /* __IAudioAutoGainControl_FWD_DEFINED__ */ + + +#ifndef __IAudioOutputSelector_FWD_DEFINED__ +#define __IAudioOutputSelector_FWD_DEFINED__ +typedef interface IAudioOutputSelector IAudioOutputSelector; + +#endif /* __IAudioOutputSelector_FWD_DEFINED__ */ + + +#ifndef __IAudioPeakMeter_FWD_DEFINED__ +#define __IAudioPeakMeter_FWD_DEFINED__ +typedef interface IAudioPeakMeter IAudioPeakMeter; + +#endif /* __IAudioPeakMeter_FWD_DEFINED__ */ + + +#ifndef __IDeviceSpecificProperty_FWD_DEFINED__ +#define __IDeviceSpecificProperty_FWD_DEFINED__ +typedef interface IDeviceSpecificProperty IDeviceSpecificProperty; + +#endif /* __IDeviceSpecificProperty_FWD_DEFINED__ */ + + +#ifndef __IKsFormatSupport_FWD_DEFINED__ +#define __IKsFormatSupport_FWD_DEFINED__ +typedef interface IKsFormatSupport IKsFormatSupport; + +#endif /* __IKsFormatSupport_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "propidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_devicetopology_0000_0000 */ +/* [local] */ + +#include +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#define E_NOTFOUND HRESULT_FROM_WIN32(ERROR_NOT_FOUND) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// +// Flag for clients of IControlChangeNotify::OnNotify to allow those clients to identify hardware initiated notifications +// +#define DEVTOPO_HARDWARE_INITIATED_EVENTCONTEXT 'draH' +/* E2C2E9DE-09B1-4B04-84E5-07931225EE04 */ +DEFINE_GUID(EVENTCONTEXT_VOLUMESLIDER, 0xE2C2E9DE,0x09B1,0x4B04,0x84, 0xE5, 0x07, 0x93, 0x12, 0x25, 0xEE, 0x04); +#define _IKsControl_ +#include "ks.h" +#include "ksmedia.h" +#ifndef _KS_ +typedef /* [public] */ struct __MIDL___MIDL_itf_devicetopology_0000_0000_0001 + { + ULONG FormatSize; + ULONG Flags; + ULONG SampleSize; + ULONG Reserved; + GUID MajorFormat; + GUID SubFormat; + GUID Specifier; + } KSDATAFORMAT; + +typedef struct __MIDL___MIDL_itf_devicetopology_0000_0000_0001 *PKSDATAFORMAT; + +typedef /* [public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_devicetopology_0000_0000_0002 + { + union + { + struct + { + GUID Set; + ULONG Id; + ULONG Flags; + } ; + LONGLONG Alignment; + } ; + } KSIDENTIFIER; + +typedef struct __MIDL___MIDL_itf_devicetopology_0000_0000_0002 *PKSIDENTIFIER; + +typedef KSIDENTIFIER KSPROPERTY; + +typedef KSIDENTIFIER *PKSPROPERTY; + +typedef KSIDENTIFIER KSMETHOD; + +typedef KSIDENTIFIER *PKSMETHOD; + +typedef KSIDENTIFIER KSEVENT; + +typedef KSIDENTIFIER *PKSEVENT; + +typedef /* [public][public][public][public] */ +enum __MIDL___MIDL_itf_devicetopology_0000_0000_0005 + { + eConnTypeUnknown = 0, + eConnType3Point5mm = ( eConnTypeUnknown + 1 ) , + eConnTypeQuarter = ( eConnType3Point5mm + 1 ) , + eConnTypeAtapiInternal = ( eConnTypeQuarter + 1 ) , + eConnTypeRCA = ( eConnTypeAtapiInternal + 1 ) , + eConnTypeOptical = ( eConnTypeRCA + 1 ) , + eConnTypeOtherDigital = ( eConnTypeOptical + 1 ) , + eConnTypeOtherAnalog = ( eConnTypeOtherDigital + 1 ) , + eConnTypeMultichannelAnalogDIN = ( eConnTypeOtherAnalog + 1 ) , + eConnTypeXlrProfessional = ( eConnTypeMultichannelAnalogDIN + 1 ) , + eConnTypeRJ11Modem = ( eConnTypeXlrProfessional + 1 ) , + eConnTypeCombination = ( eConnTypeRJ11Modem + 1 ) + } EPcxConnectionType; + +typedef /* [public][public][public][public] */ +enum __MIDL___MIDL_itf_devicetopology_0000_0000_0006 + { + eGeoLocRear = 0x1, + eGeoLocFront = ( eGeoLocRear + 1 ) , + eGeoLocLeft = ( eGeoLocFront + 1 ) , + eGeoLocRight = ( eGeoLocLeft + 1 ) , + eGeoLocTop = ( eGeoLocRight + 1 ) , + eGeoLocBottom = ( eGeoLocTop + 1 ) , + eGeoLocRearPanel = ( eGeoLocBottom + 1 ) , + eGeoLocRiser = ( eGeoLocRearPanel + 1 ) , + eGeoLocInsideMobileLid = ( eGeoLocRiser + 1 ) , + eGeoLocDrivebay = ( eGeoLocInsideMobileLid + 1 ) , + eGeoLocHDMI = ( eGeoLocDrivebay + 1 ) , + eGeoLocOutsideMobileLid = ( eGeoLocHDMI + 1 ) , + eGeoLocATAPI = ( eGeoLocOutsideMobileLid + 1 ) , + eGeoLocNotApplicable = ( eGeoLocATAPI + 1 ) , + eGeoLocReserved6 = ( eGeoLocNotApplicable + 1 ) + } EPcxGeoLocation; + +typedef /* [public][public][public][public] */ +enum __MIDL___MIDL_itf_devicetopology_0000_0000_0007 + { + eGenLocPrimaryBox = 0, + eGenLocInternal = ( eGenLocPrimaryBox + 1 ) , + eGenLocSeparate = ( eGenLocInternal + 1 ) , + eGenLocOther = ( eGenLocSeparate + 1 ) + } EPcxGenLocation; + +typedef /* [public][public][public][public] */ +enum __MIDL___MIDL_itf_devicetopology_0000_0000_0008 + { + ePortConnJack = 0, + ePortConnIntegratedDevice = ( ePortConnJack + 1 ) , + ePortConnBothIntegratedAndJack = ( ePortConnIntegratedDevice + 1 ) , + ePortConnUnknown = ( ePortConnBothIntegratedAndJack + 1 ) + } EPxcPortConnection; + +typedef /* [public][public] */ struct __MIDL___MIDL_itf_devicetopology_0000_0000_0009 + { + DWORD ChannelMapping; + COLORREF Color; + EPcxConnectionType ConnectionType; + EPcxGeoLocation GeoLocation; + EPcxGenLocation GenLocation; + EPxcPortConnection PortConnection; + BOOL IsConnected; + } KSJACK_DESCRIPTION; + +typedef struct __MIDL___MIDL_itf_devicetopology_0000_0000_0009 *PKSJACK_DESCRIPTION; + +typedef struct _LUID + { + DWORD LowPart; + LONG HighPart; + } LUID; + +typedef struct _LUID *PLUID; + +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_devicetopology_0000_0000_0010 + { + KSJACK_SINK_CONNECTIONTYPE_HDMI = 0, + KSJACK_SINK_CONNECTIONTYPE_DISPLAYPORT = ( KSJACK_SINK_CONNECTIONTYPE_HDMI + 1 ) + } KSJACK_SINK_CONNECTIONTYPE; + +typedef struct _tagKSJACK_SINK_INFORMATION + { + KSJACK_SINK_CONNECTIONTYPE ConnType; + WORD ManufacturerId; + WORD ProductId; + WORD AudioLatency; + BOOL HDCPCapable; + BOOL AICapable; + UCHAR SinkDescriptionLength; + WCHAR SinkDescription[ 32 ]; + LUID PortId; + } KSJACK_SINK_INFORMATION; + +typedef struct _tagKSJACK_DESCRIPTION2 + { + DWORD DeviceStateInfo; + DWORD JackCapabilities; + } KSJACK_DESCRIPTION2; + +typedef struct _tagKSJACK_DESCRIPTION2 *PKSJACK_DESCRIPTION2; + +#if (NTDDI_VERSION >= NTDDI_WIN10_NI) +typedef struct _tagKSJACK_DESCRIPTION3 + { + ULONG ConfigId; + } KSJACK_DESCRIPTION3; + +typedef struct _tagKSJACK_DESCRIPTION3 *PKSJACK_DESCRIPTION3; + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_NI) +#endif + + + + + + + + +typedef /* [public][public] */ +enum __MIDL___MIDL_itf_devicetopology_0000_0000_0011 + { + In = 0, + Out = ( In + 1 ) + } DataFlow; + +typedef /* [public][public] */ +enum __MIDL___MIDL_itf_devicetopology_0000_0000_0012 + { + Connector = 0, + Subunit = ( Connector + 1 ) + } PartType; + +typedef /* [public][public] */ +enum __MIDL___MIDL_itf_devicetopology_0000_0000_0013 + { + Unknown_Connector = 0, + Physical_Internal = ( Unknown_Connector + 1 ) , + Physical_External = ( Physical_Internal + 1 ) , + Software_IO = ( Physical_External + 1 ) , + Software_Fixed = ( Software_IO + 1 ) , + Network = ( Software_Fixed + 1 ) + } ConnectorType; + + + +extern RPC_IF_HANDLE __MIDL_itf_devicetopology_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_devicetopology_0000_0000_v0_0_s_ifspec; + +#ifndef __IKsControl_INTERFACE_DEFINED__ +#define __IKsControl_INTERFACE_DEFINED__ + +/* interface IKsControl */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IKsControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("28F54685-06FD-11D2-B27A-00A0C9223196") + IKsControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE KsProperty( + /* [in] */ PKSPROPERTY Property, + /* [in] */ ULONG PropertyLength, + /* [out][in] */ void *PropertyData, + /* [in] */ ULONG DataLength, + /* [out] */ ULONG *BytesReturned) = 0; + + virtual HRESULT STDMETHODCALLTYPE KsMethod( + /* [in] */ PKSMETHOD Method, + /* [in] */ ULONG MethodLength, + /* [out][in] */ void *MethodData, + /* [in] */ ULONG DataLength, + /* [out] */ ULONG *BytesReturned) = 0; + + virtual HRESULT STDMETHODCALLTYPE KsEvent( + /* [in] */ PKSEVENT Event, + /* [in] */ ULONG EventLength, + /* [out][in] */ void *EventData, + /* [in] */ ULONG DataLength, + /* [out] */ ULONG *BytesReturned) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IKsControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IKsControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IKsControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IKsControl * This); + + DECLSPEC_XFGVIRT(IKsControl, KsProperty) + HRESULT ( STDMETHODCALLTYPE *KsProperty )( + IKsControl * This, + /* [in] */ PKSPROPERTY Property, + /* [in] */ ULONG PropertyLength, + /* [out][in] */ void *PropertyData, + /* [in] */ ULONG DataLength, + /* [out] */ ULONG *BytesReturned); + + DECLSPEC_XFGVIRT(IKsControl, KsMethod) + HRESULT ( STDMETHODCALLTYPE *KsMethod )( + IKsControl * This, + /* [in] */ PKSMETHOD Method, + /* [in] */ ULONG MethodLength, + /* [out][in] */ void *MethodData, + /* [in] */ ULONG DataLength, + /* [out] */ ULONG *BytesReturned); + + DECLSPEC_XFGVIRT(IKsControl, KsEvent) + HRESULT ( STDMETHODCALLTYPE *KsEvent )( + IKsControl * This, + /* [in] */ PKSEVENT Event, + /* [in] */ ULONG EventLength, + /* [out][in] */ void *EventData, + /* [in] */ ULONG DataLength, + /* [out] */ ULONG *BytesReturned); + + END_INTERFACE + } IKsControlVtbl; + + interface IKsControl + { + CONST_VTBL struct IKsControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IKsControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IKsControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IKsControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IKsControl_KsProperty(This,Property,PropertyLength,PropertyData,DataLength,BytesReturned) \ + ( (This)->lpVtbl -> KsProperty(This,Property,PropertyLength,PropertyData,DataLength,BytesReturned) ) + +#define IKsControl_KsMethod(This,Method,MethodLength,MethodData,DataLength,BytesReturned) \ + ( (This)->lpVtbl -> KsMethod(This,Method,MethodLength,MethodData,DataLength,BytesReturned) ) + +#define IKsControl_KsEvent(This,Event,EventLength,EventData,DataLength,BytesReturned) \ + ( (This)->lpVtbl -> KsEvent(This,Event,EventLength,EventData,DataLength,BytesReturned) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IKsControl_INTERFACE_DEFINED__ */ + + +#ifndef __IPerChannelDbLevel_INTERFACE_DEFINED__ +#define __IPerChannelDbLevel_INTERFACE_DEFINED__ + +/* interface IPerChannelDbLevel */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IPerChannelDbLevel; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C2F8E001-F205-4BC9-99BC-C13B1E048CCB") + IPerChannelDbLevel : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetChannelCount( + /* [annotation][out] */ + _Out_ UINT *pcChannels) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLevelRange( + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfMinLevelDB, + /* [annotation][out] */ + _Out_ float *pfMaxLevelDB, + /* [annotation][out] */ + _Out_ float *pfStepping) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLevel( + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetLevel( + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetLevelUniform( + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetLevelAllChannels( + /* [annotation][size_is][in] */ + _In_reads_(cChannels) float aLevelsDB[ ], + /* [annotation][in] */ + _In_ ULONG cChannels, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPerChannelDbLevelVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPerChannelDbLevel * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPerChannelDbLevel * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPerChannelDbLevel * This); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetChannelCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IPerChannelDbLevel * This, + /* [annotation][out] */ + _Out_ UINT *pcChannels); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetLevelRange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevelRange )( + IPerChannelDbLevel * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfMinLevelDB, + /* [annotation][out] */ + _Out_ float *pfMaxLevelDB, + /* [annotation][out] */ + _Out_ float *pfStepping); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevel )( + IPerChannelDbLevel * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevel )( + IPerChannelDbLevel * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevelUniform) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevelUniform )( + IPerChannelDbLevel * This, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevelAllChannels) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevelAllChannels )( + IPerChannelDbLevel * This, + /* [annotation][size_is][in] */ + _In_reads_(cChannels) float aLevelsDB[ ], + /* [annotation][in] */ + _In_ ULONG cChannels, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + END_INTERFACE + } IPerChannelDbLevelVtbl; + + interface IPerChannelDbLevel + { + CONST_VTBL struct IPerChannelDbLevelVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPerChannelDbLevel_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPerChannelDbLevel_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPerChannelDbLevel_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPerChannelDbLevel_GetChannelCount(This,pcChannels) \ + ( (This)->lpVtbl -> GetChannelCount(This,pcChannels) ) + +#define IPerChannelDbLevel_GetLevelRange(This,nChannel,pfMinLevelDB,pfMaxLevelDB,pfStepping) \ + ( (This)->lpVtbl -> GetLevelRange(This,nChannel,pfMinLevelDB,pfMaxLevelDB,pfStepping) ) + +#define IPerChannelDbLevel_GetLevel(This,nChannel,pfLevelDB) \ + ( (This)->lpVtbl -> GetLevel(This,nChannel,pfLevelDB) ) + +#define IPerChannelDbLevel_SetLevel(This,nChannel,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevel(This,nChannel,fLevelDB,pguidEventContext) ) + +#define IPerChannelDbLevel_SetLevelUniform(This,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevelUniform(This,fLevelDB,pguidEventContext) ) + +#define IPerChannelDbLevel_SetLevelAllChannels(This,aLevelsDB,cChannels,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevelAllChannels(This,aLevelsDB,cChannels,pguidEventContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPerChannelDbLevel_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioVolumeLevel_INTERFACE_DEFINED__ +#define __IAudioVolumeLevel_INTERFACE_DEFINED__ + +/* interface IAudioVolumeLevel */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioVolumeLevel; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7FB7B48F-531D-44A2-BCB3-5AD5A134B3DC") + IAudioVolumeLevel : public IPerChannelDbLevel + { + public: + }; + + +#else /* C style interface */ + + typedef struct IAudioVolumeLevelVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioVolumeLevel * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioVolumeLevel * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioVolumeLevel * This); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetChannelCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IAudioVolumeLevel * This, + /* [annotation][out] */ + _Out_ UINT *pcChannels); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetLevelRange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevelRange )( + IAudioVolumeLevel * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfMinLevelDB, + /* [annotation][out] */ + _Out_ float *pfMaxLevelDB, + /* [annotation][out] */ + _Out_ float *pfStepping); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevel )( + IAudioVolumeLevel * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevel )( + IAudioVolumeLevel * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevelUniform) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevelUniform )( + IAudioVolumeLevel * This, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevelAllChannels) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevelAllChannels )( + IAudioVolumeLevel * This, + /* [annotation][size_is][in] */ + _In_reads_(cChannels) float aLevelsDB[ ], + /* [annotation][in] */ + _In_ ULONG cChannels, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + END_INTERFACE + } IAudioVolumeLevelVtbl; + + interface IAudioVolumeLevel + { + CONST_VTBL struct IAudioVolumeLevelVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioVolumeLevel_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioVolumeLevel_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioVolumeLevel_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioVolumeLevel_GetChannelCount(This,pcChannels) \ + ( (This)->lpVtbl -> GetChannelCount(This,pcChannels) ) + +#define IAudioVolumeLevel_GetLevelRange(This,nChannel,pfMinLevelDB,pfMaxLevelDB,pfStepping) \ + ( (This)->lpVtbl -> GetLevelRange(This,nChannel,pfMinLevelDB,pfMaxLevelDB,pfStepping) ) + +#define IAudioVolumeLevel_GetLevel(This,nChannel,pfLevelDB) \ + ( (This)->lpVtbl -> GetLevel(This,nChannel,pfLevelDB) ) + +#define IAudioVolumeLevel_SetLevel(This,nChannel,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevel(This,nChannel,fLevelDB,pguidEventContext) ) + +#define IAudioVolumeLevel_SetLevelUniform(This,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevelUniform(This,fLevelDB,pguidEventContext) ) + +#define IAudioVolumeLevel_SetLevelAllChannels(This,aLevelsDB,cChannels,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevelAllChannels(This,aLevelsDB,cChannels,pguidEventContext) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioVolumeLevel_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioChannelConfig_INTERFACE_DEFINED__ +#define __IAudioChannelConfig_INTERFACE_DEFINED__ + +/* interface IAudioChannelConfig */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioChannelConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BB11C46F-EC28-493C-B88A-5DB88062CE98") + IAudioChannelConfig : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetChannelConfig( + /* [in] */ DWORD dwConfig, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetChannelConfig( + /* [retval][out] */ DWORD *pdwConfig) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioChannelConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioChannelConfig * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioChannelConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioChannelConfig * This); + + DECLSPEC_XFGVIRT(IAudioChannelConfig, SetChannelConfig) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetChannelConfig )( + IAudioChannelConfig * This, + /* [in] */ DWORD dwConfig, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioChannelConfig, GetChannelConfig) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetChannelConfig )( + IAudioChannelConfig * This, + /* [retval][out] */ DWORD *pdwConfig); + + END_INTERFACE + } IAudioChannelConfigVtbl; + + interface IAudioChannelConfig + { + CONST_VTBL struct IAudioChannelConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioChannelConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioChannelConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioChannelConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioChannelConfig_SetChannelConfig(This,dwConfig,pguidEventContext) \ + ( (This)->lpVtbl -> SetChannelConfig(This,dwConfig,pguidEventContext) ) + +#define IAudioChannelConfig_GetChannelConfig(This,pdwConfig) \ + ( (This)->lpVtbl -> GetChannelConfig(This,pdwConfig) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioChannelConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioLoudness_INTERFACE_DEFINED__ +#define __IAudioLoudness_INTERFACE_DEFINED__ + +/* interface IAudioLoudness */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioLoudness; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7D8B1437-DD53-4350-9C1B-1EE2890BD938") + IAudioLoudness : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetEnabled( + /* [annotation][out] */ + _Out_ BOOL *pbEnabled) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetEnabled( + /* [annotation][in] */ + _In_ BOOL bEnable, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioLoudnessVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioLoudness * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioLoudness * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioLoudness * This); + + DECLSPEC_XFGVIRT(IAudioLoudness, GetEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetEnabled )( + IAudioLoudness * This, + /* [annotation][out] */ + _Out_ BOOL *pbEnabled); + + DECLSPEC_XFGVIRT(IAudioLoudness, SetEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetEnabled )( + IAudioLoudness * This, + /* [annotation][in] */ + _In_ BOOL bEnable, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + END_INTERFACE + } IAudioLoudnessVtbl; + + interface IAudioLoudness + { + CONST_VTBL struct IAudioLoudnessVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioLoudness_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioLoudness_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioLoudness_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioLoudness_GetEnabled(This,pbEnabled) \ + ( (This)->lpVtbl -> GetEnabled(This,pbEnabled) ) + +#define IAudioLoudness_SetEnabled(This,bEnable,pguidEventContext) \ + ( (This)->lpVtbl -> SetEnabled(This,bEnable,pguidEventContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioLoudness_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioInputSelector_INTERFACE_DEFINED__ +#define __IAudioInputSelector_INTERFACE_DEFINED__ + +/* interface IAudioInputSelector */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioInputSelector; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4F03DC02-5E6E-4653-8F72-A030C123D598") + IAudioInputSelector : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSelection( + /* [annotation][out] */ + _Out_ UINT *pnIdSelected) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSelection( + /* [annotation][in] */ + _In_ UINT nIdSelect, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioInputSelectorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioInputSelector * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioInputSelector * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioInputSelector * This); + + DECLSPEC_XFGVIRT(IAudioInputSelector, GetSelection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSelection )( + IAudioInputSelector * This, + /* [annotation][out] */ + _Out_ UINT *pnIdSelected); + + DECLSPEC_XFGVIRT(IAudioInputSelector, SetSelection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSelection )( + IAudioInputSelector * This, + /* [annotation][in] */ + _In_ UINT nIdSelect, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + END_INTERFACE + } IAudioInputSelectorVtbl; + + interface IAudioInputSelector + { + CONST_VTBL struct IAudioInputSelectorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioInputSelector_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioInputSelector_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioInputSelector_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioInputSelector_GetSelection(This,pnIdSelected) \ + ( (This)->lpVtbl -> GetSelection(This,pnIdSelected) ) + +#define IAudioInputSelector_SetSelection(This,nIdSelect,pguidEventContext) \ + ( (This)->lpVtbl -> SetSelection(This,nIdSelect,pguidEventContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioInputSelector_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioOutputSelector_INTERFACE_DEFINED__ +#define __IAudioOutputSelector_INTERFACE_DEFINED__ + +/* interface IAudioOutputSelector */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioOutputSelector; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BB515F69-94A7-429e-8B9C-271B3F11A3AB") + IAudioOutputSelector : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSelection( + /* [annotation][out] */ + _Out_ UINT *pnIdSelected) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSelection( + /* [annotation][in] */ + _In_ UINT nIdSelect, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioOutputSelectorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioOutputSelector * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioOutputSelector * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioOutputSelector * This); + + DECLSPEC_XFGVIRT(IAudioOutputSelector, GetSelection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSelection )( + IAudioOutputSelector * This, + /* [annotation][out] */ + _Out_ UINT *pnIdSelected); + + DECLSPEC_XFGVIRT(IAudioOutputSelector, SetSelection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSelection )( + IAudioOutputSelector * This, + /* [annotation][in] */ + _In_ UINT nIdSelect, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + END_INTERFACE + } IAudioOutputSelectorVtbl; + + interface IAudioOutputSelector + { + CONST_VTBL struct IAudioOutputSelectorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioOutputSelector_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioOutputSelector_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioOutputSelector_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioOutputSelector_GetSelection(This,pnIdSelected) \ + ( (This)->lpVtbl -> GetSelection(This,pnIdSelected) ) + +#define IAudioOutputSelector_SetSelection(This,nIdSelect,pguidEventContext) \ + ( (This)->lpVtbl -> SetSelection(This,nIdSelect,pguidEventContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioOutputSelector_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioMute_INTERFACE_DEFINED__ +#define __IAudioMute_INTERFACE_DEFINED__ + +/* interface IAudioMute */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioMute; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DF45AEEA-B74A-4B6B-AFAD-2366B6AA012E") + IAudioMute : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetMute( + /* [annotation][in] */ + _In_ BOOL bMuted, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMute( + /* [annotation][out] */ + _Out_ BOOL *pbMuted) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioMuteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioMute * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioMute * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioMute * This); + + DECLSPEC_XFGVIRT(IAudioMute, SetMute) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetMute )( + IAudioMute * This, + /* [annotation][in] */ + _In_ BOOL bMuted, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioMute, GetMute) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMute )( + IAudioMute * This, + /* [annotation][out] */ + _Out_ BOOL *pbMuted); + + END_INTERFACE + } IAudioMuteVtbl; + + interface IAudioMute + { + CONST_VTBL struct IAudioMuteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioMute_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioMute_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioMute_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioMute_SetMute(This,bMuted,pguidEventContext) \ + ( (This)->lpVtbl -> SetMute(This,bMuted,pguidEventContext) ) + +#define IAudioMute_GetMute(This,pbMuted) \ + ( (This)->lpVtbl -> GetMute(This,pbMuted) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioMute_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioBass_INTERFACE_DEFINED__ +#define __IAudioBass_INTERFACE_DEFINED__ + +/* interface IAudioBass */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioBass; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A2B1A1D9-4DB3-425D-A2B2-BD335CB3E2E5") + IAudioBass : public IPerChannelDbLevel + { + public: + }; + + +#else /* C style interface */ + + typedef struct IAudioBassVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioBass * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioBass * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioBass * This); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetChannelCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IAudioBass * This, + /* [annotation][out] */ + _Out_ UINT *pcChannels); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetLevelRange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevelRange )( + IAudioBass * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfMinLevelDB, + /* [annotation][out] */ + _Out_ float *pfMaxLevelDB, + /* [annotation][out] */ + _Out_ float *pfStepping); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevel )( + IAudioBass * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevel )( + IAudioBass * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevelUniform) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevelUniform )( + IAudioBass * This, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevelAllChannels) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevelAllChannels )( + IAudioBass * This, + /* [annotation][size_is][in] */ + _In_reads_(cChannels) float aLevelsDB[ ], + /* [annotation][in] */ + _In_ ULONG cChannels, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + END_INTERFACE + } IAudioBassVtbl; + + interface IAudioBass + { + CONST_VTBL struct IAudioBassVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioBass_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioBass_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioBass_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioBass_GetChannelCount(This,pcChannels) \ + ( (This)->lpVtbl -> GetChannelCount(This,pcChannels) ) + +#define IAudioBass_GetLevelRange(This,nChannel,pfMinLevelDB,pfMaxLevelDB,pfStepping) \ + ( (This)->lpVtbl -> GetLevelRange(This,nChannel,pfMinLevelDB,pfMaxLevelDB,pfStepping) ) + +#define IAudioBass_GetLevel(This,nChannel,pfLevelDB) \ + ( (This)->lpVtbl -> GetLevel(This,nChannel,pfLevelDB) ) + +#define IAudioBass_SetLevel(This,nChannel,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevel(This,nChannel,fLevelDB,pguidEventContext) ) + +#define IAudioBass_SetLevelUniform(This,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevelUniform(This,fLevelDB,pguidEventContext) ) + +#define IAudioBass_SetLevelAllChannels(This,aLevelsDB,cChannels,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevelAllChannels(This,aLevelsDB,cChannels,pguidEventContext) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioBass_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioMidrange_INTERFACE_DEFINED__ +#define __IAudioMidrange_INTERFACE_DEFINED__ + +/* interface IAudioMidrange */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioMidrange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5E54B6D7-B44B-40D9-9A9E-E691D9CE6EDF") + IAudioMidrange : public IPerChannelDbLevel + { + public: + }; + + +#else /* C style interface */ + + typedef struct IAudioMidrangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioMidrange * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioMidrange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioMidrange * This); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetChannelCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IAudioMidrange * This, + /* [annotation][out] */ + _Out_ UINT *pcChannels); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetLevelRange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevelRange )( + IAudioMidrange * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfMinLevelDB, + /* [annotation][out] */ + _Out_ float *pfMaxLevelDB, + /* [annotation][out] */ + _Out_ float *pfStepping); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevel )( + IAudioMidrange * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevel )( + IAudioMidrange * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevelUniform) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevelUniform )( + IAudioMidrange * This, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevelAllChannels) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevelAllChannels )( + IAudioMidrange * This, + /* [annotation][size_is][in] */ + _In_reads_(cChannels) float aLevelsDB[ ], + /* [annotation][in] */ + _In_ ULONG cChannels, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + END_INTERFACE + } IAudioMidrangeVtbl; + + interface IAudioMidrange + { + CONST_VTBL struct IAudioMidrangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioMidrange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioMidrange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioMidrange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioMidrange_GetChannelCount(This,pcChannels) \ + ( (This)->lpVtbl -> GetChannelCount(This,pcChannels) ) + +#define IAudioMidrange_GetLevelRange(This,nChannel,pfMinLevelDB,pfMaxLevelDB,pfStepping) \ + ( (This)->lpVtbl -> GetLevelRange(This,nChannel,pfMinLevelDB,pfMaxLevelDB,pfStepping) ) + +#define IAudioMidrange_GetLevel(This,nChannel,pfLevelDB) \ + ( (This)->lpVtbl -> GetLevel(This,nChannel,pfLevelDB) ) + +#define IAudioMidrange_SetLevel(This,nChannel,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevel(This,nChannel,fLevelDB,pguidEventContext) ) + +#define IAudioMidrange_SetLevelUniform(This,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevelUniform(This,fLevelDB,pguidEventContext) ) + +#define IAudioMidrange_SetLevelAllChannels(This,aLevelsDB,cChannels,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevelAllChannels(This,aLevelsDB,cChannels,pguidEventContext) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioMidrange_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioTreble_INTERFACE_DEFINED__ +#define __IAudioTreble_INTERFACE_DEFINED__ + +/* interface IAudioTreble */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioTreble; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0A717812-694E-4907-B74B-BAFA5CFDCA7B") + IAudioTreble : public IPerChannelDbLevel + { + public: + }; + + +#else /* C style interface */ + + typedef struct IAudioTrebleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioTreble * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioTreble * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioTreble * This); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetChannelCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IAudioTreble * This, + /* [annotation][out] */ + _Out_ UINT *pcChannels); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetLevelRange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevelRange )( + IAudioTreble * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfMinLevelDB, + /* [annotation][out] */ + _Out_ float *pfMaxLevelDB, + /* [annotation][out] */ + _Out_ float *pfStepping); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, GetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevel )( + IAudioTreble * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevel )( + IAudioTreble * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevelUniform) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevelUniform )( + IAudioTreble * This, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IPerChannelDbLevel, SetLevelAllChannels) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetLevelAllChannels )( + IAudioTreble * This, + /* [annotation][size_is][in] */ + _In_reads_(cChannels) float aLevelsDB[ ], + /* [annotation][in] */ + _In_ ULONG cChannels, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + END_INTERFACE + } IAudioTrebleVtbl; + + interface IAudioTreble + { + CONST_VTBL struct IAudioTrebleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioTreble_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioTreble_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioTreble_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioTreble_GetChannelCount(This,pcChannels) \ + ( (This)->lpVtbl -> GetChannelCount(This,pcChannels) ) + +#define IAudioTreble_GetLevelRange(This,nChannel,pfMinLevelDB,pfMaxLevelDB,pfStepping) \ + ( (This)->lpVtbl -> GetLevelRange(This,nChannel,pfMinLevelDB,pfMaxLevelDB,pfStepping) ) + +#define IAudioTreble_GetLevel(This,nChannel,pfLevelDB) \ + ( (This)->lpVtbl -> GetLevel(This,nChannel,pfLevelDB) ) + +#define IAudioTreble_SetLevel(This,nChannel,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevel(This,nChannel,fLevelDB,pguidEventContext) ) + +#define IAudioTreble_SetLevelUniform(This,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevelUniform(This,fLevelDB,pguidEventContext) ) + +#define IAudioTreble_SetLevelAllChannels(This,aLevelsDB,cChannels,pguidEventContext) \ + ( (This)->lpVtbl -> SetLevelAllChannels(This,aLevelsDB,cChannels,pguidEventContext) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioTreble_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioAutoGainControl_INTERFACE_DEFINED__ +#define __IAudioAutoGainControl_INTERFACE_DEFINED__ + +/* interface IAudioAutoGainControl */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioAutoGainControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("85401FD4-6DE4-4b9d-9869-2D6753A82F3C") + IAudioAutoGainControl : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetEnabled( + /* [annotation][out] */ + _Out_ BOOL *pbEnabled) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetEnabled( + /* [annotation][in] */ + _In_ BOOL bEnable, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioAutoGainControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioAutoGainControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioAutoGainControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioAutoGainControl * This); + + DECLSPEC_XFGVIRT(IAudioAutoGainControl, GetEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetEnabled )( + IAudioAutoGainControl * This, + /* [annotation][out] */ + _Out_ BOOL *pbEnabled); + + DECLSPEC_XFGVIRT(IAudioAutoGainControl, SetEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetEnabled )( + IAudioAutoGainControl * This, + /* [annotation][in] */ + _In_ BOOL bEnable, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + END_INTERFACE + } IAudioAutoGainControlVtbl; + + interface IAudioAutoGainControl + { + CONST_VTBL struct IAudioAutoGainControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioAutoGainControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioAutoGainControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioAutoGainControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioAutoGainControl_GetEnabled(This,pbEnabled) \ + ( (This)->lpVtbl -> GetEnabled(This,pbEnabled) ) + +#define IAudioAutoGainControl_SetEnabled(This,bEnable,pguidEventContext) \ + ( (This)->lpVtbl -> SetEnabled(This,bEnable,pguidEventContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioAutoGainControl_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioPeakMeter_INTERFACE_DEFINED__ +#define __IAudioPeakMeter_INTERFACE_DEFINED__ + +/* interface IAudioPeakMeter */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioPeakMeter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DD79923C-0599-45e0-B8B6-C8DF7DB6E796") + IAudioPeakMeter : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetChannelCount( + /* [annotation][out] */ + _Out_ UINT *pcChannels) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLevel( + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevel) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioPeakMeterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioPeakMeter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioPeakMeter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioPeakMeter * This); + + DECLSPEC_XFGVIRT(IAudioPeakMeter, GetChannelCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IAudioPeakMeter * This, + /* [annotation][out] */ + _Out_ UINT *pcChannels); + + DECLSPEC_XFGVIRT(IAudioPeakMeter, GetLevel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLevel )( + IAudioPeakMeter * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevel); + + END_INTERFACE + } IAudioPeakMeterVtbl; + + interface IAudioPeakMeter + { + CONST_VTBL struct IAudioPeakMeterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioPeakMeter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioPeakMeter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioPeakMeter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioPeakMeter_GetChannelCount(This,pcChannels) \ + ( (This)->lpVtbl -> GetChannelCount(This,pcChannels) ) + +#define IAudioPeakMeter_GetLevel(This,nChannel,pfLevel) \ + ( (This)->lpVtbl -> GetLevel(This,nChannel,pfLevel) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioPeakMeter_INTERFACE_DEFINED__ */ + + +#ifndef __IDeviceSpecificProperty_INTERFACE_DEFINED__ +#define __IDeviceSpecificProperty_INTERFACE_DEFINED__ + +/* interface IDeviceSpecificProperty */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IDeviceSpecificProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3B22BCBF-2586-4af0-8583-205D391B807C") + IDeviceSpecificProperty : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetType( + /* [annotation][out] */ + _Out_ VARTYPE *pVType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetValue( + /* [annotation][out] */ + _Out_ void *pvValue, + /* [annotation][out][in] */ + _Inout_ DWORD *pcbValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetValue( + /* [annotation][in] */ + _In_ void *pvValue, + /* [in] */ DWORD cbValue, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Get4BRange( + /* [annotation][out] */ + _Out_ LONG *plMin, + /* [annotation][out] */ + _Out_ LONG *plMax, + /* [annotation][out] */ + _Out_ LONG *plStepping) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDeviceSpecificPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDeviceSpecificProperty * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDeviceSpecificProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDeviceSpecificProperty * This); + + DECLSPEC_XFGVIRT(IDeviceSpecificProperty, GetType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetType )( + IDeviceSpecificProperty * This, + /* [annotation][out] */ + _Out_ VARTYPE *pVType); + + DECLSPEC_XFGVIRT(IDeviceSpecificProperty, GetValue) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetValue )( + IDeviceSpecificProperty * This, + /* [annotation][out] */ + _Out_ void *pvValue, + /* [annotation][out][in] */ + _Inout_ DWORD *pcbValue); + + DECLSPEC_XFGVIRT(IDeviceSpecificProperty, SetValue) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetValue )( + IDeviceSpecificProperty * This, + /* [annotation][in] */ + _In_ void *pvValue, + /* [in] */ DWORD cbValue, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IDeviceSpecificProperty, Get4BRange) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Get4BRange )( + IDeviceSpecificProperty * This, + /* [annotation][out] */ + _Out_ LONG *plMin, + /* [annotation][out] */ + _Out_ LONG *plMax, + /* [annotation][out] */ + _Out_ LONG *plStepping); + + END_INTERFACE + } IDeviceSpecificPropertyVtbl; + + interface IDeviceSpecificProperty + { + CONST_VTBL struct IDeviceSpecificPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDeviceSpecificProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDeviceSpecificProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDeviceSpecificProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDeviceSpecificProperty_GetType(This,pVType) \ + ( (This)->lpVtbl -> GetType(This,pVType) ) + +#define IDeviceSpecificProperty_GetValue(This,pvValue,pcbValue) \ + ( (This)->lpVtbl -> GetValue(This,pvValue,pcbValue) ) + +#define IDeviceSpecificProperty_SetValue(This,pvValue,cbValue,pguidEventContext) \ + ( (This)->lpVtbl -> SetValue(This,pvValue,cbValue,pguidEventContext) ) + +#define IDeviceSpecificProperty_Get4BRange(This,plMin,plMax,plStepping) \ + ( (This)->lpVtbl -> Get4BRange(This,plMin,plMax,plStepping) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDeviceSpecificProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IKsFormatSupport_INTERFACE_DEFINED__ +#define __IKsFormatSupport_INTERFACE_DEFINED__ + +/* interface IKsFormatSupport */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IKsFormatSupport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3CB4A69D-BB6F-4D2B-95B7-452D2C155DB5") + IKsFormatSupport : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsFormatSupported( + /* [size_is][in] */ PKSDATAFORMAT pKsFormat, + /* [annotation][in] */ + _In_ DWORD cbFormat, + /* [annotation][out] */ + _Out_ BOOL *pbSupported) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDevicePreferredFormat( + /* [out] */ PKSDATAFORMAT *ppKsFormat) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IKsFormatSupportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IKsFormatSupport * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IKsFormatSupport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IKsFormatSupport * This); + + DECLSPEC_XFGVIRT(IKsFormatSupport, IsFormatSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsFormatSupported )( + IKsFormatSupport * This, + /* [size_is][in] */ PKSDATAFORMAT pKsFormat, + /* [annotation][in] */ + _In_ DWORD cbFormat, + /* [annotation][out] */ + _Out_ BOOL *pbSupported); + + DECLSPEC_XFGVIRT(IKsFormatSupport, GetDevicePreferredFormat) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDevicePreferredFormat )( + IKsFormatSupport * This, + /* [out] */ PKSDATAFORMAT *ppKsFormat); + + END_INTERFACE + } IKsFormatSupportVtbl; + + interface IKsFormatSupport + { + CONST_VTBL struct IKsFormatSupportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IKsFormatSupport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IKsFormatSupport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IKsFormatSupport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IKsFormatSupport_IsFormatSupported(This,pKsFormat,cbFormat,pbSupported) \ + ( (This)->lpVtbl -> IsFormatSupported(This,pKsFormat,cbFormat,pbSupported) ) + +#define IKsFormatSupport_GetDevicePreferredFormat(This,ppKsFormat) \ + ( (This)->lpVtbl -> GetDevicePreferredFormat(This,ppKsFormat) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IKsFormatSupport_INTERFACE_DEFINED__ */ + + +#ifndef __IKsJackDescription_INTERFACE_DEFINED__ +#define __IKsJackDescription_INTERFACE_DEFINED__ + +/* interface IKsJackDescription */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IKsJackDescription; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4509F757-2D46-4637-8E62-CE7DB944F57B") + IKsJackDescription : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJackCount( + /* [annotation][out] */ + _Out_ UINT *pcJacks) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJackDescription( + /* [in] */ UINT nJack, + /* [annotation][out] */ + _Out_ KSJACK_DESCRIPTION *pDescription) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IKsJackDescriptionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IKsJackDescription * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IKsJackDescription * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IKsJackDescription * This); + + DECLSPEC_XFGVIRT(IKsJackDescription, GetJackCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJackCount )( + IKsJackDescription * This, + /* [annotation][out] */ + _Out_ UINT *pcJacks); + + DECLSPEC_XFGVIRT(IKsJackDescription, GetJackDescription) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJackDescription )( + IKsJackDescription * This, + /* [in] */ UINT nJack, + /* [annotation][out] */ + _Out_ KSJACK_DESCRIPTION *pDescription); + + END_INTERFACE + } IKsJackDescriptionVtbl; + + interface IKsJackDescription + { + CONST_VTBL struct IKsJackDescriptionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IKsJackDescription_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IKsJackDescription_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IKsJackDescription_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IKsJackDescription_GetJackCount(This,pcJacks) \ + ( (This)->lpVtbl -> GetJackCount(This,pcJacks) ) + +#define IKsJackDescription_GetJackDescription(This,nJack,pDescription) \ + ( (This)->lpVtbl -> GetJackDescription(This,nJack,pDescription) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IKsJackDescription_INTERFACE_DEFINED__ */ + + +#ifndef __IKsJackDescription2_INTERFACE_DEFINED__ +#define __IKsJackDescription2_INTERFACE_DEFINED__ + +/* interface IKsJackDescription2 */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IKsJackDescription2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("478F3A9B-E0C9-4827-9228-6F5505FFE76A") + IKsJackDescription2 : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJackCount( + /* [annotation][out] */ + _Out_ UINT *pcJacks) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJackDescription2( + /* [in] */ UINT nJack, + /* [annotation][out] */ + _Out_ KSJACK_DESCRIPTION2 *pDescription2) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IKsJackDescription2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IKsJackDescription2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IKsJackDescription2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IKsJackDescription2 * This); + + DECLSPEC_XFGVIRT(IKsJackDescription2, GetJackCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJackCount )( + IKsJackDescription2 * This, + /* [annotation][out] */ + _Out_ UINT *pcJacks); + + DECLSPEC_XFGVIRT(IKsJackDescription2, GetJackDescription2) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJackDescription2 )( + IKsJackDescription2 * This, + /* [in] */ UINT nJack, + /* [annotation][out] */ + _Out_ KSJACK_DESCRIPTION2 *pDescription2); + + END_INTERFACE + } IKsJackDescription2Vtbl; + + interface IKsJackDescription2 + { + CONST_VTBL struct IKsJackDescription2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IKsJackDescription2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IKsJackDescription2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IKsJackDescription2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IKsJackDescription2_GetJackCount(This,pcJacks) \ + ( (This)->lpVtbl -> GetJackCount(This,pcJacks) ) + +#define IKsJackDescription2_GetJackDescription2(This,nJack,pDescription2) \ + ( (This)->lpVtbl -> GetJackDescription2(This,nJack,pDescription2) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IKsJackDescription2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_devicetopology_0000_0017 */ +/* [local] */ + +#if (NTDDI_VERSION >= NTDDI_WIN10_NI) + + +extern RPC_IF_HANDLE __MIDL_itf_devicetopology_0000_0017_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_devicetopology_0000_0017_v0_0_s_ifspec; + +#ifndef __IKsJackDescription3_INTERFACE_DEFINED__ +#define __IKsJackDescription3_INTERFACE_DEFINED__ + +/* interface IKsJackDescription3 */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IKsJackDescription3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E3F6778B-6660-4CC8-A291-ECC4192D9967") + IKsJackDescription3 : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJackCount( + /* [annotation][out] */ + _Out_ UINT *pcJacks) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJackDescription3( + /* [in] */ UINT nJack, + /* [annotation][out] */ + _Out_ KSJACK_DESCRIPTION3 *pDescription3) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IKsJackDescription3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IKsJackDescription3 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IKsJackDescription3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IKsJackDescription3 * This); + + DECLSPEC_XFGVIRT(IKsJackDescription3, GetJackCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJackCount )( + IKsJackDescription3 * This, + /* [annotation][out] */ + _Out_ UINT *pcJacks); + + DECLSPEC_XFGVIRT(IKsJackDescription3, GetJackDescription3) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJackDescription3 )( + IKsJackDescription3 * This, + /* [in] */ UINT nJack, + /* [annotation][out] */ + _Out_ KSJACK_DESCRIPTION3 *pDescription3); + + END_INTERFACE + } IKsJackDescription3Vtbl; + + interface IKsJackDescription3 + { + CONST_VTBL struct IKsJackDescription3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IKsJackDescription3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IKsJackDescription3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IKsJackDescription3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IKsJackDescription3_GetJackCount(This,pcJacks) \ + ( (This)->lpVtbl -> GetJackCount(This,pcJacks) ) + +#define IKsJackDescription3_GetJackDescription3(This,nJack,pDescription3) \ + ( (This)->lpVtbl -> GetJackDescription3(This,nJack,pDescription3) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IKsJackDescription3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_devicetopology_0000_0018 */ +/* [local] */ + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_NI) + + +extern RPC_IF_HANDLE __MIDL_itf_devicetopology_0000_0018_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_devicetopology_0000_0018_v0_0_s_ifspec; + +#ifndef __IKsJackSinkInformation_INTERFACE_DEFINED__ +#define __IKsJackSinkInformation_INTERFACE_DEFINED__ + +/* interface IKsJackSinkInformation */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IKsJackSinkInformation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D9BD72ED-290F-4581-9FF3-61027A8FE532") + IKsJackSinkInformation : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJackSinkInformation( + /* [annotation][out] */ + _Out_ KSJACK_SINK_INFORMATION *pJackSinkInformation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IKsJackSinkInformationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IKsJackSinkInformation * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IKsJackSinkInformation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IKsJackSinkInformation * This); + + DECLSPEC_XFGVIRT(IKsJackSinkInformation, GetJackSinkInformation) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJackSinkInformation )( + IKsJackSinkInformation * This, + /* [annotation][out] */ + _Out_ KSJACK_SINK_INFORMATION *pJackSinkInformation); + + END_INTERFACE + } IKsJackSinkInformationVtbl; + + interface IKsJackSinkInformation + { + CONST_VTBL struct IKsJackSinkInformationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IKsJackSinkInformation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IKsJackSinkInformation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IKsJackSinkInformation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IKsJackSinkInformation_GetJackSinkInformation(This,pJackSinkInformation) \ + ( (This)->lpVtbl -> GetJackSinkInformation(This,pJackSinkInformation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IKsJackSinkInformation_INTERFACE_DEFINED__ */ + + +#ifndef __IKsJackContainerId_INTERFACE_DEFINED__ +#define __IKsJackContainerId_INTERFACE_DEFINED__ + +/* interface IKsJackContainerId */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IKsJackContainerId; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C99AF463-D629-4EC4-8C00-E54D68154248") + IKsJackContainerId : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetJackContainerId( + /* [annotation][out] */ + _Out_ GUID *pJackContainerId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IKsJackContainerIdVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IKsJackContainerId * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IKsJackContainerId * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IKsJackContainerId * This); + + DECLSPEC_XFGVIRT(IKsJackContainerId, GetJackContainerId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetJackContainerId )( + IKsJackContainerId * This, + /* [annotation][out] */ + _Out_ GUID *pJackContainerId); + + END_INTERFACE + } IKsJackContainerIdVtbl; + + interface IKsJackContainerId + { + CONST_VTBL struct IKsJackContainerIdVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IKsJackContainerId_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IKsJackContainerId_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IKsJackContainerId_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IKsJackContainerId_GetJackContainerId(This,pJackContainerId) \ + ( (This)->lpVtbl -> GetJackContainerId(This,pJackContainerId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IKsJackContainerId_INTERFACE_DEFINED__ */ + + +#ifndef __IPartsList_INTERFACE_DEFINED__ +#define __IPartsList_INTERFACE_DEFINED__ + +/* interface IPartsList */ +/* [object][unique][helpstring][uuid][local] */ + + +EXTERN_C const IID IID_IPartsList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6DAA848C-5EB0-45CC-AEA5-998A2CDA1FFB") + IPartsList : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCount( + /* [annotation][out] */ + _Out_ UINT *pCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPart( + /* [annotation][in] */ + _In_ UINT nIndex, + /* [annotation][out] */ + _Out_ IPart **ppPart) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPartsListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPartsList * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPartsList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPartsList * This); + + DECLSPEC_XFGVIRT(IPartsList, GetCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCount )( + IPartsList * This, + /* [annotation][out] */ + _Out_ UINT *pCount); + + DECLSPEC_XFGVIRT(IPartsList, GetPart) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPart )( + IPartsList * This, + /* [annotation][in] */ + _In_ UINT nIndex, + /* [annotation][out] */ + _Out_ IPart **ppPart); + + END_INTERFACE + } IPartsListVtbl; + + interface IPartsList + { + CONST_VTBL struct IPartsListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPartsList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPartsList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPartsList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPartsList_GetCount(This,pCount) \ + ( (This)->lpVtbl -> GetCount(This,pCount) ) + +#define IPartsList_GetPart(This,nIndex,ppPart) \ + ( (This)->lpVtbl -> GetPart(This,nIndex,ppPart) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPartsList_INTERFACE_DEFINED__ */ + + +#ifndef __IPart_INTERFACE_DEFINED__ +#define __IPart_INTERFACE_DEFINED__ + +/* interface IPart */ +/* [object][unique][helpstring][uuid][local] */ + + +EXTERN_C const IID IID_IPart; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AE2DE0E4-5BCA-4F2D-AA46-5D13F8FDB3A9") + IPart : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetName( + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLocalId( + /* [annotation][out] */ + _Out_ UINT *pnId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetGlobalId( + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrGlobalId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPartType( + /* [annotation][out] */ + _Out_ PartType *pPartType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSubType( + /* [out] */ GUID *pSubType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetControlInterfaceCount( + /* [annotation][out] */ + _Out_ UINT *pCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetControlInterface( + /* [annotation][in] */ + _In_ UINT nIndex, + /* [annotation][out] */ + _Out_ IControlInterface **ppInterfaceDesc) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumPartsIncoming( + /* [annotation][out] */ + _Out_ IPartsList **ppParts) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumPartsOutgoing( + /* [annotation][out] */ + _Out_ IPartsList **ppParts) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetTopologyObject( + /* [annotation][out] */ + _Out_ IDeviceTopology **ppTopology) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Activate( + /* [annotation][in] */ + _In_ DWORD dwClsContext, + /* [annotation][in] */ + _In_ REFIID refiid, + /* [annotation][iid_is][out] */ + _Out_opt_ void **ppvObject) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RegisterControlChangeCallback( + /* [annotation][in] */ + _In_ REFGUID riid, + /* [annotation][in] */ + _In_ IControlChangeNotify *pNotify) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UnregisterControlChangeCallback( + /* [annotation][in] */ + _In_ IControlChangeNotify *pNotify) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPartVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPart * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPart * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPart * This); + + DECLSPEC_XFGVIRT(IPart, GetName) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetName )( + IPart * This, + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrName); + + DECLSPEC_XFGVIRT(IPart, GetLocalId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLocalId )( + IPart * This, + /* [annotation][out] */ + _Out_ UINT *pnId); + + DECLSPEC_XFGVIRT(IPart, GetGlobalId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetGlobalId )( + IPart * This, + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrGlobalId); + + DECLSPEC_XFGVIRT(IPart, GetPartType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPartType )( + IPart * This, + /* [annotation][out] */ + _Out_ PartType *pPartType); + + DECLSPEC_XFGVIRT(IPart, GetSubType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSubType )( + IPart * This, + /* [out] */ GUID *pSubType); + + DECLSPEC_XFGVIRT(IPart, GetControlInterfaceCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetControlInterfaceCount )( + IPart * This, + /* [annotation][out] */ + _Out_ UINT *pCount); + + DECLSPEC_XFGVIRT(IPart, GetControlInterface) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetControlInterface )( + IPart * This, + /* [annotation][in] */ + _In_ UINT nIndex, + /* [annotation][out] */ + _Out_ IControlInterface **ppInterfaceDesc); + + DECLSPEC_XFGVIRT(IPart, EnumPartsIncoming) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumPartsIncoming )( + IPart * This, + /* [annotation][out] */ + _Out_ IPartsList **ppParts); + + DECLSPEC_XFGVIRT(IPart, EnumPartsOutgoing) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumPartsOutgoing )( + IPart * This, + /* [annotation][out] */ + _Out_ IPartsList **ppParts); + + DECLSPEC_XFGVIRT(IPart, GetTopologyObject) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetTopologyObject )( + IPart * This, + /* [annotation][out] */ + _Out_ IDeviceTopology **ppTopology); + + DECLSPEC_XFGVIRT(IPart, Activate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Activate )( + IPart * This, + /* [annotation][in] */ + _In_ DWORD dwClsContext, + /* [annotation][in] */ + _In_ REFIID refiid, + /* [annotation][iid_is][out] */ + _Out_opt_ void **ppvObject); + + DECLSPEC_XFGVIRT(IPart, RegisterControlChangeCallback) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RegisterControlChangeCallback )( + IPart * This, + /* [annotation][in] */ + _In_ REFGUID riid, + /* [annotation][in] */ + _In_ IControlChangeNotify *pNotify); + + DECLSPEC_XFGVIRT(IPart, UnregisterControlChangeCallback) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UnregisterControlChangeCallback )( + IPart * This, + /* [annotation][in] */ + _In_ IControlChangeNotify *pNotify); + + END_INTERFACE + } IPartVtbl; + + interface IPart + { + CONST_VTBL struct IPartVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPart_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPart_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPart_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPart_GetName(This,ppwstrName) \ + ( (This)->lpVtbl -> GetName(This,ppwstrName) ) + +#define IPart_GetLocalId(This,pnId) \ + ( (This)->lpVtbl -> GetLocalId(This,pnId) ) + +#define IPart_GetGlobalId(This,ppwstrGlobalId) \ + ( (This)->lpVtbl -> GetGlobalId(This,ppwstrGlobalId) ) + +#define IPart_GetPartType(This,pPartType) \ + ( (This)->lpVtbl -> GetPartType(This,pPartType) ) + +#define IPart_GetSubType(This,pSubType) \ + ( (This)->lpVtbl -> GetSubType(This,pSubType) ) + +#define IPart_GetControlInterfaceCount(This,pCount) \ + ( (This)->lpVtbl -> GetControlInterfaceCount(This,pCount) ) + +#define IPart_GetControlInterface(This,nIndex,ppInterfaceDesc) \ + ( (This)->lpVtbl -> GetControlInterface(This,nIndex,ppInterfaceDesc) ) + +#define IPart_EnumPartsIncoming(This,ppParts) \ + ( (This)->lpVtbl -> EnumPartsIncoming(This,ppParts) ) + +#define IPart_EnumPartsOutgoing(This,ppParts) \ + ( (This)->lpVtbl -> EnumPartsOutgoing(This,ppParts) ) + +#define IPart_GetTopologyObject(This,ppTopology) \ + ( (This)->lpVtbl -> GetTopologyObject(This,ppTopology) ) + +#define IPart_Activate(This,dwClsContext,refiid,ppvObject) \ + ( (This)->lpVtbl -> Activate(This,dwClsContext,refiid,ppvObject) ) + +#define IPart_RegisterControlChangeCallback(This,riid,pNotify) \ + ( (This)->lpVtbl -> RegisterControlChangeCallback(This,riid,pNotify) ) + +#define IPart_UnregisterControlChangeCallback(This,pNotify) \ + ( (This)->lpVtbl -> UnregisterControlChangeCallback(This,pNotify) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPart_INTERFACE_DEFINED__ */ + + +#ifndef __IConnector_INTERFACE_DEFINED__ +#define __IConnector_INTERFACE_DEFINED__ + +/* interface IConnector */ +/* [object][unique][helpstring][uuid][local] */ + + +EXTERN_C const IID IID_IConnector; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9c2c4058-23f5-41de-877a-df3af236a09e") + IConnector : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetType( + /* [annotation][out] */ + _Out_ ConnectorType *pType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDataFlow( + /* [annotation][out] */ + _Out_ DataFlow *pFlow) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ConnectTo( + /* [annotation][in] */ + _In_ IConnector *pConnectTo) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Disconnect( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsConnected( + /* [annotation][out] */ + _Out_ BOOL *pbConnected) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetConnectedTo( + /* [annotation][out] */ + _Out_ IConnector **ppConTo) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetConnectorIdConnectedTo( + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrConnectorId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDeviceIdConnectedTo( + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrDeviceId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IConnectorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IConnector * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IConnector * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IConnector * This); + + DECLSPEC_XFGVIRT(IConnector, GetType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetType )( + IConnector * This, + /* [annotation][out] */ + _Out_ ConnectorType *pType); + + DECLSPEC_XFGVIRT(IConnector, GetDataFlow) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDataFlow )( + IConnector * This, + /* [annotation][out] */ + _Out_ DataFlow *pFlow); + + DECLSPEC_XFGVIRT(IConnector, ConnectTo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ConnectTo )( + IConnector * This, + /* [annotation][in] */ + _In_ IConnector *pConnectTo); + + DECLSPEC_XFGVIRT(IConnector, Disconnect) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Disconnect )( + IConnector * This); + + DECLSPEC_XFGVIRT(IConnector, IsConnected) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsConnected )( + IConnector * This, + /* [annotation][out] */ + _Out_ BOOL *pbConnected); + + DECLSPEC_XFGVIRT(IConnector, GetConnectedTo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetConnectedTo )( + IConnector * This, + /* [annotation][out] */ + _Out_ IConnector **ppConTo); + + DECLSPEC_XFGVIRT(IConnector, GetConnectorIdConnectedTo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetConnectorIdConnectedTo )( + IConnector * This, + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrConnectorId); + + DECLSPEC_XFGVIRT(IConnector, GetDeviceIdConnectedTo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDeviceIdConnectedTo )( + IConnector * This, + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrDeviceId); + + END_INTERFACE + } IConnectorVtbl; + + interface IConnector + { + CONST_VTBL struct IConnectorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IConnector_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IConnector_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IConnector_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IConnector_GetType(This,pType) \ + ( (This)->lpVtbl -> GetType(This,pType) ) + +#define IConnector_GetDataFlow(This,pFlow) \ + ( (This)->lpVtbl -> GetDataFlow(This,pFlow) ) + +#define IConnector_ConnectTo(This,pConnectTo) \ + ( (This)->lpVtbl -> ConnectTo(This,pConnectTo) ) + +#define IConnector_Disconnect(This) \ + ( (This)->lpVtbl -> Disconnect(This) ) + +#define IConnector_IsConnected(This,pbConnected) \ + ( (This)->lpVtbl -> IsConnected(This,pbConnected) ) + +#define IConnector_GetConnectedTo(This,ppConTo) \ + ( (This)->lpVtbl -> GetConnectedTo(This,ppConTo) ) + +#define IConnector_GetConnectorIdConnectedTo(This,ppwstrConnectorId) \ + ( (This)->lpVtbl -> GetConnectorIdConnectedTo(This,ppwstrConnectorId) ) + +#define IConnector_GetDeviceIdConnectedTo(This,ppwstrDeviceId) \ + ( (This)->lpVtbl -> GetDeviceIdConnectedTo(This,ppwstrDeviceId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IConnector_INTERFACE_DEFINED__ */ + + +#ifndef __ISubunit_INTERFACE_DEFINED__ +#define __ISubunit_INTERFACE_DEFINED__ + +/* interface ISubunit */ +/* [object][unique][helpstring][uuid][local] */ + + +EXTERN_C const IID IID_ISubunit; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("82149A85-DBA6-4487-86BB-EA8F7FEFCC71") + ISubunit : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct ISubunitVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ISubunit * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ISubunit * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ISubunit * This); + + END_INTERFACE + } ISubunitVtbl; + + interface ISubunit + { + CONST_VTBL struct ISubunitVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISubunit_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISubunit_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISubunit_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISubunit_INTERFACE_DEFINED__ */ + + +#ifndef __IControlInterface_INTERFACE_DEFINED__ +#define __IControlInterface_INTERFACE_DEFINED__ + +/* interface IControlInterface */ +/* [object][unique][helpstring][uuid][local] */ + + +EXTERN_C const IID IID_IControlInterface; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("45d37c3f-5140-444a-ae24-400789f3cbf3") + IControlInterface : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetName( + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetIID( + /* [annotation][out] */ + _Out_ GUID *pIID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IControlInterfaceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IControlInterface * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IControlInterface * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IControlInterface * This); + + DECLSPEC_XFGVIRT(IControlInterface, GetName) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetName )( + IControlInterface * This, + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrName); + + DECLSPEC_XFGVIRT(IControlInterface, GetIID) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetIID )( + IControlInterface * This, + /* [annotation][out] */ + _Out_ GUID *pIID); + + END_INTERFACE + } IControlInterfaceVtbl; + + interface IControlInterface + { + CONST_VTBL struct IControlInterfaceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IControlInterface_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IControlInterface_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IControlInterface_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IControlInterface_GetName(This,ppwstrName) \ + ( (This)->lpVtbl -> GetName(This,ppwstrName) ) + +#define IControlInterface_GetIID(This,pIID) \ + ( (This)->lpVtbl -> GetIID(This,pIID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IControlInterface_INTERFACE_DEFINED__ */ + + +#ifndef __IControlChangeNotify_INTERFACE_DEFINED__ +#define __IControlChangeNotify_INTERFACE_DEFINED__ + +/* interface IControlChangeNotify */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IControlChangeNotify; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A09513ED-C709-4d21-BD7B-5F34C47F3947") + IControlChangeNotify : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnNotify( + /* [annotation][in] */ + _In_ DWORD dwSenderProcessId, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IControlChangeNotifyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IControlChangeNotify * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IControlChangeNotify * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IControlChangeNotify * This); + + DECLSPEC_XFGVIRT(IControlChangeNotify, OnNotify) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnNotify )( + IControlChangeNotify * This, + /* [annotation][in] */ + _In_ DWORD dwSenderProcessId, + /* [annotation][unique][in] */ + _In_opt_ LPCGUID pguidEventContext); + + END_INTERFACE + } IControlChangeNotifyVtbl; + + interface IControlChangeNotify + { + CONST_VTBL struct IControlChangeNotifyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IControlChangeNotify_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IControlChangeNotify_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IControlChangeNotify_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IControlChangeNotify_OnNotify(This,dwSenderProcessId,pguidEventContext) \ + ( (This)->lpVtbl -> OnNotify(This,dwSenderProcessId,pguidEventContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IControlChangeNotify_INTERFACE_DEFINED__ */ + + +#ifndef __IDeviceTopology_INTERFACE_DEFINED__ +#define __IDeviceTopology_INTERFACE_DEFINED__ + +/* interface IDeviceTopology */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IDeviceTopology; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2A07407E-6497-4A18-9787-32F79BD0D98F") + IDeviceTopology : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetConnectorCount( + /* [annotation][out] */ + _Out_ UINT *pCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetConnector( + /* [annotation][in] */ + _In_ UINT nIndex, + /* [annotation][out] */ + _Out_ IConnector **ppConnector) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSubunitCount( + /* [annotation][out] */ + _Out_ UINT *pCount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSubunit( + /* [annotation][in] */ + _In_ UINT nIndex, + /* [annotation][out] */ + _Outptr_ ISubunit **ppSubunit) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPartById( + /* [annotation][in] */ + _In_ UINT nId, + /* [annotation][out] */ + _Outptr_ IPart **ppPart) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDeviceId( + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrDeviceId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSignalPath( + /* [annotation][in] */ + _In_ IPart *pIPartFrom, + /* [annotation][in] */ + _In_ IPart *pIPartTo, + /* [annotation][in] */ + _In_ BOOL bRejectMixedPaths, + /* [annotation][out] */ + _Outptr_ IPartsList **ppParts) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDeviceTopologyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDeviceTopology * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDeviceTopology * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDeviceTopology * This); + + DECLSPEC_XFGVIRT(IDeviceTopology, GetConnectorCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetConnectorCount )( + IDeviceTopology * This, + /* [annotation][out] */ + _Out_ UINT *pCount); + + DECLSPEC_XFGVIRT(IDeviceTopology, GetConnector) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetConnector )( + IDeviceTopology * This, + /* [annotation][in] */ + _In_ UINT nIndex, + /* [annotation][out] */ + _Out_ IConnector **ppConnector); + + DECLSPEC_XFGVIRT(IDeviceTopology, GetSubunitCount) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSubunitCount )( + IDeviceTopology * This, + /* [annotation][out] */ + _Out_ UINT *pCount); + + DECLSPEC_XFGVIRT(IDeviceTopology, GetSubunit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSubunit )( + IDeviceTopology * This, + /* [annotation][in] */ + _In_ UINT nIndex, + /* [annotation][out] */ + _Outptr_ ISubunit **ppSubunit); + + DECLSPEC_XFGVIRT(IDeviceTopology, GetPartById) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPartById )( + IDeviceTopology * This, + /* [annotation][in] */ + _In_ UINT nId, + /* [annotation][out] */ + _Outptr_ IPart **ppPart); + + DECLSPEC_XFGVIRT(IDeviceTopology, GetDeviceId) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDeviceId )( + IDeviceTopology * This, + /* [annotation][out] */ + _Outptr_ LPWSTR *ppwstrDeviceId); + + DECLSPEC_XFGVIRT(IDeviceTopology, GetSignalPath) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSignalPath )( + IDeviceTopology * This, + /* [annotation][in] */ + _In_ IPart *pIPartFrom, + /* [annotation][in] */ + _In_ IPart *pIPartTo, + /* [annotation][in] */ + _In_ BOOL bRejectMixedPaths, + /* [annotation][out] */ + _Outptr_ IPartsList **ppParts); + + END_INTERFACE + } IDeviceTopologyVtbl; + + interface IDeviceTopology + { + CONST_VTBL struct IDeviceTopologyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDeviceTopology_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDeviceTopology_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDeviceTopology_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDeviceTopology_GetConnectorCount(This,pCount) \ + ( (This)->lpVtbl -> GetConnectorCount(This,pCount) ) + +#define IDeviceTopology_GetConnector(This,nIndex,ppConnector) \ + ( (This)->lpVtbl -> GetConnector(This,nIndex,ppConnector) ) + +#define IDeviceTopology_GetSubunitCount(This,pCount) \ + ( (This)->lpVtbl -> GetSubunitCount(This,pCount) ) + +#define IDeviceTopology_GetSubunit(This,nIndex,ppSubunit) \ + ( (This)->lpVtbl -> GetSubunit(This,nIndex,ppSubunit) ) + +#define IDeviceTopology_GetPartById(This,nId,ppPart) \ + ( (This)->lpVtbl -> GetPartById(This,nId,ppPart) ) + +#define IDeviceTopology_GetDeviceId(This,ppwstrDeviceId) \ + ( (This)->lpVtbl -> GetDeviceId(This,ppwstrDeviceId) ) + +#define IDeviceTopology_GetSignalPath(This,pIPartFrom,pIPartTo,bRejectMixedPaths,ppParts) \ + ( (This)->lpVtbl -> GetSignalPath(This,pIPartFrom,pIPartTo,bRejectMixedPaths,ppParts) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDeviceTopology_INTERFACE_DEFINED__ */ + + + +#ifndef __DevTopologyLib_LIBRARY_DEFINED__ +#define __DevTopologyLib_LIBRARY_DEFINED__ + +/* library DevTopologyLib */ +/* [helpstring][version][uuid] */ + + + + + + + + + + + + + + + + +EXTERN_C const IID LIBID_DevTopologyLib; + +EXTERN_C const CLSID CLSID_DeviceTopology; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1DF639D0-5EC1-47AA-9379-828DC1AA8C59") +DeviceTopology; +#endif +#endif /* __DevTopologyLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_devicetopology_0000_0028 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_devicetopology_0000_0028_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_devicetopology_0000_0028_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/devicetopology.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devicetopology.idl new file mode 100644 index 0000000000000000000000000000000000000000..a8edc8e40d3181e30b80edcba81a9f626cf623ef --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devicetopology.idl @@ -0,0 +1,1776 @@ +cpp_quote("#include ") +//**@@@*@@@**************************************************** +// +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//**@@@*@@@**************************************************** +import "oaidl.idl"; +import "ocidl.idl"; +import "propidl.idl"; + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +cpp_quote("#define E_NOTFOUND HRESULT_FROM_WIN32(ERROR_NOT_FOUND)") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("//") +cpp_quote("// Flag for clients of IControlChangeNotify::OnNotify to allow those clients to identify hardware initiated notifications") +cpp_quote("//") +cpp_quote("#define DEVTOPO_HARDWARE_INITIATED_EVENTCONTEXT 'draH'") + +cpp_quote("/* E2C2E9DE-09B1-4B04-84E5-07931225EE04 */") +cpp_quote("DEFINE_GUID(EVENTCONTEXT_VOLUMESLIDER, 0xE2C2E9DE,0x09B1,0x4B04,0x84, 0xE5, 0x07, 0x93, 0x12, 0x25, 0xEE, 0x04);") + +// The preprocessor directives here ensure that KSDATAFORMAT is defined in the correct way +// Constraint is that ks.h cannot be included in the idl file. The directives below ensure that +cpp_quote("#define _IKsControl_") +cpp_quote("#include \"ks.h\"") +cpp_quote("#include \"ksmedia.h\"") +cpp_quote("#ifndef _KS_") +typedef struct { + ULONG FormatSize; + ULONG Flags; + ULONG SampleSize; + ULONG Reserved; + GUID MajorFormat; + GUID SubFormat; + GUID Specifier; +} KSDATAFORMAT, *PKSDATAFORMAT; + +typedef struct { + union { + struct { + GUID Set; + ULONG Id; + ULONG Flags; + }; + LONGLONG Alignment; + }; +} KSIDENTIFIER, *PKSIDENTIFIER; + +typedef KSIDENTIFIER KSPROPERTY, *PKSPROPERTY, KSMETHOD, *PKSMETHOD, KSEVENT, *PKSEVENT; + +typedef enum +{ + eConnTypeUnknown, + eConnType3Point5mm, + eConnTypeQuarter, + eConnTypeAtapiInternal, + eConnTypeRCA, + eConnTypeOptical, + eConnTypeOtherDigital, + eConnTypeOtherAnalog, + eConnTypeMultichannelAnalogDIN, + eConnTypeXlrProfessional, + eConnTypeRJ11Modem, + eConnTypeCombination +} EPcxConnectionType; + +#define eGeoLocReserved5 eGeoLocNotApplicable +typedef enum +{ + eGeoLocRear = 0x1, + eGeoLocFront, + eGeoLocLeft, + eGeoLocRight, + eGeoLocTop, + eGeoLocBottom, + eGeoLocRearPanel, + eGeoLocRiser, + eGeoLocInsideMobileLid, + eGeoLocDrivebay, + eGeoLocHDMI, + eGeoLocOutsideMobileLid, + eGeoLocATAPI, + eGeoLocNotApplicable, + eGeoLocReserved6, +} EPcxGeoLocation; + +typedef enum +{ + eGenLocPrimaryBox = 0, + eGenLocInternal, + eGenLocSeparate, + eGenLocOther +} EPcxGenLocation; + +typedef enum +{ + ePortConnJack = 0, + ePortConnIntegratedDevice, + ePortConnBothIntegratedAndJack, + ePortConnUnknown +} EPxcPortConnection; + +typedef struct +{ + DWORD ChannelMapping; + COLORREF Color; // use RGB() macro to generate these + EPcxConnectionType ConnectionType; + EPcxGeoLocation GeoLocation; + EPcxGenLocation GenLocation; + EPxcPortConnection PortConnection; + BOOL IsConnected; +} KSJACK_DESCRIPTION, *PKSJACK_DESCRIPTION; + +typedef struct _LUID +{ + DWORD LowPart; + LONG HighPart; +} LUID, *PLUID; +typedef enum +{ + KSJACK_SINK_CONNECTIONTYPE_HDMI = 0, // HDMI + KSJACK_SINK_CONNECTIONTYPE_DISPLAYPORT, // DisplayPort +} KSJACK_SINK_CONNECTIONTYPE; +#define MAX_SINK_DESCRIPTION_NAME_LENGTH 32 +typedef struct _tagKSJACK_SINK_INFORMATION +{ + KSJACK_SINK_CONNECTIONTYPE ConnType; // Connection Type + WORD ManufacturerId; // Sink manufacturer ID + WORD ProductId; // Sink product ID + WORD AudioLatency; // Sink audio latency + BOOL HDCPCapable; // HDCP Support + BOOL AICapable; // ACP Packet, ISRC1, and ISRC2 Support + UCHAR SinkDescriptionLength; // Monitor/Sink name length + WCHAR SinkDescription[MAX_SINK_DESCRIPTION_NAME_LENGTH]; // Monitor/Sink name + LUID PortId; // Video port identifier +} KSJACK_SINK_INFORMATION; + +typedef struct _tagKSJACK_DESCRIPTION2 +{ + DWORD DeviceStateInfo; // Top 16 bits: Report current device state, active, streaming, idle, or hardware not ready + // Bottom 16 bits: detailed reason to further explain state in top 16 bits + DWORD JackCapabilities; // Report jack capabilities such as jack presence detection capability + // or dynamic format changing capability +} KSJACK_DESCRIPTION2, *PKSJACK_DESCRIPTION2; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_NI) ") +typedef struct _tagKSJACK_DESCRIPTION3 +{ + ULONG ConfigId; // Driver defined bitmask or enum describing the current configuration, changing this value causes + // audioendpointbuilder to refresh the cache to ensure that the published endpoint matches the current config. +} KSJACK_DESCRIPTION3, *PKSJACK_DESCRIPTION3; +cpp_quote("#endif // (NTDDI_VERSION >= NTDDI_WIN10_NI) ") +cpp_quote("#endif") + +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +// forwards +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +interface IDeviceTopology; +interface IPart; +interface IConnector; +interface ISubunit; +interface IControlInterface; +interface IPartsList; +interface IControlChangeNotify; +interface IControlChangeDelegate; + + +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +// connector data flow +typedef enum { + In, + Out +} DataFlow; + +typedef enum { + Connector, + Subunit +} PartType; + +typedef enum { + Unknown_Connector, + Physical_Internal, // Tangible connector inside the device or PC. i.e. you have to open the case (of the PC or device) to see it + Physical_External, // Tangible connector external to the device of PC, i.e. a jack + Software_IO, // Connector that you can send/receive data to/from + Software_Fixed, // Connector that is for topology parsing only. Is involved in a permanent connection to another Fixed connector. + Network // A connector over IP +} ConnectorType; + +// ---------------------------------------------------------------------- +// ---------------------------------------------------------------------- +// interface declarations + +// ---------------------------------------------------------------------- +// ---------------------------------------------------------------------- +// Activatable interfaces + +// ---------------------------------------------------------------------- +// IKsControl +// +// Abstract: +// Provides direct access to KS properties on a KSFilter. +// +// Activatable on: +// IMMDevice (representing a KsFilter) +// +// See MSDN documentation for more info. +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(28F54685-06FD-11D2-B27A-00A0C9223196), + nonextensible, + helpstring("IKsControl Interface"), + pointer_default(unique) +] +interface IKsControl : IUnknown +{ + HRESULT KsProperty([in] PKSPROPERTY Property, [in] ULONG PropertyLength, [in,out] void* PropertyData, [in] ULONG DataLength, [out] ULONG* BytesReturned); + HRESULT KsMethod([in] PKSMETHOD Method, [in] ULONG MethodLength, [in, out] void* MethodData, [in] ULONG DataLength, [out] ULONG* BytesReturned); + HRESULT KsEvent([in] PKSEVENT Event, [in] ULONG EventLength, [in, out] void* EventData, [in] ULONG DataLength, [out] ULONG* BytesReturned); +}; + + +// ---------------------------------------------------------------------- +// IAudioVolumeLevel +// +// Abstract: +// Provides access to a hardware volume control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(7FB7B48F-531D-44A2-BCB3-5AD5A134B3DC), + nonextensible, + helpstring("IAudioVolumeLevel Interface"), + pointer_default(unique) +] +interface IAudioVolumeLevel : IPerChannelDbLevel +{ +}; + +// ---------------------------------------------------------------------- +// IAudioChannelConfig +// +// Abstract: +// Provides access to a hardware channel configuration control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(BB11C46F-EC28-493C-B88A-5DB88062CE98), + nonextensible, + helpstring("IAudioChannelConfig Interface"), + pointer_default(unique) +] +interface IAudioChannelConfig : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Sets the current speaker configuration for an audio Adapter + // + // Parameters: + // + // dwConfig - [in] A mask of 0 or more speaker position constants + // pguidEventContext - [in] User supplied data. This value is sent to clients that register for notifications through IControlChangeNotify. + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method SetChannelConfig")] HRESULT SetChannelConfig([in] DWORD dwConfig, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); + //------------------------------------------------------------------------- + // Description: + // + // Gets the current speaker configuration for an audio Adapter + // + // Parameters: + // + // pdwConfig - [out] A mask of 0 or more speaker position constants + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetChannelConfig")] HRESULT GetChannelConfig([out, retval] DWORD* pdwConfig); +}; + +// ---------------------------------------------------------------------- +// IAudioLoudness +// +// Abstract: +// Provides access to a hardware "Loudness" compensation control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(7D8B1437-DD53-4350-9C1B-1EE2890BD938), + nonextensible, + helpstring("IAudioLoudness Interface"), + pointer_default(unique) +] +interface IAudioLoudness : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the current state (enabled or disabled) of a Loudness control + // + // Parameters: + // + // pbEnabled - [out] The current state of the Loudness control. TRUE if enabled, FALSE if not enabled. + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetEnabled")] + HRESULT GetEnabled([out, annotation("_Out_")] BOOL* pbEnabled); + //------------------------------------------------------------------------- + // Description: + // + // Sets the current state (enabled or disabled) of a Loudness control + // + // Parameters: + // + // bEnable - [in] The desired state of the Loudness control. TRUE if enabled, FALSE if not enabled. + // pguidEventContext - [in] User supplied data. This value is sent to clients that register for notifications through IControlChangeNotify. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method SetEnabled")] + HRESULT SetEnabled([in, annotation("_In_")] BOOL bEnable, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); +}; + +// ---------------------------------------------------------------------- +// IAudioInputSelector +// +// Abstract: +// Provides access to a hardware MUX control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(4F03DC02-5E6E-4653-8F72-A030C123D598), + nonextensible, + helpstring("IAudioInputSelector Interface"), + pointer_default(unique) +] +interface IAudioInputSelector : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the current value of an Input Selector, in terms of which adjacent part + // in the topology graph is set to feed the subunit that this interface is on + // + // Parameters: + // + // pnIdSelected - [out] The local id of the adjacent part which is selected + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetSelection")] + HRESULT GetSelection([out, annotation("_Out_")] UINT* pnIdSelected); + //------------------------------------------------------------------------- + // Description: + // + // Sets the current value of an Input Selector, in terms of which adjacent part + // in the topology graph is set to feed the subunit that this interface is on + // + // Parameters: + // + // nIdSelect - [in] The local id of the adjacent part to be selected + // pguidEventContext - [in] User supplied data. This value is sent to clients that register for notifications through IControlChangeNotify. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method SetSelection")] + HRESULT SetSelection([in, annotation("_In_")] UINT nIdSelect, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); +}; + +// ---------------------------------------------------------------------- +// IAudioOutputSelector +// +// Abstract: +// Provides access to a hardware DEMUX control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(BB515F69-94A7-429e-8B9C-271B3F11A3AB), + nonextensible, + helpstring("IAudioOutputSelector Interface"), + pointer_default(unique) +] +interface IAudioOutputSelector : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the current value of an Output Selector, in terms of which adjacent part in the + // topology graph is set to receive a signal from the subunit that this interface is on + // + // Parameters: + // + // pnIdSelected - [out] The local id of the adjacent part which is selected + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetSelection")] + HRESULT GetSelection([out, annotation("_Out_")] UINT* pnIdSelected); + //------------------------------------------------------------------------- + // Description: + // + // Sets the current value of an Output Selector, in terms of which adjacent part in the + // topology graph will be set to receive a signal from the subunit that this interface is on + // + // Parameters: + // + // nIdSelect - [in] The local id of the adjacent part to be selected + // pguidEventContext - [in] User supplied data. This value is sent to clients that register for notifications through IControlChangeNotify. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method SetSelection")] + HRESULT SetSelection([in, annotation("_In_")] UINT nIdSelect, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); +}; + +// ---------------------------------------------------------------------- +// IAudioMute +// +// Abstract: +// Provides access to a hardware MUTE control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(DF45AEEA-B74A-4B6B-AFAD-2366B6AA012E), + nonextensible, + helpstring("IAudioMute Interface"), + pointer_default(unique) +] +interface IAudioMute : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Sets the mute state + // + // Parameters: + // + // bMuted - [in] The desired mute state. TRUE for mute, FALSE for unmute. + // pguidEventContext - [in] User supplied data. This value is sent to clients that register for notifications through IControlChangeNotify. + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method SetMute")] + HRESULT SetMute([in, annotation("_In_")] BOOL bMuted, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); + //------------------------------------------------------------------------- + // Description: + // + // Gets the mute state + // + // Parameters: + // + // pbMuted - [out] The current mute state. TRUE if muted, FALSE if unmuted. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetMute")] + HRESULT GetMute([out, annotation("_Out_")] BOOL* pbMuted); +}; + +// ---------------------------------------------------------------------- +// IPerChannelDbLevel +// +// Abstract: +// Base interface for volume and other dB valued per-channel controls +// +// Activatable on: +// Nothing. Base class only. +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(C2F8E001-F205-4BC9-99BC-C13B1E048CCB), + nonextensible, + helpstring("IPerChannelDbLevel Interface"), + pointer_default(unique) +] +interface IPerChannelDbLevel : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the number of channels + // + // Parameters: + // + // cChannels - [out] The number of channels + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetChannelCount")] + HRESULT GetChannelCount([out, annotation("_Out_")] UINT* pcChannels); + //------------------------------------------------------------------------- + // Description: + // + // Gets the lowest and highest values supported + // + // Parameters: + // + // pfMinLevelDB - [out] The minimum level in dB. Negative values represent attenuation; positive values represent amplification. + // pfMaxLevelDB - [out] The maximum level in dB. Negative values represent attenuation; positive values represent amplification. + // pfStepping - [out] The granularity of steps in terms of dB. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetLevelRange")] + HRESULT GetLevelRange([in, annotation("_In_")] UINT nChannel, [out, annotation("_Out_")] float* pfMinLevelDB, [out, annotation("_Out_")] float* pfMaxLevelDB, [out, annotation("_Out_")] float* pfStepping); + //------------------------------------------------------------------------- + // Description: + // + // Gets the level of the specified channel + // + // Parameters: + // + // nChannel - [in] The channel to set the level on, in the range [0, ChannelsCount - 1] + // pfLevelDB - [out] The level in dB. Negative values represent attenuation; positive values represent amplification. + // + // Remarks: + // Note that most hardware only supports attenuation. (i.e. negative values for pfLevelDB) + // + // Return values: + // S_OK if successful + // + [id(3), helpstring("method GetLevel")] + HRESULT GetLevel([in, annotation("_In_")] UINT nChannel, [out, annotation("_Out_")] float* pfLevelDB); + //------------------------------------------------------------------------- + // Description: + // + // Sets the level of the specified channel + // + // Parameters: + // + // nChannel - [in] The channel to set the level on, in the range [0, ChannelsCount - 1] + // fLevelDB - [in] The desired level in dB. Negative values represent attenuation; positive values represent amplification. + // pguidEventContext - [in] User supplied data. This value is sent to clients that register for notifications through IControlChangeNotify. + // + // Remarks: + // Note that most hardware only supports attenuation. (i.e. negative values for fLevelDB) + // + // Return values: + // S_OK if successful + // + [id(4), helpstring("method SetLevel")] + HRESULT SetLevel([in, annotation("_In_")] UINT nChannel, [in, annotation("_In_")] float fLevelDB, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); + //------------------------------------------------------------------------- + // Description: + // + // Sets the level of all channels to a single value + // + // Parameters: + // + // fLevelDB - [in] The desired level in dB. Negative values represent attenuation; positive values represent amplification. + // pguidEventContext - [in] User supplied data. This value is sent to clients that register for notifications through IControlChangeNotify. + // + // Remarks: + // Note that most hardware only supports attenuation. (i.e. negative values for fLevelDB) + // + // Return values: + // S_OK if successful + // + [id(5), helpstring("method SetLevelUniform")] + HRESULT SetLevelUniform([in, annotation("_In_")] float fLevelDB, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); + //------------------------------------------------------------------------- + // Description: + // + // Sets the level for all channels + // + // Parameters: + // + // aLevelDB - [in] An array of the desired levels in dB. Negative values represent attenuation; positive values represent amplification. + // cChannels - [in] Number of elements in aLevelDB. This number must match the channel count returned by GetChannelCount() + // pguidEventContext - [in] User supplied data. This value is sent to clients that register for notifications through IControlChangeNotify. + // + // Remarks: + // Note that most hardware only supports attenuation. (i.e. negative values for fLevelDB) + // + // Return values: + // S_OK if successful + // + [id(6), helpstring("method SetLevelAllChannels")] + HRESULT SetLevelAllChannels([in,size_is(cChannels), annotation("_In_reads_(cChannels)")] float aLevelsDB[], [in, annotation("_In_")] ULONG cChannels, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); +}; + + +// ---------------------------------------------------------------------- +// IAudioBass +// +// Abstract: +// Provides access to a hardware Bass level control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(A2B1A1D9-4DB3-425D-A2B2-BD335CB3E2E5), + nonextensible, + helpstring("IAudioBass Interface"), + pointer_default(unique) +] +interface IAudioBass : IPerChannelDbLevel{ +}; + +// ---------------------------------------------------------------------- +// IAudioMidrange +// +// Abstract: +// Provides access to a hardware Midrange level control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(5E54B6D7-B44B-40D9-9A9E-E691D9CE6EDF), + nonextensible, + helpstring("IAudioMidrange Interface"), + pointer_default(unique) +] +interface IAudioMidrange : IPerChannelDbLevel{ +}; + +// ---------------------------------------------------------------------- +// IAudioTreble +// +// Abstract: +// Provides access to a hardware Treble level control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(0A717812-694E-4907-B74B-BAFA5CFDCA7B), + nonextensible, + helpstring("IAudioTreble Interface"), + pointer_default(unique) +] +interface IAudioTreble : IPerChannelDbLevel{ +}; + +// ---------------------------------------------------------------------- +// IAudioAutoGainControl +// +// Abstract: +// Provides access to a hardware AGC control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(85401FD4-6DE4-4b9d-9869-2D6753A82F3C), + nonextensible, + helpstring("IAudioAutoGainControl Interface"), + pointer_default(unique) +] +interface IAudioAutoGainControl : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the state of the AGC control (enabled or disabled) + // + // Parameters: + // + // pbEnabled - [out] The state of the AGC control. TRUE for enabled, FALSE for disabled. + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetEnabled")] + HRESULT GetEnabled([out, annotation("_Out_")] BOOL* pbEnabled); + //------------------------------------------------------------------------- + // Description: + // + // Sets the state of the AGC control (enabled or disabled) + // + // Parameters: + // + // bEnabled - [in] The desired state of the AGC control. TRUE for enabled, FALSE for disabled. + // pguidEventContext - [in] User supplied data. This value is sent to clients that register for notifications through IControlChangeNotify. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method SetEnabled")] + HRESULT SetEnabled([in, annotation("_In_")] BOOL bEnable, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); +}; + + +// ---------------------------------------------------------------------- +// IAudioPeakMeter +// +// Abstract: +// Provides access to a hardware Peak Meter control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(DD79923C-0599-45e0-B8B6-C8DF7DB6E796), + nonextensible, + helpstring("IAudioPeakMeter Interface"), + pointer_default(unique) +] +interface IAudioPeakMeter : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the number of channels + // + // Parameters: + // + // cChannels - [out] The number of channels + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetChannelCount")] + HRESULT GetChannelCount([out, annotation("_Out_")] UINT* pcChannels); + //------------------------------------------------------------------------- + // Description: + // + // Gets the value of a peak meter control + // + // Parameters: + // + // nChannel - [in] The channel whose value is to be retrieved, in the range [0, ChannelsCount - 1] + // pfLevel - [out] The current value, in the range [0.0f, 1.0f] + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetLevel")] + HRESULT GetLevel([in, annotation("_In_")] UINT nChannel, [out, annotation("_Out_")] float* pfLevel); +}; + + +// ---------------------------------------------------------------------- +// IDeviceSpecificProperty +// +// Abstract: +// Provides access to a vendor specific control. +// +// Activatable on: +// IPart interface on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(3B22BCBF-2586-4af0-8583-205D391B807C), + nonextensible, + helpstring("IDeviceSpecificProperty Interface"), + pointer_default(unique) +] +interface IDeviceSpecificProperty : IUnknown +{ + [id(1), helpstring("method GetDataType")] HRESULT GetType([out, annotation("_Out_")] VARTYPE* pVType); + [id(2), helpstring("method GetValue")] HRESULT GetValue([out, annotation("_Out_")] void* pvValue, [in, out, annotation("_Inout_")] DWORD* pcbValue); + [id(3), helpstring("method SetValue")] HRESULT SetValue([in, annotation("_In_")] void* pvValue, [in] DWORD cbValue, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); + [id(4), helpstring("method GetRange")] HRESULT Get4BRange([out, annotation("_Out_")] LONG* plMin, [out, annotation("_Out_")] LONG* plMax, [out, annotation("_Out_")] LONG* plStepping); +}; + +// ---------------------------------------------------------------------- +// IKsFormatSupport +// +// Abstract: +// Used to query for format support on a "host pin connector" +// +// Activatable on: +// IPart interface (on a connector) on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(3CB4A69D-BB6F-4D2B-95B7-452D2C155DB5), + nonextensible, + helpstring("IKsFormatSupport Interface"), + pointer_default(unique) +] +interface IKsFormatSupport : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Indicates whether the connector supports the supplied format. + // + // Parameters: + // + // pKsFormat - [in] The requested format. + // To check for basic support, pass a pointer to a KSDATAFORMAT. + // For more extensive checking pass a pointer to a derived structure + // such as KSDATAFORMAT_WAVEFORMATEX. + // cbKsFormat - [in] The size of the requested format. + // pbSupported - [out] TRUE if the format is supported, FALSE if not. + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method IsFormatSupported")] + HRESULT IsFormatSupported([in,size_is(cbFormat)] PKSDATAFORMAT pKsFormat, [in, annotation("_In_")] DWORD cbFormat, [out, annotation("_Out_")]BOOL* pbSupported); + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the devices preferred format + // + // Parameters: + // + // ppKsFormat - [out] The address of a pointer that receives a newly allocated KSDATAFORMAT structure. The caller must free the returned buffer using CoTaskMemFree + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetDevicePreferredFormat")] + HRESULT GetDevicePreferredFormat([out] PKSDATAFORMAT* ppKsFormat); +}; + +// ---------------------------------------------------------------------- +// IKsJackDescription +// +// Abstract: +// Provides access to jack description info if supported by hardware +// +// Activatable on: +// IPart interface (bridge pin connector) on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(4509F757-2D46-4637-8E62-CE7DB944F57B), + nonextensible, + helpstring("IKsJackDescription Interface"), + pointer_default(unique) +] +interface IKsJackDescription : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the number of Jacks on this connector. + // + // Parameters: + // + // pcJacks - [out] Number of Jacks on this connector + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetJackCount")] + HRESULT GetJackCount([out, annotation("_Out_")] UINT* pcJacks); + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the description of the specified Jack + // + // Parameters: + // + // nJack - [in] The index of the jack for which to get information. nJack must be less than the count returned from GetJackCount + // pDescription - [out] Pointer to a caller-allocated buffer into which the method writes a structure of type KSJACK_DESCRIPTION that contains information about the jack. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetJackDescription")] + HRESULT GetJackDescription([in] UINT nJack, [out, annotation("_Out_")] KSJACK_DESCRIPTION* pDescription); +}; + +// ---------------------------------------------------------------------- +// IID_IKSJackDescription2 +// +// Abstract: +// Provides access to jack KSJACK_DESCRIPTION2 supported by hardware +// +// Activatable on: +// IPart interface (bridge pin connector) on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(478F3A9B-E0C9-4827-9228-6F5505FFE76A), + nonextensible, + helpstring("IKsJackDescription2 Interface"), + pointer_default(unique) +] +interface IKsJackDescription2 : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the number of Jacks on this connector. + // + // Parameters: + // + // pcJacks - [out] Number of Jacks on this connector + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetJackCount")] + HRESULT GetJackCount([out, annotation("_Out_")] UINT* pcJacks); + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the description of the specified Jack + // + // Parameters: + // + // nJack - [in] The index of the jack for which to get information. + // nJack must be less than the count returned from GetJackCount + // pDescription - [out] Pointer to a caller-allocated buffer into which the method writes + // a structure of type KSJACK_DESCRIPTION2 that contains information about the jack. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetJackDescription2")] + HRESULT GetJackDescription2([in] UINT nJack, [out, annotation("_Out_")] KSJACK_DESCRIPTION2* pDescription2); +}; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_NI) ") +// ---------------------------------------------------------------------- +// IID_IKSJackDescription3 +// +// Abstract: +// Provides access to jack KSJACK_DESCRIPTION3 supported by hardware +// +// Activatable on: +// IPart interface (bridge pin connector) on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(E3F6778B-6660-4CC8-A291-ECC4192D9967), + nonextensible, + helpstring("IKsJackDescription3 Interface"), + pointer_default(unique) +] +interface IKsJackDescription3 : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the number of Jacks on this connector. + // + // Parameters: + // + // pcJacks - [out] Number of Jacks on this connector + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetJackCount")] + HRESULT GetJackCount([out, annotation("_Out_")] UINT* pcJacks); + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the description of the specified Jack + // + // Parameters: + // + // nJack - [in] The index of the jack for which to get information. + // nJack must be less than the count returned from GetJackCount + // pDescription - [out] Pointer to a caller-allocated buffer into which the method writes + // a structure of type KSJACK_DESCRIPTION3 that contains information about the jack. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetJackDescription3")] + HRESULT GetJackDescription3([in] UINT nJack, [out, annotation("_Out_")] KSJACK_DESCRIPTION3* pDescription3); +}; +cpp_quote("#endif // (NTDDI_VERSION >= NTDDI_WIN10_NI) ") + +// ---------------------------------------------------------------------- +// IKsJackSinkInformation +// +// Abstract: +// Provides access to jack sink information if supported by hardware +// +// Activatable on: +// IPart interface (bridge pin connector) on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(D9BD72ED-290F-4581-9FF3-61027A8FE532), + nonextensible, + helpstring("IKsJackSinkInformation Interface"), + pointer_default(unique) +] +interface IKsJackSinkInformation : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the sink information of the specified Jack + // + // Parameters: + // + // pJackSinkInformation - [out] The address of a pointer to memory for receiving sink information + // + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetJackSinkInformation")] + HRESULT GetJackSinkInformation([out, annotation("_Out_")] KSJACK_SINK_INFORMATION* pJackSinkInformation); +}; +// ---------------------------------------------------------------------- +// IKsJackContainerId +// +// Abstract: +// Provides access to jack container ID if supported by hardware +// +// Activatable on: +// IPart interface (bridge pin connector) on an KS Filter devicetopology object +// +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(C99AF463-D629-4EC4-8C00-E54D68154248), + nonextensible, + helpstring("IKsJackContainerId Interface"), + pointer_default(unique) +] +interface IKsJackContainerId : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the container ID of the specified Jack + // + // Parameters: + // + // pJackContainerId - [out] The address of a buffer for receiving the container ID + // + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetJackContainerId")] + HRESULT GetJackContainerId([out, annotation("_Out_")] GUID* pJackContainerId); +}; +// ---------------------------------------------------------------------- +// Non-Activatable interfaces + +[ + local, + uuid(6DAA848C-5EB0-45CC-AEA5-998A2CDA1FFB), + helpstring("IPartsList Interface"), + pointer_default(unique) +] +interface IPartsList : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the number of Parts in this PartsList + // + // Parameters: + // + // pCount - [out] The number of Parts in this PartsList + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetCount")] + HRESULT GetCount([out, annotation("_Out_")] UINT* pCount); + //------------------------------------------------------------------------- + // Description: + // + // Gets a Part at the specified index from the PartsList + // + // Parameters: + // + // nIndex - [in] The index of the Part to retrieve, in the range [0, PartCount - 1] + // ppPart - [out] The part at the specified index. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetPart")] + HRESULT GetPart([in, annotation("_In_")] UINT nIndex, [out, annotation("_Out_")] IPart** ppPart); +}; + +[ + local, + uuid(AE2DE0E4-5BCA-4F2D-AA46-5D13F8FDB3A9), + helpstring("IPart Interface"), + pointer_default(unique) +] +interface IPart : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the name of this Part. + // + // Parameters: + // + // ppwstrName - [out] The name of this Part + // + // Remarks: + // The returned string must be freed by the caller using CoTaskMemFree. + // + // Return values: + // S_OK if successful + // E_NOTFOUND if the part does not have a name + // + [id(1), helpstring("method GetName")] + HRESULT GetName([out,annotation("_Outptr_")] LPWSTR* ppwstrName); + //------------------------------------------------------------------------- + // Description: + // + // Gets the local ID of this Part + // + // Parameters: + // + // pnId - [out] The local ID of this Part. This ID is only valid in the context of the parent DeviceTopology object. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetLocalId")] + HRESULT GetLocalId([out, annotation("_Out_")] UINT* pnId); + //------------------------------------------------------------------------- + // Description: + // + // Gets the global ID of this Part + // + // Parameters: + // + // ppwstrId - [out] The global ID of this Part. This ID is globally unique and can be used to get an interface to a Part on any DeviceTopology object. + // + // Remarks: + // The returned string must be freed by the caller using CoTaskMemFree. + // + // Return values: + // S_OK if successful + // + [id(3), helpstring("method GetGlobalId")] + HRESULT GetGlobalId([out,annotation("_Outptr_")] LPWSTR* ppwstrGlobalId); + //------------------------------------------------------------------------- + // Description: + // + // Gets the type of this Part (Connector or Subunit) + // + // Parameters: + // + // pPartType - [out] The type of this Part (Connector or Subunit) + // + // Return values: + // S_OK if successful + // + [id(4), helpstring("method GetPartType")] + HRESULT GetPartType([out, annotation("_Out_")] PartType* pPartType); + + //------------------------------------------------------------------------- + // Description: + // + // Gets the SubType of this Connector + // + // Parameters: + // + // pSubType - [out] The SubType of this part + // + // Return values: + // S_OK if successful + // + [id(5), helpstring("method GetSubType")] + HRESULT GetSubType([out] GUID* pSubType); + + //------------------------------------------------------------------------- + // Description: + // + // Gets the number of ControlInterfaces on this Part + // + // Parameters: + // + // pCount - [out] The number of ControlInterfaces on this Part + // + // Return values: + // S_OK if successful + // + [id(6), helpstring("method GetControlInterfaceCount")] + HRESULT GetControlInterfaceCount([out, annotation("_Out_")] UINT* pCount); + + //------------------------------------------------------------------------- + // Description: + // + // Gets a ControlInterface at the specified index on this Part + // + // Parameters: + // + // nIndex - [in] The index of the ControlInterface to retrieve, in the range [0, ControlInterfaceCount - 1] + // ppInterfaceDesc - [out] The ControlInterface at the specified index. + // + // Return values: + // S_OK if successful + // + [id(7), helpstring("method GetControlInterface")] + HRESULT GetControlInterface([in, annotation("_In_")] UINT nIndex, [out, annotation("_Out_")] IControlInterface** ppInterfaceDesc); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves a list of Parts that are linked to this Part "upstream" in the Topology graph. + // + // Parameters: + // + // ppParts - [out] Pointer to a buffer that receives a pointer to a PartsList containing all upstream Parts linked to this Part + // + // Return values: + // S_OK if successful + // E_NOTFOUND if there are no incoming parts + // + [id(8), helpstring("method EnumPartsIncoming")] + HRESULT EnumPartsIncoming([out, annotation("_Out_")] IPartsList** ppParts); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves a list of Parts that are linked to this Part "downstream" in the Topology graph. + // + // Parameters: + // + // ppParts - [out] Pointer to a buffer that receives a pointer to a PartsList containing all downstream Parts linked to this Part + // + // Return values: + // S_OK if successful + // E_NOTFOUND if there are no outgoing parts + // + [id(9), helpstring("method EnumPartsOutgoing")] + HRESULT EnumPartsOutgoing([out, annotation("_Out_")] IPartsList** ppParts); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves a pointer to the parent DeviceTopology object + // + // Parameters: + // + // ppTopology - [out] Pointer to a buffer that receives a pointer to the parent DeviceTopology object + // + // Return values: + // S_OK if successful + // + [id(10), helpstring("method GetTopologyObject")] + HRESULT GetTopologyObject([out, annotation("_Out_")]IDeviceTopology** ppTopology); + + //------------------------------------------------------------------------- + // Description: + // + // Activates an interface of the specified IID on this Part + // + // Parameters: + // + // pSink - [in] A pointer to an callback interface. When the state of the Control Interface changes, this interface will be called. This parameter may be NULL. + // dwClsContext - [in] Values taken from the CLSCTX enumeration + // refiid - [in] Identifier of the interface desired + // ppvObject - [out] Pointer to a buffer that receives a pointer to the activated interface object. + // + // Return values: + // S_OK if successful + // + [id(11), helpstring("method Activate")] + + HRESULT Activate([in, annotation("_In_")] DWORD dwClsContext, [in, annotation("_In_")] REFIID refiid, [out,iid_is(refiid), annotation("_Out_opt_")] void** ppvObject); + + //------------------------------------------------------------------------- + // Description: + // + // Registers the supplied client to be notified when a value on the specified control interface + // is set. + // + // Parameters: + // + // riid - [in] The interface to be notified about + // pNotify - [in] The interface to be called when the specified interface values change + // + // Return values: + // S_OK if successful + // + [id(12), helpstring("method RegisterControlChangeCallback")] + + HRESULT RegisterControlChangeCallback([in, annotation("_In_")] REFGUID riid, [in, annotation("_In_")] IControlChangeNotify* pNotify); + + //------------------------------------------------------------------------- + // Description: + // + // Unregisters a notification client on this part + // + // Parameters: + // + // pNotify - [in] The interface to unregister. This interface must have been registered previously in a call to IPart::RegisterControlChangeCallback + // + // Return values: + // S_OK if successful + // + [id(13), helpstring("method UnregisterControlChangeCallback")] + + HRESULT UnregisterControlChangeCallback([in, annotation("_In_")] IControlChangeNotify* pNotify); +}; + +// ---------------------------------------------------------------------- +[ + local, + uuid(9c2c4058-23f5-41de-877a-df3af236a09e), + helpstring("IConnector Interface"), + pointer_default(unique) +] +interface IConnector : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the ConnectorType of this Connector + // + // Parameters: + // + // pType - [out] The ConnectorType of this Connector + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetType")] + HRESULT GetType([out, annotation("_Out_")] ConnectorType* pType); + //------------------------------------------------------------------------- + // Description: + // + // Gets the DataFlow direction of this Connector + // + // Parameters: + // + // pFlow - [out] The DataFlow direction of this Connector. This direction is relative to the DeviceTopology object + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetDataFlow")] + HRESULT GetDataFlow([out, annotation("_Out_")] DataFlow* pFlow); + //------------------------------------------------------------------------- + // Description: + // + // Connects this Connector to a Connector on another DeviceTopology object + // + // Parameters: + // + // pConnectTo - [in] The Connector to connect to. This method establishes a bi-directional connection, that is it is not necessary to call ConnectTo on both Connectors involved. + // + // Return values: + // S_OK if successful + // + [id(3), helpstring("method ConnectTo")] + HRESULT ConnectTo([in, annotation("_In_")] IConnector* pConnectTo); + //------------------------------------------------------------------------- + // Description: + // + // Disconnects this Connector for any Connectors to which it is connected. This method only works + // if the connection is Read/Write, ie. was established using IConnector::ConnectTo() + // + // Parameters: + // + // none + // + // Remarks: + // It is not necessary to call Disconnect on the Connector to which this Connector is connected + // + // Return values: + // S_OK if successful + // + // Remarks: + // Please note: This function is a "finalizer". As such, this + // function has no valid failure modes. + // + + [id(4), helpstring("method Disconnect")] + HRESULT Disconnect(); + //------------------------------------------------------------------------- + // Description: + // + // Indicates if this Connector is involved in a Connection + // + // Parameters: + // + // pbConnected - [out] TRUE if this Connector is connected. + // + // Return values: + // S_OK if successful + // + [id(5), helpstring("method IsConnected")] + HRESULT IsConnected([out, annotation("_Out_")] BOOL* pbConnected); + //------------------------------------------------------------------------- + // Description: + // + // Retrieves a pointer to the Connector (if any) that this Connector is connected to + // + // Parameters: + // + // ppConTo - [out] A pointer to a buffer that receives a pointer to the Connector to which this Connector is connected, or NULL if a connection does not exist + // + // Return values: + // S_OK if successful + // + [id(6), helpstring("method GetConnectedTo")] + HRESULT GetConnectedTo([out, annotation("_Out_")] IConnector** ppConTo); + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the global ID of the Connector (if any) that this Connector is connected to + // + // Parameters: + // + // ppwstrConnectorId - [out] The global ID of the Connector (if any) that this Connector is connected to + // + // Remarks: + // The returned string must be freed by the caller using CoTaskMemFree. + // + // Return values: + // S_OK if successful + // + [id(7), helpstring("method GetConnectorIdConnectedTo")] + HRESULT GetConnectorIdConnectedTo([out,annotation("_Outptr_")] LPWSTR* ppwstrConnectorId); + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the global ID of the Device (if any) that this Connector is connected to. It is functionally + // equivalent to calling GetConnectedTo to get a connected IConnector, IPart::GetTopologyObject with that connector + // to get an IDeviceTopology object, and then calling IDeviceTopology::GetDeviceId on that topology object. This + // method is generally far more efficient, though, as it doesn't actually load the device or activate IDeviceTopology + // on it. + // + // Parameters: + // + // ppwstrDeviceId - [out] The global ID of the Connector (if any) that this Connector is connected to + // + // Remarks: + // The returned string must be freed by the caller using CoTaskMemFree. + // + // Return values: + // S_OK if successful + // + [id(8), helpstring("method GetDeviceIdConnectedTo")] + HRESULT GetDeviceIdConnectedTo([out,annotation("_Outptr_")] LPWSTR* ppwstrDeviceId); +}; + +// ---------------------------------------------------------------------- +[ + local, + uuid(82149A85-DBA6-4487-86BB-EA8F7FEFCC71), + helpstring("ISubunit Interface"), + pointer_default(unique) +] +interface ISubunit : IUnknown +{ +}; + +// +[ + local, + uuid(45d37c3f-5140-444a-ae24-400789f3cbf3), + helpstring("IControlInterface Interface"), + pointer_default(unique) +] +interface IControlInterface : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the name of this ControlInterface + // + // Parameters: + // + // ppwstrName - [out] The name of this ControlInterface + // + // Remarks: + // The returned string must be freed by the caller using CoTaskMemFree. + // + // Return values: + // S_OK if successful + // E_NOTFOUND if the control interface does not have a name + // + [id(1), helpstring("method GetName")] + HRESULT GetName([out,annotation("_Outptr_")] LPWSTR* ppwstrName); + //------------------------------------------------------------------------- + // Description: + // + // Gets the interface identifier of this ControlInterface + // + // Parameters: + // + // pIID - [out] The interface identifier of this ControlInterface + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetIID")] + HRESULT GetIID([out, annotation("_Out_")] GUID* pIID); +}; + +// ---------------------------------------------------------------------- + +// A deviceTopology client can implement IControlChangeNotify and pass +// this interface in a call to IPart::Activate. +// DeviceTopology will call the clients IControlChangeNotify::OnNotify +// method when the state of the activated control changes. +[ + object, + local, + uuid(A09513ED-C709-4d21-BD7B-5F34C47F3947), + nonextensible, + helpstring("IControlChangeNotify Interface"), + pointer_default(unique) +] +interface IControlChangeNotify : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Called when a property is changed on a Part + // + // Parameters: + // + // dwSenderProcessID - [in] The ID of the process that originated the notification. + // A value of 0 indicates that the notification originated in + // hardware. + // pguidEventContext - [in] User supplied data. This value is sent to clients that register for notifications through + // IControlChangeNotify. + // + // Return values: + // S_OK if successful + // + // Remarks: + // Please note: The caller of this function ignores all return + // codes from the OnNotify method. + // + [id(1), helpstring("method Notify")] + HRESULT OnNotify([in, annotation("_In_")] DWORD dwSenderProcessId, [in, unique, annotation("_In_opt_")] LPCGUID pguidEventContext); +}; + +// ---------------------------------------------------------------------- +[ + object, + local, + uuid(2A07407E-6497-4A18-9787-32F79BD0D98F), + nonextensible, + helpstring("IDeviceTopology Interface"), + pointer_default(unique) +] +interface IDeviceTopology : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the number of Connectors in this Topology object + // + // Parameters: + // + // pCount - [out] The number of Connectors in this Topology object + // + // Return values: + // S_OK if successful + // + [id(1), helpstring("method GetConnectorCount")] + HRESULT GetConnectorCount([out, annotation("_Out_")] UINT* pCount); + //------------------------------------------------------------------------- + // Description: + // + // Gets a Connector at the specified index + // + // Parameters: + // + // nIndex - [in] The index of the Connector to retrieve, in the range [0, ConnectorCount - 1] + // ppPart - [out] The Connector at the specified index. + // + // Return values: + // S_OK if successful + // + [id(2), helpstring("method GetConnector")] + HRESULT GetConnector([in, annotation("_In_")] UINT nIndex, [out, annotation("_Out_")] IConnector** ppConnector); + //------------------------------------------------------------------------- + // Description: + // + // Gets the number of Subunits in this Topology object + // + // Parameters: + // + // pCount - [out] The number of Subunits in this Topology object + // + // Return values: + // S_OK if successful + // + [id(3), helpstring("method GetSubunitCount")] + HRESULT GetSubunitCount([out, annotation("_Out_")] UINT* pCount); + //------------------------------------------------------------------------- + // Description: + // + // Gets a Subunit at the specified index + // + // Parameters: + // + // nIndex - [in] The index of the Subunit to retrieve, in the range [0, SubunitCount - 1] + // ppPart - [out] The Subunit at the specified index. + // + // Return values: + // S_OK if successful + // + [id(4), helpstring("method GetSubunit")] + HRESULT GetSubunit([in, annotation("_In_")] UINT nIndex, [out, annotation("_Outptr_")] ISubunit** ppSubunit); + //------------------------------------------------------------------------- + // Description: + // + // Gets the Part with the specified local ID + // + // Parameters: + // + // nId - [in] The local ID of the desired Part + // ppPart - [out] A pointer to a buffer that receives a pointer to the desired Part + // + // Return values: + // S_OK if successful. E_NOTFOUND if no Part exists with the specified ID. + // + [id(5), helpstring("method GetPartById")] + HRESULT GetPartById([in, annotation("_In_")] UINT nId, [out, annotation("_Outptr_")] IPart** ppPart); + //------------------------------------------------------------------------- + // Description: + // + // Gets the ID of the IMMDevice interface on which this DeviceTopology object was activated + // + // Parameters: + // + // ppDeviceId - [out] The FunctionInstance ID on which this DeviceTopology object was activated + // + // Remarks: + // The returned string must be freed by the caller using CoTaskMemFree. + // + // Return values: + // S_OK if successful + // + [id(6), helpstring("method GetDeviceId")] + HRESULT GetDeviceId([out,annotation("_Outptr_")] LPWSTR* ppwstrDeviceId); + //------------------------------------------------------------------------- + // Description: + // + // Gets a path between two specified Parts if a path exists + // + // Parameters: + // + // pIPartFrom - [in] The upstream Part + // pIPartTo - [in] The downstream Part + // ppParts - [out] A pointer to a buffer that receives a pointer to a PartsList containing a path from pIPartFrom to pIPartTo + // + // Remarks: + // The returned list is sorted in reverse order, i.e. the first Part in the list is pIPartsTo and the last Part is pIPartFrom. + // + // Return values: + // S_OK if successful. E_NOTFOUND if no path exists. + // + [id(7), helpstring("method GetSignalPath")] + HRESULT GetSignalPath([in, annotation("_In_")] IPart* pIPartFrom, [in, annotation("_In_")] IPart* pIPartTo, [in, annotation("_In_")] BOOL bRejectMixedPaths, [out, annotation("_Outptr_")] IPartsList** ppParts); +}; + + +// ---------------------------------------------------------------------- +// Type Library +[ + uuid(51B9A01D-8181-4363-B59C-E678F476DD0E), + version(1.0), + helpstring("Microsoft DeviceTopology 1.0 Type Library") +] +library DevTopologyLib +{ + importlib("stdole2.tlb"); + [ + uuid(1DF639D0-5EC1-47AA-9379-828DC1AA8C59), + helpstring("DeviceTopology Class") + ] + coclass DeviceTopology + { + interface IDeviceTopology; + }; + + interface IPartsList; + + // device control interfaces + interface IAudioVolumeLevel; + interface IAudioLoudness; + interface IAudioSpeakerMap; + interface IAudioInputSelector; + interface IAudioMute; + interface IAudioBass; + interface IAudioMidrange; + interface IAudioTreble; + interface IAudioAutoGainControl; + interface IAudioOutputSelector; + interface IAudioPeakMeter; + interface IDeviceSpecificProperty; + interface IKsFormatSupport; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/devquery.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devquery.h new file mode 100644 index 0000000000000000000000000000000000000000..fccea792808ae95c3a06e04c938cc2e14be2ad5f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devquery.h @@ -0,0 +1,215 @@ + +/*++ + +Copyright (c) Microsoft Corporation + +Abstract: + + This module contains the Device Object API definitions + that are used by client applications. + +*/ + +#ifndef _DEVQUERY_H_ +#define _DEVQUERY_H_ + +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#include + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +#if defined(__cplusplus) +extern "C" { +#endif // defined(__cplusplus) + +DECLARE_HANDLE(HDEVQUERY); +typedef HDEVQUERY *PHDEVQUERY; + +typedef VOID (WINAPI *PDEV_QUERY_RESULT_CALLBACK)( + _In_ HDEVQUERY hDevQuery, + _In_opt_ PVOID pContext, + _In_ const DEV_QUERY_RESULT_ACTION_DATA *pActionData +); + +_Check_return_ HRESULT WINAPI +DevCreateObjectQuery( + _In_ DEV_OBJECT_TYPE ObjectType, + _In_ ULONG QueryFlags, + _In_ ULONG cRequestedProperties, + _In_reads_opt_(cRequestedProperties) const DEVPROPCOMPKEY *pRequestedProperties, + _In_ ULONG cFilterExpressionCount, + _In_reads_opt_(cFilterExpressionCount) const DEVPROP_FILTER_EXPRESSION *pFilter, + _In_ PDEV_QUERY_RESULT_CALLBACK pCallback, + _In_opt_ PVOID pContext, + _Out_ PHDEVQUERY phDevQuery); + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + +_Check_return_ HRESULT WINAPI +DevCreateObjectQueryEx( + _In_ DEV_OBJECT_TYPE ObjectType, + _In_ ULONG QueryFlags, + _In_ ULONG cRequestedProperties, + _In_reads_opt_(cRequestedProperties) const DEVPROPCOMPKEY *pRequestedProperties, + _In_ ULONG cFilterExpressionCount, + _In_reads_opt_(cFilterExpressionCount) const DEVPROP_FILTER_EXPRESSION *pFilter, + _In_ ULONG cExtendedParameterCount, + _In_reads_opt_(cExtendedParameterCount) const DEV_QUERY_PARAMETER *pExtendedParameters, + _In_ PDEV_QUERY_RESULT_CALLBACK pCallback, + _In_opt_ PVOID pContext, + _Out_ PHDEVQUERY phDevQuery); + +#endif + +_Check_return_ HRESULT WINAPI +DevCreateObjectQueryFromId( + _In_ DEV_OBJECT_TYPE ObjectType, + _In_ PCWSTR pszObjectId, + _In_ ULONG QueryFlags, + _In_ ULONG cRequestedProperties, + _In_reads_opt_(cRequestedProperties) const DEVPROPCOMPKEY *pRequestedProperties, + _In_ ULONG cFilterExpressionCount, + _In_reads_opt_(cFilterExpressionCount) const DEVPROP_FILTER_EXPRESSION *pFilter, + _In_ PDEV_QUERY_RESULT_CALLBACK pCallback, + _In_opt_ PVOID pContext, + _Out_ PHDEVQUERY phDevQuery); + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + +_Check_return_ HRESULT WINAPI +DevCreateObjectQueryFromIdEx( + _In_ DEV_OBJECT_TYPE ObjectType, + _In_ PCWSTR pszObjectId, + _In_ ULONG QueryFlags, + _In_ ULONG cRequestedProperties, + _In_reads_opt_(cRequestedProperties) const DEVPROPCOMPKEY *pRequestedProperties, + _In_ ULONG cFilterExpressionCount, + _In_reads_opt_(cFilterExpressionCount) const DEVPROP_FILTER_EXPRESSION *pFilter, + _In_ ULONG cExtendedParameterCount, + _In_reads_opt_(cExtendedParameterCount) const DEV_QUERY_PARAMETER *pExtendedParameters, + _In_ PDEV_QUERY_RESULT_CALLBACK pCallback, + _In_opt_ PVOID pContext, + _Out_ PHDEVQUERY phDevQuery); + +#endif + +_Check_return_ HRESULT WINAPI +DevCreateObjectQueryFromIds( + _In_ DEV_OBJECT_TYPE ObjectType, + _In_ PCZZWSTR pszzObjectIds, + _In_ ULONG QueryFlags, + _In_ ULONG cRequestedProperties, + _In_reads_opt_(cRequestedProperties) const DEVPROPCOMPKEY *pRequestedProperties, + _In_ ULONG cFilterExpressionCount, + _In_reads_opt_(cFilterExpressionCount) const DEVPROP_FILTER_EXPRESSION *pFilter, + _In_ PDEV_QUERY_RESULT_CALLBACK pCallback, + _In_opt_ PVOID pContext, + _Out_ PHDEVQUERY phDevQuery); + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + +_Check_return_ HRESULT WINAPI +DevCreateObjectQueryFromIdsEx( + _In_ DEV_OBJECT_TYPE ObjectType, + _In_ PCZZWSTR pszzObjectIds, + _In_ ULONG QueryFlags, + _In_ ULONG cRequestedProperties, + _In_reads_opt_(cRequestedProperties) const DEVPROPCOMPKEY *pRequestedProperties, + _In_ ULONG cFilterExpressionCount, + _In_reads_opt_(cFilterExpressionCount) const DEVPROP_FILTER_EXPRESSION *pFilter, + _In_ ULONG cExtendedParameterCount, + _In_reads_opt_(cExtendedParameterCount) const DEV_QUERY_PARAMETER *pExtendedParameters, + _In_ PDEV_QUERY_RESULT_CALLBACK pCallback, + _In_opt_ PVOID pContext, + _Out_ PHDEVQUERY phDevQuery); + +#endif + +VOID WINAPI +DevCloseObjectQuery( + _In_ HDEVQUERY hDevQuery); + +_Check_return_ HRESULT WINAPI +DevGetObjects( + _In_ DEV_OBJECT_TYPE ObjectType, + _In_ ULONG QueryFlags, + _In_ ULONG cRequestedProperties, + _In_reads_opt_(cRequestedProperties) const DEVPROPCOMPKEY *pRequestedProperties, + _In_ ULONG cFilterExpressionCount, + _In_reads_opt_(cFilterExpressionCount) const DEVPROP_FILTER_EXPRESSION *pFilter, + _Out_ PULONG pcObjectCount, + _Outptr_result_buffer_maybenull_(*pcObjectCount) const DEV_OBJECT **ppObjects); + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + +_Check_return_ HRESULT WINAPI +DevGetObjectsEx( + _In_ DEV_OBJECT_TYPE ObjectType, + _In_ ULONG QueryFlags, + _In_ ULONG cRequestedProperties, + _In_reads_opt_(cRequestedProperties) const DEVPROPCOMPKEY *pRequestedProperties, + _In_ ULONG cFilterExpressionCount, + _In_reads_opt_(cFilterExpressionCount) const DEVPROP_FILTER_EXPRESSION *pFilter, + _In_ ULONG cExtendedParameterCount, + _In_reads_opt_(cExtendedParameterCount) const DEV_QUERY_PARAMETER *pExtendedParameters, + _Out_ PULONG pcObjectCount, + _Outptr_result_buffer_maybenull_(*pcObjectCount) const DEV_OBJECT **ppObjects); + +#endif + +VOID WINAPI +DevFreeObjects( + _In_ ULONG cObjectCount, + _In_reads_(cObjectCount) const DEV_OBJECT *pObjects); + +_Check_return_ HRESULT WINAPI +DevGetObjectProperties( + _In_ DEV_OBJECT_TYPE ObjectType, + _In_ PCWSTR pszObjectId, + _In_ ULONG QueryFlags, + _In_ ULONG cRequestedProperties, + _In_reads_(cRequestedProperties) const DEVPROPCOMPKEY *pRequestedProperties, + _Out_ PULONG pcPropertyCount, + _Outptr_result_buffer_(*pcPropertyCount) const DEVPROPERTY **ppProperties); + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + +_Check_return_ HRESULT WINAPI +DevGetObjectPropertiesEx( + _In_ DEV_OBJECT_TYPE ObjectType, + _In_ PCWSTR pszObjectId, + _In_ ULONG QueryFlags, + _In_ ULONG cRequestedProperties, + _In_reads_(cRequestedProperties) const DEVPROPCOMPKEY *pRequestedProperties, + _In_ ULONG cExtendedParameterCount, + _In_reads_opt_(cExtendedParameterCount) const DEV_QUERY_PARAMETER *pExtendedParameters, + _Out_ PULONG pcPropertyCount, + _Outptr_result_buffer_(*pcPropertyCount) const DEVPROPERTY **ppProperties); + +#endif + +VOID WINAPI +DevFreeObjectProperties( + _In_ ULONG cPropertyCount, + _In_reads_(cPropertyCount) const DEVPROPERTY *pProperties); + +_Check_return_ const DEVPROPERTY* WINAPI +DevFindProperty( + _In_ const DEVPROPKEY *pKey, + _In_ DEVPROPSTORE Store, + _In_ PCWSTR pszLocaleName, + _In_ ULONG cProperties, + _In_reads_opt_(cProperties) const DEVPROPERTY *pProperties); + +#if defined(__cplusplus) +} +#endif // defined(__cplusplus) + +#endif // NTDDI_VERSION +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#endif // _DEVQUERY_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/devquerydef.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devquerydef.h new file mode 100644 index 0000000000000000000000000000000000000000..e4e74299a8f8859539460a53bfb94bd55282d447 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/devquerydef.h @@ -0,0 +1,141 @@ +/*++ + +Copyright (c) Microsoft Corporation + +Abstract: + + This module contains the Device Object API shared definitions. + +*/ + +#pragma once + +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#include + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +#if defined(__cplusplus) +extern "C" { +#endif // defined(__cplusplus) + +typedef +#ifdef MIDL_PASS +[v1_enum] +#endif +enum +_DEV_OBJECT_TYPE +{ + DevObjectTypeUnknown, + DevObjectTypeDeviceInterface, + DevObjectTypeDeviceContainer, + DevObjectTypeDevice, + DevObjectTypeDeviceInterfaceClass, + DevObjectTypeAEP, + DevObjectTypeAEPContainer, + DevObjectTypeDeviceInstallerClass, + DevObjectTypeDeviceInterfaceDisplay, + DevObjectTypeDeviceContainerDisplay, + DevObjectTypeAEPService, + DevObjectTypeDevicePanel, + DevObjectTypeAEPProtocol, +} DEV_OBJECT_TYPE, *PDEV_OBJECT_TYPE; + +typedef +#ifdef MIDL_PASS +[v1_enum] +#endif +enum _DEV_QUERY_FLAGS +{ + DevQueryFlagNone = 0x0, + DevQueryFlagUpdateResults = 0x1, + DevQueryFlagAllProperties = 0x2, + DevQueryFlagLocalize = 0x4, + DevQueryFlagAsyncClose = 0x8 +} DEV_QUERY_FLAGS, *PDEV_QUERY_FLAGS; + +typedef +#ifdef MIDL_PASS +[v1_enum] +#endif +enum _DEV_QUERY_STATE +{ + DevQueryStateInitialized, + DevQueryStateEnumCompleted, + DevQueryStateAborted, + DevQueryStateClosed +} DEV_QUERY_STATE, *PDEV_QUERY_STATE; + +typedef +#ifdef MIDL_PASS +[v1_enum] +#endif +enum _DEV_QUERY_RESULT_ACTION +{ + DevQueryResultStateChange, + DevQueryResultAdd, + DevQueryResultUpdate, + DevQueryResultRemove +} DEV_QUERY_RESULT_ACTION, *PDEV_QUERY_RESULT_ACTION; + +typedef struct _DEV_OBJECT +{ + DEV_OBJECT_TYPE ObjectType; + __in PCWSTR pszObjectId; +#ifdef MIDL_PASS + [range(0, 10000)] +#endif + __in ULONG cPropertyCount; +#ifdef MIDL_PASS + [size_is(cPropertyCount)] +#endif + __field_ecount_opt(cPropertyCount) const DEVPROPERTY *pProperties; +} DEV_OBJECT, *PDEV_OBJECT; + +typedef struct _DEV_QUERY_RESULT_ACTION_DATA +{ + DEV_QUERY_RESULT_ACTION Action; + +#ifdef MIDL_PASS + [switch_is(Action)] + [switch_type(DEV_QUERY_RESULT_ACTION)] +#endif + union _DEV_QUERY_RESULT_UPDATE_PAYLOAD + { +#ifdef MIDL_PASS + [case (DevQueryResultStateChange)] +#endif + DEV_QUERY_STATE State; +#ifdef MIDL_PASS + [case (DevQueryResultAdd, DevQueryResultUpdate, DevQueryResultRemove)] +#endif + DEV_OBJECT DeviceObject; + } Data; +} DEV_QUERY_RESULT_ACTION_DATA, *PDEV_QUERY_RESULT_ACTION_DATA; + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + +typedef struct _DEV_QUERY_PARAMETER { + DEVPROPKEY Key; + DEVPROPTYPE Type; + ULONG BufferSize; +#ifdef MIDL_PASS + [size_is(BufferSize)] PBYTE Buffer; +#else + __field_bcount_opt(BufferSize) PVOID Buffer; +#endif +} DEV_QUERY_PARAMETER, *PDEV_QUERY_PARAMETER; + +#endif + +#if defined(__cplusplus) +} +#endif // defined(__cplusplus) + +#endif // NTDDI_VERSION + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dhcpsapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dhcpsapi.h new file mode 100644 index 0000000000000000000000000000000000000000..5259993040d2c8afbc0cd36ce31b478c618b884c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dhcpsapi.h @@ -0,0 +1,3651 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: dhcpsapi.h + + +--*/ + + +#ifndef _DHCPSAPI_ +#define _DHCPSAPI_ + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#if defined(MIDL_PASS) +#define LPWSTR [string] wchar_t * +#endif + + +#if (_MSC_VER >= 800) +#define DHCP_API_FUNCTION __stdcall +#else +#define DHCP_API_FUNCTION +#endif + + +#ifdef __cplusplus +#define DHCP_CONST const +extern "C" { +#else +#define DHCP_CONST +#endif // __cplusplus + + +#ifndef _DHCP_ + +typedef DWORD DHCP_IP_ADDRESS, *PDHCP_IP_ADDRESS, *LPDHCP_IP_ADDRESS; +typedef DWORD DHCP_OPTION_ID; + +typedef struct _DATE_TIME { + DWORD dwLowDateTime; + DWORD dwHighDateTime; +} DATE_TIME,*PDATE_TIME, *LPDATE_TIME; + + +#endif // _DHCP_ + +#define ERROR_DHCP_REGISTRY_INIT_FAILED 0x00004E20L +#define ERROR_DHCP_DATABASE_INIT_FAILED 0x00004E21L +#define ERROR_DHCP_RPC_INIT_FAILED 0x00004E22L +#define ERROR_DHCP_NETWORK_INIT_FAILED 0x00004E23L +#define ERROR_DHCP_SUBNET_EXITS 0x00004E24L +#define ERROR_DHCP_SUBNET_NOT_PRESENT 0x00004E25L +#define ERROR_DHCP_PRIMARY_NOT_FOUND 0x00004E26L +#define ERROR_DHCP_ELEMENT_CANT_REMOVE 0x00004E27L +#define ERROR_DHCP_OPTION_EXITS 0x00004E29L +#define ERROR_DHCP_OPTION_NOT_PRESENT 0x00004E2AL +#define ERROR_DHCP_ADDRESS_NOT_AVAILABLE 0x00004E2BL +#define ERROR_DHCP_RANGE_FULL 0x00004E2CL +#define ERROR_DHCP_JET_ERROR 0x00004E2DL +#define ERROR_DHCP_CLIENT_EXISTS 0x00004E2EL +#define ERROR_DHCP_INVALID_DHCP_MESSAGE 0x00004E2FL +#define ERROR_DHCP_INVALID_DHCP_CLIENT 0x00004E30L +#define ERROR_DHCP_SERVICE_PAUSED 0x00004E31L +#define ERROR_DHCP_NOT_RESERVED_CLIENT 0x00004E32L +#define ERROR_DHCP_RESERVED_CLIENT 0x00004E33L +#define ERROR_DHCP_RANGE_TOO_SMALL 0x00004E34L +#define ERROR_DHCP_IPRANGE_EXITS 0x00004E35L +#define ERROR_DHCP_RESERVEDIP_EXITS 0x00004E36L +#define ERROR_DHCP_INVALID_RANGE 0x00004E37L +#define ERROR_DHCP_RANGE_EXTENDED 0x00004E38L +#define ERROR_EXTEND_TOO_SMALL 0x00004E39L +#define WARNING_EXTENDED_LESS 0x00004E3AL +#define ERROR_DHCP_JET_CONV_REQUIRED 0x00004E3BL +#define ERROR_SERVER_INVALID_BOOT_FILE_TABLE 0x00004E3CL +#define ERROR_SERVER_UNKNOWN_BOOT_FILE_NAME 0x00004E3DL +#define ERROR_DHCP_SUPER_SCOPE_NAME_TOO_LONG 0x00004E3EL +#define ERROR_DHCP_IP_ADDRESS_IN_USE 0x00004E40L +#define ERROR_DHCP_LOG_FILE_PATH_TOO_LONG 0x00004E41L +#define ERROR_DHCP_UNSUPPORTED_CLIENT 0x00004E42L +#define ERROR_DHCP_JET97_CONV_REQUIRED 0x00004E44L +#define ERROR_DHCP_ROGUE_INIT_FAILED 0x00004E45L +#define ERROR_DHCP_ROGUE_SAMSHUTDOWN 0x00004E46L +#define ERROR_DHCP_ROGUE_NOT_AUTHORIZED 0x00004E47L +#define ERROR_DHCP_ROGUE_DS_UNREACHABLE 0x00004E48L +#define ERROR_DHCP_ROGUE_DS_CONFLICT 0x00004E49L +#define ERROR_DHCP_ROGUE_NOT_OUR_ENTERPRISE 0x00004E4AL +#define ERROR_DHCP_ROGUE_STANDALONE_IN_DS 0x00004E4BL +#define ERROR_DHCP_CLASS_NOT_FOUND 0x00004E4CL +#define ERROR_DHCP_CLASS_ALREADY_EXISTS 0x00004E4DL +#define ERROR_DHCP_SCOPE_NAME_TOO_LONG 0x00004E4EL +#define ERROR_DHCP_DEFAULT_SCOPE_EXITS 0x00004E4FL +#define ERROR_DHCP_CANT_CHANGE_ATTRIBUTE 0x00004E50L +#define ERROR_DHCP_IPRANGE_CONV_ILLEGAL 0x00004E51L +#define ERROR_DHCP_NETWORK_CHANGED 0x00004E52L +#define ERROR_DHCP_CANNOT_MODIFY_BINDINGS 0x00004E53L +#define ERROR_DHCP_SUBNET_EXISTS 0x00004E54L +#define ERROR_DHCP_MSCOPE_EXISTS 0x00004E55L +#define ERROR_MSCOPE_RANGE_TOO_SMALL 0x00004E56L +#define ERROR_DHCP_EXEMPTION_EXISTS 0x00004E57L +#define ERROR_DHCP_EXEMPTION_NOT_PRESENT 0x00004E58L +#define ERROR_DHCP_INVALID_PARAMETER_OPTION32 0x00004E59L +#define ERROR_DDS_NO_DS_AVAILABLE 0x00004E66L +#define ERROR_DDS_NO_DHCP_ROOT 0x00004E67L +#define ERROR_DDS_UNEXPECTED_ERROR 0x00004E68L +#define ERROR_DDS_TOO_MANY_ERRORS 0x00004E69L +#define ERROR_DDS_DHCP_SERVER_NOT_FOUND 0x00004E6AL +#define ERROR_DDS_OPTION_ALREADY_EXISTS 0x00004E6BL +#define ERROR_DDS_OPTION_DOES_NOT_EXIST 0x00004E6CL +#define ERROR_DDS_CLASS_EXISTS 0x00004E6DL +#define ERROR_DDS_CLASS_DOES_NOT_EXIST 0x00004E6EL +#define ERROR_DDS_SERVER_ALREADY_EXISTS 0x00004E6FL +#define ERROR_DDS_SERVER_DOES_NOT_EXIST 0x00004E70L +#define ERROR_DDS_SERVER_ADDRESS_MISMATCH 0x00004E71L +#define ERROR_DDS_SUBNET_EXISTS 0x00004E72L +#define ERROR_DDS_SUBNET_HAS_DIFF_SSCOPE 0x00004E73L +#define ERROR_DDS_SUBNET_NOT_PRESENT 0x00004E74L +#define ERROR_DDS_RESERVATION_NOT_PRESENT 0x00004E75L +#define ERROR_DDS_RESERVATION_CONFLICT 0x00004E76L +#define ERROR_DDS_POSSIBLE_RANGE_CONFLICT 0x00004E77L +#define ERROR_DDS_RANGE_DOES_NOT_EXIST 0x00004E78L +#define ERROR_DHCP_DELETE_BUILTIN_CLASS 0x00004E79L +#define ERROR_DHCP_INVALID_SUBNET_PREFIX 0x00004E7BL +#define ERROR_DHCP_INVALID_DELAY 0x00004E7CL +#define ERROR_DHCP_LINKLAYER_ADDRESS_EXISTS 0x00004E7DL +#define ERROR_DHCP_LINKLAYER_ADDRESS_RESERVATION_EXISTS 0x00004E7EL +#define ERROR_DHCP_LINKLAYER_ADDRESS_DOES_NOT_EXIST 0x00004E7FL +#define ERROR_DHCP_HARDWARE_ADDRESS_TYPE_ALREADY_EXEMPT 0x00004E85L +#define ERROR_DHCP_UNDEFINED_HARDWARE_ADDRESS_TYPE 0x00004E86L +#define ERROR_DHCP_OPTION_TYPE_MISMATCH 0x00004E87L +#define ERROR_DHCP_POLICY_BAD_PARENT_EXPR 0x00004E88L +#define ERROR_DHCP_POLICY_EXISTS 0x00004E89L +#define ERROR_DHCP_POLICY_RANGE_EXISTS 0x00004E8AL +#define ERROR_DHCP_POLICY_RANGE_BAD 0x00004E8BL +#define ERROR_DHCP_RANGE_INVALID_IN_SERVER_POLICY 0x00004E8CL +#define ERROR_DHCP_INVALID_POLICY_EXPRESSION 0x00004E8DL +#define ERROR_DHCP_INVALID_PROCESSING_ORDER 0x00004E8EL +#define ERROR_DHCP_POLICY_NOT_FOUND 0x00004E8FL +#define ERROR_SCOPE_RANGE_POLICY_RANGE_CONFLICT 0x00004E90L + +// DHCP failover error codes +#define ERROR_DHCP_FO_SCOPE_ALREADY_IN_RELATIONSHIP 0x00004E91L +#define ERROR_DHCP_FO_RELATIONSHIP_EXISTS 0x00004E92L + +#define ERROR_DHCP_FO_RELATIONSHIP_DOES_NOT_EXIST 0x00004E93L +#define ERROR_DHCP_FO_SCOPE_NOT_IN_RELATIONSHIP 0x00004E94L +#define ERROR_DHCP_FO_RELATION_IS_SECONDARY 0x00004E95L +#define ERROR_DHCP_FO_NOT_SUPPORTED 0x00004E96L +#define ERROR_DHCP_FO_TIME_OUT_OF_SYNC 0x00004E97L +#define ERROR_DHCP_FO_STATE_NOT_NORMAL 0x00004E98L +#define ERROR_DHCP_NO_ADMIN_PERMISSION 0x00004E99L + +#define ERROR_DHCP_SERVER_NOT_REACHABLE 0x00004E9AL +#define ERROR_DHCP_SERVER_NOT_RUNNING 0x00004E9BL +#define ERROR_DHCP_SERVER_NAME_NOT_RESOLVED 0x00004E9CL +#define ERROR_DHCP_FO_RELATIONSHIP_NAME_TOO_LONG 0x00004E9DL +#define ERROR_DHCP_REACHED_END_OF_SELECTION 0x00004E9EL +#define ERROR_DHCP_FO_ADDSCOPE_LEASES_NOT_SYNCED 0x00004E9FL +#define ERROR_DHCP_FO_MAX_RELATIONSHIPS 0x00004EA0L +#define ERROR_DHCP_FO_IPRANGE_TYPE_CONV_ILLEGAL 0x00004EA1L +#define ERROR_DHCP_FO_MAX_ADD_SCOPES 0x00004EA2L +#define ERROR_DHCP_FO_BOOT_NOT_SUPPORTED 0x00004EA3L +#define ERROR_DHCP_FO_RANGE_PART_OF_REL 0x00004EA4L +#define ERROR_DHCP_FO_SCOPE_SYNC_IN_PROGRESS 0x00004EA5L +#define ERROR_DHCP_FO_FEATURE_NOT_SUPPORTED 0x00004EA6L +#define ERROR_DHCP_POLICY_FQDN_RANGE_UNSUPPORTED 0x00004EA7L +#define ERROR_DHCP_POLICY_FQDN_OPTION_UNSUPPORTED 0x00004EA8L +#define ERROR_DHCP_POLICY_EDIT_FQDN_UNSUPPORTED 0x00004EA9L +#define ERROR_DHCP_NAP_NOT_SUPPORTED 0x00004EAAL +#define ERROR_LAST_DHCP_SERVER_ERROR 0x00004EABL + +typedef DWORD DHCP_IP_MASK; +typedef DWORD DHCP_RESUME_HANDLE; + +typedef struct _DHCP_IP_RANGE { + DHCP_IP_ADDRESS StartAddress; + DHCP_IP_ADDRESS EndAddress; +} DHCP_IP_RANGE, *LPDHCP_IP_RANGE; + + +typedef struct _DHCP_BINARY_DATA { + DWORD DataLength; + +#if defined(MIDL_PASS) + [size_is(DataLength)] +#endif // MIDL_PASS + _Field_size_bytes_(DataLength) BYTE *Data; + +} DHCP_BINARY_DATA, *LPDHCP_BINARY_DATA; + +typedef DHCP_BINARY_DATA DHCP_CLIENT_UID; + +typedef struct _DHCP_HOST_INFO { + DHCP_IP_ADDRESS IpAddress; // minimum information always available + LPWSTR NetBiosName; // optional information + LPWSTR HostName; // optional information +} DHCP_HOST_INFO, *LPDHCP_HOST_INFO; + + +typedef enum _DHCP_FORCE_FLAG { + DhcpFullForce, + DhcpNoForce, + DhcpFailoverForce +} DHCP_FORCE_FLAG, *LPDHCP_FORCE_FLAG; + + +typedef struct _DWORD_DWORD { + DWORD DWord1; + DWORD DWord2; +} DWORD_DWORD, *LPDWORD_DWORD; + + +typedef enum _DHCP_SUBNET_STATE { + DhcpSubnetEnabled = 0, + DhcpSubnetDisabled, + DhcpSubnetEnabledSwitched, + DhcpSubnetDisabledSwitched, + DhcpSubnetInvalidState +} DHCP_SUBNET_STATE, *LPDHCP_SUBNET_STATE; + +// +// Subnet related data structures. +// + +typedef struct _DHCP_SUBNET_INFO { + DHCP_IP_ADDRESS SubnetAddress; + DHCP_IP_MASK SubnetMask; + LPWSTR SubnetName; + LPWSTR SubnetComment; + DHCP_HOST_INFO PrimaryHost; + DHCP_SUBNET_STATE SubnetState; +} DHCP_SUBNET_INFO, *LPDHCP_SUBNET_INFO; + +#define DHCP_SUBNET_INFO_VQ_FLAG_QUARANTINE (1 << 0) // Bit 0 + +typedef struct _DHCP_SUBNET_INFO_VQ { + DHCP_IP_ADDRESS SubnetAddress; + DHCP_IP_MASK SubnetMask; + LPWSTR SubnetName; + LPWSTR SubnetComment; + DHCP_HOST_INFO PrimaryHost; + DHCP_SUBNET_STATE SubnetState; + DWORD QuarantineOn; + DWORD Reserved1; + DWORD Reserved2; + INT64 Reserved3; + INT64 Reserved4; +} DHCP_SUBNET_INFO_VQ, *LPDHCP_SUBNET_INFO_VQ; + + +typedef struct _DHCP_IP_ARRAY { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + _Field_size_(NumElements) LPDHCP_IP_ADDRESS Elements; //array +} DHCP_IP_ARRAY, *LPDHCP_IP_ARRAY; + +typedef struct _DHCP_IP_CLUSTER { + DHCP_IP_ADDRESS ClusterAddress; // First IP address of the cluster. + DWORD ClusterMask; // Cluster usage mask, 0xFFFFFFFF + // indicates the cluster is fully used. +} DHCP_IP_CLUSTER, *LPDHCP_IP_CLUSTER; + +typedef struct _DHCP_IP_RESERVATION { + DHCP_IP_ADDRESS ReservedIpAddress; + DHCP_CLIENT_UID *ReservedForClient; +} DHCP_IP_RESERVATION, *LPDHCP_IP_RESERVATION; + +typedef enum _DHCP_SUBNET_ELEMENT_TYPE_V5 { + DhcpIpRanges, + DhcpSecondaryHosts, + DhcpReservedIps, + DhcpExcludedIpRanges, + DhcpIpUsedClusters, + DhcpIpRangesDhcpOnly, + DhcpIpRangesDhcpBootp, + DhcpIpRangesBootpOnly, +} DHCP_SUBNET_ELEMENT_TYPE, *LPDHCP_SUBNET_ELEMENT_TYPE; + +#define ELEMENT_MASK(E) ((((E) <= DhcpIpRangesBootpOnly) && (DhcpIpRangesDhcpOnly <= (E)))?(0):(E)) + +typedef struct _DHCP_SUBNET_ELEMENT_DATA { + DHCP_SUBNET_ELEMENT_TYPE ElementType; +#if defined(MIDL_PASS) + [switch_is(ELEMENT_MASK(ElementType)), switch_type(DHCP_SUBNET_ELEMENT_TYPE)] + union _DHCP_SUBNET_ELEMENT_UNION { + [case(DhcpIpRanges)] DHCP_IP_RANGE *IpRange; + [case(DhcpSecondaryHosts)] DHCP_HOST_INFO *SecondaryHost; + [case(DhcpReservedIps)] DHCP_IP_RESERVATION *ReservedIp; + [case(DhcpExcludedIpRanges)] DHCP_IP_RANGE *ExcludeIpRange; + [case(DhcpIpUsedClusters)] DHCP_IP_CLUSTER *IpUsedCluster; + } Element; +#else + union _DHCP_SUBNET_ELEMENT_UNION { + DHCP_IP_RANGE *IpRange; + DHCP_HOST_INFO *SecondaryHost; + DHCP_IP_RESERVATION *ReservedIp; + DHCP_IP_RANGE *ExcludeIpRange; + DHCP_IP_CLUSTER *IpUsedCluster; + } Element; +#endif // MIDL_PASS +} DHCP_SUBNET_ELEMENT_DATA, *LPDHCP_SUBNET_ELEMENT_DATA; + +#if !defined(MIDL_PASS) +typedef union _DHCP_SUBNET_ELEMENT_UNION + DHCP_SUBNET_ELEMENT_UNION, *LPDHCP_SUBNET_ELEMENT_UNION; +#endif + +typedef struct _DHCP_SUBNET_ELEMENT_INFO_ARRAY { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_SUBNET_ELEMENT_DATA Elements; //array +} DHCP_SUBNET_ELEMENT_INFO_ARRAY, *LPDHCP_SUBNET_ELEMENT_INFO_ARRAY; + +typedef struct _DHCP_IPV6_ADDRESS { + ULONGLONG HighOrderBits; + ULONGLONG LowOrderBits; +} DHCP_IPV6_ADDRESS, *LPDHCP_IPV6_ADDRESS, *PDHCP_IPV6_ADDRESS; + +typedef DHCP_IPV6_ADDRESS DHCP_RESUME_IPV6_HANDLE; + +// +// DHCP Filter related data structures. +// + +#define MAX_PATTERN_LENGTH 255 +#define MAC_ADDRESS_LENGTH 6 +#define HWTYPE_ETHERNET_10MB 1 + +typedef enum _DHCP_FILTER_LIST_TYPE { + Deny, + Allow +} DHCP_FILTER_LIST_TYPE, *LPDHCP_FILTER_LIST_TYPE; + +typedef struct _DHCP_ADDR_PATTERN { + BOOL MatchHWType; + BYTE HWType; + BOOL IsWildcard; + BYTE Length; + BYTE Pattern[MAX_PATTERN_LENGTH]; // Variable Length address/pattern +} DHCP_ADDR_PATTERN, *LPDHCP_ADDR_PATTERN; + +typedef struct _DHCP_FILTER_ADD_INFOV4 { + DHCP_ADDR_PATTERN AddrPatt; // Contains address/pattern + LPWSTR Comment; // Comment associated with address/pattern + DHCP_FILTER_LIST_TYPE ListType; // Enum that specifies either allow or deny +} DHCP_FILTER_ADD_INFO, *LPDHCP_FILTER_ADD_INFO; + +typedef struct _DHCP_FILTER_GLOBAL_INFO { + BOOL EnforceAllowList; + BOOL EnforceDenyList; +} DHCP_FILTER_GLOBAL_INFO, *LPDHCP_FILTER_GLOBAL_INFO; + +typedef struct _DHCP_FILTER_RECORD { + DHCP_ADDR_PATTERN AddrPatt; // Contains MAC address/pattern and Mask + LPWSTR Comment; // Comment associated with MAC address/pattern +} DHCP_FILTER_RECORD, *LPDHCP_FILTER_RECORD; + +typedef struct _DHCP_FILTER_ENUM_INFO { + DWORD NumElements; +#if defined( MIDL_PASS ) + [ size_is( NumElements ) ] +#endif + _Field_size_(NumElements) LPDHCP_FILTER_RECORD pEnumRecords; +} DHCP_FILTER_ENUM_INFO, *LPDHCP_FILTER_ENUM_INFO; + +// +// DHCP Options related data structures. +// + +typedef enum _DHCP_OPTION_DATA_TYPE { + DhcpByteOption, + DhcpWordOption, + DhcpDWordOption, + DhcpDWordDWordOption, + DhcpIpAddressOption, + DhcpStringDataOption, + DhcpBinaryDataOption, + DhcpEncapsulatedDataOption, + DhcpIpv6AddressOption +} DHCP_OPTION_DATA_TYPE, *LPDHCP_OPTION_DATA_TYPE; + + +typedef struct _DHCP_OPTION_DATA_ELEMENT { + DHCP_OPTION_DATA_TYPE OptionType; +#if defined(MIDL_PASS) + [switch_is(OptionType), switch_type(DHCP_OPTION_DATA_TYPE)] + union _DHCP_OPTION_ELEMENT_UNION { + [case(DhcpByteOption)] BYTE ByteOption; + [case(DhcpWordOption)] WORD WordOption; + [case(DhcpDWordOption)] DWORD DWordOption; + [case(DhcpDWordDWordOption)] DWORD_DWORD DWordDWordOption; + [case(DhcpIpAddressOption)] DHCP_IP_ADDRESS IpAddressOption; + [case(DhcpStringDataOption)] LPWSTR StringDataOption; + [case(DhcpBinaryDataOption)] DHCP_BINARY_DATA BinaryDataOption; + [case(DhcpEncapsulatedDataOption)] DHCP_BINARY_DATA EncapsulatedDataOption; + [case(DhcpIpv6AddressOption)] LPWSTR Ipv6AddressDataOption; + } Element; +#else + union _DHCP_OPTION_ELEMENT_UNION { + BYTE ByteOption; + WORD WordOption; + DWORD DWordOption; + DWORD_DWORD DWordDWordOption; + DHCP_IP_ADDRESS IpAddressOption; + LPWSTR StringDataOption; + DHCP_BINARY_DATA BinaryDataOption; + DHCP_BINARY_DATA EncapsulatedDataOption; + LPWSTR Ipv6AddressDataOption; + + } Element; +#endif // MIDL_PASS +} DHCP_OPTION_DATA_ELEMENT, *LPDHCP_OPTION_DATA_ELEMENT; + +#if !defined(MIDL_PASS) +typedef union _DHCP_OPTION_ELEMENT_UNION + DHCP_OPTION_ELEMENT_UNION, *LPDHCP_OPTION_ELEMENT_UNION; +#endif + +typedef struct _DHCP_OPTION_DATA { + DWORD NumElements; // number of option elements in the pointed array +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + _Field_size_(NumElements) LPDHCP_OPTION_DATA_ELEMENT Elements; //array +} DHCP_OPTION_DATA, *LPDHCP_OPTION_DATA; + +typedef enum _DHCP_OPTION_TYPE { + DhcpUnaryElementTypeOption, + DhcpArrayTypeOption +} DHCP_OPTION_TYPE, *LPDHCP_OPTION_TYPE; + +typedef struct _DHCP_OPTION { + DHCP_OPTION_ID OptionID; + LPWSTR OptionName; + LPWSTR OptionComment; + DHCP_OPTION_DATA DefaultValue; + DHCP_OPTION_TYPE OptionType; +} DHCP_OPTION, *LPDHCP_OPTION; + +typedef struct _DHCP_OPTION_ARRAY { + DWORD NumElements; // number of options in the pointed array +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_OPTION Options; // array +} DHCP_OPTION_ARRAY, *LPDHCP_OPTION_ARRAY; + +typedef struct _DHCP_OPTION_VALUE { + DHCP_OPTION_ID OptionID; + DHCP_OPTION_DATA Value; +} DHCP_OPTION_VALUE, *LPDHCP_OPTION_VALUE; + +typedef struct _DHCP_OPTION_VALUE_ARRAY { + DWORD NumElements; // number of options in the pointed array +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_OPTION_VALUE Values; // array +} DHCP_OPTION_VALUE_ARRAY, *LPDHCP_OPTION_VALUE_ARRAY; + +typedef enum _DHCP_OPTION_SCOPE_TYPE { + DhcpDefaultOptions, + DhcpGlobalOptions, + DhcpSubnetOptions, + DhcpReservedOptions, + DhcpMScopeOptions +} DHCP_OPTION_SCOPE_TYPE, *LPDHCP_OPTION_SCOPE_TYPE; + +typedef struct _DHCP_RESERVED_SCOPE { + DHCP_IP_ADDRESS ReservedIpAddress; + DHCP_IP_ADDRESS ReservedIpSubnetAddress; +} DHCP_RESERVED_SCOPE, *LPDHCP_RESERVED_SCOPE; + +typedef struct _DHCP_OPTION_SCOPE_INFO { + DHCP_OPTION_SCOPE_TYPE ScopeType; +#if defined(MIDL_PASS) + [switch_is(ScopeType), switch_type(DHCP_OPTION_SCOPE_TYPE)] + union _DHCP_OPTION_SCOPE_UNION { + [case(DhcpDefaultOptions)] ; + [case(DhcpGlobalOptions)] ; + [case(DhcpSubnetOptions)] DHCP_IP_ADDRESS SubnetScopeInfo; + [case(DhcpReservedOptions)] DHCP_RESERVED_SCOPE ReservedScopeInfo; + [case(DhcpMScopeOptions)] LPWSTR MScopeInfo; + } ScopeInfo; +#else + union _DHCP_OPTION_SCOPE_UNION { + PVOID DefaultScopeInfo; // must be NULL + PVOID GlobalScopeInfo; // must be NULL + DHCP_IP_ADDRESS SubnetScopeInfo; + DHCP_RESERVED_SCOPE ReservedScopeInfo; + LPWSTR MScopeInfo; + } ScopeInfo; +#endif // MIDL_PASS +} DHCP_OPTION_SCOPE_INFO, *LPDHCP_OPTION_SCOPE_INFO; + +typedef enum _DHCP_OPTION_SCOPE_TYPE6 { + DhcpDefaultOptions6, + DhcpScopeOptions6, + DhcpReservedOptions6, + DhcpGlobalOptions6 +} DHCP_OPTION_SCOPE_TYPE6, *LPDHCP_OPTION_SCOPE_TYPE6; + +typedef struct _DHCP_RESERVED_SCOPE6 { + DHCP_IPV6_ADDRESS ReservedIpAddress; + DHCP_IPV6_ADDRESS ReservedIpSubnetAddress; +} DHCP_RESERVED_SCOPE6, *LPDHCP_RESERVED_SCOPE6; + +typedef struct _DHCP_OPTION_SCOPE_INFO6 { + DHCP_OPTION_SCOPE_TYPE6 ScopeType; +#if defined(MIDL_PASS) + [switch_is(ScopeType), switch_type(DHCP_OPTION_SCOPE_TYPE6)] + union _DHCP_OPTION_SCOPE_UNION6 { + [case(DhcpDefaultOptions6)] ; + [case(DhcpScopeOptions6)] DHCP_IPV6_ADDRESS SubnetScopeInfo; + [case(DhcpReservedOptions6)] DHCP_RESERVED_SCOPE6 ReservedScopeInfo; + [case(DhcpGlobalOptions6)]; + } ScopeInfo; +#else + union _DHCP_OPTION_SCOPE_UNION6 { + PVOID DefaultScopeInfo; // must be NULL + DHCP_IPV6_ADDRESS SubnetScopeInfo; + DHCP_RESERVED_SCOPE6 ReservedScopeInfo; + } ScopeInfo; +#endif // MIDL_PASS +} DHCP_OPTION_SCOPE_INFO6, *LPDHCP_OPTION_SCOPE_INFO6; + +#if !defined(MIDL_PASS) +typedef union _DHCP_OPTION_SCOPE_UNION6 + DHCP_OPTION_SCOPE_UNION6, *LPDHCP_OPTION_SCOPE_UNION6; +#endif + +typedef struct _DHCP_OPTION_LIST { + DWORD NumOptions; +#if defined(MIDL_PASS) + [size_is(NumOptions)] +#endif // MIDL_PASS + DHCP_OPTION_VALUE *Options; // array +} DHCP_OPTION_LIST, *LPDHCP_OPTION_LIST; + +// +// DHCP Client information data structures +// + +typedef struct _DHCP_CLIENT_INFO { + DHCP_IP_ADDRESS ClientIpAddress; // currently assigned IP address. + DHCP_IP_MASK SubnetMask; + DHCP_CLIENT_UID ClientHardwareAddress; + LPWSTR ClientName; + LPWSTR ClientComment; + DATE_TIME ClientLeaseExpires; // UTC time in FILE_TIME format. + DHCP_HOST_INFO OwnerHost; // host that distributed this IP address. +} DHCP_CLIENT_INFO, *LPDHCP_CLIENT_INFO; + +typedef struct _DHCP_CLIENT_INFO_ARRAY { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_CLIENT_INFO *Clients; // array of pointers +} DHCP_CLIENT_INFO_ARRAY, *LPDHCP_CLIENT_INFO_ARRAY; + +typedef enum _QuarantineStatus +{ + NOQUARANTINE = 0, + RESTRICTEDACCESS, + DROPPACKET, + PROBATION, + EXEMPT, + DEFAULTQUARSETTING, + NOQUARINFO +}QuarantineStatus; + +typedef struct _DHCP_CLIENT_INFO_VQ { + DHCP_IP_ADDRESS ClientIpAddress; // currently assigned IP address. + DHCP_IP_MASK SubnetMask; + DHCP_CLIENT_UID ClientHardwareAddress; + LPWSTR ClientName; + LPWSTR ClientComment; + DATE_TIME ClientLeaseExpires; // UTC time in FILE_TIME format. + DHCP_HOST_INFO OwnerHost; // host that distributed this IP address. + BYTE bClientType; + BYTE AddressState; + QuarantineStatus Status; + DATE_TIME ProbationEnds; + BOOL QuarantineCapable; +} DHCP_CLIENT_INFO_VQ, *LPDHCP_CLIENT_INFO_VQ; + +typedef struct _DHCP_CLIENT_INFO_ARRAY_VQ { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_CLIENT_INFO_VQ *Clients; // array of pointers +} DHCP_CLIENT_INFO_ARRAY_VQ, *LPDHCP_CLIENT_INFO_ARRAY_VQ; + + + +//When the client's MAC Address doesn't match any configured filters +#define FILTER_STATUS_NONE 0x00000001 + +//When the client's MAC Address matches an allow filter fully +#define FILTER_STATUS_FULL_MATCH_IN_ALLOW_LIST 0x00000002 + +//When the client's MAC Address matches a deny filter fully +#define FILTER_STATUS_FULL_MATCH_IN_DENY_LIST 0x00000004 + +//When the client's MAC Address has a wildcard match in the allow list +#define FILTER_STATUS_WILDCARD_MATCH_IN_ALLOW_LIST 0x00000008 + +//When the client's MAC Address has a wildcard match in the deny list +#define FILTER_STATUS_WILDCARD_MATCH_IN_DENY_LIST 0x00000010 + + +typedef struct _DHCP_CLIENT_FILTER_STATUS_INFO { + DHCP_IP_ADDRESS ClientIpAddress; + DHCP_IP_MASK SubnetMask; + DHCP_CLIENT_UID ClientHardwareAddress; + LPWSTR ClientName; + LPWSTR ClientComment; + DATE_TIME ClientLeaseExpires; + DHCP_HOST_INFO OwnerHost; + BYTE bClientType; + BYTE AddressState; + QuarantineStatus Status; + DATE_TIME ProbationEnds; + BOOL QuarantineCapable; + DWORD FilterStatus; +} DHCP_CLIENT_FILTER_STATUS_INFO, *LPDHCP_CLIENT_FILTER_STATUS_INFO; + +typedef struct _DHCP_CLIENT_FILTER_STATUS_INFO_ARRAY { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_CLIENT_FILTER_STATUS_INFO *Clients; // array of pointers +} DHCP_CLIENT_FILTER_STATUS_INFO_ARRAY, *LPDHCP_CLIENT_FILTER_STATUS_INFO_ARRAY; + +typedef struct _DHCP_CLIENT_INFO_PB { + DHCP_IP_ADDRESS ClientIpAddress; + DHCP_IP_MASK SubnetMask; + DHCP_CLIENT_UID ClientHardwareAddress; + LPWSTR ClientName; + LPWSTR ClientComment; + DATE_TIME ClientLeaseExpires; + DHCP_HOST_INFO OwnerHost; + BYTE bClientType; + BYTE AddressState; + QuarantineStatus Status; + DATE_TIME ProbationEnds; + BOOL QuarantineCapable; + DWORD FilterStatus; + LPWSTR PolicyName; +} DHCP_CLIENT_INFO_PB, *LPDHCP_CLIENT_INFO_PB; + +typedef struct _DHCP_CLIENT_INFO_PB_ARRAY { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_CLIENT_INFO_PB *Clients; // array of pointers +} DHCP_CLIENT_INFO_PB_ARRAY, *LPDHCP_CLIENT_INFO_PB_ARRAY; + +typedef enum _DHCP_CLIENT_SEARCH_TYPE { + DhcpClientIpAddress, + DhcpClientHardwareAddress, + DhcpClientName +} DHCP_SEARCH_INFO_TYPE, *LPDHCP_SEARCH_INFO_TYPE; + +typedef struct _DHCP_CLIENT_SEARCH_INFO { + DHCP_SEARCH_INFO_TYPE SearchType; +#if defined(MIDL_PASS) + [switch_is(SearchType), switch_type(DHCP_SEARCH_INFO_TYPE)] + union _DHCP_CLIENT_SEARCH_UNION { + [case(DhcpClientIpAddress)] DHCP_IP_ADDRESS ClientIpAddress; + [case(DhcpClientHardwareAddress)] DHCP_CLIENT_UID ClientHardwareAddress; + [case(DhcpClientName)] LPWSTR ClientName; + } SearchInfo; +#else + union _DHCP_CLIENT_SEARCH_UNION { + DHCP_IP_ADDRESS ClientIpAddress; + DHCP_CLIENT_UID ClientHardwareAddress; + LPWSTR ClientName; + } SearchInfo; +#endif // MIDL_PASS +} DHCP_SEARCH_INFO, *LPDHCP_SEARCH_INFO; + + +#if !defined(MIDL_PASS) +typedef union _DHCP_CLIENT_SEARCH_UNION + DHCP_CLIENT_SEARCH_UNION, *LPDHCP_CLIENT_SEARCH_UNION; +#endif // MIDL_PASS + + + + +typedef enum +{ + DhcpPropTypeByte, + DhcpPropTypeWord, + DhcpPropTypeDword, + DhcpPropTypeString, + DhcpPropTypeBinary, +} DHCP_PROPERTY_TYPE; + +typedef enum +{ + DhcpPropIdPolicyDnsSuffix, + DhcpPropIdClientAddressStateEx, +} DHCP_PROPERTY_ID; + + +typedef struct _DHCP_PROPERTY +{ + DHCP_PROPERTY_ID ID; + DHCP_PROPERTY_TYPE Type; +#if defined(MIDL_PASS) + [switch_is(Type), switch_type(DHCP_PROPERTY_TYPE)] + union _DHCP_PROPERTY_VALUE_UNION { + [case(DhcpPropTypeByte)] BYTE ByteValue; + [case(DhcpPropTypeWord)] WORD WordValue; + [case(DhcpPropTypeDword)] DWORD DWordValue; + [case(DhcpPropTypeString)] LPWSTR StringValue; + [case(DhcpPropTypeBinary)] DHCP_BINARY_DATA BinaryValue; + } Value; +#else + union _DHCP_PROPERTY_VALUE_UNION { + BYTE ByteValue; + WORD WordValue; + DWORD DWordValue; + LPWSTR StringValue; + DHCP_BINARY_DATA BinaryValue; + } Value; +#endif // MIDL_PASS +} DHCP_PROPERTY, *PDHCP_PROPERTY, *LPDHCP_PROPERTY; + +typedef struct _DHCP_PROPERTY_ARRAY { + DWORD NumElements; + #if defined( MIDL_PASS ) + [ size_is( NumElements ) ] + #endif //MIDL_PASS + _Field_size_(NumElements) LPDHCP_PROPERTY Elements; +} DHCP_PROPERTY_ARRAY, *PDHCP_PROPERTY_ARRAY, *LPDHCP_PROPERTY_ARRAY; + + + +typedef struct _DHCP_CLIENT_INFO_EX { + DHCP_IP_ADDRESS ClientIpAddress; + DHCP_IP_MASK SubnetMask; + DHCP_CLIENT_UID ClientHardwareAddress; + LPWSTR ClientName; + LPWSTR ClientComment; + DATE_TIME ClientLeaseExpires; + DHCP_HOST_INFO OwnerHost; + BYTE bClientType; + BYTE AddressState; + QuarantineStatus Status; + DATE_TIME ProbationEnds; + BOOL QuarantineCapable; + DWORD FilterStatus; + LPWSTR PolicyName; + LPDHCP_PROPERTY_ARRAY Properties; +} DHCP_CLIENT_INFO_EX, *LPDHCP_CLIENT_INFO_EX; + +typedef struct _DHCP_CLIENT_INFO_EX_ARRAY { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_CLIENT_INFO_EX *Clients; // array of pointers +} DHCP_CLIENT_INFO_EX_ARRAY, *LPDHCP_CLIENT_INFO_EX_ARRAY; + +// +// Mib Info structures. +// + +typedef struct _SCOPE_MIB_INFO { + DHCP_IP_ADDRESS Subnet; + DWORD NumAddressesInuse; + DWORD NumAddressesFree; + DWORD NumPendingOffers; +} SCOPE_MIB_INFO, *LPSCOPE_MIB_INFO; + +typedef struct _DHCP_MIB_INFO { + DWORD Discovers; + DWORD Offers; + DWORD Requests; + DWORD Acks; + DWORD Naks; + DWORD Declines; + DWORD Releases; + DATE_TIME ServerStartTime; + DWORD Scopes; +#if defined(MIDL_PASS) + [size_is(Scopes)] +#endif // MIDL_PASS + _Field_size_(Scopes) LPSCOPE_MIB_INFO ScopeInfo; // array. +} DHCP_MIB_INFO, *LPDHCP_MIB_INFO; + +// +// Quarantine version of mib structures +// + + +typedef struct _SCOPE_MIB_INFO_VQ { + DHCP_IP_ADDRESS Subnet; + DWORD NumAddressesInuse; + DWORD NumAddressesFree; + DWORD NumPendingOffers; + // + // Quarantine MIB info + // + DWORD QtnNumLeases; + DWORD QtnPctQtnLeases; + DWORD QtnProbationLeases; + DWORD QtnNonQtnLeases; + DWORD QtnExemptLeases; + DWORD QtnCapableClients; + +} SCOPE_MIB_INFO_VQ, *LPSCOPE_MIB_INFO_VQ; + +typedef struct _DHCP_MIB_INFO_VQ { + DWORD Discovers; + DWORD Offers; + DWORD Requests; + DWORD Acks; + DWORD Naks; + DWORD Declines; + DWORD Releases; + DATE_TIME ServerStartTime; + // + // Quarantine MIB info + // + DWORD QtnNumLeases; + DWORD QtnPctQtnLeases; + DWORD QtnProbationLeases; + DWORD QtnNonQtnLeases; + DWORD QtnExemptLeases; + DWORD QtnCapableClients; + DWORD QtnIASErrors; + DWORD Scopes; +#if defined(MIDL_PASS) + [size_is(Scopes)] +#endif // MIDL_PASS + LPSCOPE_MIB_INFO_VQ ScopeInfo; // array. + +} DHCP_MIB_INFO_VQ, *LPDHCP_MIB_INFO_VQ; + +typedef struct _SCOPE_MIB_INFO_V5 { + DHCP_IP_ADDRESS Subnet; + DWORD NumAddressesInuse; + DWORD NumAddressesFree; + DWORD NumPendingOffers; +} SCOPE_MIB_INFO_V5, *LPSCOPE_MIB_INFO_V5; + +typedef struct _DHCP_MIB_INFO_V5 { + DWORD Discovers; + DWORD Offers; + DWORD Requests; + DWORD Acks; + DWORD Naks; + DWORD Declines; + DWORD Releases; + DATE_TIME ServerStartTime; + // + // Quarantine MIB info + // + DWORD QtnNumLeases; + DWORD QtnPctQtnLeases; + DWORD QtnProbationLeases; + DWORD QtnNonQtnLeases; + DWORD QtnExemptLeases; + DWORD QtnCapableClients; + DWORD QtnIASErrors; + + DWORD DelayedOffers; + DWORD ScopesWithDelayedOffers; + DWORD Scopes; +#if defined(MIDL_PASS) + [size_is(Scopes)] +#endif // MIDL_PASS + _Field_size_(Scopes) LPSCOPE_MIB_INFO_V5 ScopeInfo; // array. +} DHCP_MIB_INFO_V5, *LPDHCP_MIB_INFO_V5; + +#define Set_APIProtocolSupport 0x00000001 +#define Set_DatabaseName 0x00000002 +#define Set_DatabasePath 0x00000004 +#define Set_BackupPath 0x00000008 +#define Set_BackupInterval 0x00000010 +#define Set_DatabaseLoggingFlag 0x00000020 +#define Set_RestoreFlag 0x00000040 +#define Set_DatabaseCleanupInterval 0x00000080 +#define Set_DebugFlag 0x00000100 +#define Set_PingRetries 0x00000200 +#define Set_BootFileTable 0x00000400 +#define Set_AuditLogState 0x00000800 +#define Set_QuarantineON 0x00001000 +#define Set_QuarantineDefFail 0x00002000 + + +typedef struct _DHCP_SERVER_CONFIG_INFO { + DWORD APIProtocolSupport; // bit map of the protocols supported. + LPWSTR DatabaseName; // JET database name. + LPWSTR DatabasePath; // JET database path. + LPWSTR BackupPath; // Backup path. + DWORD BackupInterval; // Backup interval in mins. + DWORD DatabaseLoggingFlag; // Boolean database logging flag. + DWORD RestoreFlag; // Boolean database restore flag. + DWORD DatabaseCleanupInterval; // Database Cleanup Interval in mins. + DWORD DebugFlag; // Bit map of server debug flags. +} DHCP_SERVER_CONFIG_INFO, *LPDHCP_SERVER_CONFIG_INFO; + +typedef enum _DHCP_SCAN_FLAG { + DhcpRegistryFix, + DhcpDatabaseFix +} DHCP_SCAN_FLAG, *LPDHCP_SCAN_FLAG; + +typedef struct _DHCP_SCAN_ITEM { + DHCP_IP_ADDRESS IpAddress; + DHCP_SCAN_FLAG ScanFlag; +} DHCP_SCAN_ITEM, *LPDHCP_SCAN_ITEM; + +typedef struct _DHCP_SCAN_LIST { + DWORD NumScanItems; +#if defined(MIDL_PASS) + [size_is(NumScanItems)] +#endif // MIDL_PASS + _Field_size_(NumScanItems) DHCP_SCAN_ITEM *ScanItems; // array +} DHCP_SCAN_LIST, *LPDHCP_SCAN_LIST; + +typedef struct _DHCP_CLASS_INFO { + LPWSTR ClassName; + LPWSTR ClassComment; + DWORD ClassDataLength; + BOOL IsVendor; + DWORD Flags; +#if defined(MIDL_PASS) + [size_is(ClassDataLength)] +#endif // MIDL_PASS + _Field_size_bytes_(ClassDataLength) LPBYTE ClassData; +} DHCP_CLASS_INFO, *LPDHCP_CLASS_INFO; + +typedef struct _DHCP_CLASS_INFO_ARRAY { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif //MIDL_PASS + LPDHCP_CLASS_INFO Classes; +} DHCP_CLASS_INFO_ARRAY, *LPDHCP_CLASS_INFO_ARRAY; + + +typedef struct _DHCP_CLASS_INFO_V6 { + LPWSTR ClassName; + LPWSTR ClassComment; + DWORD ClassDataLength; + BOOL IsVendor; + DWORD EnterpriseNumber; + DWORD Flags; +#if defined(MIDL_PASS) + [size_is(ClassDataLength)] +#endif // MIDL_PASS + _Field_size_bytes_(ClassDataLength) LPBYTE ClassData; +} DHCP_CLASS_INFO_V6, *LPDHCP_CLASS_INFO_V6; + +typedef struct _DHCP_CLASS_INFO_ARRAY_V6 { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif //MIDL_PASS + LPDHCP_CLASS_INFO_V6 Classes; +} DHCP_CLASS_INFO_ARRAY_V6, *LPDHCP_CLASS_INFO_ARRAY_V6; + + +typedef struct _DHCP_SERVER_SPECIFIC_STRINGS { + LPWSTR DefaultVendorClassName; + LPWSTR DefaultUserClassName; +} DHCP_SERVER_SPECIFIC_STRINGS, *LPDHCP_SERVER_SPECIFIC_STRINGS; + + + +typedef struct _DHCP_IP_RESERVATION_V4 { + DHCP_IP_ADDRESS ReservedIpAddress; + DHCP_CLIENT_UID *ReservedForClient; + BYTE bAllowedClientTypes; +} DHCP_IP_RESERVATION_V4, *LPDHCP_IP_RESERVATION_V4; + +typedef struct _DHCP_IP_RESERVATION_INFO { + DHCP_IP_ADDRESS ReservedIpAddress; + DHCP_CLIENT_UID ReservedForClient; + LPWSTR ReservedClientName; + LPWSTR ReservedClientDesc; + BYTE bAllowedClientTypes; + BYTE fOptionsPresent; +} DHCP_IP_RESERVATION_INFO, *LPDHCP_IP_RESERVATION_INFO; + +typedef struct _DHCP_RESERVATION_INFO_ARRAY { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_IP_RESERVATION_INFO *Elements; +} DHCP_RESERVATION_INFO_ARRAY, *LPDHCP_RESERVATION_INFO_ARRAY; + +typedef struct _DHCP_SUBNET_ELEMENT_DATA_V4 { + DHCP_SUBNET_ELEMENT_TYPE ElementType; +#if defined(MIDL_PASS) + [switch_is(ELEMENT_MASK(ElementType)), switch_type(DHCP_SUBNET_ELEMENT_TYPE)] + union _DHCP_SUBNET_ELEMENT_UNION_V4 { + [case(DhcpIpRanges)] DHCP_IP_RANGE *IpRange; + [case(DhcpSecondaryHosts)] DHCP_HOST_INFO *SecondaryHost; + [case(DhcpReservedIps)] DHCP_IP_RESERVATION_V4 *ReservedIp; + [case(DhcpExcludedIpRanges)] DHCP_IP_RANGE *ExcludeIpRange; + [case(DhcpIpUsedClusters)] DHCP_IP_CLUSTER *IpUsedCluster; + } Element; +#else + union _DHCP_SUBNET_ELEMENT_UNION_V4 { + DHCP_IP_RANGE *IpRange; + DHCP_HOST_INFO *SecondaryHost; + DHCP_IP_RESERVATION_V4 *ReservedIp; + DHCP_IP_RANGE *ExcludeIpRange; + DHCP_IP_CLUSTER *IpUsedCluster; + } Element; +#endif // MIDL_PASS +} DHCP_SUBNET_ELEMENT_DATA_V4, *LPDHCP_SUBNET_ELEMENT_DATA_V4; + +#if !defined(MIDL_PASS) +typedef union _DHCP_SUBNET_ELEMENT_UNION_V4 + DHCP_SUBNET_ELEMENT_UNION_V4, *LPDHCP_SUBNET_ELEMENT_UNION_V4; +#endif + +typedef struct _DHCP_SUBNET_ELEMENT_INFO_ARRAY_V4 { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_SUBNET_ELEMENT_DATA_V4 Elements; +} DHCP_SUBNET_ELEMENT_INFO_ARRAY_V4, *LPDHCP_SUBNET_ELEMENT_INFO_ARRAY_V4; + + + +#define CLIENT_TYPE_UNSPECIFIED 0x0 +#define CLIENT_TYPE_DHCP 0x1 +#define CLIENT_TYPE_BOOTP 0x2 +#define CLIENT_TYPE_BOTH ( CLIENT_TYPE_DHCP | CLIENT_TYPE_BOOTP ) +#define CLIENT_TYPE_RESERVATION_FLAG 0x4 +#define CLIENT_TYPE_NONE 0x64 + + + +typedef struct _DHCP_CLIENT_INFO_V4 { + DHCP_IP_ADDRESS ClientIpAddress; + DHCP_IP_MASK SubnetMask; + DHCP_CLIENT_UID ClientHardwareAddress; + LPWSTR ClientName; + LPWSTR ClientComment; + DATE_TIME ClientLeaseExpires; + DHCP_HOST_INFO OwnerHost; + BYTE bClientType; +} DHCP_CLIENT_INFO_V4, *LPDHCP_CLIENT_INFO_V4; + +typedef struct _DHCP_CLIENT_INFO_ARRAY_V4 { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif + LPDHCP_CLIENT_INFO_V4 *Clients; +} DHCP_CLIENT_INFO_ARRAY_V4, *LPDHCP_CLIENT_INFO_ARRAY_V4; + + +typedef struct _DHCP_SERVER_CONFIG_INFO_V4 { + DWORD APIProtocolSupport; + LPWSTR DatabaseName; + LPWSTR DatabasePath; + LPWSTR BackupPath; + DWORD BackupInterval; + DWORD DatabaseLoggingFlag; + DWORD RestoreFlag; + DWORD DatabaseCleanupInterval; + DWORD DebugFlag; + DWORD dwPingRetries; // valid range: 0-5 inclusive + DWORD cbBootTableString; +#if defined( MIDL_PASS ) + [ size_is( cbBootTableString/2 ) ] // WCHAR SIZE = 2 Bytes +#endif + _Field_size_bytes_(cbBootTableString) WCHAR *wszBootTableString; + BOOL fAuditLog; // TRUE to enable audit log + +} DHCP_SERVER_CONFIG_INFO_V4, *LPDHCP_SERVER_CONFIG_INFO_V4; + + +// +// Server Configuration Info with quarantine config. +// + +typedef struct _DHCP_SERVER_CONFIG_INFO_VQ { + DWORD APIProtocolSupport; // bit map of the protocols supported. + LPWSTR DatabaseName; // JET database name. + LPWSTR DatabasePath; // JET database path. + LPWSTR BackupPath; // Backup path. + DWORD BackupInterval; // Backup interval in mins. + DWORD DatabaseLoggingFlag; // Boolean database logging flag. + DWORD RestoreFlag; // Boolean database restore flag. + DWORD DatabaseCleanupInterval; // Database Cleanup Interval in mins. + DWORD DebugFlag; // Bit map of server debug flags. + DWORD dwPingRetries; // valid range: 0-5 inclusive + DWORD cbBootTableString; +#if defined( MIDL_PASS ) + [ size_is( cbBootTableString/2 ) ] // WCHAR SIZE = 2 Bytes +#endif + _Field_size_bytes_(cbBootTableString) WCHAR *wszBootTableString; + BOOL fAuditLog; // TRUE to enable audit log + BOOL QuarantineOn; // Server global Quarantine on/off + DWORD QuarDefFail; // Default behavior when IAS fails + // to be set to QUARANTINE_DEFFAIL_ACCEPT + // or QUARANTINE_DEFFAIL_DROP + BOOL QuarRuntimeStatus; // This tells us whether NAP is actually running + // on the DHCP server as opposed to the the value + // which is configured by the admin. +} DHCP_SERVER_CONFIG_INFO_VQ, *LPDHCP_SERVER_CONFIG_INFO_VQ; + + +typedef struct _DHCP_SERVER_CONFIG_INFO_V6 { + BOOL UnicastFlag; + BOOL RapidCommitFlag; + DWORD PreferredLifetime; + DWORD ValidLifetime; + DWORD T1; + DWORD T2; + DWORD PreferredLifetimeIATA; + DWORD ValidLifetimeIATA; +#ifndef DHCPSAPI_LEGACY + BOOL fAuditLog; +#endif +} DHCP_SERVER_CONFIG_INFO_V6, *LPDHCP_SERVER_CONFIG_INFO_V6; + + +#define Set_UnicastFlag 0x00000001 +#define Set_RapidCommitFlag 0x00000002 +#define Set_PreferredLifetime 0x00000004 +#define Set_ValidLifetime 0x00000008 +#define Set_T1 0x00000010 +#define Set_T2 0x00000020 +#define Set_PreferredLifetimeIATA 0x00000040 +#define Set_ValidLifetimeIATA 0x00000080 + + + +typedef struct _DHCP_SUPER_SCOPE_TABLE_ENTRY { + DHCP_IP_ADDRESS SubnetAddress; // subnet address + DWORD SuperScopeNumber; // super scope group number + DWORD NextInSuperScope; // index of the next subnet in the superscope + LPWSTR SuperScopeName; // super scope name + // NULL indicates no superscope membership. +} DHCP_SUPER_SCOPE_TABLE_ENTRY, *LPDHCP_SUPER_SCOPE_TABLE_ENTRY; + + +typedef struct _DHCP_SUPER_SCOPE_TABLE +{ + DWORD cEntries; +#if defined( MIDL_PASS ) + [ size_is( cEntries ) ] +#endif + DHCP_SUPER_SCOPE_TABLE_ENTRY *pEntries; +} DHCP_SUPER_SCOPE_TABLE, *LPDHCP_SUPER_SCOPE_TABLE; + + +typedef struct _DHCP_CLIENT_INFO_V5 { + DHCP_IP_ADDRESS ClientIpAddress; // currently assigned IP address. + DHCP_IP_MASK SubnetMask; + DHCP_CLIENT_UID ClientHardwareAddress; + LPWSTR ClientName; // optional. + LPWSTR ClientComment; + DATE_TIME ClientLeaseExpires; // UTC time in FILE_TIME format. + DHCP_HOST_INFO OwnerHost; // host that distributed this IP address. + BYTE bClientType; + BYTE AddressState; +} DHCP_CLIENT_INFO_V5, *LPDHCP_CLIENT_INFO_V5; + + +#define V5_ADDRESS_STATE_OFFERED 0x0 +#define V5_ADDRESS_STATE_ACTIVE 0x1 +#define V5_ADDRESS_STATE_DECLINED 0x2 +#define V5_ADDRESS_STATE_DOOM 0x3 + +#define V5_ADDRESS_BIT_DELETED 0x80 +#define V5_ADDRESS_BIT_UNREGISTERED 0x40 +#define V5_ADDRESS_BIT_BOTH_REC 0x20 + + +#define V5_ADDRESS_EX_BIT_DISABLE_PTR_RR 0x01 + +#define DNS_FLAG_ENABLED 0x01 +#define DNS_FLAG_UPDATE_DOWNLEVEL 0x02 +#define DNS_FLAG_CLEANUP_EXPIRED 0x04 +#define DNS_FLAG_UPDATE_BOTH_ALWAYS 0x10 +#define DNS_FLAG_UPDATE_DHCID 0x20 +#define DNS_FLAG_DISABLE_PTR_UPDATE 0x40 +#define DNS_FLAG_HAS_DNS_SUFFIX 0x80 + +typedef struct _DHCP_CLIENT_INFO_ARRAY_V5 { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_CLIENT_INFO_V5 *Clients; // array of pointers +} DHCP_CLIENT_INFO_ARRAY_V5, *LPDHCP_CLIENT_INFO_ARRAY_V5; + + +#define DHCP_OPT_ENUM_IGNORE_VENDOR 0x01 +#define DHCP_OPT_ENUM_USE_CLASSNAME 0x02 + +typedef struct _DHCP_ALL_OPTIONS { + DWORD Flags; // must be zero -- not used.. + LPDHCP_OPTION_ARRAY NonVendorOptions; + DWORD NumVendorOptions; + +#if defined(MIDL_PASS) + [size_is(NumVendorOptions)] +#endif + struct { + DHCP_OPTION Option; + LPWSTR VendorName; + LPWSTR ClassName; + } *VendorOptions; +} DHCP_ALL_OPTIONS, *LPDHCP_ALL_OPTIONS; + + +typedef struct _DHCP_ALL_OPTION_VALUES { + DWORD Flags; // must be zero -- not used + DWORD NumElements; // the # of elements in array of Options below.. +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + struct /* anonymous */ { + LPWSTR ClassName; // for each user class (NULL if none exists) + LPWSTR VendorName; // for each vendor class (NULL if none exists) + BOOL IsVendor; // is this set of options vendor specific? + LPDHCP_OPTION_VALUE_ARRAY OptionsArray; // list of options for the above pair: (vendor,user) + } *Options; // for each vendor/user class pair, one element in this array.. +} DHCP_ALL_OPTION_VALUES, *LPDHCP_ALL_OPTION_VALUES; + +#ifndef _ST_SRVR_H_ +#define _ST_SRVR_H_ + +typedef struct _DHCP_ALL_OPTION_VALUES_PB { + DWORD Flags; // must be zero -- not used + DWORD NumElements; // the # of elements in array of Options below.. +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + struct /* anonymous */ { + LPWSTR PolicyName; // for each policy (NULL if none exists) + LPWSTR VendorName; // for each vendor class (NULL if none exists) + BOOL IsVendor; // is this set of options vendor specific? + LPDHCP_OPTION_VALUE_ARRAY OptionsArray; // list of options for the above pair: (vendor,user) + } *Options; // for each vendor/user class pair, one element in this array.. +} DHCP_ALL_OPTION_VALUES_PB, *LPDHCP_ALL_OPTION_VALUES_PB; + +typedef struct _DHCPDS_SERVER { + DWORD Version; + LPWSTR ServerName; + DWORD ServerAddress; + DWORD Flags; + DWORD State; + LPWSTR DsLocation; + DWORD DsLocType; +} DHCPDS_SERVER, *LPDHCPDS_SERVER, *PDHCPDS_SERVER; + +typedef struct _DHCPDS_SERVERS { + DWORD Flags; + DWORD NumElements; + LPDHCPDS_SERVER Servers; +} DHCPDS_SERVERS, *LPDHCPDS_SERVERS, *PDHCPDS_SERVERS; + +typedef DHCPDS_SERVER DHCP_SERVER_INFO; +typedef PDHCPDS_SERVER PDHCP_SERVER_INFO; +typedef LPDHCPDS_SERVER LPDHCP_SERVER_INFO; + +typedef DHCPDS_SERVERS DHCP_SERVER_INFO_ARRAY; +typedef PDHCPDS_SERVERS PDHCP_SERVER_INFO_ARRAY; +typedef LPDHCPDS_SERVERS LPDHCP_SERVER_INFO_ARRAY; + +#endif // _ST_SRVR_H_ + +#define DHCP_FLAGS_DONT_ACCESS_DS 0x01 +#define DHCP_FLAGS_DONT_DO_RPC 0x02 +#define DHCP_FLAGS_OPTION_IS_VENDOR 0x03 + +#define DHCP_ATTRIB_BOOL_IS_ROGUE 0x01 +#define DHCP_ATTRIB_BOOL_IS_DYNBOOTP 0x02 +#define DHCP_ATTRIB_BOOL_IS_PART_OF_DSDC 0x03 +#define DHCP_ATTRIB_BOOL_IS_BINDING_AWARE 0x04 +#define DHCP_ATTRIB_BOOL_IS_ADMIN 0x05 +#define DHCP_ATTRIB_ULONG_RESTORE_STATUS 0x06 + +#define DHCP_ATTRIB_TYPE_BOOL 0x01 +#define DHCP_ATTRIB_TYPE_ULONG 0x02 + +typedef ULONG DHCP_ATTRIB_ID, *PDHCP_ATTRIB_ID, *LPDHCP_ATTRIB_ID; + +typedef struct _DHCP_ATTRIB { + DHCP_ATTRIB_ID DhcpAttribId; // one of the DHCP_ATTRIB_* + ULONG DhcpAttribType;// type of attrib +#if defined(MIDL_PASS) + [switch_is(DhcpAttribType), switch_type(ULONG)] + union { + [case(DHCP_ATTRIB_TYPE_BOOL)] BOOL DhcpAttribBool; + [case(DHCP_ATTRIB_TYPE_ULONG)] ULONG DhcpAttribUlong; + }; +#else // MIDL_PASS + union { + BOOL DhcpAttribBool; + ULONG DhcpAttribUlong; + }; +#endif // MIDL_PASS +} DHCP_ATTRIB, *PDHCP_ATTRIB, *LPDHCP_ATTRIB; + +typedef struct _DHCP_ATTRIB_ARRAY { + ULONG NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + _Field_size_(NumElements) LPDHCP_ATTRIB DhcpAttribs; +} DHCP_ATTRIB_ARRAY, *PDHCP_ATTRIB_ARRAY, *LPDHCP_ATTRIB_ARRAY; + + + +typedef struct _DHCP_BOOTP_IP_RANGE { + DHCP_IP_ADDRESS StartAddress; + DHCP_IP_ADDRESS EndAddress; + ULONG BootpAllocated; + ULONG MaxBootpAllowed; +} DHCP_BOOTP_IP_RANGE, *LPDHCP_BOOT_IP_RANGE; + + +typedef struct _DHCP_SUBNET_ELEMENT_DATA_V5 { + DHCP_SUBNET_ELEMENT_TYPE ElementType; +#if defined(MIDL_PASS) + [switch_is(ELEMENT_MASK(ElementType)), switch_type(DHCP_SUBNET_ELEMENT_TYPE)] + union _DHCP_SUBNET_ELEMENT_UNION_V5 { + [case(DhcpIpRanges)] DHCP_BOOTP_IP_RANGE *IpRange; + [case(DhcpSecondaryHosts)] DHCP_HOST_INFO *SecondaryHost; + [case(DhcpReservedIps)] DHCP_IP_RESERVATION_V4 *ReservedIp; + [case(DhcpExcludedIpRanges)] DHCP_IP_RANGE *ExcludeIpRange; + [case(DhcpIpUsedClusters)] DHCP_IP_CLUSTER *IpUsedCluster; + } Element; +#else + union _DHCP_SUBNET_ELEMENT_UNION_V5 { + DHCP_BOOTP_IP_RANGE *IpRange; + DHCP_HOST_INFO *SecondaryHost; + DHCP_IP_RESERVATION_V4 *ReservedIp; + DHCP_IP_RANGE *ExcludeIpRange; + DHCP_IP_CLUSTER *IpUsedCluster; + } Element; +#endif // MIDL_PASS +} DHCP_SUBNET_ELEMENT_DATA_V5, *LPDHCP_SUBNET_ELEMENT_DATA_V5; + +typedef struct _DHCP_SUBNET_ELEMENT_INFO_ARRAY_V5 { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_SUBNET_ELEMENT_DATA_V5 Elements; //array +} DHCP_SUBNET_ELEMENT_INFO_ARRAY_V5, *LPDHCP_SUBNET_ELEMENT_INFO_ARRAY_V5; + + + + +#pragma pack(4) +typedef struct _DHCP_PERF_STATS { // performance statistics + // + // DO NOT CHANGE THIS ORDER -- THIS AFFECTS THE PERF COUNTER DEFINITION + // ORDER IN DHCPDATA.C (under PERF directory) + // + ULONG dwNumPacketsReceived; + ULONG dwNumPacketsDuplicate; + ULONG dwNumPacketsExpired; + ULONG dwNumMilliSecondsProcessed; + ULONG dwNumPacketsInActiveQueue; + ULONG dwNumPacketsInPingQueue; + + ULONG dwNumDiscoversReceived; + ULONG dwNumOffersSent; + + ULONG dwNumRequestsReceived; + ULONG dwNumInformsReceived; + ULONG dwNumAcksSent; + ULONG dwNumNacksSent; + + ULONG dwNumDeclinesReceived; + ULONG dwNumReleasesReceived; + + // Count of Delayed Offer sent + ULONG dwNumDelayedOfferInQueue; + ULONG dwNumPacketsProcessed; + + // For Quarantine + ULONG dwNumPacketsInQuarWaitingQueue; + ULONG dwNumPacketsInQuarReadyQueue; + ULONG dwNumPacketsInQuarDecisionQueue; + + +} DHCP_PERF_STATS, *LPDHCP_PERF_STATS; +#pragma pack() + + +#define DHCP_ENDPOINT_FLAG_CANT_MODIFY 0x01 + +typedef struct _DHCP_BIND_ELEMENT { + ULONG Flags; + BOOL fBoundToDHCPServer; + DHCP_IP_ADDRESS AdapterPrimaryAddress; + DHCP_IP_ADDRESS AdapterSubnetAddress; + LPWSTR IfDescription; + ULONG IfIdSize; +#if defined (MIDL_PASS) + [size_is(IfIdSize)] +#endif // MIDL_PASS + _Field_size_bytes_(IfIdSize) LPBYTE IfId; +} DHCP_BIND_ELEMENT, *LPDHCP_BIND_ELEMENT; + +typedef struct _DHCP_BIND_ELEMENT_ARRAY { + DWORD NumElements; +#if defined (MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_BIND_ELEMENT Elements; //array +} DHCP_BIND_ELEMENT_ARRAY, *LPDHCP_BIND_ELEMENT_ARRAY; + + +typedef struct _DHCPV6_BIND_ELEMENT { + ULONG Flags; + BOOL fBoundToDHCPServer; + DHCP_IPV6_ADDRESS AdapterPrimaryAddress; + DHCP_IPV6_ADDRESS AdapterSubnetAddress; + LPWSTR IfDescription; + DWORD IpV6IfIndex; + ULONG IfIdSize; +#if defined (MIDL_PASS) + [size_is(IfIdSize)] +#endif // MIDL_PASS + LPBYTE IfId; +} DHCPV6_BIND_ELEMENT, *LPDHCPV6_BIND_ELEMENT; + +typedef struct _DHCPV6_BIND_ELEMENT_ARRAY { + DWORD NumElements; +#if defined (MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCPV6_BIND_ELEMENT Elements; //array +} DHCPV6_BIND_ELEMENT_ARRAY, *LPDHCPV6_BIND_ELEMENT_ARRAY; + + +// +// For Quarantine +// + +#define QUARANTIN_OPTION_BASE 43220 + +#define QUARANTINE_SCOPE_QUARPROFILE_OPTION (QUARANTIN_OPTION_BASE + 1) + +#define QUARANTINE_CONFIG_OPTION (QUARANTIN_OPTION_BASE + 2) + + + + +// DHCP IPV6 specific Structures + +typedef struct _DHCP_IP_RANGE_V6 { + DHCP_IPV6_ADDRESS StartAddress; + DHCP_IPV6_ADDRESS EndAddress; +} DHCP_IP_RANGE_V6, *LPDHCP_IP_RANGE_V6; + +typedef struct _DHCP_HOST_INFO_V6 { + DHCP_IPV6_ADDRESS IpAddress; // minimum information always available + LPWSTR NetBiosName; // optional information + LPWSTR HostName; // optional information +} DHCP_HOST_INFO_V6, *LPDHCP_HOST_INFO_V6; + + +typedef struct _DHCP_SUBNET_INFO_V6 +{ + DHCP_IPV6_ADDRESS SubnetAddress; + ULONG Prefix; + USHORT Preference; + LPWSTR SubnetName; + LPWSTR SubnetComment; + DWORD State; + DWORD ScopeId; +} DHCP_SUBNET_INFO_V6, *PDHCP_SUBNET_INFO_V6,*LPDHCP_SUBNET_INFO_V6; + + +// +// Mib Info structures. +// + +typedef struct _SCOPE_MIB_INFO_V6 { + DHCP_IPV6_ADDRESS Subnet; + ULONGLONG NumAddressesInuse; + ULONGLONG NumAddressesFree; + ULONGLONG NumPendingAdvertises; +} SCOPE_MIB_INFO_V6, *LPSCOPE_MIB_INFO_V6; + +typedef struct _DHCP_MIB_INFO_V6 { + DWORD Solicits; + DWORD Advertises; + DWORD Requests; + DWORD Renews; + DWORD Rebinds; + DWORD Replies; + DWORD Confirms; + DWORD Declines; + DWORD Releases; + DWORD Informs; + DATE_TIME ServerStartTime; + DWORD Scopes; +#if defined(MIDL_PASS) + [size_is(Scopes)] +#endif // MIDL_PASS + LPSCOPE_MIB_INFO_V6 ScopeInfo; // array. +} DHCP_MIB_INFO_V6, *LPDHCP_MIB_INFO_V6; + +typedef struct _DHCP_IP_RESERVATION_V6 { + DHCP_IPV6_ADDRESS ReservedIpAddress; + DHCP_CLIENT_UID *ReservedForClient; + DWORD InterfaceId; +} DHCP_IP_RESERVATION_V6, *LPDHCP_IP_RESERVATION_V6; + +typedef enum _DHCP_SUBNET_ELEMENT_TYPE_V6 { + Dhcpv6IpRanges, + Dhcpv6ReservedIps, + Dhcpv6ExcludedIpRanges +} DHCP_SUBNET_ELEMENT_TYPE_V6, *LPDHCP_SUBNET_ELEMENT_TYPE_V6; + +typedef struct _DHCP_SUBNET_ELEMENT_DATA_V6 { + DHCP_SUBNET_ELEMENT_TYPE_V6 ElementType; +#if defined(MIDL_PASS) + [switch_is(ELEMENT_MASK(ElementType)), switch_type(DHCP_SUBNET_ELEMENT_TYPE_V6)] + union _DHCP_SUBNET_ELEMENT_UNION_V6 { + [case(Dhcpv6IpRanges)] DHCP_IP_RANGE_V6 *IpRange; + [case(Dhcpv6ReservedIps)] DHCP_IP_RESERVATION_V6 *ReservedIp; + [case(Dhcpv6ExcludedIpRanges)] DHCP_IP_RANGE_V6 *ExcludeIpRange; + } Element; +#else + union _DHCP_SUBNET_ELEMENT_UNION_V6 { + DHCP_IP_RANGE_V6 *IpRange; + DHCP_IP_RESERVATION_V6 *ReservedIp; + DHCP_IP_RANGE_V6 *ExcludeIpRange; + } Element; +#endif // MIDL_PASS +} DHCP_SUBNET_ELEMENT_DATA_V6, *LPDHCP_SUBNET_ELEMENT_DATA_V6; + +#if !defined(MIDL_PASS) +typedef union _DHCP_SUBNET_ELEMENT_UNION_V6 + DHCP_SUBNET_ELEMENT_UNION_V6, *LPDHCP_SUBNET_ELEMENT_UNION_V6; +#endif + +typedef struct _DHCP_SUBNET_ELEMENT_INFO_ARRAY_V6 { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_SUBNET_ELEMENT_DATA_V6 Elements; //array +} DHCP_SUBNET_ELEMENT_INFO_ARRAY_V6, *LPDHCP_SUBNET_ELEMENT_INFO_ARRAY_V6; + + + +// +// DHCPv6 Client information data structures +// + +#define ADDRESS_TYPE_IANA 0 +#define ADDRESS_TYPE_IATA 1 + +typedef struct _DHCP_CLIENT_INFO_V6 { + DHCP_IPV6_ADDRESS ClientIpAddress; // currently assigned IP address. + DHCP_CLIENT_UID ClientDUID; + DWORD AddressType; // IANA or IATA + DWORD IAID; // IAID Associated with the address. + LPWSTR ClientName; // optional. + LPWSTR ClientComment; + DATE_TIME ClientValidLeaseExpires; // UTC time in FILE_TIME format. + DATE_TIME ClientPrefLeaseExpires; // UTC time in FILE_TIME format. + DHCP_HOST_INFO_V6 OwnerHost; // host that distributed this IP address. +} DHCP_CLIENT_INFO_V6, *LPDHCP_CLIENT_INFO_V6; + +typedef struct _DHCPV6_IP_ARRAY { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_IPV6_ADDRESS Elements; //array +} DHCPV6_IP_ARRAY, *LPDHCPV6_IP_ARRAY; + +typedef struct _DHCP_CLIENT_INFO_ARRAY_V6 { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + LPDHCP_CLIENT_INFO_V6 *Clients; // array of pointers +} DHCP_CLIENT_INFO_ARRAY_V6, *LPDHCP_CLIENT_INFO_ARRAY_V6; + + +typedef enum _DHCP_CLIENT_SEARCH_TYPE_V6 { + Dhcpv6ClientIpAddress, + Dhcpv6ClientDUID, + Dhcpv6ClientName +} DHCP_SEARCH_INFO_TYPE_V6, *LPDHCP_SEARCH_INFO_TYPE_V6; + +typedef struct _DHCP_CLIENT_SEARCH_INFO_V6 { + DHCP_SEARCH_INFO_TYPE_V6 SearchType; +#if defined(MIDL_PASS) + [switch_is(SearchType), switch_type(DHCP_SEARCH_INFO_TYPE_V6)] + union _DHCP_CLIENT_SEARCH_UNION_V6 { + [case(Dhcpv6ClientIpAddress)] DHCP_IPV6_ADDRESS ClientIpAddress; + [case(Dhcpv6ClientDUID)] DHCP_CLIENT_UID ClientDUID; + [case(Dhcpv6ClientName)] LPWSTR ClientName; + } SearchInfo; +#else + union _DHCP_CLIENT_SEARCH_UNION_V6 { + DHCP_IPV6_ADDRESS ClientIpAddress; + DHCP_CLIENT_UID ClientDUID; + LPWSTR ClientName; + } SearchInfo; +#endif // MIDL_PASS +} DHCP_SEARCH_INFO_V6, *LPDHCP_SEARCH_INFO_V6; + +//3 Policy Structures begin + +typedef enum +{ + DhcpAttrHWAddr, + DhcpAttrOption, + DhcpAttrSubOption, + DhcpAttrFqdn, + DhcpAttrFqdnSingleLabel, +} DHCP_POL_ATTR_TYPE; + +typedef enum +{ + DhcpCompEqual, + DhcpCompNotEqual, + DhcpCompBeginsWith, + DhcpCompNotBeginWith, + DhcpCompEndsWith, + DhcpCompNotEndWith, +} DHCP_POL_COMPARATOR; + +typedef enum +{ + DhcpLogicalOr, + DhcpLogicalAnd, +} DHCP_POL_LOGIC_OPER; + +typedef enum { + DhcpUpdatePolicyName = 0x00000001, + DhcpUpdatePolicyOrder = 0x00000002, + DhcpUpdatePolicyExpr = 0x00000004, + DhcpUpdatePolicyRanges = 0x00000008, + DhcpUpdatePolicyDescr = 0x00000010, + DhcpUpdatePolicyStatus = 0x00000020, + DhcpUpdatePolicyDnsSuffix= 0x00000040, +} DHCP_POLICY_FIELDS_TO_UPDATE; + + +typedef struct _DHCP_POL_COND +{ + DWORD ParentExpr; + DHCP_POL_ATTR_TYPE Type; + DWORD OptionID; + DWORD SubOptionID; + LPWSTR VendorName; + DHCP_POL_COMPARATOR Operator; + #if defined( MIDL_PASS ) + [ size_is( ValueLength ) ] + #endif //MIDL_PASS + _Field_size_bytes_(ValueLength) LPBYTE Value; + DWORD ValueLength; + +} DHCP_POL_COND, *PDHCP_POL_COND, *LPDHCP_POL_COND; + +typedef struct _DHCP_POL_COND_ARRAY { + DWORD NumElements; + #if defined( MIDL_PASS ) + [ size_is( NumElements ) ] + #endif //MIDL_PASS + _Field_size_(NumElements) LPDHCP_POL_COND Elements; +} DHCP_POL_COND_ARRAY, *PDHCP_POL_COND_ARRAY, *LPDHCP_POL_COND_ARRAY; + +typedef struct _DHCP_POL_EXPR +{ + DWORD ParentExpr; + DHCP_POL_LOGIC_OPER Operator; +} DHCP_POL_EXPR, *PDHCP_POL_EXPR, *LPDHCP_POL_EXPR; + +typedef struct _DHCP_POL_EXPR_ARRAY { + DWORD NumElements; + #if defined( MIDL_PASS ) + [ size_is( NumElements ) ] + #endif //MIDL_PASS + _Field_size_(NumElements) LPDHCP_POL_EXPR Elements; +} DHCP_POL_EXPR_ARRAY, *PDHCP_POL_EXPR_ARRAY, *LPDHCP_POL_EXPR_ARRAY; + +typedef struct _DHCP_IP_RANGE_ARRAY { + DWORD NumElements; + #if defined( MIDL_PASS ) + [ size_is( NumElements ) ] + #endif //MIDL_PASS + _Field_size_(NumElements) LPDHCP_IP_RANGE Elements; +} DHCP_IP_RANGE_ARRAY, *PDHCP_IP_RANGE_ARRAY, *LPDHCP_IP_RANGE_ARRAY; + +// +// Any changes made to this structure must be synced with _DHCP_POLICY_EX +// for memory alignment as it is used interchangibly with _DHCP_POLICY_EX +// in a lot of locations +// + +typedef struct _DHCP_POLICY +{ + LPWSTR PolicyName; + BOOL IsGlobalPolicy; + DHCP_IP_ADDRESS Subnet; + DWORD ProcessingOrder; + LPDHCP_POL_COND_ARRAY Conditions; + LPDHCP_POL_EXPR_ARRAY Expressions; + LPDHCP_IP_RANGE_ARRAY Ranges; + LPWSTR Description; + BOOL Enabled; +} DHCP_POLICY, *PDHCP_POLICY, *LPDHCP_POLICY; + +typedef struct _DHCP_POLICY_ARRAY { + DWORD NumElements; + #if defined( MIDL_PASS ) + [ size_is( NumElements ) ] + #endif //MIDL_PASS + _Field_size_(NumElements) LPDHCP_POLICY Elements; +} DHCP_POLICY_ARRAY, *PDHCP_POLICY_ARRAY, *LPDHCP_POLICY_ARRAY; + + + +// +// Please refer to comments on _DHCP_POLICY before editing this strucutre +// + +typedef struct _DHCP_POLICY_EX +{ + LPWSTR PolicyName; + BOOL IsGlobalPolicy; + DHCP_IP_ADDRESS Subnet; + DWORD ProcessingOrder; + LPDHCP_POL_COND_ARRAY Conditions; + LPDHCP_POL_EXPR_ARRAY Expressions; + LPDHCP_IP_RANGE_ARRAY Ranges; + LPWSTR Description; + BOOL Enabled; + LPDHCP_PROPERTY_ARRAY Properties; +} DHCP_POLICY_EX, *PDHCP_POLICY_EX, *LPDHCP_POLICY_EX; + +typedef struct _DHCP_POLICY_EX_ARRAY { + DWORD NumElements; + #if defined( MIDL_PASS ) + [ size_is( NumElements ) ] + #endif //MIDL_PASS + _Field_size_(NumElements) LPDHCP_POLICY_EX Elements; +} DHCP_POLICY_EX_ARRAY, *PDHCP_POLICY_EX_ARRAY, *LPDHCP_POLICY_EX_ARRAY; + + +//3 Policy Structures end + +//3 Stateless Client Inventory structures + +typedef enum +{ + DhcpStatelessPurgeInterval = 0x01, + DhcpStatelessStatus = 0x02 +} DHCPV6_STATELESS_PARAM_TYPE; + +typedef struct +{ + BOOL Status; + DWORD PurgeInterval; +} DHCPV6_STATELESS_PARAMS, *PDHCPV6_STATELESS_PARAMS, *LPDHCPV6_STATELESS_PARAMS; + +typedef struct +{ + DHCP_IPV6_ADDRESS SubnetAddress; + ULONGLONG NumStatelessClientsAdded; + ULONGLONG NumStatelessClientsRemoved; +} DHCPV6_STATELESS_SCOPE_STATS, *PDHCPV6_STATELESS_SCOPE_STATS, *LPDHCPV6_STATELESS_SCOPE_STATS; + +typedef struct +{ + DWORD NumScopes; + #if defined( MIDL_PASS ) + [ size_is( NumScopes ) ] + #endif //MIDL_PASS + _Field_size_(NumScopes) LPDHCPV6_STATELESS_SCOPE_STATS ScopeStats; +} DHCPV6_STATELESS_STATS, *PDHCPV6_STATELESS_STATS, *LPDHCPV6_STATELESS_STATS; + +//3 Stateless Client Inventory structures end + + + +#define SCOPE_STATE_ENABLED DhcpSubnetEnabled +#define SCOPE_STATE_DISABLED DhcpSubnetDisabled + + +#define DHCP_MIN_DELAY 0 +#define DHCP_MAX_DELAY 1000 + + +#ifndef DHCPAPI_NO_PROTOTYPES + +// +// DHCP Filter related APIs +// + + +DWORD DHCP_API_FUNCTION +DhcpAddFilterV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_FILTER_ADD_INFO *AddFilterInfo, + _In_ BOOL ForceFlag + ); + +DWORD DHCP_API_FUNCTION +DhcpDeleteFilterV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_ADDR_PATTERN *DeleteFilterInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpSetFilterV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_FILTER_GLOBAL_INFO *GlobalFilterInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpGetFilterV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _Out_ DHCP_FILTER_GLOBAL_INFO *GlobalFilterInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumFilterV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _Inout_ LPDHCP_ADDR_PATTERN ResumeHandle, + _In_ DWORD PreferredMaximum, + _In_ DHCP_FILTER_LIST_TYPE ListType, + _Out_ LPDHCP_FILTER_ENUM_INFO *EnumFilterInfo, + _Out_ DWORD *ElementsRead, + _Out_ DWORD *ElementsTotal + ); + + +// +// Subnet APIs +// + +DWORD DHCP_API_FUNCTION +DhcpCreateSubnet( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_CONST DHCP_SUBNET_INFO * SubnetInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpSetSubnetInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_CONST DHCP_SUBNET_INFO * SubnetInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpGetSubnetInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + LPDHCP_SUBNET_INFO * SubnetInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnets( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _Inout_ DHCP_RESUME_HANDLE *ResumeHandle, + _In_ DWORD PreferredMaximum, + _Inout_ LPDHCP_IP_ARRAY *EnumInfo, + _Out_ DWORD *ElementsRead, + _Out_ DWORD *ElementsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpAddSubnetElement( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_CONST DHCP_SUBNET_ELEMENT_DATA * AddElementInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetElements( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_SUBNET_ELEMENT_TYPE EnumElementType, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_SUBNET_ELEMENT_INFO_ARRAY *EnumElementInfo, + DWORD *ElementsRead, + DWORD *ElementsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpRemoveSubnetElement( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_CONST DHCP_SUBNET_ELEMENT_DATA * RemoveElementInfo, + DHCP_FORCE_FLAG ForceFlag + ); + +DWORD DHCP_API_FUNCTION +DhcpDeleteSubnet( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_FORCE_FLAG ForceFlag + ); + +// +// Option APIs +// + +DWORD DHCP_API_FUNCTION +DhcpCreateOption( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_OPTION_ID OptionID, + DHCP_CONST DHCP_OPTION * OptionInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpSetOptionInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_OPTION_ID OptionID, + DHCP_CONST DHCP_OPTION *OptionInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpGetOptionInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_OPTION_ID OptionID, + LPDHCP_OPTION *OptionInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumOptions( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_OPTION_ARRAY *Options, + DWORD *OptionsRead, + DWORD *OptionsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpRemoveOption( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_OPTION_ID OptionID + ); + +DWORD DHCP_API_FUNCTION +DhcpSetOptionValue( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_OPTION_ID OptionID, + DHCP_CONST DHCP_OPTION_SCOPE_INFO *ScopeInfo, + DHCP_CONST DHCP_OPTION_DATA *OptionValue + ); + +DWORD DHCP_API_FUNCTION +DhcpSetOptionValues( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_OPTION_SCOPE_INFO *ScopeInfo, + DHCP_CONST DHCP_OPTION_VALUE_ARRAY *OptionValues + ); + +DWORD DHCP_API_FUNCTION +DhcpGetOptionValue( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_OPTION_ID OptionID, + DHCP_CONST DHCP_OPTION_SCOPE_INFO *ScopeInfo, + LPDHCP_OPTION_VALUE *OptionValue + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumOptionValues( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_OPTION_SCOPE_INFO *ScopeInfo, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_OPTION_VALUE_ARRAY *OptionValues, + DWORD *OptionsRead, + DWORD *OptionsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpRemoveOptionValue( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_OPTION_ID OptionID, + DHCP_CONST DHCP_OPTION_SCOPE_INFO *ScopeInfo + ); + +// +// Client APIs +// +DWORD DHCP_API_FUNCTION +DhcpCreateClientInfoVQ( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_CLIENT_INFO_VQ *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpSetClientInfoVQ( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_CLIENT_INFO_VQ *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpGetClientInfoVQ( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_SEARCH_INFO *SearchInfo, + LPDHCP_CLIENT_INFO_VQ *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetClientsVQ( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_CLIENT_INFO_ARRAY_VQ *ClientInfo, + DWORD *ClientsRead, + DWORD *ClientsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetClientsFilterStatusInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_CLIENT_FILTER_STATUS_INFO_ARRAY *ClientInfo, + DWORD *ClientsRead, + DWORD *ClientsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpCreateClientInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_CLIENT_INFO *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpSetClientInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_CLIENT_INFO *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpGetClientInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_SEARCH_INFO *SearchInfo, + LPDHCP_CLIENT_INFO *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpDeleteClientInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_SEARCH_INFO *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetClients( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_CLIENT_INFO_ARRAY *ClientInfo, + DWORD *ClientsRead, + DWORD *ClientsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpGetClientOptions( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS ClientIpAddress, + DHCP_IP_MASK ClientSubnetMask, + LPDHCP_OPTION_LIST *ClientOptions + ); + +DWORD DHCP_API_FUNCTION +DhcpGetMibInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + LPDHCP_MIB_INFO *MibInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpServerSetConfig( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DWORD FieldsToSet, + LPDHCP_SERVER_CONFIG_INFO ConfigInfo + ); + + +DWORD DHCP_API_FUNCTION +DhcpServerGetConfig( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + LPDHCP_SERVER_CONFIG_INFO *ConfigInfo + ); + + +DWORD DHCP_API_FUNCTION +DhcpScanDatabase( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DWORD FixFlag, + LPDHCP_SCAN_LIST *ScanList + ); + +VOID DHCP_API_FUNCTION +DhcpRpcFreeMemory( + PVOID BufferPointer + ); + +DWORD DHCP_API_FUNCTION +DhcpGetVersion( + _In_opt_ LPWSTR ServerIpAddress, + LPDWORD MajorVersion, + LPDWORD MinorVersion + ); + + + + +DWORD DHCP_API_FUNCTION +DhcpAddSubnetElementV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_CONST DHCP_SUBNET_ELEMENT_DATA_V4 *AddElementInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetElementsV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_SUBNET_ELEMENT_TYPE EnumElementType, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_SUBNET_ELEMENT_INFO_ARRAY_V4 *EnumElementInfo, + DWORD *ElementsRead, + DWORD *ElementsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpRemoveSubnetElementV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_CONST DHCP_SUBNET_ELEMENT_DATA_V4 *RemoveElementInfo, + DHCP_FORCE_FLAG ForceFlag + ); + + +DWORD DHCP_API_FUNCTION +DhcpCreateClientInfoV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_CLIENT_INFO_V4 *ClientInfo + ); + + +DWORD DHCP_API_FUNCTION +DhcpSetClientInfoV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_CLIENT_INFO_V4 *ClientInfo + ); + + +DWORD DHCP_API_FUNCTION +DhcpGetClientInfoV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_SEARCH_INFO *SearchInfo, + LPDHCP_CLIENT_INFO_V4 *ClientInfo + ); + + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetClientsV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_CLIENT_INFO_ARRAY_V4 *ClientInfo, + DWORD *ClientsRead, + DWORD *ClientsTotal + ); + + +DWORD DHCP_API_FUNCTION +DhcpServerSetConfigV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DWORD FieldsToSet, + LPDHCP_SERVER_CONFIG_INFO_V4 ConfigInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpServerGetConfigV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + LPDHCP_SERVER_CONFIG_INFO_V4 *ConfigInfo + ); + + +DWORD +DhcpSetSuperScopeV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_IP_ADDRESS SubnetAddress, + _In_opt_ DHCP_CONST LPWSTR SuperScopeName, + DHCP_CONST BOOL ChangeExisting + ); + +DWORD +DhcpDeleteSuperScopeV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_CONST LPWSTR SuperScopeName + ); + +DWORD +DhcpGetSuperScopeInfoV4( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + LPDHCP_SUPER_SCOPE_TABLE *SuperScopeTable + ); + + + + + + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetClientsV5( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_CLIENT_INFO_ARRAY_V5 *ClientInfo, + DWORD *ClientsRead, + DWORD *ClientsTotal + ); + + + + +DWORD +DhcpCreateOptionV5( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionId, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION OptionInfo +) ; + + +DWORD // ERROR_DHCP_OPTION_NOT_PRESENT if option does not exist +DhcpSetOptionInfoV5( // Modify existing option's fields + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION OptionInfo +) ; + + +DWORD // ERROR_DHCP_OPTION_NOT_PRESENT +DhcpGetOptionInfoV5( // retrieve the information from off the mem structures + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + OUT LPDHCP_OPTION *OptionInfo // allocate memory using MIDL functions +) ; + + +DWORD // ERROR_DHCP_OPTION_NOT_PRESENT if option does not exist +DhcpEnumOptionsV5( // enumerate the options defined + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN OUT DHCP_RESUME_HANDLE *ResumeHandle, + IN DWORD PreferredMaximum, + OUT LPDHCP_OPTION_ARRAY *Options, + OUT DWORD *OptionsRead, + OUT DWORD *OptionsTotal +) ; + + +DWORD // ERROR_DHCP_OPTION_NOT_PRESENT if option not existent +DhcpRemoveOptionV5( // remove the option definition from the registry + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName +) ; + + +DWORD // OPTION_NOT_PRESENT if option is not defined +DhcpSetOptionValueV5( // replace or add a new option value + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionId, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo, + IN LPDHCP_OPTION_DATA OptionValue +) ; + + +DWORD +DhcpSetOptionValuesV5( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo, + IN LPDHCP_OPTION_VALUE_ARRAY OptionValues +) ; + + +DWORD +DhcpGetOptionValueV5( // fetch the required option at required level + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo, + OUT LPDHCP_OPTION_VALUE *OptionValue +) ; + +DWORD +DhcpGetOptionValueV6( // fetch the required option at required level + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO6 ScopeInfo, + OUT LPDHCP_OPTION_VALUE *OptionValue +) ; + + +DWORD +DhcpEnumOptionValuesV5( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo, + IN DHCP_RESUME_HANDLE *ResumeHandle, + IN DWORD PreferredMaximum, + OUT LPDHCP_OPTION_VALUE_ARRAY *OptionValues, + OUT DWORD *OptionsRead, + OUT DWORD *OptionsTotal +) ; + + +DWORD +DhcpRemoveOptionValueV5( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo +) ; + + +DWORD +DhcpCreateClass( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD ReservedMustBeZero, + IN LPDHCP_CLASS_INFO ClassInfo +) ; + + +DWORD +DhcpModifyClass( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD ReservedMustBeZero, + IN LPDHCP_CLASS_INFO ClassInfo +) ; + + +DWORD +DhcpDeleteClass( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD ReservedMustBeZero, + _In_ IN LPWSTR ClassName +) ; + + +DWORD +DhcpGetClassInfo( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD ReservedMustBeZero, + IN LPDHCP_CLASS_INFO PartialClassInfo, + OUT LPDHCP_CLASS_INFO *FilledClassInfo +) ; + + +DWORD +DhcpEnumClasses( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD ReservedMustBeZero, + IN OUT DHCP_RESUME_HANDLE *ResumeHandle, + IN DWORD PreferredMaximum, + OUT LPDHCP_CLASS_INFO_ARRAY *ClassInfoArray, + OUT DWORD *nRead, + OUT DWORD *nTotal +) ; + + + +DWORD +DhcpGetAllOptions( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + OUT LPDHCP_ALL_OPTIONS *OptionStruct // fills the fields of this structure +) ; + +DWORD DHCP_API_FUNCTION +DhcpGetAllOptionsV6( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + OUT LPDHCP_ALL_OPTIONS *OptionStruct // fills the fields of this structure +); + +DWORD +DhcpGetAllOptionValues( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo, + OUT LPDHCP_ALL_OPTION_VALUES *Values +) ; + +DWORD DHCP_API_FUNCTION +DhcpGetAllOptionValuesV6( + _In_opt_ LPWSTR ServerIpAddress, + IN DWORD Flags, + IN LPDHCP_OPTION_SCOPE_INFO6 ScopeInfo, + OUT LPDHCP_ALL_OPTION_VALUES *Values +); + + + + + + +//DOC DhcpEnumServers enumerates the list of servers found in the DS. If the DS +//DOC is not accessible, it returns an error. The only currently used parameter +//DOC is the out parameter Servers. This is a SLOW call. +DWORD +DhcpEnumServers( + IN DWORD Flags, // must be zero + IN LPVOID IdInfo, // must be NULL + OUT LPDHCP_SERVER_INFO_ARRAY *Servers, // output servers list + IN LPVOID CallbackFn, // must be NULL + IN LPVOID CallbackData // must be NULL +); + +//DOC DhcpAddServer tries to add a new server to the existing list of servers in +//DOC the DS. The function returns error if the Server already exists in the DS. +//DOC The function tries to upload the server configuration to the DS.. +//DOC This is a SLOW call. Currently, the DsLocation and DsLocType are not valid +//DOC fields in the NewServer and they'd be ignored. Version must be zero. +DWORD +DhcpAddServer( + IN DWORD Flags, // must be zero + IN LPVOID IdInfo, // must be NULL + IN LPDHCP_SERVER_INFO NewServer, // input server information + IN LPVOID CallbackFn, // must be NULL + IN LPVOID CallbackData // must be NULL +); + +//DOC DhcpDeleteServer tries to delete the server from DS. It is an error if the +//DOC server does not already exist. This also deletes any objects related to +//DOC this server in the DS (like subnet, reservations etc.). +DWORD +DhcpDeleteServer( + IN DWORD Flags, // must be zero + IN LPVOID IdInfo, // must be NULL + IN LPDHCP_SERVER_INFO NewServer, // input server information + IN LPVOID CallbackFn, // must be NULL + IN LPVOID CallbackData // must be NULL +); + + + + + +DWORD DHCP_API_FUNCTION +DhcpGetServerBindingInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + ULONG Flags, + LPDHCP_BIND_ELEMENT_ARRAY *BindElementsInfo +); + +DWORD DHCP_API_FUNCTION +DhcpSetServerBindingInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + ULONG Flags, + LPDHCP_BIND_ELEMENT_ARRAY BindElementInfo +); + + + + +DWORD DHCP_API_FUNCTION +DhcpAddSubnetElementV5( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_CONST DHCP_SUBNET_ELEMENT_DATA_V5 *AddElementInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetElementsV5( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_SUBNET_ELEMENT_TYPE EnumElementType, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_SUBNET_ELEMENT_INFO_ARRAY_V5 *EnumElementInfo, + DWORD *ElementsRead, + DWORD *ElementsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpRemoveSubnetElementV5( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + DHCP_CONST DHCP_SUBNET_ELEMENT_DATA_V5 *RemoveElementInfo, + DHCP_FORCE_FLAG ForceFlag + ); + + +DWORD DHCP_API_FUNCTION +DhcpV4EnumSubnetReservations( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _Inout_ DHCP_RESUME_HANDLE *ResumeHandle, + _In_ DWORD PreferredMaximum, + _Out_ LPDHCP_RESERVATION_INFO_ARRAY *EnumElementInfo, + _Out_ DWORD *ElementsRead, + _Out_ DWORD *ElementsTotal + ); + + + + +//V6 Api's +DWORD DHCP_API_FUNCTION +DhcpCreateOptionV6( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionId, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION OptionInfo +); +DWORD DHCP_API_FUNCTION +DhcpRemoveOptionV6( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName +); +DWORD DHCP_API_FUNCTION +DhcpEnumOptionsV6( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + _In_opt_ IN LPWSTR ClassName, + _In_opt_ IN LPWSTR VendorName, + IN OUT DHCP_RESUME_HANDLE *ResumeHandle, + IN DWORD PreferredMaximum, + OUT LPDHCP_OPTION_ARRAY *Options, + OUT DWORD *OptionsRead, + OUT DWORD *OptionsTotal +); + +DWORD DHCP_API_FUNCTION +DhcpRemoveOptionValueV6( + _In_opt_ LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ LPWSTR ClassName, + _In_opt_ LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO6 ScopeInfo +); +DWORD DHCP_API_FUNCTION +DhcpGetOptionInfoV6( + _In_opt_ LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ LPWSTR ClassName, + _In_opt_ LPWSTR VendorName, + OUT LPDHCP_OPTION *OptionInfo +); + +DWORD DHCP_API_FUNCTION +DhcpSetOptionInfoV6( + _In_opt_ LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ LPWSTR ClassName, + _In_opt_ LPWSTR VendorName, + IN LPDHCP_OPTION OptionInfo +); + +DWORD DHCP_API_FUNCTION +DhcpSetOptionValueV6( + _In_opt_ LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionId, + _In_opt_ LPWSTR ClassName, + _In_opt_ LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO6 ScopeInfo, + IN LPDHCP_OPTION_DATA OptionValue +); + + + + +DWORD DHCP_API_FUNCTION +DhcpGetSubnetInfoVQ( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + _Out_ LPDHCP_SUBNET_INFO_VQ *SubnetInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpCreateSubnetVQ( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + _In_ DHCP_CONST DHCP_SUBNET_INFO_VQ *SubnetInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpSetSubnetInfoVQ( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IP_ADDRESS SubnetAddress, + _In_ DHCP_CONST DHCP_SUBNET_INFO_VQ *SubnetInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumOptionValuesV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DWORD Flags, + _In_opt_ LPWSTR ClassName, + _In_opt_ LPWSTR VendorName, + LPDHCP_OPTION_SCOPE_INFO6 ScopeInfo, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_OPTION_VALUE_ARRAY *OptionValues, + DWORD *OptionsRead, + DWORD *OptionsTotal + ); + +#endif + +//DOC DhcpDsInit must be called exactly once per process.. this initializes the +//DOC memory and other structures for this process. This initializes some DS +//DOC object handles (memory), and hence is slow as this has to read from DS. +DWORD +DhcpDsInit( + VOID +); + +//DOC DhcpDsCleanup undoes the effect of any DhcpDsInit. This function should be +//DOC called exactly once for each process, and only at termination. Note that +//DOC it is safe to call this function even if DhcpDsInit does not succeed. +VOID +DhcpDsCleanup( + VOID +); + + +DWORD +DhcpSetThreadOptions( // set options for current thread + IN DWORD Flags, // options, currently 0 or DHCP_FLAGS_DONT_ACCESS_DS + IN LPVOID Reserved // must be NULL, reserved for future +); + +//DOC DhcpGetThreadOptions retrieves the current thread options as set by DhcpSetThreadOptions. +//DOC If none were set, the return value is zero. +DWORD +DhcpGetThreadOptions( // get current thread options + OUT LPDWORD pFlags, // this DWORD is filled with current optiosn.. + IN OUT LPVOID Reserved // must be NULL, reserved for future +); + + +DWORD // Status code +DhcpServerQueryAttribute( // get a server status + _In_opt_ IN LPWSTR ServerIpAddr, // String form of server IP + IN ULONG dwReserved, // reserved for future + IN DHCP_ATTRIB_ID DhcpAttribId, // the attrib being queried + OUT LPDHCP_ATTRIB *pDhcpAttrib // fill in this field +); + +DWORD // Status code +DhcpServerQueryAttributes( // query multiple attributes + _In_opt_ IN LPWSTR ServerIpAddr, // String form of server IP + IN ULONG dwReserved, // reserved for future + IN ULONG dwAttribCount, // # of attribs being queried + IN DHCP_ATTRIB_ID pDhcpAttribs[],// array of attribs + OUT LPDHCP_ATTRIB_ARRAY *pDhcpAttribArr // Ptr is filled w/ array +); + +DWORD // Status code +DhcpServerRedoAuthorization( // retry the rogue server stuff + _In_opt_ IN LPWSTR ServerIpAddr, // String form of server IP + IN ULONG dwReserved // reserved for future +); + +DWORD +DhcpAuditLogSetParams( // set some auditlogging params + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, // currently must be zero + _In_opt_ IN LPWSTR AuditLogDir, // directory to log files in.. + IN DWORD DiskCheckInterval, // how often to check disk space? + IN DWORD MaxLogFilesSize, // how big can all logs files be.. + IN DWORD MinSpaceOnDisk // mininum amt of free disk space +); + +DWORD +DhcpAuditLogGetParams( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + _Outptr_result_maybenull_ OUT LPWSTR *AuditLogDir, + OUT DWORD *DiskCheckInterval, + OUT DWORD *MaxLogFilesSize, + OUT DWORD *MinSpaceOnDisk +); + + + + +DWORD +DhcpServerQueryDnsRegCredentials( + _In_opt_ IN LPWSTR ServerIpAddress, + IN ULONG UnameSize, //in BYTES + _Out_writes_(UnameSize) LPWSTR Uname, + IN ULONG DomainSize, // in BYTES + _Out_writes_(DomainSize) LPWSTR Domain + ); + +DWORD +DhcpServerSetDnsRegCredentials( + _In_opt_ IN LPWSTR ServerIpAddress, + _In_opt_ IN LPWSTR Uname, + _In_opt_ IN LPWSTR Domain, + _In_opt_ IN LPWSTR Passwd + ); + +DWORD +DhcpServerSetDnsRegCredentialsV5( + _In_opt_ IN LPWSTR ServerIpAddress, + _In_opt_ IN LPWSTR Uname, + _In_opt_ IN LPWSTR Domain, + _In_opt_ IN LPWSTR Passwd + ); + +DWORD +DhcpServerBackupDatabase( + _In_opt_ IN LPWSTR ServerIpAddress, + _In_ IN LPWSTR Path + ); + +DWORD +DhcpServerRestoreDatabase( + _In_opt_ IN LPWSTR ServerIpAddress, + _In_ IN LPWSTR Path + ); + +// +// All Quarantine related APIs +// + +DWORD DHCP_API_FUNCTION +DhcpServerSetConfigVQ( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DWORD FieldsToSet, + LPDHCP_SERVER_CONFIG_INFO_VQ ConfigInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpServerGetConfigVQ( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + LPDHCP_SERVER_CONFIG_INFO_VQ *ConfigInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpGetServerSpecificStrings( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + LPDHCP_SERVER_SPECIFIC_STRINGS *ServerSpecificStrings + ); + +void DHCP_API_FUNCTION +DhcpServerAuditlogParamsFree( + DHCP_SERVER_CONFIG_INFO_VQ *ConfigInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpCreateSubnetV6( + _In_opt_ LPWSTR ServerIpAddress, + DHCP_IPV6_ADDRESS SubnetAddress, + LPDHCP_SUBNET_INFO_V6 SubnetInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpDeleteSubnetV6( + _In_opt_ LPWSTR ServerIpAddress, + DHCP_IPV6_ADDRESS SubnetAddress, + DHCP_FORCE_FLAG ForceFlag +); + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetsV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCPV6_IP_ARRAY *EnumInfo, + DWORD *ElementsRead, + DWORD *ElementsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpAddSubnetElementV6( + _In_opt_ LPWSTR ServerIpAddress, + DHCP_IPV6_ADDRESS SubnetAddress, + LPDHCP_SUBNET_ELEMENT_DATA_V6 AddElementInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpRemoveSubnetElementV6( + _In_opt_ LPWSTR ServerIpAddress, + DHCP_IPV6_ADDRESS SubnetAddress, + LPDHCP_SUBNET_ELEMENT_DATA_V6 RemoveElementInfo, + DHCP_FORCE_FLAG ForceFlag + ); + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetElementsV6( + _In_opt_ LPWSTR ServerIpAddress, + DHCP_IPV6_ADDRESS SubnetAddress, + DHCP_SUBNET_ELEMENT_TYPE_V6 EnumElementType, + DHCP_RESUME_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_SUBNET_ELEMENT_INFO_ARRAY_V6 *EnumElementInfo, + DWORD *ElementsRead, + DWORD *ElementsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpGetSubnetInfoV6( + _In_opt_ LPWSTR ServerIpAddress, + DHCP_IPV6_ADDRESS SubnetAddress, + LPDHCP_SUBNET_INFO_V6 *SubnetInfo + ); + + +DWORD DHCP_API_FUNCTION +DhcpEnumSubnetClientsV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IPV6_ADDRESS SubnetAddress, + DHCP_RESUME_IPV6_HANDLE *ResumeHandle, + DWORD PreferredMaximum, + LPDHCP_CLIENT_INFO_ARRAY_V6 *ClientInfo, + DWORD *ClientsRead, + DWORD *ClientsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpServerGetConfigV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + LPDHCP_OPTION_SCOPE_INFO6 ScopeInfo, + LPDHCP_SERVER_CONFIG_INFO_V6 *ConfigInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpServerSetConfigV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + LPDHCP_OPTION_SCOPE_INFO6 ScopeInfo, + DWORD FieldsToSet, + LPDHCP_SERVER_CONFIG_INFO_V6 ConfigInfo + ); + +DWORD +DhcpSetSubnetInfoV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_IPV6_ADDRESS SubnetAddress, + LPDHCP_SUBNET_INFO_V6 SubnetInfo +); +DWORD +DhcpGetMibInfoV6( + _In_opt_z_ DHCP_CONST WCHAR * ServerIpAddress, + LPDHCP_MIB_INFO_V6 *MibInfo +); +DWORD DHCP_API_FUNCTION +DhcpGetServerBindingInfoV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + ULONG Flags, + LPDHCPV6_BIND_ELEMENT_ARRAY *BindElementsInfo +); +DWORD DHCP_API_FUNCTION +DhcpSetServerBindingInfoV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + ULONG Flags, + LPDHCPV6_BIND_ELEMENT_ARRAY BindElementInfo +); +DWORD DHCP_API_FUNCTION +DhcpSetClientInfoV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_CLIENT_INFO_V6 *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpGetClientInfoV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_SEARCH_INFO_V6 *SearchInfo, + LPDHCP_CLIENT_INFO_V6 *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpDeleteClientInfoV6( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + DHCP_CONST DHCP_SEARCH_INFO_V6 *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpCreateClassV6( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD ReservedMustBeZero, + IN LPDHCP_CLASS_INFO_V6 ClassInfo +); + +DWORD DHCP_API_FUNCTION +DhcpModifyClassV6( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD ReservedMustBeZero, + IN LPDHCP_CLASS_INFO_V6 ClassInfo +); + +DWORD DHCP_API_FUNCTION +DhcpDeleteClassV6( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD ReservedMustBeZero, + _In_ IN LPWSTR ClassName +); + +DWORD DHCP_API_FUNCTION +DhcpEnumClassesV6( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD ReservedMustBeZero, + IN OUT DHCP_RESUME_HANDLE *ResumeHandle, + IN DWORD PreferredMaximum, + OUT LPDHCP_CLASS_INFO_ARRAY_V6 *ClassInfoArray, + OUT DWORD *nRead, + OUT DWORD *nTotal +); + +DWORD DHCP_API_FUNCTION +DhcpSetSubnetDelayOffer ( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DHCP_IP_ADDRESS SubnetAddress, + IN USHORT TimeDelayInMilliseconds +); + +DWORD DHCP_API_FUNCTION +DhcpGetSubnetDelayOffer ( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DHCP_IP_ADDRESS SubnetAddress, + IN USHORT * TimeDelayInMilliseconds +); + +DWORD DHCP_API_FUNCTION +DhcpGetMibInfoV5( +_In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, +OUT LPDHCP_MIB_INFO_V5 *MibInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpAddSecurityGroup( +_In_opt_ LPWSTR pServer +); + + +DWORD DHCP_API_FUNCTION +DhcpV4GetOptionValue ( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ IN LPWSTR PolicyName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo, + OUT LPDHCP_OPTION_VALUE *OptionValue + ); + +DWORD DHCP_API_FUNCTION +DhcpV4SetOptionValue ( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionId, + _In_opt_ IN LPWSTR PolicyName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo, + IN LPDHCP_OPTION_DATA OptionValue + ); + +DWORD DHCP_API_FUNCTION +DhcpV4SetOptionValues( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + _In_opt_ IN LPWSTR PolicyName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo, + IN LPDHCP_OPTION_VALUE_ARRAY OptionValues + ); + +DWORD DHCP_API_FUNCTION +DhcpV4RemoveOptionValue ( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN DHCP_OPTION_ID OptionID, + _In_opt_ IN LPWSTR PolicyName, + _In_opt_ IN LPWSTR VendorName, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpV4GetAllOptionValues ( + _In_opt_ IN LPWSTR ServerIpAddress, + IN DWORD Flags, + IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo, + OUT LPDHCP_ALL_OPTION_VALUES_PB *Values + ); + + + +// DHCPv4 failover structures + + +#define DHCP_FAILOVER_DELETE_SCOPES 0x00000001 +#define DHCP_FAILOVER_MAX_NUM_ADD_SCOPES 400 +#define DHCP_FAILOVER_MAX_NUM_REL 31 + +typedef enum _DHCP_FAILOVER_MODE { + LoadBalance, + HotStandby +} DHCP_FAILOVER_MODE, *LPDHCP_FAILOVER_MODE; + + +typedef enum _DHCP_FAILOVER_SERVER { + PrimaryServer, + SecondaryServer +} DHCP_FAILOVER_SERVER, *LPDHCP_FAILOVER_SERVER; + +typedef enum _FSM_STATE // enumeration defining all the states of the failover servers. +{ + NO_STATE=0, + INIT, + STARTUP, + NORMAL, + COMMUNICATION_INT, + PARTNER_DOWN, + POTENTIAL_CONFLICT, + CONFLICT_DONE, + RESOLUTION_INT, + RECOVER, + RECOVER_WAIT, + RECOVER_DONE, + PAUSED, + SHUTDOWN +} FSM_STATE; + +typedef struct _DHCP_FAILOVER_RELATIONSHIP +{ + + DHCP_IP_ADDRESS PrimaryServer; + DHCP_IP_ADDRESS SecondaryServer; + + DHCP_FAILOVER_MODE Mode; + DHCP_FAILOVER_SERVER ServerType; + + FSM_STATE State; + FSM_STATE PrevState; // update the database + + DWORD Mclt; + DWORD SafePeriod; + LPWSTR RelationshipName; + LPWSTR PrimaryServerName; + LPWSTR SecondaryServerName; + // scopes part of this relationship + LPDHCP_IP_ARRAY pScopes; + BYTE Percentage; + LPWSTR SharedSecret; //added to support message authentication in failover +} DHCP_FAILOVER_RELATIONSHIP, *LPDHCP_FAILOVER_RELATIONSHIP; + + +typedef struct _DHCP_FAILOVER_RELATIONSHIP_ARRAY +{ + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + _Field_size_(NumElements) LPDHCP_FAILOVER_RELATIONSHIP pRelationships; +} DHCP_FAILOVER_RELATIONSHIP_ARRAY , *LPDHCP_FAILOVER_RELATIONSHIP_ARRAY; + + +typedef struct _DHCPV4_FAILOVER_CLIENT_INFO { + DHCP_IP_ADDRESS ClientIpAddress; // currently assigned IP address. + DHCP_IP_MASK SubnetMask; + DHCP_CLIENT_UID ClientHardwareAddress; + LPWSTR ClientName; + LPWSTR ClientComment; + DATE_TIME ClientLeaseExpires; // UTC time in FILE_TIME format. + DHCP_HOST_INFO OwnerHost; // host that distributed this IP address. + BYTE bClientType; + BYTE AddressState; + QuarantineStatus Status; + DATE_TIME ProbationEnds; + BOOL QuarantineCapable; + DWORD SentPotExpTime; + DWORD AckPotExpTime; + DWORD RecvPotExpTime; + DWORD StartTime; + DWORD CltLastTransTime; + DWORD LastBndUpdTime; + DWORD BndMsgStatus; + LPWSTR PolicyName; + BYTE Flags; +} DHCPV4_FAILOVER_CLIENT_INFO, *LPDHCPV4_FAILOVER_CLIENT_INFO; + +typedef struct _DHCPV4_FAILOVER_CLIENT_INFO_ARRAY { + DWORD NumElements; +#if defined(MIDL_PASS) + [size_is(NumElements)] +#endif // MIDL_PASS + _Field_size_(NumElements) LPDHCPV4_FAILOVER_CLIENT_INFO *Clients; // array of pointers +} DHCPV4_FAILOVER_CLIENT_INFO_ARRAY, *LPDHCPV4_FAILOVER_CLIENT_INFO_ARRAY; + +typedef struct _DHCPV4_FAILOVER_CLIENT_INFO_EX { + DHCP_IP_ADDRESS ClientIpAddress; // currently assigned IP address. + DHCP_IP_MASK SubnetMask; + DHCP_CLIENT_UID ClientHardwareAddress; + LPWSTR ClientName; + LPWSTR ClientComment; + DATE_TIME ClientLeaseExpires; // UTC time in FILE_TIME format. + DHCP_HOST_INFO OwnerHost; // host that distributed this IP address. + BYTE bClientType; + BYTE AddressState; + QuarantineStatus Status; + DATE_TIME ProbationEnds; + BOOL QuarantineCapable; + DWORD SentPotExpTime; + DWORD AckPotExpTime; + DWORD RecvPotExpTime; + DWORD StartTime; + DWORD CltLastTransTime; + DWORD LastBndUpdTime; + DWORD BndMsgStatus; + LPWSTR PolicyName; + BYTE Flags; + DWORD AddressStateEx; +} DHCPV4_FAILOVER_CLIENT_INFO_EX, *LPDHCPV4_FAILOVER_CLIENT_INFO_EX; + +typedef struct _DHCP_FAILOVER_STATISTICS +{ + DWORD NumAddr; + DWORD AddrFree; + DWORD AddrInUse; + DWORD PartnerAddrFree; + DWORD ThisAddrFree; + DWORD PartnerAddrInUse; + DWORD ThisAddrInUse; +} DHCP_FAILOVER_STATISTICS, *LPDHCP_FAILOVER_STATISTICS; + + + +#define MCLT 0x00000001 +#define SAFEPERIOD 0x00000002 +#define CHANGESTATE 0x00000004 +#define PERCENTAGE 0x00000008 +#define MODE 0x00000010 +#define PREVSTATE 0x00000020 +#define SHAREDSECRET 0x00000040 + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverCreateRelationship( + _In_opt_ LPWSTR ServerIpAddress, + _In_ LPDHCP_FAILOVER_RELATIONSHIP pRelationship + ); + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverSetRelationship( + _In_opt_ LPWSTR ServerIpAddress, + _In_ DWORD Flags, + _In_ LPDHCP_FAILOVER_RELATIONSHIP pRelationship + ); + + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverDeleteRelationship( + _In_opt_ LPWSTR ServerIpAddress, + _In_ LPWSTR pRelationshipName + ); + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverGetRelationship( + _In_opt_ LPWSTR ServerIpAddress, + _In_ LPWSTR pRelationshipName, + _Out_ LPDHCP_FAILOVER_RELATIONSHIP *pRelationship +); + + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverEnumRelationship( + _In_opt_ LPWSTR ServerIpAddress, + _Inout_ DHCP_RESUME_HANDLE *ResumeHandle, + _In_ DWORD PreferredMaximum, + _Out_ LPDHCP_FAILOVER_RELATIONSHIP_ARRAY *pRelationship, + _Out_ LPDWORD RelationshipRead, + _Out_ LPDWORD RelationshipTotal + ); + + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverAddScopeToRelationship( + _In_opt_ LPWSTR ServerIpAddress, + _In_ LPDHCP_FAILOVER_RELATIONSHIP pRelationship + ); + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverDeleteScopeFromRelationship( + _In_opt_ LPWSTR ServerIpAddress, + _In_ LPDHCP_FAILOVER_RELATIONSHIP pRelationship + + ); + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverGetScopeRelationship( + _In_opt_ LPWSTR ServerIpAddress, + _In_ DHCP_IP_ADDRESS ScopeId, + _Out_ LPDHCP_FAILOVER_RELATIONSHIP *pRelationship + ); + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverGetScopeStatistics( + _In_opt_ LPWSTR ServerIpAddress, + _In_ DHCP_IP_ADDRESS ScopeId, + _Out_ LPDHCP_FAILOVER_STATISTICS *pStats +); + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverGetClientInfo( + _In_opt_ LPWSTR ServerIpAddress, + _In_ DHCP_CONST DHCP_SEARCH_INFO *SearchInfo, + _Out_ LPDHCPV4_FAILOVER_CLIENT_INFO *ClientInfo +); + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverGetSystemTime( + _In_opt_ LPWSTR ServerIpAddress, + _Out_ LPDWORD pTime, + _Out_ LPDWORD pMaxAllowedDeltaTime +); + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverGetAddressStatus( +_In_opt_ LPWSTR ServerIpAddress, +_In_ DHCP_IP_ADDRESS SubnetAddress, +_Inout_ LPDWORD pStatus +); + + +DWORD DHCP_API_FUNCTION +DhcpV4FailoverTriggerAddrAllocation( +_In_opt_ LPWSTR ServerIpAddress, +_In_ LPWSTR pFailRelName +); + +//Policy Functions Defn start + +DWORD DHCP_API_FUNCTION +DhcpHlprCreateV4Policy ( + _In_ LPWSTR PolicyName, + _In_ BOOL fGlobalPolicy, + _In_ DHCP_IP_ADDRESS Subnet, + _In_ DWORD ProcessingOrder, + _In_ DHCP_POL_LOGIC_OPER RootOperator, + _In_ LPWSTR Description, + _In_ BOOL Enabled, + _Out_ LPDHCP_POLICY *Policy +); + +DWORD DHCP_API_FUNCTION +DhcpHlprCreateV4PolicyEx ( + _In_ LPWSTR PolicyName, + _In_ BOOL fGlobalPolicy, + _In_ DHCP_IP_ADDRESS Subnet, + _In_ DWORD ProcessingOrder, + _In_ DHCP_POL_LOGIC_OPER RootOperator, + _In_ LPWSTR Description, + _In_ BOOL Enabled, + _Out_ LPDHCP_POLICY_EX *Policy +); + +DWORD DHCP_API_FUNCTION +DhcpHlprAddV4PolicyExpr ( + _Inout_ LPDHCP_POLICY Policy, + _In_ DWORD ParentExpr, + _In_ DHCP_POL_LOGIC_OPER Operator, + _Out_ DWORD *ExprIndex +); + +DWORD DHCP_API_FUNCTION +DhcpHlprAddV4PolicyCondition ( + _Inout_ LPDHCP_POLICY Policy, + _In_ DWORD ParentExpr, + _In_ DHCP_POL_ATTR_TYPE Type, + _In_ DWORD OptionID, + _In_ DWORD SubOptionID, + _In_opt_ LPWSTR VendorName, + _In_ DHCP_POL_COMPARATOR Operator, + _In_reads_bytes_(ValueLength) LPBYTE Value, + _In_ DWORD ValueLength, + _Out_ DWORD *ConditionIndex +); + +DWORD DHCP_API_FUNCTION +DhcpHlprAddV4PolicyRange ( + _Inout_ LPDHCP_POLICY Policy, + _In_ LPDHCP_IP_RANGE Range +); + +DWORD DHCP_API_FUNCTION +DhcpHlprResetV4PolicyExpr ( + _Inout_ LPDHCP_POLICY Policy +); + +DWORD DHCP_API_FUNCTION +DhcpHlprModifyV4PolicyExpr ( + _Inout_ LPDHCP_POLICY Policy, + _In_ DHCP_POL_LOGIC_OPER Operator +); + +VOID DHCP_API_FUNCTION +DhcpHlprFreeV4Policy ( + _Inout_ LPDHCP_POLICY Policy +); + +VOID DHCP_API_FUNCTION +DhcpHlprFreeV4PolicyArray ( + _Inout_ LPDHCP_POLICY_ARRAY PolicyArray +); + +VOID DHCP_API_FUNCTION +DhcpHlprFreeV4PolicyEx ( + _Inout_ LPDHCP_POLICY_EX PolicyEx +); + +VOID DHCP_API_FUNCTION +DhcpHlprFreeV4PolicyExArray ( + _Inout_ LPDHCP_POLICY_EX_ARRAY PolicyExArray +); + +VOID DHCP_API_FUNCTION +DhcpHlprFreeV4DhcpProperty ( + _Inout_ LPDHCP_PROPERTY Property +); + +VOID DHCP_API_FUNCTION +DhcpHlprFreeV4DhcpPropertyArray ( + _Inout_ LPDHCP_PROPERTY_ARRAY PropertyArray +); + +LPDHCP_PROPERTY +DhcpHlprFindV4DhcpProperty ( + _In_ LPDHCP_PROPERTY_ARRAY PropertyArray, + _In_ DHCP_PROPERTY_ID ID, + _In_ DHCP_PROPERTY_TYPE Type +); + +BOOL DHCP_API_FUNCTION +DhcpHlprIsV4PolicySingleUC( + _In_ LPDHCP_POLICY Policy +); + +DWORD DHCP_API_FUNCTION +DhcpV4QueryPolicyEnforcement ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ BOOL fGlobalPolicy, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _Out_ BOOL *Enabled +); + +DWORD DHCP_API_FUNCTION +DhcpV4SetPolicyEnforcement ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ BOOL fGlobalPolicy, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _In_ BOOL Enable +); + +BOOL DHCP_API_FUNCTION +DhcpHlprIsV4PolicyWellFormed ( + _In_ LPDHCP_POLICY pPolicy +); + +DWORD DHCP_API_FUNCTION +DhcpHlprIsV4PolicyValid ( + _In_ LPDHCP_POLICY pPolicy +); + +DWORD DHCP_API_FUNCTION +DhcpV4CreatePolicy ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ LPDHCP_POLICY pPolicy +); + + + +DWORD DHCP_API_FUNCTION +DhcpV4GetPolicy ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ BOOL fGlobalPolicy, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _In_ LPWSTR PolicyName, + _Out_ LPDHCP_POLICY *Policy +); + +DWORD DHCP_API_FUNCTION +DhcpV4SetPolicy ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ DWORD FieldsModified, + _In_ BOOL fGlobalPolicy, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _In_ LPWSTR PolicyName, + _In_ LPDHCP_POLICY Policy +); + +DWORD DHCP_API_FUNCTION +DhcpV4DeletePolicy ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ BOOL fGlobalPolicy, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _In_ LPWSTR PolicyName +); + +DWORD DHCP_API_FUNCTION +DhcpV4EnumPolicies ( + _In_opt_ LPWSTR ServerIpAddress, + _Inout_ LPDWORD ResumeHandle, + _In_ DWORD PreferredMaximum, + _In_ BOOL fGlobalPolicy, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _Out_ LPDHCP_POLICY_ARRAY *EnumInfo, + _Out_ DWORD *ElementsRead, + _Out_ DWORD *ElementsTotal +); + +DWORD DHCP_API_FUNCTION +DhcpV4AddPolicyRange ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _In_ LPWSTR PolicyName, + _In_ LPDHCP_IP_RANGE Range +); + +DWORD DHCP_API_FUNCTION +DhcpV4RemovePolicyRange ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _In_ LPWSTR PolicyName, + _In_ LPDHCP_IP_RANGE Range +); + +// Stateless Client Inventory API functions + +DWORD DHCP_API_FUNCTION +DhcpV6SetStatelessStoreParams ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ BOOL fServerLevel, + _In_ DHCP_IPV6_ADDRESS SubnetAddress, + _In_ DWORD FieldModified, + _In_ LPDHCPV6_STATELESS_PARAMS Params +); + +DWORD DHCP_API_FUNCTION +DhcpV6GetStatelessStoreParams ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ BOOL fServerLevel, + _In_ DHCP_IPV6_ADDRESS SubnetAddress, + _Out_ LPDHCPV6_STATELESS_PARAMS *Params +); + +DWORD DHCP_API_FUNCTION +DhcpV6GetStatelessStatistics ( + _In_opt_ LPWSTR ServerIpAddress, + _Out_ LPDHCPV6_STATELESS_STATS *StatelessStats +); + +// More client APIs +DWORD DHCP_API_FUNCTION +DhcpV4CreateClientInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_CONST LPDHCP_CLIENT_INFO_PB ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpV4EnumSubnetClients( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _Inout_ DHCP_RESUME_HANDLE *ResumeHandle, + _In_ DWORD PreferredMaximum, + _Out_ LPDHCP_CLIENT_INFO_PB_ARRAY *ClientInfo, + _Out_ DWORD *ClientsRead, + _Out_ DWORD *ClientsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpV4GetClientInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_CONST DHCP_SEARCH_INFO *SearchInfo, + _Out_ LPDHCP_CLIENT_INFO_PB *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpV6CreateClientInfo( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_CONST LPDHCP_CLIENT_INFO_V6 ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpV4GetFreeIPAddress ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ DHCP_IP_ADDRESS ScopeId, + _In_ DHCP_IP_ADDRESS StartIP, + _In_ DHCP_IP_ADDRESS EndIP, + _In_ DWORD NumFreeAddrReq, + _Out_ LPDHCP_IP_ARRAY *IPAddrList +); + +DWORD DHCP_API_FUNCTION +DhcpV6GetFreeIPAddress ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ DHCP_IPV6_ADDRESS ScopeId, + _In_ DHCP_IPV6_ADDRESS StartIP, + _In_ DHCP_IPV6_ADDRESS EndIP, + _In_ DWORD NumFreeAddrReq, + _Out_ LPDHCPV6_IP_ARRAY *IPAddrList +); + + + +DWORD DHCP_API_FUNCTION +DhcpV4CreateClientInfoEx( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_CONST LPDHCP_CLIENT_INFO_EX ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpV4EnumSubnetClientsEx( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _Inout_ DHCP_RESUME_HANDLE *ResumeHandle, + _In_ DWORD PreferredMaximum, + _Out_ LPDHCP_CLIENT_INFO_EX_ARRAY *ClientInfo, + _Out_ DWORD *ClientsRead, + _Out_ DWORD *ClientsTotal + ); + +DWORD DHCP_API_FUNCTION +DhcpV4GetClientInfoEx( + _In_opt_z_ DHCP_CONST WCHAR *ServerIpAddress, + _In_ DHCP_CONST DHCP_SEARCH_INFO *SearchInfo, + _Out_ LPDHCP_CLIENT_INFO_EX *ClientInfo + ); + +DWORD DHCP_API_FUNCTION +DhcpV4CreatePolicyEx ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ LPDHCP_POLICY_EX PolicyEx +); + +DWORD DHCP_API_FUNCTION +DhcpV4GetPolicyEx ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ BOOL GlobalPolicy, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _In_ LPWSTR PolicyName, + _Out_ LPDHCP_POLICY_EX *Policy +); + +//For modification of properties +DWORD DHCP_API_FUNCTION +DhcpV4SetPolicyEx ( + _In_opt_ LPWSTR ServerIpAddress, + _In_ DWORD FieldsModified, + _In_ BOOL GlobalPolicy, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _In_ LPWSTR PolicyName, + _In_ LPDHCP_POLICY_EX Policy +); + +DWORD DHCP_API_FUNCTION +DhcpV4EnumPoliciesEx ( + _In_opt_ LPWSTR ServerIpAddress, + _Inout_ LPDWORD ResumeHandle, + _In_ DWORD PreferredMaximum, + _In_ BOOL GlobalPolicy, + _In_ DHCP_IP_ADDRESS SubnetAddress, + _Out_ LPDHCP_POLICY_EX_ARRAY *EnumInfo, + _Out_ DWORD *ElementsRead, + _Out_ DWORD *ElementsTotal +); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _DHCSPAPI_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dinput.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dinput.h new file mode 100644 index 0000000000000000000000000000000000000000..6b079b99a81fb283fcc07b5c5e6701d9819efcca --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dinput.h @@ -0,0 +1,4448 @@ +/**************************************************************************** + * + * Copyright (C) 1996-2002 Microsoft Corporation. All Rights Reserved. + * + * File: dinput.h + * Content: DirectInput include file + * + ****************************************************************************/ + +#ifndef __DINPUT_INCLUDED__ +#define __DINPUT_INCLUDED__ + +#include + +#ifndef DIJ_RINGZERO + +#ifdef _WIN32 +#define COM_NO_WINDOWS_H +#include +#endif + +#endif /* DIJ_RINGZERO */ + +#ifdef __cplusplus +extern "C" { +#endif + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + +/* + * To build applications for older versions of DirectInput + * + * #define DIRECTINPUT_VERSION [ 0x0300 | 0x0500 | 0x0700 ] + * + * before #include . By default, #include + * will produce a DirectX 8-compatible header file. + * + */ + +#define DIRECTINPUT_HEADER_VERSION 0x0800 +#ifndef DIRECTINPUT_VERSION +#define DIRECTINPUT_VERSION DIRECTINPUT_HEADER_VERSION +#pragma message(__FILE__ ": DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800") +#endif + +#ifndef DIJ_RINGZERO + +/**************************************************************************** + * + * Class IDs + * + ****************************************************************************/ + +DEFINE_GUID(CLSID_DirectInput, 0x25E609E0,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(CLSID_DirectInputDevice, 0x25E609E1,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); + +DEFINE_GUID(CLSID_DirectInput8, 0x25E609E4,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(CLSID_DirectInputDevice8,0x25E609E5,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); + +/**************************************************************************** + * + * Interfaces + * + ****************************************************************************/ + +DEFINE_GUID(IID_IDirectInputA, 0x89521360,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(IID_IDirectInputW, 0x89521361,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(IID_IDirectInput2A, 0x5944E662,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(IID_IDirectInput2W, 0x5944E663,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(IID_IDirectInput7A, 0x9A4CB684,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); +DEFINE_GUID(IID_IDirectInput7W, 0x9A4CB685,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); +DEFINE_GUID(IID_IDirectInput8A, 0xBF798030,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00); +DEFINE_GUID(IID_IDirectInput8W, 0xBF798031,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00); +DEFINE_GUID(IID_IDirectInputDeviceA, 0x5944E680,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(IID_IDirectInputDeviceW, 0x5944E681,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(IID_IDirectInputDevice2A,0x5944E682,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(IID_IDirectInputDevice2W,0x5944E683,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(IID_IDirectInputDevice7A,0x57D7C6BC,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); +DEFINE_GUID(IID_IDirectInputDevice7W,0x57D7C6BD,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE); +DEFINE_GUID(IID_IDirectInputDevice8A,0x54D41080,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79); +DEFINE_GUID(IID_IDirectInputDevice8W,0x54D41081,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79); +DEFINE_GUID(IID_IDirectInputEffect, 0xE7E1F7C0,0x88D2,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); + +/**************************************************************************** + * + * Predefined object types + * + ****************************************************************************/ + +DEFINE_GUID(GUID_XAxis, 0xA36D02E0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_YAxis, 0xA36D02E1,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_ZAxis, 0xA36D02E2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_RxAxis, 0xA36D02F4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_RyAxis, 0xA36D02F5,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_RzAxis, 0xA36D02E3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_Slider, 0xA36D02E4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); + +DEFINE_GUID(GUID_Button, 0xA36D02F0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_Key, 0x55728220,0xD33C,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); + +DEFINE_GUID(GUID_POV, 0xA36D02F2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); + +DEFINE_GUID(GUID_Unknown, 0xA36D02F3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); + +/**************************************************************************** + * + * Predefined product GUIDs + * + ****************************************************************************/ + +DEFINE_GUID(GUID_SysMouse, 0x6F1D2B60,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_SysKeyboard,0x6F1D2B61,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_Joystick ,0x6F1D2B70,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_SysMouseEm, 0x6F1D2B80,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_SysMouseEm2,0x6F1D2B81,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_SysKeyboardEm, 0x6F1D2B82,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); +DEFINE_GUID(GUID_SysKeyboardEm2,0x6F1D2B83,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); + +/**************************************************************************** + * + * Predefined force feedback effects + * + ****************************************************************************/ + +DEFINE_GUID(GUID_ConstantForce, 0x13541C20,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_RampForce, 0x13541C21,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_Square, 0x13541C22,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_Sine, 0x13541C23,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_Triangle, 0x13541C24,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_SawtoothUp, 0x13541C25,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_SawtoothDown, 0x13541C26,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_Spring, 0x13541C27,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_Damper, 0x13541C28,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_Inertia, 0x13541C29,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_Friction, 0x13541C2A,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); +DEFINE_GUID(GUID_CustomForce, 0x13541C2B,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); + +#endif /* DIJ_RINGZERO */ + +/**************************************************************************** + * + * Interfaces and Structures... + * + ****************************************************************************/ + +#if(DIRECTINPUT_VERSION >= 0x0500) + +/**************************************************************************** + * + * IDirectInputEffect + * + ****************************************************************************/ + +#define DIEFT_ALL 0x00000000 + +#define DIEFT_CONSTANTFORCE 0x00000001 +#define DIEFT_RAMPFORCE 0x00000002 +#define DIEFT_PERIODIC 0x00000003 +#define DIEFT_CONDITION 0x00000004 +#define DIEFT_CUSTOMFORCE 0x00000005 +#define DIEFT_HARDWARE 0x000000FF +#define DIEFT_FFATTACK 0x00000200 +#define DIEFT_FFFADE 0x00000400 +#define DIEFT_SATURATION 0x00000800 +#define DIEFT_POSNEGCOEFFICIENTS 0x00001000 +#define DIEFT_POSNEGSATURATION 0x00002000 +#define DIEFT_DEADBAND 0x00004000 +#define DIEFT_STARTDELAY 0x00008000 +#define DIEFT_GETTYPE(n) LOBYTE(n) + +#define DI_DEGREES 100 +#define DI_FFNOMINALMAX 10000 +#define DI_SECONDS 1000000 + +typedef struct DICONSTANTFORCE { + LONG lMagnitude; +} DICONSTANTFORCE, *LPDICONSTANTFORCE; +typedef const DICONSTANTFORCE *LPCDICONSTANTFORCE; + +typedef struct DIRAMPFORCE { + LONG lStart; + LONG lEnd; +} DIRAMPFORCE, *LPDIRAMPFORCE; +typedef const DIRAMPFORCE *LPCDIRAMPFORCE; + +typedef struct DIPERIODIC { + DWORD dwMagnitude; + LONG lOffset; + DWORD dwPhase; + DWORD dwPeriod; +} DIPERIODIC, *LPDIPERIODIC; +typedef const DIPERIODIC *LPCDIPERIODIC; + +typedef struct DICONDITION { + LONG lOffset; + LONG lPositiveCoefficient; + LONG lNegativeCoefficient; + DWORD dwPositiveSaturation; + DWORD dwNegativeSaturation; + LONG lDeadBand; +} DICONDITION, *LPDICONDITION; +typedef const DICONDITION *LPCDICONDITION; + +typedef struct DICUSTOMFORCE { + DWORD cChannels; + DWORD dwSamplePeriod; + DWORD cSamples; + LPLONG rglForceData; +} DICUSTOMFORCE, *LPDICUSTOMFORCE; +typedef const DICUSTOMFORCE *LPCDICUSTOMFORCE; + + +typedef struct DIENVELOPE { + DWORD dwSize; /* sizeof(DIENVELOPE) */ + DWORD dwAttackLevel; + DWORD dwAttackTime; /* Microseconds */ + DWORD dwFadeLevel; + DWORD dwFadeTime; /* Microseconds */ +} DIENVELOPE, *LPDIENVELOPE; +typedef const DIENVELOPE *LPCDIENVELOPE; + + +/* This structure is defined for DirectX 5.0 compatibility */ +typedef struct DIEFFECT_DX5 { + DWORD dwSize; /* sizeof(DIEFFECT_DX5) */ + DWORD dwFlags; /* DIEFF_* */ + DWORD dwDuration; /* Microseconds */ + DWORD dwSamplePeriod; /* Microseconds */ + DWORD dwGain; + DWORD dwTriggerButton; /* or DIEB_NOTRIGGER */ + DWORD dwTriggerRepeatInterval; /* Microseconds */ + DWORD cAxes; /* Number of axes */ + LPDWORD rgdwAxes; /* Array of axes */ + LPLONG rglDirection; /* Array of directions */ + LPDIENVELOPE lpEnvelope; /* Optional */ + DWORD cbTypeSpecificParams; /* Size of params */ + LPVOID lpvTypeSpecificParams; /* Pointer to params */ +} DIEFFECT_DX5, *LPDIEFFECT_DX5; +typedef const DIEFFECT_DX5 *LPCDIEFFECT_DX5; + +typedef struct DIEFFECT { + DWORD dwSize; /* sizeof(DIEFFECT) */ + DWORD dwFlags; /* DIEFF_* */ + DWORD dwDuration; /* Microseconds */ + DWORD dwSamplePeriod; /* Microseconds */ + DWORD dwGain; + DWORD dwTriggerButton; /* or DIEB_NOTRIGGER */ + DWORD dwTriggerRepeatInterval; /* Microseconds */ + DWORD cAxes; /* Number of axes */ + LPDWORD rgdwAxes; /* Array of axes */ + LPLONG rglDirection; /* Array of directions */ + LPDIENVELOPE lpEnvelope; /* Optional */ + DWORD cbTypeSpecificParams; /* Size of params */ + LPVOID lpvTypeSpecificParams; /* Pointer to params */ +#if(DIRECTINPUT_VERSION >= 0x0600) + DWORD dwStartDelay; /* Microseconds */ +#endif /* DIRECTINPUT_VERSION >= 0x0600 */ +} DIEFFECT, *LPDIEFFECT; +typedef DIEFFECT DIEFFECT_DX6; +typedef LPDIEFFECT LPDIEFFECT_DX6; +typedef const DIEFFECT *LPCDIEFFECT; + + +#if(DIRECTINPUT_VERSION >= 0x0700) +#ifndef DIJ_RINGZERO +typedef struct DIFILEEFFECT{ + DWORD dwSize; + GUID GuidEffect; + LPCDIEFFECT lpDiEffect; + CHAR szFriendlyName[MAX_PATH]; +}DIFILEEFFECT, *LPDIFILEEFFECT; +typedef const DIFILEEFFECT *LPCDIFILEEFFECT; +typedef BOOL (FAR PASCAL * LPDIENUMEFFECTSINFILECALLBACK)(LPCDIFILEEFFECT , LPVOID); +#endif /* DIJ_RINGZERO */ +#endif /* DIRECTINPUT_VERSION >= 0x0700 */ + +#define DIEFF_OBJECTIDS 0x00000001 +#define DIEFF_OBJECTOFFSETS 0x00000002 +#define DIEFF_CARTESIAN 0x00000010 +#define DIEFF_POLAR 0x00000020 +#define DIEFF_SPHERICAL 0x00000040 + +#define DIEP_DURATION 0x00000001 +#define DIEP_SAMPLEPERIOD 0x00000002 +#define DIEP_GAIN 0x00000004 +#define DIEP_TRIGGERBUTTON 0x00000008 +#define DIEP_TRIGGERREPEATINTERVAL 0x00000010 +#define DIEP_AXES 0x00000020 +#define DIEP_DIRECTION 0x00000040 +#define DIEP_ENVELOPE 0x00000080 +#define DIEP_TYPESPECIFICPARAMS 0x00000100 +#if(DIRECTINPUT_VERSION >= 0x0600) +#define DIEP_STARTDELAY 0x00000200 +#define DIEP_ALLPARAMS_DX5 0x000001FF +#define DIEP_ALLPARAMS 0x000003FF +#else /* DIRECTINPUT_VERSION < 0x0600 */ +#define DIEP_ALLPARAMS 0x000001FF +#endif /* DIRECTINPUT_VERSION < 0x0600 */ +#define DIEP_START 0x20000000 +#define DIEP_NORESTART 0x40000000 +#define DIEP_NODOWNLOAD 0x80000000 +#define DIEB_NOTRIGGER 0xFFFFFFFF + +#define DIES_SOLO 0x00000001 +#define DIES_NODOWNLOAD 0x80000000 + +#define DIEGES_PLAYING 0x00000001 +#define DIEGES_EMULATED 0x00000002 + +typedef struct DIEFFESCAPE { + DWORD dwSize; + DWORD dwCommand; + LPVOID lpvInBuffer; + DWORD cbInBuffer; + LPVOID lpvOutBuffer; + DWORD cbOutBuffer; +} DIEFFESCAPE, *LPDIEFFESCAPE; + +#ifndef DIJ_RINGZERO + +#undef INTERFACE +#define INTERFACE IDirectInputEffect + +DECLARE_INTERFACE_(IDirectInputEffect, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputEffect methods ***/ + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; + STDMETHOD(GetEffectGuid)(THIS_ LPGUID) PURE; + STDMETHOD(GetParameters)(THIS_ LPDIEFFECT,DWORD) PURE; + STDMETHOD(SetParameters)(THIS_ LPCDIEFFECT,DWORD) PURE; + STDMETHOD(Start)(THIS_ DWORD,DWORD) PURE; + STDMETHOD(Stop)(THIS) PURE; + STDMETHOD(GetEffectStatus)(THIS_ LPDWORD) PURE; + STDMETHOD(Download)(THIS) PURE; + STDMETHOD(Unload)(THIS) PURE; + STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; +}; + +typedef struct IDirectInputEffect *LPDIRECTINPUTEFFECT; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectInputEffect_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectInputEffect_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectInputEffect_Release(p) (p)->lpVtbl->Release(p) +#define IDirectInputEffect_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) +#define IDirectInputEffect_GetEffectGuid(p,a) (p)->lpVtbl->GetEffectGuid(p,a) +#define IDirectInputEffect_GetParameters(p,a,b) (p)->lpVtbl->GetParameters(p,a,b) +#define IDirectInputEffect_SetParameters(p,a,b) (p)->lpVtbl->SetParameters(p,a,b) +#define IDirectInputEffect_Start(p,a,b) (p)->lpVtbl->Start(p,a,b) +#define IDirectInputEffect_Stop(p) (p)->lpVtbl->Stop(p) +#define IDirectInputEffect_GetEffectStatus(p,a) (p)->lpVtbl->GetEffectStatus(p,a) +#define IDirectInputEffect_Download(p) (p)->lpVtbl->Download(p) +#define IDirectInputEffect_Unload(p) (p)->lpVtbl->Unload(p) +#define IDirectInputEffect_Escape(p,a) (p)->lpVtbl->Escape(p,a) +#else +#define IDirectInputEffect_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectInputEffect_AddRef(p) (p)->AddRef() +#define IDirectInputEffect_Release(p) (p)->Release() +#define IDirectInputEffect_Initialize(p,a,b,c) (p)->Initialize(a,b,c) +#define IDirectInputEffect_GetEffectGuid(p,a) (p)->GetEffectGuid(a) +#define IDirectInputEffect_GetParameters(p,a,b) (p)->GetParameters(a,b) +#define IDirectInputEffect_SetParameters(p,a,b) (p)->SetParameters(a,b) +#define IDirectInputEffect_Start(p,a,b) (p)->Start(a,b) +#define IDirectInputEffect_Stop(p) (p)->Stop() +#define IDirectInputEffect_GetEffectStatus(p,a) (p)->GetEffectStatus(a) +#define IDirectInputEffect_Download(p) (p)->Download() +#define IDirectInputEffect_Unload(p) (p)->Unload() +#define IDirectInputEffect_Escape(p,a) (p)->Escape(a) +#endif + +#endif /* DIJ_RINGZERO */ + +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ + +/**************************************************************************** + * + * IDirectInputDevice + * + ****************************************************************************/ + +#if DIRECTINPUT_VERSION <= 0x700 +#define DIDEVTYPE_DEVICE 1 +#define DIDEVTYPE_MOUSE 2 +#define DIDEVTYPE_KEYBOARD 3 +#define DIDEVTYPE_JOYSTICK 4 + +#else +#define DI8DEVCLASS_ALL 0 +#define DI8DEVCLASS_DEVICE 1 +#define DI8DEVCLASS_POINTER 2 +#define DI8DEVCLASS_KEYBOARD 3 +#define DI8DEVCLASS_GAMECTRL 4 + +#define DI8DEVTYPE_DEVICE 0x11 +#define DI8DEVTYPE_MOUSE 0x12 +#define DI8DEVTYPE_KEYBOARD 0x13 +#define DI8DEVTYPE_JOYSTICK 0x14 +#define DI8DEVTYPE_GAMEPAD 0x15 +#define DI8DEVTYPE_DRIVING 0x16 +#define DI8DEVTYPE_FLIGHT 0x17 +#define DI8DEVTYPE_1STPERSON 0x18 +#define DI8DEVTYPE_DEVICECTRL 0x19 +#define DI8DEVTYPE_SCREENPOINTER 0x1A +#define DI8DEVTYPE_REMOTE 0x1B +#define DI8DEVTYPE_SUPPLEMENTAL 0x1C +#endif /* DIRECTINPUT_VERSION <= 0x700 */ + +#define DIDEVTYPE_HID 0x00010000 + +#if DIRECTINPUT_VERSION <= 0x700 +#define DIDEVTYPEMOUSE_UNKNOWN 1 +#define DIDEVTYPEMOUSE_TRADITIONAL 2 +#define DIDEVTYPEMOUSE_FINGERSTICK 3 +#define DIDEVTYPEMOUSE_TOUCHPAD 4 +#define DIDEVTYPEMOUSE_TRACKBALL 5 + +#define DIDEVTYPEKEYBOARD_UNKNOWN 0 +#define DIDEVTYPEKEYBOARD_PCXT 1 +#define DIDEVTYPEKEYBOARD_OLIVETTI 2 +#define DIDEVTYPEKEYBOARD_PCAT 3 +#define DIDEVTYPEKEYBOARD_PCENH 4 +#define DIDEVTYPEKEYBOARD_NOKIA1050 5 +#define DIDEVTYPEKEYBOARD_NOKIA9140 6 +#define DIDEVTYPEKEYBOARD_NEC98 7 +#define DIDEVTYPEKEYBOARD_NEC98LAPTOP 8 +#define DIDEVTYPEKEYBOARD_NEC98106 9 +#define DIDEVTYPEKEYBOARD_JAPAN106 10 +#define DIDEVTYPEKEYBOARD_JAPANAX 11 +#define DIDEVTYPEKEYBOARD_J3100 12 + +#define DIDEVTYPEJOYSTICK_UNKNOWN 1 +#define DIDEVTYPEJOYSTICK_TRADITIONAL 2 +#define DIDEVTYPEJOYSTICK_FLIGHTSTICK 3 +#define DIDEVTYPEJOYSTICK_GAMEPAD 4 +#define DIDEVTYPEJOYSTICK_RUDDER 5 +#define DIDEVTYPEJOYSTICK_WHEEL 6 +#define DIDEVTYPEJOYSTICK_HEADTRACKER 7 + +#else +#define DI8DEVTYPEMOUSE_UNKNOWN 1 +#define DI8DEVTYPEMOUSE_TRADITIONAL 2 +#define DI8DEVTYPEMOUSE_FINGERSTICK 3 +#define DI8DEVTYPEMOUSE_TOUCHPAD 4 +#define DI8DEVTYPEMOUSE_TRACKBALL 5 +#define DI8DEVTYPEMOUSE_ABSOLUTE 6 + +#define DI8DEVTYPEKEYBOARD_UNKNOWN 0 +#define DI8DEVTYPEKEYBOARD_PCXT 1 +#define DI8DEVTYPEKEYBOARD_OLIVETTI 2 +#define DI8DEVTYPEKEYBOARD_PCAT 3 +#define DI8DEVTYPEKEYBOARD_PCENH 4 +#define DI8DEVTYPEKEYBOARD_NOKIA1050 5 +#define DI8DEVTYPEKEYBOARD_NOKIA9140 6 +#define DI8DEVTYPEKEYBOARD_NEC98 7 +#define DI8DEVTYPEKEYBOARD_NEC98LAPTOP 8 +#define DI8DEVTYPEKEYBOARD_NEC98106 9 +#define DI8DEVTYPEKEYBOARD_JAPAN106 10 +#define DI8DEVTYPEKEYBOARD_JAPANAX 11 +#define DI8DEVTYPEKEYBOARD_J3100 12 + +#define DI8DEVTYPE_LIMITEDGAMESUBTYPE 1 + +#define DI8DEVTYPEJOYSTICK_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE +#define DI8DEVTYPEJOYSTICK_STANDARD 2 + +#define DI8DEVTYPEGAMEPAD_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE +#define DI8DEVTYPEGAMEPAD_STANDARD 2 +#define DI8DEVTYPEGAMEPAD_TILT 3 + +#define DI8DEVTYPEDRIVING_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE +#define DI8DEVTYPEDRIVING_COMBINEDPEDALS 2 +#define DI8DEVTYPEDRIVING_DUALPEDALS 3 +#define DI8DEVTYPEDRIVING_THREEPEDALS 4 +#define DI8DEVTYPEDRIVING_HANDHELD 5 + +#define DI8DEVTYPEFLIGHT_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE +#define DI8DEVTYPEFLIGHT_STICK 2 +#define DI8DEVTYPEFLIGHT_YOKE 3 +#define DI8DEVTYPEFLIGHT_RC 4 + +#define DI8DEVTYPE1STPERSON_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE +#define DI8DEVTYPE1STPERSON_UNKNOWN 2 +#define DI8DEVTYPE1STPERSON_SIXDOF 3 +#define DI8DEVTYPE1STPERSON_SHOOTER 4 + +#define DI8DEVTYPESCREENPTR_UNKNOWN 2 +#define DI8DEVTYPESCREENPTR_LIGHTGUN 3 +#define DI8DEVTYPESCREENPTR_LIGHTPEN 4 +#define DI8DEVTYPESCREENPTR_TOUCH 5 + +#define DI8DEVTYPEREMOTE_UNKNOWN 2 + +#define DI8DEVTYPEDEVICECTRL_UNKNOWN 2 +#define DI8DEVTYPEDEVICECTRL_COMMSSELECTION 3 +#define DI8DEVTYPEDEVICECTRL_COMMSSELECTION_HARDWIRED 4 + +#define DI8DEVTYPESUPPLEMENTAL_UNKNOWN 2 +#define DI8DEVTYPESUPPLEMENTAL_2NDHANDCONTROLLER 3 +#define DI8DEVTYPESUPPLEMENTAL_HEADTRACKER 4 +#define DI8DEVTYPESUPPLEMENTAL_HANDTRACKER 5 +#define DI8DEVTYPESUPPLEMENTAL_SHIFTSTICKGATE 6 +#define DI8DEVTYPESUPPLEMENTAL_SHIFTER 7 +#define DI8DEVTYPESUPPLEMENTAL_THROTTLE 8 +#define DI8DEVTYPESUPPLEMENTAL_SPLITTHROTTLE 9 +#define DI8DEVTYPESUPPLEMENTAL_COMBINEDPEDALS 10 +#define DI8DEVTYPESUPPLEMENTAL_DUALPEDALS 11 +#define DI8DEVTYPESUPPLEMENTAL_THREEPEDALS 12 +#define DI8DEVTYPESUPPLEMENTAL_RUDDERPEDALS 13 +#endif /* DIRECTINPUT_VERSION <= 0x700 */ + +#define GET_DIDEVICE_TYPE(dwDevType) LOBYTE(dwDevType) +#define GET_DIDEVICE_SUBTYPE(dwDevType) HIBYTE(dwDevType) + +#if(DIRECTINPUT_VERSION >= 0x0500) +/* This structure is defined for DirectX 3.0 compatibility */ +typedef struct DIDEVCAPS_DX3 { + DWORD dwSize; + DWORD dwFlags; + DWORD dwDevType; + DWORD dwAxes; + DWORD dwButtons; + DWORD dwPOVs; +} DIDEVCAPS_DX3, *LPDIDEVCAPS_DX3; +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ + +typedef struct DIDEVCAPS { + DWORD dwSize; + DWORD dwFlags; + DWORD dwDevType; + DWORD dwAxes; + DWORD dwButtons; + DWORD dwPOVs; +#if(DIRECTINPUT_VERSION >= 0x0500) + DWORD dwFFSamplePeriod; + DWORD dwFFMinTimeResolution; + DWORD dwFirmwareRevision; + DWORD dwHardwareRevision; + DWORD dwFFDriverVersion; +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ +} DIDEVCAPS, *LPDIDEVCAPS; + +#define DIDC_ATTACHED 0x00000001 +#define DIDC_POLLEDDEVICE 0x00000002 +#define DIDC_EMULATED 0x00000004 +#define DIDC_POLLEDDATAFORMAT 0x00000008 +#if(DIRECTINPUT_VERSION >= 0x0500) +#define DIDC_FORCEFEEDBACK 0x00000100 +#define DIDC_FFATTACK 0x00000200 +#define DIDC_FFFADE 0x00000400 +#define DIDC_SATURATION 0x00000800 +#define DIDC_POSNEGCOEFFICIENTS 0x00001000 +#define DIDC_POSNEGSATURATION 0x00002000 +#define DIDC_DEADBAND 0x00004000 +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ +#define DIDC_STARTDELAY 0x00008000 +#if(DIRECTINPUT_VERSION >= 0x050a) +#define DIDC_ALIAS 0x00010000 +#define DIDC_PHANTOM 0x00020000 +#endif /* DIRECTINPUT_VERSION >= 0x050a */ +#if(DIRECTINPUT_VERSION >= 0x0800) +#define DIDC_HIDDEN 0x00040000 +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ + +#define DIDFT_ALL 0x00000000 + +#define DIDFT_RELAXIS 0x00000001 +#define DIDFT_ABSAXIS 0x00000002 +#define DIDFT_AXIS 0x00000003 + +#define DIDFT_PSHBUTTON 0x00000004 +#define DIDFT_TGLBUTTON 0x00000008 +#define DIDFT_BUTTON 0x0000000C + +#define DIDFT_POV 0x00000010 +#define DIDFT_COLLECTION 0x00000040 +#define DIDFT_NODATA 0x00000080 + +#define DIDFT_ANYINSTANCE 0x00FFFF00 +#define DIDFT_INSTANCEMASK DIDFT_ANYINSTANCE +#define DIDFT_MAKEINSTANCE(n) ((WORD)(n) << 8) +#define DIDFT_GETTYPE(n) LOBYTE(n) +#define DIDFT_GETINSTANCE(n) LOWORD((n) >> 8) +#define DIDFT_FFACTUATOR 0x01000000 +#define DIDFT_FFEFFECTTRIGGER 0x02000000 +#if(DIRECTINPUT_VERSION >= 0x050a) +#define DIDFT_OUTPUT 0x10000000 +#define DIDFT_VENDORDEFINED 0x04000000 +#define DIDFT_ALIAS 0x08000000 +#endif /* DIRECTINPUT_VERSION >= 0x050a */ + +#define DIDFT_ENUMCOLLECTION(n) ((WORD)(n) << 8) +#define DIDFT_NOCOLLECTION 0x00FFFF00 + +#ifndef DIJ_RINGZERO + +typedef struct _DIOBJECTDATAFORMAT { + const GUID *pguid; + DWORD dwOfs; + DWORD dwType; + DWORD dwFlags; +} DIOBJECTDATAFORMAT, *LPDIOBJECTDATAFORMAT; +typedef const DIOBJECTDATAFORMAT *LPCDIOBJECTDATAFORMAT; + +typedef struct _DIDATAFORMAT { + DWORD dwSize; + DWORD dwObjSize; + DWORD dwFlags; + DWORD dwDataSize; + DWORD dwNumObjs; + LPDIOBJECTDATAFORMAT rgodf; +} DIDATAFORMAT, *LPDIDATAFORMAT; +typedef const DIDATAFORMAT *LPCDIDATAFORMAT; + +#define DIDF_ABSAXIS 0x00000001 +#define DIDF_RELAXIS 0x00000002 + +#ifdef __cplusplus +extern "C" { +#endif +extern const DIDATAFORMAT c_dfDIMouse; + +#if(DIRECTINPUT_VERSION >= 0x0700) +extern const DIDATAFORMAT c_dfDIMouse2; +#endif /* DIRECTINPUT_VERSION >= 0x0700 */ + +extern const DIDATAFORMAT c_dfDIKeyboard; + +#if(DIRECTINPUT_VERSION >= 0x0500) +extern const DIDATAFORMAT c_dfDIJoystick; +extern LPCDIDATAFORMAT WINAPI GetdfDIJoystick(); + +extern const DIDATAFORMAT c_dfDIJoystick2; +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ + +#ifdef __cplusplus +}; +#endif + + +#if DIRECTINPUT_VERSION > 0x0700 + +#pragma warning(push) +#pragma warning(disable:4201) // Nameless union / struct when compiled for C. + +typedef struct _DIACTIONA { + UINT_PTR uAppData; + DWORD dwSemantic; + OPTIONAL DWORD dwFlags; + OPTIONAL union { + LPCSTR lptszActionName; + UINT uResIdString; + }; + OPTIONAL GUID guidInstance; + OPTIONAL DWORD dwObjID; + OPTIONAL DWORD dwHow; +} DIACTIONA, *LPDIACTIONA ; +typedef struct _DIACTIONW { + UINT_PTR uAppData; + DWORD dwSemantic; + OPTIONAL DWORD dwFlags; + OPTIONAL union { + LPCWSTR lptszActionName; + UINT uResIdString; + }; + OPTIONAL GUID guidInstance; + OPTIONAL DWORD dwObjID; + OPTIONAL DWORD dwHow; +} DIACTIONW, *LPDIACTIONW ; +#ifdef UNICODE +typedef DIACTIONW DIACTION; +typedef LPDIACTIONW LPDIACTION; +#else +typedef DIACTIONA DIACTION; +typedef LPDIACTIONA LPDIACTION; +#endif // UNICODE + +typedef const DIACTIONA *LPCDIACTIONA; +typedef const DIACTIONW *LPCDIACTIONW; +#ifdef UNICODE +typedef DIACTIONW DIACTION; +typedef LPCDIACTIONW LPCDIACTION; +#else +typedef DIACTIONA DIACTION; +typedef LPCDIACTIONA LPCDIACTION; +#endif // UNICODE +typedef const DIACTION *LPCDIACTION; + +#pragma warning(pop) + +#define DIA_FORCEFEEDBACK 0x00000001 +#define DIA_APPMAPPED 0x00000002 +#define DIA_APPNOMAP 0x00000004 +#define DIA_NORANGE 0x00000008 +#define DIA_APPFIXED 0x00000010 + +#define DIAH_UNMAPPED 0x00000000 +#define DIAH_USERCONFIG 0x00000001 +#define DIAH_APPREQUESTED 0x00000002 +#define DIAH_HWAPP 0x00000004 +#define DIAH_HWDEFAULT 0x00000008 +#define DIAH_DEFAULT 0x00000020 +#define DIAH_ERROR 0x80000000 + +typedef struct _DIACTIONFORMATA { + DWORD dwSize; + DWORD dwActionSize; + DWORD dwDataSize; + DWORD dwNumActions; + LPDIACTIONA rgoAction; + GUID guidActionMap; + DWORD dwGenre; + DWORD dwBufferSize; + OPTIONAL LONG lAxisMin; + OPTIONAL LONG lAxisMax; + OPTIONAL HINSTANCE hInstString; + FILETIME ftTimeStamp; + DWORD dwCRC; + CHAR tszActionMap[MAX_PATH]; +} DIACTIONFORMATA, *LPDIACTIONFORMATA; +typedef struct _DIACTIONFORMATW { + DWORD dwSize; + DWORD dwActionSize; + DWORD dwDataSize; + DWORD dwNumActions; + LPDIACTIONW rgoAction; + GUID guidActionMap; + DWORD dwGenre; + DWORD dwBufferSize; + OPTIONAL LONG lAxisMin; + OPTIONAL LONG lAxisMax; + OPTIONAL HINSTANCE hInstString; + FILETIME ftTimeStamp; + DWORD dwCRC; + WCHAR tszActionMap[MAX_PATH]; +} DIACTIONFORMATW, *LPDIACTIONFORMATW; +#ifdef UNICODE +typedef DIACTIONFORMATW DIACTIONFORMAT; +typedef LPDIACTIONFORMATW LPDIACTIONFORMAT; +#else +typedef DIACTIONFORMATA DIACTIONFORMAT; +typedef LPDIACTIONFORMATA LPDIACTIONFORMAT; +#endif // UNICODE +typedef const DIACTIONFORMATA *LPCDIACTIONFORMATA; +typedef const DIACTIONFORMATW *LPCDIACTIONFORMATW; +#ifdef UNICODE +typedef DIACTIONFORMATW DIACTIONFORMAT; +typedef LPCDIACTIONFORMATW LPCDIACTIONFORMAT; +#else +typedef DIACTIONFORMATA DIACTIONFORMAT; +typedef LPCDIACTIONFORMATA LPCDIACTIONFORMAT; +#endif // UNICODE +typedef const DIACTIONFORMAT *LPCDIACTIONFORMAT; + +#define DIAFTS_NEWDEVICELOW 0xFFFFFFFF +#define DIAFTS_NEWDEVICEHIGH 0xFFFFFFFF +#define DIAFTS_UNUSEDDEVICELOW 0x00000000 +#define DIAFTS_UNUSEDDEVICEHIGH 0x00000000 + +#define DIDBAM_DEFAULT 0x00000000 +#define DIDBAM_PRESERVE 0x00000001 +#define DIDBAM_INITIALIZE 0x00000002 +#define DIDBAM_HWDEFAULTS 0x00000004 + +#define DIDSAM_DEFAULT 0x00000000 +#define DIDSAM_NOUSER 0x00000001 +#define DIDSAM_FORCESAVE 0x00000002 + +#define DICD_DEFAULT 0x00000000 +#define DICD_EDIT 0x00000001 + +/* + * The following definition is normally defined in d3dtypes.h + */ +#ifndef D3DCOLOR_DEFINED +typedef DWORD D3DCOLOR; +#define D3DCOLOR_DEFINED +#endif + +typedef struct _DICOLORSET{ + DWORD dwSize; + D3DCOLOR cTextFore; + D3DCOLOR cTextHighlight; + D3DCOLOR cCalloutLine; + D3DCOLOR cCalloutHighlight; + D3DCOLOR cBorder; + D3DCOLOR cControlFill; + D3DCOLOR cHighlightFill; + D3DCOLOR cAreaFill; +} DICOLORSET, *LPDICOLORSET; +typedef const DICOLORSET *LPCDICOLORSET; + + +typedef struct _DICONFIGUREDEVICESPARAMSA{ + DWORD dwSize; + DWORD dwcUsers; + LPSTR lptszUserNames; + DWORD dwcFormats; + LPDIACTIONFORMATA lprgFormats; + HWND hwnd; + DICOLORSET dics; + IUnknown FAR * lpUnkDDSTarget; +} DICONFIGUREDEVICESPARAMSA, *LPDICONFIGUREDEVICESPARAMSA; +typedef struct _DICONFIGUREDEVICESPARAMSW{ + DWORD dwSize; + DWORD dwcUsers; + LPWSTR lptszUserNames; + DWORD dwcFormats; + LPDIACTIONFORMATW lprgFormats; + HWND hwnd; + DICOLORSET dics; + IUnknown FAR * lpUnkDDSTarget; +} DICONFIGUREDEVICESPARAMSW, *LPDICONFIGUREDEVICESPARAMSW; +#ifdef UNICODE +typedef DICONFIGUREDEVICESPARAMSW DICONFIGUREDEVICESPARAMS; +typedef LPDICONFIGUREDEVICESPARAMSW LPDICONFIGUREDEVICESPARAMS; +#else +typedef DICONFIGUREDEVICESPARAMSA DICONFIGUREDEVICESPARAMS; +typedef LPDICONFIGUREDEVICESPARAMSA LPDICONFIGUREDEVICESPARAMS; +#endif // UNICODE +typedef const DICONFIGUREDEVICESPARAMSA *LPCDICONFIGUREDEVICESPARAMSA; +typedef const DICONFIGUREDEVICESPARAMSW *LPCDICONFIGUREDEVICESPARAMSW; +#ifdef UNICODE +typedef DICONFIGUREDEVICESPARAMSW DICONFIGUREDEVICESPARAMS; +typedef LPCDICONFIGUREDEVICESPARAMSW LPCDICONFIGUREDEVICESPARAMS; +#else +typedef DICONFIGUREDEVICESPARAMSA DICONFIGUREDEVICESPARAMS; +typedef LPCDICONFIGUREDEVICESPARAMSA LPCDICONFIGUREDEVICESPARAMS; +#endif // UNICODE +typedef const DICONFIGUREDEVICESPARAMS *LPCDICONFIGUREDEVICESPARAMS; + + +#define DIDIFT_CONFIGURATION 0x00000001 +#define DIDIFT_OVERLAY 0x00000002 + +#define DIDAL_CENTERED 0x00000000 +#define DIDAL_LEFTALIGNED 0x00000001 +#define DIDAL_RIGHTALIGNED 0x00000002 +#define DIDAL_MIDDLE 0x00000000 +#define DIDAL_TOPALIGNED 0x00000004 +#define DIDAL_BOTTOMALIGNED 0x00000008 + +typedef struct _DIDEVICEIMAGEINFOA { + CHAR tszImagePath[MAX_PATH]; + DWORD dwFlags; + // These are valid if DIDIFT_OVERLAY is present in dwFlags. + DWORD dwViewID; + RECT rcOverlay; + DWORD dwObjID; + DWORD dwcValidPts; + POINT rgptCalloutLine[5]; + RECT rcCalloutRect; + DWORD dwTextAlign; +} DIDEVICEIMAGEINFOA, *LPDIDEVICEIMAGEINFOA; +typedef struct _DIDEVICEIMAGEINFOW { + WCHAR tszImagePath[MAX_PATH]; + DWORD dwFlags; + // These are valid if DIDIFT_OVERLAY is present in dwFlags. + DWORD dwViewID; + RECT rcOverlay; + DWORD dwObjID; + DWORD dwcValidPts; + POINT rgptCalloutLine[5]; + RECT rcCalloutRect; + DWORD dwTextAlign; +} DIDEVICEIMAGEINFOW, *LPDIDEVICEIMAGEINFOW; +#ifdef UNICODE +typedef DIDEVICEIMAGEINFOW DIDEVICEIMAGEINFO; +typedef LPDIDEVICEIMAGEINFOW LPDIDEVICEIMAGEINFO; +#else +typedef DIDEVICEIMAGEINFOA DIDEVICEIMAGEINFO; +typedef LPDIDEVICEIMAGEINFOA LPDIDEVICEIMAGEINFO; +#endif // UNICODE +typedef const DIDEVICEIMAGEINFOA *LPCDIDEVICEIMAGEINFOA; +typedef const DIDEVICEIMAGEINFOW *LPCDIDEVICEIMAGEINFOW; +#ifdef UNICODE +typedef DIDEVICEIMAGEINFOW DIDEVICEIMAGEINFO; +typedef LPCDIDEVICEIMAGEINFOW LPCDIDEVICEIMAGEINFO; +#else +typedef DIDEVICEIMAGEINFOA DIDEVICEIMAGEINFO; +typedef LPCDIDEVICEIMAGEINFOA LPCDIDEVICEIMAGEINFO; +#endif // UNICODE +typedef const DIDEVICEIMAGEINFO *LPCDIDEVICEIMAGEINFO; + +typedef struct _DIDEVICEIMAGEINFOHEADERA { + DWORD dwSize; + DWORD dwSizeImageInfo; + DWORD dwcViews; + DWORD dwcButtons; + DWORD dwcAxes; + DWORD dwcPOVs; + DWORD dwBufferSize; + DWORD dwBufferUsed; + LPDIDEVICEIMAGEINFOA lprgImageInfoArray; +} DIDEVICEIMAGEINFOHEADERA, *LPDIDEVICEIMAGEINFOHEADERA; +typedef struct _DIDEVICEIMAGEINFOHEADERW { + DWORD dwSize; + DWORD dwSizeImageInfo; + DWORD dwcViews; + DWORD dwcButtons; + DWORD dwcAxes; + DWORD dwcPOVs; + DWORD dwBufferSize; + DWORD dwBufferUsed; + LPDIDEVICEIMAGEINFOW lprgImageInfoArray; +} DIDEVICEIMAGEINFOHEADERW, *LPDIDEVICEIMAGEINFOHEADERW; +#ifdef UNICODE +typedef DIDEVICEIMAGEINFOHEADERW DIDEVICEIMAGEINFOHEADER; +typedef LPDIDEVICEIMAGEINFOHEADERW LPDIDEVICEIMAGEINFOHEADER; +#else +typedef DIDEVICEIMAGEINFOHEADERA DIDEVICEIMAGEINFOHEADER; +typedef LPDIDEVICEIMAGEINFOHEADERA LPDIDEVICEIMAGEINFOHEADER; +#endif // UNICODE +typedef const DIDEVICEIMAGEINFOHEADERA *LPCDIDEVICEIMAGEINFOHEADERA; +typedef const DIDEVICEIMAGEINFOHEADERW *LPCDIDEVICEIMAGEINFOHEADERW; +#ifdef UNICODE +typedef DIDEVICEIMAGEINFOHEADERW DIDEVICEIMAGEINFOHEADER; +typedef LPCDIDEVICEIMAGEINFOHEADERW LPCDIDEVICEIMAGEINFOHEADER; +#else +typedef DIDEVICEIMAGEINFOHEADERA DIDEVICEIMAGEINFOHEADER; +typedef LPCDIDEVICEIMAGEINFOHEADERA LPCDIDEVICEIMAGEINFOHEADER; +#endif // UNICODE +typedef const DIDEVICEIMAGEINFOHEADER *LPCDIDEVICEIMAGEINFOHEADER; + +#endif /* DIRECTINPUT_VERSION > 0x0700 */ + +#if(DIRECTINPUT_VERSION >= 0x0500) +/* These structures are defined for DirectX 3.0 compatibility */ + +typedef struct DIDEVICEOBJECTINSTANCE_DX3A { + DWORD dwSize; + GUID guidType; + DWORD dwOfs; + DWORD dwType; + DWORD dwFlags; + CHAR tszName[MAX_PATH]; +} DIDEVICEOBJECTINSTANCE_DX3A, *LPDIDEVICEOBJECTINSTANCE_DX3A; +typedef struct DIDEVICEOBJECTINSTANCE_DX3W { + DWORD dwSize; + GUID guidType; + DWORD dwOfs; + DWORD dwType; + DWORD dwFlags; + WCHAR tszName[MAX_PATH]; +} DIDEVICEOBJECTINSTANCE_DX3W, *LPDIDEVICEOBJECTINSTANCE_DX3W; +#ifdef UNICODE +typedef DIDEVICEOBJECTINSTANCE_DX3W DIDEVICEOBJECTINSTANCE_DX3; +typedef LPDIDEVICEOBJECTINSTANCE_DX3W LPDIDEVICEOBJECTINSTANCE_DX3; +#else +typedef DIDEVICEOBJECTINSTANCE_DX3A DIDEVICEOBJECTINSTANCE_DX3; +typedef LPDIDEVICEOBJECTINSTANCE_DX3A LPDIDEVICEOBJECTINSTANCE_DX3; +#endif // UNICODE +typedef const DIDEVICEOBJECTINSTANCE_DX3A *LPCDIDEVICEOBJECTINSTANCE_DX3A; +typedef const DIDEVICEOBJECTINSTANCE_DX3W *LPCDIDEVICEOBJECTINSTANCE_DX3W; +typedef const DIDEVICEOBJECTINSTANCE_DX3 *LPCDIDEVICEOBJECTINSTANCE_DX3; +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ + +typedef struct DIDEVICEOBJECTINSTANCEA { + DWORD dwSize; + GUID guidType; + DWORD dwOfs; + DWORD dwType; + DWORD dwFlags; + CHAR tszName[MAX_PATH]; +#if(DIRECTINPUT_VERSION >= 0x0500) + DWORD dwFFMaxForce; + DWORD dwFFForceResolution; + WORD wCollectionNumber; + WORD wDesignatorIndex; + WORD wUsagePage; + WORD wUsage; + DWORD dwDimension; + WORD wExponent; + WORD wReportId; +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ +} DIDEVICEOBJECTINSTANCEA, *LPDIDEVICEOBJECTINSTANCEA; +typedef struct DIDEVICEOBJECTINSTANCEW { + DWORD dwSize; + GUID guidType; + DWORD dwOfs; + DWORD dwType; + DWORD dwFlags; + WCHAR tszName[MAX_PATH]; +#if(DIRECTINPUT_VERSION >= 0x0500) + DWORD dwFFMaxForce; + DWORD dwFFForceResolution; + WORD wCollectionNumber; + WORD wDesignatorIndex; + WORD wUsagePage; + WORD wUsage; + DWORD dwDimension; + WORD wExponent; + WORD wReportId; +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ +} DIDEVICEOBJECTINSTANCEW, *LPDIDEVICEOBJECTINSTANCEW; +#ifdef UNICODE +typedef DIDEVICEOBJECTINSTANCEW DIDEVICEOBJECTINSTANCE; +typedef LPDIDEVICEOBJECTINSTANCEW LPDIDEVICEOBJECTINSTANCE; +#else +typedef DIDEVICEOBJECTINSTANCEA DIDEVICEOBJECTINSTANCE; +typedef LPDIDEVICEOBJECTINSTANCEA LPDIDEVICEOBJECTINSTANCE; +#endif // UNICODE +typedef const DIDEVICEOBJECTINSTANCEA *LPCDIDEVICEOBJECTINSTANCEA; +typedef const DIDEVICEOBJECTINSTANCEW *LPCDIDEVICEOBJECTINSTANCEW; +typedef const DIDEVICEOBJECTINSTANCE *LPCDIDEVICEOBJECTINSTANCE; + +typedef BOOL (FAR PASCAL * LPDIENUMDEVICEOBJECTSCALLBACKA)(LPCDIDEVICEOBJECTINSTANCEA, LPVOID); +typedef BOOL (FAR PASCAL * LPDIENUMDEVICEOBJECTSCALLBACKW)(LPCDIDEVICEOBJECTINSTANCEW, LPVOID); +#ifdef UNICODE +#define LPDIENUMDEVICEOBJECTSCALLBACK LPDIENUMDEVICEOBJECTSCALLBACKW +#else +#define LPDIENUMDEVICEOBJECTSCALLBACK LPDIENUMDEVICEOBJECTSCALLBACKA +#endif // !UNICODE + +#if(DIRECTINPUT_VERSION >= 0x0500) +#define DIDOI_FFACTUATOR 0x00000001 +#define DIDOI_FFEFFECTTRIGGER 0x00000002 +#define DIDOI_POLLED 0x00008000 +#define DIDOI_ASPECTPOSITION 0x00000100 +#define DIDOI_ASPECTVELOCITY 0x00000200 +#define DIDOI_ASPECTACCEL 0x00000300 +#define DIDOI_ASPECTFORCE 0x00000400 +#define DIDOI_ASPECTMASK 0x00000F00 +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ +#if(DIRECTINPUT_VERSION >= 0x050a) +#define DIDOI_GUIDISUSAGE 0x00010000 +#endif /* DIRECTINPUT_VERSION >= 0x050a */ + +typedef struct DIPROPHEADER { + DWORD dwSize; + DWORD dwHeaderSize; + DWORD dwObj; + DWORD dwHow; +} DIPROPHEADER, *LPDIPROPHEADER; +typedef const DIPROPHEADER *LPCDIPROPHEADER; + +#define DIPH_DEVICE 0 +#define DIPH_BYOFFSET 1 +#define DIPH_BYID 2 +#if(DIRECTINPUT_VERSION >= 0x050a) +#define DIPH_BYUSAGE 3 +#endif /* DIRECTINPUT_VERSION >= 0x050a */ + +#if(DIRECTINPUT_VERSION >= 0x050a) +#define DIMAKEUSAGEDWORD(UsagePage, Usage) \ + (DWORD)MAKELONG(Usage, UsagePage) +#endif /* DIRECTINPUT_VERSION >= 0x050a */ + +typedef struct DIPROPDWORD { + DIPROPHEADER diph; + DWORD dwData; +} DIPROPDWORD, *LPDIPROPDWORD; +typedef const DIPROPDWORD *LPCDIPROPDWORD; + +#if(DIRECTINPUT_VERSION >= 0x0800) +typedef struct DIPROPPOINTER { + DIPROPHEADER diph; + UINT_PTR uData; +} DIPROPPOINTER, *LPDIPROPPOINTER; +typedef const DIPROPPOINTER *LPCDIPROPPOINTER; +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ + +typedef struct DIPROPRANGE { + DIPROPHEADER diph; + LONG lMin; + LONG lMax; +} DIPROPRANGE, *LPDIPROPRANGE; +typedef const DIPROPRANGE *LPCDIPROPRANGE; + +#define DIPROPRANGE_NOMIN ((LONG)0x80000000) +#define DIPROPRANGE_NOMAX ((LONG)0x7FFFFFFF) + +#if(DIRECTINPUT_VERSION >= 0x050a) +typedef struct DIPROPCAL { + DIPROPHEADER diph; + LONG lMin; + LONG lCenter; + LONG lMax; +} DIPROPCAL, *LPDIPROPCAL; +typedef const DIPROPCAL *LPCDIPROPCAL; + +typedef struct DIPROPCALPOV { + DIPROPHEADER diph; + LONG lMin[5]; + LONG lMax[5]; +} DIPROPCALPOV, *LPDIPROPCALPOV; +typedef const DIPROPCALPOV *LPCDIPROPCALPOV; + +typedef struct DIPROPGUIDANDPATH { + DIPROPHEADER diph; + GUID guidClass; + WCHAR wszPath[MAX_PATH]; +} DIPROPGUIDANDPATH, *LPDIPROPGUIDANDPATH; +typedef const DIPROPGUIDANDPATH *LPCDIPROPGUIDANDPATH; + +typedef struct DIPROPSTRING { + DIPROPHEADER diph; + WCHAR wsz[MAX_PATH]; +} DIPROPSTRING, *LPDIPROPSTRING; +typedef const DIPROPSTRING *LPCDIPROPSTRING; + +#endif /* DIRECTINPUT_VERSION >= 0x050a */ + +#if(DIRECTINPUT_VERSION >= 0x0800) +#define MAXCPOINTSNUM 8 + +typedef struct _CPOINT +{ + LONG lP; // raw value + DWORD dwLog; // logical_value / max_logical_value * 10000 +} CPOINT, *PCPOINT; + +typedef struct DIPROPCPOINTS { + DIPROPHEADER diph; + DWORD dwCPointsNum; + CPOINT cp[MAXCPOINTSNUM]; +} DIPROPCPOINTS, *LPDIPROPCPOINTS; +typedef const DIPROPCPOINTS *LPCDIPROPCPOINTS; +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ + + +#ifdef __cplusplus +#define MAKEDIPROP(prop) (*(const GUID *)(prop)) +#else +#define MAKEDIPROP(prop) ((REFGUID)(prop)) +#endif + +#define DIPROP_BUFFERSIZE MAKEDIPROP(1) + +#define DIPROP_AXISMODE MAKEDIPROP(2) + +#define DIPROPAXISMODE_ABS 0 +#define DIPROPAXISMODE_REL 1 + +#define DIPROP_GRANULARITY MAKEDIPROP(3) + +#define DIPROP_RANGE MAKEDIPROP(4) + +#define DIPROP_DEADZONE MAKEDIPROP(5) + +#define DIPROP_SATURATION MAKEDIPROP(6) + +#define DIPROP_FFGAIN MAKEDIPROP(7) + +#define DIPROP_FFLOAD MAKEDIPROP(8) + +#define DIPROP_AUTOCENTER MAKEDIPROP(9) + +#define DIPROPAUTOCENTER_OFF 0 +#define DIPROPAUTOCENTER_ON 1 + +#define DIPROP_CALIBRATIONMODE MAKEDIPROP(10) + +#define DIPROPCALIBRATIONMODE_COOKED 0 +#define DIPROPCALIBRATIONMODE_RAW 1 + +#if(DIRECTINPUT_VERSION >= 0x050a) +#define DIPROP_CALIBRATION MAKEDIPROP(11) + +#define DIPROP_GUIDANDPATH MAKEDIPROP(12) + +#define DIPROP_INSTANCENAME MAKEDIPROP(13) + +#define DIPROP_PRODUCTNAME MAKEDIPROP(14) +#endif /* DIRECTINPUT_VERSION >= 0x050a */ + +#if(DIRECTINPUT_VERSION >= 0x05b2) +#define DIPROP_JOYSTICKID MAKEDIPROP(15) + +#define DIPROP_GETPORTDISPLAYNAME MAKEDIPROP(16) + +#endif /* DIRECTINPUT_VERSION >= 0x05b2 */ + +#if(DIRECTINPUT_VERSION >= 0x0700) +#define DIPROP_PHYSICALRANGE MAKEDIPROP(18) + +#define DIPROP_LOGICALRANGE MAKEDIPROP(19) +#endif /* DIRECTINPUT_VERSION >= 0x0700 */ + +#if(DIRECTINPUT_VERSION >= 0x0800) +#define DIPROP_KEYNAME MAKEDIPROP(20) + +#define DIPROP_CPOINTS MAKEDIPROP(21) + +#define DIPROP_APPDATA MAKEDIPROP(22) + +#define DIPROP_SCANCODE MAKEDIPROP(23) + +#define DIPROP_VIDPID MAKEDIPROP(24) + +#define DIPROP_USERNAME MAKEDIPROP(25) + +#define DIPROP_TYPENAME MAKEDIPROP(26) +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ + + +typedef struct DIDEVICEOBJECTDATA_DX3 { + DWORD dwOfs; + DWORD dwData; + DWORD dwTimeStamp; + DWORD dwSequence; +} DIDEVICEOBJECTDATA_DX3, *LPDIDEVICEOBJECTDATA_DX3; +typedef const DIDEVICEOBJECTDATA_DX3 *LPCDIDEVICEOBJECTDATA_DX; + +typedef struct DIDEVICEOBJECTDATA { + DWORD dwOfs; + DWORD dwData; + DWORD dwTimeStamp; + DWORD dwSequence; +#if(DIRECTINPUT_VERSION >= 0x0800) + UINT_PTR uAppData; +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ +} DIDEVICEOBJECTDATA, *LPDIDEVICEOBJECTDATA; +typedef const DIDEVICEOBJECTDATA *LPCDIDEVICEOBJECTDATA; + +#define DIGDD_PEEK 0x00000001 + +#define DISEQUENCE_COMPARE(dwSequence1, cmp, dwSequence2) \ + ((int)((dwSequence1) - (dwSequence2)) cmp 0) +#define DISCL_EXCLUSIVE 0x00000001 +#define DISCL_NONEXCLUSIVE 0x00000002 +#define DISCL_FOREGROUND 0x00000004 +#define DISCL_BACKGROUND 0x00000008 +#define DISCL_NOWINKEY 0x00000010 + +#if(DIRECTINPUT_VERSION >= 0x0500) +/* These structures are defined for DirectX 3.0 compatibility */ + +typedef struct DIDEVICEINSTANCE_DX3A { + DWORD dwSize; + GUID guidInstance; + GUID guidProduct; + DWORD dwDevType; + CHAR tszInstanceName[MAX_PATH]; + CHAR tszProductName[MAX_PATH]; +} DIDEVICEINSTANCE_DX3A, *LPDIDEVICEINSTANCE_DX3A; +typedef struct DIDEVICEINSTANCE_DX3W { + DWORD dwSize; + GUID guidInstance; + GUID guidProduct; + DWORD dwDevType; + WCHAR tszInstanceName[MAX_PATH]; + WCHAR tszProductName[MAX_PATH]; +} DIDEVICEINSTANCE_DX3W, *LPDIDEVICEINSTANCE_DX3W; +#ifdef UNICODE +typedef DIDEVICEINSTANCE_DX3W DIDEVICEINSTANCE_DX3; +typedef LPDIDEVICEINSTANCE_DX3W LPDIDEVICEINSTANCE_DX3; +#else +typedef DIDEVICEINSTANCE_DX3A DIDEVICEINSTANCE_DX3; +typedef LPDIDEVICEINSTANCE_DX3A LPDIDEVICEINSTANCE_DX3; +#endif // UNICODE +typedef const DIDEVICEINSTANCE_DX3A *LPCDIDEVICEINSTANCE_DX3A; +typedef const DIDEVICEINSTANCE_DX3W *LPCDIDEVICEINSTANCE_DX3W; +typedef const DIDEVICEINSTANCE_DX3 *LPCDIDEVICEINSTANCE_DX3; +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ + +typedef struct DIDEVICEINSTANCEA { + DWORD dwSize; + GUID guidInstance; + GUID guidProduct; + DWORD dwDevType; + CHAR tszInstanceName[MAX_PATH]; + CHAR tszProductName[MAX_PATH]; +#if(DIRECTINPUT_VERSION >= 0x0500) + GUID guidFFDriver; + WORD wUsagePage; + WORD wUsage; +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ +} DIDEVICEINSTANCEA, *LPDIDEVICEINSTANCEA; +typedef struct DIDEVICEINSTANCEW { + DWORD dwSize; + GUID guidInstance; + GUID guidProduct; + DWORD dwDevType; + WCHAR tszInstanceName[MAX_PATH]; + WCHAR tszProductName[MAX_PATH]; +#if(DIRECTINPUT_VERSION >= 0x0500) + GUID guidFFDriver; + WORD wUsagePage; + WORD wUsage; +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ +} DIDEVICEINSTANCEW, *LPDIDEVICEINSTANCEW; +#ifdef UNICODE +typedef DIDEVICEINSTANCEW DIDEVICEINSTANCE; +typedef LPDIDEVICEINSTANCEW LPDIDEVICEINSTANCE; +#else +typedef DIDEVICEINSTANCEA DIDEVICEINSTANCE; +typedef LPDIDEVICEINSTANCEA LPDIDEVICEINSTANCE; +#endif // UNICODE + +typedef const DIDEVICEINSTANCEA *LPCDIDEVICEINSTANCEA; +typedef const DIDEVICEINSTANCEW *LPCDIDEVICEINSTANCEW; +#ifdef UNICODE +typedef DIDEVICEINSTANCEW DIDEVICEINSTANCE; +typedef LPCDIDEVICEINSTANCEW LPCDIDEVICEINSTANCE; +#else +typedef DIDEVICEINSTANCEA DIDEVICEINSTANCE; +typedef LPCDIDEVICEINSTANCEA LPCDIDEVICEINSTANCE; +#endif // UNICODE +typedef const DIDEVICEINSTANCE *LPCDIDEVICEINSTANCE; + +#undef INTERFACE +#define INTERFACE IDirectInputDeviceW + +DECLARE_INTERFACE_(IDirectInputDeviceW, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputDeviceW methods ***/ + STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; + STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; + STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; + STDMETHOD(Acquire)(THIS) PURE; + STDMETHOD(Unacquire)(THIS) PURE; + STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; + STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; + STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE; + STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; +}; + +typedef struct IDirectInputDeviceW *LPDIRECTINPUTDEVICEW; + +#undef INTERFACE +#define INTERFACE IDirectInputDeviceA + +DECLARE_INTERFACE_(IDirectInputDeviceA, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputDeviceA methods ***/ + STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; + STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; + STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; + STDMETHOD(Acquire)(THIS) PURE; + STDMETHOD(Unacquire)(THIS) PURE; + STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; + STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; + STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE; + STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; +}; + +typedef struct IDirectInputDeviceA *LPDIRECTINPUTDEVICEA; + +#ifdef UNICODE +#define IID_IDirectInputDevice IID_IDirectInputDeviceW +#define IDirectInputDevice IDirectInputDeviceW +#define IDirectInputDeviceVtbl IDirectInputDeviceWVtbl +#else +#define IID_IDirectInputDevice IID_IDirectInputDeviceA +#define IDirectInputDevice IDirectInputDeviceA +#define IDirectInputDeviceVtbl IDirectInputDeviceAVtbl +#endif +typedef struct IDirectInputDevice *LPDIRECTINPUTDEVICE; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectInputDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectInputDevice_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectInputDevice_Release(p) (p)->lpVtbl->Release(p) +#define IDirectInputDevice_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) +#define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) +#define IDirectInputDevice_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) +#define IDirectInputDevice_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) +#define IDirectInputDevice_Acquire(p) (p)->lpVtbl->Acquire(p) +#define IDirectInputDevice_Unacquire(p) (p)->lpVtbl->Unacquire(p) +#define IDirectInputDevice_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) +#define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) +#define IDirectInputDevice_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) +#define IDirectInputDevice_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) +#define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) +#define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) +#define IDirectInputDevice_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) +#define IDirectInputDevice_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) +#define IDirectInputDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) +#else +#define IDirectInputDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectInputDevice_AddRef(p) (p)->AddRef() +#define IDirectInputDevice_Release(p) (p)->Release() +#define IDirectInputDevice_GetCapabilities(p,a) (p)->GetCapabilities(a) +#define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) +#define IDirectInputDevice_GetProperty(p,a,b) (p)->GetProperty(a,b) +#define IDirectInputDevice_SetProperty(p,a,b) (p)->SetProperty(a,b) +#define IDirectInputDevice_Acquire(p) (p)->Acquire() +#define IDirectInputDevice_Unacquire(p) (p)->Unacquire() +#define IDirectInputDevice_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) +#define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) +#define IDirectInputDevice_SetDataFormat(p,a) (p)->SetDataFormat(a) +#define IDirectInputDevice_SetEventNotification(p,a) (p)->SetEventNotification(a) +#define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) +#define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) +#define IDirectInputDevice_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) +#define IDirectInputDevice_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) +#define IDirectInputDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c) +#endif + +#endif /* DIJ_RINGZERO */ + + +#if(DIRECTINPUT_VERSION >= 0x0500) + +#define DISFFC_RESET 0x00000001 +#define DISFFC_STOPALL 0x00000002 +#define DISFFC_PAUSE 0x00000004 +#define DISFFC_CONTINUE 0x00000008 +#define DISFFC_SETACTUATORSON 0x00000010 +#define DISFFC_SETACTUATORSOFF 0x00000020 + +#define DIGFFS_EMPTY 0x00000001 +#define DIGFFS_STOPPED 0x00000002 +#define DIGFFS_PAUSED 0x00000004 +#define DIGFFS_ACTUATORSON 0x00000010 +#define DIGFFS_ACTUATORSOFF 0x00000020 +#define DIGFFS_POWERON 0x00000040 +#define DIGFFS_POWEROFF 0x00000080 +#define DIGFFS_SAFETYSWITCHON 0x00000100 +#define DIGFFS_SAFETYSWITCHOFF 0x00000200 +#define DIGFFS_USERFFSWITCHON 0x00000400 +#define DIGFFS_USERFFSWITCHOFF 0x00000800 +#define DIGFFS_DEVICELOST 0x80000000 + +#ifndef DIJ_RINGZERO + +typedef struct DIEFFECTINFOA { + DWORD dwSize; + GUID guid; + DWORD dwEffType; + DWORD dwStaticParams; + DWORD dwDynamicParams; + CHAR tszName[MAX_PATH]; +} DIEFFECTINFOA, *LPDIEFFECTINFOA; +typedef struct DIEFFECTINFOW { + DWORD dwSize; + GUID guid; + DWORD dwEffType; + DWORD dwStaticParams; + DWORD dwDynamicParams; + WCHAR tszName[MAX_PATH]; +} DIEFFECTINFOW, *LPDIEFFECTINFOW; +#ifdef UNICODE +typedef DIEFFECTINFOW DIEFFECTINFO; +typedef LPDIEFFECTINFOW LPDIEFFECTINFO; +#else +typedef DIEFFECTINFOA DIEFFECTINFO; +typedef LPDIEFFECTINFOA LPDIEFFECTINFO; +#endif // UNICODE +typedef const DIEFFECTINFOA *LPCDIEFFECTINFOA; +typedef const DIEFFECTINFOW *LPCDIEFFECTINFOW; +typedef const DIEFFECTINFO *LPCDIEFFECTINFO; + +#define DISDD_CONTINUE 0x00000001 + +typedef BOOL (FAR PASCAL * LPDIENUMEFFECTSCALLBACKA)(LPCDIEFFECTINFOA, LPVOID); +typedef BOOL (FAR PASCAL * LPDIENUMEFFECTSCALLBACKW)(LPCDIEFFECTINFOW, LPVOID); +#ifdef UNICODE +#define LPDIENUMEFFECTSCALLBACK LPDIENUMEFFECTSCALLBACKW +#else +#define LPDIENUMEFFECTSCALLBACK LPDIENUMEFFECTSCALLBACKA +#endif // !UNICODE +typedef BOOL (FAR PASCAL * LPDIENUMCREATEDEFFECTOBJECTSCALLBACK)(LPDIRECTINPUTEFFECT, LPVOID); + +#undef INTERFACE +#define INTERFACE IDirectInputDevice2W + +DECLARE_INTERFACE_(IDirectInputDevice2W, IDirectInputDeviceW) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputDeviceW methods ***/ + STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; + STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; + STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; + STDMETHOD(Acquire)(THIS) PURE; + STDMETHOD(Unacquire)(THIS) PURE; + STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; + STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; + STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE; + STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; + + /*** IDirectInputDevice2W methods ***/ + STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; + STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW,REFGUID) PURE; + STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; + STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; + STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; + STDMETHOD(Poll)(THIS) PURE; + STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; +}; + +typedef struct IDirectInputDevice2W *LPDIRECTINPUTDEVICE2W; + +#undef INTERFACE +#define INTERFACE IDirectInputDevice2A + +DECLARE_INTERFACE_(IDirectInputDevice2A, IDirectInputDeviceA) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputDeviceA methods ***/ + STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; + STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; + STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; + STDMETHOD(Acquire)(THIS) PURE; + STDMETHOD(Unacquire)(THIS) PURE; + STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; + STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; + STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE; + STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; + + /*** IDirectInputDevice2A methods ***/ + STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; + STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA,REFGUID) PURE; + STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; + STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; + STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; + STDMETHOD(Poll)(THIS) PURE; + STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; +}; + +typedef struct IDirectInputDevice2A *LPDIRECTINPUTDEVICE2A; + +#ifdef UNICODE +#define IID_IDirectInputDevice2 IID_IDirectInputDevice2W +#define IDirectInputDevice2 IDirectInputDevice2W +#define IDirectInputDevice2Vtbl IDirectInputDevice2WVtbl +#else +#define IID_IDirectInputDevice2 IID_IDirectInputDevice2A +#define IDirectInputDevice2 IDirectInputDevice2A +#define IDirectInputDevice2Vtbl IDirectInputDevice2AVtbl +#endif +typedef struct IDirectInputDevice2 *LPDIRECTINPUTDEVICE2; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectInputDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectInputDevice2_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectInputDevice2_Release(p) (p)->lpVtbl->Release(p) +#define IDirectInputDevice2_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) +#define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) +#define IDirectInputDevice2_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) +#define IDirectInputDevice2_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) +#define IDirectInputDevice2_Acquire(p) (p)->lpVtbl->Acquire(p) +#define IDirectInputDevice2_Unacquire(p) (p)->lpVtbl->Unacquire(p) +#define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) +#define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) +#define IDirectInputDevice2_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) +#define IDirectInputDevice2_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) +#define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) +#define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) +#define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) +#define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) +#define IDirectInputDevice2_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) +#define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d) +#define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c) +#define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b) +#define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a) +#define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a) +#define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c) +#define IDirectInputDevice2_Escape(p,a) (p)->lpVtbl->Escape(p,a) +#define IDirectInputDevice2_Poll(p) (p)->lpVtbl->Poll(p) +#define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d) +#else +#define IDirectInputDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectInputDevice2_AddRef(p) (p)->AddRef() +#define IDirectInputDevice2_Release(p) (p)->Release() +#define IDirectInputDevice2_GetCapabilities(p,a) (p)->GetCapabilities(a) +#define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) +#define IDirectInputDevice2_GetProperty(p,a,b) (p)->GetProperty(a,b) +#define IDirectInputDevice2_SetProperty(p,a,b) (p)->SetProperty(a,b) +#define IDirectInputDevice2_Acquire(p) (p)->Acquire() +#define IDirectInputDevice2_Unacquire(p) (p)->Unacquire() +#define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) +#define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) +#define IDirectInputDevice2_SetDataFormat(p,a) (p)->SetDataFormat(a) +#define IDirectInputDevice2_SetEventNotification(p,a) (p)->SetEventNotification(a) +#define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) +#define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) +#define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) +#define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) +#define IDirectInputDevice2_Initialize(p,a,b,c) (p)->Initialize(a,b,c) +#define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d) +#define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c) +#define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b) +#define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a) +#define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a) +#define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c) +#define IDirectInputDevice2_Escape(p,a) (p)->Escape(a) +#define IDirectInputDevice2_Poll(p) (p)->Poll() +#define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d) +#endif + +#endif /* DIJ_RINGZERO */ + +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ + +#if(DIRECTINPUT_VERSION >= 0x0700) +#define DIFEF_DEFAULT 0x00000000 +#define DIFEF_INCLUDENONSTANDARD 0x00000001 +#define DIFEF_MODIFYIFNEEDED 0x00000010 + +#ifndef DIJ_RINGZERO + +#undef INTERFACE +#define INTERFACE IDirectInputDevice7W + +DECLARE_INTERFACE_(IDirectInputDevice7W, IDirectInputDevice2W) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputDevice2W methods ***/ + STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; + STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; + STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; + STDMETHOD(Acquire)(THIS) PURE; + STDMETHOD(Unacquire)(THIS) PURE; + STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; + STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; + STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE; + STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; + STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; + STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW,REFGUID) PURE; + STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; + STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; + STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; + STDMETHOD(Poll)(THIS) PURE; + STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + + /*** IDirectInputDevice7W methods ***/ + STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE; +}; + +typedef struct IDirectInputDevice7W *LPDIRECTINPUTDEVICE7W; + +#undef INTERFACE +#define INTERFACE IDirectInputDevice7A + +DECLARE_INTERFACE_(IDirectInputDevice7A, IDirectInputDevice2A) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputDevice2A methods ***/ + STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; + STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; + STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; + STDMETHOD(Acquire)(THIS) PURE; + STDMETHOD(Unacquire)(THIS) PURE; + STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; + STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; + STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE; + STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; + STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; + STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA,REFGUID) PURE; + STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; + STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; + STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; + STDMETHOD(Poll)(THIS) PURE; + STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + + /*** IDirectInputDevice7A methods ***/ + STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE; +}; + +typedef struct IDirectInputDevice7A *LPDIRECTINPUTDEVICE7A; + +#ifdef UNICODE +#define IID_IDirectInputDevice7 IID_IDirectInputDevice7W +#define IDirectInputDevice7 IDirectInputDevice7W +#define IDirectInputDevice7Vtbl IDirectInputDevice7WVtbl +#else +#define IID_IDirectInputDevice7 IID_IDirectInputDevice7A +#define IDirectInputDevice7 IDirectInputDevice7A +#define IDirectInputDevice7Vtbl IDirectInputDevice7AVtbl +#endif +typedef struct IDirectInputDevice7 *LPDIRECTINPUTDEVICE7; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectInputDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectInputDevice7_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectInputDevice7_Release(p) (p)->lpVtbl->Release(p) +#define IDirectInputDevice7_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) +#define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) +#define IDirectInputDevice7_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) +#define IDirectInputDevice7_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) +#define IDirectInputDevice7_Acquire(p) (p)->lpVtbl->Acquire(p) +#define IDirectInputDevice7_Unacquire(p) (p)->lpVtbl->Unacquire(p) +#define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) +#define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) +#define IDirectInputDevice7_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) +#define IDirectInputDevice7_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) +#define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) +#define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) +#define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) +#define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) +#define IDirectInputDevice7_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) +#define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d) +#define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c) +#define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b) +#define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a) +#define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a) +#define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c) +#define IDirectInputDevice7_Escape(p,a) (p)->lpVtbl->Escape(p,a) +#define IDirectInputDevice7_Poll(p) (p)->lpVtbl->Poll(p) +#define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d) +#define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d) +#define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d) +#else +#define IDirectInputDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectInputDevice7_AddRef(p) (p)->AddRef() +#define IDirectInputDevice7_Release(p) (p)->Release() +#define IDirectInputDevice7_GetCapabilities(p,a) (p)->GetCapabilities(a) +#define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) +#define IDirectInputDevice7_GetProperty(p,a,b) (p)->GetProperty(a,b) +#define IDirectInputDevice7_SetProperty(p,a,b) (p)->SetProperty(a,b) +#define IDirectInputDevice7_Acquire(p) (p)->Acquire() +#define IDirectInputDevice7_Unacquire(p) (p)->Unacquire() +#define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) +#define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) +#define IDirectInputDevice7_SetDataFormat(p,a) (p)->SetDataFormat(a) +#define IDirectInputDevice7_SetEventNotification(p,a) (p)->SetEventNotification(a) +#define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) +#define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) +#define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) +#define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) +#define IDirectInputDevice7_Initialize(p,a,b,c) (p)->Initialize(a,b,c) +#define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d) +#define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c) +#define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b) +#define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a) +#define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a) +#define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c) +#define IDirectInputDevice7_Escape(p,a) (p)->Escape(a) +#define IDirectInputDevice7_Poll(p) (p)->Poll() +#define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d) +#define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d) +#define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d) +#endif + +#endif /* DIJ_RINGZERO */ + +#endif /* DIRECTINPUT_VERSION >= 0x0700 */ + +#if(DIRECTINPUT_VERSION >= 0x0800) + +#ifndef DIJ_RINGZERO + +#undef INTERFACE +#define INTERFACE IDirectInputDevice8W + +DECLARE_INTERFACE_(IDirectInputDevice8W, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputDevice8W methods ***/ + STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; + STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; + STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; + STDMETHOD(Acquire)(THIS) PURE; + STDMETHOD(Unacquire)(THIS) PURE; + STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; + STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; + STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW,DWORD,DWORD) PURE; + STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; + STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; + STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW,REFGUID) PURE; + STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; + STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; + STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; + STDMETHOD(Poll)(THIS) PURE; + STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE; + STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATW,LPCWSTR,DWORD) PURE; + STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATW,LPCWSTR,DWORD) PURE; + STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERW) PURE; +}; + +typedef struct IDirectInputDevice8W *LPDIRECTINPUTDEVICE8W; + +#undef INTERFACE +#define INTERFACE IDirectInputDevice8A + +DECLARE_INTERFACE_(IDirectInputDevice8A, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputDevice8A methods ***/ + STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS) PURE; + STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetProperty)(THIS_ REFGUID,LPDIPROPHEADER) PURE; + STDMETHOD(SetProperty)(THIS_ REFGUID,LPCDIPROPHEADER) PURE; + STDMETHOD(Acquire)(THIS) PURE; + STDMETHOD(Unacquire)(THIS) PURE; + STDMETHOD(GetDeviceState)(THIS_ DWORD,LPVOID) PURE; + STDMETHOD(GetDeviceData)(THIS_ DWORD,LPDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT) PURE; + STDMETHOD(SetEventNotification)(THIS_ HANDLE) PURE; + STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA,DWORD,DWORD) PURE; + STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD,REFGUID) PURE; + STDMETHOD(CreateEffect)(THIS_ REFGUID,LPCDIEFFECT,LPDIRECTINPUTEFFECT *,LPUNKNOWN) PURE; + STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA,REFGUID) PURE; + STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD) PURE; + STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD) PURE; + STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE; + STDMETHOD(Poll)(THIS) PURE; + STDMETHOD(SendDeviceData)(THIS_ DWORD,LPCDIDEVICEOBJECTDATA,LPDWORD,DWORD) PURE; + STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR,LPDIENUMEFFECTSINFILECALLBACK,LPVOID,DWORD) PURE; + STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR,DWORD,LPDIFILEEFFECT,DWORD) PURE; + STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATA,LPCSTR,DWORD) PURE; + STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATA,LPCSTR,DWORD) PURE; + STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERA) PURE; +}; + +typedef struct IDirectInputDevice8A *LPDIRECTINPUTDEVICE8A; + +#ifdef UNICODE +#define IID_IDirectInputDevice8 IID_IDirectInputDevice8W +#define IDirectInputDevice8 IDirectInputDevice8W +#define IDirectInputDevice8Vtbl IDirectInputDevice8WVtbl +#else +#define IID_IDirectInputDevice8 IID_IDirectInputDevice8A +#define IDirectInputDevice8 IDirectInputDevice8A +#define IDirectInputDevice8Vtbl IDirectInputDevice8AVtbl +#endif +typedef struct IDirectInputDevice8 *LPDIRECTINPUTDEVICE8; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectInputDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectInputDevice8_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectInputDevice8_Release(p) (p)->lpVtbl->Release(p) +#define IDirectInputDevice8_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) +#define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) +#define IDirectInputDevice8_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) +#define IDirectInputDevice8_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b) +#define IDirectInputDevice8_Acquire(p) (p)->lpVtbl->Acquire(p) +#define IDirectInputDevice8_Unacquire(p) (p)->lpVtbl->Unacquire(p) +#define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b) +#define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d) +#define IDirectInputDevice8_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a) +#define IDirectInputDevice8_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a) +#define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) +#define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c) +#define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a) +#define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) +#define IDirectInputDevice8_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) +#define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d) +#define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c) +#define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b) +#define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a) +#define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a) +#define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c) +#define IDirectInputDevice8_Escape(p,a) (p)->lpVtbl->Escape(p,a) +#define IDirectInputDevice8_Poll(p) (p)->lpVtbl->Poll(p) +#define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d) +#define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d) +#define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d) +#define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->lpVtbl->BuildActionMap(p,a,b,c) +#define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->lpVtbl->SetActionMap(p,a,b,c) +#define IDirectInputDevice8_GetImageInfo(p,a) (p)->lpVtbl->GetImageInfo(p,a) +#else +#define IDirectInputDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectInputDevice8_AddRef(p) (p)->AddRef() +#define IDirectInputDevice8_Release(p) (p)->Release() +#define IDirectInputDevice8_GetCapabilities(p,a) (p)->GetCapabilities(a) +#define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c) +#define IDirectInputDevice8_GetProperty(p,a,b) (p)->GetProperty(a,b) +#define IDirectInputDevice8_SetProperty(p,a,b) (p)->SetProperty(a,b) +#define IDirectInputDevice8_Acquire(p) (p)->Acquire() +#define IDirectInputDevice8_Unacquire(p) (p)->Unacquire() +#define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b) +#define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d) +#define IDirectInputDevice8_SetDataFormat(p,a) (p)->SetDataFormat(a) +#define IDirectInputDevice8_SetEventNotification(p,a) (p)->SetEventNotification(a) +#define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) +#define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c) +#define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a) +#define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) +#define IDirectInputDevice8_Initialize(p,a,b,c) (p)->Initialize(a,b,c) +#define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d) +#define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c) +#define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b) +#define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a) +#define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a) +#define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c) +#define IDirectInputDevice8_Escape(p,a) (p)->Escape(a) +#define IDirectInputDevice8_Poll(p) (p)->Poll() +#define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d) +#define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d) +#define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d) +#define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->BuildActionMap(a,b,c) +#define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->SetActionMap(a,b,c) +#define IDirectInputDevice8_GetImageInfo(p,a) (p)->GetImageInfo(a) +#endif + +#endif /* DIJ_RINGZERO */ + +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ + +/**************************************************************************** + * + * Mouse + * + ****************************************************************************/ + +#ifndef DIJ_RINGZERO + +typedef struct _DIMOUSESTATE { + LONG lX; + LONG lY; + LONG lZ; + BYTE rgbButtons[4]; +} DIMOUSESTATE, *LPDIMOUSESTATE; + +#if DIRECTINPUT_VERSION >= 0x0700 +typedef struct _DIMOUSESTATE2 { + LONG lX; + LONG lY; + LONG lZ; + BYTE rgbButtons[8]; +} DIMOUSESTATE2, *LPDIMOUSESTATE2; +#endif + + +#define DIMOFS_X FIELD_OFFSET(DIMOUSESTATE, lX) +#define DIMOFS_Y FIELD_OFFSET(DIMOUSESTATE, lY) +#define DIMOFS_Z FIELD_OFFSET(DIMOUSESTATE, lZ) +#define DIMOFS_BUTTON0 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 0) +#define DIMOFS_BUTTON1 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 1) +#define DIMOFS_BUTTON2 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 2) +#define DIMOFS_BUTTON3 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 3) +#if (DIRECTINPUT_VERSION >= 0x0700) +#define DIMOFS_BUTTON4 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 4) +#define DIMOFS_BUTTON5 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 5) +#define DIMOFS_BUTTON6 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 6) +#define DIMOFS_BUTTON7 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 7) +#endif +#endif /* DIJ_RINGZERO */ + +/**************************************************************************** + * + * Keyboard + * + ****************************************************************************/ + +#ifndef DIJ_RINGZERO + +/**************************************************************************** + * + * DirectInput keyboard scan codes + * + ****************************************************************************/ +// +// Copyright (C) Microsoft. All rights reserved. +// +#define DIK_ESCAPE 0x01 +#define DIK_1 0x02 +#define DIK_2 0x03 +#define DIK_3 0x04 +#define DIK_4 0x05 +#define DIK_5 0x06 +#define DIK_6 0x07 +#define DIK_7 0x08 +#define DIK_8 0x09 +#define DIK_9 0x0A +#define DIK_0 0x0B +#define DIK_MINUS 0x0C /* - on main keyboard */ +#define DIK_EQUALS 0x0D +#define DIK_BACK 0x0E /* backspace */ +#define DIK_TAB 0x0F +#define DIK_Q 0x10 +#define DIK_W 0x11 +#define DIK_E 0x12 +#define DIK_R 0x13 +#define DIK_T 0x14 +#define DIK_Y 0x15 +#define DIK_U 0x16 +#define DIK_I 0x17 +#define DIK_O 0x18 +#define DIK_P 0x19 +#define DIK_LBRACKET 0x1A +#define DIK_RBRACKET 0x1B +#define DIK_RETURN 0x1C /* Enter on main keyboard */ +#define DIK_LCONTROL 0x1D +#define DIK_A 0x1E +#define DIK_S 0x1F +#define DIK_D 0x20 +#define DIK_F 0x21 +#define DIK_G 0x22 +#define DIK_H 0x23 +#define DIK_J 0x24 +#define DIK_K 0x25 +#define DIK_L 0x26 +#define DIK_SEMICOLON 0x27 +#define DIK_APOSTROPHE 0x28 +#define DIK_GRAVE 0x29 /* accent grave */ +#define DIK_LSHIFT 0x2A +#define DIK_BACKSLASH 0x2B +#define DIK_Z 0x2C +#define DIK_X 0x2D +#define DIK_C 0x2E +#define DIK_V 0x2F +#define DIK_B 0x30 +#define DIK_N 0x31 +#define DIK_M 0x32 +#define DIK_COMMA 0x33 +#define DIK_PERIOD 0x34 /* . on main keyboard */ +#define DIK_SLASH 0x35 /* / on main keyboard */ +#define DIK_RSHIFT 0x36 +#define DIK_MULTIPLY 0x37 /* * on numeric keypad */ +#define DIK_LMENU 0x38 /* left Alt */ +#define DIK_SPACE 0x39 +#define DIK_CAPITAL 0x3A +#define DIK_F1 0x3B +#define DIK_F2 0x3C +#define DIK_F3 0x3D +#define DIK_F4 0x3E +#define DIK_F5 0x3F +#define DIK_F6 0x40 +#define DIK_F7 0x41 +#define DIK_F8 0x42 +#define DIK_F9 0x43 +#define DIK_F10 0x44 +#define DIK_NUMLOCK 0x45 +#define DIK_SCROLL 0x46 /* Scroll Lock */ +#define DIK_NUMPAD7 0x47 +#define DIK_NUMPAD8 0x48 +#define DIK_NUMPAD9 0x49 +#define DIK_SUBTRACT 0x4A /* - on numeric keypad */ +#define DIK_NUMPAD4 0x4B +#define DIK_NUMPAD5 0x4C +#define DIK_NUMPAD6 0x4D +#define DIK_ADD 0x4E /* + on numeric keypad */ +#define DIK_NUMPAD1 0x4F +#define DIK_NUMPAD2 0x50 +#define DIK_NUMPAD3 0x51 +#define DIK_NUMPAD0 0x52 +#define DIK_DECIMAL 0x53 /* . on numeric keypad */ +#define DIK_OEM_102 0x56 /* <> or \| on RT 102-key keyboard (Non-U.S.) */ +#define DIK_F11 0x57 +#define DIK_F12 0x58 +#define DIK_F13 0x64 /* (NEC PC98) */ +#define DIK_F14 0x65 /* (NEC PC98) */ +#define DIK_F15 0x66 /* (NEC PC98) */ +#define DIK_KANA 0x70 /* (Japanese keyboard) */ +#define DIK_ABNT_C1 0x73 /* /? on Brazilian keyboard */ +#define DIK_CONVERT 0x79 /* (Japanese keyboard) */ +#define DIK_NOCONVERT 0x7B /* (Japanese keyboard) */ +#define DIK_YEN 0x7D /* (Japanese keyboard) */ +#define DIK_ABNT_C2 0x7E /* Numpad . on Brazilian keyboard */ +#define DIK_NUMPADEQUALS 0x8D /* = on numeric keypad (NEC PC98) */ +#define DIK_PREVTRACK 0x90 /* Previous Track (DIK_CIRCUMFLEX on Japanese keyboard) */ +#define DIK_AT 0x91 /* (NEC PC98) */ +#define DIK_COLON 0x92 /* (NEC PC98) */ +#define DIK_UNDERLINE 0x93 /* (NEC PC98) */ +#define DIK_KANJI 0x94 /* (Japanese keyboard) */ +#define DIK_STOP 0x95 /* (NEC PC98) */ +#define DIK_AX 0x96 /* (Japan AX) */ +#define DIK_UNLABELED 0x97 /* (J3100) */ +#define DIK_NEXTTRACK 0x99 /* Next Track */ +#define DIK_NUMPADENTER 0x9C /* Enter on numeric keypad */ +#define DIK_RCONTROL 0x9D +#define DIK_MUTE 0xA0 /* Mute */ +#define DIK_CALCULATOR 0xA1 /* Calculator */ +#define DIK_PLAYPAUSE 0xA2 /* Play / Pause */ +#define DIK_MEDIASTOP 0xA4 /* Media Stop */ +#define DIK_VOLUMEDOWN 0xAE /* Volume - */ +#define DIK_VOLUMEUP 0xB0 /* Volume + */ +#define DIK_WEBHOME 0xB2 /* Web home */ +#define DIK_NUMPADCOMMA 0xB3 /* , on numeric keypad (NEC PC98) */ +#define DIK_DIVIDE 0xB5 /* / on numeric keypad */ +#define DIK_SYSRQ 0xB7 +#define DIK_RMENU 0xB8 /* right Alt */ +#define DIK_PAUSE 0xC5 /* Pause */ +#define DIK_HOME 0xC7 /* Home on arrow keypad */ +#define DIK_UP 0xC8 /* UpArrow on arrow keypad */ +#define DIK_PRIOR 0xC9 /* PgUp on arrow keypad */ +#define DIK_LEFT 0xCB /* LeftArrow on arrow keypad */ +#define DIK_RIGHT 0xCD /* RightArrow on arrow keypad */ +#define DIK_END 0xCF /* End on arrow keypad */ +#define DIK_DOWN 0xD0 /* DownArrow on arrow keypad */ +#define DIK_NEXT 0xD1 /* PgDn on arrow keypad */ +#define DIK_INSERT 0xD2 /* Insert on arrow keypad */ +#define DIK_DELETE 0xD3 /* Delete on arrow keypad */ +#define DIK_LWIN 0xDB /* Left Windows key */ +#define DIK_RWIN 0xDC /* Right Windows key */ +#define DIK_APPS 0xDD /* AppMenu key */ +#define DIK_POWER 0xDE /* System Power */ +#define DIK_SLEEP 0xDF /* System Sleep */ +#define DIK_WAKE 0xE3 /* System Wake */ +#define DIK_WEBSEARCH 0xE5 /* Web Search */ +#define DIK_WEBFAVORITES 0xE6 /* Web Favorites */ +#define DIK_WEBREFRESH 0xE7 /* Web Refresh */ +#define DIK_WEBSTOP 0xE8 /* Web Stop */ +#define DIK_WEBFORWARD 0xE9 /* Web Forward */ +#define DIK_WEBBACK 0xEA /* Web Back */ +#define DIK_MYCOMPUTER 0xEB /* My Computer */ +#define DIK_MAIL 0xEC /* Mail */ +#define DIK_MEDIASELECT 0xED /* Media Select */ + +/* + * Alternate names for keys, to facilitate transition from DOS. + */ +#define DIK_BACKSPACE DIK_BACK /* backspace */ +#define DIK_NUMPADSTAR DIK_MULTIPLY /* * on numeric keypad */ +#define DIK_LALT DIK_LMENU /* left Alt */ +#define DIK_CAPSLOCK DIK_CAPITAL /* CapsLock */ +#define DIK_NUMPADMINUS DIK_SUBTRACT /* - on numeric keypad */ +#define DIK_NUMPADPLUS DIK_ADD /* + on numeric keypad */ +#define DIK_NUMPADPERIOD DIK_DECIMAL /* . on numeric keypad */ +#define DIK_NUMPADSLASH DIK_DIVIDE /* / on numeric keypad */ +#define DIK_RALT DIK_RMENU /* right Alt */ +#define DIK_UPARROW DIK_UP /* UpArrow on arrow keypad */ +#define DIK_PGUP DIK_PRIOR /* PgUp on arrow keypad */ +#define DIK_LEFTARROW DIK_LEFT /* LeftArrow on arrow keypad */ +#define DIK_RIGHTARROW DIK_RIGHT /* RightArrow on arrow keypad */ +#define DIK_DOWNARROW DIK_DOWN /* DownArrow on arrow keypad */ +#define DIK_PGDN DIK_NEXT /* PgDn on arrow keypad */ + +/* + * Alternate names for keys originally not used on US keyboards. + */ +#define DIK_CIRCUMFLEX DIK_PREVTRACK /* Japanese keyboard */ + +#endif /* DIJ_RINGZERO */ + +/**************************************************************************** + * + * Joystick + * + ****************************************************************************/ + +#ifndef DIJ_RINGZERO + +typedef struct DIJOYSTATE { + LONG lX; /* x-axis position */ + LONG lY; /* y-axis position */ + LONG lZ; /* z-axis position */ + LONG lRx; /* x-axis rotation */ + LONG lRy; /* y-axis rotation */ + LONG lRz; /* z-axis rotation */ + LONG rglSlider[2]; /* extra axes positions */ + DWORD rgdwPOV[4]; /* POV directions */ + BYTE rgbButtons[32]; /* 32 buttons */ +} DIJOYSTATE, *LPDIJOYSTATE; + +typedef struct DIJOYSTATE2 { + LONG lX; /* x-axis position */ + LONG lY; /* y-axis position */ + LONG lZ; /* z-axis position */ + LONG lRx; /* x-axis rotation */ + LONG lRy; /* y-axis rotation */ + LONG lRz; /* z-axis rotation */ + LONG rglSlider[2]; /* extra axes positions */ + DWORD rgdwPOV[4]; /* POV directions */ + BYTE rgbButtons[128]; /* 128 buttons */ + LONG lVX; /* x-axis velocity */ + LONG lVY; /* y-axis velocity */ + LONG lVZ; /* z-axis velocity */ + LONG lVRx; /* x-axis angular velocity */ + LONG lVRy; /* y-axis angular velocity */ + LONG lVRz; /* z-axis angular velocity */ + LONG rglVSlider[2]; /* extra axes velocities */ + LONG lAX; /* x-axis acceleration */ + LONG lAY; /* y-axis acceleration */ + LONG lAZ; /* z-axis acceleration */ + LONG lARx; /* x-axis angular acceleration */ + LONG lARy; /* y-axis angular acceleration */ + LONG lARz; /* z-axis angular acceleration */ + LONG rglASlider[2]; /* extra axes accelerations */ + LONG lFX; /* x-axis force */ + LONG lFY; /* y-axis force */ + LONG lFZ; /* z-axis force */ + LONG lFRx; /* x-axis torque */ + LONG lFRy; /* y-axis torque */ + LONG lFRz; /* z-axis torque */ + LONG rglFSlider[2]; /* extra axes forces */ +} DIJOYSTATE2, *LPDIJOYSTATE2; + +#define DIJOFS_X FIELD_OFFSET(DIJOYSTATE, lX) +#define DIJOFS_Y FIELD_OFFSET(DIJOYSTATE, lY) +#define DIJOFS_Z FIELD_OFFSET(DIJOYSTATE, lZ) +#define DIJOFS_RX FIELD_OFFSET(DIJOYSTATE, lRx) +#define DIJOFS_RY FIELD_OFFSET(DIJOYSTATE, lRy) +#define DIJOFS_RZ FIELD_OFFSET(DIJOYSTATE, lRz) +#define DIJOFS_SLIDER(n) (FIELD_OFFSET(DIJOYSTATE, rglSlider) + \ + (n) * sizeof(LONG)) +#define DIJOFS_POV(n) (FIELD_OFFSET(DIJOYSTATE, rgdwPOV) + \ + (n) * sizeof(DWORD)) +#define DIJOFS_BUTTON(n) (FIELD_OFFSET(DIJOYSTATE, rgbButtons) + (n)) +#define DIJOFS_BUTTON0 DIJOFS_BUTTON(0) +#define DIJOFS_BUTTON1 DIJOFS_BUTTON(1) +#define DIJOFS_BUTTON2 DIJOFS_BUTTON(2) +#define DIJOFS_BUTTON3 DIJOFS_BUTTON(3) +#define DIJOFS_BUTTON4 DIJOFS_BUTTON(4) +#define DIJOFS_BUTTON5 DIJOFS_BUTTON(5) +#define DIJOFS_BUTTON6 DIJOFS_BUTTON(6) +#define DIJOFS_BUTTON7 DIJOFS_BUTTON(7) +#define DIJOFS_BUTTON8 DIJOFS_BUTTON(8) +#define DIJOFS_BUTTON9 DIJOFS_BUTTON(9) +#define DIJOFS_BUTTON10 DIJOFS_BUTTON(10) +#define DIJOFS_BUTTON11 DIJOFS_BUTTON(11) +#define DIJOFS_BUTTON12 DIJOFS_BUTTON(12) +#define DIJOFS_BUTTON13 DIJOFS_BUTTON(13) +#define DIJOFS_BUTTON14 DIJOFS_BUTTON(14) +#define DIJOFS_BUTTON15 DIJOFS_BUTTON(15) +#define DIJOFS_BUTTON16 DIJOFS_BUTTON(16) +#define DIJOFS_BUTTON17 DIJOFS_BUTTON(17) +#define DIJOFS_BUTTON18 DIJOFS_BUTTON(18) +#define DIJOFS_BUTTON19 DIJOFS_BUTTON(19) +#define DIJOFS_BUTTON20 DIJOFS_BUTTON(20) +#define DIJOFS_BUTTON21 DIJOFS_BUTTON(21) +#define DIJOFS_BUTTON22 DIJOFS_BUTTON(22) +#define DIJOFS_BUTTON23 DIJOFS_BUTTON(23) +#define DIJOFS_BUTTON24 DIJOFS_BUTTON(24) +#define DIJOFS_BUTTON25 DIJOFS_BUTTON(25) +#define DIJOFS_BUTTON26 DIJOFS_BUTTON(26) +#define DIJOFS_BUTTON27 DIJOFS_BUTTON(27) +#define DIJOFS_BUTTON28 DIJOFS_BUTTON(28) +#define DIJOFS_BUTTON29 DIJOFS_BUTTON(29) +#define DIJOFS_BUTTON30 DIJOFS_BUTTON(30) +#define DIJOFS_BUTTON31 DIJOFS_BUTTON(31) + + +#endif /* DIJ_RINGZERO */ + +/**************************************************************************** + * + * IDirectInput + * + ****************************************************************************/ + +#ifndef DIJ_RINGZERO + +#define DIENUM_STOP 0 +#define DIENUM_CONTINUE 1 + +typedef BOOL (FAR PASCAL * LPDIENUMDEVICESCALLBACKA)(LPCDIDEVICEINSTANCEA, LPVOID); +typedef BOOL (FAR PASCAL * LPDIENUMDEVICESCALLBACKW)(LPCDIDEVICEINSTANCEW, LPVOID); +#ifdef UNICODE +#define LPDIENUMDEVICESCALLBACK LPDIENUMDEVICESCALLBACKW +#else +#define LPDIENUMDEVICESCALLBACK LPDIENUMDEVICESCALLBACKA +#endif // !UNICODE +typedef BOOL (FAR PASCAL * LPDICONFIGUREDEVICESCALLBACK)(IUnknown FAR *, LPVOID); + +#define DIEDFL_ALLDEVICES 0x00000000 +#define DIEDFL_ATTACHEDONLY 0x00000001 +#if(DIRECTINPUT_VERSION >= 0x0500) +#define DIEDFL_FORCEFEEDBACK 0x00000100 +#endif /* DIRECTINPUT_VERSION >= 0x0500 */ +#if(DIRECTINPUT_VERSION >= 0x050a) +#define DIEDFL_INCLUDEALIASES 0x00010000 +#define DIEDFL_INCLUDEPHANTOMS 0x00020000 +#endif /* DIRECTINPUT_VERSION >= 0x050a */ +#if(DIRECTINPUT_VERSION >= 0x0800) +#define DIEDFL_INCLUDEHIDDEN 0x00040000 +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ + + +#if(DIRECTINPUT_VERSION >= 0x0800) +typedef BOOL (FAR PASCAL * LPDIENUMDEVICESBYSEMANTICSCBA)(LPCDIDEVICEINSTANCEA, LPDIRECTINPUTDEVICE8A, DWORD, DWORD, LPVOID); +typedef BOOL (FAR PASCAL * LPDIENUMDEVICESBYSEMANTICSCBW)(LPCDIDEVICEINSTANCEW, LPDIRECTINPUTDEVICE8W, DWORD, DWORD, LPVOID); +#ifdef UNICODE +#define LPDIENUMDEVICESBYSEMANTICSCB LPDIENUMDEVICESBYSEMANTICSCBW +#else +#define LPDIENUMDEVICESBYSEMANTICSCB LPDIENUMDEVICESBYSEMANTICSCBA +#endif // !UNICODE +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ + +#if(DIRECTINPUT_VERSION >= 0x0800) +#define DIEDBS_MAPPEDPRI1 0x00000001 +#define DIEDBS_MAPPEDPRI2 0x00000002 +#define DIEDBS_RECENTDEVICE 0x00000010 +#define DIEDBS_NEWDEVICE 0x00000020 +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ + +#if(DIRECTINPUT_VERSION >= 0x0800) +#define DIEDBSFL_ATTACHEDONLY 0x00000000 +#define DIEDBSFL_THISUSER 0x00000010 +#define DIEDBSFL_FORCEFEEDBACK DIEDFL_FORCEFEEDBACK +#define DIEDBSFL_AVAILABLEDEVICES 0x00001000 +#define DIEDBSFL_MULTIMICEKEYBOARDS 0x00002000 +#define DIEDBSFL_NONGAMINGDEVICES 0x00004000 +#define DIEDBSFL_VALID 0x00007110 +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ + +#undef INTERFACE +#define INTERFACE IDirectInputW + +DECLARE_INTERFACE_(IDirectInputW, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputW methods ***/ + STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEW *,LPUNKNOWN) PURE; + STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; +}; + +typedef struct IDirectInputW *LPDIRECTINPUTW; + +#undef INTERFACE +#define INTERFACE IDirectInputA + +DECLARE_INTERFACE_(IDirectInputA, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputA methods ***/ + STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEA *,LPUNKNOWN) PURE; + STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; +}; + +typedef struct IDirectInputA *LPDIRECTINPUTA; + +#ifdef UNICODE +#define IID_IDirectInput IID_IDirectInputW +#define IDirectInput IDirectInputW +#define IDirectInputVtbl IDirectInputWVtbl +#else +#define IID_IDirectInput IID_IDirectInputA +#define IDirectInput IDirectInputA +#define IDirectInputVtbl IDirectInputAVtbl +#endif +typedef struct IDirectInput *LPDIRECTINPUT; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectInput_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectInput_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectInput_Release(p) (p)->lpVtbl->Release(p) +#define IDirectInput_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) +#define IDirectInput_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) +#define IDirectInput_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) +#define IDirectInput_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) +#define IDirectInput_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#else +#define IDirectInput_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectInput_AddRef(p) (p)->AddRef() +#define IDirectInput_Release(p) (p)->Release() +#define IDirectInput_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) +#define IDirectInput_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) +#define IDirectInput_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) +#define IDirectInput_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) +#define IDirectInput_Initialize(p,a,b) (p)->Initialize(a,b) +#endif + +#undef INTERFACE +#define INTERFACE IDirectInput2W + +DECLARE_INTERFACE_(IDirectInput2W, IDirectInputW) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputW methods ***/ + STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEW *,LPUNKNOWN) PURE; + STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; + + /*** IDirectInput2W methods ***/ + STDMETHOD(FindDevice)(THIS_ REFGUID,LPCWSTR,LPGUID) PURE; +}; + +typedef struct IDirectInput2W *LPDIRECTINPUT2W; + +#undef INTERFACE +#define INTERFACE IDirectInput2A + +DECLARE_INTERFACE_(IDirectInput2A, IDirectInputA) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInputA methods ***/ + STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEA *,LPUNKNOWN) PURE; + STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; + + /*** IDirectInput2A methods ***/ + STDMETHOD(FindDevice)(THIS_ REFGUID,LPCSTR,LPGUID) PURE; +}; + +typedef struct IDirectInput2A *LPDIRECTINPUT2A; + +#ifdef UNICODE +#define IID_IDirectInput2 IID_IDirectInput2W +#define IDirectInput2 IDirectInput2W +#define IDirectInput2Vtbl IDirectInput2WVtbl +#else +#define IID_IDirectInput2 IID_IDirectInput2A +#define IDirectInput2 IDirectInput2A +#define IDirectInput2Vtbl IDirectInput2AVtbl +#endif +typedef struct IDirectInput2 *LPDIRECTINPUT2; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectInput2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectInput2_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectInput2_Release(p) (p)->lpVtbl->Release(p) +#define IDirectInput2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) +#define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) +#define IDirectInput2_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) +#define IDirectInput2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) +#define IDirectInput2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirectInput2_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c) +#else +#define IDirectInput2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectInput2_AddRef(p) (p)->AddRef() +#define IDirectInput2_Release(p) (p)->Release() +#define IDirectInput2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) +#define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) +#define IDirectInput2_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) +#define IDirectInput2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) +#define IDirectInput2_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirectInput2_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c) +#endif + + +#undef INTERFACE +#define INTERFACE IDirectInput7W + +DECLARE_INTERFACE_(IDirectInput7W, IDirectInput2W) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInput2W methods ***/ + STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEW *,LPUNKNOWN) PURE; + STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; + STDMETHOD(FindDevice)(THIS_ REFGUID,LPCWSTR,LPGUID) PURE; + + /*** IDirectInput7W methods ***/ + STDMETHOD(CreateDeviceEx)(THIS_ REFGUID,REFIID,LPVOID *,LPUNKNOWN) PURE; +}; + +typedef struct IDirectInput7W *LPDIRECTINPUT7W; + +#undef INTERFACE +#define INTERFACE IDirectInput7A + +DECLARE_INTERFACE_(IDirectInput7A, IDirectInput2A) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInput2A methods ***/ + STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICEA *,LPUNKNOWN) PURE; + STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; + STDMETHOD(FindDevice)(THIS_ REFGUID,LPCSTR,LPGUID) PURE; + + /*** IDirectInput7A methods ***/ + STDMETHOD(CreateDeviceEx)(THIS_ REFGUID,REFIID,LPVOID *,LPUNKNOWN) PURE; +}; + +typedef struct IDirectInput7A *LPDIRECTINPUT7A; + +#ifdef UNICODE +#define IID_IDirectInput7 IID_IDirectInput7W +#define IDirectInput7 IDirectInput7W +#define IDirectInput7Vtbl IDirectInput7WVtbl +#else +#define IID_IDirectInput7 IID_IDirectInput7A +#define IDirectInput7 IDirectInput7A +#define IDirectInput7Vtbl IDirectInput7AVtbl +#endif +typedef struct IDirectInput7 *LPDIRECTINPUT7; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectInput7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectInput7_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectInput7_Release(p) (p)->lpVtbl->Release(p) +#define IDirectInput7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) +#define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) +#define IDirectInput7_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) +#define IDirectInput7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) +#define IDirectInput7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirectInput7_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c) +#define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->lpVtbl->CreateDeviceEx(p,a,b,c,d) +#else +#define IDirectInput7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectInput7_AddRef(p) (p)->AddRef() +#define IDirectInput7_Release(p) (p)->Release() +#define IDirectInput7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) +#define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) +#define IDirectInput7_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) +#define IDirectInput7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) +#define IDirectInput7_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirectInput7_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c) +#define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->CreateDeviceEx(a,b,c,d) +#endif + +#if(DIRECTINPUT_VERSION >= 0x0800) +#undef INTERFACE +#define INTERFACE IDirectInput8W + +DECLARE_INTERFACE_(IDirectInput8W, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInput8W methods ***/ + STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICE8W *,LPUNKNOWN) PURE; + STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKW,LPVOID,DWORD) PURE; + STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; + STDMETHOD(FindDevice)(THIS_ REFGUID,LPCWSTR,LPGUID) PURE; + STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCWSTR,LPDIACTIONFORMATW,LPDIENUMDEVICESBYSEMANTICSCBW,LPVOID,DWORD) PURE; + STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK,LPDICONFIGUREDEVICESPARAMSW,DWORD,LPVOID) PURE; +}; + +typedef struct IDirectInput8W *LPDIRECTINPUT8W; + +#undef INTERFACE +#define INTERFACE IDirectInput8A + +DECLARE_INTERFACE_(IDirectInput8A, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirectInput8A methods ***/ + STDMETHOD(CreateDevice)(THIS_ REFGUID,LPDIRECTINPUTDEVICE8A *,LPUNKNOWN) PURE; + STDMETHOD(EnumDevices)(THIS_ DWORD,LPDIENUMDEVICESCALLBACKA,LPVOID,DWORD) PURE; + STDMETHOD(GetDeviceStatus)(THIS_ REFGUID) PURE; + STDMETHOD(RunControlPanel)(THIS_ HWND,DWORD) PURE; + STDMETHOD(Initialize)(THIS_ HINSTANCE,DWORD) PURE; + STDMETHOD(FindDevice)(THIS_ REFGUID,LPCSTR,LPGUID) PURE; + STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCSTR,LPDIACTIONFORMATA,LPDIENUMDEVICESBYSEMANTICSCBA,LPVOID,DWORD) PURE; + STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK,LPDICONFIGUREDEVICESPARAMSA,DWORD,LPVOID) PURE; +}; + +typedef struct IDirectInput8A *LPDIRECTINPUT8A; + +#ifdef UNICODE +#define IID_IDirectInput8 IID_IDirectInput8W +#define IDirectInput8 IDirectInput8W +#define IDirectInput8Vtbl IDirectInput8WVtbl +#else +#define IID_IDirectInput8 IID_IDirectInput8A +#define IDirectInput8 IDirectInput8A +#define IDirectInput8Vtbl IDirectInput8AVtbl +#endif +typedef struct IDirectInput8 *LPDIRECTINPUT8; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectInput8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDirectInput8_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDirectInput8_Release(p) (p)->lpVtbl->Release(p) +#define IDirectInput8_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) +#define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d) +#define IDirectInput8_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a) +#define IDirectInput8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b) +#define IDirectInput8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirectInput8_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c) +#define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->lpVtbl->EnumDevicesBySemantics(p,a,b,c,d,e) +#define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->lpVtbl->ConfigureDevices(p,a,b,c,d) +#else +#define IDirectInput8_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IDirectInput8_AddRef(p) (p)->AddRef() +#define IDirectInput8_Release(p) (p)->Release() +#define IDirectInput8_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) +#define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d) +#define IDirectInput8_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a) +#define IDirectInput8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b) +#define IDirectInput8_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirectInput8_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c) +#define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->EnumDevicesBySemantics(a,b,c,d,e) +#define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->ConfigureDevices(a,b,c,d) +#endif +#endif /* DIRECTINPUT_VERSION >= 0x0800 */ + +#if DIRECTINPUT_VERSION > 0x0700 + +extern HRESULT WINAPI DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPVOID *ppvOut, LPUNKNOWN punkOuter); + +#else +extern HRESULT WINAPI DirectInputCreateA(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTA *ppDI, LPUNKNOWN punkOuter); +extern HRESULT WINAPI DirectInputCreateW(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTW *ppDI, LPUNKNOWN punkOuter); +#ifdef UNICODE +#define DirectInputCreate DirectInputCreateW +#else +#define DirectInputCreate DirectInputCreateA +#endif // !UNICODE + +extern HRESULT WINAPI DirectInputCreateEx(HINSTANCE hinst, DWORD dwVersion, REFIID riidltf, LPVOID *ppvOut, LPUNKNOWN punkOuter); + +#endif /* DIRECTINPUT_VERSION > 0x700 */ + +#endif /* DIJ_RINGZERO */ + + +/**************************************************************************** + * + * Return Codes + * + ****************************************************************************/ + +/* + * The operation completed successfully. + */ +#define DI_OK S_OK + +/* + * The device exists but is not currently attached. + */ +#define DI_NOTATTACHED S_FALSE + +/* + * The device buffer overflowed. Some input was lost. + */ +#define DI_BUFFEROVERFLOW S_FALSE + +/* + * The change in device properties had no effect. + */ +#define DI_PROPNOEFFECT S_FALSE + +/* + * The operation had no effect. + */ +#define DI_NOEFFECT S_FALSE + +/* + * The device is a polled device. As a result, device buffering + * will not collect any data and event notifications will not be + * signalled until GetDeviceState is called. + */ +#define DI_POLLEDDEVICE ((HRESULT)0x00000002L) + +/* + * The parameters of the effect were successfully updated by + * IDirectInputEffect::SetParameters, but the effect was not + * downloaded because the device is not exclusively acquired + * or because the DIEP_NODOWNLOAD flag was passed. + */ +#define DI_DOWNLOADSKIPPED ((HRESULT)0x00000003L) + +/* + * The parameters of the effect were successfully updated by + * IDirectInputEffect::SetParameters, but in order to change + * the parameters, the effect needed to be restarted. + */ +#define DI_EFFECTRESTARTED ((HRESULT)0x00000004L) + +/* + * The parameters of the effect were successfully updated by + * IDirectInputEffect::SetParameters, but some of them were + * beyond the capabilities of the device and were truncated. + */ +#define DI_TRUNCATED ((HRESULT)0x00000008L) + +/* + * The settings have been successfully applied but could not be + * persisted. + */ +#define DI_SETTINGSNOTSAVED ((HRESULT)0x0000000BL) + +/* + * Equal to DI_EFFECTRESTARTED | DI_TRUNCATED. + */ +#define DI_TRUNCATEDANDRESTARTED ((HRESULT)0x0000000CL) + +/* + * A SUCCESS code indicating that settings cannot be modified. + */ +#define DI_WRITEPROTECT ((HRESULT)0x00000013L) + +/* + * The application requires a newer version of DirectInput. + */ +#define DIERR_OLDDIRECTINPUTVERSION \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_OLD_WIN_VERSION) + +/* + * The application was written for an unsupported prerelease version + * of DirectInput. + */ +#define DIERR_BETADIRECTINPUTVERSION \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_RMODE_APP) + +/* + * The object could not be created due to an incompatible driver version + * or mismatched or incomplete driver components. + */ +#define DIERR_BADDRIVERVER \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BAD_DRIVER_LEVEL) + +/* + * The device or device instance or effect is not registered with DirectInput. + */ +#define DIERR_DEVICENOTREG REGDB_E_CLASSNOTREG + +/* + * The requested object does not exist. + */ +#define DIERR_NOTFOUND \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND) + +/* + * The requested object does not exist. + */ +#define DIERR_OBJECTNOTFOUND \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND) + +/* + * An invalid parameter was passed to the returning function, + * or the object was not in a state that admitted the function + * to be called. + */ +#define DIERR_INVALIDPARAM E_INVALIDARG + +/* + * The specified interface is not supported by the object + */ +#define DIERR_NOINTERFACE E_NOINTERFACE + +/* + * An undetermined error occured inside the DInput subsystem + */ +#define DIERR_GENERIC E_FAIL + +/* + * The DInput subsystem couldn't allocate sufficient memory to complete the + * caller's request. + */ +#define DIERR_OUTOFMEMORY E_OUTOFMEMORY + +/* + * The function called is not supported at this time + */ +#define DIERR_UNSUPPORTED E_NOTIMPL + +/* + * This object has not been initialized + */ +#define DIERR_NOTINITIALIZED \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_NOT_READY) + +/* + * This object is already initialized + */ +#define DIERR_ALREADYINITIALIZED \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_ALREADY_INITIALIZED) + +/* + * This object does not support aggregation + */ +#define DIERR_NOAGGREGATION CLASS_E_NOAGGREGATION + +/* + * Another app has a higher priority level, preventing this call from + * succeeding. + */ +#define DIERR_OTHERAPPHASPRIO E_ACCESSDENIED + +/* + * Access to the device has been lost. It must be re-acquired. + */ +#define DIERR_INPUTLOST \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_READ_FAULT) + +/* + * The operation cannot be performed while the device is acquired. + */ +#define DIERR_ACQUIRED \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BUSY) + +/* + * The operation cannot be performed unless the device is acquired. + */ +#define DIERR_NOTACQUIRED \ + MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_INVALID_ACCESS) + +/* + * The specified property cannot be changed. + */ +#define DIERR_READONLY E_ACCESSDENIED + +/* + * The device already has an event notification associated with it. + */ +#define DIERR_HANDLEEXISTS E_ACCESSDENIED + +/* + * Data is not yet available. + */ +#ifndef E_PENDING +#define E_PENDING 0x8000000AL +#endif + +/* + * Unable to IDirectInputJoyConfig_Acquire because the user + * does not have sufficient privileges to change the joystick + * configuration. + */ +#define DIERR_INSUFFICIENTPRIVS 0x80040200L + +/* + * The device is full. + */ +#define DIERR_DEVICEFULL 0x80040201L + +/* + * Not all the requested information fit into the buffer. + */ +#define DIERR_MOREDATA 0x80040202L + +/* + * The effect is not downloaded. + */ +#define DIERR_NOTDOWNLOADED 0x80040203L + +/* + * The device cannot be reinitialized because there are still effects + * attached to it. + */ +#define DIERR_HASEFFECTS 0x80040204L + +/* + * The operation cannot be performed unless the device is acquired + * in DISCL_EXCLUSIVE mode. + */ +#define DIERR_NOTEXCLUSIVEACQUIRED 0x80040205L + +/* + * The effect could not be downloaded because essential information + * is missing. For example, no axes have been associated with the + * effect, or no type-specific information has been created. + */ +#define DIERR_INCOMPLETEEFFECT 0x80040206L + +/* + * Attempted to read buffered device data from a device that is + * not buffered. + */ +#define DIERR_NOTBUFFERED 0x80040207L + +/* + * An attempt was made to modify parameters of an effect while it is + * playing. Not all hardware devices support altering the parameters + * of an effect while it is playing. + */ +#define DIERR_EFFECTPLAYING 0x80040208L + +/* + * The operation could not be completed because the device is not + * plugged in. + */ +#define DIERR_UNPLUGGED 0x80040209L + +/* + * SendDeviceData failed because more information was requested + * to be sent than can be sent to the device. Some devices have + * restrictions on how much data can be sent to them. (For example, + * there might be a limit on the number of buttons that can be + * pressed at once.) + */ +#define DIERR_REPORTFULL 0x8004020AL + + +/* + * A mapper file function failed because reading or writing the user or IHV + * settings file failed. + */ +#define DIERR_MAPFILEFAIL 0x8004020BL + + +// +// Copyright (C) Microsoft. All rights reserved. +// + + +// +// Copyright (C) Microsoft. All rights reserved. +// +/*--- DINPUT Mapper Definitions: New for Dx8 ---*/ + + +/*--- Keyboard + Physical Keyboard Device ---*/ + +// +// Copyright (C) Microsoft. All rights reserved. +// +#define DIKEYBOARD_ESCAPE 0x81000401 +#define DIKEYBOARD_1 0x81000402 +#define DIKEYBOARD_2 0x81000403 +#define DIKEYBOARD_3 0x81000404 +#define DIKEYBOARD_4 0x81000405 +#define DIKEYBOARD_5 0x81000406 +#define DIKEYBOARD_6 0x81000407 +#define DIKEYBOARD_7 0x81000408 +#define DIKEYBOARD_8 0x81000409 +#define DIKEYBOARD_9 0x8100040A +#define DIKEYBOARD_0 0x8100040B +#define DIKEYBOARD_MINUS 0x8100040C /* - on main keyboard */ +#define DIKEYBOARD_EQUALS 0x8100040D +#define DIKEYBOARD_BACK 0x8100040E /* backspace */ +#define DIKEYBOARD_TAB 0x8100040F +#define DIKEYBOARD_Q 0x81000410 +#define DIKEYBOARD_W 0x81000411 +#define DIKEYBOARD_E 0x81000412 +#define DIKEYBOARD_R 0x81000413 +#define DIKEYBOARD_T 0x81000414 +#define DIKEYBOARD_Y 0x81000415 +#define DIKEYBOARD_U 0x81000416 +#define DIKEYBOARD_I 0x81000417 +#define DIKEYBOARD_O 0x81000418 +#define DIKEYBOARD_P 0x81000419 +#define DIKEYBOARD_LBRACKET 0x8100041A +#define DIKEYBOARD_RBRACKET 0x8100041B +#define DIKEYBOARD_RETURN 0x8100041C /* Enter on main keyboard */ +#define DIKEYBOARD_LCONTROL 0x8100041D +#define DIKEYBOARD_A 0x8100041E +#define DIKEYBOARD_S 0x8100041F +#define DIKEYBOARD_D 0x81000420 +#define DIKEYBOARD_F 0x81000421 +#define DIKEYBOARD_G 0x81000422 +#define DIKEYBOARD_H 0x81000423 +#define DIKEYBOARD_J 0x81000424 +#define DIKEYBOARD_K 0x81000425 +#define DIKEYBOARD_L 0x81000426 +#define DIKEYBOARD_SEMICOLON 0x81000427 +#define DIKEYBOARD_APOSTROPHE 0x81000428 +#define DIKEYBOARD_GRAVE 0x81000429 /* accent grave */ +#define DIKEYBOARD_LSHIFT 0x8100042A +#define DIKEYBOARD_BACKSLASH 0x8100042B +#define DIKEYBOARD_Z 0x8100042C +#define DIKEYBOARD_X 0x8100042D +#define DIKEYBOARD_C 0x8100042E +#define DIKEYBOARD_V 0x8100042F +#define DIKEYBOARD_B 0x81000430 +#define DIKEYBOARD_N 0x81000431 +#define DIKEYBOARD_M 0x81000432 +#define DIKEYBOARD_COMMA 0x81000433 +#define DIKEYBOARD_PERIOD 0x81000434 /* . on main keyboard */ +#define DIKEYBOARD_SLASH 0x81000435 /* / on main keyboard */ +#define DIKEYBOARD_RSHIFT 0x81000436 +#define DIKEYBOARD_MULTIPLY 0x81000437 /* * on numeric keypad */ +#define DIKEYBOARD_LMENU 0x81000438 /* left Alt */ +#define DIKEYBOARD_SPACE 0x81000439 +#define DIKEYBOARD_CAPITAL 0x8100043A +#define DIKEYBOARD_F1 0x8100043B +#define DIKEYBOARD_F2 0x8100043C +#define DIKEYBOARD_F3 0x8100043D +#define DIKEYBOARD_F4 0x8100043E +#define DIKEYBOARD_F5 0x8100043F +#define DIKEYBOARD_F6 0x81000440 +#define DIKEYBOARD_F7 0x81000441 +#define DIKEYBOARD_F8 0x81000442 +#define DIKEYBOARD_F9 0x81000443 +#define DIKEYBOARD_F10 0x81000444 +#define DIKEYBOARD_NUMLOCK 0x81000445 +#define DIKEYBOARD_SCROLL 0x81000446 /* Scroll Lock */ +#define DIKEYBOARD_NUMPAD7 0x81000447 +#define DIKEYBOARD_NUMPAD8 0x81000448 +#define DIKEYBOARD_NUMPAD9 0x81000449 +#define DIKEYBOARD_SUBTRACT 0x8100044A /* - on numeric keypad */ +#define DIKEYBOARD_NUMPAD4 0x8100044B +#define DIKEYBOARD_NUMPAD5 0x8100044C +#define DIKEYBOARD_NUMPAD6 0x8100044D +#define DIKEYBOARD_ADD 0x8100044E /* + on numeric keypad */ +#define DIKEYBOARD_NUMPAD1 0x8100044F +#define DIKEYBOARD_NUMPAD2 0x81000450 +#define DIKEYBOARD_NUMPAD3 0x81000451 +#define DIKEYBOARD_NUMPAD0 0x81000452 +#define DIKEYBOARD_DECIMAL 0x81000453 /* . on numeric keypad */ +#define DIKEYBOARD_OEM_102 0x81000456 /* <> or \| on RT 102-key keyboard (Non-U.S.) */ +#define DIKEYBOARD_F11 0x81000457 +#define DIKEYBOARD_F12 0x81000458 +#define DIKEYBOARD_F13 0x81000464 /* (NEC PC98) */ +#define DIKEYBOARD_F14 0x81000465 /* (NEC PC98) */ +#define DIKEYBOARD_F15 0x81000466 /* (NEC PC98) */ +#define DIKEYBOARD_KANA 0x81000470 /* (Japanese keyboard) */ +#define DIKEYBOARD_ABNT_C1 0x81000473 /* /? on Brazilian keyboard */ +#define DIKEYBOARD_CONVERT 0x81000479 /* (Japanese keyboard) */ +#define DIKEYBOARD_NOCONVERT 0x8100047B /* (Japanese keyboard) */ +#define DIKEYBOARD_YEN 0x8100047D /* (Japanese keyboard) */ +#define DIKEYBOARD_ABNT_C2 0x8100047E /* Numpad . on Brazilian keyboard */ +#define DIKEYBOARD_NUMPADEQUALS 0x8100048D /* = on numeric keypad (NEC PC98) */ +#define DIKEYBOARD_PREVTRACK 0x81000490 /* Previous Track (DIK_CIRCUMFLEX on Japanese keyboard) */ +#define DIKEYBOARD_AT 0x81000491 /* (NEC PC98) */ +#define DIKEYBOARD_COLON 0x81000492 /* (NEC PC98) */ +#define DIKEYBOARD_UNDERLINE 0x81000493 /* (NEC PC98) */ +#define DIKEYBOARD_KANJI 0x81000494 /* (Japanese keyboard) */ +#define DIKEYBOARD_STOP 0x81000495 /* (NEC PC98) */ +#define DIKEYBOARD_AX 0x81000496 /* (Japan AX) */ +#define DIKEYBOARD_UNLABELED 0x81000497 /* (J3100) */ +#define DIKEYBOARD_NEXTTRACK 0x81000499 /* Next Track */ +#define DIKEYBOARD_NUMPADENTER 0x8100049C /* Enter on numeric keypad */ +#define DIKEYBOARD_RCONTROL 0x8100049D +#define DIKEYBOARD_MUTE 0x810004A0 /* Mute */ +#define DIKEYBOARD_CALCULATOR 0x810004A1 /* Calculator */ +#define DIKEYBOARD_PLAYPAUSE 0x810004A2 /* Play / Pause */ +#define DIKEYBOARD_MEDIASTOP 0x810004A4 /* Media Stop */ +#define DIKEYBOARD_VOLUMEDOWN 0x810004AE /* Volume - */ +#define DIKEYBOARD_VOLUMEUP 0x810004B0 /* Volume + */ +#define DIKEYBOARD_WEBHOME 0x810004B2 /* Web home */ +#define DIKEYBOARD_NUMPADCOMMA 0x810004B3 /* , on numeric keypad (NEC PC98) */ +#define DIKEYBOARD_DIVIDE 0x810004B5 /* / on numeric keypad */ +#define DIKEYBOARD_SYSRQ 0x810004B7 +#define DIKEYBOARD_RMENU 0x810004B8 /* right Alt */ +#define DIKEYBOARD_PAUSE 0x810004C5 /* Pause */ +#define DIKEYBOARD_HOME 0x810004C7 /* Home on arrow keypad */ +#define DIKEYBOARD_UP 0x810004C8 /* UpArrow on arrow keypad */ +#define DIKEYBOARD_PRIOR 0x810004C9 /* PgUp on arrow keypad */ +#define DIKEYBOARD_LEFT 0x810004CB /* LeftArrow on arrow keypad */ +#define DIKEYBOARD_RIGHT 0x810004CD /* RightArrow on arrow keypad */ +#define DIKEYBOARD_END 0x810004CF /* End on arrow keypad */ +#define DIKEYBOARD_DOWN 0x810004D0 /* DownArrow on arrow keypad */ +#define DIKEYBOARD_NEXT 0x810004D1 /* PgDn on arrow keypad */ +#define DIKEYBOARD_INSERT 0x810004D2 /* Insert on arrow keypad */ +#define DIKEYBOARD_DELETE 0x810004D3 /* Delete on arrow keypad */ +#define DIKEYBOARD_LWIN 0x810004DB /* Left Windows key */ +#define DIKEYBOARD_RWIN 0x810004DC /* Right Windows key */ +#define DIKEYBOARD_APPS 0x810004DD /* AppMenu key */ +#define DIKEYBOARD_POWER 0x810004DE /* System Power */ +#define DIKEYBOARD_SLEEP 0x810004DF /* System Sleep */ +#define DIKEYBOARD_WAKE 0x810004E3 /* System Wake */ +#define DIKEYBOARD_WEBSEARCH 0x810004E5 /* Web Search */ +#define DIKEYBOARD_WEBFAVORITES 0x810004E6 /* Web Favorites */ +#define DIKEYBOARD_WEBREFRESH 0x810004E7 /* Web Refresh */ +#define DIKEYBOARD_WEBSTOP 0x810004E8 /* Web Stop */ +#define DIKEYBOARD_WEBFORWARD 0x810004E9 /* Web Forward */ +#define DIKEYBOARD_WEBBACK 0x810004EA /* Web Back */ +#define DIKEYBOARD_MYCOMPUTER 0x810004EB /* My Computer */ +#define DIKEYBOARD_MAIL 0x810004EC /* Mail */ +#define DIKEYBOARD_MEDIASELECT 0x810004ED /* Media Select */ + + +/*--- MOUSE + Physical Mouse Device ---*/ + +#define DIMOUSE_XAXISAB (0x82000200 |DIMOFS_X ) /* X Axis-absolute: Some mice natively report absolute coordinates */ +#define DIMOUSE_YAXISAB (0x82000200 |DIMOFS_Y ) /* Y Axis-absolute: Some mice natively report absolute coordinates */ +#define DIMOUSE_XAXIS (0x82000300 |DIMOFS_X ) /* X Axis */ +#define DIMOUSE_YAXIS (0x82000300 |DIMOFS_Y ) /* Y Axis */ +#define DIMOUSE_WHEEL (0x82000300 |DIMOFS_Z ) /* Z Axis */ +#define DIMOUSE_BUTTON0 (0x82000400 |DIMOFS_BUTTON0) /* Button 0 */ +#define DIMOUSE_BUTTON1 (0x82000400 |DIMOFS_BUTTON1) /* Button 1 */ +#define DIMOUSE_BUTTON2 (0x82000400 |DIMOFS_BUTTON2) /* Button 2 */ +#define DIMOUSE_BUTTON3 (0x82000400 |DIMOFS_BUTTON3) /* Button 3 */ +#define DIMOUSE_BUTTON4 (0x82000400 |DIMOFS_BUTTON4) /* Button 4 */ +#define DIMOUSE_BUTTON5 (0x82000400 |DIMOFS_BUTTON5) /* Button 5 */ +#define DIMOUSE_BUTTON6 (0x82000400 |DIMOFS_BUTTON6) /* Button 6 */ +#define DIMOUSE_BUTTON7 (0x82000400 |DIMOFS_BUTTON7) /* Button 7 */ + + +/*--- VOICE + Physical Dplay Voice Device ---*/ + +#define DIVOICE_CHANNEL1 0x83000401 +#define DIVOICE_CHANNEL2 0x83000402 +#define DIVOICE_CHANNEL3 0x83000403 +#define DIVOICE_CHANNEL4 0x83000404 +#define DIVOICE_CHANNEL5 0x83000405 +#define DIVOICE_CHANNEL6 0x83000406 +#define DIVOICE_CHANNEL7 0x83000407 +#define DIVOICE_CHANNEL8 0x83000408 +#define DIVOICE_TEAM 0x83000409 +#define DIVOICE_ALL 0x8300040A +#define DIVOICE_RECORDMUTE 0x8300040B +#define DIVOICE_PLAYBACKMUTE 0x8300040C +#define DIVOICE_TRANSMIT 0x8300040D + +#define DIVOICE_VOICECOMMAND 0x83000410 + + +/*--- Driving Simulator - Racing + Vehicle control is primary objective ---*/ +#define DIVIRTUAL_DRIVING_RACE 0x01000000 +#define DIAXIS_DRIVINGR_STEER 0x01008A01 /* Steering */ +#define DIAXIS_DRIVINGR_ACCELERATE 0x01039202 /* Accelerate */ +#define DIAXIS_DRIVINGR_BRAKE 0x01041203 /* Brake-Axis */ +#define DIBUTTON_DRIVINGR_SHIFTUP 0x01000C01 /* Shift to next higher gear */ +#define DIBUTTON_DRIVINGR_SHIFTDOWN 0x01000C02 /* Shift to next lower gear */ +#define DIBUTTON_DRIVINGR_VIEW 0x01001C03 /* Cycle through view options */ +#define DIBUTTON_DRIVINGR_MENU 0x010004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIAXIS_DRIVINGR_ACCEL_AND_BRAKE 0x01014A04 /* Some devices combine accelerate and brake in a single axis */ +#define DIHATSWITCH_DRIVINGR_GLANCE 0x01004601 /* Look around */ +#define DIBUTTON_DRIVINGR_BRAKE 0x01004C04 /* Brake-button */ +#define DIBUTTON_DRIVINGR_DASHBOARD 0x01004405 /* Select next dashboard option */ +#define DIBUTTON_DRIVINGR_AIDS 0x01004406 /* Driver correction aids */ +#define DIBUTTON_DRIVINGR_MAP 0x01004407 /* Display Driving Map */ +#define DIBUTTON_DRIVINGR_BOOST 0x01004408 /* Turbo Boost */ +#define DIBUTTON_DRIVINGR_PIT 0x01004409 /* Pit stop notification */ +#define DIBUTTON_DRIVINGR_ACCELERATE_LINK 0x0103D4E0 /* Fallback Accelerate button */ +#define DIBUTTON_DRIVINGR_STEER_LEFT_LINK 0x0100CCE4 /* Fallback Steer Left button */ +#define DIBUTTON_DRIVINGR_STEER_RIGHT_LINK 0x0100CCEC /* Fallback Steer Right button */ +#define DIBUTTON_DRIVINGR_GLANCE_LEFT_LINK 0x0107C4E4 /* Fallback Glance Left button */ +#define DIBUTTON_DRIVINGR_GLANCE_RIGHT_LINK 0x0107C4EC /* Fallback Glance Right button */ +#define DIBUTTON_DRIVINGR_DEVICE 0x010044FE /* Show input device and controls */ +#define DIBUTTON_DRIVINGR_PAUSE 0x010044FC /* Start / Pause / Restart game */ + +/*--- Driving Simulator - Combat + Combat from within a vehicle is primary objective ---*/ +#define DIVIRTUAL_DRIVING_COMBAT 0x02000000 +#define DIAXIS_DRIVINGC_STEER 0x02008A01 /* Steering */ +#define DIAXIS_DRIVINGC_ACCELERATE 0x02039202 /* Accelerate */ +#define DIAXIS_DRIVINGC_BRAKE 0x02041203 /* Brake-axis */ +#define DIBUTTON_DRIVINGC_FIRE 0x02000C01 /* Fire */ +#define DIBUTTON_DRIVINGC_WEAPONS 0x02000C02 /* Select next weapon */ +#define DIBUTTON_DRIVINGC_TARGET 0x02000C03 /* Select next available target */ +#define DIBUTTON_DRIVINGC_MENU 0x020004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIAXIS_DRIVINGC_ACCEL_AND_BRAKE 0x02014A04 /* Some devices combine accelerate and brake in a single axis */ +#define DIHATSWITCH_DRIVINGC_GLANCE 0x02004601 /* Look around */ +#define DIBUTTON_DRIVINGC_SHIFTUP 0x02004C04 /* Shift to next higher gear */ +#define DIBUTTON_DRIVINGC_SHIFTDOWN 0x02004C05 /* Shift to next lower gear */ +#define DIBUTTON_DRIVINGC_DASHBOARD 0x02004406 /* Select next dashboard option */ +#define DIBUTTON_DRIVINGC_AIDS 0x02004407 /* Driver correction aids */ +#define DIBUTTON_DRIVINGC_BRAKE 0x02004C08 /* Brake-button */ +#define DIBUTTON_DRIVINGC_FIRESECONDARY 0x02004C09 /* Alternative fire button */ +#define DIBUTTON_DRIVINGC_ACCELERATE_LINK 0x0203D4E0 /* Fallback Accelerate button */ +#define DIBUTTON_DRIVINGC_STEER_LEFT_LINK 0x0200CCE4 /* Fallback Steer Left button */ +#define DIBUTTON_DRIVINGC_STEER_RIGHT_LINK 0x0200CCEC /* Fallback Steer Right button */ +#define DIBUTTON_DRIVINGC_GLANCE_LEFT_LINK 0x0207C4E4 /* Fallback Glance Left button */ +#define DIBUTTON_DRIVINGC_GLANCE_RIGHT_LINK 0x0207C4EC /* Fallback Glance Right button */ +#define DIBUTTON_DRIVINGC_DEVICE 0x020044FE /* Show input device and controls */ +#define DIBUTTON_DRIVINGC_PAUSE 0x020044FC /* Start / Pause / Restart game */ + +/*--- Driving Simulator - Tank + Combat from withing a tank is primary objective ---*/ +#define DIVIRTUAL_DRIVING_TANK 0x03000000 +#define DIAXIS_DRIVINGT_STEER 0x03008A01 /* Turn tank left / right */ +#define DIAXIS_DRIVINGT_BARREL 0x03010202 /* Raise / lower barrel */ +#define DIAXIS_DRIVINGT_ACCELERATE 0x03039203 /* Accelerate */ +#define DIAXIS_DRIVINGT_ROTATE 0x03020204 /* Turn barrel left / right */ +#define DIBUTTON_DRIVINGT_FIRE 0x03000C01 /* Fire */ +#define DIBUTTON_DRIVINGT_WEAPONS 0x03000C02 /* Select next weapon */ +#define DIBUTTON_DRIVINGT_TARGET 0x03000C03 /* Selects next available target */ +#define DIBUTTON_DRIVINGT_MENU 0x030004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_DRIVINGT_GLANCE 0x03004601 /* Look around */ +#define DIAXIS_DRIVINGT_BRAKE 0x03045205 /* Brake-axis */ +#define DIAXIS_DRIVINGT_ACCEL_AND_BRAKE 0x03014A06 /* Some devices combine accelerate and brake in a single axis */ +#define DIBUTTON_DRIVINGT_VIEW 0x03005C04 /* Cycle through view options */ +#define DIBUTTON_DRIVINGT_DASHBOARD 0x03005C05 /* Select next dashboard option */ +#define DIBUTTON_DRIVINGT_BRAKE 0x03004C06 /* Brake-button */ +#define DIBUTTON_DRIVINGT_FIRESECONDARY 0x03004C07 /* Alternative fire button */ +#define DIBUTTON_DRIVINGT_ACCELERATE_LINK 0x0303D4E0 /* Fallback Accelerate button */ +#define DIBUTTON_DRIVINGT_STEER_LEFT_LINK 0x0300CCE4 /* Fallback Steer Left button */ +#define DIBUTTON_DRIVINGT_STEER_RIGHT_LINK 0x0300CCEC /* Fallback Steer Right button */ +#define DIBUTTON_DRIVINGT_BARREL_UP_LINK 0x030144E0 /* Fallback Barrel up button */ +#define DIBUTTON_DRIVINGT_BARREL_DOWN_LINK 0x030144E8 /* Fallback Barrel down button */ +#define DIBUTTON_DRIVINGT_ROTATE_LEFT_LINK 0x030244E4 /* Fallback Rotate left button */ +#define DIBUTTON_DRIVINGT_ROTATE_RIGHT_LINK 0x030244EC /* Fallback Rotate right button */ +#define DIBUTTON_DRIVINGT_GLANCE_LEFT_LINK 0x0307C4E4 /* Fallback Glance Left button */ +#define DIBUTTON_DRIVINGT_GLANCE_RIGHT_LINK 0x0307C4EC /* Fallback Glance Right button */ +#define DIBUTTON_DRIVINGT_DEVICE 0x030044FE /* Show input device and controls */ +#define DIBUTTON_DRIVINGT_PAUSE 0x030044FC /* Start / Pause / Restart game */ + +/*--- Flight Simulator - Civilian + Plane control is the primary objective ---*/ +#define DIVIRTUAL_FLYING_CIVILIAN 0x04000000 +#define DIAXIS_FLYINGC_BANK 0x04008A01 /* Roll ship left / right */ +#define DIAXIS_FLYINGC_PITCH 0x04010A02 /* Nose up / down */ +#define DIAXIS_FLYINGC_THROTTLE 0x04039203 /* Throttle */ +#define DIBUTTON_FLYINGC_VIEW 0x04002401 /* Cycle through view options */ +#define DIBUTTON_FLYINGC_DISPLAY 0x04002402 /* Select next dashboard / heads up display option */ +#define DIBUTTON_FLYINGC_GEAR 0x04002C03 /* Gear up / down */ +#define DIBUTTON_FLYINGC_MENU 0x040004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_FLYINGC_GLANCE 0x04004601 /* Look around */ +#define DIAXIS_FLYINGC_BRAKE 0x04046A04 /* Apply Brake */ +#define DIAXIS_FLYINGC_RUDDER 0x04025205 /* Yaw ship left/right */ +#define DIAXIS_FLYINGC_FLAPS 0x04055A06 /* Flaps */ +#define DIBUTTON_FLYINGC_FLAPSUP 0x04006404 /* Increment stepping up until fully retracted */ +#define DIBUTTON_FLYINGC_FLAPSDOWN 0x04006405 /* Decrement stepping down until fully extended */ +#define DIBUTTON_FLYINGC_BRAKE_LINK 0x04046CE0 /* Fallback brake button */ +#define DIBUTTON_FLYINGC_FASTER_LINK 0x0403D4E0 /* Fallback throttle up button */ +#define DIBUTTON_FLYINGC_SLOWER_LINK 0x0403D4E8 /* Fallback throttle down button */ +#define DIBUTTON_FLYINGC_GLANCE_LEFT_LINK 0x0407C4E4 /* Fallback Glance Left button */ +#define DIBUTTON_FLYINGC_GLANCE_RIGHT_LINK 0x0407C4EC /* Fallback Glance Right button */ +#define DIBUTTON_FLYINGC_GLANCE_UP_LINK 0x0407C4E0 /* Fallback Glance Up button */ +#define DIBUTTON_FLYINGC_GLANCE_DOWN_LINK 0x0407C4E8 /* Fallback Glance Down button */ +#define DIBUTTON_FLYINGC_DEVICE 0x040044FE /* Show input device and controls */ +#define DIBUTTON_FLYINGC_PAUSE 0x040044FC /* Start / Pause / Restart game */ + +/*--- Flight Simulator - Military + Aerial combat is the primary objective ---*/ +#define DIVIRTUAL_FLYING_MILITARY 0x05000000 +#define DIAXIS_FLYINGM_BANK 0x05008A01 /* Bank - Roll ship left / right */ +#define DIAXIS_FLYINGM_PITCH 0x05010A02 /* Pitch - Nose up / down */ +#define DIAXIS_FLYINGM_THROTTLE 0x05039203 /* Throttle - faster / slower */ +#define DIBUTTON_FLYINGM_FIRE 0x05000C01 /* Fire */ +#define DIBUTTON_FLYINGM_WEAPONS 0x05000C02 /* Select next weapon */ +#define DIBUTTON_FLYINGM_TARGET 0x05000C03 /* Selects next available target */ +#define DIBUTTON_FLYINGM_MENU 0x050004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_FLYINGM_GLANCE 0x05004601 /* Look around */ +#define DIBUTTON_FLYINGM_COUNTER 0x05005C04 /* Activate counter measures */ +#define DIAXIS_FLYINGM_RUDDER 0x05024A04 /* Rudder - Yaw ship left/right */ +#define DIAXIS_FLYINGM_BRAKE 0x05046205 /* Brake-axis */ +#define DIBUTTON_FLYINGM_VIEW 0x05006405 /* Cycle through view options */ +#define DIBUTTON_FLYINGM_DISPLAY 0x05006406 /* Select next dashboard option */ +#define DIAXIS_FLYINGM_FLAPS 0x05055206 /* Flaps */ +#define DIBUTTON_FLYINGM_FLAPSUP 0x05005407 /* Increment stepping up until fully retracted */ +#define DIBUTTON_FLYINGM_FLAPSDOWN 0x05005408 /* Decrement stepping down until fully extended */ +#define DIBUTTON_FLYINGM_FIRESECONDARY 0x05004C09 /* Alternative fire button */ +#define DIBUTTON_FLYINGM_GEAR 0x0500640A /* Gear up / down */ +#define DIBUTTON_FLYINGM_BRAKE_LINK 0x050464E0 /* Fallback brake button */ +#define DIBUTTON_FLYINGM_FASTER_LINK 0x0503D4E0 /* Fallback throttle up button */ +#define DIBUTTON_FLYINGM_SLOWER_LINK 0x0503D4E8 /* Fallback throttle down button */ +#define DIBUTTON_FLYINGM_GLANCE_LEFT_LINK 0x0507C4E4 /* Fallback Glance Left button */ +#define DIBUTTON_FLYINGM_GLANCE_RIGHT_LINK 0x0507C4EC /* Fallback Glance Right button */ +#define DIBUTTON_FLYINGM_GLANCE_UP_LINK 0x0507C4E0 /* Fallback Glance Up button */ +#define DIBUTTON_FLYINGM_GLANCE_DOWN_LINK 0x0507C4E8 /* Fallback Glance Down button */ +#define DIBUTTON_FLYINGM_DEVICE 0x050044FE /* Show input device and controls */ +#define DIBUTTON_FLYINGM_PAUSE 0x050044FC /* Start / Pause / Restart game */ + +/*--- Flight Simulator - Combat Helicopter + Combat from helicopter is primary objective ---*/ +#define DIVIRTUAL_FLYING_HELICOPTER 0x06000000 +#define DIAXIS_FLYINGH_BANK 0x06008A01 /* Bank - Roll ship left / right */ +#define DIAXIS_FLYINGH_PITCH 0x06010A02 /* Pitch - Nose up / down */ +#define DIAXIS_FLYINGH_COLLECTIVE 0x06018A03 /* Collective - Blade pitch/power */ +#define DIBUTTON_FLYINGH_FIRE 0x06001401 /* Fire */ +#define DIBUTTON_FLYINGH_WEAPONS 0x06001402 /* Select next weapon */ +#define DIBUTTON_FLYINGH_TARGET 0x06001403 /* Selects next available target */ +#define DIBUTTON_FLYINGH_MENU 0x060004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_FLYINGH_GLANCE 0x06004601 /* Look around */ +#define DIAXIS_FLYINGH_TORQUE 0x06025A04 /* Torque - Rotate ship around left / right axis */ +#define DIAXIS_FLYINGH_THROTTLE 0x0603DA05 /* Throttle */ +#define DIBUTTON_FLYINGH_COUNTER 0x06005404 /* Activate counter measures */ +#define DIBUTTON_FLYINGH_VIEW 0x06006405 /* Cycle through view options */ +#define DIBUTTON_FLYINGH_GEAR 0x06006406 /* Gear up / down */ +#define DIBUTTON_FLYINGH_FIRESECONDARY 0x06004C07 /* Alternative fire button */ +#define DIBUTTON_FLYINGH_FASTER_LINK 0x0603DCE0 /* Fallback throttle up button */ +#define DIBUTTON_FLYINGH_SLOWER_LINK 0x0603DCE8 /* Fallback throttle down button */ +#define DIBUTTON_FLYINGH_GLANCE_LEFT_LINK 0x0607C4E4 /* Fallback Glance Left button */ +#define DIBUTTON_FLYINGH_GLANCE_RIGHT_LINK 0x0607C4EC /* Fallback Glance Right button */ +#define DIBUTTON_FLYINGH_GLANCE_UP_LINK 0x0607C4E0 /* Fallback Glance Up button */ +#define DIBUTTON_FLYINGH_GLANCE_DOWN_LINK 0x0607C4E8 /* Fallback Glance Down button */ +#define DIBUTTON_FLYINGH_DEVICE 0x060044FE /* Show input device and controls */ +#define DIBUTTON_FLYINGH_PAUSE 0x060044FC /* Start / Pause / Restart game */ + +/*--- Space Simulator - Combat + Space Simulator with weapons ---*/ +#define DIVIRTUAL_SPACESIM 0x07000000 +#define DIAXIS_SPACESIM_LATERAL 0x07008201 /* Move ship left / right */ +#define DIAXIS_SPACESIM_MOVE 0x07010202 /* Move ship forward/backward */ +#define DIAXIS_SPACESIM_THROTTLE 0x07038203 /* Throttle - Engine speed */ +#define DIBUTTON_SPACESIM_FIRE 0x07000401 /* Fire */ +#define DIBUTTON_SPACESIM_WEAPONS 0x07000402 /* Select next weapon */ +#define DIBUTTON_SPACESIM_TARGET 0x07000403 /* Selects next available target */ +#define DIBUTTON_SPACESIM_MENU 0x070004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_SPACESIM_GLANCE 0x07004601 /* Look around */ +#define DIAXIS_SPACESIM_CLIMB 0x0701C204 /* Climb - Pitch ship up/down */ +#define DIAXIS_SPACESIM_ROTATE 0x07024205 /* Rotate - Turn ship left/right */ +#define DIBUTTON_SPACESIM_VIEW 0x07004404 /* Cycle through view options */ +#define DIBUTTON_SPACESIM_DISPLAY 0x07004405 /* Select next dashboard / heads up display option */ +#define DIBUTTON_SPACESIM_RAISE 0x07004406 /* Raise ship while maintaining current pitch */ +#define DIBUTTON_SPACESIM_LOWER 0x07004407 /* Lower ship while maintaining current pitch */ +#define DIBUTTON_SPACESIM_GEAR 0x07004408 /* Gear up / down */ +#define DIBUTTON_SPACESIM_FIRESECONDARY 0x07004409 /* Alternative fire button */ +#define DIBUTTON_SPACESIM_LEFT_LINK 0x0700C4E4 /* Fallback move left button */ +#define DIBUTTON_SPACESIM_RIGHT_LINK 0x0700C4EC /* Fallback move right button */ +#define DIBUTTON_SPACESIM_FORWARD_LINK 0x070144E0 /* Fallback move forward button */ +#define DIBUTTON_SPACESIM_BACKWARD_LINK 0x070144E8 /* Fallback move backwards button */ +#define DIBUTTON_SPACESIM_FASTER_LINK 0x0703C4E0 /* Fallback throttle up button */ +#define DIBUTTON_SPACESIM_SLOWER_LINK 0x0703C4E8 /* Fallback throttle down button */ +#define DIBUTTON_SPACESIM_TURN_LEFT_LINK 0x070244E4 /* Fallback turn left button */ +#define DIBUTTON_SPACESIM_TURN_RIGHT_LINK 0x070244EC /* Fallback turn right button */ +#define DIBUTTON_SPACESIM_GLANCE_LEFT_LINK 0x0707C4E4 /* Fallback Glance Left button */ +#define DIBUTTON_SPACESIM_GLANCE_RIGHT_LINK 0x0707C4EC /* Fallback Glance Right button */ +#define DIBUTTON_SPACESIM_GLANCE_UP_LINK 0x0707C4E0 /* Fallback Glance Up button */ +#define DIBUTTON_SPACESIM_GLANCE_DOWN_LINK 0x0707C4E8 /* Fallback Glance Down button */ +#define DIBUTTON_SPACESIM_DEVICE 0x070044FE /* Show input device and controls */ +#define DIBUTTON_SPACESIM_PAUSE 0x070044FC /* Start / Pause / Restart game */ + +/*--- Fighting - First Person + Hand to Hand combat is primary objective ---*/ +#define DIVIRTUAL_FIGHTING_HAND2HAND 0x08000000 +#define DIAXIS_FIGHTINGH_LATERAL 0x08008201 /* Sidestep left/right */ +#define DIAXIS_FIGHTINGH_MOVE 0x08010202 /* Move forward/backward */ +#define DIBUTTON_FIGHTINGH_PUNCH 0x08000401 /* Punch */ +#define DIBUTTON_FIGHTINGH_KICK 0x08000402 /* Kick */ +#define DIBUTTON_FIGHTINGH_BLOCK 0x08000403 /* Block */ +#define DIBUTTON_FIGHTINGH_CROUCH 0x08000404 /* Crouch */ +#define DIBUTTON_FIGHTINGH_JUMP 0x08000405 /* Jump */ +#define DIBUTTON_FIGHTINGH_SPECIAL1 0x08000406 /* Apply first special move */ +#define DIBUTTON_FIGHTINGH_SPECIAL2 0x08000407 /* Apply second special move */ +#define DIBUTTON_FIGHTINGH_MENU 0x080004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_FIGHTINGH_SELECT 0x08004408 /* Select special move */ +#define DIHATSWITCH_FIGHTINGH_SLIDE 0x08004601 /* Look around */ +#define DIBUTTON_FIGHTINGH_DISPLAY 0x08004409 /* Shows next on-screen display option */ +#define DIAXIS_FIGHTINGH_ROTATE 0x08024203 /* Rotate - Turn body left/right */ +#define DIBUTTON_FIGHTINGH_DODGE 0x0800440A /* Dodge */ +#define DIBUTTON_FIGHTINGH_LEFT_LINK 0x0800C4E4 /* Fallback left sidestep button */ +#define DIBUTTON_FIGHTINGH_RIGHT_LINK 0x0800C4EC /* Fallback right sidestep button */ +#define DIBUTTON_FIGHTINGH_FORWARD_LINK 0x080144E0 /* Fallback forward button */ +#define DIBUTTON_FIGHTINGH_BACKWARD_LINK 0x080144E8 /* Fallback backward button */ +#define DIBUTTON_FIGHTINGH_DEVICE 0x080044FE /* Show input device and controls */ +#define DIBUTTON_FIGHTINGH_PAUSE 0x080044FC /* Start / Pause / Restart game */ + +/*--- Fighting - First Person Shooting + Navigation and combat are primary objectives ---*/ +#define DIVIRTUAL_FIGHTING_FPS 0x09000000 +#define DIAXIS_FPS_ROTATE 0x09008201 /* Rotate character left/right */ +#define DIAXIS_FPS_MOVE 0x09010202 /* Move forward/backward */ +#define DIBUTTON_FPS_FIRE 0x09000401 /* Fire */ +#define DIBUTTON_FPS_WEAPONS 0x09000402 /* Select next weapon */ +#define DIBUTTON_FPS_APPLY 0x09000403 /* Use item */ +#define DIBUTTON_FPS_SELECT 0x09000404 /* Select next inventory item */ +#define DIBUTTON_FPS_CROUCH 0x09000405 /* Crouch/ climb down/ swim down */ +#define DIBUTTON_FPS_JUMP 0x09000406 /* Jump/ climb up/ swim up */ +#define DIAXIS_FPS_LOOKUPDOWN 0x09018203 /* Look up / down */ +#define DIBUTTON_FPS_STRAFE 0x09000407 /* Enable strafing while active */ +#define DIBUTTON_FPS_MENU 0x090004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_FPS_GLANCE 0x09004601 /* Look around */ +#define DIBUTTON_FPS_DISPLAY 0x09004408 /* Shows next on-screen display option/ map */ +#define DIAXIS_FPS_SIDESTEP 0x09024204 /* Sidestep */ +#define DIBUTTON_FPS_DODGE 0x09004409 /* Dodge */ +#define DIBUTTON_FPS_GLANCEL 0x0900440A /* Glance Left */ +#define DIBUTTON_FPS_GLANCER 0x0900440B /* Glance Right */ +#define DIBUTTON_FPS_FIRESECONDARY 0x0900440C /* Alternative fire button */ +#define DIBUTTON_FPS_ROTATE_LEFT_LINK 0x0900C4E4 /* Fallback rotate left button */ +#define DIBUTTON_FPS_ROTATE_RIGHT_LINK 0x0900C4EC /* Fallback rotate right button */ +#define DIBUTTON_FPS_FORWARD_LINK 0x090144E0 /* Fallback forward button */ +#define DIBUTTON_FPS_BACKWARD_LINK 0x090144E8 /* Fallback backward button */ +#define DIBUTTON_FPS_GLANCE_UP_LINK 0x0901C4E0 /* Fallback look up button */ +#define DIBUTTON_FPS_GLANCE_DOWN_LINK 0x0901C4E8 /* Fallback look down button */ +#define DIBUTTON_FPS_STEP_LEFT_LINK 0x090244E4 /* Fallback step left button */ +#define DIBUTTON_FPS_STEP_RIGHT_LINK 0x090244EC /* Fallback step right button */ +#define DIBUTTON_FPS_DEVICE 0x090044FE /* Show input device and controls */ +#define DIBUTTON_FPS_PAUSE 0x090044FC /* Start / Pause / Restart game */ + +/*--- Fighting - Third Person action + Perspective of camera is behind the main character ---*/ +#define DIVIRTUAL_FIGHTING_THIRDPERSON 0x0A000000 +#define DIAXIS_TPS_TURN 0x0A020201 /* Turn left/right */ +#define DIAXIS_TPS_MOVE 0x0A010202 /* Move forward/backward */ +#define DIBUTTON_TPS_RUN 0x0A000401 /* Run or walk toggle switch */ +#define DIBUTTON_TPS_ACTION 0x0A000402 /* Action Button */ +#define DIBUTTON_TPS_SELECT 0x0A000403 /* Select next weapon */ +#define DIBUTTON_TPS_USE 0x0A000404 /* Use inventory item currently selected */ +#define DIBUTTON_TPS_JUMP 0x0A000405 /* Character Jumps */ +#define DIBUTTON_TPS_MENU 0x0A0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_TPS_GLANCE 0x0A004601 /* Look around */ +#define DIBUTTON_TPS_VIEW 0x0A004406 /* Select camera view */ +#define DIBUTTON_TPS_STEPLEFT 0x0A004407 /* Character takes a left step */ +#define DIBUTTON_TPS_STEPRIGHT 0x0A004408 /* Character takes a right step */ +#define DIAXIS_TPS_STEP 0x0A00C203 /* Character steps left/right */ +#define DIBUTTON_TPS_DODGE 0x0A004409 /* Character dodges or ducks */ +#define DIBUTTON_TPS_INVENTORY 0x0A00440A /* Cycle through inventory */ +#define DIBUTTON_TPS_TURN_LEFT_LINK 0x0A0244E4 /* Fallback turn left button */ +#define DIBUTTON_TPS_TURN_RIGHT_LINK 0x0A0244EC /* Fallback turn right button */ +#define DIBUTTON_TPS_FORWARD_LINK 0x0A0144E0 /* Fallback forward button */ +#define DIBUTTON_TPS_BACKWARD_LINK 0x0A0144E8 /* Fallback backward button */ +#define DIBUTTON_TPS_GLANCE_UP_LINK 0x0A07C4E0 /* Fallback look up button */ +#define DIBUTTON_TPS_GLANCE_DOWN_LINK 0x0A07C4E8 /* Fallback look down button */ +#define DIBUTTON_TPS_GLANCE_LEFT_LINK 0x0A07C4E4 /* Fallback glance up button */ +#define DIBUTTON_TPS_GLANCE_RIGHT_LINK 0x0A07C4EC /* Fallback glance right button */ +#define DIBUTTON_TPS_DEVICE 0x0A0044FE /* Show input device and controls */ +#define DIBUTTON_TPS_PAUSE 0x0A0044FC /* Start / Pause / Restart game */ + +/*--- Strategy - Role Playing + Navigation and problem solving are primary actions ---*/ +#define DIVIRTUAL_STRATEGY_ROLEPLAYING 0x0B000000 +#define DIAXIS_STRATEGYR_LATERAL 0x0B008201 /* sidestep - left/right */ +#define DIAXIS_STRATEGYR_MOVE 0x0B010202 /* move forward/backward */ +#define DIBUTTON_STRATEGYR_GET 0x0B000401 /* Acquire item */ +#define DIBUTTON_STRATEGYR_APPLY 0x0B000402 /* Use selected item */ +#define DIBUTTON_STRATEGYR_SELECT 0x0B000403 /* Select nextitem */ +#define DIBUTTON_STRATEGYR_ATTACK 0x0B000404 /* Attack */ +#define DIBUTTON_STRATEGYR_CAST 0x0B000405 /* Cast Spell */ +#define DIBUTTON_STRATEGYR_CROUCH 0x0B000406 /* Crouch */ +#define DIBUTTON_STRATEGYR_JUMP 0x0B000407 /* Jump */ +#define DIBUTTON_STRATEGYR_MENU 0x0B0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_STRATEGYR_GLANCE 0x0B004601 /* Look around */ +#define DIBUTTON_STRATEGYR_MAP 0x0B004408 /* Cycle through map options */ +#define DIBUTTON_STRATEGYR_DISPLAY 0x0B004409 /* Shows next on-screen display option */ +#define DIAXIS_STRATEGYR_ROTATE 0x0B024203 /* Turn body left/right */ +#define DIBUTTON_STRATEGYR_LEFT_LINK 0x0B00C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_STRATEGYR_RIGHT_LINK 0x0B00C4EC /* Fallback sidestep right button */ +#define DIBUTTON_STRATEGYR_FORWARD_LINK 0x0B0144E0 /* Fallback move forward button */ +#define DIBUTTON_STRATEGYR_BACK_LINK 0x0B0144E8 /* Fallback move backward button */ +#define DIBUTTON_STRATEGYR_ROTATE_LEFT_LINK 0x0B0244E4 /* Fallback turn body left button */ +#define DIBUTTON_STRATEGYR_ROTATE_RIGHT_LINK 0x0B0244EC /* Fallback turn body right button */ +#define DIBUTTON_STRATEGYR_DEVICE 0x0B0044FE /* Show input device and controls */ +#define DIBUTTON_STRATEGYR_PAUSE 0x0B0044FC /* Start / Pause / Restart game */ + +/*--- Strategy - Turn based + Navigation and problem solving are primary actions ---*/ +#define DIVIRTUAL_STRATEGY_TURN 0x0C000000 +#define DIAXIS_STRATEGYT_LATERAL 0x0C008201 /* Sidestep left/right */ +#define DIAXIS_STRATEGYT_MOVE 0x0C010202 /* Move forward/backwards */ +#define DIBUTTON_STRATEGYT_SELECT 0x0C000401 /* Select unit or object */ +#define DIBUTTON_STRATEGYT_INSTRUCT 0x0C000402 /* Cycle through instructions */ +#define DIBUTTON_STRATEGYT_APPLY 0x0C000403 /* Apply selected instruction */ +#define DIBUTTON_STRATEGYT_TEAM 0x0C000404 /* Select next team / cycle through all */ +#define DIBUTTON_STRATEGYT_TURN 0x0C000405 /* Indicate turn over */ +#define DIBUTTON_STRATEGYT_MENU 0x0C0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_STRATEGYT_ZOOM 0x0C004406 /* Zoom - in / out */ +#define DIBUTTON_STRATEGYT_MAP 0x0C004407 /* cycle through map options */ +#define DIBUTTON_STRATEGYT_DISPLAY 0x0C004408 /* shows next on-screen display options */ +#define DIBUTTON_STRATEGYT_LEFT_LINK 0x0C00C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_STRATEGYT_RIGHT_LINK 0x0C00C4EC /* Fallback sidestep right button */ +#define DIBUTTON_STRATEGYT_FORWARD_LINK 0x0C0144E0 /* Fallback move forward button */ +#define DIBUTTON_STRATEGYT_BACK_LINK 0x0C0144E8 /* Fallback move back button */ +#define DIBUTTON_STRATEGYT_DEVICE 0x0C0044FE /* Show input device and controls */ +#define DIBUTTON_STRATEGYT_PAUSE 0x0C0044FC /* Start / Pause / Restart game */ + +/*--- Sports - Hunting + Hunting ---*/ +#define DIVIRTUAL_SPORTS_HUNTING 0x0D000000 +#define DIAXIS_HUNTING_LATERAL 0x0D008201 /* sidestep left/right */ +#define DIAXIS_HUNTING_MOVE 0x0D010202 /* move forward/backwards */ +#define DIBUTTON_HUNTING_FIRE 0x0D000401 /* Fire selected weapon */ +#define DIBUTTON_HUNTING_AIM 0x0D000402 /* Select aim/move */ +#define DIBUTTON_HUNTING_WEAPON 0x0D000403 /* Select next weapon */ +#define DIBUTTON_HUNTING_BINOCULAR 0x0D000404 /* Look through Binoculars */ +#define DIBUTTON_HUNTING_CALL 0x0D000405 /* Make animal call */ +#define DIBUTTON_HUNTING_MAP 0x0D000406 /* View Map */ +#define DIBUTTON_HUNTING_SPECIAL 0x0D000407 /* Special game operation */ +#define DIBUTTON_HUNTING_MENU 0x0D0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_HUNTING_GLANCE 0x0D004601 /* Look around */ +#define DIBUTTON_HUNTING_DISPLAY 0x0D004408 /* show next on-screen display option */ +#define DIAXIS_HUNTING_ROTATE 0x0D024203 /* Turn body left/right */ +#define DIBUTTON_HUNTING_CROUCH 0x0D004409 /* Crouch/ Climb / Swim down */ +#define DIBUTTON_HUNTING_JUMP 0x0D00440A /* Jump/ Climb up / Swim up */ +#define DIBUTTON_HUNTING_FIRESECONDARY 0x0D00440B /* Alternative fire button */ +#define DIBUTTON_HUNTING_LEFT_LINK 0x0D00C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_HUNTING_RIGHT_LINK 0x0D00C4EC /* Fallback sidestep right button */ +#define DIBUTTON_HUNTING_FORWARD_LINK 0x0D0144E0 /* Fallback move forward button */ +#define DIBUTTON_HUNTING_BACK_LINK 0x0D0144E8 /* Fallback move back button */ +#define DIBUTTON_HUNTING_ROTATE_LEFT_LINK 0x0D0244E4 /* Fallback turn body left button */ +#define DIBUTTON_HUNTING_ROTATE_RIGHT_LINK 0x0D0244EC /* Fallback turn body right button */ +#define DIBUTTON_HUNTING_DEVICE 0x0D0044FE /* Show input device and controls */ +#define DIBUTTON_HUNTING_PAUSE 0x0D0044FC /* Start / Pause / Restart game */ + +/*--- Sports - Fishing + Catching Fish is primary objective ---*/ +#define DIVIRTUAL_SPORTS_FISHING 0x0E000000 +#define DIAXIS_FISHING_LATERAL 0x0E008201 /* sidestep left/right */ +#define DIAXIS_FISHING_MOVE 0x0E010202 /* move forward/backwards */ +#define DIBUTTON_FISHING_CAST 0x0E000401 /* Cast line */ +#define DIBUTTON_FISHING_TYPE 0x0E000402 /* Select cast type */ +#define DIBUTTON_FISHING_BINOCULAR 0x0E000403 /* Look through Binocular */ +#define DIBUTTON_FISHING_BAIT 0x0E000404 /* Select type of Bait */ +#define DIBUTTON_FISHING_MAP 0x0E000405 /* View Map */ +#define DIBUTTON_FISHING_MENU 0x0E0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_FISHING_GLANCE 0x0E004601 /* Look around */ +#define DIBUTTON_FISHING_DISPLAY 0x0E004406 /* Show next on-screen display option */ +#define DIAXIS_FISHING_ROTATE 0x0E024203 /* Turn character left / right */ +#define DIBUTTON_FISHING_CROUCH 0x0E004407 /* Crouch/ Climb / Swim down */ +#define DIBUTTON_FISHING_JUMP 0x0E004408 /* Jump/ Climb up / Swim up */ +#define DIBUTTON_FISHING_LEFT_LINK 0x0E00C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_FISHING_RIGHT_LINK 0x0E00C4EC /* Fallback sidestep right button */ +#define DIBUTTON_FISHING_FORWARD_LINK 0x0E0144E0 /* Fallback move forward button */ +#define DIBUTTON_FISHING_BACK_LINK 0x0E0144E8 /* Fallback move back button */ +#define DIBUTTON_FISHING_ROTATE_LEFT_LINK 0x0E0244E4 /* Fallback turn body left button */ +#define DIBUTTON_FISHING_ROTATE_RIGHT_LINK 0x0E0244EC /* Fallback turn body right button */ +#define DIBUTTON_FISHING_DEVICE 0x0E0044FE /* Show input device and controls */ +#define DIBUTTON_FISHING_PAUSE 0x0E0044FC /* Start / Pause / Restart game */ + +/*--- Sports - Baseball - Batting + Batter control is primary objective ---*/ +#define DIVIRTUAL_SPORTS_BASEBALL_BAT 0x0F000000 +#define DIAXIS_BASEBALLB_LATERAL 0x0F008201 /* Aim left / right */ +#define DIAXIS_BASEBALLB_MOVE 0x0F010202 /* Aim up / down */ +#define DIBUTTON_BASEBALLB_SELECT 0x0F000401 /* cycle through swing options */ +#define DIBUTTON_BASEBALLB_NORMAL 0x0F000402 /* normal swing */ +#define DIBUTTON_BASEBALLB_POWER 0x0F000403 /* swing for the fence */ +#define DIBUTTON_BASEBALLB_BUNT 0x0F000404 /* bunt */ +#define DIBUTTON_BASEBALLB_STEAL 0x0F000405 /* Base runner attempts to steal a base */ +#define DIBUTTON_BASEBALLB_BURST 0x0F000406 /* Base runner invokes burst of speed */ +#define DIBUTTON_BASEBALLB_SLIDE 0x0F000407 /* Base runner slides into base */ +#define DIBUTTON_BASEBALLB_CONTACT 0x0F000408 /* Contact swing */ +#define DIBUTTON_BASEBALLB_MENU 0x0F0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_BASEBALLB_NOSTEAL 0x0F004409 /* Base runner goes back to a base */ +#define DIBUTTON_BASEBALLB_BOX 0x0F00440A /* Enter or exit batting box */ +#define DIBUTTON_BASEBALLB_LEFT_LINK 0x0F00C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_BASEBALLB_RIGHT_LINK 0x0F00C4EC /* Fallback sidestep right button */ +#define DIBUTTON_BASEBALLB_FORWARD_LINK 0x0F0144E0 /* Fallback move forward button */ +#define DIBUTTON_BASEBALLB_BACK_LINK 0x0F0144E8 /* Fallback move back button */ +#define DIBUTTON_BASEBALLB_DEVICE 0x0F0044FE /* Show input device and controls */ +#define DIBUTTON_BASEBALLB_PAUSE 0x0F0044FC /* Start / Pause / Restart game */ + +/*--- Sports - Baseball - Pitching + Pitcher control is primary objective ---*/ +#define DIVIRTUAL_SPORTS_BASEBALL_PITCH 0x10000000 +#define DIAXIS_BASEBALLP_LATERAL 0x10008201 /* Aim left / right */ +#define DIAXIS_BASEBALLP_MOVE 0x10010202 /* Aim up / down */ +#define DIBUTTON_BASEBALLP_SELECT 0x10000401 /* cycle through pitch selections */ +#define DIBUTTON_BASEBALLP_PITCH 0x10000402 /* throw pitch */ +#define DIBUTTON_BASEBALLP_BASE 0x10000403 /* select base to throw to */ +#define DIBUTTON_BASEBALLP_THROW 0x10000404 /* throw to base */ +#define DIBUTTON_BASEBALLP_FAKE 0x10000405 /* Fake a throw to a base */ +#define DIBUTTON_BASEBALLP_MENU 0x100004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_BASEBALLP_WALK 0x10004406 /* Throw intentional walk / pitch out */ +#define DIBUTTON_BASEBALLP_LOOK 0x10004407 /* Look at runners on bases */ +#define DIBUTTON_BASEBALLP_LEFT_LINK 0x1000C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_BASEBALLP_RIGHT_LINK 0x1000C4EC /* Fallback sidestep right button */ +#define DIBUTTON_BASEBALLP_FORWARD_LINK 0x100144E0 /* Fallback move forward button */ +#define DIBUTTON_BASEBALLP_BACK_LINK 0x100144E8 /* Fallback move back button */ +#define DIBUTTON_BASEBALLP_DEVICE 0x100044FE /* Show input device and controls */ +#define DIBUTTON_BASEBALLP_PAUSE 0x100044FC /* Start / Pause / Restart game */ + +/*--- Sports - Baseball - Fielding + Fielder control is primary objective ---*/ +#define DIVIRTUAL_SPORTS_BASEBALL_FIELD 0x11000000 +#define DIAXIS_BASEBALLF_LATERAL 0x11008201 /* Aim left / right */ +#define DIAXIS_BASEBALLF_MOVE 0x11010202 /* Aim up / down */ +#define DIBUTTON_BASEBALLF_NEAREST 0x11000401 /* Switch to fielder nearest to the ball */ +#define DIBUTTON_BASEBALLF_THROW1 0x11000402 /* Make conservative throw */ +#define DIBUTTON_BASEBALLF_THROW2 0x11000403 /* Make aggressive throw */ +#define DIBUTTON_BASEBALLF_BURST 0x11000404 /* Invoke burst of speed */ +#define DIBUTTON_BASEBALLF_JUMP 0x11000405 /* Jump to catch ball */ +#define DIBUTTON_BASEBALLF_DIVE 0x11000406 /* Dive to catch ball */ +#define DIBUTTON_BASEBALLF_MENU 0x110004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_BASEBALLF_SHIFTIN 0x11004407 /* Shift the infield positioning */ +#define DIBUTTON_BASEBALLF_SHIFTOUT 0x11004408 /* Shift the outfield positioning */ +#define DIBUTTON_BASEBALLF_AIM_LEFT_LINK 0x1100C4E4 /* Fallback aim left button */ +#define DIBUTTON_BASEBALLF_AIM_RIGHT_LINK 0x1100C4EC /* Fallback aim right button */ +#define DIBUTTON_BASEBALLF_FORWARD_LINK 0x110144E0 /* Fallback move forward button */ +#define DIBUTTON_BASEBALLF_BACK_LINK 0x110144E8 /* Fallback move back button */ +#define DIBUTTON_BASEBALLF_DEVICE 0x110044FE /* Show input device and controls */ +#define DIBUTTON_BASEBALLF_PAUSE 0x110044FC /* Start / Pause / Restart game */ + +/*--- Sports - Basketball - Offense + Offense ---*/ +#define DIVIRTUAL_SPORTS_BASKETBALL_OFFENSE 0x12000000 +#define DIAXIS_BBALLO_LATERAL 0x12008201 /* left / right */ +#define DIAXIS_BBALLO_MOVE 0x12010202 /* up / down */ +#define DIBUTTON_BBALLO_SHOOT 0x12000401 /* shoot basket */ +#define DIBUTTON_BBALLO_DUNK 0x12000402 /* dunk basket */ +#define DIBUTTON_BBALLO_PASS 0x12000403 /* throw pass */ +#define DIBUTTON_BBALLO_FAKE 0x12000404 /* fake shot or pass */ +#define DIBUTTON_BBALLO_SPECIAL 0x12000405 /* apply special move */ +#define DIBUTTON_BBALLO_PLAYER 0x12000406 /* select next player */ +#define DIBUTTON_BBALLO_BURST 0x12000407 /* invoke burst */ +#define DIBUTTON_BBALLO_CALL 0x12000408 /* call for ball / pass to me */ +#define DIBUTTON_BBALLO_MENU 0x120004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_BBALLO_GLANCE 0x12004601 /* scroll view */ +#define DIBUTTON_BBALLO_SCREEN 0x12004409 /* Call for screen */ +#define DIBUTTON_BBALLO_PLAY 0x1200440A /* Call for specific offensive play */ +#define DIBUTTON_BBALLO_JAB 0x1200440B /* Initiate fake drive to basket */ +#define DIBUTTON_BBALLO_POST 0x1200440C /* Perform post move */ +#define DIBUTTON_BBALLO_TIMEOUT 0x1200440D /* Time Out */ +#define DIBUTTON_BBALLO_SUBSTITUTE 0x1200440E /* substitute one player for another */ +#define DIBUTTON_BBALLO_LEFT_LINK 0x1200C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_BBALLO_RIGHT_LINK 0x1200C4EC /* Fallback sidestep right button */ +#define DIBUTTON_BBALLO_FORWARD_LINK 0x120144E0 /* Fallback move forward button */ +#define DIBUTTON_BBALLO_BACK_LINK 0x120144E8 /* Fallback move back button */ +#define DIBUTTON_BBALLO_DEVICE 0x120044FE /* Show input device and controls */ +#define DIBUTTON_BBALLO_PAUSE 0x120044FC /* Start / Pause / Restart game */ + +/*--- Sports - Basketball - Defense + Defense ---*/ +#define DIVIRTUAL_SPORTS_BASKETBALL_DEFENSE 0x13000000 +#define DIAXIS_BBALLD_LATERAL 0x13008201 /* left / right */ +#define DIAXIS_BBALLD_MOVE 0x13010202 /* up / down */ +#define DIBUTTON_BBALLD_JUMP 0x13000401 /* jump to block shot */ +#define DIBUTTON_BBALLD_STEAL 0x13000402 /* attempt to steal ball */ +#define DIBUTTON_BBALLD_FAKE 0x13000403 /* fake block or steal */ +#define DIBUTTON_BBALLD_SPECIAL 0x13000404 /* apply special move */ +#define DIBUTTON_BBALLD_PLAYER 0x13000405 /* select next player */ +#define DIBUTTON_BBALLD_BURST 0x13000406 /* invoke burst */ +#define DIBUTTON_BBALLD_PLAY 0x13000407 /* call for specific defensive play */ +#define DIBUTTON_BBALLD_MENU 0x130004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_BBALLD_GLANCE 0x13004601 /* scroll view */ +#define DIBUTTON_BBALLD_TIMEOUT 0x13004408 /* Time Out */ +#define DIBUTTON_BBALLD_SUBSTITUTE 0x13004409 /* substitute one player for another */ +#define DIBUTTON_BBALLD_LEFT_LINK 0x1300C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_BBALLD_RIGHT_LINK 0x1300C4EC /* Fallback sidestep right button */ +#define DIBUTTON_BBALLD_FORWARD_LINK 0x130144E0 /* Fallback move forward button */ +#define DIBUTTON_BBALLD_BACK_LINK 0x130144E8 /* Fallback move back button */ +#define DIBUTTON_BBALLD_DEVICE 0x130044FE /* Show input device and controls */ +#define DIBUTTON_BBALLD_PAUSE 0x130044FC /* Start / Pause / Restart game */ + +/*--- Sports - Football - Play + Play selection ---*/ +#define DIVIRTUAL_SPORTS_FOOTBALL_FIELD 0x14000000 +#define DIBUTTON_FOOTBALLP_PLAY 0x14000401 /* cycle through available plays */ +#define DIBUTTON_FOOTBALLP_SELECT 0x14000402 /* select play */ +#define DIBUTTON_FOOTBALLP_HELP 0x14000403 /* Bring up pop-up help */ +#define DIBUTTON_FOOTBALLP_MENU 0x140004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_FOOTBALLP_DEVICE 0x140044FE /* Show input device and controls */ +#define DIBUTTON_FOOTBALLP_PAUSE 0x140044FC /* Start / Pause / Restart game */ + +/*--- Sports - Football - QB + Offense: Quarterback / Kicker ---*/ +#define DIVIRTUAL_SPORTS_FOOTBALL_QBCK 0x15000000 +#define DIAXIS_FOOTBALLQ_LATERAL 0x15008201 /* Move / Aim: left / right */ +#define DIAXIS_FOOTBALLQ_MOVE 0x15010202 /* Move / Aim: up / down */ +#define DIBUTTON_FOOTBALLQ_SELECT 0x15000401 /* Select */ +#define DIBUTTON_FOOTBALLQ_SNAP 0x15000402 /* snap ball - start play */ +#define DIBUTTON_FOOTBALLQ_JUMP 0x15000403 /* jump over defender */ +#define DIBUTTON_FOOTBALLQ_SLIDE 0x15000404 /* Dive/Slide */ +#define DIBUTTON_FOOTBALLQ_PASS 0x15000405 /* throws pass to receiver */ +#define DIBUTTON_FOOTBALLQ_FAKE 0x15000406 /* pump fake pass or fake kick */ +#define DIBUTTON_FOOTBALLQ_MENU 0x150004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_FOOTBALLQ_FAKESNAP 0x15004407 /* Fake snap */ +#define DIBUTTON_FOOTBALLQ_MOTION 0x15004408 /* Send receivers in motion */ +#define DIBUTTON_FOOTBALLQ_AUDIBLE 0x15004409 /* Change offensive play at line of scrimmage */ +#define DIBUTTON_FOOTBALLQ_LEFT_LINK 0x1500C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_FOOTBALLQ_RIGHT_LINK 0x1500C4EC /* Fallback sidestep right button */ +#define DIBUTTON_FOOTBALLQ_FORWARD_LINK 0x150144E0 /* Fallback move forward button */ +#define DIBUTTON_FOOTBALLQ_BACK_LINK 0x150144E8 /* Fallback move back button */ +#define DIBUTTON_FOOTBALLQ_DEVICE 0x150044FE /* Show input device and controls */ +#define DIBUTTON_FOOTBALLQ_PAUSE 0x150044FC /* Start / Pause / Restart game */ + +/*--- Sports - Football - Offense + Offense - Runner ---*/ +#define DIVIRTUAL_SPORTS_FOOTBALL_OFFENSE 0x16000000 +#define DIAXIS_FOOTBALLO_LATERAL 0x16008201 /* Move / Aim: left / right */ +#define DIAXIS_FOOTBALLO_MOVE 0x16010202 /* Move / Aim: up / down */ +#define DIBUTTON_FOOTBALLO_JUMP 0x16000401 /* jump or hurdle over defender */ +#define DIBUTTON_FOOTBALLO_LEFTARM 0x16000402 /* holds out left arm */ +#define DIBUTTON_FOOTBALLO_RIGHTARM 0x16000403 /* holds out right arm */ +#define DIBUTTON_FOOTBALLO_THROW 0x16000404 /* throw pass or lateral ball to another runner */ +#define DIBUTTON_FOOTBALLO_SPIN 0x16000405 /* Spin to avoid defenders */ +#define DIBUTTON_FOOTBALLO_MENU 0x160004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_FOOTBALLO_JUKE 0x16004406 /* Use special move to avoid defenders */ +#define DIBUTTON_FOOTBALLO_SHOULDER 0x16004407 /* Lower shoulder to run over defenders */ +#define DIBUTTON_FOOTBALLO_TURBO 0x16004408 /* Speed burst past defenders */ +#define DIBUTTON_FOOTBALLO_DIVE 0x16004409 /* Dive over defenders */ +#define DIBUTTON_FOOTBALLO_ZOOM 0x1600440A /* Zoom view in / out */ +#define DIBUTTON_FOOTBALLO_SUBSTITUTE 0x1600440B /* substitute one player for another */ +#define DIBUTTON_FOOTBALLO_LEFT_LINK 0x1600C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_FOOTBALLO_RIGHT_LINK 0x1600C4EC /* Fallback sidestep right button */ +#define DIBUTTON_FOOTBALLO_FORWARD_LINK 0x160144E0 /* Fallback move forward button */ +#define DIBUTTON_FOOTBALLO_BACK_LINK 0x160144E8 /* Fallback move back button */ +#define DIBUTTON_FOOTBALLO_DEVICE 0x160044FE /* Show input device and controls */ +#define DIBUTTON_FOOTBALLO_PAUSE 0x160044FC /* Start / Pause / Restart game */ + +/*--- Sports - Football - Defense + Defense ---*/ +#define DIVIRTUAL_SPORTS_FOOTBALL_DEFENSE 0x17000000 +#define DIAXIS_FOOTBALLD_LATERAL 0x17008201 /* Move / Aim: left / right */ +#define DIAXIS_FOOTBALLD_MOVE 0x17010202 /* Move / Aim: up / down */ +#define DIBUTTON_FOOTBALLD_PLAY 0x17000401 /* cycle through available plays */ +#define DIBUTTON_FOOTBALLD_SELECT 0x17000402 /* select player closest to the ball */ +#define DIBUTTON_FOOTBALLD_JUMP 0x17000403 /* jump to intercept or block */ +#define DIBUTTON_FOOTBALLD_TACKLE 0x17000404 /* tackler runner */ +#define DIBUTTON_FOOTBALLD_FAKE 0x17000405 /* hold down to fake tackle or intercept */ +#define DIBUTTON_FOOTBALLD_SUPERTACKLE 0x17000406 /* Initiate special tackle */ +#define DIBUTTON_FOOTBALLD_MENU 0x170004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_FOOTBALLD_SPIN 0x17004407 /* Spin to beat offensive line */ +#define DIBUTTON_FOOTBALLD_SWIM 0x17004408 /* Swim to beat the offensive line */ +#define DIBUTTON_FOOTBALLD_BULLRUSH 0x17004409 /* Bull rush the offensive line */ +#define DIBUTTON_FOOTBALLD_RIP 0x1700440A /* Rip the offensive line */ +#define DIBUTTON_FOOTBALLD_AUDIBLE 0x1700440B /* Change defensive play at the line of scrimmage */ +#define DIBUTTON_FOOTBALLD_ZOOM 0x1700440C /* Zoom view in / out */ +#define DIBUTTON_FOOTBALLD_SUBSTITUTE 0x1700440D /* substitute one player for another */ +#define DIBUTTON_FOOTBALLD_LEFT_LINK 0x1700C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_FOOTBALLD_RIGHT_LINK 0x1700C4EC /* Fallback sidestep right button */ +#define DIBUTTON_FOOTBALLD_FORWARD_LINK 0x170144E0 /* Fallback move forward button */ +#define DIBUTTON_FOOTBALLD_BACK_LINK 0x170144E8 /* Fallback move back button */ +#define DIBUTTON_FOOTBALLD_DEVICE 0x170044FE /* Show input device and controls */ +#define DIBUTTON_FOOTBALLD_PAUSE 0x170044FC /* Start / Pause / Restart game */ + +/*--- Sports - Golf + ---*/ +#define DIVIRTUAL_SPORTS_GOLF 0x18000000 +#define DIAXIS_GOLF_LATERAL 0x18008201 /* Move / Aim: left / right */ +#define DIAXIS_GOLF_MOVE 0x18010202 /* Move / Aim: up / down */ +#define DIBUTTON_GOLF_SWING 0x18000401 /* swing club */ +#define DIBUTTON_GOLF_SELECT 0x18000402 /* cycle between: club / swing strength / ball arc / ball spin */ +#define DIBUTTON_GOLF_UP 0x18000403 /* increase selection */ +#define DIBUTTON_GOLF_DOWN 0x18000404 /* decrease selection */ +#define DIBUTTON_GOLF_TERRAIN 0x18000405 /* shows terrain detail */ +#define DIBUTTON_GOLF_FLYBY 0x18000406 /* view the hole via a flyby */ +#define DIBUTTON_GOLF_MENU 0x180004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_GOLF_SCROLL 0x18004601 /* scroll view */ +#define DIBUTTON_GOLF_ZOOM 0x18004407 /* Zoom view in / out */ +#define DIBUTTON_GOLF_TIMEOUT 0x18004408 /* Call for time out */ +#define DIBUTTON_GOLF_SUBSTITUTE 0x18004409 /* substitute one player for another */ +#define DIBUTTON_GOLF_LEFT_LINK 0x1800C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_GOLF_RIGHT_LINK 0x1800C4EC /* Fallback sidestep right button */ +#define DIBUTTON_GOLF_FORWARD_LINK 0x180144E0 /* Fallback move forward button */ +#define DIBUTTON_GOLF_BACK_LINK 0x180144E8 /* Fallback move back button */ +#define DIBUTTON_GOLF_DEVICE 0x180044FE /* Show input device and controls */ +#define DIBUTTON_GOLF_PAUSE 0x180044FC /* Start / Pause / Restart game */ + +/*--- Sports - Hockey - Offense + Offense ---*/ +#define DIVIRTUAL_SPORTS_HOCKEY_OFFENSE 0x19000000 +#define DIAXIS_HOCKEYO_LATERAL 0x19008201 /* Move / Aim: left / right */ +#define DIAXIS_HOCKEYO_MOVE 0x19010202 /* Move / Aim: up / down */ +#define DIBUTTON_HOCKEYO_SHOOT 0x19000401 /* Shoot */ +#define DIBUTTON_HOCKEYO_PASS 0x19000402 /* pass the puck */ +#define DIBUTTON_HOCKEYO_BURST 0x19000403 /* invoke speed burst */ +#define DIBUTTON_HOCKEYO_SPECIAL 0x19000404 /* invoke special move */ +#define DIBUTTON_HOCKEYO_FAKE 0x19000405 /* hold down to fake pass or kick */ +#define DIBUTTON_HOCKEYO_MENU 0x190004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_HOCKEYO_SCROLL 0x19004601 /* scroll view */ +#define DIBUTTON_HOCKEYO_ZOOM 0x19004406 /* Zoom view in / out */ +#define DIBUTTON_HOCKEYO_STRATEGY 0x19004407 /* Invoke coaching menu for strategy help */ +#define DIBUTTON_HOCKEYO_TIMEOUT 0x19004408 /* Call for time out */ +#define DIBUTTON_HOCKEYO_SUBSTITUTE 0x19004409 /* substitute one player for another */ +#define DIBUTTON_HOCKEYO_LEFT_LINK 0x1900C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_HOCKEYO_RIGHT_LINK 0x1900C4EC /* Fallback sidestep right button */ +#define DIBUTTON_HOCKEYO_FORWARD_LINK 0x190144E0 /* Fallback move forward button */ +#define DIBUTTON_HOCKEYO_BACK_LINK 0x190144E8 /* Fallback move back button */ +#define DIBUTTON_HOCKEYO_DEVICE 0x190044FE /* Show input device and controls */ +#define DIBUTTON_HOCKEYO_PAUSE 0x190044FC /* Start / Pause / Restart game */ + +/*--- Sports - Hockey - Defense + Defense ---*/ +#define DIVIRTUAL_SPORTS_HOCKEY_DEFENSE 0x1A000000 +#define DIAXIS_HOCKEYD_LATERAL 0x1A008201 /* Move / Aim: left / right */ +#define DIAXIS_HOCKEYD_MOVE 0x1A010202 /* Move / Aim: up / down */ +#define DIBUTTON_HOCKEYD_PLAYER 0x1A000401 /* control player closest to the puck */ +#define DIBUTTON_HOCKEYD_STEAL 0x1A000402 /* attempt steal */ +#define DIBUTTON_HOCKEYD_BURST 0x1A000403 /* speed burst or body check */ +#define DIBUTTON_HOCKEYD_BLOCK 0x1A000404 /* block puck */ +#define DIBUTTON_HOCKEYD_FAKE 0x1A000405 /* hold down to fake tackle or intercept */ +#define DIBUTTON_HOCKEYD_MENU 0x1A0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_HOCKEYD_SCROLL 0x1A004601 /* scroll view */ +#define DIBUTTON_HOCKEYD_ZOOM 0x1A004406 /* Zoom view in / out */ +#define DIBUTTON_HOCKEYD_STRATEGY 0x1A004407 /* Invoke coaching menu for strategy help */ +#define DIBUTTON_HOCKEYD_TIMEOUT 0x1A004408 /* Call for time out */ +#define DIBUTTON_HOCKEYD_SUBSTITUTE 0x1A004409 /* substitute one player for another */ +#define DIBUTTON_HOCKEYD_LEFT_LINK 0x1A00C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_HOCKEYD_RIGHT_LINK 0x1A00C4EC /* Fallback sidestep right button */ +#define DIBUTTON_HOCKEYD_FORWARD_LINK 0x1A0144E0 /* Fallback move forward button */ +#define DIBUTTON_HOCKEYD_BACK_LINK 0x1A0144E8 /* Fallback move back button */ +#define DIBUTTON_HOCKEYD_DEVICE 0x1A0044FE /* Show input device and controls */ +#define DIBUTTON_HOCKEYD_PAUSE 0x1A0044FC /* Start / Pause / Restart game */ + +/*--- Sports - Hockey - Goalie + Goal tending ---*/ +#define DIVIRTUAL_SPORTS_HOCKEY_GOALIE 0x1B000000 +#define DIAXIS_HOCKEYG_LATERAL 0x1B008201 /* Move / Aim: left / right */ +#define DIAXIS_HOCKEYG_MOVE 0x1B010202 /* Move / Aim: up / down */ +#define DIBUTTON_HOCKEYG_PASS 0x1B000401 /* pass puck */ +#define DIBUTTON_HOCKEYG_POKE 0x1B000402 /* poke / check / hack */ +#define DIBUTTON_HOCKEYG_STEAL 0x1B000403 /* attempt steal */ +#define DIBUTTON_HOCKEYG_BLOCK 0x1B000404 /* block puck */ +#define DIBUTTON_HOCKEYG_MENU 0x1B0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_HOCKEYG_SCROLL 0x1B004601 /* scroll view */ +#define DIBUTTON_HOCKEYG_ZOOM 0x1B004405 /* Zoom view in / out */ +#define DIBUTTON_HOCKEYG_STRATEGY 0x1B004406 /* Invoke coaching menu for strategy help */ +#define DIBUTTON_HOCKEYG_TIMEOUT 0x1B004407 /* Call for time out */ +#define DIBUTTON_HOCKEYG_SUBSTITUTE 0x1B004408 /* substitute one player for another */ +#define DIBUTTON_HOCKEYG_LEFT_LINK 0x1B00C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_HOCKEYG_RIGHT_LINK 0x1B00C4EC /* Fallback sidestep right button */ +#define DIBUTTON_HOCKEYG_FORWARD_LINK 0x1B0144E0 /* Fallback move forward button */ +#define DIBUTTON_HOCKEYG_BACK_LINK 0x1B0144E8 /* Fallback move back button */ +#define DIBUTTON_HOCKEYG_DEVICE 0x1B0044FE /* Show input device and controls */ +#define DIBUTTON_HOCKEYG_PAUSE 0x1B0044FC /* Start / Pause / Restart game */ + +/*--- Sports - Mountain Biking + ---*/ +#define DIVIRTUAL_SPORTS_BIKING_MOUNTAIN 0x1C000000 +#define DIAXIS_BIKINGM_TURN 0x1C008201 /* left / right */ +#define DIAXIS_BIKINGM_PEDAL 0x1C010202 /* Pedal faster / slower / brake */ +#define DIBUTTON_BIKINGM_JUMP 0x1C000401 /* jump over obstacle */ +#define DIBUTTON_BIKINGM_CAMERA 0x1C000402 /* switch camera view */ +#define DIBUTTON_BIKINGM_SPECIAL1 0x1C000403 /* perform first special move */ +#define DIBUTTON_BIKINGM_SELECT 0x1C000404 /* Select */ +#define DIBUTTON_BIKINGM_SPECIAL2 0x1C000405 /* perform second special move */ +#define DIBUTTON_BIKINGM_MENU 0x1C0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_BIKINGM_SCROLL 0x1C004601 /* scroll view */ +#define DIBUTTON_BIKINGM_ZOOM 0x1C004406 /* Zoom view in / out */ +#define DIAXIS_BIKINGM_BRAKE 0x1C044203 /* Brake axis */ +#define DIBUTTON_BIKINGM_LEFT_LINK 0x1C00C4E4 /* Fallback turn left button */ +#define DIBUTTON_BIKINGM_RIGHT_LINK 0x1C00C4EC /* Fallback turn right button */ +#define DIBUTTON_BIKINGM_FASTER_LINK 0x1C0144E0 /* Fallback pedal faster button */ +#define DIBUTTON_BIKINGM_SLOWER_LINK 0x1C0144E8 /* Fallback pedal slower button */ +#define DIBUTTON_BIKINGM_BRAKE_BUTTON_LINK 0x1C0444E8 /* Fallback brake button */ +#define DIBUTTON_BIKINGM_DEVICE 0x1C0044FE /* Show input device and controls */ +#define DIBUTTON_BIKINGM_PAUSE 0x1C0044FC /* Start / Pause / Restart game */ + +/*--- Sports: Skiing / Snowboarding / Skateboarding + ---*/ +#define DIVIRTUAL_SPORTS_SKIING 0x1D000000 +#define DIAXIS_SKIING_TURN 0x1D008201 /* left / right */ +#define DIAXIS_SKIING_SPEED 0x1D010202 /* faster / slower */ +#define DIBUTTON_SKIING_JUMP 0x1D000401 /* Jump */ +#define DIBUTTON_SKIING_CROUCH 0x1D000402 /* crouch down */ +#define DIBUTTON_SKIING_CAMERA 0x1D000403 /* switch camera view */ +#define DIBUTTON_SKIING_SPECIAL1 0x1D000404 /* perform first special move */ +#define DIBUTTON_SKIING_SELECT 0x1D000405 /* Select */ +#define DIBUTTON_SKIING_SPECIAL2 0x1D000406 /* perform second special move */ +#define DIBUTTON_SKIING_MENU 0x1D0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_SKIING_GLANCE 0x1D004601 /* scroll view */ +#define DIBUTTON_SKIING_ZOOM 0x1D004407 /* Zoom view in / out */ +#define DIBUTTON_SKIING_LEFT_LINK 0x1D00C4E4 /* Fallback turn left button */ +#define DIBUTTON_SKIING_RIGHT_LINK 0x1D00C4EC /* Fallback turn right button */ +#define DIBUTTON_SKIING_FASTER_LINK 0x1D0144E0 /* Fallback increase speed button */ +#define DIBUTTON_SKIING_SLOWER_LINK 0x1D0144E8 /* Fallback decrease speed button */ +#define DIBUTTON_SKIING_DEVICE 0x1D0044FE /* Show input device and controls */ +#define DIBUTTON_SKIING_PAUSE 0x1D0044FC /* Start / Pause / Restart game */ + +/*--- Sports - Soccer - Offense + Offense ---*/ +#define DIVIRTUAL_SPORTS_SOCCER_OFFENSE 0x1E000000 +#define DIAXIS_SOCCERO_LATERAL 0x1E008201 /* Move / Aim: left / right */ +#define DIAXIS_SOCCERO_MOVE 0x1E010202 /* Move / Aim: up / down */ +#define DIAXIS_SOCCERO_BEND 0x1E018203 /* Bend to soccer shot/pass */ +#define DIBUTTON_SOCCERO_SHOOT 0x1E000401 /* Shoot the ball */ +#define DIBUTTON_SOCCERO_PASS 0x1E000402 /* Pass */ +#define DIBUTTON_SOCCERO_FAKE 0x1E000403 /* Fake */ +#define DIBUTTON_SOCCERO_PLAYER 0x1E000404 /* Select next player */ +#define DIBUTTON_SOCCERO_SPECIAL1 0x1E000405 /* Apply special move */ +#define DIBUTTON_SOCCERO_SELECT 0x1E000406 /* Select special move */ +#define DIBUTTON_SOCCERO_MENU 0x1E0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_SOCCERO_GLANCE 0x1E004601 /* scroll view */ +#define DIBUTTON_SOCCERO_SUBSTITUTE 0x1E004407 /* Substitute one player for another */ +#define DIBUTTON_SOCCERO_SHOOTLOW 0x1E004408 /* Shoot the ball low */ +#define DIBUTTON_SOCCERO_SHOOTHIGH 0x1E004409 /* Shoot the ball high */ +#define DIBUTTON_SOCCERO_PASSTHRU 0x1E00440A /* Make a thru pass */ +#define DIBUTTON_SOCCERO_SPRINT 0x1E00440B /* Sprint / turbo boost */ +#define DIBUTTON_SOCCERO_CONTROL 0x1E00440C /* Obtain control of the ball */ +#define DIBUTTON_SOCCERO_HEAD 0x1E00440D /* Attempt to head the ball */ +#define DIBUTTON_SOCCERO_LEFT_LINK 0x1E00C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_SOCCERO_RIGHT_LINK 0x1E00C4EC /* Fallback sidestep right button */ +#define DIBUTTON_SOCCERO_FORWARD_LINK 0x1E0144E0 /* Fallback move forward button */ +#define DIBUTTON_SOCCERO_BACK_LINK 0x1E0144E8 /* Fallback move back button */ +#define DIBUTTON_SOCCERO_DEVICE 0x1E0044FE /* Show input device and controls */ +#define DIBUTTON_SOCCERO_PAUSE 0x1E0044FC /* Start / Pause / Restart game */ + +/*--- Sports - Soccer - Defense + Defense ---*/ +#define DIVIRTUAL_SPORTS_SOCCER_DEFENSE 0x1F000000 +#define DIAXIS_SOCCERD_LATERAL 0x1F008201 /* Move / Aim: left / right */ +#define DIAXIS_SOCCERD_MOVE 0x1F010202 /* Move / Aim: up / down */ +#define DIBUTTON_SOCCERD_BLOCK 0x1F000401 /* Attempt to block shot */ +#define DIBUTTON_SOCCERD_STEAL 0x1F000402 /* Attempt to steal ball */ +#define DIBUTTON_SOCCERD_FAKE 0x1F000403 /* Fake a block or a steal */ +#define DIBUTTON_SOCCERD_PLAYER 0x1F000404 /* Select next player */ +#define DIBUTTON_SOCCERD_SPECIAL 0x1F000405 /* Apply special move */ +#define DIBUTTON_SOCCERD_SELECT 0x1F000406 /* Select special move */ +#define DIBUTTON_SOCCERD_SLIDE 0x1F000407 /* Attempt a slide tackle */ +#define DIBUTTON_SOCCERD_MENU 0x1F0004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_SOCCERD_GLANCE 0x1F004601 /* scroll view */ +#define DIBUTTON_SOCCERD_FOUL 0x1F004408 /* Initiate a foul / hard-foul */ +#define DIBUTTON_SOCCERD_HEAD 0x1F004409 /* Attempt a Header */ +#define DIBUTTON_SOCCERD_CLEAR 0x1F00440A /* Attempt to clear the ball down the field */ +#define DIBUTTON_SOCCERD_GOALIECHARGE 0x1F00440B /* Make the goalie charge out of the box */ +#define DIBUTTON_SOCCERD_SUBSTITUTE 0x1F00440C /* Substitute one player for another */ +#define DIBUTTON_SOCCERD_LEFT_LINK 0x1F00C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_SOCCERD_RIGHT_LINK 0x1F00C4EC /* Fallback sidestep right button */ +#define DIBUTTON_SOCCERD_FORWARD_LINK 0x1F0144E0 /* Fallback move forward button */ +#define DIBUTTON_SOCCERD_BACK_LINK 0x1F0144E8 /* Fallback move back button */ +#define DIBUTTON_SOCCERD_DEVICE 0x1F0044FE /* Show input device and controls */ +#define DIBUTTON_SOCCERD_PAUSE 0x1F0044FC /* Start / Pause / Restart game */ + +/*--- Sports - Racquet + Tennis - Table-Tennis - Squash ---*/ +#define DIVIRTUAL_SPORTS_RACQUET 0x20000000 +#define DIAXIS_RACQUET_LATERAL 0x20008201 /* Move / Aim: left / right */ +#define DIAXIS_RACQUET_MOVE 0x20010202 /* Move / Aim: up / down */ +#define DIBUTTON_RACQUET_SWING 0x20000401 /* Swing racquet */ +#define DIBUTTON_RACQUET_BACKSWING 0x20000402 /* Swing backhand */ +#define DIBUTTON_RACQUET_SMASH 0x20000403 /* Smash shot */ +#define DIBUTTON_RACQUET_SPECIAL 0x20000404 /* Special shot */ +#define DIBUTTON_RACQUET_SELECT 0x20000405 /* Select special shot */ +#define DIBUTTON_RACQUET_MENU 0x200004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_RACQUET_GLANCE 0x20004601 /* scroll view */ +#define DIBUTTON_RACQUET_TIMEOUT 0x20004406 /* Call for time out */ +#define DIBUTTON_RACQUET_SUBSTITUTE 0x20004407 /* Substitute one player for another */ +#define DIBUTTON_RACQUET_LEFT_LINK 0x2000C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_RACQUET_RIGHT_LINK 0x2000C4EC /* Fallback sidestep right button */ +#define DIBUTTON_RACQUET_FORWARD_LINK 0x200144E0 /* Fallback move forward button */ +#define DIBUTTON_RACQUET_BACK_LINK 0x200144E8 /* Fallback move back button */ +#define DIBUTTON_RACQUET_DEVICE 0x200044FE /* Show input device and controls */ +#define DIBUTTON_RACQUET_PAUSE 0x200044FC /* Start / Pause / Restart game */ + +/*--- Arcade- 2D + Side to Side movement ---*/ +#define DIVIRTUAL_ARCADE_SIDE2SIDE 0x21000000 +#define DIAXIS_ARCADES_LATERAL 0x21008201 /* left / right */ +#define DIAXIS_ARCADES_MOVE 0x21010202 /* up / down */ +#define DIBUTTON_ARCADES_THROW 0x21000401 /* throw object */ +#define DIBUTTON_ARCADES_CARRY 0x21000402 /* carry object */ +#define DIBUTTON_ARCADES_ATTACK 0x21000403 /* attack */ +#define DIBUTTON_ARCADES_SPECIAL 0x21000404 /* apply special move */ +#define DIBUTTON_ARCADES_SELECT 0x21000405 /* select special move */ +#define DIBUTTON_ARCADES_MENU 0x210004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_ARCADES_VIEW 0x21004601 /* scroll view left / right / up / down */ +#define DIBUTTON_ARCADES_LEFT_LINK 0x2100C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_ARCADES_RIGHT_LINK 0x2100C4EC /* Fallback sidestep right button */ +#define DIBUTTON_ARCADES_FORWARD_LINK 0x210144E0 /* Fallback move forward button */ +#define DIBUTTON_ARCADES_BACK_LINK 0x210144E8 /* Fallback move back button */ +#define DIBUTTON_ARCADES_VIEW_UP_LINK 0x2107C4E0 /* Fallback scroll view up button */ +#define DIBUTTON_ARCADES_VIEW_DOWN_LINK 0x2107C4E8 /* Fallback scroll view down button */ +#define DIBUTTON_ARCADES_VIEW_LEFT_LINK 0x2107C4E4 /* Fallback scroll view left button */ +#define DIBUTTON_ARCADES_VIEW_RIGHT_LINK 0x2107C4EC /* Fallback scroll view right button */ +#define DIBUTTON_ARCADES_DEVICE 0x210044FE /* Show input device and controls */ +#define DIBUTTON_ARCADES_PAUSE 0x210044FC /* Start / Pause / Restart game */ + +/*--- Arcade - Platform Game + Character moves around on screen ---*/ +#define DIVIRTUAL_ARCADE_PLATFORM 0x22000000 +#define DIAXIS_ARCADEP_LATERAL 0x22008201 /* Left / right */ +#define DIAXIS_ARCADEP_MOVE 0x22010202 /* Up / down */ +#define DIBUTTON_ARCADEP_JUMP 0x22000401 /* Jump */ +#define DIBUTTON_ARCADEP_FIRE 0x22000402 /* Fire */ +#define DIBUTTON_ARCADEP_CROUCH 0x22000403 /* Crouch */ +#define DIBUTTON_ARCADEP_SPECIAL 0x22000404 /* Apply special move */ +#define DIBUTTON_ARCADEP_SELECT 0x22000405 /* Select special move */ +#define DIBUTTON_ARCADEP_MENU 0x220004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_ARCADEP_VIEW 0x22004601 /* Scroll view */ +#define DIBUTTON_ARCADEP_FIRESECONDARY 0x22004406 /* Alternative fire button */ +#define DIBUTTON_ARCADEP_LEFT_LINK 0x2200C4E4 /* Fallback sidestep left button */ +#define DIBUTTON_ARCADEP_RIGHT_LINK 0x2200C4EC /* Fallback sidestep right button */ +#define DIBUTTON_ARCADEP_FORWARD_LINK 0x220144E0 /* Fallback move forward button */ +#define DIBUTTON_ARCADEP_BACK_LINK 0x220144E8 /* Fallback move back button */ +#define DIBUTTON_ARCADEP_VIEW_UP_LINK 0x2207C4E0 /* Fallback scroll view up button */ +#define DIBUTTON_ARCADEP_VIEW_DOWN_LINK 0x2207C4E8 /* Fallback scroll view down button */ +#define DIBUTTON_ARCADEP_VIEW_LEFT_LINK 0x2207C4E4 /* Fallback scroll view left button */ +#define DIBUTTON_ARCADEP_VIEW_RIGHT_LINK 0x2207C4EC /* Fallback scroll view right button */ +#define DIBUTTON_ARCADEP_DEVICE 0x220044FE /* Show input device and controls */ +#define DIBUTTON_ARCADEP_PAUSE 0x220044FC /* Start / Pause / Restart game */ + +/*--- CAD - 2D Object Control + Controls to select and move objects in 2D ---*/ +#define DIVIRTUAL_CAD_2DCONTROL 0x23000000 +#define DIAXIS_2DCONTROL_LATERAL 0x23008201 /* Move view left / right */ +#define DIAXIS_2DCONTROL_MOVE 0x23010202 /* Move view up / down */ +#define DIAXIS_2DCONTROL_INOUT 0x23018203 /* Zoom - in / out */ +#define DIBUTTON_2DCONTROL_SELECT 0x23000401 /* Select Object */ +#define DIBUTTON_2DCONTROL_SPECIAL1 0x23000402 /* Do first special operation */ +#define DIBUTTON_2DCONTROL_SPECIAL 0x23000403 /* Select special operation */ +#define DIBUTTON_2DCONTROL_SPECIAL2 0x23000404 /* Do second special operation */ +#define DIBUTTON_2DCONTROL_MENU 0x230004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_2DCONTROL_HATSWITCH 0x23004601 /* Hat switch */ +#define DIAXIS_2DCONTROL_ROTATEZ 0x23024204 /* Rotate view clockwise / counterclockwise */ +#define DIBUTTON_2DCONTROL_DISPLAY 0x23004405 /* Shows next on-screen display options */ +#define DIBUTTON_2DCONTROL_DEVICE 0x230044FE /* Show input device and controls */ +#define DIBUTTON_2DCONTROL_PAUSE 0x230044FC /* Start / Pause / Restart game */ + +/*--- CAD - 3D object control + Controls to select and move objects within a 3D environment ---*/ +#define DIVIRTUAL_CAD_3DCONTROL 0x24000000 +#define DIAXIS_3DCONTROL_LATERAL 0x24008201 /* Move view left / right */ +#define DIAXIS_3DCONTROL_MOVE 0x24010202 /* Move view up / down */ +#define DIAXIS_3DCONTROL_INOUT 0x24018203 /* Zoom - in / out */ +#define DIBUTTON_3DCONTROL_SELECT 0x24000401 /* Select Object */ +#define DIBUTTON_3DCONTROL_SPECIAL1 0x24000402 /* Do first special operation */ +#define DIBUTTON_3DCONTROL_SPECIAL 0x24000403 /* Select special operation */ +#define DIBUTTON_3DCONTROL_SPECIAL2 0x24000404 /* Do second special operation */ +#define DIBUTTON_3DCONTROL_MENU 0x240004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_3DCONTROL_HATSWITCH 0x24004601 /* Hat switch */ +#define DIAXIS_3DCONTROL_ROTATEX 0x24034204 /* Rotate view forward or up / backward or down */ +#define DIAXIS_3DCONTROL_ROTATEY 0x2402C205 /* Rotate view clockwise / counterclockwise */ +#define DIAXIS_3DCONTROL_ROTATEZ 0x24024206 /* Rotate view left / right */ +#define DIBUTTON_3DCONTROL_DISPLAY 0x24004405 /* Show next on-screen display options */ +#define DIBUTTON_3DCONTROL_DEVICE 0x240044FE /* Show input device and controls */ +#define DIBUTTON_3DCONTROL_PAUSE 0x240044FC /* Start / Pause / Restart game */ + +/*--- CAD - 3D Navigation - Fly through + Controls for 3D modeling ---*/ +#define DIVIRTUAL_CAD_FLYBY 0x25000000 +#define DIAXIS_CADF_LATERAL 0x25008201 /* move view left / right */ +#define DIAXIS_CADF_MOVE 0x25010202 /* move view up / down */ +#define DIAXIS_CADF_INOUT 0x25018203 /* in / out */ +#define DIBUTTON_CADF_SELECT 0x25000401 /* Select Object */ +#define DIBUTTON_CADF_SPECIAL1 0x25000402 /* do first special operation */ +#define DIBUTTON_CADF_SPECIAL 0x25000403 /* Select special operation */ +#define DIBUTTON_CADF_SPECIAL2 0x25000404 /* do second special operation */ +#define DIBUTTON_CADF_MENU 0x250004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_CADF_HATSWITCH 0x25004601 /* Hat switch */ +#define DIAXIS_CADF_ROTATEX 0x25034204 /* Rotate view forward or up / backward or down */ +#define DIAXIS_CADF_ROTATEY 0x2502C205 /* Rotate view clockwise / counterclockwise */ +#define DIAXIS_CADF_ROTATEZ 0x25024206 /* Rotate view left / right */ +#define DIBUTTON_CADF_DISPLAY 0x25004405 /* shows next on-screen display options */ +#define DIBUTTON_CADF_DEVICE 0x250044FE /* Show input device and controls */ +#define DIBUTTON_CADF_PAUSE 0x250044FC /* Start / Pause / Restart game */ + +/*--- CAD - 3D Model Control + Controls for 3D modeling ---*/ +#define DIVIRTUAL_CAD_MODEL 0x26000000 +#define DIAXIS_CADM_LATERAL 0x26008201 /* move view left / right */ +#define DIAXIS_CADM_MOVE 0x26010202 /* move view up / down */ +#define DIAXIS_CADM_INOUT 0x26018203 /* in / out */ +#define DIBUTTON_CADM_SELECT 0x26000401 /* Select Object */ +#define DIBUTTON_CADM_SPECIAL1 0x26000402 /* do first special operation */ +#define DIBUTTON_CADM_SPECIAL 0x26000403 /* Select special operation */ +#define DIBUTTON_CADM_SPECIAL2 0x26000404 /* do second special operation */ +#define DIBUTTON_CADM_MENU 0x260004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIHATSWITCH_CADM_HATSWITCH 0x26004601 /* Hat switch */ +#define DIAXIS_CADM_ROTATEX 0x26034204 /* Rotate view forward or up / backward or down */ +#define DIAXIS_CADM_ROTATEY 0x2602C205 /* Rotate view clockwise / counterclockwise */ +#define DIAXIS_CADM_ROTATEZ 0x26024206 /* Rotate view left / right */ +#define DIBUTTON_CADM_DISPLAY 0x26004405 /* shows next on-screen display options */ +#define DIBUTTON_CADM_DEVICE 0x260044FE /* Show input device and controls */ +#define DIBUTTON_CADM_PAUSE 0x260044FC /* Start / Pause / Restart game */ + +/*--- Control - Media Equipment + Remote ---*/ +#define DIVIRTUAL_REMOTE_CONTROL 0x27000000 +#define DIAXIS_REMOTE_SLIDER 0x27050201 /* Slider for adjustment: volume / color / bass / etc */ +#define DIBUTTON_REMOTE_MUTE 0x27000401 /* Set volume on current device to zero */ +#define DIBUTTON_REMOTE_SELECT 0x27000402 /* Next/previous: channel/ track / chapter / picture / station */ +#define DIBUTTON_REMOTE_PLAY 0x27002403 /* Start or pause entertainment on current device */ +#define DIBUTTON_REMOTE_CUE 0x27002404 /* Move through current media */ +#define DIBUTTON_REMOTE_REVIEW 0x27002405 /* Move through current media */ +#define DIBUTTON_REMOTE_CHANGE 0x27002406 /* Select next device */ +#define DIBUTTON_REMOTE_RECORD 0x27002407 /* Start recording the current media */ +#define DIBUTTON_REMOTE_MENU 0x270004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIAXIS_REMOTE_SLIDER2 0x27054202 /* Slider for adjustment: volume */ +#define DIBUTTON_REMOTE_TV 0x27005C08 /* Select TV */ +#define DIBUTTON_REMOTE_CABLE 0x27005C09 /* Select cable box */ +#define DIBUTTON_REMOTE_CD 0x27005C0A /* Select CD player */ +#define DIBUTTON_REMOTE_VCR 0x27005C0B /* Select VCR */ +#define DIBUTTON_REMOTE_TUNER 0x27005C0C /* Select tuner */ +#define DIBUTTON_REMOTE_DVD 0x27005C0D /* Select DVD player */ +#define DIBUTTON_REMOTE_ADJUST 0x27005C0E /* Enter device adjustment menu */ +#define DIBUTTON_REMOTE_DIGIT0 0x2700540F /* Digit 0 */ +#define DIBUTTON_REMOTE_DIGIT1 0x27005410 /* Digit 1 */ +#define DIBUTTON_REMOTE_DIGIT2 0x27005411 /* Digit 2 */ +#define DIBUTTON_REMOTE_DIGIT3 0x27005412 /* Digit 3 */ +#define DIBUTTON_REMOTE_DIGIT4 0x27005413 /* Digit 4 */ +#define DIBUTTON_REMOTE_DIGIT5 0x27005414 /* Digit 5 */ +#define DIBUTTON_REMOTE_DIGIT6 0x27005415 /* Digit 6 */ +#define DIBUTTON_REMOTE_DIGIT7 0x27005416 /* Digit 7 */ +#define DIBUTTON_REMOTE_DIGIT8 0x27005417 /* Digit 8 */ +#define DIBUTTON_REMOTE_DIGIT9 0x27005418 /* Digit 9 */ +#define DIBUTTON_REMOTE_DEVICE 0x270044FE /* Show input device and controls */ +#define DIBUTTON_REMOTE_PAUSE 0x270044FC /* Start / Pause / Restart game */ + +/*--- Control- Web + Help or Browser ---*/ +#define DIVIRTUAL_BROWSER_CONTROL 0x28000000 +#define DIAXIS_BROWSER_LATERAL 0x28008201 /* Move on screen pointer */ +#define DIAXIS_BROWSER_MOVE 0x28010202 /* Move on screen pointer */ +#define DIBUTTON_BROWSER_SELECT 0x28000401 /* Select current item */ +#define DIAXIS_BROWSER_VIEW 0x28018203 /* Move view up/down */ +#define DIBUTTON_BROWSER_REFRESH 0x28000402 /* Refresh */ +#define DIBUTTON_BROWSER_MENU 0x280004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_BROWSER_SEARCH 0x28004403 /* Use search tool */ +#define DIBUTTON_BROWSER_STOP 0x28004404 /* Cease current update */ +#define DIBUTTON_BROWSER_HOME 0x28004405 /* Go directly to "home" location */ +#define DIBUTTON_BROWSER_FAVORITES 0x28004406 /* Mark current site as favorite */ +#define DIBUTTON_BROWSER_NEXT 0x28004407 /* Select Next page */ +#define DIBUTTON_BROWSER_PREVIOUS 0x28004408 /* Select Previous page */ +#define DIBUTTON_BROWSER_HISTORY 0x28004409 /* Show/Hide History */ +#define DIBUTTON_BROWSER_PRINT 0x2800440A /* Print current page */ +#define DIBUTTON_BROWSER_DEVICE 0x280044FE /* Show input device and controls */ +#define DIBUTTON_BROWSER_PAUSE 0x280044FC /* Start / Pause / Restart game */ + +/*--- Driving Simulator - Giant Walking Robot + Walking tank with weapons ---*/ +#define DIVIRTUAL_DRIVING_MECHA 0x29000000 +#define DIAXIS_MECHA_STEER 0x29008201 /* Turns mecha left/right */ +#define DIAXIS_MECHA_TORSO 0x29010202 /* Tilts torso forward/backward */ +#define DIAXIS_MECHA_ROTATE 0x29020203 /* Turns torso left/right */ +#define DIAXIS_MECHA_THROTTLE 0x29038204 /* Engine Speed */ +#define DIBUTTON_MECHA_FIRE 0x29000401 /* Fire */ +#define DIBUTTON_MECHA_WEAPONS 0x29000402 /* Select next weapon group */ +#define DIBUTTON_MECHA_TARGET 0x29000403 /* Select closest enemy available target */ +#define DIBUTTON_MECHA_REVERSE 0x29000404 /* Toggles throttle in/out of reverse */ +#define DIBUTTON_MECHA_ZOOM 0x29000405 /* Zoom in/out targeting reticule */ +#define DIBUTTON_MECHA_JUMP 0x29000406 /* Fires jump jets */ +#define DIBUTTON_MECHA_MENU 0x290004FD /* Show menu options */ +/*--- Priority 2 controls ---*/ + +#define DIBUTTON_MECHA_CENTER 0x29004407 /* Center torso to legs */ +#define DIHATSWITCH_MECHA_GLANCE 0x29004601 /* Look around */ +#define DIBUTTON_MECHA_VIEW 0x29004408 /* Cycle through view options */ +#define DIBUTTON_MECHA_FIRESECONDARY 0x29004409 /* Alternative fire button */ +#define DIBUTTON_MECHA_LEFT_LINK 0x2900C4E4 /* Fallback steer left button */ +#define DIBUTTON_MECHA_RIGHT_LINK 0x2900C4EC /* Fallback steer right button */ +#define DIBUTTON_MECHA_FORWARD_LINK 0x290144E0 /* Fallback tilt torso forward button */ +#define DIBUTTON_MECHA_BACK_LINK 0x290144E8 /* Fallback tilt toroso backward button */ +#define DIBUTTON_MECHA_ROTATE_LEFT_LINK 0x290244E4 /* Fallback rotate toroso right button */ +#define DIBUTTON_MECHA_ROTATE_RIGHT_LINK 0x290244EC /* Fallback rotate torso left button */ +#define DIBUTTON_MECHA_FASTER_LINK 0x2903C4E0 /* Fallback increase engine speed */ +#define DIBUTTON_MECHA_SLOWER_LINK 0x2903C4E8 /* Fallback decrease engine speed */ +#define DIBUTTON_MECHA_DEVICE 0x290044FE /* Show input device and controls */ +#define DIBUTTON_MECHA_PAUSE 0x290044FC /* Start / Pause / Restart game */ + +/* + * "ANY" semantics can be used as a last resort to get mappings for actions + * that match nothing in the chosen virtual genre. These semantics will be + * mapped at a lower priority that virtual genre semantics. Also, hardware + * vendors will not be able to provide sensible mappings for these unless + * they provide application specific mappings. + */ +#define DIAXIS_ANY_X_1 0xFF00C201 +#define DIAXIS_ANY_X_2 0xFF00C202 +#define DIAXIS_ANY_Y_1 0xFF014201 +#define DIAXIS_ANY_Y_2 0xFF014202 +#define DIAXIS_ANY_Z_1 0xFF01C201 +#define DIAXIS_ANY_Z_2 0xFF01C202 +#define DIAXIS_ANY_R_1 0xFF024201 +#define DIAXIS_ANY_R_2 0xFF024202 +#define DIAXIS_ANY_U_1 0xFF02C201 +#define DIAXIS_ANY_U_2 0xFF02C202 +#define DIAXIS_ANY_V_1 0xFF034201 +#define DIAXIS_ANY_V_2 0xFF034202 +#define DIAXIS_ANY_A_1 0xFF03C201 +#define DIAXIS_ANY_A_2 0xFF03C202 +#define DIAXIS_ANY_B_1 0xFF044201 +#define DIAXIS_ANY_B_2 0xFF044202 +#define DIAXIS_ANY_C_1 0xFF04C201 +#define DIAXIS_ANY_C_2 0xFF04C202 +#define DIAXIS_ANY_S_1 0xFF054201 +#define DIAXIS_ANY_S_2 0xFF054202 + +#define DIAXIS_ANY_1 0xFF004201 +#define DIAXIS_ANY_2 0xFF004202 +#define DIAXIS_ANY_3 0xFF004203 +#define DIAXIS_ANY_4 0xFF004204 + +#define DIPOV_ANY_1 0xFF004601 +#define DIPOV_ANY_2 0xFF004602 +#define DIPOV_ANY_3 0xFF004603 +#define DIPOV_ANY_4 0xFF004604 + +#define DIBUTTON_ANY(instance) ( 0xFF004400 | instance ) + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +}; +#endif + +#endif /* __DINPUT_INCLUDED__ */ + +/**************************************************************************** + * + * Definitions for non-IDirectInput (VJoyD) features defined more recently + * than the current sdk files + * + ****************************************************************************/ + +#ifdef _INC_MMSYSTEM +#ifndef MMNOJOY + +#ifndef __VJOYDX_INCLUDED__ +#define __VJOYDX_INCLUDED__ + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/* + * Flag to indicate that the dwReserved2 field of the JOYINFOEX structure + * contains mini-driver specific data to be passed by VJoyD to the mini- + * driver instead of doing a poll. + */ +#define JOY_PASSDRIVERDATA 0x10000000l + +/* + * Informs the joystick driver that the configuration has been changed + * and should be reloaded from the registery. + * dwFlags is reserved and should be set to zero + */ +WINMMAPI MMRESULT WINAPI joyConfigChanged( DWORD dwFlags ); + +#ifndef DIJ_RINGZERO +/* + * Invoke the joystick control panel directly, using the passed window handle + * as the parent of the dialog. This API is only supported for compatibility + * purposes; new applications should use the RunControlPanel method of a + * device interface for a game controller. + * The API is called by using the function pointer returned by + * GetProcAddress( hCPL, TEXT("ShowJoyCPL") ) where hCPL is a HMODULE returned + * by LoadLibrary( TEXT("joy.cpl") ). The typedef is provided to allow + * declaration and casting of an appropriately typed variable. + */ +void WINAPI ShowJoyCPL( HWND hWnd ); +typedef void (WINAPI* LPFNSHOWJOYCPL)( HWND hWnd ); +#endif + +/* + * Hardware Setting indicating that the device is a headtracker + */ +#define JOY_HWS_ISHEADTRACKER 0x02000000l + +/* + * Hardware Setting indicating that the VxD is used to replace + * the standard analog polling + */ +#define JOY_HWS_ISGAMEPORTDRIVER 0x04000000l + +/* + * Hardware Setting indicating that the driver needs a standard + * gameport in order to communicate with the device. + */ +#define JOY_HWS_ISANALOGPORTDRIVER 0x08000000l + +/* + * Hardware Setting indicating that VJoyD should not load this + * driver, it will be loaded externally and will register with + * VJoyD of it's own accord. + */ +#define JOY_HWS_AUTOLOAD 0x10000000l + +/* + * Hardware Setting indicating that the driver acquires any + * resources needed without needing a devnode through VJoyD. + */ +#define JOY_HWS_NODEVNODE 0x20000000l + + +/* + * Hardware Setting indicating that the device is a gameport bus + */ +#define JOY_HWS_ISGAMEPORTBUS 0x80000000l +#define JOY_HWS_GAMEPORTBUSBUSY 0x00000001l + +/* + * Usage Setting indicating that the settings are volatile and + * should be removed if still present on a reboot. + */ +#define JOY_US_VOLATILE 0x00000008L + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +}; +#endif + +#endif /* __VJOYDX_INCLUDED__ */ + +#endif /* not MMNOJOY */ +#endif /* _INC_MMSYSTEM */ + +/**************************************************************************** + * + * Definitions for non-IDirectInput (VJoyD) features defined more recently + * than the current ddk files + * + ****************************************************************************/ + +#ifndef DIJ_RINGZERO + +#ifdef _INC_MMDDK +#ifndef MMNOJOYDEV + +#ifndef __VJOYDXD_INCLUDED__ +#define __VJOYDXD_INCLUDED__ +/* + * Poll type in which the do_other field of the JOYOEMPOLLDATA + * structure contains mini-driver specific data passed from an app. + */ +#define JOY_OEMPOLL_PASSDRIVERDATA 7 + +#endif /* __VJOYDXD_INCLUDED__ */ + +#endif /* not MMNOJOYDEV */ +#endif /* _INC_MMDDK */ + +#endif /* DIJ_RINGZERO */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/directmanipulation.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/directmanipulation.h new file mode 100644 index 0000000000000000000000000000000000000000..9ceac790815b5bbf85583d7e459b5caf275f90bd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/directmanipulation.h @@ -0,0 +1,3695 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __directmanipulation_h__ +#define __directmanipulation_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDirectManipulationManager_FWD_DEFINED__ +#define __IDirectManipulationManager_FWD_DEFINED__ +typedef interface IDirectManipulationManager IDirectManipulationManager; + +#endif /* __IDirectManipulationManager_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationManager2_FWD_DEFINED__ +#define __IDirectManipulationManager2_FWD_DEFINED__ +typedef interface IDirectManipulationManager2 IDirectManipulationManager2; + +#endif /* __IDirectManipulationManager2_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationManager3_FWD_DEFINED__ +#define __IDirectManipulationManager3_FWD_DEFINED__ +typedef interface IDirectManipulationManager3 IDirectManipulationManager3; + +#endif /* __IDirectManipulationManager3_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationViewport_FWD_DEFINED__ +#define __IDirectManipulationViewport_FWD_DEFINED__ +typedef interface IDirectManipulationViewport IDirectManipulationViewport; + +#endif /* __IDirectManipulationViewport_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationViewport2_FWD_DEFINED__ +#define __IDirectManipulationViewport2_FWD_DEFINED__ +typedef interface IDirectManipulationViewport2 IDirectManipulationViewport2; + +#endif /* __IDirectManipulationViewport2_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationViewportEventHandler_FWD_DEFINED__ +#define __IDirectManipulationViewportEventHandler_FWD_DEFINED__ +typedef interface IDirectManipulationViewportEventHandler IDirectManipulationViewportEventHandler; + +#endif /* __IDirectManipulationViewportEventHandler_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationContent_FWD_DEFINED__ +#define __IDirectManipulationContent_FWD_DEFINED__ +typedef interface IDirectManipulationContent IDirectManipulationContent; + +#endif /* __IDirectManipulationContent_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationPrimaryContent_FWD_DEFINED__ +#define __IDirectManipulationPrimaryContent_FWD_DEFINED__ +typedef interface IDirectManipulationPrimaryContent IDirectManipulationPrimaryContent; + +#endif /* __IDirectManipulationPrimaryContent_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationDragDropEventHandler_FWD_DEFINED__ +#define __IDirectManipulationDragDropEventHandler_FWD_DEFINED__ +typedef interface IDirectManipulationDragDropEventHandler IDirectManipulationDragDropEventHandler; + +#endif /* __IDirectManipulationDragDropEventHandler_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationDragDropBehavior_FWD_DEFINED__ +#define __IDirectManipulationDragDropBehavior_FWD_DEFINED__ +typedef interface IDirectManipulationDragDropBehavior IDirectManipulationDragDropBehavior; + +#endif /* __IDirectManipulationDragDropBehavior_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationInteractionEventHandler_FWD_DEFINED__ +#define __IDirectManipulationInteractionEventHandler_FWD_DEFINED__ +typedef interface IDirectManipulationInteractionEventHandler IDirectManipulationInteractionEventHandler; + +#endif /* __IDirectManipulationInteractionEventHandler_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationFrameInfoProvider_FWD_DEFINED__ +#define __IDirectManipulationFrameInfoProvider_FWD_DEFINED__ +typedef interface IDirectManipulationFrameInfoProvider IDirectManipulationFrameInfoProvider; + +#endif /* __IDirectManipulationFrameInfoProvider_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationCompositor_FWD_DEFINED__ +#define __IDirectManipulationCompositor_FWD_DEFINED__ +typedef interface IDirectManipulationCompositor IDirectManipulationCompositor; + +#endif /* __IDirectManipulationCompositor_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationCompositor2_FWD_DEFINED__ +#define __IDirectManipulationCompositor2_FWD_DEFINED__ +typedef interface IDirectManipulationCompositor2 IDirectManipulationCompositor2; + +#endif /* __IDirectManipulationCompositor2_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationUpdateHandler_FWD_DEFINED__ +#define __IDirectManipulationUpdateHandler_FWD_DEFINED__ +typedef interface IDirectManipulationUpdateHandler IDirectManipulationUpdateHandler; + +#endif /* __IDirectManipulationUpdateHandler_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationUpdateManager_FWD_DEFINED__ +#define __IDirectManipulationUpdateManager_FWD_DEFINED__ +typedef interface IDirectManipulationUpdateManager IDirectManipulationUpdateManager; + +#endif /* __IDirectManipulationUpdateManager_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationAutoScrollBehavior_FWD_DEFINED__ +#define __IDirectManipulationAutoScrollBehavior_FWD_DEFINED__ +typedef interface IDirectManipulationAutoScrollBehavior IDirectManipulationAutoScrollBehavior; + +#endif /* __IDirectManipulationAutoScrollBehavior_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationDeferContactService_FWD_DEFINED__ +#define __IDirectManipulationDeferContactService_FWD_DEFINED__ +typedef interface IDirectManipulationDeferContactService IDirectManipulationDeferContactService; + +#endif /* __IDirectManipulationDeferContactService_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationSnapPointsInertiaBehavior_FWD_DEFINED__ +#define __IDirectManipulationSnapPointsInertiaBehavior_FWD_DEFINED__ +typedef interface IDirectManipulationSnapPointsInertiaBehavior IDirectManipulationSnapPointsInertiaBehavior; + +#endif /* __IDirectManipulationSnapPointsInertiaBehavior_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationContent2_FWD_DEFINED__ +#define __IDirectManipulationContent2_FWD_DEFINED__ +typedef interface IDirectManipulationContent2 IDirectManipulationContent2; + +#endif /* __IDirectManipulationContent2_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationViewport3_FWD_DEFINED__ +#define __IDirectManipulationViewport3_FWD_DEFINED__ +typedef interface IDirectManipulationViewport3 IDirectManipulationViewport3; + +#endif /* __IDirectManipulationViewport3_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationPrimaryContent2_FWD_DEFINED__ +#define __IDirectManipulationPrimaryContent2_FWD_DEFINED__ +typedef interface IDirectManipulationPrimaryContent2 IDirectManipulationPrimaryContent2; + +#endif /* __IDirectManipulationPrimaryContent2_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationParametricMotionBehavior_FWD_DEFINED__ +#define __IDirectManipulationParametricMotionBehavior_FWD_DEFINED__ +typedef interface IDirectManipulationParametricMotionBehavior IDirectManipulationParametricMotionBehavior; + +#endif /* __IDirectManipulationParametricMotionBehavior_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationParametricMotionCurve_FWD_DEFINED__ +#define __IDirectManipulationParametricMotionCurve_FWD_DEFINED__ +typedef interface IDirectManipulationParametricMotionCurve IDirectManipulationParametricMotionCurve; + +#endif /* __IDirectManipulationParametricMotionCurve_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationParametricRestPointList_FWD_DEFINED__ +#define __IDirectManipulationParametricRestPointList_FWD_DEFINED__ +typedef interface IDirectManipulationParametricRestPointList IDirectManipulationParametricRestPointList; + +#endif /* __IDirectManipulationParametricRestPointList_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationParametricRestPointBehavior_FWD_DEFINED__ +#define __IDirectManipulationParametricRestPointBehavior_FWD_DEFINED__ +typedef interface IDirectManipulationParametricRestPointBehavior IDirectManipulationParametricRestPointBehavior; + +#endif /* __IDirectManipulationParametricRestPointBehavior_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationCompositorPartner_FWD_DEFINED__ +#define __IDirectManipulationCompositorPartner_FWD_DEFINED__ +typedef interface IDirectManipulationCompositorPartner IDirectManipulationCompositorPartner; + +#endif /* __IDirectManipulationCompositorPartner_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationManagerPartner_FWD_DEFINED__ +#define __IDirectManipulationManagerPartner_FWD_DEFINED__ +typedef interface IDirectManipulationManagerPartner IDirectManipulationManagerPartner; + +#endif /* __IDirectManipulationManagerPartner_FWD_DEFINED__ */ + + +#ifndef __IDirectManipulationViewportPartner_FWD_DEFINED__ +#define __IDirectManipulationViewportPartner_FWD_DEFINED__ +typedef interface IDirectManipulationViewportPartner IDirectManipulationViewportPartner; + +#endif /* __IDirectManipulationViewportPartner_FWD_DEFINED__ */ + + +#ifndef __DirectManipulationViewport_FWD_DEFINED__ +#define __DirectManipulationViewport_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DirectManipulationViewport DirectManipulationViewport; +#else +typedef struct DirectManipulationViewport DirectManipulationViewport; +#endif /* __cplusplus */ + +#endif /* __DirectManipulationViewport_FWD_DEFINED__ */ + + +#ifndef __DirectManipulationUpdateManager_FWD_DEFINED__ +#define __DirectManipulationUpdateManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DirectManipulationUpdateManager DirectManipulationUpdateManager; +#else +typedef struct DirectManipulationUpdateManager DirectManipulationUpdateManager; +#endif /* __cplusplus */ + +#endif /* __DirectManipulationUpdateManager_FWD_DEFINED__ */ + + +#ifndef __DirectManipulationPrimaryContent_FWD_DEFINED__ +#define __DirectManipulationPrimaryContent_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DirectManipulationPrimaryContent DirectManipulationPrimaryContent; +#else +typedef struct DirectManipulationPrimaryContent DirectManipulationPrimaryContent; +#endif /* __cplusplus */ + +#endif /* __DirectManipulationPrimaryContent_FWD_DEFINED__ */ + + +#ifndef __DirectManipulationManager_FWD_DEFINED__ +#define __DirectManipulationManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DirectManipulationManager DirectManipulationManager; +#else +typedef struct DirectManipulationManager DirectManipulationManager; +#endif /* __cplusplus */ + +#endif /* __DirectManipulationManager_FWD_DEFINED__ */ + + +#ifndef __DirectManipulationSharedManager_FWD_DEFINED__ +#define __DirectManipulationSharedManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DirectManipulationSharedManager DirectManipulationSharedManager; +#else +typedef struct DirectManipulationSharedManager DirectManipulationSharedManager; +#endif /* __cplusplus */ + +#endif /* __DirectManipulationSharedManager_FWD_DEFINED__ */ + + +#ifndef __DCompManipulationCompositor_FWD_DEFINED__ +#define __DCompManipulationCompositor_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DCompManipulationCompositor DCompManipulationCompositor; +#else +typedef struct DCompManipulationCompositor DCompManipulationCompositor; +#endif /* __cplusplus */ + +#endif /* __DCompManipulationCompositor_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_directmanipulation_0000_0000 */ +/* [local] */ + +//-------------------------------------------------------------------------- +// +// directmanipulation.h +// +// Direct Manipulation interface definitions and related types and enums +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if (NTDDI_VERSION >= NTDDI_WIN8) +#if 0 +typedef void *HWND; + +#endif + + + + + + + +typedef +enum DIRECTMANIPULATION_STATUS + { + DIRECTMANIPULATION_BUILDING = 0, + DIRECTMANIPULATION_ENABLED = 1, + DIRECTMANIPULATION_DISABLED = 2, + DIRECTMANIPULATION_RUNNING = 3, + DIRECTMANIPULATION_INERTIA = 4, + DIRECTMANIPULATION_READY = 5, + DIRECTMANIPULATION_SUSPENDED = 6 + } DIRECTMANIPULATION_STATUS; + +typedef +enum DIRECTMANIPULATION_HITTEST_TYPE + { + DIRECTMANIPULATION_HITTEST_TYPE_ASYNCHRONOUS = 0, + DIRECTMANIPULATION_HITTEST_TYPE_SYNCHRONOUS = 0x1, + DIRECTMANIPULATION_HITTEST_TYPE_AUTO_SYNCHRONOUS = 0x2 + } DIRECTMANIPULATION_HITTEST_TYPE; + +DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_HITTEST_TYPE) +typedef +enum DIRECTMANIPULATION_CONFIGURATION + { + DIRECTMANIPULATION_CONFIGURATION_NONE = 0, + DIRECTMANIPULATION_CONFIGURATION_INTERACTION = 0x1, + DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_X = 0x2, + DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_Y = 0x4, + DIRECTMANIPULATION_CONFIGURATION_SCALING = 0x10, + DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_INERTIA = 0x20, + DIRECTMANIPULATION_CONFIGURATION_SCALING_INERTIA = 0x80, + DIRECTMANIPULATION_CONFIGURATION_RAILS_X = 0x100, + DIRECTMANIPULATION_CONFIGURATION_RAILS_Y = 0x200 + } DIRECTMANIPULATION_CONFIGURATION; + +DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_CONFIGURATION) +typedef +enum DIRECTMANIPULATION_GESTURE_CONFIGURATION + { + DIRECTMANIPULATION_GESTURE_NONE = 0, + DIRECTMANIPULATION_GESTURE_DEFAULT = 0, + DIRECTMANIPULATION_GESTURE_CROSS_SLIDE_VERTICAL = 0x8, + DIRECTMANIPULATION_GESTURE_CROSS_SLIDE_HORIZONTAL = 0x10, + DIRECTMANIPULATION_GESTURE_PINCH_ZOOM = 0x20 + } DIRECTMANIPULATION_GESTURE_CONFIGURATION; + +DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_GESTURE_CONFIGURATION) +typedef +enum DIRECTMANIPULATION_MOTION_TYPES + { + DIRECTMANIPULATION_MOTION_NONE = 0, + DIRECTMANIPULATION_MOTION_TRANSLATEX = 0x1, + DIRECTMANIPULATION_MOTION_TRANSLATEY = 0x2, + DIRECTMANIPULATION_MOTION_ZOOM = 0x4, + DIRECTMANIPULATION_MOTION_CENTERX = 0x10, + DIRECTMANIPULATION_MOTION_CENTERY = 0x20, + DIRECTMANIPULATION_MOTION_ALL = ( ( ( ( DIRECTMANIPULATION_MOTION_TRANSLATEX | DIRECTMANIPULATION_MOTION_TRANSLATEY ) | DIRECTMANIPULATION_MOTION_ZOOM ) | DIRECTMANIPULATION_MOTION_CENTERX ) | DIRECTMANIPULATION_MOTION_CENTERY ) + } DIRECTMANIPULATION_MOTION_TYPES; + +DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_MOTION_TYPES) +typedef +enum DIRECTMANIPULATION_VIEWPORT_OPTIONS + { + DIRECTMANIPULATION_VIEWPORT_OPTIONS_DEFAULT = 0, + DIRECTMANIPULATION_VIEWPORT_OPTIONS_AUTODISABLE = 0x1, + DIRECTMANIPULATION_VIEWPORT_OPTIONS_MANUALUPDATE = 0x2, + DIRECTMANIPULATION_VIEWPORT_OPTIONS_INPUT = 0x4, + DIRECTMANIPULATION_VIEWPORT_OPTIONS_EXPLICITHITTEST = 0x8, + DIRECTMANIPULATION_VIEWPORT_OPTIONS_DISABLEPIXELSNAPPING = 0x10 + } DIRECTMANIPULATION_VIEWPORT_OPTIONS; + +DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_VIEWPORT_OPTIONS) +typedef +enum DIRECTMANIPULATION_SNAPPOINT_TYPE + { + DIRECTMANIPULATION_SNAPPOINT_MANDATORY = 0, + DIRECTMANIPULATION_SNAPPOINT_OPTIONAL = 1, + DIRECTMANIPULATION_SNAPPOINT_MANDATORY_SINGLE = 2, + DIRECTMANIPULATION_SNAPPOINT_OPTIONAL_SINGLE = 3 + } DIRECTMANIPULATION_SNAPPOINT_TYPE; + +typedef +enum DIRECTMANIPULATION_SNAPPOINT_COORDINATE + { + DIRECTMANIPULATION_COORDINATE_BOUNDARY = 0, + DIRECTMANIPULATION_COORDINATE_ORIGIN = 0x1, + DIRECTMANIPULATION_COORDINATE_MIRRORED = 0x10 + } DIRECTMANIPULATION_SNAPPOINT_COORDINATE; + +DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_SNAPPOINT_COORDINATE) +typedef +enum DIRECTMANIPULATION_HORIZONTALALIGNMENT + { + DIRECTMANIPULATION_HORIZONTALALIGNMENT_NONE = 0, + DIRECTMANIPULATION_HORIZONTALALIGNMENT_LEFT = 0x1, + DIRECTMANIPULATION_HORIZONTALALIGNMENT_CENTER = 0x2, + DIRECTMANIPULATION_HORIZONTALALIGNMENT_RIGHT = 0x4, + DIRECTMANIPULATION_HORIZONTALALIGNMENT_UNLOCKCENTER = 0x8 + } DIRECTMANIPULATION_HORIZONTALALIGNMENT; + +DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_HORIZONTALALIGNMENT) +typedef +enum DIRECTMANIPULATION_VERTICALALIGNMENT + { + DIRECTMANIPULATION_VERTICALALIGNMENT_NONE = 0, + DIRECTMANIPULATION_VERTICALALIGNMENT_TOP = 0x1, + DIRECTMANIPULATION_VERTICALALIGNMENT_CENTER = 0x2, + DIRECTMANIPULATION_VERTICALALIGNMENT_BOTTOM = 0x4, + DIRECTMANIPULATION_VERTICALALIGNMENT_UNLOCKCENTER = 0x8 + } DIRECTMANIPULATION_VERTICALALIGNMENT; + +DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_VERTICALALIGNMENT) +typedef +enum DIRECTMANIPULATION_INPUT_MODE + { + DIRECTMANIPULATION_INPUT_MODE_AUTOMATIC = 0, + DIRECTMANIPULATION_INPUT_MODE_MANUAL = 1 + } DIRECTMANIPULATION_INPUT_MODE; + +#define DIRECTMANIPULATION_KEYBOARDFOCUS ( 0xfffffffe ) + +#define DIRECTMANIPULATION_MOUSEFOCUS ( 0xfffffffd ) + +#define DIRECTMANIPULATION_MINIMUM_ZOOM ( ( float )0.1 ) + +DEFINE_GUID(CLSID_VerticalIndicatorContent, 0xa10b5f17, 0xafe0, 0x4aa2, 0x91, 0xe9, 0x3e, 0x70, 0x1, 0xd2, 0xe6, 0xb4); +DEFINE_GUID(CLSID_HorizontalIndicatorContent, 0xe7d18cf5, 0x3ec7, 0x44d5, 0xa7, 0x6b, 0x37, 0x70, 0xf3, 0xcf, 0x90, 0x3d); +DEFINE_GUID(CLSID_VirtualViewportContent, 0x3206a19a, 0x86f0, 0x4cb4, 0xa7, 0xf3, 0x16, 0xe3, 0xb7, 0xe2, 0xd8, 0x52); +DEFINE_GUID(CLSID_DragDropConfigurationBehavior, 0x09b01b3e, 0xba6c, 0x454d, 0x82, 0xe8, 0x95, 0xe3, 0x52, 0x32, 0x9f, 0x23); +DEFINE_GUID(CLSID_AutoScrollBehavior, 0x26126a51, 0x3c70, 0x4c9a, 0xae, 0xc2, 0x94, 0x88, 0x49, 0xee, 0xb0, 0x93); +DEFINE_GUID(CLSID_DeferContactService, 0xd7b67cf4, 0x84bb, 0x434e, 0x86, 0xae, 0x65, 0x92, 0xbb, 0xc9, 0xab, 0xd9); + + +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0000_v0_0_s_ifspec; + +#ifndef __IDirectManipulationManager_INTERFACE_DEFINED__ +#define __IDirectManipulationManager_INTERFACE_DEFINED__ + +/* interface IDirectManipulationManager */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FBF5D3B4-70C7-4163-9322-5A6F660D6FBC") + IDirectManipulationManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Activate( + /* [annotation][in] */ + _In_ HWND window) = 0; + + virtual HRESULT STDMETHODCALLTYPE Deactivate( + /* [annotation][in] */ + _In_ HWND window) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterHitTestTarget( + /* [annotation][in] */ + _In_ HWND window, + /* [annotation][in] */ + _In_opt_ HWND hitTestWindow, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_HITTEST_TYPE type) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessInput( + /* [annotation][in] */ + _In_ const MSG *message, + /* [annotation][retval][out] */ + _Out_ BOOL *handled) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUpdateManager( + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateViewport( + /* [annotation][in] */ + _In_opt_ IDirectManipulationFrameInfoProvider *frameInfo, + /* [annotation][in] */ + _In_ HWND window, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateContent( + /* [annotation][in] */ + _In_opt_ IDirectManipulationFrameInfoProvider *frameInfo, + /* [annotation][in] */ + _In_ REFCLSID clsid, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationManager * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationManager * This); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, Activate) + HRESULT ( STDMETHODCALLTYPE *Activate )( + IDirectManipulationManager * This, + /* [annotation][in] */ + _In_ HWND window); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, Deactivate) + HRESULT ( STDMETHODCALLTYPE *Deactivate )( + IDirectManipulationManager * This, + /* [annotation][in] */ + _In_ HWND window); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, RegisterHitTestTarget) + HRESULT ( STDMETHODCALLTYPE *RegisterHitTestTarget )( + IDirectManipulationManager * This, + /* [annotation][in] */ + _In_ HWND window, + /* [annotation][in] */ + _In_opt_ HWND hitTestWindow, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_HITTEST_TYPE type); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, ProcessInput) + HRESULT ( STDMETHODCALLTYPE *ProcessInput )( + IDirectManipulationManager * This, + /* [annotation][in] */ + _In_ const MSG *message, + /* [annotation][retval][out] */ + _Out_ BOOL *handled); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, GetUpdateManager) + HRESULT ( STDMETHODCALLTYPE *GetUpdateManager )( + IDirectManipulationManager * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, CreateViewport) + HRESULT ( STDMETHODCALLTYPE *CreateViewport )( + IDirectManipulationManager * This, + /* [annotation][in] */ + _In_opt_ IDirectManipulationFrameInfoProvider *frameInfo, + /* [annotation][in] */ + _In_ HWND window, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, CreateContent) + HRESULT ( STDMETHODCALLTYPE *CreateContent )( + IDirectManipulationManager * This, + /* [annotation][in] */ + _In_opt_ IDirectManipulationFrameInfoProvider *frameInfo, + /* [annotation][in] */ + _In_ REFCLSID clsid, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + END_INTERFACE + } IDirectManipulationManagerVtbl; + + interface IDirectManipulationManager + { + CONST_VTBL struct IDirectManipulationManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationManager_Activate(This,window) \ + ( (This)->lpVtbl -> Activate(This,window) ) + +#define IDirectManipulationManager_Deactivate(This,window) \ + ( (This)->lpVtbl -> Deactivate(This,window) ) + +#define IDirectManipulationManager_RegisterHitTestTarget(This,window,hitTestWindow,type) \ + ( (This)->lpVtbl -> RegisterHitTestTarget(This,window,hitTestWindow,type) ) + +#define IDirectManipulationManager_ProcessInput(This,message,handled) \ + ( (This)->lpVtbl -> ProcessInput(This,message,handled) ) + +#define IDirectManipulationManager_GetUpdateManager(This,riid,object) \ + ( (This)->lpVtbl -> GetUpdateManager(This,riid,object) ) + +#define IDirectManipulationManager_CreateViewport(This,frameInfo,window,riid,object) \ + ( (This)->lpVtbl -> CreateViewport(This,frameInfo,window,riid,object) ) + +#define IDirectManipulationManager_CreateContent(This,frameInfo,clsid,riid,object) \ + ( (This)->lpVtbl -> CreateContent(This,frameInfo,clsid,riid,object) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationManager_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationManager2_INTERFACE_DEFINED__ +#define __IDirectManipulationManager2_INTERFACE_DEFINED__ + +/* interface IDirectManipulationManager2 */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationManager2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FA1005E9-3D16-484C-BFC9-62B61E56EC4E") + IDirectManipulationManager2 : public IDirectManipulationManager + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateBehavior( + /* [annotation][in] */ + _In_ REFCLSID clsid, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationManager2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationManager2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationManager2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationManager2 * This); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, Activate) + HRESULT ( STDMETHODCALLTYPE *Activate )( + IDirectManipulationManager2 * This, + /* [annotation][in] */ + _In_ HWND window); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, Deactivate) + HRESULT ( STDMETHODCALLTYPE *Deactivate )( + IDirectManipulationManager2 * This, + /* [annotation][in] */ + _In_ HWND window); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, RegisterHitTestTarget) + HRESULT ( STDMETHODCALLTYPE *RegisterHitTestTarget )( + IDirectManipulationManager2 * This, + /* [annotation][in] */ + _In_ HWND window, + /* [annotation][in] */ + _In_opt_ HWND hitTestWindow, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_HITTEST_TYPE type); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, ProcessInput) + HRESULT ( STDMETHODCALLTYPE *ProcessInput )( + IDirectManipulationManager2 * This, + /* [annotation][in] */ + _In_ const MSG *message, + /* [annotation][retval][out] */ + _Out_ BOOL *handled); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, GetUpdateManager) + HRESULT ( STDMETHODCALLTYPE *GetUpdateManager )( + IDirectManipulationManager2 * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, CreateViewport) + HRESULT ( STDMETHODCALLTYPE *CreateViewport )( + IDirectManipulationManager2 * This, + /* [annotation][in] */ + _In_opt_ IDirectManipulationFrameInfoProvider *frameInfo, + /* [annotation][in] */ + _In_ HWND window, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, CreateContent) + HRESULT ( STDMETHODCALLTYPE *CreateContent )( + IDirectManipulationManager2 * This, + /* [annotation][in] */ + _In_opt_ IDirectManipulationFrameInfoProvider *frameInfo, + /* [annotation][in] */ + _In_ REFCLSID clsid, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationManager2, CreateBehavior) + HRESULT ( STDMETHODCALLTYPE *CreateBehavior )( + IDirectManipulationManager2 * This, + /* [annotation][in] */ + _In_ REFCLSID clsid, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + END_INTERFACE + } IDirectManipulationManager2Vtbl; + + interface IDirectManipulationManager2 + { + CONST_VTBL struct IDirectManipulationManager2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationManager2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationManager2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationManager2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationManager2_Activate(This,window) \ + ( (This)->lpVtbl -> Activate(This,window) ) + +#define IDirectManipulationManager2_Deactivate(This,window) \ + ( (This)->lpVtbl -> Deactivate(This,window) ) + +#define IDirectManipulationManager2_RegisterHitTestTarget(This,window,hitTestWindow,type) \ + ( (This)->lpVtbl -> RegisterHitTestTarget(This,window,hitTestWindow,type) ) + +#define IDirectManipulationManager2_ProcessInput(This,message,handled) \ + ( (This)->lpVtbl -> ProcessInput(This,message,handled) ) + +#define IDirectManipulationManager2_GetUpdateManager(This,riid,object) \ + ( (This)->lpVtbl -> GetUpdateManager(This,riid,object) ) + +#define IDirectManipulationManager2_CreateViewport(This,frameInfo,window,riid,object) \ + ( (This)->lpVtbl -> CreateViewport(This,frameInfo,window,riid,object) ) + +#define IDirectManipulationManager2_CreateContent(This,frameInfo,clsid,riid,object) \ + ( (This)->lpVtbl -> CreateContent(This,frameInfo,clsid,riid,object) ) + + +#define IDirectManipulationManager2_CreateBehavior(This,clsid,riid,object) \ + ( (This)->lpVtbl -> CreateBehavior(This,clsid,riid,object) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationManager2_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationManager3_INTERFACE_DEFINED__ +#define __IDirectManipulationManager3_INTERFACE_DEFINED__ + +/* interface IDirectManipulationManager3 */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationManager3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2CB6B33D-FFE8-488C-B750-FBDFE88DCA8C") + IDirectManipulationManager3 : public IDirectManipulationManager2 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetService( + /* [annotation][in] */ + _In_ REFCLSID clsid, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationManager3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationManager3 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationManager3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationManager3 * This); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, Activate) + HRESULT ( STDMETHODCALLTYPE *Activate )( + IDirectManipulationManager3 * This, + /* [annotation][in] */ + _In_ HWND window); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, Deactivate) + HRESULT ( STDMETHODCALLTYPE *Deactivate )( + IDirectManipulationManager3 * This, + /* [annotation][in] */ + _In_ HWND window); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, RegisterHitTestTarget) + HRESULT ( STDMETHODCALLTYPE *RegisterHitTestTarget )( + IDirectManipulationManager3 * This, + /* [annotation][in] */ + _In_ HWND window, + /* [annotation][in] */ + _In_opt_ HWND hitTestWindow, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_HITTEST_TYPE type); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, ProcessInput) + HRESULT ( STDMETHODCALLTYPE *ProcessInput )( + IDirectManipulationManager3 * This, + /* [annotation][in] */ + _In_ const MSG *message, + /* [annotation][retval][out] */ + _Out_ BOOL *handled); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, GetUpdateManager) + HRESULT ( STDMETHODCALLTYPE *GetUpdateManager )( + IDirectManipulationManager3 * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, CreateViewport) + HRESULT ( STDMETHODCALLTYPE *CreateViewport )( + IDirectManipulationManager3 * This, + /* [annotation][in] */ + _In_opt_ IDirectManipulationFrameInfoProvider *frameInfo, + /* [annotation][in] */ + _In_ HWND window, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationManager, CreateContent) + HRESULT ( STDMETHODCALLTYPE *CreateContent )( + IDirectManipulationManager3 * This, + /* [annotation][in] */ + _In_opt_ IDirectManipulationFrameInfoProvider *frameInfo, + /* [annotation][in] */ + _In_ REFCLSID clsid, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationManager2, CreateBehavior) + HRESULT ( STDMETHODCALLTYPE *CreateBehavior )( + IDirectManipulationManager3 * This, + /* [annotation][in] */ + _In_ REFCLSID clsid, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationManager3, GetService) + HRESULT ( STDMETHODCALLTYPE *GetService )( + IDirectManipulationManager3 * This, + /* [annotation][in] */ + _In_ REFCLSID clsid, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + END_INTERFACE + } IDirectManipulationManager3Vtbl; + + interface IDirectManipulationManager3 + { + CONST_VTBL struct IDirectManipulationManager3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationManager3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationManager3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationManager3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationManager3_Activate(This,window) \ + ( (This)->lpVtbl -> Activate(This,window) ) + +#define IDirectManipulationManager3_Deactivate(This,window) \ + ( (This)->lpVtbl -> Deactivate(This,window) ) + +#define IDirectManipulationManager3_RegisterHitTestTarget(This,window,hitTestWindow,type) \ + ( (This)->lpVtbl -> RegisterHitTestTarget(This,window,hitTestWindow,type) ) + +#define IDirectManipulationManager3_ProcessInput(This,message,handled) \ + ( (This)->lpVtbl -> ProcessInput(This,message,handled) ) + +#define IDirectManipulationManager3_GetUpdateManager(This,riid,object) \ + ( (This)->lpVtbl -> GetUpdateManager(This,riid,object) ) + +#define IDirectManipulationManager3_CreateViewport(This,frameInfo,window,riid,object) \ + ( (This)->lpVtbl -> CreateViewport(This,frameInfo,window,riid,object) ) + +#define IDirectManipulationManager3_CreateContent(This,frameInfo,clsid,riid,object) \ + ( (This)->lpVtbl -> CreateContent(This,frameInfo,clsid,riid,object) ) + + +#define IDirectManipulationManager3_CreateBehavior(This,clsid,riid,object) \ + ( (This)->lpVtbl -> CreateBehavior(This,clsid,riid,object) ) + + +#define IDirectManipulationManager3_GetService(This,clsid,riid,object) \ + ( (This)->lpVtbl -> GetService(This,clsid,riid,object) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationManager3_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationViewport_INTERFACE_DEFINED__ +#define __IDirectManipulationViewport_INTERFACE_DEFINED__ + +/* interface IDirectManipulationViewport */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationViewport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("28b85a3d-60a0-48bd-9ba1-5ce8d9ea3a6d") + IDirectManipulationViewport : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Enable( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Disable( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetContact( + /* [annotation][in] */ + _In_ UINT32 pointerId) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseContact( + /* [annotation][in] */ + _In_ UINT32 pointerId) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseAllContacts( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatus( + /* [annotation][retval][out] */ + _Out_ DIRECTMANIPULATION_STATUS *status) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_opt_ void **object, + /* [annotation][out] */ + _Out_opt_ UINT32 *id) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetTag( + /* [annotation][unique][in] */ + _In_opt_ IUnknown *object, + /* [annotation][in] */ + _In_ UINT32 id) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetViewportRect( + /* [annotation][retval][out] */ + _Out_ RECT *viewport) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetViewportRect( + /* [annotation][in] */ + _In_ const RECT *viewport) = 0; + + virtual HRESULT STDMETHODCALLTYPE ZoomToRect( + /* [annotation][in] */ + _In_ const float left, + /* [annotation][in] */ + _In_ const float top, + /* [annotation][in] */ + _In_ const float right, + /* [annotation][in] */ + _In_ const float bottom, + /* [annotation][in] */ + _In_ BOOL animate) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetViewportTransform( + /* [annotation][in] */ + _In_reads_(pointCount) const float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SyncDisplayTransform( + /* [annotation][in] */ + _In_reads_(pointCount) const float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrimaryContent( + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddContent( + /* [annotation][unique][in] */ + _In_ IDirectManipulationContent *content) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveContent( + /* [annotation][unique][in] */ + _In_ IDirectManipulationContent *content) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetViewportOptions( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_VIEWPORT_OPTIONS options) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddConfiguration( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_CONFIGURATION configuration) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveConfiguration( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_CONFIGURATION configuration) = 0; + + virtual HRESULT STDMETHODCALLTYPE ActivateConfiguration( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_CONFIGURATION configuration) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetManualGesture( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_GESTURE_CONFIGURATION configuration) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetChaining( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES enabledTypes) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddEventHandler( + /* [annotation][in] */ + _In_opt_ HWND window, + /* [annotation][in] */ + _In_ IDirectManipulationViewportEventHandler *eventHandler, + /* [annotation][retval][out] */ + _Out_ DWORD *cookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveEventHandler( + /* [annotation][in] */ + _In_ DWORD cookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetInputMode( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_INPUT_MODE mode) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetUpdateMode( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_INPUT_MODE mode) = 0; + + virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Abandon( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationViewportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationViewport * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationViewport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationViewport * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, Enable) + HRESULT ( STDMETHODCALLTYPE *Enable )( + IDirectManipulationViewport * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, Disable) + HRESULT ( STDMETHODCALLTYPE *Disable )( + IDirectManipulationViewport * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetContact) + HRESULT ( STDMETHODCALLTYPE *SetContact )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ UINT32 pointerId); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, ReleaseContact) + HRESULT ( STDMETHODCALLTYPE *ReleaseContact )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ UINT32 pointerId); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, ReleaseAllContacts) + HRESULT ( STDMETHODCALLTYPE *ReleaseAllContacts )( + IDirectManipulationViewport * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + IDirectManipulationViewport * This, + /* [annotation][retval][out] */ + _Out_ DIRECTMANIPULATION_STATUS *status); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_opt_ void **object, + /* [annotation][out] */ + _Out_opt_ UINT32 *id); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetTag) + HRESULT ( STDMETHODCALLTYPE *SetTag )( + IDirectManipulationViewport * This, + /* [annotation][unique][in] */ + _In_opt_ IUnknown *object, + /* [annotation][in] */ + _In_ UINT32 id); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, GetViewportRect) + HRESULT ( STDMETHODCALLTYPE *GetViewportRect )( + IDirectManipulationViewport * This, + /* [annotation][retval][out] */ + _Out_ RECT *viewport); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetViewportRect) + HRESULT ( STDMETHODCALLTYPE *SetViewportRect )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ const RECT *viewport); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, ZoomToRect) + HRESULT ( STDMETHODCALLTYPE *ZoomToRect )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ const float left, + /* [annotation][in] */ + _In_ const float top, + /* [annotation][in] */ + _In_ const float right, + /* [annotation][in] */ + _In_ const float bottom, + /* [annotation][in] */ + _In_ BOOL animate); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetViewportTransform) + HRESULT ( STDMETHODCALLTYPE *SetViewportTransform )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_reads_(pointCount) const float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SyncDisplayTransform) + HRESULT ( STDMETHODCALLTYPE *SyncDisplayTransform )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_reads_(pointCount) const float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, GetPrimaryContent) + HRESULT ( STDMETHODCALLTYPE *GetPrimaryContent )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, AddContent) + HRESULT ( STDMETHODCALLTYPE *AddContent )( + IDirectManipulationViewport * This, + /* [annotation][unique][in] */ + _In_ IDirectManipulationContent *content); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, RemoveContent) + HRESULT ( STDMETHODCALLTYPE *RemoveContent )( + IDirectManipulationViewport * This, + /* [annotation][unique][in] */ + _In_ IDirectManipulationContent *content); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetViewportOptions) + HRESULT ( STDMETHODCALLTYPE *SetViewportOptions )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_VIEWPORT_OPTIONS options); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, AddConfiguration) + HRESULT ( STDMETHODCALLTYPE *AddConfiguration )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_CONFIGURATION configuration); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, RemoveConfiguration) + HRESULT ( STDMETHODCALLTYPE *RemoveConfiguration )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_CONFIGURATION configuration); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, ActivateConfiguration) + HRESULT ( STDMETHODCALLTYPE *ActivateConfiguration )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_CONFIGURATION configuration); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetManualGesture) + HRESULT ( STDMETHODCALLTYPE *SetManualGesture )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_GESTURE_CONFIGURATION configuration); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetChaining) + HRESULT ( STDMETHODCALLTYPE *SetChaining )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES enabledTypes); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, AddEventHandler) + HRESULT ( STDMETHODCALLTYPE *AddEventHandler )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_opt_ HWND window, + /* [annotation][in] */ + _In_ IDirectManipulationViewportEventHandler *eventHandler, + /* [annotation][retval][out] */ + _Out_ DWORD *cookie); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, RemoveEventHandler) + HRESULT ( STDMETHODCALLTYPE *RemoveEventHandler )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ DWORD cookie); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetInputMode) + HRESULT ( STDMETHODCALLTYPE *SetInputMode )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_INPUT_MODE mode); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetUpdateMode) + HRESULT ( STDMETHODCALLTYPE *SetUpdateMode )( + IDirectManipulationViewport * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_INPUT_MODE mode); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + IDirectManipulationViewport * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, Abandon) + HRESULT ( STDMETHODCALLTYPE *Abandon )( + IDirectManipulationViewport * This); + + END_INTERFACE + } IDirectManipulationViewportVtbl; + + interface IDirectManipulationViewport + { + CONST_VTBL struct IDirectManipulationViewportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationViewport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationViewport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationViewport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationViewport_Enable(This) \ + ( (This)->lpVtbl -> Enable(This) ) + +#define IDirectManipulationViewport_Disable(This) \ + ( (This)->lpVtbl -> Disable(This) ) + +#define IDirectManipulationViewport_SetContact(This,pointerId) \ + ( (This)->lpVtbl -> SetContact(This,pointerId) ) + +#define IDirectManipulationViewport_ReleaseContact(This,pointerId) \ + ( (This)->lpVtbl -> ReleaseContact(This,pointerId) ) + +#define IDirectManipulationViewport_ReleaseAllContacts(This) \ + ( (This)->lpVtbl -> ReleaseAllContacts(This) ) + +#define IDirectManipulationViewport_GetStatus(This,status) \ + ( (This)->lpVtbl -> GetStatus(This,status) ) + +#define IDirectManipulationViewport_GetTag(This,riid,object,id) \ + ( (This)->lpVtbl -> GetTag(This,riid,object,id) ) + +#define IDirectManipulationViewport_SetTag(This,object,id) \ + ( (This)->lpVtbl -> SetTag(This,object,id) ) + +#define IDirectManipulationViewport_GetViewportRect(This,viewport) \ + ( (This)->lpVtbl -> GetViewportRect(This,viewport) ) + +#define IDirectManipulationViewport_SetViewportRect(This,viewport) \ + ( (This)->lpVtbl -> SetViewportRect(This,viewport) ) + +#define IDirectManipulationViewport_ZoomToRect(This,left,top,right,bottom,animate) \ + ( (This)->lpVtbl -> ZoomToRect(This,left,top,right,bottom,animate) ) + +#define IDirectManipulationViewport_SetViewportTransform(This,matrix,pointCount) \ + ( (This)->lpVtbl -> SetViewportTransform(This,matrix,pointCount) ) + +#define IDirectManipulationViewport_SyncDisplayTransform(This,matrix,pointCount) \ + ( (This)->lpVtbl -> SyncDisplayTransform(This,matrix,pointCount) ) + +#define IDirectManipulationViewport_GetPrimaryContent(This,riid,object) \ + ( (This)->lpVtbl -> GetPrimaryContent(This,riid,object) ) + +#define IDirectManipulationViewport_AddContent(This,content) \ + ( (This)->lpVtbl -> AddContent(This,content) ) + +#define IDirectManipulationViewport_RemoveContent(This,content) \ + ( (This)->lpVtbl -> RemoveContent(This,content) ) + +#define IDirectManipulationViewport_SetViewportOptions(This,options) \ + ( (This)->lpVtbl -> SetViewportOptions(This,options) ) + +#define IDirectManipulationViewport_AddConfiguration(This,configuration) \ + ( (This)->lpVtbl -> AddConfiguration(This,configuration) ) + +#define IDirectManipulationViewport_RemoveConfiguration(This,configuration) \ + ( (This)->lpVtbl -> RemoveConfiguration(This,configuration) ) + +#define IDirectManipulationViewport_ActivateConfiguration(This,configuration) \ + ( (This)->lpVtbl -> ActivateConfiguration(This,configuration) ) + +#define IDirectManipulationViewport_SetManualGesture(This,configuration) \ + ( (This)->lpVtbl -> SetManualGesture(This,configuration) ) + +#define IDirectManipulationViewport_SetChaining(This,enabledTypes) \ + ( (This)->lpVtbl -> SetChaining(This,enabledTypes) ) + +#define IDirectManipulationViewport_AddEventHandler(This,window,eventHandler,cookie) \ + ( (This)->lpVtbl -> AddEventHandler(This,window,eventHandler,cookie) ) + +#define IDirectManipulationViewport_RemoveEventHandler(This,cookie) \ + ( (This)->lpVtbl -> RemoveEventHandler(This,cookie) ) + +#define IDirectManipulationViewport_SetInputMode(This,mode) \ + ( (This)->lpVtbl -> SetInputMode(This,mode) ) + +#define IDirectManipulationViewport_SetUpdateMode(This,mode) \ + ( (This)->lpVtbl -> SetUpdateMode(This,mode) ) + +#define IDirectManipulationViewport_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IDirectManipulationViewport_Abandon(This) \ + ( (This)->lpVtbl -> Abandon(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationViewport_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationViewport2_INTERFACE_DEFINED__ +#define __IDirectManipulationViewport2_INTERFACE_DEFINED__ + +/* interface IDirectManipulationViewport2 */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationViewport2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("923CCAAC-61E1-4385-B726-017AF189882A") + IDirectManipulationViewport2 : public IDirectManipulationViewport + { + public: + virtual HRESULT STDMETHODCALLTYPE AddBehavior( + /* [annotation][unique][in] */ + _In_ IUnknown *behavior, + /* [annotation][retval][out] */ + _Out_ DWORD *cookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveBehavior( + /* [annotation][in] */ + _In_ DWORD cookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveAllBehaviors( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationViewport2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationViewport2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationViewport2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationViewport2 * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, Enable) + HRESULT ( STDMETHODCALLTYPE *Enable )( + IDirectManipulationViewport2 * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, Disable) + HRESULT ( STDMETHODCALLTYPE *Disable )( + IDirectManipulationViewport2 * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetContact) + HRESULT ( STDMETHODCALLTYPE *SetContact )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ UINT32 pointerId); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, ReleaseContact) + HRESULT ( STDMETHODCALLTYPE *ReleaseContact )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ UINT32 pointerId); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, ReleaseAllContacts) + HRESULT ( STDMETHODCALLTYPE *ReleaseAllContacts )( + IDirectManipulationViewport2 * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + IDirectManipulationViewport2 * This, + /* [annotation][retval][out] */ + _Out_ DIRECTMANIPULATION_STATUS *status); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_opt_ void **object, + /* [annotation][out] */ + _Out_opt_ UINT32 *id); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetTag) + HRESULT ( STDMETHODCALLTYPE *SetTag )( + IDirectManipulationViewport2 * This, + /* [annotation][unique][in] */ + _In_opt_ IUnknown *object, + /* [annotation][in] */ + _In_ UINT32 id); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, GetViewportRect) + HRESULT ( STDMETHODCALLTYPE *GetViewportRect )( + IDirectManipulationViewport2 * This, + /* [annotation][retval][out] */ + _Out_ RECT *viewport); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetViewportRect) + HRESULT ( STDMETHODCALLTYPE *SetViewportRect )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ const RECT *viewport); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, ZoomToRect) + HRESULT ( STDMETHODCALLTYPE *ZoomToRect )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ const float left, + /* [annotation][in] */ + _In_ const float top, + /* [annotation][in] */ + _In_ const float right, + /* [annotation][in] */ + _In_ const float bottom, + /* [annotation][in] */ + _In_ BOOL animate); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetViewportTransform) + HRESULT ( STDMETHODCALLTYPE *SetViewportTransform )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_reads_(pointCount) const float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SyncDisplayTransform) + HRESULT ( STDMETHODCALLTYPE *SyncDisplayTransform )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_reads_(pointCount) const float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, GetPrimaryContent) + HRESULT ( STDMETHODCALLTYPE *GetPrimaryContent )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, AddContent) + HRESULT ( STDMETHODCALLTYPE *AddContent )( + IDirectManipulationViewport2 * This, + /* [annotation][unique][in] */ + _In_ IDirectManipulationContent *content); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, RemoveContent) + HRESULT ( STDMETHODCALLTYPE *RemoveContent )( + IDirectManipulationViewport2 * This, + /* [annotation][unique][in] */ + _In_ IDirectManipulationContent *content); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetViewportOptions) + HRESULT ( STDMETHODCALLTYPE *SetViewportOptions )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_VIEWPORT_OPTIONS options); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, AddConfiguration) + HRESULT ( STDMETHODCALLTYPE *AddConfiguration )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_CONFIGURATION configuration); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, RemoveConfiguration) + HRESULT ( STDMETHODCALLTYPE *RemoveConfiguration )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_CONFIGURATION configuration); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, ActivateConfiguration) + HRESULT ( STDMETHODCALLTYPE *ActivateConfiguration )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_CONFIGURATION configuration); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetManualGesture) + HRESULT ( STDMETHODCALLTYPE *SetManualGesture )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_GESTURE_CONFIGURATION configuration); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetChaining) + HRESULT ( STDMETHODCALLTYPE *SetChaining )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES enabledTypes); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, AddEventHandler) + HRESULT ( STDMETHODCALLTYPE *AddEventHandler )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_opt_ HWND window, + /* [annotation][in] */ + _In_ IDirectManipulationViewportEventHandler *eventHandler, + /* [annotation][retval][out] */ + _Out_ DWORD *cookie); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, RemoveEventHandler) + HRESULT ( STDMETHODCALLTYPE *RemoveEventHandler )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ DWORD cookie); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetInputMode) + HRESULT ( STDMETHODCALLTYPE *SetInputMode )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_INPUT_MODE mode); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, SetUpdateMode) + HRESULT ( STDMETHODCALLTYPE *SetUpdateMode )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_INPUT_MODE mode); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, Stop) + HRESULT ( STDMETHODCALLTYPE *Stop )( + IDirectManipulationViewport2 * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport, Abandon) + HRESULT ( STDMETHODCALLTYPE *Abandon )( + IDirectManipulationViewport2 * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport2, AddBehavior) + HRESULT ( STDMETHODCALLTYPE *AddBehavior )( + IDirectManipulationViewport2 * This, + /* [annotation][unique][in] */ + _In_ IUnknown *behavior, + /* [annotation][retval][out] */ + _Out_ DWORD *cookie); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport2, RemoveBehavior) + HRESULT ( STDMETHODCALLTYPE *RemoveBehavior )( + IDirectManipulationViewport2 * This, + /* [annotation][in] */ + _In_ DWORD cookie); + + DECLSPEC_XFGVIRT(IDirectManipulationViewport2, RemoveAllBehaviors) + HRESULT ( STDMETHODCALLTYPE *RemoveAllBehaviors )( + IDirectManipulationViewport2 * This); + + END_INTERFACE + } IDirectManipulationViewport2Vtbl; + + interface IDirectManipulationViewport2 + { + CONST_VTBL struct IDirectManipulationViewport2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationViewport2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationViewport2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationViewport2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationViewport2_Enable(This) \ + ( (This)->lpVtbl -> Enable(This) ) + +#define IDirectManipulationViewport2_Disable(This) \ + ( (This)->lpVtbl -> Disable(This) ) + +#define IDirectManipulationViewport2_SetContact(This,pointerId) \ + ( (This)->lpVtbl -> SetContact(This,pointerId) ) + +#define IDirectManipulationViewport2_ReleaseContact(This,pointerId) \ + ( (This)->lpVtbl -> ReleaseContact(This,pointerId) ) + +#define IDirectManipulationViewport2_ReleaseAllContacts(This) \ + ( (This)->lpVtbl -> ReleaseAllContacts(This) ) + +#define IDirectManipulationViewport2_GetStatus(This,status) \ + ( (This)->lpVtbl -> GetStatus(This,status) ) + +#define IDirectManipulationViewport2_GetTag(This,riid,object,id) \ + ( (This)->lpVtbl -> GetTag(This,riid,object,id) ) + +#define IDirectManipulationViewport2_SetTag(This,object,id) \ + ( (This)->lpVtbl -> SetTag(This,object,id) ) + +#define IDirectManipulationViewport2_GetViewportRect(This,viewport) \ + ( (This)->lpVtbl -> GetViewportRect(This,viewport) ) + +#define IDirectManipulationViewport2_SetViewportRect(This,viewport) \ + ( (This)->lpVtbl -> SetViewportRect(This,viewport) ) + +#define IDirectManipulationViewport2_ZoomToRect(This,left,top,right,bottom,animate) \ + ( (This)->lpVtbl -> ZoomToRect(This,left,top,right,bottom,animate) ) + +#define IDirectManipulationViewport2_SetViewportTransform(This,matrix,pointCount) \ + ( (This)->lpVtbl -> SetViewportTransform(This,matrix,pointCount) ) + +#define IDirectManipulationViewport2_SyncDisplayTransform(This,matrix,pointCount) \ + ( (This)->lpVtbl -> SyncDisplayTransform(This,matrix,pointCount) ) + +#define IDirectManipulationViewport2_GetPrimaryContent(This,riid,object) \ + ( (This)->lpVtbl -> GetPrimaryContent(This,riid,object) ) + +#define IDirectManipulationViewport2_AddContent(This,content) \ + ( (This)->lpVtbl -> AddContent(This,content) ) + +#define IDirectManipulationViewport2_RemoveContent(This,content) \ + ( (This)->lpVtbl -> RemoveContent(This,content) ) + +#define IDirectManipulationViewport2_SetViewportOptions(This,options) \ + ( (This)->lpVtbl -> SetViewportOptions(This,options) ) + +#define IDirectManipulationViewport2_AddConfiguration(This,configuration) \ + ( (This)->lpVtbl -> AddConfiguration(This,configuration) ) + +#define IDirectManipulationViewport2_RemoveConfiguration(This,configuration) \ + ( (This)->lpVtbl -> RemoveConfiguration(This,configuration) ) + +#define IDirectManipulationViewport2_ActivateConfiguration(This,configuration) \ + ( (This)->lpVtbl -> ActivateConfiguration(This,configuration) ) + +#define IDirectManipulationViewport2_SetManualGesture(This,configuration) \ + ( (This)->lpVtbl -> SetManualGesture(This,configuration) ) + +#define IDirectManipulationViewport2_SetChaining(This,enabledTypes) \ + ( (This)->lpVtbl -> SetChaining(This,enabledTypes) ) + +#define IDirectManipulationViewport2_AddEventHandler(This,window,eventHandler,cookie) \ + ( (This)->lpVtbl -> AddEventHandler(This,window,eventHandler,cookie) ) + +#define IDirectManipulationViewport2_RemoveEventHandler(This,cookie) \ + ( (This)->lpVtbl -> RemoveEventHandler(This,cookie) ) + +#define IDirectManipulationViewport2_SetInputMode(This,mode) \ + ( (This)->lpVtbl -> SetInputMode(This,mode) ) + +#define IDirectManipulationViewport2_SetUpdateMode(This,mode) \ + ( (This)->lpVtbl -> SetUpdateMode(This,mode) ) + +#define IDirectManipulationViewport2_Stop(This) \ + ( (This)->lpVtbl -> Stop(This) ) + +#define IDirectManipulationViewport2_Abandon(This) \ + ( (This)->lpVtbl -> Abandon(This) ) + + +#define IDirectManipulationViewport2_AddBehavior(This,behavior,cookie) \ + ( (This)->lpVtbl -> AddBehavior(This,behavior,cookie) ) + +#define IDirectManipulationViewport2_RemoveBehavior(This,cookie) \ + ( (This)->lpVtbl -> RemoveBehavior(This,cookie) ) + +#define IDirectManipulationViewport2_RemoveAllBehaviors(This) \ + ( (This)->lpVtbl -> RemoveAllBehaviors(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationViewport2_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationViewportEventHandler_INTERFACE_DEFINED__ +#define __IDirectManipulationViewportEventHandler_INTERFACE_DEFINED__ + +/* interface IDirectManipulationViewportEventHandler */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationViewportEventHandler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("952121DA-D69F-45F9-B0F9-F23944321A6D") + IDirectManipulationViewportEventHandler : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnViewportStatusChanged( + /* [annotation][in] */ + _In_ IDirectManipulationViewport *viewport, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_STATUS current, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_STATUS previous) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnViewportUpdated( + /* [annotation][in] */ + _In_ IDirectManipulationViewport *viewport) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnContentUpdated( + /* [annotation][in] */ + _In_ IDirectManipulationViewport *viewport, + /* [annotation][in] */ + _In_ IDirectManipulationContent *content) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationViewportEventHandlerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationViewportEventHandler * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationViewportEventHandler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationViewportEventHandler * This); + + DECLSPEC_XFGVIRT(IDirectManipulationViewportEventHandler, OnViewportStatusChanged) + HRESULT ( STDMETHODCALLTYPE *OnViewportStatusChanged )( + IDirectManipulationViewportEventHandler * This, + /* [annotation][in] */ + _In_ IDirectManipulationViewport *viewport, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_STATUS current, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_STATUS previous); + + DECLSPEC_XFGVIRT(IDirectManipulationViewportEventHandler, OnViewportUpdated) + HRESULT ( STDMETHODCALLTYPE *OnViewportUpdated )( + IDirectManipulationViewportEventHandler * This, + /* [annotation][in] */ + _In_ IDirectManipulationViewport *viewport); + + DECLSPEC_XFGVIRT(IDirectManipulationViewportEventHandler, OnContentUpdated) + HRESULT ( STDMETHODCALLTYPE *OnContentUpdated )( + IDirectManipulationViewportEventHandler * This, + /* [annotation][in] */ + _In_ IDirectManipulationViewport *viewport, + /* [annotation][in] */ + _In_ IDirectManipulationContent *content); + + END_INTERFACE + } IDirectManipulationViewportEventHandlerVtbl; + + interface IDirectManipulationViewportEventHandler + { + CONST_VTBL struct IDirectManipulationViewportEventHandlerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationViewportEventHandler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationViewportEventHandler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationViewportEventHandler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationViewportEventHandler_OnViewportStatusChanged(This,viewport,current,previous) \ + ( (This)->lpVtbl -> OnViewportStatusChanged(This,viewport,current,previous) ) + +#define IDirectManipulationViewportEventHandler_OnViewportUpdated(This,viewport) \ + ( (This)->lpVtbl -> OnViewportUpdated(This,viewport) ) + +#define IDirectManipulationViewportEventHandler_OnContentUpdated(This,viewport,content) \ + ( (This)->lpVtbl -> OnContentUpdated(This,viewport,content) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationViewportEventHandler_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationContent_INTERFACE_DEFINED__ +#define __IDirectManipulationContent_INTERFACE_DEFINED__ + +/* interface IDirectManipulationContent */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationContent; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B89962CB-3D89-442B-BB58-5098FA0F9F16") + IDirectManipulationContent : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetContentRect( + /* [annotation][out] */ + _Out_ RECT *contentSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetContentRect( + /* [annotation][in] */ + _In_ const RECT *contentSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetViewport( + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_opt_ void **object, + /* [annotation][out] */ + _Out_opt_ UINT32 *id) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetTag( + /* [annotation][unique][in] */ + _In_opt_ IUnknown *object, + /* [annotation][in] */ + _In_ UINT32 id) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOutputTransform( + /* [annotation][out] */ + _Out_writes_(pointCount) float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContentTransform( + /* [annotation][out] */ + _Out_writes_(pointCount) float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SyncContentTransform( + /* [annotation][in] */ + _In_reads_(pointCount) const float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationContentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationContent * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationContent * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationContent * This); + + DECLSPEC_XFGVIRT(IDirectManipulationContent, GetContentRect) + HRESULT ( STDMETHODCALLTYPE *GetContentRect )( + IDirectManipulationContent * This, + /* [annotation][out] */ + _Out_ RECT *contentSize); + + DECLSPEC_XFGVIRT(IDirectManipulationContent, SetContentRect) + HRESULT ( STDMETHODCALLTYPE *SetContentRect )( + IDirectManipulationContent * This, + /* [annotation][in] */ + _In_ const RECT *contentSize); + + DECLSPEC_XFGVIRT(IDirectManipulationContent, GetViewport) + HRESULT ( STDMETHODCALLTYPE *GetViewport )( + IDirectManipulationContent * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][retval][iid_is][out] */ + _COM_Outptr_ void **object); + + DECLSPEC_XFGVIRT(IDirectManipulationContent, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDirectManipulationContent * This, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_opt_ void **object, + /* [annotation][out] */ + _Out_opt_ UINT32 *id); + + DECLSPEC_XFGVIRT(IDirectManipulationContent, SetTag) + HRESULT ( STDMETHODCALLTYPE *SetTag )( + IDirectManipulationContent * This, + /* [annotation][unique][in] */ + _In_opt_ IUnknown *object, + /* [annotation][in] */ + _In_ UINT32 id); + + DECLSPEC_XFGVIRT(IDirectManipulationContent, GetOutputTransform) + HRESULT ( STDMETHODCALLTYPE *GetOutputTransform )( + IDirectManipulationContent * This, + /* [annotation][out] */ + _Out_writes_(pointCount) float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount); + + DECLSPEC_XFGVIRT(IDirectManipulationContent, GetContentTransform) + HRESULT ( STDMETHODCALLTYPE *GetContentTransform )( + IDirectManipulationContent * This, + /* [annotation][out] */ + _Out_writes_(pointCount) float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount); + + DECLSPEC_XFGVIRT(IDirectManipulationContent, SyncContentTransform) + HRESULT ( STDMETHODCALLTYPE *SyncContentTransform )( + IDirectManipulationContent * This, + /* [annotation][in] */ + _In_reads_(pointCount) const float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount); + + END_INTERFACE + } IDirectManipulationContentVtbl; + + interface IDirectManipulationContent + { + CONST_VTBL struct IDirectManipulationContentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationContent_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationContent_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationContent_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationContent_GetContentRect(This,contentSize) \ + ( (This)->lpVtbl -> GetContentRect(This,contentSize) ) + +#define IDirectManipulationContent_SetContentRect(This,contentSize) \ + ( (This)->lpVtbl -> SetContentRect(This,contentSize) ) + +#define IDirectManipulationContent_GetViewport(This,riid,object) \ + ( (This)->lpVtbl -> GetViewport(This,riid,object) ) + +#define IDirectManipulationContent_GetTag(This,riid,object,id) \ + ( (This)->lpVtbl -> GetTag(This,riid,object,id) ) + +#define IDirectManipulationContent_SetTag(This,object,id) \ + ( (This)->lpVtbl -> SetTag(This,object,id) ) + +#define IDirectManipulationContent_GetOutputTransform(This,matrix,pointCount) \ + ( (This)->lpVtbl -> GetOutputTransform(This,matrix,pointCount) ) + +#define IDirectManipulationContent_GetContentTransform(This,matrix,pointCount) \ + ( (This)->lpVtbl -> GetContentTransform(This,matrix,pointCount) ) + +#define IDirectManipulationContent_SyncContentTransform(This,matrix,pointCount) \ + ( (This)->lpVtbl -> SyncContentTransform(This,matrix,pointCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationContent_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationPrimaryContent_INTERFACE_DEFINED__ +#define __IDirectManipulationPrimaryContent_INTERFACE_DEFINED__ + +/* interface IDirectManipulationPrimaryContent */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationPrimaryContent; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C12851E4-1698-4625-B9B1-7CA3EC18630B") + IDirectManipulationPrimaryContent : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetSnapInterval( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES motion, + /* [annotation][in] */ + _In_ float interval, + /* [annotation][in] */ + _In_ float offset) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSnapPoints( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES motion, + /* [annotation][in] */ + _In_reads_opt_(pointCount) const float *points, + /* [annotation][in] */ + _In_ DWORD pointCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSnapType( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES motion, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_SNAPPOINT_TYPE type) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSnapCoordinate( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES motion, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_SNAPPOINT_COORDINATE coordinate, + /* [annotation][in] */ + _In_ float origin) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetZoomBoundaries( + /* [annotation][in] */ + _In_ float zoomMinimum, + /* [annotation][in] */ + _In_ float zoomMaximum) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetHorizontalAlignment( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_HORIZONTALALIGNMENT alignment) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetVerticalAlignment( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_VERTICALALIGNMENT alignment) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInertiaEndTransform( + /* [annotation][out] */ + _Out_writes_(pointCount) float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCenterPoint( + /* [annotation][out] */ + _Out_ float *centerX, + /* [annotation][out] */ + _Out_ float *centerY) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationPrimaryContentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationPrimaryContent * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationPrimaryContent * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationPrimaryContent * This); + + DECLSPEC_XFGVIRT(IDirectManipulationPrimaryContent, SetSnapInterval) + HRESULT ( STDMETHODCALLTYPE *SetSnapInterval )( + IDirectManipulationPrimaryContent * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES motion, + /* [annotation][in] */ + _In_ float interval, + /* [annotation][in] */ + _In_ float offset); + + DECLSPEC_XFGVIRT(IDirectManipulationPrimaryContent, SetSnapPoints) + HRESULT ( STDMETHODCALLTYPE *SetSnapPoints )( + IDirectManipulationPrimaryContent * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES motion, + /* [annotation][in] */ + _In_reads_opt_(pointCount) const float *points, + /* [annotation][in] */ + _In_ DWORD pointCount); + + DECLSPEC_XFGVIRT(IDirectManipulationPrimaryContent, SetSnapType) + HRESULT ( STDMETHODCALLTYPE *SetSnapType )( + IDirectManipulationPrimaryContent * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES motion, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_SNAPPOINT_TYPE type); + + DECLSPEC_XFGVIRT(IDirectManipulationPrimaryContent, SetSnapCoordinate) + HRESULT ( STDMETHODCALLTYPE *SetSnapCoordinate )( + IDirectManipulationPrimaryContent * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES motion, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_SNAPPOINT_COORDINATE coordinate, + /* [annotation][in] */ + _In_ float origin); + + DECLSPEC_XFGVIRT(IDirectManipulationPrimaryContent, SetZoomBoundaries) + HRESULT ( STDMETHODCALLTYPE *SetZoomBoundaries )( + IDirectManipulationPrimaryContent * This, + /* [annotation][in] */ + _In_ float zoomMinimum, + /* [annotation][in] */ + _In_ float zoomMaximum); + + DECLSPEC_XFGVIRT(IDirectManipulationPrimaryContent, SetHorizontalAlignment) + HRESULT ( STDMETHODCALLTYPE *SetHorizontalAlignment )( + IDirectManipulationPrimaryContent * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_HORIZONTALALIGNMENT alignment); + + DECLSPEC_XFGVIRT(IDirectManipulationPrimaryContent, SetVerticalAlignment) + HRESULT ( STDMETHODCALLTYPE *SetVerticalAlignment )( + IDirectManipulationPrimaryContent * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_VERTICALALIGNMENT alignment); + + DECLSPEC_XFGVIRT(IDirectManipulationPrimaryContent, GetInertiaEndTransform) + HRESULT ( STDMETHODCALLTYPE *GetInertiaEndTransform )( + IDirectManipulationPrimaryContent * This, + /* [annotation][out] */ + _Out_writes_(pointCount) float *matrix, + /* [annotation][in] */ + _In_ DWORD pointCount); + + DECLSPEC_XFGVIRT(IDirectManipulationPrimaryContent, GetCenterPoint) + HRESULT ( STDMETHODCALLTYPE *GetCenterPoint )( + IDirectManipulationPrimaryContent * This, + /* [annotation][out] */ + _Out_ float *centerX, + /* [annotation][out] */ + _Out_ float *centerY); + + END_INTERFACE + } IDirectManipulationPrimaryContentVtbl; + + interface IDirectManipulationPrimaryContent + { + CONST_VTBL struct IDirectManipulationPrimaryContentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationPrimaryContent_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationPrimaryContent_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationPrimaryContent_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationPrimaryContent_SetSnapInterval(This,motion,interval,offset) \ + ( (This)->lpVtbl -> SetSnapInterval(This,motion,interval,offset) ) + +#define IDirectManipulationPrimaryContent_SetSnapPoints(This,motion,points,pointCount) \ + ( (This)->lpVtbl -> SetSnapPoints(This,motion,points,pointCount) ) + +#define IDirectManipulationPrimaryContent_SetSnapType(This,motion,type) \ + ( (This)->lpVtbl -> SetSnapType(This,motion,type) ) + +#define IDirectManipulationPrimaryContent_SetSnapCoordinate(This,motion,coordinate,origin) \ + ( (This)->lpVtbl -> SetSnapCoordinate(This,motion,coordinate,origin) ) + +#define IDirectManipulationPrimaryContent_SetZoomBoundaries(This,zoomMinimum,zoomMaximum) \ + ( (This)->lpVtbl -> SetZoomBoundaries(This,zoomMinimum,zoomMaximum) ) + +#define IDirectManipulationPrimaryContent_SetHorizontalAlignment(This,alignment) \ + ( (This)->lpVtbl -> SetHorizontalAlignment(This,alignment) ) + +#define IDirectManipulationPrimaryContent_SetVerticalAlignment(This,alignment) \ + ( (This)->lpVtbl -> SetVerticalAlignment(This,alignment) ) + +#define IDirectManipulationPrimaryContent_GetInertiaEndTransform(This,matrix,pointCount) \ + ( (This)->lpVtbl -> GetInertiaEndTransform(This,matrix,pointCount) ) + +#define IDirectManipulationPrimaryContent_GetCenterPoint(This,centerX,centerY) \ + ( (This)->lpVtbl -> GetCenterPoint(This,centerX,centerY) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationPrimaryContent_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_directmanipulation_0000_0008 */ +/* [local] */ + +typedef +enum DIRECTMANIPULATION_DRAG_DROP_STATUS + { + DIRECTMANIPULATION_DRAG_DROP_READY = 0, + DIRECTMANIPULATION_DRAG_DROP_PRESELECT = 1, + DIRECTMANIPULATION_DRAG_DROP_SELECTING = 2, + DIRECTMANIPULATION_DRAG_DROP_DRAGGING = 3, + DIRECTMANIPULATION_DRAG_DROP_CANCELLED = 4, + DIRECTMANIPULATION_DRAG_DROP_COMMITTED = 5 + } DIRECTMANIPULATION_DRAG_DROP_STATUS; + + + +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0008_v0_0_s_ifspec; + +#ifndef __IDirectManipulationDragDropEventHandler_INTERFACE_DEFINED__ +#define __IDirectManipulationDragDropEventHandler_INTERFACE_DEFINED__ + +/* interface IDirectManipulationDragDropEventHandler */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationDragDropEventHandler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1FA11B10-701B-41AE-B5F2-49E36BD595AA") + IDirectManipulationDragDropEventHandler : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnDragDropStatusChange( + /* [annotation][in] */ + _In_ IDirectManipulationViewport2 *viewport, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_DRAG_DROP_STATUS current, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_DRAG_DROP_STATUS previous) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationDragDropEventHandlerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationDragDropEventHandler * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationDragDropEventHandler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationDragDropEventHandler * This); + + DECLSPEC_XFGVIRT(IDirectManipulationDragDropEventHandler, OnDragDropStatusChange) + HRESULT ( STDMETHODCALLTYPE *OnDragDropStatusChange )( + IDirectManipulationDragDropEventHandler * This, + /* [annotation][in] */ + _In_ IDirectManipulationViewport2 *viewport, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_DRAG_DROP_STATUS current, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_DRAG_DROP_STATUS previous); + + END_INTERFACE + } IDirectManipulationDragDropEventHandlerVtbl; + + interface IDirectManipulationDragDropEventHandler + { + CONST_VTBL struct IDirectManipulationDragDropEventHandlerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationDragDropEventHandler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationDragDropEventHandler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationDragDropEventHandler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationDragDropEventHandler_OnDragDropStatusChange(This,viewport,current,previous) \ + ( (This)->lpVtbl -> OnDragDropStatusChange(This,viewport,current,previous) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationDragDropEventHandler_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_directmanipulation_0000_0009 */ +/* [local] */ + +typedef +enum DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION + { + DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION_VERTICAL = 0x1, + DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION_HORIZONTAL = 0x2, + DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION_SELECT_ONLY = 0x10, + DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION_SELECT_DRAG = 0x20, + DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION_HOLD_DRAG = 0x40 + } DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION; + +DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION) + + +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0009_v0_0_s_ifspec; + +#ifndef __IDirectManipulationDragDropBehavior_INTERFACE_DEFINED__ +#define __IDirectManipulationDragDropBehavior_INTERFACE_DEFINED__ + +/* interface IDirectManipulationDragDropBehavior */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationDragDropBehavior; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("814B5AF5-C2C8-4270-A9B7-A198CE8D02FA") + IDirectManipulationDragDropBehavior : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetConfiguration( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION configuration) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatus( + /* [annotation][retval][out] */ + _Out_ DIRECTMANIPULATION_DRAG_DROP_STATUS *status) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationDragDropBehaviorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationDragDropBehavior * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationDragDropBehavior * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationDragDropBehavior * This); + + DECLSPEC_XFGVIRT(IDirectManipulationDragDropBehavior, SetConfiguration) + HRESULT ( STDMETHODCALLTYPE *SetConfiguration )( + IDirectManipulationDragDropBehavior * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION configuration); + + DECLSPEC_XFGVIRT(IDirectManipulationDragDropBehavior, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + IDirectManipulationDragDropBehavior * This, + /* [annotation][retval][out] */ + _Out_ DIRECTMANIPULATION_DRAG_DROP_STATUS *status); + + END_INTERFACE + } IDirectManipulationDragDropBehaviorVtbl; + + interface IDirectManipulationDragDropBehavior + { + CONST_VTBL struct IDirectManipulationDragDropBehaviorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationDragDropBehavior_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationDragDropBehavior_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationDragDropBehavior_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationDragDropBehavior_SetConfiguration(This,configuration) \ + ( (This)->lpVtbl -> SetConfiguration(This,configuration) ) + +#define IDirectManipulationDragDropBehavior_GetStatus(This,status) \ + ( (This)->lpVtbl -> GetStatus(This,status) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationDragDropBehavior_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_directmanipulation_0000_0010 */ +/* [local] */ + +typedef +enum DIRECTMANIPULATION_INTERACTION_TYPE + { + DIRECTMANIPULATION_INTERACTION_BEGIN = 0, + DIRECTMANIPULATION_INTERACTION_TYPE_MANIPULATION = 1, + DIRECTMANIPULATION_INTERACTION_TYPE_GESTURE_TAP = 2, + DIRECTMANIPULATION_INTERACTION_TYPE_GESTURE_HOLD = 3, + DIRECTMANIPULATION_INTERACTION_TYPE_GESTURE_CROSS_SLIDE = 4, + DIRECTMANIPULATION_INTERACTION_TYPE_GESTURE_PINCH_ZOOM = 5, + DIRECTMANIPULATION_INTERACTION_END = 100 + } DIRECTMANIPULATION_INTERACTION_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0010_v0_0_s_ifspec; + +#ifndef __IDirectManipulationInteractionEventHandler_INTERFACE_DEFINED__ +#define __IDirectManipulationInteractionEventHandler_INTERFACE_DEFINED__ + +/* interface IDirectManipulationInteractionEventHandler */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationInteractionEventHandler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E43F45B8-42B4-403E-B1F2-273B8F510830") + IDirectManipulationInteractionEventHandler : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnInteraction( + /* [annotation][in] */ + _In_ IDirectManipulationViewport2 *viewport, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_INTERACTION_TYPE interaction) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationInteractionEventHandlerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationInteractionEventHandler * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationInteractionEventHandler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationInteractionEventHandler * This); + + DECLSPEC_XFGVIRT(IDirectManipulationInteractionEventHandler, OnInteraction) + HRESULT ( STDMETHODCALLTYPE *OnInteraction )( + IDirectManipulationInteractionEventHandler * This, + /* [annotation][in] */ + _In_ IDirectManipulationViewport2 *viewport, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_INTERACTION_TYPE interaction); + + END_INTERFACE + } IDirectManipulationInteractionEventHandlerVtbl; + + interface IDirectManipulationInteractionEventHandler + { + CONST_VTBL struct IDirectManipulationInteractionEventHandlerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationInteractionEventHandler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationInteractionEventHandler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationInteractionEventHandler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationInteractionEventHandler_OnInteraction(This,viewport,interaction) \ + ( (This)->lpVtbl -> OnInteraction(This,viewport,interaction) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationInteractionEventHandler_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationFrameInfoProvider_INTERFACE_DEFINED__ +#define __IDirectManipulationFrameInfoProvider_INTERFACE_DEFINED__ + +/* interface IDirectManipulationFrameInfoProvider */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationFrameInfoProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fb759dba-6f4c-4c01-874e-19c8a05907f9") + IDirectManipulationFrameInfoProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetNextFrameInfo( + /* [annotation][out] */ + _Out_ ULONGLONG *time, + /* [annotation][out] */ + _Out_ ULONGLONG *processTime, + /* [annotation][out] */ + _Out_ ULONGLONG *compositionTime) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationFrameInfoProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationFrameInfoProvider * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationFrameInfoProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationFrameInfoProvider * This); + + DECLSPEC_XFGVIRT(IDirectManipulationFrameInfoProvider, GetNextFrameInfo) + HRESULT ( STDMETHODCALLTYPE *GetNextFrameInfo )( + IDirectManipulationFrameInfoProvider * This, + /* [annotation][out] */ + _Out_ ULONGLONG *time, + /* [annotation][out] */ + _Out_ ULONGLONG *processTime, + /* [annotation][out] */ + _Out_ ULONGLONG *compositionTime); + + END_INTERFACE + } IDirectManipulationFrameInfoProviderVtbl; + + interface IDirectManipulationFrameInfoProvider + { + CONST_VTBL struct IDirectManipulationFrameInfoProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationFrameInfoProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationFrameInfoProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationFrameInfoProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationFrameInfoProvider_GetNextFrameInfo(This,time,processTime,compositionTime) \ + ( (This)->lpVtbl -> GetNextFrameInfo(This,time,processTime,compositionTime) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationFrameInfoProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationCompositor_INTERFACE_DEFINED__ +#define __IDirectManipulationCompositor_INTERFACE_DEFINED__ + +/* interface IDirectManipulationCompositor */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationCompositor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("537A0825-0387-4EFA-B62F-71EB1F085A7E") + IDirectManipulationCompositor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddContent( + /* [annotation][in] */ + _In_ IDirectManipulationContent *content, + /* [annotation][in] */ + _In_opt_ IUnknown *device, + /* [annotation][in] */ + _In_opt_ IUnknown *parentVisual, + /* [annotation][in] */ + _In_opt_ IUnknown *childVisual) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveContent( + /* [annotation][in] */ + _In_ IDirectManipulationContent *content) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetUpdateManager( + /* [annotation][in] */ + _In_ IDirectManipulationUpdateManager *updateManager) = 0; + + virtual HRESULT STDMETHODCALLTYPE Flush( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationCompositorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationCompositor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationCompositor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationCompositor * This); + + DECLSPEC_XFGVIRT(IDirectManipulationCompositor, AddContent) + HRESULT ( STDMETHODCALLTYPE *AddContent )( + IDirectManipulationCompositor * This, + /* [annotation][in] */ + _In_ IDirectManipulationContent *content, + /* [annotation][in] */ + _In_opt_ IUnknown *device, + /* [annotation][in] */ + _In_opt_ IUnknown *parentVisual, + /* [annotation][in] */ + _In_opt_ IUnknown *childVisual); + + DECLSPEC_XFGVIRT(IDirectManipulationCompositor, RemoveContent) + HRESULT ( STDMETHODCALLTYPE *RemoveContent )( + IDirectManipulationCompositor * This, + /* [annotation][in] */ + _In_ IDirectManipulationContent *content); + + DECLSPEC_XFGVIRT(IDirectManipulationCompositor, SetUpdateManager) + HRESULT ( STDMETHODCALLTYPE *SetUpdateManager )( + IDirectManipulationCompositor * This, + /* [annotation][in] */ + _In_ IDirectManipulationUpdateManager *updateManager); + + DECLSPEC_XFGVIRT(IDirectManipulationCompositor, Flush) + HRESULT ( STDMETHODCALLTYPE *Flush )( + IDirectManipulationCompositor * This); + + END_INTERFACE + } IDirectManipulationCompositorVtbl; + + interface IDirectManipulationCompositor + { + CONST_VTBL struct IDirectManipulationCompositorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationCompositor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationCompositor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationCompositor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationCompositor_AddContent(This,content,device,parentVisual,childVisual) \ + ( (This)->lpVtbl -> AddContent(This,content,device,parentVisual,childVisual) ) + +#define IDirectManipulationCompositor_RemoveContent(This,content) \ + ( (This)->lpVtbl -> RemoveContent(This,content) ) + +#define IDirectManipulationCompositor_SetUpdateManager(This,updateManager) \ + ( (This)->lpVtbl -> SetUpdateManager(This,updateManager) ) + +#define IDirectManipulationCompositor_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationCompositor_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationCompositor2_INTERFACE_DEFINED__ +#define __IDirectManipulationCompositor2_INTERFACE_DEFINED__ + +/* interface IDirectManipulationCompositor2 */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationCompositor2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D38C7822-F1CB-43CB-B4B9-AC0C767A412E") + IDirectManipulationCompositor2 : public IDirectManipulationCompositor + { + public: + virtual HRESULT STDMETHODCALLTYPE AddContentWithCrossProcessChaining( + /* [annotation][in] */ + _In_ IDirectManipulationPrimaryContent *content, + /* [annotation][in] */ + _In_opt_ IUnknown *device, + /* [annotation][in] */ + _In_opt_ IUnknown *parentVisual, + /* [annotation][in] */ + _In_opt_ IUnknown *childVisual) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationCompositor2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationCompositor2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationCompositor2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationCompositor2 * This); + + DECLSPEC_XFGVIRT(IDirectManipulationCompositor, AddContent) + HRESULT ( STDMETHODCALLTYPE *AddContent )( + IDirectManipulationCompositor2 * This, + /* [annotation][in] */ + _In_ IDirectManipulationContent *content, + /* [annotation][in] */ + _In_opt_ IUnknown *device, + /* [annotation][in] */ + _In_opt_ IUnknown *parentVisual, + /* [annotation][in] */ + _In_opt_ IUnknown *childVisual); + + DECLSPEC_XFGVIRT(IDirectManipulationCompositor, RemoveContent) + HRESULT ( STDMETHODCALLTYPE *RemoveContent )( + IDirectManipulationCompositor2 * This, + /* [annotation][in] */ + _In_ IDirectManipulationContent *content); + + DECLSPEC_XFGVIRT(IDirectManipulationCompositor, SetUpdateManager) + HRESULT ( STDMETHODCALLTYPE *SetUpdateManager )( + IDirectManipulationCompositor2 * This, + /* [annotation][in] */ + _In_ IDirectManipulationUpdateManager *updateManager); + + DECLSPEC_XFGVIRT(IDirectManipulationCompositor, Flush) + HRESULT ( STDMETHODCALLTYPE *Flush )( + IDirectManipulationCompositor2 * This); + + DECLSPEC_XFGVIRT(IDirectManipulationCompositor2, AddContentWithCrossProcessChaining) + HRESULT ( STDMETHODCALLTYPE *AddContentWithCrossProcessChaining )( + IDirectManipulationCompositor2 * This, + /* [annotation][in] */ + _In_ IDirectManipulationPrimaryContent *content, + /* [annotation][in] */ + _In_opt_ IUnknown *device, + /* [annotation][in] */ + _In_opt_ IUnknown *parentVisual, + /* [annotation][in] */ + _In_opt_ IUnknown *childVisual); + + END_INTERFACE + } IDirectManipulationCompositor2Vtbl; + + interface IDirectManipulationCompositor2 + { + CONST_VTBL struct IDirectManipulationCompositor2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationCompositor2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationCompositor2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationCompositor2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationCompositor2_AddContent(This,content,device,parentVisual,childVisual) \ + ( (This)->lpVtbl -> AddContent(This,content,device,parentVisual,childVisual) ) + +#define IDirectManipulationCompositor2_RemoveContent(This,content) \ + ( (This)->lpVtbl -> RemoveContent(This,content) ) + +#define IDirectManipulationCompositor2_SetUpdateManager(This,updateManager) \ + ( (This)->lpVtbl -> SetUpdateManager(This,updateManager) ) + +#define IDirectManipulationCompositor2_Flush(This) \ + ( (This)->lpVtbl -> Flush(This) ) + + +#define IDirectManipulationCompositor2_AddContentWithCrossProcessChaining(This,content,device,parentVisual,childVisual) \ + ( (This)->lpVtbl -> AddContentWithCrossProcessChaining(This,content,device,parentVisual,childVisual) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationCompositor2_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationUpdateHandler_INTERFACE_DEFINED__ +#define __IDirectManipulationUpdateHandler_INTERFACE_DEFINED__ + +/* interface IDirectManipulationUpdateHandler */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationUpdateHandler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("790B6337-64F8-4FF5-A269-B32BC2AF27A7") + IDirectManipulationUpdateHandler : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Update( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationUpdateHandlerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationUpdateHandler * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationUpdateHandler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationUpdateHandler * This); + + DECLSPEC_XFGVIRT(IDirectManipulationUpdateHandler, Update) + HRESULT ( STDMETHODCALLTYPE *Update )( + IDirectManipulationUpdateHandler * This); + + END_INTERFACE + } IDirectManipulationUpdateHandlerVtbl; + + interface IDirectManipulationUpdateHandler + { + CONST_VTBL struct IDirectManipulationUpdateHandlerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationUpdateHandler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationUpdateHandler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationUpdateHandler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationUpdateHandler_Update(This) \ + ( (This)->lpVtbl -> Update(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationUpdateHandler_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationUpdateManager_INTERFACE_DEFINED__ +#define __IDirectManipulationUpdateManager_INTERFACE_DEFINED__ + +/* interface IDirectManipulationUpdateManager */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationUpdateManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B0AE62FD-BE34-46E7-9CAA-D361FACBB9CC") + IDirectManipulationUpdateManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterWaitHandleCallback( + /* [annotation][in] */ + _In_ HANDLE handle, + /* [annotation][in] */ + _In_ IDirectManipulationUpdateHandler *eventHandler, + /* [annotation][out] */ + _Out_ DWORD *cookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterWaitHandleCallback( + /* [annotation][in] */ + _In_ DWORD cookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE Update( + /* [annotation][in] */ + _In_opt_ IDirectManipulationFrameInfoProvider *frameInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationUpdateManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationUpdateManager * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationUpdateManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationUpdateManager * This); + + DECLSPEC_XFGVIRT(IDirectManipulationUpdateManager, RegisterWaitHandleCallback) + HRESULT ( STDMETHODCALLTYPE *RegisterWaitHandleCallback )( + IDirectManipulationUpdateManager * This, + /* [annotation][in] */ + _In_ HANDLE handle, + /* [annotation][in] */ + _In_ IDirectManipulationUpdateHandler *eventHandler, + /* [annotation][out] */ + _Out_ DWORD *cookie); + + DECLSPEC_XFGVIRT(IDirectManipulationUpdateManager, UnregisterWaitHandleCallback) + HRESULT ( STDMETHODCALLTYPE *UnregisterWaitHandleCallback )( + IDirectManipulationUpdateManager * This, + /* [annotation][in] */ + _In_ DWORD cookie); + + DECLSPEC_XFGVIRT(IDirectManipulationUpdateManager, Update) + HRESULT ( STDMETHODCALLTYPE *Update )( + IDirectManipulationUpdateManager * This, + /* [annotation][in] */ + _In_opt_ IDirectManipulationFrameInfoProvider *frameInfo); + + END_INTERFACE + } IDirectManipulationUpdateManagerVtbl; + + interface IDirectManipulationUpdateManager + { + CONST_VTBL struct IDirectManipulationUpdateManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationUpdateManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationUpdateManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationUpdateManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationUpdateManager_RegisterWaitHandleCallback(This,handle,eventHandler,cookie) \ + ( (This)->lpVtbl -> RegisterWaitHandleCallback(This,handle,eventHandler,cookie) ) + +#define IDirectManipulationUpdateManager_UnregisterWaitHandleCallback(This,cookie) \ + ( (This)->lpVtbl -> UnregisterWaitHandleCallback(This,cookie) ) + +#define IDirectManipulationUpdateManager_Update(This,frameInfo) \ + ( (This)->lpVtbl -> Update(This,frameInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationUpdateManager_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_directmanipulation_0000_0016 */ +/* [local] */ + +typedef +enum DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION + { + DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION_STOP = 0, + DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION_FORWARD = 1, + DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION_REVERSE = 2 + } DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION; + + + +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0016_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0016_v0_0_s_ifspec; + +#ifndef __IDirectManipulationAutoScrollBehavior_INTERFACE_DEFINED__ +#define __IDirectManipulationAutoScrollBehavior_INTERFACE_DEFINED__ + +/* interface IDirectManipulationAutoScrollBehavior */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationAutoScrollBehavior; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6D5954D4-2003-4356-9B31-D051C9FF0AF7") + IDirectManipulationAutoScrollBehavior : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetConfiguration( + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES motionTypes, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION scrollMotion) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationAutoScrollBehaviorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationAutoScrollBehavior * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationAutoScrollBehavior * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationAutoScrollBehavior * This); + + DECLSPEC_XFGVIRT(IDirectManipulationAutoScrollBehavior, SetConfiguration) + HRESULT ( STDMETHODCALLTYPE *SetConfiguration )( + IDirectManipulationAutoScrollBehavior * This, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_MOTION_TYPES motionTypes, + /* [annotation][in] */ + _In_ DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION scrollMotion); + + END_INTERFACE + } IDirectManipulationAutoScrollBehaviorVtbl; + + interface IDirectManipulationAutoScrollBehavior + { + CONST_VTBL struct IDirectManipulationAutoScrollBehaviorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationAutoScrollBehavior_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationAutoScrollBehavior_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationAutoScrollBehavior_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationAutoScrollBehavior_SetConfiguration(This,motionTypes,scrollMotion) \ + ( (This)->lpVtbl -> SetConfiguration(This,motionTypes,scrollMotion) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationAutoScrollBehavior_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectManipulationDeferContactService_INTERFACE_DEFINED__ +#define __IDirectManipulationDeferContactService_INTERFACE_DEFINED__ + +/* interface IDirectManipulationDeferContactService */ +/* [unique][helpstring][uuid][object][local] */ + + +EXTERN_C const IID IID_IDirectManipulationDeferContactService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("652D5C71-FE60-4A98-BE70-E5F21291E7F1") + IDirectManipulationDeferContactService : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE DeferContact( + /* [annotation][in] */ + _In_ UINT32 pointerId, + /* [annotation][in] */ + _In_ UINT32 timeout) = 0; + + virtual HRESULT STDMETHODCALLTYPE CancelContact( + /* [annotation][in] */ + _In_ UINT32 pointerId) = 0; + + virtual HRESULT STDMETHODCALLTYPE CancelDeferral( + /* [annotation][in] */ + _In_ UINT32 pointerId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectManipulationDeferContactServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectManipulationDeferContactService * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectManipulationDeferContactService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectManipulationDeferContactService * This); + + DECLSPEC_XFGVIRT(IDirectManipulationDeferContactService, DeferContact) + HRESULT ( STDMETHODCALLTYPE *DeferContact )( + IDirectManipulationDeferContactService * This, + /* [annotation][in] */ + _In_ UINT32 pointerId, + /* [annotation][in] */ + _In_ UINT32 timeout); + + DECLSPEC_XFGVIRT(IDirectManipulationDeferContactService, CancelContact) + HRESULT ( STDMETHODCALLTYPE *CancelContact )( + IDirectManipulationDeferContactService * This, + /* [annotation][in] */ + _In_ UINT32 pointerId); + + DECLSPEC_XFGVIRT(IDirectManipulationDeferContactService, CancelDeferral) + HRESULT ( STDMETHODCALLTYPE *CancelDeferral )( + IDirectManipulationDeferContactService * This, + /* [annotation][in] */ + _In_ UINT32 pointerId); + + END_INTERFACE + } IDirectManipulationDeferContactServiceVtbl; + + interface IDirectManipulationDeferContactService + { + CONST_VTBL struct IDirectManipulationDeferContactServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectManipulationDeferContactService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectManipulationDeferContactService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectManipulationDeferContactService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectManipulationDeferContactService_DeferContact(This,pointerId,timeout) \ + ( (This)->lpVtbl -> DeferContact(This,pointerId,timeout) ) + +#define IDirectManipulationDeferContactService_CancelContact(This,pointerId) \ + ( (This)->lpVtbl -> CancelContact(This,pointerId) ) + +#define IDirectManipulationDeferContactService_CancelDeferral(This,pointerId) \ + ( (This)->lpVtbl -> CancelDeferral(This,pointerId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectManipulationDeferContactService_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_directmanipulation_0000_0018 */ +/* [local] */ + +#endif // #if (NTDDI_VERSION > NTDDI_WIN8) + + +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0029_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0029_v0_0_s_ifspec; + + +#ifndef __DirectManipulation_LIBRARY_DEFINED__ +#define __DirectManipulation_LIBRARY_DEFINED__ + +/* library DirectManipulation */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_DirectManipulation; + +EXTERN_C const CLSID CLSID_DirectManipulationViewport; + +#ifdef __cplusplus + +class DECLSPEC_UUID("34E211B6-3650-4F75-8334-FA359598E1C5") +DirectManipulationViewport; +#endif + +EXTERN_C const CLSID CLSID_DirectManipulationUpdateManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("9FC1BFD5-1835-441A-B3B1-B6CC74B727D0") +DirectManipulationUpdateManager; +#endif + +EXTERN_C const CLSID CLSID_DirectManipulationPrimaryContent; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CAA02661-D59E-41C7-8393-3BA3BACB6B57") +DirectManipulationPrimaryContent; +#endif + +EXTERN_C const CLSID CLSID_DirectManipulationManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("54E211B6-3650-4F75-8334-FA359598E1C5") +DirectManipulationManager; +#endif + +EXTERN_C const CLSID CLSID_DirectManipulationSharedManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("99793286-77CC-4B57-96DB-3B354F6F9FB5") +DirectManipulationSharedManager; +#endif + +EXTERN_C const CLSID CLSID_DCompManipulationCompositor; + +#ifdef __cplusplus + +class DECLSPEC_UUID("79DEA627-A08A-43AC-8EF5-6900B9299126") +DCompManipulationCompositor; +#endif +#endif /* __DirectManipulation_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_directmanipulation_0000_0030 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0030_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_directmanipulation_0000_0030_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/directmanipulation.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/directmanipulation.idl new file mode 100644 index 0000000000000000000000000000000000000000..e56de98e8ea2baabd3a9a9f978c0592027e3f146 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/directmanipulation.idl @@ -0,0 +1,1046 @@ +//**************************************************************************** +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: directmanipulation.idl +// +// Contents: Direct Manipulation interface definitions and related types and enums. +// +//**************************************************************************** + +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// directmanipulation.h") +cpp_quote("//") +cpp_quote("// Direct Manipulation interface definitions and related types and enums") +cpp_quote("//") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") + +cpp_quote("#include ") + +#ifdef LIFTED_SDK +#define DMANIP_INTERFACE(system_uuid, lifted_uuid, help_string) \ + [ \ + local, \ + object, \ + uuid(lifted_uuid), \ + helpstring(help_string), \ + pointer_default(unique) \ + ] + +#define DMANIP_LIBRARY(system_uuid, lifted_uuid, help_string) \ + [ \ + uuid(lifted_uuid), \ + version(1.0), \ + helpstring(help_string), \ + ] + +#define DMANIP_CLASS(system_uuid, lifted_uuid, help_string, class_name) \ + [ \ + uuid(lifted_uuid), \ + helpstring(help_string), \ + ] \ + coclass Microsoft_ ## class_name + +#define DMANIP_INTEROP_CLASS(system_uuid, lifted_uuid, help_string, class_name) \ + [ \ + noncreatable, hidden, restricted, \ + uuid(lifted_uuid), \ + helpstring(help_string), \ + ] \ + coclass Microsoft_ ## class_name + +#define DMANIP_CLSID(clsid, system_uuid, system_str, lifted_uuid, lifted_str) \ + cpp_quote("DEFINE_GUID(CLSID_Microsoft_"#clsid", "##lifted_str");") + +#else +#define DMANIP_INTERFACE(system_uuid, lifted_uuid, help_string) \ + [ \ + local, \ + object, \ + uuid(system_uuid), \ + helpstring(help_string), \ + pointer_default(unique) \ + ] + +#define DMANIP_LIBRARY(system_uuid, lifted_uuid, help_string) \ + [ \ + uuid(system_uuid), \ + version(1.0), \ + helpstring(help_string), \ + ] + +#define DMANIP_CLASS(system_uuid, lifted_uuid, help_string, class_name) \ + [ \ + uuid(system_uuid), \ + helpstring(help_string), \ + ] \ + coclass class_name + +#define DMANIP_INTEROP_CLASS(system_uuid, lifted_uuid, help_string, class_name) \ + [ \ + noncreatable, hidden, restricted, \ + uuid(system_uuid), \ + helpstring(help_string), \ + ] \ + coclass class_name + +#define DMANIP_CLSID(clsid, system_uuid, system_str, lifted_uuid, lifted_str) \ + cpp_quote("DEFINE_GUID(CLSID_"#clsid", "##system_str");") + +#endif /*LIFTED_SDK*/ + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN8)") + +cpp_quote("#if 0") +typedef void* HWND; +cpp_quote("#endif") + +interface IDirectManipulationManager; +interface IDirectManipulationUpdateManager; +interface IDirectManipulationUpdateHandler; +interface IDirectManipulationFrameInfoProvider; +interface IDirectManipulationViewport; +interface IDirectManipulationViewportEventHandler; +interface IDirectManipulationContent; + + +// Defines manipulation states +typedef enum DIRECTMANIPULATION_STATUS +{ + DIRECTMANIPULATION_BUILDING = 0, // Not yet been enabled + DIRECTMANIPULATION_ENABLED = 1, // Enabled to accept input + DIRECTMANIPULATION_DISABLED = 2, // Disabled and can be re-enabled + DIRECTMANIPULATION_RUNNING = 3, // Currently accepting input + DIRECTMANIPULATION_INERTIA = 4, // Currently accepting inertia + DIRECTMANIPULATION_READY = 5, // Ready to accept input + DIRECTMANIPULATION_SUSPENDED = 6 // Accepting input but output is suspended +} DIRECTMANIPULATION_STATUS; + +// Defines hit-testing options +// Note: if new types are ever added, make sure to update DIRECTMANIPULATION_HITTEST_TYPE_SYNCHRONOUS_INCLUDE_PTP +typedef enum DIRECTMANIPULATION_HITTEST_TYPE +{ + // The hit-test thread receives WM_POINTERDOWN always + DIRECTMANIPULATION_HITTEST_TYPE_ASYNCHRONOUS = 0x00000000, + + // The UI thread receives WM_POINTERDOWN always + DIRECTMANIPULATION_HITTEST_TYPE_SYNCHRONOUS = 0x00000001, + + // The hit-test thread receives WM_POINTERDOWN first. If it doesn't call SetContact() for this pointer, the UI thread receives WM_POINTERDOWN + DIRECTMANIPULATION_HITTEST_TYPE_AUTO_SYNCHRONOUS = 0x00000002 + +} DIRECTMANIPULATION_HITTEST_TYPE; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_HITTEST_TYPE)") + +// Defines interaction configuration states +typedef enum DIRECTMANIPULATION_CONFIGURATION +{ + // Configuration settings for all types + DIRECTMANIPULATION_CONFIGURATION_NONE = 0x00000000, + DIRECTMANIPULATION_CONFIGURATION_INTERACTION = 0x00000001, + + // Configuration settings for manipulation type + DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_X = 0x00000002, + DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_Y = 0x00000004, + DIRECTMANIPULATION_CONFIGURATION_SCALING = 0x00000010, + DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_INERTIA = 0x00000020, + DIRECTMANIPULATION_CONFIGURATION_SCALING_INERTIA = 0x00000080, + DIRECTMANIPULATION_CONFIGURATION_RAILS_X = 0x00000100, + DIRECTMANIPULATION_CONFIGURATION_RAILS_Y = 0x00000200, +} DIRECTMANIPULATION_CONFIGURATION; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_CONFIGURATION)") + +// Defines gestures detected by Direct Manipulation +typedef enum DIRECTMANIPULATION_GESTURE_CONFIGURATION +{ + // Default gestures are always detected + DIRECTMANIPULATION_GESTURE_NONE = 0x00000000, + DIRECTMANIPULATION_GESTURE_DEFAULT = 0x00000000, + DIRECTMANIPULATION_GESTURE_CROSS_SLIDE_VERTICAL = 0x00000008, + DIRECTMANIPULATION_GESTURE_CROSS_SLIDE_HORIZONTAL = 0x00000010, + DIRECTMANIPULATION_GESTURE_PINCH_ZOOM = 0x00000020, +} DIRECTMANIPULATION_GESTURE_CONFIGURATION; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_GESTURE_CONFIGURATION)") + +// Defines the manipulation motion types +typedef enum DIRECTMANIPULATION_MOTION_TYPES +{ + DIRECTMANIPULATION_MOTION_NONE = 0x0000, // None + DIRECTMANIPULATION_MOTION_TRANSLATEX = 0x0001, // Translation in the horizontal axis + DIRECTMANIPULATION_MOTION_TRANSLATEY = 0x0002, // Translation in the vertical axis + DIRECTMANIPULATION_MOTION_ZOOM = 0x0004, // Zoom + DIRECTMANIPULATION_MOTION_CENTERX = 0x0010, // The horizontal center of the manipulation + DIRECTMANIPULATION_MOTION_CENTERY = 0x0020, // The vertical center of the manipulation + DIRECTMANIPULATION_MOTION_ALL = DIRECTMANIPULATION_MOTION_TRANSLATEX | + DIRECTMANIPULATION_MOTION_TRANSLATEY | + DIRECTMANIPULATION_MOTION_ZOOM | + DIRECTMANIPULATION_MOTION_CENTERX | + DIRECTMANIPULATION_MOTION_CENTERY +} DIRECTMANIPULATION_MOTION_TYPES; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_MOTION_TYPES)") + +// Defines viewport options +typedef enum DIRECTMANIPULATION_VIEWPORT_OPTIONS +{ + DIRECTMANIPULATION_VIEWPORT_OPTIONS_DEFAULT = 0x0000, + + // This viewport automatically disables itself when a manipulation or a gesture is over + DIRECTMANIPULATION_VIEWPORT_OPTIONS_AUTODISABLE = 0x0001, + + // This viewport updates its content manually by a call to IDirectManipulationUpdateManager::Update (instead of during an input event) + DIRECTMANIPULATION_VIEWPORT_OPTIONS_MANUALUPDATE = 0x0002, + + // The UI thread receives all input for contacts associated first with this viewport, when it is running + DIRECTMANIPULATION_VIEWPORT_OPTIONS_INPUT = 0x0004, + + // This viewport is not implicitly hittested + DIRECTMANIPULATION_VIEWPORT_OPTIONS_EXPLICITHITTEST = 0x0008, + + // Disable pixel snapping on this viewport + DIRECTMANIPULATION_VIEWPORT_OPTIONS_DISABLEPIXELSNAPPING = 0x0010, + +} DIRECTMANIPULATION_VIEWPORT_OPTIONS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_VIEWPORT_OPTIONS)") + +// Defines the rest point behavior of a region +typedef enum DIRECTMANIPULATION_SNAPPOINT_TYPE +{ + DIRECTMANIPULATION_SNAPPOINT_MANDATORY = 0, // The motion will always rest at a snap point + DIRECTMANIPULATION_SNAPPOINT_OPTIONAL = 1, // The motion will rest at a snap point if it ends near it + DIRECTMANIPULATION_SNAPPOINT_MANDATORY_SINGLE = 2, // The motion will always rest at the next snap point + DIRECTMANIPULATION_SNAPPOINT_OPTIONAL_SINGLE = 3, // The motion will rest at the next snap point if it starts far from it +} DIRECTMANIPULATION_SNAPPOINT_TYPE; + +// Define the coordinate system for snap points +typedef enum DIRECTMANIPULATION_SNAPPOINT_COORDINATE +{ + DIRECTMANIPULATION_COORDINATE_BOUNDARY = 0x00, // The origin of snap points coordinates is the content rectangle + DIRECTMANIPULATION_COORDINATE_ORIGIN = 0x01, // The origin of snap points coordinates is a specified origin + DIRECTMANIPULATION_COORDINATE_MIRRORED = 0x10 // The direction of snap points coordinates is reversed relative to the origin +} DIRECTMANIPULATION_SNAPPOINT_COORDINATE; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_SNAPPOINT_COORDINATE)") + +// Defines horizontal content alignment inside a viewport +typedef enum DIRECTMANIPULATION_HORIZONTALALIGNMENT +{ + DIRECTMANIPULATION_HORIZONTALALIGNMENT_NONE = 0x00, + DIRECTMANIPULATION_HORIZONTALALIGNMENT_LEFT = 0x01, + DIRECTMANIPULATION_HORIZONTALALIGNMENT_CENTER = 0x02, + DIRECTMANIPULATION_HORIZONTALALIGNMENT_RIGHT = 0x04, + DIRECTMANIPULATION_HORIZONTALALIGNMENT_UNLOCKCENTER = 0x08 +} DIRECTMANIPULATION_HORIZONTALALIGNMENT; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_HORIZONTALALIGNMENT)") + +// Defines vertical content alignment inside a viewport +typedef enum DIRECTMANIPULATION_VERTICALALIGNMENT +{ + DIRECTMANIPULATION_VERTICALALIGNMENT_NONE = 0x00, + DIRECTMANIPULATION_VERTICALALIGNMENT_TOP = 0x01, + DIRECTMANIPULATION_VERTICALALIGNMENT_CENTER = 0x02, + DIRECTMANIPULATION_VERTICALALIGNMENT_BOTTOM = 0x04, + DIRECTMANIPULATION_VERTICALALIGNMENT_UNLOCKCENTER = 0x08 +} DIRECTMANIPULATION_VERTICALALIGNMENT; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_VERTICALALIGNMENT)") + +// Viewport mode options (superseded by DIRECTMANIPULATION_VIEWPORT_OPTIONS) +typedef enum DIRECTMANIPULATION_INPUT_MODE +{ + DIRECTMANIPULATION_INPUT_MODE_AUTOMATIC = 0, + DIRECTMANIPULATION_INPUT_MODE_MANUAL = 1 +} DIRECTMANIPULATION_INPUT_MODE; + + +// Constants +const UINT32 DIRECTMANIPULATION_KEYBOARDFOCUS = 0xFFFFFFFE; // Pseudo-pointer ID for keyboard +const UINT32 DIRECTMANIPULATION_MOUSEFOCUS = 0xFFFFFFFD; // Pseudo-pointer ID for mouse + +const float DIRECTMANIPULATION_MINIMUM_ZOOM = (float) 0.1; // The minimum zoom boundary permitted is 10% + +// Secondary content class-ids + +DMANIP_CLSID( + VerticalIndicatorContent, + {A10B5F17-AFE0-4AA2-91E9-3E7001D2E6B4}, + "0xa10b5f17, 0xafe0, 0x4aa2, 0x91, 0xe9, 0x3e, 0x70, 0x1, 0xd2, 0xe6, 0xb4", + {B45FA27B-1C61-4B5F-BB1F-0E07606AA5D2}, + "0xB45FA27B, 0x1C61, 0x4B5F, 0xBB, 0x1F, 0x0E, 0x07, 0x60, 0x6A, 0xA5, 0xD2") + +DMANIP_CLSID( + HorizontalIndicatorContent, + {E7D18CF5-3EC7-44D5-A76B-3770F3CF903D}, + "0xe7d18cf5, 0x3ec7, 0x44d5, 0xa7, 0x6b, 0x37, 0x70, 0xf3, 0xcf, 0x90, 0x3d", + {BCA11F2C-3120-48FD-8CE1-48BBC34062FC}, + "0xBCA11F2C, 0x3120, 0x48FD, 0x8C, 0xE1, 0x48, 0xBB, 0xC3, 0x40, 0x62, 0xFC") + +DMANIP_CLSID( + VirtualViewportContent, + {3206A19A-86F0-4CB4-A7F3-16E3B7E2D852}, + "0x3206a19a, 0x86f0, 0x4cb4, 0xa7, 0xf3, 0x16, 0xe3, 0xb7, 0xe2, 0xd8, 0x52", + {30CAE781-6F39-4397-8A62-FF22AD12C379}, + "0x30CAE781, 0x6F39, 0x4397, 0x8A, 0x62, 0xFF, 0x22, 0xAD, 0x12, 0xC3, 0x79") + +// Behavior objects' class-ids + +DMANIP_CLSID( + DragDropConfigurationBehavior, + {09B01B3E-BA6C-454D-82E8-95E352329F23}, + "0x09b01b3e, 0xba6c, 0x454d, 0x82, 0xe8, 0x95, 0xe3, 0x52, 0x32, 0x9f, 0x23", + {93E92A0A-67E1-4F7C-9AF2-E4B4D18C5FE4}, + "0x93E92A0A, 0x67E1, 0x4F7C, 0x9A, 0xF2, 0xE4, 0xB4, 0xD1, 0x8C, 0x5F, 0xE4") + +DMANIP_CLSID( + AutoScrollBehavior, + {26126A51-3C70-4C9A-AEC2-948849EEB093}, + "0x26126a51, 0x3c70, 0x4c9a, 0xae, 0xc2, 0x94, 0x88, 0x49, 0xee, 0xb0, 0x93", + {CD37E5C4-B9ED-490A-9025-68883E625D13}, + "0xCD37E5C4, 0xB9ED, 0x490A, 0x90, 0x25, 0x68, 0x88, 0x3E, 0x62, 0x5D, 0x13") + +// Services + +DMANIP_CLSID( + DeferContactService, + {D7B67CF4-84BB-434E-86AE-6592BBC9ABD9}, + "0xd7b67cf4, 0x84bb, 0x434e, 0x86, 0xae, 0x65, 0x92, 0xbb, 0xc9, 0xab, 0xd9", + {91BDAF5D-EDA9-4AF2-9C4D-D0E8F4A35FA7}, + "0x91BDAF5D, 0xEDA9, 0x4AF2, 0x9C, 0x4D, 0xD0, 0xE8, 0xF4, 0xA3, 0x5F, 0xA7") + + +// Direct Manipulation manager object and factory. +DMANIP_INTERFACE( + FBF5D3B4-70C7-4163-9322-5A6F660D6FBC, + 1E8F982A-0562-40D5-B245-A2D4EC4E2338, + "IDirectManipulationManager Interface") +interface IDirectManipulationManager : IUnknown +{ + // Reference counted activation for Direct Manipulation, always pair with Deactivate(). + // Activation is specific to a single window handle. + HRESULT Activate([in, annotation("_In_")] HWND window); + + // Deactivates a reference of Direct Manipulation, specific to a particular window handle. + HRESULT Deactivate([in, annotation("_In_")] HWND window); + +#ifndef LIFTED_SDK + // Registers an optional window for hit-testing, which will receive WM_POINTERDOWN first + HRESULT RegisterHitTestTarget([in, annotation("_In_")] HWND window, + [in, annotation("_In_opt_")] HWND hitTestWindow, + [in, annotation("_In_")] DIRECTMANIPULATION_HITTEST_TYPE type); +#endif /*!LIFTED_SDK*/ + + // Process a keyboard or mouse message to drive manipulations. + // An output value of handled == TRUE indicates that Direct Manipulation has handled the event and no further action + // should be taken. + HRESULT ProcessInput([in, annotation("_In_")] const MSG *message, + [out, retval, annotation("_Out_")] BOOL *handled); + + // Gets an instance of IDirectManipulationUpdateManager which manages how content updates are triggered + HRESULT GetUpdateManager([in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), retval, annotation("_COM_Outptr_")] void **object); + + // Factory method to create a new instance of viewport. The retrieved object implements IDirectManipulationViewport + HRESULT CreateViewport([in, annotation("_In_opt_")] IDirectManipulationFrameInfoProvider *frameInfo, + [in, annotation("_In_")] HWND window, + [in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), retval, annotation("_COM_Outptr_")] void **object); + + // Factory method to create a new instance of content, the retrieved object implements IDirectManipulationContent + HRESULT CreateContent([in, annotation("_In_opt_")] IDirectManipulationFrameInfoProvider *frameInfo, + [in, annotation("_In_")] REFCLSID clsid, + [in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), retval, annotation("_COM_Outptr_")] void **object); +} + +// Direct Manipulation manager (v2). +DMANIP_INTERFACE( + FA1005E9-3D16-484C-BFC9-62B61E56EC4E, + 040E1600-93A2-43A5-A08E-3BAA2160A4AF, + "IDirectManipulationManager2 Interface") +interface IDirectManipulationManager2 : IDirectManipulationManager +{ + // Factory method to create a behavior. The returned object could then be attached to a viewport object. + HRESULT CreateBehavior([in, annotation("_In_")] REFCLSID clsid, + [in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), retval, annotation("_COM_Outptr_")] void **object); +} + +// Direct Manipulation manager (v3). +DMANIP_INTERFACE( + 2CB6B33D-FFE8-488C-B750-FBDFE88DCA8C, + 024D86A1-69A3-457A-8993-6897A87070FD, + "IDirectManipulationManager3 Interface") +interface IDirectManipulationManager3 : IDirectManipulationManager2 +{ + // Return the requested global DirectManipulation service + HRESULT GetService([in, annotation("_In_")] REFCLSID clsid, + [in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), retval, annotation("_COM_Outptr_")] void **object); +} + +// Defines a Direct Manipulation viewport +DMANIP_INTERFACE( + 28b85a3d-60a0-48bd-9ba1-5ce8d9ea3a6d, + 80C9672B-B125-453B-A063-D0A3A94DEDAA, + "IDirectManipulationViewport Interface") +interface IDirectManipulationViewport : IUnknown +{ + // Directs the viewport to begin or resume responding to input + HRESULT Enable(); + + // Directs the viewport to disable responding to input + HRESULT Disable(); + + // Adds a specific touch contact identifier to the manipulation processor associated with this viewport object. + // The pointer identifier is retrieved using GET_POINTERID_WPARAM from a pointer message. + // The contact is automatically removed on WM_POINTERUP. + HRESULT SetContact([in, annotation("_In_")] UINT32 pointerId); + + // Removes the association between a specific touch contact and a viewport object prior to + // WM_POINTERUP, for example if touch capture changes. + HRESULT ReleaseContact([in, annotation("_In_")] UINT32 pointerId); + + // This releases all contacts currently associated with this object + HRESULT ReleaseAllContacts(); + + // Gets the viewport's current status + HRESULT GetStatus([out, retval, annotation("_Out_")] DIRECTMANIPULATION_STATUS *status); + + // Gets the viewport's object and identifier tag which was set by the client. The object can be + // any object which inherits from IUnknown. + HRESULT GetTag([in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void **object, + [out, annotation("_Out_opt_")] UINT32 *id); + + // Sets an identifier object and identifier on the viewport object + HRESULT SetTag([in, unique, annotation("_In_opt_")] IUnknown *object, [in, annotation("_In_")] UINT32 id); + + // Gets the viewport coordinates inside its window + HRESULT GetViewportRect([out, retval, annotation("_Out_")] RECT *viewport); + + // Sets the viewport coordinates inside its window + HRESULT SetViewportRect([in, annotation("_In_")] const RECT *viewport); + + // Zooms to a specific area of the primary content + HRESULT ZoomToRect([in, annotation("_In_")] const float left, [in, annotation("_In_")] const float top, + [in, annotation("_In_")] const float right, [in, annotation("_In_")] const float bottom, [in, annotation("_In_")] BOOL animate); + + // Specifies the transform from viewport coordinates to window coordinates + HRESULT SetViewportTransform([in, annotation("_In_reads_(pointCount)")] const float *matrix, [in, annotation("_In_")] DWORD pointCount); + + // Specifies a transform to apply to visual updates of the content + HRESULT SyncDisplayTransform([in, annotation("_In_reads_(pointCount)")] const float *matrix, [in, annotation("_In_")] DWORD pointCount); + + // Gets the primary content, which implements IDirectManipulationContent and IDirectManipulationPrimaryContent + HRESULT GetPrimaryContent([in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), retval, annotation("_COM_Outptr_")] void **object); + + // Adds a new content instance to the viewport + HRESULT AddContent([in, unique, annotation("_In_")] IDirectManipulationContent *content); + + // Removes a content instance from the viewport + HRESULT RemoveContent([in, unique, annotation("_In_")] IDirectManipulationContent *content); + + // Specifies control options for this viewport + HRESULT SetViewportOptions([in, annotation("_In_")] DIRECTMANIPULATION_VIEWPORT_OPTIONS options); + + // Adds a manipulation configuration to the list of configurations supported by this viewport + HRESULT AddConfiguration([in, annotation("_In_")] DIRECTMANIPULATION_CONFIGURATION configuration); + + // Removes a manipulation configuration from the list of configurations supported by this viewport + HRESULT RemoveConfiguration([in, annotation("_In_")] DIRECTMANIPULATION_CONFIGURATION configuration); + + // Sets the current manipulation configuration + HRESULT ActivateConfiguration([in, annotation("_In_")] DIRECTMANIPULATION_CONFIGURATION configuration); + + // Defines for which gestures the corresponding input will be forwarded to the UI thread + HRESULT SetManualGesture([in, annotation("_In_")] DIRECTMANIPULATION_GESTURE_CONFIGURATION configuration); + + // Determines if this viewport allows chaining input to parent viewports + HRESULT SetChaining([in, annotation("_In_")] DIRECTMANIPULATION_MOTION_TYPES enabledTypes); + + // Specifies a handler for viewport status and content update events + HRESULT AddEventHandler([in, annotation("_In_opt_")] HWND window, + [in, annotation("_In_")] IDirectManipulationViewportEventHandler *eventHandler, + [out, retval, annotation("_Out_")] DWORD *cookie); + + // Removes an event handler from the viewport + HRESULT RemoveEventHandler([in, annotation("_In_")] DWORD cookie); + + // Defines if the UI thread will receive all input for contacts associated first with this viewport, when it is running + // (here DIRECTMANIPULATION_INPUT_MODE_MANUAL has the same effect as DIRECTMANIPULATION_VIEWPORT_OPTIONS_INPUT) + HRESULT SetInputMode([in, annotation("_In_")] DIRECTMANIPULATION_INPUT_MODE mode); + + // Defines if this viewport updates its content manually by a call to IDirectManipulationUpdateManager::Update (instead of during an input event) + // (here DIRECTMANIPULATION_INPUT_MODE_MANUAL has the same effect as DIRECTMANIPULATION_VIEWPORT_OPTIONS_MANUALUPDATE) + HRESULT SetUpdateMode([in, annotation("_In_")] DIRECTMANIPULATION_INPUT_MODE mode); + + // Directs the viewport to stop its current manipulation immediately, and go back to the READY state + HRESULT Stop(); + + // Release all resources used by this viewport and prepare it for destruction from memory + HRESULT Abandon(); +} + +// Defines a Direct Manipulation viewport (v2) +DMANIP_INTERFACE( + 923CCAAC-61E1-4385-B726-017AF189882A, + 13574032-95CF-4F42-B7F7-53B67BC91DCB, + "IDirectManipulationViewport2 Interface") +interface IDirectManipulationViewport2 : IDirectManipulationViewport +{ + // Add a behavior to this viewport and return a cookie to the caller. + HRESULT AddBehavior([in, unique, annotation("_In_")] IUnknown *behavior, + [out, retval, annotation("_Out_")] DWORD *cookie); + + // Remove a behavior from this viewport that matches the given cookie. + HRESULT RemoveBehavior([in, annotation("_In_")] DWORD cookie); + + // Removes all the behaviors previously attached to this viewport. + HRESULT RemoveAllBehaviors(); +} + +// Application-implemented interface to receive notifications about manipulations +DMANIP_INTERFACE( + 952121DA-D69F-45F9-B0F9-F23944321A6D, + 7605BD5C-6C94-4C55-8E49-F1F57843FB95, + "IDirectManipulationViewportEventHandler Interface") +interface IDirectManipulationViewportEventHandler : IUnknown +{ + // This method is called when the viewport's status changes + HRESULT OnViewportStatusChanged([in, annotation("_In_")] IDirectManipulationViewport *viewport, + [in, annotation("_In_")] DIRECTMANIPULATION_STATUS current, + [in, annotation("_In_")] DIRECTMANIPULATION_STATUS previous); + + // This method is called after all the content instances in the viewport have been updated for the current input + HRESULT OnViewportUpdated([in, annotation("_In_")] IDirectManipulationViewport *viewport); + + // This method is called when a content intance inside viewport is updated + HRESULT OnContentUpdated([in, annotation("_In_")] IDirectManipulationViewport *viewport, + [in, annotation("_In_")] IDirectManipulationContent *content); +} + +// Represents visual content that gets transformed by a manipulation +DMANIP_INTERFACE( + B89962CB-3D89-442B-BB58-5098FA0F9F16, + 61C164A4-065A-47C1-8633-2367F9F73CA1, + "IDirectManipulationContent Interface") +interface IDirectManipulationContent : IUnknown +{ + // Gets the current content size and boundaries + HRESULT GetContentRect([out, annotation("_Out_")] RECT *contentSize); + + // Sets the current content size and boundaries + HRESULT SetContentRect([in, annotation("_In_")] const RECT *contentSize); + + // Gets the viewport object that is currently attached to the content; the returned object is a IDirectManipulationViewport + HRESULT GetViewport([in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), retval, annotation("_COM_Outptr_")] void **object); + + // Gets the content's object and identifier tag which was set by the client. The object can be + // any object which inherits from IUnknown. + HRESULT GetTag([in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), annotation("_COM_Outptr_opt_")] void **object, + [out, annotation("_Out_opt_")] UINT32 *id); + + // Sets an identifier object and identifier on the content object + HRESULT SetTag([in, unique, annotation("_In_opt_")] IUnknown *object, [in, annotation("_In_")] UINT32 id); + + // Gets the current visual transform applied to the content + HRESULT GetOutputTransform([out, annotation("_Out_writes_(pointCount)")] float *matrix, [in, annotation("_In_")] DWORD pointCount); + + // Gets the current manipulation transform for the content + HRESULT GetContentTransform([out, annotation("_Out_writes_(pointCount)")] float *matrix, [in, annotation("_In_")] DWORD pointCount); + + // Syncs the manipulation transform for the content to a transform provided by the application, while preserving the output transform + HRESULT SyncContentTransform([in, annotation("_In_reads_(pointCount)")] const float *matrix, [in, annotation("_In_")] DWORD pointCount); +} + +// This describes operations only possible on the primary instance of content for a given viewport +DMANIP_INTERFACE( + C12851E4-1698-4625-B9B1-7CA3EC18630B, + 6DC692EA-7CA5-4E68-A309-0F8E669DBB03, + "IDirectManipulationPrimaryContent Interface") +interface IDirectManipulationPrimaryContent : IUnknown +{ + // Specifies a uniform snap interval for the motion type + HRESULT SetSnapInterval([in, annotation("_In_")] DIRECTMANIPULATION_MOTION_TYPES motion, [in, annotation("_In_")] float interval, + [in, annotation("_In_")] float offset); + + // Specifies an array of fixed snap points for the motion type + HRESULT SetSnapPoints([in, annotation("_In_")] DIRECTMANIPULATION_MOTION_TYPES motion, + [in, annotation("_In_reads_opt_(pointCount)")] const float *points, [in, annotation("_In_")] DWORD pointCount); + + // Specifies the snap point behavior for all snap points on the motion type + HRESULT SetSnapType([in, annotation("_In_")] DIRECTMANIPULATION_MOTION_TYPES motion, + [in, annotation("_In_")] DIRECTMANIPULATION_SNAPPOINT_TYPE type); + + // Sets the coordinate to which snap points will be relative to. Snap points can be set to count "in reverse" and from any start value. + // In that case, "origin" is used to determine the far anchor point that valid snap points can take (the near anchor point being 0.0f). + // This only applies when coordinateType is DIRECTMANIPULATION_COORDINATE_ORIGIN or DIRECTMANIPULATION_COORDINATE_MIRRORED_ORIGIN. + // When using DIRECTMANIPULATION_COORDINATE_BOUNDARY, "origin" is ignored. + HRESULT SetSnapCoordinate([in, annotation("_In_")] DIRECTMANIPULATION_MOTION_TYPES motion, + [in, annotation("_In_")] DIRECTMANIPULATION_SNAPPOINT_COORDINATE coordinate, + [in, annotation("_In_")] float origin); + + // Sets the zoom boundaries for the content. ZoomMininum must be at least DIRECTMANIPULATION_MINIMUM_ZOOM. + HRESULT SetZoomBoundaries([in, annotation("_In_")] float zoomMinimum, [in, annotation("_In_")] float zoomMaximum); + + // Sets the horizontal content alignment + HRESULT SetHorizontalAlignment([in, annotation("_In_")] DIRECTMANIPULATION_HORIZONTALALIGNMENT alignment); + + // Sets the vertical content alignment + HRESULT SetVerticalAlignment([in, annotation("_In_")] DIRECTMANIPULATION_VERTICALALIGNMENT alignment); + + // Gets the rest position transform of inertia for the primary content + HRESULT GetInertiaEndTransform([out, annotation("_Out_writes_(pointCount)")] float *matrix, [in, annotation("_In_")] DWORD pointCount); + + // Gets the center point for the current manipulation, if it exists + HRESULT GetCenterPoint([out, annotation("_Out_")] float *centerX, [out, annotation("_Out_")] float *centerY); +} + +// Defines drag-drop behavior states +typedef enum DIRECTMANIPULATION_DRAG_DROP_STATUS +{ + DIRECTMANIPULATION_DRAG_DROP_READY = 0, + DIRECTMANIPULATION_DRAG_DROP_PRESELECT = 1, + DIRECTMANIPULATION_DRAG_DROP_SELECTING = 2, + DIRECTMANIPULATION_DRAG_DROP_DRAGGING = 3, + DIRECTMANIPULATION_DRAG_DROP_CANCELLED = 4, + DIRECTMANIPULATION_DRAG_DROP_COMMITTED = 5 +} DIRECTMANIPULATION_DRAG_DROP_STATUS; + +// Application-implemented interface to receive notifications about drag-drop behavior specific events +DMANIP_INTERFACE( + 1FA11B10-701B-41AE-B5F2-49E36BD595AA, + 1EB08D03-BA3C-43E0-BA94-5EE21B8D0850, + "IDirectManipulationDragDropEventHandler Interface") +interface IDirectManipulationDragDropEventHandler : IUnknown +{ + // Called when a status change happens in the viewport the drag-drop behavior is attached to. + HRESULT OnDragDropStatusChange([in, annotation("_In_")] IDirectManipulationViewport2 *viewport, + [in, annotation("_In_")] DIRECTMANIPULATION_DRAG_DROP_STATUS current, + [in, annotation("_In_")] DIRECTMANIPULATION_DRAG_DROP_STATUS previous); +} + +typedef enum DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION +{ + // Configuration setting for drag-drop type. + // SELECT_ONLY and SELECT_DRAG are valid only when either HORIZONTAL or VERTICAL is set, but not both. + // For HOLD_DRAG, both HORIZONTAL and VERTICAL must be set. + DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION_VERTICAL = 0x00000001, + DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION_HORIZONTAL = 0x00000002, + DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION_SELECT_ONLY = 0x00000010, + DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION_SELECT_DRAG = 0x00000020, + DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION_HOLD_DRAG = 0x00000040 +} DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION)") + +DMANIP_INTERFACE( + 814B5AF5-C2C8-4270-A9B7-A198CE8D02FA, + 8C0A60CC-9FE2-4D6D-B125-505C224BDBBC, + "IDirectManipulationDragDropBehavior Interface") +interface IDirectManipulationDragDropBehavior : IUnknown +{ + // Call to set the configuration of the drag-drop behavior + HRESULT SetConfiguration([in, annotation("_In_")] DIRECTMANIPULATION_DRAG_DROP_CONFIGURATION configuration); + + // Call to get the current status of the behavior + HRESULT GetStatus([out, retval, annotation("_Out_")] DIRECTMANIPULATION_DRAG_DROP_STATUS *status); +} + +// Defines gesture types +typedef enum DIRECTMANIPULATION_INTERACTION_TYPE +{ + DIRECTMANIPULATION_INTERACTION_BEGIN = 0, + DIRECTMANIPULATION_INTERACTION_TYPE_MANIPULATION = 1, + DIRECTMANIPULATION_INTERACTION_TYPE_GESTURE_TAP = 2, + DIRECTMANIPULATION_INTERACTION_TYPE_GESTURE_HOLD = 3, + DIRECTMANIPULATION_INTERACTION_TYPE_GESTURE_CROSS_SLIDE = 4, + DIRECTMANIPULATION_INTERACTION_TYPE_GESTURE_PINCH_ZOOM = 5, + DIRECTMANIPULATION_INTERACTION_END = 100 +} DIRECTMANIPULATION_INTERACTION_TYPE; + +// Application-implemented interface to receive notifications about interaction type events +DMANIP_INTERFACE( + E43F45B8-42B4-403E-B1F2-273B8F510830, + 320599B5-5B82-4DB2-B881-4B4ACB0BDF63, + "IDirectManipulationInteractionEventHandler Interface") +interface IDirectManipulationInteractionEventHandler : IUnknown +{ + // Called when a gesture is detected. + HRESULT OnInteraction([in, annotation("_In_")] IDirectManipulationViewport2 *viewport, + [in, annotation("_In_")] DIRECTMANIPULATION_INTERACTION_TYPE interaction); +} + + +// This interface represents time-based information used by manipulations +DMANIP_INTERFACE( + fb759dba-6f4c-4c01-874e-19c8a05907f9, + 3D6E45E3-6886-45E5-8D35-FFC24A47D9AF, + "IDirectManipulationFrameInfoProvider Interface") +interface IDirectManipulationFrameInfoProvider : IUnknown +{ + // Retrieves the time, in ms, to the next frame to render. + HRESULT GetNextFrameInfo([out, annotation("_Out_")] ULONGLONG *time, + [out, annotation("_Out_")] ULONGLONG *processTime, + [out, annotation("_Out_")] ULONGLONG *compositionTime); +} + +// Defines a compositor object, which drives visual updates of content on screen +DMANIP_INTERFACE( + 537A0825-0387-4EFA-B62F-71EB1F085A7E, + 53CB09B8-8B30-4AE0-A9DD-1F3582D299D5, + "IDirectManipulationCompositor Interface") +interface IDirectManipulationCompositor : IUnknown +{ + // Adds an instance of content to be managed by the compositor, with parent and child IDCompositionVisual + HRESULT AddContent([in, annotation("_In_")] IDirectManipulationContent *content, + [in, annotation("_In_opt_")] IUnknown *device, + [in, annotation("_In_opt_")] IUnknown *parentVisual, + [in, annotation("_In_opt_")] IUnknown *childVisual); + + // Removes an instance of content from being managed by the compositor + HRESULT RemoveContent([in, annotation("_In_")] IDirectManipulationContent *content); + + // Specifies the update manager which will be used to handle inertia animations + HRESULT SetUpdateManager([in, annotation("_In_")] IDirectManipulationUpdateManager *updateManager); + + // Flushes any pending visuals from the compositor + HRESULT Flush(); +} + +// Defines a compositor object, which drives visual updates of content on screen +DMANIP_INTERFACE( + D38C7822-F1CB-43CB-B4B9-AC0C767A412E, + B09294A8-9A4E-40B0-A84C-AF3412723794, + "IDirectManipulationCompositor2 Interface") +interface IDirectManipulationCompositor2 : IDirectManipulationCompositor +{ + // Adds an instance of content to be managed by the compositor, with cross process chaining enabled + HRESULT AddContentWithCrossProcessChaining([in, annotation("_In_")] IDirectManipulationPrimaryContent *content, + [in, annotation("_In_opt_")] IUnknown *device, + [in, annotation("_In_opt_")] IUnknown *parentVisual, + [in, annotation("_In_opt_")] IUnknown *childVisual); +} + +// Defines methods for handling inertia animation update events +DMANIP_INTERFACE( + 790B6337-64F8-4FF5-A269-B32BC2AF27A7, + 1BEA57EA-3C25-4B30-8088-FC132540E1E5, + "IDirectManipulationUpdateHandler Interface") +interface IDirectManipulationUpdateHandler : IUnknown +{ + HRESULT Update(); +} + +// Defines methods for driving a compositor object automatically or manually +DMANIP_INTERFACE( + B0AE62FD-BE34-46E7-9CAA-D361FACBB9CC, + 54697F09-EE1F-4A4C-9873-C7A6162BD249, + "IDirectManipulationUpdateManager Interface") +interface IDirectManipulationUpdateManager : IUnknown +{ + // Registers a callback triggered by an event handle + HRESULT RegisterWaitHandleCallback([in, annotation("_In_")] HANDLE handle, + [in, annotation("_In_")] IDirectManipulationUpdateHandler *eventHandler, + [out, annotation("_Out_")] DWORD *cookie); + + // Unregisters a callback + HRESULT UnregisterWaitHandleCallback([in, annotation("_In_")] DWORD cookie); + + // Manually updates Direct Manipulation for the current time + HRESULT Update([in, annotation("_In_opt_")] IDirectManipulationFrameInfoProvider *frameInfo); +} + +// Defines automatic-scrolling behavior. +typedef enum DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION +{ + // If there is an ongoing scrolling motion, slowly stops the motion along its direction of motion. + DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION_STOP = 0, + + // Performs scrolling motion towards the end of the content. + DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION_FORWARD = 1, + + // Performs scrolling motion towards the origin of the viewport. + DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION_REVERSE = 2, + +} DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION; + +// Behavior to perform automatic-scrolling on the viewport. +DMANIP_INTERFACE( + 6D5954D4-2003-4356-9B31-D051C9FF0AF7, + 4FF0CFBD-ABA0-45BF-BFE2-73C5156ECF24, + "IDirectManipulationAutoScrollBehavior Interface") +interface IDirectManipulationAutoScrollBehavior : IUnknown +{ + // Perform a starting or stopping auto-scroll animation on the viewport. + // Note: Only translation motions x and y are supported. Combining x and y motion types is also allowed. + HRESULT SetConfiguration([in, annotation("_In_")] DIRECTMANIPULATION_MOTION_TYPES motionTypes, + [in, annotation("_In_")] DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION scrollMotion); +} + +// Service to enable deferring SetContact calls with a timeout +DMANIP_INTERFACE( + 652D5C71-FE60-4A98-BE70-E5F21291E7F1, + CA5024CA-51C7-4EB3-9393-65A69297AF8C, + "IDirectManipulationDeferContactService Interface") +interface IDirectManipulationDeferContactService : IUnknown +{ + // Specifies an amount of time (in ms) before SetContact (pointerId, viewport) associations take effect. + // The maximum amount of time which can be specified is 500ms. + // This function needs to be called before SetContact (for a given pointerId). + HRESULT DeferContact([in, annotation("_In_")] UINT32 pointerId, [in, annotation("_In_")] UINT32 timeout); + + // Cancel all scheduled SetContact calls for this pointerId. + // This function fails if the previously specified timeout has already been reached + HRESULT CancelContact([in, annotation("_In_")] UINT32 pointerId); + + // Immediately process a previously scheduled SetContact + HRESULT CancelDeferral([in, annotation("_In_")] UINT32 pointerId); +} + +#ifdef LIFTED_SDK +// Defines a Direct Manipulation compositor (Experimental) +[ + local, + object, + uuid(cf49a652-14eb-4d6c-bbf9-951745182122), + helpstring("IExpDirectManipulationCompositor Interface"), + pointer_default(unique) +] +interface IExpDirectManipulationCompositor : IUnknown +{ + HRESULT AddContentAndGetSharedTransform( + [in, annotation("_In_")] IDirectManipulationContent* content, + [in, annotation("_In_")] IUnknown* compositor, + [out, annotation("_Outptr_")] IUnknown** sharedTransform); + + HRESULT CreateSharedInteractionForViewport( + [in, annotation("_In_")] IDirectManipulationViewport* viewport, + [in, annotation("_In_")] IUnknown* compositor, + [out, annotation("_Outptr_")] IUnknown** sharedInteraction); +} + +// Defines the parametric curve types +typedef enum EXP_DIRECTMANIPULATION_PARAMETRIC_TYPE +{ + DIRECTMANIPULATION_PARAMETRIC_NONE = 0x00000, // None + DIRECTMANIPULATION_PARAMETRIC_TRANSLATEX = 0x00001, // Total Translation in the horizontal axis + DIRECTMANIPULATION_PARAMETRIC_TRANSLATEY = 0x00002, // Total Translation in the vertical axis + DIRECTMANIPULATION_PARAMETRIC_ZOOM = 0x00004, // Zoom + DIRECTMANIPULATION_PARAMETRIC_ZOOMX = 0x00040, // Zoom in the horizontal axis + DIRECTMANIPULATION_PARAMETRIC_ZOOMY = 0x00080, // Zoom in the vertical axis + DIRECTMANIPULATION_PARAMETRIC_PANX = 0x00100, // Amount panned in the horizontal axis + DIRECTMANIPULATION_PARAMETRIC_PANY = 0x00200, // Amount panned in the vertical axis + DIRECTMANIPULATION_PARAMETRIC_VELOCITY_TRANSLATEX = 0x10001, // Rate of change of TranslateX, in milliseconds + DIRECTMANIPULATION_PARAMETRIC_VELOCITY_TRANSLATEY = 0x10002, // Rate of change of TranslateY, in milliseconds + DIRECTMANIPULATION_PARAMETRIC_VELOCITY_ZOOM = 0x10004, // Rate of change of Zoom, in milliseconds + DIRECTMANIPULATION_PARAMETRIC_VELOCITY_PANX = 0x10100, // Rate of change of PanX, in milliseconds + DIRECTMANIPULATION_PARAMETRIC_VELOCITY_PANY = 0x10200 // Rate of change of PanY, in milliseconds +} DIRECTMANIPULATION_PARAMETRIC_TYPE; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(DIRECTMANIPULATION_PARAMETRIC_TYPE)") + +// Defines a Direct Manipulation parametric motion behavior. (Experimental) +// This defines the motion of a content using parametric motion curve(s) +[ + local, + object, + uuid(28C7F993-D655-4CFD-AF37-85E9854D44A3), + helpstring("IExpDirectManipulationParametricMotionBehavior Interface"), + pointer_default(unique) +] +interface IExpDirectManipulationParametricMotionBehavior : IUnknown +{ + // Creates a parametric motion curve object that can be configured and applied on a parametric motion behavior object. + // The retrieved object implements IDirectManipulationParametricMotionCurve. + HRESULT CreateCurve([in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), retval, annotation("_COM_Outptr_")] void** object); + + + // Applies a parametric motion curve for the specified source-to-target property type mapping. + HRESULT ApplyCurves([in, annotation("_In_")] DWORD targetPropertyType, + [in, annotation("_In_")] DWORD sourcePropertyType, + [in, annotation("_In_reads_opt_(curveCount)")] IUnknown** curves, + [in, annotation("_In_")] DWORD curveCount); + + // Notifies this object that its velocity estimation/accumulation is no longer valid, and resets it. + HRESULT ResetVelocity(); +} + +// Defines a Direct Manipulation primary instance of the content for a given viewport (Experimental) +[ + local, + object, + uuid(9AB0233D-77E7-4852-934B-648F88FE9B93), + helpstring("IExpDirectManipulationPrimaryContent Interface"), + pointer_default(unique) +] +interface IExpDirectManipulationPrimaryContent : IDirectManipulationPrimaryContent +{ + // Set the content transform to the provided value(s), by either animating or jumping + // immediately there. + HRESULT SetContentTransformValues( + [in, annotation("_In_reads_(valueCount)")] const DIRECTMANIPULATION_PARAMETRIC_TYPE* valuesRequested, + [in, annotation("_In_reads_(valueCount)")] const float* values, + [in, annotation("_In_")] const DWORD valueCount); +} + +// Curve coordinate options +typedef enum EXP_DIRECTMANIPULATION_CURVE_COORDINATE +{ + // The curve coordinates are evaluated in the content coordinate space, which are scaled during zoom. + // This is the default. + DIRECTMANIPULATION_CURVE_COORDINATE_SCALING = 0, + + // The curve coordinates are evaluated in the viewport coordinate space and are not affected by zoom. + DIRECTMANIPULATION_CURVE_COORDINATE_STATIC = 1, + +} DIRECTMANIPULATION_CURVE_COORDINATE; + +// Parametric definition of motion curve that parametrically maps source motion values onto target motion values. +[ + local, + object, + uuid(52765DD7-B932-4747-9FD3-3C9EFEF979D7), + helpstring("IDirectManipulationParametricMotionCurve Interface"), + pointer_default(unique) +] +interface IExpDirectManipulationParametricMotionCurve : IUnknown +{ + // Sets the coordinate that transforms the source values before evaluating the curve. + // The staticOriginOffset and the scalingOriginOffset adjusted by the content-scale factor are both applied first. + // The optional offsetRange parameter specifies the minimum and maximum values for (staticOriginOffset + scalingOriginOffset * scale) + // The curve-coordinate determines how content-scale affects the source values before evaluating the curve. + HRESULT SetSourceCoordinate([in, annotation("_In_")] float staticOriginOffset, + [in, annotation("_In_")] float scalingOriginOffset, + [in, annotation("_In_reads_opt_(2)")] float* offsetRange, + [in, annotation("_In_")] DIRECTMANIPULATION_CURVE_COORDINATE curveCoordinate); + + // Sets the coordinate that transforms the target values after evaluating the curve. + // The curve-coordinate determines how content-scale affects the target values after evaluating the curve. + HRESULT SetTargetCoordinate([in, annotation("_In_")] float staticOriginOffset, + [in, annotation("_In_")] float scalingOriginOffset, + [in, annotation("_In_reads_opt_(2)")] float* offsetRange, + [in, annotation("_In_")] DIRECTMANIPULATION_CURVE_COORDINATE curveCoordinate); + + // Adds a curve-sgement consisting of contiguous line-segments formed by the given list of points in the + // curve-coordinate defined on this parametric motion curve object. The points are each given as a pair of + // consecutive source and target values. + HRESULT AddSegment([in, annotation("_In_reads_(arraySize)")] float* points, + [in, annotation("_In_")] DWORD arraySize); + + // Adds a cubic-polynomial curve. The offsetSource offsets the source-values using the curve-coordinate defined + // on this parametric motion curve object. This offset also marks the beginning-offset of this curve. + HRESULT AddCubic([in, annotation("_In_")] float offsetSource, + [in, annotation("_In_")] float constantCoefficient, + [in, annotation("_In_")] float linearCoefficient, + [in, annotation("_In_")] float quadraticCoefficient, + [in, annotation("_In_")] float cubicCoefficient); + + // Adds a hyperbolic tangent curve segment. The formula is: + // f(x) = ( tanh ( (x + offsetShift ) * offsetScale ) + resultShift ) * resultScale + // The offsetSource parameter marks the beginning offset of this curve but does not shift the curve in any way. + HRESULT AddTanh([in, annotation("_In_")] float offsetSource, + [in, annotation("_In_")] float offsetShift, + [in, annotation("_In_")] float offsetScale, + [in, annotation("_In_")] float resultShift, + [in, annotation("_In_")] float resultScale); + + // Clears any curves set on this parametric motion curve object and resets the curve-coordinate to initial state. + HRESULT Reset(); +} + +// Class-id for creating secondary content or primary content parametric motion behavior. + +DMANIP_CLSID( + ParametricMotionBehavior, + { 8A7BD110-3F9D-472D-BA35-DDD2E0CE94A6 }, + "0x8a7bd110, 0x3f9d, 0x472d, 0xba, 0x35, 0xdd, 0xd2, 0xe0, 0xce, 0x94, 0xa6", + { EB72F502-0028-4406-BA4F-FC3D4C06C1E9 }, + "0xEB72F502, 0x0028, 0x4406, 0xBA, 0x4F, 0xFC, 0x3D, 0x4C, 0x06, 0xC1, 0xE9") + +#endif /*LIFTED_SDK*/ + + +cpp_quote("#endif // #if (NTDDI_VERSION > NTDDI_WIN8)") + +DMANIP_LIBRARY( + 9FBEDF98-F6D8-4E3B-B488-FA66DBF5E9F3, + 9E03AE76-8AEF-4AA4-B5A4-D05207E9252F, + "Direct Manipulation 1.0 Type Library") +library DirectManipulation +{ + DMANIP_INTEROP_CLASS( + 34E211B6-3650-4F75-8334-FA359598E1C5, + 61B72534-CD8D-4B28-BEFE-40A5AEF99FDC, + "DirectManipulationViewport Class, exposed for managed interop definitions", + DirectManipulationViewport) + { + interface IDirectManipulationViewport2; + [default] interface IDirectManipulationViewport; + } + + DMANIP_INTEROP_CLASS( + 9FC1BFD5-1835-441A-B3B1-B6CC74B727D0, + 1A08AF4D-21F9-4A1F-8F0C-308F0ECFF983, + "DirectManipulationUpdateManager Class, exposed for managed interop definitions", + DirectManipulationUpdateManager) + { + [default] interface IDirectManipulationUpdateManager; + } + + DMANIP_INTEROP_CLASS( + CAA02661-D59E-41C7-8393-3BA3BACB6B57, + FF7797C5-6D12-4A99-93B8-0E2CC5676DA1, + "DirectManipulationPrimaryContent Class, exposed for managed interop definitions", + DirectManipulationPrimaryContent) + { + [default] interface IDirectManipulationPrimaryContent; + } + + DMANIP_CLASS( + 54E211B6-3650-4F75-8334-FA359598E1C5, + EC6C9215-FF3E-4A1A-88DA-1C5FDACE3593, + "DirectManipulationManager Class", + DirectManipulationManager) + { + interface IDirectManipulationManager2; + [default] interface IDirectManipulationManager; + } + + DMANIP_CLASS( + 99793286-77CC-4B57-96DB-3B354F6F9FB5, + 57BB94E9-A6DA-413A-A69A-D68961539689, + "DirectManipulationSharedManager Class", + DirectManipulationSharedManager) + { + interface IDirectManipulationManager2; + [default] interface IDirectManipulationManager; + } + + DMANIP_CLASS( + 79DEA627-A08A-43AC-8EF5-6900B9299126, + AF9461CD-1F36-4B6D-B61C-B55EC9D4A907, + "DCompManipulationCompositor Class", + DCompManipulationCompositor) + { + [default] interface IDirectManipulationCompositor; + interface IDirectManipulationCompositor2; + interface IDirectManipulationFrameInfoProvider; +#ifdef LIFTED_SDK + interface IExpDirectManipulationCompositor; +#endif //LIFTED_SDK + } + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dlgs.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dlgs.h new file mode 100644 index 0000000000000000000000000000000000000000..c803fc3ba52f81f2fd0b443e183e4970d1ea390e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dlgs.h @@ -0,0 +1,278 @@ +#include + +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + dlgs.h + +Abstract: + + This module contains the UI dialog header information. + +--*/ + +#pragma once + +#ifndef _DLGSH_INCLUDED_ +#define _DLGSH_INCLUDED_ + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Constant Declarations. +// + +#define ctlFirst 0x0400 +#define ctlLast 0x04ff + +// +// Push buttons. +// +#define psh1 0x0400 +#define psh2 0x0401 +#define psh3 0x0402 +#define psh4 0x0403 +#define psh5 0x0404 +#define psh6 0x0405 +#define psh7 0x0406 +#define psh8 0x0407 +#define psh9 0x0408 +#define psh10 0x0409 +#define psh11 0x040a +#define psh12 0x040b +#define psh13 0x040c +#define psh14 0x040d +#define psh15 0x040e +#define pshHelp psh15 +#define psh16 0x040f + +// +// Checkboxes. +// +#define chx1 0x0410 +#define chx2 0x0411 +#define chx3 0x0412 +#define chx4 0x0413 +#define chx5 0x0414 +#define chx6 0x0415 +#define chx7 0x0416 +#define chx8 0x0417 +#define chx9 0x0418 +#define chx10 0x0419 +#define chx11 0x041a +#define chx12 0x041b +#define chx13 0x041c +#define chx14 0x041d +#define chx15 0x041e +#define chx16 0x041f + +// +// Radio buttons. +// +#define rad1 0x0420 +#define rad2 0x0421 +#define rad3 0x0422 +#define rad4 0x0423 +#define rad5 0x0424 +#define rad6 0x0425 +#define rad7 0x0426 +#define rad8 0x0427 +#define rad9 0x0428 +#define rad10 0x0429 +#define rad11 0x042a +#define rad12 0x042b +#define rad13 0x042c +#define rad14 0x042d +#define rad15 0x042e +#define rad16 0x042f + +// +// Groups, frames, rectangles, and icons. +// +#define grp1 0x0430 +#define grp2 0x0431 +#define grp3 0x0432 +#define grp4 0x0433 +#define frm1 0x0434 +#define frm2 0x0435 +#define frm3 0x0436 +#define frm4 0x0437 +#define rct1 0x0438 +#define rct2 0x0439 +#define rct3 0x043a +#define rct4 0x043b +#define ico1 0x043c +#define ico2 0x043d +#define ico3 0x043e +#define ico4 0x043f + +// +// Static text. +// +#define stc1 0x0440 +#define stc2 0x0441 +#define stc3 0x0442 +#define stc4 0x0443 +#define stc5 0x0444 +#define stc6 0x0445 +#define stc7 0x0446 +#define stc8 0x0447 +#define stc9 0x0448 +#define stc10 0x0449 +#define stc11 0x044a +#define stc12 0x044b +#define stc13 0x044c +#define stc14 0x044d +#define stc15 0x044e +#define stc16 0x044f +#define stc17 0x0450 +#define stc18 0x0451 +#define stc19 0x0452 +#define stc20 0x0453 +#define stc21 0x0454 +#define stc22 0x0455 +#define stc23 0x0456 +#define stc24 0x0457 +#define stc25 0x0458 +#define stc26 0x0459 +#define stc27 0x045a +#define stc28 0x045b +#define stc29 0x045c +#define stc30 0x045d +#define stc31 0x045e +#define stc32 0x045f + +// +// Listboxes. +// +#define lst1 0x0460 +#define lst2 0x0461 +#define lst3 0x0462 +#define lst4 0x0463 +#define lst5 0x0464 +#define lst6 0x0465 +#define lst7 0x0466 +#define lst8 0x0467 +#define lst9 0x0468 +#define lst10 0x0469 +#define lst11 0x046a +#define lst12 0x046b +#define lst13 0x046c +#define lst14 0x046d +#define lst15 0x046e +#define lst16 0x046f + +// +// Combo boxes. +// +#define cmb1 0x0470 +#define cmb2 0x0471 +#define cmb3 0x0472 +#define cmb4 0x0473 +#define cmb5 0x0474 +#define cmb6 0x0475 +#define cmb7 0x0476 +#define cmb8 0x0477 +#define cmb9 0x0478 +#define cmb10 0x0479 +#define cmb11 0x047a +#define cmb12 0x047b +#define cmb13 0x047c +#define cmb14 0x047d +#define cmb15 0x047e +#define cmb16 0x047f + +// +// Edit controls. +// +#define edt1 0x0480 +#define edt2 0x0481 +#define edt3 0x0482 +#define edt4 0x0483 +#define edt5 0x0484 +#define edt6 0x0485 +#define edt7 0x0486 +#define edt8 0x0487 +#define edt9 0x0488 +#define edt10 0x0489 +#define edt11 0x048a +#define edt12 0x048b +#define edt13 0x048c +#define edt14 0x048d +#define edt15 0x048e +#define edt16 0x048f + +// +// Scroll bars. +// +#define scr1 0x0490 +#define scr2 0x0491 +#define scr3 0x0492 +#define scr4 0x0493 +#define scr5 0x0494 +#define scr6 0x0495 +#define scr7 0x0496 +#define scr8 0x0497 + +// +// Controls +// +#define ctl1 0x04A0 + +#define FILEOPENORD 1536 +#define MULTIFILEOPENORD 1537 +#define PRINTDLGORD 1538 +#define PRNSETUPDLGORD 1539 +#define FINDDLGORD 1540 +#define REPLACEDLGORD 1541 +#define FONTDLGORD 1542 +#define FORMATDLGORD31 1543 +#define FORMATDLGORD30 1544 +#define RUNDLGORD 1545 + +#if (WINVER >= 0x400) +#define PAGESETUPDLGORD 1546 +#define NEWFILEOPENORD 1547 +#define PRINTDLGEXORD 1549 +#define PAGESETUPDLGORDMOTIF 1550 +#define COLORMGMTDLGORD 1551 +#define NEWFILEOPENV2ORD 1552 +#endif /* WINVER >= 0x400) */ + +// 1581 - 1590 +#if (NTDDI_VERSION >= NTDDI_VISTA) +#define NEWFILEOPENV3ORD 1553 +#endif // NTDDI_VISTA + +// 1591 - 1600 +#if (NTDDI_VERSION >= NTDDI_WIN7) +#define NEWFORMATDLGWITHLINK 1591 +#define IDC_MANAGE_LINK 1592 +#endif + +#ifndef RC_INVOKED + +// +// Typedef Declarations. +// +typedef struct tagCRGB +{ + BYTE bRed; + BYTE bGreen; + BYTE bBlue; + BYTE bExtra; +} CRGB; /* RGB Color */ + +#endif /* !RC_INVOKED */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +#endif // _DLGSH_INCLUDED_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmemmgr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmemmgr.h new file mode 100644 index 0000000000000000000000000000000000000000..5455bdb04f6cdafc1576516b6b9f9d3faa4fa460 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmemmgr.h @@ -0,0 +1,205 @@ +/*==========================================================================; + * + * Copyright (C) 1994-1998 Microsoft Corporation. All Rights Reserved. + * + * File: dmemmgr.h + * Content: Direct Memory Manager include file + * + ***************************************************************************/ + +#ifndef __DMEMMGR_INCLUDED__ +#define __DMEMMGR_INCLUDED__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef __NTDDKCOMP__ + +/* + * pointer to video memory + */ +typedef ULONG_PTR FLATPTR; + +typedef struct _VIDMEM *LPVIDMEM; + +#else + +/* + * pointer to video memory, potentially 64-bit + */ +typedef ULONG_PTR FLATPTR; + +typedef struct _VIDEOMEMORY *LPVIDMEM; + +#endif + +/* + * Structure for querying extended heap alignment requirements + */ + +typedef struct _SURFACEALIGNMENT +{ + union + { + struct + { + DWORD dwStartAlignment; + DWORD dwPitchAlignment; + DWORD dwFlags; + DWORD dwReserved2; + } Linear; + struct + { + DWORD dwXAlignment; + DWORD dwYAlignment; + DWORD dwFlags; + DWORD dwReserved2; + } Rectangular; + }; +} SURFACEALIGNMENT; +typedef struct _SURFACEALIGNMENT FAR *LPSURFACEALIGNMENT; + +#define SURFACEALIGN_DISCARDABLE 0x00000001l /* Surface can be discarded to */ + /* make room for another surface */ + + +typedef struct _HEAPALIGNMENT +{ + DWORD dwSize; + DDSCAPS ddsCaps; /* Indicates which alignment fields are valid.*/ + DWORD dwReserved; + SURFACEALIGNMENT ExecuteBuffer; /* Surfaces tagged with DDSCAPS_EXECUTEBUFFER */ + SURFACEALIGNMENT Overlay; /* Surfaces tagged with DDSCAPS_OVERLAY */ + SURFACEALIGNMENT Texture; /* Surfaces tagged with DDSCAPS_TEXTURE */ + SURFACEALIGNMENT ZBuffer; /* Surfaces tagged with DDSCAPS_ZBUFFER */ + SURFACEALIGNMENT AlphaBuffer; /* Surfaces tagged with DDSCAPS_ALPHA */ + SURFACEALIGNMENT Offscreen; /* Surfaces tagged with DDSCAPS_OFFSCREENPLAIN*/ + SURFACEALIGNMENT FlipTarget; /* Surfaces whose bits are potential primaries i.e. back buffers*/ +} HEAPALIGNMENT; +typedef struct _HEAPALIGNMENT FAR *LPHEAPALIGNMENT; + +typedef struct _DD_GETHEAPALIGNMENTDATA +{ + ULONG_PTR dwInstance; // driver context + DWORD dwHeap; // heap index passed by DirectDraw + HRESULT ddRVal; // return value + VOID* GetHeapAlignment; // Unused: Win95 compatibility + HEAPALIGNMENT Alignment; // Filled in by driver. +} DD_GETHEAPALIGNMENTDATA; +typedef struct _DD_GETHEAPALIGNMENTDATA *PDD_GETHEAPALIGNMENTDATA; + +/* + * video memory manager structures + */ +typedef struct _VMEML +{ + struct _VMEML FAR *next; + FLATPTR ptr; + DWORD size; + BOOL bDiscardable; +} VMEML, FAR *LPVMEML, FAR * FAR *LPLPVMEML; + +typedef struct _VMEMR +{ + struct _VMEMR FAR *next; + struct _VMEMR FAR *prev; + /* + * The pUp, pDown, pLeft and pRight members were removed in DX5 + */ + struct _VMEMR FAR *pUp; + struct _VMEMR FAR *pDown; + struct _VMEMR FAR *pLeft; + struct _VMEMR FAR *pRight; + FLATPTR ptr; + DWORD size; + DWORD x; + DWORD y; + DWORD cx; + DWORD cy; + DWORD flags; + FLATPTR pBits; + BOOL bDiscardable; +} VMEMR, FAR *LPVMEMR, FAR * FAR *LPLPVMEMR; + +typedef struct _VMEMHEAP +{ + DWORD dwFlags; + DWORD stride; + LPVOID freeList; + LPVOID allocList; + DWORD dwTotalSize; + FLATPTR fpGARTLin; /* AGP: GART linear base of heap (app. visible) */ + FLATPTR fpGARTDev; /* AGP: GART device base of heap (driver visible) */ + DWORD dwCommitedSize; /* AGP: Number of bytes commited to heap */ + /* + * Extended alignment data: + * Filled in by DirectDraw in response to a GetHeapAlignment HAL call. + */ + DWORD dwCoalesceCount; + HEAPALIGNMENT Alignment; + /* + * These are analogous to VIDMEM.ddsCaps and VIDMEM.ddsCapsAlt. These values are queried from the + * driver by a GetDriverInfo call. See the documentation for GUID_DDMoreSurfaceCaps + */ + DDSCAPSEX ddsCapsEx; + DDSCAPSEX ddsCapsExAlt; +#ifndef IS_16 + // Full physical address of heap base for NT AGP heaps. + LARGE_INTEGER liPhysAGPBase; +#endif + // hdev for use with VidMemAllocAligned on NT. Set by the system at + // initialization time. + HANDLE hdevAGP; + // Physical reservation handle for NT heaps. + LPVOID pvPhysRsrv; +#if (NTDDI_VERSION >= NTDDI_WINXP) + BYTE* pAgpCommitMask; + DWORD dwAgpCommitMaskSize; +#endif +} VMEMHEAP; + +typedef VMEMHEAP FAR *LPVMEMHEAP; + +#define VMEMHEAP_LINEAR 0x00000001l /* Heap is linear */ +#define VMEMHEAP_RECTANGULAR 0x00000002l /* Heap is rectangular */ +#define VMEMHEAP_ALIGNMENT 0x00000004l /* Heap has extended alignment info */ + +/* + * This legacy export doesn't handle nonlocal heaps + * This function is not available on Windows NT + */ +#ifndef __NTDDKCOMP__ +extern FLATPTR WINAPI VidMemAlloc( LPVMEMHEAP pvmh, DWORD width, DWORD height ); +#endif + +/* + * This export can be used by drivers to allocate aligned surfaces from heaps which + * they have previously exposed to DirectDraw. This function can allocate from nonlocal heaps. + */ +extern FLATPTR WINAPI HeapVidMemAllocAligned( + LPVIDMEM lpVidMem, + DWORD dwWidth, + DWORD dwHeight, + LPSURFACEALIGNMENT lpAlignment , + LPLONG lpNewPitch ); + +/* + * This export can free memory allocated via either allocation function + */ +extern void WINAPI VidMemFree( LPVMEMHEAP pvmh, FLATPTR ptr ); + +#ifdef __cplusplus +}; +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmksctrl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmksctrl.h new file mode 100644 index 0000000000000000000000000000000000000000..14f33152098c0bbf8c47a2c5cbeb7f9949979af6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmksctrl.h @@ -0,0 +1,175 @@ +/************************************************************************ +* * +* dmksctrl.h -- Definition of IKsControl * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +* This header file contains the definition of IKsControl, which * +* duplicates definitions from ks.h and ksproxy.h. Your code should * +* include ks.h and ksproxy.h directly if you have them (they are * +* provided in the Windows 98 DDK and will be in the Windows NT 5 * +* SDK). * +* * +************************************************************************/ + +#ifndef _DMKSCTRL_ +#define _DMKSCTRL_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif +#pragma warning(disable:4201) /* Disable warnings on anonymous unions */ + +#include + +#include + +#if !defined(_NTRTL_) + #ifndef DEFINE_GUIDEX + #define DEFINE_GUIDEX(name) EXTERN_C const CDECL GUID name + #endif /* !defined(DEFINE_GUIDEX) */ + + #ifndef STATICGUIDOF + #define STATICGUIDOF(guid) STATIC_##guid + #endif /* !defined(STATICGUIDOF) */ +#endif /* !defined(_NTRTL_) */ + +#ifndef STATIC_IID_IKsControl +#define STATIC_IID_IKsControl\ + 0x28F54685L, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 +#endif /* STATIC_IID_IKsControl */ + +/* + * Warning: This will prevent the rest of ks.h from being pulled in if ks.h is + * included after dmksctrl.h. Make sure you do not include both headers in + * the same source file. + */ +#ifndef _KS_ +#define _KS_ + +#if (defined(_MSC_EXTENSIONS) || defined(__cplusplus)) && !defined(CINTERFACE) +typedef struct { + union { + struct { + GUID Set; + ULONG Id; + ULONG Flags; + }; + LONGLONG Alignment; + }; +} KSIDENTIFIER, *PKSIDENTIFIER; +#else +typedef struct { + union { + struct { + GUID Set; + ULONG Id; + ULONG Flags; + } Data; + LONGLONG Alignment; + }; +} KSIDENTIFIER, *PKSIDENTIFIER; +#endif + +typedef KSIDENTIFIER KSPROPERTY, *PKSPROPERTY, KSMETHOD, *PKSMETHOD, KSEVENT, *PKSEVENT; + +#define KSMETHOD_TYPE_NONE 0x00000000 +#define KSMETHOD_TYPE_READ 0x00000001 +#define KSMETHOD_TYPE_WRITE 0x00000002 +#define KSMETHOD_TYPE_MODIFY 0x00000003 +#define KSMETHOD_TYPE_SOURCE 0x00000004 + +#define KSMETHOD_TYPE_SEND 0x00000001 +#define KSMETHOD_TYPE_SETSUPPORT 0x00000100 +#define KSMETHOD_TYPE_BASICSUPPORT 0x00000200 + +#define KSPROPERTY_TYPE_GET 0x00000001 +#define KSPROPERTY_TYPE_SET 0x00000002 +#define KSPROPERTY_TYPE_SETSUPPORT 0x00000100 +#define KSPROPERTY_TYPE_BASICSUPPORT 0x00000200 +#define KSPROPERTY_TYPE_RELATIONS 0x00000400 +#define KSPROPERTY_TYPE_SERIALIZESET 0x00000800 +#define KSPROPERTY_TYPE_UNSERIALIZESET 0x00001000 +#define KSPROPERTY_TYPE_SERIALIZERAW 0x00002000 +#define KSPROPERTY_TYPE_UNSERIALIZERAW 0x00004000 +#define KSPROPERTY_TYPE_SERIALIZESIZE 0x00008000 +#define KSPROPERTY_TYPE_DEFAULTVALUES 0x00010000 + +#define KSPROPERTY_TYPE_TOPOLOGY 0x10000000 +#endif /* _KS_ */ + +#ifndef _IKsControl_ +#define _IKsControl_ + +#ifdef DECLARE_INTERFACE_ + + +#undef INTERFACE +#define INTERFACE IKsControl +DECLARE_INTERFACE_(IKsControl, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /*IKsControl*/ + STDMETHOD(KsProperty)( + THIS_ + _In_reads_bytes_(PropertyLength) PKSPROPERTY Property, + _In_ ULONG PropertyLength, + _Inout_updates_bytes_(DataLength) LPVOID PropertyData, + _In_ ULONG DataLength, + _Out_ ULONG* BytesReturned + ) PURE; + STDMETHOD(KsMethod)( + THIS_ + _In_reads_bytes_(MethodLength) PKSMETHOD Method, + _In_ ULONG MethodLength, + _Inout_updates_bytes_(DataLength) LPVOID MethodData, + _In_ ULONG DataLength, + _Out_ ULONG* BytesReturned + ) PURE; + STDMETHOD(KsEvent)( + THIS_ + _In_reads_bytes_(EventLength) PKSEVENT Event OPTIONAL, + _In_ ULONG EventLength, + _Inout_updates_bytes_(DataLength) LPVOID EventData, + _In_ ULONG DataLength, + _Out_ ULONG* BytesReturned + ) PURE; +}; + +#endif /* DECLARE_INTERFACE_ */ +#endif /* _IKsControl_ */ + +#include + +DEFINE_GUID(IID_IKsControl, 0x28F54685, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96); + +/* These formats are in ksmedia.h + */ +#ifndef _KSMEDIA_ + +DEFINE_GUID(KSDATAFORMAT_SUBTYPE_MIDI, 0x1D262760L, 0xE957, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00); +DEFINE_GUID(KSDATAFORMAT_SUBTYPE_DIRECTMUSIC, 0x1a82f8bc, 0x3f8b, 0x11d2, 0xb7, 0x74, 0x00, 0x60, 0x08, 0x33, 0x16, 0xc1); + +#endif + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _DMKSCTRL */ + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmo.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmo.h new file mode 100644 index 0000000000000000000000000000000000000000..214415d5513d4f5706231c34d77e1de4b9cb0b64 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmo.h @@ -0,0 +1,38 @@ +//------------------------------------------------------------------------------ +// File: DMO.h +// +// Desc: Headers needed by almost all DMOs. +// +// Copyright (c) 1999 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __DMO_H__ +#define __DMO_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#include "mediaerr.h" + +// When using ATL we get collisions on Lock, so in this case rename +// IMediaObject::Lock to IMediaObject::DMOLock + +#ifdef FIX_LOCK_NAME +#define Lock DMOLock +#endif +#include "mediaobj.h" +#ifdef FIX_LOCK_NAME +#undef Lock +#endif +#include "dmoreg.h" +#include "dmort.h" + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //__DMO_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmodshow.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmodshow.h new file mode 100644 index 0000000000000000000000000000000000000000..830bae7208612c6599a0e1caecec1ab91d9e99ae --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmodshow.h @@ -0,0 +1,186 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dmodshow_h__ +#define __dmodshow_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDMOWrapperFilter_FWD_DEFINED__ +#define __IDMOWrapperFilter_FWD_DEFINED__ +typedef interface IDMOWrapperFilter IDMOWrapperFilter; + +#endif /* __IDMOWrapperFilter_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "objidl.h" +#include "mediaobj.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dmodshow_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +DEFINE_GUID(CLSID_DMOWrapperFilter, 0x94297043,0xbd82,0x4dfd,0xb0,0xde,0x81,0x77,0x73,0x9c,0x6d,0x20); +DEFINE_GUID(CLSID_DMOFilterCategory,0xbcd5796c,0xbd52,0x4d30,0xab,0x76,0x70,0xf9,0x75,0xb8,0x91,0x99); + + +extern RPC_IF_HANDLE __MIDL_itf_dmodshow_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dmodshow_0000_0000_v0_0_s_ifspec; + +#ifndef __IDMOWrapperFilter_INTERFACE_DEFINED__ +#define __IDMOWrapperFilter_INTERFACE_DEFINED__ + +/* interface IDMOWrapperFilter */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IDMOWrapperFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("52d6f586-9f0f-4824-8fc8-e32ca04930c2") + IDMOWrapperFilter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Init( + __RPC__in REFCLSID clsidDMO, + __RPC__in REFCLSID catDMO) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDMOWrapperFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDMOWrapperFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDMOWrapperFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDMOWrapperFilter * This); + + DECLSPEC_XFGVIRT(IDMOWrapperFilter, Init) + HRESULT ( STDMETHODCALLTYPE *Init )( + __RPC__in IDMOWrapperFilter * This, + __RPC__in REFCLSID clsidDMO, + __RPC__in REFCLSID catDMO); + + END_INTERFACE + } IDMOWrapperFilterVtbl; + + interface IDMOWrapperFilter + { + CONST_VTBL struct IDMOWrapperFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDMOWrapperFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDMOWrapperFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDMOWrapperFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDMOWrapperFilter_Init(This,clsidDMO,catDMO) \ + ( (This)->lpVtbl -> Init(This,clsidDMO,catDMO) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDMOWrapperFilter_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dmodshow_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dmodshow_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dmodshow_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmodshow.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmodshow.idl new file mode 100644 index 0000000000000000000000000000000000000000..95e0a1a927d767745b1ef627876bd09494e6512e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmodshow.idl @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// File: DMODShow.idl +// +// Desc: This file will be processed by the MIDL tool to +// produce dmodshow.h and proxy-stub code. +// +// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl"; +import "objidl.idl"; +import "mediaobj.idl"; + +// 94297043-bd82-4dfd-b0de-8177739c6d20 +cpp_quote("DEFINE_GUID(CLSID_DMOWrapperFilter, 0x94297043,0xbd82,0x4dfd,0xb0,0xde,0x81,0x77,0x73,0x9c,0x6d,0x20);") +// bcd5796c-bd52-4d30-ab76-70f975b89199 +cpp_quote("DEFINE_GUID(CLSID_DMOFilterCategory,0xbcd5796c,0xbd52,0x4d30,0xab,0x76,0x70,0xf9,0x75,0xb8,0x91,0x99);") + + +[ + object, + uuid(52d6f586-9f0f-4824-8fc8-e32ca04930c2), +] +interface IDMOWrapperFilter : IUnknown +{ + // Init is passed in the clsid (so it can call CoCreateInstance) + // and the catgory under which the DMO lives. + // Note that catDMO can be CLSID_NULL, in which case no special + // category-specific processing will be invoked in the wrapper filter. + HRESULT Init(REFCLSID clsidDMO, REFCLSID catDMO); +} + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmoimpl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmoimpl.h new file mode 100644 index 0000000000000000000000000000000000000000..483b7f6a86e73b4c74a2fa0064a06487104c2dfe --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmoimpl.h @@ -0,0 +1,642 @@ +//------------------------------------------------------------------------------ +// File: DMOImpl.h +// +// Desc: Classes to implement a DMO +// +// Copyright (c) 2000-2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef _dmoimpl_h_ +#define _dmoimpl_h_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef _DEBUG +#include +#endif + +// Class to implement a DMO +// +// +// Assumes the number of input and output streams is fixed +// (these are template parameters) +// +// Provides following services: +// +// Basic parameter checking and locking +// Fully implements : +// GetStreamCount +// SetInputType +// SetOutputType +// GetCurrentInputType +// GetCurrentOutputType +// +// Checks if all types are set before streaming +// Automatically calls AllocateStreamingResources before streaming +// if it's not been called already +// Prevents streaming until the types on all non-optional streams +// have been set +// +// +// Derived class implements the following methods : +// + +/* + HRESULT InternalGetInputStreamInfo(DWORD dwInputStreamIndex, DWORD *pdwFlags); + HRESULT InternalGetOutputStreamInfo(DWORD dwOutputStreamIndex, DWORD *pdwFlags); + HRESULT InternalCheckInputType(DWORD dwInputStreamIndex, const DMO_MEDIA_TYPE *pmt); + HRESULT InternalCheckOutputType(DWORD dwOutputStreamIndex, const DMO_MEDIA_TYPE *pmt); + HRESULT InternalGetInputType(DWORD dwInputStreamIndex, DWORD dwTypeIndex, + DMO_MEDIA_TYPE *pmt); + HRESULT InternalGetOutputType(DWORD dwOutputStreamIndex, DWORD dwTypeIndex, + DMO_MEDIA_TYPE *pmt); + HRESULT InternalGetInputSizeInfo(DWORD dwInputStreamIndex, DWORD *pcbSize, + DWORD *pcbMaxLookahead, DWORD *pcbAlignment); + HRESULT InternalGetOutputSizeInfo(DWORD dwOutputStreamIndex, DWORD *pcbSize, + DWORD *pcbAlignment); + HRESULT InternalGetInputMaxLatency(DWORD dwInputStreamIndex, REFERENCE_TIME *prtMaxLatency); + HRESULT InternalSetInputMaxLatency(DWORD dwInputStreamIndex, REFERENCE_TIME rtMaxLatency); + HRESULT InternalFlush(); + HRESULT InternalDiscontinuity(DWORD dwInputStreamIndex); + HRESULT InternalAllocateStreamingResources(); + HRESULT InternalFreeStreamingResources(); + HRESULT InternalProcessInput(DWORD dwInputStreamIndex, IMediaBuffer *pBuffer, + DWORD dwFlags, REFERENCE_TIME rtTimestamp, + REFERENCE_TIME rtTimelength); + HRESULT InternalProcessOutput(DWORD dwFlags, DWORD cOutputBufferCount, + DMO_OUTPUT_DATA_BUFFER *pOutputBuffers, + DWORD *pdwStatus); + HRESULT InternalAcceptingInput(DWORD dwInputStreamIndex); + void Lock(); + void Unlock(); + + Notes: + The derived class is meant to do most work to initialize streaming + in AllocateStreamingResources rather than when types are set. + + This centralizes the work to one + clear place based on the types set for all streams. + + The derived class implements locking. + + The derived class implements the IUnknown methods + + Usage example (1 input and 1 output) : + class CMyDMO : public IMediaObjectImpl, + ... +*/ + + +#define INTERNAL_CALL(_T_, _X_) \ + static_cast<_T_ *>(this)->Internal##_X_ + +template +class IMediaObjectImpl : public IMediaObject +{ +private: + // Member variables + struct { + DWORD fTypeSet:1; + DWORD fIncomplete:1; + DMO_MEDIA_TYPE CurrentMediaType; + } m_InputInfo[NUMBEROFINPUTS], m_OutputInfo[NUMBEROFOUTPUTS]; + + bool m_fTypesSet; + bool m_fFlushed; + bool m_fResourcesAllocated; + +protected: + + // Helpers + bool InputTypeSet(DWORD ulInputStreamIndex) const + { + _ASSERTE(ulInputStreamIndex < NUMBEROFINPUTS); + return 0 != m_InputInfo[ulInputStreamIndex].fTypeSet; + } + + bool OutputTypeSet(DWORD ulOutputStreamIndex) const + { + _ASSERTE(ulOutputStreamIndex < NUMBEROFOUTPUTS); + return 0 != m_OutputInfo[ulOutputStreamIndex].fTypeSet; + } + const DMO_MEDIA_TYPE *InputType(DWORD ulInputStreamIndex) + { + if (!InputTypeSet(ulInputStreamIndex)) { + return NULL; + } + return &m_InputInfo[ulInputStreamIndex].CurrentMediaType; + } + const DMO_MEDIA_TYPE *OutputType(DWORD ulOutputStreamIndex) + { + if (!OutputTypeSet(ulOutputStreamIndex)) { + return NULL; + } + return &m_OutputInfo[ulOutputStreamIndex].CurrentMediaType; + } + + + class LockIt + { + public: + LockIt(_DERIVED_ *p) : m_p(p) + { + static_cast<_DERIVED_ *>(m_p)->Lock(); + } + ~LockIt() + { + static_cast<_DERIVED_ *>(m_p)->Unlock(); + } + _DERIVED_ *const m_p; + }; + + bool CheckTypesSet() + { + m_fTypesSet = false; + DWORD dw; + for (dw = 0; dw < NUMBEROFINPUTS; dw++) { + if (!InputTypeSet(dw)) { + return false; + } + } + for (dw = 0; dw < NUMBEROFOUTPUTS; dw++) { + if (!OutputTypeSet(dw)) { + // Check if it's optional + DWORD dwFlags; +#ifdef _DEBUG + dwFlags = 0xFFFFFFFF; +#endif + INTERNAL_CALL(_DERIVED_, GetOutputStreamInfo)(dw, &dwFlags); + _ASSERTE(0 == (dwFlags & ~(DMO_OUTPUT_STREAMF_WHOLE_SAMPLES | + DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER | + DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE | + DMO_OUTPUT_STREAMF_DISCARDABLE | + DMO_OUTPUT_STREAMF_OPTIONAL))); + if (!(dwFlags & DMO_OUTPUT_STREAMF_OPTIONAL)) { + return false; + } + } + } + m_fTypesSet = true; + return true; + } + + + IMediaObjectImpl() : + m_fTypesSet(false), + m_fFlushed(true), + m_fResourcesAllocated(false) + { + ZeroMemory(&m_InputInfo, sizeof(m_InputInfo)); + ZeroMemory(&m_OutputInfo, sizeof(m_OutputInfo)); + } + + virtual ~IMediaObjectImpl() { + DWORD dwCurrentType; + + for (dwCurrentType = 0; dwCurrentType < NUMBEROFINPUTS; dwCurrentType++) { + if(InputTypeSet(dwCurrentType)) { + MoFreeMediaType(&m_InputInfo[dwCurrentType].CurrentMediaType); + } + } + + for (dwCurrentType = 0; dwCurrentType < NUMBEROFOUTPUTS; dwCurrentType++) { + if(OutputTypeSet(dwCurrentType)) { + MoFreeMediaType(&m_OutputInfo[dwCurrentType].CurrentMediaType); + } + } + } + + + // IMediaObject methods + + + // + // IMediaObject methods + // + STDMETHODIMP GetStreamCount(unsigned long *pulNumberOfInputStreams, unsigned long *pulNumberOfOutputStreams) + { + LockIt lck(static_cast<_DERIVED_ *>(this)); + if (pulNumberOfInputStreams == NULL || + pulNumberOfOutputStreams == NULL) { + return E_POINTER; + } + *pulNumberOfInputStreams = NUMBEROFINPUTS; + *pulNumberOfOutputStreams = NUMBEROFOUTPUTS; + return S_OK; + } + STDMETHODIMP GetInputStreamInfo(ULONG ulStreamIndex, DWORD *pdwFlags) + { + LockIt lck(static_cast<_DERIVED_ *>(this)); + if (ulStreamIndex >= NUMBEROFINPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + if (pdwFlags == NULL) { + return E_POINTER; + } + HRESULT hr = INTERNAL_CALL(_DERIVED_, GetInputStreamInfo)(ulStreamIndex, pdwFlags); + _ASSERTE(0 == (*pdwFlags & ~(DMO_INPUT_STREAMF_WHOLE_SAMPLES | + DMO_INPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER | + DMO_INPUT_STREAMF_FIXED_SAMPLE_SIZE | + DMO_INPUT_STREAMF_HOLDS_BUFFERS))); + return hr; + } + STDMETHODIMP GetOutputStreamInfo(ULONG ulStreamIndex, DWORD *pdwFlags) + { + LockIt lck(static_cast<_DERIVED_ *>(this)); + if (ulStreamIndex >= NUMBEROFOUTPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + if (pdwFlags == NULL) { + return E_POINTER; + } + HRESULT hr = INTERNAL_CALL(_DERIVED_, GetOutputStreamInfo)(ulStreamIndex, pdwFlags); + _ASSERTE(0 == (*pdwFlags & ~(DMO_OUTPUT_STREAMF_WHOLE_SAMPLES | + DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER | + DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE | + DMO_OUTPUT_STREAMF_DISCARDABLE | + DMO_OUTPUT_STREAMF_OPTIONAL))); + return hr; + } + STDMETHODIMP GetInputType(ULONG ulStreamIndex, ULONG ulTypeIndex, DMO_MEDIA_TYPE *pmt) { + if (ulStreamIndex >= NUMBEROFINPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + LockIt lck(static_cast<_DERIVED_ *>(this)); + return INTERNAL_CALL(_DERIVED_, GetInputType)(ulStreamIndex, ulTypeIndex, pmt); + } + STDMETHODIMP GetOutputType(ULONG ulStreamIndex, ULONG ulTypeIndex, DMO_MEDIA_TYPE *pmt) { + if (ulStreamIndex >= NUMBEROFOUTPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + LockIt lck(static_cast<_DERIVED_ *>(this)); + return INTERNAL_CALL(_DERIVED_, GetOutputType)(ulStreamIndex, ulTypeIndex, pmt); + } + STDMETHODIMP GetInputCurrentType(ULONG ulStreamIndex, DMO_MEDIA_TYPE *pmt) { + if (ulStreamIndex >= NUMBEROFINPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + if (NULL == pmt) { + return E_POINTER; + } + LockIt lck(static_cast<_DERIVED_ *>(this)); + if (InputTypeSet(ulStreamIndex)) + return MoCopyMediaType(pmt, + &m_InputInfo[ulStreamIndex].CurrentMediaType); + else + return DMO_E_TYPE_NOT_SET; + } + STDMETHODIMP GetOutputCurrentType(ULONG ulStreamIndex, DMO_MEDIA_TYPE *pmt) { + if (ulStreamIndex >= NUMBEROFOUTPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + if (NULL == pmt) { + return E_POINTER; + } + LockIt lck(static_cast<_DERIVED_ *>(this)); + if (OutputTypeSet(ulStreamIndex)) + return MoCopyMediaType(pmt, + &m_OutputInfo[ulStreamIndex].CurrentMediaType); + else + return DMO_E_TYPE_NOT_SET; + } + STDMETHODIMP GetInputSizeInfo(ULONG ulStreamIndex, ULONG *pulSize, ULONG *pcbMaxLookahead, ULONG *pulAlignment) { + if (ulStreamIndex >= NUMBEROFINPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + if (NULL == pulSize || NULL == pulAlignment || + NULL == pcbMaxLookahead) { + return E_POINTER; + } + LockIt lck(static_cast<_DERIVED_ *>(this)); + if (!InputTypeSet(ulStreamIndex)) { + return DMO_E_TYPE_NOT_SET; + } + return INTERNAL_CALL(_DERIVED_, GetInputSizeInfo)(ulStreamIndex, pulSize, pcbMaxLookahead, pulAlignment); + } + STDMETHODIMP GetOutputSizeInfo(ULONG ulStreamIndex, ULONG *pulSize, ULONG *pulAlignment) { + if (ulStreamIndex >= NUMBEROFOUTPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + if (NULL == pulSize || NULL == pulAlignment) { + return E_POINTER; + } + LockIt lck(static_cast<_DERIVED_ *>(this)); + if (!m_fTypesSet || !OutputTypeSet(ulStreamIndex)) { + return DMO_E_TYPE_NOT_SET; + } + return INTERNAL_CALL(_DERIVED_, GetOutputSizeInfo)(ulStreamIndex, pulSize, pulAlignment); + } + STDMETHODIMP SetInputType(ULONG ulStreamIndex, const DMO_MEDIA_TYPE *pmt, DWORD dwFlags) { + if (ulStreamIndex >= NUMBEROFINPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + if (dwFlags & ~ (DMO_SET_TYPEF_CLEAR | DMO_SET_TYPEF_TEST_ONLY)) { + return E_INVALIDARG; + } + + LockIt lck(static_cast<_DERIVED_ *>(this)); + + if (dwFlags & DMO_SET_TYPEF_CLEAR) { + MoFreeMediaType(&m_InputInfo[ulStreamIndex].CurrentMediaType); + m_InputInfo[ulStreamIndex].fTypeSet = FALSE; + if (!CheckTypesSet()) { + Flush(); + FreeStreamingResources(); + } + return NOERROR; + } + if (NULL == pmt) { + return E_POINTER; + } + HRESULT hr = INTERNAL_CALL(_DERIVED_, CheckInputType)(ulStreamIndex, pmt); + if (FAILED(hr)) + return hr; + + if (dwFlags & DMO_SET_TYPEF_TEST_ONLY) { + return NOERROR; + } + + + // actually set the type + DMO_MEDIA_TYPE mtTemp; + if (S_OK == MoCopyMediaType(&mtTemp, pmt)) { + // Free any previous mediatype + if (InputTypeSet(ulStreamIndex)) { + MoFreeMediaType(&m_InputInfo[ulStreamIndex].CurrentMediaType); + } + m_InputInfo[ulStreamIndex].CurrentMediaType = mtTemp; + m_InputInfo[ulStreamIndex].fTypeSet = TRUE; + CheckTypesSet(); + } else { + return E_OUTOFMEMORY; + } + + return NOERROR; + } + + STDMETHODIMP SetOutputType(ULONG ulStreamIndex, const DMO_MEDIA_TYPE *pmt, DWORD dwFlags) { + if (ulStreamIndex >= NUMBEROFOUTPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + if (dwFlags & ~ (DMO_SET_TYPEF_CLEAR | DMO_SET_TYPEF_TEST_ONLY)) { + return E_INVALIDARG; + } + + LockIt lck(static_cast<_DERIVED_ *>(this)); + + if (dwFlags & DMO_SET_TYPEF_CLEAR) { + MoFreeMediaType(&m_OutputInfo[ulStreamIndex].CurrentMediaType); + m_OutputInfo[ulStreamIndex].fTypeSet = FALSE; + if (!CheckTypesSet()) { + Flush(); + FreeStreamingResources(); + } + return NOERROR; + } + if (NULL == pmt) { + return E_POINTER; + } + HRESULT hr = INTERNAL_CALL(_DERIVED_, CheckOutputType)(ulStreamIndex, pmt); + if (FAILED(hr)) { + return hr; + } + + if (dwFlags & DMO_SET_TYPEF_TEST_ONLY) { + return NOERROR; + } + + + // actually set the type + DMO_MEDIA_TYPE mtTemp; + if (S_OK == MoCopyMediaType(&mtTemp, pmt)) { + // Free any previous mediatype + if (OutputTypeSet(ulStreamIndex)) { + MoFreeMediaType(&m_OutputInfo[ulStreamIndex].CurrentMediaType); + } + m_OutputInfo[ulStreamIndex].CurrentMediaType = mtTemp; + m_OutputInfo[ulStreamIndex].fTypeSet = TRUE; + CheckTypesSet(); + } else { + return E_OUTOFMEMORY; + } + + return NOERROR; + } + STDMETHODIMP GetInputStatus( + ULONG ulStreamIndex, + DWORD *pdwStatus + ) { + if (ulStreamIndex >= NUMBEROFINPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + if (NULL == pdwStatus) { + return E_POINTER; + } + *pdwStatus = 0; + + LockIt lck(static_cast<_DERIVED_ *>(this)); + + if (!m_fTypesSet) { + return DMO_E_TYPE_NOT_SET; + } + + if (INTERNAL_CALL(_DERIVED_, AcceptingInput)(ulStreamIndex) == S_OK) { + *pdwStatus |= DMO_INPUT_STATUSF_ACCEPT_DATA; + } + return NOERROR; + } + STDMETHODIMP GetInputMaxLatency(unsigned long ulStreamIndex, REFERENCE_TIME *prtLatency) { + + if (prtLatency == NULL) { + return E_POINTER; + } + if (ulStreamIndex >= NUMBEROFINPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + + LockIt lck(static_cast<_DERIVED_ *>(this)); + + return INTERNAL_CALL(_DERIVED_, GetInputMaxLatency)(ulStreamIndex, prtLatency); + } + STDMETHODIMP SetInputMaxLatency(unsigned long ulStreamIndex, REFERENCE_TIME rtLatency) { + if (ulStreamIndex >= NUMBEROFINPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + + LockIt lck(static_cast<_DERIVED_ *>(this)); + + return INTERNAL_CALL(_DERIVED_, SetInputMaxLatency)(ulStreamIndex, rtLatency); + } + STDMETHODIMP Discontinuity(ULONG ulStreamIndex) { + if (ulStreamIndex >= NUMBEROFINPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + + LockIt lck(static_cast<_DERIVED_ *>(this)); + + if (!m_fTypesSet) { + return DMO_E_TYPE_NOT_SET; + } + + if (S_OK != INTERNAL_CALL(_DERIVED_, AcceptingInput)(ulStreamIndex)) { + return DMO_E_NOTACCEPTING; + } + + return INTERNAL_CALL(_DERIVED_, Discontinuity)(ulStreamIndex); + } + + STDMETHODIMP Flush() + { + LockIt lck(static_cast<_DERIVED_ *>(this)); + + if (!m_fTypesSet) { + return S_OK; + } + if (m_fFlushed) { + return S_OK; + } + HRESULT hr = INTERNAL_CALL(_DERIVED_, Flush)(); + m_fFlushed = true; + return hr; + } + + STDMETHODIMP AllocateStreamingResources() { + LockIt lck(static_cast<_DERIVED_ *>(this)); + if (!m_fTypesSet) { + return DMO_E_TYPE_NOT_SET; + } + if (m_fResourcesAllocated) { + return S_OK; + } + HRESULT hr = INTERNAL_CALL(_DERIVED_, AllocateStreamingResources)(); + if (SUCCEEDED(hr)) { + m_fResourcesAllocated = true; + } + return hr; + } + STDMETHODIMP FreeStreamingResources() + { + LockIt lck(static_cast<_DERIVED_ *>(this)); + if (m_fResourcesAllocated) { + m_fResourcesAllocated = false; + INTERNAL_CALL(_DERIVED_, Flush)(); + return INTERNAL_CALL(_DERIVED_, FreeStreamingResources)(); + } + return S_OK; + } + + // + // Processing methods - public entry points + // + STDMETHODIMP ProcessInput( + DWORD ulStreamIndex, + IMediaBuffer *pBuffer, // [in], must not be NULL + DWORD dwFlags, // [in] - discontinuity, timestamp, etc. + REFERENCE_TIME rtTimestamp, // [in], valid if flag set + REFERENCE_TIME rtTimelength // [in], valid if flag set + ) { + if (!pBuffer) { + return E_POINTER; + } + if (ulStreamIndex >= NUMBEROFINPUTS) { + return DMO_E_INVALIDSTREAMINDEX; + } + if (dwFlags & ~(DMO_INPUT_DATA_BUFFERF_SYNCPOINT | + DMO_INPUT_DATA_BUFFERF_TIME | + DMO_INPUT_DATA_BUFFERF_TIMELENGTH)) { + return E_INVALIDARG; + } + + LockIt lck(static_cast<_DERIVED_ *>(this)); + + // Make sure all streams have media types set and resources are allocated + HRESULT hr = AllocateStreamingResources(); + if (FAILED(hr)) { + return hr; + } + if (INTERNAL_CALL(_DERIVED_, AcceptingInput)(ulStreamIndex) != S_OK) { + return DMO_E_NOTACCEPTING; + } + + m_fFlushed = false; + + return INTERNAL_CALL(_DERIVED_, ProcessInput)( + ulStreamIndex, + pBuffer, + dwFlags, + rtTimestamp, + rtTimelength); + } + + STDMETHODIMP ProcessOutput( + DWORD dwFlags, + DWORD ulOutputBufferCount, + DMO_OUTPUT_DATA_BUFFER *pOutputBuffers, + DWORD *pdwStatus) + { + if (pdwStatus == NULL) { + return E_POINTER; + } + + + if (ulOutputBufferCount != NUMBEROFOUTPUTS || (dwFlags & ~DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER)) { + return E_INVALIDARG; + } + + if (NUMBEROFOUTPUTS != 0 && pOutputBuffers == NULL) { + return E_POINTER; + } + + *pdwStatus = 0; + + LockIt lck(static_cast<_DERIVED_ *>(this)); + + HRESULT hr = AllocateStreamingResources(); + if (FAILED(hr)) { + return hr; + } + + DWORD dw; + for (dw = 0; dw < NUMBEROFOUTPUTS; dw++) { + pOutputBuffers[dw].dwStatus = 0; + } + + hr = INTERNAL_CALL(_DERIVED_, ProcessOutput)( + dwFlags, + ulOutputBufferCount, + pOutputBuffers, + pdwStatus); + + // remember the DMO's incomplete status + for (dw = 0; dw < NUMBEROFOUTPUTS; dw++) { + if (pOutputBuffers[dw].dwStatus & DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE) { + m_OutputInfo[dw].fIncomplete = TRUE; + } else { + m_OutputInfo[dw].fIncomplete = FALSE; + } + } + + return hr; + } + + STDMETHODIMP DMOLock(LONG lLock) + { + if (lLock) { + static_cast<_DERIVED_ *>(this)->Lock(); + } else { + static_cast<_DERIVED_ *>(this)->Unlock(); + } + return S_OK; + } +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _dmoimpl_h_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmoreg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmoreg.h new file mode 100644 index 0000000000000000000000000000000000000000..77eca2aa92029b18f11434593932c916b7e3281d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmoreg.h @@ -0,0 +1,119 @@ +//------------------------------------------------------------------------------ +// File: DMOReg.h +// +// Desc: +// +// Copyright (c) 1999 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __DMOREG_H__ +#define __DMOREG_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include "mediaobj.h" + + +// 57f2db8b-e6bb-4513-9d43-dcd2a6593125 +DEFINE_GUID(DMOCATEGORY_AUDIO_DECODER, 0x57f2db8b,0xe6bb,0x4513,0x9d,0x43,0xdc,0xd2,0xa6,0x59,0x31,0x25); +// 33D9A761-90C8-11d0-BD43-00A0C911CE86 +DEFINE_GUID(DMOCATEGORY_AUDIO_ENCODER, 0x33D9A761,0x90C8,0x11d0,0xBD,0x43,0x00,0xA0,0xC9,0x11,0xCE,0x86); +// 4a69b442-28be-4991-969c-b500adf5d8a8 +DEFINE_GUID(DMOCATEGORY_VIDEO_DECODER, 0x4a69b442,0x28be,0x4991,0x96,0x9c,0xb5,0x00,0xad,0xf5,0xd8,0xa8); +// 33D9A760-90C8-11d0-BD43-00A0C911CE86 +DEFINE_GUID(DMOCATEGORY_VIDEO_ENCODER, 0x33D9A760,0x90C8,0x11d0,0xBD,0x43,0x00,0xA0,0xC9,0x11,0xCE,0x86); +// f3602b3f-0592-48df-a4cd-674721e7ebeb +DEFINE_GUID(DMOCATEGORY_AUDIO_EFFECT, 0xf3602b3f,0x0592,0x48df,0xa4,0xcd,0x67,0x47,0x21,0xe7,0xeb,0xeb); +// d990ee14-776c-4723-be46-3da2f56f10b9 +DEFINE_GUID(DMOCATEGORY_VIDEO_EFFECT, 0xd990ee14,0x776c,0x4723,0xbe,0x46,0x3d,0xa2,0xf5,0x6f,0x10,0xb9); +// f665aaba-3e09-4920-aa5f-219811148f09 +DEFINE_GUID(DMOCATEGORY_AUDIO_CAPTURE_EFFECT, 0xf665aaba,0x3e09,0x4920,0xaa,0x5f,0x21,0x98,0x11,0x14,0x8f,0x09); + +// Acoustic Echo Canceller {BF963D80-C559-11D0-8A2B-00A0C9255AC1} +// Matches KSNODETYPE_ACOUSTIC_ECHO_CANCEL in ksmedia.h +DEFINE_GUID(DMOCATEGORY_ACOUSTIC_ECHO_CANCEL, 0xBF963D80L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1); + +// Noise Supression {E07F903F-62FD-4e60-8CDD-DEA7236665B5} +// Matches KSNODETYPE_AUDIO_NOISE_SUPPRESS in post Windows ME DDK's ksmedia.h +DEFINE_GUID(DMOCATEGORY_AUDIO_NOISE_SUPPRESS, 0xe07f903f, 0x62fd, 0x4e60, 0x8c, 0xdd, 0xde, 0xa7, 0x23, 0x66, 0x65, 0xb5); + +// Automatic Gain Control {E88C9BA0-C557-11D0-8A2B-00A0C9255AC1} +// Matches KSNODETYPE_AGC in ksmedia.h +DEFINE_GUID(DMOCATEGORY_AGC, 0xE88C9BA0L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1); + +typedef struct _DMO_PARTIAL_MEDIATYPE { + GUID type; + GUID subtype; +} DMO_PARTIAL_MEDIATYPE, *PDMO_PARTIAL_MEDIATYPE; + +enum DMO_REGISTER_FLAGS { + DMO_REGISTERF_IS_KEYED = 0x00000001 +}; + +enum DMO_ENUM_FLAGS { + DMO_ENUMF_INCLUDE_KEYED = 0x00000001 +}; + +STDAPI DMORegister( + LPCWSTR szName, + REFCLSID clsidDMO, + REFGUID guidCategory, + DWORD dwFlags, // DMO_REGISTERF_XXX + // + // Register all mediatypes supported by the object. This carries no + // information about which combinations of input/output types would + // actually work. + // + DWORD cInTypes, + const DMO_PARTIAL_MEDIATYPE *pInTypes, + DWORD cOutTypes, + const DMO_PARTIAL_MEDIATYPE *pOutTypes +); + +STDAPI DMOUnregister( + REFCLSID clsidDMO, + REFGUID guidCategory // optional - GUID_NULL means unregister from all +); + +STDAPI DMOEnum( + REFGUID guidCategory, // GUID_NULL for "all" + DWORD dwFlags, // DMO_ENUMF_XXX + // + // Enumerate only objects that support at least one of the specified input types + // and at least one of the specified output types. If no input types are specified, + // enumerate objects regardless of what input types they support. Same for + // output types. + // + DWORD cInTypes, + const DMO_PARTIAL_MEDIATYPE *pInTypes, // can be NULL only of ulInTypes = 0 + DWORD cOutTypes, + const DMO_PARTIAL_MEDIATYPE *pOutTypes, // can be NULL only of ulOutTypes = 0 + // + // Output parameter - this receives a pointer to the DMO CLSID enumerator + // + IEnumDMO **ppEnum +); + +STDAPI DMOGetTypes( + REFCLSID clsidDMO, + unsigned long ulInputTypesRequested, + unsigned long *pulInputTypesSupplied, + DMO_PARTIAL_MEDIATYPE *pInputTypes, + unsigned long ulOutputTypesRequested, + unsigned long *pulOutputTypesSupplied, + DMO_PARTIAL_MEDIATYPE *pOutputTypes +); + +STDAPI DMOGetName( + REFCLSID clsidDMO, + _Out_writes_(80) WCHAR szName[80] +); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //__DMOREG_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmort.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmort.h new file mode 100644 index 0000000000000000000000000000000000000000..aa3bca83fcfecd2b992fdfcf53fb16c00a1f05d7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmort.h @@ -0,0 +1,84 @@ +//------------------------------------------------------------------------------ +// File: DMORt.h +// +// Desc: Miscellaneous runtime support for DirectShow Media Objects +// +// Copyright (c) 1999 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __DMORT_H__ +#define __DMORT_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Mediatype helpers. MoInitMediaType() goes with MoFreeMediaType(), and +// MoCreateMediaType() goes with MoDeleteMediaType(). Don't mix them! +// + + + +// +// Takes a pointer to an already allocated DMO_MEDIA_TYPE structure, allocates +// a format block of cbFormat bytes, and sets appropriate members of +// DMO_MEDIA_TYPE to point to the newly allocated format block. Also +// initializes the IUnknown pointer inside DMO_MEDIA_TYPE to NULL. +// +// The format block allocated by MoInitMediaType must be freed by calling +// MoFreeMediaType(). +// +STDAPI MoInitMediaType(DMO_MEDIA_TYPE *pmt, DWORD cbFormat); + +// +// Frees the format block and releases any IUnknown, but does not free the +// DMO_MEDIA_TYPE structure itself. Input parameter must point to an +// DMO_MEDIA_TYPE structure previously initialized by MoInitMediaType(). +// +STDAPI MoFreeMediaType(DMO_MEDIA_TYPE *pmt); + +// +// Copies the DMO_MEDIA_TYPE members. Also duplicates the format block and +// the IUnknown pointer. Both parameters must point to valid DMO_MEDIA_TYPE +// structures. Target structure must be later freed using MoFreeMediaType(). +// +STDAPI MoCopyMediaType(DMO_MEDIA_TYPE *pmtDest, const DMO_MEDIA_TYPE *pmtSrc); + + + +// +// Allocates a new DMO_MEDIA_TYPE structure and initializes it just like +// MoInitMediaType. I.e., this function allocates both the format block +// and the DMO_MEDIA_TYPE structure itself. Pointer to DMO_MEDIA_TYPE is +// returned as *ppmt. +// +// DMO_MEDIA_TYPE structures allocated by MoCreateMediaType() must be freed +// by calling MoDeleteMediaType(). +// +STDAPI MoCreateMediaType(DMO_MEDIA_TYPE **ppmt, DWORD cbFormat); + +// +// Frees any format block, releases any IUnknown, and deletes the +// DMO_MEDIA_TYPE structure itself. The input parameter must point to an +// DMO_MEDIA_TYPE structure previously allocated by MoCreateMediaType(). +// +STDAPI MoDeleteMediaType(DMO_MEDIA_TYPE *pmt); + +// +// Allocates a new DMO_MEDIA_TYPE structure and copies pmtSrc into it like +// MoCopyMediaType. I.e., this function allocates a new DMO_MEDIA_TYPE struct +// as well as a new format block for the target mediatype. Trager mediatype +// must later be freed using MoDeleteMediaType(). +// +STDAPI MoDuplicateMediaType(DMO_MEDIA_TYPE **ppmtDest, const DMO_MEDIA_TYPE *pmtSrc); + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //__DMORT_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmprocessxmlfiltered.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmprocessxmlfiltered.h new file mode 100644 index 0000000000000000000000000000000000000000..d5747d3eac70e1ebc2f45430e5684ecb7194424b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmprocessxmlfiltered.h @@ -0,0 +1,48 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +/*++ + + +Module Name: + + dmprocessxmlfiltered.h + +Purpose: + + Header for the DMProcessConfigXMLFiltered API + +--*/ + +#pragma once + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#include + +/// +/// This API wraps DMProcessConfigXML, blocking attempts to access it using WAP XML that +/// consumes CSPs not allowed in the passed in filter list. +/// +/// [in] Null terminated input WAP XML +/// [in] Array of WCHAR* that specify which CSP nodes will be allowed to be invoked +/// [in] Number of elements passed in rgszAllowedCspNode +/// [out] Resulting null terminated XML from comfiguration. +/// Use SysFreeString to free the memory +/// +/// +/// Returns HRESULT type +/// + +STDAPI DMProcessConfigXMLFiltered( + _In_ PCWSTR pszXmlIn, + _In_reads_(dwNumAllowedCspNodes) PCWSTR* rgszAllowedCspNodes, + _In_ DWORD dwNumAllowedCspNodes, + _Outptr_result_z_ BSTR* pbstrXmlOut); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmusicc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmusicc.h new file mode 100644 index 0000000000000000000000000000000000000000..4c244614f2dc5258eb63626366bb2ca89da21b5d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmusicc.h @@ -0,0 +1,871 @@ +/************************************************************************ +* * +* dmusicc.h -- This module defines the DirectMusic core API's * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +************************************************************************/ + +#ifndef _DMUSICC_ +#define _DMUSICC_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include + +#define COM_NO_WINDOWS_H +#include + +#include + +#include "dls1.h" +#include "dmerror.h" +#include "dmdls.h" +#include "dsound.h" +#include "dmusbuff.h" + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ +typedef ULONGLONG SAMPLE_TIME; +typedef ULONGLONG SAMPLE_POSITION; +typedef SAMPLE_TIME *LPSAMPLE_TIME; +#endif + +#define DMUS_MAX_DESCRIPTION 128 +#define DMUS_MAX_DRIVER 128 + +typedef struct _DMUS_BUFFERDESC *LPDMUS_BUFFERDESC; +typedef struct _DMUS_BUFFERDESC +{ + DWORD dwSize; + DWORD dwFlags; + GUID guidBufferFormat; + DWORD cbBuffer; +} DMUS_BUFFERDESC; + +/* DMUS_EFFECT_ flags are used in the dwEffectFlags fields of both DMUS_PORTCAPS + * and DMUS_PORTPARAMS. + */ +#define DMUS_EFFECT_NONE 0x00000000 +#define DMUS_EFFECT_REVERB 0x00000001 +#define DMUS_EFFECT_CHORUS 0x00000002 +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ +#define DMUS_EFFECT_DELAY 0x00000004 +#endif + +/* For DMUS_PORTCAPS dwClass + */ +#define DMUS_PC_INPUTCLASS (0) +#define DMUS_PC_OUTPUTCLASS (1) + +/* For DMUS_PORTCAPS dwFlags + */ +#define DMUS_PC_DLS (0x00000001) /* Supports DLS downloading and DLS level 1. */ +#define DMUS_PC_EXTERNAL (0x00000002) /* External MIDI module. */ +#define DMUS_PC_SOFTWARESYNTH (0x00000004) /* Software synthesizer. */ +#define DMUS_PC_MEMORYSIZEFIXED (0x00000008) /* Memory size is fixed. */ +#define DMUS_PC_GMINHARDWARE (0x00000010) /* GM sound set is built in, no need to download. */ +#define DMUS_PC_GSINHARDWARE (0x00000020) /* GS sound set is built in. */ +#define DMUS_PC_XGINHARDWARE (0x00000040) /* XG sound set is built in. */ +#define DMUS_PC_DIRECTSOUND (0x00000080) /* Connects to DirectSound via a DSound buffer. */ +#define DMUS_PC_SHAREABLE (0x00000100) /* Synth can be actively shared by multiple apps at once. */ +#define DMUS_PC_DLS2 (0x00000200) /* Supports DLS2 instruments. */ +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ +#define DMUS_PC_AUDIOPATH (0x00000400) /* Multiple outputs can be connected to DirectSound for audiopaths. */ +#define DMUS_PC_WAVE (0x00000800) /* Supports streaming and one shot waves. */ +#endif + +#define DMUS_PC_SYSTEMMEMORY (0x7FFFFFFF) /* Sample memory is system memory. */ + + +typedef struct _DMUS_PORTCAPS +{ + DWORD dwSize; + DWORD dwFlags; + GUID guidPort; + DWORD dwClass; + DWORD dwType; + DWORD dwMemorySize; + DWORD dwMaxChannelGroups; + DWORD dwMaxVoices; + DWORD dwMaxAudioChannels; + DWORD dwEffectFlags; + WCHAR wszDescription[DMUS_MAX_DESCRIPTION]; +} DMUS_PORTCAPS; + +typedef DMUS_PORTCAPS *LPDMUS_PORTCAPS; + +/* Values for DMUS_PORTCAPS dwType. This field indicates the underlying + * driver type of the port. + */ +#define DMUS_PORT_WINMM_DRIVER (0) +#define DMUS_PORT_USER_MODE_SYNTH (1) +#define DMUS_PORT_KERNEL_MODE (2) + +/* These flags (set in dwValidParams) indicate which other members of the */ +/* DMUS_PORTPARAMS are valid. */ +/* */ +#define DMUS_PORTPARAMS_VOICES 0x00000001 +#define DMUS_PORTPARAMS_CHANNELGROUPS 0x00000002 +#define DMUS_PORTPARAMS_AUDIOCHANNELS 0x00000004 +#define DMUS_PORTPARAMS_SAMPLERATE 0x00000008 +#define DMUS_PORTPARAMS_EFFECTS 0x00000020 +#define DMUS_PORTPARAMS_SHARE 0x00000040 +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ +#define DMUS_PORTPARAMS_FEATURES 0x00000080 /* DirectX 8.0 and above */ +#endif + +typedef struct _DMUS_PORTPARAMS +{ + DWORD dwSize; + DWORD dwValidParams; + DWORD dwVoices; + DWORD dwChannelGroups; + DWORD dwAudioChannels; + DWORD dwSampleRate; + DWORD dwEffectFlags; + BOOL fShare; +} DMUS_PORTPARAMS7; + +#if (NTDDI_VERSION < NTDDI_WINXP) /* Windows 2000 */ + +typedef DMUS_PORTPARAMS7 DMUS_PORTPARAMS; + +#else /* NTDDI_VERSION < NTDDI_WINXP */ + +typedef struct _DMUS_PORTPARAMS8 +{ + DWORD dwSize; + DWORD dwValidParams; + DWORD dwVoices; + DWORD dwChannelGroups; + DWORD dwAudioChannels; + DWORD dwSampleRate; + DWORD dwEffectFlags; + BOOL fShare; + DWORD dwFeatures; +} DMUS_PORTPARAMS8; + +#define DMUS_PORT_FEATURE_AUDIOPATH 0x00000001 /* Supports audiopath connection to DSound buffers. */ +#define DMUS_PORT_FEATURE_STREAMING 0x00000002 /* Supports streaming waves through the synth. */ + +typedef DMUS_PORTPARAMS8 DMUS_PORTPARAMS; + +#endif /* NTDDI_VERSION < NTDDI_WINXP */ + +typedef DMUS_PORTPARAMS *LPDMUS_PORTPARAMS; + +typedef struct _DMUS_SYNTHSTATS *LPDMUS_SYNTHSTATS; +typedef struct _DMUS_SYNTHSTATS +{ + DWORD dwSize; /* Size in bytes of the structure */ + DWORD dwValidStats; /* Flags indicating which fields below are valid. */ + DWORD dwVoices; /* Average number of voices playing. */ + DWORD dwTotalCPU; /* Total CPU usage as percent * 100. */ + DWORD dwCPUPerVoice; /* CPU per voice as percent * 100. */ + DWORD dwLostNotes; /* Number of notes lost in 1 second. */ + DWORD dwFreeMemory; /* Free memory in bytes */ + long lPeakVolume; /* Decibel level * 100. */ +} DMUS_SYNTHSTATS; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +typedef struct _DMUS_SYNTHSTATS8 *LPDMUS_SYNTHSTATS8; +typedef struct _DMUS_SYNTHSTATS8 +{ + DWORD dwSize; /* Size in bytes of the structure */ + DWORD dwValidStats; /* Flags indicating which fields below are valid. */ + DWORD dwVoices; /* Average number of voices playing. */ + DWORD dwTotalCPU; /* Total CPU usage as percent * 100. */ + DWORD dwCPUPerVoice; /* CPU per voice as percent * 100. */ + DWORD dwLostNotes; /* Number of notes lost in 1 second. */ + DWORD dwFreeMemory; /* Free memory in bytes */ + long lPeakVolume; /* Decibel level * 100. */ + DWORD dwSynthMemUse; /* Memory used by synth wave data */ +} DMUS_SYNTHSTATS8; + +#endif /* NTDDI_VERSION >= NTDDI_WINXP */ + +#define DMUS_SYNTHSTATS_VOICES (1 << 0) +#define DMUS_SYNTHSTATS_TOTAL_CPU (1 << 1) +#define DMUS_SYNTHSTATS_CPU_PER_VOICE (1 << 2) +#define DMUS_SYNTHSTATS_LOST_NOTES (1 << 3) +#define DMUS_SYNTHSTATS_PEAK_VOLUME (1 << 4) +#define DMUS_SYNTHSTATS_FREE_MEMORY (1 << 5) + +#define DMUS_SYNTHSTATS_SYSTEMMEMORY DMUS_PC_SYSTEMMEMORY + +typedef struct _DMUS_WAVES_REVERB_PARAMS +{ + float fInGain; /* Input gain in dB (to avoid output overflows) */ + float fReverbMix; /* Reverb mix in dB. 0dB means 100% wet reverb (no direct signal) + Negative values gives less wet signal. + The coeficients are calculated so that the overall output level stays + (approximately) constant regardless of the ammount of reverb mix. */ + float fReverbTime; /* The reverb decay time, in milliseconds. */ + float fHighFreqRTRatio; /* The ratio of the high frequencies to the global reverb time. + Unless very 'splashy-bright' reverbs are wanted, this should be set to + a value < 1.0. + For example if dRevTime==1000ms and dHighFreqRTRatio=0.1 than the + decay time for high frequencies will be 100ms.*/ + +} DMUS_WAVES_REVERB_PARAMS; + +/* Note: Default values for Reverb are: + fInGain = 0.0dB (no change in level) + fReverbMix = -10.0dB (a reasonable reverb mix) + fReverbTime = 1000.0ms (one second global reverb time) + fHighFreqRTRatio = 0.001 (the ratio of the high frequencies to the global reverb time) +*/ + +typedef enum +{ + DMUS_CLOCK_SYSTEM = 0, + DMUS_CLOCK_WAVE = 1 +} DMUS_CLOCKTYPE; + +#define DMUS_CLOCKF_GLOBAL 0x00000001 + +typedef struct _DMUS_CLOCKINFO7 *LPDMUS_CLOCKINFO7; +typedef struct _DMUS_CLOCKINFO7 +{ + DWORD dwSize; + DMUS_CLOCKTYPE ctType; + GUID guidClock; /* Identifies this time source */ + WCHAR wszDescription[DMUS_MAX_DESCRIPTION]; +} DMUS_CLOCKINFO7; + +#if (NTDDI_VERSION < NTDDI_WINXP) /* Windows 2000 */ + +typedef DMUS_CLOCKINFO7 DMUS_CLOCKINFO; + +#else /* NTDDI_VERSION < NTDDI_WINXP */ + +typedef struct _DMUS_CLOCKINFO8 *LPDMUS_CLOCKINFO8; +typedef struct _DMUS_CLOCKINFO8 +{ + DWORD dwSize; + DMUS_CLOCKTYPE ctType; + GUID guidClock; /* Identifies this time source */ + WCHAR wszDescription[DMUS_MAX_DESCRIPTION]; + DWORD dwFlags; +} DMUS_CLOCKINFO8; + +typedef DMUS_CLOCKINFO8 DMUS_CLOCKINFO; + +#endif /* NTDDI_VERSION < NTDDI_WINXP */ + +typedef DMUS_CLOCKINFO *LPDMUS_CLOCKINFO; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +/* Default bus identifiers + * + * The first 17 are direct mappings to the destinations defined in both + * the MMA DLS Level 2 specification and the Microsoft Multi-Channel audio + * specification. + */ +#define DSBUSID_FIRST_SPKR_LOC 0 +#define DSBUSID_FRONT_LEFT 0 +#define DSBUSID_LEFT 0 /* Front left is also just left */ +#define DSBUSID_FRONT_RIGHT 1 +#define DSBUSID_RIGHT 1 /* Ditto front right */ +#define DSBUSID_FRONT_CENTER 2 +#define DSBUSID_LOW_FREQUENCY 3 +#define DSBUSID_BACK_LEFT 4 +#define DSBUSID_BACK_RIGHT 5 +#define DSBUSID_FRONT_LEFT_OF_CENTER 6 +#define DSBUSID_FRONT_RIGHT_OF_CENTER 7 +#define DSBUSID_BACK_CENTER 8 +#define DSBUSID_SIDE_LEFT 9 +#define DSBUSID_SIDE_RIGHT 10 +#define DSBUSID_TOP_CENTER 11 +#define DSBUSID_TOP_FRONT_LEFT 12 +#define DSBUSID_TOP_FRONT_CENTER 13 +#define DSBUSID_TOP_FRONT_RIGHT 14 +#define DSBUSID_TOP_BACK_LEFT 15 +#define DSBUSID_TOP_BACK_CENTER 16 +#define DSBUSID_TOP_BACK_RIGHT 17 +#define DSBUSID_LAST_SPKR_LOC 17 + +#define DSBUSID_IS_SPKR_LOC(id) ( ((id) >= DSBUSID_FIRST_SPKR_LOC) && ((id) <= DSBUSID_LAST_SPKR_LOC) ) + +/* These bus identifiers are for the standard DLS effect sends + */ +#define DSBUSID_REVERB_SEND 64 +#define DSBUSID_CHORUS_SEND 65 + +/* Dynamic bus identifiers start here. See the documentation for how + * synthesizers map the output of voices to static and dynamic + * bus identifiers. + */ +#define DSBUSID_DYNAMIC_0 512 + +/* Null bus, used to identify busses that have no function mapping. +*/ +#define DSBUSID_NULL 0xFFFFFFFF + +#endif /* NTDDI_VERSION >= NTDDI_WINXP */ + +interface IDirectMusic; +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ +interface IDirectMusic8; +#endif +interface IDirectMusicBuffer; +interface IDirectMusicPort; +interface IDirectMusicThru; +interface IReferenceClock; + +#ifndef __cplusplus + +typedef interface IDirectMusic IDirectMusic; +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ +typedef interface IDirectMusic8 IDirectMusic8; +#endif +typedef interface IDirectMusicPort IDirectMusicPort; +typedef interface IDirectMusicBuffer IDirectMusicBuffer; +typedef interface IDirectMusicThru IDirectMusicThru; +typedef interface IReferenceClock IReferenceClock; + +#endif /* C++ */ + +typedef IDirectMusic *LPDIRECTMUSIC; +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ +typedef IDirectMusic8 *LPDIRECTMUSIC8; +#endif +typedef IDirectMusicPort *LPDIRECTMUSICPORT; +typedef IDirectMusicBuffer *LPDIRECTMUSICBUFFER; + +#undef INTERFACE +#define INTERFACE IDirectMusic +DECLARE_INTERFACE_(IDirectMusic, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusic */ + STDMETHOD(EnumPort) (THIS_ DWORD dwIndex, + LPDMUS_PORTCAPS pPortCaps) PURE; + STDMETHOD(CreateMusicBuffer) (THIS_ LPDMUS_BUFFERDESC pBufferDesc, + LPDIRECTMUSICBUFFER *ppBuffer, + LPUNKNOWN pUnkOuter) PURE; + STDMETHOD(CreatePort) (THIS_ REFCLSID rclsidPort, + LPDMUS_PORTPARAMS pPortParams, + LPDIRECTMUSICPORT *ppPort, + LPUNKNOWN pUnkOuter) PURE; + STDMETHOD(EnumMasterClock) (THIS_ DWORD dwIndex, + LPDMUS_CLOCKINFO lpClockInfo) PURE; + STDMETHOD(GetMasterClock) (THIS_ LPGUID pguidClock, + IReferenceClock **ppReferenceClock) PURE; + STDMETHOD(SetMasterClock) (THIS_ REFGUID rguidClock) PURE; + STDMETHOD(Activate) (THIS_ BOOL fEnable) PURE; + STDMETHOD(GetDefaultPort) (THIS_ LPGUID pguidPort) PURE; + STDMETHOD(SetDirectSound) (THIS_ LPDIRECTSOUND pDirectSound, + HWND hWnd) PURE; +}; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +#undef INTERFACE +#define INTERFACE IDirectMusic8 +DECLARE_INTERFACE_(IDirectMusic8, IDirectMusic) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusic */ + STDMETHOD(EnumPort) (THIS_ DWORD dwIndex, + LPDMUS_PORTCAPS pPortCaps) PURE; + STDMETHOD(CreateMusicBuffer) (THIS_ LPDMUS_BUFFERDESC pBufferDesc, + LPDIRECTMUSICBUFFER *ppBuffer, + LPUNKNOWN pUnkOuter) PURE; + STDMETHOD(CreatePort) (THIS_ REFCLSID rclsidPort, + LPDMUS_PORTPARAMS pPortParams, + LPDIRECTMUSICPORT *ppPort, + LPUNKNOWN pUnkOuter) PURE; + STDMETHOD(EnumMasterClock) (THIS_ DWORD dwIndex, + LPDMUS_CLOCKINFO lpClockInfo) PURE; + STDMETHOD(GetMasterClock) (THIS_ LPGUID pguidClock, + IReferenceClock **ppReferenceClock) PURE; + STDMETHOD(SetMasterClock) (THIS_ REFGUID rguidClock) PURE; + STDMETHOD(Activate) (THIS_ BOOL fEnable) PURE; + STDMETHOD(GetDefaultPort) (THIS_ LPGUID pguidPort) PURE; + STDMETHOD(SetDirectSound) (THIS_ LPDIRECTSOUND pDirectSound, + HWND hWnd) PURE; + /* IDirectMusic8 */ + STDMETHOD(SetExternalMasterClock) + (THIS_ IReferenceClock *pClock) PURE; +}; + +#endif /* NTDDI_VERSION >= NTDDI_WINXP */ + +#undef INTERFACE +#define INTERFACE IDirectMusicBuffer +DECLARE_INTERFACE_(IDirectMusicBuffer, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicBuffer */ + STDMETHOD(Flush) (THIS) PURE; + STDMETHOD(TotalTime) (THIS_ LPREFERENCE_TIME prtTime) PURE; + + STDMETHOD(PackStructured) (THIS_ REFERENCE_TIME rt, + DWORD dwChannelGroup, + DWORD dwChannelMessage) PURE; + + STDMETHOD(PackUnstructured) (THIS_ REFERENCE_TIME rt, + DWORD dwChannelGroup, + DWORD cb, + LPBYTE lpb) PURE; + + STDMETHOD(ResetReadPtr) (THIS) PURE; + STDMETHOD(GetNextEvent) (THIS_ LPREFERENCE_TIME prt, + LPDWORD pdwChannelGroup, + LPDWORD pdwLength, + LPBYTE *ppData) PURE; + + STDMETHOD(GetRawBufferPtr) (THIS_ LPBYTE *ppData) PURE; + STDMETHOD(GetStartTime) (THIS_ LPREFERENCE_TIME prt) PURE; + STDMETHOD(GetUsedBytes) (THIS_ LPDWORD pcb) PURE; + STDMETHOD(GetMaxBytes) (THIS_ LPDWORD pcb) PURE; + STDMETHOD(GetBufferFormat) (THIS_ LPGUID pGuidFormat) PURE; + + STDMETHOD(SetStartTime) (THIS_ REFERENCE_TIME rt) PURE; + STDMETHOD(SetUsedBytes) (THIS_ DWORD cb) PURE; +}; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +typedef IDirectMusicBuffer IDirectMusicBuffer8; +typedef IDirectMusicBuffer8 *LPDIRECTMUSICBUFFER8; + +#endif + +#undef INTERFACE +#define INTERFACE IDirectMusicInstrument +DECLARE_INTERFACE_(IDirectMusicInstrument, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicInstrument */ + STDMETHOD(GetPatch) (THIS_ DWORD* pdwPatch) PURE; + STDMETHOD(SetPatch) (THIS_ DWORD dwPatch) PURE; +}; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +typedef IDirectMusicInstrument IDirectMusicInstrument8; +typedef IDirectMusicInstrument8 *LPDIRECTMUSICINSTRUMENT8; + +#endif + +#undef INTERFACE +#define INTERFACE IDirectMusicDownloadedInstrument +DECLARE_INTERFACE_(IDirectMusicDownloadedInstrument, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicDownloadedInstrument */ + /* None at this time */ +}; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +typedef IDirectMusicDownloadedInstrument IDirectMusicDownloadedInstrument8; +typedef IDirectMusicDownloadedInstrument8 *LPDIRECTMUSICDOWNLOADEDINSTRUMENT8; + +#endif + +#undef INTERFACE +#define INTERFACE IDirectMusicCollection +DECLARE_INTERFACE_(IDirectMusicCollection, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicCollection */ + STDMETHOD(GetInstrument) (THIS_ DWORD dwPatch, + IDirectMusicInstrument** ppInstrument) PURE; + STDMETHOD(EnumInstrument) (THIS_ DWORD dwIndex, + DWORD* pdwPatch, + LPWSTR pwszName, + DWORD dwNameLen) PURE; +}; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +typedef IDirectMusicCollection IDirectMusicCollection8; +typedef IDirectMusicCollection8 *LPDIRECTMUSICCOLLECTION8; + +#endif + +#undef INTERFACE +#define INTERFACE IDirectMusicDownload +DECLARE_INTERFACE_(IDirectMusicDownload , IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicDownload */ + STDMETHOD(GetBuffer) (THIS_ void** ppvBuffer, + DWORD* pdwSize) PURE; +}; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +typedef IDirectMusicDownload IDirectMusicDownload8; +typedef IDirectMusicDownload8 *LPDIRECTMUSICDOWNLOAD8; + +#endif + +#undef INTERFACE +#define INTERFACE IDirectMusicPortDownload +DECLARE_INTERFACE_(IDirectMusicPortDownload, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicPortDownload */ + STDMETHOD(GetBuffer) (THIS_ DWORD dwDLId, + IDirectMusicDownload** ppIDMDownload) PURE; + STDMETHOD(AllocateBuffer) (THIS_ DWORD dwSize, + IDirectMusicDownload** ppIDMDownload) PURE; + STDMETHOD(GetDLId) (THIS_ DWORD* pdwStartDLId, + DWORD dwCount) PURE; + STDMETHOD(GetAppend) (THIS_ DWORD* pdwAppend) PURE; + STDMETHOD(Download) (THIS_ IDirectMusicDownload* pIDMDownload) PURE; + STDMETHOD(Unload) (THIS_ IDirectMusicDownload* pIDMDownload) PURE; +}; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +typedef IDirectMusicPortDownload IDirectMusicPortDownload8; +typedef IDirectMusicPortDownload8 *LPDIRECTMUSICPORTDOWNLOAD8; + +#endif + +/* Standard values for voice priorities. Numerically higher priorities are higher in priority. + * These priorities are used to set the voice priority for all voices on a channel. They are + * used in the dwPriority parameter of IDirectMusicPort::GetPriority and returned in the + * lpwPriority parameter of pdwPriority. + * + * These priorities are shared with DirectSound. + */ + +#ifndef _DIRECTAUDIO_PRIORITIES_DEFINED_ +#define _DIRECTAUDIO_PRIORITIES_DEFINED_ + +#define DAUD_CRITICAL_VOICE_PRIORITY (0xF0000000) +#define DAUD_HIGH_VOICE_PRIORITY (0xC0000000) +#define DAUD_STANDARD_VOICE_PRIORITY (0x80000000) +#define DAUD_LOW_VOICE_PRIORITY (0x40000000) +#define DAUD_PERSIST_VOICE_PRIORITY (0x10000000) + +/* These are the default priorities assigned if not overridden. By default priorities are + * equal across channel groups (e.g. channel 5 on channel group 1 has the same priority as + * channel 5 on channel group 2). + * + * In accordance with DLS level 1, channel 10 has the highest priority, followed by 1 through 16 + * except for 10. + */ +#define DAUD_CHAN1_VOICE_PRIORITY_OFFSET (0x0000000E) +#define DAUD_CHAN2_VOICE_PRIORITY_OFFSET (0x0000000D) +#define DAUD_CHAN3_VOICE_PRIORITY_OFFSET (0x0000000C) +#define DAUD_CHAN4_VOICE_PRIORITY_OFFSET (0x0000000B) +#define DAUD_CHAN5_VOICE_PRIORITY_OFFSET (0x0000000A) +#define DAUD_CHAN6_VOICE_PRIORITY_OFFSET (0x00000009) +#define DAUD_CHAN7_VOICE_PRIORITY_OFFSET (0x00000008) +#define DAUD_CHAN8_VOICE_PRIORITY_OFFSET (0x00000007) +#define DAUD_CHAN9_VOICE_PRIORITY_OFFSET (0x00000006) +#define DAUD_CHAN10_VOICE_PRIORITY_OFFSET (0x0000000F) +#define DAUD_CHAN11_VOICE_PRIORITY_OFFSET (0x00000005) +#define DAUD_CHAN12_VOICE_PRIORITY_OFFSET (0x00000004) +#define DAUD_CHAN13_VOICE_PRIORITY_OFFSET (0x00000003) +#define DAUD_CHAN14_VOICE_PRIORITY_OFFSET (0x00000002) +#define DAUD_CHAN15_VOICE_PRIORITY_OFFSET (0x00000001) +#define DAUD_CHAN16_VOICE_PRIORITY_OFFSET (0x00000000) + + +#define DAUD_CHAN1_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN1_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN2_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN2_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN3_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN3_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN4_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN4_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN5_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN5_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN6_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN6_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN7_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN7_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN8_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN8_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN9_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN9_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN10_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN10_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN11_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN11_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN12_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN12_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN13_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN13_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN14_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN14_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN15_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN15_VOICE_PRIORITY_OFFSET) +#define DAUD_CHAN16_DEF_VOICE_PRIORITY (DAUD_STANDARD_VOICE_PRIORITY | DAUD_CHAN16_VOICE_PRIORITY_OFFSET) + +#endif /* _DIRECTAUDIO_PRIORITIES_DEFINED_ */ + + +#undef INTERFACE +#define INTERFACE IDirectMusicPort +DECLARE_INTERFACE_(IDirectMusicPort, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicPort */ + /* */ + STDMETHOD(PlayBuffer) (THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE; + STDMETHOD(SetReadNotificationHandle) (THIS_ HANDLE hEvent) PURE; + STDMETHOD(Read) (THIS_ LPDIRECTMUSICBUFFER pBuffer) PURE; + STDMETHOD(DownloadInstrument) (THIS_ IDirectMusicInstrument *pInstrument, + IDirectMusicDownloadedInstrument **ppDownloadedInstrument, + DMUS_NOTERANGE *pNoteRanges, + DWORD dwNumNoteRanges) PURE; + STDMETHOD(UnloadInstrument) (THIS_ IDirectMusicDownloadedInstrument *pDownloadedInstrument) PURE; + STDMETHOD(GetLatencyClock) (THIS_ IReferenceClock **ppClock) PURE; + STDMETHOD(GetRunningStats) (THIS_ LPDMUS_SYNTHSTATS pStats) PURE; + STDMETHOD(Compact) (THIS) PURE; + STDMETHOD(GetCaps) (THIS_ LPDMUS_PORTCAPS pPortCaps) PURE; + STDMETHOD(DeviceIoControl) (THIS_ DWORD dwIoControlCode, + LPVOID lpInBuffer, + DWORD nInBufferSize, + LPVOID lpOutBuffer, + DWORD nOutBufferSize, + LPDWORD lpBytesReturned, + LPOVERLAPPED lpOverlapped) PURE; + STDMETHOD(SetNumChannelGroups) (THIS_ DWORD dwChannelGroups) PURE; + STDMETHOD(GetNumChannelGroups) (THIS_ LPDWORD pdwChannelGroups) PURE; + STDMETHOD(Activate) (THIS_ BOOL fActive) PURE; + STDMETHOD(SetChannelPriority) (THIS_ DWORD dwChannelGroup, DWORD dwChannel, DWORD dwPriority) PURE; + STDMETHOD(GetChannelPriority) (THIS_ DWORD dwChannelGroup, DWORD dwChannel, LPDWORD pdwPriority) PURE; + STDMETHOD(SetDirectSound) (THIS_ LPDIRECTSOUND pDirectSound, LPDIRECTSOUNDBUFFER pDirectSoundBuffer) PURE; + STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pWaveFormatEx, LPDWORD pdwWaveFormatExSize, LPDWORD pdwBufferSize) PURE; +}; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +typedef IDirectMusicPort IDirectMusicPort8; +typedef IDirectMusicPort8 *LPDIRECTMUSICPORT8; + +#endif + +#undef INTERFACE +#define INTERFACE IDirectMusicThru +DECLARE_INTERFACE_(IDirectMusicThru, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicThru + */ + STDMETHOD(ThruChannel) (THIS_ DWORD dwSourceChannelGroup, + DWORD dwSourceChannel, + DWORD dwDestinationChannelGroup, + DWORD dwDestinationChannel, + LPDIRECTMUSICPORT pDestinationPort) PURE; +}; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +typedef IDirectMusicThru IDirectMusicThru8; +typedef IDirectMusicThru8 *LPDIRECTMUSICTHRU8; + +#endif + +#ifndef __IReferenceClock_INTERFACE_DEFINED__ +#define __IReferenceClock_INTERFACE_DEFINED__ + +DEFINE_GUID(IID_IReferenceClock,0x56a86897,0x0ad4,0x11ce,0xb0,0x3a,0x00,0x20,0xaf,0x0b,0xa7,0x70); + +#undef INTERFACE +#define INTERFACE IReferenceClock +DECLARE_INTERFACE_(IReferenceClock, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IReferenceClock */ + /* */ + + /* get the time now */ + STDMETHOD(GetTime) (THIS_ REFERENCE_TIME *pTime) PURE; + + /* ask for an async notification that a time has elapsed */ + STDMETHOD(AdviseTime) (THIS_ REFERENCE_TIME baseTime, /* base time */ + REFERENCE_TIME streamTime, /* stream offset time */ + HANDLE hEvent, /* advise via this event */ + DWORD * pdwAdviseCookie) PURE; /* where your cookie goes */ + + /* ask for an async periodic notification that a time has elapsed */ + STDMETHOD(AdvisePeriodic) (THIS_ REFERENCE_TIME startTime, /* starting at this time */ + REFERENCE_TIME periodTime, /* time between notifications */ + HANDLE hSemaphore, /* advise via a semaphore */ + DWORD * pdwAdviseCookie) PURE; /* where your cookie goes */ + + /* cancel a request for notification */ + STDMETHOD(Unadvise) (THIS_ DWORD dwAdviseCookie) PURE; +}; + +#endif /* __IReferenceClock_INTERFACE_DEFINED__ */ + +DEFINE_GUID(CLSID_DirectMusic,0x636b9f10,0x0c7d,0x11d1,0x95,0xb2,0x00,0x20,0xaf,0xdc,0x74,0x21); +DEFINE_GUID(CLSID_DirectMusicCollection,0x480ff4b0, 0x28b2, 0x11d1, 0xbe, 0xf7, 0x0, 0xc0, 0x4f, 0xbf, 0x8f, 0xef); +DEFINE_GUID(CLSID_DirectMusicSynth,0x58C2B4D0,0x46E7,0x11D1,0x89,0xAC,0x00,0xA0,0xC9,0x05,0x41,0x29); + +DEFINE_GUID(IID_IDirectMusic,0x6536115a,0x7b2d,0x11d2,0xba,0x18,0x00,0x00,0xf8,0x75,0xac,0x12); +DEFINE_GUID(IID_IDirectMusicBuffer,0xd2ac2878, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); +DEFINE_GUID(IID_IDirectMusicPort, 0x08f2d8c9,0x37c2,0x11d2,0xb9,0xf9,0x00,0x00,0xf8,0x75,0xac,0x12); +DEFINE_GUID(IID_IDirectMusicThru, 0xced153e7, 0x3606, 0x11d2, 0xb9, 0xf9, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); +DEFINE_GUID(IID_IDirectMusicPortDownload,0xd2ac287a, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); +DEFINE_GUID(IID_IDirectMusicDownload,0xd2ac287b, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); +DEFINE_GUID(IID_IDirectMusicCollection,0xd2ac287c, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); +DEFINE_GUID(IID_IDirectMusicInstrument,0xd2ac287d, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); +DEFINE_GUID(IID_IDirectMusicDownloadedInstrument,0xd2ac287e, 0xb39b, 0x11d1, 0x87, 0x4, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); + + +/* Alternate interface ID for IID_IDirectMusic, available in DX7 release and after. */ +DEFINE_GUID(IID_IDirectMusic2,0x6fc2cae1, 0xbc78, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +DEFINE_GUID(IID_IDirectMusic8,0x2d3629f7,0x813d,0x4939,0x85,0x08,0xf0,0x5c,0x6b,0x75,0xfd,0x97); + +#define IID_IDirectMusicThru8 IID_IDirectMusicThru +#define IID_IDirectMusicPortDownload8 IID_IDirectMusicPortDownload +#define IID_IDirectMusicDownload8 IID_IDirectMusicDownload +#define IID_IDirectMusicCollection8 IID_IDirectMusicCollection +#define IID_IDirectMusicInstrument8 IID_IDirectMusicInstrument +#define IID_IDirectMusicDownloadedInstrument8 IID_IDirectMusicDownloadedInstrument +#define IID_IDirectMusicPort8 IID_IDirectMusicPort + +#endif + +/* Property Query GUID_DMUS_PROP_GM_Hardware - Local GM set, no need to download + * Property Query GUID_DMUS_PROP_GS_Hardware - Local GS set, no need to download + * Property Query GUID_DMUS_PROP_XG_Hardware - Local XG set, no need to download + * Property Query GUID_DMUS_PROP_DLS1 - Support DLS level 1 + * Property Query GUID_DMUS_PROP_INSTRUMENT2 - Support new INSTRUMENT2 download format + * Property Query GUID_DMUS_PROP_XG_Capable - Support minimum requirements of XG + * Property Query GUID_DMUS_PROP_GS_Capable - Support minimum requirements of GS + * Property Query GUID_DMUS_PROP_SynthSink_DSOUND - Synthsink talks to DSound + * Property Query GUID_DMUS_PROP_SynthSink_WAVE - Synthsink talks to Wave device + * + * Item 0: Supported + * Returns a DWORD which is non-zero if the feature is supported + */ +DEFINE_GUID(GUID_DMUS_PROP_GM_Hardware, 0x178f2f24, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); +DEFINE_GUID(GUID_DMUS_PROP_GS_Hardware, 0x178f2f25, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); +DEFINE_GUID(GUID_DMUS_PROP_XG_Hardware, 0x178f2f26, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); +DEFINE_GUID(GUID_DMUS_PROP_XG_Capable, 0x6496aba1, 0x61b0, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); +DEFINE_GUID(GUID_DMUS_PROP_GS_Capable, 0x6496aba2, 0x61b0, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); +DEFINE_GUID(GUID_DMUS_PROP_DLS1, 0x178f2f27, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); +DEFINE_GUID(GUID_DMUS_PROP_DLS2, 0xf14599e5, 0x4689, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); +DEFINE_GUID(GUID_DMUS_PROP_INSTRUMENT2, 0x865fd372, 0x9f67, 0x11d2, 0x87, 0x2a, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); +DEFINE_GUID(GUID_DMUS_PROP_SynthSink_DSOUND,0xaa97844, 0xc877, 0x11d1, 0x87, 0xc, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); +DEFINE_GUID(GUID_DMUS_PROP_SynthSink_WAVE,0xaa97845, 0xc877, 0x11d1, 0x87, 0xc, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); +DEFINE_GUID(GUID_DMUS_PROP_SampleMemorySize, 0x178f2f28, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); +DEFINE_GUID(GUID_DMUS_PROP_SamplePlaybackRate, 0x2a91f713, 0xa4bf, 0x11d2, 0xbb, 0xdf, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8); + +/* Property Get/Set GUID_DMUS_PROP_WriteLatency + * + * Item 0: Synth buffer write latency, in milliseconds + * Get/Set SynthSink latency, the average time after the play head that the next buffer gets written. + */ +DEFINE_GUID(GUID_DMUS_PROP_WriteLatency,0x268a0fa0, 0x60f2, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); + +/* Property Get/Set GUID_DMUS_PROP_WritePeriod + * + * Item 0: Synth buffer write period, in milliseconds + * Get/Set SynthSink buffer write period, time span between successive writes. + */ +DEFINE_GUID(GUID_DMUS_PROP_WritePeriod,0x268a0fa1, 0x60f2, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); + +/* Property Get GUID_DMUS_PROP_MemorySize + * + * Item 0: Memory size + * Returns a DWORD containing the total number of bytes of sample RAM + */ +DEFINE_GUID(GUID_DMUS_PROP_MemorySize, 0x178f2f28, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); + +/* Property Set GUID_DMUS_PROP_WavesReverb + * + * Item 0: DMUS_WAVES_REVERB structure + * Sets reverb parameters + */ +DEFINE_GUID(GUID_DMUS_PROP_WavesReverb,0x4cb5622, 0x32e5, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); + +/* Property Set GUID_DMUS_PROP_Effects + * + * Item 0: DWORD with effects flags. + * Get/Set effects bits, same as dwEffectFlags in DMUS_PORTPARAMS and DMUS_PORTCAPS: + * DMUS_EFFECT_NONE + * DMUS_EFFECT_REVERB + * DMUS_EFFECT_CHORUS + */ +DEFINE_GUID(GUID_DMUS_PROP_Effects, 0xcda8d611, 0x684a, 0x11d2, 0x87, 0x1e, 0x0, 0x60, 0x8, 0x93, 0xb1, 0xbd); + +/* Property Set GUID_DMUS_PROP_LegacyCaps + * + * Item 0: The MIDINCAPS or MIDIOUTCAPS which describes the port's underlying WinMM device. This property is only supported + * by ports which wrap WinMM devices. + */ + +DEFINE_GUID(GUID_DMUS_PROP_LegacyCaps,0xcfa7cdc2, 0x00a1, 0x11d2, 0xaa, 0xd5, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); + +/* Property Set GUID_DMUS_PROP_Volume + * + * Item 0: A long which contains an offset, in 1/100 dB, to be added to the final volume + * + */ +DEFINE_GUID(GUID_DMUS_PROP_Volume, 0xfedfae25L, 0xe46e, 0x11d1, 0xaa, 0xce, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); + +/* Min and Max values for setting volume with GUID_DMUS_PROP_Volume */ + +#define DMUS_VOLUME_MAX 2000 /* +20 dB */ +#define DMUS_VOLUME_MIN -20000 /* -200 dB */ + +#ifdef __cplusplus +}; /* extern "C" */ +#endif + +#include + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* #ifndef _DMUSICC_ */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmusics.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmusics.h new file mode 100644 index 0000000000000000000000000000000000000000..7d0742189ac8b52769c36a8b6d5a9f172e4e69e3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dmusics.h @@ -0,0 +1,215 @@ +/************************************************************************ +* * +* dmusics.h -- Definitions for created a DirectMusic software synth * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +************************************************************************/ + +#ifndef _DMUSICS_ +#define _DMUSICS_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include "dmusicc.h" + +/* Software synths are enumerated from under this registry key. + */ +#define REGSTR_PATH_SOFTWARESYNTHS "Software\\Microsoft\\DirectMusic\\SoftwareSynths" + +interface IDirectMusicSynth; +interface IDirectMusicSynthSink; + +#ifndef __cplusplus +typedef interface IDirectMusicSynth IDirectMusicSynth; +typedef interface IDirectMusicSynthSink IDirectMusicSynthSink; +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +#ifndef _DMUS_VOICE_STATE_DEFINED +#define _DMUS_VOICE_STATE_DEFINED + +typedef struct _DMUS_VOICE_STATE +{ + BOOL bExists; + SAMPLE_POSITION spPosition; +} DMUS_VOICE_STATE; + +#endif /* _DMUS_VOICE_STATE_DEFINED */ + +/* IDirectMusicSynth::Refresh + * + * This is the last buffer of the stream. It may be a partial block. + */ +#define REFRESH_F_LASTBUFFER 0x00000001 + +#endif /* NTDDI_VERSION >= NTDDI_WINXP */ + +#undef INTERFACE +#define INTERFACE IDirectMusicSynth +DECLARE_INTERFACE_(IDirectMusicSynth, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicSynth */ + STDMETHOD(Open) (THIS_ LPDMUS_PORTPARAMS pPortParams) PURE; + STDMETHOD(Close) (THIS) PURE; + STDMETHOD(SetNumChannelGroups) (THIS_ DWORD dwGroups) PURE; + STDMETHOD(Download) (THIS_ LPHANDLE phDownload, + LPVOID pvData, + LPBOOL pbFree ) PURE; + STDMETHOD(Unload) (THIS_ HANDLE hDownload, + HRESULT ( CALLBACK *lpFreeHandle)(HANDLE,HANDLE), + HANDLE hUserData ) PURE; + STDMETHOD(PlayBuffer) (THIS_ REFERENCE_TIME rt, + LPBYTE pbBuffer, + DWORD cbBuffer) PURE; + STDMETHOD(GetRunningStats) (THIS_ LPDMUS_SYNTHSTATS pStats) PURE; + STDMETHOD(GetPortCaps) (THIS_ LPDMUS_PORTCAPS pCaps) PURE; + STDMETHOD(SetMasterClock) (THIS_ IReferenceClock *pClock) PURE; + STDMETHOD(GetLatencyClock) (THIS_ IReferenceClock **ppClock) PURE; + STDMETHOD(Activate) (THIS_ BOOL fEnable) PURE; + STDMETHOD(SetSynthSink) (THIS_ IDirectMusicSynthSink *pSynthSink) PURE; + STDMETHOD(Render) (THIS_ short *pBuffer, + DWORD dwLength, + LONGLONG llPosition) PURE; + STDMETHOD(SetChannelPriority) (THIS_ DWORD dwChannelGroup, + DWORD dwChannel, + DWORD dwPriority) PURE; + STDMETHOD(GetChannelPriority) (THIS_ DWORD dwChannelGroup, + DWORD dwChannel, + LPDWORD pdwPriority) PURE; + STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pWaveFormatEx, + LPDWORD pdwWaveFormatExSize) PURE; + STDMETHOD(GetAppend) (THIS_ DWORD* pdwAppend) PURE; +}; + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ + +#undef INTERFACE +#define INTERFACE IDirectMusicSynth8 +DECLARE_INTERFACE_(IDirectMusicSynth8, IDirectMusicSynth) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicSynth */ + STDMETHOD(Open) (THIS_ LPDMUS_PORTPARAMS pPortParams) PURE; + STDMETHOD(Close) (THIS) PURE; + STDMETHOD(SetNumChannelGroups) (THIS_ DWORD dwGroups) PURE; + STDMETHOD(Download) (THIS_ LPHANDLE phDownload, + LPVOID pvData, + LPBOOL pbFree ) PURE; + STDMETHOD(Unload) (THIS_ HANDLE hDownload, + HRESULT ( CALLBACK *lpFreeHandle)(HANDLE,HANDLE), + HANDLE hUserData ) PURE; + STDMETHOD(PlayBuffer) (THIS_ REFERENCE_TIME rt, + LPBYTE pbBuffer, + DWORD cbBuffer) PURE; + STDMETHOD(GetRunningStats) (THIS_ LPDMUS_SYNTHSTATS pStats) PURE; + STDMETHOD(GetPortCaps) (THIS_ LPDMUS_PORTCAPS pCaps) PURE; + STDMETHOD(SetMasterClock) (THIS_ IReferenceClock *pClock) PURE; + STDMETHOD(GetLatencyClock) (THIS_ IReferenceClock **ppClock) PURE; + STDMETHOD(Activate) (THIS_ BOOL fEnable) PURE; + STDMETHOD(SetSynthSink) (THIS_ IDirectMusicSynthSink *pSynthSink) PURE; + STDMETHOD(Render) (THIS_ short *pBuffer, + DWORD dwLength, + LONGLONG llPosition) PURE; + STDMETHOD(SetChannelPriority) (THIS_ DWORD dwChannelGroup, + DWORD dwChannel, + DWORD dwPriority) PURE; + STDMETHOD(GetChannelPriority) (THIS_ DWORD dwChannelGroup, + DWORD dwChannel, + LPDWORD pdwPriority) PURE; + STDMETHOD(GetFormat) (THIS_ LPWAVEFORMATEX pWaveFormatEx, + LPDWORD pdwWaveFormatExSize) PURE; + STDMETHOD(GetAppend) (THIS_ DWORD* pdwAppend) PURE; + + /* IDirectMusicSynth8 */ + STDMETHOD(PlayVoice) (THIS_ REFERENCE_TIME rt, + DWORD dwVoiceId, + DWORD dwChannelGroup, + DWORD dwChannel, + DWORD dwDLId, + long prPitch, /* PREL not defined here */ + long vrVolume, /* VREL not defined here */ + SAMPLE_TIME stVoiceStart, + SAMPLE_TIME stLoopStart, + SAMPLE_TIME stLoopEnd) PURE; + + STDMETHOD(StopVoice) (THIS_ REFERENCE_TIME rt, + DWORD dwVoiceId ) PURE; + + STDMETHOD(GetVoiceState) (THIS_ DWORD dwVoice[], + DWORD cbVoice, + DMUS_VOICE_STATE dwVoiceState[] ) PURE; + STDMETHOD(Refresh) (THIS_ DWORD dwDownloadID, + DWORD dwFlags) PURE; + STDMETHOD(AssignChannelToBuses) (THIS_ DWORD dwChannelGroup, + DWORD dwChannel, + LPDWORD pdwBuses, + DWORD cBuses) PURE; +}; + +#endif /* NTDDI_VERSION >= NTDDI_WINXP */ + +#undef INTERFACE +#define INTERFACE IDirectMusicSynthSink +DECLARE_INTERFACE_(IDirectMusicSynthSink, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /* IDirectMusicSynthSink */ + STDMETHOD(Init) (THIS_ IDirectMusicSynth *pSynth) PURE; + STDMETHOD(SetMasterClock) (THIS_ IReferenceClock *pClock) PURE; + STDMETHOD(GetLatencyClock) (THIS_ IReferenceClock **ppClock) PURE; + STDMETHOD(Activate) (THIS_ BOOL fEnable) PURE; + STDMETHOD(SampleToRefTime) (THIS_ LONGLONG llSampleTime, + REFERENCE_TIME *prfTime) PURE; + STDMETHOD(RefTimeToSample) (THIS_ REFERENCE_TIME rfTime, + LONGLONG *pllSampleTime) PURE; + STDMETHOD(SetDirectSound) (THIS_ LPDIRECTSOUND pDirectSound, + LPDIRECTSOUNDBUFFER pDirectSoundBuffer) PURE; + STDMETHOD(GetDesiredBufferSize) (THIS_ LPDWORD pdwBufferSizeInSamples) PURE; +}; + + +DEFINE_GUID(IID_IDirectMusicSynth, 0x9823661, 0x5c85, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); +DEFINE_GUID(IID_IDirectMusicSynthSink,0x9823663, 0x5c85, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); + +#if (NTDDI_VERSION >= NTDDI_WINXP) /* Windows XP or greater */ +DEFINE_GUID(IID_IDirectMusicSynth8,0x53cab625, 0x2711, 0x4c9f, 0x9d, 0xe7, 0x1b, 0x7f, 0x92, 0x5f, 0x6f, 0xc8); +#else +DEFINE_GUID(CLSID_DirectMusicSynthSink,0xaec17ce3, 0xa514, 0x11d1, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); +#endif + +/* Property Set GUID_DMUS_PROP_SetSynthSink + * + * Item 0: An IUnknown on which the port can QueryInterface for a user-mode synth sink. + */ +DEFINE_GUID(GUID_DMUS_PROP_SetSynthSink,0x0a3a5ba5, 0x37b6, 0x11d2, 0xb9, 0xf9, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); + +/* Property Set GUID_DMUS_PROP_SinkUsesDSound + * + * Item 0: A DWORD boolean indicating whether or not the sink requires an IDirectSound interface. The + * default is FALSE if this property item is not implemented by the sink. + */ +DEFINE_GUID(GUID_DMUS_PROP_SinkUsesDSound, 0xbe208857, 0x8952, 0x11d2, 0xba, 0x1c, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dot1x.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dot1x.h new file mode 100644 index 0000000000000000000000000000000000000000..2121ec2c32fdf8771ea7b1da1c8e34f9da1c681d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dot1x.h @@ -0,0 +1,232 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#ifndef __DOT1X_H_ +#define __DOT1X_H_ + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include + +#if __midl +#define V1_ENUM [v1_enum] +#else +#define V1_ENUM +#endif + +#pragma warning(disable:4214) // bit field types other than int + + +/* + The identity that is being used by the 1X module. This is a function of the + onex auth mode and system triggers (e.g. user logon/logoff) + */ +typedef V1_ENUM enum _ONEX_AUTH_IDENTITY +{ + OneXAuthIdentityNone, + OneXAuthIdentityMachine, + OneXAuthIdentityUser, + OneXAuthIdentityExplicitUser, + OneXAuthIdentityGuest, + OneXAuthIdentityInvalid +} ONEX_AUTH_IDENTITY, *PONEX_AUTH_IDENTITY; + +/* + The 1X authentication status. Each of the auth status corresponds to one or + more of the internal 1X states. + */ +typedef V1_ENUM enum _ONEX_AUTH_STATUS +{ + OneXAuthNotStarted, + OneXAuthInProgress, + OneXAuthNoAuthenticatorFound, + OneXAuthSuccess, + OneXAuthFailure, + OneXAuthInvalid +} ONEX_AUTH_STATUS, *PONEX_AUTH_STATUS; + +/* + 1X specific reason codes + */ +typedef V1_ENUM enum _ONEX_REASON_CODE +{ + ONEX_REASON_CODE_SUCCESS = 0, + ONEX_REASON_START = L2_REASON_CODE_ONEX_BASE, + ONEX_UNABLE_TO_IDENTIFY_USER, + ONEX_IDENTITY_NOT_FOUND, + ONEX_UI_DISABLED, + ONEX_UI_FAILURE, + ONEX_EAP_FAILURE_RECEIVED, + ONEX_AUTHENTICATOR_NO_LONGER_PRESENT, + ONEX_NO_RESPONSE_TO_IDENTITY, + ONEX_PROFILE_VERSION_NOT_SUPPORTED, + ONEX_PROFILE_INVALID_LENGTH, + ONEX_PROFILE_DISALLOWED_EAP_TYPE, + ONEX_PROFILE_INVALID_EAP_TYPE_OR_FLAG, + ONEX_PROFILE_INVALID_ONEX_FLAGS, + ONEX_PROFILE_INVALID_TIMER_VALUE, + ONEX_PROFILE_INVALID_SUPPLICANT_MODE, + ONEX_PROFILE_INVALID_AUTH_MODE, + ONEX_PROFILE_INVALID_EAP_CONNECTION_PROPERTIES, + ONEX_UI_CANCELLED, + ONEX_PROFILE_INVALID_EXPLICIT_CREDENTIALS, + ONEX_PROFILE_EXPIRED_EXPLICIT_CREDENTIALS, + ONEX_UI_NOT_PERMITTED +} ONEX_REASON_CODE, *PONEX_REASON_CODE; + +/* + Events for which 1X sends notifications to MSM + + On getting an event notification the callee should switch on the dwEvent. + + If dwEvent = OneXNotificationTypeResultUpdate, pvEventData points to an + ONEX_RESULT_UPDATE_DATA structure + + If dwEvent = OneXNotificationTypeOneXUserIdentified, pvEventData points to + a ONEX_USER_INFO structure + + If dwEvent = OneXNotificationTypeGotOneXIdentityString, pvEventData points to + the identity (LPWSTR) being used for the 1X authentication + + If dwEvent = OneXNotificationTypeFallenBackOnGuest pvEventData is NULL + + if dwEvent = OneXNotificationTypeAuthRestarted, pvEventData points + to the restart reason + */ +typedef V1_ENUM enum _ONEX_NOTIFICATION_TYPE +{ + OneXPublicNotificationBase = 0, + OneXNotificationTypeResultUpdate, + OneXNotificationTypeAuthRestarted, + OneXNotificationTypeEventInvalid, + OneXNumNotifications = OneXNotificationTypeEventInvalid +} ONEX_NOTIFICATION_TYPE, *PONEX_NOTIFICATION_TYPE; + +/* + The following list enumerates the reason for the 1X authentication process + getting restarted + */ +typedef V1_ENUM enum _ONEX_AUTH_RESTART_REASON +{ + OneXRestartReasonPeerInitiated, + OneXRestartReasonMsmInitiated, + OneXRestartReasonOneXHeldStateTimeout, + OneXRestartReasonOneXAuthTimeout, + OneXRestartReasonOneXConfigurationChanged, + OneXRestartReasonOneXUserChanged, + OneXRestartReasonQuarantineStateChanged, + OneXRestartReasonAltCredsTrial, + OneXRestartReasonInvalid +} ONEX_AUTH_RESTART_REASON, *PONEX_AUTH_RESTART_REASON; + +typedef struct _ONEX_VARIABLE_BLOB +{ + DWORD dwSize; + DWORD dwOffset; +} ONEX_VARIABLE_BLOB, *PONEX_VARIABLE_BLOB; + +/* + The set of parameters that define the authentication context for 1X + */ +typedef struct _ONEX_AUTH_PARAMS +{ + BOOL fUpdatePending; + ONEX_VARIABLE_BLOB oneXConnProfile; + ONEX_AUTH_IDENTITY authIdentity; + DWORD dwQuarantineState; + + DWORD fSessionId:1; + DWORD fhUserToken:1; + DWORD fOnexUserProfile:1; + DWORD fIdentity:1; + DWORD fUserName:1; + DWORD fDomain:1; + + DWORD dwSessionId; + + HANDLE hUserToken; + + ONEX_VARIABLE_BLOB OneXUserProfile; + ONEX_VARIABLE_BLOB Identity; + ONEX_VARIABLE_BLOB UserName; + ONEX_VARIABLE_BLOB Domain; +} ONEX_AUTH_PARAMS, *PONEX_AUTH_PARAMS; + +typedef struct _ONEX_EAP_ERROR +{ + DWORD dwWinError; + EAP_METHOD_TYPE type; + DWORD dwReasonCode; + + GUID rootCauseGuid; + GUID repairGuid; + GUID helpLinkGuid; + + DWORD fRootCauseString:1; + DWORD fRepairString:1; + + ONEX_VARIABLE_BLOB RootCauseString; + ONEX_VARIABLE_BLOB RepairString; +} ONEX_EAP_ERROR, *PONEX_EAP_ERROR; + +typedef struct _ONEX_STATUS +{ + ONEX_AUTH_STATUS authStatus; + /* + Any errors that happened during the authentication are indicated as + error and reason codes below + */ + DWORD dwReason; + DWORD dwError; +} ONEX_STATUS, *PONEX_STATUS; + +typedef V1_ENUM enum _ONEX_EAP_METHOD_BACKEND_SUPPORT +{ + OneXEapMethodBackendSupportUnknown, + OneXEapMethodBackendSupported, + OneXEapMethodBackendUnsupported +}ONEX_EAP_METHOD_BACKEND_SUPPORT; + +typedef struct _ONEX_RESULT_UPDATE_DATA +{ + ONEX_STATUS oneXStatus; + ONEX_EAP_METHOD_BACKEND_SUPPORT BackendSupport; + BOOL fBackendEngaged; + + DWORD fOneXAuthParams:1; + DWORD fEapError:1; + + ONEX_VARIABLE_BLOB authParams; + ONEX_VARIABLE_BLOB eapError; +} ONEX_RESULT_UPDATE_DATA, *PONEX_RESULT_UPDATE_DATA; + +typedef struct _ONEX_USER_INFO +{ + ONEX_AUTH_IDENTITY authIdentity; + + DWORD fUserName:1; + DWORD fDomainName:1; + + ONEX_VARIABLE_BLOB UserName; + ONEX_VARIABLE_BLOB DomainName; +} ONEX_USER_INFO, *PONEX_USER_INFO; + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpa_dsa.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpa_dsa.h new file mode 100644 index 0000000000000000000000000000000000000000..394438f51b086b5c2fdb6666f0e2f6f126381771 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpa_dsa.h @@ -0,0 +1,307 @@ + +/*****************************************************************************\ +* * +* dpa_dsa.h - - Interface for the DPA and DSA structures in commtrl * +* * +* Version 1.2 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +\*****************************************************************************/ + + + + +#ifndef _INC_DPADSA +#define _INC_DPADSA + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(push) +#pragma warning(disable:4001) /* nonstandard extension : single line comment */ +#pragma warning(disable:4201) /* nonstandard extension used : nameless struct/union */ +#pragma warning(disable:4820) /* padding added after data member */ +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef _HRESULT_DEFINED +#define _HRESULT_DEFINED +typedef _Return_type_success_(return >= 0) long HRESULT; +#endif // !_HRESULT_DEFINED + +// +// Define API decoration for direct importing of DLL references. +// +#ifndef WINCOMMCTRLAPI +#if !defined(_COMCTL32_) && defined(_WIN32) +#define WINCOMMCTRLAPI DECLSPEC_IMPORT +#else +#define WINCOMMCTRLAPI +#endif +#endif // WINCOMMCTRLAPI + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef NO_COMMCTRL_DA +#define __COMMCTRL_DA_DEFINED__ +// +//====== Dynamic Array routines ========================================== +// +// Note that the STL and other libraries have similar functionality. +// The routines here are specific to Windows and may not be as convenient +// or fully functional as those in other libraries. +// + +#define DA_LAST (0x7FFFFFFF) +#define DA_ERR (-1) + +typedef int (CALLBACK *PFNDAENUMCALLBACK)(_In_opt_ void *p, _In_opt_ void *pData); +typedef int (CALLBACK *PFNDAENUMCALLBACKCONST)(_In_opt_ const void *p, _In_opt_ void *pData); +typedef int (CALLBACK *PFNDACOMPARE)(_In_opt_ void *p1, _In_opt_ void *p2, _In_ LPARAM lParam); +typedef int (CALLBACK *PFNDACOMPARECONST)(_In_opt_ const void *p1, _In_opt_ const void *p2, _In_ LPARAM lParam); + + +// Dynamic structure array +struct _DSA; +typedef struct _DSA *HDSA; + + +WINCOMMCTRLAPI HDSA WINAPI DSA_Create(int cbItem, int cItemGrow); +WINCOMMCTRLAPI BOOL WINAPI DSA_Destroy(_Inout_opt_ HDSA hdsa); +WINCOMMCTRLAPI void WINAPI DSA_DestroyCallback(_Inout_opt_ HDSA hdsa, _In_ PFNDAENUMCALLBACK pfnCB, _In_opt_ void *pData); +#ifdef __cplusplus +extern "C++" __inline void DSA_DestroyCallback(_Inout_opt_ HDSA hdsa, _In_ PFNDAENUMCALLBACKCONST pfnCB, _In_opt_ void *pData) +{ + DSA_DestroyCallback(hdsa, (PFNDAENUMCALLBACK)pfnCB, pData); +} +#endif +WINCOMMCTRLAPI BOOL WINAPI DSA_DeleteItem(_Inout_ HDSA hdsa, _In_ int i); +WINCOMMCTRLAPI BOOL WINAPI DSA_DeleteAllItems(_Inout_ HDSA hdsa); +WINCOMMCTRLAPI void WINAPI DSA_EnumCallback(_In_ HDSA hdsa, _In_ PFNDAENUMCALLBACK pfnCB, _In_opt_ void *pData); +#ifdef __cplusplus +extern "C++" __inline void DSA_EnumCallback(_In_ HDSA hdsa, _In_ PFNDAENUMCALLBACKCONST pfnCB, _In_opt_ void *pData) +{ + DSA_EnumCallback(hdsa, (PFNDAENUMCALLBACK)pfnCB, pData); +} +#endif +WINCOMMCTRLAPI int WINAPI DSA_InsertItem(_Inout_ HDSA hdsa, _In_ int i, _In_ const void *pitem); +WINCOMMCTRLAPI PVOID WINAPI DSA_GetItemPtr(_In_ HDSA hdsa, _In_ int i); +_Success_(return) WINCOMMCTRLAPI BOOL WINAPI DSA_GetItem(_In_ HDSA hdsa, _In_ int i, _Out_writes_(_Inexpressible_(pdsa->cbItem)) void *pitem); +_Success_(return) WINCOMMCTRLAPI BOOL WINAPI DSA_SetItem(_Inout_ HDSA hdsa, _In_ int i, _In_ const void *pitem); +#define DSA_GetItemCount(hdsa) (*(int *)(hdsa)) +#define DSA_AppendItem(hdsa, pitem) DSA_InsertItem(hdsa, DA_LAST, pitem) + +#if (NTDDI_VERSION >= NTDDI_VISTA) +WINCOMMCTRLAPI HDSA WINAPI DSA_Clone(_In_ HDSA hdsa); +WINCOMMCTRLAPI ULONGLONG WINAPI DSA_GetSize(_In_opt_ HDSA hdsa); +WINCOMMCTRLAPI BOOL WINAPI DSA_Sort(_Inout_ HDSA pdsa, _In_ PFNDACOMPARE pfnCompare, _In_ LPARAM lParam); +#ifdef __cplusplus +extern "C++" __inline BOOL DSA_Sort(_Inout_ HDSA hdsa, _In_ PFNDACOMPARECONST pfnCompare, _In_ LPARAM lParam) +{ + return DSA_Sort(hdsa, (PFNDACOMPARE)(pfnCompare), lParam); +} +#endif +#endif // NTDDI_VISTA + +#define DSA_APPEND DA_LAST +#define DSA_ERR DA_ERR + +#define PFNDSAENUMCALLBACK PFNDAENUMCALLBACK +#define PFNDSAENUMCALLBACKCONST PFNDAENUMCALLBACKCONST +#define PFNDSACOMPARE PFNDACOMPARE +#define PFNDSACOMPARECONST PFNDACOMPARECONST + +// Dynamic pointer array +struct _DPA; +typedef struct _DPA *HDPA; + + +WINCOMMCTRLAPI HDPA WINAPI DPA_Create(int cItemGrow); +WINCOMMCTRLAPI HDPA WINAPI DPA_CreateEx(_In_ int cpGrow, _In_opt_ HANDLE hheap); +WINCOMMCTRLAPI HDPA WINAPI DPA_Clone(_In_ const HDPA hdpa, _Inout_opt_ HDPA hdpaNew); +WINCOMMCTRLAPI BOOL WINAPI DPA_Destroy(_Inout_opt_ HDPA hdpa); +WINCOMMCTRLAPI void WINAPI DPA_DestroyCallback(_Inout_opt_ HDPA hdpa, _In_ PFNDAENUMCALLBACK pfnCB, _In_opt_ void *pData); +#ifdef __cplusplus +extern "C++" __inline void DPA_DestroyCallback(_In_ HDPA hdpa, _In_ PFNDAENUMCALLBACKCONST pfnCB, _In_opt_ void *pData) +{ + DPA_DestroyCallback(hdpa, (PFNDAENUMCALLBACK)pfnCB, pData); +} +#endif +WINCOMMCTRLAPI PVOID WINAPI DPA_DeletePtr(_Inout_ HDPA hdpa, _In_ int i); +WINCOMMCTRLAPI BOOL WINAPI DPA_DeleteAllPtrs(_Inout_ HDPA hdpa); +WINCOMMCTRLAPI void WINAPI DPA_EnumCallback(_In_opt_ HDPA hdpa, _In_opt_ PFNDAENUMCALLBACK pfnCB, _In_opt_ void *pData); +#ifdef __cplusplus +extern "C++" __inline void DPA_EnumCallback(_In_ HDPA hdpa, _In_ PFNDAENUMCALLBACKCONST pfnCB, _In_opt_ void *pData) +{ + DPA_EnumCallback(hdpa, (PFNDAENUMCALLBACK)pfnCB, pData); +} +#endif +WINCOMMCTRLAPI BOOL WINAPI DPA_Grow(_Inout_ HDPA pdpa, _In_ int cp); +WINCOMMCTRLAPI int WINAPI DPA_InsertPtr(_Inout_ HDPA hdpa, _In_ int i, _In_opt_ void *p); +WINCOMMCTRLAPI BOOL WINAPI DPA_SetPtr(_Inout_ HDPA hdpa, _In_ int i, _In_opt_ void *p); +WINCOMMCTRLAPI PVOID WINAPI DPA_GetPtr(_In_ HDPA hdpa, _In_ INT_PTR i); +WINCOMMCTRLAPI int WINAPI DPA_GetPtrIndex(_In_ HDPA hdpa, _In_opt_ const void *p); + +#define DPA_GetPtrCount(hdpa) (*(int *)(hdpa)) +#define DPA_SetPtrCount(hdpa, cItems) (*(int *)(hdpa) = (cItems)) +#define DPA_FastDeleteLastPtr(hdpa) (--*(int *)(hdpa)) +#define DPA_GetPtrPtr(hdpa) (*((void * **)((BYTE *)(hdpa) + sizeof(void *)))) +#define DPA_FastGetPtr(hdpa, i) (DPA_GetPtrPtr(hdpa)[i]) +#define DPA_AppendPtr(hdpa, pitem) DPA_InsertPtr(hdpa, DA_LAST, pitem) + +#if (NTDDI_VERSION >= NTDDI_VISTA) +WINCOMMCTRLAPI ULONGLONG WINAPI DPA_GetSize(_In_opt_ HDPA hdpa); +#endif // NTDDI_VISTA + +WINCOMMCTRLAPI BOOL WINAPI DPA_Sort(_Inout_ HDPA hdpa, _In_ PFNDACOMPARE pfnCompare, _In_ LPARAM lParam); +#ifdef __cplusplus +extern "C++" __inline BOOL DPA_Sort(_Inout_ HDPA hdpa, _In_ PFNDACOMPARECONST pfnCompare, _In_ LPARAM lParam) +{ + return DPA_Sort(hdpa, (PFNDACOMPARE)(pfnCompare), lParam); +} +#endif + +// +// Save to and load from a stream. The stream callback gets a pointer to +// a DPASTREAMINFO structure. +// +// For DPA_SaveStream, the callback is responsible for writing the pvItem +// info to the stream. (It's not necessary to write the iPos to the +// stream.) Return S_OK if the element was saved, S_FALSE if it wasn't +// but continue anyway, or some failure. +// +// For DPA_LoadStream, the callback is responsible for allocating an +// item and setting the pvItem field to the new pointer. Return S_OK +// if the element was loaded, S_FALSE it it wasn't but continue anyway, +// or some failure. +// + +typedef struct _DPASTREAMINFO +{ + int iPos; // Index of item + void *pvItem; +} DPASTREAMINFO; + +struct IStream; +typedef HRESULT (CALLBACK *PFNDPASTREAM)(_In_ DPASTREAMINFO * pinfo, _In_ struct IStream * pstream, _In_opt_ void *pvInstData); + +WINCOMMCTRLAPI HRESULT WINAPI DPA_LoadStream(_Outptr_ HDPA * phdpa, _In_ PFNDPASTREAM pfn, _In_ struct IStream * pstream, _In_opt_ void *pvInstData); +WINCOMMCTRLAPI HRESULT WINAPI DPA_SaveStream(_In_ HDPA hdpa, _In_ PFNDPASTREAM pfn, _In_ struct IStream * pstream, _In_opt_ void *pvInstData); + +// Merge two DPAs. This takes two (optionally) presorted arrays and merges +// the source array into the dest. DPA_Merge uses the provided callbacks +// to perform comparison and merge operations. The merge callback is +// called when two elements (one in each list) match according to the +// compare function. This allows portions of an element in one list to +// be merged with the respective element in the second list. +// +// The first DPA (hdpaDest) is the output array. +// +// Merge options: +// +// DPAM_SORTED The arrays are already sorted; don't sort +// DPAM_UNION The resulting array is the union of all elements +// in both arrays (DPAMM_INSERT may be sent for +// this merge option.) +// DPAM_INTERSECT Only elements in the source array that intersect +// with the dest array are merged. (DPAMM_DELETE +// may be sent for this merge option.) +// DPAM_NORMAL Like DPAM_INTERSECT except the dest array +// also maintains its original, additional elements. +// +#define DPAM_SORTED 0x00000001 +#define DPAM_NORMAL 0x00000002 +#define DPAM_UNION 0x00000004 +#define DPAM_INTERSECT 0x00000008 + +// The merge callback should merge contents of the two items and return +// the pointer of the merged item. It's okay to simply use pvDest +// as the returned pointer. +// +typedef void* (CALLBACK *PFNDPAMERGE)(_In_ UINT uMsg, _In_ void *pvDest, _In_ void *pvSrc, _In_ LPARAM lParam); +typedef const void* (CALLBACK *PFNDPAMERGECONST)(_In_ UINT uMsg, _In_ const void *pvDest, _In_ const void *pvSrc, _In_ LPARAM lParam); + +// Messages for merge callback +#define DPAMM_MERGE 1 +#define DPAMM_DELETE 2 +#define DPAMM_INSERT 3 + +WINCOMMCTRLAPI BOOL WINAPI DPA_Merge(_Inout_ HDPA hdpaDest, _In_ HDPA hdpaSrc, _In_ DWORD dwFlags, _In_ PFNDACOMPARE pfnCompare, _In_ PFNDPAMERGE pfnMerge, _In_ LPARAM lParam); +#ifdef __cplusplus +extern "C++" __inline BOOL DPA_Merge(_Inout_ HDPA hdpaDest, _In_ HDPA hdpaSrc, _In_ DWORD dwFlags, _In_ PFNDACOMPARECONST pfnCompare, _In_ PFNDPAMERGECONST pfnMerge, _In_ LPARAM lParam) +{ + return DPA_Merge(hdpaDest, hdpaSrc, dwFlags, (PFNDACOMPARE)pfnCompare, (PFNDPAMERGE)pfnMerge, lParam); +} +#endif + +// +// Search array. If DPAS_SORTED, then array is assumed to be sorted +// according to pfnCompare, and binary search algorithm is used. +// Otherwise, linear search is used. +// +// Searching starts at iStart (0 to start search at beginning). +// +// DPAS_INSERTBEFORE/AFTER govern what happens if an exact match is not +// found. If neither are specified, this function returns -1 if no exact +// match is found. Otherwise, the index of the item before or after the +// closest (including exact) match is returned. +// +// Search option flags +// +#define DPAS_SORTED 0x0001 +#define DPAS_INSERTBEFORE 0x0002 +#define DPAS_INSERTAFTER 0x0004 + +WINCOMMCTRLAPI int WINAPI DPA_Search(_In_ HDPA hdpa, _In_opt_ void *pFind, _In_ int iStart, _In_ PFNDACOMPARE pfnCompare, _In_ LPARAM lParam, _In_ UINT options); +#ifdef __cplusplus +extern "C++" __inline int DPA_Search(_In_ HDPA hdpa, _In_opt_ const void *pFind, _In_ int iStart, _In_ PFNDACOMPARECONST pfnCompare, _In_ LPARAM lParam, _In_ UINT options) +{ + return DPA_Search(hdpa, const_cast(pFind), iStart, (PFNDACOMPARE)pfnCompare, lParam, options); +} +#endif + +#define DPA_SortedInsertPtr(hdpa, pFind, iStart, pfnCompare, lParam, options, pitem) \ + DPA_InsertPtr(hdpa, DPA_Search(hdpa, pFind, iStart, pfnCompare, lParam, (DPAS_SORTED | (options))), (pitem)) + +#define DPA_APPEND DA_LAST +#define DPA_ERR DA_ERR + +#define PFNDPAENUMCALLBACK PFNDAENUMCALLBACK +#define PFNDPAENUMCALLBACKCONST PFNDAENUMCALLBACKCONST +#define PFNDPACOMPARE PFNDACOMPARE +#define PFNDPACOMPARECONST PFNDACOMPARECONST + +#endif // NO_COMMCTRL_DA + + +WINCOMMCTRLAPI BOOL WINAPI Str_SetPtrW(_Inout_ LPWSTR * ppsz, _In_opt_ LPCWSTR psz); + + + + +#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */ +#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0) +#include "dpa_dsa.inl" +#endif /* ISOLATION_AWARE_ENABLED */ +#endif /* RC */ + +#ifdef __cplusplus +} +#endif + + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma warning(pop) +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _INC_DPADSA */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpa_dsa.inl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpa_dsa.inl new file mode 100644 index 0000000000000000000000000000000000000000..476a206551853703b9cbd92b2f120bcfdd33c8a8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpa_dsa.inl @@ -0,0 +1,1323 @@ +/* Copyright (c) 2001-2026, Microsoft Corp. All rights reserved. */ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#if defined(__cplusplus) +extern "C" { +#endif + + +#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */ +#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0) +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4191) /* cast */ +#if _MSC_VER >= 1400 +#pragma warning(disable:6101) /* Because there will be success paths where out params are not initialized. */ +#endif +#endif + + +#if !defined(ISOLATION_AWARE_USE_STATIC_LIBRARY) +#define ISOLATION_AWARE_USE_STATIC_LIBRARY 0 +#endif + +#if !defined(ISOLATION_AWARE_BUILD_STATIC_LIBRARY) +#define ISOLATION_AWARE_BUILD_STATIC_LIBRARY 0 +#endif + +#if !defined(ISOLATION_AWARE_INLINE) +#if ISOLATION_AWARE_BUILD_STATIC_LIBRARY +#define ISOLATION_AWARE_INLINE /* nothing */ +#else +#if defined(__cplusplus) +#define ISOLATION_AWARE_INLINE inline +#else +#define ISOLATION_AWARE_INLINE __inline +#endif +#endif +#endif + +#if !ISOLATION_AWARE_USE_STATIC_LIBRARY +FARPROC IsolationAwarePrivatenCv Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY(LPCSTR pszProcName); + +#endif /* ISOLATION_AWARE_USE_STATIC_LIBRARY */ +HDSA IsolationAwarePrivatenCv IsolationAwareDSA_Create(int cbItem,int cItemGrow); +BOOL IsolationAwarePrivatenCv IsolationAwareDSA_Destroy(_Inout_opt_ HDSA hdsa); +void IsolationAwarePrivatenCv IsolationAwareDSA_DestroyCallback(_Inout_opt_ HDSA hdsa,_In_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData); +#ifdef __cplusplus +extern "C++" inline void IsolationAwareDSA_DestroyCallback(_Inout_opt_ HDSA hdsa,_In_ PFNDAENUMCALLBACKCONST pfnCB,_In_opt_ void*pData) +{ + IsolationAwareDSA_DestroyCallback(hdsa,(PFNDAENUMCALLBACK)pfnCB,pData); +} +#endif +BOOL IsolationAwarePrivatenCv IsolationAwareDSA_DeleteItem(_Inout_ HDSA hdsa,_In_ int i); +BOOL IsolationAwarePrivatenCv IsolationAwareDSA_DeleteAllItems(_Inout_ HDSA hdsa); +void IsolationAwarePrivatenCv IsolationAwareDSA_EnumCallback(_In_ HDSA hdsa,_In_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData); +#ifdef __cplusplus +extern "C++" inline void IsolationAwareDSA_EnumCallback(_In_ HDSA hdsa,_In_ PFNDAENUMCALLBACKCONST pfnCB,_In_opt_ void*pData) +{ + IsolationAwareDSA_EnumCallback(hdsa,(PFNDAENUMCALLBACK)pfnCB,pData); +} +#endif +int IsolationAwarePrivatenCv IsolationAwareDSA_InsertItem(_Inout_ HDSA hdsa,_In_ int i,_In_ const void*pitem); +PVOID IsolationAwarePrivatenCv IsolationAwareDSA_GetItemPtr(_In_ HDSA hdsa,_In_ int i); +_Success_(return) BOOL IsolationAwarePrivatenCv IsolationAwareDSA_GetItem(_In_ HDSA hdsa,_In_ int i,_Out_writes_(_Inexpressible_(pdsa->cbItem)) void*pitem); +_Success_(return) BOOL IsolationAwarePrivatenCv IsolationAwareDSA_SetItem(_Inout_ HDSA hdsa,_In_ int i,_In_ const void*pitem); +HDSA IsolationAwarePrivatenCv IsolationAwareDSA_Clone(_In_ HDSA hdsa); +ULONGLONG IsolationAwarePrivatenCv IsolationAwareDSA_GetSize(_In_opt_ HDSA hdsa); +BOOL IsolationAwarePrivatenCv IsolationAwareDSA_Sort(_Inout_ HDSA pdsa,_In_ PFNDACOMPARE pfnCompare,_In_ LPARAM lParam); +#ifdef __cplusplus +extern "C++" inline BOOL IsolationAwareDSA_Sort(_Inout_ HDSA pdsa,_In_ PFNDACOMPARECONST pfnCompare,_In_ LPARAM lParam) +{ + return IsolationAwareDSA_Sort(pdsa,(PFNDACOMPARE)pfnCompare,lParam); +} +#endif +HDPA IsolationAwarePrivatenCv IsolationAwareDPA_Create(int cItemGrow); +HDPA IsolationAwarePrivatenCv IsolationAwareDPA_CreateEx(_In_ int cpGrow,_In_opt_ HANDLE hheap); +HDPA IsolationAwarePrivatenCv IsolationAwareDPA_Clone(_In_ const HDPA hdpa,_Inout_opt_ HDPA hdpaNew); +BOOL IsolationAwarePrivatenCv IsolationAwareDPA_Destroy(_Inout_opt_ HDPA hdpa); +void IsolationAwarePrivatenCv IsolationAwareDPA_DestroyCallback(_Inout_opt_ HDPA hdpa,_In_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData); +#ifdef __cplusplus +extern "C++" inline void IsolationAwareDPA_DestroyCallback(_Inout_opt_ HDPA hdpa,_In_ PFNDAENUMCALLBACKCONST pfnCB,_In_opt_ void*pData) +{ + IsolationAwareDPA_DestroyCallback(hdpa,(PFNDAENUMCALLBACK)pfnCB,pData); +} +#endif +PVOID IsolationAwarePrivatenCv IsolationAwareDPA_DeletePtr(_Inout_ HDPA hdpa,_In_ int i); +BOOL IsolationAwarePrivatenCv IsolationAwareDPA_DeleteAllPtrs(_Inout_ HDPA hdpa); +void IsolationAwarePrivatenCv IsolationAwareDPA_EnumCallback(_In_opt_ HDPA hdpa,_In_opt_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData); +#ifdef __cplusplus +extern "C++" inline void IsolationAwareDPA_EnumCallback(_In_opt_ HDPA hdpa,_In_opt_ PFNDAENUMCALLBACKCONST pfnCB,_In_opt_ void*pData) +{ + IsolationAwareDPA_EnumCallback(hdpa,(PFNDAENUMCALLBACK)pfnCB,pData); +} +#endif +BOOL IsolationAwarePrivatenCv IsolationAwareDPA_Grow(_Inout_ HDPA pdpa,_In_ int cp); +int IsolationAwarePrivatenCv IsolationAwareDPA_InsertPtr(_Inout_ HDPA hdpa,_In_ int i,_In_opt_ void*p); +BOOL IsolationAwarePrivatenCv IsolationAwareDPA_SetPtr(_Inout_ HDPA hdpa,_In_ int i,_In_opt_ void*p); +PVOID IsolationAwarePrivatenCv IsolationAwareDPA_GetPtr(_In_ HDPA hdpa,_In_ INT_PTR i); +int IsolationAwarePrivatenCv IsolationAwareDPA_GetPtrIndex(_In_ HDPA hdpa,_In_opt_ const void*p); +ULONGLONG IsolationAwarePrivatenCv IsolationAwareDPA_GetSize(_In_opt_ HDPA hdpa); +BOOL IsolationAwarePrivatenCv IsolationAwareDPA_Sort(_Inout_ HDPA hdpa,_In_ PFNDACOMPARE pfnCompare,_In_ LPARAM lParam); +#ifdef __cplusplus +extern "C++" inline BOOL IsolationAwareDPA_Sort(_Inout_ HDPA hdpa,_In_ PFNDACOMPARECONST pfnCompare,_In_ LPARAM lParam) +{ + return IsolationAwareDPA_Sort(hdpa,(PFNDACOMPARE)pfnCompare,lParam); +} +#endif +HRESULT IsolationAwarePrivatenCv IsolationAwareDPA_LoadStream(_Outptr_ HDPA*phdpa,_In_ PFNDPASTREAM pfn,_In_ struct IStream*pstream,_In_opt_ void*pvInstData); +HRESULT IsolationAwarePrivatenCv IsolationAwareDPA_SaveStream(_In_ HDPA hdpa,_In_ PFNDPASTREAM pfn,_In_ struct IStream*pstream,_In_opt_ void*pvInstData); +BOOL IsolationAwarePrivatenCv IsolationAwareDPA_Merge(_Inout_ HDPA hdpaDest,_In_ HDPA hdpaSrc,_In_ DWORD dwFlags,_In_ PFNDACOMPARE pfnCompare,_In_ PFNDPAMERGE pfnMerge,_In_ LPARAM lParam); +#ifdef __cplusplus +extern "C++" inline BOOL IsolationAwareDPA_Merge(_Inout_ HDPA hdpaDest,_In_ HDPA hdpaSrc,_In_ DWORD dwFlags,_In_ PFNDACOMPARECONST pfnCompare,_In_ PFNDPAMERGE pfnMerge,_In_ LPARAM lParam) +{ + return IsolationAwareDPA_Merge(hdpaDest,hdpaSrc,dwFlags,(PFNDACOMPARE)pfnCompare,pfnMerge,lParam); +} +#endif +int IsolationAwarePrivatenCv IsolationAwareDPA_Search(_In_ HDPA hdpa,_In_opt_ void*pFind,_In_ int iStart,_In_ PFNDACOMPARE pfnCompare,_In_ LPARAM lParam,_In_ UINT options); +#ifdef __cplusplus +extern "C++" inline int IsolationAwareDPA_Search(_In_ HDPA hdpa,_In_opt_ void*pFind,_In_ int iStart,_In_ PFNDACOMPARECONST pfnCompare,_In_ LPARAM lParam,_In_ UINT options) +{ + return IsolationAwareDPA_Search(hdpa,pFind,iStart,(PFNDACOMPARE)pfnCompare,lParam,options); +} +#endif +BOOL IsolationAwarePrivatenCv IsolationAwareStr_SetPtrW(_Inout_ LPWSTR*ppsz,_In_opt_ LPCWSTR psz); + +_Post_satisfies_(FAILED(return)) +ISOLATION_AWARE_INLINE HRESULT Dpa_dsaIsolationAwarePrivateJVaQPGbueRfhYg(void) +{ + DWORD dwLastError = GetLastError(); + if (dwLastError == NO_ERROR) + dwLastError = ERROR_INTERNAL_ERROR; + return HRESULT_FROM_WIN32(dwLastError); +} + +#if !ISOLATION_AWARE_USE_STATIC_LIBRARY +ISOLATION_AWARE_INLINE HDSA IsolationAwarePrivatenCv IsolationAwareDSA_Create(int cbItem,int cItemGrow) +{ + HDSA result = NULL; + typedef HDSA (WINAPI* PFN)(int cbItem,int cItemGrow); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_Create"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(cbItem,cItemGrow); +Exit: + return result; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDSA_Destroy(_Inout_opt_ HDSA hdsa) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_opt_ HDSA hdsa); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_Destroy"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hdsa); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareDSA_DestroyCallback(_Inout_opt_ HDSA hdsa,_In_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData) +{ + typedef void (WINAPI* PFN)(_Inout_opt_ HDSA hdsa,_In_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_DestroyCallback"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(hdsa,pfnCB,pData); +Exit: + return; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDSA_DeleteItem(_Inout_ HDSA hdsa,_In_ int i) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ HDSA hdsa,_In_ int i); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_DeleteItem"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hdsa,i); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDSA_DeleteAllItems(_Inout_ HDSA hdsa) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ HDSA hdsa); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_DeleteAllItems"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hdsa); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareDSA_EnumCallback(_In_ HDSA hdsa,_In_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData) +{ + typedef void (WINAPI* PFN)(_In_ HDSA hdsa,_In_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_EnumCallback"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(hdsa,pfnCB,pData); +Exit: + return; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareDSA_InsertItem(_Inout_ HDSA hdsa,_In_ int i,_In_ const void*pitem) +{ + int nResult = -1; + typedef int (WINAPI* PFN)(_Inout_ HDSA hdsa,_In_ int i,_In_ const void*pitem); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_InsertItem"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(hdsa,i,pitem); +Exit: + return nResult; +} + +ISOLATION_AWARE_INLINE PVOID IsolationAwarePrivatenCv IsolationAwareDSA_GetItemPtr(_In_ HDSA hdsa,_In_ int i) +{ + PVOID vResult = NULL; + typedef PVOID (WINAPI* PFN)(_In_ HDSA hdsa,_In_ int i); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_GetItemPtr"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + vResult = __IsolationAware_pfn(hdsa,i); +Exit: + return vResult; +} + +_Success_(return) ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDSA_GetItem(_In_ HDSA hdsa,_In_ int i,_Out_writes_(_Inexpressible_(pdsa->cbItem)) void*pitem) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_In_ HDSA hdsa,_In_ int i,_Out_writes_(_Inexpressible_(pdsa->cbItem)) void*pitem); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_GetItem"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hdsa,i,pitem); +Exit: + return fResult; +} + +_Success_(return) ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDSA_SetItem(_Inout_ HDSA hdsa,_In_ int i,_In_ const void*pitem) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ HDSA hdsa,_In_ int i,_In_ const void*pitem); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_SetItem"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hdsa,i,pitem); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE HDSA IsolationAwarePrivatenCv IsolationAwareDSA_Clone(_In_ HDSA hdsa) +{ + HDSA result = NULL; + typedef HDSA (WINAPI* PFN)(_In_ HDSA hdsa); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return result; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_Clone"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(hdsa); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (result == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return result; +} + +ISOLATION_AWARE_INLINE ULONGLONG IsolationAwarePrivatenCv IsolationAwareDSA_GetSize(_In_opt_ HDSA hdsa) +{ + ULONGLONG result = 0 ; + typedef ULONGLONG (WINAPI* PFN)(_In_opt_ HDSA hdsa); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return result; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_GetSize"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(hdsa); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (result == 0 ); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return result; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDSA_Sort(_Inout_ HDSA pdsa,_In_ PFNDACOMPARE pfnCompare,_In_ LPARAM lParam) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ HDSA pdsa,_In_ PFNDACOMPARE pfnCompare,_In_ LPARAM lParam); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return fResult; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DSA_Sort"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(pdsa,pfnCompare,lParam); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (fResult == FALSE); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return fResult; +} + +ISOLATION_AWARE_INLINE HDPA IsolationAwarePrivatenCv IsolationAwareDPA_Create(int cItemGrow) +{ + HDPA result = NULL; + typedef HDPA (WINAPI* PFN)(int cItemGrow); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_Create"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(cItemGrow); +Exit: + return result; +} + +ISOLATION_AWARE_INLINE HDPA IsolationAwarePrivatenCv IsolationAwareDPA_CreateEx(_In_ int cpGrow,_In_opt_ HANDLE hheap) +{ + HDPA result = NULL; + typedef HDPA (WINAPI* PFN)(_In_ int cpGrow,_In_opt_ HANDLE hheap); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_CreateEx"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(cpGrow,hheap); +Exit: + return result; +} + +ISOLATION_AWARE_INLINE HDPA IsolationAwarePrivatenCv IsolationAwareDPA_Clone(_In_ const HDPA hdpa,_Inout_opt_ HDPA hdpaNew) +{ + HDPA result = NULL; + typedef HDPA (WINAPI* PFN)(_In_ const HDPA hdpa,_Inout_opt_ HDPA hdpaNew); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_Clone"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(hdpa,hdpaNew); +Exit: + return result; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDPA_Destroy(_Inout_opt_ HDPA hdpa) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_opt_ HDPA hdpa); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_Destroy"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hdpa); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareDPA_DestroyCallback(_Inout_opt_ HDPA hdpa,_In_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData) +{ + typedef void (WINAPI* PFN)(_Inout_opt_ HDPA hdpa,_In_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_DestroyCallback"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(hdpa,pfnCB,pData); +Exit: + return; +} + +ISOLATION_AWARE_INLINE PVOID IsolationAwarePrivatenCv IsolationAwareDPA_DeletePtr(_Inout_ HDPA hdpa,_In_ int i) +{ + PVOID vResult = NULL; + typedef PVOID (WINAPI* PFN)(_Inout_ HDPA hdpa,_In_ int i); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_DeletePtr"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + vResult = __IsolationAware_pfn(hdpa,i); +Exit: + return vResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDPA_DeleteAllPtrs(_Inout_ HDPA hdpa) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ HDPA hdpa); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_DeleteAllPtrs"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hdpa); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE void IsolationAwarePrivatenCv IsolationAwareDPA_EnumCallback(_In_opt_ HDPA hdpa,_In_opt_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData) +{ + typedef void (WINAPI* PFN)(_In_opt_ HDPA hdpa,_In_opt_ PFNDAENUMCALLBACK pfnCB,_In_opt_ void*pData); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_EnumCallback"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + __IsolationAware_pfn(hdpa,pfnCB,pData); +Exit: + return; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDPA_Grow(_Inout_ HDPA pdpa,_In_ int cp) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ HDPA pdpa,_In_ int cp); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_Grow"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(pdpa,cp); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareDPA_InsertPtr(_Inout_ HDPA hdpa,_In_ int i,_In_opt_ void*p) +{ + int nResult = -1; + typedef int (WINAPI* PFN)(_Inout_ HDPA hdpa,_In_ int i,_In_opt_ void*p); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_InsertPtr"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(hdpa,i,p); +Exit: + return nResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDPA_SetPtr(_Inout_ HDPA hdpa,_In_ int i,_In_opt_ void*p) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ HDPA hdpa,_In_ int i,_In_opt_ void*p); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_SetPtr"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hdpa,i,p); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE PVOID IsolationAwarePrivatenCv IsolationAwareDPA_GetPtr(_In_ HDPA hdpa,_In_ INT_PTR i) +{ + PVOID vResult = NULL; + typedef PVOID (WINAPI* PFN)(_In_ HDPA hdpa,_In_ INT_PTR i); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_GetPtr"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + vResult = __IsolationAware_pfn(hdpa,i); +Exit: + return vResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareDPA_GetPtrIndex(_In_ HDPA hdpa,_In_opt_ const void*p) +{ + int nResult = -1; + typedef int (WINAPI* PFN)(_In_ HDPA hdpa,_In_opt_ const void*p); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_GetPtrIndex"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(hdpa,p); +Exit: + return nResult; +} + +ISOLATION_AWARE_INLINE ULONGLONG IsolationAwarePrivatenCv IsolationAwareDPA_GetSize(_In_opt_ HDPA hdpa) +{ + ULONGLONG result = 0 ; + typedef ULONGLONG (WINAPI* PFN)(_In_opt_ HDPA hdpa); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + return result; + __try + { + if (__IsolationAware_pfn == NULL) + { + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_GetSize"); + if (__IsolationAware_pfn == NULL) + __leave; + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(hdpa); + } + __finally + { + if (!IsolationAwarePrivateT_SAbnPgpgk + || !IsolationAwarePrivateT_SqbjaYRiRY + ) + { + const BOOL fPreserveLastError = (result == 0 ); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + } + return result; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDPA_Sort(_Inout_ HDPA hdpa,_In_ PFNDACOMPARE pfnCompare,_In_ LPARAM lParam) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ HDPA hdpa,_In_ PFNDACOMPARE pfnCompare,_In_ LPARAM lParam); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_Sort"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hdpa,pfnCompare,lParam); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwareDPA_LoadStream(_Outptr_ HDPA*phdpa,_In_ PFNDPASTREAM pfn,_In_ struct IStream*pstream,_In_opt_ void*pvInstData) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(_Outptr_ HDPA*phdpa,_In_ PFNDPASTREAM pfn,_In_ struct IStream*pstream,_In_opt_ void*pvInstData); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_LoadStream"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(phdpa,pfn,pstream,pvInstData); +Exit: + return result; +} + +ISOLATION_AWARE_INLINE HRESULT IsolationAwarePrivatenCv IsolationAwareDPA_SaveStream(_In_ HDPA hdpa,_In_ PFNDPASTREAM pfn,_In_ struct IStream*pstream,_In_opt_ void*pvInstData) +{ + HRESULT result = S_OK; + typedef HRESULT (WINAPI* PFN)(_In_ HDPA hdpa,_In_ PFNDPASTREAM pfn,_In_ struct IStream*pstream,_In_opt_ void*pvInstData); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_SaveStream"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + result = __IsolationAware_pfn(hdpa,pfn,pstream,pvInstData); +Exit: + return result; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareDPA_Merge(_Inout_ HDPA hdpaDest,_In_ HDPA hdpaSrc,_In_ DWORD dwFlags,_In_ PFNDACOMPARE pfnCompare,_In_ PFNDPAMERGE pfnMerge,_In_ LPARAM lParam) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ HDPA hdpaDest,_In_ HDPA hdpaSrc,_In_ DWORD dwFlags,_In_ PFNDACOMPARE pfnCompare,_In_ PFNDPAMERGE pfnMerge,_In_ LPARAM lParam); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_Merge"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(hdpaDest,hdpaSrc,dwFlags,pfnCompare,pfnMerge,lParam); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE int IsolationAwarePrivatenCv IsolationAwareDPA_Search(_In_ HDPA hdpa,_In_opt_ void*pFind,_In_ int iStart,_In_ PFNDACOMPARE pfnCompare,_In_ LPARAM lParam,_In_ UINT options) +{ + int nResult = -1; + typedef int (WINAPI* PFN)(_In_ HDPA hdpa,_In_opt_ void*pFind,_In_ int iStart,_In_ PFNDACOMPARE pfnCompare,_In_ LPARAM lParam,_In_ UINT options); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("DPA_Search"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + nResult = __IsolationAware_pfn(hdpa,pFind,iStart,pfnCompare,lParam,options); +Exit: + return nResult; +} + +ISOLATION_AWARE_INLINE BOOL IsolationAwarePrivatenCv IsolationAwareStr_SetPtrW(_Inout_ LPWSTR*ppsz,_In_opt_ LPCWSTR psz) +{ + BOOL fResult = FALSE; + typedef BOOL (WINAPI* PFN)(_Inout_ LPWSTR*ppsz,_In_opt_ LPCWSTR psz); + static PFN s_pfn; + PFN __IsolationAware_pfn = s_pfn; + if (__IsolationAware_pfn == NULL) + { + ULONG_PTR ulpCookie = 0; + const BOOL fActivateActCtxSuccess = + IsolationAwarePrivateT_SAbnPgpgk || + IsolationAwarePrivateT_SqbjaYRiRY || + IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + goto Exit; + __IsolationAware_pfn = (PFN) Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY("Str_SetPtrW"); + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + const BOOL fPreserveLastError = (__IsolationAware_pfn == NULL); + const DWORD dwLastError = fPreserveLastError ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (fPreserveLastError) + SetLastError(dwLastError); + } + if (__IsolationAware_pfn == NULL) + goto Exit; + s_pfn = __IsolationAware_pfn; + } + fResult = __IsolationAware_pfn(ppsz,psz); +Exit: + return fResult; +} + +ISOLATION_AWARE_INLINE FARPROC IsolationAwarePrivatenCv Dpa_dsaIsolationAwarePrivatetRgCebPnQQeRff_pbZPgYQP_QYY(LPCSTR pszProcName) +/* This function is shared by the other stubs in this header. */ +{ + FARPROC proc = NULL; + static HMODULE s_module; + BOOL fActivateActCtxSuccess = FALSE; + ULONG_PTR ulpCookie = 0; +#ifndef _M_CEE_PURE + const static IsolationAwarePrivatepBAFGnAG_zBqHyr_vAsB + c = { IsolationAwarePrivatezlybNQyVOeNelJ, L"Comctl32.dll" +#ifdef _M_IX86 + , IsolationAwarePrivatezlybNQyVOeNeln, "Comctl32.dll" +#endif + }; +#else + static IsolationAwarePrivatepBAFGnAG_zBqHyr_vAsB c; + c.WinbaseIsolationAwarePrivateybNQJ = IsolationAwarePrivatezlybNQyVOeNelJ; + c.WinbaseIsolationAwarePrivateANZRJ = L"Comctl32.dll"; +#ifdef _M_IX86 + c.WinbaseIsolationAwarePrivateybNQn = IsolationAwarePrivatezlybNQyVOeNeln; + c.WinbaseIsolationAwarePrivateANZRn = "Comctl32.dll"; +#endif +#endif + static IsolationAwarePrivatezHGnoyr_zBqHyr_vAsB m; + + __try + { + if (!IsolationAwarePrivateT_SqbjaYRiRY) + { + fActivateActCtxSuccess = IsolationAwarePrivatenPgViNgRzlnPgpgk(&ulpCookie); + if (!fActivateActCtxSuccess) + __leave; + } + proc = IsolationAwarePrivatezltRgCebPnQQeRff(&c, &m, pszProcName); + } + __finally + { + if ( + !IsolationAwarePrivateT_SqbjaYRiRY && + fActivateActCtxSuccess) + { + const DWORD dwLastError = (proc == NULL) ? GetLastError() : NO_ERROR; + (void)IsolationAwareDeactivateActCtx(0, ulpCookie); + if (proc == NULL) + SetLastError(dwLastError); + } + } + return proc; +} + +#endif /* ISOLATION_AWARE_USE_STATIC_LIBRARY */ + +#define DPA_Clone IsolationAwareDPA_Clone +#define DPA_Create IsolationAwareDPA_Create +#define DPA_CreateEx IsolationAwareDPA_CreateEx +#define DPA_DeleteAllPtrs IsolationAwareDPA_DeleteAllPtrs +#define DPA_DeletePtr IsolationAwareDPA_DeletePtr +#define DPA_Destroy IsolationAwareDPA_Destroy +#define DPA_DestroyCallback IsolationAwareDPA_DestroyCallback +#define DPA_EnumCallback IsolationAwareDPA_EnumCallback +#define DPA_GetPtr IsolationAwareDPA_GetPtr +#define DPA_GetPtrIndex IsolationAwareDPA_GetPtrIndex +#define DPA_GetSize IsolationAwareDPA_GetSize +#define DPA_Grow IsolationAwareDPA_Grow +#define DPA_InsertPtr IsolationAwareDPA_InsertPtr +#define DPA_LoadStream IsolationAwareDPA_LoadStream +#define DPA_Merge IsolationAwareDPA_Merge +#define DPA_SaveStream IsolationAwareDPA_SaveStream +#define DPA_Search IsolationAwareDPA_Search +#define DPA_SetPtr IsolationAwareDPA_SetPtr +#define DPA_Sort IsolationAwareDPA_Sort +#define DSA_Clone IsolationAwareDSA_Clone +#define DSA_Create IsolationAwareDSA_Create +#define DSA_DeleteAllItems IsolationAwareDSA_DeleteAllItems +#define DSA_DeleteItem IsolationAwareDSA_DeleteItem +#define DSA_Destroy IsolationAwareDSA_Destroy +#define DSA_DestroyCallback IsolationAwareDSA_DestroyCallback +#define DSA_EnumCallback IsolationAwareDSA_EnumCallback +#define DSA_GetItem IsolationAwareDSA_GetItem +#define DSA_GetItemPtr IsolationAwareDSA_GetItemPtr +#define DSA_GetSize IsolationAwareDSA_GetSize +#define DSA_InsertItem IsolationAwareDSA_InsertItem +#define DSA_SetItem IsolationAwareDSA_SetItem +#define DSA_Sort IsolationAwareDSA_Sort +#define Str_SetPtrW IsolationAwareStr_SetPtrW +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* ISOLATION_AWARE_ENABLED */ +#endif /* RC */ + + +#if defined(__cplusplus) +} /* __cplusplus */ +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpapi.h new file mode 100644 index 0000000000000000000000000000000000000000..29320701fe3084c9bea2cef549435219540def39 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpapi.h @@ -0,0 +1,334 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 2009. +// +// File: dpapi.h +// +// Contents: Data Protection API +// +//---------------------------------------------------------------------------- + +#ifndef __DPAPI_H__ +#define __DPAPI_H__ + +#if (_MSC_VER > 1020) +#pragma once +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +#if !defined(DPAPI_IMP) +#define DPAPI_IMP +#endif + +#else + +#if !defined(_CRYPT32_) +#define DPAPI_IMP DECLSPEC_IMPORT +#else +#define DPAPI_IMP +#endif + +#endif //(NTDDI_VERSION >= NTDDI_WIN7) + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region App Family or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#ifndef CRYPTO_BLOBS_DEFINED +#define CRYPTO_BLOBS_DEFINED +typedef struct _CRYPTOAPI_BLOB { + DWORD cbData; + _Field_size_bytes_(cbData) BYTE *pbData; +} CRYPT_INTEGER_BLOB, *PCRYPT_INTEGER_BLOB, +CRYPT_UINT_BLOB, *PCRYPT_UINT_BLOB, +CRYPT_OBJID_BLOB, *PCRYPT_OBJID_BLOB, +CERT_NAME_BLOB, *PCERT_NAME_BLOB, +CERT_RDN_VALUE_BLOB, *PCERT_RDN_VALUE_BLOB, +CERT_BLOB, *PCERT_BLOB, +CRL_BLOB, *PCRL_BLOB, +DATA_BLOB, *PDATA_BLOB, +CRYPT_DATA_BLOB, *PCRYPT_DATA_BLOB, +CRYPT_HASH_BLOB, *PCRYPT_HASH_BLOB, +CRYPT_DIGEST_BLOB, *PCRYPT_DIGEST_BLOB, +CRYPT_DER_BLOB, *PCRYPT_DER_BLOB, +CRYPT_ATTR_BLOB, *PCRYPT_ATTR_BLOB; +#endif + +// +// Registry value for controlling Data Protection API (DPAPI) UI settings. +// + +#define szFORCE_KEY_PROTECTION "ForceKeyProtection" + +#define dwFORCE_KEY_PROTECTION_DISABLED 0x0 +#define dwFORCE_KEY_PROTECTION_USER_SELECT 0x1 +#define dwFORCE_KEY_PROTECTION_HIGH 0x2 + +// +// Data protection APIs enable applications to easily secure data. +// +// The base provider provides protection based on the users' logon +// credentials. The data secured with these APIs follow the same +// roaming characteristics as HKCU -- if HKCU roams, the data +// protected by the base provider may roam as well. This makes +// the API ideal for the munging of data stored in the registry. +// + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region App Family or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// Prompt struct -- what to tell users about the access +// +typedef struct _CRYPTPROTECT_PROMPTSTRUCT +{ + DWORD cbSize; + DWORD dwPromptFlags; + HWND hwndApp; + LPCWSTR szPrompt; +} CRYPTPROTECT_PROMPTSTRUCT, *PCRYPTPROTECT_PROMPTSTRUCT; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region App Family or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// base provider action +// +#define CRYPTPROTECT_DEFAULT_PROVIDER { 0xdf9d8cd0, 0x1501, 0x11d1, {0x8c, 0x7a, 0x00, 0xc0, 0x4f, 0xc2, 0x97, 0xeb} } + +// +// CryptProtect PromptStruct dwPromtFlags +// +// +// prompt on unprotect +#define CRYPTPROTECT_PROMPT_ON_UNPROTECT 0x1 // 1<<0 +// +// prompt on protect +#define CRYPTPROTECT_PROMPT_ON_PROTECT 0x2 // 1<<1 +#define CRYPTPROTECT_PROMPT_RESERVED 0x04 // reserved, do not use. + +// +// default to strong variant UI protection (user supplied password currently). +#define CRYPTPROTECT_PROMPT_STRONG 0x08 // 1<<3 + +// +// require strong variant UI protection (user supplied password currently). +#define CRYPTPROTECT_PROMPT_REQUIRE_STRONG 0x10 // 1<<4 + +// +// CryptProtectData and CryptUnprotectData dwFlags +// +// for remote-access situations where ui is not an option +// if UI was specified on protect or unprotect operation, the call +// will fail and GetLastError() will indicate ERROR_PASSWORD_RESTRICTION +#define CRYPTPROTECT_UI_FORBIDDEN 0x1 + +// +// per machine protected data -- any user on machine where CryptProtectData +// took place may CryptUnprotectData +#define CRYPTPROTECT_LOCAL_MACHINE 0x4 + +// +// force credential synchronize during CryptProtectData() +// Synchronize is only operation that occurs during this operation +#define CRYPTPROTECT_CRED_SYNC 0x8 + +// +// Generate an Audit on protect and unprotect operations +// +#define CRYPTPROTECT_AUDIT 0x10 + +// +// Protect data with a non-recoverable key +// +#define CRYPTPROTECT_NO_RECOVERY 0x20 + + +// +// Verify the protection of a protected blob +// +#define CRYPTPROTECT_VERIFY_PROTECTION 0x40 + +// +// Regenerate the local machine protection +// +#define CRYPTPROTECT_CRED_REGENERATE 0x80 + +// flags reserved for system use +#define CRYPTPROTECT_FIRST_RESERVED_FLAGVAL 0x0FFFFFFF +#define CRYPTPROTECT_LAST_RESERVED_FLAGVAL 0xFFFFFFFF + +// +// flags specific to base provider +// +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region App Family or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +DPAPI_IMP +BOOL +WINAPI +CryptProtectData( + _In_ DATA_BLOB* pDataIn, + _In_opt_ LPCWSTR szDataDescr, + _In_opt_ DATA_BLOB* pOptionalEntropy, + _Reserved_ PVOID pvReserved, + _In_opt_ CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, + _In_ DWORD dwFlags, + _Out_ DATA_BLOB* pDataOut // out encr blob + ); + +DPAPI_IMP +BOOL +WINAPI +CryptUnprotectData( + _In_ DATA_BLOB* pDataIn, // in encr blob + _Outptr_opt_result_maybenull_ LPWSTR* ppszDataDescr, // out + _In_opt_ DATA_BLOB* pOptionalEntropy, + _Reserved_ PVOID pvReserved, + _In_opt_ CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, + _In_ DWORD dwFlags, + _Out_ DATA_BLOB* pDataOut + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +BOOL +WINAPI +CryptProtectDataNoUI( + _In_ DATA_BLOB* pDataIn, + _In_opt_ LPCWSTR szDataDescr, + _In_opt_ DATA_BLOB* pOptionalEntropy, + _Reserved_ PVOID pvReserved, + _In_opt_ CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, + _In_ DWORD dwFlags, + _In_reads_bytes_opt_(cbOptionalPassword) + const BYTE *pbOptionalPassword, + DWORD cbOptionalPassword, + _Out_ DATA_BLOB* pDataOut // out encr blob + ); + +BOOL +WINAPI +CryptUnprotectDataNoUI( + _In_ DATA_BLOB* pDataIn, // in encr blob + _Outptr_opt_result_maybenull_ LPWSTR* ppszDataDescr, // out + _In_opt_ DATA_BLOB* pOptionalEntropy, + _Reserved_ PVOID pvReserved, + _In_opt_ CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, + _In_ DWORD dwFlags, + _In_reads_bytes_opt_(cbOptionalPassword) + const BYTE *pbOptionalPassword, + DWORD cbOptionalPassword, + _Out_ DATA_BLOB* pDataOut + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +DPAPI_IMP +BOOL +WINAPI +CryptUpdateProtectedState( + _In_opt_ PSID pOldSid, + _In_opt_ LPCWSTR pwszOldPassword, + _In_ DWORD dwFlags, + _Out_opt_ DWORD *pdwSuccessCount, + _Out_opt_ DWORD *pdwFailureCount); + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region App Family or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// The buffer length passed into CryptProtectMemory and CryptUnprotectMemory +// must be a multiple of this length (or zero). +// + +#define CRYPTPROTECTMEMORY_BLOCK_SIZE 16 + + +// +// CryptProtectMemory/CryptUnprotectMemory dwFlags +// + +// +// Encrypt/Decrypt within current process context. +// + +#define CRYPTPROTECTMEMORY_SAME_PROCESS 0x00 + +// +// Encrypt/Decrypt across process boundaries. +// eg: encrypted buffer passed across LPC to another process which calls CryptUnprotectMemory. +// + +#define CRYPTPROTECTMEMORY_CROSS_PROCESS 0x01 + +// +// Encrypt/Decrypt across callers with same LogonId. +// eg: encrypted buffer passed across LPC to another process which calls CryptUnprotectMemory whilst impersonating. +// + +#define CRYPTPROTECTMEMORY_SAME_LOGON 0x02 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region App Family or OneCore or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +DPAPI_IMP +BOOL +WINAPI +CryptProtectMemory( + _Inout_ LPVOID pDataIn, // in out data to encrypt + _In_ DWORD cbDataIn, // multiple of CRYPTPROTECTMEMORY_BLOCK_SIZE + _In_ DWORD dwFlags + ); + +DPAPI_IMP +BOOL +WINAPI +CryptUnprotectMemory( + _Inout_ LPVOID pDataIn, // in out data to decrypt + _In_ DWORD cbDataIn, // multiple of CRYPTPROTECTMEMORY_BLOCK_SIZE + _In_ DWORD dwFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // __DPAPI_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpx.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpx.h new file mode 100644 index 0000000000000000000000000000000000000000..0e210319adb489e23285a68e26f10617e21cbaec --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpx.h @@ -0,0 +1,75 @@ +// Copyright Microsoft Corporation. All rights reserved. + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include + +// +// DpxNewJob and DpxRestoreJob require a TargetPath which is the local file +// system directory under which extracted files should be created. If the +// directory does not exist, DpxNewJob or DpxRestoreJob will fail. Files +// created under TargetPath directory may include relative subdirectory names +// or even stream names. Files and subdirectories will be created with +// inherited ACL from TargetPath and owner from the thread calling +// IDpxJob::ProvideRequestedData. During the course of extraction, additional +// temporary files might be created in the TargetPath directory but will be +// deleted when the job completes. If the job is cancelled or destroyed +// before completing, these temporary files may not be automatically deleted. +// To move partially completed extraction job to different TargetPath, caller +// may Suspend and SaveJobState, then tree-copy entire existing TargetPath +// contents to new location, create a new IDpxJob instance, then DpxRestoreJob +// using the new TargetPath location. +// +// DpxNewJobEx and DpxRestoreJobEx are similar to DpxNewJob and DpxRestoreJob, +// with the only difference being that the user provides a GUID which is used +// to create the temporary content below the TargetPath as described above. +// This enables more than one Dpx job to be simultaneouly created and managed +// with identical TargetPath without interfering with one another. +// + +EXTERN_C HRESULT WINAPI DpxNewJob( _In_ LPCWSTR TargetPath, _Outptr_ IDpxJob ** ppJob ); + +EXTERN_C HRESULT WINAPI DpxNewJobEx( _In_ LPCWSTR TargetPath, _In_opt_ GUID* ClientGuid, _Outptr_ IDpxJob ** ppJob ); + +EXTERN_C HRESULT WINAPI DpxRestoreJob( _In_ LPCWSTR TargetPath, _Outptr_ IDpxJob ** ppJob ); + +EXTERN_C HRESULT WINAPI DpxRestoreJobEx( _In_ LPCWSTR TargetPath, _In_opt_ GUID* ClientGuid, _Outptr_ IDpxJob ** ppJob ); + +EXTERN_C VOID WINAPI DpxFreeMemory( _In_ void* Allocation ); + +EXTERN_C HRESULT WINAPI DpxDeleteJob( _In_ LPCWSTR TargetPath ); + +EXTERN_C HRESULT WINAPI DpxDeleteJobEx( _In_ LPCWSTR TargetPath, _In_opt_ GUID* ClientGuid ); + +EXTERN_C HRESULT WINAPI DpxCheckJobExists( _In_ LPCWSTR TargetPath, _Out_ BOOL* pbExists ); + +EXTERN_C HRESULT WINAPI DpxCheckJobExistsEx( _In_ LPCWSTR TargetPath, _In_opt_ GUID* ClientGuid, _Out_ BOOL* pbExists ); + +#ifdef __cplusplus +enum class DPX_JOB_DISPOSITION +{ + Invalid = 0, + New = 1, + Restored = 2, +}; +#else +typedef enum +{ + DPX_JOB_DISPOSITION_INVALID = 0, + DPX_JOB_DISPOSITION_NEW = 1, + DPX_JOB_DISPOSITION_RESTORED = 2, +} DPX_JOB_DISPOSITION; +#endif + +EXTERN_C HRESULT WINAPI DpxRestoreOrNewJob( _In_ LPCWSTR TargetPath, _Outptr_ IDpxJob ** ppJob, _Out_ DPX_JOB_DISPOSITION* pDisposition ); + +EXTERN_C HRESULT WINAPI DpxRestoreOrNewJobEx( _In_ LPCWSTR TargetPath, _In_opt_ GUID* ClientGuid, _Outptr_ IDpxJob ** ppJob , _Out_ DPX_JOB_DISPOSITION* pDisposition ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpx1.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpx1.h new file mode 100644 index 0000000000000000000000000000000000000000..55f07c1d71f27ec1e7ef52b4f444b8ab8432c613 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpx1.h @@ -0,0 +1,3042 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dpx1_h__ +#define __dpx1_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDpxJob_FWD_DEFINED__ +#define __IDpxJob_FWD_DEFINED__ +typedef interface IDpxJob IDpxJob; + +#endif /* __IDpxJob_FWD_DEFINED__ */ + + +#ifndef __IFileHashProviderCallback_FWD_DEFINED__ +#define __IFileHashProviderCallback_FWD_DEFINED__ +typedef interface IFileHashProviderCallback IFileHashProviderCallback; + +#endif /* __IFileHashProviderCallback_FWD_DEFINED__ */ + + +#ifndef __IDpxJob2_FWD_DEFINED__ +#define __IDpxJob2_FWD_DEFINED__ +typedef interface IDpxJob2 IDpxJob2; + +#endif /* __IDpxJob2_FWD_DEFINED__ */ + + +#ifndef __IDpxContainer_FWD_DEFINED__ +#define __IDpxContainer_FWD_DEFINED__ +typedef interface IDpxContainer IDpxContainer; + +#endif /* __IDpxContainer_FWD_DEFINED__ */ + + +#ifndef __IDpxFile_FWD_DEFINED__ +#define __IDpxFile_FWD_DEFINED__ +typedef interface IDpxFile IDpxFile; + +#endif /* __IDpxFile_FWD_DEFINED__ */ + + +#ifndef __IDpxFile2_FWD_DEFINED__ +#define __IDpxFile2_FWD_DEFINED__ +typedef interface IDpxFile2 IDpxFile2; + +#endif /* __IDpxFile2_FWD_DEFINED__ */ + + +#ifndef __IDpxContainerDirectoryEntry_FWD_DEFINED__ +#define __IDpxContainerDirectoryEntry_FWD_DEFINED__ +typedef interface IDpxContainerDirectoryEntry IDpxContainerDirectoryEntry; + +#endif /* __IDpxContainerDirectoryEntry_FWD_DEFINED__ */ + + +#ifndef __IDpxDownloadProvider_FWD_DEFINED__ +#define __IDpxDownloadProvider_FWD_DEFINED__ +typedef interface IDpxDownloadProvider IDpxDownloadProvider; + +#endif /* __IDpxDownloadProvider_FWD_DEFINED__ */ + + +#ifndef __IDpxDownloadCallback_FWD_DEFINED__ +#define __IDpxDownloadCallback_FWD_DEFINED__ +typedef interface IDpxDownloadCallback IDpxDownloadCallback; + +#endif /* __IDpxDownloadCallback_FWD_DEFINED__ */ + + +#ifndef __IEnumDpxContainers_FWD_DEFINED__ +#define __IEnumDpxContainers_FWD_DEFINED__ +typedef interface IEnumDpxContainers IEnumDpxContainers; + +#endif /* __IEnumDpxContainers_FWD_DEFINED__ */ + + +#ifndef __IEnumDpxFiles_FWD_DEFINED__ +#define __IEnumDpxFiles_FWD_DEFINED__ +typedef interface IEnumDpxFiles IEnumDpxFiles; + +#endif /* __IEnumDpxFiles_FWD_DEFINED__ */ + + +#ifndef __IEnumDpxContainerDirectoryEntries_FWD_DEFINED__ +#define __IEnumDpxContainerDirectoryEntries_FWD_DEFINED__ +typedef interface IEnumDpxContainerDirectoryEntries IEnumDpxContainerDirectoryEntries; + +#endif /* __IEnumDpxContainerDirectoryEntries_FWD_DEFINED__ */ + + +#ifndef __IDpxEncryptedContainer_FWD_DEFINED__ +#define __IDpxEncryptedContainer_FWD_DEFINED__ +typedef interface IDpxEncryptedContainer IDpxEncryptedContainer; + +#endif /* __IDpxEncryptedContainer_FWD_DEFINED__ */ + + +#ifndef __IDpxContainer2_FWD_DEFINED__ +#define __IDpxContainer2_FWD_DEFINED__ +typedef interface IDpxContainer2 IDpxContainer2; + +#endif /* __IDpxContainer2_FWD_DEFINED__ */ + + +#ifndef __IDpxContainer3_FWD_DEFINED__ +#define __IDpxContainer3_FWD_DEFINED__ +typedef interface IDpxContainer3 IDpxContainer3; + +#endif /* __IDpxContainer3_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dpx1_0000_0000 */ +/* [local] */ + +// Copyright (c) Microsoft Corporation. All rights reserved. + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include +typedef unsigned int ALG_ID; + + + + + + + + + + +typedef unsigned int LOCATIONTYPE; + +#define LOCATIONTYPE_UNKNOWN ( 0 ) + +#define LOCATIONTYPE_NONE ( 0x1000000 ) + +#define LOCATIONTYPE_LOCAL ( 0x2000000 ) + +#define LOCATIONTYPE_CAB ( 0x3000000 ) + +#define LOCATIONTYPE_CMI ( 0x4000000 ) + +#define LOCATIONTYPE__MASK_FLAGS ( 0xffff ) + +#define LOCATIONTYPE_RECURSIVE ( 0x1 ) + +#define LOCATIONTYPE_ABSOLUTE ( 0x2 ) + +#define LOCATIONTYPE_COMPRESSED ( 0x4 ) + +#define LOCATIONTYPE_IGNORE ( 0x8 ) + +#define LOCATIONTYPE_DUPLICATE ( 0x10 ) + +#define LOCATIONTYPE_INTERMEDIATE ( 0x20 ) + +#define LOCATIONTYPE__MASK_TYPE ( 0xffff0000 ) + +typedef /* [public][public] */ +enum __MIDL___MIDL_itf_dpx1_0000_0000_0001 + { + DPX_RESUME_AND_DOWNLOAD = 0, + DPX_RESUME_UNTIL_DOWNLOAD = 0x1, + DPX_RESUME_AND_DOWNLOAD_FALLBACK = 0x2, + DPX_RESUME_UNTIL_DOWNLOAD_NO_CLONE = 0x3 + } DPX_RESUME_TYPE; + +#define DPX_MAX_HASH_SIZE 64 +typedef /* [public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_dpx1_0000_0000_0002 + { + ALG_ID AlgorithmId; + UINT HashSize; + /* [length_is] */ BYTE HashData[ 64 ]; + } DPX_HASH; + +typedef /* [public][public][public][public][public] */ struct __MIDL___MIDL_itf_dpx1_0000_0000_0003 + { + UINT64 Offset; + UINT64 Length; + } DPX_BYTE_RANGE; + +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_dpx1_0000_0000_0004 + { + DPX_PHASE_JOB_IDLE = 0, + DPX_PHASE_DOWNLOAD_INDEX = 0x10, + DPX_PHASE_INVENTORY = 0x20, + DPX_PHASE_DOWNLOAD_FILES = 0x30, + DPX_PHASE_EXPAND_FILES = 0x40, + DPX_PHASE_JOB_INPROGRESS = 0x50, + DPX_PHASE_JOB_COMPLETE = 0x7f00, + DPX_PHASE_JOB_CANCELLED = 0xfffe, + DPX_PHASE_JOB_FAILURE = 0xffff + } DPX_PROGRESS_PHASE; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public][public] */ struct __MIDL___MIDL_itf_dpx1_0000_0000_0005 + { + UINT64 Completed; + UINT64 Remaining; + } DPX_PROGRESS_REMAIN; + +typedef /* [public][public] */ struct __MIDL___MIDL_itf_dpx1_0000_0000_0006 + { + DPX_PROGRESS_REMAIN Inventory; + DPX_PROGRESS_REMAIN Download; + DPX_PROGRESS_REMAIN Expansion; + DPX_PROGRESS_REMAIN Files; + DPX_PROGRESS_REMAIN Overall; + DPX_PROGRESS_PHASE ePhase; + } DPX_PROGRESS; + +#define DPX_OPTION_DELTA_BASIS_ROOT L"delta_basis_root" +#define DPX_COMPRESSION_ALGORITHM_OPTION_NAME L"postprocess_compression_algorithm" +#define DPX_CLEANUP_OPTION_NAME L"postprocess_source_cleanup" +#define DPX_COMPRESSION_ALGORITHM_XPRESS_HUFF L"xpress_huff" +#define DPX_COMPRESSION_ALGORITHM_WOF_PROVIDER_FILE L"wof_provider_file" +#define DPX_COMPRESSED_FILE_HEADER_LENGTH 4 +#define DPX_COMPRESSED_FILE_HEADER_XPRESS_HUFF {'D', 'C', 'X', '\x01'} +#define DPX_XPRESS_HUFF_BLOCK_SIZE (1024 * 1024) +#define DPX_OPTION_TELEMETRY_CORRELATION_VECTOR L"Telemetry_correlation_vector" +#define DPX_OPTION_HASH_TYPE L"cix_hash_type" +#define DPX_OPTION_HARDLINK_ASSETS L"hardlink_assets" +#define DPX_OPTION_COMPLETE_SELF_COPIES L"complete_self_copies" +#define DPX_OPTION_IGNORE_FNF_WARNINGS L"ignore_filenotfound_warnings" +#define DPX_OPTION_SKIP_EXTRACTION_FOR_FILE L"skip_extraction_for_file" + + +extern RPC_IF_HANDLE __MIDL_itf_dpx1_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dpx1_0000_0000_v0_0_s_ifspec; + +#ifndef __IDpxJob_INTERFACE_DEFINED__ +#define __IDpxJob_INTERFACE_DEFINED__ + +/* interface IDpxJob */ +/* [nocode][unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxJob; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddc1b711-0e55-452f-838e-d1505b866e2b") + IDpxJob : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTargetPath( + /* [out] */ __RPC__deref_out_opt LPWSTR *TargetPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddContainer( + /* [in] */ __RPC__in LPCWSTR ContainerPath, + /* [out] */ __RPC__deref_out_opt IDpxContainer **ppContainer) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumContainers( + /* [out] */ __RPC__deref_out_opt IEnumDpxContainers **ppEnumContainers) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDownloadProvider( + /* [unique][in] */ __RPC__in_opt IDpxDownloadProvider *pDownloadProvider) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDownloadProvider( + /* [out] */ __RPC__deref_out_opt IDpxDownloadProvider **ppDownloadProvider) = 0; + + virtual HRESULT STDMETHODCALLTYPE Resume( + DPX_RESUME_TYPE eResumeType) = 0; + + virtual HRESULT STDMETHODCALLTYPE Suspend( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProgress( + /* [out] */ __RPC__out DPX_PROGRESS *pProgress) = 0; + + virtual HRESULT STDMETHODCALLTYPE SaveJobState( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetUserValue( + /* [in] */ UINT64 UserValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUserValue( + /* [out] */ __RPC__out UINT64 *pUserValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetOptionValue( + /* [in] */ __RPC__in LPCWSTR OptionName, + /* [unique][in] */ __RPC__in_opt LPCWSTR OptionValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOptionValue( + /* [in] */ __RPC__in LPCWSTR OptionName, + /* [out] */ __RPC__deref_out_opt LPWSTR *pOptionValue) = 0; + + virtual /* [local] */ void STDMETHODCALLTYPE FreeMemory( + /* [in] */ void *Allocation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxJobVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxJob * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxJob * This); + + DECLSPEC_XFGVIRT(IDpxJob, GetTargetPath) + HRESULT ( STDMETHODCALLTYPE *GetTargetPath )( + __RPC__in IDpxJob * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *TargetPath); + + DECLSPEC_XFGVIRT(IDpxJob, AddContainer) + HRESULT ( STDMETHODCALLTYPE *AddContainer )( + __RPC__in IDpxJob * This, + /* [in] */ __RPC__in LPCWSTR ContainerPath, + /* [out] */ __RPC__deref_out_opt IDpxContainer **ppContainer); + + DECLSPEC_XFGVIRT(IDpxJob, EnumContainers) + HRESULT ( STDMETHODCALLTYPE *EnumContainers )( + __RPC__in IDpxJob * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxContainers **ppEnumContainers); + + DECLSPEC_XFGVIRT(IDpxJob, SetDownloadProvider) + HRESULT ( STDMETHODCALLTYPE *SetDownloadProvider )( + __RPC__in IDpxJob * This, + /* [unique][in] */ __RPC__in_opt IDpxDownloadProvider *pDownloadProvider); + + DECLSPEC_XFGVIRT(IDpxJob, GetDownloadProvider) + HRESULT ( STDMETHODCALLTYPE *GetDownloadProvider )( + __RPC__in IDpxJob * This, + /* [out] */ __RPC__deref_out_opt IDpxDownloadProvider **ppDownloadProvider); + + DECLSPEC_XFGVIRT(IDpxJob, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IDpxJob * This, + DPX_RESUME_TYPE eResumeType); + + DECLSPEC_XFGVIRT(IDpxJob, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + __RPC__in IDpxJob * This); + + DECLSPEC_XFGVIRT(IDpxJob, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IDpxJob * This); + + DECLSPEC_XFGVIRT(IDpxJob, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IDpxJob * This, + /* [out] */ __RPC__out DPX_PROGRESS *pProgress); + + DECLSPEC_XFGVIRT(IDpxJob, SaveJobState) + HRESULT ( STDMETHODCALLTYPE *SaveJobState )( + __RPC__in IDpxJob * This); + + DECLSPEC_XFGVIRT(IDpxJob, SetUserValue) + HRESULT ( STDMETHODCALLTYPE *SetUserValue )( + __RPC__in IDpxJob * This, + /* [in] */ UINT64 UserValue); + + DECLSPEC_XFGVIRT(IDpxJob, GetUserValue) + HRESULT ( STDMETHODCALLTYPE *GetUserValue )( + __RPC__in IDpxJob * This, + /* [out] */ __RPC__out UINT64 *pUserValue); + + DECLSPEC_XFGVIRT(IDpxJob, SetOptionValue) + HRESULT ( STDMETHODCALLTYPE *SetOptionValue )( + __RPC__in IDpxJob * This, + /* [in] */ __RPC__in LPCWSTR OptionName, + /* [unique][in] */ __RPC__in_opt LPCWSTR OptionValue); + + DECLSPEC_XFGVIRT(IDpxJob, GetOptionValue) + HRESULT ( STDMETHODCALLTYPE *GetOptionValue )( + __RPC__in IDpxJob * This, + /* [in] */ __RPC__in LPCWSTR OptionName, + /* [out] */ __RPC__deref_out_opt LPWSTR *pOptionValue); + + DECLSPEC_XFGVIRT(IDpxJob, FreeMemory) + /* [local] */ void ( STDMETHODCALLTYPE *FreeMemory )( + IDpxJob * This, + /* [in] */ void *Allocation); + + END_INTERFACE + } IDpxJobVtbl; + + interface IDpxJob + { + CONST_VTBL struct IDpxJobVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxJob_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxJob_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxJob_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxJob_GetTargetPath(This,TargetPath) \ + ( (This)->lpVtbl -> GetTargetPath(This,TargetPath) ) + +#define IDpxJob_AddContainer(This,ContainerPath,ppContainer) \ + ( (This)->lpVtbl -> AddContainer(This,ContainerPath,ppContainer) ) + +#define IDpxJob_EnumContainers(This,ppEnumContainers) \ + ( (This)->lpVtbl -> EnumContainers(This,ppEnumContainers) ) + +#define IDpxJob_SetDownloadProvider(This,pDownloadProvider) \ + ( (This)->lpVtbl -> SetDownloadProvider(This,pDownloadProvider) ) + +#define IDpxJob_GetDownloadProvider(This,ppDownloadProvider) \ + ( (This)->lpVtbl -> GetDownloadProvider(This,ppDownloadProvider) ) + +#define IDpxJob_Resume(This,eResumeType) \ + ( (This)->lpVtbl -> Resume(This,eResumeType) ) + +#define IDpxJob_Suspend(This) \ + ( (This)->lpVtbl -> Suspend(This) ) + +#define IDpxJob_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IDpxJob_GetProgress(This,pProgress) \ + ( (This)->lpVtbl -> GetProgress(This,pProgress) ) + +#define IDpxJob_SaveJobState(This) \ + ( (This)->lpVtbl -> SaveJobState(This) ) + +#define IDpxJob_SetUserValue(This,UserValue) \ + ( (This)->lpVtbl -> SetUserValue(This,UserValue) ) + +#define IDpxJob_GetUserValue(This,pUserValue) \ + ( (This)->lpVtbl -> GetUserValue(This,pUserValue) ) + +#define IDpxJob_SetOptionValue(This,OptionName,OptionValue) \ + ( (This)->lpVtbl -> SetOptionValue(This,OptionName,OptionValue) ) + +#define IDpxJob_GetOptionValue(This,OptionName,pOptionValue) \ + ( (This)->lpVtbl -> GetOptionValue(This,OptionName,pOptionValue) ) + +#define IDpxJob_FreeMemory(This,Allocation) \ + ( (This)->lpVtbl -> FreeMemory(This,Allocation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxJob_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dpx1_0000_0001 */ +/* [local] */ + +#ifdef __cplusplus +enum class DPX_FILE_PROVIDER_QUERY_DISPOSITION +{ + Invalid = 0, + Success = 1, + Compressed = 2 +}; +#else +typedef +enum tagDPX_FILE_PROVIDER_QUERY_DISPOSITION + { + DPX_FILE_PROVIDER_QUERY_DISPOSITION_INVALID = 0, + DPX_FILE_PROVIDER_QUERY_DISPOSITION_SUCCESS = 1, + DPX_FILE_PROVIDER_QUERY_DISPOSITION_COMPRESSED = 2 + } DPX_FILE_PROVIDER_QUERY_DISPOSITION; + +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_dpx1_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dpx1_0000_0001_v0_0_s_ifspec; + +#ifndef __IFileHashProviderCallback_INTERFACE_DEFINED__ +#define __IFileHashProviderCallback_INTERFACE_DEFINED__ + +/* interface IFileHashProviderCallback */ +/* [unique][object][uuid] */ + + +EXTERN_C const IID IID_IFileHashProviderCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e9a288f7-bcfb-4466-95c6-5a388263d8fb") + IFileHashProviderCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFileHash( + /* [in] */ __RPC__in LPCWSTR FilePath, + /* [in] */ ALG_ID algId, + /* [out] */ __RPC__out DPX_FILE_PROVIDER_QUERY_DISPOSITION *pDisposition, + /* [in] */ UINT cbHashData, + /* [size_is][out] */ __RPC__out_ecount_full(cbHashData) BYTE pbHashData[ ]) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFileHashProviderCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFileHashProviderCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFileHashProviderCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFileHashProviderCallback * This); + + DECLSPEC_XFGVIRT(IFileHashProviderCallback, GetFileHash) + HRESULT ( STDMETHODCALLTYPE *GetFileHash )( + __RPC__in IFileHashProviderCallback * This, + /* [in] */ __RPC__in LPCWSTR FilePath, + /* [in] */ ALG_ID algId, + /* [out] */ __RPC__out DPX_FILE_PROVIDER_QUERY_DISPOSITION *pDisposition, + /* [in] */ UINT cbHashData, + /* [size_is][out] */ __RPC__out_ecount_full(cbHashData) BYTE pbHashData[ ]); + + END_INTERFACE + } IFileHashProviderCallbackVtbl; + + interface IFileHashProviderCallback + { + CONST_VTBL struct IFileHashProviderCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFileHashProviderCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFileHashProviderCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFileHashProviderCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFileHashProviderCallback_GetFileHash(This,FilePath,algId,pDisposition,cbHashData,pbHashData) \ + ( (This)->lpVtbl -> GetFileHash(This,FilePath,algId,pDisposition,cbHashData,pbHashData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFileHashProviderCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IDpxJob2_INTERFACE_DEFINED__ +#define __IDpxJob2_INTERFACE_DEFINED__ + +/* interface IDpxJob2 */ +/* [unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxJob2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e1c292c8-919a-4f1b-b85a-9c542932fc8d") + IDpxJob2 : public IDpxJob + { + public: + virtual HRESULT STDMETHODCALLTYPE SetInventoryProvider( + /* [in] */ LOCATIONTYPE locationType, + /* [in] */ __RPC__in_opt IFileHashProviderCallback *pProvider) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxJob2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxJob2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxJob2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxJob2 * This); + + DECLSPEC_XFGVIRT(IDpxJob, GetTargetPath) + HRESULT ( STDMETHODCALLTYPE *GetTargetPath )( + __RPC__in IDpxJob2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *TargetPath); + + DECLSPEC_XFGVIRT(IDpxJob, AddContainer) + HRESULT ( STDMETHODCALLTYPE *AddContainer )( + __RPC__in IDpxJob2 * This, + /* [in] */ __RPC__in LPCWSTR ContainerPath, + /* [out] */ __RPC__deref_out_opt IDpxContainer **ppContainer); + + DECLSPEC_XFGVIRT(IDpxJob, EnumContainers) + HRESULT ( STDMETHODCALLTYPE *EnumContainers )( + __RPC__in IDpxJob2 * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxContainers **ppEnumContainers); + + DECLSPEC_XFGVIRT(IDpxJob, SetDownloadProvider) + HRESULT ( STDMETHODCALLTYPE *SetDownloadProvider )( + __RPC__in IDpxJob2 * This, + /* [unique][in] */ __RPC__in_opt IDpxDownloadProvider *pDownloadProvider); + + DECLSPEC_XFGVIRT(IDpxJob, GetDownloadProvider) + HRESULT ( STDMETHODCALLTYPE *GetDownloadProvider )( + __RPC__in IDpxJob2 * This, + /* [out] */ __RPC__deref_out_opt IDpxDownloadProvider **ppDownloadProvider); + + DECLSPEC_XFGVIRT(IDpxJob, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IDpxJob2 * This, + DPX_RESUME_TYPE eResumeType); + + DECLSPEC_XFGVIRT(IDpxJob, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + __RPC__in IDpxJob2 * This); + + DECLSPEC_XFGVIRT(IDpxJob, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IDpxJob2 * This); + + DECLSPEC_XFGVIRT(IDpxJob, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IDpxJob2 * This, + /* [out] */ __RPC__out DPX_PROGRESS *pProgress); + + DECLSPEC_XFGVIRT(IDpxJob, SaveJobState) + HRESULT ( STDMETHODCALLTYPE *SaveJobState )( + __RPC__in IDpxJob2 * This); + + DECLSPEC_XFGVIRT(IDpxJob, SetUserValue) + HRESULT ( STDMETHODCALLTYPE *SetUserValue )( + __RPC__in IDpxJob2 * This, + /* [in] */ UINT64 UserValue); + + DECLSPEC_XFGVIRT(IDpxJob, GetUserValue) + HRESULT ( STDMETHODCALLTYPE *GetUserValue )( + __RPC__in IDpxJob2 * This, + /* [out] */ __RPC__out UINT64 *pUserValue); + + DECLSPEC_XFGVIRT(IDpxJob, SetOptionValue) + HRESULT ( STDMETHODCALLTYPE *SetOptionValue )( + __RPC__in IDpxJob2 * This, + /* [in] */ __RPC__in LPCWSTR OptionName, + /* [unique][in] */ __RPC__in_opt LPCWSTR OptionValue); + + DECLSPEC_XFGVIRT(IDpxJob, GetOptionValue) + HRESULT ( STDMETHODCALLTYPE *GetOptionValue )( + __RPC__in IDpxJob2 * This, + /* [in] */ __RPC__in LPCWSTR OptionName, + /* [out] */ __RPC__deref_out_opt LPWSTR *pOptionValue); + + DECLSPEC_XFGVIRT(IDpxJob, FreeMemory) + /* [local] */ void ( STDMETHODCALLTYPE *FreeMemory )( + IDpxJob2 * This, + /* [in] */ void *Allocation); + + DECLSPEC_XFGVIRT(IDpxJob2, SetInventoryProvider) + HRESULT ( STDMETHODCALLTYPE *SetInventoryProvider )( + __RPC__in IDpxJob2 * This, + /* [in] */ LOCATIONTYPE locationType, + /* [in] */ __RPC__in_opt IFileHashProviderCallback *pProvider); + + END_INTERFACE + } IDpxJob2Vtbl; + + interface IDpxJob2 + { + CONST_VTBL struct IDpxJob2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxJob2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxJob2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxJob2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxJob2_GetTargetPath(This,TargetPath) \ + ( (This)->lpVtbl -> GetTargetPath(This,TargetPath) ) + +#define IDpxJob2_AddContainer(This,ContainerPath,ppContainer) \ + ( (This)->lpVtbl -> AddContainer(This,ContainerPath,ppContainer) ) + +#define IDpxJob2_EnumContainers(This,ppEnumContainers) \ + ( (This)->lpVtbl -> EnumContainers(This,ppEnumContainers) ) + +#define IDpxJob2_SetDownloadProvider(This,pDownloadProvider) \ + ( (This)->lpVtbl -> SetDownloadProvider(This,pDownloadProvider) ) + +#define IDpxJob2_GetDownloadProvider(This,ppDownloadProvider) \ + ( (This)->lpVtbl -> GetDownloadProvider(This,ppDownloadProvider) ) + +#define IDpxJob2_Resume(This,eResumeType) \ + ( (This)->lpVtbl -> Resume(This,eResumeType) ) + +#define IDpxJob2_Suspend(This) \ + ( (This)->lpVtbl -> Suspend(This) ) + +#define IDpxJob2_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IDpxJob2_GetProgress(This,pProgress) \ + ( (This)->lpVtbl -> GetProgress(This,pProgress) ) + +#define IDpxJob2_SaveJobState(This) \ + ( (This)->lpVtbl -> SaveJobState(This) ) + +#define IDpxJob2_SetUserValue(This,UserValue) \ + ( (This)->lpVtbl -> SetUserValue(This,UserValue) ) + +#define IDpxJob2_GetUserValue(This,pUserValue) \ + ( (This)->lpVtbl -> GetUserValue(This,pUserValue) ) + +#define IDpxJob2_SetOptionValue(This,OptionName,OptionValue) \ + ( (This)->lpVtbl -> SetOptionValue(This,OptionName,OptionValue) ) + +#define IDpxJob2_GetOptionValue(This,OptionName,pOptionValue) \ + ( (This)->lpVtbl -> GetOptionValue(This,OptionName,pOptionValue) ) + +#define IDpxJob2_FreeMemory(This,Allocation) \ + ( (This)->lpVtbl -> FreeMemory(This,Allocation) ) + + +#define IDpxJob2_SetInventoryProvider(This,locationType,pProvider) \ + ( (This)->lpVtbl -> SetInventoryProvider(This,locationType,pProvider) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxJob2_INTERFACE_DEFINED__ */ + + +#ifndef __IDpxContainer_INTERFACE_DEFINED__ +#define __IDpxContainer_INTERFACE_DEFINED__ + +/* interface IDpxContainer */ +/* [nocode][unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxContainer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddc1b712-0e55-452f-838e-d1505b866e2b") + IDpxContainer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetContainerPath( + /* [in] */ __RPC__in LPCWSTR ContainerPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContainerPath( + /* [out] */ __RPC__deref_out_opt LPWSTR *pContainerPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddFileToExtract( + /* [in] */ __RPC__in LPCWSTR SourceFileName, + /* [unique][in] */ __RPC__in_opt LPCWSTR TargetFileName, + /* [unique][in] */ __RPC__in_opt DPX_HASH *TargetFileHash) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddFileToExtract2( + /* [in] */ __RPC__in LPCWSTR SourceFileName, + /* [unique][in] */ __RPC__in_opt LPCWSTR TargetFileName, + /* [out] */ __RPC__deref_out_opt IDpxFile **ppFile) = 0; + + virtual HRESULT STDMETHODCALLTYPE ExtractAllFiles( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumFilesToExtract( + /* [out] */ __RPC__deref_out_opt IEnumDpxFiles **ppEnumFiles) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetExpectedContainerIndexHash( + /* [in] */ __RPC__in DPX_HASH *pExpectedHash) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExpectedContainerIndexHash( + /* [out] */ __RPC__deref_out_opt DPX_HASH **ppExpectedHash) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProvideContainerIndex( + /* [in] */ UINT IndexSize, + /* [size_is][in] */ __RPC__in_ecount_full(IndexSize) BYTE IndexData[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProvideContainerIndexByFile( + /* [in] */ __RPC__in LPCWSTR IndexFileName) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumDirectoryEntries( + /* [out] */ __RPC__deref_out_opt IEnumDpxContainerDirectoryEntries **ppEnumEntries) = 0; + + virtual HRESULT STDMETHODCALLTYPE Remove( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetUserValue( + /* [in] */ UINT64 UserValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUserValue( + /* [out] */ __RPC__out UINT64 *pUserValue) = 0; + + virtual /* [local] */ void STDMETHODCALLTYPE FreeMemory( + /* [in] */ void *Allocation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxContainerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxContainer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxContainer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxContainer * This); + + DECLSPEC_XFGVIRT(IDpxContainer, SetContainerPath) + HRESULT ( STDMETHODCALLTYPE *SetContainerPath )( + __RPC__in IDpxContainer * This, + /* [in] */ __RPC__in LPCWSTR ContainerPath); + + DECLSPEC_XFGVIRT(IDpxContainer, GetContainerPath) + HRESULT ( STDMETHODCALLTYPE *GetContainerPath )( + __RPC__in IDpxContainer * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pContainerPath); + + DECLSPEC_XFGVIRT(IDpxContainer, AddFileToExtract) + HRESULT ( STDMETHODCALLTYPE *AddFileToExtract )( + __RPC__in IDpxContainer * This, + /* [in] */ __RPC__in LPCWSTR SourceFileName, + /* [unique][in] */ __RPC__in_opt LPCWSTR TargetFileName, + /* [unique][in] */ __RPC__in_opt DPX_HASH *TargetFileHash); + + DECLSPEC_XFGVIRT(IDpxContainer, AddFileToExtract2) + HRESULT ( STDMETHODCALLTYPE *AddFileToExtract2 )( + __RPC__in IDpxContainer * This, + /* [in] */ __RPC__in LPCWSTR SourceFileName, + /* [unique][in] */ __RPC__in_opt LPCWSTR TargetFileName, + /* [out] */ __RPC__deref_out_opt IDpxFile **ppFile); + + DECLSPEC_XFGVIRT(IDpxContainer, ExtractAllFiles) + HRESULT ( STDMETHODCALLTYPE *ExtractAllFiles )( + __RPC__in IDpxContainer * This); + + DECLSPEC_XFGVIRT(IDpxContainer, EnumFilesToExtract) + HRESULT ( STDMETHODCALLTYPE *EnumFilesToExtract )( + __RPC__in IDpxContainer * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxFiles **ppEnumFiles); + + DECLSPEC_XFGVIRT(IDpxContainer, SetExpectedContainerIndexHash) + HRESULT ( STDMETHODCALLTYPE *SetExpectedContainerIndexHash )( + __RPC__in IDpxContainer * This, + /* [in] */ __RPC__in DPX_HASH *pExpectedHash); + + DECLSPEC_XFGVIRT(IDpxContainer, GetExpectedContainerIndexHash) + HRESULT ( STDMETHODCALLTYPE *GetExpectedContainerIndexHash )( + __RPC__in IDpxContainer * This, + /* [out] */ __RPC__deref_out_opt DPX_HASH **ppExpectedHash); + + DECLSPEC_XFGVIRT(IDpxContainer, ProvideContainerIndex) + HRESULT ( STDMETHODCALLTYPE *ProvideContainerIndex )( + __RPC__in IDpxContainer * This, + /* [in] */ UINT IndexSize, + /* [size_is][in] */ __RPC__in_ecount_full(IndexSize) BYTE IndexData[ ]); + + DECLSPEC_XFGVIRT(IDpxContainer, ProvideContainerIndexByFile) + HRESULT ( STDMETHODCALLTYPE *ProvideContainerIndexByFile )( + __RPC__in IDpxContainer * This, + /* [in] */ __RPC__in LPCWSTR IndexFileName); + + DECLSPEC_XFGVIRT(IDpxContainer, EnumDirectoryEntries) + HRESULT ( STDMETHODCALLTYPE *EnumDirectoryEntries )( + __RPC__in IDpxContainer * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxContainerDirectoryEntries **ppEnumEntries); + + DECLSPEC_XFGVIRT(IDpxContainer, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IDpxContainer * This); + + DECLSPEC_XFGVIRT(IDpxContainer, SetUserValue) + HRESULT ( STDMETHODCALLTYPE *SetUserValue )( + __RPC__in IDpxContainer * This, + /* [in] */ UINT64 UserValue); + + DECLSPEC_XFGVIRT(IDpxContainer, GetUserValue) + HRESULT ( STDMETHODCALLTYPE *GetUserValue )( + __RPC__in IDpxContainer * This, + /* [out] */ __RPC__out UINT64 *pUserValue); + + DECLSPEC_XFGVIRT(IDpxContainer, FreeMemory) + /* [local] */ void ( STDMETHODCALLTYPE *FreeMemory )( + IDpxContainer * This, + /* [in] */ void *Allocation); + + END_INTERFACE + } IDpxContainerVtbl; + + interface IDpxContainer + { + CONST_VTBL struct IDpxContainerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxContainer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxContainer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxContainer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxContainer_SetContainerPath(This,ContainerPath) \ + ( (This)->lpVtbl -> SetContainerPath(This,ContainerPath) ) + +#define IDpxContainer_GetContainerPath(This,pContainerPath) \ + ( (This)->lpVtbl -> GetContainerPath(This,pContainerPath) ) + +#define IDpxContainer_AddFileToExtract(This,SourceFileName,TargetFileName,TargetFileHash) \ + ( (This)->lpVtbl -> AddFileToExtract(This,SourceFileName,TargetFileName,TargetFileHash) ) + +#define IDpxContainer_AddFileToExtract2(This,SourceFileName,TargetFileName,ppFile) \ + ( (This)->lpVtbl -> AddFileToExtract2(This,SourceFileName,TargetFileName,ppFile) ) + +#define IDpxContainer_ExtractAllFiles(This) \ + ( (This)->lpVtbl -> ExtractAllFiles(This) ) + +#define IDpxContainer_EnumFilesToExtract(This,ppEnumFiles) \ + ( (This)->lpVtbl -> EnumFilesToExtract(This,ppEnumFiles) ) + +#define IDpxContainer_SetExpectedContainerIndexHash(This,pExpectedHash) \ + ( (This)->lpVtbl -> SetExpectedContainerIndexHash(This,pExpectedHash) ) + +#define IDpxContainer_GetExpectedContainerIndexHash(This,ppExpectedHash) \ + ( (This)->lpVtbl -> GetExpectedContainerIndexHash(This,ppExpectedHash) ) + +#define IDpxContainer_ProvideContainerIndex(This,IndexSize,IndexData) \ + ( (This)->lpVtbl -> ProvideContainerIndex(This,IndexSize,IndexData) ) + +#define IDpxContainer_ProvideContainerIndexByFile(This,IndexFileName) \ + ( (This)->lpVtbl -> ProvideContainerIndexByFile(This,IndexFileName) ) + +#define IDpxContainer_EnumDirectoryEntries(This,ppEnumEntries) \ + ( (This)->lpVtbl -> EnumDirectoryEntries(This,ppEnumEntries) ) + +#define IDpxContainer_Remove(This) \ + ( (This)->lpVtbl -> Remove(This) ) + +#define IDpxContainer_SetUserValue(This,UserValue) \ + ( (This)->lpVtbl -> SetUserValue(This,UserValue) ) + +#define IDpxContainer_GetUserValue(This,pUserValue) \ + ( (This)->lpVtbl -> GetUserValue(This,pUserValue) ) + +#define IDpxContainer_FreeMemory(This,Allocation) \ + ( (This)->lpVtbl -> FreeMemory(This,Allocation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxContainer_INTERFACE_DEFINED__ */ + + +#ifndef __IDpxFile_INTERFACE_DEFINED__ +#define __IDpxFile_INTERFACE_DEFINED__ + +/* interface IDpxFile */ +/* [nocode][unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxFile; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddc1b713-0e55-452f-838e-d1505b866e2b") + IDpxFile : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSourceFileName( + /* [out] */ __RPC__deref_out_opt LPWSTR *pSourceFileName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTargetFileName( + /* [out] */ __RPC__deref_out_opt LPWSTR *pTargetFileName) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetExpectedHash( + /* [in] */ __RPC__in DPX_HASH *pExpectedHash) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExpectedHash( + /* [out] */ __RPC__deref_out_opt DPX_HASH **ppExpectedHash) = 0; + + virtual HRESULT STDMETHODCALLTYPE Remove( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetUserValue( + /* [in] */ UINT64 UserValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUserValue( + /* [out] */ __RPC__out UINT64 *pUserValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStatus( + /* [out] */ __RPC__out HRESULT *pStatus) = 0; + + virtual /* [local] */ void STDMETHODCALLTYPE FreeMemory( + /* [in] */ void *Allocation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxFileVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxFile * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxFile * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxFile * This); + + DECLSPEC_XFGVIRT(IDpxFile, GetSourceFileName) + HRESULT ( STDMETHODCALLTYPE *GetSourceFileName )( + __RPC__in IDpxFile * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pSourceFileName); + + DECLSPEC_XFGVIRT(IDpxFile, GetTargetFileName) + HRESULT ( STDMETHODCALLTYPE *GetTargetFileName )( + __RPC__in IDpxFile * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pTargetFileName); + + DECLSPEC_XFGVIRT(IDpxFile, SetExpectedHash) + HRESULT ( STDMETHODCALLTYPE *SetExpectedHash )( + __RPC__in IDpxFile * This, + /* [in] */ __RPC__in DPX_HASH *pExpectedHash); + + DECLSPEC_XFGVIRT(IDpxFile, GetExpectedHash) + HRESULT ( STDMETHODCALLTYPE *GetExpectedHash )( + __RPC__in IDpxFile * This, + /* [out] */ __RPC__deref_out_opt DPX_HASH **ppExpectedHash); + + DECLSPEC_XFGVIRT(IDpxFile, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IDpxFile * This); + + DECLSPEC_XFGVIRT(IDpxFile, SetUserValue) + HRESULT ( STDMETHODCALLTYPE *SetUserValue )( + __RPC__in IDpxFile * This, + /* [in] */ UINT64 UserValue); + + DECLSPEC_XFGVIRT(IDpxFile, GetUserValue) + HRESULT ( STDMETHODCALLTYPE *GetUserValue )( + __RPC__in IDpxFile * This, + /* [out] */ __RPC__out UINT64 *pUserValue); + + DECLSPEC_XFGVIRT(IDpxFile, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in IDpxFile * This, + /* [out] */ __RPC__out HRESULT *pStatus); + + DECLSPEC_XFGVIRT(IDpxFile, FreeMemory) + /* [local] */ void ( STDMETHODCALLTYPE *FreeMemory )( + IDpxFile * This, + /* [in] */ void *Allocation); + + END_INTERFACE + } IDpxFileVtbl; + + interface IDpxFile + { + CONST_VTBL struct IDpxFileVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxFile_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxFile_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxFile_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxFile_GetSourceFileName(This,pSourceFileName) \ + ( (This)->lpVtbl -> GetSourceFileName(This,pSourceFileName) ) + +#define IDpxFile_GetTargetFileName(This,pTargetFileName) \ + ( (This)->lpVtbl -> GetTargetFileName(This,pTargetFileName) ) + +#define IDpxFile_SetExpectedHash(This,pExpectedHash) \ + ( (This)->lpVtbl -> SetExpectedHash(This,pExpectedHash) ) + +#define IDpxFile_GetExpectedHash(This,ppExpectedHash) \ + ( (This)->lpVtbl -> GetExpectedHash(This,ppExpectedHash) ) + +#define IDpxFile_Remove(This) \ + ( (This)->lpVtbl -> Remove(This) ) + +#define IDpxFile_SetUserValue(This,UserValue) \ + ( (This)->lpVtbl -> SetUserValue(This,UserValue) ) + +#define IDpxFile_GetUserValue(This,pUserValue) \ + ( (This)->lpVtbl -> GetUserValue(This,pUserValue) ) + +#define IDpxFile_GetStatus(This,pStatus) \ + ( (This)->lpVtbl -> GetStatus(This,pStatus) ) + +#define IDpxFile_FreeMemory(This,Allocation) \ + ( (This)->lpVtbl -> FreeMemory(This,Allocation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxFile_INTERFACE_DEFINED__ */ + + +#ifndef __IDpxFile2_INTERFACE_DEFINED__ +#define __IDpxFile2_INTERFACE_DEFINED__ + +/* interface IDpxFile2 */ +/* [unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxFile2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c249cc11-c1f5-428e-acbf-e1b78b30b971") + IDpxFile2 : public IDpxFile + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSize( + /* [out] */ __RPC__out UINT64 *pSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxFile2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxFile2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxFile2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxFile2 * This); + + DECLSPEC_XFGVIRT(IDpxFile, GetSourceFileName) + HRESULT ( STDMETHODCALLTYPE *GetSourceFileName )( + __RPC__in IDpxFile2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pSourceFileName); + + DECLSPEC_XFGVIRT(IDpxFile, GetTargetFileName) + HRESULT ( STDMETHODCALLTYPE *GetTargetFileName )( + __RPC__in IDpxFile2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pTargetFileName); + + DECLSPEC_XFGVIRT(IDpxFile, SetExpectedHash) + HRESULT ( STDMETHODCALLTYPE *SetExpectedHash )( + __RPC__in IDpxFile2 * This, + /* [in] */ __RPC__in DPX_HASH *pExpectedHash); + + DECLSPEC_XFGVIRT(IDpxFile, GetExpectedHash) + HRESULT ( STDMETHODCALLTYPE *GetExpectedHash )( + __RPC__in IDpxFile2 * This, + /* [out] */ __RPC__deref_out_opt DPX_HASH **ppExpectedHash); + + DECLSPEC_XFGVIRT(IDpxFile, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IDpxFile2 * This); + + DECLSPEC_XFGVIRT(IDpxFile, SetUserValue) + HRESULT ( STDMETHODCALLTYPE *SetUserValue )( + __RPC__in IDpxFile2 * This, + /* [in] */ UINT64 UserValue); + + DECLSPEC_XFGVIRT(IDpxFile, GetUserValue) + HRESULT ( STDMETHODCALLTYPE *GetUserValue )( + __RPC__in IDpxFile2 * This, + /* [out] */ __RPC__out UINT64 *pUserValue); + + DECLSPEC_XFGVIRT(IDpxFile, GetStatus) + HRESULT ( STDMETHODCALLTYPE *GetStatus )( + __RPC__in IDpxFile2 * This, + /* [out] */ __RPC__out HRESULT *pStatus); + + DECLSPEC_XFGVIRT(IDpxFile, FreeMemory) + /* [local] */ void ( STDMETHODCALLTYPE *FreeMemory )( + IDpxFile2 * This, + /* [in] */ void *Allocation); + + DECLSPEC_XFGVIRT(IDpxFile2, GetSize) + HRESULT ( STDMETHODCALLTYPE *GetSize )( + __RPC__in IDpxFile2 * This, + /* [out] */ __RPC__out UINT64 *pSize); + + END_INTERFACE + } IDpxFile2Vtbl; + + interface IDpxFile2 + { + CONST_VTBL struct IDpxFile2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxFile2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxFile2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxFile2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxFile2_GetSourceFileName(This,pSourceFileName) \ + ( (This)->lpVtbl -> GetSourceFileName(This,pSourceFileName) ) + +#define IDpxFile2_GetTargetFileName(This,pTargetFileName) \ + ( (This)->lpVtbl -> GetTargetFileName(This,pTargetFileName) ) + +#define IDpxFile2_SetExpectedHash(This,pExpectedHash) \ + ( (This)->lpVtbl -> SetExpectedHash(This,pExpectedHash) ) + +#define IDpxFile2_GetExpectedHash(This,ppExpectedHash) \ + ( (This)->lpVtbl -> GetExpectedHash(This,ppExpectedHash) ) + +#define IDpxFile2_Remove(This) \ + ( (This)->lpVtbl -> Remove(This) ) + +#define IDpxFile2_SetUserValue(This,UserValue) \ + ( (This)->lpVtbl -> SetUserValue(This,UserValue) ) + +#define IDpxFile2_GetUserValue(This,pUserValue) \ + ( (This)->lpVtbl -> GetUserValue(This,pUserValue) ) + +#define IDpxFile2_GetStatus(This,pStatus) \ + ( (This)->lpVtbl -> GetStatus(This,pStatus) ) + +#define IDpxFile2_FreeMemory(This,Allocation) \ + ( (This)->lpVtbl -> FreeMemory(This,Allocation) ) + + +#define IDpxFile2_GetSize(This,pSize) \ + ( (This)->lpVtbl -> GetSize(This,pSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxFile2_INTERFACE_DEFINED__ */ + + +#ifndef __IDpxContainerDirectoryEntry_INTERFACE_DEFINED__ +#define __IDpxContainerDirectoryEntry_INTERFACE_DEFINED__ + +/* interface IDpxContainerDirectoryEntry */ +/* [nocode][unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxContainerDirectoryEntry; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddc1b715-0e55-452f-838e-d1505b866e2b") + IDpxContainerDirectoryEntry : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [out] */ __RPC__deref_out_opt LPWSTR *pDirEntryName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHash( + /* [out] */ __RPC__deref_out_opt DPX_HASH **pDirEntryHash) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSize( + /* [out] */ __RPC__out UINT64 *pDirEntrySize) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTime( + /* [out] */ __RPC__out FILETIME *pDirEntryTime) = 0; + + virtual /* [local] */ void STDMETHODCALLTYPE FreeMemory( + /* [in] */ void *Allocation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxContainerDirectoryEntryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxContainerDirectoryEntry * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxContainerDirectoryEntry * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxContainerDirectoryEntry * This); + + DECLSPEC_XFGVIRT(IDpxContainerDirectoryEntry, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + __RPC__in IDpxContainerDirectoryEntry * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pDirEntryName); + + DECLSPEC_XFGVIRT(IDpxContainerDirectoryEntry, GetHash) + HRESULT ( STDMETHODCALLTYPE *GetHash )( + __RPC__in IDpxContainerDirectoryEntry * This, + /* [out] */ __RPC__deref_out_opt DPX_HASH **pDirEntryHash); + + DECLSPEC_XFGVIRT(IDpxContainerDirectoryEntry, GetSize) + HRESULT ( STDMETHODCALLTYPE *GetSize )( + __RPC__in IDpxContainerDirectoryEntry * This, + /* [out] */ __RPC__out UINT64 *pDirEntrySize); + + DECLSPEC_XFGVIRT(IDpxContainerDirectoryEntry, GetTime) + HRESULT ( STDMETHODCALLTYPE *GetTime )( + __RPC__in IDpxContainerDirectoryEntry * This, + /* [out] */ __RPC__out FILETIME *pDirEntryTime); + + DECLSPEC_XFGVIRT(IDpxContainerDirectoryEntry, FreeMemory) + /* [local] */ void ( STDMETHODCALLTYPE *FreeMemory )( + IDpxContainerDirectoryEntry * This, + /* [in] */ void *Allocation); + + END_INTERFACE + } IDpxContainerDirectoryEntryVtbl; + + interface IDpxContainerDirectoryEntry + { + CONST_VTBL struct IDpxContainerDirectoryEntryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxContainerDirectoryEntry_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxContainerDirectoryEntry_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxContainerDirectoryEntry_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxContainerDirectoryEntry_GetName(This,pDirEntryName) \ + ( (This)->lpVtbl -> GetName(This,pDirEntryName) ) + +#define IDpxContainerDirectoryEntry_GetHash(This,pDirEntryHash) \ + ( (This)->lpVtbl -> GetHash(This,pDirEntryHash) ) + +#define IDpxContainerDirectoryEntry_GetSize(This,pDirEntrySize) \ + ( (This)->lpVtbl -> GetSize(This,pDirEntrySize) ) + +#define IDpxContainerDirectoryEntry_GetTime(This,pDirEntryTime) \ + ( (This)->lpVtbl -> GetTime(This,pDirEntryTime) ) + +#define IDpxContainerDirectoryEntry_FreeMemory(This,Allocation) \ + ( (This)->lpVtbl -> FreeMemory(This,Allocation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxContainerDirectoryEntry_INTERFACE_DEFINED__ */ + + +#ifndef __IDpxDownloadProvider_INTERFACE_DEFINED__ +#define __IDpxDownloadProvider_INTERFACE_DEFINED__ + +/* interface IDpxDownloadProvider */ +/* [nocode][unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxDownloadProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddc1b716-0e55-452f-838e-d1505b866e2b") + IDpxDownloadProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetProvideDataCallback( + /* [in] */ __RPC__in_opt IDpxDownloadCallback *pProvideData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProvideDataCallback( + /* [out] */ __RPC__deref_out_opt IDpxDownloadCallback **ppProvideData) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddContainer( + /* [in] */ __RPC__in LPCWSTR ContainerFilePath, + /* [in] */ UINT64 ContainerId) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRanges( + /* [in] */ UINT64 ContainerId, + /* [in] */ UINT RangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) DPX_BYTE_RANGE RangeList[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContainers( + /* [out] */ __RPC__out UINT *ContainerCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*ContainerCount) UINT64 **ppContainerIdArray) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContainerPath( + /* [in] */ UINT64 ContainerId, + /* [out] */ __RPC__deref_out_opt LPWSTR *ContainerPath) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRanges( + /* [in] */ UINT64 ContainerId, + /* [in] */ BOOL IncludeCompletedRanges, + /* [out] */ __RPC__out UINT *RangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*RangeCount) DPX_BYTE_RANGE **ppRangeArray) = 0; + + virtual HRESULT STDMETHODCALLTYPE Resume( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Suspend( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE WaitForCompletion( + /* [in] */ DWORD TimeoutMilliseconds) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProgress( + /* [out] */ __RPC__out DPX_PROGRESS_REMAIN *pDownloadProgress) = 0; + + virtual HRESULT STDMETHODCALLTYPE ClearRequest( void) = 0; + + virtual /* [local] */ void STDMETHODCALLTYPE FreeMemory( + /* [in] */ void *Allocation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxDownloadProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxDownloadProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxDownloadProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxDownloadProvider * This); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, SetProvideDataCallback) + HRESULT ( STDMETHODCALLTYPE *SetProvideDataCallback )( + __RPC__in IDpxDownloadProvider * This, + /* [in] */ __RPC__in_opt IDpxDownloadCallback *pProvideData); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, GetProvideDataCallback) + HRESULT ( STDMETHODCALLTYPE *GetProvideDataCallback )( + __RPC__in IDpxDownloadProvider * This, + /* [out] */ __RPC__deref_out_opt IDpxDownloadCallback **ppProvideData); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, AddContainer) + HRESULT ( STDMETHODCALLTYPE *AddContainer )( + __RPC__in IDpxDownloadProvider * This, + /* [in] */ __RPC__in LPCWSTR ContainerFilePath, + /* [in] */ UINT64 ContainerId); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, AddRanges) + HRESULT ( STDMETHODCALLTYPE *AddRanges )( + __RPC__in IDpxDownloadProvider * This, + /* [in] */ UINT64 ContainerId, + /* [in] */ UINT RangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) DPX_BYTE_RANGE RangeList[ ]); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, GetContainers) + HRESULT ( STDMETHODCALLTYPE *GetContainers )( + __RPC__in IDpxDownloadProvider * This, + /* [out] */ __RPC__out UINT *ContainerCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*ContainerCount) UINT64 **ppContainerIdArray); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, GetContainerPath) + HRESULT ( STDMETHODCALLTYPE *GetContainerPath )( + __RPC__in IDpxDownloadProvider * This, + /* [in] */ UINT64 ContainerId, + /* [out] */ __RPC__deref_out_opt LPWSTR *ContainerPath); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, GetRanges) + HRESULT ( STDMETHODCALLTYPE *GetRanges )( + __RPC__in IDpxDownloadProvider * This, + /* [in] */ UINT64 ContainerId, + /* [in] */ BOOL IncludeCompletedRanges, + /* [out] */ __RPC__out UINT *RangeCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*RangeCount) DPX_BYTE_RANGE **ppRangeArray); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, Resume) + HRESULT ( STDMETHODCALLTYPE *Resume )( + __RPC__in IDpxDownloadProvider * This); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, Suspend) + HRESULT ( STDMETHODCALLTYPE *Suspend )( + __RPC__in IDpxDownloadProvider * This); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, Cancel) + HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IDpxDownloadProvider * This); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, WaitForCompletion) + HRESULT ( STDMETHODCALLTYPE *WaitForCompletion )( + __RPC__in IDpxDownloadProvider * This, + /* [in] */ DWORD TimeoutMilliseconds); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, GetProgress) + HRESULT ( STDMETHODCALLTYPE *GetProgress )( + __RPC__in IDpxDownloadProvider * This, + /* [out] */ __RPC__out DPX_PROGRESS_REMAIN *pDownloadProgress); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, ClearRequest) + HRESULT ( STDMETHODCALLTYPE *ClearRequest )( + __RPC__in IDpxDownloadProvider * This); + + DECLSPEC_XFGVIRT(IDpxDownloadProvider, FreeMemory) + /* [local] */ void ( STDMETHODCALLTYPE *FreeMemory )( + IDpxDownloadProvider * This, + /* [in] */ void *Allocation); + + END_INTERFACE + } IDpxDownloadProviderVtbl; + + interface IDpxDownloadProvider + { + CONST_VTBL struct IDpxDownloadProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxDownloadProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxDownloadProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxDownloadProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxDownloadProvider_SetProvideDataCallback(This,pProvideData) \ + ( (This)->lpVtbl -> SetProvideDataCallback(This,pProvideData) ) + +#define IDpxDownloadProvider_GetProvideDataCallback(This,ppProvideData) \ + ( (This)->lpVtbl -> GetProvideDataCallback(This,ppProvideData) ) + +#define IDpxDownloadProvider_AddContainer(This,ContainerFilePath,ContainerId) \ + ( (This)->lpVtbl -> AddContainer(This,ContainerFilePath,ContainerId) ) + +#define IDpxDownloadProvider_AddRanges(This,ContainerId,RangeCount,RangeList) \ + ( (This)->lpVtbl -> AddRanges(This,ContainerId,RangeCount,RangeList) ) + +#define IDpxDownloadProvider_GetContainers(This,ContainerCount,ppContainerIdArray) \ + ( (This)->lpVtbl -> GetContainers(This,ContainerCount,ppContainerIdArray) ) + +#define IDpxDownloadProvider_GetContainerPath(This,ContainerId,ContainerPath) \ + ( (This)->lpVtbl -> GetContainerPath(This,ContainerId,ContainerPath) ) + +#define IDpxDownloadProvider_GetRanges(This,ContainerId,IncludeCompletedRanges,RangeCount,ppRangeArray) \ + ( (This)->lpVtbl -> GetRanges(This,ContainerId,IncludeCompletedRanges,RangeCount,ppRangeArray) ) + +#define IDpxDownloadProvider_Resume(This) \ + ( (This)->lpVtbl -> Resume(This) ) + +#define IDpxDownloadProvider_Suspend(This) \ + ( (This)->lpVtbl -> Suspend(This) ) + +#define IDpxDownloadProvider_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IDpxDownloadProvider_WaitForCompletion(This,TimeoutMilliseconds) \ + ( (This)->lpVtbl -> WaitForCompletion(This,TimeoutMilliseconds) ) + +#define IDpxDownloadProvider_GetProgress(This,pDownloadProgress) \ + ( (This)->lpVtbl -> GetProgress(This,pDownloadProgress) ) + +#define IDpxDownloadProvider_ClearRequest(This) \ + ( (This)->lpVtbl -> ClearRequest(This) ) + +#define IDpxDownloadProvider_FreeMemory(This,Allocation) \ + ( (This)->lpVtbl -> FreeMemory(This,Allocation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxDownloadProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IDpxDownloadCallback_INTERFACE_DEFINED__ +#define __IDpxDownloadCallback_INTERFACE_DEFINED__ + +/* interface IDpxDownloadCallback */ +/* [nocode][unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxDownloadCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddc1b717-0e55-452f-838e-d1505b866e2b") + IDpxDownloadCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ProvideRequestedData( + /* [in] */ UINT64 ContainerId, + /* [in] */ UINT RangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) DPX_BYTE_RANGE RangeList[ ], + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) const BYTE *RangeData[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProvideRequestedDataByFile( + /* [in] */ UINT64 ContainerId, + /* [in] */ __RPC__in LPCWSTR ResponseFilePath, + /* [in] */ UINT RangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) DPX_BYTE_RANGE RangeArray[ ], + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) UINT64 OffsetInResponseFile[ ]) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProvideRequestedDataByPackedRangeFile( + /* [in] */ UINT64 ContainerId, + /* [in] */ __RPC__in LPCWSTR ResponseFilePath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxDownloadCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxDownloadCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxDownloadCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxDownloadCallback * This); + + DECLSPEC_XFGVIRT(IDpxDownloadCallback, ProvideRequestedData) + HRESULT ( STDMETHODCALLTYPE *ProvideRequestedData )( + __RPC__in IDpxDownloadCallback * This, + /* [in] */ UINT64 ContainerId, + /* [in] */ UINT RangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) DPX_BYTE_RANGE RangeList[ ], + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) const BYTE *RangeData[ ]); + + DECLSPEC_XFGVIRT(IDpxDownloadCallback, ProvideRequestedDataByFile) + HRESULT ( STDMETHODCALLTYPE *ProvideRequestedDataByFile )( + __RPC__in IDpxDownloadCallback * This, + /* [in] */ UINT64 ContainerId, + /* [in] */ __RPC__in LPCWSTR ResponseFilePath, + /* [in] */ UINT RangeCount, + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) DPX_BYTE_RANGE RangeArray[ ], + /* [size_is][in] */ __RPC__in_ecount_full(RangeCount) UINT64 OffsetInResponseFile[ ]); + + DECLSPEC_XFGVIRT(IDpxDownloadCallback, ProvideRequestedDataByPackedRangeFile) + HRESULT ( STDMETHODCALLTYPE *ProvideRequestedDataByPackedRangeFile )( + __RPC__in IDpxDownloadCallback * This, + /* [in] */ UINT64 ContainerId, + /* [in] */ __RPC__in LPCWSTR ResponseFilePath); + + END_INTERFACE + } IDpxDownloadCallbackVtbl; + + interface IDpxDownloadCallback + { + CONST_VTBL struct IDpxDownloadCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxDownloadCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxDownloadCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxDownloadCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxDownloadCallback_ProvideRequestedData(This,ContainerId,RangeCount,RangeList,RangeData) \ + ( (This)->lpVtbl -> ProvideRequestedData(This,ContainerId,RangeCount,RangeList,RangeData) ) + +#define IDpxDownloadCallback_ProvideRequestedDataByFile(This,ContainerId,ResponseFilePath,RangeCount,RangeArray,OffsetInResponseFile) \ + ( (This)->lpVtbl -> ProvideRequestedDataByFile(This,ContainerId,ResponseFilePath,RangeCount,RangeArray,OffsetInResponseFile) ) + +#define IDpxDownloadCallback_ProvideRequestedDataByPackedRangeFile(This,ContainerId,ResponseFilePath) \ + ( (This)->lpVtbl -> ProvideRequestedDataByPackedRangeFile(This,ContainerId,ResponseFilePath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxDownloadCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDpxContainers_INTERFACE_DEFINED__ +#define __IEnumDpxContainers_INTERFACE_DEFINED__ + +/* interface IEnumDpxContainers */ +/* [nocode][unique][object][uuid] */ + + +EXTERN_C const IID IID_IEnumDpxContainers; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddc1b722-0e55-452f-838e-d1505b866e2b") + IEnumDpxContainers : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ UINT ItemCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ItemCount, *pFetchedCount) IDpxContainer **ppContainers, + /* [out] */ __RPC__out UINT *pFetchedCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ UINT ItemCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDpxContainers **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out UINT *pItemCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDpxContainersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDpxContainers * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDpxContainers * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDpxContainers * This); + + DECLSPEC_XFGVIRT(IEnumDpxContainers, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumDpxContainers * This, + /* [in] */ UINT ItemCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ItemCount, *pFetchedCount) IDpxContainer **ppContainers, + /* [out] */ __RPC__out UINT *pFetchedCount); + + DECLSPEC_XFGVIRT(IEnumDpxContainers, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDpxContainers * This, + /* [in] */ UINT ItemCount); + + DECLSPEC_XFGVIRT(IEnumDpxContainers, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDpxContainers * This); + + DECLSPEC_XFGVIRT(IEnumDpxContainers, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDpxContainers * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxContainers **ppEnum); + + DECLSPEC_XFGVIRT(IEnumDpxContainers, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IEnumDpxContainers * This, + /* [out] */ __RPC__out UINT *pItemCount); + + END_INTERFACE + } IEnumDpxContainersVtbl; + + interface IEnumDpxContainers + { + CONST_VTBL struct IEnumDpxContainersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDpxContainers_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDpxContainers_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDpxContainers_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDpxContainers_Next(This,ItemCount,ppContainers,pFetchedCount) \ + ( (This)->lpVtbl -> Next(This,ItemCount,ppContainers,pFetchedCount) ) + +#define IEnumDpxContainers_Skip(This,ItemCount) \ + ( (This)->lpVtbl -> Skip(This,ItemCount) ) + +#define IEnumDpxContainers_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDpxContainers_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#define IEnumDpxContainers_GetCount(This,pItemCount) \ + ( (This)->lpVtbl -> GetCount(This,pItemCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumDpxContainers_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDpxFiles_INTERFACE_DEFINED__ +#define __IEnumDpxFiles_INTERFACE_DEFINED__ + +/* interface IEnumDpxFiles */ +/* [nocode][unique][object][uuid] */ + + +EXTERN_C const IID IID_IEnumDpxFiles; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddc1b723-0e55-452f-838e-d1505b866e2b") + IEnumDpxFiles : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ UINT ItemCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ItemCount, *pFetchedCount) IDpxFile **ppFiles, + /* [out] */ __RPC__out UINT *pFetchedCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ UINT ItemCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDpxFiles **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out UINT *pItemCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDpxFilesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDpxFiles * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDpxFiles * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDpxFiles * This); + + DECLSPEC_XFGVIRT(IEnumDpxFiles, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumDpxFiles * This, + /* [in] */ UINT ItemCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ItemCount, *pFetchedCount) IDpxFile **ppFiles, + /* [out] */ __RPC__out UINT *pFetchedCount); + + DECLSPEC_XFGVIRT(IEnumDpxFiles, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDpxFiles * This, + /* [in] */ UINT ItemCount); + + DECLSPEC_XFGVIRT(IEnumDpxFiles, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDpxFiles * This); + + DECLSPEC_XFGVIRT(IEnumDpxFiles, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDpxFiles * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxFiles **ppEnum); + + DECLSPEC_XFGVIRT(IEnumDpxFiles, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IEnumDpxFiles * This, + /* [out] */ __RPC__out UINT *pItemCount); + + END_INTERFACE + } IEnumDpxFilesVtbl; + + interface IEnumDpxFiles + { + CONST_VTBL struct IEnumDpxFilesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDpxFiles_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDpxFiles_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDpxFiles_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDpxFiles_Next(This,ItemCount,ppFiles,pFetchedCount) \ + ( (This)->lpVtbl -> Next(This,ItemCount,ppFiles,pFetchedCount) ) + +#define IEnumDpxFiles_Skip(This,ItemCount) \ + ( (This)->lpVtbl -> Skip(This,ItemCount) ) + +#define IEnumDpxFiles_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDpxFiles_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#define IEnumDpxFiles_GetCount(This,pItemCount) \ + ( (This)->lpVtbl -> GetCount(This,pItemCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumDpxFiles_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDpxContainerDirectoryEntries_INTERFACE_DEFINED__ +#define __IEnumDpxContainerDirectoryEntries_INTERFACE_DEFINED__ + +/* interface IEnumDpxContainerDirectoryEntries */ +/* [nocode][unique][object][uuid] */ + + +EXTERN_C const IID IID_IEnumDpxContainerDirectoryEntries; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddc1b725-0e55-452f-838e-d1505b866e2b") + IEnumDpxContainerDirectoryEntries : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ UINT ItemCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ItemCount, *pFetchedCount) IDpxContainerDirectoryEntry **ppDirectoryEntries, + /* [out] */ __RPC__out UINT *pFetchedCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ UINT ItemCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDpxContainerDirectoryEntries **ppEnum) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out UINT *pItemCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDpxContainerDirectoryEntriesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDpxContainerDirectoryEntries * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDpxContainerDirectoryEntries * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDpxContainerDirectoryEntries * This); + + DECLSPEC_XFGVIRT(IEnumDpxContainerDirectoryEntries, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumDpxContainerDirectoryEntries * This, + /* [in] */ UINT ItemCount, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(ItemCount, *pFetchedCount) IDpxContainerDirectoryEntry **ppDirectoryEntries, + /* [out] */ __RPC__out UINT *pFetchedCount); + + DECLSPEC_XFGVIRT(IEnumDpxContainerDirectoryEntries, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDpxContainerDirectoryEntries * This, + /* [in] */ UINT ItemCount); + + DECLSPEC_XFGVIRT(IEnumDpxContainerDirectoryEntries, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDpxContainerDirectoryEntries * This); + + DECLSPEC_XFGVIRT(IEnumDpxContainerDirectoryEntries, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDpxContainerDirectoryEntries * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxContainerDirectoryEntries **ppEnum); + + DECLSPEC_XFGVIRT(IEnumDpxContainerDirectoryEntries, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IEnumDpxContainerDirectoryEntries * This, + /* [out] */ __RPC__out UINT *pItemCount); + + END_INTERFACE + } IEnumDpxContainerDirectoryEntriesVtbl; + + interface IEnumDpxContainerDirectoryEntries + { + CONST_VTBL struct IEnumDpxContainerDirectoryEntriesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDpxContainerDirectoryEntries_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDpxContainerDirectoryEntries_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDpxContainerDirectoryEntries_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDpxContainerDirectoryEntries_Next(This,ItemCount,ppDirectoryEntries,pFetchedCount) \ + ( (This)->lpVtbl -> Next(This,ItemCount,ppDirectoryEntries,pFetchedCount) ) + +#define IEnumDpxContainerDirectoryEntries_Skip(This,ItemCount) \ + ( (This)->lpVtbl -> Skip(This,ItemCount) ) + +#define IEnumDpxContainerDirectoryEntries_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDpxContainerDirectoryEntries_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#define IEnumDpxContainerDirectoryEntries_GetCount(This,pItemCount) \ + ( (This)->lpVtbl -> GetCount(This,pItemCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumDpxContainerDirectoryEntries_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dpx1_0000_0012 */ +/* [local] */ + +typedef struct tagDpxContainerDecryptionData + { + ULONG cbDecryptionData; + /* [size_is] */ BYTE *pDecryptionData; + } DpxContainerDecryptionData; + +typedef +enum tagDPX_CONTAINER_ENCRYPTION_ENUM + { + DPX_CONTAINER_ENCRYPTION_NONE = 0, + DPX_CONTAINER_ENCRYPTION_ITERATIVE = 1, + DPX_CONTAINER_ENCRYPTION_MAX_ENUM = DPX_CONTAINER_ENCRYPTION_ITERATIVE + } DPX_CONTAINER_ENCRYPTION_ENUM; + + + +extern RPC_IF_HANDLE __MIDL_itf_dpx1_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dpx1_0000_0012_v0_0_s_ifspec; + +#ifndef __IDpxEncryptedContainer_INTERFACE_DEFINED__ +#define __IDpxEncryptedContainer_INTERFACE_DEFINED__ + +/* interface IDpxEncryptedContainer */ +/* [unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxEncryptedContainer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ddc1b726-0e55-452f-838e-d1505b866e2b") + IDpxEncryptedContainer : public IDpxContainer + { + public: + virtual HRESULT STDMETHODCALLTYPE SetContainerDecryption( + /* [in] */ UINT DecryptionDataCount, + /* [size_is][in] */ __RPC__in_ecount_full(DecryptionDataCount) DpxContainerDecryptionData DecryptionData[ ], + /* [in] */ DPX_CONTAINER_ENCRYPTION_ENUM EncryptionType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxEncryptedContainerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxEncryptedContainer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxEncryptedContainer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxEncryptedContainer * This); + + DECLSPEC_XFGVIRT(IDpxContainer, SetContainerPath) + HRESULT ( STDMETHODCALLTYPE *SetContainerPath )( + __RPC__in IDpxEncryptedContainer * This, + /* [in] */ __RPC__in LPCWSTR ContainerPath); + + DECLSPEC_XFGVIRT(IDpxContainer, GetContainerPath) + HRESULT ( STDMETHODCALLTYPE *GetContainerPath )( + __RPC__in IDpxEncryptedContainer * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pContainerPath); + + DECLSPEC_XFGVIRT(IDpxContainer, AddFileToExtract) + HRESULT ( STDMETHODCALLTYPE *AddFileToExtract )( + __RPC__in IDpxEncryptedContainer * This, + /* [in] */ __RPC__in LPCWSTR SourceFileName, + /* [unique][in] */ __RPC__in_opt LPCWSTR TargetFileName, + /* [unique][in] */ __RPC__in_opt DPX_HASH *TargetFileHash); + + DECLSPEC_XFGVIRT(IDpxContainer, AddFileToExtract2) + HRESULT ( STDMETHODCALLTYPE *AddFileToExtract2 )( + __RPC__in IDpxEncryptedContainer * This, + /* [in] */ __RPC__in LPCWSTR SourceFileName, + /* [unique][in] */ __RPC__in_opt LPCWSTR TargetFileName, + /* [out] */ __RPC__deref_out_opt IDpxFile **ppFile); + + DECLSPEC_XFGVIRT(IDpxContainer, ExtractAllFiles) + HRESULT ( STDMETHODCALLTYPE *ExtractAllFiles )( + __RPC__in IDpxEncryptedContainer * This); + + DECLSPEC_XFGVIRT(IDpxContainer, EnumFilesToExtract) + HRESULT ( STDMETHODCALLTYPE *EnumFilesToExtract )( + __RPC__in IDpxEncryptedContainer * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxFiles **ppEnumFiles); + + DECLSPEC_XFGVIRT(IDpxContainer, SetExpectedContainerIndexHash) + HRESULT ( STDMETHODCALLTYPE *SetExpectedContainerIndexHash )( + __RPC__in IDpxEncryptedContainer * This, + /* [in] */ __RPC__in DPX_HASH *pExpectedHash); + + DECLSPEC_XFGVIRT(IDpxContainer, GetExpectedContainerIndexHash) + HRESULT ( STDMETHODCALLTYPE *GetExpectedContainerIndexHash )( + __RPC__in IDpxEncryptedContainer * This, + /* [out] */ __RPC__deref_out_opt DPX_HASH **ppExpectedHash); + + DECLSPEC_XFGVIRT(IDpxContainer, ProvideContainerIndex) + HRESULT ( STDMETHODCALLTYPE *ProvideContainerIndex )( + __RPC__in IDpxEncryptedContainer * This, + /* [in] */ UINT IndexSize, + /* [size_is][in] */ __RPC__in_ecount_full(IndexSize) BYTE IndexData[ ]); + + DECLSPEC_XFGVIRT(IDpxContainer, ProvideContainerIndexByFile) + HRESULT ( STDMETHODCALLTYPE *ProvideContainerIndexByFile )( + __RPC__in IDpxEncryptedContainer * This, + /* [in] */ __RPC__in LPCWSTR IndexFileName); + + DECLSPEC_XFGVIRT(IDpxContainer, EnumDirectoryEntries) + HRESULT ( STDMETHODCALLTYPE *EnumDirectoryEntries )( + __RPC__in IDpxEncryptedContainer * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxContainerDirectoryEntries **ppEnumEntries); + + DECLSPEC_XFGVIRT(IDpxContainer, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IDpxEncryptedContainer * This); + + DECLSPEC_XFGVIRT(IDpxContainer, SetUserValue) + HRESULT ( STDMETHODCALLTYPE *SetUserValue )( + __RPC__in IDpxEncryptedContainer * This, + /* [in] */ UINT64 UserValue); + + DECLSPEC_XFGVIRT(IDpxContainer, GetUserValue) + HRESULT ( STDMETHODCALLTYPE *GetUserValue )( + __RPC__in IDpxEncryptedContainer * This, + /* [out] */ __RPC__out UINT64 *pUserValue); + + DECLSPEC_XFGVIRT(IDpxContainer, FreeMemory) + /* [local] */ void ( STDMETHODCALLTYPE *FreeMemory )( + IDpxEncryptedContainer * This, + /* [in] */ void *Allocation); + + DECLSPEC_XFGVIRT(IDpxEncryptedContainer, SetContainerDecryption) + HRESULT ( STDMETHODCALLTYPE *SetContainerDecryption )( + __RPC__in IDpxEncryptedContainer * This, + /* [in] */ UINT DecryptionDataCount, + /* [size_is][in] */ __RPC__in_ecount_full(DecryptionDataCount) DpxContainerDecryptionData DecryptionData[ ], + /* [in] */ DPX_CONTAINER_ENCRYPTION_ENUM EncryptionType); + + END_INTERFACE + } IDpxEncryptedContainerVtbl; + + interface IDpxEncryptedContainer + { + CONST_VTBL struct IDpxEncryptedContainerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxEncryptedContainer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxEncryptedContainer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxEncryptedContainer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxEncryptedContainer_SetContainerPath(This,ContainerPath) \ + ( (This)->lpVtbl -> SetContainerPath(This,ContainerPath) ) + +#define IDpxEncryptedContainer_GetContainerPath(This,pContainerPath) \ + ( (This)->lpVtbl -> GetContainerPath(This,pContainerPath) ) + +#define IDpxEncryptedContainer_AddFileToExtract(This,SourceFileName,TargetFileName,TargetFileHash) \ + ( (This)->lpVtbl -> AddFileToExtract(This,SourceFileName,TargetFileName,TargetFileHash) ) + +#define IDpxEncryptedContainer_AddFileToExtract2(This,SourceFileName,TargetFileName,ppFile) \ + ( (This)->lpVtbl -> AddFileToExtract2(This,SourceFileName,TargetFileName,ppFile) ) + +#define IDpxEncryptedContainer_ExtractAllFiles(This) \ + ( (This)->lpVtbl -> ExtractAllFiles(This) ) + +#define IDpxEncryptedContainer_EnumFilesToExtract(This,ppEnumFiles) \ + ( (This)->lpVtbl -> EnumFilesToExtract(This,ppEnumFiles) ) + +#define IDpxEncryptedContainer_SetExpectedContainerIndexHash(This,pExpectedHash) \ + ( (This)->lpVtbl -> SetExpectedContainerIndexHash(This,pExpectedHash) ) + +#define IDpxEncryptedContainer_GetExpectedContainerIndexHash(This,ppExpectedHash) \ + ( (This)->lpVtbl -> GetExpectedContainerIndexHash(This,ppExpectedHash) ) + +#define IDpxEncryptedContainer_ProvideContainerIndex(This,IndexSize,IndexData) \ + ( (This)->lpVtbl -> ProvideContainerIndex(This,IndexSize,IndexData) ) + +#define IDpxEncryptedContainer_ProvideContainerIndexByFile(This,IndexFileName) \ + ( (This)->lpVtbl -> ProvideContainerIndexByFile(This,IndexFileName) ) + +#define IDpxEncryptedContainer_EnumDirectoryEntries(This,ppEnumEntries) \ + ( (This)->lpVtbl -> EnumDirectoryEntries(This,ppEnumEntries) ) + +#define IDpxEncryptedContainer_Remove(This) \ + ( (This)->lpVtbl -> Remove(This) ) + +#define IDpxEncryptedContainer_SetUserValue(This,UserValue) \ + ( (This)->lpVtbl -> SetUserValue(This,UserValue) ) + +#define IDpxEncryptedContainer_GetUserValue(This,pUserValue) \ + ( (This)->lpVtbl -> GetUserValue(This,pUserValue) ) + +#define IDpxEncryptedContainer_FreeMemory(This,Allocation) \ + ( (This)->lpVtbl -> FreeMemory(This,Allocation) ) + + +#define IDpxEncryptedContainer_SetContainerDecryption(This,DecryptionDataCount,DecryptionData,EncryptionType) \ + ( (This)->lpVtbl -> SetContainerDecryption(This,DecryptionDataCount,DecryptionData,EncryptionType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxEncryptedContainer_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dpx1_0000_0013 */ +/* [local] */ + +typedef struct tagDpxPredecessorFilePathInfo + { + LPCWSTR PredecessorInstallPath; + LPCWSTR PredecessorCabPath; + LPCWSTR CabPath; + } PredecessorFilePathInfo; + + + +extern RPC_IF_HANDLE __MIDL_itf_dpx1_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dpx1_0000_0013_v0_0_s_ifspec; + +#ifndef __IDpxContainer2_INTERFACE_DEFINED__ +#define __IDpxContainer2_INTERFACE_DEFINED__ + +/* interface IDpxContainer2 */ +/* [unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxContainer2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c8e1e004-3a8d-45c7-a6aa-8c8f2f2ed1e1") + IDpxContainer2 : public IDpxEncryptedContainer + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPredecessorContainer( + /* [in] */ __RPC__in LPCWSTR ContainerPath, + /* [in] */ UINT PredecessorFilePathsCount, + /* [size_is][in] */ __RPC__in_ecount_full(PredecessorFilePathsCount) PredecessorFilePathInfo PredecessorFilePaths[ ], + /* [out] */ __RPC__deref_out_opt IDpxContainer2 **ppContainer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxContainer2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxContainer2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxContainer2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxContainer2 * This); + + DECLSPEC_XFGVIRT(IDpxContainer, SetContainerPath) + HRESULT ( STDMETHODCALLTYPE *SetContainerPath )( + __RPC__in IDpxContainer2 * This, + /* [in] */ __RPC__in LPCWSTR ContainerPath); + + DECLSPEC_XFGVIRT(IDpxContainer, GetContainerPath) + HRESULT ( STDMETHODCALLTYPE *GetContainerPath )( + __RPC__in IDpxContainer2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pContainerPath); + + DECLSPEC_XFGVIRT(IDpxContainer, AddFileToExtract) + HRESULT ( STDMETHODCALLTYPE *AddFileToExtract )( + __RPC__in IDpxContainer2 * This, + /* [in] */ __RPC__in LPCWSTR SourceFileName, + /* [unique][in] */ __RPC__in_opt LPCWSTR TargetFileName, + /* [unique][in] */ __RPC__in_opt DPX_HASH *TargetFileHash); + + DECLSPEC_XFGVIRT(IDpxContainer, AddFileToExtract2) + HRESULT ( STDMETHODCALLTYPE *AddFileToExtract2 )( + __RPC__in IDpxContainer2 * This, + /* [in] */ __RPC__in LPCWSTR SourceFileName, + /* [unique][in] */ __RPC__in_opt LPCWSTR TargetFileName, + /* [out] */ __RPC__deref_out_opt IDpxFile **ppFile); + + DECLSPEC_XFGVIRT(IDpxContainer, ExtractAllFiles) + HRESULT ( STDMETHODCALLTYPE *ExtractAllFiles )( + __RPC__in IDpxContainer2 * This); + + DECLSPEC_XFGVIRT(IDpxContainer, EnumFilesToExtract) + HRESULT ( STDMETHODCALLTYPE *EnumFilesToExtract )( + __RPC__in IDpxContainer2 * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxFiles **ppEnumFiles); + + DECLSPEC_XFGVIRT(IDpxContainer, SetExpectedContainerIndexHash) + HRESULT ( STDMETHODCALLTYPE *SetExpectedContainerIndexHash )( + __RPC__in IDpxContainer2 * This, + /* [in] */ __RPC__in DPX_HASH *pExpectedHash); + + DECLSPEC_XFGVIRT(IDpxContainer, GetExpectedContainerIndexHash) + HRESULT ( STDMETHODCALLTYPE *GetExpectedContainerIndexHash )( + __RPC__in IDpxContainer2 * This, + /* [out] */ __RPC__deref_out_opt DPX_HASH **ppExpectedHash); + + DECLSPEC_XFGVIRT(IDpxContainer, ProvideContainerIndex) + HRESULT ( STDMETHODCALLTYPE *ProvideContainerIndex )( + __RPC__in IDpxContainer2 * This, + /* [in] */ UINT IndexSize, + /* [size_is][in] */ __RPC__in_ecount_full(IndexSize) BYTE IndexData[ ]); + + DECLSPEC_XFGVIRT(IDpxContainer, ProvideContainerIndexByFile) + HRESULT ( STDMETHODCALLTYPE *ProvideContainerIndexByFile )( + __RPC__in IDpxContainer2 * This, + /* [in] */ __RPC__in LPCWSTR IndexFileName); + + DECLSPEC_XFGVIRT(IDpxContainer, EnumDirectoryEntries) + HRESULT ( STDMETHODCALLTYPE *EnumDirectoryEntries )( + __RPC__in IDpxContainer2 * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxContainerDirectoryEntries **ppEnumEntries); + + DECLSPEC_XFGVIRT(IDpxContainer, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IDpxContainer2 * This); + + DECLSPEC_XFGVIRT(IDpxContainer, SetUserValue) + HRESULT ( STDMETHODCALLTYPE *SetUserValue )( + __RPC__in IDpxContainer2 * This, + /* [in] */ UINT64 UserValue); + + DECLSPEC_XFGVIRT(IDpxContainer, GetUserValue) + HRESULT ( STDMETHODCALLTYPE *GetUserValue )( + __RPC__in IDpxContainer2 * This, + /* [out] */ __RPC__out UINT64 *pUserValue); + + DECLSPEC_XFGVIRT(IDpxContainer, FreeMemory) + /* [local] */ void ( STDMETHODCALLTYPE *FreeMemory )( + IDpxContainer2 * This, + /* [in] */ void *Allocation); + + DECLSPEC_XFGVIRT(IDpxEncryptedContainer, SetContainerDecryption) + HRESULT ( STDMETHODCALLTYPE *SetContainerDecryption )( + __RPC__in IDpxContainer2 * This, + /* [in] */ UINT DecryptionDataCount, + /* [size_is][in] */ __RPC__in_ecount_full(DecryptionDataCount) DpxContainerDecryptionData DecryptionData[ ], + /* [in] */ DPX_CONTAINER_ENCRYPTION_ENUM EncryptionType); + + DECLSPEC_XFGVIRT(IDpxContainer2, AddPredecessorContainer) + HRESULT ( STDMETHODCALLTYPE *AddPredecessorContainer )( + __RPC__in IDpxContainer2 * This, + /* [in] */ __RPC__in LPCWSTR ContainerPath, + /* [in] */ UINT PredecessorFilePathsCount, + /* [size_is][in] */ __RPC__in_ecount_full(PredecessorFilePathsCount) PredecessorFilePathInfo PredecessorFilePaths[ ], + /* [out] */ __RPC__deref_out_opt IDpxContainer2 **ppContainer); + + END_INTERFACE + } IDpxContainer2Vtbl; + + interface IDpxContainer2 + { + CONST_VTBL struct IDpxContainer2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxContainer2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxContainer2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxContainer2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxContainer2_SetContainerPath(This,ContainerPath) \ + ( (This)->lpVtbl -> SetContainerPath(This,ContainerPath) ) + +#define IDpxContainer2_GetContainerPath(This,pContainerPath) \ + ( (This)->lpVtbl -> GetContainerPath(This,pContainerPath) ) + +#define IDpxContainer2_AddFileToExtract(This,SourceFileName,TargetFileName,TargetFileHash) \ + ( (This)->lpVtbl -> AddFileToExtract(This,SourceFileName,TargetFileName,TargetFileHash) ) + +#define IDpxContainer2_AddFileToExtract2(This,SourceFileName,TargetFileName,ppFile) \ + ( (This)->lpVtbl -> AddFileToExtract2(This,SourceFileName,TargetFileName,ppFile) ) + +#define IDpxContainer2_ExtractAllFiles(This) \ + ( (This)->lpVtbl -> ExtractAllFiles(This) ) + +#define IDpxContainer2_EnumFilesToExtract(This,ppEnumFiles) \ + ( (This)->lpVtbl -> EnumFilesToExtract(This,ppEnumFiles) ) + +#define IDpxContainer2_SetExpectedContainerIndexHash(This,pExpectedHash) \ + ( (This)->lpVtbl -> SetExpectedContainerIndexHash(This,pExpectedHash) ) + +#define IDpxContainer2_GetExpectedContainerIndexHash(This,ppExpectedHash) \ + ( (This)->lpVtbl -> GetExpectedContainerIndexHash(This,ppExpectedHash) ) + +#define IDpxContainer2_ProvideContainerIndex(This,IndexSize,IndexData) \ + ( (This)->lpVtbl -> ProvideContainerIndex(This,IndexSize,IndexData) ) + +#define IDpxContainer2_ProvideContainerIndexByFile(This,IndexFileName) \ + ( (This)->lpVtbl -> ProvideContainerIndexByFile(This,IndexFileName) ) + +#define IDpxContainer2_EnumDirectoryEntries(This,ppEnumEntries) \ + ( (This)->lpVtbl -> EnumDirectoryEntries(This,ppEnumEntries) ) + +#define IDpxContainer2_Remove(This) \ + ( (This)->lpVtbl -> Remove(This) ) + +#define IDpxContainer2_SetUserValue(This,UserValue) \ + ( (This)->lpVtbl -> SetUserValue(This,UserValue) ) + +#define IDpxContainer2_GetUserValue(This,pUserValue) \ + ( (This)->lpVtbl -> GetUserValue(This,pUserValue) ) + +#define IDpxContainer2_FreeMemory(This,Allocation) \ + ( (This)->lpVtbl -> FreeMemory(This,Allocation) ) + + +#define IDpxContainer2_SetContainerDecryption(This,DecryptionDataCount,DecryptionData,EncryptionType) \ + ( (This)->lpVtbl -> SetContainerDecryption(This,DecryptionDataCount,DecryptionData,EncryptionType) ) + + +#define IDpxContainer2_AddPredecessorContainer(This,ContainerPath,PredecessorFilePathsCount,PredecessorFilePaths,ppContainer) \ + ( (This)->lpVtbl -> AddPredecessorContainer(This,ContainerPath,PredecessorFilePathsCount,PredecessorFilePaths,ppContainer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxContainer2_INTERFACE_DEFINED__ */ + + +#ifndef __IDpxContainer3_INTERFACE_DEFINED__ +#define __IDpxContainer3_INTERFACE_DEFINED__ + +/* interface IDpxContainer3 */ +/* [unique][object][uuid] */ + + +EXTERN_C const IID IID_IDpxContainer3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("582f768c-fe7d-4bf5-b0b8-3ab01d53b0d0") + IDpxContainer3 : public IDpxContainer2 + { + public: + virtual HRESULT STDMETHODCALLTYPE AddPeerContainer( + /* [in] */ __RPC__in LPCWSTR ContainerPath, + /* [out] */ __RPC__deref_out_opt IDpxContainer3 **ppContainer) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsPeer( + /* [in] */ __RPC__in_opt IDpxContainer3 *ppOtherContainer, + /* [out] */ __RPC__out BOOL *pIsPeer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPeerGroupId( + /* [out] */ __RPC__out UINT64 *pnPeerGroupId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDpxContainer3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDpxContainer3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDpxContainer3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDpxContainer3 * This); + + DECLSPEC_XFGVIRT(IDpxContainer, SetContainerPath) + HRESULT ( STDMETHODCALLTYPE *SetContainerPath )( + __RPC__in IDpxContainer3 * This, + /* [in] */ __RPC__in LPCWSTR ContainerPath); + + DECLSPEC_XFGVIRT(IDpxContainer, GetContainerPath) + HRESULT ( STDMETHODCALLTYPE *GetContainerPath )( + __RPC__in IDpxContainer3 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *pContainerPath); + + DECLSPEC_XFGVIRT(IDpxContainer, AddFileToExtract) + HRESULT ( STDMETHODCALLTYPE *AddFileToExtract )( + __RPC__in IDpxContainer3 * This, + /* [in] */ __RPC__in LPCWSTR SourceFileName, + /* [unique][in] */ __RPC__in_opt LPCWSTR TargetFileName, + /* [unique][in] */ __RPC__in_opt DPX_HASH *TargetFileHash); + + DECLSPEC_XFGVIRT(IDpxContainer, AddFileToExtract2) + HRESULT ( STDMETHODCALLTYPE *AddFileToExtract2 )( + __RPC__in IDpxContainer3 * This, + /* [in] */ __RPC__in LPCWSTR SourceFileName, + /* [unique][in] */ __RPC__in_opt LPCWSTR TargetFileName, + /* [out] */ __RPC__deref_out_opt IDpxFile **ppFile); + + DECLSPEC_XFGVIRT(IDpxContainer, ExtractAllFiles) + HRESULT ( STDMETHODCALLTYPE *ExtractAllFiles )( + __RPC__in IDpxContainer3 * This); + + DECLSPEC_XFGVIRT(IDpxContainer, EnumFilesToExtract) + HRESULT ( STDMETHODCALLTYPE *EnumFilesToExtract )( + __RPC__in IDpxContainer3 * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxFiles **ppEnumFiles); + + DECLSPEC_XFGVIRT(IDpxContainer, SetExpectedContainerIndexHash) + HRESULT ( STDMETHODCALLTYPE *SetExpectedContainerIndexHash )( + __RPC__in IDpxContainer3 * This, + /* [in] */ __RPC__in DPX_HASH *pExpectedHash); + + DECLSPEC_XFGVIRT(IDpxContainer, GetExpectedContainerIndexHash) + HRESULT ( STDMETHODCALLTYPE *GetExpectedContainerIndexHash )( + __RPC__in IDpxContainer3 * This, + /* [out] */ __RPC__deref_out_opt DPX_HASH **ppExpectedHash); + + DECLSPEC_XFGVIRT(IDpxContainer, ProvideContainerIndex) + HRESULT ( STDMETHODCALLTYPE *ProvideContainerIndex )( + __RPC__in IDpxContainer3 * This, + /* [in] */ UINT IndexSize, + /* [size_is][in] */ __RPC__in_ecount_full(IndexSize) BYTE IndexData[ ]); + + DECLSPEC_XFGVIRT(IDpxContainer, ProvideContainerIndexByFile) + HRESULT ( STDMETHODCALLTYPE *ProvideContainerIndexByFile )( + __RPC__in IDpxContainer3 * This, + /* [in] */ __RPC__in LPCWSTR IndexFileName); + + DECLSPEC_XFGVIRT(IDpxContainer, EnumDirectoryEntries) + HRESULT ( STDMETHODCALLTYPE *EnumDirectoryEntries )( + __RPC__in IDpxContainer3 * This, + /* [out] */ __RPC__deref_out_opt IEnumDpxContainerDirectoryEntries **ppEnumEntries); + + DECLSPEC_XFGVIRT(IDpxContainer, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IDpxContainer3 * This); + + DECLSPEC_XFGVIRT(IDpxContainer, SetUserValue) + HRESULT ( STDMETHODCALLTYPE *SetUserValue )( + __RPC__in IDpxContainer3 * This, + /* [in] */ UINT64 UserValue); + + DECLSPEC_XFGVIRT(IDpxContainer, GetUserValue) + HRESULT ( STDMETHODCALLTYPE *GetUserValue )( + __RPC__in IDpxContainer3 * This, + /* [out] */ __RPC__out UINT64 *pUserValue); + + DECLSPEC_XFGVIRT(IDpxContainer, FreeMemory) + /* [local] */ void ( STDMETHODCALLTYPE *FreeMemory )( + IDpxContainer3 * This, + /* [in] */ void *Allocation); + + DECLSPEC_XFGVIRT(IDpxEncryptedContainer, SetContainerDecryption) + HRESULT ( STDMETHODCALLTYPE *SetContainerDecryption )( + __RPC__in IDpxContainer3 * This, + /* [in] */ UINT DecryptionDataCount, + /* [size_is][in] */ __RPC__in_ecount_full(DecryptionDataCount) DpxContainerDecryptionData DecryptionData[ ], + /* [in] */ DPX_CONTAINER_ENCRYPTION_ENUM EncryptionType); + + DECLSPEC_XFGVIRT(IDpxContainer2, AddPredecessorContainer) + HRESULT ( STDMETHODCALLTYPE *AddPredecessorContainer )( + __RPC__in IDpxContainer3 * This, + /* [in] */ __RPC__in LPCWSTR ContainerPath, + /* [in] */ UINT PredecessorFilePathsCount, + /* [size_is][in] */ __RPC__in_ecount_full(PredecessorFilePathsCount) PredecessorFilePathInfo PredecessorFilePaths[ ], + /* [out] */ __RPC__deref_out_opt IDpxContainer2 **ppContainer); + + DECLSPEC_XFGVIRT(IDpxContainer3, AddPeerContainer) + HRESULT ( STDMETHODCALLTYPE *AddPeerContainer )( + __RPC__in IDpxContainer3 * This, + /* [in] */ __RPC__in LPCWSTR ContainerPath, + /* [out] */ __RPC__deref_out_opt IDpxContainer3 **ppContainer); + + DECLSPEC_XFGVIRT(IDpxContainer3, IsPeer) + HRESULT ( STDMETHODCALLTYPE *IsPeer )( + __RPC__in IDpxContainer3 * This, + /* [in] */ __RPC__in_opt IDpxContainer3 *ppOtherContainer, + /* [out] */ __RPC__out BOOL *pIsPeer); + + DECLSPEC_XFGVIRT(IDpxContainer3, GetPeerGroupId) + HRESULT ( STDMETHODCALLTYPE *GetPeerGroupId )( + __RPC__in IDpxContainer3 * This, + /* [out] */ __RPC__out UINT64 *pnPeerGroupId); + + END_INTERFACE + } IDpxContainer3Vtbl; + + interface IDpxContainer3 + { + CONST_VTBL struct IDpxContainer3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDpxContainer3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDpxContainer3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDpxContainer3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDpxContainer3_SetContainerPath(This,ContainerPath) \ + ( (This)->lpVtbl -> SetContainerPath(This,ContainerPath) ) + +#define IDpxContainer3_GetContainerPath(This,pContainerPath) \ + ( (This)->lpVtbl -> GetContainerPath(This,pContainerPath) ) + +#define IDpxContainer3_AddFileToExtract(This,SourceFileName,TargetFileName,TargetFileHash) \ + ( (This)->lpVtbl -> AddFileToExtract(This,SourceFileName,TargetFileName,TargetFileHash) ) + +#define IDpxContainer3_AddFileToExtract2(This,SourceFileName,TargetFileName,ppFile) \ + ( (This)->lpVtbl -> AddFileToExtract2(This,SourceFileName,TargetFileName,ppFile) ) + +#define IDpxContainer3_ExtractAllFiles(This) \ + ( (This)->lpVtbl -> ExtractAllFiles(This) ) + +#define IDpxContainer3_EnumFilesToExtract(This,ppEnumFiles) \ + ( (This)->lpVtbl -> EnumFilesToExtract(This,ppEnumFiles) ) + +#define IDpxContainer3_SetExpectedContainerIndexHash(This,pExpectedHash) \ + ( (This)->lpVtbl -> SetExpectedContainerIndexHash(This,pExpectedHash) ) + +#define IDpxContainer3_GetExpectedContainerIndexHash(This,ppExpectedHash) \ + ( (This)->lpVtbl -> GetExpectedContainerIndexHash(This,ppExpectedHash) ) + +#define IDpxContainer3_ProvideContainerIndex(This,IndexSize,IndexData) \ + ( (This)->lpVtbl -> ProvideContainerIndex(This,IndexSize,IndexData) ) + +#define IDpxContainer3_ProvideContainerIndexByFile(This,IndexFileName) \ + ( (This)->lpVtbl -> ProvideContainerIndexByFile(This,IndexFileName) ) + +#define IDpxContainer3_EnumDirectoryEntries(This,ppEnumEntries) \ + ( (This)->lpVtbl -> EnumDirectoryEntries(This,ppEnumEntries) ) + +#define IDpxContainer3_Remove(This) \ + ( (This)->lpVtbl -> Remove(This) ) + +#define IDpxContainer3_SetUserValue(This,UserValue) \ + ( (This)->lpVtbl -> SetUserValue(This,UserValue) ) + +#define IDpxContainer3_GetUserValue(This,pUserValue) \ + ( (This)->lpVtbl -> GetUserValue(This,pUserValue) ) + +#define IDpxContainer3_FreeMemory(This,Allocation) \ + ( (This)->lpVtbl -> FreeMemory(This,Allocation) ) + + +#define IDpxContainer3_SetContainerDecryption(This,DecryptionDataCount,DecryptionData,EncryptionType) \ + ( (This)->lpVtbl -> SetContainerDecryption(This,DecryptionDataCount,DecryptionData,EncryptionType) ) + + +#define IDpxContainer3_AddPredecessorContainer(This,ContainerPath,PredecessorFilePathsCount,PredecessorFilePaths,ppContainer) \ + ( (This)->lpVtbl -> AddPredecessorContainer(This,ContainerPath,PredecessorFilePathsCount,PredecessorFilePaths,ppContainer) ) + + +#define IDpxContainer3_AddPeerContainer(This,ContainerPath,ppContainer) \ + ( (This)->lpVtbl -> AddPeerContainer(This,ContainerPath,ppContainer) ) + +#define IDpxContainer3_IsPeer(This,ppOtherContainer,pIsPeer) \ + ( (This)->lpVtbl -> IsPeer(This,ppOtherContainer,pIsPeer) ) + +#define IDpxContainer3_GetPeerGroupId(This,pnPeerGroupId) \ + ( (This)->lpVtbl -> GetPeerGroupId(This,pnPeerGroupId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDpxContainer3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dpx1_0000_0015 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dpx1_0000_0015_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dpx1_0000_0015_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpx1.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpx1.idl new file mode 100644 index 0000000000000000000000000000000000000000..875a19e8f7a680daa2b87f5745ba87c2fa0fc8b1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dpx1.idl @@ -0,0 +1,832 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. + +cpp_quote( "// Copyright (c) Microsoft Corporation. All rights reserved." ) +cpp_quote( "" ) + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote( "#include " ) + +#ifndef ALGIDDEF +#define ALGIDDEF +typedef unsigned int ALG_ID; +#endif + +interface IDpxJob; +interface IDpxContainer; +interface IDpxFile; +interface IDpxContainerDirectoryEntry; +interface IDpxDownloadProvider; +interface IDpxDownloadCallback; + +interface IEnumDpxContainers; +interface IEnumDpxFiles; +interface IEnumDpxContainerDirectoryEntries; + +typedef unsigned LOCATIONTYPE; + +const unsigned LOCATIONTYPE_UNKNOWN = 0x00000000; +const unsigned LOCATIONTYPE_NONE = 0x01000000; +const unsigned LOCATIONTYPE_LOCAL = 0x02000000; +const unsigned LOCATIONTYPE_CAB = 0x03000000; +const unsigned LOCATIONTYPE_CMI = 0x04000000; +const unsigned LOCATIONTYPE__MASK_FLAGS = 0x0000FFFF; +const unsigned LOCATIONTYPE_RECURSIVE = 0x00000001; +const unsigned LOCATIONTYPE_ABSOLUTE = 0x00000002; +const unsigned LOCATIONTYPE_COMPRESSED = 0x00000004; +const unsigned LOCATIONTYPE_IGNORE = 0x00000008; +const unsigned LOCATIONTYPE_DUPLICATE = 0x00000010; +const unsigned LOCATIONTYPE_INTERMEDIATE = 0x00000020; +const unsigned LOCATIONTYPE__MASK_TYPE = 0xFFFF0000; + +typedef enum +{ + DPX_RESUME_AND_DOWNLOAD = 0x0000, // perform end-to-end extract/download as needed + DPX_RESUME_UNTIL_DOWNLOAD = 0x0001, // proceed until download is needed, then stop + // (can then use download provider directly) + DPX_RESUME_AND_DOWNLOAD_FALLBACK = 0x0002, // perform end to end extraction and use only fallbacks + DPX_RESUME_UNTIL_DOWNLOAD_NO_CLONE = 0x0003, // proceed until download is needed, then stop + // (can then use download provider directly) + // don't clone files from local machine +} +DPX_RESUME_TYPE; + + +#define DPX_MAX_HASH_SIZE 64 // 512 bits is largest supported hash algorithm +cpp_quote( "#define DPX_MAX_HASH_SIZE 64" ) + +typedef struct +{ + ALG_ID AlgorithmId; + UINT HashSize; + [length_is( HashSize )] BYTE HashData[ DPX_MAX_HASH_SIZE ]; +} +DPX_HASH; + + +typedef struct +{ + UINT64 Offset; + UINT64 Length; +} +DPX_BYTE_RANGE; + + +typedef enum +{ + DPX_PHASE_JOB_IDLE = 0x0000, // job in suspended state. job is waiting + // to be resumed. + DPX_PHASE_DOWNLOAD_INDEX = 0x0010, // downloading container file index + DPX_PHASE_INVENTORY = 0x0020, // searching for delta basis files + DPX_PHASE_DOWNLOAD_FILES = 0x0030, // downloading container file contents + DPX_PHASE_EXPAND_FILES = 0x0040, // expanding/verifying downloaded data + DPX_PHASE_JOB_INPROGRESS = 0x0050, // job is in progress + + DPX_PHASE_JOB_COMPLETE = 0x7F00, // most recent Resume returned S_OK + DPX_PHASE_JOB_CANCELLED = 0xFFFE, // job cancelled + DPX_PHASE_JOB_FAILURE = 0xFFFF, // job unsuccessful +} +DPX_PROGRESS_PHASE; + + +typedef struct +{ + UINT64 Completed; + UINT64 Remaining; // (Completed/(Completed+Remaining)) == Percent +} +DPX_PROGRESS_REMAIN; + + +typedef struct +{ + DPX_PROGRESS_REMAIN Inventory; // one tick for each FindNext or byte scanned + DPX_PROGRESS_REMAIN Download; // one tick for each byte downloaded + DPX_PROGRESS_REMAIN Expansion; // one tick for each downloaded byte processed + DPX_PROGRESS_REMAIN Files; // one tick for each target file completed + DPX_PROGRESS_REMAIN Overall; // sum of above + DPX_PROGRESS_PHASE ePhase; // current phase +} +DPX_PROGRESS; + +#define DPX_OPTION_DELTA_BASIS_ROOT L"delta_basis_root" +cpp_quote( "#define DPX_OPTION_DELTA_BASIS_ROOT L\"delta_basis_root\"" ) + +#define DPX_COMPRESSION_ALGORITHM_OPTION_NAME L"postprocess_compression_algorithm" +cpp_quote( "#define DPX_COMPRESSION_ALGORITHM_OPTION_NAME L\"postprocess_compression_algorithm\"" ) +#define DPX_CLEANUP_OPTION_NAME L"postprocess_source_cleanup" +cpp_quote( "#define DPX_CLEANUP_OPTION_NAME L\"postprocess_source_cleanup\"" ) + +#define DPX_COMPRESSION_ALGORITHM_XPRESS_HUFF L"xpress_huff" +cpp_quote( "#define DPX_COMPRESSION_ALGORITHM_XPRESS_HUFF L\"xpress_huff\"" ) +#define DPX_COMPRESSION_ALGORITHM_WOF_PROVIDER_FILE L"wof_provider_file" +cpp_quote( "#define DPX_COMPRESSION_ALGORITHM_WOF_PROVIDER_FILE L\"wof_provider_file\"" ) + +#define DPX_COMPRESSED_FILE_HEADER_LENGTH 4 +cpp_quote( "#define DPX_COMPRESSED_FILE_HEADER_LENGTH 4" ) + +#define DPX_COMPRESSED_FILE_HEADER_XPRESS_HUFF {'D', 'C', 'X', '\x01'} +cpp_quote( "#define DPX_COMPRESSED_FILE_HEADER_XPRESS_HUFF {'D', 'C', 'X', '\x01'}" ) + +#define DPX_XPRESS_HUFF_BLOCK_SIZE (1024 * 1024) +cpp_quote( "#define DPX_XPRESS_HUFF_BLOCK_SIZE (1024 * 1024)" ) + +#define DPX_OPTION_TELEMETRY_CORRELATION_VECTOR L"Telemetry_correlation_vector" +cpp_quote("#define DPX_OPTION_TELEMETRY_CORRELATION_VECTOR L\"Telemetry_correlation_vector\"") + +#define DPX_OPTION_HASH_TYPE L"cix_hash_type" +cpp_quote( "#define DPX_OPTION_HASH_TYPE L\"cix_hash_type\"" ) + +#define DPX_OPTION_HARDLINK_ASSETS L"hardlink_assets" +cpp_quote("#define DPX_OPTION_HARDLINK_ASSETS L\"hardlink_assets\"") + +#define DPX_OPTION_COMPLETE_SELF_COPIES L"complete_self_copies" +cpp_quote("#define DPX_OPTION_COMPLETE_SELF_COPIES L\"complete_self_copies\"") + +#define DPX_OPTION_IGNORE_FNF_WARNINGS L"ignore_filenotfound_warnings" +cpp_quote("#define DPX_OPTION_IGNORE_FNF_WARNINGS L\"ignore_filenotfound_warnings\"") + +#define DPX_OPTION_SKIP_EXTRACTION_FOR_FILE L"skip_extraction_for_file" +cpp_quote( "#define DPX_OPTION_SKIP_EXTRACTION_FOR_FILE L\"skip_extraction_for_file\"" ) + +[ uuid( ddc1b711-0e55-452f-838e-d1505b866e2b ), object, pointer_default( unique ) ] +interface IDpxJob : IUnknown +{ + // + // TargetPath is the local file system directory under which extracted + // files should be created, specified at Job creation. Files created + // under this directory may include relative subdirectory names or even + // stream names. Files and subdirectories will be created with inherited + // ACL from TargetPath and owner from the thread calling + // IDpxDownloadCallback. During the course of extraction, additional + // temporary files might be created in the TargetPath but will be deleted + // when the job completes. If the job is cancelled or destroyed before + // completing, these temporary files may not be automatically deleted. + // + + HRESULT GetTargetPath( [out] LPWSTR* TargetPath ); // FreeMemory + + // + // An extract job consists of one or more containers, which are packages + // containing one or more files (e.g., .cab, .psf, .wim). A container + // has a single source path, usually a URL or local filename, but is + // interpreted only by the download provider. AddContainer with same + // ContainerPath as an already existing container object will return + // interface pointer to the existing container object. For each + // container, specify which files from the container are desired for + // download/extraction. See IDpxContainer for more details on specifying + // individual files within each container. + // + + HRESULT AddContainer( + [in] LPCWSTR ContainerPath, + [out] IDpxContainer ** ppContainer + ); + + HRESULT EnumContainers( + [out] IEnumDpxContainers ** ppEnumContainers + ); + + // + // Caller may optionally specify a download provider. If caller does not + // specify a download provider, a default download provider will be used + // that supports local file system and UNC through CreateFile/ReadFile. + // + // Since this is a pointer, it is ignored during SaveJobState, so + // caller must SetDownloadProvider after DpxRestoreJob before calling + // Resume to continue the job. + // + // Attempt to change the download provider during an active job will fail, + // but can be done while job is suspended. If provider is changed while + // job is suspended, any in-progress downloads will be abandoned. + // + // SetDownloadProvider( NULL ) will reset to default download provider. + // + + HRESULT SetDownloadProvider( [in, unique] IDpxDownloadProvider* pDownloadProvider ); + HRESULT GetDownloadProvider( [out] IDpxDownloadProvider** ppDownloadProvider ); + + // + // Extract jobs are always created in the suspended state. After + // populating the job with all the desired files to extract/download, + // call Resume to begin the evaluation and optional download. If caller + // specifies DPX_RESUME_WITH_DOWNLOAD, the download provider's Resume + // method will be called after the download is computed and will not + // return to caller until job is complete or an error occurs. If caller + // specifies DPX_RESUME_UNTIL_DOWNLOAD, the download provider's Resume + // will not be called, and this Resume call will return to caller with + // E_PENDING after populating download provider job or S_OK if the job + // is complete without requiring additional download. If Resume returns + // E_PENDING, it is caller's responsibility to Resume the download + // provider directly. + // + + HRESULT Resume( DPX_RESUME_TYPE eResumeType ); + + // + // Suspend may be called by another thread to cause Resume to stop + // within short period of time and return (BUGBUG) DPX_E_SUSPENDED. + // After Resume returns, caller may call Resume again to continue + // the job. + // + + HRESULT Suspend(); + + // + // Cancel may be called to destructively end a job. Unlike Suspend, + // Cancel will destroy all the outstanding downloads and job state, + // and will leave any already downloaded, extracted, and validated + // target files in the target directory. + // + + HRESULT Cancel(); + + // + // GetProgress can be used to poll job progress. See description of + // DPX_PROGRESS structure for more info. Job progress is summation of + // all underlying container extractions progress and download provider + // progress. + // + + HRESULT GetProgress( [out] DPX_PROGRESS * pProgress ); + + // + // While a job is in suspended state, SaveJobState can be used to + // save the current state of a job in a format that can be stored to disk + // and later resumed through DpxRestoreJob. + // + + HRESULT SaveJobState(); + + // + // Caller's may store context value for each node in the PackageExtractJob + // hierarchy, useful only to the caller. This value is preserved across + // Save/DpxRestoreJob. + // + + HRESULT SetUserValue( [in] UINT64 UserValue ); + HRESULT GetUserValue( [out] UINT64* pUserValue ); + + // + // Caller may provide named options with string values that may be + // referenced later by container manifests and otherwise affect job + // processing. OptionName is case insensitive, OptionValue case is + // preserved. Setting NULL or empty OptionValue is acceptable and + // GetOptionValue will return S_OK with NULL pOptionValue for these. + // GetOptionValue will fail if the named value does not exist. + // + + HRESULT SetOptionValue( [in] LPCWSTR OptionName, [in, unique] LPCWSTR OptionValue ); + HRESULT GetOptionValue( [in] LPCWSTR OptionName, [out] LPWSTR* pOptionValue ); + + // + // Memory allocated as return parameters from methods on this interface + // should be freed by the caller using this interface-specific local + // FreeMemory method before Release of the allocating object. + // + + [local] void FreeMemory( [in] void* Allocation ); + +} + +cpp_quote("#ifdef __cplusplus") + +cpp_quote("enum class DPX_FILE_PROVIDER_QUERY_DISPOSITION") +cpp_quote("{") +cpp_quote(" Invalid = 0,") +cpp_quote(" Success = 1,") +cpp_quote(" Compressed = 2") +cpp_quote("};") + +cpp_quote("#else") + +typedef enum tagDPX_FILE_PROVIDER_QUERY_DISPOSITION +{ + DPX_FILE_PROVIDER_QUERY_DISPOSITION_INVALID = 0, + DPX_FILE_PROVIDER_QUERY_DISPOSITION_SUCCESS = 1, + DPX_FILE_PROVIDER_QUERY_DISPOSITION_COMPRESSED = 2, +} DPX_FILE_PROVIDER_QUERY_DISPOSITION; + +cpp_quote("#endif") + +[uuid(e9a288f7-bcfb-4466-95c6-5a388263d8fb), object, pointer_default(unique)] +interface IFileHashProviderCallback : IUnknown +{ + // + // Caller retrieves a hash for a given file at the given path. + // The input parameters is an Absolute file path and a algorithm type. + // The output parameters are the disposition and the value of the hash queried. + // + HRESULT GetFileHash( + [in] LPCWSTR FilePath, + [in] ALG_ID algId, + [out] DPX_FILE_PROVIDER_QUERY_DISPOSITION* pDisposition, + [in] UINT cbHashData, + [out, size_is(cbHashData)] BYTE pbHashData[] + ); +}; + +[uuid(e1c292c8-919a-4f1b-b85a-9c542932fc8d), object, pointer_default(unique)] +interface IDpxJob2 : IDpxJob +{ + // + // Caller uses this to set the location type on the provider. + // The input parameters is the location type and + // a pointer to IFileHashProviderCallback. + // + HRESULT SetInventoryProvider( + [in] LOCATIONTYPE locationType, + [in] IFileHashProviderCallback* pProvider + ); +}; + +[ uuid( ddc1b712-0e55-452f-838e-d1505b866e2b ), object, pointer_default(unique) ] +interface IDpxContainer : IUnknown +{ + // + // IDpxContainer exposes a ContainerPath property which is interpreted + // only by download provider of parent extract job. Usually this is URL + // or local/UNC filename, but is interpreted only by the specified + // download provider. It can be simply a filename without a path if + // the download provider knows how to translate that to full path for the + // actual download. The ContainerPath must be unique for each container + // within a job. + // + + HRESULT SetContainerPath( [in] LPCWSTR ContainerPath ); + HRESULT GetContainerPath( [out] LPWSTR* pContainerPath ); // FreeMemory + + // + // Caller adds specific files to the extract job prior to "starting" the + // extract job. Caller may specify additional files to extract after a + // job has been started, and also after a job has completed. See the + // IDpxFile interface for more information on specifying files. + // Caller can first call EnumDirectoryEntries and then add some + // or all of the files to the job or use ExtractAllFiles for "wildcard" + // extraction. Additional files can be added to the job at + // any time, even after job has been completed. After files are added, caller + // must perform Resume again. AddFileToExtract with same SourceFileName and + // TargetFileName as an already existing file object will return interface + // pointer to the existing file object. AddFileToExtract with same + // TargetFileName (explicit or implied) as an already existing file object + // with a different SourceFileName will fail with E_BUGBUG. + // + + HRESULT AddFileToExtract( + [in] LPCWSTR SourceFileName, // within container + [in, unique] LPCWSTR TargetFileName, // if different + [in, unique] DPX_HASH* TargetFileHash // if verify desired + ); + + HRESULT AddFileToExtract2( + [in] LPCWSTR SourceFileName, // within container + [in, unique] LPCWSTR TargetFileName, // if different + [out] IDpxFile ** ppFile + ); + + // + // Alternative to specifying individual files to extract, may call + // ExtractAllFiles, which automatically AddFileToExtract every file + // in the container index, once the container index is provided or + // downloaded. + // + + HRESULT ExtractAllFiles(); + + // + // EnumFilesToExtract returns enumerator that can return each file + // added to this container for extraction. If ExtractAllFiles is + // used, the files can only be enumerated after ProvideContainerIndex + // is called, or after the index is automatically downloaded. + // + + HRESULT EnumFilesToExtract( + [out] IEnumDpxFiles ** ppEnumFiles + ); + + // + // There are four security validation models for package extraction when + // downloading from an untrusted source or over an untrusted medium. + // + // 1) Provide complete trusted container index at start of job + // 2) Provide trusted hash of container index to be downloaded + // 3) Provide trusted hash of each individual file to be extracted + // 4) No Validation + // + // Some containers, such as raw .cab, do not contain individual file hashes + // inside the container index, so the caller must specify individual file + // hashes if the caller wants PackageExtractJob to perform the validation. + // Some containers, such as .psf, optionally provide individual file + // hashes inside the container index, so only a trusted hash of the + // container index is required to validate trust for each extracted file. + // Likewise, if caller provides .psf index through ProvideContainerIndex, + // and the index contains individual file hashes, the extracted files are + // validated to the same level of trust as the provided container index. + // Generally, a content authoring scheme should conform to one of these + // four models, three of which provide validation during the extract job, + // the other requring the caller to separately validate the files after + // extraction. Based on the model, the client for that content should + // choose one of ProvideContainerIndex, SetExpectedContainerIndexHash, + // SetExpectedHash on each target file, or perform separate validation + // after the job is complete if validation is required. + // + + HRESULT SetExpectedContainerIndexHash( [in] DPX_HASH * pExpectedHash ); + HRESULT GetExpectedContainerIndexHash( [out] DPX_HASH ** ppExpectedHash ); // FreeMemory + + HRESULT ProvideContainerIndex( + [in] UINT IndexSize, + [in, size_is( IndexSize )] BYTE IndexData[] + ); + + HRESULT ProvideContainerIndexByFile( + [in] LPCWSTR IndexFileName // can open with CreateFileW + ); + + // + // EnumDirectoryEntries is used if caller needs to query the contents + // of a container, usually to determine the set of filenames to specify + // for extraction. If the set of filenames to extract is known, then + // EnumDirectoryEntries is not necessary. If EnumDirectoryEntries is + // called before the container index has been downloaded or provided, it + // will return E_NOTAVAILABLE. + // + + HRESULT EnumDirectoryEntries( + [out] IEnumDpxContainerDirectoryEntries ** ppEnumEntries + ); + + // + // Remove will remove a container and all its files from the parent + // extract job. Any files for this container that have already been + // downloaded and validated will not be deleted from the TargetPath. + // Removing a container after job has started might result in larger + // download. After calling Remove, caller must Release the object. + // + + HRESULT Remove(); + + // + // Caller's may store context value for each node in the PackageExtractJob + // hierarchy, useful only to the caller. This value is preserved across + // Save/DpxRestoreJob. + // + + HRESULT SetUserValue( [in] UINT64 UserValue ); + HRESULT GetUserValue( [out] UINT64* pUserValue ); + + // + // Memory allocated as return parameters from methods on this interface + // should be freed by the caller using this interface-specific local + // FreeMemory method before Release of the allocating object. + // + + [local] void FreeMemory( [in] void* Allocation ); + +} + + +[ uuid( ddc1b713-0e55-452f-838e-d1505b866e2b ), object, pointer_default(unique) ] +interface IDpxFile : IUnknown +{ + // + // IDpxContainer::AddFileToExtract2 returns pointer to this interface. + // File objects have a SourceFileName and optional TargetFileName if + // different than the SourceFileName. GetTargetFileName will return same + // value as GetSourceFileName if file object created with NULL + // TargetFileName. File objects within a job are unique by TargetFileName + // in the job's TargetPath. Multiple file objects may exist using same + // SourceFileName from same or different containers, allowing single + // source file to be extracted to multiple target files. Attempt to add a + // file with same TargetFileName [explicit or implied] as an existing file + // with same SourceFileName will simply reference existing file object. + // Attempt to add a file with same TargetFileName as an existing file with + // different SourceFileName will fail. TargetFileName can contain a + // relative path from the TargetPath but cannot contain "." or ".." path + // components. Subdirectories within the TargetPath will be created as + // necessary during extraction. + // + + HRESULT GetSourceFileName( [out] LPWSTR * pSourceFileName ); // FreeMemory + HRESULT GetTargetFileName( [out] LPWSTR * pTargetFileName ); // FreeMemory + + // + // SetExpectedHash can be used to validate trust for the extracted + // files, especially when the source is over a network or the internet. + // If an extracted file fails the hash check, it will be re-requested + // at least once before failing the job completely. + // + + HRESULT SetExpectedHash( [in] DPX_HASH * pExpectedHash ); + HRESULT GetExpectedHash( [out] DPX_HASH ** ppExpectedHash ); // FreeMemory + + // + // Remove will remove a file from its parent extract job. If the file + // has already been downloaded and validated, it will not be deleted + // from the TargetPath. Removing a file after job has started might + // result in larger download. After calling Remove, caller must Release + // the object. + // + + HRESULT Remove(); + + // + // Caller's may store context value for each node in the PackageExtractJob + // hierarchy, useful only to the caller. This value is preserved across + // Save/DpxRestoreJob. + // + + HRESULT SetUserValue( [in] UINT64 UserValue ); + HRESULT GetUserValue( [out] UINT64* pUserValue ); + + // + // Gives caller HRESULT status for individual file. + // Note that HRESULT status is given via output parameter, not via function return value. + // pStatus will equal one of the following after return: + // S_OK (file created in target path) + // E_ABORT (when Remove() is called) + // E_PENDING (file not removed or created in target path) + // + + HRESULT GetStatus( [out] HRESULT *pStatus ); + + // + // Memory allocated as return parameters from methods on this interface + // should be freed by the caller using this interface-specific local + // FreeMemory method before Release of the allocating object. + // + + [local] void FreeMemory( [in] void* Allocation ); + +} + +[ uuid( c249cc11-c1f5-428e-acbf-e1b78b30b971 ), object, pointer_default( unique ) ] +interface IDpxFile2 : IDpxFile +{ + HRESULT GetSize( [out] UINT64* pSize ); +} + + +[ uuid( ddc1b715-0e55-452f-838e-d1505b866e2b ), object, pointer_default( unique ) ] +interface IDpxContainerDirectoryEntry : IUnknown +{ + HRESULT GetName( [out] LPWSTR *pDirEntryName ); // FreeMemory + + HRESULT GetHash( [out] DPX_HASH **pDirEntryHash ); // FreeMemory + + HRESULT GetSize( [out] UINT64 *pDirEntrySize ); + + HRESULT GetTime( [out] FILETIME *pDirEntryTime ); + + [local] void FreeMemory( [in] void* Allocation ); +} + + +[ uuid( ddc1b716-0e55-452f-838e-d1505b866e2b ), object, pointer_default( unique ) ] +interface IDpxDownloadProvider : IUnknown +{ + HRESULT SetProvideDataCallback( [in] IDpxDownloadCallback* pProvideData ); + HRESULT GetProvideDataCallback( [out] IDpxDownloadCallback** ppProvideData ); + + // + // Adding container with no ranges implies entire source file. + // + + HRESULT AddContainer( + [in] LPCWSTR ContainerFilePath, + [in] UINT64 ContainerId + ); + + HRESULT AddRanges( + [in] UINT64 ContainerId, + [in] UINT RangeCount, + [in, size_is( RangeCount )] DPX_BYTE_RANGE RangeList[] + ); + + HRESULT GetContainers( + [out] UINT* ContainerCount, + [out, size_is( , *ContainerCount )] UINT64** ppContainerIdArray // FreeMemory + ); + + HRESULT GetContainerPath( + [in] UINT64 ContainerId, + [out] LPWSTR* ContainerPath // FreeMemory + ); + + HRESULT GetRanges( + [in] UINT64 ContainerId, + [in] BOOL IncludeCompletedRanges, + [out] UINT* RangeCount, + [out, size_is( , *RangeCount )] DPX_BYTE_RANGE ** ppRangeArray // FreeMemory + ); + + HRESULT Resume(); + HRESULT Suspend(); + HRESULT Cancel(); + + // + // After a job is started with Resume, caller may either poll for progress + // to determine completion, or call WaitForCompletion instead. + // + + HRESULT WaitForCompletion( [in] DWORD TimeoutMilliseconds ); + + // + // GetProgress can be used to poll download progress. + // + + HRESULT GetProgress( [out] DPX_PROGRESS_REMAIN * pDownloadProgress ); + + // + // ClearRequest removes all container files and their requested ranges + // from the download provider job. It is used to re-initialize the + // download provider object for multiple download requests during lifetime + // of IDpxJob object. + // + + HRESULT ClearRequest(); + + [local] void FreeMemory( [in] void* Allocation ); +} + + +[ uuid( ddc1b717-0e55-452f-838e-d1505b866e2b ), object, pointer_default( unique ) ] +interface IDpxDownloadCallback : IUnknown +{ + // + // There are several methods for providing the requested data. The first + // is memory buffer based, the others are file based requiring a path/file + // name that can be opened with CreateFileW (shared read access). The + // ProvideRequestedDataByFile method can take a whole container file such + // as a local .cab or .psf file, or a file containing individual ranges + // whose offsets in the provided file may differ than the original whole + // container file. The OffsetInResponseFile array maps the parallel + // array of ranges in the provided file to the offsets in the original + // whole file. The ProvideRequestedDataByPackedRangeFile is similar, but + // assumes that the provided file contains packed ranges corresponding + // exactly (number, order, and sizes) to the set of ranges requested by + // most recent call to Resume. This facilitates download providers + // utilizing BITS which provides response file in this packed format. + // + + HRESULT ProvideRequestedData( + [in] UINT64 ContainerId, + [in] UINT RangeCount, + [in, size_is( RangeCount )] DPX_BYTE_RANGE RangeList[], + [in, size_is( RangeCount )] const BYTE* RangeData[] + ); + + HRESULT ProvideRequestedDataByFile( + [in] UINT64 ContainerId, + [in] LPCWSTR ResponseFilePath, // can open with CreateFileW + [in] UINT RangeCount, + [in, size_is( RangeCount )] DPX_BYTE_RANGE RangeArray[], + [in, size_is( RangeCount )] UINT64 OffsetInResponseFile[] + ); + + HRESULT ProvideRequestedDataByPackedRangeFile( + [in] UINT64 ContainerId, + [in] LPCWSTR ResponseFilePath // can open with CreateFileW + ); + +} + + +[ uuid( ddc1b722-0e55-452f-838e-d1505b866e2b ), object, pointer_default( unique ) ] +interface IEnumDpxContainers : IUnknown +{ + HRESULT Next( + [in] UINT ItemCount, + [out, size_is( ItemCount ), length_is( *pFetchedCount )] IDpxContainer **ppContainers, + [out] UINT * pFetchedCount + ); + + HRESULT Skip( [in] UINT ItemCount ); + + HRESULT Reset(); + + HRESULT Clone( [out] IEnumDpxContainers **ppEnum ); + + HRESULT GetCount( [out] UINT * pItemCount ); +} + + +[ uuid( ddc1b723-0e55-452f-838e-d1505b866e2b ), object, pointer_default( unique ) ] +interface IEnumDpxFiles : IUnknown +{ + HRESULT Next( + [in] UINT ItemCount, + [out, size_is( ItemCount ), length_is( *pFetchedCount )] IDpxFile **ppFiles, + [out] UINT * pFetchedCount + ); + + HRESULT Skip( [in] UINT ItemCount ); + + HRESULT Reset(); + + HRESULT Clone( [out] IEnumDpxFiles **ppEnum ); + + HRESULT GetCount( [out] UINT * pItemCount ); +} + + +[ uuid( ddc1b725-0e55-452f-838e-d1505b866e2b ), object, pointer_default( unique ) ] +interface IEnumDpxContainerDirectoryEntries : IUnknown +{ + HRESULT Next( + [in] UINT ItemCount, + [out, size_is( ItemCount ), length_is( *pFetchedCount )] IDpxContainerDirectoryEntry **ppDirectoryEntries, + [out] UINT * pFetchedCount + ); + + HRESULT Skip( [in] UINT ItemCount ); + + HRESULT Reset(); + + HRESULT Clone( [out] IEnumDpxContainerDirectoryEntries **ppEnum ); + + HRESULT GetCount( [out] UINT * pItemCount ); +} + +typedef struct tagDpxContainerDecryptionData +{ + ULONG cbDecryptionData; + [size_is(cbDecryptionData)] BYTE *pDecryptionData; +} DpxContainerDecryptionData; + +typedef enum tagDPX_CONTAINER_ENCRYPTION_ENUM +{ + DPX_CONTAINER_ENCRYPTION_NONE = 0, + DPX_CONTAINER_ENCRYPTION_ITERATIVE = 1, + DPX_CONTAINER_ENCRYPTION_MAX_ENUM = DPX_CONTAINER_ENCRYPTION_ITERATIVE +} DPX_CONTAINER_ENCRYPTION_ENUM; + +[ uuid( ddc1b726-0e55-452f-838e-d1505b866e2b ), object, pointer_default(unique) ] +interface IDpxEncryptedContainer : IDpxContainer +{ + HRESULT SetContainerDecryption( + [in] UINT DecryptionDataCount, + [in, size_is( DecryptionDataCount )] DpxContainerDecryptionData DecryptionData[], + [in] DPX_CONTAINER_ENCRYPTION_ENUM EncryptionType + ); +} + +typedef struct tagDpxPredecessorFilePathInfo +{ + LPCWSTR PredecessorInstallPath; + LPCWSTR PredecessorCabPath; + LPCWSTR CabPath; +} PredecessorFilePathInfo; + +// +// Add a predecessor to this container. +// A predecessor container is an earlier version of the container that +// contains content that this container can use as basis content. +// +// The BasisRemappings contains a set of remappings that indicate +// what files in the predecessor containers targetpath could be used +// as basis content for this container. +// +[ uuid( c8e1e004-3a8d-45c7-a6aa-8c8f2f2ed1e1 ), object, pointer_default(unique) ] +interface IDpxContainer2 : IDpxEncryptedContainer +{ + HRESULT AddPredecessorContainer( + [in] LPCWSTR ContainerPath, + [in] UINT PredecessorFilePathsCount, + [in, size_is( PredecessorFilePathsCount )] PredecessorFilePathInfo PredecessorFilePaths[], + [out] IDpxContainer2 ** ppContainer + ); +} + +// +// Add a peer to this container. +// Peers contain equivalent content, but the content may be +// stored differently. All peers are processed together when evaluating +// download options. +// +[ uuid( 582f768c-fe7d-4bf5-b0b8-3ab01d53b0d0 ), object, pointer_default(unique) ] +interface IDpxContainer3 : IDpxContainer2 +{ + HRESULT AddPeerContainer( + [in] LPCWSTR ContainerPath, + [out] IDpxContainer3 ** ppContainer + ); + + HRESULT IsPeer( + [in] IDpxContainer3 * ppOtherContainer, + [out] BOOL *pIsPeer + ); + + HRESULT GetPeerGroupId( + [out] UINT64* pnPeerGroupId + ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dragdropinterop.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dragdropinterop.h new file mode 100644 index 0000000000000000000000000000000000000000..e68f1dd5b2a6a9c199e464434c8ba0673d709ffe --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dragdropinterop.h @@ -0,0 +1,212 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dragdropinterop_h__ +#define __dragdropinterop_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDragDropManagerInterop_FWD_DEFINED__ +#define __IDragDropManagerInterop_FWD_DEFINED__ +typedef interface IDragDropManagerInterop IDragDropManagerInterop; + +#endif /* __IDragDropManagerInterop_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "inspectable.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dragdropinterop_0000_0000 */ +/* [local] */ + +#include +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_dragdropinterop_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dragdropinterop_0000_0000_v0_0_s_ifspec; + +#ifndef __IDragDropManagerInterop_INTERFACE_DEFINED__ +#define __IDragDropManagerInterop_INTERFACE_DEFINED__ + +/* interface IDragDropManagerInterop */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_IDragDropManagerInterop; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5AD8CBA7-4C01-4DAC-9074-827894292D63") + IDragDropManagerInterop : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE GetForWindow( + /* [in] */ HWND hwnd, + /* [in] */ REFIID riid, + /* [iid_is][out] */ void **ppv) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDragDropManagerInteropVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDragDropManagerInterop * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDragDropManagerInterop * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDragDropManagerInterop * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + IDragDropManagerInterop * This, + /* [out] */ ULONG *iidCount, + /* [size_is][size_is][out] */ IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + IDragDropManagerInterop * This, + /* [out] */ HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + IDragDropManagerInterop * This, + /* [out] */ TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IDragDropManagerInterop, GetForWindow) + HRESULT ( STDMETHODCALLTYPE *GetForWindow )( + IDragDropManagerInterop * This, + /* [in] */ HWND hwnd, + /* [in] */ REFIID riid, + /* [iid_is][out] */ void **ppv); + + END_INTERFACE + } IDragDropManagerInteropVtbl; + + interface IDragDropManagerInterop + { + CONST_VTBL struct IDragDropManagerInteropVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDragDropManagerInterop_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDragDropManagerInterop_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDragDropManagerInterop_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDragDropManagerInterop_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IDragDropManagerInterop_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IDragDropManagerInterop_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IDragDropManagerInterop_GetForWindow(This,hwnd,riid,ppv) \ + ( (This)->lpVtbl -> GetForWindow(This,hwnd,riid,ppv) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDragDropManagerInterop_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dragdropinterop_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + + +extern RPC_IF_HANDLE __MIDL_itf_dragdropinterop_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dragdropinterop_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dragdropinterop.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dragdropinterop.idl new file mode 100644 index 0000000000000000000000000000000000000000..8cc6c813ad8eab3dfc9d73de41e8fe41e40a3a6d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dragdropinterop.idl @@ -0,0 +1,30 @@ +/* DragDropInterop.idl +* +* IDL defines for COM APIs to support interop with WinRt drag &drop +* +* Copyright (c) Microsoft Corporation. All rights reserved +*/ + +import "inspectable.idl"; + +cpp_quote("#include ") +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD)") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +[ + uuid(5AD8CBA7-4C01-4DAC-9074-827894292D63), + object, + local, + pointer_default(unique) +] +interface IDragDropManagerInterop : IInspectable +{ + HRESULT GetForWindow([in] HWND hwnd, [in] REFIID riid, [out, iid_is(riid)] void **ppv); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD)") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/drt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/drt.h new file mode 100644 index 0000000000000000000000000000000000000000..8690977834040870bd8943caef5f1a1e32e55496 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/drt.h @@ -0,0 +1,570 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// File: drt.h +// +// Contents: Win32 APIs and structures for the Microsoft Distributed Routing Table. +// +// Questions or feedback: +// +// Email: peerfb@microsoft.com +// Website: http://www.microsoft.com/p2p +// Newsgroup: microsoft.public.win32.programmer.networks +// +//---------------------------------------------------------------------------- + +#ifndef _DRT_H_ +#define _DRT_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifndef MIDL_PASS +#include +#include +#include // for sockaddrin_6 +#include +#endif + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +////////////////////////////////////////////////////////////////////////////// +// Constants + +typedef PVOID HDRT; +typedef PVOID HDRT_SEARCH_CONTEXT; +typedef PVOID HDRT_TRANSPORT; +typedef PVOID HDRT_REGISTRATION_CONTEXT; + +#define FACILITY_DRT 98 +#define DRT_E_TIMEOUT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x1001) +#define DRT_E_INVALID_KEY_SIZE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x1002) +#define DRT_E_INVALID_CERT_CHAIN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x1004) +#define DRT_E_INVALID_MESSAGE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x1005) +#define DRT_E_NO_MORE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x1006) +#define DRT_E_INVALID_MAX_ADDRESSES MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x1007) +#define DRT_E_SEARCH_IN_PROGRESS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x1008) +#define DRT_E_INVALID_KEY MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x1009) + +#define DRT_S_RETRY MAKE_HRESULT(SEVERITY_SUCCESS, FACILITY_DRT, 0x1010) +#define DRT_E_INVALID_MAX_ENDPOINTS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x1011) +#define DRT_E_INVALID_SEARCH_RANGE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x1012) + +#define DRT_E_INVALID_PORT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2000) +#define DRT_E_INVALID_TRANSPORT_PROVIDER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2001) +#define DRT_E_INVALID_SECURITY_PROVIDER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2002) +#define DRT_E_STILL_IN_USE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2003) +#define DRT_E_INVALID_BOOTSTRAP_PROVIDER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2004) +#define DRT_E_INVALID_ADDRESS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2005) +#define DRT_E_INVALID_SCOPE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2006) +#define DRT_E_TRANSPORT_SHUTTING_DOWN MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2007) +#define DRT_E_NO_ADDRESSES_AVAILABLE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2008) +#define DRT_E_DUPLICATE_KEY MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2009) +#define DRT_E_TRANSPORTPROVIDER_IN_USE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x200a) +#define DRT_E_TRANSPORTPROVIDER_NOT_ATTACHED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x200b) +#define DRT_E_SECURITYPROVIDER_IN_USE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x200c) +#define DRT_E_SECURITYPROVIDER_NOT_ATTACHED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x200d) +#define DRT_E_BOOTSTRAPPROVIDER_IN_USE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x200e) +#define DRT_E_BOOTSTRAPPROVIDER_NOT_ATTACHED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x200f) + +#define DRT_E_TRANSPORT_ALREADY_BOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2101) +#define DRT_E_TRANSPORT_NOT_BOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2102) +#define DRT_E_TRANSPORT_UNEXPECTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2103) +#define DRT_E_TRANSPORT_INVALID_ARGUMENT MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2104) +#define DRT_E_TRANSPORT_NO_DEST_ADDRESSES MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2105) +#define DRT_E_TRANSPORT_EXECUTING_CALLBACK MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2106) +#define DRT_E_TRANSPORT_ALREADY_EXISTS_FOR_SCOPE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2107) +#define DRT_E_INVALID_SETTINGS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2108) +#define DRT_E_INVALID_SEARCH_INFO MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x2109) +#define DRT_E_FAULTED MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x210a) +#define DRT_E_TRANSPORT_STILL_BOUND MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x210b) +#define DRT_E_INSUFFICIENT_BUFFER MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x210c) +#define DRT_E_INVALID_INSTANCE_PREFIX MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x210d) +#define DRT_E_INVALID_SECURITY_MODE MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x210e) +#define DRT_E_CAPABILITY_MISMATCH MAKE_HRESULT(SEVERITY_ERROR, FACILITY_DRT, 0x210f) + + + +#define DRT_PAYLOAD_REVOKED (1<<0) +#define DRT_MIN_ROUTING_ADDRESSES 1 +#define DRT_MAX_ROUTING_ADDRESSES 20 +#define DRT_MAX_PAYLOAD_SIZE 5120 +#define DRT_MAX_INSTANCE_PREFIX_LEN 128 + +#define DRT_LINK_LOCAL_ISATAP_SCOPEID 0xffffffff + + +////////////////////////////////////////////////////////////////////////////// +// Enums + +typedef enum drt_scope_tag +{ + DRT_GLOBAL_SCOPE = 1, + DRT_SITE_LOCAL_SCOPE = 2, + DRT_LINK_LOCAL_SCOPE = 3, +} DRT_SCOPE; + +typedef enum drt_status_tag +{ + DRT_ACTIVE = 0, + DRT_ALONE = 1, + DRT_NO_NETWORK = 10, + DRT_FAULTED = 20, +} DRT_STATUS; + +typedef enum drt_match_type_tag +{ + DRT_MATCH_EXACT = 0, + DRT_MATCH_NEAR = 1, + DRT_MATCH_INTERMEDIATE = 2, +} DRT_MATCH_TYPE; + +typedef enum drt_leafset_key_change_type_tag +{ + DRT_LEAFSET_KEY_ADDED = 0, + DRT_LEAFSET_KEY_DELETED = 1, +} DRT_LEAFSET_KEY_CHANGE_TYPE; + +typedef enum drt_event_type_tag +{ + DRT_EVENT_STATUS_CHANGED = 0, + DRT_EVENT_LEAFSET_KEY_CHANGED = 1, + DRT_EVENT_REGISTRATION_STATE_CHANGED = 2, +} DRT_EVENT_TYPE; + +typedef enum drt_security_mode_tag +{ + DRT_SECURE_RESOLVE = 0, + DRT_SECURE_MEMBERSHIP = 1, + DRT_SECURE_CONFIDENTIALPAYLOAD = 2, +} DRT_SECURITY_MODE; + +typedef enum _DRT_REGISTRATION_STATE +{ + DRT_REGISTRATION_STATE_UNRESOLVEABLE = 1 + +} DRT_REGISTRATION_STATE, *PDRT_REGISTRATION_STATE; + +typedef enum _DRT_ADDRESS_FLAGS +{ + DRT_ADDRESS_FLAG_ACCEPTED = 0x01, + DRT_ADDRESS_FLAG_REJECTED = 0x02, + DRT_ADDRESS_FLAG_UNREACHABLE = 0x04, + DRT_ADDRESS_FLAG_LOOP = 0x08, + DRT_ADDRESS_FLAG_TOO_BUSY = 0x10, + DRT_ADDRESS_FLAG_BAD_VALIDATE_ID = 0x20, + DRT_ADDRESS_FLAG_SUSPECT_UNREGISTERED_ID = 0x40, + DRT_ADDRESS_FLAG_INQUIRE = 0x80 + +} DRT_ADDRESS_FLAGS, *PDRT_ADDRESS_FLAGS; + +////////////////////////////////////////////////////////////////////////////// +// Structures + +typedef struct drt_data_tag +{ + ULONG cb; + BYTE* pb; +} DRT_DATA, *PDRT_DATA; +typedef const DRT_DATA *PCDRT_DATA; + +typedef struct drt_registration_tag +{ + DRT_DATA key; + DRT_DATA appData; +} DRT_REGISTRATION, *PDRT_REGISTRATION; +typedef const DRT_REGISTRATION *PCDRT_REGISTRATION; + +typedef struct drt_security_provider_tag +{ + PVOID pvContext; + + HRESULT (*Attach)( + _In_ const PVOID pvContext); + + VOID (*Detach)( + _In_ const PVOID pvContext); + + HRESULT (*RegisterKey)( + _In_ const PVOID pvContext, + _In_ const DRT_REGISTRATION* pRegistration, + _In_opt_ PVOID pvKeyContext); + + HRESULT (*UnregisterKey)( + _In_ const PVOID pvContext, + _In_ const DRT_DATA* pKey, + _In_opt_ PVOID pvKeyContext); + + HRESULT (*ValidateAndUnpackPayload)( + _In_ const PVOID pvContext, + _In_ DRT_DATA* pSecuredAddressPayload, + _In_opt_ DRT_DATA* pCertChain, + _In_opt_ DRT_DATA* pClassifier, + _In_opt_ DRT_DATA* pNonce, + _In_opt_ DRT_DATA* pSecuredPayload, + + _Out_ BYTE* pbProtocolMajor, + _Out_ BYTE* pbProtocolMinor, + _Out_ DRT_DATA* pKey, + _Out_opt_ DRT_DATA* pPayload, + _Out_ CERT_PUBLIC_KEY_INFO** ppPublicKey, + _Out_opt_ SOCKET_ADDRESS_LIST** ppAddressList, + _Out_ DWORD* pdwFlags); + + HRESULT (*SecureAndPackPayload)( + _In_ const PVOID pvContext, + _In_opt_ PVOID pvKeyContext, + BYTE bProtocolMajor, + BYTE bProtocolMinor, + DWORD dwFlags, + _In_ const DRT_DATA* pKey, + _In_opt_ const DRT_DATA* pPayload, + _In_opt_ const SOCKET_ADDRESS_LIST* pAddressList, + _In_ const DRT_DATA* pNonce, + + _Out_ DRT_DATA* pSecuredAddressPayload, + _Out_opt_ DRT_DATA* pClassifier, + _Out_opt_ DRT_DATA* pSecuredPayload, + _Out_opt_ DRT_DATA* pCertChain); + + void (*FreeData)( + _In_ const PVOID pvContext, + _In_opt_ PVOID pv); + + + HRESULT (*EncryptData)( + _In_ const PVOID pvContext, + _In_ const DRT_DATA* pRemoteCredential, + _In_ DWORD dwBuffers, + _In_reads_(dwBuffers) DRT_DATA* pDataBuffers, + _Out_writes_(dwBuffers) DRT_DATA* pEncryptedBuffers, + _Out_ DRT_DATA *pKeyToken + ); + + HRESULT (*DecryptData)( + _In_ const PVOID pvContext, + _In_ DRT_DATA* pKeyToken, + _In_ const PVOID pvKeyContext, + _In_ DWORD dwBuffers, + _Inout_updates_(dwBuffers) DRT_DATA* pData + ); + + HRESULT (*GetSerializedCredential)( + _In_ const PVOID pvContext, + _Out_ DRT_DATA *pSelfCredential); + + HRESULT (*ValidateRemoteCredential)( + _In_ const PVOID pvContext, + _In_ DRT_DATA *pRemoteCredential); + + HRESULT (*SignData)( + _In_ const PVOID pvContext, + _In_ DWORD dwBuffers, + _In_reads_(dwBuffers) DRT_DATA* pDataBuffers, + _Out_ DRT_DATA *pKeyIdentifier, + _Out_ DRT_DATA *pSignature); + + HRESULT (*VerifyData)( + _In_ const PVOID pvContext, + _In_ DWORD dwBuffers, + _In_reads_(dwBuffers) DRT_DATA* pDataBuffers, + _In_ DRT_DATA *pRemoteCredentials, + _In_ DRT_DATA *pKeyIdentifier, + _In_ DRT_DATA *pSignature); + +} DRT_SECURITY_PROVIDER, *PDRT_SECURITY_PROVIDER; +typedef const DRT_SECURITY_PROVIDER *PCDRT_SECURITY_PROVIDER; + +typedef PVOID DRT_BOOTSTRAP_RESOLVE_CONTEXT; + +typedef void (CALLBACK* DRT_BOOTSTRAP_RESOLVE_CALLBACK)(HRESULT hr, PVOID pvContext, SOCKET_ADDRESS_LIST* pAddresses, BOOL fFatalError); + +typedef struct drt_bootstrap_provider_tag +{ + PVOID pvContext; + + HRESULT (*Attach)( + _In_ const PVOID pvContext); + + VOID (*Detach)( + _In_ const PVOID pvContext); + + HRESULT (*InitResolve)( + _In_ const PVOID pvContext, + _In_ BOOL fSplitDetect, + _In_ ULONG timeout, + _In_ ULONG cMaxResults, + _Out_ DRT_BOOTSTRAP_RESOLVE_CONTEXT* ResolveContext, + _Out_ BOOL* fFatalError + ); + HRESULT (*IssueResolve)( + _In_ const PVOID pvContext, + _In_ const PVOID pvCallbackContext, + _In_ DRT_BOOTSTRAP_RESOLVE_CALLBACK callback, + _In_ DRT_BOOTSTRAP_RESOLVE_CONTEXT ResolveContext, + _Out_ BOOL* fFatalError + ); + + VOID (*EndResolve)( + _In_ const PVOID pvContext, + _In_ DRT_BOOTSTRAP_RESOLVE_CONTEXT ResolveContext + ); + + HRESULT (*Register)( + _In_ const PVOID pvContext, + _In_ const SOCKET_ADDRESS_LIST* pAddressList); + + VOID (*Unregister)( + _In_ const PVOID pvContext + ); + +} DRT_BOOTSTRAP_PROVIDER, *PDRT_BOOTSTRAP_PROVIDER; +typedef const DRT_BOOTSTRAP_PROVIDER *PCDRT_BOOTSTRAP_PROVIDER; + +typedef struct drt_settings_tag +{ + DWORD dwSize; + ULONG cbKey; + + BYTE bProtocolMajorVersion; + BYTE bProtocolMinorVersion; + + ULONG ulMaxRoutingAddresses; + PWSTR pwzDrtInstancePrefix; + HDRT_TRANSPORT hTransport; + + DRT_SECURITY_PROVIDER* pSecurityProvider; + DRT_BOOTSTRAP_PROVIDER* pBootstrapProvider; + DRT_SECURITY_MODE eSecurityMode; + +} DRT_SETTINGS, *PDRT_SETTINGS; + +typedef const DRT_SETTINGS *PCDRT_SETTINGS; + +typedef struct drt_search_info_tag +{ + DWORD dwSize; + BOOL fIterative; + BOOL fAllowCurrentInstanceMatch; + BOOL fAnyMatchInRange; + ULONG cMaxEndpoints; + DRT_DATA* pMaximumKey; + DRT_DATA* pMinimumKey; + +} DRT_SEARCH_INFO, *PDRT_SEARCH_INFO; +typedef const DRT_SEARCH_INFO *PCDRT_SEARCH_INFO; + +typedef struct _DRT_ADDRESS +{ + SOCKADDR_STORAGE socketAddress; + ULONG flags; + LONG nearness; + ULONG latency; + +} DRT_ADDRESS, *PDRT_ADDRESS; + +typedef struct _DRT_ADDRESS_LIST { + + ULONG AddressCount; + _Field_size_(AddressCount) DRT_ADDRESS AddressList[1]; + +} DRT_ADDRESS_LIST, *PDRT_ADDRESS_LIST; +typedef const DRT_ADDRESS_LIST *PCDRT_ADDRESS_LIST; + +typedef struct drt_search_result_tag +{ + DWORD dwSize; + DRT_MATCH_TYPE type; + PVOID pvContext; + DRT_REGISTRATION registration; + +} DRT_SEARCH_RESULT, *PDRT_SEARCH_RESULT; +typedef const DRT_SEARCH_RESULT *PCDRT_SEARCH_RESULT; + +typedef struct drt_event_data_tag +{ + DRT_EVENT_TYPE type; + HRESULT hr; + PVOID pvContext; + + union + { + struct + { + DRT_LEAFSET_KEY_CHANGE_TYPE change; + DRT_DATA localKey; + DRT_DATA remoteKey; + } leafsetKeyChange; + + struct + { + DRT_REGISTRATION_STATE state; + DRT_DATA localKey; + } registrationStateChange; + + struct + { + DRT_STATUS status; + struct + { + ULONG cntAddress; + PSOCKADDR_STORAGE pAddresses; + } bootstrapAddresses; + } statusChange; + }; +} DRT_EVENT_DATA, *PDRT_EVENT_DATA; +typedef const DRT_EVENT_DATA *PCDRT_EVENT_DATA; + + +////////////////////////////////////////////////////////////////////////////// +// DRT Default Module Management APIs + +HRESULT WINAPI DrtCreatePnrpBootstrapResolver( + _In_ BOOL fPublish, + _In_ PCWSTR pwzPeerName, + _In_opt_ PCWSTR pwzCloudName, + _In_opt_ PCWSTR pwzPublishingIdentity, + _Out_ DRT_BOOTSTRAP_PROVIDER** ppResolver); + +void WINAPI DrtDeletePnrpBootstrapResolver( + _In_ DRT_BOOTSTRAP_PROVIDER* pResolver); + +HRESULT WINAPI DrtCreateDnsBootstrapResolver( + _In_ USHORT port, + _In_ PCWSTR pwszAddress, + _Out_ DRT_BOOTSTRAP_PROVIDER** ppModule + ); + +void WINAPI DrtDeleteDnsBootstrapResolver( + _In_ DRT_BOOTSTRAP_PROVIDER* pResolver + ); + +HRESULT WINAPI DrtCreateIpv6UdpTransport( + DRT_SCOPE scope, + ULONG dwScopeId, + ULONG dwLocalityThreshold, + _Inout_ USHORT *pwPort, + _Out_ HDRT_TRANSPORT *phTransport); + +HRESULT WINAPI DrtDeleteIpv6UdpTransport( + _In_ HDRT_TRANSPORT hTransport); + +HRESULT WINAPI DrtCreateDerivedKeySecurityProvider( + _In_ PCCERT_CONTEXT pRootCert, + _In_opt_ PCCERT_CONTEXT pLocalCert, + _Out_ DRT_SECURITY_PROVIDER** ppSecurityProvider); + +HRESULT WINAPI DrtCreateDerivedKey( + _In_ PCCERT_CONTEXT pLocalCert, + _Out_ DRT_DATA* pKey); + +void WINAPI DrtDeleteDerivedKeySecurityProvider( + _In_ DRT_SECURITY_PROVIDER* pSecurityProvider); + +HRESULT WINAPI DrtCreateNullSecurityProvider( + _Out_ DRT_SECURITY_PROVIDER** ppSecurityProvider); + +void WINAPI DrtDeleteNullSecurityProvider( + _In_ DRT_SECURITY_PROVIDER* pSecurityProvider); + +////////////////////////////////////////////////////////////////////////////// +// DRT Lifetime Management APIs + +HRESULT WINAPI DrtOpen( + _In_ const DRT_SETTINGS* pSettings, + _In_opt_ HANDLE hEvent, + _In_opt_ const PVOID pvContext, + _Out_ HDRT *phDrt); + +VOID WINAPI DrtClose( + _In_ HDRT hDrt); + +HRESULT WINAPI DrtGetEventDataSize( + _In_ HDRT hDrt, + _Out_ ULONG *pulEventDataLen); + +HRESULT WINAPI DrtGetEventData( + _In_ HDRT hDrt, + _In_ ULONG ulEventDataLen, + _Out_writes_bytes_all_(ulEventDataLen) DRT_EVENT_DATA *pEventData); + +////////////////////////////////////////////////////////////////////////////// +// DRT Key Registration APIs + +HRESULT WINAPI DrtRegisterKey( + _In_ HDRT hDrt, + _In_ DRT_REGISTRATION *pRegistration, + _In_opt_ PVOID pvKeyContext, + _Out_ HDRT_REGISTRATION_CONTEXT *phKeyRegistration); + +HRESULT WINAPI DrtUpdateKey( + _In_ HDRT_REGISTRATION_CONTEXT hKeyRegistration, + _In_ DRT_DATA *pAppData + ); + +VOID WINAPI DrtUnregisterKey( + _In_ HDRT_REGISTRATION_CONTEXT hKeyRegistration); + +////////////////////////////////////////////////////////////////////////////// +// DRT Search APIs + +HRESULT WINAPI DrtStartSearch( + _In_ HDRT hDrt, + _In_ DRT_DATA *pKey, + _In_opt_ const DRT_SEARCH_INFO *pInfo, + ULONG timeout, + _In_ HANDLE hEvent, + _In_opt_ const PVOID pvContext, + _Out_ HDRT_SEARCH_CONTEXT* hSearchContext); + +HRESULT WINAPI DrtContinueSearch( + _In_ HDRT_SEARCH_CONTEXT hSearchContext); + +HRESULT WINAPI DrtGetSearchResultSize( + _In_ HDRT_SEARCH_CONTEXT hSearchContext, + _Out_ ULONG *pulSearchResultSize); + +HRESULT WINAPI DrtGetSearchResult( + _In_ HDRT_SEARCH_CONTEXT hSearchContext, + _Inout_ ULONG ulSearchResultSize, + _Out_writes_bytes_all_(ulSearchResultSize) DRT_SEARCH_RESULT *pSearchResult); + +HRESULT WINAPI DrtGetSearchPathSize( + _In_ HDRT_SEARCH_CONTEXT hSearchContext, + _Out_ ULONG *pulSearchPathSize); + +HRESULT WINAPI DrtGetSearchPath( + _In_ HDRT_SEARCH_CONTEXT hSearchContext, + _Inout_ ULONG ulSearchPathSize, + _Out_writes_bytes_all_(ulSearchPathSize) DRT_ADDRESS_LIST *pSearchPath); + +HRESULT WINAPI DrtEndSearch( + _In_ HDRT_SEARCH_CONTEXT hSearchContext); + +////////////////////////////////////////////////////////////////////////////// +// DRT Instance name related APIs + +HRESULT WINAPI DrtGetInstanceName( + _In_ HDRT hDrt, + _In_ ULONG ulcbInstanceNameSize, + _Out_writes_bytes_all_(ulcbInstanceNameSize) PWSTR pwzDrtInstanceName); + +HRESULT WINAPI DrtGetInstanceNameSize( + _In_ HDRT hDrt, + _Out_ ULONG* pulcbInstanceNameSize); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _DRT_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dsconf.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dsconf.h new file mode 100644 index 0000000000000000000000000000000000000000..8e024763bacec06f85de873699a565f31804201d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dsconf.h @@ -0,0 +1,204 @@ +/*==========================================================================; + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * + * File: dsconf.h + * Content: DirectSound configuration interface include file + * + **************************************************************************/ + +#ifndef __DSCONF_INCLUDED__ +#define __DSCONF_INCLUDED__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifndef __DSOUND_INCLUDED__ +#error dsound.h not included +#endif // __DSOUND_INCLUDED__ + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + + +// DirectSound Configuration Component GUID {11AB3EC0-25EC-11d1-A4D8-00C04FC28ACA} +DEFINE_GUID(CLSID_DirectSoundPrivate, 0x11ab3ec0, 0x25ec, 0x11d1, 0xa4, 0xd8, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); + + +// +// DirectSound Device Properties {84624F82-25EC-11d1-A4D8-00C04FC28ACA} +// + +DEFINE_GUID(DSPROPSETID_DirectSoundDevice, 0x84624f82, 0x25ec, 0x11d1, 0xa4, 0xd8, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); + +typedef enum +{ + DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A = 1, + DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1 = 2, + DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1 = 3, + DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W = 4, + DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A = 5, + DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W = 6, + DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A = 7, + DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W = 8, +} DSPROPERTY_DIRECTSOUNDDEVICE; + +#if DIRECTSOUND_VERSION >= 0x0700 +#ifdef UNICODE +#define DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W +#define DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W +#define DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W +#else // UNICODE +#define DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A +#define DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A +#define DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A +#endif // UNICODE +#else // DIRECTSOUND_VERSION >= 0x0700 +#define DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A +#define DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1 +#define DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1 +#endif // DIRECTSOUND_VERSION >= 0x0700 + +typedef enum +{ + DIRECTSOUNDDEVICE_TYPE_EMULATED, + DIRECTSOUNDDEVICE_TYPE_VXD, + DIRECTSOUNDDEVICE_TYPE_WDM +} DIRECTSOUNDDEVICE_TYPE; + +typedef enum +{ + DIRECTSOUNDDEVICE_DATAFLOW_RENDER, + DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE +} DIRECTSOUNDDEVICE_DATAFLOW; + + +typedef struct _DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A_DATA +{ + LPSTR DeviceName; // waveIn/waveOut device name + DIRECTSOUNDDEVICE_DATAFLOW DataFlow; // Data flow (i.e. waveIn or waveOut) + GUID DeviceId; // DirectSound device id +} DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A_DATA, *PDSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A_DATA; + +typedef struct _DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W_DATA +{ + LPWSTR DeviceName; // waveIn/waveOut device name + DIRECTSOUNDDEVICE_DATAFLOW DataFlow; // Data flow (i.e. waveIn or waveOut) + GUID DeviceId; // DirectSound device id +} DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W_DATA, *PDSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W_DATA; + +#ifdef UNICODE +#define DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_DATA DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W_DATA +#define PDSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_DATA PDSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_W_DATA +#else // UNICODE +#define DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_DATA DSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A_DATA +#define PDSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_DATA PDSPROPERTY_DIRECTSOUNDDEVICE_WAVEDEVICEMAPPING_A_DATA +#endif // UNICODE + +typedef struct _DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA +{ + GUID DeviceId; // DirectSound device id + CHAR DescriptionA[0x100]; // Device description (ANSI) + WCHAR DescriptionW[0x100]; // Device description (Unicode) + CHAR ModuleA[MAX_PATH]; // Device driver module (ANSI) + WCHAR ModuleW[MAX_PATH]; // Device driver module (Unicode) + DIRECTSOUNDDEVICE_TYPE Type; // Device type + DIRECTSOUNDDEVICE_DATAFLOW DataFlow; // Device dataflow + ULONG WaveDeviceId; // Wave device id + ULONG Devnode; // Devnode (or DevInst) +} DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA, *PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA; + +typedef struct _DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA +{ + DIRECTSOUNDDEVICE_TYPE Type; // Device type + DIRECTSOUNDDEVICE_DATAFLOW DataFlow; // Device dataflow + GUID DeviceId; // DirectSound device id + LPSTR Description; // Device description + LPSTR Module; // Device driver module + LPSTR Interface; // Device interface + ULONG WaveDeviceId; // Wave device id +} DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA, *PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA; + +typedef struct _DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA +{ + DIRECTSOUNDDEVICE_TYPE Type; // Device type + DIRECTSOUNDDEVICE_DATAFLOW DataFlow; // Device dataflow + GUID DeviceId; // DirectSound device id + LPWSTR Description; // Device description + LPWSTR Module; // Device driver module + LPWSTR Interface; // Device interface + ULONG WaveDeviceId; // Wave device id +} DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA, *PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA; + +#if DIRECTSOUND_VERSION >= 0x0700 +#ifdef UNICODE +#define DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_DATA DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA +#define PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_DATA PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA +#else // UNICODE +#define DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_DATA DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA +#define PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_DATA PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA +#endif // UNICODE +#else // DIRECTSOUND_VERSION >= 0x0700 +#define DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_DATA DSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA +#define PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_DATA PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA +#endif // DIRECTSOUND_VERSION >= 0x0700 + +typedef BOOL (CALLBACK *LPFNDIRECTSOUNDDEVICEENUMERATECALLBACK1)(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_1_DATA, LPVOID); +typedef BOOL (CALLBACK *LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKA)(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_A_DATA, LPVOID); +typedef BOOL (CALLBACK *LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKW)(PDSPROPERTY_DIRECTSOUNDDEVICE_DESCRIPTION_W_DATA, LPVOID); + +#if DIRECTSOUND_VERSION >= 0x0700 +#ifdef UNICODE +#define LPFNDIRECTSOUNDDEVICEENUMERATECALLBACK LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKW +#else // UNICODE +#define LPFNDIRECTSOUNDDEVICEENUMERATECALLBACK LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKA +#endif // UNICODE +#else // DIRECTSOUND_VERSION >= 0x0700 +#define LPFNDIRECTSOUNDDEVICEENUMERATECALLBACK LPFNDIRECTSOUNDDEVICEENUMERATECALLBACK1 +#endif // DIRECTSOUND_VERSION >= 0x0700 + +typedef struct _DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1_DATA +{ + LPFNDIRECTSOUNDDEVICEENUMERATECALLBACK1 Callback; // Callback function pointer + LPVOID Context; // Callback function context argument +} DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1_DATA, *PDSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1_DATA; + +typedef struct _DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A_DATA +{ + LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKA Callback; // Callback function pointer + LPVOID Context; // Callback function context argument +} DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A_DATA, *PDSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A_DATA; + +typedef struct _DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W_DATA +{ + LPFNDIRECTSOUNDDEVICEENUMERATECALLBACKW Callback; // Callback function pointer + LPVOID Context; // Callback function context argument +} DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W_DATA, *PDSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W_DATA; + +#if DIRECTSOUND_VERSION >= 0x0700 +#ifdef UNICODE +#define DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_DATA DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W_DATA +#define PDSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_DATA PDSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_W_DATA +#else // UNICODE +#define DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_DATA DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A_DATA +#define PDSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_DATA PDSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_A_DATA +#endif // UNICODE +#else // DIRECTSOUND_VERSION >= 0x0700 +#define DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_DATA DSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1_DATA +#define PDSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_DATA PDSPROPERTY_DIRECTSOUNDDEVICE_ENUMERATE_1_DATA +#endif // DIRECTSOUND_VERSION >= 0x0700 + + +#ifdef __cplusplus +} +#endif // __cplusplus + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __DSCONF_INCLUDED__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dshow.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dshow.h new file mode 100644 index 0000000000000000000000000000000000000000..27458a5ef72d7db38d220b2a973df37c22cf38d5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dshow.h @@ -0,0 +1,109 @@ +//------------------------------------------------------------------------------ +// File: DShow.h +// +// Desc: DirectShow top-level include file +// +// Copyright (c) 2000-2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + +#ifndef __DSHOW_INCLUDED__ +#define __DSHOW_INCLUDED__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/////////////////////////////////////////////////////////////////////////// +// Set up constants & pragmas for the compiler +/////////////////////////////////////////////////////////////////////////// +#ifdef _MSC_VER +#if (_MSC_VER >= 1200) +#pragma warning(push) +#endif +// disable some level-4 warnings, use #pragma warning(default:###) to re-enable +#pragma warning(disable:4100) // warning C4100: unreferenced formal parameter +#pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union +#pragma warning(disable:4511) // warning C4511: copy constructor could not be generated +#pragma warning(disable:4512) // warning C4512: assignment operator could not be generated +#pragma warning(disable:4514) // warning C4514: "unreferenced inline function has been removed" + +#if _MSC_VER>=1100 +#define AM_NOVTABLE __declspec(novtable) +#else +#define AM_NOVTABLE +#endif +#endif // MSC_VER + +/////////////////////////////////////////////////////////////////////////// +// Include standard Windows files +/////////////////////////////////////////////////////////////////////////// +#include +#include +#include +#include +#include + +#ifndef NO_DSHOW_STRSAFE +#define NO_SHLWAPI_STRFCNS +#include +#endif + +#ifndef NUMELMS + #define NUMELMS(aa) (sizeof(aa)/sizeof((aa)[0])) +#endif + +/////////////////////////////////////////////////////////////////////////// +// Include DirectShow include files +/////////////////////////////////////////////////////////////////////////// +#include // Generated IDL header file for streams interfaces +#include // ActiveMovie video interfaces and definitions + +#ifdef DSHOW_USE_AMAUDIO +#include // ActiveMovie audio interfaces and definitions +#endif + +#include // generated from control.odl +#include // event code definitions +#include // declaration of type GUIDs and well-known clsids +#include // HRESULT status and error definitions +#include // External device control interface defines +#include // audio filter device error event codes +#include // DVD error event codes + +/////////////////////////////////////////////////////////////////////////// +// Define OLE Automation constants +/////////////////////////////////////////////////////////////////////////// +#ifndef OATRUE +#define OATRUE (-1) +#endif // OATRUE +#ifndef OAFALSE +#define OAFALSE (0) +#endif // OAFALSE + +/////////////////////////////////////////////////////////////////////////// +// Define Win64 interfaces if not already defined +/////////////////////////////////////////////////////////////////////////// + +// InterlockedExchangePointer +#ifndef InterlockedExchangePointer +#define InterlockedExchangePointer(Target, Value) \ + (PVOID)InterlockedExchange((PLONG)(Target), (LONG)(Value)) +#endif + +#ifdef _MSC_VER +#if (_MSC_VER >= 1200) +#pragma warning(pop) +#else +#pragma warning(default:4100) // warning C4100: unreferenced formal parameter +#pragma warning(default:4201) // warning C4201: nonstandard extension used : nameless struct/union +#pragma warning(default:4511) // warning C4511: copy constructor could not be generated +#pragma warning(default:4512) // warning C4512: assignment operator could not be generated +#pragma warning(default:4514) // warning C4514: "unreferenced inline function has been removed" +#endif +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __DSHOW_INCLUDED__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dshowasf.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dshowasf.h new file mode 100644 index 0000000000000000000000000000000000000000..571810504e6968123f8c219f5eb118b83557c0a3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dshowasf.h @@ -0,0 +1,692 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dshowasf_h__ +#define __dshowasf_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAMWMBufferPass_FWD_DEFINED__ +#define __IAMWMBufferPass_FWD_DEFINED__ +typedef interface IAMWMBufferPass IAMWMBufferPass; + +#endif /* __IAMWMBufferPass_FWD_DEFINED__ */ + + +#ifndef __IAMWMBufferPassCallback_FWD_DEFINED__ +#define __IAMWMBufferPassCallback_FWD_DEFINED__ +typedef interface IAMWMBufferPassCallback IAMWMBufferPassCallback; + +#endif /* __IAMWMBufferPassCallback_FWD_DEFINED__ */ + + +#ifndef __IConfigAsfWriter_FWD_DEFINED__ +#define __IConfigAsfWriter_FWD_DEFINED__ +typedef interface IConfigAsfWriter IConfigAsfWriter; + +#endif /* __IConfigAsfWriter_FWD_DEFINED__ */ + + +#ifndef __IConfigAsfWriter2_FWD_DEFINED__ +#define __IConfigAsfWriter2_FWD_DEFINED__ +typedef interface IConfigAsfWriter2 IConfigAsfWriter2; + +#endif /* __IConfigAsfWriter2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "objidl.h" +#include "strmif.h" +#include "wmsdkidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dshowasf_0000_0000 */ +/* [local] */ + +//========================================================================= +// +// Microsoft Windows Media Technologies +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +//========================================================================= +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +EXTERN_GUID( IID_IConfigAsfWriter2,0x7989ccaa, 0x53f0, 0x44f0, 0x88, 0x4a, 0xf3, 0xb0, 0x3f, 0x6a, 0xe0, 0x66 ); +EXTERN_GUID( IID_IConfigAsfWriter,0x45086030,0xF7E4,0x486a,0xB5,0x04,0x82,0x6B,0xB5,0x79,0x2A,0x3B ); +EXTERN_GUID( IID_IAMWMBufferPass,0x6dd816d7, 0xe740, 0x4123, 0x9e, 0x24, 0x24, 0x44, 0x41, 0x26, 0x44, 0xd8 ); +EXTERN_GUID( IID_IAMWMBufferPassCallback,0xb25b8372, 0xd2d2, 0x44b2, 0x86, 0x53, 0x1b, 0x8d, 0xae, 0x33, 0x24, 0x89 ); +#ifndef EC_PREPROCESS_COMPLETE +#define EC_PREPROCESS_COMPLETE 0x56 +#endif + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_dshowasf_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dshowasf_0000_0000_v0_0_s_ifspec; + +#ifndef __IAMWMBufferPass_INTERFACE_DEFINED__ +#define __IAMWMBufferPass_INTERFACE_DEFINED__ + +/* interface IAMWMBufferPass */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAMWMBufferPass; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6DD816D7-E740-4123-9E24-2444412644D8") + IAMWMBufferPass : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetNotify( + /* [in] */ __RPC__in_opt IAMWMBufferPassCallback *pCallback) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAMWMBufferPassVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAMWMBufferPass * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAMWMBufferPass * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAMWMBufferPass * This); + + DECLSPEC_XFGVIRT(IAMWMBufferPass, SetNotify) + HRESULT ( STDMETHODCALLTYPE *SetNotify )( + __RPC__in IAMWMBufferPass * This, + /* [in] */ __RPC__in_opt IAMWMBufferPassCallback *pCallback); + + END_INTERFACE + } IAMWMBufferPassVtbl; + + interface IAMWMBufferPass + { + CONST_VTBL struct IAMWMBufferPassVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAMWMBufferPass_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAMWMBufferPass_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAMWMBufferPass_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAMWMBufferPass_SetNotify(This,pCallback) \ + ( (This)->lpVtbl -> SetNotify(This,pCallback) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAMWMBufferPass_INTERFACE_DEFINED__ */ + + +#ifndef __IAMWMBufferPassCallback_INTERFACE_DEFINED__ +#define __IAMWMBufferPassCallback_INTERFACE_DEFINED__ + +/* interface IAMWMBufferPassCallback */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IAMWMBufferPassCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B25B8372-D2D2-44b2-8653-1B8DAE332489") + IAMWMBufferPassCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Notify( + /* [in] */ __RPC__in_opt INSSBuffer3 *pNSSBuffer3, + /* [in] */ __RPC__in_opt IPin *pPin, + /* [in] */ __RPC__in REFERENCE_TIME *prtStart, + /* [in] */ __RPC__in REFERENCE_TIME *prtEnd) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAMWMBufferPassCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAMWMBufferPassCallback * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAMWMBufferPassCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAMWMBufferPassCallback * This); + + DECLSPEC_XFGVIRT(IAMWMBufferPassCallback, Notify) + HRESULT ( STDMETHODCALLTYPE *Notify )( + __RPC__in IAMWMBufferPassCallback * This, + /* [in] */ __RPC__in_opt INSSBuffer3 *pNSSBuffer3, + /* [in] */ __RPC__in_opt IPin *pPin, + /* [in] */ __RPC__in REFERENCE_TIME *prtStart, + /* [in] */ __RPC__in REFERENCE_TIME *prtEnd); + + END_INTERFACE + } IAMWMBufferPassCallbackVtbl; + + interface IAMWMBufferPassCallback + { + CONST_VTBL struct IAMWMBufferPassCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAMWMBufferPassCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAMWMBufferPassCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAMWMBufferPassCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAMWMBufferPassCallback_Notify(This,pNSSBuffer3,pPin,prtStart,prtEnd) \ + ( (This)->lpVtbl -> Notify(This,pNSSBuffer3,pPin,prtStart,prtEnd) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAMWMBufferPassCallback_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dshowasf_0000_0002 */ +/* [local] */ + + +enum _AM_ASFWRITERCONFIG_PARAM + { + AM_CONFIGASFWRITER_PARAM_AUTOINDEX = 1, + AM_CONFIGASFWRITER_PARAM_MULTIPASS = ( AM_CONFIGASFWRITER_PARAM_AUTOINDEX + 1 ) , + AM_CONFIGASFWRITER_PARAM_DONTCOMPRESS = ( AM_CONFIGASFWRITER_PARAM_MULTIPASS + 1 ) + } ; + + +extern RPC_IF_HANDLE __MIDL_itf_dshowasf_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dshowasf_0000_0002_v0_0_s_ifspec; + +#ifndef __IConfigAsfWriter_INTERFACE_DEFINED__ +#define __IConfigAsfWriter_INTERFACE_DEFINED__ + +/* interface IConfigAsfWriter */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IConfigAsfWriter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("45086030-F7E4-486a-B504-826BB5792A3B") + IConfigAsfWriter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ConfigureFilterUsingProfileId( + /* [in] */ DWORD dwProfileId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentProfileId( + /* [out] */ __RPC__out DWORD *pdwProfileId) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConfigureFilterUsingProfileGuid( + /* [in] */ __RPC__in REFGUID guidProfile) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentProfileGuid( + /* [out] */ __RPC__out GUID *pProfileGuid) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConfigureFilterUsingProfile( + /* [in] */ __RPC__in_opt IWMProfile *pProfile) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentProfile( + /* [out] */ __RPC__deref_out_opt IWMProfile **ppProfile) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetIndexMode( + /* [in] */ BOOL bIndexFile) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIndexMode( + /* [out] */ __RPC__out BOOL *pbIndexFile) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IConfigAsfWriterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IConfigAsfWriter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IConfigAsfWriter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IConfigAsfWriter * This); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, ConfigureFilterUsingProfileId) + HRESULT ( STDMETHODCALLTYPE *ConfigureFilterUsingProfileId )( + __RPC__in IConfigAsfWriter * This, + /* [in] */ DWORD dwProfileId); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, GetCurrentProfileId) + HRESULT ( STDMETHODCALLTYPE *GetCurrentProfileId )( + __RPC__in IConfigAsfWriter * This, + /* [out] */ __RPC__out DWORD *pdwProfileId); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, ConfigureFilterUsingProfileGuid) + HRESULT ( STDMETHODCALLTYPE *ConfigureFilterUsingProfileGuid )( + __RPC__in IConfigAsfWriter * This, + /* [in] */ __RPC__in REFGUID guidProfile); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, GetCurrentProfileGuid) + HRESULT ( STDMETHODCALLTYPE *GetCurrentProfileGuid )( + __RPC__in IConfigAsfWriter * This, + /* [out] */ __RPC__out GUID *pProfileGuid); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, ConfigureFilterUsingProfile) + HRESULT ( STDMETHODCALLTYPE *ConfigureFilterUsingProfile )( + __RPC__in IConfigAsfWriter * This, + /* [in] */ __RPC__in_opt IWMProfile *pProfile); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, GetCurrentProfile) + HRESULT ( STDMETHODCALLTYPE *GetCurrentProfile )( + __RPC__in IConfigAsfWriter * This, + /* [out] */ __RPC__deref_out_opt IWMProfile **ppProfile); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, SetIndexMode) + HRESULT ( STDMETHODCALLTYPE *SetIndexMode )( + __RPC__in IConfigAsfWriter * This, + /* [in] */ BOOL bIndexFile); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, GetIndexMode) + HRESULT ( STDMETHODCALLTYPE *GetIndexMode )( + __RPC__in IConfigAsfWriter * This, + /* [out] */ __RPC__out BOOL *pbIndexFile); + + END_INTERFACE + } IConfigAsfWriterVtbl; + + interface IConfigAsfWriter + { + CONST_VTBL struct IConfigAsfWriterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IConfigAsfWriter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IConfigAsfWriter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IConfigAsfWriter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IConfigAsfWriter_ConfigureFilterUsingProfileId(This,dwProfileId) \ + ( (This)->lpVtbl -> ConfigureFilterUsingProfileId(This,dwProfileId) ) + +#define IConfigAsfWriter_GetCurrentProfileId(This,pdwProfileId) \ + ( (This)->lpVtbl -> GetCurrentProfileId(This,pdwProfileId) ) + +#define IConfigAsfWriter_ConfigureFilterUsingProfileGuid(This,guidProfile) \ + ( (This)->lpVtbl -> ConfigureFilterUsingProfileGuid(This,guidProfile) ) + +#define IConfigAsfWriter_GetCurrentProfileGuid(This,pProfileGuid) \ + ( (This)->lpVtbl -> GetCurrentProfileGuid(This,pProfileGuid) ) + +#define IConfigAsfWriter_ConfigureFilterUsingProfile(This,pProfile) \ + ( (This)->lpVtbl -> ConfigureFilterUsingProfile(This,pProfile) ) + +#define IConfigAsfWriter_GetCurrentProfile(This,ppProfile) \ + ( (This)->lpVtbl -> GetCurrentProfile(This,ppProfile) ) + +#define IConfigAsfWriter_SetIndexMode(This,bIndexFile) \ + ( (This)->lpVtbl -> SetIndexMode(This,bIndexFile) ) + +#define IConfigAsfWriter_GetIndexMode(This,pbIndexFile) \ + ( (This)->lpVtbl -> GetIndexMode(This,pbIndexFile) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IConfigAsfWriter_INTERFACE_DEFINED__ */ + + +#ifndef __IConfigAsfWriter2_INTERFACE_DEFINED__ +#define __IConfigAsfWriter2_INTERFACE_DEFINED__ + +/* interface IConfigAsfWriter2 */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IConfigAsfWriter2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7989CCAA-53F0-44f0-884A-F3B03F6AE066") + IConfigAsfWriter2 : public IConfigAsfWriter + { + public: + virtual HRESULT STDMETHODCALLTYPE StreamNumFromPin( + /* [in] */ __RPC__in_opt IPin *pPin, + /* [out] */ __RPC__out WORD *pwStreamNum) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetParam( + /* [in] */ DWORD dwParam, + /* [in] */ DWORD dwParam1, + /* [in] */ DWORD dwParam2) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParam( + /* [in] */ DWORD dwParam, + /* [out] */ __RPC__out DWORD *pdwParam1, + /* [out] */ __RPC__out DWORD *pdwParam2) = 0; + + virtual HRESULT STDMETHODCALLTYPE ResetMultiPassState( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IConfigAsfWriter2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IConfigAsfWriter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IConfigAsfWriter2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IConfigAsfWriter2 * This); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, ConfigureFilterUsingProfileId) + HRESULT ( STDMETHODCALLTYPE *ConfigureFilterUsingProfileId )( + __RPC__in IConfigAsfWriter2 * This, + /* [in] */ DWORD dwProfileId); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, GetCurrentProfileId) + HRESULT ( STDMETHODCALLTYPE *GetCurrentProfileId )( + __RPC__in IConfigAsfWriter2 * This, + /* [out] */ __RPC__out DWORD *pdwProfileId); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, ConfigureFilterUsingProfileGuid) + HRESULT ( STDMETHODCALLTYPE *ConfigureFilterUsingProfileGuid )( + __RPC__in IConfigAsfWriter2 * This, + /* [in] */ __RPC__in REFGUID guidProfile); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, GetCurrentProfileGuid) + HRESULT ( STDMETHODCALLTYPE *GetCurrentProfileGuid )( + __RPC__in IConfigAsfWriter2 * This, + /* [out] */ __RPC__out GUID *pProfileGuid); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, ConfigureFilterUsingProfile) + HRESULT ( STDMETHODCALLTYPE *ConfigureFilterUsingProfile )( + __RPC__in IConfigAsfWriter2 * This, + /* [in] */ __RPC__in_opt IWMProfile *pProfile); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, GetCurrentProfile) + HRESULT ( STDMETHODCALLTYPE *GetCurrentProfile )( + __RPC__in IConfigAsfWriter2 * This, + /* [out] */ __RPC__deref_out_opt IWMProfile **ppProfile); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, SetIndexMode) + HRESULT ( STDMETHODCALLTYPE *SetIndexMode )( + __RPC__in IConfigAsfWriter2 * This, + /* [in] */ BOOL bIndexFile); + + DECLSPEC_XFGVIRT(IConfigAsfWriter, GetIndexMode) + HRESULT ( STDMETHODCALLTYPE *GetIndexMode )( + __RPC__in IConfigAsfWriter2 * This, + /* [out] */ __RPC__out BOOL *pbIndexFile); + + DECLSPEC_XFGVIRT(IConfigAsfWriter2, StreamNumFromPin) + HRESULT ( STDMETHODCALLTYPE *StreamNumFromPin )( + __RPC__in IConfigAsfWriter2 * This, + /* [in] */ __RPC__in_opt IPin *pPin, + /* [out] */ __RPC__out WORD *pwStreamNum); + + DECLSPEC_XFGVIRT(IConfigAsfWriter2, SetParam) + HRESULT ( STDMETHODCALLTYPE *SetParam )( + __RPC__in IConfigAsfWriter2 * This, + /* [in] */ DWORD dwParam, + /* [in] */ DWORD dwParam1, + /* [in] */ DWORD dwParam2); + + DECLSPEC_XFGVIRT(IConfigAsfWriter2, GetParam) + HRESULT ( STDMETHODCALLTYPE *GetParam )( + __RPC__in IConfigAsfWriter2 * This, + /* [in] */ DWORD dwParam, + /* [out] */ __RPC__out DWORD *pdwParam1, + /* [out] */ __RPC__out DWORD *pdwParam2); + + DECLSPEC_XFGVIRT(IConfigAsfWriter2, ResetMultiPassState) + HRESULT ( STDMETHODCALLTYPE *ResetMultiPassState )( + __RPC__in IConfigAsfWriter2 * This); + + END_INTERFACE + } IConfigAsfWriter2Vtbl; + + interface IConfigAsfWriter2 + { + CONST_VTBL struct IConfigAsfWriter2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IConfigAsfWriter2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IConfigAsfWriter2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IConfigAsfWriter2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IConfigAsfWriter2_ConfigureFilterUsingProfileId(This,dwProfileId) \ + ( (This)->lpVtbl -> ConfigureFilterUsingProfileId(This,dwProfileId) ) + +#define IConfigAsfWriter2_GetCurrentProfileId(This,pdwProfileId) \ + ( (This)->lpVtbl -> GetCurrentProfileId(This,pdwProfileId) ) + +#define IConfigAsfWriter2_ConfigureFilterUsingProfileGuid(This,guidProfile) \ + ( (This)->lpVtbl -> ConfigureFilterUsingProfileGuid(This,guidProfile) ) + +#define IConfigAsfWriter2_GetCurrentProfileGuid(This,pProfileGuid) \ + ( (This)->lpVtbl -> GetCurrentProfileGuid(This,pProfileGuid) ) + +#define IConfigAsfWriter2_ConfigureFilterUsingProfile(This,pProfile) \ + ( (This)->lpVtbl -> ConfigureFilterUsingProfile(This,pProfile) ) + +#define IConfigAsfWriter2_GetCurrentProfile(This,ppProfile) \ + ( (This)->lpVtbl -> GetCurrentProfile(This,ppProfile) ) + +#define IConfigAsfWriter2_SetIndexMode(This,bIndexFile) \ + ( (This)->lpVtbl -> SetIndexMode(This,bIndexFile) ) + +#define IConfigAsfWriter2_GetIndexMode(This,pbIndexFile) \ + ( (This)->lpVtbl -> GetIndexMode(This,pbIndexFile) ) + + +#define IConfigAsfWriter2_StreamNumFromPin(This,pPin,pwStreamNum) \ + ( (This)->lpVtbl -> StreamNumFromPin(This,pPin,pwStreamNum) ) + +#define IConfigAsfWriter2_SetParam(This,dwParam,dwParam1,dwParam2) \ + ( (This)->lpVtbl -> SetParam(This,dwParam,dwParam1,dwParam2) ) + +#define IConfigAsfWriter2_GetParam(This,dwParam,pdwParam1,pdwParam2) \ + ( (This)->lpVtbl -> GetParam(This,dwParam,pdwParam1,pdwParam2) ) + +#define IConfigAsfWriter2_ResetMultiPassState(This) \ + ( (This)->lpVtbl -> ResetMultiPassState(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IConfigAsfWriter2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dshowasf_0000_0004 */ +/* [local] */ + +//////////////////////////////////////////////////////////////// +// +// Windows Media Filters compatibility option flags +// +static DWORD EXCLUDE_SCRIPT_STREAM_DELIVERY_SYNCHRONIZATION = 0x00000001; + +//////////////////////////////////////////////////////////////// +// +// ATOM strings to match compatibility option flags above for certain applications that don't want to (or not allowed to) update registry entries +// These need to be setup by the application using the WM filters to enable the particular functionality +// +static const WCHAR* g_wszExcludeScriptStreamDeliverySynchronization = L"ExcludeScriptStreamDeliverySynchronization"; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dshowasf_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dshowasf_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dshowasf.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dshowasf.idl new file mode 100644 index 0000000000000000000000000000000000000000..89c562b4563b7b69ddc2a950dd041f0030be05d1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dshowasf.idl @@ -0,0 +1,187 @@ +//*@@@+++@@@@****************************************************************** +// +// Microsoft Windows Media +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//*@@@---@@@@****************************************************************** +// +cpp_quote( "//=========================================================================" ) +cpp_quote( "//" ) +cpp_quote( "// Microsoft Windows Media Technologies" ) +cpp_quote( "// Copyright (C) Microsoft Corporation. All Rights Reserved." ) +cpp_quote( "//" ) +cpp_quote( "//=========================================================================" ) + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl"; +import "objidl.idl"; +import "strmif.idl"; // for media type and time definitions +import "wmsdkidl.idl"; + +cpp_quote( "EXTERN_GUID( IID_IConfigAsfWriter2,0x7989ccaa, 0x53f0, 0x44f0, 0x88, 0x4a, 0xf3, 0xb0, 0x3f, 0x6a, 0xe0, 0x66 );" ) +cpp_quote( "EXTERN_GUID( IID_IConfigAsfWriter,0x45086030,0xF7E4,0x486a,0xB5,0x04,0x82,0x6B,0xB5,0x79,0x2A,0x3B );" ) + +cpp_quote( "EXTERN_GUID( IID_IAMWMBufferPass,0x6dd816d7, 0xe740, 0x4123, 0x9e, 0x24, 0x24, 0x44, 0x41, 0x26, 0x44, 0xd8 );" ) +cpp_quote( "EXTERN_GUID( IID_IAMWMBufferPassCallback,0xb25b8372, 0xd2d2, 0x44b2, 0x86, 0x53, 0x1b, 0x8d, 0xae, 0x33, 0x24, 0x89 );" ) + +cpp_quote( "#ifndef EC_PREPROCESS_COMPLETE" ) +cpp_quote( "#define EC_PREPROCESS_COMPLETE 0x56" ) +cpp_quote( "#endif" ) + +interface IConfigAsfWriter; +interface IConfigAsfWriter2; +interface IAMWMBufferPass; +interface IAMWMBufferPassCallback; +interface IWMProfile; +interface IWMProfile; + + +// Interface used to setup callback for app to set/get properties on WindowsMedia buffers that +// are passed by the ASF reader and writer filters +[ +object, +uuid(6DD816D7-E740-4123-9E24-2444412644D8), +pointer_default(unique) +] +interface IAMWMBufferPass : IUnknown +{ + + // + // set the interface to use for callback notification + // + HRESULT SetNotify( [in] IAMWMBufferPassCallback *pCallback ); +} + +// Callback interface used to notify that a WindowMedia buffer is being passed. Typically implemented +// by the app and called by the ASF writer and reader filters. +[ +object, +uuid(B25B8372-D2D2-44b2-8653-1B8DAE332489), +pointer_default(unique) +] +interface IAMWMBufferPassCallback : IUnknown +{ + // + // give the callback receiver a chance to examine + // (and act on) the INSSBuffer3 before passing on + // + HRESULT Notify( [in] INSSBuffer3 *pNSSBuffer3 + , [in] IPin * pPin + , [in] REFERENCE_TIME *prtStart + , [in] REFERENCE_TIME *prtEnd ); +} + + +// ASF Writer filter paramaters for IConfigAsfWriter2 interface +enum _AM_ASFWRITERCONFIG_PARAM { + AM_CONFIGASFWRITER_PARAM_AUTOINDEX = 1, // dynamic indexing, lParam1 boolean, lParam2 + AM_CONFIGASFWRITER_PARAM_MULTIPASS, // multipass encoding, app should be able + // to handle EC_PREPROCESS_COMPLETE events + AM_CONFIGASFWRITER_PARAM_DONTCOMPRESS // configure writer to take audio and video input data + // as-is, without any recompression, useful for repackaging + // content in the ASF container +}; + +// Interface to control the ASF writer (version 2) +[ +object, +uuid(7989CCAA-53F0-44f0-884A-F3B03F6AE066), +pointer_default(unique) +] +interface IConfigAsfWriter2 : IConfigAsfWriter +{ + // + // Helper method to allow caller to pass in a pin pointer and get back the associated + // stream number. This is helpful when using WMF SDK interfaces directly to work with + // stream-specific properties. + // + HRESULT StreamNumFromPin( [in] IPin *pPin, [out] WORD *pwStreamNum ); + + // Set value corresponding to the passed in parameter id + HRESULT SetParam( + [in] DWORD dwParam, + [in] DWORD dwParam1, + [in] DWORD dwParam2 // not used, must be 0 + ); + + // Get value corresponding to the passed in parameter id + HRESULT GetParam( + [in] DWORD dwParam, + [out] DWORD *pdwParam1, + [out] DWORD *pdwParam2 // not used, must be 0 + ); + + // + // Multipass encoding + // + HRESULT ResetMultiPassState( void ); + +} + +// Interface to control the ASF writer +[ +object, +uuid(45086030-F7E4-486a-B504-826BB5792A3B), +pointer_default(unique) +] +interface IConfigAsfWriter : IUnknown +{ + // + // The user is expected to enumerate profiles using the wmsdk IWMProfileManager + // method and then pass the desired profile index to the ASF Writer filter via this + // method. The filter will then try to configure itself for the selected profile. + // + // NOTE: The following 2 XXXProfileId methods are obsolete and their use is not recommended. + // Once the WMF SDK added the notion of profile versions, their behavior became ambiguous. + // At the time of this release (Corona) the methods will assume use of the default profile + // version number and make no attempt to override that. For instance, in the Corona release + // version 9 profiles are assumed. + // + // Instead, it is recommended that apps use the XXXProfile methods which take the IWMProfile* + // directly or the ProfileGuid methods which take a profile GUID. + // + HRESULT ConfigureFilterUsingProfileId([in] DWORD dwProfileId); + HRESULT GetCurrentProfileId([out] DWORD *pdwProfileId); + + // + // configure using a pre-defined wmsdk profile guid + // + HRESULT ConfigureFilterUsingProfileGuid([in] REFGUID guidProfile); + HRESULT GetCurrentProfileGuid([out] GUID *pProfileGuid); + + // + // Use these methods when a custom profile setup is preferred + // + HRESULT ConfigureFilterUsingProfile([in] IWMProfile * pProfile); + HRESULT GetCurrentProfile([out] IWMProfile **ppProfile); + + // + // allow app to control whether or not to index file + // + HRESULT SetIndexMode( [in] BOOL bIndexFile ); + HRESULT GetIndexMode( [out] BOOL *pbIndexFile ); +} + +cpp_quote( "////////////////////////////////////////////////////////////////" ) +cpp_quote( "//" ) +cpp_quote( "// Windows Media Filters compatibility option flags" ) +cpp_quote( "//" ) +cpp_quote( "static DWORD EXCLUDE_SCRIPT_STREAM_DELIVERY_SYNCHRONIZATION = 0x00000001;" ) +cpp_quote( "" ) + +cpp_quote( "////////////////////////////////////////////////////////////////" ) +cpp_quote( "//" ) +cpp_quote( "// ATOM strings to match compatibility option flags above for certain applications that don't want to (or not allowed to) update registry entries" ) +cpp_quote( "// These need to be setup by the application using the WM filters to enable the particular functionality" ) +cpp_quote( "//" ) +cpp_quote( "static const WCHAR* g_wszExcludeScriptStreamDeliverySynchronization = L\"ExcludeScriptStreamDeliverySynchronization\";" ) +cpp_quote( "" ) + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dsound.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dsound.h new file mode 100644 index 0000000000000000000000000000000000000000..4a688113bc0a98ac4bce866990de061e75002515 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dsound.h @@ -0,0 +1,2394 @@ +/*==========================================================================; + * + * Copyright (c) Microsoft Corporation. All rights reserved. + * + * File: dsound.h + * Content: DirectSound include file + * + **************************************************************************/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define COM_NO_WINDOWS_H +#include +#include +#include + +#ifndef DIRECTSOUND_VERSION + +#if (NTDDI_VERSION < NTDDI_WINXP) /* Windows 2000 */ +#define DIRECTSOUND_VERSION 0x0700 /* Version 7.0 */ +#elif (NTDDI_VERSION < NTDDI_WINXPSP2 || NTDDI_VERSION == NTDDI_WS03) /* Windows XP and SP1, or Windows Server 2003 */ +#define DIRECTSOUND_VERSION 0x0800 /* Version 8.0 */ +#else /* Windows XP SP2 and higher, Windows Server 2003 SP1 and higher, Longhorn, or higher */ +#define DIRECTSOUND_VERSION 0x0900 /* Version 9.0 */ +#endif + +#endif // DIRECTSOUND_VERSION + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +#ifndef __DSOUND_INCLUDED__ +#define __DSOUND_INCLUDED__ + +/* Type definitions shared with Direct3D */ + +#ifndef DX_SHARED_DEFINES + +typedef float D3DVALUE, *LPD3DVALUE; + +#ifndef D3DCOLOR_DEFINED +typedef DWORD D3DCOLOR; +#define D3DCOLOR_DEFINED +#endif + +#ifndef LPD3DCOLOR_DEFINED +typedef DWORD *LPD3DCOLOR; +#define LPD3DCOLOR_DEFINED +#endif + +#ifndef D3DVECTOR_DEFINED +typedef struct _D3DVECTOR { + float x; + float y; + float z; +} D3DVECTOR; +#define D3DVECTOR_DEFINED +#endif + +#ifndef LPD3DVECTOR_DEFINED +typedef D3DVECTOR *LPD3DVECTOR; +#define LPD3DVECTOR_DEFINED +#endif + +#define DX_SHARED_DEFINES +#endif // DX_SHARED_DEFINES + +#define _FACDS 0x878 /* DirectSound's facility code */ +#define MAKE_DSHRESULT(code) MAKE_HRESULT(1, _FACDS, code) + +// DirectSound Component GUID {47D4D946-62E8-11CF-93BC-444553540000} +DEFINE_GUID(CLSID_DirectSound, 0x47d4d946, 0x62e8, 0x11cf, 0x93, 0xbc, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0); + +// DirectSound 8.0 Component GUID {3901CC3F-84B5-4FA4-BA35-AA8172B8A09B} +DEFINE_GUID(CLSID_DirectSound8, 0x3901cc3f, 0x84b5, 0x4fa4, 0xba, 0x35, 0xaa, 0x81, 0x72, 0xb8, 0xa0, 0x9b); + +// DirectSound Capture Component GUID {B0210780-89CD-11D0-AF08-00A0C925CD16} +DEFINE_GUID(CLSID_DirectSoundCapture, 0xb0210780, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); + +// DirectSound 8.0 Capture Component GUID {E4BCAC13-7F99-4908-9A8E-74E3BF24B6E1} +DEFINE_GUID(CLSID_DirectSoundCapture8, 0xe4bcac13, 0x7f99, 0x4908, 0x9a, 0x8e, 0x74, 0xe3, 0xbf, 0x24, 0xb6, 0xe1); + +// DirectSound Full Duplex Component GUID {FEA4300C-7959-4147-B26A-2377B9E7A91D} +DEFINE_GUID(CLSID_DirectSoundFullDuplex, 0xfea4300c, 0x7959, 0x4147, 0xb2, 0x6a, 0x23, 0x77, 0xb9, 0xe7, 0xa9, 0x1d); + + +// DirectSound default playback device GUID {DEF00000-9C6D-47ED-AAF1-4DDA8F2B5C03} +DEFINE_GUID(DSDEVID_DefaultPlayback, 0xdef00000, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); + +// DirectSound default capture device GUID {DEF00001-9C6D-47ED-AAF1-4DDA8F2B5C03} +DEFINE_GUID(DSDEVID_DefaultCapture, 0xdef00001, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); + +// DirectSound default device for voice playback {DEF00002-9C6D-47ED-AAF1-4DDA8F2B5C03} +DEFINE_GUID(DSDEVID_DefaultVoicePlayback, 0xdef00002, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); + +// DirectSound default device for voice capture {DEF00003-9C6D-47ED-AAF1-4DDA8F2B5C03} +DEFINE_GUID(DSDEVID_DefaultVoiceCapture, 0xdef00003, 0x9c6d, 0x47ed, 0xaa, 0xf1, 0x4d, 0xda, 0x8f, 0x2b, 0x5c, 0x03); + + +// +// Forward declarations for interfaces. +// 'struct' not 'class' per the way DECLARE_INTERFACE_ is defined +// + +#ifdef __cplusplus +struct IDirectSound; +struct IDirectSoundBuffer; +struct IDirectSound3DListener; +struct IDirectSound3DBuffer; +struct IDirectSoundCapture; +struct IDirectSoundCaptureBuffer; +struct IDirectSoundNotify; +#endif // __cplusplus + +// +// DirectSound 8.0 interfaces. +// + +#if DIRECTSOUND_VERSION >= 0x0800 + +#ifdef __cplusplus +struct IDirectSound8; +struct IDirectSoundBuffer8; +struct IDirectSoundCaptureBuffer8; +struct IDirectSoundFXGargle; +struct IDirectSoundFXChorus; +struct IDirectSoundFXFlanger; +struct IDirectSoundFXEcho; +struct IDirectSoundFXDistortion; +struct IDirectSoundFXCompressor; +struct IDirectSoundFXParamEq; +struct IDirectSoundFXWavesReverb; +struct IDirectSoundFXI3DL2Reverb; +struct IDirectSoundCaptureFXAec; +struct IDirectSoundCaptureFXNoiseSuppress; +struct IDirectSoundFullDuplex; +#endif // __cplusplus + +// IDirectSound8, IDirectSoundBuffer8 and IDirectSoundCaptureBuffer8 are the +// only DirectSound 7.0 interfaces with changed functionality in version 8.0. +// The other level 8 interfaces as equivalent to their level 7 counterparts: + +#define IDirectSoundCapture8 IDirectSoundCapture +#define IDirectSound3DListener8 IDirectSound3DListener +#define IDirectSound3DBuffer8 IDirectSound3DBuffer +#define IDirectSoundNotify8 IDirectSoundNotify +#define IDirectSoundFXGargle8 IDirectSoundFXGargle +#define IDirectSoundFXChorus8 IDirectSoundFXChorus +#define IDirectSoundFXFlanger8 IDirectSoundFXFlanger +#define IDirectSoundFXEcho8 IDirectSoundFXEcho +#define IDirectSoundFXDistortion8 IDirectSoundFXDistortion +#define IDirectSoundFXCompressor8 IDirectSoundFXCompressor +#define IDirectSoundFXParamEq8 IDirectSoundFXParamEq +#define IDirectSoundFXWavesReverb8 IDirectSoundFXWavesReverb +#define IDirectSoundFXI3DL2Reverb8 IDirectSoundFXI3DL2Reverb +#define IDirectSoundCaptureFXAec8 IDirectSoundCaptureFXAec +#define IDirectSoundCaptureFXNoiseSuppress8 IDirectSoundCaptureFXNoiseSuppress +#define IDirectSoundFullDuplex8 IDirectSoundFullDuplex + +#endif // DIRECTSOUND_VERSION >= 0x0800 + +typedef struct IDirectSound *LPDIRECTSOUND; +typedef struct IDirectSoundBuffer *LPDIRECTSOUNDBUFFER; +typedef struct IDirectSound3DListener *LPDIRECTSOUND3DLISTENER; +typedef struct IDirectSound3DBuffer *LPDIRECTSOUND3DBUFFER; +typedef struct IDirectSoundCapture *LPDIRECTSOUNDCAPTURE; +typedef struct IDirectSoundCaptureBuffer *LPDIRECTSOUNDCAPTUREBUFFER; +typedef struct IDirectSoundNotify *LPDIRECTSOUNDNOTIFY; + +#if DIRECTSOUND_VERSION >= 0x0800 + +typedef struct IDirectSoundFXGargle *LPDIRECTSOUNDFXGARGLE; +typedef struct IDirectSoundFXChorus *LPDIRECTSOUNDFXCHORUS; +typedef struct IDirectSoundFXFlanger *LPDIRECTSOUNDFXFLANGER; +typedef struct IDirectSoundFXEcho *LPDIRECTSOUNDFXECHO; +typedef struct IDirectSoundFXDistortion *LPDIRECTSOUNDFXDISTORTION; +typedef struct IDirectSoundFXCompressor *LPDIRECTSOUNDFXCOMPRESSOR; +typedef struct IDirectSoundFXParamEq *LPDIRECTSOUNDFXPARAMEQ; +typedef struct IDirectSoundFXWavesReverb *LPDIRECTSOUNDFXWAVESREVERB; +typedef struct IDirectSoundFXI3DL2Reverb *LPDIRECTSOUNDFXI3DL2REVERB; +typedef struct IDirectSoundCaptureFXAec *LPDIRECTSOUNDCAPTUREFXAEC; +typedef struct IDirectSoundCaptureFXNoiseSuppress *LPDIRECTSOUNDCAPTUREFXNOISESUPPRESS; +typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; + +typedef struct IDirectSound8 *LPDIRECTSOUND8; +typedef struct IDirectSoundBuffer8 *LPDIRECTSOUNDBUFFER8; +typedef struct IDirectSound3DListener8 *LPDIRECTSOUND3DLISTENER8; +typedef struct IDirectSound3DBuffer8 *LPDIRECTSOUND3DBUFFER8; +typedef struct IDirectSoundCapture8 *LPDIRECTSOUNDCAPTURE8; +typedef struct IDirectSoundCaptureBuffer8 *LPDIRECTSOUNDCAPTUREBUFFER8; +typedef struct IDirectSoundNotify8 *LPDIRECTSOUNDNOTIFY8; +typedef struct IDirectSoundFXGargle8 *LPDIRECTSOUNDFXGARGLE8; +typedef struct IDirectSoundFXChorus8 *LPDIRECTSOUNDFXCHORUS8; +typedef struct IDirectSoundFXFlanger8 *LPDIRECTSOUNDFXFLANGER8; +typedef struct IDirectSoundFXEcho8 *LPDIRECTSOUNDFXECHO8; +typedef struct IDirectSoundFXDistortion8 *LPDIRECTSOUNDFXDISTORTION8; +typedef struct IDirectSoundFXCompressor8 *LPDIRECTSOUNDFXCOMPRESSOR8; +typedef struct IDirectSoundFXParamEq8 *LPDIRECTSOUNDFXPARAMEQ8; +typedef struct IDirectSoundFXWavesReverb8 *LPDIRECTSOUNDFXWAVESREVERB8; +typedef struct IDirectSoundFXI3DL2Reverb8 *LPDIRECTSOUNDFXI3DL2REVERB8; +typedef struct IDirectSoundCaptureFXAec8 *LPDIRECTSOUNDCAPTUREFXAEC8; +typedef struct IDirectSoundCaptureFXNoiseSuppress8 *LPDIRECTSOUNDCAPTUREFXNOISESUPPRESS8; +typedef struct IDirectSoundFullDuplex8 *LPDIRECTSOUNDFULLDUPLEX8; + +#endif // DIRECTSOUND_VERSION >= 0x0800 + +// +// IID definitions for the unchanged DirectSound 8.0 interfaces +// + +#if DIRECTSOUND_VERSION >= 0x0800 + +#define IID_IDirectSoundCapture8 IID_IDirectSoundCapture +#define IID_IDirectSound3DListener8 IID_IDirectSound3DListener +#define IID_IDirectSound3DBuffer8 IID_IDirectSound3DBuffer +#define IID_IDirectSoundNotify8 IID_IDirectSoundNotify +#define IID_IDirectSoundFXGargle8 IID_IDirectSoundFXGargle +#define IID_IDirectSoundFXChorus8 IID_IDirectSoundFXChorus +#define IID_IDirectSoundFXFlanger8 IID_IDirectSoundFXFlanger +#define IID_IDirectSoundFXEcho8 IID_IDirectSoundFXEcho +#define IID_IDirectSoundFXDistortion8 IID_IDirectSoundFXDistortion +#define IID_IDirectSoundFXCompressor8 IID_IDirectSoundFXCompressor +#define IID_IDirectSoundFXParamEq8 IID_IDirectSoundFXParamEq +#define IID_IDirectSoundFXWavesReverb8 IID_IDirectSoundFXWavesReverb +#define IID_IDirectSoundFXI3DL2Reverb8 IID_IDirectSoundFXI3DL2Reverb +#define IID_IDirectSoundCaptureFXAec8 IID_IDirectSoundCaptureFXAec +#define IID_IDirectSoundCaptureFXNoiseSuppress8 IID_IDirectSoundCaptureFXNoiseSuppress +#define IID_IDirectSoundFullDuplex8 IID_IDirectSoundFullDuplex + +#endif // DIRECTSOUND_VERSION >= 0x0800 + +// +// Compatibility typedefs +// + +#ifndef _LPCWAVEFORMATEX_DEFINED +#define _LPCWAVEFORMATEX_DEFINED +typedef const WAVEFORMATEX *LPCWAVEFORMATEX; +#endif // _LPCWAVEFORMATEX_DEFINED + +#ifndef __LPCGUID_DEFINED__ +#define __LPCGUID_DEFINED__ +typedef const GUID *LPCGUID; +#endif // __LPCGUID_DEFINED__ + +typedef LPDIRECTSOUND *LPLPDIRECTSOUND; +typedef LPDIRECTSOUNDBUFFER *LPLPDIRECTSOUNDBUFFER; +typedef LPDIRECTSOUND3DLISTENER *LPLPDIRECTSOUND3DLISTENER; +typedef LPDIRECTSOUND3DBUFFER *LPLPDIRECTSOUND3DBUFFER; +typedef LPDIRECTSOUNDCAPTURE *LPLPDIRECTSOUNDCAPTURE; +typedef LPDIRECTSOUNDCAPTUREBUFFER *LPLPDIRECTSOUNDCAPTUREBUFFER; +typedef LPDIRECTSOUNDNOTIFY *LPLPDIRECTSOUNDNOTIFY; + +#if DIRECTSOUND_VERSION >= 0x0800 +typedef LPDIRECTSOUND8 *LPLPDIRECTSOUND8; +typedef LPDIRECTSOUNDBUFFER8 *LPLPDIRECTSOUNDBUFFER8; +typedef LPDIRECTSOUNDCAPTURE8 *LPLPDIRECTSOUNDCAPTURE8; +typedef LPDIRECTSOUNDCAPTUREBUFFER8 *LPLPDIRECTSOUNDCAPTUREBUFFER8; +#endif // DIRECTSOUND_VERSION >= 0x0800 + +// +// Structures +// + +typedef struct _DSCAPS +{ + DWORD dwSize; + DWORD dwFlags; + DWORD dwMinSecondarySampleRate; + DWORD dwMaxSecondarySampleRate; + DWORD dwPrimaryBuffers; + DWORD dwMaxHwMixingAllBuffers; + DWORD dwMaxHwMixingStaticBuffers; + DWORD dwMaxHwMixingStreamingBuffers; + DWORD dwFreeHwMixingAllBuffers; + DWORD dwFreeHwMixingStaticBuffers; + DWORD dwFreeHwMixingStreamingBuffers; + DWORD dwMaxHw3DAllBuffers; + DWORD dwMaxHw3DStaticBuffers; + DWORD dwMaxHw3DStreamingBuffers; + DWORD dwFreeHw3DAllBuffers; + DWORD dwFreeHw3DStaticBuffers; + DWORD dwFreeHw3DStreamingBuffers; + DWORD dwTotalHwMemBytes; + DWORD dwFreeHwMemBytes; + DWORD dwMaxContigFreeHwMemBytes; + DWORD dwUnlockTransferRateHwBuffers; + DWORD dwPlayCpuOverheadSwBuffers; + DWORD dwReserved1; + DWORD dwReserved2; +} DSCAPS, *LPDSCAPS; + +typedef const DSCAPS *LPCDSCAPS; + +typedef struct _DSBCAPS +{ + DWORD dwSize; + DWORD dwFlags; + DWORD dwBufferBytes; + DWORD dwUnlockTransferRate; + DWORD dwPlayCpuOverhead; +} DSBCAPS, *LPDSBCAPS; + +typedef const DSBCAPS *LPCDSBCAPS; + +#if DIRECTSOUND_VERSION >= 0x0800 + + typedef struct _DSEFFECTDESC + { + DWORD dwSize; + DWORD dwFlags; + GUID guidDSFXClass; + DWORD_PTR dwReserved1; + DWORD_PTR dwReserved2; + } DSEFFECTDESC, *LPDSEFFECTDESC; + typedef const DSEFFECTDESC *LPCDSEFFECTDESC; + + #define DSFX_LOCHARDWARE 0x00000001 + #define DSFX_LOCSOFTWARE 0x00000002 + + enum + { + DSFXR_PRESENT, // 0 + DSFXR_LOCHARDWARE, // 1 + DSFXR_LOCSOFTWARE, // 2 + DSFXR_UNALLOCATED, // 3 + DSFXR_FAILED, // 4 + DSFXR_UNKNOWN, // 5 + DSFXR_SENDLOOP // 6 + }; + + typedef struct _DSCEFFECTDESC + { + DWORD dwSize; + DWORD dwFlags; + GUID guidDSCFXClass; + GUID guidDSCFXInstance; + DWORD dwReserved1; + DWORD dwReserved2; + } DSCEFFECTDESC, *LPDSCEFFECTDESC; + typedef const DSCEFFECTDESC *LPCDSCEFFECTDESC; + + #define DSCFX_LOCHARDWARE 0x00000001 + #define DSCFX_LOCSOFTWARE 0x00000002 + + #define DSCFXR_LOCHARDWARE 0x00000010 + #define DSCFXR_LOCSOFTWARE 0x00000020 + +#endif // DIRECTSOUND_VERSION >= 0x0800 + +typedef struct _DSBUFFERDESC +{ + DWORD dwSize; + DWORD dwFlags; + DWORD dwBufferBytes; + DWORD dwReserved; + LPWAVEFORMATEX lpwfxFormat; +#if DIRECTSOUND_VERSION >= 0x0700 + GUID guid3DAlgorithm; +#endif +} DSBUFFERDESC, *LPDSBUFFERDESC; + +typedef const DSBUFFERDESC *LPCDSBUFFERDESC; + +// Older version of this structure: + +typedef struct _DSBUFFERDESC1 +{ + DWORD dwSize; + DWORD dwFlags; + DWORD dwBufferBytes; + DWORD dwReserved; + LPWAVEFORMATEX lpwfxFormat; +} DSBUFFERDESC1, *LPDSBUFFERDESC1; + +typedef const DSBUFFERDESC1 *LPCDSBUFFERDESC1; + +typedef struct _DS3DBUFFER +{ + DWORD dwSize; + D3DVECTOR vPosition; + D3DVECTOR vVelocity; + DWORD dwInsideConeAngle; + DWORD dwOutsideConeAngle; + D3DVECTOR vConeOrientation; + LONG lConeOutsideVolume; + D3DVALUE flMinDistance; + D3DVALUE flMaxDistance; + DWORD dwMode; +} DS3DBUFFER, *LPDS3DBUFFER; + +typedef const DS3DBUFFER *LPCDS3DBUFFER; + +typedef struct _DS3DLISTENER +{ + DWORD dwSize; + D3DVECTOR vPosition; + D3DVECTOR vVelocity; + D3DVECTOR vOrientFront; + D3DVECTOR vOrientTop; + D3DVALUE flDistanceFactor; + D3DVALUE flRolloffFactor; + D3DVALUE flDopplerFactor; +} DS3DLISTENER, *LPDS3DLISTENER; + +typedef const DS3DLISTENER *LPCDS3DLISTENER; + +typedef struct _DSCCAPS +{ + DWORD dwSize; + DWORD dwFlags; + DWORD dwFormats; + DWORD dwChannels; +} DSCCAPS, *LPDSCCAPS; + +typedef const DSCCAPS *LPCDSCCAPS; + +typedef struct _DSCBUFFERDESC1 +{ + DWORD dwSize; + DWORD dwFlags; + DWORD dwBufferBytes; + DWORD dwReserved; + LPWAVEFORMATEX lpwfxFormat; +} DSCBUFFERDESC1, *LPDSCBUFFERDESC1; + +typedef struct _DSCBUFFERDESC +{ + DWORD dwSize; + DWORD dwFlags; + DWORD dwBufferBytes; + DWORD dwReserved; + LPWAVEFORMATEX lpwfxFormat; +#if DIRECTSOUND_VERSION >= 0x0800 + DWORD dwFXCount; + LPDSCEFFECTDESC lpDSCFXDesc; +#endif +} DSCBUFFERDESC, *LPDSCBUFFERDESC; + +typedef const DSCBUFFERDESC *LPCDSCBUFFERDESC; + +typedef struct _DSCBCAPS +{ + DWORD dwSize; + DWORD dwFlags; + DWORD dwBufferBytes; + DWORD dwReserved; +} DSCBCAPS, *LPDSCBCAPS; + +typedef const DSCBCAPS *LPCDSCBCAPS; + +typedef struct _DSBPOSITIONNOTIFY +{ + DWORD dwOffset; + HANDLE hEventNotify; +} DSBPOSITIONNOTIFY, *LPDSBPOSITIONNOTIFY; + +typedef const DSBPOSITIONNOTIFY *LPCDSBPOSITIONNOTIFY; + +// +// DirectSound API +// + +typedef BOOL (CALLBACK *LPDSENUMCALLBACKA)(LPGUID, LPCSTR, LPCSTR, LPVOID); +typedef BOOL (CALLBACK *LPDSENUMCALLBACKW)(LPGUID, LPCWSTR, LPCWSTR, LPVOID); + +extern _Check_return_ HRESULT WINAPI DirectSoundCreate(_In_opt_ LPCGUID pcGuidDevice, _Outptr_ LPDIRECTSOUND *ppDS, _Pre_null_ LPUNKNOWN pUnkOuter); +extern HRESULT WINAPI DirectSoundEnumerateA(_In_ LPDSENUMCALLBACKA pDSEnumCallback, _In_opt_ LPVOID pContext); +extern HRESULT WINAPI DirectSoundEnumerateW(_In_ LPDSENUMCALLBACKW pDSEnumCallback, _In_opt_ LPVOID pContext); + +extern HRESULT WINAPI DirectSoundCaptureCreate(_In_opt_ LPCGUID pcGuidDevice, _Outptr_ LPDIRECTSOUNDCAPTURE *ppDSC, _Pre_null_ LPUNKNOWN pUnkOuter); +extern HRESULT WINAPI DirectSoundCaptureEnumerateA(_In_ LPDSENUMCALLBACKA pDSEnumCallback, _In_opt_ LPVOID pContext); +extern HRESULT WINAPI DirectSoundCaptureEnumerateW(_In_ LPDSENUMCALLBACKW pDSEnumCallback, _In_opt_ LPVOID pContext); + +#if DIRECTSOUND_VERSION >= 0x0800 +extern HRESULT WINAPI DirectSoundCreate8(_In_opt_ LPCGUID pcGuidDevice, _Outptr_ LPDIRECTSOUND8 *ppDS8, _Pre_null_ LPUNKNOWN pUnkOuter); +extern HRESULT WINAPI DirectSoundCaptureCreate8(_In_opt_ LPCGUID pcGuidDevice, _Outptr_ LPDIRECTSOUNDCAPTURE8 *ppDSC8, _Pre_null_ LPUNKNOWN pUnkOuter); +extern HRESULT WINAPI DirectSoundFullDuplexCreate +( + _In_opt_ LPCGUID pcGuidCaptureDevice, + _In_opt_ LPCGUID pcGuidRenderDevice, + _In_ LPCDSCBUFFERDESC pcDSCBufferDesc, + _In_ LPCDSBUFFERDESC pcDSBufferDesc, + HWND hWnd, + DWORD dwLevel, + _Outptr_ LPDIRECTSOUNDFULLDUPLEX* ppDSFD, + _Outptr_ LPDIRECTSOUNDCAPTUREBUFFER8 *ppDSCBuffer8, + _Outptr_ LPDIRECTSOUNDBUFFER8 *ppDSBuffer8, + _Pre_null_ LPUNKNOWN pUnkOuter +); +#define DirectSoundFullDuplexCreate8 DirectSoundFullDuplexCreate + +extern HRESULT WINAPI GetDeviceID(_In_opt_ LPCGUID pGuidSrc, _Out_ LPGUID pGuidDest); +#endif // DIRECTSOUND_VERSION >= 0x0800 + +#ifdef UNICODE +#define LPDSENUMCALLBACK LPDSENUMCALLBACKW +#define DirectSoundEnumerate DirectSoundEnumerateW +#define DirectSoundCaptureEnumerate DirectSoundCaptureEnumerateW +#else // UNICODE +#define LPDSENUMCALLBACK LPDSENUMCALLBACKA +#define DirectSoundEnumerate DirectSoundEnumerateA +#define DirectSoundCaptureEnumerate DirectSoundCaptureEnumerateA +#endif // UNICODE + +// +// IUnknown +// + +#if !defined(__cplusplus) || defined(CINTERFACE) +#ifndef IUnknown_QueryInterface +#define IUnknown_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#endif // IUnknown_QueryInterface +#ifndef IUnknown_AddRef +#define IUnknown_AddRef(p) (p)->lpVtbl->AddRef(p) +#endif // IUnknown_AddRef +#ifndef IUnknown_Release +#define IUnknown_Release(p) (p)->lpVtbl->Release(p) +#endif // IUnknown_Release +#else // !defined(__cplusplus) || defined(CINTERFACE) +#ifndef IUnknown_QueryInterface +#define IUnknown_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#endif // IUnknown_QueryInterface +#ifndef IUnknown_AddRef +#define IUnknown_AddRef(p) (p)->AddRef() +#endif // IUnknown_AddRef +#ifndef IUnknown_Release +#define IUnknown_Release(p) (p)->Release() +#endif // IUnknown_Release +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +#ifndef __IReferenceClock_INTERFACE_DEFINED__ +#define __IReferenceClock_INTERFACE_DEFINED__ + +typedef LONGLONG REFERENCE_TIME; +typedef REFERENCE_TIME *LPREFERENCE_TIME; + +DEFINE_GUID(IID_IReferenceClock, 0x56a86897, 0x0ad4, 0x11ce, 0xb0, 0x3a, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70); + +#undef INTERFACE +#define INTERFACE IReferenceClock + +DECLARE_INTERFACE_(IReferenceClock, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IReferenceClock methods + STDMETHOD(GetTime) (THIS_ _Out_ REFERENCE_TIME *pTime) PURE; + STDMETHOD(AdviseTime) (THIS_ REFERENCE_TIME rtBaseTime, REFERENCE_TIME rtStreamTime, + HANDLE hEvent, _Out_ LPDWORD pdwAdviseCookie) PURE; + STDMETHOD(AdvisePeriodic) (THIS_ REFERENCE_TIME rtStartTime, REFERENCE_TIME rtPeriodTime, + HANDLE hSemaphore, _Out_ LPDWORD pdwAdviseCookie) PURE; + STDMETHOD(Unadvise) (THIS_ DWORD dwAdviseCookie) PURE; +}; + +#endif // __IReferenceClock_INTERFACE_DEFINED__ + +#ifndef IReferenceClock_QueryInterface + +#define IReferenceClock_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IReferenceClock_AddRef(p) IUnknown_AddRef(p) +#define IReferenceClock_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IReferenceClock_GetTime(p,a) (p)->lpVtbl->GetTime(p,a) +#define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->lpVtbl->AdviseTime(p,a,b,c,d) +#define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->lpVtbl->AdvisePeriodic(p,a,b,c,d) +#define IReferenceClock_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IReferenceClock_GetTime(p,a) (p)->GetTime(a) +#define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->AdviseTime(a,b,c,d) +#define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->AdvisePeriodic(a,b,c,d) +#define IReferenceClock_Unadvise(p,a) (p)->Unadvise(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +#endif // IReferenceClock_QueryInterface + +// +// IDirectSound +// + +DEFINE_GUID(IID_IDirectSound, 0x279AFA83, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); + +#undef INTERFACE +#define INTERFACE IDirectSound + +DECLARE_INTERFACE_(IDirectSound, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSound methods + STDMETHOD(CreateSoundBuffer) (THIS_ _In_ LPCDSBUFFERDESC pcDSBufferDesc, _Outptr_ LPDIRECTSOUNDBUFFER *ppDSBuffer, _Pre_null_ LPUNKNOWN pUnkOuter) PURE; + STDMETHOD(GetCaps) (THIS_ _Out_ LPDSCAPS pDSCaps) PURE; + STDMETHOD(DuplicateSoundBuffer) (THIS_ _In_ LPDIRECTSOUNDBUFFER pDSBufferOriginal, _Outptr_ LPDIRECTSOUNDBUFFER *ppDSBufferDuplicate) PURE; + STDMETHOD(SetCooperativeLevel) (THIS_ HWND hwnd, DWORD dwLevel) PURE; + STDMETHOD(Compact) (THIS) PURE; + STDMETHOD(GetSpeakerConfig) (THIS_ _Out_ LPDWORD pdwSpeakerConfig) PURE; + STDMETHOD(SetSpeakerConfig) (THIS_ DWORD dwSpeakerConfig) PURE; + STDMETHOD(Initialize) (THIS_ _In_opt_ LPCGUID pcGuidDevice) PURE; +}; + +#define IDirectSound_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSound_AddRef(p) IUnknown_AddRef(p) +#define IDirectSound_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->lpVtbl->CreateSoundBuffer(p,a,b,c) +#define IDirectSound_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) +#define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->lpVtbl->DuplicateSoundBuffer(p,a,b) +#define IDirectSound_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b) +#define IDirectSound_Compact(p) (p)->lpVtbl->Compact(p) +#define IDirectSound_GetSpeakerConfig(p,a) (p)->lpVtbl->GetSpeakerConfig(p,a) +#define IDirectSound_SetSpeakerConfig(p,b) (p)->lpVtbl->SetSpeakerConfig(p,b) +#define IDirectSound_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSound_CreateSoundBuffer(p,a,b,c) (p)->CreateSoundBuffer(a,b,c) +#define IDirectSound_GetCaps(p,a) (p)->GetCaps(a) +#define IDirectSound_DuplicateSoundBuffer(p,a,b) (p)->DuplicateSoundBuffer(a,b) +#define IDirectSound_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b) +#define IDirectSound_Compact(p) (p)->Compact() +#define IDirectSound_GetSpeakerConfig(p,a) (p)->GetSpeakerConfig(a) +#define IDirectSound_SetSpeakerConfig(p,b) (p)->SetSpeakerConfig(b) +#define IDirectSound_Initialize(p,a) (p)->Initialize(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +#if DIRECTSOUND_VERSION >= 0x0800 + +// +// IDirectSound8 +// + +DEFINE_GUID(IID_IDirectSound8, 0xC50A7E93, 0xF395, 0x4834, 0x9E, 0xF6, 0x7F, 0xA9, 0x9D, 0xE5, 0x09, 0x66); + +#undef INTERFACE +#define INTERFACE IDirectSound8 + +DECLARE_INTERFACE_(IDirectSound8, IDirectSound) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSound methods + STDMETHOD(CreateSoundBuffer) (THIS_ _In_ LPCDSBUFFERDESC pcDSBufferDesc, _Out_ LPDIRECTSOUNDBUFFER *ppDSBuffer, _Pre_null_ LPUNKNOWN pUnkOuter) PURE; + STDMETHOD(GetCaps) (THIS_ _Out_ LPDSCAPS pDSCaps) PURE; + STDMETHOD(DuplicateSoundBuffer) (THIS_ _In_ LPDIRECTSOUNDBUFFER pDSBufferOriginal, _Out_ LPDIRECTSOUNDBUFFER *ppDSBufferDuplicate) PURE; + STDMETHOD(SetCooperativeLevel) (THIS_ HWND hwnd, DWORD dwLevel) PURE; + STDMETHOD(Compact) (THIS) PURE; + STDMETHOD(GetSpeakerConfig) (THIS_ _Out_ LPDWORD pdwSpeakerConfig) PURE; + STDMETHOD(SetSpeakerConfig) (THIS_ DWORD dwSpeakerConfig) PURE; + STDMETHOD(Initialize) (THIS_ _In_opt_ LPCGUID pcGuidDevice) PURE; + + // IDirectSound8 methods + STDMETHOD(VerifyCertification) (THIS_ _Out_ LPDWORD pdwCertified) PURE; +}; + +#define IDirectSound8_QueryInterface(p,a,b) IDirectSound_QueryInterface(p,a,b) +#define IDirectSound8_AddRef(p) IDirectSound_AddRef(p) +#define IDirectSound8_Release(p) IDirectSound_Release(p) +#define IDirectSound8_CreateSoundBuffer(p,a,b,c) IDirectSound_CreateSoundBuffer(p,a,b,c) +#define IDirectSound8_GetCaps(p,a) IDirectSound_GetCaps(p,a) +#define IDirectSound8_DuplicateSoundBuffer(p,a,b) IDirectSound_DuplicateSoundBuffer(p,a,b) +#define IDirectSound8_SetCooperativeLevel(p,a,b) IDirectSound_SetCooperativeLevel(p,a,b) +#define IDirectSound8_Compact(p) IDirectSound_Compact(p) +#define IDirectSound8_GetSpeakerConfig(p,a) IDirectSound_GetSpeakerConfig(p,a) +#define IDirectSound8_SetSpeakerConfig(p,a) IDirectSound_SetSpeakerConfig(p,a) +#define IDirectSound8_Initialize(p,a) IDirectSound_Initialize(p,a) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSound8_VerifyCertification(p,a) (p)->lpVtbl->VerifyCertification(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSound8_VerifyCertification(p,a) (p)->VerifyCertification(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +#endif // DIRECTSOUND_VERSION >= 0x0800 + +// +// IDirectSoundBuffer +// + +DEFINE_GUID(IID_IDirectSoundBuffer, 0x279AFA85, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); + +#undef INTERFACE +#define INTERFACE IDirectSoundBuffer + +DECLARE_INTERFACE_(IDirectSoundBuffer, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundBuffer methods + STDMETHOD(GetCaps) (THIS_ _Out_ LPDSBCAPS pDSBufferCaps) PURE; + STDMETHOD(GetCurrentPosition) (THIS_ _Out_opt_ LPDWORD pdwCurrentPlayCursor, _Out_opt_ LPDWORD pdwCurrentWriteCursor) PURE; + STDMETHOD(GetFormat) (THIS_ _Out_writes_bytes_opt_(dwSizeAllocated) LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, _Out_opt_ LPDWORD pdwSizeWritten) PURE; + STDMETHOD(GetVolume) (THIS_ _Out_ LPLONG plVolume) PURE; + STDMETHOD(GetPan) (THIS_ _Out_ LPLONG plPan) PURE; + STDMETHOD(GetFrequency) (THIS_ _Out_ LPDWORD pdwFrequency) PURE; + STDMETHOD(GetStatus) (THIS_ _Out_ LPDWORD pdwStatus) PURE; + STDMETHOD(Initialize) (THIS_ _In_ LPDIRECTSOUND pDirectSound, _In_ LPCDSBUFFERDESC pcDSBufferDesc) PURE; + STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, + _Outptr_result_bytebuffer_(*pdwAudioBytes1) LPVOID *ppvAudioPtr1, _Out_ LPDWORD pdwAudioBytes1, + _Outptr_opt_result_bytebuffer_(*pdwAudioBytes2) LPVOID *ppvAudioPtr2, _Out_opt_ LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; + STDMETHOD(Play) (THIS_ DWORD dwReserved1, DWORD dwPriority, DWORD dwFlags) PURE; + STDMETHOD(SetCurrentPosition) (THIS_ DWORD dwNewPosition) PURE; + STDMETHOD(SetFormat) (THIS_ _In_ LPCWAVEFORMATEX pcfxFormat) PURE; + STDMETHOD(SetVolume) (THIS_ LONG lVolume) PURE; + STDMETHOD(SetPan) (THIS_ LONG lPan) PURE; + STDMETHOD(SetFrequency) (THIS_ DWORD dwFrequency) PURE; + STDMETHOD(Stop) (THIS) PURE; + STDMETHOD(Unlock) (THIS_ _In_reads_bytes_(dwAudioBytes1) LPVOID pvAudioPtr1, DWORD dwAudioBytes1, + _In_reads_bytes_opt_(dwAudioBytes2) LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; + STDMETHOD(Restore) (THIS) PURE; +}; + +#define IDirectSoundBuffer_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundBuffer_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundBuffer_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) +#define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b) +#define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) +#define IDirectSoundBuffer_GetVolume(p,a) (p)->lpVtbl->GetVolume(p,a) +#define IDirectSoundBuffer_GetPan(p,a) (p)->lpVtbl->GetPan(p,a) +#define IDirectSoundBuffer_GetFrequency(p,a) (p)->lpVtbl->GetFrequency(p,a) +#define IDirectSoundBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a) +#define IDirectSoundBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g) +#define IDirectSoundBuffer_Play(p,a,b,c) (p)->lpVtbl->Play(p,a,b,c) +#define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->lpVtbl->SetCurrentPosition(p,a) +#define IDirectSoundBuffer_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a) +#define IDirectSoundBuffer_SetVolume(p,a) (p)->lpVtbl->SetVolume(p,a) +#define IDirectSoundBuffer_SetPan(p,a) (p)->lpVtbl->SetPan(p,a) +#define IDirectSoundBuffer_SetFrequency(p,a) (p)->lpVtbl->SetFrequency(p,a) +#define IDirectSoundBuffer_Stop(p) (p)->lpVtbl->Stop(p) +#define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d) +#define IDirectSoundBuffer_Restore(p) (p)->lpVtbl->Restore(p) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundBuffer_GetCaps(p,a) (p)->GetCaps(a) +#define IDirectSoundBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b) +#define IDirectSoundBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c) +#define IDirectSoundBuffer_GetVolume(p,a) (p)->GetVolume(a) +#define IDirectSoundBuffer_GetPan(p,a) (p)->GetPan(a) +#define IDirectSoundBuffer_GetFrequency(p,a) (p)->GetFrequency(a) +#define IDirectSoundBuffer_GetStatus(p,a) (p)->GetStatus(a) +#define IDirectSoundBuffer_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g) +#define IDirectSoundBuffer_Play(p,a,b,c) (p)->Play(a,b,c) +#define IDirectSoundBuffer_SetCurrentPosition(p,a) (p)->SetCurrentPosition(a) +#define IDirectSoundBuffer_SetFormat(p,a) (p)->SetFormat(a) +#define IDirectSoundBuffer_SetVolume(p,a) (p)->SetVolume(a) +#define IDirectSoundBuffer_SetPan(p,a) (p)->SetPan(a) +#define IDirectSoundBuffer_SetFrequency(p,a) (p)->SetFrequency(a) +#define IDirectSoundBuffer_Stop(p) (p)->Stop() +#define IDirectSoundBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d) +#define IDirectSoundBuffer_Restore(p) (p)->Restore() +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +#if DIRECTSOUND_VERSION >= 0x0800 + +// +// IDirectSoundBuffer8 +// + +DEFINE_GUID(IID_IDirectSoundBuffer8, 0x6825a449, 0x7524, 0x4d82, 0x92, 0x0f, 0x50, 0xe3, 0x6a, 0xb3, 0xab, 0x1e); + +#undef INTERFACE +#define INTERFACE IDirectSoundBuffer8 + +DECLARE_INTERFACE_(IDirectSoundBuffer8, IDirectSoundBuffer) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundBuffer methods + STDMETHOD(GetCaps) (THIS_ _Out_ LPDSBCAPS pDSBufferCaps) PURE; + STDMETHOD(GetCurrentPosition) (THIS_ _Out_opt_ LPDWORD pdwCurrentPlayCursor, _Out_opt_ LPDWORD pdwCurrentWriteCursor) PURE; + STDMETHOD(GetFormat) (THIS_ _Out_writes_bytes_opt_(dwSizeAllocated) LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, _Out_opt_ LPDWORD pdwSizeWritten) PURE; + STDMETHOD(GetVolume) (THIS_ _Out_ LPLONG plVolume) PURE; + STDMETHOD(GetPan) (THIS_ _Out_ LPLONG plPan) PURE; + STDMETHOD(GetFrequency) (THIS_ _Out_ LPDWORD pdwFrequency) PURE; + STDMETHOD(GetStatus) (THIS_ _Out_ LPDWORD pdwStatus) PURE; + STDMETHOD(Initialize) (THIS_ _In_ LPDIRECTSOUND pDirectSound, _In_ LPCDSBUFFERDESC pcDSBufferDesc) PURE; + STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, + _Outptr_result_bytebuffer_(*pdwAudioBytes1) LPVOID *ppvAudioPtr1, _Out_ LPDWORD pdwAudioBytes1, + _Outptr_opt_result_bytebuffer_(*pdwAudioBytes2) LPVOID *ppvAudioPtr2, _Out_opt_ LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; + STDMETHOD(Play) (THIS_ DWORD dwReserved1, DWORD dwPriority, DWORD dwFlags) PURE; + STDMETHOD(SetCurrentPosition) (THIS_ DWORD dwNewPosition) PURE; + STDMETHOD(SetFormat) (THIS_ _In_ LPCWAVEFORMATEX pcfxFormat) PURE; + STDMETHOD(SetVolume) (THIS_ LONG lVolume) PURE; + STDMETHOD(SetPan) (THIS_ LONG lPan) PURE; + STDMETHOD(SetFrequency) (THIS_ DWORD dwFrequency) PURE; + STDMETHOD(Stop) (THIS) PURE; + STDMETHOD(Unlock) (THIS_ _In_reads_bytes_(dwAudioBytes1) LPVOID pvAudioPtr1, DWORD dwAudioBytes1, + _In_reads_bytes_opt_(dwAudioBytes2) LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; + STDMETHOD(Restore) (THIS) PURE; + + // IDirectSoundBuffer8 methods + STDMETHOD(SetFX) (THIS_ DWORD dwEffectsCount, _In_reads_opt_(dwEffectsCount) LPDSEFFECTDESC pDSFXDesc, _Out_writes_opt_(dwEffectsCount) LPDWORD pdwResultCodes) PURE; + STDMETHOD(AcquireResources) (THIS_ DWORD dwFlags, DWORD dwEffectsCount, _Out_writes_(dwEffectsCount) LPDWORD pdwResultCodes) PURE; + STDMETHOD(GetObjectInPath) (THIS_ _In_ REFGUID rguidObject, DWORD dwIndex, _In_ REFGUID rguidInterface, _Outptr_ LPVOID *ppObject) PURE; +}; + +// Special GUID meaning "select all objects" for use in GetObjectInPath() +DEFINE_GUID(GUID_All_Objects, 0xaa114de5, 0xc262, 0x4169, 0xa1, 0xc8, 0x23, 0xd6, 0x98, 0xcc, 0x73, 0xb5); + +#define IDirectSoundBuffer8_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundBuffer8_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundBuffer8_Release(p) IUnknown_Release(p) + +#define IDirectSoundBuffer8_GetCaps(p,a) IDirectSoundBuffer_GetCaps(p,a) +#define IDirectSoundBuffer8_GetCurrentPosition(p,a,b) IDirectSoundBuffer_GetCurrentPosition(p,a,b) +#define IDirectSoundBuffer8_GetFormat(p,a,b,c) IDirectSoundBuffer_GetFormat(p,a,b,c) +#define IDirectSoundBuffer8_GetVolume(p,a) IDirectSoundBuffer_GetVolume(p,a) +#define IDirectSoundBuffer8_GetPan(p,a) IDirectSoundBuffer_GetPan(p,a) +#define IDirectSoundBuffer8_GetFrequency(p,a) IDirectSoundBuffer_GetFrequency(p,a) +#define IDirectSoundBuffer8_GetStatus(p,a) IDirectSoundBuffer_GetStatus(p,a) +#define IDirectSoundBuffer8_Initialize(p,a,b) IDirectSoundBuffer_Initialize(p,a,b) +#define IDirectSoundBuffer8_Lock(p,a,b,c,d,e,f,g) IDirectSoundBuffer_Lock(p,a,b,c,d,e,f,g) +#define IDirectSoundBuffer8_Play(p,a,b,c) IDirectSoundBuffer_Play(p,a,b,c) +#define IDirectSoundBuffer8_SetCurrentPosition(p,a) IDirectSoundBuffer_SetCurrentPosition(p,a) +#define IDirectSoundBuffer8_SetFormat(p,a) IDirectSoundBuffer_SetFormat(p,a) +#define IDirectSoundBuffer8_SetVolume(p,a) IDirectSoundBuffer_SetVolume(p,a) +#define IDirectSoundBuffer8_SetPan(p,a) IDirectSoundBuffer_SetPan(p,a) +#define IDirectSoundBuffer8_SetFrequency(p,a) IDirectSoundBuffer_SetFrequency(p,a) +#define IDirectSoundBuffer8_Stop(p) IDirectSoundBuffer_Stop(p) +#define IDirectSoundBuffer8_Unlock(p,a,b,c,d) IDirectSoundBuffer_Unlock(p,a,b,c,d) +#define IDirectSoundBuffer8_Restore(p) IDirectSoundBuffer_Restore(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->lpVtbl->SetFX(p,a,b,c) +#define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->lpVtbl->AcquireResources(p,a,b,c) +#define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundBuffer8_SetFX(p,a,b,c) (p)->SetFX(a,b,c) +#define IDirectSoundBuffer8_AcquireResources(p,a,b,c) (p)->AcquireResources(a,b,c) +#define IDirectSoundBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +#endif // DIRECTSOUND_VERSION >= 0x0800 + +// +// IDirectSound3DListener +// + +DEFINE_GUID(IID_IDirectSound3DListener, 0x279AFA84, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); + +#undef INTERFACE +#define INTERFACE IDirectSound3DListener + +DECLARE_INTERFACE_(IDirectSound3DListener, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSound3DListener methods + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDS3DLISTENER pListener) PURE; + STDMETHOD(GetDistanceFactor) (THIS_ _Out_ D3DVALUE* pflDistanceFactor) PURE; + STDMETHOD(GetDopplerFactor) (THIS_ _Out_ D3DVALUE* pflDopplerFactor) PURE; + STDMETHOD(GetOrientation) (THIS_ _Out_ D3DVECTOR* pvOrientFront, _Out_ D3DVECTOR* pvOrientTop) PURE; + STDMETHOD(GetPosition) (THIS_ _Out_ D3DVECTOR* pvPosition) PURE; + STDMETHOD(GetRolloffFactor) (THIS_ _Out_ D3DVALUE* pflRolloffFactor) PURE; + STDMETHOD(GetVelocity) (THIS_ _Out_ D3DVECTOR* pvVelocity) PURE; + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDS3DLISTENER pcListener, DWORD dwApply) PURE; + STDMETHOD(SetDistanceFactor) (THIS_ D3DVALUE flDistanceFactor, DWORD dwApply) PURE; + STDMETHOD(SetDopplerFactor) (THIS_ D3DVALUE flDopplerFactor, DWORD dwApply) PURE; + STDMETHOD(SetOrientation) (THIS_ D3DVALUE xFront, D3DVALUE yFront, D3DVALUE zFront, + D3DVALUE xTop, D3DVALUE yTop, D3DVALUE zTop, DWORD dwApply) PURE; + STDMETHOD(SetPosition) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; + STDMETHOD(SetRolloffFactor) (THIS_ D3DVALUE flRolloffFactor, DWORD dwApply) PURE; + STDMETHOD(SetVelocity) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; + STDMETHOD(CommitDeferredSettings) (THIS) PURE; +}; + +#define IDirectSound3DListener_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSound3DListener_AddRef(p) IUnknown_AddRef(p) +#define IDirectSound3DListener_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSound3DListener_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->lpVtbl->GetDistanceFactor(p,a) +#define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->lpVtbl->GetDopplerFactor(p,a) +#define IDirectSound3DListener_GetOrientation(p,a,b) (p)->lpVtbl->GetOrientation(p,a,b) +#define IDirectSound3DListener_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a) +#define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->lpVtbl->GetRolloffFactor(p,a) +#define IDirectSound3DListener_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a) +#define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b) +#define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->lpVtbl->SetDistanceFactor(p,a,b) +#define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->lpVtbl->SetDopplerFactor(p,a,b) +#define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->lpVtbl->SetOrientation(p,a,b,c,d,e,f,g) +#define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d) +#define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->lpVtbl->SetRolloffFactor(p,a,b) +#define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d) +#define IDirectSound3DListener_CommitDeferredSettings(p) (p)->lpVtbl->CommitDeferredSettings(p) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSound3DListener_GetAllParameters(p,a) (p)->GetAllParameters(a) +#define IDirectSound3DListener_GetDistanceFactor(p,a) (p)->GetDistanceFactor(a) +#define IDirectSound3DListener_GetDopplerFactor(p,a) (p)->GetDopplerFactor(a) +#define IDirectSound3DListener_GetOrientation(p,a,b) (p)->GetOrientation(a,b) +#define IDirectSound3DListener_GetPosition(p,a) (p)->GetPosition(a) +#define IDirectSound3DListener_GetRolloffFactor(p,a) (p)->GetRolloffFactor(a) +#define IDirectSound3DListener_GetVelocity(p,a) (p)->GetVelocity(a) +#define IDirectSound3DListener_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b) +#define IDirectSound3DListener_SetDistanceFactor(p,a,b) (p)->SetDistanceFactor(a,b) +#define IDirectSound3DListener_SetDopplerFactor(p,a,b) (p)->SetDopplerFactor(a,b) +#define IDirectSound3DListener_SetOrientation(p,a,b,c,d,e,f,g) (p)->SetOrientation(a,b,c,d,e,f,g) +#define IDirectSound3DListener_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d) +#define IDirectSound3DListener_SetRolloffFactor(p,a,b) (p)->SetRolloffFactor(a,b) +#define IDirectSound3DListener_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d) +#define IDirectSound3DListener_CommitDeferredSettings(p) (p)->CommitDeferredSettings() +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSound3DBuffer +// + +DEFINE_GUID(IID_IDirectSound3DBuffer, 0x279AFA86, 0x4981, 0x11CE, 0xA5, 0x21, 0x00, 0x20, 0xAF, 0x0B, 0xE5, 0x60); + +#undef INTERFACE +#define INTERFACE IDirectSound3DBuffer + +DECLARE_INTERFACE_(IDirectSound3DBuffer, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSound3DBuffer methods + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDS3DBUFFER pDs3dBuffer) PURE; + STDMETHOD(GetConeAngles) (THIS_ _Out_ LPDWORD pdwInsideConeAngle, _Out_ LPDWORD pdwOutsideConeAngle) PURE; + STDMETHOD(GetConeOrientation) (THIS_ _Out_ D3DVECTOR* pvOrientation) PURE; + STDMETHOD(GetConeOutsideVolume) (THIS_ _Out_ LPLONG plConeOutsideVolume) PURE; + STDMETHOD(GetMaxDistance) (THIS_ _Out_ D3DVALUE* pflMaxDistance) PURE; + STDMETHOD(GetMinDistance) (THIS_ _Out_ D3DVALUE* pflMinDistance) PURE; + STDMETHOD(GetMode) (THIS_ _Out_ LPDWORD pdwMode) PURE; + STDMETHOD(GetPosition) (THIS_ _Out_ D3DVECTOR* pvPosition) PURE; + STDMETHOD(GetVelocity) (THIS_ _Out_ D3DVECTOR* pvVelocity) PURE; + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDS3DBUFFER pcDs3dBuffer, DWORD dwApply) PURE; + STDMETHOD(SetConeAngles) (THIS_ DWORD dwInsideConeAngle, DWORD dwOutsideConeAngle, DWORD dwApply) PURE; + STDMETHOD(SetConeOrientation) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; + STDMETHOD(SetConeOutsideVolume) (THIS_ LONG lConeOutsideVolume, DWORD dwApply) PURE; + STDMETHOD(SetMaxDistance) (THIS_ D3DVALUE flMaxDistance, DWORD dwApply) PURE; + STDMETHOD(SetMinDistance) (THIS_ D3DVALUE flMinDistance, DWORD dwApply) PURE; + STDMETHOD(SetMode) (THIS_ DWORD dwMode, DWORD dwApply) PURE; + STDMETHOD(SetPosition) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; + STDMETHOD(SetVelocity) (THIS_ D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply) PURE; +}; + +#define IDirectSound3DBuffer_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSound3DBuffer_AddRef(p) IUnknown_AddRef(p) +#define IDirectSound3DBuffer_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->lpVtbl->GetConeAngles(p,a,b) +#define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->lpVtbl->GetConeOrientation(p,a) +#define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->lpVtbl->GetConeOutsideVolume(p,a) +#define IDirectSound3DBuffer_GetPosition(p,a) (p)->lpVtbl->GetPosition(p,a) +#define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->lpVtbl->GetMinDistance(p,a) +#define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->lpVtbl->GetMaxDistance(p,a) +#define IDirectSound3DBuffer_GetMode(p,a) (p)->lpVtbl->GetMode(p,a) +#define IDirectSound3DBuffer_GetVelocity(p,a) (p)->lpVtbl->GetVelocity(p,a) +#define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->lpVtbl->SetAllParameters(p,a,b) +#define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->lpVtbl->SetConeAngles(p,a,b,c) +#define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->lpVtbl->SetConeOrientation(p,a,b,c,d) +#define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->lpVtbl->SetConeOutsideVolume(p,a,b) +#define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->lpVtbl->SetPosition(p,a,b,c,d) +#define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->lpVtbl->SetMinDistance(p,a,b) +#define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->lpVtbl->SetMaxDistance(p,a,b) +#define IDirectSound3DBuffer_SetMode(p,a,b) (p)->lpVtbl->SetMode(p,a,b) +#define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->lpVtbl->SetVelocity(p,a,b,c,d) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSound3DBuffer_GetAllParameters(p,a) (p)->GetAllParameters(a) +#define IDirectSound3DBuffer_GetConeAngles(p,a,b) (p)->GetConeAngles(a,b) +#define IDirectSound3DBuffer_GetConeOrientation(p,a) (p)->GetConeOrientation(a) +#define IDirectSound3DBuffer_GetConeOutsideVolume(p,a) (p)->GetConeOutsideVolume(a) +#define IDirectSound3DBuffer_GetPosition(p,a) (p)->GetPosition(a) +#define IDirectSound3DBuffer_GetMinDistance(p,a) (p)->GetMinDistance(a) +#define IDirectSound3DBuffer_GetMaxDistance(p,a) (p)->GetMaxDistance(a) +#define IDirectSound3DBuffer_GetMode(p,a) (p)->GetMode(a) +#define IDirectSound3DBuffer_GetVelocity(p,a) (p)->GetVelocity(a) +#define IDirectSound3DBuffer_SetAllParameters(p,a,b) (p)->SetAllParameters(a,b) +#define IDirectSound3DBuffer_SetConeAngles(p,a,b,c) (p)->SetConeAngles(a,b,c) +#define IDirectSound3DBuffer_SetConeOrientation(p,a,b,c,d) (p)->SetConeOrientation(a,b,c,d) +#define IDirectSound3DBuffer_SetConeOutsideVolume(p,a,b) (p)->SetConeOutsideVolume(a,b) +#define IDirectSound3DBuffer_SetPosition(p,a,b,c,d) (p)->SetPosition(a,b,c,d) +#define IDirectSound3DBuffer_SetMinDistance(p,a,b) (p)->SetMinDistance(a,b) +#define IDirectSound3DBuffer_SetMaxDistance(p,a,b) (p)->SetMaxDistance(a,b) +#define IDirectSound3DBuffer_SetMode(p,a,b) (p)->SetMode(a,b) +#define IDirectSound3DBuffer_SetVelocity(p,a,b,c,d) (p)->SetVelocity(a,b,c,d) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundCapture +// + +DEFINE_GUID(IID_IDirectSoundCapture, 0xb0210781, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); + +#undef INTERFACE +#define INTERFACE IDirectSoundCapture + +DECLARE_INTERFACE_(IDirectSoundCapture, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundCapture methods + STDMETHOD(CreateCaptureBuffer) (THIS_ _In_ LPCDSCBUFFERDESC pcDSCBufferDesc, _Outptr_ LPDIRECTSOUNDCAPTUREBUFFER *ppDSCBuffer, _Pre_null_ LPUNKNOWN pUnkOuter) PURE; + STDMETHOD(GetCaps) (THIS_ _Out_ LPDSCCAPS pDSCCaps) PURE; + STDMETHOD(Initialize) (THIS_ _In_opt_ LPCGUID pcGuidDevice) PURE; +}; + +#define IDirectSoundCapture_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundCapture_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundCapture_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->lpVtbl->CreateCaptureBuffer(p,a,b,c) +#define IDirectSoundCapture_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) +#define IDirectSoundCapture_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundCapture_CreateCaptureBuffer(p,a,b,c) (p)->CreateCaptureBuffer(a,b,c) +#define IDirectSoundCapture_GetCaps(p,a) (p)->GetCaps(a) +#define IDirectSoundCapture_Initialize(p,a) (p)->Initialize(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundCaptureBuffer +// + +DEFINE_GUID(IID_IDirectSoundCaptureBuffer, 0xb0210782, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); + +#undef INTERFACE +#define INTERFACE IDirectSoundCaptureBuffer + +DECLARE_INTERFACE_(IDirectSoundCaptureBuffer, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundCaptureBuffer methods + STDMETHOD(GetCaps) (THIS_ _Out_ LPDSCBCAPS pDSCBCaps) PURE; + STDMETHOD(GetCurrentPosition) (THIS_ _Out_opt_ LPDWORD pdwCapturePosition, _Out_opt_ LPDWORD pdwReadPosition) PURE; + STDMETHOD(GetFormat) (THIS_ _Out_writes_bytes_opt_(dwSizeAllocated) LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, _Out_opt_ LPDWORD pdwSizeWritten) PURE; + STDMETHOD(GetStatus) (THIS_ _Out_ LPDWORD pdwStatus) PURE; + STDMETHOD(Initialize) (THIS_ _In_ LPDIRECTSOUNDCAPTURE pDirectSoundCapture, _In_ LPCDSCBUFFERDESC pcDSCBufferDesc) PURE; + STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, + _Outptr_result_bytebuffer_(*pdwAudioBytes1) LPVOID *ppvAudioPtr1, _Out_ LPDWORD pdwAudioBytes1, + _Outptr_opt_result_bytebuffer_(*pdwAudioBytes2) LPVOID *ppvAudioPtr2, _Out_opt_ LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; + STDMETHOD(Start) (THIS_ DWORD dwFlags) PURE; + STDMETHOD(Stop) (THIS) PURE; + STDMETHOD(Unlock) (THIS_ _In_reads_bytes_(dwAudioBytes1) LPVOID pvAudioPtr1, DWORD dwAudioBytes1, + _In_reads_bytes_opt_(dwAudioBytes2) LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; +}; + +#define IDirectSoundCaptureBuffer_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundCaptureBuffer_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundCaptureBuffer_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) +#define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->lpVtbl->GetCurrentPosition(p,a,b) +#define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->lpVtbl->GetFormat(p,a,b,c) +#define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->lpVtbl->GetStatus(p,a) +#define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->lpVtbl->Lock(p,a,b,c,d,e,f,g) +#define IDirectSoundCaptureBuffer_Start(p,a) (p)->lpVtbl->Start(p,a) +#define IDirectSoundCaptureBuffer_Stop(p) (p)->lpVtbl->Stop(p) +#define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->lpVtbl->Unlock(p,a,b,c,d) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundCaptureBuffer_GetCaps(p,a) (p)->GetCaps(a) +#define IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) (p)->GetCurrentPosition(a,b) +#define IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) (p)->GetFormat(a,b,c) +#define IDirectSoundCaptureBuffer_GetStatus(p,a) (p)->GetStatus(a) +#define IDirectSoundCaptureBuffer_Initialize(p,a,b) (p)->Initialize(a,b) +#define IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) (p)->Lock(a,b,c,d,e,f,g) +#define IDirectSoundCaptureBuffer_Start(p,a) (p)->Start(a) +#define IDirectSoundCaptureBuffer_Stop(p) (p)->Stop() +#define IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) (p)->Unlock(a,b,c,d) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +#if DIRECTSOUND_VERSION >= 0x0800 + +// +// IDirectSoundCaptureBuffer8 +// + +DEFINE_GUID(IID_IDirectSoundCaptureBuffer8, 0x990df4, 0xdbb, 0x4872, 0x83, 0x3e, 0x6d, 0x30, 0x3e, 0x80, 0xae, 0xb6); + +#undef INTERFACE +#define INTERFACE IDirectSoundCaptureBuffer8 + +DECLARE_INTERFACE_(IDirectSoundCaptureBuffer8, IDirectSoundCaptureBuffer) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundCaptureBuffer methods + STDMETHOD(GetCaps) (THIS_ _Out_ LPDSCBCAPS pDSCBCaps) PURE; + STDMETHOD(GetCurrentPosition) (THIS_ _Out_opt_ LPDWORD pdwCapturePosition, _Out_opt_ LPDWORD pdwReadPosition) PURE; + STDMETHOD(GetFormat) (THIS_ _Out_writes_bytes_opt_(dwSizeAllocated) LPWAVEFORMATEX pwfxFormat, DWORD dwSizeAllocated, _Out_opt_ LPDWORD pdwSizeWritten) PURE; + STDMETHOD(GetStatus) (THIS_ _Out_ LPDWORD pdwStatus) PURE; + STDMETHOD(Initialize) (THIS_ _In_ LPDIRECTSOUNDCAPTURE pDirectSoundCapture, _In_ LPCDSCBUFFERDESC pcDSCBufferDesc) PURE; + STDMETHOD(Lock) (THIS_ DWORD dwOffset, DWORD dwBytes, + _Outptr_result_bytebuffer_(*pdwAudioBytes1) LPVOID *ppvAudioPtr1, _Out_ LPDWORD pdwAudioBytes1, + _Outptr_opt_result_bytebuffer_(*pdwAudioBytes2) LPVOID *ppvAudioPtr2, _Out_opt_ LPDWORD pdwAudioBytes2, DWORD dwFlags) PURE; + STDMETHOD(Start) (THIS_ DWORD dwFlags) PURE; + STDMETHOD(Stop) (THIS) PURE; + STDMETHOD(Unlock) (THIS_ _In_reads_bytes_(dwAudioBytes1) LPVOID pvAudioPtr1, DWORD dwAudioBytes1, + _In_reads_bytes_opt_(dwAudioBytes2) LPVOID pvAudioPtr2, DWORD dwAudioBytes2) PURE; + + // IDirectSoundCaptureBuffer8 methods + STDMETHOD(GetObjectInPath) (THIS_ _In_ REFGUID rguidObject, DWORD dwIndex, _In_ REFGUID rguidInterface, _Outptr_ LPVOID *ppObject) PURE; + STDMETHOD(GetFXStatus) (DWORD dwEffectsCount, _Out_writes_(dwEffectsCount) LPDWORD pdwFXStatus) PURE; +}; + +#define IDirectSoundCaptureBuffer8_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundCaptureBuffer8_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundCaptureBuffer8_Release(p) IUnknown_Release(p) + +#define IDirectSoundCaptureBuffer8_GetCaps(p,a) IDirectSoundCaptureBuffer_GetCaps(p,a) +#define IDirectSoundCaptureBuffer8_GetCurrentPosition(p,a,b) IDirectSoundCaptureBuffer_GetCurrentPosition(p,a,b) +#define IDirectSoundCaptureBuffer8_GetFormat(p,a,b,c) IDirectSoundCaptureBuffer_GetFormat(p,a,b,c) +#define IDirectSoundCaptureBuffer8_GetStatus(p,a) IDirectSoundCaptureBuffer_GetStatus(p,a) +#define IDirectSoundCaptureBuffer8_Initialize(p,a,b) IDirectSoundCaptureBuffer_Initialize(p,a,b) +#define IDirectSoundCaptureBuffer8_Lock(p,a,b,c,d,e,f,g) IDirectSoundCaptureBuffer_Lock(p,a,b,c,d,e,f,g) +#define IDirectSoundCaptureBuffer8_Start(p,a) IDirectSoundCaptureBuffer_Start(p,a) +#define IDirectSoundCaptureBuffer8_Stop(p) IDirectSoundCaptureBuffer_Stop(p)) +#define IDirectSoundCaptureBuffer8_Unlock(p,a,b,c,d) IDirectSoundCaptureBuffer_Unlock(p,a,b,c,d) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->lpVtbl->GetObjectInPath(p,a,b,c,d) +#define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->lpVtbl->GetFXStatus(p,a,b) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundCaptureBuffer8_GetObjectInPath(p,a,b,c,d) (p)->GetObjectInPath(a,b,c,d) +#define IDirectSoundCaptureBuffer8_GetFXStatus(p,a,b) (p)->GetFXStatus(a,b) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +#endif // DIRECTSOUND_VERSION >= 0x0800 + +// +// IDirectSoundNotify +// + +DEFINE_GUID(IID_IDirectSoundNotify, 0xb0210783, 0x89cd, 0x11d0, 0xaf, 0x8, 0x0, 0xa0, 0xc9, 0x25, 0xcd, 0x16); + +#undef INTERFACE +#define INTERFACE IDirectSoundNotify + +DECLARE_INTERFACE_(IDirectSoundNotify, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundNotify methods + STDMETHOD(SetNotificationPositions) (THIS_ DWORD dwPositionNotifies, _In_reads_(dwPositionNotifies) LPCDSBPOSITIONNOTIFY pcPositionNotifies) PURE; +}; + +#define IDirectSoundNotify_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundNotify_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundNotify_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->lpVtbl->SetNotificationPositions(p,a,b) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundNotify_SetNotificationPositions(p,a,b) (p)->SetNotificationPositions(a,b) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IKsPropertySet +// + +#ifndef _IKsPropertySet_ +#define _IKsPropertySet_ + +#ifdef __cplusplus +// 'struct' not 'class' per the way DECLARE_INTERFACE_ is defined +struct IKsPropertySet; +#endif // __cplusplus + +typedef struct IKsPropertySet *LPKSPROPERTYSET; + +#define KSPROPERTY_SUPPORT_GET 0x00000001 +#define KSPROPERTY_SUPPORT_SET 0x00000002 + +DEFINE_GUID(IID_IKsPropertySet, 0x31efac30, 0x515c, 0x11d0, 0xa9, 0xaa, 0x00, 0xaa, 0x00, 0x61, 0xbe, 0x93); + +#undef INTERFACE +#define INTERFACE IKsPropertySet + +DECLARE_INTERFACE_(IKsPropertySet, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IKsPropertySet methods + STDMETHOD(Get) (THIS_ _In_ REFGUID rguidPropSet, ULONG ulId, _In_reads_bytes_opt_(ulInstanceLength) LPVOID pInstanceData, ULONG ulInstanceLength, + _Out_writes_bytes_(ulDataLength) LPVOID pPropertyData, ULONG ulDataLength, _Out_opt_ PULONG pulBytesReturned) PURE; + STDMETHOD(Set) (THIS_ _In_ REFGUID rguidPropSet, ULONG ulId, _In_reads_bytes_opt_(ulInstanceLength) LPVOID pInstanceData, ULONG ulInstanceLength, + _In_reads_bytes_(ulDataLength) LPVOID pPropertyData, ULONG ulDataLength) PURE; + STDMETHOD(QuerySupport) (THIS_ _In_ REFGUID rguidPropSet, ULONG ulId, _Out_ PULONG pulTypeSupport) PURE; +}; + +#define IKsPropertySet_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IKsPropertySet_AddRef(p) IUnknown_AddRef(p) +#define IKsPropertySet_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->lpVtbl->Get(p,a,b,c,d,e,f,g) +#define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->lpVtbl->Set(p,a,b,c,d,e,f) +#define IKsPropertySet_QuerySupport(p,a,b,c) (p)->lpVtbl->QuerySupport(p,a,b,c) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->Get(a,b,c,d,e,f,g) +#define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->Set(a,b,c,d,e,f) +#define IKsPropertySet_QuerySupport(p,a,b,c) (p)->QuerySupport(a,b,c) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +#endif // _IKsPropertySet_ + +#if DIRECTSOUND_VERSION >= 0x0800 + +// +// IDirectSoundFXGargle +// + +DEFINE_GUID(IID_IDirectSoundFXGargle, 0xd616f352, 0xd622, 0x11ce, 0xaa, 0xc5, 0x00, 0x20, 0xaf, 0x0b, 0x99, 0xa3); + +typedef struct _DSFXGargle +{ + DWORD dwRateHz; // Rate of modulation in hz + DWORD dwWaveShape; // DSFXGARGLE_WAVE_xxx +} DSFXGargle, *LPDSFXGargle; + +#define DSFXGARGLE_WAVE_TRIANGLE 0 +#define DSFXGARGLE_WAVE_SQUARE 1 + +typedef const DSFXGargle *LPCDSFXGargle; + +#define DSFXGARGLE_RATEHZ_MIN 1 +#define DSFXGARGLE_RATEHZ_MAX 1000 + +#undef INTERFACE +#define INTERFACE IDirectSoundFXGargle + +DECLARE_INTERFACE_(IDirectSoundFXGargle, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundFXGargle methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSFXGargle pcDsFxGargle) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSFXGargle pDsFxGargle) PURE; +}; + +#define IDirectSoundFXGargle_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundFXGargle_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundFXGargle_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXGargle_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundFXGargle_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXGargle_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundFXGargle_GetAllParameters(p,a) (p)->GetAllParameters(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundFXChorus +// + +DEFINE_GUID(IID_IDirectSoundFXChorus, 0x880842e3, 0x145f, 0x43e6, 0xa9, 0x34, 0xa7, 0x18, 0x06, 0xe5, 0x05, 0x47); + +typedef struct _DSFXChorus +{ + FLOAT fWetDryMix; + FLOAT fDepth; + FLOAT fFeedback; + FLOAT fFrequency; + LONG lWaveform; // LFO shape; DSFXCHORUS_WAVE_xxx + FLOAT fDelay; + LONG lPhase; +} DSFXChorus, *LPDSFXChorus; + +typedef const DSFXChorus *LPCDSFXChorus; + +#define DSFXCHORUS_WAVE_TRIANGLE 0 +#define DSFXCHORUS_WAVE_SIN 1 + +#define DSFXCHORUS_WETDRYMIX_MIN 0.0f +#define DSFXCHORUS_WETDRYMIX_MAX 100.0f +#define DSFXCHORUS_DEPTH_MIN 0.0f +#define DSFXCHORUS_DEPTH_MAX 100.0f +#define DSFXCHORUS_FEEDBACK_MIN -99.0f +#define DSFXCHORUS_FEEDBACK_MAX 99.0f +#define DSFXCHORUS_FREQUENCY_MIN 0.0f +#define DSFXCHORUS_FREQUENCY_MAX 10.0f +#define DSFXCHORUS_DELAY_MIN 0.0f +#define DSFXCHORUS_DELAY_MAX 20.0f +#define DSFXCHORUS_PHASE_MIN 0 +#define DSFXCHORUS_PHASE_MAX 4 + +#define DSFXCHORUS_PHASE_NEG_180 0 +#define DSFXCHORUS_PHASE_NEG_90 1 +#define DSFXCHORUS_PHASE_ZERO 2 +#define DSFXCHORUS_PHASE_90 3 +#define DSFXCHORUS_PHASE_180 4 + +#undef INTERFACE +#define INTERFACE IDirectSoundFXChorus + +DECLARE_INTERFACE_(IDirectSoundFXChorus, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundFXChorus methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSFXChorus pcDsFxChorus) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSFXChorus pDsFxChorus) PURE; +}; + +#define IDirectSoundFXChorus_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundFXChorus_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundFXChorus_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXChorus_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundFXChorus_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXChorus_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundFXChorus_GetAllParameters(p,a) (p)->GetAllParameters(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundFXFlanger +// + +DEFINE_GUID(IID_IDirectSoundFXFlanger, 0x903e9878, 0x2c92, 0x4072, 0x9b, 0x2c, 0xea, 0x68, 0xf5, 0x39, 0x67, 0x83); + +typedef struct _DSFXFlanger +{ + FLOAT fWetDryMix; + FLOAT fDepth; + FLOAT fFeedback; + FLOAT fFrequency; + LONG lWaveform; + FLOAT fDelay; + LONG lPhase; +} DSFXFlanger, *LPDSFXFlanger; + +typedef const DSFXFlanger *LPCDSFXFlanger; + +#define DSFXFLANGER_WAVE_TRIANGLE 0 +#define DSFXFLANGER_WAVE_SIN 1 + +#define DSFXFLANGER_WETDRYMIX_MIN 0.0f +#define DSFXFLANGER_WETDRYMIX_MAX 100.0f +#define DSFXFLANGER_FREQUENCY_MIN 0.0f +#define DSFXFLANGER_FREQUENCY_MAX 10.0f +#define DSFXFLANGER_DEPTH_MIN 0.0f +#define DSFXFLANGER_DEPTH_MAX 100.0f +#define DSFXFLANGER_PHASE_MIN 0 +#define DSFXFLANGER_PHASE_MAX 4 +#define DSFXFLANGER_FEEDBACK_MIN -99.0f +#define DSFXFLANGER_FEEDBACK_MAX 99.0f +#define DSFXFLANGER_DELAY_MIN 0.0f +#define DSFXFLANGER_DELAY_MAX 4.0f + +#define DSFXFLANGER_PHASE_NEG_180 0 +#define DSFXFLANGER_PHASE_NEG_90 1 +#define DSFXFLANGER_PHASE_ZERO 2 +#define DSFXFLANGER_PHASE_90 3 +#define DSFXFLANGER_PHASE_180 4 + +#undef INTERFACE +#define INTERFACE IDirectSoundFXFlanger + +DECLARE_INTERFACE_(IDirectSoundFXFlanger, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundFXFlanger methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSFXFlanger pcDsFxFlanger) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSFXFlanger pDsFxFlanger) PURE; +}; + +#define IDirectSoundFXFlanger_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundFXFlanger_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundFXFlanger_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXFlanger_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundFXFlanger_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXFlanger_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundFXFlanger_GetAllParameters(p,a) (p)->GetAllParameters(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundFXEcho +// + +DEFINE_GUID(IID_IDirectSoundFXEcho, 0x8bd28edf, 0x50db, 0x4e92, 0xa2, 0xbd, 0x44, 0x54, 0x88, 0xd1, 0xed, 0x42); + +typedef struct _DSFXEcho +{ + FLOAT fWetDryMix; + FLOAT fFeedback; + FLOAT fLeftDelay; + FLOAT fRightDelay; + LONG lPanDelay; +} DSFXEcho, *LPDSFXEcho; + +typedef const DSFXEcho *LPCDSFXEcho; + +#define DSFXECHO_WETDRYMIX_MIN 0.0f +#define DSFXECHO_WETDRYMIX_MAX 100.0f +#define DSFXECHO_FEEDBACK_MIN 0.0f +#define DSFXECHO_FEEDBACK_MAX 100.0f +#define DSFXECHO_LEFTDELAY_MIN 1.0f +#define DSFXECHO_LEFTDELAY_MAX 2000.0f +#define DSFXECHO_RIGHTDELAY_MIN 1.0f +#define DSFXECHO_RIGHTDELAY_MAX 2000.0f +#define DSFXECHO_PANDELAY_MIN 0 +#define DSFXECHO_PANDELAY_MAX 1 + +#undef INTERFACE +#define INTERFACE IDirectSoundFXEcho + +DECLARE_INTERFACE_(IDirectSoundFXEcho, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundFXEcho methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSFXEcho pcDsFxEcho) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSFXEcho pDsFxEcho) PURE; +}; + +#define IDirectSoundFXEcho_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundFXEcho_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundFXEcho_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXEcho_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundFXEcho_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXEcho_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundFXEcho_GetAllParameters(p,a) (p)->GetAllParameters(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundFXDistortion +// + +DEFINE_GUID(IID_IDirectSoundFXDistortion, 0x8ecf4326, 0x455f, 0x4d8b, 0xbd, 0xa9, 0x8d, 0x5d, 0x3e, 0x9e, 0x3e, 0x0b); + +typedef struct _DSFXDistortion +{ + FLOAT fGain; + FLOAT fEdge; + FLOAT fPostEQCenterFrequency; + FLOAT fPostEQBandwidth; + FLOAT fPreLowpassCutoff; +} DSFXDistortion, *LPDSFXDistortion; + +typedef const DSFXDistortion *LPCDSFXDistortion; + +#define DSFXDISTORTION_GAIN_MIN -60.0f +#define DSFXDISTORTION_GAIN_MAX 0.0f +#define DSFXDISTORTION_EDGE_MIN 0.0f +#define DSFXDISTORTION_EDGE_MAX 100.0f +#define DSFXDISTORTION_POSTEQCENTERFREQUENCY_MIN 100.0f +#define DSFXDISTORTION_POSTEQCENTERFREQUENCY_MAX 8000.0f +#define DSFXDISTORTION_POSTEQBANDWIDTH_MIN 100.0f +#define DSFXDISTORTION_POSTEQBANDWIDTH_MAX 8000.0f +#define DSFXDISTORTION_PRELOWPASSCUTOFF_MIN 100.0f +#define DSFXDISTORTION_PRELOWPASSCUTOFF_MAX 8000.0f + +#undef INTERFACE +#define INTERFACE IDirectSoundFXDistortion + +DECLARE_INTERFACE_(IDirectSoundFXDistortion, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundFXDistortion methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSFXDistortion pcDsFxDistortion) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSFXDistortion pDsFxDistortion) PURE; +}; + +#define IDirectSoundFXDistortion_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundFXDistortion_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundFXDistortion_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXDistortion_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundFXDistortion_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXDistortion_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundFXDistortion_GetAllParameters(p,a) (p)->GetAllParameters(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundFXCompressor +// + +DEFINE_GUID(IID_IDirectSoundFXCompressor, 0x4bbd1154, 0x62f6, 0x4e2c, 0xa1, 0x5c, 0xd3, 0xb6, 0xc4, 0x17, 0xf7, 0xa0); + +typedef struct _DSFXCompressor +{ + FLOAT fGain; + FLOAT fAttack; + FLOAT fRelease; + FLOAT fThreshold; + FLOAT fRatio; + FLOAT fPredelay; +} DSFXCompressor, *LPDSFXCompressor; + +typedef const DSFXCompressor *LPCDSFXCompressor; + +#define DSFXCOMPRESSOR_GAIN_MIN -60.0f +#define DSFXCOMPRESSOR_GAIN_MAX 60.0f +#define DSFXCOMPRESSOR_ATTACK_MIN 0.01f +#define DSFXCOMPRESSOR_ATTACK_MAX 500.0f +#define DSFXCOMPRESSOR_RELEASE_MIN 50.0f +#define DSFXCOMPRESSOR_RELEASE_MAX 3000.0f +#define DSFXCOMPRESSOR_THRESHOLD_MIN -60.0f +#define DSFXCOMPRESSOR_THRESHOLD_MAX 0.0f +#define DSFXCOMPRESSOR_RATIO_MIN 1.0f +#define DSFXCOMPRESSOR_RATIO_MAX 100.0f +#define DSFXCOMPRESSOR_PREDELAY_MIN 0.0f +#define DSFXCOMPRESSOR_PREDELAY_MAX 4.0f + +#undef INTERFACE +#define INTERFACE IDirectSoundFXCompressor + +DECLARE_INTERFACE_(IDirectSoundFXCompressor, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundFXCompressor methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSFXCompressor pcDsFxCompressor) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSFXCompressor pDsFxCompressor) PURE; +}; + +#define IDirectSoundFXCompressor_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundFXCompressor_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundFXCompressor_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXCompressor_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundFXCompressor_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXCompressor_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundFXCompressor_GetAllParameters(p,a) (p)->GetAllParameters(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundFXParamEq +// + +DEFINE_GUID(IID_IDirectSoundFXParamEq, 0xc03ca9fe, 0xfe90, 0x4204, 0x80, 0x78, 0x82, 0x33, 0x4c, 0xd1, 0x77, 0xda); + +typedef struct _DSFXParamEq +{ + FLOAT fCenter; + FLOAT fBandwidth; + FLOAT fGain; +} DSFXParamEq, *LPDSFXParamEq; + +typedef const DSFXParamEq *LPCDSFXParamEq; + +#define DSFXPARAMEQ_CENTER_MIN 80.0f +#define DSFXPARAMEQ_CENTER_MAX 16000.0f +#define DSFXPARAMEQ_BANDWIDTH_MIN 1.0f +#define DSFXPARAMEQ_BANDWIDTH_MAX 36.0f +#define DSFXPARAMEQ_GAIN_MIN -15.0f +#define DSFXPARAMEQ_GAIN_MAX 15.0f + +#undef INTERFACE +#define INTERFACE IDirectSoundFXParamEq + +DECLARE_INTERFACE_(IDirectSoundFXParamEq, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundFXParamEq methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSFXParamEq pcDsFxParamEq) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSFXParamEq pDsFxParamEq) PURE; +}; + +#define IDirectSoundFXParamEq_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundFXParamEq_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundFXParamEq_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXParamEq_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundFXParamEq_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXParamEq_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundFXParamEq_GetAllParameters(p,a) (p)->GetAllParameters(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundFXI3DL2Reverb +// + +DEFINE_GUID(IID_IDirectSoundFXI3DL2Reverb, 0x4b166a6a, 0x0d66, 0x43f3, 0x80, 0xe3, 0xee, 0x62, 0x80, 0xde, 0xe1, 0xa4); + +typedef struct _DSFXI3DL2Reverb +{ + LONG lRoom; // [-10000, 0] default: -1000 mB + LONG lRoomHF; // [-10000, 0] default: 0 mB + FLOAT flRoomRolloffFactor; // [0.0, 10.0] default: 0.0 + FLOAT flDecayTime; // [0.1, 20.0] default: 1.49s + FLOAT flDecayHFRatio; // [0.1, 2.0] default: 0.83 + LONG lReflections; // [-10000, 1000] default: -2602 mB + FLOAT flReflectionsDelay; // [0.0, 0.3] default: 0.007 s + LONG lReverb; // [-10000, 2000] default: 200 mB + FLOAT flReverbDelay; // [0.0, 0.1] default: 0.011 s + FLOAT flDiffusion; // [0.0, 100.0] default: 100.0 % + FLOAT flDensity; // [0.0, 100.0] default: 100.0 % + FLOAT flHFReference; // [20.0, 20000.0] default: 5000.0 Hz +} DSFXI3DL2Reverb, *LPDSFXI3DL2Reverb; + +typedef const DSFXI3DL2Reverb *LPCDSFXI3DL2Reverb; + +#define DSFX_I3DL2REVERB_ROOM_MIN (-10000) +#define DSFX_I3DL2REVERB_ROOM_MAX 0 +#define DSFX_I3DL2REVERB_ROOM_DEFAULT (-1000) + +#define DSFX_I3DL2REVERB_ROOMHF_MIN (-10000) +#define DSFX_I3DL2REVERB_ROOMHF_MAX 0 +#define DSFX_I3DL2REVERB_ROOMHF_DEFAULT (-100) + +#define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MIN 0.0f +#define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_MAX 10.0f +#define DSFX_I3DL2REVERB_ROOMROLLOFFFACTOR_DEFAULT 0.0f + +#define DSFX_I3DL2REVERB_DECAYTIME_MIN 0.1f +#define DSFX_I3DL2REVERB_DECAYTIME_MAX 20.0f +#define DSFX_I3DL2REVERB_DECAYTIME_DEFAULT 1.49f + +#define DSFX_I3DL2REVERB_DECAYHFRATIO_MIN 0.1f +#define DSFX_I3DL2REVERB_DECAYHFRATIO_MAX 2.0f +#define DSFX_I3DL2REVERB_DECAYHFRATIO_DEFAULT 0.83f + +#define DSFX_I3DL2REVERB_REFLECTIONS_MIN (-10000) +#define DSFX_I3DL2REVERB_REFLECTIONS_MAX 1000 +#define DSFX_I3DL2REVERB_REFLECTIONS_DEFAULT (-2602) + +#define DSFX_I3DL2REVERB_REFLECTIONSDELAY_MIN 0.0f +#define DSFX_I3DL2REVERB_REFLECTIONSDELAY_MAX 0.3f +#define DSFX_I3DL2REVERB_REFLECTIONSDELAY_DEFAULT 0.007f + +#define DSFX_I3DL2REVERB_REVERB_MIN (-10000) +#define DSFX_I3DL2REVERB_REVERB_MAX 2000 +#define DSFX_I3DL2REVERB_REVERB_DEFAULT (200) + +#define DSFX_I3DL2REVERB_REVERBDELAY_MIN 0.0f +#define DSFX_I3DL2REVERB_REVERBDELAY_MAX 0.1f +#define DSFX_I3DL2REVERB_REVERBDELAY_DEFAULT 0.011f + +#define DSFX_I3DL2REVERB_DIFFUSION_MIN 0.0f +#define DSFX_I3DL2REVERB_DIFFUSION_MAX 100.0f +#define DSFX_I3DL2REVERB_DIFFUSION_DEFAULT 100.0f + +#define DSFX_I3DL2REVERB_DENSITY_MIN 0.0f +#define DSFX_I3DL2REVERB_DENSITY_MAX 100.0f +#define DSFX_I3DL2REVERB_DENSITY_DEFAULT 100.0f + +#define DSFX_I3DL2REVERB_HFREFERENCE_MIN 20.0f +#define DSFX_I3DL2REVERB_HFREFERENCE_MAX 20000.0f +#define DSFX_I3DL2REVERB_HFREFERENCE_DEFAULT 5000.0f + +#define DSFX_I3DL2REVERB_QUALITY_MIN 0 +#define DSFX_I3DL2REVERB_QUALITY_MAX 3 +#define DSFX_I3DL2REVERB_QUALITY_DEFAULT 2 + +#undef INTERFACE +#define INTERFACE IDirectSoundFXI3DL2Reverb + +DECLARE_INTERFACE_(IDirectSoundFXI3DL2Reverb, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundFXI3DL2Reverb methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSFXI3DL2Reverb pcDsFxI3DL2Reverb) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSFXI3DL2Reverb pDsFxI3DL2Reverb) PURE; + STDMETHOD(SetPreset) (THIS_ DWORD dwPreset) PURE; + STDMETHOD(GetPreset) (THIS_ _Out_ LPDWORD pdwPreset) PURE; + STDMETHOD(SetQuality) (THIS_ LONG lQuality) PURE; + STDMETHOD(GetQuality) (THIS_ _Out_ LONG *plQuality) PURE; +}; + +#define IDirectSoundFXI3DL2Reverb_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundFXI3DL2Reverb_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundFXI3DL2Reverb_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->lpVtbl->SetPreset(p,a) +#define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->lpVtbl->GetPreset(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXI3DL2Reverb_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundFXI3DL2Reverb_GetAllParameters(p,a) (p)->GetAllParameters(a) +#define IDirectSoundFXI3DL2Reverb_SetPreset(p,a) (p)->SetPreset(a) +#define IDirectSoundFXI3DL2Reverb_GetPreset(p,a) (p)->GetPreset(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundFXWavesReverb +// + +DEFINE_GUID(IID_IDirectSoundFXWavesReverb,0x46858c3a,0x0dc6,0x45e3,0xb7,0x60,0xd4,0xee,0xf1,0x6c,0xb3,0x25); + +typedef struct _DSFXWavesReverb +{ + FLOAT fInGain; // [-96.0,0.0] default: 0.0 dB + FLOAT fReverbMix; // [-96.0,0.0] default: 0.0 db + FLOAT fReverbTime; // [0.001,3000.0] default: 1000.0 ms + FLOAT fHighFreqRTRatio; // [0.001,0.999] default: 0.001 +} DSFXWavesReverb, *LPDSFXWavesReverb; + +typedef const DSFXWavesReverb *LPCDSFXWavesReverb; + +#define DSFX_WAVESREVERB_INGAIN_MIN -96.0f +#define DSFX_WAVESREVERB_INGAIN_MAX 0.0f +#define DSFX_WAVESREVERB_INGAIN_DEFAULT 0.0f +#define DSFX_WAVESREVERB_REVERBMIX_MIN -96.0f +#define DSFX_WAVESREVERB_REVERBMIX_MAX 0.0f +#define DSFX_WAVESREVERB_REVERBMIX_DEFAULT 0.0f +#define DSFX_WAVESREVERB_REVERBTIME_MIN 0.001f +#define DSFX_WAVESREVERB_REVERBTIME_MAX 3000.0f +#define DSFX_WAVESREVERB_REVERBTIME_DEFAULT 1000.0f +#define DSFX_WAVESREVERB_HIGHFREQRTRATIO_MIN 0.001f +#define DSFX_WAVESREVERB_HIGHFREQRTRATIO_MAX 0.999f +#define DSFX_WAVESREVERB_HIGHFREQRTRATIO_DEFAULT 0.001f + +#undef INTERFACE +#define INTERFACE IDirectSoundFXWavesReverb + +DECLARE_INTERFACE_(IDirectSoundFXWavesReverb, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundFXWavesReverb methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSFXWavesReverb pcDsFxWavesReverb) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSFXWavesReverb pDsFxWavesReverb) PURE; +}; + +#define IDirectSoundFXWavesReverb_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundFXWavesReverb_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundFXWavesReverb_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXWavesReverb_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFXWavesReverb_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundFXWavesReverb_GetAllParameters(p,a) (p)->GetAllParameters(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +// +// IDirectSoundCaptureFXAec +// + +DEFINE_GUID(IID_IDirectSoundCaptureFXAec, 0xad74143d, 0x903d, 0x4ab7, 0x80, 0x66, 0x28, 0xd3, 0x63, 0x03, 0x6d, 0x65); + +typedef struct _DSCFXAec +{ + BOOL fEnable; + BOOL fNoiseFill; + DWORD dwMode; +} DSCFXAec, *LPDSCFXAec; + +typedef const DSCFXAec *LPCDSCFXAec; + +// These match the AEC_MODE_* constants in the DDK's ksmedia.h file +#define DSCFX_AEC_MODE_PASS_THROUGH 0x0 +#define DSCFX_AEC_MODE_HALF_DUPLEX 0x1 +#define DSCFX_AEC_MODE_FULL_DUPLEX 0x2 + +// These match the AEC_STATUS_* constants in ksmedia.h +#define DSCFX_AEC_STATUS_HISTORY_UNINITIALIZED 0x0 +#define DSCFX_AEC_STATUS_HISTORY_CONTINUOUSLY_CONVERGED 0x1 +#define DSCFX_AEC_STATUS_HISTORY_PREVIOUSLY_DIVERGED 0x2 +#define DSCFX_AEC_STATUS_CURRENTLY_CONVERGED 0x8 + +#undef INTERFACE +#define INTERFACE IDirectSoundCaptureFXAec + +DECLARE_INTERFACE_(IDirectSoundCaptureFXAec, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundCaptureFXAec methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSCFXAec pDscFxAec) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSCFXAec pDscFxAec) PURE; + STDMETHOD(GetStatus) (THIS_ _Out_ LPDWORD pdwStatus) PURE; + STDMETHOD(Reset) (THIS) PURE; +}; + +#define IDirectSoundCaptureFXAec_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundCaptureFXAec_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundCaptureFXAec_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundCaptureFXAec_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundCaptureFXAec_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundCaptureFXAec_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundCaptureFXAec_GetAllParameters(p,a) (p)->GetAllParameters(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + + +// +// IDirectSoundCaptureFXNoiseSuppress +// + +DEFINE_GUID(IID_IDirectSoundCaptureFXNoiseSuppress, 0xed311e41, 0xfbae, 0x4175, 0x96, 0x25, 0xcd, 0x8, 0x54, 0xf6, 0x93, 0xca); + +typedef struct _DSCFXNoiseSuppress +{ + BOOL fEnable; +} DSCFXNoiseSuppress, *LPDSCFXNoiseSuppress; + +typedef const DSCFXNoiseSuppress *LPCDSCFXNoiseSuppress; + +#undef INTERFACE +#define INTERFACE IDirectSoundCaptureFXNoiseSuppress + +DECLARE_INTERFACE_(IDirectSoundCaptureFXNoiseSuppress, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundCaptureFXNoiseSuppress methods + STDMETHOD(SetAllParameters) (THIS_ _In_ LPCDSCFXNoiseSuppress pcDscFxNoiseSuppress) PURE; + STDMETHOD(GetAllParameters) (THIS_ _Out_ LPDSCFXNoiseSuppress pDscFxNoiseSuppress) PURE; + STDMETHOD(Reset) (THIS) PURE; +}; + +#define IDirectSoundCaptureFXNoiseSuppress_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundCaptureFXNoiseSuppress_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundCaptureFXNoiseSuppress_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundCaptureFXNoiseSuppress_SetAllParameters(p,a) (p)->lpVtbl->SetAllParameters(p,a) +#define IDirectSoundCaptureFXNoiseSuppress_GetAllParameters(p,a) (p)->lpVtbl->GetAllParameters(p,a) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundCaptureFXNoiseSuppress_SetAllParameters(p,a) (p)->SetAllParameters(a) +#define IDirectSoundCaptureFXNoiseSuppress_GetAllParameters(p,a) (p)->GetAllParameters(a) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + + +// +// IDirectSoundFullDuplex +// + +#ifndef _IDirectSoundFullDuplex_ +#define _IDirectSoundFullDuplex_ + +#ifdef __cplusplus +// 'struct' not 'class' per the way DECLARE_INTERFACE_ is defined +struct IDirectSoundFullDuplex; +#endif // __cplusplus + +typedef struct IDirectSoundFullDuplex *LPDIRECTSOUNDFULLDUPLEX; + +DEFINE_GUID(IID_IDirectSoundFullDuplex, 0xedcb4c7a, 0xdaab, 0x4216, 0xa4, 0x2e, 0x6c, 0x50, 0x59, 0x6d, 0xdc, 0x1d); + +#undef INTERFACE +#define INTERFACE IDirectSoundFullDuplex + +DECLARE_INTERFACE_(IDirectSoundFullDuplex, IUnknown) +{ + // IUnknown methods + STDMETHOD(QueryInterface) (THIS_ _In_ REFIID, _Outptr_ LPVOID*) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + // IDirectSoundFullDuplex methods + STDMETHOD(Initialize) (THIS_ _In_ LPCGUID pCaptureGuid, _In_ LPCGUID pRenderGuid, _In_ LPCDSCBUFFERDESC lpDscBufferDesc, _In_ LPCDSBUFFERDESC lpDsBufferDesc, HWND hWnd, DWORD dwLevel, + _Outptr_ LPLPDIRECTSOUNDCAPTUREBUFFER8 lplpDirectSoundCaptureBuffer8, _Outptr_ LPLPDIRECTSOUNDBUFFER8 lplpDirectSoundBuffer8) PURE; +}; + +#define IDirectSoundFullDuplex_QueryInterface(p,a,b) IUnknown_QueryInterface(p,a,b) +#define IDirectSoundFullDuplex_AddRef(p) IUnknown_AddRef(p) +#define IDirectSoundFullDuplex_Release(p) IUnknown_Release(p) + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Initialize(p,a,b,c,d,e,f,g,h) +#else // !defined(__cplusplus) || defined(CINTERFACE) +#define IDirectSoundFullDuplex_Initialize(p,a,b,c,d,e,f,g,h) (p)->Initialize(a,b,c,d,e,f,g,h) +#endif // !defined(__cplusplus) || defined(CINTERFACE) + +#endif // _IDirectSoundFullDuplex_ + +#endif // DIRECTSOUND_VERSION >= 0x0800 + +// +// Return Codes +// + +// The function completed successfully +#define DS_OK S_OK + +// The call succeeded, but we had to substitute the 3D algorithm +#define DS_NO_VIRTUALIZATION MAKE_HRESULT(0, _FACDS, 10) + +// The call failed because resources (such as a priority level) +// were already being used by another caller +#define DSERR_ALLOCATED MAKE_DSHRESULT(10) + +// The control (vol, pan, etc.) requested by the caller is not available +#define DSERR_CONTROLUNAVAIL MAKE_DSHRESULT(30) + +// An invalid parameter was passed to the returning function +#define DSERR_INVALIDPARAM E_INVALIDARG + +// This call is not valid for the current state of this object +#define DSERR_INVALIDCALL MAKE_DSHRESULT(50) + +// An undetermined error occurred inside the DirectSound subsystem +#define DSERR_GENERIC E_FAIL + +// The caller does not have the priority level required for the function to +// succeed +#define DSERR_PRIOLEVELNEEDED MAKE_DSHRESULT(70) + +// Not enough free memory is available to complete the operation +#define DSERR_OUTOFMEMORY E_OUTOFMEMORY + +// The specified WAVE format is not supported +#define DSERR_BADFORMAT MAKE_DSHRESULT(100) + +// The function called is not supported at this time +#define DSERR_UNSUPPORTED E_NOTIMPL + +// No sound driver is available for use +#define DSERR_NODRIVER MAKE_DSHRESULT(120) + +// This object is already initialized +#define DSERR_ALREADYINITIALIZED MAKE_DSHRESULT(130) + +// This object does not support aggregation +#define DSERR_NOAGGREGATION CLASS_E_NOAGGREGATION + +// The buffer memory has been lost, and must be restored +#define DSERR_BUFFERLOST MAKE_DSHRESULT(150) + +// Another app has a higher priority level, preventing this call from +// succeeding +#define DSERR_OTHERAPPHASPRIO MAKE_DSHRESULT(160) + +// This object has not been initialized +#define DSERR_UNINITIALIZED MAKE_DSHRESULT(170) + +// The requested COM interface is not available +#define DSERR_NOINTERFACE E_NOINTERFACE + +// Access is denied +#define DSERR_ACCESSDENIED E_ACCESSDENIED + +// Tried to create a DSBCAPS_CTRLFX buffer shorter than DSBSIZE_FX_MIN milliseconds +#define DSERR_BUFFERTOOSMALL MAKE_DSHRESULT(180) + +// Attempt to use DirectSound 8 functionality on an older DirectSound object +#define DSERR_DS8_REQUIRED MAKE_DSHRESULT(190) + +// A circular loop of send effects was detected +#define DSERR_SENDLOOP MAKE_DSHRESULT(200) + +// The GUID specified in an audiopath file does not match a valid MIXIN buffer +#define DSERR_BADSENDBUFFERGUID MAKE_DSHRESULT(210) + +// The object requested was not found (numerically equal to DMUS_E_NOT_FOUND) +#define DSERR_OBJECTNOTFOUND MAKE_DSHRESULT(4449) + +// The effects requested could not be found on the system, or they were found +// but in the wrong order, or in the wrong hardware/software locations. +#define DSERR_FXUNAVAILABLE MAKE_DSHRESULT(220) + +// +// Flags +// + +#define DSCAPS_PRIMARYMONO 0x00000001 +#define DSCAPS_PRIMARYSTEREO 0x00000002 +#define DSCAPS_PRIMARY8BIT 0x00000004 +#define DSCAPS_PRIMARY16BIT 0x00000008 +#define DSCAPS_CONTINUOUSRATE 0x00000010 +#define DSCAPS_EMULDRIVER 0x00000020 +#define DSCAPS_CERTIFIED 0x00000040 +#define DSCAPS_SECONDARYMONO 0x00000100 +#define DSCAPS_SECONDARYSTEREO 0x00000200 +#define DSCAPS_SECONDARY8BIT 0x00000400 +#define DSCAPS_SECONDARY16BIT 0x00000800 + +#define DSSCL_NORMAL 0x00000001 +#define DSSCL_PRIORITY 0x00000002 +#define DSSCL_EXCLUSIVE 0x00000003 +#define DSSCL_WRITEPRIMARY 0x00000004 + +#define DSSPEAKER_DIRECTOUT 0x00000000 +#define DSSPEAKER_HEADPHONE 0x00000001 +#define DSSPEAKER_MONO 0x00000002 +#define DSSPEAKER_QUAD 0x00000003 +#define DSSPEAKER_STEREO 0x00000004 +#define DSSPEAKER_SURROUND 0x00000005 +#define DSSPEAKER_5POINT1 0x00000006 // obsolete 5.1 setting +#define DSSPEAKER_7POINT1 0x00000007 // obsolete 7.1 setting +#define DSSPEAKER_7POINT1_SURROUND 0x00000008 // correct 7.1 Home Theater setting +#define DSSPEAKER_5POINT1_SURROUND 0x00000009 // correct 5.1 setting +#define DSSPEAKER_7POINT1_WIDE DSSPEAKER_7POINT1 +#define DSSPEAKER_5POINT1_BACK DSSPEAKER_5POINT1 + +#define DSSPEAKER_GEOMETRY_MIN 0x00000005 // 5 degrees +#define DSSPEAKER_GEOMETRY_NARROW 0x0000000A // 10 degrees +#define DSSPEAKER_GEOMETRY_WIDE 0x00000014 // 20 degrees +#define DSSPEAKER_GEOMETRY_MAX 0x000000B4 // 180 degrees + +#define DSSPEAKER_COMBINED(c, g) ((DWORD)(((BYTE)(c)) | ((DWORD)((BYTE)(g))) << 16)) +#define DSSPEAKER_CONFIG(a) ((BYTE)(a)) +#define DSSPEAKER_GEOMETRY(a) ((BYTE)(((DWORD)(a) >> 16) & 0x00FF)) + +#define DSBCAPS_PRIMARYBUFFER 0x00000001 +#define DSBCAPS_STATIC 0x00000002 +#define DSBCAPS_LOCHARDWARE 0x00000004 +#define DSBCAPS_LOCSOFTWARE 0x00000008 +#define DSBCAPS_CTRL3D 0x00000010 +#define DSBCAPS_CTRLFREQUENCY 0x00000020 +#define DSBCAPS_CTRLPAN 0x00000040 +#define DSBCAPS_CTRLVOLUME 0x00000080 +#define DSBCAPS_CTRLPOSITIONNOTIFY 0x00000100 +#define DSBCAPS_CTRLFX 0x00000200 +#define DSBCAPS_STICKYFOCUS 0x00004000 +#define DSBCAPS_GLOBALFOCUS 0x00008000 +#define DSBCAPS_GETCURRENTPOSITION2 0x00010000 +#define DSBCAPS_MUTE3DATMAXDISTANCE 0x00020000 +#define DSBCAPS_LOCDEFER 0x00040000 +#define DSBCAPS_TRUEPLAYPOSITION 0x00080000 + +#define DSBPLAY_LOOPING 0x00000001 +#define DSBPLAY_LOCHARDWARE 0x00000002 +#define DSBPLAY_LOCSOFTWARE 0x00000004 +#define DSBPLAY_TERMINATEBY_TIME 0x00000008 +#define DSBPLAY_TERMINATEBY_DISTANCE 0x000000010 +#define DSBPLAY_TERMINATEBY_PRIORITY 0x000000020 + +#define DSBSTATUS_PLAYING 0x00000001 +#define DSBSTATUS_BUFFERLOST 0x00000002 +#define DSBSTATUS_LOOPING 0x00000004 +#define DSBSTATUS_LOCHARDWARE 0x00000008 +#define DSBSTATUS_LOCSOFTWARE 0x00000010 +#define DSBSTATUS_TERMINATED 0x00000020 + +#define DSBLOCK_FROMWRITECURSOR 0x00000001 +#define DSBLOCK_ENTIREBUFFER 0x00000002 + +#define DSBFREQUENCY_ORIGINAL 0 +#define DSBFREQUENCY_MIN 100 +#if DIRECTSOUND_VERSION >= 0x0900 +#define DSBFREQUENCY_MAX 200000 +#else +#define DSBFREQUENCY_MAX 100000 +#endif + +#define DSBPAN_LEFT -10000 +#define DSBPAN_CENTER 0 +#define DSBPAN_RIGHT 10000 + +#define DSBVOLUME_MIN -10000 +#define DSBVOLUME_MAX 0 + +#define DSBSIZE_MIN 4 +#define DSBSIZE_MAX 0x0FFFFFFF +#define DSBSIZE_FX_MIN 150 // NOTE: Milliseconds, not bytes + +#define DSBNOTIFICATIONS_MAX 100000UL + +#define DS3DMODE_NORMAL 0x00000000 +#define DS3DMODE_HEADRELATIVE 0x00000001 +#define DS3DMODE_DISABLE 0x00000002 + +#define DS3D_IMMEDIATE 0x00000000 +#define DS3D_DEFERRED 0x00000001 + +#define DS3D_MINDISTANCEFACTOR FLT_MIN +#define DS3D_MAXDISTANCEFACTOR FLT_MAX +#define DS3D_DEFAULTDISTANCEFACTOR 1.0f + +#define DS3D_MINROLLOFFFACTOR 0.0f +#define DS3D_MAXROLLOFFFACTOR 10.0f +#define DS3D_DEFAULTROLLOFFFACTOR 1.0f + +#define DS3D_MINDOPPLERFACTOR 0.0f +#define DS3D_MAXDOPPLERFACTOR 10.0f +#define DS3D_DEFAULTDOPPLERFACTOR 1.0f + +#define DS3D_DEFAULTMINDISTANCE 1.0f +#define DS3D_DEFAULTMAXDISTANCE 1000000000.0f + +#define DS3D_MINCONEANGLE 0 +#define DS3D_MAXCONEANGLE 360 +#define DS3D_DEFAULTCONEANGLE 360 + +#define DS3D_DEFAULTCONEOUTSIDEVOLUME DSBVOLUME_MAX + +// IDirectSoundCapture attributes + +#define DSCCAPS_EMULDRIVER DSCAPS_EMULDRIVER +#define DSCCAPS_CERTIFIED DSCAPS_CERTIFIED +#define DSCCAPS_MULTIPLECAPTURE 0x00000001 + +// IDirectSoundCaptureBuffer attributes + +#define DSCBCAPS_WAVEMAPPED 0x80000000 +#if DIRECTSOUND_VERSION >= 0x0800 +#define DSCBCAPS_CTRLFX 0x00000200 +#endif + +#define DSCBLOCK_ENTIREBUFFER 0x00000001 + +#define DSCBSTATUS_CAPTURING 0x00000001 +#define DSCBSTATUS_LOOPING 0x00000002 + +#define DSCBSTART_LOOPING 0x00000001 + +#define DSBPN_OFFSETSTOP 0xFFFFFFFF + +#define DS_CERTIFIED 0x00000000 +#define DS_UNCERTIFIED 0x00000001 + +// +// Flags for the I3DL2 effects +// + +// +// I3DL2 Material Presets +// + +enum +{ + DSFX_I3DL2_MATERIAL_PRESET_SINGLEWINDOW, + DSFX_I3DL2_MATERIAL_PRESET_DOUBLEWINDOW, + DSFX_I3DL2_MATERIAL_PRESET_THINDOOR, + DSFX_I3DL2_MATERIAL_PRESET_THICKDOOR, + DSFX_I3DL2_MATERIAL_PRESET_WOODWALL, + DSFX_I3DL2_MATERIAL_PRESET_BRICKWALL, + DSFX_I3DL2_MATERIAL_PRESET_STONEWALL, + DSFX_I3DL2_MATERIAL_PRESET_CURTAIN +}; + +#define I3DL2_MATERIAL_PRESET_SINGLEWINDOW -2800,0.71f +#define I3DL2_MATERIAL_PRESET_DOUBLEWINDOW -5000,0.40f +#define I3DL2_MATERIAL_PRESET_THINDOOR -1800,0.66f +#define I3DL2_MATERIAL_PRESET_THICKDOOR -4400,0.64f +#define I3DL2_MATERIAL_PRESET_WOODWALL -4000,0.50f +#define I3DL2_MATERIAL_PRESET_BRICKWALL -5000,0.60f +#define I3DL2_MATERIAL_PRESET_STONEWALL -6000,0.68f +#define I3DL2_MATERIAL_PRESET_CURTAIN -1200,0.15f + +enum +{ + DSFX_I3DL2_ENVIRONMENT_PRESET_DEFAULT, + DSFX_I3DL2_ENVIRONMENT_PRESET_GENERIC, + DSFX_I3DL2_ENVIRONMENT_PRESET_PADDEDCELL, + DSFX_I3DL2_ENVIRONMENT_PRESET_ROOM, + DSFX_I3DL2_ENVIRONMENT_PRESET_BATHROOM, + DSFX_I3DL2_ENVIRONMENT_PRESET_LIVINGROOM, + DSFX_I3DL2_ENVIRONMENT_PRESET_STONEROOM, + DSFX_I3DL2_ENVIRONMENT_PRESET_AUDITORIUM, + DSFX_I3DL2_ENVIRONMENT_PRESET_CONCERTHALL, + DSFX_I3DL2_ENVIRONMENT_PRESET_CAVE, + DSFX_I3DL2_ENVIRONMENT_PRESET_ARENA, + DSFX_I3DL2_ENVIRONMENT_PRESET_HANGAR, + DSFX_I3DL2_ENVIRONMENT_PRESET_CARPETEDHALLWAY, + DSFX_I3DL2_ENVIRONMENT_PRESET_HALLWAY, + DSFX_I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR, + DSFX_I3DL2_ENVIRONMENT_PRESET_ALLEY, + DSFX_I3DL2_ENVIRONMENT_PRESET_FOREST, + DSFX_I3DL2_ENVIRONMENT_PRESET_CITY, + DSFX_I3DL2_ENVIRONMENT_PRESET_MOUNTAINS, + DSFX_I3DL2_ENVIRONMENT_PRESET_QUARRY, + DSFX_I3DL2_ENVIRONMENT_PRESET_PLAIN, + DSFX_I3DL2_ENVIRONMENT_PRESET_PARKINGLOT, + DSFX_I3DL2_ENVIRONMENT_PRESET_SEWERPIPE, + DSFX_I3DL2_ENVIRONMENT_PRESET_UNDERWATER, + DSFX_I3DL2_ENVIRONMENT_PRESET_SMALLROOM, + DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMROOM, + DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEROOM, + DSFX_I3DL2_ENVIRONMENT_PRESET_MEDIUMHALL, + DSFX_I3DL2_ENVIRONMENT_PRESET_LARGEHALL, + DSFX_I3DL2_ENVIRONMENT_PRESET_PLATE +}; + +// +// I3DL2 Reverberation Presets Values +// + +#define I3DL2_ENVIRONMENT_PRESET_DEFAULT -1000, -100, 0.0f, 1.49f, 0.83f, -2602, 0.007f, 200, 0.011f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_GENERIC -1000, -100, 0.0f, 1.49f, 0.83f, -2602, 0.007f, 200, 0.011f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_PADDEDCELL -1000,-6000, 0.0f, 0.17f, 0.10f, -1204, 0.001f, 207, 0.002f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_ROOM -1000, -454, 0.0f, 0.40f, 0.83f, -1646, 0.002f, 53, 0.003f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_BATHROOM -1000,-1200, 0.0f, 1.49f, 0.54f, -370, 0.007f, 1030, 0.011f, 100.0f, 60.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_LIVINGROOM -1000,-6000, 0.0f, 0.50f, 0.10f, -1376, 0.003f, -1104, 0.004f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_STONEROOM -1000, -300, 0.0f, 2.31f, 0.64f, -711, 0.012f, 83, 0.017f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_AUDITORIUM -1000, -476, 0.0f, 4.32f, 0.59f, -789, 0.020f, -289, 0.030f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_CONCERTHALL -1000, -500, 0.0f, 3.92f, 0.70f, -1230, 0.020f, -2, 0.029f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_CAVE -1000, 0, 0.0f, 2.91f, 1.30f, -602, 0.015f, -302, 0.022f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_ARENA -1000, -698, 0.0f, 7.24f, 0.33f, -1166, 0.020f, 16, 0.030f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_HANGAR -1000,-1000, 0.0f,10.05f, 0.23f, -602, 0.020f, 198, 0.030f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_CARPETEDHALLWAY -1000,-4000, 0.0f, 0.30f, 0.10f, -1831, 0.002f, -1630, 0.030f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_HALLWAY -1000, -300, 0.0f, 1.49f, 0.59f, -1219, 0.007f, 441, 0.011f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR -1000, -237, 0.0f, 2.70f, 0.79f, -1214, 0.013f, 395, 0.020f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_ALLEY -1000, -270, 0.0f, 1.49f, 0.86f, -1204, 0.007f, -4, 0.011f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_FOREST -1000,-3300, 0.0f, 1.49f, 0.54f, -2560, 0.162f, -613, 0.088f, 79.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_CITY -1000, -800, 0.0f, 1.49f, 0.67f, -2273, 0.007f, -2217, 0.011f, 50.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_MOUNTAINS -1000,-2500, 0.0f, 1.49f, 0.21f, -2780, 0.300f, -2014, 0.100f, 27.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_QUARRY -1000,-1000, 0.0f, 1.49f, 0.83f,-10000, 0.061f, 500, 0.025f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_PLAIN -1000,-2000, 0.0f, 1.49f, 0.50f, -2466, 0.179f, -2514, 0.100f, 21.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_PARKINGLOT -1000, 0, 0.0f, 1.65f, 1.50f, -1363, 0.008f, -1153, 0.012f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_SEWERPIPE -1000,-1000, 0.0f, 2.81f, 0.14f, 429, 0.014f, 648, 0.021f, 80.0f, 60.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_UNDERWATER -1000,-4000, 0.0f, 1.49f, 0.10f, -449, 0.007f, 1700, 0.011f, 100.0f, 100.0f, 5000.0f + +// +// Examples simulating 'musical' reverb presets +// +// Name Decay time Description +// Small Room 1.1s A small size room with a length of 5m or so. +// Medium Room 1.3s A medium size room with a length of 10m or so. +// Large Room 1.5s A large size room suitable for live performances. +// Medium Hall 1.8s A medium size concert hall. +// Large Hall 1.8s A large size concert hall suitable for a full orchestra. +// Plate 1.3s A plate reverb simulation. +// + +#define I3DL2_ENVIRONMENT_PRESET_SMALLROOM -1000, -600, 0.0f, 1.10f, 0.83f, -400, 0.005f, 500, 0.010f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_MEDIUMROOM -1000, -600, 0.0f, 1.30f, 0.83f, -1000, 0.010f, -200, 0.020f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_LARGEROOM -1000, -600, 0.0f, 1.50f, 0.83f, -1600, 0.020f, -1000, 0.040f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_MEDIUMHALL -1000, -600, 0.0f, 1.80f, 0.70f, -1300, 0.015f, -800, 0.030f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_LARGEHALL -1000, -600, 0.0f, 1.80f, 0.70f, -2000, 0.030f, -1400, 0.060f, 100.0f, 100.0f, 5000.0f +#define I3DL2_ENVIRONMENT_PRESET_PLATE -1000, -200, 0.0f, 1.30f, 0.90f, 0, 0.002f, 0, 0.010f, 100.0f, 75.0f, 5000.0f + +// +// DirectSound3D Algorithms +// + +// Default DirectSound3D algorithm {00000000-0000-0000-0000-000000000000} +#define DS3DALG_DEFAULT GUID_NULL + +// No virtualization (Pan3D) {C241333F-1C1B-11d2-94F5-00C04FC28ACA} +DEFINE_GUID(DS3DALG_NO_VIRTUALIZATION, 0xc241333f, 0x1c1b, 0x11d2, 0x94, 0xf5, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); + +// High-quality HRTF algorithm {C2413340-1C1B-11d2-94F5-00C04FC28ACA} +DEFINE_GUID(DS3DALG_HRTF_FULL, 0xc2413340, 0x1c1b, 0x11d2, 0x94, 0xf5, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); + +// Lower-quality HRTF algorithm {C2413342-1C1B-11d2-94F5-00C04FC28ACA} +DEFINE_GUID(DS3DALG_HRTF_LIGHT, 0xc2413342, 0x1c1b, 0x11d2, 0x94, 0xf5, 0x0, 0xc0, 0x4f, 0xc2, 0x8a, 0xca); + + +#if DIRECTSOUND_VERSION >= 0x0800 + +// +// DirectSound Internal Effect Algorithms +// + + +// Gargle {DAFD8210-5711-4B91-9FE3-F75B7AE279BF} +DEFINE_GUID(GUID_DSFX_STANDARD_GARGLE, 0xdafd8210, 0x5711, 0x4b91, 0x9f, 0xe3, 0xf7, 0x5b, 0x7a, 0xe2, 0x79, 0xbf); + +// Chorus {EFE6629C-81F7-4281-BD91-C9D604A95AF6} +DEFINE_GUID(GUID_DSFX_STANDARD_CHORUS, 0xefe6629c, 0x81f7, 0x4281, 0xbd, 0x91, 0xc9, 0xd6, 0x04, 0xa9, 0x5a, 0xf6); + +// Flanger {EFCA3D92-DFD8-4672-A603-7420894BAD98} +DEFINE_GUID(GUID_DSFX_STANDARD_FLANGER, 0xefca3d92, 0xdfd8, 0x4672, 0xa6, 0x03, 0x74, 0x20, 0x89, 0x4b, 0xad, 0x98); + +// Echo/Delay {EF3E932C-D40B-4F51-8CCF-3F98F1B29D5D} +DEFINE_GUID(GUID_DSFX_STANDARD_ECHO, 0xef3e932c, 0xd40b, 0x4f51, 0x8c, 0xcf, 0x3f, 0x98, 0xf1, 0xb2, 0x9d, 0x5d); + +// Distortion {EF114C90-CD1D-484E-96E5-09CFAF912A21} +DEFINE_GUID(GUID_DSFX_STANDARD_DISTORTION, 0xef114c90, 0xcd1d, 0x484e, 0x96, 0xe5, 0x09, 0xcf, 0xaf, 0x91, 0x2a, 0x21); + +// Compressor/Limiter {EF011F79-4000-406D-87AF-BFFB3FC39D57} +DEFINE_GUID(GUID_DSFX_STANDARD_COMPRESSOR, 0xef011f79, 0x4000, 0x406d, 0x87, 0xaf, 0xbf, 0xfb, 0x3f, 0xc3, 0x9d, 0x57); + +// Parametric Equalization {120CED89-3BF4-4173-A132-3CB406CF3231} +DEFINE_GUID(GUID_DSFX_STANDARD_PARAMEQ, 0x120ced89, 0x3bf4, 0x4173, 0xa1, 0x32, 0x3c, 0xb4, 0x06, 0xcf, 0x32, 0x31); + +// I3DL2 Environmental Reverberation: Reverb (Listener) Effect {EF985E71-D5C7-42D4-BA4D-2D073E2E96F4} +DEFINE_GUID(GUID_DSFX_STANDARD_I3DL2REVERB, 0xef985e71, 0xd5c7, 0x42d4, 0xba, 0x4d, 0x2d, 0x07, 0x3e, 0x2e, 0x96, 0xf4); + +// Waves Reverberation {87FC0268-9A55-4360-95AA-004A1D9DE26C} +DEFINE_GUID(GUID_DSFX_WAVES_REVERB, 0x87fc0268, 0x9a55, 0x4360, 0x95, 0xaa, 0x00, 0x4a, 0x1d, 0x9d, 0xe2, 0x6c); + +// +// DirectSound Capture Effect Algorithms +// + + +// Acoustic Echo Canceller {BF963D80-C559-11D0-8A2B-00A0C9255AC1} +// Matches KSNODETYPE_ACOUSTIC_ECHO_CANCEL in ksmedia.h +DEFINE_GUID(GUID_DSCFX_CLASS_AEC, 0xBF963D80L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1); + +// Microsoft AEC {CDEBB919-379A-488a-8765-F53CFD36DE40} +DEFINE_GUID(GUID_DSCFX_MS_AEC, 0xcdebb919, 0x379a, 0x488a, 0x87, 0x65, 0xf5, 0x3c, 0xfd, 0x36, 0xde, 0x40); + +// System AEC {1C22C56D-9879-4f5b-A389-27996DDC2810} +DEFINE_GUID(GUID_DSCFX_SYSTEM_AEC, 0x1c22c56d, 0x9879, 0x4f5b, 0xa3, 0x89, 0x27, 0x99, 0x6d, 0xdc, 0x28, 0x10); + +// Noise Supression {E07F903F-62FD-4e60-8CDD-DEA7236665B5} +// Matches KSNODETYPE_NOISE_SUPPRESS in post Windows ME DDK's ksmedia.h +DEFINE_GUID(GUID_DSCFX_CLASS_NS, 0xe07f903f, 0x62fd, 0x4e60, 0x8c, 0xdd, 0xde, 0xa7, 0x23, 0x66, 0x65, 0xb5); + +// Microsoft Noise Suppresion {11C5C73B-66E9-4ba1-A0BA-E814C6EED92D} +DEFINE_GUID(GUID_DSCFX_MS_NS, 0x11c5c73b, 0x66e9, 0x4ba1, 0xa0, 0xba, 0xe8, 0x14, 0xc6, 0xee, 0xd9, 0x2d); + +// System Noise Suppresion {5AB0882E-7274-4516-877D-4EEE99BA4FD0} +DEFINE_GUID(GUID_DSCFX_SYSTEM_NS, 0x5ab0882e, 0x7274, 0x4516, 0x87, 0x7d, 0x4e, 0xee, 0x99, 0xba, 0x4f, 0xd0); + +#endif // DIRECTSOUND_VERSION >= 0x0800 + +#endif // __DSOUND_INCLUDED__ + + + +#ifdef __cplusplus +}; +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dsparse.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dsparse.h new file mode 100644 index 0000000000000000000000000000000000000000..885f3d642dbf82fffe40cc78bae78a0dac0adf67 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dsparse.h @@ -0,0 +1,817 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1996-2000 Microsoft Corporation + +Module Name: + + DSPARSE.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for public NTDS APIs other than directory interfaces like LDAP. + +Environment: + + User Mode - Win32 + +Notes: + +--*/ + + +#ifndef _DSPARSE_H_ +#define _DSPARSE_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Familyy or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#include + +#define DSPARSE + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum _DS_MANGLE_FOR { + DS_MANGLE_UNKNOWN = 0, + DS_MANGLE_OBJECT_RDN_FOR_DELETION, + DS_MANGLE_OBJECT_RDN_FOR_NAME_CONFLICT, + } DS_MANGLE_FOR; + +////////////////////////////////////////////////////////////////////////// +// // +// Prototypes // +// // +////////////////////////////////////////////////////////////////////////// + +// ========================================================== +// DSMakeSpn -- client call to create SPN for a service to which it wants to +// authenticate. +// This name is then passed to "pszTargetName" of InitializeSecurityContext(). +// +// Notes: +// If the service name is a DNS host name, or canonical DNS service name +// e.g. "www.ms.com", i.e., caller resolved with gethostbyname, then instance +// name should be NULL. +// Realm is host name minus first component, unless it is in the exception list +// +// If the service name is NetBIOS machine name, then instance name should be +// NULL +// Form must be \ +// Realm will be +// +// If the service name is that of a replicated service, where each replica has +// its own account (e.g., with SRV records) then the caller must supply the +// instance name then realm name is same as ServiceName +// +// If the service name is a DN, then must also supply instance name +// (DN could be name of service object (incl RPC or Winsock), name of machine +// account, name of domain object) +// then realm name is domain part of the DN +// +// If the service name is NetBIOS domain name, then must also supply instance +// name; realm name is domain name +// +// If the service is named by an IP address -- then use referring service name +// as service name +// +// ServiceClass - e.g. "http", "ftp", "ldap", GUID +// ServiceName - DNS or DN; assumes we can compute domain from service name +// InstanceName OPTIONAL- DNS name of host for instance of service +// InstancePort - port number for instance (0 if default) +// Referrer OPTIONAL- DNS name of host that gave this referral +// pcSpnLength - in -- max length IN CHARACTERS of principal name; +// out -- actual +// Length includes terminator +// pszSPN - server principal name +// +// If buffer is not large enough, ERROR_BUFFER_OVERFLOW is returned and the +// needed length is returned in pcSpnLength. +// +// + +_Check_return_ +_Success_(return == ERROR_SUCCESS) +DSPARSE +DWORD +WINAPI +DsMakeSpnW( + _In_ LPCWSTR ServiceClass, + _In_ LPCWSTR ServiceName, + _In_opt_ LPCWSTR InstanceName, + _In_ USHORT InstancePort, + _In_opt_ LPCWSTR Referrer, + _Inout_ DWORD *pcSpnLength, + _Out_writes_to_opt_(*pcSpnLength, *pcSpnLength) LPWSTR pszSpn +); + +_Check_return_ +_Success_(return == ERROR_SUCCESS) +DSPARSE +DWORD +WINAPI +DsMakeSpnA( + _In_ LPCSTR ServiceClass, + _In_ LPCSTR ServiceName, + _In_opt_ LPCSTR InstanceName, + _In_ USHORT InstancePort, + _In_opt_ LPCSTR Referrer, + _Inout_ DWORD *pcSpnLength, + _Out_writes_to_opt_ (*pcSpnLength, *pcSpnLength) LPSTR pszSpn +); + +#ifdef UNICODE +#define DsMakeSpn DsMakeSpnW +#else +#define DsMakeSpn DsMakeSpnA +#endif + +// ========================================================== +// DsCrackSpn() -- parse an SPN into the ServiceClass, +// ServiceName, and InstanceName (and InstancePort) pieces. +// An SPN is passed in, along with a pointer to the maximum length +// for each piece and a pointer to a buffer where each piece should go. +// On exit, the maximum lengths are updated to the actual length for each piece +// and the buffer contain the appropriate piece. The InstancePort is 0 if not +// present. +// +// DWORD DsCrackSpn( +// IN LPTSTR pszSPN, // the SPN to parse +// IN OUT PUSHORT pcServiceClass, // input -- max length of ServiceClass; +// output -- actual length +// OUT LPCTSTR ServiceClass, // the ServiceClass part of the SPN +// IN OUT PUSHORT pcServiceName, // input -- max length of ServiceName; +// output -- actual length +// OUT LPCTSTR ServiceName, // the ServiceName part of the SPN +// IN OUT PUSHORT pcInstance, // input -- max length of ServiceClass; +// output -- actual length +// OUT LPCTSTR InstanceName, // the InstanceName part of the SPN +// OUT PUSHORT InstancePort // instance port +// +// Note: lengths are in characters; all string lengths include terminators +// All arguments except pszSpn are optional. +// + +_Check_return_ +DSPARSE +DWORD +WINAPI +DsCrackSpnA( + _In_ LPCSTR pszSpn, + _Inout_opt_ LPDWORD pcServiceClass, + _Out_writes_to_opt_ (*pcServiceClass, *pcServiceClass) LPSTR ServiceClass, + _Inout_opt_ LPDWORD pcServiceName, + _Out_writes_to_opt_ (*pcServiceName, *pcServiceName) LPSTR ServiceName, + _Inout_opt_ LPDWORD pcInstanceName, + _Out_writes_to_opt_ (*pcInstanceName, *pcInstanceName) LPSTR InstanceName, + _Out_opt_ USHORT *pInstancePort + ); + +_Check_return_ +DSPARSE +DWORD +WINAPI +DsCrackSpnW( + _In_ LPCWSTR pszSpn, + _Inout_opt_ DWORD *pcServiceClass, + _Out_writes_to_opt_ (*pcServiceClass, *pcServiceClass) LPWSTR ServiceClass, + _Inout_opt_ DWORD *pcServiceName, + _Out_writes_to_opt_ (*pcServiceName, *pcServiceName) LPWSTR ServiceName, + _Inout_opt_ DWORD *pcInstanceName, + _Out_writes_to_opt_ (*pcInstanceName, *pcInstanceName) LPWSTR InstanceName, + _Out_opt_ USHORT *pInstancePort + ); + +#ifdef UNICODE +#define DsCrackSpn DsCrackSpnW +#else +#define DsCrackSpn DsCrackSpnA +#endif + +#ifndef MIDL_PASS +/*++ +========================================================== +_Check_return_ +DSPARSE +DWORD +WINAPI +DsQuoteRdnValue( + DWORD cUnquotedRdnValueLength, + _In_reads_(cUnquotedRdnValueLength) LPCTCH psUnquotedRdnValue, + _Inout_ DWORD *pcQuotedRdnValueLength, + _Out_writes_to_(*pcQuotedRdnValueLength, *pcQuotedRdnValueLength) LPTCH psQuotedRdnValue + ) +/*++ + +Description + + This client call converts an RDN value into a quoted RDN value if + the RDN value contains characters that require quotes. The resultant + RDN can be submitted as part of a DN to the DS using various APIs + such as LDAP. + + No quotes are added if none are needed. In this case, the + output RDN value will be the same as the input RDN value. + + The RDN is quoted in accordance with the specification "Lightweight + Directory Access Protocol (v3): UTF-8 String Representation of + Distinguished Names", RFC 2253. + + The input and output RDN values are *NOT* NULL terminated. + + The changes made by this call can be undone by calling + DsUnquoteRdnValue(). + +Arguments: + + cUnquotedRdnValueLength - The length of psUnquotedRdnValue in chars. + + psUnquotedRdnValue - Unquoted RDN value. + + pcQuotedRdnValueeLength - IN, maximum length of psQuotedRdnValue, in chars + OUT ERROR_SUCCESS, chars utilized in psQuotedRdnValue + OUT ERROR_BUFFER_OVERFLOW, chars needed in psQuotedRdnValue + + psQuotedRdnValue - The resultant and perhaps quoted RDN value + +Return Value: + ERROR_SUCCESS + If quotes or escapes were needed, then psQuotedRdnValue contains + the quoted, escaped version of psUnquotedRdnValue. Otherwise, + psQuotedRdnValue contains a copy of psUnquotedRdnValue. In either + case, pcQuotedRdnValueLength contains the space utilized, in chars. + + ERROR_BUFFER_OVERFLOW + psQuotedRdnValueLength contains the space needed, in chars, + to hold psQuotedRdnValue. + + ERROR_INVALID_PARAMETER + Invalid parameter. + + ERROR_NOT_ENOUGH_MEMORY + Allocation error. + +--*/ + +_Check_return_ +_Success_(return == 0) +DSPARSE +DWORD +WINAPI +DsQuoteRdnValueW( + DWORD cUnquotedRdnValueLength, + _In_reads_(cUnquotedRdnValueLength) IN LPCWCH psUnquotedRdnValue, + _Inout_ DWORD *pcQuotedRdnValueLength, + _Out_writes_to_(*pcQuotedRdnValueLength, *pcQuotedRdnValueLength) LPWCH psQuotedRdnValue +); + +_Check_return_ +_Success_(return == 0) +DSPARSE +DWORD +WINAPI +DsQuoteRdnValueA( + DWORD cUnquotedRdnValueLength, + _In_reads_ (cUnquotedRdnValueLength) IN LPCCH psUnquotedRdnValue, + _Inout_ DWORD *pcQuotedRdnValueLength, + _Out_writes_to_ (*pcQuotedRdnValueLength, *pcQuotedRdnValueLength) LPCH psQuotedRdnValue +); + +#ifdef UNICODE +#define DsQuoteRdnValue DsQuoteRdnValueW +#else +#define DsQuoteRdnValue DsQuoteRdnValueA +#endif + +/*++ +========================================================== +_Check_return_ +DSPARSE +DWORD +WINAPI +DsUnquoteRdnValue( + DWORD cQuotedRdnValueLength, + _In_reads_(cQuotedRdnValueLength) LPCTCH psQuotedRdnValue, + _Inout_ DWORD *pcUnquotedRdnValueLength, + _Out_writes_to_(*pcUnquotedRdnValueLength,*pcUnquotedRdnValueLength) LPTCH psUnquotedRdnValue + ) + +Description + + This client call converts a quoted RDN Value into an unquoted RDN + Value. The resultant RDN value should *NOT* be submitted as part + of a DN to the DS using various APIs such as LDAP. + + When psQuotedRdnValue is quoted: + The leading and trailing quote are removed. + + Whitespace before the first quote is discarded. + + Whitespace trailing the last quote is discarded. + + Escapes are removed and the char following the escape is kept. + + The following actions are taken when psQuotedRdnValue is unquoted: + + Leading whitespace is discarded. + + Trailing whitespace is kept. + + Escaped non-special chars return an error. + + Unescaped special chars return an error. + + RDN values beginning with # (ignoring leading whitespace) are + treated as a stringized BER value and converted accordingly. + + Escaped hex digits (\89) are converted into a binary byte (0x89). + + Escapes are removed from escaped special chars. + + The following actions are always taken: + Escaped special chars are unescaped. + + The input and output RDN values are not NULL terminated. + +Arguments: + + cQuotedRdnValueLength - The length of psQuotedRdnValue in chars. + + psQuotedRdnValue - RDN value that may be quoted and may be escaped. + + pcUnquotedRdnValueLength - IN, maximum length of psUnquotedRdnValue, in chars + OUT ERROR_SUCCESS, chars used in psUnquotedRdnValue + OUT ERROR_BUFFER_OVERFLOW, chars needed for psUnquotedRdnValue + + psUnquotedRdnValue - The resultant unquoted RDN value. + +Return Value: + ERROR_SUCCESS + psUnquotedRdnValue contains the unquoted and unescaped version + of psQuotedRdnValue. pcUnquotedRdnValueLength contains the space + used, in chars. + + ERROR_BUFFER_OVERFLOW + psUnquotedRdnValueLength contains the space needed, in chars, + to hold psUnquotedRdnValue. + + ERROR_INVALID_PARAMETER + Invalid parameter. + + ERROR_NOT_ENOUGH_MEMORY + Allocation error. + +--*/ + +_Check_return_ +_Success_(return == 0) +DSPARSE +DWORD +WINAPI +DsUnquoteRdnValueW( + DWORD cQuotedRdnValueLength, + _In_reads_ (cQuotedRdnValueLength) LPCWCH psQuotedRdnValue, + _Inout_ DWORD *pcUnquotedRdnValueLength, + _Out_writes_to_ (*pcUnquotedRdnValueLength, *pcUnquotedRdnValueLength) LPWCH psUnquotedRdnValue +); + +_Check_return_ +_Success_(return == 0) +DSPARSE +DWORD +WINAPI +DsUnquoteRdnValueA( + DWORD cQuotedRdnValueLength, + _In_reads_ (cQuotedRdnValueLength) LPCCH psQuotedRdnValue, + _Inout_ DWORD *pcUnquotedRdnValueLength, + _Out_writes_to_ (*pcUnquotedRdnValueLength, *pcUnquotedRdnValueLength) LPCH psUnquotedRdnValue +); + +#ifdef UNICODE +#define DsUnquoteRdnValue DsUnquoteRdnValueW +#else +#define DsUnquoteRdnValue DsUnquoteRdnValueA +#endif + +/*++ +========================================================== +_Check_return_ +DSPARSE +DWORD +WINAPI +DsGetRdnW( + IN OUT LPCWCH *ppDN, + IN OUT DWORD *pcDN, + OUT LPCWCH *ppKey, + OUT DWORD *pcKey, + OUT LPCWCH *ppVal, + OUT DWORD *pcVal + ) + +Description + + This client call accepts a DN with quoted RDNs and returns the address + and length, in chars, of the key and value for the first RDN in the DN. + The RDN value returned is still quoted. Use DsUnquoteRdnValue to unquote + the value for display. + + This client call also returns the address and length of the rest of the + DN. A subsequent call using the returned DN address and length will + return information about the next RDN. + + The following loop processes each RDN in pDN: + ccDN = wcslen(pDN) + while (ccDN) { + error = DsGetRdn(&pDN, + &ccDN, + &pKey, + &ccKey, + &pVal, + &ccVal); + if (error != ERROR_SUCCESS) { + process error; + return; + } + if (ccKey) { + process pKey; + } + if (ccVal) { + process pVal; + } + } + + For example, given the DN "cn=bob,dc=com", the first call to DsGetRdnW + returns the addresses for ",dc=com", "cn", and "bob" with respective + lengths of 7, 2, and 3. A subsequent call with ",dc=com" returns "", + "dc", and "com" with respective lengths 0, 2, and 3. + +Arguments: + ppDN + IN : *ppDN points to a DN + OUT: *ppDN points to the rest of the DN following the first RDN + pcDN + IN : *pcDN is the count of chars in the input *ppDN, not including + any terminating NULL + OUT: *pcDN is the count of chars in the output *ppDN, not including + any terminating NULL + ppKey + OUT: Undefined if *pcKey is 0. Otherwise, *ppKey points to the first + key in the DN + pcKey + OUT: *pcKey is the count of chars in *ppKey. + + ppVal + OUT: Undefined if *pcVal is 0. Otherwise, *ppVal points to the first + value in the DN + pcVal + OUT: *pcVal is the count of chars in *ppVal + +Return Value: + ERROR_SUCCESS + If *pccDN is not 0, then *ppDN points to the rest of the DN following + the first RDN. If *pccDN is 0, then *ppDN is undefined. + + If *pccKey is not 0, then *ppKey points to the first key in DN. If + *pccKey is 0, then *ppKey is undefined. + + If *pccVal is not 0, then *ppVal points to the first value in DN. If + *pccVal is 0, then *ppVal is undefined. + + ERROR_DS_NAME_UNPARSEABLE + The first RDN in *ppDN could not be parsed. All output parameters + are undefined. + + Any other error + All output parameters are undefined. + +--*/ +_Check_return_ +_Success_(return == 0) +DSPARSE +DWORD +WINAPI +DsGetRdnW( + _Inout_ _At_(*ppDN, _Pre_readable_size_(*pcDN) _Post_readable_size_(*pcDN)) LPCWCH *ppDN, + _Inout_ DWORD *pcDN, + _Outptr_result_buffer_(*pcKey) LPCWCH *ppKey, + _Out_ DWORD *pcKey, + _Outptr_result_buffer_(*pcVal) LPCWCH *ppVal, + _Out_ DWORD *pcVal + ); + + +/*++ +========================================================== + +_Check_return_ +DSPARSE +BOOL +WINAPI +DsCrackUnquotedMangledRdnW( + IN LPCWSTR pszRDN, + IN DWORD cchRDN, + OUT OPTIONAL GUID *pGuid, + OUT OPTIONAL DS_MANGLE_FOR *peDsMangleFor + ); + +Description + +Determine whether the given RDN is in mangled form. If so, the mangled RDN +is decoded, and the guid and mangle type are returned. + +The RDN should already be in unquoted form. See DsUnquoteRdnValue. + +Arguments: + + pszRDN (IN) - Character string containing RDN. Termination is optional. + + cchRDN (IN) - Length of RDN excluding termination, if any + + pGuid (OUT, OPTIONAL) - Pointer to storage to receive decoded guid. + Only returned if RDN is mangled. + + peDsMangleFor (OUT, OPTIONAL) - Pointer to storage to receive mangle type. + Only returned if RDN is mangled + +Return Value: + + BOOL - Whether the RDN is mangled or not + +--*/ + +DSPARSE +BOOL +WINAPI +DsCrackUnquotedMangledRdnW( + _In_reads_(cchRDN) LPCWSTR pszRDN, + DWORD cchRDN, + _Out_opt_ GUID *pGuid, + _Out_opt_ DS_MANGLE_FOR *peDsMangleFor + ); + +DSPARSE +BOOL +WINAPI +DsCrackUnquotedMangledRdnA( + _In_reads_(cchRDN) LPCSTR pszRDN, + DWORD cchRDN, + _Out_opt_ GUID *pGuid, + _Out_opt_ DS_MANGLE_FOR *peDsMangleFor + ); + +#ifdef UNICODE +#define DsCrackUnquotedMangledRdn DsCrackUnquotedMangledRdnW +#else +#define DsCrackUnquotedMangledRdn DsCrackUnquotedMangledRdnA +#endif + +/*++ +========================================================== + +_Check_return_ +DSPARSE +BOOL +WINAPI +DsIsMangledRdnValueW( + LPCWSTR pszRdn, + DWORD cRdn, + DS_MANGLE_FOR eDsMangleForDesired + ); + +Description + + Determine if the given RDN Value is mangled, and of the given type. Note that + the key portion of an RDN should not be supplied. + + The name may be quoted or unquoted. This routine tries to unquote the value. If + the unquote operation fails, the routine proceeds to attempt the unmangle. + + A change was made in the default quoting behavior of DNs returned from the DS + between Windows 2000 and Windows XP. This routine transparently handles RDNs with + special characters in either form. + + The routine expects the value part of the RDN. + + If you have full DN, use DsIsMangledDn() below. + + To check for deleted name: + DsIsMangledRdnValueW( rdn, rdnlen, DS_MANGLE_OBJECT_FOR_DELETION ) + To check for a conflicted name: + DsIsMangledRdnValueW( rdn, rdnlen, DS_MANGLE_OBJECT_FOR_NAME_CONFLICT ) + +Arguments: + + pszRdn (IN) - RDN value character string. Termination is not required and + is ignored. + + cRdn (IN) - Length of RDN value in characters excluding termination + + eDsMangleForDesired (IN) - Type of mangling to check for + +Return Value: + + BOOL - True if the Rdn is mangled and is of the required type + +--*/ + +DSPARSE +BOOL +WINAPI +DsIsMangledRdnValueW( + _In_reads_(cRdn) LPCWSTR pszRdn, + DWORD cRdn, + DS_MANGLE_FOR eDsMangleForDesired + ); + +DSPARSE +BOOL +WINAPI +DsIsMangledRdnValueA( + _In_reads_(cRdn) LPCSTR pszRdn, + DWORD cRdn, + DS_MANGLE_FOR eDsMangleForDesired + ); + +#ifdef UNICODE +#define DsIsMangledRdnValue DsIsMangledRdnValueW +#else +#define DsIsMangledRdnValue DsIsMangledRdnValueA +#endif + +/*++ +========================================================== + +DSPARSE +BOOL +WINAPI +DsIsMangledDnW( + LPCWSTR pszDn, + DS_MANGLE_FOR eDsMangleFor + ); + +Description + + Determine if the first RDN in a quoted DN is a mangled name of given type. + + The DN must be suitable for input to DsGetRdn(). + + To check for deleted name: + DsIsMangledDnW( dn, DS_MANGLE_OBJECT_FOR_DELETION ) + To check for a conflicted name: + DsIsMangledDnW( Dn, DS_MANGLE_OBJECT_FOR_NAME_CONFLICT ) + +Arguments: + + pszDn (IN) - Quoted Distinguished Name as returned by DS functions + + eDsMangleFor (IN) - Type of mangling to check for + +Return Value: + + BOOL - True if first RDN is mangled and is of the given mangle type + +--*/ + +DSPARSE +BOOL +WINAPI +DsIsMangledDnA( + _In_ LPCSTR pszDn, + DS_MANGLE_FOR eDsMangleFor + ); + +DSPARSE +BOOL +WINAPI +DsIsMangledDnW( + _In_ LPCWSTR pszDn, + DS_MANGLE_FOR eDsMangleFor + ); + +#ifdef UNICODE +#define DsIsMangledDn DsIsMangledDnW +#else +#define DsIsMangledDn DsIsMangledDnA +#endif + +// does there need to be a dsparsep.w? + +// ========================================================== +// DsCrackSpn2() -- parse a counted-length SPN into the ServiceClass, +// ServiceName, and InstanceName (and InstancePort) pieces. +// An SPN is passed in, along with a pointer to the maximum length +// for each piece and a pointer to a buffer where each piece should go. +// On exit, the maximum lengths are updated to the actual length for each piece +// and the buffer contain the appropriate piece. The InstancePort is 0 if not +// present. +// +// DWORD DsCrackSpn2( +// IN LPTSTR pszSPN, // the SPN to parse (does not have to be NULL-terminated) +// IN DWORD cSpn, // length of pszSPN +// IN OUT PUSHORT pcServiceClass OPTIONAL, +// input -- max length of ServiceClass; +// output -- actual length +// OUT LPCTSTR ServiceClass OPTIONAL, // the ServiceClass part of the SPN +// IN OUT PUSHORT pcServiceName OPTIONAL, +// input -- max length of ServiceName; +// output -- actual length +// OUT LPCTSTR ServiceName OPTIONAL, // the ServiceName part of the SPN +// IN OUT PUSHORT pcInstance OPTIONAL, +// input -- max length of ServiceClass; +// output -- actual length +// OUT LPCTSTR InstanceName OPTIONAL, // the InstanceName part of the SPN +// OUT PUSHORT InstancePort OPTIONAL // instance port +// +// Note: lengths are in characters; all string lengths include terminators +// All arguments except pszSpn are optional. +// + +DSPARSE +DWORD +WINAPI +DsCrackSpn2A( + _In_reads_ (cSpn) LPCSTR pszSpn, + _In_ DWORD cSpn, + _Inout_opt_ LPDWORD pcServiceClass, + _Out_writes_to_opt_ (*pcServiceClass, *pcServiceClass) LPSTR ServiceClass, + _Inout_opt_ LPDWORD pcServiceName, + _Out_writes_to_opt_ (*pcServiceName, *pcServiceName) LPSTR ServiceName, + _Inout_opt_ LPDWORD pcInstanceName, + _Out_writes_to_opt_ (*pcInstanceName, *pcInstanceName) LPSTR InstanceName, + _Out_opt_ USHORT *pInstancePort + ); + +DSPARSE +DWORD +WINAPI +DsCrackSpn2W( + _In_reads_ (cSpn) LPCWSTR pszSpn, + _In_ DWORD cSpn, + _Inout_opt_ DWORD *pcServiceClass, + _Out_writes_to_opt_ (*pcServiceClass, *pcServiceClass) LPWSTR ServiceClass, + _Inout_opt_ DWORD *pcServiceName, + _Out_writes_to_opt_ (*pcServiceName, *pcServiceName) LPWSTR ServiceName, + _Inout_opt_ DWORD *pcInstanceName, + _Out_writes_to_opt_ (*pcInstanceName, *pcInstanceName) LPWSTR InstanceName, + _Out_opt_ USHORT *pInstancePort + ); + +DSPARSE +DWORD +WINAPI +DsCrackSpn3W( + _In_ LPCWSTR pszSpn, + IN DWORD cSpn, + IN OUT DWORD *pcHostName, + _Out_writes_to_ (*pcHostName, *pcHostName) LPWSTR HostName, + IN OUT DWORD *pcInstanceName, + _Out_writes_to_ (*pcInstanceName, *pcInstanceName) LPWSTR InstanceName, + OUT USHORT *pPortNumber, + IN OUT DWORD *pcDomainName, + _Out_writes_to_ (*pcDomainName, *pcDomainName) LPWSTR DomainName, + IN OUT DWORD *pcRealmName, + _Out_writes_to_ (*pcRealmName, *pcRealmName) LPWSTR RealmName + ); + +DSPARSE +DWORD +WINAPI +DsCrackSpn4W( + _In_ LPCWSTR pszSpn, + IN DWORD cSpn, + IN OUT DWORD *pcHostName, + _Out_writes_to_ (*pcHostName, *pcHostName) LPWSTR HostName, + IN OUT DWORD *pcInstanceName, + _Out_writes_to_ (*pcInstanceName, *pcInstanceName) LPWSTR InstanceName, + IN OUT DWORD *pcPortName, + _Out_writes_to_ (*pcPortName, *pcPortName) LPWSTR PortName, + IN OUT DWORD *pcDomainName, + _Out_writes_to_ (*pcDomainName, *pcDomainName) LPWSTR DomainName, + IN OUT DWORD *pcRealmName, + _Out_writes_to_ (*pcRealmName, *pcRealmName) LPWSTR RealmName + ); + +#ifdef UNICODE +#define DsCrackSpn2 DsCrackSpn2W +#else +#define DsCrackSpn2 DsCrackSpn2A +#endif + +#ifdef __cplusplus +} +#endif +#endif // !MIDL_PASS + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _DSPARSE_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dssec.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dssec.h new file mode 100644 index 0000000000000000000000000000000000000000..dcdbb3ad3a7a40d3678efaf4d027a3bdfcec22fa --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dssec.h @@ -0,0 +1,194 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#ifndef _DSSEC_H_ +#define _DSSEC_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include // LPSECURITYINFO + + +//+--------------------------------------------------------------------------- +// +// Function: PFNREADOBJECTSECURITY +// +// Synopsis: Reads the security descriptor of a DS object +// +// Arguments: [IN LPCWSTR] -- ADS path of DS Object +// [IN SECURITY_INFORMATION] -- Which SD parts to read +// [OUT PSECURITY_DESCRIPTOR*] -- Return SD here. Caller frees with LocalFree +// [IN LPARAM] -- Context param +// +// Return: HRESULT +// +//---------------------------------------------------------------------------- +// +// Function: PFNWRITEOBJECTSECURITY +// +// Synopsis: Writes a security descriptor to a DS object +// +// Arguments: [IN LPCWSTR] -- ADS path of DS Object +// [IN SECURITY_INFORMATION] -- Which SD parts to write +// [OUT PSECURITY_DESCRIPTOR] -- Security descriptor to write +// [IN LPARAM] -- Context param +// +// Return: HRESULT +// +//---------------------------------------------------------------------------- +typedef HRESULT (WINAPI *PFNREADOBJECTSECURITY)(LPCWSTR, SECURITY_INFORMATION, PSECURITY_DESCRIPTOR*, LPARAM); +typedef HRESULT (WINAPI *PFNWRITEOBJECTSECURITY)(LPCWSTR, SECURITY_INFORMATION, PSECURITY_DESCRIPTOR, LPARAM); + +//+--------------------------------------------------------------------------- +// +// Function: DSCreateISecurityInfoObject +// +// Synopsis: Instantiates an ISecurityInfo interface for a DS object +// +// Arguments: [IN pwszObjectPath] -- Full ADS path of DS object +// [IN pwszObjectClass] -- Class of the object (optional) +// [IN dwFlags] -- Combination of DSSI_* flags +// [OUT ppSI] -- Interface pointer returned here +// [IN pfnReadSD] -- Optional function for reading SD +// [IN pfnWriteSD] -- Optional function for writing SD +// [IN LPARAM] -- Passed to pfnReadSD/pfnWriteSD +// +// Return: HRESULT +// +//---------------------------------------------------------------------------- +STDAPI +DSCreateISecurityInfoObject(LPCWSTR pwszObjectPath, + LPCWSTR pwszObjectClass, + DWORD dwFlags, + _Out_ LPSECURITYINFO *ppSI, + _In_opt_ PFNREADOBJECTSECURITY pfnReadSD, + _In_opt_ PFNWRITEOBJECTSECURITY pfnWriteSD, + LPARAM lpContext); + +// Flags for DSCreateISecurityInfoObject +#define DSSI_READ_ONLY 0x00000001 +#define DSSI_NO_ACCESS_CHECK 0x00000002 +#define DSSI_NO_EDIT_SACL 0x00000004 +#define DSSI_NO_EDIT_OWNER 0x00000008 +#define DSSI_IS_ROOT 0x00000010 +#define DSSI_NO_FILTER 0x00000020 +#define DSSI_NO_READONLY_MESSAGE 0x00000040 + +// +// Same as above, with optional server, user & password arguments. +// If use & password are not provided, ADSI defaults are used. +// If the server is not provided, it is obtained from the object +// path or DsGetDcName. +// +STDAPI +DSCreateISecurityInfoObjectEx(LPCWSTR pwszObjectPath, + LPCWSTR pwszObjectClass, + LPCWSTR pwszServer, + LPCWSTR pwszUserName, + LPCWSTR pwszPassword, + DWORD dwFlags, + _Out_ LPSECURITYINFO *ppSI, + _In_opt_ PFNREADOBJECTSECURITY pfnReadSD, + _In_opt_ PFNWRITEOBJECTSECURITY pfnWriteSD, + LPARAM lpContext); + + +//+--------------------------------------------------------------------------- +// +// Function: DSCreateSecurityPage +// +// Synopsis: Creates a Security property page for a DS object +// +// Arguments: [IN pwszObjectPath] -- Full ADS path of DS object +// [IN pwszObjectClass] -- Class of the object (optional) +// [IN dwFlags] -- Combination of DSSI_* flags +// [OUT phPage] -- HPROPSHEETPAGE returned here +// [IN pfnReadSD] -- Optional function for reading SD +// [IN pfnWriteSD] -- Optional function for writing SD +// [IN LPARAM] -- Passed to pfnReadSD/pfnWriteSD +// +// Return: HRESULT +// +//---------------------------------------------------------------------------- +STDAPI +DSCreateSecurityPage(LPCWSTR pwszObjectPath, + LPCWSTR pwszObjectClass, + DWORD dwFlags, + _Out_ HPROPSHEETPAGE *phPage, + _In_opt_ PFNREADOBJECTSECURITY pfnReadSD, + _In_opt_ PFNWRITEOBJECTSECURITY pfnWriteSD, + LPARAM lpContext); + +//+--------------------------------------------------------------------------- +// +// Function: DSEditSecurity +// +// Synopsis: Displays a modal dialog for editing security on a DS object +// +// Arguments: [IN hwndOwner] -- Dialog owner window +// [IN pwszObjectPath] -- Full ADS path of DS object +// [IN pwszObjectClass] -- Class of the object (optional) +// [IN dwFlags] -- Combination of DSSI_* flags +// [IN pwszCaption] -- Optional dialog caption +// [IN pfnReadSD] -- Optional function for reading SD +// [IN pfnWriteSD] -- Optional function for writing SD +// [IN LPARAM] -- Passed to pfnReadSD/pfnWriteSD +// +// Return: HRESULT +// +//---------------------------------------------------------------------------- +STDAPI +DSEditSecurity(HWND hwndOwner, + LPCWSTR pwszObjectPath, + LPCWSTR pwszObjectClass, + DWORD dwFlags, + LPCWSTR pwszCaption, + _In_opt_ PFNREADOBJECTSECURITY pfnReadSD, + _In_opt_ PFNWRITEOBJECTSECURITY pfnWriteSD, + LPARAM lpContext); + + +typedef HRESULT (WINAPI *PFNDSCREATEISECINFO)(LPCWSTR, + LPCWSTR, + DWORD, + LPSECURITYINFO*, + PFNREADOBJECTSECURITY, + PFNWRITEOBJECTSECURITY, + LPARAM); + +typedef HRESULT (WINAPI *PFNDSCREATEISECINFOEX)(LPCWSTR, + LPCWSTR, + LPCWSTR, + LPCWSTR, + LPCWSTR, + DWORD, + LPSECURITYINFO*, + PFNREADOBJECTSECURITY, + PFNWRITEOBJECTSECURITY, + LPARAM); + +typedef HRESULT (WINAPI *PFNDSCREATESECPAGE)(LPCWSTR, + LPCWSTR, + DWORD, + HPROPSHEETPAGE*, + PFNREADOBJECTSECURITY, + PFNWRITEOBJECTSECURITY, + LPARAM); + +typedef HRESULT (WINAPI *PFNDSEDITSECURITY)(HWND, + LPCWSTR, + LPCWSTR, + DWORD, + LPCWSTR, + PFNREADOBJECTSECURITY, + PFNWRITEOBJECTSECURITY, + LPARAM); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _DSSEC_H_ */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dv.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dv.h new file mode 100644 index 0000000000000000000000000000000000000000..8989f7d630ea60575214a3559a5338533f5e1278 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dv.h @@ -0,0 +1,67 @@ +//------------------------------------------------------------------------------ +// File: DV.h +// +// Desc: DV typedefs and defines. +// +// Copyright (c) 1997 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef _DV_H_ +#define _DV_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#define DV_DVSD_NTSC_FRAMESIZE 120000L +#define DV_DVSD_PAL_FRAMESIZE 144000L + +#define DV_SMCHN 0x0000e000 +#define DV_AUDIOMODE 0x00000f00 +#define DV_AUDIOSMP 0x38000000 + +#define DV_AUDIOQU 0x07000000 +#define DV_NTSCPAL 0x00200000 +#define DV_STYPE 0x001f0000 + + +//There are NTSC or PAL DV camcorders +#define DV_NTSC 0 +#define DV_PAL 1 +//DV camcorder can output sd/hd/sl +#define DV_SD 0x00 +#define DV_HD 0x01 +#define DV_SL 0x02 +//user can choice 12 bits or 16 bits audio from DV camcorder +#define DV_CAP_AUD16Bits 0x00 +#define DV_CAP_AUD12Bits 0x01 + +#define SIZE_DVINFO 0x20 + +typedef struct Tag_DVAudInfo +{ + BYTE bAudStyle[2]; + //LSB 6 bits for starting DIF sequence number + //MSB 2 bits: 0 for mon. 1: stereo in one 5/6 DIF sequences, 2: stereo audio in both 5/6 DIF sequences + //example: 0x00: mon, audio in first 5/6 DIF sequence + // 0x05: mon, audio in 2nd 5 DIF sequence + // 0x15: stereo, audio only in 2nd 5 DIF sequence + // 0x10: stereo, audio only in 1st 5/6 DIF sequence + // 0x20: stereo, left ch in 1st 5/6 DIF sequence, right ch in 2nd 5/6 DIF sequence + // 0x26: stereo, rightch in 1st 6 DIF sequence, left ch in 2nd 6 DIF sequence + BYTE bAudQu[2]; //qbits, only support 12, 16, + + BYTE bNumAudPin; //how many pin(language) + WORD wAvgSamplesPerPinPerFrm[2]; //samples size for one audio pin in one frame(which has 10 or 12 DIF sequence) + WORD wBlkMode; //45 for NTSC, 54 for PAL + WORD wDIFMode; //5 for NTSC, 6 for PAL + WORD wBlkDiv; //15 for NTSC, 18 for PAL +} DVAudInfo; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _DV_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvdevcod.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvdevcod.h new file mode 100644 index 0000000000000000000000000000000000000000..0acf0f62404a3fb8d2e14989552d3012c0fe20ff --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvdevcod.h @@ -0,0 +1,427 @@ +//------------------------------------------------------------------------------ +// File: DVDevCod.h +// +// Desc: List of standard DVD-Video event codes and the expected params. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + +#ifndef __DVDEVCOD__ +#define __DVDEVCOD__ +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + + +#define EC_DVDBASE 0x0100 + +#ifndef EXCLUDE_DVDEVCODE_ENUMS + +typedef enum _tagDVD_ERROR { + DVD_ERROR_Unexpected=1, // Something unexpected happened, perhaps content + // is incorrectly authored. Playback is stopped. + DVD_ERROR_CopyProtectFail=2, // Key exchange for DVD copy protection failed. + // Playback is stopped. + DVD_ERROR_InvalidDVD1_0Disc=3, // DVD-Video disc is incorrectly authored for v1.0 + // of spec. Playback is stopped. + DVD_ERROR_InvalidDiscRegion=4, // The Disc cannot be played because the disc is not + // authored to play in system region. + // The region mismatch may be fixable by + // changing the system region with dvdrgn.exe + DVD_ERROR_LowParentalLevel=5, // Player parental level is lower than the lowest parental + // level available in the DVD content. Playback is stopped. + DVD_ERROR_MacrovisionFail=6, // Macrovision Distribution Failed. + // Playback is stopped. + DVD_ERROR_IncompatibleSystemAndDecoderRegions=7, + // No discs can be played because the system region + // does not match the decoder region. + DVD_ERROR_IncompatibleDiscAndDecoderRegions=8, + // The disc cannot be played because the disc is + // not authored to be played in the decoder's region + DVD_ERROR_CopyProtectOutputFail=9, // DVD copy protection failed due to output display + DVD_ERROR_CopyProtectOutputNotSupported=10, // DVD copy protection failed due to lack of driver + // support for checking the output display +} DVD_ERROR; + +typedef enum _tagDVD_WARNING { + DVD_WARNING_InvalidDVD1_0Disc=1,// DVD-Video disc is incorrectly authored. Playback + // can continue, but unexpected behavior may occur. + DVD_WARNING_FormatNotSupported=2,// A decoder would not support the current format. Playback + // of a stream (audio, video of SP) may not function. + // lParam2 contains the stream type (see AM_DVD_STREAM_FLAGS) + DVD_WARNING_IllegalNavCommand=3,// The internal DVD navigation command processor attempted to + // process an illegal command. + DVD_WARNING_Open = 4, // File Open Failed + DVD_WARNING_Seek = 5, // File Seek Failed + DVD_WARNING_Read = 6 // File Read Failed +} DVD_WARNING; + +typedef enum _tagDVD_PB_STOPPED { + DVD_PB_STOPPED_Other=0, // The navigator stopped the playback (no reason available). + DVD_PB_STOPPED_NoBranch=1, // The nav completed the current pgc and there was no more video and + // did not find any other branching instruction for subsequent playback. + DVD_PB_STOPPED_NoFirstPlayDomain =2, // The disc does not contain an initial startup program. + DVD_PB_STOPPED_StopCommand = 3, // The app issued a stop() command or a stop command was authored on the disc. + DVD_PB_STOPPED_Reset=4, // The navigator was reset to the start of the disc (using ResetOnStop). + DVD_PB_STOPPED_DiscEjected=5, // The disc was ejected. + DVD_PB_STOPPED_IllegalNavCommand = 6, // An illegal nav command prevented playback from continuing. + DVD_PB_STOPPED_PlayPeriodAutoStop = 7, // PlayPeriod completed + DVD_PB_STOPPED_PlayChapterAutoStop = 8, // PlayChapter completed + DVD_PB_STOPPED_ParentalFailure = 9, // A parental level failure prevented playback + DVD_PB_STOPPED_RegionFailure = 10, // A region failure prevented playback + DVD_PB_STOPPED_MacrovisionFailure = 11, // A Macrovision failure prevented playback. + DVD_PB_STOPPED_DiscReadError = 12, // A read error prevented playback. + DVD_PB_STOPPED_CopyProtectFailure = 13, // Copy protection failure. + DVD_PB_STOPPED_CopyProtectOutputFailure = 14, // Copy protection failure due to non-compliant output device + DVD_PB_STOPPED_CopyProtectOutputNotSupported = 15 // Copy protection failure due to missing driver support to check + // output device +} DVD_PB_STOPPED; + + +#endif + +// DVD-Video event codes +// ====================== +// +// All DVD-Video event are always passed on to the application, and are +// never processed by the filter graph + + +#define EC_DVD_DOMAIN_CHANGE (EC_DVDBASE + 0x01) +// Parameters: ( DWORD, void ) +// lParam1 is enum DVD_DOMAIN, and indicates the player's new domain +// +// Raised from following domains: all +// +// Signaled when ever the DVD player changes domains. + + +#define EC_DVD_TITLE_CHANGE (EC_DVDBASE + 0x02) +// Parameters: ( DWORD, void ) +// lParam1 is the new title number. +// +// Raised from following domains: DVD_DOMAIN_Title +// +// Indicates when the current title number changes. Title numbers +// range 1 to 99. This indicates the TTN, which is the title number +// with respect to the whole disc, not the VTS_TTN which is the title +// number with respect to just a current VTS. + + +#define EC_DVD_CHAPTER_START (EC_DVDBASE + 0x03) +// Parameters: ( DWORD, void ) +// lParam1 is the new chapter number (which is the program number for +// One_Sequential_PGC_Titles). +// +// Raised from following domains: DVD_DOMAIN_Title +// +// Signales that DVD player started playback of a new program in the Title +// domain. This is only signaled for One_Sequential_PGC_Titles. + + +#define EC_DVD_AUDIO_STREAM_CHANGE (EC_DVDBASE + 0x04) +// Parameters: ( DWORD, void ) +// lParam1 is the new user audio stream number. +// +// Raised from following domains: all +// +// Signaled when ever the current user audio stream number changes for the main +// title. This can be changed automatically with a navigation command on disc +// as well as through IDVDAnnexJ. +// Audio stream numbers range from 0 to 7. Stream 0xffffffff +// indicates that no stream is selected. + +#define EC_DVD_SUBPICTURE_STREAM_CHANGE (EC_DVDBASE + 0x05) +// Parameters: ( DWORD, BOOL ) +// lParam1 is the new user subpicture stream number. +// lParam2 is the subpicture's on/off state (TRUE if on) +// +// Raised from following domains: all +// +// Signaled when ever the current user subpicture stream number changes for the main +// title. This can be changed automatically with a navigation command on disc +// as well as through IDVDAnnexJ. +// Subpicture stream numbers range from 0 to 31. Stream 0xffffffff +// indicates that no stream is selected. + +#define EC_DVD_ANGLE_CHANGE (EC_DVDBASE + 0x06) +// Parameters: ( DWORD, DWORD ) +// lParam1 is the number of available angles. +// lParam2 is the current user angle number. +// +// Raised from following domains: all +// +// Signaled when ever either +// a) the number of available angles changes, or +// b) the current user angle number changes. +// Current angle number can be changed automatically with navigation command +// on disc as well as through IDVDAnnexJ. +// When the number of available angles is 1, the current video is not multiangle. +// Angle numbers range from 1 to 9. + + +#define EC_DVD_BUTTON_CHANGE (EC_DVDBASE + 0x07) +// Parameters: ( DWORD, DWORD ) +// lParam1 is the number of available buttons. +// lParam2 is the current selected button number. +// +// Raised from following domains: all +// +// Signaled when ever either +// a) the number of available buttons changes, or +// b) the current selected button number changes. +// The current selected button can be changed automatically with navigation +// commands on disc as well as through IDVDAnnexJ. +// Button numbers range from 1 to 36. Selected button number 0 implies that +// no button is selected. Note that these button numbers enumerate all +// available button numbers, and do not always correspond to button numbers +// used for IDVDAnnexJ::ButtonSelectAndActivate since only a subset of buttons +// may be activated with ButtonSelectAndActivate. + + +#define EC_DVD_VALID_UOPS_CHANGE (EC_DVDBASE + 0x08) +// Parameters: ( DWORD, void ) +// lParam1 is a VALID_UOP_SOMTHING_OR_OTHER bit-field stuct which indicates +// which IDVDAnnexJ commands are explicitly disable by the DVD disc. +// +// Raised from following domains: all +// +// Signaled when ever the available set of IDVDAnnexJ methods changes. This +// only indicates which operations are explicited disabled by the content on +// the DVD disc, and does not guarentee that it is valid to call methods +// which are not disabled. For example, if no buttons are currently present, +// IDVDAnnexJ::ButtonActivate() won't work, even though the buttons are not +// explicitly disabled. + + +#define EC_DVD_STILL_ON (EC_DVDBASE + 0x09) +// Parameters: ( BOOL, DWORD ) +// lParam1 == 0 --> buttons are available, so StillOff won't work +// lParam1 == 1 --> no buttons available, so StillOff will work +// lParam2 indicates the number of seconds the still will last, with 0xffffffff +// indicating an infinite still (wait till button or StillOff selected). +// +// Raised from following domains: all +// +// Signaled at the beginning of any still: PGC still, Cell Still, or VOBU Still. +// Note that all combinations of buttons and still are possible (buttons on with +// still on, buttons on with still off, button off with still on, button off +// with still off). + +#define EC_DVD_STILL_OFF (EC_DVDBASE + 0x0a) +// Parameters: ( void, void ) +// +// Indicating that any still that is currently active +// has been released. +// +// Raised from following domains: all +// +// Signaled at the end of any still: PGC still, Cell Still, or VOBU Still. +// + +#define EC_DVD_CURRENT_TIME (EC_DVDBASE + 0x0b) +// Parameters: ( DWORD, BOOL ) +// lParam1 is a DVD_TIMECODE which indicates the current +// playback time code in a BCD HH:MM:SS:FF format. +// lParam2 == 0 --> time code is 25 frames/sec +// lParam2 == 1 --> time code is 30 frames/sec (non-drop). +// lParam2 == 2 --> time code is invalid (current playback time +// cannot be determined for current title) +// +// Raised from following domains: DVD_DOMAIN_Title +// +// Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec. +// This is only signaled for One_Sequential_PGC_Titles. + + +#define EC_DVD_ERROR (EC_DVDBASE + 0x0c) +// Parameters: ( DWORD, void) +// lParam1 is an enum DVD_ERROR which notifies the app of some error condition. +// +// Raised from following domains: all +// + +#define EC_DVD_WARNING (EC_DVDBASE + 0x0d) +// Parameters: ( DWORD, DWORD) +// lParam1 is an enum DVD_WARNING which notifies the app of some warning condition. +// lParam2 contains more specific information about the warning (warning dependent) +// +// Raised from following domains: all +// + +#define EC_DVD_CHAPTER_AUTOSTOP (EC_DVDBASE + 0x0e) +// Parameters: (BOOL, void) +// lParam1 is a BOOL which indicates the reason for the cancellation of ChapterPlayAutoStop +// lParam1 == 0 indicates successful completion of ChapterPlayAutoStop +// lParam1 == 1 indicates that ChapterPlayAutoStop is being cancelled as a result of another +// IDVDControl call or the end of content has been reached & no more chapters +// can be played. +// Indicating that playback is stopped as a result of a call +// to IDVDControl::ChapterPlayAutoStop() +// +// Raised from following domains : DVD_DOMAIN_TITLE +// + +#define EC_DVD_NO_FP_PGC (EC_DVDBASE + 0x0f) +// Parameters : (void, void) +// +// Raised from the following domains : FP_DOM +// +// Indicates that the DVD disc does not have a FP_PGC (First Play Program Chain) +// and the DVD Navigator will not automatically load any PGC and start playback. +// + +#define EC_DVD_PLAYBACK_RATE_CHANGE (EC_DVDBASE + 0x10) +// Parameters : (LONG, void) +// lParam1 is a LONG indicating the new playback rate. +// lParam1 < 0 indicates reverse playback mode. +// lParam1 > 0 indicates forward playback mode +// Value of lParam1 is the actual playback rate multiplied by 10000. +// i.e. lParam1 = rate * 10000 +// +// Raised from the following domains : TT_DOM +// +// Indicates that a rate change in playback has been initiated and the parameter +// lParam1 indicates the new playback rate that is being used. +// + +#define EC_DVD_PARENTAL_LEVEL_CHANGE (EC_DVDBASE + 0x11) +// Parameters : (LONG, void) +// lParam1 is a LONG indicating the new parental level. +// +// Raised from the following domains : VMGM_DOM +// +// Indicates that an authored Nav command has changed the parental level +// setting in the player. +// + +#define EC_DVD_PLAYBACK_STOPPED (EC_DVDBASE + 0x12) +// Parameters : (DWORD, void) +// +// Raised from the following domains : All Domains +// +// Indicates that playback has been stopped as the Navigator has completed +// playback of the pgc and did not find any other branching instruction for +// subsequent playback. +// +// The DWORD returns the reason for the completion of the playback. See +// The DVD_PB_STOPPED enumeration for details. +// + +#define EC_DVD_ANGLES_AVAILABLE (EC_DVDBASE + 0x13) +// Parameters : (BOOL, void) +// lParam1 == 0 indicates that playback is not in an angle block and angles are +// not available +// lParam1 == 1 indicates that an angle block is being played back and angle changes +// can be performed. +// +// Indicates whether an angle block is being played and if angle changes can be +// performed. However, angle changes are not restricted to angle blocks and the +// manifestation of the angle change can be seen only in an angle block. + +#define EC_DVD_PLAYPERIOD_AUTOSTOP (EC_DVDBASE + 0x14) +// Parameters: (void, void) +// Sent when the PlayPeriodInTitle completes or is cancelled +// +// Raised from following domains : DVD_DOMAIN_TITLE +// + +#define EC_DVD_BUTTON_AUTO_ACTIVATED (EC_DVDBASE + 0x15) +// Parameters: (DWORD button, void) +// Sent when a button is automatically activated +// +// Raised from following domains : DVD_DOMAIN_MENU +// + +#define EC_DVD_CMD_START (EC_DVDBASE + 0x16) +// Parameters: (CmdID, HRESULT) +// Sent when a command begins +// + +#define EC_DVD_CMD_END (EC_DVDBASE + 0x17) +// Parameters: (CmdID, HRESULT) +// Sent when a command completes +// + +#define EC_DVD_DISC_EJECTED (EC_DVDBASE + 0x18) +// Parameters: none +// Sent when the nav detects that a disc was ejected and stops the playback +// The app does not need to take any action to stop the playback. +// + +#define EC_DVD_DISC_INSERTED (EC_DVDBASE + 0x19) +// Parameters: none +// Sent when the nav detects that a disc was inserted and the nav begins playback +// The app does not need to take any action to start the playback. +// + +#define EC_DVD_CURRENT_HMSF_TIME (EC_DVDBASE + 0x1a) +// Parameters: ( ULONG, ULONG ) +// lParam2 contains a union of the DVD_TIMECODE_FLAGS +// lParam1 contains a DVD_HMSF_TIMECODE. Assign lParam1 to a ULONG then cast the +// ULONG as a DVD_HMSF_TIMECODE to use its values. +// +// Raised from following domains: DVD_DOMAIN_Title +// +// Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec. + +#define EC_DVD_KARAOKE_MODE (EC_DVDBASE + 0x1b) +// Parameters: ( BOOL, reserved ) +// lParam1 is either TRUE (a karaoke track is being played) or FALSE (no karaoke data is being played). +// + +#define EC_DVD_PROGRAM_CELL_CHANGE (EC_DVDBASE + 0x1c) +// Parameters: ( ULONG, ULONG ) +// Sent when current program ID and/or cell ID change +// lParam1 contains the new Program ID +// lParam2 contains the new Cell ID + +#define EC_DVD_TITLE_SET_CHANGE (EC_DVDBASE + 0x1d) +// Parameters: ( BYTE, void ) +// Sent when current VTS (Video Title Set) changes +// lParam1 contains the new VTSN (Video Title Set Number) + +#define EC_DVD_PROGRAM_CHAIN_CHANGE (EC_DVDBASE + 0x1e) +// Parameters: ( WORD, void ) +// Sent when current PGC (Program Chain) changes +// lParam1 contains the new PGCN (Program Chain Number) + +#define EC_DVD_VOBU_Offset (EC_DVDBASE + 0x1f) +// Parameters: ( BlockOffset, VTSN ) +// lParam1 is the block offset of the most recent VOBU. +// + +#define EC_DVD_VOBU_Timestamp (EC_DVDBASE + 0x20) +// Parameters: ( rtTimestamp.LowPart, rtTimeStamps.HighPart ) +// lParam1 is the dshow timestamp of the most recent VOBU. +// + +#define EC_DVD_GPRM_Change (EC_DVDBASE + 0x21) +// Parameters: ( GPRM index, GPRM value ) +// lParam1 is the GPRM index +// loword(lParam2) is the new GPRM value, hiword(lParam2) is type +// + +#define EC_DVD_SPRM_Change (EC_DVDBASE + 0x22) +// Parameters: ( SPRM index, SPRM value ) +// lParam1 is the SPRM index +// loword(lParam2) is the new SPRM value, hiword(lParam2) is type +// + +#define EC_DVD_BeginNavigationCommands (EC_DVDBASE + 0x23) +// Parameters: ( command type, reserved ) +// Sent when navigation commands are starting +// + +#define EC_DVD_NavigationCommand (EC_DVDBASE + 0x24) +// Parameters: ( cmd.LowPart, cmd.HighPart ) +// 64 bits of DVD navigation command. +// + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // __DVDEVCOD__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvdif.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvdif.idl new file mode 100644 index 0000000000000000000000000000000000000000..d2ba0f49d41e2fb0600fbcc1a5e2f415f5397449 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvdif.idl @@ -0,0 +1,2423 @@ +//------------------------------------------------------------------------------ +// File: DVDIf.idl +// +// Desc: DirectShow interfaces to control playback of a DVD filter graph. +// +// Copyright (c) 1992-2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +// forward declarations - these are the interfaces declared in this file + +import "unknwn.idl"; +import "objidl.idl"; + + +// Define for 'local' so that proxy-stubs can be generated for testing +#ifndef AM_LOCAL +#define AM_LOCAL local, +#define AM_ANNOTATION(_x_) ,annotation(_x_) +#endif + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#include ") + +interface IDvdControl; +interface IDvdInfo; +interface IDirectDraw; +interface IDirectDrawSurface; +interface IDvdGraphBuilder ; +interface IDDrawExclModeVideo; +interface IDDrawExclModeVideoCallback; +interface IDvdCmd; +interface IDvdState; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +//========================================================================== +//========================================================================== +// +// typedefs used by IDvdControl and IDvdInfo interfaces. +// +//========================================================================== +//========================================================================== + +typedef enum tagDVD_DOMAIN { + // The DVD_DOMAIN is used to indicate the stat of a DVD player. + DVD_DOMAIN_FirstPlay=1, // doing default initialization of a dvd disc + DVD_DOMAIN_VideoManagerMenu, // displaying menus for whole disc + DVD_DOMAIN_VideoTitleSetMenu, // displaying menus for current title set + DVD_DOMAIN_Title, // displaying current title + DVD_DOMAIN_Stop // player is in stopped state +} DVD_DOMAIN; + +typedef enum tagDVD_MENU_ID { + DVD_MENU_Title = 2, // to choose a title from any VTS in a DVD-Video volume + DVD_MENU_Root = 3, // main menu for a specific VTS + DVD_MENU_Subpicture =4, // to choose subpicture stream in a VTS + DVD_MENU_Audio = 5, // to choose audio stream in a VTS + DVD_MENU_Angle = 6, // to choose angle num in a VTS + DVD_MENU_Chapter = 7 // to choose a chapter in a VTS + // the Root menu always provides a means of getting to to Subpicture, Audio, + // Angle and Chapter menus if they exist. +} DVD_MENU_ID; + +typedef enum tagDVD_DISC_SIDE { + DVD_SIDE_A = 1, + DVD_SIDE_B = 2 +} DVD_DISC_SIDE; + + +typedef enum tagDVD_PREFERRED_DISPLAY_MODE +{ + // DVD_PREFERRED_DISPLAY_MODE is used to indicate the user's + // preferred window aspect ratio and preferred method of converion of + // 16*9 content to a 4*3 window aspect ratio. Pan-scan and letterboxing are + // the two conversion methods. This enum is used to indicate only a preference of + // conversion mechinism since some content can only be converted using one + // of these methods. 4*3 content is converted to a 16*9 window always by using + // "reverse" letterboxing where black bars are added to the right and left + // sides of the display instead of the top and bottom of the display as in the 16*9 + // to 4*3 conversion useing letterboxing. + DISPLAY_CONTENT_DEFAULT = 0, // default to content + DISPLAY_16x9 = 1, // 16x9 display + DISPLAY_4x3_PANSCAN_PREFERRED = 2, // 4x3 display with pan-scan preferrence + DISPLAY_4x3_LETTERBOX_PREFERRED = 3 // 4x3 display with letterbox preferrence + +} DVD_PREFERRED_DISPLAY_MODE; + +typedef WORD DVD_REGISTER; +typedef DVD_REGISTER GPRMARRAY[16]; // DVD-Video 1.0 has 16 16-bit General Parameter Registers +typedef DVD_REGISTER SPRMARRAY[24]; // DVD-Video 1.0 has 24 16-bit System Parameter Registers + + + +// these are only for IDVDInfo1 compatibility and require the DVD-Video 1.0 specification +// Please use the IDVDInfo2's DVD_Title/MenuAttributes, DVD_VideoAttributes, DVD_AudioAttributes, and DVD_SubpictureAttributes +typedef struct tagDVD_ATR +{ + // + // Refer to the DVD-Video 1.0 spec to parse these structures. + // + ULONG ulCAT; // VMG_CAT if this is for a volume; or VTS_CAT + // if this is for a Video Title Set (VTS) + BYTE pbATRI[768];// All stream attributes for menu and title from bytes + // 256 to 1023 of VMGI or VTSI. +} DVD_ATR; +typedef BYTE DVD_VideoATR[2]; // video stream attributes. +typedef BYTE DVD_AudioATR[8]; // audio stream attributes. +typedef BYTE DVD_SubpictureATR[6]; // subpicture stream attributes. + +// DVD1.0 Timecode is BCD encoded in this format: 0xHhMmSsFf, where +// H is tens of hours +// h is hours +// M is tens of minutes +// m is minutes +// S is tens of seconds +// s is seconds +// F is tens of frames +// f is frames +// Note that you must know the frame rate to interperate the frame count as time. +typedef enum tagDVD_FRAMERATE +{ + DVD_FPS_25 =1, // 25 frames per second + DVD_FPS_30NonDrop = 3 // exactly 30 frames per second +} DVD_FRAMERATE; + +cpp_quote("typedef struct tagDVD_TIMECODE") +cpp_quote("{") +cpp_quote(" ULONG Hours1 :4; // Hours") +cpp_quote(" ULONG Hours10 :4; // Tens of Hours ") +cpp_quote("") +cpp_quote(" ULONG Minutes1 :4; // Minutes ") +cpp_quote(" ULONG Minutes10:4; // Tens of Minutes ") +cpp_quote("") +cpp_quote(" ULONG Seconds1 :4; // Seconds ") +cpp_quote(" ULONG Seconds10:4; // Tens of Seconds ") +cpp_quote("") +cpp_quote(" ULONG Frames1 :4; // Frames ") +cpp_quote(" ULONG Frames10 :2; // Tens of Frames ") +cpp_quote("") +cpp_quote(" ULONG FrameRateCode: 2; // use DVD_FRAMERATE to indicate frames/sec and drop/non-drop") +cpp_quote("} DVD_TIMECODE;") + + +typedef enum tagDVD_NavCmdType { + DVD_NavCmdType_Pre=1, + DVD_NavCmdType_Post=2, + DVD_NavCmdType_Cell=3, + DVD_NavCmdType_Button=4 +} DVD_NavCmdType; + +// +// Newer IDVD2 methods can use the HMSF format instead +// Call SetOption( DVD_HMSF_TimeCodeEvents, TRUE) to return EC_DVD_CURRENT_HMSF_TIME +// instead of EC_DVD_CURRENT_TIME events +// +typedef enum tagDVD_TIMECODE_FLAGS +{ + DVD_TC_FLAG_25fps = 0x00000001, // 25 frames per second + DVD_TC_FLAG_30fps = 0x00000002, // 30 frames per second + DVD_TC_FLAG_DropFrame = 0x00000004, // 29.97 instead of 30 fps + DVD_TC_FLAG_Interpolated = 0x00000008, // timecode may be inaccurate + // remainder of bits are reserved and should not be read +} DVD_TIMECODE_FLAGS; + +// this can be cast to/from a ULONG +typedef struct tagDVD_HMSF_TIMECODE +{ + BYTE bHours; + BYTE bMinutes; + BYTE bSeconds; + BYTE bFrames; +} DVD_HMSF_TIMECODE; + +typedef struct tagDVD_PLAYBACK_LOCATION2 +{ + // + // TitleNum & ChapterNum or TitleNum & TimeCode are sufficient to save + // playback location for One_Sequential_PGC_Titles. + // + ULONG TitleNum; // title number for whole disc (TTN not VTS_TTN) + ULONG ChapterNum; // part-of-title number with title. 0xffffffff if not Once_Sequential_PGC_Title + DVD_HMSF_TIMECODE TimeCode; // use DVD_TIMECODE for current playback time. + ULONG TimeCodeFlags; // union of DVD_TIMECODE_EVENT_FLAGS + +} DVD_PLAYBACK_LOCATION2; + +typedef struct tagDVD_PLAYBACK_LOCATION +{ + // + // TitleNum & ChapterNum or TitleNum & TimeCode are sufficient to save + // playback location for One_Sequential_PGC_Titles. + // + ULONG TitleNum; // title number for whole disc (TTN not VTS_TTN) + ULONG ChapterNum; // part-of-title number with title. 0xffffffff if not Once_Sequential_PGC_Title + ULONG TimeCode; // use DVD_TIMECODE for current playback time. 0xffffffff if not Once_Sequential_PGC_Title + +} DVD_PLAYBACK_LOCATION; + +typedef DWORD VALID_UOP_SOMTHING_OR_OTHER; + +typedef enum { + // + // Annex J User Functions --- + // + UOP_FLAG_Play_Title_Or_AtTime = 0x00000001, // Title_Or_Time_Play + UOP_FLAG_Play_Chapter = 0x00000002, // Chapter_Search_Or_Play + UOP_FLAG_Play_Title = 0x00000004, // Title_Play + UOP_FLAG_Stop = 0x00000008, // Stop + UOP_FLAG_ReturnFromSubMenu = 0x00000010, // GoUp + UOP_FLAG_Play_Chapter_Or_AtTime = 0x00000020, // Time_Or_Chapter_Search + UOP_FLAG_PlayPrev_Or_Replay_Chapter = 0x00000040, // Prev_Or_Top_PG_Search + UOP_FLAG_PlayNext_Chapter = 0x00000080, // Next_PG_Search + UOP_FLAG_Play_Forwards = 0x00000100, // Forward_Scan + UOP_FLAG_Play_Backwards = 0x00000200, // Backward_Scan + UOP_FLAG_ShowMenu_Title = 0x00000400, // Title_Menu_Call + UOP_FLAG_ShowMenu_Root = 0x00000800, // Root_Menu_Call + UOP_FLAG_ShowMenu_SubPic = 0x00001000, // SubPic_Menu_Call + UOP_FLAG_ShowMenu_Audio = 0x00002000, // Audio_Menu_Call + UOP_FLAG_ShowMenu_Angle = 0x00004000, // Angle_Menu_Call + UOP_FLAG_ShowMenu_Chapter = 0x00008000, // Chapter_Menu_Call + UOP_FLAG_Resume = 0x00010000, // Resume + UOP_FLAG_Select_Or_Activate_Button = 0x00020000, // Button_Select_Or_Activate + UOP_FLAG_Still_Off = 0x00040000, // Still_Off + UOP_FLAG_Pause_On = 0x00080000, // Pause_On + UOP_FLAG_Select_Audio_Stream = 0x00100000, // Audio_Stream_Change + UOP_FLAG_Select_SubPic_Stream = 0x00200000, // SubPic_Stream_Change + UOP_FLAG_Select_Angle = 0x00400000, // Angle_Change + UOP_FLAG_Select_Karaoke_Audio_Presentation_Mode = 0x00800000, // Karaoke_Audio_Pres_Mode_Change + UOP_FLAG_Select_Video_Mode_Preference = 0x01000000 // Video_Pres_Mode_Change +} VALID_UOP_FLAG ; + +typedef enum { + DVD_CMD_FLAG_None = 0x00000000, + DVD_CMD_FLAG_Flush = 0x00000001, + DVD_CMD_FLAG_SendEvents = 0x00000002, + DVD_CMD_FLAG_Block = 0x00000004, // block end + DVD_CMD_FLAG_StartWhenRendered = 0x00000008, // command "start" when the first frame is rendered + DVD_CMD_FLAG_EndAfterRendered = 0x00000010, // command "ends" after the last frame is rendered +} DVD_CMD_FLAGS; + + +// For IDVDControl2::SetOption flags +typedef enum { + DVD_ResetOnStop = 1, // default TRUE + DVD_NotifyParentalLevelChange = 2, // default FALSE + DVD_HMSF_TimeCodeEvents = 3, // default FALSE (send DVD_CURRENT_TIME events) + DVD_AudioDuringFFwdRew = 4, // default FALSE (or by reg) + DVD_EnableNonblockingAPIs = 5, // default FALSE + DVD_CacheSizeInMB = 6, // default FALSE (or by reg) + DVD_EnablePortableBookmarks = 7, // default FALSE + DVD_EnableExtendedCopyProtectErrors = 8, // default FALSE + DVD_NotifyPositionChange = 9, // default FALSE + DVD_IncreaseOutputControl = 10, // default FALSE + DVD_EnableStreaming = 11, // default TRUE + DVD_EnableESOutput = 12, // default FALSE + DVD_EnableTitleLength = 13, // default FALSE, report title length in VideoAttributes + DVD_DisableStillThrottle = 14, // default FALSE, disable app throttling during still menus + DVD_EnableLoggingEvents = 15, // default FALSE + DVD_MaxReadBurstInKB = 16, + DVD_ReadBurstPeriodInMS = 17, + DVD_RestartDisc = 18, + DVD_EnableCC = 19, +} DVD_OPTION_FLAG; + +typedef enum { + DVD_Relative_Upper = 1, + DVD_Relative_Lower = 2, + DVD_Relative_Left = 3, + DVD_Relative_Right = 4 +} DVD_RELATIVE_BUTTON; + +// Parental Level Information +typedef enum tagDVD_PARENTAL_LEVEL +{ + DVD_PARENTAL_LEVEL_8 = 0x8000, + DVD_PARENTAL_LEVEL_7 = 0x4000, + DVD_PARENTAL_LEVEL_6 = 0x2000, + DVD_PARENTAL_LEVEL_5 = 0x1000, + DVD_PARENTAL_LEVEL_4 = 0x0800, + DVD_PARENTAL_LEVEL_3 = 0x0400, + DVD_PARENTAL_LEVEL_2 = 0x0200, + DVD_PARENTAL_LEVEL_1 = 0x0100 +} DVD_PARENTAL_LEVEL; + + +typedef enum tagDVD_AUDIO_LANG_EXT +{ + DVD_AUD_EXT_NotSpecified =0, + DVD_AUD_EXT_Captions =1, + DVD_AUD_EXT_VisuallyImpaired =2, + DVD_AUD_EXT_DirectorComments1 =3, + DVD_AUD_EXT_DirectorComments2 =4, +} DVD_AUDIO_LANG_EXT; + +typedef enum tagDVD_SUBPICTURE_LANG_EXT +{ + DVD_SP_EXT_NotSpecified =0, + DVD_SP_EXT_Caption_Normal =1, + DVD_SP_EXT_Caption_Big =2, + DVD_SP_EXT_Caption_Children =3, + DVD_SP_EXT_CC_Normal =5, + DVD_SP_EXT_CC_Big =6, + DVD_SP_EXT_CC_Children =7, + DVD_SP_EXT_Forced =9, + DVD_SP_EXT_DirectorComments_Normal =13, + DVD_SP_EXT_DirectorComments_Big =14, + DVD_SP_EXT_DirectorComments_Children =15, +} DVD_SUBPICTURE_LANG_EXT; + +typedef enum tagDVD_AUDIO_APPMODE +{ + DVD_AudioMode_None = 0, // no special mode + DVD_AudioMode_Karaoke = 1, + DVD_AudioMode_Surround = 2, + DVD_AudioMode_Other = 3, +} DVD_AUDIO_APPMODE; + +typedef enum tagDVD_AUDIO_FORMAT +{ + DVD_AudioFormat_AC3 = 0, + DVD_AudioFormat_MPEG1 = 1, + DVD_AudioFormat_MPEG1_DRC = 2, // MPEG1 with dynamic range control + DVD_AudioFormat_MPEG2 = 3, + DVD_AudioFormat_MPEG2_DRC = 4, // MPEG2 with dynamic range control + DVD_AudioFormat_LPCM = 5, + DVD_AudioFormat_DTS = 6, + DVD_AudioFormat_SDDS = 7, + DVD_AudioFormat_Other = 8 +} DVD_AUDIO_FORMAT; + +// flags for SelectKaraokeAudioPresentationMode +typedef enum tagDVD_KARAOKE_DOWNMIX +{ + DVD_Mix_0to0 = 0x0001, // unused - reserved for future use + DVD_Mix_1to0 = 0x0002, // unused - reserved for future use + DVD_Mix_2to0 = 0x0004, + DVD_Mix_3to0 = 0x0008, + DVD_Mix_4to0 = 0x0010, + DVD_Mix_Lto0 = 0x0020, // mix auxillary L to channel 0 (left speaker) + DVD_Mix_Rto0 = 0x0040, // mix auxillary R to channel 0 (left speaker) + + DVD_Mix_0to1 = 0x0100, // unused - reserved for future use + DVD_Mix_1to1 = 0x0200, // unused - reserved for future use + DVD_Mix_2to1 = 0x0400, + DVD_Mix_3to1 = 0x0800, + DVD_Mix_4to1 = 0x1000, + DVD_Mix_Lto1 = 0x2000, // mix auxillary L to channel 1 (right speaker) + DVD_Mix_Rto1 = 0x4000, // mix auxillary R to channel 1 (right speaker) +} DVD_KARAOKE_DOWNMIX; + + +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4820) // Disable C4820: padding after data member") +cpp_quote("#endif") +typedef struct tagDVD_AudioAttributes +{ + DVD_AUDIO_APPMODE AppMode; + BYTE AppModeData; + DVD_AUDIO_FORMAT AudioFormat; // Use GetKaraokeAttributes() + LCID Language; // 0 if no language is present + DVD_AUDIO_LANG_EXT LanguageExtension; // (captions, if for children etc) + BOOL fHasMultichannelInfo; // multichannel attributes are present (Use GetMultiChannelAudioAttributes()) + DWORD dwFrequency; // in hertz (48k, 96k) + BYTE bQuantization; // resolution (16, 20, 24 bits etc), 0 is unknown + BYTE bNumberOfChannels; // 5.1 AC3 has 6 channels + DWORD dwReserved[2]; +} DVD_AudioAttributes; +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(pop)") +cpp_quote("#endif") + +typedef struct tagDVD_MUA_MixingInfo +{ + // surround sound mixing information applied when: + // AppMode = DVD_AudioMode_Surround + // AudioFormat = DVD_AudioFormat_LPCM, + // fHasMultichannelInfo=1 modes are all on + // + BOOL fMixTo0; + BOOL fMixTo1; + + // + BOOL fMix0InPhase; + BOOL fMix1InPhase; + + DWORD dwSpeakerPosition; // see ksmedia.h: SPEAKER_FRONT_LEFT, SPEAKER_FRONT_RIGHT, etc +} DVD_MUA_MixingInfo; + +// The alpha coeff is used to mix to ACH0 and beta is used to mix to ACH1 +// +// In general: +// ACH0 = coeff[0].alpha * value[0] + coeff[1].alpha * value[1] + ... +// ACH1 = coeff[0].beta * value[0] + coeff[1].beta * value[1] + ... +typedef struct tagDVD_MUA_Coeff +{ + double log2_alpha; // actual coeff = 2^alpha + double log2_beta; // actual coeff = 2^beta +} DVD_MUA_Coeff; + +typedef struct tagDVD_MultichannelAudioAttributes +{ + // actual Data for each data stream + DVD_MUA_MixingInfo Info[8]; + DVD_MUA_Coeff Coeff[8]; +} DVD_MultichannelAudioAttributes; + +// bitwise OR of these flags descript the contents of each channel +typedef enum tagDVD_KARAOKE_CONTENTS +{ + DVD_Karaoke_GuideVocal1 = 0x0001, + DVD_Karaoke_GuideVocal2 = 0x0002, + DVD_Karaoke_GuideMelody1 = 0x0004, + DVD_Karaoke_GuideMelody2 = 0x0008, + DVD_Karaoke_GuideMelodyA = 0x0010, + DVD_Karaoke_GuideMelodyB = 0x0020, + DVD_Karaoke_SoundEffectA = 0x0040, + DVD_Karaoke_SoundEffectB = 0x0080 +} DVD_KARAOKE_CONTENTS; + +typedef enum tagDVD_KARAOKE_ASSIGNMENT +{ + DVD_Assignment_reserved0 = 0, + DVD_Assignment_reserved1 = 1, + DVD_Assignment_LR = 2, // left right + DVD_Assignment_LRM = 3, // left right middle + DVD_Assignment_LR1 = 4, // left right audio1 + DVD_Assignment_LRM1 = 5, // left right middle audio1 + DVD_Assignment_LR12 = 6, // left right audio1 audio2 + DVD_Assignment_LRM12 = 7 // left right middle audio1 audio2 +} DVD_KARAOKE_ASSIGNMENT; + +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4820) // Disable C4820: padding after data member") +cpp_quote("#endif") +typedef struct tagDVD_KaraokeAttributes +{ + BYTE bVersion; + BOOL fMasterOfCeremoniesInGuideVocal1; + BOOL fDuet; // false = solo + DVD_KARAOKE_ASSIGNMENT ChannelAssignment; + WORD wChannelContents[8]; // logical OR of DVD_KARAOKE_CONTENTS +} DVD_KaraokeAttributes; +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(pop)") +cpp_quote("#endif") + +typedef enum tagDVD_VIDEO_COMPRESSION +{ + DVD_VideoCompression_Other = 0, + DVD_VideoCompression_MPEG1 = 1, + DVD_VideoCompression_MPEG2 = 2, +} DVD_VIDEO_COMPRESSION; + +typedef struct tagDVD_VideoAttributes +{ + BOOL fPanscanPermitted; // if a 4x3 display, can be shown as PanScan + BOOL fLetterboxPermitted; // if a 4x3 display, can be shown as Letterbox + ULONG ulAspectX; // 4x3 or 16x9 + ULONG ulAspectY; + ULONG ulFrameRate; // 50hz or 60hz + ULONG ulFrameHeight; // 525 (60hz) or 625 (50hz) + DVD_VIDEO_COMPRESSION Compression;// MPEG1 or MPEG2 + + BOOL fLine21Field1InGOP; // true if there is user data in field 1 of GOP of video stream + BOOL fLine21Field2InGOP; // true if there is user data in field 1 of GOP of video stream + + ULONG ulSourceResolutionX; // X source resolution (352,704, or 720) + ULONG ulSourceResolutionY; // Y source resolution (240,480, 288 or 576) + + BOOL fIsSourceLetterboxed; // subpictures and highlights (e.g. subtitles or menu buttons) are only + // displayed in the active video area and cannot be displayed in the top/bottom 'black' bars + BOOL fIsFilmMode; // for 625/50hz systems, is film mode (true) or camera mode (false) +} DVD_VideoAttributes; + +typedef enum tagDVD_SUBPICTURE_TYPE +{ + DVD_SPType_NotSpecified = 0, + DVD_SPType_Language = 1, + DVD_SPType_Other = 2, +} DVD_SUBPICTURE_TYPE; + +typedef enum tagDVD_SUBPICTURE_CODING +{ + DVD_SPCoding_RunLength = 0, + DVD_SPCoding_Extended = 1, + DVD_SPCoding_Other = 2, +} DVD_SUBPICTURE_CODING; + +typedef struct tagDVD_SubpictureAttributes +{ + DVD_SUBPICTURE_TYPE Type; + DVD_SUBPICTURE_CODING CodingMode; + LCID Language; + DVD_SUBPICTURE_LANG_EXT LanguageExtension; +} DVD_SubpictureAttributes; + +typedef enum tagDVD_TITLE_APPMODE +{ + DVD_AppMode_Not_Specified = 0, // no special mode + DVD_AppMode_Karaoke = 1, + DVD_AppMode_Other = 3, +} DVD_TITLE_APPMODE; + +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4820) // Disable C4820: padding after data member") +cpp_quote("#endif") +typedef struct tagDVD_TitleMainAttributes +{ + // for Titles + union { + DVD_TITLE_APPMODE AppMode; + DVD_HMSF_TIMECODE TitleLength; + }; + + // Attributes about the 'main' video of the menu or title + DVD_VideoAttributes VideoAttributes; + + ULONG ulNumberOfAudioStreams; + DVD_AudioAttributes AudioAttributes[8]; + // present if the multichannel bit is set in the corresponding stream's audio attributes + DVD_MultichannelAudioAttributes MultichannelAudioAttributes[8]; + + ULONG ulNumberOfSubpictureStreams; + DVD_SubpictureAttributes SubpictureAttributes[32]; +} DVD_TitleAttributes; +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(pop)") +cpp_quote("#endif") + + +typedef struct tagDVD_MenuAttributes +{ + // for VMG only + BOOL fCompatibleRegion[8]; // indeces 0..7 correspond to regions 1..8 + + // Attributes about the main menu (VMGM or VTSM) + DVD_VideoAttributes VideoAttributes; + + BOOL fAudioPresent; + DVD_AudioAttributes AudioAttributes; + + BOOL fSubpicturePresent; + DVD_SubpictureAttributes SubpictureAttributes; +} DVD_MenuAttributes; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +//========================================================================== +//========================================================================== +// IDvdControl interface -- Basic DVD-Video playback control. +// This modeled after the app control of a player specified in Annex J +// of the DVD Video spec. IDvdInfo can be used to get information useful +// in using IDvdControl +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(A70EFE61-E2A3-11d0-A9BE-00AA0061BE93), +pointer_default(unique) +] + +interface IDvdControl : IUnknown { + import "unknwn.idl"; + + // TitlePlay + // Start playing the specified title number. + // Title numbers range between 1 and 99. + HRESULT TitlePlay + ( [in] ULONG ulTitle + ); + + // ChapterPlay + // Start playing at the specified chapter (or part-of-title) + // within the specified title. Chapters range from 1 to 999. + HRESULT ChapterPlay + ( [in] ULONG ulTitle, + [in] ULONG ulChapter + ); + + // TimePlay + // Start playing at the specified time within the specified title. + // NOTE: the actual start time will be the closest sync point before + // or equal to the specified frame number. + HRESULT TimePlay + ( [in] ULONG ulTitle, + [in] ULONG bcdTime // use DVD_TIMECODE. Framerate code is ignored. + ); + + // StopForResume + // Stop playback after saving resume information. DVD Navigator transfers to the DVD "Stop State" and + // (same as DVD_DOMAIN_Stop), but filter graph remains in DirectShow's Run state. + HRESULT StopForResume(); + + // GoUp + // Start playback of the program chain currently authored as the "GoUp_PGCN". + HRESULT GoUp(); + + // TimeSearch + // Start playing at the specified time within the current title. + // NOTE: the actual start time will be the closest sync point before + // or equal to the specified frame number. + HRESULT TimeSearch + ( [in] ULONG bcdTime // use DVD_TIMECODE. Framerate code is ignored. + ); + + // ChapterSearch + // Start playing at the specified chapter (or part-of-title) within + // the current title. + HRESULT ChapterSearch + ( [in] ULONG ulChapter + ); + + // PrevPGSearch + // Start playing at the beginning of the previous DVD "program". + // For One-Sequential_PGC_Titles (which includes most titles) a program + // is equivalent to a chapter, otherwise a program is part of a chapter. + HRESULT PrevPGSearch(); + + // TopPGSearch + // Start playing from the beginning of they current program. + HRESULT TopPGSearch(); + + // NextPGSearch + // Start playing from the beginning of the next program. + HRESULT NextPGSearch(); + + // ForwardScan + // Set forward play at the specified speed. + // dwSpeed == 1 is normal play + // dwSpeed < 1 is slow play + // dwSpeed > 1 is fast play + // For dwSpeed != 1, audio and subpicture is muted. + HRESULT ForwardScan + ( [in] double dwSpeed + ); + + // BackwardScan + // Set reverse play at the specified speed. + // dwSpeed == 1 is normal play speed in reverse + // dwSpeed < 1 is slow play in reverse + // dwSpeed > 1 is fast play in reverse + // For reverse play, audio and subpicture are always muted. + HRESULT BackwardScan + ( [in] double dwSpeed + ); + + // MenuCall + // Start playback of the Menu specified by an enum DVD_MENU_ID. + HRESULT MenuCall + ( [in] DVD_MENU_ID MenuID + ); + + // Resume + // Returns to title playback in DVD_DOMAIN_Title. This is typically + // done after MenuCall which puts the DVD Navigator in + // DVD_DOMAIN_VideoTitleSetMenu or DVD_DOMAIN_VideoManagerMenu. + HRESULT Resume(); + + // UpperButtonSelect + // Selects the button above the current button. + // "Selecting" a DVD button simply highlights the button but does + // not "Activate" the button. Selecting is the Windows equivalent + // to tabbing to a button but not pressing the space bar or enter key. + // Activating is the Windows equivalent of pressing the space bar or + // enter key after tabbing to a button. + HRESULT UpperButtonSelect(); + + // LowerButtonSelect + // Selects the button below the current button. + HRESULT LowerButtonSelect(); + + // LeftButtonSelect + // Selects the button to the left of the current button. + HRESULT LeftButtonSelect(); + + // RightButtonSelect + // Selects the button to the right of the current button. + HRESULT RightButtonSelect(); + + // ButtonActivate + // Activates current button. + HRESULT ButtonActivate(); + + // ButtonSelectAndActivate + // Selects and then activates the button specified by the user. + // ulButton is intended to be a number entered by a user corresponding + // to button numbers currently displayed on screen. + // Button numbers range from 1 to 36. + HRESULT ButtonSelectAndActivate + ( [in] ULONG ulButton + ); + + // StillOff + // Releases any current still if there are no available buttons. + // This includes VOBU stills, Cell stills, and PGC stills, whether the + // still is infinite. When buttons are available, stills are released by + // activating a button. Note this does not release a Pause. + HRESULT StillOff(); + + // PauseOn + // Freezes playback and any internal timers. This is similar to + // IMediaControl::Pause() + HRESULT PauseOn(); + + // PauseOff + // Releases a Pause. + HRESULT PauseOff(); + + // MenuLanguageSelect + // Selects the default language for menus. Languages are specified with + // Windows standard LCIDs. LCIDs can be created from ISO-639 codes with + // MAKELCID( MAKELANGID(wISO639LangID ,SUBLANG_DEFAULT ), SORT_DEFAULT ) + // MenuLanguageSelect may only called from the DVD Stop state (DVD_DOMAIN_Stop). + HRESULT MenuLanguageSelect + ( [in] LCID Language + ); + + // AudioStreamChange + // Changes the current audio stream. + HRESULT AudioStreamChange + ( [in] ULONG ulAudio + ); + + // SubpictureStreamChange + // Changes the current subpicture stream number to nSubpic, and toggles + // its display. + HRESULT SubpictureStreamChange + ( [in] ULONG ulSubPicture, + [in] BOOL bDisplay + ); + + // AngleChange + // Changes the current angle number. + HRESULT AngleChange + ( [in] ULONG ulAngle + ); + + // ParentalLevelSelect + // Selects the current player parental level between 1 and 8. The + // defined parental levels are listed below : + // + // Level Rating + // ----- ------ + // + // 1 G + // 3 PG + // 4 PG13 + // 6 R + // 7 NC17 + // Higher levels can play lower level content; lower levels cannot play + // higher level content. The DVD Navigator provides no restriction on + // setting the parental level. DVD player application may enforce + // restriction on parental level setting, such as password protection for + // raising the current parental level. Parental Management is disabled in + // the Navigator by default. + // + // Note : To disable parental management, pass 0xffffffff for ulParentalLevel + // If parental management is disabled, then the player will play the + // first PGC in a parental block regardless of parental IDs. + // + HRESULT ParentalLevelSelect + ( [in] ULONG ulParentalLevel + ); + + // ParentalCountrySelect + // Sets the country/region in which to interpret the the Parental Level. + // The country/region specified using the Alpha-2 code of the ISO-3166 standard, + // with the addition of 'ZZ' + HRESULT ParentalCountrySelect + ( [in] WORD wCountry + ); + + // KaraokeAudioPresentationModeChange + // Sets the Karaoke audio mode. + // NOTE: This and all other Karoke support is currently not implemented. + HRESULT KaraokeAudioPresentationModeChange + ( [in] ULONG ulMode + ); + + // VideoModePreferrence + // The user can specify the preferred display mode that should + // be used to display content. The parameter is a ULONG that has + // one of the values defined in DVD_PREFERRED_DISPLAY_MODE + HRESULT VideoModePreferrence + ( [in] ULONG ulPreferredDisplayMode + ); + + // SetRoot + // Sets the root directory containing the DVD-Video volume. + // Can only be called from the DVD Stop State (DVD_DOMAIN_Stop). + // If the root directory is not successfully set before + // IMediaControl::Play is called, the first drive starting from c: + // containing a VIDEO_TS directory in the top level directory + // will be used as the root. + HRESULT SetRoot + ( [in] LPCWSTR pszPath + ); + + // MouseActivate + // This is typically called in response to a mouse click. + // The specified point within the display window is to see if it is + // within a current DVD button's highlight rect. If it is, that + // button is first selected, then activated. + // NOTE: DVD Buttons do not all necessarily have highlight rects, + // button rects can overlap, and button rects do not always + // correspond to the visual representation of DVD buttons. + HRESULT MouseActivate // typically called after a mouse click + ( [in] POINT point + ); + + // MouseSelect + // This is typically called in response to a mouse move within the + // display window. + // The specified point within the display window is to see if it is + // within a current DVD button's highlight rect. If it is, that + // button is selected. + // NOTE: DVD Buttons do not all necessarily have highlight rects, + // button rects can overlap, and button rects do not always + // correspond to the visual representation of DVD buttons. + HRESULT MouseSelect // typically called after a mouse move + ( [in] POINT point + ); + + // ChapterPlayAutoStop + // Start playing at the specified chapter within the specified title + // and play the number of chapters specified by the third parameter. + // Chapters range from 1 to 999. + HRESULT ChapterPlayAutoStop + ( [in] ULONG ulTitle, // title number + [in] ULONG ulChapter, // chapter number to start playback + [in] ULONG ulChaptersToPlay // number of chapters to play from the start chapter + ); +} + + + +//========================================================================== +//========================================================================== +// IDvdInfo interface -- allow an app to query for attributes of available +// DVD titles and DVD player status. Also allow for control of a DVD +// player beyond Annex J in the DVD spec. +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(A70EFE60-E2A3-11d0-A9BE-00AA0061BE93), +pointer_default(unique) +] + +interface IDvdInfo : IUnknown { + import "unknwn.idl"; + + // GetCurrentDomain + // Returns the current DVD Domain of the DVD player. + HRESULT GetCurrentDomain + ( [out] DVD_DOMAIN *pDomain + ); + + // GetCurrentLocation + // Returns information sufficient to restart playback of a video + // from the current playback location in titles that don't explicitly + // disable seeking to the current location. + HRESULT GetCurrentLocation + ( [out AM_ANNOTATION("_Out_")] DVD_PLAYBACK_LOCATION *pLocation + ); + + // GetTotalTitleTime + // Return the total playback time for the current title. Only works + // for One_Sequential_PGC_Titles. + HRESULT GetTotalTitleTime + ( [out AM_ANNOTATION("_Out_")] ULONG * pulTotalTime // use DVD_TIMECODE. + ); + + // GetCurrentButton + // Indicates the number of currently available buttons and the current + // selected button number. If buttons are not present it returns 0 for + // both pulButtonsAvailable and pulCurrentButton + HRESULT GetCurrentButton + ( [out AM_ANNOTATION("_Out_")] ULONG * pulButtonsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentButton + ); + + // GetCurrentAngle + // Indicates the number of currently available angles and the current + // selected angle number. If *pnAnglesAvailable==1, then the current + // video is not multiangle. + HRESULT GetCurrentAngle + ( [out AM_ANNOTATION("_Out_")] ULONG * pulAnglesAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentAngle + ); + + // GetCurrentAudio + // Indicates the number of currently available audio streams and + // the current selected audio stream number. + // This only work when in DVD_DOMAIN_Title. + HRESULT GetCurrentAudio + ( [out AM_ANNOTATION("_Out_")] ULONG * pulStreamsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentStream + ); + + // GetCurrentSubpicture + // Indicates the number of currently available subpicture streams, + // the current selected subpicture stream number, and if the + // subpicture display is currently disabled. Subpicture streams + // authored as Forcedly Activated stream will be displayed even if + // subpicture display has been disabled by the app with + // IDVDControl::SubpictureChangeStream. + // This only work when in DVD_DOMAIN_Title. + HRESULT GetCurrentSubpicture + ( [out AM_ANNOTATION("_Out_")] ULONG * pulStreamsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentStream, + [out AM_ANNOTATION("_Out_")] BOOL * pIsDisabled + ); + + // GetCurrentUOPS + // Indicates which IDVDControl methods are currently valid. DVD titles + // can enable or disable individual user operations at almost any point + // during playback. + HRESULT GetCurrentUOPS + ( [out AM_ANNOTATION("_Out_")] VALID_UOP_SOMTHING_OR_OTHER * pUOP + ); + + // GetAllSPRMs + // Returns the current contents of all System Parameter Registers. + // See DVD-Video spec for use of individual registers. + HRESULT GetAllSPRMs + ( [out AM_ANNOTATION("_Out_")] SPRMARRAY * pRegisterArray + ); + + // GetAllGPRMs + // Returns the current contents of all General Parameter Registers. + // Use of GPRMs is title specific. + HRESULT GetAllGPRMs + ( [out AM_ANNOTATION("_Out_")] GPRMARRAY * pRegisterArray + ); + + // GetAudioLanguage + // Returns the language of the specified stream within the current + // title. Does not return languages for menus. Sets *pLanguage=0 if + // if the stream does not include language. + // Use GetLocaleInfo(*pLanguage, LOCALE_SENGLANGUAGE, pszString, cbSize) + // to create a human readable string name from the result LCID. + HRESULT GetAudioLanguage + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] LCID * pLanguage + ); + + // GetSubpictureLanguage + // Returns the language of the specified stream within the current + // title. Does not return languages for menus. Sets *pLanguage=0 if + // if the stream does not include language. + // Use GetLocaleInfo(*pLanguage, LOCALE_SENGLANGUAGE, pszString, cbSize) + // to create a human readable string name from the result LCID. + HRESULT GetSubpictureLanguage + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] LCID * pLanguage + ); + + // GetTitleAttributes + // Returns attributes of all video, audio, and subpicture + // streams for the specified title including menus. + // If nTitle == 0xffffffff, attributes for the current title are returned. + HRESULT GetTitleAttributes + ( [in] ULONG ulTitle, // requested title number + [out AM_ANNOTATION("_Out_")] DVD_ATR * pATR + ); + + // GetVMGAttributes + // Returns attributes of all video, audio, and subpicture + // streams for Video Manager Menus. Some menus, such as the DVD_MENU_Title + // are in a separate group of streams called the VMG (Video Manager) and + // are not associated with any particular title number. + HRESULT GetVMGAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_ATR * pATR + ); + + // GetCurrentVideoAttributes + // Returns the video attributes for the current title or menu. + HRESULT GetCurrentVideoAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_VideoATR *pATR + ); + + // GetCurrentAudioAttributes + // Returns the video attributes for the stream in the current + // title or menu. + HRESULT GetCurrentAudioAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_AudioATR *pATR + ); + + // GetCurrentSubpictureAttributes + // Returns the video attributes for the stream in the current + // title or menu. + HRESULT GetCurrentSubpictureAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_SubpictureATR *pATR + ); + + + // GetCurrentVolumeInfo + // Returns current DVD volume info. + HRESULT GetCurrentVolumeInfo + ( [out AM_ANNOTATION("_Out_")] ULONG *pulNumOfVol, // number of volumes (disc sides?) in a volume set + [out AM_ANNOTATION("_Out_")] ULONG *pulThisVolNum, // volume number for this root directory + [out AM_ANNOTATION("_Out_")] DVD_DISC_SIDE *pSide, // current disc side + [out AM_ANNOTATION("_Out_")] ULONG *pulNumOfTitles // number of titles available in this volume + ); + + + // GetDVDTextInfo + // Returns the TXTDT_MG structure, which can contain text descriptions for title + // name, volume name, producer name, vocalist name, etc. in various languages. + // refer to Section 4.1.6 and Annex A of the DVD-Video spec. + // If the buffer size passed in is insufficient (for example if cbBufSize==0), + // then E_OUTOFMEMORY is returned, and *pcbActualSize is set to the required size. + HRESULT GetDVDTextInfo + ( [out, size_is(ulBufSize) AM_ANNOTATION("_Out_writes_bytes_to_(ulBufSize, *pulActualSize)")] BYTE *pTextManager, + [in] ULONG ulBufSize, // buffer size passed in + [out AM_ANNOTATION("_Out_")] ULONG *pulActualSize // amount of actual data return + ); + + // GetPlayerParentalLevel + // Returns the current parental level and the current country/region code + // that has been set in the system registers in player. + // See Table 3.3.4-1 of the DVD-Video spec for the defined parental levels. + // Valid Parental Levels = 1..8 if parental management is enabled + // 0xffffffff if parental management is disabled + // See ISO3166 : Alpha-2 Code for the country/region codes. + HRESULT GetPlayerParentalLevel + ( [out AM_ANNOTATION("_Out_")] ULONG *pulParentalLevel, // current parental level + [out AM_ANNOTATION("_Out_")] ULONG *pulCountryCode // current country/region code + ); + + // GetNumberOfChapters + // Returns the number of chapters that are defined for a + // given title. + HRESULT GetNumberOfChapters + ( [in] ULONG ulTitle, // Title for which number of chapters is requested + [out AM_ANNOTATION("_Out_")] ULONG *pulNumberOfChapters // Number of chapters for the specified title + ); + + // GetTitleParentalLevels + // Returns the parental levels that are defined for a + // particular title. pParentalLevels will be combination + // of DVD_PARENTAL_LEVEL_8, DVD_PARENTAL_LEVEL_6, or + // DVD_PARENTAL_LEVEL_1 "OR"ed together + HRESULT GetTitleParentalLevels + ( [in] ULONG ulTitle, // Title for which parental levels are requested + [out AM_ANNOTATION("_Out_")] ULONG *pulParentalLevels // Parental levels defined for the title "OR"ed together + ); + + // GetRoot + // Returns the root directory that is set in the player. If a valid root + // has been found, it returns the root string. Otherwise, it returns 0 for + // pcbActualSize indicating that a valid root directory has not been found + // or initialized. + // + // !!! used to return LPTSTR. interface was changed to return + // LPSTR (ansi) for compatibility. COM APIs should pass with + // UNICODE strings only. + // + HRESULT GetRoot + ( [out, size_is(ulBufSize) AM_ANNOTATION("_Out_writes_to_(ulBufSize, *pulActualSize)")] LPSTR pRoot, // pointer to buffer to get root string + [in] ULONG ulBufSize, // size of buffer passed in + [out AM_ANNOTATION("_Out_")] ULONG *pulActualSize // size of actual data returned + ); +} + + +//========================================================================== +//========================================================================== +// IDvdCmd interface -- the IDVDControl2 command sequencing object. +// +// For the IDVDControl2 interface, the application can track the status of +// commands that have been issued to the navigator. Each command is identified +// by an IDvdCmd object. The IDvdCmd object stores the results of the command +// at both the start (when the command has begun processing) and the end after +// it has completed. It also allows the app to synchronize with the processing +// of the command. +// +// The command object also allows the app to uniquely identify and correlate +// completion events (if it prefers to process events in a message loop instead +// of creating another process). +// +// Allows the app to track the status of an issued command to the nav. +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(5a4a97e4-94ee-4a55-9751-74b5643aa27d), +pointer_default(unique) +] + +interface IDvdCmd : IUnknown { + import "unknwn.idl"; + + // + // WaitForStart + // + // Blocks the application until the command has begun. + // + HRESULT WaitForStart(); + + // + // WaitForEnd + // + // Blocks until the command has completed or has been cancelled. + HRESULT WaitForEnd(); +} + +//========================================================================== +//========================================================================== +// IDvdState interface -- the State state object. +// +// Whenever the application wishes to save or restore a location on the disc, +// it needs to store the DVD state into an object. +// The State object supports the IPersistStream +// +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(86303d6d-1c4a-4087-ab42-f711167048ef), +pointer_default(unique) +] + +interface IDvdState : IUnknown +{ + // + // GetDiscID + // + // Returns the disc ID from which the bookmark was made. + // + HRESULT GetDiscID + ( [out AM_ANNOTATION("_Out_")] ULONGLONG* pullUniqueID ); // 64-bit unique id for the disc + + // + // GetParentalLevel + // + // Returns the state's parental level + // + HRESULT GetParentalLevel + ( [out AM_ANNOTATION("_Out_")] ULONG* pulParentalLevel ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +//========================================================================== +//========================================================================== +// IDvdControl2 interface -- Basic DVD-Video playback control. +// This is modeled after the app control of a player specified in Annex J +// of the DVD Video spec. IDvdInfo2 can be used to get information useful +// in using IDvdControl2 +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(33BC7430-EEC0-11D2-8201-00A0C9D74842), +pointer_default(unique) +] + +interface IDvdControl2 : IUnknown { + import "unknwn.idl"; + + // PlayTitle + // + // Start playing from the beginning of the specified title number. + // Annex J: Title_Play + // Title numbers range between 1 and 99. + HRESULT PlayTitle + ( [in] ULONG ulTitle, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // PlayChapterInTitle + // + // Start playing from the beginning of the given chapter (or part-of-title) number + // within the specified title number. + // Annex J: PTT_Play + // Title numbers range between 1 and 99. + // Chapters range from 1 to 999. + HRESULT PlayChapterInTitle + ( [in] ULONG ulTitle, + [in] ULONG ulChapter, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // PlayAtTimeInTitle + // + // Start playing from the specified time within the specified title number. + // NOTE: the actual start time will be the closest sync point before + // or equal to the specified frame number. + // Annex J: Time_Play + // Title numbers range between 1 and 99. + HRESULT PlayAtTimeInTitle + ( [in] ULONG ulTitle, + [in] DVD_HMSF_TIMECODE* pStartTime, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // Stop + // Stop playback by transferring DVD Navigator to the DVD "Stop State" (same + // as DVD_DOMAIN_Stop), but filter graph remains in DirectShow's Run state. + // Annex J: Stop + HRESULT Stop(); + + // ReturnFromSubmenu + // + // Stop playback of current program chain (PGC) and start playing the PGC + // specified by "GoUp_PGCN".in the PGCI. + // If the GoUp_PGCN value is 0xFFFF the Resume() operation is carried out. + // Annex J: GoUp + HRESULT ReturnFromSubmenu( + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd ); + + // PlayAtTime + // Start playing at the specified time within the current title. + // NOTE: the actual start time will be the closest sync point before + // or equal to the specified frame number. + // Annex J: Time_Search + // The time is in BCD format, passed in as a ULONG. + HRESULT PlayAtTime + ( [in] DVD_HMSF_TIMECODE* pTime, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // PlayChapter + // Start playing at the specified chapter (or part-of-title) within + // the current title. + // Annex J: PTT_Search + // Chapters range from 1 to 999. + HRESULT PlayChapter + ( [in] ULONG ulChapter, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // PlayPrevChapter + // Start playing at the beginning of the previous DVD "program". + // For One-Sequential_PGC_Titles (which includes most titles) a program + // is equivalent to a chapter, otherwise a program is part of a chapter. + // Annex J: PrevPG_Search + HRESULT PlayPrevChapter( + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd ); + + // ReplayChapter + // Start playing from the beginning of they current program. + // Annex J: TopPG_Search + HRESULT ReplayChapter( + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd ); + + // PlayNextChapter + // Start playing from the beginning of the next program. + // Annex J: NextPG_Search + HRESULT PlayNextChapter( + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd ); + + // PlayForwards + // Set forward play at the specified speed. + // Annex J: Forward_Scan + // dSpeed == 1 is normal play + // dSpeed < 1 is slow play + // dSpeed > 1 is fast play + // For dSpeed != 1, audio and subpicture is muted. + HRESULT PlayForwards + ( [in] double dSpeed, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // PlayBackwards + // Set reverse play at the specified speed. + // Annex J: Backward_Scan + // dSpeed == 1 is normal play speed in reverse + // dSpeed < 1 is slow play in reverse + // dSpeed > 1 is fast play in reverse + // For reverse play, audio and subpicture are always muted. + HRESULT PlayBackwards + ( [in] double dSpeed, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // ShowMenu + // Start playback of the Menu specified by an enum DVD_MENU_ID. + // Annex J: Menu_Call + HRESULT ShowMenu + ( [in] DVD_MENU_ID MenuID, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // Resume + // Returns to title playback in DVD_DOMAIN_Title. This is typically + // done after MenuCall which puts the DVD Navigator in + // DVD_DOMAIN_VideoTitleSetMenu or DVD_DOMAIN_VideoManagerMenu. + // Annex J: Resume + HRESULT Resume( + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd ); + + // SelectRelativeButton + // Moves the selection highlight above, below, to the left of, or to the right of the + // currently selected. + // "Selecting" a DVD button simply highlights the button but does + // not "Activate" the button. Selecting is the Windows equivalent + // to tabbing to a button but not pressing the space bar or enter key. + // Activating is the Windows equivalent of pressing the space bar or + // enter key after tabbing to a button. + // Annex J: Upper_button_Select, Lower_button_Select, Left_button_Select, Right_button_Select + HRESULT SelectRelativeButton( DVD_RELATIVE_BUTTON buttonDir ); + + // ActivateButton + // Activates current button. + // Annex J: Button_Activate + HRESULT ActivateButton(); + + // SelectButton + // Selects a specific button (with the index from 1 to 36). + // ulButton is intended to be a number entered by a user corresponding + // to button numbers currently displayed on screen. + // Button numbers range from 1 to 36. + HRESULT SelectButton + ( [in] ULONG ulButton + ); + + // SelectAndActivateButton + // Selects and then activates the button specified by the user. + // ulButton is intended to be a number entered by a user corresponding + // to button numbers currently displayed on screen. + // Annex J: Button_Select_And_Activate + // Button numbers range from 1 to 36. + HRESULT SelectAndActivateButton + ( [in] ULONG ulButton + ); + + // StillOff + // Releases any current still if there are no available buttons. + // This includes VOBU stills, Cell stills, and PGC stills, whether the + // still is infinite. When buttons are available, stills are released by + // activating a button. Note this does not release a Pause. + // Annex J: Still_Off + HRESULT StillOff(); + + // Pause + // Freezes / unfreezes playback and any internal timers. This is similar to + // IMediaControl::Pause(), but not the same in effect as IMediaControl::Pause + // puts the filter (all filters, if done to the graph) in paused state. + // Annex J: Pause_On and Pause_Off + // bState is TRUE or FALSE to indicate whether to do Puase_on/Pause_Off according + // to Annex J terminology. + HRESULT Pause + ( [in] BOOL bState + ); + + // SelectAudioStream + // Changes the current audio stream to ulAudio. + // Annex J: Audio_Stream_Change + // Audio stream number ranges between 0 and 7 or DEFAULT_AUDIO_STREAM (15 - default based on default language & language extension) + HRESULT SelectAudioStream + ( [in] ULONG ulAudio, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + + ); + + // SelectSubpictureStream + // Changes the current subpicture stream number to ulSubPicture + // Annex J: Sub-picture_Stream_Change (first param) + // Subpicture stream number should be between 0 and 31 or 63. + HRESULT SelectSubpictureStream + ( [in] ULONG ulSubPicture, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + + ); + + // SetSubpictureState + // Turns on/off current subpicture stream display. + // Annex J: Sub-picture_Stream_Change (second param) + // Subpicture state is On or Off (TRUE or FALSE) + HRESULT SetSubpictureState + ( [in] BOOL bState, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // SelectAngle + // Changes the current angle number. + // Annex J: Angle_Change + // Angle number is between 1 and 9. + HRESULT SelectAngle + ( [in] ULONG ulAngle, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // SelectParentalLevel + // Selects the current player parental level. + // Annex J: Parental_Level_Select + // Parental level ranges between 1 and 8. + // The defined parental levels are listed below : + // + // Level Rating + // ----- ------ + // 1 G + // 3 PG + // 4 PG13 + // 6 R + // 7 NC17 + // Higher levels can play lower level content; lower levels cannot play + // higher level content. The DVD Navigator provides no restriction on + // setting the parental level. DVD player application may enforce + // restriction on parental level setting, such as password protection for + // raising the current parental level. Parental Management is disabled in + // the Navigator by default. + // + // Note : To disable parental management, pass 0xffffffff for ulParentalLevel + // If parental management is disabled, then the player will play the + // first PGC in a parental block regardless of parental IDs. + // + HRESULT SelectParentalLevel + ( [in] ULONG ulParentalLevel + ); + + // SelectParentalCountry + // Sets the country/region in which to interpret the Parental Level. + // Annex J: Parental_Country_Select + // The country/region specified using the Alpha-2 code of the ISO-3166 standard, + HRESULT SelectParentalCountry + ( [in] BYTE bCountry[2] + ); + + // SelectKaraokeAudioPresentationMode + // Sets the Karaoke audio mode. + // Annex J: Karaoke_Audio_Presentation_Mode_Change + // NOTE: This and all other Karoke support is currently not implemented. + // Mode represents the audio mixing mode for Karaoke (same info as SPRM11). + // Use a bitwise OR of the bits in DVD_KARAOKE_DOWNMIX + HRESULT SelectKaraokeAudioPresentationMode + ( [in] ULONG ulMode + ); + + // SelectVideoModePreference + // The user can specify the (initial) preferred display mode (aspect ratio) + // (wide / letterbox / pan-scan) that should be used to display content + // (16 : 9). + // Annex J: Video_Presentation_Mode_Change + // The parameter is a ULONG that has one of the values defined in + // DVD_PREFERRED_DISPLAY_MODE + HRESULT SelectVideoModePreference + ( [in] ULONG ulPreferredDisplayMode + ); + + // SetDVDDirectory + // Sets the root directory containing the DVD-Video volume. + // Can only be called from the DVD Stop State (DVD_DOMAIN_Stop). + // If the root directory is not successfully set before + // IMediaControl::Play is called, the first drive starting from c: + // containing a VIDEO_TS directory in the top level directory + // will be used as the root. + HRESULT SetDVDDirectory + ( [in] LPCWSTR pszwPath + ); + + // ActivateAtPosition + // This is typically called in response to a mouse click. + // The specified point within the display window is to see if it is + // within a current DVD button's highlight rect. If it is, that + // button is first selected, then activated. + // NOTE: DVD Buttons do not all necessarily have highlight rects, + // button rects can overlap, and button rects do not always + // correspond to the visual representation of DVD buttons. + HRESULT ActivateAtPosition // typically called after a mouse click + ( [in] POINT point + ); + + // SelectAtPosition + // This is typically called in response to a mouse move within the + // display window. + // The specified point within the display window is to see if it is + // within a current DVD button's highlight rect. If it is, that + // button is selected. + // NOTE: DVD Buttons do not all necessarily have highlight rects, + // button rects can overlap, and button rects do not always + // correspond to the visual representation of DVD buttons. + HRESULT SelectAtPosition // typically called after a mouse move + ( [in] POINT point + ); + + // PlayChaptersAutoStop + // Start playing at the specified chapter within the specified title + // and play the number of chapters specified by the third parameter. + // Then the playback stops by sending an event EC_DVD_CHAPTER_AUTOSTOP. + // Title ranges from 1 to 99. + // Chapter (and number of chapters to play) ranges from 1 to 999. + HRESULT PlayChaptersAutoStop + ( [in] ULONG ulTitle, // title number + [in] ULONG ulChapter, // chapter number to start playback + [in] ULONG ulChaptersToPlay, // number of chapters to play from the start chapter + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // AcceptParentalLevelChange + // + // Application's way of informing the Navigator that the required parental + // level change indicated through a previous event was accepted or rejected + // by the app (and unblock the Navigator). + // + // FALSE - reject the disc's request to change the current parental level. + // TRUE - change the parental level as required by the disc. + HRESULT AcceptParentalLevelChange + ( [in] BOOL bAccept + ); + + // SetOption(flag, true/false ) + // Flags: + // + // DVD_ResetOnStop + // Disable reset of the Navigator's internal state on the + // subsequent IMediaControl::Stop() call(s). + // + // FALSE - Navigator does not reset its state on the subsequent Stop calls + // (play from the current location on next Run call). + // TRUE - (default) Navigator resets its state on the subsequent Stop call + // (play from the first play PGC on the Run call after the Stop). + // + // DVD_NotifyParentalLevelChange + // + // Allows the application to indicate to the Navigator that it wants to control + // parent level change (e.g., through a dialog box) and indicate the acceptance + // or rejection of the new parental level to the Navigator through + // AcceptParentalLevelChange(). + // + // FALSE - disable (default). Always reject request by the disc to change parental level. + // TRUE - enable. Navigator will send the app a 'EC_DVD_PARENTAL_LEVEL_CHANGE' event + // and block until AcceptParentalLevelChange() is called by the app. + // + // DVD_HMSF_TimeCodeEvents + // + // Lets the application specify to the Navigator if it wants to get the new time + // event EC_DVD_CURRENT_HMSF_TIME with the HMSF format rather than the older + // EC_DVD_CURRENT_TIME events. + // + // FALSE - disable (default). Older EC_DVD_CURRENT_TIME events are returned. + // TRUE - enable. Navigator will send the app EC_DVD_CURRENT_HMSF_TIME events. + + HRESULT SetOption + ( [in] DVD_OPTION_FLAG flag, + [in] BOOL fState + ); + + // SetState + // + // The navigator will use the location information in the given state object to restore + // the navigator's position to a specific location on the disc. + // A valid state object is returned by either calling GetState(), or by using + // "CoCreateInstance( CLSID_DVDState, NULL, CLSCTX_INPROC_SERVER, IID_IDvdState, (void **) ppState )" + // to create a state object, followed by pState->IPersist::Load() to read it from memory or disk. + // + HRESULT SetState + ( [in] IDvdState* pState, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + + ); + + // PlayPeriodInTitleAutoStop + // + // Start playing from the specified time within the specified title number until the specified end time. + // NOTE: the actual start and end times will be the closest sync points before + // or equal to the specified frame number. + // Annex J: Time_Play for a limited range + // Title numbers range between 1 and 99. + HRESULT PlayPeriodInTitleAutoStop + ( [in] ULONG ulTitle, + [in] DVD_HMSF_TIMECODE* pStartTime, + [in] DVD_HMSF_TIMECODE* pEndTime, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // SetGPRM + // Sets the current contents of a DVD General Parameter Register. + // Use of GPRMs is title specific. + + HRESULT SetGPRM + ( [in] ULONG ulIndex, + [in] WORD wValue, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // SelectDefaultMenuLanguage + // Selects the default language for menus. + // Languages are specified with Windows standard LCIDs. LCIDs can be created + // from ISO-639 codes with + // MAKELCID( MAKELANGID(wISO639LangID ,SUBLANG_DEFAULT ), SORT_DEFAULT ). + // SelectMenuLanguage may only called from the DVD Stop state (DVD_DOMAIN_Stop). + // Annex J: Menu_Language_Select + // + // NOT TRUE ANYMORE: + // NOTE: MAKELANGID seems to have a bug so 'jp' may have to be used + // instead of 'ja' for the ISO639 code for Japanese. + HRESULT SelectDefaultMenuLanguage + ( [in] LCID Language + ); + + // SelectDefaultAudioLanguage + // Selects the default audio language. + // Languages are specified with Windows standard LCIDs. + HRESULT SelectDefaultAudioLanguage + ( [in] LCID Language, + [in] DVD_AUDIO_LANG_EXT audioExtension + ); + + // SelectDefaultSubpictureLanguage + // Selects the default subpicture language. + // Languages are specified with Windows standard LCIDs. + HRESULT SelectDefaultSubpictureLanguage + ( [in] LCID Language, + [in] DVD_SUBPICTURE_LANG_EXT subpictureExtension + ); +} + + +//========================================================================== +//========================================================================== +// IDvdInfo2 interface -- allows an app to query for attributes of available +// DVD titles and DVD player status. Also allows for control of a DVD +// player beyond Annex J in the DVD spec. +//========================================================================== +//========================================================================== + +enum DVD_TextStringType { + // disc structure (0x00..0x0f) + DVD_Struct_Volume = 0x01, + DVD_Struct_Title = 0x02, + DVD_Struct_ParentalID = 0x03, + DVD_Struct_PartOfTitle = 0x04, + DVD_Struct_Cell = 0x05, + // stream (0x10..0x1f) + DVD_Stream_Audio = 0x10, + DVD_Stream_Subpicture = 0x11, + DVD_Stream_Angle = 0x12, + // channel in stream (0x20..0x2f) + DVD_Channel_Audio = 0x20, + + // Application information + // General (0x30..0x37) + DVD_General_Name = 0x30, + DVD_General_Comments = 0x31, + + // Title (0x38..0x3f) + DVD_Title_Series = 0x38, + DVD_Title_Movie = 0x39, + DVD_Title_Video = 0x3a, + DVD_Title_Album = 0x3b, + DVD_Title_Song = 0x3c, + DVD_Title_Other = 0x3f, + + // Title (sub) (0x40..0x47) + DVD_Title_Sub_Series = 0x40, + DVD_Title_Sub_Movie = 0x41, + DVD_Title_Sub_Video = 0x42, + DVD_Title_Sub_Album = 0x43, + DVD_Title_Sub_Song = 0x44, + DVD_Title_Sub_Other = 0x47, + + // Title (original) (0x48..0x4f) + DVD_Title_Orig_Series = 0x48, + DVD_Title_Orig_Movie = 0x49, + DVD_Title_Orig_Video = 0x4a, + DVD_Title_Orig_Album = 0x4b, + DVD_Title_Orig_Song = 0x4c, + DVD_Title_Orig_Other = 0x4f, + + // Other info (0x50..0x57) + DVD_Other_Scene = 0x50, + DVD_Other_Cut = 0x51, + DVD_Other_Take = 0x52, + + // Language 0x58..0x5b + // Work 0x5c..0x6b + // Character 0x6c..0x8f + // Data 0x90..0x93 + // Karaoke 0x94..0x9b + // Category 0x9c..0x9f + // Lyrics 0xa0..0xa3 + // Document 0xa4..0xa7 + // Others 0xa8..0xab + // Reserved 0xac..0xaf + // Admin 0xb0..0xb7 + // more admin 0xb8..0xc0 + // Reserved 0xd0..0xdf + // vendor 0xe0..0xef + // extension 0xf0..0xf7 + // reserved 0xf8..0xff +}; + +enum DVD_TextCharSet { + DVD_CharSet_Unicode = 0, + DVD_CharSet_ISO646 = 1, + DVD_CharSet_JIS_Roman_Kanji = 2, + DVD_CharSet_ISO8859_1 = 3, + DVD_CharSet_ShiftJIS_Kanji_Roman_Katakana = 4 +}; + +cpp_quote ("#define DVD_TITLE_MENU 0x000") +cpp_quote ("#define DVD_STREAM_DATA_CURRENT 0x800") +cpp_quote ("#define DVD_STREAM_DATA_VMGM 0x400") +cpp_quote ("#define DVD_STREAM_DATA_VTSM 0x401") +cpp_quote ("#define DVD_DEFAULT_AUDIO_STREAM 0x0f") + +// DVD Decoder Caps data +typedef struct tagDVD_DECODER_CAPS +{ + DWORD dwSize ; // size of this struct + DWORD dwAudioCaps ; // bits indicating audio support (AC3, DTS, SDDS, LPCM etc.) of decoder + double dFwdMaxRateVideo ; // max data rate for video going forward + double dFwdMaxRateAudio ; // ... .. .. ... audio ... ... + double dFwdMaxRateSP ; // ... .. .. ... SP ... ... + double dBwdMaxRateVideo ; // if smooth reverse is not available, this will be set to 0 + double dBwdMaxRateAudio ; // -- ditto -- + double dBwdMaxRateSP ; // -- ditto -- + DWORD dwRes1 ; // reserved for future expansion + DWORD dwRes2 ; // -- ditto -- + DWORD dwRes3 ; // -- ditto -- + DWORD dwRes4 ; // -- ditto -- +} DVD_DECODER_CAPS ; + +// Bits for decoder's audio format support +cpp_quote ("#define DVD_AUDIO_CAPS_AC3 0x00000001") +cpp_quote ("#define DVD_AUDIO_CAPS_MPEG2 0x00000002") +cpp_quote ("#define DVD_AUDIO_CAPS_LPCM 0x00000004") +cpp_quote ("#define DVD_AUDIO_CAPS_DTS 0x00000008") +cpp_quote ("#define DVD_AUDIO_CAPS_SDDS 0x00000010") + + +[ +local, +object, +uuid(34151510-EEC0-11D2-8201-00A0C9D74842), +pointer_default(unique) +] + +interface IDvdInfo2 : IUnknown { + import "unknwn.idl"; + + // GetCurrentDomain + // Returns the current DVD Domain of the DVD player. + HRESULT GetCurrentDomain + ( [out AM_ANNOTATION("_Out_")] DVD_DOMAIN *pDomain + ); + + // GetCurrentLocation + // Returns information sufficient to restart playback of a video + // from the current playback location in titles that don't explicitly + // disable seeking to the current location. + HRESULT GetCurrentLocation + ( [out AM_ANNOTATION("_Out_")] DVD_PLAYBACK_LOCATION2 *pLocation + ); + + // GetTotalTitleTime + // Returns the total playback time for the current title. Only works + // for One_Sequential_PGC_Titles. + // THIS SHOULD CHANGE, RIGHT? + HRESULT GetTotalTitleTime + ( [out AM_ANNOTATION("_Out_")] DVD_HMSF_TIMECODE* pTotalTime, + [out AM_ANNOTATION("_Out_")] ULONG* ulTimeCodeFlags // union of DVD_TIMECODE_FLAGS + ); + + // GetCurrentButton + // Indicates the number of currently available buttons and the current + // selected button number. If buttons are not present it returns 0 for + // both pulButtonsAvailable and pulCurrentButton + HRESULT GetCurrentButton + ( [out AM_ANNOTATION("_Out_")] ULONG * pulButtonsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentButton + ); + + // GetCurrentAngle + // Indicates the number of currently available angles and the current + // selected angle number. If *pulAnglesAvailable is returned as 1 then + // the current content is not multiangle. + HRESULT GetCurrentAngle + ( [out AM_ANNOTATION("_Out_")] ULONG * pulAnglesAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentAngle + ); + + // GetCurrentAudio + // Indicates the number of currently available audio streams and + // the currently selected audio stream number. + // This only works inside the Title domain. + HRESULT GetCurrentAudio + ( [out AM_ANNOTATION("_Out_")] ULONG * pulStreamsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentStream + ); + + // GetCurrentSubpicture + // Indicates the number of currently available subpicture streams, + // the currently selected subpicture stream number, and if the + // subpicture display is currently disabled. Subpicture streams + // authored as "Forcedly Activated" stream will be displayed even if + // subpicture display has been disabled by the app with + // IDVDControl::SetSubpictureState. + // This only works inside the Title domain. + HRESULT GetCurrentSubpicture + ( [out AM_ANNOTATION("_Out_")] ULONG * pulStreamsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentStream, + [out AM_ANNOTATION("_Out_")] BOOL * pbIsDisabled + ); + + // GetCurrentUOPS + // Indicates which IDVDControl methods (Annex J user operations) are + // currently valid. DVD titles can enable or disable individual user + // operations at almost any point during playback. + HRESULT GetCurrentUOPS + ( [out AM_ANNOTATION("_Out_")] ULONG * pulUOPs + ); + + // GetAllSPRMs + // Returns the current contents of all DVD System Parameter Registers. + // See DVD-Video spec for use of individual registers. + // WE SHOULD DOC THE SPRMs RATHER THAN ASKING TO REFER TO DVD SPEC. + HRESULT GetAllSPRMs + ( [out AM_ANNOTATION("_Out_")] SPRMARRAY * pRegisterArray + ); + + // GetAllGPRMs + // Returns the current contents of all DVD General Parameter Registers. + // Use of GPRMs is title specific. + // WE SHOULD DOC THE GPRMs RATHER THAN ASKING TO REFER TO DVD SPEC. + HRESULT GetAllGPRMs + ( [out AM_ANNOTATION("_Out_")] GPRMARRAY * pRegisterArray + ); + + // GetAudioLanguage + // Returns the language of the specified stream within the current title. + // Does not return languages for menus. Returns *pLanguage as 0 if the + // stream does not include language. + // Use Win32 API GetLocaleInfo(*pLanguage, LOCALE_SENGLANGUAGE, pszString, cbSize) + // to create a human readable string name from the returned LCID. + HRESULT GetAudioLanguage + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] LCID * pLanguage + ); + + // GetSubpictureLanguage + // Returns the language of the specified stream within the current title. + // Does not return languages for menus. Returns *pLanguage=0 as 0 if the + // stream does not include language. + // Use Win32 API GetLocaleInfo(*pLanguage, LOCALE_SENGLANGUAGE, pszString, cbSize) + // to create a human readable string name from the returned LCID. + HRESULT GetSubpictureLanguage + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] LCID * pLanguage + ); + + // GetTitleAttributes + // Returns attributes of all video, audio, and subpicture streams for the + // specified title including menus. + // If 0xffffffff is specified as ulTitle, attributes for the current title + // are returned. + HRESULT GetTitleAttributes + ( [in] ULONG ulTitle, // requested title number + [out AM_ANNOTATION("_Out_")] DVD_MenuAttributes * pMenu, + [out AM_ANNOTATION("_Out_")] DVD_TitleAttributes * pTitle + ); + + // GetVMGAttributes + // Returns attributes of all video, audio, and subpicture + // streams for Video Manager Menus. This method suppliments GetTitleAttributes() + // for some menus, such as the Title menu, which are in a separate group of + // streams called the VMG (Video Manager) and are not associated with any + // particular title number. + HRESULT GetVMGAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_MenuAttributes* pATR + ); + + // GetCurrentVideoAttributes + // Returns the video attributes for the current title or menu. + // + HRESULT GetCurrentVideoAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_VideoAttributes * pATR + ); + + // GetAudioAttributes + // Returns the audio attributes for the specified stream in the current title + // or menu. + HRESULT GetAudioAttributes + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] DVD_AudioAttributes *pATR + ); + + // GetKaraokeChannelContents + // Returns the karaoke contents of each channel of the specified stream in the current title + // or menu. + HRESULT GetKaraokeAttributes + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] DVD_KaraokeAttributes* pAttributes + ); + + // GetSubpictureAttributes + // Returns the subpicture attributes for the specified stream in the current + // title or menu. + HRESULT GetSubpictureAttributes + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] DVD_SubpictureAttributes *pATR + ); + + // GetDVDVolumeInfo + // Returns current DVD volume information. + HRESULT GetDVDVolumeInfo + ( [out AM_ANNOTATION("_Out_")] ULONG *pulNumOfVolumes, // number of volumes (disc sides?) in a volume set + [out AM_ANNOTATION("_Out_")] ULONG *pulVolume, // volume number for current DVD directory + [out AM_ANNOTATION("_Out_")] DVD_DISC_SIDE *pSide, // current disc side + [out AM_ANNOTATION("_Out_")] ULONG *pulNumOfTitles // number of titles available in this volume + ); + + // GetDVDTextNumberOfLanguages + // Returns the number of text languages for the current DVD directory. + // Should return some error code if no root directory is found. + HRESULT GetDVDTextNumberOfLanguages + ( [out AM_ANNOTATION("_Out_")] ULONG * pulNumOfLangs + ); + + // GetDVDTextLanguageInfo + // Returns the text languages information (number of strings, language code, + // char set) for the specified language index. + // Should return some error code if an invalid text index is specified. + HRESULT GetDVDTextLanguageInfo + ( [in] ULONG ulLangIndex, + [out AM_ANNOTATION("_Out_")] ULONG* pulNumOfStrings, + [out AM_ANNOTATION("_Out_")] LCID* pLangCode, + [out AM_ANNOTATION("_Out_")] enum DVD_TextCharSet * pbCharacterSet + ); + + // GetDVDTextStringAsNative + // Returns the text string as an array of bytes for the specified language + // index.and string index. + // Should return some error code if an invalid text or string index is specified. + // It also just returns the length of the string if pchBuffer is specified as NULL. + HRESULT GetDVDTextStringAsNative + ( [in] ULONG ulLangIndex, + [in] ULONG ulStringIndex, + [out AM_ANNOTATION("_Out_")] BYTE* pbBuffer, + [in] ULONG ulMaxBufferSize, + [out AM_ANNOTATION("_Out_")] ULONG* pulActualSize, + [out AM_ANNOTATION("_Out_")] enum DVD_TextStringType* pType + ); + + // GetDVDTextStringAsUnicode + // Returns the text string in Unicode for the specified language index.and string index. + // Should return some error code if an invalid text or string index is specified. + // It also just returns the length of the string if pchBuffer is specified as NULL. + HRESULT GetDVDTextStringAsUnicode + ( [in] ULONG ulLangIndex, + [in] ULONG ulStringIndex, + [out AM_ANNOTATION("_Out_")] WCHAR* pchwBuffer, + [in] ULONG ulMaxBufferSize, + [out AM_ANNOTATION("_Out_")] ULONG* pulActualSize, + [out AM_ANNOTATION("_Out_")] enum DVD_TextStringType* pType + ); + + // GetPlayerParentalLevel + // Returns the current parental level and the current country/region code that has + // been set in the system registers in player. + // See Table 3.3.4-1 of the DVD-Video spec for the defined parental levels. + // Valid Parental Levels range from 1 to 8 if parental management is enabled. + // Returns 0xffffffff if parental management is disabled + // See ISO3166 : Alpha-2 Code for the country/region codes. + HRESULT GetPlayerParentalLevel + ( [out AM_ANNOTATION("_Out_")] ULONG *pulParentalLevel, // current parental level + [out AM_ANNOTATION("_Out_")] BYTE pbCountryCode[2] // current country/region code + ); + + // GetNumberOfChapters + // Returns the number of chapters that are defined for a + // given title. + HRESULT GetNumberOfChapters + ( [in] ULONG ulTitle, // Title for which number of chapters is requested + [out AM_ANNOTATION("_Out_")] ULONG *pulNumOfChapters // Number of chapters for the specified title + ); + + // GetTitleParentalLevels + // Returns the parental levels that are defined for a particular title. + // pulParentalLevels will be combination of DVD_PARENTAL_LEVEL_8, + // DVD_PARENTAL_LEVEL_6, or DVD_PARENTAL_LEVEL_1 OR-ed together + HRESULT GetTitleParentalLevels + ( [in] ULONG ulTitle, // Title for which parental levels are requested + [out AM_ANNOTATION("_Out_")] ULONG *pulParentalLevels // Parental levels defined for the title "OR"ed together + ); + + // GetDVDDirectory + // Returns the root directory that is set in the player. If a valid root + // has been found, it returns the root string. Otherwise, it returns 0 for + // pcbActualSize indicating that a valid root directory has not been found + // or initialized. + // + // !!! used to return LPTSTR. interface was changed to return + // LPSTR (ansi) for compatibility. COM APIs should pass with + // UNICODE strings only. + // + HRESULT GetDVDDirectory + ( [out, size_is(ulMaxSize) AM_ANNOTATION("_Out_writes_to_(ulMaxSize, *pulActualSize)")] LPWSTR pszwPath, // pointer to buffer to get root string + [in] ULONG ulMaxSize, // size of buffer in WCHARs passed in + [out AM_ANNOTATION("_Out_")] ULONG *pulActualSize // size of actual data returned (in WCHARs) + ); + + + // IsAudioStreamEnabled + // + // Determines if the specified audio stream is enabled/disabled in the current PGC. + // + // ulStreamNum - audio stream number to test + // pbEnabled - where to place the result + HRESULT IsAudioStreamEnabled + ( [in] ULONG ulStreamNum, // stream number to test + [out AM_ANNOTATION("_Out_")] BOOL *pbEnabled // returned state + ); + + // GetDiscID + // + // If pszwPath is specified as NULL, DVD Navigator will use the current path + // that would be returned by GetDVDDirectory() at this point. + // + // Returns a 64-bit identification number for the specified DVD disc. + HRESULT GetDiscID + ( [in] LPCWSTR pszwPath, // root path (should we rather use const WCHAR*?) + [out AM_ANNOTATION("_Out_")] ULONGLONG* pullDiscID // 64-bit unique id for the disc + ) ; + + // GetState + // + // The navigator will create a new state object and save the current location into it. + // The state object can be used to restore the navigator the saved location at a later time. + // A new IDvdState object is created (with a single AddRef) and returned in *pStateData. + // The object must be Released() when the application is finished with it. + // + HRESULT GetState + ( [out AM_ANNOTATION("_Out_")] IDvdState **pStateData // returned object + ); + + // + // GetMenuLanguages + // + // Navigator gets all of the menu languages for the VMGM and VTSM domains. + // + HRESULT GetMenuLanguages + ( [out AM_ANNOTATION("_Out_")] LCID *pLanguages, // data buffer (NULL returns #languages) + [in] ULONG ulMaxLanguages, // maxiumum number of languages to retrieve + [out AM_ANNOTATION("_Out_")] ULONG *pulActualLanguages // actual number of languages retrieved + ); + + // + // GetButtonAtPosition + // + // This is typically called in response to a mouse move within the + // display window. + // It returns the button located at the specified point within the display window. + // If no button is present at that position, then VFW_E_DVD_NO_BUTTON is returned. + // Button indices start at 1. + // + // NOTE: DVD Buttons do not all necessarily have highlight rects, + // button rects can overlap, and button rects do not always + // correspond to the visual representation of DVD buttons. + HRESULT GetButtonAtPosition // typically called after a mouse move + ( [in] POINT point, + [out AM_ANNOTATION("_Out_")] ULONG *pulButtonIndex + ); + + // + // GetCmdFromEvent + // + // This method maps an EC_DVD_CMD_BEGIN/COMPLETE/CANCEL event's lParam1 into an AddRef'd + // IDvdCmd pointer. You must Release the returned pointer. NULL is returned if the function + // fails. + // + HRESULT GetCmdFromEvent + ( [in] LONG_PTR lParam1, + [out AM_ANNOTATION("_Out_")] IDvdCmd **pCmdObj + ); + + // GetDefaultMenuLanguage + // Returns the default language for menus. + HRESULT GetDefaultMenuLanguage + ( [out AM_ANNOTATION("_Out_")] LCID * pLanguage + ); + + // GetDefaultAudioLanguage + // Gets the default audio language. + // Languages are specified with Windows standard LCIDs. + HRESULT GetDefaultAudioLanguage + ( [out AM_ANNOTATION("_Out_")] LCID* pLanguage, + [out AM_ANNOTATION("_Out_")] DVD_AUDIO_LANG_EXT* pAudioExtension + ); + + // GetDefaultSubpictureLanguage + // Gets the default subpicture language. + // Languages are specified with Windows standard LCIDs. + HRESULT GetDefaultSubpictureLanguage + ( [out AM_ANNOTATION("_Out_")] LCID* pLanguage, + [out AM_ANNOTATION("_Out_")] DVD_SUBPICTURE_LANG_EXT* pSubpictureExtension + ); + + // + // GetDecoderCaps: + // Retrieves the DVD decoder's details about max data rate for video, audio + // and subpicture (going backward and forward) as well as support for various + // types of audio (AC3, MPEG2, DTS, SDDS, LPCM). + // + HRESULT GetDecoderCaps + ( [out AM_ANNOTATION("_Out_")] DVD_DECODER_CAPS *pCaps + ) ; + + // + // GetButtonRect: + // Retrieves the coordinates for a given button number + // + HRESULT GetButtonRect + ( [in] ULONG ulButton, + [out AM_ANNOTATION("_Out_")] RECT *pRect + ) ; + + // IsSubpictureStreamEnabled + // + // Determines if the specified subpicture stream is enabled/disabled in the current PGC. + // + // ulStreamNum - Subpicture stream number to test + // pbEnabled - where to place the result + HRESULT IsSubpictureStreamEnabled + ( [in] ULONG ulStreamNum, // stream number to test + [out AM_ANNOTATION("_Out_")] BOOL *pbEnabled // returned state + ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +//========================================================================== +//========================================================================== +// +// typedefs used by IDvdGraphBuilder interface. +// +//========================================================================== +//========================================================================== + +typedef enum _AM_DVD_GRAPH_FLAGS { + AM_DVD_HWDEC_PREFER = 0x01, // default + AM_DVD_HWDEC_ONLY = 0x02, + AM_DVD_SWDEC_PREFER = 0x04, + AM_DVD_SWDEC_ONLY = 0x08, + AM_DVD_NOVPE = 0x100, + AM_DVD_DO_NOT_CLEAR = 0x200, // do not clear graph before building + AM_DVD_VMR9_ONLY =0x0800, // only use VMR9 (otherwise fail) for rendering + AM_DVD_EVR_ONLY =0x1000, // only use EVR (otherwise fail) for rendering + AM_DVD_EVR_QOS =0x2000, // Enabled EVR Dynamic QoS + AM_DVD_ADAPT_GRAPH =0x4000, // Adapt graph building to machine capbilities + + AM_DVD_MASK =0xffff, // only lower WORD is used/allowed +} AM_DVD_GRAPH_FLAGS ; + +typedef enum _AM_DVD_STREAM_FLAGS { + AM_DVD_STREAM_VIDEO = 0x01, + AM_DVD_STREAM_AUDIO = 0x02, + AM_DVD_STREAM_SUBPIC = 0x04 +} AM_DVD_STREAM_FLAGS ; + +typedef struct { + HRESULT hrVPEStatus ; // VPE mixing error code (0 => success) + BOOL bDvdVolInvalid ; // Is specified DVD volume invalid? + BOOL bDvdVolUnknown ; // Is DVD volume to be played not specified/not found? + BOOL bNoLine21In ; // video decoder doesn't produce line21 (CC) data + BOOL bNoLine21Out ; // can't show decoded line21 data as CC on video + int iNumStreams ; // number of DVD streams to render + int iNumStreamsFailed ; // number of streams failed to render + DWORD dwFailedStreamsFlag ; // combination of flags to indicate failed streams +} AM_DVD_RENDERSTATUS ; + + +// +// IDvdGraphBuilder interface to build a filter graph for DVD-Video playback. +// + +[ + object, + local, + uuid(FCC152B6-F372-11d0-8E00-00C04FD7C08B), + pointer_default(unique) +] +interface IDvdGraphBuilder : IUnknown { + + // Returns the IGraphBuilder interface for the filtergraph used by the + // CDvdGraphBuilder object. + // Remember to *ppGB->Release() when you're done with it + HRESULT GetFiltergraph + ( [out, annotation("_Out_")] IGraphBuilder **ppGB + ) ; + + // Gets specific interface pointers in the DVD-Video playback graph to + // make DVD-Video playback development easier. + // It helps get the following interfaces to control playback/show CC/ + // position window/control volume etc: + // - IDvdControl, IDvdInfo + // - IAMLine21Decoder + // - IVideoWindow, IBasicVideo + // - IBasicAudio + // This method will return + // a) E_INVALIDARG if ppvIF is invalid + // b) E_NOINTERFACE if riid is an IID we don't know about + // c) VFW_E_DVD_GRAPHNOTREADY if the graph has not been built through + // RenderDvdVideoVolume() yet. + // Remember to *ppvIF->Release() when you're done with it + HRESULT GetDvdInterface + ( [in] REFIID riid, // IID of the interface required + [out, annotation("_Out_")] void **ppvIF // returns pointer to the required interface + ) ; + + // Builds a filter graph according to user specs for playing back a + // DVD-Video volume. + // This method returns S_FALSE if + // 1. the graph has been either built, but either + // a) VPE mixing doesn't work (app didn't use AM_DVD_NOVPE flag) + // b) video decoder doesn't produce line21 data + // c) line21 data couldn't be rendered (decoding/mixing problem) + // d) the call specified an invalid volume path or DVD Nav couldn't + // locate any DVD-Video volume to be played. + // 2. some streams didn't render (completely), but the others have + // been rendered so that the volume can be partially played back. + // The status is indicated through the fields of the pStatus (out) + // parameter. + // About 1(a), the app will have enough info to tell the user that the + // video won't be visible unless a TV is connected to the NTSC out + // port of the DVD decoder (presumably HW in this case). + // For case 1(b) & (c), the app "can" put up a warning/informative message + // that closed captioning is not available because of the decoder. + // 1(d) helps an app to ask the user to insert a DVD-Video disc if none + // is specified/available in the drive when playback is started. + // This method builds the graph even if + // - an invalid DVD-Video volume is specified + // - the caller uses lpwszPathName = NULL to make the DVD Nav to locate + // the default volume to be played back, but DVD Nav doesn't find a + // default DVD-Video volume to be played back. + // An app can later specify the volume using IDvdControl::SetRoot() + // method. + // #2 will help the app indicate to the user that some of the streams + // can't be played. + // + // The graph is built using filters based on the dwFlags value (to use + // HW decoders or SW decoders or a mix of them). + // The dwFlags value is one of the values in AM_DVD_GRAPH_FLAGS enum + // type. The default value is AM_DVD_HWDEC_PREFER. None of the + // AM_DVD_HWDEC_xxx or AM_DVD_SWDEC_xxx flags can be mixed. However + // AM_DVD_NOVPE can be OR-ed with any of the AM_DVD_HWDEC_xxx flags. + // + // The method returns S_OK if the playback graph is built successfully + // with all the streams completely rendered and a valid DVD-Video volume + // is specified or a default one has been located. + // + // If the dwFlags specify conflicting options, E_INVALIDARG is returned. + // If the graph building fails, the method returns one of the following + // error codes: + // VFW_E_DVD_RENDERFAIL, VFW_E_DVD_DECNOTENOUGH + // + HRESULT RenderDvdVideoVolume + ( [in] LPCWSTR lpcwszPathName, // Can be NULL too + [in] DWORD dwFlags, // 0 is the default (use max HW) + [out, annotation("_Out_")] AM_DVD_RENDERSTATUS *pStatus // returns indications of ANY failure + ) ; +} + + +// +// DDraw Exclusive Mode Video standard COM interface for Overlay Mixer +// +[ + object, + local, + uuid(153ACC21-D83B-11d1-82BF-00A0C9696C8F), + pointer_default(unique) +] +interface IDDrawExclModeVideo : IUnknown { + // set a ddraw object to be used by the overlay mixer. If even one of the pins + // of the ovmixer is connected, then it won't start using the new ddraw obect + // immediately but just cache it. It will start using it the next time, all its + // pins are disconnected. + HRESULT SetDDrawObject([in] IDirectDraw *pDDrawObject); + + // gets the ddraw object currently being used by the overlay mixer. If the app has not + // set any ddraw object and the ovmixer has not yet allocated one, then *ppDDrawObject + // will be set to NULL and *pbUsingExternal will be set TO FALSE. Otherwise *pbUsingExternal + // will be set to TRUE if the ovmixer is currently USING an app given ddraw object and FALSE + // othewise + HRESULT GetDDrawObject([out, annotation("_Out_")] IDirectDraw **ppDDrawObject, + [out, annotation("_Out_")] BOOL *pbUsingExternal); + + // set a primary surface to be used by the overlay mixer. If even one of the pins + // of the ovmixer is connected, then it won't start using the new primary surface + // immediately but just cache it. It will start using it the next time, all its + // pins are disconnected. + // Also when the ovmixer does start using an app given primary surface, it will delete + // its output pin (and not draw its own colorkey) since the app is expected to do the + // window management and drawing colorkey etc on the primary surface + // This function makes sure that the surface provided exposes IDirectDrawSurface3, and + // is consistent with the ddraw object provided. + HRESULT SetDDrawSurface([in] IDirectDrawSurface *pDDrawSurface); + + // gets the ddraw surface currently being used by the overlay mixer. If the app has not + // set any ddraw surface and the ovmixer has not yet allocated one, then *ppDDrawSurface + // will be set to NULL and *pbUsingExternal will be set to FALSE. Otherwise *pbUsingExternal + // will be set to TRUE if the ovmixer is curretnly USING an app given ddraw surface and FALSE + // otherwise + HRESULT GetDDrawSurface([out, annotation("_Out_")] IDirectDrawSurface **ppDDrawSurface, + [out, annotation("_Out_")] BOOL *pbUsingExternal); + + // set draw paramters on the ovmixer (src and dest rect). Note that if the mode + // of the ovmixer is set to LETTER_BOX, then the ovmixer might show the video in + // only a subrect of *prcTarget (see IMixerPinConfig for details). + HRESULT SetDrawParameters([in] const RECT * prcSource, + [in] const RECT * prcTarget); + + // gets the current video size and picture aspect ratio of the primary stream of the overlay mixer + // The app should look for the evene EC_VIDEO_SIZE_AR_CHANGED and on its receipt + // call this function again + HRESULT GetNativeVideoProps([out, annotation("_Out_")] DWORD *pdwVideoWidth, + [out, annotation("_Out_")] DWORD *pdwVideoHeight, + [out, annotation("_Out_")] DWORD *pdwPictAspectRatioX, + [out, annotation("_Out_")] DWORD *pdwPictAspectRatioY); + + // Set the callback interface - the callback interface will be defined in a later release + // Currently returns E_NOTIMPL + HRESULT SetCallbackInterface([in] IDDrawExclModeVideoCallback *pCallback, + [in] DWORD dwFlags); +} + + +// +// DDraw Exclusive Mode Video callbacks +// + +// enum for flags +enum _AM_OVERLAY_NOTIFY_FLAGS { + AM_OVERLAY_NOTIFY_VISIBLE_CHANGE = 0x00000001, + AM_OVERLAY_NOTIFY_SOURCE_CHANGE = 0x00000002, + AM_OVERLAY_NOTIFY_DEST_CHANGE = 0x00000004 +}; +[ + object, + local, + uuid(913c24a0-20ab-11d2-9038-00a0c9697298), + pointer_default(unique) +] +interface IDDrawExclModeVideoCallback : IUnknown { + + // Called once before UpdateOverlay is called with bBefore == TRUE + // and once after it is called with bBefore == FALSE and otherwise + // identical parameters + HRESULT OnUpdateOverlay( + [in] BOOL bBefore, // After UpdateOverlayCalled? + [in] DWORD dwFlags,// _AM_OVERLAY_NOTIFY enum + [in] BOOL bOldVisible, + [in] const RECT *prcOldSrc, + [in] const RECT *prcOldDest, + [in] BOOL bNewVisible, + [in] const RECT *prcNewSrc, + [in] const RECT *prcNewDest); + + // Called when the surface color key is changed + HRESULT OnUpdateColorKey( + [in] const COLORKEY *pKey, + [in] DWORD dwColor); + + // Called when the video size or aspect ratio changes + HRESULT OnUpdateSize( [in] DWORD dwWidth, // Movie pixel width + [in] DWORD dwHeight, // Movie pixel height + [in] DWORD dwARWidth, // Aspect ratio horizontal + [in] DWORD dwARHeight); // Aspect ratio vertical +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvdmedia.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvdmedia.h new file mode 100644 index 0000000000000000000000000000000000000000..33fbaa49f87eac3b830900cd34c57c835a2d7402 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvdmedia.h @@ -0,0 +1,455 @@ +//------------------------------------------------------------------------------ +// File: DVDMedia.h +// +// Desc: Contains typedefs and defines necessary for user mode (ring 3) DVD +// filters and applications. +// +// This should be included in the DirectShow SDK for user mode filters. +// The types defined here should be kept in synch with ksmedia.h WDM +// DDK for kernel mode filters. +// +// Copyright (c) 1997 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __DVDMEDIA_H__ +#define __DVDMEDIA_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// ----------------------------------------------------------------------- +// AC-3 definition for the AM_KSPROPSETID_AC3 property set +// ----------------------------------------------------------------------- + +typedef enum { + AM_PROPERTY_AC3_ERROR_CONCEALMENT = 1, + AM_PROPERTY_AC3_ALTERNATE_AUDIO = 2, + AM_PROPERTY_AC3_DOWNMIX = 3, + AM_PROPERTY_AC3_BIT_STREAM_MODE = 4, + AM_PROPERTY_AC3_DIALOGUE_LEVEL = 5, + AM_PROPERTY_AC3_LANGUAGE_CODE = 6, + AM_PROPERTY_AC3_ROOM_TYPE = 7 +} AM_PROPERTY_AC3; + +typedef struct { + BOOL fRepeatPreviousBlock; + BOOL fErrorInCurrentBlock; +} AM_AC3_ERROR_CONCEALMENT, *PAM_AC3_ERROR_CONCEALMENT; + +typedef struct { + BOOL fStereo; + ULONG DualMode; +} AM_AC3_ALTERNATE_AUDIO, *PAM_AC3_ALTERNATE_AUDIO; + +#define AM_AC3_ALTERNATE_AUDIO_1 1 +#define AM_AC3_ALTERNATE_AUDIO_2 2 +#define AM_AC3_ALTERNATE_AUDIO_BOTH 3 + +typedef struct { + BOOL fDownMix; + BOOL fDolbySurround; +} AM_AC3_DOWNMIX, *PAM_AC3_DOWNMIX; + +typedef struct { + LONG BitStreamMode; +} AM_AC3_BIT_STREAM_MODE, *PAM_AC3_BIT_STREAM_MODE; + +#define AM_AC3_SERVICE_MAIN_AUDIO 0 +#define AM_AC3_SERVICE_NO_DIALOG 1 +#define AM_AC3_SERVICE_VISUALLY_IMPAIRED 2 +#define AM_AC3_SERVICE_HEARING_IMPAIRED 3 +#define AM_AC3_SERVICE_DIALOG_ONLY 4 +#define AM_AC3_SERVICE_COMMENTARY 5 +#define AM_AC3_SERVICE_EMERGENCY_FLASH 6 +#define AM_AC3_SERVICE_VOICE_OVER 7 + +typedef struct { + ULONG DialogueLevel; +} AM_AC3_DIALOGUE_LEVEL, *PAM_AC3_DIALOGUE_LEVEL; + +typedef struct { + BOOL fLargeRoom; +} AM_AC3_ROOM_TYPE, *PAM_AC3_ROOM_TYPE; + + +// ----------------------------------------------------------------------- +// subpicture definition for the AM_KSPROPSETID_DvdSubPic property set +// ----------------------------------------------------------------------- + +typedef enum { + AM_PROPERTY_DVDSUBPIC_PALETTE = 0, + AM_PROPERTY_DVDSUBPIC_HLI = 1, + AM_PROPERTY_DVDSUBPIC_COMPOSIT_ON = 2 // TRUE for subpicture is displayed +} AM_PROPERTY_DVDSUBPIC; + +typedef struct _AM_DVD_YUV { + UCHAR Reserved; + UCHAR Y; + UCHAR U; + UCHAR V; +} AM_DVD_YUV, *PAM_DVD_YUV; + +typedef struct _AM_PROPERTY_SPPAL { + AM_DVD_YUV sppal[16]; +} AM_PROPERTY_SPPAL, *PAM_PROPERTY_SPPAL; + +typedef struct _AM_COLCON { + UCHAR emph1col:4; + UCHAR emph2col:4; + UCHAR backcol:4; + UCHAR patcol:4; + UCHAR emph1con:4; + UCHAR emph2con:4; + UCHAR backcon:4; + UCHAR patcon:4; + +} AM_COLCON, *PAM_COLCON; + +typedef struct _AM_PROPERTY_SPHLI { + USHORT HLISS; // + USHORT Reserved; + ULONG StartPTM; // start presentation time in x/90000 + ULONG EndPTM; // end PTM in x/90000 + USHORT StartX; + USHORT StartY; + USHORT StopX; + USHORT StopY; + AM_COLCON ColCon; // color contrast description (4 bytes as given in HLI) +} AM_PROPERTY_SPHLI, *PAM_PROPERTY_SPHLI; + +typedef BOOL AM_PROPERTY_COMPOSIT_ON, *PAM_PROPERTY_COMPOSIT_ON; + + + +// ----------------------------------------------------------------------- +// copy protection definitions +// ----------------------------------------------------------------------- + +// AM_UseNewCSSKey for the dwTypeSpecificFlags in IMediaSample2 to indicate +// the exact point in a stream after which to start applying a new CSS key. +// This is typically sent on an empty media sample just before attempting +// to renegotiate a CSS key. +#define AM_UseNewCSSKey 0x1 + +#define AM_ReverseBlockStart 0x2 +#define AM_ReverseBlockEnd 0x4 + + +// +// AM_KSPROPSETID_CopyProt property set definitions +// +typedef enum { + AM_PROPERTY_DVDCOPY_CHLG_KEY = 0x01, + AM_PROPERTY_DVDCOPY_DVD_KEY1 = 0x02, + AM_PROPERTY_DVDCOPY_DEC_KEY2 = 0x03, + AM_PROPERTY_DVDCOPY_TITLE_KEY = 0x04, + AM_PROPERTY_COPY_MACROVISION = 0x05, + AM_PROPERTY_DVDCOPY_REGION = 0x06, + AM_PROPERTY_DVDCOPY_SET_COPY_STATE = 0x07, + AM_PROPERTY_COPY_ANALOG_COMPONENT = 0x08, // GetOnly property, return data is a BOOL + AM_PROPERTY_COPY_DIGITAL_CP = 0x09, + AM_PROPERTY_COPY_DVD_SRM = 0x0a, + AM_PROPERTY_DVDCOPY_SUPPORTS_NEW_KEYCOUNT = 0x0b, // read only, BOOL + // gap + AM_PROPERTY_DVDCOPY_DISC_KEY = 0x80 +} AM_PROPERTY_DVDCOPYPROT; + +typedef enum _AM_DIGITAL_CP { + AM_DIGITAL_CP_OFF = 0, + AM_DIGITAL_CP_ON = 1, + AM_DIGITAL_CP_DVD_COMPLIANT = 2 +} AM_DIGITAL_CP; + +typedef struct _AM_DVDCOPY_CHLGKEY { + BYTE ChlgKey[10]; + BYTE Reserved[2]; +} AM_DVDCOPY_CHLGKEY, *PAM_DVDCOPY_CHLGKEY; + +typedef struct _AM_DVDCOPY_BUSKEY { + BYTE BusKey[5]; + BYTE Reserved[1]; +} AM_DVDCOPY_BUSKEY, *PAM_DVDCOPY_BUSKEY; + +typedef struct _AM_DVDCOPY_DISCKEY { + BYTE DiscKey[2048]; +} AM_DVDCOPY_DISCKEY, *PAM_DVDCOPY_DISCKEY; + +typedef struct AM_DVDCOPY_TITLEKEY { + ULONG KeyFlags; + ULONG Reserved1[2]; + UCHAR TitleKey[6]; + UCHAR Reserved2[2]; +} AM_DVDCOPY_TITLEKEY, *PAM_DVDCOPY_TITLEKEY; + +typedef struct _AM_COPY_MACROVISION { + ULONG MACROVISIONLevel; +} AM_COPY_MACROVISION, *PAM_COPY_MACROVISION; + +typedef struct AM_DVDCOPY_SET_COPY_STATE { + ULONG DVDCopyState; +} AM_DVDCOPY_SET_COPY_STATE, *PAM_DVDCOPY_SET_COPY_STATE; + +typedef enum { + AM_DVDCOPYSTATE_INITIALIZE = 0, + AM_DVDCOPYSTATE_INITIALIZE_TITLE = 1, // indicates we are starting a title + // key copy protection sequence + AM_DVDCOPYSTATE_AUTHENTICATION_NOT_REQUIRED = 2, + AM_DVDCOPYSTATE_AUTHENTICATION_REQUIRED = 3, + AM_DVDCOPYSTATE_DONE = 4 +} AM_DVDCOPYSTATE; + +typedef enum { + AM_MACROVISION_DISABLED = 0, + AM_MACROVISION_LEVEL1 = 1, + AM_MACROVISION_LEVEL2 = 2, + AM_MACROVISION_LEVEL3 = 3 +} AM_COPY_MACROVISION_LEVEL, *PAM_COPY_MACROVISION_LEVEL; + + +// CSS region stucture +typedef struct _DVD_REGION { + UCHAR CopySystem; + UCHAR RegionData; + UCHAR SystemRegion; + UCHAR ResetCount; +} DVD_REGION, *PDVD_REGION; + +// +// CGMS Copy Protection Flags +// + +#define AM_DVD_CGMS_RESERVED_MASK 0x00000078 + +#define AM_DVD_CGMS_COPY_PROTECT_MASK 0x00000018 +#define AM_DVD_CGMS_COPY_PERMITTED 0x00000000 +#define AM_DVD_CGMS_COPY_ONCE 0x00000010 +#define AM_DVD_CGMS_NO_COPY 0x00000018 + +#define AM_DVD_COPYRIGHT_MASK 0x00000040 +#define AM_DVD_NOT_COPYRIGHTED 0x00000000 +#define AM_DVD_COPYRIGHTED 0x00000040 + +#define AM_DVD_SECTOR_PROTECT_MASK 0x00000020 +#define AM_DVD_SECTOR_NOT_PROTECTED 0x00000000 +#define AM_DVD_SECTOR_PROTECTED 0x00000020 + + +// ----------------------------------------------------------------------- +// video format blocks +// ----------------------------------------------------------------------- + +enum AM_MPEG2Level { + AM_MPEG2Level_Low = 1, + AM_MPEG2Level_Main = 2, + AM_MPEG2Level_High1440 = 3, + AM_MPEG2Level_High = 4 +}; + +enum AM_MPEG2Profile { + AM_MPEG2Profile_Simple = 1, + AM_MPEG2Profile_Main = 2, + AM_MPEG2Profile_SNRScalable = 3, + AM_MPEG2Profile_SpatiallyScalable = 4, + AM_MPEG2Profile_High = 5 +}; + +#define AMINTERLACE_IsInterlaced 0x00000001 // if 0, other interlace bits are irrelevent +#define AMINTERLACE_1FieldPerSample 0x00000002 // else 2 fields per media sample +#define AMINTERLACE_Field1First 0x00000004 // else Field 2 is first; top field in PAL is field 1, top field in NTSC is field 2? +#define AMINTERLACE_UNUSED 0x00000008 // +#define AMINTERLACE_FieldPatternMask 0x00000030 // use this mask with AMINTERLACE_FieldPat* +#define AMINTERLACE_FieldPatField1Only 0x00000000 // stream never contains a Field2 +#define AMINTERLACE_FieldPatField2Only 0x00000010 // stream never contains a Field1 +#define AMINTERLACE_FieldPatBothRegular 0x00000020 // There will be a Field2 for every Field1 (required for Weave?) +#define AMINTERLACE_FieldPatBothIrregular 0x00000030 // Random pattern of Field1s and Field2s +#define AMINTERLACE_DisplayModeMask 0x000000c0 +#define AMINTERLACE_DisplayModeBobOnly 0x00000000 +#define AMINTERLACE_DisplayModeWeaveOnly 0x00000040 +#define AMINTERLACE_DisplayModeBobOrWeave 0x00000080 + +#define AMCOPYPROTECT_RestrictDuplication 0x00000001 // duplication of this stream should be restricted + +#define AMMPEG2_DoPanScan 0x00000001 //if set, the MPEG-2 video decoder should crop output image + // based on pan-scan vectors in picture_display_extension + // and change the picture aspect ratio accordingly. +#define AMMPEG2_DVDLine21Field1 0x00000002 //if set, the MPEG-2 decoder must be able to produce an output + // pin for DVD style closed caption data found in GOP layer of field 1 +#define AMMPEG2_DVDLine21Field2 0x00000004 //if set, the MPEG-2 decoder must be able to produce an output + // pin for DVD style closed caption data found in GOP layer of field 2 +#define AMMPEG2_SourceIsLetterboxed 0x00000008 //if set, indicates that black bars have been encoded in the top + // and bottom of the video. +#define AMMPEG2_FilmCameraMode 0x00000010 //if set, indicates "film mode" used for 625/50 content. If cleared, + // indicates that "camera mode" was used. +#define AMMPEG2_LetterboxAnalogOut 0x00000020 //if set and this stream is sent to an analog output, it should + // be letterboxed. Streams sent to VGA should be letterboxed only by renderers. +#define AMMPEG2_DSS_UserData 0x00000040 //if set, the MPEG-2 decoder must process DSS style user data +#define AMMPEG2_DVB_UserData 0x00000080 //if set, the MPEG-2 decoder must process DVB style user data +#define AMMPEG2_27MhzTimebase 0x00000100 //if set, the PTS,DTS timestamps advance at 27MHz rather than 90KHz + +#define AMMPEG2_WidescreenAnalogOut 0x00000200 //if set and this stream is sent to an analog output, it should + // be in widescreen format (4x3 content should be centered on a 16x9 output). + // Streams sent to VGA should be widescreened only by renderers. + +// PRESENT in dwReserved1 field in VIDEOINFOHEADER2 +#define AMCONTROL_USED 0x00000001 // Used to test if these flags are supported. Set and test for AcceptMediaType. + // If rejected, then you cannot use the AMCONTROL flags (send 0 for dwReserved1) +#define AMCONTROL_PAD_TO_4x3 0x00000002 // if set means display the image in a 4x3 area +#define AMCONTROL_PAD_TO_16x9 0x00000004 // if set means display the image in a 16x9 area +#define AMCONTROL_COLORINFO_PRESENT 0x00000080 // if set, indicates DXVA color info is present in the upper (24) bits of the dwControlFlags + +typedef struct tagVIDEOINFOHEADER2 { + RECT rcSource; + RECT rcTarget; + DWORD dwBitRate; + DWORD dwBitErrorRate; + REFERENCE_TIME AvgTimePerFrame; + DWORD dwInterlaceFlags; // use AMINTERLACE_* defines. Reject connection if undefined bits are not 0 + DWORD dwCopyProtectFlags; // use AMCOPYPROTECT_* defines. Reject connection if undefined bits are not 0 + DWORD dwPictAspectRatioX; // X dimension of picture aspect ratio, e.g. 16 for 16x9 display + DWORD dwPictAspectRatioY; // Y dimension of picture aspect ratio, e.g. 9 for 16x9 display + union { + DWORD dwControlFlags; // use AMCONTROL_* defines, use this from now on + DWORD dwReserved1; // for backward compatiblity (was "must be 0"; connection rejected otherwise) + }; + DWORD dwReserved2; // must be 0; reject connection otherwise + BITMAPINFOHEADER bmiHeader; +} VIDEOINFOHEADER2; + +typedef struct tagMPEG2VIDEOINFO { + VIDEOINFOHEADER2 hdr; + DWORD dwStartTimeCode; // ?? not used for DVD ?? + DWORD cbSequenceHeader; // is 0 for DVD (no sequence header) + DWORD dwProfile; // use enum MPEG2Profile + DWORD dwLevel; // use enum MPEG2Level + DWORD dwFlags; // use AMMPEG2_* defines. Reject connection if undefined bits are not 0 + DWORD dwSequenceHeader[1]; // DWORD instead of Byte for alignment purposes + // For MPEG-2, if a sequence_header is included, the sequence_extension + // should also be included +} MPEG2VIDEOINFO; + +#define SIZE_MPEG2VIDEOINFO(pv) (FIELD_OFFSET(MPEG2VIDEOINFO, dwSequenceHeader[0]) + (pv)->cbSequenceHeader) + +// do not use +#define MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader) + +// use this macro instead, the previous only works for MPEG1VIDEOINFO structures +#define MPEG2_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->dwSequenceHeader) + + +//=================================================================================== +// flags for dwTypeSpecificFlags in AM_SAMPLE2_PROPERTIES which define type specific +// data in IMediaSample2 +//=================================================================================== + +#define AM_VIDEO_FLAG_FIELD_MASK 0x0003L // use this mask to check whether the sample is field1 or field2 or frame +#define AM_VIDEO_FLAG_INTERLEAVED_FRAME 0x0000L // the sample is a frame (remember to use AM_VIDEO_FLAG_FIELD_MASK when using this) +#define AM_VIDEO_FLAG_FIELD1 0x0001L // the sample is field1 (remember to use AM_VIDEO_FLAG_FIELD_MASK when using this) +#define AM_VIDEO_FLAG_FIELD2 0x0002L // the sample is the field2 (remember to use AM_VIDEO_FLAG_FIELD_MASK when using this) +#define AM_VIDEO_FLAG_FIELD1FIRST 0x0004L // if set means display field1 first, else display field2 first. + // this bit is irrelavant for 1FieldPerSample mode +#define AM_VIDEO_FLAG_WEAVE 0x0008L // if set use bob display mode else weave +#define AM_VIDEO_FLAG_IPB_MASK 0x0030L // use this mask to check whether the sample is I, P or B +#define AM_VIDEO_FLAG_I_SAMPLE 0x0000L // I Sample (remember to use AM_VIDEO_FLAG_IPB_MASK when using this) +#define AM_VIDEO_FLAG_P_SAMPLE 0x0010L // P Sample (remember to use AM_VIDEO_FLAG_IPB_MASK when using this) +#define AM_VIDEO_FLAG_B_SAMPLE 0x0020L // B Sample (remember to use AM_VIDEO_FLAG_IPB_MASK when using this) +#define AM_VIDEO_FLAG_REPEAT_FIELD 0x0040L // if set means display the field which has been displayed first again after displaying + // both fields first. This bit is irrelavant for 1FieldPerSample mode + +// ----------------------------------------------------------------------- +// AM_KSPROPSETID_DvdKaraoke property set definitions +// ----------------------------------------------------------------------- + +typedef struct tagAM_DvdKaraokeData +{ + DWORD dwDownmix; // bitwise OR of AM_DvdKaraoke_Downmix flags + DWORD dwSpeakerAssignment; // AM_DvdKaraoke_SpeakerAssignment +} AM_DvdKaraokeData; + +typedef enum { + AM_PROPERTY_DVDKARAOKE_ENABLE = 0, // BOOL + AM_PROPERTY_DVDKARAOKE_DATA = 1, +} AM_PROPERTY_DVDKARAOKE; + +// ----------------------------------------------------------------------- +// AM_KSPROPSETID_TSRateChange property set definitions for time stamp +// rate changes. +// ----------------------------------------------------------------------- + +typedef enum { + AM_RATE_SimpleRateChange = 1, // rw, use AM_SimpleRateChange + AM_RATE_ExactRateChange = 2, // rw, use AM_ExactRateChange + AM_RATE_MaxFullDataRate = 3, // r, use AM_MaxFullDataRate + AM_RATE_Step = 4, // w, use AM_Step + AM_RATE_UseRateVersion = 5, // w, use WORD + AM_RATE_QueryFullFrameRate =6, // r, use AM_QueryRate + AM_RATE_QueryLastRateSegPTS =7, // r, use REFERENCE_TIME + AM_RATE_CorrectTS = 8, // w, use LONG + AM_RATE_ReverseMaxFullDataRate = 9, // r, use AM_MaxFullDataRate + AM_RATE_ResetOnTimeDisc = 10, // rw, use DWORD - indicates supports new 'timeline reset on time discontinuity' sample + AM_RATE_QueryMapping = 11 +} AM_PROPERTY_TS_RATE_CHANGE; + +// ------------------------------------------------------------------- +// AM_KSPROPSETID_DVD_RateChange property set definitions for new DVD +// rate change scheme. +// ------------------------------------------------------------------- + +typedef enum { + AM_RATE_ChangeRate = 1, // w, use AM_DVD_ChangeRate + AM_RATE_FullDataRateMax = 2, // r, use AM_MaxFullDataRate + AM_RATE_ReverseDecode = 3, // r, use LONG + AM_RATE_DecoderPosition = 4, // r, use AM_DVD_DecoderPosition + AM_RATE_DecoderVersion = 5 // r, use LONG +} AM_PROPERTY_DVD_RATE_CHANGE; + +typedef struct { + // this is the simplest mechanism to set a time stamp rate change on + // a filter (simplest for the person setting the rate change, harder + // for the filter doing the rate change). + REFERENCE_TIME StartTime; //stream time at which to start this rate + LONG Rate; //new rate * 10000 (decimal) +} AM_SimpleRateChange; + +typedef struct { + LONG lMaxForwardFullFrame ; // rate * 10000 + LONG lMaxReverseFullFrame ; // rate * 10000 +} AM_QueryRate ; + +typedef struct { + REFERENCE_TIME OutputZeroTime; //input TS that maps to zero output TS + LONG Rate; //new rate * 10000 (decimal) +} AM_ExactRateChange; + +typedef LONG AM_MaxFullDataRate; //rate * 10000 (decimal) + +typedef DWORD AM_Step; // number of frame to step + +// New rate change property set, structs. enums etc. +typedef struct { + REFERENCE_TIME StartInTime; // stream time (input) at which to start decoding at this rate + REFERENCE_TIME StartOutTime; // reference time (output) at which to start showing at this rate + LONG Rate; // new rate * 10000 (decimal) +} AM_DVD_ChangeRate ; + +typedef LONGLONG AM_DVD_DecoderPosition ; + +typedef enum { + DVD_DIR_FORWARD = 0, + DVD_DIR_BACKWARD = 1 +} DVD_PLAY_DIRECTION ; + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __DVDMEDIA_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvp.h new file mode 100644 index 0000000000000000000000000000000000000000..e5fafa29e3dbf449fdc6b97b142408c4b6b3f4d1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dvp.h @@ -0,0 +1,977 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: dvp.h + * Content: DirectDrawVideoPort include file + * + ***************************************************************************/ + +#ifndef __DVP_INCLUDED__ +#define __DVP_INCLUDED__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/* + * GUIDS used by DirectDrawVideoPort objects + */ +#if defined( _WIN32 ) && (!defined( _NO_COM ) || defined( DEFINE_GUID )) +DEFINE_GUID( IID_IDDVideoPortContainer, 0x6C142760,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); +DEFINE_GUID( IID_IDirectDrawVideoPort, 0xB36D93E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 ); +DEFINE_GUID( IID_IDirectDrawVideoPortNotify, 0xA655FB94,0x0589,0x4E57,0xB3,0x33,0x56,0x7A,0x89,0x46,0x8C,0x88); + + + +DEFINE_GUID( DDVPTYPE_E_HREFH_VREFH, 0x54F39980L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_E_HREFH_VREFL, 0x92783220L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_E_HREFL_VREFH, 0xA07A02E0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_E_HREFL_VREFL, 0xE09C77E0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_CCIR656, 0xFCA326A0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_BROOKTREE, 0x1352A560L,0xDA61,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_PHILIPS, 0x332CF160L,0xDA61,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +#endif + +#ifndef GUID_DEFS_ONLY + +#if defined( _WIN32 ) && !defined( _NO_COM ) +#define COM_NO_WINDOWS_H +#include +#else +#define IUnknown void +#endif + +/* + * These definitions are required to allow polymorphic structure members (i.e. those + * that are referred to both as DWORDs and as pointers) to resolve into a type + * of correct size to hold the largest of those two types (i.e. pointer) on 64 bit + * systems. For 32 bit environments, ULONG_PTR resolves to a DWORD. + */ +#ifndef MAXULONG_PTR +#define ULONG_PTR DWORD +#endif //MAXULONG_PTR + +#ifdef __cplusplus +extern "C" { +#endif + +/*============================================================================ + * + * DirectDraw Structures + * + * Various structures used to invoke DirectDraw. + * + *==========================================================================*/ + +struct IDirectDraw; +struct IDirectDrawSurface; +struct IDirectDrawPalette; +struct IDirectDrawClipper; + +typedef struct IDDVideoPortContainer FAR *LPDDVIDEOPORTCONTAINER; +typedef struct IDirectDrawVideoPort FAR *LPDIRECTDRAWVIDEOPORT; +typedef struct IDirectDrawVideoPortNotify FAR *LPDIRECTDRAWVIDEOPORTNOTIFY; + +typedef struct _DDVIDEOPORTCONNECT FAR *LPDDVIDEOPORTCONNECT; +typedef struct _DDVIDEOPORTCAPS FAR *LPDDVIDEOPORTCAPS; +typedef struct _DDVIDEOPORTDESC FAR *LPDDVIDEOPORTDESC; +typedef struct _DDVIDEOPORTINFO FAR *LPDDVIDEOPORTINFO; +typedef struct _DDVIDEOPORTBANDWIDTH FAR *LPDDVIDEOPORTBANDWIDTH; +typedef struct _DDVIDEOPORTSTATUS FAR *LPDDVIDEOPORTSTATUS; +typedef struct _DDVIDEOPORTNOTIFY FAR *LPDDVIDEOPORTNOTIFY; + +typedef struct IDDVideoPortContainerVtbl DDVIDEOPORTCONTAINERCALLBACKS; +typedef struct IDirectDrawVideoPortVtbl DIRECTDRAWVIDEOPORTCALLBACKS; +typedef struct IDirectDrawVideoPortNotifyVtbl DIRECTDRAWVIDEOPORTNOTIFYCALLBACKS; + + +/* + * API's + */ +typedef HRESULT (FAR PASCAL * LPDDENUMVIDEOCALLBACK)(LPDDVIDEOPORTCAPS, LPVOID); + + +/* + * INTERACES FOLLOW: + * IDirectDrawVideoPort + * IVideoPort + */ + +/* + * IDirectDrawVideoPortContainer + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDDVideoPortContainer +DECLARE_INTERFACE_( IDDVideoPortContainer, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawVideoPort methods ***/ + STDMETHOD(CreateVideoPort)(THIS_ DWORD, LPDDVIDEOPORTDESC, LPDIRECTDRAWVIDEOPORT FAR *, IUnknown FAR *) PURE; + STDMETHOD(EnumVideoPorts)(THIS_ DWORD, LPDDVIDEOPORTCAPS, LPVOID,LPDDENUMVIDEOCALLBACK ) PURE; + STDMETHOD(GetVideoPortConnectInfo)(THIS_ DWORD, _Inout_ LPDWORD pcInfo, _Out_writes_to_opt_(*pcInfo, *pcInfo) LPDDVIDEOPORTCONNECT ) PURE; + STDMETHOD(QueryVideoPortStatus)(THIS_ DWORD, LPDDVIDEOPORTSTATUS ) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IVideoPortContainer_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) +#define IVideoPortContainer_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IVideoPortContainer_Release(p) (p)->lpVtbl->Release(p) +#define IVideoPortContainer_CreateVideoPort(p, a, b, c, d) (p)->lpVtbl->CreateVideoPort(p, a, b, c, d) +#define IVideoPortContainer_EnumVideoPorts(p, a, b, c, d) (p)->lpVtbl->EnumVideoPorts(p, a, b, c, d) +#define IVideoPortContainer_GetVideoPortConnectInfo(p, a, b, c) (p)->lpVtbl->GetVideoPortConnectInfo(p, a, b, c) +#define IVideoPortContainer_QueryVideoPortStatus(p, a, b) (p)->lpVtbl->QueryVideoPortStatus(p, a, b) +#else +#define IVideoPortContainer_QueryInterface(p, a, b) (p)->QueryInterface(a, b) +#define IVideoPortContainer_AddRef(p) (p)->AddRef() +#define IVideoPortContainer_Release(p) (p)->Release() +#define IVideoPortContainer_CreateVideoPort(p, a, b, c, d) (p)->CreateVideoPort(a, b, c, d) +#define IVideoPortContainer_EnumVideoPorts(p, a, b, c, d) (p)->EnumVideoPorts(a, b, c, d) +#define IVideoPortContainer_GetVideoPortConnectInfo(p, a, b, c) (p)->GetVideoPortConnectInfo(a, b, c) +#define IVideoPortContainer_QueryVideoPortStatus(p, a, b) (p)->QueryVideoPortStatus(a, b) +#endif + +#endif + + +/* + * IDirectDrawVideoPort + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawVideoPort +DECLARE_INTERFACE_( IDirectDrawVideoPort, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IVideoPort methods ***/ + STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE; + STDMETHOD(GetBandwidthInfo)(THIS_ LPDDPIXELFORMAT, DWORD, DWORD, DWORD, LPDDVIDEOPORTBANDWIDTH) PURE; + STDMETHOD(GetColorControls)(THIS_ LPDDCOLORCONTROL) PURE; + STDMETHOD(GetInputFormats)(THIS_ LPDWORD lpNumFormats, _Out_writes_to_opt_(*lpNumFormats, *lpNumFormats) LPDDPIXELFORMAT, DWORD) PURE; + STDMETHOD(GetOutputFormats)(THIS_ LPDDPIXELFORMAT, LPDWORD lpNumFormats, _Out_writes_to_opt_(*lpNumFormats, *lpNumFormats) LPDDPIXELFORMAT, DWORD) PURE; + STDMETHOD(GetFieldPolarity)(THIS_ LPBOOL) PURE; + STDMETHOD(GetVideoLine)(THIS_ LPDWORD) PURE; + STDMETHOD(GetVideoSignalStatus)(THIS_ LPDWORD) PURE; + STDMETHOD(SetColorControls)(THIS_ LPDDCOLORCONTROL) PURE; + STDMETHOD(SetTargetSurface)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE; + STDMETHOD(StartVideo)(THIS_ LPDDVIDEOPORTINFO) PURE; + STDMETHOD(StopVideo)(THIS) PURE; + STDMETHOD(UpdateVideo)(THIS_ LPDDVIDEOPORTINFO) PURE; + STDMETHOD(WaitForSync)(THIS_ DWORD, DWORD, DWORD) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IVideoPort_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IVideoPort_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IVideoPort_Release(p) (p)->lpVtbl->Release(p) +#define IVideoPort_SetTargetSurface(p,a,b) (p)->lpVtbl->SetTargetSurface(p,a,b) +#define IVideoPort_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) +#define IVideoPort_GetBandwidthInfo(p,a,b,c,d,e) (p)->lpVtbl->GetBandwidthInfo(p,a,b,c,d,e) +#define IVideoPort_GetColorControls(p,a) (p)->lpVtbl->GetColorControls(p,a) +#define IVideoPort_GetInputFormats(p,a,b,c) (p)->lpVtbl->GetInputFormats(p,a,b,c) +#define IVideoPort_GetOutputFormats(p,a,b,c,d) (p)->lpVtbl->GetOutputFormats(p,a,b,c,d) +#define IVideoPort_GetFieldPolarity(p,a) (p)->lpVtbl->GetFieldPolarity(p,a) +#define IVideoPort_GetVideoLine(p,a) (p)->lpVtbl->GetVideoLine(p,a) +#define IVideoPort_GetVideoSignalStatus(p,a) (p)->lpVtbl->GetVideoSignalStatus(p,a) +#define IVideoPort_SetColorControls(p,a) (p)->lpVtbl->SetColorControls(p,a) +#define IVideoPort_StartVideo(p,a) (p)->lpVtbl->StartVideo(p,a) +#define IVideoPort_StopVideo(p) (p)->lpVtbl->StopVideo(p) +#define IVideoPort_UpdateVideo(p,a) (p)->lpVtbl->UpdateVideo(p,a) +#define IVideoPort_WaitForSync(p,a,b,c) (p)->lpVtbl->WaitForSync(p,a,b,c) +#else +#define IVideoPort_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IVideoPort_AddRef(p) (p)->AddRef() +#define IVideoPort_Release(p) (p)->Release() +#define IVideoPort_SetTargetSurface(p,a,b) (p)->SetTargetSurface(a,b) +#define IVideoPort_Flip(p,a,b) (p)->Flip(a,b) +#define IVideoPort_GetBandwidthInfo(p,a,b,c,d,e) (p)->GetBandwidthInfo(a,b,c,d,e) +#define IVideoPort_GetColorControls(p,a) (p)->GetColorControls(a) +#define IVideoPort_GetInputFormats(p,a,b,c) (p)->GetInputFormats(a,b,c) +#define IVideoPort_GetOutputFormats(p,a,b,c,d) (p)->GetOutputFormats(a,b,c,d) +#define IVideoPort_GetFieldPolarity(p,a) (p)->GetFieldPolarity(a) +#define IVideoPort_GetVideoLine(p,a) (p)->GetVideoLine(a) +#define IVideoPort_GetVideoSignalStatus(p,a) (p)->GetVideoSignalStatus(a) +#define IVideoPort_SetColorControls(p,a) (p)->SetColorControls(a) +#define IVideoPort_StartVideo(p,a) (p)->StartVideo(a) +#define IVideoPort_StopVideo(p) (p)->StopVideo() +#define IVideoPort_UpdateVideo(p,a) (p)->UpdateVideo(a) +#define IVideoPort_WaitForSync(p,a,b,c) (p)->WaitForSync(a,b,c) +#endif + +#endif + +/* + * IDirectDrawVideoPort + */ +#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP) +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawVideoPortNotify +DECLARE_INTERFACE_( IDirectDrawVideoPortNotify, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IVideoPort methods ***/ + STDMETHOD(AcquireNotification)(THIS_ HANDLE *, LPDDVIDEOPORTNOTIFY) PURE; + STDMETHOD(ReleaseNotification)(THIS_ HANDLE) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IVideoPortNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IVideoPortNotify_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IVideoPortNotify_Release(p) (p)->lpVtbl->Release(p) +#define IVideoPortNotify_AcquireNotification(p,a,b) (p)->lpVtbl->AcquireNotification(p,a,b) +#define IVideoPortNotify_ReleaseNotification(p,a) (p)->lpVtbl->ReleaseNotification(p,a) +#else +#define IVideoPortNotify_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IVideoPortNotify_AddRef(p) (p)->AddRef() +#define IVideoPortNotify_Release(p) (p)->Release() +#define IVideoPortNotify_AcquireNotification(p,a,b) (p)->lpVtbl->AcquireNotification(a,b) +#define IVideoPortNotify_ReleaseNotification(p,a) (p)->lpVtbl->ReleaseNotification(a) +#endif + +#endif +#endif + +/* + * DDVIDEOPORTCONNECT + */ +typedef struct _DDVIDEOPORTCONNECT +{ + DWORD dwSize; // size of the DDVIDEOPORTCONNECT structure + DWORD dwPortWidth; // Width of the video port + GUID guidTypeID; // Description of video port connection + DWORD dwFlags; // Connection flags + ULONG_PTR dwReserved1; // Reserved, set to zero. +} DDVIDEOPORTCONNECT; + + +/* + * DDVIDEOPORTCAPS + */ +typedef struct _DDVIDEOPORTCAPS +{ + DWORD dwSize; // size of the DDVIDEOPORTCAPS structure + DWORD dwFlags; // indicates which fields contain data + DWORD dwMaxWidth; // max width of the video port field + DWORD dwMaxVBIWidth; // max width of the VBI data + DWORD dwMaxHeight; // max height of the video port field + DWORD dwVideoPortID; // Video port ID (0 - (dwMaxVideoPorts -1)) + DWORD dwCaps; // Video port capabilities + DWORD dwFX; // More video port capabilities + DWORD dwNumAutoFlipSurfaces; // Max number of autoflippable surfaces allowed + DWORD dwAlignVideoPortBoundary; // Byte restriction of placement within the surface + DWORD dwAlignVideoPortPrescaleWidth;// Byte restriction of width after prescaling + DWORD dwAlignVideoPortCropBoundary; // Byte restriction of left cropping + DWORD dwAlignVideoPortCropWidth; // Byte restriction of cropping width + DWORD dwPreshrinkXStep; // Width can be shrunk in steps of 1/x + DWORD dwPreshrinkYStep; // Height can be shrunk in steps of 1/x + DWORD dwNumVBIAutoFlipSurfaces; // Max number of VBI autoflippable surfaces allowed + DWORD dwNumPreferredAutoflip; // Optimal number of autoflippable surfaces for hardware + WORD wNumFilterTapsX; // Number of taps the prescaler uses in the X direction (0 - no prescale, 1 - replication, etc.) + WORD wNumFilterTapsY; // Number of taps the prescaler uses in the Y direction (0 - no prescale, 1 - replication, etc.) +} DDVIDEOPORTCAPS; + +/* + * The dwMaxWidth and dwMaxVBIWidth members are valid + */ +#define DDVPD_WIDTH 0x00000001l + +/* + * The dwMaxHeight member is valid + */ +#define DDVPD_HEIGHT 0x00000002l + +/* + * The dwVideoPortID member is valid + */ +#define DDVPD_ID 0x00000004l + +/* + * The dwCaps member is valid + */ +#define DDVPD_CAPS 0x00000008l + +/* + * The dwFX member is valid + */ +#define DDVPD_FX 0x00000010l + +/* + * The dwNumAutoFlipSurfaces member is valid + */ +#define DDVPD_AUTOFLIP 0x00000020l + +/* + * All of the alignment members are valid + */ +#define DDVPD_ALIGN 0x00000040l + +/* + * The dwNumPreferredAutoflip member is valid + */ +#define DDVPD_PREFERREDAUTOFLIP 0x00000080l + +/* + * The wNumFilterTapsX and wNumFilterTapsY fields are valid + */ +#define DDVPD_FILTERQUALITY 0x00000100l + +/* + * DDVIDEOPORTDESC + */ +typedef struct _DDVIDEOPORTDESC +{ + DWORD dwSize; // size of the DDVIDEOPORTDESC structure + DWORD dwFieldWidth; // width of the video port field + DWORD dwVBIWidth; // width of the VBI data + DWORD dwFieldHeight; // height of the video port field + DWORD dwMicrosecondsPerField; // Microseconds per video field + DWORD dwMaxPixelsPerSecond; // Maximum pixel rate per second + DWORD dwVideoPortID; // Video port ID (0 - (dwMaxVideoPorts -1)) + DWORD dwReserved1; // Reserved for future use - set to zero (struct padding) + DDVIDEOPORTCONNECT VideoPortType; // Description of video port connection + ULONG_PTR dwReserved2; // Reserved for future use - set to zero + ULONG_PTR dwReserved3; // Reserved for future use - set to zero +} DDVIDEOPORTDESC; + + +/* + * DDVIDEOPORTINFO + */ +typedef struct _DDVIDEOPORTINFO +{ + DWORD dwSize; // Size of the structure + DWORD dwOriginX; // Placement of the video data within the surface. + DWORD dwOriginY; // Placement of the video data within the surface. + DWORD dwVPFlags; // Video port options + RECT rCrop; // Cropping rectangle (optional). + DWORD dwPrescaleWidth; // Determines pre-scaling/zooming in the X direction (optional). + DWORD dwPrescaleHeight; // Determines pre-scaling/zooming in the Y direction (optional). + LPDDPIXELFORMAT lpddpfInputFormat; // Video format written to the video port + LPDDPIXELFORMAT lpddpfVBIInputFormat; // Input format of the VBI data + LPDDPIXELFORMAT lpddpfVBIOutputFormat;// Output format of the data + DWORD dwVBIHeight; // Specifies the number of lines of data within the vertical blanking interval. + ULONG_PTR dwReserved1; // Reserved for future use - set to zero + ULONG_PTR dwReserved2; // Reserved for future use - set to zero +} DDVIDEOPORTINFO; + + +/* + * DDVIDEOPORTBANDWIDTH + */ +typedef struct _DDVIDEOPORTBANDWIDTH +{ + DWORD dwSize; // Size of the structure + DWORD dwCaps; + DWORD dwOverlay; // Zoom factor at which overlay is supported + DWORD dwColorkey; // Zoom factor at which overlay w/ colorkey is supported + DWORD dwYInterpolate; // Zoom factor at which overlay w/ Y interpolation is supported + DWORD dwYInterpAndColorkey; // Zoom factor at which ovelray w/ Y interpolation and colorkeying is supported + ULONG_PTR dwReserved1; // Reserved for future use - set to zero + ULONG_PTR dwReserved2; // Reserved for future use - set to zero +} DDVIDEOPORTBANDWIDTH; + + +/* + * DDVIDEOPORTSTATUS + */ +typedef struct _DDVIDEOPORTSTATUS +{ + DWORD dwSize; // Size of the structure + BOOL bInUse; // TRUE if video port is currently being used + DWORD dwFlags; // Currently not used + DWORD dwReserved1; // Reserved for future use + DDVIDEOPORTCONNECT VideoPortType; // Information about the connection + ULONG_PTR dwReserved2; // Reserved for future use + ULONG_PTR dwReserved3; // Reserved for future use +} DDVIDEOPORTSTATUS; + +/* + * DDVIDEOPORTNOTIFY + */ +typedef struct _DDVIDEOPORTNOTIFY +{ + LARGE_INTEGER ApproximateTimeStamp; // Timestamp in the event notification + LONG lField; // 0 if even, 1 if odd, -1 if unknown + UINT dwSurfaceIndex; // Index in the surface chain of the surface that received the sample + LONG lDone; // Call InterlockedIncrement on this when done with sample +} DDVIDEOPORTNOTIFY; + + +/*============================================================================ + * + * Video Port Flags + * + * All flags are bit flags. + * + *==========================================================================*/ + +/**************************************************************************** + * + * VIDEOPORT DDVIDEOPORTCONNECT FLAGS + * + ****************************************************************************/ + +/* + * When this is set by the driver and passed to the client, this + * indicates that the video port is capable of double clocking the data. + * When this is set by the client, this indicates that the video port + * should enable double clocking. This flag is only valid with external + * syncs. + */ +#define DDVPCONNECT_DOUBLECLOCK 0x00000001l + +/* + * When this is set by the driver and passed to the client, this + * indicates that the video port is capable of using an external VACT + * signal. When this is set by the client, this indicates that the + * video port should use the external VACT signal. + */ +#define DDVPCONNECT_VACT 0x00000002l + +/* + * When this is set by the driver and passed to the client, this + * indicates that the video port is capable of treating even fields + * like odd fields and visa versa. When this is set by the client, + * this indicates that the video port should treat even fields like odd + * fields. + */ +#define DDVPCONNECT_INVERTPOLARITY 0x00000004l + +/* + * Indicates that any data written to the video port during the VREF + * period will not be written into the frame buffer. This flag is read only. + */ +#define DDVPCONNECT_DISCARDSVREFDATA 0x00000008l + +/* + * When this is set be the driver and passed to the client, this + * indicates that the device will write half lines into the frame buffer + * if half lines are provided by the decoder. If this is set by the client, + * this indicates that the decoder will be supplying half lines. + */ +#define DDVPCONNECT_HALFLINE 0x00000010l + +/* + * Indicates that the signal is interlaced. This flag is only + * set by the client. + */ +#define DDVPCONNECT_INTERLACED 0x00000020l + +/* + * Indicates that video port is shareable and that this video port + * will use the even fields. This flag is only set by the client. + */ +#define DDVPCONNECT_SHAREEVEN 0x00000040l + +/* + * Indicates that video port is shareable and that this video port + * will use the odd fields. This flag is only set by the client. + */ +#define DDVPCONNECT_SHAREODD 0x00000080l + +/**************************************************************************** + * + * VIDEOPORT DDVIDEOPORTDESC CAPS + * + ****************************************************************************/ + +/* + * Flip can be performed automatically to avoid tearing. + */ +#define DDVPCAPS_AUTOFLIP 0x00000001l + +/* + * Supports interlaced video + */ +#define DDVPCAPS_INTERLACED 0x00000002l + +/* + * Supports non-interlaced video + */ +#define DDVPCAPS_NONINTERLACED 0x00000004l + +/* + * Indicates that the device can return whether the current field + * of an interlaced signal is even or odd. + */ +#define DDVPCAPS_READBACKFIELD 0x00000008l + +/* + * Indicates that the device can return the current line of video + * being written into the frame buffer. + */ +#define DDVPCAPS_READBACKLINE 0x00000010l + +/* + * Allows two gen-locked video streams to share a single video port, + * where one stream uses the even fields and the other uses the odd + * fields. Separate parameters (including address, scaling, + * cropping, etc.) are maintained for both fields.) + */ +#define DDVPCAPS_SHAREABLE 0x00000020l + +/* + * Even fields of video can be automatically discarded. + */ +#define DDVPCAPS_SKIPEVENFIELDS 0x00000040l + +/* + * Odd fields of video can be automatically discarded. + */ +#define DDVPCAPS_SKIPODDFIELDS 0x00000080l + +/* + * Indicates that the device is capable of driving the graphics + * VSYNC with the video port VSYNC. + */ +#define DDVPCAPS_SYNCMASTER 0x00000100l + +/* + * Indicates that data within the vertical blanking interval can + * be written to a different surface. + */ +#define DDVPCAPS_VBISURFACE 0x00000200l + +/* + * Indicates that the video port can perform color operations + * on the incoming data before it is written to the frame buffer. + */ +#define DDVPCAPS_COLORCONTROL 0x00000400l + +/* + * Indicates that the video port can accept VBI data in a different + * width or format than the regular video data. + */ +#define DDVPCAPS_OVERSAMPLEDVBI 0x00000800l + +/* + * Indicates that the video port can write data directly to system memory + */ +#define DDVPCAPS_SYSTEMMEMORY 0x00001000l + +/* + * Indicates that the VBI and video portions of the video stream can + * be controlled by an independent processes. + */ +#define DDVPCAPS_VBIANDVIDEOINDEPENDENT 0x00002000l + +/* + * Indicates that the video port contains high quality hardware + * de-interlacing hardware that should be used instead of the + * bob/weave algorithms. + */ +#define DDVPCAPS_HARDWAREDEINTERLACE 0x00004000l + + +/**************************************************************************** + * + * VIDEOPORT DDVIDEOPORTDESC FX + * + ****************************************************************************/ + +/* + * Limited cropping is available to crop out the vertical interval data. + */ +#define DDVPFX_CROPTOPDATA 0x00000001l + +/* + * Incoming data can be cropped in the X direction before it is written + * to the surface. + */ +#define DDVPFX_CROPX 0x00000002l + +/* + * Incoming data can be cropped in the Y direction before it is written + * to the surface. + */ +#define DDVPFX_CROPY 0x00000004l + +/* + * Supports interleaving interlaced fields in memory. + */ +#define DDVPFX_INTERLEAVE 0x00000008l + +/* + * Supports mirroring left to right as the video data is written + * into the frame buffer. + */ +#define DDVPFX_MIRRORLEFTRIGHT 0x00000010l + +/* + * Supports mirroring top to bottom as the video data is written + * into the frame buffer. + */ +#define DDVPFX_MIRRORUPDOWN 0x00000020l + +/* + * Data can be arbitrarily shrunk in the X direction before it + * is written to the surface. + */ +#define DDVPFX_PRESHRINKX 0x00000040l + +/* + * Data can be arbitrarily shrunk in the Y direction before it + * is written to the surface. + */ +#define DDVPFX_PRESHRINKY 0x00000080l + +/* + * Data can be binary shrunk (1/2, 1/4, 1/8, etc.) in the X + * direction before it is written to the surface. + */ +#define DDVPFX_PRESHRINKXB 0x00000100l + +/* + * Data can be binary shrunk (1/2, 1/4, 1/8, etc.) in the Y + * direction before it is written to the surface. + */ +#define DDVPFX_PRESHRINKYB 0x00000200l + +/* + * Data can be shrunk in increments of 1/x in the X direction + * (where X is specified in the DDVIDEOPORTCAPS.dwPreshrinkXStep) + * before it is written to the surface. + */ +#define DDVPFX_PRESHRINKXS 0x00000400l + +/* + * Data can be shrunk in increments of 1/x in the Y direction + * (where X is specified in the DDVIDEOPORTCAPS.dwPreshrinkYStep) + * before it is written to the surface. + */ +#define DDVPFX_PRESHRINKYS 0x00000800l + +/* + * Data can be arbitrarily stretched in the X direction before + * it is written to the surface. + */ +#define DDVPFX_PRESTRETCHX 0x00001000l + +/* + * Data can be arbitrarily stretched in the Y direction before + * it is written to the surface. + */ +#define DDVPFX_PRESTRETCHY 0x00002000l + +/* + * Data can be integer stretched in the X direction before it is + * written to the surface. + */ +#define DDVPFX_PRESTRETCHXN 0x00004000l + +/* + * Data can be integer stretched in the Y direction before it is + * written to the surface. + */ +#define DDVPFX_PRESTRETCHYN 0x00008000l + +/* + * Indicates that data within the vertical blanking interval can + * be converted independently of the remaining video data. + */ +#define DDVPFX_VBICONVERT 0x00010000l + +/* + * Indicates that scaling can be disabled for data within the + * vertical blanking interval. + */ +#define DDVPFX_VBINOSCALE 0x00020000l + +/* + * Indicates that the video data can ignore the left and right + * cropping coordinates when cropping oversampled VBI data. + */ +#define DDVPFX_IGNOREVBIXCROP 0x00040000l + +/* + * Indicates that interleaving can be disabled for data within the + * vertical blanking interval. + */ +#define DDVPFX_VBINOINTERLEAVE 0x00080000l + + +/**************************************************************************** + * + * VIDEOPORT DDVIDEOPORTINFO FLAGS + * + ****************************************************************************/ + +/* + * Perform automatic flipping. Auto-flipping is performed between + * the overlay surface that was attached to the video port using + * IDirectDrawVideoPort::AttachSurface and the overlay surfaces that + * are attached to the surface via the IDirectDrawSurface::AttachSurface + * method. The flip order is the order in which the overlay surfaces + * were. attached. + */ +#define DDVP_AUTOFLIP 0x00000001l + +/* + * Perform conversion using the ddpfOutputFormat information. + */ +#define DDVP_CONVERT 0x00000002l + +/* + * Perform cropping using the specified rectangle. + */ +#define DDVP_CROP 0x00000004l + +/* + * Indicates that interlaced fields should be interleaved in memory. + */ +#define DDVP_INTERLEAVE 0x00000008l + +/* + * Indicates that the data should be mirrored left to right as it's + * written into the frame buffer. + */ +#define DDVP_MIRRORLEFTRIGHT 0x00000010l + +/* + * Indicates that the data should be mirrored top to bottom as it's + * written into the frame buffer. + */ +#define DDVP_MIRRORUPDOWN 0x00000020l + +/* + * Perform pre-scaling/zooming based on the pre-scale parameters. + */ +#define DDVP_PRESCALE 0x00000040l + +/* + * Ignore input of even fields. + */ +#define DDVP_SKIPEVENFIELDS 0x00000080l + +/* + * Ignore input of odd fields. + */ +#define DDVP_SKIPODDFIELDS 0x00000100l + +/* + * Drive the graphics VSYNCs using the video port VYSNCs. + */ +#define DDVP_SYNCMASTER 0x00000200l + +/* + * The ddpfVBIOutputFormatFormat member contains data that should be used + * to convert the data within the vertical blanking interval. + */ +#define DDVP_VBICONVERT 0x00000400l + +/* + * Indicates that data within the vertical blanking interval + * should not be scaled. + */ +#define DDVP_VBINOSCALE 0x00000800l + +/* + * Indicates that these bob/weave decisions should not be + * overriden by other interfaces. + */ +#define DDVP_OVERRIDEBOBWEAVE 0x00001000l + +/* + * Indicates that the video data should ignore the left and right + * cropping coordinates when cropping the VBI data. + */ +#define DDVP_IGNOREVBIXCROP 0x00002000l + +/* + * Indicates that interleaving can be disabled for data within the + * vertical blanking interval. + */ +#define DDVP_VBINOINTERLEAVE 0x00004000l + +/* + * Indicates that the video port should use the hardware + * de-interlacing hardware. + */ +#define DDVP_HARDWAREDEINTERLACE 0x00008000l + +/**************************************************************************** + * + * DIRIRECTDRAWVIDEOPORT GETINPUTFORMAT/GETOUTPUTFORMAT FLAGS + * + ****************************************************************************/ + +/* + * Return formats for the video data + */ +#define DDVPFORMAT_VIDEO 0x00000001l + +/* + * Return formats for the VBI data + */ +#define DDVPFORMAT_VBI 0x00000002l + +/**************************************************************************** + * + * DIRIRECTDRAWVIDEOPORT SETTARGETSURFACE FLAGS + * + ****************************************************************************/ + +/* + * Surface should receive video data (and VBI data if a surface + * is not explicitly attached for that purpose) + */ +#define DDVPTARGET_VIDEO 0x00000001l + +/* + * Surface should receive VBI data + */ +#define DDVPTARGET_VBI 0x00000002l + + +/**************************************************************************** + * + * DIRIRECTDRAWVIDEOPORT WAITFORSYNC FLAGS + * + ****************************************************************************/ + +/* + * Waits until the beginning of the next VSYNC + */ +#define DDVPWAIT_BEGIN 0x00000001l + +/* + * Waits until the end of the next/current VSYNC + */ +#define DDVPWAIT_END 0x00000002l + +/* + * Waits until the beginning of the specified line + */ +#define DDVPWAIT_LINE 0x00000003l + +/**************************************************************************** + * + * DIRECTDRAWVIDEOPORT FLIP FLAGS + * + ****************************************************************************/ + +/* + * Flips the normal video surface + */ +#define DDVPFLIP_VIDEO 0x00000001l + +/* + * Flips the VBI surface + */ +#define DDVPFLIP_VBI 0x00000002l + +/**************************************************************************** + * + * DIRIRECTDRAWVIDEOPORT GETVIDEOSIGNALSTATUS VALUES + * + ****************************************************************************/ + +/* + * No video signal is present at the video port + */ +#define DDVPSQ_NOSIGNAL 0x00000001l + +/* + * A valid video signal is present at the video port + */ +#define DDVPSQ_SIGNALOK 0x00000002l + +/**************************************************************************** + * + * VIDEOPORTBANDWIDTH Flags + * + ****************************************************************************/ + +/* + * The specified height/width refer to the size of the video port data + * written into memory, after prescaling has occured. + */ +#define DDVPB_VIDEOPORT 0x00000001l + +/* + * The specified height/width refer to the source size of the overlay. + */ +#define DDVPB_OVERLAY 0x00000002l + +/* + * This is a query for the device to return which caps this device requires. + */ +#define DDVPB_TYPE 0x00000004l + +/**************************************************************************** + * + * VIDEOPORTBANDWIDTH Caps + * + ****************************************************************************/ + +/* + * The bandwidth for this device is dependant on the overlay source size. + */ +#define DDVPBCAPS_SOURCE 0x00000001l + +/* + * The bandwidth for this device is dependant on the overlay destination + * size. + */ +#define DDVPBCAPS_DESTINATION 0x00000002l + +/**************************************************************************** + * + * DDVIDEOPORTCONTAINER CreateVideoPort flags + * + ****************************************************************************/ + +/* + * The process only wants to control the VBI portion of the video stream. + */ +#define DDVPCREATE_VBIONLY 0x00000001l + +/* + * The process only wants to control the non-VBI (video) portion of + * the video stream. + */ +#define DDVPCREATE_VIDEOONLY 0x00000002l + +/**************************************************************************** + * + * DDVIDEOPORTSTATUS flags + * + ****************************************************************************/ + +/* + * The video port interface is only controlling the VBI portion of the + * video stream + */ +#define DDVPSTATUS_VBIONLY 0x00000001l + +/* + * The video port interface is only controlling the video portion of the + * video stream + */ +#define DDVPSTATUS_VIDEOONLY 0x00000002l + + +#ifdef __cplusplus +}; +#endif + +#endif // GUID_DEFS_ONLY + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwmapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwmapi.h new file mode 100644 index 0000000000000000000000000000000000000000..a6bfbbb4ecdd13efc78f19e67ed0c5ed19282201 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwmapi.h @@ -0,0 +1,699 @@ +// Copyright (C) Microsoft Corporation. All rights reserved. +#ifndef _DWMAPI_H_ +#define _DWMAPI_H_ + +#include +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifndef DWMAPI +#if !defined(_DWMAPI_) +#define DWMAPI EXTERN_C DECLSPEC_IMPORT HRESULT STDAPICALLTYPE +#define DWMAPI_(type) EXTERN_C DECLSPEC_IMPORT type STDAPICALLTYPE +#else +#define DWMAPI STDAPI +#define DWMAPI_(type) STDAPI_(type) +#endif /* _DWMAPI_ */ +#endif /* DWMAPI */ + +#ifndef MILCORE_KERNEL_COMPONENT +#include +#include +#endif + +#include + +// Blur behind data structures +#define DWM_BB_ENABLE 0x00000001 // fEnable has been specified +#define DWM_BB_BLURREGION 0x00000002 // hRgnBlur has been specified +#define DWM_BB_TRANSITIONONMAXIMIZED 0x00000004 // fTransitionOnMaximized has been specified + +typedef struct _DWM_BLURBEHIND +{ + DWORD dwFlags; + BOOL fEnable; + HRGN hRgnBlur; + BOOL fTransitionOnMaximized; +} DWM_BLURBEHIND, *PDWM_BLURBEHIND; + +// Window attributes +enum DWMWINDOWATTRIBUTE +{ + DWMWA_NCRENDERING_ENABLED = 1, // [get] Is non-client rendering enabled/disabled + DWMWA_NCRENDERING_POLICY, // [set] DWMNCRENDERINGPOLICY - Non-client rendering policy + DWMWA_TRANSITIONS_FORCEDISABLED, // [set] Potentially enable/forcibly disable transitions + DWMWA_ALLOW_NCPAINT, // [set] Allow contents rendered in the non-client area to be visible on the DWM-drawn frame. + DWMWA_CAPTION_BUTTON_BOUNDS, // [get] Bounds of the caption button area in window-relative space. + DWMWA_NONCLIENT_RTL_LAYOUT, // [set] Is non-client content RTL mirrored + DWMWA_FORCE_ICONIC_REPRESENTATION, // [set] Force this window to display iconic thumbnails. + DWMWA_FLIP3D_POLICY, // [set] Designates how Flip3D will treat the window. + DWMWA_EXTENDED_FRAME_BOUNDS, // [get] Gets the extended frame bounds rectangle in screen space + DWMWA_HAS_ICONIC_BITMAP, // [set] Indicates an available bitmap when there is no better thumbnail representation. + DWMWA_DISALLOW_PEEK, // [set] Don't invoke Peek on the window. + DWMWA_EXCLUDED_FROM_PEEK, // [set] LivePreview exclusion information + DWMWA_CLOAK, // [set] Cloak or uncloak the window + DWMWA_CLOAKED, // [get] Gets the cloaked state of the window + DWMWA_FREEZE_REPRESENTATION, // [set] BOOL, Force this window to freeze the thumbnail without live update + DWMWA_PASSIVE_UPDATE_MODE, // [set] BOOL, Updates the window only when desktop composition runs for other reasons + DWMWA_USE_HOSTBACKDROPBRUSH, // [set] BOOL, Allows the use of host backdrop brushes for the window. + DWMWA_USE_IMMERSIVE_DARK_MODE = 20, // [set] BOOL, Allows a window to either use the accent color, or dark, according to the user Color Mode preferences. + DWMWA_WINDOW_CORNER_PREFERENCE = 33, // [set] WINDOW_CORNER_PREFERENCE, Controls the policy that rounds top-level window corners + DWMWA_BORDER_COLOR, // [set] COLORREF, The color of the thin border around a top-level window + DWMWA_CAPTION_COLOR, // [set] COLORREF, The color of the caption + DWMWA_TEXT_COLOR, // [set] COLORREF, The color of the caption text + DWMWA_VISIBLE_FRAME_BORDER_THICKNESS, // [get] UINT, width of the visible border around a thick frame window + DWMWA_SYSTEMBACKDROP_TYPE, // [get, set] SYSTEMBACKDROP_TYPE, Controls the system-drawn backdrop material of a window, including behind the non-client area. + DWMWA_REDIRECTIONBITMAP_ALPHA, // [set] BOOL, GDI redirection bitmap contains premultiplied alpha + DWMWA_BORDER_MARGINS, // [set] FRAME_MARGIN, Override location of window border (distance from each edge) + DWMWA_LAST +}; + +typedef enum { + /* + * Let the system decide whether or not to round window corners + */ + DWMWCP_DEFAULT = 0, + + /* + * Never round window corners + */ + DWMWCP_DONOTROUND = 1, + + /* + * Round the corners if appropriate + */ + DWMWCP_ROUND = 2, + + /* + * Round the corners if appropriate, with a small radius + */ + DWMWCP_ROUNDSMALL = 3 + +} DWM_WINDOW_CORNER_PREFERENCE; + +// Use this constant to reset any window part colors to the system default behavior +#define DWMWA_COLOR_DEFAULT 0xFFFFFFFF + +// Use this constant to specify that a window part should not be rendered +#define DWMWA_COLOR_NONE 0xFFFFFFFE + +// Types used with DWMWA_SYSTEMBACKDROP_TYPE +enum DWM_SYSTEMBACKDROP_TYPE +{ + DWMSBT_AUTO, // [Default] Let DWM automatically decide the system-drawn backdrop for this window. + DWMSBT_NONE, // Do not draw any system backdrop. + DWMSBT_MAINWINDOW, // Draw the backdrop material effect corresponding to a long-lived window. + DWMSBT_TRANSIENTWINDOW, // Draw the backdrop material effect corresponding to a transient window. + DWMSBT_TABBEDWINDOW, // Draw the backdrop material effect corresponding to a window with a tabbed title bar. +}; + + +// Non-client rendering policy attribute values +enum DWMNCRENDERINGPOLICY +{ + DWMNCRP_USEWINDOWSTYLE, // Enable/disable non-client rendering based on window style + DWMNCRP_DISABLED, // Disabled non-client rendering; window style is ignored + DWMNCRP_ENABLED, // Enabled non-client rendering; window style is ignored + DWMNCRP_LAST +}; + +// Values designating how Flip3D treats a given window. +enum DWMFLIP3DWINDOWPOLICY +{ + DWMFLIP3D_DEFAULT, // Hide or include the window in Flip3D based on window style and visibility. + DWMFLIP3D_EXCLUDEBELOW, // Display the window under Flip3D and disabled. + DWMFLIP3D_EXCLUDEABOVE, // Display the window above Flip3D and enabled. + DWMFLIP3D_LAST +}; + +// Cloaked flags describing why a window is cloaked. +#define DWM_CLOAKED_APP 0x00000001 +#define DWM_CLOAKED_SHELL 0x00000002 +#define DWM_CLOAKED_INHERITED 0x00000004 + +#pragma region Thumbnails +typedef HANDLE HTHUMBNAIL; +typedef HTHUMBNAIL* PHTHUMBNAIL; + +#pragma region Flags for DWM_THUMBNAIL_PROPERTIES +#define DWM_TNP_RECTDESTINATION 0x00000001 // A value for the "rcDestination" member has been specified. +#define DWM_TNP_RECTSOURCE 0x00000002 // A value for the "rcSource" member has been specified. +#define DWM_TNP_OPACITY 0x00000004 // A value for the "opacity" member has been specified. +#define DWM_TNP_VISIBLE 0x00000008 // A value for the "fVisible" member has been specified. +#define DWM_TNP_SOURCECLIENTAREAONLY 0x00000010 // A value for the "fSourceClientAreaOnly" member has been specified. +#pragma endregion + +typedef struct _DWM_THUMBNAIL_PROPERTIES +{ + DWORD dwFlags; // Specifies which members of this struct have been specified + RECT rcDestination; // The area in the destination window where the thumbnail will be rendered + RECT rcSource; // The region of the source window to use as the thumbnail. By default, the entire window is used as the thumbnail + BYTE opacity; // The opacity with which to render the thumbnail. 0 is fully transparent, while 255 is fully opaque. The default value is 255 + BOOL fVisible; // Whether the thumbnail should be visible. The default is FALSE + BOOL fSourceClientAreaOnly; // Whether only the client area of the source window should be included in the thumbnail. The default is FALSE +} DWM_THUMBNAIL_PROPERTIES, *PDWM_THUMBNAIL_PROPERTIES; +#pragma endregion + +// Video enabling apis + +typedef ULONGLONG DWM_FRAME_COUNT; +typedef ULONGLONG QPC_TIME; + +typedef struct _UNSIGNED_RATIO +{ + UINT32 uiNumerator; + UINT32 uiDenominator; +} UNSIGNED_RATIO; + +typedef struct _DWM_TIMING_INFO +{ + UINT32 cbSize; + + // Data on DWM composition overall + + // Monitor refresh rate + UNSIGNED_RATIO rateRefresh; + + // Actual period + QPC_TIME qpcRefreshPeriod; + + // composition rate + UNSIGNED_RATIO rateCompose; + + // QPC time at a VSync interupt + QPC_TIME qpcVBlank; + + // DWM refresh count of the last vsync + // DWM refresh count is a 64bit number where zero is + // the first refresh the DWM woke up to process + DWM_FRAME_COUNT cRefresh; + + // DX refresh count at the last Vsync Interupt + // DX refresh count is a 32bit number with zero + // being the first refresh after the card was initialized + // DX increments a counter when ever a VSync ISR is processed + // It is possible for DX to miss VSyncs + // + // There is not a fixed mapping between DX and DWM refresh counts + // because the DX will rollover and may miss VSync interupts + UINT cDXRefresh; + + // QPC time at a compose time. + QPC_TIME qpcCompose; + + // Frame number that was composed at qpcCompose + DWM_FRAME_COUNT cFrame; + + // The present number DX uses to identify renderer frames + UINT cDXPresent; + + // Refresh count of the frame that was composed at qpcCompose + DWM_FRAME_COUNT cRefreshFrame; + + + // DWM frame number that was last submitted + DWM_FRAME_COUNT cFrameSubmitted; + + // DX Present number that was last submitted + UINT cDXPresentSubmitted; + + // DWM frame number that was last confirmed presented + DWM_FRAME_COUNT cFrameConfirmed; + + // DX Present number that was last confirmed presented + UINT cDXPresentConfirmed; + + // The target refresh count of the last + // frame confirmed completed by the GPU + DWM_FRAME_COUNT cRefreshConfirmed; + + // DX refresh count when the frame was confirmed presented + UINT cDXRefreshConfirmed; + + // Number of frames the DWM presented late + // AKA Glitches + DWM_FRAME_COUNT cFramesLate; + + // the number of composition frames that + // have been issued but not confirmed completed + UINT cFramesOutstanding; + + + // Following fields are only relavent when an HWND is specified + // Display frame + + + // Last frame displayed + DWM_FRAME_COUNT cFrameDisplayed; + + // QPC time of the composition pass when the frame was displayed + QPC_TIME qpcFrameDisplayed; + + // Count of the VSync when the frame should have become visible + DWM_FRAME_COUNT cRefreshFrameDisplayed; + + // Complete frames: DX has notified the DWM that the frame is done rendering + + // ID of the the last frame marked complete (starts at 0) + DWM_FRAME_COUNT cFrameComplete; + + // QPC time when the last frame was marked complete + QPC_TIME qpcFrameComplete; + + // Pending frames: + // The application has been submitted to DX but not completed by the GPU + + // ID of the the last frame marked pending (starts at 0) + DWM_FRAME_COUNT cFramePending; + + // QPC time when the last frame was marked pending + QPC_TIME qpcFramePending; + + // number of unique frames displayed + DWM_FRAME_COUNT cFramesDisplayed; + + // number of new completed frames that have been received + DWM_FRAME_COUNT cFramesComplete; + + // number of new frames submitted to DX but not yet complete + DWM_FRAME_COUNT cFramesPending; + + // number of frames available but not displayed, used or dropped + DWM_FRAME_COUNT cFramesAvailable; + + // number of rendered frames that were never + // displayed because composition occured too late + DWM_FRAME_COUNT cFramesDropped; + + // number of times an old frame was composed + // when a new frame should have been used + // but was not available + DWM_FRAME_COUNT cFramesMissed; + + // the refresh at which the next frame is + // scheduled to be displayed + DWM_FRAME_COUNT cRefreshNextDisplayed; + + // the refresh at which the next DX present is + // scheduled to be displayed + DWM_FRAME_COUNT cRefreshNextPresented; + + // The total number of refreshes worth of content + // for this HWND that have been displayed by the DWM + // since DwmSetPresentParameters was called + DWM_FRAME_COUNT cRefreshesDisplayed; + + // The total number of refreshes worth of content + // that have been presented by the application + // since DwmSetPresentParameters was called + DWM_FRAME_COUNT cRefreshesPresented; + + + // The actual refresh # when content for this + // window started to be displayed + // it may be different than that requested + // DwmSetPresentParameters + DWM_FRAME_COUNT cRefreshStarted; + + // Total number of pixels DX redirected + // to the DWM. + // If Queueing is used the full buffer + // is transfered on each present. + // If not queuing it is possible only + // a dirty region is updated + ULONGLONG cPixelsReceived; + + // Total number of pixels drawn. + // Does not take into account if + // if the window is only partial drawn + // do to clipping or dirty rect management + ULONGLONG cPixelsDrawn; + + // The number of buffers in the flipchain + // that are empty. An application can + // present that number of times and guarantee + // it won't be blocked waiting for a buffer to + // become empty to present to + DWM_FRAME_COUNT cBuffersEmpty; + +} DWM_TIMING_INFO; + +typedef enum +{ + // Use the first source frame that + // includes the first refresh of the output frame + DWM_SOURCE_FRAME_SAMPLING_POINT, + + // use the source frame that includes the most + // refreshes of out the output frame + // in case of multiple source frames with the + // same coverage the last will be used + DWM_SOURCE_FRAME_SAMPLING_COVERAGE, + + // Sentinel value + DWM_SOURCE_FRAME_SAMPLING_LAST +} DWM_SOURCE_FRAME_SAMPLING; + +EXTERN_C __declspec(selectany) const UINT c_DwmMaxQueuedBuffers = 8; +EXTERN_C __declspec(selectany) const UINT c_DwmMaxMonitors = 16; +EXTERN_C __declspec(selectany) const UINT c_DwmMaxAdapters = 16; + +#pragma warning(push) +#pragma warning(disable:4201) +typedef struct _DWM_PRESENT_PARAMETERS +{ + UINT32 cbSize; + BOOL fQueue; + DWM_FRAME_COUNT cRefreshStart; + UINT cBuffer; + BOOL fUseSourceRate; + UNSIGNED_RATIO rateSource; + UINT cRefreshesPerFrame; + DWM_SOURCE_FRAME_SAMPLING eSampling; +} DWM_PRESENT_PARAMETERS; +#pragma warning(pop) + + + +#define DWM_FRAME_DURATION_DEFAULT -1 + +DWMAPI_(BOOL) +DwmDefWindowProc( + _In_ HWND hWnd, + UINT msg, + WPARAM wParam, + LPARAM lParam, + _Out_ LRESULT *plResult + ); + +DWMAPI +DwmEnableBlurBehindWindow( + HWND hWnd, + _In_ const DWM_BLURBEHIND* pBlurBehind + ); + +#define DWM_EC_DISABLECOMPOSITION 0 +#define DWM_EC_ENABLECOMPOSITION 1 + + +DWMAPI +DwmEnableComposition( + UINT uCompositionAction + ); + +#if NTDDI_VERSION >= NTDDI_WIN8 +#pragma deprecated (DwmEnableComposition) +#endif + +DWMAPI +DwmEnableMMCSS( + BOOL fEnableMMCSS + ); + +DWMAPI +DwmExtendFrameIntoClientArea( + HWND hWnd, + _In_ const MARGINS* pMarInset + ); + +DWMAPI +DwmGetColorizationColor( + _Out_ DWORD* pcrColorization, + _Out_ BOOL* pfOpaqueBlend + ); + +DWMAPI +DwmGetCompositionTimingInfo( + HWND hwnd, + _Out_ DWM_TIMING_INFO* pTimingInfo + ); + + +DWMAPI +DwmGetWindowAttribute( + HWND hwnd, + DWORD dwAttribute, + _Out_writes_bytes_(cbAttribute) PVOID pvAttribute, + DWORD cbAttribute + ); + +DWMAPI +DwmIsCompositionEnabled( + _Out_ BOOL* pfEnabled + ); + +DWMAPI +DwmModifyPreviousDxFrameDuration( + HWND hwnd, + INT cRefreshes, + BOOL fRelative + ); + +DWMAPI +DwmQueryThumbnailSourceSize( + HTHUMBNAIL hThumbnail, + _Out_ PSIZE pSize + ); + +DWMAPI +DwmRegisterThumbnail( + HWND hwndDestination, + HWND hwndSource, + _Out_ PHTHUMBNAIL phThumbnailId + ); + +DWMAPI +DwmSetDxFrameDuration( + HWND hwnd, + INT cRefreshes + ); + +DWMAPI +DwmSetPresentParameters( + HWND hwnd, + _Inout_ DWM_PRESENT_PARAMETERS* pPresentParams + ); + +DWMAPI +DwmSetWindowAttribute( + HWND hwnd, + DWORD dwAttribute, + _In_reads_bytes_(cbAttribute) LPCVOID pvAttribute, + DWORD cbAttribute + ); + +DWMAPI +DwmUnregisterThumbnail( + HTHUMBNAIL hThumbnailId + ); + +DWMAPI +DwmUpdateThumbnailProperties( + HTHUMBNAIL hThumbnailId, + _In_ const DWM_THUMBNAIL_PROPERTIES* ptnProperties + ); + +#if(_WIN32_WINNT >= 0x0601) +#define DWM_SIT_DISPLAYFRAME 0x00000001 // Display a window frame around the provided bitmap + +DWMAPI DwmSetIconicThumbnail( + HWND hwnd, + HBITMAP hbmp, + DWORD dwSITFlags + ); + +DWMAPI DwmSetIconicLivePreviewBitmap( + HWND hwnd, + HBITMAP hbmp, + _In_opt_ POINT *pptClient, + DWORD dwSITFlags + ); + +DWMAPI DwmInvalidateIconicBitmaps( + HWND hwnd + ); + +#endif /* _WIN32_WINNT >= 0x0601 */ + +DWMAPI +DwmAttachMilContent( + _In_ HWND hwnd + ); + +DWMAPI +DwmDetachMilContent( + _In_ HWND hwnd + ); + +DWMAPI +DwmFlush(); + +#ifndef MILCORE_KERNEL_COMPONENT +#ifndef _MIL_MATRIX3X2D_DEFINED + +typedef struct _MilMatrix3x2D +{ + DOUBLE S_11; + DOUBLE S_12; + DOUBLE S_21; + DOUBLE S_22; + DOUBLE DX; + DOUBLE DY; +} MilMatrix3x2D; + +#define _MIL_MATRIX3X2D_DEFINED + +#endif // _MIL_MATRIX3X2D_DEFINED + +#ifndef MILCORE_MIL_MATRIX3X2D_COMPAT_TYPEDEF +// Compatibility for Vista dwm api. +typedef MilMatrix3x2D MIL_MATRIX3X2D; +#define MILCORE_MIL_MATRIX3X2D_COMPAT_TYPEDEF +#endif // MILCORE_MIL_MATRIX3X2D_COMPAT_TYPEDEF + +DWMAPI +DwmGetGraphicsStreamTransformHint( + UINT uIndex, + _Out_ MilMatrix3x2D *pTransform + ); + +DWMAPI +DwmGetGraphicsStreamClient( + UINT uIndex, + _Out_ UUID *pClientUuid + ); +#endif // MILCORE_KERNEL_COMPONENT + +DWMAPI +DwmGetTransportAttributes( + _Out_writes_(1) BOOL *pfIsRemoting, + _Out_writes_(1) BOOL *pfIsConnected, + _Out_writes_(1) DWORD *pDwGeneration + ); + + +enum DWMTRANSITION_OWNEDWINDOW_TARGET +{ + DWMTRANSITION_OWNEDWINDOW_NULL = -1, + DWMTRANSITION_OWNEDWINDOW_REPOSITION = 0, +}; + +DWMAPI +DwmTransitionOwnedWindow( + HWND hwnd, + enum DWMTRANSITION_OWNEDWINDOW_TARGET target + ); + + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +enum GESTURE_TYPE +{ + GT_PEN_TAP = 0, + GT_PEN_DOUBLETAP = 1, + GT_PEN_RIGHTTAP = 2, + GT_PEN_PRESSANDHOLD = 3, + GT_PEN_PRESSANDHOLDABORT = 4, + GT_TOUCH_TAP = 5, + GT_TOUCH_DOUBLETAP = 6, + GT_TOUCH_RIGHTTAP = 7, + GT_TOUCH_PRESSANDHOLD = 8, + GT_TOUCH_PRESSANDHOLDABORT = 9, + GT_TOUCH_PRESSANDTAP = 10, +}; + +DWMAPI +DwmRenderGesture( + _In_ enum GESTURE_TYPE gt, + _In_ UINT cContacts, + _In_reads_(cContacts) const DWORD *pdwPointerID, + _In_reads_(cContacts) const POINT *pPoints + ); + +DWMAPI +DwmTetherContact( + DWORD dwPointerID, + BOOL fEnable, + POINT ptTether + ); + +enum DWM_SHOWCONTACT +{ + DWMSC_DOWN = 0x00000001, + DWMSC_UP = 0x00000002, + DWMSC_DRAG = 0x00000004, + DWMSC_HOLD = 0x00000008, + DWMSC_PENBARREL = 0x00000010, + + DWMSC_NONE = 0x00000000, + DWMSC_ALL = 0xFFFFFFFF +}; +DEFINE_ENUM_FLAG_OPERATORS(DWM_SHOWCONTACT); + +DWMAPI +DwmShowContact( + DWORD dwPointerID, + enum DWM_SHOWCONTACT eShowContact + ); +#endif // NTDDI_WIN8 + + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +enum DWM_TAB_WINDOW_REQUIREMENTS +{ + // This result means the window meets all requirements requested. + DWMTWR_NONE = 0x0000, + + // In some configurations, admin/user setting or mode of the system means that windows won't be tabbed + // This requirement says that the system/mode must implement tabbing and if it does not + // nothing can be done to change this. + DWMTWR_IMPLEMENTED_BY_SYSTEM = 0x0001, + + // The window has an owner or parent so is ineligible for tabbing. + DWMTWR_WINDOW_RELATIONSHIP = 0x0002, + + // The window has styles that make it ineligible for tabbing. + // To be eligible windows must: + // Have the WS_OVERLAPPEDWINDOW (WS_CAPTION, WS_THICKFRAME, etc.) styles set. + // Not have WS_POPUP, WS_CHILD or WS_DLGFRAME set. + // Not have WS_EX_TOPMOST or WS_EX_TOOLWINDOW set. + DWMTWR_WINDOW_STYLES = 0x0004, + + // The window has a region (set using SetWindowRgn) making it ineligible. + DWMTWR_WINDOW_REGION = 0x0008, + + // The window is ineligible due to its Dwm configuration. + // It must not extended its client area into the title bar using DwmExtendFrameIntoClientArea + // It must not have DWMWA_NCRENDERING_POLICY set to DWMNCRP_ENABLED + DWMTWR_WINDOW_DWM_ATTRIBUTES = 0x0010, + + // The window is ineligible due to it's margins, most likely due to custom handling in WM_NCCALCSIZE. + // The window must use the default window margins for the non-client area. + DWMTWR_WINDOW_MARGINS = 0x0020, + + // The window has been explicitly opted out by setting DWMWA_TABBING_ENABLED to FALSE. + DWMTWR_TABBING_ENABLED = 0x0040, + + // The user has configured this application to not participate in tabbing. + DWMTWR_USER_POLICY = 0x0080, + + // The group policy has configured this application to not participate in tabbing. + DWMTWR_GROUP_POLICY = 0x0100, + + // This is set if app compat has blocked tabs for this window. Can be overridden per window by setting + // DWMWA_TABBING_ENABLED to TRUE. That does not override any other tabbing requirements. + DWMTWR_APP_COMPAT = 0x0200 +}; +DEFINE_ENUM_FLAG_OPERATORS(DWM_TAB_WINDOW_REQUIREMENTS); + +// Checks the requirements needed to get tabs in the application title bar. +DWMAPI DwmGetUnmetTabRequirements(_In_opt_ HWND appWindow, _Out_ enum DWM_TAB_WINDOW_REQUIREMENTS* value); + +#endif // NTDDI_WIN10_RS4 + + +#include + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#endif // _DWMAPI_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite.h new file mode 100644 index 0000000000000000000000000000000000000000..08c3cf50e86af0985dd2cec48864617d357e1c48 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite.h @@ -0,0 +1,5138 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// DirectX Typography Services public API definitions. +// +//---------------------------------------------------------------------------- + +#ifndef DWRITE_H_INCLUDED +#define DWRITE_H_INCLUDED + +#pragma once + +#ifndef DWRITE_NO_WINDOWS_H + +#include +#include + +#endif // DWRITE_NO_WINDOWS_H + +#include + +#ifndef DWRITE_DECLARE_INTERFACE +#define DWRITE_DECLARE_INTERFACE(iid) DECLSPEC_UUID(iid) DECLSPEC_NOVTABLE +#endif + +#ifndef DWRITE_BEGIN_INTERFACE +#define DWRITE_BEGIN_INTERFACE(name, iid) interface DWRITE_DECLARE_INTERFACE(iid) name +#endif + +#ifndef DWRITE_EXPORT +#define DWRITE_EXPORT __declspec(dllimport) WINAPI +#endif + +/// +/// The type of a font represented by a single font file. +/// Font formats that consist of multiple files, e.g. Type 1 .PFM and .PFB, have +/// separate enum values for each of the file type. +/// +enum DWRITE_FONT_FILE_TYPE +{ + /// + /// Font type is not recognized by the DirectWrite font system. + /// + DWRITE_FONT_FILE_TYPE_UNKNOWN, + + /// + /// OpenType font with CFF outlines. + /// + DWRITE_FONT_FILE_TYPE_CFF, + + /// + /// OpenType font with TrueType outlines. + /// + DWRITE_FONT_FILE_TYPE_TRUETYPE, + + /// + /// OpenType font that contains a TrueType collection. + /// + DWRITE_FONT_FILE_TYPE_OPENTYPE_COLLECTION, + + /// + /// Type 1 PFM font. + /// + DWRITE_FONT_FILE_TYPE_TYPE1_PFM, + + /// + /// Type 1 PFB font. + /// + DWRITE_FONT_FILE_TYPE_TYPE1_PFB, + + /// + /// Vector .FON font. + /// + DWRITE_FONT_FILE_TYPE_VECTOR, + + /// + /// Bitmap .FON font. + /// + DWRITE_FONT_FILE_TYPE_BITMAP, + + // The following name is obsolete, but kept as an alias to avoid breaking existing code. + DWRITE_FONT_FILE_TYPE_TRUETYPE_COLLECTION = DWRITE_FONT_FILE_TYPE_OPENTYPE_COLLECTION, +}; + +/// +/// The file format of a complete font face. +/// Font formats that consist of multiple files, e.g. Type 1 .PFM and .PFB, have +/// a single enum entry. +/// +enum DWRITE_FONT_FACE_TYPE +{ + /// + /// OpenType font face with CFF outlines. + /// + DWRITE_FONT_FACE_TYPE_CFF, + + /// + /// OpenType font face with TrueType outlines. + /// + DWRITE_FONT_FACE_TYPE_TRUETYPE, + + /// + /// OpenType font face that is a part of a TrueType or CFF collection. + /// + DWRITE_FONT_FACE_TYPE_OPENTYPE_COLLECTION, + + /// + /// A Type 1 font face. + /// + DWRITE_FONT_FACE_TYPE_TYPE1, + + /// + /// A vector .FON format font face. + /// + DWRITE_FONT_FACE_TYPE_VECTOR, + + /// + /// A bitmap .FON format font face. + /// + DWRITE_FONT_FACE_TYPE_BITMAP, + + /// + /// Font face type is not recognized by the DirectWrite font system. + /// + DWRITE_FONT_FACE_TYPE_UNKNOWN, + + /// + /// The font data includes only the CFF table from an OpenType CFF font. + /// This font face type can be used only for embedded fonts (i.e., custom + /// font file loaders) and the resulting font face object supports only the + /// minimum functionality necessary to render glyphs. + /// + DWRITE_FONT_FACE_TYPE_RAW_CFF, + + // The following name is obsolete, but kept as an alias to avoid breaking existing code. + DWRITE_FONT_FACE_TYPE_TRUETYPE_COLLECTION = DWRITE_FONT_FACE_TYPE_OPENTYPE_COLLECTION, +}; + +/// +/// Specifies algorithmic style simulations to be applied to the font face. +/// Bold and oblique simulations can be combined via bitwise OR operation. +/// +enum DWRITE_FONT_SIMULATIONS +{ + /// + /// No simulations are performed. + /// + DWRITE_FONT_SIMULATIONS_NONE = 0x0000, + + /// + /// Algorithmic emboldening is performed. + /// + DWRITE_FONT_SIMULATIONS_BOLD = 0x0001, + + /// + /// Algorithmic italicization is performed. + /// + DWRITE_FONT_SIMULATIONS_OBLIQUE = 0x0002 +}; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_FONT_SIMULATIONS); +#endif + +/// +/// The font weight enumeration describes common values for degree of blackness or thickness of strokes of characters in a font. +/// Font weight values less than 1 or greater than 999 are considered to be invalid, and they are rejected by font API functions. +/// +enum DWRITE_FONT_WEIGHT +{ + /// + /// Predefined font weight : Thin (100). + /// + DWRITE_FONT_WEIGHT_THIN = 100, + + /// + /// Predefined font weight : Extra-light (200). + /// + DWRITE_FONT_WEIGHT_EXTRA_LIGHT = 200, + + /// + /// Predefined font weight : Ultra-light (200). + /// + DWRITE_FONT_WEIGHT_ULTRA_LIGHT = 200, + + /// + /// Predefined font weight : Light (300). + /// + DWRITE_FONT_WEIGHT_LIGHT = 300, + + /// + /// Predefined font weight : Semi-light (350). + /// + DWRITE_FONT_WEIGHT_SEMI_LIGHT = 350, + + /// + /// Predefined font weight : Normal (400). + /// + DWRITE_FONT_WEIGHT_NORMAL = 400, + + /// + /// Predefined font weight : Regular (400). + /// + DWRITE_FONT_WEIGHT_REGULAR = 400, + + /// + /// Predefined font weight : Medium (500). + /// + DWRITE_FONT_WEIGHT_MEDIUM = 500, + + /// + /// Predefined font weight : Demi-bold (600). + /// + DWRITE_FONT_WEIGHT_DEMI_BOLD = 600, + + /// + /// Predefined font weight : Semi-bold (600). + /// + DWRITE_FONT_WEIGHT_SEMI_BOLD = 600, + + /// + /// Predefined font weight : Bold (700). + /// + DWRITE_FONT_WEIGHT_BOLD = 700, + + /// + /// Predefined font weight : Extra-bold (800). + /// + DWRITE_FONT_WEIGHT_EXTRA_BOLD = 800, + + /// + /// Predefined font weight : Ultra-bold (800). + /// + DWRITE_FONT_WEIGHT_ULTRA_BOLD = 800, + + /// + /// Predefined font weight : Black (900). + /// + DWRITE_FONT_WEIGHT_BLACK = 900, + + /// + /// Predefined font weight : Heavy (900). + /// + DWRITE_FONT_WEIGHT_HEAVY = 900, + + /// + /// Predefined font weight : Extra-black (950). + /// + DWRITE_FONT_WEIGHT_EXTRA_BLACK = 950, + + /// + /// Predefined font weight : Ultra-black (950). + /// + DWRITE_FONT_WEIGHT_ULTRA_BLACK = 950 +}; + +/// +/// The font stretch enumeration describes relative change from the normal aspect ratio +/// as specified by a font designer for the glyphs in a font. +/// Values less than 1 or greater than 9 are considered to be invalid, and they are rejected by font API functions. +/// +enum DWRITE_FONT_STRETCH +{ + /// + /// Predefined font stretch : Not known (0). + /// + DWRITE_FONT_STRETCH_UNDEFINED = 0, + + /// + /// Predefined font stretch : Ultra-condensed (1). + /// + DWRITE_FONT_STRETCH_ULTRA_CONDENSED = 1, + + /// + /// Predefined font stretch : Extra-condensed (2). + /// + DWRITE_FONT_STRETCH_EXTRA_CONDENSED = 2, + + /// + /// Predefined font stretch : Condensed (3). + /// + DWRITE_FONT_STRETCH_CONDENSED = 3, + + /// + /// Predefined font stretch : Semi-condensed (4). + /// + DWRITE_FONT_STRETCH_SEMI_CONDENSED = 4, + + /// + /// Predefined font stretch : Normal (5). + /// + DWRITE_FONT_STRETCH_NORMAL = 5, + + /// + /// Predefined font stretch : Medium (5). + /// + DWRITE_FONT_STRETCH_MEDIUM = 5, + + /// + /// Predefined font stretch : Semi-expanded (6). + /// + DWRITE_FONT_STRETCH_SEMI_EXPANDED = 6, + + /// + /// Predefined font stretch : Expanded (7). + /// + DWRITE_FONT_STRETCH_EXPANDED = 7, + + /// + /// Predefined font stretch : Extra-expanded (8). + /// + DWRITE_FONT_STRETCH_EXTRA_EXPANDED = 8, + + /// + /// Predefined font stretch : Ultra-expanded (9). + /// + DWRITE_FONT_STRETCH_ULTRA_EXPANDED = 9 +}; + +/// +/// The font style enumeration describes the slope style of a font face, such as Normal, Italic or Oblique. +/// Values other than the ones defined in the enumeration are considered to be invalid, and they are rejected by font API functions. +/// +enum DWRITE_FONT_STYLE +{ + /// + /// Font slope style : Normal. + /// + DWRITE_FONT_STYLE_NORMAL, + + /// + /// Font slope style : Oblique. + /// + DWRITE_FONT_STYLE_OBLIQUE, + + /// + /// Font slope style : Italic. + /// + DWRITE_FONT_STYLE_ITALIC + +}; + +/// +/// The informational string enumeration identifies a string in a font. +/// +enum DWRITE_INFORMATIONAL_STRING_ID +{ + /// + /// Unspecified name ID. + /// + DWRITE_INFORMATIONAL_STRING_NONE, + + /// + /// Copyright notice provided by the font. + /// + DWRITE_INFORMATIONAL_STRING_COPYRIGHT_NOTICE, + + /// + /// String containing a version number. + /// + DWRITE_INFORMATIONAL_STRING_VERSION_STRINGS, + + /// + /// Trademark information provided by the font. + /// + DWRITE_INFORMATIONAL_STRING_TRADEMARK, + + /// + /// Name of the font manufacturer. + /// + DWRITE_INFORMATIONAL_STRING_MANUFACTURER, + + /// + /// Name of the font designer. + /// + DWRITE_INFORMATIONAL_STRING_DESIGNER, + + /// + /// URL of font designer (with protocol, e.g., http://, ftp://). + /// + DWRITE_INFORMATIONAL_STRING_DESIGNER_URL, + + /// + /// Description of the font. Can contain revision information, usage recommendations, history, features, etc. + /// + DWRITE_INFORMATIONAL_STRING_DESCRIPTION, + + /// + /// URL of font vendor (with protocol, e.g., http://, ftp://). If a unique serial number is embedded in the URL, it can be used to register the font. + /// + DWRITE_INFORMATIONAL_STRING_FONT_VENDOR_URL, + + /// + /// Description of how the font may be legally used, or different example scenarios for licensed use. This field should be written in plain language, not legalese. + /// + DWRITE_INFORMATIONAL_STRING_LICENSE_DESCRIPTION, + + /// + /// URL where additional licensing information can be found. + /// + DWRITE_INFORMATIONAL_STRING_LICENSE_INFO_URL, + + /// + /// GDI-compatible family name. Because GDI allows a maximum of four fonts per family, fonts in the same family may have different GDI-compatible family names + /// (e.g., "Arial", "Arial Narrow", "Arial Black"). + /// + DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES, + + /// + /// GDI-compatible subfamily name. + /// + DWRITE_INFORMATIONAL_STRING_WIN32_SUBFAMILY_NAMES, + + /// + /// Typographic family name preferred by the designer. This enables font designers to group more than four fonts in a single family without losing compatibility with + /// GDI. This name is typically only present if it differs from the GDI-compatible family name. + /// + DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_FAMILY_NAMES, + + /// + /// Typographic subfamily name preferred by the designer. This name is typically only present if it differs from the GDI-compatible subfamily name. + /// + DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_SUBFAMILY_NAMES, + + /// + /// Sample text. This can be the font name or any other text that the designer thinks is the best example to display the font in. + /// + DWRITE_INFORMATIONAL_STRING_SAMPLE_TEXT, + + /// + /// The full name of the font, e.g. "Arial Bold", from name id 4 in the name table. + /// + DWRITE_INFORMATIONAL_STRING_FULL_NAME, + + /// + /// The postscript name of the font, e.g. "GillSans-Bold" from name id 6 in the name table. + /// + DWRITE_INFORMATIONAL_STRING_POSTSCRIPT_NAME, + + /// + /// The postscript CID findfont name, from name id 20 in the name table. + /// + DWRITE_INFORMATIONAL_STRING_POSTSCRIPT_CID_NAME, + + /// + /// Family name for the weight-stretch-style model. + /// + DWRITE_INFORMATIONAL_STRING_WEIGHT_STRETCH_STYLE_FAMILY_NAME, + + /// + /// Script/language tag to identify the scripts or languages that the font was + /// primarily designed to support. See DWRITE_FONT_PROPERTY_ID_DESIGN_SCRIPT_LANGUAGE_TAG + /// for a longer description. + /// + DWRITE_INFORMATIONAL_STRING_DESIGN_SCRIPT_LANGUAGE_TAG, + + /// + /// Script/language tag to identify the scripts or languages that the font declares + /// it is able to support. + /// + DWRITE_INFORMATIONAL_STRING_SUPPORTED_SCRIPT_LANGUAGE_TAG, + + // Obsolete aliases kept to avoid breaking existing code. + DWRITE_INFORMATIONAL_STRING_PREFERRED_FAMILY_NAMES = DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_FAMILY_NAMES, + DWRITE_INFORMATIONAL_STRING_PREFERRED_SUBFAMILY_NAMES = DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_SUBFAMILY_NAMES, + DWRITE_INFORMATIONAL_STRING_WWS_FAMILY_NAME = DWRITE_INFORMATIONAL_STRING_WEIGHT_STRETCH_STYLE_FAMILY_NAME, +}; + + +/// +/// The DWRITE_FONT_METRICS structure specifies the metrics of a font face that +/// are applicable to all glyphs within the font face. +/// +struct DWRITE_FONT_METRICS +{ + /// + /// The number of font design units per em unit. + /// Font files use their own coordinate system of font design units. + /// A font design unit is the smallest measurable unit in the em square, + /// an imaginary square that is used to size and align glyphs. + /// The concept of em square is used as a reference scale factor when defining font size and device transformation semantics. + /// The size of one em square is also commonly used to compute the paragraph indentation value. + /// + UINT16 designUnitsPerEm; + + /// + /// Ascent value of the font face in font design units. + /// Ascent is the distance from the top of font character alignment box to English baseline. + /// + UINT16 ascent; + + /// + /// Descent value of the font face in font design units. + /// Descent is the distance from the bottom of font character alignment box to English baseline. + /// + UINT16 descent; + + /// + /// Line gap in font design units. + /// Recommended additional white space to add between lines to improve legibility. The recommended line spacing + /// (baseline-to-baseline distance) is thus the sum of ascent, descent, and lineGap. The line gap is usually + /// positive or zero but can be negative, in which case the recommended line spacing is less than the height + /// of the character alignment box. + /// + INT16 lineGap; + + /// + /// Cap height value of the font face in font design units. + /// Cap height is the distance from English baseline to the top of a typical English capital. + /// Capital "H" is often used as a reference character for the purpose of calculating the cap height value. + /// + UINT16 capHeight; + + /// + /// x-height value of the font face in font design units. + /// x-height is the distance from English baseline to the top of lowercase letter "x", or a similar lowercase character. + /// + UINT16 xHeight; + + /// + /// The underline position value of the font face in font design units. + /// Underline position is the position of underline relative to the English baseline. + /// The value is usually made negative in order to place the underline below the baseline. + /// + INT16 underlinePosition; + + /// + /// The suggested underline thickness value of the font face in font design units. + /// + UINT16 underlineThickness; + + /// + /// The strikethrough position value of the font face in font design units. + /// Strikethrough position is the position of strikethrough relative to the English baseline. + /// The value is usually made positive in order to place the strikethrough above the baseline. + /// + INT16 strikethroughPosition; + + /// + /// The suggested strikethrough thickness value of the font face in font design units. + /// + UINT16 strikethroughThickness; +}; + +/// +/// The DWRITE_GLYPH_METRICS structure specifies the metrics of an individual glyph. +/// The units depend on how the metrics are obtained. +/// +struct DWRITE_GLYPH_METRICS +{ + /// + /// Specifies the X offset from the glyph origin to the left edge of the black box. + /// The glyph origin is the current horizontal writing position. + /// A negative value means the black box extends to the left of the origin (often true for lowercase italic 'f'). + /// + INT32 leftSideBearing; + + /// + /// Specifies the X offset from the origin of the current glyph to the origin of the next glyph when writing horizontally. + /// + UINT32 advanceWidth; + + /// + /// Specifies the X offset from the right edge of the black box to the origin of the next glyph when writing horizontally. + /// The value is negative when the right edge of the black box overhangs the layout box. + /// + INT32 rightSideBearing; + + /// + /// Specifies the vertical offset from the vertical origin to the top of the black box. + /// Thus, a positive value adds whitespace whereas a negative value means the glyph overhangs the top of the layout box. + /// + INT32 topSideBearing; + + /// + /// Specifies the Y offset from the vertical origin of the current glyph to the vertical origin of the next glyph when writing vertically. + /// (Note that the term "origin" by itself denotes the horizontal origin. The vertical origin is different. + /// Its Y coordinate is specified by verticalOriginY value, + /// and its X coordinate is half the advanceWidth to the right of the horizontal origin). + /// + UINT32 advanceHeight; + + /// + /// Specifies the vertical distance from the black box's bottom edge to the advance height. + /// Positive when the bottom edge of the black box is within the layout box. + /// Negative when the bottom edge of black box overhangs the layout box. + /// + INT32 bottomSideBearing; + + /// + /// Specifies the Y coordinate of a glyph's vertical origin, in the font's design coordinate system. + /// The y coordinate of a glyph's vertical origin is the sum of the glyph's top side bearing + /// and the top (i.e. yMax) of the glyph's bounding box. + /// + INT32 verticalOriginY; +}; + +/// +/// Optional adjustment to a glyph's position. A glyph offset changes the position of a glyph without affecting +/// the pen position. Offsets are in logical, pre-transform units. +/// +struct DWRITE_GLYPH_OFFSET +{ + /// + /// Offset in the advance direction of the run. A positive advance offset moves the glyph to the right + /// (in pre-transform coordinates) if the run is left-to-right or to the left if the run is right-to-left. + /// + FLOAT advanceOffset; + + /// + /// Offset in the ascent direction, i.e., the direction ascenders point. A positive ascender offset moves + /// the glyph up (in pre-transform coordinates). + /// + FLOAT ascenderOffset; +}; + +/// +/// Specifies the type of DirectWrite factory object. +/// DirectWrite factory contains internal state such as font loader registration and cached font data. +/// In most cases it is recommended to use the shared factory object, because it allows multiple components +/// that use DirectWrite to share internal DirectWrite state and reduce memory usage. +/// However, there are cases when it is desirable to reduce the impact of a component, +/// such as a plug-in from an untrusted source, on the rest of the process by sandboxing and isolating it +/// from the rest of the process components. In such cases, it is recommended to use an isolated factory for the sandboxed +/// component. +/// +enum DWRITE_FACTORY_TYPE +{ + /// + /// Shared factory allow for re-use of cached font data across multiple in process components. + /// Such factories also take advantage of cross process font caching components for better performance. + /// + DWRITE_FACTORY_TYPE_SHARED, + + /// + /// Objects created from the isolated factory do not interact with internal DirectWrite state from other components. + /// + DWRITE_FACTORY_TYPE_ISOLATED +}; + +/// +/// Creates an OpenType tag as a 32bit integer such that +/// the first character in the tag is the lowest byte, +/// (least significant on little endian architectures) +/// which can be used to compare with tags in the font file. +/// This macro is compatible with DWRITE_FONT_FEATURE_TAG. +/// +/// Example: DWRITE_MAKE_OPENTYPE_TAG('c','c','m','p') +/// Dword: 0x706D6363 +/// +#define DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d) ( \ + (static_cast(static_cast(d)) << 24) | \ + (static_cast(static_cast(c)) << 16) | \ + (static_cast(static_cast(b)) << 8) | \ + static_cast(static_cast(a))) + +/// +/// Creates an OpenType tag for glyph positioning and substitution font features. +/// +#define DWRITE_MAKE_FONT_FEATURE_TAG(a,b,c,d) (static_cast(DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d))) + +interface IDWriteFontFileStream; + +/// +/// Font file loader interface handles loading font file resources of a particular type from a key. +/// The font file loader interface is recommended to be implemented by a singleton object. +/// IMPORTANT: font file loader implementations must not register themselves with DirectWrite factory +/// inside their constructors and must not unregister themselves in their destructors, because +/// registration and unregistration operations increment and decrement the object reference count respectively. +/// Instead, registration and unregistration of font file loaders with DirectWrite factory should be performed +/// outside of the font file loader implementation as a separate step. +/// +interface DWRITE_DECLARE_INTERFACE("727cad4e-d6af-4c9e-8a08-d695b11caa49") IDWriteFontFileLoader : public IUnknown +{ + /// + /// Creates a font file stream object that encapsulates an open file resource. + /// The resource is closed when the last reference to fontFileStream is released. + /// + /// Font file reference key that uniquely identifies the font file resource + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Pointer to the newly created font file stream. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateStreamFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _COM_Outptr_ IDWriteFontFileStream** fontFileStream + ) PURE; +}; + +/// +/// A built-in implementation of IDWriteFontFileLoader interface that operates on local font files +/// and exposes local font file information from the font file reference key. +/// Font file references created using CreateFontFileReference use this font file loader. +/// +interface DWRITE_DECLARE_INTERFACE("b2d9f3ec-c9fe-4a11-a2ec-d86208f7c0a2") IDWriteLocalFontFileLoader : public IDWriteFontFileLoader +{ + /// + /// Obtains the length of the absolute file path from the font file reference key. + /// + /// Font file reference key that uniquely identifies the local font file + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Length of the file path string not including the terminated NULL character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFilePathLengthFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _Out_ UINT32* filePathLength + ) PURE; + + /// + /// Obtains the absolute font file path from the font file reference key. + /// + /// Font file reference key that uniquely identifies the local font file + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Character array that receives the local file path. + /// Size of the filePath array in character count including the terminated NULL character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFilePathFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _Out_writes_z_(filePathSize) WCHAR* filePath, + UINT32 filePathSize + ) PURE; + + /// + /// Obtains the last write time of the file from the font file reference key. + /// + /// Font file reference key that uniquely identifies the local font file + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Last modified time of the font file. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLastWriteTimeFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _Out_ FILETIME* lastWriteTime + ) PURE; +}; + +/// +/// The interface for loading font file data. +/// +interface DWRITE_DECLARE_INTERFACE("6d4865fe-0ab8-4d91-8f62-5dd6be34a3e0") IDWriteFontFileStream : public IUnknown +{ + /// + /// Reads a fragment from a file. + /// + /// Receives the pointer to the start of the font file fragment. + /// Offset of the fragment from the beginning of the font file. + /// Size of the fragment in bytes. + /// The client defined context to be passed to the ReleaseFileFragment. + /// + /// Standard HRESULT error code. + /// + /// + /// IMPORTANT: ReadFileFragment() implementations must check whether the requested file fragment + /// is within the file bounds. Otherwise, an error should be returned from ReadFileFragment. + /// + STDMETHOD(ReadFileFragment)( + _Outptr_result_bytebuffer_(fragmentSize) void const** fragmentStart, + UINT64 fileOffset, + UINT64 fragmentSize, + _Out_ void** fragmentContext + ) PURE; + + /// + /// Releases a fragment from a file. + /// + /// The client defined context of a font fragment returned from ReadFileFragment. + STDMETHOD_(void, ReleaseFileFragment)( + void* fragmentContext + ) PURE; + + /// + /// Obtains the total size of a file. + /// + /// Receives the total size of the file. + /// + /// Standard HRESULT error code. + /// + /// + /// Implementing GetFileSize() for asynchronously loaded font files may require + /// downloading the complete file contents, therefore this method should only be used for operations that + /// either require complete font file to be loaded (e.g., copying a font file) or need to make + /// decisions based on the value of the file size (e.g., validation against a persisted file size). + /// + STDMETHOD(GetFileSize)( + _Out_ UINT64* fileSize + ) PURE; + + /// + /// Obtains the last modified time of the file. The last modified time is used by DirectWrite font selection algorithms + /// to determine whether one font resource is more up to date than another one. + /// + /// Receives the last modified time of the file in the format that represents + /// the number of 100-nanosecond intervals since January 1, 1601 (UTC). + /// + /// Standard HRESULT error code. For resources that don't have a concept of the last modified time, the implementation of + /// GetLastWriteTime should return E_NOTIMPL. + /// + STDMETHOD(GetLastWriteTime)( + _Out_ UINT64* lastWriteTime + ) PURE; +}; + +/// +/// The interface that represents a reference to a font file. +/// +interface DWRITE_DECLARE_INTERFACE("739d886a-cef5-47dc-8769-1a8b41bebbb0") IDWriteFontFile : public IUnknown +{ + /// + /// This method obtains the pointer to the reference key of a font file. The pointer is only valid until the object that refers to it is released. + /// + /// Pointer to the font file reference key. + /// IMPORTANT: The pointer value is valid until the font file reference object it is obtained from is released. + /// Size of font file reference key in bytes. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetReferenceKey)( + _Outptr_result_bytebuffer_(*fontFileReferenceKeySize) void const** fontFileReferenceKey, + _Out_ UINT32* fontFileReferenceKeySize + ) PURE; + + /// + /// Obtains the file loader associated with a font file object. + /// + /// The font file loader associated with the font file object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLoader)( + _COM_Outptr_ IDWriteFontFileLoader** fontFileLoader + ) PURE; + + /// + /// Analyzes a file and returns whether it represents a font, and whether the font type is supported by the font system. + /// + /// TRUE if the font type is supported by the font system, FALSE otherwise. + /// The type of the font file. Note that even if isSupportedFontType is FALSE, + /// the fontFileType value may be different from DWRITE_FONT_FILE_TYPE_UNKNOWN. + /// The type of the font face that can be constructed from the font file. + /// Note that even if isSupportedFontType is FALSE, the fontFaceType value may be different from + /// DWRITE_FONT_FACE_TYPE_UNKNOWN. + /// Number of font faces contained in the font file. + /// + /// Standard HRESULT error code if there was a processing error during analysis. + /// + /// + /// IMPORTANT: certain font file types are recognized, but not supported by the font system. + /// For example, the font system will recognize a file as a Type 1 font file, + /// but will not be able to construct a font face object from it. In such situations, Analyze will set + /// isSupportedFontType output parameter to FALSE. + /// + STDMETHOD(Analyze)( + _Out_ BOOL* isSupportedFontType, + _Out_ DWRITE_FONT_FILE_TYPE* fontFileType, + _Out_opt_ DWRITE_FONT_FACE_TYPE* fontFaceType, + _Out_ UINT32* numberOfFaces + ) PURE; +}; + +/// +/// Represents the internal structure of a device pixel (i.e., the physical arrangement of red, +/// green, and blue color components) that is assumed for purposes of rendering text. +/// +#ifndef DWRITE_PIXEL_GEOMETRY_DEFINED +enum DWRITE_PIXEL_GEOMETRY +{ + /// + /// The red, green, and blue color components of each pixel are assumed to occupy the same point. + /// + DWRITE_PIXEL_GEOMETRY_FLAT, + + /// + /// Each pixel comprises three vertical stripes, with red on the left, green in the center, and + /// blue on the right. This is the most common pixel geometry for LCD monitors. + /// + DWRITE_PIXEL_GEOMETRY_RGB, + + /// + /// Each pixel comprises three vertical stripes, with blue on the left, green in the center, and + /// red on the right. + /// + DWRITE_PIXEL_GEOMETRY_BGR +}; +#define DWRITE_PIXEL_GEOMETRY_DEFINED +#endif + +/// +/// Represents a method of rendering glyphs. +/// +enum DWRITE_RENDERING_MODE +{ + /// + /// Specifies that the rendering mode is determined automatically based on the font and size. + /// + DWRITE_RENDERING_MODE_DEFAULT, + + /// + /// Specifies that no antialiasing is performed. Each pixel is either set to the foreground + /// color of the text or retains the color of the background. + /// + DWRITE_RENDERING_MODE_ALIASED, + + /// + /// Specifies that antialiasing is performed in the horizontal direction and the appearance + /// of glyphs is layout-compatible with GDI using CLEARTYPE_QUALITY. Use DWRITE_MEASURING_MODE_GDI_CLASSIC + /// to get glyph advances. The antialiasing may be either ClearType or grayscale depending on + /// the text antialiasing mode. + /// + DWRITE_RENDERING_MODE_GDI_CLASSIC, + + /// + /// Specifies that antialiasing is performed in the horizontal direction and the appearance + /// of glyphs is layout-compatible with GDI using CLEARTYPE_NATURAL_QUALITY. Glyph advances + /// are close to the font design advances, but are still rounded to whole pixels. Use + /// DWRITE_MEASURING_MODE_GDI_NATURAL to get glyph advances. The antialiasing may be either + /// ClearType or grayscale depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE_GDI_NATURAL, + + /// + /// Specifies that antialiasing is performed in the horizontal direction. This rendering + /// mode allows glyphs to be positioned with subpixel precision and is therefore suitable + /// for natural (i.e., resolution-independent) layout. The antialiasing may be either + /// ClearType or grayscale depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE_NATURAL, + + /// + /// Similar to natural mode except that antialiasing is performed in both the horizontal + /// and vertical directions. This is typically used at larger sizes to make curves and + /// diagonal lines look smoother. The antialiasing may be either ClearType or grayscale + /// depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC, + + /// + /// Specifies that rendering should bypass the rasterizer and use the outlines directly. + /// This is typically used at very large sizes. + /// + DWRITE_RENDERING_MODE_OUTLINE, + + // The following names are obsolete, but are kept as aliases to avoid breaking existing code. + // Each of these rendering modes may result in either ClearType or grayscale antialiasing + // depending on the DWRITE_TEXT_ANTIALIASING_MODE. + DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC = DWRITE_RENDERING_MODE_GDI_CLASSIC, + DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL = DWRITE_RENDERING_MODE_GDI_NATURAL, + DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL = DWRITE_RENDERING_MODE_NATURAL, + DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL_SYMMETRIC = DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC +}; + +/// +/// The DWRITE_MATRIX structure specifies the graphics transform to be applied +/// to rendered glyphs. +/// +struct DWRITE_MATRIX +{ + /// + /// Horizontal scaling / cosine of rotation + /// + FLOAT m11; + + /// + /// Vertical shear / sine of rotation + /// + FLOAT m12; + + /// + /// Horizontal shear / negative sine of rotation + /// + FLOAT m21; + + /// + /// Vertical scaling / cosine of rotation + /// + FLOAT m22; + + /// + /// Horizontal shift (always orthogonal regardless of rotation) + /// + FLOAT dx; + + /// + /// Vertical shift (always orthogonal regardless of rotation) + /// + FLOAT dy; +}; + +/// +/// The interface that represents text rendering settings for glyph rasterization and filtering. +/// +interface DWRITE_DECLARE_INTERFACE("2f0da53a-2add-47cd-82ee-d9ec34688e75") IDWriteRenderingParams : public IUnknown +{ + /// + /// Gets the gamma value used for gamma correction. Valid values must be + /// greater than zero and cannot exceed 256. + /// + STDMETHOD_(FLOAT, GetGamma)() PURE; + + /// + /// Gets the amount of contrast enhancement. Valid values are greater than + /// or equal to zero. + /// + STDMETHOD_(FLOAT, GetEnhancedContrast)() PURE; + + /// + /// Gets the ClearType level. Valid values range from 0.0f (no ClearType) + /// to 1.0f (full ClearType). + /// + STDMETHOD_(FLOAT, GetClearTypeLevel)() PURE; + + /// + /// Gets the pixel geometry. + /// + STDMETHOD_(DWRITE_PIXEL_GEOMETRY, GetPixelGeometry)() PURE; + + /// + /// Gets the rendering mode. + /// + STDMETHOD_(DWRITE_RENDERING_MODE, GetRenderingMode)() PURE; +}; + +// Forward declarations of D2D types +interface ID2D1SimplifiedGeometrySink; + +typedef ID2D1SimplifiedGeometrySink IDWriteGeometrySink; + +/// +/// This interface exposes various font data such as metrics, names, and glyph outlines. +/// It contains font face type, appropriate file references and face identification data. +/// +interface DWRITE_DECLARE_INTERFACE("5f49804d-7024-4d43-bfa9-d25984f53849") IDWriteFontFace : public IUnknown +{ + /// + /// Obtains the file format type of a font face. + /// + STDMETHOD_(DWRITE_FONT_FACE_TYPE, GetType)() PURE; + + /// + /// Obtains the font files representing a font face. + /// + /// The number of files representing the font face. + /// User provided array that stores pointers to font files representing the font face. + /// This parameter can be NULL if the user is only interested in the number of files representing the font face. + /// This API increments reference count of the font file pointers returned according to COM conventions, and the client + /// should release them when finished. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFiles)( + _Inout_ UINT32* numberOfFiles, + _Out_writes_opt_(*numberOfFiles) IDWriteFontFile** fontFiles + ) PURE; + + /// + /// Obtains the zero-based index of the font face in its font file or files. If the font files contain a single face, + /// the return value is zero. + /// + STDMETHOD_(UINT32, GetIndex)() PURE; + + /// + /// Obtains the algorithmic style simulation flags of a font face. + /// + STDMETHOD_(DWRITE_FONT_SIMULATIONS, GetSimulations)() PURE; + + /// + /// Determines whether the font is a symbol font. + /// + STDMETHOD_(BOOL, IsSymbolFont)() PURE; + + /// + /// Obtains design units and common metrics for the font face. + /// These metrics are applicable to all the glyphs within a fontface and are used by applications for layout calculations. + /// + /// Points to a DWRITE_FONT_METRICS structure to fill in. + /// The metrics returned by this function are in font design units. + STDMETHOD_(void, GetMetrics)( + _Out_ DWRITE_FONT_METRICS* fontFaceMetrics + ) PURE; + + /// + /// Obtains the number of glyphs in the font face. + /// + STDMETHOD_(UINT16, GetGlyphCount)() PURE; + + /// + /// Obtains ideal glyph metrics in font design units. Design glyphs metrics are used for glyph positioning. + /// + /// An array of glyph indices to compute the metrics for. + /// The number of elements in the glyphIndices array. + /// Array of DWRITE_GLYPH_METRICS structures filled by this function. + /// The metrics returned by this function are in font design units. + /// Indicates whether the font is being used in a sideways run. + /// This can affect the glyph metrics if the font has oblique simulation + /// because sideways oblique simulation differs from non-sideways oblique simulation. + /// + /// Standard HRESULT error code. If any of the input glyph indices are outside of the valid glyph index range + /// for the current font face, E_INVALIDARG will be returned. + /// + STDMETHOD(GetDesignGlyphMetrics)( + _In_reads_(glyphCount) UINT16 const* glyphIndices, + UINT32 glyphCount, + _Out_writes_(glyphCount) DWRITE_GLYPH_METRICS* glyphMetrics, + BOOL isSideways = FALSE + ) PURE; + + /// + /// Returns the nominal mapping of UTF-32 Unicode code points to glyph indices as defined by the font 'cmap' table. + /// Note that this mapping is primarily provided for line layout engines built on top of the physical font API. + /// Because of OpenType glyph substitution and line layout character substitution, the nominal conversion does not always correspond + /// to how a Unicode string will map to glyph indices when rendering using a particular font face. + /// Also, note that Unicode Variation Selectors provide for alternate mappings for character to glyph. + /// This call will always return the default variant. + /// + /// An array of UTF-32 code points to obtain nominal glyph indices from. + /// The number of elements in the codePoints array. + /// Array of nominal glyph indices filled by this function. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGlyphIndices)( + _In_reads_(codePointCount) UINT32 const* codePoints, + UINT32 codePointCount, + _Out_writes_(codePointCount) UINT16* glyphIndices + ) PURE; + + /// + /// Finds the specified OpenType font table if it exists and returns a pointer to it. + /// The function accesses the underlying font data via the IDWriteFontFileStream interface + /// implemented by the font file loader. + /// + /// Four character tag of table to find. + /// Use the DWRITE_MAKE_OPENTYPE_TAG() macro to create it. + /// Unlike GDI, it does not support the special TTCF and null tags to access the whole font. + /// + /// Pointer to base of table in memory. + /// The pointer is only valid so long as the FontFace used to get the font table still exists + /// (not any other FontFace, even if it actually refers to the same physical font). + /// + /// Byte size of table. + /// + /// Opaque context which must be freed by calling ReleaseFontTable. + /// The context actually comes from the lower level IDWriteFontFileStream, + /// which may be implemented by the application or DWrite itself. + /// It is possible for a NULL tableContext to be returned, especially if + /// the implementation directly memory maps the whole file. + /// Nevertheless, always release it later, and do not use it as a test for function success. + /// The same table can be queried multiple times, + /// but each returned context can be different, so release each separately. + /// + /// True if table exists. + /// + /// Standard HRESULT error code. + /// If a table can not be found, the function will not return an error, but the size will be 0, table NULL, and exists = FALSE. + /// The context does not need to be freed if the table was not found. + /// + /// + /// The context for the same tag may be different for each call, + /// so each one must be held and released separately. + /// + STDMETHOD(TryGetFontTable)( + _In_ UINT32 openTypeTableTag, + _Outptr_result_bytebuffer_(*tableSize) const void** tableData, + _Out_ UINT32* tableSize, + _Out_ void** tableContext, + _Out_ BOOL* exists + ) PURE; + + /// + /// Releases the table obtained earlier from TryGetFontTable. + /// + /// Opaque context from TryGetFontTable. + STDMETHOD_(void, ReleaseFontTable)( + _In_ void* tableContext + ) PURE; + + /// + /// Computes the outline of a run of glyphs by calling back to the outline sink interface. + /// + /// Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + /// Array of glyph indices. + /// Optional array of glyph advances in DIPs. + /// Optional array of glyph offsets. + /// Number of glyphs. + /// If true, specifies that glyphs are rotated 90 degrees to the left and vertical metrics are used. + /// A client can render a vertical run by specifying isSideways = true and rotating the resulting geometry 90 degrees to the + /// right using a transform. + /// If true, specifies that the advance direction is right to left. By default, the advance direction + /// is left to right. + /// Interface the function calls back to draw each element of the geometry. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGlyphRunOutline)( + FLOAT emSize, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _In_reads_opt_(glyphCount) FLOAT const* glyphAdvances, + _In_reads_opt_(glyphCount) DWRITE_GLYPH_OFFSET const* glyphOffsets, + UINT32 glyphCount, + BOOL isSideways, + BOOL isRightToLeft, + _In_ IDWriteGeometrySink* geometrySink + ) PURE; + + /// + /// Determines the recommended rendering mode for the font given the specified size and rendering parameters. + /// + /// Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + /// Number of physical pixels per DIP. For example, if the DPI of the rendering surface is 96 this + /// value is 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Specifies measuring mode that will be used for glyphs in the font. + /// Renderer implementations may choose different rendering modes for given measuring modes, but + /// best results are seen when the corresponding modes match: + /// DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL for DWRITE_MEASURING_MODE_NATURAL + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC for DWRITE_MEASURING_MODE_GDI_CLASSIC + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL for DWRITE_MEASURING_MODE_GDI_NATURAL + /// + /// Rendering parameters object. This parameter is necessary in case the rendering parameters + /// object overrides the rendering mode. + /// Receives the recommended rendering mode to use. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetRecommendedRenderingMode)( + FLOAT emSize, + FLOAT pixelsPerDip, + DWRITE_MEASURING_MODE measuringMode, + IDWriteRenderingParams* renderingParams, + _Out_ DWRITE_RENDERING_MODE* renderingMode + ) PURE; + + /// + /// Obtains design units and common metrics for the font face. + /// These metrics are applicable to all the glyphs within a fontface and are used by applications for layout calculations. + /// + /// Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + /// Number of physical pixels per DIP. For example, if the DPI of the rendering surface is 96 this + /// value is 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the font size and pixelsPerDip. + /// Points to a DWRITE_FONT_METRICS structure to fill in. + /// The metrics returned by this function are in font design units. + STDMETHOD(GetGdiCompatibleMetrics)( + FLOAT emSize, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + _Out_ DWRITE_FONT_METRICS* fontFaceMetrics + ) PURE; + + /// + /// Obtains glyph metrics in font design units with the return values compatible with what GDI would produce. + /// Glyphs metrics are used for positioning of individual glyphs. + /// + /// Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + /// Number of physical pixels per DIP. For example, if the DPI of the rendering surface is 96 this + /// value is 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the font size and pixelsPerDip. + /// + /// When set to FALSE, the metrics are the same as the metrics of GDI aliased text. + /// When set to TRUE, the metrics are the same as the metrics of text measured by GDI using a font + /// created with CLEARTYPE_NATURAL_QUALITY. + /// + /// An array of glyph indices to compute the metrics for. + /// The number of elements in the glyphIndices array. + /// Array of DWRITE_GLYPH_METRICS structures filled by this function. + /// The metrics returned by this function are in font design units. + /// Indicates whether the font is being used in a sideways run. + /// This can affect the glyph metrics if the font has oblique simulation + /// because sideways oblique simulation differs from non-sideways oblique simulation. + /// + /// Standard HRESULT error code. If any of the input glyph indices are outside of the valid glyph index range + /// for the current font face, E_INVALIDARG will be returned. + /// + STDMETHOD(GetGdiCompatibleGlyphMetrics)( + FLOAT emSize, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL useGdiNatural, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + UINT32 glyphCount, + _Out_writes_(glyphCount) DWRITE_GLYPH_METRICS* glyphMetrics, + BOOL isSideways = FALSE + ) PURE; +}; + + +interface IDWriteFactory; +interface IDWriteFontFileEnumerator; + +/// +/// The font collection loader interface is used to construct a collection of fonts given a particular type of key. +/// The font collection loader interface is recommended to be implemented by a singleton object. +/// IMPORTANT: font collection loader implementations must not register themselves with a DirectWrite factory +/// inside their constructors and must not unregister themselves in their destructors, because +/// registration and unregistration operations increment and decrement the object reference count respectively. +/// Instead, registration and unregistration of font file loaders with DirectWrite factory should be performed +/// outside of the font file loader implementation as a separate step. +/// +interface DWRITE_DECLARE_INTERFACE("cca920e4-52f0-492b-bfa8-29c72ee0a468") IDWriteFontCollectionLoader : public IUnknown +{ + /// + /// Creates a font file enumerator object that encapsulates a collection of font files. + /// The font system calls back to this interface to create a font collection. + /// + /// Factory associated with the loader. + /// Font collection key that uniquely identifies the collection of font files within + /// the scope of the font collection loader being used. + /// Size of the font collection key in bytes. + /// Pointer to the newly created font file enumerator. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateEnumeratorFromKey)( + _In_ IDWriteFactory* factory, + _In_reads_bytes_(collectionKeySize) void const* collectionKey, + UINT32 collectionKeySize, + _COM_Outptr_ IDWriteFontFileEnumerator** fontFileEnumerator + ) PURE; +}; + +/// +/// The font file enumerator interface encapsulates a collection of font files. The font system uses this interface +/// to enumerate font files when building a font collection. +/// +interface DWRITE_DECLARE_INTERFACE("72755049-5ff7-435d-8348-4be97cfa6c7c") IDWriteFontFileEnumerator : public IUnknown +{ + /// + /// Advances to the next font file in the collection. When it is first created, the enumerator is positioned + /// before the first element of the collection and the first call to MoveNext advances to the first file. + /// + /// Receives the value TRUE if the enumerator advances to a file, or FALSE if + /// the enumerator advanced past the last file in the collection. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(MoveNext)( + _Out_ BOOL* hasCurrentFile + ) PURE; + + /// + /// Gets a reference to the current font file. + /// + /// Pointer to the newly created font file object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetCurrentFontFile)( + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; +}; + +/// +/// Represents a collection of strings indexed by locale name. +/// +interface DWRITE_DECLARE_INTERFACE("08256209-099a-4b34-b86d-c22b110e7771") IDWriteLocalizedStrings : public IUnknown +{ + /// + /// Gets the number of language/string pairs. + /// + STDMETHOD_(UINT32, GetCount)() PURE; + + /// + /// Gets the index of the item with the specified locale name. + /// + /// Locale name to look for. + /// Receives the zero-based index of the locale name/string pair. + /// Receives TRUE if the locale name exists or FALSE if not. + /// + /// Standard HRESULT error code. If the specified locale name does not exist, the return value is S_OK, + /// but *index is UINT_MAX and *exists is FALSE. + /// + STDMETHOD(FindLocaleName)( + _In_z_ WCHAR const* localeName, + _Out_ UINT32* index, + _Out_ BOOL* exists + ) PURE; + + /// + /// Gets the length in characters (not including the null terminator) of the locale name with the specified index. + /// + /// Zero-based index of the locale name. + /// Receives the length in characters, not including the null terminator. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleNameLength)( + UINT32 index, + _Out_ UINT32* length + ) PURE; + + /// + /// Copies the locale name with the specified index to the specified array. + /// + /// Zero-based index of the locale name. + /// Character array that receives the locale name. + /// Size of the array in characters. The size must include space for the terminating + /// null character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleName)( + UINT32 index, + _Out_writes_z_(size) WCHAR* localeName, + UINT32 size + ) PURE; + + /// + /// Gets the length in characters (not including the null terminator) of the string with the specified index. + /// + /// Zero-based index of the string. + /// Receives the length in characters, not including the null terminator. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetStringLength)( + UINT32 index, + _Out_ UINT32* length + ) PURE; + + /// + /// Copies the string with the specified index to the specified array. + /// + /// Zero-based index of the string. + /// Character array that receives the string. + /// Size of the array in characters. The size must include space for the terminating + /// null character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetString)( + UINT32 index, + _Out_writes_z_(size) WCHAR* stringBuffer, + UINT32 size + ) PURE; +}; + +interface IDWriteFontFamily; +interface IDWriteFont; + +/// +/// The IDWriteFontCollection encapsulates a collection of font families. +/// +interface DWRITE_DECLARE_INTERFACE("a84cee02-3eea-4eee-a827-87c1a02a0fcc") IDWriteFontCollection : public IUnknown +{ + /// + /// Gets the number of font families in the collection. + /// + STDMETHOD_(UINT32, GetFontFamilyCount)() PURE; + + /// + /// Creates a font family object given a zero-based font family index. + /// + /// Zero-based index of the font family. + /// Receives a pointer the newly created font family object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamily)( + UINT32 index, + _COM_Outptr_ IDWriteFontFamily** fontFamily + ) PURE; + + /// + /// Finds the font family with the specified family name. + /// + /// Name of the font family. The name is not case-sensitive but must otherwise exactly match a family name in the collection. + /// Receives the zero-based index of the matching font family if the family name was found or UINT_MAX otherwise. + /// Receives TRUE if the family name exists or FALSE otherwise. + /// + /// Standard HRESULT error code. If the specified family name does not exist, the return value is S_OK, but *index is UINT_MAX and *exists is FALSE. + /// + STDMETHOD(FindFamilyName)( + _In_z_ WCHAR const* familyName, + _Out_ UINT32* index, + _Out_ BOOL* exists + ) PURE; + + /// + /// Gets the font object that corresponds to the same physical font as the specified font face object. The specified physical font must belong + /// to the font collection. + /// + /// Font face object that specifies the physical font. + /// Receives a pointer to the newly created font object if successful or NULL otherwise. + /// + /// Standard HRESULT error code. If the specified physical font is not part of the font collection the return value is DWRITE_E_NOFONT. + /// + STDMETHOD(GetFontFromFontFace)( + _In_ IDWriteFontFace* fontFace, + _COM_Outptr_ IDWriteFont** font + ) PURE; +}; + +/// +/// The IDWriteFontList interface represents an ordered set of fonts that are part of an IDWriteFontCollection. +/// +interface DWRITE_DECLARE_INTERFACE("1a0d8438-1d97-4ec1-aef9-a2fb86ed6acb") IDWriteFontList : public IUnknown +{ + /// + /// Gets the font collection that contains the fonts. + /// + /// Receives a pointer to the font collection object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontCollection)( + _COM_Outptr_ IDWriteFontCollection** fontCollection + ) PURE; + + /// + /// Gets the number of fonts in the font list. + /// + STDMETHOD_(UINT32, GetFontCount)() PURE; + + /// + /// Gets a font given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// Receives a pointer to the newly created font object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFont)( + UINT32 index, + _COM_Outptr_ IDWriteFont** font + ) PURE; +}; + +/// +/// The IDWriteFontFamily interface represents a set of fonts that share the same design but are differentiated +/// by weight, stretch, and style. +/// +interface DWRITE_DECLARE_INTERFACE("da20d8ef-812a-4c43-9802-62ec4abd7add") IDWriteFontFamily : public IDWriteFontList +{ + /// + /// Creates a localized strings object that contains the family names for the font family, indexed by locale name. + /// + /// Receives a pointer to the newly created localized strings object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFamilyNames)( + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Gets the font that best matches the specified properties. + /// + /// Requested font weight. + /// Requested font stretch. + /// Requested font style. + /// Receives a pointer to the newly created font object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFirstMatchingFont)( + DWRITE_FONT_WEIGHT weight, + DWRITE_FONT_STRETCH stretch, + DWRITE_FONT_STYLE style, + _COM_Outptr_ IDWriteFont** matchingFont + ) PURE; + + /// + /// Gets a list of fonts in the font family ranked in order of how well they match the specified properties. + /// + /// Requested font weight. + /// Requested font stretch. + /// Requested font style. + /// Receives a pointer to the newly created font list object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetMatchingFonts)( + DWRITE_FONT_WEIGHT weight, + DWRITE_FONT_STRETCH stretch, + DWRITE_FONT_STYLE style, + _COM_Outptr_ IDWriteFontList** matchingFonts + ) PURE; +}; + +/// +/// The IDWriteFont interface represents a physical font in a font collection. +/// +interface DWRITE_DECLARE_INTERFACE("acd16696-8c14-4f5d-877e-fe3fc1d32737") IDWriteFont : public IUnknown +{ + /// + /// Gets the font family to which the specified font belongs. + /// + /// Receives a pointer to the font family object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamily)( + _COM_Outptr_ IDWriteFontFamily** fontFamily + ) PURE; + + /// + /// Gets the weight of the specified font. + /// + STDMETHOD_(DWRITE_FONT_WEIGHT, GetWeight)() PURE; + + /// + /// Gets the stretch (aka. width) of the specified font. + /// + STDMETHOD_(DWRITE_FONT_STRETCH, GetStretch)() PURE; + + /// + /// Gets the style (aka. slope) of the specified font. + /// + STDMETHOD_(DWRITE_FONT_STYLE, GetStyle)() PURE; + + /// + /// Returns TRUE if the font is a symbol font or FALSE if not. + /// + STDMETHOD_(BOOL, IsSymbolFont)() PURE; + + /// + /// Gets a localized strings collection containing the face names for the font (e.g., Regular or Bold), indexed by locale name. + /// + /// Receives a pointer to the newly created localized strings object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFaceNames)( + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Gets a localized strings collection containing the specified informational strings, indexed by locale name. + /// + /// Identifies the string to get. + /// Receives a pointer to the newly created localized strings object. + /// Receives the value TRUE if the font contains the specified string ID or FALSE if not. + /// + /// Standard HRESULT error code. If the font does not contain the specified string, the return value is S_OK but + /// informationalStrings receives a NULL pointer and exists receives the value FALSE. + /// + STDMETHOD(GetInformationalStrings)( + DWRITE_INFORMATIONAL_STRING_ID informationalStringID, + _COM_Outptr_result_maybenull_ IDWriteLocalizedStrings** informationalStrings, + _Out_ BOOL* exists + ) PURE; + + /// + /// Gets a value that indicates what simulation are applied to the specified font. + /// + STDMETHOD_(DWRITE_FONT_SIMULATIONS, GetSimulations)() PURE; + + /// + /// Gets the metrics for the font. + /// + /// Receives the font metrics. + STDMETHOD_(void, GetMetrics)( + _Out_ DWRITE_FONT_METRICS* fontMetrics + ) PURE; + + /// + /// Determines whether the font supports the specified character. + /// + /// Unicode (UCS-4) character value. + /// Receives the value TRUE if the font supports the specified character or FALSE if not. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(HasCharacter)( + UINT32 unicodeValue, + _Out_ BOOL* exists + ) PURE; + + /// + /// Creates a font face object for the font. + /// + /// Receives a pointer to the newly created font face object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFace)( + _COM_Outptr_ IDWriteFontFace** fontFace + ) PURE; +}; + +/// +/// Direction for how reading progresses. +/// +enum DWRITE_READING_DIRECTION +{ + /// + /// Reading progresses from left to right. + /// + DWRITE_READING_DIRECTION_LEFT_TO_RIGHT = 0, + + /// + /// Reading progresses from right to left. + /// + DWRITE_READING_DIRECTION_RIGHT_TO_LEFT = 1, + + /// + /// Reading progresses from top to bottom. + /// + DWRITE_READING_DIRECTION_TOP_TO_BOTTOM = 2, + + /// + /// Reading progresses from bottom to top. + /// + DWRITE_READING_DIRECTION_BOTTOM_TO_TOP = 3, +}; + +/// +/// Direction for how lines of text are placed relative to one another. +/// +enum DWRITE_FLOW_DIRECTION +{ + /// + /// Text lines are placed from top to bottom. + /// + DWRITE_FLOW_DIRECTION_TOP_TO_BOTTOM = 0, + + /// + /// Text lines are placed from bottom to top. + /// + DWRITE_FLOW_DIRECTION_BOTTOM_TO_TOP = 1, + + /// + /// Text lines are placed from left to right. + /// + DWRITE_FLOW_DIRECTION_LEFT_TO_RIGHT = 2, + + /// + /// Text lines are placed from right to left. + /// + DWRITE_FLOW_DIRECTION_RIGHT_TO_LEFT = 3, +}; + +/// +/// Alignment of paragraph text along the reading direction axis relative to +/// the leading and trailing edge of the layout box. +/// +enum DWRITE_TEXT_ALIGNMENT +{ + /// + /// The leading edge of the paragraph text is aligned to the layout box's leading edge. + /// + DWRITE_TEXT_ALIGNMENT_LEADING, + + /// + /// The trailing edge of the paragraph text is aligned to the layout box's trailing edge. + /// + DWRITE_TEXT_ALIGNMENT_TRAILING, + + /// + /// The center of the paragraph text is aligned to the center of the layout box. + /// + DWRITE_TEXT_ALIGNMENT_CENTER, + + /// + /// Align text to the leading side, and also justify text to fill the lines. + /// + DWRITE_TEXT_ALIGNMENT_JUSTIFIED +}; + +/// +/// Alignment of paragraph text along the flow direction axis relative to the +/// flow's beginning and ending edge of the layout box. +/// +enum DWRITE_PARAGRAPH_ALIGNMENT +{ + /// + /// The first line of paragraph is aligned to the flow's beginning edge of the layout box. + /// + DWRITE_PARAGRAPH_ALIGNMENT_NEAR, + + /// + /// The last line of paragraph is aligned to the flow's ending edge of the layout box. + /// + DWRITE_PARAGRAPH_ALIGNMENT_FAR, + + /// + /// The center of the paragraph is aligned to the center of the flow of the layout box. + /// + DWRITE_PARAGRAPH_ALIGNMENT_CENTER +}; + +/// +/// Word wrapping in multiline paragraph. +/// +enum DWRITE_WORD_WRAPPING +{ + /// + /// Words are broken across lines to avoid text overflowing the layout box. + /// + DWRITE_WORD_WRAPPING_WRAP = 0, + + /// + /// Words are kept within the same line even when it overflows the layout box. + /// This option is often used with scrolling to reveal overflow text. + /// + DWRITE_WORD_WRAPPING_NO_WRAP = 1, + + /// + /// Words are broken across lines to avoid text overflowing the layout box. + /// Emergency wrapping occurs if the word is larger than the maximum width. + /// + DWRITE_WORD_WRAPPING_EMERGENCY_BREAK = 2, + + /// + /// Only wrap whole words, never breaking words (emergency wrapping) when the + /// layout width is too small for even a single word. + /// + DWRITE_WORD_WRAPPING_WHOLE_WORD = 3, + + /// + /// Wrap between any valid characters clusters. + /// + DWRITE_WORD_WRAPPING_CHARACTER = 4, +}; + +/// +/// The method used for line spacing in layout. +/// +enum DWRITE_LINE_SPACING_METHOD +{ + /// + /// Line spacing depends solely on the content, growing to accommodate the size of fonts and inline objects. + /// + DWRITE_LINE_SPACING_METHOD_DEFAULT, + + /// + /// Lines are explicitly set to uniform spacing, regardless of contained font sizes. + /// This can be useful to avoid the uneven appearance that can occur from font fallback. + /// + DWRITE_LINE_SPACING_METHOD_UNIFORM, + + /// + /// Line spacing and baseline distances are proportional to the computed values based on the content, the size of the fonts and inline objects. + /// + DWRITE_LINE_SPACING_METHOD_PROPORTIONAL +}; + +/// +/// Text granularity used to trim text overflowing the layout box. +/// +enum DWRITE_TRIMMING_GRANULARITY +{ + /// + /// No trimming occurs. Text flows beyond the layout width. + /// + DWRITE_TRIMMING_GRANULARITY_NONE, + + /// + /// Trimming occurs at character cluster boundary. + /// + DWRITE_TRIMMING_GRANULARITY_CHARACTER, + + /// + /// Trimming occurs at word boundary. + /// + DWRITE_TRIMMING_GRANULARITY_WORD +}; + +/// +/// Typographic feature of text supplied by the font. +/// +/// +/// Use DWRITE_MAKE_FONT_FEATURE_TAG() to create a custom one. +/// +enum DWRITE_FONT_FEATURE_TAG +{ + DWRITE_FONT_FEATURE_TAG_ALTERNATIVE_FRACTIONS = DWRITE_MAKE_OPENTYPE_TAG('a','f','r','c'), + DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS_FROM_CAPITALS = DWRITE_MAKE_OPENTYPE_TAG('c','2','p','c'), + DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS_FROM_CAPITALS = DWRITE_MAKE_OPENTYPE_TAG('c','2','s','c'), + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_ALTERNATES = DWRITE_MAKE_OPENTYPE_TAG('c','a','l','t'), + DWRITE_FONT_FEATURE_TAG_CASE_SENSITIVE_FORMS = DWRITE_MAKE_OPENTYPE_TAG('c','a','s','e'), + DWRITE_FONT_FEATURE_TAG_GLYPH_COMPOSITION_DECOMPOSITION = DWRITE_MAKE_OPENTYPE_TAG('c','c','m','p'), + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_LIGATURES = DWRITE_MAKE_OPENTYPE_TAG('c','l','i','g'), + DWRITE_FONT_FEATURE_TAG_CAPITAL_SPACING = DWRITE_MAKE_OPENTYPE_TAG('c','p','s','p'), + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_SWASH = DWRITE_MAKE_OPENTYPE_TAG('c','s','w','h'), + DWRITE_FONT_FEATURE_TAG_CURSIVE_POSITIONING = DWRITE_MAKE_OPENTYPE_TAG('c','u','r','s'), + DWRITE_FONT_FEATURE_TAG_DEFAULT = DWRITE_MAKE_OPENTYPE_TAG('d','f','l','t'), + DWRITE_FONT_FEATURE_TAG_DISCRETIONARY_LIGATURES = DWRITE_MAKE_OPENTYPE_TAG('d','l','i','g'), + DWRITE_FONT_FEATURE_TAG_EXPERT_FORMS = DWRITE_MAKE_OPENTYPE_TAG('e','x','p','t'), + DWRITE_FONT_FEATURE_TAG_FRACTIONS = DWRITE_MAKE_OPENTYPE_TAG('f','r','a','c'), + DWRITE_FONT_FEATURE_TAG_FULL_WIDTH = DWRITE_MAKE_OPENTYPE_TAG('f','w','i','d'), + DWRITE_FONT_FEATURE_TAG_HALF_FORMS = DWRITE_MAKE_OPENTYPE_TAG('h','a','l','f'), + DWRITE_FONT_FEATURE_TAG_HALANT_FORMS = DWRITE_MAKE_OPENTYPE_TAG('h','a','l','n'), + DWRITE_FONT_FEATURE_TAG_ALTERNATE_HALF_WIDTH = DWRITE_MAKE_OPENTYPE_TAG('h','a','l','t'), + DWRITE_FONT_FEATURE_TAG_HISTORICAL_FORMS = DWRITE_MAKE_OPENTYPE_TAG('h','i','s','t'), + DWRITE_FONT_FEATURE_TAG_HORIZONTAL_KANA_ALTERNATES = DWRITE_MAKE_OPENTYPE_TAG('h','k','n','a'), + DWRITE_FONT_FEATURE_TAG_HISTORICAL_LIGATURES = DWRITE_MAKE_OPENTYPE_TAG('h','l','i','g'), + DWRITE_FONT_FEATURE_TAG_HALF_WIDTH = DWRITE_MAKE_OPENTYPE_TAG('h','w','i','d'), + DWRITE_FONT_FEATURE_TAG_HOJO_KANJI_FORMS = DWRITE_MAKE_OPENTYPE_TAG('h','o','j','o'), + DWRITE_FONT_FEATURE_TAG_JIS04_FORMS = DWRITE_MAKE_OPENTYPE_TAG('j','p','0','4'), + DWRITE_FONT_FEATURE_TAG_JIS78_FORMS = DWRITE_MAKE_OPENTYPE_TAG('j','p','7','8'), + DWRITE_FONT_FEATURE_TAG_JIS83_FORMS = DWRITE_MAKE_OPENTYPE_TAG('j','p','8','3'), + DWRITE_FONT_FEATURE_TAG_JIS90_FORMS = DWRITE_MAKE_OPENTYPE_TAG('j','p','9','0'), + DWRITE_FONT_FEATURE_TAG_KERNING = DWRITE_MAKE_OPENTYPE_TAG('k','e','r','n'), + DWRITE_FONT_FEATURE_TAG_STANDARD_LIGATURES = DWRITE_MAKE_OPENTYPE_TAG('l','i','g','a'), + DWRITE_FONT_FEATURE_TAG_LINING_FIGURES = DWRITE_MAKE_OPENTYPE_TAG('l','n','u','m'), + DWRITE_FONT_FEATURE_TAG_LOCALIZED_FORMS = DWRITE_MAKE_OPENTYPE_TAG('l','o','c','l'), + DWRITE_FONT_FEATURE_TAG_MARK_POSITIONING = DWRITE_MAKE_OPENTYPE_TAG('m','a','r','k'), + DWRITE_FONT_FEATURE_TAG_MATHEMATICAL_GREEK = DWRITE_MAKE_OPENTYPE_TAG('m','g','r','k'), + DWRITE_FONT_FEATURE_TAG_MARK_TO_MARK_POSITIONING = DWRITE_MAKE_OPENTYPE_TAG('m','k','m','k'), + DWRITE_FONT_FEATURE_TAG_ALTERNATE_ANNOTATION_FORMS = DWRITE_MAKE_OPENTYPE_TAG('n','a','l','t'), + DWRITE_FONT_FEATURE_TAG_NLC_KANJI_FORMS = DWRITE_MAKE_OPENTYPE_TAG('n','l','c','k'), + DWRITE_FONT_FEATURE_TAG_OLD_STYLE_FIGURES = DWRITE_MAKE_OPENTYPE_TAG('o','n','u','m'), + DWRITE_FONT_FEATURE_TAG_ORDINALS = DWRITE_MAKE_OPENTYPE_TAG('o','r','d','n'), + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_ALTERNATE_WIDTH = DWRITE_MAKE_OPENTYPE_TAG('p','a','l','t'), + DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS = DWRITE_MAKE_OPENTYPE_TAG('p','c','a','p'), + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_FIGURES = DWRITE_MAKE_OPENTYPE_TAG('p','n','u','m'), + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_WIDTHS = DWRITE_MAKE_OPENTYPE_TAG('p','w','i','d'), + DWRITE_FONT_FEATURE_TAG_QUARTER_WIDTHS = DWRITE_MAKE_OPENTYPE_TAG('q','w','i','d'), + DWRITE_FONT_FEATURE_TAG_REQUIRED_LIGATURES = DWRITE_MAKE_OPENTYPE_TAG('r','l','i','g'), + DWRITE_FONT_FEATURE_TAG_RUBY_NOTATION_FORMS = DWRITE_MAKE_OPENTYPE_TAG('r','u','b','y'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_ALTERNATES = DWRITE_MAKE_OPENTYPE_TAG('s','a','l','t'), + DWRITE_FONT_FEATURE_TAG_SCIENTIFIC_INFERIORS = DWRITE_MAKE_OPENTYPE_TAG('s','i','n','f'), + DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS = DWRITE_MAKE_OPENTYPE_TAG('s','m','c','p'), + DWRITE_FONT_FEATURE_TAG_SIMPLIFIED_FORMS = DWRITE_MAKE_OPENTYPE_TAG('s','m','p','l'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_1 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','1'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_2 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','2'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_3 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','3'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_4 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','4'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_5 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','5'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_6 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','6'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_7 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','7'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_8 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','8'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_9 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','9'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_10 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','0'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_11 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','1'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_12 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','2'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_13 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','3'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_14 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','4'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_15 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','5'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_16 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','6'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_17 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','7'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_18 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','8'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_19 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','9'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_20 = DWRITE_MAKE_OPENTYPE_TAG('s','s','2','0'), + DWRITE_FONT_FEATURE_TAG_SUBSCRIPT = DWRITE_MAKE_OPENTYPE_TAG('s','u','b','s'), + DWRITE_FONT_FEATURE_TAG_SUPERSCRIPT = DWRITE_MAKE_OPENTYPE_TAG('s','u','p','s'), + DWRITE_FONT_FEATURE_TAG_SWASH = DWRITE_MAKE_OPENTYPE_TAG('s','w','s','h'), + DWRITE_FONT_FEATURE_TAG_TITLING = DWRITE_MAKE_OPENTYPE_TAG('t','i','t','l'), + DWRITE_FONT_FEATURE_TAG_TRADITIONAL_NAME_FORMS = DWRITE_MAKE_OPENTYPE_TAG('t','n','a','m'), + DWRITE_FONT_FEATURE_TAG_TABULAR_FIGURES = DWRITE_MAKE_OPENTYPE_TAG('t','n','u','m'), + DWRITE_FONT_FEATURE_TAG_TRADITIONAL_FORMS = DWRITE_MAKE_OPENTYPE_TAG('t','r','a','d'), + DWRITE_FONT_FEATURE_TAG_THIRD_WIDTHS = DWRITE_MAKE_OPENTYPE_TAG('t','w','i','d'), + DWRITE_FONT_FEATURE_TAG_UNICASE = DWRITE_MAKE_OPENTYPE_TAG('u','n','i','c'), + DWRITE_FONT_FEATURE_TAG_VERTICAL_WRITING = DWRITE_MAKE_OPENTYPE_TAG('v','e','r','t'), + DWRITE_FONT_FEATURE_TAG_VERTICAL_ALTERNATES_AND_ROTATION = DWRITE_MAKE_OPENTYPE_TAG('v','r','t','2'), + DWRITE_FONT_FEATURE_TAG_SLASHED_ZERO = DWRITE_MAKE_OPENTYPE_TAG('z','e','r','o'), +}; + +/// +/// The DWRITE_TEXT_RANGE structure specifies a range of text positions where format is applied. +/// +struct DWRITE_TEXT_RANGE +{ + /// + /// The start text position of the range. + /// + UINT32 startPosition; + + /// + /// The number of text positions in the range. + /// + UINT32 length; +}; + +/// +/// The DWRITE_FONT_FEATURE structure specifies properties used to identify and execute typographic feature in the font. +/// +struct DWRITE_FONT_FEATURE +{ + /// + /// The feature OpenType name identifier. + /// + DWRITE_FONT_FEATURE_TAG nameTag; + + /// + /// Execution parameter of the feature. + /// + /// + /// The parameter should be non-zero to enable the feature. Once enabled, a feature can't be disabled again within + /// the same range. Features requiring a selector use this value to indicate the selector index. + /// + UINT32 parameter; +}; + +/// +/// Defines a set of typographic features to be applied during shaping. +/// Notice the character range which this feature list spans is specified +/// as a separate parameter to GetGlyphs. +/// +struct DWRITE_TYPOGRAPHIC_FEATURES +{ + /// + /// Array of font features. + /// + _Field_size_(featureCount) DWRITE_FONT_FEATURE* features; + + /// + /// The number of features. + /// + UINT32 featureCount; +}; + +/// +/// The DWRITE_TRIMMING structure specifies the trimming option for text overflowing the layout box. +/// +struct DWRITE_TRIMMING +{ + /// + /// Text granularity of which trimming applies. + /// + DWRITE_TRIMMING_GRANULARITY granularity; + + /// + /// Character code used as the delimiter signaling the beginning of the portion of text to be preserved, + /// most useful for path ellipsis, where the delimiter would be a slash. Leave this zero if there is no + /// delimiter. + /// + UINT32 delimiter; + + /// + /// How many occurrences of the delimiter to step back. Leave this zero if there is no delimiter. + /// + UINT32 delimiterCount; +}; + + +interface IDWriteTypography; +interface IDWriteInlineObject; + +/// +/// The format of text used for text layout. +/// +/// +/// This object may not be thread-safe and it may carry the state of text format change. +/// +interface DWRITE_DECLARE_INTERFACE("9c906818-31d7-4fd3-a151-7c5e225db55a") IDWriteTextFormat : public IUnknown +{ + /// + /// Set alignment option of text relative to layout box's leading and trailing edge. + /// + /// Text alignment option + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetTextAlignment)( + DWRITE_TEXT_ALIGNMENT textAlignment + ) PURE; + + /// + /// Set alignment option of paragraph relative to layout box's top and bottom edge. + /// + /// Paragraph alignment option + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetParagraphAlignment)( + DWRITE_PARAGRAPH_ALIGNMENT paragraphAlignment + ) PURE; + + /// + /// Set word wrapping option. + /// + /// Word wrapping option + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetWordWrapping)( + DWRITE_WORD_WRAPPING wordWrapping + ) PURE; + + /// + /// Set paragraph reading direction. + /// + /// Text reading direction + /// + /// Standard HRESULT error code. + /// + /// + /// The flow direction must be perpendicular to the reading direction. + /// Setting both to a vertical direction or both to horizontal yields + /// DWRITE_E_FLOWDIRECTIONCONFLICTS when calling GetMetrics or Draw. + /// + STDMETHOD(SetReadingDirection)( + DWRITE_READING_DIRECTION readingDirection + ) PURE; + + /// + /// Set paragraph flow direction. + /// + /// Paragraph flow direction + /// + /// Standard HRESULT error code. + /// + /// + /// The flow direction must be perpendicular to the reading direction. + /// Setting both to a vertical direction or both to horizontal yields + /// DWRITE_E_FLOWDIRECTIONCONFLICTS when calling GetMetrics or Draw. + /// + STDMETHOD(SetFlowDirection)( + DWRITE_FLOW_DIRECTION flowDirection + ) PURE; + + /// + /// Set incremental tab stop position. + /// + /// The incremental tab stop value + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetIncrementalTabStop)( + FLOAT incrementalTabStop + ) PURE; + + /// + /// Set trimming options for any trailing text exceeding the layout width + /// or for any far text exceeding the layout height. + /// + /// Text trimming options. + /// Application-defined omission sign. This parameter may be NULL if no trimming sign is desired. + /// + /// Any inline object can be used for the trimming sign, but CreateEllipsisTrimmingSign + /// provides a typical ellipsis symbol. Trimming is also useful vertically for hiding + /// partial lines. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetTrimming)( + _In_ DWRITE_TRIMMING const* trimmingOptions, + _In_opt_ IDWriteInlineObject* trimmingSign + ) PURE; + + /// + /// Set line spacing. + /// + /// How to determine line height. + /// The line height, or rather distance between one baseline to another. + /// Distance from top of line to baseline. A reasonable ratio to lineSpacing is 80%. + /// + /// For the default method, spacing depends solely on the content. + /// For uniform spacing, the given line height will override the content. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLineSpacing)( + DWRITE_LINE_SPACING_METHOD lineSpacingMethod, + FLOAT lineSpacing, + FLOAT baseline + ) PURE; + + /// + /// Get alignment option of text relative to layout box's leading and trailing edge. + /// + STDMETHOD_(DWRITE_TEXT_ALIGNMENT, GetTextAlignment)() PURE; + + /// + /// Get alignment option of paragraph relative to layout box's top and bottom edge. + /// + STDMETHOD_(DWRITE_PARAGRAPH_ALIGNMENT, GetParagraphAlignment)() PURE; + + /// + /// Get word wrapping option. + /// + STDMETHOD_(DWRITE_WORD_WRAPPING, GetWordWrapping)() PURE; + + /// + /// Get paragraph reading direction. + /// + STDMETHOD_(DWRITE_READING_DIRECTION, GetReadingDirection)() PURE; + + /// + /// Get paragraph flow direction. + /// + STDMETHOD_(DWRITE_FLOW_DIRECTION, GetFlowDirection)() PURE; + + /// + /// Get incremental tab stop position. + /// + STDMETHOD_(FLOAT, GetIncrementalTabStop)() PURE; + + /// + /// Get trimming options for text overflowing the layout width. + /// + /// Text trimming options. + /// Trimming omission sign. This parameter may be NULL. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetTrimming)( + _Out_ DWRITE_TRIMMING* trimmingOptions, + _COM_Outptr_ IDWriteInlineObject** trimmingSign + ) PURE; + + /// + /// Get line spacing. + /// + /// How line height is determined. + /// The line height, or rather distance between one baseline to another. + /// Distance from top of line to baseline. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLineSpacing)( + _Out_ DWRITE_LINE_SPACING_METHOD* lineSpacingMethod, + _Out_ FLOAT* lineSpacing, + _Out_ FLOAT* baseline + ) PURE; + + /// + /// Get the font collection. + /// + /// The current font collection. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontCollection)( + _COM_Outptr_ IDWriteFontCollection** fontCollection + ) PURE; + + /// + /// Get the length of the font family name, in characters, not including the terminating NULL character. + /// + STDMETHOD_(UINT32, GetFontFamilyNameLength)() PURE; + + /// + /// Get a copy of the font family name. + /// + /// Character array that receives the current font family name + /// Size of the character array in character count including the terminated NULL character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamilyName)( + _Out_writes_z_(nameSize) WCHAR* fontFamilyName, + UINT32 nameSize + ) PURE; + + /// + /// Get the font weight. + /// + STDMETHOD_(DWRITE_FONT_WEIGHT, GetFontWeight)() PURE; + + /// + /// Get the font style. + /// + STDMETHOD_(DWRITE_FONT_STYLE, GetFontStyle)() PURE; + + /// + /// Get the font stretch. + /// + STDMETHOD_(DWRITE_FONT_STRETCH, GetFontStretch)() PURE; + + /// + /// Get the font em height. + /// + STDMETHOD_(FLOAT, GetFontSize)() PURE; + + /// + /// Get the length of the locale name, in characters, not including the terminating NULL character. + /// + STDMETHOD_(UINT32, GetLocaleNameLength)() PURE; + + /// + /// Get a copy of the locale name. + /// + /// Character array that receives the current locale name + /// Size of the character array in character count including the terminated NULL character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleName)( + _Out_writes_z_(nameSize) WCHAR* localeName, + UINT32 nameSize + ) PURE; +}; + + +/// +/// Font typography setting. +/// +interface DWRITE_DECLARE_INTERFACE("55f1112b-1dc2-4b3c-9541-f46894ed85b6") IDWriteTypography : public IUnknown +{ + /// + /// Add font feature. + /// + /// The font feature to add. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontFeature)( + DWRITE_FONT_FEATURE fontFeature + ) PURE; + + /// + /// Get the number of font features. + /// + STDMETHOD_(UINT32, GetFontFeatureCount)() PURE; + + /// + /// Get the font feature at the specified index. + /// + /// The zero-based index of the font feature to get. + /// The font feature. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFeature)( + UINT32 fontFeatureIndex, + _Out_ DWRITE_FONT_FEATURE* fontFeature + ) PURE; +}; + +enum DWRITE_SCRIPT_SHAPES +{ + /// + /// No additional shaping requirement. Text is shaped with the writing system default behavior. + /// + DWRITE_SCRIPT_SHAPES_DEFAULT = 0, + + /// + /// Text should leave no visual on display i.e. control or format control characters. + /// + DWRITE_SCRIPT_SHAPES_NO_VISUAL = 1 +}; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_SCRIPT_SHAPES); +#endif + +/// +/// Association of text and its writing system script as well as some display attributes. +/// +struct DWRITE_SCRIPT_ANALYSIS +{ + /// + /// Zero-based index representation of writing system script. + /// + UINT16 script; + + /// + /// Additional shaping requirement of text. + /// + DWRITE_SCRIPT_SHAPES shapes; +}; + +/// +/// Condition at the edges of inline object or text used to determine +/// line-breaking behavior. +/// +enum DWRITE_BREAK_CONDITION +{ + /// + /// Whether a break is allowed is determined by the condition of the + /// neighboring text span or inline object. + /// + DWRITE_BREAK_CONDITION_NEUTRAL, + + /// + /// A break is allowed, unless overruled by the condition of the + /// neighboring text span or inline object, either prohibited by a + /// May Not or forced by a Must. + /// + DWRITE_BREAK_CONDITION_CAN_BREAK, + + /// + /// There should be no break, unless overruled by a Must condition from + /// the neighboring text span or inline object. + /// + DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, + + /// + /// The break must happen, regardless of the condition of the adjacent + /// text span or inline object. + /// + DWRITE_BREAK_CONDITION_MUST_BREAK +}; + +/// +/// Line breakpoint characteristics of a character. +/// +struct DWRITE_LINE_BREAKPOINT +{ + /// + /// Breaking condition before the character. + /// + UINT8 breakConditionBefore : 2; + + /// + /// Breaking condition after the character. + /// + UINT8 breakConditionAfter : 2; + + /// + /// The character is some form of whitespace, which may be meaningful + /// for justification. + /// + UINT8 isWhitespace : 1; + + /// + /// The character is a soft hyphen, often used to indicate hyphenation + /// points inside words. + /// + UINT8 isSoftHyphen : 1; + + UINT8 padding : 2; +}; + +/// +/// How to apply number substitution on digits and related punctuation. +/// +enum DWRITE_NUMBER_SUBSTITUTION_METHOD +{ + /// + /// Specifies that the substitution method should be determined based + /// on LOCALE_IDIGITSUBSTITUTION value of the specified text culture. + /// + DWRITE_NUMBER_SUBSTITUTION_METHOD_FROM_CULTURE, + + /// + /// If the culture is Arabic or Farsi, specifies that the number shape + /// depend on the context. Either traditional or nominal number shape + /// are used depending on the nearest preceding strong character or (if + /// there is none) the reading direction of the paragraph. + /// + DWRITE_NUMBER_SUBSTITUTION_METHOD_CONTEXTUAL, + + /// + /// Specifies that code points 0x30-0x39 are always rendered as nominal numeral + /// shapes (ones of the European number), i.e., no substitution is performed. + /// + DWRITE_NUMBER_SUBSTITUTION_METHOD_NONE, + + /// + /// Specifies that number are rendered using the national number shape + /// as specified by the LOCALE_SNATIVEDIGITS value of the specified text culture. + /// + DWRITE_NUMBER_SUBSTITUTION_METHOD_NATIONAL, + + /// + /// Specifies that number are rendered using the traditional shape + /// for the specified culture. For most cultures, this is the same as + /// NativeNational. However, NativeNational results in Latin number + /// for some Arabic cultures, whereas this value results in Arabic + /// number for all Arabic cultures. + /// + DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL +}; + +/// +/// Holds the appropriate digits and numeric punctuation for a given locale. +/// +interface DWRITE_DECLARE_INTERFACE("14885CC9-BAB0-4f90-B6ED-5C366A2CD03D") IDWriteNumberSubstitution : public IUnknown +{ +}; + +/// +/// Shaping output properties per input character. +/// +struct DWRITE_SHAPING_TEXT_PROPERTIES +{ + /// + /// This character can be shaped independently from the others + /// (usually set for the space character). + /// + UINT16 isShapedAlone : 1; + + /// + /// Reserved for use by shaping engine. + /// + UINT16 reserved1 : 1; + + /// + /// Glyph shaping can be cut after this point without affecting shaping + /// before or after it. Otherwise, splitting a call to GetGlyphs would + /// cause a reflow of glyph advances and shapes. + /// + UINT16 canBreakShapingAfter : 1; + + /// + /// Reserved for use by shaping engine. + /// + UINT16 reserved : 13; +}; + +/// +/// Shaping output properties per output glyph. +/// +struct DWRITE_SHAPING_GLYPH_PROPERTIES +{ + /// + /// Justification class, whether to use spacing, kashidas, or + /// another method. This exists for backwards compatibility + /// with Uniscribe's SCRIPT_JUSTIFY enum. + /// + UINT16 justification : 4; + + /// + /// Indicates glyph is the first of a cluster. + /// + UINT16 isClusterStart : 1; + + /// + /// Glyph is a diacritic. + /// + UINT16 isDiacritic : 1; + + /// + /// Glyph has no width, mark, ZWJ, ZWNJ, ZWSP, LRM etc. + /// This flag is not limited to just U+200B. + /// + UINT16 isZeroWidthSpace : 1; + + /// + /// Reserved for use by shaping engine. + /// + UINT16 reserved : 9; +}; + +/// +/// The interface implemented by the text analyzer's client to provide text to +/// the analyzer. It allows the separation between the logical view of text as +/// a continuous stream of characters identifiable by unique text positions, +/// and the actual memory layout of potentially discrete blocks of text in the +/// client's backing store. +/// +/// If any of these callbacks returns an error, the analysis functions will +/// stop prematurely and return a callback error. Rather than return E_NOTIMPL, +/// an application should stub the method and return a constant/null and S_OK. +/// +interface DWRITE_DECLARE_INTERFACE("688e1a58-5094-47c8-adc8-fbcea60ae92b") IDWriteTextAnalysisSource : public IUnknown +{ + /// + /// Get a block of text starting at the specified text position. + /// Returning NULL indicates the end of text - the position is after + /// the last character. This function is called iteratively for + /// each consecutive block, tying together several fragmented blocks + /// in the backing store into a virtual contiguous string. + /// + /// First position of the piece to obtain. All + /// positions are in UTF16 code-units, not whole characters, which + /// matters when supplementary characters are used. + /// Address that receives a pointer to the text block + /// at the specified position. + /// Number of UTF16 units of the retrieved chunk. + /// The returned length is not the length of the block, but the length + /// remaining in the block, from the given position until its end. + /// So querying for a position that is 75 positions into a 100 + /// position block would return 25. + /// Pointer to the first character at the given text position. + /// NULL indicates no chunk available at the specified position, either + /// because textPosition >= the entire text content length or because the + /// queried position is not mapped into the app's backing store. + /// + /// Although apps can implement sparse textual content that only maps part of + /// the backing store, the app must map any text that is in the range passed + /// to any analysis functions. + /// + STDMETHOD(GetTextAtPosition)( + UINT32 textPosition, + _Outptr_result_buffer_(*textLength) WCHAR const** textString, + _Out_ UINT32* textLength + ) PURE; + + /// + /// Get a block of text immediately preceding the specified position. + /// + /// Position immediately after the last position of the chunk to obtain. + /// Address that receives a pointer to the text block + /// at the specified position. + /// Number of UTF16 units of the retrieved block. + /// The length returned is from the given position to the front of + /// the block. + /// Pointer to the first character at (textPosition - textLength). + /// NULL indicates no chunk available at the specified position, either + /// because textPosition == 0,the textPosition > the entire text content + /// length, or the queried position is not mapped into the app's backing + /// store. + /// + /// Although apps can implement sparse textual content that only maps part of + /// the backing store, the app must map any text that is in the range passed + /// to any analysis functions. + /// + STDMETHOD(GetTextBeforePosition)( + UINT32 textPosition, + _Outptr_result_buffer_(*textLength) WCHAR const** textString, + _Out_ UINT32* textLength + ) PURE; + + /// + /// Get paragraph reading direction. + /// + STDMETHOD_(DWRITE_READING_DIRECTION, GetParagraphReadingDirection)() PURE; + + /// + /// Get locale name on the range affected by it. + /// + /// Position to get the locale name of. + /// Receives the length from the given position up to the + /// next differing locale. + /// Address that receives a pointer to the locale + /// at the specified position. + /// + /// The localeName pointer must remain valid until the next call or until + /// the analysis returns. + /// + STDMETHOD(GetLocaleName)( + UINT32 textPosition, + _Out_ UINT32* textLength, + _Outptr_result_z_ WCHAR const** localeName + ) PURE; + + /// + /// Get number substitution on the range affected by it. + /// + /// Position to get the number substitution of. + /// Receives the length from the given position up to the + /// next differing number substitution. + /// Address that receives a pointer to the number substitution + /// at the specified position. + /// + /// Any implementation should return the number substitution with an + /// incremented ref count, and the analysis will release when finished + /// with it (either before the next call or before it returns). However, + /// the sink callback may hold onto it after that. + /// + STDMETHOD(GetNumberSubstitution)( + UINT32 textPosition, + _Out_ UINT32* textLength, + _COM_Outptr_ IDWriteNumberSubstitution** numberSubstitution + ) PURE; +}; + +/// +/// The interface implemented by the text analyzer's client to receive the +/// output of a given text analysis. The Text analyzer disregards any current +/// state of the analysis sink, therefore a Set method call on a range +/// overwrites the previously set analysis result of the same range. +/// +interface DWRITE_DECLARE_INTERFACE("5810cd44-0ca0-4701-b3fa-bec5182ae4f6") IDWriteTextAnalysisSink : public IUnknown +{ + /// + /// Report script analysis for the text range. + /// + /// Starting position to report from. + /// Number of UTF16 units of the reported range. + /// Script analysis of characters in range. + /// + /// A successful code or error code to abort analysis. + /// + STDMETHOD(SetScriptAnalysis)( + UINT32 textPosition, + UINT32 textLength, + _In_ DWRITE_SCRIPT_ANALYSIS const* scriptAnalysis + ) PURE; + + /// + /// Report line-break opportunities for each character, starting from + /// the specified position. + /// + /// Starting position to report from. + /// Number of UTF16 units of the reported range. + /// Breaking conditions for each character. + /// + /// A successful code or error code to abort analysis. + /// + STDMETHOD(SetLineBreakpoints)( + UINT32 textPosition, + UINT32 textLength, + _In_reads_(textLength) DWRITE_LINE_BREAKPOINT const* lineBreakpoints + ) PURE; + + /// + /// Set bidirectional level on the range, called once per each + /// level run change (either explicit or resolved implicit). + /// + /// Starting position to report from. + /// Number of UTF16 units of the reported range. + /// Explicit level from embedded control codes + /// RLE/RLO/LRE/LRO/PDF, determined before any additional rules. + /// Final implicit level considering the + /// explicit level and characters' natural directionality, after all + /// Bidi rules have been applied. + /// + /// A successful code or error code to abort analysis. + /// + STDMETHOD(SetBidiLevel)( + UINT32 textPosition, + UINT32 textLength, + UINT8 explicitLevel, + UINT8 resolvedLevel + ) PURE; + + /// + /// Set number substitution on the range. + /// + /// Starting position to report from. + /// Number of UTF16 units of the reported range. + /// The number substitution applicable to + /// the returned range of text. The sink callback may hold onto it by + /// incrementing its ref count. + /// + /// A successful code or error code to abort analysis. + /// + /// + /// Unlike script and bidi analysis, where every character passed to the + /// analyzer has a result, this will only be called for those ranges where + /// substitution is applicable. For any other range, you will simply not + /// be called. + /// + STDMETHOD(SetNumberSubstitution)( + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteNumberSubstitution* numberSubstitution + ) PURE; +}; + +/// +/// Analyzes various text properties for complex script processing. +/// +interface DWRITE_DECLARE_INTERFACE("b7e6163e-7f46-43b4-84b3-e4e6249c365d") IDWriteTextAnalyzer : public IUnknown +{ + /// + /// Analyzes a text range for script boundaries, reading text attributes + /// from the source and reporting the Unicode script ID to the sink + /// callback SetScript. + /// + /// Source object to analyze. + /// Starting position within the source object. + /// Length to analyze. + /// Callback object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AnalyzeScript)( + _In_ IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteTextAnalysisSink* analysisSink + ) PURE; + + /// + /// Analyzes a text range for script directionality, reading attributes + /// from the source and reporting levels to the sink callback SetBidiLevel. + /// + /// Source object to analyze. + /// Starting position within the source object. + /// Length to analyze. + /// Callback object. + /// + /// Standard HRESULT error code. + /// + /// + /// While the function can handle multiple paragraphs, the text range + /// should not arbitrarily split the middle of paragraphs. Otherwise the + /// returned levels may be wrong, since the Bidi algorithm is meant to + /// apply to the paragraph as a whole. + /// + /// + /// Embedded control codes (LRE/LRO/RLE/RLO/PDF) are taken into account. + /// + STDMETHOD(AnalyzeBidi)( + _In_ IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteTextAnalysisSink* analysisSink + ) PURE; + + /// + /// Analyzes a text range for spans where number substitution is applicable, + /// reading attributes from the source and reporting substitutable ranges + /// to the sink callback SetNumberSubstitution. + /// + /// Source object to analyze. + /// Starting position within the source object. + /// Length to analyze. + /// Callback object. + /// + /// Standard HRESULT error code. + /// + /// + /// While the function can handle multiple ranges of differing number + /// substitutions, the text ranges should not arbitrarily split the + /// middle of numbers. Otherwise it will treat the numbers separately + /// and will not translate any intervening punctuation. + /// + /// + /// Embedded control codes (LRE/LRO/RLE/RLO/PDF) are taken into account. + /// + STDMETHOD(AnalyzeNumberSubstitution)( + _In_ IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteTextAnalysisSink* analysisSink + ) PURE; + + /// + /// Analyzes a text range for potential breakpoint opportunities, reading + /// attributes from the source and reporting breakpoint opportunities to + /// the sink callback SetLineBreakpoints. + /// + /// Source object to analyze. + /// Starting position within the source object. + /// Length to analyze. + /// Callback object. + /// + /// Standard HRESULT error code. + /// + /// + /// While the function can handle multiple paragraphs, the text range + /// should not arbitrarily split the middle of paragraphs, unless the + /// given text span is considered a whole unit. Otherwise the + /// returned properties for the first and last characters will + /// inappropriately allow breaks. + /// + /// + /// Special cases include the first, last, and surrogate characters. Any + /// text span is treated as if adjacent to inline objects on either side. + /// So the rules with contingent-break opportunities are used, where the + /// edge between text and inline objects is always treated as a potential + /// break opportunity, dependent on any overriding rules of the adjacent + /// objects to prohibit or force the break (see Unicode TR #14). + /// Surrogate pairs never break between. + /// + STDMETHOD(AnalyzeLineBreakpoints)( + _In_ IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteTextAnalysisSink* analysisSink + ) PURE; + + /// + /// Parses the input text string and maps it to the set of glyphs and associated glyph data + /// according to the font and the writing system's rendering rules. + /// + /// The string to convert to glyphs. + /// The length of textString. + /// The font face to get glyphs from. + /// Set to true if the text is intended to be + /// drawn vertically. + /// Set to TRUE for right-to-left text. + /// Script analysis result from AnalyzeScript. + /// The locale to use when selecting glyphs. + /// e.g. the same character may map to different glyphs for ja-jp vs zh-chs. + /// If this is NULL then the default mapping based on the script is used. + /// Optional number substitution which + /// selects the appropriate glyphs for digits and related numeric characters, + /// depending on the results obtained from AnalyzeNumberSubstitution. Passing + /// null indicates that no substitution is needed and that the digits should + /// receive nominal glyphs. + /// An array of pointers to the sets of typographic + /// features to use in each feature range. + /// The length of each feature range, in characters. + /// The sum of all lengths should be equal to textLength. + /// The number of feature ranges. + /// The maximum number of glyphs that can be + /// returned. + /// The mapping from character ranges to glyph + /// ranges. + /// Per-character output properties. + /// Output glyph indices. + /// Per-glyph output properties. + /// The actual number of glyphs returned if + /// the call succeeds. + /// + /// Standard HRESULT error code. + /// + /// + /// Note that the mapping from characters to glyphs is, in general, many- + /// to-many. The recommended estimate for the per-glyph output buffers is + /// (3 * textLength / 2 + 16). This is not guaranteed to be sufficient. + /// + /// The value of the actualGlyphCount parameter is only valid if the call + /// succeeds. In the event that maxGlyphCount is not big enough + /// E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), + /// will be returned. The application should allocate a larger buffer and try again. + /// + STDMETHOD(GetGlyphs)( + _In_reads_(textLength) WCHAR const* textString, + UINT32 textLength, + _In_ IDWriteFontFace* fontFace, + BOOL isSideways, + BOOL isRightToLeft, + _In_ DWRITE_SCRIPT_ANALYSIS const* scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + _In_opt_ IDWriteNumberSubstitution* numberSubstitution, + _In_reads_opt_(featureRanges) DWRITE_TYPOGRAPHIC_FEATURES const** features, + _In_reads_opt_(featureRanges) UINT32 const* featureRangeLengths, + UINT32 featureRanges, + UINT32 maxGlyphCount, + _Out_writes_(textLength) UINT16* clusterMap, + _Out_writes_(textLength) DWRITE_SHAPING_TEXT_PROPERTIES* textProps, + _Out_writes_(maxGlyphCount) UINT16* glyphIndices, + _Out_writes_(maxGlyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProps, + _Out_ UINT32* actualGlyphCount + ) PURE; + + /// + /// Place glyphs output from the GetGlyphs method according to the font + /// and the writing system's rendering rules. + /// + /// The original string the glyphs came from. + /// The mapping from character ranges to glyph + /// ranges. Returned by GetGlyphs. + /// Per-character properties. Returned by + /// GetGlyphs. + /// The length of textString. + /// Glyph indices. See GetGlyphs + /// Per-glyph properties. See GetGlyphs + /// The number of glyphs. + /// The font face the glyphs came from. + /// Logical font size in DIP's. + /// Set to true if the text is intended to be + /// drawn vertically. + /// Set to TRUE for right-to-left text. + /// Script analysis result from AnalyzeScript. + /// The locale to use when selecting glyphs. + /// e.g. the same character may map to different glyphs for ja-jp vs zh-chs. + /// If this is NULL then the default mapping based on the script is used. + /// An array of pointers to the sets of typographic + /// features to use in each feature range. + /// The length of each feature range, in characters. + /// The sum of all lengths should be equal to textLength. + /// The number of feature ranges. + /// The advance width of each glyph. + /// The offset of the origin of each glyph. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGlyphPlacements)( + _In_reads_(textLength) WCHAR const* textString, + _In_reads_(textLength) UINT16 const* clusterMap, + _Inout_updates_(textLength) DWRITE_SHAPING_TEXT_PROPERTIES* textProps, + UINT32 textLength, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProps, + UINT32 glyphCount, + _In_ IDWriteFontFace* fontFace, + FLOAT fontEmSize, + BOOL isSideways, + BOOL isRightToLeft, + _In_ DWRITE_SCRIPT_ANALYSIS const* scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + _In_reads_opt_(featureRanges) DWRITE_TYPOGRAPHIC_FEATURES const** features, + _In_reads_opt_(featureRanges) UINT32 const* featureRangeLengths, + UINT32 featureRanges, + _Out_writes_(glyphCount) FLOAT* glyphAdvances, + _Out_writes_(glyphCount) DWRITE_GLYPH_OFFSET* glyphOffsets + ) PURE; + + /// + /// Place glyphs output from the GetGlyphs method according to the font + /// and the writing system's rendering rules. + /// + /// The original string the glyphs came from. + /// The mapping from character ranges to glyph + /// ranges. Returned by GetGlyphs. + /// Per-character properties. Returned by + /// GetGlyphs. + /// The length of textString. + /// Glyph indices. See GetGlyphs + /// Per-glyph properties. See GetGlyphs + /// The number of glyphs. + /// The font face the glyphs came from. + /// Logical font size in DIP's. + /// Number of physical pixels per DIP. For example, if the DPI of the rendering surface is 96 this + /// value is 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the font size and pixelsPerDip. + /// + /// When set to FALSE, the metrics are the same as the metrics of GDI aliased text. + /// When set to TRUE, the metrics are the same as the metrics of text measured by GDI using a font + /// created with CLEARTYPE_NATURAL_QUALITY. + /// + /// Set to true if the text is intended to be + /// drawn vertically. + /// Set to TRUE for right-to-left text. + /// Script analysis result from AnalyzeScript. + /// The locale to use when selecting glyphs. + /// e.g. the same character may map to different glyphs for ja-jp vs zh-chs. + /// If this is NULL then the default mapping based on the script is used. + /// An array of pointers to the sets of typographic + /// features to use in each feature range. + /// The length of each feature range, in characters. + /// The sum of all lengths should be equal to textLength. + /// The number of feature ranges. + /// The advance width of each glyph. + /// The offset of the origin of each glyph. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGdiCompatibleGlyphPlacements)( + _In_reads_(textLength) WCHAR const* textString, + _In_reads_(textLength) UINT16 const* clusterMap, + _In_reads_(textLength) DWRITE_SHAPING_TEXT_PROPERTIES* textProps, + UINT32 textLength, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProps, + UINT32 glyphCount, + _In_ IDWriteFontFace * fontFace, + FLOAT fontEmSize, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL useGdiNatural, + BOOL isSideways, + BOOL isRightToLeft, + _In_ DWRITE_SCRIPT_ANALYSIS const* scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + _In_reads_opt_(featureRanges) DWRITE_TYPOGRAPHIC_FEATURES const** features, + _In_reads_opt_(featureRanges) UINT32 const* featureRangeLengths, + UINT32 featureRanges, + _Out_writes_(glyphCount) FLOAT* glyphAdvances, + _Out_writes_(glyphCount) DWRITE_GLYPH_OFFSET* glyphOffsets + ) PURE; +}; + +/// +/// The DWRITE_GLYPH_RUN structure contains the information needed by renderers +/// to draw glyph runs. All coordinates are in device independent pixels (DIPs). +/// +struct DWRITE_GLYPH_RUN +{ + /// + /// The physical font face to draw with. + /// + _Notnull_ IDWriteFontFace* fontFace; + + /// + /// Logical size of the font in DIPs, not points (equals 1/96 inch). + /// + FLOAT fontEmSize; + + /// + /// The number of glyphs. + /// + UINT32 glyphCount; + + /// + /// The indices to render. + /// + _Field_size_(glyphCount) UINT16 const* glyphIndices; + + /// + /// Glyph advance widths. + /// + _Field_size_opt_(glyphCount) FLOAT const* glyphAdvances; + + /// + /// Glyph offsets. + /// + _Field_size_opt_(glyphCount) DWRITE_GLYPH_OFFSET const* glyphOffsets; + + /// + /// If true, specifies that glyphs are rotated 90 degrees to the left and + /// vertical metrics are used. Vertical writing is achieved by specifying + /// isSideways = true and rotating the entire run 90 degrees to the right + /// via a rotate transform. + /// + BOOL isSideways; + + /// + /// The implicit resolved bidi level of the run. Odd levels indicate + /// right-to-left languages like Hebrew and Arabic, while even levels + /// indicate left-to-right languages like English and Japanese (when + /// written horizontally). For right-to-left languages, the text origin + /// is on the right, and text should be drawn to the left. + /// + UINT32 bidiLevel; +}; + +/// +/// The DWRITE_GLYPH_RUN_DESCRIPTION structure contains additional properties +/// related to those in DWRITE_GLYPH_RUN. +/// +struct DWRITE_GLYPH_RUN_DESCRIPTION +{ + /// + /// The locale name associated with this run. + /// + _Field_z_ WCHAR const* localeName; + + /// + /// The text associated with the glyphs. + /// + _Field_size_(stringLength) WCHAR const* string; + + /// + /// The number of characters (UTF16 code-units). + /// Note that this may be different than the number of glyphs. + /// + UINT32 stringLength; + + /// + /// An array of indices to the glyph indices array, of the first glyphs of + /// all the glyph clusters of the glyphs to render. + /// + _Field_size_opt_(stringLength) UINT16 const* clusterMap; + + /// + /// Corresponding text position in the original string + /// this glyph run came from. + /// + UINT32 textPosition; +}; + +/// +/// The DWRITE_UNDERLINE structure contains information about the size and +/// placement of underlines. All coordinates are in device independent +/// pixels (DIPs). +/// +struct DWRITE_UNDERLINE +{ + /// + /// Width of the underline, measured parallel to the baseline. + /// + FLOAT width; + + /// + /// Thickness of the underline, measured perpendicular to the + /// baseline. + /// + FLOAT thickness; + + /// + /// Offset of the underline from the baseline. + /// A positive offset represents a position below the baseline and + /// a negative offset is above. + /// + FLOAT offset; + + /// + /// Height of the tallest run where the underline applies. + /// + FLOAT runHeight; + + /// + /// Reading direction of the text associated with the underline. This + /// value is used to interpret whether the width value runs horizontally + /// or vertically. + /// + DWRITE_READING_DIRECTION readingDirection; + + /// + /// Flow direction of the text associated with the underline. This value + /// is used to interpret whether the thickness value advances top to + /// bottom, left to right, or right to left. + /// + DWRITE_FLOW_DIRECTION flowDirection; + + /// + /// Locale of the text the underline is being drawn under. Can be + /// pertinent where the locale affects how the underline is drawn. + /// For example, in vertical text, the underline belongs on the + /// left for Chinese but on the right for Japanese. + /// This choice is completely left up to higher levels. + /// + _Field_z_ WCHAR const* localeName; + + /// + /// The measuring mode can be useful to the renderer to determine how + /// underlines are rendered, e.g. rounding the thickness to a whole pixel + /// in GDI-compatible modes. + /// + DWRITE_MEASURING_MODE measuringMode; +}; + +/// +/// The DWRITE_STRIKETHROUGH structure contains information about the size and +/// placement of strikethroughs. All coordinates are in device independent +/// pixels (DIPs). +/// +struct DWRITE_STRIKETHROUGH +{ + /// + /// Width of the strikethrough, measured parallel to the baseline. + /// + FLOAT width; + + /// + /// Thickness of the strikethrough, measured perpendicular to the + /// baseline. + /// + FLOAT thickness; + + /// + /// Offset of the strikethrough from the baseline. + /// A positive offset represents a position below the baseline and + /// a negative offset is above. + /// + FLOAT offset; + + /// + /// Reading direction of the text associated with the strikethrough. This + /// value is used to interpret whether the width value runs horizontally + /// or vertically. + /// + DWRITE_READING_DIRECTION readingDirection; + + /// + /// Flow direction of the text associated with the strikethrough. This + /// value is used to interpret whether the thickness value advances top to + /// bottom, left to right, or right to left. + /// + DWRITE_FLOW_DIRECTION flowDirection; + + /// + /// Locale of the range. Can be pertinent where the locale affects the style. + /// + _Field_z_ WCHAR const* localeName; + + /// + /// The measuring mode can be useful to the renderer to determine how + /// underlines are rendered, e.g. rounding the thickness to a whole pixel + /// in GDI-compatible modes. + /// + DWRITE_MEASURING_MODE measuringMode; +}; + +/// +/// The DWRITE_LINE_METRICS structure contains information about a formatted +/// line of text. +/// +struct DWRITE_LINE_METRICS +{ + /// + /// The number of total text positions in the line. + /// This includes any trailing whitespace and newline characters. + /// + UINT32 length; + + /// + /// The number of whitespace positions at the end of the line. Newline + /// sequences are considered whitespace. + /// + UINT32 trailingWhitespaceLength; + + /// + /// The number of characters in the newline sequence at the end of the line. + /// If the count is zero, then the line was either wrapped or it is the + /// end of the text. + /// + UINT32 newlineLength; + + /// + /// Height of the line as measured from top to bottom. + /// + FLOAT height; + + /// + /// Distance from the top of the line to its baseline. + /// + FLOAT baseline; + + /// + /// The line is trimmed. + /// + BOOL isTrimmed; +}; + + +/// +/// The DWRITE_CLUSTER_METRICS structure contains information about a glyph cluster. +/// +struct DWRITE_CLUSTER_METRICS +{ + /// + /// The total advance width of all glyphs in the cluster. + /// + FLOAT width; + + /// + /// The number of text positions in the cluster. + /// + UINT16 length; + + /// + /// Indicate whether line can be broken right after the cluster. + /// + UINT16 canWrapLineAfter : 1; + + /// + /// Indicate whether the cluster corresponds to whitespace character. + /// + UINT16 isWhitespace : 1; + + /// + /// Indicate whether the cluster corresponds to a newline character. + /// + UINT16 isNewline : 1; + + /// + /// Indicate whether the cluster corresponds to soft hyphen character. + /// + UINT16 isSoftHyphen : 1; + + /// + /// Indicate whether the cluster is read from right to left. + /// + UINT16 isRightToLeft : 1; + + UINT16 padding : 11; +}; + + +/// +/// Overall metrics associated with text after layout. +/// All coordinates are in device independent pixels (DIPs). +/// +struct DWRITE_TEXT_METRICS +{ + /// + /// Left-most point of formatted text relative to layout box + /// (excluding any glyph overhang). + /// + FLOAT left; + + /// + /// Top-most point of formatted text relative to layout box + /// (excluding any glyph overhang). + /// + FLOAT top; + + /// + /// The width of the formatted text ignoring trailing whitespace + /// at the end of each line. + /// + FLOAT width; + + /// + /// The width of the formatted text taking into account the + /// trailing whitespace at the end of each line. + /// + FLOAT widthIncludingTrailingWhitespace; + + /// + /// The height of the formatted text. The height of an empty string + /// is determined by the size of the default font's line height. + /// + FLOAT height; + + /// + /// Initial width given to the layout. Depending on whether the text + /// was wrapped or not, it can be either larger or smaller than the + /// text content width. + /// + FLOAT layoutWidth; + + /// + /// Initial height given to the layout. Depending on the length of the + /// text, it may be larger or smaller than the text content height. + /// + FLOAT layoutHeight; + + /// + /// The maximum reordering count of any line of text, used + /// to calculate the most number of hit-testing boxes needed. + /// If the layout has no bidirectional text or no text at all, + /// the minimum level is 1. + /// + UINT32 maxBidiReorderingDepth; + + /// + /// Total number of lines. + /// + UINT32 lineCount; +}; + + +/// +/// Properties describing the geometric measurement of an +/// application-defined inline object. +/// +struct DWRITE_INLINE_OBJECT_METRICS +{ + /// + /// Width of the inline object. + /// + FLOAT width; + + /// + /// Height of the inline object as measured from top to bottom. + /// + FLOAT height; + + /// + /// Distance from the top of the object to the baseline where it is lined up with the adjacent text. + /// If the baseline is at the bottom, baseline simply equals height. + /// + FLOAT baseline; + + /// + /// Flag indicating whether the object is to be placed upright or alongside the text baseline + /// for vertical text. + /// + BOOL supportsSideways; +}; + + +/// +/// The DWRITE_OVERHANG_METRICS structure holds how much any visible pixels +/// (in DIPs) overshoot each side of the layout or inline objects. +/// +/// +/// Positive overhangs indicate that the visible area extends outside the layout +/// box or inline object, while negative values mean there is whitespace inside. +/// The returned values are unaffected by rendering transforms or pixel snapping. +/// Additionally, they may not exactly match final target's pixel bounds after +/// applying grid fitting and hinting. +/// +struct DWRITE_OVERHANG_METRICS +{ + /// + /// The distance from the left-most visible DIP to its left alignment edge. + /// + FLOAT left; + + /// + /// The distance from the top-most visible DIP to its top alignment edge. + /// + FLOAT top; + + /// + /// The distance from the right-most visible DIP to its right alignment edge. + /// + FLOAT right; + + /// + /// The distance from the bottom-most visible DIP to its bottom alignment edge. + /// + FLOAT bottom; +}; + + +/// +/// Geometry enclosing of text positions. +/// +struct DWRITE_HIT_TEST_METRICS +{ + /// + /// First text position within the geometry. + /// + UINT32 textPosition; + + /// + /// Number of text positions within the geometry. + /// + UINT32 length; + + /// + /// Left position of the top-left coordinate of the geometry. + /// + FLOAT left; + + /// + /// Top position of the top-left coordinate of the geometry. + /// + FLOAT top; + + /// + /// Geometry's width. + /// + FLOAT width; + + /// + /// Geometry's height. + /// + FLOAT height; + + /// + /// Bidi level of text positions enclosed within the geometry. + /// + UINT32 bidiLevel; + + /// + /// Geometry encloses text? + /// + BOOL isText; + + /// + /// Range is trimmed. + /// + BOOL isTrimmed; +}; + + +interface IDWriteTextRenderer; + + +/// +/// The IDWriteInlineObject interface wraps an application defined inline graphic, +/// allowing DWrite to query metrics as if it was a glyph inline with the text. +/// +interface DWRITE_DECLARE_INTERFACE("8339FDE3-106F-47ab-8373-1C6295EB10B3") IDWriteInlineObject : public IUnknown +{ + /// + /// The application implemented rendering callback (IDWriteTextRenderer::DrawInlineObject) + /// can use this to draw the inline object without needing to cast or query the object + /// type. The text layout does not call this method directly. + /// + /// The context passed to IDWriteTextLayout::Draw. + /// The renderer passed to IDWriteTextLayout::Draw as the object's containing parent. + /// X-coordinate at the top-left corner of the inline object. + /// Y-coordinate at the top-left corner of the inline object. + /// The object should be drawn on its side. + /// The object is in an right-to-left context and should be drawn flipped. + /// The drawing effect set in IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(Draw)( + _In_opt_ void* clientDrawingContext, + _In_ IDWriteTextRenderer* renderer, + FLOAT originX, + FLOAT originY, + BOOL isSideways, + BOOL isRightToLeft, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// TextLayout calls this callback function to get the measurement of the inline object. + /// + /// Returned metrics + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetMetrics)( + _Out_ DWRITE_INLINE_OBJECT_METRICS* metrics + ) PURE; + + /// + /// TextLayout calls this callback function to get the visible extents (in DIPs) of the inline object. + /// In the case of a simple bitmap, with no padding and no overhang, all the overhangs will + /// simply be zeroes. + /// + /// Overshoot of visible extents (in DIPs) outside the object. + /// + /// Standard HRESULT error code. + /// + /// + /// The overhangs should be returned relative to the reported size of the object + /// (DWRITE_INLINE_OBJECT_METRICS::width/height), and should not be baseline + /// adjusted. If you have an image that is actually 100x100 DIPs, but you want it + /// slightly inset (perhaps it has a glow) by 20 DIPs on each side, you would + /// return a width/height of 60x60 and four overhangs of 20 DIPs. + /// + STDMETHOD(GetOverhangMetrics)( + _Out_ DWRITE_OVERHANG_METRICS* overhangs + ) PURE; + + /// + /// Layout uses this to determine the line breaking behavior of the inline object + /// amidst the text. + /// + /// Line-breaking condition between the object and the content immediately preceding it. + /// Line-breaking condition between the object and the content immediately following it. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetBreakConditions)( + _Out_ DWRITE_BREAK_CONDITION* breakConditionBefore, + _Out_ DWRITE_BREAK_CONDITION* breakConditionAfter + ) PURE; +}; + +/// +/// The IDWritePixelSnapping interface defines the pixel snapping properties of a text renderer. +/// +interface DWRITE_DECLARE_INTERFACE("eaf3a2da-ecf4-4d24-b644-b34f6842024b") IDWritePixelSnapping : public IUnknown +{ + /// + /// Determines whether pixel snapping is disabled. The recommended default is FALSE, + /// unless doing animation that requires subpixel vertical placement. + /// + /// The context passed to IDWriteTextLayout::Draw. + /// Receives TRUE if pixel snapping is disabled or FALSE if it not. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(IsPixelSnappingDisabled)( + _In_opt_ void* clientDrawingContext, + _Out_ BOOL* isDisabled + ) PURE; + + /// + /// Gets the current transform that maps abstract coordinates to DIPs, + /// which may disable pixel snapping upon any rotation or shear. + /// + /// The context passed to IDWriteTextLayout::Draw. + /// Receives the transform. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetCurrentTransform)( + _In_opt_ void* clientDrawingContext, + _Out_ DWRITE_MATRIX* transform + ) PURE; + + /// + /// Gets the number of physical pixels per DIP. A DIP (device-independent pixel) is 1/96 inch, + /// so the pixelsPerDip value is the number of logical pixels per inch divided by 96 (yielding + /// a value of 1 for 96 DPI and 1.25 for 120). + /// + /// The context passed to IDWriteTextLayout::Draw. + /// Receives the number of physical pixels per DIP. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetPixelsPerDip)( + _In_opt_ void* clientDrawingContext, + _Out_ FLOAT* pixelsPerDip + ) PURE; +}; + +/// +/// The IDWriteTextRenderer interface represents a set of application-defined +/// callbacks that perform rendering of text, inline objects, and decorations +/// such as underlines. +/// +interface DWRITE_DECLARE_INTERFACE("ef8a8135-5cc6-45fe-8825-c5a0724eb819") IDWriteTextRenderer : public IDWritePixelSnapping +{ + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to + /// render a run of glyphs. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Specifies measuring mode for glyphs in the run. + /// Renderer implementations may choose different rendering modes for given measuring modes, + /// but best results are seen when the rendering mode matches the corresponding measuring mode: + /// DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL for DWRITE_MEASURING_MODE_NATURAL + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC for DWRITE_MEASURING_MODE_GDI_CLASSIC + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL for DWRITE_MEASURING_MODE_GDI_NATURAL + /// + /// The glyph run to draw. + /// Properties of the characters + /// associated with this run. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(DrawGlyphRun)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_MEASURING_MODE measuringMode, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to draw + /// an underline. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Underline logical information. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// A single underline can be broken into multiple calls, depending on + /// how the formatting changes attributes. If font sizes/styles change + /// within an underline, the thickness and offset will be averaged + /// weighted according to characters. + /// To get the correct top coordinate of the underline rect, add underline::offset + /// to the baseline's Y. Otherwise the underline will be immediately under the text. + /// The x coordinate will always be passed as the left side, regardless + /// of text directionality. This simplifies drawing and reduces the + /// problem of round-off that could potentially cause gaps or a double + /// stamped alpha blend. To avoid alpha overlap, round the end points + /// to the nearest device pixel. + /// + STDMETHOD(DrawUnderline)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _In_ DWRITE_UNDERLINE const* underline, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to draw + /// a strikethrough. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Strikethrough logical information. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// A single strikethrough can be broken into multiple calls, depending on + /// how the formatting changes attributes. Strikethrough is not averaged + /// across font sizes/styles changes. + /// To get the correct top coordinate of the strikethrough rect, + /// add strikethrough::offset to the baseline's Y. + /// Like underlines, the x coordinate will always be passed as the left side, + /// regardless of text directionality. + /// + STDMETHOD(DrawStrikethrough)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _In_ DWRITE_STRIKETHROUGH const* strikethrough, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this application callback when it needs to + /// draw an inline object. + /// + /// The context passed to IDWriteTextLayout::Draw. + /// X-coordinate at the top-left corner of the inline object. + /// Y-coordinate at the top-left corner of the inline object. + /// The object set using IDWriteTextLayout::SetInlineObject. + /// The object should be drawn on its side. + /// The object is in an right-to-left context and should be drawn flipped. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// The right-to-left flag is a hint for those cases where it would look + /// strange for the image to be shown normally (like an arrow pointing to + /// right to indicate a submenu). + /// + STDMETHOD(DrawInlineObject)( + _In_opt_ void* clientDrawingContext, + FLOAT originX, + FLOAT originY, + _In_ IDWriteInlineObject* inlineObject, + BOOL isSideways, + BOOL isRightToLeft, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; +}; + +/// +/// The IDWriteTextLayout interface represents a block of text after it has +/// been fully analyzed and formatted. +/// +/// All coordinates are in device independent pixels (DIPs). +/// +interface DWRITE_DECLARE_INTERFACE("53737037-6d14-410b-9bfe-0b182bb70961") IDWriteTextLayout : public IDWriteTextFormat +{ + /// + /// Set layout maximum width + /// + /// Layout maximum width + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetMaxWidth)( + FLOAT maxWidth + ) PURE; + + /// + /// Set layout maximum height + /// + /// Layout maximum height + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetMaxHeight)( + FLOAT maxHeight + ) PURE; + + /// + /// Set the font collection. + /// + /// The font collection to set + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontCollection)( + _In_ IDWriteFontCollection* fontCollection, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set null-terminated font family name. + /// + /// Font family name + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontFamilyName)( + _In_z_ WCHAR const* fontFamilyName, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set font weight. + /// + /// Font weight + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontWeight)( + DWRITE_FONT_WEIGHT fontWeight, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set font style. + /// + /// Font style + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontStyle)( + DWRITE_FONT_STYLE fontStyle, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set font stretch. + /// + /// font stretch + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontStretch)( + DWRITE_FONT_STRETCH fontStretch, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set font em height. + /// + /// Font em height + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontSize)( + FLOAT fontSize, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set underline. + /// + /// The Boolean flag indicates whether underline takes place + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetUnderline)( + BOOL hasUnderline, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set strikethrough. + /// + /// The Boolean flag indicates whether strikethrough takes place + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetStrikethrough)( + BOOL hasStrikethrough, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set application-defined drawing effect. + /// + /// Pointer to an application-defined drawing effect. + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + /// + /// This drawing effect is associated with the specified range and will be passed back + /// to the application via the callback when the range is drawn at drawing time. + /// + STDMETHOD(SetDrawingEffect)( + IUnknown* drawingEffect, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set inline object. + /// + /// Pointer to an application-implemented inline object. + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + /// + /// This inline object applies to the specified range and will be passed back + /// to the application via the DrawInlineObject callback when the range is drawn. + /// Any text in that range will be suppressed. + /// + STDMETHOD(SetInlineObject)( + _In_ IDWriteInlineObject* inlineObject, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set font typography features. + /// + /// Pointer to font typography setting. + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetTypography)( + _In_ IDWriteTypography* typography, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set locale name. + /// + /// Locale name + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLocaleName)( + _In_z_ WCHAR const* localeName, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Get layout maximum width + /// + STDMETHOD_(FLOAT, GetMaxWidth)() PURE; + + /// + /// Get layout maximum height + /// + STDMETHOD_(FLOAT, GetMaxHeight)() PURE; + + /// + /// Get the font collection where the current position is at. + /// + /// The current text position. + /// The current font collection + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontCollection)( + UINT32 currentPosition, + _COM_Outptr_ IDWriteFontCollection** fontCollection, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the length of the font family name where the current position is at. + /// + /// The current text position. + /// Size of the character array in character count not including the terminated NULL character. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamilyNameLength)( + UINT32 currentPosition, + _Out_ UINT32* nameLength, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Copy the font family name where the current position is at. + /// + /// The current text position. + /// Character array that receives the current font family name + /// Size of the character array in character count including the terminated NULL character. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamilyName)( + UINT32 currentPosition, + _Out_writes_z_(nameSize) WCHAR* fontFamilyName, + UINT32 nameSize, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the font weight where the current position is at. + /// + /// The current text position. + /// The current font weight + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontWeight)( + UINT32 currentPosition, + _Out_ DWRITE_FONT_WEIGHT* fontWeight, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the font style where the current position is at. + /// + /// The current text position. + /// The current font style + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontStyle)( + UINT32 currentPosition, + _Out_ DWRITE_FONT_STYLE* fontStyle, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the font stretch where the current position is at. + /// + /// The current text position. + /// The current font stretch + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontStretch)( + UINT32 currentPosition, + _Out_ DWRITE_FONT_STRETCH* fontStretch, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the font em height where the current position is at. + /// + /// The current text position. + /// The current font em height + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSize)( + UINT32 currentPosition, + _Out_ FLOAT* fontSize, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the underline presence where the current position is at. + /// + /// The current text position. + /// The Boolean flag indicates whether text is underlined. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetUnderline)( + UINT32 currentPosition, + _Out_ BOOL* hasUnderline, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the strikethrough presence where the current position is at. + /// + /// The current text position. + /// The Boolean flag indicates whether text has strikethrough. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetStrikethrough)( + UINT32 currentPosition, + _Out_ BOOL* hasStrikethrough, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the application-defined drawing effect where the current position is at. + /// + /// The current text position. + /// The current application-defined drawing effect. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetDrawingEffect)( + UINT32 currentPosition, + _COM_Outptr_ IUnknown** drawingEffect, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the inline object at the given position. + /// + /// The given text position. + /// The inline object. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetInlineObject)( + UINT32 currentPosition, + _COM_Outptr_ IDWriteInlineObject** inlineObject, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the typography setting where the current position is at. + /// + /// The current text position. + /// The current typography setting. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetTypography)( + UINT32 currentPosition, + _COM_Outptr_ IDWriteTypography** typography, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the length of the locale name where the current position is at. + /// + /// The current text position. + /// Size of the character array in character count not including the terminated NULL character. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleNameLength)( + UINT32 currentPosition, + _Out_ UINT32* nameLength, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the locale name where the current position is at. + /// + /// The current text position. + /// Character array that receives the current locale name + /// Size of the character array in character count including the terminated NULL character. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleName)( + UINT32 currentPosition, + _Out_writes_z_(nameSize) WCHAR* localeName, + UINT32 nameSize, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Initiate drawing of the text. + /// + /// An application defined value + /// included in rendering callbacks. + /// The set of application-defined callbacks that do + /// the actual rendering. + /// X-coordinate of the layout's left side. + /// Y-coordinate of the layout's top side. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(Draw)( + _In_opt_ void* clientDrawingContext, + _In_ IDWriteTextRenderer* renderer, + FLOAT originX, + FLOAT originY + ) PURE; + + /// + /// GetLineMetrics returns properties of each line. + /// + /// The array to fill with line information. + /// The maximum size of the lineMetrics array. + /// The actual size of the lineMetrics + /// array that is needed. + /// + /// Standard HRESULT error code. + /// + /// + /// If maxLineCount is not large enough E_NOT_SUFFICIENT_BUFFER, + /// which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), + /// is returned and *actualLineCount is set to the number of lines + /// needed. + /// + STDMETHOD(GetLineMetrics)( + _Out_writes_opt_(maxLineCount) DWRITE_LINE_METRICS* lineMetrics, + UINT32 maxLineCount, + _Out_ UINT32* actualLineCount + ) PURE; + + /// + /// GetMetrics retrieves overall metrics for the formatted string. + /// + /// The returned metrics. + /// + /// Standard HRESULT error code. + /// + /// + /// Drawing effects like underline and strikethrough do not contribute + /// to the text size, which is essentially the sum of advance widths and + /// line heights. Additionally, visible swashes and other graphic + /// adornments may extend outside the returned width and height. + /// + STDMETHOD(GetMetrics)( + _Out_ DWRITE_TEXT_METRICS* textMetrics + ) PURE; + + /// + /// GetOverhangMetrics returns the overhangs (in DIPs) of the layout and all + /// objects contained in it, including text glyphs and inline objects. + /// + /// Overshoots of visible extents (in DIPs) outside the layout. + /// + /// Standard HRESULT error code. + /// + /// + /// Any underline and strikethrough do not contribute to the black box + /// determination, since these are actually drawn by the renderer, which + /// is allowed to draw them in any variety of styles. + /// + STDMETHOD(GetOverhangMetrics)( + _Out_ DWRITE_OVERHANG_METRICS* overhangs + ) PURE; + + /// + /// Retrieve logical properties and measurement of each cluster. + /// + /// The array to fill with cluster information. + /// The maximum size of the clusterMetrics array. + /// The actual size of the clusterMetrics array that is needed. + /// + /// Standard HRESULT error code. + /// + /// + /// If maxClusterCount is not large enough E_NOT_SUFFICIENT_BUFFER, + /// which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), + /// is returned and *actualClusterCount is set to the number of clusters + /// needed. + /// + STDMETHOD(GetClusterMetrics)( + _Out_writes_opt_(maxClusterCount) DWRITE_CLUSTER_METRICS* clusterMetrics, + UINT32 maxClusterCount, + _Out_ UINT32* actualClusterCount + ) PURE; + + /// + /// Determines the minimum possible width the layout can be set to without + /// emergency breaking between the characters of whole words. + /// + /// Minimum width. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(DetermineMinWidth)( + _Out_ FLOAT* minWidth + ) PURE; + + /// + /// Given a coordinate (in DIPs) relative to the top-left of the layout box, + /// this returns the corresponding hit-test metrics of the text string where + /// the hit-test has occurred. This is useful for mapping mouse clicks to caret + /// positions. When the given coordinate is outside the text string, the function + /// sets the output value *isInside to false but returns the nearest character + /// position. + /// + /// X coordinate to hit-test, relative to the top-left location of the layout box. + /// Y coordinate to hit-test, relative to the top-left location of the layout box. + /// Output flag indicating whether the hit-test location is at the leading or the trailing + /// side of the character. When the output *isInside value is set to false, this value is set according to the output + /// *position value to represent the edge closest to the hit-test location. + /// Output flag indicating whether the hit-test location is inside the text string. + /// When false, the position nearest the text's edge is returned. + /// Output geometry fully enclosing the hit-test location. When the output *isInside value + /// is set to false, this structure represents the geometry enclosing the edge closest to the hit-test location. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(HitTestPoint)( + FLOAT pointX, + FLOAT pointY, + _Out_ BOOL* isTrailingHit, + _Out_ BOOL* isInside, + _Out_ DWRITE_HIT_TEST_METRICS* hitTestMetrics + ) PURE; + + /// + /// Given a text position and whether the caret is on the leading or trailing + /// edge of that position, this returns the corresponding coordinate (in DIPs) + /// relative to the top-left of the layout box. This is most useful for drawing + /// the caret's current position, but it could also be used to anchor an IME to the + /// typed text or attach a floating menu near the point of interest. It may also be + /// used to programmatically obtain the geometry of a particular text position + /// for UI automation. + /// + /// Text position to get the coordinate of. + /// Flag indicating whether the location is of the leading or the trailing side of the specified text position. + /// Output caret X, relative to the top-left of the layout box. + /// Output caret Y, relative to the top-left of the layout box. + /// Output geometry fully enclosing the specified text position. + /// + /// Standard HRESULT error code. + /// + /// + /// When drawing a caret at the returned X,Y, it should be centered on X + /// and drawn from the Y coordinate down. The height will be the size of the + /// hit-tested text (which can vary in size within a line). + /// Reading direction also affects which side of the character the caret is drawn. + /// However, the returned X coordinate will be correct for either case. + /// You can get a text length back that is larger than a single character. + /// This happens for complex scripts when multiple characters form a single cluster, + /// when diacritics join their base character, or when you test a surrogate pair. + /// + STDMETHOD(HitTestTextPosition)( + UINT32 textPosition, + BOOL isTrailingHit, + _Out_ FLOAT* pointX, + _Out_ FLOAT* pointY, + _Out_ DWRITE_HIT_TEST_METRICS* hitTestMetrics + ) PURE; + + /// + /// The application calls this function to get a set of hit-test metrics + /// corresponding to a range of text positions. The main usage for this + /// is to draw highlighted selection of the text string. + /// + /// The function returns E_NOT_SUFFICIENT_BUFFER, which is equivalent to + /// HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), when the buffer size of + /// hitTestMetrics is too small to hold all the regions calculated by the + /// function. In such situation, the function sets the output value + /// *actualHitTestMetricsCount to the number of geometries calculated. + /// The application is responsible to allocate a new buffer of greater + /// size and call the function again. + /// + /// A good value to use as an initial value for maxHitTestMetricsCount may + /// be calculated from the following equation: + /// maxHitTestMetricsCount = lineCount * maxBidiReorderingDepth + /// + /// where lineCount is obtained from the value of the output argument + /// *actualLineCount from the function IDWriteTextLayout::GetLineMetrics, + /// and the maxBidiReorderingDepth value from the DWRITE_TEXT_METRICS + /// structure of the output argument *textMetrics from the function + /// IDWriteFactory::CreateTextLayout. + /// + /// First text position of the specified range. + /// Number of positions of the specified range. + /// Offset of the X origin (left of the layout box) which is added to each of the hit-test metrics returned. + /// Offset of the Y origin (top of the layout box) which is added to each of the hit-test metrics returned. + /// Pointer to a buffer of the output geometry fully enclosing the specified position range. + /// Maximum number of distinct metrics it could hold in its buffer memory. + /// Actual number of metrics returned or needed. + /// + /// Standard HRESULT error code. + /// + /// + /// There are no gaps in the returned metrics. While there could be visual gaps, + /// depending on bidi ordering, each range is contiguous and reports all the text, + /// including any hidden characters and trimmed text. + /// The height of each returned range will be the same within each line, regardless + /// of how the font sizes vary. + /// + STDMETHOD(HitTestTextRange)( + UINT32 textPosition, + UINT32 textLength, + FLOAT originX, + FLOAT originY, + _Out_writes_opt_(maxHitTestMetricsCount) DWRITE_HIT_TEST_METRICS* hitTestMetrics, + UINT32 maxHitTestMetricsCount, + _Out_ UINT32* actualHitTestMetricsCount + ) PURE; + + using IDWriteTextFormat::GetFontCollection; + using IDWriteTextFormat::GetFontFamilyNameLength; + using IDWriteTextFormat::GetFontFamilyName; + using IDWriteTextFormat::GetFontWeight; + using IDWriteTextFormat::GetFontStyle; + using IDWriteTextFormat::GetFontStretch; + using IDWriteTextFormat::GetFontSize; + using IDWriteTextFormat::GetLocaleNameLength; + using IDWriteTextFormat::GetLocaleName; +}; + + +/// +/// Encapsulates a 32-bit device independent bitmap and device context, which can be used for rendering glyphs. +/// +interface DWRITE_DECLARE_INTERFACE("5e5a32a3-8dff-4773-9ff6-0696eab77267") IDWriteBitmapRenderTarget : public IUnknown +{ + /// + /// Draws a run of glyphs to the bitmap. + /// + /// Horizontal position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB. + /// Vertical position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB. + /// Specifies measuring mode for glyphs in the run. + /// Renderer implementations may choose different rendering modes for different measuring modes, for example + /// DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL for DWRITE_MEASURING_MODE_NATURAL, + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC for DWRITE_MEASURING_MODE_GDI_CLASSIC, and + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL for DWRITE_MEASURING_MODE_GDI_NATURAL. + /// + /// Structure containing the properties of the glyph run. + /// Object that controls rendering behavior. + /// Specifies the foreground color of the text. + /// Optional rectangle that receives the bounding box (in pixels not DIPs) of all the pixels affected by + /// drawing the glyph run. The black box rectangle may extend beyond the dimensions of the bitmap. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(DrawGlyphRun)( + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_MEASURING_MODE measuringMode, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_ IDWriteRenderingParams* renderingParams, + COLORREF textColor, + _Out_opt_ RECT* blackBoxRect = NULL + ) PURE; + + /// + /// Gets a handle to the memory device context. + /// + /// + /// Returns the device context handle. + /// + /// + /// An application can use the device context to draw using GDI functions. An application can obtain the bitmap handle + /// (HBITMAP) by calling GetCurrentObject. An application that wants information about the underlying bitmap, including + /// a pointer to the pixel data, can call GetObject to fill in a DIBSECTION structure. The bitmap is always a 32-bit + /// top-down DIB. + /// + STDMETHOD_(HDC, GetMemoryDC)() PURE; + + /// + /// Gets the number of bitmap pixels per DIP. A DIP (device-independent pixel) is 1/96 inch so this value is the number + /// if pixels per inch divided by 96. + /// + /// + /// Returns the number of bitmap pixels per DIP. + /// + STDMETHOD_(FLOAT, GetPixelsPerDip)() PURE; + + /// + /// Sets the number of bitmap pixels per DIP. A DIP (device-independent pixel) is 1/96 inch so this value is the number + /// if pixels per inch divided by 96. + /// + /// Specifies the number of pixels per DIP. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetPixelsPerDip)( + FLOAT pixelsPerDip + ) PURE; + + /// + /// Gets the transform that maps abstract coordinate to DIPs. By default this is the identity + /// transform. Note that this is unrelated to the world transform of the underlying device + /// context. + /// + /// Receives the transform. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetCurrentTransform)( + _Out_ DWRITE_MATRIX* transform + ) PURE; + + /// + /// Sets the transform that maps abstract coordinate to DIPs. This does not affect the world + /// transform of the underlying device context. + /// + /// Specifies the new transform. This parameter can be NULL, in which + /// case the identity transform is implied. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetCurrentTransform)( + _In_opt_ DWRITE_MATRIX const* transform + ) PURE; + + /// + /// Gets the dimensions of the bitmap. + /// + /// Receives the size of the bitmap in pixels. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSize)( + _Out_ SIZE* size + ) PURE; + + /// + /// Resizes the bitmap. + /// + /// New bitmap width, in pixels. + /// New bitmap height, in pixels. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(Resize)( + UINT32 width, + UINT32 height + ) PURE; +}; + +/// +/// The GDI interop interface provides interoperability with GDI. +/// +interface DWRITE_DECLARE_INTERFACE("1edd9491-9853-4299-898f-6432983b6f3a") IDWriteGdiInterop : public IUnknown +{ + /// + /// Creates a font object that matches the properties specified by the LOGFONT structure + /// in the system font collection (GetSystemFontCollection). + /// + /// Structure containing a GDI-compatible font description. + /// Receives a newly created font object if successful, or NULL in case of error. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFromLOGFONT)( + _In_ LOGFONTW const* logFont, + _COM_Outptr_ IDWriteFont** font + ) PURE; + + /// + /// Initializes a LOGFONT structure based on the GDI-compatible properties of the specified font. + /// + /// Specifies a font. + /// Structure that receives a GDI-compatible font description. + /// Contains TRUE if the specified font object is part of the system font collection + /// or FALSE otherwise. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(ConvertFontToLOGFONT)( + _In_ IDWriteFont* font, + _Out_ LOGFONTW* logFont, + _Out_ BOOL* isSystemFont + ) PURE; + + /// + /// Initializes a LOGFONT structure based on the GDI-compatible properties of the specified font. + /// + /// Specifies a font face. + /// Structure that receives a GDI-compatible font description. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(ConvertFontFaceToLOGFONT)( + _In_ IDWriteFontFace* font, + _Out_ LOGFONTW* logFont + ) PURE; + + /// + /// Creates a font face object that corresponds to the currently selected HFONT. + /// + /// Handle to a device context into which a font has been selected. It is assumed that the client + /// has already performed font mapping and that the font selected into the DC is the actual font that would be used + /// for rendering glyphs. + /// Contains the newly created font face object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFaceFromHdc)( + HDC hdc, + _COM_Outptr_ IDWriteFontFace** fontFace + ) PURE; + + /// + /// Creates an object that encapsulates a bitmap and memory DC which can be used for rendering glyphs. + /// + /// Optional device context used to create a compatible memory DC. + /// Width of the bitmap. + /// Height of the bitmap. + /// Receives a pointer to the newly created render target. + STDMETHOD(CreateBitmapRenderTarget)( + _In_opt_ HDC hdc, + UINT32 width, + UINT32 height, + _COM_Outptr_ IDWriteBitmapRenderTarget** renderTarget + ) PURE; +}; + +/// +/// The DWRITE_TEXTURE_TYPE enumeration identifies a type of alpha texture. An alpha texture is a bitmap of alpha values, each +/// representing the darkness (i.e., opacity) of a pixel or subpixel. +/// +enum DWRITE_TEXTURE_TYPE +{ + /// + /// Specifies an alpha texture for aliased text rendering (i.e., bi-level, where each pixel is either fully opaque or fully transparent), + /// with one byte per pixel. + /// + DWRITE_TEXTURE_ALIASED_1x1, + + /// + /// Specifies an alpha texture for ClearType text rendering, with three bytes per pixel in the horizontal dimension and + /// one byte per pixel in the vertical dimension. + /// + DWRITE_TEXTURE_CLEARTYPE_3x1 +}; + +/// +/// Maximum alpha value in a texture returned by IDWriteGlyphRunAnalysis::CreateAlphaTexture. +/// +#define DWRITE_ALPHA_MAX 255 + +/// +/// Interface that encapsulates information used to render a glyph run. +/// +interface DWRITE_DECLARE_INTERFACE("7d97dbf7-e085-42d4-81e3-6a883bded118") IDWriteGlyphRunAnalysis : public IUnknown +{ + /// + /// Gets the bounding rectangle of the physical pixels affected by the glyph run. + /// + /// Specifies the type of texture requested. If a bi-level texture is requested, the + /// bounding rectangle includes only bi-level glyphs. Otherwise, the bounding rectangle includes only anti-aliased + /// glyphs. + /// Receives the bounding rectangle, or an empty rectangle if there are no glyphs + /// if the specified type. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetAlphaTextureBounds)( + DWRITE_TEXTURE_TYPE textureType, + _Out_ RECT* textureBounds + ) PURE; + + /// + /// Creates an alpha texture of the specified type. + /// + /// Specifies the type of texture requested. If a bi-level texture is requested, the + /// texture contains only bi-level glyphs. Otherwise, the texture contains only anti-aliased glyphs. + /// Specifies the bounding rectangle of the texture, which can be different than + /// the bounding rectangle returned by GetAlphaTextureBounds. + /// Receives the array of alpha values. + /// Size of the alphaValues array. The minimum size depends on the dimensions of the + /// rectangle and the type of texture requested. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateAlphaTexture)( + DWRITE_TEXTURE_TYPE textureType, + _In_ RECT const* textureBounds, + _Out_writes_bytes_(bufferSize) BYTE* alphaValues, + UINT32 bufferSize + ) PURE; + + /// + /// Gets properties required for ClearType blending. + /// + /// Rendering parameters object. In most cases, the values returned in the output + /// parameters are based on the properties of this object. The exception is if a GDI-compatible rendering mode + /// is specified. + /// Receives the gamma value to use for gamma correction. + /// Receives the enhanced contrast value. + /// Receives the ClearType level. + STDMETHOD(GetAlphaBlendParams)( + _In_ IDWriteRenderingParams* renderingParams, + _Out_ FLOAT* blendGamma, + _Out_ FLOAT* blendEnhancedContrast, + _Out_ FLOAT* blendClearTypeLevel + ) PURE; +}; + +/// +/// The root factory interface for all DWrite objects. +/// +interface DWRITE_DECLARE_INTERFACE("b859ee5a-d838-4b5b-a2e8-1adc7d93db48") IDWriteFactory : public IUnknown +{ + /// + /// Gets a font collection representing the set of installed fonts. + /// + /// Receives a pointer to the system font collection object, or NULL in case of failure. + /// If this parameter is nonzero, the function performs an immediate check for changes to the set of + /// installed fonts. If this parameter is FALSE, the function will still detect changes if the font cache service is running, but + /// there may be some latency. For example, an application might specify TRUE if it has itself just installed a font and wants to + /// be sure the font collection contains that font. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontCollection)( + _COM_Outptr_ IDWriteFontCollection** fontCollection, + BOOL checkForUpdates = FALSE + ) PURE; + + /// + /// Creates a font collection using a custom font collection loader. + /// + /// Application-defined font collection loader, which must have been previously + /// registered using RegisterFontCollectionLoader. + /// Key used by the loader to identify a collection of font files. + /// Size in bytes of the collection key. + /// Receives a pointer to the system font collection object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateCustomFontCollection)( + _In_ IDWriteFontCollectionLoader* collectionLoader, + _In_reads_bytes_(collectionKeySize) void const* collectionKey, + UINT32 collectionKeySize, + _COM_Outptr_ IDWriteFontCollection** fontCollection + ) PURE; + + /// + /// Registers a custom font collection loader with the factory object. + /// + /// Application-defined font collection loader. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(RegisterFontCollectionLoader)( + _In_ IDWriteFontCollectionLoader* fontCollectionLoader + ) PURE; + + /// + /// Unregisters a custom font collection loader that was previously registered using RegisterFontCollectionLoader. + /// + /// Application-defined font collection loader. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(UnregisterFontCollectionLoader)( + _In_ IDWriteFontCollectionLoader* fontCollectionLoader + ) PURE; + + /// + /// CreateFontFileReference creates a font file reference object from a local font file. + /// + /// Absolute file path. Subsequent operations on the constructed object may fail + /// if the user provided filePath doesn't correspond to a valid file on the disk. + /// Last modified time of the input file path. If the parameter is omitted, + /// the function will access the font file to obtain its last write time, so the clients are encouraged to specify this value + /// to avoid extra disk access. Subsequent operations on the constructed object may fail + /// if the user provided lastWriteTime doesn't match the file on the disk. + /// Contains newly created font file reference object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFileReference)( + _In_z_ WCHAR const* filePath, + _In_opt_ FILETIME const* lastWriteTime, + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; + + /// + /// CreateCustomFontFileReference creates a reference to an application specific font file resource. + /// This function enables an application or a document to use a font without having to install it on the system. + /// The fontFileReferenceKey has to be unique only in the scope of the fontFileLoader used in this call. + /// + /// Font file reference key that uniquely identifies the font file resource + /// during the lifetime of fontFileLoader. + /// Size of font file reference key in bytes. + /// Font file loader that will be used by the font system to load data from the file identified by + /// fontFileReferenceKey. + /// Contains the newly created font file object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// This function is provided for cases when an application or a document needs to use a font + /// without having to install it on the system. fontFileReferenceKey has to be unique only in the scope + /// of the fontFileLoader used in this call. + /// + STDMETHOD(CreateCustomFontFileReference)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _In_ IDWriteFontFileLoader* fontFileLoader, + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; + + /// + /// Creates a font face object. + /// + /// The file format of the font face. + /// The number of font files required to represent the font face. + /// Font files representing the font face. Since IDWriteFontFace maintains its own references + /// to the input font file objects, it's OK to release them after this call. + /// The zero based index of a font face in cases when the font files contain a collection of font faces. + /// If the font files contain a single face, this value should be zero. + /// Font face simulation flags for algorithmic emboldening and italicization. + /// Contains the newly created font face object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFace)( + DWRITE_FONT_FACE_TYPE fontFaceType, + UINT32 numberOfFiles, + _In_reads_(numberOfFiles) IDWriteFontFile* const* fontFiles, + UINT32 faceIndex, + DWRITE_FONT_SIMULATIONS fontFaceSimulationFlags, + _COM_Outptr_ IDWriteFontFace** fontFace + ) PURE; + + /// + /// Creates a rendering parameters object with default settings for the primary monitor. + /// + /// Holds the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateRenderingParams)( + _COM_Outptr_ IDWriteRenderingParams** renderingParams + ) PURE; + + /// + /// Creates a rendering parameters object with default settings for the specified monitor. + /// + /// The monitor to read the default values from. + /// Holds the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateMonitorRenderingParams)( + HMONITOR monitor, + _COM_Outptr_ IDWriteRenderingParams** renderingParams + ) PURE; + + /// + /// Creates a rendering parameters object with the specified properties. + /// + /// The gamma value used for gamma correction, which must be greater than zero and cannot exceed 256. + /// The amount of contrast enhancement, zero or greater. + /// The degree of ClearType level, from 0.0f (no ClearType) to 1.0f (full ClearType). + /// The geometry of a device pixel. + /// Method of rendering glyphs. In most cases, this should be DWRITE_RENDERING_MODE_DEFAULT to automatically use an appropriate mode. + /// Holds the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateCustomRenderingParams)( + FLOAT gamma, + FLOAT enhancedContrast, + FLOAT clearTypeLevel, + DWRITE_PIXEL_GEOMETRY pixelGeometry, + DWRITE_RENDERING_MODE renderingMode, + _COM_Outptr_ IDWriteRenderingParams** renderingParams + ) PURE; + + /// + /// Registers a font file loader with DirectWrite. + /// + /// Pointer to the implementation of the IDWriteFontFileLoader for a particular file resource type. + /// + /// Standard HRESULT error code. + /// + /// + /// This function registers a font file loader with DirectWrite. + /// Font file loader interface handles loading font file resources of a particular type from a key. + /// The font file loader interface is recommended to be implemented by a singleton object. + /// A given instance can only be registered once. + /// Succeeding attempts will return an error that it has already been registered. + /// IMPORTANT: font file loader implementations must not register themselves with DirectWrite + /// inside their constructors and must not unregister themselves in their destructors, because + /// registration and unregistration operations increment and decrement the object reference count respectively. + /// Instead, registration and unregistration of font file loaders with DirectWrite should be performed + /// outside of the font file loader implementation as a separate step. + /// + STDMETHOD(RegisterFontFileLoader)( + _In_ IDWriteFontFileLoader* fontFileLoader + ) PURE; + + /// + /// Unregisters a font file loader that was previously registered with the DirectWrite font system using RegisterFontFileLoader. + /// + /// Pointer to the file loader that was previously registered with the DirectWrite font system using RegisterFontFileLoader. + /// + /// This function will succeed if the user loader is requested to be removed. + /// It will fail if the pointer to the file loader identifies a standard DirectWrite loader, + /// or a loader that is never registered or has already been unregistered. + /// + /// + /// This function unregisters font file loader callbacks with the DirectWrite font system. + /// The font file loader interface is recommended to be implemented by a singleton object. + /// IMPORTANT: font file loader implementations must not register themselves with DirectWrite + /// inside their constructors and must not unregister themselves in their destructors, because + /// registration and unregistration operations increment and decrement the object reference count respectively. + /// Instead, registration and unregistration of font file loaders with DirectWrite should be performed + /// outside of the font file loader implementation as a separate step. + /// + STDMETHOD(UnregisterFontFileLoader)( + _In_ IDWriteFontFileLoader* fontFileLoader + ) PURE; + + /// + /// Create a text format object used for text layout. + /// + /// Name of the font family + /// Font collection. NULL indicates the system font collection. + /// Font weight + /// Font style + /// Font stretch + /// Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + /// Locale name + /// Contains newly created text format object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// If fontCollection is nullptr, the system font collection is used, grouped by typographic family name + /// (DWRITE_FONT_FAMILY_MODEL_WEIGHT_STRETCH_STYLE) without downloadable fonts. + /// + STDMETHOD(CreateTextFormat)( + _In_z_ WCHAR const* fontFamilyName, + _In_opt_ IDWriteFontCollection* fontCollection, + DWRITE_FONT_WEIGHT fontWeight, + DWRITE_FONT_STYLE fontStyle, + DWRITE_FONT_STRETCH fontStretch, + FLOAT fontSize, + _In_z_ WCHAR const* localeName, + _COM_Outptr_ IDWriteTextFormat** textFormat + ) PURE; + + /// + /// Create a typography object used in conjunction with text format for text layout. + /// + /// Contains newly created typography object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateTypography)( + _COM_Outptr_ IDWriteTypography** typography + ) PURE; + + /// + /// Create an object used for interoperability with GDI. + /// + /// Receives the GDI interop object if successful, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGdiInterop)( + _COM_Outptr_ IDWriteGdiInterop** gdiInterop + ) PURE; + + /// + /// CreateTextLayout takes a string, format, and associated constraints + /// and produces an object representing the fully analyzed + /// and formatted result. + /// + /// The string to layout. + /// The length of the string. + /// The format to apply to the string. + /// Width of the layout box. + /// Height of the layout box. + /// The resultant object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateTextLayout)( + _In_reads_(stringLength) WCHAR const* string, + UINT32 stringLength, + _In_ IDWriteTextFormat* textFormat, + FLOAT maxWidth, + FLOAT maxHeight, + _COM_Outptr_ IDWriteTextLayout** textLayout + ) PURE; + + /// + /// CreateGdiCompatibleTextLayout takes a string, format, and associated constraints + /// and produces and object representing the result formatted for a particular display resolution + /// and measuring mode. The resulting text layout should only be used for the intended resolution, + /// and for cases where text scalability is desired, CreateTextLayout should be used instead. + /// + /// The string to layout. + /// The length of the string. + /// The format to apply to the string. + /// Width of the layout box. + /// Height of the layout box. + /// Number of physical pixels per DIP. For example, if rendering onto a 96 DPI device then pixelsPerDip + /// is 1. If rendering onto a 120 DPI device then pixelsPerDip is 120/96. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified the font size and pixelsPerDip. + /// + /// When set to FALSE, instructs the text layout to use the same metrics as GDI aliased text. + /// When set to TRUE, instructs the text layout to use the same metrics as text measured by GDI using a font + /// created with CLEARTYPE_NATURAL_QUALITY. + /// + /// The resultant object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateGdiCompatibleTextLayout)( + _In_reads_(stringLength) WCHAR const* string, + UINT32 stringLength, + _In_ IDWriteTextFormat* textFormat, + FLOAT layoutWidth, + FLOAT layoutHeight, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL useGdiNatural, + _COM_Outptr_ IDWriteTextLayout** textLayout + ) PURE; + + /// + /// The application may call this function to create an inline object for trimming, using an ellipsis as the omission sign. + /// The ellipsis will be created using the current settings of the format, including base font, style, and any effects. + /// Alternate omission signs can be created by the application by implementing IDWriteInlineObject. + /// + /// Text format used as a template for the omission sign. + /// Created omission sign. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateEllipsisTrimmingSign)( + _In_ IDWriteTextFormat* textFormat, + _COM_Outptr_ IDWriteInlineObject** trimmingSign + ) PURE; + + /// + /// Return an interface to perform text analysis with. + /// + /// The resultant object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateTextAnalyzer)( + _COM_Outptr_ IDWriteTextAnalyzer** textAnalyzer + ) PURE; + + /// + /// Creates a number substitution object using a locale name, + /// substitution method, and whether to ignore user overrides (uses NLS + /// defaults for the given culture instead). + /// + /// Method of number substitution to use. + /// Which locale to obtain the digits from. + /// Ignore the user's settings and use the locale defaults + /// Receives a pointer to the newly created object. + STDMETHOD(CreateNumberSubstitution)( + _In_ DWRITE_NUMBER_SUBSTITUTION_METHOD substitutionMethod, + _In_z_ WCHAR const* localeName, + _In_ BOOL ignoreUserOverride, + _COM_Outptr_ IDWriteNumberSubstitution** numberSubstitution + ) PURE; + + /// + /// Creates a glyph run analysis object, which encapsulates information + /// used to render a glyph run. + /// + /// Structure specifying the properties of the glyph run. + /// Number of physical pixels per DIP. For example, if rendering onto a 96 DPI bitmap then pixelsPerDip + /// is 1. If rendering onto a 120 DPI bitmap then pixelsPerDip is 120/96. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the emSize and pixelsPerDip. + /// Specifies the rendering mode, which must be one of the raster rendering modes (i.e., not default + /// and not outline). + /// Specifies the method to measure glyphs. + /// Horizontal position of the baseline origin, in DIPs. + /// Vertical position of the baseline origin, in DIPs. + /// Receives a pointer to the newly created object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateGlyphRunAnalysis)( + _In_ DWRITE_GLYPH_RUN const* glyphRun, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + DWRITE_RENDERING_MODE renderingMode, + DWRITE_MEASURING_MODE measuringMode, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _COM_Outptr_ IDWriteGlyphRunAnalysis** glyphRunAnalysis + ) PURE; + +}; // interface IDWriteFactory + + +/// +/// Creates a DirectWrite factory object that is used for subsequent creation of individual DirectWrite objects. +/// +/// Identifies whether the factory object will be shared or isolated. +/// Identifies the DirectWrite factory interface, such as __uuidof(IDWriteFactory). +/// Receives the DirectWrite factory object. +/// +/// Standard HRESULT error code. +/// +/// +/// Obtains DirectWrite factory object that is used for subsequent creation of individual DirectWrite classes. +/// DirectWrite factory contains internal state such as font loader registration and cached font data. +/// In most cases it is recommended to use the shared factory object, because it allows multiple components +/// that use DirectWrite to share internal DirectWrite state and reduce memory usage. +/// However, there are cases when it is desirable to reduce the impact of a component, +/// such as a plug-in from an untrusted source, on the rest of the process by sandboxing and isolating it +/// from the rest of the process components. In such cases, it is recommended to use an isolated factory for the sandboxed +/// component. +/// +EXTERN_C HRESULT DWRITE_EXPORT DWriteCreateFactory( + _In_ DWRITE_FACTORY_TYPE factoryType, + _In_ REFIID iid, + _COM_Outptr_ IUnknown **factory + ) WIN_NOEXCEPT; + +// Macros used to define DirectWrite error codes. +#define FACILITY_DWRITE 0x898 +#define DWRITE_ERR_BASE 0x5000 +#define MAKE_DWRITE_HR(severity, code) MAKE_HRESULT(severity, FACILITY_DWRITE, (DWRITE_ERR_BASE + code)) +#define MAKE_DWRITE_HR_ERR(code) MAKE_DWRITE_HR(SEVERITY_ERROR, code) + +// DWrite errors have moved to winerror.h + + +#endif /* DWRITE_H_INCLUDED */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite_1.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite_1.h new file mode 100644 index 0000000000000000000000000000000000000000..727b009a38d2e771916e7b5fb02b6a706b3658c4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite_1.h @@ -0,0 +1,1926 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// DirectX Typography Services public API definitions. +// +//---------------------------------------------------------------------------- + +#ifndef DWRITE_1_H_INCLUDED +#define DWRITE_1_H_INCLUDED + +#pragma once + +#include + + + +/// +/// The overall kind of family. +/// +enum DWRITE_PANOSE_FAMILY +{ + DWRITE_PANOSE_FAMILY_ANY = 0, + DWRITE_PANOSE_FAMILY_NO_FIT = 1, + DWRITE_PANOSE_FAMILY_TEXT_DISPLAY = 2, + DWRITE_PANOSE_FAMILY_SCRIPT = 3, // or hand written + DWRITE_PANOSE_FAMILY_DECORATIVE = 4, + DWRITE_PANOSE_FAMILY_SYMBOL = 5, // or symbol + DWRITE_PANOSE_FAMILY_PICTORIAL = DWRITE_PANOSE_FAMILY_SYMBOL +}; + +/// +/// Appearance of the serifs. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_SERIF_STYLE +{ + DWRITE_PANOSE_SERIF_STYLE_ANY = 0, + DWRITE_PANOSE_SERIF_STYLE_NO_FIT = 1, + DWRITE_PANOSE_SERIF_STYLE_COVE = 2, + DWRITE_PANOSE_SERIF_STYLE_OBTUSE_COVE = 3, + DWRITE_PANOSE_SERIF_STYLE_SQUARE_COVE = 4, + DWRITE_PANOSE_SERIF_STYLE_OBTUSE_SQUARE_COVE = 5, + DWRITE_PANOSE_SERIF_STYLE_SQUARE = 6, + DWRITE_PANOSE_SERIF_STYLE_THIN = 7, + DWRITE_PANOSE_SERIF_STYLE_OVAL = 8, + DWRITE_PANOSE_SERIF_STYLE_EXAGGERATED = 9, + DWRITE_PANOSE_SERIF_STYLE_TRIANGLE = 10, + DWRITE_PANOSE_SERIF_STYLE_NORMAL_SANS = 11, + DWRITE_PANOSE_SERIF_STYLE_OBTUSE_SANS = 12, + DWRITE_PANOSE_SERIF_STYLE_PERPENDICULAR_SANS = 13, + DWRITE_PANOSE_SERIF_STYLE_FLARED = 14, + DWRITE_PANOSE_SERIF_STYLE_ROUNDED = 15, + DWRITE_PANOSE_SERIF_STYLE_SCRIPT = 16, + DWRITE_PANOSE_SERIF_STYLE_PERP_SANS = DWRITE_PANOSE_SERIF_STYLE_PERPENDICULAR_SANS, + DWRITE_PANOSE_SERIF_STYLE_BONE = DWRITE_PANOSE_SERIF_STYLE_OVAL +}; + +/// +/// PANOSE font weights. These roughly correspond to the DWRITE_FONT_WEIGHT's +/// using (panose_weight - 2) * 100. +/// Present for families: 2-text, 3-script, 4-decorative, 5-symbol +/// +enum DWRITE_PANOSE_WEIGHT +{ + DWRITE_PANOSE_WEIGHT_ANY = 0, + DWRITE_PANOSE_WEIGHT_NO_FIT = 1, + DWRITE_PANOSE_WEIGHT_VERY_LIGHT = 2, + DWRITE_PANOSE_WEIGHT_LIGHT = 3, + DWRITE_PANOSE_WEIGHT_THIN = 4, + DWRITE_PANOSE_WEIGHT_BOOK = 5, + DWRITE_PANOSE_WEIGHT_MEDIUM = 6, + DWRITE_PANOSE_WEIGHT_DEMI = 7, + DWRITE_PANOSE_WEIGHT_BOLD = 8, + DWRITE_PANOSE_WEIGHT_HEAVY = 9, + DWRITE_PANOSE_WEIGHT_BLACK = 10, + DWRITE_PANOSE_WEIGHT_EXTRA_BLACK = 11, + DWRITE_PANOSE_WEIGHT_NORD = DWRITE_PANOSE_WEIGHT_EXTRA_BLACK +}; + +/// +/// Proportion of the glyph shape considering additional detail to standard +/// characters. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_PROPORTION +{ + DWRITE_PANOSE_PROPORTION_ANY = 0, + DWRITE_PANOSE_PROPORTION_NO_FIT = 1, + DWRITE_PANOSE_PROPORTION_OLD_STYLE = 2, + DWRITE_PANOSE_PROPORTION_MODERN = 3, + DWRITE_PANOSE_PROPORTION_EVEN_WIDTH = 4, + DWRITE_PANOSE_PROPORTION_EXPANDED = 5, + DWRITE_PANOSE_PROPORTION_CONDENSED = 6, + DWRITE_PANOSE_PROPORTION_VERY_EXPANDED = 7, + DWRITE_PANOSE_PROPORTION_VERY_CONDENSED = 8, + DWRITE_PANOSE_PROPORTION_MONOSPACED = 9 +}; + +/// +/// Ratio between thickest and thinnest point of the stroke for a letter such +/// as uppercase 'O'. +/// Present for families: 2-text, 3-script, 4-decorative +/// +enum DWRITE_PANOSE_CONTRAST +{ + DWRITE_PANOSE_CONTRAST_ANY = 0, + DWRITE_PANOSE_CONTRAST_NO_FIT = 1, + DWRITE_PANOSE_CONTRAST_NONE = 2, + DWRITE_PANOSE_CONTRAST_VERY_LOW = 3, + DWRITE_PANOSE_CONTRAST_LOW = 4, + DWRITE_PANOSE_CONTRAST_MEDIUM_LOW = 5, + DWRITE_PANOSE_CONTRAST_MEDIUM = 6, + DWRITE_PANOSE_CONTRAST_MEDIUM_HIGH = 7, + DWRITE_PANOSE_CONTRAST_HIGH = 8, + DWRITE_PANOSE_CONTRAST_VERY_HIGH = 9, + DWRITE_PANOSE_CONTRAST_HORIZONTAL_LOW = 10, + DWRITE_PANOSE_CONTRAST_HORIZONTAL_MEDIUM = 11, + DWRITE_PANOSE_CONTRAST_HORIZONTAL_HIGH = 12, + DWRITE_PANOSE_CONTRAST_BROKEN = 13 +}; + +/// +/// Relationship between thin and thick stems. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_STROKE_VARIATION +{ + DWRITE_PANOSE_STROKE_VARIATION_ANY = 0, + DWRITE_PANOSE_STROKE_VARIATION_NO_FIT = 1, + DWRITE_PANOSE_STROKE_VARIATION_NO_VARIATION = 2, + DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_DIAGONAL = 3, + DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_TRANSITIONAL = 4, + DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_VERTICAL = 5, + DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_HORIZONTAL = 6, + DWRITE_PANOSE_STROKE_VARIATION_RAPID_VERTICAL = 7, + DWRITE_PANOSE_STROKE_VARIATION_RAPID_HORIZONTAL = 8, + DWRITE_PANOSE_STROKE_VARIATION_INSTANT_VERTICAL = 9, + DWRITE_PANOSE_STROKE_VARIATION_INSTANT_HORIZONTAL = 10 +}; + +/// +/// Style of termination of stems and rounded letterforms. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_ARM_STYLE +{ + DWRITE_PANOSE_ARM_STYLE_ANY = 0, + DWRITE_PANOSE_ARM_STYLE_NO_FIT = 1, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_HORIZONTAL = 2, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_WEDGE = 3, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_VERTICAL = 4, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_SINGLE_SERIF = 5, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_DOUBLE_SERIF = 6, + DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_HORIZONTAL = 7, + DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_WEDGE = 8, + DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_VERTICAL = 9, + DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_SINGLE_SERIF = 10, + DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_DOUBLE_SERIF = 11, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_HORZ = DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_HORIZONTAL, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_VERT = DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_VERTICAL, + DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_HORZ = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_HORIZONTAL, + DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_WEDGE = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_WEDGE, + DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_VERT = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_VERTICAL, + DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_SINGLE_SERIF = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_SINGLE_SERIF, + DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_DOUBLE_SERIF = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_DOUBLE_SERIF +}; + +/// +/// Roundness of letterform. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_LETTERFORM +{ + DWRITE_PANOSE_LETTERFORM_ANY = 0, + DWRITE_PANOSE_LETTERFORM_NO_FIT = 1, + DWRITE_PANOSE_LETTERFORM_NORMAL_CONTACT = 2, + DWRITE_PANOSE_LETTERFORM_NORMAL_WEIGHTED = 3, + DWRITE_PANOSE_LETTERFORM_NORMAL_BOXED = 4, + DWRITE_PANOSE_LETTERFORM_NORMAL_FLATTENED = 5, + DWRITE_PANOSE_LETTERFORM_NORMAL_ROUNDED = 6, + DWRITE_PANOSE_LETTERFORM_NORMAL_OFF_CENTER = 7, + DWRITE_PANOSE_LETTERFORM_NORMAL_SQUARE = 8, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_CONTACT = 9, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_WEIGHTED = 10, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_BOXED = 11, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_FLATTENED = 12, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_ROUNDED = 13, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_OFF_CENTER = 14, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_SQUARE = 15 +}; + +/// +/// Placement of midline across uppercase characters and treatment of diagonal +/// stem apexes. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_MIDLINE +{ + DWRITE_PANOSE_MIDLINE_ANY = 0, + DWRITE_PANOSE_MIDLINE_NO_FIT = 1, + DWRITE_PANOSE_MIDLINE_STANDARD_TRIMMED = 2, + DWRITE_PANOSE_MIDLINE_STANDARD_POINTED = 3, + DWRITE_PANOSE_MIDLINE_STANDARD_SERIFED = 4, + DWRITE_PANOSE_MIDLINE_HIGH_TRIMMED = 5, + DWRITE_PANOSE_MIDLINE_HIGH_POINTED = 6, + DWRITE_PANOSE_MIDLINE_HIGH_SERIFED = 7, + DWRITE_PANOSE_MIDLINE_CONSTANT_TRIMMED = 8, + DWRITE_PANOSE_MIDLINE_CONSTANT_POINTED = 9, + DWRITE_PANOSE_MIDLINE_CONSTANT_SERIFED = 10, + DWRITE_PANOSE_MIDLINE_LOW_TRIMMED = 11, + DWRITE_PANOSE_MIDLINE_LOW_POINTED = 12, + DWRITE_PANOSE_MIDLINE_LOW_SERIFED = 13 +}; + +/// +/// Relative size of lowercase letters and treament of diacritic marks +/// and uppercase glyphs. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_XHEIGHT +{ + DWRITE_PANOSE_XHEIGHT_ANY = 0, + DWRITE_PANOSE_XHEIGHT_NO_FIT = 1, + DWRITE_PANOSE_XHEIGHT_CONSTANT_SMALL = 2, + DWRITE_PANOSE_XHEIGHT_CONSTANT_STANDARD = 3, + DWRITE_PANOSE_XHEIGHT_CONSTANT_LARGE = 4, + DWRITE_PANOSE_XHEIGHT_DUCKING_SMALL = 5, + DWRITE_PANOSE_XHEIGHT_DUCKING_STANDARD = 6, + DWRITE_PANOSE_XHEIGHT_DUCKING_LARGE = 7, + DWRITE_PANOSE_XHEIGHT_CONSTANT_STD = DWRITE_PANOSE_XHEIGHT_CONSTANT_STANDARD, + DWRITE_PANOSE_XHEIGHT_DUCKING_STD = DWRITE_PANOSE_XHEIGHT_DUCKING_STANDARD +}; + +/// +/// Kind of tool used to create character forms. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_TOOL_KIND +{ + DWRITE_PANOSE_TOOL_KIND_ANY = 0, + DWRITE_PANOSE_TOOL_KIND_NO_FIT = 1, + DWRITE_PANOSE_TOOL_KIND_FLAT_NIB = 2, + DWRITE_PANOSE_TOOL_KIND_PRESSURE_POINT = 3, + DWRITE_PANOSE_TOOL_KIND_ENGRAVED = 4, + DWRITE_PANOSE_TOOL_KIND_BALL = 5, + DWRITE_PANOSE_TOOL_KIND_BRUSH = 6, + DWRITE_PANOSE_TOOL_KIND_ROUGH = 7, + DWRITE_PANOSE_TOOL_KIND_FELT_PEN_BRUSH_TIP = 8, + DWRITE_PANOSE_TOOL_KIND_WILD_BRUSH = 9 +}; + +/// +/// Monospace vs proportional. +/// Present for families: 3-script, 5-symbol +/// +enum DWRITE_PANOSE_SPACING +{ + DWRITE_PANOSE_SPACING_ANY = 0, + DWRITE_PANOSE_SPACING_NO_FIT = 1, + DWRITE_PANOSE_SPACING_PROPORTIONAL_SPACED = 2, + DWRITE_PANOSE_SPACING_MONOSPACED = 3, +}; + +/// +/// Ratio between width and height of the face. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_ASPECT_RATIO +{ + DWRITE_PANOSE_ASPECT_RATIO_ANY = 0, + DWRITE_PANOSE_ASPECT_RATIO_NO_FIT = 1, + DWRITE_PANOSE_ASPECT_RATIO_VERY_CONDENSED = 2, + DWRITE_PANOSE_ASPECT_RATIO_CONDENSED = 3, + DWRITE_PANOSE_ASPECT_RATIO_NORMAL = 4, + DWRITE_PANOSE_ASPECT_RATIO_EXPANDED = 5, + DWRITE_PANOSE_ASPECT_RATIO_VERY_EXPANDED = 6 +}; + +/// +/// Topology of letterforms. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_SCRIPT_TOPOLOGY +{ + DWRITE_PANOSE_SCRIPT_TOPOLOGY_ANY = 0, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_NO_FIT = 1, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_ROMAN_DISCONNECTED = 2, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_ROMAN_TRAILING = 3, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_ROMAN_CONNECTED = 4, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_CURSIVE_DISCONNECTED = 5, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_CURSIVE_TRAILING = 6, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_CURSIVE_CONNECTED = 7, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_BLACKLETTER_DISCONNECTED = 8, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_BLACKLETTER_TRAILING = 9, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_BLACKLETTER_CONNECTED = 10 +}; + +/// +/// General look of the face, considering slope and tails. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_SCRIPT_FORM +{ + DWRITE_PANOSE_SCRIPT_FORM_ANY = 0, + DWRITE_PANOSE_SCRIPT_FORM_NO_FIT = 1, + DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_NO_WRAPPING = 2, + DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_SOME_WRAPPING = 3, + DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_MORE_WRAPPING = 4, + DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_EXTREME_WRAPPING = 5, + DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_NO_WRAPPING = 6, + DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_SOME_WRAPPING = 7, + DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_MORE_WRAPPING = 8, + DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_EXTREME_WRAPPING = 9, + DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_NO_WRAPPING = 10, + DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_SOME_WRAPPING = 11, + DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_MORE_WRAPPING = 12, + DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_EXTREME_WRAPPING = 13 +}; + +/// +/// How character ends and miniscule ascenders are treated. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_FINIALS +{ + DWRITE_PANOSE_FINIALS_ANY = 0, + DWRITE_PANOSE_FINIALS_NO_FIT = 1, + DWRITE_PANOSE_FINIALS_NONE_NO_LOOPS = 2, + DWRITE_PANOSE_FINIALS_NONE_CLOSED_LOOPS = 3, + DWRITE_PANOSE_FINIALS_NONE_OPEN_LOOPS = 4, + DWRITE_PANOSE_FINIALS_SHARP_NO_LOOPS = 5, + DWRITE_PANOSE_FINIALS_SHARP_CLOSED_LOOPS = 6, + DWRITE_PANOSE_FINIALS_SHARP_OPEN_LOOPS = 7, + DWRITE_PANOSE_FINIALS_TAPERED_NO_LOOPS = 8, + DWRITE_PANOSE_FINIALS_TAPERED_CLOSED_LOOPS = 9, + DWRITE_PANOSE_FINIALS_TAPERED_OPEN_LOOPS = 10, + DWRITE_PANOSE_FINIALS_ROUND_NO_LOOPS = 11, + DWRITE_PANOSE_FINIALS_ROUND_CLOSED_LOOPS = 12, + DWRITE_PANOSE_FINIALS_ROUND_OPEN_LOOPS = 13 +}; + +/// +/// Relative size of the lowercase letters. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_XASCENT +{ + DWRITE_PANOSE_XASCENT_ANY = 0, + DWRITE_PANOSE_XASCENT_NO_FIT = 1, + DWRITE_PANOSE_XASCENT_VERY_LOW = 2, + DWRITE_PANOSE_XASCENT_LOW = 3, + DWRITE_PANOSE_XASCENT_MEDIUM = 4, + DWRITE_PANOSE_XASCENT_HIGH = 5, + DWRITE_PANOSE_XASCENT_VERY_HIGH = 6 +}; + +/// +/// General look of the face. +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_DECORATIVE_CLASS +{ + DWRITE_PANOSE_DECORATIVE_CLASS_ANY = 0, + DWRITE_PANOSE_DECORATIVE_CLASS_NO_FIT = 1, + DWRITE_PANOSE_DECORATIVE_CLASS_DERIVATIVE = 2, + DWRITE_PANOSE_DECORATIVE_CLASS_NONSTANDARD_TOPOLOGY = 3, + DWRITE_PANOSE_DECORATIVE_CLASS_NONSTANDARD_ELEMENTS = 4, + DWRITE_PANOSE_DECORATIVE_CLASS_NONSTANDARD_ASPECT = 5, + DWRITE_PANOSE_DECORATIVE_CLASS_INITIALS = 6, + DWRITE_PANOSE_DECORATIVE_CLASS_CARTOON = 7, + DWRITE_PANOSE_DECORATIVE_CLASS_PICTURE_STEMS = 8, + DWRITE_PANOSE_DECORATIVE_CLASS_ORNAMENTED = 9, + DWRITE_PANOSE_DECORATIVE_CLASS_TEXT_AND_BACKGROUND = 10, + DWRITE_PANOSE_DECORATIVE_CLASS_COLLAGE = 11, + DWRITE_PANOSE_DECORATIVE_CLASS_MONTAGE = 12 +}; + +/// +/// Ratio between the width and height of the face. +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_ASPECT +{ + DWRITE_PANOSE_ASPECT_ANY = 0, + DWRITE_PANOSE_ASPECT_NO_FIT = 1, + DWRITE_PANOSE_ASPECT_SUPER_CONDENSED = 2, + DWRITE_PANOSE_ASPECT_VERY_CONDENSED = 3, + DWRITE_PANOSE_ASPECT_CONDENSED = 4, + DWRITE_PANOSE_ASPECT_NORMAL = 5, + DWRITE_PANOSE_ASPECT_EXTENDED = 6, + DWRITE_PANOSE_ASPECT_VERY_EXTENDED = 7, + DWRITE_PANOSE_ASPECT_SUPER_EXTENDED = 8, + DWRITE_PANOSE_ASPECT_MONOSPACED = 9 +}; + +/// +/// Type of fill/line (treatment). +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_FILL +{ + DWRITE_PANOSE_FILL_ANY = 0, + DWRITE_PANOSE_FILL_NO_FIT = 1, + DWRITE_PANOSE_FILL_STANDARD_SOLID_FILL = 2, + DWRITE_PANOSE_FILL_NO_FILL = 3, + DWRITE_PANOSE_FILL_PATTERNED_FILL = 4, + DWRITE_PANOSE_FILL_COMPLEX_FILL = 5, + DWRITE_PANOSE_FILL_SHAPED_FILL = 6, + DWRITE_PANOSE_FILL_DRAWN_DISTRESSED = 7, +}; + +/// +/// Outline handling. +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_LINING +{ + DWRITE_PANOSE_LINING_ANY = 0, + DWRITE_PANOSE_LINING_NO_FIT = 1, + DWRITE_PANOSE_LINING_NONE = 2, + DWRITE_PANOSE_LINING_INLINE = 3, + DWRITE_PANOSE_LINING_OUTLINE = 4, + DWRITE_PANOSE_LINING_ENGRAVED = 5, + DWRITE_PANOSE_LINING_SHADOW = 6, + DWRITE_PANOSE_LINING_RELIEF = 7, + DWRITE_PANOSE_LINING_BACKDROP = 8 +}; + +/// +/// Overall shape characteristics of the font. +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_DECORATIVE_TOPOLOGY +{ + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_ANY = 0, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_NO_FIT = 1, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_STANDARD = 2, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_SQUARE = 3, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_MULTIPLE_SEGMENT = 4, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_ART_DECO = 5, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_UNEVEN_WEIGHTING = 6, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_DIVERSE_ARMS = 7, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_DIVERSE_FORMS = 8, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_LOMBARDIC_FORMS = 9, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_UPPER_CASE_IN_LOWER_CASE = 10, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_IMPLIED_TOPOLOGY = 11, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_HORSESHOE_E_AND_A = 12, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_CURSIVE = 13, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_BLACKLETTER = 14, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_SWASH_VARIANCE = 15 +}; + +/// +/// Type of characters available in the font. +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_CHARACTER_RANGES +{ + DWRITE_PANOSE_CHARACTER_RANGES_ANY = 0, + DWRITE_PANOSE_CHARACTER_RANGES_NO_FIT = 1, + DWRITE_PANOSE_CHARACTER_RANGES_EXTENDED_COLLECTION = 2, + DWRITE_PANOSE_CHARACTER_RANGES_LITERALS = 3, + DWRITE_PANOSE_CHARACTER_RANGES_NO_LOWER_CASE = 4, + DWRITE_PANOSE_CHARACTER_RANGES_SMALL_CAPS = 5 +}; + +/// +/// Kind of symbol set. +/// Present for families: 5-symbol +/// +enum DWRITE_PANOSE_SYMBOL_KIND +{ + DWRITE_PANOSE_SYMBOL_KIND_ANY = 0, + DWRITE_PANOSE_SYMBOL_KIND_NO_FIT = 1, + DWRITE_PANOSE_SYMBOL_KIND_MONTAGES = 2, + DWRITE_PANOSE_SYMBOL_KIND_PICTURES = 3, + DWRITE_PANOSE_SYMBOL_KIND_SHAPES = 4, + DWRITE_PANOSE_SYMBOL_KIND_SCIENTIFIC = 5, + DWRITE_PANOSE_SYMBOL_KIND_MUSIC = 6, + DWRITE_PANOSE_SYMBOL_KIND_EXPERT = 7, + DWRITE_PANOSE_SYMBOL_KIND_PATTERNS = 8, + DWRITE_PANOSE_SYMBOL_KIND_BOARDERS = 9, + DWRITE_PANOSE_SYMBOL_KIND_ICONS = 10, + DWRITE_PANOSE_SYMBOL_KIND_LOGOS = 11, + DWRITE_PANOSE_SYMBOL_KIND_INDUSTRY_SPECIFIC = 12 +}; + +/// +/// Aspect ratio of symbolic characters. +/// Present for families: 5-symbol +/// +enum DWRITE_PANOSE_SYMBOL_ASPECT_RATIO +{ + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_ANY = 0, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NO_FIT = 1, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NO_WIDTH = 2, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_EXCEPTIONALLY_WIDE = 3, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_SUPER_WIDE = 4, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_VERY_WIDE = 5, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_WIDE = 6, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NORMAL = 7, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NARROW = 8, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_VERY_NARROW = 9 +}; + +/// +/// Specifies the policy used by GetRecommendedRenderingMode to determine whether to +/// render glyphs in outline mode. Glyphs are rendered in outline mode by default at +/// large sizes for performance reasons, but how large (i.e., the outline threshold) +/// depends on the quality of outline rendering. If the graphics system renders anti- +/// aliased outlines then a relatively low threshold is used, but if the graphics +/// system renders aliased outlines then a much higher threshold is used. +/// +enum DWRITE_OUTLINE_THRESHOLD +{ + DWRITE_OUTLINE_THRESHOLD_ANTIALIASED, + DWRITE_OUTLINE_THRESHOLD_ALIASED +}; + +/// +/// Baseline for text alignment. +/// +enum DWRITE_BASELINE +{ + /// + /// The Roman baseline for horizontal, Central baseline for vertical. + /// + DWRITE_BASELINE_DEFAULT, + + /// + /// The baseline used by alphabetic scripts such as Latin, Greek, Cyrillic. + /// + DWRITE_BASELINE_ROMAN, + + /// + /// Central baseline, generally used for vertical text. + /// + DWRITE_BASELINE_CENTRAL, + + /// + /// Mathematical baseline which math characters are centered on. + /// + DWRITE_BASELINE_MATH, + + /// + /// Hanging baseline, used in scripts like Devanagari. + /// + DWRITE_BASELINE_HANGING, + + /// + /// Ideographic bottom baseline for CJK, left in vertical. + /// + DWRITE_BASELINE_IDEOGRAPHIC_BOTTOM, + + /// + /// Ideographic top baseline for CJK, right in vertical. + /// + DWRITE_BASELINE_IDEOGRAPHIC_TOP, + + /// + /// The bottom-most extent in horizontal, left-most in vertical. + /// + DWRITE_BASELINE_MINIMUM, + + /// + /// The top-most extent in horizontal, right-most in vertical. + /// + DWRITE_BASELINE_MAXIMUM, +}; + +/// +/// The desired kind of glyph orientation for the text. The client specifies +/// this to the analyzer as the desired orientation, but note this is the +/// client preference, and the constraints of the script will determine the +/// final presentation. +/// +enum DWRITE_VERTICAL_GLYPH_ORIENTATION +{ + /// + /// In vertical layout, naturally horizontal scripts (Latin, Thai, Arabic, + /// Devanagari) rotate 90 degrees clockwise, while ideographic scripts + /// (Chinese, Japanese, Korean) remain upright, 0 degrees. + /// + DWRITE_VERTICAL_GLYPH_ORIENTATION_DEFAULT, + + /// + /// Ideographic scripts and scripts that permit stacking + /// (Latin, Hebrew) are stacked in vertical reading layout. + /// Connected scripts (Arabic, Syriac, 'Phags-pa, Ogham), + /// which would otherwise look broken if glyphs were kept + /// at 0 degrees, remain connected and rotate. + /// + DWRITE_VERTICAL_GLYPH_ORIENTATION_STACKED, +}; + +/// +/// How the glyph is oriented to the x-axis. This is an output from the text +/// analyzer, dependent on the desired orientation, bidi level, and character +/// properties. +/// +enum DWRITE_GLYPH_ORIENTATION_ANGLE +{ + /// + /// Glyph orientation is upright. + /// + DWRITE_GLYPH_ORIENTATION_ANGLE_0_DEGREES, + + /// + /// Glyph orientation is rotated 90 clockwise. + /// + DWRITE_GLYPH_ORIENTATION_ANGLE_90_DEGREES, + + /// + /// Glyph orientation is upside-down. + /// + DWRITE_GLYPH_ORIENTATION_ANGLE_180_DEGREES, + + /// + /// Glyph orientation is rotated 270 clockwise. + /// + DWRITE_GLYPH_ORIENTATION_ANGLE_270_DEGREES, +}; + + +struct DWRITE_FONT_METRICS1 : public DWRITE_FONT_METRICS +{ + /// + /// Left edge of accumulated bounding blackbox of all glyphs in the font. + /// + INT16 glyphBoxLeft; + + /// + /// Top edge of accumulated bounding blackbox of all glyphs in the font. + /// + INT16 glyphBoxTop; + + /// + /// Right edge of accumulated bounding blackbox of all glyphs in the font. + /// + INT16 glyphBoxRight; + + /// + /// Bottom edge of accumulated bounding blackbox of all glyphs in the font. + /// + INT16 glyphBoxBottom; + + /// + /// Horizontal position of the subscript relative to the baseline origin. + /// This is typically negative (to the left) in italic/oblique fonts, and + /// zero in regular fonts. + /// + INT16 subscriptPositionX; + + /// + /// Vertical position of the subscript relative to the baseline. + /// This is typically negative. + /// + INT16 subscriptPositionY; + + /// + /// Horizontal size of the subscript em box in design units, used to + /// scale the simulated subscript relative to the full em box size. + /// This the numerator of the scaling ratio where denominator is the + /// design units per em. If this member is zero, the font does not specify + /// a scale factor, and the client should use its own policy. + /// + INT16 subscriptSizeX; + + /// + /// Vertical size of the subscript em box in design units, used to + /// scale the simulated subscript relative to the full em box size. + /// This the numerator of the scaling ratio where denominator is the + /// design units per em. If this member is zero, the font does not specify + /// a scale factor, and the client should use its own policy. + /// + INT16 subscriptSizeY; + + /// + /// Horizontal position of the superscript relative to the baseline origin. + /// This is typically positive (to the right) in italic/oblique fonts, and + /// zero in regular fonts. + /// + INT16 superscriptPositionX; + + /// + /// Vertical position of the superscript relative to the baseline. + /// This is typically positive. + /// + INT16 superscriptPositionY; + + /// + /// Horizontal size of the superscript em box in design units, used to + /// scale the simulated superscript relative to the full em box size. + /// This the numerator of the scaling ratio where denominator is the + /// design units per em. If this member is zero, the font does not specify + /// a scale factor, and the client should use its own policy. + /// + INT16 superscriptSizeX; + + /// + /// Vertical size of the superscript em box in design units, used to + /// scale the simulated superscript relative to the full em box size. + /// This the numerator of the scaling ratio where denominator is the + /// design units per em. If this member is zero, the font does not specify + /// a scale factor, and the client should use its own policy. + /// + INT16 superscriptSizeY; + + /// + /// Indicates that the ascent, descent, and lineGap are based on newer + /// 'typographic' values in the font, rather than legacy values. + /// + BOOL hasTypographicMetrics; +}; + + +/// +/// Metrics for caret placement in a font. +/// +struct DWRITE_CARET_METRICS +{ + /// + /// Vertical rise of the caret. Rise / Run yields the caret angle. + /// Rise = 1 for perfectly upright fonts (non-italic). + /// + INT16 slopeRise; + + /// + /// Horizontal run of th caret. Rise / Run yields the caret angle. + /// Run = 0 for perfectly upright fonts (non-italic). + /// + INT16 slopeRun; + + /// + /// Horizontal offset of the caret along the baseline for good appearance. + /// Offset = 0 for perfectly upright fonts (non-italic). + /// + INT16 offset; +}; + + +/// +/// Typeface classification values, used for font selection and matching. +/// +/// +/// Note the family type (index 0) is the only stable entry in the 10-byte +/// array, as all the following entries can change dynamically depending on +/// context of the first field. +/// +union DWRITE_PANOSE +{ + UINT8 values[10]; + + UINT8 familyKind; // this is the only field that never changes meaning + + struct + { + UINT8 familyKind; // = 2 for text + UINT8 serifStyle; + UINT8 weight; + UINT8 proportion; + UINT8 contrast; + UINT8 strokeVariation; + UINT8 armStyle; + UINT8 letterform; + UINT8 midline; + UINT8 xHeight; + } text; + + struct + { + UINT8 familyKind; // = 3 for script + UINT8 toolKind; + UINT8 weight; + UINT8 spacing; + UINT8 aspectRatio; + UINT8 contrast; + UINT8 scriptTopology; + UINT8 scriptForm; + UINT8 finials; + UINT8 xAscent; + } script; + + struct + { + UINT8 familyKind; // = 4 for decorative + UINT8 decorativeClass; + UINT8 weight; + UINT8 aspect; + UINT8 contrast; + UINT8 serifVariant; + UINT8 fill; // treatment + UINT8 lining; + UINT8 decorativeTopology; + UINT8 characterRange; + } decorative; + + struct + { + UINT8 familyKind; // = 5 for symbol + UINT8 symbolKind; + UINT8 weight; + UINT8 spacing; + UINT8 aspectRatioAndContrast; // hard coded to no-fit (1) + UINT8 aspectRatio94; + UINT8 aspectRatio119; + UINT8 aspectRatio157; + UINT8 aspectRatio163; + UINT8 aspectRatio211; + } symbol; +}; + + +/// +/// Range of Unicode codepoints. +/// +struct DWRITE_UNICODE_RANGE +{ + /// + /// The first codepoint in the Unicode range. + /// + UINT32 first; + + /// + /// The last codepoint in the Unicode range. + /// + UINT32 last; +}; + + +/// +/// Script-specific properties for caret navigation and justification. +/// +struct DWRITE_SCRIPT_PROPERTIES +{ + /// + /// The standardized four character code for the given script. + /// Note these only include the general Unicode scripts, not any + /// additional ISO 15924 scripts for bibliographic distinction + /// (for example, Fraktur Latin vs Gaelic Latin). + /// http://unicode.org/iso15924/iso15924-codes.html + /// + UINT32 isoScriptCode; + + /// + /// The standardized numeric code, ranging 0-999. + /// http://unicode.org/iso15924/iso15924-codes.html + /// + UINT32 isoScriptNumber; + + /// + /// Number of characters to estimate look-ahead for complex scripts. + /// Latin and all Kana are generally 1. Indic scripts are up to 15, + /// and most others are 8. Note that combining marks and variation + /// selectors can produce clusters longer than these look-aheads, + /// so this estimate is considered typical language use. Diacritics + /// must be tested explicitly separately. + /// + UINT32 clusterLookahead; + + /// + /// Appropriate character to elongate the given script for justification. + /// + /// Examples: + /// Arabic - U+0640 Tatweel + /// Ogham - U+1680 Ogham Space Mark + /// + UINT32 justificationCharacter; + + /// + /// Restrict the caret to whole clusters, like Thai and Devanagari. Scripts + /// such as Arabic by default allow navigation between clusters. Others + /// like Thai always navigate across whole clusters. + /// + UINT32 restrictCaretToClusters : 1; + + /// + /// The language uses dividers between words, such as spaces between Latin + /// or the Ethiopic wordspace. + /// + /// Examples: Latin, Greek, Devanagari, Ethiopic + /// Excludes: Chinese, Korean, Thai. + /// + UINT32 usesWordDividers : 1; + + /// + /// The characters are discrete units from each other. This includes both + /// block scripts and clustered scripts. + /// + /// Examples: Latin, Greek, Cyrillic, Hebrew, Chinese, Thai + /// + UINT32 isDiscreteWriting : 1; + + /// + /// The language is a block script, expanding between characters. + /// + /// Examples: Chinese, Japanese, Korean, Bopomofo. + /// + UINT32 isBlockWriting : 1; + + /// + /// The language is justified within glyph clusters, not just between glyph + /// clusters. One such as the character sequence is Thai Lu and Sara Am + /// (U+E026, U+E033) which form a single cluster but still expand between + /// them. + /// + /// Examples: Thai, Lao, Khmer + /// + UINT32 isDistributedWithinCluster : 1; + + /// + /// The script's clusters are connected to each other (such as the + /// baseline-linked Devanagari), and no separation should be added + /// between characters. Note that cursively linked scripts like Arabic + /// are also connected (but not all connected scripts are + /// cursive). + /// + /// Examples: Devanagari, Arabic, Syriac, Bengali, Gurmukhi, Ogham + /// Excludes: Latin, Chinese, Thaana + /// + UINT32 isConnectedWriting : 1; + + /// + /// The script is naturally cursive (Arabic/Syriac), meaning it uses other + /// justification methods like kashida extension rather than intercharacter + /// spacing. Note that although other scripts like Latin and Japanese may + /// actually support handwritten cursive forms, they are not considered + /// cursive scripts. + /// + /// Examples: Arabic, Syriac, Mongolian + /// Excludes: Thaana, Devanagari, Latin, Chinese + /// + UINT32 isCursiveWriting : 1; + + UINT32 reserved : 25; +}; + + +/// +/// Justification information per glyph. +/// +struct DWRITE_JUSTIFICATION_OPPORTUNITY +{ + /// + /// Minimum amount of expansion to apply to the side of the glyph. + /// This may vary from 0 to infinity, typically being zero except + /// for kashida. + /// + FLOAT expansionMinimum; + + /// + /// Maximum amount of expansion to apply to the side of the glyph. + /// This may vary from 0 to infinity, being zero for fixed-size characters + /// and connected scripts, and non-zero for discrete scripts, and non-zero + /// for cursive scripts at expansion points. + /// + FLOAT expansionMaximum; + + /// + /// Maximum amount of compression to apply to the side of the glyph. + /// This may vary from 0 up to the glyph cluster size. + /// + FLOAT compressionMaximum; + + /// + /// Priority of this expansion point. Larger priorities are applied later, + /// while priority zero does nothing. + /// + UINT32 expansionPriority : 8; + + /// + /// Priority of this compression point. Larger priorities are applied later, + /// while priority zero does nothing. + /// + UINT32 compressionPriority : 8; + + /// + /// Allow this expansion point to use up any remaining slack space even + /// after all expansion priorities have been used up. + /// + UINT32 allowResidualExpansion : 1; + + /// + /// Allow this compression point to use up any remaining space even after + /// all compression priorities have been used up. + /// + UINT32 allowResidualCompression : 1; + + /// + /// Apply expansion/compression to the leading edge of the glyph. This will + /// be false for connected scripts, fixed-size characters, and diacritics. + /// It is generally false within a multi-glyph cluster, unless the script + /// allows expansion of glyphs within a cluster, like Thai. + /// + UINT32 applyToLeadingEdge : 1; + + /// + /// Apply expansion/compression to the trailing edge of the glyph. This will + /// be false for connected scripts, fixed-size characters, and diacritics. + /// It is generally false within a multi-glyph cluster, unless the script + /// allows expansion of glyphs within a cluster, like Thai. + /// + UINT32 applyToTrailingEdge : 1; + + UINT32 reserved : 12; +}; + + +interface IDWriteTextAnalysisSource1; +interface IDWriteTextAnalysisSink1; +interface IDWriteRenderingParams1; + +/// +/// The root factory interface for all DWrite objects. +/// +interface DWRITE_DECLARE_INTERFACE("30572f99-dac6-41db-a16e-0486307e606a") IDWriteFactory1 : public IDWriteFactory +{ + /// + /// Gets a font collection representing the set of end-user defined + /// custom fonts. + /// + /// Receives a pointer to the EUDC font + /// collection object, or NULL in case of failure. + /// If this parameter is nonzero, the + /// function performs an immediate check for changes to the set of + /// EUDC fonts. If this parameter is FALSE, the function will still + /// detect changes, but there may be some latency. For example, an + /// application might specify TRUE if it has itself just modified a + /// font and wants to be sure the font collection contains that font. + /// + /// + /// Standard HRESULT error code. Note that if no EUDC is set on the system, + /// the returned collection will be empty, meaning it will return success + /// but GetFontFamilyCount will be zero. + /// + /// + /// Querying via IDWriteFontCollection::FindFamilyName for a specific + /// family (like MS Gothic) will return the matching family-specific EUDC + /// font if one exists. Querying for "" will return the global EUDC font. + /// For example, if you were matching an EUDC character within a run of + /// the base font PMingLiu, you would retrieve the corresponding EUDC font + /// face using GetEudcFontCollection, then FindFamilyName with "PMingLiu", + /// followed by GetFontFamily and CreateFontFace. + /// + /// Be aware that eudcedit.exe can create placeholder empty glyphs that + /// have zero advance width and no glyph outline. Although they are present + /// in the font (HasCharacter returns true), you are best to ignore + /// these and continue on with font fallback in your layout if the metrics + /// for the glyph are zero. + /// + STDMETHOD(GetEudcFontCollection)( + _COM_Outptr_ IDWriteFontCollection** fontCollection, + BOOL checkForUpdates = FALSE + ) PURE; + + /// + /// Creates a rendering parameters object with the specified properties. + /// + /// The gamma value used for gamma correction, which must be greater than zero and cannot exceed 256. + /// The amount of contrast enhancement, zero or greater. + /// The amount of contrast enhancement to use for grayscale antialiasing, zero or greater. + /// The degree of ClearType level, from 0.0f (no ClearType) to 1.0f (full ClearType). + /// The geometry of a device pixel. + /// Method of rendering glyphs. In most cases, this should be DWRITE_RENDERING_MODE_DEFAULT to automatically use an appropriate mode. + /// Holds the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateCustomRenderingParams)( + FLOAT gamma, + FLOAT enhancedContrast, + FLOAT enhancedContrastGrayscale, + FLOAT clearTypeLevel, + DWRITE_PIXEL_GEOMETRY pixelGeometry, + DWRITE_RENDERING_MODE renderingMode, + _COM_Outptr_ IDWriteRenderingParams1** renderingParams + ) PURE; + + using IDWriteFactory::CreateCustomRenderingParams; +}; + + +/// +/// The interface that represents an absolute reference to a font face. +/// It contains font face type, appropriate file references and face identification data. +/// Various font data such as metrics, names and glyph outlines is obtained from IDWriteFontFace. +/// +interface DWRITE_DECLARE_INTERFACE("a71efdb4-9fdb-4838-ad90-cfc3be8c3daf") IDWriteFontFace1 : public IDWriteFontFace +{ + /// + /// Gets common metrics for the font in design units. + /// These metrics are applicable to all the glyphs within a font, + /// and are used by applications for layout calculations. + /// + /// Metrics structure to fill in. + STDMETHOD_(void, GetMetrics)( + _Out_ DWRITE_FONT_METRICS1* fontMetrics + ) PURE; + + /// + /// Gets common metrics for the font in design units. + /// These metrics are applicable to all the glyphs within a font, + /// and are used by applications for layout calculations. + /// + /// Logical size of the font in DIP units. A DIP + /// ("device-independent pixel") equals 1/96 inch. + /// Number of physical pixels per DIP. For + /// example, if the DPI of the rendering surface is 96 this value is + /// 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Optional transform applied to the glyphs and + /// their positions. This transform is applied after the scaling + /// specified by the font size and pixelsPerDip. + /// Font metrics structure to fill in. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGdiCompatibleMetrics)( + FLOAT emSize, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + _Out_ DWRITE_FONT_METRICS1* fontMetrics + ) PURE; + + /// + /// Gets caret metrics for the font in design units. These are used by + /// text editors for drawing the correct caret placement/slant. + /// + /// Metrics structure to fill in. + STDMETHOD_(void, GetCaretMetrics)( + _Out_ DWRITE_CARET_METRICS* caretMetrics + ) PURE; + + /// + /// Returns the list of character ranges supported by the font, which is + /// useful for scenarios like character picking, glyph display, and + /// efficient font selection lookup. This is similar to GDI's + /// GetFontUnicodeRanges, except that it returns the full Unicode range, + /// not just 16-bit UCS-2. + /// + /// Maximum number of character ranges passed + /// in from the client. + /// Array of character ranges. + /// Actual number of character ranges, + /// regardless of the maximum count. + /// + /// These ranges are from the cmap, not the OS/2::ulCodePageRange1. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetUnicodeRanges)( + UINT32 maxRangeCount, + _Out_writes_to_opt_(maxRangeCount, *actualRangeCount) DWRITE_UNICODE_RANGE* unicodeRanges, + _Out_ UINT32* actualRangeCount + ) PURE; + + /// + /// Returns true if the font is monospaced, meaning its characters are the + /// same fixed-pitch width (non-proportional). + /// + STDMETHOD_(BOOL, IsMonospacedFont)() PURE; + + /// + /// Returns the advances in design units for a sequences of glyphs. + /// + /// Number of glyphs to retrieve advances for. + /// Array of glyph id's to retrieve advances for. + /// Returned advances in font design units for + /// each glyph. + /// Retrieve the glyph's vertical advance height + /// rather than horizontal advance widths. + /// + /// This is equivalent to calling GetGlyphMetrics and using only the + /// advance width/height. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetDesignGlyphAdvances)( + UINT32 glyphCount, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _Out_writes_(glyphCount) INT32* glyphAdvances, + BOOL isSideways = FALSE + ) PURE; + + /// + /// Returns the pixel-aligned advances for a sequences of glyphs, the same + /// as GetGdiCompatibleGlyphMetrics would return. + /// + /// Logical size of the font in DIP units. A DIP + /// ("device-independent pixel") equals 1/96 inch. + /// Number of physical pixels per DIP. For + /// example, if the DPI of the rendering surface is 96 this value is + /// 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Optional transform applied to the glyphs and + /// their positions. This transform is applied after the scaling + /// specified by the font size and pixelsPerDip. + /// When FALSE, the metrics are the same as + /// GDI aliased text (DWRITE_MEASURING_MODE_GDI_CLASSIC). When TRUE, + /// the metrics are the same as those measured by GDI using a font + /// using CLEARTYPE_NATURAL_QUALITY (DWRITE_MEASURING_MODE_GDI_NATURAL). + /// Retrieve the glyph's vertical advances rather + /// than horizontal advances. + /// Total glyphs to retrieve adjustments for. + /// Array of glyph id's to retrieve advances. + /// Returned advances in font design units for + /// each glyph. + /// + /// This is equivalent to calling GetGdiCompatibleGlyphMetrics and using only + /// the advance width/height. Like GetGdiCompatibleGlyphMetrics, these are in + /// design units, meaning they must be scaled down by + /// DWRITE_FONT_METRICS::designUnitsPerEm. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGdiCompatibleGlyphAdvances)( + FLOAT emSize, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL useGdiNatural, + BOOL isSideways, + UINT32 glyphCount, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _Out_writes_(glyphCount) INT32* glyphAdvances + ) PURE; + + /// + /// Retrieves the kerning pair adjustments from the font's kern table. + /// + /// Number of glyphs to retrieve adjustments for. + /// Array of glyph id's to retrieve adjustments + /// for. + /// Returned advances in font design units for + /// each glyph. The last glyph adjustment is zero. + /// + /// This is not a direct replacement for GDI's character based + /// GetKerningPairs, but it serves the same role, without the client + /// needing to cache them locally. It also uses glyph id's directly + /// rather than UCS-2 characters (how the kern table actually stores + /// them) which avoids glyph collapse and ambiguity, such as the dash + /// and hyphen, or space and non-breaking space. + /// + /// + /// Newer fonts may have only GPOS kerning instead of the legacy pair + /// table kerning. Such fonts, like Gabriola, will only return 0's for + /// adjustments. This function does not virtualize and flatten these + /// GPOS entries into kerning pairs. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetKerningPairAdjustments)( + UINT32 glyphCount, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _Out_writes_(glyphCount) INT32* glyphAdvanceAdjustments + ) PURE; + + /// + /// Returns whether or not the font supports pair-kerning. + /// + /// + /// If the font does not support pair table kerning, there is no need to + /// call GetKerningPairAdjustments (it would be all zeroes). + /// + /// + /// Whether the font supports kerning pairs. + /// + STDMETHOD_(BOOL, HasKerningPairs)() PURE; + + /// + /// Determines the recommended text rendering mode to be used based on the + /// font, size, world transform, and measuring mode. + /// + /// Logical font size in DIPs. + /// Number of pixels per logical inch in the horizontal direction. + /// Number of pixels per logical inch in the vertical direction. + /// Specifies the world transform. + /// Specifies the quality of the graphics system's outline rendering, + /// affects the size threshold above which outline rendering is used. + /// Specifies the method used to measure during text layout. For proper + /// glyph spacing, the function returns a rendering mode that is compatible with the specified + /// measuring mode. + /// Receives the recommended rendering mode. + /// + /// This method should be used to determine the actual rendering mode in cases where the rendering + /// mode of the rendering params object is DWRITE_RENDERING_MODE_DEFAULT. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetRecommendedRenderingMode)( + FLOAT fontEmSize, + FLOAT dpiX, + FLOAT dpiY, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL isSideways, + DWRITE_OUTLINE_THRESHOLD outlineThreshold, + DWRITE_MEASURING_MODE measuringMode, + _Out_ DWRITE_RENDERING_MODE* renderingMode + ) PURE; + + /// + /// Retrieves the vertical forms of the nominal glyphs retrieved from + /// GetGlyphIndices, using the font's 'vert' table. This is used in + /// CJK vertical layout so the correct characters are shown. + /// + /// Number of glyphs to retrieve. + /// Original glyph indices from cmap. + /// The vertical form of glyph indices. + /// + /// Call GetGlyphIndices to get the nominal glyph indices, followed by + /// calling this to remap the to the substituted forms, when the run + /// is sideways, and the font has vertical glyph variants. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetVerticalGlyphVariants)( + UINT32 glyphCount, + _In_reads_(glyphCount) UINT16 const* nominalGlyphIndices, + _Out_writes_(glyphCount) UINT16* verticalGlyphIndices + ) PURE; + + /// + /// Returns whether or not the font has any vertical glyph variants. + /// + /// + /// For OpenType fonts, this will return true if the font contains a 'vert' + /// feature. + /// + /// + /// True if the font contains vertical glyph variants. + /// + STDMETHOD_(BOOL, HasVerticalGlyphVariants)() PURE; + + using IDWriteFontFace::GetMetrics; + using IDWriteFontFace::GetGdiCompatibleMetrics; + using IDWriteFontFace::GetRecommendedRenderingMode; +}; + + +/// +/// The IDWriteFont interface represents a physical font in a font collection. +/// +interface DWRITE_DECLARE_INTERFACE("acd16696-8c14-4f5d-877e-fe3fc1d32738") IDWriteFont1 : public IDWriteFont +{ + /// + /// Gets common metrics for the font in design units. + /// These metrics are applicable to all the glyphs within a font, + /// and are used by applications for layout calculations. + /// + /// Metrics structure to fill in. + STDMETHOD_(void, GetMetrics)( + _Out_ DWRITE_FONT_METRICS1* fontMetrics + ) PURE; + + using IDWriteFont::GetMetrics; + + /// + /// Gets the PANOSE values from the font, used for font selection and + /// matching. + /// + /// PANOSE structure to fill in. + /// + /// The function does not simulate these, such as substituting a weight or + /// proportion inferred on other values. If the font does not specify them, + /// they are all set to 'any' (0). + /// + STDMETHOD_(void, GetPanose)( + _Out_ DWRITE_PANOSE* panose + ) PURE; + + /// + /// Returns the list of character ranges supported by the font, which is + /// useful for scenarios like character picking, glyph display, and + /// efficient font selection lookup. This is similar to GDI's + /// GetFontUnicodeRanges, except that it returns the full Unicode range, + /// not just 16-bit UCS-2. + /// + /// Maximum number of character ranges passed + /// in from the client. + /// Array of character ranges. + /// Actual number of character ranges, + /// regardless of the maximum count. + /// + /// These ranges are from the cmap, not the OS/2::ulCodePageRange1. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetUnicodeRanges)( + UINT32 maxRangeCount, + _Out_writes_to_opt_(maxRangeCount, *actualRangeCount) DWRITE_UNICODE_RANGE* unicodeRanges, + _Out_ UINT32* actualRangeCount + ) PURE; + + /// + /// Returns true if the font is monospaced, meaning its characters are the + /// same fixed-pitch width (non-proportional). + /// + STDMETHOD_(BOOL, IsMonospacedFont)() PURE; +}; + +/// +/// The interface that represents text rendering settings for glyph rasterization and filtering. +/// +interface DWRITE_DECLARE_INTERFACE("94413cf4-a6fc-4248-8b50-6674348fcad3") IDWriteRenderingParams1 : public IDWriteRenderingParams +{ + /// + /// Gets the amount of contrast enhancement to use for grayscale antialiasing. + /// Valid values are greater than or equal to zero. + /// + STDMETHOD_(FLOAT, GetGrayscaleEnhancedContrast)() PURE; +}; + +/// +/// Analyzes various text properties for complex script processing. +/// +interface DWRITE_DECLARE_INTERFACE("80DAD800-E21F-4E83-96CE-BFCCE500DB7C") IDWriteTextAnalyzer1 : public IDWriteTextAnalyzer +{ + /// + /// Applies spacing between characters, properly adjusting glyph clusters + /// and diacritics. + /// + /// The spacing before each character, in reading order. + /// The spacing after each character, in reading order. + /// The minimum advance of each character, + /// to prevent characters from becoming too thin or zero-width. This + /// must be zero or greater. + /// The length of the clustermap and original text. + /// The number of glyphs. + /// Mapping from character ranges to glyph ranges. + /// The advance width of each glyph. + /// The offset of the origin of each glyph. + /// Properties of each glyph, from GetGlyphs. + /// The new advance width of each glyph. + /// The new offset of the origin of each glyph. + /// + /// The input and output advances/offsets are allowed to alias the same array. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(ApplyCharacterSpacing)( + FLOAT leadingSpacing, + FLOAT trailingSpacing, + FLOAT minimumAdvanceWidth, + UINT32 textLength, + UINT32 glyphCount, + _In_reads_(textLength) UINT16 const* clusterMap, + _In_reads_(glyphCount) FLOAT const* glyphAdvances, + _In_reads_(glyphCount) DWRITE_GLYPH_OFFSET const* glyphOffsets, + _In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProperties, + _Out_writes_(glyphCount) FLOAT* modifiedGlyphAdvances, + _Out_writes_(glyphCount) DWRITE_GLYPH_OFFSET* modifiedGlyphOffsets + ) PURE; + + /// + /// Retrieves the given baseline from the font. + /// + /// The font face to read. + /// The baseline of interest. + /// Whether the baseline is vertical or horizontal. + /// Simulate the baseline if it is missing in the font. + /// Script analysis result from AnalyzeScript. + /// The language of the run. + /// The baseline coordinate value in design units. + /// Whether the returned baseline exists in the font. + /// + /// If the baseline does not exist in the font, it is not considered an + /// error, but the function will return exists = false. You may then use + /// heuristics to calculate the missing base, or, if the flag + /// simulationAllowed is true, the function will compute a reasonable + /// approximation for you. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetBaseline)( + _In_ IDWriteFontFace* fontFace, + DWRITE_BASELINE baseline, + BOOL isVertical, + BOOL isSimulationAllowed, + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + _Out_ INT32* baselineCoordinate, + _Out_ BOOL* exists + ) PURE; + + /// + /// Analyzes a text range for script orientation, reading text and + /// attributes from the source and reporting results to the sink. + /// + /// Source object to analyze. + /// Starting position within the source object. + /// Length to analyze. + /// Callback object. + /// + /// Standard HRESULT error code. + /// + /// + /// All bidi analysis should be resolved before calling this. + /// + STDMETHOD(AnalyzeVerticalGlyphOrientation)( + _In_ IDWriteTextAnalysisSource1* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteTextAnalysisSink1* analysisSink + ) PURE; + + /// + /// Returns 2x3 transform matrix for the respective angle to draw the + /// glyph run. + /// + /// The angle reported into + /// SetGlyphOrientation. + /// Whether the run's glyphs are sideways or not. + /// Returned transform. + /// + /// + /// Standard HRESULT error code. + /// + /// + /// The returned displacement is zero. + /// + STDMETHOD(GetGlyphOrientationTransform)( + DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle, + BOOL isSideways, + _Out_ DWRITE_MATRIX* transform + ) PURE; + + /// + /// Returns the properties for a given script. + /// + /// The script for a run of text returned + /// from IDWriteTextAnalyzer::AnalyzeScript. + /// Information for the script. + /// + /// Returns properties for the given script. If the script is invalid, + /// it returns generic properties for the unknown script and E_INVALIDARG. + /// + STDMETHOD(GetScriptProperties)( + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + _Out_ DWRITE_SCRIPT_PROPERTIES* scriptProperties + ) PURE; + + /// + /// Determines the complexity of text, and whether or not full script + /// shaping needs to be called (GetGlyphs). + /// + /// The font face to read. + /// Length of the text to check. + /// The text to check for complexity. This string + /// may be UTF-16, but any supplementary characters will be considered + /// complex. + /// If true, the text is simple, and the + /// glyphIndices array will already have the nominal glyphs for you. + /// Otherwise you need to call GetGlyphs to properly shape complex + /// scripts and OpenType features. + /// + /// The length read of the text run with the + /// same complexity, simple or complex. You may call again from that + /// point onward. + /// Optional glyph indices for the text. If the + /// function returned that the text was simple, you already have the + /// glyphs you need. Otherwise the glyph indices are not meaningful, + /// and you should call shaping instead. + /// + /// Text is not simple if the characters are part of a script that has + /// complex shaping requirements, require bidi analysis, combine with + /// other characters, reside in the supplementary planes, or have glyphs + /// which participate in standard OpenType features. The length returned + /// will not split combining marks from their base characters. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetTextComplexity)( + _In_reads_(textLength) WCHAR const* textString, + UINT32 textLength, + _In_ IDWriteFontFace* fontFace, + _Out_ BOOL* isTextSimple, + _Out_range_(0, textLength) UINT32* textLengthRead, + _Out_writes_to_opt_(textLength, *textLengthRead) UINT16* glyphIndices + ) PURE; + + /// + /// Retrieves justification opportunity information for each of the glyphs + /// given the text and shaping glyph properties. + /// + /// Font face that was used for shaping. This is + /// mainly important for returning correct results of the kashida + /// width. + /// Font em size used for the glyph run. + /// Script of the text from the itemizer. + /// Length of the text. + /// Number of glyphs. + /// Characters used to produce the glyphs. + /// Clustermap produced from shaping. + /// Glyph properties produced from shaping. + /// Receives information for the + /// allowed justification expansion/compression for each glyph. + /// + /// This function is called per-run, after shaping is done via GetGlyphs(). + /// Note this function only supports natural metrics (DWRITE_MEASURING_MODE_NATURAL). + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetJustificationOpportunities)( + _In_opt_ IDWriteFontFace* fontFace, + FLOAT fontEmSize, + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + UINT32 textLength, + UINT32 glyphCount, + _In_reads_(textLength) WCHAR const* textString, + _In_reads_(textLength) UINT16 const* clusterMap, + _In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProperties, + _Out_writes_(glyphCount) DWRITE_JUSTIFICATION_OPPORTUNITY* justificationOpportunities + ) PURE; + + /// + /// Justifies an array of glyph advances to fit the line width. + /// + /// Width of the line. + /// Number of glyphs. + /// Opportunities per glyph. Call + /// GetJustificationOpportunities() to get suitable opportunities + /// according to script. + /// Original glyph advances from shaping. + /// Original glyph offsets from shaping. + /// Justified glyph advances. + /// Justified glyph offsets. + /// + /// This is called after all the opportunities have been collected, and it + /// spans across the entire line. The input and output arrays are allowed + /// to alias each other, permitting in-place update. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(JustifyGlyphAdvances)( + FLOAT lineWidth, + UINT32 glyphCount, + _In_reads_(glyphCount) DWRITE_JUSTIFICATION_OPPORTUNITY const* justificationOpportunities, + _In_reads_(glyphCount) FLOAT const* glyphAdvances, + _In_reads_(glyphCount) DWRITE_GLYPH_OFFSET const* glyphOffsets, + _Out_writes_(glyphCount) FLOAT* justifiedGlyphAdvances, + _Out_writes_opt_(glyphCount) DWRITE_GLYPH_OFFSET* justifiedGlyphOffsets + ) PURE; + + /// + /// Fills in new glyphs for complex scripts where justification increased + /// the advances of glyphs, such as Arabic with kashida. + /// + /// Font face used for shaping. + /// Font em size used for the glyph run. + /// Script of the text from the itemizer. + /// Length of the text. + /// Number of glyphs. + /// Maximum number of output glyphs allocated + /// by caller. + /// Clustermap produced from shaping. + /// Original glyphs produced from shaping. + /// Original glyph advances produced from shaping. + /// Justified glyph advances from + /// JustifyGlyphAdvances(). + /// Justified glyph offsets from + /// JustifyGlyphAdvances(). + /// Properties of each glyph, from GetGlyphs. + /// The new glyph count written to the + /// modified arrays, or the needed glyph count if the size is not + /// large enough. + /// Updated clustermap. + /// Updated glyphs with new glyphs + /// inserted where needed. + /// Updated glyph advances. + /// Updated glyph offsets. + /// + /// This is called after the line has been justified, and it is per-run. + /// It only needs to be called if the script has a specific justification + /// character via GetScriptProperties, and it is mainly for cursive scripts + /// like Arabic. If maxGlyphCount is not large enough, the error + /// E_NOT_SUFFICIENT_BUFFER will be returned, with actualGlyphCount holding + /// the final/needed glyph count. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetJustifiedGlyphs)( + _In_opt_ IDWriteFontFace* fontFace, + FLOAT fontEmSize, + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + UINT32 textLength, + UINT32 glyphCount, + UINT32 maxGlyphCount, + _In_reads_opt_(textLength) UINT16 const* clusterMap, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _In_reads_(glyphCount) FLOAT const* glyphAdvances, + _In_reads_(glyphCount) FLOAT const* justifiedGlyphAdvances, + _In_reads_(glyphCount) DWRITE_GLYPH_OFFSET const* justifiedGlyphOffsets, + _In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProperties, + _Out_range_(glyphCount, maxGlyphCount) UINT32* actualGlyphCount, + _Out_writes_opt_(textLength) UINT16* modifiedClusterMap, + _Out_writes_to_(maxGlyphCount, *actualGlyphCount) UINT16* modifiedGlyphIndices, + _Out_writes_to_(maxGlyphCount, *actualGlyphCount) FLOAT* modifiedGlyphAdvances, + _Out_writes_to_(maxGlyphCount, *actualGlyphCount) DWRITE_GLYPH_OFFSET* modifiedGlyphOffsets + ) PURE; +}; + + +/// +/// The interface implemented by the client to provide needed information to +/// the text analyzer, such as the text and associated text properties. +/// If any of these callbacks returns an error, the analysis functions will +/// stop prematurely and return a callback error. +/// +interface DWRITE_DECLARE_INTERFACE("639CFAD8-0FB4-4B21-A58A-067920120009") IDWriteTextAnalysisSource1 : public IDWriteTextAnalysisSource +{ + /// + /// The text analyzer calls back to this to get the desired glyph + /// orientation and resolved bidi level, which it uses along with the + /// script properties of the text to determine the actual orientation of + /// each character, which it reports back to the client via the sink + /// SetGlyphOrientation method. + /// + /// First position of the piece to obtain. All + /// positions are in UTF-16 code-units, not whole characters, which + /// matters when supplementary characters are used. + /// Number of UTF-16 units of the retrieved chunk. + /// The returned length is not the length of the block, but the length + /// remaining in the block, from the given position until its end. + /// So querying for a position that is 75 positions into a 100 + /// postition block would return 25. + /// The type of glyph orientation the + /// client wants for this range, up to the returned text length. + /// The bidi level for this range up to + /// the returned text length, which comes from an earlier + /// bidirectional analysis. + /// + /// Standard HRESULT error code. Returning an error will abort the + /// analysis. + /// + STDMETHOD(GetVerticalGlyphOrientation)( + UINT32 textPosition, + _Out_ UINT32* textLength, + _Out_ DWRITE_VERTICAL_GLYPH_ORIENTATION* glyphOrientation, + _Out_ UINT8* bidiLevel + ) PURE; +}; + + +/// +/// The interface implemented by the client to receive the +/// output of the text analyzers. +/// +interface DWRITE_DECLARE_INTERFACE("B0D941A0-85E7-4D8B-9FD3-5CED9934482A") IDWriteTextAnalysisSink1 : public IDWriteTextAnalysisSink +{ + /// + /// The text analyzer calls back to this to report the actual orientation + /// of each character for shaping and drawing. + /// + /// Starting position to report from. + /// Number of UTF-16 units of the reported range. + /// Angle of the glyphs within the text + /// range (pass to GetGlyphOrientationTransform to get the world + /// relative transform). + /// The adjusted bidi level to be used by + /// the client layout for reordering runs. This will differ from the + /// resolved bidi level retrieved from the source for cases such as + /// Arabic stacked top-to-bottom, where the glyphs are still shaped + /// as RTL, but the runs are TTB along with any CJK or Latin. + /// Whether the glyphs are rotated on their side, + /// which is the default case for CJK and the case stacked Latin + /// Whether the script should be shaped as + /// right-to-left. For Arabic stacked top-to-bottom, even when the + /// adjusted bidi level is coerced to an even level, this will still + /// be true. + /// + /// A successful code or error code to abort analysis. + /// + STDMETHOD(SetGlyphOrientation)( + UINT32 textPosition, + UINT32 textLength, + DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle, + UINT8 adjustedBidiLevel, + BOOL isSideways, + BOOL isRightToLeft + ) PURE; +}; + + +/// +/// The IDWriteTextLayout1 interface represents a block of text after it has +/// been fully analyzed and formatted. +/// +/// All coordinates are in device independent pixels (DIPs). +/// +interface DWRITE_DECLARE_INTERFACE("9064D822-80A7-465C-A986-DF65F78B8FEB") IDWriteTextLayout1 : public IDWriteTextLayout +{ + /// + /// Enables/disables pair-kerning on the given range. + /// + /// The Boolean flag indicates whether text is pair-kerned. + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetPairKerning)( + BOOL isPairKerningEnabled, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Get whether or not pair-kerning is enabled at given position. + /// + /// The current text position. + /// The Boolean flag indicates whether text is pair-kerned. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetPairKerning)( + UINT32 currentPosition, + _Out_ BOOL* isPairKerningEnabled, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Sets the spacing between characters. + /// + /// The spacing before each character, in reading order. + /// The spacing after each character, in reading order. + /// The minimum advance of each character, + /// to prevent characters from becoming too thin or zero-width. This + /// must be zero or greater. + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetCharacterSpacing)( + FLOAT leadingSpacing, + FLOAT trailingSpacing, + FLOAT minimumAdvanceWidth, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Gets the spacing between characters. + /// + /// The current text position. + /// The spacing before each character, in reading order. + /// The spacing after each character, in reading order. + /// The minimum advance of each character, + /// to prevent characters from becoming too thin or zero-width. This + /// must be zero or greater. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetCharacterSpacing)( + UINT32 currentPosition, + _Out_ FLOAT* leadingSpacing, + _Out_ FLOAT* trailingSpacing, + _Out_ FLOAT* minimumAdvanceWidth, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; +}; + +/// +/// Represents the type of antialiasing to use for text when the rendering mode calls for +/// antialiasing. +/// +enum DWRITE_TEXT_ANTIALIAS_MODE +{ + /// + /// ClearType antialiasing computes coverage independently for the red, green, and blue + /// color elements of each pixel. This allows for more detail than conventional antialiasing. + /// However, because there is no one alpha value for each pixel, ClearType is not suitable + /// rendering text onto a transparent intermediate bitmap. + /// + DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE, + + /// + /// Grayscale antialiasing computes one coverage value for each pixel. Because the alpha + /// value of each pixel is well-defined, text can be rendered onto a transparent bitmap, + /// which can then be composited with other content. Note that grayscale rendering with + /// IDWriteBitmapRenderTarget1 uses premultiplied alpha. + /// + DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE +}; + +/// +/// Encapsulates a 32-bit device independent bitmap and device context, which can be used for rendering glyphs. +/// +interface DWRITE_DECLARE_INTERFACE("791e8298-3ef3-4230-9880-c9bdecc42064") IDWriteBitmapRenderTarget1 : public IDWriteBitmapRenderTarget +{ + /// + /// Gets the current text antialiasing mode of the bitmap render target. + /// + /// + /// Returns the antialiasing mode. + /// + STDMETHOD_(DWRITE_TEXT_ANTIALIAS_MODE, GetTextAntialiasMode)() PURE; + + /// + /// Sets the current text antialiasing mode of the bitmap render target. + /// + /// + /// Returns S_OK if successful, or E_INVALIDARG if the argument is not valid. + /// + /// + /// The antialiasing mode of a newly-created bitmap render target defaults to + /// DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE. An application can change the antialiasing + /// mode by calling SetTextAntialiasMode. For example, an application might specify + /// grayscale antialiasing when rendering text onto a transparent bitmap. + /// + STDMETHOD(SetTextAntialiasMode)( + DWRITE_TEXT_ANTIALIAS_MODE antialiasMode + ) PURE; +}; + +#endif /* DWRITE_1_H_INCLUDED */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite_2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite_2.h new file mode 100644 index 0000000000000000000000000000000000000000..9fb86ff4698f7cad406ef79b7255390bf1f697f6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite_2.h @@ -0,0 +1,980 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// DirectX Typography Services public API definitions. +// +//---------------------------------------------------------------------------- + +#ifndef DWRITE_2_H_INCLUDED +#define DWRITE_2_H_INCLUDED + +#pragma once + +#include + + +interface IDWriteFontFallback; + + +/// +/// How to align glyphs to the margin. +/// +enum DWRITE_OPTICAL_ALIGNMENT +{ + /// + /// Align to the default metrics of the glyph. + /// + DWRITE_OPTICAL_ALIGNMENT_NONE, + + /// + /// Align glyphs to the margins. Without this, some small whitespace + /// may be present between the text and the margin from the glyph's side + /// bearing values. Note that glyphs may still overhang outside the + /// margin, such as flourishes or italic slants. + /// + DWRITE_OPTICAL_ALIGNMENT_NO_SIDE_BEARINGS, +}; + + +/// +/// Whether to enable grid-fitting of glyph outlines (a.k.a. hinting). +/// +enum DWRITE_GRID_FIT_MODE +{ + /// + /// Choose grid fitting base on the font's gasp table information. + /// + DWRITE_GRID_FIT_MODE_DEFAULT, + + /// + /// Always disable grid fitting, using the ideal glyph outlines. + /// + DWRITE_GRID_FIT_MODE_DISABLED, + + /// + /// Enable grid fitting, adjusting glyph outlines for device pixel display. + /// + DWRITE_GRID_FIT_MODE_ENABLED +}; + + +/// +/// Overall metrics associated with text after layout. +/// All coordinates are in device independent pixels (DIPs). +/// +struct DWRITE_TEXT_METRICS1 : DWRITE_TEXT_METRICS +{ + /// + /// The height of the formatted text taking into account the + /// trailing whitespace at the end of each line, which will + /// matter for vertical reading directions. + /// + FLOAT heightIncludingTrailingWhitespace; +}; + + +/// +/// The text renderer interface represents a set of application-defined +/// callbacks that perform rendering of text, inline objects, and decorations +/// such as underlines. +/// +interface DWRITE_DECLARE_INTERFACE("D3E0E934-22A0-427E-AAE4-7D9574B59DB1") IDWriteTextRenderer1 : public IDWriteTextRenderer +{ + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to + /// render a run of glyphs. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Orientation of the glyph run. + /// Specifies measuring method for glyphs in + /// the run. Renderer implementations may choose different rendering + /// modes for given measuring methods, but best results are seen when + /// the rendering mode matches the corresponding measuring mode: + /// DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL for DWRITE_MEASURING_MODE_NATURAL + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC for DWRITE_MEASURING_MODE_GDI_CLASSIC + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL for DWRITE_MEASURING_MODE_GDI_NATURAL + /// + /// The glyph run to draw. + /// Properties of the characters + /// associated with this run. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// If a non-identity orientation is passed, the glyph run should be + /// rotated around the given baseline x and y coordinates. The function + /// IDWriteAnalyzer2::GetGlyphOrientationTransform will return the + /// necessary transform for you, which can be combined with any existing + /// world transform on the drawing context. + /// + STDMETHOD(DrawGlyphRun)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle, + DWRITE_MEASURING_MODE measuringMode, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to draw + /// an underline. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Orientation of the underline. + /// Underline logical information. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// A single underline can be broken into multiple calls, depending on + /// how the formatting changes attributes. If font sizes/styles change + /// within an underline, the thickness and offset will be averaged + /// weighted according to characters. + /// + /// To get the correct top coordinate of the underline rect, add + /// underline::offset to the baseline's Y. Otherwise the underline will + /// be immediately under the text. The x coordinate will always be passed + /// as the left side, regardless of text directionality. This simplifies + /// drawing and reduces the problem of round-off that could potentially + /// cause gaps or a double stamped alpha blend. To avoid alpha overlap, + /// round the end points to the nearest device pixel. + /// + STDMETHOD(DrawUnderline)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle, + _In_ DWRITE_UNDERLINE const* underline, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to draw + /// a strikethrough. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Orientation of the strikethrough. + /// Strikethrough logical information. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// A single strikethrough can be broken into multiple calls, depending on + /// how the formatting changes attributes. Strikethrough is not averaged + /// across font sizes/styles changes. + /// To get the correct top coordinate of the strikethrough rect, + /// add strikethrough::offset to the baseline's Y. + /// Like underlines, the x coordinate will always be passed as the left side, + /// regardless of text directionality. + /// + STDMETHOD(DrawStrikethrough)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle, + _In_ DWRITE_STRIKETHROUGH const* strikethrough, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this application callback when it needs to + /// draw an inline object. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate at the top-left corner of the + /// inline object. + /// Y-coordinate at the top-left corner of the + /// inline object. + /// Orientation of the inline object. + /// The object set using IDWriteTextLayout::SetInlineObject. + /// The object should be drawn on its side. + /// The object is in an right-to-left context + /// and should be drawn flipped. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// The right-to-left flag is a hint to draw the appropriate visual for + /// that reading direction. For example, it would look strange to draw an + /// arrow pointing to the right to indicate a submenu. The sideways flag + /// similarly hints that the object is drawn in a different orientation. + /// If a non-identity orientation is passed, the top left of the inline + /// object should be rotated around the given x and y coordinates. + /// IDWriteAnalyzer2::GetGlyphOrientationTransform returns the necessary + /// transform for this. + /// + STDMETHOD(DrawInlineObject)( + _In_opt_ void* clientDrawingContext, + FLOAT originX, + FLOAT originY, + DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle, + _In_ IDWriteInlineObject* inlineObject, + BOOL isSideways, + BOOL isRightToLeft, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + using IDWriteTextRenderer::DrawGlyphRun; + using IDWriteTextRenderer::DrawUnderline; + using IDWriteTextRenderer::DrawStrikethrough; + using IDWriteTextRenderer::DrawInlineObject; +}; + + +/// +/// The format of text used for text layout. +/// +/// +/// This object may not be thread-safe and it may carry the state of text format change. +/// +interface DWRITE_DECLARE_INTERFACE("5F174B49-0D8B-4CFB-8BCA-F1CCE9D06C67") IDWriteTextFormat1 : public IDWriteTextFormat +{ + /// + /// Set the preferred orientation of glyphs when using a vertical reading direction. + /// + /// Preferred glyph orientation. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetVerticalGlyphOrientation)( + DWRITE_VERTICAL_GLYPH_ORIENTATION glyphOrientation + ) PURE; + + /// + /// Get the preferred orientation of glyphs when using a vertical reading + /// direction. + /// + STDMETHOD_(DWRITE_VERTICAL_GLYPH_ORIENTATION, GetVerticalGlyphOrientation)() PURE; + + /// + /// Set whether or not the last word on the last line is wrapped. + /// + /// Line wrapping option. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLastLineWrapping)( + BOOL isLastLineWrappingEnabled + ) PURE; + + /// + /// Get whether or not the last word on the last line is wrapped. + /// + STDMETHOD_(BOOL, GetLastLineWrapping)() PURE; + + /// + /// Set how the glyphs align to the edges the margin. Default behavior is + /// to align glyphs using their default glyphs metrics which include side + /// bearings. + /// + /// Optical alignment option. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetOpticalAlignment)( + DWRITE_OPTICAL_ALIGNMENT opticalAlignment + ) PURE; + + /// + /// Get how the glyphs align to the edges the margin. + /// + STDMETHOD_(DWRITE_OPTICAL_ALIGNMENT, GetOpticalAlignment)() PURE; + + /// + /// Apply a custom font fallback onto layout. If none is specified, + /// layout uses the system fallback list. + /// + /// Custom font fallback created from + /// IDWriteFontFallbackBuilder::CreateFontFallback or from + /// IDWriteFactory2::GetSystemFontFallback. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontFallback)( + IDWriteFontFallback* fontFallback + ) PURE; + + /// + /// Get the current font fallback object. + /// + STDMETHOD(GetFontFallback)( + __out IDWriteFontFallback** fontFallback + ) PURE; +}; + + +/// +/// The text layout interface represents a block of text after it has +/// been fully analyzed and formatted. +/// +/// All coordinates are in device independent pixels (DIPs). +/// +interface DWRITE_DECLARE_INTERFACE("1093C18F-8D5E-43F0-B064-0917311B525E") IDWriteTextLayout2 : public IDWriteTextLayout1 +{ + /// + /// GetMetrics retrieves overall metrics for the formatted string. + /// + /// The returned metrics. + /// + /// Standard HRESULT error code. + /// + /// + /// Drawing effects like underline and strikethrough do not contribute + /// to the text size, which is essentially the sum of advance widths and + /// line heights. Additionally, visible swashes and other graphic + /// adornments may extend outside the returned width and height. + /// + STDMETHOD(GetMetrics)( + _Out_ DWRITE_TEXT_METRICS1* textMetrics + ) PURE; + + using IDWriteTextLayout::GetMetrics; + + /// + /// Set the preferred orientation of glyphs when using a vertical reading direction. + /// + /// Preferred glyph orientation. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetVerticalGlyphOrientation)( + DWRITE_VERTICAL_GLYPH_ORIENTATION glyphOrientation + ) PURE; + + /// + /// Get the preferred orientation of glyphs when using a vertical reading + /// direction. + /// + STDMETHOD_(DWRITE_VERTICAL_GLYPH_ORIENTATION, GetVerticalGlyphOrientation)() PURE; + + /// + /// Set whether or not the last word on the last line is wrapped. + /// + /// Line wrapping option. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLastLineWrapping)( + BOOL isLastLineWrappingEnabled + ) PURE; + + /// + /// Get whether or not the last word on the last line is wrapped. + /// + STDMETHOD_(BOOL, GetLastLineWrapping)() PURE; + + /// + /// Set how the glyphs align to the edges the margin. Default behavior is + /// to align glyphs using their default glyphs metrics which include side + /// bearings. + /// + /// Optical alignment option. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetOpticalAlignment)( + DWRITE_OPTICAL_ALIGNMENT opticalAlignment + ) PURE; + + /// + /// Get how the glyphs align to the edges the margin. + /// + STDMETHOD_(DWRITE_OPTICAL_ALIGNMENT, GetOpticalAlignment)() PURE; + + /// + /// Apply a custom font fallback onto layout. If none is specified, + /// layout uses the system fallback list. + /// + /// Custom font fallback created from + /// IDWriteFontFallbackBuilder::CreateFontFallback or + /// IDWriteFactory2::GetSystemFontFallback. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontFallback)( + IDWriteFontFallback* fontFallback + ) PURE; + + /// + /// Get the current font fallback object. + /// + STDMETHOD(GetFontFallback)( + __out IDWriteFontFallback** fontFallback + ) PURE; +}; + + +/// +/// The text analyzer interface represents a set of application-defined +/// callbacks that perform rendering of text, inline objects, and decorations +/// such as underlines. +/// +interface DWRITE_DECLARE_INTERFACE("553A9FF3-5693-4DF7-B52B-74806F7F2EB9") IDWriteTextAnalyzer2 : public IDWriteTextAnalyzer1 +{ + /// + /// Returns 2x3 transform matrix for the respective angle to draw the + /// glyph run or other object. + /// + /// The angle reported to one of the application callbacks, + /// including IDWriteTextAnalysisSink1::SetGlyphOrientation and IDWriteTextRenderer1::Draw*. + /// Whether the run's glyphs are sideways or not. + /// X origin of the element, be it a glyph run or underline or other. + /// Y origin of the element, be it a glyph run or underline or other. + /// Returned transform. + /// + /// Standard HRESULT error code. + /// + /// + /// This rotates around the given origin x and y, returning a translation component + /// such that the glyph run, text decoration, or inline object is drawn with the + /// right orientation at the expected coordinate. + /// + STDMETHOD(GetGlyphOrientationTransform)( + DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle, + BOOL isSideways, + FLOAT originX, + FLOAT originY, + _Out_ DWRITE_MATRIX* transform + ) PURE; + + /// + /// Returns a list of typographic feature tags for the given script and language. + /// + /// The font face to get features from. + /// Script analysis result from AnalyzeScript. + /// The locale to use when selecting the feature, + /// such en-us or ja-jp. + /// Maximum tag count. + /// Actual tag count. If greater than + /// maxTagCount, E_NOT_SUFFICIENT_BUFFER is returned, and the call + /// should be retried with a larger buffer. + /// Feature tag list. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetTypographicFeatures)( + IDWriteFontFace* fontFace, + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + UINT32 maxTagCount, + _Out_ UINT32* actualTagCount, + _Out_writes_(maxTagCount) DWRITE_FONT_FEATURE_TAG* tags + ) PURE; + + /// + /// Returns an array of which glyphs are affected by a given feature. + /// + /// The font face to read glyph information from. + /// Script analysis result from AnalyzeScript. + /// The locale to use when selecting the feature, + /// such en-us or ja-jp. + /// OpenType feature name to use, which may be one + /// of the DWRITE_FONT_FEATURE_TAG values or a custom feature using + /// DWRITE_MAKE_OPENTYPE_TAG. + /// Number of glyph indices to check. + /// Glyph indices to check for feature application. + /// Output of which glyphs are affected by the + /// feature, where for each glyph affected, the respective array index + /// will be 1. The result is returned per-glyph without regard to + /// neighboring context of adjacent glyphs. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CheckTypographicFeature)( + IDWriteFontFace* fontFace, + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + DWRITE_FONT_FEATURE_TAG featureTag, + UINT32 glyphCount, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _Out_writes_(glyphCount) UINT8* featureApplies + ) PURE; + + using IDWriteTextAnalyzer1::GetGlyphOrientationTransform; +}; + + +/// +/// A font fallback definition used for mapping characters to fonts capable of +/// supporting them. +/// +interface DWRITE_DECLARE_INTERFACE("EFA008F9-F7A1-48BF-B05C-F224713CC0FF") IDWriteFontFallback : public IUnknown +{ + /// + /// Determines an appropriate font to use to render the range of text. + /// + /// The text source implementation holds the text and + /// locale. + /// Length of the text to analyze. + /// Default font collection to use. + /// Family name of the base font. If you pass + /// null, no matching will be done against the family. + /// Desired weight. + /// Desired style. + /// Desired stretch. + /// Length of text mapped to the mapped font. + /// This will always be less or equal to the input text length and + /// greater than zero (if the text length is non-zero) so that the + /// caller advances at least one character each call. + /// The font that should be used to render the + /// first mappedLength characters of the text. If it returns NULL, + /// then no known font can render the text, and mappedLength is the + /// number of unsupported characters to skip. + /// Scale factor to multiply the em size of the + /// returned font by. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(MapCharacters)( + IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_opt_ IDWriteFontCollection* baseFontCollection, + _In_opt_z_ wchar_t const* baseFamilyName, + DWRITE_FONT_WEIGHT baseWeight, + DWRITE_FONT_STYLE baseStyle, + DWRITE_FONT_STRETCH baseStretch, + _Out_range_(0, textLength) UINT32* mappedLength, + _COM_Outptr_result_maybenull_ IDWriteFont** mappedFont, + _Out_ FLOAT* scale + ) PURE; +}; + + +/// +/// Builder used to create a font fallback definition by appending a series of +/// fallback mappings, followed by a creation call. +/// +/// +/// This object may not be thread-safe. +/// +interface DWRITE_DECLARE_INTERFACE("FD882D06-8ABA-4FB8-B849-8BE8B73E14DE") IDWriteFontFallbackBuilder : public IUnknown +{ + /// + /// Appends a single mapping to the list. Call this once for each additional mapping. + /// + /// Unicode ranges that apply to this mapping. + /// Number of Unicode ranges. + /// Locale of the context (e.g. document locale). + /// Base family name to match against, if applicable. + /// Explicit font collection for this mapping (optional). + /// List of target family name strings. + /// Number of target family names. + /// Scale factor to multiply the result target font by. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddMapping)( + _In_reads_(rangesCount) DWRITE_UNICODE_RANGE const* ranges, + UINT32 rangesCount, + _In_reads_(targetFamilyNamesCount) WCHAR const** targetFamilyNames, + UINT32 targetFamilyNamesCount, + _In_opt_ IDWriteFontCollection* fontCollection = NULL, + _In_opt_z_ WCHAR const* localeName = NULL, + _In_opt_z_ WCHAR const* baseFamilyName = NULL, + FLOAT scale = 1.0f + ) PURE; + + /// + /// Appends all the mappings from an existing font fallback object. + /// + /// Font fallback to read mappings from. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddMappings)( + IDWriteFontFallback* fontFallback + ) PURE; + + /// + /// Creates the finalized fallback object from the mappings added. + /// + /// Created fallback list. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFallback)( + _COM_Outptr_ IDWriteFontFallback** fontFallback + ) PURE; +}; + +/// +/// DWRITE_COLOR_F +/// +#ifndef D3DCOLORVALUE_DEFINED + +typedef struct _D3DCOLORVALUE { + union { + FLOAT r; + FLOAT dvR; + }; + union { + FLOAT g; + FLOAT dvG; + }; + union { + FLOAT b; + FLOAT dvB; + }; + union { + FLOAT a; + FLOAT dvA; + }; +} D3DCOLORVALUE; + +#define D3DCOLORVALUE_DEFINED +#endif // D3DCOLORVALUE_DEFINED + +typedef D3DCOLORVALUE DWRITE_COLOR_F; + +/// +/// The IDWriteFont interface represents a physical font in a font collection. +/// +interface DWRITE_DECLARE_INTERFACE("29748ed6-8c9c-4a6a-be0b-d912e8538944") IDWriteFont2 : public IDWriteFont1 +{ + /// + /// Returns TRUE if the font contains tables that can provide color information + /// (including COLR, CPAL, SVG, CBDT, sbix tables), or FALSE if not. Note that + /// TRUE is returned even in the case when the font tables contain only grayscale + /// images. + /// + STDMETHOD_(BOOL, IsColorFont)() PURE; +}; + +/// +/// The interface that represents an absolute reference to a font face. +/// It contains font face type, appropriate file references and face identification data. +/// Various font data such as metrics, names and glyph outlines is obtained from IDWriteFontFace. +/// +interface DWRITE_DECLARE_INTERFACE("d8b768ff-64bc-4e66-982b-ec8e87f693f7") IDWriteFontFace2 : public IDWriteFontFace1 +{ + /// + /// Returns TRUE if the font contains tables that can provide color information + /// (including COLR, CPAL, SVG, CBDT, sbix tables), or FALSE if not. Note that + /// TRUE is returned even in the case when the font tables contain only grayscale + /// images. + /// + STDMETHOD_(BOOL, IsColorFont)() PURE; + + /// + /// Returns the number of color palettes defined by the font. The return + /// value is zero if the font has no color information. Color fonts must + /// have at least one palette, with palette index zero being the default. + /// + STDMETHOD_(UINT32, GetColorPaletteCount)() PURE; + + /// + /// Returns the number of entries in each color palette. All color palettes + /// in a font have the same number of palette entries. The return value is + /// zero if the font has no color information. + /// + STDMETHOD_(UINT32, GetPaletteEntryCount)() PURE; + + /// + /// Reads color values from the font's color palette. + /// + /// Zero-based index of the color palette. If the + /// font does not have a palette with the specified index, the method returns + /// DWRITE_E_NOCOLOR. + /// Zero-based index of the first palette entry + /// to read. + /// Number of palette entries to read. + /// Array that receives the color values. + /// + /// Standard HRESULT error code. + /// The return value is E_INVALIDARG if firstEntryIndex + entryCount is greater + /// than the actual number of palette entries as returned by GetPaletteEntryCount. + /// The return value is DWRITE_E_NOCOLOR if the font does not have a palette + /// with the specified palette index. + /// + STDMETHOD(GetPaletteEntries)( + UINT32 colorPaletteIndex, + UINT32 firstEntryIndex, + UINT32 entryCount, + _Out_writes_(entryCount) DWRITE_COLOR_F* paletteEntries + ) PURE; + + /// + /// Determines the recommended text rendering and grid-fit mode to be used based on the + /// font, size, world transform, and measuring mode. + /// + /// Logical font size in DIPs. + /// Number of pixels per logical inch in the horizontal direction. + /// Number of pixels per logical inch in the vertical direction. + /// Specifies the world transform. + /// Specifies the quality of the graphics system's outline rendering, + /// affects the size threshold above which outline rendering is used. + /// Specifies the method used to measure during text layout. For proper + /// glyph spacing, the function returns a rendering mode that is compatible with the specified + /// measuring mode. + /// Rendering parameters object. This parameter is necessary in case the rendering parameters + /// object overrides the rendering mode. + /// Receives the recommended rendering mode. + /// Receives the recommended grid-fit mode. + /// + /// This method should be used to determine the actual rendering mode in cases where the rendering + /// mode of the rendering params object is DWRITE_RENDERING_MODE_DEFAULT, and the actual grid-fit + /// mode when the rendering params object is DWRITE_GRID_FIT_MODE_DEFAULT. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetRecommendedRenderingMode)( + FLOAT fontEmSize, + FLOAT dpiX, + FLOAT dpiY, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL isSideways, + DWRITE_OUTLINE_THRESHOLD outlineThreshold, + DWRITE_MEASURING_MODE measuringMode, + _In_opt_ IDWriteRenderingParams* renderingParams, + _Out_ DWRITE_RENDERING_MODE* renderingMode, + _Out_ DWRITE_GRID_FIT_MODE* gridFitMode + ) PURE; + + using IDWriteFontFace1::GetRecommendedRenderingMode; +}; + +/// +/// Reserved palette entry index that does not specify any palette entry. +/// +#define DWRITE_NO_PALETTE_INDEX 0xFFFF + +/// +/// Represents a color glyph run. The IDWriteFactory2::TranslateColorGlyphRun +/// method returns an ordered collection of color glyph runs, which can be +/// layered on top of each other to produce a color representation of the +/// given base glyph run. +/// +struct DWRITE_COLOR_GLYPH_RUN +{ + /// + /// Glyph run to render. + /// + DWRITE_GLYPH_RUN glyphRun; + + /// + /// Optional glyph run description. + /// + _Maybenull_ DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription; + + /// + /// Location at which to draw this glyph run. + /// + FLOAT baselineOriginX; + FLOAT baselineOriginY; + + /// + /// Color to use for this layer, if any. If the paletteIndex member is + /// DWRITE_NO_PALETTE_INDEX (0xFFFF) then no color is specifed by the font, + /// this member is set to { 0, 0, 0, 0 }, and the client should use the + /// current foreground brush. Otherwise, this member is set to a color from + /// the font's color palette, i.e., the same color that would be returned + /// by IDWriteFontFace2::GetPaletteEntries for the current palette index. + /// + DWRITE_COLOR_F runColor; + + /// + /// Zero-based index of this layer's color entry in the current color + /// palette, or DWRITE_NO_PALETTE_INDEX (0xFFFF) if this layer + /// is to be rendered using the current foreground brush. + /// + UINT16 paletteIndex; +}; + +/// +/// Enumerator for an ordered collection of color glyph runs. +/// +interface DWRITE_DECLARE_INTERFACE("d31fbe17-f157-41a2-8d24-cb779e0560e8") IDWriteColorGlyphRunEnumerator : public IUnknown +{ + /// + /// Advances to the first or next color run. The runs are enumerated + /// in order from back to front. + /// + /// Receives TRUE if there is a current run or + /// FALSE if the end of the sequence has been reached. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(MoveNext)( + _Out_ BOOL* hasRun + ) PURE; + + /// + /// Gets the current color glyph run. + /// + /// Receives a pointer to the color + /// glyph run. The pointer remains valid until the next call to + /// MoveNext or until the interface is released. + /// + /// Standard HRESULT error code. An error is returned if there is + /// no current glyph run, i.e., if MoveNext has not yet been called + /// or if the end of the sequence has been reached. + /// + STDMETHOD(GetCurrentRun)( + _Outptr_ DWRITE_COLOR_GLYPH_RUN const** colorGlyphRun + ) PURE; +}; + +/// +/// The interface that represents text rendering settings for glyph rasterization and filtering. +/// +interface DWRITE_DECLARE_INTERFACE("F9D711C3-9777-40AE-87E8-3E5AF9BF0948") IDWriteRenderingParams2 : public IDWriteRenderingParams1 +{ + /// + /// Gets the grid fitting mode. + /// + STDMETHOD_(DWRITE_GRID_FIT_MODE, GetGridFitMode)() PURE; +}; + +/// +/// The root factory interface for all DWrite objects. +/// +interface DWRITE_DECLARE_INTERFACE("0439fc60-ca44-4994-8dee-3a9af7b732ec") IDWriteFactory2 : public IDWriteFactory1 +{ + /// + /// Get the system-appropriate font fallback mapping list. + /// + /// The system fallback list. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontFallback)( + _COM_Outptr_ IDWriteFontFallback** fontFallback + ) PURE; + + /// + /// Create a custom font fallback builder. + /// + /// Empty font fallback builder. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFallbackBuilder)( + _COM_Outptr_ IDWriteFontFallbackBuilder** fontFallbackBuilder + ) PURE; + + /// + /// Translates a glyph run to a sequence of color glyph runs, which can be + /// rendered to produce a color representation of the original "base" run. + /// + /// Horizontal origin of the base glyph run in + /// pre-transform coordinates. + /// Vertical origin of the base glyph run in + /// pre-transform coordinates. + /// Pointer to the original "base" glyph run. + /// Optional glyph run description. + /// Measuring mode, needed to compute the origins + /// of each glyph. + /// Matrix converting from the client's + /// coordinate space to device coordinates (pixels), i.e., the world transform + /// multiplied by any DPI scaling. + /// Zero-based index of the color palette to use. + /// Valid indices are less than the number of palettes in the font, as returned + /// by IDWriteFontFace2::GetColorPaletteCount. + /// If the function succeeds, receives a pointer + /// to an enumerator object that can be used to obtain the color glyph runs. + /// If the base run has no color glyphs, then the output pointer is NULL + /// and the method returns DWRITE_E_NOCOLOR. + /// + /// Returns DWRITE_E_NOCOLOR if the font has no color information, the base + /// glyph run does not contain any color glyphs, or the specified color palette + /// index is out of range. In this case, the client should render the base glyph + /// run. Otherwise, returns a standard HRESULT error code. + /// + STDMETHOD(TranslateColorGlyphRun)( + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_opt_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, + DWRITE_MEASURING_MODE measuringMode, + _In_opt_ DWRITE_MATRIX const* worldToDeviceTransform, + UINT32 colorPaletteIndex, + _COM_Outptr_ IDWriteColorGlyphRunEnumerator** colorLayers + ) PURE; + + /// + /// Creates a rendering parameters object with the specified properties. + /// + /// The gamma value used for gamma correction, which must be greater than zero and cannot exceed 256. + /// The amount of contrast enhancement, zero or greater. + /// The degree of ClearType level, from 0.0f (no ClearType) to 1.0f (full ClearType). + /// The geometry of a device pixel. + /// Method of rendering glyphs. In most cases, this should be DWRITE_RENDERING_MODE_DEFAULT to automatically use an appropriate mode. + /// How to grid fit glyph outlines. In most cases, this should be DWRITE_GRID_FIT_DEFAULT to automatically choose an appropriate mode. + /// Holds the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateCustomRenderingParams)( + FLOAT gamma, + FLOAT enhancedContrast, + FLOAT grayscaleEnhancedContrast, + FLOAT clearTypeLevel, + DWRITE_PIXEL_GEOMETRY pixelGeometry, + DWRITE_RENDERING_MODE renderingMode, + DWRITE_GRID_FIT_MODE gridFitMode, + _COM_Outptr_ IDWriteRenderingParams2** renderingParams + ) PURE; + + using IDWriteFactory::CreateCustomRenderingParams; + using IDWriteFactory1::CreateCustomRenderingParams; + + /// + /// Creates a glyph run analysis object, which encapsulates information + /// used to render a glyph run. + /// + /// Structure specifying the properties of the glyph run. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the emSize and pixelsPerDip. + /// Specifies the rendering mode, which must be one of the raster rendering modes (i.e., not default + /// and not outline). + /// Specifies the method to measure glyphs. + /// How to grid-fit glyph outlines. This must be non-default. + /// Horizontal position of the baseline origin, in DIPs. + /// Vertical position of the baseline origin, in DIPs. + /// Receives a pointer to the newly created object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateGlyphRunAnalysis)( + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_opt_ DWRITE_MATRIX const* transform, + DWRITE_RENDERING_MODE renderingMode, + DWRITE_MEASURING_MODE measuringMode, + DWRITE_GRID_FIT_MODE gridFitMode, + DWRITE_TEXT_ANTIALIAS_MODE antialiasMode, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _COM_Outptr_ IDWriteGlyphRunAnalysis** glyphRunAnalysis + ) PURE; + + using IDWriteFactory::CreateGlyphRunAnalysis; +}; + + +#endif /* DWRITE_2_H_INCLUDED */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite_3.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite_3.h new file mode 100644 index 0000000000000000000000000000000000000000..01a3b56cc5c618e1d510251269a8d2ee67d8078e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dwrite_3.h @@ -0,0 +1,4552 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// DirectX Typography Services public API definitions. +// +//---------------------------------------------------------------------------- + +#ifndef DWRITE_3_H_INCLUDED +#define DWRITE_3_H_INCLUDED + +#pragma once + +#include + +interface IDWriteFontFaceReference; +interface IDWriteFont3; +interface IDWriteFontFace3; +interface IDWriteFontSet; +interface IDWriteFontSetBuilder; +interface IDWriteFontCollection1; +interface IDWriteFontFamily1; +interface IDWriteStringList; +interface IDWriteFontDownloadQueue; + + +/// +/// A font resource could not be accessed because it was remote. This can happen +/// when calling CreateFontFace on a non-local font or trying to measure/draw +/// glyphs that are not downloaded yet. +/// +#ifndef DWRITE_E_REMOTEFONT +#define DWRITE_E_REMOTEFONT _HRESULT_TYPEDEF_(0x8898500DL) +#endif + +/// +/// The download was canceled, which happens if the application calls +/// IDWriteFontDownloadQueue::CancelDownload before they finish. +/// +#ifndef DWRITE_E_DOWNLOADCANCELLED +#define DWRITE_E_DOWNLOADCANCELLED _HRESULT_TYPEDEF_(0x8898500EL) +#endif + +/// +/// The download failed to complete because the remote resource is missing +/// or the network is down. +/// +#ifndef DWRITE_E_DOWNLOADFAILED +#define DWRITE_E_DOWNLOADFAILED _HRESULT_TYPEDEF_(0x8898500FL) +#endif + +/// +/// A download request was not added or a download failed because there +/// are too many active downloads. +/// +#ifndef DWRITE_E_TOOMANYDOWNLOADS +#define DWRITE_E_TOOMANYDOWNLOADS _HRESULT_TYPEDEF_(0x88985010L) +#endif + +/// +/// The font property enumeration identifies a string in a font. +/// +enum DWRITE_FONT_PROPERTY_ID +{ + /// + /// Unspecified font property identifier. + /// + DWRITE_FONT_PROPERTY_ID_NONE, + + /// + /// Family name for the weight-stretch-style model. + /// + DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME, + + /// + /// Family name preferred by the designer. This enables font designers to group more than four fonts in a single family without losing compatibility with + /// GDI. This name is typically only present if it differs from the GDI-compatible family name. + /// + DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME, + + /// + /// Face name of the for the weight-stretch-style (e.g., Regular or Bold). + /// + DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FACE_NAME, + + /// + /// The full name of the font, e.g. "Arial Bold", from name id 4 in the name table. + /// + DWRITE_FONT_PROPERTY_ID_FULL_NAME, + + /// + /// GDI-compatible family name. Because GDI allows a maximum of four fonts per family, fonts in the same family may have different GDI-compatible family names + /// (e.g., "Arial", "Arial Narrow", "Arial Black"). + /// + DWRITE_FONT_PROPERTY_ID_WIN32_FAMILY_NAME, + + /// + /// The postscript name of the font, e.g. "GillSans-Bold" from name id 6 in the name table. + /// + DWRITE_FONT_PROPERTY_ID_POSTSCRIPT_NAME, + + /// + /// Script/language tag to identify the scripts or languages that the font was + /// primarily designed to support. + /// + /// + /// The design script/language tag is meant to be understood from the perspective of + /// users. For example, a font is considered designed for English if it is considered + /// useful for English users. Note that this is different from what a font might be + /// capable of supporting. For example, the Meiryo font was primarily designed for + /// Japanese users. While it is capable of displaying English well, it was not + /// meant to be offered for the benefit of non-Japanese-speaking English users. + /// + /// As another example, a font designed for Chinese may be capable of displaying + /// Japanese text, but would likely look incorrect to Japanese users. + /// + /// The valid values for this property are "ScriptLangTag" values. These are adapted + /// from the IETF BCP 47 specification, "Tags for Identifying Languages" (see + /// http://tools.ietf.org/html/bcp47). In a BCP 47 language tag, a language subtag + /// element is mandatory and other subtags are optional. In a ScriptLangTag, a + /// script subtag is mandatory and other subtags are option. The following + /// augmented BNF syntax, adapted from BCP 47, is used: + /// + /// ScriptLangTag = [language "-"] + /// script + /// ["-" region] + /// *("-" variant) + /// *("-" extension) + /// ["-" privateuse] + /// + /// The expansion of the elements and the intended semantics associated with each + /// are as defined in BCP 47. Script subtags are taken from ISO 15924. At present, + /// no extensions are defined, and any extension should be ignored. Private use + /// subtags are defined by private agreement between the source and recipient and + /// may be ignored. + /// + /// Subtags must be valid for use in BCP 47 and contained in the Language Subtag + /// Registry maintained by IANA. (See + /// http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry + /// and section 3 of BCP 47 for details. + /// + /// Any ScriptLangTag value not conforming to these specifications is ignored. + /// + /// Examples: + /// "Latn" denotes Latin script (and any language or writing system using Latin) + /// "Cyrl" denotes Cyrillic script + /// "sr-Cyrl" denotes Cyrillic script as used for writing the Serbian language; + /// a font that has this property value may not be suitable for displaying + /// text in Russian or other languages written using Cyrillic script + /// "Jpan" denotes Japanese writing (Han + Hiragana + Katakana) + /// + /// When passing this property to GetPropertyValues, use the overload which does + /// not take a language parameter, since this property has no specific language. + /// + DWRITE_FONT_PROPERTY_ID_DESIGN_SCRIPT_LANGUAGE_TAG, + + /// + /// Script/language tag to identify the scripts or languages that the font declares + /// it is able to support. + /// + DWRITE_FONT_PROPERTY_ID_SUPPORTED_SCRIPT_LANGUAGE_TAG, + + /// + /// Semantic tag to describe the font (e.g. Fancy, Decorative, Handmade, Sans-serif, Swiss, Pixel, Futuristic). + /// + DWRITE_FONT_PROPERTY_ID_SEMANTIC_TAG, + + /// + /// Weight of the font represented as a decimal string in the range 1-999. + /// + /// + /// This enum is discouraged for use with IDWriteFontSetBuilder2 in favor of the more generic font axis + /// DWRITE_FONT_AXIS_TAG_WEIGHT which supports higher precision and range. + /// + DWRITE_FONT_PROPERTY_ID_WEIGHT, + + /// + /// Stretch of the font represented as a decimal string in the range 1-9. + /// + /// + /// This enum is discouraged for use with IDWriteFontSetBuilder2 in favor of the more generic font axis + /// DWRITE_FONT_AXIS_TAG_WIDTH which supports higher precision and range. + /// + DWRITE_FONT_PROPERTY_ID_STRETCH, + + /// + /// Style of the font represented as a decimal string in the range 0-2. + /// + /// + /// This enum is discouraged for use with IDWriteFontSetBuilder2 in favor of the more generic font axes + /// DWRITE_FONT_AXIS_TAG_SLANT and DWRITE_FONT_AXIS_TAG_ITAL. + /// + DWRITE_FONT_PROPERTY_ID_STYLE, + + /// + /// Face name preferred by the designer. This enables font designers to group more than four fonts in a single + /// family without losing compatibility with GDI. + /// + DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FACE_NAME, + + /// + /// Total number of properties for NTDDI_WIN10 (IDWriteFontSet). + /// + /// + /// DWRITE_FONT_PROPERTY_ID_TOTAL cannot be used as a property ID. + /// + DWRITE_FONT_PROPERTY_ID_TOTAL = DWRITE_FONT_PROPERTY_ID_STYLE + 1, + + /// + /// Total number of properties for NTDDI_WIN10_RS3 (IDWriteFontSet1). + /// + DWRITE_FONT_PROPERTY_ID_TOTAL_RS3 = DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FACE_NAME + 1, + + // Obsolete aliases kept to avoid breaking existing code. + DWRITE_FONT_PROPERTY_ID_PREFERRED_FAMILY_NAME = DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME, + DWRITE_FONT_PROPERTY_ID_FAMILY_NAME = DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME, + DWRITE_FONT_PROPERTY_ID_FACE_NAME = DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FACE_NAME, +}; + + +/// +/// Font property used for filtering font sets and +/// building a font set with explicit properties. +/// +struct DWRITE_FONT_PROPERTY +{ + /// + /// Specifies the requested font property, such as DWRITE_FONT_PROPERTY_ID_FAMILY_NAME. + /// + DWRITE_FONT_PROPERTY_ID propertyId; + + /// + /// Specifies the property value, such as "Segoe UI". + /// + _Field_z_ WCHAR const* propertyValue; + + /// + /// Specifies the language / locale to use, such as "en-US". + /// + /// + /// When passing property information to AddFontFaceReference, localeName indicates + /// the language of the property value. BCP 47 language tags should be used. If a + /// property value is inherently non-linguistic, this can be left empty. + /// + /// When used for font set filtering, leave this empty: a match will be found + /// regardless of language associated with property values. + /// + _Field_z_ _Maybenull_ WCHAR const* localeName; +}; + + +/// +/// Specifies the locality of a resource. +/// +enum DWRITE_LOCALITY +{ + /// + /// The resource is remote, and information is unknown yet, including the file size and date. + /// Attempting to create a font or file stream will fail until locality becomes at least partial. + /// + DWRITE_LOCALITY_REMOTE, + + /// + /// The resource is partially local, meaning you can query the size and date of the file + /// stream, and you may be able to create a font face and retrieve the particular glyphs + /// for metrics and drawing, but not all the glyphs will be present. + /// + DWRITE_LOCALITY_PARTIAL, + + /// + /// The resource is completely local, and all font functions can be called + /// without concern of missing data or errors related to network connectivity. + /// + DWRITE_LOCALITY_LOCAL, +}; + + +/// +/// Represents a method of rendering glyphs. +/// +enum DWRITE_RENDERING_MODE1 +{ + /// + /// Specifies that the rendering mode is determined automatically based on the font and size. + /// + DWRITE_RENDERING_MODE1_DEFAULT = DWRITE_RENDERING_MODE_DEFAULT, + + /// + /// Specifies that no antialiasing is performed. Each pixel is either set to the foreground + /// color of the text or retains the color of the background. + /// + DWRITE_RENDERING_MODE1_ALIASED = DWRITE_RENDERING_MODE_ALIASED, + + /// + /// Specifies that antialiasing is performed in the horizontal direction and the appearance + /// of glyphs is layout-compatible with GDI using CLEARTYPE_QUALITY. Use DWRITE_MEASURING_MODE_GDI_CLASSIC + /// to get glyph advances. The antialiasing may be either ClearType or grayscale depending on + /// the text antialiasing mode. + /// + DWRITE_RENDERING_MODE1_GDI_CLASSIC = DWRITE_RENDERING_MODE_GDI_CLASSIC, + + /// + /// Specifies that antialiasing is performed in the horizontal direction and the appearance + /// of glyphs is layout-compatible with GDI using CLEARTYPE_NATURAL_QUALITY. Glyph advances + /// are close to the font design advances, but are still rounded to whole pixels. Use + /// DWRITE_MEASURING_MODE_GDI_NATURAL to get glyph advances. The antialiasing may be either + /// ClearType or grayscale depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE1_GDI_NATURAL = DWRITE_RENDERING_MODE_GDI_NATURAL, + + /// + /// Specifies that antialiasing is performed in the horizontal direction. This rendering + /// mode allows glyphs to be positioned with subpixel precision and is therefore suitable + /// for natural (i.e., resolution-independent) layout. The antialiasing may be either + /// ClearType or grayscale depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE1_NATURAL = DWRITE_RENDERING_MODE_NATURAL, + + /// + /// Similar to natural mode except that antialiasing is performed in both the horizontal + /// and vertical directions. This is typically used at larger sizes to make curves and + /// diagonal lines look smoother. The antialiasing may be either ClearType or grayscale + /// depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE1_NATURAL_SYMMETRIC = DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC, + + /// + /// Specifies that rendering should bypass the rasterizer and use the outlines directly. + /// This is typically used at very large sizes. + /// + DWRITE_RENDERING_MODE1_OUTLINE = DWRITE_RENDERING_MODE_OUTLINE, + + /// + /// Similar to natural symmetric mode except that when possible, text should be rasterized + /// in a downsampled form. + /// + DWRITE_RENDERING_MODE1_NATURAL_SYMMETRIC_DOWNSAMPLED, +}; + + +/// +/// The interface that represents text rendering settings for glyph rasterization and filtering. +/// +interface DWRITE_DECLARE_INTERFACE("B7924BAA-391B-412A-8C5C-E44CC2D867DC") IDWriteRenderingParams3 : public IDWriteRenderingParams2 +{ + /// + /// Gets the rendering mode. + /// + STDMETHOD_(DWRITE_RENDERING_MODE1, GetRenderingMode1)() PURE; +}; + + +/// +/// The root factory interface for all DWrite objects. +/// +interface DWRITE_DECLARE_INTERFACE("9A1B41C3-D3BB-466A-87FC-FE67556A3B65") IDWriteFactory3 : public IDWriteFactory2 +{ + /// + /// Creates a glyph run analysis object, which encapsulates information + /// used to render a glyph run. + /// + /// Structure specifying the properties of the glyph run. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the emSize. + /// Specifies the rendering mode, which must be one of the raster rendering modes (i.e., not default + /// and not outline). + /// Specifies the method to measure glyphs. + /// How to grid-fit glyph outlines. This must be non-default. + /// Horizontal position of the baseline origin, in DIPs. + /// Vertical position of the baseline origin, in DIPs. + /// Receives a pointer to the newly created object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateGlyphRunAnalysis)( + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_opt_ DWRITE_MATRIX const* transform, + DWRITE_RENDERING_MODE1 renderingMode, + DWRITE_MEASURING_MODE measuringMode, + DWRITE_GRID_FIT_MODE gridFitMode, + DWRITE_TEXT_ANTIALIAS_MODE antialiasMode, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _COM_Outptr_ IDWriteGlyphRunAnalysis** glyphRunAnalysis + ) PURE; + + using IDWriteFactory::CreateGlyphRunAnalysis; + using IDWriteFactory2::CreateGlyphRunAnalysis; + + /// + /// Creates a rendering parameters object with the specified properties. + /// + /// The gamma value used for gamma correction, which must be greater than zero and cannot exceed 256. + /// The amount of contrast enhancement, zero or greater. + /// The amount of contrast enhancement to use for grayscale antialiasing, zero or greater. + /// The degree of ClearType level, from 0.0f (no ClearType) to 1.0f (full ClearType). + /// The geometry of a device pixel. + /// Method of rendering glyphs. In most cases, this should be DWRITE_RENDERING_MODE_DEFAULT to automatically use an appropriate mode. + /// How to grid fit glyph outlines. In most cases, this should be DWRITE_GRID_FIT_DEFAULT to automatically choose an appropriate mode. + /// Receives a pointer to the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateCustomRenderingParams)( + FLOAT gamma, + FLOAT enhancedContrast, + FLOAT grayscaleEnhancedContrast, + FLOAT clearTypeLevel, + DWRITE_PIXEL_GEOMETRY pixelGeometry, + DWRITE_RENDERING_MODE1 renderingMode, + DWRITE_GRID_FIT_MODE gridFitMode, + _COM_Outptr_ IDWriteRenderingParams3** renderingParams + ) PURE; + + using IDWriteFactory::CreateCustomRenderingParams; + using IDWriteFactory1::CreateCustomRenderingParams; + using IDWriteFactory2::CreateCustomRenderingParams; + + /// + /// Creates a reference to a font given a full path. + /// + /// Absolute file path. Subsequent operations on the constructed object may fail + /// if the user provided filePath doesn't correspond to a valid file on the disk. + /// Last modified time of the input file path. If the parameter is omitted, + /// the function will access the font file to obtain its last write time, so the clients are encouraged to specify this value + /// to avoid extra disk access. Subsequent operations on the constructed object may fail + /// if the user provided lastWriteTime doesn't match the file on the disk. + /// The zero based index of a font face in cases when the font files contain a collection of font faces. + /// If the font files contain a single face, this value should be zero. + /// Font face simulation flags for algorithmic emboldening and italicization. + /// Receives a pointer to the newly created font face reference object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFaceReference)( + _In_z_ WCHAR const* filePath, + _In_opt_ FILETIME const* lastWriteTime, + UINT32 faceIndex, + DWRITE_FONT_SIMULATIONS fontSimulations, + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; + + /// + /// Creates a reference to a font given a file. + /// + /// User provided font file representing the font face. + /// The zero based index of a font face in cases when the font files contain a collection of font faces. + /// If the font files contain a single face, this value should be zero. + /// Font face simulation flags for algorithmic emboldening and italicization. + /// Receives a pointer to the newly created font face reference object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFaceReference)( + _In_ IDWriteFontFile* fontFile, + UINT32 faceIndex, + DWRITE_FONT_SIMULATIONS fontSimulations, + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; + + /// + /// Retrieves the list of system fonts. + /// + /// Receives a pointer to the font set object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontSet)( + _COM_Outptr_ IDWriteFontSet** fontSet + ) PURE; + + /// + /// Creates an empty font set builder to add font face references + /// and create a custom font set. + /// + /// Receives a pointer to the newly created font set builder object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontSetBuilder)( + _COM_Outptr_ IDWriteFontSetBuilder** fontSetBuilder + ) PURE; + + /// + /// Create a weight-stretch-style based collection of families (DWRITE_FONT_FAMILY_MODEL_WEIGHT_STRETCH_STYLE) + /// from a set of fonts. + /// + /// A set of fonts to use to build the collection. + /// Receives a pointer to the newly created font collection object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontCollectionFromFontSet)( + IDWriteFontSet* fontSet, + _COM_Outptr_ IDWriteFontCollection1** fontCollection + ) PURE; + + /// + /// Retrieves a weight-stretch-style based collection of font families. + /// + /// Include downloadable fonts or only locally installed ones. + /// Receives a pointer to the newly created font collection object, or nullptr in + /// case of failure. + /// If this parameter is nonzero, the function performs an immediate check for changes + /// to the set of system fonts. If this parameter is FALSE, the function will still detect changes if the font + /// cache service is running, but there may be some latency. For example, an application might specify TRUE if + /// it has itself just installed a font and wants to be sure the font collection contains that font. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontCollection)( + BOOL includeDownloadableFonts, + _COM_Outptr_ IDWriteFontCollection1** fontCollection, + BOOL checkForUpdates = FALSE + ) PURE; + + using IDWriteFactory::GetSystemFontCollection; + + /// + /// Gets the font download queue associated with this factory object. + /// + /// Receives a pointer to the font download queue interface. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontDownloadQueue)( + _COM_Outptr_ IDWriteFontDownloadQueue** fontDownloadQueue + ) PURE; +}; + + +/// +/// Set of fonts used for creating font faces, selecting nearest matching fonts, and filtering. +/// Unlike IDWriteFontFamily and IDWriteFontList, which are part of the IDWriteFontCollection heirarchy, font sets +/// are unordered flat lists. +/// +interface DWRITE_DECLARE_INTERFACE("53585141-D9F8-4095-8321-D73CF6BD116B") IDWriteFontSet : public IUnknown +{ + /// + /// Get the number of total fonts in the set. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD_(UINT32, GetFontCount)() PURE; + + /// + /// Get a reference to the font at this index, which may be local or remote. + /// + /// Zero-based index of the font. + /// Receives a pointer the font face reference object, or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; + + /// + /// Gets the index of the matching font face reference in the font set, with the same file, face index, and simulations. + /// + /// Font face reference object that specifies the physical font. + /// Receives the zero-based index of the matching font if the font was found, or UINT_MAX otherwise. + /// Receives TRUE if the font exists or FALSE otherwise. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(FindFontFaceReference)( + IDWriteFontFaceReference* fontFaceReference, + _Out_ UINT32* listIndex, + _Out_ BOOL* exists + ) PURE; + + /// + /// Gets the index of the matching font face reference in the font set, with the same file, face index, and simulations. + /// + /// Font face object that specifies the physical font. + /// Receives the zero-based index of the matching font if the font was found, or UINT_MAX otherwise. + /// Receives TRUE if the font exists or FALSE otherwise. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(FindFontFace)( + IDWriteFontFace* fontFace, + _Out_ UINT32* listIndex, + _Out_ BOOL* exists + ) PURE; + + /// + /// Returns the property values of a specific font item index. + /// + /// Zero-based index of the font. + /// Font property of interest. + /// Receives the value TRUE if the font contains the specified property identifier or FALSE if not. + /// Receives a pointer to the newly created localized strings object, or nullptr on failure or non-existent property. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetPropertyValues)( + UINT32 listIndex, + DWRITE_FONT_PROPERTY_ID propertyId, + _Out_ BOOL* exists, + _COM_Outptr_result_maybenull_ IDWriteLocalizedStrings** values + ) PURE; + + /// + /// Returns all unique property values in the set, which can be used + /// for purposes such as displaying a family list or tag cloud. Values are + /// returned in priority order according to the language list, such that if + /// a font contains more than one localized name, the preferred one will be + /// returned. + /// + /// Font property of interest. + /// List of semicolon delimited language names in preferred + /// order. When a particular string like font family has more than one localized name, + /// the first match is returned. + /// Receives a pointer to the newly created strings list. + /// + /// Standard HRESULT error code. + /// + /// + /// For example, suppose the font set includes the Meiryo family, which has both Japanese and English family names. + /// The returned list of distinct family names would include either the Japanese name (if "ja-jp" was specified as + /// a preferred locale) or the English name (in all other cases). + /// + STDMETHOD(GetPropertyValues)( + DWRITE_FONT_PROPERTY_ID propertyID, + _In_z_ WCHAR const* preferredLocaleNames, + _COM_Outptr_ IDWriteStringList** values + ) PURE; + + /// + /// Returns all unique property values in the set, which can be used + /// for purposes such as displaying a family list or tag cloud. All values + /// are returned regardless of language, including all localized names. + /// + /// Font property of interest. + /// Receives a pointer to the newly created strings list. + /// + /// Standard HRESULT error code. + /// + /// + /// For example, suppose the font set includes the Meiryo family, which has both Japanese and English family names. + /// The returned list of distinct family names would include both the Japanese and English names. + /// + STDMETHOD(GetPropertyValues)( + DWRITE_FONT_PROPERTY_ID propertyID, + _COM_Outptr_ IDWriteStringList** values + ) PURE; + + /// + /// Returns how many times a given property value occurs in the set. + /// + /// Font property of interest. + /// How many times that property occurs. + /// + /// Standard HRESULT error code. + /// + /// + /// For example, the family name "Segoe UI" may return a count of 12, + /// whereas Harrington only has 1. + /// + STDMETHOD(GetPropertyOccurrenceCount)( + _In_ DWRITE_FONT_PROPERTY const* property, + _Out_ UINT32* propertyOccurrenceCount + ) PURE; + + /// + /// Returns a subset of fonts filtered by the given properties. + /// + /// List of properties to filter using. + /// How many properties to filter. + /// Subset of fonts that match the properties, + /// or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// If no fonts matched the filter, the subset will be empty (GetFontCount + /// returns 0), but the function does not return an error. The subset will + /// always be equal to or less than the original set. + /// + STDMETHOD(GetMatchingFonts)( + _In_reads_(propertyCount) DWRITE_FONT_PROPERTY const* properties, + UINT32 propertyCount, + _COM_Outptr_ IDWriteFontSet** filteredSet + ) PURE; + + /// + /// Returns a list of fonts within the given WWS family prioritized by + /// WWS distance. + /// + /// Neutral or localized family name of font. + /// Weight of font. + /// Stretch of font. + /// Slope of font. + /// Subset of fonts that match the properties, + /// or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// The returned list can include simulated bold and oblique variants, + /// which would be useful for font fallback selection. + /// + STDMETHOD(GetMatchingFonts)( + _In_z_ WCHAR const* familyName, + DWRITE_FONT_WEIGHT fontWeight, + DWRITE_FONT_STRETCH fontStretch, + DWRITE_FONT_STYLE fontStyle, + _COM_Outptr_ IDWriteFontSet** filteredSet + ) PURE; +}; + + +/// +/// Builder interface to add font face references and create a font set. +/// +interface DWRITE_DECLARE_INTERFACE("2F642AFE-9C68-4F40-B8BE-457401AFCB3D") IDWriteFontSetBuilder : public IUnknown +{ + /// + /// Adds a reference to a font to the set being built. The necessary + /// metadata will automatically be extracted from the font upon calling + /// CreateFontSet. + /// + /// Font face reference object to add to the set. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontFaceReference)( + _In_ IDWriteFontFaceReference* fontFaceReference + ) PURE; + + /// + /// Adds a reference to a font to the set being built. The caller + /// supplies enough information to search on, avoiding the need to open + /// the potentially non-local font. Any properties not supplied by the + /// caller will be missing, and those properties will not be available as + /// filters in GetMatchingFonts. GetPropertyValues for missing properties + /// will return an empty string list. The properties passed should generally + /// be consistent with the actual font contents, but they need not be. You + /// could, for example, alias a font using a different name or unique + /// identifier, or you could set custom tags not present in the actual + /// font. + /// + /// Reference to the font. + /// List of properties to associate with the reference. + /// How many properties are defined. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontFaceReference)( + _In_ IDWriteFontFaceReference* fontFaceReference, + _In_reads_(propertyCount) DWRITE_FONT_PROPERTY const* properties, + UINT32 propertyCount + ) PURE; + + /// + /// Appends an existing font set to the one being built, allowing + /// one to aggregate two sets or to essentially extend an existing one. + /// + /// Font set to append font face references from. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontSet)( + _In_ IDWriteFontSet* fontSet + ) PURE; + + /// + /// Creates a font set from all the font face references added so + /// far via AddFontFaceReference. + /// + /// Receives a pointer to the newly created font set object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// Creating a font set takes less time if the references were added + /// with metadata rather than needing to extract the metadata from the + /// font file. + /// + STDMETHOD(CreateFontSet)( + _COM_Outptr_ IDWriteFontSet** fontSet + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("53585141-D9F8-4095-8321-D73CF6BD116C") IDWriteFontCollection1 : public IDWriteFontCollection +{ + /// + /// Get the underlying font set used by this collection. + /// + /// Contains font set used by the collection. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSet)( + _COM_Outptr_ IDWriteFontSet** fontSet + ) PURE; + + /// + /// Creates a font family object given a zero-based font family index. + /// + /// Zero-based index of the font family. + /// Receives a pointer the newly created font family object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamily)( + UINT32 index, + _COM_Outptr_ IDWriteFontFamily1** fontFamily + ) PURE; + + using IDWriteFontCollection::GetFontFamily; +}; + + +/// +/// The IDWriteFontFamily interface represents a set of fonts that share the same design but are differentiated +/// by weight, stretch, and style. +/// +interface DWRITE_DECLARE_INTERFACE("DA20D8EF-812A-4C43-9802-62EC4ABD7ADF") IDWriteFontFamily1 : public IDWriteFontFamily +{ + /// + /// Gets the current locality of a font given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// + /// The locality enumeration. For fully local files, the result will always + /// be DWRITE_LOCALITY_LOCAL. For downloadable files, the result depends on how + /// much of the file has been downloaded, and GetFont() fails if the locality + /// is REMOTE and potentially fails if PARTIAL. The application can explicitly + /// ask for the font to be enqueued for download via EnqueueFontDownloadRequest + /// followed by BeginDownload(). + /// + /// + /// The locality enumeration. + /// + STDMETHOD_(DWRITE_LOCALITY, GetFontLocality)(UINT32 listIndex) PURE; + + /// + /// Gets a font given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// Receives a pointer to the newly created font object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFont)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFont3** font + ) PURE; + + using IDWriteFontFamily::GetFont; + + /// + /// Gets a font face reference given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// Receives a pointer to the newly created font face reference object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; +}; + + +/// +/// The IDWriteFontList interface represents a list of fonts. +/// +interface DWRITE_DECLARE_INTERFACE("DA20D8EF-812A-4C43-9802-62EC4ABD7ADE") IDWriteFontList1 : public IDWriteFontList +{ + /// + /// Gets the current locality of a font given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// + /// The locality enumeration. For fully local files, the result will always + /// be DWRITE_LOCALITY_LOCAL. For downloadable files, the result depends on how + /// much of the file has been downloaded, and GetFont() fails if the locality + /// is REMOTE and potentially fails if PARTIAL. The application can explicitly + /// ask for the font to be enqueued for download via EnqueueFontDownloadRequest + /// followed by BeginDownload(). + /// + /// + /// The locality enumeration. + /// + STDMETHOD_(DWRITE_LOCALITY, GetFontLocality)(UINT32 listIndex) PURE; + + /// + /// Gets a font given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// Receives a pointer to the newly created font object. + /// + /// Standard HRESULT error code. The function returns DWRITE_E_REMOTEFONT if it could not construct a remote font. + /// + STDMETHOD(GetFont)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFont3** font + ) PURE; + + using IDWriteFontList::GetFont; + + /// + /// Gets a font face reference given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// Receives a pointer to the newly created font face reference object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; +}; + + +/// +/// A uniquely identifying reference to a font, from which you can create a font +/// face to query font metrics and use for rendering. A font face reference +/// consists of a font file, font face index, and font face simulation. The file +/// data may or may not be physically present on the local machine yet. +/// +interface DWRITE_DECLARE_INTERFACE("5E7FA7CA-DDE3-424C-89F0-9FCD6FED58CD") IDWriteFontFaceReference : public IUnknown +{ + /// + /// Creates a font face from the reference for use with layout, + /// shaping, or rendering. + /// + /// Newly created font face object, or nullptr in the case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// This function can fail with DWRITE_E_REMOTEFONT if the font is not local. + /// + STDMETHOD(CreateFontFace)( + _COM_Outptr_ IDWriteFontFace3** fontFace + ) PURE; + + /// + /// Creates a font face with alternate font simulations, for example, to + /// explicitly simulate a bold font face out of a regular variant. + /// + /// Font face simulation flags for algorithmic emboldening and italicization. + /// Newly created font face object, or nullptr in the case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// This function can fail with DWRITE_E_REMOTEFONT if the font is not local. + /// + STDMETHOD(CreateFontFaceWithSimulations)( + DWRITE_FONT_SIMULATIONS fontFaceSimulationFlags, + _COM_Outptr_ IDWriteFontFace3** fontFace + ) PURE; + + /// + /// Compares two instances of a font face references for equality. + /// + STDMETHOD_(BOOL, Equals)(IDWriteFontFaceReference* fontFaceReference) PURE; + + /// + /// Obtains the zero-based index of the font face in its font file. If the font files contain a single face, + /// the return value is zero. + /// + STDMETHOD_(UINT32, GetFontFaceIndex)() PURE; + + /// + /// Obtains the algorithmic style simulation flags of a font face. + /// + STDMETHOD_(DWRITE_FONT_SIMULATIONS, GetSimulations)() PURE; + + /// + /// Obtains the font file representing a font face. + /// + STDMETHOD(GetFontFile)( + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; + + /// + /// Get the local size of the font face in bytes. + /// + /// + /// The value returned by GetLocalFileSize will always be less than or + /// equal to the value returned by GetFullSize. If the locality is remote, + /// the GetLocalFileSize value is zero. If the locality is local, this + /// value will equal the value returned by GetFileSize. If the locality is + /// partial, this value will equal the size of the portions of the font + /// data that have been downloaded, which will be greater than zero and + /// less than or equal to the GetFileSize value. + /// + STDMETHOD_(UINT64, GetLocalFileSize)() PURE; + + /// + /// Get the total size of the font face in bytes. + /// + /// + /// If the locality is remote, this value is unknown and will be zero. + /// If the locality is partial or local, the value is the full size of + /// the font face. + /// + STDMETHOD_(UINT64, GetFileSize)() PURE; + + /// + /// Get the last modified date. + /// + /// + /// The time may be zero if the font file loader does not expose file time. + /// + STDMETHOD(GetFileTime)(_Out_ FILETIME* lastWriteTime) PURE; + + /// + /// Get the locality of this font face reference. You can always successfully + /// create a font face from a fully local font. Attempting to create a font + /// face on a remote or partially local font may fail with DWRITE_E_REMOTEFONT. + /// This function may change between calls depending on background downloads + /// and whether cached data expires. + /// + STDMETHOD_(DWRITE_LOCALITY, GetLocality)() PURE; + + /// + /// Adds a request to the font download queue (IDWriteFontDownloadQueue). + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(EnqueueFontDownloadRequest)() PURE; + + /// + /// Adds a request to the font download queue (IDWriteFontDownloadQueue). + /// + /// Array of characters to download. + /// The number of elements in the character array. + /// + /// Standard HRESULT error code. + /// + /// + /// Downloading a character involves downloading every glyph it depends on + /// directly or indirectly, via font tables (cmap, GSUB, COLR, glyf). + /// + STDMETHOD(EnqueueCharacterDownloadRequest)( + _In_reads_(characterCount) WCHAR const* characters, + UINT32 characterCount + ) PURE; + + /// + /// Adds a request to the font download queue (IDWriteFontDownloadQueue). + /// + /// Array of glyph indices to download. + /// The number of elements in the glyph index array. + /// + /// Standard HRESULT error code. + /// + /// + /// Downloading a glyph involves downloading any other glyphs it depends on + /// from the font tables (GSUB, COLR, glyf). + /// + STDMETHOD(EnqueueGlyphDownloadRequest)( + _In_reads_(glyphCount) UINT16 const* glyphIndices, + UINT32 glyphCount + ) PURE; + + /// + /// Adds a request to the font download queue (IDWriteFontDownloadQueue). + /// + /// Offset of the fragment from the beginning of the font file. + /// Size of the fragment in bytes. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(EnqueueFileFragmentDownloadRequest)( + UINT64 fileOffset, + UINT64 fragmentSize + ) PURE; +}; + + +/// +/// The IDWriteFont interface represents a font in a font collection. +/// +interface DWRITE_DECLARE_INTERFACE("29748ED6-8C9C-4A6A-BE0B-D912E8538944") IDWriteFont3 : public IDWriteFont2 +{ + /// + /// Creates a font face object for the font. + /// + /// Receives a pointer to the newly created font face object. + /// + /// Standard HRESULT error code. The function returns DWRITE_E_REMOTEFONT if it could not construct a remote font. + /// + STDMETHOD(CreateFontFace)( + _COM_Outptr_ IDWriteFontFace3** fontFace + ) PURE; + + using IDWriteFont::CreateFontFace; + + /// + /// Compares two instances of a font references for equality. + /// + STDMETHOD_(BOOL, Equals)(IDWriteFont* font) PURE; + + /// + /// Return a font face reference identifying this font. + /// + /// A uniquely identifying reference to a font face. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; + + /// + /// Determines whether the font supports the specified character. + /// + /// Unicode (UCS-4) character value. + /// + /// Returns TRUE if the font has the specified character, FALSE if not. + /// + STDMETHOD_(BOOL, HasCharacter)( + UINT32 unicodeValue + ) PURE; + + using IDWriteFont::HasCharacter; + + /// + /// Gets the current locality of the font. + /// + /// + /// The locality enumeration. For fully local files, the result will always + /// be DWRITE_LOCALITY_LOCAL. A downloadable file may be any of the states, + /// and this function may change between calls. + /// + /// + /// The locality enumeration. + /// + STDMETHOD_(DWRITE_LOCALITY, GetLocality)() PURE; +}; + + +/// +/// The interface that represents an absolute reference to a font face. +/// It contains font face type, appropriate file references and face identification data. +/// Various font data such as metrics, names and glyph outlines is obtained from IDWriteFontFace. +/// +interface DWRITE_DECLARE_INTERFACE("D37D7598-09BE-4222-A236-2081341CC1F2") IDWriteFontFace3 : public IDWriteFontFace2 +{ + /// + /// Return a font face reference identifying this font. + /// + /// A uniquely identifying reference to a font face. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; + + /// + /// Gets the PANOSE values from the font, used for font selection and + /// matching. + /// + /// PANOSE structure to fill in. + /// + /// The function does not simulate these, such as substituting a weight or + /// proportion inferred on other values. If the font does not specify them, + /// they are all set to 'any' (0). + /// + STDMETHOD_(void, GetPanose)( + _Out_ DWRITE_PANOSE* panose + ) PURE; + + /// + /// Gets the weight of the specified font. + /// + STDMETHOD_(DWRITE_FONT_WEIGHT, GetWeight)() PURE; + + /// + /// Gets the stretch (aka. width) of the specified font. + /// + STDMETHOD_(DWRITE_FONT_STRETCH, GetStretch)() PURE; + + /// + /// Gets the style (aka. slope) of the specified font. + /// + STDMETHOD_(DWRITE_FONT_STYLE, GetStyle)() PURE; + + /// + /// Creates an localized strings object that contains the weight-stretch-style family names for the font family, indexed by locale name. + /// + /// Receives a pointer to the newly created localized strings object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFamilyNames)( + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Gets a localized strings collection containing the weight-stretch-style face names for the font (e.g., Regular or Bold), indexed by locale name. + /// + /// Receives a pointer to the newly created localized strings object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFaceNames)( + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Gets a localized strings collection containing the specified informational strings, indexed by locale name. + /// + /// Identifies the string to get. + /// Receives a pointer to the newly created localized strings object. + /// Receives the value TRUE if the font contains the specified string ID or FALSE if not. + /// + /// Standard HRESULT error code. If the font does not contain the specified string, the return value is S_OK but + /// informationalStrings receives a NULL pointer and exists receives the value FALSE. + /// + STDMETHOD(GetInformationalStrings)( + DWRITE_INFORMATIONAL_STRING_ID informationalStringID, + _COM_Outptr_result_maybenull_ IDWriteLocalizedStrings** informationalStrings, + _Out_ BOOL* exists + ) PURE; + + /// + /// Determines whether the font supports the specified character. + /// + /// Unicode (UCS-4) character value. + /// + /// Returns TRUE if the font has the specified character, FALSE if not. + /// + STDMETHOD_(BOOL, HasCharacter)( + UINT32 unicodeValue + ) PURE; + + /// + /// Determines the recommended text rendering and grid-fit mode to be used based on the + /// font, size, world transform, and measuring mode. + /// + /// Logical font size in DIPs. + /// Number of pixels per logical inch in the horizontal direction. + /// Number of pixels per logical inch in the vertical direction. + /// Specifies the world transform. + /// Specifies the quality of the graphics system's outline rendering, + /// affects the size threshold above which outline rendering is used. + /// Specifies the method used to measure during text layout. For proper + /// glyph spacing, the function returns a rendering mode that is compatible with the specified + /// measuring mode. + /// Rendering parameters object. This parameter is necessary in case the rendering parameters + /// object overrides the rendering mode. + /// Receives the recommended rendering mode. + /// Receives the recommended grid-fit mode. + /// + /// This method should be used to determine the actual rendering mode in cases where the rendering + /// mode of the rendering params object is DWRITE_RENDERING_MODE_DEFAULT, and the actual grid-fit + /// mode when the rendering params object is DWRITE_GRID_FIT_MODE_DEFAULT. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetRecommendedRenderingMode)( + FLOAT fontEmSize, + FLOAT dpiX, + FLOAT dpiY, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL isSideways, + DWRITE_OUTLINE_THRESHOLD outlineThreshold, + DWRITE_MEASURING_MODE measuringMode, + _In_opt_ IDWriteRenderingParams* renderingParams, + _Out_ DWRITE_RENDERING_MODE1* renderingMode, + _Out_ DWRITE_GRID_FIT_MODE* gridFitMode + ) PURE; + + using IDWriteFontFace2::GetRecommendedRenderingMode; + + /// + /// Determines whether the character is locally downloaded from the font. + /// + /// Unicode (UCS-4) character value. + /// + /// Returns TRUE if the font has the specified character locally available, + /// FALSE if not or if the font does not support that character. + /// + STDMETHOD_(BOOL, IsCharacterLocal)( + UINT32 unicodeValue + ) PURE; + + /// + /// Determines whether the glyph is locally downloaded from the font. + /// + /// Glyph identifier. + /// + /// Returns TRUE if the font has the specified glyph locally available. + /// + STDMETHOD_(BOOL, IsGlyphLocal)( + UINT16 glyphId + ) PURE; + + /// + /// Determines whether the specified characters are local. + /// + /// Array of characters. + /// The number of elements in the character array. + /// Specifies whether to enqueue a download request + /// if any of the specified characters are not local. + /// Receives TRUE if all of the specified characters are local, + /// FALSE if any of the specified characters are remote. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AreCharactersLocal)( + _In_reads_(characterCount) WCHAR const* characters, + UINT32 characterCount, + BOOL enqueueIfNotLocal, + _Out_ BOOL* isLocal + ) PURE; + + /// + /// Determines whether the specified glyphs are local. + /// + /// Array of glyph indices. + /// The number of elements in the glyph index array. + /// Specifies whether to enqueue a download request + /// if any of the specified glyphs are not local. + /// Receives TRUE if all of the specified glyphs are local, + /// FALSE if any of the specified glyphs are remote. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AreGlyphsLocal)( + _In_reads_(glyphCount) UINT16 const* glyphIndices, + UINT32 glyphCount, + BOOL enqueueIfNotLocal, + _Out_ BOOL* isLocal + ) PURE; +}; + + +/// +/// Represents a collection of strings indexed by number. +/// An IDWriteStringList is otherwise identical to IDWriteLocalizedStrings except +/// for the semantics, where localized strings are indexed on language (each +/// language has one string property) whereas a string list may contain multiple +/// strings of the same language, such as a string list of family names from a +/// font set. You can QueryInterface from an IDWriteLocalizedStrings to an +/// IDWriteStringList. +/// +interface DWRITE_DECLARE_INTERFACE("CFEE3140-1157-47CA-8B85-31BFCF3F2D0E") IDWriteStringList : public IUnknown +{ + /// + /// Gets the number of strings. + /// + STDMETHOD_(UINT32, GetCount)() PURE; + + /// + /// Gets the length in characters (not including the null terminator) of the locale name with the specified index. + /// + /// Zero-based index of the locale name. + /// Receives the length in characters, not including the null terminator. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleNameLength)( + UINT32 listIndex, + _Out_ UINT32* length + ) PURE; + + /// + /// Copies the locale name with the specified index to the specified array. + /// + /// Zero-based index of the locale name. + /// Character array that receives the locale name. + /// Size of the array in characters. The size must include space for the terminating + /// null character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleName)( + UINT32 listIndex, + _Out_writes_z_(size) WCHAR* localeName, + UINT32 size + ) PURE; + + /// + /// Gets the length in characters (not including the null terminator) of the string with the specified index. + /// + /// Zero-based index of the string. + /// Receives the length in characters, not including the null terminator. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetStringLength)( + UINT32 listIndex, + _Out_ UINT32* length + ) PURE; + + /// + /// Copies the string with the specified index to the specified array. + /// + /// Zero-based index of the string. + /// Character array that receives the string. + /// Size of the array in characters. The size must include space for the terminating + /// null character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetString)( + UINT32 listIndex, + _Out_writes_z_(stringBufferSize) WCHAR* stringBuffer, + UINT32 stringBufferSize + ) PURE; +}; + + +/// +/// Application-defined callback interface that receives notifications from the font +/// download queue (IDWriteFontDownloadQueue interface). Callbacks will occur on the +/// downloading thread, and objects must be prepared to handle calls on their methods +/// from other threads at any time. +/// +interface DWRITE_DECLARE_INTERFACE("B06FE5B9-43EC-4393-881B-DBE4DC72FDA7") IDWriteFontDownloadListener : public IUnknown +{ + /// + /// The DownloadCompleted method is called back on an arbitrary thread when a + /// download operation ends. + /// + /// Pointer to the download queue interface on which + /// the BeginDownload method was called. + /// Optional context object that was passed to BeginDownload. + /// AddRef is called on the context object by BeginDownload and Release is called + /// after the DownloadCompleted method returns. + /// Result of the download operation. + STDMETHOD_(void, DownloadCompleted)( + _In_ IDWriteFontDownloadQueue* downloadQueue, + _In_opt_ IUnknown* context, + HRESULT downloadResult + ) PURE; +}; + + +/// +/// Interface that enqueues download requests for remote fonts, characters, glyphs, and font fragments. +/// Provides methods to asynchronously execute a download, cancel pending downloads, and be notified of +/// download completion. Callbacks to listeners will occur on the downloading thread, and objects must +/// be must be able to handle calls on their methods from other threads at any time. +/// +interface DWRITE_DECLARE_INTERFACE("B71E6052-5AEA-4FA3-832E-F60D431F7E91") IDWriteFontDownloadQueue : public IUnknown +{ + /// + /// Registers a client-defined listener object that receives download notifications. + /// All registered listener's DownloadCompleted will be called after BeginDownload + /// completes. + /// + /// Listener object to add. + /// Receives a token value, which the caller must subsequently + /// pass to RemoveListener. + /// + /// Standard HRESULT error code. + /// + /// + /// An IDWriteFontDownloadListener can also be passed to BeginDownload via the + /// context parameter, rather than globally registered to the queue. + /// + STDMETHOD(AddListener)( + IDWriteFontDownloadListener* listener, + _Out_ UINT32* token + ) PURE; + + /// + /// Unregisters a notification handler that was previously registered using + /// AddListener. + /// + /// Token value previously returned by AddListener. + /// + /// Returns S_OK if successful or E_INVALIDARG if the specified token does not + /// correspond to a registered listener. + /// + STDMETHOD(RemoveListener)( + UINT32 token + ) PURE; + + /// + /// Determines whether the download queue is empty. Note that the queue does not + /// include requests that are already being downloaded. In other words, BeginDownload + /// clears the queue. + /// + /// + /// TRUE if the queue is empty, FALSE if there are requests pending for BeginDownload. + /// + STDMETHOD_(BOOL, IsEmpty)() PURE; + + /// + /// Begins an asynchronous download operation. The download operation executes + /// in the background until it completes or is cancelled by a CancelDownload call. + /// + /// Optional context object that is passed back to the + /// download notification handler's DownloadCompleted method. If the context object + /// implements IDWriteFontDownloadListener, its DownloadCompleted will be called + /// when done. + /// + /// Returns S_OK if a download was successfully begun, S_FALSE if the queue was + /// empty, or a standard HRESULT error code. + /// + /// + /// BeginDownload removes all download requests from the queue, transferring them + /// to a background download operation. If any previous downloads are still ongoing + /// when BeginDownload is called again, the new download does not complete until + /// the previous downloads have finished. If the queue is empty and no active + /// downloads are pending, the DownloadCompleted callback is called immediately with + /// DWRITE_DOWNLOAD_RESULT_NONE. + /// + STDMETHOD(BeginDownload)( + _In_opt_ IUnknown* context = nullptr + ) PURE; + + /// + /// Removes all download requests from the queue and cancels any active download + /// operations. This calls DownloadCompleted with DWRITE_E_DOWNLOADCANCELLED. + /// Applications should call this when shutting down if they started any + /// downloads that have not finished yet with a call to DownloadCompleted. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CancelDownload)() PURE; + + /// + /// Get the current generation number of the download queue, which is incremented + /// every time after a download completes, whether failed or successful. This cookie + /// comparison value may be used to compared against cached data to know when it is + /// stale. + /// + /// + /// The number of download queue generations. + /// + STDMETHOD_(UINT64, GetGenerationCount)() PURE; +}; + + +/// +/// The GDI interop interface provides interoperability with GDI. +/// +interface DWRITE_DECLARE_INTERFACE("4556BE70-3ABD-4F70-90BE-421780A6F515") IDWriteGdiInterop1 : public IDWriteGdiInterop +{ + /// + /// Creates a font object that matches the properties specified by the LOGFONT structure. + /// + /// Structure containing a GDI-compatible font description. + /// The font collection to search. If NULL, the local system font collection is used. + /// Receives a newly created font object if successful, or NULL in case of error. + /// + /// Standard HRESULT error code. + /// + /// + /// The only fields that matter include: lfFaceName, lfCharSet, lfWeight, lfItalic. + /// Font size and rendering mode are a rendering time property, not a font property, + /// and text decorations like underline are drawn separately from the text. If no + /// font matches the given weight, slope, and character set, the best match within + /// the given GDI family name will be returned. DWRITE_E_NOFONT is returned if there + /// is no matching font name using either the GDI family name (e.g. Arial) or the + /// full font name (e.g. Arial Bold Italic). + /// + STDMETHOD(CreateFontFromLOGFONT)( + _In_ LOGFONTW const* logFont, + _In_opt_ IDWriteFontCollection* fontCollection, + _COM_Outptr_ IDWriteFont** font + ) PURE; + + /// + /// Reads the font signature from the given font. + /// + /// Font to read font signature from. + /// Font signature from the OS/2 table, ulUnicodeRange and ulCodePageRange. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSignature)( + _In_ IDWriteFont* font, + _Out_ FONTSIGNATURE* fontSignature + ) PURE; + + /// + /// Reads the font signature from the given font. + /// + /// Font to read font signature from. + /// Font signature from the OS/2 table, ulUnicodeRange and ulCodePageRange. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSignature)( + _In_ IDWriteFontFace* fontFace, + _Out_ FONTSIGNATURE* fontSignature + ) PURE; + + /// + /// Get a list of matching fonts based on the LOGFONT values. Only fonts + /// of that family name will be returned. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetMatchingFontsByLOGFONT)( + _In_ LOGFONT const* logFont, + _In_ IDWriteFontSet* fontSet, + _COM_Outptr_ IDWriteFontSet** filteredSet + ) PURE; + + using IDWriteGdiInterop::CreateFontFromLOGFONT; +}; + +/// +/// Information about a formatted line of text. +/// +struct DWRITE_LINE_METRICS1 : DWRITE_LINE_METRICS +{ + /// + /// White space before the content of the line. This is included in the line height and baseline distances. + /// If the line is formatted horizontally either with a uniform line spacing or with proportional + /// line spacing, this value represents the extra space above the content. + /// + FLOAT leadingBefore; + + /// + /// White space after the content of the line. This is included in the height of the line. + /// If the line is formatted horizontally either with a uniform line spacing or with proportional + /// line spacing, this value represents the extra space below the content. + /// + FLOAT leadingAfter; +}; + +/// +/// Specify whether DWRITE_FONT_METRICS::lineGap value should be part of the line metrics. +/// +enum DWRITE_FONT_LINE_GAP_USAGE +{ + /// + /// The usage of the font line gap depends on the method used for text layout. + /// + DWRITE_FONT_LINE_GAP_USAGE_DEFAULT, + + /// + /// The font line gap is excluded from line spacing + /// + DWRITE_FONT_LINE_GAP_USAGE_DISABLED, + + /// + /// The font line gap is included in line spacing + /// + DWRITE_FONT_LINE_GAP_USAGE_ENABLED +}; + +/// +/// The DWRITE_LINE_SPACING structure specifies the parameters used to specify how to manage space between lines. +/// +struct DWRITE_LINE_SPACING +{ + /// + /// Method used to determine line spacing. + /// + DWRITE_LINE_SPACING_METHOD method; + + /// + /// Spacing between lines. + /// The interpretation of this parameter depends upon the line spacing method, as follows: + /// - default line spacing: ignored + /// - uniform line spacing: explicit distance in DIPs between lines + /// - proportional line spacing: a scaling factor to be applied to the computed line height; + /// for each line, the height of the line is computed as for default line spacing, and the scaling factor is applied to that value. + /// + FLOAT height; + + /// + /// Distance from top of line to baseline. + /// The interpretation of this parameter depends upon the line spacing method, as follows: + /// - default line spacing: ignored + /// - uniform line spacing: explicit distance in DIPs from the top of the line to the baseline + /// - proportional line spacing: a scaling factor applied to the computed baseline; for each line, + /// the baseline distance is computed as for default line spacing, and the scaling factor is applied to that value. + /// + FLOAT baseline; + + /// + /// Proportion of the entire leading distributed before the line. The allowed value is between 0 and 1.0. The remaining + /// leading is distributed after the line. It is ignored for the default and uniform line spacing methods. + /// The leading that is available to distribute before or after the line depends on the values of the height and + /// baseline parameters. + /// + FLOAT leadingBefore; + + /// + /// Specify whether DWRITE_FONT_METRICS::lineGap value should be part of the line metrics. + /// + DWRITE_FONT_LINE_GAP_USAGE fontLineGapUsage; +}; + +interface DWRITE_DECLARE_INTERFACE("F67E0EDD-9E3D-4ECC-8C32-4183253DFE70") IDWriteTextFormat2 : public IDWriteTextFormat1 +{ + /// + /// Set line spacing. + /// + /// How to manage space between lines. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLineSpacing)(_In_ DWRITE_LINE_SPACING const* lineSpacingOptions) PURE; + + /// + /// Get line spacing. + /// + /// How to manage space between lines. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLineSpacing)(_Out_ DWRITE_LINE_SPACING* lineSpacingOptions) PURE; + + using IDWriteTextFormat1::SetLineSpacing; + using IDWriteTextFormat1::GetLineSpacing; +}; + +interface DWRITE_DECLARE_INTERFACE("07DDCD52-020E-4DE8-AC33-6C953D83F92D") IDWriteTextLayout3 : public IDWriteTextLayout2 +{ + /// + /// Invalidates the layout, forcing layout to remeasure before calling the + /// metrics or drawing functions. This is useful if the locality of a font + /// changes, and layout should be redrawn, or if the size of a client + /// implemented IDWriteInlineObject changes. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(InvalidateLayout)() PURE; + + /// + /// Set line spacing. + /// + /// How to manage space between lines. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLineSpacing)(_In_ DWRITE_LINE_SPACING const* lineSpacingOptions) PURE; + + /// + /// Get line spacing. + /// + /// How to manage space between lines. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLineSpacing)(_Out_ DWRITE_LINE_SPACING* lineSpacingOptions) PURE; + + /// + /// GetLineMetrics returns properties of each line. + /// + /// The array to fill with line information. + /// The maximum size of the lineMetrics array. + /// The actual size of the lineMetrics + /// array that is needed. + /// + /// Standard HRESULT error code. + /// + /// + /// If maxLineCount is not large enough E_NOT_SUFFICIENT_BUFFER, + /// which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), + /// is returned and *actualLineCount is set to the number of lines + /// needed. + /// + STDMETHOD(GetLineMetrics)( + _Out_writes_to_opt_(maxLineCount, *actualLineCount) DWRITE_LINE_METRICS1* lineMetrics, + UINT32 maxLineCount, + _Out_ UINT32* actualLineCount + ) PURE; + + using IDWriteTextLayout2::SetLineSpacing; + using IDWriteTextLayout2::GetLineSpacing; + using IDWriteTextLayout2::GetLineMetrics; +}; + + +//////////////////////////////////////////////////////////////////////////////////////////////////// + + +#if NTDDI_VERSION >= NTDDI_WIN10_RS1 + + +/// +/// Represents a color glyph run. The IDWriteFactory4::TranslateColorGlyphRun +/// method returns an ordered collection of color glyph runs of varying types +/// depending on what the font supports. +/// +/// +/// For runs without any specific color, such as PNG data, the runColor field will be zero. +/// +struct DWRITE_COLOR_GLYPH_RUN1 : DWRITE_COLOR_GLYPH_RUN +{ + /// + /// Type of glyph image format for this color run. Exactly one type will be set since + /// TranslateColorGlyphRun has already broken down the run into separate parts. + /// + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat; + + /// + /// Measuring mode to use for this glyph run. + /// + DWRITE_MEASURING_MODE measuringMode; +}; + + +/// +/// Data for a single glyph from GetGlyphImageData. +/// +struct DWRITE_GLYPH_IMAGE_DATA +{ + /// + /// Pointer to the glyph data, be it SVG, PNG, JPEG, TIFF. + /// + _Field_size_bytes_(imageDataSize) void const* imageData; + + /// + /// Size of glyph data in bytes. + /// + UINT32 imageDataSize; + + /// + /// Unique identifier for the glyph data. Clients may use this to cache a parsed/decompressed + /// version and tell whether a repeated call to the same font returns the same data. + /// + UINT32 uniqueDataId; + + /// + /// Pixels per em of the returned data. For non-scalable raster data (PNG/TIFF/JPG), this can be larger + /// or smaller than requested from GetGlyphImageData when there isn't an exact match. + /// For scaling intermediate sizes, use: desired pixels per em * font em size / actual pixels per em. + /// + UINT32 pixelsPerEm; + + /// + /// Size of image when the format is pixel data. + /// + D2D1_SIZE_U pixelSize; + + /// + /// Left origin along the horizontal Roman baseline. + /// + D2D1_POINT_2L horizontalLeftOrigin; + + /// + /// Right origin along the horizontal Roman baseline. + /// + D2D1_POINT_2L horizontalRightOrigin; + + /// + /// Top origin along the vertical central baseline. + /// + D2D1_POINT_2L verticalTopOrigin; + + /// + /// Bottom origin along vertical central baseline. + /// + D2D1_POINT_2L verticalBottomOrigin; +}; + + +/// +/// Enumerator for an ordered collection of color glyph runs. +/// +interface DWRITE_DECLARE_INTERFACE("7C5F86DA-C7A1-4F05-B8E1-55A179FE5A35") IDWriteColorGlyphRunEnumerator1 : public IDWriteColorGlyphRunEnumerator +{ + /// + /// Gets the current color glyph run. + /// + /// Receives a pointer to the color + /// glyph run. The pointer remains valid until the next call to + /// MoveNext or until the interface is released. + /// + /// Standard HRESULT error code. An error is returned if there is + /// no current glyph run, i.e., if MoveNext has not yet been called + /// or if the end of the sequence has been reached. + /// + STDMETHOD(GetCurrentRun)( + _Outptr_ DWRITE_COLOR_GLYPH_RUN1 const** colorGlyphRun + ) PURE; + + using IDWriteColorGlyphRunEnumerator::GetCurrentRun; +}; + + +/// +/// The interface that represents an absolute reference to a font face. +/// It contains font face type, appropriate file references and face identification data. +/// Various font data such as metrics, names and glyph outlines is obtained from IDWriteFontFace. +/// +interface DWRITE_DECLARE_INTERFACE("27F2A904-4EB8-441D-9678-0563F53E3E2F") IDWriteFontFace4 : public IDWriteFontFace3 +{ + /// + /// Gets all the glyph image formats supported by the entire font (SVG, PNG, JPEG, ...). + /// + STDMETHOD_(DWRITE_GLYPH_IMAGE_FORMATS, GetGlyphImageFormats)() PURE; + + /// + /// Gets the available image formats of a specific glyph and ppem. Glyphs often have at least TrueType + /// or CFF outlines, but they may also have SVG outlines, or they may have only bitmaps + /// with no TrueType/CFF outlines. Some image formats, notably the PNG/JPEG ones, are size + /// specific and will return no match when there isn't an entry in that size range. + /// + /// + /// Glyph ids beyond the glyph count return DWRITE_GLYPH_IMAGE_FORMATS_NONE. + /// + STDMETHOD(GetGlyphImageFormats)( + UINT16 glyphId, + UINT32 pixelsPerEmFirst, + UINT32 pixelsPerEmLast, + _Out_ DWRITE_GLYPH_IMAGE_FORMATS* glyphImageFormats + ) PURE; + + /// + /// Gets a pointer to the glyph data based on the desired image format. + /// + /// + /// The glyphDataContext must be released via ReleaseGlyphImageData when done if the data is not empty, + /// similar to IDWriteFontFileStream::ReadFileFragment and IDWriteFontFileStream::ReleaseFileFragment. + /// The data pointer is valid so long as the IDWriteFontFace exists and ReleaseGlyphImageData has not + /// been called. + /// + /// + /// The DWRITE_GLYPH_IMAGE_DATA::uniqueDataId is valuable for caching purposes so that if the same + /// resource is returned more than once, an existing resource can be quickly retrieved rather than + /// needing to reparse or decompress the data. + /// + /// + /// The function only returns SVG or raster data - requesting TrueType/CFF/COLR data returns + /// DWRITE_E_INVALIDARG. Those must be drawn via DrawGlyphRun or queried using GetGlyphOutline instead. + /// Exactly one format may be requested or else the function returns DWRITE_E_INVALIDARG. + /// If the glyph does not have that format, the call is not an error, but the function returns empty data. + /// + STDMETHOD(GetGlyphImageData)( + _In_ UINT16 glyphId, + UINT32 pixelsPerEm, + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat, + _Out_ DWRITE_GLYPH_IMAGE_DATA* glyphData, + _Outptr_result_maybenull_ void** glyphDataContext + ) PURE; + + /// + /// Releases the table data obtained earlier from ReadGlyphData. + /// + /// Opaque context from ReadGlyphData. + STDMETHOD_(void, ReleaseGlyphImageData)( + void* glyphDataContext + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("4B0B5BD3-0797-4549-8AC5-FE915CC53856") IDWriteFactory4 : public IDWriteFactory3 +{ + /// + /// Translates a glyph run to a sequence of color glyph runs, which can be + /// rendered to produce a color representation of the original "base" run. + /// + /// Horizontal and vertical origin of the base glyph run in + /// pre-transform coordinates. + /// Pointer to the original "base" glyph run. + /// Optional glyph run description. + /// Which data formats TranslateColorGlyphRun + /// should split the runs into. + /// Measuring mode, needed to compute the origins + /// of each glyph. + /// Matrix converting from the client's + /// coordinate space to device coordinates (pixels), i.e., the world transform + /// multiplied by any DPI scaling. + /// Zero-based index of the color palette to use. + /// Valid indices are less than the number of palettes in the font, as returned + /// by IDWriteFontFace2::GetColorPaletteCount. + /// If the function succeeds, receives a pointer + /// to an enumerator object that can be used to obtain the color glyph runs. + /// If the base run has no color glyphs, then the output pointer is NULL + /// and the method returns DWRITE_E_NOCOLOR. + /// + /// Returns DWRITE_E_NOCOLOR if the font has no color information, the glyph run + /// does not contain any color glyphs, or the specified color palette index + /// is out of range. In this case, the client should render the original glyph + /// run. Otherwise, returns a standard HRESULT error code. + /// + /// + /// The old IDWriteFactory2::TranslateColorGlyphRun is equivalent to passing + /// DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE|CFF|COLR. + /// + STDMETHOD(TranslateColorGlyphRun)( + D2D1_POINT_2F baselineOrigin, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_opt_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, + DWRITE_GLYPH_IMAGE_FORMATS desiredGlyphImageFormats, + DWRITE_MEASURING_MODE measuringMode, + _In_opt_ DWRITE_MATRIX const* worldAndDpiTransform, + UINT32 colorPaletteIndex, + _COM_Outptr_ IDWriteColorGlyphRunEnumerator1** colorLayers + ) PURE; + + using IDWriteFactory2::TranslateColorGlyphRun; + + /// + /// Converts glyph run placements to glyph origins. + /// + /// + /// Standard HRESULT error code. + /// + /// + /// The transform and DPI have no affect on the origin scaling. + /// They are solely used to compute glyph advances when not supplied + /// and align glyphs in pixel aligned measuring modes. + /// + STDMETHOD(ComputeGlyphOrigins)( + DWRITE_GLYPH_RUN const* glyphRun, + DWRITE_MEASURING_MODE measuringMode, + D2D1_POINT_2F baselineOrigin, + _In_opt_ DWRITE_MATRIX const* worldAndDpiTransform, + _Out_writes_(glyphRun->glyphCount) D2D1_POINT_2F* glyphOrigins + ) PURE; + + /// + /// Converts glyph run placements to glyph origins. This overload is for natural metrics, which + /// includes SVG, TrueType natural modes, and bitmap placement. + /// + STDMETHOD(ComputeGlyphOrigins)( + DWRITE_GLYPH_RUN const* glyphRun, + D2D1_POINT_2F baselineOrigin, + _Out_writes_(glyphRun->glyphCount) D2D1_POINT_2F* glyphOrigins + ) PURE; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS1 + + +//////////////////////////////////////////////////////////////////////////////////////////////////// + + +#if NTDDI_VERSION >= NTDDI_WIN10_RS2 + +interface DWRITE_DECLARE_INTERFACE("3FF7715F-3CDC-4DC6-9B72-EC5621DCCAFD") IDWriteFontSetBuilder1 : public IDWriteFontSetBuilder +{ + /// + /// Adds references to all the fonts in the specified font file. The method + /// parses the font file to determine the fonts and their properties. + /// + /// Font file reference object to add to the set. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontFile)( + _In_ IDWriteFontFile* fontFile + ) PURE; +}; + +/// +/// The IDWriteAsyncResult interface represents the result of an asynchronous +/// operation. A client can use the interface to wait for the operation to +/// complete and to get the result. +/// +interface DWRITE_DECLARE_INTERFACE("CE25F8FD-863B-4D13-9651-C1F88DC73FE2") IDWriteAsyncResult : public IUnknown +{ + /// + /// The GetWaitHandleMethod method returns a handle that can be used to wait + /// for the asynchronous operation to complete. The handle remains valid + /// until the interface is released. + /// + STDMETHOD_(HANDLE, GetWaitHandle)() PURE; + + /// + /// The GetResult method returns the result of the asynchronous operation. + /// The return value is E_PENDING if the operation has not yet completed. + /// + STDMETHOD(GetResult)() PURE; +}; + + +/// +/// DWRITE_FILE_FRAGMENT represents a range of bytes in a font file. +/// +struct DWRITE_FILE_FRAGMENT +{ + /// + /// Starting offset of the fragment from the beginning of the file. + /// + UINT64 fileOffset; + + /// + /// Size of the file fragment, in bytes. + /// + UINT64 fragmentSize; +}; + + +/// +/// IDWriteRemoteFontFileStream represents a font file stream parts of which may be +/// non-local. Non-local data must be downloaded before it can be accessed using +/// ReadFragment. The interface exposes methods to download font data and query the +/// locality of font data. +/// +/// +/// For more information, see the description of IDWriteRemoteFontFileLoader. +/// +interface DWRITE_DECLARE_INTERFACE("4DB3757A-2C72-4ED9-B2B6-1ABABE1AFF9C") IDWriteRemoteFontFileStream : public IDWriteFontFileStream +{ + /// + /// GetLocalFileSize returns the number of bytes of the font file that are + /// currently local, which should always be less than or equal to the full + /// file size returned by GetFileSize. If the locality is remote, the return + /// value is zero. If the file is fully local, the return value must be the + /// same as GetFileSize. + /// + /// Receives the local size of the file. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocalFileSize)( + _Out_ UINT64* localFileSize + ) PURE; + + /// + /// GetFileFragmentLocality returns information about the locality of a byte range (i.e., + /// font fragment) within the font file stream. + /// + /// Offset of the fragment from the beginning of the font file. + /// Size of the fragment in bytes. + /// Receives TRUE if the first byte of the fragment is local, FALSE if not. + /// Receives the number of contiguous bytes from the start of the + /// fragment that have the same locality as the first byte. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFileFragmentLocality)( + UINT64 fileOffset, + UINT64 fragmentSize, + _Out_ BOOL* isLocal, + _Out_range_(0, fragmentSize) UINT64* partialSize + ) PURE; + + /// + /// Gets the current locality of the file. + /// + /// + /// Returns the locality enumeration (i.e., remote, partial, or local). + /// + STDMETHOD_(DWRITE_LOCALITY, GetLocality)() PURE; + + /// + /// BeginDownload begins downloading all or part of the font file. + /// + /// Array of structures, each specifying a byte + /// range to download. + /// Number of elements in the fileFragments array. + /// This can be zero to just download file information, such as the size. + /// Receives an object that can be used to wait for + /// the asynchronous download to complete and to get the download result upon + /// completion. The result may be NULL if the download completes synchronously. + /// For example, this can happen if method determines that the requested data + /// is already local. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(BeginDownload)( + _In_ UUID const* downloadOperationID, + _In_reads_(fragmentCount) DWRITE_FILE_FRAGMENT const* fileFragments, + UINT32 fragmentCount, + _COM_Outptr_result_maybenull_ IDWriteAsyncResult** asyncResult + ) PURE; +}; + + +/// +/// Specifies the container format of a font resource. A container format is distinct from +/// a font file format (DWRITE_FONT_FILE_TYPE) because the container describes the container +/// in which the underlying font file is packaged. +/// +enum DWRITE_CONTAINER_TYPE +{ + DWRITE_CONTAINER_TYPE_UNKNOWN, + DWRITE_CONTAINER_TYPE_WOFF, + DWRITE_CONTAINER_TYPE_WOFF2 +}; + + +/// +/// The IDWriteRemoteFontFileLoader interface represents a font file loader that can access +/// remote (i.e., downloadable) fonts. The IDWriteFactory5::CreateHttpFontFileLoader method +/// returns an instance of this interface, or a client can create its own implementation. +/// +/// +/// Calls to a remote file loader or stream should never block waiting for network operations. +/// Any call that cannot succeeded immediately using local (e.g., cached) must should return +/// DWRITE_E_REMOTEFONT. This error signifies to DWrite that it should add requests to the +/// font download queue. +/// +interface DWRITE_DECLARE_INTERFACE("68648C83-6EDE-46C0-AB46-20083A887FDE") IDWriteRemoteFontFileLoader : public IDWriteFontFileLoader +{ + /// + /// Creates a remote font file stream object that encapsulates an open file resource + /// and can be used to download remote file data. + /// + /// Font file reference key that uniquely identifies the font file resource + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Pointer to the newly created font file stream. + /// + /// Standard HRESULT error code. + /// + /// + /// Unlike CreateStreamFromKey, this method can be used to create a stream for a remote file. If the file is + /// remote, the returned stream's BeginDownload method can be used to download all or part of the font file. + /// However, the stream cannot be used to get the file size or access font data unless the file is at least + /// partially local. + /// + STDMETHOD(CreateRemoteStreamFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _COM_Outptr_ IDWriteRemoteFontFileStream** fontFileStream + ) PURE; + + /// + /// Gets the locality of the file resource identified by the unique key. + /// + /// Font file reference key that uniquely identifies the font file resource + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Locality of the file. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocalityFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _Out_ DWRITE_LOCALITY* locality + ) PURE; + + /// + /// Creates a font file reference from a URL if the loader supports this capability. + /// + /// Factory used to create the font file reference. + /// Optional base URL. The base URL is used to resolve the fontFileUrl + /// if it is relative. For example, the baseUrl might be the URL of the referring document + /// that contained the fontFileUrl. + /// URL of the font resource. + /// Receives a pointer to the newly created font file reference. + /// + /// Standard HRESULT error code, or E_NOTIMPL if the loader does not implement this method. + /// + STDMETHOD(CreateFontFileReferenceFromUrl)( + IDWriteFactory* factory, + _In_opt_z_ WCHAR const* baseUrl, + _In_z_ WCHAR const* fontFileUrl, + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; +}; + + +/// +/// The IDWriteInMemoryFontFileLoader interface enables clients to reference +/// in-memory fonts without having to implement a custom loader. The +/// IDWriteFactory5::CreateInMemoryFontFileLoader method returns an instance +/// of this interface, which the client is responsible for registering and +/// unregistering using IDWriteFactory::RegisterFontFileLoader and +/// IDWriteFactory::UnregisterFontFileLoader. +/// +interface DWRITE_DECLARE_INTERFACE("DC102F47-A12D-4B1C-822D-9E117E33043F") IDWriteInMemoryFontFileLoader : public IDWriteFontFileLoader +{ + /// + /// The CreateInMemoryFontFileReference method creates a font file reference + /// (IDWriteFontFile object) from an array of bytes. The font file reference + /// is bound to the IDWriteInMemoryFontFileLoader instance with which it was + /// created and remains valid for as long as that loader is registered with + /// the factory. + /// + /// Factory object used to create the font file reference. + /// Pointer to a memory block containing the font data. + /// Size of the font data. + /// Optional object that owns the memory specified by + /// the fontData parameter. If this parameter is not NULL, the method stores a + /// pointer to the font data and adds a reference to the owner object. The + /// fontData pointer must remain valid until the owner object is released. If + /// this parameter is NULL, the method makes a copy of the font data. + /// Receives a pointer to the newly-created font file + /// reference. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateInMemoryFontFileReference)( + IDWriteFactory* factory, + _In_reads_bytes_(fontDataSize) void const* fontData, + UINT32 fontDataSize, + _In_opt_ IUnknown* ownerObject, + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; + + /// + /// The GetFileCount method returns the number of font file references that + /// have been created using this loader instance. + /// + STDMETHOD_(UINT32, GetFileCount)() PURE; +}; + + +/// +/// The root factory interface for all DWrite objects. +/// +interface DWRITE_DECLARE_INTERFACE("958DB99A-BE2A-4F09-AF7D-65189803D1D3") IDWriteFactory5 : public IDWriteFactory4 +{ + /// + /// Creates an empty font set builder to add font face references + /// and create a custom font set. + /// + /// Receives a pointer to the newly created font set builder object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontSetBuilder)( + _COM_Outptr_ IDWriteFontSetBuilder1** fontSetBuilder + ) PURE; + + using IDWriteFactory3::CreateFontSetBuilder; + + /// + /// The CreateInMemoryFontFileLoader method creates a loader object that can + /// be used to create font file references to in-memory fonts. The caller is + /// responsible for registering and unregistering the loader. + /// + /// Receives a pointer to the newly-created loader object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateInMemoryFontFileLoader)( + _COM_Outptr_ IDWriteInMemoryFontFileLoader** newLoader + ) PURE; + + /// + /// The CreateHttpFontFileLoader function creates a remote font file loader + /// that can create font file references from HTTP or HTTPS URLs. The caller + /// is responsible for registering and unregistering the loader. + /// + /// Optional referrer URL for HTTP requests. + /// Optional additional header fields to include + /// in HTTP requests. Each header field consists of a name followed by a colon + /// (":") and the field value, as specified by RFC 2616. Multiple header fields + /// may be separated by newlines. + /// Receives a pointer to the newly-created loader object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateHttpFontFileLoader)( + _In_opt_z_ wchar_t const* referrerUrl, + _In_opt_z_ wchar_t const* extraHeaders, + _COM_Outptr_ IDWriteRemoteFontFileLoader** newLoader + ) PURE; + + /// + /// The AnalyzeContainerType method analyzes the specified file data to determine + /// whether it is a known font container format (e.g., WOFF or WOFF2). + /// + /// + /// Returns the container type if recognized. DWRITE_CONTAINER_TYPE_UNKOWNN is + /// returned for all other files, including uncompressed font files. + /// + STDMETHOD_(DWRITE_CONTAINER_TYPE, AnalyzeContainerType)( + _In_reads_bytes_(fileDataSize) void const* fileData, + UINT32 fileDataSize + ) PURE; + + /// + /// The UnpackFontFile method unpacks font data from a container file (WOFF or + /// WOFF2) and returns the unpacked font data in the form of a font file stream. + /// + /// Container type returned by AnalyzeContainerType. + /// Pointer to the compressed data. + /// Size of the compressed data, in bytes. + /// Receives a pointer to a newly created font + /// file stream containing the uncompressed data. + /// + /// Standard HRESULT error code. The return value is E_INVALIDARG if the container + /// type is DWRITE_CONTAINER_TYPE_UNKNOWN. + /// + STDMETHOD(UnpackFontFile)( + DWRITE_CONTAINER_TYPE containerType, + _In_reads_bytes_(fileDataSize) void const* fileData, + UINT32 fileDataSize, + _COM_Outptr_ IDWriteFontFileStream** unpackedFontStream + ) PURE; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS2 + + +//////////////////////////////////////////////////////////////////////////////////////////////////// + + +#if NTDDI_VERSION >= NTDDI_WIN10_RS3 + + +interface IDWriteFontResource; +interface IDWriteFontFace5; +interface IDWriteFontFaceReference1; +interface IDWriteFontSet1; +interface IDWriteFontCollection2; +interface IDWriteTextFormat3; +interface IDWriteFontSetBuilder2; + + +/// +/// Creates an OpenType tag for a font axis. +/// +#define DWRITE_MAKE_FONT_AXIS_TAG(a,b,c,d) (static_cast(DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d))) + + +/// +/// Four character identifier for a font axis. +/// +/// +/// Use DWRITE_MAKE_FONT_AXIS_TAG() to create a custom one. +/// +enum DWRITE_FONT_AXIS_TAG : UINT32 +{ + DWRITE_FONT_AXIS_TAG_WEIGHT = DWRITE_MAKE_FONT_AXIS_TAG('w','g','h','t'), + DWRITE_FONT_AXIS_TAG_WIDTH = DWRITE_MAKE_FONT_AXIS_TAG('w','d','t','h'), + DWRITE_FONT_AXIS_TAG_SLANT = DWRITE_MAKE_FONT_AXIS_TAG('s','l','n','t'), + DWRITE_FONT_AXIS_TAG_OPTICAL_SIZE = DWRITE_MAKE_FONT_AXIS_TAG('o','p','s','z'), + DWRITE_FONT_AXIS_TAG_ITALIC = DWRITE_MAKE_FONT_AXIS_TAG('i','t','a','l'), +}; + +#define DWRITE_STANDARD_FONT_AXIS_COUNT 5 + +/// +/// Value for a font axis, used when querying and creating font instances. +/// +struct DWRITE_FONT_AXIS_VALUE +{ + /// + /// Four character identifier of the font axis (weight, width, slant, italic...). + /// + DWRITE_FONT_AXIS_TAG axisTag; + + /// + /// Value for the given axis, with the meaning and range depending on the axis semantics. + /// Certain well known axes have standard ranges and defaults, such as weight (1..1000, default=400), + /// width (>0, default=100), slant (-90..90, default=-20), and italic (0 or 1). + /// + FLOAT value; +}; + + +/// +/// Minimum and maximum range of a font axis. +/// +struct DWRITE_FONT_AXIS_RANGE +{ + /// + /// Four character identifier of the font axis (weight, width, slant, italic...). + /// + DWRITE_FONT_AXIS_TAG axisTag; + + /// + /// Minimum value supported by this axis. + /// + FLOAT minValue; + + /// + /// Maximum value supported by this axis. The maximum can equal the minimum. + /// + FLOAT maxValue; +}; + + +/// +/// How font families are grouped together, used by IDWriteFontCollection. +/// +enum DWRITE_FONT_FAMILY_MODEL +{ + /// + /// Families are grouped by the typographic family name preferred by the font author. The family can contain as + /// many face as the font author wants. + /// This corresponds to the DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME. + /// + DWRITE_FONT_FAMILY_MODEL_TYPOGRAPHIC, + + /// + /// Families are grouped by the weight-stretch-style family name, where all faces that differ only by those three + /// axes are grouped into the same family, but any other axes go into a distinct family. For example, the Sitka + /// family with six different optical sizes yields six separate families (Sitka Caption, Display, Text, Subheading, + /// Heading, Banner...). This corresponds to the DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME. + /// + DWRITE_FONT_FAMILY_MODEL_WEIGHT_STRETCH_STYLE, +}; + + +/// +/// Apply certain axes automatically in layout during font selection. +/// +enum DWRITE_AUTOMATIC_FONT_AXES +{ + /// + /// No axes are automatically applied. + /// + DWRITE_AUTOMATIC_FONT_AXES_NONE = 0x0000, + + /// + /// Automatically pick an appropriate optical value based on the font size (via SetFontSize) when no value is + /// specified via DWRITE_FONT_AXIS_TAG_OPTICAL_SIZE. Callers can still explicitly apply the 'opsz' value over + /// text ranges via SetFontAxisValues, which take priority. + /// + DWRITE_AUTOMATIC_FONT_AXES_OPTICAL_SIZE = 0x0001, +}; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_AUTOMATIC_FONT_AXES); +#endif + + +/// +/// Attributes for a font axis. +/// +enum DWRITE_FONT_AXIS_ATTRIBUTES +{ + /// + /// No attributes. + /// + DWRITE_FONT_AXIS_ATTRIBUTES_NONE = 0x0000, + + /// + /// This axis is implemented as a variation axis in a variable font, with a continuous range of + /// values, such as a range of weights from 100..900. Otherwise it is either a static axis that + /// holds a single point, or it has a range but doesn't vary, such as optical size in the Skia + /// Heading font which covers a range of points but doesn't interpolate any new glyph outlines. + /// + DWRITE_FONT_AXIS_ATTRIBUTES_VARIABLE = 0x0001, + + /// + /// This axis is recommended to be remain hidden in user interfaces. The font developer may + /// recommend this if an axis is intended to be accessed only programmatically, or is meant for + /// font-internal or font-developer use only. The axis may be exposed in lower-level font + /// inspection utilities, but should not be exposed in common or even advanced-mode user + /// interfaces in content-authoring apps. + /// + DWRITE_FONT_AXIS_ATTRIBUTES_HIDDEN = 0x0002, +}; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_FONT_AXIS_ATTRIBUTES); +#endif + + +interface DWRITE_DECLARE_INTERFACE("F3744D80-21F7-42EB-B35D-995BC72FC223") IDWriteFactory6 : public IDWriteFactory5 +{ + /// + /// Creates a reference to a specific font instance within a file. + /// + /// User provided font file representing the font face. + /// The zero based index of a font face in cases when the font files contain a collection of font faces. + /// If the font files contain a single face, this value should be zero. + /// Font face simulation flags for algorithmic emboldening and italicization. + /// List of font axis values. + /// Number of font axis values. + /// Receives a pointer to the newly created font face reference object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFaceReference)( + _In_ IDWriteFontFile* fontFile, + UINT32 faceIndex, + DWRITE_FONT_SIMULATIONS fontSimulations, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontFaceReference1** fontFaceReference + ) PURE; + + using IDWriteFactory5::CreateFontFaceReference; + + /// + /// Creates a font resource given a font file and face index. + /// + /// User provided font file representing the font face. + /// The zero based index of a font face in cases when the font files contain a collection of font faces. + /// If the font files contain a single face, this value should be zero. + /// Receives a pointer to the newly created font resource object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontResource)( + _In_ IDWriteFontFile* fontFile, + UINT32 faceIndex, + _COM_Outptr_ IDWriteFontResource** fontResource + ) PURE; + + /// + /// Retrieves the set of system fonts. + /// + /// Include downloadable fonts or only locally installed ones. + /// Receives a pointer to the font set object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontSet)( + BOOL includeDownloadableFonts, + _COM_Outptr_ IDWriteFontSet1** fontSet + ) PURE; + + using IDWriteFactory3::GetSystemFontSet; + + /// + /// Retrieves a collection of fonts grouped into families. + /// + /// Include downloadable fonts or only locally installed ones. + /// How to group families in the collection. + /// Receives a pointer to the font collection object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontCollection)( + BOOL includeDownloadableFonts, + DWRITE_FONT_FAMILY_MODEL fontFamilyModel, + _COM_Outptr_ IDWriteFontCollection2** fontCollection + ) PURE; + + using IDWriteFactory3::GetSystemFontCollection; + + /// + /// Create a collection of fonts grouped into families from a font set. + /// + /// A set of fonts to use to build the collection. + /// How to group families in the collection. + /// Receives a pointer to the newly created font collection object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontCollectionFromFontSet)( + IDWriteFontSet* fontSet, + DWRITE_FONT_FAMILY_MODEL fontFamilyModel, + _COM_Outptr_ IDWriteFontCollection2** fontCollection + ) PURE; + + using IDWriteFactory5::CreateFontCollectionFromFontSet; + + /// + /// Creates an empty font set builder to add font instances and create a custom font set. + /// + /// Receives a pointer to the newly created font set builder object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontSetBuilder)( + _COM_Outptr_ IDWriteFontSetBuilder2** fontSetBuilder + ) PURE; + + using IDWriteFactory3::CreateFontSetBuilder; + using IDWriteFactory5::CreateFontSetBuilder; + + /// + /// Create a text format object used for text layout. + /// + /// Name of the font family from the collection. + /// Font collection, with nullptr indicating the system font collection. + /// List of font axis values. + /// Number of font axis values. + /// Logical size of the font in DIP units. + /// Locale name (e.g. "ja-JP", "en-US", "ar-EG"). + /// Receives a pointer to the newly created text format object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// If fontCollection is nullptr, the system font collection is used, grouped by typographic family name + /// (DWRITE_FONT_FAMILY_MODEL_TYPOGRAPHIC) without downloadable fonts. + /// + STDMETHOD(CreateTextFormat)( + _In_z_ WCHAR const* fontFamilyName, + _In_opt_ IDWriteFontCollection* fontCollection, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + FLOAT fontSize, + _In_z_ WCHAR const* localeName, + _COM_Outptr_ IDWriteTextFormat3** textFormat + ) PURE; + + using IDWriteFactory::CreateTextFormat; +}; + + +interface DWRITE_DECLARE_INTERFACE("98EFF3A5-B667-479A-B145-E2FA5B9FDC29") IDWriteFontFace5 : public IDWriteFontFace4 +{ + /// + /// Get the number of axes defined by the font. This includes both static and variable axes. + /// + STDMETHOD_(UINT32, GetFontAxisValueCount)() PURE; + + /// + /// Get the list of axis values used by the font. + /// + /// List of font axis values. + /// Maximum number of font axis values to write. + /// + /// Standard HRESULT error code, or E_INVALIDARG if fontAxisValueCount doesn't match GetFontAxisValueCount. + /// + /// + /// The values are returned in the canonical order defined by the font, clamped to the actual range supported, + /// not specifically the same axis value array passed to CreateFontFace. + /// + STDMETHOD(GetFontAxisValues)( + _Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues, + UINT32 fontAxisValueCount + ) PURE; + + /// + /// Whether this font's resource supports any variable axes. When true, at least one DWRITE_FONT_AXIS_RANGE + /// in the font resource has a non-empty range (maximum > minimum). + /// + STDMETHOD_(BOOL, HasVariations)() PURE; + + /// + /// Get the underlying font resource for this font face. A caller can use that to query information on the resource + /// or recreate a new font face instance with different axis values. + /// + /// Newly created font resource object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontResource)( + _COM_Outptr_ IDWriteFontResource** fontResource + ) PURE; + + /// + /// Compares two instances of a font face for equality. + /// + STDMETHOD_(BOOL, Equals)(IDWriteFontFace* fontFace) PURE; +}; + + +/// +/// Interface to return axis information for a font resource and create specific font face instances. +/// +interface DWRITE_DECLARE_INTERFACE("1F803A76-6871-48E8-987F-B975551C50F2") IDWriteFontResource : public IUnknown +{ + /// + /// Get the font file of the resource. + /// + /// Receives a pointer to the font file. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFile)( + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; + + /// + /// Obtains the zero-based index of the font face in its font file. If the font files contain a single face, + /// the return value is zero. + /// + STDMETHOD_(UINT32, GetFontFaceIndex)() PURE; + + /// + /// Get the number of axes supported by the font resource. This includes both static and variable axes. + /// + STDMETHOD_(UINT32, GetFontAxisCount)() PURE; + + /// + /// Get the default values for all axes supported by the font resource. + /// + /// List of font axis values. + /// Maximum number of font axis values to write. + /// + /// Different font resources may have different defaults. + /// For OpenType 1.8 fonts, these values come from the STAT and fvar tables. + /// For older fonts without a STAT table, weight-width-slant-italic are read from the OS/2 table. + /// + /// + /// Standard HRESULT error code, or E_INVALIDARG if fontAxisValueCount doesn't match GetFontAxisCount. + /// + STDMETHOD(GetDefaultFontAxisValues)( + _Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues, + UINT32 fontAxisValueCount + ) PURE; + + /// + /// Get ranges of each axis. + /// + /// + /// Total number of axis ranges + /// + /// Standard HRESULT error code, or E_INVALIDARG if fontAxisRangeCount doesn't match GetFontAxisCount. + /// + /// + /// Non-varying axes will have empty ranges (minimum==maximum). + /// + STDMETHOD(GetFontAxisRanges)( + _Out_writes_(fontAxisRangeCount) DWRITE_FONT_AXIS_RANGE* fontAxisRanges, + UINT32 fontAxisRangeCount + ) PURE; + + /// + /// Gets attributes about the given axis, such as whether the font author recommends to hide the axis + /// in user interfaces. + /// + /// Font axis, from 0 to GetFontAxisValueCount - 1. + /// Receives the attributes for the given axis. + /// + /// Attributes for a font axis, or NONE if axisIndex is beyond the font count. + /// + STDMETHOD_(DWRITE_FONT_AXIS_ATTRIBUTES, GetFontAxisAttributes)( + UINT32 axisIndex + ) PURE; + + /// + /// Gets the localized names of a font axis. + /// + /// Font axis, from 0 to GetFontAxisCount - 1. + /// Receives a pointer to the newly created localized strings object. + /// + /// The font author may not have supplied names for some font axes. The localized strings + /// will be empty in that case. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetAxisNames)( + UINT32 axisIndex, + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Get the number of named values for a specific axis. + /// + /// Font axis, from 0 to GetFontAxisCount - 1. + /// + /// Number of named values. + /// + STDMETHOD_(UINT32, GetAxisValueNameCount)( + UINT32 axisIndex + ) PURE; + + /// + /// Gets the localized names of specific values for a font axis. + /// + /// Font axis, from 0 to GetFontAxisCount - 1. + /// Value index, from 0 to GetAxisValueNameCount - 1. + /// Range of the named value. + /// Receives a pointer to the newly created localized strings object. + /// + /// The font author may not have supplied names for some font axis values. The localized strings + /// will be empty in that case. The range may be a single point, where minimum == maximum. + /// All ranges are in ascending order by axisValueIndex. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetAxisValueNames)( + UINT32 axisIndex, + UINT32 axisValueIndex, + _Out_ DWRITE_FONT_AXIS_RANGE* fontAxisRange, + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Whether this font's resource supports any variable axes. When true, at least one DWRITE_FONT_AXIS_RANGE + /// in the font resource has a non-empty range (maximum > minimum). + /// + STDMETHOD_(BOOL, HasVariations)() PURE; + + /// + /// Creates a font face instance with specific axis values. + /// + /// Font face simulation flags for algorithmic emboldening and italicization. + /// List of font axis values. + /// Number of font axis values. + /// Receives a pointer to the newly created font face object, or nullptr on failure. + /// + /// The passed input axis values are permitted to be a subset or superset of all the ones actually supported by + /// the font. Any unspecified axes use their default values, values beyond the ranges are clamped, and any + /// non-varying axes have no effect. + /// + /// + /// Standard HRESULT error code, or DWRITE_E_REMOTEFONT if the face is not local. + /// + STDMETHOD(CreateFontFace)( + DWRITE_FONT_SIMULATIONS fontSimulations, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontFace5** fontFace + ) PURE; + + /// + /// Creates a font face reference with specific axis values. + /// + /// Font face simulation flags for algorithmic emboldening and italicization. + /// List of font axis values. + /// Number of font axis values. + /// Receives a pointer to the newly created font face reference object, or nullptr on failure. + /// + /// The passed input axis values are permitted to be a subset or superset of all the ones actually supported by + /// the font. Any unspecified axes use their default values, values beyond the ranges are clamped, and any + /// non-varying axes have no effect. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFaceReference)( + DWRITE_FONT_SIMULATIONS fontSimulations, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontFaceReference1** fontFaceReference + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("C081FE77-2FD1-41AC-A5A3-34983C4BA61A") IDWriteFontFaceReference1 : public IDWriteFontFaceReference +{ + /// + /// Creates a font face from the reference for use with layout, shaping, or rendering. + /// + /// Newly created font face object, or nullptr in the case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// This function can fail with DWRITE_E_REMOTEFONT if the font is not local. + /// + STDMETHOD(CreateFontFace)( + _COM_Outptr_ IDWriteFontFace5** fontFace + ) PURE; + + using IDWriteFontFaceReference::CreateFontFace; + + /// + /// Get the number of axes specified by the reference. + /// + STDMETHOD_(UINT32, GetFontAxisValueCount)() PURE; + + /// + /// Get the list of font axis values specified by the reference. + /// + /// List of font axis values. + /// Number of font axis values. + /// + /// Standard HRESULT error code, or E_INVALIDARG if fontAxisValueCount doesn't match GetFontAxisValueCount. + /// + STDMETHOD(GetFontAxisValues)( + _Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues, + UINT32 fontAxisValueCount + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("EE5BA612-B131-463C-8F4F-3189B9401E45") IDWriteFontSetBuilder2 : public IDWriteFontSetBuilder1 +{ + /// + /// Adds a font to the set being built, with the caller supplying enough information to search on + /// and determine axis ranges, avoiding the need to open the potentially non-local font. + /// + /// Font file reference object to add to the set. + /// The zero based index of a font face in a collection. + /// Font face simulation flags for algorithmic emboldening and italicization. + /// List of font axis values. + /// Number of font axis values. + /// List of axis ranges. + /// Number of axis ranges. + /// List of properties to associate with the reference. + /// How many properties are defined. + /// + /// Standard HRESULT error code. + /// + /// + /// The font properties should include at least a family (typographic or weight/style/stretch). + /// Otherwise the font would be accessible in the IDWriteFontSet only by index, not name. + /// + STDMETHOD(AddFont)( + _In_ IDWriteFontFile* fontFile, + UINT32 fontFaceIndex, + DWRITE_FONT_SIMULATIONS fontSimulations, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _In_reads_(fontAxisRangeCount) DWRITE_FONT_AXIS_RANGE const* fontAxisRanges, + UINT32 fontAxisRangeCount, + _In_reads_(propertyCount) DWRITE_FONT_PROPERTY const* properties, + UINT32 propertyCount + ) PURE; + + /// + /// Adds references to all the fonts in the specified font file. The method + /// parses the font file to determine the fonts and their properties. + /// + /// Absolute file path to add to the font set. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontFile)( + _In_z_ WCHAR const* filePath + ) PURE; + + using IDWriteFontSetBuilder1::AddFontFile; +}; + + +interface DWRITE_DECLARE_INTERFACE("7E9FDA85-6C92-4053-BC47-7AE3530DB4D3") IDWriteFontSet1 : public IDWriteFontSet +{ + /// + /// Generates a matching font set based on the requested inputs, ordered so that nearer matches are earlier. + /// + /// Font property of interest, such as typographic family or weight/stretch/style family. + /// List of font axis values. + /// Number of font axis values. + /// Prioritized list of fonts that match the properties, or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// This can yield distinct items that were not in the original font set, including items with simulation flags + /// (if they would be a closer match to the request) and instances that were not named by the font author. + /// Items from the same font resources are collapsed into one, the closest possible match. + /// + STDMETHOD(GetMatchingFonts)( + _In_opt_ DWRITE_FONT_PROPERTY const* fontProperty, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontSet1** matchingFonts + ) PURE; + + /// + /// Returns a font set that contains only the first occurrence of each font resource in the given set. + /// + /// New font set consisting of single default instances from font resources. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFirstFontResources)( + _COM_Outptr_ IDWriteFontSet1** filteredFontSet + ) PURE; + + /// + /// Returns a subset of fonts filtered by the given properties. + /// + /// List of properties to filter using. + /// How many properties to filter. + /// Select any property rather rather than the intersection of them all. + /// Subset of fonts that match the properties, or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// If no fonts matched the filter, the returned subset will be empty (GetFontCount returns 0). + /// The subset will always be equal to or less than the original set. + /// + STDMETHOD(GetFilteredFonts)( + _In_reads_opt_(propertyCount) DWRITE_FONT_PROPERTY const* properties, + UINT32 propertyCount, + BOOL selectAnyProperty, + _COM_Outptr_ IDWriteFontSet1** filteredFontSet + ) PURE; + + /// + /// Returns a subset of fonts filtered by the given ranges, endpoint-inclusive. + /// + /// List of axis ranges. + /// Number of axis ranges. + /// Select any range rather rather than the intersection of them all. + /// Subset of fonts that fall within the ranges, or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// If no fonts matched the filter, the subset will be empty (GetFontCount returns 0), but the function does not + /// return an error. The subset will always be equal to or less than the original set. + /// + STDMETHOD(GetFilteredFonts)( + _In_reads_(fontAxisRangeCount) DWRITE_FONT_AXIS_RANGE const* fontAxisRanges, + UINT32 fontAxisRangeCount, + BOOL selectAnyRange, + _COM_Outptr_ IDWriteFontSet1** filteredFontSet + ) PURE; + + /// + /// Returns a subset of fonts filtered by the given indices. + /// + /// Array of indices, each index from [0..GetFontCount() - 1]. + /// Number of indices. + /// Subset of fonts that come from the given indices, or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// The indices can come in any order, meaning this function can produce a new set with items removed, duplicated, + /// or reordered from the original. If zero indices were passed, an empty font set is returned. + /// + STDMETHOD(GetFilteredFonts)( + _In_reads_(indexCount) UINT32 const* indices, + UINT32 indexCount, + _COM_Outptr_ IDWriteFontSet1** filteredFontSet + ) PURE; + + /// + /// Get all the item indices filtered by the given properties. + /// + /// List of properties to filter using. + /// How many properties to filter. + /// Select any property rather rather than the intersection of them all. + /// Ascending array of indices [0..GetFontCount() - 1]. + /// Number of indices. + /// Actual number of indices written or needed [0..GetFontCount()-1]. + /// + /// E_NOT_SUFFICIENT_BUFFER if the buffer is too small, with actualIndexCount set to the needed size. + /// The actualIndexCount will always be <= IDwriteFontSet::GetFontCount. + /// + STDMETHOD(GetFilteredFontIndices)( + _In_reads_(propertyCount) DWRITE_FONT_PROPERTY const* properties, + UINT32 propertyCount, + BOOL selectAnyProperty, + _Out_writes_(maxIndexCount) UINT32* indices, + UINT32 maxIndexCount, + _Out_ UINT32* actualIndexCount + ) PURE; + + /// + /// Get all the item indices filtered by the given ranges. + /// + /// List of axis ranges. + /// Number of axis ranges. + /// Select any property rather rather than the intersection of them all. + /// Ascending array of indices [0..GetFontCount() - 1]. + /// Number of indices. + /// Actual number of indices written or needed [0..GetFontCount()-1]. + /// + /// E_NOT_SUFFICIENT_BUFFER if the buffer is too small, with actualIndexCount set to the needed size. + /// + STDMETHOD(GetFilteredFontIndices)( + _In_reads_(fontAxisRangeCount) DWRITE_FONT_AXIS_RANGE const* fontAxisRanges, + UINT32 fontAxisRangeCount, + BOOL selectAnyRange, + _Out_writes_(maxIndexCount) UINT32* indices, + UINT32 maxIndexCount, + _Out_ UINT32* actualIndexCount + ) PURE; + + /// + /// Gets all axis ranges in the font set, the union of all contained items. + /// + /// List of axis ranges. + /// Number of axis ranges. + /// Actual number of axis ranges written or needed. + /// + /// E_NOT_SUFFICIENT_BUFFER if the buffer is too small, with actualFontAxisRangeCount set to the needed size. + /// + STDMETHOD(GetFontAxisRanges)( + _Out_writes_(maxFontAxisRangeCount) DWRITE_FONT_AXIS_RANGE* fontAxisRanges, + UINT32 maxFontAxisRangeCount, + _Out_ UINT32* actualFontAxisRangeCount + ) PURE; + + /// + /// Get the axis ranges of a single item. + /// + /// Zero-based index of the font in the set. + /// List of axis ranges. + /// Number of axis ranges. + /// Actual number of axis ranges written or needed. + /// + /// E_NOT_SUFFICIENT_BUFFER if the buffer is too small, with actualFontAxisRangeCount set to the needed size. + /// + STDMETHOD(GetFontAxisRanges)( + UINT32 listIndex, + _Out_writes_(maxFontAxisRangeCount) DWRITE_FONT_AXIS_RANGE* fontAxisRanges, + UINT32 maxFontAxisRangeCount, + _Out_ UINT32* actualFontAxisRangeCount + ) PURE; + + /// + /// Get the font face reference of a single item. + /// + /// Zero-based index of the font item in the set. + /// Receives a pointer to the font face reference. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontFaceReference1** fontFaceReference + ) PURE; + + using IDWriteFontSet::GetFontFaceReference; + + /// + /// Create the font resource of a single item. + /// + /// Zero-based index of the font item in the set. + /// Receives a pointer to the font resource. + /// + /// Standard HRESULT error code, or DWRITE_E_REMOTEFONT if the file is not local. + /// + STDMETHOD(CreateFontResource)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontResource** fontResource + ) PURE; + + /// + /// Create a font face for a single item (rather than going through the font face reference). + /// + /// Zero-based index of the font item in the set. + /// Receives a pointer to the font face. + /// + /// Standard HRESULT error code, or DWRITE_E_REMOTEFONT if the file is not local. + /// + STDMETHOD(CreateFontFace)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontFace5** fontFace + ) PURE; + + /// + /// Return the locality of a single item. + /// + /// Zero-based index of the font item in the set. + /// + /// The locality enumeration. For fully local files, the result will always + /// be DWRITE_LOCALITY_LOCAL. For downloadable files, the result depends on how + /// much of the file has been downloaded. + /// + /// + /// The locality enumeration. + /// + STDMETHOD_(DWRITE_LOCALITY, GetFontLocality)(UINT32 listIndex) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("C0763A34-77AF-445A-B735-08C37B0A5BF5") IDWriteFontList2 : public IDWriteFontList1 +{ + /// + /// Get the underlying font set used by this list. + /// + /// Contains font set used by the list. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSet)( + _COM_Outptr_ IDWriteFontSet1** fontSet + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("3ED49E77-A398-4261-B9CF-C126C2131EF3") IDWriteFontFamily2 : public IDWriteFontFamily1 +{ + /// + /// Gets a list of fonts in the font family ranked in order of how well they match the specified axis values. + /// + /// List of font axis values. + /// Number of font axis values. + /// Receives a pointer to the newly created font list object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetMatchingFonts)( + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontList2** matchingFonts + ) PURE; + + using IDWriteFontFamily::GetMatchingFonts; + + /// + /// Get the underlying font set used by this family. + /// + /// Contains font set used by the family. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSet)( + _COM_Outptr_ IDWriteFontSet1** fontSet + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("514039C6-4617-4064-BF8B-92EA83E506E0") IDWriteFontCollection2 : public IDWriteFontCollection1 +{ + /// + /// Creates a font family object given a zero-based font family index. + /// + /// Zero-based index of the font family. + /// Receives a pointer the newly created font family object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamily)( + UINT32 index, + _COM_Outptr_ IDWriteFontFamily2** fontFamily + ) PURE; + + /// + /// Gets a list of fonts in the specified font family ranked in order of how well they match the specified axis values. + /// + /// Name of the font family. The name is not case-sensitive but must otherwise exactly match a family name in the collection. + /// List of font axis values. + /// Number of font axis values. + /// Receives a pointer to the newly created font list object. + /// + /// If no fonts matched, the list will be empty (GetFontCount returns 0), + /// but the function does not return an error. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetMatchingFonts)( + _In_z_ WCHAR const* familyName, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontList2** fontList + ) PURE; + + /// + /// Get the font family model used by the font collection to group families. + /// + /// + /// Family model enumeration. + /// + STDMETHOD_(DWRITE_FONT_FAMILY_MODEL, GetFontFamilyModel)() PURE; + + /// + /// Get the underlying font set used by this collection. + /// + /// Contains font set used by the collection. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSet)( + _COM_Outptr_ IDWriteFontSet1** fontSet + ) PURE; + + using IDWriteFontCollection::GetFontFamily; + using IDWriteFontCollection1::GetFontFamily; + using IDWriteFontCollection1::GetFontSet; +}; + + +interface DWRITE_DECLARE_INTERFACE("05A9BF42-223F-4441-B5FB-8263685F55E9") IDWriteTextLayout4 : public IDWriteTextLayout3 +{ + /// + /// Set values for font axes over a range of text. + /// + /// List of font axis values. + /// Number of font axis values. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontAxisValues)( + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Get the number of axes set on the text position. + /// + STDMETHOD_(UINT32, GetFontAxisValueCount)( + UINT32 currentPosition + ) PURE; + + /// + /// Get the list of font axis values on the text position. + /// + /// List of font axis values. + /// Maximum number of font axis values to write. + /// + /// Standard HRESULT error code, or E_INVALIDARG if fontAxisValueCount doesn't match GetFontAxisValueCount. + /// + STDMETHOD(GetFontAxisValues)( + UINT32 currentPosition, + _Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues, + UINT32 fontAxisValueCount, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = nullptr + ) PURE; + + /// + /// Get the automatic axis options. + /// + /// + /// Automatic axis options. + /// + STDMETHOD_(DWRITE_AUTOMATIC_FONT_AXES, GetAutomaticFontAxes)() PURE; + + /// + /// Sets the automatic font axis options. + /// + /// Automatic font axis options. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetAutomaticFontAxes)(DWRITE_AUTOMATIC_FONT_AXES automaticFontAxes) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("6D3B5641-E550-430D-A85B-B7BF48A93427") IDWriteTextFormat3 : public IDWriteTextFormat2 +{ + /// + /// Set values for font axes of the format. + /// + /// List of font axis values. + /// Number of font axis values. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontAxisValues)( + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount + ) PURE; + + /// + /// Get the number of axes set on the format. + /// + STDMETHOD_(UINT32, GetFontAxisValueCount)() PURE; + + /// + /// Get the list of font axis values on the format. + /// + /// List of font axis values. + /// Maximum number of font axis values to write. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontAxisValues)( + _Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues, + UINT32 fontAxisValueCount + ) PURE; + + /// + /// Get the automatic axis options. + /// + /// + /// Automatic axis options. + /// + STDMETHOD_(DWRITE_AUTOMATIC_FONT_AXES, GetAutomaticFontAxes)() PURE; + + /// + /// Sets the automatic font axis options. + /// + /// Automatic font axis options. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetAutomaticFontAxes)(DWRITE_AUTOMATIC_FONT_AXES automaticFontAxes) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("2397599D-DD0D-4681-BD6A-F4F31EAADE77") IDWriteFontFallback1 : public IDWriteFontFallback +{ + /// + /// Determines an appropriate font to use to render the range of text. + /// + /// The text source implementation holds the text and locale. + /// Length of the text to analyze. + /// Default font collection to use. + /// Family name of the base font. If you pass nullptr, no matching will be done against + /// the base family. + /// List of font axis values. + /// Number of font axis values. + /// Length of text mapped to the mapped font. This will always be less or equal to the + /// input text length and greater than zero (if the text length is non-zero) so that the caller advances at + /// least one character each call. + /// The font face that should be used to render the first mappedLength characters of the text. + /// If it returns null, then no known font can render the text, and mappedLength is the number of unsupported + /// characters to skip. + /// Scale factor to multiply the em size of the returned font by. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(MapCharacters)( + IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_opt_ IDWriteFontCollection* baseFontCollection, + _In_opt_z_ WCHAR const* baseFamilyName, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _Deref_out_range_(0, textLength) UINT32* mappedLength, + _Out_ FLOAT* scale, + _COM_Outptr_ IDWriteFontFace5** mappedFontFace + ) PURE; + + using IDWriteFontFallback::MapCharacters; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS3 + +#if NTDDI_VERSION >= NTDDI_WIN10_RS4 + +interface DWRITE_DECLARE_INTERFACE("DC7EAD19-E54C-43AF-B2DA-4E2B79BA3F7F") IDWriteFontSet2 : public IDWriteFontSet1 +{ + /// + /// Gets the expiration event for the font set, if any. The expiration event is set on a system font set object if + /// it is out of date due to fonts being installed, uninstalled, or updated. The client should handle the event by + /// getting a new system font set. + /// + /// + /// Returns an event handle if called on the system font set, or nullptr if called on a custom font set. + /// + /// + /// The client must not call CloseHandle on the returned event handle. The handle is owned by the font set + /// object, and remains valid as long as the client holds a reference to the font set. The client can wait + /// on the returned event or use RegisterWaitForSingleObject to request a callback when the event is set. + /// + STDMETHOD_(HANDLE, GetExpirationEvent)() PURE; +}; + +interface DWRITE_DECLARE_INTERFACE("A4D055A6-F9E3-4E25-93B7-9E309F3AF8E9") IDWriteFontCollection3 : public IDWriteFontCollection2 +{ + /// + /// Gets the expiration event for the font collection, if any. The expiration event is set on a system font + /// collection object if it is out of date due to fonts being installed, uninstalled, or updated. The client + /// should handle the event by getting a new system font collection. + /// + /// + /// Returns an event handle if called on the system font collection, or nullptr if called on a custom font + /// collection. + /// + /// + /// The client must not call CloseHandle on the returned event handle. The handle is owned by the font collection + /// object, and remains valid as long as the client holds a reference to the font collection. The client can wait + /// on the returned event or use RegisterWaitForSingleObject to request a callback when the event is set. + /// + STDMETHOD_(HANDLE, GetExpirationEvent)() PURE; +}; + +interface DWRITE_DECLARE_INTERFACE("35D0E0B3-9076-4D2E-A016-A91B568A06B4") IDWriteFactory7 : public IDWriteFactory6 +{ + /// + /// Retrieves the set of system fonts. + /// + /// Include downloadable fonts or only locally installed ones. + /// Receives a pointer to the font set object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontSet)( + BOOL includeDownloadableFonts, + _COM_Outptr_ IDWriteFontSet2** fontSet + ) PURE; + + using IDWriteFactory6::GetSystemFontSet; + + /// + /// Retrieves a collection of fonts grouped into families. + /// + /// Include downloadable fonts or only locally installed ones. + /// How to group families in the collection. + /// Receives a pointer to the font collection object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontCollection)( + BOOL includeDownloadableFonts, + DWRITE_FONT_FAMILY_MODEL fontFamilyModel, + _COM_Outptr_ IDWriteFontCollection3** fontCollection + ) PURE; + + using IDWriteFactory6::GetSystemFontCollection; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS4 + +#if NTDDI_VERSION >= NTDDI_WIN10_RS5 + +/// +/// The font source type identifies the mechanism by which a font came to be included in a font set. +/// +enum DWRITE_FONT_SOURCE_TYPE +{ + /// + /// The font source is unknown or is not any of the other defined font source types. + /// + DWRITE_FONT_SOURCE_TYPE_UNKNOWN, + + /// + /// The font source is a font file, which is installed for all users on the device. + /// + DWRITE_FONT_SOURCE_TYPE_PER_MACHINE, + + /// + /// The font source is a font file, which is installed for the current user. + /// + DWRITE_FONT_SOURCE_TYPE_PER_USER, + + /// + /// The font source is an APPX package, which includes one or more font files. + /// The font source name is the full name of the package. + /// + DWRITE_FONT_SOURCE_TYPE_APPX_PACKAGE, + + /// + /// The font source is a font provider for downloadable fonts. + /// + DWRITE_FONT_SOURCE_TYPE_REMOTE_FONT_PROVIDER +}; + +interface DWRITE_DECLARE_INTERFACE("7C073EF2-A7F4-4045-8C32-8AB8AE640F90") IDWriteFontSet3 : public IDWriteFontSet2 +{ + /// + /// Gets the font source type of the specified font. + /// + /// Zero-based index of the font. + STDMETHOD_(DWRITE_FONT_SOURCE_TYPE, GetFontSourceType)(UINT32 fontIndex) PURE; + + /// + /// Gets the length of the font source name for the specified font. + /// + /// Zero-based index of the font. + STDMETHOD_(UINT32, GetFontSourceNameLength)(UINT32 listIndex) PURE; + + /// + /// Copies the font source name for the specified font to an output array. + /// + /// Zero-based index of the font. + /// Character array that receives the string. + /// Size of the array in characters. The size must include space for the terminating + /// null character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSourceName)( + UINT32 listIndex, + _Out_writes_z_(stringBufferSize) WCHAR* stringBuffer, + UINT32 stringBufferSize + ) PURE; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS5 + +#if NTDDI_VERSION >= NTDDI_WIN10_MN + +interface DWRITE_DECLARE_INTERFACE("C4B1FE1B-6E84-47D5-B54C-A597981B06AD") IDWriteFontFace6 : public IDWriteFontFace5 +{ + /// + /// Creates a localized strings object that contains the family names for the font, indexed by locale name. + /// + /// Specifies how fonts are grouped into families, which affects the family name property. + /// Receives a pointer to an object to contains the font family names, indexed by locale. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFamilyNames)( + DWRITE_FONT_FAMILY_MODEL fontFamilyModel, + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + using IDWriteFontFace3::GetFamilyNames; + + /// + /// Creates a localized strings object that contains the face names for the font, indexed by locale name. + /// + /// Specifies how fonts are grouped into families, which affects the face name property. + /// Receives a pointer to an object to contains the font face names, indexed by locale. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFaceNames)( + DWRITE_FONT_FAMILY_MODEL fontFamilyModel, + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + using IDWriteFontFace3::GetFaceNames; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_MN + +#if NTDDI_VERSION >= NTDDI_WIN10_NI + +interface DWRITE_DECLARE_INTERFACE("EEC175FC-BEA9-4C86-8B53-CCBDD7DF0C82") IDWriteFontSet4 : public IDWriteFontSet3 +{ + /// + /// Computes derived font axis values from the specified font weight, stretch, style, and size. + /// + /// Pointer to an optional array of input axis values. Axes present + /// in this array are excluded from the output. This is so explicit axis values take precedence over + /// derived axis values. + /// Size of the array of input axis values. + /// Font weight, used to compute "wght" axis value. + /// Font stretch, used to compute "wdth" axis value. + /// Font style, used to compute "slnt" and "ital" axis values. + /// Font size in DIPs, used to compute "opsz" axis value. If this parameter is zero, + /// no "opsz" axis value is added to the output array. + /// Pointer to an output array to which derived axis values are written. + /// The size of this array must be at least DWRITE_STANDARD_FONT_AXIS_COUNT (5). The return value is + /// the actual number of axis values written to this array. + /// Returns the actual number of derived axis values written to the output array. + /// The caller should concatenate the output axis values to the input axis values (if any), + /// and pass the combined axis values to the GetMatchingFonts method. This does not result in duplicates + /// because the output does not include any axes present in the inputAxisValues array. + /// + STDMETHOD_(UINT32, ConvertWeightStretchStyleToFontAxisValues)( + _In_reads_opt_(inputAxisCount) DWRITE_FONT_AXIS_VALUE const* inputAxisValues, + UINT32 inputAxisCount, + DWRITE_FONT_WEIGHT fontWeight, + DWRITE_FONT_STRETCH fontStretch, + DWRITE_FONT_STYLE fontStyle, + float fontSize, + _Out_writes_to_(DWRITE_STANDARD_FONT_AXIS_COUNT, return) DWRITE_FONT_AXIS_VALUE* outputAxisValues + ) PURE; + + /// + /// Generates a matching font set based on the requested inputs, ordered so that nearer matches are earlier. + /// + /// Font family name. This can be a typographic family name, weight/stretch/style + /// family name, GDI (RBIZ) family name, or full name. + /// Array of font axis values. + /// Number of font axis values. + /// Specifies which simulations (i.e., algorithmic emboldening and/or slant) + /// may be applied to matching fonts to better match the specified axis values. No simulations are applied if + /// this parameter is DWRITE_FONT_SIMULATIONS_NONE (0). + /// Receives a pointer to a newly-created font set, which contains a prioritized + /// list of fonts that match the specified inputs. + /// + /// Standard HRESULT error code. + /// + /// + /// This can yield distinct items that were not in the original font set, including items with simulation flags + /// (if they would be a closer match to the request) and instances that were not named by the font author. + /// Items from the same font resources are collapsed into one, the closest possible match. + /// + STDMETHOD(GetMatchingFonts)( + _In_z_ WCHAR const* familyName, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + DWRITE_FONT_SIMULATIONS allowedSimulations, + _COM_Outptr_ IDWriteFontSet4** matchingFonts + ) PURE; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_NI + +#if NTDDI_VERSION >= NTDDI_WIN10_CU // TODO - set correct DDI version + +/// +/// Contains information about a bitmap associated with an IDWriteBitmapRenderTarget. +/// The bitmap is top-down with 32-bits per pixel and no padding between scan lines. +/// +struct DWRITE_BITMAP_DATA_BGRA32 +{ + UINT32 width; + UINT32 height; + _Field_size_(width * height) UINT32* pixels; +}; + +/// +/// Encapsulates a bitmap which can be used for rendering glyphs. +/// +DWRITE_BEGIN_INTERFACE(IDWriteBitmapRenderTarget2, "C553A742-FC01-44DA-A66E-B8B9ED6C3995") : IDWriteBitmapRenderTarget1 +{ + /// + /// Gets the demensions and a pointer to the system memory bitmap encapsulated by this + /// bitmap render target object. The pointer is owned by the render target object, and + /// remains valid as long as the object exists. + /// + STDMETHOD(GetBitmapData)(_Out_ DWRITE_BITMAP_DATA_BGRA32* bitmapData) PURE; +}; + +/// +/// Defines known feature level for use with the IDWritePaintReader interface and +/// related APIs. A feature level represents a level of functionality. For example, it +/// determines what DWRITE_PAINT_TYPE values might be returned. +/// +/// +/// See the DWRITE_PAINT_TYPE enumeration for which paint types are required for each +/// feature level. +/// +enum DWRITE_PAINT_FEATURE_LEVEL : INT32 +{ + /// + /// No paint API support. + /// + DWRITE_PAINT_FEATURE_LEVEL_NONE = 0, + + /// + /// Specifies a level of functionality corresponding to OpenType COLR version 0. + /// + DWRITE_PAINT_FEATURE_LEVEL_COLR_V0 = 1, + + /// + /// Specifies a level of functionality corresponding to OpenType COLR version 1. + /// + DWRITE_PAINT_FEATURE_LEVEL_COLR_V1 = 2 +}; + +/// +/// Combination of flags specifying attributes of a color glyph or of specific color values in +/// a color glyph. +/// +enum DWRITE_PAINT_ATTRIBUTES +{ + DWRITE_PAINT_ATTRIBUTES_NONE = 0, + + /// + /// Specifies that the color value (or any color value in the glyph) comes from the font's + /// color palette. This means the appearance may depend on the current palette index, which + /// may be important to clients that cache color glyphs. + /// + DWRITE_PAINT_ATTRIBUTES_USES_PALETTE = 0x01, + + /// + /// Specifies that the color value (or any color value in the glyph) comes from the client-specified + /// text color. This means the appearance may depend on the text color, which may be important to + /// clients that cache color glyphs. + /// + DWRITE_PAINT_ATTRIBUTES_USES_TEXT_COLOR = 0x02 +}; +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_PAINT_ATTRIBUTES) +#endif + +/// +/// Represents a color in a color glyph. +/// +struct DWRITE_PAINT_COLOR +{ + /// + /// Color value (not premultiplied). See the colorAttributes member for information about how + /// the color is determined. + /// + DWRITE_COLOR_F value; + + /// + /// If the colorAttributes member is DWRITE_PAINT_ATTRIBUTES_USES_PALETTE, this member is + /// the index of a palette entry in the selected color palette. Otherwise, this member is + /// DWRITE_NO_PALETTE_INDEX (0xFFFF). + /// + UINT16 paletteEntryIndex; + + /// + /// Specifies an alpha value multiplier in the range 0 to 1 that was used to compute the color + /// value. Color glyph descriptions may include alpha values to be multiplied with the alpha + /// values of palette entries. + /// + float alphaMultiplier; + + /// + /// Specifies how the color value is determined. If this member is + /// DWRITE_PAINT_ATTRIBUTES_USES_PALETTE, the color value is determined by getting the color at + /// paletteEntryIndex in the current color palette. The color's alpha value is then multiplied + /// by alphaMultiplier. If a font has multiple color palettes, a client can set the current color + /// palette using the IDWritePaintReader::SetColorPaletteIndex method. A client that uses a custom + /// palette can use the paletteEntryIndex and alphaMultiplier methods to compute the color. If this + /// member is DWRITE_PAINT_ATTRIBUTES_USES_TEXT_COLOR, the color value is equal to the text + /// foreground color, which can be set using the IDWritePaintReader::SetTextColor method. + /// + DWRITE_PAINT_ATTRIBUTES colorAttributes; +}; + +/// +/// Specifies a composite mode for combining source and destination paint elements in a +/// color glyph. These are taken from the W3C Compositing and Blending Level 1 specification. +/// +enum DWRITE_COLOR_COMPOSITE_MODE +{ + // Porter-Duff modes. + DWRITE_COLOR_COMPOSITE_CLEAR, + DWRITE_COLOR_COMPOSITE_SRC, + DWRITE_COLOR_COMPOSITE_DEST, + DWRITE_COLOR_COMPOSITE_SRC_OVER, + DWRITE_COLOR_COMPOSITE_DEST_OVER, + DWRITE_COLOR_COMPOSITE_SRC_IN, + DWRITE_COLOR_COMPOSITE_DEST_IN, + DWRITE_COLOR_COMPOSITE_SRC_OUT, + DWRITE_COLOR_COMPOSITE_DEST_OUT, + DWRITE_COLOR_COMPOSITE_SRC_ATOP, + DWRITE_COLOR_COMPOSITE_DEST_ATOP, + DWRITE_COLOR_COMPOSITE_XOR, + DWRITE_COLOR_COMPOSITE_PLUS, + + // Separable color blend modes. + DWRITE_COLOR_COMPOSITE_SCREEN, + DWRITE_COLOR_COMPOSITE_OVERLAY, + DWRITE_COLOR_COMPOSITE_DARKEN, + DWRITE_COLOR_COMPOSITE_LIGHTEN, + DWRITE_COLOR_COMPOSITE_COLOR_DODGE, + DWRITE_COLOR_COMPOSITE_COLOR_BURN, + DWRITE_COLOR_COMPOSITE_HARD_LIGHT, + DWRITE_COLOR_COMPOSITE_SOFT_LIGHT, + DWRITE_COLOR_COMPOSITE_DIFFERENCE, + DWRITE_COLOR_COMPOSITE_EXCLUSION, + DWRITE_COLOR_COMPOSITE_MULTIPLY, + + // Non-separable color blend modes. + DWRITE_COLOR_COMPOSITE_HSL_HUE, + DWRITE_COLOR_COMPOSITE_HSL_SATURATION, + DWRITE_COLOR_COMPOSITE_HSL_COLOR, + DWRITE_COLOR_COMPOSITE_HSL_LUMINOSITY +}; + +/// +/// Identifies a type of paint element in a color glyph. A color glyph's visual representation +/// is defined by a tree of paint elements. A paint element's properties are specified by a +/// DWRITE_PAINT_ELEMENT structure, which combines a paint type an a union. +/// +/// +/// For more information about each paint type, see DWRITE_PAINT_ELEMENT. +/// +enum DWRITE_PAINT_TYPE +{ + // The following paint types may be returned for color feature levels greater than + // or equal to DWRITE_PAINT_FEATURE_LEVEL_COLR_V0. + DWRITE_PAINT_TYPE_NONE, + DWRITE_PAINT_TYPE_LAYERS, + DWRITE_PAINT_TYPE_SOLID_GLYPH, + + // The following paint types may be returned for color feature levels greater than + // or equal to DWRITE_PAINT_FEATURE_LEVEL_COLR_V1. + DWRITE_PAINT_TYPE_SOLID, + DWRITE_PAINT_TYPE_LINEAR_GRADIENT, + DWRITE_PAINT_TYPE_RADIAL_GRADIENT, + DWRITE_PAINT_TYPE_SWEEP_GRADIENT, + DWRITE_PAINT_TYPE_GLYPH, + DWRITE_PAINT_TYPE_COLOR_GLYPH, + DWRITE_PAINT_TYPE_TRANSFORM, + DWRITE_PAINT_TYPE_COMPOSITE +}; + +/// +/// Specifies properties of a paint element, which is one node in a visual tree associated +/// with a color glyph. This is passed as an output parameter to various IDWritePaintReader +/// methods. +/// +/// +/// For a detailed description of how paint elements should be rendered, see the OpenType COLR +/// table specification. Comments below reference the COLR paint record formats associated with +/// each paint type. +/// +/// Note that this structure (and its size) may differ for different versions of the API, as +/// newer versions may have additional union members for new paint types. For this reason, +/// IDWritePaintReader methods that take a DWRITE_PAINT_ELEMENT output parameter also take a +/// structSize parameter, for which the caller should specify actual size of the structure +/// allocated by the caller, i.e., sizeof(DWRITE_PAINT_ELEMENT). Clients should use caution +/// when passing DWRITE_PAINT_ELEMENT objects between components that may have been compiled +/// against different versions of this header file. +/// +struct DWRITE_PAINT_ELEMENT +{ + /// + /// Specifies the paint type, and thus which member of the union is valid. + /// + DWRITE_PAINT_TYPE paintType; + + /// + /// Specifies type-specific properties of the paint element. + /// + union PAINT_UNION + { + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_LAYERS. + /// Contains one or more child paint elements to be drawn in bottom-up order. + /// + /// + /// This corresponds to a PaintColrLayers record in the OpenType COLR table. + /// Or it may correspond to a BaseGlyph record defined by COLR version 0. + /// + struct PAINT_LAYERS + { + /// + /// Number of child paint elements in bottom-up order. Use the IDWritePaintReader + /// interface's MoveFirstChild and MoveNextSibling methods to retrieve the child paint + /// elements. Use the MoveParent method to return to the parent element. + /// + UINT32 childCount; + } layers; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_SOLID_GLYPH. + /// Specifies a glyph with a solid color fill. + /// This paint element has no child elements. + /// + /// + /// This corresponds to a combination of two paint records in the OpenType COLR table: + /// a PaintGlyph record, which references either a PaintSolid or PaintVarSolid record. + /// Or it may correspond to a Layer record defined by COLR version 0. + /// + struct PAINT_SOLID_GLYPH + { + /// + /// Glyph index defining the shape to be filled. + /// + UINT32 glyphIndex; + + /// + /// Glyph color used to fill the glyph shape. + /// + DWRITE_PAINT_COLOR color; + } solidGlyph; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_SOLID. + /// Specifies a solid color used to fill the current shape or clip. + /// This paint element has no child elements. + /// + /// + /// This corresponds to a PaintSolid or PaintVarSolid record in the OpenType COLR table. + /// + DWRITE_PAINT_COLOR solid; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_LINEAR_GRADIENT. + /// Specifies a linear gradient used to fill the current shape or clip. + /// This paint element has no child elements. + /// + /// + /// This corresponds to a PaintLinearGradient or PaintVarLinearGradient record in the OpenType + /// COLR table. + /// + struct PAINT_LINEAR_GRADIENT + { + /// + /// D2D1_EXTEND_MODE value speciying how colors outside the interval are defined. + /// + UINT32 extendMode; + + /// + /// Number of gradient stops. Use the IDWritePaintReader::GetGradientStops method to + /// get the gradient stops. + /// + UINT32 gradientStopCount; + + /// + /// X coordinate of the start point of the color line. + /// + float x0; + + /// + /// Y coordinate of the start point of the color line. + /// + float y0; + + /// + /// X coordinate of the end point of the color line. + /// + float x1; + + /// + /// Y coordinate of the end point of the color line. + /// + float y1; + + /// + /// X coordinate of the rotation point of the color line. + /// + float x2; + + /// + /// Y coordinate of the rotation point of the color line. + /// + float y2; + } linearGradient; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_RADIAL_GRADIENT. + /// Specifies a radial gradient used to fill the current shape or clip. + /// This paint element has no child elements. + /// + /// + /// This corresponds to a PaintRadialGradient or PaintVarRadialGradient record in the OpenType + /// COLR table. + /// + struct PAINT_RADIAL_GRADIENT + { + /// + /// D2D1_EXTEND_MODE value speciying how colors outside the interval are defined. + /// + UINT32 extendMode; + + /// + /// Number of gradient stops. Use the IDWritePaintReader::GetGradientStops method to + /// get the gradient stops. + /// + UINT32 gradientStopCount; + + /// + /// Center X coordinate of the start circle. + /// + float x0; + + /// + /// Center Y coordinate of the start circle. + /// + float y0; + + /// + /// Radius of the start circle. + /// + float radius0; + + /// + /// Center X coordinate of the end circle. + /// + float x1; + + /// + /// Center Y coordinate of the end circle. + /// + float y1; + + /// + /// Radius of the end circle. + /// + float radius1; + } radialGradient; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_SWEEP_GRADIENT. + /// Specifies a sweep gradient used to fill the current shape or clip. + /// This paint element has no child elements. + /// + /// + /// This corresponds to a PaintSweepGradient or PaintVarSweepGradient record in the OpenType + /// COLR table. + /// + struct PAINT_SWEEP_GRADIENT + { + /// + /// D2D1_EXTEND_MODE value speciying how colors outside the interval are defined. + /// + UINT32 extendMode; + + /// + /// Number of gradient stops. Use the IDWritePaintReader::GetGradientStops method to + /// get the gradient stops. + /// + UINT32 gradientStopCount; + + /// + /// Center X coordinate. + /// + float centerX; + + /// + /// Center Y coordinate. + /// + float centerY; + + /// + /// Start of the angular range of the gradient, measured in counter-clockwise degrees + /// from the direction of the positive x axis. + /// + float startAngle; + + /// + /// End of the angular range of the gradient, measured in counter-clockwise degrees + /// from the direction of the positive x axis. + /// + float endAngle; + } sweepGradient; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_GLYPH. + /// Specifies a glyph shape to be filled or, equivalently, a clip region. + /// This paint element has one child element. + /// + /// + /// The child paint element defines how the glyph shape is filled. The child element can be a single paint + /// element, such as a linear gradient. Or the child element can be the root of a visual tree to be rendered + /// with the glyph shape as a clip region. + /// This corresponds to a PaintGlyph record in the OpenType COLR table. + /// + struct PAINT_GLYPH + { + /// + /// Glyph index of the glyph that defines the shape to be filled. + /// + UINT32 glyphIndex; + } glyph; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_COLOR_GLYPH. + /// Specifies another color glyph, used as a reusable component. + /// This paint element has one child element, which is the root paint element of the specified color glyph. + /// + /// + /// This corresponds to a PaintColorGlyph record in the OpenType COLR table. + /// + struct PAINT_COLOR_GLYPH + { + /// + /// Glyph index of the referenced color glyph. + /// + UINT32 glyphIndex; + + /// + /// Clip box of the referenced color glyph, in ems. This is an empty rectangle of the color glyph does + /// not specify a clip box. If it is not an empty rect, the client is required to clip the child content + /// to this box. + /// + D2D_RECT_F clipBox; + } colorGlyph; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_TRANSFORM. + /// Specifies an affine transform to be applied to child content. + /// This paint element has one child element, which is the transformed content. + /// + /// + /// This corresponds to paint formats 12 through 31 in the OpenType COLR table. + /// + DWRITE_MATRIX transform; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_COMPOSITE. + /// Combines the two child paint elements using the specified compositing or blending mode. + /// This paint element has two child elements. The first child is the paint source. The + /// second child is the paint destination (or backdrop). + /// + /// + /// This corresponds to a PaintComposite record in the OpenType COLR table. + /// + struct PAINT_COMPOSITE + { + /// + /// Specifies the compositing or blending mode. + /// + DWRITE_COLOR_COMPOSITE_MODE mode; + } composite; + } paint; +}; + +struct D2D1_GRADIENT_STOP; + +/// +/// Interface used to read color glyph data for a specific font. A color glyph is +/// represented as a visual tree of paint elements. +/// +DWRITE_BEGIN_INTERFACE(IDWritePaintReader, "8128E912-3B97-42A5-AB6C-24AAD3A86E54") : IUnknown +{ + /// + /// Sets the current glyph and positions the reader on the root paint element of the + /// selected glyph's visual tree. + /// + /// Glyph index to get the color glyph representation for. + /// Receives information about the root paint element of the + /// glyph's visual tree. + /// Size of the DWRITE_PAINT_ELEMENT structure, in bytes. + /// Receives a precomputed glyph box (in ems) for the specified glyph, + /// if one is specified by the font. Otherwise, the glyph box is set to an empty rectangle + /// (all zeros). If a non-empty clip box is specified, the client must clip the color + /// glyph's representation to the specified box. + /// Receives optional paint attributes for the glyph. + /// + /// Standard HRESULT error code. + /// + /// + /// If the specified glyph index is not a color glyph, the method succeeds, but the paintType + /// member of the DWRITE_PAINT_ELEMENT structure is set to DWRITE_PAINT_TYPE_NONE. In this + /// case, the application should draw the input glyph as a non-color glyph. + /// + STDMETHOD(SetCurrentGlyph)( + UINT32 glyphIndex, + _Out_writes_bytes_(structSize) DWRITE_PAINT_ELEMENT* paintElement, + UINT32 structSize, + _Out_ D2D_RECT_F* clipBox, + _Out_opt_ DWRITE_PAINT_ATTRIBUTES* glyphAttributes = nullptr + ) PURE; + + // Inline overload of SetCurrentGlyph, in which structSize is implied. + HRESULT SetCurrentGlyph( + UINT32 glyphIndex, + _Out_ DWRITE_PAINT_ELEMENT* paintElement, + _Out_ D2D_RECT_F* clipBox, + _Out_opt_ DWRITE_PAINT_ATTRIBUTES* glyphAttributes = nullptr + ) + { + return SetCurrentGlyph( + glyphIndex, + paintElement, + sizeof(DWRITE_PAINT_ELEMENT), + clipBox, + glyphAttributes + ); + } + + /// + /// Sets the client-defined text color. The default value is transparent black. Changing the text color + /// can affect the appearance of a glyph if its definition uses the current text color. If this is the + /// case, the SetCurrentGlyph method returns the DWRITE_PAINT_ATTRIBUTES_USES_TEXT_COLOR flag via the + /// glyphAttributes output parameter. + /// + /// Specifies the text color. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetTextColor)( + DWRITE_COLOR_F const& textColor + ) PURE; + + /// + /// Sets the current color palette index. The default value is zero. Changing the palette index can affect + /// the appearance of a glyph if its definition references colors in the color palette. If this is the case, + /// the SetCurrentGlyph method returns the DWRITE_PAINT_ATTRIBUTES_USES_PALETTE flag via the glyphAttributes + /// output parameter. + /// + /// Specifies the color palette index. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetColorPaletteIndex)( + UINT32 colorPaletteIndex + ) PURE; + + /// + /// Sets a custom color palette with client-defined palette entries instead of using a font-defined color + /// palette. Changing the color palette can affect the appearance of a glyph if its definition references + /// colors in the color palette. If this is the case, the SetCurrentGlyph method returns the + /// DWRITE_PAINT_ATTRIBUTES_USES_PALETTE flag via the glyphAttributes output parameter. + /// + /// Array of palette entries for the client-defined color palette. + /// Size of the paletteEntries array. This must equal the font's palette + /// entry count as returned by IDWriteFontFace2::GetPaletteEntryCount. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetCustomColorPalette)( + _In_reads_(paletteEntryCount) DWRITE_COLOR_F const* paletteEntries, + UINT32 paletteEntryCount + ) PURE; + + /// + /// Sets the current position in the visual tree to the first child of the current paint element, and returns + /// the newly-selected element's properties via the paintElement output parameter. + /// + /// Receives the properties of the newly-selected element. + /// Size of the DWRITE_PAINT_ELEMENT structure, in bytes. + /// + /// Standard HRESULT error code. The return value is E_INVALIDARG if the current paint element doesn't have + /// any children. + /// + /// + /// Whether a paint element has children (and how many) can be determined a priori from its paint type and + /// properties. For more information, see DWRITE_PAINT_ELEMENT. + /// + STDMETHOD(MoveToFirstChild)( + _Out_writes_bytes_(structSize) DWRITE_PAINT_ELEMENT* paintElement, + UINT32 structSize = sizeof(DWRITE_PAINT_ELEMENT) + ) PURE; + + /// + /// Sets the current position in the visual tree to the next sibling of the current paint element, and returns + /// the newly-selected element's properties via the paintElement output parameter. + /// + /// Receives the properties of the newly-selected element. + /// Size of the DWRITE_PAINT_ELEMENT structure, in bytes. + /// + /// Standard HRESULT error code. The return value is E_INVALIDARG if the current paint element doesn't have + /// a next sibling. + /// + /// + /// Whether a paint element has children (and how many) can be determined a priori from its paint type and + /// properties. For more information, see DWRITE_PAINT_ELEMENT. + /// + STDMETHOD(MoveToNextSibling)( + _Out_writes_bytes_(structSize) DWRITE_PAINT_ELEMENT* paintElement, + UINT32 structSize = sizeof(DWRITE_PAINT_ELEMENT) + ) PURE; + + /// + /// Sets the current position in the visual tree to the parent of the current paint element. + /// + /// + /// Standard HRESULT error code. The return value is E_INVALIDARG if the current paint element is the root + /// element of the visual tree. + /// + STDMETHOD(MoveToParent)() PURE; + + /// + /// Returns gradient stops of the current paint element. + /// + /// Index of the first gradient stop to get. + /// Number of gradient stops to get. + /// Receives the gradient stops. + /// Standard HRESULT error code. + /// Gradient stops are guaranteed to be in ascending order by position. + STDMETHOD(GetGradientStops)( + UINT32 firstGradientStopIndex, + UINT32 gradientStopCount, + _Out_writes_(gradientStopCount) D2D1_GRADIENT_STOP* gradientStops + ) PURE; + + /// + /// Returns color information about each gradient stop, such as palette indices. + /// + /// Index of the first gradient stop to get. + /// Number of gradient stops to get. + /// Receives the gradient stop colors. + /// Standard HRESULT error code. + STDMETHOD(GetGradientStopColors)( + UINT32 firstGradientStopIndex, + UINT32 gradientStopCount, + _Out_writes_(gradientStopCount) DWRITE_PAINT_COLOR* gradientStopColors + ) PURE; +}; + +DWRITE_BEGIN_INTERFACE(IDWriteFontFace7, "3945B85B-BC95-40F7-B72C-8B73BFC7E13B") : IDWriteFontFace6 +{ + /// + /// Returns the maximum paint feature level supported for the specified glyph image format. + /// Possible values are specified by the DWRITE_PAINT_FEATURE_LEVEL enumeration, + /// but additional feature levels may be added over time. + /// + /// Glyph image format to get the paint feature level for. + /// The return value is zero if the image format is not supported by the IDWritePaintReader API, + /// or if the font doesn't contain image data in that format. + STDMETHOD_(DWRITE_PAINT_FEATURE_LEVEL, GetPaintFeatureLevel)( + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat + ) PURE; + + /// + /// Creates a paint reader object, which can be used to retrieve vector graphic information + /// for color glyphs in the font. + /// + /// Specifies the type of glyph data the reader will obtain. The only + /// glyph image format currently supported by this method is DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE. + /// Specifies the maximum paint feature level supported by the client. + /// This affects the types of paint elements that may be returned by the paint reader. + /// Receives a pointer to the newly-created object. + /// Standard HRESULT error code. + STDMETHOD(CreatePaintReader)( + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat, + DWRITE_PAINT_FEATURE_LEVEL paintFeatureLevel, + _COM_Outptr_ IDWritePaintReader** paintReader + ) PURE; +}; + + +DWRITE_BEGIN_INTERFACE(IDWriteFactory8, "EE0A7FB5-DEF4-4C23-A454-C9C7DC878398") : IDWriteFactory7 +{ + /// + /// Translates a glyph run to a sequence of color glyph runs, which can be + /// rendered to produce a color representation of the original "base" run. + /// + /// Horizontal and vertical origin of the base glyph run in + /// pre-transform coordinates. + /// Pointer to the original "base" glyph run. + /// Optional glyph run description. + /// Which data formats TranslateColorGlyphRun + /// should split the runs into. + /// Paint feature level supported by the caller. Used + /// when desiredGlyphImageFormats includes DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE. See + /// DWRITE_PAINT_FEATURE_LEVEL for more information. + /// Measuring mode, needed to compute the origins + /// of each glyph. + /// Matrix converting from the client's + /// coordinate space to device coordinates (pixels), i.e., the world transform + /// multiplied by any DPI scaling. + /// Zero-based index of the color palette to use. + /// Valid indices are less than the number of palettes in the font, as returned + /// by IDWriteFontFace2::GetColorPaletteCount. + /// If the function succeeds, receives a pointer + /// to an enumerator object that can be used to obtain the color glyph runs. + /// If the base run has no color glyphs, then the output pointer is NULL + /// and the method returns DWRITE_E_NOCOLOR. + /// + /// Returns DWRITE_E_NOCOLOR if the font has no color information, the glyph run + /// does not contain any color glyphs, or the specified color palette index + /// is out of range. In this case, the client should render the original glyph + /// run. Otherwise, returns a standard HRESULT error code. + /// + /// + /// The old IDWriteFactory2::TranslateColorGlyphRun is equivalent to passing + /// DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE|CFF|COLR. + /// + STDMETHOD(TranslateColorGlyphRun)( + D2D1_POINT_2F baselineOrigin, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_opt_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, + DWRITE_GLYPH_IMAGE_FORMATS desiredGlyphImageFormats, + DWRITE_PAINT_FEATURE_LEVEL paintFeatureLevel, + DWRITE_MEASURING_MODE measuringMode, + _In_opt_ DWRITE_MATRIX const* worldAndDpiTransform, + UINT32 colorPaletteIndex, + _COM_Outptr_ IDWriteColorGlyphRunEnumerator1** colorEnumerator + ) PURE; +}; + +/// +/// Encapsulates a bitmap which can be used for rendering glyphs. +/// +DWRITE_BEGIN_INTERFACE(IDWriteBitmapRenderTarget3, "AEEC37DB-C337-40F1-8E2A-9A41B167B238") : IDWriteBitmapRenderTarget2 +{ + /// + /// Returns the paint feature level supported by this render target. + /// A client can pass the return value of this method to IDWriteFactory8::TranslateColorGlyphRun. + /// + STDMETHOD_(DWRITE_PAINT_FEATURE_LEVEL, GetPaintFeatureLevel)() PURE; + + /// + /// Draws a glyph run in a "paint" image format returned by IDWriteColorGlyphRunEnumerator1. + /// + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Specifies measuring mode for positioning glyphs in the run. + /// The glyph run to draw. + /// The image format of the color glyph run, as returned by + /// IDWriteColorGlyphRunEnumerator1. This must be one of the "paint" image formats. + /// Foreground color of the text, used in cases where a color glyph + /// uses the text color. + /// Zero-based index of the font-defined color palette to use. + /// Optional rectangle that receives the bounding box (in pixels not DIPs) of all the pixels affected by + /// drawing the glyph run. The black box rectangle may extend beyond the dimensions of the bitmap. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(DrawPaintGlyphRun)( + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_MEASURING_MODE measuringMode, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat, + COLORREF textColor, + UINT32 colorPaletteIndex = 0, + _Out_opt_ RECT* blackBoxRect = NULL + ) PURE; + + /// + /// Draws a glyph run, using color representations of glyphs if available in the font. + /// + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Specifies measuring mode for positioning glyphs in the run. + /// The glyph run to draw. + /// Object that controls rendering behavior. + /// Foreground color of the text. + /// Zero-based index of the font-defined color palette to use. + /// Optional rectangle that receives the bounding box (in pixels not DIPs) of all the pixels affected by + /// drawing the glyph run. The black box rectangle may extend beyond the dimensions of the bitmap. + /// + /// Standard HRESULT error code. + /// + /// + /// This method internally calls TranslateColorGlyphRun and then automatically calls the appropriate + /// lower-level methods to render monochrome or color glyph runs. + /// + STDMETHOD(DrawGlyphRunWithColorSupport)( + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_MEASURING_MODE measuringMode, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_ IDWriteRenderingParams* renderingParams, + COLORREF textColor, + UINT32 colorPaletteIndex = 0, + _Out_opt_ RECT* blackBoxRect = NULL + ) PURE; +}; + +#endif + +#endif // DWRITE_3_H_INCLUDED diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dx95type.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dx95type.h new file mode 100644 index 0000000000000000000000000000000000000000..c51ee25260497a3be2a0c9c2a0dc1c5bdfb7466f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dx95type.h @@ -0,0 +1,789 @@ +/******************************Module*Header*******************************\ +* +* Module Name: dx95type.h +* +* Portability module for NT kernel-mode DirectX components created from +* Win95 sources +* +* Copyright (c) Microsoft Corp. All Rights Reserved. +* +\**************************************************************************/ + +#ifndef __DX95TYPE_H__ +#define __DX95TYPE_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// Basic includes +#ifndef NODXINCLUDES +#ifdef WINNT +#include +// Includes ddrawint.h and d3dnthal.h +#include +#else // WINNT +#include +#include +#endif // WINNT +#endif // NODXINCLUDES + +// Simple memory allocation of N bytes +#ifndef NODXMALLOC +#ifdef WINNT +#define DXMALLOC(n) EngAllocMem(0, n, 'amxD') +#define DXMALLOCZ(n) EngAllocMem(FL_ZERO_MEMORY, n, 'amxD') +#define DXFREE(p) EngFreeMem(p) +#else // WINNT +#define DXMALLOC(n) HeapAlloc(GetProcessHeap(), 0, n) +#define DXMALLOCZ(n) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, n) +#define DXFREE(n) HeapFree(GetProcessHeap(), 0, n) +#endif // WINNT +#endif // NODXMALLOC + +// Surface and palette access macros +#ifndef NODXLCL +#ifdef WINNT +#define DDS_LCL(pdds) (pdds) +#define DDP_LCL(pddp) (pddp) +#else // WINNT +#define DDS_LCL(pdds) (((DDRAWI_DDRAWSURFACE_INT *)(pdds))->lpLcl) +#define DDP_LCL(pddp) (((DDRAWI_DDRAWPALETTE_INT *)(pddp))->lpLcl) +#endif // WINNT +#define DDS_LCL_OR_NULL(pdds) ((pdds) == NULL ? NULL : DDS_LCL(pdds)) +#define DDP_LCL_OR_NULL(pddp) ((pddp) == NULL ? NULL : DDP_LCL(pddp)) +#endif // NODXLCL + +// Typedefs and defines to create a Win95-like compilation environment + +#ifndef NODX95TYPES +#ifdef WINNT + +typedef D3DNTHALDEVICEDESC_V1 D3DDEVICEDESC_V1; +typedef PDD_SURFACE_LOCAL LPDDRAWI_DDRAWSURFACE_LCL; +typedef PDD_SURFACE_MORE LPDDRAWI_DDRAWSURFACE_MORE; +typedef PDD_SURFACE_GLOBAL LPDDRAWI_DDRAWSURFACE_GBL; +typedef PDD_DIRECTDRAW_GLOBAL LPDDRAWI_DIRECTDRAW_GBL; +typedef PDD_ATTACHLIST LPATTACHLIST; + +typedef DDNTCORECAPS DDCORECAPS; +typedef PDDNTCORECAPS LPDDCORECAPS; +typedef DD_HALINFO DDHALINFO; +typedef PDD_HALINFO LPDDHALINFO; +typedef DD_MORECAPS DDMORECAPS; +typedef PDD_MORECAPS LPDDMORECAPS; + +// DirectDraw HAL function data structures + +typedef PDD_CREATEPALETTEDATA LPDDHAL_CREATEPALETTEDATA; +typedef PDD_CREATESURFACEDATA LPDDHAL_CREATESURFACEDATA; +typedef PDD_CREATESURFACEEXDATA LPDDHAL_CREATESURFACEEXDATA; +typedef PDD_CANCREATESURFACEDATA LPDDHAL_CANCREATESURFACEDATA; +typedef PDD_WAITFORVERTICALBLANKDATA LPDDHAL_WAITFORVERTICALBLANKDATA; +typedef PDD_DESTROYDRIVERDATA LPDDHAL_DESTROYDRIVERDATA; +typedef PDD_SETMODEDATA LPDDHAL_SETMODEDATA; +typedef PDD_DRVSETCOLORKEYDATA LPDDHAL_DRVSETCOLORKEYDATA; +typedef PDD_GETSCANLINEDATA LPDDHAL_GETSCANLINEDATA; +typedef PDD_MAPMEMORYDATA LPDDHAL_MAPMEMORYDATA; +typedef PDD_SETEXCLUSIVEMODEDATA LPDDHAL_SETEXCLUSIVEMODEDATA; +typedef PDD_FLIPTOGDISURFACEDATA LPDDHAL_FLIPTOGDISURFACEDATA; +typedef PDD_UPDATENONLOCALHEAPDATA LPDDHAL_UPDATENONLOCALHEAPDATA; +typedef PDD_GETHEAPALIGNMENTDATA LPDDHAL_GETHEAPALIGNMENTDATA; +typedef DD_CREATEPALETTEDATA DDHAL_CREATEPALETTEDATA; +typedef DD_CREATESURFACEDATA DDHAL_CREATESURFACEDATA; +typedef DD_CREATESURFACEEXDATA DDHAL_CREATESURFACEEXDATA; +typedef DD_CANCREATESURFACEDATA DDHAL_CANCREATESURFACEDATA; +typedef DD_WAITFORVERTICALBLANKDATA DDHAL_WAITFORVERTICALBLANKDATA; +typedef DD_DRVSETCOLORKEYDATA DDHAL_DRVSETCOLORKEYDATA; +typedef DD_GETSCANLINEDATA DDHAL_GETSCANLINEDATA; +typedef DD_MAPMEMORYDATA DDHAL_MAPMEMORYDATA; +typedef DD_SETEXCLUSIVEMODEDATA DDHAL_SETEXCLUSIVEMODEDATA; +typedef DD_FLIPTOGDISURFACEDATA DDHAL_FLIPTOGDISURFACEDATA; +typedef DD_UPDATENONLOCALHEAPDATA DDHAL_UPDATENONLOCALHEAPDATA; + +typedef PDD_DESTROYPALETTEDATA LPDDHAL_DESTROYPALETTEDATA; +typedef PDD_SETENTRIESDATA LPDDHAL_SETENTRIESDATA; +typedef DD_DESTROYPALETTEDATA DDHAL_DESTROYPALETTEDATA; +typedef DD_SETENTRIESDATA DDHAL_SETENTRIESDATA; + +typedef PDD_BLTDATA LPDDHAL_BLTDATA; +typedef PDD_LOCKDATA LPDDHAL_LOCKDATA; +typedef PDD_UNLOCKDATA LPDDHAL_UNLOCKDATA; +typedef PDD_UPDATEOVERLAYDATA LPDDHAL_UPDATEOVERLAYDATA; +typedef PDD_SETOVERLAYPOSITIONDATA LPDDHAL_SETOVERLAYPOSITIONDATA; +typedef PDD_SETPALETTEDATA LPDDHAL_SETPALETTEDATA; +typedef PDD_FLIPDATA LPDDHAL_FLIPDATA; +typedef PDD_DESTROYSURFACEDATA LPDDHAL_DESTROYSURFACEDATA; +typedef PDD_SETCLIPLISTDATA LPDDHAL_SETCLIPLISTDATA; +typedef PDD_ADDATTACHEDSURFACEDATA LPDDHAL_ADDATTACHEDSURFACEDATA; +typedef PDD_SETCOLORKEYDATA LPDDHAL_SETCOLORKEYDATA; +typedef PDD_GETBLTSTATUSDATA LPDDHAL_GETBLTSTATUSDATA; +typedef PDD_GETFLIPSTATUSDATA LPDDHAL_GETFLIPSTATUSDATA; +typedef PDD_GETAVAILDRIVERMEMORYDATA LPDDHAL_GETAVAILDRIVERMEMORYDATA; +typedef PDD_GETDRIVERINFODATA LPDDHAL_GETDRIVERINFODATA; +typedef PDD_GETDRIVERSTATEDATA LPDDHAL_GETDRIVERSTATEDATA; +typedef PDD_DESTROYDDLOCALDATA LPDDHAL_DESTROYDDLOCALDATA; +typedef DD_BLTDATA DDHAL_BLTDATA; +typedef DD_LOCKDATA DDHAL_LOCKDATA; +typedef DD_UNLOCKDATA DDHAL_UNLOCKDATA; +typedef DD_UPDATEOVERLAYDATA DDHAL_UPDATEOVERLAYDATA; +typedef DD_SETOVERLAYPOSITIONDATA DDHAL_SETOVERLAYPOSITIONDATA; +typedef DD_SETPALETTEDATA DDHAL_SETPALETTEDATA; +typedef DD_FLIPDATA DDHAL_FLIPDATA; +typedef DD_DESTROYSURFACEDATA DDHAL_DESTROYSURFACEDATA; +typedef DD_SETCLIPLISTDATA DDHAL_SETCLIPLISTDATA; +typedef DD_ADDATTACHEDSURFACEDATA DDHAL_ADDATTACHEDSURFACEDATA; +typedef DD_SETCOLORKEYDATA DDHAL_SETCOLORKEYDATA; +typedef DD_GETBLTSTATUSDATA DDHAL_GETBLTSTATUSDATA; +typedef DD_GETFLIPSTATUSDATA DDHAL_GETFLIPSTATUSDATA; +typedef DD_GETAVAILDRIVERMEMORYDATA DDHAL_GETAVAILDRIVERMEMORYDATA; +typedef DD_GETDRIVERINFODATA DDHAL_GETDRIVERINFODATA; +typedef DD_GETDRIVERSTATEDATA DDHAL_GETDRIVERSTATEDATA; +typedef DD_DESTROYDDLOCALDATA DDHAL_DESTROYDDLOCALDATA; + +typedef PDD_CANCREATEVPORTDATA LPDDHAL_CANCREATEVPORTDATA; +typedef PDD_CREATEVPORTDATA LPDDHAL_CREATEVPORTDATA; +typedef PDD_FLIPVPORTDATA LPDDHAL_FLIPVPORTDATA; +typedef PDD_GETVPORTCONNECTDATA LPDDHAL_GETVPORTCONNECTDATA; +typedef PDD_GETVPORTBANDWIDTHDATA LPDDHAL_GETVPORTBANDWIDTHDATA; +typedef PDD_GETVPORTINPUTFORMATDATA LPDDHAL_GETVPORTINPUTFORMATDATA; +typedef PDD_GETVPORTOUTPUTFORMATDATA LPDDHAL_GETVPORTOUTPUTFORMATDATA; +typedef PDD_GETVPORTFIELDDATA LPDDHAL_GETVPORTFIELDDATA; +typedef PDD_GETVPORTLINEDATA LPDDHAL_GETVPORTLINEDATA; +typedef PDD_DESTROYVPORTDATA LPDDHAL_DESTROYVPORTDATA; +typedef PDD_GETVPORTFLIPSTATUSDATA LPDDHAL_GETVPORTFLIPSTATUSDATA; +typedef PDD_UPDATEVPORTDATA LPDDHAL_UPDATEVPORTDATA; +typedef PDD_WAITFORVPORTSYNCDATA LPDDHAL_WAITFORVPORTSYNCDATA; +typedef PDD_GETVPORTSIGNALDATA LPDDHAL_GETVPORTSIGNALDATA; +typedef PDD_VPORTCOLORDATA LPDDHAL_VPORTCOLORDATA; +typedef DD_CANCREATEVPORTDATA DDHAL_CANCREATEVPORTDATA; +typedef DD_CREATEVPORTDATA DDHAL_CREATEVPORTDATA; +typedef DD_FLIPVPORTDATA DDHAL_FLIPVPORTDATA; +typedef DD_GETVPORTCONNECTDATA DDHAL_GETVPORTCONNECTDATA; +typedef DD_GETVPORTBANDWIDTHDATA DDHAL_GETVPORTBANDWIDTHDATA; +typedef DD_GETVPORTINPUTFORMATDATA DDHAL_GETVPORTINPUTFORMATDATA; +typedef DD_GETVPORTOUTPUTFORMATDATA DDHAL_GETVPORTOUTPUTFORMATDATA; +typedef DD_GETVPORTFIELDDATA DDHAL_GETVPORTFIELDDATA; +typedef DD_GETVPORTLINEDATA DDHAL_GETVPORTLINEDATA; +typedef DD_DESTROYVPORTDATA DDHAL_DESTROYVPORTDATA; +typedef DD_GETVPORTFLIPSTATUSDATA DDHAL_GETVPORTFLIPSTATUSDATA; +typedef DD_UPDATEVPORTDATA DDHAL_UPDATEVPORTDATA; +typedef DD_WAITFORVPORTSYNCDATA DDHAL_WAITFORVPORTSYNCDATA; +typedef DD_GETVPORTSIGNALDATA DDHAL_GETVPORTSIGNALDATA; +typedef DD_VPORTCOLORDATA DDHAL_VPORTCOLORDATA; + +typedef PDD_COLORCONTROLDATA LPDDHAL_COLORCONTROLDATA; +typedef DD_COLORCONTROLDATA DDHAL_COLORCONTROLDATA; + +typedef PDD_SYNCSURFACEDATA LPDDHAL_SYNCSURFACEDATA; +typedef PDD_SYNCVIDEOPORTDATA LPDDHAL_SYNCVIDEOPORTDATA; +typedef DD_SYNCSURFACEDATA DDHAL_SYNCSURFACEDATA; +typedef DD_SYNCVIDEOPORTDATA DDHAL_SYNCVIDEOPORTDATA; + +typedef PDD_GETMOCOMPGUIDSDATA LPDDHAL_GETMOCOMPGUIDSDATA; +typedef PDD_GETMOCOMPFORMATSDATA LPDDHAL_GETMOCOMPFORMATSDATA; +typedef PDD_CREATEMOCOMPDATA LPDDHAL_CREATEMOCOMPDATA; +typedef PDD_GETMOCOMPCOMPBUFFDATA LPDDHAL_GETMOCOMPCOMPBUFFDATA; +typedef PDD_GETINTERNALMOCOMPDATA LPDDHAL_GETINTERNALMOCOMPDATA; +typedef PDD_BEGINMOCOMPFRAMEDATA LPDDHAL_BEGINMOCOMPFRAMEDATA; +typedef PDD_ENDMOCOMPFRAMEDATA LPDDHAL_ENDMOCOMPFRAMEDATA; +typedef PDD_RENDERMOCOMPDATA LPDDHAL_RENDERMOCOMPDATA; +typedef PDD_QUERYMOCOMPSTATUSDATA LPDDHAL_QUERYMOCOMPSTATUSDATA; +typedef PDD_DESTROYMOCOMPDATA LPDDHAL_DESTROYMOCOMPDATA; +typedef DD_GETMOCOMPGUIDSDATA DDHAL_GETMOCOMPGUIDSDATA; +typedef DD_GETMOCOMPFORMATSDATA DDHAL_GETMOCOMPFORMATSDATA; +typedef DD_CREATEMOCOMPDATA DDHAL_CREATEMOCOMPDATA; +typedef DD_GETMOCOMPCOMPBUFFDATA DDHAL_GETMOCOMPCOMPBUFFDATA; +typedef DD_GETINTERNALMOCOMPDATA DDHAL_GETINTERNALMOCOMPDATA; +typedef DD_BEGINMOCOMPFRAMEDATA DDHAL_BEGINMOCOMPFRAMEDATA; +typedef DD_ENDMOCOMPFRAMEDATA DDHAL_ENDMOCOMPFRAMEDATA; +typedef DD_RENDERMOCOMPDATA DDHAL_RENDERMOCOMPDATA; +typedef DD_QUERYMOCOMPSTATUSDATA DDHAL_QUERYMOCOMPSTATUSDATA; +typedef DD_DESTROYMOCOMPDATA DDHAL_DESTROYMOCOMPDATA; + +// DirectDraw HAL call backs + +typedef PDD_SETCOLORKEY LPDDHAL_SETCOLORKEY; +typedef PDD_CANCREATESURFACE LPDDHAL_CANCREATESURFACE; +typedef PDD_WAITFORVERTICALBLANK LPDDHAL_WAITFORVERTICALBLANK; +typedef PDD_CREATESURFACE LPDDHAL_CREATESURFACE; +typedef PDD_DESTROYDRIVER LPDDHAL_DESTROYDRIVER; +typedef PDD_SETMODE LPDDHAL_SETMODE; +typedef PDD_CREATEPALETTE LPDDHAL_CREATEPALETTE; +typedef PDD_GETSCANLINE LPDDHAL_GETSCANLINE; +typedef PDD_MAPMEMORY LPDDHAL_MAPMEMORY; +typedef PDD_GETAVAILDRIVERMEMORY LPDDHAL_GETAVAILDRIVERMEMORY; +typedef PDD_GETDRIVERINFODATA LPDDHAL_GETDRIVERINFODATA; +typedef PDD_SYNCSURFACEDATA LPDDHAL_SYNCSURFACEDATA; +typedef PDD_SYNCVIDEOPORTDATA LPDDHAL_SYNCVIDEOPORTDATA; +typedef PDD_SETEXCLUSIVEMODE LPDDHAL_SETEXCLUSIVEMODE; +typedef PDD_FLIPTOGDISURFACE LPDDHAL_FLIPTOGDISURFACE; + +typedef PDD_ALPHABLT LPDDHAL_ALPHABLT; +typedef PDD_CREATESURFACEEX LPDDHAL_CREATESURFACEEX; +typedef PDD_GETDRIVERSTATE LPDDHAL_GETDRIVERSTATE; + +typedef PDD_PALCB_DESTROYPALETTE LPDDHALPALCB_DESTROYPALETTE; +typedef PDD_PALCB_SETENTRIES LPDDHALPALCB_SETENTRIES; + +typedef PDD_SURFCB_LOCK LPDDHALSURFCB_LOCK; +typedef PDD_SURFCB_UNLOCK LPDDHALSURFCB_UNLOCK; +typedef PDD_SURFCB_BLT LPDDHALSURFCB_BLT; +typedef PDD_SURFCB_UPDATEOVERLAY LPDDHALSURFCB_UPDATEOVERLAY; +typedef PDD_SURFCB_SETOVERLAYPOSITION LPDDHALSURFCB_SETOVERLAYPOSITION; +typedef PDD_SURFCB_SETPALETTE LPDDHALSURFCB_SETPALETTE; +typedef PDD_SURFCB_FLIP LPDDHALSURFCB_FLIP; +typedef PDD_SURFCB_DESTROYSURFACE LPDDHALSURFCB_DESTROYSURFACE; +typedef PDD_SURFCB_SETCLIPLIST LPDDHALSURFCB_SETCLIPLIST; +typedef PDD_SURFCB_ADDATTACHEDSURFACE LPDDHALSURFCB_ADDATTACHEDSURFACE; +typedef PDD_SURFCB_SETCOLORKEY LPDDHALSURFCB_SETCOLORKEY; +typedef PDD_SURFCB_GETBLTSTATUS LPDDHALSURFCB_GETBLTSTATUS; +typedef PDD_SURFCB_GETFLIPSTATUS LPDDHALSURFCB_GETFLIPSTATUS; + +typedef PDD_VPORTCB_CANCREATEVIDEOPORT LPDDHALVPORTCB_CANCREATEVIDEOPORT; +typedef PDD_VPORTCB_CREATEVIDEOPORT LPDDHALVPORTCB_CREATEVIDEOPORT; +typedef PDD_VPORTCB_FLIP LPDDHALVPORTCB_FLIP; +typedef PDD_VPORTCB_GETBANDWIDTH LPDDHALVPORTCB_GETBANDWIDTH; +typedef PDD_VPORTCB_GETINPUTFORMATS LPDDHALVPORTCB_GETINPUTFORMATS; +typedef PDD_VPORTCB_GETOUTPUTFORMATS LPDDHALVPORTCB_GETOUTPUTFORMATS; +typedef PDD_VPORTCB_GETFIELD LPDDHALVPORTCB_GETFIELD; +typedef PDD_VPORTCB_GETLINE LPDDHALVPORTCB_GETLINE; +typedef PDD_VPORTCB_GETVPORTCONNECT LPDDHALVPORTCB_GETVPORTCONNECT; +typedef PDD_VPORTCB_DESTROYVPORT LPDDHALVPORTCB_DESTROYVPORT; +typedef PDD_VPORTCB_GETFLIPSTATUS LPDDHALVPORTCB_GETFLIPSTATUS; +typedef PDD_VPORTCB_UPDATE LPDDHALVPORTCB_UPDATE; +typedef PDD_VPORTCB_WAITFORSYNC LPDDHALVPORTCB_WAITFORSYNC; +typedef PDD_VPORTCB_GETSIGNALSTATUS LPDDHALVPORTCB_GETSIGNALSTATUS; +typedef PDD_VPORTCB_COLORCONTROL LPDDHALVPORTCB_COLORCONTROL; + +typedef PDD_MOCOMPCB_GETGUIDS LPDDHALMOCOMPCB_GETGUIDS; +typedef PDD_MOCOMPCB_GETFORMATS LPDDHALMOCOMPCB_GETFORMATS; +typedef PDD_MOCOMPCB_CREATE LPDDHALMOCOMPCB_CREATE; +typedef PDD_MOCOMPCB_GETCOMPBUFFINFO LPDDHALMOCOMPCB_GETCOMPBUFFINFO; +typedef PDD_MOCOMPCB_GETINTERNALINFO LPDDHALMOCOMPCB_GETINTERNALINFO; +typedef PDD_MOCOMPCB_BEGINFRAME LPDDHALMOCOMPCB_BEGINFRAME; +typedef PDD_MOCOMPCB_ENDFRAME LPDDHALMOCOMPCB_ENDFRAME; +typedef PDD_MOCOMPCB_RENDER LPDDHALMOCOMPCB_RENDER; +typedef PDD_MOCOMPCB_QUERYSTATUS LPDDHALMOCOMPCB_QUERYSTATUS; +typedef PDD_MOCOMPCB_DESTROY LPDDHALMOCOMPCB_DESTROY; + +typedef DD_CALLBACKS DDHAL_DDCALLBACKS; +typedef DD_PALETTECALLBACKS DDHAL_DDPALETTECALLBACKS; +typedef DD_SURFACECALLBACKS DDHAL_DDSURFACECALLBACKS; +typedef DD_VIDEOPORTCALLBACKS DDHAL_DDVIDEOPORTCALLBACKS; +typedef DD_COLORCONTROLCALLBACKS DDHAL_DDCOLORCONTROLCALLBACKS; +typedef DD_KERNELCALLBACKS DDHAL_DDKERNELCALLBACKS; +typedef DD_MOTIONCOMPCALLBACKS DDHAL_DDMOTIONCOMPCALLBACKS; +typedef DD_MISCELLANEOUS2CALLBACKS DDHAL_DDMISCELLANEOUS2CALLBACKS; +typedef DD_D3DBUFCALLBACKS DDHAL_D3DBUFCALLBACKS; +typedef DD_NTCALLBACKS DDHAL_DDNTCALLBACKS; + +typedef PDD_CALLBACKS LPDDHAL_DDCALLBACKS; +typedef PDD_PALETTECALLBACKS LPDDHAL_DDPALETTECALLBACKS; +typedef PDD_SURFACECALLBACKS LPDDHAL_DDSURFACECALLBACKS; +typedef PDD_VIDEOPORTCALLBACKS LPDDHAL_DDVIDEOPORTCALLBACKS; +typedef PDD_COLORCONTROLCALLBACKS LPDDHAL_DDCOLORCONTROLCALLBACKS; +typedef PDD_KERNELCALLBACKS LPDDHAL_DDKERNELCALLBACKS; +typedef PDD_MOTIONCOMPCALLBACKS LPDDHAL_DDMOTIONCOMPCALLBACKS; +typedef PDD_MISCELLANEOUS2CALLBACKS LPDDHAL_DDMISCELLANEOUS2CALLBACKS; +typedef PDD_D3DBUFCALLBACKS LPDDHAL_D3DBUFCALLBACKS; +typedef PDD_NTCALLBACKS LPDDHAL_DDNTCALLBACKS; + +// bit definition for dwFlags in dwPaletteFlags in D3DHAL_DP2SETPALETTE +#define DDRAWIPAL_256 0x00000001l // 256 entry palette +#define DDRAWIPAL_16 0x00000002l // 16 entry palette +#define DDRAWIPAL_GDI 0x00000004l // palette allocated through GDI +#define DDRAWIPAL_STORED_8 0x00000008l // palette stored as 8bpp/entry +#define DDRAWIPAL_STORED_16 0x00000010l // palette stored as 16bpp/entry +#define DDRAWIPAL_STORED_24 0x00000020l // palette stored as 24bpp/entry +#define DDRAWIPAL_EXCLUSIVE 0x00000040l // palette being used in exclusive mode +#define DDRAWIPAL_INHEL 0x00000080l // palette is done in the hel +#define DDRAWIPAL_DIRTY 0x00000100l // gdi palette out 'o sync +#define DDRAWIPAL_ALLOW256 0x00000200l // can fully update palette +#define DDRAWIPAL_4 0x00000400l // 4 entry palette +#define DDRAWIPAL_2 0x00000800l // 2 entry palette +#define DDRAWIPAL_STORED_8INDEX 0x00001000l // palette stored as 8-bit index into dst palette +#define DDRAWIPAL_ALPHA 0x00002000l // palette entries contain alpha + +typedef D3DNTHAL_CALLBACKS D3DHAL_CALLBACKS; +typedef D3DNTHAL_GLOBALDRIVERDATA D3DHAL_GLOBALDRIVERDATA; +typedef D3DNTHAL_CONTEXTCREATEDATA D3DHAL_CONTEXTCREATEDATA; +typedef D3DNTHAL_CONTEXTDESTROYDATA D3DHAL_CONTEXTDESTROYDATA; +typedef D3DNTHAL_CONTEXTDESTROYALLDATA D3DHAL_CONTEXTDESTROYALLDATA; +typedef D3DNTHAL_SCENECAPTUREDATA D3DHAL_SCENECAPTUREDATA; +typedef D3DNTHAL_TEXTURECREATEDATA D3DHAL_TEXTURECREATEDATA; +typedef D3DNTHAL_TEXTUREDESTROYDATA D3DHAL_TEXTUREDESTROYDATA; +typedef D3DNTHAL_TEXTURESWAPDATA D3DHAL_TEXTURESWAPDATA; +typedef D3DNTHAL_TEXTUREGETSURFDATA D3DHAL_TEXTUREGETSURFDATA; + +typedef D3DNTHAL_CALLBACKS2 D3DHAL_CALLBACKS2; +typedef D3DNTHAL_SETRENDERTARGETDATA D3DHAL_SETRENDERTARGETDATA; + +typedef D3DNTHAL_CALLBACKS3 D3DHAL_CALLBACKS3; +typedef D3DNTHAL_CLEAR2DATA D3DHAL_CLEAR2DATA; +typedef D3DNTHAL_VALIDATETEXTURESTAGESTATEDATA D3DHAL_VALIDATETEXTURESTAGESTATEDATA; +typedef D3DNTHAL_DRAWPRIMITIVES2DATA D3DHAL_DRAWPRIMITIVES2DATA; +typedef D3DNTHAL_D3DEXTENDEDCAPS D3DHAL_D3DEXTENDEDCAPS; + +typedef LPD3DNTHAL_CALLBACKS LPD3DHAL_CALLBACKS; +typedef LPD3DNTHAL_GLOBALDRIVERDATA LPD3DHAL_GLOBALDRIVERDATA; +typedef LPD3DNTHAL_CONTEXTCREATEDATA LPD3DHAL_CONTEXTCREATEDATA; +typedef LPD3DNTHAL_CONTEXTDESTROYDATA LPD3DHAL_CONTEXTDESTROYDATA; +typedef LPD3DNTHAL_CONTEXTDESTROYALLDATA LPD3DHAL_CONTEXTDESTROYALLDATA; +typedef LPD3DNTHAL_SCENECAPTUREDATA LPD3DHAL_SCENECAPTUREDATA; +typedef LPD3DNTHAL_TEXTURECREATEDATA LPD3DHAL_TEXTURECREATEDATA; +typedef LPD3DNTHAL_TEXTUREDESTROYDATA LPD3DHAL_TEXTUREDESTROYDATA; +typedef LPD3DNTHAL_TEXTURESWAPDATA LPD3DHAL_TEXTURESWAPDATA; +typedef LPD3DNTHAL_TEXTUREGETSURFDATA LPD3DHAL_TEXTUREGETSURFDATA; + +typedef LPD3DNTHAL_CALLBACKS2 LPD3DHAL_CALLBACKS2; +typedef LPD3DNTHAL_SETRENDERTARGETDATA LPD3DHAL_SETRENDERTARGETDATA; + +typedef LPD3DNTHAL_CALLBACKS3 LPD3DHAL_CALLBACKS3; +typedef LPD3DNTHAL_CLEAR2DATA LPD3DHAL_CLEAR2DATA; +typedef LPD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA LPD3DHAL_VALIDATETEXTURESTAGESTATEDATA; +typedef LPD3DNTHAL_DRAWPRIMITIVES2DATA LPD3DHAL_DRAWPRIMITIVES2DATA; +typedef LPD3DNTHAL_D3DEXTENDEDCAPS LPD3DHAL_D3DEXTENDEDCAPS; + +#define D3DHAL2_CB32_SETRENDERTARGET D3DNTHAL2_CB32_SETRENDERTARGET + +#define D3DHAL_CONTEXT_BAD D3DNTHAL_CONTEXT_BAD +#define D3DHAL_OUTOFCONTEXTS D3DNTHAL_OUTOFCONTEXTS +#define D3DHALSTATE_GET_RENDER D3DNTHALSTATE_GET_RENDER +#define D3DHAL_SCENE_CAPTURE_START D3DNTHAL_SCENE_CAPTURE_START +#define D3DHAL_SCENE_CAPTURE_END D3DNTHAL_SCENE_CAPTURE_END + +#define D3DHAL3_CB32_CLEAR2 D3DNTHAL3_CB32_CLEAR2 +#define D3DHAL3_CB32_RESERVED D3DNTHAL3_CB32_RESERVED +#define D3DHAL3_CB32_VALIDATETEXTURESTAGESTATE D3DNTHAL3_CB32_VALIDATETEXTURESTAGESTATE +#define D3DHAL3_CB32_DRAWPRIMITIVES2 D3DNTHAL3_CB32_DRAWPRIMITIVES2 + +//----------------------------------------------------------------------------- +// DrawPrimitives2 DDI +//----------------------------------------------------------------------------- +typedef D3DNTHAL_DP2COMMAND D3DHAL_DP2COMMAND; +typedef LPDNT3DHAL_DP2COMMAND LPD3DHAL_DP2COMMAND; +typedef D3DNTHAL_DP2OPERATION D3DHAL_DP2OPERATION; +typedef D3DNTHAL_DP2POINTS D3DHAL_DP2POINTS; +typedef D3DNTHAL_DP2LINELIST D3DHAL_DP2LINELIST; +typedef D3DNTHAL_DP2INDEXEDLINELIST D3DHAL_DP2INDEXEDLINELIST; +typedef D3DNTHAL_DP2LINESTRIP D3DHAL_DP2LINESTRIP; +typedef D3DNTHAL_DP2INDEXEDLINESTRIP D3DHAL_DP2INDEXEDLINESTRIP; +typedef D3DNTHAL_DP2TRIANGLELIST D3DHAL_DP2TRIANGLELIST; +typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST D3DHAL_DP2INDEXEDTRIANGLELIST; +typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST2 D3DHAL_DP2INDEXEDTRIANGLELIST2; +typedef D3DNTHAL_DP2TRIANGLESTRIP D3DHAL_DP2TRIANGLESTRIP; +typedef D3DNTHAL_DP2INDEXEDTRIANGLESTRIP D3DHAL_DP2INDEXEDTRIANGLESTRIP; +typedef D3DNTHAL_DP2TRIANGLEFAN D3DHAL_DP2TRIANGLEFAN; +typedef D3DNTHAL_DP2INDEXEDTRIANGLEFAN D3DHAL_DP2INDEXEDTRIANGLEFAN; +typedef D3DNTHAL_DP2RENDERSTATE D3DHAL_DP2RENDERSTATE; +typedef D3DNTHAL_DP2TEXTURESTAGESTATE D3DHAL_DP2TEXTURESTAGESTATE; +typedef D3DNTHAL_DP2TRIANGLEFAN_IMM D3DHAL_DP2TRIANGLEFAN_IMM; +typedef D3DNTHAL_DP2STARTVERTEX D3DHAL_DP2STARTVERTEX; +typedef D3DNTHAL_DP2VIEWPORTINFO D3DHAL_DP2VIEWPORTINFO; +typedef D3DNTHAL_DP2WINFO D3DHAL_DP2WINFO; +typedef D3DNTHAL_DP2SETPALETTE D3DHAL_DP2SETPALETTE; +typedef D3DNTHAL_DP2UPDATEPALETTE D3DHAL_DP2UPDATEPALETTE; +typedef D3DNTHAL_DP2ZRANGE D3DHAL_DP2ZRANGE; +typedef D3DNTHAL_DP2SETMATERIAL D3DHAL_DP2SETMATERIAL; +typedef D3DNTHAL_DP2SETLIGHT D3DHAL_DP2SETLIGHT; +typedef D3DNTHAL_DP2SETCLIPPLANE D3DHAL_DP2SETCLIPPLANE; +typedef D3DNTHAL_DP2CREATELIGHT D3DHAL_DP2CREATELIGHT; +typedef D3DNTHAL_DP2SETTRANSFORM D3DHAL_DP2SETTRANSFORM; +typedef D3DNTHAL_DP2EXT D3DHAL_DP2EXT; +typedef D3DNTHAL_DP2TEXBLT D3DHAL_DP2TEXBLT; +typedef D3DNTHAL_DP2STATESET D3DHAL_DP2STATESET; +typedef D3DNTHAL_DP2SETPRIORITY D3DHAL_DP2SETPRIORITY; +typedef D3DNTHAL_DP2SETRENDERTARGET D3DHAL_DP2SETRENDERTARGET; +typedef D3DNTHAL_DP2CLEAR D3DHAL_DP2CLEAR; +typedef D3DNTHAL_DP2SETTEXLOD D3DHAL_DP2SETTEXLOD; + +#define D3DDP2OP_POINTS D3DNTDP2OP_POINTS +#define D3DDP2OP_INDEXEDLINELIST D3DNTDP2OP_INDEXEDLINELIST +#define D3DDP2OP_INDEXEDLINELIST2 D3DNTDP2OP_INDEXEDLINELIST2 +#define D3DDP2OP_INDEXEDTRIANGLELIST D3DNTDP2OP_INDEXEDTRIANGLELIST +#define D3DDP2OP_INDEXEDTRIANGLELIST2 D3DNTDP2OP_INDEXEDTRIANGLELIST2 +#define D3DDP2OP_RENDERSTATE D3DNTDP2OP_RENDERSTATE +#define D3DDP2OP_LINELIST D3DNTDP2OP_LINELIST +#define D3DDP2OP_LINESTRIP D3DNTDP2OP_LINESTRIP +#define D3DDP2OP_INDEXEDLINESTRIP D3DNTDP2OP_INDEXEDLINESTRIP +#define D3DDP2OP_TRIANGLELIST D3DNTDP2OP_TRIANGLELIST +#define D3DDP2OP_TRIANGLESTRIP D3DNTDP2OP_TRIANGLESTRIP +#define D3DDP2OP_INDEXEDTRIANGLESTRIP D3DNTDP2OP_INDEXEDTRIANGLESTRIP +#define D3DDP2OP_TRIANGLEFAN D3DNTDP2OP_TRIANGLEFAN +#define D3DDP2OP_INDEXEDTRIANGLEFAN D3DNTDP2OP_INDEXEDTRIANGLEFAN +#define D3DDP2OP_TRIANGLEFAN_IMM D3DNTDP2OP_TRIANGLEFAN_IMM +#define D3DDP2OP_LINELIST_IMM D3DNTDP2OP_LINELIST_IMM +#define D3DDP2OP_TEXTURESTAGESTATE D3DNTDP2OP_TEXTURESTAGESTATE +#define D3DDP2OP_VIEWPORTINFO D3DNTDP2OP_VIEWPORTINFO +#define D3DDP2OP_WINFO D3DNTDP2OP_WINFO +#define D3DDP2OP_SETPALETTE D3DNTDP2OP_SETPALETTE +#define D3DDP2OP_UPDATEPALETTE D3DNTDP2OP_UPDATEPALETTE + +#define D3DDP2OP_ZRANGE D3DNTDP2OP_ZRANGE +#define D3DDP2OP_SETMATERIAL D3DNTDP2OP_SETMATERIAL +#define D3DDP2OP_SETLIGHT D3DNTDP2OP_SETLIGHT +#define D3DDP2OP_CREATELIGHT D3DNTDP2OP_CREATELIGHT +#define D3DDP2OP_SETTRANSFORM D3DNTDP2OP_SETTRANSFORM +#define D3DDP2OP_TEXBLT D3DNTDP2OP_TEXBLT +#define D3DDP2OP_STATESET D3DNTDP2OP_STATESET +#define D3DDP2OP_SETPRIORITY D3DNTDP2OP_SETPRIORITY +#define D3DDP2OP_SETRENDERTARGET D3DNTDP2OP_SETRENDERTARGET +#define D3DDP2OP_CLEAR D3DNTDP2OP_CLEAR +#define D3DDP2OP_SETTEXLOD D3DNTDP2OP_SETTEXLOD +#define D3DDP2OP_SETCLIPPLANE D3DNTDP2OP_SETCLIPPLANE + +#define D3DERR_COMMAND_UNPARSED D3DNTERR_COMMAND_UNPARSED +#define D3DHALDP2_USERMEMVERTICES D3DNTHALDP2_USERMEMVERTICES +#define D3DHALDP2_EXECUTEBUFFER D3DNTHALDP2_EXECUTEBUFFER +#define D3DHALDP2_SWAPVERTEXBUFFER D3DNTHALDP2_SWAPVERTEXBUFFER +#define D3DHALDP2_SWAPCOMMANDBUFFER D3DNTHALDP2_SWAPCOMMANDBUFFER +#define D3DHALDP2_REQVERTEXBUFSIZE D3DNTHALDP2_REQVERTEXBUFSIZE +#define D3DHALDP2_REQCOMMANDBUFSIZE D3DNTHALDP2_REQCOMMANDBUFSIZE +#define D3DHALDP2_VIDMEMVERTEXBUF D3DNTHALDP2_VIDMEMVERTEXBUF +#define D3DHALDP2_VIDMEMCOMMANDBUF D3DNTHALDP2_VIDMEMCOMMANDBUF + + +#define PFND3DPARSEUNKNOWNCOMMAND PFND3DNTPARSEUNKNOWNCOMMAND + +#if(DIRECT3D_VERSION >= 0x0800 ) +#define D3DDP2OP_CREATEVERTEXSHADER D3DNTDP2OP_CREATEVERTEXSHADER +#define D3DDP2OP_DELETEVERTEXSHADER D3DNTDP2OP_DELETEVERTEXSHADER +#define D3DDP2OP_SETVERTEXSHADER D3DNTDP2OP_SETVERTEXSHADER +#define D3DDP2OP_SETVERTEXSHADERCONST D3DNTDP2OP_SETVERTEXSHADERCONST +#define D3DDP2OP_SETSTREAMSOURCE D3DNTDP2OP_SETSTREAMSOURCE +#define D3DDP2OP_SETSTREAMSOURCEUM D3DNTDP2OP_SETSTREAMSOURCEUM +#define D3DDP2OP_SETINDICES D3DNTDP2OP_SETINDICES +#define D3DDP2OP_DRAWPRIMITIVE D3DNTDP2OP_DRAWPRIMITIVE +#define D3DDP2OP_DRAWINDEXEDPRIMITIVE D3DNTDP2OP_DRAWINDEXEDPRIMITIVE +#define D3DDP2OP_CREATEPIXELSHADER D3DNTDP2OP_CREATEPIXELSHADER +#define D3DDP2OP_DELETEPIXELSHADER D3DNTDP2OP_DELETEPIXELSHADER +#define D3DDP2OP_SETPIXELSHADER D3DNTDP2OP_SETPIXELSHADER +#define D3DDP2OP_SETPIXELSHADERCONST D3DNTDP2OP_SETPIXELSHADERCONST +#define D3DDP2OP_CLIPPEDTRIANGLEFAN D3DNTDP2OP_CLIPPEDTRIANGLEFAN +#define D3DDP2OP_DRAWPRIMITIVE2 D3DNTDP2OP_DRAWPRIMITIVE2 +#define D3DDP2OP_DRAWINDEXEDPRIMITIVE2 D3DNTDP2OP_DRAWINDEXEDPRIMITIVE2 +#define D3DDP2OP_DRAWRECTPATCH D3DNTDP2OP_DRAWRECTPATCH +#define D3DDP2OP_DRAWTRIPATCH D3DNTDP2OP_DRAWTRIPATCH +#define D3DDP2OP_VOLUMEBLT D3DNTDP2OP_VOLUMEBLT +#define D3DDP2OP_BUFFERBLT D3DNTDP2OP_BUFFERBLT +#define D3DDP2OP_MULTIPLYTRANSFORM D3DNTDP2OP_MULTIPLYTRANSFORM +#define D3DDP2OP_ADDDIRTYRECT D3DNTDP2OP_ADDDIRTYRECT +#define D3DDP2OP_ADDDIRTYBOX D3DNTDP2OP_ADDDIRTYBOX + +#if(DIRECT3D_VERSION >= 0x0900 ) +#define D3DDP2OP_CREATEVERTEXSHADERDECL D3DNTDP2OP_CREATEVERTEXSHADERDECL +#define D3DDP2OP_DELETEVERTEXSHADERDECL D3DNTDP2OP_DELETEVERTEXSHADERDECL +#define D3DDP2OP_SETVERTEXSHADERDECL D3DNTDP2OP_SETVERTEXSHADERDECL +#define D3DDP2OP_CREATEVERTEXSHADERFUNC D3DNTDP2OP_CREATEVERTEXSHADERFUNC +#define D3DDP2OP_DELETEVERTEXSHADERFUNC D3DNTDP2OP_DELETEVERTEXSHADERFUNC +#define D3DDP2OP_SETVERTEXSHADERFUNC D3DNTDP2OP_SETVERTEXSHADERFUNC +#define D3DDP2OP_SETVERTEXSHADERCONSTI D3DNTDP2OP_SETVERTEXSHADERCONSTI +#define D3DDP2OP_SETSCISSORRECT D3DNTDP2OP_SETSCISSORRECT +#define D3DDP2OP_SETSTREAMSOURCE2 D3DNTDP2OP_SETSTREAMSOURCE2 +#define D3DDP2OP_BLT D3DNTDP2OP_BLT +#define D3DDP2OP_COLORFILL D3DNTDP2OP_COLORFILL +#define D3DDP2OP_SETVERTEXSHADERCONSTB D3DNTDP2OP_SETVERTEXSHADERCONSTB +#define D3DDP2OP_CREATEQUERY D3DNTDP2OP_CREATEQUERY +#define D3DDP2OP_DELETEQUERY D3DNTDP2OP_DELETEQUERY +#define D3DDP2OP_ISSUEQUERY D3DNTDP2OP_ISSUEQUERY +#define D3DDP2OP_SETRENDERTARGET2 D3DNTDP2OP_SETRENDERTARGET2 +#define D3DDP2OP_SETDEPTHSTENCIL D3DNTDP2OP_SETDEPTHSTENCIL +#define D3DDP2OP_RESPONSECONTINUE D3DNTDP2OP_RESPONSECONTINUE +#define D3DDP2OP_RESPONSEQUERY D3DNTDP2OP_RESPONSEQUERY +#define D3DDP2OP_GENERATEMIPSUBLEVELS D3DNTDP2OP_GENERATEMIPSUBLEVELS +#define D3DDP2OP_SETPIXELSHADERCONSTI D3DNTDP2OP_SETPIXELSHADERCONSTI +#define D3DDP2OP_SETPIXELSHADERCONSTB D3DNTDP2OP_SETPIXELSHADERCONSTB +#define D3DDP2OP_SETSTREAMSOURCEFREQ D3DNTDP2OP_SETSTREAMSOURCEFREQ +#define D3DDP2OP_SURFACEBLT D3DNTDP2OP_SURFACEBLT +#endif // (DIRECT3D_VERSION >= 0x0900 ) + + +#define D3DHAL_STATESETCREATE D3DNTHAL_STATESETCREATE +#define D3DCLEAR_COMPUTERECTS D3DNTCLEAR_COMPUTERECTS + +typedef D3DNTHAL_DP2MULTIPLYTRANSFORM D3DHAL_DP2MULTIPLYTRANSFORM; +typedef LPD3DNTHAL_DP2MULTIPLYTRANSFORM LPD3DHAL_DP2MULTIPLYTRANSFORM; +typedef D3DNTHAL_DP2VERTEXSHADER D3DHAL_DP2VERTEXSHADER ; +typedef LPD3DNTHAL_DP2VERTEXSHADER LPD3DHAL_DP2VERTEXSHADER; + +typedef D3DNTHAL_DP2CREATEVERTEXSHADER D3DHAL_DP2CREATEVERTEXSHADER; +typedef LPD3DNTHAL_DP2CREATEVERTEXSHADER LPD3DHAL_DP2CREATEVERTEXSHADER; +typedef D3DNTHAL_DP2SETVERTEXSHADERCONST D3DHAL_DP2SETVERTEXSHADERCONST; +typedef LPD3DNTHAL_DP2SETVERTEXSHADERCONST LPD3DHAL_DP2SETVERTEXSHADERCONST; +typedef D3DNTHAL_DP2SETSTREAMSOURCE D3DHAL_DP2SETSTREAMSOURCE; +typedef LPD3DNTHAL_DP2SETSTREAMSOURCE LPD3DHAL_DP2SETSTREAMSOURCE; +typedef D3DNTHAL_DP2SETSTREAMSOURCEUM D3DHAL_DP2SETSTREAMSOURCEUM; +typedef LPD3DNTHAL_DP2SETSTREAMSOURCEUM LPD3DHAL_DP2SETSTREAMSOURCEUM; +typedef D3DNTHAL_DP2SETINDICES D3DHAL_DP2SETINDICES; +typedef LPD3DNTHAL_DP2SETINDICES LPD3DHAL_DP2SETINDICES; +typedef D3DNTHAL_DP2DRAWPRIMITIVE D3DHAL_DP2DRAWPRIMITIVE; +typedef LPD3DNTHAL_DP2DRAWPRIMITIVE LPD3DHAL_DP2DRAWPRIMITIVE; +typedef D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE D3DHAL_DP2DRAWINDEXEDPRIMITIVE; +typedef LPD3DNTHAL_DP2DRAWINDEXEDPRIMITIVE LPD3DHAL_DP2DRAWINDEXEDPRIMITIVE; +typedef D3DNTHAL_CLIPPEDTRIANGLEFAN D3DHAL_CLIPPEDTRIANGLEFAN; +typedef LPD3DNTHAL_CLIPPEDTRIANGLEFAN LPD3DHAL_CLIPPEDTRIANGLEFAN; +typedef D3DNTHAL_DP2DRAWPRIMITIVE2 D3DHAL_DP2DRAWPRIMITIVE2; +typedef LPD3DNTHAL_DP2DRAWPRIMITIVE2 LPD3DHAL_DP2DRAWPRIMITIVE2; +typedef D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 D3DHAL_DP2DRAWINDEXEDPRIMITIVE2; +typedef LPD3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 LPD3DHAL_DP2DRAWINDEXEDPRIMITIVE2; +typedef D3DNTHAL_DP2PIXELSHADER D3DHAL_DP2PIXELSHADER; +typedef LPD3DNTHAL_DP2PIXELSHADER LPD3DHAL_DP2PIXELSHADER; +typedef D3DNTHAL_DP2CREATEPIXELSHADER D3DHAL_DP2CREATEPIXELSHADER; +typedef LPD3DNTHAL_DP2CREATEPIXELSHADER LPD3DHAL_DP2CREATEPIXELSHADER; +typedef D3DNTHAL_DP2SETPIXELSHADERCONST D3DHAL_DP2SETPIXELSHADERCONST; +typedef LPD3DNTHAL_DP2SETPIXELSHADERCONST LPD3DHAL_DP2SETPIXELSHADERCONST; + +#define RTPATCHFLAG_HASSEGS _NT_RTPATCHFLAG_HASSEGS +#define RTPATCHFLAG_HASINFO _NT_RTPATCHFLAG_HASINFO + +typedef D3DNTHAL_DP2DRAWRECTPATCH D3DHAL_DP2DRAWRECTPATCH; +typedef LPD3DNTHAL_DP2DRAWRECTPATCH LPD3DHAL_DP2DRAWRECTPATCH; +typedef D3DNTHAL_DP2DRAWTRIPATCH D3DHAL_DP2DRAWTRIPATCH; +typedef LPD3DNTHAL_DP2DRAWTRIPATCH LPD3DHAL_DP2DRAWTRIPATCH; +typedef D3DNTHAL_DP2VOLUMEBLT D3DHAL_DP2VOLUMEBLT; +typedef LPD3DNTHAL_DP2VOLUMEBLT LPD3DHAL_DP2VOLUMEBLT; +typedef D3DNTHAL_DP2BUFFERBLT D3DHAL_DP2BUFFERBLT; +typedef LPD3DNTHAL_DP2BUFFERBLT LPD3DHAL_DP2BUFFERBLT; +typedef D3DNTHAL_DP2ADDDIRTYRECT D3DHAL_DP2ADDDIRTYRECT; +typedef LPD3DNTHAL_DP2ADDDIRTYRECT LPD3DHAL_DP2ADDDIRTYRECT; +typedef D3DNTHAL_DP2ADDDIRTYBOX D3DHAL_DP2ADDDIRTYBOX; +typedef LPD3DNTHAL_DP2ADDDIRTYBOX LPD3DHAL_DP2ADDDIRTYBOX; + +#if(DIRECT3D_VERSION >= 0x0900 ) +typedef D3DNTHAL_DP2CREATEVERTEXSHADERDECL D3DHAL_DP2CREATEVERTEXSHADERDECL; +typedef LPD3DNTHAL_DP2CREATEVERTEXSHADERDECL LPD3DHAL_DP2CREATEVERTEXSHADERDECL; +typedef D3DNTHAL_DP2CREATEVERTEXSHADERFUNC D3DHAL_DP2CREATEVERTEXSHADERFUNC; +typedef LPD3DNTHAL_DP2CREATEVERTEXSHADERFUNC LPD3DHAL_DP2CREATEVERTEXSHADERFUNC; +typedef D3DNTHAL_DP2SETSTREAMSOURCE2 D3DHAL_DP2SETSTREAMSOURCE2; +typedef LPD3DNTHAL_DP2SETSTREAMSOURCE2 LPD3DHAL_DP2SETSTREAMSOURCE2; +typedef D3DNTHAL_DP2SETSCISSORRECT D3DHAL_DP2SETSCISSORRECT; +typedef LPD3DNTHAL_DP2SETSCISSORRECT LPD3DHAL_DP2SETSCISSORRECT; +typedef D3DNTHAL_DP2BLT D3DHAL_DP2BLT; +typedef LPD3DNTHAL_DP2BLT LPD3DHAL_DP2BLT; +typedef D3DNTHAL_DP2COLORFILL D3DHAL_DP2COLORFILL; +typedef LPD3DNTHAL_DP2COLORFILL LPD3DHAL_DP2COLORFILL; +typedef D3DNTHAL_DP2SETVERTEXSHADERCONSTB D3DHAL_DP2SETVERTEXSHADERCONSTB; +typedef LPD3DNTHAL_DP2SETVERTEXSHADERCONSTB LPD3DHAL_DP2SETVERTEXSHADERCONSTB; +typedef D3DNTHAL_DP2SETRENDERTARGET2 D3DHAL_DP2SETRENDERTARGET2; +typedef LPD3DNTHAL_DP2SETRENDERTARGET2 LPD3DHAL_DP2SETRENDERTARGET2; +typedef D3DNTHAL_DP2SETDEPTHSTENCIL D3DHAL_DP2SETDEPTHSTENCIL; +typedef LPD3DNTHAL_DP2SETDEPTHSTENCIL LPD3DHAL_DP2SETDEPTHSTENCIL; +typedef D3DNTHAL_DP2CREATEQUERY D3DHAL_DP2CREATEQUERY; +typedef LPD3DNTHAL_DP2CREATEQUERY LPD3DHAL_DP2CREATEQUERY; +typedef D3DNTHAL_DP2DELETEQUERY D3DHAL_DP2DELETEQUERY; +typedef LPD3DNTHAL_DP2DELETEQUERY LPD3DHAL_DP2DELETEQUERY; +typedef D3DNTHAL_DP2ISSUEQUERY D3DHAL_DP2ISSUEQUERY; +typedef LPD3DNTHAL_DP2ISSUEQUERY LPD3DHAL_DP2ISSUEQUERY; +typedef D3DNTHAL_DP2GENERATEMIPSUBLEVELS D3DHAL_DP2GENERATEMIPSUBLEVELS; +typedef LPD3DNTHAL_DP2GENERATEMIPSUBLEVELS LPD3DHAL_DP2GENERATEMIPSUBLEVELS; +typedef D3DNTHAL_DP2RESPONSE D3DHAL_DP2RESPONSE; +typedef LPD3DNTHAL_DP2RESPONSE LPD3DHAL_DP2RESPONSE; +typedef D3DNTHAL_DP2RESPONSEQUERY D3DHAL_DP2RESPONSEQUERY; +typedef LPD3DNTHAL_DP2RESPONSEQUERY LPD3DHAL_DP2RESPONSEQUERY; +typedef D3DNTHAL_DP2SETVERTEXSHADERCONSTI D3DHAL_DP2SETVERTEXSHADERCONSTI; +typedef LPD3DNTHAL_DP2SETVERTEXSHADERCONSTI LPD3DHAL_DP2SETVERTEXSHADERCONSTI; +typedef D3DNTHAL_DP2SETPIXELSHADERCONSTI D3DHAL_DP2SETPIXELSHADERCONSTI; +typedef LPD3DNTHAL_DP2SETPIXELSHADERCONSTI LPD3DHAL_DP2SETPIXELSHADERCONSTI; +typedef D3DNTHAL_DP2SETPIXELSHADERCONSTB D3DHAL_DP2SETPIXELSHADERCONSTB; +typedef LPD3DNTHAL_DP2SETPIXELSHADERCONSTB LPD3DHAL_DP2SETPIXELSHADERCONSTB; +typedef D3DNTHAL_DP2SETSTREAMSOURCEFREQ D3DHAL_DP2SETSTREAMSOURCEFREQ; +typedef LPD3DNTHAL_DP2SETSTREAMSOURCEFREQ LPD3DHAL_DP2SETSTREAMSOURCEFREQ; +typedef D3DNTHAL_DP2SURFACEBLT D3DHAL_DP2SURFACEBLT; +typedef LPD3DNTHAL_DP2SURFACEBLT LPD3DHAL_DP2SURFACEBLT; +typedef _NT_D3DLINEPATTERN D3DLINEPATTERN; +#endif // (DIRECT3D_VERSION >= 0x0900 ) + +#define D3DSI_GETREGTYPE _NT_D3DSI_GETREGTYPE +#if(DIRECT3D_VERSION >= 0x0900 ) +#define D3DSI_GETUSAGE _NT_D3DSI_GETUSAGE +#define D3DSI_GETUSAGEINDEX _NT_D3DSI_GETUSAGEINDEX +#define D3DSI_GETINSTLENGTH _NT_D3DSI_GETINSTLENGTH +#endif // (DIRECT3D_VERSION >= 0x0900 ) +#define D3DSI_GETREGNUM _NT_D3DSI_GETREGNUM +#define D3DSI_GETOPCODE _NT_D3DSI_GETOPCODE +#define D3DSI_GETWRITEMASK _NT_D3DSI_GETWRITEMASK +#define D3DVS_GETSWIZZLECOMP _NT_D3DVS_GETSWIZZLECOMP +#define D3DVS_GETSWIZZLE _NT_D3DVS_GETSWIZZLE +#define D3DVS_GETSRCMODIFIER _NT_D3DVS_GETSRCMODIFIER +#define D3DVS_GETADDRESSMODE _NT_D3DVS_GETADDRESSMODE + +#define D3DRS_DELETERTPATCH _NT_D3DRS_DELETERTPATCH + +typedef DDNT_GETDRIVERINFO2DATA DD_GETDRIVERINFO2DATA; + +#if(DIRECT3D_VERSION >= 0x0900) +typedef DDNT_GETD3DQUERYCOUNTDATA DD_GETD3DQUERYCOUNTDATA; +typedef DDNT_GETD3DQUERYDATA DD_GETD3DQUERYDATA; +typedef DDNT_GETDDIVERSIONDATA DD_GETDDIVERSIONDATA; +#endif // (DIRECT3D_VERSION >= 0x0900) + +#define GUID_GetDriverInfo2 _NT_GUID_GetDriverInfo2 +#define D3DGDI2_MAGIC _NT_D3DGDI2_MAGIC + +#define D3DGDI2_TYPE_GETD3DCAPS8 _NT_D3DGDI2_TYPE_GETD3DCAPS8 +#define D3DGDI2_TYPE_GETFORMATCOUNT _NT_D3DGDI2_TYPE_GETFORMATCOUNT +#define D3DGDI2_TYPE_GETFORMAT _NT_D3DGDI2_TYPE_GETFORMAT +#define D3DGDI2_TYPE_DXVERSION _NT_D3DGDI2_TYPE_DXVERSION +#define D3DGDI2_TYPE_DEFERRED_AGP_AWARE _NT_D3DGDI2_TYPE_DEFERRED_AGP_AWARE +#define D3DGDI2_TYPE_FREE_DEFERRED_AGP _NT_D3DGDI2_TYPE_FREE_DEFERRED_AGP +#define D3DGDI2_TYPE_DEFER_AGP_FREES _NT_D3DGDI2_TYPE_DEFER_AGP_FREES +#if(DIRECT3D_VERSION >= 0x0900) +#define D3DGDI2_TYPE_GETD3DCAPS9 _NT_D3DGDI2_TYPE_GETD3DCAPS9 +#define D3DGDI2_TYPE_GETEXTENDEDMODECOUNT _NT_D3DGDI2_TYPE_GETEXTENDEDMODECOUNT +#define D3DGDI2_TYPE_GETEXTENDEDMODE _NT_D3DGDI2_TYPE_GETEXTENDEDMODE +#define D3DGDI2_TYPE_GETADAPTERGROUP _NT_D3DGDI2_TYPE_GETADAPTERGROUP +#define D3DGDI2_TYPE_GETMULTISAMPLEQUALITYLEVELS _NT_D3DGDI2_TYPE_GETMULTISAMPLEQUALITYLEVELS +#define D3DGDI2_TYPE_GETD3DQUERYCOUNT _NT_D3DGDI2_TYPE_GETD3DQUERYCOUNT +#define D3DGDI2_TYPE_GETD3DQUERY _NT_D3DGDI2_TYPE_GETD3DQUERY +#define D3DGDI2_TYPE_GETDDIVERSION _NT_D3DGDI2_TYPE_GETDDIVERSION + +#endif // (DIRECT3D_VERSION >= 0x0900) + +typedef DDNT_GETFORMATCOUNTDATA DD_GETFORMATCOUNTDATA; +typedef DDNT_GETFORMATDATA DD_GETFORMATDATA; +typedef DDNT_DXVERSION DD_DXVERSION; +typedef DDNT_DEFERRED_AGP_AWARE_DATA DD_DEFERRED_AGP_AWARE_DATA; +typedef DDNT_FREE_DEFERRED_AGP_DATA DD_FREE_DEFERRED_AGP_DATA; +#if(DIRECT3D_VERSION >= 0x0900) +typedef DDNT_GETEXTENDEDMODECOUNTDATA DD_GETEXTENDEDMODECOUNTDATA; +typedef DDNT_GETEXTENDEDMODEDATA DD_GETEXTENDEDMODEDATA; +typedef DDNT_GETADAPTERGROUPDATA DD_GETADAPTERGROUPDATA; +typedef DDNT_MULTISAMPLEQUALITYLEVELSDATA DD_MULTISAMPLEQUALITYLEVELSDATA; +#endif // (DIRECT3D_VERSION >= 0x0900) + +#define D3DDEVCAPS_HWVERTEXBUFFER _NT_D3DDEVCAPS_HWVERTEXBUFFER +#define D3DDEVCAPS_HWINDEXBUFFER _NT_D3DDEVCAPS_HWINDEXBUFFER +#define D3DDEVCAPS_SUBVOLUMELOCK _NT_D3DDEVCAPS_SUBVOLUMELOCK + +#define D3DPMISCCAPS_FOGINFVF _NT_D3DPMISCCAPS_FOGINFVF +#define D3DFVF_FOG _NT_D3DFVF_FOG + +#define D3DFMT_D32 _NT_D3DFMT_D32 +#define D3DFMT_S1D15 _NT_D3DFMT_S1D15 +#define D3DFMT_D15S1 _NT_D3DFMT_D15S1 +#define D3DFMT_S8D24 _NT_D3DFMT_S8D24 +#define D3DFMT_D24S8 _NT_D3DFMT_D24S8 +#define D3DFMT_X8D24 _NT_D3DFMT_X8D24 +#define D3DFMT_D24X8 _NT_D3DFMT_D24X8 +#define D3DFMT_X4S4D24 _NT_D3DFMT_X4S4D24 +#define D3DFMT_D24X4S4 _NT_D3DFMT_D24X4S4 + +#define D3DVS_INPUTREG_MAX_V1_1 _NT_D3DVS_INPUTREG_MAX_V1_1 +#define D3DVS_TEMPREG_MAX_V1_1 _NT_D3DVS_TEMPREG_MAX_V1_1 +#define D3DVS_CONSTREG_MAX_V1_1 _NT_D3DVS_CONSTREG_MAX_V1_1 +#define D3DVS_TCRDOUTREG_MAX_V1_1 _NT_D3DVS_TCRDOUTREG_MAX_V1_1 +#define D3DVS_ADDRREG_MAX_V1_1 _NT_D3DVS_ADDRREG_MAX_V1_1 +#define D3DVS_ATTROUTREG_MAX_V1_1 _NT_D3DVS_ATTROUTREG_MAX_V1_1 +#define D3DVS_MAXINSTRUCTIONCOUNT_V1_1 _NT_D3DVS_MAXINSTRUCTIONCOUNT_V1_1 + +#define D3DPS_INPUTREG_MAX_DX8 _NT_D3DPS_INPUTREG_MAX_DX8 +#define D3DPS_TEMPREG_MAX_DX8 _NT_D3DPS_TEMPREG_MAX_DX8 +#define D3DPS_CONSTREG_MAX_DX8 _NT_D3DPS_CONSTREG_MAX_DX8 +#define D3DPS_TEXTUREREG_MAX_DX8 _NT_D3DPS_TEXTUREREG_MAX_DX8 + +#endif // (DIRECT3D_VERSION >= 0x0800 ) + +#ifdef DX8DDK_DX7HAL_DEFINES + +// Some legacy (<=DX7) definitions that are in d3dhal.h + +#define D3DHAL_TSS_MAXSTAGES D3DNTHAL_TSS_MAXSTAGES +typedef PDD_DIRECTDRAW_LOCAL LPDDRAWI_DIRECTDRAW_LCL; + +typedef D3DNTHAL_DP2OPERATION *LPD3DHAL_DP2OPERATION; +typedef D3DNTHAL_DP2POINTS *LPD3DHAL_DP2POINTS; +typedef D3DNTHAL_DP2LINELIST *LPD3DHAL_DP2LINELIST; +typedef D3DNTHAL_DP2INDEXEDLINELIST *LPD3DHAL_DP2INDEXEDLINELIST; +typedef D3DNTHAL_DP2LINESTRIP *LPD3DHAL_DP2LINESTRIP; +typedef D3DNTHAL_DP2INDEXEDLINESTRIP *LPD3DHAL_DP2INDEXEDLINESTRIP; +typedef D3DNTHAL_DP2TRIANGLELIST *LPD3DHAL_DP2TRIANGLELIST; +typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST *LPD3DHAL_DP2INDEXEDTRIANGLELIST; +typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST2 *LPD3DHAL_DP2INDEXEDTRIANGLELIST2; +typedef D3DNTHAL_DP2TRIANGLESTRIP *LPD3DHAL_DP2TRIANGLESTRIP; +typedef D3DNTHAL_DP2INDEXEDTRIANGLESTRIP *LPD3DHAL_DP2INDEXEDTRIANGLESTRIP; +typedef D3DNTHAL_DP2TRIANGLEFAN *LPD3DHAL_DP2TRIANGLEFAN; +typedef D3DNTHAL_DP2INDEXEDTRIANGLEFAN *LPD3DHAL_DP2INDEXEDTRIANGLEFAN; +typedef D3DNTHAL_DP2RENDERSTATE *LPD3DHAL_DP2RENDERSTATE; +typedef D3DNTHAL_DP2TEXTURESTAGESTATE *LPD3DHAL_DP2TEXTURESTAGESTATE; +typedef D3DNTHAL_DP2TRIANGLEFAN_IMM *LPD3DHAL_DP2TRIANGLEFAN_IMM; +typedef D3DNTHAL_DP2STARTVERTEX *LPD3DHAL_DP2STARTVERTEX; +typedef D3DNTHAL_DP2VIEWPORTINFO *LPD3DHAL_DP2VIEWPORTINFO; +typedef D3DNTHAL_DP2WINFO *LPD3DHAL_DP2WINFO; +typedef D3DNTHAL_DP2SETPALETTE *LPD3DHAL_DP2SETPALETTE; +typedef D3DNTHAL_DP2UPDATEPALETTE *LPD3DHAL_DP2UPDATEPALETTE; +typedef D3DNTHAL_DP2ZRANGE *LPD3DHAL_DP2ZRANGE; +typedef D3DNTHAL_DP2SETMATERIAL *LPD3DHAL_DP2SETMATERIAL; +typedef D3DNTHAL_DP2SETLIGHT *LPD3DHAL_DP2SETLIGHT; +typedef D3DNTHAL_DP2SETCLIPPLANE *LPD3DHAL_DP2SETCLIPPLANE; +typedef D3DNTHAL_DP2CREATELIGHT *LPD3DHAL_DP2CREATELIGHT; +typedef D3DNTHAL_DP2SETTRANSFORM *LPD3DHAL_DP2SETTRANSFORM; +typedef D3DNTHAL_DP2EXT *LPD3DHAL_DP2EXT; +typedef D3DNTHAL_DP2TEXBLT *LPD3DHAL_DP2TEXBLT; +typedef D3DNTHAL_DP2STATESET *LPD3DHAL_DP2STATESET; +typedef D3DNTHAL_DP2SETPRIORITY *LPD3DHAL_DP2SETPRIORITY; +typedef D3DNTHAL_DP2SETRENDERTARGET *LPD3DHAL_DP2SETRENDERTARGET; +typedef D3DNTHAL_DP2CLEAR *LPD3DHAL_DP2CLEAR; +typedef D3DNTHAL_DP2SETTEXLOD *LPD3DHAL_DP2SETTEXLOD; + +// Values for dwDataType in D3DHAL_DP2SETLIGHT +#define D3DHAL_SETLIGHT_ENABLE 0 +#define D3DHAL_SETLIGHT_DISABLE 1 +// If this is set, light data will be passed in after the +// D3DLIGHT7 structure +#define D3DHAL_SETLIGHT_DATA 2 + +#define D3DHAL_NUMCLIPVERTICES 20 + +#define D3DTSS_MAX ((D3DTEXTURESTAGESTATETYPE)33) + +/* + * If DX8 driver wants to support pre-DX8 applications, it should use these + * definitions for pre-DX8 world matrices +*/ +#define D3DTRANSFORMSTATE_WORLD_DX7 1 +#define D3DTRANSFORMSTATE_WORLD1_DX7 4 +#define D3DTRANSFORMSTATE_WORLD2_DX7 5 +#define D3DTRANSFORMSTATE_WORLD3_DX7 6 + +/* + * Generally needed maximum state structure sizes. Note that the copy of + * these in refrasti.hpp must be kept in sync with these. + */ + +#define D3DHAL_MAX_RSTATES (D3DRENDERSTATE_WRAPBIAS + 128) +/* Last state offset for combined render state and texture stage array + 1 */ +#define D3DHAL_MAX_RSTATES_AND_STAGES \ + (D3DHAL_TSS_RENDERSTATEBASE + \ + D3DHAL_TSS_MAXSTAGES * D3DHAL_TSS_STATESPERSTAGE) +/* Last texture state ID */ +#define D3DHAL_MAX_TEXTURESTATES (13) +/* Last texture state ID + 1 */ +#define D3DHAL_TEXTURESTATEBUF_SIZE (D3DHAL_MAX_TEXTURESTATES+1) + +/* + * If no dwNumVertices is given, this is what will be used. + */ +#define D3DHAL_DEFAULT_TL_NUM ((32 * 1024) / sizeof (D3DTLVERTEX)) +#define D3DHAL_DEFAULT_H_NUM ((32 * 1024) / sizeof (D3DHVERTEX)) + +typedef D3DDEVICEDESC_V1 *LPD3DDEVICEDESC_V1; +#define D3DDEVICEDESCSIZE_V1 (sizeof(D3DDEVICEDESC_V1)) + +#define D3DHAL_GLOBALDRIVERDATASIZE (sizeof(D3DHAL_GLOBALDRIVERDATA)) + +#define D3DHAL_D3DEXTENDEDCAPSSIZE (sizeof(D3DHAL_D3DEXTENDEDCAPS)) + +#endif // DX8DDK_DX7HAL_DEFINES + + + +#endif // WINNT +#endif // NODX95TYPES + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __DX95TYPE_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxcapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxcapi.h new file mode 100644 index 0000000000000000000000000000000000000000..0b5530240491de335064bd296cc410a84417ea0c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxcapi.h @@ -0,0 +1,1309 @@ + +/////////////////////////////////////////////////////////////////////////////// +// // +// dxcapi.h // +// Copyright (C) Microsoft Corporation. All rights reserved. // +// This file is distributed under the University of Illinois Open Source // +// License. See LICENSE.TXT for details. // +// // +// Provides declarations for the DirectX Compiler API entry point. // +// // +/////////////////////////////////////////////////////////////////////////////// + +#ifndef __DXC_API__ +#define __DXC_API__ + +#ifdef _WIN32 +#ifndef DXC_API_IMPORT +#define DXC_API_IMPORT __declspec(dllimport) +#endif +#else +#ifndef DXC_API_IMPORT +#define DXC_API_IMPORT __attribute__((visibility("default"))) +#endif +#endif + +#ifdef _WIN32 + +#ifndef CROSS_PLATFORM_UUIDOF +// Warning: This macro exists in WinAdapter.h as well +#define CROSS_PLATFORM_UUIDOF(interface, spec) \ + struct __declspec(uuid(spec)) interface; +#endif + +#else + +#include "WinAdapter.h" +#include +#endif + +struct IMalloc; + +struct IDxcIncludeHandler; + +/// \brief Typedef for DxcCreateInstance function pointer. +/// +/// This can be used with GetProcAddress to get the DxcCreateInstance function. +typedef HRESULT(__stdcall *DxcCreateInstanceProc)(_In_ REFCLSID rclsid, + _In_ REFIID riid, + _Out_ LPVOID *ppv); + +/// \brief Typedef for DxcCreateInstance2 function pointer. +/// +/// This can be used with GetProcAddress to get the DxcCreateInstance2 function. +typedef HRESULT(__stdcall *DxcCreateInstance2Proc)(_In_ IMalloc *pMalloc, + _In_ REFCLSID rclsid, + _In_ REFIID riid, + _Out_ LPVOID *ppv); + +/// \brief Creates a single uninitialized object of the class associated with a +/// specified CLSID. +/// +/// \param rclsid The CLSID associated with the data and code that will be used +/// to create the object. +/// +/// \param riid A reference to the identifier of the interface to be used to +/// communicate with the object. +/// +/// \param ppv Address of pointer variable that receives the interface pointer +/// requested in riid. Upon successful return, *ppv contains the requested +/// interface pointer. Upon failure, *ppv contains NULL. +/// +/// While this function is similar to CoCreateInstance, there is no COM +/// involvement. +extern "C" DXC_API_IMPORT + HRESULT __stdcall DxcCreateInstance(_In_ REFCLSID rclsid, _In_ REFIID riid, + _Out_ LPVOID *ppv); + +/// \brief Version of DxcCreateInstance that takes an IMalloc interface. +/// +/// This can be used to create an instance of the compiler with a custom memory +/// allocator. +extern "C" DXC_API_IMPORT + HRESULT __stdcall DxcCreateInstance2(_In_ IMalloc *pMalloc, + _In_ REFCLSID rclsid, _In_ REFIID riid, + _Out_ LPVOID *ppv); + +// For convenience, equivalent definitions to CP_UTF8 and CP_UTF16. +#define DXC_CP_UTF8 65001 +#define DXC_CP_UTF16 1200 +#define DXC_CP_UTF32 12000 +// Use DXC_CP_ACP for: Binary; ANSI Text; Autodetect UTF with BOM +#define DXC_CP_ACP 0 + +/// Codepage for "wide" characters - UTF16 on Windows, UTF32 on other platforms. +#ifdef _WIN32 +#define DXC_CP_WIDE DXC_CP_UTF16 +#else +#define DXC_CP_WIDE DXC_CP_UTF32 +#endif + +/// Indicates that the shader hash was computed taking into account source +/// information (-Zss). +#define DXC_HASHFLAG_INCLUDES_SOURCE 1 + +/// Hash digest type for ShaderHash. +typedef struct DxcShaderHash { + UINT32 Flags; ///< DXC_HASHFLAG_* + BYTE HashDigest[16]; ///< The hash digest +} DxcShaderHash; + +#define DXC_FOURCC(ch0, ch1, ch2, ch3) \ + ((UINT32)(UINT8)(ch0) | (UINT32)(UINT8)(ch1) << 8 | \ + (UINT32)(UINT8)(ch2) << 16 | (UINT32)(UINT8)(ch3) << 24) +#define DXC_PART_PDB DXC_FOURCC('I', 'L', 'D', 'B') +#define DXC_PART_PDB_NAME DXC_FOURCC('I', 'L', 'D', 'N') +#define DXC_PART_PRIVATE_DATA DXC_FOURCC('P', 'R', 'I', 'V') +#define DXC_PART_ROOT_SIGNATURE DXC_FOURCC('R', 'T', 'S', '0') +#define DXC_PART_DXIL DXC_FOURCC('D', 'X', 'I', 'L') +#define DXC_PART_REFLECTION_DATA DXC_FOURCC('S', 'T', 'A', 'T') +#define DXC_PART_SHADER_HASH DXC_FOURCC('H', 'A', 'S', 'H') +#define DXC_PART_INPUT_SIGNATURE DXC_FOURCC('I', 'S', 'G', '1') +#define DXC_PART_OUTPUT_SIGNATURE DXC_FOURCC('O', 'S', 'G', '1') +#define DXC_PART_PATCH_CONSTANT_SIGNATURE DXC_FOURCC('P', 'S', 'G', '1') + +// Some option arguments are defined here for continuity with D3DCompile +// interface. +#define DXC_ARG_DEBUG L"-Zi" +#define DXC_ARG_SKIP_VALIDATION L"-Vd" +#define DXC_ARG_SKIP_OPTIMIZATIONS L"-Od" +#define DXC_ARG_PACK_MATRIX_ROW_MAJOR L"-Zpr" +#define DXC_ARG_PACK_MATRIX_COLUMN_MAJOR L"-Zpc" +#define DXC_ARG_AVOID_FLOW_CONTROL L"-Gfa" +#define DXC_ARG_PREFER_FLOW_CONTROL L"-Gfp" +#define DXC_ARG_ENABLE_STRICTNESS L"-Ges" +#define DXC_ARG_ENABLE_BACKWARDS_COMPATIBILITY L"-Gec" +#define DXC_ARG_IEEE_STRICTNESS L"-Gis" +#define DXC_ARG_OPTIMIZATION_LEVEL0 L"-O0" +#define DXC_ARG_OPTIMIZATION_LEVEL1 L"-O1" +#define DXC_ARG_OPTIMIZATION_LEVEL2 L"-O2" +#define DXC_ARG_OPTIMIZATION_LEVEL3 L"-O3" +#define DXC_ARG_WARNINGS_ARE_ERRORS L"-WX" +#define DXC_ARG_RESOURCES_MAY_ALIAS L"-res_may_alias" +#define DXC_ARG_ALL_RESOURCES_BOUND L"-all_resources_bound" +#define DXC_ARG_DEBUG_NAME_FOR_SOURCE L"-Zss" +#define DXC_ARG_DEBUG_NAME_FOR_BINARY L"-Zsb" + +CROSS_PLATFORM_UUIDOF(IDxcBlob, "8BA5FB08-5195-40e2-AC58-0D989C3A0102") +/// \brief A sized buffer that can be passed in and out of DXC APIs. +/// +/// This is an alias of ID3D10Blob and ID3DBlob. +struct IDxcBlob : public IUnknown { +public: + /// \brief Retrieves a pointer to the blob's data. + virtual LPVOID STDMETHODCALLTYPE GetBufferPointer(void) = 0; + + /// \brief Retrieves the size, in bytes, of the blob's data. + virtual SIZE_T STDMETHODCALLTYPE GetBufferSize(void) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcBlobEncoding, "7241d424-2646-4191-97c0-98e96e42fc68") +/// \brief A blob that might have a known encoding. +struct IDxcBlobEncoding : public IDxcBlob { +public: + /// \brief Retrieve the encoding for this blob. + /// + /// \param pKnown Pointer to a variable that will be set to TRUE if the + /// encoding is known. + /// + /// \param pCodePage Pointer to variable that will be set to the encoding used + /// for this blog. + /// + /// If the encoding is not known then pCodePage will be set to CP_ACP. + virtual HRESULT STDMETHODCALLTYPE GetEncoding(_Out_ BOOL *pKnown, + _Out_ UINT32 *pCodePage) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcBlobWide, "A3F84EAB-0FAA-497E-A39C-EE6ED60B2D84") +/// \brief A blob containing a null-terminated wide string. +/// +/// This uses the native wide character encoding (utf16 on Windows, utf32 on +/// Linux). +/// +/// The value returned by GetBufferSize() is the size of the buffer, in bytes, +/// including the null-terminator. +/// +/// This interface is used to return output name strings DXC. Other string +/// output blobs, such as errors/warnings, preprocessed HLSL, or other text are +/// returned using encodings based on the -encoding option passed to the +/// compiler. +struct IDxcBlobWide : public IDxcBlobEncoding { +public: + /// \brief Retrieves a pointer to the string stored in this blob. + virtual LPCWSTR STDMETHODCALLTYPE GetStringPointer(void) = 0; + + /// \brief Retrieves the length of the string stored in this blob, in + /// characters, excluding the null-terminator. + virtual SIZE_T STDMETHODCALLTYPE GetStringLength(void) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcBlobUtf8, "3DA636C9-BA71-4024-A301-30CBF125305B") +/// \brief A blob containing a UTF-8 encoded string. +/// +/// The value returned by GetBufferSize() is the size of the buffer, in bytes, +/// including the null-terminator. +/// +/// Depending on the -encoding option passed to the compiler, this interface is +/// used to return string output blobs, such as errors/warnings, preprocessed +/// HLSL, or other text. Output name strings always use IDxcBlobWide. +struct IDxcBlobUtf8 : public IDxcBlobEncoding { +public: + /// \brief Retrieves a pointer to the string stored in this blob. + virtual LPCSTR STDMETHODCALLTYPE GetStringPointer(void) = 0; + + /// \brief Retrieves the length of the string stored in this blob, in + /// characters, excluding the null-terminator. + virtual SIZE_T STDMETHODCALLTYPE GetStringLength(void) = 0; +}; + +#ifdef _WIN32 +/// IDxcBlobUtf16 is a legacy alias for IDxcBlobWide on Win32. +typedef IDxcBlobWide IDxcBlobUtf16; +#endif + +CROSS_PLATFORM_UUIDOF(IDxcIncludeHandler, + "7f61fc7d-950d-467f-b3e3-3c02fb49187c") +/// \brief Interface for handling include directives. +/// +/// This interface can be implemented to customize handling of include +/// directives. +/// +/// Use IDxcUtils::CreateDefaultIncludeHandler to create a default +/// implementation that reads include files from the filesystem. +/// +struct IDxcIncludeHandler : public IUnknown { + /// \brief Load a source file to be included by the compiler. + /// + /// \param pFilename Candidate filename. + /// + /// \param ppIncludeSource Resultant source object for included file, nullptr + /// if not found. + virtual HRESULT STDMETHODCALLTYPE + LoadSource(_In_z_ LPCWSTR pFilename, + _COM_Outptr_result_maybenull_ IDxcBlob **ppIncludeSource) = 0; +}; + +/// \brief Structure for supplying bytes or text input to Dxc APIs. +typedef struct DxcBuffer { + /// \brief Pointer to the start of the buffer. + LPCVOID Ptr; + + /// \brief Size of the buffer in bytes. + SIZE_T Size; + + /// \brief Encoding of the buffer. + /// + /// Use Encoding = 0 for non-text bytes, ANSI text, or unknown with BOM. + UINT Encoding; +} DxcText; + +/// \brief Structure for supplying defines to Dxc APIs. +struct DxcDefine { + LPCWSTR Name; ///< The define name. + _Maybenull_ LPCWSTR Value; ///< Optional value for the define. +}; + +CROSS_PLATFORM_UUIDOF(IDxcCompilerArgs, "73EFFE2A-70DC-45F8-9690-EFF64C02429D") +/// \brief Interface for managing arguments passed to DXC. +/// +/// Use IDxcUtils::BuildArguments to create an instance of this interface. +struct IDxcCompilerArgs : public IUnknown { + /// \brief Retrieve the array of arguments. + /// + /// This can be passed directly to the pArguments parameter of the Compile() + /// method. + virtual LPCWSTR *STDMETHODCALLTYPE GetArguments() = 0; + + /// \brief Retrieve the number of arguments. + /// + /// This can be passed directly to the argCount parameter of the Compile() + /// method. + virtual UINT32 STDMETHODCALLTYPE GetCount() = 0; + + /// \brief Add additional arguments to this list of compiler arguments. + virtual HRESULT STDMETHODCALLTYPE AddArguments( + _In_opt_count_(argCount) + LPCWSTR *pArguments, ///< Array of pointers to arguments to add. + _In_ UINT32 argCount ///< Number of arguments to add. + ) = 0; + + /// \brief Add additional UTF-8 encoded arguments to this list of compiler + /// arguments. + virtual HRESULT STDMETHODCALLTYPE AddArgumentsUTF8( + _In_opt_count_(argCount) + LPCSTR *pArguments, ///< Array of pointers to UTF-8 arguments to add. + _In_ UINT32 argCount ///< Number of arguments to add. + ) = 0; + + /// \brief Add additional defines to this list of compiler arguments. + virtual HRESULT STDMETHODCALLTYPE AddDefines( + _In_count_(defineCount) const DxcDefine *pDefines, ///< Array of defines. + _In_ UINT32 defineCount ///< Number of defines. + ) = 0; +}; + +////////////////////////// +// Legacy Interfaces +///////////////////////// + +CROSS_PLATFORM_UUIDOF(IDxcLibrary, "e5204dc7-d18c-4c3c-bdfb-851673980fe7") +/// \deprecated IDxcUtils replaces IDxcLibrary; please use IDxcUtils insted. +struct IDxcLibrary : public IUnknown { + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE SetMalloc(_In_opt_ IMalloc *pMalloc) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE + CreateBlobFromBlob(_In_ IDxcBlob *pBlob, UINT32 offset, UINT32 length, + _COM_Outptr_ IDxcBlob **ppResult) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE + CreateBlobFromFile(_In_z_ LPCWSTR pFileName, _In_opt_ UINT32 *codePage, + _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateBlobWithEncodingFromPinned( + _In_bytecount_(size) LPCVOID pText, UINT32 size, UINT32 codePage, + _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateBlobWithEncodingOnHeapCopy( + _In_bytecount_(size) LPCVOID pText, UINT32 size, UINT32 codePage, + _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateBlobWithEncodingOnMalloc( + _In_bytecount_(size) LPCVOID pText, IMalloc *pIMalloc, UINT32 size, + UINT32 codePage, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE + CreateIncludeHandler(_COM_Outptr_ IDxcIncludeHandler **ppResult) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateStreamFromBlobReadOnly( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IStream **ppStream) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE GetBlobAsUtf8( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + + // Renamed from GetBlobAsUtf16 to GetBlobAsWide + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE GetBlobAsWide( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + +#ifdef _WIN32 + // Alias to GetBlobAsWide on Win32 + /// \deprecated + inline HRESULT GetBlobAsUtf16(_In_ IDxcBlob *pBlob, + _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) { + return this->GetBlobAsWide(pBlob, pBlobEncoding); + } +#endif +}; + +CROSS_PLATFORM_UUIDOF(IDxcOperationResult, + "CEDB484A-D4E9-445A-B991-CA21CA157DC2") +/// \brief The results of a DXC operation. +/// +/// Note: IDxcResult replaces IDxcOperationResult and should be used wherever +/// possible. +struct IDxcOperationResult : public IUnknown { + /// \brief Retrieve the overall status of the operation. + virtual HRESULT STDMETHODCALLTYPE GetStatus(_Out_ HRESULT *pStatus) = 0; + + /// \brief Retrieve the primary output of the operation. + /// + /// This corresponds to: + /// * DXC_OUT_OBJECT - Compile() with shader or library target + /// * DXC_OUT_DISASSEMBLY - Disassemble() + /// * DXC_OUT_HLSL - Compile() with -P + /// * DXC_OUT_ROOT_SIGNATURE - Compile() with rootsig_* target + virtual HRESULT STDMETHODCALLTYPE + GetResult(_COM_Outptr_result_maybenull_ IDxcBlob **ppResult) = 0; + + /// \brief Retrieves the error buffer from the operation, if there is one. + /// + // This corresponds to calling IDxcResult::GetOutput() with DXC_OUT_ERRORS. + virtual HRESULT STDMETHODCALLTYPE + GetErrorBuffer(_COM_Outptr_result_maybenull_ IDxcBlobEncoding **ppErrors) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcCompiler, "8c210bf3-011f-4422-8d70-6f9acb8db617") +/// \deprecated Please use IDxcCompiler3 instead. +struct IDxcCompiler : public IUnknown { + /// \brief Compile a single entry point to the target shader model. + /// + /// \deprecated Please use IDxcCompiler3::Compile() instead. + virtual HRESULT STDMETHODCALLTYPE Compile( + _In_ IDxcBlob *pSource, // Source text to compile. + _In_opt_z_ LPCWSTR pSourceName, // Optional file name for pSource. Used in + // errors and include handlers. + _In_opt_z_ LPCWSTR pEntryPoint, // Entry point name. + _In_z_ LPCWSTR pTargetProfile, // Shader profile to compile. + _In_opt_count_(argCount) + LPCWSTR *pArguments, // Array of pointers to arguments. + _In_ UINT32 argCount, // Number of arguments. + _In_count_(defineCount) const DxcDefine *pDefines, // Array of defines. + _In_ UINT32 defineCount, // Number of defines. + _In_opt_ IDxcIncludeHandler + *pIncludeHandler, // User-provided interface to handle #include + // directives (optional). + _COM_Outptr_ IDxcOperationResult * + *ppResult // Compiler output status, buffer, and errors. + ) = 0; + + /// \brief Preprocess source text. + /// + /// \deprecated Please use IDxcCompiler3::Compile() with the "-P" argument + /// instead. + virtual HRESULT STDMETHODCALLTYPE Preprocess( + _In_ IDxcBlob *pSource, // Source text to preprocess. + _In_opt_z_ LPCWSTR pSourceName, // Optional file name for pSource. Used in + // errors and include handlers. + _In_opt_count_(argCount) + LPCWSTR *pArguments, // Array of pointers to arguments. + _In_ UINT32 argCount, // Number of arguments. + _In_count_(defineCount) const DxcDefine *pDefines, // Array of defines. + _In_ UINT32 defineCount, // Number of defines. + _In_opt_ IDxcIncludeHandler + *pIncludeHandler, // user-provided interface to handle #include + // directives (optional). + _COM_Outptr_ IDxcOperationResult * + *ppResult // Preprocessor output status, buffer, and errors. + ) = 0; + + /// \brief Disassemble a program. + /// + /// \deprecated Please use IDxcCompiler3::Disassemble() instead. + virtual HRESULT STDMETHODCALLTYPE Disassemble( + _In_ IDxcBlob *pSource, // Program to disassemble. + _COM_Outptr_ IDxcBlobEncoding **ppDisassembly // Disassembly text. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcCompiler2, "A005A9D9-B8BB-4594-B5C9-0E633BEC4D37") +/// \deprecated Please use IDxcCompiler3 instead. +struct IDxcCompiler2 : public IDxcCompiler { + /// \brief Compile a single entry point to the target shader model with debug + /// information. + /// + /// \deprecated Please use IDxcCompiler3::Compile() instead. + virtual HRESULT STDMETHODCALLTYPE CompileWithDebug( + _In_ IDxcBlob *pSource, // Source text to compile. + _In_opt_z_ LPCWSTR pSourceName, // Optional file name for pSource. Used in + // errors and include handlers. + _In_opt_z_ LPCWSTR pEntryPoint, // Entry point name. + _In_z_ LPCWSTR pTargetProfile, // Shader profile to compile. + _In_opt_count_(argCount) + LPCWSTR *pArguments, // Array of pointers to arguments. + _In_ UINT32 argCount, // Number of arguments. + _In_count_(defineCount) const DxcDefine *pDefines, // Array of defines. + _In_ UINT32 defineCount, // Number of defines. + _In_opt_ IDxcIncludeHandler + *pIncludeHandler, // user-provided interface to handle #include + // directives (optional). + _COM_Outptr_ IDxcOperationResult * + *ppResult, // Compiler output status, buffer, and errors. + _Outptr_opt_result_z_ LPWSTR + *ppDebugBlobName, // Suggested file name for debug blob. Must be + // CoTaskMemFree()'d. + _COM_Outptr_opt_ IDxcBlob **ppDebugBlob // Debug blob. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcLinker, "F1B5BE2A-62DD-4327-A1C2-42AC1E1E78E6") +/// \brief DXC linker interface. +/// +/// Use DxcCreateInstance with CLSID_DxcLinker to obtain an instance of this +/// interface. +struct IDxcLinker : public IUnknown { +public: + /// \brief Register a library with name to reference it later. + virtual HRESULT + RegisterLibrary(_In_opt_ LPCWSTR pLibName, ///< Name of the library. + _In_ IDxcBlob *pLib ///< Library blob. + ) = 0; + + /// \brief Links the shader and produces a shader blob that the Direct3D + /// runtime can use. + virtual HRESULT STDMETHODCALLTYPE Link( + _In_opt_ LPCWSTR pEntryName, ///< Entry point name. + _In_ LPCWSTR pTargetProfile, ///< shader profile to link. + _In_count_(libCount) + const LPCWSTR *pLibNames, ///< Array of library names to link. + _In_ UINT32 libCount, ///< Number of libraries to link. + _In_opt_count_(argCount) + const LPCWSTR *pArguments, ///< Array of pointers to arguments. + _In_ UINT32 argCount, ///< Number of arguments. + _COM_Outptr_ IDxcOperationResult * + *ppResult ///< Linker output status, buffer, and errors. + ) = 0; +}; + +///////////////////////// +// Latest interfaces. Please use these. +//////////////////////// + +CROSS_PLATFORM_UUIDOF(IDxcUtils, "4605C4CB-2019-492A-ADA4-65F20BB7D67F") +/// \brief Various utility functions for DXC. +/// +/// Use DxcCreateInstance with CLSID_DxcUtils to obtain an instance of this +/// interface. +/// +/// IDxcUtils replaces IDxcLibrary. +struct IDxcUtils : public IUnknown { + /// \brief Create a sub-blob that holds a reference to the outer blob and + /// points to its memory. + /// + /// \param pBlob The outer blob. + /// + /// \param offset The offset inside the outer blob. + /// + /// \param length The size, in bytes, of the buffer to reference from the + /// output blob. + /// + /// \param ppResult Address of the pointer that receives a pointer to the + /// newly created blob. + virtual HRESULT STDMETHODCALLTYPE + CreateBlobFromBlob(_In_ IDxcBlob *pBlob, UINT32 offset, UINT32 length, + _COM_Outptr_ IDxcBlob **ppResult) = 0; + + // For codePage, use 0 (or DXC_CP_ACP) for raw binary or ANSI code page. + + /// \brief Create a blob referencing existing memory, with no copy. + /// + /// \param pData Pointer to buffer containing the contents of the new blob. + /// + /// \param size The size of the pData buffer, in bytes. + /// + /// \param codePage The code page to use if the blob contains text. Use + /// DXC_CP_ACP for binary or ANSI code page. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + /// + /// The user must manage the memory lifetime separately. + /// + /// This replaces IDxcLibrary::CreateBlobWithEncodingFromPinned. + virtual HRESULT STDMETHODCALLTYPE CreateBlobFromPinned( + _In_bytecount_(size) LPCVOID pData, UINT32 size, UINT32 codePage, + _COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0; + + /// \brief Create a blob, taking ownership of memory allocated with the + /// supplied allocator. + /// + /// \param pData Pointer to buffer containing the contents of the new blob. + /// + /// \param pIMalloc The memory allocator to use. + /// + /// \param size The size of thee pData buffer, in bytes. + /// + /// \param codePage The code page to use if the blob contains text. Use + /// DXC_CP_ACP for binary or ANSI code page. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + /// + /// This replaces IDxcLibrary::CreateBlobWithEncodingOnMalloc. + virtual HRESULT STDMETHODCALLTYPE MoveToBlob( + _In_bytecount_(size) LPCVOID pData, IMalloc *pIMalloc, UINT32 size, + UINT32 codePage, _COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0; + + /// \brief Create a blob containing a copy of the existing data. + /// + /// \param pData Pointer to buffer containing the contents of the new blob. + /// + /// \param size The size of thee pData buffer, in bytes. + /// + /// \param codePage The code page to use if the blob contains text. Use + /// DXC_CP_ACP for binary or ANSI code page. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + /// + /// The new blob and its contents are allocated with the current allocator. + /// This replaces IDxcLibrary::CreateBlobWithEncodingOnHeapCopy. + virtual HRESULT STDMETHODCALLTYPE + CreateBlob(_In_bytecount_(size) LPCVOID pData, UINT32 size, UINT32 codePage, + _COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0; + + /// \brief Create a blob with data loaded from a file. + /// + /// \param pFileName The name of the file to load from. + /// + /// \param pCodePage Optional code page to use if the blob contains text. Pass + /// NULL for binary data. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + /// + /// The new blob and its contents are allocated with the current allocator. + /// This replaces IDxcLibrary::CreateBlobFromFile. + virtual HRESULT STDMETHODCALLTYPE + LoadFile(_In_z_ LPCWSTR pFileName, _In_opt_ UINT32 *pCodePage, + _COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0; + + /// \brief Create a stream that reads data from a blob. + /// + /// \param pBlob The blob to read from. + /// + /// \param ppStream Address of the pointer that receives a pointer to the + /// newly created stream. + virtual HRESULT STDMETHODCALLTYPE CreateReadOnlyStreamFromBlob( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IStream **ppStream) = 0; + + /// \brief Create default file-based include handler. + /// + /// \param ppResult Address of the pointer that receives a pointer to the + /// newly created include handler. + virtual HRESULT STDMETHODCALLTYPE + CreateDefaultIncludeHandler(_COM_Outptr_ IDxcIncludeHandler **ppResult) = 0; + + /// \brief Convert or return matching encoded text blob as UTF-8. + /// + /// \param pBlob The blob to convert. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + virtual HRESULT STDMETHODCALLTYPE GetBlobAsUtf8( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobUtf8 **ppBlobEncoding) = 0; + + /// \brief Convert or return matching encoded text blob as UTF-16. + /// + /// \param pBlob The blob to convert. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + virtual HRESULT STDMETHODCALLTYPE GetBlobAsWide( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobWide **ppBlobEncoding) = 0; + +#ifdef _WIN32 + /// \brief Convert or return matching encoded text blob as UTF-16. + /// + /// \param pBlob The blob to convert. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + /// + /// Alias to GetBlobAsWide on Win32. + inline HRESULT GetBlobAsUtf16(_In_ IDxcBlob *pBlob, + _COM_Outptr_ IDxcBlobWide **ppBlobEncoding) { + return this->GetBlobAsWide(pBlob, ppBlobEncoding); + } +#endif + + /// \brief Retrieve a single part from a DXIL container. + /// + /// \param pShader The shader to retrieve the part from. + /// + /// \param DxcPart The part to retrieve (eg DXC_PART_ROOT_SIGNATURE). + /// + /// \param ppPartData Address of the pointer that receives a pointer to the + /// part. + /// + /// \param pPartSizeInBytes Address of the pointer that receives the size of + /// the part. + /// + /// The returned pointer points inside the buffer passed in pShader. + virtual HRESULT STDMETHODCALLTYPE + GetDxilContainerPart(_In_ const DxcBuffer *pShader, _In_ UINT32 DxcPart, + _Outptr_result_nullonfailure_ void **ppPartData, + _Out_ UINT32 *pPartSizeInBytes) = 0; + + /// \brief Create reflection interface from serialized DXIL container or the + /// DXC_OUT_REFLECTION blob contents. + /// + /// \param pData The source data. + /// + /// \param iid The interface ID of the reflection interface to create. + /// + /// \param ppvReflection Address of the pointer that receives a pointer to the + /// newly created reflection interface. + /// + /// Use this with interfaces such as ID3D12ShaderReflection. + virtual HRESULT STDMETHODCALLTYPE CreateReflection( + _In_ const DxcBuffer *pData, REFIID iid, void **ppvReflection) = 0; + + /// \brief Build arguments that can be passed to the Compile method. + virtual HRESULT STDMETHODCALLTYPE BuildArguments( + _In_opt_z_ LPCWSTR pSourceName, ///< Optional file name for pSource. Used + ///< in errors and include handlers. + _In_opt_z_ LPCWSTR pEntryPoint, ///< Entry point name (-E). + _In_z_ LPCWSTR pTargetProfile, ///< Shader profile to compile (-T). + _In_opt_count_(argCount) + LPCWSTR *pArguments, ///< Array of pointers to arguments. + _In_ UINT32 argCount, ///< Number of arguments. + _In_count_(defineCount) const DxcDefine *pDefines, ///< Array of defines. + _In_ UINT32 defineCount, ///< Number of defines. + _COM_Outptr_ IDxcCompilerArgs * + *ppArgs ///< Arguments you can use with Compile() method. + ) = 0; + + /// \brief Retrieve the hash and contents of a shader PDB. + /// + /// \param pPDBBlob The blob containing the PDB. + /// + /// \param ppHash Address of the pointer that receives a pointer to the hash + /// blob. + /// + /// \param ppContainer Address of the pointer that receives a pointer to the + /// bloc containing the contents of the PDB. + /// + virtual HRESULT STDMETHODCALLTYPE + GetPDBContents(_In_ IDxcBlob *pPDBBlob, _COM_Outptr_ IDxcBlob **ppHash, + _COM_Outptr_ IDxcBlob **ppContainer) = 0; +}; + +/// \brief Specifies the kind of output to retrieve from a IDxcResult. +/// +/// Note: text outputs returned from version 2 APIs are UTF-8 or UTF-16 based on +/// the -encoding option passed to the compiler. +typedef enum DXC_OUT_KIND { + DXC_OUT_NONE = 0, ///< No output. + DXC_OUT_OBJECT = 1, ///< IDxcBlob - Shader or library object. + DXC_OUT_ERRORS = 2, ///< IDxcBlobUtf8 or IDxcBlobWide. + DXC_OUT_PDB = 3, ///< IDxcBlob. + DXC_OUT_SHADER_HASH = 4, ///< IDxcBlob - DxcShaderHash of shader or shader + ///< with source info (-Zsb/-Zss). + DXC_OUT_DISASSEMBLY = 5, ///< IDxcBlobUtf8 or IDxcBlobWide - from Disassemble. + DXC_OUT_HLSL = + 6, ///< IDxcBlobUtf8 or IDxcBlobWide - from Preprocessor or Rewriter. + DXC_OUT_TEXT = 7, ///< IDxcBlobUtf8 or IDxcBlobWide - other text, such as + ///< -ast-dump or -Odump. + DXC_OUT_REFLECTION = 8, ///< IDxcBlob - RDAT part with reflection data. + DXC_OUT_ROOT_SIGNATURE = 9, ///< IDxcBlob - Serialized root signature output. + DXC_OUT_EXTRA_OUTPUTS = 10, ///< IDxcExtraOutputs - Extra outputs. + DXC_OUT_REMARKS = + 11, ///< IDxcBlobUtf8 or IDxcBlobWide - text directed at stdout. + DXC_OUT_TIME_REPORT = + 12, ///< IDxcBlobUtf8 or IDxcBlobWide - text directed at stdout. + DXC_OUT_TIME_TRACE = + 13, ///< IDxcBlobUtf8 or IDxcBlobWide - text directed at stdout. + + DXC_OUT_LAST = DXC_OUT_TIME_TRACE, ///< Last value for a counter. + + DXC_OUT_NUM_ENUMS, + DXC_OUT_FORCE_DWORD = 0xFFFFFFFF +} DXC_OUT_KIND; + +static_assert(DXC_OUT_NUM_ENUMS == DXC_OUT_LAST + 1, + "DXC_OUT_* Enum added and last value not updated."); + +CROSS_PLATFORM_UUIDOF(IDxcResult, "58346CDA-DDE7-4497-9461-6F87AF5E0659") +/// \brief Result of a DXC operation. +/// +/// DXC operations may have multiple outputs, such as a shader object and +/// errors. This interface provides access to the outputs. +struct IDxcResult : public IDxcOperationResult { + /// \brief Determines whether or not this result has the specified output. + /// + /// \param dxcOutKind The kind of output to check for. + virtual BOOL STDMETHODCALLTYPE HasOutput(_In_ DXC_OUT_KIND dxcOutKind) = 0; + + /// \brief Retrieves the specified output. + /// + /// \param dxcOutKind The kind of output to retrieve. + /// + /// \param iid The interface ID of the output interface. + /// + /// \param ppvObject Address of the pointer that receives a pointer to the + /// output. + /// + /// \param ppOutputName Optional address of a pointer to receive the name + /// blob, if there is one. + virtual HRESULT STDMETHODCALLTYPE + GetOutput(_In_ DXC_OUT_KIND dxcOutKind, _In_ REFIID iid, + _COM_Outptr_opt_result_maybenull_ void **ppvObject, + _COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppOutputName) = 0; + + /// \brief Retrieves the number of outputs available in this result. + virtual UINT32 GetNumOutputs() = 0; + + /// \brief Retrieves the output kind at the specified index. + virtual DXC_OUT_KIND GetOutputByIndex(UINT32 Index) = 0; + + /// \brief Retrieves the primary output kind for this result. + /// + /// See IDxcOperationResult::GetResult() for more information on the primary + /// output kinds. + virtual DXC_OUT_KIND PrimaryOutput() = 0; +}; + +// Special names for extra output that should get written to specific streams. +#define DXC_EXTRA_OUTPUT_NAME_STDOUT L"*stdout*" +#define DXC_EXTRA_OUTPUT_NAME_STDERR L"*stderr*" + +CROSS_PLATFORM_UUIDOF(IDxcExtraOutputs, "319b37a2-a5c2-494a-a5de-4801b2faf989") +/// \brief Additional outputs from a DXC operation. +/// +/// This can be used to obtain outputs that don't have an explicit DXC_OUT_KIND. +/// Use DXC_OUT_EXTRA_OUTPUTS to obtain instances of this. +struct IDxcExtraOutputs : public IUnknown { + /// \brief Retrieves the number of outputs available + virtual UINT32 STDMETHODCALLTYPE GetOutputCount() = 0; + + /// \brief Retrieves the specified output. + /// + /// \param uIndex The index of the output to retrieve. + /// + /// \param iid The interface ID of the output interface. + /// + /// \param ppvObject Optional address of the pointer that receives a pointer + /// to the output if there is one. + /// + /// \param ppOutputType Optional address of the pointer that receives the + /// output type name blob if there is one. + /// + /// \param ppOutputName Optional address of the pointer that receives the + /// output name blob if there is one. + virtual HRESULT STDMETHODCALLTYPE + GetOutput(_In_ UINT32 uIndex, _In_ REFIID iid, + _COM_Outptr_opt_result_maybenull_ void **ppvObject, + _COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppOutputType, + _COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppOutputName) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcCompiler3, "228B4687-5A6A-4730-900C-9702B2203F54") +/// \brief Interface to the DirectX Shader Compiler. +/// +/// Use DxcCreateInstance with CLSID_DxcCompiler to obtain an instance of this +/// interface. +struct IDxcCompiler3 : public IUnknown { + /// \brief Compile a shader. + /// + /// IDxcUtils::BuildArguments can be used to assist building the pArguments + /// and argCount parameters. + /// + /// Depending on the arguments, this method can be used to: + /// + /// * Compile a single entry point to the target shader model, + /// * Compile a library to a library target (-T lib_*) + /// * Compile a root signature (-T rootsig_*), + /// * Preprocess HLSL source (-P). + virtual HRESULT STDMETHODCALLTYPE Compile( + _In_ const DxcBuffer *pSource, ///< Source text to compile. + _In_opt_count_(argCount) + LPCWSTR *pArguments, ///< Array of pointers to arguments. + _In_ UINT32 argCount, ///< Number of arguments. + _In_opt_ IDxcIncludeHandler + *pIncludeHandler, ///< user-provided interface to handle include + ///< directives (optional). + _In_ REFIID riid, ///< Interface ID for the result. + _Out_ LPVOID *ppResult ///< IDxcResult: status, buffer, and errors. + ) = 0; + + /// \brief Disassemble a program. + virtual HRESULT STDMETHODCALLTYPE Disassemble( + _In_ const DxcBuffer + *pObject, ///< Program to disassemble: dxil container or bitcode. + _In_ REFIID riid, ///< Interface ID for the result. + _Out_ LPVOID + *ppResult ///< IDxcResult: status, disassembly text, and errors. + ) = 0; +}; + +static const UINT32 DxcValidatorFlags_Default = 0; +static const UINT32 DxcValidatorFlags_InPlaceEdit = + 1; // Validator is allowed to update shader blob in-place. +static const UINT32 DxcValidatorFlags_RootSignatureOnly = 2; +static const UINT32 DxcValidatorFlags_ModuleOnly = 4; +static const UINT32 DxcValidatorFlags_ValidMask = 0x7; + +CROSS_PLATFORM_UUIDOF(IDxcValidator, "A6E82BD2-1FD7-4826-9811-2857E797F49A") +/// \brief Interface to DXC shader validator. +/// +/// Use DxcCreateInstance with CLSID_DxcValidator to obtain an instance of this. +struct IDxcValidator : public IUnknown { + /// \brief Validate a shader. + virtual HRESULT STDMETHODCALLTYPE Validate( + _In_ IDxcBlob *pShader, ///< Shader to validate. + _In_ UINT32 Flags, ///< Validation flags. + _COM_Outptr_ IDxcOperationResult * + *ppResult ///< Validation output status, buffer, and errors. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcValidator2, "458e1fd1-b1b2-4750-a6e1-9c10f03bed92") +/// \brief Interface to DXC shader validator. +/// +/// Use DxcCreateInstance with CLSID_DxcValidator to obtain an instance of this. +struct IDxcValidator2 : public IDxcValidator { + /// \brief Validate a shader with optional debug bitcode. + virtual HRESULT STDMETHODCALLTYPE ValidateWithDebug( + _In_ IDxcBlob *pShader, ///< Shader to validate. + _In_ UINT32 Flags, ///< Validation flags. + _In_opt_ DxcBuffer *pOptDebugBitcode, ///< Optional debug module bitcode + ///< to provide line numbers. + _COM_Outptr_ IDxcOperationResult * + *ppResult ///< Validation output status, buffer, and errors. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcContainerBuilder, + "334b1f50-2292-4b35-99a1-25588d8c17fe") +/// \brief Interface to DXC container builder. +/// +/// Use DxcCreateInstance with CLSID_DxcContainerBuilder to obtain an instance +/// of this. +struct IDxcContainerBuilder : public IUnknown { + /// \brief Load a DxilContainer to the builder. + virtual HRESULT STDMETHODCALLTYPE + Load(_In_ IDxcBlob *pDxilContainerHeader) = 0; + + /// \brief Add a part to the container. + /// + /// \param fourCC The part identifier (eg DXC_PART_PDB). + /// + /// \param pSource The source blob. + virtual HRESULT STDMETHODCALLTYPE AddPart(_In_ UINT32 fourCC, + _In_ IDxcBlob *pSource) = 0; + + /// \brief Remove a part from the container. + /// + /// \param fourCC The part identifier (eg DXC_PART_PDB). + /// + /// \return S_OK on success, DXC_E_MISSING_PART if the part was not found, or + /// other standard HRESULT error code. + virtual HRESULT STDMETHODCALLTYPE RemovePart(_In_ UINT32 fourCC) = 0; + + /// \brief Build the container. + /// + /// \param ppResult Pointer to variable to receive the result. + virtual HRESULT STDMETHODCALLTYPE + SerializeContainer(_Out_ IDxcOperationResult **ppResult) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcAssembler, "091f7a26-1c1f-4948-904b-e6e3a8a771d5") +/// \brief Interface to DxcAssembler. +/// +/// Use DxcCreateInstance with CLSID_DxcAssembler to obtain an instance of this. +struct IDxcAssembler : public IUnknown { + /// \brief Assemble DXIL in LL or LLVM bitcode to DXIL container. + virtual HRESULT STDMETHODCALLTYPE AssembleToContainer( + _In_ IDxcBlob *pShader, ///< Shader to assemble. + _COM_Outptr_ IDxcOperationResult * + *ppResult ///< Assembly output status, buffer, and errors. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcContainerReflection, + "d2c21b26-8350-4bdc-976a-331ce6f4c54c") +/// \brief Interface to DxcContainerReflection. +/// +/// Use DxcCreateInstance with CLSID_DxcContainerReflection to obtain an +/// instance of this. +struct IDxcContainerReflection : public IUnknown { + /// \brief Choose the container to perform reflection on + /// + /// \param pContainer The container to load. If null is passed then this + /// instance will release any held resources. + virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pContainer) = 0; + + /// \brief Retrieves the number of parts in the container. + /// + /// \param pResult Pointer to variable to receive the result. + /// + /// \return S_OK on success, E_NOT_VALID_STATE if a container has not been + /// loaded using Load(), or other standard HRESULT error codes. + virtual HRESULT STDMETHODCALLTYPE GetPartCount(_Out_ UINT32 *pResult) = 0; + + /// \brief Retrieve the kind of a specified part. + /// + /// \param idx The index of the part to retrieve the kind of. + /// + /// \param pResult Pointer to variable to receive the result. + /// + /// \return S_OK on success, E_NOT_VALID_STATE if a container has not been + /// loaded using Load(), E_BOUND if idx is out of bounds, or other standard + /// HRESULT error codes. + virtual HRESULT STDMETHODCALLTYPE GetPartKind(UINT32 idx, + _Out_ UINT32 *pResult) = 0; + + /// \brief Retrieve the content of a specified part. + /// + /// \param idx The index of the part to retrieve. + /// + /// \param ppResult Pointer to variable to receive the result. + /// + /// \return S_OK on success, E_NOT_VALID_STATE if a container has not been + /// loaded using Load(), E_BOUND if idx is out of bounds, or other standard + /// HRESULT error codes. + virtual HRESULT STDMETHODCALLTYPE + GetPartContent(UINT32 idx, _COM_Outptr_ IDxcBlob **ppResult) = 0; + + /// \brief Retrieve the index of the first part with the specified kind. + /// + /// \param kind The kind to search for. + /// + /// \param pResult Pointer to variable to receive the index of the matching + /// part. + /// + /// \return S_OK on success, E_NOT_VALID_STATE if a container has not been + /// loaded using Load(), HRESULT_FROM_WIN32(ERROR_NOT_FOUND) if there is no + /// part with the specified kind, or other standard HRESULT error codes. + virtual HRESULT STDMETHODCALLTYPE + FindFirstPartKind(UINT32 kind, _Out_ UINT32 *pResult) = 0; + + /// \brief Retrieve the reflection interface for a specified part. + /// + /// \param idx The index of the part to retrieve the reflection interface of. + /// + /// \param iid The IID of the interface to retrieve. + /// + /// \param ppvObject Pointer to variable to receive the result. + /// + /// Use this with interfaces such as ID3D12ShaderReflection. + /// + /// \return S_OK on success, E_NOT_VALID_STATE if a container has not been + /// loaded using Load(), E_BOUND if idx is out of bounds, or other standard + /// HRESULT error codes. + virtual HRESULT STDMETHODCALLTYPE GetPartReflection(UINT32 idx, REFIID iid, + void **ppvObject) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcOptimizerPass, "AE2CD79F-CC22-453F-9B6B-B124E7A5204C") +/// \brief An optimizer pass. +/// +/// Instances of this can be obtained via IDxcOptimizer::GetAvailablePass. +struct IDxcOptimizerPass : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE + GetOptionName(_COM_Outptr_ LPWSTR *ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetDescription(_COM_Outptr_ LPWSTR *ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetOptionArgCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetOptionArgName(UINT32 argIndex, _COM_Outptr_ LPWSTR *ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetOptionArgDescription(UINT32 argIndex, _COM_Outptr_ LPWSTR *ppResult) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcOptimizer, "25740E2E-9CBA-401B-9119-4FB42F39F270") +/// \brief Interface to DxcOptimizer. +/// +/// Use DxcCreateInstance with CLSID_DxcOptimizer to obtain an instance of this. +struct IDxcOptimizer : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE + GetAvailablePassCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetAvailablePass(UINT32 index, _COM_Outptr_ IDxcOptimizerPass **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + RunOptimizer(IDxcBlob *pBlob, _In_count_(optionCount) LPCWSTR *ppOptions, + UINT32 optionCount, _COM_Outptr_ IDxcBlob **pOutputModule, + _COM_Outptr_opt_ IDxcBlobEncoding **ppOutputText) = 0; +}; + +static const UINT32 DxcVersionInfoFlags_None = 0; +static const UINT32 DxcVersionInfoFlags_Debug = 1; // Matches VS_FF_DEBUG +static const UINT32 DxcVersionInfoFlags_Internal = + 2; // Internal Validator (non-signing) + +CROSS_PLATFORM_UUIDOF(IDxcVersionInfo, "b04f5b50-2059-4f12-a8ff-a1e0cde1cc7e") +/// \brief PDB Version information. +/// +/// Use IDxcPdbUtils2::GetVersionInfo to obtain an instance of this. +struct IDxcVersionInfo : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE GetVersion(_Out_ UINT32 *pMajor, + _Out_ UINT32 *pMinor) = 0; + virtual HRESULT STDMETHODCALLTYPE GetFlags(_Out_ UINT32 *pFlags) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcVersionInfo2, "fb6904c4-42f0-4b62-9c46-983af7da7c83") +/// \brief PDB Version Information. +/// +/// Use IDxcPdbUtils2::GetVersionInfo to obtain a IDxcVersionInfo interface, and +/// then use QueryInterface to obtain an instance of this interface from it. +struct IDxcVersionInfo2 : public IDxcVersionInfo { + virtual HRESULT STDMETHODCALLTYPE GetCommitInfo( + _Out_ UINT32 *pCommitCount, ///< The total number commits. + _Outptr_result_z_ char **pCommitHash ///< The SHA of the latest commit. + ///< Must be CoTaskMemFree()'d. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcVersionInfo3, "5e13e843-9d25-473c-9ad2-03b2d0b44b1e") +/// \brief PDB Version Information. +/// +/// Use IDxcPdbUtils2::GetVersionInfo to obtain a IDxcVersionInfo interface, and +/// then use QueryInterface to obtain an instance of this interface from it. +struct IDxcVersionInfo3 : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE GetCustomVersionString( + _Outptr_result_z_ char * + *pVersionString ///< Custom version string for compiler. Must be + ///< CoTaskMemFree()'d. + ) = 0; +}; + +struct DxcArgPair { + const WCHAR *pName; + const WCHAR *pValue; +}; + +CROSS_PLATFORM_UUIDOF(IDxcPdbUtils, "E6C9647E-9D6A-4C3B-B94C-524B5A6C343D") +/// \deprecated Please use IDxcPdbUtils2 instead. +struct IDxcPdbUtils : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pPdbOrDxil) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSourceCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetSource(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobEncoding **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetSourceName(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFlagCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetFlag(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetArgCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetArg(_In_ UINT32 uIndex, + _Outptr_result_z_ BSTR *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetArgPairCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetArgPair(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pName, + _Outptr_result_z_ BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefineCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetDefine(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE + GetTargetProfile(_Outptr_result_z_ BSTR *pResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetEntryPoint(_Outptr_result_z_ BSTR *pResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetMainFileName(_Outptr_result_z_ BSTR *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE + GetHash(_COM_Outptr_ IDxcBlob **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetName(_Outptr_result_z_ BSTR *pResult) = 0; + + virtual BOOL STDMETHODCALLTYPE IsFullPDB() = 0; + virtual HRESULT STDMETHODCALLTYPE + GetFullPDB(_COM_Outptr_ IDxcBlob **ppFullPDB) = 0; + + virtual HRESULT STDMETHODCALLTYPE + GetVersionInfo(_COM_Outptr_ IDxcVersionInfo **ppVersionInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE + SetCompiler(_In_ IDxcCompiler3 *pCompiler) = 0; + virtual HRESULT STDMETHODCALLTYPE + CompileForFullPDB(_COM_Outptr_ IDxcResult **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE OverrideArgs(_In_ DxcArgPair *pArgPairs, + UINT32 uNumArgPairs) = 0; + virtual HRESULT STDMETHODCALLTYPE + OverrideRootSignature(_In_ const WCHAR *pRootSignature) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcPdbUtils2, "4315D938-F369-4F93-95A2-252017CC3807") +/// \brief DxcPdbUtils interface. +/// +/// Use DxcCreateInstance with CLSID_DxcPdbUtils to create an instance of this. +struct IDxcPdbUtils2 : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pPdbOrDxil) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSourceCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetSource(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobEncoding **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetSourceName(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLibraryPDBCount(UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetLibraryPDB( + _In_ UINT32 uIndex, _COM_Outptr_ IDxcPdbUtils2 **ppOutPdbUtils, + _COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppLibraryName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFlagCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetFlag(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetArgCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetArg(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetArgPairCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetArgPair( + _In_ UINT32 uIndex, _COM_Outptr_result_maybenull_ IDxcBlobWide **ppName, + _COM_Outptr_result_maybenull_ IDxcBlobWide **ppValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefineCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetDefine(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE + GetTargetProfile(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetEntryPoint(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetMainFileName(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE + GetHash(_COM_Outptr_result_maybenull_ IDxcBlob **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetName(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionInfo( + _COM_Outptr_result_maybenull_ IDxcVersionInfo **ppVersionInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCustomToolchainID(_Out_ UINT32 *pID) = 0; + virtual HRESULT STDMETHODCALLTYPE + GetCustomToolchainData(_COM_Outptr_result_maybenull_ IDxcBlob **ppBlob) = 0; + + virtual HRESULT STDMETHODCALLTYPE + GetWholeDxil(_COM_Outptr_result_maybenull_ IDxcBlob **ppResult) = 0; + + virtual BOOL STDMETHODCALLTYPE IsFullPDB() = 0; + virtual BOOL STDMETHODCALLTYPE IsPDBRef() = 0; +}; + +// Note: __declspec(selectany) requires 'extern' +// On Linux __declspec(selectany) is removed and using 'extern' results in link +// error. +#ifdef _MSC_VER +#define CLSID_SCOPE __declspec(selectany) extern +#else +#define CLSID_SCOPE +#endif + +CLSID_SCOPE const CLSID CLSID_DxcCompiler = { + 0x73e22d93, + 0xe6ce, + 0x47f3, + {0xb5, 0xbf, 0xf0, 0x66, 0x4f, 0x39, 0xc1, 0xb0}}; + +// {EF6A8087-B0EA-4D56-9E45-D07E1A8B7806} +CLSID_SCOPE const GUID CLSID_DxcLinker = { + 0xef6a8087, + 0xb0ea, + 0x4d56, + {0x9e, 0x45, 0xd0, 0x7e, 0x1a, 0x8b, 0x78, 0x6}}; + +// {CD1F6B73-2AB0-484D-8EDC-EBE7A43CA09F} +CLSID_SCOPE const CLSID CLSID_DxcDiaDataSource = { + 0xcd1f6b73, + 0x2ab0, + 0x484d, + {0x8e, 0xdc, 0xeb, 0xe7, 0xa4, 0x3c, 0xa0, 0x9f}}; + +// {3E56AE82-224D-470F-A1A1-FE3016EE9F9D} +CLSID_SCOPE const CLSID CLSID_DxcCompilerArgs = { + 0x3e56ae82, + 0x224d, + 0x470f, + {0xa1, 0xa1, 0xfe, 0x30, 0x16, 0xee, 0x9f, 0x9d}}; + +// {6245D6AF-66E0-48FD-80B4-4D271796748C} +CLSID_SCOPE const GUID CLSID_DxcLibrary = { + 0x6245d6af, + 0x66e0, + 0x48fd, + {0x80, 0xb4, 0x4d, 0x27, 0x17, 0x96, 0x74, 0x8c}}; + +CLSID_SCOPE const GUID CLSID_DxcUtils = CLSID_DxcLibrary; + +// {8CA3E215-F728-4CF3-8CDD-88AF917587A1} +CLSID_SCOPE const GUID CLSID_DxcValidator = { + 0x8ca3e215, + 0xf728, + 0x4cf3, + {0x8c, 0xdd, 0x88, 0xaf, 0x91, 0x75, 0x87, 0xa1}}; + +// {D728DB68-F903-4F80-94CD-DCCF76EC7151} +CLSID_SCOPE const GUID CLSID_DxcAssembler = { + 0xd728db68, + 0xf903, + 0x4f80, + {0x94, 0xcd, 0xdc, 0xcf, 0x76, 0xec, 0x71, 0x51}}; + +// {b9f54489-55b8-400c-ba3a-1675e4728b91} +CLSID_SCOPE const GUID CLSID_DxcContainerReflection = { + 0xb9f54489, + 0x55b8, + 0x400c, + {0xba, 0x3a, 0x16, 0x75, 0xe4, 0x72, 0x8b, 0x91}}; + +// {AE2CD79F-CC22-453F-9B6B-B124E7A5204C} +CLSID_SCOPE const GUID CLSID_DxcOptimizer = { + 0xae2cd79f, + 0xcc22, + 0x453f, + {0x9b, 0x6b, 0xb1, 0x24, 0xe7, 0xa5, 0x20, 0x4c}}; + +// {94134294-411f-4574-b4d0-8741e25240d2} +CLSID_SCOPE const GUID CLSID_DxcContainerBuilder = { + 0x94134294, + 0x411f, + 0x4574, + {0xb4, 0xd0, 0x87, 0x41, 0xe2, 0x52, 0x40, 0xd2}}; + +// {54621dfb-f2ce-457e-ae8c-ec355faeec7c} +CLSID_SCOPE const GUID CLSID_DxcPdbUtils = { + 0x54621dfb, + 0xf2ce, + 0x457e, + {0xae, 0x8c, 0xec, 0x35, 0x5f, 0xae, 0xec, 0x7c}}; + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxcore.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxcore.h new file mode 100644 index 0000000000000000000000000000000000000000..5ee4bdfd3886a9256729ce5a2edd8c222479573c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxcore.h @@ -0,0 +1,42 @@ +/************************************************************ +* * +* Copyright (c) Microsoft Corporation. * +* Licensed under the MIT license. * +* * +************************************************************/ + +#ifndef _DXCOREEXTMODULE_H_ +#define _DXCOREEXTMODULE_H_ + +#include +#include "dxcore_interface.h" + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +#if (_WIN32_WINNT >= _WIN32_WINNT_WIN10) + +STDAPI +DXCoreCreateAdapterFactory( + REFIID riid, + _COM_Outptr_ void** ppvFactory +); + +template +HRESULT +DXCoreCreateAdapterFactory( + _COM_Outptr_ T** ppvFactory +) +{ + return DXCoreCreateAdapterFactory(IID_PPV_ARGS(ppvFactory)); +} + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN10) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _DXCOREEXTMODULE_H_ + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxcore_interface.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxcore_interface.h new file mode 100644 index 0000000000000000000000000000000000000000..49a76598dceef1c2c119af905e960c41be7f3159 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxcore_interface.h @@ -0,0 +1,497 @@ +// +// DXCore Interface +// Copyright (C) Microsoft Corporation. +// Licensed under the MIT license. +// + +#ifndef __dxcore_interface_h__ +#define __dxcore_interface_h__ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#include + +#ifdef __cplusplus + +#define _FACDXCORE 0x880 +#define MAKE_DXCORE_HRESULT( code ) MAKE_HRESULT( 1, _FACDXCORE, code ) + +enum class DXCoreAdapterProperty : uint32_t +{ + InstanceLuid = 0, + DriverVersion = 1, + DriverDescription = 2, + HardwareID = 3, // Use HardwareIDParts instead, if available. + KmdModelVersion = 4, + ComputePreemptionGranularity = 5, + GraphicsPreemptionGranularity = 6, + DedicatedAdapterMemory = 7, + DedicatedSystemMemory = 8, + SharedSystemMemory = 9, + AcgCompatible = 10, + IsHardware = 11, + IsIntegrated = 12, + IsDetachable = 13, + HardwareIDParts = 14, + PhysicalAdapterCount = 15, + AdapterEngineCount = 16, + AdapterEngineName = 17, +}; + +enum class DXCoreAdapterState : uint32_t +{ + IsDriverUpdateInProgress = 0, + AdapterMemoryBudget = 1, + AdapterMemoryUsageBytes = 2, + AdapterMemoryUsageByProcessBytes = 3, + AdapterEngineRunningTimeMicroseconds = 4, + AdapterEngineRunningTimeByProcessMicroseconds = 5, + AdapterTemperatureCelsius = 6, + AdapterInUseProcessCount = 7, + AdapterInUseProcessSet = 8, + AdapterEngineFrequencyHertz = 9, + AdapterMemoryFrequencyHertz = 10 +}; + +enum class DXCoreSegmentGroup : uint32_t +{ + Local = 0, + NonLocal = 1 +}; + +enum class DXCoreNotificationType : uint32_t +{ + AdapterListStale = 0, + AdapterNoLongerValid = 1, + AdapterBudgetChange = 2, + AdapterHardwareContentProtectionTeardown = 3 +}; + +enum class DXCoreAdapterPreference : uint32_t +{ + Hardware = 0, + MinimumPower = 1, + HighPerformance = 2 +}; + +enum class DXCoreWorkload : uint32_t +{ + Graphics = 0, + Compute = 1, + Media = 2, + MachineLearning = 3, +}; + +enum class DXCoreRuntimeFilterFlags : uint32_t +{ + None = 0x0, + D3D11 = 0x1, + D3D12 = 0x2 +}; + +DEFINE_ENUM_FLAG_OPERATORS(DXCoreRuntimeFilterFlags); + +enum class DXCoreHardwareTypeFilterFlags : uint32_t +{ + None = 0x0, + GPU = 0x1, + ComputeAccelerator = 0x2, + NPU = 0x4, + MediaAccelerator = 0x8 +}; + +DEFINE_ENUM_FLAG_OPERATORS(DXCoreHardwareTypeFilterFlags); + +struct DXCoreHardwareID +{ + uint32_t vendorID; + uint32_t deviceID; + uint32_t subSysID; + uint32_t revision; +}; + +struct DXCoreHardwareIDParts +{ + uint32_t vendorID; + uint32_t deviceID; + uint32_t subSystemID; + uint32_t subVendorID; + uint32_t revisionID; +}; + +struct DXCoreAdapterMemoryBudgetNodeSegmentGroup +{ + uint32_t nodeIndex; + DXCoreSegmentGroup segmentGroup; +}; + +struct DXCoreAdapterMemoryBudget +{ + uint64_t budget; + uint64_t currentUsage; + uint64_t availableForReservation; + uint64_t currentReservation; +}; + +struct DXCoreAdapterEngineIndex +{ + uint32_t physicalAdapterIndex; + uint32_t engineIndex; +}; + +struct DXCoreEngineQueryInput +{ + DXCoreAdapterEngineIndex adapterEngineIndex; + uint32_t processId; +}; + +struct DXCoreEngineQueryOutput +{ + uint64_t runningTime; + bool processQuerySucceeded; +}; + +enum class DXCoreMemoryType : uint32_t +{ + Dedicated = 0, + Shared = 1 +}; + +struct DXCoreMemoryUsage +{ + uint64_t committed; + uint64_t resident; +}; + +struct DXCoreMemoryQueryInput +{ + uint32_t physicalAdapterIndex; + DXCoreMemoryType memoryType; +}; + +struct DXCoreProcessMemoryQueryInput +{ + uint32_t physicalAdapterIndex; + DXCoreMemoryType memoryType; + uint32_t processId; +}; + +struct DXCoreProcessMemoryQueryOutput +{ + DXCoreMemoryUsage memoryUsage; + bool processQuerySucceeded; +}; + +struct DXCoreAdapterProcessSetQueryInput +{ + uint32_t arraySize; + _Field_size_(arraySize) uint32_t* processIds; +}; + +struct DXCoreAdapterProcessSetQueryOutput +{ + uint32_t processesWritten; + uint32_t processesTotal; +}; + +struct DXCoreEngineNamePropertyInput +{ + DXCoreAdapterEngineIndex adapterEngineIndex; + uint32_t engineNameLength; + _Field_size_(engineNameLength) wchar_t *engineName; +}; + +struct DXCoreEngineNamePropertyOutput +{ + uint32_t engineNameLength; +}; + +struct DXCoreFrequencyQueryOutput +{ + uint64_t frequency; + uint64_t maxFrequency; + uint64_t maxOverclockedFrequency; +}; + +typedef void (STDMETHODCALLTYPE *PFN_DXCORE_NOTIFICATION_CALLBACK)( + DXCoreNotificationType notificationType, + _In_ IUnknown *object, + _In_opt_ void *context); + +static_assert(sizeof(bool) == 1, "bool assumed as one byte"); + +DEFINE_GUID(IID_IDXCoreAdapterFactory, 0x78ee5945, 0xc36e, 0x4b13, 0xa6, 0x69, 0x00, 0x5d, 0xd1, 0x1c, 0x0f, 0x06); +DEFINE_GUID(IID_IDXCoreAdapterFactory1, 0xd5682e19, 0x6d21, 0x401c, 0x82, 0x7a, 0x9a, 0x51, 0xa4, 0xea, 0x35, 0xd7); +DEFINE_GUID(IID_IDXCoreAdapterList, 0x526c7776, 0x40e9, 0x459b, 0xb7, 0x11, 0xf3, 0x2a, 0xd7, 0x6d, 0xfc, 0x28); +DEFINE_GUID(IID_IDXCoreAdapter, 0xf0db4c7f, 0xfe5a, 0x42a2, 0xbd, 0x62, 0xf2, 0xa6, 0xcf, 0x6f, 0xc8, 0x3e); +DEFINE_GUID(IID_IDXCoreAdapter1, 0xa0783366, 0xcfa3, 0x43be, 0x9d, 0x79, 0x55, 0xb2, 0xda, 0x97, 0xc6, 0x3c); + +DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D11_GRAPHICS, 0x8c47866b, 0x7583, 0x450d, 0xf0, 0xf0, 0x6b, 0xad, 0xa8, 0x95, 0xaf, 0x4b); +DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICS, 0x0c9ece4d, 0x2f6e, 0x4f01, 0x8c, 0x96, 0xe8, 0x9e, 0x33, 0x1b, 0x47, 0xb1); +DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_CORE_COMPUTE, 0x248e2800, 0xa793, 0x4724, 0xab, 0xaa, 0x23, 0xa6, 0xde, 0x1b, 0xe0, 0x90); +DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_GENERIC_ML, 0xb71b0d41, 0x1088, 0x422f, 0xa2, 0x7c, 0x2, 0x50, 0xb7, 0xd3, 0xa9, 0x88); +DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_GENERIC_MEDIA, 0x8eb2c848, 0x82f6, 0x4b49, 0xaa, 0x87, 0xae, 0xcf, 0xcf, 0x1, 0x74, 0xc6); + +DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_GPU, 0xb69eb219, 0x3ded, 0x4464, 0x97, 0x9f, 0xa0, 0xb, 0xd4, 0x68, 0x70, 0x6); +DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_COMPUTE_ACCELERATOR, 0xe0b195da, 0x58ef, 0x4a22, 0x90, 0xf1, 0x1f, 0x28, 0x16, 0x9c, 0xab, 0x8d); +DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_NPU, 0xd46140c4, 0xadd7, 0x451b, 0x9e, 0x56, 0x6, 0xfe, 0x8c, 0x3b, 0x58, 0xed); +DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_MEDIA_ACCELERATOR, 0x66bdb96a, 0x50b, 0x44c7, 0xa4, 0xfd, 0xd1, 0x44, 0xce, 0xa, 0xb4, 0x43); + +/* interface IDXCoreAdapter */ +MIDL_INTERFACE("f0db4c7f-fe5a-42a2-bd62-f2a6cf6fc83e") +IDXCoreAdapter : public IUnknown +{ +public: + virtual bool STDMETHODCALLTYPE IsValid() = 0; + + virtual bool STDMETHODCALLTYPE IsAttributeSupported( + REFGUID attributeGUID) = 0; + + virtual bool STDMETHODCALLTYPE IsPropertySupported( + DXCoreAdapterProperty property) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + DXCoreAdapterProperty property, + size_t bufferSize, + _Out_writes_bytes_(bufferSize) void *propertyData) = 0; + + template + HRESULT GetProperty( + DXCoreAdapterProperty property, + _Out_writes_bytes_(sizeof(T)) T *propertyData) + { + return GetProperty(property, + sizeof(T), + (void*)propertyData); + } + + virtual HRESULT STDMETHODCALLTYPE GetPropertySize( + DXCoreAdapterProperty property, + _Out_ size_t *bufferSize) = 0; + + virtual bool STDMETHODCALLTYPE IsQueryStateSupported( + DXCoreAdapterState property) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryState( + DXCoreAdapterState state, + size_t inputStateDetailsSize, + _In_reads_bytes_opt_(inputStateDetailsSize) const void *inputStateDetails, + size_t outputBufferSize, + _Out_writes_bytes_(outputBufferSize) void *outputBuffer) = 0; + + template + HRESULT QueryState( + DXCoreAdapterState state, + _In_reads_bytes_opt_(sizeof(T1)) const T1 *inputStateDetails, + _Out_writes_bytes_(sizeof(T2)) T2 *outputBuffer) + { + return QueryState(state, + sizeof(T1), + (const void*)inputStateDetails, + sizeof(T2), + (void*)outputBuffer); + } + + template + HRESULT QueryState( + DXCoreAdapterState state, + _Out_writes_bytes_(sizeof(T)) T *outputBuffer) + { + return QueryState(state, + 0, + nullptr, + sizeof(T), + (void*)outputBuffer); + } + + virtual bool STDMETHODCALLTYPE IsSetStateSupported( + DXCoreAdapterState property) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetState( + DXCoreAdapterState state, + size_t inputStateDetailsSize, + _In_reads_bytes_opt_(inputStateDetailsSize) const void *inputStateDetails, + size_t inputDataSize, + _In_reads_bytes_(inputDataSize) const void *inputData) = 0; + + template + HRESULT SetState( + DXCoreAdapterState state, + const T1 *inputStateDetails, + const T2 *inputData) + { + return SetState(state, + sizeof(T1), + (const void*)inputStateDetails, + sizeof(T2), + (const void*)inputData); + } + + virtual HRESULT STDMETHODCALLTYPE GetFactory( + REFIID riid, + _COM_Outptr_ void** ppvFactory + ) = 0; + + template + HRESULT GetFactory( + _COM_Outptr_ T** ppvFactory + ) + { + return GetFactory(IID_PPV_ARGS(ppvFactory)); + } +}; + +/* interface IDXCoreAdapter1 */ +MIDL_INTERFACE("a0783366-cfa3-43be-9d79-55b2da97c63c") +IDXCoreAdapter1 : public IDXCoreAdapter +{ +public: + virtual HRESULT STDMETHODCALLTYPE GetPropertyWithInput( + DXCoreAdapterProperty property, + size_t inputPropertyDetailsSize, + _In_reads_bytes_opt_(inputPropertyDetailsSize) const void *inputPropertyDetails, + size_t outputBufferSize, + _Out_writes_bytes_(outputBufferSize) void *outputBuffer) = 0; + + template + HRESULT GetPropertyWithInput( + DXCoreAdapterProperty property, + _In_reads_bytes_opt_(sizeof(T1)) const T1 *inputPropertyDetails, + _Out_writes_bytes_(sizeof(T2)) T2 *outputBuffer) + { + return GetPropertyWithInput(property, + sizeof(T1), + (const void*)inputPropertyDetails, + sizeof(T2), + (void*)outputBuffer); + } +}; + +/* interface IDXCoreAdapterList */ +MIDL_INTERFACE("526c7776-40e9-459b-b711-f32ad76dfc28") +IDXCoreAdapterList : public IUnknown +{ +public: + virtual HRESULT STDMETHODCALLTYPE GetAdapter( + uint32_t index, + REFIID riid, + _COM_Outptr_ void **ppvAdapter) = 0; + + template + HRESULT STDMETHODCALLTYPE GetAdapter( + uint32_t index, + _COM_Outptr_ T **ppvAdapter) + { + return GetAdapter(index, + IID_PPV_ARGS(ppvAdapter)); + } + + virtual uint32_t STDMETHODCALLTYPE GetAdapterCount() = 0; + + virtual bool STDMETHODCALLTYPE IsStale() = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFactory( + REFIID riid, + _COM_Outptr_ void** ppvFactory + ) = 0; + + template + HRESULT GetFactory( + _COM_Outptr_ T** ppvFactory + ) + { + return GetFactory(IID_PPV_ARGS(ppvFactory)); + } + + virtual HRESULT STDMETHODCALLTYPE Sort( + uint32_t numPreferences, + _In_reads_(numPreferences) const DXCoreAdapterPreference* preferences) = 0; + + virtual bool STDMETHODCALLTYPE IsAdapterPreferenceSupported( + DXCoreAdapterPreference preference) = 0; +}; + +/* interface IDXCoreAdapterFactory */ +MIDL_INTERFACE("78ee5945-c36e-4b13-a669-005dd11c0f06") +IDXCoreAdapterFactory : public IUnknown +{ +public: + + virtual HRESULT STDMETHODCALLTYPE CreateAdapterList( + uint32_t numAttributes, + _In_reads_(numAttributes) const GUID *filterAttributes, + REFIID riid, + _COM_Outptr_ void **ppvAdapterList) = 0; + + template + HRESULT STDMETHODCALLTYPE CreateAdapterList( + uint32_t numAttributes, + _In_reads_(numAttributes) const GUID *filterAttributes, + _COM_Outptr_ T **ppvAdapterList) + { + return CreateAdapterList(numAttributes, + filterAttributes, + IID_PPV_ARGS(ppvAdapterList)); + } + + virtual HRESULT STDMETHODCALLTYPE GetAdapterByLuid( + const LUID &adapterLUID, + REFIID riid, + _COM_Outptr_ void **ppvAdapter) = 0; + + template + HRESULT STDMETHODCALLTYPE GetAdapterByLuid( + const LUID &adapterLUID, + _COM_Outptr_ T **ppvAdapter) + { + return GetAdapterByLuid(adapterLUID, + IID_PPV_ARGS(ppvAdapter)); + } + + virtual bool STDMETHODCALLTYPE IsNotificationTypeSupported( + DXCoreNotificationType notificationType) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterEventNotification( + _In_ IUnknown *dxCoreObject, + DXCoreNotificationType notificationType, + _In_ PFN_DXCORE_NOTIFICATION_CALLBACK callbackFunction, + _In_opt_ void *callbackContext, + _Out_ uint32_t *eventCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterEventNotification( + uint32_t eventCookie) = 0; +}; + +/* interface IDXCoreAdapterFactory1 */ +MIDL_INTERFACE("d5682e19-6d21-401c-827a-9a51a4ea35d7") +IDXCoreAdapterFactory1 : public IDXCoreAdapterFactory +{ +public: + virtual HRESULT STDMETHODCALLTYPE CreateAdapterListByWorkload( + DXCoreWorkload workload, + DXCoreRuntimeFilterFlags runtimeFilter, + DXCoreHardwareTypeFilterFlags hardwareTypeFilter, + REFIID riid, + _COM_Outptr_ void **ppvAdapterList) = 0; + + template + HRESULT STDMETHODCALLTYPE CreateAdapterListByWorkload( + DXCoreWorkload workload, + DXCoreRuntimeFilterFlags runtimeFilter, + DXCoreHardwareTypeFilterFlags hardwareTypeFilter, + _COM_Outptr_ T **ppvAdapterList) + { + return CreateAdapterListByWorkload(workload, + runtimeFilter, + hardwareTypeFilter, + IID_PPV_ARGS(ppvAdapterList)); + } +}; + +#endif // __cplusplus + +#endif // __dxcore_interface_h__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxdiag.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxdiag.h new file mode 100644 index 0000000000000000000000000000000000000000..773989f43da7303a36f12decfade30a01ebf1297 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxdiag.h @@ -0,0 +1,196 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: dxdiag.h + * Content: DirectX Diagnostic Tool include file + * + ****************************************************************************/ + +#ifndef _DXDIAG_H_ +#define _DXDIAG_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include // for DECLARE_INTERFACE_ and HRESULT + +// This identifier is passed to IDxDiagProvider::Initialize in order to ensure that an +// application was built against the correct header files. This number is +// incremented whenever a header (or other) change would require applications +// to be rebuilt. If the version doesn't match, IDxDiagProvider::Initialize will fail. +// (The number itself has no meaning.) +#define DXDIAG_DX9_SDK_VERSION 111 + +#ifdef __cplusplus +extern "C" { +#endif + + +/**************************************************************************** + * + * DxDiag Errors + * + ****************************************************************************/ +#define DXDIAG_E_INSUFFICIENT_BUFFER ((HRESULT)0x8007007AL) // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) + + +/**************************************************************************** + * + * DxDiag CLSIDs + * + ****************************************************************************/ + +// {A65B8071-3BFE-4213-9A5B-491DA4461CA7} +DEFINE_GUID(CLSID_DxDiagProvider, +0xA65B8071, 0x3BFE, 0x4213, 0x9A, 0x5B, 0x49, 0x1D, 0xA4, 0x46, 0x1C, 0xA7); + + +/**************************************************************************** + * + * DxDiag Interface IIDs + * + ****************************************************************************/ + +// {9C6B4CB0-23F8-49CC-A3ED-45A55000A6D2} +DEFINE_GUID(IID_IDxDiagProvider, +0x9C6B4CB0, 0x23F8, 0x49CC, 0xA3, 0xED, 0x45, 0xA5, 0x50, 0x00, 0xA6, 0xD2); + +// {0x7D0F462F-0x4064-0x4862-BC7F-933E5058C10F} +DEFINE_GUID(IID_IDxDiagContainer, +0x7D0F462F, 0x4064, 0x4862, 0xBC, 0x7F, 0x93, 0x3E, 0x50, 0x58, 0xC1, 0x0F); + + +/**************************************************************************** + * + * DxDiag Interface Pointer definitions + * + ****************************************************************************/ + +typedef struct IDxDiagProvider *LPDXDIAGPROVIDER, *PDXDIAGPROVIDER; + +typedef struct IDxDiagContainer *LPDXDIAGCONTAINER, *PDXDIAGCONTAINER; + + +/**************************************************************************** + * + * DxDiag Structures + * + ****************************************************************************/ + +typedef struct _DXDIAG_INIT_PARAMS +{ + DWORD dwSize; // Size of this structure. + DWORD dwDxDiagHeaderVersion; // Pass in DXDIAG_DX9_SDK_VERSION. This verifies + // the header and dll are correctly matched. + BOOL bAllowWHQLChecks; // If true, allow dxdiag to check if drivers are + // digital signed as logo'd by WHQL which may + // connect via internet to update WHQL certificates. + VOID* pReserved; // Reserved. Must be NULL. +} DXDIAG_INIT_PARAMS; + + +/**************************************************************************** + * + * DxDiag Application Interfaces + * + ****************************************************************************/ + +// +// COM definition for IDxDiagProvider +// +#undef INTERFACE // External COM Implementation +#define INTERFACE IDxDiagProvider +DECLARE_INTERFACE_(IDxDiagProvider,IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /*** IDxDiagProvider methods ***/ + STDMETHOD(Initialize) (THIS_ DXDIAG_INIT_PARAMS* pParams) PURE; + STDMETHOD(GetRootContainer) (THIS_ struct IDxDiagContainer **ppInstance) PURE; +}; + + +// +// COM definition for IDxDiagContainer +// +#undef INTERFACE // External COM Implementation +#define INTERFACE IDxDiagContainer +DECLARE_INTERFACE_(IDxDiagContainer,IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /*** IDxDiagContainer methods ***/ + STDMETHOD(GetNumberOfChildContainers) (THIS_ DWORD *pdwCount) PURE; + STDMETHOD(EnumChildContainerNames) (THIS_ DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer) PURE; + STDMETHOD(GetChildContainer) (THIS_ LPCWSTR pwszContainer, IDxDiagContainer **ppInstance) PURE; + STDMETHOD(GetNumberOfProps) (THIS_ DWORD *pdwCount) PURE; + STDMETHOD(EnumPropNames) (THIS_ DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName) PURE; + STDMETHOD(GetProp) (THIS_ LPCWSTR pwszPropName, VARIANT *pvarProp) PURE; +}; + + +/**************************************************************************** + * + * DxDiag application interface macros + * + ****************************************************************************/ + +#if !defined(__cplusplus) || defined(CINTERFACE) + +#define IDxDiagProvider_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDxDiagProvider_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDxDiagProvider_Release(p) (p)->lpVtbl->Release(p) +#define IDxDiagProvider_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDxDiagProvider_GetRootContainer(p,a) (p)->lpVtbl->GetRootContainer(p,a) + +#define IDxDiagContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDxDiagContainer_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDxDiagContainer_Release(p) (p)->lpVtbl->Release(p) +#define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->lpVtbl->GetNumberOfChildContainers(p,a) +#define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->lpVtbl->EnumChildContainerNames(p,a,b,c) +#define IDxDiagContainer_GetChildContainer(p,a,b) (p)->lpVtbl->GetChildContainer(p,a,b) +#define IDxDiagContainer_GetNumberOfProps(p,a) (p)->lpVtbl->GetNumberOfProps(p,a) +#define IDxDiagContainer_EnumProps(p,a,b) (p)->lpVtbl->EnumProps(p,a,b,c) +#define IDxDiagContainer_GetProp(p,a,b) (p)->lpVtbl->GetProp(p,a,b) + +#else /* C++ */ + +#define IDxDiagProvider_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b) +#define IDxDiagProvider_AddRef(p) (p)->AddRef(p) +#define IDxDiagProvider_Release(p) (p)->Release(p) +#define IDxDiagProvider_Initialize(p,a,b) (p)->Initialize(p,a,b) +#define IDxDiagProvider_GetRootContainer(p,a) (p)->GetRootContainer(p,a) + +#define IDxDiagContainer_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b) +#define IDxDiagContainer_AddRef(p) (p)->AddRef(p) +#define IDxDiagContainer_Release(p) (p)->Release(p) +#define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->GetNumberOfChildContainers(p,a) +#define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->EnumChildContainerNames(p,a,b,c) +#define IDxDiagContainer_GetChildContainer(p,a,b) (p)->GetChildContainer(p,a,b) +#define IDxDiagContainer_GetNumberOfProps(p,a) (p)->GetNumberOfProps(p,a) +#define IDxDiagContainer_EnumProps(p,a,b) (p)->EnumProps(p,a,b,c) +#define IDxDiagContainer_GetProp(p,a,b) (p)->GetProp(p,a,b) + +#endif + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _DXDIAG_H_ */ + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxgiddi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxgiddi.h new file mode 100644 index 0000000000000000000000000000000000000000..bd4d10a0ba3a35fa96724e35ffe652a8ee1ccc84 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxgiddi.h @@ -0,0 +1,1042 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * Content: DXGI Basic Device Driver Interface Definitions + * + ***************************************************************************/ + +#ifndef _DXGIDDI_H +#define _DXGIDDI_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#include "dxgicommon.h" +#include "dxgitype.h" + + +//-------------------------------------------------------------------------------------------------------- +// DXGI error codes +//-------------------------------------------------------------------------------------------------------- +#define _FACDXGI_DDI 0x87b +#define MAKE_DXGI_DDI_HRESULT( code ) MAKE_HRESULT( 1, _FACDXGI_DDI, code ) +#define MAKE_DXGI_DDI_STATUS( code ) MAKE_HRESULT( 0, _FACDXGI_DDI, code ) + +// DXGI DDI error codes have moved to winerror.h + + +//======================================================================================================== +// This is the standard DDI that any DXGI-enabled user-mode driver should support +// + +//-------------------------------------------------------------------------------------------------------- +typedef UINT_PTR DXGI_DDI_HDEVICE; +typedef UINT_PTR DXGI_DDI_HRESOURCE; + +//-------------------------------------------------------------------------------------------------------- +typedef enum DXGI_DDI_RESIDENCY +{ + DXGI_DDI_RESIDENCY_FULLY_RESIDENT = 1, + DXGI_DDI_RESIDENCY_RESIDENT_IN_SHARED_MEMORY = 2, + DXGI_DDI_RESIDENCY_EVICTED_TO_DISK = 3, +} DXGI_DDI_RESIDENCY; + +//-------------------------------------------------------------------------------------------------------- +typedef enum DXGI_DDI_FLIP_INTERVAL_TYPE +{ + DXGI_DDI_FLIP_INTERVAL_IMMEDIATE = 0, + DXGI_DDI_FLIP_INTERVAL_ONE = 1, + DXGI_DDI_FLIP_INTERVAL_TWO = 2, + DXGI_DDI_FLIP_INTERVAL_THREE = 3, + DXGI_DDI_FLIP_INTERVAL_FOUR = 4, + + // For the sync interval override in the present callbacks, IMMEDIATE means the API + // semantic of sync interval 0, where IMMEDIATE_ALLOW_TEARING is equivalent to the addition + // of the ALLOW_TEARING API flags. + DXGI_DDI_FLIP_INTERVAL_IMMEDIATE_ALLOW_TEARING = 5, +} DXGI_DDI_FLIP_INTERVAL_TYPE; + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI_DDI_PRESENT_FLAGS +{ + union + { + struct + { + UINT Blt : 1; // 0x00000001 + UINT Flip : 1; // 0x00000002 + UINT PreferRight : 1; // 0x00000004 + UINT TemporaryMono : 1; // 0x00000008 + UINT AllowTearing : 1; // 0x00000010 + UINT AllowFlexibleRefresh : 1; // 0x00000020 + UINT NoScanoutTransform : 1; // 0x00000040 + UINT Reserved :25; + }; + UINT Value; + }; +} DXGI_DDI_PRESENT_FLAGS; + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI_DDI_ARG_PRESENT +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hSurfaceToPresent; //in + UINT SrcSubResourceIndex; // Index of surface level + DXGI_DDI_HRESOURCE hDstResource; // if non-zero, it's the destination of the present + UINT DstSubResourceIndex; // Index of surface level + void * pDXGIContext; // opaque: Pass this to the Present callback + DXGI_DDI_PRESENT_FLAGS Flags; // Presentation flags. + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; // Presentation interval (flip only) +}DXGI_DDI_ARG_PRESENT; + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES +{ + DXGI_DDI_HDEVICE hDevice; //in + CONST DXGI_DDI_HRESOURCE* pResources; //in: Array of Resources to rotate identities; 0 <= 1, 1 <= 2, etc. + UINT Resources; +} DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES; + +typedef struct DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_GAMMA_CONTROL_CAPABILITIES * pGammaCapabilities; //in/out +} DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS; + +typedef struct DXGI_DDI_ARG_SET_GAMMA_CONTROL +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_GAMMA_CONTROL GammaControl; //in +} DXGI_DDI_ARG_SET_GAMMA_CONTROL; + +typedef struct DXGI_DDI_ARG_SETDISPLAYMODE +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hResource; // Source surface + UINT SubResourceIndex; // Index of surface level +} DXGI_DDI_ARG_SETDISPLAYMODE; + +typedef struct DXGI_DDI_ARG_SETRESOURCEPRIORITY +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hResource; //in + UINT Priority; //in +} DXGI_DDI_ARG_SETRESOURCEPRIORITY; + +typedef struct DXGI_DDI_ARG_QUERYRESOURCERESIDENCY +{ + DXGI_DDI_HDEVICE hDevice; //in + _Field_size_( Resources ) CONST DXGI_DDI_HRESOURCE * pResources; //in + _Field_size_( Resources ) DXGI_DDI_RESIDENCY * pStatus; //out + SIZE_T Resources; //in +} DXGI_DDI_ARG_QUERYRESOURCERESIDENCY; + +//-------------------------------------------------------------------------------------------------------- +// Remarks: Fractional value used to represent vertical and horizontal frequencies of a video mode +// (i.e. VSync and HSync). Vertical frequencies are stored in Hz. Horizontal frequencies +// are stored in KHz. +// The dynamic range of this encoding format, given 10^-7 resolution is {0..(2^32 - 1) / 10^7}, +// which translates to {0..428.4967296} [Hz] for vertical frequencies and {0..428.4967296} [KHz] +// for horizontal frequencies. This sub-microseconds precision range should be acceptable even +// for a pro-video application (error in one microsecond for video signal synchronization would +// imply a time drift with a cycle of 10^7/(60*60*24) = 115.741 days. +// +// If rational number with a finite fractional sequence, use denominator of form 10^(length of fractional sequence). +// If rational number without a finite fractional sequence, or a sequence exceeding the precision allowed by the +// dynamic range of the denominator, or an irrational number, use an appropriate ratio of integers which best +// represents the value. +// +typedef struct DXGI_DDI_RATIONAL +{ + UINT Numerator; + UINT Denominator; +} DXGI_DDI_RATIONAL; + +//-------------------------------------------------------------------------------------------------------- +typedef enum DXGI_DDI_MODE_SCANLINE_ORDER +{ + DXGI_DDI_MODE_SCANLINE_ORDER_UNSPECIFIED = 0, + DXGI_DDI_MODE_SCANLINE_ORDER_PROGRESSIVE = 1, + DXGI_DDI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST = 2, + DXGI_DDI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST = 3, +} DXGI_DDI_MODE_SCANLINE_ORDER; + +typedef enum DXGI_DDI_MODE_SCALING +{ + DXGI_DDI_MODE_SCALING_UNSPECIFIED = 0, + DXGI_DDI_MODE_SCALING_STRETCHED = 1, + DXGI_DDI_MODE_SCALING_CENTERED = 2, +} DXGI_DDI_MODE_SCALING; + +typedef enum DXGI_DDI_MODE_ROTATION +{ + DXGI_DDI_MODE_ROTATION_UNSPECIFIED = 0, + DXGI_DDI_MODE_ROTATION_IDENTITY = 1, + DXGI_DDI_MODE_ROTATION_ROTATE90 = 2, + DXGI_DDI_MODE_ROTATION_ROTATE180 = 3, + DXGI_DDI_MODE_ROTATION_ROTATE270 = 4, +} DXGI_DDI_MODE_ROTATION; + +typedef struct DXGI_DDI_MODE_DESC +{ + UINT Width; + UINT Height; + DXGI_FORMAT Format; + DXGI_DDI_RATIONAL RefreshRate; + DXGI_DDI_MODE_SCANLINE_ORDER ScanlineOrdering; + DXGI_DDI_MODE_ROTATION Rotation; + DXGI_DDI_MODE_SCALING Scaling; +} DXGI_DDI_MODE_DESC; + +// Bit indicates that UMD has the option to prevent this Resource from ever being a Primary +// UMD can prevent the actual flip (from optional primary to regular primary) and use a copy +// operation, during Present. Thus, it's possible the UMD can opt out of this Resource being +// actually used as a primary. +#define DXGI_DDI_PRIMARY_OPTIONAL 0x1 + +// Bit indicates that the Primary really represents the IDENTITY rotation, eventhough it will +// be used with non-IDENTITY display modes, since the application will take on the burden of +// honoring the output orientation by rotating, say the viewport and projection matrix. +#define DXGI_DDI_PRIMARY_NONPREROTATED 0x2 + + +// Bit indicates that the primary is stereoscopic. +#define DXGI_DDI_PRIMARY_STEREO 0x4 + +// Bit indicates that this primary will be used for indirect presentation +#define DXGI_DDI_PRIMARY_INDIRECT 0x8 + + +// Bit indicates that the driver cannot tolerate setting any subresource of the specified +// resource as a primary. The UMD should set this bit at resource creation time if it +// chooses to implement presentation from this surface via a copy operation. The DXGI +// runtime will not employ flip-style presentation if this bit is set +#define DXGI_DDI_PRIMARY_DRIVER_FLAG_NO_SCANOUT 0x1 + +typedef struct DXGI_DDI_PRIMARY_DESC +{ + UINT Flags; // [in] + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; // [in] + DXGI_DDI_MODE_DESC ModeDesc; // [in] + UINT DriverFlags; // [out] Filled by the driver +} DXGI_DDI_PRIMARY_DESC; + +typedef struct DXGI_DDI_ARG_BLT_FLAGS +{ + union + { + struct + { + UINT Resolve : 1; // 0x00000001 + UINT Convert : 1; // 0x00000002 + UINT Stretch : 1; // 0x00000004 + UINT Present : 1; // 0x00000008 + UINT Reserved :28; + }; + UINT Value; + }; +} DXGI_DDI_ARG_BLT_FLAGS; + +typedef struct DXGI_DDI_ARG_BLT +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hDstResource; //in + UINT DstSubresource; //in + UINT DstLeft; //in + UINT DstTop; //in + UINT DstRight; //in + UINT DstBottom; //in + DXGI_DDI_HRESOURCE hSrcResource; //in + UINT SrcSubresource; //in + DXGI_DDI_ARG_BLT_FLAGS Flags; //in + DXGI_DDI_MODE_ROTATION Rotate; //in +} DXGI_DDI_ARG_BLT; + +typedef struct DXGI_DDI_ARG_RESOLVESHAREDRESOURCE +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hResource; //in +} DXGI_DDI_ARG_RESOLVESHAREDRESOURCE; + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) +typedef struct DXGI_DDI_ARG_BLT1 +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hDstResource; //in + UINT DstSubresource; //in + UINT DstLeft; //in + UINT DstTop; //in + UINT DstRight; //in + UINT DstBottom; //in + DXGI_DDI_HRESOURCE hSrcResource; //in + UINT SrcSubresource; //in + UINT SrcLeft; //in + UINT SrcTop; //in + UINT SrcRight; //in + UINT SrcBottom; //in + DXGI_DDI_ARG_BLT_FLAGS Flags; //in + DXGI_DDI_MODE_ROTATION Rotate; //in +} DXGI_DDI_ARG_BLT1; + +typedef struct _DXGI_DDI_ARG_OFFERRESOURCES { + DXGI_DDI_HDEVICE hDevice; //in: device that created the resources + const DXGI_DDI_HRESOURCE* pResources; //in: array of resources to reset + UINT Resources; //in: number of elements in pResources + D3DDDI_OFFER_PRIORITY Priority; //in: priority with which to reset the resources +} DXGI_DDI_ARG_OFFERRESOURCES; + +typedef struct _DXGI_DDI_ARG_RECLAIMRESOURCES { + DXGI_DDI_HDEVICE hDevice; //in: device that created the resources + const DXGI_DDI_HRESOURCE *pResources; //in: array of resources to reset + BOOL *pDiscarded; //out: optional array of booleans specifying whether each resource was discarded + UINT Resources; //in: number of elements in pResources and pDiscarded +} DXGI_DDI_ARG_RECLAIMRESOURCES; + +//----------------------------------------------------------------------------------------------------------- +// Multi Plane Overlay DDI +// + +#define DXGI_DDI_MAX_MULTIPLANE_OVERLAY_ALLOCATIONS 16 + +typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_CAPS +{ + UINT MaxPlanes; // Total number of planes supported (including the DWM's primary) + UINT NumCapabilityGroups; // Number of plane types supported. +} DXGI_DDI_MULTIPLANE_OVERLAY_CAPS; + + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS +{ + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_ROTATION_WITHOUT_INDEPENDENT_FLIP = 0x1, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_VERTICAL_FLIP = 0x2, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_HORIZONTAL_FLIP = 0x4, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_DEINTERLACE = 0x8, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_STEREO = 0x10, // D3D10 or above only. + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_RGB = 0x20, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_YUV = 0x40, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_BILINEAR_FILTER = 0x80, // Can do bilinear stretching + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_HIGH_FILTER = 0x100, // Can do better than bilinear stretching + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_ROTATION = 0x200, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_FULLSCREEN_POST_COMPOSITION = 0x400, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_RESERVED1 = 0x800, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_SHARED = 0x1000, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_IMMEDIATE = 0x2000, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_PLANE0_FOR_VIRTUAL_MODE_ONLY = 0x4000, +} DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS +{ + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_SEPARATE = 0x1, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_ROW_INTERLEAVED = 0x4, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_COLUMN_INTERLEAVED = 0x8, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_CHECKERBOARD = 0x10, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_FLIP_MODE = 0x20, +} DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS; + +typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_GROUP_CAPS +{ + UINT NumPlanes; + float MaxStretchFactor; + float MaxShrinkFactor; + UINT OverlayCaps; // DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS + UINT StereoCaps; // DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS +} DXGI_DDI_MULTIPLANE_OVERLAY_GROUP_CAPS; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS +{ + DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_VERTICAL_FLIP = 0x1, + DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_HORIZONTAL_FLIP = 0x2, + DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_FULLSCREEN_POST_COMPOSITION = 0x4, + DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_NO_SCANOUT_TRANFORMATION = 0x8, + DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_NO_RENDER_PRESENT = 0x10, +} DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_BLEND +{ + DXGI_DDI_MULTIPLANE_OVERLAY_BLEND_OPAQUE = 0x0, + DXGI_DDI_MULTIPLANE_OVERLAY_BLEND_ALPHABLEND = 0x1, +} DXGI_DDI_MULTIPLANE_OVERLAY_BLEND; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT +{ + DXGI_DDI_MULIIPLANE_OVERLAY_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0, + DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1, + DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2 +} DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAGS +{ + DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAG_NOMINAL_RANGE = 0x1, // 16 - 235 vs. 0 - 255 + DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAG_BT709 = 0x2, // BT.709 vs. BT.601 + DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAG_xvYCC = 0x4, // xvYCC vs. conventional YCbCr +} DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAGS; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT +{ + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_MONO = 0, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_HORIZONTAL = 1, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_VERTICAL = 2, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_SEPARATE = 3, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_MONO_OFFSET = 4, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_ROW_INTERLEAVED = 5, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_COLUMN_INTERLEAVED = 6, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_CHECKERBOARD = 7 +} DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE +{ + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_NONE = 0, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_FRAME0 = 1, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_FRAME1 = 2, +} DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY +{ + DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY_BILINEAR = 0x1, // Bilinear + DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY_HIGH = 0x2, // Maximum +} DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY; + +typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES +{ + UINT Flags; // DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS + RECT SrcRect; + RECT DstRect; +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + RECT ClipRect; +#endif + DXGI_DDI_MODE_ROTATION Rotation; + DXGI_DDI_MULTIPLANE_OVERLAY_BLEND Blend; +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // MP + UINT DirtyRectCount; + RECT* pDirtyRects; +#else + UINT NumFilters; + void* pFilters; +#endif + DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT VideoFrameFormat; + UINT YCbCrFlags; // DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAGS + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT StereoFormat; + BOOL StereoLeftViewFrame0; + BOOL StereoBaseViewFrame0; + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE StereoFlipMode; +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY StretchQuality; +#endif +} DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES; + + +typedef struct _DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + DXGI_DDI_MULTIPLANE_OVERLAY_CAPS MultiplaneOverlayCaps; +} DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS; + +typedef struct _DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + UINT GroupIndex; + DXGI_DDI_MULTIPLANE_OVERLAY_GROUP_CAPS MultiplaneOverlayGroupCaps; +} DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS; + +typedef struct DXGI_DDI_CHECK_MULTIPLANEOVERLAYSUPPORT_PLANE_INFO +{ + DXGI_DDI_HRESOURCE hResource; + UINT SubResourceIndex; + DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES PlaneAttributes; +} DXGI_DDI_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO; + +typedef struct _DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYSUPPORT +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + UINT NumPlaneInfo; + DXGI_DDI_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO* pPlaneInfo; + BOOL Supported; // out: driver to fill TRUE/FALSE +} DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYSUPPORT; + +typedef struct _DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY +{ + UINT LayerIndex; + BOOL Enabled; + DXGI_DDI_HRESOURCE hResource; + UINT SubResourceIndex; + DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES PlaneAttributes; +} DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY; + +typedef struct _DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY +{ + DXGI_DDI_HDEVICE hDevice; + void * pDXGIContext; + + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + DXGI_DDI_PRESENT_FLAGS Flags; + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; + + UINT PresentPlaneCount; + DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY* pPresentPlanes; +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + UINT Reserved; +#endif +} DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + +typedef struct _DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + UINT DesiredPresentDuration; + UINT ClosestSmallerDuration; // out + UINT ClosestLargerDuration; //out +} DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT; + +typedef struct DXGI_DDI_ARG_PRESENTSURFACE +{ + DXGI_DDI_HRESOURCE hSurface; // In + UINT SubResourceIndex; // Index of surface level +} DXGI_DDI_ARG_PRESENTSURFACE; + +typedef struct DXGI_DDI_ARG_PRESENT1 +{ + DXGI_DDI_HDEVICE hDevice; //in + CONST DXGI_DDI_ARG_PRESENTSURFACE* phSurfacesToPresent; //in + UINT SurfacesToPresent; //in + DXGI_DDI_HRESOURCE hDstResource; // if non-zero, it's the destination of the present + UINT DstSubResourceIndex; // Index of surface level + void * pDXGIContext; // opaque: Pass this to the Present callback + DXGI_DDI_PRESENT_FLAGS Flags; // Presentation flags. + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; // Presentation interval (flip only) + UINT Reserved; + CONST RECT* pDirtyRects; // in: Array of dirty rects + UINT DirtyRects; // in: Number of dirty rects + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + // out: for LDA only. + // Only WDDM2.0 drivers should write this value + // The number of physical back buffer per logical back buffer. + UINT BackBufferMultiplicity; +#endif + +} DXGI_DDI_ARG_PRESENT1; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + +typedef struct _DXGI_DDI_ARG_TRIMRESIDENCYSET +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_TRIMRESIDENCYSET_FLAGS TrimFlags; + UINT64 NumBytesToTrim; +} DXGI_DDI_ARG_TRIMRESIDENCYSET; + +typedef struct _DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + DXGI_FORMAT Format; + D3DDDI_COLOR_SPACE_TYPE ColorSpace; + BOOL Supported; // out +} DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT; + +typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES1 +{ + UINT Flags; // DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS + RECT SrcRect; + RECT DstRect; + RECT ClipRect; + DXGI_DDI_MODE_ROTATION Rotation; + DXGI_DDI_MULTIPLANE_OVERLAY_BLEND Blend; + UINT DirtyRectCount; + RECT* pDirtyRects; + DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT VideoFrameFormat; + D3DDDI_COLOR_SPACE_TYPE ColorSpace; + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT StereoFormat; + BOOL StereoLeftViewFrame0; + BOOL StereoBaseViewFrame0; + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE StereoFlipMode; + DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY StretchQuality; + UINT ColorKey; +} DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES1; + +typedef struct _DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1 +{ + UINT LayerIndex; + BOOL Enabled; + DXGI_DDI_HRESOURCE hResource; + UINT SubResourceIndex; + DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES1 PlaneAttributes; +} DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1; + +typedef struct _DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1 +{ + DXGI_DDI_HDEVICE hDevice; + void * pDXGIContext; + + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + DXGI_DDI_PRESENT_FLAGS Flags; + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; + + UINT PresentPlaneCount; + DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1* pPresentPlanes; +} DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1) + +typedef struct _DXGI_DDI_ARG_OFFERRESOURCES1 +{ + _In_ DXGI_DDI_HDEVICE hDevice; //in: device that created the resources + _In_reads_(Resources) const DXGI_DDI_HRESOURCE* pResources; //in: array of resources to reset + _In_ UINT Resources; //in: number of elements in pResources + _In_ D3DDDI_OFFER_PRIORITY Priority; //in: priority with which to reset the resources + _In_ D3DDDI_OFFER_FLAGS Flags; //in: flags specifying additional behaviors on offer +} DXGI_DDI_ARG_OFFERRESOURCES1; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_2) + +typedef struct _DXGI_DDI_ARG_RECLAIMRESOURCES1 +{ + DXGI_DDI_HDEVICE hDevice; //in: device that created the resources + const DXGI_DDI_HRESOURCE *pResources; //in: array of resources to reset + D3DDDI_RECLAIM_RESULT *pResults; //out: array of results specifying whether each resource was + // successfully reclaimed, discarded, or has no commitment + UINT Resources; //in: number of elements in pResources and pDiscarded +} DXGI_DDI_ARG_RECLAIMRESOURCES1; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_2) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + +typedef struct DXGI1_6_1_DDI_ARG_PRESENT +{ + DXGI_DDI_HDEVICE hDevice; //in + CONST DXGI_DDI_ARG_PRESENTSURFACE* phSurfacesToPresent; //in + UINT SurfacesToPresent; //in + DXGI_DDI_HRESOURCE hDstResource; // if non-zero, it's the destination of the present + UINT DstSubResourceIndex; // Index of surface level + void * pDXGIContext; // opaque: Pass this to the Present callback + DXGI_DDI_PRESENT_FLAGS Flags; // Presentation flags. + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; // Presentation interval (flip only) + DXGI_DDI_MODE_ROTATION RotationHint; // in: Hint that the contents of the frame are rotated with respect to scanout. + CONST RECT* pDirtyRects; // in: Array of dirty rects + UINT DirtyRects; // in: Number of dirty rects + + // out: for LDA only. + // The number of physical back buffer per logical back buffer. + UINT BackBufferMultiplicity; +} DXGI1_6_1_DDI_ARG_PRESENT; + +typedef struct DXGI1_6_1_DDI_ARG_PRESENTMULTIPLANEOVERLAY +{ + DXGI_DDI_HDEVICE hDevice; + void * pDXGIContext; + + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + DXGI_DDI_PRESENT_FLAGS Flags; + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; + + UINT PresentPlaneCount; + DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1* pPresentPlanes; + DXGI_DDI_MODE_ROTATION* pRotationHints; +} DXGI1_6_1_DDI_ARG_PRESENTMULTIPLANEOVERLAY; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); +}DXGI_DDI_BASE_FUNCTIONS; + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_1_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); +}DXGI1_1_DDI_BASE_FUNCTIONS; + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_2_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources ) (DXGI_DDI_ARG_OFFERRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*); + // Use IS_DXGI_MULTIPLANE_OVERLAY_FUNCTIONS macro to determine these functions fields are available + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayFilterRange ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlaySupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYSUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); +}DXGI1_2_DDI_BASE_FUNCTIONS; + +#endif + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_3_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources ) (DXGI_DDI_ARG_OFFERRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI_DDI_ARG_PRESENT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*); +}DXGI1_3_DDI_BASE_FUNCTIONS; + +#endif + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_4_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources ) (DXGI_DDI_ARG_OFFERRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI_DDI_ARG_PRESENT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnTrimResidencySet ) (DXGI_DDI_ARG_TRIMRESIDENCYSET*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlayColorSpaceSupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay1 ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1*); +}DXGI1_4_DDI_BASE_FUNCTIONS; + +#endif + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_5_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources1 ) (DXGI_DDI_ARG_OFFERRESOURCES1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI_DDI_ARG_PRESENT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnTrimResidencySet ) (DXGI_DDI_ARG_TRIMRESIDENCYSET*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlayColorSpaceSupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay1 ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources1 ) (DXGI_DDI_ARG_RECLAIMRESOURCES1*); +}DXGI1_5_DDI_BASE_FUNCTIONS; + +#endif + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_6_1_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources1 ) (DXGI_DDI_ARG_OFFERRESOURCES1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI1_6_1_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnTrimResidencySet ) (DXGI_DDI_ARG_TRIMRESIDENCYSET*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlayColorSpaceSupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay1 ) (DXGI1_6_1_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources1 ) (DXGI_DDI_ARG_RECLAIMRESOURCES1*); +}DXGI1_6_1_DDI_BASE_FUNCTIONS; + +#endif + + +//======================================================================================================== +// DXGI callback definitions. +// + + +//-------------------------------------------------------------------------------------------------------- + +typedef struct DXGIDDICB_PRESENT +{ + D3DKMT_HANDLE hSrcAllocation; // in: The allocation of which content will be presented + D3DKMT_HANDLE hDstAllocation; // in: if non-zero, it's the destination allocation of the present + void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext + HANDLE hContext; // in: Context being submitted to. + UINT BroadcastContextCount; // in: Specifies the number of context + // to broadcast this present operation to. + // Only supported for flip operation. + HANDLE BroadcastContext[D3DDDI_MAX_BROADCAST_CONTEXT]; // in: Specifies the handle of the context to + // broadcast to. +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + _Field_size_(BroadcastContextCount) + D3DKMT_HANDLE* BroadcastSrcAllocation; // in: LDA + _Field_size_opt_(BroadcastContextCount) + D3DKMT_HANDLE* BroadcastDstAllocation; // in: LDA + UINT PrivateDriverDataSize; // in: + _Field_size_bytes_(PrivateDriverDataSize) + PVOID pPrivateDriverData; // in: Private driver data to pass to DdiPresent and DdiSetVidPnSourceAddress + BOOLEAN bOptimizeForComposition; // out: DWM is involved in composition +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + BOOL SyncIntervalOverrideValid; + DXGI_DDI_FLIP_INTERVAL_TYPE SyncIntervalOverride; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) +} DXGIDDICB_PRESENT; + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) +typedef struct DXGIDDI_MULTIPLANE_OVERLAY_ALLOCATION_INFO +{ + D3DKMT_HANDLE PresentAllocation; + UINT SubResourceIndex; +} DXGIDDI_MULTIPLANE_OVERLAY_ALLOCATION_INFO; + +typedef struct DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY +{ + void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext + HANDLE hContext; + + UINT BroadcastContextCount; + HANDLE BroadcastContext[D3DDDI_MAX_BROADCAST_CONTEXT]; + + DWORD AllocationInfoCount; + DXGIDDI_MULTIPLANE_OVERLAY_ALLOCATION_INFO AllocationInfo[DXGI_DDI_MAX_MULTIPLANE_OVERLAY_ALLOCATIONS]; +} DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) +typedef struct DXGIDDI_MULTIPLANE_OVERLAY_PLANE_INFO +{ + UINT ContextCount; + _Field_size_(ContextCount) + HANDLE* pContextList; + _Field_size_(ContextCount) + D3DKMT_HANDLE* pAllocationList; + + UINT DriverPrivateDataSize; + _Field_size_bytes_(DriverPrivateDataSize) + VOID* pDriverPrivateData; + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + BOOL SyncIntervalOverrideValid; + DXGI_DDI_FLIP_INTERVAL_TYPE SyncIntervalOverride; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) +} DXGIDDI_MULTIPLANE_OVERLAY_PLANE_INFO; + +typedef struct DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY1 +{ + void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext + DWORD PresentPlaneCount; + _Field_size_(PresentPlaneCount) + DXGIDDI_MULTIPLANE_OVERLAY_PLANE_INFO** ppPresentPlanes; +} DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY1; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + +typedef struct DXGIDDICB_SUBMITPRESENTBLTTOHWQUEUE +{ + D3DKMT_HANDLE hSrcAllocation; // in: The allocation of which content will be presented + D3DKMT_HANDLE hDstAllocation; // in: The destination allocation of the present + void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext + HANDLE hHwQueue; // in: Hardware queue being submitted to. + UINT64 HwQueueProgressFenceId; // Hardware queue progress fence ID that will be signaled when the Present Blt is done on the GPU + + UINT PrivateDriverDataSize; + _Field_size_bytes_(PrivateDriverDataSize) + PVOID pPrivateDriverData; // in: Private driver data to pass to DdiPresent +} DXGIDDICB_SUBMITPRESENTBLTTOHWQUEUE; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) + +typedef struct DXGIDDICB_SUBMITPRESENTTOHWQUEUE +{ + void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext + _Field_size_(BroadcastHwQueueCount) + D3DKMT_HANDLE* BroadcastSrcAllocations; // in: allocations which content will be presented + _Field_size_opt_(BroadcastHwQueueCount) + D3DKMT_HANDLE* BroadcastDstAllocations; // in: if non-zero, it's the destination allocations of the present + HANDLE* hHwQueues; // in: hardware queues being submitted to. + UINT BroadcastHwQueueCount; // in: the number of broadcast hardware queues + UINT PrivateDriverDataSize; // in: private driver data size in bytes + _Field_size_bytes_(PrivateDriverDataSize) + PVOID pPrivateDriverData; // in: private driver data to pass to DdiPresent + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_2) + + BOOLEAN bOptimizeForComposition; // out: DWM is involved in composition + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_2) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_3) + + BOOL SyncIntervalOverrideValid; + DXGI_DDI_FLIP_INTERVAL_TYPE SyncIntervalOverride; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_3) + +} DXGIDDICB_SUBMITPRESENTTOHWQUEUE; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) + + + +typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_PRESENTCB)( + _In_ HANDLE hDevice, _In_ DXGIDDICB_PRESENT*); + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) +typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAYCB)( + _In_ HANDLE hDevice, _In_ CONST DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY*); +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) +typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAY1CB)( + _In_ HANDLE hDevice, _In_ CONST DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY1*); +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + +typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_SUBMITPRESENTBLTTOHWQUEUECB)( + _In_ HANDLE hDevice, _In_ DXGIDDICB_SUBMITPRESENTBLTTOHWQUEUE*); + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) + +typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_SUBMITPRESENTTOHWQUEUECB)( + _In_ HANDLE hDevice, _In_ DXGIDDICB_SUBMITPRESENTTOHWQUEUE*); + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI_DDI_BASE_CALLBACKS +{ + PFNDDXGIDDI_PRESENTCB pfnPresentCb; +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + // Use IS_DXGI_MULTIPLANE_OVERLAY_FUNCTIONS macro to check if field is available. + PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAYCB pfnPresentMultiplaneOverlayCb; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) + // Use IS_DXGI1_6_BASE_FUNCTIONS macro to check if field is available. + PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAY1CB pfnPresentMultiplaneOverlay1Cb; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + PFNDDXGIDDI_SUBMITPRESENTBLTTOHWQUEUECB pfnSubmitPresentBltToHwQueueCb; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) + PFNDDXGIDDI_SUBMITPRESENTTOHWQUEUECB pfnSubmitPresentToHwQueueCb; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) +} DXGI_DDI_BASE_CALLBACKS; + +//======================================================================================================== +// DXGI basic DDI device creation arguments + +typedef struct DXGI_DDI_BASE_ARGS +{ + DXGI_DDI_BASE_CALLBACKS *pDXGIBaseCallbacks; // in: The driver should record this pointer for later use + union + { +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + DXGI1_6_1_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions6_1; // in/out: The driver should fill the denoted struct with DXGI base driver entry points +#endif +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1) + DXGI1_5_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions6; // in/out: The driver should fill the denoted struct with DXGI base driver entry points +#endif +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + DXGI1_4_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions5; // in/out: The driver should fill the denoted struct with DXGI base driver entry points +#endif +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + DXGI1_3_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions4; // in/out: The driver should fill the denoted struct with DXGI base driver entry points +#endif +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + DXGI1_2_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions3; // in/out: The driver should fill the denoted struct with DXGI base driver entry points +#endif + DXGI1_1_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions2; // in/out: The driver should fill the denoted struct with DXGI base driver entry points + DXGI_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions; // in/out: The driver should fill the denoted struct with DXGI base driver entry points + }; +} DXGI_DDI_BASE_ARGS; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _DXGIDDI_H */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.h new file mode 100644 index 0000000000000000000000000000000000000000..1ea27535b9f29020334c8d15300187583d4b079a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.h @@ -0,0 +1,1054 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dxgidebug_h__ +#define __dxgidebug_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDXGIInfoQueue_FWD_DEFINED__ +#define __IDXGIInfoQueue_FWD_DEFINED__ +typedef interface IDXGIInfoQueue IDXGIInfoQueue; + +#endif /* __IDXGIInfoQueue_FWD_DEFINED__ */ + + +#ifndef __IDXGIDebug_FWD_DEFINED__ +#define __IDXGIDebug_FWD_DEFINED__ +typedef interface IDXGIDebug IDXGIDebug; + +#endif /* __IDXGIDebug_FWD_DEFINED__ */ + + +#ifndef __IDXGIDebug1_FWD_DEFINED__ +#define __IDXGIDebug1_FWD_DEFINED__ +typedef interface IDXGIDebug1 IDXGIDebug1; + +#endif /* __IDXGIDebug1_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dxgidebug_0000_0000 */ +/* [local] */ + +#include +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) +#define DXGI_DEBUG_BINARY_VERSION ( 1 ) + +typedef +enum DXGI_DEBUG_RLO_FLAGS + { + DXGI_DEBUG_RLO_SUMMARY = 0x1, + DXGI_DEBUG_RLO_DETAIL = 0x2, + DXGI_DEBUG_RLO_IGNORE_INTERNAL = 0x4, + DXGI_DEBUG_RLO_ALL = 0x7 + } DXGI_DEBUG_RLO_FLAGS; + +typedef GUID DXGI_DEBUG_ID; + +DEFINE_GUID(DXGI_DEBUG_ALL, 0xe48ae283, 0xda80, 0x490b, 0x87, 0xe6, 0x43, 0xe9, 0xa9, 0xcf, 0xda, 0x8); +DEFINE_GUID(DXGI_DEBUG_DX, 0x35cdd7fc, 0x13b2, 0x421d, 0xa5, 0xd7, 0x7e, 0x44, 0x51, 0x28, 0x7d, 0x64); +DEFINE_GUID(DXGI_DEBUG_DXGI, 0x25cddaa4, 0xb1c6, 0x47e1, 0xac, 0x3e, 0x98, 0x87, 0x5b, 0x5a, 0x2e, 0x2a); +DEFINE_GUID(DXGI_DEBUG_APP, 0x6cd6e01, 0x4219, 0x4ebd, 0x87, 0x9, 0x27, 0xed, 0x23, 0x36, 0xc, 0x62); +typedef +enum DXGI_INFO_QUEUE_MESSAGE_CATEGORY + { + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_UNKNOWN = 0, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_MISCELLANEOUS = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_UNKNOWN + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_INITIALIZATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_MISCELLANEOUS + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_CLEANUP = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_INITIALIZATION + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_COMPILATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_CLEANUP + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_CREATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_COMPILATION + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_SETTING = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_CREATION + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_GETTING = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_SETTING + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_RESOURCE_MANIPULATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_GETTING + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_EXECUTION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_SHADER = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_EXECUTION + 1 ) + } DXGI_INFO_QUEUE_MESSAGE_CATEGORY; + +typedef +enum DXGI_INFO_QUEUE_MESSAGE_SEVERITY + { + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_CORRUPTION = 0, + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_ERROR = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_CORRUPTION + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_WARNING = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_ERROR + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_INFO = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_WARNING + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_MESSAGE = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_INFO + 1 ) + } DXGI_INFO_QUEUE_MESSAGE_SEVERITY; + +typedef int DXGI_INFO_QUEUE_MESSAGE_ID; + +#define DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION 0 +typedef struct DXGI_INFO_QUEUE_MESSAGE + { + DXGI_DEBUG_ID Producer; + DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category; + DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity; + DXGI_INFO_QUEUE_MESSAGE_ID ID; + /* [annotation] */ + _Field_size_(DescriptionByteLength) const char *pDescription; + SIZE_T DescriptionByteLength; + } DXGI_INFO_QUEUE_MESSAGE; + +typedef struct DXGI_INFO_QUEUE_FILTER_DESC + { + UINT NumCategories; + /* [annotation] */ + _Field_size_(NumCategories) DXGI_INFO_QUEUE_MESSAGE_CATEGORY *pCategoryList; + UINT NumSeverities; + /* [annotation] */ + _Field_size_(NumSeverities) DXGI_INFO_QUEUE_MESSAGE_SEVERITY *pSeverityList; + UINT NumIDs; + /* [annotation] */ + _Field_size_(NumIDs) DXGI_INFO_QUEUE_MESSAGE_ID *pIDList; + } DXGI_INFO_QUEUE_FILTER_DESC; + +typedef struct DXGI_INFO_QUEUE_FILTER + { + DXGI_INFO_QUEUE_FILTER_DESC AllowList; + DXGI_INFO_QUEUE_FILTER_DESC DenyList; + } DXGI_INFO_QUEUE_FILTER; + +#define DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024 +HRESULT WINAPI DXGIGetDebugInterface(REFIID riid, void **ppDebug); + + +extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0000_v0_0_s_ifspec; + +#ifndef __IDXGIInfoQueue_INTERFACE_DEFINED__ +#define __IDXGIInfoQueue_INTERFACE_DEFINED__ + +/* interface IDXGIInfoQueue */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_IDXGIInfoQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D67441C7-672A-476f-9E82-CD55B44949CE") + IDXGIInfoQueue : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetMessageCountLimit( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ UINT64 MessageCountLimit) = 0; + + virtual void STDMETHODCALLTYPE ClearStoredMessages( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMessage( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ UINT64 MessageIndex, + /* [annotation] */ + _Out_writes_bytes_opt_(*pMessageByteLength) DXGI_INFO_QUEUE_MESSAGE *pMessage, + /* [annotation] */ + _Inout_ SIZE_T *pMessageByteLength) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessagesAllowedByRetrievalFilters( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessages( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDiscardedByMessageCountLimit( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetMessageCountLimit( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesAllowedByStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDeniedByStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddStorageFilterEntries( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength) = 0; + + virtual void STDMETHODCALLTYPE ClearStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushEmptyStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushDenyAllStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushCopyOfStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual void STDMETHODCALLTYPE PopStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT STDMETHODCALLTYPE GetStorageFilterStackSize( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRetrievalFilterEntries( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength) = 0; + + virtual void STDMETHODCALLTYPE ClearRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushEmptyRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushDenyAllRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushCopyOfRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual void STDMETHODCALLTYPE PopRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT STDMETHODCALLTYPE GetRetrievalFilterStackSize( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMessage( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID, + /* [annotation] */ + _In_ LPCSTR pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddApplicationMessage( + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ LPCSTR pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnCategory( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnSeverity( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnID( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnCategory( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnSeverity( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnID( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID) = 0; + + virtual void STDMETHODCALLTYPE SetMuteDebugOutput( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ BOOL bMute) = 0; + + virtual BOOL STDMETHODCALLTYPE GetMuteDebugOutput( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDXGIInfoQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDXGIInfoQueue * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDXGIInfoQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDXGIInfoQueue * This); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetMessageCountLimit) + HRESULT ( STDMETHODCALLTYPE *SetMessageCountLimit )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ UINT64 MessageCountLimit); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, ClearStoredMessages) + void ( STDMETHODCALLTYPE *ClearStoredMessages )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetMessage) + HRESULT ( STDMETHODCALLTYPE *GetMessage )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ UINT64 MessageIndex, + /* [annotation] */ + _Out_writes_bytes_opt_(*pMessageByteLength) DXGI_INFO_QUEUE_MESSAGE *pMessage, + /* [annotation] */ + _Inout_ SIZE_T *pMessageByteLength); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumStoredMessagesAllowedByRetrievalFilters) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessagesAllowedByRetrievalFilters )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumStoredMessages) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessages )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumMessagesDiscardedByMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDiscardedByMessageCountLimit )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetMessageCountLimit )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumMessagesAllowedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesAllowedByStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumMessagesDeniedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDeniedByStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddStorageFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddStorageFilterEntries )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetStorageFilter) + HRESULT ( STDMETHODCALLTYPE *GetStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, ClearStorageFilter) + void ( STDMETHODCALLTYPE *ClearStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushEmptyStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushDenyAllStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushDenyAllStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushCopyOfStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PopStorageFilter) + void ( STDMETHODCALLTYPE *PopStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetStorageFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetStorageFilterStackSize )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddRetrievalFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddRetrievalFilterEntries )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *GetRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, ClearRetrievalFilter) + void ( STDMETHODCALLTYPE *ClearRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushEmptyRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushDenyAllRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushDenyAllRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushCopyOfRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PopRetrievalFilter) + void ( STDMETHODCALLTYPE *PopRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetRetrievalFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetRetrievalFilterStackSize )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddMessage) + HRESULT ( STDMETHODCALLTYPE *AddMessage )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID, + /* [annotation] */ + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddApplicationMessage) + HRESULT ( STDMETHODCALLTYPE *AddApplicationMessage )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetBreakOnCategory) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnCategory )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetBreakOnSeverity) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnSeverity )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetBreakOnID) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnID )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetBreakOnCategory) + BOOL ( STDMETHODCALLTYPE *GetBreakOnCategory )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetBreakOnSeverity) + BOOL ( STDMETHODCALLTYPE *GetBreakOnSeverity )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetBreakOnID) + BOOL ( STDMETHODCALLTYPE *GetBreakOnID )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetMuteDebugOutput) + void ( STDMETHODCALLTYPE *SetMuteDebugOutput )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ BOOL bMute); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetMuteDebugOutput) + BOOL ( STDMETHODCALLTYPE *GetMuteDebugOutput )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + END_INTERFACE + } IDXGIInfoQueueVtbl; + + interface IDXGIInfoQueue + { + CONST_VTBL struct IDXGIInfoQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDXGIInfoQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDXGIInfoQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDXGIInfoQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDXGIInfoQueue_SetMessageCountLimit(This,Producer,MessageCountLimit) \ + ( (This)->lpVtbl -> SetMessageCountLimit(This,Producer,MessageCountLimit) ) + +#define IDXGIInfoQueue_ClearStoredMessages(This,Producer) \ + ( (This)->lpVtbl -> ClearStoredMessages(This,Producer) ) + +#define IDXGIInfoQueue_GetMessage(This,Producer,MessageIndex,pMessage,pMessageByteLength) \ + ( (This)->lpVtbl -> GetMessage(This,Producer,MessageIndex,pMessage,pMessageByteLength) ) + +#define IDXGIInfoQueue_GetNumStoredMessagesAllowedByRetrievalFilters(This,Producer) \ + ( (This)->lpVtbl -> GetNumStoredMessagesAllowedByRetrievalFilters(This,Producer) ) + +#define IDXGIInfoQueue_GetNumStoredMessages(This,Producer) \ + ( (This)->lpVtbl -> GetNumStoredMessages(This,Producer) ) + +#define IDXGIInfoQueue_GetNumMessagesDiscardedByMessageCountLimit(This,Producer) \ + ( (This)->lpVtbl -> GetNumMessagesDiscardedByMessageCountLimit(This,Producer) ) + +#define IDXGIInfoQueue_GetMessageCountLimit(This,Producer) \ + ( (This)->lpVtbl -> GetMessageCountLimit(This,Producer) ) + +#define IDXGIInfoQueue_GetNumMessagesAllowedByStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> GetNumMessagesAllowedByStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_GetNumMessagesDeniedByStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> GetNumMessagesDeniedByStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_AddStorageFilterEntries(This,Producer,pFilter) \ + ( (This)->lpVtbl -> AddStorageFilterEntries(This,Producer,pFilter) ) + +#define IDXGIInfoQueue_GetStorageFilter(This,Producer,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetStorageFilter(This,Producer,pFilter,pFilterByteLength) ) + +#define IDXGIInfoQueue_ClearStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> ClearStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushEmptyStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> PushEmptyStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushDenyAllStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> PushDenyAllStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushCopyOfStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> PushCopyOfStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushStorageFilter(This,Producer,pFilter) \ + ( (This)->lpVtbl -> PushStorageFilter(This,Producer,pFilter) ) + +#define IDXGIInfoQueue_PopStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> PopStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_GetStorageFilterStackSize(This,Producer) \ + ( (This)->lpVtbl -> GetStorageFilterStackSize(This,Producer) ) + +#define IDXGIInfoQueue_AddRetrievalFilterEntries(This,Producer,pFilter) \ + ( (This)->lpVtbl -> AddRetrievalFilterEntries(This,Producer,pFilter) ) + +#define IDXGIInfoQueue_GetRetrievalFilter(This,Producer,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetRetrievalFilter(This,Producer,pFilter,pFilterByteLength) ) + +#define IDXGIInfoQueue_ClearRetrievalFilter(This,Producer) \ + ( (This)->lpVtbl -> ClearRetrievalFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushEmptyRetrievalFilter(This,Producer) \ + ( (This)->lpVtbl -> PushEmptyRetrievalFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushDenyAllRetrievalFilter(This,Producer) \ + ( (This)->lpVtbl -> PushDenyAllRetrievalFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushCopyOfRetrievalFilter(This,Producer) \ + ( (This)->lpVtbl -> PushCopyOfRetrievalFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushRetrievalFilter(This,Producer,pFilter) \ + ( (This)->lpVtbl -> PushRetrievalFilter(This,Producer,pFilter) ) + +#define IDXGIInfoQueue_PopRetrievalFilter(This,Producer) \ + ( (This)->lpVtbl -> PopRetrievalFilter(This,Producer) ) + +#define IDXGIInfoQueue_GetRetrievalFilterStackSize(This,Producer) \ + ( (This)->lpVtbl -> GetRetrievalFilterStackSize(This,Producer) ) + +#define IDXGIInfoQueue_AddMessage(This,Producer,Category,Severity,ID,pDescription) \ + ( (This)->lpVtbl -> AddMessage(This,Producer,Category,Severity,ID,pDescription) ) + +#define IDXGIInfoQueue_AddApplicationMessage(This,Severity,pDescription) \ + ( (This)->lpVtbl -> AddApplicationMessage(This,Severity,pDescription) ) + +#define IDXGIInfoQueue_SetBreakOnCategory(This,Producer,Category,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnCategory(This,Producer,Category,bEnable) ) + +#define IDXGIInfoQueue_SetBreakOnSeverity(This,Producer,Severity,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnSeverity(This,Producer,Severity,bEnable) ) + +#define IDXGIInfoQueue_SetBreakOnID(This,Producer,ID,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnID(This,Producer,ID,bEnable) ) + +#define IDXGIInfoQueue_GetBreakOnCategory(This,Producer,Category) \ + ( (This)->lpVtbl -> GetBreakOnCategory(This,Producer,Category) ) + +#define IDXGIInfoQueue_GetBreakOnSeverity(This,Producer,Severity) \ + ( (This)->lpVtbl -> GetBreakOnSeverity(This,Producer,Severity) ) + +#define IDXGIInfoQueue_GetBreakOnID(This,Producer,ID) \ + ( (This)->lpVtbl -> GetBreakOnID(This,Producer,ID) ) + +#define IDXGIInfoQueue_SetMuteDebugOutput(This,Producer,bMute) \ + ( (This)->lpVtbl -> SetMuteDebugOutput(This,Producer,bMute) ) + +#define IDXGIInfoQueue_GetMuteDebugOutput(This,Producer) \ + ( (This)->lpVtbl -> GetMuteDebugOutput(This,Producer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDXGIInfoQueue_INTERFACE_DEFINED__ */ + + +#ifndef __IDXGIDebug_INTERFACE_DEFINED__ +#define __IDXGIDebug_INTERFACE_DEFINED__ + +/* interface IDXGIDebug */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_IDXGIDebug; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("119E7452-DE9E-40fe-8806-88F90C12B441") + IDXGIDebug : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ReportLiveObjects( + GUID apiid, + DXGI_DEBUG_RLO_FLAGS flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDXGIDebugVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDXGIDebug * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDXGIDebug * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDXGIDebug * This); + + DECLSPEC_XFGVIRT(IDXGIDebug, ReportLiveObjects) + HRESULT ( STDMETHODCALLTYPE *ReportLiveObjects )( + IDXGIDebug * This, + GUID apiid, + DXGI_DEBUG_RLO_FLAGS flags); + + END_INTERFACE + } IDXGIDebugVtbl; + + interface IDXGIDebug + { + CONST_VTBL struct IDXGIDebugVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDXGIDebug_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDXGIDebug_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDXGIDebug_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDXGIDebug_ReportLiveObjects(This,apiid,flags) \ + ( (This)->lpVtbl -> ReportLiveObjects(This,apiid,flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDXGIDebug_INTERFACE_DEFINED__ */ + + +#ifndef __IDXGIDebug1_INTERFACE_DEFINED__ +#define __IDXGIDebug1_INTERFACE_DEFINED__ + +/* interface IDXGIDebug1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_IDXGIDebug1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c5a05f0c-16f2-4adf-9f4d-a8c4d58ac550") + IDXGIDebug1 : public IDXGIDebug + { + public: + virtual void STDMETHODCALLTYPE EnableLeakTrackingForThread( void) = 0; + + virtual void STDMETHODCALLTYPE DisableLeakTrackingForThread( void) = 0; + + virtual BOOL STDMETHODCALLTYPE IsLeakTrackingEnabledForThread( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDXGIDebug1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDXGIDebug1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDXGIDebug1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDXGIDebug1 * This); + + DECLSPEC_XFGVIRT(IDXGIDebug, ReportLiveObjects) + HRESULT ( STDMETHODCALLTYPE *ReportLiveObjects )( + IDXGIDebug1 * This, + GUID apiid, + DXGI_DEBUG_RLO_FLAGS flags); + + DECLSPEC_XFGVIRT(IDXGIDebug1, EnableLeakTrackingForThread) + void ( STDMETHODCALLTYPE *EnableLeakTrackingForThread )( + IDXGIDebug1 * This); + + DECLSPEC_XFGVIRT(IDXGIDebug1, DisableLeakTrackingForThread) + void ( STDMETHODCALLTYPE *DisableLeakTrackingForThread )( + IDXGIDebug1 * This); + + DECLSPEC_XFGVIRT(IDXGIDebug1, IsLeakTrackingEnabledForThread) + BOOL ( STDMETHODCALLTYPE *IsLeakTrackingEnabledForThread )( + IDXGIDebug1 * This); + + END_INTERFACE + } IDXGIDebug1Vtbl; + + interface IDXGIDebug1 + { + CONST_VTBL struct IDXGIDebug1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDXGIDebug1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDXGIDebug1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDXGIDebug1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDXGIDebug1_ReportLiveObjects(This,apiid,flags) \ + ( (This)->lpVtbl -> ReportLiveObjects(This,apiid,flags) ) + + +#define IDXGIDebug1_EnableLeakTrackingForThread(This) \ + ( (This)->lpVtbl -> EnableLeakTrackingForThread(This) ) + +#define IDXGIDebug1_DisableLeakTrackingForThread(This) \ + ( (This)->lpVtbl -> DisableLeakTrackingForThread(This) ) + +#define IDXGIDebug1_IsLeakTrackingEnabledForThread(This) \ + ( (This)->lpVtbl -> IsLeakTrackingEnabledForThread(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDXGIDebug1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dxgidebug_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +DEFINE_GUID(IID_IDXGIInfoQueue,0xD67441C7,0x672A,0x476f,0x9E,0x82,0xCD,0x55,0xB4,0x49,0x49,0xCE); +DEFINE_GUID(IID_IDXGIDebug,0x119E7452,0xDE9E,0x40fe,0x88,0x06,0x88,0xF9,0x0C,0x12,0xB4,0x41); +DEFINE_GUID(IID_IDXGIDebug1,0xc5a05f0c,0x16f2,0x4adf,0x9f,0x4d,0xa8,0xc4,0xd5,0x8a,0xc5,0x50); + + +extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.idl new file mode 100644 index 0000000000000000000000000000000000000000..ad3184d3b5d6cc483a5a413e8859f5e51fc1282e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.idl @@ -0,0 +1,456 @@ +////////////////////////////////////////////////////////////////////////////////////////////// +// // +// DXGIDebug.idl // +// // +// Contains interface definitions for the DXGI Debug Binary. // +// // +// Copyright (c) Microsoft Corporation. // +// // +////////////////////////////////////////////////////////////////////////////////////////////// + +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote("#include ") + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)") + +const UINT DXGI_DEBUG_BINARY_VERSION = 1; + + +typedef enum DXGI_DEBUG_RLO_FLAGS +{ + DXGI_DEBUG_RLO_SUMMARY = 0x1, + DXGI_DEBUG_RLO_DETAIL = 0x2, + DXGI_DEBUG_RLO_IGNORE_INTERNAL = 0x4, + DXGI_DEBUG_RLO_ALL = 0x7, +} DXGI_DEBUG_RLO_FLAGS; + + +//================================================================================================================================== +// +// DXGI Debug Producer GUIDs +// +//================================================================================================================================== +typedef GUID DXGI_DEBUG_ID; +cpp_quote("DEFINE_GUID(DXGI_DEBUG_ALL, 0xe48ae283, 0xda80, 0x490b, 0x87, 0xe6, 0x43, 0xe9, 0xa9, 0xcf, 0xda, 0x8);") +cpp_quote("DEFINE_GUID(DXGI_DEBUG_DX, 0x35cdd7fc, 0x13b2, 0x421d, 0xa5, 0xd7, 0x7e, 0x44, 0x51, 0x28, 0x7d, 0x64);") +cpp_quote("DEFINE_GUID(DXGI_DEBUG_DXGI, 0x25cddaa4, 0xb1c6, 0x47e1, 0xac, 0x3e, 0x98, 0x87, 0x5b, 0x5a, 0x2e, 0x2a);") +cpp_quote("DEFINE_GUID(DXGI_DEBUG_APP, 0x6cd6e01, 0x4219, 0x4ebd, 0x87, 0x9, 0x27, 0xed, 0x23, 0x36, 0xc, 0x62);") + + +//================================================================================================================================== +// +// Info Queue +// +//================================================================================================================================== + +typedef enum DXGI_INFO_QUEUE_MESSAGE_CATEGORY { + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_UNKNOWN, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_MISCELLANEOUS, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_INITIALIZATION, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_CLEANUP, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_COMPILATION, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_CREATION, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_SETTING, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_GETTING, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_RESOURCE_MANIPULATION, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_EXECUTION, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_SHADER, +} DXGI_INFO_QUEUE_MESSAGE_CATEGORY; + +typedef enum DXGI_INFO_QUEUE_MESSAGE_SEVERITY { + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_CORRUPTION, + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_ERROR, + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_WARNING, + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_INFO, + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_MESSAGE +} DXGI_INFO_QUEUE_MESSAGE_SEVERITY; + +typedef int DXGI_INFO_QUEUE_MESSAGE_ID; +cpp_quote("#define DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION 0") + +typedef struct DXGI_INFO_QUEUE_MESSAGE { + DXGI_DEBUG_ID Producer; + DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category; + DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity; + DXGI_INFO_QUEUE_MESSAGE_ID ID; + [annotation("_Field_size_(DescriptionByteLength)")] const char* pDescription; + SIZE_T DescriptionByteLength; +} DXGI_INFO_QUEUE_MESSAGE; + +typedef struct DXGI_INFO_QUEUE_FILTER_DESC +{ + UINT NumCategories; + [annotation("_Field_size_(NumCategories)")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY* pCategoryList; + + UINT NumSeverities; + [annotation("_Field_size_(NumSeverities)")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY* pSeverityList; + + UINT NumIDs; + [annotation("_Field_size_(NumIDs)")] DXGI_INFO_QUEUE_MESSAGE_ID* pIDList; +} DXGI_INFO_QUEUE_FILTER_DESC; + +// To use, memset to 0, then fill in what you need. +typedef struct DXGI_INFO_QUEUE_FILTER +{ + DXGI_INFO_QUEUE_FILTER_DESC AllowList; + DXGI_INFO_QUEUE_FILTER_DESC DenyList; +} DXGI_INFO_QUEUE_FILTER; + + + +cpp_quote("#define DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024") + +cpp_quote( "HRESULT WINAPI DXGIGetDebugInterface(REFIID riid, void **ppDebug);" ) + +//============================================================================= +// IDXGIInfoQueue +// +// Logs DX Messages. +// This interface is a singleton per process. Debug DX devices will log messages +// to this object which can be retrieved through its APIs. +// +// +[ uuid( D67441C7-672A-476f-9E82-CD55B44949CE ), object, local, pointer_default( unique ) ] + +interface IDXGIInfoQueue + : IUnknown +{ + //========================================================================= + // Methods for configuring how much data is stored in the queue. + + // SetMessageCountLimit() + // This sets how many messages are stored for a given producer. When the queue + // is full, new messages coming in push old messages out (for that producer). + // Passing -1 to SetMessageCountLimit means the queue has + // unlimited size (go until out of memory or ClearStoredMessages()). + // The default message count size is DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT + // Returns S_OK or E_INVALIDARG. + HRESULT SetMessageCountLimit( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] UINT64 MessageCountLimit ); + + // ClearStoredMessages + void ClearStoredMessages( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + //========================================================================= + // Methods for retrieving data or statistics from the queue. + + // GetMessage() + // Retrieves messages, one at a time, from the queue which pass any + // retrieval filter currently defined. + // + // Call GetMessage with (DXGI_INFO_QUEUE_PRODUCER_ALL) to get messages + // from all producers. + // + // The MessageIndex parameter is a 0 based index into the results passing + // the filter. The number of results is returned by + // GetNumStoredMessagesAllowedByRetrievalFilter(). + // + // Note this does not remove the message from the queue. + // + // pMessageByteLength inputs the size of the buffer passed in via + // pMessage, and outputs the size of the message. pMessage can be NULL + // when the size of the required buffer is being queried (return S_FALSE). + // + // NOTE: The returned buffer pMessage is NOT just the size of DXGI_INFO_QUEUE_MESSAGE, + // it includes extra memory after the DXGI_INFO_QUEUE_MESSAGE for storing the string + // description, which is pointed to from within DXGI_INFO_QUEUE_MESSAGE. Therefore + // applications should check the size needed for pMessage as described above. + // + // Watch out for thread safety when making consecutive calls first to + // determine the buffer size required and then to pass in the buffer and + // retrieve the message, and also between calling + // GetNumStoredMessagesAllowedByRetrievalFilter() and enumerating through + // the results via GetMessagE(). + // + // Returns: S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT GetMessage( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] UINT64 MessageIndex, + [annotation("_Out_writes_bytes_opt_(*pMessageByteLength)")] DXGI_INFO_QUEUE_MESSAGE* pMessage, + [annotation("_Inout_")] SIZE_T* pMessageByteLength ); + + // GetNumStoredMessagesAllowedByRetrievalFilter() + // Returns how many messages that are currently in the queue which + // pass the retrieval filter. + // The MessageIndex parameter to GetMessage() indexes + // an array of this many results. + UINT64 GetNumStoredMessagesAllowedByRetrievalFilters( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetNumStoredMessages() + // Returns how many messages are currently stored in the queue for the specified producer. + UINT64 GetNumStoredMessages( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetNumMessagesDiscardedByMessageCountLimit() for the specified producer. + UINT64 GetNumMessagesDiscardedByMessageCountLimit( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetMessageCountLimit + // This is how many messages can be stored in the queue for the specified producer. + // When the queue is full, new messages coming in push old messages out. + // -1 means there is no limit. + UINT64 GetMessageCountLimit( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetNumMessagesAllowedByStorageFilter() + // Returns how many messages sent to the queue passed + // whatever storage filter was active upon receipt of + // the message. + // This can be a larger value than the message count limit, + // returned by GetMessageCountLimit(), since old messages are discarded + // when the queue is full to prevent overflow. + UINT64 GetNumMessagesAllowedByStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetNumMessagesDeniedByStorageFilter() + UINT64 GetNumMessagesDeniedByStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + + //========================================================================= + // Methods for filtering what gets stored in the queue + + // AddStorageFilterEntries() + // Adds to the existing entries at top of stack + // Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT AddStorageFilterEntries( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter ); + + // GetStorageFilter() + // Gets all entries at top of stack. + // The application must allocate the output buffer. The size required can be + // queried by passing null for pFilter and looking at the returned + // pFilterByteLength (HRESULT is S_FALSE). Note that DXGI_INFO_QUEUE_FILTER contains + // pointers - these will point to locations within the same + // contiguous buffer - *pFilterByteLength is the total storage needed for all + // data. So the application needs to only allocate/free the memory for pFilter. + // Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY + HRESULT GetStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] DXGI_INFO_QUEUE_FILTER* pFilter, + [annotation("_Inout_")] SIZE_T* pFilterByteLength ); + + // ClearStorageFilter() + // Clears filter at the top of the stack (if there is one) + void ClearStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushEmptyStorageFilter() + // Push an empty storage filter on the stack to allow local filtering changes. + // For convenience, this is automatically called by SetStorageFilter() + // if the stack is empty. Thus if the stack is not needed, filters can be + // defined without ever bothering to push or pop. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushEmptyStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushDenyAllStorageFilter() + // Push a storage filter that denies all messages. This is for convience to + // silence all messages from a given producer. Messages that are not stored + // in the InfoQueue are not displayed to debug output. + // A deny all will be a filter with all of the severities in the deny list. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushDenyAllStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushCopyOfStorageFilter() + // Push a copy of the current filter so that local modifications can be made + // starting from what currently exists. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushCopyOfStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + + // PushStorageFilter() + // Push a filter passed as a parameter onto the stack. This is + // just a helper for calling PushEmptyStorageFilter() followed + // by AddStorageFilterEntries() + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT PushStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter ); + + // PopStorageFilter() + // Pop the current storage filter off the stack (if there is one) + void PopStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetStorageFilterStackSize() + UINT GetStorageFilterStackSize( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + //========================================================================= + // Methods for filtering what gets read out of the queue by GetMessage(). + + // AddRetrievalFilterEntries() + // Adds to the existing entries at top of stack + // Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT AddRetrievalFilterEntries( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter ); + + // GetRetrievalFilter() + // Gets all entries at top of stack. + // The application must allocate the output buffer. The size required can be + // queried by passing null for pFilter and looking at the returned + // pFilterByteLength (HRESULT is S_FALSE). Note that DXGI_INFO_QUEUE_FILTER contains + // pointers - these will point to locations within the same + // contiguous buffer - *pFilterByteLength is the total storage needed for all + // data. So the application needs to only allocate/free the memory for pFilter. + // Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY + HRESULT GetRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] DXGI_INFO_QUEUE_FILTER* pFilter, + [annotation("_Inout_")] SIZE_T* pFilterByteLength ); + + // ClearRetrievalFilter() + // Clears filter at the top of the stack (if there is one) + void ClearRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushEmptyRetrievalFilter() + // Push an empty retrieval filter on the stack to allow local filtering changes. + // For convenience, this is automatically called by SetRetrievalFilter() + // if the stack is empty. Thus if the stack is not needed, filters can be + // defined without ever bothering to push or pop. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushEmptyRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushDenyAllRetrievalFilter() + // Push a retrieval filter that denies all messages. This is for convience to + // ignore all messages from a given producer. + // A deny all will be a filter with all of the severities in the deny list. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushDenyAllRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushCopyOfRetrievalFilter() + // Push a copy of the current filter so that local modifications can be made + // starting from what currently exists. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushCopyOfRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushRetrievalFilter() + // Push a filter passed as a parameter onto the stack. This is + // just a helper for calling PushEmptyRetrievalFilter() followed + // by AddRetrievalFilterEntries() + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT PushRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter ); + + // PopRetrievalFilter() + // Pop the current storage filter off the stack (if there is one) + void PopRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetRetrievalFilterStackSize() + UINT GetRetrievalFilterStackSize( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + //========================================================================= + // Methods for adding entries to the queue. + + // AddMessage() + // This is used by DX components to log messages. Nothing stops + // applications from calling this, but it isn't particularly useful. + // If an application wishes to insert custom strings into the queue, + // AddApplicationMessage() below is suggested. See below. + // + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY + HRESULT AddMessage( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_ID ID, + [annotation("_In_")] LPCSTR pDescription); + + // AddApplicationMessage() + // This is a convenience for applications that want + // to insert strings of their own into the queue, perhaps to log issues + // of its own, or to mark out points in time in the queue. This + // has the same effect as calling AddMessage() above with the + // following settings: + // Category = DXGI_INFO_QUEUE_MESSAGE_CATEGORY_APPLICATION_DEFINED + // Severity = + // ID = DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION + // pDescription = + // + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY + HRESULT AddApplicationMessage( + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + [annotation("_In_")] LPCSTR pDescription); + + //========================================================================= + // Methods for breaking on errors that pass the storage filter. + HRESULT SetBreakOnCategory( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + [annotation("_In_")] BOOL bEnable ); + HRESULT SetBreakOnSeverity( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + [annotation("_In_")] BOOL bEnable ); + HRESULT SetBreakOnID( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_ID ID, + [annotation("_In_")] BOOL bEnable ); + + BOOL GetBreakOnCategory( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category ); + BOOL GetBreakOnSeverity( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity ); + BOOL GetBreakOnID( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_ID ID ); + + //========================================================================= + // Methods for muting debug spew from the InfoQueue + void SetMuteDebugOutput( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] BOOL bMute ); + BOOL GetMuteDebugOutput( + [annotation("_In_")] DXGI_DEBUG_ID Producer); +}; + +[ uuid(119E7452-DE9E-40fe-8806-88F90C12B441), object, local, pointer_default( unique ) ] +interface IDXGIDebug + : IUnknown +{ + HRESULT ReportLiveObjects(GUID apiid, DXGI_DEBUG_RLO_FLAGS flags); +}; + +[ uuid(c5a05f0c-16f2-4adf-9f4d-a8c4d58ac550), object, local, pointer_default( unique ) ] +interface IDXGIDebug1 + : IDXGIDebug +{ + void EnableLeakTrackingForThread(); + void DisableLeakTrackingForThread(); + BOOL IsLeakTrackingEnabledForThread(); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + + +cpp_quote( "DEFINE_GUID(IID_IDXGIInfoQueue,0xD67441C7,0x672A,0x476f,0x9E,0x82,0xCD,0x55,0xB4,0x49,0x49,0xCE);" ) +cpp_quote( "DEFINE_GUID(IID_IDXGIDebug,0x119E7452,0xDE9E,0x40fe,0x88,0x06,0x88,0xF9,0x0C,0x12,0xB4,0x41);" ) +cpp_quote( "DEFINE_GUID(IID_IDXGIDebug1,0xc5a05f0c,0x16f2,0x4adf,0x9f,0x4d,0xa8,0xc4,0xd5,0x8a,0xc5,0x50);" ) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxmini.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxmini.h new file mode 100644 index 0000000000000000000000000000000000000000..b34a0c74e1729109fb52cce1590464fbff42c11e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxmini.h @@ -0,0 +1,356 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: dxmini.h + * Content: Miniport support for DirectDraw DXAPI. This file is + * analagous to Win95's ddkmmini.h. + * + ***************************************************************************/ + +#include + +#ifndef __DXMINI_INCLUDED__ +#define __DXMINI_INCLUDED__ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +DEFINE_GUID(GUID_DxApi, 0x8a79bef0, 0xb915, 0x11d0, 0x91, 0x44, 0x08, 0x00, 0x36, 0xd2, 0xef, 0x02); + +#ifndef GUID_DEFS_ONLY +/*============================================================================ + * + * MDL structure for handling pagelocked memory. This is copied from WDM.H + * + *==========================================================================*/ + +#ifndef MDL_MAPPING_FLAGS + + typedef struct _MDL { + struct _MDL *MdlNext; + short MdlSize; + short MdlFlags; + struct _EPROCESS *Process; + ULONG *lpMappedSystemVa; + ULONG *lpStartVa; + ULONG ByteCount; + ULONG ByteOffset; + } MDL; + typedef MDL *PMDL; + + #define MDL_MAPPED_TO_SYSTEM_VA 0x0001 + #define MDL_PAGES_LOCKED 0x0002 + #define MDL_SOURCE_IS_NONPAGED_POOL 0x0004 + #define MDL_ALLOCATED_FIXED_SIZE 0x0008 + #define MDL_PARTIAL 0x0010 + #define MDL_PARTIAL_HAS_BEEN_MAPPED 0x0020 + #define MDL_IO_PAGE_READ 0x0040 + #define MDL_WRITE_OPERATION 0x0080 + #define MDL_PARENT_MAPPED_SYSTEM_VA 0x0100 + #define MDL_LOCK_HELD 0x0200 + #define MDL_SCATTER_GATHER_VA 0x0400 + #define MDL_IO_SPACE 0x0800 + #define MDL_NETWORK_HEADER 0x1000 + #define MDL_MAPPING_CAN_FAIL 0x2000 + #define MDL_ALLOCATED_MUST_SUCCEED 0x4000 + #define MDL_64_BIT_VA 0x8000 + + #define MDL_MAPPING_FLAGS (MDL_MAPPED_TO_SYSTEM_VA | \ + MDL_PAGES_LOCKED | \ + MDL_SOURCE_IS_NONPAGED_POOL | \ + MDL_PARTIAL_HAS_BEEN_MAPPED | \ + MDL_PARENT_MAPPED_SYSTEM_VA | \ + MDL_LOCK_HELD | \ + MDL_SYSTEM_VA | \ + MDL_IO_SPACE ) +#endif + +/*============================================================================ + * + * Error values that may be returned by the miniport + * + *==========================================================================*/ + +#define DX_OK 0x0 +#define DXERR_UNSUPPORTED 0x80004001 +#define DXERR_GENERIC 0x80004005 +#define DXERR_OUTOFCAPS 0x88760168 + +/*============================================================================ + * + * Structures maintained by DirectDraw + * + *==========================================================================*/ + +#define DDOVER_AUTOFLIP 0x00100000l +#define DDOVER_BOB 0x00200000l +#define DDOVER_OVERRIDEBOBWEAVE 0x00400000l +#define DDOVER_INTERLEAVED 0x00800000l + +// +// Data for every DXAPI surface +// + +typedef struct _DDSURFACEDATA { + DWORD ddsCaps; // Ring 3 creation caps + DWORD dwSurfaceOffset; // Offset in frame buffer of surface + ULONG_PTR fpLockPtr; // Surface lock ptr + DWORD dwWidth; // Surface width + DWORD dwHeight; // Surface height + LONG lPitch; // Surface pitch + DWORD dwOverlayFlags; // DDOVER_XX flags + DWORD dwOverlayOffset; // Offset in frame buffer of overlay + DWORD dwOverlaySrcWidth; // Src width of overlay + DWORD dwOverlaySrcHeight; // Src height of overlay + DWORD dwOverlayDestWidth; // Dest width of overlay + DWORD dwOverlayDestHeight; // Dest height of overlay + DWORD dwVideoPortId; // ID of video port (-1 if not connected to a video port) + DWORD dwFormatFlags; + DWORD dwFormatFourCC; + DWORD dwFormatBitCount; + DWORD dwRBitMask; + DWORD dwGBitMask; + DWORD dwBBitMask; + ULONG dwDriverReserved1; // Reserved for the HAL/Miniport + ULONG dwDriverReserved2; // Reserved for the HAL/Miniport + ULONG dwDriverReserved3; // Reserved for the HAL/Miniport + ULONG dwDriverReserved4; // Reserved for the HAL/Miniport +} DDSURFACEDATA, *LPDDSURFACEDATA; + +// +// Data for every DXAPI video port +// + +typedef struct DDVIDEOPORTDATA { + DWORD dwVideoPortId; // ID of video port (0 - MaxVideoPorts-1) + DWORD dwVPFlags; // Video port DDVP_ option flags + DWORD dwOriginOffset; // Start address relative to surface + DWORD dwHeight; // Height of total video region (per field) + DWORD dwVBIHeight; // Height of VBI region (per field) + ULONG dwDriverReserved1; // Reserved for the HAL/Miniport + ULONG dwDriverReserved2; // Reserved for the HAL/Miniport + ULONG dwDriverReserved3; // Reserved for the HAL/Miniport +} DDVIDEOPORTDATA, *LPDDVIDEOPORTDATA; + + +/*============================================================================ + * + * Structures used to communicate with the Miniport + * + *==========================================================================*/ + +typedef struct _DX_IRQDATA { + DWORD dwIrqFlags; // DDIRQ_ flags ORed in by miniport +} DX_IRQDATA, *PDX_IRQDATA; + +typedef VOID (*PDX_IRQCALLBACK)(PDX_IRQDATA pIrqData); + +#define DDIRQ_DISPLAY_VSYNC 0x00000001l +#define DDIRQ_BUSMASTER 0x00000002l +#define DDIRQ_VPORT0_VSYNC 0x00000004l +#define DDIRQ_VPORT0_LINE 0x00000008l +#define DDIRQ_VPORT1_VSYNC 0x00000010l +#define DDIRQ_VPORT1_LINE 0x00000020l +#define DDIRQ_VPORT2_VSYNC 0x00000040l +#define DDIRQ_VPORT2_LINE 0x00000080l +#define DDIRQ_VPORT3_VSYNC 0x00000100l +#define DDIRQ_VPORT3_LINE 0x00000200l +#define DDIRQ_VPORT4_VSYNC 0x00000400l +#define DDIRQ_VPORT4_LINE 0x00000800l +#define DDIRQ_VPORT5_VSYNC 0x00001000l +#define DDIRQ_VPORT5_LINE 0x00002000l +#define DDIRQ_VPORT6_VSYNC 0x00004000l +#define DDIRQ_VPORT6_LINE 0x00008000l +#define DDIRQ_VPORT7_VSYNC 0x00010000l +#define DDIRQ_VPORT7_LINE 0x00020000l +#define DDIRQ_VPORT8_VSYNC 0x00040000l +#define DDIRQ_VPORT8_LINE 0x00080000l +#define DDIRQ_VPORT9_VSYNC 0x00010000l +#define DDIRQ_VPORT9_LINE 0x00020000l + +// output from DxGetIrqInfo +typedef struct _DDGETIRQINFO { + DWORD dwFlags; +} DDGETIRQINFO, *PDDGETIRQINFO; +#define IRQINFO_HANDLED 0x01 // Miniport is managing IRQ +#define IRQINFO_NOTHANDLED 0x02 // Not supported on NT + +// input to DxEnableIrq +typedef struct _DDENABLEIRQINFO { + DWORD dwIRQSources; + DWORD dwLine; // Line for DDIRQ_VPORTx_LINE interrupt + PDX_IRQCALLBACK IRQCallback; // Miniport calls this when IRQ happens + PDX_IRQDATA lpIRQData; // Parameter to be passed to IRQCallback +} DDENABLEIRQINFO, *PDDENABLEIRQINFO; + +// input to DxSkipNextField +typedef struct _DDSKIPNEXTFIELDINFO { + LPDDVIDEOPORTDATA lpVideoPortData; + DWORD dwSkipFlags; +} DDSKIPNEXTFIELDINFO, *PDDSKIPNEXTFIELDINFO; + +#define DDSKIP_SKIPNEXT 1 +#define DDSKIP_ENABLENEXT 2 + +// intput to DxBobNextField +typedef struct _DDBOBNEXTFIELDINFO { + LPDDSURFACEDATA lpSurface; +} DDBOBNEXTFIELDINFO, *PDDBOBNEXTFIELDINFO; + +// intput to DxSetState +typedef struct _DDSETSTATEININFO { + LPDDSURFACEDATA lpSurfaceData; + LPDDVIDEOPORTDATA lpVideoPortData; +} DDSETSTATEININFO, *PDDSETSTATEININFO; + +// output from DxSetState +typedef struct _DDSETSTATEOUTINFO { + BOOL bSoftwareAutoflip; + DWORD dwSurfaceIndex; + DWORD dwVBISurfaceIndex; +} DDSETSTATEOUTINFO, *PDDSETSTATEOUTINFO; + +// input to DxLock +typedef struct _DDLOCKININFO { + LPDDSURFACEDATA lpSurfaceData; +} DDLOCKININFO, *PDDLOCKININFO; + +// output from DxLock +typedef struct _DDLOCKOUTINFO { + ULONG_PTR dwSurfacePtr; +} DDLOCKOUTINFO, *PDDLOCKOUTINFO; + +// input to DxFlipOverlay +typedef struct _DDFLIPOVERLAYINFO { + LPDDSURFACEDATA lpCurrentSurface; + LPDDSURFACEDATA lpTargetSurface; + DWORD dwFlags; +} DDFLIPOVERLAYINFO, *PDDFLIPOVERLAYINFO; + +// intput to DxFlipVideoPort +typedef struct _DDFLIPVIDEOPORTINFO { + LPDDVIDEOPORTDATA lpVideoPortData; + LPDDSURFACEDATA lpCurrentSurface; + LPDDSURFACEDATA lpTargetSurface; + DWORD dwFlipVPFlags; +} DDFLIPVIDEOPORTINFO, *PDDFLIPVIDEOPORTINFO; + +#define DDVPFLIP_VIDEO 0x00000001l +#define DDVPFLIP_VBI 0x00000002l + +// input to DxGetPolarity +typedef struct _DDGETPOLARITYININFO { + LPDDVIDEOPORTDATA lpVideoPortData; +} DDGETPOLARITYININFO, *PDDGETPOLARITYININFO; + +// output from DxGetPolarity +typedef struct _DDGETPOLARITYOUTINFO { + DWORD bPolarity; +} DDGETPOLARITYOUTINFO, *PDDGETPOLARITYOUTINFO; + +// input to DxGetCurrentAutoflipSurface +typedef struct _DDGETCURRENTAUTOFLIPININFO { + LPDDVIDEOPORTDATA lpVideoPortData; +} DDGETCURRENTAUTOFLIPININFO, *PDDGETCURRENTAUTOFLIPININFO; + +// output from DxGetCurrentAutoflipSurface +typedef struct _DDGETCURRENTAUTOFLIPOUTINFO { + DWORD dwSurfaceIndex; + DWORD dwVBISurfaceIndex; +} DDGETCURRENTAUTOFLIPOUTINFO, *PDDGETCURRENTAUTOFLIPOUTINFO; + +// input to DxGetPreviousAutoflipSurface +typedef struct _DDGETPREVIOUSAUTOFLIPININFO { + LPDDVIDEOPORTDATA lpVideoPortData; +} DDGETPREVIOUSAUTOFLIPININFO, *PDDGETPREVIOUSAUTOFLIPININFO; + +// output from DxGetPreviousAutoflipSurface +typedef struct _DDGETPREVIOUSAUTOFLIPOUTINFO { + DWORD dwSurfaceIndex; + DWORD dwVBISurfaceIndex; +} DDGETPREVIOUSAUTOFLIPOUTINFO, *PDDGETPREVIOUSAUTOFLIPOUTINFO; + +// intput to DxTransfer +typedef struct _DDTRANSFERININFO { + LPDDSURFACEDATA lpSurfaceData; + DWORD dwStartLine; + DWORD dwEndLine; + ULONG_PTR dwTransferID; + DWORD dwTransferFlags; + PMDL lpDestMDL; +} DDTRANSFERININFO, *PDDTRANSFERININFO; + +#define DDTRANSFER_SYSTEMMEMORY 0x00000001 +#define DDTRANSFER_NONLOCALVIDMEM 0x00000002 +#define DDTRANSFER_INVERT 0x00000004 +#define DDTRANSFER_CANCEL 0x00000080 +#define DDTRANSFER_HALFLINES 0x00000100 + +// output from DxTransfer +typedef struct _DDTRANSFEROUTINFO { + DWORD dwBufferPolarity; +} DDTRANSFEROUTINFO, *PDDTRANSFEROUTINFO; + +// output from DxGetTransferStatus +typedef struct _DDGETTRANSFERSTATUSOUTINFO { + DWORD_PTR dwTransferID; +} DDGETTRANSFERSTATUSOUTINFO, *PDDGETTRANSFEROUTINFO; + +/*============================================================================ + * + * DXAPI function prototypes + * + *==========================================================================*/ + +typedef DWORD (*PDX_GETIRQINFO)(PVOID,PVOID,PDDGETIRQINFO); +typedef DWORD (*PDX_ENABLEIRQ)(PVOID,PDDENABLEIRQINFO,PVOID); +typedef DWORD (*PDX_SKIPNEXTFIELD)(PVOID,PDDSKIPNEXTFIELDINFO,PVOID); +typedef DWORD (*PDX_BOBNEXTFIELD)(PVOID,PDDBOBNEXTFIELDINFO,PVOID); +typedef DWORD (*PDX_SETSTATE)(PVOID,PDDSETSTATEININFO,PDDSETSTATEOUTINFO); +typedef DWORD (*PDX_LOCK)(PVOID,PDDLOCKININFO,PDDLOCKOUTINFO); +typedef DWORD (*PDX_FLIPOVERLAY)(PVOID,PDDFLIPOVERLAYINFO,PVOID); +typedef DWORD (*PDX_FLIPVIDEOPORT)(PVOID,PDDFLIPVIDEOPORTINFO,PVOID); +typedef DWORD (*PDX_GETPOLARITY)(PVOID,PDDGETPOLARITYININFO,PDDGETPOLARITYOUTINFO); +typedef DWORD (*PDX_GETCURRENTAUTOFLIP)(PVOID,PDDGETCURRENTAUTOFLIPININFO,PDDGETCURRENTAUTOFLIPOUTINFO); +typedef DWORD (*PDX_GETPREVIOUSAUTOFLIP)(PVOID,PDDGETPREVIOUSAUTOFLIPININFO,PDDGETPREVIOUSAUTOFLIPOUTINFO); +typedef DWORD (*PDX_TRANSFER)(PVOID,PDDTRANSFERININFO,PDDTRANSFEROUTINFO); +typedef DWORD (*PDX_GETTRANSFERSTATUS)(PVOID,PVOID,PDDGETTRANSFEROUTINFO); + +/*============================================================================ + * + * HAL table filled in by the miniport and called by DirectDraw + * + *==========================================================================*/ + +#define DXAPI_HALVERSION 0x0001 + +typedef struct _DXAPI_INTERFACE { + + USHORT Size; + USHORT Version; + PVOID Context; + PVOID InterfaceReference; + PVOID InterfaceDereference; + PDX_GETIRQINFO DxGetIrqInfo; + PDX_ENABLEIRQ DxEnableIrq; + PDX_SKIPNEXTFIELD DxSkipNextField; + PDX_BOBNEXTFIELD DxBobNextField; + PDX_SETSTATE DxSetState; + PDX_LOCK DxLock; + PDX_FLIPOVERLAY DxFlipOverlay; + PDX_FLIPVIDEOPORT DxFlipVideoPort; + PDX_GETPOLARITY DxGetPolarity; + PDX_GETCURRENTAUTOFLIP DxGetCurrentAutoflip; + PDX_GETPREVIOUSAUTOFLIP DxGetPreviousAutoflip; + PDX_TRANSFER DxTransfer; + PDX_GETTRANSFERSTATUS DxGetTransferStatus; + +} DXAPI_INTERFACE, *PDXAPI_INTERFACE; + +#endif // GUID_DEFS_ONLY + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxtmpl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxtmpl.h new file mode 100644 index 0000000000000000000000000000000000000000..81cde355007deea4c9e67715177ded2ac6e98f3a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxtmpl.h @@ -0,0 +1,1353 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: dxtmpl.h +// +// Description: +// This is the header file contains the DX collection class templates. It +// has been derived from the MFC collection templates for compatibility. +// +//---------------------------------------------------------------------------- + +#ifndef DXTmpl_h +#define DXTmpl_h + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef _INC_LIMITS +#include +#endif + +#ifndef _INC_STRING +#include +#endif + +#ifndef _INC_STDLIB +#include +#endif + +#ifndef _INC_SEARCH +#include +#endif + +#define DXASSERT_VALID( pObj ) + +#ifndef PASCAL_INLINE +#ifdef _M_CEE_PURE +#define PASCAL_INLINE __clrcall +#else +#define PASCAL_INLINE PASCAL +#endif +#endif + +///////////////////////////////////////////////////////////////////////////// +typedef void* DXLISTPOS; +typedef DWORD DXLISTHANDLE; + +#define DX_BEFORE_START_POSITION ((void*)-1L) + +inline BOOL DXIsValidAddress(const void* lp, UINT nBytes, BOOL bReadWrite) +{ + // simple version using Win-32 APIs for pointer validation. + return (lp != NULL && !IsBadReadPtr(lp, nBytes) && + (!bReadWrite || !IsBadWritePtr((LPVOID)lp, nBytes))); +} + +///////////////////////////////////////////////////////////////////////////// +// global helpers (can be overridden) +template +inline void DXConstructElements(TYPE* pElements, int nCount) +{ + _ASSERT( nCount == 0 || + DXIsValidAddress( pElements, nCount * sizeof(TYPE), TRUE ) ); + + // default is bit-wise zero initialization + memset((void*)pElements, 0, nCount * sizeof(TYPE)); +} + +template +inline void DXDestructElements(TYPE* pElements, int nCount) +{ + _ASSERT( ( nCount == 0 || + DXIsValidAddress( pElements, nCount * sizeof(TYPE), TRUE ) ) ); + (void)pElements; // not used + (void)nCount; // not used + + // default does nothing +} + +template +inline void DXCopyElements(TYPE* pDest, const TYPE* pSrc, int nCount) +{ + _ASSERT( ( nCount == 0 || + DXIsValidAddress( pDest, nCount * sizeof(TYPE), TRUE )) ); + _ASSERT( ( nCount == 0 || + DXIsValidAddress( pSrc, nCount * sizeof(TYPE), FALSE )) ); + + // default is bit-wise copy + memcpy(pDest, pSrc, nCount * sizeof(TYPE)); +} + +template +BOOL DXCompareElements(const TYPE* pElement1, const ARG_TYPE* pElement2) +{ + _ASSERT( DXIsValidAddress( pElement1, sizeof(TYPE), FALSE ) ); + _ASSERT( DXIsValidAddress( pElement2, sizeof(ARG_TYPE), FALSE ) ); + return *pElement1 == *pElement2; +} + +template +inline UINT DXHashKey(ARG_KEY key) +{ + // default identity hash - works for most primitive values + return ((UINT)(void*)(DWORD)key) >> 4; +} + +///////////////////////////////////////////////////////////////////////////// +// CDXPlex + +struct CDXPlex // warning variable length structure +{ + CDXPlex* pNext; + UINT nMax; + UINT nCur; + /* BYTE data[maxNum*elementSize]; */ + void* data() { return this+1; } + + static CDXPlex* PASCAL_INLINE Create( CDXPlex*& pHead, UINT nMax, UINT cbElement ) + { + if ((SIZE_T)(nMax * cbElement) > (SIZE_MAX - sizeof(CDXPlex))) + return NULL; + CDXPlex* p = (CDXPlex*) new BYTE[sizeof(CDXPlex) + nMax * cbElement]; + if (p == NULL) + return NULL; + p->nMax = nMax; + p->nCur = 0; + p->pNext = pHead; + pHead = p; // change head (adds in reverse order for simplicity) + return p; + } + + void FreeDataChain() + { + CDXPlex* p = this; + while (p != NULL) + { + BYTE* bytes = (BYTE*) p; + CDXPlex* pNext = p->pNext; + delete [] bytes; + p = pNext; + } + } +}; + + +///////////////////////////////////////////////////////////////////////////// +// CDXArray + +template +class CDXArray +{ +public: +// Construction + CDXArray(); + +// Attributes + int GetSize() const; + int GetUpperBound() const; + void SetSize(int nNewSize, int nGrowBy = -1); + +// Operations + // Clean up + void FreeExtra(); + void RemoveAll(); + + // Accessing elements + TYPE GetAt(int nIndex) const; + void SetAt(int nIndex, ARG_TYPE newElement); + TYPE& ElementAt(int nIndex); + + // Direct Access to the element data (may return NULL) + const TYPE* GetData() const; + TYPE* GetData(); + + // Potentially growing the array + void SetAtGrow(int nIndex, ARG_TYPE newElement); + int Add(ARG_TYPE newElement); + int Append(const CDXArray& src); + void Copy(const CDXArray& src); + + // overloaded operator helpers + TYPE operator[](int nIndex) const; + TYPE& operator[](int nIndex); + + // Operations that move elements around + void InsertAt(int nIndex, ARG_TYPE newElement, int nCount = 1); + void RemoveAt(int nIndex, int nCount = 1); + void InsertAt(int nStartIndex, CDXArray* pNewArray); + void Sort(int (__cdecl *compare )(const void *elem1, const void *elem2 )); + +// Implementation +protected: + TYPE* m_pData; // the actual array of data + int m_nSize; // # of elements (upperBound - 1) + int m_nMaxSize; // max allocated + int m_nGrowBy; // grow amount + +public: + ~CDXArray(); +#ifdef _DEBUG +// void Dump(CDumpContext&) const; + void AssertValid() const; +#endif +}; + +///////////////////////////////////////////////////////////////////////////// +// CDXArray inline functions + +template +inline int CDXArray::GetSize() const + { return m_nSize; } +template +inline int CDXArray::GetUpperBound() const + { return m_nSize-1; } +template +inline void CDXArray::RemoveAll() + { SetSize(0, -1); } +template +inline TYPE CDXArray::GetAt(int nIndex) const + { _ASSERT( (nIndex >= 0 && nIndex < m_nSize) ); + return m_pData[nIndex]; } +template +inline void CDXArray::SetAt(int nIndex, ARG_TYPE newElement) + { _ASSERT( (nIndex >= 0 && nIndex < m_nSize) ); + m_pData[nIndex] = newElement; } +template +inline TYPE& CDXArray::ElementAt(int nIndex) + { _ASSERT( (nIndex >= 0 && nIndex < m_nSize) ); + return m_pData[nIndex]; } +template +inline const TYPE* CDXArray::GetData() const + { return (const TYPE*)m_pData; } +template +inline TYPE* CDXArray::GetData() + { return (TYPE*)m_pData; } +template +inline int CDXArray::Add(ARG_TYPE newElement) + { int nIndex = m_nSize; + SetAtGrow(nIndex, newElement); + return nIndex; } +template +inline TYPE CDXArray::operator[](int nIndex) const + { return GetAt(nIndex); } +template +inline TYPE& CDXArray::operator[](int nIndex) + { return ElementAt(nIndex); } + +///////////////////////////////////////////////////////////////////////////// +// CDXArray out-of-line functions + +template +CDXArray::CDXArray() +{ + m_pData = NULL; + m_nSize = m_nMaxSize = m_nGrowBy = 0; +} + +template +CDXArray::~CDXArray() +{ + DXASSERT_VALID( this ); + + if (m_pData != NULL) + { + DXDestructElements(m_pData, m_nSize); + delete[] (BYTE*)m_pData; + } +} + +template +void CDXArray::SetSize(int nNewSize, int nGrowBy) +{ + DXASSERT_VALID( this ); + _ASSERT( nNewSize >= 0 ); + + if (nGrowBy != -1) + m_nGrowBy = nGrowBy; // set new size + + if (nNewSize == 0) + { + // shrink to nothing + if (m_pData != NULL) + { + DXDestructElements(m_pData, m_nSize); + delete[] (BYTE*)m_pData; + m_pData = NULL; + } + m_nSize = m_nMaxSize = 0; + } + else if (m_pData == NULL) + { + // create one with exact size +#ifdef SIZE_T_MAX + _ASSERT( nNewSize <= SIZE_T_MAX/sizeof(TYPE) ); // no overflow +#endif + m_pData = (TYPE*) new BYTE[nNewSize * sizeof(TYPE)]; + DXConstructElements(m_pData, nNewSize); + m_nSize = m_nMaxSize = nNewSize; + } + else if (nNewSize <= m_nMaxSize) + { + // it fits + if (nNewSize > m_nSize) + { + // initialize the new elements + DXConstructElements(&m_pData[m_nSize], nNewSize-m_nSize); + } + else if (m_nSize > nNewSize) + { + // destroy the old elements + DXDestructElements(&m_pData[nNewSize], m_nSize-nNewSize); + } + m_nSize = nNewSize; + } + else + { + // otherwise, grow array + int nGrowBy = m_nGrowBy; + if (nGrowBy == 0) + { + // heuristically determe growth when nGrowBy == 0 + // (this avoids heap fragmentation in many situations) + nGrowBy = min(1024, max(4, m_nSize / 8)); + } + int nNewMax; + if (nNewSize < m_nMaxSize + nGrowBy) + nNewMax = m_nMaxSize + nGrowBy; // granularity + else + nNewMax = nNewSize; // no slush + + _ASSERT( nNewMax >= m_nMaxSize ); // no wrap around +#ifdef SIZE_T_MAX + _ASSERT( nNewMax <= SIZE_T_MAX/sizeof(TYPE) ); // no overflow +#endif + TYPE* pNewData = (TYPE*) new BYTE[nNewMax * sizeof(TYPE)]; + + // oh well, it's better than crashing + if (pNewData == NULL) + return; + + // copy new data from old + memcpy(pNewData, m_pData, m_nSize * sizeof(TYPE)); + + // construct remaining elements + _ASSERT( nNewSize > m_nSize ); + DXConstructElements(&pNewData[m_nSize], nNewSize-m_nSize); + + // get rid of old stuff (note: no destructors called) + delete[] (BYTE*)m_pData; + m_pData = pNewData; + m_nSize = nNewSize; + m_nMaxSize = nNewMax; + } +} + +template +int CDXArray::Append(const CDXArray& src) +{ + DXASSERT_VALID( this ); + _ASSERT( this != &src ); // cannot append to itself + + int nOldSize = m_nSize; + SetSize(m_nSize + src.m_nSize); + DXCopyElements(m_pData + nOldSize, src.m_pData, src.m_nSize); + return nOldSize; +} + +template +void CDXArray::Copy(const CDXArray& src) +{ + DXASSERT_VALID( this ); + _ASSERT( this != &src ); // cannot copy to itself + + SetSize(src.m_nSize); + DXCopyElements(m_pData, src.m_pData, src.m_nSize); +} + +template +void CDXArray::FreeExtra() +{ + DXASSERT_VALID( this ); + + if (m_nSize != m_nMaxSize) + { + // shrink to desired size +#ifdef SIZE_T_MAX + _ASSERT( m_nSize <= SIZE_T_MAX/sizeof(TYPE)); // no overflow +#endif + TYPE* pNewData = NULL; + if (m_nSize != 0) + { + pNewData = (TYPE*) new BYTE[m_nSize * sizeof(TYPE)]; + + // oh well, it's better than crashing + if (pNewData == NULL) + return; + + // copy new data from old + memcpy(pNewData, m_pData, m_nSize * sizeof(TYPE)); + } + + // get rid of old stuff (note: no destructors called) + delete[] (BYTE*)m_pData; + m_pData = pNewData; + m_nMaxSize = m_nSize; + } +} + +template +void CDXArray::SetAtGrow(int nIndex, ARG_TYPE newElement) +{ + DXASSERT_VALID( this ); + _ASSERT( nIndex >= 0 ); + + if (nIndex >= m_nSize) + SetSize(nIndex+1, -1); + m_pData[nIndex] = newElement; +} + +template +void CDXArray::InsertAt(int nIndex, ARG_TYPE newElement, int nCount /*=1*/) +{ + DXASSERT_VALID( this ); + _ASSERT( nIndex >= 0 ); // will expand to meet need + _ASSERT( nCount > 0 ); // zero or negative size not allowed + + if (nIndex >= m_nSize) + { + // adding after the end of the array + SetSize(nIndex + nCount, -1); // grow so nIndex is valid + } + else + { + // inserting in the middle of the array + int nOldSize = m_nSize; + SetSize(m_nSize + nCount, -1); // grow it to new size + // shift old data up to fill gap + memmove(&m_pData[nIndex+nCount], &m_pData[nIndex], + (nOldSize-nIndex) * sizeof(TYPE)); + + // re-init slots we copied from + DXConstructElements(&m_pData[nIndex], nCount); + } + + // insert new value in the gap + _ASSERT( nIndex + nCount <= m_nSize ); + while (nCount--) + m_pData[nIndex++] = newElement; +} + +template +void CDXArray::RemoveAt(int nIndex, int nCount) +{ + DXASSERT_VALID( this ); + _ASSERT( nIndex >= 0 ); + _ASSERT( nCount >= 0 ); + _ASSERT( nIndex + nCount <= m_nSize ); + + // just remove a range + int nMoveCount = m_nSize - (nIndex + nCount); + DXDestructElements(&m_pData[nIndex], nCount); + if (nMoveCount) + memcpy(&m_pData[nIndex], &m_pData[nIndex + nCount], + nMoveCount * sizeof(TYPE)); + m_nSize -= nCount; +} + +template +void CDXArray::InsertAt(int nStartIndex, CDXArray* pNewArray) +{ + DXASSERT_VALID( this ); + DXASSERT_VALID( pNewArray ); + _ASSERT( nStartIndex >= 0 ); + + if (pNewArray->GetSize() > 0) + { + InsertAt(nStartIndex, pNewArray->GetAt(0), pNewArray->GetSize()); + for (int i = 0; i < pNewArray->GetSize(); i++) + SetAt(nStartIndex + i, pNewArray->GetAt(i)); + } +} + +template +void CDXArray::Sort(int (__cdecl *compare )(const void *elem1, const void *elem2 )) +{ + DXASSERT_VALID( this ); + _ASSERT( m_pData != NULL ); + + qsort( m_pData, m_nSize, sizeof(TYPE), compare ); +} + +#ifdef _DEBUG +template +void CDXArray::AssertValid() const +{ + if (m_pData == NULL) + { + _ASSERT( m_nSize == 0 ); + _ASSERT( m_nMaxSize == 0 ); + } + else + { + _ASSERT( m_nSize >= 0 ); + _ASSERT( m_nMaxSize >= 0 ); + _ASSERT( m_nSize <= m_nMaxSize ); + _ASSERT( DXIsValidAddress(m_pData, m_nMaxSize * sizeof(TYPE), TRUE ) ); + } +} +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// CDXList + +template +class CDXList +{ +protected: + struct CNode + { + CNode* pNext; + CNode* pPrev; + TYPE data; + }; +public: + +// Construction + CDXList(int nBlockSize = 10); + +// Attributes (head and tail) + // count of elements + int GetCount() const; + BOOL IsEmpty() const; + + // peek at head or tail + TYPE& GetHead(); + TYPE GetHead() const; + TYPE& GetTail(); + TYPE GetTail() const; + +// Operations + // get head or tail (and remove it) - don't call on empty list ! + TYPE RemoveHead(); + TYPE RemoveTail(); + + // add before head or after tail + DXLISTPOS AddHead(ARG_TYPE newElement); + DXLISTPOS AddTail(ARG_TYPE newElement); + + // add another list of elements before head or after tail + void AddHead(CDXList* pNewList); + void AddTail(CDXList* pNewList); + + // remove all elements + void RemoveAll(); + + // iteration + DXLISTPOS GetHeadPosition() const; + DXLISTPOS GetTailPosition() const; + TYPE& GetNext(DXLISTPOS& rPosition); // return *Position++ + TYPE GetNext(DXLISTPOS& rPosition) const; // return *Position++ + TYPE& GetPrev(DXLISTPOS& rPosition); // return *Position-- + TYPE GetPrev(DXLISTPOS& rPosition) const; // return *Position-- + + // getting/modifying an element at a given position + TYPE& GetAt(DXLISTPOS position); + TYPE GetAt(DXLISTPOS position) const; + void SetAt(DXLISTPOS pos, ARG_TYPE newElement); + void RemoveAt(DXLISTPOS position); + + // inserting before or after a given position + DXLISTPOS InsertBefore(DXLISTPOS position, ARG_TYPE newElement); + DXLISTPOS InsertAfter(DXLISTPOS position, ARG_TYPE newElement); + + // helper functions (note: O(n) speed) + DXLISTPOS Find(ARG_TYPE searchValue, DXLISTPOS startAfter = NULL) const; + // defaults to starting at the HEAD, return NULL if not found + DXLISTPOS FindIndex(int nIndex) const; + // get the 'nIndex'th element (may return NULL) + +// Implementation +protected: + CNode* m_pNodeHead; + CNode* m_pNodeTail; + int m_nCount; + CNode* m_pNodeFree; + struct CDXPlex* m_pBlocks; + int m_nBlockSize; + + CNode* NewNode(CNode*, CNode*); + void FreeNode(CNode*); + +public: + ~CDXList(); +#ifdef _DEBUG + void AssertValid() const; +#endif +}; + +///////////////////////////////////////////////////////////////////////////// +// CDXList inline functions + +template +inline int CDXList::GetCount() const + { return m_nCount; } +template +inline BOOL CDXList::IsEmpty() const + { return m_nCount == 0; } +template +inline TYPE& CDXList::GetHead() + { _ASSERT( m_pNodeHead != NULL ); + return m_pNodeHead->data; } +template +inline TYPE CDXList::GetHead() const + { _ASSERT( m_pNodeHead != NULL ); + return m_pNodeHead->data; } +template +inline TYPE& CDXList::GetTail() + { _ASSERT( m_pNodeTail != NULL ); + return m_pNodeTail->data; } +template +inline TYPE CDXList::GetTail() const + { _ASSERT( m_pNodeTail != NULL ); + return m_pNodeTail->data; } +template +inline DXLISTPOS CDXList::GetHeadPosition() const + { return (DXLISTPOS) m_pNodeHead; } +template +inline DXLISTPOS CDXList::GetTailPosition() const + { return (DXLISTPOS) m_pNodeTail; } +template +inline TYPE& CDXList::GetNext(DXLISTPOS& rPosition) // return *Position++ + { CNode* pNode = (CNode*) rPosition; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + rPosition = (DXLISTPOS) pNode->pNext; + return pNode->data; } +template +inline TYPE CDXList::GetNext(DXLISTPOS& rPosition) const // return *Position++ + { CNode* pNode = (CNode*) rPosition; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + rPosition = (DXLISTPOS) pNode->pNext; + return pNode->data; } +template +inline TYPE& CDXList::GetPrev(DXLISTPOS& rPosition) // return *Position-- + { CNode* pNode = (CNode*) rPosition; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + rPosition = (DXLISTPOS) pNode->pPrev; + return pNode->data; } +template +inline TYPE CDXList::GetPrev(DXLISTPOS& rPosition) const // return *Position-- + { CNode* pNode = (CNode*) rPosition; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + rPosition = (DXLISTPOS) pNode->pPrev; + return pNode->data; } +template +inline TYPE& CDXList::GetAt(DXLISTPOS position) + { CNode* pNode = (CNode*) position; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + return pNode->data; } +template +inline TYPE CDXList::GetAt(DXLISTPOS position) const + { CNode* pNode = (CNode*) position; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + return pNode->data; } +template +inline void CDXList::SetAt(DXLISTPOS pos, ARG_TYPE newElement) + { CNode* pNode = (CNode*) pos; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + pNode->data = newElement; } + +///////////////////////////////////////////////////////////////////////////// +// CDXList out-of-line functions + +template +CDXList::CDXList( int nBlockSize ) +{ + _ASSERT( nBlockSize > 0 ); + + m_nCount = 0; + m_pNodeHead = m_pNodeTail = m_pNodeFree = NULL; + m_pBlocks = NULL; + m_nBlockSize = nBlockSize; +} + +template +void CDXList::RemoveAll() +{ + DXASSERT_VALID( this ); + + // destroy elements + CNode* pNode; + for (pNode = m_pNodeHead; pNode != NULL; pNode = pNode->pNext) + DXDestructElements(&pNode->data, 1); + + m_nCount = 0; + m_pNodeHead = m_pNodeTail = m_pNodeFree = NULL; + m_pBlocks->FreeDataChain(); + m_pBlocks = NULL; +} + +template +CDXList::~CDXList() +{ + RemoveAll(); + _ASSERT( m_nCount == 0 ); +} + +///////////////////////////////////////////////////////////////////////////// +// Node helpers +// +// Implementation note: CNode's are stored in CDXPlex blocks and +// chained together. Free blocks are maintained in a singly linked list +// using the 'pNext' member of CNode with 'm_pNodeFree' as the head. +// Used blocks are maintained in a doubly linked list using both 'pNext' +// and 'pPrev' as links and 'm_pNodeHead' and 'm_pNodeTail' +// as the head/tail. +// +// We never free a CDXPlex block unless the List is destroyed or RemoveAll() +// is used - so the total number of CDXPlex blocks may grow large depending +// on the maximum past size of the list. +// + +template +typename CDXList::CNode* +CDXList::NewNode(CNode* pPrev, CNode* pNext) +{ + if (m_pNodeFree == NULL) + { + // add another block + CDXPlex* pNewBlock = CDXPlex::Create(m_pBlocks, m_nBlockSize, + sizeof(CNode)); + + // chain them into free list + CNode* pNode = (CNode*) pNewBlock->data(); + // free in reverse order to make it easier to debug + pNode += m_nBlockSize - 1; + for (int i = m_nBlockSize-1; i >= 0; i--, pNode--) + { + pNode->pNext = m_pNodeFree; + m_pNodeFree = pNode; + } + } + _ASSERT( m_pNodeFree != NULL ); // we must have something + + CDXList::CNode* pNode = m_pNodeFree; + m_pNodeFree = m_pNodeFree->pNext; + pNode->pPrev = pPrev; + pNode->pNext = pNext; + m_nCount++; + _ASSERT( m_nCount > 0 ); // make sure we don't overflow + + DXConstructElements(&pNode->data, 1); + return pNode; +} + +template +void CDXList::FreeNode(CNode* pNode) +{ + DXDestructElements(&pNode->data, 1); + pNode->pNext = m_pNodeFree; + m_pNodeFree = pNode; + m_nCount--; + _ASSERT( m_nCount >= 0 ); // make sure we don't underflow +} + +template +DXLISTPOS CDXList::AddHead(ARG_TYPE newElement) +{ + DXASSERT_VALID( this ); + + CNode* pNewNode = NewNode(NULL, m_pNodeHead); + pNewNode->data = newElement; + if (m_pNodeHead != NULL) + m_pNodeHead->pPrev = pNewNode; + else + m_pNodeTail = pNewNode; + m_pNodeHead = pNewNode; + return (DXLISTPOS) pNewNode; +} + +template +DXLISTPOS CDXList::AddTail(ARG_TYPE newElement) +{ + DXASSERT_VALID( this ); + + CNode* pNewNode = NewNode(m_pNodeTail, NULL); + pNewNode->data = newElement; + if (m_pNodeTail != NULL) + m_pNodeTail->pNext = pNewNode; + else + m_pNodeHead = pNewNode; + m_pNodeTail = pNewNode; + return (DXLISTPOS) pNewNode; +} + +template +void CDXList::AddHead(CDXList* pNewList) +{ + DXASSERT_VALID( this ); + DXASSERT_VALID( pNewList ); + + // add a list of same elements to head (maintain order) + DXLISTPOS pos = pNewList->GetTailPosition(); + while (pos != NULL) + AddHead(pNewList->GetPrev(pos)); +} + +template +void CDXList::AddTail(CDXList* pNewList) +{ + DXASSERT_VALID( this ); + DXASSERT_VALID( pNewList ); + + // add a list of same elements + DXLISTPOS pos = pNewList->GetHeadPosition(); + while (pos != NULL) + AddTail(pNewList->GetNext(pos)); +} + +template +TYPE CDXList::RemoveHead() +{ + DXASSERT_VALID( this ); + _ASSERT( m_pNodeHead != NULL ); // don't call on empty list !!! + _ASSERT( DXIsValidAddress(m_pNodeHead, sizeof(CNode), TRUE ) ); + + CNode* pOldNode = m_pNodeHead; + TYPE returnValue = pOldNode->data; + + m_pNodeHead = pOldNode->pNext; + if (m_pNodeHead != NULL) + m_pNodeHead->pPrev = NULL; + else + m_pNodeTail = NULL; + FreeNode(pOldNode); + return returnValue; +} + +template +TYPE CDXList::RemoveTail() +{ + DXASSERT_VALID( this ); + _ASSERT( m_pNodeTail != NULL ); // don't call on empty list !!! + _ASSERT( DXIsValidAddress(m_pNodeTail, sizeof(CNode), TRUE ) ); + + CNode* pOldNode = m_pNodeTail; + TYPE returnValue = pOldNode->data; + + m_pNodeTail = pOldNode->pPrev; + if (m_pNodeTail != NULL) + m_pNodeTail->pNext = NULL; + else + m_pNodeHead = NULL; + FreeNode(pOldNode); + return returnValue; +} + +template +DXLISTPOS CDXList::InsertBefore(DXLISTPOS position, ARG_TYPE newElement) +{ + DXASSERT_VALID( this ); + + if (position == NULL) + return AddHead(newElement); // insert before nothing -> head of the list + + // Insert it before position + CNode* pOldNode = (CNode*) position; + CNode* pNewNode = NewNode(pOldNode->pPrev, pOldNode); + pNewNode->data = newElement; + + if (pOldNode->pPrev != NULL) + { + _ASSERT( DXIsValidAddress(pOldNode->pPrev, sizeof(CNode), TRUE ) ); + pOldNode->pPrev->pNext = pNewNode; + } + else + { + _ASSERT( pOldNode == m_pNodeHead ); + m_pNodeHead = pNewNode; + } + pOldNode->pPrev = pNewNode; + return (DXLISTPOS) pNewNode; +} + +template +DXLISTPOS CDXList::InsertAfter(DXLISTPOS position, ARG_TYPE newElement) +{ + DXASSERT_VALID( this ); + + if (position == NULL) + return AddTail(newElement); // insert after nothing -> tail of the list + + // Insert it before position + CNode* pOldNode = (CNode*) position; + _ASSERT( DXIsValidAddress(pOldNode, sizeof(CNode), TRUE )); + CNode* pNewNode = NewNode(pOldNode, pOldNode->pNext); + pNewNode->data = newElement; + + if (pOldNode->pNext != NULL) + { + _ASSERT( DXIsValidAddress(pOldNode->pNext, sizeof(CNode), TRUE )); + pOldNode->pNext->pPrev = pNewNode; + } + else + { + _ASSERT( pOldNode == m_pNodeTail ); + m_pNodeTail = pNewNode; + } + pOldNode->pNext = pNewNode; + return (DXLISTPOS) pNewNode; +} + +template +void CDXList::RemoveAt(DXLISTPOS position) +{ + DXASSERT_VALID( this ); + + CNode* pOldNode = (CNode*) position; + _ASSERT( DXIsValidAddress(pOldNode, sizeof(CNode), TRUE ) ); + + // remove pOldNode from list + if (pOldNode == m_pNodeHead) + { + m_pNodeHead = pOldNode->pNext; + } + else + { + _ASSERT( DXIsValidAddress(pOldNode->pPrev, sizeof(CNode), TRUE ) ); + pOldNode->pPrev->pNext = pOldNode->pNext; + } + if (pOldNode == m_pNodeTail) + { + m_pNodeTail = pOldNode->pPrev; + } + else + { + _ASSERT( DXIsValidAddress(pOldNode->pNext, sizeof(CNode), TRUE ) ); + pOldNode->pNext->pPrev = pOldNode->pPrev; + } + FreeNode(pOldNode); +} + +template +DXLISTPOS CDXList::FindIndex(int nIndex) const +{ + DXASSERT_VALID( this ); + _ASSERT( nIndex >= 0 ); + + if (nIndex >= m_nCount) + return NULL; // went too far + + CNode* pNode = m_pNodeHead; + while (nIndex--) + { + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE )); + pNode = pNode->pNext; + } + return (DXLISTPOS) pNode; +} + +template +DXLISTPOS CDXList::Find(ARG_TYPE searchValue, DXLISTPOS startAfter) const +{ + DXASSERT_VALID( this ); + + CNode* pNode = (CNode*) startAfter; + if (pNode == NULL) + { + pNode = m_pNodeHead; // start at head + } + else + { + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + pNode = pNode->pNext; // start after the one specified + } + + for (; pNode != NULL; pNode = pNode->pNext) + if (DXCompareElements(&pNode->data, &searchValue)) + return (DXLISTPOS)pNode; + return NULL; +} + +#ifdef _DEBUG +template +void CDXList::AssertValid() const +{ + if (m_nCount == 0) + { + // empty list + _ASSERT( m_pNodeHead == NULL ); + _ASSERT( m_pNodeTail == NULL ); + } + else + { + // non-empty list + _ASSERT( DXIsValidAddress(m_pNodeHead, sizeof(CNode), TRUE )); + _ASSERT( DXIsValidAddress(m_pNodeTail, sizeof(CNode), TRUE )); + } +} +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// CDXMap + +template +class CDXMap +{ +protected: + // Association + struct CAssoc + { + CAssoc* pNext; + UINT nHashValue; // needed for efficient iteration + KEY key; + VALUE value; + }; +public: +// Construction + CDXMap( int nBlockSize = 10 ); + +// Attributes + // number of elements + int GetCount() const; + BOOL IsEmpty() const; + + // Lookup + BOOL Lookup(ARG_KEY key, VALUE& rValue) const; + +// Operations + // Lookup and add if not there + VALUE& operator[](ARG_KEY key); + + // add a new (key, value) pair + void SetAt(ARG_KEY key, ARG_VALUE newValue); + + // removing existing (key, ?) pair + BOOL RemoveKey(ARG_KEY key); + void RemoveAll(); + + // iterating all (key, value) pairs + DXLISTPOS GetStartPosition() const; + void GetNextAssoc(DXLISTPOS& rNextPosition, KEY& rKey, VALUE& rValue) const; + + // advanced features for derived classes + UINT GetHashTableSize() const; + void InitHashTable(UINT hashSize, BOOL bAllocNow = TRUE); + +// Implementation +protected: + CAssoc** m_pHashTable; + UINT m_nHashTableSize; + int m_nCount; + CAssoc* m_pFreeList; + struct CDXPlex* m_pBlocks; + int m_nBlockSize; + + CAssoc* NewAssoc(); + void FreeAssoc(CAssoc*); + CAssoc* GetAssocAt(ARG_KEY, UINT&) const; + +public: + ~CDXMap(); +#ifdef _DEBUG +// void Dump(CDumpContext&) const; + void AssertValid() const; +#endif +}; + +///////////////////////////////////////////////////////////////////////////// +// CDXMap inline functions + +template +inline int CDXMap::GetCount() const + { return m_nCount; } +template +inline BOOL CDXMap::IsEmpty() const + { return m_nCount == 0; } +template +inline void CDXMap::SetAt(ARG_KEY key, ARG_VALUE newValue) + { (*this)[key] = newValue; } +template +inline DXLISTPOS CDXMap::GetStartPosition() const + { return (m_nCount == 0) ? NULL : DX_BEFORE_START_POSITION; } +template +inline UINT CDXMap::GetHashTableSize() const + { return m_nHashTableSize; } + +///////////////////////////////////////////////////////////////////////////// +// CDXMap out-of-line functions + +template +CDXMap::CDXMap( int nBlockSize ) +{ + _ASSERT( nBlockSize > 0 ); + + m_pHashTable = NULL; + m_nHashTableSize = 17; // default size + m_nCount = 0; + m_pFreeList = NULL; + m_pBlocks = NULL; + m_nBlockSize = nBlockSize; +} + +template +void CDXMap::InitHashTable( + UINT nHashSize, BOOL bAllocNow) +// +// Used to force allocation of a hash table or to override the default +// hash table size of (which is fairly small) +{ + DXASSERT_VALID( this ); + _ASSERT( m_nCount == 0 ); + _ASSERT( nHashSize > 0 ); + + if (m_pHashTable != NULL) + { + // free hash table + delete[] m_pHashTable; + m_pHashTable = NULL; + } + + if (bAllocNow) + { + m_pHashTable = new CAssoc* [nHashSize]; + + // oh well, it's better than crashing + if (m_pHashTable == NULL) + return; + + memset(m_pHashTable, 0, sizeof(CAssoc*) * nHashSize); + } + m_nHashTableSize = nHashSize; +} + +template +void CDXMap::RemoveAll() +{ + DXASSERT_VALID( this ); + + if (m_pHashTable != NULL) + { + // destroy elements (values and keys) + for (UINT nHash = 0; nHash < m_nHashTableSize; nHash++) + { + CAssoc* pAssoc; + for (pAssoc = m_pHashTable[nHash]; pAssoc != NULL; + pAssoc = pAssoc->pNext) + { + DXDestructElements(&pAssoc->value, 1); + DXDestructElements(&pAssoc->key, 1); + } + } + } + + // free hash table + delete[] m_pHashTable; + m_pHashTable = NULL; + + m_nCount = 0; + m_pFreeList = NULL; + m_pBlocks->FreeDataChain(); + m_pBlocks = NULL; +} + +template +CDXMap::~CDXMap() +{ + RemoveAll(); + _ASSERT( m_nCount == 0 ); +} + +template +typename CDXMap::CAssoc* +CDXMap::NewAssoc() +{ + if (m_pFreeList == NULL) + { + // add another block + CDXPlex* newBlock = CDXPlex::Create(m_pBlocks, m_nBlockSize, sizeof(CDXMap::CAssoc)); + // chain them into free list + CDXMap::CAssoc* pAssoc = (CDXMap::CAssoc*) newBlock->data(); + // free in reverse order to make it easier to debug + pAssoc += m_nBlockSize - 1; + for (int i = m_nBlockSize-1; i >= 0; i--, pAssoc--) + { + pAssoc->pNext = m_pFreeList; + m_pFreeList = pAssoc; + } + } + _ASSERT( m_pFreeList != NULL ); // we must have something + + CDXMap::CAssoc* pAssoc = m_pFreeList; + m_pFreeList = m_pFreeList->pNext; + m_nCount++; + _ASSERT( m_nCount > 0 ); // make sure we don't overflow + DXConstructElements(&pAssoc->key, 1); + DXConstructElements(&pAssoc->value, 1); // special construct values + return pAssoc; +} + +template +void CDXMap::FreeAssoc(CAssoc* pAssoc) +{ + DXDestructElements(&pAssoc->value, 1); + DXDestructElements(&pAssoc->key, 1); + pAssoc->pNext = m_pFreeList; + m_pFreeList = pAssoc; + m_nCount--; + _ASSERT( m_nCount >= 0 ); // make sure we don't underflow +} + +template +typename CDXMap::CAssoc* +CDXMap::GetAssocAt(ARG_KEY key, UINT& nHash) const +// find association (or return NULL) +{ + nHash = DXHashKey(key) % m_nHashTableSize; + + if (m_pHashTable == NULL) + return NULL; + + // see if it exists + CAssoc* pAssoc; + for (pAssoc = m_pHashTable[nHash]; pAssoc != NULL; pAssoc = pAssoc->pNext) + { + if (DXCompareElements(&pAssoc->key, &key)) + return pAssoc; + } + return NULL; +} + +template +BOOL CDXMap::Lookup(ARG_KEY key, VALUE& rValue) const +{ + DXASSERT_VALID( this ); + + UINT nHash; + CAssoc* pAssoc = GetAssocAt(key, nHash); + if (pAssoc == NULL) + return FALSE; // not in map + + rValue = pAssoc->value; + return TRUE; +} + +template +VALUE& CDXMap::operator[](ARG_KEY key) +{ + DXASSERT_VALID( this ); + + UINT nHash; + CAssoc* pAssoc; + if ((pAssoc = GetAssocAt(key, nHash)) == NULL) + { + if (m_pHashTable == NULL) + InitHashTable(m_nHashTableSize); + + // it doesn't exist, add a new Association + pAssoc = NewAssoc(); + pAssoc->nHashValue = nHash; + pAssoc->key = key; + // 'pAssoc->value' is a constructed object, nothing more + + // put into hash table + pAssoc->pNext = m_pHashTable[nHash]; + m_pHashTable[nHash] = pAssoc; + } + return pAssoc->value; // return new reference +} + +template +BOOL CDXMap::RemoveKey(ARG_KEY key) +// remove key - return TRUE if removed +{ + DXASSERT_VALID( this ); + + if (m_pHashTable == NULL) + return FALSE; // nothing in the table + + CAssoc** ppAssocPrev; + ppAssocPrev = &m_pHashTable[DXHashKey(key) % m_nHashTableSize]; + + CAssoc* pAssoc; + for (pAssoc = *ppAssocPrev; pAssoc != NULL; pAssoc = pAssoc->pNext) + { + if (DXCompareElements(&pAssoc->key, &key)) + { + // remove it + *ppAssocPrev = pAssoc->pNext; // remove from list + FreeAssoc(pAssoc); + return TRUE; + } + ppAssocPrev = &pAssoc->pNext; + } + return FALSE; // not found +} + +template +void CDXMap::GetNextAssoc(DXLISTPOS& rNextPosition, + KEY& rKey, VALUE& rValue) const +{ + DXASSERT_VALID( this ); + _ASSERT( m_pHashTable != NULL ); // never call on empty map + + CAssoc* pAssocRet = (CAssoc*)rNextPosition; + _ASSERT( pAssocRet != NULL ); + + if (pAssocRet == (CAssoc*) DX_BEFORE_START_POSITION) + { + // find the first association + for (UINT nBucket = 0; nBucket < m_nHashTableSize; nBucket++) + if ((pAssocRet = m_pHashTable[nBucket]) != NULL) + break; + _ASSERT( pAssocRet != NULL ); // must find something + } + + // find next association + _ASSERT( DXIsValidAddress(pAssocRet, sizeof(CAssoc), TRUE )); + CAssoc* pAssocNext; + if ((pAssocNext = pAssocRet->pNext) == NULL) + { + // go to next bucket + for (UINT nBucket = pAssocRet->nHashValue + 1; + nBucket < m_nHashTableSize; nBucket++) + if ((pAssocNext = m_pHashTable[nBucket]) != NULL) + break; + } + + rNextPosition = (DXLISTPOS) pAssocNext; + + // fill in return data + rKey = pAssocRet->key; + rValue = pAssocRet->value; +} + +#ifdef _DEBUG +template +void CDXMap::AssertValid() const +{ + _ASSERT( m_nHashTableSize > 0 ); + _ASSERT( (m_nCount == 0 || m_pHashTable != NULL) ); + // non-empty map should have hash table +} +#endif //_DEBUG + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //--- This must be the last line in the file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva.h new file mode 100644 index 0000000000000000000000000000000000000000..a22fa107ed583cc78e592a8be6315b349533b369 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva.h @@ -0,0 +1,2856 @@ +//------------------------------------------------------------------------------ +// File: DXVA.h +// +// Desc: DirectX Video Acceleration header file. +// +// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __DIRECTX_VA__ +#define __DIRECTX_VA__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif + +#pragma warning(disable:4201) // named type definition in parentheses + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __DIRECTX_VA_COPP_ONLY +#define __DIRECTX_VA_DECODER__ +#define __DIRECTX_VA_PROCAMPCONTROL__ +#define __DIRECTX_VA_DEINTERLACE__ +#endif + +#ifndef DXVABit +#define DXVABit(__x) (1 << __x) +#endif + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the DirectX Video Acceleration +// decoding interface. +// This interface is accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_DECODER__ +#define __DIRECTX_VA_DECODER__ + +DEFINE_GUID(DXVA_ModeNone, 0x1b81be00, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH261_A, 0x1b81be01, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH261_B, 0x1b81be02, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +DEFINE_GUID(DXVA_ModeH263_A, 0x1b81be03, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH263_B, 0x1b81be04, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH263_C, 0x1b81be05, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH263_D, 0x1b81be06, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH263_E, 0x1b81be07, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH263_F, 0x1b81be08, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +DEFINE_GUID(DXVA_ModeMPEG1_A, 0x1b81be09, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeMPEG1_VLD, 0x6f3ec719, 0x3735,0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16); + +DEFINE_GUID(DXVA_ModeMPEG2_A, 0x1b81be0A, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeMPEG2_B, 0x1b81be0B, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeMPEG2_C, 0x1b81be0C, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeMPEG2_D, 0x1b81be0D, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeMPEG2and1_VLD, 0x86695f12, 0x340e,0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60); + +DEFINE_GUID(DXVA_ModeH264_A, 0x1b81be64, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_B, 0x1b81be65, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_C, 0x1b81be66, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_D, 0x1b81be67, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_E, 0x1b81be68, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_F, 0x1b81be69, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_VLD_WithFMOASO_NoFGT, 0xd5f04ff9, 0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd); + +DEFINE_GUID(DXVA_ModeH264_VLD_Stereo_Progressive_NoFGT, 0xd79be8da, 0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d); +DEFINE_GUID(DXVA_ModeH264_VLD_Stereo_NoFGT, 0xf9aaccbb, 0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52); +DEFINE_GUID(DXVA_ModeH264_VLD_Multiview_NoFGT, 0x705b9d82, 0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c); + +DEFINE_GUID(DXVA_ModeWMV8_A, 0x1b81be80, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeWMV8_B, 0x1b81be81, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +DEFINE_GUID(DXVA_ModeWMV9_A, 0x1b81be90, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeWMV9_B, 0x1b81be91, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeWMV9_C, 0x1b81be94, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +DEFINE_GUID(DXVA_ModeVC1_A, 0x1b81beA0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeVC1_B, 0x1b81beA1, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeVC1_C, 0x1b81beA2, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeVC1_D2010,0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +DEFINE_GUID(DXVA_ModeMPEG4pt2_VLD_Simple, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19); +DEFINE_GUID(DXVA_ModeMPEG4pt2_VLD_AdvSimple_NoGMC, 0xed418a9f, 0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e); +DEFINE_GUID(DXVA_ModeMPEG4pt2_VLD_AdvSimple_GMC, 0xab998b5b, 0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae); + +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main, 0x5b11d51b, 0x2f4c, 0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main10, 0x107af0e0, 0xef1a, 0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Monochrome, 0x0685b993, 0x3d8c, 0x43a0, 0x8b, 0x28, 0xd7, 0x4c, 0x2d, 0x68, 0x99, 0xa4); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Monochrome10, 0x142a1d0f, 0x69dd, 0x4ec9, 0x85, 0x91, 0xb1, 0x2f, 0xfc, 0xb9, 0x1a, 0x29); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main12, 0x1a72925f, 0x0c2c, 0x4f15, 0x96, 0xfb, 0xb1, 0x7d, 0x14, 0x73, 0x60, 0x3f); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main10_422, 0x0bac4fe5, 0x1532, 0x4429, 0xa8, 0x54, 0xf8, 0x4d, 0xe0, 0x49, 0x53, 0xdb); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main12_422, 0x55bcac81, 0xf311, 0x4093, 0xa7, 0xd0, 0x1c, 0xbc, 0x0b, 0x84, 0x9b, 0xee); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main_444, 0x4008018f, 0xf537, 0x4b36, 0x98, 0xcf, 0x61, 0xaf, 0x8a, 0x2c, 0x1a, 0x33); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main10_Ext, 0x9cc55490, 0xe37c, 0x4932, 0x86, 0x84, 0x49, 0x20, 0xf9, 0xf6, 0x40, 0x9c); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main10_444, 0x0dabeffa, 0x4458, 0x4602, 0xbc, 0x03, 0x07, 0x95, 0x65, 0x9d, 0x61, 0x7c); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main12_444, 0x9798634d, 0xfe9d, 0x48e5, 0xb4, 0xda, 0xdb, 0xec, 0x45, 0xb3, 0xdf, 0x01); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main16, 0xa4fbdbb0, 0xa113, 0x482b, 0xa2, 0x32, 0x63, 0x5c, 0xc0, 0x69, 0x7f, 0x6d); + +DEFINE_GUID(DXVA_ModeVP9_VLD_Profile0, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e); +DEFINE_GUID(DXVA_ModeVP9_VLD_10bit_Profile2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7); +DEFINE_GUID(DXVA_ModeVP8_VLD, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7); + +DEFINE_GUID(DXVA_ModeAV1_VLD_Profile0, 0xb8be4ccb, 0xcf53, 0x46ba, 0x8d, 0x59, 0xd6, 0xb8, 0xa6, 0xda, 0x5d, 0x2a); +DEFINE_GUID(DXVA_ModeAV1_VLD_Profile1, 0x6936ff0f, 0x45b1, 0x4163, 0x9c, 0xc1, 0x64, 0x6e, 0xf6, 0x94, 0x61, 0x08); +DEFINE_GUID(DXVA_ModeAV1_VLD_Profile2, 0x0c5f2aa1, 0xe541, 0x4089, 0xbb, 0x7b, 0x98, 0x11, 0x0a, 0x19, 0xd7, 0xc8); +DEFINE_GUID(DXVA_ModeAV1_VLD_12bit_Profile2, 0x17127009, 0xa00f, 0x4ce1, 0x99, 0x4e, 0xbf, 0x40, 0x81, 0xf6, 0xf3, 0xf0); +DEFINE_GUID(DXVA_ModeAV1_VLD_12bit_Profile2_420, 0x2d80bed6, 0x9cac, 0x4835, 0x9e, 0x91, 0x32, 0x7b, 0xbc, 0x4f, 0x9e, 0xe8); + +DEFINE_GUID(DXVA_ModeMJPEG_VLD_420, 0x725cb506, 0x0c29, 0x43c4, 0x94, 0x40, 0x8e, 0x93, 0x97, 0x90, 0x3a, 0x04); +DEFINE_GUID(DXVA_ModeMJPEG_VLD_422, 0x5b77b9cd, 0x1a35, 0x4c30, 0x9f, 0xd8, 0xef, 0x4b, 0x60, 0xc0, 0x35, 0xdd); +DEFINE_GUID(DXVA_ModeMJPEG_VLD_444, 0xd95161f9, 0x0d44, 0x47e6, 0xbc, 0xf5, 0x1b, 0xfb, 0xfb, 0x26, 0x8f, 0x97); +DEFINE_GUID(DXVA_ModeMJPEG_VLD_4444, 0xc91748d5, 0xfd18, 0x4aca, 0x9d, 0xb3, 0x3a, 0x66, 0x34, 0xab, 0x54, 0x7d); +DEFINE_GUID(DXVA_ModeJPEG_VLD_420, 0xcf782c83, 0xbef5, 0x4a2c, 0x87, 0xcb, 0x60, 0x19, 0xe7, 0xb1, 0x75, 0xac); +DEFINE_GUID(DXVA_ModeJPEG_VLD_422, 0xf04df417, 0xeee2, 0x4067, 0xa7, 0x78, 0xf3, 0x5c, 0x15, 0xab, 0x97, 0x21); +DEFINE_GUID(DXVA_ModeJPEG_VLD_444, 0x4cd00e17, 0x89ba, 0x48ef, 0xb9, 0xf9, 0xed, 0xcb, 0x82, 0x71, 0x3f, 0x65); + +DEFINE_GUID(DXVA_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +#define DXVA_ModeWMV8_PostProc DXVA_ModeWMV8_A +#define DXVA_ModeWMV8_MoComp DXVA_ModeWMV8_B + +#define DXVA_ModeWMV9_PostProc DXVA_ModeWMV9_A +#define DXVA_ModeWMV9_MoComp DXVA_ModeWMV9_B +#define DXVA_ModeWMV9_IDCT DXVA_ModeWMV9_C + +#define DXVA_ModeVC1_PostProc DXVA_ModeVC1_A +#define DXVA_ModeVC1_MoComp DXVA_ModeVC1_B +#define DXVA_ModeVC1_IDCT DXVA_ModeVC1_C +#define DXVA_ModeVC1_VLD DXVA_ModeVC1_D + +#define DXVA_ModeH264_MoComp_NoFGT DXVA_ModeH264_A +#define DXVA_ModeH264_MoComp_FGT DXVA_ModeH264_B +#define DXVA_ModeH264_IDCT_NoFGT DXVA_ModeH264_C +#define DXVA_ModeH264_IDCT_FGT DXVA_ModeH264_D +#define DXVA_ModeH264_VLD_NoFGT DXVA_ModeH264_E +#define DXVA_ModeH264_VLD_FGT DXVA_ModeH264_F + +#define DXVA_RESTRICTED_MODE_UNRESTRICTED 0xFFFF +#define DXVA_RESTRICTED_MODE_H261_A 1 +#define DXVA_RESTRICTED_MODE_H261_B 2 + +#define DXVA_RESTRICTED_MODE_H263_A 3 +#define DXVA_RESTRICTED_MODE_H263_B 4 +#define DXVA_RESTRICTED_MODE_H263_C 5 +#define DXVA_RESTRICTED_MODE_H263_D 6 +#define DXVA_RESTRICTED_MODE_H263_E 7 +#define DXVA_RESTRICTED_MODE_H263_F 8 + +#define DXVA_RESTRICTED_MODE_MPEG1_A 9 + +#define DXVA_RESTRICTED_MODE_MPEG2_A 0xA +#define DXVA_RESTRICTED_MODE_MPEG2_B 0xB +#define DXVA_RESTRICTED_MODE_MPEG2_C 0xC +#define DXVA_RESTRICTED_MODE_MPEG2_D 0xD +#define DXVA_RESTRICTED_MODE_MPEG1_VLD 0x10 +#define DXVA_RESTRICTED_MODE_MPEG2and1_VLD 0x11 + +#define DXVA_RESTRICTED_MODE_H264_A 0x64 +#define DXVA_RESTRICTED_MODE_H264_B 0x65 +#define DXVA_RESTRICTED_MODE_H264_C 0x66 +#define DXVA_RESTRICTED_MODE_H264_D 0x67 +#define DXVA_RESTRICTED_MODE_H264_E 0x68 +#define DXVA_RESTRICTED_MODE_H264_F 0x69 + +#define DXVA_RESTRICTED_MODE_H264_VLD_WITHFMOASO_NOFGT 0x70 + +#define DXVA_RESTRICTED_MODE_H264_VLD_STEREO_PROGRESSIVE_NOFGT 0x71 +#define DXVA_RESTRICTED_MODE_H264_VLD_STEREO_NOFGT 0x72 +#define DXVA_RESTRICTED_MODE_H264_VLD_MULTIVIEW_NOFGT 0x73 + +#define DXVA_RESTRICTED_MODE_WMV8_A 0x80 +#define DXVA_RESTRICTED_MODE_WMV8_B 0x81 + +#define DXVA_RESTRICTED_MODE_WMV9_A 0x90 +#define DXVA_RESTRICTED_MODE_WMV9_B 0x91 +#define DXVA_RESTRICTED_MODE_WMV9_C 0x94 + +#define DXVA_RESTRICTED_MODE_VC1_A 0xA0 +#define DXVA_RESTRICTED_MODE_VC1_B 0xA1 +#define DXVA_RESTRICTED_MODE_VC1_C 0xA2 +#define DXVA_RESTRICTED_MODE_VC1_D 0xA3 + +#define DXVA_RESTRICTED_MODE_VC1_D2010 0xA4 + +#define DXVA_RESTRICTED_MODE_MPEG4PT2_VLD_SIMPLE 0xB0 +#define DXVA_RESTRICTED_MODE_MPEG4PT2_VLD_ADV_SIMPLE_NOGMC 0xB1 +#define DXVA_RESTRICTED_MODE_MPEG4PT2_VLD_ADV_SIMPLE_GMC 0xB2 + +#define DXVA_RESTRICTED_MODE_WMV8_POSTPROC DXVA_RESTRICTED_MODE_WMV8_A +#define DXVA_RESTRICTED_MODE_WMV8_MOCOMP DXVA_RESTRICTED_MODE_WMV8_B + +#define DXVA_RESTRICTED_MODE_WMV9_POSTPROC DXVA_RESTRICTED_MODE_WMV9_A +#define DXVA_RESTRICTED_MODE_WMV9_MOCOMP DXVA_RESTRICTED_MODE_WMV9_B +#define DXVA_RESTRICTED_MODE_WMV9_IDCT DXVA_RESTRICTED_MODE_WMV9_C + +#define DXVA_RESTRICTED_MODE_VC1_POSTPROC DXVA_RESTRICTED_MODE_VC1_A +#define DXVA_RESTRICTED_MODE_VC1_MOCOMP DXVA_RESTRICTED_MODE_VC1_B +#define DXVA_RESTRICTED_MODE_VC1_IDCT DXVA_RESTRICTED_MODE_VC1_C +#define DXVA_RESTRICTED_MODE_VC1_VLD DXVA_RESTRICTED_MODE_VC1_D + +#define DXVA_RESTRICTED_MODE_H264_MOCOMP_NOFGT DXVA_RESTRICTED_MODE_H264_A +#define DXVA_RESTRICTED_MODE_H264_MOCOMP_FGT DXVA_RESTRICTED_MODE_H264_B +#define DXVA_RESTRICTED_MODE_H264_IDCT_NOFGT DXVA_RESTRICTED_MODE_H264_C +#define DXVA_RESTRICTED_MODE_H264_IDCT_FGT DXVA_RESTRICTED_MODE_H264_D +#define DXVA_RESTRICTED_MODE_H264_VLD_NOFGT DXVA_RESTRICTED_MODE_H264_E +#define DXVA_RESTRICTED_MODE_H264_VLD_FGT DXVA_RESTRICTED_MODE_H264_F + +#define DXVA_COMPBUFFER_TYPE_THAT_IS_NOT_USED 0 +#define DXVA_PICTURE_DECODE_BUFFER 1 +#define DXVA_MACROBLOCK_CONTROL_BUFFER 2 +#define DXVA_RESIDUAL_DIFFERENCE_BUFFER 3 +#define DXVA_DEBLOCKING_CONTROL_BUFFER 4 +#define DXVA_INVERSE_QUANTIZATION_MATRIX_BUFFER 5 +#define DXVA_SLICE_CONTROL_BUFFER 6 +#define DXVA_BITSTREAM_DATA_BUFFER 7 +#define DXVA_AYUV_BUFFER 8 +#define DXVA_IA44_SURFACE_BUFFER 9 +#define DXVA_DPXD_SURFACE_BUFFER 10 +#define DXVA_HIGHLIGHT_BUFFER 11 +#define DXVA_DCCMD_SURFACE_BUFFER 12 +#define DXVA_ALPHA_BLEND_COMBINATION_BUFFER 13 +#define DXVA_PICTURE_RESAMPLE_BUFFER 14 +#define DXVA_READ_BACK_BUFFER 15 + +/* H.264/AVC Additional buffer types */ +#define DXVA_MOTION_VECTOR_BUFFER 16 +#define DXVA_FILM_GRAIN_BUFFER 17 + +#define DXVA_NUM_TYPES_COMP_BUFFERS 18 + +/* values for bDXVA_Func */ +#define DXVA_PICTURE_DECODING_FUNCTION 1 +#define DXVA_ALPHA_BLEND_DATA_LOAD_FUNCTION 2 +#define DXVA_ALPHA_BLEND_COMBINATION_FUNCTION 3 +#define DXVA_PICTURE_RESAMPLE_FUNCTION 4 +#define DXVA_DEBLOCKING_FILTER_FUNCTION 5 +#define DXVA_FILM_GRAIN_SYNTHESIS_FUNCTION 6 +#define DXVA_STATUS_REPORTING_FUNCTION 7 + +/* values returned from Execute command in absence of read-back */ +#define DXVA_EXECUTE_RETURN_OK 0 +#define DXVA_EXECUTE_RETURN_DATA_ERROR_MINOR 1 +#define DXVA_EXECUTE_RETURN_DATA_ERROR_SIGNIF 2 +#define DXVA_EXECUTE_RETURN_DATA_ERROR_SEVERE 3 +#define DXVA_EXECUTE_RETURN_OTHER_ERROR_SEVERE 4 + + +#pragma pack(push, BeforeDXVApacking, 1) + + +typedef struct _DXVA_ConnectMode { + GUID guidMode; + WORD wRestrictedMode; +} DXVA_ConnectMode, *LPDXVA_ConnectMode; + + +typedef DWORD DXVA_ConfigQueryOrReplyFunc, *LPDXVA_ConfigQueryOrReplyFunc; + +#define DXVA_QUERYORREPLYFUNCFLAG_DECODER_PROBE_QUERY 0xFFFFF1 +#define DXVA_QUERYORREPLYFUNCFLAG_DECODER_LOCK_QUERY 0xFFFFF5 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_OK_COPY 0xFFFFF8 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_OK_PLUS 0xFFFFF9 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_LOCK_OK_COPY 0xFFFFFC +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_FALSE_PLUS 0xFFFFFB +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_LOCK_FALSE_PLUS 0xFFFFFF + +#define readDXVA_QueryOrReplyFuncFlag(ptr) ((*(ptr)) >> 8) + +#define readDXVA_QueryOrReplyFuncFlag_ACCEL(ptr) (((*(ptr)) >> 11) & 1) +#define readDXVA_QueryOrReplyFuncFlag_LOCK(ptr) (((*(ptr)) >> 10) & 1) +#define readDXVA_QueryOrReplyFuncFlag_BAD(ptr) (((*(ptr)) >> 9) & 1) +#define readDXVA_QueryOrReplyFuncFlag_PLUS(ptr) (((*(ptr)) >> 8) & 1) + +#define readDXVA_QueryOrReplyFuncFunc(ptr) ((*(ptr)) & 0xFF) + +#define writeDXVA_QueryOrReplyFunc(ptr, flg, fnc) ((*(ptr)) = ((flg) << 8) | (fnc)) + +#define setDXVA_QueryOrReplyFuncFlag(ptr, flg) ((*(ptr)) |= ((flg) << 8)) +#define setDXVA_QueryOrReplyFuncFunc(ptr, fnc) ((*(ptr)) |= (fnc)); + +typedef DWORD DXVA_EncryptProtocolFunc, *LPDXVA_EncryptProtocolFunc; + +#define DXVA_ENCRYPTPROTOCOLFUNCFLAG_HOST 0xFFFF00 +#define DXVA_ENCRYPTPROTOCOLFUNCFLAG_ACCEL 0xFFFF08 + +#define readDXVA_EncryptProtocolFuncFlag(ptr) ((*(ptr)) >> 8) +#define readDXVA_EncryptProtocolFuncFlag_ACCEL(ptr) (((*(ptr)) >> 11) & 1) + +#define readDXVA_EncryptProtocolFuncFunc(ptr) ((*(ptr)) & 0xFF) + +#define writeDXVA_EncryptProtocolFunc(ptr, flg, fnc) ((*(ptr)) = ((flg) << 8) | (fnc)) + +#define setDXVA_EncryptProtocolFuncFlag(ptr, flg) ((*(ptr)) |= ((flg) << 8)) +#define setDXVA_EncryptProtocolFuncFunc(ptr, fnc) ((*(ptr)) |= (fnc)); + +typedef struct _DXVA_EncryptProtocolHeader { + DXVA_EncryptProtocolFunc dwFunction; + DWORD ReservedBits[3]; + GUID guidEncryptProtocol; +} DXVA_EncryptProtocolHeader, *LPDXVA_EncryptProtocolHeader; + +typedef struct _DXVA_ConfigPictureDecode { + + // Operation Indicated + DXVA_ConfigQueryOrReplyFunc dwFunction; + + // Alignment + DWORD dwReservedBits[3]; + + // Encryption GUIDs + GUID guidConfigBitstreamEncryption; + GUID guidConfigMBcontrolEncryption; + GUID guidConfigResidDiffEncryption; + + // Bitstream Processing Indicator + BYTE bConfigBitstreamRaw; + + // Macroblock Control Config + BYTE bConfigMBcontrolRasterOrder; + + // Host Resid Diff Config + BYTE bConfigResidDiffHost; + BYTE bConfigSpatialResid8; + BYTE bConfigResid8Subtraction; + BYTE bConfigSpatialHost8or9Clipping; + BYTE bConfigSpatialResidInterleaved; + BYTE bConfigIntraResidUnsigned; + + // Accelerator Resid Diff Config + BYTE bConfigResidDiffAccelerator; + BYTE bConfigHostInverseScan; + BYTE bConfigSpecificIDCT; + BYTE bConfig4GroupedCoefs; +} DXVA_ConfigPictureDecode, *LPDXVA_ConfigPictureDecode; + + +/* Picture Decoding Parameters */ + +typedef struct _DXVA_PictureParameters { + + WORD wDecodedPictureIndex; + WORD wDeblockedPictureIndex; + + WORD wForwardRefPictureIndex; + WORD wBackwardRefPictureIndex; + + WORD wPicWidthInMBminus1; + WORD wPicHeightInMBminus1; + + BYTE bMacroblockWidthMinus1; + BYTE bMacroblockHeightMinus1; + + BYTE bBlockWidthMinus1; + BYTE bBlockHeightMinus1; + + BYTE bBPPminus1; + + BYTE bPicStructure; + BYTE bSecondField; + BYTE bPicIntra; + BYTE bPicBackwardPrediction; + + BYTE bBidirectionalAveragingMode; + BYTE bMVprecisionAndChromaRelation; + BYTE bChromaFormat; + + BYTE bPicScanFixed; + BYTE bPicScanMethod; + BYTE bPicReadbackRequests; + + BYTE bRcontrol; + BYTE bPicSpatialResid8; + BYTE bPicOverflowBlocks; + BYTE bPicExtrapolation; + + BYTE bPicDeblocked; + BYTE bPicDeblockConfined; + BYTE bPic4MVallowed; + BYTE bPicOBMC; + BYTE bPicBinPB; + BYTE bMV_RPS; + + BYTE bReservedBits; + + WORD wBitstreamFcodes; + WORD wBitstreamPCEelements; + BYTE bBitstreamConcealmentNeed; + BYTE bBitstreamConcealmentMethod; + +} DXVA_PictureParameters, *LPDXVA_PictureParameters; + + + +/* Picture Resampling */ + +typedef struct _DXVA_PicResample { + + WORD wPicResampleSourcePicIndex; + WORD wPicResampleDestPicIndex; + + WORD wPicResampleRcontrol; + BYTE bPicResampleExtrapWidth; + BYTE bPicResampleExtrapHeight; + + DWORD dwPicResampleSourceWidth; + DWORD dwPicResampleSourceHeight; + + DWORD dwPicResampleDestWidth; + DWORD dwPicResampleDestHeight; + + DWORD dwPicResampleFullDestWidth; + DWORD dwPicResampleFullDestHeight; + +} DXVA_PicResample, *LPDXVA_PicResample; + + +#define DXVA_CHROMA_FORMAT_420 1 +#define DXVA_CHROMA_FORMAT_422 2 +#define DXVA_CHROMA_FORMAT_444 3 + +#define DXVA_PICTURE_STRUCTURE_TOP_FIELD 1 +#define DXVA_PICTURE_STRUCTURE_BOTTOM_FIELD 2 +#define DXVA_PICTURE_STRUCTURE_FRAME 3 + +#define DXVA_BIDIRECTIONAL_AVERAGING_MPEG2_ROUND 0 +#define DXVA_BIDIRECTIONAL_AVERAGING_H263_TRUNC 1 + +#define DXVA_MV_PRECISION_AND_CHROMA_RELATION_MPEG2 0 +#define DXVA_MV_PRECISION_AND_CHROMA_RELATION_H263 1 +#define DXVA_MV_PRECISION_AND_CHROMA_RELATION_H261 2 + +#define DXVA_SCAN_METHOD_ZIG_ZAG 0 +#define DXVA_SCAN_METHOD_ALTERNATE_VERTICAL 1 +#define DXVA_SCAN_METHOD_ALTERNATE_HORIZONTAL 2 +#define DXVA_SCAN_METHOD_ARBITRARY 3 + +#define DXVA_BITSTREAM_CONCEALMENT_NEED_UNLIKELY 0 +#define DXVA_BITSTREAM_CONCEALMENT_NEED_MILD 1 +#define DXVA_BITSTREAM_CONCEALMENT_NEED_LIKELY 2 +#define DXVA_BITSTREAM_CONCEALMENT_NEED_SEVERE 3 + +#define DXVA_BITSTREAM_CONCEALMENT_METHOD_UNSPECIFIED 0 +#define DXVA_BITSTREAM_CONCEALMENT_METHOD_INTRA 1 +#define DXVA_BITSTREAM_CONCEALMENT_METHOD_FORWARD 2 +#define DXVA_BITSTREAM_CONCEALMENT_METHOD_BACKWARD 3 + + +/* Buffer Description Data */ + +typedef struct _DXVA_BufferDescription { + DWORD dwTypeIndex; + DWORD dwBufferIndex; + DWORD dwDataOffset; + DWORD dwDataSize; + DWORD dwFirstMBaddress; + DWORD dwNumMBsInBuffer; + DWORD dwWidth; + DWORD dwHeight; + DWORD dwStride; + DWORD dwReservedBits; +} DXVA_BufferDescription, *LPDXVA_BufferDescription; + + +/* Off-Host IDCT Coefficient Data Structures */ + +typedef struct _DXVA_TCoef4Group { + BYTE TCoefIDX[4]; + SHORT TCoefValue[4]; +} DXVA_TCoef4Group, *LPDXVA_TCoef4Group; + +typedef struct _DXVA_TCoefSingle { + WORD wIndexWithEOB; + SHORT TCoefValue; +} DXVA_TCoefSingle, *LPDXVA_TCoefSingle; + +/* Macros for Reading EOB and Index Values */ + +#define readDXVA_TCoefSingleIDX(ptr) ((ptr)->wIndexWithEOB >> 1) +#define readDXVA_TCoefSingleEOB(ptr) ((ptr)->wIndexWithEOB & 1) + +/* Macro for Writing EOB and Index Values */ + +#define writeDXVA_TCoefSingleIndexWithEOB(ptr, idx, eob) ((ptr)->wIndexWithEOB = ((idx) << 1) | (eob)) +#define setDXVA_TCoefSingleIDX(ptr, idx) ((ptr)->wIndexWithEOB |= ((idx) << 1)) +#define setDXVA_TCoefSingleEOB(ptr) ((ptr)->wIndexWithEOB |= 1) + +/* Spatial-Domain Residual Difference Blocks */ + +#define DXVA_USUAL_BLOCK_WIDTH 8 +#define DXVA_USUAL_BLOCK_HEIGHT 8 +#define DXVA_USUAL_BLOCK_SIZE (DXVA_USUAL_BLOCK_WIDTH * DXVA_USUAL_BLOCK_HEIGHT) + +typedef SHORT DXVA_Sample16[DXVA_USUAL_BLOCK_SIZE]; +typedef signed char DXVA_Sample8 [DXVA_USUAL_BLOCK_SIZE]; + +/* Deblocking Filter Control Structure */ + +typedef BYTE DXVA_DeblockingEdgeControl; + +typedef DXVA_DeblockingEdgeControl * LPDXVA_DeblockingEdgeControl; + +/* Macros for Reading STRENGTH and FilterOn */ + +#define readDXVA_EdgeFilterStrength(ptr) ((*(ptr)) >> 1) +#define readDXVA_EdgeFilterOn(ptr) ((*(ptr)) & 1) + +/* Macro for Writing STRENGTH and FilterOn */ + +#define writeDXVA_DeblockingEdgeControl(ptr, str, fon) ((*(ptr)) = ((str) << 1) | (fon)) +#define setDXVA_EdgeFilterStrength(ptr, str) ((*(ptr)) |= ((str) << 1)) +#define setDXVA_EdgeFilterOn(ptr) ((*(ptr)) |= 1) + + +/* Macroblock Control Command Data Structures */ + +typedef struct _DXVA_MVvalue { + SHORT horz, vert; +} DXVA_MVvalue, *LPDXVA_MVvalue; + + +/* Inverse Quantization Matrices */ + +typedef struct _DXVA_QmatrixData { + BYTE bNewQmatrix[4]; /* intra Y, inter Y, intra chroma, inter chroma */ + WORD Qmatrix[4][DXVA_USUAL_BLOCK_WIDTH * DXVA_USUAL_BLOCK_HEIGHT]; +} DXVA_QmatrixData, *LPDXVA_QmatrixData; + + +/* Slice Control Buffer Data */ + +typedef struct _DXVA_SliceInfo { + WORD wHorizontalPosition; + WORD wVerticalPosition; + DWORD dwSliceBitsInBuffer; + DWORD dwSliceDataLocation; + BYTE bStartCodeBitOffset; + BYTE bReservedBits; + WORD wMBbitOffset; + WORD wNumberMBsInSlice; + WORD wQuantizerScaleCode; + WORD wBadSliceChopping; +} DXVA_SliceInfo, *LPDXVA_SliceInfo; + + +#define DXVA_NumMV_OBMC_off_BinPBwith4MV_off 4 +#define DXVA_NumMV_OBMC_off_BinPBwith4MV_on (4+1) +#define DXVA_NumMV_OBMC_on__BinPB_off (10) +#define DXVA_NumMV_OBMC_on__BinPB_on (11) /* not current standards */ + +#define DXVA_NumBlocksPerMB_420 (4+2+0) +#define DXVA_NumBlocksPerMB_422 (4+2+2) +#define DXVA_NumBlocksPerMB_444 (4+4+4) + +/* Basic form for I pictures */ +/* Host Residual Differences */ +typedef struct _DXVA_MBctrl_I_HostResidDiff_1 { + WORD wMBaddress; + WORD wMBtype; + DWORD dwMB_SNL; + WORD wPatternCode; + WORD wPC_Overflow; /* zero if not overflow format */ + DWORD dwReservedBits2; +} DXVA_MBctrl_I_HostResidDiff_1; + +/* Basic form for I pictures */ +/* Off-Host IDCT, 4:2:0 sampling */ +typedef struct _DXVA_MBctrl_I_OffHostIDCT_1 { + WORD wMBaddress; + WORD wMBtype; + DWORD dwMB_SNL; + WORD wPatternCode; + BYTE bNumCoef[DXVA_NumBlocksPerMB_420]; +} DXVA_MBctrl_I_OffHostIDCT_1; + +/* Basic form for P and B pictures */ +/* Should also be used for concealment MVs in MPEG-2 I pictures */ +/* Without OBMC, without BinPB and 4MV together, without MV RPS */ +/* Host Residual Differences */ +typedef struct _DXVA_MBctrl_P_HostResidDiff_1 { + WORD wMBaddress; + WORD wMBtype; + DWORD dwMB_SNL; + WORD wPatternCode; + WORD wPC_Overflow; /* zero if not overflow format */ + DWORD dwReservedBits2; + DXVA_MVvalue MVector[DXVA_NumMV_OBMC_off_BinPBwith4MV_off]; +} DXVA_MBctrl_P_HostResidDiff_1; + +/* Basic form for P and B pictures */ +/* Without OBMC, without BinPB and 4MV together, without MV RPS */ +/* Off-Host IDCT, 4:2:0 sampling */ +typedef struct _DXVA_MBctrl_P_OffHostIDCT_1 { + WORD wMBaddress; + WORD wMBtype; + DWORD dwMB_SNL; + WORD wPatternCode; + BYTE bNumCoef[DXVA_NumBlocksPerMB_420]; + DXVA_MVvalue MVector[DXVA_NumMV_OBMC_off_BinPBwith4MV_off]; +} DXVA_MBctrl_P_OffHostIDCT_1; + +/* How to load alpha blending graphic data */ +typedef struct _DXVA_ConfigAlphaLoad { + + // Operation Indicated + DXVA_ConfigQueryOrReplyFunc dwFunction; + + // Alignment + DWORD dwReservedBits[3]; + + BYTE bConfigDataType; +} DXVA_ConfigAlphaLoad, *LPDXVA_ConfigAlphaLoad; + +#define DXVA_CONFIG_DATA_TYPE_IA44 0 +#define DXVA_CONFIG_DATA_TYPE_AI44 1 +#define DXVA_CONFIG_DATA_TYPE_DPXD 2 +#define DXVA_CONFIG_DATA_TYPE_AYUV 3 + + +/* How to combine alpha blending graphic data */ +typedef struct _DXVA_ConfigAlphaCombine { + + // Operation Indicated + DXVA_ConfigQueryOrReplyFunc dwFunction; + + // Alignment + DWORD dwReservedBits[3]; + + BYTE bConfigBlendType; + BYTE bConfigPictureResizing; + BYTE bConfigOnlyUsePicDestRectArea; + BYTE bConfigGraphicResizing; + BYTE bConfigWholePlaneAlpha; + +} DXVA_ConfigAlphaCombine, *LPDXVA_ConfigAlphaCombine; + +#define DXVA_CONFIG_BLEND_TYPE_FRONT_BUFFER 0 +#define DXVA_CONFIG_BLEND_TYPE_BACK_HARDWARE 1 + + +/* AYUV sample for 16-entry YUV palette or graphic surface */ + +typedef struct _DXVA_AYUVsample2 { + BYTE bCrValue; + BYTE bCbValue; + BYTE bY_Value; + BYTE bSampleAlpha8; +} DXVA_AYUVsample2, *LPDXVA_AYUVsample2; + +/* Macros for IA44 alpha blending surface samples */ + +typedef BYTE DXVA_IA44sample, *LPDXVA_IA44sample; + +#define readDXVA_IA44index(ptr) (((*(ptr)) & 0xF0) >> 4) +#define readDXVA_IA44alpha(ptr) ((*(ptr)) & 0x0F) + +#define writeDXVA_IA44(ptr, idx, alpha) ((*(ptr)) = (((idx) << 4) | (alpha))) + +#define setDXVA_IA44index(ptr, idx) ((*(ptr)) |= ((idx) << 4)) +#define setDXVA_IA44alpha(ptr, alpha) ((*(ptr)) |= (alpha)) + +/* Macros for AI44 alpha blending surface samples */ + +typedef BYTE DXVA_AI44sample, *LPDXVA_AI44sample; + +#define readDXVA_AI44index(ptr) ((*(ptr)) & 0x0F) +#define readDXVA_AI44alpha(ptr) (((*(ptr)) & 0xF0) >> 4) + +#define writeDXVA_AI44(ptr, idx, alpha) ((*(ptr)) = (((alpha) << 4) | (idx))) + +#define setDXVA_AI44index(ptr, idx) ((*(ptr)) |= (idx)) +#define setDXVA_AI44alpha(ptr, alpha) ((*(ptr)) |= ((alpha) << 4)) + + +/* Highlight data structure */ + +typedef struct _DXVA_Highlight { + WORD wHighlightActive; + WORD wHighlightIndices; + WORD wHighlightAlphas; + RECT HighlightRect; +} DXVA_Highlight, *LPDXVA_Highlight; + +typedef BYTE DXVA_DPXD, *LPDXVA_DPXD; +typedef WORD DXVA_DCCMD, *LPDXVA_DCCMD; + +/* Alpha blend combination */ + +typedef struct _DXVA_BlendCombination { + WORD wPictureSourceIndex; + WORD wBlendedDestinationIndex; + RECT PictureSourceRect16thPel; + RECT PictureDestinationRect; + RECT GraphicSourceRect; + RECT GraphicDestinationRect; + WORD wBlendDelay; + BYTE bBlendOn; + BYTE bWholePlaneAlpha; + DXVA_AYUVsample2 OutsideYUVcolor; +} DXVA_BlendCombination, *LPDXVA_BlendCombination; + +/* H.264/AVC-specific structures */ + +/* H.264/AVC picture entry data structure */ +typedef struct _DXVA_PicEntry_H264 { + union { + struct { + UCHAR Index7Bits : 7; + UCHAR AssociatedFlag : 1; + }; + UCHAR bPicEntry; + }; +} DXVA_PicEntry_H264, *LPDXVA_PicEntry_H264; /* 1 byte */ + +/* H.264/AVC picture parameters structure */ +typedef struct _DXVA_PicParams_H264 { + USHORT wFrameWidthInMbsMinus1; + USHORT wFrameHeightInMbsMinus1; + DXVA_PicEntry_H264 CurrPic; /* flag is bot field flag */ + UCHAR num_ref_frames; + + union { + struct { + USHORT field_pic_flag : 1; + USHORT MbaffFrameFlag : 1; + USHORT residual_colour_transform_flag : 1; + USHORT sp_for_switch_flag : 1; + USHORT chroma_format_idc : 2; + USHORT RefPicFlag : 1; + USHORT constrained_intra_pred_flag : 1; + + USHORT weighted_pred_flag : 1; + USHORT weighted_bipred_idc : 2; + USHORT MbsConsecutiveFlag : 1; + USHORT frame_mbs_only_flag : 1; + USHORT transform_8x8_mode_flag : 1; + USHORT MinLumaBipredSize8x8Flag : 1; + USHORT IntraPicFlag : 1; + }; + USHORT wBitFields; + }; + UCHAR bit_depth_luma_minus8; + UCHAR bit_depth_chroma_minus8; + + USHORT Reserved16Bits; + UINT StatusReportFeedbackNumber; + + DXVA_PicEntry_H264 RefFrameList[16]; /* flag LT */ + INT CurrFieldOrderCnt[2]; + INT FieldOrderCntList[16][2]; + + CHAR pic_init_qs_minus26; + CHAR chroma_qp_index_offset; /* also used for QScb */ + CHAR second_chroma_qp_index_offset; /* also for QScr */ + UCHAR ContinuationFlag; + +/* remainder for parsing */ + CHAR pic_init_qp_minus26; + UCHAR num_ref_idx_l0_active_minus1; + UCHAR num_ref_idx_l1_active_minus1; + UCHAR Reserved8BitsA; + + USHORT FrameNumList[16]; + UINT UsedForReferenceFlags; + USHORT NonExistingFrameFlags; + USHORT frame_num; + + UCHAR log2_max_frame_num_minus4; + UCHAR pic_order_cnt_type; + UCHAR log2_max_pic_order_cnt_lsb_minus4; + UCHAR delta_pic_order_always_zero_flag; + + UCHAR direct_8x8_inference_flag; + UCHAR entropy_coding_mode_flag; + UCHAR pic_order_present_flag; + UCHAR num_slice_groups_minus1; + + UCHAR slice_group_map_type; + UCHAR deblocking_filter_control_present_flag; + UCHAR redundant_pic_cnt_present_flag; + UCHAR Reserved8BitsB; + + USHORT slice_group_change_rate_minus1; + + UCHAR SliceGroupMap[810]; /* 4b/sgmu, Size BT.601 */ + +} DXVA_PicParams_H264, *LPDXVA_PicParams_H264; + +/* H.264/AVC quantization weighting matrix data structure */ +typedef struct _DXVA_Qmatrix_H264 { + UCHAR bScalingLists4x4[6][16]; + UCHAR bScalingLists8x8[2][64]; + +} DXVA_Qmatrix_H264, *LPDXVA_Qmatrix_H264; + +/* H.264/AVC slice control data structure - short form */ +typedef struct _DXVA_Slice_H264_Short { + UINT BSNALunitDataLocation; /* type 1..5 */ + UINT SliceBytesInBuffer; /* for off-host parse */ + USHORT wBadSliceChopping; /* for off-host parse */ +} DXVA_Slice_H264_Short, *LPDXVA_Slice_H264_Short; + +/* H.264/AVC picture entry data structure - long form */ +typedef struct _DXVA_Slice_H264_Long { + UINT BSNALunitDataLocation; /* type 1..5 */ + UINT SliceBytesInBuffer; /* for off-host parse */ + USHORT wBadSliceChopping; /* for off-host parse */ + + USHORT first_mb_in_slice; + USHORT NumMbsForSlice; + + USHORT BitOffsetToSliceData; /* after CABAC alignment */ + + UCHAR slice_type; + UCHAR luma_log2_weight_denom; + UCHAR chroma_log2_weight_denom; + UCHAR num_ref_idx_l0_active_minus1; + UCHAR num_ref_idx_l1_active_minus1; + CHAR slice_alpha_c0_offset_div2; + CHAR slice_beta_offset_div2; + UCHAR Reserved8Bits; + DXVA_PicEntry_H264 RefPicList[2][32]; /* L0 & L1 */ + SHORT Weights[2][32][3][2]; /* L0 & L1; Y, Cb, Cr */ + CHAR slice_qs_delta; + /* rest off-host parse */ + CHAR slice_qp_delta; + UCHAR redundant_pic_cnt; + UCHAR direct_spatial_mv_pred_flag; + UCHAR cabac_init_idc; + UCHAR disable_deblocking_filter_idc; + USHORT slice_id; +} DXVA_Slice_H264_Long, *LPDXVA_Slice_H264_Long; + +/* H.264/AVC macroblock control command data structure */ +typedef struct _DXVA_MBctrl_H264 { + union { + struct { + UINT bSliceID : 8; /* 1 byte */ + UINT MbType5Bits : 5; + UINT IntraMbFlag : 1; + UINT mb_field_decoding_flag : 1; + UINT transform_size_8x8_flag : 1; /* 2 bytes */ + UINT HostResidDiff : 1; + UINT DcBlockCodedCrFlag : 1; + UINT DcBlockCodedCbFlag : 1; + UINT DcBlockCodedYFlag : 1; + UINT FilterInternalEdgesFlag : 1; + UINT FilterLeftMbEdgeFlag : 1; + UINT FilterTopMbEdgeFlag : 1; + UINT ReservedBit : 1; + UINT bMvQuantity : 8; /* 4 bytes */ + }; + UINT dwMBtype; /* 4 bytes so far */ + }; + USHORT CurrMbAddr; /* 6 bytes so far */ + USHORT wPatternCode[3];/* YCbCr, 16 4x4 blks, 1b each */ + /* 12 bytes so far */ + UCHAR bQpPrime[3]; /* Y, Cb, Cr, need just 7b QpY */ + UCHAR bMBresidDataQuantity; + ULONG dwMBdataLocation; /* offset into resid buffer */ + /* 20 bytes so far */ + union { + struct { +/* start here for Intra MB's (9 useful bytes in branch) */ + USHORT LumaIntraPredModes[4];/* 16 blocks, 4b each */ + /* 28 bytes so far */ + union { + struct { + UCHAR intra_chroma_pred_mode : 2; + UCHAR IntraPredAvailFlags : 5; + UCHAR ReservedIntraBit : 1; + }; + UCHAR bMbIntraStruct; /* 29 bytes so far */ + }; + UCHAR ReservedIntra24Bits[3]; /* 32 bytes total */ + }; + struct { +/* start here for non-Intra MB's (12 bytes in branch) */ + UCHAR bSubMbShapes; /* 4 subMbs, 2b each */ + UCHAR bSubMbPredModes; /* 4 subMBs, 2b each */ + /* 22 bytes so far */ + USHORT wMvBuffOffset; /* offset into MV buffer */ + UCHAR bRefPicSelect[2][4]; /* 32 bytes total */ + }; + }; +} DXVA_MBctrl_H264, *LPDXVA_MBctrl_H264; + +/* H.264/AVC IndexA and IndexB data structure */ +typedef struct _DXVA_DeblockIndexAB_H264 { + UCHAR bIndexAinternal; /* 6b - could get from MB CC */ + UCHAR bIndexBinternal; /* 6b - could get from MB CC */ + + UCHAR bIndexAleft0; + UCHAR bIndexBleft0; + + UCHAR bIndexAleft1; + UCHAR bIndexBleft1; + + UCHAR bIndexAtop0; + UCHAR bIndexBtop0; + + UCHAR bIndexAtop1; + UCHAR bIndexBtop1; +} DXVA_DeblockIndexAB_H264, *LPDXVA_DeblockIndexAB_H264; + /* 10 bytes in struct */ + +/* H.264/AVC deblocking filter control data structure */ +typedef struct _DXVA_Deblock_H264 { + USHORT CurrMbAddr; /* dup info */ /* 2 bytes so far */ + union { + struct { + UCHAR ReservedBit : 1; + UCHAR FieldModeCurrentMbFlag : 1; /* dup info */ + UCHAR FieldModeLeftMbFlag : 1; + UCHAR FieldModeAboveMbFlag : 1; + UCHAR FilterInternal8x8EdgesFlag : 1; + UCHAR FilterInternal4x4EdgesFlag : 1; + UCHAR FilterLeftMbEdgeFlag : 1; + UCHAR FilterTopMbEdgeFlag : 1; + }; + UCHAR FirstByte; + }; + UCHAR Reserved8Bits; /* 4 bytes so far */ + + UCHAR bbSinternalLeftVert; /* 2 bits per bS */ + UCHAR bbSinternalMidVert; + + UCHAR bbSinternalRightVert; + UCHAR bbSinternalTopHorz; /* 8 bytes so far */ + + UCHAR bbSinternalMidHorz; + UCHAR bbSinternalBotHorz; /* 10 bytes so far */ + + USHORT wbSLeft0; /* 4 bits per bS (1 wasted) */ + USHORT wbSLeft1; /* 4 bits per bS (1 wasted) */ + + USHORT wbSTop0; /* 4 bits per bS (1 wasted) */ + USHORT wbSTop1; /* 4b (2 wasted) 18 bytes so far*/ + + DXVA_DeblockIndexAB_H264 IndexAB[3]; /* Y, Cb, Cr */ + +} DXVA_Deblock_H264, *LPDXVA_Deblock_H264;/* 48 bytes */ + +/* H.264/AVC film grain characteristics data structure */ +typedef struct _DXVA_FilmGrainCharacteristics { + + USHORT wFrameWidthInMbsMinus1; + USHORT wFrameHeightInMbsMinus1; + + DXVA_PicEntry_H264 InPic; /* flag is bot field flag */ + DXVA_PicEntry_H264 OutPic; /* flag is field pic flag */ + + USHORT PicOrderCnt_offset; + INT CurrPicOrderCnt; + UINT StatusReportFeedbackNumber; + + UCHAR model_id; + UCHAR separate_colour_description_present_flag; + UCHAR film_grain_bit_depth_luma_minus8; + UCHAR film_grain_bit_depth_chroma_minus8; + + UCHAR film_grain_full_range_flag; + UCHAR film_grain_colour_primaries; + UCHAR film_grain_transfer_characteristics; + UCHAR film_grain_matrix_coefficients; + + UCHAR blending_mode_id; + UCHAR log2_scale_factor; + + UCHAR comp_model_present_flag[4]; + UCHAR num_intensity_intervals_minus1[4]; + UCHAR num_model_values_minus1[4]; + + UCHAR intensity_interval_lower_bound[3][16]; + UCHAR intensity_interval_upper_bound[3][16]; + SHORT comp_model_value[3][16][8]; +} DXVA_FilmGrainChar_H264, *LPDXVA_FilmGrainChar_H264; + +/* H.264/AVC status reporting data structure */ +typedef struct _DXVA_Status_H264 { + UINT StatusReportFeedbackNumber; + DXVA_PicEntry_H264 CurrPic; /* flag is bot field flag */ + UCHAR field_pic_flag; + UCHAR bDXVA_Func; + UCHAR bBufType; + UCHAR bStatus; + UCHAR bReserved8Bits; + USHORT wNumMbsAffected; +} DXVA_Status_H264, *LPDXVA_Status_H264; + +/* H.264 MVC picture parameters structure */ +typedef struct _DXVA_PicParams_H264_MVC { + USHORT wFrameWidthInMbsMinus1; + USHORT wFrameHeightInMbsMinus1; + DXVA_PicEntry_H264 CurrPic; /* flag is bot field flag */ + UCHAR num_ref_frames; + + union { + struct { + USHORT field_pic_flag : 1; + USHORT MbaffFrameFlag : 1; + USHORT residual_colour_transform_flag : 1; + USHORT sp_for_switch_flag : 1; + USHORT chroma_format_idc : 2; + USHORT RefPicFlag : 1; + USHORT constrained_intra_pred_flag : 1; + + USHORT weighted_pred_flag : 1; + USHORT weighted_bipred_idc : 2; + USHORT MbsConsecutiveFlag : 1; + USHORT frame_mbs_only_flag : 1; + USHORT transform_8x8_mode_flag : 1; + USHORT MinLumaBipredSize8x8Flag : 1; + USHORT IntraPicFlag : 1; + }; + USHORT wBitFields; + }; + UCHAR bit_depth_luma_minus8; + UCHAR bit_depth_chroma_minus8; + + USHORT Reserved16Bits; + UINT StatusReportFeedbackNumber; + + DXVA_PicEntry_H264 RefFrameList[16]; /* flag LT */ + INT CurrFieldOrderCnt[2]; + INT FieldOrderCntList[16][2]; + + CHAR pic_init_qs_minus26; + CHAR chroma_qp_index_offset; /* also used for QScb */ + CHAR second_chroma_qp_index_offset; /* also for QScr */ + UCHAR ContinuationFlag; + +/* remainder for parsing */ + CHAR pic_init_qp_minus26; + UCHAR num_ref_idx_l0_active_minus1; + UCHAR num_ref_idx_l1_active_minus1; + UCHAR Reserved8BitsA; + + USHORT FrameNumList[16]; + UINT UsedForReferenceFlags; + USHORT NonExistingFrameFlags; + USHORT frame_num; + + UCHAR log2_max_frame_num_minus4; + UCHAR pic_order_cnt_type; + UCHAR log2_max_pic_order_cnt_lsb_minus4; + UCHAR delta_pic_order_always_zero_flag; + + UCHAR direct_8x8_inference_flag; + UCHAR entropy_coding_mode_flag; + UCHAR pic_order_present_flag; + UCHAR num_slice_groups_minus1; + + UCHAR slice_group_map_type; + UCHAR deblocking_filter_control_present_flag; + UCHAR redundant_pic_cnt_present_flag; + UCHAR Reserved8BitsB; + + USHORT slice_group_change_rate_minus1; + /* SliceGroupMap is not needed for MVC, as MVC is for high profile only */ + + /* Following are H.264 MVC Specific parameters */ + UCHAR num_views_minus1; + USHORT view_id[16]; + UCHAR num_anchor_refs_l0[16]; + USHORT anchor_ref_l0[16][16]; + UCHAR num_anchor_refs_l1[16]; + USHORT anchor_ref_l1[16][16]; + UCHAR num_non_anchor_refs_l0[16]; + USHORT non_anchor_ref_l0[16][16]; + UCHAR num_non_anchor_refs_l1[16]; + USHORT non_anchor_ref_l1[16][16]; + + USHORT curr_view_id; + UCHAR anchor_pic_flag; + UCHAR inter_view_flag; + USHORT ViewIDList[16]; + +} DXVA_PicParams_H264_MVC, *LPDXVA_PicParams_H264_MVC; + +/* VC-1 status reporting data structure */ +typedef struct _DXVA_Status_VC1 { + USHORT StatusReportFeedbackNumber; + WORD wDecodedPictureIndex; + WORD wDeblockedPictureIndex; + UCHAR bPicStructure; + UCHAR bBufType; + UCHAR bStatus; + UCHAR bReserved8Bits; + USHORT wNumMbsAffected; +} DXVA_Status_VC1, *LPDXVA_Status_VC1; + + +/* MPEG4PT2 Picture Parameter structure */ +typedef struct _DXVA_PicParams_MPEG4_PART2 { + UCHAR short_video_header; + UCHAR vop_coding_type; + UCHAR vop_quant; + WORD wDecodedPictureIndex; + WORD wDeblockedPictureIndex; + WORD wForwardRefPictureIndex; + WORD wBackwardRefPictureIndex; + USHORT vop_time_increment_resolution; + UINT TRB[2]; + UINT TRD[2]; + + union { + struct { + USHORT unPicPostProc : 2; + USHORT interlaced : 1; + USHORT quant_type : 1; + USHORT quarter_sample : 1; + USHORT resync_marker_disable : 1; + USHORT data_partitioned : 1; + USHORT reversible_vlc : 1; + USHORT reduced_resolution_vop_enable : 1; + USHORT vop_coded : 1; + USHORT vop_rounding_type : 1; + USHORT intra_dc_vlc_thr : 3; + USHORT top_field_first : 1; + USHORT alternate_vertical_scan_flag : 1; + }; + USHORT wPicFlagBitFields; + }; + UCHAR profile_and_level_indication; + UCHAR video_object_layer_verid; + WORD vop_width; + WORD vop_height; + union { + struct { + USHORT sprite_enable : 2; + USHORT no_of_sprite_warping_points : 6; + USHORT sprite_warping_accuracy : 2; + }; + USHORT wSpriteBitFields; + }; + SHORT warping_mv[4][2]; + union { + struct { + UCHAR vop_fcode_forward : 3; + UCHAR vop_fcode_backward : 3; + }; + UCHAR wFcodeBitFields; + }; + USHORT StatusReportFeedbackNumber; + USHORT Reserved16BitsA; + USHORT Reserved16BitsB; +} DXVA_PicParams_MPEG4_PART2, *LPDXVA_PicParams_MPEG4_PART2; + + +/* HEVC Picture Entry structure */ +typedef struct _DXVA_PicEntry_HEVC +{ + union + { + struct + { + UCHAR Index7Bits : 7; + UCHAR AssociatedFlag : 1; + }; + UCHAR bPicEntry; + }; +} DXVA_PicEntry_HEVC, *LPDXVA_PicEntry_HEVC; + +/* HEVC Picture Parameter structure */ +typedef struct _DXVA_PicParams_HEVC { + USHORT PicWidthInMinCbsY; + USHORT PicHeightInMinCbsY; + union { + struct { + USHORT chroma_format_idc : 2; + USHORT separate_colour_plane_flag : 1; + USHORT bit_depth_luma_minus8 : 3; + USHORT bit_depth_chroma_minus8 : 3; + USHORT log2_max_pic_order_cnt_lsb_minus4 : 4; + USHORT NoPicReorderingFlag : 1; + USHORT NoBiPredFlag : 1; + USHORT ReservedBits1 : 1; + }; + USHORT wFormatAndSequenceInfoFlags; + }; + DXVA_PicEntry_HEVC CurrPic; + UCHAR sps_max_dec_pic_buffering_minus1; + UCHAR log2_min_luma_coding_block_size_minus3; + UCHAR log2_diff_max_min_luma_coding_block_size; + UCHAR log2_min_transform_block_size_minus2; + UCHAR log2_diff_max_min_transform_block_size; + UCHAR max_transform_hierarchy_depth_inter; + UCHAR max_transform_hierarchy_depth_intra; + UCHAR num_short_term_ref_pic_sets; + UCHAR num_long_term_ref_pics_sps; + UCHAR num_ref_idx_l0_default_active_minus1; + UCHAR num_ref_idx_l1_default_active_minus1; + CHAR init_qp_minus26; + UCHAR ucNumDeltaPocsOfRefRpsIdx; + USHORT wNumBitsForShortTermRPSInSlice; + USHORT ReservedBits2; + + union { + struct { + UINT32 scaling_list_enabled_flag : 1; + UINT32 amp_enabled_flag : 1; + UINT32 sample_adaptive_offset_enabled_flag : 1; + UINT32 pcm_enabled_flag : 1; + UINT32 pcm_sample_bit_depth_luma_minus1 : 4; + UINT32 pcm_sample_bit_depth_chroma_minus1 : 4; + UINT32 log2_min_pcm_luma_coding_block_size_minus3 : 2; + UINT32 log2_diff_max_min_pcm_luma_coding_block_size : 2; + UINT32 pcm_loop_filter_disabled_flag : 1; + UINT32 long_term_ref_pics_present_flag : 1; + UINT32 sps_temporal_mvp_enabled_flag : 1; + UINT32 strong_intra_smoothing_enabled_flag : 1; + UINT32 dependent_slice_segments_enabled_flag : 1; + UINT32 output_flag_present_flag : 1; + UINT32 num_extra_slice_header_bits : 3; + UINT32 sign_data_hiding_enabled_flag : 1; + UINT32 cabac_init_present_flag : 1; + UINT32 ReservedBits3 : 5; + }; + UINT32 dwCodingParamToolFlags; + }; + + union { + struct { + UINT32 constrained_intra_pred_flag : 1; + UINT32 transform_skip_enabled_flag : 1; + UINT32 cu_qp_delta_enabled_flag : 1; + UINT32 pps_slice_chroma_qp_offsets_present_flag : 1; + UINT32 weighted_pred_flag : 1; + UINT32 weighted_bipred_flag : 1; + UINT32 transquant_bypass_enabled_flag : 1; + UINT32 tiles_enabled_flag : 1; + UINT32 entropy_coding_sync_enabled_flag : 1; + UINT32 uniform_spacing_flag : 1; + UINT32 loop_filter_across_tiles_enabled_flag : 1; + UINT32 pps_loop_filter_across_slices_enabled_flag : 1; + UINT32 deblocking_filter_override_enabled_flag : 1; + UINT32 pps_deblocking_filter_disabled_flag : 1; + UINT32 lists_modification_present_flag : 1; + UINT32 slice_segment_header_extension_present_flag : 1; + UINT32 IrapPicFlag : 1; + UINT32 IdrPicFlag : 1; + UINT32 IntraPicFlag : 1; + UINT32 ReservedBits4 : 13; + }; + UINT32 dwCodingSettingPicturePropertyFlags; + }; + CHAR pps_cb_qp_offset; + CHAR pps_cr_qp_offset; + UCHAR num_tile_columns_minus1; + UCHAR num_tile_rows_minus1; + USHORT column_width_minus1[19]; + USHORT row_height_minus1[21]; + UCHAR diff_cu_qp_delta_depth; + CHAR pps_beta_offset_div2; + CHAR pps_tc_offset_div2; + UCHAR log2_parallel_merge_level_minus2; + INT CurrPicOrderCntVal; + DXVA_PicEntry_HEVC RefPicList[15]; + UCHAR ReservedBits5; + INT PicOrderCntValList[15]; + UCHAR RefPicSetStCurrBefore[8]; + UCHAR RefPicSetStCurrAfter[8]; + UCHAR RefPicSetLtCurr[8]; + USHORT ReservedBits6; + USHORT ReservedBits7; + UINT StatusReportFeedbackNumber; +} DXVA_PicParams_HEVC, *LPDXVA_PicParams_HEVC; + +/* HEVC Picture Parameter structure for Range Extensions */ +typedef struct _DXVA_PicParams_HEVC_RangeExt { + DXVA_PicParams_HEVC params; + + union { + struct { + USHORT transform_skip_rotation_enabled_flag : 1; + USHORT transform_skip_context_enabled_flag : 1; + USHORT implicit_rdpcm_enabled_flag : 1; + USHORT explicit_rdpcm_enabled_flag : 1; + USHORT extended_precision_processing_flag : 1; + USHORT intra_smoothing_disabled_flag : 1; + USHORT persistent_rice_adaptation_enabled_flag : 1; + USHORT high_precision_offsets_enabled_flag : 1; + USHORT cabac_bypass_alignment_enabled_flag : 1; + USHORT cross_component_prediction_enabled_flag : 1; + USHORT chroma_qp_offset_list_enabled_flag : 1; + USHORT ReservedBits8 : 5; + }; + USHORT dwRangeExtensionFlags; + }; + + UCHAR diff_cu_chroma_qp_offset_depth; + UCHAR log2_sao_offset_scale_luma; + UCHAR log2_sao_offset_scale_chroma; + UCHAR log2_max_transform_skip_block_size_minus2; + CHAR cb_qp_offset_list[6]; + CHAR cr_qp_offset_list[6]; + UCHAR chroma_qp_offset_list_len_minus1; + USHORT ReservedBits9; + +} DXVA_PicParams_HEVC_RangeExt, *LPDXVA_PicParams_HEVC_RangeExt; + +/* HEVC Quantizatiuon Matrix structure */ +typedef struct _DXVA_Qmatrix_HEVC +{ + UCHAR ucScalingLists0[6][16]; + UCHAR ucScalingLists1[6][64]; + UCHAR ucScalingLists2[6][64]; + UCHAR ucScalingLists3[2][64]; + UCHAR ucScalingListDCCoefSizeID2[6]; + UCHAR ucScalingListDCCoefSizeID3[2]; +} DXVA_Qmatrix_HEVC, *LPDXVA_Qmatrix_HEVC; + + +/* HEVC Slice Control Structure */ +typedef struct _DXVA_Slice_HEVC_Short +{ + UINT BSNALunitDataLocation; + UINT SliceBytesInBuffer; + USHORT wBadSliceChopping; +} DXVA_Slice_HEVC_Short, *LPDXVA_Slice_HEVC_Short; + +/* H.265/HEVC status reporting data structure */ +typedef struct _DXVA_Status_HEVC { + USHORT StatusReportFeedbackNumber; + DXVA_PicEntry_HEVC CurrPic; + UCHAR bBufType; + UCHAR bStatus; + UCHAR bReserved8Bits; + USHORT wNumMbsAffected; +} DXVA_Status_HEVC, *LPDXVA_Status_HEVC; + +#pragma pack(push, 16) + + +typedef DXVA_MBctrl_I_HostResidDiff_1 * + LPDXVA_MBctrl_I_HostResidDiff_1; + +typedef DXVA_MBctrl_I_OffHostIDCT_1 * + LPDXVA_MBctrl_I_OffHostIDCT_1; + +typedef DXVA_MBctrl_P_HostResidDiff_1 * + LPDXVA_MBctrl_P_HostResidDiff_1; + +typedef DXVA_MBctrl_P_OffHostIDCT_1 * + LPDXVA_MBctrl_P_OffHostIDCT_1; + + +#pragma pack(pop) + +/* VPx-specific structures */ + +/* VPx picture entry data structure */ +typedef struct _DXVA_PicEntry_VPx { + union { + struct { + UCHAR Index7Bits : 7; + UCHAR AssociatedFlag : 1; + }; + UCHAR bPicEntry; + }; +} DXVA_PicEntry_VPx, *LPDXVA_PicEntry_VPx; + +/* VP9 segmentation structure */ +typedef struct _segmentation_VP9 { + union { + struct { + UCHAR enabled : 1; + UCHAR update_map : 1; + UCHAR temporal_update : 1; + UCHAR abs_delta : 1; + UCHAR ReservedSegmentFlags4Bits : 4; + }; + UCHAR wSegmentInfoFlags; + }; + UCHAR tree_probs[7]; + UCHAR pred_probs[3]; + SHORT feature_data[8][4]; + UCHAR feature_mask[8]; +} DXVA_segmentation_VP9; + +/* VP9 picture parameters structure */ +typedef struct _DXVA_PicParams_VP9 { + DXVA_PicEntry_VPx CurrPic; + UCHAR profile; + union { + struct { + USHORT frame_type : 1; + USHORT show_frame : 1; + USHORT error_resilient_mode : 1; + USHORT subsampling_x : 1; + USHORT subsampling_y : 1; + USHORT extra_plane : 1; + USHORT refresh_frame_context : 1; + USHORT frame_parallel_decoding_mode : 1; + USHORT intra_only : 1; + USHORT frame_context_idx : 2; + USHORT reset_frame_context : 2; + USHORT allow_high_precision_mv : 1; + USHORT ReservedFormatInfo2Bits : 2; + }; + USHORT wFormatAndPictureInfoFlags; + }; + UINT width; + UINT height; + UCHAR BitDepthMinus8Luma; + UCHAR BitDepthMinus8Chroma; + UCHAR interp_filter; + UCHAR Reserved8Bits; + DXVA_PicEntry_VPx ref_frame_map[8]; + UINT ref_frame_coded_width[8]; + UINT ref_frame_coded_height[8]; + DXVA_PicEntry_VPx frame_refs[3]; + CHAR ref_frame_sign_bias[4]; + CHAR filter_level; + CHAR sharpness_level; + union { + struct { + UCHAR mode_ref_delta_enabled : 1; + UCHAR mode_ref_delta_update : 1; + UCHAR use_prev_in_find_mv_refs : 1; + UCHAR ReservedControlInfo5Bits : 5; + }; + UCHAR wControlInfoFlags; + }; + CHAR ref_deltas[4]; + CHAR mode_deltas[2]; + SHORT base_qindex; + CHAR y_dc_delta_q; + CHAR uv_dc_delta_q; + CHAR uv_ac_delta_q; + DXVA_segmentation_VP9 stVP9Segments; + UCHAR log2_tile_cols; + UCHAR log2_tile_rows; + USHORT uncompressed_header_size_byte_aligned; + USHORT first_partition_size; + USHORT Reserved16Bits; + UINT Reserved32Bits; + UINT StatusReportFeedbackNumber; +} DXVA_PicParams_VP9, *LPDXVA_PicParams_VP9; + +/* VP8 segmentation structure */ +typedef struct _segmentation_VP8 { + union { + struct { + UCHAR segmentation_enabled : 1; + UCHAR update_mb_segmentation_map : 1; + UCHAR update_mb_segmentation_data : 1; + UCHAR mb_segement_abs_delta : 1; + UCHAR ReservedSegmentFlags4Bits : 4; + }; + UCHAR wSegmentFlags; + }; + CHAR segment_feature_data[2][4]; + UCHAR mb_segment_tree_probs[3]; +} DXVA_segmentation_VP8; + +/* VP8 picture parameters structure */ +typedef struct _DXVA_PicParams_VP8 { + UINT first_part_size; + UINT width; + UINT height; + DXVA_PicEntry_VPx CurrPic; + union { + struct { + UCHAR frame_type : 1; + UCHAR version : 3; + UCHAR show_frame : 1; + UCHAR clamp_type : 1; + UCHAR ReservedFrameTag3Bits : 2; + }; + UCHAR wFrameTagFlags; + }; + DXVA_segmentation_VP8 stVP8Segments; + UCHAR filter_type; + UCHAR filter_level; + UCHAR sharpness_level; + UCHAR mode_ref_lf_delta_enabled; + UCHAR mode_ref_lf_delta_update; + CHAR ref_lf_deltas[4]; + CHAR mode_lf_deltas[4]; + UCHAR log2_nbr_of_dct_partitions; + UCHAR base_qindex; + CHAR y1dc_delta_q; + CHAR y2dc_delta_q; + CHAR y2ac_delta_q; + CHAR uvdc_delta_q; + CHAR uvac_delta_q; + DXVA_PicEntry_VPx alt_fb_idx; + DXVA_PicEntry_VPx gld_fb_idx; + DXVA_PicEntry_VPx lst_fb_idx; + UCHAR ref_frame_sign_bias_golden; + UCHAR ref_frame_sign_bias_altref; + UCHAR refresh_entropy_probs; + UCHAR vp8_coef_update_probs[4][8][3][11]; + UCHAR mb_no_coeff_skip; + UCHAR prob_skip_false; + UCHAR prob_intra; + UCHAR prob_last; + UCHAR prob_golden; + UCHAR intra_16x16_prob[4]; + UCHAR intra_chroma_prob[3]; + UCHAR vp8_mv_update_probs[2][19]; + USHORT ReservedBits1; + USHORT ReservedBits2; + USHORT ReservedBits3; + UINT StatusReportFeedbackNumber; +} DXVA_PicParams_VP8, *LPDXVA_PicParams_VP8; + +/* VPx slice control data structure - short form */ +typedef struct _DXVA_Slice_VPx_Short { + UINT BSNALunitDataLocation; + UINT SliceBytesInBuffer; + USHORT wBadSliceChopping; +} DXVA_Slice_VPx_Short, *LPDXVA_Slice_VPx_Short; + +/* VPx status reporting data structure */ +typedef struct _DXVA_Status_VPx { + UINT StatusReportFeedbackNumber; + DXVA_PicEntry_VPx CurrPic; + UCHAR bBufType; + UCHAR bStatus; + UCHAR bReserved8Bits; + USHORT wNumMbsAffected; +} DXVA_Status_VPx, *LPDXVA_Status_VPx; + +/* AV1 specific structures */ + +#ifndef _DIRECTX_AV1_VA_ +#define _DIRECTX_AV1_VA_ + +/* AV1 picture entry data structure */ +typedef struct _DXVA_PicEntry_AV1 { + + UINT width; + UINT height; + + // Global motion parameters + INT wmmat[6]; + union { + struct { + UCHAR wminvalid : 1; + UCHAR wmtype : 2; + UCHAR Reserved : 5; + }; + UCHAR GlobalMotionFlags; + } DUMMYUNIONNAME; + + UCHAR Index; + UINT16 Reserved16Bits; + +} DXVA_PicEntry_AV1, *LPDXVA_PicEntry_AV1; + +/* AV1 picture parameters structure */ +typedef struct _DXVA_PicParams_AV1 { + UINT width; + UINT height; + + UINT max_width; + UINT max_height; + + UCHAR CurrPicTextureIndex; + UCHAR superres_denom; + UCHAR bitdepth; + UCHAR seq_profile; + + // Tiles: + struct { + UCHAR cols; + UCHAR rows; + USHORT context_update_id; + USHORT widths[64]; + USHORT heights[64]; + } tiles; + + // Coding Tools + union { + struct { + UINT use_128x128_superblock : 1; + UINT intra_edge_filter : 1; + UINT interintra_compound : 1; + UINT masked_compound : 1; + UINT warped_motion : 1; + UINT dual_filter : 1; + UINT jnt_comp : 1; + UINT screen_content_tools : 1; + UINT integer_mv : 1; + UINT cdef : 1; + UINT restoration : 1; + UINT film_grain : 1; + UINT intrabc : 1; + UINT high_precision_mv : 1; + UINT switchable_motion_mode : 1; + UINT filter_intra : 1; + UINT disable_frame_end_update_cdf : 1; + UINT disable_cdf_update : 1; + UINT reference_mode : 1; + UINT skip_mode : 1; + UINT reduced_tx_set : 1; + UINT superres : 1; + UINT tx_mode : 2; + UINT use_ref_frame_mvs : 1; + UINT enable_ref_frame_mvs : 1; + UINT reference_frame_update : 1; + UINT Reserved : 5; + }; + UINT32 CodingParamToolFlags; + } coding; + + // Format & Picture Info flags + union { + struct { + UCHAR frame_type : 2; + UCHAR show_frame : 1; + UCHAR showable_frame : 1; + UCHAR subsampling_x : 1; + UCHAR subsampling_y : 1; + UCHAR mono_chrome : 1; + UCHAR Reserved : 1; + }; + UCHAR FormatAndPictureInfoFlags; + } format; + + // References + UCHAR primary_ref_frame; + UCHAR order_hint; + UCHAR order_hint_bits; + + DXVA_PicEntry_AV1 frame_refs[7]; + UCHAR RefFrameMapTextureIndex[8]; + + // Loop filter parameters + struct { + UCHAR filter_level[2]; + UCHAR filter_level_u; + UCHAR filter_level_v; + + UCHAR sharpness_level; + union { + struct { + UCHAR mode_ref_delta_enabled : 1; + UCHAR mode_ref_delta_update : 1; + UCHAR delta_lf_multi : 1; + UCHAR delta_lf_present : 1; + UCHAR Reserved : 4; + }; + UCHAR ControlFlags; + } DUMMYUNIONNAME; + CHAR ref_deltas[8]; + CHAR mode_deltas[2]; + UCHAR delta_lf_res; + UCHAR frame_restoration_type[3]; + USHORT log2_restoration_unit_size[3]; + UINT16 Reserved16Bits; + } loop_filter; + + // Quantization + struct { + union { + struct { + UCHAR delta_q_present : 1; + UCHAR delta_q_res : 2; + UCHAR Reserved : 5; + }; + UCHAR ControlFlags; + } DUMMYUNIONNAME; + + UCHAR base_qindex; + CHAR y_dc_delta_q; + CHAR u_dc_delta_q; + CHAR v_dc_delta_q; + CHAR u_ac_delta_q; + CHAR v_ac_delta_q; + // using_qmatrix: + UCHAR qm_y; + UCHAR qm_u; + UCHAR qm_v; + UINT16 Reserved16Bits; + } quantization; + + // Cdef parameters + struct { + union { + struct { + UCHAR damping : 2; + UCHAR bits : 2; + UCHAR Reserved : 4; + }; + UCHAR ControlFlags; + } DUMMYUNIONNAME; + + union { + struct { + UCHAR primary : 6; + UCHAR secondary : 2; + }; + UCHAR combined; + } y_strengths[8]; + + union { + struct { + UCHAR primary : 6; + UCHAR secondary : 2; + }; + UCHAR combined; + } uv_strengths[8]; + + } cdef; + + UCHAR interp_filter; + + // Segmentation + struct { + union { + struct { + UCHAR enabled : 1; + UCHAR update_map : 1; + UCHAR update_data : 1; + UCHAR temporal_update : 1; + UCHAR Reserved : 4; + }; + UCHAR ControlFlags; + } DUMMYUNIONNAME; + UCHAR Reserved24Bits[3]; + + union { + struct { + UCHAR alt_q : 1; + UCHAR alt_lf_y_v : 1; + UCHAR alt_lf_y_h : 1; + UCHAR alt_lf_u : 1; + UCHAR alt_lf_v : 1; + UCHAR ref_frame : 1; + UCHAR skip : 1; + UCHAR globalmv : 1; + }; + UCHAR mask; + } feature_mask[8]; + + SHORT feature_data[8][8]; + + } segmentation; + + struct { + union { + struct { + USHORT apply_grain : 1; + USHORT scaling_shift_minus8 : 2; + USHORT chroma_scaling_from_luma : 1; + USHORT ar_coeff_lag : 2; + USHORT ar_coeff_shift_minus6 : 2; + USHORT grain_scale_shift : 2; + USHORT overlap_flag : 1; + USHORT clip_to_restricted_range : 1; + USHORT matrix_coeff_is_identity : 1; + USHORT Reserved : 3; + }; + USHORT ControlFlags; + } DUMMYUNIONNAME; + + USHORT grain_seed; + UCHAR scaling_points_y[14][2]; + UCHAR num_y_points; + UCHAR scaling_points_cb[10][2]; + UCHAR num_cb_points; + UCHAR scaling_points_cr[10][2]; + UCHAR num_cr_points; + UCHAR ar_coeffs_y[24]; + UCHAR ar_coeffs_cb[25]; + UCHAR ar_coeffs_cr[25]; + UCHAR cb_mult; + UCHAR cb_luma_mult; + UCHAR cr_mult; + UCHAR cr_luma_mult; + UCHAR Reserved8Bits; + SHORT cb_offset; + SHORT cr_offset; + } film_grain; + + UINT Reserved32Bits; + UINT StatusReportFeedbackNumber; +} DXVA_PicParams_AV1, *LPDXVA_PicParams_AV1; + +/* AV1 tile structure */ +typedef struct _DXVA_Tile_AV1 { + UINT DataOffset; + UINT DataSize; + USHORT row; + USHORT column; + UINT16 Reserved16Bits; + UCHAR anchor_frame; + UCHAR Reserved8Bits; +} DXVA_Tile_AV1, *LPDXVA_Tile_AV1; + +/* AV1 status reporting data structure */ +typedef struct _DXVA_Status_AV1 { + UINT StatusReportFeedbackNumber; + DXVA_PicEntry_AV1 CurrPic; + UCHAR BufType; + UCHAR Status; + UCHAR Reserved8Bits; + USHORT NumMbsAffected; +} DXVA_Status_AV1, *LPDXVA_Status_AV1; + +#endif // _DIRECTX_AV1_VA_ + +/* MJPEG specific structures */ + +#ifndef _DIRECTX_MJPEG_VA_ +#define _DIRECTX_MJPEG_VA_ + +/* MJPEG picture parameters structure */ +typedef struct _DXVA_PicParams_MJPEG { + UINT width; + UINT height; + UCHAR numComponents; + UCHAR bitDepth; + USHORT reserved16Bits; + UCHAR quantizationTableSelector[4]; + UINT scanOffset[4]; + UINT scanSize[4]; + UCHAR componentIdentifier[4]; + USHORT restartInterval; + USHORT reserved16Bits2; + UINT reserved32Bits; + UINT statusReportFeedbackNumber; +} DXVA_PicParams_MJPEG, *LPDXVA_PicParams_MJPEG; + +/* MJPEG quantization table structure */ +typedef struct _DXVA_QMatrix_MJPEG { + + UINT16 quantvals[4][64]; + +} DXVA_QMatrix_MJPEG, *LPDXVA_QMatrix_MJPEG; + +/* MJPEG quantization table structure */ +typedef struct _DXVA_HuffmanTable_MJPEG { + + UINT8 bits_ac[4][16]; + UINT8 table_ac[4][256]; + + UINT8 bits_dc[4][16]; + UINT8 table_dc[4][256]; + +} DXVA_HuffmanTable_MJPEG, *LPDXVA_HuffmanTable_MJPEG; + +#endif // _DIRECTX_MJPEG_VA_ + +/* + * Other forms of pictures are constructed in the obvious way + * from the above by adjusting the number of residual difference + * blocks, the number of motion vectors per macroblock, etc. + */ + +#define readDXVA_MBskipsFollowing(ptr) (((ptr)->dwMB_SNL & 0xFF000000) >> 24) +#define readDXVA_MBdataLocation(ptr) (((ptr)->dwMB_SNL & 0x00FFFFFF)) + +#define writeDXVA_MB_SNL(ptr, skips, dloc) ((ptr)->dwMB_SNL = (((skips) << 24) | (dloc))) +#define setDXVA_MBskipsFollowing(ptr, skips) ((ptr)->dwMB_SNL |= ((skips) << 24)) +#define setDXVA_MBdataLocation(ptr, dloc) ((ptr)->dwMB_SNL |= (dloc)) + +#define readDXVA_MvertFieldSel_3(ptr) (((ptr)->wMBtype & 0x8000) >> 15) +#define readDXVA_MvertFieldSel_2(ptr) (((ptr)->wMBtype & 0x4000) >> 14) +#define readDXVA_MvertFieldSel_1(ptr) (((ptr)->wMBtype & 0x2000) >> 13) +#define readDXVA_MvertFieldSel_0(ptr) (((ptr)->wMBtype & 0x1000) >> 12) +#define readDXVA_ReservedBits(ptr) (((ptr)->wMBtype & 0x0800) >> 11) +#define readDXVA_HostResidDiff(ptr) (((ptr)->wMBtype & 0x0400) >> 10) +#define readDXVA_MotionType(ptr) (((ptr)->wMBtype & 0x0300) >> 8) +#define readDXVA_MBscanMethod(ptr) (((ptr)->wMBtype & 0x00C0) >> 6) +#define readDXVA_FieldResidual(ptr) (((ptr)->wMBtype & 0x0020) >> 5) +#define readDXVA_H261LoopFilter(ptr) (((ptr)->wMBtype & 0x0010) >> 4) +#define readDXVA_Motion4MV(ptr) (((ptr)->wMBtype & 0x0008) >> 3) +#define readDXVA_MotionBackward(ptr) (((ptr)->wMBtype & 0x0004) >> 2) +#define readDXVA_MotionForward(ptr) (((ptr)->wMBtype & 0x0002) >> 1) +#define readDXVA_IntraMacroblock(ptr) (((ptr)->wMBtype & 0x0001)) + +#define setDXVA_MvertFieldSel_3(ptr) ((ptr)->wMBtype |= 0x8000) +#define setDXVA_MvertFieldSel_2(ptr) ((ptr)->wMBtype |= 0x4000) +#define setDXVA_MvertFieldSel_1(ptr) ((ptr)->wMBtype |= 0x2000) +#define setDXVA_MvertFieldSel_0(ptr) ((ptr)->wMBtype |= 0x1000) +#define setDXVA_ReservedBits(ptr) ((ptr)->wMBtype |= 0x0800) +#define setDXVA_HostResidDiff(ptr) ((ptr)->wMBtype |= 0x0400) +#define setDXVA_MotionType(ptr, value) ((ptr)->wMBtype |= ((value) << 8)) +#define setDXVA_MBscanMethod(ptr, value) ((ptr)->wMBtype |= ((value) << 6)) +#define setDXVA_FieldResidual(ptr) ((ptr)->wMBtype |= 0x0020) +#define setDXVA_H261LoopFilter(ptr) ((ptr)->wMBtype |= 0x0010) +#define setDXVA_Motion4MV(ptr) ((ptr)->wMBtype |= 0x0008) +#define setDXVA_MotionBackward(ptr) ((ptr)->wMBtype |= 0x0004) +#define setDXVA_MotionForward(ptr) ((ptr)->wMBtype |= 0x0002) +#define setDXVA_IntraMacroblock(ptr) ((ptr)->wMBtype |= 0x0001) + +#define readDXVA_Y___0coded(ptr) (((ptr)->wPatternCode & 0x0800) >> 11) +#define readDXVA_Y___1coded(ptr) (((ptr)->wPatternCode & 0x0400) >> 10) +#define readDXVA_Y___2coded(ptr) (((ptr)->wPatternCode & 0x0200) >> 9) +#define readDXVA_Y___3coded(ptr) (((ptr)->wPatternCode & 0x0100) >> 8) +#define readDXVA_Cb__4coded(ptr) (((ptr)->wPatternCode & 0x0080) >> 7) +#define readDXVA_Cr__5coded(ptr) (((ptr)->wPatternCode & 0x0040) >> 6) +#define readDXVA_Cb__6coded(ptr) (((ptr)->wPatternCode & 0x0020) >> 5) +#define readDXVA_Cr__7coded(ptr) (((ptr)->wPatternCode & 0x0010) >> 4) +#define readDXVA_Cb__8coded(ptr) (((ptr)->wPatternCode & 0x0008) >> 3) +#define readDXVA_Cb__9coded(ptr) (((ptr)->wPatternCode & 0x0004) >> 2) +#define readDXVA_Cr_10coded(ptr) (((ptr)->wPatternCode & 0x0002) >> 1) +#define readDXVA_Cr_11coded(ptr) (((ptr)->wPatternCode & 0x0001)) + +#define readDXVA_Y___0oflow(ptr) (((ptr)->wPC_Overflow & 0x0800) >> 11) +#define readDXVA_Y___1oflow(ptr) (((ptr)->wPC_Overflow & 0x0400) >> 10) +#define readDXVA_Y___2oflow(ptr) (((ptr)->wPC_Overflow & 0x0200) >> 9) +#define readDXVA_Y___3oflow(ptr) (((ptr)->wPC_Overflow & 0x0100) >> 8) +#define readDXVA_Cb__4oflow(ptr) (((ptr)->wPC_Overflow & 0x0080) >> 7) +#define readDXVA_Cr__5oflow(ptr) (((ptr)->wPC_Overflow & 0x0040) >> 6) +#define readDXVA_Cb__6oflow(ptr) (((ptr)->wPC_Overflow & 0x0020) >> 5) +#define readDXVA_Cr__7oflow(ptr) (((ptr)->wPC_Overflow & 0x0010) >> 4) +#define readDXVA_Cb__8oflow(ptr) (((ptr)->wPC_Overflow & 0x0008) >> 3) +#define readDXVA_Cb__9oflow(ptr) (((ptr)->wPC_Overflow & 0x0004) >> 2) +#define readDXVA_Cr_10oflow(ptr) (((ptr)->wPC_Overflow & 0x0002) >> 1) +#define readDXVA_Cr_11oflow(ptr) (((ptr)->wPC_Overflow & 0x0001)) + +#pragma pack(pop, BeforeDXVApacking) +#endif /* __DIRECTX_VA_DECODER__ */ + + +// ------------------------------------------------------------------------- +// +// D3DFORMAT describes a pixel memory layout, DXVA sample format contains +// additional information that describes how the pixels should be interpreted. +// +// DXVA Extended color data - occupies the SampleFormat DWORD +// data fields. +// ------------------------------------------------------------------------- +#ifndef __DIRECTX_VA_SAMPLEFORMAT__ +#define __DIRECTX_VA_SAMPLEFORMAT__ + +typedef enum _DXVA_SampleFormat { + DXVA_SampleFormatMask = 0xFF, // 8 bits used for DXVA Sample format + DXVA_SampleUnknown = 0, + DXVA_SamplePreviousFrame = 1, + DXVA_SampleProgressiveFrame = 2, + DXVA_SampleFieldInterleavedEvenFirst = 3, + DXVA_SampleFieldInterleavedOddFirst = 4, + DXVA_SampleFieldSingleEven = 5, + DXVA_SampleFieldSingleOdd = 6, + DXVA_SampleSubStream = 7 +} DXVA_SampleFormat; + +#define DXVA_ExtractSampleFormat(_sf) ((_sf) & (DXVA_SampleFormatMask)) + +#define DXVA_ExtractExtColorData(_sf, _Mask, _Shift) \ + (((_sf) & (_Mask)) >> (_Shift)) + +#define DXVABitMask(__n) (~((~0) << __n)) +#define DXVA_ExtColorData_ShiftBase 8 +#define DXVAColorMask(__bits,__base) (DXVABitMask(__bits) << (__base)) + +typedef enum _DXVA_VideoTransferFunction +{ + DXVA_VideoTransFuncShift = (DXVA_ExtColorData_ShiftBase + 19), + DXVA_VideoTransFuncMask = DXVAColorMask(5, DXVA_VideoTransFuncShift), + + DXVA_VideoTransFunc_Unknown = 0, + DXVA_VideoTransFunc_10 = 1, + DXVA_VideoTransFunc_18 = 2, + DXVA_VideoTransFunc_20 = 3, + DXVA_VideoTransFunc_22 = 4, + DXVA_VideoTransFunc_22_709 = 5, + DXVA_VideoTransFunc_22_240M = 6, + DXVA_VideoTransFunc_22_8bit_sRGB = 7, + DXVA_VideoTransFunc_28 = 8 +} DXVA_VideoTransferFunction; + +typedef enum _DXVA_VideoPrimaries +{ + DXVA_VideoPrimariesShift = (DXVA_ExtColorData_ShiftBase + 14), + DXVA_VideoPrimariesMask = DXVAColorMask(5, DXVA_VideoPrimariesShift), + + DXVA_VideoPrimaries_Unknown = 0, + DXVA_VideoPrimaries_reserved = 1, + DXVA_VideoPrimaries_BT709 = 2, + DXVA_VideoPrimaries_BT470_2_SysM = 3, + DXVA_VideoPrimaries_BT470_2_SysBG = 4, + DXVA_VideoPrimaries_SMPTE170M = 5, + DXVA_VideoPrimaries_SMPTE240M = 6, + DXVA_VideoPrimaries_EBU3213 = 7, + DXVA_VideoPrimaries_SMPTE_C = 8 +} DXVA_VideoPrimaries; + +typedef enum _DXVA_VideoLighting +{ + DXVA_VideoLightingShift = (DXVA_ExtColorData_ShiftBase + 10), + DXVA_VideoLightingMask = DXVAColorMask(4, DXVA_VideoLightingShift), + + DXVA_VideoLighting_Unknown = 0, + DXVA_VideoLighting_bright = 1, + DXVA_VideoLighting_office = 2, + DXVA_VideoLighting_dim = 3, + DXVA_VideoLighting_dark = 4 +} DXVA_VideoLighting; + +typedef enum _DXVA_VideoTransferMatrix +{ + DXVA_VideoTransferMatrixShift = (DXVA_ExtColorData_ShiftBase + 7), + DXVA_VideoTransferMatrixMask = DXVAColorMask(3, DXVA_VideoTransferMatrixShift), + + DXVA_VideoTransferMatrix_Unknown = 0, + DXVA_VideoTransferMatrix_BT709 = 1, + DXVA_VideoTransferMatrix_BT601 = 2, + DXVA_VideoTransferMatrix_SMPTE240M = 3 +} DXVA_VideoTransferMatrix; + +typedef enum _DXVA_NominalRange +{ + DXVA_NominalRangeShift = (DXVA_ExtColorData_ShiftBase + 4), + DXVA_NominalRangeMask = DXVAColorMask(3, DXVA_NominalRangeShift), + + DXVA_NominalRange_Unknown = 0, + DXVA_NominalRange_Normal = 1, + DXVA_NominalRange_Wide = 2, + + DXVA_NominalRange_0_255 = 1, + DXVA_NominalRange_16_235 = 2, + DXVA_NominalRange_48_208 = 3 +} DXVA_NominalRange; + + +typedef enum _DXVA_VideoChromaSubsampling +{ + DXVA_VideoChromaSubsamplingShift = (DXVA_ExtColorData_ShiftBase + 0), + DXVA_VideoChromaSubsamplingMask = DXVAColorMask(4, DXVA_VideoChromaSubsamplingShift), + + DXVA_VideoChromaSubsampling_Unknown = 0, + DXVA_VideoChromaSubsampling_ProgressiveChroma = 0x8, + DXVA_VideoChromaSubsampling_Horizontally_Cosited = 0x4, + DXVA_VideoChromaSubsampling_Vertically_Cosited = 0x2, + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1, + + // 4:2:0 variations + DXVA_VideoChromaSubsampling_MPEG2 = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA_VideoChromaSubsampling_MPEG1 = DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA_VideoChromaSubsampling_DV_PAL = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_Cosited, + // 4:4:4, 4:2:2, 4:1:1 + DXVA_VideoChromaSubsampling_Cosited = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_Cosited | + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, +} DXVA_VideoChromaSubsampling; + +typedef struct _DXVA_ExtendedFormat +{ + UINT SampleFormat : 8; // See DXVA_SampleFormat + UINT VideoChromaSubsampling : 4; // See DXVA_VideoChromaSubSampling + DXVA_NominalRange NominalRange : 3; // See DXVA_NominalRange + DXVA_VideoTransferMatrix VideoTransferMatrix : 3; // See DXVA_VideoTransferMatrix + DXVA_VideoLighting VideoLighting : 4; // See DXVA_VideoLighting + DXVA_VideoPrimaries VideoPrimaries : 5; // See DXVA_VideoPrimaries + DXVA_VideoTransferFunction VideoTransferFunction : 5; // See DXVA_VideoTransferFunction +} DXVA_ExtendedFormat; + +#endif + + + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the video de-interlace interface +// between the VMR and the graphics device driver. This interface is not +// accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_DEINTERLACE__ +#define __DIRECTX_VA_DEINTERLACE__ + +typedef LONGLONG REFERENCE_TIME; + +DEFINE_GUID(DXVA_DeinterlaceBobDevice, + 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e); + +DEFINE_GUID(DXVA_DeinterlaceContainerDevice, + 0x0e85cb93,0x3046,0x4ff0,0xae,0xcc,0xd5,0x8c,0xb5,0xf0,0x35,0xfd); + + +#if (DIRECT3D_VERSION < 0x0800) || !defined(DIRECT3D_VERSION) +typedef DWORD D3DFORMAT; +enum { + D3DPOOL_DEFAULT = 0, + D3DPOOL_MANAGED = 1, + D3DPOOL_SYSTEMMEM = 2, + D3DPOOL_SCRATCH = 3, + D3DPOOL_LOCALVIDMEM = 4, + D3DPOOL_NONLOCALVIDMEM = 5, + D3DPOOL_FORCE_DWORD = 0x7fffffff +}; +#endif + + +// ------------------------------------------------------------------------- +// data structures shared by User mode and Kernel mode. +// ------------------------------------------------------------------------- +// + +typedef struct _DXVA_Frequency { + DWORD Numerator; + DWORD Denominator; +} DXVA_Frequency; + +typedef struct _DXVA_VideoDesc { + DWORD Size; + DWORD SampleWidth; + DWORD SampleHeight; + DWORD SampleFormat; // also contains extend color data + D3DFORMAT d3dFormat; + DXVA_Frequency InputSampleFreq; + DXVA_Frequency OutputFrameFreq; +} DXVA_VideoDesc, *LPDXVA_VideoDesc; + +typedef enum _DXVA_VideoProcessCaps { + DXVA_VideoProcess_None = 0x0000, + DXVA_VideoProcess_YUV2RGB = 0x0001, + DXVA_VideoProcess_StretchX = 0x0002, + DXVA_VideoProcess_StretchY = 0x0004, + DXVA_VideoProcess_AlphaBlend = 0x0008, + DXVA_VideoProcess_SubRects = 0x0010, + DXVA_VideoProcess_SubStreams = 0x0020, + DXVA_VideoProcess_SubStreamsExtended = 0x0040, + DXVA_VideoProcess_YUV2RGBExtended = 0x0080, + DXVA_VideoProcess_AlphaBlendExtended = 0x0100 +} DXVA_VideoProcessCaps; + +typedef enum _DXVA_DeinterlaceTech { + + // the algorithm is unknown or proprietary + DXVA_DeinterlaceTech_Unknown = 0x0000, + + // the algorithm creates the missing lines by repeating + // the line either above or below it - this method will look very jaggy and + // isn't recommended + DXVA_DeinterlaceTech_BOBLineReplicate = 0x0001, + + // The algorithm creates the missing lines by vertically stretching each + // video field by a factor of two by averaging two lines + DXVA_DeinterlaceTech_BOBVerticalStretch = 0x0002, + + // or using a [-1, 9, 9, -1]/16 filter across four lines. + DXVA_DeinterlaceTech_BOBVerticalStretch4Tap = 0x0100, + + // the pixels in the missing line are recreated by a median filtering operation + DXVA_DeinterlaceTech_MedianFiltering = 0x0004, + + // the pixels in the missing line are recreated by an edge filter. + // In this process, spatial directional filters are applied to determine + // the orientation of edges in the picture content, and missing + // pixels are created by filtering along (rather than across) the + // detected edges. + DXVA_DeinterlaceTech_EdgeFiltering = 0x0010, + + // the pixels in the missing line are recreated by switching on a field by + // field basis between using either spatial or temporal interpolation + // depending on the amount of motion. + DXVA_DeinterlaceTech_FieldAdaptive = 0x0020, + + // the pixels in the missing line are recreated by switching on a pixel by pixel + // basis between using either spatial or temporal interpolation depending on + // the amount of motion.. + DXVA_DeinterlaceTech_PixelAdaptive = 0x0040, + + // Motion Vector Steering identifies objects within a sequence of video + // fields. The missing pixels are recreated after first aligning the + // movement axes of the individual objects in the scene to make them + // parallel with the time axis. + DXVA_DeinterlaceTech_MotionVectorSteered = 0x0080 + +} DXVA_DeinterlaceTech; + + +typedef struct _DXVA_VideoSample { + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DXVA_SampleFormat SampleFormat; // only lower 8 bits used + VOID* lpDDSSrcSurface; +} DXVA_VideoSample, *LPDXVA_VideoSample; + + + +// ------------------------------------------------------------------------- +// DeinterlaceBltEx declarations +// ------------------------------------------------------------------------- +// + +typedef enum _DXVA_SampleFlags { + DXVA_SampleFlagsMask = DXVABit(3)|DXVABit(2)|DXVABit(1)|DXVABit(0), + + DXVA_SampleFlag_Palette_Changed = 0x0001, + DXVA_SampleFlag_SrcRect_Changed = 0x0002, + DXVA_SampleFlag_DstRect_Changed = 0x0004, + DXVA_SampleFlag_ColorData_Changed = 0x0008, +} DXVA_SampleFlags; + +typedef enum _DXVA_DestinationFlags { + DXVA_DestinationFlagMask = DXVABit(3)|DXVABit(2)|DXVABit(1)|DXVABit(0), + + DXVA_DestinationFlag_Background_Changed = 0x0001, + DXVA_DestinationFlag_TargetRect_Changed = 0x0002, + DXVA_DestinationFlag_ColorData_Changed = 0x0004, + DXVA_DestinationFlag_Alpha_Changed = 0x0008 +} DXVA_DestinationFlags; + + + + +typedef struct _DXVA_VideoSample2 { +#ifdef _WIN64 + DWORD Size; + DWORD Reserved; +#endif + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DWORD SampleFormat; // cast to DXVA_ExtendedFormat, or use Extract macros + DWORD SampleFlags; + VOID* lpDDSSrcSurface; + RECT rcSrc; + RECT rcDst; + DXVA_AYUVsample2 Palette[16]; +} DXVA_VideoSample2, *LPDXVA_VideoSample2; + +typedef struct _DXVA_DeinterlaceCaps { + DWORD Size; + DWORD NumPreviousOutputFrames; + DWORD InputPool; + DWORD NumForwardRefSamples; + DWORD NumBackwardRefSamples; + D3DFORMAT d3dOutputFormat; + DXVA_VideoProcessCaps VideoProcessingCaps; + DXVA_DeinterlaceTech DeinterlaceTechnology; +} DXVA_DeinterlaceCaps, *LPDXVA_DeinterlaceCaps; + + + + +// ------------------------------------------------------------------------- +// Data types used with RenderMoComp in kernel mode +// ------------------------------------------------------------------------- +// + +// Function codes for RenderMoComp + +#define MAX_DEINTERLACE_SURFACES 32 + +#ifdef _WIN64 +// +// These structures are used for thunking 32 bit DeinterlaceBltEx calls on +// 64 bit drivers. +// +typedef struct _DXVA_VideoSample32 { + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DWORD SampleFormat; + DWORD SampleFlags; + DWORD lpDDSSrcSurface; // 32 bit pointer size + RECT rcSrc; + RECT rcDst; + DXVA_AYUVsample2 Palette[16]; + // DWORD Pad; + // 4 bytes of padding added by the compiler to align the struct to 8 bytes. +} DXVA_VideoSample32; + +typedef struct _DXVA_DeinterlaceBltEx32 { + DWORD Size; + DXVA_AYUVsample2 BackgroundColor; + RECT rcTarget; + REFERENCE_TIME rtTarget; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample32 Source[MAX_DEINTERLACE_SURFACES]; + DWORD DestinationFormat; + DWORD DestinationFlags; +} DXVA_DeinterlaceBltEx32; +#endif + + +typedef struct _DXVA_DeinterlaceBlt { + DWORD Size; + DWORD Reserved; + REFERENCE_TIME rtTarget; + RECT DstRect; + RECT SrcRect; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample Source[MAX_DEINTERLACE_SURFACES]; +} DXVA_DeinterlaceBlt; + +#define DXVA_DeinterlaceBltFnCode 0x01 +// lpInput => DXVA_DeinterlaceBlt* +// lpOuput => NULL /* not currently used */ + + +typedef struct _DXVA_DeinterlaceBltEx { + DWORD Size; + DXVA_AYUVsample2 BackgroundColor; + RECT rcTarget; + REFERENCE_TIME rtTarget; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample2 Source[MAX_DEINTERLACE_SURFACES]; + DWORD DestinationFormat; + DWORD DestinationFlags; +} DXVA_DeinterlaceBltEx; + +#define DXVA_DeinterlaceBltExFnCode 0x02 +// lpInput => DXVA_DeinterlaceBltEx* +// lpOuput => NULL /* not currently used */ + + +#define MAX_DEINTERLACE_DEVICE_GUIDS 32 +typedef struct _DXVA_DeinterlaceQueryAvailableModes { + DWORD Size; + DWORD NumGuids; + GUID Guids[MAX_DEINTERLACE_DEVICE_GUIDS]; +} DXVA_DeinterlaceQueryAvailableModes; + +#define DXVA_DeinterlaceQueryAvailableModesFnCode 0x01 +// lpInput => DXVA_VideoDesc* +// lpOuput => DXVA_DeinterlaceQueryAvailableModes* + + +typedef struct _DXVA_DeinterlaceQueryModeCaps { + DWORD Size; + GUID Guid; + DXVA_VideoDesc VideoDesc; +} DXVA_DeinterlaceQueryModeCaps; + +#define DXVA_DeinterlaceQueryModeCapsFnCode 0x02 +// lpInput => DXVA_DeinterlaceQueryModeCaps* +// lpOuput => DXVA_DeinterlaceCaps* + +#endif /* __DIRECTX_VA_DEINTERLACE__ */ + + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the video ProcAmp interface +// between the VMR and the graphics device driver. This interface is not +// accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_PROCAMPCONTROL__ +#define __DIRECTX_VA_PROCAMPCONTROL__ + +DEFINE_GUID(DXVA_ProcAmpControlDevice, + 0x9f200913,0x2ffd,0x4056,0x9f,0x1e,0xe1,0xb5,0x08,0xf2,0x2d,0xcf); + +typedef enum _DXVA_ProcAmpControlProp { + DXVA_ProcAmp_None = 0x0000, + DXVA_ProcAmp_Brightness = 0x0001, + DXVA_ProcAmp_Contrast = 0x0002, + DXVA_ProcAmp_Hue = 0x0004, + DXVA_ProcAmp_Saturation = 0x0008 +} DXVA_ProcAmpControlProp; + + +typedef struct _DXVA_ProcAmpControlCaps { + DWORD Size; + DWORD InputPool; + D3DFORMAT d3dOutputFormat; + DWORD ProcAmpControlProps;// see DXVA_ProcAmpControlProp + DWORD VideoProcessingCaps;// see DXVA_VideoProcessCaps +} DXVA_ProcAmpControlCaps, *LPDXVA_ProcAmpControlCaps; + +#define DXVA_ProcAmpControlQueryCapsFnCode 0x03 +// lpInput => DXVA_VideoDesc* +// lpOuput => DXVA_ProcAmpControlCaps* + + +typedef struct _DXVA_ProcAmpControlQueryRange { + DWORD Size; + DXVA_ProcAmpControlProp ProcAmpControlProp; + DXVA_VideoDesc VideoDesc; +} DXVA_ProcAmpControlQueryRange, *LPDXVA_ProcAmpControlQueryRange; + +typedef struct _DXVA_VideoPropertyRange { + FLOAT MinValue; + FLOAT MaxValue; + FLOAT DefaultValue; + FLOAT StepSize; +} DXVA_VideoPropertyRange, *LPDXVA_VideoPropertyRange; + +#define DXVA_ProcAmpControlQueryRangeFnCode 0x04 +// lpInput => DXVA_ProcAmpControlQueryRange* +// lpOuput => DXVA_VideoPropertyRange* + + +typedef struct _DXVA_ProcAmpControlBlt { + DWORD Size; + RECT DstRect; + RECT SrcRect; + FLOAT Alpha; + FLOAT Brightness; + FLOAT Contrast; + FLOAT Hue; + FLOAT Saturation; +} DXVA_ProcAmpControlBlt; + +#define DXVA_ProcAmpControlBltFnCode 0x01 +// lpInput => DXVA_ProcAmpControlBlt* +// lpOuput => NULL /* not currently used */ + +#endif /* __DIRECTX_VA_PROCAMPCONTROL__ */ + + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the Certified Output Protection +// Protocol between the VMR and the graphics device driver. This interface +// is not accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// + +#ifndef __DIRECTX_VA_CERTOUTPUTPROTECT__ +#define __DIRECTX_VA_CERTOUTPUTPROTECT__ + + +DEFINE_GUID(DXVA_COPPDevice, + 0xd2457add,0x8999,0x45ed,0x8a,0x8a,0xd1,0xaa,0x04,0x7b,0xa4,0xd5); + + +// ------------------------------------------------------------------------- +// COPPGetCertificateLength +// ------------------------------------------------------------------------- +#define DXVA_COPPGetCertificateLengthFnCode 0x01 +// lpInput => NULL +// lpOuput => DWORD* + + +// ------------------------------------------------------------------------- +// COPPKeyExchange +// ------------------------------------------------------------------------- +#define DXVA_COPPKeyExchangeFnCode 0x02 +// lpInputData => NULL +// lpOuputData => GUID* + + +// ------------------------------------------------------------------------- +// COPPSequenceStart +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPSignature { + UCHAR Signature[256]; +} DXVA_COPPSignature, *LPDXVA_COPPSignature; + +#define DXVA_COPPSequenceStartFnCode 0x03 +// lpInputData => DXVA_COPPSignature* +// lpOuputData => NULL + + + +// ------------------------------------------------------------------------- +// COPPCommand +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPCommand { + GUID macKDI; // 16 bytes + GUID guidCommandID; // 16 bytes + ULONG dwSequence; // 4 bytes + ULONG cbSizeData; // 4 bytes + UCHAR CommandData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096) +} DXVA_COPPCommand, *LPDXVA_COPPCommand; + +#define DXVA_COPPCommandFnCode 0x04 +// lpInputData => DXVA_COPPCommand* +// lpOuputData => NULL + + +DEFINE_GUID(DXVA_COPPSetProtectionLevel, + 0x9bb9327c,0x4eb5,0x4727,0x9f,0x00,0xb4,0x2b,0x09,0x19,0xc0,0xda); + +typedef struct _DXVA_COPPSetProtectionLevelCmdData { + ULONG ProtType; + ULONG ProtLevel; + ULONG ExtendedInfoChangeMask; + ULONG ExtendedInfoData; +} DXVA_COPPSetProtectionLevelCmdData; + +typedef enum _COPP_DPCP_Protection_Level { + COPP_DPCP_Level0 = 0, + COPP_DPCP_LevelMin = COPP_DPCP_Level0, + COPP_DPCP_Level1 = 1, + COPP_DPCP_LevelMax = COPP_DPCP_Level1, + COPP_DPCP_ForceDWORD = 0x7fffffff +} COPP_DPCP_Protection_Level; + +// Set the HDCP protection level - (0 - 1 DWORD, 4 bytes) + +typedef enum _COPP_HDCP_Protection_Level { + COPP_HDCP_Level0 = 0, + COPP_HDCP_LevelMin = COPP_HDCP_Level0, + COPP_HDCP_Level1 = 1, + COPP_HDCP_LevelMax = COPP_HDCP_Level1, + COPP_HDCP_ForceDWORD = 0x7fffffff +} COPP_HDCP_Protection_Level; + +typedef enum _COPP_CGMSA_Protection_Level { + COPP_CGMSA_Disabled = 0, + COPP_CGMSA_LevelMin = COPP_CGMSA_Disabled, + COPP_CGMSA_CopyFreely = 1, + COPP_CGMSA_CopyNoMore = 2, + COPP_CGMSA_CopyOneGeneration = 3, + COPP_CGMSA_CopyNever = 4, + COPP_CGMSA_RedistributionControlRequired = 0x08, + COPP_CGMSA_LevelMax = (COPP_CGMSA_RedistributionControlRequired + COPP_CGMSA_CopyNever), + COPP_CGMSA_ForceDWORD = 0x7fffffff +} COPP_CGMSA_Protection_Level; + +typedef enum _COPP_ACP_Protection_Level { + COPP_ACP_Level0 = 0, + COPP_ACP_LevelMin = COPP_ACP_Level0, + COPP_ACP_Level1 = 1, + COPP_ACP_Level2 = 2, + COPP_ACP_Level3 = 3, + COPP_ACP_LevelMax = COPP_ACP_Level3, + COPP_ACP_ForceDWORD = 0x7fffffff +} COPP_ACP_Protection_Level; + +#define COPP_NoProtectionLevelAvailable -1 +#define COPP_DefaultProtectionLevel 0 + + +// +// Bit flags of possible protection types. Note that it is possible to apply +// different protection settings to a single connector. +// +enum { + COPP_ProtectionType_Unknown = 0x80000000, + COPP_ProtectionType_None = 0x00000000, + COPP_ProtectionType_HDCP = 0x00000001, + COPP_ProtectionType_ACP = 0x00000002, + COPP_ProtectionType_CGMSA = 0x00000004, + COPP_ProtectionType_DPCP = 0x00000010, + COPP_ProtectionType_Mask = 0x80000017, + COPP_ProtectionType_Reserved = 0x7FFFFFF8 +}; + +DEFINE_GUID(DXVA_COPPSetSignaling, + 0x9a631a5, 0xd684, 0x4c60, 0x8e, 0x4d, 0xd3, 0xbb, 0xf, 0xb, 0xe3, 0xee); + +typedef struct _DXVA_COPPSetSignalingCmdData { + ULONG ActiveTVProtectionStandard; // See COPP_TVProtectionStandard + ULONG AspectRatioChangeMask1; + ULONG AspectRatioData1; // See COPP_ImageAspectRatio_EN300294 for ETSI EN 300 294 values + ULONG AspectRatioChangeMask2; + ULONG AspectRatioData2; + ULONG AspectRatioChangeMask3; + ULONG AspectRatioData3; + ULONG ExtendedInfoChangeMask[4]; + ULONG ExtendedInfoData[4]; + ULONG Reserved; +} DXVA_COPPSetSignalingCmdData; + +// Add format enum and data enum +typedef enum _COPP_TVProtectionStandard { + COPP_ProtectionStandard_Unknown = 0x80000000, + COPP_ProtectionStandard_None = 0x00000000, + COPP_ProtectionStandard_IEC61880_525i = 0x00000001, + COPP_ProtectionStandard_IEC61880_2_525i = 0x00000002, + COPP_ProtectionStandard_IEC62375_625p = 0x00000004, + COPP_ProtectionStandard_EIA608B_525 = 0x00000008, + COPP_ProtectionStandard_EN300294_625i = 0x00000010, + COPP_ProtectionStandard_CEA805A_TypeA_525p = 0x00000020, + COPP_ProtectionStandard_CEA805A_TypeA_750p = 0x00000040, + COPP_ProtectionStandard_CEA805A_TypeA_1125i = 0x00000080, + COPP_ProtectionStandard_CEA805A_TypeB_525p = 0x00000100, + COPP_ProtectionStandard_CEA805A_TypeB_750p = 0x00000200, + COPP_ProtectionStandard_CEA805A_TypeB_1125i = 0x00000400, + COPP_ProtectionStandard_ARIBTRB15_525i = 0x00000800, + COPP_ProtectionStandard_ARIBTRB15_525p = 0x00001000, + COPP_ProtectionStandard_ARIBTRB15_750p = 0x00002000, + COPP_ProtectionStandard_ARIBTRB15_1125i = 0x00004000, + COPP_ProtectionStandard_Mask = 0x80007FFF, + COPP_ProtectionStandard_Reserved = 0x7FFF8000 +} COPP_TVProtectionStandard; + +#define COPP_ImageAspectRatio_EN300294_Mask 0x00000007 + +typedef enum _COPP_ImageAspectRatio_EN300294 { + COPP_AspectRatio_EN300294_FullFormat4by3 = 0, + COPP_AspectRatio_EN300294_Box14by9Center = 1, + COPP_AspectRatio_EN300294_Box14by9Top = 2, + COPP_AspectRatio_EN300294_Box16by9Center = 3, + COPP_AspectRatio_EN300294_Box16by9Top = 4, + COPP_AspectRatio_EN300294_BoxGT16by9Center = 5, + COPP_AspectRatio_EN300294_FullFormat4by3ProtectedCenter = 6, + COPP_AspectRatio_EN300294_FullFormat16by9Anamorphic = 7, + COPP_AspectRatio_ForceDWORD = 0x7fffffff +} COPP_ImageAspectRatio_EN300294; + + +// ------------------------------------------------------------------------- +// COPPQueryStatus +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPStatusInput { + GUID rApp; // 16 bytes + GUID guidStatusRequestID;// 16 bytes + ULONG dwSequence; // 4 bytes + ULONG cbSizeData; // 4 bytes + UCHAR StatusData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096) +} DXVA_COPPStatusInput, *LPDXVA_COPPStatusInput; + +typedef struct _DXVA_COPPStatusOutput { + GUID macKDI; // 16 bytes + ULONG cbSizeData; // 4 bytes + UCHAR COPPStatus[4076]; // 4076 bytes (4076+16+4 = 4096) +} DXVA_COPPStatusOutput, *LPDXVA_COPPStatusOutput; + +typedef enum _COPP_StatusFlags { + COPP_StatusNormal = 0x00, + COPP_LinkLost = 0x01, + COPP_RenegotiationRequired = 0x02, + COPP_StatusFlagsReserved = 0xFFFFFFFC +} COPP_StatusFlags; + +typedef struct _DXVA_COPPStatusData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG dwData; + ULONG ExtendedInfoValidMask; + ULONG ExtendedInfoData; +} DXVA_COPPStatusData; + +typedef struct _DXVA_COPPStatusDisplayData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG DisplayWidth; + ULONG DisplayHeight; + ULONG Format; // also contains extended color data + ULONG d3dFormat; + ULONG FreqNumerator; + ULONG FreqDenominator; +} DXVA_COPPStatusDisplayData; + +typedef enum _COPP_StatusHDCPFlags { + COPP_HDCPRepeater = 0x01, + COPP_HDCPFlagsReserved = 0xFFFFFFFE +} COPP_StatusHDCPFlags; + +typedef struct _DXVA_COPPStatusHDCPKeyData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG dwHDCPFlags; // See COPP_StatusHDCPFlags above + GUID BKey; // Lower 40 bits + GUID Reserved1; + GUID Reserved2; +} DXVA_COPPStatusHDCPKeyData; + + +#define DXVA_COPPQueryStatusFnCode 0x05 +// lpInputData => DXVA_COPPStatusInput* +// lpOuputData => DXVA_COPPStatusOutput* + + +// +// Status GUID and enumerations +// +DEFINE_GUID(DXVA_COPPQueryConnectorType, + 0x81d0bfd5,0x6afe,0x48c2,0x99,0xc0,0x95,0xa0,0x8f,0x97,0xc5,0xda); + +typedef enum _COPP_ConnectorType { + COPP_ConnectorType_Unknown = -1, + COPP_ConnectorType_VGA = 0, + COPP_ConnectorType_SVideo = 1, + COPP_ConnectorType_CompositeVideo = 2, + COPP_ConnectorType_ComponentVideo = 3, + COPP_ConnectorType_DVI = 4, + COPP_ConnectorType_HDMI = 5, + COPP_ConnectorType_LVDS = 6, + COPP_ConnectorType_TMDS = 7, + COPP_ConnectorType_D_JPN = 8, + COPP_ConnectorType_SDI = 9, + COPP_ConnectorType_DisplayPortExternal = 10, + COPP_ConnectorType_DisplayPortEmbedded = 11, + COPP_ConnectorType_UDIExternal = 12, + COPP_ConnectorType_UDIEmbedded = 13, + COPP_ConnectorType_Internal = 0x80000000, // can be combined with the other connector types + COPP_ConnectorType_ForceDWORD = 0x7fffffff /* force 32-bit size enum */ +} COPP_ConnectorType; + +DEFINE_GUID(DXVA_COPPQueryProtectionType, + 0x38f2a801,0x9a6c,0x48bb,0x91,0x07,0xb6,0x69,0x6e,0x6f,0x17,0x97); + +DEFINE_GUID(DXVA_COPPQueryLocalProtectionLevel, + 0xb2075857,0x3eda,0x4d5d,0x88,0xdb,0x74,0x8f,0x8c,0x1a,0x05,0x49); + +DEFINE_GUID(DXVA_COPPQueryGlobalProtectionLevel, + 0x1957210a,0x7766,0x452a,0xb9,0x9a,0xd2,0x7a,0xed,0x54,0xf0,0x3a); + +DEFINE_GUID(DXVA_COPPQueryDisplayData, + 0xd7bf1ba3,0xad13,0x4f8e,0xaf,0x98,0x0d,0xcb,0x3c,0xa2,0x04,0xcc); + +DEFINE_GUID(DXVA_COPPQueryHDCPKeyData, + 0xdb59d74, 0xa992, 0x492e, 0xa0, 0xbd, 0xc2, 0x3f, 0xda, 0x56, 0x4e, 0x0); + +DEFINE_GUID(DXVA_COPPQueryBusData, + 0xc6f4d673, 0x6174, 0x4184, 0x8e, 0x35, 0xf6, 0xdb, 0x52, 0x0, 0xbc, 0xba); + +typedef enum _COPP_BusType { + COPP_BusType_Unknown = 0, + COPP_BusType_PCI = 1, + COPP_BusType_PCIX = 2, + COPP_BusType_PCIExpress = 3, + COPP_BusType_AGP = 4, + COPP_BusType_Integrated = 0x80000000, // can be combined with the other bus types + COPP_BusType_ForceDWORD = 0x7fffffff /* force 32-bit size enum */ +} COPP_BusType; + +DEFINE_GUID(DXVA_COPPQuerySignaling, + 0x6629a591, 0x3b79, 0x4cf3, 0x92, 0x4a, 0x11, 0xe8, 0xe7, 0x81, 0x16, 0x71); + +typedef struct _DXVA_COPPStatusSignalingCmdData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG AvailableTVProtectionStandards; // See COPP_TVProtectionStandard + ULONG ActiveTVProtectionStandard; // See COPP_TVProtectionStandard + ULONG TVType; + ULONG AspectRatioValidMask1; + ULONG AspectRatioData1; // See COPP_AspectRatio_EN300294 for ETSI EN 300 294 values + ULONG AspectRatioValidMask2; + ULONG AspectRatioData2; + ULONG AspectRatioValidMask3; + ULONG AspectRatioData3; + ULONG ExtendedInfoValidMask[4]; + ULONG ExtendedInfoData[4]; +} DXVA_COPPStatusSignalingCmdData; + + +#endif /* __DIRECTX_VA_CERTOUTPUTPROTECT__ */ + +#ifdef __cplusplus +} +#endif + +#ifdef __DXVA1_DEPRECATED_INTERFACES__ + +#if !defined(__cplusplus) +#error C++ compiler required. +#endif + +/* IID_IDirect3DVideoDevice9 */ +DEFINE_GUID(IID_IDirect3DVideoDevice9, +0x694036ac, 0x542a, 0x4a3a, 0x9a, 0x32, 0x53, 0xbc, 0x20, 0x0, 0x2c, 0x1b); + +/* IID_IDirect3DDXVADevice9 */ +DEFINE_GUID(IID_IDirect3DDXVADevice9, +0x9f00c3d3, 0x5ab6, 0x465f, 0xb9, 0x55, 0x9f, 0xe, 0xbb, 0x2c, 0x56, 0x6); + +interface IDirect3DVideoDevice9; +interface IDirect3DDXVADevice9; + +typedef struct _DXVAUncompDataInfo +{ + DWORD UncompWidth; /* Width of uncompressed data */ + DWORD UncompHeight; /* Height of uncompressed data */ + D3DFORMAT UncompFormat; /* Format of uncompressed data */ +} DXVAUncompDataInfo; + +typedef struct _DXVACompBufferInfo +{ + DWORD NumCompBuffers; /* Number of buffers reqd for compressed data */ + DWORD WidthToCreate; /* Width of surface to create */ + DWORD HeightToCreate; /* Height of surface to create */ + DWORD BytesToAllocate; /* Total number of bytes used by each surface */ + DWORD Usage; /* Usage used to create the compressed buffer */ + D3DPOOL Pool; /* Pool where the compressed buffer belongs */ + D3DFORMAT Format; /* Format used to create the compressed buffer */ +} DXVACompBufferInfo; + +typedef struct _DXVABufferInfo +{ + VOID* pCompSurface; /* Pointer to buffer containing compressed data */ + DWORD DataOffset; /* Offset of relevant data from the beginning of buffer */ + DWORD DataSize; /* Size of relevant data */ +} DXVABufferInfo; + +#undef INTERFACE +#define INTERFACE IDirect3DVideoDevice9 + +DECLARE_INTERFACE_(IDirect3DVideoDevice9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DVideoDevice9 methods ***/ + STDMETHOD(CreateSurface)(THIS_ UINT Width,UINT Height,UINT BackBuffers, + D3DFORMAT Format,D3DPOOL Pool,DWORD Usage, + IDirect3DSurface9** ppSurface, + HANDLE* pSharedHandle) PURE; + STDMETHOD(GetDXVACompressedBufferInfo)(THIS_ GUID* pGuid, + DXVAUncompDataInfo* pUncompData, + DWORD* pNumBuffers, + DXVACompBufferInfo* pBufferInfo) PURE; + STDMETHOD(GetDXVAGuids)(THIS_ DWORD* pNumGuids,GUID* pGuids) PURE; + STDMETHOD(GetDXVAInternalInfo)(THIS_ GUID* pGuid, + DXVAUncompDataInfo* pUncompData, + DWORD* pMemoryUsed) PURE; + STDMETHOD(GetUncompressedDXVAFormats)(THIS_ GUID* pGuid, + DWORD* pNumFormats, + D3DFORMAT* pFormats) PURE; + STDMETHOD(CreateDXVADevice)(THIS_ GUID* pGuid, + DXVAUncompDataInfo* pUncompData, + LPVOID pData,DWORD DataSize, + IDirect3DDXVADevice9** ppDXVADevice) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDirect3DDXVADevice9 + +DECLARE_INTERFACE_(IDirect3DDXVADevice9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DDXVADevice9 methods ***/ + STDMETHOD(BeginFrame)(THIS_ IDirect3DSurface9* pDstSurface, + DWORD SizeInputData,VOID* pInputData, + DWORD* pSizeOutputData,VOID* pOutputData) PURE; + STDMETHOD(EndFrame)(THIS_ DWORD SizeMiscData,VOID* pMiscData) PURE; + STDMETHOD(Execute)(THIS_ DWORD FunctionNum,VOID* pInputData, + DWORD InputSize,VOID* OuputData,DWORD OutputSize, + DWORD NumBuffers,DXVABufferInfo* pBufferInfo) PURE; + STDMETHOD(QueryStatus)(THIS_ IDirect3DSurface9* pSurface,DWORD Flags) PURE; +}; + +#endif /* __DXVA1_DEPRECATED_INTERFACES__ */ + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* __DIRECTX_VA__ */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.h new file mode 100644 index 0000000000000000000000000000000000000000..b1167178b2764d740b680722205ce5ae5224061a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.h @@ -0,0 +1,2016 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dxva2api_h__ +#define __dxva2api_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDirect3DDeviceManager9_FWD_DEFINED__ +#define __IDirect3DDeviceManager9_FWD_DEFINED__ +typedef interface IDirect3DDeviceManager9 IDirect3DDeviceManager9; + +#endif /* __IDirect3DDeviceManager9_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoAccelerationService_FWD_DEFINED__ +#define __IDirectXVideoAccelerationService_FWD_DEFINED__ +typedef interface IDirectXVideoAccelerationService IDirectXVideoAccelerationService; + +#endif /* __IDirectXVideoAccelerationService_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoDecoderService_FWD_DEFINED__ +#define __IDirectXVideoDecoderService_FWD_DEFINED__ +typedef interface IDirectXVideoDecoderService IDirectXVideoDecoderService; + +#endif /* __IDirectXVideoDecoderService_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoProcessorService_FWD_DEFINED__ +#define __IDirectXVideoProcessorService_FWD_DEFINED__ +typedef interface IDirectXVideoProcessorService IDirectXVideoProcessorService; + +#endif /* __IDirectXVideoProcessorService_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoDecoder_FWD_DEFINED__ +#define __IDirectXVideoDecoder_FWD_DEFINED__ +typedef interface IDirectXVideoDecoder IDirectXVideoDecoder; + +#endif /* __IDirectXVideoDecoder_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoProcessor_FWD_DEFINED__ +#define __IDirectXVideoProcessor_FWD_DEFINED__ +typedef interface IDirectXVideoProcessor IDirectXVideoProcessor; + +#endif /* __IDirectXVideoProcessor_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoMemoryConfiguration_FWD_DEFINED__ +#define __IDirectXVideoMemoryConfiguration_FWD_DEFINED__ +typedef interface IDirectXVideoMemoryConfiguration IDirectXVideoMemoryConfiguration; + +#endif /* __IDirectXVideoMemoryConfiguration_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dxva2api_0000_0000 */ +/* [local] */ + +#include +// +// The following declarations within the 'if 0' block are dummy typedefs used to make +// the evr.idl file build. The actual definitions are contained in d3d9.h +// +#if 0 +typedef DWORD IDirect3DDevice9; + +typedef DWORD IDirect3DSurface9; + +typedef DWORD D3DFORMAT; + +typedef DWORD D3DPOOL; + +#endif +#ifndef DXVA2_API_DEFINED +#define DXVA2_API_DEFINED +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +DEFINE_GUID(DXVA2_ModeMPEG2_MoComp, 0xe6a9f44b, 0x61b0, 0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66); +DEFINE_GUID(DXVA2_ModeMPEG2_IDCT, 0xbf22ad00, 0x03ea, 0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e); +DEFINE_GUID(DXVA2_ModeMPEG2_VLD, 0xee27417f, 0x5e28, 0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9); +DEFINE_GUID(DXVA2_ModeMPEG1_VLD, 0x6f3ec719, 0x3735, 0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16); +DEFINE_GUID(DXVA2_ModeMPEG2and1_VLD,0x86695f12, 0x340e, 0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60); +DEFINE_GUID(DXVA2_ModeH264_A, 0x1b81be64, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_B, 0x1b81be65, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_C, 0x1b81be66, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_D, 0x1b81be67, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_E, 0x1b81be68, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_F, 0x1b81be69, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_VLD_WithFMOASO_NoFGT, 0xd5f04ff9, 0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd); +DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT, 0xd79be8da, 0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d); +DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_NoFGT, 0xf9aaccbb, 0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52); +DEFINE_GUID(DXVA2_ModeH264_VLD_Multiview_NoFGT, 0x705b9d82, 0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c); +DEFINE_GUID(DXVA2_ModeWMV8_A, 0x1b81be80, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeWMV8_B, 0x1b81be81, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeWMV9_A, 0x1b81be90, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeWMV9_B, 0x1b81be91, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeWMV9_C, 0x1b81be94, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeVC1_A, 0x1b81beA0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeVC1_B, 0x1b81beA1, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeVC1_C, 0x1b81beA2, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeVC1_D2010,0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_VideoProcProgressiveDevice, 0x5a54a0c9,0xc7ec,0x4bd9,0x8e,0xde,0xf3,0xc7,0x5d,0xc4,0x39,0x3b); +DEFINE_GUID(DXVA2_VideoProcBobDevice, 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e); +DEFINE_GUID(DXVA2_VideoProcSoftwareDevice, 0x4553d47f,0xee7e,0x4e3f,0x94,0x75,0xdb,0xf1,0x37,0x6c,0x48,0x10); +DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_Simple, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19); +DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC, 0xed418a9f, 0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e); +DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_GMC, 0xab998b5b, 0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae); +DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main, 0x5b11d51b, 0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0); +DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main10, 0x107af0e0, 0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13); +DEFINE_GUID(DXVA2_ModeVP9_VLD_Profile0, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e); +DEFINE_GUID(DXVA2_ModeVP9_VLD_10bit_Profile2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7); +DEFINE_GUID(DXVA2_ModeVP8_VLD, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7); +#define DXVA2_ModeMPEG2_MOCOMP DXVA2_ModeMPEG2_MoComp +#define DXVA2_ModeWMV8_PostProc DXVA2_ModeWMV8_A +#define DXVA2_ModeWMV8_MoComp DXVA2_ModeWMV8_B +#define DXVA2_ModeWMV9_PostProc DXVA2_ModeWMV9_A +#define DXVA2_ModeWMV9_MoComp DXVA2_ModeWMV9_B +#define DXVA2_ModeWMV9_IDCT DXVA2_ModeWMV9_C +#define DXVA2_ModeVC1_PostProc DXVA2_ModeVC1_A +#define DXVA2_ModeVC1_MoComp DXVA2_ModeVC1_B +#define DXVA2_ModeVC1_IDCT DXVA2_ModeVC1_C +#define DXVA2_ModeVC1_VLD DXVA2_ModeVC1_D +#define DXVA2_ModeH264_MoComp_NoFGT DXVA2_ModeH264_A +#define DXVA2_ModeH264_MoComp_FGT DXVA2_ModeH264_B +#define DXVA2_ModeH264_IDCT_NoFGT DXVA2_ModeH264_C +#define DXVA2_ModeH264_IDCT_FGT DXVA2_ModeH264_D +#define DXVA2_ModeH264_VLD_NoFGT DXVA2_ModeH264_E +#define DXVA2_ModeH264_VLD_FGT DXVA2_ModeH264_F +#define DXVA2_E_NOT_INITIALIZED ((HRESULT)0x80041000L) +#define DXVA2_E_NEW_VIDEO_DEVICE ((HRESULT)0x80041001L) +#define DXVA2_E_VIDEO_DEVICE_LOCKED ((HRESULT)0x80041002L) +#define DXVA2_E_NOT_AVAILABLE ((HRESULT)0x80041003L) +#if defined(_WIN32) && !defined(_NO_COM) +DEFINE_GUID(IID_IDirect3DDeviceManager9, 0xa0cade0f,0x06d5,0x4cf4,0xa1,0xc7,0xf3,0xcd,0xd7,0x25,0xaa,0x75); +DEFINE_GUID(IID_IDirectXVideoAccelerationService, 0xfc51a550,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02); +DEFINE_GUID(IID_IDirectXVideoDecoderService, 0xfc51a551,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02); +DEFINE_GUID(IID_IDirectXVideoProcessorService, 0xfc51a552,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02); +DEFINE_GUID(IID_IDirectXVideoDecoder, 0xf2b0810a,0xfd00,0x43c9,0x91,0x8c,0xdf,0x94,0xe2,0xd8,0xef,0x7d); +DEFINE_GUID(IID_IDirectXVideoProcessor, 0x8c3a39f0,0x916e,0x4690,0x80,0x4f,0x4c,0x80,0x01,0x35,0x5d,0x25); +DEFINE_GUID(IID_IDirectXVideoMemoryConfiguration, 0xb7f916dd,0xdb3b,0x49c1,0x84,0xd7,0xe4,0x5e,0xf9,0x9e,0xc7,0x26); +#endif +#ifndef MAX_DEINTERLACE_SURFACES +#define MAX_DEINTERLACE_SURFACES 32 +#endif +#ifndef MAX_SUBSTREAMS +#define MAX_SUBSTREAMS 15 +#endif +#pragma warning( push ) +#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union +typedef struct _DXVA2_ExtendedFormat + { + union + { + struct + { + UINT SampleFormat : 8; + UINT VideoChromaSubsampling : 4; + UINT NominalRange : 3; + UINT VideoTransferMatrix : 3; + UINT VideoLighting : 4; + UINT VideoPrimaries : 5; + UINT VideoTransferFunction : 5; + } ; + UINT value; + } ; + } DXVA2_ExtendedFormat; + +#pragma warning( pop ) +typedef +enum _DXVA2_SampleFormat + { + DXVA2_SampleFormatMask = 0xff, + DXVA2_SampleUnknown = 0, + DXVA2_SampleProgressiveFrame = 2, + DXVA2_SampleFieldInterleavedEvenFirst = 3, + DXVA2_SampleFieldInterleavedOddFirst = 4, + DXVA2_SampleFieldSingleEven = 5, + DXVA2_SampleFieldSingleOdd = 6, + DXVA2_SampleSubStream = 7 + } DXVA2_SampleFormat; + +typedef +enum _DXVA2_VideoChromaSubSampling + { + DXVA2_VideoChromaSubsamplingMask = 0xf, + DXVA2_VideoChromaSubsampling_Unknown = 0, + DXVA2_VideoChromaSubsampling_ProgressiveChroma = 0x8, + DXVA2_VideoChromaSubsampling_Horizontally_Cosited = 0x4, + DXVA2_VideoChromaSubsampling_Vertically_Cosited = 0x2, + DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1, + DXVA2_VideoChromaSubsampling_MPEG2 = ( DXVA2_VideoChromaSubsampling_Horizontally_Cosited | DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes ) , + DXVA2_VideoChromaSubsampling_MPEG1 = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + DXVA2_VideoChromaSubsampling_DV_PAL = ( DXVA2_VideoChromaSubsampling_Horizontally_Cosited | DXVA2_VideoChromaSubsampling_Vertically_Cosited ) , + DXVA2_VideoChromaSubsampling_Cosited = ( ( DXVA2_VideoChromaSubsampling_Horizontally_Cosited | DXVA2_VideoChromaSubsampling_Vertically_Cosited ) | DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes ) + } DXVA2_VideoChromaSubSampling; + +typedef +enum _DXVA2_NominalRange + { + DXVA2_NominalRangeMask = 0x7, + DXVA2_NominalRange_Unknown = 0, + DXVA2_NominalRange_Normal = 1, + DXVA2_NominalRange_Wide = 2, + DXVA2_NominalRange_0_255 = 1, + DXVA2_NominalRange_16_235 = 2, + DXVA2_NominalRange_48_208 = 3 + } DXVA2_NominalRange; + +typedef +enum _DXVA2_VideoTransferMatrix + { + DXVA2_VideoTransferMatrixMask = 0x7, + DXVA2_VideoTransferMatrix_Unknown = 0, + DXVA2_VideoTransferMatrix_BT709 = 1, + DXVA2_VideoTransferMatrix_BT601 = 2, + DXVA2_VideoTransferMatrix_SMPTE240M = 3 + } DXVA2_VideoTransferMatrix; + +typedef +enum _DXVA2_VideoLighting + { + DXVA2_VideoLightingMask = 0xf, + DXVA2_VideoLighting_Unknown = 0, + DXVA2_VideoLighting_bright = 1, + DXVA2_VideoLighting_office = 2, + DXVA2_VideoLighting_dim = 3, + DXVA2_VideoLighting_dark = 4 + } DXVA2_VideoLighting; + +typedef +enum _DXVA2_VideoPrimaries + { + DXVA2_VideoPrimariesMask = 0x1f, + DXVA2_VideoPrimaries_Unknown = 0, + DXVA2_VideoPrimaries_reserved = 1, + DXVA2_VideoPrimaries_BT709 = 2, + DXVA2_VideoPrimaries_BT470_2_SysM = 3, + DXVA2_VideoPrimaries_BT470_2_SysBG = 4, + DXVA2_VideoPrimaries_SMPTE170M = 5, + DXVA2_VideoPrimaries_SMPTE240M = 6, + DXVA2_VideoPrimaries_EBU3213 = 7, + DXVA2_VideoPrimaries_SMPTE_C = 8 + } DXVA2_VideoPrimaries; + +typedef +enum _DXVA2_VideoTransferFunction + { + DXVA2_VideoTransFuncMask = 0x1f, + DXVA2_VideoTransFunc_Unknown = 0, + DXVA2_VideoTransFunc_10 = 1, + DXVA2_VideoTransFunc_18 = 2, + DXVA2_VideoTransFunc_20 = 3, + DXVA2_VideoTransFunc_22 = 4, + DXVA2_VideoTransFunc_709 = 5, + DXVA2_VideoTransFunc_240M = 6, + DXVA2_VideoTransFunc_sRGB = 7, + DXVA2_VideoTransFunc_28 = 8 + } DXVA2_VideoTransferFunction; + +// +// Deprecated labels - please use the ones in the DXVA2_VideoTransferFunction enum. +// +#define DXVA2_VideoTransFunc_22_709 DXVA2_VideoTransFunc_709 +#define DXVA2_VideoTransFunc_22_240M DXVA2_VideoTransFunc_240M +#define DXVA2_VideoTransFunc_22_8bit_sRGB DXVA2_VideoTransFunc_sRGB +typedef struct _DXVA2_Frequency + { + UINT Numerator; + UINT Denominator; + } DXVA2_Frequency; + +typedef struct _DXVA2_VideoDesc + { + UINT SampleWidth; + UINT SampleHeight; + DXVA2_ExtendedFormat SampleFormat; + D3DFORMAT Format; + DXVA2_Frequency InputSampleFreq; + DXVA2_Frequency OutputFrameFreq; + UINT UABProtectionLevel; + UINT Reserved; + } DXVA2_VideoDesc; + + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0003 + { + DXVA2_DeinterlaceTech_Unknown = 0, + DXVA2_DeinterlaceTech_BOBLineReplicate = 0x1, + DXVA2_DeinterlaceTech_BOBVerticalStretch = 0x2, + DXVA2_DeinterlaceTech_BOBVerticalStretch4Tap = 0x4, + DXVA2_DeinterlaceTech_MedianFiltering = 0x8, + DXVA2_DeinterlaceTech_EdgeFiltering = 0x10, + DXVA2_DeinterlaceTech_FieldAdaptive = 0x20, + DXVA2_DeinterlaceTech_PixelAdaptive = 0x40, + DXVA2_DeinterlaceTech_MotionVectorSteered = 0x80, + DXVA2_DeinterlaceTech_InverseTelecine = 0x100, + DXVA2_DeinterlaceTech_Mask = 0x1ff + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0004 + { + DXVA2_NoiseFilterLumaLevel = 1, + DXVA2_NoiseFilterLumaThreshold = 2, + DXVA2_NoiseFilterLumaRadius = 3, + DXVA2_NoiseFilterChromaLevel = 4, + DXVA2_NoiseFilterChromaThreshold = 5, + DXVA2_NoiseFilterChromaRadius = 6, + DXVA2_DetailFilterLumaLevel = 7, + DXVA2_DetailFilterLumaThreshold = 8, + DXVA2_DetailFilterLumaRadius = 9, + DXVA2_DetailFilterChromaLevel = 10, + DXVA2_DetailFilterChromaThreshold = 11, + DXVA2_DetailFilterChromaRadius = 12 + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0005 + { + DXVA2_NoiseFilterTech_Unsupported = 0, + DXVA2_NoiseFilterTech_Unknown = 0x1, + DXVA2_NoiseFilterTech_Median = 0x2, + DXVA2_NoiseFilterTech_Temporal = 0x4, + DXVA2_NoiseFilterTech_BlockNoise = 0x8, + DXVA2_NoiseFilterTech_MosquitoNoise = 0x10, + DXVA2_NoiseFilterTech_Mask = 0x1f + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0006 + { + DXVA2_DetailFilterTech_Unsupported = 0, + DXVA2_DetailFilterTech_Unknown = 0x1, + DXVA2_DetailFilterTech_Edge = 0x2, + DXVA2_DetailFilterTech_Sharpening = 0x4, + DXVA2_DetailFilterTech_Mask = 0x7 + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0007 + { + DXVA2_ProcAmp_None = 0, + DXVA2_ProcAmp_Brightness = 0x1, + DXVA2_ProcAmp_Contrast = 0x2, + DXVA2_ProcAmp_Hue = 0x4, + DXVA2_ProcAmp_Saturation = 0x8, + DXVA2_ProcAmp_Mask = 0xf + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0008 + { + DXVA2_VideoProcess_None = 0, + DXVA2_VideoProcess_YUV2RGB = 0x1, + DXVA2_VideoProcess_StretchX = 0x2, + DXVA2_VideoProcess_StretchY = 0x4, + DXVA2_VideoProcess_AlphaBlend = 0x8, + DXVA2_VideoProcess_SubRects = 0x10, + DXVA2_VideoProcess_SubStreams = 0x20, + DXVA2_VideoProcess_SubStreamsExtended = 0x40, + DXVA2_VideoProcess_YUV2RGBExtended = 0x80, + DXVA2_VideoProcess_AlphaBlendExtended = 0x100, + DXVA2_VideoProcess_Constriction = 0x200, + DXVA2_VideoProcess_NoiseFilter = 0x400, + DXVA2_VideoProcess_DetailFilter = 0x800, + DXVA2_VideoProcess_PlanarAlpha = 0x1000, + DXVA2_VideoProcess_LinearScaling = 0x2000, + DXVA2_VideoProcess_GammaCompensated = 0x4000, + DXVA2_VideoProcess_MaintainsOriginalFieldData = 0x8000, + DXVA2_VideoProcess_Mask = 0xffff + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0009 + { + DXVA2_VPDev_HardwareDevice = 0x1, + DXVA2_VPDev_EmulatedDXVA1 = 0x2, + DXVA2_VPDev_SoftwareDevice = 0x4, + DXVA2_VPDev_Mask = 0x7 + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0010 + { + DXVA2_SampleData_RFF = 0x1, + DXVA2_SampleData_TFF = 0x2, + DXVA2_SampleData_RFF_TFF_Present = 0x4, + DXVA2_SampleData_Mask = 0xffff + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0011 + { + DXVA2_DestData_RFF = 0x1, + DXVA2_DestData_TFF = 0x2, + DXVA2_DestData_RFF_TFF_Present = 0x4, + DXVA2_DestData_Mask = 0xffff + } ; +typedef struct _DXVA2_VideoProcessorCaps + { + UINT DeviceCaps; + D3DPOOL InputPool; + UINT NumForwardRefSamples; + UINT NumBackwardRefSamples; + UINT Reserved; + UINT DeinterlaceTechnology; + UINT ProcAmpControlCaps; + UINT VideoProcessorOperations; + UINT NoiseFilterTechnology; + UINT DetailFilterTechnology; + } DXVA2_VideoProcessorCaps; + +#ifdef __midl +typedef LONG DXVA2_Fixed32; + +#else +#pragma warning( push ) +#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union +typedef struct _DXVA2_Fixed32 +{ + union { + struct { + USHORT Fraction; + SHORT Value; + }; + LONG ll; + }; +} DXVA2_Fixed32; +#pragma warning( pop ) +#endif +typedef struct _DXVA2_AYUVSample8 + { + UCHAR Cr; + UCHAR Cb; + UCHAR Y; + UCHAR Alpha; + } DXVA2_AYUVSample8; + +typedef struct _DXVA2_AYUVSample16 + { + USHORT Cr; + USHORT Cb; + USHORT Y; + USHORT Alpha; + } DXVA2_AYUVSample16; + +typedef LONGLONG REFERENCE_TIME; + +#if defined(_D3D9_H_) || defined(_d3d9P_H_) +typedef struct _DXVA2_VideoSample + { + REFERENCE_TIME Start; + REFERENCE_TIME End; + DXVA2_ExtendedFormat SampleFormat; + IDirect3DSurface9 *SrcSurface; + RECT SrcRect; + RECT DstRect; + DXVA2_AYUVSample8 Pal[ 16 ]; + DXVA2_Fixed32 PlanarAlpha; + DWORD SampleData; + } DXVA2_VideoSample; + +#endif // _D3D9_H_ +typedef struct _DXVA2_ValueRange + { + DXVA2_Fixed32 MinValue; + DXVA2_Fixed32 MaxValue; + DXVA2_Fixed32 DefaultValue; + DXVA2_Fixed32 StepSize; + } DXVA2_ValueRange; + +typedef struct _DXVA2_ProcAmpValues + { + DXVA2_Fixed32 Brightness; + DXVA2_Fixed32 Contrast; + DXVA2_Fixed32 Hue; + DXVA2_Fixed32 Saturation; + } DXVA2_ProcAmpValues; + +typedef struct _DXVA2_FilterValues + { + DXVA2_Fixed32 Level; + DXVA2_Fixed32 Threshold; + DXVA2_Fixed32 Radius; + } DXVA2_FilterValues; + +typedef struct _DXVA2_VideoProcessBltParams + { + REFERENCE_TIME TargetFrame; + RECT TargetRect; + SIZE ConstrictionSize; + UINT StreamingFlags; + DXVA2_AYUVSample16 BackgroundColor; + DXVA2_ExtendedFormat DestFormat; + DXVA2_ProcAmpValues ProcAmpValues; + DXVA2_Fixed32 Alpha; + DXVA2_FilterValues NoiseFilterLuma; + DXVA2_FilterValues NoiseFilterChroma; + DXVA2_FilterValues DetailFilterLuma; + DXVA2_FilterValues DetailFilterChroma; + DWORD DestData; + } DXVA2_VideoProcessBltParams; + + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0012 + { + DXVA2_PictureParametersBufferType = 0, + DXVA2_MacroBlockControlBufferType = 1, + DXVA2_ResidualDifferenceBufferType = 2, + DXVA2_DeblockingControlBufferType = 3, + DXVA2_InverseQuantizationMatrixBufferType = 4, + DXVA2_SliceControlBufferType = 5, + DXVA2_BitStreamDateBufferType = 6, + DXVA2_MotionVectorBuffer = 7, + DXVA2_FilmGrainBuffer = 8 + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0013 + { + DXVA2_VideoDecoderRenderTarget = 0, + DXVA2_VideoProcessorRenderTarget = 1, + DXVA2_VideoSoftwareRenderTarget = 2 + } ; +typedef struct _DXVA2_ConfigPictureDecode + { + GUID guidConfigBitstreamEncryption; + GUID guidConfigMBcontrolEncryption; + GUID guidConfigResidDiffEncryption; + UINT ConfigBitstreamRaw; + UINT ConfigMBcontrolRasterOrder; + UINT ConfigResidDiffHost; + UINT ConfigSpatialResid8; + UINT ConfigResid8Subtraction; + UINT ConfigSpatialHost8or9Clipping; + UINT ConfigSpatialResidInterleaved; + UINT ConfigIntraResidUnsigned; + UINT ConfigResidDiffAccelerator; + UINT ConfigHostInverseScan; + UINT ConfigSpecificIDCT; + UINT Config4GroupedCoefs; + USHORT ConfigMinRenderTargetBuffCount; + USHORT ConfigDecoderSpecific; + } DXVA2_ConfigPictureDecode; + +typedef struct _DXVA2_DecodeBufferDesc + { + DWORD CompressedBufferType; + UINT BufferIndex; + UINT DataOffset; + UINT DataSize; + UINT FirstMBaddress; + UINT NumMBsInBuffer; + UINT Width; + UINT Height; + UINT Stride; + UINT ReservedBits; + PVOID pvPVPState; + } DXVA2_DecodeBufferDesc; + +// The value in pvPVPState depends on the type of crypo used. For +// D3DCRYPTOTYPE_AES128_CTR, pvPState points to the following structure: + +typedef struct _DXVA2_AES_CTR_IV + { + UINT64 IV; + UINT64 Count; + } DXVA2_AES_CTR_IV; + +typedef struct _DXVA2_DecodeExtensionData + { + UINT Function; + PVOID pPrivateInputData; + UINT PrivateInputDataSize; + PVOID pPrivateOutputData; + UINT PrivateOutputDataSize; + } DXVA2_DecodeExtensionData; + +// DXVA2_DECODE_GET_DRIVER_HANDLE is an extension function that allows the +// driver to return a handle for the DXVA2 decode device that can be used to +// associate it with a IDirect3DCryptoSession9 interface. When this function +// is used: +// pPrivateInputData = NULL +// pPrivateInputDataSize = 0 +// pPrivateOutputData = HANDLE* +// pPrivateOutputDataSize = sizeof(HANDLE) +#define DXVA2_DECODE_GET_DRIVER_HANDLE 0x725 + +// DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS is an extension function that that allows +// the decoder to specify which portions of the compressed buffers are encrypted. +// If this fucntion is not used to specify this information, it is assumed that +// the entire buffer is encrypted. +// pPrivateInputData = D3DENCRYPTED_BLOCK_INFO*; +// PrivateInputDataSize = sizeof(D3DENCRYPTED_BLOCK_INFO); +// pPrivateOutputData = NULL; +// PrivateOutputDataSize = 0; +#define DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS 0x724 + +typedef struct _DXVA2_DecodeExecuteParams + { + UINT NumCompBuffers; + DXVA2_DecodeBufferDesc *pCompressedBuffers; + DXVA2_DecodeExtensionData *pExtensionData; + } DXVA2_DecodeExecuteParams; + +#if defined(_D3D9_H_) || defined(_d3d9P_H_) + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0000_v0_0_s_ifspec; + +#ifndef __IDirect3DDeviceManager9_INTERFACE_DEFINED__ +#define __IDirect3DDeviceManager9_INTERFACE_DEFINED__ + +/* interface IDirect3DDeviceManager9 */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirect3DDeviceManager9; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a0cade0f-06d5-4cf4-a1c7-f3cdd725aa75") + IDirect3DDeviceManager9 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ResetDevice( + /* [annotation][in] */ + _In_ IDirect3DDevice9 *pDevice, + /* [annotation][in] */ + _In_ UINT resetToken) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenDeviceHandle( + /* [annotation][out] */ + _Out_ HANDLE *phDevice) = 0; + + virtual HRESULT STDMETHODCALLTYPE CloseDeviceHandle( + /* [annotation][in] */ + _In_ HANDLE hDevice) = 0; + + virtual HRESULT STDMETHODCALLTYPE TestDevice( + /* [annotation][in] */ + _In_ HANDLE hDevice) = 0; + + virtual HRESULT STDMETHODCALLTYPE LockDevice( + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][out] */ + _Outptr_ IDirect3DDevice9 **ppDevice, + /* [annotation][in] */ + _In_ BOOL fBlock) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnlockDevice( + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][in] */ + _In_ BOOL fSaveState) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoService( + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][out] */ + _Outptr_ void **ppService) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirect3DDeviceManager9Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirect3DDeviceManager9 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirect3DDeviceManager9 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirect3DDeviceManager9 * This); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, ResetDevice) + HRESULT ( STDMETHODCALLTYPE *ResetDevice )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ IDirect3DDevice9 *pDevice, + /* [annotation][in] */ + _In_ UINT resetToken); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, OpenDeviceHandle) + HRESULT ( STDMETHODCALLTYPE *OpenDeviceHandle )( + IDirect3DDeviceManager9 * This, + /* [annotation][out] */ + _Out_ HANDLE *phDevice); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, CloseDeviceHandle) + HRESULT ( STDMETHODCALLTYPE *CloseDeviceHandle )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ HANDLE hDevice); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, TestDevice) + HRESULT ( STDMETHODCALLTYPE *TestDevice )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ HANDLE hDevice); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, LockDevice) + HRESULT ( STDMETHODCALLTYPE *LockDevice )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][out] */ + _Outptr_ IDirect3DDevice9 **ppDevice, + /* [annotation][in] */ + _In_ BOOL fBlock); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, UnlockDevice) + HRESULT ( STDMETHODCALLTYPE *UnlockDevice )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][in] */ + _In_ BOOL fSaveState); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, GetVideoService) + HRESULT ( STDMETHODCALLTYPE *GetVideoService )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][out] */ + _Outptr_ void **ppService); + + END_INTERFACE + } IDirect3DDeviceManager9Vtbl; + + interface IDirect3DDeviceManager9 + { + CONST_VTBL struct IDirect3DDeviceManager9Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirect3DDeviceManager9_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirect3DDeviceManager9_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirect3DDeviceManager9_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirect3DDeviceManager9_ResetDevice(This,pDevice,resetToken) \ + ( (This)->lpVtbl -> ResetDevice(This,pDevice,resetToken) ) + +#define IDirect3DDeviceManager9_OpenDeviceHandle(This,phDevice) \ + ( (This)->lpVtbl -> OpenDeviceHandle(This,phDevice) ) + +#define IDirect3DDeviceManager9_CloseDeviceHandle(This,hDevice) \ + ( (This)->lpVtbl -> CloseDeviceHandle(This,hDevice) ) + +#define IDirect3DDeviceManager9_TestDevice(This,hDevice) \ + ( (This)->lpVtbl -> TestDevice(This,hDevice) ) + +#define IDirect3DDeviceManager9_LockDevice(This,hDevice,ppDevice,fBlock) \ + ( (This)->lpVtbl -> LockDevice(This,hDevice,ppDevice,fBlock) ) + +#define IDirect3DDeviceManager9_UnlockDevice(This,hDevice,fSaveState) \ + ( (This)->lpVtbl -> UnlockDevice(This,hDevice,fSaveState) ) + +#define IDirect3DDeviceManager9_GetVideoService(This,hDevice,riid,ppService) \ + ( (This)->lpVtbl -> GetVideoService(This,hDevice,riid,ppService) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirect3DDeviceManager9_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectXVideoAccelerationService_INTERFACE_DEFINED__ +#define __IDirectXVideoAccelerationService_INTERFACE_DEFINED__ + +/* interface IDirectXVideoAccelerationService */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoAccelerationService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fc51a550-d5e7-11d9-af55-00054e43ff02") + IDirectXVideoAccelerationService : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateSurface( + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ UINT BackBuffers, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DWORD DxvaType, + /* [annotation][size_is][out] */ + _Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoAccelerationServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoAccelerationService * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoAccelerationService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoAccelerationService * This); + + DECLSPEC_XFGVIRT(IDirectXVideoAccelerationService, CreateSurface) + HRESULT ( STDMETHODCALLTYPE *CreateSurface )( + IDirectXVideoAccelerationService * This, + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ UINT BackBuffers, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DWORD DxvaType, + /* [annotation][size_is][out] */ + _Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle); + + END_INTERFACE + } IDirectXVideoAccelerationServiceVtbl; + + interface IDirectXVideoAccelerationService + { + CONST_VTBL struct IDirectXVideoAccelerationServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoAccelerationService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoAccelerationService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoAccelerationService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoAccelerationService_CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) \ + ( (This)->lpVtbl -> CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoAccelerationService_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectXVideoDecoderService_INTERFACE_DEFINED__ +#define __IDirectXVideoDecoderService_INTERFACE_DEFINED__ + +/* interface IDirectXVideoDecoderService */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoDecoderService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fc51a551-d5e7-11d9-af55-00054e43ff02") + IDirectXVideoDecoderService : public IDirectXVideoAccelerationService + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDecoderDeviceGuids( + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDecoderRenderTargets( + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDecoderConfigurations( + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _Reserved_ void *pReserved, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) DXVA2_ConfigPictureDecode **ppConfigs) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoder( + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ const DXVA2_ConfigPictureDecode *pConfig, + /* [annotation][size_is][in] */ + _In_reads_(NumRenderTargets) IDirect3DSurface9 **ppDecoderRenderTargets, + /* [annotation][in] */ + _In_ UINT NumRenderTargets, + /* [annotation][out] */ + _Outptr_ IDirectXVideoDecoder **ppDecode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoDecoderServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoDecoderService * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoDecoderService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoDecoderService * This); + + DECLSPEC_XFGVIRT(IDirectXVideoAccelerationService, CreateSurface) + HRESULT ( STDMETHODCALLTYPE *CreateSurface )( + IDirectXVideoDecoderService * This, + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ UINT BackBuffers, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DWORD DxvaType, + /* [annotation][size_is][out] */ + _Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, GetDecoderDeviceGuids) + HRESULT ( STDMETHODCALLTYPE *GetDecoderDeviceGuids )( + IDirectXVideoDecoderService * This, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, GetDecoderRenderTargets) + HRESULT ( STDMETHODCALLTYPE *GetDecoderRenderTargets )( + IDirectXVideoDecoderService * This, + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, GetDecoderConfigurations) + HRESULT ( STDMETHODCALLTYPE *GetDecoderConfigurations )( + IDirectXVideoDecoderService * This, + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _Reserved_ void *pReserved, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) DXVA2_ConfigPictureDecode **ppConfigs); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, CreateVideoDecoder) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )( + IDirectXVideoDecoderService * This, + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ const DXVA2_ConfigPictureDecode *pConfig, + /* [annotation][size_is][in] */ + _In_reads_(NumRenderTargets) IDirect3DSurface9 **ppDecoderRenderTargets, + /* [annotation][in] */ + _In_ UINT NumRenderTargets, + /* [annotation][out] */ + _Outptr_ IDirectXVideoDecoder **ppDecode); + + END_INTERFACE + } IDirectXVideoDecoderServiceVtbl; + + interface IDirectXVideoDecoderService + { + CONST_VTBL struct IDirectXVideoDecoderServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoDecoderService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoDecoderService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoDecoderService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoDecoderService_CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) \ + ( (This)->lpVtbl -> CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) ) + + +#define IDirectXVideoDecoderService_GetDecoderDeviceGuids(This,pCount,pGuids) \ + ( (This)->lpVtbl -> GetDecoderDeviceGuids(This,pCount,pGuids) ) + +#define IDirectXVideoDecoderService_GetDecoderRenderTargets(This,Guid,pCount,pFormats) \ + ( (This)->lpVtbl -> GetDecoderRenderTargets(This,Guid,pCount,pFormats) ) + +#define IDirectXVideoDecoderService_GetDecoderConfigurations(This,Guid,pVideoDesc,pReserved,pCount,ppConfigs) \ + ( (This)->lpVtbl -> GetDecoderConfigurations(This,Guid,pVideoDesc,pReserved,pCount,ppConfigs) ) + +#define IDirectXVideoDecoderService_CreateVideoDecoder(This,Guid,pVideoDesc,pConfig,ppDecoderRenderTargets,NumRenderTargets,ppDecode) \ + ( (This)->lpVtbl -> CreateVideoDecoder(This,Guid,pVideoDesc,pConfig,ppDecoderRenderTargets,NumRenderTargets,ppDecode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoDecoderService_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectXVideoProcessorService_INTERFACE_DEFINED__ +#define __IDirectXVideoProcessorService_INTERFACE_DEFINED__ + +/* interface IDirectXVideoProcessorService */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoProcessorService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fc51a552-d5e7-11d9-af55-00054e43ff02") + IDirectXVideoProcessorService : public IDirectXVideoAccelerationService + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterVideoProcessorSoftwareDevice( + /* [annotation][in] */ + _In_ void *pCallbacks) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorDeviceGuids( + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorRenderTargets( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorSubStreamFormats( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][out] */ + _Out_ DXVA2_VideoProcessorCaps *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProcAmpRange( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT ProcAmpCap, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFilterPropertyRange( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT FilterSetting, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessor( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT MaxNumSubStreams, + /* [annotation][out] */ + _Outptr_ IDirectXVideoProcessor **ppVidProcess) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoProcessorServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoProcessorService * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoProcessorService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoProcessorService * This); + + DECLSPEC_XFGVIRT(IDirectXVideoAccelerationService, CreateSurface) + HRESULT ( STDMETHODCALLTYPE *CreateSurface )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ UINT BackBuffers, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DWORD DxvaType, + /* [annotation][size_is][out] */ + _Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, RegisterVideoProcessorSoftwareDevice) + HRESULT ( STDMETHODCALLTYPE *RegisterVideoProcessorSoftwareDevice )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ void *pCallbacks); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorDeviceGuids) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorDeviceGuids )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorRenderTargets) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorRenderTargets )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorSubStreamFormats) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorSubStreamFormats )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][out] */ + _Out_ DXVA2_VideoProcessorCaps *pCaps); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetProcAmpRange) + HRESULT ( STDMETHODCALLTYPE *GetProcAmpRange )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT ProcAmpCap, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetFilterPropertyRange) + HRESULT ( STDMETHODCALLTYPE *GetFilterPropertyRange )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT FilterSetting, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT MaxNumSubStreams, + /* [annotation][out] */ + _Outptr_ IDirectXVideoProcessor **ppVidProcess); + + END_INTERFACE + } IDirectXVideoProcessorServiceVtbl; + + interface IDirectXVideoProcessorService + { + CONST_VTBL struct IDirectXVideoProcessorServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoProcessorService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoProcessorService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoProcessorService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoProcessorService_CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) \ + ( (This)->lpVtbl -> CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) ) + + +#define IDirectXVideoProcessorService_RegisterVideoProcessorSoftwareDevice(This,pCallbacks) \ + ( (This)->lpVtbl -> RegisterVideoProcessorSoftwareDevice(This,pCallbacks) ) + +#define IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids(This,pVideoDesc,pCount,pGuids) \ + ( (This)->lpVtbl -> GetVideoProcessorDeviceGuids(This,pVideoDesc,pCount,pGuids) ) + +#define IDirectXVideoProcessorService_GetVideoProcessorRenderTargets(This,VideoProcDeviceGuid,pVideoDesc,pCount,pFormats) \ + ( (This)->lpVtbl -> GetVideoProcessorRenderTargets(This,VideoProcDeviceGuid,pVideoDesc,pCount,pFormats) ) + +#define IDirectXVideoProcessorService_GetVideoProcessorSubStreamFormats(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCount,pFormats) \ + ( (This)->lpVtbl -> GetVideoProcessorSubStreamFormats(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCount,pFormats) ) + +#define IDirectXVideoProcessorService_GetVideoProcessorCaps(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorCaps(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCaps) ) + +#define IDirectXVideoProcessorService_GetProcAmpRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,ProcAmpCap,pRange) \ + ( (This)->lpVtbl -> GetProcAmpRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,ProcAmpCap,pRange) ) + +#define IDirectXVideoProcessorService_GetFilterPropertyRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,FilterSetting,pRange) \ + ( (This)->lpVtbl -> GetFilterPropertyRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,FilterSetting,pRange) ) + +#define IDirectXVideoProcessorService_CreateVideoProcessor(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,MaxNumSubStreams,ppVidProcess) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,MaxNumSubStreams,ppVidProcess) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoProcessorService_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectXVideoDecoder_INTERFACE_DEFINED__ +#define __IDirectXVideoDecoder_INTERFACE_DEFINED__ + +/* interface IDirectXVideoDecoder */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoDecoder; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f2b0810a-fd00-43c9-918c-df94e2d8ef7d") + IDirectXVideoDecoder : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetVideoDecoderService( + /* [annotation][out] */ + _Outptr_ IDirectXVideoDecoderService **ppService) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCreationParameters( + /* [annotation][out] */ + _Out_opt_ GUID *pDeviceGuid, + /* [annotation][out] */ + _Out_opt_ DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_opt_ DXVA2_ConfigPictureDecode *pConfig, + /* [annotation][size_is][unique][out] */ + _Out_writes_(*pNumSurfaces) IDirect3DSurface9 ***pDecoderRenderTargets, + /* [annotation][out] */ + _Out_opt_ UINT *pNumSurfaces) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBuffer( + /* [annotation][in] */ + _In_ UINT BufferType, + /* [annotation][out] */ + _Out_ void **ppBuffer, + /* [annotation][out] */ + _Out_ UINT *pBufferSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer( + /* [annotation][in] */ + _In_ UINT BufferType) = 0; + + virtual HRESULT STDMETHODCALLTYPE BeginFrame( + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pRenderTarget, + /* [annotation][in] */ + _In_opt_ void *pvPVPData) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndFrame( + /* [annotation][out] */ + _Inout_opt_ HANDLE *pHandleComplete) = 0; + + virtual HRESULT STDMETHODCALLTYPE Execute( + /* [annotation][in] */ + _In_ const DXVA2_DecodeExecuteParams *pExecuteParams) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoDecoderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoDecoder * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoDecoder * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoDecoder * This); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, GetVideoDecoderService) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderService )( + IDirectXVideoDecoder * This, + /* [annotation][out] */ + _Outptr_ IDirectXVideoDecoderService **ppService); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, GetCreationParameters) + HRESULT ( STDMETHODCALLTYPE *GetCreationParameters )( + IDirectXVideoDecoder * This, + /* [annotation][out] */ + _Out_opt_ GUID *pDeviceGuid, + /* [annotation][out] */ + _Out_opt_ DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_opt_ DXVA2_ConfigPictureDecode *pConfig, + /* [annotation][size_is][unique][out] */ + _Out_writes_(*pNumSurfaces) IDirect3DSurface9 ***pDecoderRenderTargets, + /* [annotation][out] */ + _Out_opt_ UINT *pNumSurfaces); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, GetBuffer) + HRESULT ( STDMETHODCALLTYPE *GetBuffer )( + IDirectXVideoDecoder * This, + /* [annotation][in] */ + _In_ UINT BufferType, + /* [annotation][out] */ + _Out_ void **ppBuffer, + /* [annotation][out] */ + _Out_ UINT *pBufferSize); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, ReleaseBuffer) + HRESULT ( STDMETHODCALLTYPE *ReleaseBuffer )( + IDirectXVideoDecoder * This, + /* [annotation][in] */ + _In_ UINT BufferType); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, BeginFrame) + HRESULT ( STDMETHODCALLTYPE *BeginFrame )( + IDirectXVideoDecoder * This, + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pRenderTarget, + /* [annotation][in] */ + _In_opt_ void *pvPVPData); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, EndFrame) + HRESULT ( STDMETHODCALLTYPE *EndFrame )( + IDirectXVideoDecoder * This, + /* [annotation][out] */ + _Inout_opt_ HANDLE *pHandleComplete); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, Execute) + HRESULT ( STDMETHODCALLTYPE *Execute )( + IDirectXVideoDecoder * This, + /* [annotation][in] */ + _In_ const DXVA2_DecodeExecuteParams *pExecuteParams); + + END_INTERFACE + } IDirectXVideoDecoderVtbl; + + interface IDirectXVideoDecoder + { + CONST_VTBL struct IDirectXVideoDecoderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoDecoder_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoDecoder_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoDecoder_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoDecoder_GetVideoDecoderService(This,ppService) \ + ( (This)->lpVtbl -> GetVideoDecoderService(This,ppService) ) + +#define IDirectXVideoDecoder_GetCreationParameters(This,pDeviceGuid,pVideoDesc,pConfig,pDecoderRenderTargets,pNumSurfaces) \ + ( (This)->lpVtbl -> GetCreationParameters(This,pDeviceGuid,pVideoDesc,pConfig,pDecoderRenderTargets,pNumSurfaces) ) + +#define IDirectXVideoDecoder_GetBuffer(This,BufferType,ppBuffer,pBufferSize) \ + ( (This)->lpVtbl -> GetBuffer(This,BufferType,ppBuffer,pBufferSize) ) + +#define IDirectXVideoDecoder_ReleaseBuffer(This,BufferType) \ + ( (This)->lpVtbl -> ReleaseBuffer(This,BufferType) ) + +#define IDirectXVideoDecoder_BeginFrame(This,pRenderTarget,pvPVPData) \ + ( (This)->lpVtbl -> BeginFrame(This,pRenderTarget,pvPVPData) ) + +#define IDirectXVideoDecoder_EndFrame(This,pHandleComplete) \ + ( (This)->lpVtbl -> EndFrame(This,pHandleComplete) ) + +#define IDirectXVideoDecoder_Execute(This,pExecuteParams) \ + ( (This)->lpVtbl -> Execute(This,pExecuteParams) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoDecoder_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectXVideoProcessor_INTERFACE_DEFINED__ +#define __IDirectXVideoProcessor_INTERFACE_DEFINED__ + +/* interface IDirectXVideoProcessor */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoProcessor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8c3a39f0-916e-4690-804f-4c8001355d25") + IDirectXVideoProcessor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorService( + /* [annotation][out] */ + _Outptr_ IDirectXVideoProcessorService **ppService) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCreationParameters( + /* [annotation][out] */ + _Out_opt_ GUID *pDeviceGuid, + /* [annotation][out] */ + _Out_opt_ DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_opt_ D3DFORMAT *pRenderTargetFormat, + /* [annotation][out] */ + _Out_opt_ UINT *pMaxNumSubStreams) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps( + /* [annotation][out] */ + _Out_ DXVA2_VideoProcessorCaps *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProcAmpRange( + /* [annotation][in] */ + _In_ UINT ProcAmpCap, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFilterPropertyRange( + /* [annotation][in] */ + _In_ UINT FilterSetting, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE VideoProcessBlt( + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pRenderTarget, + /* [annotation][in] */ + _In_ const DXVA2_VideoProcessBltParams *pBltParams, + /* [annotation][size_is][in] */ + _In_reads_(NumSamples) const DXVA2_VideoSample *pSamples, + /* [annotation][in] */ + _In_ UINT NumSamples, + /* [annotation][out] */ + _Inout_opt_ HANDLE *pHandleComplete) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoProcessorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoProcessor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoProcessor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoProcessor * This); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetVideoProcessorService) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorService )( + IDirectXVideoProcessor * This, + /* [annotation][out] */ + _Outptr_ IDirectXVideoProcessorService **ppService); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetCreationParameters) + HRESULT ( STDMETHODCALLTYPE *GetCreationParameters )( + IDirectXVideoProcessor * This, + /* [annotation][out] */ + _Out_opt_ GUID *pDeviceGuid, + /* [annotation][out] */ + _Out_opt_ DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_opt_ D3DFORMAT *pRenderTargetFormat, + /* [annotation][out] */ + _Out_opt_ UINT *pMaxNumSubStreams); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetVideoProcessorCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )( + IDirectXVideoProcessor * This, + /* [annotation][out] */ + _Out_ DXVA2_VideoProcessorCaps *pCaps); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetProcAmpRange) + HRESULT ( STDMETHODCALLTYPE *GetProcAmpRange )( + IDirectXVideoProcessor * This, + /* [annotation][in] */ + _In_ UINT ProcAmpCap, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetFilterPropertyRange) + HRESULT ( STDMETHODCALLTYPE *GetFilterPropertyRange )( + IDirectXVideoProcessor * This, + /* [annotation][in] */ + _In_ UINT FilterSetting, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, VideoProcessBlt) + HRESULT ( STDMETHODCALLTYPE *VideoProcessBlt )( + IDirectXVideoProcessor * This, + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pRenderTarget, + /* [annotation][in] */ + _In_ const DXVA2_VideoProcessBltParams *pBltParams, + /* [annotation][size_is][in] */ + _In_reads_(NumSamples) const DXVA2_VideoSample *pSamples, + /* [annotation][in] */ + _In_ UINT NumSamples, + /* [annotation][out] */ + _Inout_opt_ HANDLE *pHandleComplete); + + END_INTERFACE + } IDirectXVideoProcessorVtbl; + + interface IDirectXVideoProcessor + { + CONST_VTBL struct IDirectXVideoProcessorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoProcessor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoProcessor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoProcessor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoProcessor_GetVideoProcessorService(This,ppService) \ + ( (This)->lpVtbl -> GetVideoProcessorService(This,ppService) ) + +#define IDirectXVideoProcessor_GetCreationParameters(This,pDeviceGuid,pVideoDesc,pRenderTargetFormat,pMaxNumSubStreams) \ + ( (This)->lpVtbl -> GetCreationParameters(This,pDeviceGuid,pVideoDesc,pRenderTargetFormat,pMaxNumSubStreams) ) + +#define IDirectXVideoProcessor_GetVideoProcessorCaps(This,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorCaps(This,pCaps) ) + +#define IDirectXVideoProcessor_GetProcAmpRange(This,ProcAmpCap,pRange) \ + ( (This)->lpVtbl -> GetProcAmpRange(This,ProcAmpCap,pRange) ) + +#define IDirectXVideoProcessor_GetFilterPropertyRange(This,FilterSetting,pRange) \ + ( (This)->lpVtbl -> GetFilterPropertyRange(This,FilterSetting,pRange) ) + +#define IDirectXVideoProcessor_VideoProcessBlt(This,pRenderTarget,pBltParams,pSamples,NumSamples,pHandleComplete) \ + ( (This)->lpVtbl -> VideoProcessBlt(This,pRenderTarget,pBltParams,pSamples,NumSamples,pHandleComplete) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoProcessor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dxva2api_0000_0006 */ +/* [local] */ + +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_dxva2api_0000_0006_0001 + { + DXVA2_SurfaceType_DecoderRenderTarget = 0, + DXVA2_SurfaceType_ProcessorRenderTarget = 1, + DXVA2_SurfaceType_D3DRenderTargetTexture = 2 + } DXVA2_SurfaceType; + + + +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0006_v0_0_s_ifspec; + +#ifndef __IDirectXVideoMemoryConfiguration_INTERFACE_DEFINED__ +#define __IDirectXVideoMemoryConfiguration_INTERFACE_DEFINED__ + +/* interface IDirectXVideoMemoryConfiguration */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoMemoryConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b7f916dd-db3b-49c1-84d7-e45ef99ec726") + IDirectXVideoMemoryConfiguration : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAvailableSurfaceTypeByIndex( + /* [annotation][in] */ + _In_ DWORD dwTypeIndex, + /* [annotation][out] */ + _Out_ DXVA2_SurfaceType *pdwType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSurfaceType( + /* [annotation][in] */ + _In_ DXVA2_SurfaceType dwType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoMemoryConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoMemoryConfiguration * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoMemoryConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoMemoryConfiguration * This); + + DECLSPEC_XFGVIRT(IDirectXVideoMemoryConfiguration, GetAvailableSurfaceTypeByIndex) + HRESULT ( STDMETHODCALLTYPE *GetAvailableSurfaceTypeByIndex )( + IDirectXVideoMemoryConfiguration * This, + /* [annotation][in] */ + _In_ DWORD dwTypeIndex, + /* [annotation][out] */ + _Out_ DXVA2_SurfaceType *pdwType); + + DECLSPEC_XFGVIRT(IDirectXVideoMemoryConfiguration, SetSurfaceType) + HRESULT ( STDMETHODCALLTYPE *SetSurfaceType )( + IDirectXVideoMemoryConfiguration * This, + /* [annotation][in] */ + _In_ DXVA2_SurfaceType dwType); + + END_INTERFACE + } IDirectXVideoMemoryConfigurationVtbl; + + interface IDirectXVideoMemoryConfiguration + { + CONST_VTBL struct IDirectXVideoMemoryConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoMemoryConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoMemoryConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoMemoryConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoMemoryConfiguration_GetAvailableSurfaceTypeByIndex(This,dwTypeIndex,pdwType) \ + ( (This)->lpVtbl -> GetAvailableSurfaceTypeByIndex(This,dwTypeIndex,pdwType) ) + +#define IDirectXVideoMemoryConfiguration_SetSurfaceType(This,dwType) \ + ( (This)->lpVtbl -> SetSurfaceType(This,dwType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoMemoryConfiguration_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dxva2api_0000_0007 */ +/* [local] */ + +STDAPI DXVA2CreateDirect3DDeviceManager9( + _Out_ UINT* pResetToken, + _Outptr_ IDirect3DDeviceManager9** ppDeviceManager + ); +STDAPI DXVA2CreateVideoService( + _In_ IDirect3DDevice9* pDD, + _In_ REFIID riid, + _Outptr_ void** ppService + ); +#endif // _D3D9_H_ +__inline DXVA2_Fixed32 DXVA2FloatToFixed(_In_ const float _float_) +{ + DXVA2_Fixed32 _fixed_; + _fixed_.Fraction = LOWORD(_float_ * 0x10000); + _fixed_.Value = HIWORD(_float_ * 0x10000); + return _fixed_; +} +__inline float DXVA2FixedToFloat(_In_ const DXVA2_Fixed32 _fixed_) +{ + return (FLOAT)_fixed_.Value + (FLOAT)_fixed_.Fraction / 0x10000; +} +__inline const DXVA2_Fixed32 DXVA2_Fixed32TransparentAlpha() +{ + DXVA2_Fixed32 _fixed_ = {0, 0}; + return _fixed_; +} +__inline const DXVA2_Fixed32 DXVA2_Fixed32OpaqueAlpha() +{ + DXVA2_Fixed32 _fixed_ = {0, 1}; + return _fixed_; +} +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.idl new file mode 100644 index 0000000000000000000000000000000000000000..5ca7bc2e3ee3b8b2390e1c12903ca71a10473156 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.idl @@ -0,0 +1,1039 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Public Interfaces for DXVA2 +// +// Copyright (c) 1999 - 2005, Microsoft Corporation. All rights reserved. +/////////////////////////////////////////////////////////////////////////////// + +import "unknwn.idl"; + +cpp_quote("#include ") + +cpp_quote("//") +cpp_quote("// The following declarations within the 'if 0' block are dummy typedefs used to make") +cpp_quote("// the evr.idl file build. The actual definitions are contained in d3d9.h") +cpp_quote("//") +cpp_quote("#if 0") + +typedef DWORD IDirect3DDevice9; +typedef DWORD IDirect3DSurface9; + +typedef DWORD D3DFORMAT; +typedef DWORD D3DPOOL; + +cpp_quote("#endif") + +cpp_quote("#ifndef DXVA2_API_DEFINED") +cpp_quote("#define DXVA2_API_DEFINED") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +//============================================================================= +// Description: +// +// Decode guids potentially supported by the underlying device hardware. +// +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_MoComp, 0xe6a9f44b, 0x61b0, 0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_IDCT, 0xbf22ad00, 0x03ea, 0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_VLD, 0xee27417f, 0x5e28, 0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG1_VLD, 0x6f3ec719, 0x3735, 0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2and1_VLD,0x86695f12, 0x340e, 0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_A, 0x1b81be64, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_B, 0x1b81be65, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_C, 0x1b81be66, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_D, 0x1b81be67, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_E, 0x1b81be68, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_F, 0x1b81be69, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_WithFMOASO_NoFGT, 0xd5f04ff9, 0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT, 0xd79be8da, 0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_NoFGT, 0xf9aaccbb, 0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Multiview_NoFGT, 0x705b9d82, 0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeWMV8_A, 0x1b81be80, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeWMV8_B, 0x1b81be81, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_A, 0x1b81be90, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_B, 0x1b81be91, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_C, 0x1b81be94, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_A, 0x1b81beA0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_B, 0x1b81beA1, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_C, 0x1b81beA2, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_D2010,0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(DXVA2_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(DXVA2_VideoProcProgressiveDevice, 0x5a54a0c9,0xc7ec,0x4bd9,0x8e,0xde,0xf3,0xc7,0x5d,0xc4,0x39,0x3b);") +cpp_quote("DEFINE_GUID(DXVA2_VideoProcBobDevice, 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e);") +cpp_quote("DEFINE_GUID(DXVA2_VideoProcSoftwareDevice, 0x4553d47f,0xee7e,0x4e3f,0x94,0x75,0xdb,0xf1,0x37,0x6c,0x48,0x10);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_Simple, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC, 0xed418a9f, 0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_GMC, 0xab998b5b, 0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main, 0x5b11d51b, 0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0);") +cpp_quote("DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main10, 0x107af0e0, 0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeVP9_VLD_Profile0, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVP9_VLD_10bit_Profile2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVP8_VLD, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7);") + +cpp_quote("#define DXVA2_ModeMPEG2_MOCOMP DXVA2_ModeMPEG2_MoComp") + +cpp_quote("#define DXVA2_ModeWMV8_PostProc DXVA2_ModeWMV8_A") +cpp_quote("#define DXVA2_ModeWMV8_MoComp DXVA2_ModeWMV8_B") + +cpp_quote("#define DXVA2_ModeWMV9_PostProc DXVA2_ModeWMV9_A") +cpp_quote("#define DXVA2_ModeWMV9_MoComp DXVA2_ModeWMV9_B") +cpp_quote("#define DXVA2_ModeWMV9_IDCT DXVA2_ModeWMV9_C") + +cpp_quote("#define DXVA2_ModeVC1_PostProc DXVA2_ModeVC1_A") +cpp_quote("#define DXVA2_ModeVC1_MoComp DXVA2_ModeVC1_B") +cpp_quote("#define DXVA2_ModeVC1_IDCT DXVA2_ModeVC1_C") +cpp_quote("#define DXVA2_ModeVC1_VLD DXVA2_ModeVC1_D") + +cpp_quote("#define DXVA2_ModeH264_MoComp_NoFGT DXVA2_ModeH264_A") +cpp_quote("#define DXVA2_ModeH264_MoComp_FGT DXVA2_ModeH264_B") +cpp_quote("#define DXVA2_ModeH264_IDCT_NoFGT DXVA2_ModeH264_C") +cpp_quote("#define DXVA2_ModeH264_IDCT_FGT DXVA2_ModeH264_D") +cpp_quote("#define DXVA2_ModeH264_VLD_NoFGT DXVA2_ModeH264_E") +cpp_quote("#define DXVA2_ModeH264_VLD_FGT DXVA2_ModeH264_F") + +//============================================================================= +// Description: +// +// DXVA2-specific error codes. +// +cpp_quote("#define DXVA2_E_NOT_INITIALIZED ((HRESULT)0x80041000L)") +cpp_quote("#define DXVA2_E_NEW_VIDEO_DEVICE ((HRESULT)0x80041001L)") +cpp_quote("#define DXVA2_E_VIDEO_DEVICE_LOCKED ((HRESULT)0x80041002L)") +cpp_quote("#define DXVA2_E_NOT_AVAILABLE ((HRESULT)0x80041003L)") + +//============================================================================= +// Description: +// +// COM objects. +// +cpp_quote("#if defined(_WIN32) && !defined(_NO_COM)") +cpp_quote("DEFINE_GUID(IID_IDirect3DDeviceManager9, 0xa0cade0f,0x06d5,0x4cf4,0xa1,0xc7,0xf3,0xcd,0xd7,0x25,0xaa,0x75);") + +cpp_quote("DEFINE_GUID(IID_IDirectXVideoAccelerationService, 0xfc51a550,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);") +cpp_quote("DEFINE_GUID(IID_IDirectXVideoDecoderService, 0xfc51a551,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);") +cpp_quote("DEFINE_GUID(IID_IDirectXVideoProcessorService, 0xfc51a552,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);") + +cpp_quote("DEFINE_GUID(IID_IDirectXVideoDecoder, 0xf2b0810a,0xfd00,0x43c9,0x91,0x8c,0xdf,0x94,0xe2,0xd8,0xef,0x7d);") +cpp_quote("DEFINE_GUID(IID_IDirectXVideoProcessor, 0x8c3a39f0,0x916e,0x4690,0x80,0x4f,0x4c,0x80,0x01,0x35,0x5d,0x25);") +cpp_quote("DEFINE_GUID(IID_IDirectXVideoMemoryConfiguration, 0xb7f916dd,0xdb3b,0x49c1,0x84,0xd7,0xe4,0x5e,0xf9,0x9e,0xc7,0x26);") +cpp_quote("#endif") + + +//============================================================================= +// Description: +// +// Structures and enums used by the DXVA2 Video Processor API. +// + +cpp_quote("#ifndef MAX_DEINTERLACE_SURFACES") +cpp_quote("#define MAX_DEINTERLACE_SURFACES 32") +cpp_quote("#endif") + +cpp_quote("#ifndef MAX_SUBSTREAMS") +cpp_quote("#define MAX_SUBSTREAMS 15") +cpp_quote("#endif") + +cpp_quote("#pragma warning( push )") +cpp_quote("#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union") +typedef struct _DXVA2_ExtendedFormat +{ + union { + struct { + UINT SampleFormat : 8; // See DXVA2_SampleFormat + UINT VideoChromaSubsampling : 4; // See DXVA2_VideoChromaSubSampling + UINT NominalRange : 3; // See DXVA2_NominalRange + UINT VideoTransferMatrix : 3; // See DXVA2_VideoTransferMatrix + UINT VideoLighting : 4; // See DXVA2_VideoLighting + UINT VideoPrimaries : 5; // See DXVA2_VideoPrimaries + UINT VideoTransferFunction : 5; // See DXVA2_VideoTransferFunction + }; + UINT value; + }; +} DXVA2_ExtendedFormat; +cpp_quote("#pragma warning( pop )") + +typedef enum _DXVA2_SampleFormat +{ + DXVA2_SampleFormatMask = 0x00FF, // 8 bits used for DXVA Sample format + DXVA2_SampleUnknown = 0, + DXVA2_SampleProgressiveFrame = 2, + DXVA2_SampleFieldInterleavedEvenFirst = 3, + DXVA2_SampleFieldInterleavedOddFirst = 4, + DXVA2_SampleFieldSingleEven = 5, + DXVA2_SampleFieldSingleOdd = 6, + DXVA2_SampleSubStream = 7 +} DXVA2_SampleFormat; + +typedef enum _DXVA2_VideoChromaSubSampling +{ + DXVA2_VideoChromaSubsamplingMask = 0x0F, + DXVA2_VideoChromaSubsampling_Unknown = 0, + + // base values + DXVA2_VideoChromaSubsampling_ProgressiveChroma = 0x8, + DXVA2_VideoChromaSubsampling_Horizontally_Cosited = 0x4, + DXVA2_VideoChromaSubsampling_Vertically_Cosited = 0x2, + DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1, + + // 4:2:0 variations + DXVA2_VideoChromaSubsampling_MPEG2 = DXVA2_VideoChromaSubsampling_Horizontally_Cosited | + DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA2_VideoChromaSubsampling_MPEG1 = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA2_VideoChromaSubsampling_DV_PAL = DXVA2_VideoChromaSubsampling_Horizontally_Cosited | + DXVA2_VideoChromaSubsampling_Vertically_Cosited, + // 4:4:4, 4:2:2, 4:1:1 + DXVA2_VideoChromaSubsampling_Cosited = DXVA2_VideoChromaSubsampling_Horizontally_Cosited | + DXVA2_VideoChromaSubsampling_Vertically_Cosited | + DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, +} DXVA2_VideoChromaSubSampling; + +typedef enum _DXVA2_NominalRange +{ + DXVA2_NominalRangeMask = 0x07, + DXVA2_NominalRange_Unknown = 0, + // older forms + DXVA2_NominalRange_Normal = 1, + DXVA2_NominalRange_Wide = 2, + /// explicit range forms + DXVA2_NominalRange_0_255 = 1, + DXVA2_NominalRange_16_235 = 2, + DXVA2_NominalRange_48_208 = 3 +} DXVA2_NominalRange; + +typedef enum _DXVA2_VideoTransferMatrix +{ + DXVA2_VideoTransferMatrixMask = 0x07, + DXVA2_VideoTransferMatrix_Unknown = 0, + DXVA2_VideoTransferMatrix_BT709 = 1, + DXVA2_VideoTransferMatrix_BT601 = 2, + DXVA2_VideoTransferMatrix_SMPTE240M = 3 +} DXVA2_VideoTransferMatrix; + +typedef enum _DXVA2_VideoLighting +{ + DXVA2_VideoLightingMask = 0x0F, + DXVA2_VideoLighting_Unknown = 0, + DXVA2_VideoLighting_bright = 1, + DXVA2_VideoLighting_office = 2, + DXVA2_VideoLighting_dim = 3, + DXVA2_VideoLighting_dark = 4 +} DXVA2_VideoLighting; + +typedef enum _DXVA2_VideoPrimaries +{ + DXVA2_VideoPrimariesMask = 0x001f, + DXVA2_VideoPrimaries_Unknown = 0, + DXVA2_VideoPrimaries_reserved = 1, + DXVA2_VideoPrimaries_BT709 = 2, + DXVA2_VideoPrimaries_BT470_2_SysM = 3, + DXVA2_VideoPrimaries_BT470_2_SysBG = 4, + DXVA2_VideoPrimaries_SMPTE170M = 5, + DXVA2_VideoPrimaries_SMPTE240M = 6, + DXVA2_VideoPrimaries_EBU3213 = 7, + DXVA2_VideoPrimaries_SMPTE_C = 8 +} DXVA2_VideoPrimaries; + +typedef enum _DXVA2_VideoTransferFunction +{ + DXVA2_VideoTransFuncMask = 0x001f, + DXVA2_VideoTransFunc_Unknown = 0, + DXVA2_VideoTransFunc_10 = 1, + DXVA2_VideoTransFunc_18 = 2, + DXVA2_VideoTransFunc_20 = 3, + DXVA2_VideoTransFunc_22 = 4, + DXVA2_VideoTransFunc_709 = 5, + DXVA2_VideoTransFunc_240M = 6, + DXVA2_VideoTransFunc_sRGB = 7, + DXVA2_VideoTransFunc_28 = 8 +} DXVA2_VideoTransferFunction; + +cpp_quote("//") +cpp_quote("// Deprecated labels - please use the ones in the DXVA2_VideoTransferFunction enum.") +cpp_quote("//") +cpp_quote("#define DXVA2_VideoTransFunc_22_709 DXVA2_VideoTransFunc_709 ") +cpp_quote("#define DXVA2_VideoTransFunc_22_240M DXVA2_VideoTransFunc_240M ") +cpp_quote("#define DXVA2_VideoTransFunc_22_8bit_sRGB DXVA2_VideoTransFunc_sRGB ") + +typedef struct _DXVA2_Frequency +{ + UINT Numerator; + UINT Denominator; +} DXVA2_Frequency; + +typedef struct _DXVA2_VideoDesc +{ + UINT SampleWidth; + UINT SampleHeight; + DXVA2_ExtendedFormat SampleFormat; + D3DFORMAT Format; + DXVA2_Frequency InputSampleFreq; + DXVA2_Frequency OutputFrameFreq; + UINT UABProtectionLevel; + UINT Reserved; +} DXVA2_VideoDesc; + +enum +{ + DXVA2_DeinterlaceTech_Unknown = 0x0000, + DXVA2_DeinterlaceTech_BOBLineReplicate = 0x0001, + DXVA2_DeinterlaceTech_BOBVerticalStretch = 0x0002, + DXVA2_DeinterlaceTech_BOBVerticalStretch4Tap = 0x0004, + DXVA2_DeinterlaceTech_MedianFiltering = 0x0008, + DXVA2_DeinterlaceTech_EdgeFiltering = 0x0010, + DXVA2_DeinterlaceTech_FieldAdaptive = 0x0020, + DXVA2_DeinterlaceTech_PixelAdaptive = 0x0040, + DXVA2_DeinterlaceTech_MotionVectorSteered = 0x0080, + DXVA2_DeinterlaceTech_InverseTelecine = 0x0100, + DXVA2_DeinterlaceTech_Mask = 0x01FF +}; + +enum +{ + DXVA2_NoiseFilterLumaLevel = 1, + DXVA2_NoiseFilterLumaThreshold = 2, + DXVA2_NoiseFilterLumaRadius = 3, + DXVA2_NoiseFilterChromaLevel = 4, + DXVA2_NoiseFilterChromaThreshold = 5, + DXVA2_NoiseFilterChromaRadius = 6, + DXVA2_DetailFilterLumaLevel = 7, + DXVA2_DetailFilterLumaThreshold = 8, + DXVA2_DetailFilterLumaRadius = 9, + DXVA2_DetailFilterChromaLevel = 10, + DXVA2_DetailFilterChromaThreshold = 11, + DXVA2_DetailFilterChromaRadius = 12 +}; + +enum +{ + DXVA2_NoiseFilterTech_Unsupported = 0, + DXVA2_NoiseFilterTech_Unknown = 0x0001, + DXVA2_NoiseFilterTech_Median = 0x0002, + DXVA2_NoiseFilterTech_Temporal = 0x0004, + DXVA2_NoiseFilterTech_BlockNoise = 0x0008, + DXVA2_NoiseFilterTech_MosquitoNoise = 0x0010, + DXVA2_NoiseFilterTech_Mask = 0x001F +}; + +enum +{ + DXVA2_DetailFilterTech_Unsupported = 0, + DXVA2_DetailFilterTech_Unknown = 0x0001, + DXVA2_DetailFilterTech_Edge = 0x0002, + DXVA2_DetailFilterTech_Sharpening = 0x0004, + DXVA2_DetailFilterTech_Mask = 0x0007 +}; + +enum +{ + DXVA2_ProcAmp_None = 0x0000, + DXVA2_ProcAmp_Brightness = 0x0001, + DXVA2_ProcAmp_Contrast = 0x0002, + DXVA2_ProcAmp_Hue = 0x0004, + DXVA2_ProcAmp_Saturation = 0x0008, + DXVA2_ProcAmp_Mask = 0x000F +}; + +enum +{ + DXVA2_VideoProcess_None = 0x0000, + DXVA2_VideoProcess_YUV2RGB = 0x0001, + DXVA2_VideoProcess_StretchX = 0x0002, + DXVA2_VideoProcess_StretchY = 0x0004, + DXVA2_VideoProcess_AlphaBlend = 0x0008, + DXVA2_VideoProcess_SubRects = 0x0010, + DXVA2_VideoProcess_SubStreams = 0x0020, + DXVA2_VideoProcess_SubStreamsExtended = 0x0040, + DXVA2_VideoProcess_YUV2RGBExtended = 0x0080, + DXVA2_VideoProcess_AlphaBlendExtended = 0x0100, + DXVA2_VideoProcess_Constriction = 0x0200, + DXVA2_VideoProcess_NoiseFilter = 0x0400, + DXVA2_VideoProcess_DetailFilter = 0x0800, + DXVA2_VideoProcess_PlanarAlpha = 0x1000, + DXVA2_VideoProcess_LinearScaling = 0x2000, + DXVA2_VideoProcess_GammaCompensated = 0x4000, + DXVA2_VideoProcess_MaintainsOriginalFieldData = 0x8000, + DXVA2_VideoProcess_Mask = 0xFFFF +}; + +enum +{ + DXVA2_VPDev_HardwareDevice = 0x0001, + DXVA2_VPDev_EmulatedDXVA1 = 0x0002, + DXVA2_VPDev_SoftwareDevice = 0x0004, + DXVA2_VPDev_Mask = 0x0007 +}; + +enum +{ + DXVA2_SampleData_RFF = 0x0001, + DXVA2_SampleData_TFF = 0x0002, + DXVA2_SampleData_RFF_TFF_Present = 0x0004, + DXVA2_SampleData_Mask = 0xFFFF +}; + +enum +{ + DXVA2_DestData_RFF = 0x0001, + DXVA2_DestData_TFF = 0x0002, + DXVA2_DestData_RFF_TFF_Present = 0x0004, + DXVA2_DestData_Mask = 0xFFFF +}; + +typedef struct _DXVA2_VideoProcessorCaps +{ + UINT DeviceCaps; // see DXVA2_VPDev_Xxxx + D3DPOOL InputPool; + UINT NumForwardRefSamples; + UINT NumBackwardRefSamples; + UINT Reserved; + UINT DeinterlaceTechnology; // see DXVA2_DeinterlaceTech_Xxxx + UINT ProcAmpControlCaps; // see DXVA2_ProcAmp_Xxxx + UINT VideoProcessorOperations; // see DXVA2_VideoProcess_Xxxx + UINT NoiseFilterTechnology; // see DXVA2_NoiseFilterTech_Xxxx + UINT DetailFilterTechnology; // see DXVA2_DetailFilterTech_Xxxx +} DXVA2_VideoProcessorCaps; + +cpp_quote("#ifdef __midl") +typedef LONG DXVA2_Fixed32; +cpp_quote("#else") +cpp_quote("#pragma warning( push )") +cpp_quote("#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union") +cpp_quote("typedef struct _DXVA2_Fixed32") +cpp_quote("{") +cpp_quote(" union {") +cpp_quote(" struct {") +cpp_quote(" USHORT Fraction;") +cpp_quote(" SHORT Value;") +cpp_quote(" };") +cpp_quote(" LONG ll;") +cpp_quote(" };") +cpp_quote("} DXVA2_Fixed32;") +cpp_quote("#pragma warning( pop )") +cpp_quote("#endif") + +typedef struct _DXVA2_AYUVSample8 +{ + UCHAR Cr; // V + UCHAR Cb; // U + UCHAR Y; + UCHAR Alpha; +} DXVA2_AYUVSample8; + +typedef struct _DXVA2_AYUVSample16 +{ + USHORT Cr; // V + USHORT Cb; // U + USHORT Y; + USHORT Alpha; +} DXVA2_AYUVSample16; + +typedef LONGLONG REFERENCE_TIME; + +cpp_quote("#if defined(_D3D9_H_) || defined(_d3d9P_H_)") + +typedef struct _DXVA2_VideoSample +{ + REFERENCE_TIME Start; + REFERENCE_TIME End; + DXVA2_ExtendedFormat SampleFormat; + IDirect3DSurface9* SrcSurface; + RECT SrcRect; + RECT DstRect; + DXVA2_AYUVSample8 Pal[16]; // Palette used with AI44 surface types + DXVA2_Fixed32 PlanarAlpha; + DWORD SampleData; // Sample metadata +} DXVA2_VideoSample; + +cpp_quote("#endif // _D3D9_H_") + +typedef struct _DXVA2_ValueRange +{ + DXVA2_Fixed32 MinValue; + DXVA2_Fixed32 MaxValue; + DXVA2_Fixed32 DefaultValue; + DXVA2_Fixed32 StepSize; +} DXVA2_ValueRange; + +typedef struct _DXVA2_ProcAmpValues +{ + DXVA2_Fixed32 Brightness; + DXVA2_Fixed32 Contrast; + DXVA2_Fixed32 Hue; + DXVA2_Fixed32 Saturation; +} DXVA2_ProcAmpValues; + +typedef struct _DXVA2_FilterValues { + DXVA2_Fixed32 Level; + DXVA2_Fixed32 Threshold; + DXVA2_Fixed32 Radius; +} DXVA2_FilterValues; + +typedef struct _DXVA2_VideoProcessBltParams +{ + REFERENCE_TIME TargetFrame; + RECT TargetRect; + SIZE ConstrictionSize; + UINT StreamingFlags; + DXVA2_AYUVSample16 BackgroundColor; + DXVA2_ExtendedFormat DestFormat; + DXVA2_ProcAmpValues ProcAmpValues; + DXVA2_Fixed32 Alpha; + DXVA2_FilterValues NoiseFilterLuma; + DXVA2_FilterValues NoiseFilterChroma; + DXVA2_FilterValues DetailFilterLuma; + DXVA2_FilterValues DetailFilterChroma; + DWORD DestData; +} DXVA2_VideoProcessBltParams; + + +//============================================================================= +// Description: +// +// Structures and enums used by the DXVA2 Video Decoding API. +// + +// Compressed buffer types. +enum +{ + DXVA2_PictureParametersBufferType = 0, + DXVA2_MacroBlockControlBufferType = 1, + DXVA2_ResidualDifferenceBufferType = 2, + DXVA2_DeblockingControlBufferType = 3, + DXVA2_InverseQuantizationMatrixBufferType = 4, + DXVA2_SliceControlBufferType = 5, + DXVA2_BitStreamDateBufferType = 6, + DXVA2_MotionVectorBuffer = 7, + DXVA2_FilmGrainBuffer = 8 +}; + +// Uncompressed buffer types +enum +{ + DXVA2_VideoDecoderRenderTarget = 0, + DXVA2_VideoProcessorRenderTarget = 1, + DXVA2_VideoSoftwareRenderTarget = 2 +}; + +typedef struct _DXVA2_ConfigPictureDecode +{ + GUID guidConfigBitstreamEncryption; + GUID guidConfigMBcontrolEncryption; + GUID guidConfigResidDiffEncryption; + UINT ConfigBitstreamRaw; + UINT ConfigMBcontrolRasterOrder; + UINT ConfigResidDiffHost; + UINT ConfigSpatialResid8; + UINT ConfigResid8Subtraction; + UINT ConfigSpatialHost8or9Clipping; + UINT ConfigSpatialResidInterleaved; + UINT ConfigIntraResidUnsigned; + UINT ConfigResidDiffAccelerator; + UINT ConfigHostInverseScan; + UINT ConfigSpecificIDCT; + UINT Config4GroupedCoefs; + USHORT ConfigMinRenderTargetBuffCount; + USHORT ConfigDecoderSpecific; +} DXVA2_ConfigPictureDecode; + +typedef struct _DXVA2_DecodeBufferDesc +{ + DWORD CompressedBufferType; + UINT BufferIndex; // reserved + UINT DataOffset; + UINT DataSize; + UINT FirstMBaddress; + UINT NumMBsInBuffer; + UINT Width; // reserved + UINT Height; // reserved + UINT Stride; // reserved + UINT ReservedBits; + PVOID pvPVPState; +} DXVA2_DecodeBufferDesc; + +cpp_quote("// The value in pvPVPState depends on the type of crypo used. For ") +cpp_quote("// D3DCRYPTOTYPE_AES128_CTR, pvPState points to the following structure:") +cpp_quote(" ") + +typedef struct _DXVA2_AES_CTR_IV +{ + UINT64 IV; // Big-Endian IV + UINT64 Count; // Big-Endian Block Count +} DXVA2_AES_CTR_IV; + +typedef struct _DXVA2_DecodeExtensionData +{ + UINT Function; + PVOID pPrivateInputData; + UINT PrivateInputDataSize; + PVOID pPrivateOutputData; + UINT PrivateOutputDataSize; +} DXVA2_DecodeExtensionData; + +cpp_quote("// DXVA2_DECODE_GET_DRIVER_HANDLE is an extension function that allows the ") +cpp_quote("// driver to return a handle for the DXVA2 decode device that can be used to") +cpp_quote("// associate it with a IDirect3DCryptoSession9 interface. When this function") +cpp_quote("// is used:") +cpp_quote("// pPrivateInputData = NULL") +cpp_quote("// pPrivateInputDataSize = 0") +cpp_quote("// pPrivateOutputData = HANDLE*") +cpp_quote("// pPrivateOutputDataSize = sizeof(HANDLE)") +cpp_quote("#define DXVA2_DECODE_GET_DRIVER_HANDLE 0x725") +cpp_quote(" ") +cpp_quote("// DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS is an extension function that that allows ") +cpp_quote("// the decoder to specify which portions of the compressed buffers are encrypted. ") +cpp_quote("// If this fucntion is not used to specify this information, it is assumed that ") +cpp_quote("// the entire buffer is encrypted. ") +cpp_quote("// pPrivateInputData = D3DENCRYPTED_BLOCK_INFO*; ") +cpp_quote("// PrivateInputDataSize = sizeof(D3DENCRYPTED_BLOCK_INFO); ") +cpp_quote("// pPrivateOutputData = NULL; ") +cpp_quote("// PrivateOutputDataSize = 0; ") +cpp_quote("#define DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS 0x724 ") +cpp_quote(" ") + +typedef struct _DXVA2_DecodeExecuteParams +{ + UINT NumCompBuffers; + DXVA2_DecodeBufferDesc* pCompressedBuffers; + DXVA2_DecodeExtensionData* pExtensionData; +} DXVA2_DecodeExecuteParams; + + +cpp_quote("#if defined(_D3D9_H_) || defined(_d3d9P_H_)") + +//============================================================================= +// Description: +// +// Public interfaces supported by the DXVA2 API. +// +interface IDirect3DDeviceManager9; +interface IDirectXVideoAccelerationService; +interface IDirectXVideoDecoderService; +interface IDirectXVideoProcessorService; +interface IDirectXVideoDecoder; +interface IDirectXVideoProcessor; + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(a0cade0f-06d5-4cf4-a1c7-f3cdd725aa75), + helpstring("IDirect3DDeviceManager9 Interface"), + local +] +interface IDirect3DDeviceManager9 : IUnknown +{ + HRESULT ResetDevice( + [in, annotation("_In_")] IDirect3DDevice9* pDevice, + [in, annotation("_In_")] UINT resetToken + ); + + HRESULT OpenDeviceHandle( + [out, annotation("_Out_")] HANDLE* phDevice + ); + + HRESULT CloseDeviceHandle( + [in, annotation("_In_")] HANDLE hDevice + ); + + HRESULT TestDevice( + [in, annotation("_In_")] HANDLE hDevice + ); + + HRESULT LockDevice( + [in, annotation("_In_")] HANDLE hDevice, + [out, annotation("_Outptr_")] IDirect3DDevice9** ppDevice, + [in, annotation("_In_")] BOOL fBlock + ); + + HRESULT UnlockDevice( + [in, annotation("_In_")] HANDLE hDevice, + [in, annotation("_In_")] BOOL fSaveState + ); + + HRESULT GetVideoService( + [in, annotation("_In_")] HANDLE hDevice, + [in, annotation("_In_")] REFIID riid, + [out, annotation("_Outptr_")] void** ppService + ); +}; + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(fc51a550-d5e7-11d9-af55-00054e43ff02), + helpstring("IDirectXVideoAccelerationService Interface"), + local +] +interface IDirectXVideoAccelerationService : IUnknown +{ + HRESULT CreateSurface( + [in, annotation("_In_")] UINT Width, + [in, annotation("_In_")] UINT Height, + [in, annotation("_In_")] UINT BackBuffers, + [in, annotation("_In_")] D3DFORMAT Format, + [in, annotation("_In_")] D3DPOOL Pool, + [in, annotation("_In_")] DWORD Usage, + [in, annotation("_In_")] DWORD DxvaType, // see DXVA2_VideoXxxxRenderTarget + [out, size_is(BackBuffers+1), annotation("_Out_writes_(BackBuffers+1)")] IDirect3DSurface9** ppSurface, + [in, out, annotation("_Inout_opt_")] HANDLE* pSharedHandle + ); +}; + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(fc51a551-d5e7-11d9-af55-00054e43ff02), + helpstring("IDirectXVideoDecoderService Interface"), + local +] +interface IDirectXVideoDecoderService : IDirectXVideoAccelerationService +{ + HRESULT GetDecoderDeviceGuids( + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] GUID** pGuids + ); + + HRESULT GetDecoderRenderTargets( + [in, annotation("_In_")] REFGUID Guid, + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] D3DFORMAT** pFormats + ); + + HRESULT GetDecoderConfigurations( + [in, annotation("_In_")] REFGUID Guid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_Reserved_")] void* pReserved, + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] DXVA2_ConfigPictureDecode** ppConfigs + ); + + HRESULT CreateVideoDecoder( + [in, annotation("_In_")] REFGUID Guid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] const DXVA2_ConfigPictureDecode* pConfig, + [in, size_is(NumRenderTargets), annotation("_In_reads_(NumRenderTargets)")] IDirect3DSurface9** ppDecoderRenderTargets, + [in, annotation("_In_")] UINT NumRenderTargets, + [out, annotation("_Outptr_")] IDirectXVideoDecoder** ppDecode + ); +}; + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(fc51a552-d5e7-11d9-af55-00054e43ff02), + helpstring("IDirectXVideoProcessorService Interface"), + local +] +interface IDirectXVideoProcessorService : IDirectXVideoAccelerationService +{ + HRESULT RegisterVideoProcessorSoftwareDevice( + [in, annotation("_In_")] void* pCallbacks + ); + + HRESULT GetVideoProcessorDeviceGuids( + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] GUID** pGuids + ); + + HRESULT GetVideoProcessorRenderTargets( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] D3DFORMAT** pFormats + ); + + HRESULT GetVideoProcessorSubStreamFormats( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] D3DFORMAT RenderTargetFormat, + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] D3DFORMAT** pFormats + ); + + HRESULT GetVideoProcessorCaps( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] D3DFORMAT RenderTargetFormat, + [out, annotation("_Out_")] DXVA2_VideoProcessorCaps* pCaps + ); + + HRESULT GetProcAmpRange( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] D3DFORMAT RenderTargetFormat, + [in, annotation("_In_")] UINT ProcAmpCap, + [out, annotation("_Out_")] DXVA2_ValueRange* pRange + ); + + HRESULT GetFilterPropertyRange( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] D3DFORMAT RenderTargetFormat, + [in, annotation("_In_")] UINT FilterSetting, + [out, annotation("_Out_")] DXVA2_ValueRange* pRange + ); + + HRESULT CreateVideoProcessor( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] D3DFORMAT RenderTargetFormat, + [in, annotation("_In_")] UINT MaxNumSubStreams, + [out, annotation("_Outptr_")] IDirectXVideoProcessor** ppVidProcess + ); +}; + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(f2b0810a-fd00-43c9-918c-df94e2d8ef7d), + helpstring("IDirectXVideoDecoder Interface"), + local +] +interface IDirectXVideoDecoder : IUnknown +{ + HRESULT GetVideoDecoderService( + [out, annotation("_Outptr_")] IDirectXVideoDecoderService** ppService + ); + + HRESULT GetCreationParameters( + [out, annotation("_Out_opt_")] GUID* pDeviceGuid, + [out, annotation("_Out_opt_")] DXVA2_VideoDesc* pVideoDesc, + [out, annotation("_Out_opt_")] DXVA2_ConfigPictureDecode* pConfig, + [out, unique, size_is(*pNumSurfaces), annotation("_Out_writes_(*pNumSurfaces)")] IDirect3DSurface9*** pDecoderRenderTargets, + [out, annotation("_Out_opt_")] UINT* pNumSurfaces + ); + + HRESULT GetBuffer( + [in, annotation("_In_")] UINT BufferType, + [out, annotation("_Out_")] void** ppBuffer, + [out, annotation("_Out_")] UINT* pBufferSize + ); + + HRESULT ReleaseBuffer( + [in, annotation("_In_")] UINT BufferType + ); + + HRESULT BeginFrame( + [in, annotation("_In_")] IDirect3DSurface9* pRenderTarget, + [in, annotation("_In_opt_")] void* pvPVPData + ); + + HRESULT EndFrame( + [out, annotation("_Inout_opt_")] HANDLE* pHandleComplete // reserved + ); + + HRESULT Execute( + [in, annotation("_In_")] const DXVA2_DecodeExecuteParams* pExecuteParams + ); +}; + + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(8c3a39f0-916e-4690-804f-4c8001355d25), + helpstring("IDirectXVideoProcessor Interface"), + local +] +interface IDirectXVideoProcessor : IUnknown +{ + HRESULT GetVideoProcessorService( + [out, annotation("_Outptr_")] IDirectXVideoProcessorService** ppService + ); + + HRESULT GetCreationParameters( + [out, annotation("_Out_opt_")] GUID* pDeviceGuid, + [out, annotation("_Out_opt_")] DXVA2_VideoDesc* pVideoDesc, + [out, annotation("_Out_opt_")] D3DFORMAT* pRenderTargetFormat, + [out, annotation("_Out_opt_")] UINT* pMaxNumSubStreams + ); + + HRESULT GetVideoProcessorCaps( + [out, annotation("_Out_")] DXVA2_VideoProcessorCaps* pCaps + ); + + HRESULT GetProcAmpRange( + [in, annotation("_In_")] UINT ProcAmpCap, + [out, annotation("_Out_")] DXVA2_ValueRange* pRange + ); + + HRESULT GetFilterPropertyRange( + [in, annotation("_In_")] UINT FilterSetting, + [out, annotation("_Out_")] DXVA2_ValueRange* pRange + ); + + HRESULT VideoProcessBlt( + [in, annotation("_In_")] IDirect3DSurface9* pRenderTarget, + [in, annotation("_In_")] const DXVA2_VideoProcessBltParams* pBltParams, + [in, size_is(NumSamples), annotation("_In_reads_(NumSamples)")] const DXVA2_VideoSample* pSamples, + [in, annotation("_In_")] UINT NumSamples, + [out, annotation("_Inout_opt_")] HANDLE* pHandleComplete // reserved + ); +}; + +typedef enum +{ + DXVA2_SurfaceType_DecoderRenderTarget = 0, + DXVA2_SurfaceType_ProcessorRenderTarget = 1, + DXVA2_SurfaceType_D3DRenderTargetTexture = 2 +} DXVA2_SurfaceType; + +//============================================================================= +// Description: +// +// IDirectXVideoMemoryConfiguration is used by video decoders +// and transforms to agree the type of video memory to be allocated +// for uncompressed surfaces used as inputs or outputs +// +// For example, a video decoder will acquire a service implementing +// this interface through a service provider such as the Enhanced Video +// renderer. The decoder enumerates the service's preferred surface types +// and chooses the first acceptable one. Then the decoder creates output +// surfaces of this type and passes the results of the decode (often created +// using DirectX Video Acceleration Services) as its output +// +// This interface is used along with other information, for example pixel +// format information and required buffer queue depth to determine the +// surfaces to allocate +// +// There is no way to 'unset' the type of surface to use. Other context +// in the contract between objects may invalidate the type selected. For example +// in DirectShow disconnecting 2 filters invalidates any prior agreement between +// the two filters about the surface type to use for media samples. +// +[ + object, + uuid(b7f916dd-db3b-49c1-84d7-e45ef99ec726), + helpstring("IDirectXVideoMemoryConfiguration Interface"), + local +] +interface IDirectXVideoMemoryConfiguration : IUnknown +{ + //============================================================================= + // Description: + // Returns acceptable surface types in preference order starting at index 0 + // for the most preferred surface type + // + // Parameters: + // dwTypeIndex - 0-based index saying which preferred surface type to + // return + // pdwType - Surface type returned for that index + // + // Return Values: + // + // S_OK - returned valid acceptable type + // Failure code - dwIndex beyond range of acceptable surface type indexes + // + + HRESULT GetAvailableSurfaceTypeByIndex( + [in, annotation("_In_")] DWORD dwTypeIndex, + [out, annotation("_Out_")] DXVA2_SurfaceType *pdwType + ); + + //============================================================================== + // Description: + // Selects the surface type to be used + // + // + // Parameters: + // dwType - Type to be used + // + // Return Values: + // S_OK - surface type accepted + // Failure code - surface type rejected + // + + HRESULT SetSurfaceType( + [in, annotation("_In_")] DXVA2_SurfaceType dwType + ); +}; + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +cpp_quote("STDAPI DXVA2CreateDirect3DDeviceManager9(") +cpp_quote(" _Out_ UINT* pResetToken,") +cpp_quote(" _Outptr_ IDirect3DDeviceManager9** ppDeviceManager") +cpp_quote(" );") + +cpp_quote("STDAPI DXVA2CreateVideoService(") +cpp_quote(" _In_ IDirect3DDevice9* pDD,") +cpp_quote(" _In_ REFIID riid,") +cpp_quote(" _Outptr_ void** ppService") +cpp_quote(" );") + +cpp_quote("#endif // _D3D9_H_") + +//============================================================================= +// Description: +// +// DXVA2_Fixed32 helper inline functions. +// + +cpp_quote("__inline DXVA2_Fixed32 DXVA2FloatToFixed(_In_ const float _float_)") +cpp_quote("{") +cpp_quote(" DXVA2_Fixed32 _fixed_;") +cpp_quote(" _fixed_.Fraction = LOWORD(_float_ * 0x10000);") +cpp_quote(" _fixed_.Value = HIWORD(_float_ * 0x10000);") +cpp_quote(" return _fixed_;") +cpp_quote("}") + +cpp_quote("__inline float DXVA2FixedToFloat(_In_ const DXVA2_Fixed32 _fixed_)") +cpp_quote("{") +cpp_quote(" return (FLOAT)_fixed_.Value + (FLOAT)_fixed_.Fraction / 0x10000;") +cpp_quote("}") + +cpp_quote("__inline const DXVA2_Fixed32 DXVA2_Fixed32TransparentAlpha()") +cpp_quote("{") +cpp_quote(" DXVA2_Fixed32 _fixed_ = {0, 0};") +cpp_quote(" return _fixed_;") +cpp_quote("}") + +cpp_quote("__inline const DXVA2_Fixed32 DXVA2_Fixed32OpaqueAlpha()") +cpp_quote("{") +cpp_quote(" DXVA2_Fixed32 _fixed_ = {0, 1};") +cpp_quote(" return _fixed_;") +cpp_quote("}") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif") diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2swdev.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2swdev.h new file mode 100644 index 0000000000000000000000000000000000000000..3d7d99259195ba2bf31fc90910858d144aabd3c8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2swdev.h @@ -0,0 +1,183 @@ +//------------------------------------------------------------------------------ +// File: dxva2SWDev.h +// +// Desc: DirectX Video Acceleration 2 header file for software video +// processing devices +// +// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + +#ifndef __inc_dxva2SWDev_h +#define __inc_dxva2SWDev_h + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum _DXVA2_SampleFlags +{ + DXVA2_SampleFlag_Palette_Changed = 0x00000001, + DXVA2_SampleFlag_SrcRect_Changed = 0x00000002, + DXVA2_SampleFlag_DstRect_Changed = 0x00000004, + DXVA2_SampleFlag_ColorData_Changed = 0x00000008, + DXVA2_SampleFlag_PlanarAlpha_Changed = 0x00000010, + DXVA2_SampleFlag_RFF = 0x00010000, + DXVA2_SampleFlag_TFF = 0x00020000, + DXVA2_SampleFlag_RFF_TFF_Present = 0x00040000, + DXVA2_SampleFlagsMask = 0xFFFF001F +} DXVA2_SampleFlags; + +typedef enum _DXVA2_DestinationFlags +{ + DXVA2_DestinationFlag_Background_Changed = 0x00000001, + DXVA2_DestinationFlag_TargetRect_Changed = 0x00000002, + DXVA2_DestinationFlag_ColorData_Changed = 0x00000004, + DXVA2_DestinationFlag_Alpha_Changed = 0x00000008, + DXVA2_DestinationFlag_RFF = 0x00010000, + DXVA2_DestinationFlag_TFF = 0x00020000, + DXVA2_DestinationFlag_RFF_TFF_Present = 0x00040000, + DXVA2_DestinationFlagMask = 0xFFFF000F +} DXVA2_DestinationFlags; + +typedef struct _DXVA2_VIDEOSAMPLE +{ + REFERENCE_TIME Start; + REFERENCE_TIME End; + DXVA2_ExtendedFormat SampleFormat; + UINT SampleFlags; + VOID* SrcResource; + RECT SrcRect; + RECT DstRect; + DXVA2_AYUVSample8 Pal[16]; + DXVA2_Fixed32 PlanarAlpha; +} DXVA2_VIDEOSAMPLE; + +typedef struct _DXVA2_VIDEOPROCESSBLT +{ + REFERENCE_TIME TargetFrame; + RECT TargetRect; + SIZE ConstrictionSize; + UINT StreamingFlags; + DXVA2_AYUVSample16 BackgroundColor; + DXVA2_ExtendedFormat DestFormat; + UINT DestFlags; + DXVA2_ProcAmpValues ProcAmpValues; + DXVA2_Fixed32 Alpha; + DXVA2_FilterValues NoiseFilterLuma; + DXVA2_FilterValues NoiseFilterChroma; + DXVA2_FilterValues DetailFilterLuma; + DXVA2_FilterValues DetailFilterChroma; + DXVA2_VIDEOSAMPLE* pSrcSurfaces; + UINT NumSrcSurfaces; +} DXVA2_VIDEOPROCESSBLT; + +#if defined(_D3D9_H_) || defined(_d3d9P_H_) + +typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETCOUNT)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _Out_ UINT* pCount + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETS)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ UINT Count, + _Out_writes_(Count) D3DFORMAT* pFormats + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORCAPS)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _Out_ DXVA2_VideoProcessorCaps* pCaps + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATCOUNT)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _Out_ UINT* pCount + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATS)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _In_ UINT Count, + _Out_writes_(Count) D3DFORMAT* pFormats + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETPROCAMPRANGE)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _In_ UINT ProcAmpCap, + _Out_ DXVA2_ValueRange* pRange + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETFILTERPROPERTYRANGE)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _In_ UINT FilterSetting, + _Out_ DXVA2_ValueRange* pRange + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_CREATEVIDEOPROCESSDEVICE)( + _In_ IDirect3DDevice9* pD3DD9, + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _In_ UINT MaxSubStreams, + _Out_ HANDLE* phDevice + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_DESTROYVIDEOPROCESSDEVICE)( + _In_ HANDLE hDevice + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSBEGINFRAME)( + _In_ HANDLE hDevice + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSENDFRAME)( + _In_ HANDLE hDevice, + _Inout_opt_ HANDLE* pHandleComplete + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSSETRENDERTARGET)( + _In_ HANDLE hDevice, + _In_ IDirect3DSurface9* pRenderTarget + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSBLT)( + _In_ HANDLE hDevice, + _In_ const DXVA2_VIDEOPROCESSBLT* pBlt + ); + +typedef struct _DXVA2SW_CALLBACKS +{ + UINT Size; + PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETCOUNT GetVideoProcessorRenderTargetCount; + PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETS GetVideoProcessorRenderTargets; + PDXVA2SW_GETVIDEOPROCESSORCAPS GetVideoProcessorCaps; + PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATCOUNT GetVideoProcessorSubStreamFormatCount; + PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATS GetVideoProcessorSubStreamFormats; + PDXVA2SW_GETPROCAMPRANGE GetProcAmpRange; + PDXVA2SW_GETFILTERPROPERTYRANGE GetFilterPropertyRange; + PDXVA2SW_CREATEVIDEOPROCESSDEVICE CreateVideoProcessDevice; + PDXVA2SW_DESTROYVIDEOPROCESSDEVICE DestroyVideoProcessDevice; + PDXVA2SW_VIDEOPROCESSBEGINFRAME VideoProcessBeginFrame; + PDXVA2SW_VIDEOPROCESSENDFRAME VideoProcessEndFrame; + PDXVA2SW_VIDEOPROCESSSETRENDERTARGET VideoProcessSetRenderTarget; + PDXVA2SW_VIDEOPROCESSBLT VideoProcessBlt; +} DXVA2SW_CALLBACKS, *PDXVA2SW_CALLBACKS; + +#endif // _D3D9_H_ + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2trace.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2trace.h new file mode 100644 index 0000000000000000000000000000000000000000..1fd779836778d251699510125f5bf6dabb71f60d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva2trace.h @@ -0,0 +1,163 @@ +//------------------------------------------------------------------------------ +// File: dxva2Trace.h +// +// Desc: DirectX Video Acceleration 2 header file for ETW data +// +// Copyright (c) 1999 - 2005, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + +#ifndef __inc_dxva2Trace_h +#define __inc_dxva2Trace_h + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +DEFINE_GUID(DXVA2Trace_Control, 0xa0386e75,0xf70c,0x464c, + 0xa9, 0xce, 0x33, 0xc4, 0x4e, 0x09, 0x16, 0x23); + +// ------------------------------------------------------------------------- +// DXVA2 Video Decoder ETW definitions +// +// There are event for: +// Device creation +// Device destruction +// +// When the device is being used there are events for: +// Begin frame +// Begin execute +// End execute +// End frame +// ------------------------------------------------------------------------- +// +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + ULONGLONG pD3DDevice; + GUID DeviceGuid; + ULONG Width; + ULONG Height; + BOOL Enter; +} DXVA2Trace_DecodeDevCreatedData; + +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + BOOL Enter; +} DXVA2Trace_DecodeDeviceData; + +typedef DXVA2Trace_DecodeDeviceData DXVA2Trace_DecodeDevDestroyedData; +typedef DXVA2Trace_DecodeDeviceData DXVA2Trace_DecodeDevExecuteData; +typedef DXVA2Trace_DecodeDeviceData DXVA2Trace_DecodeDevEndFrameData; + +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + ULONGLONG pRenderTarget; + BOOL Enter; +} DXVA2Trace_DecodeDevBeginFrameData; + +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + UINT BufferType; + BOOL Enter; +} DXVA2Trace_DecodeDevGetBufferData; + +DEFINE_GUID(DXVA2Trace_DecodeDevCreated, 0xb4de17a1,0xc5b2,0x44fe, + 0x86, 0xd5, 0xd9, 0x7a, 0x64, 0x81, 0x14, 0xff); + +DEFINE_GUID(DXVA2Trace_DecodeDevDestroyed, 0x853ebdf2,0x4160,0x421d, + 0x88, 0x93, 0x63, 0xdc, 0xea, 0x4f, 0x18, 0xbb); + +DEFINE_GUID(DXVA2Trace_DecodeDevBeginFrame, 0x9fd1acf6,0x44cb,0x4637, + 0xbc, 0x62, 0x2c, 0x11, 0xa9, 0x60, 0x8f, 0x90); + +DEFINE_GUID(DXVA2Trace_DecodeDevExecute,0x850aeb4c,0xd19a,0x4609, + 0xb3, 0xb4, 0xbc, 0xbf, 0x0e, 0x22, 0x12, 0x1e); + +DEFINE_GUID(DXVA2Trace_DecodeDevGetBuffer,0x57b128fb,0x72cb,0x4137, + 0xa5, 0x75, 0xd9, 0x1f, 0xa3, 0x16, 0x08, 0x97); + +DEFINE_GUID(DXVA2Trace_DecodeDevEndFrame, 0x9fb3cb33,0x47dc,0x4899, + 0x98, 0xc8, 0xc0, 0xc6, 0xcd, 0x7c, 0xd3, 0xcb); + + + +// ------------------------------------------------------------------------- +// DXVA2 Video Processing ETW definitions +// +// There are event for: +// Device creation +// Device destruction +// +// When the device is being used there are events for: +// Begin VideoProcessBlt +// End VideoProcessBlt +// ------------------------------------------------------------------------- +// +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + ULONGLONG pD3DDevice; + GUID DeviceGuid; + ULONG RTFourCC; + ULONG Width; + ULONG Height; + BOOL Enter; +} DXVA2Trace_VideoProcessDevCreatedData; + +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + BOOL Enter; +} DXVA2Trace_VideoProcessDeviceData; +typedef DXVA2Trace_VideoProcessDeviceData DXVA2Trace_VideoProcessDevDestroyedData; +typedef DXVA2Trace_VideoProcessDeviceData DXVA2Trace_VideoProcessBltEndData; + +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + ULONGLONG pRenderTarget; + ULONGLONG TargetFrameTime; + RECT TargetRect; + BOOL Enter; +} DXVA2TraceVideoProcessBltData; +#define DXVA2TraceVideoProcessBltDataData DXVA2TraceVideoProcessBltData; + +DEFINE_GUID(DXVA2Trace_VideoProcessDevCreated, 0x895508c6,0x540d,0x4c87, + 0x98, 0xf8, 0x8d, 0xcb, 0xf2, 0xda, 0xbb, 0x2a); + +DEFINE_GUID(DXVA2Trace_VideoProcessDevDestroyed, 0xf97f30b1,0xfb49,0x42c7, + 0x8e, 0xe8, 0x88, 0xbd, 0xfa, 0x92, 0xd4, 0xe2); + +DEFINE_GUID(DXVA2Trace_VideoProcessBlt, 0x69089cc0,0x71ab,0x42d0, + 0x95, 0x3a, 0x28, 0x87, 0xbf, 0x05, 0xa8, 0xaf); + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva9typ.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva9typ.h new file mode 100644 index 0000000000000000000000000000000000000000..1a9bbcb2fce6b1477b1f6790335d9dea7b0ab243 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxva9typ.h @@ -0,0 +1,1009 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: dxva9typ.h + * Content: Direct3D include file + * + ****************************************************************************/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef _DXVA9TYP_H_ +#define _DXVA9TYP_H_ + +#ifndef DIRECT3D_VERSION +#define DIRECT3D_VERSION 0x0900 +#endif //DIRECT3D_VERSION + +// include this file content only if compiling for DX9 interfaces +#if(DIRECT3D_VERSION >= 0x0900) + + +#include + +#define COM_NO_WINDOWS_H +#include + +#include + +#ifdef __DIRECTX_VA_COPP_ONLY +#define __DIRECTX_VA_DECODER__ +#define __DIRECTX_VA_PROCAMPCONTROL__ +#define __DIRECTX_VA_DEINTERLACE__ +#endif + +#ifndef DXVABit +#define DXVABit(__x) (1 << __x) +#endif + + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the DirectX Video Acceleration +// decoding interface. +// This interface is accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_DECODER__ +#define __DIRECTX_VA_DECODER__ + +/* AYUV sample for 16-entry YUV palette or graphic surface */ + +typedef struct _DXVA_AYUVsample2 { + BYTE bCrValue; + BYTE bCbValue; + BYTE bY_Value; + BYTE bSampleAlpha8; +} DXVA_AYUVsample2, *LPDXVA_AYUVsample2; + +DEFINE_GUID(DXVAp_ModeMPEG2_A, 0x1b81be0A, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVAp_ModeMPEG2_C, 0x1b81be0C, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVAp_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +#pragma pack(push, BeforeDXVApacking, 1) + +typedef struct _DXVA_BufferDescription { + DWORD dwTypeIndex; + DWORD dwBufferIndex; + DWORD dwDataOffset; + DWORD dwDataSize; + DWORD dwFirstMBaddress; + DWORD dwNumMBsInBuffer; + DWORD dwWidth; + DWORD dwHeight; + DWORD dwStride; + DWORD dwReservedBits; +} DXVA_BufferDescription, *LPDXVA_BufferDescription; + +typedef DWORD DXVA_ConfigQueryOrReplyFunc, *LPDXVA_ConfigQueryOrReplyFunc; + +#define DXVA_QUERYORREPLYFUNCFLAG_DECODER_PROBE_QUERY 0xFFFFF1 +#define DXVA_QUERYORREPLYFUNCFLAG_DECODER_LOCK_QUERY 0xFFFFF5 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_OK_COPY 0xFFFFF8 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_OK_PLUS 0xFFFFF9 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_LOCK_OK_COPY 0xFFFFFC +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_FALSE_PLUS 0xFFFFFB +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_LOCK_FALSE_PLUS 0xFFFFFF + +#define DXVA_PICTURE_DECODE_BUFFER 1 +#define DXVA_MACROBLOCK_CONTROL_BUFFER 2 +#define DXVA_RESIDUAL_DIFFERENCE_BUFFER 3 +#define DXVA_DEBLOCKING_CONTROL_BUFFER 4 +#define DXVA_INVERSE_QUANTIZATION_MATRIX_BUFFER 5 +#define DXVA_SLICE_CONTROL_BUFFER 6 +#define DXVA_BITSTREAM_DATA_BUFFER 7 +#define DXVA_AYUV_BUFFER 8 +#define DXVA_IA44_SURFACE_BUFFER 9 +#define DXVA_DPXD_SURFACE_BUFFER 10 +#define DXVA_HIGHLIGHT_BUFFER 11 +#define DXVA_DCCMD_SURFACE_BUFFER 12 +#define DXVA_ALPHA_BLEND_COMBINATION_BUFFER 13 +#define DXVA_PICTURE_RESAMPLE_BUFFER 14 +#define DXVA_READ_BACK_BUFFER 15 + +typedef struct _DXVA_ConfigPictureDecode { + + // Operation Indicated + DXVA_ConfigQueryOrReplyFunc dwFunction; + + // Alignment + DWORD dwReservedBits[3]; + + // Encryption GUIDs + GUID guidConfigBitstreamEncryption; + GUID guidConfigMBcontrolEncryption; + GUID guidConfigResidDiffEncryption; + + // Bitstream Processing Indicator + BYTE bConfigBitstreamRaw; + + // Macroblock Control Config + BYTE bConfigMBcontrolRasterOrder; + + // Host Resid Diff Config + BYTE bConfigResidDiffHost; + BYTE bConfigSpatialResid8; + BYTE bConfigResid8Subtraction; + BYTE bConfigSpatialHost8or9Clipping; + BYTE bConfigSpatialResidInterleaved; + BYTE bConfigIntraResidUnsigned; + + // Accelerator Resid Diff Config + BYTE bConfigResidDiffAccelerator; + BYTE bConfigHostInverseScan; + BYTE bConfigSpecificIDCT; + BYTE bConfig4GroupedCoefs; +} DXVA_ConfigPictureDecode, *LPDXVA_ConfigPictureDecode; + +typedef struct _DXVA_PictureParameters { + + WORD wDecodedPictureIndex; + WORD wDeblockedPictureIndex; + + WORD wForwardRefPictureIndex; + WORD wBackwardRefPictureIndex; + + WORD wPicWidthInMBminus1; + WORD wPicHeightInMBminus1; + + BYTE bMacroblockWidthMinus1; + BYTE bMacroblockHeightMinus1; + + BYTE bBlockWidthMinus1; + BYTE bBlockHeightMinus1; + + BYTE bBPPminus1; + + BYTE bPicStructure; + BYTE bSecondField; + BYTE bPicIntra; + BYTE bPicBackwardPrediction; + + BYTE bBidirectionalAveragingMode; + BYTE bMVprecisionAndChromaRelation; + BYTE bChromaFormat; + + BYTE bPicScanFixed; + BYTE bPicScanMethod; + BYTE bPicReadbackRequests; + + BYTE bRcontrol; + BYTE bPicSpatialResid8; + BYTE bPicOverflowBlocks; + BYTE bPicExtrapolation; + + BYTE bPicDeblocked; + BYTE bPicDeblockConfined; + BYTE bPic4MVallowed; + BYTE bPicOBMC; + BYTE bPicBinPB; + BYTE bMV_RPS; + + BYTE bReservedBits; + + WORD wBitstreamFcodes; + WORD wBitstreamPCEelements; + BYTE bBitstreamConcealmentNeed; + BYTE bBitstreamConcealmentMethod; + +} DXVA_PictureParameters, *LPDXVA_PictureParameters; + +#pragma pack(pop, BeforeDXVApacking) + +#endif /* __DIRECTX_VA_DECODER__ */ + + +#ifndef __DIRECTX_VA_DECODER9__ +#define __DIRECTX_VA_DECODER9__ +// ------------------------------------------------------------------------- +// Decoding data types used with RenderMoComp +// ------------------------------------------------------------------------- +// + +typedef struct _DXVAUncompDataInfo +{ + DWORD UncompWidth; /* Width of uncompressed data */ + DWORD UncompHeight; /* Height of uncompressed data */ + D3DFORMAT UncompFormat; /* Format of uncompressed data */ +} DXVAUncompDataInfo; + +typedef struct _DXVACompBufferInfo +{ + DWORD NumCompBuffers; /* Number of buffers reqd for compressed data */ + DWORD WidthToCreate; /* Width of surface to create */ + DWORD HeightToCreate; /* Height of surface to create */ + DWORD BytesToAllocate; /* Total number of bytes used by each surface */ + DWORD Usage; /* Usage used to create the compressed buffer */ + D3DPOOL Pool; /* Pool where the compressed buffer belongs */ + D3DFORMAT Format; /* Format used to create the compressed buffer */ +} DXVACompBufferInfo; + +typedef struct _DXVABufferInfo +{ + VOID* pCompSurface; /* Pointer to buffer containing compressed data */ + DWORD DataOffset; /* Offset of relevant data from the beginning of buffer */ + DWORD DataSize; /* Size of relevant data */ +} DXVABufferInfo; + +#endif /* __DIRECTX_VA_DECODER9__ */ + + +// ------------------------------------------------------------------------- +// +// D3DFORMAT describes a pixel memory layout, DXVA sample format contains +// additional information that describes how the pixels should be interpreted. +// +// DXVA Extended color data - occupies the SampleFormat DWORD +// data fields. +// ------------------------------------------------------------------------- +#ifndef __DIRECTX_VA_SAMPLEFORMAT__ +#define __DIRECTX_VA_SAMPLEFORMAT__ + +typedef enum _DXVA_SampleFormat { + DXVA_SampleFormatMask = 0xFF, // 8 bits used for DXVA Sample format + DXVA_SampleUnknown = 0, + DXVA_SamplePreviousFrame = 1, + DXVA_SampleProgressiveFrame = 2, + DXVA_SampleFieldInterleavedEvenFirst = 3, + DXVA_SampleFieldInterleavedOddFirst = 4, + DXVA_SampleFieldSingleEven = 5, + DXVA_SampleFieldSingleOdd = 6, + DXVA_SampleSubStream = 7 +} DXVA_SampleFormat; + +#define DXVA_ExtractSampleFormat(_sf) ((_sf) & (DXVA_SampleFormatMask)) + +#define DXVA_ExtractExtColorData(_sf, _Mask, _Shift) \ + (((_sf) & (_Mask)) >> (_Shift)) + +#define DXVABitMask(__n) (~((~0) << __n)) +#define DXVA_ExtColorData_ShiftBase 8 +#define DXVAColorMask(__bits,__base) (DXVABitMask(__bits) << (__base)) + +typedef enum _DXVA_VideoTransferFunction +{ + DXVA_VideoTransFuncShift = (DXVA_ExtColorData_ShiftBase + 19), + DXVA_VideoTransFuncMask = DXVAColorMask(5, DXVA_VideoTransFuncShift), + + DXVA_VideoTransFunc_Unknown = 0, + DXVA_VideoTransFunc_10 = 1, + DXVA_VideoTransFunc_18 = 2, + DXVA_VideoTransFunc_20 = 3, + DXVA_VideoTransFunc_22 = 4, + DXVA_VideoTransFunc_22_709 = 5, + DXVA_VideoTransFunc_22_240M = 6, + DXVA_VideoTransFunc_22_8bit_sRGB = 7, + DXVA_VideoTransFunc_28 = 8 +} DXVA_VideoTransferFunction; + +typedef enum _DXVA_VideoPrimaries +{ + DXVA_VideoPrimariesShift = (DXVA_ExtColorData_ShiftBase + 14), + DXVA_VideoPrimariesMask = DXVAColorMask(5, DXVA_VideoPrimariesShift), + + DXVA_VideoPrimaries_Unknown = 0, + DXVA_VideoPrimaries_reserved = 1, + DXVA_VideoPrimaries_BT709 = 2, + DXVA_VideoPrimaries_BT470_2_SysM = 3, + DXVA_VideoPrimaries_BT470_2_SysBG = 4, + DXVA_VideoPrimaries_SMPTE170M = 5, + DXVA_VideoPrimaries_SMPTE240M = 6, + DXVA_VideoPrimaries_EBU3213 = 7, + DXVA_VideoPrimaries_SMPTE_C = 8 +} DXVA_VideoPrimaries; + +typedef enum _DXVA_VideoLighting +{ + DXVA_VideoLightingShift = (DXVA_ExtColorData_ShiftBase + 10), + DXVA_VideoLightingMask = DXVAColorMask(4, DXVA_VideoLightingShift), + + DXVA_VideoLighting_Unknown = 0, + DXVA_VideoLighting_bright = 1, + DXVA_VideoLighting_office = 2, + DXVA_VideoLighting_dim = 3, + DXVA_VideoLighting_dark = 4 +} DXVA_VideoLighting; + +typedef enum _DXVA_VideoTransferMatrix +{ + DXVA_VideoTransferMatrixShift = (DXVA_ExtColorData_ShiftBase + 7), + DXVA_VideoTransferMatrixMask = DXVAColorMask(3, DXVA_VideoTransferMatrixShift), + + DXVA_VideoTransferMatrix_Unknown = 0, + DXVA_VideoTransferMatrix_BT709 = 1, + DXVA_VideoTransferMatrix_BT601 = 2, + DXVA_VideoTransferMatrix_SMPTE240M = 3 +} DXVA_VideoTransferMatrix; + +typedef enum _DXVA_NominalRange +{ + DXVA_NominalRangeShift = (DXVA_ExtColorData_ShiftBase + 4), + DXVA_NominalRangeMask = DXVAColorMask(3, DXVA_NominalRangeShift), + + DXVA_NominalRange_Unknown = 0, + DXVA_NominalRange_Normal = 1, + DXVA_NominalRange_Wide = 2, + + DXVA_NominalRange_0_255 = 1, + DXVA_NominalRange_16_235 = 2, + DXVA_NominalRange_48_208 = 3 +} DXVA_NominalRange; + +typedef enum _DXVA_VideoChromaSubsampling +{ + DXVA_VideoChromaSubsamplingShift = (DXVA_ExtColorData_ShiftBase + 0), + DXVA_VideoChromaSubsamplingMask = DXVAColorMask(4, DXVA_VideoChromaSubsamplingShift), + + DXVA_VideoChromaSubsampling_Unknown = 0, + DXVA_VideoChromaSubsampling_ProgressiveChroma = 0x8, + DXVA_VideoChromaSubsampling_Horizontally_Cosited = 0x4, + DXVA_VideoChromaSubsampling_Vertically_Cosited = 0x2, + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1, + // 4:2:0 variations + DXVA_VideoChromaSubsampling_MPEG2 = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA_VideoChromaSubsampling_MPEG1 = DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA_VideoChromaSubsampling_DV_PAL = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_Cosited, + // 4:4:4, 4:2:2, 4:1:1 + DXVA_VideoChromaSubsampling_Cosited = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_Cosited | + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + +} DXVA_VideoChromaSubsampling; + +typedef struct _DXVA_ExtendedFormat +{ + UINT SampleFormat : 8; // See DXVA_SampleFormat + UINT VideoChromaSubsampling : 4; // See DXVA_VideoChromaSubSampling + DXVA_NominalRange NominalRange : 3; // See DXVA_NominalRange + DXVA_VideoTransferMatrix VideoTransferMatrix : 3; // See DXVA_VideoTransferMatrix + DXVA_VideoLighting VideoLighting : 4; // See DXVA_VideoLighting + DXVA_VideoPrimaries VideoPrimaries : 5; // See DXVA_VideoPrimaries + DXVA_VideoTransferFunction VideoTransferFunction : 5; // See DXVA_VideoTransferFunction +} DXVA_ExtendedFormat; + +#endif /* __DIRECTX_VA_SAMPLEFORMAT__ */ + + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the video de-interlace interface +// between the VMR and the graphics device driver. This interface is not +// accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_DEINTERLACE__ +#define __DIRECTX_VA_DEINTERLACE__ + +#ifndef REFERENCE_TME + typedef LONGLONG REFERENCE_TIME; +#endif + +DEFINE_GUID(DXVAp_DeinterlaceBobDevice, 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e); +DEFINE_GUID(DXVAp_DeinterlaceContainerDevice, 0x0e85cb93,0x3046,0x4ff0,0xae,0xcc,0xd5,0x8c,0xb5,0xf0,0x35,0xfd); + +#define DXVA_DeinterlaceBobDevice DXVAp_DeinterlaceBobDevice +#define DXVA_DeinterlaceContainerDevice DXVAp_DeinterlaceContainerDevice + +#if (DIRECT3D_VERSION < 0x0800) || !defined(DIRECT3D_VERSION) +typedef DWORD D3DFORMAT; +enum { + D3DPOOL_DEFAULT = 0, + D3DPOOL_MANAGED = 1, + D3DPOOL_SYSTEMMEM = 2, + D3DPOOL_SCRATCH = 3, + D3DPOOL_LOCALVIDMEM = 4, + D3DPOOL_NONLOCALVIDMEM = 5, + D3DPOOL_FORCE_DWORD = 0x7fffffff +}; +#endif + +// ------------------------------------------------------------------------- +// data structures shared by User mode and Kernel mode. +// ------------------------------------------------------------------------- +// + +typedef struct _DXVA_Frequency { + DWORD Numerator; + DWORD Denominator; +} DXVA_Frequency; + +typedef struct _DXVA_VideoDesc { + DWORD Size; + DWORD SampleWidth; + DWORD SampleHeight; + DWORD SampleFormat; // also contains extend color data + D3DFORMAT d3dFormat; + DXVA_Frequency InputSampleFreq; + DXVA_Frequency OutputFrameFreq; +} DXVA_VideoDesc, *LPDXVA_VideoDesc; + +typedef enum _DXVA_VideoProcessCaps { + DXVA_VideoProcess_None = 0x0000, + DXVA_VideoProcess_YUV2RGB = 0x0001, + DXVA_VideoProcess_StretchX = 0x0002, + DXVA_VideoProcess_StretchY = 0x0004, + DXVA_VideoProcess_AlphaBlend = 0x0008, + DXVA_VideoProcess_SubRects = 0x0010, + DXVA_VideoProcess_SubStreams = 0x0020, + DXVA_VideoProcess_SubStreamsExtended = 0x0040, + DXVA_VideoProcess_YUV2RGBExtended = 0x0080, + DXVA_VideoProcess_AlphaBlendExtended = 0x0100 +} DXVA_VideoProcessCaps; + +typedef enum _DXVA_DeinterlaceTech { + + // the algorithm is unknown or proprietary + DXVA_DeinterlaceTech_Unknown = 0x0000, + + // the algorithm creates the missing lines by repeating + // the line either above or below it - this method will look very jaggy and + // isn't recommended + DXVA_DeinterlaceTech_BOBLineReplicate = 0x0001, + + // The algorithm creates the missing lines by vertically stretching each + // video field by a factor of two by averaging two lines + DXVA_DeinterlaceTech_BOBVerticalStretch = 0x0002, + + // or using a [-1, 9, 9, -1]/16 filter across four lines. + DXVA_DeinterlaceTech_BOBVerticalStretch4Tap = 0x0100, + + // the pixels in the missing line are recreated by a median filtering operation + DXVA_DeinterlaceTech_MedianFiltering = 0x0004, + + // the pixels in the missing line are recreated by an edge filter. + // In this process, spatial directional filters are applied to determine + // the orientation of edges in the picture content, and missing + // pixels are created by filtering along (rather than across) the + // detected edges. + DXVA_DeinterlaceTech_EdgeFiltering = 0x0010, + + // the pixels in the missing line are recreated by switching on a field by + // field basis between using either spatial or temporal interpolation + // depending on the amount of motion. + DXVA_DeinterlaceTech_FieldAdaptive = 0x0020, + + // the pixels in the missing line are recreated by switching on a pixel by pixel + // basis between using either spatial or temporal interpolation depending on + // the amount of motion.. + DXVA_DeinterlaceTech_PixelAdaptive = 0x0040, + + // Motion Vector Steering identifies objects within a sequence of video + // fields. The missing pixels are recreated after first aligning the + // movement axes of the individual objects in the scene to make them + // parallel with the time axis. + DXVA_DeinterlaceTech_MotionVectorSteered = 0x0080 + +} DXVA_DeinterlaceTech; + +typedef struct _DXVA_VideoSample { + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DXVA_SampleFormat SampleFormat; // only lower 8 bits used + VOID* lpDDSSrcSurface; +} DXVA_VideoSample, *LPDXVA_VideoSample; + +// ------------------------------------------------------------------------- +// DeinterlaceBltEx declarations +// ------------------------------------------------------------------------- +// + +typedef enum _DXVA_SampleFlags { + DXVA_SampleFlagsMask = DXVABit(3)|DXVABit(2)|DXVABit(1)|DXVABit(0), + + DXVA_SampleFlag_Palette_Changed = 0x0001, + DXVA_SampleFlag_SrcRect_Changed = 0x0002, + DXVA_SampleFlag_DstRect_Changed = 0x0004, + DXVA_SampleFlag_ColorData_Changed = 0x0008, +} DXVA_SampleFlags; + +typedef enum _DXVA_DestinationFlags { + DXVA_DestinationFlagMask = DXVABit(3)|DXVABit(2)|DXVABit(1)|DXVABit(0), + + DXVA_DestinationFlag_Background_Changed = 0x0001, + DXVA_DestinationFlag_TargetRect_Changed = 0x0002, + DXVA_DestinationFlag_ColorData_Changed = 0x0004, + DXVA_DestinationFlag_Alpha_Changed = 0x0008 +} DXVA_DestinationFlags; + +typedef struct _DXVA_VideoSample2 { +#ifdef _WIN64 + DWORD Size; + DWORD Reserved; +#endif + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DWORD SampleFormat; // cast to DXVA_ExtendedFormat, or use Extract macros + DWORD SampleFlags; + VOID* lpDDSSrcSurface; + RECT rcSrc; + RECT rcDst; + DXVA_AYUVsample2 Palette[16]; +} DXVA_VideoSample2, *LPDXVA_VideoSample2; + +typedef struct _DXVA_DeinterlaceCaps { + DWORD Size; + DWORD NumPreviousOutputFrames; + DWORD InputPool; + DWORD NumForwardRefSamples; + DWORD NumBackwardRefSamples; + D3DFORMAT d3dOutputFormat; + DXVA_VideoProcessCaps VideoProcessingCaps; + DXVA_DeinterlaceTech DeinterlaceTechnology; +} DXVA_DeinterlaceCaps, *LPDXVA_DeinterlaceCaps; + +// ------------------------------------------------------------------------- +// Data types used with RenderMoComp in kernel mode +// ------------------------------------------------------------------------- +// + +// Function codes for RenderMoComp + +#define MAX_DEINTERLACE_SURFACES 32 + +#ifdef _WIN64 +// +// These structures are used for thunking 32 bit DeinterlaceBltEx calls on +// 64 bit drivers. +// +typedef struct _DXVA_VideoSample32 { + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DWORD SampleFormat; + DWORD SampleFlags; + DWORD lpDDSSrcSurface; // 32 bit pointer size + RECT rcSrc; + RECT rcDst; + DXVA_AYUVsample2 Palette[16]; + // DWORD Pad; + // 4 bytes of padding added by the compiler to align the struct to 8 bytes. +} DXVA_VideoSample32; + +typedef struct _DXVA_DeinterlaceBltEx32 { + DWORD Size; + DXVA_AYUVsample2 BackgroundColor; + RECT rcTarget; + REFERENCE_TIME rtTarget; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample32 Source[MAX_DEINTERLACE_SURFACES]; + DWORD DestinationFormat; + DWORD DestinationFlags; +} DXVA_DeinterlaceBltEx32; +#endif + +typedef struct _DXVA_DeinterlaceBlt { + DWORD Size; + DWORD Reserved; + REFERENCE_TIME rtTarget; + RECT DstRect; + RECT SrcRect; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample Source[MAX_DEINTERLACE_SURFACES]; +} DXVA_DeinterlaceBlt; + +#define DXVA_DeinterlaceBltFnCode 0x01 +// lpInput => DXVA_DeinterlaceBlt* +// lpOuput => NULL /* not currently used */ + +typedef struct _DXVA_DeinterlaceBltEx { + DWORD Size; + DXVA_AYUVsample2 BackgroundColor; + RECT rcTarget; + REFERENCE_TIME rtTarget; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample2 Source[MAX_DEINTERLACE_SURFACES]; + DWORD DestinationFormat; + DWORD DestinationFlags; +} DXVA_DeinterlaceBltEx; + +#define DXVA_DeinterlaceBltExFnCode 0x02 +// lpInput => DXVA_DeinterlaceBltEx* +// lpOuput => NULL /* not currently used */ + +#define MAX_DEINTERLACE_DEVICE_GUIDS 32 +typedef struct _DXVA_DeinterlaceQueryAvailableModes { + DWORD Size; + DWORD NumGuids; + GUID Guids[MAX_DEINTERLACE_DEVICE_GUIDS]; +} DXVA_DeinterlaceQueryAvailableModes; + +#define DXVA_DeinterlaceQueryAvailableModesFnCode 0x01 +// lpInput => DXVA_VideoDesc* +// lpOuput => DXVA_DeinterlaceQueryAvailableModes* + +typedef struct _DXVA_DeinterlaceQueryModeCaps { + DWORD Size; + GUID Guid; + DXVA_VideoDesc VideoDesc; +} DXVA_DeinterlaceQueryModeCaps; + +#define DXVA_DeinterlaceQueryModeCapsFnCode 0x02 +// lpInput => DXVA_DeinterlaceQueryModeCaps* +// lpOuput => DXVA_DeinterlaceCaps* + +#endif /* __DIRECTX_VA_DEINTERLACE__ */ + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the video ProcAmp interface +// between the VMR and the graphics device driver. This interface is not +// accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_PROCAMPCONTROL__ +#define __DIRECTX_VA_PROCAMPCONTROL__ + +DEFINE_GUID(DXVA_ProcAmpControlDevice, + 0x9f200913,0x2ffd,0x4056,0x9f,0x1e,0xe1,0xb5,0x08,0xf2,0x2d,0xcf); + +typedef enum _DXVA_ProcAmpControlProp { + DXVA_ProcAmp_None = 0x0000, + DXVA_ProcAmp_Brightness = 0x0001, + DXVA_ProcAmp_Contrast = 0x0002, + DXVA_ProcAmp_Hue = 0x0004, + DXVA_ProcAmp_Saturation = 0x0008 +} DXVA_ProcAmpControlProp; + +typedef struct _DXVA_ProcAmpControlCaps { + DWORD Size; + DWORD InputPool; + D3DFORMAT d3dOutputFormat; + DWORD ProcAmpControlProps;// see DXVA_ProcAmpControlProp + DWORD VideoProcessingCaps;// see DXVA_VideoProcessCaps +} DXVA_ProcAmpControlCaps, *LPDXVA_ProcAmpControlCaps; + +#define DXVA_ProcAmpControlQueryCapsFnCode 0x03 +// lpInput => DXVA_VideoDesc* +// lpOuput => DXVA_ProcAmpControlCaps* + +typedef struct _DXVA_ProcAmpControlQueryRange { + DWORD Size; + DXVA_ProcAmpControlProp ProcAmpControlProp; + DXVA_VideoDesc VideoDesc; +} DXVA_ProcAmpControlQueryRange, *LPDXVA_ProcAmpControlQueryRange; + +typedef struct _DXVA_VideoPropertyRange { + FLOAT MinValue; + FLOAT MaxValue; + FLOAT DefaultValue; + FLOAT StepSize; +} DXVA_VideoPropertyRange, *LPDXVA_VideoPropertyRange; + +#define DXVA_ProcAmpControlQueryRangeFnCode 0x04 +// lpInput => DXVA_ProcAmpControlQueryRange* +// lpOuput => DXVA_VideoPropertyRange* + +typedef struct _DXVA_ProcAmpControlBlt { + DWORD Size; + RECT DstRect; + RECT SrcRect; + FLOAT Alpha; + FLOAT Brightness; + FLOAT Contrast; + FLOAT Hue; + FLOAT Saturation; +} DXVA_ProcAmpControlBlt; + +#define DXVA_ProcAmpControlBltFnCode 0x01 +// lpInput => DXVA_ProcAmpControlBlt* +// lpOuput => NULL /* not currently used */ + +#endif /* __DIRECTX_VA_PROCAMPCONTROL__ */ + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the Certified Output Protection +// Protocol between the VMR and the graphics device driver. This interface +// is not accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_CERTOUTPUTPROTECT__ +#define __DIRECTX_VA_CERTOUTPUTPROTECT__ + +DEFINE_GUID(DXVA_COPPDevice, + 0xd2457add,0x8999,0x45ed,0x8a,0x8a,0xd1,0xaa,0x04,0x7b,0xa4,0xd5); + +// ------------------------------------------------------------------------- +// COPPGetCertificateLength +// ------------------------------------------------------------------------- +#define DXVA_COPPGetCertificateLengthFnCode 0x01 +// lpInput => NULL +// lpOuput => DWORD* + +// ------------------------------------------------------------------------- +// COPPKeyExchange +// ------------------------------------------------------------------------- +#define DXVA_COPPKeyExchangeFnCode 0x02 +// lpInputData => NULL +// lpOuputData => GUID* + +// ------------------------------------------------------------------------- +// COPPSequenceStart +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPSignature { + UCHAR Signature[256]; +} DXVA_COPPSignature, *LPDXVA_COPPSignature; + +#define DXVA_COPPSequenceStartFnCode 0x03 +// lpInputData => DXVA_COPPSignature* +// lpOuputData => NULL + +// ------------------------------------------------------------------------- +// COPPCommand +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPCommand { + GUID macKDI; // 16 bytes + GUID guidCommandID; // 16 bytes + ULONG dwSequence; // 4 bytes + ULONG cbSizeData; // 4 bytes + UCHAR CommandData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096) +} DXVA_COPPCommand, *LPDXVA_COPPCommand; + +#define DXVA_COPPCommandFnCode 0x04 +// lpInputData => DXVA_COPPCommand* +// lpOuputData => NULL + +DEFINE_GUID(DXVA_COPPSetProtectionLevel, + 0x9bb9327c,0x4eb5,0x4727,0x9f,0x00,0xb4,0x2b,0x09,0x19,0xc0,0xda); + +typedef struct _DXVA_COPPSetProtectionLevelCmdData { + ULONG ProtType; + ULONG ProtLevel; + ULONG ExtendedInfoChangeMask; + ULONG ExtendedInfoData; +} DXVA_COPPSetProtectionLevelCmdData; + +// Set the HDCP protection level - (0 - 1 DWORD, 4 bytes) + +typedef enum _COPP_HDCP_Protection_Level { + COPP_HDCP_Level0 = 0, + COPP_HDCP_LevelMin = COPP_HDCP_Level0, + COPP_HDCP_Level1 = 1, + COPP_HDCP_LevelMax = COPP_HDCP_Level1, + COPP_HDCP_ForceDWORD = 0x7fffffff +} COPP_HDCP_Protection_Level; + +typedef enum _COPP_CGMSA_Protection_Level { + COPP_CGMSA_Disabled = 0, + COPP_CGMSA_LevelMin = COPP_CGMSA_Disabled, + COPP_CGMSA_CopyFreely = 1, + COPP_CGMSA_CopyNoMore = 2, + COPP_CGMSA_CopyOneGeneration = 3, + COPP_CGMSA_CopyNever = 4, + COPP_CGMSA_RedistributionControlRequired = 0x08, + COPP_CGMSA_LevelMax = (COPP_CGMSA_RedistributionControlRequired + COPP_CGMSA_CopyNever), + COPP_CGMSA_ForceDWORD = 0x7fffffff +} COPP_CGMSA_Protection_Level; + +typedef enum _COPP_ACP_Protection_Level { + COPP_ACP_Level0 = 0, + COPP_ACP_LevelMin = COPP_ACP_Level0, + COPP_ACP_Level1 = 1, + COPP_ACP_Level2 = 2, + COPP_ACP_Level3 = 3, + COPP_ACP_LevelMax = COPP_ACP_Level3, + COPP_ACP_ForceDWORD = 0x7fffffff +} COPP_ACP_Protection_Level; + +#define COPP_NoProtectionLevelAvailable -1 +#define COPP_DefaultProtectionLevel 0 + +// +// Bit flags of possible protection types. Note that it is possible to apply +// different protection settings to a single connector. +// +enum { + COPP_ProtectionType_Unknown = 0x80000000, + COPP_ProtectionType_None = 0x00000000, + COPP_ProtectionType_HDCP = 0x00000001, + COPP_ProtectionType_ACP = 0x00000002, + COPP_ProtectionType_CGMSA = 0x00000004, + COPP_ProtectionType_Mask = 0x80000007, + COPP_ProtectionType_Reserved = 0x7FFFFFF8 +}; + +DEFINE_GUID(DXVA_COPPSetSignaling, + 0x9a631a5, 0xd684, 0x4c60, 0x8e, 0x4d, 0xd3, 0xbb, 0xf, 0xb, 0xe3, 0xee); + +typedef struct _DXVA_COPPSetSignalingCmdData { + ULONG ActiveTVProtectionStandard; // See COPP_TVProtectionStandard + ULONG AspectRatioChangeMask1; + ULONG AspectRatioData1; // See COPP_ImageAspectRatio_EN300294 for ETSI EN 300 294 values + ULONG AspectRatioChangeMask2; + ULONG AspectRatioData2; + ULONG AspectRatioChangeMask3; + ULONG AspectRatioData3; + ULONG ExtendedInfoChangeMask[4]; + ULONG ExtendedInfoData[4]; + ULONG Reserved; +} DXVA_COPPSetSignalingCmdData; + +// Add format enum and data enum +typedef enum _COPP_TVProtectionStandard { + COPP_ProtectionStandard_Unknown = 0x80000000, + COPP_ProtectionStandard_None = 0x00000000, + COPP_ProtectionStandard_IEC61880_525i = 0x00000001, + COPP_ProtectionStandard_IEC61880_2_525i = 0x00000002, + COPP_ProtectionStandard_IEC62375_625p = 0x00000004, + COPP_ProtectionStandard_EIA608B_525 = 0x00000008, + COPP_ProtectionStandard_EN300294_625i = 0x00000010, + COPP_ProtectionStandard_CEA805A_TypeA_525p = 0x00000020, + COPP_ProtectionStandard_CEA805A_TypeA_750p = 0x00000040, + COPP_ProtectionStandard_CEA805A_TypeA_1125i = 0x00000080, + COPP_ProtectionStandard_CEA805A_TypeB_525p = 0x00000100, + COPP_ProtectionStandard_CEA805A_TypeB_750p = 0x00000200, + COPP_ProtectionStandard_CEA805A_TypeB_1125i = 0x00000400, + COPP_ProtectionStandard_ARIBTRB15_525i = 0x00000800, + COPP_ProtectionStandard_ARIBTRB15_525p = 0x00001000, + COPP_ProtectionStandard_ARIBTRB15_750p = 0x00002000, + COPP_ProtectionStandard_ARIBTRB15_1125i = 0x00004000, + COPP_ProtectionStandard_Mask = 0x80007FFF, + COPP_ProtectionStandard_Reserved = 0x7FFF8000 +} COPP_TVProtectionStandard; + +#define COPP_ImageAspectRatio_EN300294_Mask 0x00000007 + +typedef enum _COPP_ImageAspectRatio_EN300294 { + COPP_AspectRatio_EN300294_FullFormat4by3 = 0, + COPP_AspectRatio_EN300294_Box14by9Center = 1, + COPP_AspectRatio_EN300294_Box14by9Top = 2, + COPP_AspectRatio_EN300294_Box16by9Center = 3, + COPP_AspectRatio_EN300294_Box16by9Top = 4, + COPP_AspectRatio_EN300294_BoxGT16by9Center = 5, + COPP_AspectRatio_EN300294_FullFormat4by3ProtectedCenter = 6, + COPP_AspectRatio_EN300294_FullFormat16by9Anamorphic = 7, + COPP_AspectRatio_ForceDWORD = 0x7fffffff +} COPP_ImageAspectRatio_EN300294; + +// ------------------------------------------------------------------------- +// COPPQueryStatus +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPStatusInput { + GUID rApp; // 16 bytes + GUID guidStatusRequestID;// 16 bytes + ULONG dwSequence; // 4 bytes + ULONG cbSizeData; // 4 bytes + UCHAR StatusData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096) +} DXVA_COPPStatusInput, *LPDXVA_COPPStatusInput; + +typedef struct _DXVA_COPPStatusOutput { + GUID macKDI; // 16 bytes + ULONG cbSizeData; // 4 bytes + UCHAR COPPStatus[4076]; // 4076 bytes (4076+16+4 = 4096) +} DXVA_COPPStatusOutput, *LPDXVA_COPPStatusOutput; + +typedef enum _COPP_StatusFlags { + COPP_StatusNormal = 0x00, + COPP_LinkLost = 0x01, + COPP_RenegotiationRequired = 0x02, + COPP_StatusFlagsReserved = 0xFFFFFFFC +} COPP_StatusFlags; + +typedef struct _DXVA_COPPStatusData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG dwData; + ULONG ExtendedInfoValidMask; + ULONG ExtendedInfoData; +} DXVA_COPPStatusData; + +typedef struct _DXVA_COPPStatusDisplayData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG DisplayWidth; + ULONG DisplayHeight; + ULONG Format; // also contains extended color data + ULONG d3dFormat; + ULONG FreqNumerator; + ULONG FreqDenominator; +} DXVA_COPPStatusDisplayData; + +typedef enum _COPP_StatusHDCPFlags { + COPP_HDCPRepeater = 0x01, + COPP_HDCPFlagsReserved = 0xFFFFFFFE +} COPP_StatusHDCPFlags; + +typedef struct _DXVA_COPPStatusHDCPKeyData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG dwHDCPFlags; // See COPP_StatusHDCPFlags above + GUID BKey; // Lower 40 bits + GUID Reserved1; + GUID Reserved2; +} DXVA_COPPStatusHDCPKeyData; + +#define DXVA_COPPQueryStatusFnCode 0x05 +// lpInputData => DXVA_COPPStatusInput* +// lpOuputData => DXVA_COPPStatusOutput* + +// +// Status GUID and enumerations +// +DEFINE_GUID(DXVA_COPPQueryConnectorType, + 0x81d0bfd5,0x6afe,0x48c2,0x99,0xc0,0x95,0xa0,0x8f,0x97,0xc5,0xda); + +typedef enum _COPP_ConnectorType { + COPP_ConnectorType_Unknown = -1, + COPP_ConnectorType_VGA = 0, + COPP_ConnectorType_SVideo = 1, + COPP_ConnectorType_CompositeVideo = 2, + COPP_ConnectorType_ComponentVideo = 3, + COPP_ConnectorType_DVI = 4, + COPP_ConnectorType_HDMI = 5, + COPP_ConnectorType_LVDS = 6, + COPP_ConnectorType_TMDS = 7, + COPP_ConnectorType_D_JPN = 8, + COPP_ConnectorType_Internal = 0x80000000, // can be combined with the other connector types + COPP_ConnectorType_ForceDWORD = 0x7fffffff /* force 32-bit size enum */ +} COPP_ConnectorType; + +DEFINE_GUID(DXVA_COPPQueryProtectionType, + 0x38f2a801,0x9a6c,0x48bb,0x91,0x07,0xb6,0x69,0x6e,0x6f,0x17,0x97); + +DEFINE_GUID(DXVA_COPPQueryLocalProtectionLevel, + 0xb2075857,0x3eda,0x4d5d,0x88,0xdb,0x74,0x8f,0x8c,0x1a,0x05,0x49); + +DEFINE_GUID(DXVA_COPPQueryGlobalProtectionLevel, + 0x1957210a,0x7766,0x452a,0xb9,0x9a,0xd2,0x7a,0xed,0x54,0xf0,0x3a); + +DEFINE_GUID(DXVA_COPPQueryDisplayData, + 0xd7bf1ba3,0xad13,0x4f8e,0xaf,0x98,0x0d,0xcb,0x3c,0xa2,0x04,0xcc); + +DEFINE_GUID(DXVA_COPPQueryHDCPKeyData, + 0xdb59d74, 0xa992, 0x492e, 0xa0, 0xbd, 0xc2, 0x3f, 0xda, 0x56, 0x4e, 0x0); + +DEFINE_GUID(DXVA_COPPQueryBusData, + 0xc6f4d673, 0x6174, 0x4184, 0x8e, 0x35, 0xf6, 0xdb, 0x52, 0x0, 0xbc, 0xba); + +typedef enum _COPP_BusType { + COPP_BusType_Unknown = 0, + COPP_BusType_PCI = 1, + COPP_BusType_PCIX = 2, + COPP_BusType_PCIExpress = 3, + COPP_BusType_AGP = 4, + COPP_BusType_Integrated = 0x80000000, // can be combined with the other bus types + COPP_BusType_ForceDWORD = 0x7fffffff /* force 32-bit size enum */ +} COPP_BusType; + +DEFINE_GUID(DXVA_COPPQuerySignaling, + 0x6629a591, 0x3b79, 0x4cf3, 0x92, 0x4a, 0x11, 0xe8, 0xe7, 0x81, 0x16, 0x71); + +typedef struct _DXVA_COPPStatusSignalingCmdData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG AvailableTVProtectionStandards; // See COPP_TVProtectionStandard + ULONG ActiveTVProtectionStandard; // See COPP_TVProtectionStandard + ULONG TVType; + ULONG AspectRatioValidMask1; + ULONG AspectRatioData1; // See COPP_AspectRatio_EN300294 for ETSI EN 300 294 values + ULONG AspectRatioValidMask2; + ULONG AspectRatioData2; + ULONG AspectRatioValidMask3; + ULONG AspectRatioData3; + ULONG ExtendedInfoValidMask[4]; + ULONG ExtendedInfoData[4]; +} DXVA_COPPStatusSignalingCmdData; + +#endif /* __DIRECTX_VA_CERTOUTPUTPROTECT__ */ + +#endif /* (DIRECT3D_VERSION >= 0x0900) */ +#endif /* _DXVA9TYP_H_ */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.h new file mode 100644 index 0000000000000000000000000000000000000000..aa5003ba1a7f12d74d4b804cb6bc5ea8a2e12e37 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.h @@ -0,0 +1,1168 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dxvahd_h__ +#define __dxvahd_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDXVAHD_Device_FWD_DEFINED__ +#define __IDXVAHD_Device_FWD_DEFINED__ +typedef interface IDXVAHD_Device IDXVAHD_Device; + +#endif /* __IDXVAHD_Device_FWD_DEFINED__ */ + + +#ifndef __IDXVAHD_VideoProcessor_FWD_DEFINED__ +#define __IDXVAHD_VideoProcessor_FWD_DEFINED__ +typedef interface IDXVAHD_VideoProcessor IDXVAHD_VideoProcessor; + +#endif /* __IDXVAHD_VideoProcessor_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dxvahd_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if 0 +typedef DWORD IDirect3DDevice9Ex; + +typedef DWORD IDirect3DSurface9; + +typedef DWORD D3DCOLOR; + +typedef DWORD D3DFORMAT; + +typedef DWORD D3DPOOL; + +#endif // 0 +#if defined(_WIN32) && !defined(_NO_COM) + + +DEFINE_GUID(IID_IDXVAHD_Device, 0x95f12dfd,0xd77e,0x49be,0x81,0x5f,0x57,0xd5,0x79,0x63,0x4d,0x6d); +DEFINE_GUID(IID_IDXVAHD_VideoProcessor, 0x95f4edf4,0x6e03,0x4cd7,0xbe,0x1b,0x30,0x75,0xd6,0x65,0xaa,0x52); + + +#endif + + +typedef +enum _DXVAHD_FRAME_FORMAT + { + DXVAHD_FRAME_FORMAT_PROGRESSIVE = 0, + DXVAHD_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1, + DXVAHD_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2 + } DXVAHD_FRAME_FORMAT; + +typedef +enum _DXVAHD_DEVICE_USAGE + { + DXVAHD_DEVICE_USAGE_PLAYBACK_NORMAL = 0, + DXVAHD_DEVICE_USAGE_OPTIMAL_SPEED = 1, + DXVAHD_DEVICE_USAGE_OPTIMAL_QUALITY = 2 + } DXVAHD_DEVICE_USAGE; + +typedef +enum _DXVAHD_SURFACE_TYPE + { + DXVAHD_SURFACE_TYPE_VIDEO_INPUT = 0, + DXVAHD_SURFACE_TYPE_VIDEO_INPUT_PRIVATE = 1, + DXVAHD_SURFACE_TYPE_VIDEO_OUTPUT = 2 + } DXVAHD_SURFACE_TYPE; + +typedef +enum _DXVAHD_DEVICE_TYPE + { + DXVAHD_DEVICE_TYPE_HARDWARE = 0, + DXVAHD_DEVICE_TYPE_SOFTWARE = 1, + DXVAHD_DEVICE_TYPE_REFERENCE = 2, + DXVAHD_DEVICE_TYPE_OTHER = 3 + } DXVAHD_DEVICE_TYPE; + +typedef +enum _DXVAHD_DEVICE_CAPS + { + DXVAHD_DEVICE_CAPS_LINEAR_SPACE = 0x1, + DXVAHD_DEVICE_CAPS_xvYCC = 0x2, + DXVAHD_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x4, + DXVAHD_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x8 + } DXVAHD_DEVICE_CAPS; + +typedef +enum _DXVAHD_FEATURE_CAPS + { + DXVAHD_FEATURE_CAPS_ALPHA_FILL = 0x1, + DXVAHD_FEATURE_CAPS_CONSTRICTION = 0x2, + DXVAHD_FEATURE_CAPS_LUMA_KEY = 0x4, + DXVAHD_FEATURE_CAPS_ALPHA_PALETTE = 0x8 + } DXVAHD_FEATURE_CAPS; + +typedef +enum _DXVAHD_FILTER_CAPS + { + DXVAHD_FILTER_CAPS_BRIGHTNESS = 0x1, + DXVAHD_FILTER_CAPS_CONTRAST = 0x2, + DXVAHD_FILTER_CAPS_HUE = 0x4, + DXVAHD_FILTER_CAPS_SATURATION = 0x8, + DXVAHD_FILTER_CAPS_NOISE_REDUCTION = 0x10, + DXVAHD_FILTER_CAPS_EDGE_ENHANCEMENT = 0x20, + DXVAHD_FILTER_CAPS_ANAMORPHIC_SCALING = 0x40 + } DXVAHD_FILTER_CAPS; + +typedef +enum _DXVAHD_INPUT_FORMAT_CAPS + { + DXVAHD_INPUT_FORMAT_CAPS_RGB_INTERLACED = 0x1, + DXVAHD_INPUT_FORMAT_CAPS_RGB_PROCAMP = 0x2, + DXVAHD_INPUT_FORMAT_CAPS_RGB_LUMA_KEY = 0x4, + DXVAHD_INPUT_FORMAT_CAPS_PALETTE_INTERLACED = 0x8 + } DXVAHD_INPUT_FORMAT_CAPS; + +typedef +enum _DXVAHD_PROCESSOR_CAPS + { + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x1, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x2, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x4, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x8, + DXVAHD_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10, + DXVAHD_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20 + } DXVAHD_PROCESSOR_CAPS; + +typedef +enum _DXVAHD_ITELECINE_CAPS + { + DXVAHD_ITELECINE_CAPS_32 = 0x1, + DXVAHD_ITELECINE_CAPS_22 = 0x2, + DXVAHD_ITELECINE_CAPS_2224 = 0x4, + DXVAHD_ITELECINE_CAPS_2332 = 0x8, + DXVAHD_ITELECINE_CAPS_32322 = 0x10, + DXVAHD_ITELECINE_CAPS_55 = 0x20, + DXVAHD_ITELECINE_CAPS_64 = 0x40, + DXVAHD_ITELECINE_CAPS_87 = 0x80, + DXVAHD_ITELECINE_CAPS_222222222223 = 0x100, + DXVAHD_ITELECINE_CAPS_OTHER = 0x80000000 + } DXVAHD_ITELECINE_CAPS; + +typedef +enum _DXVAHD_FILTER + { + DXVAHD_FILTER_BRIGHTNESS = 0, + DXVAHD_FILTER_CONTRAST = 1, + DXVAHD_FILTER_HUE = 2, + DXVAHD_FILTER_SATURATION = 3, + DXVAHD_FILTER_NOISE_REDUCTION = 4, + DXVAHD_FILTER_EDGE_ENHANCEMENT = 5, + DXVAHD_FILTER_ANAMORPHIC_SCALING = 6 + } DXVAHD_FILTER; + +typedef +enum _DXVAHD_BLT_STATE + { + DXVAHD_BLT_STATE_TARGET_RECT = 0, + DXVAHD_BLT_STATE_BACKGROUND_COLOR = 1, + DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE = 2, + DXVAHD_BLT_STATE_ALPHA_FILL = 3, + DXVAHD_BLT_STATE_CONSTRICTION = 4, + DXVAHD_BLT_STATE_PRIVATE = 1000 + } DXVAHD_BLT_STATE; + +typedef +enum _DXVAHD_ALPHA_FILL_MODE + { + DXVAHD_ALPHA_FILL_MODE_OPAQUE = 0, + DXVAHD_ALPHA_FILL_MODE_BACKGROUND = 1, + DXVAHD_ALPHA_FILL_MODE_DESTINATION = 2, + DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM = 3 + } DXVAHD_ALPHA_FILL_MODE; + +typedef +enum _DXVAHD_STREAM_STATE + { + DXVAHD_STREAM_STATE_D3DFORMAT = 0, + DXVAHD_STREAM_STATE_FRAME_FORMAT = 1, + DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE = 2, + DXVAHD_STREAM_STATE_OUTPUT_RATE = 3, + DXVAHD_STREAM_STATE_SOURCE_RECT = 4, + DXVAHD_STREAM_STATE_DESTINATION_RECT = 5, + DXVAHD_STREAM_STATE_ALPHA = 6, + DXVAHD_STREAM_STATE_PALETTE = 7, + DXVAHD_STREAM_STATE_LUMA_KEY = 8, + DXVAHD_STREAM_STATE_ASPECT_RATIO = 9, + DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS = 100, + DXVAHD_STREAM_STATE_FILTER_CONTRAST = 101, + DXVAHD_STREAM_STATE_FILTER_HUE = 102, + DXVAHD_STREAM_STATE_FILTER_SATURATION = 103, + DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTION = 104, + DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENT = 105, + DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALING = 106, + DXVAHD_STREAM_STATE_PRIVATE = 1000 + } DXVAHD_STREAM_STATE; + +typedef +enum _DXVAHD_OUTPUT_RATE + { + DXVAHD_OUTPUT_RATE_NORMAL = 0, + DXVAHD_OUTPUT_RATE_HALF = 1, + DXVAHD_OUTPUT_RATE_CUSTOM = 2 + } DXVAHD_OUTPUT_RATE; + +typedef struct _DXVAHD_RATIONAL + { + UINT Numerator; + UINT Denominator; + } DXVAHD_RATIONAL; + +typedef struct _DXVAHD_COLOR_RGBA + { + FLOAT R; + FLOAT G; + FLOAT B; + FLOAT A; + } DXVAHD_COLOR_RGBA; + +typedef struct _DXVAHD_COLOR_YCbCrA + { + FLOAT Y; + FLOAT Cb; + FLOAT Cr; + FLOAT A; + } DXVAHD_COLOR_YCbCrA; + +typedef union _DXVAHD_COLOR + { + DXVAHD_COLOR_RGBA RGB; + DXVAHD_COLOR_YCbCrA YCbCr; + } DXVAHD_COLOR; + +typedef struct _DXVAHD_CONTENT_DESC + { + DXVAHD_FRAME_FORMAT InputFrameFormat; + DXVAHD_RATIONAL InputFrameRate; + UINT InputWidth; + UINT InputHeight; + DXVAHD_RATIONAL OutputFrameRate; + UINT OutputWidth; + UINT OutputHeight; + } DXVAHD_CONTENT_DESC; + +typedef struct _DXVAHD_VPDEVCAPS + { + DXVAHD_DEVICE_TYPE DeviceType; + UINT DeviceCaps; + UINT FeatureCaps; + UINT FilterCaps; + UINT InputFormatCaps; + D3DPOOL InputPool; + UINT OutputFormatCount; + UINT InputFormatCount; + UINT VideoProcessorCount; + UINT MaxInputStreams; + UINT MaxStreamStates; + } DXVAHD_VPDEVCAPS; + +typedef struct _DXVAHD_VPCAPS + { + GUID VPGuid; + UINT PastFrames; + UINT FutureFrames; + UINT ProcessorCaps; + UINT ITelecineCaps; + UINT CustomRateCount; + } DXVAHD_VPCAPS; + +typedef struct _DXVAHD_CUSTOM_RATE_DATA + { + DXVAHD_RATIONAL CustomRate; + UINT OutputFrames; + BOOL InputInterlaced; + UINT InputFramesOrFields; + } DXVAHD_CUSTOM_RATE_DATA; + +typedef struct _DXVAHD_FILTER_RANGE_DATA + { + INT Minimum; + INT Maximum; + INT Default; + FLOAT Multiplier; + } DXVAHD_FILTER_RANGE_DATA; + +typedef struct _DXVAHD_BLT_STATE_TARGET_RECT_DATA + { + BOOL Enable; + RECT TargetRect; + } DXVAHD_BLT_STATE_TARGET_RECT_DATA; + +typedef struct _DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA + { + BOOL YCbCr; + DXVAHD_COLOR BackgroundColor; + } DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA; + +typedef struct _DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA + { + union + { + struct + { + UINT Usage : 1; + UINT RGB_Range : 1; + UINT YCbCr_Matrix : 1; + UINT YCbCr_xvYCC : 1; + UINT Reserved : 28; + } ; + UINT Value; + } ; + } DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA; + +typedef struct _DXVAHD_BLT_STATE_ALPHA_FILL_DATA + { + DXVAHD_ALPHA_FILL_MODE Mode; + UINT StreamNumber; + } DXVAHD_BLT_STATE_ALPHA_FILL_DATA; + +typedef struct _DXVAHD_BLT_STATE_CONSTRICTION_DATA + { + BOOL Enable; + SIZE Size; + } DXVAHD_BLT_STATE_CONSTRICTION_DATA; + +typedef struct _DXVAHD_BLT_STATE_PRIVATE_DATA + { + GUID Guid; + UINT DataSize; + void *pData; + } DXVAHD_BLT_STATE_PRIVATE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_D3DFORMAT_DATA + { + D3DFORMAT Format; + } DXVAHD_STREAM_STATE_D3DFORMAT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA + { + DXVAHD_FRAME_FORMAT FrameFormat; + } DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA + { + union + { + struct + { + UINT Type : 1; + UINT RGB_Range : 1; + UINT YCbCr_Matrix : 1; + UINT YCbCr_xvYCC : 1; + UINT Reserved : 28; + } ; + UINT Value; + } ; + } DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA + { + BOOL RepeatFrame; + DXVAHD_OUTPUT_RATE OutputRate; + DXVAHD_RATIONAL CustomRate; + } DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_SOURCE_RECT_DATA + { + BOOL Enable; + RECT SourceRect; + } DXVAHD_STREAM_STATE_SOURCE_RECT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA + { + BOOL Enable; + RECT DestinationRect; + } DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_ALPHA_DATA + { + BOOL Enable; + FLOAT Alpha; + } DXVAHD_STREAM_STATE_ALPHA_DATA; + +typedef struct _DXVAHD_STREAM_STATE_PALETTE_DATA + { + UINT Count; + D3DCOLOR *pEntries; + } DXVAHD_STREAM_STATE_PALETTE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_LUMA_KEY_DATA + { + BOOL Enable; + FLOAT Lower; + FLOAT Upper; + } DXVAHD_STREAM_STATE_LUMA_KEY_DATA; + +typedef struct _DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA + { + BOOL Enable; + DXVAHD_RATIONAL SourceAspectRatio; + DXVAHD_RATIONAL DestinationAspectRatio; + } DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA; + +typedef struct _DXVAHD_STREAM_STATE_FILTER_DATA + { + BOOL Enable; + INT Level; + } DXVAHD_STREAM_STATE_FILTER_DATA; + +typedef struct _DXVAHD_STREAM_STATE_PRIVATE_DATA + { + GUID Guid; + UINT DataSize; + void *pData; + } DXVAHD_STREAM_STATE_PRIVATE_DATA; + +typedef struct _DXVAHD_STREAM_DATA + { + BOOL Enable; + UINT OutputIndex; + UINT InputFrameOrField; + UINT PastFrames; + UINT FutureFrames; + IDirect3DSurface9 **ppPastSurfaces; + IDirect3DSurface9 *pInputSurface; + IDirect3DSurface9 **ppFutureSurfaces; + } DXVAHD_STREAM_DATA; + + + +DEFINE_GUID(DXVAHD_STREAM_STATE_PRIVATE_IVTC, 0x9c601e3c,0x0f33,0x414c,0xa7,0x39,0x99,0x54,0x0e,0xe4,0x2d,0xa5); + + +typedef struct _DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA + { + BOOL Enable; + UINT ITelecineFlags; + UINT Frames; + UINT InputField; + } DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA; + + + +extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0000_v0_0_s_ifspec; + +#ifndef __IDXVAHD_Device_INTERFACE_DEFINED__ +#define __IDXVAHD_Device_INTERFACE_DEFINED__ + +/* interface IDXVAHD_Device */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDXVAHD_Device; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("95f12dfd-d77e-49be-815f-57d579634d6d") + IDXVAHD_Device : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateVideoSurface( + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DXVAHD_SURFACE_TYPE Type, + /* [annotation][in] */ + _In_ UINT NumSurfaces, + /* [annotation][size_is][out] */ + _Out_writes_(NumSurfaces) IDirect3DSurface9 **ppSurfaces, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorDeviceCaps( + /* [annotation][out] */ + _Out_ DXVAHD_VPDEVCAPS *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorOutputFormats( + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) D3DFORMAT *pFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorInputFormats( + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) D3DFORMAT *pFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps( + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) DXVAHD_VPCAPS *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCustomRates( + /* [annotation][in] */ + _In_ const GUID *pVPGuid, + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA *pRates) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorFilterRange( + /* [annotation][in] */ + _In_ DXVAHD_FILTER Filter, + /* [annotation][out] */ + _Out_ DXVAHD_FILTER_RANGE_DATA *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessor( + /* [annotation][in] */ + _In_ const GUID *pVPGuid, + /* [annotation][out] */ + _Outptr_ IDXVAHD_VideoProcessor **ppVideoProcessor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDXVAHD_DeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDXVAHD_Device * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDXVAHD_Device * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDXVAHD_Device * This); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, CreateVideoSurface) + HRESULT ( STDMETHODCALLTYPE *CreateVideoSurface )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DXVAHD_SURFACE_TYPE Type, + /* [annotation][in] */ + _In_ UINT NumSurfaces, + /* [annotation][size_is][out] */ + _Out_writes_(NumSurfaces) IDirect3DSurface9 **ppSurfaces, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorDeviceCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorDeviceCaps )( + IDXVAHD_Device * This, + /* [annotation][out] */ + _Out_ DXVAHD_VPDEVCAPS *pCaps); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorOutputFormats) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorOutputFormats )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) D3DFORMAT *pFormats); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorInputFormats) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorInputFormats )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) D3DFORMAT *pFormats); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) DXVAHD_VPCAPS *pCaps); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorCustomRates) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCustomRates )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ const GUID *pVPGuid, + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA *pRates); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorFilterRange) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorFilterRange )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ DXVAHD_FILTER Filter, + /* [annotation][out] */ + _Out_ DXVAHD_FILTER_RANGE_DATA *pRange); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ const GUID *pVPGuid, + /* [annotation][out] */ + _Outptr_ IDXVAHD_VideoProcessor **ppVideoProcessor); + + END_INTERFACE + } IDXVAHD_DeviceVtbl; + + interface IDXVAHD_Device + { + CONST_VTBL struct IDXVAHD_DeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDXVAHD_Device_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDXVAHD_Device_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDXVAHD_Device_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDXVAHD_Device_CreateVideoSurface(This,Width,Height,Format,Pool,Usage,Type,NumSurfaces,ppSurfaces,pSharedHandle) \ + ( (This)->lpVtbl -> CreateVideoSurface(This,Width,Height,Format,Pool,Usage,Type,NumSurfaces,ppSurfaces,pSharedHandle) ) + +#define IDXVAHD_Device_GetVideoProcessorDeviceCaps(This,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorDeviceCaps(This,pCaps) ) + +#define IDXVAHD_Device_GetVideoProcessorOutputFormats(This,Count,pFormats) \ + ( (This)->lpVtbl -> GetVideoProcessorOutputFormats(This,Count,pFormats) ) + +#define IDXVAHD_Device_GetVideoProcessorInputFormats(This,Count,pFormats) \ + ( (This)->lpVtbl -> GetVideoProcessorInputFormats(This,Count,pFormats) ) + +#define IDXVAHD_Device_GetVideoProcessorCaps(This,Count,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorCaps(This,Count,pCaps) ) + +#define IDXVAHD_Device_GetVideoProcessorCustomRates(This,pVPGuid,Count,pRates) \ + ( (This)->lpVtbl -> GetVideoProcessorCustomRates(This,pVPGuid,Count,pRates) ) + +#define IDXVAHD_Device_GetVideoProcessorFilterRange(This,Filter,pRange) \ + ( (This)->lpVtbl -> GetVideoProcessorFilterRange(This,Filter,pRange) ) + +#define IDXVAHD_Device_CreateVideoProcessor(This,pVPGuid,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,pVPGuid,ppVideoProcessor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDXVAHD_Device_INTERFACE_DEFINED__ */ + + +#ifndef __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__ +#define __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__ + +/* interface IDXVAHD_VideoProcessor */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDXVAHD_VideoProcessor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("95f4edf4-6e03-4cd7-be1b-3075d665aa52") + IDXVAHD_VideoProcessor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetVideoProcessBltState( + /* [annotation][in] */ + _In_ DXVAHD_BLT_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][in] */ + _In_reads_bytes_(DataSize) const void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessBltState( + /* [annotation][in] */ + _In_ DXVAHD_BLT_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][out] */ + _Inout_updates_bytes_(DataSize) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetVideoProcessStreamState( + /* [annotation][in] */ + _In_ UINT StreamNumber, + /* [annotation][in] */ + _In_ DXVAHD_STREAM_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][in] */ + _In_reads_bytes_(DataSize) const void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessStreamState( + /* [annotation][in] */ + _In_ UINT StreamNumber, + /* [annotation][in] */ + _In_ DXVAHD_STREAM_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][out] */ + _Inout_updates_bytes_(DataSize) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE VideoProcessBltHD( + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pOutputSurface, + /* [annotation][in] */ + _In_ UINT OutputFrame, + /* [annotation][in] */ + _In_ UINT StreamCount, + /* [annotation][size_is][in] */ + _In_reads_(StreamCount) const DXVAHD_STREAM_DATA *pStreams) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDXVAHD_VideoProcessorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDXVAHD_VideoProcessor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDXVAHD_VideoProcessor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDXVAHD_VideoProcessor * This); + + DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, SetVideoProcessBltState) + HRESULT ( STDMETHODCALLTYPE *SetVideoProcessBltState )( + IDXVAHD_VideoProcessor * This, + /* [annotation][in] */ + _In_ DXVAHD_BLT_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][in] */ + _In_reads_bytes_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, GetVideoProcessBltState) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessBltState )( + IDXVAHD_VideoProcessor * This, + /* [annotation][in] */ + _In_ DXVAHD_BLT_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][out] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, SetVideoProcessStreamState) + HRESULT ( STDMETHODCALLTYPE *SetVideoProcessStreamState )( + IDXVAHD_VideoProcessor * This, + /* [annotation][in] */ + _In_ UINT StreamNumber, + /* [annotation][in] */ + _In_ DXVAHD_STREAM_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][in] */ + _In_reads_bytes_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, GetVideoProcessStreamState) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessStreamState )( + IDXVAHD_VideoProcessor * This, + /* [annotation][in] */ + _In_ UINT StreamNumber, + /* [annotation][in] */ + _In_ DXVAHD_STREAM_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][out] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, VideoProcessBltHD) + HRESULT ( STDMETHODCALLTYPE *VideoProcessBltHD )( + IDXVAHD_VideoProcessor * This, + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pOutputSurface, + /* [annotation][in] */ + _In_ UINT OutputFrame, + /* [annotation][in] */ + _In_ UINT StreamCount, + /* [annotation][size_is][in] */ + _In_reads_(StreamCount) const DXVAHD_STREAM_DATA *pStreams); + + END_INTERFACE + } IDXVAHD_VideoProcessorVtbl; + + interface IDXVAHD_VideoProcessor + { + CONST_VTBL struct IDXVAHD_VideoProcessorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDXVAHD_VideoProcessor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDXVAHD_VideoProcessor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDXVAHD_VideoProcessor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDXVAHD_VideoProcessor_SetVideoProcessBltState(This,State,DataSize,pData) \ + ( (This)->lpVtbl -> SetVideoProcessBltState(This,State,DataSize,pData) ) + +#define IDXVAHD_VideoProcessor_GetVideoProcessBltState(This,State,DataSize,pData) \ + ( (This)->lpVtbl -> GetVideoProcessBltState(This,State,DataSize,pData) ) + +#define IDXVAHD_VideoProcessor_SetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) \ + ( (This)->lpVtbl -> SetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) ) + +#define IDXVAHD_VideoProcessor_GetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) \ + ( (This)->lpVtbl -> GetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) ) + +#define IDXVAHD_VideoProcessor_VideoProcessBltHD(This,pOutputSurface,OutputFrame,StreamCount,pStreams) \ + ( (This)->lpVtbl -> VideoProcessBltHD(This,pOutputSurface,OutputFrame,StreamCount,pStreams) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dxvahd_0000_0002 */ +/* [local] */ + + + +typedef HRESULT (CALLBACK* PDXVAHDSW_CreateDevice)( + _In_ IDirect3DDevice9Ex* pD3DDevice, + _Out_ HANDLE* phDevice + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_ProposeVideoPrivateFormat)( + _In_ HANDLE hDevice, + _Inout_ D3DFORMAT* pFormat + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorDeviceCaps)( + _In_ HANDLE hDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _Out_ DXVAHD_VPDEVCAPS* pCaps + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorOutputFormats)( + _In_ HANDLE hDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _In_ UINT Count, + _Out_writes_(Count) D3DFORMAT* pFormats + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorInputFormats)( + _In_ HANDLE hDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _In_ UINT Count, + _Out_writes_(Count) D3DFORMAT* pFormats + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCaps)( + _In_ HANDLE hDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _In_ UINT Count, + _Out_writes_(Count) DXVAHD_VPCAPS* pCaps + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCustomRates)( + _In_ HANDLE hDevice, + _In_ const GUID* pVPGuid, + _In_ UINT Count, + _Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA* pRates + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorFilterRange)( + _In_ HANDLE hDevice, + _In_ DXVAHD_FILTER Filter, + _Out_ DXVAHD_FILTER_RANGE_DATA* pRange + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyDevice)( + _In_ HANDLE hDevice + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_CreateVideoProcessor)( + _In_ HANDLE hDevice, + _In_ const GUID* pVPGuid, + _Out_ HANDLE* phVideoProcessor + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessBltState)( + _In_ HANDLE hVideoProcessor, + _In_ DXVAHD_BLT_STATE State, + _In_ UINT DataSize, + _In_reads_bytes_(DataSize) const void* pData + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessBltStatePrivate)( + _In_ HANDLE hVideoProcessor, + _Inout_ DXVAHD_BLT_STATE_PRIVATE_DATA* pData + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessStreamState)( + _In_ HANDLE hVideoProcessor, + _In_ UINT StreamNumber, + _In_ DXVAHD_STREAM_STATE State, + _In_ UINT DataSize, + _In_reads_bytes_(DataSize) const void* pData + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessStreamStatePrivate)( + _In_ HANDLE hVideoProcessor, + _In_ UINT StreamNumber, + _Inout_ DXVAHD_STREAM_STATE_PRIVATE_DATA* pData + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_VideoProcessBltHD)( + _In_ HANDLE hVideoProcessor, + _In_ IDirect3DSurface9* pOutputSurface, + _In_ UINT OutputFrame, + _In_ UINT StreamCount, + _In_reads_(StreamCount) const DXVAHD_STREAM_DATA* pStreams + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyVideoProcessor)( + _In_ HANDLE hVideoProcessor + ); + +typedef struct _DXVAHDSW_CALLBACKS +{ + PDXVAHDSW_CreateDevice CreateDevice; + PDXVAHDSW_ProposeVideoPrivateFormat ProposeVideoPrivateFormat; + PDXVAHDSW_GetVideoProcessorDeviceCaps GetVideoProcessorDeviceCaps; + PDXVAHDSW_GetVideoProcessorOutputFormats GetVideoProcessorOutputFormats; + PDXVAHDSW_GetVideoProcessorInputFormats GetVideoProcessorInputFormats; + PDXVAHDSW_GetVideoProcessorCaps GetVideoProcessorCaps; + PDXVAHDSW_GetVideoProcessorCustomRates GetVideoProcessorCustomRates; + PDXVAHDSW_GetVideoProcessorFilterRange GetVideoProcessorFilterRange; + PDXVAHDSW_DestroyDevice DestroyDevice; + PDXVAHDSW_CreateVideoProcessor CreateVideoProcessor; + PDXVAHDSW_SetVideoProcessBltState SetVideoProcessBltState; + PDXVAHDSW_GetVideoProcessBltStatePrivate GetVideoProcessBltStatePrivate; + PDXVAHDSW_SetVideoProcessStreamState SetVideoProcessStreamState; + PDXVAHDSW_GetVideoProcessStreamStatePrivate GetVideoProcessStreamStatePrivate; + PDXVAHDSW_VideoProcessBltHD VideoProcessBltHD; + PDXVAHDSW_DestroyVideoProcessor DestroyVideoProcessor; +} DXVAHDSW_CALLBACKS; + +typedef HRESULT (CALLBACK* PDXVAHDSW_Plugin)( + _In_ UINT Size, + _Out_writes_bytes_(Size) void* pCallbacks + ); + + + + +DEFINE_GUID(DXVAHDControlGuid, 0xa0386e75,0xf70c,0x464c,0xa9,0xce,0x33,0xc4,0x4e,0x09,0x16,0x23); // DXVA2Trace_Control + +DEFINE_GUID(DXVAHDETWGUID_CREATEVIDEOPROCESSOR, 0x681e3d1e,0x5674,0x4fb3,0xa5,0x03,0x2f,0x20,0x55,0xe9,0x1f,0x60); +DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTSTATE, 0x76c94b5a,0x193f,0x4692,0x94,0x84,0xa4,0xd9,0x99,0xda,0x81,0xa8); +DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSSTREAMSTATE, 0x262c0b02,0x209d,0x47ed,0x94,0xd8,0x82,0xae,0x02,0xb8,0x4a,0xa7); +DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD, 0xbef3d435,0x78c7,0x4de3,0x97,0x07,0xcd,0x1b,0x08,0x3b,0x16,0x0a); +DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD_STREAM, 0x27ae473e,0xa5fc,0x4be5,0xb4,0xe3,0xf2,0x49,0x94,0xd3,0xc4,0x95); +DEFINE_GUID(DXVAHDETWGUID_DESTROYVIDEOPROCESSOR, 0xf943f0a0,0x3f16,0x43e0,0x80,0x93,0x10,0x5a,0x98,0x6a,0xa5,0xf1); + + +typedef struct _DXVAHDETW_CREATEVIDEOPROCESSOR + { + ULONGLONG pObject; + ULONGLONG pD3D9Ex; + GUID VPGuid; + } DXVAHDETW_CREATEVIDEOPROCESSOR; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTSTATE + { + ULONGLONG pObject; + DXVAHD_BLT_STATE State; + UINT DataSize; + BOOL SetState; + } DXVAHDETW_VIDEOPROCESSBLTSTATE; + +typedef struct _DXVAHDETW_VIDEOPROCESSSTREAMSTATE + { + ULONGLONG pObject; + UINT StreamNumber; + DXVAHD_STREAM_STATE State; + UINT DataSize; + BOOL SetState; + } DXVAHDETW_VIDEOPROCESSSTREAMSTATE; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD + { + ULONGLONG pObject; + ULONGLONG pOutputSurface; + RECT TargetRect; + D3DFORMAT OutputFormat; + UINT ColorSpace; + UINT OutputFrame; + UINT StreamCount; + BOOL Enter; + } DXVAHDETW_VIDEOPROCESSBLTHD; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD_STREAM + { + ULONGLONG pObject; + ULONGLONG pInputSurface; + RECT SourceRect; + RECT DestinationRect; + D3DFORMAT InputFormat; + DXVAHD_FRAME_FORMAT FrameFormat; + UINT ColorSpace; + UINT StreamNumber; + UINT OutputIndex; + UINT InputFrameOrField; + UINT PastFrames; + UINT FutureFrames; + } DXVAHDETW_VIDEOPROCESSBLTHD_STREAM; + +typedef struct _DXVAHDETW_DESTROYVIDEOPROCESSOR + { + ULONGLONG pObject; + } DXVAHDETW_DESTROYVIDEOPROCESSOR; + + + +HRESULT WINAPI +DXVAHD_CreateDevice( + _In_ IDirect3DDevice9Ex* pD3DDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _In_opt_ PDXVAHDSW_Plugin pPlugin, + _Outptr_ IDXVAHD_Device** ppDevice + ); + +typedef HRESULT (WINAPI* PDXVAHD_CreateDevice)( + _In_ IDirect3DDevice9Ex* pD3DDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _In_opt_ PDXVAHDSW_Plugin pPlugin, + _Outptr_ IDXVAHD_Device** ppDevice + ); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.idl new file mode 100644 index 0000000000000000000000000000000000000000..94a932411a61343cf2d0f4766e7fa5ec3515613a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.idl @@ -0,0 +1,818 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// DXVA-HD IDL +// +// Contains interface definitions for DirectX Video Acceleration for HD API. +// +// Copyright (C) Microsoft Corporation +// +/////////////////////////////////////////////////////////////////////////////// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl"; + + +// +// TEMPORARY DECLARATIONS FOR MIDL COMPILER +// + +cpp_quote("#if 0") + +typedef DWORD IDirect3DDevice9Ex; +typedef DWORD IDirect3DSurface9; +typedef DWORD D3DCOLOR; +typedef DWORD D3DFORMAT; +typedef DWORD D3DPOOL; + +cpp_quote("#endif // 0") + + +// +// DXVA-HD COM INTERFACE ID +// + +cpp_quote("#if defined(_WIN32) && !defined(_NO_COM)") + +cpp_quote("") +cpp_quote("") +cpp_quote("DEFINE_GUID(IID_IDXVAHD_Device, 0x95f12dfd,0xd77e,0x49be,0x81,0x5f,0x57,0xd5,0x79,0x63,0x4d,0x6d);") +cpp_quote("DEFINE_GUID(IID_IDXVAHD_VideoProcessor, 0x95f4edf4,0x6e03,0x4cd7,0xbe,0x1b,0x30,0x75,0xd6,0x65,0xaa,0x52);") +cpp_quote("") +cpp_quote("") + +cpp_quote("#endif") + + +// +// FORWARD DECLARATIONS +// + +interface IDXVAHD_Device; +interface IDXVAHD_VideoProcessor; + + +// +// DXVA-HD API ENUMERATIONS +// + +typedef enum _DXVAHD_FRAME_FORMAT +{ + DXVAHD_FRAME_FORMAT_PROGRESSIVE = 0, + DXVAHD_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1, + DXVAHD_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2 +} DXVAHD_FRAME_FORMAT; + +typedef enum _DXVAHD_DEVICE_USAGE +{ + DXVAHD_DEVICE_USAGE_PLAYBACK_NORMAL = 0, + DXVAHD_DEVICE_USAGE_OPTIMAL_SPEED = 1, + DXVAHD_DEVICE_USAGE_OPTIMAL_QUALITY = 2 +} DXVAHD_DEVICE_USAGE; + +typedef enum _DXVAHD_SURFACE_TYPE +{ + DXVAHD_SURFACE_TYPE_VIDEO_INPUT = 0, + DXVAHD_SURFACE_TYPE_VIDEO_INPUT_PRIVATE = 1, + DXVAHD_SURFACE_TYPE_VIDEO_OUTPUT = 2 +} DXVAHD_SURFACE_TYPE; + +typedef enum _DXVAHD_DEVICE_TYPE +{ + DXVAHD_DEVICE_TYPE_HARDWARE = 0, + DXVAHD_DEVICE_TYPE_SOFTWARE = 1, + DXVAHD_DEVICE_TYPE_REFERENCE = 2, + DXVAHD_DEVICE_TYPE_OTHER = 3 +} DXVAHD_DEVICE_TYPE; + +typedef enum _DXVAHD_DEVICE_CAPS +{ + DXVAHD_DEVICE_CAPS_LINEAR_SPACE = 0x1, + DXVAHD_DEVICE_CAPS_xvYCC = 0x2, + DXVAHD_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x4, + DXVAHD_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x8 +} DXVAHD_DEVICE_CAPS; + +typedef enum _DXVAHD_FEATURE_CAPS +{ + DXVAHD_FEATURE_CAPS_ALPHA_FILL = 0x1, + DXVAHD_FEATURE_CAPS_CONSTRICTION = 0x2, + DXVAHD_FEATURE_CAPS_LUMA_KEY = 0x4, + DXVAHD_FEATURE_CAPS_ALPHA_PALETTE = 0x8 +} DXVAHD_FEATURE_CAPS; + +typedef enum _DXVAHD_FILTER_CAPS +{ + DXVAHD_FILTER_CAPS_BRIGHTNESS = 0x1, + DXVAHD_FILTER_CAPS_CONTRAST = 0x2, + DXVAHD_FILTER_CAPS_HUE = 0x4, + DXVAHD_FILTER_CAPS_SATURATION = 0x8, + DXVAHD_FILTER_CAPS_NOISE_REDUCTION = 0x10, + DXVAHD_FILTER_CAPS_EDGE_ENHANCEMENT = 0x20, + DXVAHD_FILTER_CAPS_ANAMORPHIC_SCALING = 0x40 +} DXVAHD_FILTER_CAPS; + +typedef enum _DXVAHD_INPUT_FORMAT_CAPS +{ + DXVAHD_INPUT_FORMAT_CAPS_RGB_INTERLACED = 0x1, + DXVAHD_INPUT_FORMAT_CAPS_RGB_PROCAMP = 0x2, + DXVAHD_INPUT_FORMAT_CAPS_RGB_LUMA_KEY = 0x4, + DXVAHD_INPUT_FORMAT_CAPS_PALETTE_INTERLACED = 0x8 +} DXVAHD_INPUT_FORMAT_CAPS; + +typedef enum _DXVAHD_PROCESSOR_CAPS +{ + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x1, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x2, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x4, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x8, + DXVAHD_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10, + DXVAHD_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20 +} DXVAHD_PROCESSOR_CAPS; + +typedef enum _DXVAHD_ITELECINE_CAPS +{ + DXVAHD_ITELECINE_CAPS_32 = 0x1, + DXVAHD_ITELECINE_CAPS_22 = 0x2, + DXVAHD_ITELECINE_CAPS_2224 = 0x4, + DXVAHD_ITELECINE_CAPS_2332 = 0x8, + DXVAHD_ITELECINE_CAPS_32322 = 0x10, + DXVAHD_ITELECINE_CAPS_55 = 0x20, + DXVAHD_ITELECINE_CAPS_64 = 0x40, + DXVAHD_ITELECINE_CAPS_87 = 0x80, + DXVAHD_ITELECINE_CAPS_222222222223 = 0x100, + DXVAHD_ITELECINE_CAPS_OTHER = 0x80000000 +} DXVAHD_ITELECINE_CAPS; + +typedef enum _DXVAHD_FILTER +{ + DXVAHD_FILTER_BRIGHTNESS = 0, + DXVAHD_FILTER_CONTRAST = 1, + DXVAHD_FILTER_HUE = 2, + DXVAHD_FILTER_SATURATION = 3, + DXVAHD_FILTER_NOISE_REDUCTION = 4, + DXVAHD_FILTER_EDGE_ENHANCEMENT = 5, + DXVAHD_FILTER_ANAMORPHIC_SCALING = 6 +} DXVAHD_FILTER; + +typedef enum _DXVAHD_BLT_STATE +{ + DXVAHD_BLT_STATE_TARGET_RECT = 0, + DXVAHD_BLT_STATE_BACKGROUND_COLOR = 1, + DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE = 2, + DXVAHD_BLT_STATE_ALPHA_FILL = 3, + DXVAHD_BLT_STATE_CONSTRICTION = 4, + DXVAHD_BLT_STATE_PRIVATE = 1000 +} DXVAHD_BLT_STATE; + +typedef enum _DXVAHD_ALPHA_FILL_MODE +{ + DXVAHD_ALPHA_FILL_MODE_OPAQUE = 0, + DXVAHD_ALPHA_FILL_MODE_BACKGROUND = 1, + DXVAHD_ALPHA_FILL_MODE_DESTINATION = 2, + DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM = 3 +} DXVAHD_ALPHA_FILL_MODE; + +typedef enum _DXVAHD_STREAM_STATE +{ + DXVAHD_STREAM_STATE_D3DFORMAT = 0, + DXVAHD_STREAM_STATE_FRAME_FORMAT = 1, + DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE = 2, + DXVAHD_STREAM_STATE_OUTPUT_RATE = 3, + DXVAHD_STREAM_STATE_SOURCE_RECT = 4, + DXVAHD_STREAM_STATE_DESTINATION_RECT = 5, + DXVAHD_STREAM_STATE_ALPHA = 6, + DXVAHD_STREAM_STATE_PALETTE = 7, + DXVAHD_STREAM_STATE_LUMA_KEY = 8, + DXVAHD_STREAM_STATE_ASPECT_RATIO = 9, + DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS = 100, + DXVAHD_STREAM_STATE_FILTER_CONTRAST = 101, + DXVAHD_STREAM_STATE_FILTER_HUE = 102, + DXVAHD_STREAM_STATE_FILTER_SATURATION = 103, + DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTION = 104, + DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENT = 105, + DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALING = 106, + DXVAHD_STREAM_STATE_PRIVATE = 1000 +} DXVAHD_STREAM_STATE; + +typedef enum _DXVAHD_OUTPUT_RATE +{ + DXVAHD_OUTPUT_RATE_NORMAL = 0, + DXVAHD_OUTPUT_RATE_HALF = 1, + DXVAHD_OUTPUT_RATE_CUSTOM = 2 +} DXVAHD_OUTPUT_RATE; + + +// +// DXVA-HD API STRUCTURES +// + +typedef struct _DXVAHD_RATIONAL +{ + UINT Numerator; + UINT Denominator; +} DXVAHD_RATIONAL; + +typedef struct _DXVAHD_COLOR_RGBA +{ + FLOAT R; + FLOAT G; + FLOAT B; + FLOAT A; +} DXVAHD_COLOR_RGBA; + +typedef struct _DXVAHD_COLOR_YCbCrA +{ + FLOAT Y; + FLOAT Cb; + FLOAT Cr; + FLOAT A; +} DXVAHD_COLOR_YCbCrA; + +typedef union _DXVAHD_COLOR +{ + DXVAHD_COLOR_RGBA RGB; + DXVAHD_COLOR_YCbCrA YCbCr; +} DXVAHD_COLOR; + +typedef struct _DXVAHD_CONTENT_DESC +{ + DXVAHD_FRAME_FORMAT InputFrameFormat; + DXVAHD_RATIONAL InputFrameRate; + UINT InputWidth; + UINT InputHeight; + DXVAHD_RATIONAL OutputFrameRate; + UINT OutputWidth; + UINT OutputHeight; +} DXVAHD_CONTENT_DESC; + +typedef struct _DXVAHD_VPDEVCAPS +{ + DXVAHD_DEVICE_TYPE DeviceType; + UINT DeviceCaps; // DXVAHD_DEVICE_CAPS + UINT FeatureCaps; // DXVAHD_FEATURE_CAPS + UINT FilterCaps; // DXVAHD_FILTER_CAPS + UINT InputFormatCaps; // DXVAHD_INPUT_FORMAT_CAPS + D3DPOOL InputPool; + UINT OutputFormatCount; + UINT InputFormatCount; + UINT VideoProcessorCount; + UINT MaxInputStreams; + UINT MaxStreamStates; +} DXVAHD_VPDEVCAPS; + +typedef struct _DXVAHD_VPCAPS +{ + GUID VPGuid; + UINT PastFrames; + UINT FutureFrames; + UINT ProcessorCaps; // DXVAHD_PROCESSOR_CAPS + UINT ITelecineCaps; // DXVAHD_ITELECINE_CAPS + UINT CustomRateCount; +} DXVAHD_VPCAPS; + +typedef struct _DXVAHD_CUSTOM_RATE_DATA +{ + DXVAHD_RATIONAL CustomRate; + UINT OutputFrames; + BOOL InputInterlaced; + UINT InputFramesOrFields; +} DXVAHD_CUSTOM_RATE_DATA; + +typedef struct _DXVAHD_FILTER_RANGE_DATA +{ + INT Minimum; + INT Maximum; + INT Default; + FLOAT Multiplier; +} DXVAHD_FILTER_RANGE_DATA; + +typedef struct _DXVAHD_BLT_STATE_TARGET_RECT_DATA +{ + BOOL Enable; + RECT TargetRect; +} DXVAHD_BLT_STATE_TARGET_RECT_DATA; + +typedef struct _DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA +{ + BOOL YCbCr; + DXVAHD_COLOR BackgroundColor; +} DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA; + +typedef struct _DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA +{ + union + { + struct + { + UINT Usage : 1; // 0:Playback, 1:Processing + UINT RGB_Range : 1; // 0:Full(0-255), 1:Limited(16-235) + UINT YCbCr_Matrix : 1; // 0:BT.601(SDTV), 1:BT.709(HDTV) + UINT YCbCr_xvYCC : 1; // 0:Conventional, 1:Extended(xvYCC) + UINT Reserved : 28; + }; + + UINT Value; + }; +} DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA; + +typedef struct _DXVAHD_BLT_STATE_ALPHA_FILL_DATA +{ + DXVAHD_ALPHA_FILL_MODE Mode; + UINT StreamNumber; +} DXVAHD_BLT_STATE_ALPHA_FILL_DATA; + +typedef struct _DXVAHD_BLT_STATE_CONSTRICTION_DATA +{ + BOOL Enable; + SIZE Size; +} DXVAHD_BLT_STATE_CONSTRICTION_DATA; + +typedef struct _DXVAHD_BLT_STATE_PRIVATE_DATA +{ + GUID Guid; + UINT DataSize; + void* pData; +} DXVAHD_BLT_STATE_PRIVATE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_D3DFORMAT_DATA +{ + D3DFORMAT Format; +} DXVAHD_STREAM_STATE_D3DFORMAT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA +{ + DXVAHD_FRAME_FORMAT FrameFormat; +} DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA +{ + union + { + struct + { + UINT Type : 1; // 0:Video, 1:Graphics + UINT RGB_Range : 1; // 0:Full(0-255), 1:Limited(16-235) + UINT YCbCr_Matrix : 1; // 0:BT.601(SDTV), 1:BT.709(HDTV) + UINT YCbCr_xvYCC : 1; // 0:Conventional, 1:Extended(xvYCC) + UINT Reserved : 28; + }; + + UINT Value; + }; +} DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA +{ + BOOL RepeatFrame; + DXVAHD_OUTPUT_RATE OutputRate; + DXVAHD_RATIONAL CustomRate; +} DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_SOURCE_RECT_DATA +{ + BOOL Enable; + RECT SourceRect; +} DXVAHD_STREAM_STATE_SOURCE_RECT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA +{ + BOOL Enable; + RECT DestinationRect; +} DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_ALPHA_DATA +{ + BOOL Enable; + FLOAT Alpha; +} DXVAHD_STREAM_STATE_ALPHA_DATA; + +typedef struct _DXVAHD_STREAM_STATE_PALETTE_DATA +{ + UINT Count; + D3DCOLOR* pEntries; +} DXVAHD_STREAM_STATE_PALETTE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_LUMA_KEY_DATA +{ + BOOL Enable; + FLOAT Lower; + FLOAT Upper; +} DXVAHD_STREAM_STATE_LUMA_KEY_DATA; + +typedef struct _DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA +{ + BOOL Enable; + DXVAHD_RATIONAL SourceAspectRatio; + DXVAHD_RATIONAL DestinationAspectRatio; +} DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA; + +typedef struct _DXVAHD_STREAM_STATE_FILTER_DATA +{ + BOOL Enable; + INT Level; +} DXVAHD_STREAM_STATE_FILTER_DATA; + +typedef struct _DXVAHD_STREAM_STATE_PRIVATE_DATA +{ + GUID Guid; + UINT DataSize; + void* pData; +} DXVAHD_STREAM_STATE_PRIVATE_DATA; + +typedef struct _DXVAHD_STREAM_DATA +{ + BOOL Enable; + UINT OutputIndex; + UINT InputFrameOrField; + UINT PastFrames; + UINT FutureFrames; + IDirect3DSurface9** ppPastSurfaces; + IDirect3DSurface9* pInputSurface; + IDirect3DSurface9** ppFutureSurfaces; +} DXVAHD_STREAM_DATA; + + +// +// PRIVATE STATES +// + +cpp_quote("") +cpp_quote("") +cpp_quote("DEFINE_GUID(DXVAHD_STREAM_STATE_PRIVATE_IVTC, 0x9c601e3c,0x0f33,0x414c,0xa7,0x39,0x99,0x54,0x0e,0xe4,0x2d,0xa5);") +cpp_quote("") +cpp_quote("") + +typedef struct _DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA +{ + BOOL Enable; + UINT ITelecineFlags; // DXVAHD_ITELECINE_CAPS + UINT Frames; + UINT InputField; +} DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA; + + +// +// IDXVAHD_Device INTERFACE +// + +[ + object, + uuid(95f12dfd-d77e-49be-815f-57d579634d6d), + helpstring("DXVA-HD Device Interface"), + local +] +interface IDXVAHD_Device : IUnknown +{ + HRESULT + CreateVideoSurface( + [in, annotation("_In_")] UINT Width, + [in, annotation("_In_")] UINT Height, + [in, annotation("_In_")] D3DFORMAT Format, + [in, annotation("_In_")] D3DPOOL Pool, + [in, annotation("_In_")] DWORD Usage, + [in, annotation("_In_")] DXVAHD_SURFACE_TYPE Type, + [in, annotation("_In_")] UINT NumSurfaces, + [out, size_is(NumSurfaces), annotation("_Out_writes_(NumSurfaces)")] IDirect3DSurface9** ppSurfaces, + [in, out, annotation("_Inout_opt_")] HANDLE* pSharedHandle + ); + + HRESULT + GetVideoProcessorDeviceCaps( + [out, annotation("_Out_")] DXVAHD_VPDEVCAPS* pCaps + ); + + HRESULT + GetVideoProcessorOutputFormats( + [in, annotation("_In_")] UINT Count, + [out, size_is(Count), annotation("_Out_writes_(Count)")] D3DFORMAT* pFormats + ); + + HRESULT + GetVideoProcessorInputFormats( + [in, annotation("_In_")] UINT Count, + [out, size_is(Count), annotation("_Out_writes_(Count)")] D3DFORMAT* pFormats + ); + + HRESULT + GetVideoProcessorCaps( + [in, annotation("_In_")] UINT Count, + [out, size_is(Count), annotation("_Out_writes_(Count)")] DXVAHD_VPCAPS* pCaps + ); + + HRESULT + GetVideoProcessorCustomRates( + [in, annotation("_In_")] const GUID* pVPGuid, + [in, annotation("_In_")] UINT Count, + [out, size_is(Count), annotation("_Out_writes_(Count)")] DXVAHD_CUSTOM_RATE_DATA* pRates + ); + + HRESULT + GetVideoProcessorFilterRange( + [in, annotation("_In_")] DXVAHD_FILTER Filter, + [out, annotation("_Out_")] DXVAHD_FILTER_RANGE_DATA* pRange + ); + + HRESULT + CreateVideoProcessor( + [in, annotation("_In_")] const GUID* pVPGuid, + [out, annotation("_Outptr_")] IDXVAHD_VideoProcessor** ppVideoProcessor + ); +}; + + +// +// IDXVAHD_VideoProcessor INTERFACE +// + +[ + object, + uuid(95f4edf4-6e03-4cd7-be1b-3075d665aa52), + helpstring("DXVA-HD Video Processor Interface"), + local +] +interface IDXVAHD_VideoProcessor : IUnknown +{ + HRESULT + SetVideoProcessBltState( + [in, annotation("_In_")] DXVAHD_BLT_STATE State, + [in, annotation("_In_")] UINT DataSize, + [in, annotation("_In_reads_bytes_(DataSize)")] const void* pData + ); + + HRESULT + GetVideoProcessBltState( + [in, annotation("_In_")] DXVAHD_BLT_STATE State, + [in, annotation("_In_")] UINT DataSize, + [out, annotation("_Inout_updates_bytes_(DataSize)")] void* pData + ); + + HRESULT + SetVideoProcessStreamState( + [in, annotation("_In_")] UINT StreamNumber, + [in, annotation("_In_")] DXVAHD_STREAM_STATE State, + [in, annotation("_In_")] UINT DataSize, + [in, annotation("_In_reads_bytes_(DataSize)")] const void* pData + ); + + HRESULT + GetVideoProcessStreamState( + [in, annotation("_In_")] UINT StreamNumber, + [in, annotation("_In_")] DXVAHD_STREAM_STATE State, + [in, annotation("_In_")] UINT DataSize, + [out, annotation("_Inout_updates_bytes_(DataSize)")] void* pData + ); + + HRESULT + VideoProcessBltHD( + [in, annotation("_In_")] IDirect3DSurface9* pOutputSurface, + [in, annotation("_In_")] UINT OutputFrame, + [in, annotation("_In_")] UINT StreamCount, + [in, size_is(StreamCount), annotation("_In_reads_(StreamCount)")] const DXVAHD_STREAM_DATA* pStreams + ); +}; + + +// +// DXVA-HD SOFTWARE PLUGIN +// + +cpp_quote("") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_CreateDevice)(") +cpp_quote(" _In_ IDirect3DDevice9Ex* pD3DDevice,") +cpp_quote(" _Out_ HANDLE* phDevice") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_ProposeVideoPrivateFormat)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _Inout_ D3DFORMAT* pFormat") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorDeviceCaps)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _Out_ DXVAHD_VPDEVCAPS* pCaps") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorOutputFormats)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _In_ UINT Count,") +cpp_quote(" _Out_writes_(Count) D3DFORMAT* pFormats") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorInputFormats)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _In_ UINT Count,") +cpp_quote(" _Out_writes_(Count) D3DFORMAT* pFormats") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCaps)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _In_ UINT Count,") +cpp_quote(" _Out_writes_(Count) DXVAHD_VPCAPS* pCaps") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCustomRates)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const GUID* pVPGuid,") +cpp_quote(" _In_ UINT Count,") +cpp_quote(" _Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA* pRates") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorFilterRange)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ DXVAHD_FILTER Filter,") +cpp_quote(" _Out_ DXVAHD_FILTER_RANGE_DATA* pRange") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyDevice)(") +cpp_quote(" _In_ HANDLE hDevice") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_CreateVideoProcessor)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const GUID* pVPGuid,") +cpp_quote(" _Out_ HANDLE* phVideoProcessor") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessBltState)(") +cpp_quote(" _In_ HANDLE hVideoProcessor,") +cpp_quote(" _In_ DXVAHD_BLT_STATE State,") +cpp_quote(" _In_ UINT DataSize,") +cpp_quote(" _In_reads_bytes_(DataSize) const void* pData") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessBltStatePrivate)(") +cpp_quote(" _In_ HANDLE hVideoProcessor,") +cpp_quote(" _Inout_ DXVAHD_BLT_STATE_PRIVATE_DATA* pData") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessStreamState)(") +cpp_quote(" _In_ HANDLE hVideoProcessor,") +cpp_quote(" _In_ UINT StreamNumber,") +cpp_quote(" _In_ DXVAHD_STREAM_STATE State,") +cpp_quote(" _In_ UINT DataSize,") +cpp_quote(" _In_reads_bytes_(DataSize) const void* pData") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessStreamStatePrivate)(") +cpp_quote(" _In_ HANDLE hVideoProcessor,") +cpp_quote(" _In_ UINT StreamNumber,") +cpp_quote(" _Inout_ DXVAHD_STREAM_STATE_PRIVATE_DATA* pData") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_VideoProcessBltHD)(") +cpp_quote(" _In_ HANDLE hVideoProcessor,") +cpp_quote(" _In_ IDirect3DSurface9* pOutputSurface,") +cpp_quote(" _In_ UINT OutputFrame,") +cpp_quote(" _In_ UINT StreamCount,") +cpp_quote(" _In_reads_(StreamCount) const DXVAHD_STREAM_DATA* pStreams") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyVideoProcessor)(") +cpp_quote(" _In_ HANDLE hVideoProcessor") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef struct _DXVAHDSW_CALLBACKS") +cpp_quote("{") +cpp_quote(" PDXVAHDSW_CreateDevice CreateDevice;") +cpp_quote(" PDXVAHDSW_ProposeVideoPrivateFormat ProposeVideoPrivateFormat;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorDeviceCaps GetVideoProcessorDeviceCaps;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorOutputFormats GetVideoProcessorOutputFormats;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorInputFormats GetVideoProcessorInputFormats;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorCaps GetVideoProcessorCaps;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorCustomRates GetVideoProcessorCustomRates;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorFilterRange GetVideoProcessorFilterRange;") +cpp_quote(" PDXVAHDSW_DestroyDevice DestroyDevice;") +cpp_quote(" PDXVAHDSW_CreateVideoProcessor CreateVideoProcessor;") +cpp_quote(" PDXVAHDSW_SetVideoProcessBltState SetVideoProcessBltState;") +cpp_quote(" PDXVAHDSW_GetVideoProcessBltStatePrivate GetVideoProcessBltStatePrivate;") +cpp_quote(" PDXVAHDSW_SetVideoProcessStreamState SetVideoProcessStreamState;") +cpp_quote(" PDXVAHDSW_GetVideoProcessStreamStatePrivate GetVideoProcessStreamStatePrivate;") +cpp_quote(" PDXVAHDSW_VideoProcessBltHD VideoProcessBltHD;") +cpp_quote(" PDXVAHDSW_DestroyVideoProcessor DestroyVideoProcessor;") +cpp_quote("} DXVAHDSW_CALLBACKS;") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_Plugin)(") +cpp_quote(" _In_ UINT Size,") +cpp_quote(" _Out_writes_bytes_(Size) void* pCallbacks") +cpp_quote(" );") +cpp_quote("") +cpp_quote("") + + +// +// DXVA-HD API ETW +// + +cpp_quote("") +cpp_quote("") +cpp_quote("DEFINE_GUID(DXVAHDControlGuid, 0xa0386e75,0xf70c,0x464c,0xa9,0xce,0x33,0xc4,0x4e,0x09,0x16,0x23); // DXVA2Trace_Control") +cpp_quote("") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_CREATEVIDEOPROCESSOR, 0x681e3d1e,0x5674,0x4fb3,0xa5,0x03,0x2f,0x20,0x55,0xe9,0x1f,0x60);") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTSTATE, 0x76c94b5a,0x193f,0x4692,0x94,0x84,0xa4,0xd9,0x99,0xda,0x81,0xa8);") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSSTREAMSTATE, 0x262c0b02,0x209d,0x47ed,0x94,0xd8,0x82,0xae,0x02,0xb8,0x4a,0xa7);") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD, 0xbef3d435,0x78c7,0x4de3,0x97,0x07,0xcd,0x1b,0x08,0x3b,0x16,0x0a);") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD_STREAM, 0x27ae473e,0xa5fc,0x4be5,0xb4,0xe3,0xf2,0x49,0x94,0xd3,0xc4,0x95);") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_DESTROYVIDEOPROCESSOR, 0xf943f0a0,0x3f16,0x43e0,0x80,0x93,0x10,0x5a,0x98,0x6a,0xa5,0xf1);") +cpp_quote("") +cpp_quote("") + +typedef struct _DXVAHDETW_CREATEVIDEOPROCESSOR +{ + ULONGLONG pObject; + ULONGLONG pD3D9Ex; + GUID VPGuid; +} DXVAHDETW_CREATEVIDEOPROCESSOR; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTSTATE +{ + ULONGLONG pObject; + DXVAHD_BLT_STATE State; + UINT DataSize; + BOOL SetState; +} DXVAHDETW_VIDEOPROCESSBLTSTATE; + +typedef struct _DXVAHDETW_VIDEOPROCESSSTREAMSTATE +{ + ULONGLONG pObject; + UINT StreamNumber; + DXVAHD_STREAM_STATE State; + UINT DataSize; + BOOL SetState; +} DXVAHDETW_VIDEOPROCESSSTREAMSTATE; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD +{ + ULONGLONG pObject; + ULONGLONG pOutputSurface; + RECT TargetRect; + D3DFORMAT OutputFormat; + UINT ColorSpace; + UINT OutputFrame; + UINT StreamCount; + BOOL Enter; +} DXVAHDETW_VIDEOPROCESSBLTHD; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD_STREAM +{ + ULONGLONG pObject; + ULONGLONG pInputSurface; + RECT SourceRect; + RECT DestinationRect; + D3DFORMAT InputFormat; + DXVAHD_FRAME_FORMAT FrameFormat; + UINT ColorSpace; + UINT StreamNumber; + UINT OutputIndex; + UINT InputFrameOrField; + UINT PastFrames; + UINT FutureFrames; +} DXVAHDETW_VIDEOPROCESSBLTHD_STREAM; + +typedef struct _DXVAHDETW_DESTROYVIDEOPROCESSOR +{ + ULONGLONG pObject; +} DXVAHDETW_DESTROYVIDEOPROCESSOR; + + +// +// DXVA-HD API FUNCTIONS +// + +cpp_quote("") +cpp_quote("") +cpp_quote("HRESULT WINAPI") +cpp_quote("DXVAHD_CreateDevice(") +cpp_quote(" _In_ IDirect3DDevice9Ex* pD3DDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _In_opt_ PDXVAHDSW_Plugin pPlugin,") +cpp_quote(" _Outptr_ IDXVAHD_Device** ppDevice") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (WINAPI* PDXVAHD_CreateDevice)(") +cpp_quote(" _In_ IDirect3DDevice9Ex* pD3DDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _In_opt_ PDXVAHDSW_Plugin pPlugin,") +cpp_quote(" _Outptr_ IDXVAHD_Device** ppDevice") +cpp_quote(" );") +cpp_quote("") +cpp_quote("") + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/dyngraph.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dyngraph.idl new file mode 100644 index 0000000000000000000000000000000000000000..016f37bf47818efbcf99fed483bd3ee006e9da1a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/dyngraph.idl @@ -0,0 +1,327 @@ +//------------------------------------------------------------------------------ +// File: DynGraph.idl +// +// Desc: Dynamic graph interfaces +// +// Copyright (c) 1999-2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +interface IPinConnection; +interface IPinFlowControl; +interface IGraphConfig; +interface IGraphConfigCallback; + +//-------------------------------------------------------------------- +// +// IPinConnection - supported by input pins +// +//-------------------------------------------------------------------- +[ + local, + object, + uuid(4a9a62d3-27d4-403d-91e9-89f540e55534), + pointer_default(unique) +] +interface IPinConnection : IUnknown { + + // Do you accept this type chane in your current state? + HRESULT DynamicQueryAccept([in] const AM_MEDIA_TYPE *pmt); + + // Set event when EndOfStream receive - do NOT pass it on + // This condition is cancelled by a flush or Stop + HRESULT NotifyEndOfStream([in] HANDLE hNotifyEvent); + + // Are you an 'end pin' + HRESULT IsEndPin(); + + HRESULT DynamicDisconnect(); +}; + +//-------------------------------------------------------------------- +// +// IPinFlowControl - supported by output pins +// +//-------------------------------------------------------------------- +[ + local, + object, + uuid(c56e9858-dbf3-4f6b-8119-384af2060deb), + pointer_default(unique) +] +interface IPinFlowControl : IUnknown { + // Block processing on this pin + HRESULT Block([in] DWORD dwBlockFlags, [in] HANDLE hEvent); +} + +// block flags +enum _AM_PIN_FLOW_CONTROL_BLOCK_FLAGS { + AM_PIN_FLOW_CONTROL_BLOCK = 0x00000001, // 0 means unblock +}; + + +// Reconnect flags +typedef enum _AM_GRAPH_CONFIG_RECONNECT_FLAGS { + AM_GRAPH_CONFIG_RECONNECT_DIRECTCONNECT = 0x00000001, + AM_GRAPH_CONFIG_RECONNECT_CACHE_REMOVED_FILTERS = 0x00000002, + AM_GRAPH_CONFIG_RECONNECT_USE_ONLY_CACHED_FILTERS = 0x00000004 +} AM_GRAPH_CONFIG_RECONNECT_FLAGS; + +// RemoveFilterEx flags +enum _REM_FILTER_FLAGS { + REMFILTERF_LEAVECONNECTED = 0x00000001 +}; + +typedef enum _AM_FILTER_FLAGS { + AM_FILTER_FLAGS_REMOVABLE = 0x00000001 + } AM_FILTER_FLAGS; + + +//-------------------------------------------------------------------- +// +// IGraphConfig +// +//-------------------------------------------------------------------- + +[ + local, + object, + uuid(03A1EB8E-32BF-4245-8502-114D08A9CB88), + pointer_default(unique) +] +interface IGraphConfig : IUnknown { + HRESULT Reconnect([in] IPin *pOutputPin, + [in] IPin *pInputPin, + [in] const AM_MEDIA_TYPE *pmtFirstConnection, + [in] IBaseFilter *pUsingFilter, // can be NULL + [in] HANDLE hAbortEvent, + [in] DWORD dwFlags); + + HRESULT Reconfigure([in] IGraphConfigCallback *pCallback, + [in] PVOID pvContext, + [in] DWORD dwFlags, + [in] HANDLE hAbortEvent); + + + HRESULT AddFilterToCache([in] IBaseFilter *pFilter); + HRESULT EnumCacheFilter([out] IEnumFilters **pEnum); + HRESULT RemoveFilterFromCache([in]IBaseFilter *pFilter); + + // Get the start time associated with the last Run() call + // If the graph is not running returns VFW_E_WRONG_STATE + HRESULT GetStartTime([out] REFERENCE_TIME *prtStart); + + HRESULT PushThroughData( + [in] IPin *pOutputPin, + [in] IPinConnection *pConnection, + [in] HANDLE hEventAbort); + + HRESULT SetFilterFlags([in] IBaseFilter *pFilter, [in] DWORD dwFlags); + HRESULT GetFilterFlags([in] IBaseFilter *pFilter, [out] DWORD *pdwFlags); + + HRESULT RemoveFilterEx( [in] IBaseFilter *pFilter, DWORD Flags ); +} + +//-------------------------------------------------------------------- +// +// IGraphConfigCallback +// +//-------------------------------------------------------------------- + +[ + local, + object, + uuid(ade0fd60-d19d-11d2-abf6-00a0c905f375), + pointer_default(unique) +] +interface IGraphConfigCallback : IUnknown +{ + HRESULT Reconfigure(PVOID pvContext, DWORD dwFlags); +} + +// Filter Chain Definition +// +// Filter chains have the following properties: +// +// - Each filter chain has one or more filters. +// +// - Each filter in a filter chain has at most one connected input pin and one +// connected output pin. For example, filters A, C, D, F, G, H, I, J and K +// (see the diagram below) can be in a filter chain because each one has at +// most one connected input pin and one connected output pin. +// +// - Any filter in a chain is reachable by any other filter in the chain. +// For example, in the filter chain F-G-H, F can reach H by following the F- +// G connection to G and then following the G-H connection to H. Filters F +// and J cannot be in the same filter chain because J is not reachable from +// F. Anotherwords, there no sequence of connected filters between F and J. +// +// - The start filter is the only filter in the filter chain who's input +// pin is not connected to another filter in the chain. For instance, F is +// the start filter in F-G-H because F's input pin is connected to E and E +// is not in the filter chain. G's input pin is connected to F and H's is +// connected to G. Both F and G are in the filter chain. +// +// - The end filter is the only filter in the filter chain who's output pin +// is not connected to another filter in the chain. For example, in the +// filter chain J-K, K is the end filter because K's output pin is +// connected to L. J's output pin is connected to K and K is in the J-K +// filter chain. +// +// +// --->|---| |---|---> +// | C |--->| D | +// |---| |---|--->|---| |---|--->|---| |---| |---| |---| +// | A |--->| B | | E |--->| F |--->| G |--->| H | +// |---| |---|--->|---|------------>|---| |---| |---| |---| +// | I |---> +// --->|---|---> +// +// |---| |---| |---| +// | J |--->| K |--->| L | +// |---| |---| |---| +// +// Example Filter Graph +// +// +// +// IFilterChain Methods Documentation +// +// HRESULT StartChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); +// +// StartChain() switches all the filters in the chain into the running state +// If one of the filters will not switch to the running state, then all the filters +// in the chain are stopped. This method can only be called if the filter graph is +// running. +// +// Parameters: +// - pStartFilter [in] +// The first filter in the filter chain. Note that this can be the same +// filter as pEndFilter . +// +// - pEndFilter [in] +// The last filter in the filter chain. Note that this can be the same +// filter as pStartFilter. If pEndFilter is NULL then the filter chain extends +// from pStartFilter to the last downstream filter which can be in a filter chain. +// For example, IFilterChain::StartChain( A, NULL ) would start filter A. +// IFilterChain::StartChain( G, NULL ) would start filters G and H. +// IFilterChain::StartChain( C, NULL ) would start filters C and D. Finally, +// IFilterChain::StartChain( E, NULL ) would fail because E cannot be in a +// filter chain (see the Filter Chain Definition section for more information). +// +// Return Value: +// An HRESULT. See the Direct Show SDK and COM SDK documentation for more +// information on interpreting HRESULTs. +// +// +// +// +// HRESULT PauseChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); +// +// PauseChain() switches all the filters in a chain to the paused state. If it cannot +// switch one of the filtres into the paused state, all the filters in the chain are +// stopped. This method can only be called if the filter graph is paused. +// +// Parameters: +// - pStartFilter [in] +// The first filter in the filter chain. Note that this can be the same +// filter as pEndFilter . +// +// - pEndFilter [in] +// The last filter in the filter chain. Note that this can be the same +// filter as pStartFilter. If pEndFilter is NULL then the filter chain extends +// from pStartFilter to the last downstream filter which can be in a filter chain. +// For example, IFilterChain::StopChain( A, NULL ) would stop filter A. +// IFilterChain::StopChain( G, NULL ) would stop filters G and H. +// IFilterChain::StopChain( C, NULL ) would stop filters C and D. Finally, +// IFilterChain::StopChain( E, NULL ) would fail because E cannot be in a filter +// chain (see the Filter Chain Definition section for more information). +// +// +// Return Value: +// An HRESULT. See the Direct Show SDK and COM SDK documentation for more +// information on interpreting HRESULTs. +// +// +// +// HRESULT StopChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); +// +// StopChain() switches all the filters in chain to the stopped state. +// +// Parameters: +// - pStartFilter [in] +// The first filter in the filter chain. Note that this can be the same +// filter as pEndFilter . +// +// - pEndFilter [in] +// The last filter in the filter chain. Note that this can be the same +// filter as pStartFilter. If pEndFilter is NULL then the filter chain extends +// from pStartFilter to the last downstream filter which can be in a filter chain. +// For example, IFilterChain::StopChain( A, NULL ) would stop filter A. +// IFilterChain::StopChain( G, NULL ) would stop filters G and H. +// IFilterChain::StopChain( C, NULL ) would stop filters C and D. Finally, +// IFilterChain::StopChain( E, NULL ) would fail because E cannot be in a filter +// chain (see the Filter Chain Definition section for more information). +// +// +// Return Value: +// An HRESULT. See the Direct Show SDK and COM SDK documentation for more +// information on interpreting HRESULTs. +// +// +// +// +// +// HRESULT RemoveChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); +// +// RemoveChain() removes every filter in a chain from the filter graph. +// The filters can be removed while the graph is running. +// +// Parameters: +// - pStartFilter [in] +// The first filter in the filter chain. Note that this can be the same +// filter as pEndFilter . +// +// - pEndFilter [in] +// The last filter in the filter chain. Note that this can be the same +// filter as pStartFilter. If pEndFilter is NULL then the filter chain +// extends from pStartFilter to the last downstream filter which can be in a +// filter chain. For example, IFilterChain::RemoveChain( A, NULL ) would remove +// filter A from the filter graph. IFilterChain::RemoveChain( G, NULL ) would +// remove filters G and H. IFilterChain::RemoveChain( C, NULL ) would remove +// filters C and D. Finally, IFilterChain::RemoveChain( E, NULL ) would fail +// because E cannot be in a filter chain (see the Filter Chain Definition +// section for more information). +// +// +// Return Value: +// An HRESULT. See the Direct Show SDK and COM SDK documentation for more +// information on interpreting HRESULTs. +// +// +[ + local, + object, + uuid(DCFBDCF6-0DC2-45f5-9AB2-7C330EA09C29), + pointer_default(unique) +] +interface IFilterChain : IUnknown +{ + HRESULT StartChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); + HRESULT PauseChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); + HRESULT StopChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); + HRESULT RemoveChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); +} + + + + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapauthenticatortypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapauthenticatortypes.h new file mode 100644 index 0000000000000000000000000000000000000000..9dc7ee3ca3a252b7dfd2d8c053a4d2d9262a46ab --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapauthenticatortypes.h @@ -0,0 +1,82 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __eapauthenticatortypes_h__ +#define __eapauthenticatortypes_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_eapauthenticatortypes_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [v1_enum] */ +enum _EAP_AUTHENTICATOR_SEND_TIMEOUT + { + EAP_AUTHENTICATOR_SEND_TIMEOUT_NONE = 0, + EAP_AUTHENTICATOR_SEND_TIMEOUT_BASIC = ( EAP_AUTHENTICATOR_SEND_TIMEOUT_NONE + 1 ) , + EAP_AUTHENTICATOR_SEND_TIMEOUT_INTERACTIVE = ( EAP_AUTHENTICATOR_SEND_TIMEOUT_BASIC + 1 ) + } EAP_AUTHENTICATOR_SEND_TIMEOUT; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_eapauthenticatortypes_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_eapauthenticatortypes_0000_0000_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/eaphostpeerconfigapis.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eaphostpeerconfigapis.h new file mode 100644 index 0000000000000000000000000000000000000000..81a842fde01d2ac409e4c8d81288facb0f171c34 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eaphostpeerconfigapis.h @@ -0,0 +1,304 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Declares methods that are used to configure EAP methods. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAPHOSTPEERCONFIGAPIS_H +#define EAPHOSTPEERCONFIGAPIS_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include "objbase.h" //Required by msxml2.h +#include "msxml6.h" + +#include "EapTypes.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + + // This API is used to enumerate all the EAP Methods installed and available for use; this + // includes legacy EAP Methods too. Returns non zero return code up on error. + DWORD WINAPI EapHostPeerGetMethods( + // API fills the structure to have installed EAP Methods. Caller should free the inner pointers + // using EapHostPeerFreeMemory starting at the inner most pointer. + _Out_ EAP_METHOD_INFO_ARRAY* pEapMethodInfoArray, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError); + + // This API is used to retrieve the method properties for a specific configuration + // It returns non zero return code upon error. + DWORD WINAPI EapHostPeerGetMethodProperties( + // The version number of the API. + _In_ DWORD dwVersion, + // A combination of EAP flags that describe the EAP authentication session behavior. + _In_ DWORD dwFlags, + // An EAP_METHOD_TYPE structure that identifies the EAP method the supplicant is to use. + _In_ EAP_METHOD_TYPE eapMethodType, + // A handle to the user impersonation token to use in this session. + _In_ HANDLE hUserImpersonationToken, + // The size, in bytes, of the connection data buffer provided in pbEapConnData. + _In_ DWORD dwEapConnDataSize, + // Connection data used for the EAP method. + _In_reads_(dwEapConnDataSize) const BYTE* pbEapConnData, + // The size in bytes of the user data buffer provided in pbUserData. + _In_ DWORD dwUserDataSize, + // A pointer to a byte buffer that contains the opaque user data BLOB. + _In_reads_(dwUserDataSize) const BYTE* pbUserData, + // A pointer to the method properties array. Caller should free the inner pointers using EapHostPeerFreeMemory starting + // at the inner most pointer. The caller should free empvString value only when the type is empvtString. + _Out_ EAP_METHOD_PROPERTY_ARRAY* pMethodPropertyArray, + // A pointer to a pointer to an EAP_ERROR structure that contains any errors raised by EAPHost + // during the execution of this function call. + _Outptr_ EAP_ERROR** ppEapError); + + // This API is used to invoke configure UI of the specified EAP Method. + // API Returns non zero return code up on error. + DWORD WINAPI EapHostPeerInvokeConfigUI( + // window handle of the parent window under which configuration dialog will show up + _In_ HWND hwndParent, + // Flags to control the behavior of the EAP Method. + _In_ DWORD dwFlags, + // Identifies the EAP Method to configure + _In_ EAP_METHOD_TYPE eapMethodType, + // Size of input configuration; this could be 0 when there is no configuration + _In_ DWORD dwSizeOfConfigIn, + // input configuration, this could be NULL when there is no configuration + _In_reads_opt_(dwSizeOfConfigIn) const BYTE* pConfigIn, + // pointer to DWORD that receives configuration after user updated using UI + _Out_ DWORD* pdwSizeOfConfigOut, + // buffer that receives updated configuration after user updated using UI. + // Caller should free the memory using EapHostPeerFreeMemory. + _Outptr_result_buffer_(*pdwSizeOfConfigOut) BYTE** ppConfigOut, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError); + + // This API is used to obtain the fields to be shown in Single Sign On scenario for + // showing UI in long screen. The structures returned have details on how to show the fields. + // API Returns non zero return code up on error. + DWORD WINAPI EapHostPeerQueryCredentialInputFields( + // handle to the impersonation token that is used while single sign on. + _In_ HANDLE hUserImpersonationToken, + // identifies the EAP Method supplicant wants to use + _In_ EAP_METHOD_TYPE eapMethodType, + // control the behavior of the EAP Methods + _In_ DWORD dwFlags, + // size of input configuration data + _In_ DWORD dwEapConnDataSize, + // configuration data that is used for the EAP method + _In_reads_(dwEapConnDataSize) const BYTE* pbEapConnData, + // structure that gets filled with fields and how they should be shown to the user. + // Caller should free the inner pointers using EapHostPeerFreeMemory starting + // at the inner most pointer. + _Out_ EAP_CONFIG_INPUT_FIELD_ARRAY* pEapConfigInputFieldArray, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError); + + // Supplicant up on receiving user inputs from Single Sign On UI, calls this API to obtain + // credential blob that could used start authentication + // API Returns non zero return code up on error. + DWORD WINAPI EapHostPeerQueryUserBlobFromCredentialInputFields( + // handle to the impersonation token that is used while single sign on. + _In_ HANDLE hUserImpersonationToken, + // identifies the EAP Method supplicant wants to use + _In_ EAP_METHOD_TYPE eapMethodType, + // control the behavior of the EAP Methods + _In_ DWORD dwFlags, + // size of input configuration data + _In_ DWORD dwEapConnDataSize, + // configuration data that is used for the EAP method + _In_reads_(dwEapConnDataSize) const BYTE* pbEapConnData, + // structure containing the data entered by the user in Single Sign On UI + _In_ const EAP_CONFIG_INPUT_FIELD_ARRAY* pEapConfigInputFieldArray, + // pointer to DWORD that receives the size of credential blob, if supplicant passes in + // non-zero size and non-NULL data below, EAPHost will just attempt to Update + // the blob with passed in values (if method supports) instead of creating a new one. + _Inout_ DWORD* pdwUserBlobSize, + // Pointer that receives the credential blob that can be used in authentication. + // For incoming data caller should always allocate this memory using LocalAlloc() + // Caller should free the memory using EapHostPeerFreeMemory. + _Inout_ _At_(*ppbUserBlob, _When_(*ppbUserBlob != NULL, _Pre_writable_size_(*pdwUserBlobSize)) _Post_readable_size_(*pdwUserBlobSize)) + BYTE** ppbUserBlob, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + _Out_ EAP_ERROR** ppEapError); + + // Tunnel Methods call this function to invoke Identity UI of the inner Methods. + // This function returns the identity as well as the credentials to use to start the authentication. + DWORD WINAPI EapHostPeerInvokeIdentityUI( + // API's version number for ease of interoperability. It must be 0. + _In_ DWORD dwVersion, + // identifies the EAP Method supplicant wants to use + _In_ EAP_METHOD_TYPE eapMethodType, + // EAP_FLAG_xxx defined in eaptypes.w + _In_ DWORD dwFlags, + // window handle of the parent window under which configuration dialog will show up + _In_ HWND hwndParent, + // size of the buffer (pConnectionData) in bytes + _In_ DWORD dwSizeofConnectionData, + // configuration data that is used for the EAP method + _In_reads_(dwSizeofConnectionData) const BYTE* pConnectionData, + // size of the ubuffer pUserData + _In_ DWORD dwSizeofUserData, + // user credential information pertinent to this auth + _In_reads_opt_(dwSizeofUserData) const BYTE* pUserData, + // size of the buffer pUserDataOut. + _Out_ DWORD* pdwSizeOfUserDataOut, + // user data information returned by method. + // Caller should release this using EapHostPeerFreeMemory + _Outptr_result_buffer_(*pdwSizeOfUserDataOut) BYTE** ppUserDataOut, + // identity returned by method. Caller should release this using EapHostPeerFreeMemory + _Outptr_ LPWSTR* ppwszIdentity, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError + // using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + _Inout_ LPVOID* ppvReserved); + + // While doing authentication with EapHost, when supplicant receives action code of EapHostPeerResponseInvokeUi + // supplicant should call EapHostPeerGetUIContext to get UI context data. After that. it then should call this + // API from a process where UI can be brought up. + // API Returns non zero return code up on error. + DWORD WINAPI EapHostPeerInvokeInteractiveUI( + // window handle of the parent window under which dialog will show up + _In_ HWND hwndParent, + // size of UIcontext data received from EapHostPeerGetUIContext call + _In_ DWORD dwSizeofUIContextData, + // UIcontext data received from EapHostPeerGetUIContext call + _In_reads_opt_(dwSizeofUIContextData) const BYTE* pUIContextData, + // pointer to DWORD that receives data from interactive UI that is used for authentication + // to continue + _Out_ DWORD* pdwSizeOfDataFromInteractiveUI, + // pointer that receives buffer filled with interactive UI that is used for authentication + // to continue. Caller should free the memory using EapHostPeerFreeMemory. + _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE** ppDataFromInteractiveUI, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError); + + // This API will enable supplicants to collect necessary information from EAPHost to raise interactive UI and collect user + // information supplicant should call EapHostPeerQueryInteractiveUIInputFields() API first after it receives + // EapHostPeerResponseInvokeUi actionCode from EAPHost. If the return value from this API is + // EAP_E_EAPHOST_METHOD_OPERATION_NOT_SUPPORTED, then supplicant should fall back to traditional model of invoking method + // interactive UI, i.e. by calling EapHostPeerInvokeInteractiveUI() API Returns non zero return code up on error. + DWORD WINAPI EapHostPeerQueryInteractiveUIInputFields( + // API's version number for ease of interoperability. It must be 0. + _In_ DWORD dwVersion, + // control the behavior of the EAP Methods + _In_ DWORD dwFlags, + // size of UIcontext data EAPHost runtime + _In_ DWORD dwSizeofUIContextData, + // UIContext data received from EAPHost runtime + _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData, + // structure that gets filled with fields and how they should be shown to the user. + // Caller should free the inner pointers using EapHostPeerFreeMemory starting at the inner most pointer. + _Out_ EAP_INTERACTIVE_UI_DATA* pEapInteractiveUIData, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + _Inout_ LPVOID* ppvReserved); + + // This API will enable supplicants to convert user information into a user-blob which can be consumed by EAPHost runtime APIs + // API Returns non zero return code up on error. + DWORD WINAPI EapHostPeerQueryUIBlobFromInteractiveUIInputFields( + // API's version number for ease of interoperability. It must be 0. + _In_ DWORD dwVersion, + // control the behavior of the EAP Methods + _In_ DWORD dwFlags, + // size of UIcontext data EAPHost runtime + _In_ DWORD dwSizeofUIContextData, + // UIContext data received from EAPHost runtime + _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData, + // structure that carries data provided by user + _In_ const EAP_INTERACTIVE_UI_DATA* pEapInteractiveUIData, + // pointer to DWORD that receives size of credential blob, if supplicant passes in + // non-zero size and non-NULL data below, EAPHost will just attempt to Update + // the blob with passed in values (if method supports) instead of creating a new one. + _Out_ DWORD* pdwSizeOfDataFromInteractiveUI, + // Pointer that receives the credential blob that can be used in authentication. + // Caller should free the memory using EapHostPeerFreeMemory. + _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE** ppDataFromInteractiveUI, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + _Inout_ LPVOID* ppvReserved); + + // Supplicant can utilize XML based EAP configuration storing, managing, editing. When it wants to call EapHostPeerConfigureUI + // or when it has to start authentication, it calls this API to convert XML configuration into blob. + // API Returns non zero return code up on error. + DWORD WINAPI EapHostPeerConfigXml2Blob( + // controls the behavior of the EAP Method + _In_ DWORD dwFlags, + // a node containing EAP XML configuration inside it + _In_ IXMLDOMNode* pConfigDoc, + // pointer to DWORD that receives the configuration blob size + _Out_ DWORD* pdwSizeOfConfigOut, + // pointer that receives configuration blob. Caller should free the memory using EapHostPeerFreeMemory. + _Outptr_result_buffer_(*pdwSizeOfConfigOut) BYTE** ppConfigOut, + // pointer that receives the EAP Method specified in the XML configuration + _Out_ EAP_METHOD_TYPE* pEapMethodType, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError); + + // Supplicant can utilize XML based EAP credentials storing, managing, editing. When it wants to start + // authentication, it calls this API to convert XML based credentials into blob. + // API Returns non zero return code up on error. + DWORD WINAPI EapHostPeerCredentialsXml2Blob( + // controls the behavior of the EAP Method + _In_ DWORD dwFlags, + // XML node that contains credentials + _In_ IXMLDOMNode* pCredentialsDoc, + // size of configuration blob that the credentials are configured for + _In_ DWORD dwSizeOfConfigIn, + // configuration blob that the credentials are configured for + _In_reads_(dwSizeOfConfigIn) BYTE* pConfigIn, + // pointer to DWORD that receives size of the credentials blob. + _Out_ DWORD* pdwSizeOfCredentialsOut, + // pointer that receives credential blob buffer. Caller should free the memory using + // EapHostPeerFreeMemory. + _Outptr_result_buffer_(*pdwSizeOfCredentialsOut) BYTE** ppCredentialsOut, + // pointer that receives the EAP Method specified in the XML configuration + _Out_ EAP_METHOD_TYPE* pEapMethodType, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError); + + // Supplicant can utilize XML based EAP credentials storing, managing, editing. When it wants to start + // convert configuration blob to XML, it can call this API. + // API Returns non zero return code up on error. + DWORD WINAPI EapHostPeerConfigBlob2Xml( + // controls the behavior of the EAP Method + _In_ DWORD dwFlags, + // identifies the EAP Method + _In_ EAP_METHOD_TYPE eapMethodType, + // Size of configuration blob that supplicant wants to convert + _In_ DWORD dwSizeOfConfigIn, + // Configuration blob that supplicant wants to convert + _In_reads_(dwSizeOfConfigIn) BYTE* pConfigIn, + // XML document that contains XML form of the blob. If the EAP Method does not support + // EapPeerConfigBlob2Xml function, the XML contains ConfigBlob node with blob in string form + _COM_Outptr_ IXMLDOMDocument2** ppConfigDoc, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError); + + // Supplicant calls this API to free memory returned by Config APIs. Supplicant should not use this API + // for freeing EAP_ERROR structure. + VOID WINAPI EapHostPeerFreeMemory(BYTE* pData); + + // Supplicant calls this API to free EAP_ERROR memory, which will get filled when an API fails. + VOID WINAPI EapHostPeerFreeErrorMemory(EAP_ERROR* pEapError); + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAPHOSTPEERCONFIGAPIS_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapmethodauthenticatorapis.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapmethodauthenticatorapis.h new file mode 100644 index 0000000000000000000000000000000000000000..d2c47a145842c3c9f0c64f345a2796b8cb01024c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapmethodauthenticatorapis.h @@ -0,0 +1,383 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Declares datastructures that are needed by eap methods on the Peer. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAP_METHOD_AUTHENTICATOR_APIS_H +#define EAP_METHOD_AUTHENTICATOR_APIS_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef __eapauthenticatortypes_h__ +#include "EapAuthenticatorTypes.h" +#endif + +#ifndef EAPAUTHENTICATORACTIONDEFINE_H +#include "EapAuthenticatorActionDefine.h" +#endif + +#ifdef __cplusplus +extern "C" +{ +#endif + + // + // Defines used for installation of EAP DLL + // HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\[EapTypeId]) + // + // Custom EAP DLL registry installation example: + // Name = Sample.dll, + // AuthorId = 311(Microsoft), + // EapTypeId = (decimal 40) + // HKLM\System\CCS\Services\Eaphost\Methods\311\40 + // + // AuthenticatorDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll + // AuthenticatorFriendlyName (REG_SZ) Sample EAP Protocol + + // + // Defines used for installation of EAP DLL + // HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\254\[VendorId]\[EapTypeId]) + // + // Custom Expanded EAP DLL registry installation example: + // Name = Sample.dll, + // AuthorId = 311(Microsoft), + // VendorId = 311(Microsoft), + // EapTypeId = (decimal 40) + // HKLM\System\CCS\Services\Eaphost\Methods\311\254\311\40 + // + // AuthenticatorDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll + // AuthenticatorFriendlyName (REG_SZ) Sample EAP Protocol + + // ConfigCLSID (REG_SZ) {0000031A-0000-0000-C000-000000000046} + // StandaloneSupported (REG_DWORD) 1 + // + +#define EAP_REGISTRY_LOCATION TEXT("System\\CurrentControlSet\\Services\\EapHost\\Methods") + +#define EAP_AUTHENTICATOR_VALUENAME_DLL_PATH TEXT("AuthenticatorDllPath") +#define EAP_AUTHENTICATOR_VALUENAME_FRIENDLY_NAME TEXT("AuthenticatorFriendlyName") +#define EAP_AUTHENTICATOR_VALUENAME_PROPERTIES TEXT("Properties") +#define EAP_AUTHENTICATOR_VALUENAME_CONFIGUI TEXT("AuthenticatorConfigUIPath") + + // Structures used by EAP methods on the peer to communicate with the host. + + // List of functions corresponding to the particular EAP method + typedef struct _EAP_AUTHENTICATOR_METHOD_ROUTINES + { + DWORD dwSizeInBytes; // unused + EAP_METHOD_TYPE* pEapType; + + DWORD(APIENTRY* EapMethodAuthenticatorInitialize)(_In_ EAP_METHOD_TYPE* pEapType, _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapMethodAuthenticatorBeginSession)( + // Flags to qualify the authentication process. + _In_ DWORD dwFlags, + // Identity of the user being authenticated + _In_ LPCWSTR pwszIdentity, + // Pointer to an array of attributes. This array contains attributes that + // describe the entity being authenticated. + _In_ const EapAttributes* const pAttributeArray, + // Specifies the size in bytes of the data pointed to by pConnectionData. + // If pConnectionData is NULL, this member is zero. + _In_ DWORD dwSizeofConnectionData, + // Pointer to connection data received from the authentication protocol's + // configuration user interface. + _In_reads_(dwSizeofConnectionData) const BYTE* const pConnectionData, + // This is the maximum size of an eap packet that the authenticator can send. + _In_ DWORD dwMaxSendPacketSize, + // The session handle that identifies the current authentication session. + _Out_ EAP_SESSION_HANDLE* pSessionHandle, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapMethodAuthenticatorUpdateInnerMethodParams)( + // context handle as returned from a successful call to + // EapAuthenticatorBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ DWORD dwFlags, + _In_ LPCWSTR pwszIdentity, + // Pointer to an array of attributes. This array contains attributes that + // describe the entity being authenticated. + _In_ const EapAttributes* const pAttributeArray, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + // The authenticator calls this any time it receives a packet that the eaphost + // needs to process. This should be called only after a successful call to + // EapAuthenticatorBeginSession. + DWORD(APIENTRY* EapMethodAuthenticatorReceivePacket)( + // context handle as returned from a successful call to + // EapAuthenticatorBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + // Specifies the size, in bytes, of the buffer pointed to by + // pReceivePacket + _In_ DWORD cbReceivePacket, + // Pointer to a buffer that contains the incoming EAP data received by + // the supplicant. + _In_reads_bytes_(cbReceivePacket) const EapPacket* const pReceivePacket, + // This enumeration tells the supplicant to take an appropriate action. + // The supplicant will typically look at this action and either call + // another method on eaphost or do something else on its own. + _Out_ EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapMethodAuthenticatorSendPacket)( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + // Id to use when constructing the SendPacket + _In_ BYTE bPacketId, + // Specifies the limit on the size, in bytes, on the packet generated + // by eaphost. On a successful return, this will contain the size of the + // data added by the eap module. + _Inout_ _Pre_satisfies_(*pcbSendPacket >= sizeof(EapPacket)) DWORD* pcbSendPacket, + // Pointer to a buffer that is allocated by the client and populated + // by the eap module. The value of the incoming buffer is ignored and + // the method populates it from the beginning of the buffer. + _Inout_ _Pre_writable_byte_size_(*pcbSendPacket) _Pre_readable_byte_size_(*pcbSendPacket) EapPacket* pSendPacket, + // Timeout option for sending the packet + _Out_ EAP_AUTHENTICATOR_SEND_TIMEOUT* pTimeout, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + // Returns an array of attributes that the caller needs to act on. + // The supplicant will call this when a call to + // EapHostAuthenticatorProcessRequestPacket returns EapHostAuthenticatorResponseRespond. + DWORD(APIENTRY* EapMethodAuthenticatorGetAttributes)( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + // Array of attributes that the caller needs to act on. + _Out_ EapAttributes* pAttribs, + _Outptr_ EAP_ERROR** ppEapError); + + // Sets an array of attributes that the caller wants the eap method to act + // on. + DWORD(APIENTRY* EapMethodAuthenticatorSetAttributes)( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ const EapAttributes* const pAttribs, + // This enumeration tells the supplicant to take an appropriate action. + // The supplicant will typically look at this action and either call + // another method on eaphost or do something else on its own. + _Out_ EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + // The authenticator will call this on completion of an authentication. This + // can happen in any of the following scenarios: + // 1. A call to EapHostAuthenticatorReceivePacket returned + // EAP_HOST_AUTHENTICATOR_RESPONSE_SUCCESS or EAP_HOST_AUTHENTICATOR_RESPONSE_FAILURE + // Even if the action returned above was a success, the authenticator can choose to call + // this method with a failure. + // 2. The server can choose to terminate an authentication with a failure in the middle of + // an authentication. + DWORD(APIENTRY* EapMethodAuthenticatorGetResult)( + // context handle as returned from a successful call to + // EapHostPeerBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + // A structure that indicates the result and any state that the + // supplicant needs to save for future authentications. + _Out_ EAP_METHOD_AUTHENTICATOR_RESULT* pResult, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + // Ends the authentication session. This cleans up any state that the eap + // method or eaphost might be keeping. + DWORD(APIENTRY* EapMethodAuthenticatorEndSession)( + // context handle as returned from a successful call to + // EapHostPeerBeginSession. This will be set to NULL on a successful call. + _In_ EAP_SESSION_HANDLE sessionHandle, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapMethodAuthenticatorShutdown)(_In_ EAP_METHOD_TYPE* pEapType, _Outptr_ EAP_ERROR** ppEapError); + + } EAP_AUTHENTICATOR_METHOD_ROUTINES, *PEAP_AUTHENTICATOR_METHOD_ROUTINES; + + // + // EAP Functions + // + void WINAPI EapMethodAuthenticatorFreeErrorMemory(_In_ EAP_ERROR* pEapError); + void WINAPI EapMethodAuthenticatorFreeMemory(_In_ void* pUIContextData); + + DWORD EapMethodAuthenticatorGetInfo( + _In_ EAP_METHOD_TYPE* pEapType, _Out_ EAP_AUTHENTICATOR_METHOD_ROUTINES* pEapInfo, _Outptr_ EAP_ERROR** ppEapError); + + DWORD EapMethodAuthenticatorInitialize(_In_ EAP_METHOD_TYPE* pEapType, _Outptr_ EAP_ERROR** ppEapError); + + DWORD EapMethodAuthenticatorBeginSession( + // Flags to qualify the authentication process. + _In_ DWORD dwFlags, + // Initial Id + _In_ BYTE bInitialId, + // Identity of the user being authenticated + _In_ LPCWSTR pwszIdentity, + // Pointer to an array of attributes. This array contains attributes that + // describe the entity being authenticated. + _In_ const EapAttributes* const pAttributeArray, + // Specifies the size in bytes of the data pointed to by pConnectionData. + // If pConnectionData is NULL, this member is zero. + _In_ DWORD dwSizeofConnectionData, + // Pointer to connection data received from the authentication protocol's + // configuration user interface. + _In_reads_(dwSizeofConnectionData) const BYTE* const pConnectionData, + // This is the maximum size of an eap packet that the authenticator can send. + _In_ DWORD dwMaxSendPacketSize, + // The session handle that identifies the current authentication session. + _Out_ EAP_SESSION_HANDLE* pSessionHandle, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + DWORD EapMethodAuthenticatorUpdateInnerMethodParams( + // context handle as returned from a successful call to + // EapAuthenticatorBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ DWORD dwFlags, + _In_ LPCWSTR pwszIdentity, + // Pointer to an array of attributes. This array contains attributes that + // describe the entity being authenticated. + _In_ const EapAttributes* const pAttributeArray, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + // The authenticator calls this any time it receives a packet that the eaphost + // needs to process. This should be called only after a successful call to + // EapAuthenticatorBeginSession. + DWORD EapMethodAuthenticatorReceivePacket( + // context handle as returned from a successful call to + // EapAuthenticatorBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + // Specifies the size, in bytes, of the buffer pointed to by + // pReceivePacket + _In_ DWORD cbReceivePacket, + // Pointer to a buffer that contains the incoming EAP data received by + // the supplicant. + _In_reads_bytes_(cbReceivePacket) const EapPacket* const pReceivePacket, + // This enumeration tells the supplicant to take an appropriate action. + // The supplicant will typically look at this action and either call + // another method on eaphost or do something else on its own. + _Out_ EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + DWORD EapMethodAuthenticatorSendPacket( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + // Id to use when constructing the SendPacket + _In_ BYTE bPacketId, + // Specifies the limit on the size, in bytes, on the packet generated + // by eaphost. On a successful return, this will contain the size of the + // data added by the eap module. + _Inout_ _Pre_satisfies_(*pcbSendPacket >= sizeof(EapPacket)) DWORD* pcbSendPacket, + // Pointer to a buffer that is allocated by the client and populated + // by the eap module. The value of the incoming buffer is ignored and + // the method populates it from the beginning of the buffer. + _Inout_ _Pre_writable_byte_size_(*pcbSendPacket) _Pre_readable_byte_size_(*pcbSendPacket) EapPacket* pSendPacket, + // Timeout option for sending the packet + _Out_ EAP_AUTHENTICATOR_SEND_TIMEOUT* pTimeout, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + // Returns an array of attributes that the caller needs to act on. + // The supplicant will call this when a call to + // EapHostAuthenticatorProcessRequestPacket returns EapHostAuthenticatorResponseRespond. + DWORD EapMethodAuthenticatorGetAttributes( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + // Array of attributes that the caller needs to act on. + _Out_ EapAttributes* pAttribs, + _Outptr_ EAP_ERROR** ppEapError); + + // Sets an array of attributes that the caller wants the eap method to act + // on. + DWORD EapMethodAuthenticatorSetAttributes( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ const EapAttributes* const pAttribs, + // This enumeration tells the supplicant to take an appropriate action. + // The supplicant will typically look at this action and either call + // another method on eaphost or do something else on its own. + _Out_ EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + // The authenticator will call this on completion of an authentication. This + // can happen in any of the following scenarios: + // 1. A call to EapHostAuthenticatorReceivePacket returned + // EAP_HOST_AUTHENTICATOR_RESPONSE_SUCCESS or EAP_HOST_AUTHENTICATOR_RESPONSE_FAILURE + // Even if the action returned above was a success, the authenticator can choose to call + // this method with a failure. + // 2. The server can choose to terminate an authentication with a failure in the middle of + // an authentication. + DWORD EapMethodAuthenticatorGetResult( + // context handle as returned from a successful call to + // EapHostPeerBeginSession + _In_ EAP_SESSION_HANDLE sessionHandle, + // A structure that indicates the result and any state that the + // supplicant needs to save for future authentications. + _Out_ EAP_METHOD_AUTHENTICATOR_RESULT* pResult, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + // Ends the authentication session. This cleans up any state that the eap + // method or eaphost might be keeping. + DWORD EapMethodAuthenticatorEndSession( + // context handle as returned from a successful call to + // EapHostPeerBeginSession. This will be set to NULL on a successful call. + _In_ EAP_SESSION_HANDLE sessionHandle, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + _Outptr_ EAP_ERROR** ppEapError); + + DWORD EapMethodAuthenticatorShutdown(_In_ EAP_METHOD_TYPE* pEapType, _Outptr_ EAP_ERROR** ppEapError); + + /// Config API + +#define EAP_METHOD_AUTHENTICATOR_CONFIG_IS_IDENTITY_PRIVACY 0x1 + + DWORD WINAPI EapMethodAuthenticatorInvokeConfigUI( + _In_ EAP_METHOD_TYPE* pEapMethodType, + _In_ HWND hwndParent, + _In_ DWORD dwFlags, + _In_ LPCWSTR pwszMachineName, + _In_ DWORD dwSizeOfConfigIn, + _In_reads_(dwSizeOfConfigIn) BYTE* pConfigIn, + _Out_ DWORD* pdwSizeOfConfigOut, + _Outptr_result_buffer_(*pdwSizeOfConfigOut) BYTE** ppConfigOut, + _Outptr_ EAP_ERROR** ppEapError); + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAP_METHOD_AUTHENTICATOR_APIS_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapmethodpeerapis.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapmethodpeerapis.h new file mode 100644 index 0000000000000000000000000000000000000000..42b34b67838452b297ddc6b11dd0e73f403264c0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapmethodpeerapis.h @@ -0,0 +1,940 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Declares datastructures that are needed by eap methods on the Peer. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAPPEERMETHODAPIS_H +#define EAPPEERMETHODAPIS_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include "objbase.h" +#include "msxml6.h" +#include "EapMethodTypes.h" + +#ifndef EAPAUTHENTICATORACTIONDEFINE_H +#include "EapAuthenticatorActionDefine.h" +#endif + +#ifndef _NGCTICKETCONTEXT_ +#define _NGCTICKETCONTEXT_ +// The NCRYPT_PIN_CACHE_PIN_PROPERTY and NCRYPT_PIN_CACHE_APPLICATION_TICKET_PROPERTY properties +// return a 32 byte random unique ID encoded as a null terminated base64 Unicode string. The string length +// is 32 * 4/3 + 1 characters = 45 characters, 90 bytes +#define NCRYPT_PIN_CACHE_PIN_BYTE_LENGTH 90 + +#define NGC_TICKET_PROPERTY_STRING_LENGTH (NCRYPT_PIN_CACHE_PIN_BYTE_LENGTH / sizeof(WCHAR)) + +typedef ULONG_PTR NCRYPT_KEY_HANDLE; + +typedef struct _NgcTicketContext +{ + WCHAR wszTicket[NGC_TICKET_PROPERTY_STRING_LENGTH]; + NCRYPT_KEY_HANDLE hKey; + HANDLE hImpersonateToken; +} NgcTicketContext; + +#endif + +#ifdef __cplusplus +extern "C" +{ +#endif + + // + // Defines used for installation of EAP DLL + // HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\[EapTypeId]) + // + // Custom EAP DLL registry installation example: + // Name = Sample.dll, + // AuthorId = 311(Microsoft), + // EapTypeId = (decimal 40) + // HKLM\System\CCS\Services\Eaphost\Methods\311\40 + // + // PeerDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll + // PeerConfigUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll + // PeerInteractiveUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll + // PeerIdentityPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll + // PeerFriendlyName (REG_SZ) Sample EAP Protocol + // PeerRequireConfigUI (REG_DWORD) 1 + + // + // Defines used for installation of EAP DLL + // HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\254\[VendorId]\[EapTypeId]) + // + // Custom Expanded EAP DLL registry installation example: + // Name = Sample.dll, + // AuthorId = 311(Microsoft), + // VendorId = 311(Microsoft), + // EapTypeId = (decimal 40) + // HKLM\System\CCS\Services\Eaphost\Methods\311\254\311\40 + // + // PeerDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll + // PeerConfigUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll + // PeerInteractiveUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll + // PeerIdentityPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll + // PeerFriendlyName (REG_SZ) Sample EAP Protocol + // PeerRequireConfigUI (REG_DWORD) 1 + +#define EAP_REGISTRY_LOCATION TEXT("System\\CurrentControlSet\\Services\\EapHost\\Methods") + +#define EAP_PEER_VALUENAME_DLL_PATH TEXT("PeerDllPath") +#define EAP_PEER_VALUENAME_FRIENDLY_NAME TEXT("PeerFriendlyName") +#define EAP_PEER_VALUENAME_CONFIGUI TEXT("PeerConfigUIPath") +#define EAP_PEER_VALUENAME_REQUIRE_CONFIGUI TEXT("PeerRequireConfigUI") +#define EAP_PEER_VALUENAME_IDENTITY TEXT("PeerIdentityPath") +#define EAP_PEER_VALUENAME_INTERACTIVEUI TEXT("PeerInteractiveUIPath") +#define EAP_PEER_VALUENAME_INVOKE_NAMEDLG TEXT("PeerInvokeUsernameDialog") +#define EAP_PEER_VALUENAME_INVOKE_PWDDLG TEXT("PeerInvokePasswordDialog") +#define EAP_PEER_VALUENAME_PROPERTIES TEXT("Properties") + + // This structure is used in EapPeerGetResult API to convey the authentication result and pass + // additional information to the EapHost and Supplicant. + typedef struct tagEapPeerMethodResult + { + BOOL fIsSuccess; + DWORD dwFailureReasonCode; + BOOL fSaveConnectionData; + DWORD dwSizeofConnectionData; + _Field_size_bytes_(dwSizeofConnectionData) BYTE* pConnectionData; + BOOL fSaveUserData; + DWORD dwSizeofUserData; + _Field_size_bytes_(dwSizeofUserData) BYTE* pUserData; + EAP_ATTRIBUTES* pAttribArray; + EAP_ERROR* pEapError; + NgcTicketContext* pNgcKerbTicket; + BOOL fSaveToCredMan; + } EapPeerMethodResult; + + // List of functions corresponding to the particular EAP method + typedef struct _EAP_PEER_METHOD_ROUTINES + { + DWORD dwVersion; + EAP_TYPE* pEapType; + + DWORD(APIENTRY* EapPeerInitialize)(_Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerGetIdentity)( + _In_ DWORD flags, + _In_ DWORD dwSizeofConnectionData, + _In_reads_(dwSizeofConnectionData) const BYTE* pConnectionData, + _In_ DWORD dwSizeofUserData, + _In_reads_(dwSizeofUserData) const BYTE* pUserData, + _In_ HANDLE hTokenImpersonateUser, + _Out_ BOOL* pfInvokeUI, + _Out_ DWORD* pdwSizeOfUserDataOut, + _Outptr_result_buffer_(*pdwSizeOfUserDataOut) BYTE** ppUserDataOut, + _Outptr_ LPWSTR* ppwszIdentity, + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerBeginSession)( + _In_ DWORD dwFlags, + _In_ const EapAttributes* const pAttributeArray, + _In_ HANDLE hTokenImpersonateUser, + _In_ DWORD dwSizeofConnectionData, + _In_reads_(dwSizeofConnectionData) BYTE* pConnectionData, + _In_ DWORD dwSizeofUserData, + _In_reads_(dwSizeofUserData) BYTE* pUserData, + _In_ DWORD dwMaxSendPacketSize, + _Out_ EAP_SESSION_HANDLE* pSessionHandle, + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerSetCredentials)( + _In_ EAP_SESSION_HANDLE sessionHandle, _In_ WCHAR* pwszIdentity, _In_ WCHAR* pwszPassword, _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerProcessRequestPacket)( + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ DWORD cbReceivePacket, + _In_reads_bytes_(cbReceivePacket) EapPacket* pReceivePacket, + _Out_ EapPeerMethodOutput* pEapOutput, + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerGetResponsePacket)( + _In_ EAP_SESSION_HANDLE sessionHandle, + _Inout_ _Pre_satisfies_(*pcbSendPacket >= sizeof(EapPacket)) DWORD* pcbSendPacket, + _Inout_ _Pre_writable_byte_size_(*pcbSendPacket) _Pre_readable_byte_size_(*pcbSendPacket) EapPacket* pSendPacket, + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerGetResult)( + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ EapPeerMethodResultReason reason, + _Out_ EapPeerMethodResult* pResult, + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerGetUIContext)( + _In_ EAP_SESSION_HANDLE sessionHandle, + _Out_ DWORD* pdwSizeOfUIContextData, + _Outptr_result_buffer_(*pdwSizeOfUIContextData) BYTE** ppUIContextData, + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerSetUIContext)( + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ DWORD dwSizeOfUIContextData, + _In_reads_(dwSizeOfUIContextData) const BYTE* pUIContextData, + _Out_ EapPeerMethodOutput* pEapOutput, + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerGetResponseAttributes)( + _In_ EAP_SESSION_HANDLE sessionHandle, _Out_ EapAttributes* pAttribs, _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerSetResponseAttributes)( + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ EapAttributes* pAttribs, + _Out_ EapPeerMethodOutput* pEapOutput, + _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerEndSession)(_In_ EAP_SESSION_HANDLE sessionHandle, _Outptr_ EAP_ERROR** ppEapError); + + DWORD(APIENTRY* EapPeerShutdown)(_Outptr_ EAP_ERROR** ppEapError); + } EAP_PEER_METHOD_ROUTINES; + + // + // EAP Functions + // + + // General comment regarding all APIs defined in this file: + // + // If the function succeeds, it returns ERROR_SUCCESS. Otherwise, it is + // considered failure. + // + // If an error code is returned, the out parameter ppEapError will contain + // related error information. The caller is expected to look into it to + // find out the error informations. + // However, there are some situation that it may not be possible to fill + // out information for ppEapError. For example, in out of memory situation, + // the method implementation may not be able to allocate memory for + // ppEapError as well. If for any reason it is not possible to fill ppEapError, + // *ppEapError should be set to NULL. + + // This function should be an exported function from the DLL + // + // If any other APIs in this file returns EAP_ERROR, use this + // function to free the memory allocated for it + VOID WINAPI EapPeerFreeErrorMemory(_In_ EAP_ERROR* pEapError); + + // This function should be an exported function from the DLL + // + // Returns information related to a given EAP type. + // Parameters: + // - pEapType: + // the EAP type for this EAP method. Implementation should check this input + // to make sure that it is the same as the method being implemented. + // + // - pEapInfo: + // returns all the information related for pEapType. + DWORD WINAPI EapPeerGetInfo(_In_ EAP_TYPE* pEapType, _Out_ EAP_PEER_METHOD_ROUTINES* pEapInfo, _Out_opt_ EAP_ERROR** ppEapError); + + // This is the first function that EAPHost should call on this method. + // The only exception is EapPeerFreeErrorMemory() and EapPeerGetInfo(), + // which can be called at any time. + // This function should be called only once and it should initialize + // everything needed for this method work properly. + DWORD WINAPI EapPeerInitialize(_Outptr_ EAP_ERROR** ppEapError); + + // EAPHost will call this function, and it would return user data + // and user identity. + // Parameters: + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // + // - dwSizeofConnectionData: + // size of the buffer (pConnectionData) in bytes + // + // - pConnectionData: + // connection data specific to this method. It will be used to decide + // the user data returned from this API, when the user data depends on + // certain connection data configuration. The method implementation should + // have default values for connection data, and when this parameter + // is NULL, the default connection data should be used. + // + // - dwSizeofUserData: + // size of the buffer (pUserData) in bytes. + // + // - pUserData: + // the user data specific to this authentication. It will be used to + // pre-populate the user data. + // When this API is called for the first time, or when it needs to start + // a fresh authentication sessin, this parameter will be NULL. + // When it is not NULL, its content should be the user data returned + // from EapPeerGetResult() (*ppResult)->pUserData from previous successful + // authentication session, if that session indicated that user data should be + // saved. + // + // - pfInvokeUI: + // should return true if the user identity and user data blob can not be + // returned successfully and the method decides that it has to collect the + // information from the user through UI. + // + // - pdwSizeOfUserDataOut: + // *pdwSizeOfUserDataOut is the size of buffer *ppUserDataOut + // + // - ppUserDataOut: + // returned user data. The data will be passed to EapPeerBeginSession() + // as input pUserData + // + // - ppwszIdentity: + // returned user identity. It will be included in the identity response packet + // and returned to the server. + DWORD WINAPI EapPeerGetIdentity( + _In_ DWORD dwFlags, + _In_ DWORD dwSizeofConnectionData, + _In_reads_(dwSizeofConnectionData) const BYTE* pConnectionData, + _In_ DWORD dwSizeofUserData, + _In_reads_(dwSizeofUserData) const BYTE* pUserData, + _In_ HANDLE hTokenImpersonateUser, + _Out_ BOOL* pfInvokeUI, + _Out_ DWORD* pdwSizeOfUserDataOut, + _Outptr_result_buffer_(*pdwSizeOfUserDataOut) BYTE** ppUserDataOut, + _Out_ LPWSTR* ppwszIdentity, + _Outptr_ EAP_ERROR** ppEapError); + + // Start an authentication session. + // Parameters: + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // + // - pAttributeArray: + // attributes passed to the method. + // + // - hTokenImpersonateUser: + // Impersonation token for the user to be authenticated. + // + // - dwSizeofConnectionData: + // size of the buffer (pConnectionData) in bytes + // + // - pConnectionData: + // See the comment for pConnectionData for EapPeerGetIdentity() + // + // - dwSizeofUserData: + // size of the buffer (pUserData) in bytes + // + // - pUserData: + // user data returned from EapPeerGetIdentity() + // + // - dwMaxSendPacketSize: + // maximum packet size that the method can send. If the method needs to + // send a message larger than this size, the method has to handle fragmentation + // and resembling. + // + // - pSessionHandle: + // This is an "identifier" of the authentication session. + // When other EapPeerXxxx() functions with a sessionHandle parameter + // being called, *pSessionHandle will be passed as the session handle. + // The method should be able to use this to find the information related + // the authentication session. + DWORD WINAPI EapPeerBeginSession( + _In_ DWORD dwFlags, + _In_ const EapAttributes* const pAttributeArray, + _In_ HANDLE hTokenImpersonateUser, + _In_ DWORD dwSizeofConnectionData, + _In_reads_(dwSizeofConnectionData) BYTE* pConnectionData, + _In_ DWORD dwSizeofUserData, + _In_reads_(dwSizeofUserData) BYTE* pUserData, + _In_ DWORD dwMaxSendPacketSize, + _Out_ EAP_SESSION_HANDLE* pSessionHandle, + _Outptr_ EAP_ERROR** ppEapError); + + // A method exports either EapPeerGetIdentity (and EapPeerInvokeIdentityUI) or + // exports EapPeerSetCredentials (and sets the InvokeUserNameDlg regkey). The + // registry key controls which of the two apis will get called. + DWORD WINAPI EapPeerSetCredentials(EAP_SESSION_HANDLE sessionHandle, LPWSTR pwszIdentity, LPWSTR pwszPassword, _Outptr_ EAP_ERROR** ppEapError); + + // EAPHost will pass the packet to the method for processing. + // Parameters: + // - sessionHandle: + // the value returned through *pSessionHandle from EapPeerBeginSession() + // + // - cbRecevedPacket: + // buffer size of (pReceivePacket) in bytes + // + // - pReceivedPacket: + // pointer to received packet + // + // - pEapOutput: + // the method should fill this struct to tell the supplicant what to do. + DWORD WINAPI EapPeerProcessRequestPacket( + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ DWORD cbReceivedPacket, + _In_reads_bytes_(cbReceivedPacket) EapPacket* pReceivedPacket, + _Out_ EapPeerMethodOutput* pEapOutput, + _Outptr_ EAP_ERROR** ppEapError); + + // This function returns the packet to be sent to the server. + // Parameters: + // - sessionHandle: + // the value returned through *pSessionHandle from EapPeerBeginSession() + // + // - pcbSendPacket: + // *pcbSendPacket is the size of the buffer for (pSendPacket) when passed in. + // Upon return, *pcbSendPacket is the sizeof the actual content in pSendPacket + // + // - pSendPacket: + // pointer to a buffer that contains the packet to send upon return + DWORD WINAPI EapPeerGetResponsePacket( + _In_ EAP_SESSION_HANDLE sessionHandle, + _Inout_ _Pre_satisfies_(*pcbSendPacket >= sizeof(EapPacket)) DWORD* pcbSendPacket, + _Inout_ _Pre_writable_byte_size_(*pcbSendPacket) _Pre_readable_byte_size_(*pcbSendPacket) EapPacket* pSendPacket, + _Outptr_ EAP_ERROR** ppEapError); + + // This will get called either when a method says that it has completed auth. + // or when the lower layer receives an alternative result. + // parameters: + // - sessionHandle: + // the value returned through *pSessionHandle from EapPeerBeginSession() + // + // - reason: + // one of the reason enum defined above in this file. + // + // - ppResult: + // Method should fill this struct with related information as defined + // by EapPeerMethodResult + DWORD WINAPI EapPeerGetResult( + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ EapPeerMethodResultReason reason, + _Out_ EapPeerMethodResult* pResult, + _Outptr_ EAP_ERROR** ppEapError); + + // This will get called if UI should be raised during authentication session. + // This function will always be followed by EapPeerInvokeInteractiveUI() and + // then followed by EapPeerSetUIContext() + // parameters: + // - sessionHandle: + // the value returned through *pSessionHandle from EapPeerBeginSession() + // + // - pdwSizeOfUIContextData: + // *pdwSizeOfUIContextData is the size of *ppUIContextData in bytes. + // + // - ppUIContextData: + // It will be passed to EapPeerInvokeInteractiveUI() as _In_ parameter + // pUIContextData + DWORD WINAPI EapPeerGetUIContext( + _In_ EAP_SESSION_HANDLE sessionHandle, + _Out_ DWORD* pdwSizeOfUIContextData, + _Outptr_result_buffer_(*pdwSizeOfUIContextData) BYTE** ppUIContextData, + _Outptr_ EAP_ERROR** ppEapError); + + // It will be called after UI has been raised. Refer to EapPeerGetUIContext() + // for more information. + // parameters: + // - sessionHandle: + // the value returned through *pSessionHandle from EapPeerBeginSession() + // + // - dwSizeOfUIContextData: + // size of pUIContextData in bytes. + // + // - pUIContextData: + // This is the data returned from EapPeerInvokeInteractiveUI() OUT parameter + // *ppDataFromInteractiveUI + // + // - pEapOutput: + // the method should fill this struct to tell the supplicant what to do. + DWORD WINAPI EapPeerSetUIContext( + _In_ EAP_SESSION_HANDLE sessionHandle, + _In_ DWORD dwSizeOfUIContextData, + _In_reads_(dwSizeOfUIContextData) const BYTE* pUIContextData, + _Out_ EapPeerMethodOutput* pEapOutput, + _Outptr_ EAP_ERROR** ppEapError); + + // If EAPHost calls any of the EapPeerXxxx() function, and that function has + // pEapOutput as a OUT parameter, and the action code in it is + // EapPeerMethodResponseActionRespond, this function will be the next function + // that EAPHost will call. + // And it will be follow by a call to EapPeerSetResponseAttributes() + // parameters: + // - sessionHandle: + // the value returned through *pSessionHandle from EapPeerBeginSession() + // + // - pAttributes: + // method should fill this with the attributes it need to return. + DWORD WINAPI EapPeerGetResponseAttributes(_In_ EAP_SESSION_HANDLE sessionHandle, _Out_ EapAttributes* pAttribs, _Outptr_ EAP_ERROR** ppEapError); + + // See EapPeerGetResponseAttributes() for when this function will be called. + // parameters: + // - sessionHandle: + // the value returned through *pSessionHandle from EapPeerBeginSession() + // + // - pAttributes: + // attributes passed to this method. + // + // - pEapOutput: + // the method should fill this struct to tell the supplicant what to do. + DWORD WINAPI EapPeerSetResponseAttributes( + _In_ EAP_SESSION_HANDLE sessionHandle, _In_ EapAttributes* pAttribs, _Out_ EapPeerMethodOutput* pEapOutput, _Outptr_ EAP_ERROR** ppEapError); + + // The last function that will be called for this authentication session. + // - sessionHandle: + // the value returned through *pSessionHandle from EapPeerBeginSession() + // + DWORD WINAPI EapPeerEndSession(_In_ EAP_SESSION_HANDLE sessionHandle, _Outptr_ EAP_ERROR** ppEapError); + + // This is the last function that EAPHost should call on this method. + // The only exception is EapPeerFreeErrorMemory() and EapPeerGetInfo(), + // which can be called at any time. + // This function should be called only once and it should un-initialize + // everything for this method. + DWORD WINAPI EapPeerShutdown(_Outptr_ EAP_ERROR** ppEapError); + + // It should raise a configuration UI so that the user can configure the method + // parameters: + // - pEapType: + // method type for this method + // + // - hwndParent: + // The parent window for the UI to be raised by this function. + // + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // + // - dwSizeOfConnectionDataIn: + // size of pConnectionDataIn in bytes + // + // - pConnectionDataIn: + // Used to pre-populate the configuration UI. The first time this function + // is called, or if it is desired to start from scratch, it will be NULL, + // otherwise, it will be the data returned from previous + // EapPeerInvokeConfigUI() ppConnectionDataOut OUT parameter + // + // - pdwSizeOfConnectionDataOut: + // *pdwSizeOfConnectionDataOut is the size of *ppConnectionDataOut + // + // - ppConnectionDataOut: + // *ppConnectionDataOut is configuration data returned from this functioin. + // It will be used to pass to next EapPeerInvokeConfigUI() call. + DWORD WINAPI EapPeerInvokeConfigUI( + _In_ EAP_METHOD_TYPE* pEapType, + _In_ HWND hwndParent, + _In_ DWORD dwFlags, + _In_ DWORD dwSizeOfConnectionDataIn, + _In_reads_(dwSizeOfConnectionDataIn) BYTE* pConnectionDataIn, + _Out_ DWORD* dwSizeOfConnectionDataOut, + _Outptr_result_buffer_(*dwSizeOfConnectionDataOut) BYTE** ppConnectionDataOut, + _Outptr_ EAP_ERROR** ppEapError); + + // This function should raise interactive UI for the Method. What UI to be raised and how to raise + // is Method specific information that is embedded in pUIContextData. + // + // Parameters: + // - pEapType: + // method type for this method + // + // - hwndParent: + // The parent window for the UI to be raised by this function. + // + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // - dwSizeofUIContextData: + // Number of bytes of UIContext data referred by pUIContextData. + // - pUIContextData: + // A blob that conveys the state of the authentication and describes what and how to show the UI + // to the user. + // - pdwSizeOfDataFromInteractiveUI + // Number of bytes of blob referred by *ppDataFromInteractiveUI. + // - ppDataFromInteractiveUI + // A UI context blob that captures the result of UI interaction + // - pEapError + // Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases + // the structure might not be filled. + DWORD WINAPI EapPeerInvokeInteractiveUI( + _In_ EAP_METHOD_TYPE* pEapType, + _In_ HWND hwndParent, + _In_ DWORD dwSizeofUIContextData, + _In_reads_(dwSizeofUIContextData) BYTE* pUIContextData, + _Out_ DWORD* pdwSizeOfDataFromInteractiveUI, + _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE** ppDataFromInteractiveUI, + _Outptr_ EAP_ERROR** ppEapError); + + // This function should raise credential UI for the Method. Method can use the configuration passed in to + // decide what kind of UI should be shown to the user. + // + // Parameters: + // - pEapType: + // method type for this method + // + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // + // - hwndParent: + // The parent window for the UI to be raised by this function. + // + // - dwSizeOfConnectionData: + // Number of bytes of pConnectionData. + // + // - pConnectionData: + // Configuration blob for the Method. + // + // - dwSizeOfUserData + // Number of bytes of pUserData. + // + // - pUserData + // Cached credential blob. This would be NULL if this is the first time successful authentication is being done. + // + // - ppwszIdentity + // Pointer to unicode string that receives the identity that EapHost should use as part of EAP Identity reponse. + // + // - pEapError + // Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases + // the structure might not be filled. + DWORD WINAPI EapPeerInvokeIdentityUI( + _In_ EAP_METHOD_TYPE* pEapType, + _In_ DWORD dwFlags, + _In_ HWND hwndParent, + _In_ DWORD dwSizeOfConnectionData, + _In_reads_(dwSizeOfConnectionData) const BYTE* pConnectionData, + _In_ DWORD dwSizeOfUserData, + _In_reads_(dwSizeOfUserData) const BYTE* pUserData, + _Out_ DWORD* pdwSizeOfUserDataOut, + _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE** ppUserDataOut, + _Out_ LPWSTR* ppwszIdentity, + _Outptr_ EAP_ERROR** ppEapError); + + // This function returns credential fields to be shown to the user for the authentication. As part of this function + // Method should not bring up UI instead it should describe what credentials are to be obtained. Based on the + // return values, Supplicant draws the UI to the user and obtains the requested credentials. + // + // Parameters: + // - hUserImpersonationToken: + // Impersonation token of the user/machine who is being authenticated. + // + // - eapMethodType + // method type for this method + // + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // + // - dwEapConnDataSize: + // Number of bytes of pbEapConnData. + // + // - pbEapConnData: + // Configuration blob for the Method. + // + // - dwSizeOfUserData + // Number of bytes of pUserData. + // + // - pEapConfigFieldsArray + // Pointer to EAP_CONFIG_INPUT_FIELD_ARRAY that receives array of credential fields. + // + // - pEapError + // Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases + // the structure might not be filled. + DWORD WINAPI EapPeerQueryCredentialInputFields( + _In_ HANDLE hUserImpersonationToken, + _In_ EAP_METHOD_TYPE eapMethodType, + _In_ DWORD dwFlags, + _In_ DWORD dwEapConnDataSize, + _In_reads_(dwEapConnDataSize) BYTE* pbEapConnData, + _Out_ EAP_CONFIG_INPUT_FIELD_ARRAY* pEapConfigFieldsArray, + _Outptr_ EAP_ERROR** ppEapError); + + // This function returns credential blob based on the credentials passed in the credential array structure. + // Method should not bring up UI. It should convert the credentials in to a blob that could be passed to + // EapPeerBeginSession. + // + // Parameters: + // - hUserImpersonationToken: + // Impersonation token of the user/machine who is being authenticated. + // + // - eapMethodType + // method type for this method + // + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // + // - dwEapConnDataSize: + // Number of bytes of pbEapConnData. + // + // - pbEapConnData: + // Configuration blob for the Method. + // + // - dwSizeOfUserData + // Number of bytes of pUserData. + // + // - pEapConfigFieldsArray + // Pointer to EAP_CONFIG_INPUT_FIELD_ARRAY that contains array of credential fields filled by supplicant. + // + // - pdwUserBlobSize: + // Pointer to DWORD that receives the size of the ppbUserBlob. + // + // - ppbUserBlob + // Pointer to buffer that receives credential blob. + // + // - pEapError + // Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases + // the structure might not be filled. + DWORD WINAPI EapPeerQueryUserBlobFromCredentialInputFields( + _In_ HANDLE hUserImpersonationToken, + _In_ EAP_METHOD_TYPE eapMethodType, + _In_ DWORD dwFlags, + _In_ DWORD dwEapConnDataSize, + _In_reads_(dwEapConnDataSize) BYTE* pbEapConnData, + _In_ const EAP_CONFIG_INPUT_FIELD_ARRAY* pEapConfigInputFieldArray, + // pointer to DWORD that receives size of credential blob, if EAPHost passes in + // non-zero size and non-NULL data below, EAP-method will just attempt to Update + // the blob with passed in values (if supported) instead of creating a new one. EAP-method + // is not expected to release the passed in buffer, EAPHost will release it after API completion.. + _Inout_ _Pre_satisfies_(*pdwUserBlobSize >= sizeof(UINT_PTR)) DWORD* pdwUserBlobSize, + _Inout_ _At_(*ppUserBlob, _Pre_writable_size_(*pdwUserBlobSize) _Post_readable_size_(*pdwUserBlobSize)) BYTE** ppUserBlob, + _Outptr_ EAP_ERROR** ppEapError); + + // This function returns fields to be displayed during interactive time when alternative UI is used. + // Method should not bring up UI in this function. + // + DWORD WINAPI EapPeerQueryInteractiveUIInputFields( + // API's version number for ease of interoperability. It must be 0. + _In_ DWORD dwVersion, + // control the behavior of the EAP Methods + _In_ DWORD dwFlags, + // size of UIcontext data EAPHost runtime + _In_ DWORD dwSizeofUIContextData, + // UIContext data received from EAPHost runtime + _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData, + // structure that gets filled with fields and how they should be shown to the user. + // Caller (EapHost) should free the memory using EapPeerFreeMemory. + _Out_ EAP_INTERACTIVE_UI_DATA* pEapInteractiveUIData, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + _Inout_ LPVOID* ppvReserved); + + // This function returns interactive UI blob from the UI fields filled by the user + // + DWORD WINAPI EapPeerQueryUIBlobFromInteractiveUIInputFields( + // API's version number for ease of interoperability. It must be 0. + _In_ DWORD dwVersion, + // control the behavior of the EAP Methods + _In_ DWORD dwFlags, + // size of UIcontext data EAPHost runtime + _In_ DWORD dwSizeofUIContextData, + // UIContext data received from EAPHost runtime + _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData, + // structure that carries data provided by user + _In_ const EAP_INTERACTIVE_UI_DATA* pEapInteractiveUIData, + // pointer to DWORD that receives size of credential blob + _Out_ DWORD* pdwSizeOfDataFromInteractiveUI, + // Pointer that receives the credential blob that can be used in authentication. + // Caller (EapHost) should free the memory using EapPeerFreeMemory. + _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE** ppDataFromInteractiveUI, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + _Inout_ LPVOID* ppvReserved); + + // This function converts XML document containing configuration information into a blob that could be passed to other + // APIs that expect configuration blob. + // + // Parameters: + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // + // - eapMethodType + // method type for this method + // + // - dwEapConnDataSize: + // Number of bytes of pbEapConnData. + // + // - pConfigDoc: + // Pointer to XMLDOMDocument2 that refers to the XML document containg the configuration XML + // + // - ppConfigOut + // Pointer to buffer that receives configuration blob. + // + // - pdwSizeOfConfigOut + // Pointer to DWORD that receives size of ppConfigOut. + // + // - pEapError + // Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases + // the structure might not be filled. + DWORD WINAPI EapPeerConfigXml2Blob( + _In_ DWORD dwFlags, + _In_ EAP_METHOD_TYPE eapMethodType, + _In_ IXMLDOMDocument2* pConfigDoc, + _Outptr_result_buffer_(*pdwSizeOfConfigOut) BYTE** ppConfigOut, + _Out_ DWORD* pdwSizeOfConfigOut, + _Outptr_ EAP_ERROR** ppEapError); + + // This function converts XML document containing credential information into a blob that could be passed to other + // APIs that expect credential blob. + // + // Parameters: + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // + // - eapMethodType + // method type for this method + // + // - pCredentialsDoc: + // Pointer to XMLDOMDocument2 that refers to the XML document containg the credential XML + // + // - pConfigIn + // Pointer to buffer that contains configuration blob. + // + // - dwSizeOfConfigIn + // Size of pConfigIn + // + // - ppCredentialsOut + // Pointer to buffer that receives the credential blob + // + // - pdwSizeOfCredentialsOut + // Pointer to DWORD that receives size of ppCredentialsOut + // + // - pEapError + // Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases + // the structure might not be filled. + DWORD WINAPI EapPeerCredentialsXml2Blob( + _In_ DWORD dwFlags, + _In_ EAP_METHOD_TYPE eapMethodType, + _In_ IXMLDOMDocument2* pCredentialsDoc, + _In_reads_(dwSizeOfConfigIn) const BYTE* pConfigIn, + _In_ DWORD dwSizeOfConfigIn, + _Outptr_result_buffer_(*pdwSizeOfCredentialsOut) BYTE** ppCredentialsOut, + _Out_ DWORD* pdwSizeOfCredentialsOut, + _Outptr_ EAP_ERROR** ppEapError); + + // This function converts configuration blob into configuration XML document. Methods exporting this API + // will be supporting exporting of and importing of configuration with out problem. It also helps administrators + // modify the configuration. + // + // Parameters: + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // + // - eapMethodType + // method type for this method + // + // - pConfigIn: + // Configuration blob + // + // - dwSizeOfConfigIn + // Size of pConfigIn + // + // - ppConfigDoc + // Pointer to IXMLDOMDocument2 that receives configuration XML for the given configuration blob. + // + // - pEapError + // Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases + // the structure might not be filled. + DWORD WINAPI EapPeerConfigBlob2Xml( + _In_ DWORD dwFlags, + _In_ EAP_METHOD_TYPE eapMethodType, + _In_reads_(dwSizeOfConfigIn) const BYTE* pConfigIn, + _In_ DWORD dwSizeOfConfigIn, + _COM_Outptr_ IXMLDOMDocument2** ppConfigDoc, + _Outptr_ EAP_ERROR** ppEapError); + + // This function retrieves the method properties for a specific configuration data. The method properties + // returned by the API will be a subset of the properties value in the registry. + // + // Parameters: + // - dwVersion: + // The version number of the API. + // + // - dwFlags + // A combination of EAP flags that describe the EAP authentication session behavior. + // + // - hUserImpersonationToken + // An impersonation token for the user whose credentials are to be requested and obtained. + // + // - eapMethodType + // An EAP_METHOD_TYPE structure that contains vendor and author information about the + // EAP method used for authenticating the connection. + // + // - dwSizeOfConnectionDataIn + // The size, in bytes, of the connection data buffer provided in pConnectionDataIn + // + // - pConnectionDataIn + // Connection data used for the EAP method + // + // - dwSizeOfUserDataIn + // The size in bytes of the user data buffer provided in pUserDataIn + // + // - pUserDataIn + // A pointer to a byte buffer that contains the opaque user data BLOB + // + // - pMethodPropertyArray + // A pointer to the method properties array. + // + // - ppEapError + // A pointer to a pointer to an EAP_ERROR structure that contains any errors raised by + // EAPHost during the execution of this function call. + DWORD WINAPI EapPeerGetMethodProperties( + _In_ DWORD dwVersion, + _In_ DWORD dwFlags, + _In_ EAP_METHOD_TYPE eapMethodType, + _In_ HANDLE hUserImpersonationToken, + _In_ DWORD dwSizeOfConnectionDataIn, + _In_reads_(dwSizeOfConnectionDataIn) const BYTE* pConnectionDataIn, + _In_ DWORD dwSizeOfUserDataIn, + _In_reads_(dwSizeOfUserDataIn) const BYTE* pUserDataIn, + _Out_ EAP_METHOD_PROPERTY_ARRAY* pMethodPropertyArray, + _Outptr_ EAP_ERROR** ppEapError); + + // This function allows the EAP method developers to provide the various + // connection properties and user properties supported by the method. EAPHost + // will invoke this function to create the connection property and user + // property of the EAP method. + // + // Parameters: + // - dwFlags + // A combination of EAP flags that describe the EAP authentication session + // behavior. + // + // - eapMethodType + // An EAP_METHOD_TYPE structure that contains vendor and author information + // about the EAP method used for authenticating the connection. + // + // - eapCredential + // An EapCredential structure that contains the credential type and the + // appropriate credentials. + // + // - pdwConfigBlobSize + // Receives a pointer to the size, in bytes, of the ppConfigBlob parameter. + // + // - ppConfigBlob + // Receives a pointer to a pointer that contains a byte buffer with + // configured connection data. + // + // - pdwUserBlobSize + // Receives a pointer to the size in byte of the ppUserBlob parameter. + // + // - ppUserBlobp + // Receives a pointer to a pointer that contains a byte buffer with the + // methods user data. + // + // - ppEapError + // A pointer to the address of an EAP_ERROR structure that contains any + // errors raised during the execution of this function call. After consuming + // the error data this memory will be freed by calling EapPeerFreeErrorMemory + DWORD WINAPI EapPeerGetConfigBlobAndUserBlob( + _In_ DWORD dwFlags, + _In_ EAP_METHOD_TYPE eapMethodType, + _In_ EapCredential eapCredential, + _Out_ DWORD* pdwConfigBlobSize, + _Outptr_result_buffer_(*pdwConfigBlobSize) BYTE** ppConfigBlob, + _Out_ DWORD* pdwUserBlobSize, + _Outptr_result_buffer_(*pdwUserBlobSize) BYTE** ppUserBlob, + _Outptr_ EAP_ERROR** ppEapError); + + // This function frees memory returned by the configuration APIs. This function is called by EapHost when + // it is done with the memory returned by the Method. + // + // Parameters: + // - pUIContextData: + // Any memory returned by configuration APIs. + // + VOID WINAPI EapPeerFreeMemory(_In_ void* pUIContextData); + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAP_PEER_METHOD_APIS_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapmethodtypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapmethodtypes.h new file mode 100644 index 0000000000000000000000000000000000000000..710f1e8684a61116ff30099ba28ef9f2a3f02e62 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eapmethodtypes.h @@ -0,0 +1,67 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Declares datastructures that executes the peer eap state machine. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAPMETHODAPIS_H +#define EAPMETHODAPIS_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// structure that represents EAP packet on the wire +typedef struct tagEapPacket +{ + BYTE Code; + BYTE Id; + BYTE Length[2]; + BYTE Data[1]; + // Any additional data following the first byte. The length of + // the data can be deduced by the length fields. +} EapPacket; + +// +// EAP packet codes from EAP spec. +// +typedef +#ifdef __midl + [v1_enum] +#endif + +// possible values for 'code' in EAPPacket +enum tagEapCode +{ + EapCodeMinimum = 1, + EapCodeRequest = 1, + EapCodeResponse, + EapCodeSuccess, + EapCodeFailure, + EapCodeMaximum = EapCodeFailure +} EapCode; + +// This is a handle to an eap session owned by the individual eap methods. +typedef VOID* EAP_SESSION_HANDLE; + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAPMETHODAPIS_H + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/eappapis.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eappapis.h new file mode 100644 index 0000000000000000000000000000000000000000..b7cb176d00bf629d320e21258773f1f8360d851b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eappapis.h @@ -0,0 +1,393 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Declares apis to invoke peer apis on eaphost. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAPPAPIS_H +#define EAPPAPIS_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" +{ +#endif + + typedef void(CALLBACK* NotificationHandler)(_In_ GUID connectionId, _In_ void* pContextData); + + // General note about the memory allocated for the _Out_ parameters: + // + // If memory is dynamically allocated for the _Out_ parameters, the memory + // will be available until the caller makes the next call. If the caller + // want to keep the content cross multiple calls, the caller must keep its + // own copy. + // To have all the allocated memory (allocated by this DLL) reclaimed, + // the caller finally must call either EapHostPeerEndSession() or + // EapHostPeerClearConnection(). + // + // EAP_ERROR** _Out_ parameter is an exception. The caller must call + // EapHostPeerFreeEapError() to free the memory. + // + // + // Thread safety: + // EapHostPeerInitialize() and EapHostPeerUninitialize() are always thread + // safe. + // + // EapHostPeerFreeEapError() is not thread safe. There should be only one + // thread being called to free the same EAP_ERROR*. And obviously it should + // not be called more than once for the same EAP_ERROR*. + // + // For all the other functions, there should only be one thread calling them + // for the same session. However, it is safe for multiple threads to call them + // for different sessions. + // + // If the functions succeed, they return ERROR_SUCCESS. Otherwise, it is + // considered failure. + // + // If an error code is returned, the out parameter ppEapError will contain + // related error information. The caller is expected to look into it to + // find out the error informations. + // However, there are some situation that it may not be possible to fill + // out information for ppEapError. For example, in out of memory situation, + // the method implementation may not be able to allocate memory for + // ppEapError as well. If for any reason it is not possible to fill ppEapError, + // *ppEapError should be set to NULL. + + // Must call this before it starts to call any other fucntion. + // If this function fails, no other EapHostPeer... functions can be called. + // + // Inside this function, it calls CoInitializeEx(NULL, COINIT_MULTITHREADED) + // So the client should not initialize a conflicting COM environment. + // If the client really needs a different COM environment, it should use the + // COM APIs directly instead of using this C style APIs. + DWORD APIENTRY EapHostPeerInitialize(); + + // Must call this after it is done calling any other EapHostPeer... + // functions. + // Inside this function it calls CoUninitialize(). + void APIENTRY EapHostPeerUninitialize(); + + // If this function succeeds, no matter the calls to other functions + // succeed or fail, the caller MUST call EapHostPeerEndSession() to end + // the authentication session. if EapHostPeerBeginSession() provides a + // valid GUID to register the connectionand, then EapHostPeerClearConnection() + // must be called at the very end (i.e. there will be no more authentication + // on this GUID) to remove the connection. The connection GUID + // is valid cross multiple authentications. + // + // However, if this function fails, the caller can not proceed with + // other calls. It should NOT call EapHostPeerEndSession() or + // EapHostPeerClearConnection() if this function fails. + // + // For the same pConnectionId, EapHostPeerEndSession() must be called + // before EapHostPeerBeginSession() can be called again. + // + // Parameters: + // - dwFlags: + // EAP_FLAG_xxx defined in eaptypes.w + // + // - eapType: + // the EAP method type to be used for the authentication. + // + // - pAttributeArray: + // attributes passed to the method. + // + // - hTokenImpersonateUser: + // Impersonation token for the user to be authenticated. + // + // - dwSizeofConnectionData: + // size of the buffer (pConnectionData) in bytes + // + // - pConnectionData: + // See the comment for pConnectionData for EapPeerGetIdentity() + // + // - dwSizeofUserData: + // size of the buffer (pUserData) in bytes + // + // - pUserData: + // user data returned from EapPeerGetIdentity() + // + // - dwMaxSendPacketSize: + // maximum packet size that the method can send. If the method needs to + // send a message larger than this size, the method has to handle fragmentation + // and resembling. + // + // - pConnectionId: + // It can be NULL. Otherwise, it should point to a valid GUID which respresent + // the connection. When re-authentication is needed due to system health change, + // the callback function func will be called and this GUID pointer will + // be passed as an _In_ parameter to indicate which connection the callback + // is for. + // + // - func: + // callback function pointer used for re-authentication. This function + // will be called when system health changes and a re-authentication is needed. + // if the function handler is NULL, pContextData will be ignored, + // and it means the caller is not interested in system health change + // notification + // + // - pSessionId: + // Return session ID in it. This is used to identify the authentication session. + DWORD APIENTRY EapHostPeerBeginSession( + _In_ DWORD dwFlags, + _In_ EAP_METHOD_TYPE eapType, + _In_ const EapAttributes* const pAttributeArray, + _In_ HANDLE hTokenImpersonateUser, + _In_ DWORD dwSizeofConnectionData, + _In_reads_(dwSizeofConnectionData) const BYTE* const pConnectionData, + _In_ DWORD dwSizeofUserData, + _In_reads_(dwSizeofUserData) const BYTE* const pUserData, + _In_ DWORD dwMaxSendPacketSize, + // If the supplicant is intrested in re-auth caused by NAP health change, + // it should provide a unique GUID. + // When this function is called by PEAP inner method, it will be NULL. + // + // When pConnectionId is NULL, func and pContextData will be ignored. + _In_opt_ const GUID* const pConnectionId, + // if the function handler is NULL, pContextData will be ignored, + // and it means the caller is not interested in SoH change notification + // from EapQec. + _In_opt_ NotificationHandler func, + // a pointer to some data that the supplicant want to associate with + // the connection when NotificationHandler call back is called. + // When NotificationHandler is called, it will be called as: + // func(*pCOnnectionId, pContextData). + _In_opt_ void* pContextData, + _Out_ EAP_SESSIONID* pSessionId, + _Outptr_ EAP_ERROR** ppEapError); + + // Supplicant will pass the packet to EAPHost for processing. + // Parameters: + // - sessionHandle: + // the value returned through *pSessionId from EapHostPeerBeginSession() + // + // - cbReceivePacket: + // buffer size of (pReceivePacket) in bytes + // + // - pReceivePacket: + // pointer to received packet + // + // - pEapOutput: + // It will tell the supplicant what's the next EAPHost API that it should call. + DWORD APIENTRY EapHostPeerProcessReceivedPacket( + _In_ EAP_SESSIONID sessionHandle, + _In_ DWORD cbReceivePacket, + _In_reads_(cbReceivePacket) const BYTE* const pReceivePacket, + _Out_ EapHostPeerResponseAction* pEapOutput, + _Outptr_ EAP_ERROR** ppEapError); + + // This function returns the packet to be sent. Supplicant should send the + // returned packet to server. + // + // Parameters: + // - sessionHandle: + // the value returned through *pSessionId from EapHostPeerBeginSession() + // + // - pcbSendPacket: + // Upon return, *pcbSendPacket is the sizeof the actual content in pSendPacket + // + // - ppSendPacket: + // pointer to a buffer that contains the packet to send upon return + DWORD APIENTRY EapHostPeerGetSendPacket( + _In_ EAP_SESSIONID sessionHandle, + _Out_ DWORD* pcbSendPacket, + _Outptr_result_buffer_(*pcbSendPacket) BYTE** ppSendPacket, + _Outptr_ EAP_ERROR** ppEapError); + + // Supplicant calls this function to retrieve authentication result. + // Parameters: + // - sessionHandle: + // the value returned through *pSessionId from EapHostPeerBeginSession() + // + // - reason: + // One of the reason code defined in eaphostPeerTypes.h + // + // - ppResult: + // EAPHost will fill this struct with related information as defined + // by EapHostPeerMethodResult + DWORD APIENTRY EapHostPeerGetResult( + _In_ EAP_SESSIONID sessionHandle, + _In_ EapHostPeerMethodResultReason reason, + _Out_ EapHostPeerMethodResult* ppResult, + _Outptr_ EAP_ERROR** ppEapError); + + // This will get called if UI should be raised during authentication session. + // This function will always be followed by EapHostPeerInvokeInteractiveUI() + // and then followed by EapHostPeerSetUIContext() + // Parameters: + // - sessionHandle: + // the value returned through *pSessionId from EapHostPeerBeginSession() + // + // - pdwSizeOfUIContextData: + // *pdwSizeOfUIContextData is the size of *ppUIContextData in bytes. + // + // - ppUIContextData: + // It will be passed to EapHostPeerInvokeInteractiveUI() as _In_ parameter + // pUIContextData + DWORD APIENTRY EapHostPeerGetUIContext( + _In_ EAP_SESSIONID sessionHandle, + _Out_ DWORD* pdwSizeOfUIContextData, + _Outptr_result_buffer_(*pdwSizeOfUIContextData) BYTE** ppUIContextData, + _Outptr_ EAP_ERROR** ppEapError); + + // It will be called after UI has been raised. Refer to EapHostPeerGetUIContext() + // for more information. + // + // Parameters: + // - sessionHandle: + // the value returned through *pSessionId from EapHostPeerBeginSession() + // + // - dwSizeOfUIContextData: + // size of pUIContextData in bytes. + // + // - pUIContextData: + // This is the data returned from EapHostPeerInvokeInteractiveUI() _Out_ + // parameter + // *ppDataFromInteractiveUI + // + // - pEapOutput: + // It will tell the supplicant what's the next EAPHost API that it should call. + DWORD APIENTRY EapHostPeerSetUIContext( + _In_ EAP_SESSIONID sessionHandle, + _In_ DWORD dwSizeOfUIContextData, + _In_reads_(dwSizeOfUIContextData) const BYTE* const pUIContextData, + _Out_ EapHostPeerResponseAction* pEapOutput, + _Outptr_ EAP_ERROR** ppEapError); + + // Return EAP attributes to supplicant. Supplicant should call + // EapHostPeerSetResponseAttributes() after it calls this function and finishes + // processing of the EAP attributes. + // + // Parameters: + // - sessionHandle: + // the value returned through *pSessionId from EapHostPeerBeginSession() + // + // - pAttributes: + // EAP attributes returned to supplicant. + DWORD APIENTRY EapHostPeerGetResponseAttributes(_In_ EAP_SESSIONID sessionHandle, _Out_ EapAttributes* pAttribs, _Outptr_ EAP_ERROR** ppEapError); + + // See EapHostPeerGetResponseAttributes() for when this function will be called. + // Even if supplicant doesn't care about or doesn't understand the attributes + // returned from EapHostPeerGetResponseAttributes(), it should still call + // this function and pass a valid EapAttributes* which contains 0 EapAttribute + // + // Parameters: + // - sessionHandle: + // the value returned through *pSessionId from EapHostPeerBeginSession() + // + // - pAttribs: + // EAP attributes that the supplicant passes to EAPHost + DWORD APIENTRY EapHostPeerSetResponseAttributes( + _In_ EAP_SESSIONID sessionHandle, + _In_ const EapAttributes* const pAttribs, + _Out_ EapHostPeerResponseAction* pEapOutput, + _Outptr_ EAP_ERROR** ppEapError); + + // Supplicant calls it to retrieve authentication status. + // + // Parameters: + // - sessionHandle: + // the value returned through *pSessionId from EapHostPeerBeginSession() + // + // - authParam: + // one of the EapHostPeerAuthParams values defined in Eaphostpeertypes.h + // + // - pcbAuthData: + // *pcbAuthData is the size of *ppAuthData in bytes + // + // - ppAuthData: + // contains the returned authentication data. Interpretation of the data + // depends on the "authParam" passed in + DWORD APIENTRY EapHostPeerGetAuthStatus( + _In_ EAP_SESSIONID sessionHandle, + _In_ EapHostPeerAuthParams authParam, + _Out_ DWORD* pcbAuthData, + _Outptr_result_buffer_(*pcbAuthData) BYTE** ppAuthData, + _Outptr_ EAP_ERROR** ppEapError); + + // Authentication has finished so clear up the data stored for this session. + // After this call, the session will no longer be valid. + // + // Parameters: + // - sessionHandle: + // the value returned through *pSessionId from EapHostPeerBeginSession() + DWORD APIENTRY EapHostPeerEndSession(_In_ EAP_SESSIONID sessionHandle, _Outptr_ EAP_ERROR** ppEapError); + + DWORD APIENTRY EapHostPeerGetDataToUnplumbCredentials( + _Out_ GUID* pConnectionIdThatLastSavedCreds, + _Out_ __int3264* phCredentialImpersonationToken, + _In_ EAP_SESSIONID sessionHandle, + _Outptr_ EAP_ERROR** ppEapError, + _Out_ BOOL* fSaveToCredMan); + + // Clear up the connection. After this call, all states associated with this + // pConnectionId will be deleted, and no re-authentication will be triggered + // for connection associated with this GUID. + // + // Parameters: + // - pConnectionId: + // the same connection GUID passed into EapHostPeerBeginSession(). If + // a NULL is passed to EapHostPeerBeginSession() as the connection id, + // then there is no need to call this API. + DWORD APIENTRY EapHostPeerClearConnection(_In_ GUID* pConnectionId, _Outptr_ EAP_ERROR** ppEapError); + + // If any of the previous function is called, and an EAP_ERROR is returned, + // this function must be called to free the memory. + void APIENTRY EapHostPeerFreeEapError(_In_ EAP_ERROR* pEapError); + + // EAPHost will call this function, and it would return user data and user identity. + + DWORD APIENTRY EapHostPeerGetIdentity( + // API's version number for ease of interoperability. It must be 0. + _In_ DWORD dwVersion, + // EAP_FLAG_xxx defined in eaptypes.w + _In_ DWORD dwFlags, + // Eap method type + _In_ EAP_METHOD_TYPE eapMethodType, + // size of the buffer (pConnectionData) in bytes + _In_ DWORD dwSizeofConnectionData, + // configuration data that is used for the EAP method + _In_reads_(dwSizeofConnectionData) const BYTE* pConnectionData, + // size of the ubuffer pUserData + _In_ DWORD dwSizeofUserData, + // user credential information pertinent to this auth + _In_reads_opt_(dwSizeofUserData) const BYTE* pUserData, + // impersonation token for logged on user, to obtain user-related information + _In_ HANDLE hTokenImpersonateUser, + // should return true if the user identity and user data blob can not be returned + // successfully and in needs to be collected through UI + _Out_ BOOL* pfInvokeUI, + // size of the buffer pUserDataOut. caller should free this using EapHostPeerFreeRuntimeMemory + _Out_ DWORD* pdwSizeOfUserDataOut, + // user data information returned by method. + _Outptr_result_buffer_(*pdwSizeOfUserDataOut) BYTE** ppUserDataOut, + // identity returned by method. caller should free this using EapHostPeerFreeRuntimeMemory + _Outptr_ LPWSTR* ppwszIdentity, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError + // using EapHostPeerFreeErrorMemory + _Outptr_ EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + _Inout_ BYTE** ppvReserved); + + DWORD APIENTRY EapHostPeerGetEncryptedPassword( + _In_ DWORD dwSizeofPassword, _In_reads_bytes_(dwSizeofPassword) LPWSTR szPassword, _Outptr_ LPWSTR* ppszEncPassword); + + // In case of GetInentity returned memory needs to be released using this API + void APIENTRY EapHostPeerFreeRuntimeMemory(_In_ BYTE* pData); + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAPPAPIS_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/eaptypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eaptypes.h new file mode 100644 index 0000000000000000000000000000000000000000..268b6c131c877cb38bcdea4ea3bdfe34cf6c9972 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eaptypes.h @@ -0,0 +1,770 @@ +//////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. +// +// SYNOPSIS +// +// IDL source for interaction with EAPHost supplicants. +// +//////////////////////////////////////////////////////////// + +#ifndef EAPTYPES_H +#define EAPTYPES_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include // Used by EAP_ERROR structure. + + +// Properties that EAP Methods support +#define eapPropCipherSuiteNegotiation 0x00000001 +#define eapPropMutualAuth 0x00000002 +#define eapPropIntegrity 0x00000004 +#define eapPropReplayProtection 0x00000008 +#define eapPropConfidentiality 0x00000010 +#define eapPropKeyDerivation 0x00000020 +#define eapPropKeyStrength64 0x00000040 +#define eapPropKeyStrength128 0x00000080 +#define eapPropKeyStrength256 0x00000100 +#define eapPropKeyStrength512 0x00000200 +#define eapPropKeyStrength1024 0x00000400 +#define eapPropDictionaryAttackResistance 0x00000800 +#define eapPropFastReconnect 0x00001000 +#define eapPropCryptoBinding 0x00002000 +#define eapPropSessionIndependence 0x00004000 +#define eapPropFragmentation 0x00008000 +#define eapPropChannelBinding 0x00010000 +#define eapPropNap 0x00020000 +#define eapPropStandalone 0x00040000 +#define eapPropMppeEncryption 0x00080000 +#define eapPropTunnelMethod 0x00100000 +#define eapPropSupportsConfig 0x00200000 +#define eapPropCertifiedMethod 0x00400000 +#define eapPropHiddenMethod 0x00800000 +#define eapPropMachineAuth 0x01000000 +#define eapPropUserAuth 0x02000000 +#define eapPropIdentityPrivacy 0x04000000 +#define eapPropMethodChaining 0x08000000 +#define eapPropSharedStateEquivalence 0x10000000 +#define eapPropReserved 0x80000000 + +// Registry NameValue that stores Properties supported by EAP Method +#define EAP_VALUENAME_PROPERTIES L"Properties" + +typedef DWORD EAP_SESSIONID; + +typedef struct _EAP_TYPE +{ + BYTE type; + DWORD dwVendorId; + DWORD dwVendorType; +} EAP_TYPE; + + +// definition of EAP_METHOD_TYPE used for describing an EAP method +typedef struct _EAP_METHOD_TYPE +{ + EAP_TYPE eapType; + DWORD dwAuthorId; +} EAP_METHOD_TYPE; + + +// Information pertaining to each EAP method is populated in this structure format +typedef struct _EAP_METHOD_INFO +{ + EAP_METHOD_TYPE eaptype; + LPWSTR pwszAuthorName; + LPWSTR pwszFriendlyName; + DWORD eapProperties; + struct _EAP_METHOD_INFO* pInnerMethodInfo; +} EAP_METHOD_INFO; + + +// EAPHost populates this array with the information for all the eap-methods installed +// on machine and passes it to a supplicant +struct _EAP_METHOD_INFO_ARRAY_EX; + + +typedef struct _EAP_METHOD_INFO_EX +{ + EAP_METHOD_TYPE eaptype; + LPWSTR pwszAuthorName; + LPWSTR pwszFriendlyName; + DWORD eapProperties; + struct _EAP_METHOD_INFO_ARRAY_EX* pInnerMethodInfoArray; +} EAP_METHOD_INFO_EX; + + +typedef struct _EAP_METHOD_INFO_ARRAY +{ + DWORD dwNumberOfMethods; + EAP_METHOD_INFO* pEapMethods; +} EAP_METHOD_INFO_ARRAY; + +// EAPHost populates this error structs with appropriate information and passes it to +// supplicant, which can use this information for error reporting and troubleshooting +typedef struct _EAP_METHOD_INFO_ARRAY_EX +{ + DWORD dwNumberOfMethods; + EAP_METHOD_INFO_EX* pEapMethods; +} EAP_METHOD_INFO_ARRAY_EX; + +typedef struct _EAP_ERROR +{ + DWORD dwWinError; + EAP_METHOD_TYPE type; + DWORD dwReasonCode; + + GUID rootCauseGuid; + GUID repairGuid; + GUID helpLinkGuid; + + LPWSTR pRootCauseString; + LPWSTR pRepairString; +} EAP_ERROR; + + +EXTERN_C const CLSID GUID_EapHost_Default; + +EXTERN_C const CLSID GUID_EapHost_Cause_MethodDLLNotFound; +EXTERN_C const CLSID GUID_EapHost_Cause_EapNegotiationFailed; //*!* +EXTERN_C const CLSID GUID_EapHost_Cause_ThirdPartyMethod_Host_Reset; +EXTERN_C const CLSID GUID_EapHost_Cause_XmlMalformed; +EXTERN_C const CLSID GUID_EapHost_Cause_MethodDoesNotSupportOperation; +EXTERN_C const CLSID GUID_EapHost_Cause_EapQecInaccessible; //*!* + +EXTERN_C const CLSID GUID_EapHost_Cause_Generic_AuthFailure; +EXTERN_C const CLSID GUID_EapHost_Cause_IdentityUnknown; +EXTERN_C const CLSID GUID_EapHost_Cause_SimNotValid; +EXTERN_C const CLSID GUID_EapHost_Cause_CertStoreInaccessible; + +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertExpired; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertInvalid; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertNotFound; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertOtherError; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertRejected; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertRevoked; +EXTERN_C const CLSID GUID_EapHost_Cause_User_Account_OtherProblem; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CredsRejected; + +EXTERN_C const CLSID GUID_EapHost_Cause_Server_CertExpired; +EXTERN_C const CLSID GUID_EapHost_Cause_Server_CertInvalid; +EXTERN_C const CLSID GUID_EapHost_Cause_Server_CertNotFound; +EXTERN_C const CLSID GUID_EapHost_Cause_Server_CertOtherError; +EXTERN_C const CLSID GUID_EapHost_Cause_Server_CertRevoked; + +EXTERN_C const CLSID GUID_EapHost_Cause_User_Root_CertExpired; +EXTERN_C const CLSID GUID_EapHost_Cause_User_Root_CertInvalid; +EXTERN_C const CLSID GUID_EapHost_Cause_User_Root_CertNotFound; + +EXTERN_C const CLSID GUID_EapHost_Cause_Server_Root_CertNotFound; +EXTERN_C const CLSID GUID_EapHost_Cause_Server_Root_CertNameRequired; +EXTERN_C const CLSID GUID_EapHost_Cause_No_SmartCardReader_Found; + +EXTERN_C const CLSID GUID_EapHost_Repair_ContactSysadmin; +EXTERN_C const CLSID GUID_EapHost_Repair_Retry_Authentication; + +EXTERN_C const CLSID GUID_EapHost_Repair_User_AuthFailure; +EXTERN_C const CLSID GUID_EapHost_Repair_User_GetNewCert; +EXTERN_C const CLSID GUID_EapHost_Repair_User_SelectValidCert; + +EXTERN_C const CLSID GUID_EapHost_Repair_Server_ClientSelectServerCert; + +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_AuthFailure; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_IdentityUnknown; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_NegotiationFailed; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_MethodNotFound; +EXTERN_C const CLSID GUID_EapHost_Repair_RestartNap; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_CertStoreInaccessible; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_InvalidUserAccount; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_InvalidUserCert; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_RootCertInvalid; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_RootCertNotFound; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_RootExpired; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_CertNameAbsent; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_NoSmartCardReader; +EXTERN_C const CLSID GUID_EapHost_Repair_Method_Not_Support_Sso; +EXTERN_C const CLSID GUID_EapHost_Repair_No_ValidSim_Found; + +EXTERN_C const CLSID GUID_EapHost_Help_ObtainingCerts; +EXTERN_C const CLSID GUID_EapHost_Help_Troubleshooting; +EXTERN_C const CLSID GUID_EapHost_Cause_Method_Config_Does_Not_Support_Sso; + +//-------------------------- + + +typedef +#ifdef __midl + [v1_enum] +#endif + +// Attributes that EAP Methods support +enum _EAP_ATTRIBUTE_TYPE +{ + eatMinimum = 0, // Undefined + eatUserName, // Value field is a Pointer + eatUserPassword, // Value field is a Pointer + eatMD5CHAPPassword, // Value field is a Pointer + eatNASIPAddress, // Value field is a 32 bit integral value + eatNASPort, // Value field is a 32 bit integral value + eatServiceType, // Value field is a 32 bit integral value + eatFramedProtocol, // Value field is a 32 bit integral value + eatFramedIPAddress, // Value field is a 32 bit integral value + eatFramedIPNetmask, // Value field is a 32 bit integral value + eatFramedRouting = 10, // Value field is a 32 bit integral value + eatFilterId, // Value field is a Pointer + eatFramedMTU, // Value field is a 32 bit integral value + eatFramedCompression, // Value field is a 32 bit integral value + eatLoginIPHost, // Value field is a 32 bit integral value + eatLoginService, // Value field is a 32 bit integral value + eatLoginTCPPort, // Value field is a 32 bit integral value + eatUnassigned17, // Undefined + eatReplyMessage, // Value field is a Pointer + eatCallbackNumber, // Value field is a Pointer + eatCallbackId =20, // Value field is a Pointer + eatUnassigned21, // Undefined + eatFramedRoute, // Value field is a Pointer + eatFramedIPXNetwork, // Value field is a 32 bit integral value + eatState, // Value field is a Pointer + eatClass, // Value field is a Pointer + eatVendorSpecific, // Value field is a Pointer + eatSessionTimeout, // Value field is a 32 bit integral value + eatIdleTimeout, // Value field is a 32 bit integral value + eatTerminationAction, // Value field is a 32 bit integral value + eatCalledStationId = 30, // Value field is a Pointer + eatCallingStationId, // Value field is a Pointer + eatNASIdentifier, // Value field is a Pointer + eatProxyState, // Value field is a Pointer + eatLoginLATService, // Value field is a Pointer + eatLoginLATNode, // Value field is a Pointer + eatLoginLATGroup, // Value field is a Pointer + eatFramedAppleTalkLink, // Value field is a 32 bit integral value + eatFramedAppleTalkNetwork, // Value field is a 32 bit integral value + eatFramedAppleTalkZone, // Value field is a Pointer + eatAcctStatusType = 40, // Value field is a 32 bit integral value + eatAcctDelayTime, // Value field is a 32 bit integral value + eatAcctInputOctets, // Value field is a 32 bit integral value + eatAcctOutputOctets, // Value field is a 32 bit integral value + eatAcctSessionId, // Value field is a Pointer + eatAcctAuthentic, // Value field is a 32 bit integral value + eatAcctSessionTime, // Value field is a 32 bit integral value + eatAcctInputPackets, // Value field is a 32 bit integral value + eatAcctOutputPackets, // Value field is a 32 bit integral value + eatAcctTerminateCause, // Value field is a 32 bit integral value + eatAcctMultiSessionId = 50, // Value field is a Pointer + eatAcctLinkCount, // Value field is a 32 bit integral value + eatAcctEventTimeStamp = 55, // Value field is a 32 bit integral value + eatMD5CHAPChallenge = 60, // Value field is a Pointer + eatNASPortType, // Value field is a 32 bit integral value + eatPortLimit, // Value field is a 32 bit integral value + eatLoginLATPort, // Value field is a Pointer + eatTunnelType, // Value field is a 32 bit integral value + eatTunnelMediumType, // Value field is a 32 bit integral value + eatTunnelClientEndpoint, // Value field is a Pointer + eatTunnelServerEndpoint, // Value field is a Pointer + eatARAPPassword = 70, // Value field is a Pointer + eatARAPFeatures, // Value field is a Pointer + eatARAPZoneAccess, // Value field is a 32 bit integral value + eatARAPSecurity, // Value field is a 32 bit integral value + eatARAPSecurityData, // Value field is a Pointer + eatPasswordRetry, // Value field is a 32 bit integral value + eatPrompt, // Value field is a 32 bit integral value + eatConnectInfo, // Value field is a Pointer + eatConfigurationToken, // Value field is a Pointer + eatEAPMessage, // Value field is a Pointer + eatSignature = 80, // Value field is a Pointer + eatARAPChallengeResponse = 84, // Value field is a Pointer + eatAcctInterimInterval = 85, // Value field is a 32 bit integral value + eatNASIPv6Address = 95, // Value field is a Pointer + eatFramedInterfaceId, // Value field is a Pointer + eatFramedIPv6Prefix, // Value field is a Pointer + eatLoginIPv6Host, // Value field is a Pointer + eatFramedIPv6Route, // Value field is a Pointer + eatFramedIPv6Pool, // Value field is a Pointer + eatARAPGuestLogon = 8096, // Value field is a 32 bit integral value + eatCertificateOID, // Value field is a Pointer + eatEAPConfiguration, // Value field is a Pointer + eatPEAPEmbeddedEAPTypeId, // Value field is a 32 bit integral value + eatPEAPFastRoamedSession = 8100, // Value field is a 32 bit integral value + eatFastRoamedSession = 8100, // Value field is a 32 bit integral value + eatEAPTLV = 8102, // Value field is a Pointer + eatCredentialsChanged, // Value field is a Integer with boolean + // semantics + eatInnerEapMethodType, // Value field is a pointer + // EapMethodType of the inner method in + // case of Tunnelled method + eatClearTextPassword = 8107, // Value field is a pointer + // Clear text password that can be used + // by certain password based eap methods + // to authenticate a user. + eatQuarantineSoH = 8150, // Value field is a pointer + eatCertificateThumbprint = 8250, // Value field is a pointer + eatPeerId = 9000, // Value field is a pointer + eatServerId, // Value field is a pointer + eatMethodId, // Value field is a pointer + eatEMSK, // Value field is a pointer + eatSessionId, // Value field is a pointer + eatReserved = 0xFFFFFFFF // Undefined +} EAP_ATTRIBUTE_TYPE, EapAttributeType; + + +// format for carrying EAP attribute TLV (type, length and value) +typedef struct _EAP_ATTRIBUTE +{ + EAP_ATTRIBUTE_TYPE eaType; + DWORD dwLength; +#ifdef __midl + [size_is(dwLength)] BYTE* pValue; +#else + BYTE *pValue; +#endif +} EAP_ATTRIBUTE, EapAttribute; + + +// List of EAP-attributes +typedef struct _EAP_ATTRIBUTES +{ + DWORD dwNumberOfAttributes; +#ifdef __midl + [size_is(dwNumberOfAttributes)] EAP_ATTRIBUTE* pAttribs; +#else + EAP_ATTRIBUTE *pAttribs; +#endif +} EAP_ATTRIBUTES, EapAttributes; + + +// No UI should be displayed +#define EAP_FLAG_Reserved1 0x00000001 +#define EAP_FLAG_NON_INTERACTIVE 0x00000002 + +// The user data was obtained from Winlogon +#define EAP_FLAG_LOGON 0x00000004 + +// Show the Credentails UI before authenticating even if cached creds are present +#define EAP_FLAG_PREVIEW 0x00000008 + +#define EAP_FLAG_Reserved2 0x00000010 + +// Authentication is for machine, i.e. not for user. Not setting this flag means +// it is user authentication. +#define EAP_FLAG_MACHINE_AUTH 0x00000020 + +// Request to provide guest access +#define EAP_FLAG_GUEST_ACCESS 0x00000040 + +#define EAP_FLAG_Reserved3 0x00000080 + +#define EAP_FLAG_Reserved4 0x00000100 + +// Indicates this is the first call after m/c resumed from hibernation. +#define EAP_FLAG_RESUME_FROM_HIBERNATE 0x00000200 + +#define EAP_FLAG_Reserved5 0x00000400 + +#define EAP_FLAG_Reserved6 0x00000800 + +// Should have this or make it reserved? +#define EAP_FLAG_FULL_AUTH 0x00001000 + +/// New EapHost Flags + +// Prefer Credentails passed in BeginSession instead of other form of +// credentials, even if config says use certain way of cred retrieval. If this fails, fallback to +// Method specific credentail retrieval +#define EAP_FLAG_PREFER_ALT_CREDENTIALS 0x00002000 + +#define EAP_FLAG_Reserved7 0x00004000 + +// To inform the cause of reauth is a NAP callback +#define EAP_PEER_FLAG_HEALTH_STATE_CHANGE 0x00008000 + +// Continue authentication with information available. If can not proceed, fail +// the authentication +#define EAP_FLAG_SUPRESS_UI 0x00010000 + +// Pre logon scenario like PLAP +#define EAP_FLAG_PRE_LOGON 0x00020000 + +// User Authentication. For legacy Methods not setting EAP_FLAG_MACHINE_AUTH +// also means user authentication. +#define EAP_FLAG_USER_AUTH 0x00040000 + +// Config can be viewed but not updated +#define EAP_FLAG_CONFG_READONLY 0x00080000 + +#define EAP_FLAG_Reserved8 0x00100000 + +#define EAP_FLAG_Reserved9 0x00400000 + +#define EAP_FLAG_VPN 0x00800000 + +#define EAP_FLAG_ONLY_EAP_TLS 0x01000000 + +#define EAP_FLAG_SERVER_VALIDATION_REQUIRED 0x02000000 + +// the various states of the input fields +#define EAP_CONFIG_INPUT_FIELD_PROPS_DEFAULT 0X00000000 +#define EAP_CONFIG_INPUT_FIELD_PROPS_NON_DISPLAYABLE 0X00000001 + +// This specifies that supplicant should cache this field data +#define EAP_CONFIG_INPUT_FIELD_PROPS_NON_PERSIST 0X00000002 + + +// default property value for entries field to be shown in UI +#define EAP_UI_INPUT_FIELD_PROPS_DEFAULT EAP_CONFIG_INPUT_FIELD_PROPS_DEFAULT +// To qualify certain entry data on UI is non-displayable (e.g. password) +#define EAP_UI_INPUT_FIELD_PROPS_NON_DISPLAYABLE EAP_CONFIG_INPUT_FIELD_PROPS_NON_DISPLAYABLE +// This specifies that supplicant should cache this field data +#define EAP_UI_INPUT_FIELD_PROPS_NON_PERSIST 0X00000002 +// This specifies that following field is read only (non-editable) +#define EAP_UI_INPUT_FIELD_PROPS_READ_ONLY 0X00000004 + + +// the types of fields that eap can request to show +typedef enum _EAP_CONFIG_INPUT_FIELD_TYPE { + EapConfigInputUsername, + EapConfigInputPassword, + EapConfigInputNetworkUsername, + EapConfigInputNetworkPassword, + EapConfigInputPin, + EapConfigInputPSK, + EapConfigInputEdit, + EapConfigSmartCardUsername, + EapConfigSmartCardError +} EAP_CONFIG_INPUT_FIELD_TYPE, *PEAP_CONFIG_INPUT_FIELD_TYPE; + +#define EAP_CREDENTIAL_VERSION 1 +#define EAP_INTERACTIVE_UI_DATA_VERSION 1 +#define EAPHOST_PEER_API_VERSION 1 +#define EAPHOST_METHOD_API_VERSION 1 +#define MAX_EAP_CONFIG_INPUT_FIELD_LENGTH 256 +#define MAX_EAP_CONFIG_INPUT_FIELD_VALUE_LENGTH 1024 + + +// structure for carrying EAP input field +typedef struct _EAP_CONFIG_INPUT_FIELD_DATA { + DWORD dwSize; + EAP_CONFIG_INPUT_FIELD_TYPE Type; + DWORD dwFlagProps; + LPWSTR pwszLabel; + LPWSTR pwszData; + DWORD dwMinDataLength; + DWORD dwMaxDataLength; +} EAP_CONFIG_INPUT_FIELD_DATA, *PEAP_CONFIG_INPUT_FIELD_DATA; + + +// List of EAP input fields +typedef struct _EAP_CONFIG_INPUT_FIELD_ARRAY { + DWORD dwVersion; // used for versioning + DWORD dwNumberOfFields; +#ifdef __midl + [size_is(dwNumberOfFields)] EAP_CONFIG_INPUT_FIELD_DATA* pFields; +#else + EAP_CONFIG_INPUT_FIELD_DATA* pFields; +#endif +} EAP_CONFIG_INPUT_FIELD_ARRAY, *PEAP_CONFIG_INPUT_FIELD_ARRAY; + + +// provides type of data, EAP_INTERACTIVE_UI_DATA can carry +typedef enum _EAP_INTERACTIVE_UI_DATA_TYPE { + EapCredReq, // Credential request during retry + EapCredResp, // Credential response during retry + EapCredExpiryReq, // Credential request during cred expiry + EapCredExpiryResp, // Credential response during cred expiry + EapCredLogonReq, // Initial credential request during auth + EapCredLogonResp, // Initial credential response during auth +} EAP_INTERACTIVE_UI_DATA_TYPE; + + +// following determine type of data blob that can be pointed by +// pbUiData member of EAP_INTERACTIVE_UI_DATA +typedef EAP_CONFIG_INPUT_FIELD_ARRAY EAP_CRED_REQ; +typedef EAP_CONFIG_INPUT_FIELD_ARRAY EAP_CRED_RESP; +typedef EAP_CONFIG_INPUT_FIELD_ARRAY EAP_CRED_LOGON_REQ; +typedef EAP_CONFIG_INPUT_FIELD_ARRAY EAP_CRED_LOGON_RESP; + +// pNewCreds can be NULL in case of EAP_CRED_EXPIRY_REQ +// in case of REQ, pNewCreds can be empty (will not be looked at) +typedef struct _EAP_CRED_EXPIRY_REQ { + EAP_CONFIG_INPUT_FIELD_ARRAY curCreds; + EAP_CONFIG_INPUT_FIELD_ARRAY newCreds; +} EAP_CRED_EXPIRY_REQ, EAP_CRED_EXPIRY_RESP; + +#ifdef __midl + typedef [switch_type(EAP_INTERACTIVE_UI_DATA_TYPE)] + union { + [case(EapCredReq, EapCredResp)] EAP_CRED_REQ* credData; + [case(EapCredExpiryReq,EapCredExpiryResp)] EAP_CRED_EXPIRY_REQ* credExpiryData; + [case(EapCredLogonReq,EapCredLogonResp)] EAP_CRED_LOGON_REQ* credLogonData; + [default] ; + } EAP_UI_DATA_FORMAT; +#else + typedef union { + EAP_CRED_REQ* credData; + EAP_CRED_EXPIRY_REQ* credExpiryData; + EAP_CRED_LOGON_REQ* credLogonData; + } EAP_UI_DATA_FORMAT; +#endif + + +// Data carried from EAP-method to supplicant for interactive UI to raised +typedef struct _EAP_INTERACTIVE_UI_DATA { + //specifies version of data structure. It must be 0. + DWORD dwVersion; + //specifies size of the entire structure. + DWORD dwSize; + // this determines what kind of interactive data is passed. + EAP_INTERACTIVE_UI_DATA_TYPE dwDataType; + // specifies size of the data pointed by pbUiByte. + DWORD cbUiData; + // pointer to a data blob of a type determined by dwDataType above. + // This can be of type EAP_CRED_REQ/EAP_CRED_RESP or + // EAP_CRED_EXPIRY_REQ/EAP_CRED_EXPIRY_RESP or + // EAP_CRED_LOGON_REQ/EAP_CRED_LOGON_RESP depending on uiDataType above +#ifdef __midl + [switch_is (dwDataType)] EAP_UI_DATA_FORMAT pbUiData; +#else + EAP_UI_DATA_FORMAT pbUiData; +#endif +} EAP_INTERACTIVE_UI_DATA ; + +typedef +#ifdef __midl + [v1_enum] +#endif +// Property types that EAP methods support +enum _EAP_METHOD_PROPERTY_TYPE +{ + emptPropCipherSuiteNegotiation = 0, // value field is boolean + emptPropMutualAuth, // value field is boolean + emptPropIntegrity, // value field is boolean + emptPropReplayProtection, // value field is boolean + emptPropConfidentiality, // value field is boolean + emptPropKeyDerivation, // value field is boolean + emptPropKeyStrength64, // value field is boolean + emptPropKeyStrength128, // value field is boolean + emptPropKeyStrength256, // value field is boolean + emptPropKeyStrength512, // value field is boolean + emptPropKeyStrength1024, // value field is boolean + emptPropDictionaryAttackResistance, // value field is boolean + emptPropFastReconnect, // value field is boolean + emptPropCryptoBinding, // value field is boolean + emptPropSessionIndependence, // value field is boolean + emptPropFragmentation, // value field is boolean + emptPropChannelBinding, // value field is boolean + emptPropNap, // value field is boolean + emptPropStandalone, // value field is boolean + emptPropMppeEncryption, // value field is boolean + emptPropTunnelMethod, // value field is boolean + emptPropSupportsConfig, // value field is boolean + emptPropCertifiedMethod, // value field is boolean + emptPropHiddenMethod, // value field is boolean + emptPropMachineAuth, // value field is boolean + emptPropUserAuth, // value field is boolean + emptPropIdentityPrivacy, // value field is boolean + emptPropMethodChaining, // value field is boolean + emptPropSharedStateEquivalence, // value field is boolean + emptLegacyMethodPropertyFlag = 31, // value field is dword + emptPropVendorSpecific = 255 // value field is string +} EAP_METHOD_PROPERTY_TYPE; + +typedef +#ifdef __midl + [v1_enum] +#endif +// Method property value types that EAP methods support +enum _EAP_METHOD_PROPERTY_VALUE_TYPE +{ + empvtBool = 0, // value type is boolean + empvtDword, // value type is dword + empvtString // value type is string +} EAP_METHOD_PROPERTY_VALUE_TYPE; + +typedef struct _EAP_METHOD_PROPERTY_VALUE_BOOL +{ + DWORD length; + BOOL value; +} EAP_METHOD_PROPERTY_VALUE_BOOL; + +typedef struct _EAP_METHOD_PROPERTY_VALUE_DWORD +{ + DWORD length; + DWORD value; +} EAP_METHOD_PROPERTY_VALUE_DWORD; + +typedef struct _EAP_METHOD_PROPERTY_VALUE_STRING +{ + DWORD length; +#ifdef __midl + [size_is(length)] BYTE* value; +#else + BYTE* value; +#endif +} EAP_METHOD_PROPERTY_VALUE_STRING; + +#ifdef __midl +typedef [switch_type(EAP_METHOD_PROPERTY_VALUE_TYPE)] +union { + [case(empvtBool)] + EAP_METHOD_PROPERTY_VALUE_BOOL empvBool; // value is boolean type + + [case(empvtDword)] + EAP_METHOD_PROPERTY_VALUE_DWORD empvDword; // value is dword type + + [case(empvtString)] + EAP_METHOD_PROPERTY_VALUE_STRING empvString; // value is string type +} EAP_METHOD_PROPERTY_VALUE; +#else +typedef union _EAP_METHOD_PROPERTY_VALUE { + EAP_METHOD_PROPERTY_VALUE_BOOL empvBool; // value is boolean type + EAP_METHOD_PROPERTY_VALUE_DWORD empvDword; // value is dword type + EAP_METHOD_PROPERTY_VALUE_STRING empvString; // value is string type +} EAP_METHOD_PROPERTY_VALUE; +#endif + +// Structure to represent a method property +typedef struct _EAP_METHOD_PROPERTY { + // specifies the method property type + EAP_METHOD_PROPERTY_TYPE eapMethodPropertyType; + + // specifies the data type of value + EAP_METHOD_PROPERTY_VALUE_TYPE eapMethodPropertyValueType; +#ifdef __midl + [switch_is(eapMethodPropertyValueType)] EAP_METHOD_PROPERTY_VALUE eapMethodPropertyValue; +#else + // specifies the value of the method property + EAP_METHOD_PROPERTY_VALUE eapMethodPropertyValue; +#endif +} EAP_METHOD_PROPERTY; + +// Structure to represent an array of method properties +typedef struct _EAP_METHOD_PROPERTY_ARRAY { + // specifies the number of method properties in array + DWORD dwNumberOfProperties; + + // specifies the array of method property +#ifdef __midl + [size_is(dwNumberOfProperties)] EAP_METHOD_PROPERTY* pFields; +#else + EAP_METHOD_PROPERTY* pMethodProperty; +#endif +} EAP_METHOD_PROPERTY_ARRAY; + +// +// structure representing the parameters that needs to be passed +// to EAPHost for raising identity ui +// +typedef struct _EAPHOST_IDENTITY_UI_PARAMS { + // The following parameters are passed by supplicant to eaphost + EAP_METHOD_TYPE eapMethodType; + DWORD dwFlags; + DWORD dwSizeofConnectionData; +#ifdef __midl + [size_is(dwSizeofConnectionData)] BYTE* pConnectionData; +#else + BYTE* pConnectionData; +#endif + DWORD dwSizeofUserData; +#ifdef __midl + [size_is(dwSizeofUserData)] BYTE* pUserData; +#else + BYTE* pUserData; +#endif + // The following parameters are returned by eaphost to supplicant + DWORD dwSizeofUserDataOut; +#ifdef __midl + [size_is(dwSizeofUserDataOut)] BYTE* pUserDataOut; +#else + BYTE* pUserDataOut; +#endif + LPWSTR pwszIdentity; + DWORD dwError; + EAP_ERROR* pEapError; +} EAPHOST_IDENTITY_UI_PARAMS; + +// +// structure representing the parameters that needs to be passed +// to EAPHost for raising interactive ui +// +typedef struct _EAPHOST_INTERACTIVE_UI_PARAMS { + // The following parameters are passed by supplicant to eaphost + DWORD dwSizeofContextData; +#ifdef __midl + [size_is(dwSizeofContextData)] BYTE* pContextData; +#else + BYTE* pContextData; +#endif + // The following parameters are returned by eaphost to supplicant + DWORD dwSizeofInteractiveUIData; +#ifdef __midl + [size_is(dwSizeofInteractiveUIData)] BYTE* pInteractiveUIData; +#else + BYTE* pInteractiveUIData; +#endif + DWORD dwError; + EAP_ERROR* pEapError; +} EAPHOST_INTERACTIVE_UI_PARAMS; + +typedef enum _EapCredentialType +{ + EAP_EMPTY_CREDENTIAL=0, + EAP_USERNAME_PASSWORD_CREDENTIAL, + EAP_WINLOGON_CREDENTIAL, + EAP_CERTIFICATE_CREDENTIAL, + EAP_SIM_CREDENTIAL +} EapCredentialType; + +typedef struct _EapUsernamePasswordCredential +{ + LPWSTR username; + LPWSTR password; +} EapUsernamePasswordCredential; + +#define CERTIFICATE_HASH_LENGTH 20 + +typedef struct _EapCertificateCredential +{ + BYTE certHash[CERTIFICATE_HASH_LENGTH]; + LPWSTR password; +} EapCertificateCredential; + +typedef struct _EapSimCredential +{ + LPWSTR iccID; +} EapSimCredential; + +#ifdef __midl + typedef [switch_type(EapCredentialType)] + union { + [case(EAP_USERNAME_PASSWORD_CREDENTIAL)] EapUsernamePasswordCredential username_password; + [case(EAP_CERTIFICATE_CREDENTIAL)] EapCertificateCredential certificate; + [case(EAP_SIM_CREDENTIAL)] EapSimCredential sim; + [default] ; + } EapCredentialTypeData; +#else + typedef union { + EapUsernamePasswordCredential username_password; + EapCertificateCredential certificate; + EapSimCredential sim; + } EapCredentialTypeData; +#endif + +typedef struct _EapCredential +{ + EapCredentialType credType; +#ifdef __midl + [switch_is(credType)] EapCredentialTypeData credData; +#else + EapCredentialTypeData credData; +#endif +} EapCredential; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //EAPTYPES_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/easencryptprov.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/easencryptprov.h new file mode 100644 index 0000000000000000000000000000000000000000..d2d4cf22709df1124a91846bdb6ba5b2cf3641f3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/easencryptprov.h @@ -0,0 +1,138 @@ +/*++ + +Copyright (c) Microsoft Corporation + +Module Name: + + EasEncryptProv.h + +Abstract: + + This file contains structures, function signatures for 3rd Party + Encryption providers that intend to support EAS + +Environment: + + User Mode - Win32 + +Notes: + +--*/ + +// +// User Class +// + +#if NTDDI_VERSION >= NTDDI_WINBLUE + +#ifndef _EAS_ENCRYPT_PROV_ +#define _EAS_ENCRYPT_PROV_ + +#ifdef _MSC_VER +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum _EasEncryptProvProtectionStatus_ +{ + EasEncryptProvDeviceStatusUnknown, + EasEncryptProvDeviceNotProtected, + EasEncryptProvDeviceProtected +} EasEncryptProvProtectionStatus; + +typedef +HRESULT +(WINAPI *PFEnCrypQueryProtectionStatus) ( + _Out_ EasEncryptProvProtectionStatus *pDeviceStatus, + _Out_ HRESULT *phrExtendedStatus + ); + +typedef +HRESULT +(WINAPI *PFEncryptProvIsDeviceLockable) (); + +typedef +HRESULT +(WINAPI *PFEncryptProvLockDevice) (); + +typedef +HRESULT +(WINAPI *PFEncryptProvValidateDeviceLockoutState) (); + +typedef +HRESULT +(WINAPI *pFEncryptProvDisableDeviceLockoutState) (); + +typedef +HRESULT +(WINAPI *PFEncryptProvGetDeviceLockoutData) ( + _Out_writes_bytes_opt_(*pPerUserSize) PBYTE pPerUserData, + _Inout_ ULONG *pPerUserSize + ); + +typedef +HRESULT +(WINAPI *PFEncryptProvUpdateDeviceLockoutState) ( + _In_reads_bytes_(PerUserSize) PBYTE PerUserData, + _In_ ULONG PerUserSize + ); + +HRESULT +WINAPI +EasEncryptProvQueryProtectionStatus ( + _Out_ EasEncryptProvProtectionStatus *pDeviceStatus, + _Out_ HRESULT *phrExtendedStatus + ); + +HRESULT +WINAPI +EasEncryptProvIsDeviceLockable ( + ); + +HRESULT +WINAPI +EasEncryptProvLockDevice ( + ); + +HRESULT +WINAPI +EasEncryptProvGetDeviceLockoutData ( + _Out_writes_bytes_opt_(*pPerUserSize) PBYTE pPerUserData, + _Inout_ ULONG *pPerUserSize + ); + +HRESULT +WINAPI +EasEncryptProvValidateDeviceLockoutState ( + ); + +HRESULT +WINAPI +EasEncryptProvUpdateDeviceLockoutState ( + _In_reads_bytes_(PerUserSize) PBYTE PerUserData, + _In_ ULONG PerUserSize + ); + +HRESULT +WINAPI +EasEncryptProvDisableDeviceLockoutState ( + ); + +#ifdef __cplusplus +} +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma endregion + +#endif // _EAS_ENCRYPT_PROV_ + +#endif // NTDDI_VERSION >= NTDDI_WINBLUE diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/easregprov.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/easregprov.h new file mode 100644 index 0000000000000000000000000000000000000000..26d18f8ccdebdfb336c2edc03d003ab74328ed0a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/easregprov.h @@ -0,0 +1,64 @@ +/*++ + +Copyright (c) Microsoft Corporation + +Module Name: + + easregprov.h + +Abstract: + + This file contains the function which a 3rd Party Encryption software installation + package calls to register & unregister their provider that supports EAS. + +Environment: + + User Mode - Win32 + +Notes: + +--*/ + +// +// User Function +// + +#if NTDDI_VERSION >= NTDDI_WINBLUE + +#ifndef _EASREGPROV_ +#define _EASREGPROV_ + +#ifdef _MSC_VER +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +HRESULT +WINAPI +EasRegisterEncryptionProvider( + _In_ LPCWSTR pcwzDllPath + ); + +HRESULT +WINAPI +EasUnRegisterEncryptionProvider( + ); + +#ifdef __cplusplus +} +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma endregion + +#endif // _EASREGPROV_ + +#endif // NTDDI_VERSION >= NTDDI_WINBLUE \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/edevdefs.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/edevdefs.h new file mode 100644 index 0000000000000000000000000000000000000000..0dbbf8670eb05c10f7a5531d6537ffa51ad630a3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/edevdefs.h @@ -0,0 +1,540 @@ +//------------------------------------------------------------------------------ +// File: EDevDefs.h +// +// Desc: External Device (such as a VCR) control interface parameter and +// value definitions. +// +// Note: new constants added: ED_BASE+800L -> ED_BASE+811L +// +// Copyright (c) 1992 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __EDEVDEFS__ +#define __EDEVDEFS__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#define ED_BASE 0x1000L + +// this is used to tell the device communications object which +// physical communications port to use. +#define DEV_PORT_SIM 1 +#define DEV_PORT_COM1 2 // standard serial ports +#define DEV_PORT_COM2 3 +#define DEV_PORT_COM3 4 +#define DEV_PORT_COM4 5 +#define DEV_PORT_DIAQ 6 // Diaquest driver +#define DEV_PORT_ARTI 7 // ARTI driver +#define DEV_PORT_1394 8 // IEEE 1394 Serial Bus +#define DEV_PORT_USB 9 // Universal Serial Bus +#define DEV_PORT_MIN DEV_PORT_SIM +#define DEV_PORT_MAX DEV_PORT_USB + + +// IAMExtDevice Capability Items: unless otherwise specified, these items return +// OATRUE or OAFALSE. All return values are in pdwValue unless otherwise specified: + +#define ED_DEVCAP_CAN_RECORD ED_BASE+1L +#define ED_DEVCAP_CAN_RECORD_STROBE ED_BASE+2L // for multitrack devices: + // switches currently recording tracks off + // and selected non-recording tracks into record +#define ED_DEVCAP_HAS_AUDIO ED_BASE+3L +#define ED_DEVCAP_HAS_VIDEO ED_BASE+4L +#define ED_DEVCAP_USES_FILES ED_BASE+5L +#define ED_DEVCAP_CAN_SAVE ED_BASE+6L + +#define ED_DEVCAP_DEVICE_TYPE ED_BASE+7L // returns one of the following: +#define ED_DEVTYPE_VCR ED_BASE+8L +#define ED_DEVTYPE_LASERDISK ED_BASE+9L +#define ED_DEVTYPE_ATR ED_BASE+10L +#define ED_DEVTYPE_DDR ED_BASE+11L +#define ED_DEVTYPE_ROUTER ED_BASE+12L +#define ED_DEVTYPE_KEYER ED_BASE+13L +#define ED_DEVTYPE_MIXER_VIDEO ED_BASE+14L +#define ED_DEVTYPE_DVE ED_BASE+15L +#define ED_DEVTYPE_WIPEGEN ED_BASE+16L +#define ED_DEVTYPE_MIXER_AUDIO ED_BASE+17L +#define ED_DEVTYPE_CG ED_BASE+18L +#define ED_DEVTYPE_TBC ED_BASE+19L +#define ED_DEVTYPE_TCG ED_BASE+20L +#define ED_DEVTYPE_GPI ED_BASE+21L +#define ED_DEVTYPE_JOYSTICK ED_BASE+22L +#define ED_DEVTYPE_KEYBOARD ED_BASE+23L + +// returns mfr-specific ID from external device. +#define ED_DEVCAP_EXTERNAL_DEVICE_ID ED_BASE+24L + +#define ED_DEVCAP_TIMECODE_READ ED_BASE+25L +#define ED_DEVCAP_TIMECODE_WRITE ED_BASE+26L +// used for seekable non-timecode enabled devices +#define ED_DEVCAP_CTLTRK_READ ED_BASE+27L +// used for seekable non-timecode enabled devices +#define ED_DEVCAP_INDEX_READ ED_BASE+28L + +// returns device preroll time in current time format +#define ED_DEVCAP_PREROLL ED_BASE+29L +// returns device postroll time in current time format +#define ED_DEVCAP_POSTROLL ED_BASE+30L + +// returns indication of device's synchronization accuracy. +#define ED_DEVCAP_SYNC_ACCURACY ED_BASE+31L // returns one of the following: +#define ED_SYNCACC_PRECISE ED_BASE+32L +#define ED_SYNCACC_FRAME ED_BASE+33L +#define ED_SYNCACC_ROUGH ED_BASE+34L + +// returns device's normal framerate. +#define ED_DEVCAP_NORMAL_RATE ED_BASE+35L // returns one of the following: +#define ED_RATE_24 ED_BASE+36L +#define ED_RATE_25 ED_BASE+37L +#define ED_RATE_2997 ED_BASE+38L +#define ED_RATE_30 ED_BASE+39L + +#define ED_DEVCAP_CAN_PREVIEW ED_BASE+40L +#define ED_DEVCAP_CAN_MONITOR_SOURCES ED_BASE+41L + +// indicates implementation allows testing of methods/parameters by +// setting the hi bit of a parm that makes sense - see individual methods +// for details. +#define ED_DEVCAP_CAN_TEST ED_BASE+42L + +// indicates device accepts video as an input. +#define ED_DEVCAP_VIDEO_INPUTS ED_BASE+43L + +// indicates device accepts audio as an input. +#define ED_DEVCAP_AUDIO_INPUTS ED_BASE+44L + +#define ED_DEVCAP_NEEDS_CALIBRATING ED_BASE+45L + +#define ED_DEVCAP_SEEK_TYPE ED_BASE+46L // returns one of the following: +#define ED_SEEK_PERFECT ED_BASE+47L // indicates device can execute seek + // within 1 video frames without signal + // break (like a DDR) +#define ED_SEEK_FAST ED_BASE+48L // indicates device can move pretty quick + // with short break in signal +#define ED_SEEK_SLOW ED_BASE+49L // seeks like a tape transport + +#define ED_POWER_ON ED_BASE+50L +#define ED_POWER_OFF ED_BASE+51L +#define ED_POWER_STANDBY ED_BASE+52L + +#define ED_ACTIVE ED_BASE+53L +#define ED_INACTIVE ED_BASE+54L +#define ED_ALL ED_BASE+55L +#define ED_TEST ED_BASE+56L + +// IAMExtTransport Capability Items: unless otherwise specified, these items return +// OATRUE or OAFALSE. All return values are in pdwValue unless otherwise specified: + +#define ED_TRANSCAP_CAN_EJECT ED_BASE+100L +#define ED_TRANSCAP_CAN_BUMP_PLAY ED_BASE+101L // variable speed for synchronizing +#define ED_TRANSCAP_CAN_PLAY_BACKWARDS ED_BASE+102L // servo locked for use during an edit +#define ED_TRANSCAP_CAN_SET_EE ED_BASE+103L // show device's input on its output +#define ED_TRANSCAP_CAN_SET_PB ED_BASE+104L // show media playback on device's output +#define ED_TRANSCAP_CAN_DELAY_VIDEO_IN ED_BASE+105L // transport can do delayed-in video edits +#define ED_TRANSCAP_CAN_DELAY_VIDEO_OUT ED_BASE+106L // transport can do delayed-out video edits +#define ED_TRANSCAP_CAN_DELAY_AUDIO_IN ED_BASE+107L // transport can do delayed-in audio edits +#define ED_TRANSCAP_CAN_DELAY_AUDIO_OUT ED_BASE+108L // transport can do delayed-out audio edits +#define ED_TRANSCAP_FWD_VARIABLE_MAX ED_BASE+109L // max forward speed (multiple of play speed) + // in pdblValue +#define ED_TRANSCAP_FWD_VARIABLE_MIN ED_BASE+800L // min forward speed (multiple of play speed) + // in pdblValue +#define ED_TRANSCAP_REV_VARIABLE_MAX ED_BASE+110L // max reverse speed (multiple of play speed) in + // pdblValue +#define ED_TRANSCAP_REV_VARIABLE_MIN ED_BASE+801L // min reverse speed (multiple of play speed) + // in pdblValue +#define ED_TRANSCAP_FWD_SHUTTLE_MAX ED_BASE+802L // max forward speed in Shuttle mode (multiple + // of play speed) in pdblValue +#define ED_TRANSCAP_FWD_SHUTTLE_MIN ED_BASE+803L // min forward speed in Shuttle mode (multiple + // of play speed) in pdblValue +#define ED_TRANSCAP_REV_SHUTTLE_MAX ED_BASE+804L // max reverse speed in Shuttle mode (multiple + // of play speed) in pdblValue +#define ED_TRANSCAP_REV_SHUTTLE_MIN ED_BASE+805L // min reverse speed in Shuttle mode (multiple + // of play speed) in pdblValue +#define ED_TRANSCAP_NUM_AUDIO_TRACKS ED_BASE+111L // returns number of audio tracks +#define ED_TRANSCAP_LTC_TRACK ED_BASE+112L // returns track number of LTC timecode track. + // ED_ALL means no dedicated timecode track +#define ED_TRANSCAP_NEEDS_TBC ED_BASE+113L // device's output not stable +#define ED_TRANSCAP_NEEDS_CUEING ED_BASE+114L // device must be cued prior to performing edit +#define ED_TRANSCAP_CAN_INSERT ED_BASE+115L +#define ED_TRANSCAP_CAN_ASSEMBLE ED_BASE+116L +#define ED_TRANSCAP_FIELD_STEP ED_BASE+117L // device responds to Frame Advance command by + // advancing one field +#define ED_TRANSCAP_CLOCK_INC_RATE ED_BASE+118L // VISCA command - keep for compatibility +#define ED_TRANSCAP_CAN_DETECT_LENGTH ED_BASE+119L +#define ED_TRANSCAP_CAN_FREEZE ED_BASE+120L +#define ED_TRANSCAP_HAS_TUNER ED_BASE+121L +#define ED_TRANSCAP_HAS_TIMER ED_BASE+122L +#define ED_TRANSCAP_HAS_CLOCK ED_BASE+123L +#define ED_TRANSCAP_MULTIPLE_EDITS ED_BASE+806L // OATRUE means device/filter can support + // multiple edit events +#define ED_TRANSCAP_IS_MASTER ED_BASE+807L // OATRUE means device is the master clock + // for synchronizing (this sets timecode-to- + // reference clock offset for editing) +#define ED_TRANSCAP_HAS_DT ED_BASE+814L // OATRUE means device has Dynamic Tracking + +// IAMExtTransport Media States +#define ED_MEDIA_SPIN_UP ED_BASE+130L +#define ED_MEDIA_SPIN_DOWN ED_BASE+131L +#define ED_MEDIA_UNLOAD ED_BASE+132L + +// IAMExtTransport Modes +#define ED_MODE_PLAY ED_BASE+200L +#define ED_MODE_STOP ED_BASE+201L +#define ED_MODE_FREEZE ED_BASE+202L // really "pause" +#define ED_MODE_THAW ED_BASE+203L +#define ED_MODE_FF ED_BASE+204L +#define ED_MODE_REW ED_BASE+205L +#define ED_MODE_RECORD ED_BASE+206L +#define ED_MODE_RECORD_STROBE ED_BASE+207L +#define ED_MODE_RECORD_FREEZE ED_BASE+808L // pause recording +#define ED_MODE_STEP ED_BASE+208L // same as "jog" +#define ED_MODE_STEP_FWD ED_BASE+208L // same as ED_MODE_STEP +#define ED_MODE_STEP_REV ED_BASE+809L +#define ED_MODE_SHUTTLE ED_BASE+209L +#define ED_MODE_EDIT_CUE ED_BASE+210L +#define ED_MODE_VAR_SPEED ED_BASE+211L +#define ED_MODE_PERFORM ED_BASE+212L // returned status only +#define ED_MODE_LINK_ON ED_BASE+280L +#define ED_MODE_LINK_OFF ED_BASE+281L +#define ED_MODE_NOTIFY_ENABLE ED_BASE+810L +#define ED_MODE_NOTIFY_DISABLE ED_BASE+811L +#define ED_MODE_SHOT_SEARCH ED_BASE+812L + +// IAMTimecodeReader/Generator/Display defines +// +// Timecode Generator Mode params and values: +// +#define ED_TCG_TIMECODE_TYPE ED_BASE+400L // can be one of the following: +#define ED_TCG_SMPTE_LTC ED_BASE+401L +#define ED_TCG_SMPTE_VITC ED_BASE+402L +#define ED_TCG_MIDI_QF ED_BASE+403L +#define ED_TCG_MIDI_FULL ED_BASE+404L + +#define ED_TCG_FRAMERATE ED_BASE+405L // can be one of the following: +#define ED_FORMAT_SMPTE_30 ED_BASE+406L +#define ED_FORMAT_SMPTE_30DROP ED_BASE+407L +#define ED_FORMAT_SMPTE_25 ED_BASE+408L +#define ED_FORMAT_SMPTE_24 ED_BASE+409L + +#define ED_TCG_SYNC_SOURCE ED_BASE+410L // can be one of the following: +#define ED_TCG_VIDEO ED_BASE+411L +#define ED_TCG_READER ED_BASE+412L +#define ED_TCG_FREE ED_BASE+413L + +#define ED_TCG_REFERENCE_SOURCE ED_BASE+414L // can have one these values: + // ED_TCG_FREE || ED_TCG_READER + // (for regen/jamsync) + +// TimeCodeReader Mode params and values: +#define ED_TCR_SOURCE ED_BASE+416L // can be one of the following: +// ED_TCG (already defined) +#define ED_TCR_LTC ED_BASE+417L +#define ED_TCR_VITC ED_BASE+418L +#define ED_TCR_CT ED_BASE+419L // Control Track +#define ED_TCR_FTC ED_BASE+420L // File TimeCode - for file-based devices + // that wish they were transports +// ED_MODE_NOTIFY_ENABLE can be OATRUE or OAFALSE (defined in transport mode +// section of this file). +#define ED_TCR_LAST_VALUE ED_BASE+421L // for notification mode - + // successive calls to GetTimecode + // return the last read value +// TimeCode Display Mode params and values: +// +#define ED_TCD_SOURCE ED_BASE+422L // can be one of the following: +#define ED_TCR ED_BASE+423L +#define ED_TCG ED_BASE+424L + +#define ED_TCD_SIZE ED_BASE+425L // can be one of the following: +#define ED_SMALL ED_BASE+426L +#define ED_MED ED_BASE+427L +#define ED_LARGE ED_BASE+428L + +#define ED_TCD_POSITION ED_BASE+429L // can be one of the following: +#define ED_TOP 0x0001 +#define ED_MIDDLE 0x0002 +#define ED_BOTTOM 0x0004 // or'd with +#define ED_LEFT 0x0100 +#define ED_CENTER 0x0200 +#define ED_RIGHT 0x0400 + +#define ED_TCD_INTENSITY ED_BASE+436L // can be one of the following: +#define ED_HIGH ED_BASE+437L +#define ED_LOW ED_BASE+438L + +#define ED_TCD_TRANSPARENCY ED_BASE+439L // 0-4, 0 is opaque + +#define ED_TCD_INVERT ED_BASE+440L // OATRUE=black on white + // OAFALSE=white on black +// IAMExtTransport defines +// +// Transport status, params and values +// + +// IAMExtTransport Status items and and values: +#define ED_MODE ED_BASE+500L // see ED_MODE_xxx values above +#define ED_ERROR ED_BASE+501L +#define ED_LOCAL ED_BASE+502L +#define ED_RECORD_INHIBIT ED_BASE+503L +#define ED_SERVO_LOCK ED_BASE+504L +#define ED_MEDIA_PRESENT ED_BASE+505L +#define ED_MEDIA_LENGTH ED_BASE+506L +#define ED_MEDIA_SIZE ED_BASE+507L +#define ED_MEDIA_TRACK_COUNT ED_BASE+508L +#define ED_MEDIA_TRACK_LENGTH ED_BASE+509L +#define ED_MEDIA_SIDE ED_BASE+510L + +#define ED_MEDIA_TYPE ED_BASE+511L // can be one of the following: +#define ED_MEDIA_VHS ED_BASE+512L +#define ED_MEDIA_SVHS ED_BASE+513L +#define ED_MEDIA_HI8 ED_BASE+514L +#define ED_MEDIA_UMATIC ED_BASE+515L +#define ED_MEDIA_DVC ED_BASE+516L +#define ED_MEDIA_1_INCH ED_BASE+517L +#define ED_MEDIA_D1 ED_BASE+518L +#define ED_MEDIA_D2 ED_BASE+519L +#define ED_MEDIA_D3 ED_BASE+520L +#define ED_MEDIA_D5 ED_BASE+521L +#define ED_MEDIA_DBETA ED_BASE+522L +#define ED_MEDIA_BETA ED_BASE+523L +#define ED_MEDIA_8MM ED_BASE+524L +#define ED_MEDIA_DDR ED_BASE+525L +#define ED_MEDIA_SX ED_BASE+813L +#define ED_MEDIA_OTHER ED_BASE+526L +#define ED_MEDIA_CLV ED_BASE+527L +#define ED_MEDIA_CAV ED_BASE+528L +#define ED_MEDIA_POSITION ED_BASE+529L + +#define ED_LINK_MODE ED_BASE+530L // OATRUE if transport controls + // are linked to graph's RUN, + // STOP, and PAUSE methods + +// IAMExtTransport Basic Parms +#define ED_TRANSBASIC_TIME_FORMAT ED_BASE+540L // can be one of the following: +#define ED_FORMAT_MILLISECONDS ED_BASE+541L +#define ED_FORMAT_FRAMES ED_BASE+542L +#define ED_FORMAT_REFERENCE_TIME ED_BASE+543L + +#define ED_FORMAT_HMSF ED_BASE+547L +#define ED_FORMAT_TMSF ED_BASE+548L + +#define ED_TRANSBASIC_TIME_REFERENCE ED_BASE+549L // can be one of the following: +#define ED_TIMEREF_TIMECODE ED_BASE+550L +#define ED_TIMEREF_CONTROL_TRACK ED_BASE+551L +#define ED_TIMEREF_INDEX ED_BASE+552L + +#define ED_TRANSBASIC_SUPERIMPOSE ED_BASE+553L // enable/disable onscreen display +#define ED_TRANSBASIC_END_STOP_ACTION ED_BASE+554L // can be one of: ED_MODE_STOP | + // ED_MODE_REWIND | ED_MODE_FREEZE +#define ED_TRANSBASIC_RECORD_FORMAT ED_BASE+555L // can be one of the following: +#define ED_RECORD_FORMAT_SP ED_BASE+556L +#define ED_RECORD_FORMAT_LP ED_BASE+557L +#define ED_RECORD_FORMAT_EP ED_BASE+558L + +#define ED_TRANSBASIC_STEP_COUNT ED_BASE+559L +#define ED_TRANSBASIC_STEP_UNIT ED_BASE+560L // can be one of the following: +#define ED_STEP_FIELD ED_BASE+561L +#define ED_STEP_FRAME ED_BASE+562L +#define ED_STEP_3_2 ED_BASE+563L + +#define ED_TRANSBASIC_PREROLL ED_BASE+564L +#define ED_TRANSBASIC_RECPREROLL ED_BASE+565L +#define ED_TRANSBASIC_POSTROLL ED_BASE+566L +#define ED_TRANSBASIC_EDIT_DELAY ED_BASE+567L +#define ED_TRANSBASIC_PLAYTC_DELAY ED_BASE+568L +#define ED_TRANSBASIC_RECTC_DELAY ED_BASE+569L +#define ED_TRANSBASIC_EDIT_FIELD ED_BASE+570L +#define ED_TRANSBASIC_FRAME_SERVO ED_BASE+571L +#define ED_TRANSBASIC_CF_SERVO ED_BASE+572L +#define ED_TRANSBASIC_SERVO_REF ED_BASE+573L // can be one of the following: +#define ED_REF_EXTERNAL ED_BASE+574L +#define ED_REF_INPUT ED_BASE+575L +#define ED_REF_INTERNAL ED_BASE+576L +#define ED_REF_AUTO ED_BASE+577L + +#define ED_TRANSBASIC_WARN_GL ED_BASE+578L +#define ED_TRANSBASIC_SET_TRACKING ED_BASE+579L // can be one of the following: +#define ED_TRACKING_PLUS ED_BASE+580L +#define ED_TRACKING_MINUS ED_BASE+581L +#define ED_TRACKING_RESET ED_BASE+582L + +#define ED_TRANSBASIC_SET_FREEZE_TIMEOUT ED_BASE+583L +#define ED_TRANSBASIC_VOLUME_NAME ED_BASE+584L +#define ED_TRANSBASIC_BALLISTIC_1 ED_BASE+585L // space for proprietary data +#define ED_TRANSBASIC_BALLISTIC_2 ED_BASE+586L +#define ED_TRANSBASIC_BALLISTIC_3 ED_BASE+587L +#define ED_TRANSBASIC_BALLISTIC_4 ED_BASE+588L +#define ED_TRANSBASIC_BALLISTIC_5 ED_BASE+589L +#define ED_TRANSBASIC_BALLISTIC_6 ED_BASE+590L +#define ED_TRANSBASIC_BALLISTIC_7 ED_BASE+591L +#define ED_TRANSBASIC_BALLISTIC_8 ED_BASE+592L +#define ED_TRANSBASIC_BALLISTIC_9 ED_BASE+593L +#define ED_TRANSBASIC_BALLISTIC_10 ED_BASE+594L +#define ED_TRANSBASIC_BALLISTIC_11 ED_BASE+595L +#define ED_TRANSBASIC_BALLISTIC_12 ED_BASE+596L +#define ED_TRANSBASIC_BALLISTIC_13 ED_BASE+597L +#define ED_TRANSBASIC_BALLISTIC_14 ED_BASE+598L +#define ED_TRANSBASIC_BALLISTIC_15 ED_BASE+599L +#define ED_TRANSBASIC_BALLISTIC_16 ED_BASE+600L +#define ED_TRANSBASIC_BALLISTIC_17 ED_BASE+601L +#define ED_TRANSBASIC_BALLISTIC_18 ED_BASE+602L +#define ED_TRANSBASIC_BALLISTIC_19 ED_BASE+603L +#define ED_TRANSBASIC_BALLISTIC_20 ED_BASE+604L + +// consumer VCR items +#define ED_TRANSBASIC_SETCLOCK ED_BASE+605L +#define ED_TRANSBASIC_SET_COUNTER_FORMAT ED_BASE+606L // uses time format flags +#define ED_TRANSBASIC_SET_COUNTER_VALUE ED_BASE+607L + +#define ED_TRANSBASIC_SETTUNER_CH_UP ED_BASE+608L +#define ED_TRANSBASIC_SETTUNER_CH_DN ED_BASE+609L +#define ED_TRANSBASIC_SETTUNER_SK_UP ED_BASE+610L +#define ED_TRANSBASIC_SETTUNER_SK_DN ED_BASE+611L +#define ED_TRANSBASIC_SETTUNER_CH ED_BASE+612L +#define ED_TRANSBASIC_SETTUNER_NUM ED_BASE+613L + +#define ED_TRANSBASIC_SETTIMER_EVENT ED_BASE+614L +#define ED_TRANSBASIC_SETTIMER_STARTDAY ED_BASE+615L +#define ED_TRANSBASIC_SETTIMER_STARTTIME ED_BASE+616L +#define ED_TRANSBASIC_SETTIMER_STOPDAY ED_BASE+617L +#define ED_TRANSBASIC_SETTIMER_STOPTIME ED_BASE+618L + +// IAMExtTransport video parameters +#define ED_TRANSVIDEO_SET_OUTPUT ED_BASE+630L // can be one of the following: +#define ED_E2E ED_BASE+631L +#define ED_PLAYBACK ED_BASE+632L +#define ED_OFF ED_BASE+633L + +#define ED_TRANSVIDEO_SET_SOURCE ED_BASE+634L + +// IAMExtTransport audio parameters +#define ED_TRANSAUDIO_ENABLE_OUTPUT ED_BASE+640L // can be the following: +#define ED_AUDIO_ALL 0x10000000 // or any of the following OR'd together +#define ED_AUDIO_1 0x0000001L +#define ED_AUDIO_2 0x0000002L +#define ED_AUDIO_3 0x0000004L +#define ED_AUDIO_4 0x0000008L +#define ED_AUDIO_5 0x0000010L +#define ED_AUDIO_6 0x0000020L +#define ED_AUDIO_7 0x0000040L +#define ED_AUDIO_8 0x0000080L +#define ED_AUDIO_9 0x0000100L +#define ED_AUDIO_10 0x0000200L +#define ED_AUDIO_11 0x0000400L +#define ED_AUDIO_12 0x0000800L +#define ED_AUDIO_13 0x0001000L +#define ED_AUDIO_14 0x0002000L +#define ED_AUDIO_15 0x0004000L +#define ED_AUDIO_16 0x0008000L +#define ED_AUDIO_17 0x0010000L +#define ED_AUDIO_18 0x0020000L +#define ED_AUDIO_19 0x0040000L +#define ED_AUDIO_20 0x0080000L +#define ED_AUDIO_21 0x0100000L +#define ED_AUDIO_22 0x0200000L +#define ED_AUDIO_23 0x0400000L +#define ED_AUDIO_24 0x0800000L +#define ED_VIDEO 0x2000000L // for Edit props below + +#define ED_TRANSAUDIO_ENABLE_RECORD ED_BASE+642L +#define ED_TRANSAUDIO_ENABLE_SELSYNC ED_BASE+643L +#define ED_TRANSAUDIO_SET_SOURCE ED_BASE+644L +#define ED_TRANSAUDIO_SET_MONITOR ED_BASE+645L + + +// Edit Property Set-related defs + +// The following values reflect (and control) the state of an +// edit property set +#define ED_INVALID ED_BASE+652L +#define ED_EXECUTING ED_BASE+653L +#define ED_REGISTER ED_BASE+654L +#define ED_DELETE ED_BASE+655L + +// Edit property set parameters and values +#define ED_EDIT_HEVENT ED_BASE+656L // event handle to signal event + // completion +#define ED_EDIT_TEST ED_BASE+657L // returns OAFALSE if filter thinks + // edit can be done, OATRUE if not +#define ED_EDIT_IMMEDIATE ED_BASE+658L // OATRUE means start put the + // device into edit mode (editing + // "on the fly") immediately upon + // execution of Mode(ED_MODE_EDIT_CUE) +#define ED_EDIT_MODE ED_BASE+659L +// can be one of the following values: +#define ED_EDIT_MODE_ASSEMBLE ED_BASE+660L +#define ED_EDIT_MODE_INSERT ED_BASE+661L +#define ED_EDIT_MODE_CRASH_RECORD ED_BASE+662L +#define ED_EDIT_MODE_BOOKMARK_TIME ED_BASE+663L // these two are for +#define ED_EDIT_MODE_BOOKMARK_CHAPTER ED_BASE+664L // laserdisks + +#define ED_EDIT_MASTER ED_BASE+666L // OATRUE causes device + // not to synchronize + +#define ED_EDIT_TRACK ED_BASE+667L +// can be one of the following possible OR'd values: +// ED_VIDEO, ED_AUDIO_1 thru ED_AUDIO_24 (or ED_AUDIO_ALL) + +#define ED_EDIT_SRC_INPOINT ED_BASE+668L // in current time format +#define ED_EDIT_SRC_OUTPOINT ED_BASE+669L // in current time format +#define ED_EDIT_REC_INPOINT ED_BASE+670L // in current time format +#define ED_EDIT_REC_OUTPOINT ED_BASE+671L // in current time format + +#define ED_EDIT_REHEARSE_MODE ED_BASE+672L +// can be one of the following possible values: +#define ED_EDIT_BVB ED_BASE+673L // means rehearse the edit with + // "black-video-black" +#define ED_EDIT_VBV ED_BASE+674L +#define ED_EDIT_VVV ED_BASE+675L +#define ED_EDIT_PERFORM ED_BASE+676L // means perform the edit with no + // rehearsal. + +// Set this property to OATRUE to kill the edit if in progress +#define ED_EDIT_ABORT ED_BASE+677L +// how long to wait for edit to complete +#define ED_EDIT_TIMEOUT ED_BASE+678L // in current time format + +// This property causes the device to seek to a point specified by +// ED_EDIT_SEEK_MODE (see below). NOTE: Only one event at a time can seek. +#define ED_EDIT_SEEK ED_BASE+679L // OATRUE means do it now. +#define ED_EDIT_SEEK_MODE ED_BASE+680L +//possible values: +#define ED_EDIT_SEEK_EDIT_IN ED_BASE+681L // seek to edit's inpoint +#define ED_EDIT_SEEK_EDIT_OUT ED_BASE+682L // seek to edit's outpoint +#define ED_EDIT_SEEK_PREROLL ED_BASE+683L // seek to edit's + // inpoint-preroll +#define ED_EDIT_SEEK_PREROLL_CT ED_BASE+684L // seek to preroll point + // using control track (used for tapes with + // discontinuoustimecode before edit point: seek + // to inpoint using timecode, then backup to + // preroll point using control track) +#define ED_EDIT_SEEK_BOOKMARK ED_BASE+685L // seek to bookmark (just like + // timecode search) +// This property is used for multiple-VCR systems where each machine must +// cue to a different location relative to the graph's reference clock. The +// basic idea is that an edit event is setup with an ED_EDIT_OFFSET property +// that tells the VCR what offset to maintain between it's timecode (converted +// to reference clock units) and the reference clock. +#define ED_EDIT_OFFSET ED_BASE+686L // in current time format + +#define ED_EDIT_PREREAD ED_BASE+815L // OATRUE means device supports + // pre-read (recorder can also be + // player + +// +// Some error codes: +// +// device could be in local mode +#define ED_ERR_DEVICE_NOT_READY ED_BASE+700L + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __EDEVDEFS__ + +// eof edevdefs.h diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/edpwin32.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/edpwin32.h new file mode 100644 index 0000000000000000000000000000000000000000..fedec64c5bec6c609b7942cafc59d45c837a9251 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/edpwin32.h @@ -0,0 +1,51 @@ +//+----------------------------------------------------------------------- +// +// Microsoft Windows +// +// Copyright (c) Microsoft Corporation +// +// Description: Enterprise Data Protection Win32 APIs +// +//------------------------------------------------------------------------ + +#ifdef _MSC_VER +#pragma once +#endif + +#ifndef _EDPWIN32_H_ +#define _EDPWIN32_H_ + +#ifndef NT_INCLUDED +#include +#endif /* NT_INCLUDED */ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP) + +#if NTDDI_VERSION >= NTDDI_WIN10_TH2 + +STDAPI ProtectFileToEnterpriseIdentity( + _In_ PCWSTR fileOrFolderPath, + _In_ PCWSTR identity + ); + +#endif + +#if NTDDI_VERSION >= NTDDI_WIN10_RS2 + +typedef struct +{ + bool audit; +}FILE_UNPROTECT_OPTIONS; + +STDAPI UnprotectFile( + _In_ PCWSTR fileOrFolderPath, + _In_opt_ const FILE_UNPROTECT_OPTIONS* options + ); + +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP) */ +#pragma endregion + +#endif // _EDPWIN32_H_ \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/effects.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/effects.h new file mode 100644 index 0000000000000000000000000000000000000000..0554a28a4f088d0bbf92fe569f8178c5516ec28a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/effects.h @@ -0,0 +1,604 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __effectspri_h__ +#define __effectspri_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IWMPEffects_FWD_DEFINED__ +#define __IWMPEffects_FWD_DEFINED__ +typedef interface IWMPEffects IWMPEffects; + +#endif /* __IWMPEffects_FWD_DEFINED__ */ + + +#ifndef __IWMPEffects2_FWD_DEFINED__ +#define __IWMPEffects2_FWD_DEFINED__ +typedef interface IWMPEffects2 IWMPEffects2; + +#endif /* __IWMPEffects2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "wmp.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_effectspri_0000_0000 */ +/* [local] */ + +//========================================================================= +// +// Microsoft Windows Media Technologies +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//========================================================================= +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define EFFECT_CANGOFULLSCREEN ( 0x1 ) + +#define EFFECT_HASPROPERTYPAGE ( 0x2 ) + +#define EFFECT_VARIABLEFREQSTEP ( 0x4 ) + +#define EFFECT_WINDOWEDONLY ( 0x8 ) + +#define EFFECT2_FULLSCREENEXCLUSIVE ( 0x10 ) + +#define SA_BUFFER_SIZE ( 1024 ) + + +enum PlayerState + { + stop_state = 0, + pause_state = 1, + play_state = 2 + } ; + +//********************************************************************** +// Define the minimum and maximum frequency ranges returned in our +// TimedLevel frequency array (i.e. first index in TimedLevel.frequency +// is at 20Hz and last is at 22050Hz). +//********************************************************************** +static const float kfltTimedLevelMaximumFrequency = 22050.0F; +static const float kfltTimedLevelMinimumFrequency = 20.0F; + +/* + * FREQUENCY_INDEX() returns the index into TimedLevel.frequency[] where + * the specified frequency is located in the power spectrum + */ +#define FREQUENCY_INDEX(FREQ)\ + (int)(((FREQ) - kfltTimedLevelMinimumFrequency) /\ + (((kfltTimedLevelMaximumFrequency - kfltTimedLevelMinimumFrequency) / SA_BUFFER_SIZE))) + +typedef struct tagTimedLevel + { + unsigned char frequency[ 2 ][ 1024 ]; + unsigned char waveform[ 2 ][ 1024 ]; + int state; + hyper timeStamp; + } TimedLevel; + + + +extern RPC_IF_HANDLE __MIDL_itf_effectspri_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_effectspri_0000_0000_v0_0_s_ifspec; + +#ifndef __IWMPEffects_INTERFACE_DEFINED__ +#define __IWMPEffects_INTERFACE_DEFINED__ + +/* interface IWMPEffects */ +/* [oleautomation][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWMPEffects; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D3984C13-C3CB-48e2-8BE5-5168340B4F35") + IWMPEffects : public IUnknown + { + public: + virtual /* [helpstring][local] */ HRESULT STDMETHODCALLTYPE Render( + /* [in] */ TimedLevel *pLevels, + /* [in] */ HDC hdc, + /* [in] */ RECT *prc) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE MediaInfo( + /* [in] */ LONG lChannelCount, + /* [in] */ LONG lSampleRate, + /* [in] */ BSTR bstrTitle) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCapabilities( + /* [out] */ DWORD *pdwCapabilities) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTitle( + /* [out] */ BSTR *bstrTitle) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPresetTitle( + /* [in] */ LONG nPreset, + /* [out] */ BSTR *bstrPresetTitle) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPresetCount( + /* [out] */ LONG *pnPresetCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCurrentPreset( + /* [in] */ LONG nPreset) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCurrentPreset( + /* [out] */ LONG *pnPreset) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE DisplayPropertyPage( + /* [in] */ HWND hwndOwner) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GoFullscreen( + /* [in] */ BOOL fFullScreen) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RenderFullScreen( + /* [in] */ TimedLevel *pLevels) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWMPEffectsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IWMPEffects * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IWMPEffects * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IWMPEffects * This); + + DECLSPEC_XFGVIRT(IWMPEffects, Render) + /* [helpstring][local] */ HRESULT ( STDMETHODCALLTYPE *Render )( + IWMPEffects * This, + /* [in] */ TimedLevel *pLevels, + /* [in] */ HDC hdc, + /* [in] */ RECT *prc); + + DECLSPEC_XFGVIRT(IWMPEffects, MediaInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *MediaInfo )( + IWMPEffects * This, + /* [in] */ LONG lChannelCount, + /* [in] */ LONG lSampleRate, + /* [in] */ BSTR bstrTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetCapabilities) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCapabilities )( + IWMPEffects * This, + /* [out] */ DWORD *pdwCapabilities); + + DECLSPEC_XFGVIRT(IWMPEffects, GetTitle) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTitle )( + IWMPEffects * This, + /* [out] */ BSTR *bstrTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetPresetTitle) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPresetTitle )( + IWMPEffects * This, + /* [in] */ LONG nPreset, + /* [out] */ BSTR *bstrPresetTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetPresetCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPresetCount )( + IWMPEffects * This, + /* [out] */ LONG *pnPresetCount); + + DECLSPEC_XFGVIRT(IWMPEffects, SetCurrentPreset) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCurrentPreset )( + IWMPEffects * This, + /* [in] */ LONG nPreset); + + DECLSPEC_XFGVIRT(IWMPEffects, GetCurrentPreset) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCurrentPreset )( + IWMPEffects * This, + /* [out] */ LONG *pnPreset); + + DECLSPEC_XFGVIRT(IWMPEffects, DisplayPropertyPage) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *DisplayPropertyPage )( + IWMPEffects * This, + /* [in] */ HWND hwndOwner); + + DECLSPEC_XFGVIRT(IWMPEffects, GoFullscreen) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GoFullscreen )( + IWMPEffects * This, + /* [in] */ BOOL fFullScreen); + + DECLSPEC_XFGVIRT(IWMPEffects, RenderFullScreen) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RenderFullScreen )( + IWMPEffects * This, + /* [in] */ TimedLevel *pLevels); + + END_INTERFACE + } IWMPEffectsVtbl; + + interface IWMPEffects + { + CONST_VTBL struct IWMPEffectsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWMPEffects_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWMPEffects_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWMPEffects_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWMPEffects_Render(This,pLevels,hdc,prc) \ + ( (This)->lpVtbl -> Render(This,pLevels,hdc,prc) ) + +#define IWMPEffects_MediaInfo(This,lChannelCount,lSampleRate,bstrTitle) \ + ( (This)->lpVtbl -> MediaInfo(This,lChannelCount,lSampleRate,bstrTitle) ) + +#define IWMPEffects_GetCapabilities(This,pdwCapabilities) \ + ( (This)->lpVtbl -> GetCapabilities(This,pdwCapabilities) ) + +#define IWMPEffects_GetTitle(This,bstrTitle) \ + ( (This)->lpVtbl -> GetTitle(This,bstrTitle) ) + +#define IWMPEffects_GetPresetTitle(This,nPreset,bstrPresetTitle) \ + ( (This)->lpVtbl -> GetPresetTitle(This,nPreset,bstrPresetTitle) ) + +#define IWMPEffects_GetPresetCount(This,pnPresetCount) \ + ( (This)->lpVtbl -> GetPresetCount(This,pnPresetCount) ) + +#define IWMPEffects_SetCurrentPreset(This,nPreset) \ + ( (This)->lpVtbl -> SetCurrentPreset(This,nPreset) ) + +#define IWMPEffects_GetCurrentPreset(This,pnPreset) \ + ( (This)->lpVtbl -> GetCurrentPreset(This,pnPreset) ) + +#define IWMPEffects_DisplayPropertyPage(This,hwndOwner) \ + ( (This)->lpVtbl -> DisplayPropertyPage(This,hwndOwner) ) + +#define IWMPEffects_GoFullscreen(This,fFullScreen) \ + ( (This)->lpVtbl -> GoFullscreen(This,fFullScreen) ) + +#define IWMPEffects_RenderFullScreen(This,pLevels) \ + ( (This)->lpVtbl -> RenderFullScreen(This,pLevels) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWMPEffects_INTERFACE_DEFINED__ */ + + +#ifndef __IWMPEffects2_INTERFACE_DEFINED__ +#define __IWMPEffects2_INTERFACE_DEFINED__ + +/* interface IWMPEffects2 */ +/* [oleautomation][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWMPEffects2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("695386EC-AA3C-4618-A5E1-DD9A8B987632") + IWMPEffects2 : public IWMPEffects + { + public: + virtual HRESULT STDMETHODCALLTYPE SetCore( + /* [in] */ IWMPCore *pPlayer) = 0; + + virtual HRESULT STDMETHODCALLTYPE Create( + /* [in] */ HWND hwndParent) = 0; + + virtual HRESULT STDMETHODCALLTYPE Destroy( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE NotifyNewMedia( + /* [in] */ IWMPMedia *pMedia) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnWindowMessage( + /* [in] */ UINT msg, + /* [in] */ WPARAM WParam, + /* [in] */ LPARAM LParam, + /* [in] */ LRESULT *plResultParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE RenderWindowed( + /* [in] */ TimedLevel *pData, + /* [in] */ BOOL fRequiredRender) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWMPEffects2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IWMPEffects2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IWMPEffects2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IWMPEffects2 * This); + + DECLSPEC_XFGVIRT(IWMPEffects, Render) + /* [helpstring][local] */ HRESULT ( STDMETHODCALLTYPE *Render )( + IWMPEffects2 * This, + /* [in] */ TimedLevel *pLevels, + /* [in] */ HDC hdc, + /* [in] */ RECT *prc); + + DECLSPEC_XFGVIRT(IWMPEffects, MediaInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *MediaInfo )( + IWMPEffects2 * This, + /* [in] */ LONG lChannelCount, + /* [in] */ LONG lSampleRate, + /* [in] */ BSTR bstrTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetCapabilities) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCapabilities )( + IWMPEffects2 * This, + /* [out] */ DWORD *pdwCapabilities); + + DECLSPEC_XFGVIRT(IWMPEffects, GetTitle) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTitle )( + IWMPEffects2 * This, + /* [out] */ BSTR *bstrTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetPresetTitle) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPresetTitle )( + IWMPEffects2 * This, + /* [in] */ LONG nPreset, + /* [out] */ BSTR *bstrPresetTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetPresetCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPresetCount )( + IWMPEffects2 * This, + /* [out] */ LONG *pnPresetCount); + + DECLSPEC_XFGVIRT(IWMPEffects, SetCurrentPreset) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCurrentPreset )( + IWMPEffects2 * This, + /* [in] */ LONG nPreset); + + DECLSPEC_XFGVIRT(IWMPEffects, GetCurrentPreset) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCurrentPreset )( + IWMPEffects2 * This, + /* [out] */ LONG *pnPreset); + + DECLSPEC_XFGVIRT(IWMPEffects, DisplayPropertyPage) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *DisplayPropertyPage )( + IWMPEffects2 * This, + /* [in] */ HWND hwndOwner); + + DECLSPEC_XFGVIRT(IWMPEffects, GoFullscreen) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GoFullscreen )( + IWMPEffects2 * This, + /* [in] */ BOOL fFullScreen); + + DECLSPEC_XFGVIRT(IWMPEffects, RenderFullScreen) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RenderFullScreen )( + IWMPEffects2 * This, + /* [in] */ TimedLevel *pLevels); + + DECLSPEC_XFGVIRT(IWMPEffects2, SetCore) + HRESULT ( STDMETHODCALLTYPE *SetCore )( + IWMPEffects2 * This, + /* [in] */ IWMPCore *pPlayer); + + DECLSPEC_XFGVIRT(IWMPEffects2, Create) + HRESULT ( STDMETHODCALLTYPE *Create )( + IWMPEffects2 * This, + /* [in] */ HWND hwndParent); + + DECLSPEC_XFGVIRT(IWMPEffects2, Destroy) + HRESULT ( STDMETHODCALLTYPE *Destroy )( + IWMPEffects2 * This); + + DECLSPEC_XFGVIRT(IWMPEffects2, NotifyNewMedia) + HRESULT ( STDMETHODCALLTYPE *NotifyNewMedia )( + IWMPEffects2 * This, + /* [in] */ IWMPMedia *pMedia); + + DECLSPEC_XFGVIRT(IWMPEffects2, OnWindowMessage) + HRESULT ( STDMETHODCALLTYPE *OnWindowMessage )( + IWMPEffects2 * This, + /* [in] */ UINT msg, + /* [in] */ WPARAM WParam, + /* [in] */ LPARAM LParam, + /* [in] */ LRESULT *plResultParam); + + DECLSPEC_XFGVIRT(IWMPEffects2, RenderWindowed) + HRESULT ( STDMETHODCALLTYPE *RenderWindowed )( + IWMPEffects2 * This, + /* [in] */ TimedLevel *pData, + /* [in] */ BOOL fRequiredRender); + + END_INTERFACE + } IWMPEffects2Vtbl; + + interface IWMPEffects2 + { + CONST_VTBL struct IWMPEffects2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWMPEffects2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWMPEffects2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWMPEffects2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWMPEffects2_Render(This,pLevels,hdc,prc) \ + ( (This)->lpVtbl -> Render(This,pLevels,hdc,prc) ) + +#define IWMPEffects2_MediaInfo(This,lChannelCount,lSampleRate,bstrTitle) \ + ( (This)->lpVtbl -> MediaInfo(This,lChannelCount,lSampleRate,bstrTitle) ) + +#define IWMPEffects2_GetCapabilities(This,pdwCapabilities) \ + ( (This)->lpVtbl -> GetCapabilities(This,pdwCapabilities) ) + +#define IWMPEffects2_GetTitle(This,bstrTitle) \ + ( (This)->lpVtbl -> GetTitle(This,bstrTitle) ) + +#define IWMPEffects2_GetPresetTitle(This,nPreset,bstrPresetTitle) \ + ( (This)->lpVtbl -> GetPresetTitle(This,nPreset,bstrPresetTitle) ) + +#define IWMPEffects2_GetPresetCount(This,pnPresetCount) \ + ( (This)->lpVtbl -> GetPresetCount(This,pnPresetCount) ) + +#define IWMPEffects2_SetCurrentPreset(This,nPreset) \ + ( (This)->lpVtbl -> SetCurrentPreset(This,nPreset) ) + +#define IWMPEffects2_GetCurrentPreset(This,pnPreset) \ + ( (This)->lpVtbl -> GetCurrentPreset(This,pnPreset) ) + +#define IWMPEffects2_DisplayPropertyPage(This,hwndOwner) \ + ( (This)->lpVtbl -> DisplayPropertyPage(This,hwndOwner) ) + +#define IWMPEffects2_GoFullscreen(This,fFullScreen) \ + ( (This)->lpVtbl -> GoFullscreen(This,fFullScreen) ) + +#define IWMPEffects2_RenderFullScreen(This,pLevels) \ + ( (This)->lpVtbl -> RenderFullScreen(This,pLevels) ) + + +#define IWMPEffects2_SetCore(This,pPlayer) \ + ( (This)->lpVtbl -> SetCore(This,pPlayer) ) + +#define IWMPEffects2_Create(This,hwndParent) \ + ( (This)->lpVtbl -> Create(This,hwndParent) ) + +#define IWMPEffects2_Destroy(This) \ + ( (This)->lpVtbl -> Destroy(This) ) + +#define IWMPEffects2_NotifyNewMedia(This,pMedia) \ + ( (This)->lpVtbl -> NotifyNewMedia(This,pMedia) ) + +#define IWMPEffects2_OnWindowMessage(This,msg,WParam,LParam,plResultParam) \ + ( (This)->lpVtbl -> OnWindowMessage(This,msg,WParam,LParam,plResultParam) ) + +#define IWMPEffects2_RenderWindowed(This,pData,fRequiredRender) \ + ( (This)->lpVtbl -> RenderWindowed(This,pData,fRequiredRender) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWMPEffects2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_effectspri_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_effectspri_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_effectspri_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); +void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * ); + +unsigned long __RPC_USER HWND_UserSize( unsigned long *, unsigned long , HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( unsigned long *, unsigned char *, HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(unsigned long *, unsigned char *, HWND * ); +void __RPC_USER HWND_UserFree( unsigned long *, HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.h new file mode 100644 index 0000000000000000000000000000000000000000..c5d9f07b4484bd14e05b27409150741d390ec7fd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.h @@ -0,0 +1,713 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __efswrtinterop_h__ +#define __efswrtinterop_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IProtectionPolicyManagerInterop_FWD_DEFINED__ +#define __IProtectionPolicyManagerInterop_FWD_DEFINED__ +typedef interface IProtectionPolicyManagerInterop IProtectionPolicyManagerInterop; + +#endif /* __IProtectionPolicyManagerInterop_FWD_DEFINED__ */ + + +#ifndef __IProtectionPolicyManagerInterop2_FWD_DEFINED__ +#define __IProtectionPolicyManagerInterop2_FWD_DEFINED__ +typedef interface IProtectionPolicyManagerInterop2 IProtectionPolicyManagerInterop2; + +#endif /* __IProtectionPolicyManagerInterop2_FWD_DEFINED__ */ + + +#ifndef __IProtectionPolicyManagerInterop3_FWD_DEFINED__ +#define __IProtectionPolicyManagerInterop3_FWD_DEFINED__ +typedef interface IProtectionPolicyManagerInterop3 IProtectionPolicyManagerInterop3; + +#endif /* __IProtectionPolicyManagerInterop3_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "inspectable.h" +#include "asyncinfo.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_efswrtinterop_0000_0000 */ +/* [local] */ + +#include +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_efswrtinterop_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_efswrtinterop_0000_0000_v0_0_s_ifspec; + +#ifndef __IProtectionPolicyManagerInterop_INTERFACE_DEFINED__ +#define __IProtectionPolicyManagerInterop_INTERFACE_DEFINED__ + +/* interface IProtectionPolicyManagerInterop */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IProtectionPolicyManagerInterop; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4652651d-c1fe-4ba1-9F0a-c0f56596f721") + IProtectionPolicyManagerInterop : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE RequestAccessForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetForWindow( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **result) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProtectionPolicyManagerInteropVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProtectionPolicyManagerInterop * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProtectionPolicyManagerInterop * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [out] */ __RPC__out ULONG *iidCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*iidCount) IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [out] */ __RPC__deref_out_opt HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [out] */ __RPC__out TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop, RequestAccessForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop, GetForWindow) + HRESULT ( STDMETHODCALLTYPE *GetForWindow )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **result); + + END_INTERFACE + } IProtectionPolicyManagerInteropVtbl; + + interface IProtectionPolicyManagerInterop + { + CONST_VTBL struct IProtectionPolicyManagerInteropVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProtectionPolicyManagerInterop_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProtectionPolicyManagerInterop_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProtectionPolicyManagerInterop_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProtectionPolicyManagerInterop_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IProtectionPolicyManagerInterop_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IProtectionPolicyManagerInterop_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IProtectionPolicyManagerInterop_RequestAccessForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop_GetForWindow(This,appWindow,riid,result) \ + ( (This)->lpVtbl -> GetForWindow(This,appWindow,riid,result) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProtectionPolicyManagerInterop_INTERFACE_DEFINED__ */ + + +#ifndef __IProtectionPolicyManagerInterop2_INTERFACE_DEFINED__ +#define __IProtectionPolicyManagerInterop2_INTERFACE_DEFINED__ + +/* interface IProtectionPolicyManagerInterop2 */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IProtectionPolicyManagerInterop2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("157cfbe4-a78d-4156-b384-61fdac41e686") + IProtectionPolicyManagerInterop2 : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE RequestAccessForAppWithWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessWithAuditingInfoForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessWithMessageForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessForAppWithAuditingInfoForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessForAppWithMessageForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProtectionPolicyManagerInterop2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProtectionPolicyManagerInterop2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProtectionPolicyManagerInterop2 * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [out] */ __RPC__out ULONG *iidCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*iidCount) IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [out] */ __RPC__deref_out_opt HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [out] */ __RPC__out TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop2, RequestAccessForAppWithWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessForAppWithWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop2, RequestAccessWithAuditingInfoForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessWithAuditingInfoForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop2, RequestAccessWithMessageForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessWithMessageForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop2, RequestAccessForAppWithAuditingInfoForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessForAppWithAuditingInfoForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop2, RequestAccessForAppWithMessageForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessForAppWithMessageForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + END_INTERFACE + } IProtectionPolicyManagerInterop2Vtbl; + + interface IProtectionPolicyManagerInterop2 + { + CONST_VTBL struct IProtectionPolicyManagerInterop2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProtectionPolicyManagerInterop2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProtectionPolicyManagerInterop2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProtectionPolicyManagerInterop2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProtectionPolicyManagerInterop2_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IProtectionPolicyManagerInterop2_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IProtectionPolicyManagerInterop2_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IProtectionPolicyManagerInterop2_RequestAccessForAppWithWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessForAppWithWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop2_RequestAccessWithAuditingInfoForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessWithAuditingInfoForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop2_RequestAccessWithMessageForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,messageFromApp,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessWithMessageForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,messageFromApp,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop2_RequestAccessForAppWithAuditingInfoForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessForAppWithAuditingInfoForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop2_RequestAccessForAppWithMessageForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,messageFromApp,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessForAppWithMessageForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,messageFromApp,riid,asyncOperation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProtectionPolicyManagerInterop2_INTERFACE_DEFINED__ */ + + +#ifndef __IProtectionPolicyManagerInterop3_INTERFACE_DEFINED__ +#define __IProtectionPolicyManagerInterop3_INTERFACE_DEFINED__ + +/* interface IProtectionPolicyManagerInterop3 */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IProtectionPolicyManagerInterop3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c1c03933-b398-4d93-b0fd-2972adf802c2") + IProtectionPolicyManagerInterop3 : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE RequestAccessWithBehaviorForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessForAppWithBehaviorForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessToFilesForAppForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessToFilesForProcessForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ UINT32 processId, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ UINT32 processId, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProtectionPolicyManagerInterop3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProtectionPolicyManagerInterop3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProtectionPolicyManagerInterop3 * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [out] */ __RPC__out ULONG *iidCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*iidCount) IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [out] */ __RPC__deref_out_opt HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [out] */ __RPC__out TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessWithBehaviorForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessWithBehaviorForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessForAppWithBehaviorForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessForAppWithBehaviorForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessToFilesForAppForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessToFilesForAppForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessToFilesForProcessForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessToFilesForProcessForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ UINT32 processId, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ UINT32 processId, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + END_INTERFACE + } IProtectionPolicyManagerInterop3Vtbl; + + interface IProtectionPolicyManagerInterop3 + { + CONST_VTBL struct IProtectionPolicyManagerInterop3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProtectionPolicyManagerInterop3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProtectionPolicyManagerInterop3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProtectionPolicyManagerInterop3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProtectionPolicyManagerInterop3_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IProtectionPolicyManagerInterop3_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IProtectionPolicyManagerInterop3_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IProtectionPolicyManagerInterop3_RequestAccessWithBehaviorForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessWithBehaviorForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop3_RequestAccessForAppWithBehaviorForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessForAppWithBehaviorForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop3_RequestAccessToFilesForAppForWindowAsync(This,appWindow,sourceItemListUnk,appPackageFamilyName,auditInfoUnk,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessToFilesForAppForWindowAsync(This,appWindow,sourceItemListUnk,appPackageFamilyName,auditInfoUnk,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop3_RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync(This,appWindow,sourceItemListUnk,appPackageFamilyName,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync(This,appWindow,sourceItemListUnk,appPackageFamilyName,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop3_RequestAccessToFilesForProcessForWindowAsync(This,appWindow,sourceItemListUnk,processId,auditInfoUnk,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessToFilesForProcessForWindowAsync(This,appWindow,sourceItemListUnk,processId,auditInfoUnk,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop3_RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync(This,appWindow,sourceItemListUnk,processId,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync(This,appWindow,sourceItemListUnk,processId,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProtectionPolicyManagerInterop3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_efswrtinterop_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + + +extern RPC_IF_HANDLE __MIDL_itf_efswrtinterop_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_efswrtinterop_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HSTRING_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HSTRING * ); +void __RPC_USER HSTRING_UserFree( __RPC__in unsigned long *, __RPC__in HSTRING * ); + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HSTRING_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HSTRING * ); +void __RPC_USER HSTRING_UserFree64( __RPC__in unsigned long *, __RPC__in HSTRING * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.idl new file mode 100644 index 0000000000000000000000000000000000000000..61716aa5e12d1276b486a2e71f41e571877c08dd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.idl @@ -0,0 +1,149 @@ +/* efswrtinterop.idl + * + * IDL defines for COM APIs to support interop with Windows.Security.EnterpriseData.ProtectionPolicyManager + * + * Copyright (c) Microsoft Corporation. All rights reserved + */ + +import "inspectable.idl"; +import "asyncinfo.idl"; + +cpp_quote("#include ") + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD)") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + [uuid(4652651d-c1fe-4ba1-9F0a-c0f56596f721)] + interface IProtectionPolicyManagerInterop : IInspectable + { + // Returns IAsyncOperation + HRESULT RequestAccessForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING targetIdentity, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + // Returns IProtectionPolicyManager + HRESULT GetForWindow( + [in] HWND appWindow, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** result); + } + + [uuid(157cfbe4-a78d-4156-b384-61fdac41e686)] + interface IProtectionPolicyManagerInterop2 : IInspectable + { + // Returns IAsyncOperation + HRESULT RequestAccessForAppWithWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING appPackageFamilyName, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessWithAuditingInfoForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING targetIdentity, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessWithMessageForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING targetIdentity, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessForAppWithAuditingInfoForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING appPackageFamilyName, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessForAppWithMessageForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING appPackageFamilyName, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + } + + [uuid(c1c03933-b398-4d93-b0fd-2972adf802c2)] + interface IProtectionPolicyManagerInterop3 : IInspectable + { + HRESULT RequestAccessWithBehaviorForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING targetIdentity, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] UINT32 behavior, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessForAppWithBehaviorForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING appPackageFamilyName, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] UINT32 behavior, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + // + // StorageItem access variants below. + // + + HRESULT RequestAccessToFilesForAppForWindowAsync( + [in] HWND appWindow, + [in] IUnknown* sourceItemListUnk, // IIterable* sourceItemList + [in] HSTRING appPackageFamilyName, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync( + [in] HWND appWindow, + [in] IUnknown* sourceItemListUnk, // IIterable* sourceItemList + [in] HSTRING appPackageFamilyName, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] UINT32 behavior, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessToFilesForProcessForWindowAsync( + [in] HWND appWindow, + [in] IUnknown* sourceItemListUnk, // IIterable* sourceItemList + [in] UINT32 processId, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync( + [in] HWND appWindow, + [in] IUnknown* sourceItemListUnk, // IIterable* sourceItemList + [in] UINT32 processId, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] UINT32 behavior, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + } + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD)") \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.h new file mode 100644 index 0000000000000000000000000000000000000000..07ebb9afb265e4091196d631908384d7c71e89ce --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.h @@ -0,0 +1,1079 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __EhStorAPI_h__ +#define __EhStorAPI_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEnumEnhancedStorageACT_FWD_DEFINED__ +#define __IEnumEnhancedStorageACT_FWD_DEFINED__ +typedef interface IEnumEnhancedStorageACT IEnumEnhancedStorageACT; + +#endif /* __IEnumEnhancedStorageACT_FWD_DEFINED__ */ + + +#ifndef __IEnhancedStorageACT_FWD_DEFINED__ +#define __IEnhancedStorageACT_FWD_DEFINED__ +typedef interface IEnhancedStorageACT IEnhancedStorageACT; + +#endif /* __IEnhancedStorageACT_FWD_DEFINED__ */ + + +#ifndef __IEnhancedStorageACT2_FWD_DEFINED__ +#define __IEnhancedStorageACT2_FWD_DEFINED__ +typedef interface IEnhancedStorageACT2 IEnhancedStorageACT2; + +#endif /* __IEnhancedStorageACT2_FWD_DEFINED__ */ + + +#ifndef __IEnhancedStorageACT3_FWD_DEFINED__ +#define __IEnhancedStorageACT3_FWD_DEFINED__ +typedef interface IEnhancedStorageACT3 IEnhancedStorageACT3; + +#endif /* __IEnhancedStorageACT3_FWD_DEFINED__ */ + + +#ifndef __IEnhancedStorageSilo_FWD_DEFINED__ +#define __IEnhancedStorageSilo_FWD_DEFINED__ +typedef interface IEnhancedStorageSilo IEnhancedStorageSilo; + +#endif /* __IEnhancedStorageSilo_FWD_DEFINED__ */ + + +#ifndef __IEnhancedStorageSiloAction_FWD_DEFINED__ +#define __IEnhancedStorageSiloAction_FWD_DEFINED__ +typedef interface IEnhancedStorageSiloAction IEnhancedStorageSiloAction; + +#endif /* __IEnhancedStorageSiloAction_FWD_DEFINED__ */ + + +#ifndef __EnumEnhancedStorageACT_FWD_DEFINED__ +#define __EnumEnhancedStorageACT_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnumEnhancedStorageACT EnumEnhancedStorageACT; +#else +typedef struct EnumEnhancedStorageACT EnumEnhancedStorageACT; +#endif /* __cplusplus */ + +#endif /* __EnumEnhancedStorageACT_FWD_DEFINED__ */ + + +#ifndef __EnhancedStorageACT_FWD_DEFINED__ +#define __EnhancedStorageACT_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnhancedStorageACT EnhancedStorageACT; +#else +typedef struct EnhancedStorageACT EnhancedStorageACT; +#endif /* __cplusplus */ + +#endif /* __EnhancedStorageACT_FWD_DEFINED__ */ + + +#ifndef __EnhancedStorageSilo_FWD_DEFINED__ +#define __EnhancedStorageSilo_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnhancedStorageSilo EnhancedStorageSilo; +#else +typedef struct EnhancedStorageSilo EnhancedStorageSilo; +#endif /* __cplusplus */ + +#endif /* __EnhancedStorageSilo_FWD_DEFINED__ */ + + +#ifndef __EnhancedStorageSiloAction_FWD_DEFINED__ +#define __EnhancedStorageSiloAction_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnhancedStorageSiloAction EnhancedStorageSiloAction; +#else +typedef struct EnhancedStorageSiloAction EnhancedStorageSiloAction; +#endif /* __cplusplus */ + +#endif /* __EnhancedStorageSiloAction_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "objidl.h" +#include "ocidl.h" +#include "propidl.h" +#include "portabledeviceapi.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_EhStorAPI_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if (_WIN32_WINNT >= 0x0501) // XP and later + + + + + + +typedef struct _ACT_AUTHORIZATION_STATE + { + ULONG ulState; + } ACT_AUTHORIZATION_STATE; + +typedef struct _SILO_INFO + { + ULONG ulSTID; + UCHAR SpecificationMajor; + UCHAR SpecificationMinor; + UCHAR ImplementationMajor; + UCHAR ImplementationMinor; + UCHAR type; + UCHAR capabilities; + } SILO_INFO; + +typedef /* [public][helpstring][v1_enum] */ +enum _ACT_AUTHORIZATION_STATE_VALUE + { + ACT_UNAUTHORIZED = 0, + ACT_AUTHORIZED = 0x1 + } ACT_AUTHORIZATION_STATE_VALUE; + +typedef /* [public][helpstring][v1_enum] */ enum _ACT_AUTHORIZATION_STATE_VALUE *PACT_AUTHORIZATION_STATE_VALUE; + + + +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0000_v0_0_s_ifspec; + +#ifndef __IEnumEnhancedStorageACT_INTERFACE_DEFINED__ +#define __IEnumEnhancedStorageACT_INTERFACE_DEFINED__ + +/* interface IEnumEnhancedStorageACT */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnumEnhancedStorageACT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("09b224bd-1335-4631-a7ff-cfd3a92646d7") + IEnumEnhancedStorageACT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetACTs( + /* [size_is][size_is][out] */ IEnhancedStorageACT ***pppIEnhancedStorageACTs, + /* [out] */ ULONG *pcEnhancedStorageACTs) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMatchingACT( + /* [in] */ LPCWSTR szVolume, + /* [out] */ IEnhancedStorageACT **ppIEnhancedStorageACT) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumEnhancedStorageACTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumEnhancedStorageACT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumEnhancedStorageACT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumEnhancedStorageACT * This); + + DECLSPEC_XFGVIRT(IEnumEnhancedStorageACT, GetACTs) + HRESULT ( STDMETHODCALLTYPE *GetACTs )( + IEnumEnhancedStorageACT * This, + /* [size_is][size_is][out] */ IEnhancedStorageACT ***pppIEnhancedStorageACTs, + /* [out] */ ULONG *pcEnhancedStorageACTs); + + DECLSPEC_XFGVIRT(IEnumEnhancedStorageACT, GetMatchingACT) + HRESULT ( STDMETHODCALLTYPE *GetMatchingACT )( + IEnumEnhancedStorageACT * This, + /* [in] */ LPCWSTR szVolume, + /* [out] */ IEnhancedStorageACT **ppIEnhancedStorageACT); + + END_INTERFACE + } IEnumEnhancedStorageACTVtbl; + + interface IEnumEnhancedStorageACT + { + CONST_VTBL struct IEnumEnhancedStorageACTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumEnhancedStorageACT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumEnhancedStorageACT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumEnhancedStorageACT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumEnhancedStorageACT_GetACTs(This,pppIEnhancedStorageACTs,pcEnhancedStorageACTs) \ + ( (This)->lpVtbl -> GetACTs(This,pppIEnhancedStorageACTs,pcEnhancedStorageACTs) ) + +#define IEnumEnhancedStorageACT_GetMatchingACT(This,szVolume,ppIEnhancedStorageACT) \ + ( (This)->lpVtbl -> GetMatchingACT(This,szVolume,ppIEnhancedStorageACT) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumEnhancedStorageACT_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_EhStorAPI_0000_0001 */ +/* [local] */ + +#define ACT_AUTHORIZE_ON_RESUME 0x00000001 +#define ACT_AUTHORIZE_ON_SESSION_UNLOCK 0x00000002 + + +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0001_v0_0_s_ifspec; + +#ifndef __IEnhancedStorageACT_INTERFACE_DEFINED__ +#define __IEnhancedStorageACT_INTERFACE_DEFINED__ + +/* interface IEnhancedStorageACT */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnhancedStorageACT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6e7781f4-e0f2-4239-b976-a01abab52930") + IEnhancedStorageACT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Authorize( + /* [in] */ DWORD hwndParent, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE Unauthorize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAuthorizationState( + /* [out] */ ACT_AUTHORIZATION_STATE *pState) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMatchingVolume( + /* [out] */ LPWSTR *ppwszVolume) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUniqueIdentity( + /* [out] */ LPWSTR *ppwszIdentity) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSilos( + /* [size_is][size_is][size_is][out] */ IEnhancedStorageSilo ***pppIEnhancedStorageSilos, + /* [out] */ ULONG *pcEnhancedStorageSilos) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnhancedStorageACTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnhancedStorageACT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnhancedStorageACT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnhancedStorageACT * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Authorize) + HRESULT ( STDMETHODCALLTYPE *Authorize )( + IEnhancedStorageACT * This, + /* [in] */ DWORD hwndParent, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Unauthorize) + HRESULT ( STDMETHODCALLTYPE *Unauthorize )( + IEnhancedStorageACT * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetAuthorizationState) + HRESULT ( STDMETHODCALLTYPE *GetAuthorizationState )( + IEnhancedStorageACT * This, + /* [out] */ ACT_AUTHORIZATION_STATE *pState); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetMatchingVolume) + HRESULT ( STDMETHODCALLTYPE *GetMatchingVolume )( + IEnhancedStorageACT * This, + /* [out] */ LPWSTR *ppwszVolume); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetUniqueIdentity) + HRESULT ( STDMETHODCALLTYPE *GetUniqueIdentity )( + IEnhancedStorageACT * This, + /* [out] */ LPWSTR *ppwszIdentity); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetSilos) + HRESULT ( STDMETHODCALLTYPE *GetSilos )( + IEnhancedStorageACT * This, + /* [size_is][size_is][size_is][out] */ IEnhancedStorageSilo ***pppIEnhancedStorageSilos, + /* [out] */ ULONG *pcEnhancedStorageSilos); + + END_INTERFACE + } IEnhancedStorageACTVtbl; + + interface IEnhancedStorageACT + { + CONST_VTBL struct IEnhancedStorageACTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnhancedStorageACT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnhancedStorageACT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnhancedStorageACT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnhancedStorageACT_Authorize(This,hwndParent,dwFlags) \ + ( (This)->lpVtbl -> Authorize(This,hwndParent,dwFlags) ) + +#define IEnhancedStorageACT_Unauthorize(This) \ + ( (This)->lpVtbl -> Unauthorize(This) ) + +#define IEnhancedStorageACT_GetAuthorizationState(This,pState) \ + ( (This)->lpVtbl -> GetAuthorizationState(This,pState) ) + +#define IEnhancedStorageACT_GetMatchingVolume(This,ppwszVolume) \ + ( (This)->lpVtbl -> GetMatchingVolume(This,ppwszVolume) ) + +#define IEnhancedStorageACT_GetUniqueIdentity(This,ppwszIdentity) \ + ( (This)->lpVtbl -> GetUniqueIdentity(This,ppwszIdentity) ) + +#define IEnhancedStorageACT_GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) \ + ( (This)->lpVtbl -> GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnhancedStorageACT_INTERFACE_DEFINED__ */ + + +#ifndef __IEnhancedStorageACT2_INTERFACE_DEFINED__ +#define __IEnhancedStorageACT2_INTERFACE_DEFINED__ + +/* interface IEnhancedStorageACT2 */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnhancedStorageACT2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4DA57D2E-8EB3-41f6-A07E-98B52B88242B") + IEnhancedStorageACT2 : public IEnhancedStorageACT + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDeviceName( + /* [out] */ LPWSTR *ppwszDeviceName) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsDeviceRemovable( + /* [out] */ BOOL *pIsDeviceRemovable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnhancedStorageACT2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnhancedStorageACT2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnhancedStorageACT2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnhancedStorageACT2 * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Authorize) + HRESULT ( STDMETHODCALLTYPE *Authorize )( + IEnhancedStorageACT2 * This, + /* [in] */ DWORD hwndParent, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Unauthorize) + HRESULT ( STDMETHODCALLTYPE *Unauthorize )( + IEnhancedStorageACT2 * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetAuthorizationState) + HRESULT ( STDMETHODCALLTYPE *GetAuthorizationState )( + IEnhancedStorageACT2 * This, + /* [out] */ ACT_AUTHORIZATION_STATE *pState); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetMatchingVolume) + HRESULT ( STDMETHODCALLTYPE *GetMatchingVolume )( + IEnhancedStorageACT2 * This, + /* [out] */ LPWSTR *ppwszVolume); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetUniqueIdentity) + HRESULT ( STDMETHODCALLTYPE *GetUniqueIdentity )( + IEnhancedStorageACT2 * This, + /* [out] */ LPWSTR *ppwszIdentity); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetSilos) + HRESULT ( STDMETHODCALLTYPE *GetSilos )( + IEnhancedStorageACT2 * This, + /* [size_is][size_is][size_is][out] */ IEnhancedStorageSilo ***pppIEnhancedStorageSilos, + /* [out] */ ULONG *pcEnhancedStorageSilos); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT2, GetDeviceName) + HRESULT ( STDMETHODCALLTYPE *GetDeviceName )( + IEnhancedStorageACT2 * This, + /* [out] */ LPWSTR *ppwszDeviceName); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT2, IsDeviceRemovable) + HRESULT ( STDMETHODCALLTYPE *IsDeviceRemovable )( + IEnhancedStorageACT2 * This, + /* [out] */ BOOL *pIsDeviceRemovable); + + END_INTERFACE + } IEnhancedStorageACT2Vtbl; + + interface IEnhancedStorageACT2 + { + CONST_VTBL struct IEnhancedStorageACT2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnhancedStorageACT2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnhancedStorageACT2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnhancedStorageACT2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnhancedStorageACT2_Authorize(This,hwndParent,dwFlags) \ + ( (This)->lpVtbl -> Authorize(This,hwndParent,dwFlags) ) + +#define IEnhancedStorageACT2_Unauthorize(This) \ + ( (This)->lpVtbl -> Unauthorize(This) ) + +#define IEnhancedStorageACT2_GetAuthorizationState(This,pState) \ + ( (This)->lpVtbl -> GetAuthorizationState(This,pState) ) + +#define IEnhancedStorageACT2_GetMatchingVolume(This,ppwszVolume) \ + ( (This)->lpVtbl -> GetMatchingVolume(This,ppwszVolume) ) + +#define IEnhancedStorageACT2_GetUniqueIdentity(This,ppwszIdentity) \ + ( (This)->lpVtbl -> GetUniqueIdentity(This,ppwszIdentity) ) + +#define IEnhancedStorageACT2_GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) \ + ( (This)->lpVtbl -> GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) ) + + +#define IEnhancedStorageACT2_GetDeviceName(This,ppwszDeviceName) \ + ( (This)->lpVtbl -> GetDeviceName(This,ppwszDeviceName) ) + +#define IEnhancedStorageACT2_IsDeviceRemovable(This,pIsDeviceRemovable) \ + ( (This)->lpVtbl -> IsDeviceRemovable(This,pIsDeviceRemovable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnhancedStorageACT2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_EhStorAPI_0000_0003 */ +/* [local] */ + +#define ACT_UNAUTHORIZE_ON_SUSPEND 0x00000001 +#define ACT_UNAUTHORIZE_ON_SESSION_LOCK 0x00000002 + + +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0003_v0_0_s_ifspec; + +#ifndef __IEnhancedStorageACT3_INTERFACE_DEFINED__ +#define __IEnhancedStorageACT3_INTERFACE_DEFINED__ + +/* interface IEnhancedStorageACT3 */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnhancedStorageACT3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("022150A1-113D-11DF-BB61-001AA01BBC58") + IEnhancedStorageACT3 : public IEnhancedStorageACT2 + { + public: + virtual HRESULT STDMETHODCALLTYPE UnauthorizeEx( + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsQueueFrozen( + /* [out] */ BOOL *pIsQueueFrozen) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetShellExtSupport( + /* [out] */ BOOL *pShellExtSupport) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnhancedStorageACT3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnhancedStorageACT3 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnhancedStorageACT3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnhancedStorageACT3 * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Authorize) + HRESULT ( STDMETHODCALLTYPE *Authorize )( + IEnhancedStorageACT3 * This, + /* [in] */ DWORD hwndParent, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Unauthorize) + HRESULT ( STDMETHODCALLTYPE *Unauthorize )( + IEnhancedStorageACT3 * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetAuthorizationState) + HRESULT ( STDMETHODCALLTYPE *GetAuthorizationState )( + IEnhancedStorageACT3 * This, + /* [out] */ ACT_AUTHORIZATION_STATE *pState); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetMatchingVolume) + HRESULT ( STDMETHODCALLTYPE *GetMatchingVolume )( + IEnhancedStorageACT3 * This, + /* [out] */ LPWSTR *ppwszVolume); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetUniqueIdentity) + HRESULT ( STDMETHODCALLTYPE *GetUniqueIdentity )( + IEnhancedStorageACT3 * This, + /* [out] */ LPWSTR *ppwszIdentity); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetSilos) + HRESULT ( STDMETHODCALLTYPE *GetSilos )( + IEnhancedStorageACT3 * This, + /* [size_is][size_is][size_is][out] */ IEnhancedStorageSilo ***pppIEnhancedStorageSilos, + /* [out] */ ULONG *pcEnhancedStorageSilos); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT2, GetDeviceName) + HRESULT ( STDMETHODCALLTYPE *GetDeviceName )( + IEnhancedStorageACT3 * This, + /* [out] */ LPWSTR *ppwszDeviceName); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT2, IsDeviceRemovable) + HRESULT ( STDMETHODCALLTYPE *IsDeviceRemovable )( + IEnhancedStorageACT3 * This, + /* [out] */ BOOL *pIsDeviceRemovable); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT3, UnauthorizeEx) + HRESULT ( STDMETHODCALLTYPE *UnauthorizeEx )( + IEnhancedStorageACT3 * This, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT3, IsQueueFrozen) + HRESULT ( STDMETHODCALLTYPE *IsQueueFrozen )( + IEnhancedStorageACT3 * This, + /* [out] */ BOOL *pIsQueueFrozen); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT3, GetShellExtSupport) + HRESULT ( STDMETHODCALLTYPE *GetShellExtSupport )( + IEnhancedStorageACT3 * This, + /* [out] */ BOOL *pShellExtSupport); + + END_INTERFACE + } IEnhancedStorageACT3Vtbl; + + interface IEnhancedStorageACT3 + { + CONST_VTBL struct IEnhancedStorageACT3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnhancedStorageACT3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnhancedStorageACT3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnhancedStorageACT3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnhancedStorageACT3_Authorize(This,hwndParent,dwFlags) \ + ( (This)->lpVtbl -> Authorize(This,hwndParent,dwFlags) ) + +#define IEnhancedStorageACT3_Unauthorize(This) \ + ( (This)->lpVtbl -> Unauthorize(This) ) + +#define IEnhancedStorageACT3_GetAuthorizationState(This,pState) \ + ( (This)->lpVtbl -> GetAuthorizationState(This,pState) ) + +#define IEnhancedStorageACT3_GetMatchingVolume(This,ppwszVolume) \ + ( (This)->lpVtbl -> GetMatchingVolume(This,ppwszVolume) ) + +#define IEnhancedStorageACT3_GetUniqueIdentity(This,ppwszIdentity) \ + ( (This)->lpVtbl -> GetUniqueIdentity(This,ppwszIdentity) ) + +#define IEnhancedStorageACT3_GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) \ + ( (This)->lpVtbl -> GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) ) + + +#define IEnhancedStorageACT3_GetDeviceName(This,ppwszDeviceName) \ + ( (This)->lpVtbl -> GetDeviceName(This,ppwszDeviceName) ) + +#define IEnhancedStorageACT3_IsDeviceRemovable(This,pIsDeviceRemovable) \ + ( (This)->lpVtbl -> IsDeviceRemovable(This,pIsDeviceRemovable) ) + + +#define IEnhancedStorageACT3_UnauthorizeEx(This,dwFlags) \ + ( (This)->lpVtbl -> UnauthorizeEx(This,dwFlags) ) + +#define IEnhancedStorageACT3_IsQueueFrozen(This,pIsQueueFrozen) \ + ( (This)->lpVtbl -> IsQueueFrozen(This,pIsQueueFrozen) ) + +#define IEnhancedStorageACT3_GetShellExtSupport(This,pShellExtSupport) \ + ( (This)->lpVtbl -> GetShellExtSupport(This,pShellExtSupport) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnhancedStorageACT3_INTERFACE_DEFINED__ */ + + +#ifndef __IEnhancedStorageSilo_INTERFACE_DEFINED__ +#define __IEnhancedStorageSilo_INTERFACE_DEFINED__ + +/* interface IEnhancedStorageSilo */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnhancedStorageSilo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5aef78c6-2242-4703-bf49-44b29357a359") + IEnhancedStorageSilo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetInfo( + /* [out] */ SILO_INFO *pSiloInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetActions( + /* [size_is][size_is][out] */ IEnhancedStorageSiloAction ***pppIEnhancedStorageSiloActions, + /* [out] */ ULONG *pcEnhancedStorageSiloActions) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendCommand( + /* [in] */ UCHAR Command, + /* [size_is][in] */ BYTE *pbCommandBuffer, + /* [in] */ ULONG cbCommandBuffer, + /* [size_is][out] */ BYTE *pbResponseBuffer, + /* [out][in] */ ULONG *pcbResponseBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPortableDevice( + /* [out] */ IPortableDevice **ppIPortableDevice) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDevicePath( + /* [out] */ LPWSTR *ppwszSiloDevicePath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnhancedStorageSiloVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnhancedStorageSilo * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnhancedStorageSilo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnhancedStorageSilo * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageSilo, GetInfo) + HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IEnhancedStorageSilo * This, + /* [out] */ SILO_INFO *pSiloInfo); + + DECLSPEC_XFGVIRT(IEnhancedStorageSilo, GetActions) + HRESULT ( STDMETHODCALLTYPE *GetActions )( + IEnhancedStorageSilo * This, + /* [size_is][size_is][out] */ IEnhancedStorageSiloAction ***pppIEnhancedStorageSiloActions, + /* [out] */ ULONG *pcEnhancedStorageSiloActions); + + DECLSPEC_XFGVIRT(IEnhancedStorageSilo, SendCommand) + HRESULT ( STDMETHODCALLTYPE *SendCommand )( + IEnhancedStorageSilo * This, + /* [in] */ UCHAR Command, + /* [size_is][in] */ BYTE *pbCommandBuffer, + /* [in] */ ULONG cbCommandBuffer, + /* [size_is][out] */ BYTE *pbResponseBuffer, + /* [out][in] */ ULONG *pcbResponseBuffer); + + DECLSPEC_XFGVIRT(IEnhancedStorageSilo, GetPortableDevice) + HRESULT ( STDMETHODCALLTYPE *GetPortableDevice )( + IEnhancedStorageSilo * This, + /* [out] */ IPortableDevice **ppIPortableDevice); + + DECLSPEC_XFGVIRT(IEnhancedStorageSilo, GetDevicePath) + HRESULT ( STDMETHODCALLTYPE *GetDevicePath )( + IEnhancedStorageSilo * This, + /* [out] */ LPWSTR *ppwszSiloDevicePath); + + END_INTERFACE + } IEnhancedStorageSiloVtbl; + + interface IEnhancedStorageSilo + { + CONST_VTBL struct IEnhancedStorageSiloVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnhancedStorageSilo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnhancedStorageSilo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnhancedStorageSilo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnhancedStorageSilo_GetInfo(This,pSiloInfo) \ + ( (This)->lpVtbl -> GetInfo(This,pSiloInfo) ) + +#define IEnhancedStorageSilo_GetActions(This,pppIEnhancedStorageSiloActions,pcEnhancedStorageSiloActions) \ + ( (This)->lpVtbl -> GetActions(This,pppIEnhancedStorageSiloActions,pcEnhancedStorageSiloActions) ) + +#define IEnhancedStorageSilo_SendCommand(This,Command,pbCommandBuffer,cbCommandBuffer,pbResponseBuffer,pcbResponseBuffer) \ + ( (This)->lpVtbl -> SendCommand(This,Command,pbCommandBuffer,cbCommandBuffer,pbResponseBuffer,pcbResponseBuffer) ) + +#define IEnhancedStorageSilo_GetPortableDevice(This,ppIPortableDevice) \ + ( (This)->lpVtbl -> GetPortableDevice(This,ppIPortableDevice) ) + +#define IEnhancedStorageSilo_GetDevicePath(This,ppwszSiloDevicePath) \ + ( (This)->lpVtbl -> GetDevicePath(This,ppwszSiloDevicePath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnhancedStorageSilo_INTERFACE_DEFINED__ */ + + +#ifndef __IEnhancedStorageSiloAction_INTERFACE_DEFINED__ +#define __IEnhancedStorageSiloAction_INTERFACE_DEFINED__ + +/* interface IEnhancedStorageSiloAction */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnhancedStorageSiloAction; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b6f7f311-206f-4ff8-9c4b-27efee77a86f") + IEnhancedStorageSiloAction : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [out] */ LPWSTR *ppwszActionName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescription( + /* [out] */ LPWSTR *ppwszActionDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE Invoke( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnhancedStorageSiloActionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnhancedStorageSiloAction * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnhancedStorageSiloAction * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnhancedStorageSiloAction * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageSiloAction, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + IEnhancedStorageSiloAction * This, + /* [out] */ LPWSTR *ppwszActionName); + + DECLSPEC_XFGVIRT(IEnhancedStorageSiloAction, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + IEnhancedStorageSiloAction * This, + /* [out] */ LPWSTR *ppwszActionDescription); + + DECLSPEC_XFGVIRT(IEnhancedStorageSiloAction, Invoke) + HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEnhancedStorageSiloAction * This); + + END_INTERFACE + } IEnhancedStorageSiloActionVtbl; + + interface IEnhancedStorageSiloAction + { + CONST_VTBL struct IEnhancedStorageSiloActionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnhancedStorageSiloAction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnhancedStorageSiloAction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnhancedStorageSiloAction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnhancedStorageSiloAction_GetName(This,ppwszActionName) \ + ( (This)->lpVtbl -> GetName(This,ppwszActionName) ) + +#define IEnhancedStorageSiloAction_GetDescription(This,ppwszActionDescription) \ + ( (This)->lpVtbl -> GetDescription(This,ppwszActionDescription) ) + +#define IEnhancedStorageSiloAction_Invoke(This) \ + ( (This)->lpVtbl -> Invoke(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnhancedStorageSiloAction_INTERFACE_DEFINED__ */ + + + +#ifndef __EnhancedStorageAPILib_LIBRARY_DEFINED__ +#define __EnhancedStorageAPILib_LIBRARY_DEFINED__ + +/* library EnhancedStorageAPILib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_EnhancedStorageAPILib; + +EXTERN_C const CLSID CLSID_EnumEnhancedStorageACT; + +#ifdef __cplusplus + +class DECLSPEC_UUID("fe841493-835c-4fa3-b6cc-b4b2d4719848") +EnumEnhancedStorageACT; +#endif + +EXTERN_C const CLSID CLSID_EnhancedStorageACT; + +#ifdef __cplusplus + +class DECLSPEC_UUID("af076a15-2ece-4ad4-bb21-29f040e176d8") +EnhancedStorageACT; +#endif + +EXTERN_C const CLSID CLSID_EnhancedStorageSilo; + +#ifdef __cplusplus + +class DECLSPEC_UUID("cb25220c-76c7-4fee-842b-f3383cd022bc") +EnhancedStorageSilo; +#endif + +EXTERN_C const CLSID CLSID_EnhancedStorageSiloAction; + +#ifdef __cplusplus + +class DECLSPEC_UUID("886D29DD-B506-466B-9FBF-B44FF383FB3F") +EnhancedStorageSiloAction; +#endif +#endif /* __EnhancedStorageAPILib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_EhStorAPI_0000_0007 */ +/* [local] */ + +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.idl new file mode 100644 index 0000000000000000000000000000000000000000..12f1c3717e02aaed378073992ef099f2a1bb761b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.idl @@ -0,0 +1,269 @@ +//----------------------------------------------------------------------------- +// +// This file contains interface description for EnhancedStorage API which +// provides access to IEEE 1667 compatible devices for client applications. +// +// (C) COPYRIGHT MICROSOFT CORPORATION +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#if (_WIN32_WINNT >= 0x0501) // XP and later") + +import "unknwn.idl"; +import "objidl.idl"; +import "ocidl.idl"; +import "wtypes.idl"; +import "propidl.idl"; +import "portabledeviceapi.idl"; + +interface IEnumEnhancedStorageACT; +interface IEnhancedStorageACT; +interface IEnhancedStorageACT2; +interface IEnhancedStorageACT3; +interface IEnhancedStorageSilo; +interface IEnhancedStorageSiloAction; + +typedef struct _ACT_AUTHORIZATION_STATE { + ULONG ulState; +} ACT_AUTHORIZATION_STATE; + +typedef struct _SILO_INFO { + ULONG ulSTID; + UCHAR SpecificationMajor; + UCHAR SpecificationMinor; + UCHAR ImplementationMajor; + UCHAR ImplementationMinor; + UCHAR type; + UCHAR capabilities; +} SILO_INFO; + +[ + v1_enum, + //uuid(022150a0-113d-11df-bb61-001aa01bbc58), + helpstring( "Authorization states of Enhanced Storage ACTs" ), + public +] +typedef enum _ACT_AUTHORIZATION_STATE_VALUE +{ + ACT_UNAUTHORIZED = 0x0000, + ACT_AUTHORIZED = 0x0001 +} ACT_AUTHORIZATION_STATE_VALUE, *PACT_AUTHORIZATION_STATE_VALUE; + +//--------------------------------------------------------- +// This interface is used to enumerate available +// addressable command targets (ACTs). +//--------------------------------------------------------- +[ + object, + uuid(09b224bd-1335-4631-a7ff-cfd3a92646d7), + local, + helpstring("IEnumEnhancedStorageACT Interface"), + pointer_default(unique) +] +interface IEnumEnhancedStorageACT : IUnknown +{ + HRESULT GetACTs( + [out, size_is( , *pcEnhancedStorageACTs)] IEnhancedStorageACT*** pppIEnhancedStorageACTs, + [out] ULONG* pcEnhancedStorageACTs); + + HRESULT GetMatchingACT( + [in] LPCWSTR szVolume, + [out] IEnhancedStorageACT** ppIEnhancedStorageACT); +}; + +//--------------------------------------------------------- +// This interface is used to access an ACT. +//--------------------------------------------------------- +cpp_quote("#define ACT_AUTHORIZE_ON_RESUME 0x00000001") +cpp_quote("#define ACT_AUTHORIZE_ON_SESSION_UNLOCK 0x00000002") + +[ + object, + uuid(6e7781f4-e0f2-4239-b976-a01abab52930), + local, + helpstring("IEnhancedStorageACT Interface"), + pointer_default(unique) +] +interface IEnhancedStorageACT : IUnknown +{ + HRESULT Authorize( + [in] DWORD hwndParent, + [in] DWORD dwFlags); + + HRESULT Unauthorize(); + + HRESULT GetAuthorizationState( + [out] ACT_AUTHORIZATION_STATE* pState); + + HRESULT GetMatchingVolume( + [out] LPWSTR* ppwszVolume); + + HRESULT GetUniqueIdentity( + [out] LPWSTR* ppwszIdentity); + + HRESULT GetSilos( + [out, size_is( , *pcEnhancedStorageSilos, )] IEnhancedStorageSilo*** pppIEnhancedStorageSilos, + [out] ULONG* pcEnhancedStorageSilos); + +}; + +//--------------------------------------------------------- +// This is the extension of IEnhancedStorageACT interface. +//--------------------------------------------------------- +[ + object, + uuid(4DA57D2E-8EB3-41f6-A07E-98B52B88242B), + local, + helpstring("IEnhancedStorageACT2 Interface"), + pointer_default(unique) +] +interface IEnhancedStorageACT2 : IEnhancedStorageACT +{ + HRESULT GetDeviceName( + [out] LPWSTR* ppwszDeviceName); + + HRESULT IsDeviceRemovable( + [out] BOOL* pIsDeviceRemovable); +}; + +//--------------------------------------------------------- +// This is the extension of IEnhancedStorageACT2 interface. +//--------------------------------------------------------- +cpp_quote("#define ACT_UNAUTHORIZE_ON_SUSPEND 0x00000001") +cpp_quote("#define ACT_UNAUTHORIZE_ON_SESSION_LOCK 0x00000002") + +[ + object, + uuid(022150A1-113D-11DF-BB61-001AA01BBC58), + local, + helpstring("IEnhancedStorageACT3 Interface"), + pointer_default(unique) +] +interface IEnhancedStorageACT3 : IEnhancedStorageACT2 +{ + HRESULT UnauthorizeEx( + [in] DWORD dwFlags); + + HRESULT IsQueueFrozen( + [out] BOOL* pIsQueueFrozen); + + HRESULT GetShellExtSupport( + [out] BOOL* pShellExtSupport); +}; + +//--------------------------------------------------------- +// This interface is used to access a silo. +//--------------------------------------------------------- +[ + object, + uuid(5aef78c6-2242-4703-bf49-44b29357a359), + local, + helpstring("IEnhancedStorageSilo Interface"), + pointer_default(unique) +] +interface IEnhancedStorageSilo : IUnknown +{ + HRESULT GetInfo( + [out] SILO_INFO* pSiloInfo); + + HRESULT GetActions( + [out, size_is( , *pcEnhancedStorageSiloActions)] IEnhancedStorageSiloAction*** pppIEnhancedStorageSiloActions, + [out] ULONG* pcEnhancedStorageSiloActions); + + HRESULT SendCommand( + [in] UCHAR Command, + [in, size_is(cbCommandBuffer)] BYTE* pbCommandBuffer, + [in] ULONG cbCommandBuffer, + [out, size_is(*pcbResponseBuffer)] BYTE* pbResponseBuffer, + [in, out] ULONG* pcbResponseBuffer); + + HRESULT GetPortableDevice( + [out] IPortableDevice** ppIPortableDevice); + + HRESULT GetDevicePath( + [out] LPWSTR* ppwszSiloDevicePath); +}; + +//--------------------------------------------------------- +// This interface is used to access a silo action. +//--------------------------------------------------------- +[ + object, + uuid(b6f7f311-206f-4ff8-9c4b-27efee77a86f), + local, + helpstring("IEnhancedStorageSiloAction Interface"), + pointer_default(unique) +] +interface IEnhancedStorageSiloAction : IUnknown +{ + HRESULT GetName( + [out] LPWSTR* ppwszActionName); + + HRESULT GetDescription( + [out] LPWSTR* ppwszActionDescription); + + HRESULT Invoke(); +}; + +//--------------------------------------------------------- +// Library definition. +//--------------------------------------------------------- +[ + uuid(ff9d683b-b90a-49b4-9649-f93756bad71f), + version(1.0), + helpstring("EnhancedStorageAPI 1.0 Type Library") +] +library EnhancedStorageAPILib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + uuid(fe841493-835c-4fa3-b6cc-b4b2d4719848), + helpstring("EnumEnhancedStorageACT Class") + ] + coclass EnumEnhancedStorageACT + { + [default] interface IEnumEnhancedStorageACT; + }; + + + [ + uuid(af076a15-2ece-4ad4-bb21-29f040e176d8), + helpstring("EnhancedStorageACT Class") + ] + coclass EnhancedStorageACT + { + [default] interface IEnhancedStorageACT; + }; + + + [ + uuid(cb25220c-76c7-4fee-842b-f3383cd022bc), + helpstring("EnhancedStorageSilo Class") + ] + coclass EnhancedStorageSilo + { + [default] interface IEnhancedStorageSilo; + }; + + + [ + uuid(886D29DD-B506-466B-9FBF-B44FF383FB3F), + helpstring("EnhancedStorageSiloAction Class") + ] + coclass EnhancedStorageSiloAction + { + [default] interface IEnhancedStorageSiloAction; + }; +}; +cpp_quote("#endif") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstorextensions.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstorextensions.h new file mode 100644 index 0000000000000000000000000000000000000000..5a80bae6f0af21e745afb0178fe1a61ecc0afb72 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstorextensions.h @@ -0,0 +1,1062 @@ +/*++ + +Copyright (c) 2008 Microsoft Corporation + +Module Name: + + EhStorExtensions.h + +Abstract: + + This module defines the Enhanced Storage WPD interfaces for silo drivers. + +Environment: + + User mode only. + +--*/ + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include + +// --------------------------------------------------------------------------- +// +// This section defines the device interfaces for Enhanced Storage devices. +// +// --------------------------------------------------------------------------- + +// +// {3897F6A4-FD35-4bc8-A0B7-5DBBA36ADAFA} +// + +DEFINE_GUID( + GUID_DEVINTERFACE_ENHANCED_STORAGE_SILO, + 0x3897f6a4, 0xfd35, 0x4bc8, 0xa0, 0xb7, 0x5d, 0xbb, 0xa3, 0x6a, 0xda, 0xfa); + + +// --------------------------------------------------------------------------- +// +// This section defines all Commands, Parameters and Options essociated with: +// WPD_CATEGORY_ENHANCED_STORAGE +// +// This category is for commands and parameters for storage functional objects. +// +// --------------------------------------------------------------------------- + +DEFINE_GUID( + WPD_CATEGORY_ENHANCED_STORAGE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c); + + +// --------------------------------------------------------------------------- +// +// Authentication specific commands +// +// --------------------------------------------------------------------------- + +// +// ENHANCED_STORAGE_COMMAND_SILO_IS_AUTHENTICATION_SILO +// This command will return whether or not the silo is an authentication silo. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT - The last status code for Authentication or UnAuthentication +// ENHANCED_STORAGE_PROPERTY_IS_AUTHENTICATION_SILO [VT_BOOLEAN] - TRUE if an Auth-C silo, FALSE otherwise +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_SILO_IS_AUTHENTICATION_SILO, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 6); + + +// +// ENHANCED_STORAGE_COMMAND_SILO_GET_AUTHENTICATION_STATE +// This command will return the authentication state for the silo. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT - The last status code for Authentication or UnAuthentication +// ENHANCED_STORAGE_PROPERTY_AUTHENTICATION_STATE [VT_UI4] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_SILO_GET_AUTHENTICATION_STATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 7); + +// +// ENHANCED_STORAGE_COMMAND_SILO_ENUMERATE_SILOS +// This command will enumerate the silo information for the specified silo type +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_QUERY_SILO_TYPE +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_SILO_ENUMERATE_SILOS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 11); + +// --------------------------------------------------------------------------- +// +// Certificate specific commands +// +// --------------------------------------------------------------------------- + + +// +// ENHANCED_STORAGE_COMMAND_CERT_HOST_CERTIFICATE_AUTHENTICATION +// This command will attempt to do a host authentication based on an HCh +// (or XCh) from the device. If an index or certificate is specified, it +// will use that certificate. +// The default behavior is to authenticate any of the HCh certs present on +// the device if possible (or XCh.) +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX [VT_UINT] +// [ Optional ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE [VT_VECTOR | VT_UI1] +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_HOST_CERTIFICATE_AUTHENTICATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 101); + +// +// DEVICE_AUTHENTICATION +// ENHANCED_STORAGE_COMMAND_CERT_DEVICE_CERTIFICATE_AUTHENTICATION +// This command will attempt to do a device authentication operation. If +// an index or certificate is specified, it will use that certificate. It +// must be ASCm or ASCh. +// The default behavior is to authenticate ASCm. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX [VT_UINT] +// [ Optional ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE [VT_VECTOR | VT_UI1] +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_DEVICE_CERTIFICATE_AUTHENTICATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 102); + +// +// ENHANCED_STORAGE_COMMAND_CERT_ADMIN_CERTIFICATE_AUTHENTICATION +// This command will attempt to do an admin authentication based on the PCp +// (or XCp) from the device. +// This is an admin command - it requires both read and write access. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// None +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_ADMIN_CERTIFICATE_AUTHENTICATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 103); + +// +// ENHANCED_STORAGE_COMMAND_CERT_INITIALIZE_TO_MANUFACTURER_STATE +// This command will attempt to initialized to the manufacturer state. +// Requires PCp authentication. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_INITIALIZE_TO_MANUFACTURER_STATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 104); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_CERTIFICATE_COUNT +// This command will get the number of certificate slots on the device. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// none. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_MAX_CERTIFICATE_COUNT [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_STORED_CERTIFICATE_COUNT [VT_UINT] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_CERTIFICATE_COUNT, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 105); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_CERTIFICATE +// This command will return the certificate at the certificate index location. +// Index 0 is a special location that returns the ASCm chain in PKCS7 format. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX [VT_UINT] +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_TYPE [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_VALIDATION_POLICY [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_SIGNER_CERTIFICATE_INDEX [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_INDEX [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_OF_TYPE_INDEX [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_LENGTH [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE [VT_VECTOR | VT_UI1] + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_CERTIFICATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 106); + +// +// ENHANCED_STORAGE_COMMAND_CERT_SET_CERTIFICATE +// This command will set a certificate to the certificate index location. +// Requires admin authentication. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX [VT_UINT] +// [ Required ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_TYPE [VT_UINT] +// [ Required ] ENHANCED_STORAGE_PROPERTY_VALIDATION_POLICY [VT_UINT] +// [ Required ] ENHANCED_STORAGE_PROPERTY_SIGNER_CERTIFICATE_INDEX [VT_UINT] +// [ Required ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE [VT_VECTOR | VT_UI1] +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_SET_CERTIFICATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 107); + +// +// ENHANCED_STORAGE_COMMAND_CERT_CREATE_CERTIFICATE_REQUEST +// This command will esk the device to create a certificate request. +// This will then be signed by the application's chosen CA. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_REQUEST [VT_VECTOR | VT_UI1] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_CREATE_CERTIFICATE_REQUEST, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 108); + +// +// ENHANCED_STORAGE_COMMAND_CERT_UNAUTHENTICATION +// This command will issue a command to set the cert silo to the +// initialized state. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_TEMPORARY_UNAUTHENTICATION +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_UNAUTHENTICATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 110); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_CAPABILITY +// This command will issue a command to get a silo capability from the +// silo. Data returned is in the format returned from the silo. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_CAPABILITY_TYPE [VT_UINT] +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITY [VT_VECTOR | VT_UI1] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_CAPABILITY, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 111); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_CAPABILITIES +// This command will return the silo capabilities as a collection of +// capabilities. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITIES [VT_UNKNOWN] +// - ENHANCED_STORAGE_CAPABILITY_HASH_ALGS [VT_LPWSTR - semi-colon delimited] +// - ENHANCED_STORAGE_CAPABILITY_ASYMMETRIC_KEY_CRYPTOGRAPHY [VT_LPWSTR - semi-colon delimited] +// - ENHANCED_STORAGE_CAPABILITY_SIGNING_ALGS [VT_LPWSTR - semi-colon delimited] +// - ENHANCED_STORAGE_CAPABILITY_RENDER_USER_DATA_UNUSABLE [ VT_BOOL ] +// - ENHANCED_STORAGE_CAPABILITY_CERTIFICATE_EXTENSION_PARSING [ VT_BOOL ] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_CAPABILITIES, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 112); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_ACT_FRIENDLY_NAME +// This command will return the friendly name of the ACT containing the silo. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// [optional] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_ACT_FRIENDLY_NAME [VT_LPWSTR] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_ACT_FRIENDLY_NAME, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 113); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_GUID +// This command will return the silo's GUID. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_GUID [VT_LPWSTR] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_GUID, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 114); + + +// --------------------------------------------------------------------------- +// +// Password specific commands +// +// --------------------------------------------------------------------------- + + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_AUTHORIZE_ACT_ACCESS +// This command attempts to authenticate to the silo for ACT's data access +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD_INDICATOR +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_AUTHORIZE_ACT_ACCESS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 203); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_UNAUTHORIZE_ACT_ACCESS +// This command attempts to un-authenticate to the silo for ACT's data +// access. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ Optional ] ENHANCED_STORAGE_PROPERTY_PASSWORD_INDICATOR +// [ Optional ] ENHANCED_STORAGE_PROPERTY_TEMPORARY_UNAUTHENTICATION +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_UNAUTHORIZE_ACT_ACCESS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 204); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_QUERY_INFORMATION +// This command queries the current password silo information +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// none +// Results: +// ENHANCED_STORAGE_PROPERTY_AUTHENTICATION_STATE +// ENHANCED_STORAGE_PROPERTY_PASSWORD_SILO_INFO +// ENHANCED_STORAGE_PROPERTY_ADMIN_HINT +// ENHANCED_STORAGE_PROPERTY_USER_HINT +// ENHANCED_STORAGE_PROPERTY_USER_NAME +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_QUERY_INFORMATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 205); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_CONFIG_ADMINISTRATOR +// This command configures the administrator account +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_MAX_AUTH_FAILURES +// [ Optional ] ENHANCED_STORAGE_PROPERTY_AUTH_REQUIRED_FOR_INITIALIZE +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_CONFIG_ADMINISTRATOR, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 206); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_CREATE_USER +// This command creates a user account +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_USER_HINT +// [ Required ] ENHANCED_STORAGE_PROPERTY_USER_NAME +// [ Optional ] ENHANCED_STORAGE_PROPERTY_MAX_AUTH_FAILURES +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_CREATE_USER, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 207); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_DELETE_USER +// This command deletes the existing user account +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// none +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_DELETE_USER, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 208); + + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_CHANGE_PASSWORD +// This command changes the password for adminstritor or user account +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD_INDICATOR +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_HINT +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD_INDICATOR +// [ Optional ] ENHANCED_STORAGE_PROPERTY_SECURITY_IDENTIFIER +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_CHANGE_PASSWORD, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 209); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_INITIALIZE_USER_PASSWORD +// This command initializes the existing user password +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_HINT +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_INITIALIZE_USER_PASSWORD, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 210); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_START_INITIALIZE_TO_MANUFACTURER_STATE +// This command starts the initialization process +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_SECURITY_IDENTIFIER +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_START_INITIALIZE_TO_MANUFACTURER_STATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 211); + + +// --------------------------------------------------------------------------- +// +// This section defines all WPD Enhanced Storage Properties +// +// --------------------------------------------------------------------------- + +// +// ENHANCED_STORAGE_PROPERTY_AUTHENTICATION_STATE +// [ VT_UI4 ] Authentication status of the Enhanced Storage Silo +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_AUTHENTICATION_STATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 1006); + +// State definitions for ENHANCED_STORAGE_PROPERTY_AUTHENTICATION_STATE +#define ENHANCED_STORAGE_AUTHN_STATE_UNKNOWN 0x00000000 // Initial setting before PnP entry and the silo state is unknow. +#define ENHANCED_STORAGE_AUTHN_STATE_NO_AUTHENTICATION_REQUIRED 0x00000001 // The silo has not been provisioned +#define ENHANCED_STORAGE_AUTHN_STATE_NOT_AUTHENTICATED 0x00000002 // The silo is not authenticated +#define ENHANCED_STORAGE_AUTHN_STATE_AUTHENTICATED 0x00000003 // The silo is authenticated +#define ENHANCED_STORAGE_AUTHN_STATE_AUTHENTICATION_DENIED 0x80000001 // Authentication was denied. +#define ENHANCED_STORAGE_AUTHN_STATE_DEVICE_ERROR 0x80000002 // The silo timed out or another device error happened + +// +// ENHANCED_STORAGE_PROPERTY_IS_AUTHENTICATION_SILO +// [ VT_BOOL ] Is this silo an authentication silo? +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_IS_AUTHENTICATION_SILO, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 1009); + +// +// ENHANCED_STORAGE_PROPERTY_TEMPORARY_UNAUTHENTICATION +// [ VT_BOOL ] TRUE: temporary, FALSE: persistent +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_TEMPORARY_UNAUTHENTICATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 1010); + +// --------------------------------------------------------------------------- +// +// Password silo specific properties +// +// --------------------------------------------------------------------------- + +// +// ENHANCED_STORAGE_PROPERTY_MAX_AUTH_FAILURES +// [ VT_UI4 ] Maximum number of password authentication failures +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_MAX_AUTH_FAILURES, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2001); + +// +// ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ VT_BLOB ] The password to send or set +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_PASSWORD, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2004); + +// +// ENHANCED_STORAGE_PROPERTY_OLD_PASSWORD +// [ VT_BLOB ] The password used for changing password. +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_OLD_PASSWORD, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2005); + +// +// ENHANCED_STORAGE_PROPERTY_PASSWORD_INDICATOR +// [ VT_BOOL ] TRUE: user, FALSE: admin +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_PASSWORD_INDICATOR, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2006); + +// +// ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD_INDICATOR +// [ VT_BOOL ] TRUE: user, FALSE: admin +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD_INDICATOR, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2007); + +// +// ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD +// [ VT_BLOB ] The new password. Used to re-set the password +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2008); + +// +// ENHANCED_STORAGE_PROPERTY_USER_HINT +// [ VT_LPCSTR ] The user hint +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_USER_HINT, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2009); + +// +// ENHANCED_STORAGE_PROPERTY_USER_NAME +// [ VT_LPCSTR ] The friendly user name +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_USER_NAME, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2010); + +// +// ENHANCED_STORAGE_PROPERTY_ADMIN_HINT +// [ VT_LPCSTR ] The admin hint +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_ADMIN_HINT, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2011); + +// +// ENHANCED_STORAGE_PROPERTY_SILO_NAME +// [ VT_LPCSTR ] The friendly name for the silo +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_SILO_NAME, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2012); + +// +// ENHANCED_STORAGE_PROPERTY_SILO_FRIENDLYNAME_SPECIFIED +// [ VT_BOOL ] Flag to indicate if silo friendly name is given +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_SILO_FRIENDLYNAME_SPECIFIED, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2013); + +// +// ENHANCED_STORAGE_PROPERTY_PASSWORD_SILO_INFO +// [ VT_BLOB ] The password silo information +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_PASSWORD_SILO_INFO, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2014); + +// +// ENHANCED_STORAGE_PROPERTY_SECURITY_IDENTIFIER +// [ VT_BLOB ] Security Identifier for the password silo device +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_SECURITY_IDENTIFIER, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2015); + +// +// ENHANCED_STORAGE_PROPERTY_QUERY_SILO_TYPE +// [ VT_UINT ] Query Silo Type +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_QUERY_SILO_TYPE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2016); + +// +// ENHANCED_STORAGE_PROPERTY_QUERY_SILO_RESULTS +// [ VT_BLOB ] Query Silo Properties result +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_QUERY_SILO_RESULTS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2017); + +// +// Data format used for the password silo information property +// + +typedef struct _ENHANCED_STORAGE_PASSWORD_SILO_INFORMATION { + + BYTE CurrentAdminFailures; + BYTE CurrentUserFailures; + DWORD TotalUserAuthenticationCount; + DWORD TotalAdminAuthenticationCount; + + BOOL FipsCompliant; + BOOL SecurityIDAvailable; + BOOL InitializeInProgress; + BOOL ITMSArmed; + BOOL ITMSArmable; + BOOL UserCreated; + BOOL ResetOnPORDefault; + BOOL ResetOnPORCurrent; + + BYTE MaxAdminFailures; + BYTE MaxUserFailures; + + DWORD TimeToCompleteInitialization; + DWORD TimeRemainingToCompleteInitialization; + DWORD MinTimeToAuthenticate; + + // + // Capabilities (never changed) + // + + BYTE MaxAdminPasswordSize; + BYTE MinAdminPasswordSize; + BYTE MaxAdminHintSize; + BYTE MaxUserPasswordSize; + BYTE MinUserPasswordSize; + BYTE MaxUserHintSize; + BYTE MaxUserNameSize; + BYTE MaxSiloNameSize; + WORD MaxChallengeSize; + +} ENHANCED_STORAGE_PASSWORD_SILO_INFORMATION, *PENHANCED_STORAGE_PASSWORD_SILO_INFORMATION; + +// --------------------------------------------------------------------------- +// +// Certificate silo specific properties. +// +// --------------------------------------------------------------------------- + +// +// ENHANCED_STORAGE_PROPERTY_MAX_CERTIFICATE_COUNT +// [ VT_UINT ] The number of certificate slots available on the device +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_MAX_CERTIFICATE_COUNT, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3001); + +// +// ENHANCED_STORAGE_PROPERTY_STORED_CERTIFICATE_COUNT +// [ VT_UINT ] The number of certificate slots in use on the device +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_STORED_CERTIFICATE_COUNT, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3002); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX +// [ VT_UINT ] The index for the certificate slot on the device +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3003); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_TYPE +// [ VT_UINT ] The type of certificate +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_TYPE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3004); + +// +// Certificate Types defines +// +#define CERT_TYPE_EMPTY 0x00 // No certificate +#define CERT_TYPE_ASCm 0x01 // Manufacturer's certificate (ASCm) +#define CERT_TYPE_PCp 0x02 // Provisioning Certificate (PCp) +#define CERT_TYPE_ASCh 0x03 // Authentication Silo Certificate (ASCh) +#define CERT_TYPE_HCh 0x04 // Host certificate (HCh) +#define CERT_TYPE_SIGNER 0x06 // Signer certificate (SCh) + +// +// ENHANCED_STORAGE_PROPERTY_VALIDATION_POLICY +// [ VT_UINT ] The validation policy for the certificate +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_VALIDATION_POLICY, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3005); + +// +// Validation Policy values +// - None: the corresponding private key of the stored certificate shall be used +// for authentication. +// - Basic: the certificate and certificate chain conforms to the basic validation +// policy. +// - Extended: the certificate chain conforms to the extended validation policy. +// The use of this validation policy must result in an error condition +// of the Authentication Silo if it does not support parsing of certificate +// extensions. +// +#define CERT_VALIDATION_POLICY_RESERVED 0x00 +#define CERT_VALIDATION_POLICY_NONE 0x01 +#define CERT_VALIDATION_POLICY_BASIC 0x02 +#define CERT_VALIDATION_POLICY_EXTENDED 0x03 + +// +// ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_INDEX +// [ VT_UINT ] The index of the next valid cert +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_INDEX, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3006); + +// +// ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_OF_TYPE_INDEX +// [ VT_UINT ] The index of the next valid cert of same type +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_OF_TYPE_INDEX, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3007); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_LENGTH +// [ VT_UINT ] Length of the certificate in bytes +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_LENGTH, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3008); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE +// [ VT_VECTOR | VT_UI1 ] The certificate buffer in X.509 format +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3009); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_REQUEST +// [ VT_VECTOR | VT_UI1 ] The certificate request buffer +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_REQUEST, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3010); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_CAPABILITY_TYPE +// [ VT_UINT ] Silo capability type +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_CAPABILITY_TYPE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3011); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITY +// [ VT_VECTOR | VT_UINT ] The "raw" capability data return from the silo +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITY, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3012); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITIES +// [ VT_UNKNOWN ] The certificate silo capabilities returned in a collection +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITIES, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3013); + +// +// Cert Silo Capability Types +// +#define CERT_CAPABILITY_HASH_ALG 0x1 +#define CERT_CAPABILITY_ASYMMETRIC_KEY_CRYPTOGRAPHY 0x2 +#define CERT_CAPABILITY_SIGNATURE_ALG 0x3 +#define CERT_CAPABILITY_CERTIFICATE_SUPPORT 0x4 +#define CERT_CAPABILITY_OPTIONAL_FEATURES 0x5 +#define CERT_MAX_CAPABILITY 0xFF // Maximum capability value + +// +// Supported identifiers defined in 1667 spec +// +#define CERT_RSA_1024_OID "1.2.840.113549.1.1.1,1024" +#define CERT_RSA_2048_OID "1.2.840.113549.1.1.1,2048" +#define CERT_RSA_3072_OID "1.2.840.113549.1.1.1,3072" +#define CERT_RSASSA_PSS_SHA1_OID "1.2.840.113549.1.1.10,1.3.14.3.2.26" +#define CERT_RSASSA_PSS_SHA256_OID "1.2.840.113549.1.1.10,2.16.840.1.101.3.4.2.1" +#define CERT_RSASSA_PSS_SHA384_OID "1.2.840.113549.1.1.10,2.16.840.1.101.3.4.2.2" +#define CERT_RSASSA_PSS_SHA512_OID "1.2.840.113549.1.1.10,2.16.840.1.101.3.4.2.3" + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_ACT_FRIENDLY_NAME +// [ VT_LPWSTR ] The certificate silo's ACT friendly name +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_ACT_FRIENDLY_NAME, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3014); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_GUID +// [ VT_LPWSTR ] The certificate silo GUID +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_GUID, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3015); + +// +// ENHANCED_STORAGE_PROPERTY_SIGNER CERTIFICATE_INDEX +// [ VT_UINT ] The index for the signer certificate slot on the device +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_SIGNER_CERTIFICATE_INDEX, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3016); + + +// --------------------------------------------------------------------------- +// +// Silo capability specific properties. +// +// --------------------------------------------------------------------------- + + +// +// ENHANCED_STORAGE_CAPABILITY_HASH_ALGS +// [VT_LPWSTR] Semi-colon delimited string of hash algorithm identifiers +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_CAPABILITY_HASH_ALGS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 4001); + +// +// ENHANCED_STORAGE_CAPABILITY_ASYMMETRIC_KEY_CRYPTOGRAPHY +// [VT_LPWSTR] Semi-colon delimited string of asymmetric key cryptography supported +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_CAPABILITY_ASYMMETRIC_KEY_CRYPTOGRAPHY, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 4002); + +// +// ENHANCED_STORAGE_CAPABILITY_SIGNING_ALGS +// [VT_LPWSTR] Semi-colon delimited string of signing algorithm identifiers +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_CAPABILITY_SIGNING_ALGS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 4003); + +// +// ENHANCED_STORAGE_CAPABILITY_RENDER_USER_DATA_UNUSABLE +// [ VT_BOOL ] Boolean indicating whether silo can render user data unusable +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_CAPABILITY_RENDER_USER_DATA_UNUSABLE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 4004); + +// +// ENHANCED_STORAGE_CAPABILITY_CERTIFICATE_EXTENSION_PARSING +// [ VT_BOOL ] Boolean indicating whether certificate extension fields are supported +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_CAPABILITY_CERTIFICATE_EXTENSION_PARSING, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 4005); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstormsg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstormsg.h new file mode 100644 index 0000000000000000000000000000000000000000..88e62420025c1c54628cd283003a7260570cd523 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ehstormsg.h @@ -0,0 +1,375 @@ +/*-- + +Copyright (c) 2008 Microsoft Corporation + +Module Name: + + EhStorMsg.h + +Abstract: + + This file contains the message definitions for Enhanced Storage APIs. + +Revision History: + +--*/ + +#pragma once + +// +// -------------------------------------------------------------------------- +// Enhanced Storage error codes will use FACILITY_ITF. According to MSDN doc, +// it is recommended that code values start at 0x0200 as COM FACILITY_ITF +// will use the code values from 0x0000 - 0x01FF. +// +// The code value range is partition based on the following scheme: +// +// 0x0200 - 0x03FF: general error codes +// 0x0400 - 0x04FF: authentication related error codes +// 0x0500 - 0x0FFF: reserved for other high level feature related error codes +// 0x1100 - 0x11FF: password silo related error codes +// 0x1200 - 0xBFFF: reserved for other silo specific error codes +// 0xC000 - 0xFFFF: reserved for 3rd party silo specific error codes +// +// -------------------------------------------------------------------------- +// + +#define ES_RESERVED_COM_ERROR_START 0x0000 +#define ES_RESERVED_COM_ERROR_END 0x01FF +#define ES_GENERAL_ERROR_START 0x0200 +#define ES_GENERAL_ERROR_END 0x03FF +#define ES_AUTHN_ERROR_START 0x0400 +#define ES_AUTHN_ERROR_END 0x04FF +#define ES_RESERVED_SILO_ERROR_START 0x0500 +#define ES_RESERVED_SILO_ERROR_END 0x0FFF +#define ES_PW_SILO_ERROR_START 0x1100 +#define ES_PW_SILO_ERROR_END 0x11FF +#define ES_RESERVED_SILO_SPECIFIC_ERROR_START 0x1200 +#define ES_RESERVED_SILO_SPECIFIC_ERROR_END 0xBFFF +#define ES_VENDOR_ERROR_START 0xC000 +#define ES_VENDOR_ERROR_END 0xFFFF + +// ----------------------------------- +// Error code related macros +// ----------------------------------- + +#define IS_ENHANCED_STORAGE_GENERAL_ERROR(x) ((x) >= ES_GENERAL_ERROR_START && \ + (x) <= ES_GENERAL_ERROR_END) + +#define IS_ENHANCED_STORAGE_AUTHN_ERROR(x) ((x) >= ES_AUTHN_ERROR_START && \ + (x) <= ES_AUTHN_ERROR_END) + +#define IS_ENHANCED_STORAGE_PW_SILO_ERROR(x) ((x) >= ES_PW_SILO_ERROR_START && \ + (x) <= ES_PW_SILO_ERROR_END) + +#define IS_ENHANCED_STORAGE_VENDOR_ERROR(x) ((x) >= ES_VENDOR_ERROR_START && \ + (x) <= ES_VENDOR_ERROR_END) + +#define IS_ENHANCED_STORAGE_RESERVED_ERROR(x) (((x) >= ES_RESERVED_SILO_ERROR_START && \ + (x) <= ES_RESERVED_SILO_ERROR_END) || \ + ((x) >= ES_RESERVED_SILO_SPECIFIC_ERROR_START && \ + (x) <= ES_RESERVED_SILO_SPECIFIC_ERROR_END) || \ + ((x) >= ES_RESERVED_COM_ERROR_START && \ + (x) <= ES_RESERVED_COM_ERROR_END)) + +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +-+-+-+-+-+---------------------+-------------------------------+ +// |S|R|C|N|r| Facility | Code | +// +-+-+-+-+-+---------------------+-------------------------------+ +// +// where +// +// S - Severity - indicates success/fail +// +// 0 - Success +// 1 - Fail (COERROR) +// +// R - reserved portion of the facility code, corresponds to NT's +// second severity bit. +// +// C - reserved portion of the facility code, corresponds to NT's +// C field. +// +// N - reserved portion of the facility code. Used to indicate a +// mapped NT status value. +// +// r - reserved portion of the facility code. Reserved for internal +// use. Used to indicate HRESULT values that are not status +// values, but are instead message ids for display strings. +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_ENHANCED_STORAGE 0x4 + + +// +// Define the severity codes +// +#define STATUS_SEVERITY_SUCCESS 0x0 +#define STATUS_SEVERITY_INFORMATIONAL 0x1 +#define STATUS_SEVERITY_WARNING 0x2 +#define STATUS_SEVERITY_ERROR 0x3 + + +// +// MessageId: ES_E_INVALID_RESPONSE +// +// MessageText: +// +// Hardware return invalid response. +// +#define ES_E_INVALID_RESPONSE ((DWORD)0xC0040200L) + +// +// MessageId: ES_E_UNPROVISIONED_HARDWARE +// +// MessageText: +// +// Hardware is not provision. +// +#define ES_E_UNPROVISIONED_HARDWARE ((DWORD)0xC0040204L) + +// +// MessageId: ES_E_UNSUPPORTED_HARDWARE +// +// MessageText: +// +// Hardware is not supported. +// +#define ES_E_UNSUPPORTED_HARDWARE ((DWORD)0xC0040205L) + +// +// MessageId: ES_E_INCOMPLETE_COMMAND +// +// MessageText: +// +// An incomplete command was received. +// +#define ES_E_INCOMPLETE_COMMAND ((DWORD)0xC0040206L) + +// +// MessageId: ES_E_BAD_SEQUENCE +// +// MessageText: +// +// Command rejected for being out of sequence. +// +#define ES_E_BAD_SEQUENCE ((DWORD)0xC0040207L) + +// +// MessageId: ES_E_NO_PROBE +// +// MessageText: +// +// Non-Probe command received before Probe command. +// +#define ES_E_NO_PROBE ((DWORD)0xC0040208L) + +// +// MessageId: ES_E_INVALID_SILO +// +// MessageText: +// +// Invalid silo specified. +// +#define ES_E_INVALID_SILO ((DWORD)0xC0040209L) + +// +// MessageId: ES_E_INVALID_CAPABILITY +// +// MessageText: +// +// Invalid capability requested. +// +#define ES_E_INVALID_CAPABILITY ((DWORD)0xC004020AL) + +// +// MessageId: ES_E_GROUP_POLICY_FORBIDDEN_USE +// +// MessageText: +// +// Group policy setting forbids use. +// +#define ES_E_GROUP_POLICY_FORBIDDEN_USE ((DWORD)0xC004020BL) + +// +// MessageId: ES_E_GROUP_POLICY_FORBIDDEN_OPERATION +// +// MessageText: +// +// Group policy setting forbids operation. +// +#define ES_E_GROUP_POLICY_FORBIDDEN_OPERATION ((DWORD)0xC004020CL) + +// +// MessageId: ES_E_INVALID_PARAM_COMBINATION +// +// MessageText: +// +// Invalid combination of parameters specified in input data. +// +#define ES_E_INVALID_PARAM_COMBINATION ((DWORD)0xC004020DL) + +// +// MessageId: ES_E_INVALID_PARAM_LENGTH +// +// MessageText: +// +// Parameter Byte Length specified in the payload is invalid. +// +#define ES_E_INVALID_PARAM_LENGTH ((DWORD)0xC004020EL) + +// +// MessageId: ES_E_INCONSISTENT_PARAM_LENGTH +// +// MessageText: +// +// Parameter Byte Length specified in the payload is not consistent with the number of bytes transferred. +// +#define ES_E_INCONSISTENT_PARAM_LENGTH ((DWORD)0xC004020FL) + + +// ----------------------------------------- +// Authentication silo related error codes +// ----------------------------------------- + +// +// MessageId: ES_E_NO_AUTHENTICATION_REQUIRED +// +// MessageText: +// +// Hardware does not require authentication. +// +#define ES_E_NO_AUTHENTICATION_REQUIRED ((DWORD)0xC0040400L) + + +// ----------------------------------- +// Password silo related error codes +// ----------------------------------- + +// +// MessageId: ES_E_INVALID_FIELD_IDENTIFIER +// +// MessageText: +// +// An invalid field identifier was found in the data provided by the device. +// +#define ES_E_INVALID_FIELD_IDENTIFIER ((DWORD)0xC0041100L) + +// +// MessageId: ES_E_CHALLENGE_MISMATCH +// +// MessageText: +// +// The challenge provided by the device does not match the one provided in an earlier step in the authentication sequence. +// +#define ES_E_CHALLENGE_MISMATCH ((DWORD)0xC0041101L) + +// +// MessageId: ES_E_CHALLENGE_SIZE_MISMATCH +// +// MessageText: +// +// The size of the challenge specified by the device does not match the choice of the digest algorithm. +// +#define ES_E_CHALLENGE_SIZE_MISMATCH ((DWORD)0xC0041102L) + +// +// MessageId: ES_E_FRIENDLY_NAME_TOO_LONG +// +// MessageText: +// +// The friendly name specified for User is too long. +// +#define ES_E_FRIENDLY_NAME_TOO_LONG ((DWORD)0xC0041103L) + +// +// MessageId: ES_E_SILO_NAME_TOO_LONG +// +// MessageText: +// +// The silo name specified is too long. +// +#define ES_E_SILO_NAME_TOO_LONG ((DWORD)0xC0041104L) + +// +// MessageId: ES_E_PASSWORD_TOO_LONG +// +// MessageText: +// +// The password specified is too long. +// +#define ES_E_PASSWORD_TOO_LONG ((DWORD)0xC0041105L) + +// +// MessageId: ES_E_PASSWORD_HINT_TOO_LONG +// +// MessageText: +// +// The password hint specified is too long. +// +#define ES_E_PASSWORD_HINT_TOO_LONG ((DWORD)0xC0041106L) + +// +// MessageId: ES_E_OTHER_SECURITY_PROTOCOL_ACTIVE +// +// MessageText: +// +// Cannot enable IEEE 1667 password security since another security protocol is still active on the device. +// +#define ES_E_OTHER_SECURITY_PROTOCOL_ACTIVE ((DWORD)0xC0041107L) + +// +// MessageId: ES_E_DEVICE_DIGEST_MISSING +// +// MessageText: +// +// Device digest was expected but was not found in the payload. +// +#define ES_E_DEVICE_DIGEST_MISSING ((DWORD)0xC0041108L) + +// +// MessageId: ES_E_NOT_AUTHORIZED_UNEXPECTED +// +// MessageText: +// +// Expected the silo to be in Authorized state, but it was not. +// +#define ES_E_NOT_AUTHORIZED_UNEXPECTED ((DWORD)0xC0041109L) + +// +// MessageId: ES_E_AUTHORIZED_UNEXPECTED +// +// MessageText: +// +// Expected the silo to be in Not Authorized state, but it was not. +// +#define ES_E_AUTHORIZED_UNEXPECTED ((DWORD)0xC004110AL) + +// +// MessageId: ES_E_PROVISIONED_UNEXPECTED +// +// MessageText: +// +// Expected the silo to be in Not Provisioned state, but it was not. +// +#define ES_E_PROVISIONED_UNEXPECTED ((DWORD)0xC004110BL) + +// +// MessageId: ES_E_UNKNOWN_DIGEST_ALGORITHM +// +// MessageText: +// +// The digest algorithm supported by the device is not supported in Windows. +// +#define ES_E_UNKNOWN_DIGEST_ALGORITHM ((DWORD)0xC004110CL) + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/emptyvc.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/emptyvc.idl new file mode 100644 index 0000000000000000000000000000000000000000..5fb131c4a0f60c3b50947f55aec81d143afa94f1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/emptyvc.idl @@ -0,0 +1,170 @@ +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: Empty Volume Cache Interfaces +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// emptyvc.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//---------------------------------------------------------------------------=") +cpp_quote("// Empty Volume Cache Interfaces.") +cpp_quote("") + +import "objidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; + +interface IEmptyVolumeCache; +interface IEmptyVolumeCache2; + +cpp_quote("// IEmptyVolumeCache Flags") +#pragma midl_echo("#define EVCF_HASSETTINGS 0x0001") +#pragma midl_echo("#define EVCF_ENABLEBYDEFAULT 0x0002") +#pragma midl_echo("#define EVCF_REMOVEFROMLIST 0x0004") +#pragma midl_echo("#define EVCF_ENABLEBYDEFAULT_AUTO 0x0008") +#pragma midl_echo("#define EVCF_DONTSHOWIFZERO 0x0010") +#pragma midl_echo("#define EVCF_SETTINGSMODE 0x0020") +#pragma midl_echo("#define EVCF_OUTOFDISKSPACE 0x0040") +#pragma midl_echo("#define EVCF_USERCONSENTOBTAINED 0x0080") +#pragma midl_echo("#define EVCF_SYSTEMAUTORUN 0x0100") + +cpp_quote("") +cpp_quote("// IEmptyVolumeCacheCallBack Flags") +#pragma midl_echo("#define EVCCBF_LASTNOTIFICATION 0x0001") + +cpp_quote("") +cpp_quote("////////////////////////////////////////////////////////////////////////////") +cpp_quote("// Interface Definitions") + +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: IEmptyVolumeCacheCallBack interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPEMPTYVOLUMECACHECALLBACK_DEFINED") +cpp_quote("#define _LPEMPTYVOLUMECACHECALLBACK_DEFINED") +[ + object, + uuid(6E793361-73C6-11D0-8469-00AA00442901), + pointer_default(unique) +] +interface IEmptyVolumeCacheCallBack : IUnknown +{ + typedef [unique] IEmptyVolumeCacheCallBack* LPEMPTYVOLUMECACHECALLBACK; + + HRESULT ScanProgress( + [in] DWORDLONG dwlSpaceUsed, + [in] DWORD dwFlags, + [in, unique] LPCWSTR pcwszStatus + ); + + HRESULT PurgeProgress( + [in] DWORDLONG dwlSpaceFreed, + [in] DWORDLONG dwlSpaceToFree, + [in] DWORD dwFlags, + [in, unique] LPCWSTR pcwszStatus + ); +} +cpp_quote("#endif") + +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: IEmptyVolumeCache interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPEMPTYVOLUMECACHE_DEFINED") +cpp_quote("#define _LPEMPTYVOLUMECACHE_DEFINED") +[ + object, + uuid(8FCE5227-04DA-11d1-A004-00805F8ABE06), + pointer_default(unique) +] +interface IEmptyVolumeCache : IUnknown +{ + typedef [unique] IEmptyVolumeCache* LPEMPTYVOLUMECACHE; + + [local] + HRESULT Initialize( + [in] HKEY hkRegKey, + [in] LPCWSTR pcwszVolume, + [out] LPWSTR *ppwszDisplayName, + [out] LPWSTR *ppwszDescription, + [out] DWORD *pdwFlags + ); + + HRESULT GetSpaceUsed( + [out] DWORDLONG *pdwlSpaceUsed, + [in] IEmptyVolumeCacheCallBack *picb + ); + + HRESULT Purge( + [in] DWORDLONG dwlSpaceToFree, + [in] IEmptyVolumeCacheCallBack *picb + ); + + HRESULT ShowProperties( + [in] HWND hwnd + ); + + HRESULT Deactivate( + [out] DWORD *pdwFlags + ); +} +cpp_quote("#endif") + +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: IEmptyVolumeCache2 interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPEMPTYVOLUMECACHE2_DEFINED") +cpp_quote("#define _LPEMPTYVOLUMECACHE2_DEFINED") +[ + object, + uuid(02b7e3ba-4db3-11d2-b2d9-00c04f8eec8c), + pointer_default(unique) +] +interface IEmptyVolumeCache2 : IEmptyVolumeCache +{ + typedef [unique] IEmptyVolumeCache2* LPEMPTYVOLUMECACHE2; + + [local] + HRESULT InitializeEx( + [in] HKEY hkRegKey, + [in] LPCWSTR pcwszVolume, + [in] LPCWSTR pcwszKeyName, + [out] LPWSTR *ppwszDisplayName, + [out] LPWSTR *ppwszDescription, + [out] LPWSTR *ppwszBtnText, + [out] DWORD *pdwFlags + ); +} +cpp_quote("#endif") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/encdec.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/encdec.h new file mode 100644 index 0000000000000000000000000000000000000000..4fc7c0b25a86e9fca2a2421e3045bda2b2d7d520 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/encdec.h @@ -0,0 +1,2457 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __encdec_h__ +#define __encdec_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IETFilterConfig_FWD_DEFINED__ +#define __IETFilterConfig_FWD_DEFINED__ +typedef interface IETFilterConfig IETFilterConfig; + +#endif /* __IETFilterConfig_FWD_DEFINED__ */ + + +#ifndef __IDTFilterConfig_FWD_DEFINED__ +#define __IDTFilterConfig_FWD_DEFINED__ +typedef interface IDTFilterConfig IDTFilterConfig; + +#endif /* __IDTFilterConfig_FWD_DEFINED__ */ + + +#ifndef __IXDSCodecConfig_FWD_DEFINED__ +#define __IXDSCodecConfig_FWD_DEFINED__ +typedef interface IXDSCodecConfig IXDSCodecConfig; + +#endif /* __IXDSCodecConfig_FWD_DEFINED__ */ + + +#ifndef __IDTFilterLicenseRenewal_FWD_DEFINED__ +#define __IDTFilterLicenseRenewal_FWD_DEFINED__ +typedef interface IDTFilterLicenseRenewal IDTFilterLicenseRenewal; + +#endif /* __IDTFilterLicenseRenewal_FWD_DEFINED__ */ + + +#ifndef __IPTFilterLicenseRenewal_FWD_DEFINED__ +#define __IPTFilterLicenseRenewal_FWD_DEFINED__ +typedef interface IPTFilterLicenseRenewal IPTFilterLicenseRenewal; + +#endif /* __IPTFilterLicenseRenewal_FWD_DEFINED__ */ + + +#ifndef __IMceBurnerControl_FWD_DEFINED__ +#define __IMceBurnerControl_FWD_DEFINED__ +typedef interface IMceBurnerControl IMceBurnerControl; + +#endif /* __IMceBurnerControl_FWD_DEFINED__ */ + + +#ifndef __IETFilter_FWD_DEFINED__ +#define __IETFilter_FWD_DEFINED__ +typedef interface IETFilter IETFilter; + +#endif /* __IETFilter_FWD_DEFINED__ */ + + +#ifndef __IETFilterEvents_FWD_DEFINED__ +#define __IETFilterEvents_FWD_DEFINED__ +typedef interface IETFilterEvents IETFilterEvents; + +#endif /* __IETFilterEvents_FWD_DEFINED__ */ + + +#ifndef __ETFilter_FWD_DEFINED__ +#define __ETFilter_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ETFilter ETFilter; +#else +typedef struct ETFilter ETFilter; +#endif /* __cplusplus */ + +#endif /* __ETFilter_FWD_DEFINED__ */ + + +#ifndef __IDTFilter_FWD_DEFINED__ +#define __IDTFilter_FWD_DEFINED__ +typedef interface IDTFilter IDTFilter; + +#endif /* __IDTFilter_FWD_DEFINED__ */ + + +#ifndef __IDTFilter2_FWD_DEFINED__ +#define __IDTFilter2_FWD_DEFINED__ +typedef interface IDTFilter2 IDTFilter2; + +#endif /* __IDTFilter2_FWD_DEFINED__ */ + + +#ifndef __IDTFilter3_FWD_DEFINED__ +#define __IDTFilter3_FWD_DEFINED__ +typedef interface IDTFilter3 IDTFilter3; + +#endif /* __IDTFilter3_FWD_DEFINED__ */ + + +#ifndef __IDTFilterEvents_FWD_DEFINED__ +#define __IDTFilterEvents_FWD_DEFINED__ +typedef interface IDTFilterEvents IDTFilterEvents; + +#endif /* __IDTFilterEvents_FWD_DEFINED__ */ + + +#ifndef __DTFilter_FWD_DEFINED__ +#define __DTFilter_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DTFilter DTFilter; +#else +typedef struct DTFilter DTFilter; +#endif /* __cplusplus */ + +#endif /* __DTFilter_FWD_DEFINED__ */ + + +#ifndef __IXDSCodec_FWD_DEFINED__ +#define __IXDSCodec_FWD_DEFINED__ +typedef interface IXDSCodec IXDSCodec; + +#endif /* __IXDSCodec_FWD_DEFINED__ */ + + +#ifndef __IXDSCodecEvents_FWD_DEFINED__ +#define __IXDSCodecEvents_FWD_DEFINED__ +typedef interface IXDSCodecEvents IXDSCodecEvents; + +#endif /* __IXDSCodecEvents_FWD_DEFINED__ */ + + +#ifndef __XDSCodec_FWD_DEFINED__ +#define __XDSCodec_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class XDSCodec XDSCodec; +#else +typedef struct XDSCodec XDSCodec; +#endif /* __cplusplus */ + +#endif /* __XDSCodec_FWD_DEFINED__ */ + + +#ifndef __CXDSData_FWD_DEFINED__ +#define __CXDSData_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CXDSData CXDSData; +#else +typedef struct CXDSData CXDSData; +#endif /* __cplusplus */ + +#endif /* __CXDSData_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_encdec_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 2002. +// +//-------------------------------------------------------------------------- +#pragma once +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(pop) +#pragma warning(pop) +#pragma region Desktop Family +#pragma region Desktop Family +#pragma endregion +typedef +enum EnTvRat_System + { + MPAA = 0, + US_TV = 1, + Canadian_English = 2, + Canadian_French = 3, + Reserved4 = 4, + System5 = 5, + System6 = 6, + Reserved7 = 7, + PBDA = 8, + AgeBased = 9, + TvRat_kSystems = 10, + TvRat_SystemDontKnow = 255 + } EnTvRat_System; + +typedef +enum EnTvRat_GenericLevel + { + TvRat_0 = 0, + TvRat_1 = 1, + TvRat_2 = 2, + TvRat_3 = 3, + TvRat_4 = 4, + TvRat_5 = 5, + TvRat_6 = 6, + TvRat_7 = 7, + TvRat_8 = 8, + TvRat_9 = 9, + TvRat_10 = 10, + TvRat_11 = 11, + TvRat_12 = 12, + TvRat_13 = 13, + TvRat_14 = 14, + TvRat_15 = 15, + TvRat_16 = 16, + TvRat_17 = 17, + TvRat_18 = 18, + TvRat_19 = 19, + TvRat_20 = 20, + TvRat_21 = 21, + TvRat_kLevels = 22, + TvRat_Unblock = -1, + TvRat_LevelDontKnow = 255 + } EnTvRat_GenericLevel; + +typedef +enum EnTvRat_MPAA + { + MPAA_NotApplicable = TvRat_0, + MPAA_G = TvRat_1, + MPAA_PG = TvRat_2, + MPAA_PG13 = TvRat_3, + MPAA_R = TvRat_4, + MPAA_NC17 = TvRat_5, + MPAA_X = TvRat_6, + MPAA_NotRated = TvRat_7 + } EnTvRat_MPAA; + +typedef +enum EnTvRat_US_TV + { + US_TV_None = TvRat_0, + US_TV_Y = TvRat_1, + US_TV_Y7 = TvRat_2, + US_TV_G = TvRat_3, + US_TV_PG = TvRat_4, + US_TV_14 = TvRat_5, + US_TV_MA = TvRat_6, + US_TV_None7 = TvRat_7 + } EnTvRat_US_TV; + +typedef +enum EnTvRat_CAE_TV + { + CAE_TV_Exempt = TvRat_0, + CAE_TV_C = TvRat_1, + CAE_TV_C8 = TvRat_2, + CAE_TV_G = TvRat_3, + CAE_TV_PG = TvRat_4, + CAE_TV_14 = TvRat_5, + CAE_TV_18 = TvRat_6, + CAE_TV_Reserved = TvRat_7 + } EnTvRat_CAE_TV; + +typedef +enum EnTvRat_CAF_TV + { + CAF_TV_Exempt = TvRat_0, + CAF_TV_G = TvRat_1, + CAF_TV_8 = TvRat_2, + CAF_TV_13 = TvRat_3, + CAF_TV_16 = TvRat_4, + CAF_TV_18 = TvRat_5, + CAF_TV_Reserved6 = TvRat_6, + CAF_TV_Reserved = TvRat_7 + } EnTvRat_CAF_TV; + +typedef +enum BfEnTvRat_GenericAttributes + { + BfAttrNone = 0, + BfIsBlocked = 1, + BfIsAttr_1 = 2, + BfIsAttr_2 = 4, + BfIsAttr_3 = 8, + BfIsAttr_4 = 16, + BfIsAttr_5 = 32, + BfIsAttr_6 = 64, + BfIsAttr_7 = 128, + BfValidAttrSubmask = 255 + } BfEnTvRat_GenericAttributes; + +typedef +enum BfEnTvRat_Attributes_US_TV + { + US_TV_IsBlocked = BfIsBlocked, + US_TV_IsViolent = BfIsAttr_1, + US_TV_IsSexualSituation = BfIsAttr_2, + US_TV_IsAdultLanguage = BfIsAttr_3, + US_TV_IsSexuallySuggestiveDialog = BfIsAttr_4, + US_TV_ValidAttrSubmask = 31 + } BfEnTvRat_Attributes_US_TV; + +typedef +enum BfEnTvRat_Attributes_MPAA + { + MPAA_IsBlocked = BfIsBlocked, + MPAA_ValidAttrSubmask = 1 + } BfEnTvRat_Attributes_MPAA; + +typedef +enum BfEnTvRat_Attributes_CAE_TV + { + CAE_IsBlocked = BfIsBlocked, + CAE_ValidAttrSubmask = 1 + } BfEnTvRat_Attributes_CAE_TV; + +typedef +enum BfEnTvRat_Attributes_CAF_TV + { + CAF_IsBlocked = BfIsBlocked, + CAF_ValidAttrSubmask = 1 + } BfEnTvRat_Attributes_CAF_TV; + +#pragma region Desktop Family +#pragma endregion +#pragma endregion +// {C4C4C4C4-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(SID_DRMSecureServiceChannel, +0xC4C4C4C4, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C481-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_ETFilterEncProperties, +0xC4C4C481, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C491-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_ETFilterTagProperties, +0xC4C4C491, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {9CD31617-B303-4f96-8330-2EB173EA4DC6} +DEFINE_GUID(CLSID_PTFilter, +0x9cd31617, 0xb303, 0x4f96, 0x83, 0x30, 0x2e, 0xb1, 0x73, 0xea, 0x4d, 0xc6); +// {C4C4C482-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_DTFilterEncProperties, +0xC4C4C482, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C492-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_DTFilterTagProperties, +0xC4C4C492, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C483-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_XDSCodecProperties, +0xC4C4C483, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C493-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_XDSCodecTagProperties, +0xC4C4C493, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4FC-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_CPCAFiltersCategory, +0xC4C4C4FC, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E0-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_XDSCodecNewXDSRating, +0xC4C4C4E0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4DF-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_XDSCodecDuplicateXDSRating, +0xC4C4C4DF, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E1-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_XDSCodecNewXDSPacket, +0xC4C4C4E1, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E2-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterRatingChange, +0xC4C4C4E2, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E3-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterRatingsBlock, +0xC4C4C4E3, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E4-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterRatingsUnblock, +0xC4C4C4E4, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E5-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterXDSPacket, +0xC4C4C4E5, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E6-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETFilterEncryptionOn, +0xC4C4C4E6, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E7-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETFilterEncryptionOff, +0xC4C4C4E7, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E8-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterCOPPUnblock, +0xC4C4C4E8, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E9-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_EncDecFilterError, +0xC4C4C4E9, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4EA-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterCOPPBlock , +0xC4C4C4EA, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4EB-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETFilterCopyOnce, +0xC4C4C4EB, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4F0-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETFilterCopyNever, +0xC4C4C4F0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4EC-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterDataFormatOK, +0xC4C4C4EC, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4ED-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterDataFormatFailure, +0xC4C4C4ED, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4EE-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETDTFilterLicenseOK, +0xC4C4C4EE, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4EF-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETDTFilterLicenseFailure, +0xC4C4C4EF, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4D0-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(MEDIASUBTYPE_ETDTFilter_Tagged, +0xC4C4C4D0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4D1-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(FORMATTYPE_ETDTFilter_Tagged, +0xC4C4C4D1, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {46adbd28-6fd0-4796-93b2-155c51dc048d} +DEFINE_GUID( MEDIASUBTYPE_CPFilters_Processed, 0x46adbd28, 0x6fd0, 0x4796, 0x93, 0xb2, 0x15, 0x5c, 0x51, 0xdc, 0x4, 0x8d ); +// {6739b36f-1d5f-4ac2-8192-28bb0e73d16a} +DEFINE_GUID( FORMATTYPE_CPFilters_Processed, 0x6739b36f, 0x1d5f, 0x4ac2, 0x81, 0x92, 0x28, 0xbb, 0xe, 0x73, 0xd1, 0x6a ); +// {4A1B465B-0FB9-4159-AFBD-E33006A0F9F4} +DEFINE_GUID(EVENTID_EncDecFilterEvent, +0x4a1b465b, 0xfb9, 0x4159, 0xaf, 0xbd, 0xe3, 0x30, 0x6, 0xa0, 0xf9, 0xf4); + +enum FormatNotSupportedEvents + { + FORMATNOTSUPPORTED_CLEAR = 0, + FORMATNOTSUPPORTED_NOTSUPPORTED = 1 + } ; +// {24B2280A-B2AA-4777-BF65-63F35E7B024A} +DEFINE_GUID(EVENTID_FormatNotSupportedEvent, +0x24b2280a, 0xb2aa, 0x4777, 0xbf, 0x65, 0x63, 0xf3, 0x5e, 0x7b, 0x2, 0x4a); +// {16155770-AED5-475c-BB98-95A33070DF0C} +DEFINE_GUID(EVENTID_DemultiplexerFilterDiscontinuity, +0x16155770, 0xaed5, 0x475c, 0xbb, 0x98, 0x95, 0xa3, 0x30, 0x70, 0xdf, 0xc); +// {40749583-6b9d-4eec-b43c-67a1801e1a9b} +DEFINE_GUID( DSATTRIB_WMDRMProtectionInfo, 0x40749583, 0x6b9d, 0x4eec, 0xb4, 0x3c, 0x67, 0xa1, 0x80, 0x1e, 0x1a, 0x9b ); +// {e4846dda-5838-42b4-b897-6f7e5faa2f2f} +DEFINE_GUID( DSATTRIB_BadSampleInfo, 0xe4846dda, 0x5838, 0x42b4, 0xb8, 0x97, 0x6f, 0x7e, 0x5f, 0xaa, 0x2f, 0x2f ); + +#pragma pack(push, 1) +typedef /* [public] */ struct __MIDL___MIDL_itf_encdec_0000_0000_0001 + { + unsigned short wszKID[ 25 ]; + unsigned __int64 qwCounter; + unsigned __int64 qwIndex; + unsigned char bOffset; + } WMDRMProtectionInfo; + +typedef /* [public] */ struct __MIDL___MIDL_itf_encdec_0000_0000_0002 + { + HRESULT hrReason; + } BadSampleInfo; + + +#pragma pack(pop) +typedef LONGLONG REFERENCE_TIME; + +typedef LONG PackedTvRating; + +#pragma region Desktop Family +#pragma region Desktop Family +#pragma endregion +typedef /* [v1_enum][uuid] */ DECLSPEC_UUID("25AEE876-3D61-4486-917E-7C0CB3D9983C") +enum ProtType + { + PROT_COPY_FREE = 1, + PROT_COPY_ONCE = 2, + PROT_COPY_NEVER = 3, + PROT_COPY_NEVER_REALLY = 4, + PROT_COPY_NO_MORE = 5, + PROT_COPY_FREE_CIT = 6, + PROT_COPY_BF = 7, + PROT_COPY_CN_RECORDING_STOP = 8, + PROT_COPY_FREE_SECURE = 9, + PROT_COPY_INVALID = 50 + } ProtType; + +typedef /* [v1_enum] */ +enum EncDecEvents + { + ENCDEC_CPEVENT = 0, + ENCDEC_RECORDING_STATUS = ( ENCDEC_CPEVENT + 1 ) + } EncDecEvents; + +typedef /* [v1_enum] */ +enum CPRecordingStatus + { + RECORDING_STOPPED = 0, + RECORDING_STARTED = 1 + } CPRecordingStatus; + +typedef /* [v1_enum] */ +enum CPEventBitShift + { + CPEVENT_BITSHIFT_RATINGS = 0, + CPEVENT_BITSHIFT_COPP = ( CPEVENT_BITSHIFT_RATINGS + 1 ) , + CPEVENT_BITSHIFT_LICENSE = ( CPEVENT_BITSHIFT_COPP + 1 ) , + CPEVENT_BITSHIFT_ROLLBACK = ( CPEVENT_BITSHIFT_LICENSE + 1 ) , + CPEVENT_BITSHIFT_SAC = ( CPEVENT_BITSHIFT_ROLLBACK + 1 ) , + CPEVENT_BITSHIFT_DOWNRES = ( CPEVENT_BITSHIFT_SAC + 1 ) , + CPEVENT_BITSHIFT_STUBLIB = ( CPEVENT_BITSHIFT_DOWNRES + 1 ) , + CPEVENT_BITSHIFT_UNTRUSTEDGRAPH = ( CPEVENT_BITSHIFT_STUBLIB + 1 ) , + CPEVENT_BITSHIFT_PENDING_CERTIFICATE = ( CPEVENT_BITSHIFT_UNTRUSTEDGRAPH + 1 ) , + CPEVENT_BITSHIFT_NO_PLAYREADY = ( CPEVENT_BITSHIFT_PENDING_CERTIFICATE + 1 ) + } CPEventBitShift; + +typedef /* [v1_enum] */ +enum CPEvents + { + CPEVENT_NONE = 0, + CPEVENT_RATINGS = ( CPEVENT_NONE + 1 ) , + CPEVENT_COPP = ( CPEVENT_RATINGS + 1 ) , + CPEVENT_LICENSE = ( CPEVENT_COPP + 1 ) , + CPEVENT_ROLLBACK = ( CPEVENT_LICENSE + 1 ) , + CPEVENT_SAC = ( CPEVENT_ROLLBACK + 1 ) , + CPEVENT_DOWNRES = ( CPEVENT_SAC + 1 ) , + CPEVENT_STUBLIB = ( CPEVENT_DOWNRES + 1 ) , + CPEVENT_UNTRUSTEDGRAPH = ( CPEVENT_STUBLIB + 1 ) , + CPEVENT_PROTECTWINDOWED = ( CPEVENT_UNTRUSTEDGRAPH + 1 ) + } CPEvents; + +typedef /* [v1_enum] */ +enum RevokedComponent + { + REVOKED_COPP = 0, + REVOKED_SAC = ( REVOKED_COPP + 1 ) , + REVOKED_APP_STUB = ( REVOKED_SAC + 1 ) , + REVOKED_SECURE_PIPELINE = ( REVOKED_APP_STUB + 1 ) , + REVOKED_MAX_TYPES = ( REVOKED_SECURE_PIPELINE + 1 ) + } RevokedComponent; + +typedef /* [v1_enum] */ +enum EnTag_Mode + { + EnTag_Remove = 0, + EnTag_Once = 0x1, + EnTag_Repeat = 0x2 + } EnTag_Mode; + +typedef /* [v1_enum][uuid] */ DECLSPEC_UUID("6F8C2442-2BFB-4180-9EE5-EA1FB47AE35C") +enum COPPEventBlockReason + { + COPP_Unknown = -1, + COPP_BadDriver = 0, + COPP_NoCardHDCPSupport = 1, + COPP_NoMonitorHDCPSupport = 2, + COPP_BadCertificate = 3, + COPP_InvalidBusProtection = 4, + COPP_AeroGlassOff = 5, + COPP_RogueApp = 6, + COPP_ForbiddenVideo = 7, + COPP_Activate = 8, + COPP_DigitalAudioUnprotected = 9 + } COPPEventBlockReason; + +typedef /* [v1_enum][uuid] */ DECLSPEC_UUID("57BCA1BE-DF7A-434e-8B89-26D6A0541FDA") +enum LicenseEventBlockReason + { + LIC_BadLicense = 0, + LIC_NeedIndiv = 1, + LIC_Expired = 2, + LIC_NeedActivation = 3, + LIC_ExtenderBlocked = 4 + } LicenseEventBlockReason; + +typedef /* [v1_enum][uuid] */ DECLSPEC_UUID("D5CC1CDC-EF31-48dc-95B8-AFD34C08036B") +enum DownResEventParam + { + DOWNRES_Always = 0, + DOWNRES_InWindowOnly = 1, + DOWNRES_Undefined = 2 + } DownResEventParam; + +#pragma region Desktop Family +#pragma endregion +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_encdec_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_encdec_0000_0000_v0_0_s_ifspec; + +#ifndef __IETFilterConfig_INTERFACE_DEFINED__ +#define __IETFilterConfig_INTERFACE_DEFINED__ + +/* interface IETFilterConfig */ +/* [unique][helpstring][uuid][object][restricted] */ + + +EXTERN_C const IID IID_IETFilterConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4D1-0049-4E2B-98FB-9537F6CE516D") + IETFilterConfig : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitLicense( + /* [in] */ int LicenseId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecureChannelObject( + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IETFilterConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IETFilterConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IETFilterConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IETFilterConfig * This); + + DECLSPEC_XFGVIRT(IETFilterConfig, InitLicense) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitLicense )( + __RPC__in IETFilterConfig * This, + /* [in] */ int LicenseId); + + DECLSPEC_XFGVIRT(IETFilterConfig, GetSecureChannelObject) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecureChannelObject )( + __RPC__in IETFilterConfig * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel); + + END_INTERFACE + } IETFilterConfigVtbl; + + interface IETFilterConfig + { + CONST_VTBL struct IETFilterConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IETFilterConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IETFilterConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IETFilterConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IETFilterConfig_InitLicense(This,LicenseId) \ + ( (This)->lpVtbl -> InitLicense(This,LicenseId) ) + +#define IETFilterConfig_GetSecureChannelObject(This,ppUnkDRMSecureChannel) \ + ( (This)->lpVtbl -> GetSecureChannelObject(This,ppUnkDRMSecureChannel) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IETFilterConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IDTFilterConfig_INTERFACE_DEFINED__ +#define __IDTFilterConfig_INTERFACE_DEFINED__ + +/* interface IDTFilterConfig */ +/* [unique][helpstring][uuid][object][restricted] */ + + +EXTERN_C const IID IID_IDTFilterConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4D2-0049-4E2B-98FB-9537F6CE516D") + IDTFilterConfig : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecureChannelObject( + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDTFilterConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilterConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilterConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilterConfig * This); + + DECLSPEC_XFGVIRT(IDTFilterConfig, GetSecureChannelObject) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecureChannelObject )( + __RPC__in IDTFilterConfig * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel); + + END_INTERFACE + } IDTFilterConfigVtbl; + + interface IDTFilterConfig + { + CONST_VTBL struct IDTFilterConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilterConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilterConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilterConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilterConfig_GetSecureChannelObject(This,ppUnkDRMSecureChannel) \ + ( (This)->lpVtbl -> GetSecureChannelObject(This,ppUnkDRMSecureChannel) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDTFilterConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IXDSCodecConfig_INTERFACE_DEFINED__ +#define __IXDSCodecConfig_INTERFACE_DEFINED__ + +/* interface IXDSCodecConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IXDSCodecConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4D3-0049-4E2B-98FB-9537F6CE516D") + IXDSCodecConfig : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecureChannelObject( + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetPauseBufferTime( + /* [in] */ DWORD dwPauseBufferTime) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IXDSCodecConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IXDSCodecConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IXDSCodecConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IXDSCodecConfig * This); + + DECLSPEC_XFGVIRT(IXDSCodecConfig, GetSecureChannelObject) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecureChannelObject )( + __RPC__in IXDSCodecConfig * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel); + + DECLSPEC_XFGVIRT(IXDSCodecConfig, SetPauseBufferTime) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetPauseBufferTime )( + __RPC__in IXDSCodecConfig * This, + /* [in] */ DWORD dwPauseBufferTime); + + END_INTERFACE + } IXDSCodecConfigVtbl; + + interface IXDSCodecConfig + { + CONST_VTBL struct IXDSCodecConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IXDSCodecConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IXDSCodecConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IXDSCodecConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IXDSCodecConfig_GetSecureChannelObject(This,ppUnkDRMSecureChannel) \ + ( (This)->lpVtbl -> GetSecureChannelObject(This,ppUnkDRMSecureChannel) ) + +#define IXDSCodecConfig_SetPauseBufferTime(This,dwPauseBufferTime) \ + ( (This)->lpVtbl -> SetPauseBufferTime(This,dwPauseBufferTime) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IXDSCodecConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IDTFilterLicenseRenewal_INTERFACE_DEFINED__ +#define __IDTFilterLicenseRenewal_INTERFACE_DEFINED__ + +/* interface IDTFilterLicenseRenewal */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDTFilterLicenseRenewal; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8A78B317-E405-4a43-994A-620D8F5CE25E") + IDTFilterLicenseRenewal : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetLicenseRenewalData( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszFileName, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszExpiredKid, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszTunerId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDTFilterLicenseRenewalVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilterLicenseRenewal * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilterLicenseRenewal * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilterLicenseRenewal * This); + + DECLSPEC_XFGVIRT(IDTFilterLicenseRenewal, GetLicenseRenewalData) + HRESULT ( STDMETHODCALLTYPE *GetLicenseRenewalData )( + __RPC__in IDTFilterLicenseRenewal * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszFileName, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszExpiredKid, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszTunerId); + + END_INTERFACE + } IDTFilterLicenseRenewalVtbl; + + interface IDTFilterLicenseRenewal + { + CONST_VTBL struct IDTFilterLicenseRenewalVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilterLicenseRenewal_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilterLicenseRenewal_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilterLicenseRenewal_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilterLicenseRenewal_GetLicenseRenewalData(This,ppwszFileName,ppwszExpiredKid,ppwszTunerId) \ + ( (This)->lpVtbl -> GetLicenseRenewalData(This,ppwszFileName,ppwszExpiredKid,ppwszTunerId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDTFilterLicenseRenewal_INTERFACE_DEFINED__ */ + + +#ifndef __IPTFilterLicenseRenewal_INTERFACE_DEFINED__ +#define __IPTFilterLicenseRenewal_INTERFACE_DEFINED__ + +/* interface IPTFilterLicenseRenewal */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IPTFilterLicenseRenewal; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("26D836A5-0C15-44c7-AC59-B0DA8728F240") + IPTFilterLicenseRenewal : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RenewLicenses( + /* [in] */ __RPC__in WCHAR *wszFileName, + /* [in] */ __RPC__in WCHAR *wszExpiredKid, + /* [in] */ DWORD dwCallersId, + /* [in] */ BOOL bHighPriority) = 0; + + virtual HRESULT STDMETHODCALLTYPE CancelLicenseRenewal( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPTFilterLicenseRenewalVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPTFilterLicenseRenewal * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPTFilterLicenseRenewal * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPTFilterLicenseRenewal * This); + + DECLSPEC_XFGVIRT(IPTFilterLicenseRenewal, RenewLicenses) + HRESULT ( STDMETHODCALLTYPE *RenewLicenses )( + __RPC__in IPTFilterLicenseRenewal * This, + /* [in] */ __RPC__in WCHAR *wszFileName, + /* [in] */ __RPC__in WCHAR *wszExpiredKid, + /* [in] */ DWORD dwCallersId, + /* [in] */ BOOL bHighPriority); + + DECLSPEC_XFGVIRT(IPTFilterLicenseRenewal, CancelLicenseRenewal) + HRESULT ( STDMETHODCALLTYPE *CancelLicenseRenewal )( + __RPC__in IPTFilterLicenseRenewal * This); + + END_INTERFACE + } IPTFilterLicenseRenewalVtbl; + + interface IPTFilterLicenseRenewal + { + CONST_VTBL struct IPTFilterLicenseRenewalVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPTFilterLicenseRenewal_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPTFilterLicenseRenewal_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPTFilterLicenseRenewal_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPTFilterLicenseRenewal_RenewLicenses(This,wszFileName,wszExpiredKid,dwCallersId,bHighPriority) \ + ( (This)->lpVtbl -> RenewLicenses(This,wszFileName,wszExpiredKid,dwCallersId,bHighPriority) ) + +#define IPTFilterLicenseRenewal_CancelLicenseRenewal(This) \ + ( (This)->lpVtbl -> CancelLicenseRenewal(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPTFilterLicenseRenewal_INTERFACE_DEFINED__ */ + + +#ifndef __IMceBurnerControl_INTERFACE_DEFINED__ +#define __IMceBurnerControl_INTERFACE_DEFINED__ + +/* interface IMceBurnerControl */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMceBurnerControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5A86B91A-E71E-46c1-88A9-9BB338710552") + IMceBurnerControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetBurnerNoDecryption( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMceBurnerControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMceBurnerControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMceBurnerControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMceBurnerControl * This); + + DECLSPEC_XFGVIRT(IMceBurnerControl, GetBurnerNoDecryption) + HRESULT ( STDMETHODCALLTYPE *GetBurnerNoDecryption )( + __RPC__in IMceBurnerControl * This); + + END_INTERFACE + } IMceBurnerControlVtbl; + + interface IMceBurnerControl + { + CONST_VTBL struct IMceBurnerControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMceBurnerControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMceBurnerControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMceBurnerControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMceBurnerControl_GetBurnerNoDecryption(This) \ + ( (This)->lpVtbl -> GetBurnerNoDecryption(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMceBurnerControl_INTERFACE_DEFINED__ */ + + + +#ifndef __EncDec_LIBRARY_DEFINED__ +#define __EncDec_LIBRARY_DEFINED__ + +/* library EncDec */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_EncDec; + +#ifndef __IETFilter_INTERFACE_DEFINED__ +#define __IETFilter_INTERFACE_DEFINED__ + +/* interface IETFilter */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IETFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4B1-0049-4E2B-98FB-9537F6CE516D") + IETFilter : public IUnknown + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EvalRatObjOK( + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrRating( + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrLicenseExpDate( + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLastErrorCode( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetRecordingOn( + BOOL fRecState) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IETFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IETFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IETFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IETFilter * This); + + DECLSPEC_XFGVIRT(IETFilter, get_EvalRatObjOK) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EvalRatObjOK )( + __RPC__in IETFilter * This, + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal); + + DECLSPEC_XFGVIRT(IETFilter, GetCurrRating) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrRating )( + __RPC__in IETFilter * This, + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IETFilter, GetCurrLicenseExpDate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrLicenseExpDate )( + __RPC__in IETFilter * This, + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime); + + DECLSPEC_XFGVIRT(IETFilter, GetLastErrorCode) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLastErrorCode )( + __RPC__in IETFilter * This); + + DECLSPEC_XFGVIRT(IETFilter, SetRecordingOn) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetRecordingOn )( + __RPC__in IETFilter * This, + BOOL fRecState); + + END_INTERFACE + } IETFilterVtbl; + + interface IETFilter + { + CONST_VTBL struct IETFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IETFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IETFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IETFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IETFilter_get_EvalRatObjOK(This,pHrCoCreateRetVal) \ + ( (This)->lpVtbl -> get_EvalRatObjOK(This,pHrCoCreateRetVal) ) + +#define IETFilter_GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) \ + ( (This)->lpVtbl -> GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) ) + +#define IETFilter_GetCurrLicenseExpDate(This,protType,lpDateTime) \ + ( (This)->lpVtbl -> GetCurrLicenseExpDate(This,protType,lpDateTime) ) + +#define IETFilter_GetLastErrorCode(This) \ + ( (This)->lpVtbl -> GetLastErrorCode(This) ) + +#define IETFilter_SetRecordingOn(This,fRecState) \ + ( (This)->lpVtbl -> SetRecordingOn(This,fRecState) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IETFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IETFilterEvents_DISPINTERFACE_DEFINED__ +#define __IETFilterEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface IETFilterEvents */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_IETFilterEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4C1-0049-4E2B-98FB-9537F6CE516D") + IETFilterEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct IETFilterEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IETFilterEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IETFilterEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IETFilterEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IETFilterEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IETFilterEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IETFilterEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IETFilterEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } IETFilterEventsVtbl; + + interface IETFilterEvents + { + CONST_VTBL struct IETFilterEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IETFilterEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IETFilterEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IETFilterEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IETFilterEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IETFilterEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IETFilterEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IETFilterEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __IETFilterEvents_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_ETFilter; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4C4C4F1-0049-4E2B-98FB-9537F6CE516D") +ETFilter; +#endif + +#ifndef __IDTFilter_INTERFACE_DEFINED__ +#define __IDTFilter_INTERFACE_DEFINED__ + +/* interface IDTFilter */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDTFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4B2-0049-4E2B-98FB-9537F6CE516D") + IDTFilter : public IUnknown + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EvalRatObjOK( + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrRating( + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockedRatingAttributes( + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [retval][out] */ __RPC__out LONG *plbfEnAttr) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BlockedRatingAttributes( + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [in] */ LONG lbfAttrs) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockUnRated( + /* [retval][out] */ __RPC__out BOOL *pfBlockUnRatedShows) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BlockUnRated( + /* [in] */ BOOL fBlockUnRatedShows) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockUnRatedDelay( + /* [retval][out] */ __RPC__out LONG *pmsecsDelayBeforeBlock) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BlockUnRatedDelay( + /* [in] */ LONG msecsDelayBeforeBlock) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDTFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilter * This); + + DECLSPEC_XFGVIRT(IDTFilter, get_EvalRatObjOK) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EvalRatObjOK )( + __RPC__in IDTFilter * This, + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal); + + DECLSPEC_XFGVIRT(IDTFilter, GetCurrRating) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrRating )( + __RPC__in IDTFilter * This, + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockedRatingAttributes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedRatingAttributes )( + __RPC__in IDTFilter * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [retval][out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockedRatingAttributes) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedRatingAttributes )( + __RPC__in IDTFilter * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [in] */ LONG lbfAttrs); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRated) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRated )( + __RPC__in IDTFilter * This, + /* [retval][out] */ __RPC__out BOOL *pfBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRated) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRated )( + __RPC__in IDTFilter * This, + /* [in] */ BOOL fBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRatedDelay) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRatedDelay )( + __RPC__in IDTFilter * This, + /* [retval][out] */ __RPC__out LONG *pmsecsDelayBeforeBlock); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRatedDelay) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRatedDelay )( + __RPC__in IDTFilter * This, + /* [in] */ LONG msecsDelayBeforeBlock); + + END_INTERFACE + } IDTFilterVtbl; + + interface IDTFilter + { + CONST_VTBL struct IDTFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilter_get_EvalRatObjOK(This,pHrCoCreateRetVal) \ + ( (This)->lpVtbl -> get_EvalRatObjOK(This,pHrCoCreateRetVal) ) + +#define IDTFilter_GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) \ + ( (This)->lpVtbl -> GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) ) + +#define IDTFilter_get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) \ + ( (This)->lpVtbl -> get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) ) + +#define IDTFilter_put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) \ + ( (This)->lpVtbl -> put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) ) + +#define IDTFilter_get_BlockUnRated(This,pfBlockUnRatedShows) \ + ( (This)->lpVtbl -> get_BlockUnRated(This,pfBlockUnRatedShows) ) + +#define IDTFilter_put_BlockUnRated(This,fBlockUnRatedShows) \ + ( (This)->lpVtbl -> put_BlockUnRated(This,fBlockUnRatedShows) ) + +#define IDTFilter_get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) ) + +#define IDTFilter_put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDTFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IDTFilter2_INTERFACE_DEFINED__ +#define __IDTFilter2_INTERFACE_DEFINED__ + +/* interface IDTFilter2 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDTFilter2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4B4-0049-4E2B-98FB-9537F6CE516D") + IDTFilter2 : public IDTFilter + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ChallengeUrl( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrChallengeUrl) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrLicenseExpDate( + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLastErrorCode( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDTFilter2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilter2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilter2 * This); + + DECLSPEC_XFGVIRT(IDTFilter, get_EvalRatObjOK) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EvalRatObjOK )( + __RPC__in IDTFilter2 * This, + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal); + + DECLSPEC_XFGVIRT(IDTFilter, GetCurrRating) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrRating )( + __RPC__in IDTFilter2 * This, + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockedRatingAttributes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedRatingAttributes )( + __RPC__in IDTFilter2 * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [retval][out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockedRatingAttributes) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedRatingAttributes )( + __RPC__in IDTFilter2 * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [in] */ LONG lbfAttrs); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRated) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRated )( + __RPC__in IDTFilter2 * This, + /* [retval][out] */ __RPC__out BOOL *pfBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRated) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRated )( + __RPC__in IDTFilter2 * This, + /* [in] */ BOOL fBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRatedDelay) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRatedDelay )( + __RPC__in IDTFilter2 * This, + /* [retval][out] */ __RPC__out LONG *pmsecsDelayBeforeBlock); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRatedDelay) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRatedDelay )( + __RPC__in IDTFilter2 * This, + /* [in] */ LONG msecsDelayBeforeBlock); + + DECLSPEC_XFGVIRT(IDTFilter2, get_ChallengeUrl) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChallengeUrl )( + __RPC__in IDTFilter2 * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrChallengeUrl); + + DECLSPEC_XFGVIRT(IDTFilter2, GetCurrLicenseExpDate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrLicenseExpDate )( + __RPC__in IDTFilter2 * This, + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime); + + DECLSPEC_XFGVIRT(IDTFilter2, GetLastErrorCode) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLastErrorCode )( + __RPC__in IDTFilter2 * This); + + END_INTERFACE + } IDTFilter2Vtbl; + + interface IDTFilter2 + { + CONST_VTBL struct IDTFilter2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilter2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilter2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilter2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilter2_get_EvalRatObjOK(This,pHrCoCreateRetVal) \ + ( (This)->lpVtbl -> get_EvalRatObjOK(This,pHrCoCreateRetVal) ) + +#define IDTFilter2_GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) \ + ( (This)->lpVtbl -> GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) ) + +#define IDTFilter2_get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) \ + ( (This)->lpVtbl -> get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) ) + +#define IDTFilter2_put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) \ + ( (This)->lpVtbl -> put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) ) + +#define IDTFilter2_get_BlockUnRated(This,pfBlockUnRatedShows) \ + ( (This)->lpVtbl -> get_BlockUnRated(This,pfBlockUnRatedShows) ) + +#define IDTFilter2_put_BlockUnRated(This,fBlockUnRatedShows) \ + ( (This)->lpVtbl -> put_BlockUnRated(This,fBlockUnRatedShows) ) + +#define IDTFilter2_get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) ) + +#define IDTFilter2_put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) ) + + +#define IDTFilter2_get_ChallengeUrl(This,pbstrChallengeUrl) \ + ( (This)->lpVtbl -> get_ChallengeUrl(This,pbstrChallengeUrl) ) + +#define IDTFilter2_GetCurrLicenseExpDate(This,protType,lpDateTime) \ + ( (This)->lpVtbl -> GetCurrLicenseExpDate(This,protType,lpDateTime) ) + +#define IDTFilter2_GetLastErrorCode(This) \ + ( (This)->lpVtbl -> GetLastErrorCode(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDTFilter2_INTERFACE_DEFINED__ */ + + +#ifndef __IDTFilter3_INTERFACE_DEFINED__ +#define __IDTFilter3_INTERFACE_DEFINED__ + +/* interface IDTFilter3 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDTFilter3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("513998cc-e929-4cdf-9fbd-bad1e0314866") + IDTFilter3 : public IDTFilter2 + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetProtectionType( + /* [out] */ __RPC__out ProtType *pProtectionType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LicenseHasExpirationDate( + /* [out] */ __RPC__out BOOL *pfLicenseHasExpirationDate) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetRights( + /* [in] */ __RPC__in BSTR bstrRights) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDTFilter3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilter3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilter3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilter3 * This); + + DECLSPEC_XFGVIRT(IDTFilter, get_EvalRatObjOK) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EvalRatObjOK )( + __RPC__in IDTFilter3 * This, + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal); + + DECLSPEC_XFGVIRT(IDTFilter, GetCurrRating) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrRating )( + __RPC__in IDTFilter3 * This, + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockedRatingAttributes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedRatingAttributes )( + __RPC__in IDTFilter3 * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [retval][out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockedRatingAttributes) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedRatingAttributes )( + __RPC__in IDTFilter3 * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [in] */ LONG lbfAttrs); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRated) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRated )( + __RPC__in IDTFilter3 * This, + /* [retval][out] */ __RPC__out BOOL *pfBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRated) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRated )( + __RPC__in IDTFilter3 * This, + /* [in] */ BOOL fBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRatedDelay) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRatedDelay )( + __RPC__in IDTFilter3 * This, + /* [retval][out] */ __RPC__out LONG *pmsecsDelayBeforeBlock); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRatedDelay) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRatedDelay )( + __RPC__in IDTFilter3 * This, + /* [in] */ LONG msecsDelayBeforeBlock); + + DECLSPEC_XFGVIRT(IDTFilter2, get_ChallengeUrl) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChallengeUrl )( + __RPC__in IDTFilter3 * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrChallengeUrl); + + DECLSPEC_XFGVIRT(IDTFilter2, GetCurrLicenseExpDate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrLicenseExpDate )( + __RPC__in IDTFilter3 * This, + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime); + + DECLSPEC_XFGVIRT(IDTFilter2, GetLastErrorCode) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLastErrorCode )( + __RPC__in IDTFilter3 * This); + + DECLSPEC_XFGVIRT(IDTFilter3, GetProtectionType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetProtectionType )( + __RPC__in IDTFilter3 * This, + /* [out] */ __RPC__out ProtType *pProtectionType); + + DECLSPEC_XFGVIRT(IDTFilter3, LicenseHasExpirationDate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LicenseHasExpirationDate )( + __RPC__in IDTFilter3 * This, + /* [out] */ __RPC__out BOOL *pfLicenseHasExpirationDate); + + DECLSPEC_XFGVIRT(IDTFilter3, SetRights) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetRights )( + __RPC__in IDTFilter3 * This, + /* [in] */ __RPC__in BSTR bstrRights); + + END_INTERFACE + } IDTFilter3Vtbl; + + interface IDTFilter3 + { + CONST_VTBL struct IDTFilter3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilter3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilter3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilter3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilter3_get_EvalRatObjOK(This,pHrCoCreateRetVal) \ + ( (This)->lpVtbl -> get_EvalRatObjOK(This,pHrCoCreateRetVal) ) + +#define IDTFilter3_GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) \ + ( (This)->lpVtbl -> GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) ) + +#define IDTFilter3_get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) \ + ( (This)->lpVtbl -> get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) ) + +#define IDTFilter3_put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) \ + ( (This)->lpVtbl -> put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) ) + +#define IDTFilter3_get_BlockUnRated(This,pfBlockUnRatedShows) \ + ( (This)->lpVtbl -> get_BlockUnRated(This,pfBlockUnRatedShows) ) + +#define IDTFilter3_put_BlockUnRated(This,fBlockUnRatedShows) \ + ( (This)->lpVtbl -> put_BlockUnRated(This,fBlockUnRatedShows) ) + +#define IDTFilter3_get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) ) + +#define IDTFilter3_put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) ) + + +#define IDTFilter3_get_ChallengeUrl(This,pbstrChallengeUrl) \ + ( (This)->lpVtbl -> get_ChallengeUrl(This,pbstrChallengeUrl) ) + +#define IDTFilter3_GetCurrLicenseExpDate(This,protType,lpDateTime) \ + ( (This)->lpVtbl -> GetCurrLicenseExpDate(This,protType,lpDateTime) ) + +#define IDTFilter3_GetLastErrorCode(This) \ + ( (This)->lpVtbl -> GetLastErrorCode(This) ) + + +#define IDTFilter3_GetProtectionType(This,pProtectionType) \ + ( (This)->lpVtbl -> GetProtectionType(This,pProtectionType) ) + +#define IDTFilter3_LicenseHasExpirationDate(This,pfLicenseHasExpirationDate) \ + ( (This)->lpVtbl -> LicenseHasExpirationDate(This,pfLicenseHasExpirationDate) ) + +#define IDTFilter3_SetRights(This,bstrRights) \ + ( (This)->lpVtbl -> SetRights(This,bstrRights) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDTFilter3_INTERFACE_DEFINED__ */ + + +#ifndef __IDTFilterEvents_DISPINTERFACE_DEFINED__ +#define __IDTFilterEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface IDTFilterEvents */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_IDTFilterEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4C2-0049-4E2B-98FB-9537F6CE516D") + IDTFilterEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct IDTFilterEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilterEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilterEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilterEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDTFilterEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDTFilterEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDTFilterEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDTFilterEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } IDTFilterEventsVtbl; + + interface IDTFilterEvents + { + CONST_VTBL struct IDTFilterEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilterEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilterEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilterEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilterEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDTFilterEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDTFilterEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDTFilterEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __IDTFilterEvents_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_DTFilter; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4C4C4F2-0049-4E2B-98FB-9537F6CE516D") +DTFilter; +#endif + +#ifndef __IXDSCodec_INTERFACE_DEFINED__ +#define __IXDSCodec_INTERFACE_DEFINED__ + +/* interface IXDSCodec */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IXDSCodec; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4B3-0049-4E2B-98FB-9537F6CE516D") + IXDSCodec : public IUnknown + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_XDSToRatObjOK( + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CCSubstreamService( + /* [in] */ long SubstreamMask) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CCSubstreamService( + /* [retval][out] */ __RPC__out long *pSubstreamMask) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetContentAdvisoryRating( + /* [out] */ __RPC__out PackedTvRating *pRat, + /* [out] */ __RPC__out long *pPktSeqID, + /* [out] */ __RPC__out long *pCallSeqID, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeStart, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeEnd) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetXDSPacket( + /* [out] */ __RPC__out long *pXDSClassPkt, + /* [out] */ __RPC__out long *pXDSTypePkt, + /* [out] */ __RPC__deref_out_opt BSTR *pBstrXDSPkt, + /* [out] */ __RPC__out long *pPktSeqID, + /* [out] */ __RPC__out long *pCallSeqID, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeStart, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeEnd) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrLicenseExpDate( + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLastErrorCode( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IXDSCodecVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IXDSCodec * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IXDSCodec * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IXDSCodec * This); + + DECLSPEC_XFGVIRT(IXDSCodec, get_XDSToRatObjOK) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_XDSToRatObjOK )( + __RPC__in IXDSCodec * This, + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal); + + DECLSPEC_XFGVIRT(IXDSCodec, put_CCSubstreamService) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CCSubstreamService )( + __RPC__in IXDSCodec * This, + /* [in] */ long SubstreamMask); + + DECLSPEC_XFGVIRT(IXDSCodec, get_CCSubstreamService) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CCSubstreamService )( + __RPC__in IXDSCodec * This, + /* [retval][out] */ __RPC__out long *pSubstreamMask); + + DECLSPEC_XFGVIRT(IXDSCodec, GetContentAdvisoryRating) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetContentAdvisoryRating )( + __RPC__in IXDSCodec * This, + /* [out] */ __RPC__out PackedTvRating *pRat, + /* [out] */ __RPC__out long *pPktSeqID, + /* [out] */ __RPC__out long *pCallSeqID, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeStart, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeEnd); + + DECLSPEC_XFGVIRT(IXDSCodec, GetXDSPacket) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetXDSPacket )( + __RPC__in IXDSCodec * This, + /* [out] */ __RPC__out long *pXDSClassPkt, + /* [out] */ __RPC__out long *pXDSTypePkt, + /* [out] */ __RPC__deref_out_opt BSTR *pBstrXDSPkt, + /* [out] */ __RPC__out long *pPktSeqID, + /* [out] */ __RPC__out long *pCallSeqID, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeStart, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeEnd); + + DECLSPEC_XFGVIRT(IXDSCodec, GetCurrLicenseExpDate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrLicenseExpDate )( + __RPC__in IXDSCodec * This, + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime); + + DECLSPEC_XFGVIRT(IXDSCodec, GetLastErrorCode) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLastErrorCode )( + __RPC__in IXDSCodec * This); + + END_INTERFACE + } IXDSCodecVtbl; + + interface IXDSCodec + { + CONST_VTBL struct IXDSCodecVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IXDSCodec_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IXDSCodec_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IXDSCodec_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IXDSCodec_get_XDSToRatObjOK(This,pHrCoCreateRetVal) \ + ( (This)->lpVtbl -> get_XDSToRatObjOK(This,pHrCoCreateRetVal) ) + +#define IXDSCodec_put_CCSubstreamService(This,SubstreamMask) \ + ( (This)->lpVtbl -> put_CCSubstreamService(This,SubstreamMask) ) + +#define IXDSCodec_get_CCSubstreamService(This,pSubstreamMask) \ + ( (This)->lpVtbl -> get_CCSubstreamService(This,pSubstreamMask) ) + +#define IXDSCodec_GetContentAdvisoryRating(This,pRat,pPktSeqID,pCallSeqID,pTimeStart,pTimeEnd) \ + ( (This)->lpVtbl -> GetContentAdvisoryRating(This,pRat,pPktSeqID,pCallSeqID,pTimeStart,pTimeEnd) ) + +#define IXDSCodec_GetXDSPacket(This,pXDSClassPkt,pXDSTypePkt,pBstrXDSPkt,pPktSeqID,pCallSeqID,pTimeStart,pTimeEnd) \ + ( (This)->lpVtbl -> GetXDSPacket(This,pXDSClassPkt,pXDSTypePkt,pBstrXDSPkt,pPktSeqID,pCallSeqID,pTimeStart,pTimeEnd) ) + +#define IXDSCodec_GetCurrLicenseExpDate(This,protType,lpDateTime) \ + ( (This)->lpVtbl -> GetCurrLicenseExpDate(This,protType,lpDateTime) ) + +#define IXDSCodec_GetLastErrorCode(This) \ + ( (This)->lpVtbl -> GetLastErrorCode(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IXDSCodec_INTERFACE_DEFINED__ */ + + +#ifndef __IXDSCodecEvents_DISPINTERFACE_DEFINED__ +#define __IXDSCodecEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface IXDSCodecEvents */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_IXDSCodecEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4C3-0049-4E2B-98FB-9537F6CE516D") + IXDSCodecEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct IXDSCodecEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IXDSCodecEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IXDSCodecEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IXDSCodecEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IXDSCodecEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IXDSCodecEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IXDSCodecEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IXDSCodecEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } IXDSCodecEventsVtbl; + + interface IXDSCodecEvents + { + CONST_VTBL struct IXDSCodecEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IXDSCodecEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IXDSCodecEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IXDSCodecEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IXDSCodecEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IXDSCodecEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IXDSCodecEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IXDSCodecEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __IXDSCodecEvents_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_XDSCodec; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4C4C4F3-0049-4E2B-98FB-9537F6CE516D") +XDSCodec; +#endif + +EXTERN_C const CLSID CLSID_CXDSData; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4C4C4F4-0049-4E2B-98FB-9537F6CE516D") +CXDSData; +#endif +#endif /* __EncDec_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_encdec_0000_0007 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_encdec_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_encdec_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/encdec.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/encdec.idl new file mode 100644 index 0000000000000000000000000000000000000000..2e70e0c59dd6e7644c3a2a743085c0146326602f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/encdec.idl @@ -0,0 +1,668 @@ +// -------------------------------------------------------- +// EncDecTag.idl +// +// +// Encrypter-Tagger/DeCrypter-Detagger filter definitions +// +// +// Copyright (c) Microsoft, 2002 +// --------------------------------------------------------- +// +// Guide to CLSIDS: +// +// -- 8x Enc/dec Properties +// -- 9x Tag Properties +// -- Ax +// -- Bx IFilter +// -- Cx IFilterEvents +// -- Dx IFilterConfig +// -- Ex +// -- Fx CFilter (coclass) +// +// x = 1 - Encrypter-Tagger +// x = 2 - Decrypter-Detagger + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (C) Microsoft Corporation, 2002.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("#pragma once") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +import "oaidl.idl"; +import "ocidl.idl"; + +#include "tvratings_enum.h" + +cpp_quote ("// {C4C4C4C4-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(SID_DRMSecureServiceChannel,") +cpp_quote ("0xC4C4C4C4, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +// ----------------- +// filter ClassID's + +cpp_quote ("// {C4C4C481-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_ETFilterEncProperties,") +cpp_quote ("0xC4C4C481, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +cpp_quote ("// {C4C4C491-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_ETFilterTagProperties,") +cpp_quote ("0xC4C4C491, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +/* CLSID defined in coclass below +cpp_quote ("// {C4C4C4F1-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_ETFilter,") +cpp_quote ("0xC4C4C4F1, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") +*/ + +cpp_quote ("// {9CD31617-B303-4f96-8330-2EB173EA4DC6}") +cpp_quote ("DEFINE_GUID(CLSID_PTFilter,") +cpp_quote ("0x9cd31617, 0xb303, 0x4f96, 0x83, 0x30, 0x2e, 0xb1, 0x73, 0xea, 0x4d, 0xc6);") + + + + +cpp_quote ("// {C4C4C482-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_DTFilterEncProperties,") +cpp_quote ("0xC4C4C482, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +cpp_quote ("// {C4C4C492-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_DTFilterTagProperties,") +cpp_quote ("0xC4C4C492, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +/* +cpp_quote ("// {C4C4C4F2-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_DTFilter,") +cpp_quote ("0xC4C4C4F2, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") +*/ + +cpp_quote ("// {C4C4C483-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_XDSCodecProperties,") +cpp_quote ("0xC4C4C483, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +cpp_quote ("// {C4C4C493-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_XDSCodecTagProperties,") +cpp_quote ("0xC4C4C493, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +/* +cpp_quote ("// {C4C4C4F3-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_XDSCodec,") +cpp_quote ("0xC4C4C4F3, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") +*/ + +cpp_quote ("// {C4C4C4FC-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_CPCAFiltersCategory,") +cpp_quote ("0xC4C4C4FC, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + +// broadcast eventID's + // sent by XDSCodec when get a new rating +cpp_quote ("// {C4C4C4E0-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_XDSCodecNewXDSRating,") +cpp_quote ("0xC4C4C4E0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by XDSCodec when get a duplicate to a current non DontKnow rating +cpp_quote ("// {C4C4C4DF-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_XDSCodecDuplicateXDSRating,") +cpp_quote ("0xC4C4C4DF, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by XDS Codec when get some other XDS packet +cpp_quote ("// {C4C4C4E1-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_XDSCodecNewXDSPacket,") +cpp_quote ("0xC4C4C4E1, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter/Detagger when rating changes +cpp_quote ("// {C4C4C4E2-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterRatingChange,") +cpp_quote ("0xC4C4C4E2, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter/DeTagger when show rating exceeds max allowable +cpp_quote ("// {C4C4C4E3-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterRatingsBlock,") +cpp_quote ("0xC4C4C4E3, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter/DeTagger when show rating drops below max allowable +cpp_quote ("// {C4C4C4E4-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterRatingsUnblock,") +cpp_quote ("0xC4C4C4E4, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + + // sent by Decrypter/DeTagger when get new XDS packet +cpp_quote ("// {C4C4C4E5-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterXDSPacket,") +cpp_quote ("0xC4C4C4E5, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Encrypter/Tagger when start to encrypt content +cpp_quote ("// {C4C4C4E6-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETFilterEncryptionOn,") +cpp_quote ("0xC4C4C4E6, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Encrypter/Tagger when stop encrypting content content +cpp_quote ("// {C4C4C4E7-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETFilterEncryptionOff,") +cpp_quote ("0xC4C4C4E7, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decryptor/Tagger when unblocking COPP block +cpp_quote ("// {C4C4C4E8-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterCOPPUnblock,") +cpp_quote ("0xC4C4C4E8, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter when bad COPP driver is encountered)... +cpp_quote ("// {C4C4C4E9-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_EncDecFilterError,") +cpp_quote ("0xC4C4C4E9, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter when data block due to COPP status... +cpp_quote ("// {C4C4C4EA-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterCOPPBlock ,") +cpp_quote ("0xC4C4C4EA, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Encrypter/Tagger when receiving copy once content +cpp_quote ("// {C4C4C4EB-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETFilterCopyOnce,") +cpp_quote ("0xC4C4C4EB, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + + // sent by Encrypter/Tagger when receiving copy never really for macrovision content +cpp_quote ("// {C4C4C4F0-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETFilterCopyNever,") +cpp_quote ("0xC4C4C4F0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + // for now, Format errors are exactly the same as License errors... + + // sent by Decrypter when data format is OK again (only after a failure)... +cpp_quote ("// {C4C4C4EC-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterDataFormatOK,") +cpp_quote ("0xC4C4C4EC, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter when data format is corrupt (old file?) +cpp_quote ("// {C4C4C4ED-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterDataFormatFailure,") +cpp_quote ("0xC4C4C4ED, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Encrypter or Decrypter when DRM license is OK again (only after a failure)... +cpp_quote ("// {C4C4C4EE-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETDTFilterLicenseOK,") +cpp_quote ("0xC4C4C4EE, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Encrypter or Decrypter when fail to get DRM license +cpp_quote ("// {C4C4C4EF-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETDTFilterLicenseFailure,") +cpp_quote ("0xC4C4C4EF, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // Other Guids + // media subtype sent out of encrypter filter +cpp_quote ("// {C4C4C4D0-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(MEDIASUBTYPE_ETDTFilter_Tagged,") +cpp_quote ("0xC4C4C4D0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // format block type sent out of encrypter filter + // only used if no format block currently avaiable +cpp_quote ("// {C4C4C4D1-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(FORMATTYPE_ETDTFilter_Tagged,") +cpp_quote ("0xC4C4C4D1, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + +cpp_quote ("// {46adbd28-6fd0-4796-93b2-155c51dc048d}") +cpp_quote ("DEFINE_GUID( MEDIASUBTYPE_CPFilters_Processed, 0x46adbd28, 0x6fd0, 0x4796, 0x93, 0xb2, 0x15, 0x5c, 0x51, 0xdc, 0x4, 0x8d );") + +cpp_quote ("// {6739b36f-1d5f-4ac2-8192-28bb0e73d16a}") +cpp_quote ("DEFINE_GUID( FORMATTYPE_CPFilters_Processed, 0x6739b36f, 0x1d5f, 0x4ac2, 0x81, 0x92, 0x28, 0xbb, 0xe, 0x73, 0xd1, 0x6a );") + + // Generic event from EncDec fileter. See FireEx +cpp_quote ("// {4A1B465B-0FB9-4159-AFBD-E33006A0F9F4}") +cpp_quote ("DEFINE_GUID(EVENTID_EncDecFilterEvent, ") +cpp_quote ("0x4a1b465b, 0xfb9, 0x4159, 0xaf, 0xbd, 0xe3, 0x30, 0x6, 0xa0, 0xf9, 0xf4);") + +// Dynamic format not supported events... +enum FormatNotSupportedEvents +{ + FORMATNOTSUPPORTED_CLEAR = 0, + FORMATNOTSUPPORTED_NOTSUPPORTED = 1 +}; + +// Generic event for tv format not supported, fired when +// an unsupported video or audio format is attempted to be played +cpp_quote ("// {24B2280A-B2AA-4777-BF65-63F35E7B024A}") +cpp_quote ("DEFINE_GUID(EVENTID_FormatNotSupportedEvent, ") +cpp_quote ("0x24b2280a, 0xb2aa, 0x4777, 0xbf, 0x65, 0x63, 0xf3, 0x5e, 0x7b, 0x2, 0x4a);") + +// broadcast event from the demultiplexer on a discontinuity; fired on input +// discontinuities and in-band discontinuities e.g. continuity_counter skips +// and timestamp discontinuities +cpp_quote ("// {16155770-AED5-475c-BB98-95A33070DF0C}") +cpp_quote ("DEFINE_GUID(EVENTID_DemultiplexerFilterDiscontinuity, ") +cpp_quote ("0x16155770, 0xaed5, 0x475c, 0xbb, 0x98, 0x95, 0xa3, 0x30, 0x70, 0xdf, 0xc);") + +// attributes that are carried as media sample attributes + +cpp_quote ("// {40749583-6b9d-4eec-b43c-67a1801e1a9b}") +cpp_quote ("DEFINE_GUID( DSATTRIB_WMDRMProtectionInfo, 0x40749583, 0x6b9d, 0x4eec, 0xb4, 0x3c, 0x67, 0xa1, 0x80, 0x1e, 0x1a, 0x9b );") + +cpp_quote ("// {e4846dda-5838-42b4-b897-6f7e5faa2f2f}") +cpp_quote ("DEFINE_GUID( DSATTRIB_BadSampleInfo, 0xe4846dda, 0x5838, 0x42b4, 0xb8, 0x97, 0x6f, 0x7e, 0x5f, 0xaa, 0x2f, 0x2f );") + +#pragma pack(push,1) +typedef struct +{ + unsigned short wszKID [25]; + unsigned __int64 qwCounter; + unsigned __int64 qwIndex; + unsigned char bOffset; +} +WMDRMProtectionInfo; + +typedef struct +{ + HRESULT hrReason; +} +BadSampleInfo; + +#pragma pack(pop) + +//------------------------------------------------------ + +#ifndef REFERENCE_TIME +typedef LONGLONG REFERENCE_TIME; +#endif + +typedef LONG PackedTvRating; + +//------------------------------------------------------ + +#include + +[ + restricted, + object, + uuid (C4C4C4D1-0049-4E2B-98FB-9537F6CE516D), +// dual + helpstring("IETFilterConfig Interface"), + pointer_default(unique) +] +interface IETFilterConfig : IUnknown +{ + [ id(10), helpstring("method InitLicense")] + HRESULT InitLicense( + [in] int LicenseId // which license (0-N to use) + ); + [ id(11), helpstring("method GetSecureChannelObject")] + HRESULT GetSecureChannelObject( + [out] IUnknown **ppUnkDRMSecureChannel // an IDRMSecureChannel + ); +}; + +[ + restricted, + object, + uuid (C4C4C4D2-0049-4E2B-98FB-9537F6CE516D), +// dual + helpstring("IDTFilterConfig Interface"), + pointer_default(unique) +] +interface IDTFilterConfig : IUnknown +{ + [ id(11), helpstring("method GetSecureChannelObject")] + HRESULT GetSecureChannelObject( + [out] IUnknown **ppUnkDRMSecureChannel // an IDRMSecureChannel + ); +}; + +[ + object, + uuid (C4C4C4D3-0049-4E2B-98FB-9537F6CE516D), +// dual + helpstring("IXDSCodecConfig Interface"), + pointer_default(unique) +] +interface IXDSCodecConfig : IUnknown +{ + // [propget, id(1), helpstring("property CCMode")] HRESULT CCMode([out, retval] int *pCCMode); + [ id(11), helpstring("method GetSecureChannelObject")] + HRESULT GetSecureChannelObject( + [out] IUnknown **ppUnkDRMSecureChannel // an IDRMSecureChannel + ); + + [ id(12), helpstring("method SetPauseBufferTime")] + HRESULT SetPauseBufferTime([in] DWORD dwPauseBufferTime); +}; + +// Interface: IDTFilterLicenseRenewal +// ------------------------------------ +// This interface is implemented by DTFilter to expose the necessry information for renewing a license. +// This interface will be registed with the vidctrl so that the player can call it. +// The player is indicated thru an event (FireEx) about an expired license. +// The player turns around and calls this interface to get more information about the expired license so that +// it can be renewed. +// +[ + object, + uuid(8A78B317-E405-4a43-994A-620D8F5CE25E), + helpstring("IDTFilterLicenseRenewal Interface"), + pointer_default(unique) +] +interface IDTFilterLicenseRenewal: IUnknown +{ + HRESULT GetLicenseRenewalData ( [out] LPWSTR *ppwszFileName, [out] LPWSTR *ppwszExpiredKid, [out] LPWSTR *ppwszTunerId); +}; + + + +// Interface: IPTFilterLicenseRenewal +// ------------------------------------ +// This interface is implemented by PTFilter to enable renewing of licenses. This interface will be registed with vidctl. +// Player will call this interface to start license renewal. +// +[ + object, + uuid(26D836A5-0C15-44c7-AC59-B0DA8728F240), + helpstring("IPTFilterLicenseRenewal Interface"), + pointer_default(unique) +] +interface IPTFilterLicenseRenewal: IUnknown +{ + HRESULT RenewLicenses ([in] WCHAR* wszFileName, [in] WCHAR* wszExpiredKid, [in] DWORD dwCallersId, [in] BOOL bHighPriority); + HRESULT CancelLicenseRenewal (); +}; + + +// Interface: IID_IMceBurnerControl +// ------------------------------------ +// This interface is implemented by third party MCE DVD burner software to turn on or off DTFilter decryption. +// If it is detected in the filter graph during OnConnectComplete data will pass thru DTFilter. +// +[ + object, + uuid(5A86B91A-E71E-46c1-88A9-9BB338710552), + helpstring("IID_IMceBurnerControl Interface"), + pointer_default(unique) +] +interface IMceBurnerControl: IUnknown +{ + HRESULT GetBurnerNoDecryption(); +}; + + + // -------------------------------- + +[ + uuid(C4C4C400-0049-4E2B-98FB-9537F6CE516D), + version(1.0), + helpstring("Microsoft Encypter-Tagger/Decrypter-Detagger Filters") +] +library EncDec +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + object, + uuid (C4C4C4B1-0049-4E2B-98FB-9537F6CE516D), + // dual + helpstring("IETFilter Interface"), + pointer_default(unique) + ] + interface IETFilter : IUnknown + { + [propget, id(1), helpstring("property EvalRatObjOK")] + HRESULT EvalRatObjOK([out, retval] HRESULT *pHrCoCreateRetVal); + + [ id(2), helpstring("method GetCurrRating")] + HRESULT GetCurrRating( + [out] EnTvRat_System *pEnSystem, + [out] EnTvRat_GenericLevel *pEnRating, + [out] LONG *plbfEnAttr // bitfield of BfEnTvRat_GenericAttributes + ); + [ id(3), helpstring("method GetCurrLicenseExpDate")] + HRESULT GetCurrLicenseExpDate( + [in] ProtType *protType, + [out] long *lpDateTime + ); + [ id(4), helpstring("method GetLastErrorCode")] + HRESULT GetLastErrorCode(); + + [ id(5), helpstring("method SetRecordingOn")] + HRESULT SetRecordingOn(BOOL fRecState); + + + }; + + [ + uuid(C4C4C4C1-0049-4E2B-98FB-9537F6CE516D), + helpstring("IETFilterEvents") + ] + dispinterface IETFilterEvents + { + properties: + methods: + }; + + [ + uuid(C4C4C4F1-0049-4E2B-98FB-9537F6CE516D), + helpstring("ETFilter Class") + ] + coclass ETFilter + { + [default] interface IETFilter; + interface IETFilterConfig; + + [default, source] dispinterface IETFilterEvents; + }; + + // --------------------------------------------------- + + + [ + object, + uuid (C4C4C4B2-0049-4E2B-98FB-9537F6CE516D), + // dual + helpstring("IDTFilter Interface"), + pointer_default(unique) + ] + interface IDTFilter : IUnknown + { + [propget, id(1), helpstring("property EvalRatObjOK")] + HRESULT EvalRatObjOK([out, retval] HRESULT *pHrCoCreateRetVal); + + [ id(2), helpstring("method GetCurrRating")] + HRESULT GetCurrRating( + [out] EnTvRat_System *pEnSystem, + [out] EnTvRat_GenericLevel *pEnRating, + [out] LONG *plbfEnAttr // bitfield of BfEnTvRat_GenericAttributes + ); + + [propget, id(3), helpstring("property BlockedRatingAttributes")] + HRESULT BlockedRatingAttributes( + [in] EnTvRat_System enSystem, + [in] EnTvRat_GenericLevel enLevel, + [out, retval] LONG *plbfEnAttr + ); + + [propput, id(3), helpstring("property BlockedRatingAttributes")] + HRESULT BlockedRatingAttributes( + [in] EnTvRat_System enSystem, + [in] EnTvRat_GenericLevel enLevel, + [in] LONG lbfAttrs // bitfield of BfEnTvRat_GenericAttributes + ); + + [propget, id(4), helpstring("property BlockUnRated")] + HRESULT BlockUnRated( + [out, retval] BOOL *pfBlockUnRatedShows + ); + + [propput, id(4), helpstring("property BlockUnRated")] + HRESULT BlockUnRated( + [in] BOOL fBlockUnRatedShows + ); + + [propget, id(5), helpstring("property BlockUnRatedDelay")] + HRESULT BlockUnRatedDelay( + [out, retval] LONG *pmsecsDelayBeforeBlock + ); + + [propput, id(5), helpstring("property BlockUnRatedDelay")] + HRESULT BlockUnRatedDelay( + [in] LONG msecsDelayBeforeBlock + ); + + }; + + [ + object, + uuid (C4C4C4B4-0049-4E2B-98FB-9537F6CE516D), + helpstring("IDTFilter2 Interface"), + pointer_default(unique) + ] + interface IDTFilter2 : IDTFilter + { + [propget, id(6), helpstring("property ChallengeUrl")] + HRESULT ChallengeUrl([out] BSTR *pbstrChallengeUrl); + + [ id(7), helpstring("method GetCurrLicenseExpDate")] + HRESULT GetCurrLicenseExpDate( + [in] ProtType *protType, + [out] long *lpDateTime + ); + [ id(8), helpstring("method GetLastErrorCode")] + HRESULT GetLastErrorCode(); + }; + + [ + object, + uuid (513998cc-e929-4cdf-9fbd-bad1e0314866), + helpstring("IDTFilter3 Interface"), + pointer_default(unique) + ] + interface IDTFilter3 : IDTFilter2 + { + [ id(9), helpstring("method GetProtectionType")] + HRESULT GetProtectionType( + [out] ProtType *pProtectionType + ); + + [ id(10), helpstring("method LicenseHasExpirationDate")] + HRESULT LicenseHasExpirationDate( + [out] BOOL *pfLicenseHasExpirationDate + ); + + [ id(11), helpstring("method SetRights")] + HRESULT SetRights( + [in] BSTR bstrRights + ); + }; + + [ + uuid(C4C4C4C2-0049-4E2B-98FB-9537F6CE516D), + helpstring("IDTFilterEvents") + ] + dispinterface IDTFilterEvents + { + properties: + methods: + }; + + [ + uuid(C4C4C4F2-0049-4E2B-98FB-9537F6CE516D), + helpstring("CDTFilter Class") + ] + coclass DTFilter + { + [default] interface IDTFilter; + interface IDTFilterConfig; + + [default, source] dispinterface IDTFilterEvents; + }; + + // --------------------------------------------------- + [ + object, + uuid (C4C4C4B3-0049-4E2B-98FB-9537F6CE516D), + // dual + helpstring("IXDSCodec Interface"), + pointer_default(unique) + ] + interface IXDSCodec : IUnknown + { + [propget, id(1), helpstring("property XDSToRatObjOK")] + HRESULT XDSToRatObjOK([out, retval] HRESULT *pHrCoCreateRetVal); + + [propput, id(2), helpstring("property CCSubstreamService")] + HRESULT CCSubstreamService([in] long SubstreamMask); + + [propget, id(2), helpstring("property CCSubstreamService")] + HRESULT CCSubstreamService([out, retval] long *pSubstreamMask); + + [ id(3), helpstring("method GetContentAdvisoryRating") ] + HRESULT GetContentAdvisoryRating( + [out] PackedTvRating *pRat, // TvRating + [out] long *pPktSeqID, + [out] long *pCallSeqID, + [out] REFERENCE_TIME *pTimeStart, // time this sample started + [out] REFERENCE_TIME *pTimeEnd + ); + + [ id(4), helpstring("method GetXDSPacket") ] + HRESULT GetXDSPacket( + [out] long *pXDSClassPkt, // ENUM EnXDSClass + [out] long *pXDSTypePkt, + [out] BSTR *pBstrXDSPkt, + [out] long *pPktSeqID, + [out] long *pCallSeqID, + [out] REFERENCE_TIME *pTimeStart, // time this sample started + [out] REFERENCE_TIME *pTimeEnd + ); + + [ id(5), helpstring("method GetCurrLicenseExpDate")] + HRESULT GetCurrLicenseExpDate( + [in] ProtType *protType, + [out] long *lpDateTime + ); + [ id(6), helpstring("method GetLastErrorCode")] + HRESULT GetLastErrorCode(); + + }; + + [ + uuid(C4C4C4C3-0049-4E2B-98FB-9537F6CE516D), + helpstring("IXDSCodecEvents") + ] + dispinterface IXDSCodecEvents + { + properties: + methods: + }; + + [ + uuid(C4C4C4F3-0049-4E2B-98FB-9537F6CE516D), + helpstring("CXDSCodec Class") + ] + coclass XDSCodec + { + [default] interface IXDSCodec; + interface IXDSCodecConfig; + + [default, source] dispinterface IXDSCodecEvents; + }; + + [ + uuid(C4C4C4F4-0049-4E2B-98FB-9537F6CE516D), + helpstring("CXDSCodec Class") + ] + coclass CXDSData + { + [default] interface IXDSCodec; + interface IXDSCodecConfig; + + [default, source] dispinterface IXDSCodecEvents; + }; + +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/encdec_enums.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/encdec_enums.h new file mode 100644 index 0000000000000000000000000000000000000000..3aec6347e2d5d9186e737bca0c865733c52e43bb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/encdec_enums.h @@ -0,0 +1,128 @@ +// +// copyright (c) Microsoft Corp. +// + +#ifndef ENCDEC_ENUMS_H +#define ENCDEC_ENUMS_H + +// !!!! do not #pragma once, we use this file twice(once for native and once for mgd) in managed interop +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include "exposeenums2managed.h" + +ENUMG(25AEE876-3D61-4486-917E-7C0CB3D9983C) ProtType +{ + PROT_COPY_FREE = 1, + PROT_COPY_ONCE = 2, + PROT_COPY_NEVER = 3, + PROT_COPY_NEVER_REALLY = 4, + PROT_COPY_NO_MORE = 5, + PROT_COPY_FREE_CIT = 6, + PROT_COPY_BF = 7, + PROT_COPY_CN_RECORDING_STOP = 8, + PROT_COPY_FREE_SECURE = 9, + PROT_COPY_INVALID = 50 +} ProtType; + +// Types of EncDec Events +ENUM EncDecEvents +{ + ENCDEC_CPEVENT = 0, + ENCDEC_RECORDING_STATUS +} EncDecEvents; + +ENUM CPRecordingStatus +{ + RECORDING_STOPPED = 0, + RECORDING_STARTED = 1 +} CPRecordingStatus; + +ENUM CPEventBitShift +{ + CPEVENT_BITSHIFT_RATINGS = 0, + CPEVENT_BITSHIFT_COPP, + CPEVENT_BITSHIFT_LICENSE, + CPEVENT_BITSHIFT_ROLLBACK, + CPEVENT_BITSHIFT_SAC, + CPEVENT_BITSHIFT_DOWNRES, + CPEVENT_BITSHIFT_STUBLIB, + CPEVENT_BITSHIFT_UNTRUSTEDGRAPH, + CPEVENT_BITSHIFT_PENDING_CERTIFICATE, + CPEVENT_BITSHIFT_NO_PLAYREADY +} CPEventBitShift; + +ENUM CPEvents +{ + CPEVENT_NONE = 0, + CPEVENT_RATINGS, + CPEVENT_COPP, + CPEVENT_LICENSE, + CPEVENT_ROLLBACK, + CPEVENT_SAC, + CPEVENT_DOWNRES, + CPEVENT_STUBLIB, + CPEVENT_UNTRUSTEDGRAPH, + CPEVENT_PROTECTWINDOWED, +} CPEvents; + +ENUM RevokedComponent +{ + REVOKED_COPP = 0, + REVOKED_SAC, + REVOKED_APP_STUB, + REVOKED_SECURE_PIPELINE, + REVOKED_MAX_TYPES +} RevokedComponent; + +ENUM EnTag_Mode +{ + EnTag_Remove = 0x0, + EnTag_Once = 0x1, + EnTag_Repeat = 0x2, +} EnTag_Mode; + +ENUMG(6F8C2442-2BFB-4180-9EE5-EA1FB47AE35C) COPPEventBlockReason +{ + COPP_Unknown = -1, + COPP_BadDriver = 0, + COPP_NoCardHDCPSupport = 1, + COPP_NoMonitorHDCPSupport = 2, + COPP_BadCertificate = 3, + COPP_InvalidBusProtection = 4, + COPP_AeroGlassOff = 5, + COPP_RogueApp = 6, + COPP_ForbiddenVideo = 7, + COPP_Activate = 8, + COPP_DigitalAudioUnprotected= 9 +} COPPEventBlockReason; + +ENUMG(57BCA1BE-DF7A-434e-8B89-26D6A0541FDA) LicenseEventBlockReason +{ + LIC_BadLicense = 0, + LIC_NeedIndiv = 1, + LIC_Expired = 2, + LIC_NeedActivation = 3, + LIC_ExtenderBlocked = 4 +} LicenseEventBlockReason; + +ENUMG(D5CC1CDC-EF31-48dc-95B8-AFD34C08036B) DownResEventParam +{ + DOWNRES_Always = 0, + DOWNRES_InWindowOnly = 1, + DOWNRES_Undefined = 2 +} DownResEventParam; + +#include "unexposeenums2managed.h" + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // ENCDEC_ENUMS_H + +// end of file + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/enclaveapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/enclaveapi.h new file mode 100644 index 0000000000000000000000000000000000000000..fa89c10069aadac1ac217e5faa2028d0d7bc6642 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/enclaveapi.h @@ -0,0 +1,145 @@ +/******************************************************************************** +* * +* enclaveapi.h -- ApiSet Contract for api-ms-win-core-enclave-l1-1-0 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _ENCLAVEAPI_H_ +#define _ENCLAVEAPI_H_ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or OneCore Or App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +IsEnclaveTypeSupported( + _In_ DWORD flEnclaveType + ); + +WINBASEAPI +_Ret_maybenull_ +_Post_writable_byte_size_(dwSize) +LPVOID +WINAPI +CreateEnclave( + _In_ HANDLE hProcess, + _In_opt_ LPVOID lpAddress, + _In_ SIZE_T dwSize, + _In_ SIZE_T dwInitialCommitment, + _In_ DWORD flEnclaveType, + _In_reads_bytes_(dwInfoLength) LPCVOID lpEnclaveInformation, + _In_ DWORD dwInfoLength, + _Out_opt_ LPDWORD lpEnclaveError + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +LoadEnclaveData( + _In_ HANDLE hProcess, + _In_ LPVOID lpAddress, + _In_reads_bytes_(nSize) LPCVOID lpBuffer, + _In_ SIZE_T nSize, + _In_ DWORD flProtect, + _In_reads_bytes_(dwInfoLength) LPCVOID lpPageInformation, + _In_ DWORD dwInfoLength, + _Out_ PSIZE_T lpNumberOfBytesWritten, + _Out_opt_ LPDWORD lpEnclaveError + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +InitializeEnclave( + _In_ HANDLE hProcess, + _In_ LPVOID lpAddress, + _In_reads_bytes_(dwInfoLength) LPCVOID lpEnclaveInformation, + _In_ DWORD dwInfoLength, + _Out_opt_ LPDWORD lpEnclaveError + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +LoadEnclaveImageA( + _In_ LPVOID lpEnclaveAddress, + _In_ LPCSTR lpImageName + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +LoadEnclaveImageW( + _In_ LPVOID lpEnclaveAddress, + _In_ LPCWSTR lpImageName + ); + +#ifdef UNICODE +#define LoadEnclaveImage LoadEnclaveImageW +#else +#define LoadEnclaveImage LoadEnclaveImageA +#endif // !UNICODE + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +CallEnclave( + _In_ LPENCLAVE_ROUTINE lpRoutine, + _In_ LPVOID lpParameter, + _In_ BOOL fWaitForThread, + _Out_ LPVOID* lpReturnValue + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +TerminateEnclave( + _In_ LPVOID lpAddress, + _In_ BOOL fWait + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +DeleteEnclave( + _In_ LPVOID lpAddress + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _ENCLAVEAPI_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/enclaveium.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/enclaveium.h new file mode 100644 index 0000000000000000000000000000000000000000..c6dcf0cbe3918786c45e8e040f8e8433bff745da --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/enclaveium.h @@ -0,0 +1,61 @@ +/*++ BUILD Version: 0001 Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + enclaveium.h + +Abstract: + + Contains type definitions used by VBS enclaves during communication with trustlets. + +Revision History: + +--*/ + +#ifndef _ENCLAVEIUM_ +#define _ENCLAVEIUM_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef _IUMTYPES_ + +typedef ULONGLONG TRUSTLET_IDENTITY, *PTRUSTLET_IDENTITY; + + +typedef struct _PS_TRUSTLET_TKSESSION_ID { + ULONGLONG SessionId[256 / 64]; +} PS_TRUSTLET_TKSESSION_ID, *PPS_TRUSTLET_TKSESSION_ID; + +#endif /* _IUMTYPES_ */ + +#ifndef _IUMCRYPTO_ + +#pragma pack(push) +#pragma pack(1) + + +typedef struct _TRUSTLET_BINDING_DATA +{ + TRUSTLET_IDENTITY TrustletIdentity; + PS_TRUSTLET_TKSESSION_ID TrustletSessionId; + ULONG TrustletSvn; + UINT32 Reserved1; + UINT64 Reserved2; + +} TRUSTLET_BINDING_DATA, *PTRUSTLET_BINDING_DATA; + + +#pragma pack(pop) + +#endif /* _IUMCRYPTO_ */ + +#ifdef __cplusplus +} +#endif + +#endif /* _ENCLAVEIUM_ */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.h new file mode 100644 index 0000000000000000000000000000000000000000..4169d85c2dd2998fa8fef887d7444e980a147de9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.h @@ -0,0 +1,974 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __endpointvolume_h__ +#define __endpointvolume_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAudioEndpointVolumeCallback_FWD_DEFINED__ +#define __IAudioEndpointVolumeCallback_FWD_DEFINED__ +typedef interface IAudioEndpointVolumeCallback IAudioEndpointVolumeCallback; + +#endif /* __IAudioEndpointVolumeCallback_FWD_DEFINED__ */ + + +#ifndef __IAudioEndpointVolume_FWD_DEFINED__ +#define __IAudioEndpointVolume_FWD_DEFINED__ +typedef interface IAudioEndpointVolume IAudioEndpointVolume; + +#endif /* __IAudioEndpointVolume_FWD_DEFINED__ */ + + +#ifndef __IAudioEndpointVolumeEx_FWD_DEFINED__ +#define __IAudioEndpointVolumeEx_FWD_DEFINED__ +typedef interface IAudioEndpointVolumeEx IAudioEndpointVolumeEx; + +#endif /* __IAudioEndpointVolumeEx_FWD_DEFINED__ */ + + +#ifndef __IAudioMeterInformation_FWD_DEFINED__ +#define __IAudioMeterInformation_FWD_DEFINED__ +typedef interface IAudioMeterInformation IAudioMeterInformation; + +#endif /* __IAudioMeterInformation_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "devicetopology.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_endpointvolume_0000_0000 */ +/* [local] */ + +#include +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +typedef struct AUDIO_VOLUME_NOTIFICATION_DATA + { + GUID guidEventContext; + BOOL bMuted; + float fMasterVolume; + UINT nChannels; + float afChannelVolumes[ 1 ]; + } AUDIO_VOLUME_NOTIFICATION_DATA; + +typedef struct AUDIO_VOLUME_NOTIFICATION_DATA *PAUDIO_VOLUME_NOTIFICATION_DATA; + +#define ENDPOINT_HARDWARE_SUPPORT_VOLUME 0x00000001 +#define ENDPOINT_HARDWARE_SUPPORT_MUTE 0x00000002 +#define ENDPOINT_HARDWARE_SUPPORT_METER 0x00000004 + + +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0000_v0_0_s_ifspec; + +#ifndef __IAudioEndpointVolumeCallback_INTERFACE_DEFINED__ +#define __IAudioEndpointVolumeCallback_INTERFACE_DEFINED__ + +/* interface IAudioEndpointVolumeCallback */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioEndpointVolumeCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("657804FA-D6AD-4496-8A60-352752AF4F89") + IAudioEndpointVolumeCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnNotify( + PAUDIO_VOLUME_NOTIFICATION_DATA pNotify) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointVolumeCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointVolumeCallback * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointVolumeCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointVolumeCallback * This); + + DECLSPEC_XFGVIRT(IAudioEndpointVolumeCallback, OnNotify) + HRESULT ( STDMETHODCALLTYPE *OnNotify )( + IAudioEndpointVolumeCallback * This, + PAUDIO_VOLUME_NOTIFICATION_DATA pNotify); + + END_INTERFACE + } IAudioEndpointVolumeCallbackVtbl; + + interface IAudioEndpointVolumeCallback + { + CONST_VTBL struct IAudioEndpointVolumeCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointVolumeCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointVolumeCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointVolumeCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointVolumeCallback_OnNotify(This,pNotify) \ + ( (This)->lpVtbl -> OnNotify(This,pNotify) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointVolumeCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioEndpointVolume_INTERFACE_DEFINED__ +#define __IAudioEndpointVolume_INTERFACE_DEFINED__ + +/* interface IAudioEndpointVolume */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioEndpointVolume; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5CDF2C82-841E-4546-9722-0CF74078229A") + IAudioEndpointVolume : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterControlChangeNotify( + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterControlChangeNotify( + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetChannelCount( + /* [annotation][out] */ + _Out_ UINT *pnChannelCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMasterVolumeLevel( + /* [annotation][in] */ + _In_ float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMasterVolumeLevelScalar( + /* [annotation][in] */ + _In_ float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMasterVolumeLevel( + /* [annotation][out] */ + _Out_ float *pfLevelDB) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMasterVolumeLevelScalar( + /* [annotation][out] */ + _Out_ float *pfLevel) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetChannelVolumeLevel( + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetChannelVolumeLevelScalar( + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetChannelVolumeLevel( + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetChannelVolumeLevelScalar( + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevel) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMute( + /* [annotation][in] */ + _In_ BOOL bMute, + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMute( + /* [annotation][out] */ + _Out_ BOOL *pbMute) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetVolumeStepInfo( + /* [annotation][out] */ + _Out_ UINT *pnStep, + /* [annotation][out] */ + _Out_ UINT *pnStepCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE VolumeStepUp( + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE VolumeStepDown( + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryHardwareSupport( + /* [annotation][out] */ + _Out_ DWORD *pdwHardwareSupportMask) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetVolumeRange( + /* [annotation][out] */ + _Out_ float *pflVolumeMindB, + /* [annotation][out] */ + _Out_ float *pflVolumeMaxdB, + /* [annotation][out] */ + _Out_ float *pflVolumeIncrementdB) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointVolumeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointVolume * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointVolume * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointVolume * This); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, RegisterControlChangeNotify) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterControlChangeNotify )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, UnregisterControlChangeNotify) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterControlChangeNotify )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ UINT *pnChannelCount); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMasterVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMasterVolumeLevel )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMasterVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMasterVolumeLevelScalar )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMasterVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMasterVolumeLevel )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMasterVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMasterVolumeLevelScalar )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetChannelVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetChannelVolumeLevel )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetChannelVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetChannelVolumeLevelScalar )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelVolumeLevel )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelVolumeLevelScalar )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMute) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMute )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ BOOL bMute, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMute) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMute )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ BOOL *pbMute); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetVolumeStepInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVolumeStepInfo )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ UINT *pnStep, + /* [annotation][out] */ + _Out_ UINT *pnStepCount); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, VolumeStepUp) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VolumeStepUp )( + IAudioEndpointVolume * This, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, VolumeStepDown) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VolumeStepDown )( + IAudioEndpointVolume * This, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, QueryHardwareSupport) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryHardwareSupport )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ DWORD *pdwHardwareSupportMask); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetVolumeRange) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVolumeRange )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ float *pflVolumeMindB, + /* [annotation][out] */ + _Out_ float *pflVolumeMaxdB, + /* [annotation][out] */ + _Out_ float *pflVolumeIncrementdB); + + END_INTERFACE + } IAudioEndpointVolumeVtbl; + + interface IAudioEndpointVolume + { + CONST_VTBL struct IAudioEndpointVolumeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointVolume_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointVolume_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointVolume_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointVolume_RegisterControlChangeNotify(This,pNotify) \ + ( (This)->lpVtbl -> RegisterControlChangeNotify(This,pNotify) ) + +#define IAudioEndpointVolume_UnregisterControlChangeNotify(This,pNotify) \ + ( (This)->lpVtbl -> UnregisterControlChangeNotify(This,pNotify) ) + +#define IAudioEndpointVolume_GetChannelCount(This,pnChannelCount) \ + ( (This)->lpVtbl -> GetChannelCount(This,pnChannelCount) ) + +#define IAudioEndpointVolume_SetMasterVolumeLevel(This,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetMasterVolumeLevel(This,fLevelDB,pguidEventContext) ) + +#define IAudioEndpointVolume_SetMasterVolumeLevelScalar(This,fLevel,pguidEventContext) \ + ( (This)->lpVtbl -> SetMasterVolumeLevelScalar(This,fLevel,pguidEventContext) ) + +#define IAudioEndpointVolume_GetMasterVolumeLevel(This,pfLevelDB) \ + ( (This)->lpVtbl -> GetMasterVolumeLevel(This,pfLevelDB) ) + +#define IAudioEndpointVolume_GetMasterVolumeLevelScalar(This,pfLevel) \ + ( (This)->lpVtbl -> GetMasterVolumeLevelScalar(This,pfLevel) ) + +#define IAudioEndpointVolume_SetChannelVolumeLevel(This,nChannel,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetChannelVolumeLevel(This,nChannel,fLevelDB,pguidEventContext) ) + +#define IAudioEndpointVolume_SetChannelVolumeLevelScalar(This,nChannel,fLevel,pguidEventContext) \ + ( (This)->lpVtbl -> SetChannelVolumeLevelScalar(This,nChannel,fLevel,pguidEventContext) ) + +#define IAudioEndpointVolume_GetChannelVolumeLevel(This,nChannel,pfLevelDB) \ + ( (This)->lpVtbl -> GetChannelVolumeLevel(This,nChannel,pfLevelDB) ) + +#define IAudioEndpointVolume_GetChannelVolumeLevelScalar(This,nChannel,pfLevel) \ + ( (This)->lpVtbl -> GetChannelVolumeLevelScalar(This,nChannel,pfLevel) ) + +#define IAudioEndpointVolume_SetMute(This,bMute,pguidEventContext) \ + ( (This)->lpVtbl -> SetMute(This,bMute,pguidEventContext) ) + +#define IAudioEndpointVolume_GetMute(This,pbMute) \ + ( (This)->lpVtbl -> GetMute(This,pbMute) ) + +#define IAudioEndpointVolume_GetVolumeStepInfo(This,pnStep,pnStepCount) \ + ( (This)->lpVtbl -> GetVolumeStepInfo(This,pnStep,pnStepCount) ) + +#define IAudioEndpointVolume_VolumeStepUp(This,pguidEventContext) \ + ( (This)->lpVtbl -> VolumeStepUp(This,pguidEventContext) ) + +#define IAudioEndpointVolume_VolumeStepDown(This,pguidEventContext) \ + ( (This)->lpVtbl -> VolumeStepDown(This,pguidEventContext) ) + +#define IAudioEndpointVolume_QueryHardwareSupport(This,pdwHardwareSupportMask) \ + ( (This)->lpVtbl -> QueryHardwareSupport(This,pdwHardwareSupportMask) ) + +#define IAudioEndpointVolume_GetVolumeRange(This,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) \ + ( (This)->lpVtbl -> GetVolumeRange(This,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointVolume_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_endpointvolume_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0002_v0_0_s_ifspec; + +#ifndef __IAudioEndpointVolumeEx_INTERFACE_DEFINED__ +#define __IAudioEndpointVolumeEx_INTERFACE_DEFINED__ + +/* interface IAudioEndpointVolumeEx */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioEndpointVolumeEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("66E11784-F695-4F28-A505-A7080081A78F") + IAudioEndpointVolumeEx : public IAudioEndpointVolume + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetVolumeRangeChannel( + /* [in] */ UINT iChannel, + /* [annotation][out] */ + _Out_ float *pflVolumeMindB, + /* [annotation][out] */ + _Out_ float *pflVolumeMaxdB, + /* [annotation][out] */ + _Out_ float *pflVolumeIncrementdB) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointVolumeExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointVolumeEx * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointVolumeEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointVolumeEx * This); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, RegisterControlChangeNotify) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterControlChangeNotify )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, UnregisterControlChangeNotify) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterControlChangeNotify )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ UINT *pnChannelCount); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMasterVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMasterVolumeLevel )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMasterVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMasterVolumeLevelScalar )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMasterVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMasterVolumeLevel )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMasterVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMasterVolumeLevelScalar )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetChannelVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetChannelVolumeLevel )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetChannelVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetChannelVolumeLevelScalar )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelVolumeLevel )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelVolumeLevelScalar )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMute) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMute )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ BOOL bMute, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMute) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMute )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ BOOL *pbMute); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetVolumeStepInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVolumeStepInfo )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ UINT *pnStep, + /* [annotation][out] */ + _Out_ UINT *pnStepCount); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, VolumeStepUp) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VolumeStepUp )( + IAudioEndpointVolumeEx * This, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, VolumeStepDown) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VolumeStepDown )( + IAudioEndpointVolumeEx * This, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, QueryHardwareSupport) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryHardwareSupport )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ DWORD *pdwHardwareSupportMask); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetVolumeRange) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVolumeRange )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ float *pflVolumeMindB, + /* [annotation][out] */ + _Out_ float *pflVolumeMaxdB, + /* [annotation][out] */ + _Out_ float *pflVolumeIncrementdB); + + DECLSPEC_XFGVIRT(IAudioEndpointVolumeEx, GetVolumeRangeChannel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVolumeRangeChannel )( + IAudioEndpointVolumeEx * This, + /* [in] */ UINT iChannel, + /* [annotation][out] */ + _Out_ float *pflVolumeMindB, + /* [annotation][out] */ + _Out_ float *pflVolumeMaxdB, + /* [annotation][out] */ + _Out_ float *pflVolumeIncrementdB); + + END_INTERFACE + } IAudioEndpointVolumeExVtbl; + + interface IAudioEndpointVolumeEx + { + CONST_VTBL struct IAudioEndpointVolumeExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointVolumeEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointVolumeEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointVolumeEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointVolumeEx_RegisterControlChangeNotify(This,pNotify) \ + ( (This)->lpVtbl -> RegisterControlChangeNotify(This,pNotify) ) + +#define IAudioEndpointVolumeEx_UnregisterControlChangeNotify(This,pNotify) \ + ( (This)->lpVtbl -> UnregisterControlChangeNotify(This,pNotify) ) + +#define IAudioEndpointVolumeEx_GetChannelCount(This,pnChannelCount) \ + ( (This)->lpVtbl -> GetChannelCount(This,pnChannelCount) ) + +#define IAudioEndpointVolumeEx_SetMasterVolumeLevel(This,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetMasterVolumeLevel(This,fLevelDB,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_SetMasterVolumeLevelScalar(This,fLevel,pguidEventContext) \ + ( (This)->lpVtbl -> SetMasterVolumeLevelScalar(This,fLevel,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_GetMasterVolumeLevel(This,pfLevelDB) \ + ( (This)->lpVtbl -> GetMasterVolumeLevel(This,pfLevelDB) ) + +#define IAudioEndpointVolumeEx_GetMasterVolumeLevelScalar(This,pfLevel) \ + ( (This)->lpVtbl -> GetMasterVolumeLevelScalar(This,pfLevel) ) + +#define IAudioEndpointVolumeEx_SetChannelVolumeLevel(This,nChannel,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetChannelVolumeLevel(This,nChannel,fLevelDB,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_SetChannelVolumeLevelScalar(This,nChannel,fLevel,pguidEventContext) \ + ( (This)->lpVtbl -> SetChannelVolumeLevelScalar(This,nChannel,fLevel,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_GetChannelVolumeLevel(This,nChannel,pfLevelDB) \ + ( (This)->lpVtbl -> GetChannelVolumeLevel(This,nChannel,pfLevelDB) ) + +#define IAudioEndpointVolumeEx_GetChannelVolumeLevelScalar(This,nChannel,pfLevel) \ + ( (This)->lpVtbl -> GetChannelVolumeLevelScalar(This,nChannel,pfLevel) ) + +#define IAudioEndpointVolumeEx_SetMute(This,bMute,pguidEventContext) \ + ( (This)->lpVtbl -> SetMute(This,bMute,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_GetMute(This,pbMute) \ + ( (This)->lpVtbl -> GetMute(This,pbMute) ) + +#define IAudioEndpointVolumeEx_GetVolumeStepInfo(This,pnStep,pnStepCount) \ + ( (This)->lpVtbl -> GetVolumeStepInfo(This,pnStep,pnStepCount) ) + +#define IAudioEndpointVolumeEx_VolumeStepUp(This,pguidEventContext) \ + ( (This)->lpVtbl -> VolumeStepUp(This,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_VolumeStepDown(This,pguidEventContext) \ + ( (This)->lpVtbl -> VolumeStepDown(This,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_QueryHardwareSupport(This,pdwHardwareSupportMask) \ + ( (This)->lpVtbl -> QueryHardwareSupport(This,pdwHardwareSupportMask) ) + +#define IAudioEndpointVolumeEx_GetVolumeRange(This,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) \ + ( (This)->lpVtbl -> GetVolumeRange(This,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) ) + + +#define IAudioEndpointVolumeEx_GetVolumeRangeChannel(This,iChannel,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) \ + ( (This)->lpVtbl -> GetVolumeRangeChannel(This,iChannel,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointVolumeEx_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_endpointvolume_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0003_v0_0_s_ifspec; + +#ifndef __IAudioMeterInformation_INTERFACE_DEFINED__ +#define __IAudioMeterInformation_INTERFACE_DEFINED__ + +/* interface IAudioMeterInformation */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioMeterInformation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C02216F6-8C67-4B5B-9D00-D008E73E0064") + IAudioMeterInformation : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPeakValue( + /* [out] */ float *pfPeak) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMeteringChannelCount( + /* [annotation][out] */ + _Out_ UINT *pnChannelCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetChannelsPeakValues( + /* [in] */ UINT32 u32ChannelCount, + /* [size_is][out] */ float *afPeakValues) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryHardwareSupport( + /* [annotation][out] */ + _Out_ DWORD *pdwHardwareSupportMask) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioMeterInformationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioMeterInformation * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioMeterInformation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioMeterInformation * This); + + DECLSPEC_XFGVIRT(IAudioMeterInformation, GetPeakValue) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPeakValue )( + IAudioMeterInformation * This, + /* [out] */ float *pfPeak); + + DECLSPEC_XFGVIRT(IAudioMeterInformation, GetMeteringChannelCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMeteringChannelCount )( + IAudioMeterInformation * This, + /* [annotation][out] */ + _Out_ UINT *pnChannelCount); + + DECLSPEC_XFGVIRT(IAudioMeterInformation, GetChannelsPeakValues) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelsPeakValues )( + IAudioMeterInformation * This, + /* [in] */ UINT32 u32ChannelCount, + /* [size_is][out] */ float *afPeakValues); + + DECLSPEC_XFGVIRT(IAudioMeterInformation, QueryHardwareSupport) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryHardwareSupport )( + IAudioMeterInformation * This, + /* [annotation][out] */ + _Out_ DWORD *pdwHardwareSupportMask); + + END_INTERFACE + } IAudioMeterInformationVtbl; + + interface IAudioMeterInformation + { + CONST_VTBL struct IAudioMeterInformationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioMeterInformation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioMeterInformation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioMeterInformation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioMeterInformation_GetPeakValue(This,pfPeak) \ + ( (This)->lpVtbl -> GetPeakValue(This,pfPeak) ) + +#define IAudioMeterInformation_GetMeteringChannelCount(This,pnChannelCount) \ + ( (This)->lpVtbl -> GetMeteringChannelCount(This,pnChannelCount) ) + +#define IAudioMeterInformation_GetChannelsPeakValues(This,u32ChannelCount,afPeakValues) \ + ( (This)->lpVtbl -> GetChannelsPeakValues(This,u32ChannelCount,afPeakValues) ) + +#define IAudioMeterInformation_QueryHardwareSupport(This,pdwHardwareSupportMask) \ + ( (This)->lpVtbl -> QueryHardwareSupport(This,pdwHardwareSupportMask) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioMeterInformation_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_endpointvolume_0000_0004 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.idl new file mode 100644 index 0000000000000000000000000000000000000000..3f5b3627a320eb9a0ca0d355401ff9f65364d6ea --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.idl @@ -0,0 +1,605 @@ +cpp_quote("#include ") + +//**@@@*@@@**************************************************** +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//**@@@*@@@**************************************************** + +// +// FileName: EndpointVolume.idl +// +// Abstract: Audio Endpoint Volume API +// Provides Volume and muting control for an audio endpoint, either per-channel or total volume. +// +// Author: StephSm +// +// Created: 2005/5/10 +// -------------------------------------------------------------------------------- + +import "unknwn.idl"; +import "devicetopology.idl"; + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +typedef struct AUDIO_VOLUME_NOTIFICATION_DATA +{ + GUID guidEventContext; // Context associated with the originator of the event. + BOOL bMuted; + float fMasterVolume; + UINT nChannels; + float afChannelVolumes[1]; +} AUDIO_VOLUME_NOTIFICATION_DATA, *PAUDIO_VOLUME_NOTIFICATION_DATA; + +// +// Hardware support mask - if the endpoint provides hardware support +// for volume/mute/meter, this bit will be on in the +// DWORD returned by the IAudioEndpointVolume QueryHardwareSupport and +// the IAudioEndpointMeter QueryHardwareSupport API +// +cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_VOLUME 0x00000001") +cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_MUTE 0x00000002") +cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_METER 0x00000004") + + +// ---------------------------------------------------------------------- +// Interfaces +// ---------------------------------------------------------------------- + +// ---------------------------------------------------------------------- +// IAudioEndpointVolumeCallback +// +// Description +// +// Callback interface to be implemented by clients to respond to changes in the volume/mute +// state of an endpoint. +// +[ + object, + local, + uuid(657804FA-D6AD-4496-8A60-352752AF4F89), + nonextensible, + helpstring("AudioEndpointVolumeCallback interface"), + pointer_default(unique) +] +interface IAudioEndpointVolumeCallback : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Called when the endpoint volume changes. + // + // Parameters: + // + // pNotify - [in] Structure containing information about the new + // endpoint volume. + // + // Return values: + // S_OK if successful + // If registration for notification failed. + // + // Remarks: + // Please note: The caller of this function ignores all return + // codes from the OnNotify method. + // + HRESULT OnNotify(PAUDIO_VOLUME_NOTIFICATION_DATA pNotify); +}; + +// ---------------------------------------------------------------------- +// IAudioEndpointVolume +// +// Description: +// +// Volume control interface for a device endpoint. +// +[ + object, + local, + uuid(5CDF2C82-841E-4546-9722-0CF74078229A), + nonextensible, + helpstring("IAudioEndpointVolume interface"), + pointer_default(unique) +] +interface IAudioEndpointVolume : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Registers the client for change notifications on this volume control. + // + // Parameters: + // + // pNotify - [in] Notification interface that gets called when volume changes. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If registration for notification failed. + // + [helpstring("method RegisterControlChangeNotify")] + HRESULT RegisterControlChangeNotify([in, annotation("_In_")] IAudioEndpointVolumeCallback *pNotify); + + //------------------------------------------------------------------------- + // Description: + // + // Unregisters the client for change notifications on this volume control. + // + // Parameters: + // + // pNotify - [in] Notification interface instance to unregister. + // + // Remarks: + // Please note: There are no valid failure modes for this + // function IF the pNotify parameter has previously been + // registered for notifications. + // + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method UnregisterControlChangeNotify")] + HRESULT UnregisterControlChangeNotify([in, annotation("_In_")] IAudioEndpointVolumeCallback *pNotify); + + //------------------------------------------------------------------------- + // Description: + // + // Gets the number of channels on the endpoint for which volume can be changed. + // + // Parameters: + // + // pnChannelCount - [out] Number of channels. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetChannelCount")] + HRESULT GetChannelCount([out, annotation("_Out_")] UINT *pnChannelCount); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the master volume level, using decibels. + // + // Parameters: + // + // fLevelDB - [in] The new volume level, in DB (decibels) + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // All channel volumes are adjusted proportionately based on this new level. + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method SetMasterVolumeLevel")] + HRESULT SetMasterVolumeLevel([in, annotation("_In_")] float fLevelDB, [in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the master volume level, using a uniform scaling factor. + // + // Parameters: + // + // fLevel - [in] The new volume level, a uniform scaling factor + // valued (0 to 1.0) + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // All channel volumes are adjusted proportionately based on this new level. + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method SetMasterVolumeLevelScalar")] + HRESULT SetMasterVolumeLevelScalar([in, annotation("_In_")] float fLevel, [in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Get's the master volume level as a decibel (DB) value. + // + // Parameters: + // + // pfLevelDB - [out] Current master volume level, in DB. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetMasterVolumeLevel")] + HRESULT GetMasterVolumeLevel([out, annotation("_Out_")] float *pfLevelDB); + + //------------------------------------------------------------------------- + // Description: + // + // Get's the master volume level as a uniform scaling factor. + // + // Parameters: + // + // pfLevel - [out] Current master volume level as a uniform + // scaling factor (0 to 1.0 valid range). + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetMasterVolumeLevelScalar")] + HRESULT GetMasterVolumeLevelScalar([out, annotation("_Out_")] float *pfLevel); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the volume level for the specified channel, using a decibel (DB) value. + // + // Parameters: + // + // nChannel - [in] Channel to adjust. + // fLevelDB - [in] Volume to set for channel. + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method SetChannelVolumeLevel")] + HRESULT SetChannelVolumeLevel([in, annotation("_In_")] UINT nChannel, float fLevelDB, [in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the volume level for the specified channel, using a uniform scaling value. + // + // Parameters: + // + // nChannel - [in] Channel to adjust. + // fLevel - [in] Volume to set for channel (uniform scaling factor). + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method SetChannelVolumeLevelScalar")] + HRESULT SetChannelVolumeLevelScalar([in, annotation("_In_")] UINT nChannel, float fLevel, [in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Get the volume level for the specified channel using the DB scale. + // + // Parameters: + // + // nChannel - [in] Channel to adjust. + // pfLevelDB - [out] Current level (in DB) for the channel. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetChannelVolumeLevel")] + HRESULT GetChannelVolumeLevel([in, annotation("_In_")] UINT nChannel, [out, annotation("_Out_")] float *pfLevelDB); + + //------------------------------------------------------------------------- + // Description: + // + // Get the volume level for the specified channel as a uniform + // scaling factor (0 to 1 linear range). + // + // Parameters: + // + // nChannel - [in] Channel. + // pfLevel - [out] Current level (as a uniform scaling factor) for the channel. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetChannelVolumeLevelScalar")] + HRESULT GetChannelVolumeLevelScalar([in, annotation("_In_")] UINT nChannel, [out, annotation("_Out_")] float *pfLevel); + + //------------------------------------------------------------------------- + // Description: + // + // Set the mute state. + // + // Parameters: + // + // bMute - [in] TRUE to mute this endpoint, FALSE to un-mute it. + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method SetMute")] + HRESULT SetMute([in, annotation("_In_")] BOOL bMute, [in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Get the mute state for this endpoint. + // + // Parameters: + // + // pbMute - [out] The current mute state (TRUE = muted, FALSE = not muted). + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetMute")] + HRESULT GetMute([out, annotation("_Out_")] BOOL *pbMute); + + //------------------------------------------------------------------------- + // Description: + // + // Get the current discrete step the volume is set to. + // + // Parameters: + // + // pnStep - [out] The current step + // pnStepCount - [out] Total number of steps. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetVolumeStepInfo")] + HRESULT GetVolumeStepInfo([out, annotation("_Out_")] UINT *pnStep, [out, annotation("_Out_")] UINT *pnStepCount); + + //------------------------------------------------------------------------- + // Description: + // + // Increase master volume by one step. + // + // Parameters: + // + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // Return values: + // S_OK if successful + // S_FALSE if volume already maxed out. + // If failed. + // + [helpstring("method VolumeStepUp")] + HRESULT VolumeStepUp([in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Decrease master volume by one step. + // + // Parameters: + // + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // Return values: + // S_OK if successful + // S_FALSE if already at minimum volume. + // If failed. + // + [helpstring("method VolumeStepDown")] + HRESULT VolumeStepDown([in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Returns if the endpoint volume is controled by a hardware + // control or software control. + // + // Parameters: + // + // pdwHardwareSupportMask - [out] bitmask describing the level of hardware + // support + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method QueryHardwareSupport")] + HRESULT QueryHardwareSupport([out, annotation("_Out_")] DWORD *pdwHardwareSupportMask); + + //------------------------------------------------------------------------- + // Description: + // + // Gets the volume range for the reference channel (the channel + // with the highest volume). + // + // + // Parameters: + // pflVolumeMinDB - [out] Minimum dB for the channel. + // pflVolumeMaxDB - [out] Maximum dB for the channel. + // pflVolumeIncrementDB - [out] dB step for the channel. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetVolumeRange")] + HRESULT GetVolumeRange([out, annotation("_Out_")] float *pflVolumeMindB, [out, annotation("_Out_")] float *pflVolumeMaxdB, [out, annotation("_Out_")] float *pflVolumeIncrementdB); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// ---------------------------------------------------------------------- +// IAudioEndpointVolume +// +// Description: +// +// Volume control interface for a device endpoint. +// +[ +object, +local, +uuid(66E11784-F695-4F28-A505-A7080081A78F), +nonextensible, +helpstring("IAudioEndpointVolumeEx interface"), +pointer_default(unique) +] +interface IAudioEndpointVolumeEx : IAudioEndpointVolume +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the volume range for a particular channel + // + // Parameters: + // iChannel - [in] Channel number + // pflVolumeMinDB - [out] Minimum dB for the channel. + // pflVolumeMaxDB - [out] Maximum dB for the channel. + // pflVolumeIncrementDB - [out] dB step for the channel. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetVolumeRangeChannel")] + HRESULT GetVolumeRangeChannel([in] UINT iChannel, [out, annotation("_Out_")] float *pflVolumeMindB, [out, annotation("_Out_")] float *pflVolumeMaxdB, [out, annotation("_Out_")] float *pflVolumeIncrementdB); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +// ---------------------------------------------------------------------- +// IAudioMeterInformation +// +// Description: +// +// Volume control interface for a device endpoint. +// +[ + object, + local, + uuid(C02216F6-8C67-4B5B-9D00-D008E73E0064), + nonextensible, + helpstring("IAudioMeterInformation interface"), + pointer_default(unique) +] +interface IAudioMeterInformation : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Get peak value across all channels. + // + // Parameters: + // + // pfPeak - [out] highest peak across all channels in range [0.0f, 1.0f] + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetPeakValue")] + HRESULT GetPeakValue([out] float *pfPeak); + + //------------------------------------------------------------------------- + // Description: + // + // Gets the number of channels for which metering information is available. + // + // Parameters: + // + // pnChannelCount - [out] Number of channels. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetChannelCount")] + HRESULT GetMeteringChannelCount([out, annotation("_Out_")] UINT *pnChannelCount); + + //------------------------------------------------------------------------- + // Description: + // + // Get peak values for all channels. + // + // Parameters: + // + // u32ChannelCount - [in] Number of channels to get levels for + // afPeakValues - [out] array of peak values in range [0.0f, 1.0f] + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetChannelsPeakValue")] + HRESULT GetChannelsPeakValues([in] UINT32 u32ChannelCount, [out, size_is(u32ChannelCount)] float *afPeakValues); + + //------------------------------------------------------------------------- + // Description: + // + // Returns if the endpoint volume is controled by a hardware + // control or software control. + // + // Parameters: + // + // pdwHardwareSupportMask - [out] bitmask describing the level of hardware + // support + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method QueryHardwareSupport")] + HRESULT QueryHardwareSupport([out, annotation("_Out_")] DWORD *pdwHardwareSupportMask); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/errhandlingapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/errhandlingapi.h new file mode 100644 index 0000000000000000000000000000000000000000..073a04f8626db7003ae35ef8067ab32c17a7835a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/errhandlingapi.h @@ -0,0 +1,268 @@ +/******************************************************************************** +* * +* errhandlingapi.h - ApiSet Contract for api-ms-win-core-errorhandling-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _ERRHANDLING_H_ +#define _ERRHANDLING_H_ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// Typedefs +// + +typedef LONG (WINAPI *PTOP_LEVEL_EXCEPTION_FILTER)( + _In_ struct _EXCEPTION_POINTERS *ExceptionInfo + ); + +typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER; + +// +// Prototypes +// + +WINBASEAPI +VOID +WINAPI +RaiseException( + _In_ DWORD dwExceptionCode, + _In_ DWORD dwExceptionFlags, + _In_ DWORD nNumberOfArguments, + _In_reads_opt_(nNumberOfArguments) CONST ULONG_PTR* lpArguments + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +__callback +WINBASEAPI +LONG +WINAPI +UnhandledExceptionFilter( + _In_ struct _EXCEPTION_POINTERS* ExceptionInfo + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +LPTOP_LEVEL_EXCEPTION_FILTER +WINAPI +SetUnhandledExceptionFilter( + _In_opt_ LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter + ); + +#ifndef _M_CEE_PURE + +WINBASEAPI +_Check_return_ +_Post_equals_last_error_ +DWORD +WINAPI +GetLastError( + VOID + ); + +#endif + +WINBASEAPI +VOID +WINAPI +SetLastError( + _In_ DWORD dwErrCode + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +UINT +WINAPI +GetErrorMode( + VOID + ); + +#endif // (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +UINT +WINAPI +SetErrorMode( + _In_ UINT uMode + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0501) + +WINBASEAPI +_Ret_maybenull_ +PVOID +WINAPI +AddVectoredExceptionHandler( + _In_ ULONG First, + _In_ PVECTORED_EXCEPTION_HANDLER Handler + ); + +WINBASEAPI +ULONG +WINAPI +RemoveVectoredExceptionHandler( + _In_ PVOID Handle + ); + +WINBASEAPI +_Ret_maybenull_ +PVOID +WINAPI +AddVectoredContinueHandler( + _In_ ULONG First, + _In_ PVECTORED_EXCEPTION_HANDLER Handler + ); + +WINBASEAPI +ULONG +WINAPI +RemoveVectoredContinueHandler( + _In_ PVOID Handle + ); + +#endif // (_WIN32_WINNT >= 0x0501) + +// RC warns because "WINBASE_DECLARE_RESTORE_LAST_ERROR" is a bit long. +#if !defined(RC_INVOKED) +//#if _WIN32_WINNT >= 0x0501 || defined(WINBASE_DECLARE_RESTORE_LAST_ERROR) +#if defined(WINBASE_DECLARE_RESTORE_LAST_ERROR) + +WINBASEAPI +VOID +WINAPI +RestoreLastError( + _In_ DWORD dwErrCode + ); + +typedef VOID (WINAPI* PRESTORE_LAST_ERROR)(DWORD); +#define RESTORE_LAST_ERROR_NAME_A "RestoreLastError" +#define RESTORE_LAST_ERROR_NAME_W L"RestoreLastError" +#define RESTORE_LAST_ERROR_NAME TEXT("RestoreLastError") + +#endif +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +VOID +WINAPI +RaiseFailFastException( + _In_opt_ PEXCEPTION_RECORD pExceptionRecord, + _In_opt_ PCONTEXT pContextRecord, + _In_ DWORD dwFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +VOID +WINAPI +FatalAppExitA( + _In_ UINT uAction, + _In_ LPCSTR lpMessageText + ); + +WINBASEAPI +VOID +WINAPI +FatalAppExitW( + _In_ UINT uAction, + _In_ LPCWSTR lpMessageText + ); + +#ifdef UNICODE +#define FatalAppExit FatalAppExitW +#else +#define FatalAppExit FatalAppExitA +#endif // !UNICODE + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +DWORD +WINAPI +GetThreadErrorMode( + VOID + ); + +WINBASEAPI +BOOL +WINAPI +SetThreadErrorMode( + _In_ DWORD dwNewMode, + _In_opt_ LPDWORD lpOldMode + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +VOID +WINAPI +TerminateProcessOnMemoryExhaustion( + _In_ SIZE_T FailedAllocationSize + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _ERRHANDLING_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/errlup.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/errlup.idl new file mode 100644 index 0000000000000000000000000000000000000000..a0bbddf7c43a0a0daff18b1ac040bd32156507ca --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/errlup.idl @@ -0,0 +1,85 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: errlup.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a66-2a1c-11ce-ade5-00aa0044773d) + + +interface IErrorLookup : IUnknown { + + [local] + HRESULT GetErrorDescription( + [in] HRESULT hrError, + [in] DWORD dwLookupID, + [in, annotation("_In_")] DISPPARAMS * pdispparams, + [in] LCID lcid, + [out, annotation("_Outptr_result_maybenull_z_")] BSTR * pbstrSource, + [out, annotation("_Outptr_result_maybenull_z_")] BSTR * pbstrDescription + ); + + [call_as(GetErrorDescription)] + HRESULT RemoteGetErrorDescription( + [in] HRESULT hrError, + [in] DWORD dwLookupID, + [in] DISPPARAMS * pdispparams, + [in] LCID lcid, + [out] BSTR * pbstrSource, + [out] BSTR * pbstrDescription, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetHelpInfo( + [in] HRESULT hrError, + [in] DWORD dwLookupID, + [in] LCID lcid, + [out, annotation("_Outptr_result_maybenull_")] BSTR * pbstrHelpFile, + [out, annotation("_Out_")] DWORD * pdwHelpContext + ); + + [call_as(GetHelpInfo)] + HRESULT RemoteGetHelpInfo( + [in] HRESULT hrError, + [in] DWORD dwLookupID, + [in] LCID lcid, + [out] BSTR * pbstrHelpFile, + [out] DWORD * pdwHelpContext, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT ReleaseErrors( + [in] const DWORD dwDynamicErrorID + ); + + [call_as(ReleaseErrors)] + HRESULT RemoteReleaseErrors( + [in] const DWORD dwDynamicErrorID, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/errors.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/errors.h new file mode 100644 index 0000000000000000000000000000000000000000..ddab29159417becded17e9f3aa0d6c3bc47a3f16 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/errors.h @@ -0,0 +1,56 @@ +//------------------------------------------------------------------------------ +// File: Errors.h +// +// Desc: ActiveMovie error defines. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __ERRORS__ +#define __ERRORS__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +#ifndef _AMOVIE_ +#define AMOVIEAPI DECLSPEC_IMPORT +#else +#define AMOVIEAPI +#endif + +// codes 0-01ff are reserved for OLE +#define VFW_FIRST_CODE 0x200 +#define MAX_ERROR_TEXT_LEN 160 + +#include // includes all message definitions + +typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT, char *, DWORD); +typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT, WCHAR *, DWORD); + +AMOVIEAPI DWORD WINAPI AMGetErrorTextA( HRESULT hr , _Out_writes_(MaxLen) LPSTR pbuffer , DWORD MaxLen); +AMOVIEAPI DWORD WINAPI AMGetErrorTextW( HRESULT hr , _Out_writes_(MaxLen) LPWSTR pbuffer , DWORD MaxLen); + + +#ifdef UNICODE +#define AMGetErrorText AMGetErrorTextW +typedef AMGETERRORTEXTPROCW AMGETERRORTEXTPROC; +#else +#define AMGetErrorText AMGetErrorTextA +typedef AMGETERRORTEXTPROCA AMGETERRORTEXTPROC; +#endif + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __ERRORS__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/errrec.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/errrec.idl new file mode 100644 index 0000000000000000000000000000000000000000..029026aac078d78232d384fc0a013a9bed2ece35 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/errrec.idl @@ -0,0 +1,131 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: errrec.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a67-2a1c-11ce-ade5-00aa0044773d) + + +interface IErrorRecords : IUnknown { + +cpp_quote("#define IDENTIFIER_SDK_MASK 0xF0000000") +cpp_quote("#define IDENTIFIER_SDK_ERROR 0x10000000") + +typedef struct tagERRORINFO { + HRESULT hrError; + DWORD dwMinor; + CLSID clsid; + IID iid; + DISPID dispid; +} ERRORINFO; + + [local] + HRESULT AddErrorRecord( + [in, annotation("_In_")] ERRORINFO * pErrorInfo, + [in] DWORD dwLookupID, + [in, annotation("_In_opt_")] DISPPARAMS * pdispparams, + [in, annotation("_In_opt_")] IUnknown * punkCustomError, + [in] DWORD dwDynamicErrorID + ); + + [call_as(AddErrorRecord)] + HRESULT RemoteAddErrorRecord( + [in] ERRORINFO * pErrorInfo, + [in] DWORD dwLookupID, + [in] DISPPARAMS * pdispparams, + [in] IUnknown * punkCustomError, + [in] DWORD dwDynamicErrorID, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetBasicErrorInfo( + [in] ULONG ulRecordNum, + [out, annotation("_Out_")] ERRORINFO * pErrorInfo + ); + + [call_as(GetBasicErrorInfo)] + HRESULT RemoteGetBasicErrorInfo( + [in] ULONG ulRecordNum, + [out] ERRORINFO * pErrorInfo, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetCustomErrorObject( + [in] ULONG ulRecordNum, + [in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), annotation("_Outptr_result_maybenull_")] IUnknown ** ppObject + ); + + [call_as(GetCustomErrorObject)] + HRESULT RemoteGetCustomErrorObject( + [in] ULONG ulRecordNum, + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppObject, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetErrorInfo( + [in] ULONG ulRecordNum, + [in] LCID lcid, + [out, annotation("_Outptr_")] IErrorInfo ** ppErrorInfo + ); + + [call_as(GetErrorInfo)] + HRESULT RemoteGetErrorInfo( + [in] ULONG ulRecordNum, + [in] LCID lcid, + [out] IErrorInfo ** ppErrorInfo, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetErrorParameters( + [in] ULONG ulRecordNum, + [out, annotation("_Out_")] DISPPARAMS * pdispparams + ); + + [call_as(GetErrorParameters)] + HRESULT RemoteGetErrorParameters( + [in] ULONG ulRecordNum, + [out] DISPPARAMS * pdispparams, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetRecordCount( + [out, annotation("_Out_")] ULONG * pcRecords + ); + + [call_as(GetRecordCount)] + HRESULT RemoteGetRecordCount( + [out] ULONG * pcRecords, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/esent.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/esent.h new file mode 100644 index 0000000000000000000000000000000000000000..56a8a639db4705910b6239c4b6fa8bb3b4415b12 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/esent.h @@ -0,0 +1,7669 @@ +/*++ BUILD Version: 0000 Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + esent.h + +Abstract: + + This module defines the types and constants that are + exposed through the ESE API. + +--*/ + +#pragma once + +#if !defined(_JET_INCLUDED) +#define _JET_INCLUDED + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#include + + +// JET_VERSION is similar to WINVER. It allows the most recent header to be used +// against older targets. Supported versions are: +// 0x0500 - Windows 2000 +// 0x0501 - Windows XP +// 0x0502 - Windows Server 2003 +// 0x0600 - Windows Vista / Windows Server 2008 +// 0x0601 - Windows 7 / Windows Server 2008 R2 +// 0x0602 - Windows 8 / Windows Server 2012 +// 0x0603 - Windows 8.1 / Windows Server 2012 R2 +// 0x0A00 - Windows 10 + + +#ifndef JET_VERSION +# ifdef WINVER +# define JET_VERSION WINVER +# else + // JET_VERSION has not been specified. Assume all functions are available. +# define JET_VERSION 0x0A00 +# endif +#endif + + + +#if defined(_WIN64) +#pragma pack(push,8) +#else +#pragma pack(push,4) +#endif + + +#pragma warning(push) +#pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union + + +#define JET_API __stdcall +#define JET_NODSAPI __stdcall + +#ifndef _JET_BASE_TYPES_DEFINED +#define _JET_BASE_TYPES_DEFINED +// Do we define the basic JET integral types from stdint.h, or do we use the +// historical definitions? +#ifdef _JET_API_USE_STDINT + +#include + +typedef int8_t JET_INT8; +typedef uint8_t JET_UINT8; +typedef int16_t JET_INT16; +typedef uint16_t JET_UINT16; +typedef int32_t JET_INT32; +typedef uint32_t JET_UINT32; +typedef int64_t JET_INT64; +typedef uint64_t JET_UINT64; +typedef uint8_t JET_BYTE; + +#else + +// Note the use of "long" rather than "int" for JET_INT32/JET_UINT32. +// The JET_API has historically used the base type "long" for 32bit integral +// types. While "int" and "long" are both 32bit integral types and coerce +// back and forth and so may be used interchangably, "int *" and "long *" do +// not. If the base type of the 32bit integral types were to change to +// "int", existing client code could break and require casts for the pointer types. +typedef char JET_INT8; +typedef unsigned char JET_UINT8; +typedef short JET_INT16; +typedef unsigned short JET_UINT16; +typedef long JET_INT32; +typedef unsigned long JET_UINT32; +typedef long long JET_INT64; +typedef unsigned long long JET_UINT64; +typedef unsigned char JET_BYTE; + +#endif + +typedef void JET_VOID; +typedef void * JET_PVOID; +typedef const void * JET_PCVOID; +typedef char JET_CHAR; +#if !defined(_NATIVE_WCHAR_T_DEFINED) +typedef unsigned short JET_WCHAR; +#else +typedef wchar_t JET_WCHAR; +#endif +#endif // _JET_BASE_TYPES_DEFINED +// After this point, use only JET_type style types. That is, don't use base types like +// long, int, short, etc, use JET_INT32, JET_INT16, etc. + + +#if defined(_WIN64) + typedef JET_UINT64 JET_API_PTR; +#else + typedef JET_UINT32 JET_API_PTR; +#endif + +typedef _Return_type_success_( return >= 0 ) JET_INT32 JET_ERR; + +typedef JET_UINT32 JET_LCID; +typedef JET_UINT16 JET_LANGID; +typedef JET_UINT16 JET_CP; + + +typedef JET_API_PTR JET_HANDLE; // backup file handle +typedef JET_API_PTR JET_INSTANCE; // Instance Identifier +typedef JET_API_PTR JET_SESID; // Session Identifier +typedef JET_API_PTR JET_TABLEID; // Table Identifier +#if ( JET_VERSION >= 0x0501 ) +typedef JET_API_PTR JET_LS; // Local Storage +#endif // JET_VERSION >= 0x0501 + +typedef JET_UINT32 JET_COLUMNID; // Column Identifier + +typedef struct tagJET_INDEXID +{ + JET_UINT32 cbStruct; + JET_BYTE rgbIndexId[sizeof(JET_API_PTR)+sizeof(JET_UINT32)+sizeof(JET_UINT32)]; +} JET_INDEXID; + +typedef JET_UINT32 JET_DBID; // Database Identifier +typedef JET_UINT32 JET_OBJTYP; // Object Type +typedef JET_UINT32 JET_COLTYP; // Column Type +typedef JET_UINT32 JET_GRBIT; // Group of Bits + +typedef JET_UINT32 JET_SNP; // Status Notification Process +typedef JET_UINT32 JET_SNT; // Status Notification Type +typedef double JET_DATESERIAL; // JET_coltypDateTime format +#if ( JET_VERSION >= 0x0501 ) +typedef JET_UINT32 JET_CBTYP; // Callback Types +#endif // JET_VERSION >= 0x0501 + +typedef JET_ERR (JET_API * JET_PFNSTATUS)( + _In_ JET_SESID sesid, + _In_ JET_SNP snp, + _In_ JET_SNT snt, + _In_opt_ JET_PVOID pv ); + + +typedef _Null_terminated_ JET_CHAR * JET_PSTR; // ASCII string (char *) null terminated +typedef _Null_terminated_ const JET_CHAR * JET_PCSTR; // const ASCII string (char *) null terminated +typedef _Null_terminated_ JET_WCHAR * JET_PWSTR; // Unicode string (wchar_t *) null terminated +typedef _Null_terminated_ const JET_WCHAR * JET_PCWSTR; // const Unicode string (wchar_t *) null terminated + + +typedef struct +{ + JET_PSTR szDatabaseName; + JET_PSTR szNewDatabaseName; +} JET_RSTMAP_A; // restore map + +typedef struct +{ + JET_PWSTR szDatabaseName; + JET_PWSTR szNewDatabaseName; +} JET_RSTMAP_W; // restore map + +#ifdef JET_UNICODE +#define JET_RSTMAP JET_RSTMAP_W +#else +#define JET_RSTMAP JET_RSTMAP_A +#endif + + +// For edbutil convert and JetConvert() only. + +typedef struct tagCONVERT_A +{ + JET_PSTR szOldDll; + union + { + JET_UINT32 fFlags; + struct + { + JET_UINT32 fSchemaChangesOnly:1; + }; + }; +} JET_CONVERT_A; + +typedef struct tagCONVERT_W +{ + JET_PWSTR szOldDll; + union + { + JET_UINT32 fFlags; + struct + { + JET_UINT32 fSchemaChangesOnly:1; + }; + }; +} JET_CONVERT_W; + +#ifdef JET_UNICODE +#define JET_CONVERT JET_CONVERT_W +#else +#define JET_CONVERT JET_CONVERT_A +#endif + + +// Configuration Store +// +// ESE has the ability to use an external config store for ESE database engine and instance +// settings. +// +// Using the registry this might look something like setting the JET param to this: +// +// JET_paramConfigStoreSpec "reg:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PopServer(Inst1)" +// +// where "PopServer(Inst1)" is just an exaple name, you should pick a different name or +// even a different part of the registry if appropriate. You are limited however to +// beginning under: HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER. +// +// And configuring the registry thusly: +// +//Windows Registry Editor Version 5.00 +// +//[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PopServer(Inst1)] +// +//[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PopServer(Inst1)\SysParamDefault] +//"JET_paramDatabasePageSize"="8192" +//"JET_paramEnableFileCache"="1" +// +// All values should be set as a string version of a decimal of hex values (such as "0x2000"). +// + + +// +// The security settings / [D]ACL of the registry key provided to JET_paramConfigStoreSpec +// should be locked down to the same security context as the client application that uses ESE +// and opens the database, otherwise there is a possible Escalation of Privilege attack. +// + +// The JET_wszConfigStoreReadControl in the registry are registry values under the root +// registry key passed to JET_paramConfigStoreSpec. + +#define JET_wszConfigStoreReadControl L"CsReadControl" +#define JET_bitConfigStoreReadControlInhibitRead 0x1 // Will stop reading from the registry config store, and pause reading until flag is removed (this will stall some JET initialization APIs). +#define JET_bitConfigStoreReadControlDisableAll 0x2 // Simply disables the registry config store from being read or used. +#define JET_bitConfigStoreReadControlDefault 0x0 // Use default ESE behavior. + + +// The JET_wszConfigStoreRelPathSysParamDefault and JET_wszConfigStoreRelPathSysParamOverride in +// the registry are registry sub-keys under the root registry key passed to JET_paramConfigStoreSpec. +#define JET_wszConfigStoreRelPathSysParamDefault L"SysParamDefault" +#define JET_wszConfigStoreRelPathSysParamOverride L"SysParamOverride" + + + +// Special format specifiers here +#define JET_efvUseEngineDefault (0x40000001) // Instructs the engine to use the maximal default supported Engine Format Version. (default) +#define JET_efvUsePersistedFormat (0x40000002) // Instructs the engine to use the minimal Engine Format Version of all loaded log and DB files. +#define JET_efvAllowHigherPersistedFormat (0x41000000) // Can be combined with a specific EngineFormatVersion but will not fail if persisted files are ahead of the specified EngineFormatVersion. Will still fail if the persisted version is ahead of what the engine actually can read/understand. + +#define JET_efvWindows19H1Rtm 8920 // Last pre-efv version, shipped in Windows 10 until 19H1 release. +#define JET_efvWindows10v2004 9180 // Efv shipped with Windows "Vibranium", first shipped with Windows 10 version 2004 (and all subsequent Windows 10 releases). +#define JET_efvWindowsServer2022 9360 // Efv shipped with Windows Server 2022. +#define JET_efvWindows11v21H2 9400 // Efv shipped with Windows 11 21H2 release. +#define JET_efvWindows11v22H2 9480 // Efv shipped with Windows 11 22H2 release. +#define JET_efvWindows11v23H2 9600 // Efv shipped with Windows 11 23H2 release. + + +// Online defragmentation (JetDefragment/JetDefragment2) options +#define JET_bitDefragmentBatchStart 0x00000001 +#define JET_bitDefragmentBatchStop 0x00000002 + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitDefragmentAvailSpaceTreesOnly 0x00000040 /* only defrag AvailExt trees */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitDefragmentNoPartialMerges 0x00000080 /* don't do partial merges during OLD */ + +#define JET_bitDefragmentBTree 0x00000100 /* defrag one B-Tree */ + + +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0501 ) + /* Callback-function types */ + +#define JET_cbtypNull 0x00000000 +#define JET_cbtypFinalize 0x00000001 /* DEPRECATED: a finalizable column has gone to zero */ +#define JET_cbtypBeforeInsert 0x00000002 /* about to insert a record */ +#define JET_cbtypAfterInsert 0x00000004 /* finished inserting a record */ +#define JET_cbtypBeforeReplace 0x00000008 /* about to modify a record */ +#define JET_cbtypAfterReplace 0x00000010 /* finished modifying a record */ +#define JET_cbtypBeforeDelete 0x00000020 /* about to delete a record */ +#define JET_cbtypAfterDelete 0x00000040 /* finished deleting the record */ +#define JET_cbtypUserDefinedDefaultValue 0x00000080 /* calculating a user-defined default */ +#define JET_cbtypOnlineDefragCompleted 0x00000100 /* a call to JetDefragment2 has completed */ +#define JET_cbtypFreeCursorLS 0x00000200 /* the Local Storage associated with a cursor must be freed */ +#define JET_cbtypFreeTableLS 0x00000400 /* the Local Storage associated with a table must be freed */ + + /* Callback-function prototype */ + +typedef JET_ERR (JET_API * JET_CALLBACK)( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_TABLEID tableid, + _In_ JET_CBTYP cbtyp, + _Inout_opt_ JET_PVOID pvArg1, + _Inout_opt_ JET_PVOID pvArg2, + _In_opt_ JET_PVOID pvContext, + _In_ JET_API_PTR ulUnused ); +#endif // JET_VERSION >= 0x0501 + + /* Status Notification Structures */ + +typedef struct // Status Notification Progress +{ + JET_UINT32 cbStruct; // Size of this structure + JET_UINT32 cunitDone; // Number of units of work completed + JET_UINT32 cunitTotal; // Total number of units of work +} JET_SNPROG; + +typedef struct +{ + JET_UINT32 cbStruct; + + JET_UINT32 cbFilesizeLow; // file's current size (low DWORD) + JET_UINT32 cbFilesizeHigh; // file's current size (high DWORD) + + JET_UINT32 cbFreeSpaceRequiredLow; // estimate of free disk space required for in-place upgrade (low DWORD) + JET_UINT32 cbFreeSpaceRequiredHigh;// estimate of free disk space required for in-place upgrade (high DWORD) + + JET_UINT32 csecToUpgrade; // estimate of time required, in seconds, for upgrade + + union + { + JET_UINT32 ulFlags; + struct + { + JET_UINT32 fUpgradable:1; + JET_UINT32 fAlreadyUpgraded:1; + }; + }; +} JET_DBINFOUPGRADE; + +typedef struct +{ + JET_UINT32 cbStruct; + JET_OBJTYP objtyp; + JET_DATESERIAL dtCreate; // Deprecated. + JET_DATESERIAL dtUpdate; // Deprecated. + JET_GRBIT grbit; + JET_UINT32 flags; + JET_UINT32 cRecord; + JET_UINT32 cPage; +} JET_OBJECTINFO; + + /* The following flags appear in the grbit field above */ + +#define JET_bitTableInfoUpdatable 0x00000001 +#define JET_bitTableInfoBookmark 0x00000002 +#define JET_bitTableInfoRollback 0x00000004 + + /* The following flags occur in the flags field above */ + +#define JET_bitObjectSystem 0x80000000 // Internal use only +#define JET_bitObjectTableFixedDDL 0x40000000 // Table's DDL is fixed +#define JET_bitObjectTableTemplate 0x20000000 // Table's DDL is inheritable (implies FixedDDL) +#define JET_bitObjectTableDerived 0x10000000 // Table's DDL is inherited from a template table +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitObjectTableNoFixedVarColumnsInDerivedTables 0x04000000 // used in conjunction with JET_bitObjectTableTemplate + // to disallow fixed/var columns in derived tables (so that + // fixed/var columns may be added to the template in the future) +#endif // JET_VERSION >= 0x0501 + + +typedef struct +{ + JET_UINT32 cbStruct; + JET_TABLEID tableid; + JET_UINT32 cRecord; + JET_COLUMNID columnidcontainername; + JET_COLUMNID columnidobjectname; + JET_COLUMNID columnidobjtyp; + JET_COLUMNID columniddtCreate; // XXX -- to be deleted + JET_COLUMNID columniddtUpdate; // XXX -- to be deleted + JET_COLUMNID columnidgrbit; + JET_COLUMNID columnidflags; + JET_COLUMNID columnidcRecord; // Level 2 info + JET_COLUMNID columnidcPage; // Level 2 info +} JET_OBJECTLIST; + +#define cObjectInfoCols 9 + +typedef struct +{ + JET_UINT32 cbStruct; + JET_TABLEID tableid; + JET_UINT32 cRecord; + JET_COLUMNID columnidPresentationOrder; + JET_COLUMNID columnidcolumnname; + JET_COLUMNID columnidcolumnid; + JET_COLUMNID columnidcoltyp; + JET_COLUMNID columnidCountry; // specifies the columnid for the country/region field + JET_COLUMNID columnidLangid; + JET_COLUMNID columnidCp; + JET_COLUMNID columnidCollate; + JET_COLUMNID columnidcbMax; + JET_COLUMNID columnidgrbit; + JET_COLUMNID columnidDefault; + JET_COLUMNID columnidBaseTableName; + JET_COLUMNID columnidBaseColumnName; + JET_COLUMNID columnidDefinitionName; +} JET_COLUMNLIST; + +#define cColumnInfoCols 14 + +typedef struct +{ + JET_UINT32 cbStruct; + JET_COLUMNID columnid; + JET_COLTYP coltyp; + JET_UINT16 wCountry; // sepcifies the country/region for the column definition + JET_LANGID langid; + JET_CP cp; + JET_UINT16 wCollate; // Must be 0 + JET_UINT32 cbMax; + JET_GRBIT grbit; +} JET_COLUMNDEF; + + +typedef struct +{ + JET_UINT32 cbStruct; + JET_COLUMNID columnid; + JET_COLTYP coltyp; + JET_UINT16 wCountry; // specifies the columnid for the country/region field + JET_LANGID langid; + JET_CP cp; + JET_UINT16 wFiller; // Must be 0 + JET_UINT32 cbMax; + JET_GRBIT grbit; + JET_CHAR szBaseTableName[256]; + JET_CHAR szBaseColumnName[256]; +} JET_COLUMNBASE_A; + + +typedef struct +{ + JET_UINT32 cbStruct; + JET_COLUMNID columnid; + JET_COLTYP coltyp; + JET_UINT16 wCountry; // specifies the columnid for the country/region field + JET_LANGID langid; + JET_CP cp; + JET_UINT16 wFiller; // Must be 0 + JET_UINT32 cbMax; + JET_GRBIT grbit; + JET_WCHAR szBaseTableName[256]; + JET_WCHAR szBaseColumnName[256]; +} JET_COLUMNBASE_W; + + +#ifdef JET_UNICODE +#define JET_COLUMNBASE JET_COLUMNBASE_W +#else +#define JET_COLUMNBASE JET_COLUMNBASE_A +#endif + + +typedef struct +{ + JET_UINT32 cbStruct; + JET_TABLEID tableid; + JET_UINT32 cRecord; + JET_COLUMNID columnidindexname; + JET_COLUMNID columnidgrbitIndex; + JET_COLUMNID columnidcKey; + JET_COLUMNID columnidcEntry; + JET_COLUMNID columnidcPage; + JET_COLUMNID columnidcColumn; + JET_COLUMNID columnidiColumn; + JET_COLUMNID columnidcolumnid; + JET_COLUMNID columnidcoltyp; + JET_COLUMNID columnidCountry; // specifies the columnid for the country/region field + JET_COLUMNID columnidLangid; + JET_COLUMNID columnidCp; + JET_COLUMNID columnidCollate; + JET_COLUMNID columnidgrbitColumn; + JET_COLUMNID columnidcolumnname; + JET_COLUMNID columnidLCMapFlags; +} JET_INDEXLIST; + + +#define cIndexInfoCols 15 + +typedef struct tag_JET_COLUMNCREATE_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szColumnName; // column name + JET_COLTYP coltyp; // column type + JET_UINT32 cbMax; // the maximum length of this column (only relevant for binary and text columns) + JET_GRBIT grbit; // column options + JET_PVOID pvDefault; // default value (NULL if none) + JET_UINT32 cbDefault; // length of default value + JET_UINT32 cp; // code page (for text columns only). Note that historically we don't use JET_CP for this, + // although the value actually is a JET_CP. + JET_COLUMNID columnid; // returned column id + JET_ERR err; // returned error code +} JET_COLUMNCREATE_A; + +typedef struct tag_JET_COLUMNCREATE_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szColumnName; // column name + JET_COLTYP coltyp; // column type + JET_UINT32 cbMax; // the maximum length of this column (only relevant for binary and text columns) + JET_GRBIT grbit; // column options + JET_PVOID pvDefault; // default value (NULL if none) + JET_UINT32 cbDefault; // length of default value + JET_UINT32 cp; // code page (for text columns only). Note that historically we don't use JET_CP for this, + // although the value actually is a JET_CP. + JET_COLUMNID columnid; // returned column id + JET_ERR err; // returned error code +} JET_COLUMNCREATE_W; + +#ifdef JET_UNICODE +#define JET_COLUMNCREATE JET_COLUMNCREATE_W +#else +#define JET_COLUMNCREATE JET_COLUMNCREATE_A +#endif + +#if ( JET_VERSION >= 0x0501 ) +// This is the information needed to create a column with a user-defined default. It should be passed in using +// the pvDefault and cbDefault in a JET_COLUMNCREATE structure + +typedef struct tag_JET_USERDEFINEDDEFAULT_A +{ + JET_PSTR szCallback; + JET_BYTE * pbUserData; + JET_UINT32 cbUserData; + JET_PSTR szDependantColumns; +} JET_USERDEFINEDDEFAULT_A; + +typedef struct tag_JET_USERDEFINEDDEFAULT_W +{ + JET_PWSTR szCallback; + JET_BYTE * pbUserData; + JET_UINT32 cbUserData; + JET_PWSTR szDependantColumns; +} JET_USERDEFINEDDEFAULT_W; + +#ifdef JET_UNICODE +#define JET_USERDEFINEDDEFAULT JET_USERDEFINEDDEFAULT_W +#else +#define JET_USERDEFINEDDEFAULT JET_USERDEFINEDDEFAULT_A +#endif + +#endif // JET_VERSION >= 0x0501 + +typedef struct tagJET_CONDITIONALCOLUMN_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szColumnName; // column that we are conditionally indexed on + JET_GRBIT grbit; // conditional column options +} JET_CONDITIONALCOLUMN_A; + +typedef struct tagJET_CONDITIONALCOLUMN_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szColumnName; // column that we are conditionally indexed on + JET_GRBIT grbit; // conditional column options +} JET_CONDITIONALCOLUMN_W; + +#ifdef JET_UNICODE +#define JET_CONDITIONALCOLUMN JET_CONDITIONALCOLUMN_W +#else +#define JET_CONDITIONALCOLUMN JET_CONDITIONALCOLUMN_A +#endif + +typedef struct tagJET_UNICODEINDEX +{ + JET_LCID lcid; + JET_UINT32 dwMapFlags; +} JET_UNICODEINDEX; + +#if ( JET_VERSION >= 0x0602 ) +typedef struct tagJET_UNICODEINDEX2 +{ + _Field_z_ JET_PWSTR szLocaleName; + JET_UINT32 dwMapFlags; +} JET_UNICODEINDEX2; +#endif //JET_VERSION >= 0x0602 + +#if ( JET_VERSION >= 0x0502 ) +typedef struct tagJET_TUPLELIMITS +{ + JET_UINT32 chLengthMin; + JET_UINT32 chLengthMax; + JET_UINT32 chToIndexMax; +#if ( JET_VERSION >= 0x0600 ) + JET_UINT32 cchIncrement; + JET_UINT32 ichStart; +#endif // JET_VERSION >= 0x0600 +} JET_TUPLELIMITS; +#endif // JET_VERSION >= 0x0502 + +#if ( JET_VERSION >= 0x0601 ) +// This structure describes some of the hints we can give to a given B-tree, be it a +// table, index, or the internal long values tree. +typedef struct tagJET_SPACEHINTS +{ + JET_UINT32 cbStruct; // size of this structure + JET_UINT32 ulInitialDensity; // density at (append) layout. + JET_UINT32 cbInitial; // initial size (in bytes). + + JET_GRBIT grbit; // Combination of one or more flags from + // JET_bitSpaceHints* flags + // JET_bitCreateHints* flags + // JET_bitRetrieveHints* flags + // JET_bitUpdateHints* flags + // JET_bitDeleteHints* flags + JET_UINT32 ulMaintDensity; // density to maintain at. + JET_UINT32 ulGrowth; // percent growth from: + // last growth or initial size (possibly rounded to nearest native JET allocation size). + JET_UINT32 cbMinExtent; // This overrides ulGrowth if too small. + JET_UINT32 cbMaxExtent; // This caps ulGrowth. +} JET_SPACEHINTS; +#endif // JET_VERSION >= 0x0601 + + +typedef struct tagJET_INDEXCREATE_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szIndexName; // index name + JET_PSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + + union + { + JET_LCID lcid; // lcid for the index (if JET_bitIndexUnicode NOT specified) + JET_UNICODEINDEX * pidxunicode; // pointer to JET_UNICODEINDEX struct (if JET_bitIndexUnicode specified) + }; + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) +#if ( JET_VERSION >= 0x0502 ) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) +#endif // ! JET_VERSION >= 0x0502 + }; + + JET_CONDITIONALCOLUMN_A * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code +#if ( JET_VERSION >= 0x0600 ) + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) +#endif // JET_VERSION >= 0x0600 +} JET_INDEXCREATE_A; + +typedef struct tagJET_INDEXCREATE_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szIndexName; // index name + JET_PWSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + + union + { + JET_LCID lcid; // lcid for the index (if JET_bitIndexUnicode NOT specified) + JET_UNICODEINDEX * pidxunicode; // pointer to JET_UNICODEINDEX struct (if JET_bitIndexUnicode specified) + }; + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) +#if ( JET_VERSION >= 0x0502 ) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) +#endif // ! JET_VERSION >= 0x0502 + }; + + JET_CONDITIONALCOLUMN_W * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code +#if ( JET_VERSION >= 0x0600 ) + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) +#endif // JET_VERSION >= 0x0600 +} JET_INDEXCREATE_W; + +#ifdef JET_UNICODE +#define JET_INDEXCREATE JET_INDEXCREATE_W +#else +#define JET_INDEXCREATE JET_INDEXCREATE_A +#endif + +#if ( JET_VERSION >= 0x0601 ) + +typedef struct tagJET_INDEXCREATE2_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szIndexName; // index name + JET_PSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + + union + { + JET_LCID lcid; // lcid for the index (if JET_bitIndexUnicode NOT specified) + JET_UNICODEINDEX * pidxunicode; // pointer to JET_UNICODEINDEX struct (if JET_bitIndexUnicode specified) + }; + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) + }; + + JET_CONDITIONALCOLUMN_A * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) + JET_SPACEHINTS * pSpacehints; // space allocation, maintenance, and usage hints +} JET_INDEXCREATE2_A; + +typedef struct tagJET_INDEXCREATE2_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szIndexName; // index name + JET_PWSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + + union + { + JET_LCID lcid; // lcid for the index (if JET_bitIndexUnicode NOT specified) + JET_UNICODEINDEX * pidxunicode; // pointer to JET_UNICODEINDEX struct (if JET_bitIndexUnicode specified) + }; + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) + }; + + JET_CONDITIONALCOLUMN_W * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) + JET_SPACEHINTS * pSpacehints; // space allocation, maintenance, and usage hints +} JET_INDEXCREATE2_W; + +#ifdef JET_UNICODE +#define JET_INDEXCREATE2 JET_INDEXCREATE2_W +#else +#define JET_INDEXCREATE2 JET_INDEXCREATE2_A +#endif +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0602 ) + +typedef struct tagJET_INDEXCREATE3_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szIndexName; // index name + JET_PSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + JET_UNICODEINDEX2 * pidxunicode; // pointer to JET_UNICODEINDEX2 struct (if JET_bitIndexUnicode specified) + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) + }; + + JET_CONDITIONALCOLUMN_A * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) + JET_SPACEHINTS * pSpacehints; // space allocation, maintenance, and usage hints +} JET_INDEXCREATE3_A; + +typedef struct tagJET_INDEXCREATE3_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szIndexName; // index name + JET_PWSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + JET_UNICODEINDEX2 * pidxunicode; // pointer to JET_UNICODEINDEX2 struct (if JET_bitIndexUnicode specified) + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) + }; + + JET_CONDITIONALCOLUMN_W * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) + JET_SPACEHINTS * pSpacehints; // space allocation, maintenance, and usage hints +} JET_INDEXCREATE3_W; + +#ifdef JET_UNICODE +#define JET_INDEXCREATE3 JET_INDEXCREATE3_W +#else +#define JET_INDEXCREATE3 JET_INDEXCREATE3_A +#endif +#endif // JET_VERSION >= 0x0602 + +// +// Table Creation Structures +// + +typedef struct tagJET_TABLECREATE_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szTableName; // name of table to create. + JET_PSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_A * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE_A * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_GRBIT grbit; + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes). +} JET_TABLECREATE_A; + +typedef struct tagJET_TABLECREATE_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szTableName; // name of table to create. + JET_PWSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_W * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE_W * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_GRBIT grbit; + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes). +} JET_TABLECREATE_W; + +#ifdef JET_UNICODE +#define JET_TABLECREATE JET_TABLECREATE_W +#else +#define JET_TABLECREATE JET_TABLECREATE_A +#endif + +#if ( JET_VERSION >= 0x0501 ) +typedef struct tagJET_TABLECREATE2_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szTableName; // name of table to create. + JET_PSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_A * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE_A * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE2_A; + +typedef struct tagJET_TABLECREATE2_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szTableName; // name of table to create. + JET_PWSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_W * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE_W * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PWSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE2_W; + +#ifdef JET_UNICODE +#define JET_TABLECREATE2 JET_TABLECREATE2_W +#else +#define JET_TABLECREATE2 JET_TABLECREATE2_A +#endif + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION >= 0x0601 ) +typedef struct tagJET_TABLECREATE3_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szTableName; // name of table to create. + JET_PSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_A * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE2_A * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_SPACEHINTS * pSeqSpacehints; // space allocation, maintenance, and usage hints for default sequential index + JET_SPACEHINTS * pLVSpacehints; // space allocation, maintenance, and usage hints for Separated LV tree. + JET_UINT32 cbSeparateLV; // heuristic size to separate a intrinsic LV from the primary record + + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE3_A; + +typedef struct tagJET_TABLECREATE3_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szTableName; // name of table to create. + JET_PWSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_W * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE2_W * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PWSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_SPACEHINTS * pSeqSpacehints; // space allocation, maintenance, and usage hints for default sequential index + JET_SPACEHINTS * pLVSpacehints; // space allocation, maintenance, and usage hints for Separated LV tree. + JET_UINT32 cbSeparateLV; // heuristic size to separate a intrinsic LV from the primary record + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE3_W; + +#ifdef JET_UNICODE +#define JET_TABLECREATE3 JET_TABLECREATE3_W +#else +#define JET_TABLECREATE3 JET_TABLECREATE3_A +#endif + +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0602 ) +typedef struct tagJET_TABLECREATE4_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szTableName; // name of table to create. + JET_PSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_A * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE3_A * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_SPACEHINTS * pSeqSpacehints; // space allocation, maintenance, and usage hints for default sequential index + JET_SPACEHINTS * pLVSpacehints; // space allocation, maintenance, and usage hints for Separated LV tree. + JET_UINT32 cbSeparateLV; // heuristic size to separate a intrinsic LV from the primary record + + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE4_A; + +typedef struct tagJET_TABLECREATE4_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szTableName; // name of table to create. + JET_PWSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_W * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE3_W * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PWSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_SPACEHINTS * pSeqSpacehints; // space allocation, maintenance, and usage hints for default sequential index + JET_SPACEHINTS * pLVSpacehints; // space allocation, maintenance, and usage hints for Separated LV tree. + JET_UINT32 cbSeparateLV; // heuristic size to separate a intrinsic LV from the primary record + + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE4_W; + +#ifdef JET_UNICODE +#define JET_TABLECREATE4 JET_TABLECREATE4_W +#else +#define JET_TABLECREATE4 JET_TABLECREATE4_A +#endif + +#endif // JET_VERSION >= 0x0602 + + +#if ( JET_VERSION >= 0x0600 ) +typedef struct tagJET_OPENTEMPORARYTABLE +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + const JET_COLUMNDEF * prgcolumndef; + JET_UINT32 ccolumn; + JET_UNICODEINDEX * pidxunicode; + JET_GRBIT grbit; + JET_COLUMNID * prgcolumnid; + JET_UINT32 cbKeyMost; + JET_UINT32 cbVarSegMac; + JET_TABLEID tableid; +} JET_OPENTEMPORARYTABLE; +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0602 ) +typedef struct tagJET_OPENTEMPORARYTABLE2 +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + const JET_COLUMNDEF * prgcolumndef; + JET_UINT32 ccolumn; + JET_UNICODEINDEX2 * pidxunicode; + JET_GRBIT grbit; + JET_COLUMNID * prgcolumnid; + JET_UINT32 cbKeyMost; + JET_UINT32 cbVarSegMac; + JET_TABLEID tableid; +} JET_OPENTEMPORARYTABLE2; +#endif // JET_VERSION >= 0x0602 + +typedef struct +{ + JET_UINT32 cbStruct; + JET_UINT32 ibLongValue; + JET_UINT32 itagSequence; + JET_COLUMNID columnidNextTagged; +} JET_RETINFO; + +typedef struct +{ + JET_UINT32 cbStruct; + JET_UINT32 ibLongValue; + JET_UINT32 itagSequence; +} JET_SETINFO; + +typedef struct +{ + JET_UINT32 cbStruct; + JET_UINT32 centriesLT; + JET_UINT32 centriesInRange; + JET_UINT32 centriesTotal; +} JET_RECPOS; + +// On input to JetGotoPosition, centriesLTDeprecated and centriesTotalDeprecated must be 0. +// On output from JetGetRecordPositon, centriesLTDeprecated and centriesTotalDeprecated +// hold potentially truncated versions of centriesLT and centriesTotal. +typedef struct +{ + JET_UINT32 cbStruct; + JET_UINT32 centriesLTDeprecated; + JET_UINT32 centriesInRangeDeprecated; + JET_UINT32 centriesTotalDeprecated; + JET_UINT64 centriesLT; + JET_UINT64 centriesTotal; +} JET_RECPOS2; + +typedef struct +{ + JET_UINT32 cbStruct; + JET_TABLEID tableid; + JET_UINT32 cRecord; + JET_COLUMNID columnidBookmark; +} JET_RECORDLIST; + +typedef struct +{ + JET_UINT32 cbStruct; + JET_TABLEID tableid; + JET_GRBIT grbit; +} JET_INDEXRANGE; + +#if ( JET_VERSION >= 0x0602 ) +typedef enum +{ + // can be used for index (JetPrereadIndexRanges) or residual predicate (JetSetCursorFilter) + JET_relopEquals = 0, + JET_relopPrefixEquals, + + // can only be used for residual predicate (JetSetCursorFilter) + JET_relopNotEquals, + JET_relopLessThanOrEqual, + JET_relopLessThan, + JET_relopGreaterThanOrEqual, + JET_relopGreaterThan, + JET_relopBitmaskEqualsZero, + JET_relopBitmaskNotEqualsZero, +} JET_RELOP; + +typedef struct +{ + JET_COLUMNID columnid; // columnid of the column + JET_RELOP relop; // relational operator + JET_PVOID pv; // pointer to the value to use + JET_UINT32 cb; // size of the value to use + JET_GRBIT grbit; // optional grbits +} JET_INDEX_COLUMN; + +typedef struct +{ + JET_INDEX_COLUMN * rgStartColumns; + JET_UINT32 cStartColumns; + JET_INDEX_COLUMN * rgEndColumns; + JET_UINT32 cEndColumns; +} JET_INDEX_RANGE; +#endif // JET_VERSION >= 0x0602 + + + +#pragma pack(push,1) +#define JET_MAX_COMPUTERNAME_LENGTH 15 + +typedef struct +{ + JET_INT8 bSeconds; // 0 - 59 + JET_INT8 bMinutes; // 0 - 59 + JET_INT8 bHours; // 0 - 23 + JET_INT8 bDay; // 1 - 31 + JET_INT8 bMonth; // 1 - 12 + JET_INT8 bYear; // current year - 1900 + union + { + JET_BYTE bFiller1; + struct + { + JET_BYTE fTimeIsUTC:1; + JET_BYTE bMillisecondsLow:7; + }; + }; + union + { + JET_BYTE bFiller2; + struct + { + JET_BYTE fReserved:1; + JET_BYTE bMillisecondsHigh:3; + JET_BYTE fUnused:4; + }; + }; +} JET_LOGTIME; + +#if ( JET_VERSION >= 0x0600 ) +// the JET_BKLOGTIME is an extention of JET_LOGTIME to be used +// in the JET_BKINFO structure. They should have the same size for +// compatibility reasons +typedef struct +{ + JET_INT8 bSeconds; // 0 - 59 + JET_INT8 bMinutes; // 0 - 59 + JET_INT8 bHours; // 0 - 23 + JET_INT8 bDay; // 1 - 31 + JET_INT8 bMonth; // 1 - 12 + JET_INT8 bYear; // current year - 1900 + union + { + JET_BYTE bFiller1; + struct + { + JET_BYTE fTimeIsUTC:1; + JET_BYTE bMillisecondsLow:7; + }; + }; + union + { + JET_BYTE bFiller2; + struct + { + JET_BYTE fOSSnapshot:1; + JET_BYTE bMillisecondsHigh:3; + JET_BYTE fReserved:4; + }; + }; +} JET_BKLOGTIME; +#endif // JET_VERSION >= 0x0600 + +typedef struct +{ + JET_UINT16 ib; // must be the last so that lgpos can + JET_UINT16 isec; // index of disksec starting logsec + JET_INT32 lGeneration; // generation of logsec +} JET_LGPOS; // be casted to TIME. + +typedef struct +{ + JET_UINT32 ulRandom; // a random number + JET_LOGTIME logtimeCreate; // time db created, in logtime format + JET_CHAR szComputerName[ JET_MAX_COMPUTERNAME_LENGTH + 1 ]; // where db is created +} JET_SIGNATURE; + +typedef struct +{ + JET_LGPOS lgposMark; // id for this backup + union + { + JET_LOGTIME logtimeMark; +#if ( JET_VERSION >= 0x0600 ) + JET_BKLOGTIME bklogtimeMark; +#endif // JET_VERSION >= 0x0600 + }; + JET_UINT32 genLow; + JET_UINT32 genHigh; +} JET_BKINFO; + +#pragma pack(pop) + +typedef struct +{ + JET_UINT32 ulVersion; // the major (incompatible) version of DAE from the last engine attach/create. + JET_UINT32 ulUpdate; // used to track incremental database format "update (major)" version from the + // last attach/create that is a backward-compatible major update. + JET_SIGNATURE signDb; // (28 bytes) signature of the db (incl. creation time). + JET_UINT32 dbstate; // consistent/inconsistent state + + JET_LGPOS lgposConsistent; // null if in inconsistent state + JET_LOGTIME logtimeConsistent; // null if in inconsistent state + + JET_LOGTIME logtimeAttach; // Last attach time. + JET_LGPOS lgposAttach; + + JET_LOGTIME logtimeDetach; // Last detach time. + JET_LGPOS lgposDetach; + + JET_SIGNATURE signLog; // (28 bytes) log signature for this attachments + + JET_BKINFO bkinfoFullPrev; // Last successful full backup. + + JET_BKINFO bkinfoIncPrev; // Last successful Incremental backup. + // Reset when bkinfoFullPrev is set + JET_BKINFO bkinfoFullCur; // current backup. Succeed if a + // corresponding pat file generated. + JET_UINT32 fShadowingDisabled; + JET_UINT32 fUpgradeDb; + + // NT version information. This is needed to decide if an index need + // be recreated due to sort table changes. + + JET_UINT32 dwMajorVersion; // OS version info + JET_UINT32 dwMinorVersion; + JET_UINT32 dwBuildNumber; + JET_INT32 lSPNumber; + + JET_UINT32 cbPageSize; // database page size (0 = 4k pages) + +} JET_DBINFOMISC; + +#if ( JET_VERSION >= 0x0600 ) +typedef struct +{ + JET_UINT32 ulVersion; // the major (incompatible) version of DAE from the last engine attach/create. + JET_UINT32 ulUpdate; // used to track incremental database format "update (major)" version from the + // last attach/create that is a backward-compatible major update. + JET_SIGNATURE signDb; // (28 bytes) signature of the db (incl. creation time). + JET_UINT32 dbstate; // consistent/inconsistent state + + JET_LGPOS lgposConsistent; // null if in inconsistent state + JET_LOGTIME logtimeConsistent; // null if in inconsistent state + + JET_LOGTIME logtimeAttach; // Last attach time. + JET_LGPOS lgposAttach; + + JET_LOGTIME logtimeDetach; // Last detach time. + JET_LGPOS lgposDetach; + + JET_SIGNATURE signLog; // (28 bytes) log signature for this attachments + + JET_BKINFO bkinfoFullPrev; // Last successful full backup. + + JET_BKINFO bkinfoIncPrev; // Last successful Incremental backup. + // Reset when bkinfoFullPrev is set + JET_BKINFO bkinfoFullCur; // current backup. Succeed if a + // corresponding pat file generated. + JET_UINT32 fShadowingDisabled; + JET_UINT32 fUpgradeDb; + + // NT version information. This is needed to decide if an index need + // be recreated due to sort table changes. + + JET_UINT32 dwMajorVersion; // OS version info + JET_UINT32 dwMinorVersion; + JET_UINT32 dwBuildNumber; + JET_INT32 lSPNumber; + + JET_UINT32 cbPageSize; // database page size (0 = 4k pages) + + // new fields added on top of the above JET_DBINFOMISC + JET_UINT32 genMinRequired; // the minimum log generation required for replaying the logs. Typically the checkpoint generation + JET_UINT32 genMaxRequired; // the maximum log generation required for replaying the logs. + JET_LOGTIME logtimeGenMaxCreate; // creation time of the genMax log file + + JET_UINT32 ulRepairCount; // number of times repair has been called on this database + JET_LOGTIME logtimeRepair; // the date of the last time that repair was run + JET_UINT32 ulRepairCountOld; // number of times ErrREPAIRAttachForRepair has been called on this database before the last defrag + + JET_UINT32 ulECCFixSuccess; // number of times a one bit error was fixed and resulted in a good page + JET_LOGTIME logtimeECCFixSuccess; // the date of the last time that a one bit error was fixed and resulted in a good page + JET_UINT32 ulECCFixSuccessOld; // number of times a one bit error was fixed and resulted in a good page before last repair + + JET_UINT32 ulECCFixFail; // number of times a one bit error was fixed and resulted in a bad page + JET_LOGTIME logtimeECCFixFail; // the date of the last time that a one bit error was fixed and resulted in a bad page + JET_UINT32 ulECCFixFailOld; // number of times a one bit error was fixed and resulted in a bad page before last repair + + JET_UINT32 ulBadChecksum; // number of times a non-correctable ECC/checksum error was found + JET_LOGTIME logtimeBadChecksum; // the date of the last time that a non-correctable ECC/checksum error was found + JET_UINT32 ulBadChecksumOld; // number of times a non-correctable ECC/checksum error was found before last repair + +} JET_DBINFOMISC2; +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0601 ) +typedef struct +{ + JET_UINT32 ulVersion; // the major (incompatible) version of DAE from the last engine attach/create. + JET_UINT32 ulUpdate; // used to track incremental database format "update (major)" version from the + // last attach/create that is a backward-compatible major update. + JET_SIGNATURE signDb; // (28 bytes) signature of the db (incl. creation time). + JET_UINT32 dbstate; // consistent/inconsistent state + + JET_LGPOS lgposConsistent; // null if in inconsistent state + JET_LOGTIME logtimeConsistent; // null if in inconsistent state + + JET_LOGTIME logtimeAttach; // Last attach time. + JET_LGPOS lgposAttach; + + JET_LOGTIME logtimeDetach; // Last detach time. + JET_LGPOS lgposDetach; + + JET_SIGNATURE signLog; // (28 bytes) log signature for this attachments + + JET_BKINFO bkinfoFullPrev; // Last successful full backup. + + JET_BKINFO bkinfoIncPrev; // Last successful Incremental backup. + // Reset when bkinfoFullPrev is set + JET_BKINFO bkinfoFullCur; // current backup. Succeed if a + // corresponding pat file generated. + JET_UINT32 fShadowingDisabled; + JET_UINT32 fUpgradeDb; + + // NT version information. This is needed to decide if an index need + // be recreated due to sort table changes. + + JET_UINT32 dwMajorVersion; // OS version info + JET_UINT32 dwMinorVersion; + JET_UINT32 dwBuildNumber; + JET_INT32 lSPNumber; + + JET_UINT32 cbPageSize; // database page size (0 = 4k pages) + + // new fields added on top of the above JET_DBINFOMISC + JET_UINT32 genMinRequired; // the minimum log generation required for replaying the logs. Typically the checkpoint generation + JET_UINT32 genMaxRequired; // the maximum log generation required for replaying the logs. + JET_LOGTIME logtimeGenMaxCreate; // creation time of the genMax log file + + JET_UINT32 ulRepairCount; // number of times repair has been called on this database + JET_LOGTIME logtimeRepair; // the date of the last time that repair was run + JET_UINT32 ulRepairCountOld; // number of times ErrREPAIRAttachForRepair has been called on this database before the last defrag + + JET_UINT32 ulECCFixSuccess; // number of times a one bit error was fixed and resulted in a good page + JET_LOGTIME logtimeECCFixSuccess; // the date of the last time that a one bit error was fixed and resulted in a good page + JET_UINT32 ulECCFixSuccessOld; // number of times a one bit error was fixed and resulted in a good page before last repair + + JET_UINT32 ulECCFixFail; // number of times a one bit error was fixed and resulted in a bad page + JET_LOGTIME logtimeECCFixFail; // the date of the last time that a one bit error was fixed and resulted in a bad page + JET_UINT32 ulECCFixFailOld; // number of times a one bit error was fixed and resulted in a bad page before last repair + + JET_UINT32 ulBadChecksum; // number of times a non-correctable ECC/checksum error was found + JET_LOGTIME logtimeBadChecksum; // the date of the last time that a non-correctable ECC/checksum error was found + JET_UINT32 ulBadChecksumOld; // number of times a non-correctable ECC/checksum error was found before last repair + + // new fields added on top of the above JET_DBINFOMISC2 + JET_UINT32 genCommitted; // the maximum log generation committed to the database. Typically the current log generation + +} JET_DBINFOMISC3; + +typedef struct +{ + JET_UINT32 ulVersion; // the major (incompatible) version of DAE from the last engine attach/create. + JET_UINT32 ulUpdate; // used to track incremental database format "update (major)" version from the + // last attach/create that is a backward-compatible major update. + JET_SIGNATURE signDb; // (28 bytes) signature of the db (incl. creation time). + JET_UINT32 dbstate; // consistent/inconsistent state + + JET_LGPOS lgposConsistent; // null if in inconsistent state + JET_LOGTIME logtimeConsistent; // null if in inconsistent state + + JET_LOGTIME logtimeAttach; // Last attach time. + JET_LGPOS lgposAttach; + + JET_LOGTIME logtimeDetach; // Last detach time. + JET_LGPOS lgposDetach; + + JET_SIGNATURE signLog; // (28 bytes) log signature for this attachments + + JET_BKINFO bkinfoFullPrev; // Last successful full backup. + + JET_BKINFO bkinfoIncPrev; // Last successful Incremental backup. + // Reset when bkinfoFullPrev is set + JET_BKINFO bkinfoFullCur; // current backup. Succeed if a + // corresponding pat file generated. + JET_UINT32 fShadowingDisabled; + JET_UINT32 fUpgradeDb; + + // NT version information. This is needed to decide if an index need + // be recreated due to sort table changes. + + JET_UINT32 dwMajorVersion; // OS version info + JET_UINT32 dwMinorVersion; + JET_UINT32 dwBuildNumber; + JET_INT32 lSPNumber; + + JET_UINT32 cbPageSize; // database page size (0 = 4k pages) + + // new fields added on top of the above JET_DBINFOMISC + JET_UINT32 genMinRequired; // the minimum log generation required for replaying the logs. Typically the checkpoint generation + JET_UINT32 genMaxRequired; // the maximum log generation required for replaying the logs. + JET_LOGTIME logtimeGenMaxCreate; // creation time of the genMax log file + + JET_UINT32 ulRepairCount; // number of times repair has been called on this database + JET_LOGTIME logtimeRepair; // the date of the last time that repair was run + JET_UINT32 ulRepairCountOld; // number of times ErrREPAIRAttachForRepair has been called on this database before the last defrag + + JET_UINT32 ulECCFixSuccess; // number of times a one bit error was fixed and resulted in a good page + JET_LOGTIME logtimeECCFixSuccess; // the date of the last time that a one bit error was fixed and resulted in a good page + JET_UINT32 ulECCFixSuccessOld; // number of times a one bit error was fixed and resulted in a good page before last repair + + JET_UINT32 ulECCFixFail; // number of times a one bit error was fixed and resulted in a bad page + JET_LOGTIME logtimeECCFixFail; // the date of the last time that a one bit error was fixed and resulted in a bad page + JET_UINT32 ulECCFixFailOld; // number of times a one bit error was fixed and resulted in a bad page before last repair + + JET_UINT32 ulBadChecksum; // number of times a non-correctable ECC/checksum error was found + JET_LOGTIME logtimeBadChecksum; // the date of the last time that a non-correctable ECC/checksum error was found + JET_UINT32 ulBadChecksumOld; // number of times a non-correctable ECC/checksum error was found before last repair + + // new fields added on top of the above JET_DBINFOMISC2 + JET_UINT32 genCommitted; // the maximum log generation committed to the database. Typically the current log generation + + // new fields added on top of the above JET_DBINFOMISC3 + JET_BKINFO bkinfoCopyPrev; // Last successful Copy backup + JET_BKINFO bkinfoDiffPrev; // Last successful Differential backup, reset when bkinfoFullPrev is set +} JET_DBINFOMISC4; +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0600 ) +// JET performance counters accumulated by thread +// +struct JET_THREADSTATS +{ + JET_UINT32 cbStruct; // size of this struct + JET_UINT32 cPageReferenced; // pages referenced + JET_UINT32 cPageRead; // pages read from disk + JET_UINT32 cPagePreread; // pages preread from disk + JET_UINT32 cPageDirtied; // clean pages modified + JET_UINT32 cPageRedirtied; // dirty pages modified + JET_UINT32 cLogRecord; // log records generated + JET_UINT32 cbLogRecord; // log record bytes generated +}; +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0A00 ) +// JET performance counters accumulated by thread +// +struct JET_THREADSTATS2 +{ + JET_UINT32 cbStruct; // size of this struct + JET_UINT32 cPageReferenced; // pages referenced + JET_UINT32 cPageRead; // pages read from disk + JET_UINT32 cPagePreread; // pages preread from disk + JET_UINT32 cPageDirtied; // clean pages modified + JET_UINT32 cPageRedirtied; // dirty pages modified + JET_UINT32 cLogRecord; // log records generated + JET_UINT32 cbLogRecord; // log record bytes generated + JET_UINT64 cusecPageCacheMiss; // page cache miss latency in microseconds + JET_UINT32 cPageCacheMiss; // page cache misses +}; +#endif // JET_VERSION >= 0x0A00 + +#if ( JET_VERSION >= 0x0A01 ) +// JET performance counters accumulated by thread +// +struct JET_THREADSTATS3 +{ + JET_UINT32 cbStruct; // size of this struct + JET_UINT32 cPageReferenced; // pages referenced + JET_UINT32 cPageRead; // pages read from disk + JET_UINT32 cPagePreread; // pages preread from disk + JET_UINT32 cPageDirtied; // clean pages modified + JET_UINT32 cPageRedirtied; // dirty pages modified + JET_UINT32 cLogRecord; // log records generated + JET_UINT32 cbLogRecord; // log record bytes generated + JET_UINT64 cusecPageCacheMiss; // page cache miss latency in microseconds + JET_UINT32 cPageCacheMiss; // page cache misses + JET_UINT32 cSeparatedLongValueRead; // separated LV reads + JET_UINT64 cusecLongValuePageCacheMiss; // page cache miss latency in microseconds while reading separated LV data + JET_UINT32 cLongValuePageCacheMiss; // page cache misses while reading separated LV data +}; +#endif // JET_VERSION >= 0x0A01 + +#if ( JET_VERSION >= 0x0600 ) + +typedef struct +{ + JET_UINT32 cbStruct; + + JET_RSTMAP_A * rgrstmap; + JET_INT32 crstmap; + + JET_LGPOS lgposStop; + JET_LOGTIME logtimeStop; + + JET_PFNSTATUS pfnStatus; +} JET_RSTINFO_A; + +typedef struct +{ + JET_UINT32 cbStruct; + + JET_RSTMAP_W * rgrstmap; + JET_INT32 crstmap; + + JET_LGPOS lgposStop; + JET_LOGTIME logtimeStop; + + JET_PFNSTATUS pfnStatus; +} JET_RSTINFO_W; + +#ifdef JET_UNICODE +#define JET_RSTINFO JET_RSTINFO_W +#else +#define JET_RSTINFO JET_RSTINFO_A +#endif + +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0602 ) + +// JET_errcatError +// | +// |-- JET_errcatOperation +// | |-- JET_errcatFatal +// | |-- JET_errcatIO // bad IO issues, may or may not be transient. +// | |-- JET_errcatResource +// | |-- JET_errcatMemory // out of memory (all variants) +// | |-- JET_errcatQuota +// | |-- JET_errcatDisk // out of disk space (all variants) +// |-- JET_errcatData +// | |-- JET_errcatCorruption +// | |-- JET_errcatInconsistent // typically caused by user Mishandling +// | |-- JET_errcatFragmentation +// |-- JET_errcatApi +// |-- JET_errcatUsage +// |-- JET_errcatState + + +// A brief description of each error type +// +// Operation(al) - Errors that can usually happen any time due to uncontrollable +// conditions. Frequently temporary, but not always. +// +// Recovery: Probably retry, or eventually inform the operator. +// +// Fatal - This sort error happens only when ESE encounters an error condition +// so grave, that we can not continue on in a safe (often transactional) +// way, and rather than corrupt data we throw errors of this category. +// +// Recovery: Restart the instance or process. If the problem persists +// inform the operator. +// +// IO - IO errors come from the OS, and are out of ESE's control, this sort +// of error is possibly temporary, possibly not. +// +// Recovery: Retry. If not resolved, ask operator about disk issue. +// +// Resource - This is a category that indicates one of many potential out-of-resource +// conditions. +// +// Memory Classic out of memory condition. +// +// Recovery: Wait a while and retry, free up memory, or quit. +// +// Quota Certain "specialty" resources are in pools of a certain size, making +// it easier to detect leaks of these resources. +// +// Recovery: Bug fix, generally the application should Assert() on these +// conditions so as to detect these issues during development. However, +// in retail code, the best to hope for is to treat like Memory. +// +// Disk Out of disk conditions. +// +// Recovery: Can retry later in the hope more space is available, or +// ask the operator to free some disk space. +// Data +// +// Corruption My hard drive ate my homework. Classic corruption issues, frequently +// permanent without corrective action. +// +// Recovery: Restore from backup, perhaps the ese utilities repair +// operation (which only salvages what data is left / lossy). Also +// in the case of recovery(JetInit) perhaps recovery can be performed +// by allowing data loss. +// +// Inconsistent This is similar to Corruption in that the database and/or log files +// are in a state that is inconsistent and unreconcilable with each +// other. Often this is caused by application/administrator mishandling. +// +// Recovery: Restore from backup, perhaps the ese utilities repair +// operation (which only salvages what data is left / lossy). Also +// in the case of recovery(JetInit) perhaps recovery can be performed +// by allowing data loss. +// +// Fragmentation This is a class of errors where some persisted internal resource ran +// out. +// +// Recovery: For database errors, offline defragmentation will rectify +// the problem, for the log files _first_ recover all attached databases +// to a clean shutdown, and then delete all the log files and checkpoint. +// +// Api +// +// Usage Classic usage error, this means the client code did not pass correct +// arguments to the JET API. This error will likely not go away with +// retry. +// +// Recovery: Generally speaking client code should Assert() this class +// of errors is not returned, so issues can be caught during development. +// In retail, the app will probably have little option but to return +// the issue up to the operator. +// +// State This is the classification for different signals the API could return +// describe the state of the database, a classic case is JET_errRecordNotFound +// which can be returned by JetSeek() when the record you asked for +// was not found. +// +// Recovery: Not really relevant, depends greatly on the API. +// + +typedef enum +{ + JET_errcatUnknown = 0, // unknown, error retrieving err category + JET_errcatError, // top level (no errors should be of this class) + JET_errcatOperation, + JET_errcatFatal, + JET_errcatIO, // bad IO issues, may or may not be transient. + JET_errcatResource, + JET_errcatMemory, // out of memory (all variants) + JET_errcatQuota, + JET_errcatDisk, // out of disk space (all variants) + JET_errcatData, + JET_errcatCorruption, + JET_errcatInconsistent, + JET_errcatFragmentation, + JET_errcatApi, + JET_errcatUsage, + JET_errcatState, + JET_errcatObsolete, + JET_errcatMax, +} JET_ERRCAT; + +// Output structure for JetGetErrorInfoW(). Not all fields may +// be populated by all error levels. +typedef struct +{ + JET_UINT32 cbStruct; + JET_ERR errValue; // The error value for the requested info level. + JET_ERRCAT errcatMostSpecific; // The most specific category of the error. + JET_BYTE rgCategoricalHierarchy[8]; // Hierarchy of error categories. Position 0 is the highest level in the hierarchy, and the rest are JET_errcatUnknown. + JET_UINT32 lSourceLine; // The source file line for the requested info level. + JET_WCHAR rgszSourceFile[64]; // The source file name for the requested info level. +} JET_ERRINFOBASIC_W; + +// grbits for JET_PFNDURABLECOMMITCALLBACK +#if ( JET_VERSION >= 0x0A00 ) +#define JET_bitDurableCommitCallbackLogUnavailable 0x00000001 // Passed back to durable commit callback to let it know that log is down (and all pending commits will not be flushed to disk) +#endif + +// commit-id from JetCommitTransaction2 +typedef struct +{ + JET_SIGNATURE signLog; + JET_INT32 reserved; // for packing so int64 below is 8-byte aligned on 32-bits despite the pshpack4 above + JET_INT64 commitId; +} JET_COMMIT_ID; + +// assert that commit-id is 8-byte aligned so managed interop works correctly +// static_assert( offsetof( JET_COMMIT_ID, commitId ) % 8 == 0 ); + +// callback for JET_paramDurableCommitCallback +typedef JET_ERR (JET_API * JET_PFNDURABLECOMMITCALLBACK)( + _In_ JET_INSTANCE instance, + _In_ JET_COMMIT_ID * pCommitIdSeen, + _In_ JET_GRBIT grbit ); + +#endif // JET_VERSION >= 0x0602 + +/************************************************************************/ +/************************* JET CONSTANTS ************************/ +/************************************************************************/ + +#if ( JET_VERSION >= 0x0501 ) +#define JET_instanceNil (~(JET_INSTANCE)0) +#endif // JET_VERSION >= 0x0501 +#define JET_sesidNil (~(JET_SESID)0) +#define JET_tableidNil (~(JET_TABLEID)0) +#define JET_bitNil ((JET_GRBIT)0) + + /* Max size of a bookmark */ + +#define JET_cbBookmarkMost 256 +#if ( JET_VERSION >= 0x0601 ) +#define JET_cbBookmarkMostMost JET_cbKeyMostMost +#endif // JET_VERSION >= 0x0601 + + /* Max length of a object/column/index/property name */ + +#ifndef JET_UNICODE +#define JET_cbNameMost 64 +#else +#define JET_cbNameMost 128 +#endif + + /* Max length of a "name.name.name..." construct */ + +#ifndef JET_UNICODE +#define JET_cbFullNameMost 255 +#else +#define JET_cbFullNameMost 510 +#endif + + /* Max size of long-value (LongBinary or LongText) column chunk */ + +// #define JET_cbColumnLVChunkMost ( JET_cbPage - 82 ) to the following: +// Get cbPage from GetSystemParameter. +// changed JET_cbColumnLVChunkMost reference to cbPage - JET_cbColumnLVPageOverhead + +#define JET_cbColumnLVPageOverhead 82 // ONLY for small (<=8kiB) page, otherwise, query JET_paramLVChunkSizeMost + + + /* Max size of long-value (LongBinary or LongText) column default value */ + +#define JET_cbLVDefaultValueMost 255 + + /* Max size of non-long-value column data */ + +#define JET_cbColumnMost 255 + + /* Max size of long-value column data. */ + +#define JET_cbLVColumnMost 0x7FFFFFFF + + /* Max size of a sort/index key */ + +#if ( JET_VERSION >= 0x0601 ) +#define JET_cbKeyMostMost JET_cbKeyMost32KBytePage +#define JET_cbKeyMost32KBytePage JET_cbKeyMost8KBytePage +#define JET_cbKeyMost16KBytePage JET_cbKeyMost8KBytePage +#endif // JET_VERSION >= 0x0601 +#if ( JET_VERSION >= 0x0600 ) +#define JET_cbKeyMost8KBytePage 2000 +#define JET_cbKeyMost4KBytePage 1000 +#define JET_cbKeyMost2KBytePage 500 +#define JET_cbKeyMostMin 255 +#endif // JET_VERSION >= 0x0600 + +#define JET_cbKeyMost 255 // defunct constant retained for backward compatibility +#define JET_cbLimitKeyMost 256 // defunct constant retained for backward compatibility +#define JET_cbPrimaryKeyMost 255 // defunct constant retained for backward compatibility +#define JET_cbSecondaryKeyMost 255 // defunct constant retained for backward compatibility + + + /* Max number of components in a sort/index key */ + +#if ( JET_VERSION >= 0x0600 ) +#define JET_ccolKeyMost 16 +#else // !JET_VERSION >= 0x0600 +#define JET_ccolKeyMost 12 +#endif // !JET_VERSION >= 0x0600 + +// maximum number of columns +#if ( JET_VERSION >= 0x0501 ) +#define JET_ccolMost 0x0000fee0 +#else // !JET_VERSION >= 0x0501 +#define JET_ccolMost 0x00007ffe +#endif // !JET_VERSION >= 0x0501 +#define JET_ccolFixedMost 0x0000007f +#define JET_ccolVarMost 0x00000080 +#define JET_ccolTaggedMost ( JET_ccolMost - 0x000000ff ) + +#if ( JET_VERSION >= 0x0501 ) +#define JET_EventLoggingDisable 0 +#if ( JET_VERSION >= 0x0601 ) +#define JET_EventLoggingLevelMin 1 +#define JET_EventLoggingLevelLow 25 +#define JET_EventLoggingLevelMedium 50 +#define JET_EventLoggingLevelHigh 75 +#endif // JET_VERSION >= 0x0601 +#define JET_EventLoggingLevelMax 100 +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0603 ) +// Values for JET_paramEnableIndexChecking. +typedef enum +{ + JET_IndexCheckingOff = 0, + JET_IndexCheckingOn = 1, + JET_IndexCheckingDeferToOpenTable = 2, + JET_IndexCheckingMax = 3, +} JET_INDEXCHECKING; +#endif + +// The following values are bit-fields that JET_paramIOPriority can be set to +#if ( JET_VERSION >= 0x0600 ) +// Values for JET_paramIOPriority +#define JET_IOPriorityNormal 0x0 // default +#define JET_IOPriorityLow 0x1 +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0602 ) +// Values for usage with JET_paramConfiguration +// +// Can set the optimization configs one at a time. +// +#define JET_configDefault 0x0001 // Resets ALL parameters to their default value +#define JET_configRemoveQuotas 0x0002 // Unrestricts the quota enforcement (by setting to as high as possible) for any ESE handle types where memory is not pre-allocated or used as a cache. +#define JET_configLowDiskFootprint 0x0004 // Set appropriate parameters to optimize the engine to use a small amount of disk space. Uses circular logging. +#define JET_configMediumDiskFootprint 0x0008 // Set appropriate parameters to optimize the engine to use a medium amount of disk space. Uses circular logging. +#define JET_configLowMemory 0x0010 // Set appropriate parameters to optimize the engine to use a small amount of memory/working set at the cost of CPU efficiency and some disk efficiency. +#define JET_configDynamicMediumMemory 0x0020 // Set appropriate parameters to optimize the engine to use a modest amount of memory/working set at the cost of CPU efficiency, dynamically adjusting for bursts in activity. +#define JET_configLowPower 0x0040 // Set appropriate parameters to optimize the engine to attempt to conserve power over keeping everything the most up to date, or memory usage. +#define JET_configSSDProfileIO 0x0080 // Set appropriate parameters to optimize the engine to be using the SSD profile IO parameters. +#define JET_configRunSilent 0x0100 // Turns off all externally visible signs of the library running (event logs, perfmon, tracing, etc). NOTE: This makes debugging issues difficult, best if app policy has way to configure this off or on. +#if ( JET_VERSION >= 0x0A00 ) +#define JET_configUnthrottledMemory 0x0200 // Allows ESE to grow to most of memory because this is likely a single purpose server for this machine, or wants to allow our variable memory caches to grow to use most of memory if in use. +#define JET_configHighConcurrencyScaling 0x0400 // Ensures ESE uses all its high concurrency scaling methods to achieve high levels of performance on multi-CPU systems (SMP, Multi-Core, Hyper-Threading, etc) for server scale applications, at a higher fixed memory overhead. +#endif // JET_VERSION >= 0x0A00 + +#endif // JET_VERSION >= 0x0602 + +// system parameters +// +// NOTE: the default values of these parameters used to be documented here. +// this can no longer be done because we now support multiple sets of default +// values as set by JET_paramConfiguration +// +// location parameters +// +#define JET_paramSystemPath 0 // path to check point file +#define JET_paramTempPath 1 // path to the temporary database +#define JET_paramLogFilePath 2 // path to the log file directory +#define JET_paramBaseName 3 // base name for all DBMS object names +#define JET_paramEventSource 4 // language independent process descriptor string + +// performance parameters +// +#define JET_paramMaxSessions 5 // maximum number of sessions +#define JET_paramMaxOpenTables 6 // maximum number of open directories + // need 1 for each open table index, + // plus 1 for each open table with no indexes, + // plus 1 for each table with long column data, + // plus a few more. + // for 4.1, 1/3 for regular table, 2/3 for index +#define JET_paramPreferredMaxOpenTables 7 // preferred maximum number of open directories +#if ( JET_VERSION >= 0x0600 ) +#define JET_paramCachedClosedTables 125 // number of closed tables to cache the meta-data for +#endif // JET_VERSION >= 0x0600 +#define JET_paramMaxCursors 8 // maximum number of open cursors +#define JET_paramMaxVerPages 9 // maximum version store size in version pages +#define JET_paramPreferredVerPages 63 // preferred version store size in version pages +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramGlobalMinVerPages 81 // minimum version store size for all instances in version pages +#define JET_paramVersionStoreTaskQueueMax 105 // maximum number of tasks in the task queue before start dropping the tasks +#endif // JET_VERSION >= 0x0501 +#define JET_paramMaxTemporaryTables 10 // maximum concurrent open temporary table/index creation +#define JET_paramLogFileSize 11 // log file size in kBytes +#define JET_paramLogBuffers 12 // log buffers in 512 byte units. +#define JET_paramWaitLogFlush 13 // log flush wait time in milliseconds +#define JET_paramLogCheckpointPeriod 14 // checkpoint period in sectors +#define JET_paramLogWaitingUserMax 15 // maximum sessions waiting log flush +#define JET_paramCommitDefault 16 // default grbit for JetCommitTransaction +#define JET_paramCircularLog 17 // boolean flag for circular logging +#define JET_paramDbExtensionSize 18 // database extension size in pages +#define JET_paramPageTempDBMin 19 // minimum size temporary database in pages +#define JET_paramPageFragment 20 // maximum disk extent considered fragment in pages +#if ( JET_VERSION >= 0x0600 ) +#define JET_paramEnableFileCache 126 // enable the use of the OS file cache for all managed files +#define JET_paramVerPageSize 128 // the version store page size +#define JET_paramConfiguration 129 // RESETs all parameters to their default for a given configuration +#define JET_paramEnableAdvanced 130 // enables the modification of advanced settings +#define JET_paramMaxColtyp 131 // maximum coltyp supported by this version of ESE +#endif // JET_VERSION >= 0x0600 + +// cache performance parameters +// +#define JET_paramBatchIOBufferMax 22 // maximum batch I/O buffers in pages +#define JET_paramCacheSize 41 // current cache size in pages +#define JET_paramCacheSizeMin 60 // minimum cache size in pages +#define JET_paramCacheSizeMax 23 // maximum cache size in pages +#define JET_paramCheckpointDepthMax 24 // maximum checkpoint depth in bytes +#define JET_paramLRUKCorrInterval 25 // time (usec) under which page accesses are correlated +#define JET_paramLRUKHistoryMax 26 // maximum LRUK history records +#define JET_paramLRUKPolicy 27 // K-ness of LRUK page eviction algorithm (1...2) +#define JET_paramLRUKTimeout 28 // time (sec) after which cached pages are always evictable +#define JET_paramLRUKTrxCorrInterval 29 // Not Used: time (usec) under which page accesses by the same transaction are correlated +#define JET_paramOutstandingIOMax 30 // maximum outstanding I/Os +#define JET_paramStartFlushThreshold 31 // evictable pages at which to start a flush (proportional to CacheSizeMax) +#define JET_paramStopFlushThreshold 32 // evictable pages at which to stop a flush (proportional to CacheSizeMax) +#if ( JET_VERSION >= 0x0600 ) +#define JET_paramEnableViewCache 127 // enable the use of memory mapped file I/O for database files +#define JET_paramCheckpointIOMax 135 // maxiumum number of pending flush writes +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0600 ) +// TableClass names +#define JET_paramTableClass1Name 137 // name of tableclass1 +#define JET_paramTableClass2Name 138 // name of tableclass2 +#define JET_paramTableClass3Name 139 // name of tableclass3 +#define JET_paramTableClass4Name 140 // name of tableclass4 +#define JET_paramTableClass5Name 141 // name of tableclass5 +#define JET_paramTableClass6Name 142 // name of tableclass6 +#define JET_paramTableClass7Name 143 // name of tableclass7 +#define JET_paramTableClass8Name 144 // name of tableclass8 +#define JET_paramTableClass9Name 145 // name of tableclass9 +#define JET_paramTableClass10Name 146 // name of tableclass10 +#define JET_paramTableClass11Name 147 // name of tableclass11 +#define JET_paramTableClass12Name 148 // name of tableclass12 +#define JET_paramTableClass13Name 149 // name of tableclass13 +#define JET_paramTableClass14Name 150 // name of tableclass14 +#define JET_paramTableClass15Name 151 // name of tableclass15 +#endif // JET_VERSION >= 0x0600 + + +#define JET_paramIOPriority 152 // adjust IO priority per instance, anytime. Mainly for background recovery + // Doesn't affect pending IOs, just subsequent ones + +#define JET_paramRecovery 34 // enable recovery via setting the string "On" or "Off" +#define JET_paramEnableOnlineDefrag 35 // enable online defrag + +// Application specific parameter +// +#define JET_paramCheckFormatWhenOpenFail 44 // JetInit may return JET_errDatabaseXXXformat instead of database corrupt when it is set +#define JET_paramEnableTempTableVersioning 46 // Enable versioning of temp tables +#define JET_paramIgnoreLogVersion 47 // Do not check the log version +#define JET_paramDeleteOldLogs 48 // Delete the log files if the version is old, after deleting may make database non-recoverable +#define JET_paramEventSourceKey 49 // Event source registration key value +#define JET_paramNoInformationEvent 50 // Disable logging information event +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramEventLoggingLevel 51 // Set the type of information that goes to event log +#define JET_paramDeleteOutOfRangeLogs 52 // Delete the log files that are not matching (generation wise) during soft recovery +#define JET_paramAccessDeniedRetryPeriod 53 // Number of milliseconds to retry when about to fail with AccessDenied +#endif // JET_VERSION >= 0x0501 + +// Index-checking parameters +// +// After Windows 7, it was discovered that JET_paramEnableIndexCleanup had some implementation limitations, reducing its effectiveness. +// Rather than update it to work with locale names, the functionality is removed altogether. +// +// Unfortunately JET_paramEnableIndexCleanup can not be ignored altogether. JET_paramEnableIndexChecking defaults to false, so if +// JET_paramEnableIndexCleanup were to be removed entirely, then by default there were would be no checks for NLS changes! +// +// The current behavious (when enabled) is to track the language sort versions for the indices, and when the sort version for that +// particular locale changes, the engine knows which indices are now invalid. For example, if the sort version for only "de-de" changes, +// then the "de-de" indices are invalid, but the "en-us" indices will be fine. +// +// Post-Windows 8: +// JET_paramEnableIndexChecking accepts JET_INDEXCHECKING (which is an enum). The values of '0' and '1' have the same meaning as before, +// but '2' is JET_IndexCheckingDeferToOpenTable, which means that the NLS up-to-date-ness is NOT checked when the database is attached. +// It is deferred to JetOpenTable(), which may now fail with JET_errPrimaryIndexCorrupted or JET_errSecondaryIndexCorrupted (which +// are NOT actual corruptions, but instead reflect an NLS sort change). +// +// IN SUMMARY: +// New code should explicitly set both IndexChecking and IndexCleanup to the same value. +// +// +// OLDER NOTES (up to and including Windows 7) +// +// Different versions of windows normalize unicode text in different ways. That means indexes built under one version of Windows may +// not work on other versions. Windows Server 2003 Beta 3 introduced GetNLSVersion() which can be used to determine the version of unicode normalization +// that the OS currently provides. Indexes built in server 2003 are flagged with the version of unicode normalization that they were +// built with (older indexes have no version information). Most unicode normalization changes consist of adding new characters -- codepoints +// which were previously undefined are defined and normalize differently. Thus, if binary data is stored in a unicode column it will normalize +// differently as new codepoints are defined. +// +// As of Windows Server 2003 RC1 ESENT tracks unicode index entries that contain undefined codepoints. These can be used to fixup an index when the +// set of defined unicode characters changes. +// +// These parameters control what happens when ESENT attaches to a database that was last used under a different build of the OS (the OS version +// is stamped in the database header). +// +// If JET_paramEnableIndexChecking is TRUE JetAttachDatabase() will delete indexes if JET_bitDbDeleteCorruptIndexes or return an error if +// the grbit was not specified and there are indexes which need deletion. If it is set to FALSE then JetAttachDatabase() will succeed, even +// if there are potentially corrupt indexes. +// +// If JET_paramEnableIndexCleanup is set, the internal fixup table will be used to fixup index entries. This may not fixup all index corruptions +// but will be transparent to the application. +// + +#define JET_paramEnableIndexChecking 45 // Enable checking OS version for indexes (false by default). +#if ( JET_VERSION >= 0x0502 ) +#define JET_paramEnableIndexCleanup 54 // Enable cleanup of out-of-date index entries (Windows 2003 through Windows 7); Does NLS version checking (Windows 2003 and later). +#endif // JET_VERSION >= 0x0502 + + +// 60 // JET_paramCacheSizeMin defined above +// 63 // JET_paramPreferredVerPages defined above +#define JET_paramDatabasePageSize 64 // set database page size +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramDisableCallbacks 65 // turn off callback resolution (for defrag/repair) +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramLogFileCreateAsynch 69 // prepares next log file while logging to the current one to smooth response time +#endif // JET_VERSION >= 0x0501 +#define JET_paramErrorToString 70 // turns a JET_err into a string (taken from the comment in jet.h) +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramZeroDatabaseDuringBackup 71 // Overwrite deleted records/LVs during backup +#endif // JET_VERSION >= 0x0501 +#define JET_paramUnicodeIndexDefault 72 // default LCMapString() lcid and flags to use for CreateIndex() and unique multi-values check + // (pass pointer to JET_UNICODEINDEX structure for plParam and sizeof(JET_UNICODE_INDEX) for cbMax) +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramRuntimeCallback 73 // pointer to runtime-only callback function +#endif // JET_VERSION >= 0x0501 +#define JET_paramCleanupMismatchedLogFiles 77 // instead of erroring out after a successful recovery with JET_errLogFileSizeMismatchDatabasesConsistent, ESE will silently delete the old log files and checkpoint file and continue operations +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramRecordUpgradeDirtyLevel 78 // how aggresively should pages with their record format converted be flushed (0-3) +// 81 // JET_paramGlobalMinVerPages defined above +#define JET_paramOSSnapshotTimeout 82 // timeout for the freeze period in msec +#endif // JET_VERSION >= 0x0501 + +#define JET_paramExceptionAction 98 // what to do with exceptions generated within JET +#define JET_paramEventLogCache 99 // number of bytes of eventlog records to cache if service is not available + +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramCreatePathIfNotExist 100 // create system/temp/log/log-failover paths if they do not exist +#define JET_paramPageHintCacheSize 101 // maximum size of the fast page latch hint cache in bytes +#define JET_paramOneDatabasePerSession 102 // allow just one open user database per session +#define JET_paramMaxInstances 104 // maximum number of instances per process +#define JET_paramDisablePerfmon 107 // disable perfmon support for this process + +#define JET_paramIndexTuplesLengthMin 110 // for tuple indexes, minimum length of a tuple +#define JET_paramIndexTuplesLengthMax 111 // for tuple indexes, maximum length of a tuple +#define JET_paramIndexTuplesToIndexMax 112 // for tuple indexes, maximum number of characters in a given string to index +#endif // JET_VERSION >= 0x0501 + +// Parameters added in Windows 2003/XP64. +#if ( JET_VERSION >= 0x0502 ) +#define JET_paramAlternateDatabaseRecoveryPath 113 // recovery-only - search for dirty-shutdown databases in specified location only +#endif // JET_VERSION >= 0x0502 + + +// Parameters added in Windows Vista. +#if ( JET_VERSION >= 0x0600 ) +#define JET_paramIndexTupleIncrement 132 // for tuple indexes, offset increment for each succesive tuple +#define JET_paramIndexTupleStart 133 // for tuple indexes, offset to start tuple indexing +#define JET_paramKeyMost 134 // read only maximum settable key length before key trunctation occurs +#define JET_paramLegacyFileNames 136 // Legacy file name characteristics to preserve ( JET_bitESE98FileNames | JET_bitEightDotThreeSoftCompat ) +#define JET_paramEnablePersistedCallbacks 156 // allow the database engine to resolve and use callbacks persisted in a database +#endif // JET_VERSION >= 0x0600 + +// Parameters added in Windows 7. +#if ( JET_VERSION >= 0x0601 ) +#define JET_paramWaypointLatency 153 // The latency (in logs) behind the tip / highest committed log to defer database page flushes. +#define JET_paramDefragmentSequentialBTrees 160 // Turn on/off automatic sequential B-tree defragmentation tasks (On by default, but also requires JET_SPACEHINTS flags / JET_bitRetrieveHintTableScan* to trigger on any given tables). +#define JET_paramDefragmentSequentialBTreesDensityCheckFrequency 161 // Determine how frequently B-tree density is checked +#define JET_paramIOThrottlingTimeQuanta 162 // Max time (in MS) that the I/O throttling mechanism gives a task to run for it to be considered 'completed'. +#define JET_paramLVChunkSizeMost 163 // Max LV chunk size supported wrt the chosen page size (R/O) +#define JET_paramMaxCoalesceReadSize 164 // Max number of bytes that can be grouped for a coalesced read operation. +#define JET_paramMaxCoalesceWriteSize 165 // Max number of bytes that can be grouped for a coalesced write operation. +#define JET_paramMaxCoalesceReadGapSize 166 // Max number of bytes that can be gapped for a coalesced read IO operation. +#define JET_paramMaxCoalesceWriteGapSize 167 // Max number of bytes that can be gapped for a coalesced write IO operation. +#define JET_paramEnableDBScanInRecovery 169 // Do checksumming of the database during recovery. +#define JET_paramDbScanThrottle 170 // throttle (mSec). +#define JET_paramDbScanIntervalMinSec 171 // Min internal to repeat checksumming (Sec). +#define JET_paramDbScanIntervalMaxSec 172 // Max internal checksumming must finish (Sec). +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0602 ) + +#define JET_paramCachePriority 177 // Per-instance property for relative cache priorities (default = 100). + // + // There are three scopes for which cache priority may be assigned: + // + // - Instance: by calling JetSetSystemParameter and setting JET_paramCachePriority for a specific + // ESE instance. The cache priority for this scope is always defined (default is 100), + // even if the client does not set the priority explicitly using the system parameter. + // - Session: by calling JetSetSessionParameter and setting JET_sesparamCachePriority for a specific + // ESE session. The cache priority for this scope is undefined by default. + // - Database: by calling JetCreateDatabase3 (or above) or JetAttachDatabase3 (or above) and setting + // JET_dbparamCachePriority for a specific new or attached database. The cache priority + // for this scope is undefined by default. + // + // The way cache priority for those three scopes interact is as follows: + // - If only the priority for the instance scope is defined, it is used for all operations related + // to that instance. + // - If only the priorities for the instance and session scopes are defined, the session scope priority + // is used for all operations related to that session. + // - If only the priorities for the instance and database scopes are defined, the database scope priority + // is used for all operations related to that database. + // - If the priorities for all three scopes are defined, the lowest of session and database scope + // priorities is used for all operations related to that session/database combination. For everything + // else, the rules above apply on a per-database-page basis. + +#define JET_paramMaxTransactionSize 178 // Percentage of version store that can be used by oldest transaction before JET_errVersionStoreOutOfMemory (default = 100). +#define JET_paramPrereadIOMax 179 // Maximum number of I/O operations dispatched for a given purpose. +#define JET_paramEnableDBScanSerialization 180 // Database Maintenance serialization is enabled for databases sharing the same disk. +#define JET_paramHungIOThreshold 181 // The threshold for what is considered a hung IO that should be acted upon. +#define JET_paramHungIOActions 182 // A set of actions to be taken on IOs that appear hung. +#define JET_paramMinDataForXpress 183 // Smallest amount of data that should be compressed with xpress compression. +#endif // JET_VERSION >= 0x0602 + +#if ( JET_VERSION >= 0x0603 ) +#define JET_paramEnableShrinkDatabase 184 // Release space back to the OS when deleting data. This may require an OS feature of Sparse Files, and is subject to change. + +#endif // JET_VERSION >= 0x0603 + +// Parameters added in Windows 8. +#if ( JET_VERSION >= 0x0602 ) +#define JET_paramProcessFriendlyName 186 // Friendly name for this instance of the process (e.g. performance counter global instance name, event logs). +#define JET_paramDurableCommitCallback 187 // callback for when log is flushed +#endif // JET_VERSION >= 0x0602 + +// Parameters added in Windows 8.1. +#if ( JET_VERSION >= 0x0603 ) +#define JET_paramEnableSqm 188 // Deprecated / ignored param. +#endif // JET_VERSION >= 0x0603 + +// Parameters added in Windows 10. +#if ( JET_VERSION >= 0x0A00 ) + +#define JET_paramConfigStoreSpec 189 // Custom path that allows the consumer to specify a path (currently from in the registry) from which to pull custom ESE configuration. + + +#endif // JET_VERSION >= 0x0A00 + +#define JET_paramEngineFormatVersion 194 // Engine format version - specifies the maximum format version the engine should allow, ensuring no format features are used beyond this (allowing the DB / logs to be forward compatible). +#if ( JET_VERSION >= 0x0A01 ) +#define JET_paramUseFlushForWriteDurability 214 // This controls whether ESE uses Flush or FUA to make sure a write to disk is durable. + +#define JET_paramEnableRBS 215 // Turns on revert snapshot. Not an ESE flight as we will let the variant be controlled outside ESE (like HA can enable this when lag is disabled) +#define JET_paramRBSFilePath 216 // path to the revert snapshot directory + +#define JET_paramPerfmonRefreshInterval 217 // Interval, in units of msec, used by the Permormance Monitor to refresh values for collection. + +#define JET_paramEnableBlockCache 218 // Indicates that the ESE Block Cache is enabled. This is sufficient to access files previously attached to the ESE Block Cache but not to attach new files. + +#endif // JET_VERSION >= 0x0A01 + +#define JET_paramTraceFlags 223 // Specific flags to include in IO traces indicating various info +#define JET_paramMaxValueInvalid 232 // This is not a valid parameter. It can change from release to release! + + + +// Session parameters +// +// JET_sesparamBase 4096 // All JET_sesparams designed to be distinct from system / JET_params and JET_dbparams for code defense. + +#define JET_sesparamCommitDefault 4097 // Default grbit for JetCommitTransaction +#if ( JET_VERSION >= 0x0A00 ) +#define JET_sesparamTransactionLevel 4099 // Retrieves (read-only, no set) the current number of nested levels of transactions begun. 0 = not in a transaction. +#define JET_sesparamOperationContext 4100 // a client context that the engine uses to track and trace operations (such as IOs) +#define JET_sesparamCorrelationID 4101 // an ID that is logged in traces and can be used by clients to correlate ESE actions with their activity +#define JET_sesparamMaxValueInvalid 4111 // This is not a valid session parameter. It can change from release to release! + +typedef struct +{ + JET_UINT32 ulUserID; + JET_BYTE nOperationID; + JET_BYTE nOperationType; + JET_BYTE nClientType; + JET_BYTE fFlags; +} JET_OPERATIONCONTEXT; +#endif // JET_VERSION >= 0x0A00 + +#if ( JET_VERSION >= 0x0600 ) + + /* Flags for JET_paramLegacyFileNames */ + +#define JET_bitESE98FileNames 0x00000001 // Preserve the .log and .chk extension for compatibility reasons (i.e. Exchange) +#define JET_bitEightDotThreeSoftCompat 0x00000002 // Preserve the 8.3 naming syntax for as long as possible. (this should not be changed, w/o ensuring there are no log files) +#endif // JET_VERSION >= 0x0600 + + /* Flags for JET_paramHungIOActions */ + +#define JET_bitHungIOEvent 0x00000001 // Log event when an IO appears to be hung for over the IO threshold. + +#if ( JET_VERSION >= 0x0603 ) +// Values for JET_paramEnableShrinkDatabase. +#define JET_bitShrinkDatabaseOff 0x0 +#define JET_bitShrinkDatabaseOn 0x1 // Uses the file system's Sparse Files feature to release space in the middle of a file. +#define JET_bitShrinkDatabaseRealtime 0x2 // Attempts to reclaim space back to the file system after freeing significant amounts of data (when space is marked as Available to the Root space tree). + +// DEPRECATED: +#define JET_bitShrinkDatabaseTrim 0x1 // DEPRECATED: Deprecated value for JET_bitShrinkDatabaseOn; Will be removed! + +#endif // JET_VERSION >= 0x0603 + + /* Flags for JetInit2, JetInit3 */ + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitReplayIgnoreMissingDB 0x00000004 // Ignore missing databases during recovery. This is a very dangerous option and may irrevocably produce an inconsistent database if improperly used. Normal ESE usage does not typically require this dangerous option. +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0600 ) +#define JET_bitRecoveryWithoutUndo 0x00000008 // perform recovery, but halt at the Undo phase +#define JET_bitTruncateLogsAfterRecovery 0x00000010 // on successful soft recovery, truncate log files +#define JET_bitReplayMissingMapEntryDB 0x00000020 // missing database map entry default to same location +#define JET_bitLogStreamMustExist 0x00000040 // transaction logs must exist in the logfile directory (ie. cannot auto-start a new log stream) +#endif // JET_VERSION >= 0x0600 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitReplayIgnoreLostLogs 0x00000080 // ignore logs lost from the end of the log stream +#endif // JET_VERSION >= 0x0601 +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitKeepDbAttachedAtEndOfRecovery 0x00001000 // this allows db to remain attached at the end of recovery (for faster transition to running state) +#endif // JET_VERSION >= 0x0602 + + /* Flags for JetTerm2 */ + +#define JET_bitTermComplete 0x00000001 +#define JET_bitTermAbrupt 0x00000002 +#define JET_bitTermStopBackup 0x00000004 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitTermDirty 0x00000008 +#endif // JET_VERSION >= 0x0601 + + /* Flags for JetIdle */ + +#define JET_bitIdleFlushBuffers 0x00000001 +#define JET_bitIdleCompact 0x00000002 +#define JET_bitIdleStatus 0x00000004 + + /* Flags for JetEndSession */ + + + /* Flags for JetAttachDatabase/JetOpenDatabase */ + +#define JET_bitDbReadOnly 0x00000001 +#define JET_bitDbExclusive 0x00000002 /* multiple opens allowed */ +#define JET_bitDbDeleteCorruptIndexes 0x00000010 /* delete indexes possibly corrupted by NT version upgrade */ +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitDbDeleteUnicodeIndexes 0x00000400 /* delete all indexes with unicode columns */ +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitDbUpgrade 0x00000200 /* */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitDbEnableBackgroundMaintenance 0x00000800 /* the database engine will initiate automatic background database maintenance */ +#endif +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitDbPurgeCacheOnAttach 0x00001000 /* used to ensure any kept alive cache is purged for this DB before attach */ +#endif + + /* Flags for JetDetachDatabase2 */ + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitForceDetach 0x00000001 +#define JET_bitForceCloseAndDetach (0x00000002 | JET_bitForceDetach) +#endif // JET_VERSION >= 0x0501 + + + /* Flags for JetCreateDatabase */ + +#define JET_bitDbRecoveryOff 0x00000008 /* disable logging/recovery for this database */ +#define JET_bitDbShadowingOff 0x00000080 /* disable catalog shadowing */ +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitDbOverwriteExisting 0x00000200 /* overwrite existing database with same name */ +#endif // JET_VERSION >= 0x0501 + + /* Flags for JetBackup, JetBeginExternalBackup, JetBeginExternalBackupInstance, JetBeginSurrogateBackup */ + +#define JET_bitBackupIncremental 0x00000001 +#define JET_bitBackupAtomic 0x00000004 +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitBackupSnapshot 0x00000010 +#endif // JET_VERSION >= 0x0501 + + /* Flags for JetEndExternalBackupInstance2, JetEndSurrogateBackup */ + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitBackupEndNormal 0x0001 +#define JET_bitBackupEndAbort 0x0002 +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0600 ) +#define JET_bitBackupTruncateDone 0x0100 +#endif // JET_VERSION >= 0x0600 + + /* Database types */ + +#define JET_dbidNil ((JET_DBID) 0xFFFFFFFF) + + + /* Flags for JetCreateTableColumnIndex */ +#define JET_bitTableCreateFixedDDL 0x00000001 /* DDL is fixed */ +#define JET_bitTableCreateTemplateTable 0x00000002 /* DDL is inheritable (implies FixedDDL) */ +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitTableCreateNoFixedVarColumnsInDerivedTables 0x00000004 + // used in conjunction with JET_bitTableCreateTemplateTable + // to disallow fixed/var columns in derived tables (so that + // fixed/var columns may be added to the template in the future) +#endif // JET_VERSION >= 0x0501 +#if JET_VERSION >= 0x0A00 +#define JET_bitTableCreateImmutableStructure 0x00000008 // Do not write to the input structures. Additionally, do not return any auto-opened tableid. +#endif // JET_VERSION >= 0x0A00 + + + /* Flags for JetAddColumn, JetGetColumnInfo, JetOpenTempTable */ + +#define JET_bitColumnFixed 0x00000001 +#define JET_bitColumnTagged 0x00000002 +#define JET_bitColumnNotNULL 0x00000004 +#define JET_bitColumnVersion 0x00000008 +#define JET_bitColumnAutoincrement 0x00000010 +#define JET_bitColumnUpdatable 0x00000020 /* JetGetColumnInfo only */ +#define JET_bitColumnTTKey 0x00000040 /* JetOpenTempTable only */ +#define JET_bitColumnTTDescending 0x00000080 /* JetOpenTempTable only */ +#define JET_bitColumnMultiValued 0x00000400 +#define JET_bitColumnEscrowUpdate 0x00000800 /* escrow updated, supported coltyps are long and longlong */ +#define JET_bitColumnUnversioned 0x00001000 /* for add column only - add column unversioned */ +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitColumnMaybeNull 0x00002000 /* for retrieve column info of outer join where no match from the inner table */ +#define JET_bitColumnFinalize 0x00004000 /* DEPRECATED / Not Fully Implemented: use JET_bitColumnDeleteOnZero instead. */ +#define JET_bitColumnUserDefinedDefault 0x00008000 /* default value from a user-provided callback */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitColumnDeleteOnZero 0x00020000 /* When the escrow-update column reaches a value of zero (after all versions are resolve), the record will be deleted. A common use for a column that can be finalized is to use it as a reference count field, and when the field reaches zero the record gets deleted. A Delete-on-zero column must be an escrow update / JET_bitColumnEscrowUpdate column. JET_bitColumnDeleteOnZero cannot be used with JET_bitColumnFinalize. JET_bitColumnDeleteOnZero cannot be used with user defined default columns. */ +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitColumnCompressed 0x00080000 /* data in the column can be compressed */ +#endif + +#if ( JET_VERSION >= 0x0501 ) +// flags for JetDeleteColumn +#define JET_bitDeleteColumnIgnoreTemplateColumns 0x00000001 // for derived tables, don't bother looking in template columns +#endif // JET_VERSION >= 0x0501 + + + /* Flags for JetSetCurrentIndex */ + +#define JET_bitMoveFirst 0x00000000 +#define JET_bitNoMove 0x00000002 + + /* Flags for JetMakeKey */ + +#define JET_bitNewKey 0x00000001 +#define JET_bitStrLimit 0x00000002 +#define JET_bitSubStrLimit 0x00000004 +#define JET_bitNormalizedKey 0x00000008 +#define JET_bitKeyDataZeroLength 0x00000010 +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitFullColumnStartLimit 0x00000100 +#define JET_bitFullColumnEndLimit 0x00000200 +#define JET_bitPartialColumnStartLimit 0x00000400 +#define JET_bitPartialColumnEndLimit 0x00000800 +#endif // JET_VERSION >= 0x0501 + + /* Flags for JetSetIndexRange */ + +#define JET_bitRangeInclusive 0x00000001 +#define JET_bitRangeUpperLimit 0x00000002 +#define JET_bitRangeInstantDuration 0x00000004 +#define JET_bitRangeRemove 0x00000008 + + /* Flags for JetGetLock */ + +#define JET_bitReadLock 0x00000001 +#define JET_bitWriteLock 0x00000002 + + /* Constants for JetMove */ + +#define JET_MoveFirst (0x80000000) +#define JET_MovePrevious (-1) +#define JET_MoveNext (+1) +#define JET_MoveLast (0x7fffffff) + + /* Flags for JetMove */ + +#define JET_bitMoveKeyNE 0x00000001 + + /* Flags for JetSeek */ + +#define JET_bitSeekEQ 0x00000001 +#define JET_bitSeekLT 0x00000002 +#define JET_bitSeekLE 0x00000004 +#define JET_bitSeekGE 0x00000008 +#define JET_bitSeekGT 0x00000010 +#define JET_bitSetIndexRange 0x00000020 +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitCheckUniqueness 0x00000040 // to be used with JET_bitSeekEQ only, returns JET_wrnUniqueKey if seek lands on a key which has no dupes +#endif // JET_VERSION >= 0x0502 + +#if ( JET_VERSION >= 0x0501 ) + // Flags for JetGotoSecondaryIndexBookmark +#define JET_bitBookmarkPermitVirtualCurrency 0x00000001 // place cursor on relative position in index if specified bookmark no longer exists +#endif // JET_VERSION >= 0x0501 + + /* Flags for JET_CONDITIONALCOLUMN */ +#define JET_bitIndexColumnMustBeNull 0x00000001 +#define JET_bitIndexColumnMustBeNonNull 0x00000002 + + /* Flags for JET_INDEXRANGE */ +#define JET_bitRecordInIndex 0x00000001 +#define JET_bitRecordNotInIndex 0x00000002 + + /* Flags for JetCreateIndex */ + +#define JET_bitIndexUnique 0x00000001 +#define JET_bitIndexPrimary 0x00000002 +#define JET_bitIndexDisallowNull 0x00000004 +#define JET_bitIndexIgnoreNull 0x00000008 +#define JET_bitIndexIgnoreAnyNull 0x00000020 +#define JET_bitIndexIgnoreFirstNull 0x00000040 +#define JET_bitIndexLazyFlush 0x00000080 +#define JET_bitIndexEmpty 0x00000100 // don't attempt to build index, because all entries would evaluate to NULL (MUST also specify JET_bitIgnoreAnyNull) +#define JET_bitIndexUnversioned 0x00000200 +#define JET_bitIndexSortNullsHigh 0x00000400 // NULL sorts after data for all columns in the index +#define JET_bitIndexUnicode 0x00000800 // LCID field of JET_INDEXCREATE actually points to a JET_UNICODEINDEX struct to allow user-defined LCMapString() flags +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitIndexTuples 0x00001000 // index on substring tuples (text columns only) +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitIndexTupleLimits 0x00002000 // cbVarSegMac field of JET_INDEXCREATE actually points to a JET_TUPLELIMITS struct to allow custom tuple index limits (implies JET_bitIndexTuples) +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0600 ) +#define JET_bitIndexCrossProduct 0x00004000 // index over multiple multi-valued columns has full cross product +#define JET_bitIndexKeyMost 0x00008000 // custom index key size set instead of default of 255 bytes +#define JET_bitIndexDisallowTruncation 0x00010000 // fail update rather than truncate index keys +#define JET_bitIndexNestedTable 0x00020000 // index over multiple multi-valued columns but only with values of same itagSequence +#endif // JET_VERSION >= 0x0600 +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitIndexDotNetGuid 0x00040000 // index over GUID column according to .Net GUID sort order +#endif // JET_VERSION >= 0x602 +#if ( JET_VERSION >= 0x0A00 ) +#define JET_bitIndexImmutableStructure 0x00080000 // Do not write to the input structures during a JetCreateIndexN call. +#endif // JET_VERSION >= 0x0A00 + + /* Flags for index key definition */ + +#define JET_bitKeyAscending 0x00000000 +#define JET_bitKeyDescending 0x00000001 + + /* Flags for JetOpenTable */ + +#define JET_bitTableDenyWrite 0x00000001 +#define JET_bitTableDenyRead 0x00000002 +#define JET_bitTableReadOnly 0x00000004 +#define JET_bitTableUpdatable 0x00000008 +#define JET_bitTablePermitDDL 0x00000010 /* override table flagged as FixedDDL (must be used with DenyRead) */ +#define JET_bitTableNoCache 0x00000020 /* don't cache the pages for this table */ +#define JET_bitTablePreread 0x00000040 /* assume the table is probably not in the buffer cache */ +#define JET_bitTableOpportuneRead 0x00000080 /* attempt to opportunely read physically adjacent leaf pages using larger physical IOs */ +#define JET_bitTableSequential 0x00008000 /* assume the table will be scanned sequentially */ + +#define JET_bitTableClassMask 0x001F0000 /* table stats class mask */ +#define JET_bitTableClassNone 0x00000000 /* table belongs to no stats class (default) */ +#define JET_bitTableClass1 0x00010000 /* table belongs to stats class 1 */ +#define JET_bitTableClass2 0x00020000 /* table belongs to stats class 2 */ +#define JET_bitTableClass3 0x00030000 /* table belongs to stats class 3 */ +#define JET_bitTableClass4 0x00040000 /* table belongs to stats class 4 */ +#define JET_bitTableClass5 0x00050000 /* table belongs to stats class 5 */ +#define JET_bitTableClass6 0x00060000 /* table belongs to stats class 6 */ +#define JET_bitTableClass7 0x00070000 /* table belongs to stats class 7 */ +#define JET_bitTableClass8 0x00080000 /* table belongs to stats class 8 */ +#define JET_bitTableClass9 0x00090000 /* table belongs to stats class 9 */ +#define JET_bitTableClass10 0x000A0000 /* table belongs to stats class 10 */ +#define JET_bitTableClass11 0x000B0000 /* table belongs to stats class 11 */ +#define JET_bitTableClass12 0x000C0000 /* table belongs to stats class 12 */ +#define JET_bitTableClass13 0x000D0000 /* table belongs to stats class 13 */ +#define JET_bitTableClass14 0x000E0000 /* table belongs to stats class 14 */ +#define JET_bitTableClass15 0x000F0000 /* table belongs to stats class 15 */ + + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitLSReset 0x00000001 /* reset LS value */ +#define JET_bitLSCursor 0x00000002 /* set/retrieve LS of table cursor */ +#define JET_bitLSTable 0x00000004 /* set/retrieve LS of table */ + +#define JET_LSNil (~(JET_LS)0) +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0601 ) + /* Flags for JetSetTableSequential and JetPrereadIndexRanges */ + +#define JET_bitPrereadForward 0x00000001 /* Hint that the sequential traversal will be in the forward direction */ +#define JET_bitPrereadBackward 0x00000002 /* Hint that the sequential traversal will be in the backward direction */ +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitPrereadFirstPage 0x00000004 /* Only first page of long values should be preread */ +#define JET_bitPrereadNormalizedKey 0x00000008 /* Normalized key/bookmark provided instead of column value */ +#endif // JET_VERSION >= 0x0602 +#endif // JET_VERSION >= 0x0601 + + /* Flags for JetOpenTempTable */ + +#define JET_bitTTIndexed 0x00000001 /* Allow seek */ +#define JET_bitTTUnique 0x00000002 /* Remove duplicates */ +#define JET_bitTTUpdatable 0x00000004 /* Allow updates */ +#define JET_bitTTScrollable 0x00000008 /* Allow backwards scrolling */ +#define JET_bitTTSortNullsHigh 0x00000010 /* NULL sorts after data for all columns in the index */ +#define JET_bitTTForceMaterialization 0x00000020 /* Forces temp. table to be materialized into a btree (allows for duplicate detection) */ +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitTTErrorOnDuplicateInsertion JET_bitTTForceMaterialization /* Error always returned when duplicate is inserted (instead of dupe being silently removed) */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitTTForwardOnly 0x00000040 /* Prevents temp. table from being materialized into a btree (and enables duplicate keys) */ +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitTTIntrinsicLVsOnly 0x00000080 // permit only intrinsic LV's (so materialisation is not required simply because a TT has an LV column) +#endif // JET_VERSION >= 0x0601 +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitTTDotNetGuid 0x00000100 // sort all JET_coltypGUID columns according to .Net Guid sort order +#endif // JET_VERSION >= 0x0602 +#if ( JET_VERSION >= 0x0A01 ) +#define JET_bitTTMaterializeBBT 0x00000200 // The temp table uses the Buffered BTree format when it is materialized +#endif // JET_VERSION >= 0x0A01 +// begin_PubEsent + + + /* Flags for JetSetColumn */ + +#define JET_bitSetAppendLV 0x00000001 +#define JET_bitSetOverwriteLV 0x00000004 /* overwrite JET_coltypLong* byte range */ +#define JET_bitSetSizeLV 0x00000008 /* set JET_coltypLong* size */ +#define JET_bitSetZeroLength 0x00000020 +#define JET_bitSetSeparateLV 0x00000040 /* force LV separation */ +#define JET_bitSetUniqueMultiValues 0x00000080 /* prevent duplicate multi-values */ +#define JET_bitSetUniqueNormalizedMultiValues 0x00000100 /* prevent duplicate multi-values, normalizing all data before performing comparisons */ +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitSetRevertToDefaultValue 0x00000200 /* if setting last tagged instance to NULL, revert to default value instead if one exists */ +#define JET_bitSetIntrinsicLV 0x00000400 /* store whole LV in record without bursting or return an error */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitSetUncompressed 0x00010000 /* don't attempt compression when storing the data */ +#define JET_bitSetCompressed 0x00020000 /* attempt compression when storing the data */ +#if ( JET_VERSION >= 0x0A01 ) +#define JET_bitSetContiguousLV 0x00040000 /* Allocates the long-value across contiguous pages (at potentialy space saving costs) for better IO behavior. Valid only with JET_bitSetSeparateLV. Invalid (or not implemented) with certain long-value operations such as replace, and certain column options such as compression. Use across many varying LVs sizes may cause space fragmentation / allocation issues. */ +#endif // JET_VERSION >= 0x0A01 +#endif // JET_VERSION >= 0x0601 + + +#if ( JET_VERSION >= 0x0601 ) + /* Space Hint Flags / JET_SPACEHINTS */ + +// Generic +#define JET_bitSpaceHintsUtilizeParentSpace 0x00000001 // This changes the internal allocation policy to get space hierarchically from a B-Tree's immediate parent. +// Create +#define JET_bitCreateHintAppendSequential 0x00000002 // This bit will enable Append split behavior to grow according to the growth dynamics of the table (set by cbMinExtent, ulGrowth, cbMaxExtent). +#define JET_bitCreateHintHotpointSequential 0x00000004 // This bit will enable Hotpoint split behavior to grow according to the growth dynamics of the table (set by cbMinExtent, ulGrowth, cbMaxExtent). +// Retrieve +#define JET_bitRetrieveHintReserve1 0x00000008 // Reserved and ignored +#define JET_bitRetrieveHintTableScanForward 0x00000010 // By setting this the client indicates that forward sequential scan is the predominant usage pattern of this table (causing B+ Tree defrag to be auto-triggered to clean it up if fragmented). +#define JET_bitRetrieveHintTableScanBackward 0x00000020 // By setting this the client indicates that backwards sequential scan is the predominant usage pattern of this table (causing B+ Tree defrag to be auto-triggered to clean it up if fragmented). +#define JET_bitRetrieveHintReserve2 0x00000040 // Reserved and ignored +#define JET_bitRetrieveHintReserve3 0x00000080 // Reserved and ignored +// Update +//#define JET_bitUpdateReserved 0x00000000 // TBD. +// Delete +#define JET_bitDeleteHintTableSequential 0x00000100 // This means that the application expects this table to be cleaned up in-order sequentially (from lowest key to highest key) +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0A01 ) +#endif // JET_VERSION >= 0x0A01 + + + /* Set column parameter structure for JetSetColumns */ + +typedef struct +{ + JET_COLUMNID columnid; + JET_PCVOID pvData; + JET_UINT32 cbData; + JET_GRBIT grbit; + JET_UINT32 ibLongValue; + JET_UINT32 itagSequence; + JET_ERR err; +} JET_SETCOLUMN; + +#if ( JET_VERSION >= 0x0501 ) +typedef struct +{ + JET_UINT32 paramid; + JET_API_PTR lParam; + JET_PCSTR sz; + JET_ERR err; +} JET_SETSYSPARAM_A; + +typedef struct +{ + JET_UINT32 paramid; + JET_API_PTR lParam; + JET_PCWSTR sz; + JET_ERR err; +} JET_SETSYSPARAM_W; + + +#ifdef JET_UNICODE +#define JET_SETSYSPARAM JET_SETSYSPARAM_W +#else +#define JET_SETSYSPARAM JET_SETSYSPARAM_A +#endif + +#endif // JET_VERSION >= 0x0501 + + /* Options for JetPrepareUpdate */ + +#define JET_prepInsert 0 +#define JET_prepReplace 2 +#define JET_prepCancel 3 +#define JET_prepReplaceNoLock 4 +#define JET_prepInsertCopy 5 +#if ( JET_VERSION >= 0x0501 ) +#define JET_prepInsertCopyDeleteOriginal 7 // used for updating a record in the primary key; avoids the delete/insert process and updates autoinc */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0603 ) +#define JET_prepInsertCopyReplaceOriginal 9 // used for updating a record in the primary key; avoids the delete/insert process and keeps autoinc */ +#endif // JET_VERSION >= 0x0603 + +#if ( JET_VERSION >= 0x0603 ) +// Values for JET_paramEnableSqm +#define JET_sqmDisable 0 // Explicitly disable SQM +#define JET_sqmEnable 1 // Explicitly enable SQM +#define JET_sqmFromCEIP 2 // Enables SQM based on Customer Experience Improvement Program opt-in +#endif // JET_VERSION >= 0x0603 + + // Flags for JetUpdate +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitUpdateCheckESE97Compatibility 0x00000001 // check whether record fits if represented in ESE97 database format +#endif // JET_VERSION >= 0x0502 + + /* Flags for JetEscrowUpdate */ +#define JET_bitEscrowNoRollback 0x0001 + + /* Flags for JetRetrieveColumn */ + +#define JET_bitRetrieveCopy 0x00000001 +#define JET_bitRetrieveFromIndex 0x00000002 +#define JET_bitRetrieveFromPrimaryBookmark 0x00000004 +#define JET_bitRetrieveTag 0x00000008 +#define JET_bitRetrieveNull 0x00000010 /* for columnid 0 only */ +#define JET_bitRetrieveIgnoreDefault 0x00000020 /* for columnid 0 only */ +#if ( JET_VERSION >= 0x0600 ) +#define JET_bitRetrieveTuple 0x00000800 /* retrieve tuple fragment from index */ +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0602 ) + /* Flags for JET_INDEX_COLUMN */ +#define JET_bitZeroLength 0x00000001 +#endif + + /* Retrieve column parameter structure for JetRetrieveColumns */ + +typedef struct +{ + JET_COLUMNID columnid; + JET_PVOID pvData; + JET_UINT32 cbData; + JET_UINT32 cbActual; + JET_GRBIT grbit; + JET_UINT32 ibLongValue; + JET_UINT32 itagSequence; + JET_COLUMNID columnidNextTagged; + JET_ERR err; +} JET_RETRIEVECOLUMN; + + + + +#if ( JET_VERSION >= 0x0501 ) + /* Flags for JetEnumerateColumns */ + +#define JET_bitEnumerateCopy JET_bitRetrieveCopy +#define JET_bitEnumerateIgnoreDefault JET_bitRetrieveIgnoreDefault +#define JET_bitEnumeratePresenceOnly 0x00020000 +#define JET_bitEnumerateTaggedOnly 0x00040000 +#define JET_bitEnumerateCompressOutput 0x00080000 +#if ( JET_VERSION >= 0x0502 ) +// Available on Server 2003 SP1 +#define JET_bitEnumerateIgnoreUserDefinedDefault 0x00100000 +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitEnumerateInRecordOnly 0x00200000 +#endif // JET_VERSION >= 0x0601 + + /* Parameter structures for JetEnumerateColumns */ + +typedef struct +{ + JET_COLUMNID columnid; + JET_UINT32 ctagSequence; + JET_UINT32 * rgtagSequence; +} JET_ENUMCOLUMNID; + +typedef struct +{ + JET_UINT32 itagSequence; + JET_ERR err; + JET_UINT32 cbData; + JET_PVOID pvData; +} JET_ENUMCOLUMNVALUE; + +typedef struct +{ + JET_COLUMNID columnid; + JET_ERR err; + union + { + struct // err != JET_wrnColumnSingleValue + { + JET_UINT32 cEnumColumnValue; + JET_ENUMCOLUMNVALUE* rgEnumColumnValue; + }; + struct // err == JET_wrnColumnSingleValue + { + JET_UINT32 cbData; + JET_PVOID pvData; + }; + }; +} JET_ENUMCOLUMN; + + /* Realloc callback for JetEnumerateColumns */ + +typedef JET_PVOID (JET_API * JET_PFNREALLOC)( + _In_opt_ JET_PVOID pvContext, + _In_opt_ JET_PVOID pv, + _In_ JET_UINT32 cb ); + +#endif // JET_VERSION >= 0x0501 + + + +#if ( JET_VERSION >= 0x0600 ) + /* Flags for JetGetRecordSize */ + +#define JET_bitRecordSizeInCopyBuffer 0x00000001 // use record in copy buffer +#define JET_bitRecordSizeRunningTotal 0x00000002 // increment totals in output buffer instead of setting them +#define JET_bitRecordSizeLocal 0x00000004 // ignore Long Values (and other data otherwise not in the same page as the record) + + /* parameter structures for JetGetRecordSize */ + +typedef struct +{ + JET_UINT64 cbData; // user data in record + JET_UINT64 cbLongValueData; // user data associated with the record but stored in the long-value tree (NOTE: does NOT count intrinsic long-values) + JET_UINT64 cbOverhead; // record overhead + JET_UINT64 cbLongValueOverhead; // overhead of long-value data (NOTE: does not count intrinsic long-values) + JET_UINT64 cNonTaggedColumns; // total number of fixed/variable columns + JET_UINT64 cTaggedColumns; // total number of tagged columns + JET_UINT64 cLongValues; // total number of values stored in the long-value tree for this record (NOTE: does NOT count intrinsic long-values) + JET_UINT64 cMultiValues; // total number of values beyond the first for each column in the record +} JET_RECSIZE; +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0601 ) +typedef struct +{ + JET_UINT64 cbData; // user data in record + JET_UINT64 cbLongValueData; // user data associated with the record but stored in the long-value tree (NOTE: does NOT count intrinsic long-values) + JET_UINT64 cbOverhead; // record overhead + JET_UINT64 cbLongValueOverhead; // overhead of long-value data (NOTE: does not count intrinsic long-values) + JET_UINT64 cNonTaggedColumns; // total number of fixed/variable columns + JET_UINT64 cTaggedColumns; // total number of tagged columns + JET_UINT64 cLongValues; // total number of values stored in the long-value tree for this record (NOTE: does NOT count intrinsic long-values) + JET_UINT64 cMultiValues; // total number of values beyond the first for each column in the record + JET_UINT64 cCompressedColumns; // total number of columns which are compressed + JET_UINT64 cbDataCompressed; // compressed size of user data in record (same as cbData if no intrinsic long-values are compressed) + JET_UINT64 cbLongValueDataCompressed; // compressed size of user data in the long-value tree (same as cbLongValue data if no separated long values are compressed) +} JET_RECSIZE2; +#endif // JET_VERSION >= 0x0601 + +#pragma warning(pop) // nonstandard extension used : nameless struct/union + + + /* Flags for JetBeginTransaction2 */ + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitTransactionReadOnly 0x00000001 /* transaction will not modify the database */ +#endif // JET_VERSION >= 0x0501 + + /* Flags for JetCommitTransaction */ + +#define JET_bitCommitLazyFlush 0x00000001 /* lazy flush log buffers. */ +#define JET_bitWaitLastLevel0Commit 0x00000002 /* wait for last level 0 commit record flushed */ +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitWaitAllLevel0Commit 0x00000008 /* wait for all level 0 commits to be flushed */ +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitForceNewLog 0x00000010 +#endif // JET_VERSION >= 0x0601 + + /* Flags for JetRollback */ + +#define JET_bitRollbackAll 0x00000001 + + +#if ( JET_VERSION >= 0x0600 ) + /* Flags for JetOSSnapshot APIs */ + + /* Flags for JetOSSnapshotPrepare */ +#define JET_bitIncrementalSnapshot 0x00000001 /* bit 0: full (0) or incremental (1) snapshot */ +#define JET_bitCopySnapshot 0x00000002 /* bit 1: normal (0) or copy (1) snapshot */ +#define JET_bitContinueAfterThaw 0x00000004 /* bit 2: end on thaw (0) or wait for [truncate +] end snapshot */ +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitExplicitPrepare 0x00000008 /* bit 3: all instaces prepared by default (0) or no instance prepared by default (1) */ +#endif // JET_VERSION >= 0x0601 + + /* Flags for JetOSSnapshotTruncateLog & JetOSSnapshotTruncateLogInstance */ +#define JET_bitAllDatabasesSnapshot 0x00000001 /* bit 0: there are detached dbs in the instance (i.e. can't truncate logs) */ + + /* Flags for JetOSSnapshotEnd */ +#define JET_bitAbortSnapshot 0x00000001 /* snapshot process failed */ +#endif // JET_VERSION >= 0x0600 + /* Info parameter for JetGetDatabaseInfo and JetGetDatabaseFileInfo */ + +#define JET_DbInfoFilename 0 +#define JET_DbInfoConnect 1 +#define JET_DbInfoCountry 2 // retrieves the default country/region +#if ( JET_VERSION >= 0x0501 ) +#define JET_DbInfoLCID 3 +#endif // JET_VERSION >= 0x0501 +#define JET_DbInfoLangid 3 // OBSOLETE: use JET_DbInfoLCID instead +#define JET_DbInfoCp 4 +#define JET_DbInfoCollate 5 +#define JET_DbInfoOptions 6 +#define JET_DbInfoTransactions 7 +#define JET_DbInfoVersion 8 +#define JET_DbInfoIsam 9 +#define JET_DbInfoFilesize 10 +#define JET_DbInfoSpaceOwned 11 +#define JET_DbInfoSpaceAvailable 12 +#define JET_DbInfoUpgrade 13 +#define JET_DbInfoMisc 14 +#if ( JET_VERSION >= 0x0501 ) +#define JET_DbInfoDBInUse 15 +#define JET_DbInfoPageSize 17 +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0600 ) +#define JET_DbInfoFileType 19 +#if ( JET_VERSION >= 0x603 ) +#define JET_DbInfoFilesizeOnDisk 21 +#endif + +#endif // JET_VERSION >= 0x0600 + + /* Dbstates from JetGetDatabaseFileInfo */ + +#define JET_dbstateJustCreated 1 +#define JET_dbstateDirtyShutdown 2 +#define JET_dbstateCleanShutdown 3 +#define JET_dbstateBeingConverted 4 +#if ( JET_VERSION >= 0x0501 ) +#define JET_dbstateForceDetach 5 +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0600 ) + + // supported file types (returned from JetGetDatabaseFileInfo with JET_DbInfoFileType) + +#define JET_filetypeUnknown 0 +#define JET_filetypeDatabase 1 +#define JET_filetypeLog 3 +#define JET_filetypeCheckpoint 4 +#define JET_filetypeTempDatabase 5 +#define JET_filetypeFlushMap 7 + +#endif // JET_VERSION >= 0x0600 + + /* Column data types */ + +#define JET_coltypNil 0 +#define JET_coltypBit 1 /* True, False, or NULL */ +#define JET_coltypUnsignedByte 2 /* 1-byte integer, unsigned */ +#define JET_coltypShort 3 /* 2-byte integer, signed */ +#define JET_coltypLong 4 /* 4-byte integer, signed */ +#define JET_coltypCurrency 5 /* 8 byte integer, signed */ +#define JET_coltypIEEESingle 6 /* 4-byte IEEE single precision */ +#define JET_coltypIEEEDouble 7 /* 8-byte IEEE double precision */ +#define JET_coltypDateTime 8 /* Integral date, fractional time */ +#define JET_coltypBinary 9 /* Binary data, < 255 bytes */ +#define JET_coltypText 10 /* ANSI text, case insensitive, < 255 bytes */ +#define JET_coltypLongBinary 11 /* Binary data, long value */ +#define JET_coltypLongText 12 /* ANSI text, long value */ + +// Pre XP +#if ( JET_VERSION < 0x0501 ) +#define JET_coltypMax 13 /* the number of column types */ + /* used for validity tests and */ + /* array declarations. */ +#endif // JET_VERSION < 0x0501 + +// Windows XP +#if ( JET_VERSION >= 0x0501 ) +#define JET_coltypSLV 13 /* SLV's. Obsolete. */ + +#if ( JET_VERSION < 0x0600 ) +#define JET_coltypMax 14 /* the number of column types */ + /* used for validity tests and */ + /* array declarations. */ +#endif // JET_VERSION == 0x0501 + +#endif // JET_VERSION >= 0x0501 + +// Windows Vista to Windows 8.1 +#if ( JET_VERSION >= 0x0600 ) +#define JET_coltypUnsignedLong 14 /* 4-byte unsigned integer */ +#define JET_coltypLongLong 15 /* 8-byte signed integer */ +#define JET_coltypGUID 16 /* 16-byte globally unique identifier */ +#define JET_coltypUnsignedShort 17 /* 2-byte unsigned integer */ + +#if ( JET_VERSION >= 0x0600 && JET_VERSION <= 0x0603 ) +#define JET_coltypMax 18 /* the number of column types */ + /* used for validity tests and */ + /* array declarations. */ +#endif // ( JET_VERSION >= 0x0600 && JET_VERSION <= 0x0603 ) + +#endif // JET_VERSION >= 0x0600 + +// Windows 10 +#if ( JET_VERSION >= 0x0A00 ) +#define JET_coltypUnsignedLongLong 18 /* 8-byte unsigned integer */ +#define JET_coltypMax 19 /* the number of column types */ + /* used for validity tests and */ + /* array declarations. */ +#endif // JET_VERSION >= 0x0A00 + + + /* Info levels for JetGetObjectInfo */ + +#define JET_ObjInfo 0U +#define JET_ObjInfoListNoStats 1U +#define JET_ObjInfoList 2U +#define JET_ObjInfoSysTabCursor 3U +#define JET_ObjInfoListACM 4U /* Blocked by JetGetObjectInfo */ +#define JET_ObjInfoNoStats 5U +#define JET_ObjInfoSysTabReadOnly 6U +#define JET_ObjInfoRulesLoaded 7U +#define JET_ObjInfoMax 8U + + /* Info levels for JetGetTableInfo/JetSetTableInfo */ + +#define JET_TblInfo 0U +#define JET_TblInfoName 1U +#define JET_TblInfoDbid 2U +#define JET_TblInfoMostMany 3U +#define JET_TblInfoRvt 4U +#define JET_TblInfoOLC 5U +#define JET_TblInfoResetOLC 6U +#define JET_TblInfoSpaceUsage 7U +#define JET_TblInfoDumpTable 8U +#define JET_TblInfoSpaceAlloc 9U +#define JET_TblInfoSpaceOwned 10U // OwnExt for primary, 2ndary indices, and LV +#define JET_TblInfoSpaceAvailable 11U // AvailExt for primary, 2ndary indices, and LV +#define JET_TblInfoTemplateTableName 12U +#if ( JET_VERSION >= 0x0A01 ) +#define JET_TblInfoSpaceOwnedLV 17U // OwnExt for LV +#define JET_TblInfoSpaceAvailableLV 18U // AvailExt for LV +#endif + + /* Info levels for JetGetIndexInfo and JetGetTableIndexInfo */ + +#define JET_IdxInfo 0U +#define JET_IdxInfoList 1U +#define JET_IdxInfoSysTabCursor 2U // OBSOLETE and unused. +#define JET_IdxInfoOLC 3U // OBSOLETE and unused. +#define JET_IdxInfoResetOLC 4U // OBSOLETE and unused. +#define JET_IdxInfoSpaceAlloc 5U +#if ( JET_VERSION >= 0x0501 ) +#define JET_IdxInfoLCID 6U +#endif // JET_VERSION >= 0x0501 +#define JET_IdxInfoLangid 6U // OBSOLETE: use JET_IdxInfoLCID instead +#define JET_IdxInfoCount 7U +#define JET_IdxInfoVarSegMac 8U +#define JET_IdxInfoIndexId 9U +#if ( JET_VERSION >= 0x0600 ) +#define JET_IdxInfoKeyMost 10U +#endif // JET_VERSION >= 0x0600 +#if ( JET_VERSION >= 0x0601 ) +#define JET_IdxInfoCreateIndex 11U // return a JET_INDEXCREATE structure suitable for use by JetCreateIndex2() +#define JET_IdxInfoCreateIndex2 12U // return a JET_INDEXCREATE2 structure suitable for use by JetCreateIndex3() +#endif // JET_VERSION >= 0x0601 +#if ( JET_VERSION >= 0x0602 ) +#define JET_IdxInfoCreateIndex3 13U // return a JET_INDEXCREATE3 structure suitable for use by JetCreateIndex4() +#define JET_IdxInfoLocaleName 14U // Returns the locale name, which can be a wide string of up to LOCALE_NAME_MAX_LENGTH (including null). +#endif // JET_VERSION >= 0x0602 +#if ( JET_VERSION >= 0x0A01 ) +#define JET_IdxInfoSpaceOwned 18U // Space owned exclusively by this index (unlike tables, ignores space from 2ndary indices, even + // when inquiring about primary indices +#define JET_IdxInfoSpaceAvailable 19U // Space available exclusively for this index +#endif + + + /* Info levels for JetGetColumnInfo and JetGetTableColumnInfo */ + +#define JET_ColInfo 0U +#define JET_ColInfoList 1U +#define JET_ColInfoSysTabCursor 3U +#define JET_ColInfoBase 4U +#define JET_ColInfoListCompact 5U // INTERNAL USE ONLY +#if ( JET_VERSION >= 0x0501 ) +#define JET_ColInfoByColid 6U +#define JET_ColInfoListSortColumnid 7U // OBSOLETE: use grbit instead +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0600 ) +#define JET_ColInfoBaseByColid 8U +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0600 ) + + // Grbits for JET_GetColumnInfo and JetGetTableColumnInfo (OR together with the info level) +#define JET_ColInfoGrbitNonDerivedColumnsOnly 0x80000000 // for lists, only return non-derived columns (if the table is derived from a template) +#define JET_ColInfoGrbitMinimalInfo 0x40000000 // for lists, only return the column name and columnid of each column +#define JET_ColInfoGrbitSortByColumnid 0x20000000 // for lists, sort returned column list by columnid (default is to sort list by column name) + +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0600 ) + + /* Info levels for JetGetInstanceMiscInfo, which is very different than JetGetInstanceInfo, as that retrieves a list of all instances */ + +#define JET_InstanceMiscInfoLogSignature 0U + +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0A01 ) + +#define JET_InstanceMiscInfoRBS 2U // Retrieve revert snapshot info for the instance. + +#endif // JET_VERSION >= 0x0A01 + + + + /* Engine Object Types */ + +#define JET_objtypNil 0 +#define JET_objtypTable 1 + + /* Compact Options */ + +#define JET_bitCompactStats 0x00000020 /* Dump off-line compaction stats (only when progress meter also specified) */ +#define JET_bitCompactRepair 0x00000040 /* Don't preread and ignore duplicate keys */ + + /* Status Notification Processes */ + +#define JET_snpRepair 2 +#define JET_snpCompact 4 +#define JET_snpRestore 8 +#define JET_snpBackup 9 +#define JET_snpUpgrade 10 +#if ( JET_VERSION >= 0x0501 ) +#define JET_snpScrub 11 +#define JET_snpUpgradeRecordFormat 12 +#endif // JET_VERSION >= 0x0501 + + + /* Status Notification Types */ + +// Generic Status Notification Types +#define JET_sntBegin 5 /* callback for beginning of operation */ +#define JET_sntRequirements 7 /* callback for returning operation requirements */ +#define JET_sntProgress 0 /* callback for progress */ +#define JET_sntComplete 6 /* callback for completion of operation */ +#define JET_sntFail 3 /* callback for failure during progress */ + + + /* Exception action / JET_paramExceptionAction */ + +#define JET_ExceptionMsgBox 0x0001 /* Display message box on exception */ +#define JET_ExceptionNone 0x0002 /* Do nothing on exceptions */ +#define JET_ExceptionFailFast 0x0004 /* Use the Windows RaiseFailFastException API to force a crash */ + + +#if ( JET_VERSION >= 0x0501 ) + // Online defragmentation options +#define JET_OnlineDefragDisable 0x0000 // disable online defrag +#define JET_OnlineDefragAllOBSOLETE 0x0001 // enable online defrag for everything (must be 1 for backward compatibility) +#define JET_OnlineDefragDatabases 0x0002 // enable online defrag of databases +#define JET_OnlineDefragSpaceTrees 0x0004 // enable online defrag of space trees +#define JET_OnlineDefragAll 0xffff // enable online defrag for everything + +#endif // JET_VERSION >= 0x0501 + + + +#if ( JET_VERSION >= 0x0602 ) + +// Info levels for JetGetErrorInfo: +#define JET_ErrorInfoSpecificErr 1U // Info about the specific error passed in pvContext. + +// grbits for JetGetErrorInfoW: +// None yet. + +// grbits for JetResizeDatabase: +#define JET_bitResizeDatabaseOnlyGrow 0x00000001 // Only grow the database. If the resize call would shrink the database, do nothing. +#endif // JET_VERSION >= 0x0602 + +#if ( JET_VERSION >= 0x0603 ) +#define JET_bitResizeDatabaseOnlyShrink 0x00000002 // Only shrink the database. If the resize call would grow the database, do nothing. The file may end up smaller than requested. + +#endif // JET_VERSION >= 0x0603 + +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitStopServiceAll 0x00000000 // Stops all ESE services for the specified instance. +#define JET_bitStopServiceBackgroundUserTasks 0x00000002 // Stops restartable client specificed background maintenance tasks (B+ Tree Defrag for example). +#define JET_bitStopServiceQuiesceCaches 0x00000004 // Quiesces all dirty caches to disk. Asynchronous. Cancellable. + +// Warning: This bit can only be used to resume StopServiceBackgroundUserTasks and JET_bitStopServiceQuiesceCaches, if you +// previously called with JET_bitStopServiceAll, attempting to use JET_bitStopServiceResume will fail. +#define JET_bitStopServiceResume 0x80000000 // Resumes previously issued StopService operations, i.e. "restarts service". Can be combined with above grbits to Resume specific services, or with JET_bitStopServiceAll to Resume all previously stopped services. +#endif // JET_VERSION >= 0x0602 + + +/**********************************************************************/ +/*********************** ERROR CODES **************************/ +/**********************************************************************/ + +/* The Error codes are not versioned with WINVER. */ + +/* SUCCESS */ + +#define JET_errSuccess 0 /* Successful Operation */ + +/* ERRORS */ + +#define JET_wrnNyi -1 /* Function Not Yet Implemented */ + +/* SYSTEM errors +/**/ +#define JET_errRfsFailure -100 /* Resource Failure Simulator failure */ +#define JET_errRfsNotArmed -101 /* Resource Failure Simulator not initialized */ +#define JET_errFileClose -102 /* Could not close file */ +#define JET_errOutOfThreads -103 /* Could not start thread */ +#define JET_errTooManyIO -105 /* System busy due to too many IOs */ +#define JET_errTaskDropped -106 /* A requested async task could not be executed */ +#define JET_errInternalError -107 /* Fatal internal error */ +#define JET_errDisabledFunctionality -112 /* You are running MinESE, that does not have all features compiled in. This functionality is only supported in a full version of ESE. */ +#define JET_errUnloadableOSFunctionality -113 /* The desired OS functionality could not be located and loaded / linked. */ + +// BUFFER MANAGER errors +// +#define JET_errDatabaseBufferDependenciesCorrupted -255 /* Buffer dependencies improperly set. Recovery failure */ + +/* DIRECTORY MANAGER errors +/**/ +#define JET_wrnRemainingVersions 321 /* The version store is still active */ +#define JET_errPreviousVersion -322 /* Version already existed. Recovery failure */ +#define JET_errPageBoundary -323 /* Reached Page Boundary */ +#define JET_errKeyBoundary -324 /* Reached Key Boundary */ +#define JET_errBadPageLink -327 /* Database corrupted */ +#define JET_errBadBookmark -328 /* Bookmark has no corresponding address in database */ +#define JET_errNTSystemCallFailed -334 // A call to the operating system failed +#define JET_errBadParentPageLink -338 // Database corrupted +#define JET_errSPAvailExtCacheOutOfSync -340 // AvailExt cache doesn't match btree +#define JET_errSPAvailExtCorrupted -341 // AvailExt space tree is corrupt +#define JET_errSPAvailExtCacheOutOfMemory -342 // Out of memory allocating an AvailExt cache node +#define JET_errSPOwnExtCorrupted -343 // OwnExt space tree is corrupt +#define JET_errDbTimeCorrupted -344 // Dbtime on current page is greater than global database dbtime +#define JET_wrnUniqueKey 345 // seek on non-unique index yielded a unique key +#define JET_errKeyTruncated -346 // key truncated on index that disallows key truncation +#define JET_errDatabaseLeakInSpace -348 // Some database pages have become unreachable even from the avail tree, only an offline defragmentation can return the lost space. +#define JET_errBadEmptyPage -351 // Database corrupted. Searching an unexpectedly empty page. +#define wrnBTNotVisibleRejected 352 /* Current entry is not visible because it has been rejected by a move filter */ +#define wrnBTNotVisibleAccumulated 353 /* Current entry is not visible because it is being accumulated by a move filter */ +#define JET_errBadLineCount -354 /* Number of lines on the page is too few compared to the line being operated on */ +#define JET_errPageTagCorrupted -357 // A tag / line on page is logically corrupted, offset or size is bad, or tag count on page is bad. +#define JET_errNodeCorrupted -358 // A node or prefix node is logically corrupted, the key suffix size is larger than the node or line's size. +#define JET_errBBTNodeCorrupted -364 /* A property of the BBT node is logically corrupted. Or the BBT node isn't valid. */ +#define JET_errBBTBuffCorrupted -365 /* A BBT buff is logically corrupted. The nodes are out of sequence or the BBT header is corrupt. */ +#define JET_wrnSeparateLongValue 406 /* Column is a separated long-value */ +#define JET_wrnRecordFoundGreater JET_wrnSeekNotEqual +#define JET_wrnRecordFoundLess JET_wrnSeekNotEqual +#define JET_errColumnIllegalNull JET_errNullInvalid +#define JET_errKeyTooBig -408 /* Key is too large */ +#define JET_errCannotSeparateIntrinsicLV -416 // illegal attempt to separate an LV which must be intrinsic +#define JET_errSeparatedLongValue -421 /* Operation not supported on separated long-value */ +#define JET_errMustBeSeparateLongValue -423 /* Can only preread long value columns that can be separate, e.g. not size constrained so that they are fixed or variable columns */ +#define JET_errInvalidPreread -424 /* Cannot preread long values when current index secondary */ + +/* LOGGING/RECOVERY errors +/**/ +#define JET_errInvalidLoggedOperation -500 /* Logged operation cannot be redone */ +#define JET_errLogFileCorrupt -501 /* Log file is corrupt */ +#define JET_errNoBackupDirectory -503 /* No backup directory given */ +#define JET_errBackupDirectoryNotEmpty -504 /* The backup directory is not empty */ +#define JET_errBackupInProgress -505 /* Backup is active already */ +#define JET_errRestoreInProgress -506 /* Restore in progress */ +#define JET_errMissingPreviousLogFile -509 /* Missing the log file for check point */ +#define JET_errLogWriteFail -510 /* Failure writing to log file */ +#define JET_errLogDisabledDueToRecoveryFailure -511 /* Try to log something after recovery failed */ +#define JET_errCannotLogDuringRecoveryRedo -512 /* Try to log something during recovery redo */ +#define JET_errLogGenerationMismatch -513 /* Name of logfile does not match internal generation number */ +#define JET_errBadLogVersion -514 /* Version of log file is not compatible with Jet version */ +#define JET_errInvalidLogSequence -515 /* Timestamp in next log does not match expected */ +#define JET_errLoggingDisabled -516 /* Log is not active */ +#define JET_errLogBufferTooSmall -517 /* An operation generated a log record which was too large to fit in the log buffer or in a single log file */ +#define JET_errLogSequenceEnd -519 /* Maximum log file number exceeded */ +#define JET_errNoBackup -520 /* No backup in progress */ +#define JET_errInvalidBackupSequence -521 /* Backup call out of sequence */ +#define JET_errBackupNotAllowedYet -523 /* Cannot do backup now */ +#define JET_errDeleteBackupFileFail -524 /* Could not delete backup file */ +#define JET_errMakeBackupDirectoryFail -525 /* Could not make backup temp directory */ +#define JET_errInvalidBackup -526 /* Cannot perform incremental backup when circular logging enabled */ +#define JET_errRecoveredWithErrors -527 /* Restored with errors */ +#define JET_errMissingLogFile -528 /* Current log file missing */ +#define JET_errLogDiskFull -529 /* Log disk full */ +#define JET_errBadLogSignature -530 /* Bad signature for a log file */ +#define JET_errBadDbSignature -531 /* Bad signature for a db file */ +#define JET_errBadCheckpointSignature -532 /* Bad signature for a checkpoint file */ +#define JET_errCheckpointCorrupt -533 /* Checkpoint file not found or corrupt */ +#define JET_errMissingPatchPage -534 /* Patch file page not found during recovery */ +#define JET_errBadPatchPage -535 /* Patch file page is not valid */ +#define JET_errRedoAbruptEnded -536 /* Redo abruptly ended due to sudden failure in reading logs from log file */ +#define JET_errPatchFileMissing -538 /* Hard restore detected that patch file is missing from backup set */ +#define JET_errDatabaseLogSetMismatch -539 /* Database does not belong with the current set of log files */ +#define JET_errDatabaseStreamingFileMismatch -540 /* Database and streaming file do not match each other */ +#define JET_errLogFileSizeMismatch -541 /* actual log file size does not match JET_paramLogFileSize */ +#define JET_errCheckpointFileNotFound -542 /* Could not locate checkpoint file */ +#define JET_errRequiredLogFilesMissing -543 /* The required log files for recovery is missing. */ +#define JET_errSoftRecoveryOnBackupDatabase -544 /* Soft recovery is intended on a backup database. Restore should be used instead */ +#define JET_errLogFileSizeMismatchDatabasesConsistent -545 /* databases have been recovered, but the log file size used during recovery does not match JET_paramLogFileSize */ +#define JET_errLogSectorSizeMismatch -546 /* the log file sector size does not match the current volume's sector size */ +#define JET_errLogSectorSizeMismatchDatabasesConsistent -547 /* databases have been recovered, but the log file sector size (used during recovery) does not match the current volume's sector size */ +#define JET_errLogSequenceEndDatabasesConsistent -548 /* databases have been recovered, but all possible log generations in the current sequence are used; delete all log files and the checkpoint file and backup the databases before continuing */ + +#define JET_errStreamingDataNotLogged -549 /* Illegal attempt to replay a streaming file operation where the data wasn't logged. Probably caused by an attempt to roll-forward with circular logging enabled */ + +#define JET_errDatabaseDirtyShutdown -550 /* Database was not shutdown cleanly. Recovery must first be run to properly complete database operations for the previous shutdown. */ +#define JET_errDatabaseInconsistent JET_errDatabaseDirtyShutdown /* OBSOLETE */ +#define JET_errConsistentTimeMismatch -551 /* Database last consistent time unmatched */ +#define JET_errDatabasePatchFileMismatch -552 /* Patch file is not generated from this backup */ +#define JET_errEndingRestoreLogTooLow -553 /* The starting log number too low for the restore */ +#define JET_errStartingRestoreLogTooHigh -554 /* The starting log number too high for the restore */ +#define JET_errGivenLogFileHasBadSignature -555 /* Restore log file has bad signature */ +#define JET_errGivenLogFileIsNotContiguous -556 /* Restore log file is not contiguous */ +#define JET_errMissingRestoreLogFiles -557 /* Some restore log files are missing */ +#define JET_wrnExistingLogFileHasBadSignature 558 /* Existing log file has bad signature */ +#define JET_wrnExistingLogFileIsNotContiguous 559 /* Existing log file is not contiguous */ +#define JET_errMissingFullBackup -560 /* The database missed a previous full backup before incremental backup */ +#define JET_errBadBackupDatabaseSize -561 /* The backup database size is not in 4k */ +#define JET_errDatabaseAlreadyUpgraded -562 /* Attempted to upgrade a database that is already current */ +#define JET_errDatabaseIncompleteUpgrade -563 /* Attempted to use a database which was only partially converted to the current format -- must restore from backup */ +#define JET_wrnSkipThisRecord 564 /* INTERNAL ERROR */ +#define JET_errMissingCurrentLogFiles -565 /* Some current log files are missing for continuous restore */ + +#define JET_errDbTimeTooOld -566 /* dbtime on page smaller than dbtimeBefore in record */ +#define JET_errDbTimeTooNew -567 /* dbtime on page in advance of the dbtimeBefore and below dbtimeAfter in record */ +#define JET_errMissingFileToBackup -569 /* Some log or patch files are missing during backup */ + +#define JET_errLogTornWriteDuringHardRestore -570 /* torn-write was detected in a backup set during hard restore */ +#define JET_errLogTornWriteDuringHardRecovery -571 /* torn-write was detected during hard recovery (log was not part of a backup set) */ +#define JET_errLogCorruptDuringHardRestore -573 /* corruption was detected in a backup set during hard restore */ +#define JET_errLogCorruptDuringHardRecovery -574 /* corruption was detected during hard recovery (log was not part of a backup set) */ + +#define JET_errMustDisableLoggingForDbUpgrade -575 /* Cannot have logging enabled while attempting to upgrade db */ + +#define JET_errBadRestoreTargetInstance -577 /* TargetInstance specified for restore is not found or log files don't match */ +#define JET_wrnTargetInstanceRunning 578 /* TargetInstance specified for restore is running */ + +#define JET_errRecoveredWithoutUndo -579 /* Soft recovery successfully replayed all operations, but the Undo phase of recovery was skipped */ + +#define JET_errDatabasesNotFromSameSnapshot -580 /* Databases to be restored are not from the same shadow copy backup */ +#define JET_errSoftRecoveryOnSnapshot -581 /* Soft recovery on a database from a shadow copy backup set */ +#define JET_errCommittedLogFilesMissing -582 /* One or more logs that were committed to this database, are missing. These log files are required to maintain durable ACID semantics, but not required to maintain consistency if the JET_bitReplayIgnoreLostLogs bit is specified during recovery. */ +#define JET_errSectorSizeNotSupported -583 /* The physical sector size reported by the disk subsystem, is unsupported by ESE for a specific file type. */ +#define JET_errRecoveredWithoutUndoDatabasesConsistent -584 /* Soft recovery successfully replayed all operations and intended to skip the Undo phase of recovery, but the Undo phase was not required */ +#define JET_wrnCommittedLogFilesLost 585 /* One or more logs that were committed to this database, were not recovered. The database is still clean/consistent, as though the lost log's transactions were committed lazily (and lost). */ +#define JET_errCommittedLogFileCorrupt -586 /* One or more logs were found to be corrupt during recovery. These log files are required to maintain durable ACID semantics, but not required to maintain consistency if the JET_bitIgnoreLostLogs bit and JET_paramDeleteOutOfRangeLogs is specified during recovery. */ +#define JET_wrnCommittedLogFilesRemoved 587 /* One or more logs that were committed to this database, were no recovered. The database is still clean/consistent, as though the corrupted log's transactions were committed lazily (and lost). */ +#define JET_wrnFinishWithUndo 588 /* Signal used by clients to indicate JetInit() finished with undo */ +#define JET_errLogSequenceChecksumMismatch -590 /* The previous log's accumulated segment checksum doesn't match the next log */ + +#define JET_wrnDatabaseRepaired 595 /* Database corruption has been repaired */ +#define JET_errPageInitializedMismatch -596 /* Database divergence mismatch. Page was uninitialized on remote node, but initialized on local node. */ + + +#define JET_errUnicodeTranslationBufferTooSmall -601 /* Unicode translation buffer too small */ +#define JET_errUnicodeTranslationFail -602 /* Unicode normalization failed */ +#define JET_errUnicodeNormalizationNotSupported -603 /* OS does not provide support for Unicode normalisation (and no normalisation callback was specified) */ +#define JET_errUnicodeLanguageValidationFailure -604 /* Can not validate the language */ + +#define JET_errExistingLogFileHasBadSignature -610 /* Existing log file has bad signature */ +#define JET_errExistingLogFileIsNotContiguous -611 /* Existing log file is not contiguous */ + +#define JET_errLogReadVerifyFailure -612 /* Checksum error in log file during backup */ + +#define JET_errCheckpointDepthTooDeep -614 // too many outstanding generations between checkpoint and current generation + +#define JET_errRestoreOfNonBackupDatabase -615 // hard recovery attempted on a database that wasn't a backup database +#define JET_errLogFileNotCopied -616 // log truncation attempted but not all required logs were copied +#define JET_errTransactionTooLong -618 // Too many outstanding generations between JetBeginTransaction and current generation. + +#define JET_errEngineFormatVersionNoLongerSupportedTooLow -619 /* The specified JET_ENGINEFORMATVERSION value is too low to be supported by this version of ESE. */ +#define JET_errEngineFormatVersionNotYetImplementedTooHigh -620 /* The specified JET_ENGINEFORMATVERSION value is too high, higher than this version of ESE knows about. */ +#define JET_errEngineFormatVersionParamTooLowForRequestedFeature -621 /* Thrown by a format feature (not at JetSetSystemParameter) if the client requests a feature that requires a version higher than that set for the JET_paramEngineFormatVersion. */ +#define JET_errEngineFormatVersionSpecifiedTooLowForLogVersion -622 /* The specified JET_ENGINEFORMATVERSION is set too low for this log stream, the log files have already been upgraded to a higher version. A higher JET_ENGINEFORMATVERSION value must be set in the param. */ +#define JET_errEngineFormatVersionSpecifiedTooLowForDatabaseVersion -623 /* The specified JET_ENGINEFORMATVERSION is set too low for this database file, the database file has already been upgraded to a higher version. A higher JET_ENGINEFORMATVERSION value must be set in the param. */ +#define JET_errDbTimeBeyondMaxRequired -625 /* dbtime on page greater than or equal to dbtimeAfter in record, but record is outside required range for the database */ +#define JET_errLogOperationInconsistentWithDatabase -626 /* Log record in the log is inconsistent with the current state of the database and cannot be applied */ +#define JET_errInsertKeyOutOfOrder -627 /* The insert attempted was not placed in correct key order. Possibly indicates transient memory issues. */ +#define JET_errBackupAbortByServer -801 /* Backup was aborted by server by calling JetTerm with JET_bitTermStopBackup or by calling JetStopBackup */ + +#define JET_errInvalidGrbit -900 /* Invalid flags parameter */ + +#define JET_errTermInProgress -1000 /* Termination in progress */ +#define JET_errFeatureNotAvailable -1001 /* API not supported */ +#define JET_errInvalidName -1002 /* Invalid name */ +#define JET_errInvalidParameter -1003 /* Invalid API parameter */ +#define JET_wrnColumnNull 1004 /* Column is NULL-valued */ +#define JET_wrnBufferTruncated 1006 /* Buffer too small for data */ +#define JET_wrnDatabaseAttached 1007 /* Database is already attached */ +#define JET_errDatabaseFileReadOnly -1008 /* Tried to attach a read-only database file for read/write operations */ +#define JET_wrnSortOverflow 1009 /* Sort does not fit in memory */ +#define JET_errInvalidDatabaseId -1010 /* Invalid database id */ +#define JET_errOutOfMemory -1011 /* Out of Memory */ +#define JET_errOutOfDatabaseSpace -1012 /* Maximum database size reached */ +#define JET_errOutOfCursors -1013 /* Out of table cursors */ +#define JET_errOutOfBuffers -1014 /* Out of database page buffers */ +#define JET_errTooManyIndexes -1015 /* Too many indexes */ +#define JET_errTooManyKeys -1016 /* Too many columns in an index */ +#define JET_errRecordDeleted -1017 /* Record has been deleted */ +#define JET_errReadVerifyFailure -1018 /* Checksum error on a database page */ +#define JET_errPageNotInitialized -1019 /* Blank database page */ +#define JET_errOutOfFileHandles -1020 /* Out of file handles */ +#define JET_errDiskReadVerificationFailure -1021 /* The OS returned ERROR_CRC from file IO */ +#define JET_errDiskIO -1022 /* Disk IO error */ +#define JET_errInvalidPath -1023 /* Invalid file path */ +#define JET_errInvalidSystemPath -1024 /* Invalid system path */ +#define JET_errInvalidLogDirectory -1025 /* Invalid log directory */ +#define JET_errRecordTooBig -1026 /* Record larger than maximum size */ +#define JET_errTooManyOpenDatabases -1027 /* Too many open databases */ +#define JET_errInvalidDatabase -1028 /* Not a database file */ +#define JET_errNotInitialized -1029 /* Database engine not initialized */ +#define JET_errAlreadyInitialized -1030 /* Database engine already initialized */ +#define JET_errInitInProgress -1031 /* Database engine is being initialized */ +#define JET_errFileAccessDenied -1032 /* Cannot access file, the file is locked or in use */ +#define JET_errBufferTooSmall -1038 /* Buffer is too small */ +#define JET_wrnSeekNotEqual 1039 /* Exact match not found during seek */ +#define JET_errTooManyColumns -1040 /* Too many columns defined */ +#define JET_errContainerNotEmpty -1043 /* Container is not empty */ +#define JET_errInvalidFilename -1044 /* Filename is invalid */ +#define JET_errInvalidBookmark -1045 /* Invalid bookmark */ +#define JET_errColumnInUse -1046 /* Column used in an index */ +#define JET_errInvalidBufferSize -1047 /* Data buffer doesn't match column size */ +#define JET_errColumnNotUpdatable -1048 /* Cannot set column value */ +#define JET_errIndexInUse -1051 /* Index is in use */ +#define JET_errLinkNotSupported -1052 /* Link support unavailable */ +#define JET_errNullKeyDisallowed -1053 /* Null keys are disallowed on index */ +#define JET_errNotInTransaction -1054 /* Operation must be within a transaction */ +#define JET_wrnNoErrorInfo 1055 /* No extended error information */ +#define JET_errMustRollback -1057 /* Transaction must rollback because failure of unversioned update */ +#define JET_wrnNoIdleActivity 1058 /* No idle activity occurred */ +#define JET_errTooManyActiveUsers -1059 /* Too many active database users */ +#define JET_errInvalidCountry -1061 /* Invalid or unknown country/region code */ +#define JET_errInvalidLanguageId -1062 /* Invalid or unknown language id */ +#define JET_errInvalidCodePage -1063 /* Invalid or unknown code page */ +#define JET_errInvalidLCMapStringFlags -1064 /* Invalid flags for LCMapString() */ +#define JET_errVersionStoreEntryTooBig -1065 /* Attempted to create a version store entry (RCE) larger than a version bucket */ +#define JET_errVersionStoreOutOfMemoryAndCleanupTimedOut -1066 /* Version store out of memory (and cleanup attempt failed to complete) */ +#define JET_wrnNoWriteLock 1067 /* No write lock at transaction level 0 */ +#define JET_wrnColumnSetNull 1068 /* Column set to NULL-value */ +#define JET_errVersionStoreOutOfMemory -1069 /* Version store out of memory (cleanup already attempted) */ +#define JET_errCannotIndex -1071 /* Cannot index escrow column */ +#define JET_errRecordNotDeleted -1072 /* Record has not been deleted */ +#define JET_errTooManyMempoolEntries -1073 /* Too many mempool entries requested */ +#define JET_errOutOfObjectIDs -1074 /* Out of btree ObjectIDs (perform offline defrag to reclaim freed/unused ObjectIds) */ +#define JET_errOutOfLongValueIDs -1075 /* Long-value ID counter has reached maximum value. (perform offline defrag to reclaim free/unused LongValueIDs) */ +#define JET_errOutOfAutoincrementValues -1076 /* Auto-increment counter has reached maximum value (offline defrag WILL NOT be able to reclaim free/unused Auto-increment values). */ +#define JET_errOutOfDbtimeValues -1077 /* Dbtime counter has reached maximum value (perform offline defrag to reclaim free/unused Dbtime values) */ +#define JET_errOutOfSequentialIndexValues -1078 /* Sequential index counter has reached maximum value (perform offline defrag to reclaim free/unused SequentialIndex values) */ + +#define JET_errRunningInOneInstanceMode -1080 /* Multi-instance call with single-instance mode enabled */ +#define JET_errRunningInMultiInstanceMode -1081 /* Single-instance call with multi-instance mode enabled */ +#define JET_errSystemParamsAlreadySet -1082 /* Global system parameters have already been set */ + +#define JET_errSystemPathInUse -1083 /* System path already used by another database instance */ +#define JET_errLogFilePathInUse -1084 /* Logfile path already used by another database instance */ +#define JET_errTempPathInUse -1085 /* Temp path already used by another database instance */ +#define JET_errInstanceNameInUse -1086 /* Instance Name already in use */ +#define JET_errSystemParameterConflict -1087 /* Global system parameters have already been set, but to a conflicting or disagreeable state to the specified values. */ + +#define JET_errInstanceUnavailable -1090 /* This instance cannot be used because it encountered a fatal error */ +#define JET_errDatabaseUnavailable -1091 /* This database cannot be used because it encountered a fatal error */ +#define JET_errInstanceUnavailableDueToFatalLogDiskFull -1092 /* This instance cannot be used because it encountered a log-disk-full error performing an operation (likely transaction rollback) that could not tolerate failure */ +#define JET_errInvalidSesparamId -1093 /* This JET_sesparam* identifier is not known to the ESE engine. */ + +#define JET_errTooManyRecords -1094 /* There are too many records to enumerate, switch to an API that handles 64-bit numbers */ + +#define JET_errInvalidDbparamId -1095 /* This JET_dbparam* identifier is not known to the ESE engine. */ + +#define JET_errOutOfSessions -1101 /* Out of sessions */ +#define JET_errWriteConflict -1102 /* Write lock failed due to outstanding write lock */ +#define JET_errTransTooDeep -1103 /* Transactions nested too deeply */ +#define JET_errInvalidSesid -1104 /* Invalid session handle */ +#define JET_errWriteConflictPrimaryIndex -1105 /* Update attempted on uncommitted primary index */ +#define JET_errInTransaction -1108 /* Operation not allowed within a transaction */ +#define JET_errRollbackRequired -1109 /* Must rollback current transaction -- cannot commit or begin a new one */ +#define JET_errTransReadOnly -1110 /* Read-only transaction tried to modify the database */ +#define JET_errSessionWriteConflict -1111 /* Attempt to replace the same record by two different cursors in the same session */ + +#define JET_errRecordTooBigForBackwardCompatibility -1112 /* record would be too big if represented in a database format from a previous version of Jet */ +#define JET_errCannotMaterializeForwardOnlySort -1113 /* The temp table could not be created due to parameters that conflict with JET_bitTTForwardOnly */ + +#define JET_errSesidTableIdMismatch -1114 /* This session handle can't be used with this table id */ +#define JET_errInvalidInstance -1115 /* Invalid instance handle */ +#define JET_errDirtyShutdown -1116 /* The instance was shutdown successfully but all the attached databases were left in a dirty state by request via JET_bitTermDirty */ +// unused -1117 +#define JET_errReadPgnoVerifyFailure -1118 /* The database page read from disk had the wrong page number. */ +#define JET_errReadLostFlushVerifyFailure -1119 /* The database page read from disk had a previous write not represented on the page. */ +#define JET_errFileSystemCorruption -1121 /* File system operation failed with an error indicating the file system is corrupt. */ +#define JET_wrnShrinkNotPossible 1122 /* Database file could not be shrunk because there is not enough internal free space available or there is unmovable data present. */ +#define JET_errRecoveryVerifyFailure -1123 /* One or more database pages read from disk during recovery do not match the expected state. */ + +#define JET_errFilteredMoveNotSupported -1124 /* Attempted to provide a filter to JetSetCursorFilter() in an unsupported scenario. */ + + +#define JET_errDatabaseDuplicate -1201 /* Database already exists */ +#define JET_errDatabaseInUse -1202 /* Database in use */ +#define JET_errDatabaseNotFound -1203 /* No such database */ +#define JET_errDatabaseInvalidName -1204 /* Invalid database name */ +#define JET_errDatabaseInvalidPages -1205 /* Invalid number of pages */ +#define JET_errDatabaseCorrupted -1206 /* Non database file or corrupted db */ +#define JET_errDatabaseLocked -1207 /* Database exclusively locked */ +#define JET_errCannotDisableVersioning -1208 /* Cannot disable versioning for this database */ +#define JET_errInvalidDatabaseVersion -1209 /* Database engine is incompatible with database */ + +#define JET_errDatabase200Format -1210 /* The database is in an older (200) format */ +#define JET_errDatabase400Format -1211 /* The database is in an older (400) format */ +#define JET_errDatabase500Format -1212 /* The database is in an older (500) format */ + +#define JET_errPageSizeMismatch -1213 /* The database page size does not match the engine */ +#define JET_errTooManyInstances -1214 /* Cannot start any more database instances */ +#define JET_errDatabaseSharingViolation -1215 /* A different database instance is using this database */ +#define JET_errAttachedDatabaseMismatch -1216 /* An outstanding database attachment has been detected at the start or end of recovery, but database is missing or does not match attachment info */ +#define JET_errDatabaseInvalidPath -1217 /* Specified path to database file is illegal */ +#define JET_errDatabaseIdInUse -1218 /* A database is being assigned an id already in use */ +#define JET_errForceDetachNotAllowed -1219 /* Force Detach allowed only after normal detach errored out */ +#define JET_errCatalogCorrupted -1220 /* Corruption detected in catalog */ +#define JET_errPartiallyAttachedDB -1221 /* Database is partially attached. Cannot complete attach operation */ +#define JET_errDatabaseSignInUse -1222 /* Database with same signature in use */ + +#define JET_errDatabaseCorruptedNoRepair -1224 /* Corrupted db but repair not allowed */ +#define JET_errInvalidCreateDbVersion -1225 /* recovery tried to replay a database creation, but the database was originally created with an incompatible (likely older) version of the database engine */ + + +#define JET_errDatabaseNotReady -1230 /* Recovery on this database has not yet completed enough to permit access. */ +#define JET_errDatabaseAttachedForRecovery -1231 /* Database is attached but only for recovery. It must be explicitly attached before it can be opened. */ +#define JET_errTransactionsNotReadyDuringRecovery -1232 /* Recovery has not seen any Begin0/Commit0 records and so does not know what trxBegin0 to assign to this transaction */ + + +#define JET_wrnTableEmpty 1301 /* Opened an empty table */ +#define JET_errTableLocked -1302 /* Table is exclusively locked */ +#define JET_errTableDuplicate -1303 /* Table already exists */ +#define JET_errTableInUse -1304 /* Table is in use, cannot lock */ +#define JET_errObjectNotFound -1305 /* No such table or object */ +#define JET_errDensityInvalid -1307 /* Bad file/index density */ +#define JET_errTableNotEmpty -1308 /* Table is not empty */ +#define JET_errInvalidTableId -1310 /* Invalid table id */ +#define JET_errTooManyOpenTables -1311 /* Cannot open any more tables (cleanup already attempted) */ +#define JET_errIllegalOperation -1312 /* Oper. not supported on table */ +#define JET_errTooManyOpenTablesAndCleanupTimedOut -1313 /* Cannot open any more tables (cleanup attempt failed to complete) */ +#define JET_errObjectDuplicate -1314 /* Table or object name in use */ +#define JET_errInvalidObject -1316 /* Object is invalid for operation */ +#define JET_errCannotDeleteTempTable -1317 /* Use CloseTable instead of DeleteTable to delete temp table */ +#define JET_errCannotDeleteSystemTable -1318 /* Illegal attempt to delete a system table */ +#define JET_errCannotDeleteTemplateTable -1319 /* Illegal attempt to delete a template table */ +#define JET_errExclusiveTableLockRequired -1322 /* Must have exclusive lock on table. */ +#define JET_errFixedDDL -1323 /* DDL operations prohibited on this table */ +#define JET_errFixedInheritedDDL -1324 /* On a derived table, DDL operations are prohibited on inherited portion of DDL */ +#define JET_errCannotNestDDL -1325 /* Nesting of hierarchical DDL is not currently supported. */ +#define JET_errDDLNotInheritable -1326 /* Tried to inherit DDL from a table not marked as a template table. */ +#define JET_wrnTableInUseBySystem 1327 /* System cleanup has a cursor open on the table */ +#define JET_errInvalidSettings -1328 /* System parameters were set improperly */ +#define JET_errClientRequestToStopJetService -1329 /* Client has requested stop service */ +#define JET_errCannotAddFixedVarColumnToDerivedTable -1330 /* Template table was created with NoFixedVarColumnsInDerivedTables */ + +/* DDL errors +/**/ +// Note: Some DDL errors have snuck into other categories. +#define JET_errIndexCantBuild -1401 /* Index build failed */ +#define JET_errIndexHasPrimary -1402 /* Primary index already defined */ +#define JET_errIndexDuplicate -1403 /* Index is already defined */ +#define JET_errIndexNotFound -1404 /* No such index */ +#define JET_errIndexMustStay -1405 /* Cannot delete clustered index */ +#define JET_errIndexInvalidDef -1406 /* Illegal index definition */ +#define JET_errInvalidCreateIndex -1409 /* Invalid create index description */ +#define JET_errTooManyOpenIndexes -1410 /* Out of index description blocks */ +#define JET_errMultiValuedIndexViolation -1411 /* Non-unique inter-record index keys generated for a multivalued index */ +#define JET_errIndexBuildCorrupted -1412 /* Failed to build a secondary index that properly reflects primary index */ +#define JET_errPrimaryIndexCorrupted -1413 /* Primary index is corrupt. The database must be defragmented or the table deleted. */ +#define JET_errSecondaryIndexCorrupted -1414 /* Secondary index is corrupt. The database must be defragmented or the affected index must be deleted. If the corrupt index is over Unicode text, a likely cause is a sort-order change. */ +#define JET_wrnCorruptIndexDeleted 1415 /* Out of date index removed */ +#define JET_errInvalidIndexId -1416 /* Illegal index id */ +#define JET_wrnPrimaryIndexOutOfDate 1417 /* The Primary index is created with an incompatible OS sort version. The table can not be safely modified. */ +#define JET_wrnSecondaryIndexOutOfDate 1418 /* One or more Secondary index is created with an incompatible OS sort version. Any index over Unicode text should be deleted. */ + +#define JET_errIndexTuplesSecondaryIndexOnly -1430 // tuple index can only be on a secondary index +#define JET_errIndexTuplesTooManyColumns -1431 // tuple index may only have eleven columns in the index +#define JET_errIndexTuplesOneColumnOnly JET_errIndexTuplesTooManyColumns /* OBSOLETE */ +#define JET_errIndexTuplesNonUniqueOnly -1432 // tuple index must be a non-unique index +#define JET_errIndexTuplesTextBinaryColumnsOnly -1433 // tuple index must be on a text/binary column +#define JET_errIndexTuplesTextColumnsOnly JET_errIndexTuplesTextBinaryColumnsOnly /* OBSOLETE */ +#define JET_errIndexTuplesVarSegMacNotAllowed -1434 // tuple index does not allow setting cbVarSegMac +#define JET_errIndexTuplesInvalidLimits -1435 // invalid min/max tuple length or max characters to index specified +#define JET_errIndexTuplesCannotRetrieveFromIndex -1436 // cannot call RetrieveColumn() with RetrieveFromIndex on a tuple index +#define JET_errIndexTuplesKeyTooSmall -1437 // specified key does not meet minimum tuple length +#define JET_errInvalidLVChunkSize -1438 // Specified LV chunk size is not supported +#define JET_errColumnCannotBeEncrypted -1439 // Only JET_coltypLongText and JET_coltypLongBinary columns without default values can be encrypted +#define JET_errCannotIndexOnEncryptedColumn -1440 // Cannot index encrypted column + +/* DML errors +/**/ +// Note: Some DML errors have snuck into other categories. +// Note: Some DDL errors have inappropriately snuck in here. +#define JET_errColumnLong -1501 /* Column value is long */ +#define JET_errColumnNoChunk -1502 /* No such chunk in long value */ +#define JET_errColumnDoesNotFit -1503 /* Field will not fit in record */ +#define JET_errNullInvalid -1504 /* Null not valid */ +#define JET_errColumnIndexed -1505 /* Column indexed, cannot delete */ +#define JET_errColumnTooBig -1506 /* Field length is greater than maximum */ +#define JET_errColumnNotFound -1507 /* No such column */ +#define JET_errColumnDuplicate -1508 /* Field is already defined */ +#define JET_errMultiValuedColumnMustBeTagged -1509 /* Attempted to create a multi-valued column, but column was not Tagged */ +#define JET_errColumnRedundant -1510 /* Second autoincrement or version column */ +#define JET_errInvalidColumnType -1511 /* Invalid column data type */ +#define JET_wrnColumnMaxTruncated 1512 /* Max length too big, truncated */ +#define JET_errTaggedNotNULL -1514 /* No non-NULL tagged columns */ +#define JET_errNoCurrentIndex -1515 /* Invalid w/o a current index */ +#define JET_errKeyIsMade -1516 /* The key is completely made */ +#define JET_errBadColumnId -1517 /* Column Id Incorrect */ +#define JET_errBadItagSequence -1518 /* Bad itagSequence for tagged column */ +#define JET_errColumnInRelationship -1519 /* Cannot delete, column participates in relationship */ +#define JET_wrnCopyLongValue 1520 /* Single instance column bursted */ +#define JET_errCannotBeTagged -1521 /* AutoIncrement and Version cannot be tagged */ +#define JET_errDefaultValueTooBig -1524 /* Default value exceeds maximum size */ +#define JET_errMultiValuedDuplicate -1525 /* Duplicate detected on a unique multi-valued column */ +#define JET_errLVCorrupted -1526 /* Corruption encountered in long-value tree */ +#define JET_errMultiValuedDuplicateAfterTruncation -1528 /* Duplicate detected on a unique multi-valued column after data was normalized, and normalizing truncated the data before comparison */ +#define JET_errDerivedColumnCorruption -1529 /* Invalid column in derived table */ +#define JET_errInvalidPlaceholderColumn -1530 /* Tried to convert column to a primary index placeholder, but column doesn't meet necessary criteria */ +#define JET_wrnColumnSkipped 1531 /* Column value(s) not returned because the corresponding column id or itagSequence requested for enumeration was null */ +#define JET_wrnColumnNotLocal 1532 /* Column value(s) not returned because they could not be reconstructed from the data at hand */ +#define JET_wrnColumnMoreTags 1533 /* Column values exist that were not requested for enumeration */ +#define JET_wrnColumnTruncated 1534 /* Column value truncated at the requested size limit during enumeration */ +#define JET_wrnColumnPresent 1535 /* Column values exist but were not returned by request */ +#define JET_wrnColumnSingleValue 1536 /* Column value returned in JET_COLUMNENUM as a result of JET_bitEnumerateCompressOutput */ +#define JET_wrnColumnDefault 1537 /* Column value(s) not returned because they were set to their default value(s) and JET_bitEnumerateIgnoreDefault was specified */ +#define JET_errColumnCannotBeCompressed -1538 /* Only JET_coltypLongText and JET_coltypLongBinary columns can be compressed */ +#define JET_wrnColumnNotInRecord 1539 /* Column value(s) not returned because they could not be reconstructed from the data in the record */ +#define JET_errColumnNoEncryptionKey -1540 /* Cannot retrieve/set encrypted column without an encryption key */ +#define JET_wrnColumnReference 1541 /* Column value returned as a reference because it could not be reconstructed from the data in the record */ + +#define JET_errRecordNotFound -1601 /* The key was not found */ +#define JET_errRecordNoCopy -1602 /* No working buffer */ +#define JET_errNoCurrentRecord -1603 /* Currency not on a record */ +#define JET_errRecordPrimaryChanged -1604 /* Primary key may not change */ +#define JET_errKeyDuplicate -1605 /* Illegal duplicate key */ +#define JET_errAlreadyPrepared -1607 /* Attempted to update record when record update was already in progress */ +#define JET_errKeyNotMade -1608 /* No call to JetMakeKey */ +#define JET_errUpdateNotPrepared -1609 /* No call to JetPrepareUpdate */ +#define JET_wrnDataHasChanged 1610 /* Data has changed */ +#define JET_errDataHasChanged -1611 /* Data has changed, operation aborted */ +#define JET_wrnKeyChanged 1618 /* Moved to new key */ +#define JET_errLanguageNotSupported -1619 /* Windows installation does not support language */ +#define JET_errDecompressionFailed -1620 /* Internal error: data could not be decompressed */ +#define JET_errUpdateMustVersion -1621 /* No version updates only for uncommitted tables */ +#define JET_errDecryptionFailed -1622 /* Data could not be decrypted */ +#define JET_errEncryptionBadItag -1623 /* Cannot encrypt tagged columns with itag>1 */ +#define JET_errSetAutoIncrementTooHigh -1624 /* The auto-increment value that the user tried to set explicitly is too high . */ +#define JET_errAutoIncrementNotSet -1625 /* The user must have explicitly set the auto-increment column for this table. */ + +/* Sort Table errors +/**/ +#define JET_errTooManySorts -1701 /* Too many sort processes */ +#define JET_errInvalidOnSort -1702 /* Invalid operation on Sort */ + +/* Other errors +/**/ +#define JET_errTempFileOpenError -1803 /* Temp file could not be opened */ +#define JET_errTooManyAttachedDatabases -1805 /* Too many open databases */ +#define JET_errDiskFull -1808 /* No space left on disk */ +#define JET_errPermissionDenied -1809 /* Permission denied */ +#define JET_errFileNotFound -1811 /* File not found */ +#define JET_errFileInvalidType -1812 /* Invalid file type */ +#define JET_wrnFileOpenReadOnly 1813 /* Database file is read only */ +#define JET_errFileAlreadyExists -1814 /* File already exists */ + + +#define JET_errAfterInitialization -1850 /* Cannot Restore after init. */ +#define JET_errLogCorrupted -1852 /* Logs could not be interpreted */ + + +#define JET_errInvalidOperation -1906 /* Invalid operation */ +#define JET_errAccessDenied -1907 /* Access denied */ +#define JET_wrnIdleFull 1908 /* Idle registry full */ +#define JET_errTooManySplits -1909 /* Infinite split */ +#define JET_errSessionSharingViolation -1910 /* Multiple threads are using the same session */ +#define JET_errEntryPointNotFound -1911 /* An entry point in a DLL we require could not be found */ +#define JET_errSessionContextAlreadySet -1912 /* Specified session already has a session context set */ +#define JET_errSessionContextNotSetByThisThread -1913 /* Tried to reset session context, but current thread did not originally set the session context */ +#define JET_errSessionInUse -1914 /* Tried to terminate session in use */ +#define JET_errRecordFormatConversionFailed -1915 /* Internal error during dynamic record format conversion */ +#define JET_errOneDatabasePerSession -1916 /* Just one open user database per session is allowed (JET_paramOneDatabasePerSession) */ +#define JET_errRollbackError -1917 /* error during rollback */ +#define JET_errFlushMapVersionUnsupported -1918 /* The version of the persisted flush map is not supported by this version of the engine. */ +#define JET_errFlushMapDatabaseMismatch -1919 /* The persisted flush map and the database do not match. */ +#define JET_errFlushMapUnrecoverable -1920 /* The persisted flush map cannot be reconstructed. */ + + +#define JET_wrnDefragAlreadyRunning 2000 /* Online defrag already running on specified database */ +#define JET_wrnDefragNotRunning 2001 /* Online defrag not running on specified database */ +#define JET_errDatabaseAlreadyRunningMaintenance -2004 /* The operation did not complete successfully because the database is already running maintenance on specified database */ + + +#define JET_wrnCallbackNotRegistered 2100 /* Unregistered a non-existent callback function */ +#define JET_errCallbackFailed -2101 /* A callback failed */ +#define JET_errCallbackNotResolved -2102 /* A callback function could not be found */ + +#define JET_errSpaceHintsInvalid -2103 /* An element of the JET space hints structure was not correct or actionable. */ + +#define JET_errOSSnapshotInvalidSequence -2401 /* OS Shadow copy API used in an invalid sequence */ +#define JET_errOSSnapshotTimeOut -2402 /* OS Shadow copy ended with time-out */ +#define JET_errOSSnapshotNotAllowed -2403 /* OS Shadow copy not allowed (backup or recovery in progress) */ +#define JET_errOSSnapshotInvalidSnapId -2404 /* invalid JET_OSSNAPID */ + + +/** KVP ERRORS + **/ + +#define JET_errLSCallbackNotSpecified -3000 /* Attempted to use Local Storage without a callback function being specified */ +#define JET_errLSAlreadySet -3001 /* Attempted to set Local Storage for an object which already had it set */ +#define JET_errLSNotSet -3002 /* Attempted to retrieve Local Storage from an object which didn't have it set */ + +/** FILE and DISK ERRORS + **/ +//JET_errFileAccessDenied -1032 +//JET_errFileNotFound -1811 +//JET_errInvalidFilename -1044 +#define JET_errFileIOSparse -4000 /* an I/O was issued to a location that was sparse */ +#define JET_errFileIOBeyondEOF -4001 /* a read was issued to a location beyond EOF (writes will expand the file) */ +#define JET_errFileIOAbort -4002 /* instructs the JET_ABORTRETRYFAILCALLBACK caller to abort the specified I/O */ +#define JET_errFileIORetry -4003 /* instructs the JET_ABORTRETRYFAILCALLBACK caller to retry the specified I/O */ +#define JET_errFileIOFail -4004 /* instructs the JET_ABORTRETRYFAILCALLBACK caller to fail the specified I/O */ +#define JET_errFileCompressed -4005 /* read/write access is not supported on compressed files */ + +/** CLIENT RESERVED ERROR SPACE. + An unused errors/warnings section. JET will never generate values in this space. Clients may use this space + without conflicting with ESE. Note that the warnings are reserved as well as the errors. That is, the + range from -10,000 to -11,999 is reserved as well as the range from 10,000 to 11,999. + **/ +#define JET_errClientSpaceBegin -10000 /* Begin of the error space reserved for JET client use */ +#define JET_errClientSpaceEnd -11999 /* End of the error space reserved for JET client use */ + +/**********************************************************************/ +/*********************** PROTOTYPES **************************/ +/**********************************************************************/ + +#if !defined(_JET_NOPROTOTYPES) + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetInit( + _Inout_opt_ JET_INSTANCE * pinstance ); + + +#if ( JET_VERSION >= 0x0501 ) +JET_ERR JET_API +JetInit2( + _Inout_opt_ JET_INSTANCE * pinstance, + _In_ JET_GRBIT grbit ); + +#endif // JET_VERSION >= 0x0501 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) +#if ( JET_VERSION < 0x0600 ) +#define JetInit3A JetInit3 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetInit3A( + _Inout_opt_ JET_INSTANCE * pinstance, + _In_opt_ JET_RSTINFO_A * prstInfo, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetInit3W( + _Inout_opt_ JET_INSTANCE * pinstance, + _In_opt_ JET_RSTINFO_W * prstInfo, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetInit3 JetInit3W +#else +#define JetInit3 JetInit3A +#endif +#endif + + +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetCreateInstanceA JetCreateInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateInstanceA( + _Out_ JET_INSTANCE * pinstance, + _In_opt_ JET_PCSTR szInstanceName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateInstanceW( + _Out_ JET_INSTANCE * pinstance, + _In_opt_ JET_PCWSTR szInstanceName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateInstance JetCreateInstanceW +#else +#define JetCreateInstance JetCreateInstanceA +#endif +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateInstance2A JetCreateInstance2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateInstance2A( + _Out_ JET_INSTANCE * pinstance, + _In_opt_ JET_PCSTR szInstanceName, + _In_opt_ JET_PCSTR szDisplayName, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateInstance2W( + _Out_ JET_INSTANCE * pinstance, + _In_opt_ JET_PCWSTR szInstanceName, + _In_opt_ JET_PCWSTR szDisplayName, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateInstance2 JetCreateInstance2W +#else +#define JetCreateInstance2 JetCreateInstance2A +#endif +#endif + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetInstanceMiscInfo( + _In_ JET_INSTANCE instance, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0600 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetTerm( + _In_ JET_INSTANCE instance ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetTerm2( + _In_ JET_INSTANCE instance, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetStopService(); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetStopServiceInstance( + _In_ JET_INSTANCE instance ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetStopServiceInstance2( + _In_ JET_INSTANCE instance, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0602 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetStopBackup(); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetStopBackupInstance( + _In_ JET_INSTANCE instance ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION < 0x0600 ) +#define JetSetSystemParameterA JetSetSystemParameter +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetSystemParameterA( + _Inout_opt_ JET_INSTANCE * pinstance, + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 paramid, + _In_opt_ JET_API_PTR lParam, + _In_opt_ JET_PCSTR szParam ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetSystemParameterW( + _Inout_opt_ JET_INSTANCE * pinstance, + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 paramid, + _In_opt_ JET_API_PTR lParam, + _In_opt_ JET_PCWSTR szParam ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetSystemParameter JetSetSystemParameterW +#else +#define JetSetSystemParameter JetSetSystemParameterA +#endif +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetGetSystemParameterA JetGetSystemParameter +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetSystemParameterA( + _In_ JET_INSTANCE instance, + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 paramid, + _Out_opt_ JET_API_PTR * plParam, + _Out_writes_bytes_opt_( cbMax ) JET_PSTR szParam, + _In_ JET_UINT32 cbMax ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetSystemParameterW( + _In_ JET_INSTANCE instance, + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 paramid, + _Out_opt_ JET_API_PTR * plParam, + _Out_writes_bytes_opt_( cbMax ) JET_PWSTR szParam, + _In_ JET_UINT32 cbMax ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetSystemParameter JetGetSystemParameterW +#else +#define JetGetSystemParameter JetGetSystemParameterA +#endif +#endif + + +#if ( JET_VERSION >= 0x0501 ) + +#if ( JET_VERSION < 0x0600 ) +#define JetEnableMultiInstanceA JetEnableMultiInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEnableMultiInstanceA( + _In_reads_opt_( csetsysparam ) JET_SETSYSPARAM_A * psetsysparam, + _In_ JET_UINT32 csetsysparam, + _Out_opt_ JET_UINT32 * pcsetsucceed ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEnableMultiInstanceW( + _In_reads_opt_( csetsysparam ) JET_SETSYSPARAM_W * psetsysparam, + _In_ JET_UINT32 csetsysparam, + _Out_opt_ JET_UINT32 * pcsetsucceed ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetEnableMultiInstance JetEnableMultiInstanceW +#else +#define JetEnableMultiInstance JetEnableMultiInstanceA +#endif +#endif + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetThreadStats( + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION < 0x0600 ) +#define JetBeginSessionA JetBeginSession +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetBeginSessionA( + _In_ JET_INSTANCE instance, + _Out_ JET_SESID * psesid, + _In_opt_ JET_PCSTR szUserName, + _In_opt_ JET_PCSTR szPassword ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetBeginSessionW( + _In_ JET_INSTANCE instance, + _Out_ JET_SESID * psesid, + _In_opt_ JET_PCWSTR szUserName, + _In_opt_ JET_PCWSTR szPassword ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetBeginSession JetBeginSessionW +#else +#define JetBeginSession JetBeginSessionA +#endif +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDupSession( + _In_ JET_SESID sesid, + _Out_ JET_SESID * psesid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEndSession( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetVersion( + _In_ JET_SESID sesid, + _Out_ JET_UINT32 * pwVersion ); + +JET_ERR JET_API +JetIdle( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateDatabaseA JetCreateDatabase +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateDatabaseA( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szFilename, + _In_opt_ JET_PCSTR szConnect, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateDatabaseW( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szFilename, + _In_opt_ JET_PCWSTR szConnect, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateDatabase JetCreateDatabaseW +#else +#define JetCreateDatabase JetCreateDatabaseA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateDatabase2A JetCreateDatabase2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateDatabase2A( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szFilename, + _In_ const JET_UINT32 cpgDatabaseSizeMax, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetCreateDatabase2W( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szFilename, + _In_ const JET_UINT32 cpgDatabaseSizeMax, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateDatabase2 JetCreateDatabase2W +#else +#define JetCreateDatabase2 JetCreateDatabase2A +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetAttachDatabaseA JetAttachDatabase +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetAttachDatabaseA( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szFilename, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetAttachDatabaseW( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szFilename, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetAttachDatabase JetAttachDatabaseW +#else +#define JetAttachDatabase JetAttachDatabaseA +#endif +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetAttachDatabase2A JetAttachDatabase2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetAttachDatabase2A( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szFilename, + _In_ const JET_UINT32 cpgDatabaseSizeMax, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetAttachDatabase2W( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szFilename, + _In_ const JET_UINT32 cpgDatabaseSizeMax, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetAttachDatabase2 JetAttachDatabase2W +#else +#define JetAttachDatabase2 JetAttachDatabase2A +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetDetachDatabaseA JetDetachDatabase +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDetachDatabaseA( + _In_ JET_SESID sesid, + _In_opt_ JET_PCSTR szFilename ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDetachDatabaseW( + _In_ JET_SESID sesid, + _In_opt_ JET_PCWSTR szFilename ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDetachDatabase JetDetachDatabaseW +#else +#define JetDetachDatabase JetDetachDatabaseA +#endif +#endif + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetDetachDatabase2A JetDetachDatabase2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDetachDatabase2A( + _In_ JET_SESID sesid, + _In_opt_ JET_PCSTR szFilename, + _In_ JET_GRBIT grbit); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDetachDatabase2W( + _In_ JET_SESID sesid, + _In_opt_ JET_PCWSTR szFilename, + _In_ JET_GRBIT grbit); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDetachDatabase2 JetDetachDatabase2W +#else +#define JetDetachDatabase2 JetDetachDatabase2A +#endif +#endif + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetObjectInfoA JetGetObjectInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetObjectInfoA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_OBJTYP objtyp, + _In_opt_ JET_PCSTR szContainerName, + _In_opt_ JET_PCSTR szObjectName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetObjectInfoW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_OBJTYP objtyp, + _In_opt_ JET_PCWSTR szContainerName, + _In_opt_ JET_PCWSTR szObjectName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetObjectInfo JetGetObjectInfoW +#else +#define JetGetObjectInfo JetGetObjectInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetTableInfoA JetGetTableInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTableInfoA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTableInfoW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetTableInfo JetGetTableInfoW +#else +#define JetGetTableInfo JetGetTableInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateTableA JetCreateTable +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName, + _In_ JET_UINT32 lPages, + _In_ JET_UINT32 lDensity, + _Out_ JET_TABLEID * ptableid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName, + _In_ JET_UINT32 lPages, + _In_ JET_UINT32 lDensity, + _Out_ JET_TABLEID * ptableid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateTable JetCreateTableW +#else +#define JetCreateTable JetCreateTableA +#endif +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateTableColumnIndexA JetCreateTableColumnIndex +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndexA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE_A * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndexW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE_W * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateTableColumnIndex JetCreateTableColumnIndexW +#else +#define JetCreateTableColumnIndex JetCreateTableColumnIndexA +#endif +#endif + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetCreateTableColumnIndex2A JetCreateTableColumnIndex2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndex2A( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE2_A * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndex2W( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE2_W * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateTableColumnIndex2 JetCreateTableColumnIndex2W +#else +#define JetCreateTableColumnIndex2 JetCreateTableColumnIndex2A +#endif +#endif // JET_VERSION >= 0x0600 +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0601 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndex3A( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE3_A * ptablecreate ); + +JET_ERR JET_API +JetCreateTableColumnIndex3W( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE3_W * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateTableColumnIndex3 JetCreateTableColumnIndex3W +#else +#define JetCreateTableColumnIndex3 JetCreateTableColumnIndex3A +#endif +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndex4A( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE4_A * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndex4W( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE4_W * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateTableColumnIndex4 JetCreateTableColumnIndex4W +#else +#define JetCreateTableColumnIndex4 JetCreateTableColumnIndex4A +#endif +#endif // JET_VERSION >= 0x0602 + + +#if ( JET_VERSION < 0x0600 ) +#define JetDeleteTableA JetDeleteTable +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteTableA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteTableW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDeleteTable JetDeleteTableW +#else +#define JetDeleteTable JetDeleteTableA +#endif +#endif +#if ( JET_VERSION < 0x0600 ) +#define JetRenameTableA JetRenameTable +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRenameTableA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szName, + _In_ JET_PCSTR szNameNew ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetRenameTableW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szName, + _In_ JET_PCWSTR szNameNew ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetRenameTable JetRenameTableW +#else +#define JetRenameTable JetRenameTableA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetTableColumnInfoA JetGetTableColumnInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTableColumnInfoA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szColumnName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetGetTableColumnInfoW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szColumnName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetTableColumnInfo JetGetTableColumnInfoW +#else +#define JetGetTableColumnInfo JetGetTableColumnInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetColumnInfoA JetGetColumnInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetColumnInfoA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName, + _In_opt_ JET_PCSTR pColumnNameOrId, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetGetColumnInfoW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName, + _In_opt_ JET_PCWSTR pwColumnNameOrId, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetColumnInfo JetGetColumnInfoW +#else +#define JetGetColumnInfo JetGetColumnInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetAddColumnA JetAddColumn +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetAddColumnA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szColumnName, + _In_ const JET_COLUMNDEF * pcolumndef, + _In_reads_bytes_opt_( cbDefault ) JET_PCVOID pvDefault, + _In_ JET_UINT32 cbDefault, + _Out_opt_ JET_COLUMNID * pcolumnid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetAddColumnW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szColumnName, + _In_ const JET_COLUMNDEF * pcolumndef, + _In_reads_bytes_opt_( cbDefault ) JET_PCVOID pvDefault, + _In_ JET_UINT32 cbDefault, + _Out_opt_ JET_COLUMNID * pcolumnid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetAddColumn JetAddColumnW +#else +#define JetAddColumn JetAddColumnA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetDeleteColumnA JetDeleteColumn +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteColumnA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szColumnName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteColumnW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szColumnName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDeleteColumn JetDeleteColumnW +#else +#define JetDeleteColumn JetDeleteColumnA +#endif +#endif + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetDeleteColumn2A JetDeleteColumn2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteColumn2A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szColumnName, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteColumn2W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szColumnName, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDeleteColumn2 JetDeleteColumn2W +#else +#define JetDeleteColumn2 JetDeleteColumn2A +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetRenameColumnA JetRenameColumn +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRenameColumnA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szName, + _In_ JET_PCSTR szNameNew, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRenameColumnW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szName, + _In_ JET_PCWSTR szNameNew, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetRenameColumn JetRenameColumnW +#else +#define JetRenameColumn JetRenameColumnA +#endif +#endif + + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetSetColumnDefaultValueA JetSetColumnDefaultValue +#endif + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetColumnDefaultValueA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName, + _In_ JET_PCSTR szColumnName, + _In_reads_bytes_( cbData ) JET_PCVOID pvData, + _In_ const JET_UINT32 cbData, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetColumnDefaultValueW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName, + _In_ JET_PCWSTR szColumnName, + _In_reads_bytes_( cbData ) JET_PCVOID pvData, + _In_ const JET_UINT32 cbData, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetColumnDefaultValue JetSetColumnDefaultValueW +#else +#define JetSetColumnDefaultValue JetSetColumnDefaultValueA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetTableIndexInfoA JetGetTableIndexInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTableIndexInfoA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szIndexName, + _Out_writes_bytes_( cbResult ) JET_PVOID pvResult, + _In_ JET_UINT32 cbResult, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTableIndexInfoW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szIndexName, + _Out_writes_bytes_( cbResult ) JET_PVOID pvResult, + _In_ JET_UINT32 cbResult, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetTableIndexInfo JetGetTableIndexInfoW +#else +#define JetGetTableIndexInfo JetGetTableIndexInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetIndexInfoA JetGetIndexInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetIndexInfoA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName, + _In_opt_ JET_PCSTR szIndexName, + _Out_writes_bytes_( cbResult ) JET_PVOID pvResult, + _In_ JET_UINT32 cbResult, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetIndexInfoW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName, + _In_opt_ JET_PCWSTR szIndexName, + _Out_writes_bytes_( cbResult ) JET_PVOID pvResult, + _In_ JET_UINT32 cbResult, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetIndexInfo JetGetIndexInfoW +#else +#define JetGetIndexInfo JetGetIndexInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateIndexA JetCreateIndex +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndexA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szIndexName, + _In_ JET_GRBIT grbit, + _In_reads_bytes_( cbKey ) JET_PCSTR szKey, + _In_ JET_UINT32 cbKey, + _In_ JET_UINT32 lDensity ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndexW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szIndexName, + _In_ JET_GRBIT grbit, + _In_reads_bytes_( cbKey ) JET_PCWSTR szKey, + _In_ JET_UINT32 cbKey, + _In_ JET_UINT32 lDensity ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateIndex JetCreateIndexW +#else +#define JetCreateIndex JetCreateIndexA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateIndex2A JetCreateIndex2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndex2A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE_A * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndex2W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE_W * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateIndex2 JetCreateIndex2W +#else +#define JetCreateIndex2 JetCreateIndex2A +#endif +#endif + +#if ( JET_VERSION >= 0x0601 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndex3A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE2_A * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +JET_ERR JET_API +JetCreateIndex3W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE2_W * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateIndex3 JetCreateIndex3W +#else +#define JetCreateIndex3 JetCreateIndex3A +#endif + +#endif + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndex4A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE3_A * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndex4W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE3_W * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateIndex4 JetCreateIndex4W +#else +#define JetCreateIndex4 JetCreateIndex4A +#endif + +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetDeleteIndexA JetDeleteIndex +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteIndexA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteIndexW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDeleteIndex JetDeleteIndexW +#else +#define JetDeleteIndex JetDeleteIndexA +#endif +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBeginTransaction( + _In_ JET_SESID sesid ); + +JET_ERR JET_API +JetBeginTransaction2( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBeginTransaction3( + _In_ JET_SESID sesid, + _In_ JET_INT64 trxid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0602 + + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCommitTransaction( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit ); + +#if ( JET_VERSION >= 0x0602 ) +JET_ERR JET_API +JetCommitTransaction2( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit, + _In_ JET_UINT32 cmsecDurableCommit, + _Out_opt_ JET_COMMIT_ID * pCommitId ); +#endif // JET_VERSION >= 0x0602 + +JET_ERR JET_API +JetRollback( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION < 0x0600 ) +#define JetGetDatabaseInfoA JetGetDatabaseInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetGetDatabaseInfoA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetDatabaseInfoW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetDatabaseInfo JetGetDatabaseInfoW +#else +#define JetGetDatabaseInfo JetGetDatabaseInfoA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetDatabaseFileInfoA JetGetDatabaseFileInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetDatabaseFileInfoA( + _In_ JET_PCSTR szDatabaseName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetDatabaseFileInfoW( + _In_ JET_PCWSTR szDatabaseName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetDatabaseFileInfo JetGetDatabaseFileInfoW +#else +#define JetGetDatabaseFileInfo JetGetDatabaseFileInfoA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetOpenDatabaseA JetOpenDatabase +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenDatabaseA( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szFilename, + _In_opt_ JET_PCSTR szConnect, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenDatabaseW( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szFilename, + _In_opt_ JET_PCWSTR szConnect, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetOpenDatabase JetOpenDatabaseW +#else +#define JetOpenDatabase JetOpenDatabaseA +#endif +#endif // JET_VERSION >= 0x0600 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCloseDatabase( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION < 0x0600 ) +#define JetOpenTableA JetOpenTable +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenTableA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName, + _In_reads_bytes_opt_( cbParameters ) JET_PCVOID pvParameters, + _In_ JET_UINT32 cbParameters, + _In_ JET_GRBIT grbit, + _Out_ JET_TABLEID * ptableid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenTableW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName, + _In_reads_bytes_opt_( cbParameters ) JET_PCVOID pvParameters, + _In_ JET_UINT32 cbParameters, + _In_ JET_GRBIT grbit, + _Out_ JET_TABLEID * ptableid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetOpenTable JetOpenTableW +#else +#define JetOpenTable JetOpenTableA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetTableSequential( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_GRBIT grbit ); + +JET_ERR JET_API +JetResetTableSequential( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCloseTable( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid ); + +JET_ERR JET_API +JetDelete( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetUpdate( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_to_opt_( cbBookmark, *pcbActual ) JET_PVOID pvBookmark, + _In_ JET_UINT32 cbBookmark, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0502 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetUpdate2( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_to_opt_( cbBookmark, *pcbActual ) JET_PVOID pvBookmark, + _In_ JET_UINT32 cbBookmark, + _Out_opt_ JET_UINT32 * pcbActual, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0502 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEscrowUpdate( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_COLUMNID columnid, + _In_reads_bytes_( cbMax ) JET_PVOID pv, + _In_ JET_UINT32 cbMax, + _Out_writes_bytes_to_opt_( cbOldMax, *pcbOldActual ) JET_PVOID pvOld, + _In_ JET_UINT32 cbOldMax, + _Out_opt_ JET_UINT32 * pcbOldActual, + _In_ JET_GRBIT grbit ); + +JET_ERR JET_API +JetRetrieveColumn( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_COLUMNID columnid, + _Out_writes_bytes_to_opt_( cbData, min( cbData, *pcbActual ) ) JET_PVOID pvData, + _In_ JET_UINT32 cbData, + _Out_opt_ JET_UINT32 * pcbActual, + _In_ JET_GRBIT grbit, + _Inout_opt_ JET_RETINFO * pretinfo ); + +JET_ERR JET_API +JetRetrieveColumns( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Inout_updates_opt_( cretrievecolumn ) JET_RETRIEVECOLUMN * pretrievecolumn, + _In_ JET_UINT32 cretrievecolumn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEnumerateColumns( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_UINT32 cEnumColumnId, + _In_reads_opt_( cEnumColumnId ) JET_ENUMCOLUMNID * rgEnumColumnId, + _Out_ JET_UINT32 * pcEnumColumn, + _Outptr_result_buffer_( *pcEnumColumn ) JET_ENUMCOLUMN ** prgEnumColumn, + _In_ JET_PFNREALLOC pfnRealloc, + _In_opt_ JET_PVOID pvReallocContext, + _In_ JET_UINT32 cbDataMost, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +#if ( JET_VERSION >= 0x0600 ) +JET_ERR JET_API +JetGetRecordSize( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Inout_ JET_RECSIZE * precsize, + _In_ const JET_GRBIT grbit ); + +#endif // JET_VERSION >= 0x0600 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0601 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetRecordSize2( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Inout_ JET_RECSIZE2 * precsize, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0601 + + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetColumn( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_COLUMNID columnid, + _In_reads_bytes_opt_( cbData ) JET_PCVOID pvData, + _In_ JET_UINT32 cbData, + _In_ JET_GRBIT grbit, + _In_opt_ JET_SETINFO * psetinfo ); + +JET_ERR JET_API +JetSetColumns( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_opt_( csetcolumn ) JET_SETCOLUMN * psetcolumn, + _In_ JET_UINT32 csetcolumn ); + +JET_ERR JET_API +JetPrepareUpdate( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_UINT32 prep ); + +JET_ERR JET_API +JetGetRecordPosition( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbRecpos ) JET_RECPOS * precpos, + _In_ JET_UINT32 cbRecpos ); + +JET_ERR JET_API +JetGotoPosition( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_RECPOS * precpos ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetCursorInfo( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +JET_ERR JET_API +JetDupCursor( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_ JET_TABLEID * ptableid, + _In_ JET_GRBIT grbit ); + +#if ( JET_VERSION < 0x0600 ) +#define JetGetCurrentIndexA JetGetCurrentIndex +#endif + +JET_ERR JET_API +JetGetCurrentIndexA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbIndexName ) JET_PSTR szIndexName, + _In_ JET_UINT32 cbIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetCurrentIndexW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbIndexName ) JET_PWSTR szIndexName, + _In_ JET_UINT32 cbIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetCurrentIndex JetGetCurrentIndexW +#else +#define JetGetCurrentIndex JetGetCurrentIndexA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetSetCurrentIndexA JetSetCurrentIndex +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndexA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndexW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetCurrentIndex JetSetCurrentIndexW +#else +#define JetSetCurrentIndex JetSetCurrentIndexA +#endif +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION < 0x0600 ) +#define JetSetCurrentIndex2A JetSetCurrentIndex2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex2A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szIndexName, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex2W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szIndexName, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetCurrentIndex2 JetSetCurrentIndex2W +#else +#define JetSetCurrentIndex2 JetSetCurrentIndex2A +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetSetCurrentIndex3A JetSetCurrentIndex3 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex3A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szIndexName, + _In_ JET_GRBIT grbit, + _In_ JET_UINT32 itagSequence ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex3W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szIndexName, + _In_ JET_GRBIT grbit, + _In_ JET_UINT32 itagSequence ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetCurrentIndex3 JetSetCurrentIndex3W +#else +#define JetSetCurrentIndex3 JetSetCurrentIndex3A +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetSetCurrentIndex4A JetSetCurrentIndex4 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex4A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szIndexName, + _In_opt_ JET_INDEXID * pindexid, + _In_ JET_GRBIT grbit, + _In_ JET_UINT32 itagSequence ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex4W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szIndexName, + _In_opt_ JET_INDEXID * pindexid, + _In_ JET_GRBIT grbit, + _In_ JET_UINT32 itagSequence ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetCurrentIndex4 JetSetCurrentIndex4W +#else +#define JetSetCurrentIndex4 JetSetCurrentIndex4A +#endif +#endif // JET_VERSION >= 0x0600 + + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetMove( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_INT32 cRow, + _In_ JET_GRBIT grbit ); + +#if ( JET_VERSION >= 0x0602 ) +JET_ERR JET_API +JetSetCursorFilter( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cColumnFilters ) JET_INDEX_COLUMN * rgColumnFilters, + _In_ JET_UINT32 cColumnFilters, + _In_ JET_GRBIT grbit ); +#endif // JET_VERSION >= 0x0602 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLock( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetMakeKey( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_bytes_opt_( cbData ) JET_PCVOID pvData, + _In_ JET_UINT32 cbData, + _In_ JET_GRBIT grbit ); + +JET_ERR JET_API +JetSeek( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0601 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +// FOOBY +JET_ERR JET_API +JetPrereadKeys( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_(ckeys) JET_PCVOID * rgpvKeys, + _In_reads_(ckeys) const JET_UINT32 * rgcbKeys, + _In_ JET_INT32 ckeys, + _Out_opt_ JET_INT32 * pckeysPreread, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0601 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +#if ( JET_VERSION >= 0x0602 ) + +JET_ERR JET_API +JetPrereadIndexRanges( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_(cIndexRanges) const JET_INDEX_RANGE * const rgIndexRanges, + _In_ const JET_UINT32 cIndexRanges, + _Out_opt_ JET_UINT32 * const pcRangesPreread, + _In_reads_(ccolumnidPreread) const JET_COLUMNID * const rgcolumnidPreread, + _In_ const JET_UINT32 ccolumnidPreread, + _In_ JET_GRBIT grbit ); // JET_bitPrereadForward, JET_bitPrereadBackward + +#endif // JET_VERSION >= 0x0602 + +JET_ERR JET_API +JetGetBookmark( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pvBookmark, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetSecondaryIndexBookmark( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_to_opt_( cbSecondaryKeyMax, *pcbSecondaryKeyActual ) JET_PVOID pvSecondaryKey, + _In_ JET_UINT32 cbSecondaryKeyMax, + _Out_opt_ JET_UINT32 * pcbSecondaryKeyActual, + _Out_writes_bytes_to_opt_( cbPrimaryBookmarkMax, *pcbPrimaryBookmarkActual ) JET_PVOID pvPrimaryBookmark, + _In_ JET_UINT32 cbPrimaryBookmarkMax, + _Out_opt_ JET_UINT32 * pcbPrimaryBookmarkActual, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetCompactA JetCompact +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCompactA( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szDatabaseSrc, + _In_ JET_PCSTR szDatabaseDest, + _In_ JET_PFNSTATUS pfnStatus, + _In_opt_ JET_CONVERT_A * pconvert, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCompactW( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szDatabaseSrc, + _In_ JET_PCWSTR szDatabaseDest, + _In_ JET_PFNSTATUS pfnStatus, + _In_opt_ JET_CONVERT_W * pconvert, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCompact JetCompactW +#else +#define JetCompact JetCompactA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetDefragmentA JetDefragment +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragmentA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_opt_ JET_PCSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragmentW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_opt_ JET_PCWSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDefragment JetDefragmentW +#else +#define JetDefragment JetDefragmentA +#endif +#endif + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetDefragment2A JetDefragment2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragment2A( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_opt_ JET_PCSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_CALLBACK callback, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragment2W( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_opt_ JET_PCWSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_CALLBACK callback, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDefragment2 JetDefragment2W +#else +#define JetDefragment2 JetDefragment2A +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetDefragment3A JetDefragment3 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragment3A( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szDatabaseName, + _In_opt_ JET_PCSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_CALLBACK callback, + _In_ JET_PVOID pvContext, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragment3W( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szDatabaseName, + _In_opt_ JET_PCWSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_CALLBACK callback, + _In_ JET_PVOID pvContext, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDefragment3 JetDefragment3W +#else +#define JetDefragment3 JetDefragment3A +#endif +#endif // JET_VERSION >= 0x0600 + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION < 0x0600 ) +#define JetSetDatabaseSizeA JetSetDatabaseSize +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetDatabaseSizeA( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szDatabaseName, + _In_ JET_UINT32 cpg, + _Out_ JET_UINT32 * pcpgReal ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetDatabaseSizeW( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szDatabaseName, + _In_ JET_UINT32 cpg, + _Out_ JET_UINT32 * pcpgReal ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetDatabaseSize JetSetDatabaseSizeW +#else +#define JetSetDatabaseSize JetSetDatabaseSizeA +#endif +#endif // JET_VERSION >= 0x0600 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGrowDatabase( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_UINT32 cpg, + _In_ JET_UINT32 * pcpgReal ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +#if ( JET_VERSION >= 0x0602 ) +JET_ERR JET_API +JetResizeDatabase( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_UINT32 cpgTarget, + _Out_ JET_UINT32 * pcpgActual, + _In_ const JET_GRBIT grbit ); +#endif // JET_VERSION >= 0x0602 + +JET_ERR JET_API +JetSetSessionContext( + _In_ JET_SESID sesid, + _In_ JET_API_PTR ulContext ); + +JET_ERR JET_API +JetResetSessionContext( + _In_ JET_SESID sesid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGotoBookmark( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_bytes_( cbBookmark ) JET_PVOID pvBookmark, + _In_ JET_UINT32 cbBookmark ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGotoSecondaryIndexBookmark( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_bytes_( cbSecondaryKey ) JET_PVOID pvSecondaryKey, + _In_ JET_UINT32 cbSecondaryKey, + _In_reads_bytes_opt_( cbPrimaryBookmark ) JET_PVOID pvPrimaryBookmark, + _In_ JET_UINT32 cbPrimaryBookmark, + _In_ const JET_GRBIT grbit ); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetIntersectIndexes( + _In_ JET_SESID sesid, + _In_reads_( cindexrange ) JET_INDEXRANGE * rgindexrange, + _In_ JET_UINT32 cindexrange, + _Inout_ JET_RECORDLIST * precordlist, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetComputeStats( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid ); + +JET_ERR JET_API +JetOpenTempTable( + _In_ JET_SESID sesid, + _In_reads_( ccolumn ) const JET_COLUMNDEF * prgcolumndef, + _In_ JET_UINT32 ccolumn, + _In_ JET_GRBIT grbit, + _Out_ JET_TABLEID * ptableid, + _Out_writes_( ccolumn ) JET_COLUMNID * prgcolumnid ); + +JET_ERR JET_API +JetOpenTempTable2( + _In_ JET_SESID sesid, + _In_reads_( ccolumn ) const JET_COLUMNDEF * prgcolumndef, + _In_ JET_UINT32 ccolumn, + _In_ JET_LCID lcid, + _In_ JET_GRBIT grbit, + _Out_ JET_TABLEID * ptableid, + _Out_writes_( ccolumn ) JET_COLUMNID * prgcolumnid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenTempTable3( + _In_ JET_SESID sesid, + _In_reads_( ccolumn ) const JET_COLUMNDEF * prgcolumndef, + _In_ JET_UINT32 ccolumn, + _In_opt_ JET_UNICODEINDEX * pidxunicode, + _In_ JET_GRBIT grbit, + _Out_ JET_TABLEID * ptableid, + _Out_writes_( ccolumn ) JET_COLUMNID * prgcolumnid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenTemporaryTable( + _In_ JET_SESID sesid, + _In_ JET_OPENTEMPORARYTABLE * popentemporarytable ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenTemporaryTable2( + _In_ JET_SESID sesid, + _In_ JET_OPENTEMPORARYTABLE2 * popentemporarytable ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0602 + + +#if ( JET_VERSION < 0x0600 ) +#define JetBackupA JetBackup +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBackupA( + _In_ JET_PCSTR szBackupPath, + _In_ JET_GRBIT grbit, + _In_opt_ JET_PFNSTATUS pfnStatus ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBackupW( + _In_ JET_PCWSTR szBackupPath, + _In_ JET_GRBIT grbit, + _In_opt_ JET_PFNSTATUS pfnStatus ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetBackup JetBackupW +#else +#define JetBackup JetBackupA +#endif +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetBackupInstanceA JetBackupInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBackupInstanceA( + _In_ JET_INSTANCE instance, + _In_ JET_PCSTR szBackupPath, + _In_ JET_GRBIT grbit, + _In_opt_ JET_PFNSTATUS pfnStatus ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBackupInstanceW( + _In_ JET_INSTANCE instance, + _In_ JET_PCWSTR szBackupPath, + _In_ JET_GRBIT grbit, + _In_opt_ JET_PFNSTATUS pfnStatus ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetBackupInstance JetBackupInstanceW +#else +#define JetBackupInstance JetBackupInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetRestoreA JetRestore +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestoreA( + _In_ JET_PCSTR szSource, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestoreW( + _In_ JET_PCWSTR szSource, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetRestore JetRestoreW +#else +#define JetRestore JetRestoreA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetRestore2A JetRestore2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestore2A( + _In_ JET_PCSTR sz, + _In_opt_ JET_PCSTR szDest, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestore2W( + _In_ JET_PCWSTR sz, + _In_opt_ JET_PCWSTR szDest, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetRestore2 JetRestore2W +#else +#define JetRestore2 JetRestore2A +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetRestoreInstanceA JetRestoreInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestoreInstanceA( + _In_ JET_INSTANCE instance, + _In_ JET_PCSTR sz, + _In_opt_ JET_PCSTR szDest, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestoreInstanceW( + _In_ JET_INSTANCE instance, + _In_ JET_PCWSTR sz, + _In_opt_ JET_PCWSTR szDest, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetRestoreInstance JetRestoreInstanceW +#else +#define JetRestoreInstance JetRestoreInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + +#endif // JET_VERSION >= 0x0501 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetIndexRange( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableidSrc, + _In_ JET_GRBIT grbit ); + +JET_ERR JET_API +JetIndexRecordCount( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_ JET_UINT32 * pcrec, + _In_ JET_UINT32 crecMax ); + +#if ( JET_VERSION >= 0x0A01 ) + +JET_ERR JET_API +JetIndexRecordCount2( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_ JET_UINT64 * pcrec, + _In_ JET_UINT64 crecMax ); + +#endif // JET_VERSION >= 0x0A01 + +JET_ERR JET_API +JetRetrieveKey( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pvKey, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetBeginExternalBackup( + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetBeginExternalBackupInstance( + _In_ JET_INSTANCE instance, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION < 0x0600 ) +#define JetGetAttachInfoA JetGetAttachInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetAttachInfoA( +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzDatabases, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetAttachInfoW( + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR wszzDatabases, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetAttachInfo JetGetAttachInfoW +#else +#define JetGetAttachInfo JetGetAttachInfoA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetGetAttachInfoInstanceA JetGetAttachInfoInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetAttachInfoInstanceA( + _In_ JET_INSTANCE instance, +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzDatabases, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetAttachInfoInstanceW( + _In_ JET_INSTANCE instance, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR szzDatabases, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetAttachInfoInstance JetGetAttachInfoInstanceW +#else +#define JetGetAttachInfoInstance JetGetAttachInfoInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetOpenFileA JetOpenFile +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenFileA( + _In_ JET_PCSTR szFileName, + _Out_ JET_HANDLE * phfFile, + _Out_ JET_UINT32 * pulFileSizeLow, + _Out_ JET_UINT32 * pulFileSizeHigh ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenFileW( + _In_ JET_PCWSTR szFileName, + _Out_ JET_HANDLE * phfFile, + _Out_ JET_UINT32 * pulFileSizeLow, + _Out_ JET_UINT32 * pulFileSizeHigh ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetOpenFile JetOpenFileW +#else +#define JetOpenFile JetOpenFileA +#endif +#endif + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetOpenFileInstanceA JetOpenFileInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenFileInstanceA( + _In_ JET_INSTANCE instance, + _In_ JET_PCSTR szFileName, + _Out_ JET_HANDLE * phfFile, + _Out_ JET_UINT32 * pulFileSizeLow, + _Out_ JET_UINT32 * pulFileSizeHigh ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenFileInstanceW( + _In_ JET_INSTANCE instance, + _In_ JET_PCWSTR szFileName, + _Out_ JET_HANDLE * phfFile, + _Out_ JET_UINT32 * pulFileSizeLow, + _Out_ JET_UINT32 * pulFileSizeHigh ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetOpenFileInstance JetOpenFileInstanceW +#else +#define JetOpenFileInstance JetOpenFileInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + +#endif // JET_VERSION >= 0x0501 + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetReadFile( + _In_ JET_HANDLE hfFile, + _Out_writes_bytes_to_( cb, *pcbActual ) JET_PVOID pv, + _In_ JET_UINT32 cb, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetReadFileInstance( + _In_ JET_INSTANCE instance, + _In_ JET_HANDLE hfFile, + _Out_writes_bytes_to_( cb, *pcbActual ) JET_PVOID pv, + _In_ JET_UINT32 cb, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCloseFile( + _In_ JET_HANDLE hfFile ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCloseFileInstance( + _In_ JET_INSTANCE instance, + _In_ JET_HANDLE hfFile ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION < 0x0600 ) +#define JetGetLogInfoA JetGetLogInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoA( +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzLogs, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoW( + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR szzLogs, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetLogInfo JetGetLogInfoW +#else +#define JetGetLogInfo JetGetLogInfoA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetGetLogInfoInstanceA JetGetLogInfoInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoInstanceA( + _In_ JET_INSTANCE instance, +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzLogs, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoInstanceW( + _In_ JET_INSTANCE instance, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR wszzLogs, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetLogInfoInstance JetGetLogInfoInstanceW +#else +#define JetGetLogInfoInstance JetGetLogInfoInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + + +#define JET_BASE_NAME_LENGTH 3 +typedef struct +{ + JET_UINT32 cbSize; + JET_UINT32 ulGenLow; + JET_UINT32 ulGenHigh; + JET_CHAR szBaseName[ JET_BASE_NAME_LENGTH + 1 ]; +} JET_LOGINFO_A; + +typedef struct +{ + JET_UINT32 cbSize; + JET_UINT32 ulGenLow; + JET_UINT32 ulGenHigh; + JET_WCHAR szBaseName[ JET_BASE_NAME_LENGTH + 1 ]; +} JET_LOGINFO_W; + +#ifdef JET_UNICODE +#define JET_LOGINFO JET_LOGINFO_W +#else +#define JET_LOGINFO JET_LOGINFO_A +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetGetLogInfoInstance2A JetGetLogInfoInstance2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoInstance2A( + _In_ JET_INSTANCE instance, +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzLogs, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual, + _Inout_opt_ JET_LOGINFO_A * pLogInfo ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoInstance2W( + _In_ JET_INSTANCE instance, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR wszzLogs, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual, + _Inout_opt_ JET_LOGINFO_W * pLogInfo ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetLogInfoInstance2 JetGetLogInfoInstance2W +#else +#define JetGetLogInfoInstance2 JetGetLogInfoInstance2A +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetTruncateLogInfoInstanceA JetGetTruncateLogInfoInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTruncateLogInfoInstanceA( + _In_ JET_INSTANCE instance, +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzLogs, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTruncateLogInfoInstanceW( + _In_ JET_INSTANCE instance, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR wszzLogs, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetTruncateLogInfoInstance JetGetTruncateLogInfoInstanceW +#else +#define JetGetTruncateLogInfoInstance JetGetTruncateLogInfoInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + + +#endif // JET_VERSION >= 0x0501 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetTruncateLog( JET_VOID ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetTruncateLogInstance( + _In_ JET_INSTANCE instance ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetEndExternalBackup( JET_VOID ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEndExternalBackupInstance( + _In_ JET_INSTANCE instance ); + +JET_ERR JET_API +JetEndExternalBackupInstance2( + _In_ JET_INSTANCE instance, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetExternalRestoreA JetExternalRestore +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetExternalRestoreA( + _In_ JET_PSTR szCheckpointFilePath, + _In_ JET_PSTR szLogPath, + _In_reads_opt_( crstfilemap ) JET_RSTMAP_A * rgrstmap, + _In_ JET_INT32 crstfilemap, + _In_ JET_PSTR szBackupLogPath, + _In_ JET_INT32 genLow, + _In_ JET_INT32 genHigh, + _In_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetExternalRestoreW( + _In_ JET_PWSTR szCheckpointFilePath, + _In_ JET_PWSTR szLogPath, + _In_reads_opt_( crstfilemap ) JET_RSTMAP_W * rgrstmap, + _In_ JET_INT32 crstfilemap, + _In_ JET_PWSTR szBackupLogPath, + _In_ JET_INT32 genLow, + _In_ JET_INT32 genHigh, + _In_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetExternalRestore JetExternalRestoreW +#else +#define JetExternalRestore JetExternalRestoreA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if JET_VERSION >= 0x0501 +#if ( JET_VERSION < 0x0600 ) +#define JetExternalRestore2A JetExternalRestore2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetExternalRestore2A( + _In_ JET_PSTR szCheckpointFilePath, + _In_ JET_PSTR szLogPath, + _In_reads_opt_( crstfilemap ) JET_RSTMAP_A * rgrstmap, + _In_ JET_INT32 crstfilemap, + _In_ JET_PSTR szBackupLogPath, + _Inout_ JET_LOGINFO_A * pLogInfo, + _In_opt_ JET_PSTR szTargetInstanceName, + _In_opt_ JET_PSTR szTargetInstanceLogPath, + _In_opt_ JET_PSTR szTargetInstanceCheckpointPath, + _In_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetExternalRestore2W( + _In_ JET_PWSTR szCheckpointFilePath, + _In_ JET_PWSTR szLogPath, + _In_reads_opt_( crstfilemap ) JET_RSTMAP_W * rgrstmap, + _In_ JET_INT32 crstfilemap, + _In_ JET_PWSTR szBackupLogPath, + _Inout_ JET_LOGINFO_W * pLogInfo, + _In_opt_ JET_PWSTR szTargetInstanceName, + _In_opt_ JET_PWSTR szTargetInstanceLogPath, + _In_opt_ JET_PWSTR szTargetInstanceCheckpointPath, + _In_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetExternalRestore2 JetExternalRestore2W +#else +#define JetExternalRestore2 JetExternalRestore2A +#endif +#endif // JET_VERSION >= 0x0600 + + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRegisterCallback( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_CBTYP cbtyp, + _In_ JET_CALLBACK pCallback, + _In_opt_ JET_PVOID pvContext, + _In_ JET_HANDLE * phCallbackId ); + +JET_ERR JET_API +JetUnregisterCallback( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_CBTYP cbtyp, + _In_ JET_HANDLE hCallbackId ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +typedef struct _JET_INSTANCE_INFO_A +{ + JET_INSTANCE hInstanceId; + JET_PSTR szInstanceName; + + JET_API_PTR cDatabases; + JET_PSTR * szDatabaseFileName; + JET_PSTR * szDatabaseDisplayName; + JET_PSTR * szDatabaseSLVFileName_Obsolete; +} JET_INSTANCE_INFO_A; + +typedef struct _JET_INSTANCE_INFO_W +{ + JET_INSTANCE hInstanceId; + JET_PWSTR szInstanceName; + + JET_API_PTR cDatabases; + JET_PWSTR * szDatabaseFileName; + JET_PWSTR * szDatabaseDisplayName; + JET_PWSTR * szDatabaseSLVFileName_Obsolete; +} JET_INSTANCE_INFO_W; + +#ifdef JET_UNICODE +#define JET_INSTANCE_INFO JET_INSTANCE_INFO_W +#else +#define JET_INSTANCE_INFO JET_INSTANCE_INFO_A +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetGetInstanceInfoA JetGetInstanceInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetInstanceInfoA( + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_A ** paInstanceInfo ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetInstanceInfoW( + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_W ** paInstanceInfo ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetInstanceInfo JetGetInstanceInfoW +#else +#define JetGetInstanceInfo JetGetInstanceInfoA +#endif +#endif // JET_VERSION >= 0x0600 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetFreeBuffer( + _Pre_notnull_ JET_CHAR * pbBuf ); + +JET_ERR JET_API +JetSetLS( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_LS ls, + _In_ JET_GRBIT grbit ); + +JET_ERR JET_API +JetGetLS( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_ JET_LS * pls, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +typedef JET_API_PTR JET_OSSNAPID; // Snapshot Session Identifier + +JET_ERR JET_API +JetOSSnapshotPrepare( + _Out_ JET_OSSNAPID * psnapId, + _In_ const JET_GRBIT grbit ); +#if ( JET_VERSION >= 0x0600 ) +JET_ERR JET_API +JetOSSnapshotPrepareInstance( + _In_ JET_OSSNAPID snapId, + _In_ JET_INSTANCE instance, + _In_ const JET_GRBIT grbit ); + +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION < 0x0600 ) +#define JetOSSnapshotFreezeA JetOSSnapshotFreeze +#endif + +JET_ERR JET_API +JetOSSnapshotFreezeA( + _In_ const JET_OSSNAPID snapId, + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_A ** paInstanceInfo, + _In_ const JET_GRBIT grbit ); + +#if ( JET_VERSION >= 0x0600 ) + +JET_ERR JET_API +JetOSSnapshotFreezeW( + _In_ const JET_OSSNAPID snapId, + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_W ** paInstanceInfo, + _In_ const JET_GRBIT grbit ); + +#ifdef JET_UNICODE +#define JetOSSnapshotFreeze JetOSSnapshotFreezeW +#else +#define JetOSSnapshotFreeze JetOSSnapshotFreezeA +#endif +#endif // JET_VERSION >= 0x0600 + +JET_ERR JET_API +JetOSSnapshotThaw( + _In_ const JET_OSSNAPID snapId, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0502 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOSSnapshotAbort( + _In_ const JET_OSSNAPID snapId, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0502 + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOSSnapshotTruncateLog( + _In_ const JET_OSSNAPID snapId, + _In_ const JET_GRBIT grbit ); + +JET_ERR JET_API +JetOSSnapshotTruncateLogInstance( + _In_ const JET_OSSNAPID snapId, + _In_ JET_INSTANCE instance, + _In_ const JET_GRBIT grbit ); + +#if ( JET_VERSION < 0x0600 ) +#define JetOSSnapshotGetFreezeInfoA JetOSSnapshotGetFreezeInfo +#endif + +JET_ERR JET_API +JetOSSnapshotGetFreezeInfoA( + _In_ const JET_OSSNAPID snapId, + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_A ** paInstanceInfo, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOSSnapshotGetFreezeInfoW( + _In_ const JET_OSSNAPID snapId, + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_W ** paInstanceInfo, + _In_ const JET_GRBIT grbit ); + +#ifdef JET_UNICODE +#define JetOSSnapshotGetFreezeInfo JetOSSnapshotGetFreezeInfoW +#else +#define JetOSSnapshotGetFreezeInfo JetOSSnapshotGetFreezeInfoA +#endif + +JET_ERR JET_API +JetOSSnapshotEnd( + _In_ const JET_OSSNAPID snapId, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0600 + + + +#if ( JET_VERSION >= 0x0601 ) + +// Options for JetConfigureProcessForCrashDump + +#define JET_bitDumpMinimum 0x00000001 +// dump minimum includes cache minimum +#define JET_bitDumpMaximum 0x00000002 +// dump maximum includes dump minimum +// dump maximum includes cache maximum +#define JET_bitDumpCacheMinimum 0x00000004 +// cache minimum includes pages that are latched +// cache minimum includes pages that are used for memory +// cache minimum includes pages that are flagged with errors +#define JET_bitDumpCacheMaximum 0x00000008 +// cache maximum includes cache minimum +// cache maximum includes the entire cache image +#define JET_bitDumpCacheIncludeDirtyPages 0x00000010 +// dump includes pages that are modified +#define JET_bitDumpCacheIncludeCachedPages 0x00000020 +// dump includes pages that contain valid data +#define JET_bitDumpCacheIncludeCorruptedPages 0x00000040 +// dump includes pages that are corrupted (expensive to compute) +#define JET_bitDumpCacheNoDecommit 0x00000080 +// do not decommit any pages not intending to include in crash dump + + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetConfigureProcessForCrashDump( + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0601 ) + + +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetGetErrorInfoW( + _In_opt_ JET_PVOID pvContext, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel, + _In_ JET_GRBIT grbit ); + +#ifdef JET_UNICODE +#define JetGetErrorInfo JetGetErrorInfoW +#else +#define JetGetErrorInfo JetGetErrorInfoA_DoesNotExist_OnlyUnicodeVersionOfThisAPI_UseExcplicit_JetGetErrorInfoW_Instead +#endif + +JET_ERR JET_API +JetSetSessionParameter( + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 sesparamid, + _In_reads_bytes_opt_( cbParam ) JET_PVOID pvParam, + _In_ JET_UINT32 cbParam ); + +JET_ERR JET_API +JetGetSessionParameter( + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 sesparamid, + _Out_cap_post_count_(cbParamMax, *pcbParamActual) JET_PVOID pvParam, + _In_ JET_UINT32 cbParamMax, + _Out_opt_ JET_UINT32 * pcbParamActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + + +#endif // JET_VERSION >= 0x0602 + + +#ifdef __cplusplus +} // extern "C" - Note: from the beginning of the #if !defined(_JET_NOPROTOTYPES) section. +#endif + +#endif /* _JET_NOPROTOTYPES */ + +#pragma pack(pop) + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif /* _JET_INCLUDED */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/evalcom2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evalcom2.h new file mode 100644 index 0000000000000000000000000000000000000000..46e9064bd18a80cd43bc4691139db382edc1ed4a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evalcom2.h @@ -0,0 +1,71 @@ +//-------------------------------------------------------------------------- +// +// Microsoft Windows - EvalCom2 MSI Validation Engine +// +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include + + +// returned from IEvalResult::GetResultType +typedef enum RESULTTYPES +{ + ieUnknown = 0, + ieError, + ieWarning, + ieInfo, +}RESULTTYPES; + +// values passed to status callback +typedef enum STATUSTYPES +{ + ieStatusGetCUB, + ieStatusICECount, + ieStatusMerge, + ieStatusSummaryInfo, + ieStatusCreateEngine, + ieStatusStarting, + ieStatusRunICE, + ieStatusShutdown, + ieStatusSuccess, + ieStatusFail, + ieStatusCancel +}STATUSTYPES; + +typedef BOOL (WINAPI* LPDISPLAYVAL)(LPVOID pContext, RESULTTYPES uiType, LPCWSTR szwVal, LPCWSTR szwDescription, LPCWSTR szwLocation); +typedef BOOL (WINAPI* LPEVALCOMCALLBACK)(STATUSTYPES iStatus, LPCWSTR szData, LPVOID pContext); + +/////////////////////////////////////////////////////////// +// IEval +interface IValidate : IUnknown +{ + virtual HRESULT __stdcall OpenDatabase(LPCOLESTR szDatabase) = 0; + virtual HRESULT __stdcall OpenCUB(LPCOLESTR szCUBFile) = 0; + virtual HRESULT __stdcall CloseDatabase() = 0; + virtual HRESULT __stdcall CloseCUB() = 0; + + virtual HRESULT __stdcall SetDisplay(LPDISPLAYVAL pDisplayFunction, LPVOID pContext) = 0; + virtual HRESULT __stdcall SetStatus(LPEVALCOMCALLBACK pStatusFunction, LPVOID pContext) = 0; + + virtual HRESULT __stdcall Validate(const WCHAR *wzICEs = NULL) = 0; +}; + + +/* 6e5e1910-8053-4660-b795-6b612e29bc58 */ +DEFINE_GUID(CLSID_EvalCom2, 0x6e5e1910, 0x8053, 0x4660, 0xb7, 0x95, 0x6b, 0x61, 0x2e, 0x29, 0xbc, 0x58); + +/* e482e5c6-e31e-4143-a2e6-dbc3d8e4b8d3 */ +DEFINE_GUID(IID_IValidate, 0xe482e5c6, 0xe31e, 0x4143, 0xa2, 0xe6, 0xdb, 0xc3, 0xd8, 0xe4, 0xb8, 0xd3); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/evcode.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evcode.h new file mode 100644 index 0000000000000000000000000000000000000000..a1de1ba08d2e2ba7d9443ec3a4c7264e9bf466e8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evcode.h @@ -0,0 +1,538 @@ +//------------------------------------------------------------------------------ +// File: EvCode.h +// +// Desc: List of standard Quartz event codes and the expected params. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +// Event codes are broken into two groups +// -- system event codes +// -- extension event codes +// All system event codes are below EC_USER + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define EC_SYSTEMBASE 0x00 +#define EC_USER 0x8000 + +// System-defined event codes +// ========================== +// +// There are three types of system-defined event codes: +// +// 1. Those which are always passed through to the application +// (To be collected by calls to GetEvent or within WaitForCompletion.) +// (e.g. EC_ERRORABORT, EC_USERABORT.) +// +// 2. Those which are pure internal and will never be passed to +// the application. (e.g. EC_SHUTDOWN) +// +// 3. Those which have default handling. Default handing implies that +// the event is not passed to the application. However, default +// handling may be canceled by calling +// IMediaEvent::CancelDefaultHandling. If the default handling is +// cancelled in this way, then the message will be delivered to the +// application and the application must action it appropriately. +// Default handling can be restored by calling RestoreDefaultHandling. +// +// We will refer to these events as application, internal and defaulted +// events respectively. +// +// System-defined events may have interface pointers, BSTR's, etc passed +// as parameters. It is therefore essential that, for any message +// retrieved using GetEvent, a matching call to FreeEventParams is made +// to ensure that relevant interfaces are released and storage freed. +// Failure to call FreeEventParams will result in memory leaks, if not +// worse. +// +// Filters sending these messages to the filter graph should not AddRef() +// any interfaces that they may pass as parameters. The filter graph +// manager will AddRef them if required. E.g. if the event is to be queued +// for the application or queued to a worker thread. + +// Each event listed below is immediately followed by a parameter list +// detailing the types of the parameters associated with the message, +// and an indication of whether the message is an application, internal +// or defaulted message. This is then followed by a short description. +// The use of "void" in the parameter list implies that the parameter is not +// used. Such parameters should be zero. + +// Other defined EC_ regions: +// DVD event codes 0x0100 - 0x0150 (dvdevcod.h) +// audio device event codes 0x0200 - 0x0250 (audevcod.h) +// WindowsMedia SDK-originated events 0x0251 - 0x0300 (see below) +// MSVIDCTL 0x0301 - 0x0325 (msvidctl.idl) +// stream buffer engine (PVR) 0x0326 - 0x0350 (sbe.idl) + +#define EC_COMPLETE 0x01 +// ( HRESULT, void ) : defaulted (special) +// Signals the completed playback of a stream within the graph. This message +// is sent by renderers when they receive end-of-stream. The default handling +// of this message results in a _SINGLE_ EC_COMPLETE being sent to the +// application when ALL of the individual renderers have signaled EC_COMPLETE +// to the filter graph. If the default handing is canceled, the application +// will see all of the individual EC_COMPLETEs. + + +#define EC_USERABORT 0x02 +// ( void, void ) : application +// In some sense, the user has requested that playback be terminated. +// This message is typically sent by renderers that render into a +// window if the user closes the window into which it was rendering. +// It is up to the application to decide if playback should actually +// be stopped. + + +#define EC_ERRORABORT 0x03 +// ( HRESULT, void ) : application +// Operation aborted because of error + + +#define EC_TIME 0x04 +// ( DWORD, DWORD ) : application +// The requested reference time occurred. (This event is currently not used). +// lParam1 is low dword of ref time, lParam2 is high dword of reftime. + + +#define EC_REPAINT 0x05 +// ( IPin * (could be NULL), void ) : defaulted +// A repaint is required - lParam1 contains the (IPin *) that needs the data +// to be sent again. Default handling is: if the output pin which the IPin is +// attached to supports the IMediaEventSink interface then it will be called +// with the EC_REPAINT first. If that fails then normal repaint processing is +// done by the filter graph. + + +// Stream error notifications +#define EC_STREAM_ERROR_STOPPED 0x06 +#define EC_STREAM_ERROR_STILLPLAYING 0x07 +// ( HRESULT, DWORD ) : application +// lParam 1 is major code, lParam2 is minor code, either may be zero. + + +#define EC_ERROR_STILLPLAYING 0x08 +// ( HRESULT, void ) : application +// The filter graph manager may issue Run's to the graph asynchronously. +// If such a Run fails, EC_ERROR_STILLPLAYING is issued to notify the +// application of the failure. The state of the underlying filters +// at such a time will be indeterminate - they will all have been asked +// to run, but some are almost certainly not. + + +#define EC_PALETTE_CHANGED 0x09 +// ( void, void ) : application +// notify application that the video palette has changed + + +#define EC_VIDEO_SIZE_CHANGED 0x0A +// ( DWORD, void ) : application +// Sent by video renderers. +// Notifies the application that the native video size has changed. +// LOWORD of the DWORD is the new width, HIWORD is the new height. + + +#define EC_QUALITY_CHANGE 0x0B +// ( void, void ) : application +// Notify application that playback degradation has occurred + + +#define EC_SHUTTING_DOWN 0x0C +// ( void, void ) : internal +// This message is sent by the filter graph manager to any plug-in +// distributors which support IMediaEventSink to notify them that +// the filter graph is starting to shutdown. + + +#define EC_CLOCK_CHANGED 0x0D +// ( void, void ) : application +// Notify application that the clock has changed. +// (i.e. SetSyncSource has been called on the filter graph and has been +// distributed successfully to the filters in the graph.) + + +#define EC_PAUSED 0x0E +// ( HRESULT, void ) : application +// Notify application the previous pause request has completed + + +#define EC_OPENING_FILE 0x10 +#define EC_BUFFERING_DATA 0x11 +// ( BOOL, void ) : application +// lParam1 == 1 --> starting to open file or buffer data +// lParam1 == 0 --> not opening or buffering any more +// (This event does not appear to be used by ActiveMovie.) + + +#define EC_FULLSCREEN_LOST 0x12 +// ( void, IBaseFilter * ) : application +// Sent by full screen renderers when switched away from full screen. +// IBaseFilter may be NULL. + + +#define EC_ACTIVATE 0x13 +// ( BOOL, IBaseFilter * ) : internal +// Sent by video renderers when they lose or gain activation. +// lParam1 is set to 1 if gained or 0 if lost +// lParam2 is the IBaseFilter* for the filter that is sending the message +// Used for sound follows focus and full-screen switching + + +#define EC_NEED_RESTART 0x14 +// ( void, void ) : defaulted +// Sent by renderers when they regain a resource (e.g. audio renderer). +// Causes a restart by Pause/put_Current/Run (if running). + + +#define EC_WINDOW_DESTROYED 0x15 +// ( IBaseFilter *, void ) : internal +// Sent by video renderers when the window has been destroyed. Handled +// by the filter graph / distributor telling the resource manager. +// lParam1 is the IBaseFilter* of the filter whose window is being destroyed + + +#define EC_DISPLAY_CHANGED 0x16 +// ( IPin *, void ) : internal +// Sent by renderers when they detect a display change. the filter graph +// will arrange for the graph to be stopped and the pin send in lParam1 +// to be reconnected. by being reconnected it allows a renderer to reset +// and connect with a more appropriate format for the new display mode +// lParam1 contains an (IPin *) that should be reconnected by the graph + + +#define EC_STARVATION 0x17 +// ( void, void ) : defaulted +// Sent by a filter when it detects starvation. Default handling (only when +// running) is for the graph to be paused until all filters enter the +// paused state and then run. Normally this would be sent by a parser or source +// filter when too little data is arriving. + + +#define EC_OLE_EVENT 0x18 +// ( BSTR, BSTR ) : application +// Sent by a filter to pass a text string to the application. +// Conventionally, the first string is a type, and the second a parameter. + + +#define EC_NOTIFY_WINDOW 0x19 +// ( HWND, void ) : internal +// Pass the window handle around during pin connection. + +#define EC_STREAM_CONTROL_STOPPED 0x1A +// ( IPin * pSender, DWORD dwCookie ) +// Notification that an earlier call to IAMStreamControl::StopAt +// has now take effect. Calls to the method can be marked +// with a cookie which is passed back in the second parameter, +// allowing applications to easily tie together request +// and completion notifications. +// +// NB: IPin will point to the pin that actioned the Stop. This +// may not be the pin that the StopAt was sent to. + +#define EC_STREAM_CONTROL_STARTED 0x1B +// ( IPin * pSender, DWORD dwCookie ) +// Notification that an earlier call to IAMStreamControl::StartAt +// has now take effect. Calls to the method can be marked +// with a cookie which is passed back in the second parameter, +// allowing applications to easily tie together request +// and completion notifications. +// +// NB: IPin will point to the pin that actioned the Start. This +// may not be the pin that the StartAt was sent to. + +#define EC_END_OF_SEGMENT 0x1C +// +// ( const REFERENCE_TIME *pStreamTimeAtEndOfSegment, DWORD dwSegmentNumber ) +// +// pStreamTimeAtEndOfSegment +// pointer to the accumulated stream clock +// time since the start of the segment - this is directly computable +// as the sum of the previous and current segment durations (Stop - Start) +// and the rate applied to each segment +// The source add this time to the time within each segment to get +// a total elapsed time +// +// dwSegmentNumber +// Segment number - starts at 0 +// +// Notifies that a segment end has been reached when the +// AM_SEEKING_Segment flags was set for IMediaSeeking::SetPositions +// Passes in an IMediaSeeking interface to allow the next segment +// to be defined by the application + +#define EC_SEGMENT_STARTED 0x1D +// +// ( const REFERENCE_TIME *pStreamTimeAtStartOfSegment, DWORD dwSegmentNumber) +// +// pStreamTimeAtStartOfSegment +// pointer to the accumulated stream clock +// time since the start of the segment - this is directly computable +// as the sum of the previous segment durations (Stop - Start) +// and the rate applied to each segment +// +// dwSegmentNumber +// Segment number - starts at 0 +// +// Notifies that a new segment has been started. +// This is sent synchronously by any entity that will issue +// EC_END_OF_SEGMENT when a new segment is started +// (See IMediaSeeking::SetPositions - AM_SEEKING_Segment flag) +// It is used to compute how many EC_END_OF_SEGMENT notifications +// to expect at the end of a segment and as a consitency check + + +#define EC_LENGTH_CHANGED 0x1E +// (void, void) +// sent to indicate that the length of the "file" has changed + +#define EC_DEVICE_LOST 0x1f +// (IUnknown, 0) +// +// request window notification when the device is available again +// (through WM_DEVICECHANGED messages registered with +// RegisterDeviceNotification; see IAMDeviceRemoval interface) + +#define EC_SAMPLE_NEEDED 0x20 +// (PinID, 0) +// +// Indication that a sample is needed on the specified input pin +// of the filter in order to produce a new sample on the output. + +#define EC_PROCESSING_LATENCY 0x21 +// (const REFERENCE_TIME *pLatency, 0) +// +// Indication that the firing component is currently taking the specified +// amount of time to process a sample. + +#define EC_SAMPLE_LATENCY 0x22 +// (const REFERENCE_TIME *pLatency, 0) +// +// Indication that the firing component is that amount of time behind in +// processing samples coming in. A negative time indicates that the component +// is running ahead of schedule. + +#define EC_SCRUB_TIME 0x23 +// (DWORD, DWORD) +// To be sent immediately after the EC_STEP_COMPLETE notification +// when a step completes and the rate is 0. +// This is the timestamp of the frame that was displayed. +// lParam1 is the low DWORD of the time; lParam2 is the high DWORD + +#define EC_STEP_COMPLETE 0x24 +// (BOOL bCancelled, void) +// Step request complete +// if bCancelled is TRUE the step was cancelled. This can happen +// if the application issued some control request or because there +// was a mode change etc etc + +// Event code 25 is reserved for future use. + +#define EC_TIMECODE_AVAILABLE 0x30 +// Sent by filter supporting timecode +// Param1 has a pointer to the sending object +// Param2 has the device ID of the sending object + +#define EC_EXTDEVICE_MODE_CHANGE 0x31 +// Sent by filter supporting IAMExtDevice +// Param1 has the new mode +// Param2 has the device ID of the sending object + +#define EC_STATE_CHANGE 0x32 +// ( FILTER_STATE, BOOL bInternal) +// Used to notify the application of any state changes in the filter graph. +// lParam1 is of type enum FILTER_STATE (defined in strmif.h) and indicates +// the state of the filter graph. +// +// lParam2 == 0 indicates that the previous state change request has completed +// & a change in application state. +// lParam2 == 1 reserved for future use to indicate internal state changes. + + +#define EC_GRAPH_CHANGED 0x50 +// Sent by filter to notify interesting graph changes + +#define EC_CLOCK_UNSET 0x51 +// ( void, void ) : application +// Used to notify the filter graph to unset the current graph clock. +// Has the affect of forcing the filter graph to reestablish the graph clock +// on the next Pause/Run (note that this is only used by ksproxy, when the pin +// of a clock providing filter is disconnected) + +#define EC_VMR_RENDERDEVICE_SET 0x53 +// (Render_Device type, void) +// Identifies the type of rendering mechanism the VMR +// is using to display video. Types used include: +#define VMR_RENDER_DEVICE_OVERLAY 0x01 +#define VMR_RENDER_DEVICE_VIDMEM 0x02 +#define VMR_RENDER_DEVICE_SYSMEM 0x04 + + +#define EC_VMR_SURFACE_FLIPPED 0x54 +// (hr - Flip return code, void) +// Identifies the VMR's allocator-presenter has called the DDraw flip api on +// the surface being presented. This allows the VMR to keep its DX-VA table +// of DDraw surfaces in sync with DDraws flipping chain. + +#define EC_VMR_RECONNECTION_FAILED 0x55 +// (hr - ReceiveConnection return code, void) +// Identifies that an upstream decoder tried to perform a dynamic format +// change and the VMR was unable to accept the new format. + + +#define EC_PREPROCESS_COMPLETE 0x56 +// Sent by the WM ASF writer filter (WMSDK V9 version) to signal the completion +// of a pre-process run when running in multipass encode mode. +// Param1 = 0, Param2 = IBaseFilter ptr of sending filter + +#define EC_CODECAPI_EVENT 0x57 +// Sent by the Codec API when an event is encountered. Both the Data +// must be freed by the recipient using CoTaskMemFree +// Param1 = UserDataPointer, Param2 = VOID* Data + +//------------------------------------------ +// +// BDA events: +// +// Event code 0x80 through 0x8f are reserved for BDA +// + + +//------------------------------------------ +// +// WindowsMedia SDK filter-specific events: +// +// +// Note that for EC_WMT_EVENT events the wmsdk-based filters use the following structure for +// passing event parameters to the app: +#ifndef AM_WMT_EVENT_DATA_DEFINED +#define AM_WMT_EVENT_DATA_DEFINED +typedef struct { + HRESULT hrStatus; // status code + void * pData; // event data +} AM_WMT_EVENT_DATA; +#endif +// +#define EC_WMT_EVENT_BASE 0x0251 +// +#define EC_WMT_INDEX_EVENT EC_WMT_EVENT_BASE +// WindowsMedia SDK-originated file indexing status, sent by WMSDK-based filters +// +// lParam1 is one of the enum WMT_STATUS messages listed below, sent by the WindowsMedia SDK +// lParam2 is specific to the lParam event +// +// the following WMT_STATUS messages are sent for this event: +// WMT_STARTED - lParam2 is 0 +// WMT_CLOSED - lParam2 is 0 +// WMT_INDEX_PROGRESS - lParam2 is a DWORD containing the progress percent complete +// +#define EC_WMT_EVENT EC_WMT_EVENT_BASE+1 +// WindowsMedia SDK-originated event, sent by WMSDK-based filters +// +// lParam1 is one of the enum WMT_STATUS messages listed below, sent by the WindowsMedia SDK +// lParam2 is a pointer an AM_WMT_EVENT_DATA structure where, +// hrStatus is the status code sent by the wmsdk +// pData is specific to the lParam1 event +// +// the following WMT_STATUS messages are sent by the WMSDK Reader filter for this event: +// WMT_NO_RIGHTS - pData is a pointer to a WCHAR string containing a challenge URL +// WMT_ACQUIRE_LICENSE - lParam2 is a pointer to a WM_GET_LICENSE_DATA struct +// WMT_NO_RIGHTS_EX - lParam2 is a pointer to a WM_GET_LICENSE_DATA struct +// WMT_NEEDS_INDIVIDUALIZATION - lParam2 is NULL +// WMT_INDIVIDUALIZE - lParam2 is a pointer to a WM_INDIVIDUALIZE_STATUS struct +// the WMSDK (V9) ASF Writer filter will send this event in response to a wmsdk-signaled error during file +// writing, along with the wmsdk WMT_STATUS error as the lParam1 and hrStatus embedded in the +// AM_WMT_EVENT_DATA struct pointed to by the lParam2 pointer. +// +// end WMSDK-originated events +//----------------------------------------- + + +#define EC_BUILT 0x300 +// Sent to notify transition from unbuilt to built state + + +#define EC_UNBUILT 0x301 +// Sent to notify transtion from built to unbuilt state + + +//------------------------------------------------------------------------------------------------- +// +// Other miscellaneous events used by various componnents +// Published here to assist debugging +// +//------------------------------------------------------------------------------------------------- +#define EC_SKIP_FRAMES 0x25 +// ( nFramesToSkip, IFrameSkipResultCallback) +// Get the filter graph to skip nFramesToSkip and notify. + +#define EC_PLEASE_REOPEN 0x40 +// (void, void) : application +// Something has changed enough that the graph should be re-rendered. + +#define EC_STATUS 0x41 +// ( BSTR, BSTR) : application +// Two arbitrary strings, a short one and a long one. + +#define EC_MARKER_HIT 0x42 +// (int, void) : application +// The specified "marker #" has just been passed + +#define EC_LOADSTATUS 0x43 +// (int, void) : application +// Sent when various points during the loading of a network file are reached + +#define EC_FILE_CLOSED 0x44 +// (void, void) : application +// Sent when the file is involuntarily closed, i.e. by a network server shutdown + +#define EC_ERRORABORTEX 0x45 +// ( HRESULT, BSTR ) : application +// Operation aborted because of error. Additional information available. + +// status codes for EC_LOADSTATUS.... +#define AM_LOADSTATUS_CLOSED 0x0000 +#define AM_LOADSTATUS_LOADINGDESCR 0x0001 +#define AM_LOADSTATUS_LOADINGMCAST 0x0002 +#define AM_LOADSTATUS_LOCATING 0x0003 +#define AM_LOADSTATUS_CONNECTING 0x0004 +#define AM_LOADSTATUS_OPENING 0x0005 +#define AM_LOADSTATUS_OPEN 0x0006 + + +#define EC_NEW_PIN 0x20 +#define EC_RENDER_FINISHED 0x21 + + +#define EC_EOS_SOON 0x046 +// (void, void) : application +// sent when the source filter is about to deliver an EOS downstream.... + +#define EC_CONTENTPROPERTY_CHANGED 0x47 +// (ULONG, void) +// Sent when a streaming media filter recieves a change in stream description information. +// the UI is expected to re-query for the changed property in response +#define AM_CONTENTPROPERTY_TITLE 0x0001 +#define AM_CONTENTPROPERTY_AUTHOR 0x0002 +#define AM_CONTENTPROPERTY_COPYRIGHT 0x0004 +#define AM_CONTENTPROPERTY_DESCRIPTION 0x0008 + + +#define EC_BANDWIDTHCHANGE 0x48 +// (WORD, long) : application +// sent when the bandwidth of the streaming data has changed. First parameter +// is the new level of bandwidth. Second is the MAX number of levels. Second +// parameter may be 0, if the max levels could not be determined. + +#define EC_VIDEOFRAMEREADY 0x49 +// (void, void) : application +// sent to notify the application that the first video frame is about to be drawn + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/event.xsd b/msvc/Windows Kits/10/Include/10.0.26100.0/um/event.xsd new file mode 100644 index 0000000000000000000000000000000000000000..312f8a33840c46882e130e0d0cc6751affd9f310 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/event.xsd @@ -0,0 +1,204 @@ + + + + + + + + + + + + + + + + + Hex 1-8 digits in size + + + + + + + + Hex 1-16 digits in size + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Classic eventlog binary data + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generic event + + + + + Custom event + + + + + WPP debug event + + + + + Non schematized event + + + + + Instrumentation event + + + + + + + + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/eventlogquery.xsd b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eventlogquery.xsd new file mode 100644 index 0000000000000000000000000000000000000000..69c305dd59c4ad62f554f924286008a11bf27610 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eventlogquery.xsd @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/eventman.xsd b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eventman.xsd new file mode 100644 index 0000000000000000000000000000000000000000..d1558a1230e1d0e9daa1822d70b097def9ddd7d0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/eventman.xsd @@ -0,0 +1,1332 @@ + + + + + + + + Root element of an instrumentation manifest. + + + + + + + + Not a valid root element for an instrumentation manifest. Used when + storing instrumentation data within other XML documents. + + + + + + + + An instrumentation manifest may contain MESSAGETABLE strings, ETW + providers, and/or a Windows Performance Counter V2 provider. + + Manifests containing MESSAGETABLE strings can be compiled with mc.exe. + + Manifests containing ETW providers can be compiled with mc.exe, + installed or uninstalled with wevtutil.exe, and used with TDH APIs or + ETW tools to decode ETL traces. + + Manifests containing a Performance Counter V2 provider can be compiled + with ctrpp.exe, installed using lodctr.exe, and uninstalled using + unlodctr.exe. + + Note that instrumentation manifests must be uninstalled before they can + be reinstalled. + + + + + + + + + + + + + + May contain MESSAGETABLE strings, ETW providers, and/or a Windows + Performance Counter V2 provider. + + The events element is used for MESSAGETABLE strings and ETW providers. + + The counters element (defined in the counterman.xsd schema) is used for + a Windows Performance Counter V2 provider. + + + + + + + + + + + + + Contains MESSAGETABLE strings and ETW providers. + + + + + + + + + + + + + + + + Defines an ETW provider. A provider is a unit of organization for ETW + event definitions. At runtime, the provider GUID is used when opening + the ETW handle. When collecting a trace, the provider's control GUID is + used to enable or disable the collection of the provider's events. + Within the trace data, the provider GUID identifies the provider as the + source of the event. When the trace data is processed, the provider + GUID is used to match an event to the manifest that contains the event + definitions needed to decode it. + + + + + + + + + + + + + + + + + + + + + + + A manifest-based ETW provider has a decode GUID (used to locate the manifest) + and a control GUID (used to enable the provider or filter events). Normally, + the same GUID (the provider guid) is used for both decode and control. + If distinct values are needed for the decode and control GUIDs, set the + "guid" attribute to the decode GUID and set the "controlGuid" attribute to the + control GUID. Note that to avoid provider name conflicts, if the controlGuid + attribute is used, the provider name must end with the decode guid, e.g. + + guid="{54bab802-bb0b-4b4a-9ce9-7360a0120b3e}" + name="MyProvider.54bab802bb0b4b4a9ce97360a0120b3e" + controlGuid="{74d557d9-4a8e-4a3f-9a32-3f1a0eab71ba}" + + If a provider uses distinct decode and control GUIDs, the resulting traces may + not decode properly when decoded on Windows versions prior to Windows 10 + Fall Creators Update (2017). + + Note that distinct decode and control GUIDs are typically used to support + tool-generated manifests and are generally unnecessary for hand-maintained + manifests. + + + + + + + Name of the executable file into which the provider's non-localized template + resource is linked, usually the same as the provider's binary. + + Since the full install path of the provider binary is usually determined at + install time, the value of this attribute is usually overridden by using + wevtutil.exe's /rf:FullResourceFilePath parameter. + + + + + + + Name of the executable file into which the provider's localizable message + resource is linked, usually the same as the provider's binary. + + Since the full install path of the provider binary is usually determined at + install time, the value of this attribute is usually overridden by using + wevtutil.exe's /mf:FullMessageFilePath parameter. + + + + + + Deprecated. + + + + + + + + + + + + + + + + + + + + + Use channels to describe the destinations for your events. Each channel you + define here will show up in the Windows Event Viewer. + + + + + + + + + + + + + + Declares a channel that is used by events in this manifest but is not + owned by this manifest. This may be used to reference well-known + channels from winmeta.xml or to reference channels owned by other + components that this manifest will depend upon. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + Defines a channel that is used by events in this manifest and is owned + by this manifest. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + + + + + + + + + + + + + + + Default publishing session/security if not specified explicitly by + the channel access attribute. + + + + + + + + + + + + + + + + + + + Channel logging config + + + + + + + + + + + + + Channel publishing config + + + + + + + + Amount of memory allocated for the session buffers (KB) + + + + + Number of etl files to create across enablement + + + + + Minimum number of session buffers + + + + + Maximum number of session buffers + + + + + Buffer flush interval (sec) + + + + + Clock resolution + + + + + + + + + + + + + + + + + + + + + + + + + Defines custom levels for use by this provider. Levels are used to + filter events. + + Note that winmeta.xml provides predefined levels win:LogAlways, + win:Critical, win:Error, win:Warning, win:Informational, win:Verbose. + Custom levels must use values 16-255. + + + + + + + + + + + Defines a custom level for use by this provider. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + + + Defines custom tasks for use by this provider. A task is a localizable + string label that can be applied to an event. + + Note that winmeta.xml provides predefined task win:None. + Custom tasks must use values 1-65535. + + + + + + + + + + + Defines a custom task for use by this provider. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + + + + + + + Defines custom opcodes for use by this provider. An opcode is a + semantic category for certain special types of event. For example, the + Start opcode is used on events that trace the beginning of an activity, + and the Stop opcode is used on events that trace the end. + + Note that winmeta.xml provides predefined opcodes win:Info, win:Start, + win:Stop, win:DC_Start, win:DC_Stop, win:Extension, win:Reply, + win:Resume, win:Suspend, win:Send, win:Receive. Custom opcodes must use + values 10-239. + + + + + + + + + + + Defines a custom opcode for use by this provider. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + + + + Defines custom keywords for use by this provider. A keyword is a bit + (flag) that specifies a category that an event may belong to. Keywords + are used to filter events. + + Note that winmeta.xml provides several predefined keywords. These + keywords should only be used for their described purpose. The reserved + keywords should not be used directly (mc.exe adds the reserved keywords + to events as appropriate based on the event's channel). Custom keywords + must use the low 48 bits of the keyword mask. + + + + + + + + + + + Defines a custom keyword for use by this provider. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + Each keyword must have a unique name, which is used to reference the keyword + from the events section of the manifest. + + + + + + + + Mask is a 64-bit value in which only one bit is set. Mask value cannot be zero. + The high 16 bits of the mask are reserved for definition by winmeta.xml. + + + + + + + + + + + Defines custom enumerated types (maps) for use by this provider. + + + + + + + + + + + + + + + + + + + + Defines an enumeration value for use in this value map. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + + + + + + + + + Defines a flag value for use in this bit map. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Defines a value for use in this pattern map. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + Use templates to describe the payload logged by an event. Many events + can share a template. + + + + + + + + + + + + + + + + + + + + Tags is a 28-bit user-defined metadata value applied to each event that uses + this template. The event producer and consumer coordinate to define the + semantics of the tags value. During event processing on Windows 10 Fall + Creators Update (2017) or later, this value can be retrieved from the + TRACE_EVENT_INFO Tags field. + + + + + + + + + + Defines the name and type of an event property (field). + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + + Tags is a 28-bit user-defined metadata value applied to this property. The + event producer and consumer coordinate to define the semantics of the tags + value. During event processing on Windows 10 Fall Creators Update (2017) or + later, this value can be retrieved from the EVENT_PROPERTY_INFO Tags field. + + + + + + + + + + Defines the properties (fields) of an event structure. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + Tags is a 28-bit user-defined metadata value applied to this property. The + event producer and consumer coordinate to define the semantics of the tags + value. During event processing on Windows 10 Fall Creators Update (2017) or + later, this value can be retrieved from the EVENT_PROPERTY_INFO Tags field. + + + + + + + + + Represents binary data in classic eventlog API + + + + + + + + + + + + + + Defines the events logged by this provider. + + + + + + + + + + + Defines the event's value (ID), name, level, keywords, fields, etc. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + Also referred to as the Event-Id. A manifest-based ETW event is uniquely + identified by the {Provider-Guid,Event-Id,Event-Version} tuple. + + + + + + + Non-localized event name. During event processing on Windows 10 Fall + Creators Update (2017) or later, this value can be retrieved from the + TRACE_EVENT_INFO EventNameOffset field. + + + + + + + Non-localized event attributes. This should be a semicolon-delimited list of + name=value attributes associated with the event. During event processing on + Windows 10 Fall Creators Update (2017) or later, this value can be retrieved + from the TRACE_EVENT_INFO EventAttributesOffset field. + + Defined attributes include: + FILE=Filename of source code associated with event; + LINE=Line number of source code associated with event; + FUNC=Function name associated with event; + MJ=Major component associated with event (component name); + MN=Minor component associated with event (subcomponent name). + Values containing semicolons or double-quotes should be quoted using + double-quotes; double-quotes within the value should be doubled. Example: + attributes='FILE=source.cpp;LINE=123;MJ="Value; ""Quoted"""' + + Note that most of these attributes are intended for use with tool-generated + manifests and may not be appropriate for use with hand-maintained manifests. For + example, the FILE ane LINE attributes are not generally appropriate for use in + a hand-maintained manifest, since a single event might be emitted from multiple + source code locations and the source code locations will change over time. The + FILE and LINE attributes are intended for use in cases where the manifest is + regenerated (with a new GUID) by a code generation tool each time the source + code changes. + + + + + + + Reference to the name of a predefined level (from winmeta.xml) or the name of a + custom level (defined in the <levels> section). If not specified, the + event's level will default to "LogAlways". + + Event level is a primary filtering attribute. All events should be assigned + a meaningful level (win:Critical, win:Error, win:Warning, win:Informational, + or win:Verbose) to support effective filtering during event collection. + + + + + + + + + Reference to the name of a custom level defined in the <keywords> section. + If not specified, the event will have no keywords set and will bypass most + keyword-based event filtering. + + Event keyword is a primary filtering attribute. All events should be assigned + at least one meaningful keyword to support effective filtering during event + collection. + + + + + + + + + + Increment the version of an event if its template is modified. + + + + + + + + Use this to indicate that this event has been removed and will not be logged + by this version of the provider. The description of the event should be retained + in this manifest so that if an etl file collected from an older version of the + provider on a different machine is brought to this machine, it can be correctly + decoded on this machine. + + + + + + + Use this to indicate that the template associated with this event contains + valid WinRT types i.e. the event payload fields can come from arguments + of projected WinRT methods. This attribute will be used if generating code + for WinRT projection APIs. + + + + + + + + + Defines a set of custom filters for use in this provider. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + Defines a custom filter for use in this provider. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + + + + Specifies values for this provider's provider traits. The provider traits + consist of a small binary blob that is registered with the ETW runtime via + EventSetInformation and included with each call to EventWrite. The traits + blob contains information about a provider's name, decode GUID, and group + GUID. + + When provider traits are needed (i.e. when the provider has different values + for its control GUID and its decode GUID or when the traits element is + present), the MC tool's -um or -km codegen will generate a provider traits + blob, will generate code to automatically register the blob as part of + EventRegister, and will include the blob in each call to EventWrite. + + + + + + Optional. Default is false. If true, the provider's name will be included + in the provider traits. If false, the provider's name will be left blank + to reduce the size of the trace file. Including the provider name makes it + possible to filter an event by provider name. + + + + + + + Optional. Specifies that this provider is a member of the specified provider + group. By default, the provider is not a member of any provider group. + + + + + + + + + + + + + + + + + + Decimal or hexadecimal message ID. Decimal should have no leading 0s. + Hexadecimal requires '0x' prefix. + + + + + + + Deprecated. Specifies an alias for this string table entry. + + + + + + + + + + + + + Contains one or more resource tables, each of which contains resources + for a single locale. + + + + + + + + + This attribute is not used. + + + + + + + + + Contains resources for a single locale. + + + + + + + + + Specify the locale of the resources using a Windows locale name, e.g. + "en-US". Locale name syntax is documented in MSDN topics such as + "locale names" and "LocaleNameToLCID". + + + + + + + + + + Localized values of strings referenced in MESSAGETABLE strings and ETW + providers. + + + + + + + + + + + + Defines the localized value of a string referenced by an event or a + message table in this manifest. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + The stringTableId of the string reference in the ETW provider or the + MESSAGETABLE string. For example, if a string is referenced as + "$(string.MyString1)" then the id would be "MyString1". + + + + + + + The localized string. + + + + + + + Not used by Windows or mc.exe. This attribute can be used to describe + the usage of the string to aid in tracking and localization. + + + + + + + + + + + Used only by the Microsoft-provided WinMeta.xml file. + + WinMeta.xml uses this element to document ETW facilities that are built + into the Windows operating system or are commonly used by ETW decoding + tools. This includes the definitions of the property types supported by + TDH APIs as well as Microsoft-defined constants for well-known event + levels, opcodes, and channels. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Declares an outType supported by Windows. An outType is a sub-type that + extends the inType with additional semantics and presentation details + for a property of an ETW event. For example, a property could have + inType "AnsiString" (indicating nul-terminated CHAR8 string) and + outType "Utf8" (indicating UTF-8 character encoding). + + + + + + + + + + + + + + + + + + + + + Declares an inType supported by Windows. An inType is the type of a + property of an ETW event. Every ETW event property declares an inType. + The inType fully defines the mechanism for determining the size of a + property and also gives a general idea of how the property's value + should be interpreted. For example, an inType "Int16" indicates the + size is 2 and the property should be interpreted as a signed 16-bit + integer. + + Each inType has a set of outTypes that are supported for use with it. + The outType adds semantics or presentation details to the inType. For + example, the inType "UInt16" can be used with outType "Port" to + indicate that an event property is a big-endian 16-bit Internet + protocol port number. + + Each inType specifies one outType as "default", indicating the behavior + that should be used when an ETW property uses the inType but does not + specify an outType. + + + + + + + + + + + + + + + + Declares that Windows supports the use of the specified outType with + this inType. + + Note that only the attributes of this element are significant. The text + content of this element is not used by mc.exe. + + + + + + + + + + + + + + + + + + Deprecated. Specifies an alias for this string table entry. + + + + + + + + + + + + + A globally unique identifier in Registry format, + e.g. {12345678-4321-ABCD-1234-9ABCDEF012345678}. + Use GUIDGen.exe or UUIDGen.exe to create a GUID. + + + + + + + + + + + Symbol is used for code-generation. It should be a valid C Symbol or an empty string. + + + + + + + + + + + Is used for code-generation on namespaces which should be valid C++ symbols. + E.g. Namespace1._Namespace2.Namespace2 + + + + + + + + + + 1-2 hexadecimal digits with '0x' prefix. + + + + + + + + + 1-4 hexadecimal digits with '0x' prefix. + + + + + + + + + 1-8 hexadecimal digits with '0x' prefix. + + + + + + + + + 1-16 hexadecimal digits with '0x' prefix. + + + + + + + + + + 8-bit unsigned decimal or hexadecimal integer. Decimal should have no + leading 0s. Hexadecimal requires '0x' prefix. + + + + + + + + + 16-bit unsigned decimal or hexadecimal integer. Decimal should have no + leading 0s. Hexadecimal requires '0x' prefix. + + + + + + + + + 32-bit unsigned decimal or hexadecimal integer. Decimal should have no + leading 0s. Hexadecimal requires '0x' prefix. + + + + + + + + + 64-bit unsigned decimal or hexadecimal integer. Decimal should have no + leading 0s. Hexadecimal requires '0x' prefix. + + + + + + + + + For a constant-Length property, specify the value (decimal). + For a variable-Length property, specify the name of the property that + will have the length of this property. + + Length is required for "Binary" properties. It indicates the size (in + bytes) of the property value. + + Length is optional for "UnicodeString" and "AnsiString" properties. If + present, Length indicates the size (in characters) of the property + value. If Length is not present, the property is assumed to be + nul-terminated. + + Length is not used for other inTypes. Other inTypes either use a + well-known constant size (e.g. Int32 length is 4) or encode the size + within the value (e.g. nul-terminated strings end at the first 0 + character, and "counted" values start with a 16-bit size). + + In the case of an array (i.e. when the property has a Count), the same + Length value applies to all elements of the array. As a result, it is + not generally useful to create an array of variable-Length properties. + + Note that some decoders only recognize Length properties that + immediately precede the corresponding variable-Length property. + + + + + + + + + For constant-Count array, specify the value (decimal). + For variable-Count array, specify the name of the property that will + have the count of this property. + + Note that some decoders will treat Count="0" as an error, and some + decoders will treat Count="1" as non-array. + + Note that some decoders only recognize Count properties that + immediately precede the corresponding variable-Count property. + + + + + + + + + A reference to a localized string value provided elsewhere. The value + of this attribute should be of the form "$(string.stringTableId)", + where stringTableId is the "id" attribute of a <string> element + defined in the <stringTable> section, or of the form + "$(mc.mcSymbolId)", where mcSymbolId is the symbol of a message string + defined in an .mc file compiled along with this manifest. + + + + + + + + + + + A fully-qualified path to a file. Standard Windows environment variables are + allowed. Typically, the file is of type .exe, .dll, or .sys. + + + + + + + + + Space-separated list of keywords. To support consistent event + filtering, all events should have at least one keyword assigned. + + + + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/evntcons.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evntcons.h new file mode 100644 index 0000000000000000000000000000000000000000..5c058be115af1a6ef6b624d3c22de9913933c818 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evntcons.h @@ -0,0 +1,373 @@ + +/*++ + +Copyright 2004 (c) Microsoft Corporation. All rights reserved. + +Module Name: + + evntcons.h + +Abstract: + + This defines the event consumer API + +Revision History: + + Insung Park (insungp) 26-Aug-2004 + Created the file. + +--*/ + +#ifndef _EVNTCONS_H_ +#define _EVNTCONS_H_ + +#pragma once +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#include +#include +#include + +#ifndef EVNTCONS_INLINE +#define EVNTCONS_INLINE __inline +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined (_MSC_VER) +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) // padding added +#endif +#pragma warning(disable:4201) // nonstandard extension used : nameless struct/union +#pragma warning(disable:4214) // nonstandard extension used : bit field types other then int +#endif + +#define EVENT_HEADER_EXT_TYPE_RELATED_ACTIVITYID 0x0001 +#define EVENT_HEADER_EXT_TYPE_SID 0x0002 +#define EVENT_HEADER_EXT_TYPE_TS_ID 0x0003 +#define EVENT_HEADER_EXT_TYPE_INSTANCE_INFO 0x0004 +#define EVENT_HEADER_EXT_TYPE_STACK_TRACE32 0x0005 +#define EVENT_HEADER_EXT_TYPE_STACK_TRACE64 0x0006 +#define EVENT_HEADER_EXT_TYPE_PEBS_INDEX 0x0007 +#define EVENT_HEADER_EXT_TYPE_PMC_COUNTERS 0x0008 +#define EVENT_HEADER_EXT_TYPE_PSM_KEY 0x0009 +#define EVENT_HEADER_EXT_TYPE_EVENT_KEY 0x000A +#define EVENT_HEADER_EXT_TYPE_EVENT_SCHEMA_TL 0x000B +#define EVENT_HEADER_EXT_TYPE_PROV_TRAITS 0x000C +#define EVENT_HEADER_EXT_TYPE_PROCESS_START_KEY 0x000D +#define EVENT_HEADER_EXT_TYPE_CONTROL_GUID 0x000E +#define EVENT_HEADER_EXT_TYPE_QPC_DELTA 0x000F +#define EVENT_HEADER_EXT_TYPE_CONTAINER_ID 0x0010 +#define EVENT_HEADER_EXT_TYPE_STACK_KEY32 0x0011 +#define EVENT_HEADER_EXT_TYPE_STACK_KEY64 0x0012 +#define EVENT_HEADER_EXT_TYPE_MAX 0x0013 + +#ifndef EVENT_HEADER_EXTENDED_DATA_ITEM_DEF +#define EVENT_HEADER_EXTENDED_DATA_ITEM_DEF +typedef struct _EVENT_HEADER_EXTENDED_DATA_ITEM { + + USHORT Reserved1; // Reserved for internal use + USHORT ExtType; // Extended info type + struct { + USHORT Linkage : 1; // Indicates additional extended + // data item + USHORT Reserved2 : 15; + }; + USHORT DataSize; // Size of extended info data + ULONGLONG DataPtr; // Pointer to extended info data + +} EVENT_HEADER_EXTENDED_DATA_ITEM, *PEVENT_HEADER_EXTENDED_DATA_ITEM; +#endif + +// +// Structures for extended items. +// + +typedef struct _EVENT_EXTENDED_ITEM_INSTANCE { + ULONG InstanceId; + ULONG ParentInstanceId; + GUID ParentGuid; +} EVENT_EXTENDED_ITEM_INSTANCE, *PEVENT_EXTENDED_ITEM_INSTANCE; + +typedef struct _EVENT_EXTENDED_ITEM_RELATED_ACTIVITYID { + GUID RelatedActivityId; +} EVENT_EXTENDED_ITEM_RELATED_ACTIVITYID, *PEVENT_EXTENDED_ITEM_RELATED_ACTIVITYID; + +typedef struct _EVENT_EXTENDED_ITEM_TS_ID { + ULONG SessionId; +} EVENT_EXTENDED_ITEM_TS_ID, *PEVENT_EXTENDED_ITEM_TS_ID; + +typedef struct _EVENT_EXTENDED_ITEM_STACK_TRACE32 { + ULONG64 MatchId; + ULONG Address[ANYSIZE_ARRAY]; +} EVENT_EXTENDED_ITEM_STACK_TRACE32, *PEVENT_EXTENDED_ITEM_STACK_TRACE32; + +typedef struct _EVENT_EXTENDED_ITEM_STACK_TRACE64 { + ULONG64 MatchId; + ULONG64 Address[ANYSIZE_ARRAY]; +} EVENT_EXTENDED_ITEM_STACK_TRACE64, *PEVENT_EXTENDED_ITEM_STACK_TRACE64; + +typedef struct _EVENT_EXTENDED_ITEM_STACK_KEY32 { + ULONG64 MatchId; + ULONG StackKey; + ULONG Padding; +} EVENT_EXTENDED_ITEM_STACK_KEY32, *PEVENT_EXTENDED_ITEM_STACK_KEY32; + +typedef struct _EVENT_EXTENDED_ITEM_STACK_KEY64 { + ULONG64 MatchId; + ULONG64 StackKey; +} EVENT_EXTENDED_ITEM_STACK_KEY64, *PEVENT_EXTENDED_ITEM_STACK_KEY64; + +typedef struct _EVENT_EXTENDED_ITEM_PEBS_INDEX { + ULONG64 PebsIndex; +} EVENT_EXTENDED_ITEM_PEBS_INDEX, *PEVENT_EXTENDED_ITEM_PEBS_INDEX; + +typedef struct _EVENT_EXTENDED_ITEM_PMC_COUNTERS { + ULONG64 Counter[ANYSIZE_ARRAY]; +} EVENT_EXTENDED_ITEM_PMC_COUNTERS, *PEVENT_EXTENDED_ITEM_PMC_COUNTERS; + +typedef struct _EVENT_EXTENDED_ITEM_PROCESS_START_KEY { + ULONG64 ProcessStartKey; +} EVENT_EXTENDED_ITEM_PROCESS_START_KEY, *PEVENT_EXTENDED_ITEM_PROCESS_START_KEY; + +typedef struct _EVENT_EXTENDED_ITEM_EVENT_KEY { + ULONG64 Key; +} EVENT_EXTENDED_ITEM_EVENT_KEY, *PEVENT_EXTENDED_ITEM_EVENT_KEY; + +#define EVENT_HEADER_PROPERTY_XML 0x0001 +#define EVENT_HEADER_PROPERTY_FORWARDED_XML 0x0002 +#define EVENT_HEADER_PROPERTY_LEGACY_EVENTLOG 0x0004 +#define EVENT_HEADER_PROPERTY_RELOGGABLE 0x0008 + +#define EVENT_HEADER_FLAG_EXTENDED_INFO 0x0001 +#define EVENT_HEADER_FLAG_PRIVATE_SESSION 0x0002 +#define EVENT_HEADER_FLAG_STRING_ONLY 0x0004 +#define EVENT_HEADER_FLAG_TRACE_MESSAGE 0x0008 +#define EVENT_HEADER_FLAG_NO_CPUTIME 0x0010 +#define EVENT_HEADER_FLAG_32_BIT_HEADER 0x0020 +#define EVENT_HEADER_FLAG_64_BIT_HEADER 0x0040 +#define EVENT_HEADER_FLAG_DECODE_GUID 0x0080 // ProviderId is decode GUID. +#define EVENT_HEADER_FLAG_CLASSIC_HEADER 0x0100 +#define EVENT_HEADER_FLAG_PROCESSOR_INDEX 0x0200 + +#ifndef EVENT_HEADER_DEF +#define EVENT_HEADER_DEF +typedef struct _EVENT_HEADER { + + USHORT Size; // Event Size + USHORT HeaderType; // Header Type + USHORT Flags; // Flags + USHORT EventProperty; // User given event property + ULONG ThreadId; // Thread Id + ULONG ProcessId; // Process Id + LARGE_INTEGER TimeStamp; // Event Timestamp + GUID ProviderId; // Provider Id + EVENT_DESCRIPTOR EventDescriptor; // Event Descriptor + union { + struct { + ULONG KernelTime; // Kernel Mode CPU ticks + ULONG UserTime; // User mode CPU ticks + } DUMMYSTRUCTNAME; + ULONG64 ProcessorTime; // Processor Clock + // for private session events + } DUMMYUNIONNAME; + GUID ActivityId; // Activity Id + +} EVENT_HEADER, *PEVENT_HEADER; +#endif + +#ifndef EVENT_RECORD_DEF +#define EVENT_RECORD_DEF +typedef struct _EVENT_RECORD { + + EVENT_HEADER EventHeader; // Event header + ETW_BUFFER_CONTEXT BufferContext; // Buffer context + USHORT ExtendedDataCount; // Number of extended + // data items + USHORT UserDataLength; // User data length + PEVENT_HEADER_EXTENDED_DATA_ITEM // Pointer to an array of + ExtendedData; // extended data items + PVOID UserData; // Pointer to user data + PVOID UserContext; // Context from OpenTrace +} EVENT_RECORD, *PEVENT_RECORD; + +typedef const EVENT_RECORD *PCEVENT_RECORD; +#endif + +#define EVENT_ENABLE_PROPERTY_SID 0x00000001 +#define EVENT_ENABLE_PROPERTY_TS_ID 0x00000002 +#define EVENT_ENABLE_PROPERTY_STACK_TRACE 0x00000004 +#define EVENT_ENABLE_PROPERTY_PSM_KEY 0x00000008 +#define EVENT_ENABLE_PROPERTY_IGNORE_KEYWORD_0 0x00000010 +#define EVENT_ENABLE_PROPERTY_PROVIDER_GROUP 0x00000020 +#define EVENT_ENABLE_PROPERTY_ENABLE_KEYWORD_0 0x00000040 +#define EVENT_ENABLE_PROPERTY_PROCESS_START_KEY 0x00000080 +#define EVENT_ENABLE_PROPERTY_EVENT_KEY 0x00000100 +#define EVENT_ENABLE_PROPERTY_EXCLUDE_INPRIVATE 0x00000200 +#define EVENT_ENABLE_PROPERTY_ENABLE_SILOS 0x00000400 +#define EVENT_ENABLE_PROPERTY_SOURCE_CONTAINER_TRACKING 0x00000800 + +// +// Consumer API +// + +#define PROCESS_TRACE_MODE_REAL_TIME 0x00000100 +#define PROCESS_TRACE_MODE_RAW_TIMESTAMP 0x00001000 +#define PROCESS_TRACE_MODE_EVENT_RECORD 0x10000000 + +EVNTCONS_INLINE +ULONG +GetEventProcessorIndex ( + _In_ PCEVENT_RECORD EventRecord + ) +{ + if ((EventRecord->EventHeader.Flags & EVENT_HEADER_FLAG_PROCESSOR_INDEX) != 0) { + return EventRecord->BufferContext.ProcessorIndex; + + } else { + return EventRecord->BufferContext.ProcessorNumber; + } +} + +// +// Provider Trait APIs +// + +typedef enum { + EtwProviderTraitTypeGroup = 1, // Provider group GUID. + EtwProviderTraitDecodeGuid = 2, // Decode GUID (when different from control GUID) + EtwProviderTraitTypeMax +} ETW_PROVIDER_TRAIT_TYPE; + +EVNTCONS_INLINE +VOID +EtwGetTraitFromProviderTraits( + _In_ PVOID ProviderTraits, + _In_ UCHAR TraitType, + _Out_ PVOID* Trait, + _Out_ PUSHORT Size + ) +{ + USHORT const ByteCount = *(USHORT UNALIGNED*)ProviderTraits; + PUCHAR Ptr = (PUCHAR)ProviderTraits; + UCHAR const* PtrEnd = Ptr + ByteCount; + + *Trait = NULL; + *Size = 0; + + // + // Abort on invalid size. + // + + if (ByteCount < 3) { + return; + } + + // + // Skip byte counts + // + + Ptr += 2; + + // + // Skip the Provider Name, including the Null termination + // + + Ptr += strnlen((PCSTR)Ptr, ByteCount - 3u); + Ptr += 1; + + // + // Loop through the rest of the traits until one of the + // desired type is located. + // + + while (Ptr < PtrEnd) { + USHORT const TraitByteCount = *(USHORT const UNALIGNED*)Ptr; + + // + // Abort on invalid trait size. + // + + if (TraitByteCount < 3) { + return; + } + + if ((Ptr[2] == TraitType) && + (Ptr + TraitByteCount <= PtrEnd)) { + + *Trait = (PVOID)(Ptr + 3); + *Size = TraitByteCount - 3u; + return; + } + + Ptr += TraitByteCount; + } + + return; +} + +// +// Event Security APIs +// + +typedef enum { + EventSecuritySetDACL, + EventSecuritySetSACL, + EventSecurityAddDACL, + EventSecurityAddSACL, + EventSecurityMax +} EVENTSECURITYOPERATION; + +#if (WINVER >= _WIN32_WINNT_LONGHORN) +ULONG +EVNTAPI +EventAccessControl( + _In_ LPGUID Guid, + _In_ ULONG Operation, + _In_ PSID Sid, + _In_ ULONG Rights, + _In_ BOOLEAN AllowOrDeny + ); +#endif + +#if (WINVER >= _WIN32_WINNT_LONGHORN) +ULONG +EVNTAPI +EventAccessQuery( + _In_ LPGUID Guid, + _Out_writes_bytes_opt_(*BufferSize) PSECURITY_DESCRIPTOR Buffer, + _Inout_ PULONG BufferSize + ); +#endif + +#if (WINVER >= _WIN32_WINNT_LONGHORN) +ULONG +EVNTAPI +EventAccessRemove( + _In_ LPGUID Guid + ); +#endif + +#if defined (_MSC_VER) +#if _MSC_VER >= 1200 +#pragma warning(pop) // restore 4201,4214 +#else +#pragma warning(default:4201) // nonstandard extension used : nameless struct/union +#pragma warning(default:4214) // nonstandard extension used : bit field types other then int +#endif +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/evr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evr.h new file mode 100644 index 0000000000000000000000000000000000000000..23ac386591993375096d69e1b726204d15419f3a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evr.h @@ -0,0 +1,2000 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __evr_h__ +#define __evr_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IMFVideoPositionMapper_FWD_DEFINED__ +#define __IMFVideoPositionMapper_FWD_DEFINED__ +typedef interface IMFVideoPositionMapper IMFVideoPositionMapper; + +#endif /* __IMFVideoPositionMapper_FWD_DEFINED__ */ + + +#ifndef __IMFVideoDeviceID_FWD_DEFINED__ +#define __IMFVideoDeviceID_FWD_DEFINED__ +typedef interface IMFVideoDeviceID IMFVideoDeviceID; + +#endif /* __IMFVideoDeviceID_FWD_DEFINED__ */ + + +#ifndef __IMFVideoDisplayControl_FWD_DEFINED__ +#define __IMFVideoDisplayControl_FWD_DEFINED__ +typedef interface IMFVideoDisplayControl IMFVideoDisplayControl; + +#endif /* __IMFVideoDisplayControl_FWD_DEFINED__ */ + + +#ifndef __IMFVideoPresenter_FWD_DEFINED__ +#define __IMFVideoPresenter_FWD_DEFINED__ +typedef interface IMFVideoPresenter IMFVideoPresenter; + +#endif /* __IMFVideoPresenter_FWD_DEFINED__ */ + + +#ifndef __IMFDesiredSample_FWD_DEFINED__ +#define __IMFDesiredSample_FWD_DEFINED__ +typedef interface IMFDesiredSample IMFDesiredSample; + +#endif /* __IMFDesiredSample_FWD_DEFINED__ */ + + +#ifndef __IMFVideoMixerControl_FWD_DEFINED__ +#define __IMFVideoMixerControl_FWD_DEFINED__ +typedef interface IMFVideoMixerControl IMFVideoMixerControl; + +#endif /* __IMFVideoMixerControl_FWD_DEFINED__ */ + + +#ifndef __IMFVideoMixerControl2_FWD_DEFINED__ +#define __IMFVideoMixerControl2_FWD_DEFINED__ +typedef interface IMFVideoMixerControl2 IMFVideoMixerControl2; + +#endif /* __IMFVideoMixerControl2_FWD_DEFINED__ */ + + +#ifndef __IMFVideoRenderer_FWD_DEFINED__ +#define __IMFVideoRenderer_FWD_DEFINED__ +typedef interface IMFVideoRenderer IMFVideoRenderer; + +#endif /* __IMFVideoRenderer_FWD_DEFINED__ */ + + +#ifndef __IEVRFilterConfig_FWD_DEFINED__ +#define __IEVRFilterConfig_FWD_DEFINED__ +typedef interface IEVRFilterConfig IEVRFilterConfig; + +#endif /* __IEVRFilterConfig_FWD_DEFINED__ */ + + +#ifndef __IEVRFilterConfigEx_FWD_DEFINED__ +#define __IEVRFilterConfigEx_FWD_DEFINED__ +typedef interface IEVRFilterConfigEx IEVRFilterConfigEx; + +#endif /* __IEVRFilterConfigEx_FWD_DEFINED__ */ + + +#ifndef __IMFTopologyServiceLookup_FWD_DEFINED__ +#define __IMFTopologyServiceLookup_FWD_DEFINED__ +typedef interface IMFTopologyServiceLookup IMFTopologyServiceLookup; + +#endif /* __IMFTopologyServiceLookup_FWD_DEFINED__ */ + + +#ifndef __IMFTopologyServiceLookupClient_FWD_DEFINED__ +#define __IMFTopologyServiceLookupClient_FWD_DEFINED__ +typedef interface IMFTopologyServiceLookupClient IMFTopologyServiceLookupClient; + +#endif /* __IMFTopologyServiceLookupClient_FWD_DEFINED__ */ + + +#ifndef __IEVRTrustedVideoPlugin_FWD_DEFINED__ +#define __IEVRTrustedVideoPlugin_FWD_DEFINED__ +typedef interface IEVRTrustedVideoPlugin IEVRTrustedVideoPlugin; + +#endif /* __IEVRTrustedVideoPlugin_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "propidl.h" +#include "mfidl.h" +#include "strmif.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_evr_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if defined(__midl) +typedef +enum _D3DFORMAT + { + D3DFMT_UNKNOWN = 0, + D3DFMT_R8G8B8 = 20, + D3DFMT_A8R8G8B8 = 21, + D3DFMT_X8R8G8B8 = 22, + D3DFMT_R5G6B5 = 23, + D3DFMT_X1R5G5B5 = 24, + D3DFMT_A1R5G5B5 = 25, + D3DFMT_A4R4G4B4 = 26, + D3DFMT_R3G3B2 = 27, + D3DFMT_A8 = 28, + D3DFMT_A8R3G3B2 = 29, + D3DFMT_X4R4G4B4 = 30, + D3DFMT_A2B10G10R10 = 31, + D3DFMT_G16R16 = 34, + D3DFMT_A8P8 = 40, + D3DFMT_P8 = 41, + D3DFMT_L8 = 50, + D3DFMT_A8L8 = 51, + D3DFMT_A4L4 = 52, + D3DFMT_V8U8 = 60, + D3DFMT_L6V5U5 = 61, + D3DFMT_X8L8V8U8 = 62, + D3DFMT_Q8W8V8U8 = 63, + D3DFMT_V16U16 = 64, + D3DFMT_W11V11U10 = 65, + D3DFMT_A2W10V10U10 = 67, + D3DFMT_D16_LOCKABLE = 70, + D3DFMT_D32 = 71, + D3DFMT_D15S1 = 73, + D3DFMT_D24S8 = 75, + D3DFMT_D16 = 80, + D3DFMT_D24X8 = 77, + D3DFMT_D24X4S4 = 79, + D3DFMT_VERTEXDATA = 100, + D3DFMT_INDEX16 = 101, + D3DFMT_INDEX32 = 102, + D3DFMT_FORCE_DWORD = 0x7fffffff + } D3DFORMAT; + +#endif // __midl +DEFINE_GUID(MR_VIDEO_RENDER_SERVICE, + 0x1092a86c, + 0xab1a, + 0x459a, + 0xa3, 0x36, 0x83, 0x1f, 0xbc, 0x4d, 0x11, 0xff +); +DEFINE_GUID(MR_VIDEO_MIXER_SERVICE, + 0x73cd2fc, + 0x6cf4, + 0x40b7, + 0x88, 0x59, 0xe8, 0x95, 0x52, 0xc8, 0x41, 0xf8 +); +DEFINE_GUID(MR_VIDEO_ACCELERATION_SERVICE, + 0xefef5175, + 0x5c7d, + 0x4ce2, + 0xbb, 0xbd, 0x34, 0xff, 0x8b, 0xca, 0x65, 0x54 +); +DEFINE_GUID(MR_BUFFER_SERVICE, + 0xa562248c, + 0x9ac6, + 0x4ffc, + 0x9f, 0xba, 0x3a, 0xf8, 0xf8, 0xad, 0x1a, 0x4d +); +DEFINE_GUID(VIDEO_ZOOM_RECT, + 0x7aaa1638, + 0x1b7f, + 0x4c93, + 0xbd, 0x89, 0x5b, 0x9c, 0x9f, 0xb6, 0xfc, 0xf0 +); + + + + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0000_v0_0_s_ifspec; + +#ifndef __IMFVideoPositionMapper_INTERFACE_DEFINED__ +#define __IMFVideoPositionMapper_INTERFACE_DEFINED__ + +/* interface IMFVideoPositionMapper */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFVideoPositionMapper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1F6A9F17-E70B-4e24-8AE4-0B2C3BA7A4AE") + IMFVideoPositionMapper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE MapOutputCoordinateToInputStream( + /* [in] */ float xOut, + /* [in] */ float yOut, + /* [in] */ DWORD dwOutputStreamIndex, + /* [in] */ DWORD dwInputStreamIndex, + /* [annotation][out] */ + _Out_ float *pxIn, + /* [annotation][out] */ + _Out_ float *pyIn) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFVideoPositionMapperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMFVideoPositionMapper * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMFVideoPositionMapper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMFVideoPositionMapper * This); + + DECLSPEC_XFGVIRT(IMFVideoPositionMapper, MapOutputCoordinateToInputStream) + HRESULT ( STDMETHODCALLTYPE *MapOutputCoordinateToInputStream )( + IMFVideoPositionMapper * This, + /* [in] */ float xOut, + /* [in] */ float yOut, + /* [in] */ DWORD dwOutputStreamIndex, + /* [in] */ DWORD dwInputStreamIndex, + /* [annotation][out] */ + _Out_ float *pxIn, + /* [annotation][out] */ + _Out_ float *pyIn); + + END_INTERFACE + } IMFVideoPositionMapperVtbl; + + interface IMFVideoPositionMapper + { + CONST_VTBL struct IMFVideoPositionMapperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFVideoPositionMapper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFVideoPositionMapper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFVideoPositionMapper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFVideoPositionMapper_MapOutputCoordinateToInputStream(This,xOut,yOut,dwOutputStreamIndex,dwInputStreamIndex,pxIn,pyIn) \ + ( (This)->lpVtbl -> MapOutputCoordinateToInputStream(This,xOut,yOut,dwOutputStreamIndex,dwInputStreamIndex,pxIn,pyIn) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFVideoPositionMapper_INTERFACE_DEFINED__ */ + + +#ifndef __IMFVideoDeviceID_INTERFACE_DEFINED__ +#define __IMFVideoDeviceID_INTERFACE_DEFINED__ + +/* interface IMFVideoDeviceID */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFVideoDeviceID; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A38D9567-5A9C-4f3c-B293-8EB415B279BA") + IMFVideoDeviceID : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDeviceID( + /* [annotation][out] */ + _Out_ IID *pDeviceID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFVideoDeviceIDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMFVideoDeviceID * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMFVideoDeviceID * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMFVideoDeviceID * This); + + DECLSPEC_XFGVIRT(IMFVideoDeviceID, GetDeviceID) + HRESULT ( STDMETHODCALLTYPE *GetDeviceID )( + IMFVideoDeviceID * This, + /* [annotation][out] */ + _Out_ IID *pDeviceID); + + END_INTERFACE + } IMFVideoDeviceIDVtbl; + + interface IMFVideoDeviceID + { + CONST_VTBL struct IMFVideoDeviceIDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFVideoDeviceID_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFVideoDeviceID_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFVideoDeviceID_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFVideoDeviceID_GetDeviceID(This,pDeviceID) \ + ( (This)->lpVtbl -> GetDeviceID(This,pDeviceID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFVideoDeviceID_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_evr_0000_0002 */ +/* [local] */ + +typedef +enum MFVideoAspectRatioMode + { + MFVideoARMode_None = 0, + MFVideoARMode_PreservePicture = 0x1, + MFVideoARMode_PreservePixel = 0x2, + MFVideoARMode_NonLinearStretch = 0x4, + MFVideoARMode_Mask = 0x7 + } MFVideoAspectRatioMode; + +typedef +enum MFVideoRenderPrefs + { + MFVideoRenderPrefs_DoNotRenderBorder = 0x1, + MFVideoRenderPrefs_DoNotClipToDevice = 0x2, + MFVideoRenderPrefs_AllowOutputThrottling = 0x4, + MFVideoRenderPrefs_ForceOutputThrottling = 0x8, + MFVideoRenderPrefs_ForceBatching = 0x10, + MFVideoRenderPrefs_AllowBatching = 0x20, + MFVideoRenderPrefs_ForceScaling = 0x40, + MFVideoRenderPrefs_AllowScaling = 0x80, + MFVideoRenderPrefs_DoNotRepaintOnStop = 0x100, + MFVideoRenderPrefs_Mask = 0x1ff + } MFVideoRenderPrefs; + +#ifndef _MFVideoNormalizedRect_ +#define _MFVideoNormalizedRect_ +typedef struct MFVideoNormalizedRect + { + float left; + float top; + float right; + float bottom; + } MFVideoNormalizedRect; + +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0002_v0_0_s_ifspec; + +#ifndef __IMFVideoDisplayControl_INTERFACE_DEFINED__ +#define __IMFVideoDisplayControl_INTERFACE_DEFINED__ + +/* interface IMFVideoDisplayControl */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFVideoDisplayControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a490b1e4-ab84-4d31-a1b2-181e03b1077a") + IMFVideoDisplayControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetNativeVideoSize( + /* [unique][out][in] */ __RPC__inout_opt SIZE *pszVideo, + /* [unique][out][in] */ __RPC__inout_opt SIZE *pszARVideo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIdealVideoSize( + /* [unique][out][in] */ __RPC__inout_opt SIZE *pszMin, + /* [unique][out][in] */ __RPC__inout_opt SIZE *pszMax) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetVideoPosition( + /* [unique][in] */ __RPC__in_opt const MFVideoNormalizedRect *pnrcSource, + /* [unique][in] */ __RPC__in_opt const LPRECT prcDest) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoPosition( + /* [out] */ __RPC__out MFVideoNormalizedRect *pnrcSource, + /* [out] */ __RPC__out LPRECT prcDest) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAspectRatioMode( + /* [in] */ DWORD dwAspectRatioMode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAspectRatioMode( + /* [out] */ __RPC__out DWORD *pdwAspectRatioMode) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetVideoWindow( + /* [in] */ __RPC__in HWND hwndVideo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoWindow( + /* [out] */ __RPC__deref_out_opt HWND *phwndVideo) = 0; + + virtual HRESULT STDMETHODCALLTYPE RepaintVideo( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentImage( + /* [out][in] */ __RPC__inout BITMAPINFOHEADER *pBih, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcbDib) BYTE **pDib, + /* [out] */ __RPC__out DWORD *pcbDib, + /* [unique][out][in] */ __RPC__inout_opt LONGLONG *pTimeStamp) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBorderColor( + /* [in] */ COLORREF Clr) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBorderColor( + /* [out] */ __RPC__out COLORREF *pClr) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetRenderingPrefs( + /* [in] */ DWORD dwRenderFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRenderingPrefs( + /* [out] */ __RPC__out DWORD *pdwRenderFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFullscreen( + /* [in] */ BOOL fFullscreen) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFullscreen( + /* [out] */ __RPC__out BOOL *pfFullscreen) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFVideoDisplayControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMFVideoDisplayControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMFVideoDisplayControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMFVideoDisplayControl * This); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetNativeVideoSize) + HRESULT ( STDMETHODCALLTYPE *GetNativeVideoSize )( + __RPC__in IMFVideoDisplayControl * This, + /* [unique][out][in] */ __RPC__inout_opt SIZE *pszVideo, + /* [unique][out][in] */ __RPC__inout_opt SIZE *pszARVideo); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetIdealVideoSize) + HRESULT ( STDMETHODCALLTYPE *GetIdealVideoSize )( + __RPC__in IMFVideoDisplayControl * This, + /* [unique][out][in] */ __RPC__inout_opt SIZE *pszMin, + /* [unique][out][in] */ __RPC__inout_opt SIZE *pszMax); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetVideoPosition) + HRESULT ( STDMETHODCALLTYPE *SetVideoPosition )( + __RPC__in IMFVideoDisplayControl * This, + /* [unique][in] */ __RPC__in_opt const MFVideoNormalizedRect *pnrcSource, + /* [unique][in] */ __RPC__in_opt const LPRECT prcDest); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetVideoPosition) + HRESULT ( STDMETHODCALLTYPE *GetVideoPosition )( + __RPC__in IMFVideoDisplayControl * This, + /* [out] */ __RPC__out MFVideoNormalizedRect *pnrcSource, + /* [out] */ __RPC__out LPRECT prcDest); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetAspectRatioMode) + HRESULT ( STDMETHODCALLTYPE *SetAspectRatioMode )( + __RPC__in IMFVideoDisplayControl * This, + /* [in] */ DWORD dwAspectRatioMode); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetAspectRatioMode) + HRESULT ( STDMETHODCALLTYPE *GetAspectRatioMode )( + __RPC__in IMFVideoDisplayControl * This, + /* [out] */ __RPC__out DWORD *pdwAspectRatioMode); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetVideoWindow) + HRESULT ( STDMETHODCALLTYPE *SetVideoWindow )( + __RPC__in IMFVideoDisplayControl * This, + /* [in] */ __RPC__in HWND hwndVideo); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetVideoWindow) + HRESULT ( STDMETHODCALLTYPE *GetVideoWindow )( + __RPC__in IMFVideoDisplayControl * This, + /* [out] */ __RPC__deref_out_opt HWND *phwndVideo); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, RepaintVideo) + HRESULT ( STDMETHODCALLTYPE *RepaintVideo )( + __RPC__in IMFVideoDisplayControl * This); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetCurrentImage) + HRESULT ( STDMETHODCALLTYPE *GetCurrentImage )( + __RPC__in IMFVideoDisplayControl * This, + /* [out][in] */ __RPC__inout BITMAPINFOHEADER *pBih, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcbDib) BYTE **pDib, + /* [out] */ __RPC__out DWORD *pcbDib, + /* [unique][out][in] */ __RPC__inout_opt LONGLONG *pTimeStamp); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetBorderColor) + HRESULT ( STDMETHODCALLTYPE *SetBorderColor )( + __RPC__in IMFVideoDisplayControl * This, + /* [in] */ COLORREF Clr); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetBorderColor) + HRESULT ( STDMETHODCALLTYPE *GetBorderColor )( + __RPC__in IMFVideoDisplayControl * This, + /* [out] */ __RPC__out COLORREF *pClr); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetRenderingPrefs) + HRESULT ( STDMETHODCALLTYPE *SetRenderingPrefs )( + __RPC__in IMFVideoDisplayControl * This, + /* [in] */ DWORD dwRenderFlags); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetRenderingPrefs) + HRESULT ( STDMETHODCALLTYPE *GetRenderingPrefs )( + __RPC__in IMFVideoDisplayControl * This, + /* [out] */ __RPC__out DWORD *pdwRenderFlags); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, SetFullscreen) + HRESULT ( STDMETHODCALLTYPE *SetFullscreen )( + __RPC__in IMFVideoDisplayControl * This, + /* [in] */ BOOL fFullscreen); + + DECLSPEC_XFGVIRT(IMFVideoDisplayControl, GetFullscreen) + HRESULT ( STDMETHODCALLTYPE *GetFullscreen )( + __RPC__in IMFVideoDisplayControl * This, + /* [out] */ __RPC__out BOOL *pfFullscreen); + + END_INTERFACE + } IMFVideoDisplayControlVtbl; + + interface IMFVideoDisplayControl + { + CONST_VTBL struct IMFVideoDisplayControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFVideoDisplayControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFVideoDisplayControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFVideoDisplayControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFVideoDisplayControl_GetNativeVideoSize(This,pszVideo,pszARVideo) \ + ( (This)->lpVtbl -> GetNativeVideoSize(This,pszVideo,pszARVideo) ) + +#define IMFVideoDisplayControl_GetIdealVideoSize(This,pszMin,pszMax) \ + ( (This)->lpVtbl -> GetIdealVideoSize(This,pszMin,pszMax) ) + +#define IMFVideoDisplayControl_SetVideoPosition(This,pnrcSource,prcDest) \ + ( (This)->lpVtbl -> SetVideoPosition(This,pnrcSource,prcDest) ) + +#define IMFVideoDisplayControl_GetVideoPosition(This,pnrcSource,prcDest) \ + ( (This)->lpVtbl -> GetVideoPosition(This,pnrcSource,prcDest) ) + +#define IMFVideoDisplayControl_SetAspectRatioMode(This,dwAspectRatioMode) \ + ( (This)->lpVtbl -> SetAspectRatioMode(This,dwAspectRatioMode) ) + +#define IMFVideoDisplayControl_GetAspectRatioMode(This,pdwAspectRatioMode) \ + ( (This)->lpVtbl -> GetAspectRatioMode(This,pdwAspectRatioMode) ) + +#define IMFVideoDisplayControl_SetVideoWindow(This,hwndVideo) \ + ( (This)->lpVtbl -> SetVideoWindow(This,hwndVideo) ) + +#define IMFVideoDisplayControl_GetVideoWindow(This,phwndVideo) \ + ( (This)->lpVtbl -> GetVideoWindow(This,phwndVideo) ) + +#define IMFVideoDisplayControl_RepaintVideo(This) \ + ( (This)->lpVtbl -> RepaintVideo(This) ) + +#define IMFVideoDisplayControl_GetCurrentImage(This,pBih,pDib,pcbDib,pTimeStamp) \ + ( (This)->lpVtbl -> GetCurrentImage(This,pBih,pDib,pcbDib,pTimeStamp) ) + +#define IMFVideoDisplayControl_SetBorderColor(This,Clr) \ + ( (This)->lpVtbl -> SetBorderColor(This,Clr) ) + +#define IMFVideoDisplayControl_GetBorderColor(This,pClr) \ + ( (This)->lpVtbl -> GetBorderColor(This,pClr) ) + +#define IMFVideoDisplayControl_SetRenderingPrefs(This,dwRenderFlags) \ + ( (This)->lpVtbl -> SetRenderingPrefs(This,dwRenderFlags) ) + +#define IMFVideoDisplayControl_GetRenderingPrefs(This,pdwRenderFlags) \ + ( (This)->lpVtbl -> GetRenderingPrefs(This,pdwRenderFlags) ) + +#define IMFVideoDisplayControl_SetFullscreen(This,fFullscreen) \ + ( (This)->lpVtbl -> SetFullscreen(This,fFullscreen) ) + +#define IMFVideoDisplayControl_GetFullscreen(This,pfFullscreen) \ + ( (This)->lpVtbl -> GetFullscreen(This,pfFullscreen) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFVideoDisplayControl_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_evr_0000_0003 */ +/* [local] */ + +typedef +enum MFVP_MESSAGE_TYPE + { + MFVP_MESSAGE_FLUSH = 0, + MFVP_MESSAGE_INVALIDATEMEDIATYPE = 0x1, + MFVP_MESSAGE_PROCESSINPUTNOTIFY = 0x2, + MFVP_MESSAGE_BEGINSTREAMING = 0x3, + MFVP_MESSAGE_ENDSTREAMING = 0x4, + MFVP_MESSAGE_ENDOFSTREAM = 0x5, + MFVP_MESSAGE_STEP = 0x6, + MFVP_MESSAGE_CANCELSTEP = 0x7 + } MFVP_MESSAGE_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0003_v0_0_s_ifspec; + +#ifndef __IMFVideoPresenter_INTERFACE_DEFINED__ +#define __IMFVideoPresenter_INTERFACE_DEFINED__ + +/* interface IMFVideoPresenter */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFVideoPresenter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("29AFF080-182A-4a5d-AF3B-448F3A6346CB") + IMFVideoPresenter : public IMFClockStateSink + { + public: + virtual HRESULT STDMETHODCALLTYPE ProcessMessage( + MFVP_MESSAGE_TYPE eMessage, + ULONG_PTR ulParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCurrentMediaType( + /* [annotation][out] */ + _Outptr_ IMFVideoMediaType **ppMediaType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFVideoPresenterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMFVideoPresenter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMFVideoPresenter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMFVideoPresenter * This); + + DECLSPEC_XFGVIRT(IMFClockStateSink, OnClockStart) + HRESULT ( STDMETHODCALLTYPE *OnClockStart )( + IMFVideoPresenter * This, + /* [in] */ MFTIME hnsSystemTime, + /* [in] */ LONGLONG llClockStartOffset); + + DECLSPEC_XFGVIRT(IMFClockStateSink, OnClockStop) + HRESULT ( STDMETHODCALLTYPE *OnClockStop )( + IMFVideoPresenter * This, + /* [in] */ MFTIME hnsSystemTime); + + DECLSPEC_XFGVIRT(IMFClockStateSink, OnClockPause) + HRESULT ( STDMETHODCALLTYPE *OnClockPause )( + IMFVideoPresenter * This, + /* [in] */ MFTIME hnsSystemTime); + + DECLSPEC_XFGVIRT(IMFClockStateSink, OnClockRestart) + HRESULT ( STDMETHODCALLTYPE *OnClockRestart )( + IMFVideoPresenter * This, + /* [in] */ MFTIME hnsSystemTime); + + DECLSPEC_XFGVIRT(IMFClockStateSink, OnClockSetRate) + HRESULT ( STDMETHODCALLTYPE *OnClockSetRate )( + IMFVideoPresenter * This, + /* [in] */ MFTIME hnsSystemTime, + /* [in] */ float flRate); + + DECLSPEC_XFGVIRT(IMFVideoPresenter, ProcessMessage) + HRESULT ( STDMETHODCALLTYPE *ProcessMessage )( + IMFVideoPresenter * This, + MFVP_MESSAGE_TYPE eMessage, + ULONG_PTR ulParam); + + DECLSPEC_XFGVIRT(IMFVideoPresenter, GetCurrentMediaType) + HRESULT ( STDMETHODCALLTYPE *GetCurrentMediaType )( + IMFVideoPresenter * This, + /* [annotation][out] */ + _Outptr_ IMFVideoMediaType **ppMediaType); + + END_INTERFACE + } IMFVideoPresenterVtbl; + + interface IMFVideoPresenter + { + CONST_VTBL struct IMFVideoPresenterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFVideoPresenter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFVideoPresenter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFVideoPresenter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFVideoPresenter_OnClockStart(This,hnsSystemTime,llClockStartOffset) \ + ( (This)->lpVtbl -> OnClockStart(This,hnsSystemTime,llClockStartOffset) ) + +#define IMFVideoPresenter_OnClockStop(This,hnsSystemTime) \ + ( (This)->lpVtbl -> OnClockStop(This,hnsSystemTime) ) + +#define IMFVideoPresenter_OnClockPause(This,hnsSystemTime) \ + ( (This)->lpVtbl -> OnClockPause(This,hnsSystemTime) ) + +#define IMFVideoPresenter_OnClockRestart(This,hnsSystemTime) \ + ( (This)->lpVtbl -> OnClockRestart(This,hnsSystemTime) ) + +#define IMFVideoPresenter_OnClockSetRate(This,hnsSystemTime,flRate) \ + ( (This)->lpVtbl -> OnClockSetRate(This,hnsSystemTime,flRate) ) + + +#define IMFVideoPresenter_ProcessMessage(This,eMessage,ulParam) \ + ( (This)->lpVtbl -> ProcessMessage(This,eMessage,ulParam) ) + +#define IMFVideoPresenter_GetCurrentMediaType(This,ppMediaType) \ + ( (This)->lpVtbl -> GetCurrentMediaType(This,ppMediaType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFVideoPresenter_INTERFACE_DEFINED__ */ + + +#ifndef __IMFDesiredSample_INTERFACE_DEFINED__ +#define __IMFDesiredSample_INTERFACE_DEFINED__ + +/* interface IMFDesiredSample */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFDesiredSample; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("56C294D0-753E-4260-8D61-A3D8820B1D54") + IMFDesiredSample : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDesiredSampleTimeAndDuration( + /* [annotation][out] */ + _Out_ LONGLONG *phnsSampleTime, + /* [annotation][out] */ + _Out_ LONGLONG *phnsSampleDuration) = 0; + + virtual void STDMETHODCALLTYPE SetDesiredSampleTimeAndDuration( + /* [in] */ LONGLONG hnsSampleTime, + /* [in] */ LONGLONG hnsSampleDuration) = 0; + + virtual void STDMETHODCALLTYPE Clear( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFDesiredSampleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMFDesiredSample * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMFDesiredSample * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMFDesiredSample * This); + + DECLSPEC_XFGVIRT(IMFDesiredSample, GetDesiredSampleTimeAndDuration) + HRESULT ( STDMETHODCALLTYPE *GetDesiredSampleTimeAndDuration )( + IMFDesiredSample * This, + /* [annotation][out] */ + _Out_ LONGLONG *phnsSampleTime, + /* [annotation][out] */ + _Out_ LONGLONG *phnsSampleDuration); + + DECLSPEC_XFGVIRT(IMFDesiredSample, SetDesiredSampleTimeAndDuration) + void ( STDMETHODCALLTYPE *SetDesiredSampleTimeAndDuration )( + IMFDesiredSample * This, + /* [in] */ LONGLONG hnsSampleTime, + /* [in] */ LONGLONG hnsSampleDuration); + + DECLSPEC_XFGVIRT(IMFDesiredSample, Clear) + void ( STDMETHODCALLTYPE *Clear )( + IMFDesiredSample * This); + + END_INTERFACE + } IMFDesiredSampleVtbl; + + interface IMFDesiredSample + { + CONST_VTBL struct IMFDesiredSampleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFDesiredSample_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFDesiredSample_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFDesiredSample_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFDesiredSample_GetDesiredSampleTimeAndDuration(This,phnsSampleTime,phnsSampleDuration) \ + ( (This)->lpVtbl -> GetDesiredSampleTimeAndDuration(This,phnsSampleTime,phnsSampleDuration) ) + +#define IMFDesiredSample_SetDesiredSampleTimeAndDuration(This,hnsSampleTime,hnsSampleDuration) \ + ( (This)->lpVtbl -> SetDesiredSampleTimeAndDuration(This,hnsSampleTime,hnsSampleDuration) ) + +#define IMFDesiredSample_Clear(This) \ + ( (This)->lpVtbl -> Clear(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFDesiredSample_INTERFACE_DEFINED__ */ + + +#ifndef __IMFVideoMixerControl_INTERFACE_DEFINED__ +#define __IMFVideoMixerControl_INTERFACE_DEFINED__ + +/* interface IMFVideoMixerControl */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFVideoMixerControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A5C6C53F-C202-4aa5-9695-175BA8C508A5") + IMFVideoMixerControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetStreamZOrder( + /* [in] */ DWORD dwStreamID, + /* [in] */ DWORD dwZ) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamZOrder( + /* [in] */ DWORD dwStreamID, + /* [out] */ __RPC__out DWORD *pdwZ) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetStreamOutputRect( + /* [in] */ DWORD dwStreamID, + /* [in] */ __RPC__in const MFVideoNormalizedRect *pnrcOutput) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamOutputRect( + /* [in] */ DWORD dwStreamID, + /* [out] */ __RPC__out MFVideoNormalizedRect *pnrcOutput) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFVideoMixerControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMFVideoMixerControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMFVideoMixerControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMFVideoMixerControl * This); + + DECLSPEC_XFGVIRT(IMFVideoMixerControl, SetStreamZOrder) + HRESULT ( STDMETHODCALLTYPE *SetStreamZOrder )( + __RPC__in IMFVideoMixerControl * This, + /* [in] */ DWORD dwStreamID, + /* [in] */ DWORD dwZ); + + DECLSPEC_XFGVIRT(IMFVideoMixerControl, GetStreamZOrder) + HRESULT ( STDMETHODCALLTYPE *GetStreamZOrder )( + __RPC__in IMFVideoMixerControl * This, + /* [in] */ DWORD dwStreamID, + /* [out] */ __RPC__out DWORD *pdwZ); + + DECLSPEC_XFGVIRT(IMFVideoMixerControl, SetStreamOutputRect) + HRESULT ( STDMETHODCALLTYPE *SetStreamOutputRect )( + __RPC__in IMFVideoMixerControl * This, + /* [in] */ DWORD dwStreamID, + /* [in] */ __RPC__in const MFVideoNormalizedRect *pnrcOutput); + + DECLSPEC_XFGVIRT(IMFVideoMixerControl, GetStreamOutputRect) + HRESULT ( STDMETHODCALLTYPE *GetStreamOutputRect )( + __RPC__in IMFVideoMixerControl * This, + /* [in] */ DWORD dwStreamID, + /* [out] */ __RPC__out MFVideoNormalizedRect *pnrcOutput); + + END_INTERFACE + } IMFVideoMixerControlVtbl; + + interface IMFVideoMixerControl + { + CONST_VTBL struct IMFVideoMixerControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFVideoMixerControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFVideoMixerControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFVideoMixerControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFVideoMixerControl_SetStreamZOrder(This,dwStreamID,dwZ) \ + ( (This)->lpVtbl -> SetStreamZOrder(This,dwStreamID,dwZ) ) + +#define IMFVideoMixerControl_GetStreamZOrder(This,dwStreamID,pdwZ) \ + ( (This)->lpVtbl -> GetStreamZOrder(This,dwStreamID,pdwZ) ) + +#define IMFVideoMixerControl_SetStreamOutputRect(This,dwStreamID,pnrcOutput) \ + ( (This)->lpVtbl -> SetStreamOutputRect(This,dwStreamID,pnrcOutput) ) + +#define IMFVideoMixerControl_GetStreamOutputRect(This,dwStreamID,pnrcOutput) \ + ( (This)->lpVtbl -> GetStreamOutputRect(This,dwStreamID,pnrcOutput) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFVideoMixerControl_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_evr_0000_0006 */ +/* [local] */ + +typedef +enum _MFVideoMixPrefs + { + MFVideoMixPrefs_ForceHalfInterlace = 0x1, + MFVideoMixPrefs_AllowDropToHalfInterlace = 0x2, + MFVideoMixPrefs_AllowDropToBob = 0x4, + MFVideoMixPrefs_ForceBob = 0x8, + MFVideoMixPrefs_EnableRotation = 0x10, + MFVideoMixPrefs_Mask = 0x1f + } MFVideoMixPrefs; + + + +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0006_v0_0_s_ifspec; + +#ifndef __IMFVideoMixerControl2_INTERFACE_DEFINED__ +#define __IMFVideoMixerControl2_INTERFACE_DEFINED__ + +/* interface IMFVideoMixerControl2 */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFVideoMixerControl2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8459616d-966e-4930-b658-54fa7e5a16d3") + IMFVideoMixerControl2 : public IMFVideoMixerControl + { + public: + virtual HRESULT STDMETHODCALLTYPE SetMixingPrefs( + /* [in] */ DWORD dwMixFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMixingPrefs( + /* [out] */ __RPC__out DWORD *pdwMixFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFVideoMixerControl2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMFVideoMixerControl2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMFVideoMixerControl2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMFVideoMixerControl2 * This); + + DECLSPEC_XFGVIRT(IMFVideoMixerControl, SetStreamZOrder) + HRESULT ( STDMETHODCALLTYPE *SetStreamZOrder )( + __RPC__in IMFVideoMixerControl2 * This, + /* [in] */ DWORD dwStreamID, + /* [in] */ DWORD dwZ); + + DECLSPEC_XFGVIRT(IMFVideoMixerControl, GetStreamZOrder) + HRESULT ( STDMETHODCALLTYPE *GetStreamZOrder )( + __RPC__in IMFVideoMixerControl2 * This, + /* [in] */ DWORD dwStreamID, + /* [out] */ __RPC__out DWORD *pdwZ); + + DECLSPEC_XFGVIRT(IMFVideoMixerControl, SetStreamOutputRect) + HRESULT ( STDMETHODCALLTYPE *SetStreamOutputRect )( + __RPC__in IMFVideoMixerControl2 * This, + /* [in] */ DWORD dwStreamID, + /* [in] */ __RPC__in const MFVideoNormalizedRect *pnrcOutput); + + DECLSPEC_XFGVIRT(IMFVideoMixerControl, GetStreamOutputRect) + HRESULT ( STDMETHODCALLTYPE *GetStreamOutputRect )( + __RPC__in IMFVideoMixerControl2 * This, + /* [in] */ DWORD dwStreamID, + /* [out] */ __RPC__out MFVideoNormalizedRect *pnrcOutput); + + DECLSPEC_XFGVIRT(IMFVideoMixerControl2, SetMixingPrefs) + HRESULT ( STDMETHODCALLTYPE *SetMixingPrefs )( + __RPC__in IMFVideoMixerControl2 * This, + /* [in] */ DWORD dwMixFlags); + + DECLSPEC_XFGVIRT(IMFVideoMixerControl2, GetMixingPrefs) + HRESULT ( STDMETHODCALLTYPE *GetMixingPrefs )( + __RPC__in IMFVideoMixerControl2 * This, + /* [out] */ __RPC__out DWORD *pdwMixFlags); + + END_INTERFACE + } IMFVideoMixerControl2Vtbl; + + interface IMFVideoMixerControl2 + { + CONST_VTBL struct IMFVideoMixerControl2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFVideoMixerControl2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFVideoMixerControl2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFVideoMixerControl2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFVideoMixerControl2_SetStreamZOrder(This,dwStreamID,dwZ) \ + ( (This)->lpVtbl -> SetStreamZOrder(This,dwStreamID,dwZ) ) + +#define IMFVideoMixerControl2_GetStreamZOrder(This,dwStreamID,pdwZ) \ + ( (This)->lpVtbl -> GetStreamZOrder(This,dwStreamID,pdwZ) ) + +#define IMFVideoMixerControl2_SetStreamOutputRect(This,dwStreamID,pnrcOutput) \ + ( (This)->lpVtbl -> SetStreamOutputRect(This,dwStreamID,pnrcOutput) ) + +#define IMFVideoMixerControl2_GetStreamOutputRect(This,dwStreamID,pnrcOutput) \ + ( (This)->lpVtbl -> GetStreamOutputRect(This,dwStreamID,pnrcOutput) ) + + +#define IMFVideoMixerControl2_SetMixingPrefs(This,dwMixFlags) \ + ( (This)->lpVtbl -> SetMixingPrefs(This,dwMixFlags) ) + +#define IMFVideoMixerControl2_GetMixingPrefs(This,pdwMixFlags) \ + ( (This)->lpVtbl -> GetMixingPrefs(This,pdwMixFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFVideoMixerControl2_INTERFACE_DEFINED__ */ + + +#ifndef __IMFVideoRenderer_INTERFACE_DEFINED__ +#define __IMFVideoRenderer_INTERFACE_DEFINED__ + +/* interface IMFVideoRenderer */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFVideoRenderer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DFDFD197-A9CA-43d8-B341-6AF3503792CD") + IMFVideoRenderer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeRenderer( + /* [annotation][unique][in] */ + _In_opt_ IMFTransform *pVideoMixer, + /* [annotation][unique][in] */ + _In_opt_ IMFVideoPresenter *pVideoPresenter) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFVideoRendererVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMFVideoRenderer * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMFVideoRenderer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMFVideoRenderer * This); + + DECLSPEC_XFGVIRT(IMFVideoRenderer, InitializeRenderer) + HRESULT ( STDMETHODCALLTYPE *InitializeRenderer )( + IMFVideoRenderer * This, + /* [annotation][unique][in] */ + _In_opt_ IMFTransform *pVideoMixer, + /* [annotation][unique][in] */ + _In_opt_ IMFVideoPresenter *pVideoPresenter); + + END_INTERFACE + } IMFVideoRendererVtbl; + + interface IMFVideoRenderer + { + CONST_VTBL struct IMFVideoRendererVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFVideoRenderer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFVideoRenderer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFVideoRenderer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFVideoRenderer_InitializeRenderer(This,pVideoMixer,pVideoPresenter) \ + ( (This)->lpVtbl -> InitializeRenderer(This,pVideoMixer,pVideoPresenter) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFVideoRenderer_INTERFACE_DEFINED__ */ + + +#ifndef __IEVRFilterConfig_INTERFACE_DEFINED__ +#define __IEVRFilterConfig_INTERFACE_DEFINED__ + +/* interface IEVRFilterConfig */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEVRFilterConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("83E91E85-82C1-4ea7-801D-85DC50B75086") + IEVRFilterConfig : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetNumberOfStreams( + /* [in] */ DWORD dwMaxStreams) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNumberOfStreams( + /* [annotation][out] */ + _Out_ DWORD *pdwMaxStreams) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEVRFilterConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEVRFilterConfig * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEVRFilterConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEVRFilterConfig * This); + + DECLSPEC_XFGVIRT(IEVRFilterConfig, SetNumberOfStreams) + HRESULT ( STDMETHODCALLTYPE *SetNumberOfStreams )( + IEVRFilterConfig * This, + /* [in] */ DWORD dwMaxStreams); + + DECLSPEC_XFGVIRT(IEVRFilterConfig, GetNumberOfStreams) + HRESULT ( STDMETHODCALLTYPE *GetNumberOfStreams )( + IEVRFilterConfig * This, + /* [annotation][out] */ + _Out_ DWORD *pdwMaxStreams); + + END_INTERFACE + } IEVRFilterConfigVtbl; + + interface IEVRFilterConfig + { + CONST_VTBL struct IEVRFilterConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEVRFilterConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEVRFilterConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEVRFilterConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEVRFilterConfig_SetNumberOfStreams(This,dwMaxStreams) \ + ( (This)->lpVtbl -> SetNumberOfStreams(This,dwMaxStreams) ) + +#define IEVRFilterConfig_GetNumberOfStreams(This,pdwMaxStreams) \ + ( (This)->lpVtbl -> GetNumberOfStreams(This,pdwMaxStreams) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEVRFilterConfig_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_evr_0000_0009 */ +/* [local] */ + +typedef +enum _EVRFilterConfig_Prefs + { + EVRFilterConfigPrefs_EnableQoS = 0x1, + EVRFilterConfigPrefs_Mask = 0x1 + } EVRFilterConfigPrefs; + + + +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0009_v0_0_s_ifspec; + +#ifndef __IEVRFilterConfigEx_INTERFACE_DEFINED__ +#define __IEVRFilterConfigEx_INTERFACE_DEFINED__ + +/* interface IEVRFilterConfigEx */ +/* [helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEVRFilterConfigEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("aea36028-796d-454f-beee-b48071e24304") + IEVRFilterConfigEx : public IEVRFilterConfig + { + public: + virtual HRESULT STDMETHODCALLTYPE SetConfigPrefs( + /* [in] */ DWORD dwConfigFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConfigPrefs( + /* [out] */ __RPC__out DWORD *pdwConfigFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEVRFilterConfigExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEVRFilterConfigEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEVRFilterConfigEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEVRFilterConfigEx * This); + + DECLSPEC_XFGVIRT(IEVRFilterConfig, SetNumberOfStreams) + HRESULT ( STDMETHODCALLTYPE *SetNumberOfStreams )( + __RPC__in IEVRFilterConfigEx * This, + /* [in] */ DWORD dwMaxStreams); + + DECLSPEC_XFGVIRT(IEVRFilterConfig, GetNumberOfStreams) + HRESULT ( STDMETHODCALLTYPE *GetNumberOfStreams )( + __RPC__in IEVRFilterConfigEx * This, + /* [annotation][out] */ + _Out_ DWORD *pdwMaxStreams); + + DECLSPEC_XFGVIRT(IEVRFilterConfigEx, SetConfigPrefs) + HRESULT ( STDMETHODCALLTYPE *SetConfigPrefs )( + __RPC__in IEVRFilterConfigEx * This, + /* [in] */ DWORD dwConfigFlags); + + DECLSPEC_XFGVIRT(IEVRFilterConfigEx, GetConfigPrefs) + HRESULT ( STDMETHODCALLTYPE *GetConfigPrefs )( + __RPC__in IEVRFilterConfigEx * This, + /* [out] */ __RPC__out DWORD *pdwConfigFlags); + + END_INTERFACE + } IEVRFilterConfigExVtbl; + + interface IEVRFilterConfigEx + { + CONST_VTBL struct IEVRFilterConfigExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEVRFilterConfigEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEVRFilterConfigEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEVRFilterConfigEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEVRFilterConfigEx_SetNumberOfStreams(This,dwMaxStreams) \ + ( (This)->lpVtbl -> SetNumberOfStreams(This,dwMaxStreams) ) + +#define IEVRFilterConfigEx_GetNumberOfStreams(This,pdwMaxStreams) \ + ( (This)->lpVtbl -> GetNumberOfStreams(This,pdwMaxStreams) ) + + +#define IEVRFilterConfigEx_SetConfigPrefs(This,dwConfigFlags) \ + ( (This)->lpVtbl -> SetConfigPrefs(This,dwConfigFlags) ) + +#define IEVRFilterConfigEx_GetConfigPrefs(This,pdwConfigFlags) \ + ( (This)->lpVtbl -> GetConfigPrefs(This,pdwConfigFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEVRFilterConfigEx_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_evr_0000_0010 */ +/* [local] */ + +typedef +enum _MF_SERVICE_LOOKUP_TYPE + { + MF_SERVICE_LOOKUP_UPSTREAM = 0, + MF_SERVICE_LOOKUP_UPSTREAM_DIRECT = ( MF_SERVICE_LOOKUP_UPSTREAM + 1 ) , + MF_SERVICE_LOOKUP_DOWNSTREAM = ( MF_SERVICE_LOOKUP_UPSTREAM_DIRECT + 1 ) , + MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT = ( MF_SERVICE_LOOKUP_DOWNSTREAM + 1 ) , + MF_SERVICE_LOOKUP_ALL = ( MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT + 1 ) , + MF_SERVICE_LOOKUP_GLOBAL = ( MF_SERVICE_LOOKUP_ALL + 1 ) + } MF_SERVICE_LOOKUP_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0010_v0_0_s_ifspec; + +#ifndef __IMFTopologyServiceLookup_INTERFACE_DEFINED__ +#define __IMFTopologyServiceLookup_INTERFACE_DEFINED__ + +/* interface IMFTopologyServiceLookup */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFTopologyServiceLookup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fa993889-4383-415a-a930-dd472a8cf6f7") + IMFTopologyServiceLookup : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE LookupService( + /* [in] */ MF_SERVICE_LOOKUP_TYPE Type, + /* [in] */ DWORD dwIndex, + /* [in] */ REFGUID guidService, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _Out_writes_to_(1,*pnObjects) LPVOID *ppvObjects, + /* [annotation][out][in] */ + _Inout_ DWORD *pnObjects) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFTopologyServiceLookupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMFTopologyServiceLookup * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMFTopologyServiceLookup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMFTopologyServiceLookup * This); + + DECLSPEC_XFGVIRT(IMFTopologyServiceLookup, LookupService) + HRESULT ( STDMETHODCALLTYPE *LookupService )( + IMFTopologyServiceLookup * This, + /* [in] */ MF_SERVICE_LOOKUP_TYPE Type, + /* [in] */ DWORD dwIndex, + /* [in] */ REFGUID guidService, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _Out_writes_to_(1,*pnObjects) LPVOID *ppvObjects, + /* [annotation][out][in] */ + _Inout_ DWORD *pnObjects); + + END_INTERFACE + } IMFTopologyServiceLookupVtbl; + + interface IMFTopologyServiceLookup + { + CONST_VTBL struct IMFTopologyServiceLookupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFTopologyServiceLookup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFTopologyServiceLookup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFTopologyServiceLookup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFTopologyServiceLookup_LookupService(This,Type,dwIndex,guidService,riid,ppvObjects,pnObjects) \ + ( (This)->lpVtbl -> LookupService(This,Type,dwIndex,guidService,riid,ppvObjects,pnObjects) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFTopologyServiceLookup_INTERFACE_DEFINED__ */ + + +#ifndef __IMFTopologyServiceLookupClient_INTERFACE_DEFINED__ +#define __IMFTopologyServiceLookupClient_INTERFACE_DEFINED__ + +/* interface IMFTopologyServiceLookupClient */ +/* [uuid][object][local] */ + + +EXTERN_C const IID IID_IMFTopologyServiceLookupClient; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fa99388a-4383-415a-a930-dd472a8cf6f7") + IMFTopologyServiceLookupClient : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InitServicePointers( + /* [annotation][in] */ + _In_ IMFTopologyServiceLookup *pLookup) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseServicePointers( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFTopologyServiceLookupClientVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMFTopologyServiceLookupClient * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMFTopologyServiceLookupClient * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMFTopologyServiceLookupClient * This); + + DECLSPEC_XFGVIRT(IMFTopologyServiceLookupClient, InitServicePointers) + HRESULT ( STDMETHODCALLTYPE *InitServicePointers )( + IMFTopologyServiceLookupClient * This, + /* [annotation][in] */ + _In_ IMFTopologyServiceLookup *pLookup); + + DECLSPEC_XFGVIRT(IMFTopologyServiceLookupClient, ReleaseServicePointers) + HRESULT ( STDMETHODCALLTYPE *ReleaseServicePointers )( + IMFTopologyServiceLookupClient * This); + + END_INTERFACE + } IMFTopologyServiceLookupClientVtbl; + + interface IMFTopologyServiceLookupClient + { + CONST_VTBL struct IMFTopologyServiceLookupClientVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFTopologyServiceLookupClient_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFTopologyServiceLookupClient_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFTopologyServiceLookupClient_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFTopologyServiceLookupClient_InitServicePointers(This,pLookup) \ + ( (This)->lpVtbl -> InitServicePointers(This,pLookup) ) + +#define IMFTopologyServiceLookupClient_ReleaseServicePointers(This) \ + ( (This)->lpVtbl -> ReleaseServicePointers(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFTopologyServiceLookupClient_INTERFACE_DEFINED__ */ + + +#ifndef __IEVRTrustedVideoPlugin_INTERFACE_DEFINED__ +#define __IEVRTrustedVideoPlugin_INTERFACE_DEFINED__ + +/* interface IEVRTrustedVideoPlugin */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEVRTrustedVideoPlugin; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("83A4CE40-7710-494b-A893-A472049AF630") + IEVRTrustedVideoPlugin : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsInTrustedVideoMode( + /* [out] */ BOOL *pYes) = 0; + + virtual HRESULT STDMETHODCALLTYPE CanConstrict( + /* [out] */ BOOL *pYes) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetConstriction( + DWORD dwKPix) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisableImageExport( + BOOL bDisable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEVRTrustedVideoPluginVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEVRTrustedVideoPlugin * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEVRTrustedVideoPlugin * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEVRTrustedVideoPlugin * This); + + DECLSPEC_XFGVIRT(IEVRTrustedVideoPlugin, IsInTrustedVideoMode) + HRESULT ( STDMETHODCALLTYPE *IsInTrustedVideoMode )( + IEVRTrustedVideoPlugin * This, + /* [out] */ BOOL *pYes); + + DECLSPEC_XFGVIRT(IEVRTrustedVideoPlugin, CanConstrict) + HRESULT ( STDMETHODCALLTYPE *CanConstrict )( + IEVRTrustedVideoPlugin * This, + /* [out] */ BOOL *pYes); + + DECLSPEC_XFGVIRT(IEVRTrustedVideoPlugin, SetConstriction) + HRESULT ( STDMETHODCALLTYPE *SetConstriction )( + IEVRTrustedVideoPlugin * This, + DWORD dwKPix); + + DECLSPEC_XFGVIRT(IEVRTrustedVideoPlugin, DisableImageExport) + HRESULT ( STDMETHODCALLTYPE *DisableImageExport )( + IEVRTrustedVideoPlugin * This, + BOOL bDisable); + + END_INTERFACE + } IEVRTrustedVideoPluginVtbl; + + interface IEVRTrustedVideoPlugin + { + CONST_VTBL struct IEVRTrustedVideoPluginVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEVRTrustedVideoPlugin_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEVRTrustedVideoPlugin_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEVRTrustedVideoPlugin_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEVRTrustedVideoPlugin_IsInTrustedVideoMode(This,pYes) \ + ( (This)->lpVtbl -> IsInTrustedVideoMode(This,pYes) ) + +#define IEVRTrustedVideoPlugin_CanConstrict(This,pYes) \ + ( (This)->lpVtbl -> CanConstrict(This,pYes) ) + +#define IEVRTrustedVideoPlugin_SetConstriction(This,dwKPix) \ + ( (This)->lpVtbl -> SetConstriction(This,dwKPix) ) + +#define IEVRTrustedVideoPlugin_DisableImageExport(This,bDisable) \ + ( (This)->lpVtbl -> DisableImageExport(This,bDisable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEVRTrustedVideoPlugin_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_evr_0000_0013 */ +/* [local] */ + +#ifndef MFEVRDLL +#define MFEVRDLL 0 +#endif +#if MFEVRDLL +#define EVRPUBLIC(func) STDAPI _##func +#else +#define EVRPUBLIC(func) STDAPI func +#endif +EVRPUBLIC(MFCreateVideoPresenter)( + _In_opt_ IUnknown * pOwner, + REFIID riidDevice, + REFIID riid, + _Outptr_result_maybenull_ void ** ppVideoPresenter + ); +EVRPUBLIC(MFCreateVideoMixer)( + _In_opt_ IUnknown * pOwner, + REFIID riidDevice, + REFIID riid, + _Outptr_ void ** ppv + ); +EVRPUBLIC(MFCreateVideoMixerAndPresenter)( + _In_opt_ IUnknown * pMixerOwner, + _In_opt_ IUnknown * pPresenterOwner, + REFIID riidMixer, + _Outptr_ void ** ppvVideoMixer, + REFIID riidPresenter, + _Outptr_ void ** ppvVideoPresenter + ); +EVRPUBLIC(MFCreateVideoRenderer)( + REFIID riidRenderer, + _Outptr_result_maybenull_ void ** ppVideoRenderer + ); +EVRPUBLIC(MFCreateVideoSampleFromSurface)( + _In_ IUnknown* pUnkSurface, + _Out_ IMFSample** ppSample + ); +EVRPUBLIC(MFCreateVideoSampleAllocator)( + _In_ REFIID riid, + _Outptr_ void** ppSampleAllocator + ); +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_evr_0000_0013_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/evr.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evr.idl new file mode 100644 index 0000000000000000000000000000000000000000..dd1461620b483171bad9ad454f27b2ea1f606c69 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evr.idl @@ -0,0 +1,1756 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Public Interfaces for the Enhanced Video Renderer. +// +// Copyright (c) 1999 - 2004, Microsoft Corporation. All rights reserved. +/////////////////////////////////////////////////////////////////////////////// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl"; +import "propidl.idl"; +import "mfidl.idl"; +import "mftransform.idl"; + +// DMO IDL import for IMediaBuffer and IMediaObject +import "mediaobj.idl"; + +// Get AM_MEDIA_TYPES +import "strmif.idl"; + +// __midl definitions : only defined for MIDL processing + +cpp_quote( "#if defined(__midl)" ) + +// MAKEFOURCC definition + +#ifndef MAKEFOURCC + +#define MAKEFOURCC(ch0, ch1, ch2, ch3) \ + ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \ + ((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 )) + +#endif // MAKEFOURCC + +// D3DFORMAT definition + +#ifndef D3DFORMAT + +typedef enum _D3DFORMAT +{ + + D3DFMT_UNKNOWN = 0, + + D3DFMT_R8G8B8 = 20, + D3DFMT_A8R8G8B8 = 21, + D3DFMT_X8R8G8B8 = 22, + D3DFMT_R5G6B5 = 23, + D3DFMT_X1R5G5B5 = 24, + D3DFMT_A1R5G5B5 = 25, + D3DFMT_A4R4G4B4 = 26, + D3DFMT_R3G3B2 = 27, + D3DFMT_A8 = 28, + D3DFMT_A8R3G3B2 = 29, + D3DFMT_X4R4G4B4 = 30, + D3DFMT_A2B10G10R10 = 31, + D3DFMT_G16R16 = 34, + + D3DFMT_A8P8 = 40, + D3DFMT_P8 = 41, + + D3DFMT_L8 = 50, + D3DFMT_A8L8 = 51, + D3DFMT_A4L4 = 52, + + D3DFMT_V8U8 = 60, + D3DFMT_L6V5U5 = 61, + D3DFMT_X8L8V8U8 = 62, + D3DFMT_Q8W8V8U8 = 63, + D3DFMT_V16U16 = 64, + D3DFMT_W11V11U10 = 65, + D3DFMT_A2W10V10U10 = 67, +/* + D3DFMT_UYVY = MAKEFOURCC('U', 'Y', 'V', 'Y'), + D3DFMT_YUY2 = MAKEFOURCC('Y', 'U', 'Y', '2'), + D3DFMT_DXT1 = MAKEFOURCC('D', 'X', 'T', '1'), + D3DFMT_DXT2 = MAKEFOURCC('D', 'X', 'T', '2'), + D3DFMT_DXT3 = MAKEFOURCC('D', 'X', 'T', '3'), + D3DFMT_DXT4 = MAKEFOURCC('D', 'X', 'T', '4'), + D3DFMT_DXT5 = MAKEFOURCC('D', 'X', 'T', '5'), +*/ + D3DFMT_D16_LOCKABLE = 70, + D3DFMT_D32 = 71, + D3DFMT_D15S1 = 73, + D3DFMT_D24S8 = 75, + D3DFMT_D16 = 80, + D3DFMT_D24X8 = 77, + D3DFMT_D24X4S4 = 79, + + + D3DFMT_VERTEXDATA =100, + D3DFMT_INDEX16 =101, + D3DFMT_INDEX32 =102, + + D3DFMT_FORCE_DWORD =0x7fffffff + +} D3DFORMAT; + +#endif // D3DFORMAT + +cpp_quote( "#endif // __midl" ) // __midl + +//============================================================================= +// Description: +// +// Service GUID used by IMFGetService::GetService to retrieve interfaces from +// the renderer or the presenter. +// +cpp_quote( "DEFINE_GUID(MR_VIDEO_RENDER_SERVICE, " ) +cpp_quote( " 0x1092a86c, " ) +cpp_quote( " 0xab1a, " ) +cpp_quote( " 0x459a, " ) +cpp_quote( " 0xa3, 0x36, 0x83, 0x1f, 0xbc, 0x4d, 0x11, 0xff " ) +cpp_quote( ");" ) + +//============================================================================= +// Description: +// +// Service GUID used by IMFGetService::GetService to retrieve interfaces from +// the mixer. +// +cpp_quote( "DEFINE_GUID(MR_VIDEO_MIXER_SERVICE, " ) +cpp_quote( " 0x73cd2fc, " ) +cpp_quote( " 0x6cf4, " ) +cpp_quote( " 0x40b7, " ) +cpp_quote( " 0x88, 0x59, 0xe8, 0x95, 0x52, 0xc8, 0x41, 0xf8 " ) +cpp_quote( ");" ) + +//============================================================================= +// Description: +// +// Service GUID used by IMFGetService::GetService to retrieve HW acceleration +// interfaces in the pipeline. +// +cpp_quote( "DEFINE_GUID(MR_VIDEO_ACCELERATION_SERVICE, " ) +cpp_quote( " 0xefef5175, " ) +cpp_quote( " 0x5c7d, " ) +cpp_quote( " 0x4ce2, " ) +cpp_quote( " 0xbb, 0xbd, 0x34, 0xff, 0x8b, 0xca, 0x65, 0x54 " ) +cpp_quote( "); " ) + +//============================================================================= +// Description: +// +// Service GUID used by IMFGetService::GetService to retrieve an object +// from a buffer. +// +cpp_quote( "DEFINE_GUID(MR_BUFFER_SERVICE, " ) +cpp_quote( " 0xa562248c, " ) +cpp_quote( " 0x9ac6, " ) +cpp_quote( " 0x4ffc, " ) +cpp_quote( " 0x9f, 0xba, 0x3a, 0xf8, 0xf8, 0xad, 0x1a, 0x4d " ) +cpp_quote( ");" ) + +//============================================================================= +// Description: +// +// IMFAttributes Blob GUID set on the mixer by the presenter to indicate +// the zoom rectangle to be used in processing the video. The zoom rectangle +// is expressed as an MFVideoNormalizedRect. +// +cpp_quote( "DEFINE_GUID(VIDEO_ZOOM_RECT, " ) +cpp_quote( " 0x7aaa1638, " ) +cpp_quote( " 0x1b7f, " ) +cpp_quote( " 0x4c93, " ) +cpp_quote( " 0xbd, 0x89, 0x5b, 0x9c, 0x9f, 0xb6, 0xfc, 0xf0" ) +cpp_quote( ");" ) + + + +//============================================================================= +// Description: +// +// public interfaces supported by the EVR +// +interface IMFTrackedSample; +interface IMFVideoDisplayControl; +interface IMFVideoPresenter; +interface IMFVideoPositionMapper; +interface IMFDesiredSample; +interface IMFVideoMixerControl; +interface IMFVideoRenderer; +interface IMFVideoDeviceID; +interface IEVRFilterConfig; + +//============================================================================= +// Description: +// +// This interface is used to map coordinates on the output video frame to +// coordinates on the input video frame. If a component in the MF pipeline +// (MF transform, demux, sink) transforms the video in such a way that +// co-ordinates in the input image map to different co-ordinate values in the +// output image, then that component must implement this interface to provide +// the reverse transformation. +// +// It is accessible to the application via the IMFGetService interface from +// the renderer object using service GUID MR_VIDEO_RENDER_SERVICE. +// +[ + object, + uuid(1F6A9F17-E70B-4e24-8AE4-0B2C3BA7A4AE), + helpstring("IMFVideoPositionMapper Interface"), + local +] +interface IMFVideoPositionMapper : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Provides the reverse transformation of coordinates for components that + // transform the video in such a way that co-ordinates in the input image + // map to different co-ordinate values in the output image. + // + // Parameters: + // + // xOut - x coordinate of the output image normalized to the range [0,1] + // yOut - y coordinate of the output image normalized to the range [0,1] + // dwOutputStreamIndex - Output stream index relative to which co-ordinate + // mapping is required. + // dwInputStreamIndex - Input stream index relative to which co-ordinate + // mapping is required. + // pxIn - Mapped x coordinate of the input image normalized to the range [0,1] + // pyIn - Mapped y coordinate of the input image normalized to the range [0,1] + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT MapOutputCoordinateToInputStream( + [in] float xOut, + [in] float yOut, + [in] DWORD dwOutputStreamIndex, + [in] DWORD dwInputStreamIndex, + [out, annotation("_Out_")] float* pxIn, + [out, annotation("_Out_")] float* pyIn + ); +}; + +//============================================================================= +// Description: +// +// The IMFVideoDeviceID interface supports a single method, which returns the device +// IID supported by that object. This IID must be compatible with other components. +// This interface is mandatory for the Mixer and Presenter objects, since these +// components must use the same type of video device. +// +[ + object, + uuid(A38D9567-5A9C-4f3c-B293-8EB415B279BA), + helpstring("IMFVideoDeviceID Interface"), + local +] +interface IMFVideoDeviceID : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // The GetDeviceID method retrieves the video device ID of the video device + // supported by this video component. Although not restricted to these, it + // will generally be one of the following: + // - IID_IDirect3DDevice9 + // + // Parameters: + // + // pDeviceID - Pointer that receives the IID of the device supported by this component. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetDeviceID( + [out, annotation("_Out_")] IID* pDeviceID + ); +}; + +//============================================================================= +// Description: +// +// Enumeration used to specify the aspect ratio mode desired to be used when +// rendering video. Set by calling IMFVideoDisplayControl::SetRenderingPrefs. +// +typedef enum MFVideoAspectRatioMode { + // No aspect ratio correction - fill window + MFVideoARMode_None = 0x00000000, + // Indicates that the picture aspect ratio should be preserved. That is, if the + // video is 640 by 480 pixels (4:3), and the video destination region is a rectangle + // 800 by 700, then the video should be letterboxed and displayed as 800 by 600 + // (retain 4:3). + MFVideoARMode_PreservePicture = 0x00000001, + // Indicates that the pixel aspect ratio should be preserved. This setting comes into + // play when the video display is physically of a certain aspect ratio, but is set + // to a resolution that is not the same aspect ratio, thus making the pixels non-square. + // I.e. a monitor whose native resolution is 1600 by 1200 (4:3) is set to 1280 by 1024 + // (5:4). This flag is only valid when passed with MFVideoARMode_PreservePicture. + MFVideoARMode_PreservePixel = 0x00000002, + // Indicates that a horizontal non-linear stretch should be applied when the aspect + // ratio of the destination rectangle does not match the aspect ratio of the source + // rectangle. The non-linear stretch algorithm acts by preserving the aspect ratio in + // the middle of the picture (relative to the left and right) and stretching (or + // shrinking) progressively more towards the left and right. This mode is useful when + // viewing 4:3 content full screen on a 16:9 aspect ratio display and would be used + // instead of pillar-boxing. It can also be used to view 16:9 content on a 4:3 display + // to replace the letterboxing. Note that this mode may cause performance degradation. + MFVideoARMode_NonLinearStretch = 0x00000004, + MFVideoARMode_Mask = 0x00000007 +} MFVideoAspectRatioMode; + +//============================================================================= +// Description: +// +// The rendering preferences used by the video presenter object. +// +typedef enum MFVideoRenderPrefs { + // Do not paint color keys (default off) + MFVideoRenderPrefs_DoNotRenderBorder = 0x00000001, + // Do not clip to monitor that has largest amount of video (default off) + MFVideoRenderPrefs_DoNotClipToDevice = 0x00000002, + MFVideoRenderPrefs_AllowOutputThrottling = 0x00000004, + MFVideoRenderPrefs_ForceOutputThrottling = 0x00000008, + MFVideoRenderPrefs_ForceBatching = 0x00000010, + MFVideoRenderPrefs_AllowBatching = 0x00000020, + MFVideoRenderPrefs_ForceScaling = 0x00000040, + MFVideoRenderPrefs_AllowScaling = 0x00000080, + MFVideoRenderPrefs_DoNotRepaintOnStop = 0x00000100, + MFVideoRenderPrefs_Mask = 0x000001ff, +} MFVideoRenderPrefs; + +//============================================================================= +// Description: +// +// A Normalized relative rectangle where the coordinates exist in the rate [0,1]. +// +// Remarks: +// +// When the rectangle refers to a video stream, the following restrictions apply +// o left <= right. +// o top <= bottom. +// +cpp_quote("#ifndef _MFVideoNormalizedRect_") +cpp_quote("#define _MFVideoNormalizedRect_") +typedef struct MFVideoNormalizedRect +{ + float left; + float top; + float right; + float bottom; +} MFVideoNormalizedRect; +cpp_quote("#endif") + +//============================================================================= +// Description: +// +// The IMFVideoDisplayControl interface supports window-based rendering. +// +// If a video renderer supports this functionality it is accessible to the +// application via the IMFGetService interface from the renderer object +// using service GUID MR_VIDEO_RENDER_SERVICE. +// +// Custom Video Presenter objects may optionally support this interface. +// +[ + object, + uuid(a490b1e4-ab84-4d31-a1b2-181e03b1077a), + helpstring("IMFVideoDisplayControl Interface") +] +interface IMFVideoDisplayControl : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the un-stretched video size and aspect ratio of the video. + // + // Parameters: + // + // pszVideo - Receives the size of the native video rectangle. Optional, unless pszARVideo is NULL. + // pszARVideo - Receives the aspect ratio size of the native video rectangle. Optional, unless pszVideo is NULL. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - Both pointers passed were NULL. + // + // Remarks: + // + // If the video renderer has not had one of its streams opened and + // media type set, this method will succeed but all parameters will be + // set to zero. + // + HRESULT GetNativeVideoSize( + [in, out, unique] SIZE* pszVideo, + [in, out, unique] SIZE* pszARVideo + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the minimum and maximum video sizes that the VIDEO RENDERER can + // display without incurring significant performance or image quality degradation. + // + // Parameters: + // + // pszMin - Receives the minimum ideal size. Optional, unless pszMax is NULL. + // pszMax - Receives the maximum ideal size. Optional, unless pszMax is NULL. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - Both pointers passed were NULL. + // + // Remarks: + // + // None. + // + HRESULT GetIdealVideoSize( + [in, out, unique] SIZE* pszMin, + [in, out, unique] SIZE* pszMax + ); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the source rectangle and destination region for the video. + // + // Parameters: + // + // pnrcSource - Specifies the source zoom rectangle as a normalized rectangle. + // This means that the coordinates exist as float values in the range {0, 1}. + // To zoom to 100 on the middle content, a rectangle of {.25, .25, .75, .75} + // would be specified. A src rectangle with zero height or width is invalid; + // it would be akin to a divide by zero, since nothing cannot be stretched. + // Optional, unless prcDest is NULL. + // prgnDest - Specifies the destination rectangle. + // Optional, unless pnrcSource is NULL. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT SetVideoPosition( + [in, unique] const MFVideoNormalizedRect* pnrcSource, + [in, unique] const LPRECT prcDest + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the current source rectangle and destination region used to display + // the video. + // + // Parameters: + // + // pnrcSource - Receives the current source rectangle. This is expressed as a + // normalized rectangle using float values in the range {0, 1}. If a rectangle + // of {.25, .25, .75, .75} is retrieved, then the middle content has been + // zoomed to 200. + // prcDest - Receives the current destination rectangle. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // Need to add size_is(*pdwSizeofRgnData) attribute to prgnDest, + // but since that represents array size, need to change prgnDest + // to be BYTE* first. + // + HRESULT GetVideoPosition( + [out] MFVideoNormalizedRect* pnrcSource, + [out] LPRECT prcDest + ); + + //------------------------------------------------------------------------- + // Description: + // + // Specifies how the video renderer will preserve the aspect ratio of the source video. + // + // Parameters: + // + // AspectRatioMode - The aspect ratio mode in which the video should presented. + // This is an OR combination of MFVideoAspectRatioMode. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // + // Remarks: + // + // None. + // + HRESULT SetAspectRatioMode( + [in] DWORD dwAspectRatioMode + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the current mode in which video is being displayed in a window. + // + // Parameters: + // + // lpAspectRatioMode - Receives the aspect ratio mode. This is an OR + // combination of MFVideoAspectRatioMode. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetAspectRatioMode( + [out] DWORD* pdwAspectRatioMode + ); + + //------------------------------------------------------------------------- + // Description: + // + // Specifies the container window that video should be clipped to. + // + // Parameters: + // + // hwndVideo - The window to which the video should be clipped. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // + // Remarks: + // + // None. + // + HRESULT SetVideoWindow( + [in] HWND hwndVideo + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the container window that video is being clipped to. + // + // Parameters: + // + // phwndVideo - Receives the HWND value to which the video is being clipped. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetVideoWindow( + [out] HWND* phwndVideo + ); + + //------------------------------------------------------------------------- + // Description: + // + // Repaints the current video frame. Should be called when the application + // receives a WM_PAINT message. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT RepaintVideo(); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves a copy of the current image being displayed by the video renderer. + // + // Parameters: + // + // pBih - Receives the description of the bitmap. biSize must be set + // to sizeof(BITMAPINFOHEADER). + // pDib - Receives the current image. Allocated by the callee. + // pcbDib - Receives the size of the the image in pDib. + // pTimeStamp - Receives the timestamp of the current frame. + // + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // The image is returned in the form of packed Windows DIB. The caller is + // responsible for free the returned memory by calling CoTaskMemFree. + // + // GetCurrentImage can be called at any time, but excessive use of this + // function will degrade video playback performed. + // + HRESULT GetCurrentImage( + [in, out] BITMAPINFOHEADER* pBih, + [out, size_is(, *pcbDib)] BYTE** pDib, + [out] DWORD* pcbDib, + [in, out, unique] LONGLONG* pTimeStamp + ); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the border color to be used by the video renderer. + // + // Parameters: + // + // Clr - The color to be set. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // + // Remarks: + // + // The border color is color used to fill any area of the + // the destination rectangle that does not contain video. + // It is typically used in two instances: + // 1) When the video straddles two monitors and + // 2) When the EVR is trying to maintain the aspect + // ratio of the movies by letter boxing the video + // to fit within the specified destination rectangle. + // See also SetAspectRatioMode. + // + HRESULT SetBorderColor( + [in] COLORREF Clr + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the current border color used by the video renderer. + // + // Parameters: + // + // pClr - Receives the current border color. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetBorderColor( + [out] COLORREF* pClr + ); + + //------------------------------------------------------------------------- + // Description: + // + // Sets various application preferences related to video rendering. + // + // Parameters: + // + // dwRenderFlags - A bitwise OR of MFVideoRenderPrefs values specifying the + // rendering preferences. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_INVALIDARG - An invalid set of preferences were supplied. + // + // Remarks: + // + // None. + // + HRESULT SetRenderingPrefs( + [in] DWORD dwRenderFlags // a combination of MFVideoRenderPrefs + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the current set of rendering preferences being used by + // the video renderer. + // + // Parameters: + // + // pdwRenderFlags - receives a DWORD representing a bitwise OR of + // MFVideoRenderprefs values indicating the current rendering preferences. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetRenderingPrefs( + [out] DWORD* pdwRenderFlags + ); + + //------------------------------------------------------------------------- + // Description: + // + // Sets or unsets the renderer from its fullscreen rendering mode. For the + // D3D9 renderer, this is D3D exclusive mode. + // + // Parameters: + // + // fFullscreen - TRUE if the renderer should display to the entire screen. + // FALSE otherwise. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // + // Remarks: + // + // None. + // + HRESULT SetFullscreen( + [in] BOOL fFullscreen + ); + + //------------------------------------------------------------------------- + // Description: + // + // Indicates whether or not the renderer is currently in full screen mode. + // + // Parameters: + // + // pfFullscreen - TRUE if the renderer is displaying to the entire screen. + // FALSE otherwise. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetFullscreen( + [out] BOOL* pfFullscreen + ); +} + +//============================================================================= +// Description: +// +// The different message types that can be passed to the video presenter via +// IMFVideoPresenter::ProcessMessage. +// +typedef enum MFVP_MESSAGE_TYPE { + // Called by the video renderer when a flush request is received on the + // reference video stream. In response, the presenter should clear its + // queue of samples waiting to be presented. + // ulParam is unused and should be set to zero. + MFVP_MESSAGE_FLUSH = 0x00000000, + // Indicates to the presenter that the current output media type on the + // mixer has changed. In response, the presenter may now wish to renegotiate + // the media type of the video mixer. + // Return Values: + // S_OK - successful completion + // MF_E_INVALIDMEDIATYPE - The presenter and mixer could not agree on + // a media type. + // ulParam is unused and should be set to zero. + MFVP_MESSAGE_INVALIDATEMEDIATYPE = 0x00000001, + // Indicates that a sample has been delivered to the video mixer object, + // and there may now be a sample now available on the mixer's output. In + // response, the presenter may want to draw frames out of the mixer's + // output. + // ulParam is unused and should be set to zero. + MFVP_MESSAGE_PROCESSINPUTNOTIFY = 0x00000002, + // Called when streaming is about to begin. In + // response, the presenter should allocate any resources necessary to begin + // streaming. + // ulParam is unused and should be set to zero. + MFVP_MESSAGE_BEGINSTREAMING = 0x00000003, + // Called when streaming has completed. In + // response, the presenter should release any resources that were + // previously allocated for streaming. + // ulParam is unused and should be set to zero. + MFVP_MESSAGE_ENDSTREAMING = 0x00000004, + // Indicates that the end of this segment has been reached. + // When the last frame has been rendered, EC_COMPLETE should be sent + // on the IMediaEvent interface retrieved from the renderer + // during IMFTopologyServiceLookupClient::InitServicePointers method. + // ulParam is unused and should be set to zero. + MFVP_MESSAGE_ENDOFSTREAM = 0x00000005, + // The presenter should step the number frames indicated by the lower DWORD + // of ulParam. + // The first n-1 frames should be skipped and only the nth frame should be + // shown. Note that this message should only be received while in the pause + // state or while in the started state when the rate is 0. + // Otherwise, MF_E_INVALIDREQUEST should be returned. + // When the nth frame has been shown EC_STEP_COMPLETE + // should be sent on the IMediaEvent interface. + // Additionally, if stepping is being done while the rate is set to 0 + // (a.k.a. "scrubbing"), the frame should be displayed immediately when + // it is received, and EC_SCRUB_TIME should be sent right away after + // sending EC_STEP_COMPLETE. + MFVP_MESSAGE_STEP = 0x00000006, + // The currently queued step operation should be cancelled. The presenter + // should remain in the pause state following the cancellation. + // ulParam is unused and should be set to zero. + MFVP_MESSAGE_CANCELSTEP = 0x00000007, + +} MFVP_MESSAGE_TYPE; + +//============================================================================= +// Description: +// +// The IMFVideoPresenter interface allows for direct control over the video +// frames, in that it receives video samples as soon as they are available +// from upstream. The video presenter must therefore take care of the timing +// of the samples and synchronize with the render clock. +// +// Custom Video Presenter objects must support this interface. +// +[ + object, + uuid(29AFF080-182A-4a5d-AF3B-448F3A6346CB), + helpstring("IMFVideoPresenter Interface"), + local +] +interface IMFVideoPresenter : IMFClockStateSink +{ + //------------------------------------------------------------------------- + // Description: + // + // Indicates to the presenter that a certain action needs to be performed, + // or signals that something has occured. + // + // Parameters: + // + // eMessage - Indicates the action to be performed or the condition that + // has occured. + // ulParam - Allows for additional information to be passed to the caller. + // See the definition of eMessage for more information. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // + // Remarks: + // + // None. + // + HRESULT ProcessMessage( + MFVP_MESSAGE_TYPE eMessage, + ULONG_PTR ulParam + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the current media type that has been last negotiated by a + // successful call to InvalidateMediaType. + // + // Parameters: + // + // ppMediaType - Receives the currently set media type. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetCurrentMediaType( + [out, annotation("_Outptr_")] IMFVideoMediaType** ppMediaType + ); +} + +//============================================================================= +// Description: +// +// This interface may be optionally supported by buffers passed back to a +// D3D mixer. It allows the presenter more control over which frames the video +// mixer gives back the presenter. +// +// It is retrieved by calling QueryInterface on the IMFSample object. +// +[ + object, + uuid(56C294D0-753E-4260-8D61-A3D8820B1D54), + helpstring("IMFDesiredSample Interface"), + local +] +interface IMFDesiredSample : IUnknown +{ + + //------------------------------------------------------------------------- + // Description: + // + // Called by the Mixer to get the time and duration of sample that the + // presenter wishes. + // + // Parameters: + // + // phnsSampleTime - Receives the desired sample time which should be mixed. + // For example, if the sample time is the same as the last sample time, + // the same sample will be retrieved. To retrieve the next sample, use + // the actual sample time plus the actual sample duration. + // phnsSampleDuration - Receives the sample duration that should be mixed. + // + // Return values: + // + // S_OK - Successful completion. + // E_POINTER - An invalid pointer was passed. + // MF_E_NOT_AVAILABLE - There is no timestamp set. + // + // Remarks: + // + // None. + // + HRESULT GetDesiredSampleTimeAndDuration( + [out, annotation("_Out_")] LONGLONG *phnsSampleTime, + [out, annotation("_Out_")] LONGLONG *phnsSampleDuration + ); + + //------------------------------------------------------------------------- + // Description: + // + // Called by the Presenter to set the time and duration of sample which it + // desires from the mixer. + // + // Parameters: + // + // hnsSampleTime - The time of the sample that is wished from the mixer. + // hnsSampleDuration - The duration of the sample that is wished from the + // mixer. + // + // Return values: + // + // S_OK - Successful completion. + // + // Remarks: + // + // This value should be set prior to passing the buffer to the mixer for + // a Mix operation. The mixer sets the actual start and duration times on + // the IMFSample before handing it back. + // + void SetDesiredSampleTimeAndDuration( + [in] LONGLONG hnsSampleTime, + [in] LONGLONG hnsSampleDuration + ); + + //------------------------------------------------------------------------- + // Description: + // + // Clears the timestamps previously set by a call to + // SetDesiredSampleTimeAndDuration, thus resulting in any subsequent calls + // to GetDesiredSampleTimeAndDuration failing with error code + // MF_E_NOT_AVAILABLE. + // + void Clear(); +}; + +//============================================================================= +// Description: +// +// The IMFVideoMixerControl interface supports mixing of separate video streams. +// If a video renderer supports this functionality it is accessed via the +// IMFGetService interface from the renderer object, using service GUID +// MR_VIDEO_MIXER_SERVICE. +// +[ + object, + uuid(A5C6C53F-C202-4aa5-9695-175BA8C508A5), + helpstring("IMFVideoMixerControl Interface") +] +interface IMFVideoMixerControl : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Sets this video stream's position in the Z-order. + // + // Parameters: + // + // dwStreamID - The stream ID of the stream to set. + // dwZ - The z-order value. 0 indicates the bottom of the z-order and must + // be the reference stream. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_INVALIDSTREAMNUMBER - an invalid stream ID was supplied. + // MF_E_INVALIDREQUEST - 0 was supplied as the Z-order for a stream other + // then the reference stream, or a value other than 0 was supplied + // for the reference stream. + // E_INVALIDARG - a z-order value greater than was supplied. + // + // Remarks: + // + // Z-order of the reference stream is always 0 and cannot be set otherwise. + // + HRESULT SetStreamZOrder( + [in] DWORD dwStreamID, + [in] DWORD dwZ + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves this video stream's position in the Z-order. + // + // Parameters: + // + // dwStreamID - The stream ID of the stream to get. + // pdwZ - Receives the z-order value. 0 indicates the bottom of the z-order + // will always be the value of the reference stream. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_INVALIDSTREAMNUMBER - an invalid stream ID was supplied. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetStreamZOrder( + [in] DWORD dwStreamID, + [out] DWORD* pdwZ + ); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the position of this stream within the composition rectangle. + // + // Parameters: + // + // dwStreamID - The stream ID of the stream to set. + // pnrcOutput - The bounding rectangle, in normalized coordinates. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_INVALIDSTREAMNUMBER - an invalid stream ID was supplied. + // E_INVALIDARG - the Normalized rectangle supplied had coordinates that + // were invalid. See MFVideoNormalizedRect for more information. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT SetStreamOutputRect( + [in] DWORD dwStreamID, + [in] const MFVideoNormalizedRect *pnrcOutput + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the position of this stream's video rectangle within the composition rectangle. + // + // Parameters: + // + // dwStreamID - The stream ID of the stream to get. + // pnrcOutput - Receives the bounding rectangle, in normalized coordinates. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_INVALIDSTREAMNUMBER - an invalid stream ID was supplied. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetStreamOutputRect( + [in] DWORD dwStreamID, + [out] MFVideoNormalizedRect *pnrcOutput + ); +}; + +//============================================================================= +// Description: +// +// The mixing preferences used by the video mixer object. +// +typedef enum _MFVideoMixPrefs { + MFVideoMixPrefs_ForceHalfInterlace = 0x00000001, + MFVideoMixPrefs_AllowDropToHalfInterlace = 0x00000002, + MFVideoMixPrefs_AllowDropToBob = 0x00000004, + MFVideoMixPrefs_ForceBob = 0x00000008, + MFVideoMixPrefs_EnableRotation = 0x00000010, + MFVideoMixPrefs_Mask = 0x0000001f, +} MFVideoMixPrefs; + +//============================================================================= +// Description: +// +// The IMFVideoMixerControl2 interface supports mixing of separate video streams. +// If a video renderer supports this functionality it is accessed via the +// IMFGetService interface from the renderer object, using service GUID +// MR_VIDEO_MIXER_SERVICE. +// +[ + object, + uuid(8459616d-966e-4930-b658-54fa7e5a16d3), + helpstring("IMFVideoMixerControl2 Interface") +] +interface IMFVideoMixerControl2 : IMFVideoMixerControl +{ + //------------------------------------------------------------------------- + // Description: + // + // Sets various application preferences related to video mixing. + // + // Parameters: + // + // dwMixFlags - A bitwise OR of MFVideoMixPrefs values specifying the + // rendering preferences. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video mixer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_INVALIDARG - An invalid set of preferences were supplied. + // + // Remarks: + // + // None. + // + HRESULT SetMixingPrefs( + [in] DWORD dwMixFlags // a combination of MFVideoMixPrefs + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the current set of mixing preferences being used by + // the video mixer. + // + // Parameters: + // + // pdwMixFlags - receives a DWORD representing a bitwise OR of + // MFVideoMixingprefs values indicating the current mixing preferences. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video mixer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetMixingPrefs( + [out] DWORD* pdwMixFlags + ); +}; + +//============================================================================= +// Description: +// +// The IMFVideoRenderer interface supports a single method, which allows an +// application to replace the video presenter and mixer objects with ones of +// its own creation. +// +[ + object, + uuid(DFDFD197-A9CA-43d8-B341-6AF3503792CD), + helpstring("IMFVideoRenderer Interface"), + local +] +interface IMFVideoRenderer : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Replaces the video presenter and mixer objects with ones specified by the + // application. + // + // Parameters: + // + // pVideoMixer - The new video mixer object. Can be NULL. + // + // pVideoPresenter - The new video presenter object. Can be NULL. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_SHUTDOWN - The video renderer has been Shutdown and will no longer + // respond to methods calls. It must be released. + // + // Remarks: + // + // If the video renderer is in the protected media path(PMP), then the mixer + // and presenter objects must be certified safe components and pass any trust + // authority verification that is being enforced. Otherwise, this method will fail. + // + // It is legal to supply NULL as the parameter for both arguments. + // + HRESULT InitializeRenderer( + [in, unique, annotation("_In_opt_")] IMFTransform* pVideoMixer, + [in, unique, annotation("_In_opt_")] IMFVideoPresenter* pVideoPresenter + ); +} + +//============================================================================= +// Description: +// +// The IEVRFilterConfig interface exists for configuration of the DShow EVR +// filter. It allows for setting the stream count. +// +[ + object, + uuid(83E91E85-82C1-4ea7-801D-85DC50B75086), + helpstring("IEVRFilterConfig Interface"), + local +] +interface IEVRFilterConfig : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Configures the video renderer filter with the desired number of streams. + // + // Parameters: + // + // dwMaxStreams - The number of pins. + // + // Return values: + // + // S_OK - Successful completion. + // VFW_E_WRONG_STATE - The Pin count has already been set or the EVR is + // still connected. + // E_INVALIDARG - There must always be a minimum of one pin. Specifying 0 + // will result in this error code. + // + // Remarks: + // + // Pins are created in the disabled state. + // + HRESULT SetNumberOfStreams( + [in] DWORD dwMaxStreams + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the current number of pins that exist on the video renderer. + // There is always at least one pin. + // + // Parameters: + // + // pdwMaxStreams - Receives the number of pins on the filter. + // + // Return values: + // + // S_OK - Successful completion. + // E_POINTER - pdwMaxStreams is NULL. + // + // Remarks: + // + // None. + // + HRESULT GetNumberOfStreams( + [out, annotation("_Out_")] DWORD* pdwMaxStreams + ); +} + +//============================================================================= +// Description: +// +// The configuration preferences used by the filter. +// +typedef enum _EVRFilterConfig_Prefs { + EVRFilterConfigPrefs_EnableQoS = 0x00000001, + EVRFilterConfigPrefs_Mask = 0x00000001, +} EVRFilterConfigPrefs; + +//============================================================================= +// Description: +// +// The IEVRFilterConfigEx interface controls the filter behavior +// +[ + object, + uuid(aea36028-796d-454f-beee-b48071e24304), + helpstring("IEVRFilterConfigEx Interface") +] +interface IEVRFilterConfigEx : IEVRFilterConfig +{ + //------------------------------------------------------------------------- + // Description: + // + // Sets various application filter preferences. + // + // Parameters: + // + // dwConfigFlags - A bitwise OR of EVRFilterConfigPrefs values specifying the + // filter preferences. + // + // Return values: + // + // S_OK - Successful completion. + // E_INVALIDARG - An invalid set of preferences were supplied. + // + // Remarks: + // + // None. + // + HRESULT SetConfigPrefs( + [in] DWORD dwConfigFlags // a combination of EVRFilterConfigPrefs + ); + + //------------------------------------------------------------------------- + // Description: + // + // Retrieves the current set of Config preferences being used by + // the EVR filter. + // + // Parameters: + // + // pdwConfigFlags - receives a DWORD representing a bitwise OR of + // EVRFilterConfigPrefs values indicating the current Config preferences. + // + // Return values: + // + // S_OK - Successful completion. + // E_POINTER - An invalid pointer was passed. + // + // Remarks: + // + // None. + // + HRESULT GetConfigPrefs( + [out] DWORD* pdwConfigFlags + ); +}; + + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// + +typedef enum _MF_SERVICE_LOOKUP_TYPE +{ + MF_SERVICE_LOOKUP_UPSTREAM, + MF_SERVICE_LOOKUP_UPSTREAM_DIRECT, + MF_SERVICE_LOOKUP_DOWNSTREAM, + MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT, + MF_SERVICE_LOOKUP_ALL, // lookup service on any components of the graph + MF_SERVICE_LOOKUP_GLOBAL, // lookup global objects +} MF_SERVICE_LOOKUP_TYPE; + +//============================================================================= +// Description: +// +// Component can use IMFTopologyServiceLookup interface to lookup object in topology. +// Pipeline will call IMFTopologyServiceLookupClient::InitServicePointers some time after component is created +// Component should only use IMFTopologyServiceLookup in the context of IMFTopologyServiceLookupClient::InitServicePointers call +// After call is complete IMFTopologyServiceLookup interface will return an error for any call +// +[ + object, + uuid(fa993889-4383-415a-a930-dd472a8cf6f7), + helpstring("IMFTopologyServiceLookup Interface"), + local +] +interface IMFTopologyServiceLookup : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Called by a client to retrieve external interfaces. + // + // Parameters: + // + // Type - Identifies the scope of the search. + // + // dwIndex - Optional index to identify component input or output. Ignored for _ALL or _GLOBAL type . + // + // guidService - Identifies the service to lookup. + // + // riid - IID of the interface on the service. + // + // ppvObjects - Contains array of size == *pnObject to fill in . + // + // pnObjects - At input time, contains the maximum number of elements in ppvObjects array. + // + // Return values: + // + // S_OK - Successful completion. + // MF_E_UNSUPPORTED_SERVICE - The service specified by guidService is not supported. + // MF_E_NOTACCEPTING - The method was called outside the context of an IMFTopologyServiceLookupClient::InitServicePointers method call. + // E_POINTER - pnObjects or ppvObjects was NULL. + // E_INVALIDARG - *pnObjects was zero. + // + // Remarks: + // + // Method may only be called within the context of an + // IMFTopologyServiceLookupClient::InitServicePointers method call. + // + HRESULT LookupService( + [in] MF_SERVICE_LOOKUP_TYPE Type, + [in] DWORD dwIndex, + [in] REFGUID guidService, + [in] REFIID riid, + [out, iid_is(riid), annotation("_Out_writes_to_(1,*pnObjects)")] LPVOID* ppvObjects, + [in, out, annotation("_Inout_")] DWORD * pnObjects + ); +} + + +//============================================================================= +// Description: +// +// Component can implement IMFTopologyServiceLookupClient if it wants to lookup services on other components in the pipeline +// +[ + local, + object, + uuid(fa99388a-4383-415a-a930-dd472a8cf6f7) +] +interface IMFTopologyServiceLookupClient : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Called by the EVR during initialization of the component. + // Component can lookup services using pLookup object + // + // Parameters: + // + // pLookup - The interface to be used to discover objects. + // + // Return values: + // + // S_OK - Successful completion. + // + // Remarks: + // + // The IMFTopologyServiceLookup pointer should not be addref'ed or cached + // by the callee. It can not be used outside the context of this method + // call and will fail if an attempt is made. + // + HRESULT InitServicePointers( + [in, annotation("_In_")] IMFTopologyServiceLookup * pLookup + ); + + //------------------------------------------------------------------------- + // Description: + // + // Called by the pipeline during deinitialization of the component. + // Component should release all services acquired during InitServicePointers call + // + HRESULT ReleaseServicePointers( + ); +} + + +//============================================================================= +// Description: +// +// EVR plug-ins (mixer, presenter) are expected to implement IEVRTrustedVideoPlugin - QI-able interface +// to enable working in the Protected Video Path. Video OTA uses them to communicate with +// policy objects from ITA. +// +// Abscence of this interface on the plug-in is interpreted as a negative answer to both predicates +// for the purposes of EVR-OTA communication +// + +[ + object, + uuid(83A4CE40-7710-494b-A893-A472049AF630), + helpstring("IEVRTrustedVideoPlugin Interface"), + local +] +interface IEVRTrustedVideoPlugin: IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // This predicate is a simple mechanism for a plug-in to report presence of transient/conditional "video vulnerabilities" + // known to a plug-in on EVR's device change. Returning FALSE here will result in indication to a Policy Object from ITA + // of an additional presence of "unknown software "connector" as an output. Policy Object may take this into consideration + // when defining the protection settings. + // + // The method is called every time on every EVR plug-in after EVR's OTA is informed by EVR about new rendering "device" + // + // The example of such "transient" vulnerability is a windowed (non-fullscreen DX) mode for the EVR presenter in Vista + // ("GDI hole") that is vulnerable to a screen scraping. Whenever the presenter finds itself in a windowed mode it should + // return FALSE. Once "GDI hole" is fixed this may be reflected in this plug-in's implementation of this method. + + // The vulnerabilities are expected to be "transient" as a plug-in that is *always* cannot be trusted with premium video probably + // shouldn't be certified to be loaded in PMP at all. It is responsibility of the plug-in to verify during this call all applicable transient + // conditions for known video vulnerabilities. + + // + // Parameters: + // + // pYes - To return TRUE if plug-in is in trusted video mode, FALSE otherwise + // + // Return values: + // + // S_OK - Successful completion. Any failure is treated as if the method returned FALSE. + // + // Remarks: + // + HRESULT IsInTrustedVideoMode ( + [out] BOOL *pYes + ); + + + + //------------------------------------------------------------------------- + // Description: + // + // Constriction (limiting the effective resolution of the image to a specified number of pixels) + // is a protection mechanism offered by EVR via OTA to a content policy owner. It can be + // implemented either by a mixer or a presenter plug-in (or both) with preference given to a + // mixer. If no mixer is available or a mixer indicates that it cannot support constriction then + // the presenter will be asked if it implements constriction. + // This predicate currently is called immediately after every SetDevice in EVR. + // + // Parameters: + // + // pYes - To return TRUE if plug-in can constrict, FALSE otherwise + // + // Return values: + // + // S_OK - Successful completion. Any failure is treated as if the method returned FALSE. + // + // Remarks: + // + // Care should be taken that no public interface exposed by plug-ins can lessen bandwidth + // restriction imposed by private IEVRTrustedVideo::SetConstriction. If constriction cannot be performed + // in a trusted manner (regardless of the answer on IsInTrustedVideoMode) this capability should + // not be reported. + // + // + HRESULT CanConstrict ( + [out] BOOL *pYes + ); + + + + //------------------------------------------------------------------------- + // Description: + // + // Once an EVR plug-in reports that it CanConstrict video it may be called at any time + // to SetContsriction with the argument establishing limit on the total number of "source" pixels + // in the full output image in "kilopixels" (1000 pixels). (The actual number of pixels at destination can be + // different due to stretch scaling, etc) + // Two argument values are reserved: DWORD(0) and DWORD(0xFFFFFFFF). The former is meant + // to "disable" video (0 "source" pixels, preferably "black video" + // Refer to compliance rules for the definition of "disable". It may be possible to treat "ultra-constriction" + // (<1Kpix) as "disable".) The latter is used to indicate the end of any policy-imposed constriction + // requirements that might be in effect before. + // + // Parameters: + // + // dwKPix - Amount of allowed source pixels in the image in KPixels, or one the two reserved value (see description) + // + // Return values: + // + // S_OK - Successful completion. Any failure here is teated as Policy Enforcemet Failure and is reported to + // to MIG's policy engine as such. + // + // Remarks: + // + // Care should be taken that no public interface exposed by plug-ins can lessen bandwidth + // restriction imposed by private IEVRTrustedVideo::SetConstriction. If constriction cannot be performed + // in a trusted manner (regardless of the answer on IsInTrustedVideoMode) this capability should + // not be reported. + // + // + HRESULT SetConstriction( + DWORD dwKPix + ); + + + //------------------------------------------------------------------------- + // Description: + // + // Some plug-ins (presenters) may implement some form of image exports + // like vidctrl GetCurrentImage(). This OTA callback sets permission to do that. + // + // By default the plug-in is assumed to start with ImageExport functionality enabled + // (if implemented) + // + // Parameters: + // + // BOOL bDisable - TRUE/FALSE. TRUE disables all subsequent image export requests, until set to FALSE. + // + // Return values: + // + // Should always S_OK. Failure will be reported as a policy enforcement error. + // + // Remarks: + // + // A plug-in is expected to return MF_E_LICENSE_INCORRECT_RIGHTS + // from an export methods when disabled. + // + HRESULT DisableImageExport( + BOOL bDisable + ); + +}; + + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// +cpp_quote( "#ifndef MFEVRDLL" ) +cpp_quote( "#define MFEVRDLL 0" ) +cpp_quote( "#endif" ) + +cpp_quote( "#if MFEVRDLL" ) +cpp_quote( "#define EVRPUBLIC(func) STDAPI _##func" ) +cpp_quote( "#else" ) +cpp_quote( "#define EVRPUBLIC(func) STDAPI func" ) +cpp_quote( "#endif" ) + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +cpp_quote( "EVRPUBLIC(MFCreateVideoPresenter)(" ) +cpp_quote( " _In_opt_ IUnknown * pOwner," ) +cpp_quote( " REFIID riidDevice," ) +cpp_quote( " REFIID riid," ) +cpp_quote( " _Outptr_result_maybenull_ void ** ppVideoPresenter" ) +cpp_quote( " );" ) + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +cpp_quote( "EVRPUBLIC(MFCreateVideoMixer)(" ) +cpp_quote( " _In_opt_ IUnknown * pOwner," ) +cpp_quote( " REFIID riidDevice," ) +cpp_quote( " REFIID riid," ) +cpp_quote( " _Outptr_ void ** ppv" ) +cpp_quote( " );" ) + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +cpp_quote( "EVRPUBLIC(MFCreateVideoMixerAndPresenter)(" ) +cpp_quote( " _In_opt_ IUnknown * pMixerOwner,") +cpp_quote( " _In_opt_ IUnknown * pPresenterOwner,") +cpp_quote( " REFIID riidMixer,") +cpp_quote( " _Outptr_ void ** ppvVideoMixer, ") +cpp_quote( " REFIID riidPresenter,") +cpp_quote( " _Outptr_ void ** ppvVideoPresenter") +cpp_quote( " );" ) + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +cpp_quote( "EVRPUBLIC(MFCreateVideoRenderer)(" ) +cpp_quote( " REFIID riidRenderer,") +cpp_quote( " _Outptr_result_maybenull_ void ** ppVideoRenderer" ) +cpp_quote( " );" ) + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +cpp_quote( "EVRPUBLIC(MFCreateVideoSampleFromSurface)(" ) +cpp_quote( " _In_ IUnknown* pUnkSurface," ) +cpp_quote( " _Out_ IMFSample** ppSample" ) +cpp_quote( " );" ) + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +cpp_quote( "EVRPUBLIC(MFCreateVideoSampleAllocator)(" ) +cpp_quote( " _In_ REFIID riid," ) +cpp_quote( " _Outptr_ void** ppSampleAllocator" ) +cpp_quote( " );" ) + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/evr9.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evr9.h new file mode 100644 index 0000000000000000000000000000000000000000..52e7088484c5d19d0a0dd5c67b4559f58993915d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/evr9.h @@ -0,0 +1,592 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __evr9_h__ +#define __evr9_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEVRVideoStreamControl_FWD_DEFINED__ +#define __IEVRVideoStreamControl_FWD_DEFINED__ +typedef interface IEVRVideoStreamControl IEVRVideoStreamControl; + +#endif /* __IEVRVideoStreamControl_FWD_DEFINED__ */ + + +#ifndef __IMFVideoProcessor_FWD_DEFINED__ +#define __IMFVideoProcessor_FWD_DEFINED__ +typedef interface IMFVideoProcessor IMFVideoProcessor; + +#endif /* __IMFVideoProcessor_FWD_DEFINED__ */ + + +#ifndef __IMFVideoMixerBitmap_FWD_DEFINED__ +#define __IMFVideoMixerBitmap_FWD_DEFINED__ +typedef interface IMFVideoMixerBitmap IMFVideoMixerBitmap; + +#endif /* __IMFVideoMixerBitmap_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "mfobjects.h" +#include "mftransform.h" +#include "evr.h" +#include "dxva2api.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_evr9_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + +extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0000_v0_0_s_ifspec; + +#ifndef __IEVRVideoStreamControl_INTERFACE_DEFINED__ +#define __IEVRVideoStreamControl_INTERFACE_DEFINED__ + +/* interface IEVRVideoStreamControl */ +/* [unique][helpstring][uuid][local][object] */ + + +EXTERN_C const IID IID_IEVRVideoStreamControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d0cfe38b-93e7-4772-8957-0400c49a4485") + IEVRVideoStreamControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetStreamActiveState( + /* [in] */ BOOL fActive) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamActiveState( + /* [annotation][out] */ + _Out_ BOOL *lpfActive) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEVRVideoStreamControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEVRVideoStreamControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEVRVideoStreamControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEVRVideoStreamControl * This); + + DECLSPEC_XFGVIRT(IEVRVideoStreamControl, SetStreamActiveState) + HRESULT ( STDMETHODCALLTYPE *SetStreamActiveState )( + IEVRVideoStreamControl * This, + /* [in] */ BOOL fActive); + + DECLSPEC_XFGVIRT(IEVRVideoStreamControl, GetStreamActiveState) + HRESULT ( STDMETHODCALLTYPE *GetStreamActiveState )( + IEVRVideoStreamControl * This, + /* [annotation][out] */ + _Out_ BOOL *lpfActive); + + END_INTERFACE + } IEVRVideoStreamControlVtbl; + + interface IEVRVideoStreamControl + { + CONST_VTBL struct IEVRVideoStreamControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEVRVideoStreamControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEVRVideoStreamControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEVRVideoStreamControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEVRVideoStreamControl_SetStreamActiveState(This,fActive) \ + ( (This)->lpVtbl -> SetStreamActiveState(This,fActive) ) + +#define IEVRVideoStreamControl_GetStreamActiveState(This,lpfActive) \ + ( (This)->lpVtbl -> GetStreamActiveState(This,lpfActive) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEVRVideoStreamControl_INTERFACE_DEFINED__ */ + + +#ifndef __IMFVideoProcessor_INTERFACE_DEFINED__ +#define __IMFVideoProcessor_INTERFACE_DEFINED__ + +/* interface IMFVideoProcessor */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFVideoProcessor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6AB0000C-FECE-4d1f-A2AC-A9573530656E") + IMFVideoProcessor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAvailableVideoProcessorModes( + /* [out][in] */ __RPC__inout UINT *lpdwNumProcessingModes, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*lpdwNumProcessingModes) GUID **ppVideoProcessingModes) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps( + /* [in] */ __RPC__in LPGUID lpVideoProcessorMode, + /* [out] */ __RPC__out DXVA2_VideoProcessorCaps *lpVideoProcessorCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorMode( + /* [out] */ __RPC__out LPGUID lpMode) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetVideoProcessorMode( + /* [in] */ __RPC__in LPGUID lpMode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProcAmpRange( + DWORD dwProperty, + /* [out] */ __RPC__out DXVA2_ValueRange *pPropRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProcAmpValues( + DWORD dwFlags, + /* [out] */ __RPC__out DXVA2_ProcAmpValues *Values) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetProcAmpValues( + DWORD dwFlags, + /* [in] */ __RPC__in DXVA2_ProcAmpValues *pValues) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFilteringRange( + DWORD dwProperty, + /* [out] */ __RPC__out DXVA2_ValueRange *pPropRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFilteringValue( + DWORD dwProperty, + /* [out] */ __RPC__out DXVA2_Fixed32 *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFilteringValue( + DWORD dwProperty, + /* [in] */ __RPC__in DXVA2_Fixed32 *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBackgroundColor( + /* [out] */ __RPC__out COLORREF *lpClrBkg) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBackgroundColor( + COLORREF ClrBkg) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFVideoProcessorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMFVideoProcessor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMFVideoProcessor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMFVideoProcessor * This); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, GetAvailableVideoProcessorModes) + HRESULT ( STDMETHODCALLTYPE *GetAvailableVideoProcessorModes )( + __RPC__in IMFVideoProcessor * This, + /* [out][in] */ __RPC__inout UINT *lpdwNumProcessingModes, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*lpdwNumProcessingModes) GUID **ppVideoProcessingModes); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, GetVideoProcessorCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )( + __RPC__in IMFVideoProcessor * This, + /* [in] */ __RPC__in LPGUID lpVideoProcessorMode, + /* [out] */ __RPC__out DXVA2_VideoProcessorCaps *lpVideoProcessorCaps); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, GetVideoProcessorMode) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorMode )( + __RPC__in IMFVideoProcessor * This, + /* [out] */ __RPC__out LPGUID lpMode); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, SetVideoProcessorMode) + HRESULT ( STDMETHODCALLTYPE *SetVideoProcessorMode )( + __RPC__in IMFVideoProcessor * This, + /* [in] */ __RPC__in LPGUID lpMode); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, GetProcAmpRange) + HRESULT ( STDMETHODCALLTYPE *GetProcAmpRange )( + __RPC__in IMFVideoProcessor * This, + DWORD dwProperty, + /* [out] */ __RPC__out DXVA2_ValueRange *pPropRange); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, GetProcAmpValues) + HRESULT ( STDMETHODCALLTYPE *GetProcAmpValues )( + __RPC__in IMFVideoProcessor * This, + DWORD dwFlags, + /* [out] */ __RPC__out DXVA2_ProcAmpValues *Values); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, SetProcAmpValues) + HRESULT ( STDMETHODCALLTYPE *SetProcAmpValues )( + __RPC__in IMFVideoProcessor * This, + DWORD dwFlags, + /* [in] */ __RPC__in DXVA2_ProcAmpValues *pValues); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, GetFilteringRange) + HRESULT ( STDMETHODCALLTYPE *GetFilteringRange )( + __RPC__in IMFVideoProcessor * This, + DWORD dwProperty, + /* [out] */ __RPC__out DXVA2_ValueRange *pPropRange); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, GetFilteringValue) + HRESULT ( STDMETHODCALLTYPE *GetFilteringValue )( + __RPC__in IMFVideoProcessor * This, + DWORD dwProperty, + /* [out] */ __RPC__out DXVA2_Fixed32 *pValue); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, SetFilteringValue) + HRESULT ( STDMETHODCALLTYPE *SetFilteringValue )( + __RPC__in IMFVideoProcessor * This, + DWORD dwProperty, + /* [in] */ __RPC__in DXVA2_Fixed32 *pValue); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, GetBackgroundColor) + HRESULT ( STDMETHODCALLTYPE *GetBackgroundColor )( + __RPC__in IMFVideoProcessor * This, + /* [out] */ __RPC__out COLORREF *lpClrBkg); + + DECLSPEC_XFGVIRT(IMFVideoProcessor, SetBackgroundColor) + HRESULT ( STDMETHODCALLTYPE *SetBackgroundColor )( + __RPC__in IMFVideoProcessor * This, + COLORREF ClrBkg); + + END_INTERFACE + } IMFVideoProcessorVtbl; + + interface IMFVideoProcessor + { + CONST_VTBL struct IMFVideoProcessorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFVideoProcessor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFVideoProcessor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFVideoProcessor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFVideoProcessor_GetAvailableVideoProcessorModes(This,lpdwNumProcessingModes,ppVideoProcessingModes) \ + ( (This)->lpVtbl -> GetAvailableVideoProcessorModes(This,lpdwNumProcessingModes,ppVideoProcessingModes) ) + +#define IMFVideoProcessor_GetVideoProcessorCaps(This,lpVideoProcessorMode,lpVideoProcessorCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorCaps(This,lpVideoProcessorMode,lpVideoProcessorCaps) ) + +#define IMFVideoProcessor_GetVideoProcessorMode(This,lpMode) \ + ( (This)->lpVtbl -> GetVideoProcessorMode(This,lpMode) ) + +#define IMFVideoProcessor_SetVideoProcessorMode(This,lpMode) \ + ( (This)->lpVtbl -> SetVideoProcessorMode(This,lpMode) ) + +#define IMFVideoProcessor_GetProcAmpRange(This,dwProperty,pPropRange) \ + ( (This)->lpVtbl -> GetProcAmpRange(This,dwProperty,pPropRange) ) + +#define IMFVideoProcessor_GetProcAmpValues(This,dwFlags,Values) \ + ( (This)->lpVtbl -> GetProcAmpValues(This,dwFlags,Values) ) + +#define IMFVideoProcessor_SetProcAmpValues(This,dwFlags,pValues) \ + ( (This)->lpVtbl -> SetProcAmpValues(This,dwFlags,pValues) ) + +#define IMFVideoProcessor_GetFilteringRange(This,dwProperty,pPropRange) \ + ( (This)->lpVtbl -> GetFilteringRange(This,dwProperty,pPropRange) ) + +#define IMFVideoProcessor_GetFilteringValue(This,dwProperty,pValue) \ + ( (This)->lpVtbl -> GetFilteringValue(This,dwProperty,pValue) ) + +#define IMFVideoProcessor_SetFilteringValue(This,dwProperty,pValue) \ + ( (This)->lpVtbl -> SetFilteringValue(This,dwProperty,pValue) ) + +#define IMFVideoProcessor_GetBackgroundColor(This,lpClrBkg) \ + ( (This)->lpVtbl -> GetBackgroundColor(This,lpClrBkg) ) + +#define IMFVideoProcessor_SetBackgroundColor(This,ClrBkg) \ + ( (This)->lpVtbl -> SetBackgroundColor(This,ClrBkg) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFVideoProcessor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_evr9_0000_0002 */ +/* [local] */ + +typedef struct MFVideoAlphaBitmapParams + { + DWORD dwFlags; + COLORREF clrSrcKey; + RECT rcSrc; + MFVideoNormalizedRect nrcDest; + FLOAT fAlpha; + DWORD dwFilterMode; + } MFVideoAlphaBitmapParams; + +typedef struct MFVideoAlphaBitmap + { + BOOL GetBitmapFromDC; + union + { + HDC hdc; + IDirect3DSurface9 *pDDS; + } bitmap; + MFVideoAlphaBitmapParams params; + } MFVideoAlphaBitmap; + +typedef /* [public] */ +enum __MIDL___MIDL_itf_evr9_0000_0002_0002 + { + MFVideoAlphaBitmap_EntireDDS = 0x1, + MFVideoAlphaBitmap_SrcColorKey = 0x2, + MFVideoAlphaBitmap_SrcRect = 0x4, + MFVideoAlphaBitmap_DestRect = 0x8, + MFVideoAlphaBitmap_FilterMode = 0x10, + MFVideoAlphaBitmap_Alpha = 0x20, + MFVideoAlphaBitmap_BitMask = 0x3f + } MFVideoAlphaBitmapFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0002_v0_0_s_ifspec; + +#ifndef __IMFVideoMixerBitmap_INTERFACE_DEFINED__ +#define __IMFVideoMixerBitmap_INTERFACE_DEFINED__ + +/* interface IMFVideoMixerBitmap */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMFVideoMixerBitmap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("814C7B20-0FDB-4eec-AF8F-F957C8F69EDC") + IMFVideoMixerBitmap : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetAlphaBitmap( + /* [in] */ const MFVideoAlphaBitmap *pBmpParms) = 0; + + virtual HRESULT STDMETHODCALLTYPE ClearAlphaBitmap( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateAlphaBitmapParameters( + /* [in] */ const MFVideoAlphaBitmapParams *pBmpParms) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAlphaBitmapParameters( + /* [annotation][out] */ + _Out_ MFVideoAlphaBitmapParams *pBmpParms) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMFVideoMixerBitmapVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IMFVideoMixerBitmap * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IMFVideoMixerBitmap * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IMFVideoMixerBitmap * This); + + DECLSPEC_XFGVIRT(IMFVideoMixerBitmap, SetAlphaBitmap) + HRESULT ( STDMETHODCALLTYPE *SetAlphaBitmap )( + IMFVideoMixerBitmap * This, + /* [in] */ const MFVideoAlphaBitmap *pBmpParms); + + DECLSPEC_XFGVIRT(IMFVideoMixerBitmap, ClearAlphaBitmap) + HRESULT ( STDMETHODCALLTYPE *ClearAlphaBitmap )( + IMFVideoMixerBitmap * This); + + DECLSPEC_XFGVIRT(IMFVideoMixerBitmap, UpdateAlphaBitmapParameters) + HRESULT ( STDMETHODCALLTYPE *UpdateAlphaBitmapParameters )( + IMFVideoMixerBitmap * This, + /* [in] */ const MFVideoAlphaBitmapParams *pBmpParms); + + DECLSPEC_XFGVIRT(IMFVideoMixerBitmap, GetAlphaBitmapParameters) + HRESULT ( STDMETHODCALLTYPE *GetAlphaBitmapParameters )( + IMFVideoMixerBitmap * This, + /* [annotation][out] */ + _Out_ MFVideoAlphaBitmapParams *pBmpParms); + + END_INTERFACE + } IMFVideoMixerBitmapVtbl; + + interface IMFVideoMixerBitmap + { + CONST_VTBL struct IMFVideoMixerBitmapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMFVideoMixerBitmap_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMFVideoMixerBitmap_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMFVideoMixerBitmap_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMFVideoMixerBitmap_SetAlphaBitmap(This,pBmpParms) \ + ( (This)->lpVtbl -> SetAlphaBitmap(This,pBmpParms) ) + +#define IMFVideoMixerBitmap_ClearAlphaBitmap(This) \ + ( (This)->lpVtbl -> ClearAlphaBitmap(This) ) + +#define IMFVideoMixerBitmap_UpdateAlphaBitmapParameters(This,pBmpParms) \ + ( (This)->lpVtbl -> UpdateAlphaBitmapParameters(This,pBmpParms) ) + +#define IMFVideoMixerBitmap_GetAlphaBitmapParameters(This,pBmpParms) \ + ( (This)->lpVtbl -> GetAlphaBitmapParameters(This,pBmpParms) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMFVideoMixerBitmap_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_evr9_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_evr9_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/expandedresources.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/expandedresources.h new file mode 100644 index 0000000000000000000000000000000000000000..2aeb8ea3dace1c3914ebaa87c726879bb9b360e0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/expandedresources.h @@ -0,0 +1,57 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +// +// API Set Contract: +// +// api-ms-win-gaming-expandedresources-l1-1-* +// +// Abstract: +// +// This header file provides API function signatures for expanded resources / GameMode apps. +// + +#ifdef MSC_VER +#pragma once +#endif + +#ifndef _APISET_EXPANDEDRESOURCES_ +#define _APISET_EXPANDEDRESOURCES_ + +#include +#include +#ifdef _CONTRACT_GEN +#include +#include +#include +#include +#endif + +#if defined(__cplusplus) +extern "C" { +#endif + +HRESULT +WINAPI +HasExpandedResources( + _Out_ BOOL* hasExpandedResources + ); + +HRESULT +WINAPI +GetExpandedResourceExclusiveCpuCount( + _Out_ ULONG* exclusiveCpuCount + ); + +HRESULT +WINAPI +ReleaseExclusiveCpuSets( + ); + +#if defined(__cplusplus) +} // end extern "C" +#endif // defined(__cplusplus) + +#endif // _APISET_EXPANDEDRESOURCES_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fci.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fci.h new file mode 100644 index 0000000000000000000000000000000000000000..fcc34ce87e62e3bc2c786d2d720292e830c99383 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fci.h @@ -0,0 +1,483 @@ +/*** fci_int.h - File Compression Interface definitions + * + * Copyright (C) Microsoft Corporation 1993-1994 + * All Rights Reserved. + * + * Author: + * Chuck Strouss + * + * History: + * 09-Jan-1994 chuckst Contents moved to bfol.h, this file is a + * placeholder for the new 'higher-level' fci + * 14-Feb-1994 bens Cleaned up some comments. + * 09-Mar-1994 bens Added error codes (moved from buildcab.h); + * Added RESERVE control + * 17-Mar-1994 bens Specify structure packing explicitly + * 21-Mar-1994 bens Cleaned up names + * 22-Mar-1994 bens Documented error cods + * 29-Mar-1994 bens Add FCIFlushFolder, renamed FCIFlushCabinet + * 18-Apr-1994 bens Changed CDECL to DIAMONDAPI + * 18-May-1994 bens Add ccab.fFailOnIncompressible field for + * Chicago M6 hack. + * 11-Nov-2005 kinshu SAL annotation + */ + +#include + +#ifndef INCLUDED_FCI +#define INCLUDED_FCI 1 + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#include +typedef _Null_terminated_ char* LPSTR; +#include + +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++ */ +#endif /* __cplusplus */ + +//** Specify structure packing explicitly for clients of FCI + +#ifndef _WIN64 +#include +#endif + + +/*** FCIERROR - Error codes returned in erf.erfOper field + * + */ +typedef enum { +FCIERR_NONE, // No error + +FCIERR_OPEN_SRC, // Failure opening file to be stored in cabinet + // erf.erfTyp has C run-time *errno* value + +FCIERR_READ_SRC, // Failure reading file to be stored in cabinet + // erf.erfTyp has C run-time *errno* value + +FCIERR_ALLOC_FAIL, // Out of memory in FCI + +FCIERR_TEMP_FILE, // Could not create a temporary file + // erf.erfTyp has C run-time *errno* value + +FCIERR_BAD_COMPR_TYPE, // Unknown compression type + +FCIERR_CAB_FILE, // Could not create cabinet file + // erf.erfTyp has C run-time *errno* value + +FCIERR_USER_ABORT, // Client requested abort + +FCIERR_MCI_FAIL, // Failure compressing data + +FCIERR_CAB_FORMAT_LIMIT // Data-size or file-count exceeded CAB format limits + // i.e. Total-bytes (uncompressed) in a CAB-folder exceeded 0x7FFF8000 (~ 2GB) + // or, CAB size (compressed) exceeded 0x7FFFFFFF + // or, File-count in CAB exceeded 0xFFFF + +} FCIERROR; + + +/* + * FAT file attribute flag used by FCI/FDI to indicate that + * the filename in the CAB is a UTF string + */ +#ifndef _A_NAME_IS_UTF +#define _A_NAME_IS_UTF 0x80 +#endif + +/* + * FAT file attribute flag used by FCI/FDI to indicate that + * the file should be executed after extraction + */ +#ifndef _A_EXEC +#define _A_EXEC 0x40 +#endif + + +/*** HFCI - Handle to an FCI Context + * + */ +typedef void * HFCI; + + +/*** CCAB - Current Cabinet + * + * This structure is used for passing in the cabinet parameters to FCI, + * and is passed back on certain FCI callbacks to provide cabinet + * information to the client. + */ +typedef struct { +// longs first + ULONG cb; // size available for cabinet on this media + ULONG cbFolderThresh; // Thresshold for forcing a new Folder + +// then ints + UINT cbReserveCFHeader; // Space to reserve in CFHEADER + UINT cbReserveCFFolder; // Space to reserve in CFFOLDER + UINT cbReserveCFData; // Space to reserve in CFDATA + int iCab; // sequential numbers for cabinets + int iDisk; // Disk number +#ifndef REMOVE_CHICAGO_M6_HACK + int fFailOnIncompressible; // TRUE => Fail if a block is incompressible +#endif + +// then shorts + USHORT setID; // Cabinet set ID + +// then chars + char szDisk[CB_MAX_DISK_NAME]; // current disk name + char szCab[CB_MAX_CABINET_NAME]; // current cabinet name + char szCabPath[CB_MAX_CAB_PATH]; // path for creating cabinet +} CCAB; /* ccab */ +typedef CCAB *PCCAB; /* pccab */ + + +/*** FNALLOC - Memory Allocation + * FNFREE - Memory Free + * + * These are modeled after the C run-time routines malloc() and free() + * (16-bit clients please note -- the size is a ULONG, so you may need + * to write a wrapper routine for halloc!). FDI expects error + * handling to be identical to these C run-time routines. + * + * As long as you faithfully copy the semantics of malloc() and free(), + * you can supply any functions you like! + * + * WARNING: You should never assume anything about the sequence of + * PFNALLOC and PFNFREE calls -- incremental releases of + * Diamond/FDI may have radically different numbers of + * PFNALLOC calls and allocation sizes! + */ +//** Memory functions for FCI +typedef void HUGE * (FAR DIAMONDAPI *PFNFCIALLOC)(ULONG cb); /* pfna */ +#define FNFCIALLOC(fn) void HUGE * FAR DIAMONDAPI fn(ULONG cb) + +typedef void (FAR DIAMONDAPI *PFNFCIFREE)(void HUGE *memory); /* pfnf */ +#define FNFCIFREE(fn) void FAR DIAMONDAPI fn(void HUGE *memory) + + +//** File I/O functions for FCI +typedef INT_PTR (FAR DIAMONDAPI *PFNFCIOPEN) (_In_ LPSTR pszFile, int oflag, int pmode, int FAR *err, void FAR *pv); +typedef UINT (FAR DIAMONDAPI *PFNFCIREAD) (INT_PTR hf, void FAR *memory, UINT cb, int FAR *err, void FAR *pv); +typedef UINT (FAR DIAMONDAPI *PFNFCIWRITE)(INT_PTR hf, void FAR *memory, UINT cb, int FAR *err, void FAR *pv); +typedef int (FAR DIAMONDAPI *PFNFCICLOSE)(INT_PTR hf, int FAR *err, void FAR *pv); +typedef long (FAR DIAMONDAPI *PFNFCISEEK) (INT_PTR hf, long dist, int seektype, int FAR *err, void FAR *pv); +typedef int (FAR DIAMONDAPI *PFNFCIDELETE) (_In_ LPSTR pszFile, int FAR *err, void FAR *pv); + +#define FNFCIOPEN(fn) INT_PTR FAR DIAMONDAPI fn(_In_ LPSTR pszFile, int oflag, int pmode, int FAR *err, void FAR *pv) +#define FNFCIREAD(fn) UINT FAR DIAMONDAPI fn(INT_PTR hf, void FAR *memory, UINT cb, int FAR *err, void FAR *pv) +#define FNFCIWRITE(fn) UINT FAR DIAMONDAPI fn(INT_PTR hf, void FAR *memory, UINT cb, int FAR *err, void FAR *pv) +#define FNFCICLOSE(fn) int FAR DIAMONDAPI fn(INT_PTR hf, int FAR *err, void FAR *pv) +#define FNFCISEEK(fn) long FAR DIAMONDAPI fn(INT_PTR hf, long dist, int seektype, int FAR *err, void FAR *pv) +#define FNFCIDELETE(fn) int FAR DIAMONDAPI fn(_In_ LPSTR pszFile, int FAR *err, void FAR *pv) + + +/*** FNFCIGETNEXTCABINET - Callback used to request new cabinet info + * + * Entry: + * pccab - Points to copy of old ccab structure to modify + * cbPrevCab - Estimate of size of previous cabinet + * pv - Has the caller's context pointer + * + * Exit-Success: + * returns TRUE; + * + * Exit-Failure: + * returns FALSE; + */ +typedef BOOL (DIAMONDAPI *PFNFCIGETNEXTCABINET)(PCCAB pccab, + ULONG cbPrevCab, + void FAR *pv); /* pfnfcignc */ + +#define FNFCIGETNEXTCABINET(fn) BOOL DIAMONDAPI fn(PCCAB pccab, \ + ULONG cbPrevCab, \ + void FAR *pv) + + +/*** FNFCIFILEPLACED - Notify FCI client that file was placed + * + * Entry: + * pccab - cabinet structure to fill in, with copy of previous one + * pszFile - name of file, from cabinet + * cbFile - length of file + * fContinuation - true if this is a later segment of a continued file + * pv - the context of the client + * + * Exit-Success: + * return value anything but -1 + * + * Exit-Failure: + * return value -1 means to abort + */ +typedef int (DIAMONDAPI *PFNFCIFILEPLACED)(PCCAB pccab, + _In_ LPSTR pszFile, + long cbFile, + BOOL fContinuation, + void FAR *pv); /* pfnfcifp */ + +#define FNFCIFILEPLACED(fn) int DIAMONDAPI fn(PCCAB pccab, \ + _In_ LPSTR pszFile, \ + long cbFile, \ + BOOL fContinuation, \ + void FAR *pv) + + +/*** FNCDIGETOPENINFO - Open source file, get date/time/attribs + * + * Entry: + * pszName -- complete path to filename + * pdate -- location to return FAT-style date code + * ptime -- location to return FAT-style time code + * pattribs -- location to return FAT-style attributes + * pv -- client's context + * + * Exit-Success: + * Return value is file handle of open file to read + * + * Exit-Failure: + * Return value is -1 + */ +typedef INT_PTR (DIAMONDAPI *PFNFCIGETOPENINFO)(_In_ LPSTR pszName, + USHORT *pdate, + USHORT *ptime, + USHORT *pattribs, + int FAR *err, + void FAR *pv); /* pfnfcigoi */ + +#define FNFCIGETOPENINFO(fn) INT_PTR DIAMONDAPI fn(_In_ LPSTR pszName, \ + USHORT *pdate, \ + USHORT *ptime, \ + USHORT *pattribs, \ + int FAR *err, \ + void FAR *pv) + +/*** FNFCISTATUS - Status/Cabinet Size callback + * + * Entry: + * typeStatus == statusFile if compressing a block into a folder + * cb1 = Size of compressed block + * cb2 = Size of uncompressed block + * + * typeStatus == statusFolder if adding a folder to a cabinet + * cb1 = Amount of folder copied to cabinet so far + * cb2 = Total size of folder + * + * typeStatus == statusCabinet if writing out a complete cabinet + * cb1 = Estimated cabinet size that was previously + * passed to fnfciGetNextCabinet(). + * cb2 = Actual cabinet size + * NOTE: Return value is desired client size for cabinet + * file. FCI updates the maximum cabinet size + * remaining using this value. This allows a client + * to generate multiple cabinets per disk, and have + * FCI limit the size correctly -- the client can do + * cluster size rounding on the cabinet size! + * The client should either return cb2, or round cb2 + * up to some larger value and return that. + * Exit-Success: + * Returns anything other than -1; + * NOTE: See statusCabinet for special return values! + * + * Exit-Failure: + * Returns -1 to signal that FCI should abort; + */ + +#define statusFile 0 // Add File to Folder callback +#define statusFolder 1 // Add Folder to Cabinet callback +#define statusCabinet 2 // Write out a completed cabinet callback + +typedef long (DIAMONDAPI *PFNFCISTATUS)(UINT typeStatus, + ULONG cb1, + ULONG cb2, + void FAR *pv); /* pfnfcis */ + +#define FNFCISTATUS(fn) long DIAMONDAPI fn(UINT typeStatus, \ + ULONG cb1, \ + ULONG cb2, \ + void FAR *pv) + + +/*** FNFCIGETTEMPFILE - Callback, requests temporary file name + * + * Entry: + * pszTempName - Buffer to receive complete tempfile name + * cbTempName - Size of pszTempName buffer + * + * Exit-Success: + * return TRUE + * + * Exit-Failure: + * return FALSE; could not create tempfile, or buffer too small + * + * Note: + * It is conceivable that this function may return a filename + * that will already exist by the time it is opened. For this + * reason, the caller should make several attempts to create + * temporary files before giving up. + */ +typedef BOOL (DIAMONDAPI *PFNFCIGETTEMPFILE)(_Out_writes_bytes_(cbTempName) char *pszTempName, + _In_range_(<=, 260) int cbTempName, + void FAR *pv); /* pfnfcigtf */ + +#define FNFCIGETTEMPFILE(fn) BOOL DIAMONDAPI fn(_Out_writes_bytes_(cbTempName) char *pszTempName, \ + _In_range_(<=, 260) int cbTempName, \ + void FAR *pv) + + +/*** FCICreate -- create an FCI context (an open CAB, an open FOL) + * + * Entry: + * perf - structure where we return error codes + * pfnfcifp - callback to inform caller of eventual dest of files + * pfna - memory allocation function callback + * pfnf - memory free function callback + * pfnfcigtf - temp file name generator callback + * pccab - pointer to cabinet/disk name & size structure + * + * Notes: + * (1) The alloc/free callbacks must remain valid throughout + * the life of the context, up to and including the call to + * FCIDestroy. + * (2) The perf pointer is stored in the compression context (HCI), + * and any errors from subsequent FCI calls are stored in the + * erf that was passed in on *this* call. + * + * Exit-Success: + * Returns non-NULL handle to an FCI context. + * + * Exit-Failure: + * Returns NULL, perf filled in. + */ +HFCI DIAMONDAPI FCICreate(_In_ PERF perf, + __callback PFNFCIFILEPLACED pfnfcifp, + __callback PFNFCIALLOC pfna, + __callback PFNFCIFREE pfnf, + __callback PFNFCIOPEN pfnopen, + __callback PFNFCIREAD pfnread, + __callback PFNFCIWRITE pfnwrite, + __callback PFNFCICLOSE pfnclose, + __callback PFNFCISEEK pfnseek, + __callback PFNFCIDELETE pfndelete, + __callback PFNFCIGETTEMPFILE pfnfcigtf, + _In_ PCCAB pccab, + _In_opt_ void FAR *pv + ); + + +/*** FCIAddFile - Add a disk file to a folder/cabinet + * + * Entry: + * hfci - FCI context handle + * pszSourceFile - Name of file to add to folder + * pszFileName - Name to store into folder/cabinet + * fExecute - Flag indicating execute on extract + * pfn_progress - Progress callback + * pfnfcignc - GetNextCabinet callback + * pfnfcis - Status callback + * pfnfcigoi - OpenInfo callback + * typeCompress - Type of compression to use for this file + * pv - pointer to caller's internal context + * + * Exit-Success: + * returns TRUE + * + * Exit-Failure: + * returns FALSE, error filled in + * + * This is the main function used to add file(s) to a cabinet + * or series of cabinets. If the current file causes the current + * folder/cabinet to overflow the disk image currently being built, + * the cabinet will be terminated, and a new cabinet/disk name will + * be prompted for via a callback. The pending folder will be trimmed + * of the data which has already been generated in the finished cabinet. + */ +BOOL DIAMONDAPI FCIAddFile(_In_ HFCI hfci, + _In_ LPSTR pszSourceFile, + _In_ LPSTR pszFileName, + BOOL fExecute, + __callback PFNFCIGETNEXTCABINET pfnfcignc, + __callback PFNFCISTATUS pfnfcis, + __callback PFNFCIGETOPENINFO pfnfcigoi, + TCOMP typeCompress + ); + + +/*** FCIFlushCabinet - Complete the current cabinet under construction + * + * This will cause the current cabinet (assuming it is not empty) to + * be gathered together and written to disk. + * + * Entry: + * hfci - FCI context + * fGetNextCab - TRUE => Call GetNextCab to get continuation info; + * FALSE => Don't call GetNextCab unless this cabinet + * overflows. + * pfnfcignc - callback function to get continuation cabinets + * pfnfcis - callback function for progress reporting + * pv - caller's internal context for callbacks + * + * Exit-Success: + * return code TRUE + * + * Exit-Failure: + * return code FALSE, error structure filled in + */ +BOOL DIAMONDAPI FCIFlushCabinet(_In_ HFCI hfci, + BOOL fGetNextCab, + __callback PFNFCIGETNEXTCABINET pfnfcignc, + __callback PFNFCISTATUS pfnfcis + ); + + +/*** FCIFlushFolder - Complete the current folder under construction + * + * This will force the termination of the current folder, which may or + * may not cause one or more cabinet files to be completed. + * + * Entry: + * hfci - FCI context + * GetNextCab - callback function to get continuation cabinets + * pfnProgress - callback function for progress reporting + * pv - caller's internal context for callbacks + * + * Exit-Success: + * return code TRUE + * + * Exit-Failure: + * return code FALSE, error structure filled in + */ +BOOL DIAMONDAPI FCIFlushFolder(_In_ HFCI hfci, + __callback PFNFCIGETNEXTCABINET pfnfcignc, + __callback PFNFCISTATUS pfnfcis + ); + + +/*** FCIDestroy - Destroy a FCI context and delete temp files + * + * Entry: + * hfci - FCI context + * + * Exit-Success: + * return code TRUE + * + * Exit-Failure: + * return code FALSE, error structure filled in + */ +BOOL DIAMONDAPI FCIDestroy (_In_ HFCI hfci); + +//** Revert to default structure packing + +#ifndef _WIN64 +#include +#endif + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // !INCLUDED_FCI diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fdi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fdi.h new file mode 100644 index 0000000000000000000000000000000000000000..271b4b9622e7d926d799bf4492993274a75d12b6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fdi.h @@ -0,0 +1,1082 @@ +/*** fdi_int.h - Diamond File Decompression Interface definitions + * + * Copyright (C) Microsoft Corporation 1993-1997 + * All Rights Reserved. + * + * Author: + * Chuck Strouss, Benjamin W. Slivka + * + * History: + * 30-Nov-1993 chuckst Created + * 21-Dec-1993 bens Updated with comments from 12/21/93 design review + * 09-Mar-1994 bens Add new error code + * 17-Mar-1994 bens Specify structure packing explicitly + * 21-Mar-1994 bens Spruce up comments + * 25-Mar-1994 bens Add fdintCABINET_INFO notification + * 31-Mar-1994 bens Clarify handling of open files when errors occur + * 01-Apr-1994 bens Add FDIIsCabinet() function. + * 07-Apr-1994 bens Add Decryption interfaces; remove fdintPROGRESS + * 11-Apr-1994 bens Add more guidance on how to respond to FDI errors. + * 13-Apr-1994 bens Add date & time & attribs to fdintCOPY_FILE + * 18-Apr-1994 bens Changed CDECL to DIAMONDAPI + * 05-May-1994 bens Clarified error handling (billhu/alanr/migueldc) + * 11-May-1994 bens Added setId/iCabinet to fdintNEXT_CABINET + * 07-Jul-1994 bens Support Quantum virtual file -- PLEASE note the + * comments about PFNOPEN/PFNCLOSE changes, and + * about reserving memory, if necessary, before + * calling FDICreate()! + * 19-Aug-1994 bens Add cpuType parameter to FDICreate(). + * 03-Apr-1995 jeffwe Added chaining indicators to FDICABINETINFO + * 22-Nov-1996 msliger Backed out fdintNEXT_FOLDER, added iFolder to + * FDINOTIFICATION for fdintCOPY_FILE calls. + * 20-Feb-1997 msliger Added fdintENUMERATE message. + * 11-Nov-2005 kinshu SAL annotation + * + * + * ATTENTION: + * This is the only documentation on the Diamond File Decompression + * Interface (FDI). Please read it carefully, as there are some subtle + * points in FDI that are carefully explained below. + * + * Concepts: + * A *cabinet* file contains one or more *folders*. A folder contains + * one or more (pieces of) *files*. A folder is by definition a + * decompression unit, i.e., to extract a file from a folder, all of + * the data from the start of the folder up through and including the + * desired file must be read and decompressed. + * + * A folder can span one (or more) cabinet boundaries, and by implication + * a file can also span one (or more) cabinet boundaries. Indeed, more + * than one file can span a cabinet boundary, since Diamond concatenates + * files together into a single data stream before compressing (actually, + * at most one file will span any one cabinet boundary, but Diamond does + * not know which file this is, since the mapping from uncompressed bytes + * to compressed bytes is pretty obscure. Also, since Diamond compresses + * in blocks of 32K (at present), any files with data in a 32K block that + * spans a cabinet boundary require Diamond to read both cabinet files + * to get the two halves of the compressed block). + * + * Overview: + * The File Decompression Interface is used to simplify the reading of + * Diamond cabinet files. A setup program will proceed in a manner very + * similar to the pseudo code below. An FDI context is created, the + * setup program calls FDICopy() for each cabinet to be processed. For + * each file in the cabinet, FDICopy() calls a notification callback + * routine, asking the setup program if the file should be copied. + * This call-back approach is great because it allows the cabinet file + * to be read and decompressed in an optimal manner, and also makes FDI + * independent of the run-time environment -- FDI makes *no* C run-time + * calls whatsoever. All memory allocation and file I/O functions are + * passed into FDI by the client. + * + * main(...) + * { + * // Read INF file to construct list of desired files. + * // Ideally, these would be sorted in the same order as the + * // files appear in the cabinets, so that you can just walk + * // down the list in response to fdintCOPY_FILE notifications. + * + * // Construct list of required cabinets. + * + * hfdi = FDICreate(...); // Create FDI context + * For (cabinet in List of Cabinets) { + * FDICopy(hfdi,cabinet,fdiNotify,...); // Process each cabinet + * } + * FDIDestroy(hfdi); + * ... + * } + * + * // Notification callback function + * fdiNotify(fdint,...) + * { + * If (User Aborted) // Permit cancellation + * if (fdint == fdintCLOSE_FILE_INFO) + * close open file + * return -1; + * switch (fdint) { + * case fdintCOPY_FILE: // File to copy, maybe + * // Check file against list of desired files + * if want to copy file + * open destination file and return handle + * else + * return NULL; // Skip file + * case fdintCLOSE_FILE_INFO: + * close file + * set date, time, and attributes + * + * case fdintNEXT_CABINET: + * if not an error callback + * Tell FDI to use suggested directory name + * else + * Tell user what the problem was, and prompt + * for a new disk and/or path. + * if user aborts + * Tell FDI to abort + * else + * return to FDI to try another cabinet + * //NOTE: Be sure to see the (sample) code in EXTRACT.C + * // for an example of how to do this! + * default: + * return 0; // more messages may be defined + * ... + * } + * + * Error Handling Suggestions: + * Since you the client have passed in *all* of the functions that + * FDI uses to interact with the "outside" world, you are in prime + * position to understand and deal with errors. + * + * The general philosophy of FDI is to pass all errors back up to + * the client. FDI returns fairly generic error codes in the case + * where one of the callback functions (PFNOPEN, PFNREAD, etc.) fail, + * since it assumes that the callback function will save enough + * information in a static/global so that when FDICopy() returns + * fail, the client can examine this information and report enough + * detail about the problem that the user can take corrective action. + * + * For very specific errors (CORRUPT_CABINET, for example), FDI returns + * very specific error codes. + * + * THE BEST POLICY IS FOR YOUR CALLBACK ROUTINES TO AVOID RETURNING + * ERRORS TO FDI! + * + * Examples: + * (1) If the disk is getting full, instead of returning an error + * from your PFNWRITE function, you should -- inside your + * PFNWRITE function -- put up a dialog telling the user to free + * some disk space. + * (2) When you get the fdintNEXT_CABINET notification, you should + * verify that the cabinet you return is the correct one (call + * FDIIsCabinet(), and make sure the setID matches the one for + * the current cabinet specified in the fdintCABINET_INFO, and + * that the disk number is one greater. + * + * NOTE: FDI will continue to call fdintNEXT_CABINET until it + * gets the cabinet it wants, or until you return -1 + * to abort the FDICopy() call. + * + * The documentation below on the FDI error codes provides explicit + * guidance on how to avoid each error. + * + * If you find you must return a failure to FDI from one of your + * callback functions, then FDICopy() frees all resources it allocated + * and closes all files. If you can figure out how to overcome the + * problem, you can call FDICopy() again on the last cabinet, and + * skip any files that you already copied. But, note that FDI does + * *not* maintain any state between FDICopy() calls, other than possibly + * memory allocated for the decompressor. + * + * See FDIERROR for details on FDI error codes and recommended actions. + * + * + * Progress Indicator Suggestions: + * As above, all of the file I/O functions are supplied by you. So, + * updating a progress indicator is very simple. You keep track of + * the target files handles you have opened, along with the uncompressed + * size of the target file. When you see writes to the handle of a + * target file, you use the write count to update your status! + * Since this method is available, there is no separate callback from + * FDI just for progess indication. + */ + +#include + +#include + +#ifndef INCLUDED_FDI +#define INCLUDED_FDI 1 + +#include +typedef _Null_terminated_ char* LPSTR; + +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++ */ +#endif /* __cplusplus */ + +//** Specify structure packing explicitly for clients of FDI + +#ifndef _WIN64 +#include +#endif + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +/*** FDIERROR - Error codes returned in erf.erfOper field + * + * In general, FDI will only fail if one of the passed in memory or + * file I/O functions fails. Other errors are pretty unlikely, and are + * caused by corrupted cabinet files, passing in a file which is not a + * cabinet file, or cabinet files out of order. + * + * Description: Summary of error. + * Cause: List of possible causes of this error. + * Response: How client might respond to this error, or avoid it in + * the first place. + */ +typedef enum { + FDIERROR_NONE, + // Description: No error + // Cause: Function was successfull. + // Response: Keep going! + + FDIERROR_CABINET_NOT_FOUND, + // Description: Cabinet not found + // Cause: Bad file name or path passed to FDICopy(), or returned + // to fdintNEXT_CABINET. + // Response: To prevent this error, validate the existence of the + // the cabinet *before* passing the path to FDI. + + FDIERROR_NOT_A_CABINET, + // Description: Cabinet file does not have the correct format + // Cause: File passed to to FDICopy(), or returned to + // fdintNEXT_CABINET, is too small to be a cabinet file, + // or does not have the cabinet signature in its first + // four bytes. + // Response: To prevent this error, call FDIIsCabinet() to check a + // cabinet before calling FDICopy() or returning the + // cabinet path to fdintNEXT_CABINET. + + FDIERROR_UNKNOWN_CABINET_VERSION, + // Description: Cabinet file has an unknown version number. + // Cause: File passed to to FDICopy(), or returned to + // fdintNEXT_CABINET, has what looks like a cabinet file + // header, but the version of the cabinet file format + // is not one understood by this version of FDI. The + // erf.erfType field is filled in with the version number + // found in the cabinet file. + // Response: To prevent this error, call FDIIsCabinet() to check a + // cabinet before calling FDICopy() or returning the + // cabinet path to fdintNEXT_CABINET. + + FDIERROR_CORRUPT_CABINET, + // Description: Cabinet file is corrupt + // Cause: FDI returns this error any time it finds a problem + // with the logical format of a cabinet file, and any + // time one of the passed-in file I/O calls fails when + // operating on a cabinet (PFNOPEN, PFNSEEK, PFNREAD, + // or PFNCLOSE). The client can distinguish these two + // cases based upon whether the last file I/O call + // failed or not. + // Response: Assuming this is not a real corruption problem in + // a cabinet file, the file I/O functions could attempt + // to do retries on failure (for example, if there is a + // temporary network connection problem). If this does + // not work, and the file I/O call has to fail, then the + // FDI client will have to clean up and call the + // FDICopy() function again. + + FDIERROR_ALLOC_FAIL, + // Description: Could not allocate enough memory + // Cause: FDI tried to allocate memory with the PFNALLOC + // function, but it failed. + // Response: If possible, PFNALLOC should take whatever steps + // are possible to allocate the memory requested. If + // memory is not immediately available, it might post a + // dialog asking the user to free memory, for example. + // Note that the bulk of FDI's memory allocations are + // made at FDICreate() time and when the first cabinet + // file is opened during FDICopy(). + + FDIERROR_BAD_COMPR_TYPE, + // Description: Unknown compression type in a cabinet folder + // Cause: [Should never happen.] A folder in a cabinet has an + // unknown compression type. This is probably caused by + // a mismatch between the version of Diamond used to + // create the cabinet and the FDI. LIB used to read the + // cabinet. + // Response: Abort. + + FDIERROR_MDI_FAIL, + // Description: Failure decompressing data from a cabinet file + // Cause: The decompressor found an error in the data coming + // from the file cabinet. The cabinet file was corrupted. + // [11-Apr-1994 bens When checksuming is turned on, this + // error should never occur.] + // Response: Probably should abort; only other choice is to cleanup + // and call FDICopy() again, and hope there was some + // intermittent data error that will not reoccur. + + FDIERROR_TARGET_FILE, + // Description: Failure writing to target file + // Cause: FDI returns this error any time it gets an error back + // from one of the passed-in file I/O calls fails when + // writing to a file being extracted from a cabinet. + // Response: To avoid or minimize this error, the file I/O functions + // could attempt to avoid failing. A common cause might + // be disk full -- in this case, the PFNWRITE function + // could have a check for free space, and put up a dialog + // asking the user to free some disk space. + + FDIERROR_RESERVE_MISMATCH, + // Description: Cabinets in a set do not have the same RESERVE sizes + // Cause: [Should never happen]. FDI requires that the sizes of + // the per-cabinet, per-folder, and per-data block + // RESERVE sections be consistent across all the cabinet + // in a set. Diamond will only generate cabinet sets + // with these properties. + // Response: Abort. + + FDIERROR_WRONG_CABINET, + // Description: Cabinet returned on fdintNEXT_CABINET is incorrect + // Cause: NOTE: THIS ERROR IS NEVER RETURNED BY FDICopy()! + // Rather, FDICopy() keeps calling the fdintNEXT_CABINET + // callback until either the correct cabinet is specified, + // or you return ABORT. + // When FDICopy() is extracting a file that crosses a + // cabinet boundary, it calls fdintNEXT_CABINET to ask + // for the path to the next cabinet. Not being very + // trusting, FDI then checks to make sure that the + // correct continuation cabinet was supplied! It does + // this by checking the "setID" and "iCabinet" fields + // in the cabinet. When DIAMOND.EXE creates a set of + // cabinets, it constructs the "setID" using the sum + // of the bytes of all the destination file names in + // the cabinet set. FDI makes sure that the 16-bit + // setID of the continuation cabinet matches the + // cabinet file just processed. FDI then checks that + // the cabinet number (iCabinet) is one more than the + // cabinet number for the cabinet just processed. + // Response: You need code in your fdintNEXT_CABINET (see below) + // handler to do retries if you get recalled with this + // error. See the sample code (EXTRACT.C) to see how + // this should be handled. + + FDIERROR_USER_ABORT, + // Description: FDI aborted. + // Cause: An FDI callback returned -1 (usually). + // Response: Up to client. + + FDIERROR_EOF, + // Description: Unexpected end of file. + // Cause: This error may be returned instead of + // FDIERROR_CORRUPT_CABINET if PFNREAD returned 0. + // Response: See FDIERROR_CORRUPT_CABINET above. + +} FDIERROR; + + +/* + * FAT file attribute flag used by FCI/FDI to indicate that + * the filename in the CAB is a UTF string + */ +#ifndef _A_NAME_IS_UTF +#define _A_NAME_IS_UTF 0x80 +#endif + +/* + * FAT file attribute flag used by FCI/FDI to indicate that + * the file should be executed after extraction + */ +#ifndef _A_EXEC +#define _A_EXEC 0x40 +#endif + + +/*** HFDI - Handle to an FDI context + * + * FDICreate() creates this, and it must be passed to all other FDI + * functions. + */ +typedef void FAR *HFDI; /* hfdi */ + + +/*** FDICABINETINFO - Information about a cabinet + * + */ +typedef struct { + long cbCabinet; // Total length of cabinet file + USHORT cFolders; // Count of folders in cabinet + USHORT cFiles; // Count of files in cabinet + USHORT setID; // Cabinet set ID + USHORT iCabinet; // Cabinet number in set (0 based) + BOOL fReserve; // TRUE => RESERVE present in cabinet + BOOL hasprev; // TRUE => Cabinet is chained prev + BOOL hasnext; // TRUE => Cabinet is chained next +} FDICABINETINFO; /* fdici */ +typedef FDICABINETINFO FAR *PFDICABINETINFO; /* pfdici */ + + +/*** FDIDECRYPTTYPE - PFNFDIDECRYPT command types + * + */ +typedef enum { + fdidtNEW_CABINET, // New cabinet + fdidtNEW_FOLDER, // New folder + fdidtDECRYPT, // Decrypt a data block +} FDIDECRYPTTYPE; /* fdidt */ + + +/*** FDIDECRYPT - Data for PFNFDIDECRYPT function + * + */ +typedef struct { + FDIDECRYPTTYPE fdidt; // Command type (selects union below) + void FAR *pvUser; // Decryption context + union { + struct { // fdidtNEW_CABINET + void FAR *pHeaderReserve; // RESERVE section from CFHEADER + USHORT cbHeaderReserve; // Size of pHeaderReserve + USHORT setID; // Cabinet set ID + int iCabinet; // Cabinet number in set (0 based) + } cabinet; + + struct { // fdidtNEW_FOLDER + void FAR *pFolderReserve; // RESERVE section from CFFOLDER + USHORT cbFolderReserve; // Size of pFolderReserve + USHORT iFolder; // Folder number in cabinet (0 based) + } folder; + + struct { // fdidtDECRYPT + void FAR *pDataReserve; // RESERVE section from CFDATA + USHORT cbDataReserve; // Size of pDataReserve + void FAR *pbData; // Data buffer + USHORT cbData; // Size of data buffer + BOOL fSplit; // TRUE if this is a split data block + USHORT cbPartial; // 0 if this is not a split block, or + // the first piece of a split block; + // Greater than 0 if this is the + // second piece of a split block. + } decrypt; + }; +} FDIDECRYPT; /* fdid */ +typedef FDIDECRYPT FAR *PFDIDECRYPT; /* pfdid */ + + +/*** FNALLOC - Memory Allocation + * FNFREE - Memory Free + * + * These are modeled after the C run-time routines malloc() and free() + * (16-bit clients please note -- the size is a ULONG, so you may need + * to write a wrapper routine for halloc!). FDI expects error + * handling to be identical to these C run-time routines. + * + * As long as you faithfully copy the semantics of malloc() and free(), + * you can supply any functions you like! + * + * WARNING: You should never assume anything about the sequence of + * PFNALLOC and PFNFREE calls -- incremental releases of + * Diamond/FDI may have radically different numbers of + * PFNALLOC calls and allocation sizes! + */ +//** Memory functions for FDI +typedef void HUGE * (FAR DIAMONDAPI *PFNALLOC)(ULONG cb); /* pfna */ +#define FNALLOC(fn) void HUGE * FAR DIAMONDAPI fn(ULONG cb) + +typedef void (FAR DIAMONDAPI *PFNFREE)(_In_opt_ void HUGE *pv); /* pfnf */ +#define FNFREE(fn) void FAR DIAMONDAPI fn(_In_opt_ void HUGE *pv) + + +//** File I/O functions for FDI +typedef INT_PTR (FAR DIAMONDAPI *PFNOPEN) (_In_ LPSTR pszFile, int oflag, int pmode); +typedef UINT (FAR DIAMONDAPI *PFNREAD) (_In_ INT_PTR hf, _Out_writes_bytes_(cb) void FAR *pv, UINT cb); +typedef UINT (FAR DIAMONDAPI *PFNWRITE)(_In_ INT_PTR hf, _In_reads_bytes_(cb) void FAR *pv, UINT cb); +typedef int (FAR DIAMONDAPI *PFNCLOSE)(_In_ INT_PTR hf); +typedef long (FAR DIAMONDAPI *PFNSEEK) (_In_ INT_PTR hf, long dist, int seektype); + +#define FNOPEN(fn) INT_PTR FAR DIAMONDAPI fn(_In_ LPSTR pszFile, int oflag, int pmode) +#define FNREAD(fn) UINT FAR DIAMONDAPI fn(_In_ INT_PTR hf, _Out_writes_bytes_(cb) void FAR *pv, UINT cb) +#define FNWRITE(fn) UINT FAR DIAMONDAPI fn(_In_ INT_PTR hf, _In_reads_bytes_(cb) void FAR *pv, UINT cb) +#define FNCLOSE(fn) int FAR DIAMONDAPI fn(_In_ INT_PTR hf) +#define FNSEEK(fn) long FAR DIAMONDAPI fn(_In_ INT_PTR hf, long dist, int seektype) + + + +/*** PFNFDIDECRYPT - FDI Decryption callback + * + * If this function is passed on the FDICopy() call, then FDI calls it + * at various times to update the decryption state and to decrypt FCDATA + * blocks. + * + * Common Entry Conditions: + * pfdid->fdidt - Command type + * pfdid->pvUser - pvUser value from FDICopy() call + * + * fdidtNEW_CABINET: //** Notification of a new cabinet + * Entry: + * pfdid->cabinet. + * pHeaderReserve - RESERVE section from CFHEADER + * cbHeaderReserve - Size of pHeaderReserve + * setID - Cabinet set ID + * iCabinet - Cabinet number in set (0 based) + * Exit-Success: + * returns anything but -1; + * Exit-Failure: + * returns -1; FDICopy() is aborted. + * Notes: + * (1) This call allows the decryption code to pick out any information + * from the cabinet header reserved area (placed there by DIACRYPT) + * needed to perform decryption. If there is no such information, + * this call would presumably be ignored. + * (2) This call is made very soon after fdintCABINET_INFO. + * + * fdidtNEW_FOLDER: //** Notification of a new folder + * Entry: + * pfdid->folder. + * pFolderReserve - RESERVE section from CFFOLDER + * cbFolderReserve - Size of pFolderReserve + * iFolder - Folder number in cabinet (0 based) + * Exit-Success: + * returns anything but -1; + * Exit-Failure: + * returns -1; FDICopy() is aborted. + * Notes: + * This call allows the decryption code to pick out any information + * from the folder reserved area (placed there by DIACRYPT) needed + * to perform decryption. If there is no such information, this + * call would presumably be ignored. + * + * fdidtDECRYPT: //** Decrypt a data buffer + * Entry: + * pfdid->folder. + * pDataReserve - RESERVE section for this CFDATA block + * cbDataReserve - Size of pDataReserve + * pbData - Data buffer + * cbData - Size of data buffer + * fSplit - TRUE if this is a split data block + * cbPartial - 0 if this is not a split block, or the first + * piece of a split block; Greater than 0 if + * this is the second piece of a split block. + * Exit-Success: + * returns TRUE; + * Exit-Failure: + * returns FALSE; error during decrypt + * returns -1; FDICopy() is aborted. + * Notes: + * Diamond will split CFDATA blocks across cabinet boundaries if + * necessary. To provide maximum flexibility, FDI will call the + * fdidtDECRYPT function twice on such split blocks, once when + * the first portion is read, and again when the second portion + * is read. And, of course, most data blocks will not be split. + * So, there are three cases: + * + * 1) fSplit == FALSE + * You have the entire data block, so decrypt it. + * + * 2) fSplit == TRUE, cbPartial == 0 + * This is the first portion of a split data block, so cbData + * is the size of this portion. You can either choose to decrypt + * this piece, or ignore this call and decrypt the full CFDATA + * block on the next (second) fdidtDECRYPT call. + * + * 3) fSplit == TRUE, cbPartial > 0 + * This is the second portion of a split data block (indeed, + * cbPartial will have the same value as cbData did on the + * immediately preceeding fdidtDECRYPT call!). If you decrypted + * the first portion on the first call, then you can decrypt the + * second portion now. If you ignored the first call, then you + * can decrypt the entire buffer. + * NOTE: pbData points to the second portion of the split data + * block in this case, *not* the entire data block. If + * you want to wait until the second piece to decrypt the + * *entire* block, pbData-cbPartial is the address of the + * start of the whole block, and cbData+cbPartial is its + * size. + */ +typedef int (FAR DIAMONDAPI *PFNFDIDECRYPT)(PFDIDECRYPT pfdid); /* pfnfdid */ +#define FNFDIDECRYPT(fn) int FAR DIAMONDAPI fn(PFDIDECRYPT pfdid) + + +/*** FDINOTIFICATION - Notification structure for PFNFDINOTIFY + * + * See the FDINOTIFICATIONTYPE definition for information on usage and + * meaning of these fields. + */ +typedef struct { +// long fields + long cb; + char FAR *psz1; + char FAR *psz2; + char FAR *psz3; // Points to a 256 character buffer + void FAR *pv; // Value for client + +// int fields + INT_PTR hf; + +// short fields + USHORT date; + USHORT time; + USHORT attribs; + + USHORT setID; // Cabinet set ID + USHORT iCabinet; // Cabinet number (0-based) + USHORT iFolder; // Folder number (0-based) + + FDIERROR fdie; +} FDINOTIFICATION, FAR *PFDINOTIFICATION; /* fdin, pfdin */ + + +/*** FDINOTIFICATIONTYPE - FDICopy notification types + * + * The notification function for FDICopy can be called with the following + * values for the fdint parameter. In all cases, the pfdin->pv field is + * filled in with the value of the pvUser argument passed in to FDICopy(). + * + * A typical sequence of calls will be something like this: + * fdintCABINET_INFO // Info about the cabinet + * fdintENUMERATE // Starting enumeration + * fdintPARTIAL_FILE // Only if this is not the first cabinet, and + * // one or more files were continued from the + * // previous cabinet. + * ... + * fdintPARTIAL_FILE + * fdintCOPY_FILE // The first file that starts in this cabinet + * ... + * fdintCOPY_FILE // Now let's assume you want this file... + * // PFNWRITE called multiple times to write to this file. + * fdintCLOSE_FILE_INFO // File done, set date/time/attributes + * + * fdintCOPY_FILE // Now let's assume you want this file... + * // PFNWRITE called multiple times to write to this file. + * fdintNEXT_CABINET // File was continued to next cabinet! + * fdintCABINET_INFO // Info about the new cabinet + * // PFNWRITE called multiple times to write to this file. + * fdintCLOSE_FILE_INFO // File done, set date/time/attributes + * ... + * fdintENUMERATE // Ending enumeration + * + * fdintCABINET_INFO: + * Called exactly once for each cabinet opened by FDICopy(), including + * continuation cabinets opened due to file(s) spanning cabinet + * boundaries. Primarily intended to permit EXTRACT.EXE to + * automatically select the next cabinet in a cabinet sequence even if + * not copying files that span cabinet boundaries. + * Entry: + * pfdin->psz1 = name of next cabinet + * pfdin->psz2 = name of next disk + * pfdin->psz3 = cabinet path name + * pfdin->setID = cabinet set ID (a random 16-bit number) + * pfdin->iCabinet = Cabinet number within cabinet set (0-based) + * Exit-Success: + * Return anything but -1 + * Exit-Failure: + * Returns -1 => Abort FDICopy() call + * Notes: + * This call is made *every* time a new cabinet is examined by + * FDICopy(). So if "foo2.cab" is examined because a file is + * continued from "foo1.cab", and then you call FDICopy() again + * on "foo2.cab", you will get *two* fdintCABINET_INFO calls all + * told. + * + * fdintCOPY_FILE: + * Called for each file that *starts* in the current cabinet, giving + * the client the opportunity to request that the file be copied or + * skipped. + * Entry: + * pfdin->psz1 = file name in cabinet + * pfdin->cb = uncompressed size of file + * pfdin->date = file date + * pfdin->time = file time + * pfdin->attribs = file attributes + * pfdin->iFolder = file's folder index + * Exit-Success: + * Return non-zero file handle for destination file; FDI writes + * data to this file use the PFNWRITE function supplied to FDICreate, + * and then calls fdintCLOSE_FILE_INFO to close the file and set + * the date, time, and attributes. NOTE: This file handle returned + * must also be closeable by the PFNCLOSE function supplied to + * FDICreate, since if an error occurs while writing to this handle, + * FDI will use the PFNCLOSE function to close the file so that the + * client may delete it. + * Exit-Failure: + * Returns 0 => Skip file, do not copy + * Returns -1 => Abort FDICopy() call + * + * fdintCLOSE_FILE_INFO: + * Called after all of the data has been written to a target file. + * This function must close the file and set the file date, time, + * and attributes. + * Entry: + * pfdin->psz1 = file name in cabinet + * pfdin->hf = file handle + * pfdin->date = file date + * pfdin->time = file time + * pfdin->attribs = file attributes + * pfdin->iFolder = file's folder index + * pfdin->cb = Run After Extract (0 - don't run, 1 Run) + * Exit-Success: + * Returns TRUE + * Exit-Failure: + * Returns FALSE, or -1 to abort; + * + * IMPORTANT NOTE IMPORTANT: + * pfdin->cb is overloaded to no longer be the size of + * the file but to be a binary indicated run or not + * + * IMPORTANT NOTE: + * FDI assumes that the target file was closed, even if this + * callback returns failure. FDI will NOT attempt to use + * the PFNCLOSE function supplied on FDICreate() to close + * the file! + * + * fdintPARTIAL_FILE: + * Called for files at the front of the cabinet that are CONTINUED + * from a previous cabinet. This callback occurs only when FDICopy is + * started on second or subsequent cabinet in a series that has files + * continued from a previous cabinet. + * Entry: + * pfdin->psz1 = file name of file CONTINUED from a PREVIOUS cabinet + * pfdin->psz2 = name of cabinet where file starts + * pfdin->psz3 = name of disk where file starts + * Exit-Success: + * Return anything other than -1; enumeration continues + * Exit-Failure: + * Returns -1 => Abort FDICopy() call + * + * fdintENUMERATE: + * Called once after a call to FDICopy() starts scanning a CAB's + * CFFILE entries, and again when there are no more CFFILE entries. + * If CAB spanning occurs, an additional call will occur after the + * first spanned file is completed. If the pfdin->iFolder value is + * changed from zero, additional calls will occur next time it reaches + * zero. If iFolder is changed to zero, FDICopy will terminate, as if + * there were no more CFFILE entries. Primarily intended to allow an + * application with it's own file list to help FDI advance quickly to + * a CFFILE entry of interest. Can also be used to allow an + * application to determine the cb values for each file in the CAB. + * Entry: + * pfdin->cb = current CFFILE position + * pfdin->iFolder = number of files remaining + * pfdin->setID = current CAB's setID value + * Exit-Don't Care: + * Don't change anything. + * Return anything but -1. + * Exit-Forcing a skip: + * pfdin->cb = desired CFFILE position + * pfdin->iFolder = desired # of files remaining + * Return anything but -1. + * Exit-Stop: + * pfdin->iFolder = set to 0 + * Return anything but -1. + * Exit-Failure: + * Return -1 => Abort FDICopy call ("user aborted".) + * Notes: + * This call can be ignored by applications which want normal file + * searching. The application can adjust the supplied values to + * force FDICopy() to continue it's search at another location, or + * to force FDICopy() to terminate the search, by setting iFolder to 0. + * (FDICopy() will report no error when terminated this way.) + * FDI has no means to verify the supplied cb or iFolder values. + * Arbitrary values are likely to cause undesirable results. An + * application should cross-check pfdin->setID to be certain the + * external database is in sync with the CAB. Reverse-skips are OK + * (but may be inefficient) unless fdintNEXT_CABINET has been called. + * + * fdintNEXT_CABINET: + * This function is *only* called when fdintCOPY_FILE was told to copy + * a file in the current cabinet that is continued to a subsequent + * cabinet file. It is important that the cabinet path name (psz3) + * be validated before returning! This function should ensure that + * the cabinet exists and is readable before returning. So, this + * is the function that should, for example, issue a disk change + * prompt and make sure the cabinet file exists. + * + * When this function returns to FDI, FDI will check that the setID + * and iCabinet match the expected values for the next cabinet. + * If not, FDI will continue to call this function until the correct + * cabinet file is specified, or until this function returns -1 to + * abort the FDICopy() function. pfdin->fdie is set to + * FDIERROR_WRONG_CABINET to indicate this case. + * + * If you *haven't* ensured that the cabinet file is present and + * readable, or the cabinet file has been damaged, pfdin->fdie will + * receive other appropriate error codes: + * + * FDIERROR_CABINET_NOT_FOUND + * FDIERROR_NOT_A_CABINET + * FDIERROR_UNKNOWN_CABINET_VERSION + * FDIERROR_CORRUPT_CABINET + * FDIERROR_BAD_COMPR_TYPE + * FDIERROR_RESERVE_MISMATCH + * FDIERROR_WRONG_CABINET + * + * Entry: + * pfdin->psz1 = name of next cabinet where current file is continued + * pfdin->psz2 = name of next disk where current file is continued + * pfdin->psz3 = cabinet path name; FDI concatenates psz3 with psz1 + * to produce the fully-qualified path for the cabinet + * file. The 256-byte buffer pointed at by psz3 may + * be modified, but psz1 may not! + * pfdin->fdie = FDIERROR_WRONG_CABINET if the previous call to + * fdintNEXT_CABINET specified a cabinet file that + * did not match the setID/iCabinet that was expected. + * Exit-Success: + * Return anything but -1 + * Exit-Failure: + * Returns -1 => Abort FDICopy() call + * Notes: + * This call is almost always made when a target file is open and + * being written to, and the next cabinet is needed to get more + * data for the file. + */ +typedef enum { + fdintCABINET_INFO, // General information about cabinet + fdintPARTIAL_FILE, // First file in cabinet is continuation + fdintCOPY_FILE, // File to be copied + fdintCLOSE_FILE_INFO, // close the file, set relevant info + fdintNEXT_CABINET, // File continued to next cabinet + fdintENUMERATE, // Enumeration status +} FDINOTIFICATIONTYPE; /* fdint */ + +typedef INT_PTR (FAR DIAMONDAPI *PFNFDINOTIFY)(FDINOTIFICATIONTYPE fdint, + PFDINOTIFICATION pfdin); /* pfnfdin */ + +#define FNFDINOTIFY(fn) INT_PTR FAR DIAMONDAPI fn(FDINOTIFICATIONTYPE fdint, \ + PFDINOTIFICATION pfdin) + + +/*** PFNOPEN - File I/O callbacks for FDI + * PFNREAD + * PFNWRITE + * PFNCLOSE + * PFNSEEK + * + * These are modeled after the C run-time routines _open, _read, + * _write, _close, and _lseek. The values for the PFNOPEN oflag + * and pmode calls are those defined for _open. FDI expects error + * handling to be identical to these C run-time routines. + * + * As long as you faithfully copy these aspects, you can supply + * any functions you like! + * + * + * SPECIAL NOTE FOR QUANTUM DECOMPRESSION: + * When using Quantum compression, at compress time (with Diamond) + * you specify how much memory Quantum requires at *decompress* time + * to store the decompression history buffer. This can be as large + * as *2Mb*, and in an MS-DOS environment, for example, this much + * memory may not be available (certainly not under 640K!). To permit + * large CompressionMemory settings on any machine, the Quantum + * decompressor will attempt to create a "spill file" if there is not + * sufficient memory available. + * + * For PFNOPEN, a special pszFile parameter is passed to indicate that + * a temporary "spill file" is requested. The name passed is "*", and + * you should cast the pszFile parameter to an FDISPILLFILE pointer, + * and get the requested file size. You then need to create a file + * of the specified size with read/write access, save the file name and + * handle for later use by PFNCLOSE, and then return the handle. If + * you cannot create the file of the specified size, you should return + * an error (-1). This file should be placed on a fast local hard disk, + * to maximize the speed of decompression. + * + * For PFNCLOSE, you should check the handle to see if it the spill file + * created previously by PFNOPEN (FDI will create at most one spill file + * per FDICreate() call). If it is the spill file handle, you should + * close the handle and then delete the file, using the file name you + * saved when you created the spill file in PFNOPEN. + * + * WARNING: You should never assume you know what file is being + * opened at any one point in time! FDI will usually + * stick to opening cabinet files, but it is possible + * that in a future implementation it may open temporary + * files or open cabinet files in a different order. + * + * Notes for Memory Mapped File fans: + * You can write wrapper routines to allow FDI to work on memory + * mapped files. You'll have to create your own "handle" type so that + * you can store the base memory address of the file and the current + * seek position, and then you'll allocate and fill in one of these + * structures and return a pointer to it in response to the PFNOPEN + * call and the fdintCOPY_FILE call. Your PFNREAD and PFNWRITE + * functions will do memcopy(), and update the seek position in your + * "handle" structure. PFNSEEK will just change the seek position + * in your "handle" structure. + */ + +#ifndef _WIN64 +#pragma pack (1) +#endif + +/** FDISPILLFILE - Pass as pszFile on PFNOPEN to create spill file + * + * ach - A two byte string to signal to PFNOPEN that a spill file is + * requested. Value is '*','\0'. + * cbFile - Required spill file size, in bytes. + */ +typedef struct { + char ach[2]; // Set to { '*', '\0' } + long cbFile; // Required spill file size +} FDISPILLFILE; /* fdisf */ +typedef FDISPILLFILE *PFDISPILLFILE; /* pfdisf */ + +#ifndef _WIN64 +#pragma pack () +#endif + + +/*** cpuType values for FDICreate() + * + * WARNING: For 16-bit Windows applications, the CPU detection may not + * correctly detect 286 CPUs. Instead, use the following code: + * + * DWORD flags; + * int cpuType; + * + * flags = GetWinFlags(); + * if (flags & WF_CPU286) + * cpuType = cpu80286; + * else + * cpuType = cpu80386; + * + * hfdi = FDICreate(....,cpuType,...); + */ +#define cpuUNKNOWN (-1) /* FDI does detection */ +#define cpu80286 (0) /* '286 opcodes only */ +#define cpu80386 (1) /* '386 opcodes used */ + + +/*** FDICreate - Create an FDI context + * + * Entry: + * pfnalloc + * pfnfree + * pfnopen + * pfnread + * pfnwrite + * pfnclose + * pfnlseek + * cpuType - Select CPU type (auto-detect, 286, or 386+) + * WARNING: Don't use auto-detect from a 16-bit Windows + * application! Use GetWinFlags()! + * NOTE: For the 32-bit FDI.LIB, this parameter is ignored! + * perf + * + * Exit-Success: + * Returns non-NULL FDI context handle. + * + * Exit-Failure: + * Returns NULL; perf filled in with error code + * + * Special notes for Quantum Decompression: + * If you have used a high setting for CompressionMemory in creating + * the cabinet file(s), then FDI will attempt to allocate a lot of + * memory (as much as 2Mb, if you specified 21 for CompressionMemory). + * Therefore, if you plan to allocate additional memory *after* the + * FDICreate() call, you should reserve some memory *prior* to calling + * FDICreate(), and then free it up afterwards (or do all your allocation + * before calling FDICreate(). + */ +HFDI FAR DIAMONDAPI FDICreate(__callback PFNALLOC pfnalloc, + __callback PFNFREE pfnfree, + __callback PFNOPEN pfnopen, + __callback PFNREAD pfnread, + __callback PFNWRITE pfnwrite, + __callback PFNCLOSE pfnclose, + __callback PFNSEEK pfnseek, + int cpuType, + _Inout_ PERF perf); + + +/*** FDIIsCabinet - Determines if file is a cabinet, returns info if it is + * + * Entry: + * hfdi - Handle to FDI context (created by FDICreate()) + * hf - File handle suitable for PFNREAD/PFNSEEK, positioned + * at offset 0 in the file to test. + * pfdici - Buffer to receive info about cabinet if it is one. + * + * Exit-Success: + * Returns TRUE; file is a cabinet, pfdici filled in. + * + * Exit-Failure: + * Returns FALSE, file is not a cabinet; If an error occurred, + * perf (passed on FDICreate call!) filled in with error. + */ +BOOL FAR DIAMONDAPI FDIIsCabinet(_In_ HFDI hfdi, + _In_ INT_PTR hf, + _Out_opt_ PFDICABINETINFO pfdici); + + +/*** FDICopy - extracts files from a cabinet + * + * Entry: + * hfdi - handle to FDI context (created by FDICreate()) + * pszCabinet - main name of cabinet file + * pszCabPath - Path to cabinet file(s) + * flags - Flags to modify behavior + * pfnfdin - Notification function + * pfnfdid - Decryption function (pass NULL if not used) + * pvUser - User specified value to pass to notification function + * + * Exit-Success: + * Returns TRUE; + * + * Exit-Failure: + * Returns FALSE, perf (passed on FDICreate call!) filled in with + * error. + * + * Notes: + * (1) If FDICopy() fails while a target file is being written out, then + * FDI will use the PFNCLOSE function to close the file handle for that + * target file that was returned from the fdintCOPY_FILE notification. + * The client application is then free to delete the target file, since + * it will not be in a valid state (since there was an error while + * writing it out). + */ +BOOL FAR DIAMONDAPI FDICopy(_In_ HFDI hfdi, + _In_ LPSTR pszCabinet, + _In_ LPSTR pszCabPath, + int flags, + __callback PFNFDINOTIFY pfnfdin, + __callback PFNFDIDECRYPT pfnfdid, + _In_opt_ void FAR *pvUser); + + +/*** FDIDestroy - Destroy an FDI context + * + * Entry: + * hfdi - handle to FDI context (created by FDICreate()) + * + * Exit-Success: + * Returns TRUE; + * + * Exit-Failure: + * Returns FALSE; + */ +BOOL FAR DIAMONDAPI FDIDestroy(_In_ HFDI hfdi); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +/*** FDITruncateCabinet - truncate a cabinet, starting at folder # + * + * Entry: + * hfdi - handle to FDI context (created by FDICreate()) + * pszCabinet - full pathname of cabinet file + * iFolderToDelete - first folder # to delete + * + * Exit-Success: + * Returns TRUE; + * + * Exit-Failure: + * Returns FALSE; + * + * Most likely failure is unable to open cabinet for writing. + * + * NOTE: This function relies on additional feature in the + * supplied PFNWRITE function, that a write of 0 bytes + * will truncate the file at the current position. + */ + +BOOL FAR DIAMONDAPI FDITruncateCabinet(_In_ HFDI hfdi, + _In_ LPSTR pszCabinetName, + USHORT iFolderToDelete); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +//** Revert to default structure packing +#ifndef _WIN64 +#include +#endif + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif //!INCLUDED_FDI diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fdi_fci_types.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fdi_fci_types.h new file mode 100644 index 0000000000000000000000000000000000000000..3758bb88fc494a8c1f72e9633165a42bcdc442b0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fdi_fci_types.h @@ -0,0 +1,173 @@ +/*** types.h - Common defines for FCI/FDI stuff -- goes into FCI/FDI.H + * + * Copyright (C) Microsoft Corporation + * All Rights Reserved. + * + */ + +#ifndef INCLUDED_TYPES_FCI_FDI +#define INCLUDED_TYPES_FCI_FDI 1 + +#include + +#ifdef __cplusplus +extern "C" { /* Assume C declarations for C++ */ +#endif /* __cplusplus */ + +//** Define away for 32-bit build +#ifndef HUGE +#define HUGE +#endif + +#ifndef FAR +#define FAR +#endif + + +#ifndef DIAMONDAPI +#define DIAMONDAPI __cdecl +#endif + + +//** Specify structure packing explicitly for clients of FDI + +#ifndef _WIN64 +#include +#endif + + +//** Don't redefine types defined in Win16 WINDOWS.H (_INC_WINDOWS) +// or Win32 WINDOWS.H (_WINDOWS_) +// +#if !defined(_INC_WINDOWS) && !defined(_WINDOWS_) +typedef int BOOL; /* f */ +typedef unsigned char BYTE; /* b */ +typedef unsigned int UINT; /* ui */ +typedef unsigned short USHORT; /* us */ +typedef unsigned long ULONG; /* ul */ +#endif // _INC_WINDOWS + +typedef unsigned long CHECKSUM; /* csum */ + +typedef unsigned long UOFF; /* uoff - uncompressed offset */ +typedef unsigned long COFF; /* coff - cabinet file offset */ + + +#ifndef TRUE +#define TRUE 1 +#endif + +#ifndef FALSE +#define FALSE 0 +#endif + +#ifndef NULL +#define NULL 0 +#endif + + +/*** ERF - Error structure + * + * This structure returns error information from FCI/FDI. The caller should + * not modify this structure. + */ +typedef struct { + int erfOper; // FCI/FDI error code -- see FDIERROR_XXX + // and FCIERR_XXX equates for details. + + int erfType; // Optional error value filled in by FCI/FDI. + // For FCI, this is usually the C run-time + // *errno* value. + + BOOL fError; // TRUE => error present +} ERF; /* erf */ +typedef ERF FAR *PERF; /* perf */ + +#ifdef _DEBUG +// don't hide statics from map during debugging +#define STATIC +#else // !DEBUG +#define STATIC static +#endif // !DEBUG + +#define CB_MAX_CHUNK 32768U +#define CB_MAX_DISK 0x7fffffffL +#define CB_MAX_FILENAME 256 +#define CB_MAX_CABINET_NAME 256 +#define CB_MAX_CAB_PATH 256 +#define CB_MAX_DISK_NAME 256 + +/*** tcompXXX - Diamond compression types + * + * These are passed to FCIAddFile(), and are also stored in the CFFOLDER + * structures in cabinet files. + * + * NOTE: We reserve bits for the TYPE, QUANTUM_LEVEL, and QUANTUM_MEM + * to provide room for future expansion. Since this value is stored + * in the CFDATA records in the cabinet file, we don't want to + * have to change the format for existing compression configurations + * if we add new ones in the future. This will allows us to read + * old cabinet files in the future. + */ + +typedef unsigned short TCOMP; /* tcomp */ + +#define tcompMASK_TYPE 0x000F // Mask for compression type +#define tcompTYPE_NONE 0x0000 // No compression +#define tcompTYPE_MSZIP 0x0001 // MSZIP +#define tcompTYPE_QUANTUM 0x0002 // Quantum +#define tcompTYPE_LZX 0x0003 // LZX +#define tcompBAD 0x000F // Unspecified compression type + +#define tcompMASK_LZX_WINDOW 0x1F00 // Mask for LZX Compression Memory +#define tcompLZX_WINDOW_LO 0x0F00 // Lowest LZX Memory (15) +#define tcompLZX_WINDOW_HI 0x1500 // Highest LZX Memory (21) +#define tcompSHIFT_LZX_WINDOW 8 // Amount to shift over to get int + +#define tcompMASK_QUANTUM_LEVEL 0x00F0 // Mask for Quantum Compression Level +#define tcompQUANTUM_LEVEL_LO 0x0010 // Lowest Quantum Level (1) +#define tcompQUANTUM_LEVEL_HI 0x0070 // Highest Quantum Level (7) +#define tcompSHIFT_QUANTUM_LEVEL 4 // Amount to shift over to get int + +#define tcompMASK_QUANTUM_MEM 0x1F00 // Mask for Quantum Compression Memory +#define tcompQUANTUM_MEM_LO 0x0A00 // Lowest Quantum Memory (10) +#define tcompQUANTUM_MEM_HI 0x1500 // Highest Quantum Memory (21) +#define tcompSHIFT_QUANTUM_MEM 8 // Amount to shift over to get int + +#define tcompMASK_RESERVED 0xE000 // Reserved bits (high 3 bits) + + + +#define CompressionTypeFromTCOMP(tc) \ + ((tc) & tcompMASK_TYPE) + +#define CompressionLevelFromTCOMP(tc) \ + (((tc) & tcompMASK_QUANTUM_LEVEL) >> tcompSHIFT_QUANTUM_LEVEL) + +#define CompressionMemoryFromTCOMP(tc) \ + (((tc) & tcompMASK_QUANTUM_MEM) >> tcompSHIFT_QUANTUM_MEM) + +#define TCOMPfromTypeLevelMemory(t,l,m) \ + (((m) << tcompSHIFT_QUANTUM_MEM ) | \ + ((l) << tcompSHIFT_QUANTUM_LEVEL) | \ + ( t )) + +#define LZXCompressionWindowFromTCOMP(tc) \ + (((tc) & tcompMASK_LZX_WINDOW) >> tcompSHIFT_LZX_WINDOW) + +#define TCOMPfromLZXWindow(w) \ + (((w) << tcompSHIFT_LZX_WINDOW ) | \ + ( tcompTYPE_LZX )) + + +//** Revert to default structure packing + +#ifndef _WIN64 +#include +#endif + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif // !INCLUDED_TYPES_FCI_FDI diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/featurestagingapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/featurestagingapi.h new file mode 100644 index 0000000000000000000000000000000000000000..35e58e4089323725b2b15484a10e43b9ff8efdc3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/featurestagingapi.h @@ -0,0 +1,104 @@ +/********************************************************************************* +* * +* featurestagingapi.h -- ApiSet Contract for api-ms-win-core-featurestaging-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +**********************************************************************************/ + +#ifndef _APISET_WIL_FEATURESTAGING_ +#define _APISET_WIL_FEATURESTAGING_ + +#include +#include +#ifdef _CONTRACT_GEN +#include +#include +#include +#include +#endif + +typedef enum FEATURE_CHANGE_TIME +{ + FEATURE_CHANGE_TIME_READ = 0, + FEATURE_CHANGE_TIME_MODULE_RELOAD = 1, + FEATURE_CHANGE_TIME_SESSION = 2, + FEATURE_CHANGE_TIME_REBOOT = 3 +} FEATURE_CHANGE_TIME; + +typedef enum FEATURE_ENABLED_STATE +{ + FEATURE_ENABLED_STATE_DEFAULT = 0, + FEATURE_ENABLED_STATE_DISABLED = 1, + FEATURE_ENABLED_STATE_ENABLED = 2 +} FEATURE_ENABLED_STATE; + +typedef struct FEATURE_ERROR +{ + HRESULT hr; + UINT16 lineNumber; + PCSTR file; + PCSTR process; + PCSTR module; + UINT32 callerReturnAddressOffset; + PCSTR callerModule; + PCSTR message; + UINT16 originLineNumber; + PCSTR originFile; + PCSTR originModule; + UINT32 originCallerReturnAddressOffset; + PCSTR originCallerModule; + PCSTR originName; +} FEATURE_ERROR; + +DECLARE_HANDLE(FEATURE_STATE_CHANGE_SUBSCRIPTION); +typedef void WINAPI FEATURE_STATE_CHANGE_CALLBACK(_In_opt_ void* context); +typedef FEATURE_STATE_CHANGE_CALLBACK *PFEATURE_STATE_CHANGE_CALLBACK; + +EXTERN_C +FEATURE_ENABLED_STATE +GetFeatureEnabledState( + UINT32 featureId, + FEATURE_CHANGE_TIME changeTime + ); + +EXTERN_C +void +RecordFeatureUsage( + UINT32 featureId, + UINT32 kind, + UINT32 addend, + _In_ PCSTR originName + ); + +EXTERN_C +void +RecordFeatureError( + UINT32 featureId, + _In_ const FEATURE_ERROR* error + ); + +EXTERN_C +void +SubscribeFeatureStateChangeNotification( + _Outptr_ FEATURE_STATE_CHANGE_SUBSCRIPTION* subscription, + _In_ PFEATURE_STATE_CHANGE_CALLBACK callback, + _In_opt_ void* context + ); + +EXTERN_C +void +UnsubscribeFeatureStateChangeNotification( + _In_ _Post_invalid_ FEATURE_STATE_CHANGE_SUBSCRIPTION subscription + ); + +EXTERN_C +UINT32 +GetFeatureVariant( + UINT32 featureId, + FEATURE_CHANGE_TIME changeTime, + _Out_ UINT32* payloadId, + _Out_ BOOL* hasNotification + ); + +#endif // _APISET_WIL_FEATURESTAGING_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fibersapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fibersapi.h new file mode 100644 index 0000000000000000000000000000000000000000..0383dfc960c42708032455766e0c7088bcd26cac --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fibersapi.h @@ -0,0 +1,105 @@ +/******************************************************************************** +* * +* fibersapi.h - ApiSet Contract for api-ms-win-core-fibers-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _FIBERS_H_ +#define _FIBERS_H_ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0600) + +#ifndef FLS_OUT_OF_INDEXES +#define FLS_OUT_OF_INDEXES ((DWORD)0xFFFFFFFF) +#endif + +WINBASEAPI +DWORD +WINAPI +FlsAlloc( + _In_opt_ PFLS_CALLBACK_FUNCTION lpCallback + ); + +WINBASEAPI +PVOID +WINAPI +FlsGetValue( + _In_ DWORD dwFlsIndex + ); + +WINBASEAPI +BOOL +WINAPI +FlsSetValue( + _In_ DWORD dwFlsIndex, + _In_opt_ PVOID lpFlsData + ); + +WINBASEAPI +BOOL +WINAPI +FlsFree( + _In_ DWORD dwFlsIndex + ); + +#endif // (_WIN32_WINNT >= 0x0600) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +BOOL +WINAPI +IsThreadAFiber( + VOID + ); + +#endif // (_WIN32_WINNT >= 0x0600) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= _WIN32_WINNT_WIN10) + +WINBASEAPI +PVOID +WINAPI +FlsGetValue2( + _In_ DWORD dwTlsIndex + ); + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN10) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _FIBERS_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fileapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fileapi.h new file mode 100644 index 0000000000000000000000000000000000000000..8b41fa60ce5b6bc114acbdab9299947d7c71031b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fileapi.h @@ -0,0 +1,1625 @@ +/******************************************************************************** +* * +* FileApi.h -- ApiSet Contract for api-ms-win-core-file-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _APISETFILE_ +#define _APISETFILE_ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// Constants +// +#define CREATE_NEW 1 +#define CREATE_ALWAYS 2 +#define OPEN_EXISTING 3 +#define OPEN_ALWAYS 4 +#define TRUNCATE_EXISTING 5 + +#define INVALID_FILE_SIZE ((DWORD)0xFFFFFFFF) +#define INVALID_SET_FILE_POINTER ((DWORD)-1) +#define INVALID_FILE_ATTRIBUTES ((DWORD)-1) + +WINBASEAPI +LONG +WINAPI +CompareFileTime( + _In_ CONST FILETIME* lpFileTime1, + _In_ CONST FILETIME* lpFileTime2 + ); + +WINBASEAPI +BOOL +WINAPI +CreateDirectoryA( + _In_ LPCSTR lpPathName, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); + +WINBASEAPI +BOOL +WINAPI +CreateDirectoryW( + _In_ LPCWSTR lpPathName, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); + +#ifdef UNICODE +#define CreateDirectory CreateDirectoryW +#else +#define CreateDirectory CreateDirectoryA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +HANDLE +WINAPI +CreateFileA( + _In_ LPCSTR lpFileName, + _In_ DWORD dwDesiredAccess, + _In_ DWORD dwShareMode, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, + _In_ DWORD dwCreationDisposition, + _In_ DWORD dwFlagsAndAttributes, + _In_opt_ HANDLE hTemplateFile + ); + +WINBASEAPI +HANDLE +WINAPI +CreateFileW( + _In_ LPCWSTR lpFileName, + _In_ DWORD dwDesiredAccess, + _In_ DWORD dwShareMode, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, + _In_ DWORD dwCreationDisposition, + _In_ DWORD dwFlagsAndAttributes, + _In_opt_ HANDLE hTemplateFile + ); + +#ifdef UNICODE +#define CreateFile CreateFileW +#else +#define CreateFile CreateFileA +#endif // !UNICODE + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +WINAPI +DefineDosDeviceW( + _In_ DWORD dwFlags, + _In_ LPCWSTR lpDeviceName, + _In_opt_ LPCWSTR lpTargetPath + ); + +#ifdef UNICODE +#define DefineDosDevice DefineDosDeviceW +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +DeleteFileA( + _In_ LPCSTR lpFileName + ); + +WINBASEAPI +BOOL +WINAPI +DeleteFileW( + _In_ LPCWSTR lpFileName + ); + +#ifdef UNICODE +#define DeleteFile DeleteFileW +#else +#define DeleteFile DeleteFileA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +WINAPI +DeleteVolumeMountPointW( + _In_ LPCWSTR lpszVolumeMountPoint + ); + +#ifdef UNICODE +#define DeleteVolumeMountPoint DeleteVolumeMountPointW +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +FileTimeToLocalFileTime( + _In_ CONST FILETIME* lpFileTime, + _Out_ LPFILETIME lpLocalFileTime + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +FindClose( + _Inout_ HANDLE hFindFile + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +WINAPI +FindCloseChangeNotification( + _In_ HANDLE hChangeHandle + ); + +WINBASEAPI +HANDLE +WINAPI +FindFirstChangeNotificationA( + _In_ LPCSTR lpPathName, + _In_ BOOL bWatchSubtree, + _In_ DWORD dwNotifyFilter + ); + +WINBASEAPI +HANDLE +WINAPI +FindFirstChangeNotificationW( + _In_ LPCWSTR lpPathName, + _In_ BOOL bWatchSubtree, + _In_ DWORD dwNotifyFilter + ); + +#ifdef UNICODE +#define FindFirstChangeNotification FindFirstChangeNotificationW +#else +#define FindFirstChangeNotification FindFirstChangeNotificationA +#endif // !UNICODE + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +HANDLE +WINAPI +FindFirstFileA( + _In_ LPCSTR lpFileName, + _Out_ LPWIN32_FIND_DATAA lpFindFileData + ); + +WINBASEAPI +HANDLE +WINAPI +FindFirstFileW( + _In_ LPCWSTR lpFileName, + _Out_ LPWIN32_FIND_DATAW lpFindFileData + ); + +#ifdef UNICODE +#define FindFirstFile FindFirstFileW +#else +#define FindFirstFile FindFirstFileA +#endif // !UNICODE + +#if (_WIN32_WINNT >= 0x0400) + +WINBASEAPI +HANDLE +WINAPI +FindFirstFileExA( + _In_ LPCSTR lpFileName, + _In_ FINDEX_INFO_LEVELS fInfoLevelId, + _Out_writes_bytes_(sizeof(WIN32_FIND_DATAA)) LPVOID lpFindFileData, + _In_ FINDEX_SEARCH_OPS fSearchOp, + _Reserved_ LPVOID lpSearchFilter, + _In_ DWORD dwAdditionalFlags + ); + +WINBASEAPI +HANDLE +WINAPI +FindFirstFileExW( + _In_ LPCWSTR lpFileName, + _In_ FINDEX_INFO_LEVELS fInfoLevelId, + _Out_writes_bytes_(sizeof(WIN32_FIND_DATAW)) LPVOID lpFindFileData, + _In_ FINDEX_SEARCH_OPS fSearchOp, + _Reserved_ LPVOID lpSearchFilter, + _In_ DWORD dwAdditionalFlags + ); + +#ifdef UNICODE +#define FindFirstFileEx FindFirstFileExW +#else +#define FindFirstFileEx FindFirstFileExA +#endif // !UNICODE + +#endif /* _WIN32_WINNT >= 0x0400 */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +HANDLE +WINAPI +FindFirstVolumeW( + _Out_writes_(cchBufferLength) LPWSTR lpszVolumeName, + _In_ DWORD cchBufferLength + ); + +#ifdef UNICODE +#define FindFirstVolume FindFirstVolumeW +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +FindNextChangeNotification( + _In_ HANDLE hChangeHandle + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +FindNextFileA( + _In_ HANDLE hFindFile, + _Out_ LPWIN32_FIND_DATAA lpFindFileData + ); + +WINBASEAPI +BOOL +WINAPI +FindNextFileW( + _In_ HANDLE hFindFile, + _Out_ LPWIN32_FIND_DATAW lpFindFileData + ); + +#ifdef UNICODE +#define FindNextFile FindNextFileW +#else +#define FindNextFile FindNextFileA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +WINAPI +FindNextVolumeW( + _Inout_ HANDLE hFindVolume, + _Out_writes_(cchBufferLength) LPWSTR lpszVolumeName, + _In_ DWORD cchBufferLength + ); + +#ifdef UNICODE +#define FindNextVolume FindNextVolumeW +#endif + +WINBASEAPI +BOOL +WINAPI +FindVolumeClose( + _In_ HANDLE hFindVolume + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +FlushFileBuffers( + _In_ HANDLE hFile + ); + +WINBASEAPI +BOOL +WINAPI +GetDiskFreeSpaceA( + _In_opt_ LPCSTR lpRootPathName, + _Out_opt_ LPDWORD lpSectorsPerCluster, + _Out_opt_ LPDWORD lpBytesPerSector, + _Out_opt_ LPDWORD lpNumberOfFreeClusters, + _Out_opt_ LPDWORD lpTotalNumberOfClusters + ); + +WINBASEAPI +BOOL +WINAPI +GetDiskFreeSpaceW( + _In_opt_ LPCWSTR lpRootPathName, + _Out_opt_ LPDWORD lpSectorsPerCluster, + _Out_opt_ LPDWORD lpBytesPerSector, + _Out_opt_ LPDWORD lpNumberOfFreeClusters, + _Out_opt_ LPDWORD lpTotalNumberOfClusters + ); + +#ifdef UNICODE +#define GetDiskFreeSpace GetDiskFreeSpaceW +#else +#define GetDiskFreeSpace GetDiskFreeSpaceA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +GetDiskFreeSpaceExA( + _In_opt_ LPCSTR lpDirectoryName, + _Out_opt_ PULARGE_INTEGER lpFreeBytesAvailableToCaller, + _Out_opt_ PULARGE_INTEGER lpTotalNumberOfBytes, + _Out_opt_ PULARGE_INTEGER lpTotalNumberOfFreeBytes + ); + +WINBASEAPI +BOOL +WINAPI +GetDiskFreeSpaceExW( + _In_opt_ LPCWSTR lpDirectoryName, + _Out_opt_ PULARGE_INTEGER lpFreeBytesAvailableToCaller, + _Out_opt_ PULARGE_INTEGER lpTotalNumberOfBytes, + _Out_opt_ PULARGE_INTEGER lpTotalNumberOfFreeBytes + ); + +#ifdef UNICODE +#define GetDiskFreeSpaceEx GetDiskFreeSpaceExW +#else +#define GetDiskFreeSpaceEx GetDiskFreeSpaceExA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +// +// The structure definition must be same as the one +// (FILE_FS_FULL_SIZE_INFORMATION_EX) defined in ntioapi_x.w +// + +typedef struct DISK_SPACE_INFORMATION { + + // + // AllocationUnits are actually file system clusters. + // AllocationUnits * SectorsPerAllocationUnit * BytesPerSector + // will get you the sizes in bytes. + // + + // + // The Actual*AllocationUnits are volume sizes without considering Quota + // setting. + // ActualPoolUnavailableAllocationUnits is the unavailable space for the + // volume due to insufficient free pool space (PoolAvailableAllocationUnits). + // Be aware AllocationUnits are mesured in clusters, see comments at the beginning. + // + // ActualTotalAllocationUnits = ActualAvailableAllocationUnits + + // ActualPoolUnavailableAllocationUnits + + // UsedAllocationUnits + + // TotalReservedAllocationUnits + // + + ULONGLONG ActualTotalAllocationUnits; + ULONGLONG ActualAvailableAllocationUnits; + ULONGLONG ActualPoolUnavailableAllocationUnits; + + // + // The Caller*AllocationUnits are limited by Quota setting. + // CallerPoolUnavailableAllocationUnits is the unavailable space for the + // volume due to insufficient free pool space (PoolAvailableAllocationUnits). + // Be aware AllocationUnits are mesured in clusters, see comments at the beginning. + // + // CallerTotalAllocationUnits = CallerAvailableAllocationUnits + + // CallerPoolUnavailableAllocationUnits + + // UsedAllocationUnits + + // TotalReservedAllocationUnits + // + + ULONGLONG CallerTotalAllocationUnits; + ULONGLONG CallerAvailableAllocationUnits; + ULONGLONG CallerPoolUnavailableAllocationUnits; + + // + // The used space (in clusters) of the volume. + // + + ULONGLONG UsedAllocationUnits; + + // + // Total reserved space (in clusters). + // + + ULONGLONG TotalReservedAllocationUnits; + + // + // A special type of reserved space (in clusters) for per-volume storage + // reserve and this is included in the above TotalReservedAllocationUnits. + // + + ULONGLONG VolumeStorageReserveAllocationUnits; + + // + // This refers to the space (in clusters) that has been committed by + // storage pool but has not been allocated by file system. + // + // s1 = (ActualTotalAllocationUnits - UsedAllocationUnits - TotalReservedAllocationUnits) + // s2 = (AvailableCommittedAllocationUnits + PoolAvailableAllocationUnits) + // ActualAvailableAllocationUnits = min( s1, s2 ) + // + // When s1 >= s2, ActualPoolUnavailableAllocationUnits = 0 + // When s1 < s2, ActualPoolUnavailableAllocationUnits = s2 - s1. + // + + ULONGLONG AvailableCommittedAllocationUnits; + + // + // Available space (in clusters) in corresponding storage pool. If the volume + // is not a spaces volume, the PoolAvailableAllocationUnits is set to zero. + // + + ULONGLONG PoolAvailableAllocationUnits; + + DWORD SectorsPerAllocationUnit; + DWORD BytesPerSector; + +} DISK_SPACE_INFORMATION; + +WINBASEAPI +HRESULT +WINAPI +GetDiskSpaceInformationA( + _In_opt_ LPCSTR rootPath, + _Out_ DISK_SPACE_INFORMATION* diskSpaceInfo + ); + +WINBASEAPI +HRESULT +WINAPI +GetDiskSpaceInformationW( + _In_opt_ LPCWSTR rootPath, + _Out_ DISK_SPACE_INFORMATION* diskSpaceInfo + ); + +#ifdef UNICODE +#define GetDiskSpaceInformation GetDiskSpaceInformationW +#else +#define GetDiskSpaceInformation GetDiskSpaceInformationA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +UINT +WINAPI +GetDriveTypeA( + _In_opt_ LPCSTR lpRootPathName + ); + +WINBASEAPI +UINT +WINAPI +GetDriveTypeW( + _In_opt_ LPCWSTR lpRootPathName + ); + +#ifdef UNICODE +#define GetDriveType GetDriveTypeW +#else +#define GetDriveType GetDriveTypeA +#endif // !UNICODE + +typedef struct _WIN32_FILE_ATTRIBUTE_DATA { + DWORD dwFileAttributes; + FILETIME ftCreationTime; + FILETIME ftLastAccessTime; + FILETIME ftLastWriteTime; + DWORD nFileSizeHigh; + DWORD nFileSizeLow; +} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA; + +WINBASEAPI +DWORD +WINAPI +GetFileAttributesA( + _In_ LPCSTR lpFileName + ); + +WINBASEAPI +DWORD +WINAPI +GetFileAttributesW( + _In_ LPCWSTR lpFileName + ); + +#ifdef UNICODE +#define GetFileAttributes GetFileAttributesW +#else +#define GetFileAttributes GetFileAttributesA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +GetFileAttributesExA( + _In_ LPCSTR lpFileName, + _In_ GET_FILEEX_INFO_LEVELS fInfoLevelId, + _Out_writes_bytes_(sizeof(WIN32_FILE_ATTRIBUTE_DATA)) LPVOID lpFileInformation + ); + +WINBASEAPI +BOOL +WINAPI +GetFileAttributesExW( + _In_ LPCWSTR lpFileName, + _In_ GET_FILEEX_INFO_LEVELS fInfoLevelId, + _Out_writes_bytes_(sizeof(WIN32_FILE_ATTRIBUTE_DATA)) LPVOID lpFileInformation + ); + +#ifdef UNICODE +#define GetFileAttributesEx GetFileAttributesExW +#else +#define GetFileAttributesEx GetFileAttributesExA +#endif // !UNICODE + +typedef struct _BY_HANDLE_FILE_INFORMATION { + DWORD dwFileAttributes; + FILETIME ftCreationTime; + FILETIME ftLastAccessTime; + FILETIME ftLastWriteTime; + DWORD dwVolumeSerialNumber; + DWORD nFileSizeHigh; + DWORD nFileSizeLow; + DWORD nNumberOfLinks; + DWORD nFileIndexHigh; + DWORD nFileIndexLow; +} BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION; + +WINBASEAPI +BOOL +WINAPI +GetFileInformationByHandle( + _In_ HANDLE hFile, + _Out_ LPBY_HANDLE_FILE_INFORMATION lpFileInformation + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +DWORD +WINAPI +GetFileSize( + _In_ HANDLE hFile, + _Out_opt_ LPDWORD lpFileSizeHigh + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Application Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +GetFileSizeEx( + _In_ HANDLE hFile, + _Out_ PLARGE_INTEGER lpFileSize + ); + +WINBASEAPI +DWORD +WINAPI +GetFileType( + _In_ HANDLE hFile + ); + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +DWORD +WINAPI +GetFinalPathNameByHandleA( + _In_ HANDLE hFile, + _Out_writes_(cchFilePath) LPSTR lpszFilePath, + _In_ DWORD cchFilePath, + _In_ DWORD dwFlags + ); + +WINBASEAPI +DWORD +WINAPI +GetFinalPathNameByHandleW( + _In_ HANDLE hFile, + _Out_writes_(cchFilePath) LPWSTR lpszFilePath, + _In_ DWORD cchFilePath, + _In_ DWORD dwFlags + ); + +#ifdef UNICODE +#define GetFinalPathNameByHandle GetFinalPathNameByHandleW +#else +#define GetFinalPathNameByHandle GetFinalPathNameByHandleA +#endif // !UNICODE + +#endif // (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +BOOL +WINAPI +GetFileTime( + _In_ HANDLE hFile, + _Out_opt_ LPFILETIME lpCreationTime, + _Out_opt_ LPFILETIME lpLastAccessTime, + _Out_opt_ LPFILETIME lpLastWriteTime + ); + +WINBASEAPI +_Success_(return != 0 && return < nBufferLength) +DWORD +WINAPI +GetFullPathNameW( + _In_ LPCWSTR lpFileName, + _In_ DWORD nBufferLength, + _Out_writes_to_opt_(nBufferLength,return + 1) LPWSTR lpBuffer, + _Outptr_opt_ LPWSTR* lpFilePart + ); + +#ifdef UNICODE +#define GetFullPathName GetFullPathNameW +#endif + +WINBASEAPI +_Success_(return != 0 && return < nBufferLength) +DWORD +WINAPI +GetFullPathNameA( + _In_ LPCSTR lpFileName, + _In_ DWORD nBufferLength, + _Out_writes_to_opt_(nBufferLength,return + 1) LPSTR lpBuffer, + _Outptr_opt_ LPSTR* lpFilePart + ); + +#ifndef UNICODE +#define GetFullPathName GetFullPathNameA +#endif + +WINBASEAPI +DWORD +WINAPI +GetLogicalDrives( + VOID + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +DWORD +WINAPI +GetLogicalDriveStringsW( + _In_ DWORD nBufferLength, + _Out_writes_to_opt_(nBufferLength,return + 1) LPWSTR lpBuffer + ); + +#ifdef UNICODE +#define GetLogicalDriveStrings GetLogicalDriveStringsW +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +_Success_(return != 0 && return < cchBuffer) +DWORD +WINAPI +GetLongPathNameA( + _In_ LPCSTR lpszShortPath, + _Out_writes_to_opt_(cchBuffer,return + 1) LPSTR lpszLongPath, + _In_ DWORD cchBuffer + ); + +#ifndef UNICODE +#define GetLongPathName GetLongPathNameA +#endif + +WINBASEAPI +_Success_(return != 0 && return < cchBuffer) +DWORD +WINAPI +GetLongPathNameW( + _In_ LPCWSTR lpszShortPath, + _Out_writes_to_opt_(cchBuffer,return + 1) LPWSTR lpszLongPath, + _In_ DWORD cchBuffer + ); + +#ifdef UNICODE +#define GetLongPathName GetLongPathNameW +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#if (NTDDI_VERSION >= NTDDI_WIN10_FE) + +WINBASEAPI +BOOL +WINAPI +AreShortNamesEnabled( + _In_ HANDLE Handle, + _Out_ BOOL* Enabled + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_FE) + +WINBASEAPI +_Success_(return != 0 && return < cchBuffer) +DWORD +WINAPI +GetShortPathNameW( + _In_ LPCWSTR lpszLongPath, + _Out_writes_to_opt_(cchBuffer,return + 1) LPWSTR lpszShortPath, + _In_ DWORD cchBuffer + ); + +#ifdef UNICODE +#define GetShortPathName GetShortPathNameW +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +UINT +WINAPI +GetTempFileNameW( + _In_ LPCWSTR lpPathName, + _In_ LPCWSTR lpPrefixString, + _In_ UINT uUnique, + _Out_writes_(MAX_PATH) LPWSTR lpTempFileName + ); + +#ifdef UNICODE +#define GetTempFileName GetTempFileNameW +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +BOOL +WINAPI +GetVolumeInformationByHandleW( + _In_ HANDLE hFile, + _Out_writes_opt_(nVolumeNameSize) LPWSTR lpVolumeNameBuffer, + _In_ DWORD nVolumeNameSize, + _Out_opt_ LPDWORD lpVolumeSerialNumber, + _Out_opt_ LPDWORD lpMaximumComponentLength, + _Out_opt_ LPDWORD lpFileSystemFlags, + _Out_writes_opt_(nFileSystemNameSize) LPWSTR lpFileSystemNameBuffer, + _In_ DWORD nFileSystemNameSize + ); + +#endif /* _WIN32_WINNT >= 0x0600 */ + +WINBASEAPI +BOOL +WINAPI +GetVolumeInformationW( + _In_opt_ LPCWSTR lpRootPathName, + _Out_writes_opt_(nVolumeNameSize) LPWSTR lpVolumeNameBuffer, + _In_ DWORD nVolumeNameSize, + _Out_opt_ LPDWORD lpVolumeSerialNumber, + _Out_opt_ LPDWORD lpMaximumComponentLength, + _Out_opt_ LPDWORD lpFileSystemFlags, + _Out_writes_opt_(nFileSystemNameSize) LPWSTR lpFileSystemNameBuffer, + _In_ DWORD nFileSystemNameSize + ); + +#ifdef UNICODE +#define GetVolumeInformation GetVolumeInformationW +#endif + +WINBASEAPI +BOOL +WINAPI +GetVolumePathNameW( + _In_ LPCWSTR lpszFileName, + _Out_writes_(cchBufferLength) LPWSTR lpszVolumePathName, + _In_ DWORD cchBufferLength + ); + +#ifdef UNICODE +#define GetVolumePathName GetVolumePathNameW +#endif + +WINBASEAPI +BOOL +WINAPI +LocalFileTimeToFileTime( + _In_ CONST FILETIME* lpLocalFileTime, + _Out_ LPFILETIME lpFileTime + ); + +WINBASEAPI +BOOL +WINAPI +LockFile( + _In_ HANDLE hFile, + _In_ DWORD dwFileOffsetLow, + _In_ DWORD dwFileOffsetHigh, + _In_ DWORD nNumberOfBytesToLockLow, + _In_ DWORD nNumberOfBytesToLockHigh + ); + +WINBASEAPI +BOOL +WINAPI +LockFileEx( + _In_ HANDLE hFile, + _In_ DWORD dwFlags, + _Reserved_ DWORD dwReserved, + _In_ DWORD nNumberOfBytesToLockLow, + _In_ DWORD nNumberOfBytesToLockHigh, + _Inout_ LPOVERLAPPED lpOverlapped + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +DWORD +WINAPI +QueryDosDeviceW( + _In_opt_ LPCWSTR lpDeviceName, + _Out_writes_to_opt_(ucchMax,return) LPWSTR lpTargetPath, + _In_ DWORD ucchMax + ); + +#ifdef UNICODE +#define QueryDosDevice QueryDosDeviceW +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +_Must_inspect_result_ +BOOL +WINAPI +ReadFile( + _In_ HANDLE hFile, + _Out_writes_bytes_to_opt_(nNumberOfBytesToRead, *lpNumberOfBytesRead) __out_data_source(FILE) LPVOID lpBuffer, + _In_ DWORD nNumberOfBytesToRead, + _Out_opt_ LPDWORD lpNumberOfBytesRead, + _Inout_opt_ LPOVERLAPPED lpOverlapped + ); + +WINBASEAPI +_Must_inspect_result_ +BOOL +WINAPI +ReadFileEx( + _In_ HANDLE hFile, + _Out_writes_bytes_opt_(nNumberOfBytesToRead) __out_data_source(FILE) LPVOID lpBuffer, + _In_ DWORD nNumberOfBytesToRead, + _Inout_ LPOVERLAPPED lpOverlapped, + _In_ LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine + ); + +WINBASEAPI +_Must_inspect_result_ +BOOL +WINAPI +ReadFileScatter( + _In_ HANDLE hFile, + _In_ FILE_SEGMENT_ELEMENT aSegmentArray[], + _In_ DWORD nNumberOfBytesToRead, + _Reserved_ LPDWORD lpReserved, + _Inout_ LPOVERLAPPED lpOverlapped + ); + +WINBASEAPI +BOOL +WINAPI +RemoveDirectoryA( + _In_ LPCSTR lpPathName + ); + +WINBASEAPI +BOOL +WINAPI +RemoveDirectoryW( + _In_ LPCWSTR lpPathName + ); + +#ifdef UNICODE +#define RemoveDirectory RemoveDirectoryW +#else +#define RemoveDirectory RemoveDirectoryA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +SetEndOfFile( + _In_ HANDLE hFile + ); + +WINBASEAPI +BOOL +WINAPI +SetFileAttributesA( + _In_ LPCSTR lpFileName, + _In_ DWORD dwFileAttributes + ); + +WINBASEAPI +BOOL +WINAPI +SetFileAttributesW( + _In_ LPCWSTR lpFileName, + _In_ DWORD dwFileAttributes + ); + +#ifdef UNICODE +#define SetFileAttributes SetFileAttributesW +#else +#define SetFileAttributes SetFileAttributesA +#endif // !UNICODE + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +BOOL +WINAPI +SetFileInformationByHandle( + _In_ HANDLE hFile, + _In_ FILE_INFO_BY_HANDLE_CLASS FileInformationClass, + _In_reads_bytes_(dwBufferSize) LPVOID lpFileInformation, + _In_ DWORD dwBufferSize + ); + +#endif + +WINBASEAPI +DWORD +WINAPI +SetFilePointer( + _In_ HANDLE hFile, + _In_ LONG lDistanceToMove, + _Inout_opt_ PLONG lpDistanceToMoveHigh, + _In_ DWORD dwMoveMethod + ); + +WINBASEAPI +BOOL +WINAPI +SetFilePointerEx( + _In_ HANDLE hFile, + _In_ LARGE_INTEGER liDistanceToMove, + _Out_opt_ PLARGE_INTEGER lpNewFilePointer, + _In_ DWORD dwMoveMethod + ); + +WINBASEAPI +BOOL +WINAPI +SetFileTime( + _In_ HANDLE hFile, + _In_opt_ CONST FILETIME* lpCreationTime, + _In_opt_ CONST FILETIME* lpLastAccessTime, + _In_opt_ CONST FILETIME* lpLastWriteTime + ); + +#if _WIN32_WINNT >= 0x0501 + +WINBASEAPI +BOOL +WINAPI +SetFileValidData( + _In_ HANDLE hFile, + _In_ LONGLONG ValidDataLength + ); + +#endif // (_WIN32_WINNT >= 0x0501) + +WINBASEAPI +BOOL +WINAPI +UnlockFile( + _In_ HANDLE hFile, + _In_ DWORD dwFileOffsetLow, + _In_ DWORD dwFileOffsetHigh, + _In_ DWORD nNumberOfBytesToUnlockLow, + _In_ DWORD nNumberOfBytesToUnlockHigh + ); + +WINBASEAPI +BOOL +WINAPI +UnlockFileEx( + _In_ HANDLE hFile, + _Reserved_ DWORD dwReserved, + _In_ DWORD nNumberOfBytesToUnlockLow, + _In_ DWORD nNumberOfBytesToUnlockHigh, + _Inout_ LPOVERLAPPED lpOverlapped + ); + +WINBASEAPI +BOOL +WINAPI +WriteFile( + _In_ HANDLE hFile, + _In_reads_bytes_opt_(nNumberOfBytesToWrite) LPCVOID lpBuffer, + _In_ DWORD nNumberOfBytesToWrite, + _Out_opt_ LPDWORD lpNumberOfBytesWritten, + _Inout_opt_ LPOVERLAPPED lpOverlapped + ); + +WINBASEAPI +BOOL +WINAPI +WriteFileEx( + _In_ HANDLE hFile, + _In_reads_bytes_opt_(nNumberOfBytesToWrite) LPCVOID lpBuffer, + _In_ DWORD nNumberOfBytesToWrite, + _Inout_ LPOVERLAPPED lpOverlapped, + _In_ LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine + ); + +WINBASEAPI +BOOL +WINAPI +WriteFileGather( + _In_ HANDLE hFile, + _In_ FILE_SEGMENT_ELEMENT aSegmentArray[], + _In_ DWORD nNumberOfBytesToWrite, + _Reserved_ LPDWORD lpReserved, + _Inout_ LPOVERLAPPED lpOverlapped + ); + +WINBASEAPI +DWORD +WINAPI +GetTempPathW( + _In_ DWORD nBufferLength, + _Out_writes_to_opt_(nBufferLength,return + 1) LPWSTR lpBuffer + ); + +#ifdef UNICODE +#define GetTempPath GetTempPathW +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +WINAPI +GetVolumeNameForVolumeMountPointW( + _In_ LPCWSTR lpszVolumeMountPoint, + _Out_writes_(cchBufferLength) LPWSTR lpszVolumeName, + _In_ DWORD cchBufferLength + ); + +#ifdef UNICODE +#define GetVolumeNameForVolumeMountPoint GetVolumeNameForVolumeMountPointW +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#if (_WIN32_WINNT >= 0x0501) + +WINBASEAPI +BOOL +WINAPI +GetVolumePathNamesForVolumeNameW( + _In_ LPCWSTR lpszVolumeName, + _Out_writes_to_opt_(cchBufferLength,*lpcchReturnLength) _Post_ _NullNull_terminated_ LPWCH lpszVolumePathNames, + _In_ DWORD cchBufferLength, + _Out_ PDWORD lpcchReturnLength + ); + +#ifdef UNICODE +#define GetVolumePathNamesForVolumeName GetVolumePathNamesForVolumeNameW +#endif + +#endif // _WIN32_WINNT >= 0x0501 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0602) + +typedef struct _CREATEFILE2_EXTENDED_PARAMETERS { + DWORD dwSize; + DWORD dwFileAttributes; + DWORD dwFileFlags; + DWORD dwSecurityQosFlags; + LPSECURITY_ATTRIBUTES lpSecurityAttributes; + HANDLE hTemplateFile; +} CREATEFILE2_EXTENDED_PARAMETERS, *PCREATEFILE2_EXTENDED_PARAMETERS, *LPCREATEFILE2_EXTENDED_PARAMETERS; + +WINBASEAPI +HANDLE +WINAPI +CreateFile2( + _In_ LPCWSTR lpFileName, + _In_ DWORD dwDesiredAccess, + _In_ DWORD dwShareMode, + _In_ DWORD dwCreationDisposition, + _In_opt_ LPCREATEFILE2_EXTENDED_PARAMETERS pCreateExParams + ); + +#endif // _WIN32_WINNT >= 0x0602 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +BOOL +WINAPI +SetFileIoOverlappedRange( + _In_ HANDLE FileHandle, + _In_ PUCHAR OverlappedRangeStart, + _In_ ULONG Length + ); + +#endif // _WIN32_WINNT >= 0x0600 + +#if _WIN32_WINNT >= 0x0501 + +WINBASEAPI +DWORD +WINAPI +GetCompressedFileSizeA( + _In_ LPCSTR lpFileName, + _Out_opt_ LPDWORD lpFileSizeHigh + ); + +WINBASEAPI +DWORD +WINAPI +GetCompressedFileSizeW( + _In_ LPCWSTR lpFileName, + _Out_opt_ LPDWORD lpFileSizeHigh + ); + +#ifdef UNICODE +#define GetCompressedFileSize GetCompressedFileSizeW +#else +#define GetCompressedFileSize GetCompressedFileSizeA +#endif // !UNICODE + +#endif // _WIN32_WINNT >= 0x0501 + +#if (_WIN32_WINNT >= 0x0501) + +typedef enum _STREAM_INFO_LEVELS { + + FindStreamInfoStandard, + FindStreamInfoMaxInfoLevel + +} STREAM_INFO_LEVELS; + +typedef struct _WIN32_FIND_STREAM_DATA { + + LARGE_INTEGER StreamSize; + WCHAR cStreamName[ MAX_PATH + 36 ]; + +} WIN32_FIND_STREAM_DATA, *PWIN32_FIND_STREAM_DATA; + +WINBASEAPI +HANDLE +WINAPI +FindFirstStreamW( + _In_ LPCWSTR lpFileName, + _In_ STREAM_INFO_LEVELS InfoLevel, + _Out_writes_bytes_(sizeof(WIN32_FIND_STREAM_DATA)) LPVOID lpFindStreamData, + _Reserved_ DWORD dwFlags + ); + +WINBASEAPI +BOOL +APIENTRY +FindNextStreamW( + _In_ HANDLE hFindStream, + _Out_writes_bytes_(sizeof(WIN32_FIND_STREAM_DATA)) LPVOID lpFindStreamData + ); + +#endif // (_WIN32_WINNT >= 0x0501) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +AreFileApisANSI( + VOID + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +DWORD +WINAPI +GetTempPathA( + _In_ DWORD nBufferLength, + _Out_writes_to_opt_(nBufferLength,return + 1) LPSTR lpBuffer + ); + +#ifndef UNICODE +#define GetTempPath GetTempPathA +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#if _WIN32_WINNT >= 0x0600 + +WINBASEAPI +HANDLE +WINAPI +FindFirstFileNameW( + _In_ LPCWSTR lpFileName, + _In_ DWORD dwFlags, + _Inout_ LPDWORD StringLength, + _Out_writes_(*StringLength) PWSTR LinkName + ); + +WINBASEAPI +BOOL +APIENTRY +FindNextFileNameW( + _In_ HANDLE hFindStream, + _Inout_ LPDWORD StringLength, + _Out_writes_(*StringLength) PWSTR LinkName + ); + +#endif // (_WIN32_WINNT >= 0x0600) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +GetVolumeInformationA( + _In_opt_ LPCSTR lpRootPathName, + _Out_writes_opt_(nVolumeNameSize) LPSTR lpVolumeNameBuffer, + _In_ DWORD nVolumeNameSize, + _Out_opt_ LPDWORD lpVolumeSerialNumber, + _Out_opt_ LPDWORD lpMaximumComponentLength, + _Out_opt_ LPDWORD lpFileSystemFlags, + _Out_writes_opt_(nFileSystemNameSize) LPSTR lpFileSystemNameBuffer, + _In_ DWORD nFileSystemNameSize + ); + +#ifndef UNICODE +#define GetVolumeInformation GetVolumeInformationA +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +UINT +WINAPI +GetTempFileNameA( + _In_ LPCSTR lpPathName, + _In_ LPCSTR lpPrefixString, + _In_ UINT uUnique, + _Out_writes_(MAX_PATH) LPSTR lpTempFileName + ); + +#ifndef UNICODE +#define GetTempFileName GetTempFileNameA +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +VOID +WINAPI +SetFileApisToOEM( + VOID + ); + +WINBASEAPI +VOID +WINAPI +SetFileApisToANSI( + VOID + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +WINBASEAPI +_Success_(return > 0 && return < BufferLength) +DWORD +WINAPI +GetTempPath2W( + _In_ DWORD BufferLength, + _Out_writes_to_opt_(BufferLength,return + 1) LPWSTR Buffer + ); + +#ifdef UNICODE +#define GetTempPath2 GetTempPath2W +#endif + +WINBASEAPI +_Success_(return > 0 && return < BufferLength) +DWORD +WINAPI +GetTempPath2A( + _In_ DWORD BufferLength, + _Out_writes_to_opt_(BufferLength,return + 1) LPSTR Buffer + ); + +#ifndef UNICODE +#define GetTempPath2 GetTempPath2A +#endif + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +typedef struct _CREATEFILE3_EXTENDED_PARAMETERS { + DWORD dwSize; + DWORD dwFileAttributes; + DWORD dwFileFlags; + DWORD dwSecurityQosFlags; + LPSECURITY_ATTRIBUTES lpSecurityAttributes; + HANDLE hTemplateFile; +} CREATEFILE3_EXTENDED_PARAMETERS, *PCREATEFILE3_EXTENDED_PARAMETERS, *LPCREATEFILE3_EXTENDED_PARAMETERS; + +typedef enum DIRECTORY_FLAGS +{ + DIRECTORY_FLAGS_NONE = 0, + DIRECTORY_FLAGS_DISALLOW_PATH_REDIRECTS = 0x000000001, +} DIRECTORY_FLAGS; +DEFINE_ENUM_FLAG_OPERATORS(DIRECTORY_FLAGS) + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if defined(NTDDI_WIN11_GE) && (NTDDI_VERSION >= NTDDI_WIN11_GE) + +WINBASEAPI +HANDLE +WINAPI +CreateFile3( + _In_z_ LPCWSTR lpFileName, + _In_ DWORD dwDesiredAccess, + _In_ DWORD dwShareMode, + _In_ DWORD dwCreationDisposition, + _In_opt_ LPCREATEFILE3_EXTENDED_PARAMETERS pCreateExParams + ); + +WINBASEAPI +HANDLE +WINAPI +CreateDirectory2A( + _In_z_ LPCSTR lpPathName, + _In_ DWORD dwDesiredAccess, + _In_ DWORD dwShareMode, + _In_ DIRECTORY_FLAGS DirectoryFlags, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); + +WINBASEAPI +HANDLE +WINAPI +CreateDirectory2W( + _In_z_ LPCWSTR lpPathName, + _In_ DWORD dwDesiredAccess, + _In_ DWORD dwShareMode, + _In_ DIRECTORY_FLAGS DirectoryFlags, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes + ); + +#ifdef UNICODE +#define CreateDirectory2 CreateDirectory2W +#else +#define CreateDirectory2 CreateDirectory2A +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +RemoveDirectory2A( + _In_z_ LPCSTR lpPathName, + _In_ DIRECTORY_FLAGS DirectoryFlags + ); + +WINBASEAPI +BOOL +WINAPI +RemoveDirectory2W( + _In_z_ LPCWSTR lpPathName, + _In_ DIRECTORY_FLAGS DirectoryFlags + ); + +#ifdef UNICODE +#define RemoveDirectory2 RemoveDirectory2W +#else +#define RemoveDirectory2 RemoveDirectory2A +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +DeleteFile2A( + _In_z_ LPCSTR lpFileName, + _In_ DWORD Flags + ); + +WINBASEAPI +BOOL +WINAPI +DeleteFile2W( + _In_z_ LPCWSTR lpFileName, + _In_ DWORD Flags + ); + +#ifdef UNICODE +#define DeleteFile2 DeleteFile2W +#else +#define DeleteFile2 DeleteFile2A +#endif // !UNICODE + +#endif // (NTDDI_VERSION >= NTDDI_WIN11_GE) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _APISETFILE_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fileapifromapp.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fileapifromapp.h new file mode 100644 index 0000000000000000000000000000000000000000..fe836cf1d195e33125452e87109799ed2bdf3a0c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fileapifromapp.h @@ -0,0 +1,186 @@ +/********************************************************************************* +* * +* fileapifromapp.h - ApiSet Contract for api-ms-win-core-file-fromapp-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +*********************************************************************************/ + +#ifndef _FILEAPIFROMAPP_H_ +#define _FILEAPIFROMAPP_H_ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#if ((_WIN32_WINNT >= _WIN32_WINNT_WIN10) && (NTDDI_VERSION >= NTDDI_WIN10_RS3)) + +WINSTORAGEAPI +BOOL +WINAPI +CopyFileFromAppW( + _In_ LPCWSTR lpExistingFileName, + _In_ LPCWSTR lpNewFileName, + _In_ BOOL bFailIfExists + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +WINSTORAGEAPI +BOOL +WINAPI +CreateDirectoryFromAppW( + _In_ LPCWSTR lpPathName, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +WINSTORAGEAPI +HANDLE +WINAPI +CreateFileFromAppW( + _In_ LPCWSTR lpFileName, + _In_ DWORD dwDesiredAccess, + _In_ DWORD dwShareMode, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, + _In_ DWORD dwCreationDisposition, + _In_ DWORD dwFlagsAndAttributes, + _In_opt_ HANDLE hTemplateFile + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +WINSTORAGEAPI +HANDLE +WINAPI +CreateFile2FromAppW( + _In_ LPCWSTR lpFileName, + _In_ DWORD dwDesiredAccess, + _In_ DWORD dwShareMode, + _In_ DWORD dwCreationDisposition, + _In_opt_ LPCREATEFILE2_EXTENDED_PARAMETERS pCreateExParams + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +WINSTORAGEAPI +BOOL +WINAPI +DeleteFileFromAppW( + _In_ LPCWSTR lpFileName + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +WINSTORAGEAPI +HANDLE +WINAPI +FindFirstFileExFromAppW( + _In_ LPCWSTR lpFileName, + _In_ FINDEX_INFO_LEVELS fInfoLevelId, + _Out_writes_bytes_(sizeof(WIN32_FIND_DATAW)) LPVOID lpFindFileData, + _In_ FINDEX_SEARCH_OPS fSearchOp, + _Reserved_ LPVOID lpSearchFilter, + _In_ DWORD dwAdditionalFlags + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +WINSTORAGEAPI +BOOL +WINAPI +GetFileAttributesExFromAppW( + _In_ LPCWSTR lpFileName, + _In_ GET_FILEEX_INFO_LEVELS fInfoLevelId, + _Out_writes_bytes_(sizeof(WIN32_FILE_ATTRIBUTE_DATA)) LPVOID lpFileInformation + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +WINSTORAGEAPI +BOOL +WINAPI +MoveFileFromAppW( + _In_ LPCWSTR lpExistingFileName, + _In_ LPCWSTR lpNewFileName + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +WINSTORAGEAPI +BOOL +WINAPI +RemoveDirectoryFromAppW( + _In_ LPCWSTR lpPathName + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +WINSTORAGEAPI +BOOL +WINAPI +ReplaceFileFromAppW( + _In_ LPCWSTR lpReplacedFileName, + _In_ LPCWSTR lpReplacementFileName, + _In_opt_ LPCWSTR lpBackupFileName, + _In_ DWORD dwReplaceFlags, + _Reserved_ LPVOID lpExclude, + _Reserved_ LPVOID lpReserved + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +WINSTORAGEAPI +BOOL +WINAPI +SetFileAttributesFromAppW( + _In_ LPCWSTR lpFileName, + _In_ DWORD dwFileAttributes + ) +#if defined(__cplusplus) && _MSC_VER >= 1900 +noexcept +#endif +; + +#endif // Version check +#endif/* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _FILEAPIFROMAPP_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/filtereg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/filtereg.h new file mode 100644 index 0000000000000000000000000000000000000000..b2a8c6260ff4bde3b3adf1328f04155860adf6f5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/filtereg.h @@ -0,0 +1,400 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __filtereg_h__ +#define __filtereg_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ILoadFilter_FWD_DEFINED__ +#define __ILoadFilter_FWD_DEFINED__ +typedef interface ILoadFilter ILoadFilter; + +#endif /* __ILoadFilter_FWD_DEFINED__ */ + + +#ifndef __ILoadFilterWithPrivateComActivation_FWD_DEFINED__ +#define __ILoadFilterWithPrivateComActivation_FWD_DEFINED__ +typedef interface ILoadFilterWithPrivateComActivation ILoadFilterWithPrivateComActivation; + +#endif /* __ILoadFilterWithPrivateComActivation_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "filter.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_filtereg_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +EXTERN_C const CLSID CLSID_FilterRegistration; + + +extern RPC_IF_HANDLE __MIDL_itf_filtereg_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_filtereg_0000_0000_v0_0_s_ifspec; + +#ifndef __ILoadFilter_INTERFACE_DEFINED__ +#define __ILoadFilter_INTERFACE_DEFINED__ + +/* interface ILoadFilter */ +/* [unique][helpstring][uuid][object] */ + +typedef struct _FILTERED_DATA_SOURCES + { + const WCHAR *pwcsExtension; + const WCHAR *pwcsMime; + const CLSID *pClsid; + const WCHAR *pwcsOverride; + } FILTERED_DATA_SOURCES; + + +EXTERN_C const IID IID_ILoadFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c7310722-ac80-11d1-8df3-00c04fb6ef4f") + ILoadFilter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE LoadIFilter( + /* [unique][in] */ __RPC__in_opt LPCWSTR pwcsPath, + /* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources, + /* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [in] */ BOOL fUseDefault, + /* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid, + /* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize, + /* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt) = 0; + + virtual HRESULT STDMETHODCALLTYPE LoadIFilterFromStorage( + /* [in] */ __RPC__in_opt IStorage *pStg, + /* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwcsOverride, + /* [in] */ BOOL fUseDefault, + /* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid, + /* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize, + /* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt) = 0; + + virtual HRESULT STDMETHODCALLTYPE LoadIFilterFromStream( + /* [in] */ __RPC__in_opt IStream *pStm, + /* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources, + /* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [in] */ BOOL fUseDefault, + /* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid, + /* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize, + /* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILoadFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILoadFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILoadFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILoadFilter * This); + + DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilter) + HRESULT ( STDMETHODCALLTYPE *LoadIFilter )( + __RPC__in ILoadFilter * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwcsPath, + /* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources, + /* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [in] */ BOOL fUseDefault, + /* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid, + /* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize, + /* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt); + + DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilterFromStorage) + HRESULT ( STDMETHODCALLTYPE *LoadIFilterFromStorage )( + __RPC__in ILoadFilter * This, + /* [in] */ __RPC__in_opt IStorage *pStg, + /* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwcsOverride, + /* [in] */ BOOL fUseDefault, + /* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid, + /* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize, + /* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt); + + DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilterFromStream) + HRESULT ( STDMETHODCALLTYPE *LoadIFilterFromStream )( + __RPC__in ILoadFilter * This, + /* [in] */ __RPC__in_opt IStream *pStm, + /* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources, + /* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [in] */ BOOL fUseDefault, + /* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid, + /* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize, + /* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt); + + END_INTERFACE + } ILoadFilterVtbl; + + interface ILoadFilter + { + CONST_VTBL struct ILoadFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILoadFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILoadFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILoadFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILoadFilter_LoadIFilter(This,pwcsPath,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \ + ( (This)->lpVtbl -> LoadIFilter(This,pwcsPath,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) ) + +#define ILoadFilter_LoadIFilterFromStorage(This,pStg,pUnkOuter,pwcsOverride,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \ + ( (This)->lpVtbl -> LoadIFilterFromStorage(This,pStg,pUnkOuter,pwcsOverride,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) ) + +#define ILoadFilter_LoadIFilterFromStream(This,pStm,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \ + ( (This)->lpVtbl -> LoadIFilterFromStream(This,pStm,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILoadFilter_INTERFACE_DEFINED__ */ + + +#ifndef __ILoadFilterWithPrivateComActivation_INTERFACE_DEFINED__ +#define __ILoadFilterWithPrivateComActivation_INTERFACE_DEFINED__ + +/* interface ILoadFilterWithPrivateComActivation */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_ILoadFilterWithPrivateComActivation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("40BDBD34-780B-48D3-9BB6-12EBD4AD2E75") + ILoadFilterWithPrivateComActivation : public ILoadFilter + { + public: + virtual HRESULT STDMETHODCALLTYPE LoadIFilterWithPrivateComActivation( + /* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *filteredSources, + /* [in] */ BOOL useDefault, + /* [out] */ __RPC__out CLSID *filterClsid, + /* [out] */ __RPC__out BOOL *isFilterPrivateComActivated, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **filterObj) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILoadFilterWithPrivateComActivationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILoadFilterWithPrivateComActivation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILoadFilterWithPrivateComActivation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILoadFilterWithPrivateComActivation * This); + + DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilter) + HRESULT ( STDMETHODCALLTYPE *LoadIFilter )( + __RPC__in ILoadFilterWithPrivateComActivation * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwcsPath, + /* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources, + /* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [in] */ BOOL fUseDefault, + /* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid, + /* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize, + /* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt); + + DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilterFromStorage) + HRESULT ( STDMETHODCALLTYPE *LoadIFilterFromStorage )( + __RPC__in ILoadFilterWithPrivateComActivation * This, + /* [in] */ __RPC__in_opt IStorage *pStg, + /* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [unique][in] */ __RPC__in_opt LPCWSTR pwcsOverride, + /* [in] */ BOOL fUseDefault, + /* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid, + /* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize, + /* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt); + + DECLSPEC_XFGVIRT(ILoadFilter, LoadIFilterFromStream) + HRESULT ( STDMETHODCALLTYPE *LoadIFilterFromStream )( + __RPC__in ILoadFilterWithPrivateComActivation * This, + /* [in] */ __RPC__in_opt IStream *pStm, + /* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *pFilteredSources, + /* [unique][in] */ __RPC__in_opt IUnknown *pUnkOuter, + /* [in] */ BOOL fUseDefault, + /* [unique][out][in] */ __RPC__inout_opt CLSID *pFilterClsid, + /* [unique][out][in] */ __RPC__inout_opt int *SearchDecSize, + /* [length_is][length_is][size_is][size_is][unique][out][in] */ __RPC__deref_opt_inout_ecount_part_opt(( *SearchDecSize + 1 ) , ( *SearchDecSize + 1 ) ) WCHAR **pwcsSearchDesc, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **ppIFilt); + + DECLSPEC_XFGVIRT(ILoadFilterWithPrivateComActivation, LoadIFilterWithPrivateComActivation) + HRESULT ( STDMETHODCALLTYPE *LoadIFilterWithPrivateComActivation )( + __RPC__in ILoadFilterWithPrivateComActivation * This, + /* [unique][in] */ __RPC__in_opt FILTERED_DATA_SOURCES *filteredSources, + /* [in] */ BOOL useDefault, + /* [out] */ __RPC__out CLSID *filterClsid, + /* [out] */ __RPC__out BOOL *isFilterPrivateComActivated, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt IFilter **filterObj); + + END_INTERFACE + } ILoadFilterWithPrivateComActivationVtbl; + + interface ILoadFilterWithPrivateComActivation + { + CONST_VTBL struct ILoadFilterWithPrivateComActivationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILoadFilterWithPrivateComActivation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILoadFilterWithPrivateComActivation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILoadFilterWithPrivateComActivation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILoadFilterWithPrivateComActivation_LoadIFilter(This,pwcsPath,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \ + ( (This)->lpVtbl -> LoadIFilter(This,pwcsPath,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) ) + +#define ILoadFilterWithPrivateComActivation_LoadIFilterFromStorage(This,pStg,pUnkOuter,pwcsOverride,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \ + ( (This)->lpVtbl -> LoadIFilterFromStorage(This,pStg,pUnkOuter,pwcsOverride,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) ) + +#define ILoadFilterWithPrivateComActivation_LoadIFilterFromStream(This,pStm,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) \ + ( (This)->lpVtbl -> LoadIFilterFromStream(This,pStm,pFilteredSources,pUnkOuter,fUseDefault,pFilterClsid,SearchDecSize,pwcsSearchDesc,ppIFilt) ) + + +#define ILoadFilterWithPrivateComActivation_LoadIFilterWithPrivateComActivation(This,filteredSources,useDefault,filterClsid,isFilterPrivateComActivated,filterObj) \ + ( (This)->lpVtbl -> LoadIFilterWithPrivateComActivation(This,filteredSources,useDefault,filterClsid,isFilterPrivateComActivated,filterObj) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILoadFilterWithPrivateComActivation_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_filtereg_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_filtereg_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_filtereg_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/filtereg.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/filtereg.idl new file mode 100644 index 0000000000000000000000000000000000000000..e4303cbb67859f213cecbcc5b530bf6b839aa0e1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/filtereg.idl @@ -0,0 +1,94 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 1999-2000. +// +// File: filtereg.idl +// +// Contents: Filter registration interface +// +// History: Jun-30-1999 cobir Created +// Jul-09-2000 cobir Added IFilterControl +// +//-------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "filter.idl"; + + +// 9E175B8D-F52A-11D8-B9A5-505054503030 +cpp_quote("EXTERN_C const CLSID CLSID_FilterRegistration;") + +[ + object, + uuid(c7310722-ac80-11d1-8df3-00c04fb6ef4f), + helpstring("ILoadFilter Interface"), + pointer_default(unique) +] +interface ILoadFilter : IUnknown +{ + typedef struct _FILTERED_DATA_SOURCES + { + WCHAR const * pwcsExtension; // file extension + WCHAR const * pwcsMime; // mime type string + CLSID const * pClsid; + WCHAR const * pwcsOverride; + + } FILTERED_DATA_SOURCES; + + + HRESULT LoadIFilter( [in, unique] LPCWSTR pwcsPath, + [in, unique] FILTERED_DATA_SOURCES * pFilteredSources, + [in, unique] IUnknown * pUnkOuter, + [in] BOOL fUseDefault, // use default filter when no filter is found + [in, out, unique] CLSID * pFilterClsid, + [in, out, unique] int * SearchDecSize, + [in, out, unique, size_is(, *SearchDecSize + 1), length_is(, *SearchDecSize + 1)] WCHAR ** pwcsSearchDesc, + [in, out, unique] IFilter ** ppIFilt ); + + + + HRESULT LoadIFilterFromStorage( [in] IStorage * pStg, + [in, unique] IUnknown * pUnkOuter, + [in, unique] LPCWSTR pwcsOverride, + [in] BOOL fUseDefault, + [in, out, unique] CLSID * pFilterClsid, + [in, out, unique] int * SearchDecSize, + [in, out, unique, size_is(, *SearchDecSize + 1), length_is(, *SearchDecSize + 1)] WCHAR ** pwcsSearchDesc, + [in, out, unique] IFilter ** ppIFilt ); + + + HRESULT LoadIFilterFromStream( [in] IStream * pStm, + [in, unique] FILTERED_DATA_SOURCES *pFilteredSources, + [in, unique] IUnknown * pUnkOuter, + [in] BOOL fUseDefault, + [in, out, unique] CLSID * pFilterClsid, + [in, out, unique] int * SearchDecSize, + [in, out, unique, size_is(, *SearchDecSize + 1), length_is(, *SearchDecSize + 1)] WCHAR ** pwcsSearchDesc, + [in, out, unique] IFilter ** ppIFilt ); +}; + +[ + object, + uuid(40BDBD34-780B-48D3-9BB6-12EBD4AD2E75), + helpstring("ILoadFilterWithPrivateComActivation Interface"), + pointer_default(unique) +] +interface ILoadFilterWithPrivateComActivation : ILoadFilter +{ + HRESULT LoadIFilterWithPrivateComActivation( + [in, unique] FILTERED_DATA_SOURCES * filteredSources, + [in] BOOL useDefault, // use default filter when no filter is found + [out] CLSID * filterClsid, + [out] BOOL *isFilterPrivateComActivated, + [in, out, unique] IFilter ** filterObj); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/filterpipeline.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/filterpipeline.h new file mode 100644 index 0000000000000000000000000000000000000000..884cf3a372f74f43f115f06418fe58226f3265f6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/filterpipeline.h @@ -0,0 +1,3390 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __filterpipeline_h__ +#define __filterpipeline_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IPrintReadStream_FWD_DEFINED__ +#define __IPrintReadStream_FWD_DEFINED__ +typedef interface IPrintReadStream IPrintReadStream; + +#endif /* __IPrintReadStream_FWD_DEFINED__ */ + + +#ifndef __IPrintWriteStream_FWD_DEFINED__ +#define __IPrintWriteStream_FWD_DEFINED__ +typedef interface IPrintWriteStream IPrintWriteStream; + +#endif /* __IPrintWriteStream_FWD_DEFINED__ */ + + +#ifndef __IPrintWriteStreamFlush_FWD_DEFINED__ +#define __IPrintWriteStreamFlush_FWD_DEFINED__ +typedef interface IPrintWriteStreamFlush IPrintWriteStreamFlush; + +#endif /* __IPrintWriteStreamFlush_FWD_DEFINED__ */ + + +#ifndef __IInterFilterCommunicator_FWD_DEFINED__ +#define __IInterFilterCommunicator_FWD_DEFINED__ +typedef interface IInterFilterCommunicator IInterFilterCommunicator; + +#endif /* __IInterFilterCommunicator_FWD_DEFINED__ */ + + +#ifndef __IPrintPipelineManagerControl_FWD_DEFINED__ +#define __IPrintPipelineManagerControl_FWD_DEFINED__ +typedef interface IPrintPipelineManagerControl IPrintPipelineManagerControl; + +#endif /* __IPrintPipelineManagerControl_FWD_DEFINED__ */ + + +#ifndef __IPrintPipelinePropertyBag_FWD_DEFINED__ +#define __IPrintPipelinePropertyBag_FWD_DEFINED__ +typedef interface IPrintPipelinePropertyBag IPrintPipelinePropertyBag; + +#endif /* __IPrintPipelinePropertyBag_FWD_DEFINED__ */ + + +#ifndef __IPrintPipelineProgressReport_FWD_DEFINED__ +#define __IPrintPipelineProgressReport_FWD_DEFINED__ +typedef interface IPrintPipelineProgressReport IPrintPipelineProgressReport; + +#endif /* __IPrintPipelineProgressReport_FWD_DEFINED__ */ + + +#ifndef __IPrintClassObjectFactory_FWD_DEFINED__ +#define __IPrintClassObjectFactory_FWD_DEFINED__ +typedef interface IPrintClassObjectFactory IPrintClassObjectFactory; + +#endif /* __IPrintClassObjectFactory_FWD_DEFINED__ */ + + +#ifndef __IPrintPipelineFilter_FWD_DEFINED__ +#define __IPrintPipelineFilter_FWD_DEFINED__ +typedef interface IPrintPipelineFilter IPrintPipelineFilter; + +#endif /* __IPrintPipelineFilter_FWD_DEFINED__ */ + + +#ifndef __IXpsDocumentProvider_FWD_DEFINED__ +#define __IXpsDocumentProvider_FWD_DEFINED__ +typedef interface IXpsDocumentProvider IXpsDocumentProvider; + +#endif /* __IXpsDocumentProvider_FWD_DEFINED__ */ + + +#ifndef __IXpsDocumentConsumer_FWD_DEFINED__ +#define __IXpsDocumentConsumer_FWD_DEFINED__ +typedef interface IXpsDocumentConsumer IXpsDocumentConsumer; + +#endif /* __IXpsDocumentConsumer_FWD_DEFINED__ */ + + +#ifndef __IXpsDocument_FWD_DEFINED__ +#define __IXpsDocument_FWD_DEFINED__ +typedef interface IXpsDocument IXpsDocument; + +#endif /* __IXpsDocument_FWD_DEFINED__ */ + + +#ifndef __IFixedDocumentSequence_FWD_DEFINED__ +#define __IFixedDocumentSequence_FWD_DEFINED__ +typedef interface IFixedDocumentSequence IFixedDocumentSequence; + +#endif /* __IFixedDocumentSequence_FWD_DEFINED__ */ + + +#ifndef __IFixedDocument_FWD_DEFINED__ +#define __IFixedDocument_FWD_DEFINED__ +typedef interface IFixedDocument IFixedDocument; + +#endif /* __IFixedDocument_FWD_DEFINED__ */ + + +#ifndef __IPartBase_FWD_DEFINED__ +#define __IPartBase_FWD_DEFINED__ +typedef interface IPartBase IPartBase; + +#endif /* __IPartBase_FWD_DEFINED__ */ + + +#ifndef __IFixedPage_FWD_DEFINED__ +#define __IFixedPage_FWD_DEFINED__ +typedef interface IFixedPage IFixedPage; + +#endif /* __IFixedPage_FWD_DEFINED__ */ + + +#ifndef __IPartImage_FWD_DEFINED__ +#define __IPartImage_FWD_DEFINED__ +typedef interface IPartImage IPartImage; + +#endif /* __IPartImage_FWD_DEFINED__ */ + + +#ifndef __IPartFont_FWD_DEFINED__ +#define __IPartFont_FWD_DEFINED__ +typedef interface IPartFont IPartFont; + +#endif /* __IPartFont_FWD_DEFINED__ */ + + +#ifndef __IPartFont2_FWD_DEFINED__ +#define __IPartFont2_FWD_DEFINED__ +typedef interface IPartFont2 IPartFont2; + +#endif /* __IPartFont2_FWD_DEFINED__ */ + + +#ifndef __IPartThumbnail_FWD_DEFINED__ +#define __IPartThumbnail_FWD_DEFINED__ +typedef interface IPartThumbnail IPartThumbnail; + +#endif /* __IPartThumbnail_FWD_DEFINED__ */ + + +#ifndef __IPartPrintTicket_FWD_DEFINED__ +#define __IPartPrintTicket_FWD_DEFINED__ +typedef interface IPartPrintTicket IPartPrintTicket; + +#endif /* __IPartPrintTicket_FWD_DEFINED__ */ + + +#ifndef __IPartColorProfile_FWD_DEFINED__ +#define __IPartColorProfile_FWD_DEFINED__ +typedef interface IPartColorProfile IPartColorProfile; + +#endif /* __IPartColorProfile_FWD_DEFINED__ */ + + +#ifndef __IPartResourceDictionary_FWD_DEFINED__ +#define __IPartResourceDictionary_FWD_DEFINED__ +typedef interface IPartResourceDictionary IPartResourceDictionary; + +#endif /* __IPartResourceDictionary_FWD_DEFINED__ */ + + +#ifndef __IXpsPartIterator_FWD_DEFINED__ +#define __IXpsPartIterator_FWD_DEFINED__ +typedef interface IXpsPartIterator IXpsPartIterator; + +#endif /* __IXpsPartIterator_FWD_DEFINED__ */ + + +#ifndef __IPrintReadStreamFactory_FWD_DEFINED__ +#define __IPrintReadStreamFactory_FWD_DEFINED__ +typedef interface IPrintReadStreamFactory IPrintReadStreamFactory; + +#endif /* __IPrintReadStreamFactory_FWD_DEFINED__ */ + + +#ifndef __IPartDiscardControl_FWD_DEFINED__ +#define __IPartDiscardControl_FWD_DEFINED__ +typedef interface IPartDiscardControl IPartDiscardControl; + +#endif /* __IPartDiscardControl_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "imgerror.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_filterpipeline_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define E_ELEMENT_NOT_FOUND HRESULT_FROM_WIN32(ERROR_NOT_FOUND) +#define XPS_FP_PRINTER_NAME L"PrinterName" +#define XPS_FP_PROGRESS_REPORT L"ProgressReport" +#define XPS_FP_PRINTER_HANDLE L"PrinterHandle" +#define XPS_FP_USER_PRINT_TICKET L"PerUserPrintTicket" +#define XPS_FP_USER_TOKEN L"UserSecurityToken" +#define XPS_FP_JOB_ID L"PrintJobId" +#define XPS_FP_PRINT_CLASS_FACTORY L"PrintClassFactory" +#define XPS_FP_OUTPUT_FILE L"PrintOutputFileName" +#define XPS_FP_MS_CONTENT_TYPE L"DriverMultiContentType" +#define XPS_FP_MS_CONTENT_TYPE_XPS L"XPS" +#define XPS_FP_MS_CONTENT_TYPE_OPENXPS L"OpenXPS" +#define XPS_FP_DRIVER_PROPERTY_BAG L"DriverPropertyBag" +#define XPS_FP_QUEUE_PROPERTY_BAG L"QueuePropertyBag" +#define XPS_FP_MERGED_DATAFILE_PATH L"MergedDataFilePath" +#define XPS_FP_RESOURCE_DLL_PATHS L"ResourceDLLPaths" +#define XPS_FP_JOB_LEVEL_PRINTTICKET L"JobPrintTicket" +#define XPS_FP_PRINTDEVICECAPABILITIES L"PrintDeviceCapabilities" +#define XPS_FP_FAX_JOB_PROPERTIES L"JobFaxProperties" + + + + + + + + + + + + + + + + + + + + + + +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_filterpipeline_0000_0000_0001 + { + Compression_NotCompressed = 0, + Compression_Normal = ( Compression_NotCompressed + 1 ) , + Compression_Small = ( Compression_Normal + 1 ) , + Compression_Fast = ( Compression_Small + 1 ) + } EXpsCompressionOptions; + +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_filterpipeline_0000_0000_0002 + { + Font_Normal = 0, + Font_Obfusticate = ( Font_Normal + 1 ) + } EXpsFontOptions; + +typedef /* [public][public] */ +enum __MIDL___MIDL_itf_filterpipeline_0000_0000_0003 + { + XpsJob_DocumentSequenceAdded = 0, + XpsJob_FixedDocumentAdded = ( XpsJob_DocumentSequenceAdded + 1 ) , + XpsJob_FixedPageAdded = ( XpsJob_FixedDocumentAdded + 1 ) + } EXpsJobConsumption; + +typedef /* [public][public] */ +enum __MIDL___MIDL_itf_filterpipeline_0000_0000_0004 + { + Xps_Restricted_Font_Installable = 0, + Xps_Restricted_Font_NoEmbedding = 0x2, + Xps_Restricted_Font_PreviewPrint = 0x4, + Xps_Restricted_Font_Editable = 0x8 + } EXpsFontRestriction; + +// +// XPSDrv driver can specify filter service provider module using the +// or element in the filter pipeline configuration XML file. +// The service provider module must export the following DrvPopulateFilterServices function, which +// is called by the XPSDrv filter pipeline manager to allow the service provider to instantiate +// filter service objects in the filter pipeline property bag specified by the pPropertyBag parameter. +// +HRESULT +WINAPI +DrvPopulateFilterServices( + _In_ IPrintPipelinePropertyBag *pPropertyBag + ); + + +extern RPC_IF_HANDLE __MIDL_itf_filterpipeline_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_filterpipeline_0000_0000_v0_0_s_ifspec; + +#ifndef __IPrintReadStream_INTERFACE_DEFINED__ +#define __IPrintReadStream_INTERFACE_DEFINED__ + +/* interface IPrintReadStream */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPrintReadStream; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4d47a67c-66cc-4430-850e-daf466fe5bc4") + IPrintReadStream : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Seek( + /* [annotation][in] */ + _In_ LONGLONG dlibMove, + /* [annotation][in] */ + _In_ DWORD dwOrigin, + /* [annotation][out] */ + _Out_opt_ ULONGLONG *plibNewPosition) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReadBytes( + /* [annotation][length_is][size_is][out] */ + _Out_writes_bytes_to_(cbRequested, *pcbRead) void *pvBuffer, + /* [annotation][in] */ + _In_ ULONG cbRequested, + /* [annotation][out] */ + _Out_ ULONG *pcbRead, + /* [annotation][out] */ + _Out_ BOOL *pbEndOfFile) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintReadStreamVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPrintReadStream * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPrintReadStream * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPrintReadStream * This); + + DECLSPEC_XFGVIRT(IPrintReadStream, Seek) + HRESULT ( STDMETHODCALLTYPE *Seek )( + IPrintReadStream * This, + /* [annotation][in] */ + _In_ LONGLONG dlibMove, + /* [annotation][in] */ + _In_ DWORD dwOrigin, + /* [annotation][out] */ + _Out_opt_ ULONGLONG *plibNewPosition); + + DECLSPEC_XFGVIRT(IPrintReadStream, ReadBytes) + HRESULT ( STDMETHODCALLTYPE *ReadBytes )( + IPrintReadStream * This, + /* [annotation][length_is][size_is][out] */ + _Out_writes_bytes_to_(cbRequested, *pcbRead) void *pvBuffer, + /* [annotation][in] */ + _In_ ULONG cbRequested, + /* [annotation][out] */ + _Out_ ULONG *pcbRead, + /* [annotation][out] */ + _Out_ BOOL *pbEndOfFile); + + END_INTERFACE + } IPrintReadStreamVtbl; + + interface IPrintReadStream + { + CONST_VTBL struct IPrintReadStreamVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintReadStream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintReadStream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintReadStream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintReadStream_Seek(This,dlibMove,dwOrigin,plibNewPosition) \ + ( (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition) ) + +#define IPrintReadStream_ReadBytes(This,pvBuffer,cbRequested,pcbRead,pbEndOfFile) \ + ( (This)->lpVtbl -> ReadBytes(This,pvBuffer,cbRequested,pcbRead,pbEndOfFile) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintReadStream_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintWriteStream_INTERFACE_DEFINED__ +#define __IPrintWriteStream_INTERFACE_DEFINED__ + +/* interface IPrintWriteStream */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPrintWriteStream; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("65bb7f1b-371e-4571-8ac7-912f510c1a38") + IPrintWriteStream : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE WriteBytes( + /* [annotation][size_is][in] */ + _In_reads_bytes_(cbBuffer) const void *pvBuffer, + /* [annotation][in] */ + _In_ ULONG cbBuffer, + /* [annotation][out] */ + _Out_ ULONG *pcbWritten) = 0; + + virtual void STDMETHODCALLTYPE Close( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintWriteStreamVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPrintWriteStream * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPrintWriteStream * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPrintWriteStream * This); + + DECLSPEC_XFGVIRT(IPrintWriteStream, WriteBytes) + HRESULT ( STDMETHODCALLTYPE *WriteBytes )( + IPrintWriteStream * This, + /* [annotation][size_is][in] */ + _In_reads_bytes_(cbBuffer) const void *pvBuffer, + /* [annotation][in] */ + _In_ ULONG cbBuffer, + /* [annotation][out] */ + _Out_ ULONG *pcbWritten); + + DECLSPEC_XFGVIRT(IPrintWriteStream, Close) + void ( STDMETHODCALLTYPE *Close )( + IPrintWriteStream * This); + + END_INTERFACE + } IPrintWriteStreamVtbl; + + interface IPrintWriteStream + { + CONST_VTBL struct IPrintWriteStreamVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintWriteStream_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintWriteStream_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintWriteStream_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintWriteStream_WriteBytes(This,pvBuffer,cbBuffer,pcbWritten) \ + ( (This)->lpVtbl -> WriteBytes(This,pvBuffer,cbBuffer,pcbWritten) ) + +#define IPrintWriteStream_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintWriteStream_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintWriteStreamFlush_INTERFACE_DEFINED__ +#define __IPrintWriteStreamFlush_INTERFACE_DEFINED__ + +/* interface IPrintWriteStreamFlush */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPrintWriteStreamFlush; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("07d11ff8-1753-4873-b749-6cdaf068e4c3") + IPrintWriteStreamFlush : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FlushData( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintWriteStreamFlushVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPrintWriteStreamFlush * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPrintWriteStreamFlush * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPrintWriteStreamFlush * This); + + DECLSPEC_XFGVIRT(IPrintWriteStreamFlush, FlushData) + HRESULT ( STDMETHODCALLTYPE *FlushData )( + IPrintWriteStreamFlush * This); + + END_INTERFACE + } IPrintWriteStreamFlushVtbl; + + interface IPrintWriteStreamFlush + { + CONST_VTBL struct IPrintWriteStreamFlushVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintWriteStreamFlush_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintWriteStreamFlush_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintWriteStreamFlush_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintWriteStreamFlush_FlushData(This) \ + ( (This)->lpVtbl -> FlushData(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintWriteStreamFlush_INTERFACE_DEFINED__ */ + + +#ifndef __IInterFilterCommunicator_INTERFACE_DEFINED__ +#define __IInterFilterCommunicator_INTERFACE_DEFINED__ + +/* interface IInterFilterCommunicator */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IInterFilterCommunicator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4daf1e69-81fd-462d-940f-8cd3ddf56fca") + IInterFilterCommunicator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RequestReader( + /* [annotation][out] */ + _Out_ void **ppIReader) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestWriter( + /* [annotation][out] */ + _Out_ void **ppIWriter) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInterFilterCommunicatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IInterFilterCommunicator * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IInterFilterCommunicator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IInterFilterCommunicator * This); + + DECLSPEC_XFGVIRT(IInterFilterCommunicator, RequestReader) + HRESULT ( STDMETHODCALLTYPE *RequestReader )( + IInterFilterCommunicator * This, + /* [annotation][out] */ + _Out_ void **ppIReader); + + DECLSPEC_XFGVIRT(IInterFilterCommunicator, RequestWriter) + HRESULT ( STDMETHODCALLTYPE *RequestWriter )( + IInterFilterCommunicator * This, + /* [annotation][out] */ + _Out_ void **ppIWriter); + + END_INTERFACE + } IInterFilterCommunicatorVtbl; + + interface IInterFilterCommunicator + { + CONST_VTBL struct IInterFilterCommunicatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInterFilterCommunicator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInterFilterCommunicator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInterFilterCommunicator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInterFilterCommunicator_RequestReader(This,ppIReader) \ + ( (This)->lpVtbl -> RequestReader(This,ppIReader) ) + +#define IInterFilterCommunicator_RequestWriter(This,ppIWriter) \ + ( (This)->lpVtbl -> RequestWriter(This,ppIWriter) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInterFilterCommunicator_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintPipelineManagerControl_INTERFACE_DEFINED__ +#define __IPrintPipelineManagerControl_INTERFACE_DEFINED__ + +/* interface IPrintPipelineManagerControl */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPrintPipelineManagerControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("aa3e4910-5889-4681-91ef-823ad4ed4e44") + IPrintPipelineManagerControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RequestShutdown( + /* [annotation][in] */ + _In_ HRESULT hrReason, + /* [annotation][in] */ + _In_ IImgErrorInfo *pReason) = 0; + + virtual HRESULT STDMETHODCALLTYPE FilterFinished( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintPipelineManagerControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPrintPipelineManagerControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPrintPipelineManagerControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPrintPipelineManagerControl * This); + + DECLSPEC_XFGVIRT(IPrintPipelineManagerControl, RequestShutdown) + HRESULT ( STDMETHODCALLTYPE *RequestShutdown )( + IPrintPipelineManagerControl * This, + /* [annotation][in] */ + _In_ HRESULT hrReason, + /* [annotation][in] */ + _In_ IImgErrorInfo *pReason); + + DECLSPEC_XFGVIRT(IPrintPipelineManagerControl, FilterFinished) + HRESULT ( STDMETHODCALLTYPE *FilterFinished )( + IPrintPipelineManagerControl * This); + + END_INTERFACE + } IPrintPipelineManagerControlVtbl; + + interface IPrintPipelineManagerControl + { + CONST_VTBL struct IPrintPipelineManagerControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintPipelineManagerControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintPipelineManagerControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintPipelineManagerControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintPipelineManagerControl_RequestShutdown(This,hrReason,pReason) \ + ( (This)->lpVtbl -> RequestShutdown(This,hrReason,pReason) ) + +#define IPrintPipelineManagerControl_FilterFinished(This) \ + ( (This)->lpVtbl -> FilterFinished(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintPipelineManagerControl_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintPipelinePropertyBag_INTERFACE_DEFINED__ +#define __IPrintPipelinePropertyBag_INTERFACE_DEFINED__ + +/* interface IPrintPipelinePropertyBag */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPrintPipelinePropertyBag; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8b8c99dc-7892-4a95-8a04-57422e9fbb47") + IPrintPipelinePropertyBag : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddProperty( + /* [annotation][string][in] */ + _In_z_ const wchar_t *pszName, + /* [annotation][in] */ + _In_ const VARIANT *pVar) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + /* [annotation][string][in] */ + _In_z_ const wchar_t *pszName, + /* [annotation][out] */ + _Out_ VARIANT *pVar) = 0; + + virtual BOOL STDMETHODCALLTYPE DeleteProperty( + /* [annotation][string][in] */ + _In_z_ const wchar_t *pszName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintPipelinePropertyBagVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPrintPipelinePropertyBag * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPrintPipelinePropertyBag * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPrintPipelinePropertyBag * This); + + DECLSPEC_XFGVIRT(IPrintPipelinePropertyBag, AddProperty) + HRESULT ( STDMETHODCALLTYPE *AddProperty )( + IPrintPipelinePropertyBag * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *pszName, + /* [annotation][in] */ + _In_ const VARIANT *pVar); + + DECLSPEC_XFGVIRT(IPrintPipelinePropertyBag, GetProperty) + HRESULT ( STDMETHODCALLTYPE *GetProperty )( + IPrintPipelinePropertyBag * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *pszName, + /* [annotation][out] */ + _Out_ VARIANT *pVar); + + DECLSPEC_XFGVIRT(IPrintPipelinePropertyBag, DeleteProperty) + BOOL ( STDMETHODCALLTYPE *DeleteProperty )( + IPrintPipelinePropertyBag * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *pszName); + + END_INTERFACE + } IPrintPipelinePropertyBagVtbl; + + interface IPrintPipelinePropertyBag + { + CONST_VTBL struct IPrintPipelinePropertyBagVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintPipelinePropertyBag_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintPipelinePropertyBag_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintPipelinePropertyBag_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintPipelinePropertyBag_AddProperty(This,pszName,pVar) \ + ( (This)->lpVtbl -> AddProperty(This,pszName,pVar) ) + +#define IPrintPipelinePropertyBag_GetProperty(This,pszName,pVar) \ + ( (This)->lpVtbl -> GetProperty(This,pszName,pVar) ) + +#define IPrintPipelinePropertyBag_DeleteProperty(This,pszName) \ + ( (This)->lpVtbl -> DeleteProperty(This,pszName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintPipelinePropertyBag_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintPipelineProgressReport_INTERFACE_DEFINED__ +#define __IPrintPipelineProgressReport_INTERFACE_DEFINED__ + +/* interface IPrintPipelineProgressReport */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPrintPipelineProgressReport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("edc12c7c-ed40-4ea5-96a6-5e4397497a61") + IPrintPipelineProgressReport : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ReportProgress( + /* [annotation][in] */ + _In_ EXpsJobConsumption update) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintPipelineProgressReportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPrintPipelineProgressReport * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPrintPipelineProgressReport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPrintPipelineProgressReport * This); + + DECLSPEC_XFGVIRT(IPrintPipelineProgressReport, ReportProgress) + HRESULT ( STDMETHODCALLTYPE *ReportProgress )( + IPrintPipelineProgressReport * This, + /* [annotation][in] */ + _In_ EXpsJobConsumption update); + + END_INTERFACE + } IPrintPipelineProgressReportVtbl; + + interface IPrintPipelineProgressReport + { + CONST_VTBL struct IPrintPipelineProgressReportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintPipelineProgressReport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintPipelineProgressReport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintPipelineProgressReport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintPipelineProgressReport_ReportProgress(This,update) \ + ( (This)->lpVtbl -> ReportProgress(This,update) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintPipelineProgressReport_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintClassObjectFactory_INTERFACE_DEFINED__ +#define __IPrintClassObjectFactory_INTERFACE_DEFINED__ + +/* interface IPrintClassObjectFactory */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPrintClassObjectFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9af593dd-9b02-48a8-9bad-69ace423f88b") + IPrintClassObjectFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPrintClassObject( + /* [annotation][string][in] */ + _In_z_ const wchar_t *pszPrinterName, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppNewObject) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintClassObjectFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPrintClassObjectFactory * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPrintClassObjectFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPrintClassObjectFactory * This); + + DECLSPEC_XFGVIRT(IPrintClassObjectFactory, GetPrintClassObject) + HRESULT ( STDMETHODCALLTYPE *GetPrintClassObject )( + IPrintClassObjectFactory * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *pszPrinterName, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppNewObject); + + END_INTERFACE + } IPrintClassObjectFactoryVtbl; + + interface IPrintClassObjectFactory + { + CONST_VTBL struct IPrintClassObjectFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintClassObjectFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintClassObjectFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintClassObjectFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintClassObjectFactory_GetPrintClassObject(This,pszPrinterName,riid,ppNewObject) \ + ( (This)->lpVtbl -> GetPrintClassObject(This,pszPrinterName,riid,ppNewObject) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintClassObjectFactory_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintPipelineFilter_INTERFACE_DEFINED__ +#define __IPrintPipelineFilter_INTERFACE_DEFINED__ + +/* interface IPrintPipelineFilter */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPrintPipelineFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cdb62fc0-8bed-434e-86fb-a2cae55f19ea") + IPrintPipelineFilter : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeFilter( + /* [annotation][in] */ + _In_ IInterFilterCommunicator *pINegotiation, + /* [annotation][in] */ + _In_ IPrintPipelinePropertyBag *pIPropertyBag, + /* [annotation][in] */ + _In_ IPrintPipelineManagerControl *pIPipelineControl) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShutdownOperation( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE StartOperation( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintPipelineFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPrintPipelineFilter * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPrintPipelineFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPrintPipelineFilter * This); + + DECLSPEC_XFGVIRT(IPrintPipelineFilter, InitializeFilter) + HRESULT ( STDMETHODCALLTYPE *InitializeFilter )( + IPrintPipelineFilter * This, + /* [annotation][in] */ + _In_ IInterFilterCommunicator *pINegotiation, + /* [annotation][in] */ + _In_ IPrintPipelinePropertyBag *pIPropertyBag, + /* [annotation][in] */ + _In_ IPrintPipelineManagerControl *pIPipelineControl); + + DECLSPEC_XFGVIRT(IPrintPipelineFilter, ShutdownOperation) + HRESULT ( STDMETHODCALLTYPE *ShutdownOperation )( + IPrintPipelineFilter * This); + + DECLSPEC_XFGVIRT(IPrintPipelineFilter, StartOperation) + HRESULT ( STDMETHODCALLTYPE *StartOperation )( + IPrintPipelineFilter * This); + + END_INTERFACE + } IPrintPipelineFilterVtbl; + + interface IPrintPipelineFilter + { + CONST_VTBL struct IPrintPipelineFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintPipelineFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintPipelineFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintPipelineFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintPipelineFilter_InitializeFilter(This,pINegotiation,pIPropertyBag,pIPipelineControl) \ + ( (This)->lpVtbl -> InitializeFilter(This,pINegotiation,pIPropertyBag,pIPipelineControl) ) + +#define IPrintPipelineFilter_ShutdownOperation(This) \ + ( (This)->lpVtbl -> ShutdownOperation(This) ) + +#define IPrintPipelineFilter_StartOperation(This) \ + ( (This)->lpVtbl -> StartOperation(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintPipelineFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IXpsDocumentProvider_INTERFACE_DEFINED__ +#define __IXpsDocumentProvider_INTERFACE_DEFINED__ + +/* interface IXpsDocumentProvider */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IXpsDocumentProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b8cf8530-5562-47c4-ab67-b1f69ecf961e") + IXpsDocumentProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetXpsPart( + /* [annotation][out] */ + _Outptr_ IUnknown **ppIXpsPart) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IXpsDocumentProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IXpsDocumentProvider * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IXpsDocumentProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IXpsDocumentProvider * This); + + DECLSPEC_XFGVIRT(IXpsDocumentProvider, GetXpsPart) + HRESULT ( STDMETHODCALLTYPE *GetXpsPart )( + IXpsDocumentProvider * This, + /* [annotation][out] */ + _Outptr_ IUnknown **ppIXpsPart); + + END_INTERFACE + } IXpsDocumentProviderVtbl; + + interface IXpsDocumentProvider + { + CONST_VTBL struct IXpsDocumentProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IXpsDocumentProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IXpsDocumentProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IXpsDocumentProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IXpsDocumentProvider_GetXpsPart(This,ppIXpsPart) \ + ( (This)->lpVtbl -> GetXpsPart(This,ppIXpsPart) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IXpsDocumentProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IXpsDocumentConsumer_INTERFACE_DEFINED__ +#define __IXpsDocumentConsumer_INTERFACE_DEFINED__ + +/* interface IXpsDocumentConsumer */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IXpsDocumentConsumer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4368d8a2-4181-4a9f-b295-3d9a38bb9ba0") + IXpsDocumentConsumer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SendXpsUnknown( + /* [annotation][in] */ + _In_ IUnknown *pUnknown) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendXpsDocument( + /* [annotation][in] */ + _In_ IXpsDocument *pIXpsDocument) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendFixedDocumentSequence( + /* [annotation][in] */ + _In_ IFixedDocumentSequence *pIFixedDocumentSequence) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendFixedDocument( + /* [annotation][in] */ + _In_ IFixedDocument *pIFixedDocument) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendFixedPage( + /* [annotation][in] */ + _In_ IFixedPage *pIFixedPage) = 0; + + virtual HRESULT STDMETHODCALLTYPE CloseSender( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNewEmptyPart( + /* [annotation][string][in] */ + _In_z_ const wchar_t *uri, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppNewObject, + /* [annotation][out] */ + _Outptr_ IPrintWriteStream **ppWriteStream) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IXpsDocumentConsumerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IXpsDocumentConsumer * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IXpsDocumentConsumer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IXpsDocumentConsumer * This); + + DECLSPEC_XFGVIRT(IXpsDocumentConsumer, SendXpsUnknown) + HRESULT ( STDMETHODCALLTYPE *SendXpsUnknown )( + IXpsDocumentConsumer * This, + /* [annotation][in] */ + _In_ IUnknown *pUnknown); + + DECLSPEC_XFGVIRT(IXpsDocumentConsumer, SendXpsDocument) + HRESULT ( STDMETHODCALLTYPE *SendXpsDocument )( + IXpsDocumentConsumer * This, + /* [annotation][in] */ + _In_ IXpsDocument *pIXpsDocument); + + DECLSPEC_XFGVIRT(IXpsDocumentConsumer, SendFixedDocumentSequence) + HRESULT ( STDMETHODCALLTYPE *SendFixedDocumentSequence )( + IXpsDocumentConsumer * This, + /* [annotation][in] */ + _In_ IFixedDocumentSequence *pIFixedDocumentSequence); + + DECLSPEC_XFGVIRT(IXpsDocumentConsumer, SendFixedDocument) + HRESULT ( STDMETHODCALLTYPE *SendFixedDocument )( + IXpsDocumentConsumer * This, + /* [annotation][in] */ + _In_ IFixedDocument *pIFixedDocument); + + DECLSPEC_XFGVIRT(IXpsDocumentConsumer, SendFixedPage) + HRESULT ( STDMETHODCALLTYPE *SendFixedPage )( + IXpsDocumentConsumer * This, + /* [annotation][in] */ + _In_ IFixedPage *pIFixedPage); + + DECLSPEC_XFGVIRT(IXpsDocumentConsumer, CloseSender) + HRESULT ( STDMETHODCALLTYPE *CloseSender )( + IXpsDocumentConsumer * This); + + DECLSPEC_XFGVIRT(IXpsDocumentConsumer, GetNewEmptyPart) + HRESULT ( STDMETHODCALLTYPE *GetNewEmptyPart )( + IXpsDocumentConsumer * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *uri, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][iid_is][out] */ + _Outptr_ void **ppNewObject, + /* [annotation][out] */ + _Outptr_ IPrintWriteStream **ppWriteStream); + + END_INTERFACE + } IXpsDocumentConsumerVtbl; + + interface IXpsDocumentConsumer + { + CONST_VTBL struct IXpsDocumentConsumerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IXpsDocumentConsumer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IXpsDocumentConsumer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IXpsDocumentConsumer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IXpsDocumentConsumer_SendXpsUnknown(This,pUnknown) \ + ( (This)->lpVtbl -> SendXpsUnknown(This,pUnknown) ) + +#define IXpsDocumentConsumer_SendXpsDocument(This,pIXpsDocument) \ + ( (This)->lpVtbl -> SendXpsDocument(This,pIXpsDocument) ) + +#define IXpsDocumentConsumer_SendFixedDocumentSequence(This,pIFixedDocumentSequence) \ + ( (This)->lpVtbl -> SendFixedDocumentSequence(This,pIFixedDocumentSequence) ) + +#define IXpsDocumentConsumer_SendFixedDocument(This,pIFixedDocument) \ + ( (This)->lpVtbl -> SendFixedDocument(This,pIFixedDocument) ) + +#define IXpsDocumentConsumer_SendFixedPage(This,pIFixedPage) \ + ( (This)->lpVtbl -> SendFixedPage(This,pIFixedPage) ) + +#define IXpsDocumentConsumer_CloseSender(This) \ + ( (This)->lpVtbl -> CloseSender(This) ) + +#define IXpsDocumentConsumer_GetNewEmptyPart(This,uri,riid,ppNewObject,ppWriteStream) \ + ( (This)->lpVtbl -> GetNewEmptyPart(This,uri,riid,ppNewObject,ppWriteStream) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IXpsDocumentConsumer_INTERFACE_DEFINED__ */ + + +#ifndef __IXpsDocument_INTERFACE_DEFINED__ +#define __IXpsDocument_INTERFACE_DEFINED__ + +/* interface IXpsDocument */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IXpsDocument; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e8d907db-62a9-4a95-abe7-e01763dd30f8") + IXpsDocument : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetThumbnail( + /* [annotation][out] */ + _Outptr_ IPartThumbnail **ppThumbnail) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetThumbnail( + /* [annotation][in] */ + _In_ IPartThumbnail *pThumbnail) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IXpsDocumentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IXpsDocument * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IXpsDocument * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IXpsDocument * This); + + DECLSPEC_XFGVIRT(IXpsDocument, GetThumbnail) + HRESULT ( STDMETHODCALLTYPE *GetThumbnail )( + IXpsDocument * This, + /* [annotation][out] */ + _Outptr_ IPartThumbnail **ppThumbnail); + + DECLSPEC_XFGVIRT(IXpsDocument, SetThumbnail) + HRESULT ( STDMETHODCALLTYPE *SetThumbnail )( + IXpsDocument * This, + /* [annotation][in] */ + _In_ IPartThumbnail *pThumbnail); + + END_INTERFACE + } IXpsDocumentVtbl; + + interface IXpsDocument + { + CONST_VTBL struct IXpsDocumentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IXpsDocument_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IXpsDocument_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IXpsDocument_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IXpsDocument_GetThumbnail(This,ppThumbnail) \ + ( (This)->lpVtbl -> GetThumbnail(This,ppThumbnail) ) + +#define IXpsDocument_SetThumbnail(This,pThumbnail) \ + ( (This)->lpVtbl -> SetThumbnail(This,pThumbnail) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IXpsDocument_INTERFACE_DEFINED__ */ + + +#ifndef __IFixedDocumentSequence_INTERFACE_DEFINED__ +#define __IFixedDocumentSequence_INTERFACE_DEFINED__ + +/* interface IFixedDocumentSequence */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IFixedDocumentSequence; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8028d181-2c32-4249-8493-1bfb22045574") + IFixedDocumentSequence : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetUri( + /* [annotation][out] */ + _Out_ BSTR *uri) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrintTicket( + /* [annotation][out] */ + _Outptr_ IPartPrintTicket **ppPrintTicket) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrintTicket( + /* [annotation][in] */ + _In_ IPartPrintTicket *pPrintTicket) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFixedDocumentSequenceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IFixedDocumentSequence * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IFixedDocumentSequence * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IFixedDocumentSequence * This); + + DECLSPEC_XFGVIRT(IFixedDocumentSequence, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IFixedDocumentSequence * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IFixedDocumentSequence, GetPrintTicket) + HRESULT ( STDMETHODCALLTYPE *GetPrintTicket )( + IFixedDocumentSequence * This, + /* [annotation][out] */ + _Outptr_ IPartPrintTicket **ppPrintTicket); + + DECLSPEC_XFGVIRT(IFixedDocumentSequence, SetPrintTicket) + HRESULT ( STDMETHODCALLTYPE *SetPrintTicket )( + IFixedDocumentSequence * This, + /* [annotation][in] */ + _In_ IPartPrintTicket *pPrintTicket); + + END_INTERFACE + } IFixedDocumentSequenceVtbl; + + interface IFixedDocumentSequence + { + CONST_VTBL struct IFixedDocumentSequenceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFixedDocumentSequence_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFixedDocumentSequence_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFixedDocumentSequence_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFixedDocumentSequence_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IFixedDocumentSequence_GetPrintTicket(This,ppPrintTicket) \ + ( (This)->lpVtbl -> GetPrintTicket(This,ppPrintTicket) ) + +#define IFixedDocumentSequence_SetPrintTicket(This,pPrintTicket) \ + ( (This)->lpVtbl -> SetPrintTicket(This,pPrintTicket) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFixedDocumentSequence_INTERFACE_DEFINED__ */ + + +#ifndef __IFixedDocument_INTERFACE_DEFINED__ +#define __IFixedDocument_INTERFACE_DEFINED__ + +/* interface IFixedDocument */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IFixedDocument; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f222ca9f-9968-4db9-81bd-abaebf15f93f") + IFixedDocument : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetUri( + /* [annotation][out] */ + _Out_ BSTR *uri) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrintTicket( + /* [annotation][out] */ + _Outptr_ IPartPrintTicket **ppPrintTicket) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrintTicket( + /* [annotation][in] */ + _In_ IPartPrintTicket *pPrintTicket) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFixedDocumentVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IFixedDocument * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IFixedDocument * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IFixedDocument * This); + + DECLSPEC_XFGVIRT(IFixedDocument, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IFixedDocument * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IFixedDocument, GetPrintTicket) + HRESULT ( STDMETHODCALLTYPE *GetPrintTicket )( + IFixedDocument * This, + /* [annotation][out] */ + _Outptr_ IPartPrintTicket **ppPrintTicket); + + DECLSPEC_XFGVIRT(IFixedDocument, SetPrintTicket) + HRESULT ( STDMETHODCALLTYPE *SetPrintTicket )( + IFixedDocument * This, + /* [annotation][in] */ + _In_ IPartPrintTicket *pPrintTicket); + + END_INTERFACE + } IFixedDocumentVtbl; + + interface IFixedDocument + { + CONST_VTBL struct IFixedDocumentVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFixedDocument_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFixedDocument_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFixedDocument_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFixedDocument_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IFixedDocument_GetPrintTicket(This,ppPrintTicket) \ + ( (This)->lpVtbl -> GetPrintTicket(This,ppPrintTicket) ) + +#define IFixedDocument_SetPrintTicket(This,pPrintTicket) \ + ( (This)->lpVtbl -> SetPrintTicket(This,pPrintTicket) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFixedDocument_INTERFACE_DEFINED__ */ + + +#ifndef __IPartBase_INTERFACE_DEFINED__ +#define __IPartBase_INTERFACE_DEFINED__ + +/* interface IPartBase */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPartBase; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("36d51e28-369e-43ba-a666-9540c62c3f58") + IPartBase : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetUri( + /* [annotation][out] */ + _Out_ BSTR *uri) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStream( + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPartCompression( + /* [annotation][out] */ + _Out_ EXpsCompressionOptions *pCompression) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPartCompression( + /* [annotation][in] */ + _In_ EXpsCompressionOptions compression) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPartBaseVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPartBase * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPartBase * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPartBase * This); + + DECLSPEC_XFGVIRT(IPartBase, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IPartBase * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IPartBase, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + IPartBase * This, + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream); + + DECLSPEC_XFGVIRT(IPartBase, GetPartCompression) + HRESULT ( STDMETHODCALLTYPE *GetPartCompression )( + IPartBase * This, + /* [annotation][out] */ + _Out_ EXpsCompressionOptions *pCompression); + + DECLSPEC_XFGVIRT(IPartBase, SetPartCompression) + HRESULT ( STDMETHODCALLTYPE *SetPartCompression )( + IPartBase * This, + /* [annotation][in] */ + _In_ EXpsCompressionOptions compression); + + END_INTERFACE + } IPartBaseVtbl; + + interface IPartBase + { + CONST_VTBL struct IPartBaseVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPartBase_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPartBase_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPartBase_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPartBase_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IPartBase_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IPartBase_GetPartCompression(This,pCompression) \ + ( (This)->lpVtbl -> GetPartCompression(This,pCompression) ) + +#define IPartBase_SetPartCompression(This,compression) \ + ( (This)->lpVtbl -> SetPartCompression(This,compression) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPartBase_INTERFACE_DEFINED__ */ + + +#ifndef __IFixedPage_INTERFACE_DEFINED__ +#define __IFixedPage_INTERFACE_DEFINED__ + +/* interface IFixedPage */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IFixedPage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3d9f6448-7e95-4cb5-94fb-0180c2883a57") + IFixedPage : public IPartBase + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPrintTicket( + /* [annotation][out] */ + _Outptr_ IPartPrintTicket **ppPrintTicket) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPagePart( + /* [annotation][string][in] */ + _In_z_ const wchar_t *uri, + /* [annotation][out] */ + _Outptr_ IUnknown **ppUnk) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetWriteStream( + /* [annotation][out] */ + _Outptr_ IPrintWriteStream **ppWriteStream) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPrintTicket( + /* [annotation][in] */ + _In_ IPartPrintTicket *ppPrintTicket) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetPagePart( + /* [annotation][in] */ + _In_ IUnknown *pUnk) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteResource( + /* [annotation][string][in] */ + _In_z_ const wchar_t *uri) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetXpsPartIterator( + /* [annotation][out] */ + _Outptr_ IXpsPartIterator **pXpsPartIt) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFixedPageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IFixedPage * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IFixedPage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IFixedPage * This); + + DECLSPEC_XFGVIRT(IPartBase, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IFixedPage * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IPartBase, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + IFixedPage * This, + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream); + + DECLSPEC_XFGVIRT(IPartBase, GetPartCompression) + HRESULT ( STDMETHODCALLTYPE *GetPartCompression )( + IFixedPage * This, + /* [annotation][out] */ + _Out_ EXpsCompressionOptions *pCompression); + + DECLSPEC_XFGVIRT(IPartBase, SetPartCompression) + HRESULT ( STDMETHODCALLTYPE *SetPartCompression )( + IFixedPage * This, + /* [annotation][in] */ + _In_ EXpsCompressionOptions compression); + + DECLSPEC_XFGVIRT(IFixedPage, GetPrintTicket) + HRESULT ( STDMETHODCALLTYPE *GetPrintTicket )( + IFixedPage * This, + /* [annotation][out] */ + _Outptr_ IPartPrintTicket **ppPrintTicket); + + DECLSPEC_XFGVIRT(IFixedPage, GetPagePart) + HRESULT ( STDMETHODCALLTYPE *GetPagePart )( + IFixedPage * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *uri, + /* [annotation][out] */ + _Outptr_ IUnknown **ppUnk); + + DECLSPEC_XFGVIRT(IFixedPage, GetWriteStream) + HRESULT ( STDMETHODCALLTYPE *GetWriteStream )( + IFixedPage * This, + /* [annotation][out] */ + _Outptr_ IPrintWriteStream **ppWriteStream); + + DECLSPEC_XFGVIRT(IFixedPage, SetPrintTicket) + HRESULT ( STDMETHODCALLTYPE *SetPrintTicket )( + IFixedPage * This, + /* [annotation][in] */ + _In_ IPartPrintTicket *ppPrintTicket); + + DECLSPEC_XFGVIRT(IFixedPage, SetPagePart) + HRESULT ( STDMETHODCALLTYPE *SetPagePart )( + IFixedPage * This, + /* [annotation][in] */ + _In_ IUnknown *pUnk); + + DECLSPEC_XFGVIRT(IFixedPage, DeleteResource) + HRESULT ( STDMETHODCALLTYPE *DeleteResource )( + IFixedPage * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *uri); + + DECLSPEC_XFGVIRT(IFixedPage, GetXpsPartIterator) + HRESULT ( STDMETHODCALLTYPE *GetXpsPartIterator )( + IFixedPage * This, + /* [annotation][out] */ + _Outptr_ IXpsPartIterator **pXpsPartIt); + + END_INTERFACE + } IFixedPageVtbl; + + interface IFixedPage + { + CONST_VTBL struct IFixedPageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFixedPage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFixedPage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFixedPage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFixedPage_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IFixedPage_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IFixedPage_GetPartCompression(This,pCompression) \ + ( (This)->lpVtbl -> GetPartCompression(This,pCompression) ) + +#define IFixedPage_SetPartCompression(This,compression) \ + ( (This)->lpVtbl -> SetPartCompression(This,compression) ) + + +#define IFixedPage_GetPrintTicket(This,ppPrintTicket) \ + ( (This)->lpVtbl -> GetPrintTicket(This,ppPrintTicket) ) + +#define IFixedPage_GetPagePart(This,uri,ppUnk) \ + ( (This)->lpVtbl -> GetPagePart(This,uri,ppUnk) ) + +#define IFixedPage_GetWriteStream(This,ppWriteStream) \ + ( (This)->lpVtbl -> GetWriteStream(This,ppWriteStream) ) + +#define IFixedPage_SetPrintTicket(This,ppPrintTicket) \ + ( (This)->lpVtbl -> SetPrintTicket(This,ppPrintTicket) ) + +#define IFixedPage_SetPagePart(This,pUnk) \ + ( (This)->lpVtbl -> SetPagePart(This,pUnk) ) + +#define IFixedPage_DeleteResource(This,uri) \ + ( (This)->lpVtbl -> DeleteResource(This,uri) ) + +#define IFixedPage_GetXpsPartIterator(This,pXpsPartIt) \ + ( (This)->lpVtbl -> GetXpsPartIterator(This,pXpsPartIt) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFixedPage_INTERFACE_DEFINED__ */ + + +#ifndef __IPartImage_INTERFACE_DEFINED__ +#define __IPartImage_INTERFACE_DEFINED__ + +/* interface IPartImage */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPartImage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("725f2e3c-401a-4705-9de0-fe6f1353b87f") + IPartImage : public IPartBase + { + public: + virtual HRESULT STDMETHODCALLTYPE GetImageProperties( + /* [annotation][out] */ + _Out_ BSTR *pContentType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetImageContent( + /* [annotation][string][in] */ + _In_z_ const wchar_t *pContentType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPartImageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPartImage * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPartImage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPartImage * This); + + DECLSPEC_XFGVIRT(IPartBase, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IPartImage * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IPartBase, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + IPartImage * This, + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream); + + DECLSPEC_XFGVIRT(IPartBase, GetPartCompression) + HRESULT ( STDMETHODCALLTYPE *GetPartCompression )( + IPartImage * This, + /* [annotation][out] */ + _Out_ EXpsCompressionOptions *pCompression); + + DECLSPEC_XFGVIRT(IPartBase, SetPartCompression) + HRESULT ( STDMETHODCALLTYPE *SetPartCompression )( + IPartImage * This, + /* [annotation][in] */ + _In_ EXpsCompressionOptions compression); + + DECLSPEC_XFGVIRT(IPartImage, GetImageProperties) + HRESULT ( STDMETHODCALLTYPE *GetImageProperties )( + IPartImage * This, + /* [annotation][out] */ + _Out_ BSTR *pContentType); + + DECLSPEC_XFGVIRT(IPartImage, SetImageContent) + HRESULT ( STDMETHODCALLTYPE *SetImageContent )( + IPartImage * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *pContentType); + + END_INTERFACE + } IPartImageVtbl; + + interface IPartImage + { + CONST_VTBL struct IPartImageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPartImage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPartImage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPartImage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPartImage_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IPartImage_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IPartImage_GetPartCompression(This,pCompression) \ + ( (This)->lpVtbl -> GetPartCompression(This,pCompression) ) + +#define IPartImage_SetPartCompression(This,compression) \ + ( (This)->lpVtbl -> SetPartCompression(This,compression) ) + + +#define IPartImage_GetImageProperties(This,pContentType) \ + ( (This)->lpVtbl -> GetImageProperties(This,pContentType) ) + +#define IPartImage_SetImageContent(This,pContentType) \ + ( (This)->lpVtbl -> SetImageContent(This,pContentType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPartImage_INTERFACE_DEFINED__ */ + + +#ifndef __IPartFont_INTERFACE_DEFINED__ +#define __IPartFont_INTERFACE_DEFINED__ + +/* interface IPartFont */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPartFont; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e07fe0ab-1124-43d0-a865-e8ffb6a3ea82") + IPartFont : public IPartBase + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFontProperties( + /* [annotation][out] */ + _Out_ BSTR *pContentType, + /* [annotation][out] */ + _Out_ EXpsFontOptions *pFontOptions) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFontContent( + /* [annotation][string][in] */ + _In_z_ const wchar_t *pContentType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFontOptions( + /* [annotation][in] */ + _In_ EXpsFontOptions options) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPartFontVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPartFont * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPartFont * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPartFont * This); + + DECLSPEC_XFGVIRT(IPartBase, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IPartFont * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IPartBase, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + IPartFont * This, + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream); + + DECLSPEC_XFGVIRT(IPartBase, GetPartCompression) + HRESULT ( STDMETHODCALLTYPE *GetPartCompression )( + IPartFont * This, + /* [annotation][out] */ + _Out_ EXpsCompressionOptions *pCompression); + + DECLSPEC_XFGVIRT(IPartBase, SetPartCompression) + HRESULT ( STDMETHODCALLTYPE *SetPartCompression )( + IPartFont * This, + /* [annotation][in] */ + _In_ EXpsCompressionOptions compression); + + DECLSPEC_XFGVIRT(IPartFont, GetFontProperties) + HRESULT ( STDMETHODCALLTYPE *GetFontProperties )( + IPartFont * This, + /* [annotation][out] */ + _Out_ BSTR *pContentType, + /* [annotation][out] */ + _Out_ EXpsFontOptions *pFontOptions); + + DECLSPEC_XFGVIRT(IPartFont, SetFontContent) + HRESULT ( STDMETHODCALLTYPE *SetFontContent )( + IPartFont * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *pContentType); + + DECLSPEC_XFGVIRT(IPartFont, SetFontOptions) + HRESULT ( STDMETHODCALLTYPE *SetFontOptions )( + IPartFont * This, + /* [annotation][in] */ + _In_ EXpsFontOptions options); + + END_INTERFACE + } IPartFontVtbl; + + interface IPartFont + { + CONST_VTBL struct IPartFontVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPartFont_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPartFont_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPartFont_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPartFont_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IPartFont_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IPartFont_GetPartCompression(This,pCompression) \ + ( (This)->lpVtbl -> GetPartCompression(This,pCompression) ) + +#define IPartFont_SetPartCompression(This,compression) \ + ( (This)->lpVtbl -> SetPartCompression(This,compression) ) + + +#define IPartFont_GetFontProperties(This,pContentType,pFontOptions) \ + ( (This)->lpVtbl -> GetFontProperties(This,pContentType,pFontOptions) ) + +#define IPartFont_SetFontContent(This,pContentType) \ + ( (This)->lpVtbl -> SetFontContent(This,pContentType) ) + +#define IPartFont_SetFontOptions(This,options) \ + ( (This)->lpVtbl -> SetFontOptions(This,options) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPartFont_INTERFACE_DEFINED__ */ + + +#ifndef __IPartFont2_INTERFACE_DEFINED__ +#define __IPartFont2_INTERFACE_DEFINED__ + +/* interface IPartFont2 */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPartFont2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("511e025f-d6cb-43be-bf65-63fe88515a39") + IPartFont2 : public IPartFont + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFontRestriction( + /* [annotation][out] */ + _Out_ EXpsFontRestriction *pRestriction) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPartFont2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPartFont2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPartFont2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPartFont2 * This); + + DECLSPEC_XFGVIRT(IPartBase, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IPartFont2 * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IPartBase, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + IPartFont2 * This, + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream); + + DECLSPEC_XFGVIRT(IPartBase, GetPartCompression) + HRESULT ( STDMETHODCALLTYPE *GetPartCompression )( + IPartFont2 * This, + /* [annotation][out] */ + _Out_ EXpsCompressionOptions *pCompression); + + DECLSPEC_XFGVIRT(IPartBase, SetPartCompression) + HRESULT ( STDMETHODCALLTYPE *SetPartCompression )( + IPartFont2 * This, + /* [annotation][in] */ + _In_ EXpsCompressionOptions compression); + + DECLSPEC_XFGVIRT(IPartFont, GetFontProperties) + HRESULT ( STDMETHODCALLTYPE *GetFontProperties )( + IPartFont2 * This, + /* [annotation][out] */ + _Out_ BSTR *pContentType, + /* [annotation][out] */ + _Out_ EXpsFontOptions *pFontOptions); + + DECLSPEC_XFGVIRT(IPartFont, SetFontContent) + HRESULT ( STDMETHODCALLTYPE *SetFontContent )( + IPartFont2 * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *pContentType); + + DECLSPEC_XFGVIRT(IPartFont, SetFontOptions) + HRESULT ( STDMETHODCALLTYPE *SetFontOptions )( + IPartFont2 * This, + /* [annotation][in] */ + _In_ EXpsFontOptions options); + + DECLSPEC_XFGVIRT(IPartFont2, GetFontRestriction) + HRESULT ( STDMETHODCALLTYPE *GetFontRestriction )( + IPartFont2 * This, + /* [annotation][out] */ + _Out_ EXpsFontRestriction *pRestriction); + + END_INTERFACE + } IPartFont2Vtbl; + + interface IPartFont2 + { + CONST_VTBL struct IPartFont2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPartFont2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPartFont2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPartFont2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPartFont2_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IPartFont2_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IPartFont2_GetPartCompression(This,pCompression) \ + ( (This)->lpVtbl -> GetPartCompression(This,pCompression) ) + +#define IPartFont2_SetPartCompression(This,compression) \ + ( (This)->lpVtbl -> SetPartCompression(This,compression) ) + + +#define IPartFont2_GetFontProperties(This,pContentType,pFontOptions) \ + ( (This)->lpVtbl -> GetFontProperties(This,pContentType,pFontOptions) ) + +#define IPartFont2_SetFontContent(This,pContentType) \ + ( (This)->lpVtbl -> SetFontContent(This,pContentType) ) + +#define IPartFont2_SetFontOptions(This,options) \ + ( (This)->lpVtbl -> SetFontOptions(This,options) ) + + +#define IPartFont2_GetFontRestriction(This,pRestriction) \ + ( (This)->lpVtbl -> GetFontRestriction(This,pRestriction) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPartFont2_INTERFACE_DEFINED__ */ + + +#ifndef __IPartThumbnail_INTERFACE_DEFINED__ +#define __IPartThumbnail_INTERFACE_DEFINED__ + +/* interface IPartThumbnail */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPartThumbnail; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("027ed1c9-ba39-4cc5-aa55-7ec3a0de171a") + IPartThumbnail : public IPartBase + { + public: + virtual HRESULT STDMETHODCALLTYPE GetThumbnailProperties( + /* [annotation][out] */ + _Out_ BSTR *pContentType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetThumbnailContent( + /* [annotation][string][in] */ + _In_z_ const wchar_t *pContentType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPartThumbnailVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPartThumbnail * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPartThumbnail * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPartThumbnail * This); + + DECLSPEC_XFGVIRT(IPartBase, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IPartThumbnail * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IPartBase, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + IPartThumbnail * This, + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream); + + DECLSPEC_XFGVIRT(IPartBase, GetPartCompression) + HRESULT ( STDMETHODCALLTYPE *GetPartCompression )( + IPartThumbnail * This, + /* [annotation][out] */ + _Out_ EXpsCompressionOptions *pCompression); + + DECLSPEC_XFGVIRT(IPartBase, SetPartCompression) + HRESULT ( STDMETHODCALLTYPE *SetPartCompression )( + IPartThumbnail * This, + /* [annotation][in] */ + _In_ EXpsCompressionOptions compression); + + DECLSPEC_XFGVIRT(IPartThumbnail, GetThumbnailProperties) + HRESULT ( STDMETHODCALLTYPE *GetThumbnailProperties )( + IPartThumbnail * This, + /* [annotation][out] */ + _Out_ BSTR *pContentType); + + DECLSPEC_XFGVIRT(IPartThumbnail, SetThumbnailContent) + HRESULT ( STDMETHODCALLTYPE *SetThumbnailContent )( + IPartThumbnail * This, + /* [annotation][string][in] */ + _In_z_ const wchar_t *pContentType); + + END_INTERFACE + } IPartThumbnailVtbl; + + interface IPartThumbnail + { + CONST_VTBL struct IPartThumbnailVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPartThumbnail_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPartThumbnail_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPartThumbnail_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPartThumbnail_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IPartThumbnail_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IPartThumbnail_GetPartCompression(This,pCompression) \ + ( (This)->lpVtbl -> GetPartCompression(This,pCompression) ) + +#define IPartThumbnail_SetPartCompression(This,compression) \ + ( (This)->lpVtbl -> SetPartCompression(This,compression) ) + + +#define IPartThumbnail_GetThumbnailProperties(This,pContentType) \ + ( (This)->lpVtbl -> GetThumbnailProperties(This,pContentType) ) + +#define IPartThumbnail_SetThumbnailContent(This,pContentType) \ + ( (This)->lpVtbl -> SetThumbnailContent(This,pContentType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPartThumbnail_INTERFACE_DEFINED__ */ + + +#ifndef __IPartPrintTicket_INTERFACE_DEFINED__ +#define __IPartPrintTicket_INTERFACE_DEFINED__ + +/* interface IPartPrintTicket */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPartPrintTicket; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4a0f50f6-f9a2-41f0-99e7-5ae955be8e9e") + IPartPrintTicket : public IPartBase + { + public: + }; + + +#else /* C style interface */ + + typedef struct IPartPrintTicketVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPartPrintTicket * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPartPrintTicket * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPartPrintTicket * This); + + DECLSPEC_XFGVIRT(IPartBase, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IPartPrintTicket * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IPartBase, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + IPartPrintTicket * This, + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream); + + DECLSPEC_XFGVIRT(IPartBase, GetPartCompression) + HRESULT ( STDMETHODCALLTYPE *GetPartCompression )( + IPartPrintTicket * This, + /* [annotation][out] */ + _Out_ EXpsCompressionOptions *pCompression); + + DECLSPEC_XFGVIRT(IPartBase, SetPartCompression) + HRESULT ( STDMETHODCALLTYPE *SetPartCompression )( + IPartPrintTicket * This, + /* [annotation][in] */ + _In_ EXpsCompressionOptions compression); + + END_INTERFACE + } IPartPrintTicketVtbl; + + interface IPartPrintTicket + { + CONST_VTBL struct IPartPrintTicketVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPartPrintTicket_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPartPrintTicket_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPartPrintTicket_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPartPrintTicket_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IPartPrintTicket_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IPartPrintTicket_GetPartCompression(This,pCompression) \ + ( (This)->lpVtbl -> GetPartCompression(This,pCompression) ) + +#define IPartPrintTicket_SetPartCompression(This,compression) \ + ( (This)->lpVtbl -> SetPartCompression(This,compression) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPartPrintTicket_INTERFACE_DEFINED__ */ + + +#ifndef __IPartColorProfile_INTERFACE_DEFINED__ +#define __IPartColorProfile_INTERFACE_DEFINED__ + +/* interface IPartColorProfile */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPartColorProfile; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("63cca95b-7d18-4762-b15e-98658693d24a") + IPartColorProfile : public IPartBase + { + public: + }; + + +#else /* C style interface */ + + typedef struct IPartColorProfileVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPartColorProfile * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPartColorProfile * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPartColorProfile * This); + + DECLSPEC_XFGVIRT(IPartBase, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IPartColorProfile * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IPartBase, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + IPartColorProfile * This, + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream); + + DECLSPEC_XFGVIRT(IPartBase, GetPartCompression) + HRESULT ( STDMETHODCALLTYPE *GetPartCompression )( + IPartColorProfile * This, + /* [annotation][out] */ + _Out_ EXpsCompressionOptions *pCompression); + + DECLSPEC_XFGVIRT(IPartBase, SetPartCompression) + HRESULT ( STDMETHODCALLTYPE *SetPartCompression )( + IPartColorProfile * This, + /* [annotation][in] */ + _In_ EXpsCompressionOptions compression); + + END_INTERFACE + } IPartColorProfileVtbl; + + interface IPartColorProfile + { + CONST_VTBL struct IPartColorProfileVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPartColorProfile_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPartColorProfile_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPartColorProfile_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPartColorProfile_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IPartColorProfile_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IPartColorProfile_GetPartCompression(This,pCompression) \ + ( (This)->lpVtbl -> GetPartCompression(This,pCompression) ) + +#define IPartColorProfile_SetPartCompression(This,compression) \ + ( (This)->lpVtbl -> SetPartCompression(This,compression) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPartColorProfile_INTERFACE_DEFINED__ */ + + +#ifndef __IPartResourceDictionary_INTERFACE_DEFINED__ +#define __IPartResourceDictionary_INTERFACE_DEFINED__ + +/* interface IPartResourceDictionary */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPartResourceDictionary; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("16cfce6d-e744-4fb3-b474-f1d54f024a01") + IPartResourceDictionary : public IPartBase + { + public: + }; + + +#else /* C style interface */ + + typedef struct IPartResourceDictionaryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPartResourceDictionary * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPartResourceDictionary * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPartResourceDictionary * This); + + DECLSPEC_XFGVIRT(IPartBase, GetUri) + HRESULT ( STDMETHODCALLTYPE *GetUri )( + IPartResourceDictionary * This, + /* [annotation][out] */ + _Out_ BSTR *uri); + + DECLSPEC_XFGVIRT(IPartBase, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + IPartResourceDictionary * This, + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream); + + DECLSPEC_XFGVIRT(IPartBase, GetPartCompression) + HRESULT ( STDMETHODCALLTYPE *GetPartCompression )( + IPartResourceDictionary * This, + /* [annotation][out] */ + _Out_ EXpsCompressionOptions *pCompression); + + DECLSPEC_XFGVIRT(IPartBase, SetPartCompression) + HRESULT ( STDMETHODCALLTYPE *SetPartCompression )( + IPartResourceDictionary * This, + /* [annotation][in] */ + _In_ EXpsCompressionOptions compression); + + END_INTERFACE + } IPartResourceDictionaryVtbl; + + interface IPartResourceDictionary + { + CONST_VTBL struct IPartResourceDictionaryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPartResourceDictionary_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPartResourceDictionary_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPartResourceDictionary_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPartResourceDictionary_GetUri(This,uri) \ + ( (This)->lpVtbl -> GetUri(This,uri) ) + +#define IPartResourceDictionary_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#define IPartResourceDictionary_GetPartCompression(This,pCompression) \ + ( (This)->lpVtbl -> GetPartCompression(This,pCompression) ) + +#define IPartResourceDictionary_SetPartCompression(This,compression) \ + ( (This)->lpVtbl -> SetPartCompression(This,compression) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPartResourceDictionary_INTERFACE_DEFINED__ */ + + +#ifndef __IXpsPartIterator_INTERFACE_DEFINED__ +#define __IXpsPartIterator_INTERFACE_DEFINED__ + +/* interface IXpsPartIterator */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IXpsPartIterator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0021d3cd-af6f-42ab-9999-14bc82a62d2e") + IXpsPartIterator : public IUnknown + { + public: + virtual void STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Current( + /* [annotation][out] */ + _Out_ BSTR *pUri, + /* [annotation][out] */ + _Outptr_ IUnknown **ppXpsPart) = 0; + + virtual BOOL STDMETHODCALLTYPE IsDone( void) = 0; + + virtual void STDMETHODCALLTYPE Next( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IXpsPartIteratorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IXpsPartIterator * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IXpsPartIterator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IXpsPartIterator * This); + + DECLSPEC_XFGVIRT(IXpsPartIterator, Reset) + void ( STDMETHODCALLTYPE *Reset )( + IXpsPartIterator * This); + + DECLSPEC_XFGVIRT(IXpsPartIterator, Current) + HRESULT ( STDMETHODCALLTYPE *Current )( + IXpsPartIterator * This, + /* [annotation][out] */ + _Out_ BSTR *pUri, + /* [annotation][out] */ + _Outptr_ IUnknown **ppXpsPart); + + DECLSPEC_XFGVIRT(IXpsPartIterator, IsDone) + BOOL ( STDMETHODCALLTYPE *IsDone )( + IXpsPartIterator * This); + + DECLSPEC_XFGVIRT(IXpsPartIterator, Next) + void ( STDMETHODCALLTYPE *Next )( + IXpsPartIterator * This); + + END_INTERFACE + } IXpsPartIteratorVtbl; + + interface IXpsPartIterator + { + CONST_VTBL struct IXpsPartIteratorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IXpsPartIterator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IXpsPartIterator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IXpsPartIterator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IXpsPartIterator_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IXpsPartIterator_Current(This,pUri,ppXpsPart) \ + ( (This)->lpVtbl -> Current(This,pUri,ppXpsPart) ) + +#define IXpsPartIterator_IsDone(This) \ + ( (This)->lpVtbl -> IsDone(This) ) + +#define IXpsPartIterator_Next(This) \ + ( (This)->lpVtbl -> Next(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IXpsPartIterator_INTERFACE_DEFINED__ */ + + +#ifndef __IPrintReadStreamFactory_INTERFACE_DEFINED__ +#define __IPrintReadStreamFactory_INTERFACE_DEFINED__ + +/* interface IPrintReadStreamFactory */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPrintReadStreamFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("acb971e3-df8d-4fc2-bee6-0609d15f3cf9") + IPrintReadStreamFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStream( + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPrintReadStreamFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPrintReadStreamFactory * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPrintReadStreamFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPrintReadStreamFactory * This); + + DECLSPEC_XFGVIRT(IPrintReadStreamFactory, GetStream) + HRESULT ( STDMETHODCALLTYPE *GetStream )( + IPrintReadStreamFactory * This, + /* [annotation][out] */ + _Outptr_ IPrintReadStream **ppStream); + + END_INTERFACE + } IPrintReadStreamFactoryVtbl; + + interface IPrintReadStreamFactory + { + CONST_VTBL struct IPrintReadStreamFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPrintReadStreamFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPrintReadStreamFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPrintReadStreamFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPrintReadStreamFactory_GetStream(This,ppStream) \ + ( (This)->lpVtbl -> GetStream(This,ppStream) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPrintReadStreamFactory_INTERFACE_DEFINED__ */ + + +#ifndef __IPartDiscardControl_INTERFACE_DEFINED__ +#define __IPartDiscardControl_INTERFACE_DEFINED__ + +/* interface IPartDiscardControl */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IPartDiscardControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cc350c00-095b-42a5-bf0f-c8780edadb3c") + IPartDiscardControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDiscardProperties( + /* [annotation][out] */ + _Out_ BSTR *uriSentinelPage, + /* [annotation][out] */ + _Out_ BSTR *uriPartToDiscard) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPartDiscardControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPartDiscardControl * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPartDiscardControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPartDiscardControl * This); + + DECLSPEC_XFGVIRT(IPartDiscardControl, GetDiscardProperties) + HRESULT ( STDMETHODCALLTYPE *GetDiscardProperties )( + IPartDiscardControl * This, + /* [annotation][out] */ + _Out_ BSTR *uriSentinelPage, + /* [annotation][out] */ + _Out_ BSTR *uriPartToDiscard); + + END_INTERFACE + } IPartDiscardControlVtbl; + + interface IPartDiscardControl + { + CONST_VTBL struct IPartDiscardControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPartDiscardControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPartDiscardControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPartDiscardControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPartDiscardControl_GetDiscardProperties(This,uriSentinelPage,uriPartToDiscard) \ + ( (This)->lpVtbl -> GetDiscardProperties(This,uriSentinelPage,uriPartToDiscard) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPartDiscardControl_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_filterpipeline_0000_0026 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_filterpipeline_0000_0026_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_filterpipeline_0000_0026_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/filterpipelineutil.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/filterpipelineutil.h new file mode 100644 index 0000000000000000000000000000000000000000..6e97b6a187521c7c0e2e4042a119def40d02aa9a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/filterpipelineutil.h @@ -0,0 +1,303 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- + +#ifndef _PRINT_FILTER_UTIL_813b22ee_62f7_4200_ +#define _PRINT_FILTER_UTIL_813b22ee_62f7_4200_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if defined(__cplusplus) + +// +// print filter pipeline +// +namespace pfp +{ + +// +// Helpful when you want to use a print read interface with XML SAX +// which needs an ISequentialStream +// +class PrintReadStreamToSeqStream : public ISequentialStream +{ +public: + + PrintReadStreamToSeqStream( + _In_ IPrintReadStream *pReadStream + ) : m_cRef(1), + m_pStream(pReadStream), + m_bEof(FALSE) + { + m_pStream->AddRef(); + } + + ~PrintReadStreamToSeqStream() + { + m_pStream->Release(); + } + + STDMETHODIMP_(ULONG) + AddRef( + VOID + ) + { + return InterlockedIncrement(&m_cRef); + } + + STDMETHODIMP_(ULONG) + Release( + VOID + ) + { + ULONG cRefCount = InterlockedDecrement(&m_cRef); + + if (cRefCount) + { + return cRefCount; + } + + delete this; + + return 0; + } + + STDMETHODIMP + QueryInterface( + _In_ REFIID riid, + _COM_Outptr_ VOID **ppv + ) + { + HRESULT hRes = E_POINTER; + + if (ppv) + { + hRes = E_NOINTERFACE; + + *ppv = NULL; + + if (riid == IID_ISequentialStream) + { + *ppv = static_cast(this); + } + else if (riid == IID_IUnknown) + { + *ppv = static_cast(this); + } + + if (*ppv) + { + AddRef(); + + hRes = S_OK; + } + } + + return hRes; + } + + STDMETHODIMP + Read( + _Out_writes_bytes_to_(cb, *pcbRead) void* pv, + _In_ ULONG cb, + _Out_opt_ ULONG *pcbRead + ) + { + if (pcbRead == NULL) + { + return E_INVALIDARG; + } + + *pcbRead = 0; + + HRESULT hr = S_OK; + + // + // ISequentialStream::Read is expected to block until any of the following occurs: + // - the requested number of bytes have been read + // - the end of the stream is reached + // - a failure occurs + // + // Since IPrintReadStream::ReadBytes is non-blocking, we must call ReadBytes until one of the + // conditions is met. + // + + while (SUCCEEDED(hr) && + !m_bEof && + *pcbRead < cb) + { + DWORD cbRead = 0; + BOOL bEof = FALSE; + + hr = m_pStream->ReadBytes(reinterpret_cast(reinterpret_cast(pv) + *pcbRead), cb - *pcbRead, &cbRead, &bEof); + + if (SUCCEEDED(hr)) + { + if (bEof) + { + m_bEof = TRUE; + } + + *pcbRead += cbRead; + } + } + + if (SUCCEEDED(hr) && + *pcbRead < cb) + { + // + // ISequentialStream::Read returns S_FALSE when the number of bytes returned is fewer than + // the number of bytes requested. (i.e. at the end of the stream) + // + + hr = S_FALSE; + } + + return hr; + } + + STDMETHODIMP + Write( + _In_reads_bytes_(cb) void const* pv, + _In_ ULONG cb, + _Out_opt_ ULONG *pcbWritten + ) + { + UNREFERENCED_PARAMETER(pv); + UNREFERENCED_PARAMETER(cb); + UNREFERENCED_PARAMETER(pcbWritten); + return E_NOTIMPL; + } + +private: + BOOL m_bEof; + LONG m_cRef; + IPrintReadStream *m_pStream; +}; + +// +// Helpful when you want to use a print write interface with XML SAX +// which needs an ISequentialStream +// +class PrintWriteStreamToSeqStream : public ISequentialStream +{ +public: + + PrintWriteStreamToSeqStream( + _In_ IPrintWriteStream *pWriteStream + ) : m_cRef(1), + m_pStream(pWriteStream) + { + m_pStream->AddRef(); + } + + ~PrintWriteStreamToSeqStream() + { + m_pStream->Close(); + + m_pStream->Release(); + } + + STDMETHODIMP_(ULONG) + AddRef( + VOID + ) + { + return InterlockedIncrement(&m_cRef); + } + + STDMETHODIMP_(ULONG) + Release( + VOID + ) + { + ULONG cRefCount = InterlockedDecrement(&m_cRef); + + if (cRefCount) + { + return cRefCount; + } + + delete this; + + return 0; + } + + STDMETHODIMP + QueryInterface( + _In_ REFIID riid, + _Out_ VOID **ppv + ) + { + HRESULT hRes = E_POINTER; + + if (ppv) + { + hRes = E_NOINTERFACE; + + *ppv = NULL; + + if (riid == IID_ISequentialStream) + { + *ppv = static_cast(this); + } + else if (riid == IID_IUnknown) + { + *ppv = static_cast(this); + } + + if (*ppv) + { + AddRef(); + + hRes = S_OK; + } + } + + return hRes; + } + + STDMETHODIMP + Read( + _Out_writes_bytes_(cb) void* pv, + _In_ ULONG cb, + _Out_ ULONG *pcbRead + ) + { + UNREFERENCED_PARAMETER(pv); + UNREFERENCED_PARAMETER(cb); + UNREFERENCED_PARAMETER(pcbRead); + return E_NOTIMPL; + } + + STDMETHODIMP + Write( + _In_reads_bytes_(cb) void const* pv, + _In_ ULONG cb, + _Out_ ULONG *pcbWritten + ) + { + return m_pStream->WriteBytes(pv, cb, pcbWritten); + } + +private: + + LONG m_cRef; + IPrintWriteStream *m_pStream; +}; + +}; // namespace pfp + +#endif // if defined(__cplusplus) + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // #ifndef _PRINT_FILTER_UTIL_813b22ee-62f7-4200-9c85-73d139eaa579_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fltUser.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fltUser.h new file mode 100644 index 0000000000000000000000000000000000000000..f555a8a442882ce628f62d1ebaa34608f7de5b62 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fltUser.h @@ -0,0 +1,468 @@ +/*++ + +Copyright (c) 1989-2002 Microsoft Corporation + +Module Name: + + fltUser.h + +Abstract: + Header file which contains the structures, type definitions, + constants, global variables and function prototypes that are + visible to user mode applications that interact with filters. + +Environment: + + User mode + +--*/ +#ifndef __FLTUSER_H__ +#define __FLTUSER_H__ +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +// +// IMPORTANT!!!!! +// +// This is how FltMgr was released (from oldest to newest) +// xpsp2, (srv03, w2ksp4+security rollup package(srp)), Vista, Win7, Win8 +// + +// +// The defines items that are part of the filter manager baseline +// + +#define FLT_MGR_BASELINE (((OSVER(NTDDI_VERSION) == NTDDI_WIN2K) && (SPVER(NTDDI_VERSION) >= SPVER(NTDDI_WIN2KSP4))) || \ + ((OSVER(NTDDI_VERSION) == NTDDI_WINXP) && (SPVER(NTDDI_VERSION) >= SPVER(NTDDI_WINXPSP2))) || \ + ((OSVER(NTDDI_VERSION) == NTDDI_WS03) && (SPVER(NTDDI_VERSION) >= SPVER(NTDDI_WS03SP1))) || \ + (NTDDI_VERSION >= NTDDI_VISTA)) + +// +// This defines items that were added after XPSP2 was released. This means +// they are in Srv03 SP1, W2K SP4+URP, and Longhorn and above. +// + +#define FLT_MGR_AFTER_XPSP2 (((OSVER(NTDDI_VERSION) == NTDDI_WIN2K) && (SPVER(NTDDI_VERSION) >= SPVER(NTDDI_WIN2KSP4))) || \ + ((OSVER(NTDDI_VERSION) == NTDDI_WINXP) && (SPVER(NTDDI_VERSION) > SPVER(NTDDI_WINXPSP2))) || \ + ((OSVER(NTDDI_VERSION) == NTDDI_WS03) && (SPVER(NTDDI_VERSION) >= SPVER(NTDDI_WS03SP1))) || \ + (NTDDI_VERSION >= NTDDI_VISTA)) + +// +// This defines items that only exist in longhorn or later +// + +#define FLT_MGR_LONGHORN (NTDDI_VERSION >= NTDDI_VISTA) + +// +// This defines items that only exist in Windows 7 or later +// + +#define FLT_MGR_WIN7 (NTDDI_VERSION >= NTDDI_WIN7) + +// +// This defines items that only exist in Windows 8 or later +// + +#define FLT_MGR_WIN8 (NTDDI_VERSION >= NTDDI_WIN8) + +// +// This defines items that only exist in Windows Blue or later +// + +#define FLT_MGR_WINBLUE (NTDDI_VERSION >= NTDDI_WINBLUE) + + +/////////////////////////////////////////////////////////////////////////////// +// +// Standard includes +// +/////////////////////////////////////////////////////////////////////////////// + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +// +// These are all of the baseline set of user-mode functions in FltMgr. +// + +#if FLT_MGR_BASELINE + +// +// Version-differential support for ASSERTs +// (NT_ASSERT on Vista and later, ASSERT otherwise) +// + +#if FLT_MGR_LONGHORN + +#define FLT_ASSERT(_e) NT_ASSERT(_e) +#define FLT_ASSERTMSG(_m, _e) NT_ASSERTMSG(_m, _e) + +#else + +#define FLT_ASSERT(_e) ASSERT(_e) +#define FLT_ASSERTMSG(_m, _e) ASSERTMSG(_m, _e) + +#endif + +// +// Functions for loading, unloading and monitoring Filters +// + +_Must_inspect_result_ +HRESULT +WINAPI +FilterLoad ( + _In_ LPCWSTR lpFilterName + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterUnload ( + _In_ LPCWSTR lpFilterName + ); + + +//**************************************************************************** +// +// Functions for creating and closing handles +// +//**************************************************************************** + +// +// Filter +// + +_Must_inspect_result_ +HRESULT +WINAPI +FilterCreate ( + _In_ LPCWSTR lpFilterName, + _Outptr_ HFILTER *hFilter + ); + +HRESULT +WINAPI +FilterClose( + _In_ HFILTER hFilter + ); + +// +// FilterInstance +// + +_Must_inspect_result_ +HRESULT +WINAPI +FilterInstanceCreate ( + _In_ LPCWSTR lpFilterName, + _In_ LPCWSTR lpVolumeName, + _In_opt_ LPCWSTR lpInstanceName, + _Outptr_ HFILTER_INSTANCE *hInstance + ); + +HRESULT +WINAPI +FilterInstanceClose( + _In_ HFILTER_INSTANCE hInstance + ); + + +//**************************************************************************** +// +// Functions for creating and deleting FilterInstances in the +// device stack. +// +//**************************************************************************** + +_Must_inspect_result_ +HRESULT +WINAPI +FilterAttach ( + _In_ LPCWSTR lpFilterName, + _In_ LPCWSTR lpVolumeName, + _In_opt_ LPCWSTR lpInstanceName , + _In_opt_ DWORD dwCreatedInstanceNameLength , + _Out_writes_bytes_opt_(dwCreatedInstanceNameLength) LPWSTR lpCreatedInstanceName + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterAttachAtAltitude ( + _In_ LPCWSTR lpFilterName, + _In_ LPCWSTR lpVolumeName, + _In_ LPCWSTR lpAltitude, + _In_opt_ LPCWSTR lpInstanceName , + _In_opt_ DWORD dwCreatedInstanceNameLength , + _Out_writes_bytes_opt_(dwCreatedInstanceNameLength) LPWSTR lpCreatedInstanceName + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterDetach ( + _In_ LPCWSTR lpFilterName, + _In_ LPCWSTR lpVolumeName, + _In_opt_ LPCWSTR lpInstanceName + ); + + +//**************************************************************************** +// +// Functions for iterating through Filters and FilterInstances and +// getting information on a Filter or FilterInstance. +// +//**************************************************************************** + +// +// Functions for iterating through Filters +// + +_Must_inspect_result_ +HRESULT +WINAPI +FilterFindFirst ( + _In_ FILTER_INFORMATION_CLASS dwInformationClass, + _Out_writes_bytes_to_(dwBufferSize,*lpBytesReturned) LPVOID lpBuffer, + _In_ DWORD dwBufferSize, + _Out_ LPDWORD lpBytesReturned, + _Out_ LPHANDLE lpFilterFind + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterFindNext ( + _In_ HANDLE hFilterFind, + _In_ FILTER_INFORMATION_CLASS dwInformationClass, + _Out_writes_bytes_to_(dwBufferSize,*lpBytesReturned) LPVOID lpBuffer, + _In_ DWORD dwBufferSize, + _Out_ LPDWORD lpBytesReturned + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterFindClose( + _In_ HANDLE hFilterFind + ); + + +_Must_inspect_result_ +HRESULT +WINAPI +FilterVolumeFindFirst ( + _In_ FILTER_VOLUME_INFORMATION_CLASS dwInformationClass, + _Out_writes_bytes_to_(dwBufferSize,*lpBytesReturned) LPVOID lpBuffer, + _In_ DWORD dwBufferSize, + _Out_ LPDWORD lpBytesReturned, + _Out_ PHANDLE lpVolumeFind + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterVolumeFindNext ( + _In_ HANDLE hVolumeFind, + _In_ FILTER_VOLUME_INFORMATION_CLASS dwInformationClass, + _Out_writes_bytes_to_(dwBufferSize,*lpBytesReturned) LPVOID lpBuffer, + _In_ DWORD dwBufferSize, + _Out_ LPDWORD lpBytesReturned + ); + +HRESULT +WINAPI +FilterVolumeFindClose( + _In_ HANDLE hVolumeFind + ); + +// +// Functions for iterating through FilterInstances +// + +_Must_inspect_result_ +HRESULT +WINAPI +FilterInstanceFindFirst ( + _In_ LPCWSTR lpFilterName, + _In_ INSTANCE_INFORMATION_CLASS dwInformationClass, + _Out_writes_bytes_to_(dwBufferSize,*lpBytesReturned) LPVOID lpBuffer, + _In_ DWORD dwBufferSize, + _Out_ LPDWORD lpBytesReturned, + _Out_ LPHANDLE lpFilterInstanceFind + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterInstanceFindNext ( + _In_ HANDLE hFilterInstanceFind, + _In_ INSTANCE_INFORMATION_CLASS dwInformationClass, + _Out_writes_bytes_to_(dwBufferSize,*lpBytesReturned) LPVOID lpBuffer, + _In_ DWORD dwBufferSize, + _Out_ LPDWORD lpBytesReturned + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterInstanceFindClose( + _In_ HANDLE hFilterInstanceFind + ); + + +// +// Functions for iterating through VolumeInstances +// + +_Must_inspect_result_ +HRESULT +WINAPI +FilterVolumeInstanceFindFirst ( + _In_ LPCWSTR lpVolumeName, + _In_ INSTANCE_INFORMATION_CLASS dwInformationClass, + _Out_writes_bytes_to_(dwBufferSize,*lpBytesReturned) LPVOID lpBuffer, + _In_ DWORD dwBufferSize, + _Out_ LPDWORD lpBytesReturned, + _Out_ LPHANDLE lpVolumeInstanceFind + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterVolumeInstanceFindNext ( + _In_ HANDLE hVolumeInstanceFind, + _In_ INSTANCE_INFORMATION_CLASS dwInformationClass, + _Out_writes_bytes_to_(dwBufferSize,*lpBytesReturned) LPVOID lpBuffer, + _In_ DWORD dwBufferSize, + _Out_ LPDWORD lpBytesReturned + ); + +HRESULT +WINAPI +FilterVolumeInstanceFindClose( + _In_ HANDLE hVolumeInstanceFind + ); + + +// +// Functions for getting information on Filters and FilterInstances +// + +_Must_inspect_result_ +HRESULT +WINAPI +FilterGetInformation ( + _In_ HFILTER hFilter, + _In_ FILTER_INFORMATION_CLASS dwInformationClass, + _Out_writes_bytes_to_(dwBufferSize,*lpBytesReturned) LPVOID lpBuffer, + _In_ DWORD dwBufferSize, + _Out_ LPDWORD lpBytesReturned + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterInstanceGetInformation ( + _In_ HFILTER_INSTANCE hInstance, + _In_ INSTANCE_INFORMATION_CLASS dwInformationClass, + _Out_writes_bytes_to_(dwBufferSize,*lpBytesReturned) LPVOID lpBuffer, + _In_ DWORD dwBufferSize, + _Out_ LPDWORD lpBytesReturned + ); + + +//**************************************************************************** +// +// Functions for communicating with Filters and FilterInstances +// +//**************************************************************************** + +_Must_inspect_result_ +HRESULT +WINAPI +FilterConnectCommunicationPort ( + _In_ LPCWSTR lpPortName, + _In_ DWORD dwOptions, + _In_reads_bytes_opt_(wSizeOfContext) LPCVOID lpContext, + _In_ WORD wSizeOfContext, + _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, + _Outptr_ HANDLE *hPort + ); + +#if FLT_MGR_WINBLUE + +// +// FilterConnectCommunicationPort() dwOptions flags supported in Windows Blue +// and beyond. +// + +#define FLT_PORT_FLAG_SYNC_HANDLE 0x00000001 + +#endif + +_Must_inspect_result_ +HRESULT +WINAPI +FilterSendMessage ( + _In_ HANDLE hPort, + _In_reads_bytes_(dwInBufferSize) LPVOID lpInBuffer, + _In_ DWORD dwInBufferSize, + _Out_writes_bytes_to_opt_(dwOutBufferSize,*lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD dwOutBufferSize, + _Out_ LPDWORD lpBytesReturned + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterGetMessage ( + _In_ HANDLE hPort, + _Out_writes_bytes_(dwMessageBufferSize) PFILTER_MESSAGE_HEADER lpMessageBuffer, + _In_ DWORD dwMessageBufferSize, + _Inout_opt_ LPOVERLAPPED lpOverlapped + ); + +_Must_inspect_result_ +HRESULT +WINAPI +FilterReplyMessage ( + _In_ HANDLE hPort, + _In_reads_bytes_(dwReplyBufferSize) PFILTER_REPLY_HEADER lpReplyBuffer, + _In_ DWORD dwReplyBufferSize + ); + +//**************************************************************************** +// +// Other support functions +// +//**************************************************************************** + +_Must_inspect_result_ +HRESULT +WINAPI +FilterGetDosName ( + _In_ LPCWSTR lpVolumeName, + _Out_writes_(dwDosNameBufferSize) LPWSTR lpDosName, + _In_ DWORD dwDosNameBufferSize + ); + +#endif // end the FLT_MGR_BASELINE + +#ifdef __cplusplus +} // Balance extern "C" above +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif /* __FLTUSER_H__ */ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fltWinError.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fltWinError.h new file mode 100644 index 0000000000000000000000000000000000000000..400cb5d8cd6e415c0d57d6d95832fac7fac149c8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fltWinError.h @@ -0,0 +1,383 @@ +/*++ BUILD Version: 0005 // Increment this if a change has global effects + +Copyright (c) 1989-2002 Microsoft Corporation. All rights reserved. + +Module Name: + + fltWinError.h + +Abstract: + + Constant definitions for the HRESULTS values defined by the Filter Manager. + +Environment: + + User mode + +--*/ + +#ifndef _FLT_WINERROR_ +#define _FLT_WINERROR_ + +// +// For Windows version 6.00 and later, these error codes are defined in +// winerror.h. Only use these definitions if not already defined +// +#if NTDDI_VERSION < NTDDI_VISTA +#ifndef FACILITY_USERMODE_FILTER_MANAGER + +// +// HRESULT +// FILTER_HRESULT_FROM_FLT_NTSTATUS ( +// IN NTSTATUS FltNtStatus +// ) +// +// Macro Description: +// +// This macro does the translation from a Filter Manager defined NTSTATUS +// code to a Filter Manager Library HRESULT. The Filter Manager Library +// error code is built as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +-+-+-+-+-----------------------+-------------------------------+ +// |S|R|C|R| FltMgr Facility |(Code part of FltNtStatus) | +// | | | | | | bit-wise or'd with 0x0000 | +// +-+-+-+-+-----------------------+-------------------------------+ +// +// where +// +// S - Severity - 1 to indicate FAILURE +// +// R - reserved portion of the facility code, corresponds to NT's +// second severity bit. +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - FACILITY_USERMODE_FILTER_MANAGER +// +// Code - Code portion of the NTSTATUS +// +// Arguments: +// +// FltNtStatus - The NTSTATUS error code with the Filter Manager facility +// code to translate to an Filter Manager Library HRESULT. +// +// Return Value: +// +// The appropriate HRESULT. +// + +#define FILTER_HRESULT_FROM_FLT_NTSTATUS(x) (NT_ASSERT((x & 0xfff0000) == 0x001c0000),(HRESULT) (((x) & 0x8000FFFF) | (FACILITY_USERMODE_FILTER_MANAGER << 16))) + + +////////////////////////////////////////////////////////////////////// +// +// HRESULTs for Filter Manager defined NTSTATUS codes +// +////////////////////////////////////////////////////////////////////// + +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---+-+-+-----------------------+-------------------------------+ +// |Sev|C|R| Facility | Code | +// +---+-+-+-----------------------+-------------------------------+ +// +// where +// +// Sev - is the severity code +// +// 00 - Success +// 01 - Informational +// 10 - Warning +// 11 - Error +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_USERMODE_FILTER_MANAGER 0x1F + + +// +// Define the severity codes +// + + +// +// MessageId: ERROR_FLT_IO_COMPLETE +// +// MessageText: +// +// The IO was completed by a filter. +// +#define ERROR_FLT_IO_COMPLETE ((HRESULT)0x001F0001L) + +// +// MessageId: ERROR_FLT_NO_HANDLER_DEFINED +// +// MessageText: +// +// A handler was not defined by the filter for this operation. +// +#define ERROR_FLT_NO_HANDLER_DEFINED ((HRESULT)0x801F0001L) + +// +// MessageId: ERROR_FLT_CONTEXT_ALREADY_DEFINED +// +// MessageText: +// +// A context is already defined for this object. +// +#define ERROR_FLT_CONTEXT_ALREADY_DEFINED ((HRESULT)0x801F0002L) + +// +// MessageId: ERROR_FLT_INVALID_ASYNCHRONOUS_REQUEST +// +// MessageText: +// +// Asynchronous requests are not valid for this operation. +// +#define ERROR_FLT_INVALID_ASYNCHRONOUS_REQUEST ((HRESULT)0x801F0003L) + +// +// MessageId: ERROR_FLT_DISALLOW_FAST_IO +// +// MessageText: +// +// Disallow the Fast IO path for this operation. +// +#define ERROR_FLT_DISALLOW_FAST_IO ((HRESULT)0x801F0004L) + +// +// MessageId: ERROR_FLT_INVALID_NAME_REQUEST +// +// MessageText: +// +// An invalid name request was made. The name requested cannot be retrieved at this time. +// +#define ERROR_FLT_INVALID_NAME_REQUEST ((HRESULT)0x801F0005L) + +// +// MessageId: ERROR_FLT_NOT_SAFE_TO_POST_OPERATION +// +// MessageText: +// +// Posting this operation to a worker thread for further processing is not safe +// at this time because it could lead to a system deadlock. +// +#define ERROR_FLT_NOT_SAFE_TO_POST_OPERATION ((HRESULT)0x801F0006L) + +// +// MessageId: ERROR_FLT_NOT_INITIALIZED +// +// MessageText: +// +// The Filter Manager was not initialized when a filter tried to register. Make +// sure that the Filter Manager is getting loaded as a driver. +// +#define ERROR_FLT_NOT_INITIALIZED ((HRESULT)0x801F0007L) + +// +// MessageId: ERROR_FLT_FILTER_NOT_READY +// +// MessageText: +// +// The filter is not ready for attachment to volumes because it has not finished +// initializing (FltStartFiltering has not been called). +// +#define ERROR_FLT_FILTER_NOT_READY ((HRESULT)0x801F0008L) + +// +// MessageId: ERROR_FLT_POST_OPERATION_CLEANUP +// +// MessageText: +// +// The filter must cleanup any operation specific context at this time because +// it is being removed from the system before the operation is completed by +// the lower drivers. +// +#define ERROR_FLT_POST_OPERATION_CLEANUP ((HRESULT)0x801F0009L) + +// +// MessageId: ERROR_FLT_INTERNAL_ERROR +// +// MessageText: +// +// The Filter Manager had an internal error from which it cannot recover, +// therefore the operation has been failed. This is usually the result +// of a filter returning an invalid value from a pre-operation callback. +// +#define ERROR_FLT_INTERNAL_ERROR ((HRESULT)0x801F000AL) + +// +// MessageId: ERROR_FLT_DELETING_OBJECT +// +// MessageText: +// +// The object specified for this action is in the process of being +// deleted, therefore the action requested cannot be completed at +// this time. +// +#define ERROR_FLT_DELETING_OBJECT ((HRESULT)0x801F000BL) + +// +// MessageId: ERROR_FLT_MUST_BE_NONPAGED_POOL +// +// MessageText: +// +// Non-paged pool must be used for this type of context. +// +#define ERROR_FLT_MUST_BE_NONPAGED_POOL ((HRESULT)0x801F000CL) + +// +// MessageId: ERROR_FLT_DUPLICATE_ENTRY +// +// MessageText: +// +// A duplicate handler definition has been provided for an operation. +// +#define ERROR_FLT_DUPLICATE_ENTRY ((HRESULT)0x801F000DL) + +// +// MessageId: ERROR_FLT_CBDQ_DISABLED +// +// MessageText: +// +// The callback data queue has been disabled. +// +#define ERROR_FLT_CBDQ_DISABLED ((HRESULT)0x801F000EL) + +// +// MessageId: ERROR_FLT_DO_NOT_ATTACH +// +// MessageText: +// +// Do not attach the filter to the volume at this time. +// +#define ERROR_FLT_DO_NOT_ATTACH ((HRESULT)0x801F000FL) + +// +// MessageId: ERROR_FLT_DO_NOT_DETACH +// +// MessageText: +// +// Do not detach the filter from the volume at this time. +// +#define ERROR_FLT_DO_NOT_DETACH ((HRESULT)0x801F0010L) + +// +// MessageId: ERROR_FLT_INSTANCE_ALTITUDE_COLLISION +// +// MessageText: +// +// An instance already exists at this altitude on the volume specified. +// +#define ERROR_FLT_INSTANCE_ALTITUDE_COLLISION ((HRESULT)0x801F0011L) + +// +// MessageId: ERROR_FLT_INSTANCE_NAME_COLLISION +// +// MessageText: +// +// An instance already exists with this name on the volume specified. +// +#define ERROR_FLT_INSTANCE_NAME_COLLISION ((HRESULT)0x801F0012L) + +// +// MessageId: ERROR_FLT_FILTER_NOT_FOUND +// +// MessageText: +// +// The system could not find the filter specified. +// +#define ERROR_FLT_FILTER_NOT_FOUND ((HRESULT)0x801F0013L) + +// +// MessageId: ERROR_FLT_VOLUME_NOT_FOUND +// +// MessageText: +// +// The system could not find the volume specified. +// +#define ERROR_FLT_VOLUME_NOT_FOUND ((HRESULT)0x801F0014L) + +// +// MessageId: ERROR_FLT_INSTANCE_NOT_FOUND +// +// MessageText: +// +// The system could not find the instance specified. +// +#define ERROR_FLT_INSTANCE_NOT_FOUND ((HRESULT)0x801F0015L) + +// +// MessageId: ERROR_FLT_CONTEXT_ALLOCATION_NOT_FOUND +// +// MessageText: +// +// No registered context allocation definition was found for the given request. +// +#define ERROR_FLT_CONTEXT_ALLOCATION_NOT_FOUND ((HRESULT)0x801F0016L) + +// +// MessageId: ERROR_FLT_INVALID_CONTEXT_REGISTRATION +// +// MessageText: +// +// An invalid parameter was specified during context registration. +// +#define ERROR_FLT_INVALID_CONTEXT_REGISTRATION ((HRESULT)0x801F0017L) + +// +// MessageId: ERROR_FLT_NAME_CACHE_MISS +// +// MessageText: +// +// The name requested was not found in Filter Manager's name cache and could not be retrieved from the file system. +// +#define ERROR_FLT_NAME_CACHE_MISS ((HRESULT)0x801F0018L) + +// +// MessageId: ERROR_FLT_NO_DEVICE_OBJECT +// +// MessageText: +// +// The requested device object does not exist for the given volume. +// +#define ERROR_FLT_NO_DEVICE_OBJECT ((HRESULT)0x801F0019L) + +// +// MessageId: ERROR_FLT_VOLUME_ALREADY_MOUNTED +// +// MessageText: +// +// The specified volume is already mounted. +// +#define ERROR_FLT_VOLUME_ALREADY_MOUNTED ((HRESULT)0x801F001AL) + +// +// MessageId: ERROR_FLT_NO_WAITER_FOR_REPLY +// +// MessageText: +// +// No waiter is present for the filter's reply to this message. +// +#define ERROR_FLT_NO_WAITER_FOR_REPLY ((HRESULT)0x801F0020L) + +#endif // !FACILITY_USERMODE_FILTER_MANAGER +#endif //NTDDIVER < WIN_LH +#endif //_FLT_WINERROR_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fltdefs.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fltdefs.h new file mode 100644 index 0000000000000000000000000000000000000000..8c586851dcaf26a639506a395b192c58a9e0e63a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fltdefs.h @@ -0,0 +1,418 @@ +/*++ + +Copyright (c) 1995-1999 Microsoft Corporation + +Module Name: + + fltdefs.h + +Abstract: + + Definitions for the WIN32 filter APIs + +Author: + + Arnold Miller (arnoldm) 24-Sept-1997 + +Revision History: + +--*/ + +#ifndef _FLTDEFS_H +#define _FLTDEFS_H + +#if _MSC_VER > 1000 +#pragma once +#endif + +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +typedef PVOID FILTER_HANDLE, *PFILTER_HANDLE; +typedef PVOID INTERFACE_HANDLE, *PINTERFACE_HANDLE; + +#ifdef _M_CEE_PURE +#define PFEXPORT +#else +#define PFEXPORT __declspec(dllexport) +#endif + +#ifdef __cplusplus +#define EXTERNCDECL EXTERN_C +#else +#define EXTERNCDECL +#endif + +#define PFAPIENTRY EXTERNCDECL DWORD PFEXPORT WINAPI + +typedef enum _GlobalFilter +{ + GF_FRAGMENTS = 2, // check consistency of fragments + GF_STRONGHOST = 8, // check destination address of input frames + GF_FRAGCACHE = 9 // check fragments from cache +} GLOBAL_FILTER, *PGLOBAL_FILTER; + +typedef enum _PfForwardAction +{ + PF_ACTION_FORWARD = 0, + PF_ACTION_DROP +} PFFORWARD_ACTION, *PPFFORWARD_ACTION; + +typedef enum _PfAddresType +{ + PF_IPV4, + PF_IPV6 +} PFADDRESSTYPE, *PPFADDRESSTYPE; + +////////////////////////////////////////////////////////////////////////////// +// // +// The constants that should be used to set up the FILTER_INFO_STRUCTURE // +// // +////////////////////////////////////////////////////////////////////////////// + +#define FILTER_PROTO(ProtoId) MAKELONG(MAKEWORD((ProtoId),0x00),0x00000) + +#define FILTER_PROTO_ANY FILTER_PROTO(0x00) +#define FILTER_PROTO_ICMP FILTER_PROTO(0x01) +#define FILTER_PROTO_TCP FILTER_PROTO(0x06) +#define FILTER_PROTO_UDP FILTER_PROTO(0x11) + +#define FILTER_TCPUDP_PORT_ANY (WORD)0x0000 + +#define FILTER_ICMP_TYPE_ANY (BYTE)0xff +#define FILTER_ICMP_CODE_ANY (BYTE)0xff + +typedef struct _PF_FILTER_DESCRIPTOR +{ + DWORD dwFilterFlags; // see below + DWORD dwRule; // copied into the log when appropriate + PFADDRESSTYPE pfatType; + PBYTE SrcAddr; + PBYTE SrcMask; + PBYTE DstAddr; + PBYTE DstMask; + DWORD dwProtocol; + DWORD fLateBound; + WORD wSrcPort; + WORD wDstPort; + WORD wSrcPortHighRange; + WORD wDstPortHighRange; +}PF_FILTER_DESCRIPTOR, *PPF_FILTER_DESCRIPTOR; + + +////////////////////////////////////////////////////////////////////////////// +// // +// Structure for PfGetInterfaceStatistics // +// // +////////////////////////////////////////////////////////////////////////////// + +typedef struct _PF_FILTER_STATS +{ + DWORD dwNumPacketsFiltered; + PF_FILTER_DESCRIPTOR info; +}PF_FILTER_STATS, *PPF_FILTER_STATS; + +typedef struct _PF_INTERFACE_STATS +{ + PVOID pvDriverContext; + DWORD dwFlags; // none as yet (28-Sept-1997) + DWORD dwInDrops; + DWORD dwOutDrops; + PFFORWARD_ACTION eaInAction; + PFFORWARD_ACTION eaOutAction; + DWORD dwNumInFilters; + DWORD dwNumOutFilters; + DWORD dwFrag; + DWORD dwSpoof; + DWORD dwReserved1; + DWORD dwReserved2; + LARGE_INTEGER liSYN; + LARGE_INTEGER liTotalLogged; + DWORD dwLostLogEntries; + PF_FILTER_STATS FilterInfo[1]; +} PF_INTERFACE_STATS, *PPF_INTERFACE_STATS; + + +////////////////////////////////////////////////////////////////////////////// +// // +// The number of bytes starting at SrcAddr. If you add something to the // +// structure make sure this remains valid // +// // +////////////////////////////////////////////////////////////////////////////// + +#define FILTERSIZE \ + (sizeof(PF_FILTER_DESCRIPTOR) - \ + (DWORD)(&((PPF_FILTER_DESCRIPTOR)0)->SrcAddr)) + + +////////////////////////////////////////////////////////////////////////////// +// // +// Flags for PF_FILTER_DESCRIPTOR // +// // +////////////////////////////////////////////////////////////////////////////// + +// +// Disallows incoming SYN +// + +#define FD_FLAGS_NOSYN 0x1 + +// +// All legal flags +// + +#define FD_FLAGS_ALLFLAGS FD_FLAGS_NOSYN + + +////////////////////////////////////////////////////////////////////////////// +// // +// Late bound defs. Go in fLateBound in a PF_FILTER_DESCRIPTOR and // +// describe which other fields of the filter are affected by a // +// PfRebindFilters call. In general such filters are on WAN interfaces // +// where one or the other address may change as the connection is // +// reconnected. // +// The assumption is that such interfaces HAVE ONLY ONE ADDRESS. // +// // +////////////////////////////////////////////////////////////////////////////// + + +#define LB_SRC_ADDR_USE_SRCADDR_FLAG 0x00000001 +#define LB_SRC_ADDR_USE_DSTADDR_FLAG 0x00000002 +#define LB_DST_ADDR_USE_SRCADDR_FLAG 0x00000004 +#define LB_DST_ADDR_USE_DSTADDR_FLAG 0x00000008 +#define LB_SRC_MASK_LATE_FLAG 0x00000010 +#define LB_DST_MASK_LATE_FLAG 0x00000020 + +typedef struct _PF_LATEBIND_INFO +{ + PBYTE SrcAddr; + PBYTE DstAddr; + PBYTE Mask; +}PF_LATEBIND_INFO, *PPF_LATEBIND_INFO; + +////////////////////////////////////////////////////////////////////////////// +// // +// The format of a logged frame and defs for it. // +// // +////////////////////////////////////////////////////////////////////////////// + +typedef enum _PfFrameType +{ + PFFT_FILTER = 1, // a filter violation + PFFT_FRAG = 2, // bad fragment + PFFT_SPOOF = 3 // strong host failure +} PFFRAMETYPE, *PPFFRAMETYPE; + +typedef struct _pfLogFrame +{ + LARGE_INTEGER Timestamp; + PFFRAMETYPE pfeTypeOfFrame; + DWORD dwTotalSizeUsed; // used to find the next frame + DWORD dwFilterRule; // from the filter + WORD wSizeOfAdditionalData; + WORD wSizeOfIpHeader; + DWORD dwInterfaceName; // the name of the interface + DWORD dwIPIndex; + BYTE bPacketData[1]; // the frame. wsizeOfIpHeader + // and wsizeOfAdditionalData + // describe this +} PFLOGFRAME, *PPFLOGFRAME; + +////////////////////////////////////////////////////////////////////////////// +// // +// Error codes. These extend the WIN32 errors by having errors specific to // +// these APIs. Besides these errors, the APIs may return any of the WIN32 // +// errors. // +// // +////////////////////////////////////////////////////////////////////////////// + + +#define ERROR_BASE 23000 + +#define PFERROR_NO_PF_INTERFACE (ERROR_BASE + 0) // never returned. +#define PFERROR_NO_FILTERS_GIVEN (ERROR_BASE + 1) +#define PFERROR_BUFFER_TOO_SMALL (ERROR_BASE + 2) +#define ERROR_IPV6_NOT_IMPLEMENTED (ERROR_BASE + 3) + + +////////////////////////////////////////////////////////////////////////////// +// // +// The API prototypes // +// // +////////////////////////////////////////////////////////////////////////////// + +PFAPIENTRY +PfCreateInterface( + DWORD dwName, + PFFORWARD_ACTION inAction, + PFFORWARD_ACTION outAction, + BOOL bUseLog, + BOOL bMustBeUnique, + INTERFACE_HANDLE *ppInterface + ); + +PFAPIENTRY +PfDeleteInterface( + INTERFACE_HANDLE pInterface + ); + +PFAPIENTRY +PfAddFiltersToInterface( + INTERFACE_HANDLE ih, + DWORD cInFilters, + PPF_FILTER_DESCRIPTOR pfiltIn, + DWORD cOutFilters, + PPF_FILTER_DESCRIPTOR pfiltOut, + PFILTER_HANDLE pfHandle + ); + +PFAPIENTRY +PfRemoveFiltersFromInterface( + INTERFACE_HANDLE ih, + DWORD cInFilters, + PPF_FILTER_DESCRIPTOR pfiltIn, + DWORD cOutFilters, + PPF_FILTER_DESCRIPTOR pfiltOut + ); + +PFAPIENTRY +PfRemoveFilterHandles( + INTERFACE_HANDLE pInterface, + DWORD cFilters, + PFILTER_HANDLE pvHandles + ); + + +PFAPIENTRY +PfUnBindInterface( + INTERFACE_HANDLE pInterface + ); + +PFAPIENTRY +PfBindInterfaceToIndex( + INTERFACE_HANDLE pInterface, + DWORD dwIndex, + PFADDRESSTYPE pfatLinkType, + PBYTE LinkIPAddress + ); + +PFAPIENTRY +PfBindInterfaceToIPAddress( + INTERFACE_HANDLE pInterface, + PFADDRESSTYPE pfatType, + PBYTE IPAddress + ); + +PFAPIENTRY +PfRebindFilters( + INTERFACE_HANDLE pInterface, + PPF_LATEBIND_INFO pLateBindInfo + ); + +PFAPIENTRY +PfAddGlobalFilterToInterface( + INTERFACE_HANDLE pInterface, + GLOBAL_FILTER gfFilter + ); + +PFAPIENTRY +PfRemoveGlobalFilterFromInterface( + INTERFACE_HANDLE pInterface, + GLOBAL_FILTER gfFilter + ); + + +////////////////////////////////////////////////////////////////////////////// +// // +// Log APIs. Note that there is at most one log and it must be created // +// before any interface needing it is created. There is no way to set a // +// log onto an existing interface. The log can be applied to any or all of // +// the interfaces. // +// // +////////////////////////////////////////////////////////////////////////////// + +PFAPIENTRY +PfMakeLog( + HANDLE hEvent + ); + +// +// Provide a buffer, and notification parameters, and get back +// the old buffer and status. +// + +PFAPIENTRY +PfSetLogBuffer( + PBYTE pbBuffer, + DWORD dwSize, + DWORD dwThreshold, + DWORD dwEntries, + PDWORD pdwLoggedEntries, + PDWORD pdwLostEntries, + PDWORD pdwSizeUsed + ); + +// +// Doing this will disable the log on any of the interfaces. But if +// an interface was created with the log, the actual log will not be +// completely deleted until that interface is deleted. This is a small +// point, but it might explain a mystery or two. +// + +PFAPIENTRY +PfDeleteLog( + VOID + ); + + +////////////////////////////////////////////////////////////////////////////// +// // +// Get statistics. Note pdwBufferSize in an IN/OUT parameter. If // +// ERROR_INSUFFICIENT_BUFFER is returned, the common statistics are // +// available and the correct byte count is in *pdwBufferSize. If only the // +// interface statistics are needed, provide a buffer of size // +// PF_INTERFACE_STATS only. // +// If the filter descriptions are also needed, then supply a large buffer, // +// or use the returned count from the first call to allocate a buffer of // +// sufficient size. Note that for a shared interface, this second call may // +// fail with ERROR_INSUFFICIENT_BUFFER. This can happen if the other // +// sharers add filters in the interim. This should not happen for a UNIQUE // +// interface. // +// // +////////////////////////////////////////////////////////////////////////////// + + +PFAPIENTRY +PfGetInterfaceStatistics( + INTERFACE_HANDLE pInterface, + PPF_INTERFACE_STATS ppfStats, + PDWORD pdwBufferSize, + BOOL fResetCounters + ); + + +////////////////////////////////////////////////////////////////////////////// +// // +// Test a packet. // +// This call will evaluate the packet against the given interfaces // +// and return the filtering action. // +// // +////////////////////////////////////////////////////////////////////////////// + +PFAPIENTRY +PfTestPacket( + INTERFACE_HANDLE pInInterface OPTIONAL, + INTERFACE_HANDLE pOutInterface OPTIONAL, + DWORD cBytes, + PBYTE pbPacket, + PPFFORWARD_ACTION ppAction + ); + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fontsub.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fontsub.h new file mode 100644 index 0000000000000000000000000000000000000000..a58d255cbec58427867f90caf3bf64238ad9e704 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fontsub.h @@ -0,0 +1,186 @@ +/************************************************************************* +* * +* fontsub.h -- font subsetting services (fontsub.dll) * +* * +* (c) Microsoft Corporation. All Rights Reserved. * +* * +*************************************************************************/ + +#ifndef FONTSUB_DOT_H_DEFINED +#define FONTSUB_DOT_H_DEFINED +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef CONST +#define CONST const +#endif + +typedef void *(__cdecl *CFP_ALLOCPROC)(size_t); +typedef void *(__cdecl *CFP_REALLOCPROC)(void *, size_t); +typedef void (__cdecl *CFP_FREEPROC)(void *); + +unsigned long __cdecl CreateFontPackage( + CONST unsigned char * puchSrcBuffer, /* input TTF or TTC buffer */ + CONST unsigned long ulSrcBufferSize, /* size of input TTF or TTC buffer data */ + unsigned char ** ppuchFontPackageBuffer, /* output package buffer */ + unsigned long * pulFontPackageBufferSize, /* output package buffer size */ + unsigned long * pulBytesWritten, /* output package buffer data length */ + CONST unsigned short usFlag, /* subset, compress, or both, TTF or TTC, Chars or Glyphs */ + CONST unsigned short usTTCIndex, /* TTC Index, only used if TTC bit set */ + CONST unsigned short usSubsetFormat, /* Old Subset, Subset or Delta */ + CONST unsigned short usSubsetLanguage, /* Language in Name table to keep */ + CONST unsigned short usSubsetPlatform, /* if ListType is Character, Platform of cmap to use for glyph list */ + CONST unsigned short usSubsetEncoding, /* if ListType is Character, Encoding of cmap to use for glyph list */ + CONST unsigned short *pusSubsetKeepList, /* List of Characters or Glyphs to keep */ + CONST unsigned short usSubsetListCount, /* number of elements in list */ + CFP_ALLOCPROC lpfnAllocate, /* call back function to allocate temp buffers and output buffers */ + CFP_REALLOCPROC lpfnReAllocate, /* call back function to reallocate temp and output buffers */ + CFP_FREEPROC lpfnFree, /* call back function to free buffer allocated with lpfnAllocate and lpfnReAllocate */ + void * lpvReserved); + +/* for usSubsetFormat */ +#define TTFCFP_SUBSET 0 /* Straight Subset Font - Backward compatibility */ +#define TTFCFP_SUBSET1 1 /* Subset font with full TTO and Kern tables. For later merge */ +#define TTFCFP_DELTA 2 /* Delta font, for merge with a subset1 font */ + +/* for usSubsetPlatform ID values */ +#define TTFCFP_UNICODE_PLATFORMID 0 +#define TTFCFP_APPLE_PLATFORMID 1 +#define TTFCFP_ISO_PLATFORMID 2 +#define TTFCFP_MS_PLATFORMID 3 + +/* for usSubsetEncoding values */ +#define TTFCFP_STD_MAC_CHAR_SET 0 /* goes with TTFSUB_APPLE_PLATFORMID */ +#define TTFCFP_SYMBOL_CHAR_SET 0 /* goes with TTFSUB_MS_PLATFORMID */ +#define TTFCFP_UNICODE_CHAR_SET 1 /* goes with TTFSUB_MS_PLATFORMID */ +#define TTFCFP_DONT_CARE 0xFFFF + +/* for usSubsetLanguage values */ +#define TTFCFP_LANG_KEEP_ALL 0 + +/* for usFlags values */ +#define TTFCFP_FLAGS_SUBSET 0x0001 /* if bit off, don't subset */ +#define TTFCFP_FLAGS_COMPRESS 0x0002 /* if bit off, don't compress */ +#define TTFCFP_FLAGS_TTC 0x0004 /* if bit off, its a TTF */ +#define TTFCFP_FLAGS_GLYPHLIST 0x0008 /* if bit off, list is characters */ + +unsigned long __cdecl MergeFontPackage(CONST unsigned char * puchMergeFontBuffer, /* buffer containing font to merge with */ + CONST unsigned long ulMergeFontBufferSize, /* size of buffer containing font to merge with */ + CONST unsigned char * puchFontPackageBuffer, /* buffer containing a font package to merge with the MergeFontBuffer */ + CONST unsigned long ulFontPackageBufferSize, /* length of FontPakageBuffer */ + unsigned char **ppuchDestBuffer, /* output: pointer to output buffer containing a TTF to install */ + unsigned long *pulDestBufferSize, /* output: length of output buffer containing TTF to install */ + unsigned long *pulBytesWritten, /* output: number of bytes in buffer used for TTF */ + CONST unsigned short usMode, /* kind of action to perform, see #defines below */ + CFP_ALLOCPROC lpfnAllocate, /* call back function to allocate output and intermediate buffers */ + CFP_REALLOCPROC lpfnReAllocate, /* call back function to allocate or reallocate output and intermediate buffers */ + CFP_FREEPROC lpfnFree, /* call back function to free buffer allocated with lpfnReAllocate */ + void *lpvReserved); + +/* for usModes */ +#define TTFMFP_SUBSET 0 /* copy a Straight Subset Font package to Dest buffer */ +#define TTFMFP_SUBSET1 1 /* Expand a format 1 font into a format 3 font */ +#define TTFMFP_DELTA 2 /* Merge a format 2 with a format 3 font */ + +/* Error codes */ +#ifndef NO_ERROR +#define NO_ERROR 0 +#endif + +#ifndef ERR_GENERIC +#define ERR_GENERIC 1000 +#define ERR_READOUTOFBOUNDS 1001 /* trying to read from memory not allowed - data error? */ +#define ERR_WRITEOUTOFBOUNDS 1002 /* trying to write to memory not allowed - data error? */ +#define ERR_READCONTROL 1003 /* read control structure does not match data */ +#define ERR_WRITECONTROL 1004 /* write control structure does not match data */ +#define ERR_MEM 1005 /* error allocating memory */ +#define ERR_FORMAT 1006 /* input data format error */ + +#define ERR_WOULD_GROW 1007 /* action would cause data to grow. use original data */ +#define ERR_VERSION 1008 /* major dttf.version of the input data is greater than the version this program can read */ +#define ERR_NO_GLYPHS 1009 +#define ERR_INVALID_MERGE_FORMATS 1010 /* trying to merge fonts with the wrong dttf formats */ +#define ERR_INVALID_MERGE_CHECKSUMS 1011 /* trying to merge 2 fonts from different mother font */ +#define ERR_INVALID_MERGE_NUMGLYPHS 1012 /* trying to merge 2 fonts from different mother font */ +#define ERR_INVALID_DELTA_FORMAT 1013 /* trying to subset a format 1 or 2 font */ +#define ERR_NOT_TTC 1014 +#define ERR_INVALID_TTC_INDEX 1015 + +#define ERR_MISSING_CMAP 1030 +#define ERR_MISSING_GLYF 1031 +#define ERR_MISSING_HEAD 1032 +#define ERR_MISSING_HHEA 1033 +#define ERR_MISSING_HMTX 1034 +#define ERR_MISSING_LOCA 1035 +#define ERR_MISSING_MAXP 1036 +#define ERR_MISSING_NAME 1037 +#define ERR_MISSING_POST 1038 +#define ERR_MISSING_OS2 1039 +#define ERR_MISSING_VHEA 1040 +#define ERR_MISSING_VMTX 1041 +#define ERR_MISSING_HHEA_OR_VHEA 1042 +#define ERR_MISSING_HMTX_OR_VMTX 1043 +#define ERR_MISSING_EBDT 1044 + +#define ERR_INVALID_CMAP 1060 +#define ERR_INVALID_GLYF 1061 +#define ERR_INVALID_HEAD 1062 +#define ERR_INVALID_HHEA 1063 +#define ERR_INVALID_HMTX 1064 +#define ERR_INVALID_LOCA 1065 +#define ERR_INVALID_MAXP 1066 +#define ERR_INVALID_NAME 1067 +#define ERR_INVALID_POST 1068 +#define ERR_INVALID_OS2 1069 +#define ERR_INVALID_VHEA 1070 +#define ERR_INVALID_VMTX 1071 +#define ERR_INVALID_HHEA_OR_VHEA 1072 +#define ERR_INVALID_HMTX_OR_VMTX 1073 + +#define ERR_INVALID_TTO 1080 +#define ERR_INVALID_GSUB 1081 +#define ERR_INVALID_GPOS 1082 +#define ERR_INVALID_GDEF 1083 +#define ERR_INVALID_JSTF 1084 +#define ERR_INVALID_BASE 1085 +#define ERR_INVALID_EBLC 1086 +#define ERR_INVALID_LTSH 1087 +#define ERR_INVALID_VDMX 1088 +#define ERR_INVALID_HDMX 1089 + +#define ERR_PARAMETER0 1100 /* calling function argument 0 is invalid */ +#define ERR_PARAMETER1 1101 /* calling function argument 1 is invalid */ +#define ERR_PARAMETER2 1102 /* calling function argument 2 is invalid */ +#define ERR_PARAMETER3 1103 /* calling function argument 3 is invalid */ +#define ERR_PARAMETER4 1104 /* calling function argument 4 is invalid */ +#define ERR_PARAMETER5 1105 /* calling function argument 5 is invalid */ +#define ERR_PARAMETER6 1106 /* calling function argument 6 is invalid */ +#define ERR_PARAMETER7 1107 /* calling function argument 7 is invalid */ +#define ERR_PARAMETER8 1108 /* calling function argument 8 is invalid */ +#define ERR_PARAMETER9 1109 /* calling function argument 9 is invalid */ +#define ERR_PARAMETER10 1110 /* calling function argument 10 is invalid */ +#define ERR_PARAMETER11 1111 /* calling function argument 11 is invalid */ +#define ERR_PARAMETER12 1112 /* calling function argument 12 is invalid */ +#define ERR_PARAMETER13 1113 /* calling function argument 13 is invalid */ +#define ERR_PARAMETER14 1114 /* calling function argument 14 is invalid */ +#define ERR_PARAMETER15 1115 /* calling function argument 15 is invalid */ +#define ERR_PARAMETER16 1116 /* calling function argument 16 is invalid */ +#endif /* ERR_GENERIC */ + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* FONTSUB_DOT_H_DEFINED */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrm.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrm.h new file mode 100644 index 0000000000000000000000000000000000000000..9822b7d45edff76cbc79e23d367f8cc0ed37d795 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrm.h @@ -0,0 +1,3627 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __fsrm_h__ +#define __fsrm_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFsrmObject_FWD_DEFINED__ +#define __IFsrmObject_FWD_DEFINED__ +typedef interface IFsrmObject IFsrmObject; + +#endif /* __IFsrmObject_FWD_DEFINED__ */ + + +#ifndef __IFsrmCollection_FWD_DEFINED__ +#define __IFsrmCollection_FWD_DEFINED__ +typedef interface IFsrmCollection IFsrmCollection; + +#endif /* __IFsrmCollection_FWD_DEFINED__ */ + + +#ifndef __IFsrmMutableCollection_FWD_DEFINED__ +#define __IFsrmMutableCollection_FWD_DEFINED__ +typedef interface IFsrmMutableCollection IFsrmMutableCollection; + +#endif /* __IFsrmMutableCollection_FWD_DEFINED__ */ + + +#ifndef __IFsrmCommittableCollection_FWD_DEFINED__ +#define __IFsrmCommittableCollection_FWD_DEFINED__ +typedef interface IFsrmCommittableCollection IFsrmCommittableCollection; + +#endif /* __IFsrmCommittableCollection_FWD_DEFINED__ */ + + +#ifndef __IFsrmAction_FWD_DEFINED__ +#define __IFsrmAction_FWD_DEFINED__ +typedef interface IFsrmAction IFsrmAction; + +#endif /* __IFsrmAction_FWD_DEFINED__ */ + + +#ifndef __IFsrmActionEmail_FWD_DEFINED__ +#define __IFsrmActionEmail_FWD_DEFINED__ +typedef interface IFsrmActionEmail IFsrmActionEmail; + +#endif /* __IFsrmActionEmail_FWD_DEFINED__ */ + + +#ifndef __IFsrmActionEmail2_FWD_DEFINED__ +#define __IFsrmActionEmail2_FWD_DEFINED__ +typedef interface IFsrmActionEmail2 IFsrmActionEmail2; + +#endif /* __IFsrmActionEmail2_FWD_DEFINED__ */ + + +#ifndef __IFsrmActionReport_FWD_DEFINED__ +#define __IFsrmActionReport_FWD_DEFINED__ +typedef interface IFsrmActionReport IFsrmActionReport; + +#endif /* __IFsrmActionReport_FWD_DEFINED__ */ + + +#ifndef __IFsrmActionEventLog_FWD_DEFINED__ +#define __IFsrmActionEventLog_FWD_DEFINED__ +typedef interface IFsrmActionEventLog IFsrmActionEventLog; + +#endif /* __IFsrmActionEventLog_FWD_DEFINED__ */ + + +#ifndef __IFsrmActionCommand_FWD_DEFINED__ +#define __IFsrmActionCommand_FWD_DEFINED__ +typedef interface IFsrmActionCommand IFsrmActionCommand; + +#endif /* __IFsrmActionCommand_FWD_DEFINED__ */ + + +#ifndef __IFsrmSetting_FWD_DEFINED__ +#define __IFsrmSetting_FWD_DEFINED__ +typedef interface IFsrmSetting IFsrmSetting; + +#endif /* __IFsrmSetting_FWD_DEFINED__ */ + + +#ifndef __IFsrmPathMapper_FWD_DEFINED__ +#define __IFsrmPathMapper_FWD_DEFINED__ +typedef interface IFsrmPathMapper IFsrmPathMapper; + +#endif /* __IFsrmPathMapper_FWD_DEFINED__ */ + + +#ifndef __IFsrmExportImport_FWD_DEFINED__ +#define __IFsrmExportImport_FWD_DEFINED__ +typedef interface IFsrmExportImport IFsrmExportImport; + +#endif /* __IFsrmExportImport_FWD_DEFINED__ */ + + +#ifndef __IFsrmDerivedObjectsResult_FWD_DEFINED__ +#define __IFsrmDerivedObjectsResult_FWD_DEFINED__ +typedef interface IFsrmDerivedObjectsResult IFsrmDerivedObjectsResult; + +#endif /* __IFsrmDerivedObjectsResult_FWD_DEFINED__ */ + + +#ifndef __IFsrmAccessDeniedRemediationClient_FWD_DEFINED__ +#define __IFsrmAccessDeniedRemediationClient_FWD_DEFINED__ +typedef interface IFsrmAccessDeniedRemediationClient IFsrmAccessDeniedRemediationClient; + +#endif /* __IFsrmAccessDeniedRemediationClient_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "fsrmenums.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_fsrm_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + + + + + + +#define FSRM_DISPID_FEATURE_MASK ( 0xf000000 ) + +#define FSRM_DISPID_INTERFACE_A_MASK ( 0xf00000 ) + +#define FSRM_DISPID_INTERFACE_B_MASK ( 0xf0000 ) + +#define FSRM_DISPID_INTERFACE_C_MASK ( 0xf000 ) + +#define FSRM_DISPID_INTERFACE_D_MASK ( 0xf00 ) + +#define FSRM_DISPID_INTERFACE_MASK ( ( ( ( FSRM_DISPID_INTERFACE_A_MASK | FSRM_DISPID_INTERFACE_B_MASK ) | FSRM_DISPID_INTERFACE_C_MASK ) | FSRM_DISPID_INTERFACE_D_MASK ) ) + +#define FSRM_DISPID_IS_PROPERTY ( 0x80 ) + +#define FSRM_DISPID_METHOD_NUM_MASK ( 0x7f ) + +#define FSRM_DISPID_METHOD_MASK ( ( FSRM_DISPID_IS_PROPERTY | FSRM_DISPID_METHOD_NUM_MASK ) ) + +#define FSRM_DISPID_FEATURE_GENERAL ( 0x1000000 ) + +#define FSRM_DISPID_FEATURE_QUOTA ( 0x2000000 ) + +#define FSRM_DISPID_FEATURE_FILESCREEN ( 0x3000000 ) + +#define FSRM_DISPID_FEATURE_REPORTS ( 0x4000000 ) + +#define FSRM_DISPID_FEATURE_CLASSIFICATION ( 0x5000000 ) + +#define FSRM_DISPID_FEATURE_PIPELINE ( 0x6000000 ) + +#define FSRM_DISPID_OBJECT ( ( FSRM_DISPID_FEATURE_GENERAL | 0x100000 ) ) + +#define FSRM_DISPID_COLLECTION ( ( FSRM_DISPID_FEATURE_GENERAL | 0x200000 ) ) + +#define FSRM_DISPID_COLLECTION_MUTABLE ( ( FSRM_DISPID_COLLECTION | 0x10000 ) ) + +#define FSRM_DISPID_COLLECTION_COMMITTABLE ( ( FSRM_DISPID_COLLECTION_MUTABLE | 0x1000 ) ) + +#define FSRM_DISPID_ACTION ( ( FSRM_DISPID_FEATURE_GENERAL | 0x300000 ) ) + +#define FSRM_DISPID_ACTION_EMAIL ( ( FSRM_DISPID_ACTION | 0x10000 ) ) + +#define FSRM_DISPID_ACTION_REPORT ( ( FSRM_DISPID_ACTION | 0x20000 ) ) + +#define FSRM_DISPID_ACTION_EVENTLOG ( ( FSRM_DISPID_ACTION | 0x30000 ) ) + +#define FSRM_DISPID_ACTION_COMMAND ( ( FSRM_DISPID_ACTION | 0x40000 ) ) + +#define FSRM_DISPID_ACTION_EMAIL2 ( ( FSRM_DISPID_ACTION | 0x50000 ) ) + +#define FSRM_DISPID_SETTING ( ( FSRM_DISPID_FEATURE_GENERAL | 0x400000 ) ) + +#define FSRM_DISPID_PATHMAPPER ( ( FSRM_DISPID_FEATURE_GENERAL | 0x500000 ) ) + +#define FSRM_DISPID_EXPORTIMPORT ( ( FSRM_DISPID_FEATURE_GENERAL | 0x600000 ) ) + +#define FSRM_DISPID_DERIVEDOBJECTSRESULT ( ( FSRM_DISPID_FEATURE_GENERAL | 0x700000 ) ) + +#define FSRM_DISPID_ADR ( ( FSRM_DISPID_FEATURE_GENERAL | 0x800000 ) ) + + + +extern RPC_IF_HANDLE __MIDL_itf_fsrm_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrm_0000_0000_v0_0_s_ifspec; + +#ifndef __IFsrmObject_INTERFACE_DEFINED__ +#define __IFsrmObject_INTERFACE_DEFINED__ + +/* interface IFsrmObject */ +/* [unique][helpstring][nonextensible][hidden][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22bcef93-4a3f-4183-89f9-2f8b8a628aee") + IFsrmObject : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *description) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR description) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Commit( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmObject * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmObject * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmObject * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmObject * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmObject * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmObject * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmObject * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmObject * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmObject * This); + + END_INTERFACE + } IFsrmObjectVtbl; + + interface IFsrmObject + { + CONST_VTBL struct IFsrmObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmObject_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmObject_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmObject_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmObject_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmObject_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmObject_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmObject_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmObject_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmObject_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmObject_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmCollection_INTERFACE_DEFINED__ +#define __IFsrmCollection_INTERFACE_DEFINED__ + +/* interface IFsrmCollection */ +/* [unique][helpstring][nonextensible][hidden][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f76fbf3b-8ddd-4b42-b05a-cb1c3ff1fee8") + IFsrmCollection : public IDispatch + { + public: + virtual /* [restricted][helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IUnknown **unknown) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long index, + /* [retval][out] */ __RPC__out VARIANT *item) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *count) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( + /* [retval][out] */ __RPC__out FsrmCollectionState *state) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WaitForCompletion( + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetById( + /* [in] */ FSRM_OBJECT_ID id, + /* [retval][out] */ __RPC__out VARIANT *entry) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmCollection, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFsrmCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **unknown); + + DECLSPEC_XFGVIRT(IFsrmCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFsrmCollection * This, + /* [in] */ long index, + /* [retval][out] */ __RPC__out VARIANT *item); + + DECLSPEC_XFGVIRT(IFsrmCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFsrmCollection * This, + /* [retval][out] */ __RPC__out long *count); + + DECLSPEC_XFGVIRT(IFsrmCollection, get_State) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in IFsrmCollection * This, + /* [retval][out] */ __RPC__out FsrmCollectionState *state); + + DECLSPEC_XFGVIRT(IFsrmCollection, Cancel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IFsrmCollection * This); + + DECLSPEC_XFGVIRT(IFsrmCollection, WaitForCompletion) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WaitForCompletion )( + __RPC__in IFsrmCollection * This, + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed); + + DECLSPEC_XFGVIRT(IFsrmCollection, GetById) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetById )( + __RPC__in IFsrmCollection * This, + /* [in] */ FSRM_OBJECT_ID id, + /* [retval][out] */ __RPC__out VARIANT *entry); + + END_INTERFACE + } IFsrmCollectionVtbl; + + interface IFsrmCollection + { + CONST_VTBL struct IFsrmCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmCollection_get__NewEnum(This,unknown) \ + ( (This)->lpVtbl -> get__NewEnum(This,unknown) ) + +#define IFsrmCollection_get_Item(This,index,item) \ + ( (This)->lpVtbl -> get_Item(This,index,item) ) + +#define IFsrmCollection_get_Count(This,count) \ + ( (This)->lpVtbl -> get_Count(This,count) ) + +#define IFsrmCollection_get_State(This,state) \ + ( (This)->lpVtbl -> get_State(This,state) ) + +#define IFsrmCollection_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IFsrmCollection_WaitForCompletion(This,waitSeconds,completed) \ + ( (This)->lpVtbl -> WaitForCompletion(This,waitSeconds,completed) ) + +#define IFsrmCollection_GetById(This,id,entry) \ + ( (This)->lpVtbl -> GetById(This,id,entry) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmMutableCollection_INTERFACE_DEFINED__ +#define __IFsrmMutableCollection_INTERFACE_DEFINED__ + +/* interface IFsrmMutableCollection */ +/* [unique][helpstring][nonextensible][hidden][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmMutableCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1bb617b8-3886-49dc-af82-a6c90fa35dda") + IFsrmMutableCollection : public IFsrmCollection + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ VARIANT item) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ long index) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveById( + /* [in] */ FSRM_OBJECT_ID id) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Clone( + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **collection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmMutableCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmMutableCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmMutableCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmMutableCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmMutableCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmMutableCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmMutableCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmMutableCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmCollection, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFsrmMutableCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **unknown); + + DECLSPEC_XFGVIRT(IFsrmCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFsrmMutableCollection * This, + /* [in] */ long index, + /* [retval][out] */ __RPC__out VARIANT *item); + + DECLSPEC_XFGVIRT(IFsrmCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFsrmMutableCollection * This, + /* [retval][out] */ __RPC__out long *count); + + DECLSPEC_XFGVIRT(IFsrmCollection, get_State) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in IFsrmMutableCollection * This, + /* [retval][out] */ __RPC__out FsrmCollectionState *state); + + DECLSPEC_XFGVIRT(IFsrmCollection, Cancel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IFsrmMutableCollection * This); + + DECLSPEC_XFGVIRT(IFsrmCollection, WaitForCompletion) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WaitForCompletion )( + __RPC__in IFsrmMutableCollection * This, + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed); + + DECLSPEC_XFGVIRT(IFsrmCollection, GetById) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetById )( + __RPC__in IFsrmMutableCollection * This, + /* [in] */ FSRM_OBJECT_ID id, + /* [retval][out] */ __RPC__out VARIANT *entry); + + DECLSPEC_XFGVIRT(IFsrmMutableCollection, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IFsrmMutableCollection * This, + /* [in] */ VARIANT item); + + DECLSPEC_XFGVIRT(IFsrmMutableCollection, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IFsrmMutableCollection * This, + /* [in] */ long index); + + DECLSPEC_XFGVIRT(IFsrmMutableCollection, RemoveById) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveById )( + __RPC__in IFsrmMutableCollection * This, + /* [in] */ FSRM_OBJECT_ID id); + + DECLSPEC_XFGVIRT(IFsrmMutableCollection, Clone) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IFsrmMutableCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **collection); + + END_INTERFACE + } IFsrmMutableCollectionVtbl; + + interface IFsrmMutableCollection + { + CONST_VTBL struct IFsrmMutableCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmMutableCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmMutableCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmMutableCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmMutableCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmMutableCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmMutableCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmMutableCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmMutableCollection_get__NewEnum(This,unknown) \ + ( (This)->lpVtbl -> get__NewEnum(This,unknown) ) + +#define IFsrmMutableCollection_get_Item(This,index,item) \ + ( (This)->lpVtbl -> get_Item(This,index,item) ) + +#define IFsrmMutableCollection_get_Count(This,count) \ + ( (This)->lpVtbl -> get_Count(This,count) ) + +#define IFsrmMutableCollection_get_State(This,state) \ + ( (This)->lpVtbl -> get_State(This,state) ) + +#define IFsrmMutableCollection_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IFsrmMutableCollection_WaitForCompletion(This,waitSeconds,completed) \ + ( (This)->lpVtbl -> WaitForCompletion(This,waitSeconds,completed) ) + +#define IFsrmMutableCollection_GetById(This,id,entry) \ + ( (This)->lpVtbl -> GetById(This,id,entry) ) + + +#define IFsrmMutableCollection_Add(This,item) \ + ( (This)->lpVtbl -> Add(This,item) ) + +#define IFsrmMutableCollection_Remove(This,index) \ + ( (This)->lpVtbl -> Remove(This,index) ) + +#define IFsrmMutableCollection_RemoveById(This,id) \ + ( (This)->lpVtbl -> RemoveById(This,id) ) + +#define IFsrmMutableCollection_Clone(This,collection) \ + ( (This)->lpVtbl -> Clone(This,collection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmMutableCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmCommittableCollection_INTERFACE_DEFINED__ +#define __IFsrmCommittableCollection_INTERFACE_DEFINED__ + +/* interface IFsrmCommittableCollection */ +/* [unique][helpstring][nonextensible][hidden][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmCommittableCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("96deb3b5-8b91-4a2a-9d93-80a35d8aa847") + IFsrmCommittableCollection : public IFsrmMutableCollection + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Commit( + /* [in] */ FsrmCommitOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **results) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmCommittableCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmCommittableCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmCommittableCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmCommittableCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmCommittableCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmCommittableCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmCommittableCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmCommittableCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmCollection, get__NewEnum) + /* [restricted][helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFsrmCommittableCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IUnknown **unknown); + + DECLSPEC_XFGVIRT(IFsrmCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFsrmCommittableCollection * This, + /* [in] */ long index, + /* [retval][out] */ __RPC__out VARIANT *item); + + DECLSPEC_XFGVIRT(IFsrmCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFsrmCommittableCollection * This, + /* [retval][out] */ __RPC__out long *count); + + DECLSPEC_XFGVIRT(IFsrmCollection, get_State) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( + __RPC__in IFsrmCommittableCollection * This, + /* [retval][out] */ __RPC__out FsrmCollectionState *state); + + DECLSPEC_XFGVIRT(IFsrmCollection, Cancel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IFsrmCommittableCollection * This); + + DECLSPEC_XFGVIRT(IFsrmCollection, WaitForCompletion) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WaitForCompletion )( + __RPC__in IFsrmCommittableCollection * This, + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed); + + DECLSPEC_XFGVIRT(IFsrmCollection, GetById) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetById )( + __RPC__in IFsrmCommittableCollection * This, + /* [in] */ FSRM_OBJECT_ID id, + /* [retval][out] */ __RPC__out VARIANT *entry); + + DECLSPEC_XFGVIRT(IFsrmMutableCollection, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IFsrmCommittableCollection * This, + /* [in] */ VARIANT item); + + DECLSPEC_XFGVIRT(IFsrmMutableCollection, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IFsrmCommittableCollection * This, + /* [in] */ long index); + + DECLSPEC_XFGVIRT(IFsrmMutableCollection, RemoveById) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveById )( + __RPC__in IFsrmCommittableCollection * This, + /* [in] */ FSRM_OBJECT_ID id); + + DECLSPEC_XFGVIRT(IFsrmMutableCollection, Clone) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IFsrmCommittableCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **collection); + + DECLSPEC_XFGVIRT(IFsrmCommittableCollection, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmCommittableCollection * This, + /* [in] */ FsrmCommitOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **results); + + END_INTERFACE + } IFsrmCommittableCollectionVtbl; + + interface IFsrmCommittableCollection + { + CONST_VTBL struct IFsrmCommittableCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmCommittableCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmCommittableCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmCommittableCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmCommittableCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmCommittableCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmCommittableCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmCommittableCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmCommittableCollection_get__NewEnum(This,unknown) \ + ( (This)->lpVtbl -> get__NewEnum(This,unknown) ) + +#define IFsrmCommittableCollection_get_Item(This,index,item) \ + ( (This)->lpVtbl -> get_Item(This,index,item) ) + +#define IFsrmCommittableCollection_get_Count(This,count) \ + ( (This)->lpVtbl -> get_Count(This,count) ) + +#define IFsrmCommittableCollection_get_State(This,state) \ + ( (This)->lpVtbl -> get_State(This,state) ) + +#define IFsrmCommittableCollection_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IFsrmCommittableCollection_WaitForCompletion(This,waitSeconds,completed) \ + ( (This)->lpVtbl -> WaitForCompletion(This,waitSeconds,completed) ) + +#define IFsrmCommittableCollection_GetById(This,id,entry) \ + ( (This)->lpVtbl -> GetById(This,id,entry) ) + + +#define IFsrmCommittableCollection_Add(This,item) \ + ( (This)->lpVtbl -> Add(This,item) ) + +#define IFsrmCommittableCollection_Remove(This,index) \ + ( (This)->lpVtbl -> Remove(This,index) ) + +#define IFsrmCommittableCollection_RemoveById(This,id) \ + ( (This)->lpVtbl -> RemoveById(This,id) ) + +#define IFsrmCommittableCollection_Clone(This,collection) \ + ( (This)->lpVtbl -> Clone(This,collection) ) + + +#define IFsrmCommittableCollection_Commit(This,options,results) \ + ( (This)->lpVtbl -> Commit(This,options,results) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmCommittableCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmAction_INTERFACE_DEFINED__ +#define __IFsrmAction_INTERFACE_DEFINED__ + +/* interface IFsrmAction */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmAction; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6cd6408a-ae60-463b-9ef1-e117534d69dc") + IFsrmAction : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Id( + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActionType( + /* [retval][out] */ __RPC__out FsrmActionType *actionType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RunLimitInterval( + /* [retval][out] */ __RPC__out long *minutes) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RunLimitInterval( + /* [in] */ long minutes) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmActionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmAction * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmAction * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmAction * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmAction * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmAction * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmAction * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmAction * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmAction, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmAction * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmAction, get_ActionType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionType )( + __RPC__in IFsrmAction * This, + /* [retval][out] */ __RPC__out FsrmActionType *actionType); + + DECLSPEC_XFGVIRT(IFsrmAction, get_RunLimitInterval) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RunLimitInterval )( + __RPC__in IFsrmAction * This, + /* [retval][out] */ __RPC__out long *minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, put_RunLimitInterval) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RunLimitInterval )( + __RPC__in IFsrmAction * This, + /* [in] */ long minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmAction * This); + + END_INTERFACE + } IFsrmActionVtbl; + + interface IFsrmAction + { + CONST_VTBL struct IFsrmActionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmAction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmAction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmAction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmAction_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmAction_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmAction_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmAction_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmAction_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmAction_get_ActionType(This,actionType) \ + ( (This)->lpVtbl -> get_ActionType(This,actionType) ) + +#define IFsrmAction_get_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> get_RunLimitInterval(This,minutes) ) + +#define IFsrmAction_put_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> put_RunLimitInterval(This,minutes) ) + +#define IFsrmAction_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmAction_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmActionEmail_INTERFACE_DEFINED__ +#define __IFsrmActionEmail_INTERFACE_DEFINED__ + +/* interface IFsrmActionEmail */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmActionEmail; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d646567d-26ae-4caa-9f84-4e0aad207fca") + IFsrmActionEmail : public IFsrmAction + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MailFrom( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailFrom) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MailFrom( + /* [in] */ __RPC__in BSTR mailFrom) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MailReplyTo( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailReplyTo) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MailReplyTo( + /* [in] */ __RPC__in BSTR mailReplyTo) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MailTo( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MailTo( + /* [in] */ __RPC__in BSTR mailTo) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MailCc( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailCc) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MailCc( + /* [in] */ __RPC__in BSTR mailCc) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MailBcc( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailBcc) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MailBcc( + /* [in] */ __RPC__in BSTR mailBcc) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MailSubject( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailSubject) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MailSubject( + /* [in] */ __RPC__in BSTR mailSubject) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MessageText( + /* [retval][out] */ __RPC__deref_out_opt BSTR *messageText) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MessageText( + /* [in] */ __RPC__in BSTR messageText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmActionEmailVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmActionEmail * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmActionEmail * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmActionEmail * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmActionEmail * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmAction, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmActionEmail * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmAction, get_ActionType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionType )( + __RPC__in IFsrmActionEmail * This, + /* [retval][out] */ __RPC__out FsrmActionType *actionType); + + DECLSPEC_XFGVIRT(IFsrmAction, get_RunLimitInterval) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RunLimitInterval )( + __RPC__in IFsrmActionEmail * This, + /* [retval][out] */ __RPC__out long *minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, put_RunLimitInterval) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RunLimitInterval )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ long minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmActionEmail * This); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailFrom) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailFrom )( + __RPC__in IFsrmActionEmail * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailFrom); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailFrom) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailFrom )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ __RPC__in BSTR mailFrom); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailReplyTo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailReplyTo )( + __RPC__in IFsrmActionEmail * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailReplyTo); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailReplyTo) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailReplyTo )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ __RPC__in BSTR mailReplyTo); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailTo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailTo )( + __RPC__in IFsrmActionEmail * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailTo) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailTo )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ __RPC__in BSTR mailTo); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailCc) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailCc )( + __RPC__in IFsrmActionEmail * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailCc); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailCc) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailCc )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ __RPC__in BSTR mailCc); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailBcc) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailBcc )( + __RPC__in IFsrmActionEmail * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailBcc); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailBcc) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailBcc )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ __RPC__in BSTR mailBcc); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailSubject) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailSubject )( + __RPC__in IFsrmActionEmail * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailSubject); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailSubject) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailSubject )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ __RPC__in BSTR mailSubject); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MessageText) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MessageText )( + __RPC__in IFsrmActionEmail * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *messageText); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MessageText) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MessageText )( + __RPC__in IFsrmActionEmail * This, + /* [in] */ __RPC__in BSTR messageText); + + END_INTERFACE + } IFsrmActionEmailVtbl; + + interface IFsrmActionEmail + { + CONST_VTBL struct IFsrmActionEmailVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmActionEmail_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmActionEmail_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmActionEmail_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmActionEmail_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmActionEmail_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmActionEmail_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmActionEmail_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmActionEmail_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmActionEmail_get_ActionType(This,actionType) \ + ( (This)->lpVtbl -> get_ActionType(This,actionType) ) + +#define IFsrmActionEmail_get_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> get_RunLimitInterval(This,minutes) ) + +#define IFsrmActionEmail_put_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> put_RunLimitInterval(This,minutes) ) + +#define IFsrmActionEmail_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + + +#define IFsrmActionEmail_get_MailFrom(This,mailFrom) \ + ( (This)->lpVtbl -> get_MailFrom(This,mailFrom) ) + +#define IFsrmActionEmail_put_MailFrom(This,mailFrom) \ + ( (This)->lpVtbl -> put_MailFrom(This,mailFrom) ) + +#define IFsrmActionEmail_get_MailReplyTo(This,mailReplyTo) \ + ( (This)->lpVtbl -> get_MailReplyTo(This,mailReplyTo) ) + +#define IFsrmActionEmail_put_MailReplyTo(This,mailReplyTo) \ + ( (This)->lpVtbl -> put_MailReplyTo(This,mailReplyTo) ) + +#define IFsrmActionEmail_get_MailTo(This,mailTo) \ + ( (This)->lpVtbl -> get_MailTo(This,mailTo) ) + +#define IFsrmActionEmail_put_MailTo(This,mailTo) \ + ( (This)->lpVtbl -> put_MailTo(This,mailTo) ) + +#define IFsrmActionEmail_get_MailCc(This,mailCc) \ + ( (This)->lpVtbl -> get_MailCc(This,mailCc) ) + +#define IFsrmActionEmail_put_MailCc(This,mailCc) \ + ( (This)->lpVtbl -> put_MailCc(This,mailCc) ) + +#define IFsrmActionEmail_get_MailBcc(This,mailBcc) \ + ( (This)->lpVtbl -> get_MailBcc(This,mailBcc) ) + +#define IFsrmActionEmail_put_MailBcc(This,mailBcc) \ + ( (This)->lpVtbl -> put_MailBcc(This,mailBcc) ) + +#define IFsrmActionEmail_get_MailSubject(This,mailSubject) \ + ( (This)->lpVtbl -> get_MailSubject(This,mailSubject) ) + +#define IFsrmActionEmail_put_MailSubject(This,mailSubject) \ + ( (This)->lpVtbl -> put_MailSubject(This,mailSubject) ) + +#define IFsrmActionEmail_get_MessageText(This,messageText) \ + ( (This)->lpVtbl -> get_MessageText(This,messageText) ) + +#define IFsrmActionEmail_put_MessageText(This,messageText) \ + ( (This)->lpVtbl -> put_MessageText(This,messageText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmActionEmail_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmActionEmail2_INTERFACE_DEFINED__ +#define __IFsrmActionEmail2_INTERFACE_DEFINED__ + +/* interface IFsrmActionEmail2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmActionEmail2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8276702f-2532-4839-89bf-4872609a2ea4") + IFsrmActionEmail2 : public IFsrmActionEmail + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AttachmentFileListSize( + /* [retval][out] */ __RPC__out long *attachmentFileListSize) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AttachmentFileListSize( + /* [in] */ long attachmentFileListSize) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmActionEmail2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmActionEmail2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmActionEmail2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmActionEmail2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmActionEmail2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmAction, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmAction, get_ActionType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionType )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__out FsrmActionType *actionType); + + DECLSPEC_XFGVIRT(IFsrmAction, get_RunLimitInterval) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RunLimitInterval )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__out long *minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, put_RunLimitInterval) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RunLimitInterval )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ long minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmActionEmail2 * This); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailFrom) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailFrom )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailFrom); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailFrom) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailFrom )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ __RPC__in BSTR mailFrom); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailReplyTo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailReplyTo )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailReplyTo); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailReplyTo) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailReplyTo )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ __RPC__in BSTR mailReplyTo); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailTo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailTo )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailTo) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailTo )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ __RPC__in BSTR mailTo); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailCc) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailCc )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailCc); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailCc) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailCc )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ __RPC__in BSTR mailCc); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailBcc) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailBcc )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailBcc); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailBcc) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailBcc )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ __RPC__in BSTR mailBcc); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MailSubject) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailSubject )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailSubject); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MailSubject) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailSubject )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ __RPC__in BSTR mailSubject); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, get_MessageText) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MessageText )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *messageText); + + DECLSPEC_XFGVIRT(IFsrmActionEmail, put_MessageText) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MessageText )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ __RPC__in BSTR messageText); + + DECLSPEC_XFGVIRT(IFsrmActionEmail2, get_AttachmentFileListSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AttachmentFileListSize )( + __RPC__in IFsrmActionEmail2 * This, + /* [retval][out] */ __RPC__out long *attachmentFileListSize); + + DECLSPEC_XFGVIRT(IFsrmActionEmail2, put_AttachmentFileListSize) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AttachmentFileListSize )( + __RPC__in IFsrmActionEmail2 * This, + /* [in] */ long attachmentFileListSize); + + END_INTERFACE + } IFsrmActionEmail2Vtbl; + + interface IFsrmActionEmail2 + { + CONST_VTBL struct IFsrmActionEmail2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmActionEmail2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmActionEmail2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmActionEmail2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmActionEmail2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmActionEmail2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmActionEmail2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmActionEmail2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmActionEmail2_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmActionEmail2_get_ActionType(This,actionType) \ + ( (This)->lpVtbl -> get_ActionType(This,actionType) ) + +#define IFsrmActionEmail2_get_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> get_RunLimitInterval(This,minutes) ) + +#define IFsrmActionEmail2_put_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> put_RunLimitInterval(This,minutes) ) + +#define IFsrmActionEmail2_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + + +#define IFsrmActionEmail2_get_MailFrom(This,mailFrom) \ + ( (This)->lpVtbl -> get_MailFrom(This,mailFrom) ) + +#define IFsrmActionEmail2_put_MailFrom(This,mailFrom) \ + ( (This)->lpVtbl -> put_MailFrom(This,mailFrom) ) + +#define IFsrmActionEmail2_get_MailReplyTo(This,mailReplyTo) \ + ( (This)->lpVtbl -> get_MailReplyTo(This,mailReplyTo) ) + +#define IFsrmActionEmail2_put_MailReplyTo(This,mailReplyTo) \ + ( (This)->lpVtbl -> put_MailReplyTo(This,mailReplyTo) ) + +#define IFsrmActionEmail2_get_MailTo(This,mailTo) \ + ( (This)->lpVtbl -> get_MailTo(This,mailTo) ) + +#define IFsrmActionEmail2_put_MailTo(This,mailTo) \ + ( (This)->lpVtbl -> put_MailTo(This,mailTo) ) + +#define IFsrmActionEmail2_get_MailCc(This,mailCc) \ + ( (This)->lpVtbl -> get_MailCc(This,mailCc) ) + +#define IFsrmActionEmail2_put_MailCc(This,mailCc) \ + ( (This)->lpVtbl -> put_MailCc(This,mailCc) ) + +#define IFsrmActionEmail2_get_MailBcc(This,mailBcc) \ + ( (This)->lpVtbl -> get_MailBcc(This,mailBcc) ) + +#define IFsrmActionEmail2_put_MailBcc(This,mailBcc) \ + ( (This)->lpVtbl -> put_MailBcc(This,mailBcc) ) + +#define IFsrmActionEmail2_get_MailSubject(This,mailSubject) \ + ( (This)->lpVtbl -> get_MailSubject(This,mailSubject) ) + +#define IFsrmActionEmail2_put_MailSubject(This,mailSubject) \ + ( (This)->lpVtbl -> put_MailSubject(This,mailSubject) ) + +#define IFsrmActionEmail2_get_MessageText(This,messageText) \ + ( (This)->lpVtbl -> get_MessageText(This,messageText) ) + +#define IFsrmActionEmail2_put_MessageText(This,messageText) \ + ( (This)->lpVtbl -> put_MessageText(This,messageText) ) + + +#define IFsrmActionEmail2_get_AttachmentFileListSize(This,attachmentFileListSize) \ + ( (This)->lpVtbl -> get_AttachmentFileListSize(This,attachmentFileListSize) ) + +#define IFsrmActionEmail2_put_AttachmentFileListSize(This,attachmentFileListSize) \ + ( (This)->lpVtbl -> put_AttachmentFileListSize(This,attachmentFileListSize) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmActionEmail2_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmActionReport_INTERFACE_DEFINED__ +#define __IFsrmActionReport_INTERFACE_DEFINED__ + +/* interface IFsrmActionReport */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmActionReport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2dbe63c4-b340-48a0-a5b0-158e07fc567e") + IFsrmActionReport : public IFsrmAction + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReportTypes( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *reportTypes) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ReportTypes( + /* [in] */ __RPC__in SAFEARRAY * reportTypes) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MailTo( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MailTo( + /* [in] */ __RPC__in BSTR mailTo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmActionReportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmActionReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmActionReport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmActionReport * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmActionReport * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmActionReport * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmActionReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmActionReport * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmAction, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmActionReport * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmAction, get_ActionType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionType )( + __RPC__in IFsrmActionReport * This, + /* [retval][out] */ __RPC__out FsrmActionType *actionType); + + DECLSPEC_XFGVIRT(IFsrmAction, get_RunLimitInterval) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RunLimitInterval )( + __RPC__in IFsrmActionReport * This, + /* [retval][out] */ __RPC__out long *minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, put_RunLimitInterval) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RunLimitInterval )( + __RPC__in IFsrmActionReport * This, + /* [in] */ long minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmActionReport * This); + + DECLSPEC_XFGVIRT(IFsrmActionReport, get_ReportTypes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportTypes )( + __RPC__in IFsrmActionReport * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *reportTypes); + + DECLSPEC_XFGVIRT(IFsrmActionReport, put_ReportTypes) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReportTypes )( + __RPC__in IFsrmActionReport * This, + /* [in] */ __RPC__in SAFEARRAY * reportTypes); + + DECLSPEC_XFGVIRT(IFsrmActionReport, get_MailTo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailTo )( + __RPC__in IFsrmActionReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo); + + DECLSPEC_XFGVIRT(IFsrmActionReport, put_MailTo) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailTo )( + __RPC__in IFsrmActionReport * This, + /* [in] */ __RPC__in BSTR mailTo); + + END_INTERFACE + } IFsrmActionReportVtbl; + + interface IFsrmActionReport + { + CONST_VTBL struct IFsrmActionReportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmActionReport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmActionReport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmActionReport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmActionReport_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmActionReport_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmActionReport_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmActionReport_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmActionReport_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmActionReport_get_ActionType(This,actionType) \ + ( (This)->lpVtbl -> get_ActionType(This,actionType) ) + +#define IFsrmActionReport_get_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> get_RunLimitInterval(This,minutes) ) + +#define IFsrmActionReport_put_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> put_RunLimitInterval(This,minutes) ) + +#define IFsrmActionReport_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + + +#define IFsrmActionReport_get_ReportTypes(This,reportTypes) \ + ( (This)->lpVtbl -> get_ReportTypes(This,reportTypes) ) + +#define IFsrmActionReport_put_ReportTypes(This,reportTypes) \ + ( (This)->lpVtbl -> put_ReportTypes(This,reportTypes) ) + +#define IFsrmActionReport_get_MailTo(This,mailTo) \ + ( (This)->lpVtbl -> get_MailTo(This,mailTo) ) + +#define IFsrmActionReport_put_MailTo(This,mailTo) \ + ( (This)->lpVtbl -> put_MailTo(This,mailTo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmActionReport_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmActionEventLog_INTERFACE_DEFINED__ +#define __IFsrmActionEventLog_INTERFACE_DEFINED__ + +/* interface IFsrmActionEventLog */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmActionEventLog; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4c8f96c3-5d94-4f37-a4f4-f56ab463546f") + IFsrmActionEventLog : public IFsrmAction + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EventType( + /* [retval][out] */ __RPC__out FsrmEventType *eventType) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_EventType( + /* [in] */ FsrmEventType eventType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MessageText( + /* [retval][out] */ __RPC__deref_out_opt BSTR *messageText) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MessageText( + /* [in] */ __RPC__in BSTR messageText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmActionEventLogVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmActionEventLog * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmActionEventLog * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmActionEventLog * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmActionEventLog * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmActionEventLog * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmActionEventLog * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmActionEventLog * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmAction, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmActionEventLog * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmAction, get_ActionType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionType )( + __RPC__in IFsrmActionEventLog * This, + /* [retval][out] */ __RPC__out FsrmActionType *actionType); + + DECLSPEC_XFGVIRT(IFsrmAction, get_RunLimitInterval) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RunLimitInterval )( + __RPC__in IFsrmActionEventLog * This, + /* [retval][out] */ __RPC__out long *minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, put_RunLimitInterval) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RunLimitInterval )( + __RPC__in IFsrmActionEventLog * This, + /* [in] */ long minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmActionEventLog * This); + + DECLSPEC_XFGVIRT(IFsrmActionEventLog, get_EventType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EventType )( + __RPC__in IFsrmActionEventLog * This, + /* [retval][out] */ __RPC__out FsrmEventType *eventType); + + DECLSPEC_XFGVIRT(IFsrmActionEventLog, put_EventType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EventType )( + __RPC__in IFsrmActionEventLog * This, + /* [in] */ FsrmEventType eventType); + + DECLSPEC_XFGVIRT(IFsrmActionEventLog, get_MessageText) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MessageText )( + __RPC__in IFsrmActionEventLog * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *messageText); + + DECLSPEC_XFGVIRT(IFsrmActionEventLog, put_MessageText) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MessageText )( + __RPC__in IFsrmActionEventLog * This, + /* [in] */ __RPC__in BSTR messageText); + + END_INTERFACE + } IFsrmActionEventLogVtbl; + + interface IFsrmActionEventLog + { + CONST_VTBL struct IFsrmActionEventLogVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmActionEventLog_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmActionEventLog_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmActionEventLog_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmActionEventLog_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmActionEventLog_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmActionEventLog_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmActionEventLog_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmActionEventLog_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmActionEventLog_get_ActionType(This,actionType) \ + ( (This)->lpVtbl -> get_ActionType(This,actionType) ) + +#define IFsrmActionEventLog_get_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> get_RunLimitInterval(This,minutes) ) + +#define IFsrmActionEventLog_put_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> put_RunLimitInterval(This,minutes) ) + +#define IFsrmActionEventLog_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + + +#define IFsrmActionEventLog_get_EventType(This,eventType) \ + ( (This)->lpVtbl -> get_EventType(This,eventType) ) + +#define IFsrmActionEventLog_put_EventType(This,eventType) \ + ( (This)->lpVtbl -> put_EventType(This,eventType) ) + +#define IFsrmActionEventLog_get_MessageText(This,messageText) \ + ( (This)->lpVtbl -> get_MessageText(This,messageText) ) + +#define IFsrmActionEventLog_put_MessageText(This,messageText) \ + ( (This)->lpVtbl -> put_MessageText(This,messageText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmActionEventLog_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmActionCommand_INTERFACE_DEFINED__ +#define __IFsrmActionCommand_INTERFACE_DEFINED__ + +/* interface IFsrmActionCommand */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmActionCommand; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("12937789-e247-4917-9c20-f3ee9c7ee783") + IFsrmActionCommand : public IFsrmAction + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExecutablePath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *executablePath) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ExecutablePath( + /* [in] */ __RPC__in BSTR executablePath) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Arguments( + /* [retval][out] */ __RPC__deref_out_opt BSTR *arguments) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Arguments( + /* [in] */ __RPC__in BSTR arguments) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Account( + /* [retval][out] */ __RPC__out FsrmAccountType *account) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Account( + /* [in] */ FsrmAccountType account) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WorkingDirectory( + /* [retval][out] */ __RPC__deref_out_opt BSTR *workingDirectory) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_WorkingDirectory( + /* [in] */ __RPC__in BSTR workingDirectory) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MonitorCommand( + /* [retval][out] */ __RPC__out VARIANT_BOOL *monitorCommand) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MonitorCommand( + /* [in] */ VARIANT_BOOL monitorCommand) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_KillTimeOut( + /* [retval][out] */ __RPC__out long *minutes) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_KillTimeOut( + /* [in] */ long minutes) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LogResult( + /* [retval][out] */ __RPC__out VARIANT_BOOL *logResults) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LogResult( + /* [in] */ VARIANT_BOOL logResults) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmActionCommandVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmActionCommand * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmActionCommand * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmActionCommand * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmActionCommand * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmAction, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmActionCommand * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmAction, get_ActionType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionType )( + __RPC__in IFsrmActionCommand * This, + /* [retval][out] */ __RPC__out FsrmActionType *actionType); + + DECLSPEC_XFGVIRT(IFsrmAction, get_RunLimitInterval) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RunLimitInterval )( + __RPC__in IFsrmActionCommand * This, + /* [retval][out] */ __RPC__out long *minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, put_RunLimitInterval) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RunLimitInterval )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ long minutes); + + DECLSPEC_XFGVIRT(IFsrmAction, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmActionCommand * This); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, get_ExecutablePath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExecutablePath )( + __RPC__in IFsrmActionCommand * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *executablePath); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, put_ExecutablePath) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExecutablePath )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ __RPC__in BSTR executablePath); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, get_Arguments) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Arguments )( + __RPC__in IFsrmActionCommand * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *arguments); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, put_Arguments) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Arguments )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ __RPC__in BSTR arguments); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, get_Account) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Account )( + __RPC__in IFsrmActionCommand * This, + /* [retval][out] */ __RPC__out FsrmAccountType *account); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, put_Account) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Account )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ FsrmAccountType account); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, get_WorkingDirectory) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WorkingDirectory )( + __RPC__in IFsrmActionCommand * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *workingDirectory); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, put_WorkingDirectory) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_WorkingDirectory )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ __RPC__in BSTR workingDirectory); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, get_MonitorCommand) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MonitorCommand )( + __RPC__in IFsrmActionCommand * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *monitorCommand); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, put_MonitorCommand) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MonitorCommand )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ VARIANT_BOOL monitorCommand); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, get_KillTimeOut) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_KillTimeOut )( + __RPC__in IFsrmActionCommand * This, + /* [retval][out] */ __RPC__out long *minutes); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, put_KillTimeOut) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_KillTimeOut )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ long minutes); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, get_LogResult) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LogResult )( + __RPC__in IFsrmActionCommand * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *logResults); + + DECLSPEC_XFGVIRT(IFsrmActionCommand, put_LogResult) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LogResult )( + __RPC__in IFsrmActionCommand * This, + /* [in] */ VARIANT_BOOL logResults); + + END_INTERFACE + } IFsrmActionCommandVtbl; + + interface IFsrmActionCommand + { + CONST_VTBL struct IFsrmActionCommandVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmActionCommand_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmActionCommand_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmActionCommand_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmActionCommand_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmActionCommand_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmActionCommand_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmActionCommand_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmActionCommand_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmActionCommand_get_ActionType(This,actionType) \ + ( (This)->lpVtbl -> get_ActionType(This,actionType) ) + +#define IFsrmActionCommand_get_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> get_RunLimitInterval(This,minutes) ) + +#define IFsrmActionCommand_put_RunLimitInterval(This,minutes) \ + ( (This)->lpVtbl -> put_RunLimitInterval(This,minutes) ) + +#define IFsrmActionCommand_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + + +#define IFsrmActionCommand_get_ExecutablePath(This,executablePath) \ + ( (This)->lpVtbl -> get_ExecutablePath(This,executablePath) ) + +#define IFsrmActionCommand_put_ExecutablePath(This,executablePath) \ + ( (This)->lpVtbl -> put_ExecutablePath(This,executablePath) ) + +#define IFsrmActionCommand_get_Arguments(This,arguments) \ + ( (This)->lpVtbl -> get_Arguments(This,arguments) ) + +#define IFsrmActionCommand_put_Arguments(This,arguments) \ + ( (This)->lpVtbl -> put_Arguments(This,arguments) ) + +#define IFsrmActionCommand_get_Account(This,account) \ + ( (This)->lpVtbl -> get_Account(This,account) ) + +#define IFsrmActionCommand_put_Account(This,account) \ + ( (This)->lpVtbl -> put_Account(This,account) ) + +#define IFsrmActionCommand_get_WorkingDirectory(This,workingDirectory) \ + ( (This)->lpVtbl -> get_WorkingDirectory(This,workingDirectory) ) + +#define IFsrmActionCommand_put_WorkingDirectory(This,workingDirectory) \ + ( (This)->lpVtbl -> put_WorkingDirectory(This,workingDirectory) ) + +#define IFsrmActionCommand_get_MonitorCommand(This,monitorCommand) \ + ( (This)->lpVtbl -> get_MonitorCommand(This,monitorCommand) ) + +#define IFsrmActionCommand_put_MonitorCommand(This,monitorCommand) \ + ( (This)->lpVtbl -> put_MonitorCommand(This,monitorCommand) ) + +#define IFsrmActionCommand_get_KillTimeOut(This,minutes) \ + ( (This)->lpVtbl -> get_KillTimeOut(This,minutes) ) + +#define IFsrmActionCommand_put_KillTimeOut(This,minutes) \ + ( (This)->lpVtbl -> put_KillTimeOut(This,minutes) ) + +#define IFsrmActionCommand_get_LogResult(This,logResults) \ + ( (This)->lpVtbl -> get_LogResult(This,logResults) ) + +#define IFsrmActionCommand_put_LogResult(This,logResults) \ + ( (This)->lpVtbl -> put_LogResult(This,logResults) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmActionCommand_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmSetting_INTERFACE_DEFINED__ +#define __IFsrmSetting_INTERFACE_DEFINED__ + +/* interface IFsrmSetting */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmSetting; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f411d4fd-14be-4260-8c40-03b7c95e608a") + IFsrmSetting : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SmtpServer( + /* [retval][out] */ __RPC__deref_out_opt BSTR *smtpServer) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SmtpServer( + /* [in] */ __RPC__in BSTR smtpServer) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MailFrom( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailFrom) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MailFrom( + /* [in] */ __RPC__in BSTR mailFrom) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AdminEmail( + /* [retval][out] */ __RPC__deref_out_opt BSTR *adminEmail) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AdminEmail( + /* [in] */ __RPC__in BSTR adminEmail) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisableCommandLine( + /* [retval][out] */ __RPC__out VARIANT_BOOL *disableCommandLine) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DisableCommandLine( + /* [in] */ VARIANT_BOOL disableCommandLine) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnableScreeningAudit( + /* [retval][out] */ __RPC__out VARIANT_BOOL *enableScreeningAudit) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_EnableScreeningAudit( + /* [in] */ VARIANT_BOOL enableScreeningAudit) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EmailTest( + /* [in] */ __RPC__in BSTR mailTo) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetActionRunLimitInterval( + /* [in] */ FsrmActionType actionType, + /* [in] */ long delayTimeMinutes) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetActionRunLimitInterval( + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__out long *delayTimeMinutes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmSettingVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmSetting * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmSetting * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmSetting * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmSetting * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmSetting * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmSetting * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmSetting * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmSetting, get_SmtpServer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SmtpServer )( + __RPC__in IFsrmSetting * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *smtpServer); + + DECLSPEC_XFGVIRT(IFsrmSetting, put_SmtpServer) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SmtpServer )( + __RPC__in IFsrmSetting * This, + /* [in] */ __RPC__in BSTR smtpServer); + + DECLSPEC_XFGVIRT(IFsrmSetting, get_MailFrom) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailFrom )( + __RPC__in IFsrmSetting * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailFrom); + + DECLSPEC_XFGVIRT(IFsrmSetting, put_MailFrom) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailFrom )( + __RPC__in IFsrmSetting * This, + /* [in] */ __RPC__in BSTR mailFrom); + + DECLSPEC_XFGVIRT(IFsrmSetting, get_AdminEmail) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AdminEmail )( + __RPC__in IFsrmSetting * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *adminEmail); + + DECLSPEC_XFGVIRT(IFsrmSetting, put_AdminEmail) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AdminEmail )( + __RPC__in IFsrmSetting * This, + /* [in] */ __RPC__in BSTR adminEmail); + + DECLSPEC_XFGVIRT(IFsrmSetting, get_DisableCommandLine) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisableCommandLine )( + __RPC__in IFsrmSetting * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *disableCommandLine); + + DECLSPEC_XFGVIRT(IFsrmSetting, put_DisableCommandLine) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisableCommandLine )( + __RPC__in IFsrmSetting * This, + /* [in] */ VARIANT_BOOL disableCommandLine); + + DECLSPEC_XFGVIRT(IFsrmSetting, get_EnableScreeningAudit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnableScreeningAudit )( + __RPC__in IFsrmSetting * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *enableScreeningAudit); + + DECLSPEC_XFGVIRT(IFsrmSetting, put_EnableScreeningAudit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EnableScreeningAudit )( + __RPC__in IFsrmSetting * This, + /* [in] */ VARIANT_BOOL enableScreeningAudit); + + DECLSPEC_XFGVIRT(IFsrmSetting, EmailTest) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EmailTest )( + __RPC__in IFsrmSetting * This, + /* [in] */ __RPC__in BSTR mailTo); + + DECLSPEC_XFGVIRT(IFsrmSetting, SetActionRunLimitInterval) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetActionRunLimitInterval )( + __RPC__in IFsrmSetting * This, + /* [in] */ FsrmActionType actionType, + /* [in] */ long delayTimeMinutes); + + DECLSPEC_XFGVIRT(IFsrmSetting, GetActionRunLimitInterval) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetActionRunLimitInterval )( + __RPC__in IFsrmSetting * This, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__out long *delayTimeMinutes); + + END_INTERFACE + } IFsrmSettingVtbl; + + interface IFsrmSetting + { + CONST_VTBL struct IFsrmSettingVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmSetting_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmSetting_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmSetting_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmSetting_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmSetting_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmSetting_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmSetting_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmSetting_get_SmtpServer(This,smtpServer) \ + ( (This)->lpVtbl -> get_SmtpServer(This,smtpServer) ) + +#define IFsrmSetting_put_SmtpServer(This,smtpServer) \ + ( (This)->lpVtbl -> put_SmtpServer(This,smtpServer) ) + +#define IFsrmSetting_get_MailFrom(This,mailFrom) \ + ( (This)->lpVtbl -> get_MailFrom(This,mailFrom) ) + +#define IFsrmSetting_put_MailFrom(This,mailFrom) \ + ( (This)->lpVtbl -> put_MailFrom(This,mailFrom) ) + +#define IFsrmSetting_get_AdminEmail(This,adminEmail) \ + ( (This)->lpVtbl -> get_AdminEmail(This,adminEmail) ) + +#define IFsrmSetting_put_AdminEmail(This,adminEmail) \ + ( (This)->lpVtbl -> put_AdminEmail(This,adminEmail) ) + +#define IFsrmSetting_get_DisableCommandLine(This,disableCommandLine) \ + ( (This)->lpVtbl -> get_DisableCommandLine(This,disableCommandLine) ) + +#define IFsrmSetting_put_DisableCommandLine(This,disableCommandLine) \ + ( (This)->lpVtbl -> put_DisableCommandLine(This,disableCommandLine) ) + +#define IFsrmSetting_get_EnableScreeningAudit(This,enableScreeningAudit) \ + ( (This)->lpVtbl -> get_EnableScreeningAudit(This,enableScreeningAudit) ) + +#define IFsrmSetting_put_EnableScreeningAudit(This,enableScreeningAudit) \ + ( (This)->lpVtbl -> put_EnableScreeningAudit(This,enableScreeningAudit) ) + +#define IFsrmSetting_EmailTest(This,mailTo) \ + ( (This)->lpVtbl -> EmailTest(This,mailTo) ) + +#define IFsrmSetting_SetActionRunLimitInterval(This,actionType,delayTimeMinutes) \ + ( (This)->lpVtbl -> SetActionRunLimitInterval(This,actionType,delayTimeMinutes) ) + +#define IFsrmSetting_GetActionRunLimitInterval(This,actionType,delayTimeMinutes) \ + ( (This)->lpVtbl -> GetActionRunLimitInterval(This,actionType,delayTimeMinutes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmSetting_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmPathMapper_INTERFACE_DEFINED__ +#define __IFsrmPathMapper_INTERFACE_DEFINED__ + +/* interface IFsrmPathMapper */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmPathMapper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6f4dbfff-6920-4821-a6c3-b7e94c1fd60c") + IFsrmPathMapper : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSharePathsForLocalPath( + /* [in] */ __RPC__in BSTR localPath, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *sharePaths) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPathMapperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmPathMapper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmPathMapper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmPathMapper * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmPathMapper * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmPathMapper * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmPathMapper * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmPathMapper * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmPathMapper, GetSharePathsForLocalPath) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSharePathsForLocalPath )( + __RPC__in IFsrmPathMapper * This, + /* [in] */ __RPC__in BSTR localPath, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *sharePaths); + + END_INTERFACE + } IFsrmPathMapperVtbl; + + interface IFsrmPathMapper + { + CONST_VTBL struct IFsrmPathMapperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmPathMapper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmPathMapper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmPathMapper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmPathMapper_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmPathMapper_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmPathMapper_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmPathMapper_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmPathMapper_GetSharePathsForLocalPath(This,localPath,sharePaths) \ + ( (This)->lpVtbl -> GetSharePathsForLocalPath(This,localPath,sharePaths) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmPathMapper_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmExportImport_INTERFACE_DEFINED__ +#define __IFsrmExportImport_INTERFACE_DEFINED__ + +/* interface IFsrmExportImport */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmExportImport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("efcb0ab1-16c4-4a79-812c-725614c3306b") + IFsrmExportImport : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExportFileGroups( + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *fileGroupNamesSafeArray = 0, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost = (BSTR)L"") = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportFileGroups( + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *fileGroupNamesSafeArray, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileGroups) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExportFileScreenTemplates( + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *templateNamesSafeArray = 0, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost = (BSTR)L"") = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportFileScreenTemplates( + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *templateNamesSafeArray, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **templates) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExportQuotaTemplates( + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *templateNamesSafeArray = 0, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost = (BSTR)L"") = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportQuotaTemplates( + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *templateNamesSafeArray, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **templates) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmExportImportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmExportImport * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmExportImport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmExportImport * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmExportImport * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmExportImport * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmExportImport * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmExportImport * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmExportImport, ExportFileGroups) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExportFileGroups )( + __RPC__in IFsrmExportImport * This, + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *fileGroupNamesSafeArray, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost); + + DECLSPEC_XFGVIRT(IFsrmExportImport, ImportFileGroups) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportFileGroups )( + __RPC__in IFsrmExportImport * This, + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *fileGroupNamesSafeArray, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileGroups); + + DECLSPEC_XFGVIRT(IFsrmExportImport, ExportFileScreenTemplates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExportFileScreenTemplates )( + __RPC__in IFsrmExportImport * This, + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *templateNamesSafeArray, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost); + + DECLSPEC_XFGVIRT(IFsrmExportImport, ImportFileScreenTemplates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportFileScreenTemplates )( + __RPC__in IFsrmExportImport * This, + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *templateNamesSafeArray, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **templates); + + DECLSPEC_XFGVIRT(IFsrmExportImport, ExportQuotaTemplates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExportQuotaTemplates )( + __RPC__in IFsrmExportImport * This, + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *templateNamesSafeArray, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost); + + DECLSPEC_XFGVIRT(IFsrmExportImport, ImportQuotaTemplates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportQuotaTemplates )( + __RPC__in IFsrmExportImport * This, + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ __RPC__in VARIANT *templateNamesSafeArray, + /* [defaultvalue][in] */ __RPC__in BSTR remoteHost, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **templates); + + END_INTERFACE + } IFsrmExportImportVtbl; + + interface IFsrmExportImport + { + CONST_VTBL struct IFsrmExportImportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmExportImport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmExportImport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmExportImport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmExportImport_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmExportImport_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmExportImport_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmExportImport_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmExportImport_ExportFileGroups(This,filePath,fileGroupNamesSafeArray,remoteHost) \ + ( (This)->lpVtbl -> ExportFileGroups(This,filePath,fileGroupNamesSafeArray,remoteHost) ) + +#define IFsrmExportImport_ImportFileGroups(This,filePath,fileGroupNamesSafeArray,remoteHost,fileGroups) \ + ( (This)->lpVtbl -> ImportFileGroups(This,filePath,fileGroupNamesSafeArray,remoteHost,fileGroups) ) + +#define IFsrmExportImport_ExportFileScreenTemplates(This,filePath,templateNamesSafeArray,remoteHost) \ + ( (This)->lpVtbl -> ExportFileScreenTemplates(This,filePath,templateNamesSafeArray,remoteHost) ) + +#define IFsrmExportImport_ImportFileScreenTemplates(This,filePath,templateNamesSafeArray,remoteHost,templates) \ + ( (This)->lpVtbl -> ImportFileScreenTemplates(This,filePath,templateNamesSafeArray,remoteHost,templates) ) + +#define IFsrmExportImport_ExportQuotaTemplates(This,filePath,templateNamesSafeArray,remoteHost) \ + ( (This)->lpVtbl -> ExportQuotaTemplates(This,filePath,templateNamesSafeArray,remoteHost) ) + +#define IFsrmExportImport_ImportQuotaTemplates(This,filePath,templateNamesSafeArray,remoteHost,templates) \ + ( (This)->lpVtbl -> ImportQuotaTemplates(This,filePath,templateNamesSafeArray,remoteHost,templates) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmExportImport_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmDerivedObjectsResult_INTERFACE_DEFINED__ +#define __IFsrmDerivedObjectsResult_INTERFACE_DEFINED__ + +/* interface IFsrmDerivedObjectsResult */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmDerivedObjectsResult; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("39322a2d-38ee-4d0d-8095-421a80849a82") + IFsrmDerivedObjectsResult : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DerivedObjects( + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **derivedObjects) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Results( + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **results) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmDerivedObjectsResultVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmDerivedObjectsResult * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmDerivedObjectsResult * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmDerivedObjectsResult * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmDerivedObjectsResult * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmDerivedObjectsResult * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmDerivedObjectsResult * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmDerivedObjectsResult * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmDerivedObjectsResult, get_DerivedObjects) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DerivedObjects )( + __RPC__in IFsrmDerivedObjectsResult * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **derivedObjects); + + DECLSPEC_XFGVIRT(IFsrmDerivedObjectsResult, get_Results) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Results )( + __RPC__in IFsrmDerivedObjectsResult * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **results); + + END_INTERFACE + } IFsrmDerivedObjectsResultVtbl; + + interface IFsrmDerivedObjectsResult + { + CONST_VTBL struct IFsrmDerivedObjectsResultVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmDerivedObjectsResult_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmDerivedObjectsResult_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmDerivedObjectsResult_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmDerivedObjectsResult_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmDerivedObjectsResult_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmDerivedObjectsResult_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmDerivedObjectsResult_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmDerivedObjectsResult_get_DerivedObjects(This,derivedObjects) \ + ( (This)->lpVtbl -> get_DerivedObjects(This,derivedObjects) ) + +#define IFsrmDerivedObjectsResult_get_Results(This,results) \ + ( (This)->lpVtbl -> get_Results(This,results) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmDerivedObjectsResult_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmAccessDeniedRemediationClient_INTERFACE_DEFINED__ +#define __IFsrmAccessDeniedRemediationClient_INTERFACE_DEFINED__ + +/* interface IFsrmAccessDeniedRemediationClient */ +/* [unique][helpstring][oleautomation][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmAccessDeniedRemediationClient; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("40002314-590B-45A5-8E1B-8C05DA527E52") + IFsrmAccessDeniedRemediationClient : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Show( + /* [in] */ ULONG_PTR parentWnd, + /* [in] */ __RPC__in BSTR accessPath, + /* [in] */ AdrClientErrorType errorType, + /* [in] */ long flags, + /* [defaultvalue][in] */ __RPC__in BSTR windowTitle, + /* [defaultvalue][in] */ __RPC__in BSTR windowMessage, + /* [retval][out] */ __RPC__out long *result) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmAccessDeniedRemediationClientVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmAccessDeniedRemediationClient * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmAccessDeniedRemediationClient * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmAccessDeniedRemediationClient * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmAccessDeniedRemediationClient * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmAccessDeniedRemediationClient * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmAccessDeniedRemediationClient * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmAccessDeniedRemediationClient * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmAccessDeniedRemediationClient, Show) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Show )( + __RPC__in IFsrmAccessDeniedRemediationClient * This, + /* [in] */ ULONG_PTR parentWnd, + /* [in] */ __RPC__in BSTR accessPath, + /* [in] */ AdrClientErrorType errorType, + /* [in] */ long flags, + /* [defaultvalue][in] */ __RPC__in BSTR windowTitle, + /* [defaultvalue][in] */ __RPC__in BSTR windowMessage, + /* [retval][out] */ __RPC__out long *result); + + END_INTERFACE + } IFsrmAccessDeniedRemediationClientVtbl; + + interface IFsrmAccessDeniedRemediationClient + { + CONST_VTBL struct IFsrmAccessDeniedRemediationClientVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmAccessDeniedRemediationClient_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmAccessDeniedRemediationClient_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmAccessDeniedRemediationClient_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmAccessDeniedRemediationClient_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmAccessDeniedRemediationClient_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmAccessDeniedRemediationClient_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmAccessDeniedRemediationClient_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmAccessDeniedRemediationClient_Show(This,parentWnd,accessPath,errorType,flags,windowTitle,windowMessage,result) \ + ( (This)->lpVtbl -> Show(This,parentWnd,accessPath,errorType,flags,windowTitle,windowMessage,result) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmAccessDeniedRemediationClient_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_fsrm_0000_0015 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_fsrm_0000_0015_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrm_0000_0015_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrm.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrm.idl new file mode 100644 index 0000000000000000000000000000000000000000..0406d56ce77dbce37ed26061fe279de16e199e48 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrm.idl @@ -0,0 +1,690 @@ +////////////////////////////////////// +// Imports +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; + +import "fsrmenums.idl"; + + +////////////////////////////////////// +// Forward declarations +// + +interface IFsrmObject; + +interface IFsrmCollection; +interface IFsrmMutableCollection; +interface IFsrmCommittableCollection; + +interface IFsrmAction; +interface IFsrmActionEmail; +interface IFsrmActionReport; +interface IFsrmActionEventLog; +interface IFsrmActionCommand; + +interface IFsrmSetting; + +interface IFsrmPathMapper; + +interface IFsrmExportImport; + + +////////////////////////////////////// +// Dispatch IDs +// + +// +// Dispatch ID bit pattern: +// 3 2 1 0 +// 10987654321098765432109876543210 +// RRRRFFFFIIIIIIIIIIIIIIIIMMMMMMMM +// +// R = Reserved / Not Used (4 bits) +// F = Feature (4 bits) +// I = Interface (16 bits) +// M = Method (8 bits) +// +// Interface bits are divided into four 4-bit sections: +// 3 2 1 0 +// 10987654321098765432109876543210 +// AAAABBBBCCCCDDDD +// +// A = Base interface +// B = Derived interface of A +// C = Derived interface of B +// D = Derived interface of C +// +// If a derived interface is meant to extend a previous interface (e.g., +// IFsrmActionEmail2 from IFsrmActionEmail) rather than be a subtype of an +// interface, then its dispatch ID base may use the same section (B, C, or D) +// as that of the interface it is derived from. +// +// Method bits can indicate certain attributes of the method: +// 3 2 1 0 +// 10987654321098765432109876543210 +// PNNNNNNN +// +// P = Is method a property accessor? +// N = Method number +// + +// Bitmasks of FSRM-defined DISPID fields +const DISPID FSRM_DISPID_FEATURE_MASK = 0x0F000000; + +const DISPID FSRM_DISPID_INTERFACE_A_MASK = 0x00F00000; +const DISPID FSRM_DISPID_INTERFACE_B_MASK = 0x000F0000; +const DISPID FSRM_DISPID_INTERFACE_C_MASK = 0x0000F000; +const DISPID FSRM_DISPID_INTERFACE_D_MASK = 0x00000F00; +const DISPID FSRM_DISPID_INTERFACE_MASK = FSRM_DISPID_INTERFACE_A_MASK | + FSRM_DISPID_INTERFACE_B_MASK | + FSRM_DISPID_INTERFACE_C_MASK | + FSRM_DISPID_INTERFACE_D_MASK; + +const DISPID FSRM_DISPID_IS_PROPERTY = 0x00000080; +const DISPID FSRM_DISPID_METHOD_NUM_MASK = 0x0000007F; +const DISPID FSRM_DISPID_METHOD_MASK = FSRM_DISPID_IS_PROPERTY | + FSRM_DISPID_METHOD_NUM_MASK; + +#define FSRM_PROPERTY(x) x | FSRM_DISPID_IS_PROPERTY + +// Dispatch ID base of features +const DISPID FSRM_DISPID_FEATURE_GENERAL = 0x01000000; +const DISPID FSRM_DISPID_FEATURE_QUOTA = 0x02000000; +const DISPID FSRM_DISPID_FEATURE_FILESCREEN = 0x03000000; +const DISPID FSRM_DISPID_FEATURE_REPORTS = 0x04000000; +const DISPID FSRM_DISPID_FEATURE_CLASSIFICATION = 0x05000000; +const DISPID FSRM_DISPID_FEATURE_PIPELINE = 0x06000000; + +// Dispatch ID base of general interfaces +const DISPID FSRM_DISPID_OBJECT = FSRM_DISPID_FEATURE_GENERAL | 0x100000; + +const DISPID FSRM_DISPID_COLLECTION = FSRM_DISPID_FEATURE_GENERAL | 0x200000; +const DISPID FSRM_DISPID_COLLECTION_MUTABLE = FSRM_DISPID_COLLECTION | 0x010000; +const DISPID FSRM_DISPID_COLLECTION_COMMITTABLE = FSRM_DISPID_COLLECTION_MUTABLE | 0x001000; + +const DISPID FSRM_DISPID_ACTION = FSRM_DISPID_FEATURE_GENERAL | 0x300000; +const DISPID FSRM_DISPID_ACTION_EMAIL = FSRM_DISPID_ACTION | 0x010000; +const DISPID FSRM_DISPID_ACTION_REPORT = FSRM_DISPID_ACTION | 0x020000; +const DISPID FSRM_DISPID_ACTION_EVENTLOG = FSRM_DISPID_ACTION | 0x030000; +const DISPID FSRM_DISPID_ACTION_COMMAND = FSRM_DISPID_ACTION | 0x040000; +const DISPID FSRM_DISPID_ACTION_EMAIL2 = FSRM_DISPID_ACTION | 0x050000; + +const DISPID FSRM_DISPID_SETTING = FSRM_DISPID_FEATURE_GENERAL | 0x400000; + +const DISPID FSRM_DISPID_PATHMAPPER = FSRM_DISPID_FEATURE_GENERAL | 0x500000; + +const DISPID FSRM_DISPID_EXPORTIMPORT = FSRM_DISPID_FEATURE_GENERAL | 0x600000; + +const DISPID FSRM_DISPID_DERIVEDOBJECTSRESULT = FSRM_DISPID_FEATURE_GENERAL | 0x700000; + +const DISPID FSRM_DISPID_ADR = FSRM_DISPID_FEATURE_GENERAL | 0x800000; + + + +////////////////////////////////////// +// Interfaces +// + +[ + object, + uuid(22bcef93-4a3f-4183-89f9-2f8b8a628aee), + dual, + hidden, + nonextensible, + helpstring("IFsrmObject Interface"), + pointer_default(unique) +] +interface IFsrmObject : IDispatch +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_OBJECT | 0x01)), helpstring("This property is the globally unique identifier for the object")] + HRESULT Id([out, retval] FSRM_OBJECT_ID *id); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_OBJECT | 0x02)), helpstring("This property is the description of the object")] + HRESULT Description([out, retval] BSTR *description); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_OBJECT | 0x02)), helpstring("This property is the description of the object")] + HRESULT Description([in] BSTR description); + + + // Methods + + [id(FSRM_DISPID_OBJECT | 0x01), helpstring("This method is used to delete the object. Commit is required to finalize the delete.")] + HRESULT Delete(); + + [id(FSRM_DISPID_OBJECT | 0x02), helpstring("This method is used to commit the new, modified, or deleted object")] + HRESULT Commit(); + +}; + + +[ + object, + uuid(f76fbf3b-8ddd-4b42-b05a-cb1c3ff1fee8), + dual, + hidden, + nonextensible, + helpstring("IFsrmCollection Interface"), + pointer_default(unique) +] +interface IFsrmCollection : IDispatch +{ + + // Properties + + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum"), restricted] + HRESULT _NewEnum([out, retval] IUnknown **unknown); + + + [propget, id(DISPID_VALUE), helpstring("This property is the accessor to collection entries by index")] + HRESULT Item( + [in] long index, + [out, retval] VARIANT *item); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_COLLECTION | 0x01)), helpstring("This property returns the number of entries in the collection. If the collection is still in the Fetching state, the returned value is the current count and can be expected to increase on a subsequent call.")] + HRESULT Count([out, retval] long *count); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_COLLECTION | 0x02)), helpstring("This property reveals the state of the collection; whether it is being retrieved, being committed, or complete (stable).")] + HRESULT State([out, retval] FsrmCollectionState *state); + + + // Methods + + [id(FSRM_DISPID_COLLECTION | 0x01), helpstring("This method will cause the current collection enumeration or commit operation, if any, to be cancelled.")] + HRESULT Cancel(); + + [id(FSRM_DISPID_COLLECTION | 0x02), helpstring("This method is used to wait for the specified period of time or until all objects in the collection are read and return whether or not the collection is complete")] + HRESULT WaitForCompletion( + [in] long waitSeconds, + [out, retval] VARIANT_BOOL *completed); + + [id(FSRM_DISPID_COLLECTION | 0x03), helpstring("This method returns from the collection the object at the entry at the specified index")] + HRESULT GetById( + [in] FSRM_OBJECT_ID id, + [out, retval] VARIANT *entry); + +}; + + +[ + object, + uuid(1bb617b8-3886-49dc-af82-a6c90fa35dda), + dual, + hidden, + nonextensible, + helpstring("IFsrmMutableCollection Interface"), + pointer_default(unique) +] +interface IFsrmMutableCollection : IFsrmCollection +{ + + // Methods + + [id(FSRM_DISPID_COLLECTION_MUTABLE | 0x01), helpstring("This method inserts into the collection")] + HRESULT Add([in] VARIANT item); + + [id(FSRM_DISPID_COLLECTION_MUTABLE | 0x02), helpstring("This method removes from the collection the entry at the specified index")] + HRESULT Remove([in] long index); + + [id(FSRM_DISPID_COLLECTION_MUTABLE | 0x03), helpstring("This method removes from the collection the entry with the specified ID")] + HRESULT RemoveById([in] FSRM_OBJECT_ID id); + + [id(FSRM_DISPID_COLLECTION_MUTABLE | 0x04), helpstring("This method creates a shallow copy of the collection. The method can be called only when the collection is in the Complete state.")] + HRESULT Clone([out, retval] IFsrmMutableCollection **collection); + +}; + + +[ + object, + uuid(96deb3b5-8b91-4a2a-9d93-80a35d8aa847), + dual, + hidden, + nonextensible, + helpstring("IFsrmCommittableCollection Interface"), + pointer_default(unique) +] +interface IFsrmCommittableCollection : IFsrmMutableCollection +{ + + // Methods + + [id(FSRM_DISPID_COLLECTION_COMMITTABLE | 0x01), helpstring("This method commits all the changes made to the object entries contained in the collection. All objects in the collection must be in a consistent state: all new, existing, or marked for deletion. The return value is a collection of HRESULT values.")] + HRESULT Commit( + [in] FsrmCommitOptions options, + [out, retval] IFsrmCollection **results); + +}; + + +[ + object, + uuid(6cd6408a-ae60-463b-9ef1-e117534d69dc), + dual, + helpstring("IFsrmAction Interface"), + pointer_default(unique) +] +interface IFsrmAction : IDispatch +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION | 0x01)), helpstring("This property returns a globally unique identifier for the object")] + HRESULT Id([out, retval] FSRM_OBJECT_ID *id); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION | 0x02)), helpstring("This property returns the type of the notification")] + HRESULT ActionType([out, retval] FsrmActionType *actionType); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION | 0x03)), helpstring("property RunLimitInterval")] + HRESULT RunLimitInterval([out, retval] long *minutes); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION | 0x03)), helpstring("property RunLimitInterval")] + HRESULT RunLimitInterval([in] long minutes); + + + // Methods + + [id(FSRM_DISPID_ACTION | 0x01), helpstring("This method removes the action.")] + HRESULT Delete(); + +}; + + +[ + object, + uuid(d646567d-26ae-4caa-9f84-4e0aad207fca), + dual, + helpstring("IFsrmActionEmail Interface"), + pointer_default(unique) +] +interface IFsrmActionEmail : IFsrmAction +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x01)), helpstring("property MailFrom")] + HRESULT MailFrom([out, retval] BSTR *mailFrom); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x01)), helpstring("property MailFrom")] + HRESULT MailFrom([in] BSTR mailFrom); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x02)), helpstring("property MailReplyTo")] + HRESULT MailReplyTo([out, retval] BSTR *mailReplyTo); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x02)), helpstring("property MailReplyTo")] + HRESULT MailReplyTo([in] BSTR mailReplyTo); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x03)), helpstring("property MailTo")] + HRESULT MailTo([out, retval] BSTR *mailTo); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x03)), helpstring("property MailTo")] + HRESULT MailTo([in] BSTR mailTo); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x04)), helpstring("property MailCc")] + HRESULT MailCc([out, retval] BSTR *mailCc); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x04)), helpstring("property MailCc")] + HRESULT MailCc([in] BSTR mailCc); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x05)), helpstring("property MailBcc")] + HRESULT MailBcc([out, retval] BSTR *mailBcc); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x05)), helpstring("property MailBcc")] + HRESULT MailBcc([in] BSTR mailBcc); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x06)), helpstring("property MailSubject")] + HRESULT MailSubject([out, retval] BSTR *mailSubject); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x06)), helpstring("property MailSubject")] + HRESULT MailSubject([in] BSTR mailSubject); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x07)), helpstring("property MessageText")] + HRESULT MessageText([out, retval] BSTR *messageText); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x07)), helpstring("property MessageText")] + HRESULT MessageText([in] BSTR messageText); + +}; + + +[ + object, + uuid(8276702f-2532-4839-89bf-4872609a2ea4), + dual, + helpstring("IFsrmActionEmail2 Interface"), + pointer_default(unique) +] +interface IFsrmActionEmail2 : IFsrmActionEmail +{ + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL2 | 0x01)), helpstring("property AttachmentFileListSize")] + HRESULT AttachmentFileListSize([out, retval] long *attachmentFileListSize); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL2 | 0x01)), helpstring("property AttachmentFileListSize")] + HRESULT AttachmentFileListSize([in] long attachmentFileListSize); +}; + + +[ + object, + uuid(2dbe63c4-b340-48a0-a5b0-158e07fc567e), + dual, + helpstring("IFsrmActionReport Interface"), + pointer_default(unique) +] +interface IFsrmActionReport : IFsrmAction +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_REPORT | 0x01)), helpstring("property ReportType")] + HRESULT ReportTypes([out, retval] SAFEARRAY(VARIANT) *reportTypes); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_REPORT | 0x01)), helpstring("property ReportType ")] + HRESULT ReportTypes([in] SAFEARRAY(VARIANT) reportTypes); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_REPORT | 0x02)), helpstring("property MailTo")] + HRESULT MailTo([out, retval] BSTR *mailTo); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_REPORT | 0x02)), helpstring("property MailTo")] + HRESULT MailTo([in] BSTR mailTo); + +}; + + +[ + object, + uuid(4c8f96c3-5d94-4f37-a4f4-f56ab463546f), + dual, + helpstring("IFsrmActionEventLog Interface"), + pointer_default(unique) +] +interface IFsrmActionEventLog : IFsrmAction +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EVENTLOG | 0x01)), helpstring("property EventlogLevel")] + HRESULT EventType([out, retval] FsrmEventType *eventType); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EVENTLOG | 0x01)), helpstring("property EventlogLevel")] + HRESULT EventType([in] FsrmEventType eventType); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EVENTLOG | 0x02)), helpstring("property MessageText")] + HRESULT MessageText([out, retval] BSTR *messageText); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EVENTLOG | 0x02)), helpstring("property MessageText")] + HRESULT MessageText([in] BSTR messageText); + +}; + + +[ + object, + uuid(12937789-e247-4917-9c20-f3ee9c7ee783), + dual, + helpstring("IFsrmActionCommand Interface"), + pointer_default(unique) +] +interface IFsrmActionCommand : IFsrmAction +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x01)), helpstring("property ExecutablePath")] + HRESULT ExecutablePath([out, retval] BSTR *executablePath); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x01)), helpstring("property ExecutablePath")] + HRESULT ExecutablePath([in] BSTR executablePath); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x02)), helpstring("property Arguments")] + HRESULT Arguments([out, retval] BSTR *arguments); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x02)), helpstring("property Arguments")] + HRESULT Arguments([in] BSTR arguments); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x03)), helpstring("property Account")] + HRESULT Account([out, retval] FsrmAccountType *account); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x03)), helpstring("property Account")] + HRESULT Account([in] FsrmAccountType account); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x04)), helpstring("property WorkingDirectory")] + HRESULT WorkingDirectory([out, retval] BSTR *workingDirectory); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x04)), helpstring("property WorkingDirectory")] + HRESULT WorkingDirectory([in] BSTR workingDirectory); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x05)), helpstring("property MonitorCommand")] + HRESULT MonitorCommand([out, retval] VARIANT_BOOL *monitorCommand); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x05)), helpstring("property MonitorCommand")] + HRESULT MonitorCommand([in] VARIANT_BOOL monitorCommand); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x06)), helpstring("property KillTimeOut")] + HRESULT KillTimeOut([out, retval] long *minutes); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x06)), helpstring("property KillTimeOut")] + HRESULT KillTimeOut([in] long minutes); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x07)), helpstring("property LogResult")] + HRESULT LogResult([out, retval] VARIANT_BOOL *logResults); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x07)), helpstring("property LogResult")] + HRESULT LogResult([in] VARIANT_BOOL logResults); + +}; + + +[ + object, + uuid(f411d4fd-14be-4260-8c40-03b7c95e608a), + dual, + helpstring("IFsrmSetting Interface"), + pointer_default(unique) +] +interface IFsrmSetting : IDispatch +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x01)), helpstring("This property is the name of the SMTP server")] + HRESULT SmtpServer([out,retval] BSTR *smtpServer); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x01)), helpstring("This property is the name of the SMTP server")] + HRESULT SmtpServer([in] BSTR smtpServer); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x02)), helpstring("This property is the default FROM field for e-mail")] + HRESULT MailFrom([out,retval] BSTR *mailFrom); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x02)), helpstring("This property is the default FROM field for e-mail")] + HRESULT MailFrom([in] BSTR mailFrom); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x03)), helpstring("This property is the default administrators e-mail recipient list")] + HRESULT AdminEmail([out,retval] BSTR *adminEmail); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x03)), helpstring("This property is the default administrators e-mail recipient list")] + HRESULT AdminEmail([in] BSTR adminEmail); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x04)), helpstring("property DisableCommandLine")] + HRESULT DisableCommandLine([out,retval] VARIANT_BOOL *disableCommandLine); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x04)), helpstring("property DisableCommandLine")] + HRESULT DisableCommandLine([in] VARIANT_BOOL disableCommandLine); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x05)), helpstring("property EnableScreeningAudit")] + HRESULT EnableScreeningAudit([out,retval] VARIANT_BOOL *enableScreeningAudit); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x05)), helpstring("property EnableScreeningAudit")] + HRESULT EnableScreeningAudit([in] VARIANT_BOOL enableScreeningAudit); + + + // Methods + + [id(FSRM_DISPID_SETTING | 0x01), helpstring("This method is used to test the email settings.")] + HRESULT EmailTest([in] BSTR mailTo); + + [id(FSRM_DISPID_SETTING | 0x02), helpstring("This method is to set the default throttling delay between quota and screening notifications of the same type.")] + HRESULT SetActionRunLimitInterval( + [in] FsrmActionType actionType, + [in] long delayTimeMinutes); + + [id(FSRM_DISPID_SETTING | 0x03), helpstring("This method is to get the default throttling delay between quota and screening notifications of the same type.")] + HRESULT GetActionRunLimitInterval( + [in] FsrmActionType actionType, + [out, retval] long *delayTimeMinutes); + +}; + + +[ + object, + uuid(6f4dbfff-6920-4821-a6c3-b7e94c1fd60c), + dual, + helpstring("IFsrmPathMapper Interface"), + pointer_default(unique) +] +interface IFsrmPathMapper : IDispatch +{ + + // Methods + + [id(FSRM_DISPID_PATHMAPPER | 0x01), helpstring("This method is used to get an array of DFS and share paths pointing to a given local path")] + HRESULT GetSharePathsForLocalPath( + [in] BSTR localPath, + [out, retval] SAFEARRAY(VARIANT) *sharePaths); + +}; + + +[ + object, + uuid(efcb0ab1-16c4-4a79-812c-725614c3306b), + dual, + helpstring("IFsrmImportExport Interface"), + pointer_default(unique) +] +interface IFsrmExportImport : IDispatch +{ + + // Methods + + [id(FSRM_DISPID_EXPORTIMPORT | 0x01), helpstring("This method is used to export file groups to a file.")] + HRESULT ExportFileGroups( + [in] BSTR filePath, + [in, defaultvalue(NULL)] VARIANT* fileGroupNamesSafeArray, + [in, defaultvalue(L"")] BSTR remoteHost); + + [id(FSRM_DISPID_EXPORTIMPORT | 0x02), helpstring("This method is used to import file groups from a file. The resulting collection, or individual objects contain therein, must be committed to finalize the import")] + HRESULT ImportFileGroups( + [in] BSTR filePath, + [in, defaultvalue(NULL)] VARIANT* fileGroupNamesSafeArray, + [in, defaultvalue(L"")] BSTR remoteHost, + [out, retval] IFsrmCommittableCollection **fileGroups); + + [id(FSRM_DISPID_EXPORTIMPORT | 0x03), helpstring("This method is used to export file screen templates to a file")] + HRESULT ExportFileScreenTemplates( + [in] BSTR filePath, + [in, defaultvalue(NULL)] VARIANT* templateNamesSafeArray, + [in, defaultvalue(L"")] BSTR remoteHost); + + [id(FSRM_DISPID_EXPORTIMPORT | 0x04), helpstring("This method is used to import file screen templates from a file. The resulting collection, or individual objects contain therein, must be committed to finalize the import")] + HRESULT ImportFileScreenTemplates( + [in] BSTR filePath, + [in, defaultvalue(NULL)] VARIANT* templateNamesSafeArray, + [in, defaultvalue(L"")] BSTR remoteHost, + [out, retval] IFsrmCommittableCollection **templates); + + [id(FSRM_DISPID_EXPORTIMPORT | 0x05), helpstring("This method is used to export quota templates to a file")] + HRESULT ExportQuotaTemplates( + [in] BSTR filePath, + [in, defaultvalue(NULL)] VARIANT* templateNamesSafeArray, + [in, defaultvalue(L"")] BSTR remoteHost); + + [id(FSRM_DISPID_EXPORTIMPORT | 0x06), helpstring("This method is used to import quota templates from a file. The resulting collection, or individual objects contain therein, must be committed to finalize the import")] + HRESULT ImportQuotaTemplates( + [in] BSTR filePath, + [in, defaultvalue(NULL)] VARIANT* templateNamesSafeArray, + [in, defaultvalue(L"")] BSTR remoteHost, + [out, retval] IFsrmCommittableCollection **templates); +}; + + +[ + object, + uuid(39322a2d-38ee-4d0d-8095-421a80849a82), + dual, + helpstring("IFsrmDerivedObjectsResult Interface"), + pointer_default(unique) +] +interface IFsrmDerivedObjectsResult : IDispatch +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_DERIVEDOBJECTSRESULT | 0x01)), helpstring("This read-only property is the collection of derived objects that were updated")] + HRESULT DerivedObjects([out, retval] IFsrmCollection **derivedObjects); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_DERIVEDOBJECTSRESULT | 0x02)), helpstring("This read-only property is the collection of results from committing the derived objects")] + HRESULT Results([out, retval] IFsrmCollection **results); + +}; + + +[ + object, + uuid(40002314-590B-45A5-8E1B-8C05DA527E52), + dual, + oleautomation, + helpstring("IFsrmAccessDeniedRemediationClient Interface"), + pointer_default(unique) +] +interface IFsrmAccessDeniedRemediationClient : IDispatch +{ + [id(FSRM_DISPID_ADR | 0x01), helpstring("Displays the Access Denied Remediation client UX")] + HRESULT Show( + [in] ULONG_PTR parentWnd, + [in] BSTR accessPath, + [in] AdrClientErrorType errorType, + [in] long flags, + [in,defaultvalue(L"")] BSTR windowTitle, + [in,defaultvalue(L"")] BSTR windowMessage, + [out,retval] long *result + ); +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmenums.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmenums.h new file mode 100644 index 0000000000000000000000000000000000000000..f9e7170c3cfade83fd1299b8bf47eab6f52c74c0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmenums.h @@ -0,0 +1,493 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __fsrmenums_h__ +#define __fsrmenums_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +/* header files for imported files */ +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_fsrmenums_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef GUID FSRM_OBJECT_ID; + +typedef +enum _FsrmQuotaFlags + { + FsrmQuotaFlags_Enforce = 0x100, + FsrmQuotaFlags_Disable = 0x200, + FsrmQuotaFlags_StatusIncomplete = 0x10000, + FsrmQuotaFlags_StatusRebuilding = 0x20000 + } FsrmQuotaFlags; + +typedef +enum _FsrmFileScreenFlags + { + FsrmFileScreenFlags_Enforce = 0x1 + } FsrmFileScreenFlags; + +typedef +enum _FsrmCollectionState + { + FsrmCollectionState_Fetching = 1, + FsrmCollectionState_Committing = 2, + FsrmCollectionState_Complete = 3, + FsrmCollectionState_Cancelled = 4 + } FsrmCollectionState; + +typedef +enum _FsrmEnumOptions + { + FsrmEnumOptions_None = 0, + FsrmEnumOptions_Asynchronous = 0x1, + FsrmEnumOptions_CheckRecycleBin = 0x2, + FsrmEnumOptions_IncludeClusterNodes = 0x4, + FsrmEnumOptions_IncludeDeprecatedObjects = 0x8 + } FsrmEnumOptions; + +typedef +enum _FsrmCommitOptions + { + FsrmCommitOptions_None = 0, + FsrmCommitOptions_Asynchronous = 0x1 + } FsrmCommitOptions; + +typedef +enum _FsrmTemplateApplyOptions + { + FsrmTemplateApplyOptions_ApplyToDerivedMatching = 1, + FsrmTemplateApplyOptions_ApplyToDerivedAll = 2 + } FsrmTemplateApplyOptions; + +typedef +enum _FsrmActionType + { + FsrmActionType_Unknown = 0, + FsrmActionType_EventLog = 1, + FsrmActionType_Email = 2, + FsrmActionType_Command = 3, + FsrmActionType_Report = 4 + } FsrmActionType; + +typedef +enum _FsrmEventType + { + FsrmEventType_Unknown = 0, + FsrmEventType_Information = 1, + FsrmEventType_Warning = 2, + FsrmEventType_Error = 3 + } FsrmEventType; + +typedef +enum _FsrmAccountType + { + FsrmAccountType_Unknown = 0, + FsrmAccountType_NetworkService = 1, + FsrmAccountType_LocalService = 2, + FsrmAccountType_LocalSystem = 3, + FsrmAccountType_InProc = 4, + FsrmAccountType_External = 5, + FsrmAccountType_Automatic = 500 + } FsrmAccountType; + +typedef +enum _FsrmReportType + { + FsrmReportType_Unknown = 0, + FsrmReportType_LargeFiles = 1, + FsrmReportType_FilesByType = 2, + FsrmReportType_LeastRecentlyAccessed = 3, + FsrmReportType_MostRecentlyAccessed = 4, + FsrmReportType_QuotaUsage = 5, + FsrmReportType_FilesByOwner = 6, + FsrmReportType_ExportReport = 7, + FsrmReportType_DuplicateFiles = 8, + FsrmReportType_FileScreenAudit = 9, + FsrmReportType_FilesByProperty = 10, + FsrmReportType_AutomaticClassification = 11, + FsrmReportType_Expiration = 12, + FsrmReportType_FoldersByProperty = 13 + } FsrmReportType; + +typedef +enum _FsrmReportFormat + { + FsrmReportFormat_Unknown = 0, + FsrmReportFormat_DHtml = 1, + FsrmReportFormat_Html = 2, + FsrmReportFormat_Txt = 3, + FsrmReportFormat_Csv = 4, + FsrmReportFormat_Xml = 5 + } FsrmReportFormat; + +typedef +enum _FsrmReportRunningStatus + { + FsrmReportRunningStatus_Unknown = 0, + FsrmReportRunningStatus_NotRunning = 1, + FsrmReportRunningStatus_Queued = 2, + FsrmReportRunningStatus_Running = 3 + } FsrmReportRunningStatus; + +typedef +enum _FsrmReportGenerationContext + { + FsrmReportGenerationContext_Undefined = 1, + FsrmReportGenerationContext_ScheduledReport = 2, + FsrmReportGenerationContext_InteractiveReport = 3, + FsrmReportGenerationContext_IncidentReport = 4 + } FsrmReportGenerationContext; + +typedef +enum _FsrmReportFilter + { + FsrmReportFilter_MinSize = 1, + FsrmReportFilter_MinAgeDays = 2, + FsrmReportFilter_MaxAgeDays = 3, + FsrmReportFilter_MinQuotaUsage = 4, + FsrmReportFilter_FileGroups = 5, + FsrmReportFilter_Owners = 6, + FsrmReportFilter_NamePattern = 7, + FsrmReportFilter_Property = 8 + } FsrmReportFilter; + +typedef +enum _FsrmReportLimit + { + FsrmReportLimit_MaxFiles = 1, + FsrmReportLimit_MaxFileGroups = 2, + FsrmReportLimit_MaxOwners = 3, + FsrmReportLimit_MaxFilesPerFileGroup = 4, + FsrmReportLimit_MaxFilesPerOwner = 5, + FsrmReportLimit_MaxFilesPerDuplGroup = 6, + FsrmReportLimit_MaxDuplicateGroups = 7, + FsrmReportLimit_MaxQuotas = 8, + FsrmReportLimit_MaxFileScreenEvents = 9, + FsrmReportLimit_MaxPropertyValues = 10, + FsrmReportLimit_MaxFilesPerPropertyValue = 11, + FsrmReportLimit_MaxFolders = 12 + } FsrmReportLimit; + +typedef +enum _FsrmPropertyDefinitionType + { + FsrmPropertyDefinitionType_Unknown = 0, + FsrmPropertyDefinitionType_OrderedList = 1, + FsrmPropertyDefinitionType_MultiChoiceList = 2, + FsrmPropertyDefinitionType_SingleChoiceList = 3, + FsrmPropertyDefinitionType_String = 4, + FsrmPropertyDefinitionType_MultiString = 5, + FsrmPropertyDefinitionType_Int = 6, + FsrmPropertyDefinitionType_Bool = 7, + FsrmPropertyDefinitionType_Date = 8 + } FsrmPropertyDefinitionType; + +typedef +enum _FsrmPropertyDefinitionFlags + { + FsrmPropertyDefinitionFlags_Global = 0x1, + FsrmPropertyDefinitionFlags_Deprecated = 0x2, + FsrmPropertyDefinitionFlags_Secure = 0x4 + } FsrmPropertyDefinitionFlags; + +typedef +enum _FsrmPropertyDefinitionAppliesTo + { + FsrmPropertyDefinitionAppliesTo_Files = 0x1, + FsrmPropertyDefinitionAppliesTo_Folders = 0x2 + } FsrmPropertyDefinitionAppliesTo; + +typedef +enum _FsrmRuleType + { + FsrmRuleType_Unknown = 0, + FsrmRuleType_Classification = 1, + FsrmRuleType_Generic = 2 + } FsrmRuleType; + +typedef +enum _FsrmRuleFlags + { + FsrmRuleFlags_Disabled = 0x100, + FsrmRuleFlags_ClearAutomaticallyClassifiedProperty = 0x400, + FsrmRuleFlags_ClearManuallyClassifiedProperty = 0x800, + FsrmRuleFlags_Invalid = 0x1000 + } FsrmRuleFlags; + +typedef +enum _FsrmClassificationLoggingFlags + { + FsrmClassificationLoggingFlags_None = 0, + FsrmClassificationLoggingFlags_ClassificationsInLogFile = 0x1, + FsrmClassificationLoggingFlags_ErrorsInLogFile = 0x2, + FsrmClassificationLoggingFlags_ClassificationsInSystemLog = 0x4, + FsrmClassificationLoggingFlags_ErrorsInSystemLog = 0x8 + } FsrmClassificationLoggingFlags; + +typedef +enum _FsrmExecutionOption + { + FsrmExecutionOption_Unknown = 0, + FsrmExecutionOption_EvaluateUnset = 1, + FsrmExecutionOption_ReEvaluate_ConsiderExistingValue = 2, + FsrmExecutionOption_ReEvaluate_IgnoreExistingValue = 3 + } FsrmExecutionOption; + +typedef +enum _FsrmStorageModuleCaps + { + FsrmStorageModuleCaps_Unknown = 0, + FsrmStorageModuleCaps_CanGet = 0x1, + FsrmStorageModuleCaps_CanSet = 0x2, + FsrmStorageModuleCaps_CanHandleDirectories = 0x4, + FsrmStorageModuleCaps_CanHandleFiles = 0x8 + } FsrmStorageModuleCaps; + +typedef +enum _FsrmStorageModuleType + { + FsrmStorageModuleType_Unknown = 0, + FsrmStorageModuleType_Cache = 1, + FsrmStorageModuleType_InFile = 2, + FsrmStorageModuleType_Database = 3, + FsrmStorageModuleType_System = 100 + } FsrmStorageModuleType; + +typedef +enum _FsrmPropertyBagFlags + { + FsrmPropertyBagFlags_UpdatedByClassifier = 0x1, + FsrmPropertyBagFlags_FailedLoadingProperties = 0x2, + FsrmPropertyBagFlags_FailedSavingProperties = 0x4, + FsrmPropertyBagFlags_FailedClassifyingProperties = 0x8 + } FsrmPropertyBagFlags; + +typedef +enum _FsrmPropertyBagField + { + FsrmPropertyBagField_AccessVolume = 0, + FsrmPropertyBagField_VolumeGuidName = 1 + } FsrmPropertyBagField; + +typedef +enum _FsrmPropertyFlags + { + FsrmPropertyFlags_None = 0, + FsrmPropertyFlags_Orphaned = 0x1, + FsrmPropertyFlags_RetrievedFromCache = 0x2, + FsrmPropertyFlags_RetrievedFromStorage = 0x4, + FsrmPropertyFlags_SetByClassifier = 0x8, + FsrmPropertyFlags_Deleted = 0x10, + FsrmPropertyFlags_Reclassified = 0x20, + FsrmPropertyFlags_AggregationFailed = 0x40, + FsrmPropertyFlags_Existing = 0x80, + FsrmPropertyFlags_FailedLoadingProperties = 0x100, + FsrmPropertyFlags_FailedClassifyingProperties = 0x200, + FsrmPropertyFlags_FailedSavingProperties = 0x400, + FsrmPropertyFlags_Secure = 0x800, + FsrmPropertyFlags_PolicyDerived = 0x1000, + FsrmPropertyFlags_Inherited = 0x2000, + FsrmPropertyFlags_Manual = 0x4000, + FsrmPropertyFlags_ExplicitValueDeleted = 0x8000, + FsrmPropertyFlags_PropertyDeletedFromClear = 0x10000, + FsrmPropertyFlags_PropertySourceMask = ( ( FsrmPropertyFlags_RetrievedFromCache | FsrmPropertyFlags_RetrievedFromStorage ) | FsrmPropertyFlags_SetByClassifier ) , + FsrmPropertyFlags_PersistentMask = ( FsrmPropertyFlags_PolicyDerived | FsrmPropertyFlags_Manual ) + } FsrmPropertyFlags; + +typedef +enum _FsrmPipelineModuleType + { + FsrmPipelineModuleType_Unknown = 0, + FsrmPipelineModuleType_Storage = 1, + FsrmPipelineModuleType_Classifier = 2 + } FsrmPipelineModuleType; + +typedef +enum _FsrmGetFilePropertyOptions + { + FsrmGetFilePropertyOptions_None = 0, + FsrmGetFilePropertyOptions_NoRuleEvaluation = 0x1, + FsrmGetFilePropertyOptions_Persistent = 0x2, + FsrmGetFilePropertyOptions_FailOnPersistErrors = 0x4, + FsrmGetFilePropertyOptions_SkipOrphaned = 0x8 + } FsrmGetFilePropertyOptions; + +typedef +enum _FsrmFileManagementType + { + FsrmFileManagementType_Unknown = 0, + FsrmFileManagementType_Expiration = 1, + FsrmFileManagementType_Custom = 2, + FsrmFileManagementType_Rms = 3 + } FsrmFileManagementType; + +typedef +enum _FsrmFileManagementLoggingFlags + { + FsrmFileManagementLoggingFlags_None = 0, + FsrmFileManagementLoggingFlags_Error = 0x1, + FsrmFileManagementLoggingFlags_Information = 0x2, + FsrmFileManagementLoggingFlags_Audit = 0x4 + } FsrmFileManagementLoggingFlags; + +typedef +enum _FsrmPropertyConditionType + { + FsrmPropertyConditionType_Unknown = 0, + FsrmPropertyConditionType_Equal = 1, + FsrmPropertyConditionType_NotEqual = 2, + FsrmPropertyConditionType_GreaterThan = 3, + FsrmPropertyConditionType_LessThan = 4, + FsrmPropertyConditionType_Contain = 5, + FsrmPropertyConditionType_Exist = 6, + FsrmPropertyConditionType_NotExist = 7, + FsrmPropertyConditionType_StartWith = 8, + FsrmPropertyConditionType_EndWith = 9, + FsrmPropertyConditionType_ContainedIn = 10, + FsrmPropertyConditionType_PrefixOf = 11, + FsrmPropertyConditionType_SuffixOf = 12, + FsrmPropertyConditionType_MatchesPattern = 13 + } FsrmPropertyConditionType; + +typedef +enum _FsrmFileStreamingMode + { + FsrmFileStreamingMode_Unknown = 0, + FsrmFileStreamingMode_Read = 0x1, + FsrmFileStreamingMode_Write = 0x2 + } FsrmFileStreamingMode; + +typedef +enum _FsrmFileStreamingInterfaceType + { + FsrmFileStreamingInterfaceType_Unknown = 0, + FsrmFileStreamingInterfaceType_ILockBytes = 0x1, + FsrmFileStreamingInterfaceType_IStream = 0x2 + } FsrmFileStreamingInterfaceType; + +typedef +enum _FsrmFileConditionType + { + FsrmFileConditionType_Unknown = 0, + FsrmFileConditionType_Property = 1 + } FsrmFileConditionType; + +typedef +enum _FsrmFileSystemPropertyId + { + FsrmFileSystemPropertyId_Undefined = 0, + FsrmFileSystemPropertyId_FileName = 1, + FsrmFileSystemPropertyId_DateCreated = 2, + FsrmFileSystemPropertyId_DateLastAccessed = 3, + FsrmFileSystemPropertyId_DateLastModified = 4, + FsrmFileSystemPropertyId_DateNow = 5 + } FsrmFileSystemPropertyId; + +typedef +enum _FsrmPropertyValueType + { + FsrmPropertyValueType_Undefined = 0, + FsrmPropertyValueType_Literal = 1, + FsrmPropertyValueType_DateOffset = 2 + } FsrmPropertyValueType; + +typedef +enum _AdrClientDisplayFlags + { + AdrClientDisplayFlags_AllowEmailRequests = 0x1, + AdrClientDisplayFlags_ShowDeviceTroubleshooting = 0x2 + } AdrClientDisplayFlags; + +typedef +enum _AdrEmailFlags + { + AdrEmailFlags_PutDataOwnerOnToLine = 0x1, + AdrEmailFlags_PutAdminOnToLine = 0x2, + AdrEmailFlags_IncludeDeviceClaims = 0x4, + AdrEmailFlags_IncludeUserInfo = 0x8, + AdrEmailFlags_GenerateEventLog = 0x10 + } AdrEmailFlags; + +typedef +enum _AdrClientErrorType + { + AdrClientErrorType_Unknown = 0, + AdrClientErrorType_AccessDenied = 1, + AdrClientErrorType_FileNotFound = 2 + } AdrClientErrorType; + +typedef +enum _AdrClientFlags + { + AdrClientFlags_None = 0, + AdrClientFlags_FailForLocalPaths = 0x1, + AdrClientFlags_FailIfNotSupportedByServer = 0x2, + AdrClientFlags_FailIfNotDomainJoined = 0x4 + } AdrClientFlags; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmenums_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmenums_0000_0000_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmenums.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmenums.idl new file mode 100644 index 0000000000000000000000000000000000000000..43e530f0c9544ac7a9a8cfdf9612c5a2d02860ef --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmenums.idl @@ -0,0 +1,529 @@ +////////////////////////////////////// +// Imports +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; + + +////////////////////////////////////// +// Typedefs and enums +// + +// +// FSRM object ID +// +typedef GUID FSRM_OBJECT_ID; + + +// +// Quota flags +// + +typedef enum _FsrmQuotaFlags { + + // Persistent flags + FsrmQuotaFlags_Enforce = 0x00000100, + FsrmQuotaFlags_Disable = 0x00000200, + + // Quota status flags + FsrmQuotaFlags_StatusIncomplete = 0x00010000, + FsrmQuotaFlags_StatusRebuilding = 0x00020000 + +} FsrmQuotaFlags; + + +// +// File screen flags +// + +typedef enum _FsrmFileScreenFlags { + + // Persistent flags + FsrmFileScreenFlags_Enforce = 0x00000001 + +} FsrmFileScreenFlags; + + +// +// General Collection +// + +typedef enum _FsrmCollectionState { + + FsrmCollectionState_Fetching = 1, + FsrmCollectionState_Committing = 2, + FsrmCollectionState_Complete = 3, + FsrmCollectionState_Cancelled = 4 + +} FsrmCollectionState; + +typedef enum _FsrmEnumOptions { + + FsrmEnumOptions_None = 0x00000000, + FsrmEnumOptions_Asynchronous = 0x00000001, + FsrmEnumOptions_CheckRecycleBin = 0x00000002, + FsrmEnumOptions_IncludeClusterNodes = 0x00000004, + FsrmEnumOptions_IncludeDeprecatedObjects = 0x00000008 + +} FsrmEnumOptions; + +typedef enum _FsrmCommitOptions { + + FsrmCommitOptions_None = 0x00000000, + FsrmCommitOptions_Asynchronous = 0x00000001 + +} FsrmCommitOptions; + +typedef enum _FsrmTemplateApplyOptions { + + FsrmTemplateApplyOptions_ApplyToDerivedMatching = 1, + FsrmTemplateApplyOptions_ApplyToDerivedAll = 2 + +} FsrmTemplateApplyOptions; + + +// +// General Action +// + +typedef enum _FsrmActionType { + + FsrmActionType_Unknown = 0, + FsrmActionType_EventLog = 1, + FsrmActionType_Email = 2, + FsrmActionType_Command = 3, + FsrmActionType_Report = 4 + +} FsrmActionType; + + +// +// EventLog Action +// + +typedef enum _FsrmEventType { + + FsrmEventType_Unknown = 0, + FsrmEventType_Information = 1, + FsrmEventType_Warning = 2, + FsrmEventType_Error = 3 + +} FsrmEventType; + + +// +// Command Action +// + +typedef enum _FsrmAccountType { + + FsrmAccountType_Unknown = 0, + FsrmAccountType_NetworkService = 1, + FsrmAccountType_LocalService = 2, + FsrmAccountType_LocalSystem = 3, + FsrmAccountType_InProc = 4, + FsrmAccountType_External = 5, + FsrmAccountType_Automatic = 500 +} FsrmAccountType; + + +// +// Storage Reports +// + +typedef enum _FsrmReportType { + + FsrmReportType_Unknown = 0, + FsrmReportType_LargeFiles = 1, + FsrmReportType_FilesByType = 2, + FsrmReportType_LeastRecentlyAccessed = 3, + FsrmReportType_MostRecentlyAccessed = 4, + FsrmReportType_QuotaUsage = 5, + FsrmReportType_FilesByOwner = 6, + FsrmReportType_ExportReport = 7, + FsrmReportType_DuplicateFiles = 8, + FsrmReportType_FileScreenAudit = 9, + FsrmReportType_FilesByProperty = 10, + FsrmReportType_AutomaticClassification = 11, + FsrmReportType_Expiration = 12, + FsrmReportType_FoldersByProperty = 13 + +} FsrmReportType; + +typedef enum _FsrmReportFormat { + + FsrmReportFormat_Unknown = 0, + FsrmReportFormat_DHtml = 1, + FsrmReportFormat_Html = 2, + FsrmReportFormat_Txt = 3, + FsrmReportFormat_Csv = 4, + FsrmReportFormat_Xml = 5 + +} FsrmReportFormat; + +typedef enum _FsrmReportRunningStatus { + + FsrmReportRunningStatus_Unknown = 0, + FsrmReportRunningStatus_NotRunning = 1, + FsrmReportRunningStatus_Queued = 2, + FsrmReportRunningStatus_Running = 3 + +} FsrmReportRunningStatus; + +typedef enum _FsrmReportGenerationContext { + + FsrmReportGenerationContext_Undefined = 1, + FsrmReportGenerationContext_ScheduledReport = 2, + FsrmReportGenerationContext_InteractiveReport = 3, + FsrmReportGenerationContext_IncidentReport = 4 + +} FsrmReportGenerationContext; + +// +// Report filtering definitions +// ============================ +// +// Filter Name Description Valid Reports Valid Value Types +// -------------- ---------------------- -------------------------- ------------------------------------------ +// MinSize Minimum size Large Files uint64 or string representation +// +// MinAgeDays Minimum age in days Least Recently Accessed uint32 or string representation +// File Screen Audit +// +// MaxAgeDays Maximum age in days Most Recently Accessed uint32 or string representation +// +// MinQuotaUsage Minimum % quota usage Quota Usage uint32 or string representation +// +// FileGroups File group names Files by Type SAFEARRAY of strings (file group names) +// +// Owners Owners Files by Owner SAFEARRAY of strings (names or SIDs) +// File Screen Audit +// +// NamePattern File name pattern Large Files string (DOS file name pattern) +// Files by Type +// Least Recently Accessed +// Most Recently Accessed +// Files by Owner +// Export Report +// Duplicate Files +// + +typedef enum _FsrmReportFilter { + + FsrmReportFilter_MinSize = 1, + FsrmReportFilter_MinAgeDays = 2, + FsrmReportFilter_MaxAgeDays = 3, + FsrmReportFilter_MinQuotaUsage = 4, + FsrmReportFilter_FileGroups = 5, + FsrmReportFilter_Owners = 6, + FsrmReportFilter_NamePattern = 7, + FsrmReportFilter_Property = 8 + +} FsrmReportFilter; + +typedef enum _FsrmReportLimit { + + FsrmReportLimit_MaxFiles = 1, + FsrmReportLimit_MaxFileGroups = 2, + FsrmReportLimit_MaxOwners = 3, + FsrmReportLimit_MaxFilesPerFileGroup = 4, + FsrmReportLimit_MaxFilesPerOwner = 5, + FsrmReportLimit_MaxFilesPerDuplGroup = 6, + FsrmReportLimit_MaxDuplicateGroups = 7, + FsrmReportLimit_MaxQuotas = 8, + FsrmReportLimit_MaxFileScreenEvents = 9, + FsrmReportLimit_MaxPropertyValues = 10, + FsrmReportLimit_MaxFilesPerPropertyValue = 11, + FsrmReportLimit_MaxFolders = 12 + +} FsrmReportLimit; + + +// +// Pipeline +// + +typedef enum _FsrmPropertyDefinitionType { + + FsrmPropertyDefinitionType_Unknown = 0, + FsrmPropertyDefinitionType_OrderedList = 1, + FsrmPropertyDefinitionType_MultiChoiceList = 2, + FsrmPropertyDefinitionType_SingleChoiceList = 3, + FsrmPropertyDefinitionType_String = 4, + FsrmPropertyDefinitionType_MultiString = 5, + FsrmPropertyDefinitionType_Int = 6, + FsrmPropertyDefinitionType_Bool = 7, + FsrmPropertyDefinitionType_Date = 8 + +} FsrmPropertyDefinitionType; + +typedef enum _FsrmPropertyDefinitionFlags { + + FsrmPropertyDefinitionFlags_Global = 0x00000001, + FsrmPropertyDefinitionFlags_Deprecated = 0x00000002, + FsrmPropertyDefinitionFlags_Secure = 0x00000004, + +} FsrmPropertyDefinitionFlags; + +typedef enum _FsrmPropertyDefinitionAppliesTo { + + FsrmPropertyDefinitionAppliesTo_Files = 0x00000001, + FsrmPropertyDefinitionAppliesTo_Folders = 0x00000002, + +} FsrmPropertyDefinitionAppliesTo; + +typedef enum _FsrmRuleType { + + FsrmRuleType_Unknown = 0, + FsrmRuleType_Classification = 1, + FsrmRuleType_Generic = 2 + +} FsrmRuleType; + +typedef enum _FsrmRuleFlags { + + FsrmRuleFlags_Disabled = 0x00000100, + FsrmRuleFlags_ClearAutomaticallyClassifiedProperty = 0x00000400, + FsrmRuleFlags_ClearManuallyClassifiedProperty = 0x00000800, + FsrmRuleFlags_Invalid = 0x00001000 + +} FsrmRuleFlags; + +typedef enum _FsrmClassificationLoggingFlags { + + FsrmClassificationLoggingFlags_None = 0x00000000, + FsrmClassificationLoggingFlags_ClassificationsInLogFile = 0x00000001, + FsrmClassificationLoggingFlags_ErrorsInLogFile = 0x00000002, + FsrmClassificationLoggingFlags_ClassificationsInSystemLog = 0x00000004, + FsrmClassificationLoggingFlags_ErrorsInSystemLog = 0x00000008 + +} FsrmClassificationLoggingFlags; + +typedef enum _FsrmExecutionOption { + + FsrmExecutionOption_Unknown = 0, + FsrmExecutionOption_EvaluateUnset = 1, // Apply as a default value. + FsrmExecutionOption_ReEvaluate_ConsiderExistingValue = 2, // Apply value but consider default and existing values. + FsrmExecutionOption_ReEvaluate_IgnoreExistingValue = 3 // Apply value but ignore default and existing values. + +} FsrmExecutionOption; + +typedef enum _FsrmStorageModuleCaps { + + FsrmStorageModuleCaps_Unknown = 0x00000000, + FsrmStorageModuleCaps_CanGet = 0x00000001, + FsrmStorageModuleCaps_CanSet = 0x00000002, + FsrmStorageModuleCaps_CanHandleDirectories = 0x00000004, + FsrmStorageModuleCaps_CanHandleFiles = 0x00000008 + +} FsrmStorageModuleCaps; + +typedef enum _FsrmStorageModuleType { + + FsrmStorageModuleType_Unknown = 0, + FsrmStorageModuleType_Cache = 1, + FsrmStorageModuleType_InFile = 2, + FsrmStorageModuleType_Database = 3, + FsrmStorageModuleType_System = 100 +} FsrmStorageModuleType; + +typedef enum _FsrmPropertyBagFlags +{ + + FsrmPropertyBagFlags_UpdatedByClassifier = 0x00000001, // The properties in the property bag were updated by a classifier. + FsrmPropertyBagFlags_FailedLoadingProperties = 0x00000002, // The properties in the property bag may only be partially classified because a failure occurred while loading properties from storage. + FsrmPropertyBagFlags_FailedSavingProperties = 0x00000004, // The properties in the property bag failed to be saved by the storage module with the highest precedence. + FsrmPropertyBagFlags_FailedClassifyingProperties = 0x00000008, // The properties in the property bag may only be partially classified because a failure occurred while classifying properties. + +} FsrmPropertyBagFlags; + +typedef enum _FsrmPropertyBagField +{ + FsrmPropertyBagField_AccessVolume = 0, + FsrmPropertyBagField_VolumeGuidName = 1 +} FsrmPropertyBagField; + +typedef enum _FsrmPropertyFlags { + + FsrmPropertyFlags_None = 0x00000000, + FsrmPropertyFlags_Orphaned = 0x00000001, // The property does not have a corresponding definition in FSRM. + FsrmPropertyFlags_RetrievedFromCache = 0x00000002, // The property value came from the cache during this classification session. + FsrmPropertyFlags_RetrievedFromStorage = 0x00000004, // The property value came from a storage module (other than the cache) during this classification session. + FsrmPropertyFlags_SetByClassifier = 0x00000008, // The property value came from a classifier during this classification session. + FsrmPropertyFlags_Deleted = 0x00000010, // The property was deleted by a ClearFileProperty call. + FsrmPropertyFlags_Reclassified = 0x00000020, // The property value from storage was changed to a different value by a classifier. + FsrmPropertyFlags_AggregationFailed = 0x00000040, // There were values from multiple sources but they could not be aggregated together. + FsrmPropertyFlags_Existing = 0x00000080, // The property already exists in storage. + FsrmPropertyFlags_FailedLoadingProperties = 0x00000100, // The property may only be partially classified because a failure occurred while loading properties from storage. + FsrmPropertyFlags_FailedClassifyingProperties = 0x00000200, // The property may only be partially classified because a failure occurred while classifying properties. + FsrmPropertyFlags_FailedSavingProperties = 0x00000400, // The property failed to be saved by the storage module with the highest precendence. + FsrmPropertyFlags_Secure = 0x00000800, // The property is defined to be a secure property or came from secure storage. + FsrmPropertyFlags_PolicyDerived = 0x00001000, // The property value originally came from a classification policy. + FsrmPropertyFlags_Inherited = 0x00002000, // The property value was inherited from the property value of the file's parent folder. + FsrmPropertyFlags_Manual = 0x00004000, // The property value was set manually. + FsrmPropertyFlags_ExplicitValueDeleted = 0x00008000, // An explicit property value was deleted and replaced with an inherited value. + FsrmPropertyFlags_PropertyDeletedFromClear = 0x00010000, // The property has been deleted due to a rule marked with clear property. + + FsrmPropertyFlags_PropertySourceMask = FsrmPropertyFlags_RetrievedFromCache | + FsrmPropertyFlags_RetrievedFromStorage | + FsrmPropertyFlags_SetByClassifier, + + // These flags are persisted by the cache and secure storage modules + FsrmPropertyFlags_PersistentMask = FsrmPropertyFlags_PolicyDerived | + FsrmPropertyFlags_Manual, + +} FsrmPropertyFlags; + +typedef enum _FsrmPipelineModuleType { + + FsrmPipelineModuleType_Unknown = 0, + FsrmPipelineModuleType_Storage = 1, + FsrmPipelineModuleType_Classifier = 2, + +} FsrmPipelineModuleType; + +typedef enum _FsrmGetFilePropertyOptions { + + FsrmGetFilePropertyOptions_None = 0x00000000, + FsrmGetFilePropertyOptions_NoRuleEvaluation = 0x00000001, + FsrmGetFilePropertyOptions_Persistent = 0x00000002, + FsrmGetFilePropertyOptions_FailOnPersistErrors = 0x00000004, + FsrmGetFilePropertyOptions_SkipOrphaned = 0x00000008 + +} FsrmGetFilePropertyOptions; + +typedef enum _FsrmFileManagementType { + + FsrmFileManagementType_Unknown = 0, + FsrmFileManagementType_Expiration = 1, + FsrmFileManagementType_Custom = 2, + FsrmFileManagementType_Rms = 3 + +} FsrmFileManagementType; + +typedef enum _FsrmFileManagementLoggingFlags { + + FsrmFileManagementLoggingFlags_None = 0x00000000, + FsrmFileManagementLoggingFlags_Error = 0x00000001, + FsrmFileManagementLoggingFlags_Information = 0x00000002, + FsrmFileManagementLoggingFlags_Audit = 0x00000004 + +} FsrmFileManagementLoggingFlags; + +typedef enum _FsrmPropertyConditionType { + + FsrmPropertyConditionType_Unknown = 0, + FsrmPropertyConditionType_Equal = 1, + FsrmPropertyConditionType_NotEqual = 2, + FsrmPropertyConditionType_GreaterThan = 3, + FsrmPropertyConditionType_LessThan = 4, + FsrmPropertyConditionType_Contain = 5, + FsrmPropertyConditionType_Exist = 6, + FsrmPropertyConditionType_NotExist = 7, + FsrmPropertyConditionType_StartWith = 8, + FsrmPropertyConditionType_EndWith = 9, + FsrmPropertyConditionType_ContainedIn = 10, + FsrmPropertyConditionType_PrefixOf = 11, + FsrmPropertyConditionType_SuffixOf = 12, + FsrmPropertyConditionType_MatchesPattern = 13, + +} FsrmPropertyConditionType; + + +// +// Streaming interface constants +// + +typedef enum _FsrmFileStreamingMode +{ + FsrmFileStreamingMode_Unknown = 0x00000000, + FsrmFileStreamingMode_Read = 0x00000001, // Gets a streaming interface for reading file content + FsrmFileStreamingMode_Write = 0x00000002, // Gets a streaming interface for writing file content +} FsrmFileStreamingMode; + + +typedef enum _FsrmFileStreamingInterfaceType +{ + FsrmFileStreamingInterfaceType_Unknown = 0x00000000, // Gets an ILockBytes interface + FsrmFileStreamingInterfaceType_ILockBytes = 0x00000001, // Gets an ILockBytes interface + FsrmFileStreamingInterfaceType_IStream = 0x00000002, // Gets an IStream interface +} FsrmFileStreamingInterfaceType; + + +// +// File condition types (IFsrmFileCondition specializations) +// +typedef enum _FsrmFileConditionType +{ + FsrmFileConditionType_Unknown = 0, + FsrmFileConditionType_Property = 1, // File property condition (IFsrmFileConditionProperty) + +} FsrmFileConditionType; + +// +// File system property identifiers +// +typedef enum _FsrmFileSystemPropertyId +{ + FsrmFileSystemPropertyId_Undefined = 0, // property ID is not used (default) + FsrmFileSystemPropertyId_FileName = 1, // name of the file (including extension) + FsrmFileSystemPropertyId_DateCreated = 2, // file's creation time + FsrmFileSystemPropertyId_DateLastAccessed = 3, // file's last accessed time + FsrmFileSystemPropertyId_DateLastModified = 4, // file's last write time + FsrmFileSystemPropertyId_DateNow = 5, // current date and time + +} FsrmFileSystemPropertyId; + +// +// Property value formats +// +typedef enum _FsrmPropertyValueType +{ + FsrmPropertyValueType_Undefined = 0, + FsrmPropertyValueType_Literal = 1, // one or more literal values + FsrmPropertyValueType_DateOffset = 2, // date expression (date variable and offset) + +} FsrmPropertyValueType; + +// +// ADR Flags +// + +typedef enum _AdrClientDisplayFlags { + + AdrClientDisplayFlags_AllowEmailRequests = 0x00000001, + AdrClientDisplayFlags_ShowDeviceTroubleshooting = 0x00000002 + +} AdrClientDisplayFlags; + +typedef enum _AdrEmailFlags { + + AdrEmailFlags_PutDataOwnerOnToLine = 0x00000001, + AdrEmailFlags_PutAdminOnToLine = 0x00000002, + AdrEmailFlags_IncludeDeviceClaims = 0x00000004, + AdrEmailFlags_IncludeUserInfo = 0x00000008, + AdrEmailFlags_GenerateEventLog = 0x00000010 +} AdrEmailFlags; + +typedef enum _AdrClientErrorType { + AdrClientErrorType_Unknown = 0, + AdrClientErrorType_AccessDenied = 1, + AdrClientErrorType_FileNotFound = 2, +} AdrClientErrorType; + +typedef enum _AdrClientFlags { + AdrClientFlags_None = 0x00000000, + AdrClientFlags_FailForLocalPaths = 0x00000001, + AdrClientFlags_FailIfNotSupportedByServer = 0x00000002, + AdrClientFlags_FailIfNotDomainJoined = 0x00000004, +} AdrClientFlags; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmerr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmerr.h new file mode 100644 index 0000000000000000000000000000000000000000..bd11445f035d61fdaba0e13876db1fe87a73ed07 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmerr.h @@ -0,0 +1,1237 @@ +/*++ + +Copyright (c) Microsoft Corporation + + Constant definitions for common File Server Resource Management service + error messages. + +--*/ + +#pragma once + + +// +// HRESULT Success codes +// + +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +-+-+-+-+-+---------------------+-------------------------------+ +// |S|R|C|N|r| Facility | Code | +// +-+-+-+-+-+---------------------+-------------------------------+ +// +// where +// +// S - Severity - indicates success/fail +// +// 0 - Success +// 1 - Fail (COERROR) +// +// R - reserved portion of the facility code, corresponds to NT's +// second severity bit. +// +// C - reserved portion of the facility code, corresponds to NT's +// C field. +// +// N - reserved portion of the facility code. Used to indicate a +// mapped NT status value. +// +// r - reserved portion of the facility code. Reserved for internal +// use. Used to indicate HRESULT values that are not status +// values, but are instead message ids for display strings. +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// + + +// +// Define the severity codes +// + + +// +// MessageId: FSRM_S_PARTIAL_BATCH +// +// MessageText: +// +// At least one failure occurred in a batch operation. +// +#define FSRM_S_PARTIAL_BATCH ((HRESULT)0x00045304L) + +// +// MessageId: FSRM_S_PARTIAL_CLASSIFICATION +// +// MessageText: +// +// The file may only have partial classification because a failure occurred while loading or classifying the file properties. +// +#define FSRM_S_PARTIAL_CLASSIFICATION ((HRESULT)0x00045305L) + +// +// MessageId: FSRM_S_CLASSIFICATION_SCAN_FAILURES +// +// MessageText: +// +// Classification failed on one or more volumes. Check the application event log for more information. +// +#define FSRM_S_CLASSIFICATION_SCAN_FAILURES ((HRESULT)0x00045306L) + + +// +// HRESULT Failure codes +// + +// +// MessageId: FSRM_E_NOT_FOUND +// +// MessageText: +// +// The requested object was not found. +// +#define FSRM_E_NOT_FOUND ((HRESULT)0x80045301L) + +// +// MessageId: FSRM_E_INVALID_SCHEDULER_ARGUMENT +// +// MessageText: +// +// One or more of the arguments supplied to the task scheduler are not valid. +// +#define FSRM_E_INVALID_SCHEDULER_ARGUMENT ((HRESULT)0x80045302L) + +// +// MessageId: FSRM_E_ALREADY_EXISTS +// +// MessageText: +// +// The specified object already exists. +// +#define FSRM_E_ALREADY_EXISTS ((HRESULT)0x80045303L) + +// +// MessageId: FSRM_E_PATH_NOT_FOUND +// +// MessageText: +// +// The specified path was not found. +// +#define FSRM_E_PATH_NOT_FOUND ((HRESULT)0x80045304L) + +// +// MessageId: FSRM_E_INVALID_USER +// +// MessageText: +// +// The specified user is invalid. +// +#define FSRM_E_INVALID_USER ((HRESULT)0x80045305L) + +// +// MessageId: FSRM_E_INVALID_PATH +// +// MessageText: +// +// The specified path is invalid. +// +#define FSRM_E_INVALID_PATH ((HRESULT)0x80045306L) + +// +// MessageId: FSRM_E_INVALID_LIMIT +// +// MessageText: +// +// The specified limit is invalid. +// +#define FSRM_E_INVALID_LIMIT ((HRESULT)0x80045307L) + +// +// MessageId: FSRM_E_INVALID_NAME +// +// MessageText: +// +// The specified name is invalid. +// +#define FSRM_E_INVALID_NAME ((HRESULT)0x80045308L) + +// +// MessageId: FSRM_E_FAIL_BATCH +// +// MessageText: +// +// All items in a batch operation failed. +// +#define FSRM_E_FAIL_BATCH ((HRESULT)0x80045309L) + +// +// MessageId: FSRM_E_INVALID_TEXT +// +// MessageText: +// +// The specified text is invalid. +// +#define FSRM_E_INVALID_TEXT ((HRESULT)0x8004530AL) + +// +// MessageId: FSRM_E_INVALID_IMPORT_VERSION +// +// MessageText: +// +// The version of the configuration file you are trying to import is not supported. You cannot import configuration files with database versions earlier than 2.0. +// +#define FSRM_E_INVALID_IMPORT_VERSION ((HRESULT)0x8004530BL) + +// +// MessageId: FSRM_E_OUT_OF_RANGE +// +// MessageText: +// +// The specified property is out of range. +// +#define FSRM_E_OUT_OF_RANGE ((HRESULT)0x8004530DL) + +// +// MessageId: FSRM_E_REQD_PARAM_MISSING +// +// MessageText: +// +// The specified required property is missing. +// +#define FSRM_E_REQD_PARAM_MISSING ((HRESULT)0x8004530EL) + +// +// MessageId: FSRM_E_INVALID_COMBINATION +// +// MessageText: +// +// The specified property combination is invalid. +// +#define FSRM_E_INVALID_COMBINATION ((HRESULT)0x8004530FL) + +// +// MessageId: FSRM_E_DUPLICATE_NAME +// +// MessageText: +// +// Duplicate names were detected for the same object. +// +#define FSRM_E_DUPLICATE_NAME ((HRESULT)0x80045310L) + +// +// MessageId: FSRM_E_NOT_SUPPORTED +// +// MessageText: +// +// The operation or the specified combination of parameters is not supported. +// +#define FSRM_E_NOT_SUPPORTED ((HRESULT)0x80045311L) + +// +// MessageId: FSRM_E_DRIVER_NOT_READY +// +// MessageText: +// +// A required filter driver is not installed, loaded or ready for service. +// +#define FSRM_E_DRIVER_NOT_READY ((HRESULT)0x80045313L) + +// +// MessageId: FSRM_E_INSUFFICIENT_DISK +// +// MessageText: +// +// There is insufficient disk space to perform the requested operation. +// +#define FSRM_E_INSUFFICIENT_DISK ((HRESULT)0x80045314L) + +// +// MessageId: FSRM_E_VOLUME_UNSUPPORTED +// +// MessageText: +// +// The specified volume is unsupported. +// +#define FSRM_E_VOLUME_UNSUPPORTED ((HRESULT)0x80045315L) + +// +// MessageId: FSRM_E_UNEXPECTED +// +// MessageText: +// +// The File Server Resource Manager service encountered an unexpected error. +// Check the application event log for more information. +// +#define FSRM_E_UNEXPECTED ((HRESULT)0x80045316L) + +// +// MessageId: FSRM_E_INSECURE_PATH +// +// MessageText: +// +// The specified path is insecure. +// +#define FSRM_E_INSECURE_PATH ((HRESULT)0x80045317L) + +// +// MessageId: FSRM_E_INVALID_SMTP_SERVER +// +// MessageText: +// +// The SMTP server is invalid. +// +#define FSRM_E_INVALID_SMTP_SERVER ((HRESULT)0x80045318L) + +// +// MessageId: FSRM_E_AUTO_QUOTA +// +// MessageText: +// +// Auto apply quota configuration for one or more folders failed. Check the application event log for more information. +// +#define FSRM_E_AUTO_QUOTA ((HRESULT)0x0004531BL) + +// +// MessageId: FSRM_E_EMAIL_NOT_SENT +// +// MessageText: +// +// The File Server Resource Manager service could not send email due to an error. +// Check the application event log for more information. +// +#define FSRM_E_EMAIL_NOT_SENT ((HRESULT)0x8004531CL) + +// +// MessageId: FSRM_E_INVALID_EMAIL_ADDRESS +// +// MessageText: +// +// The specified email address is invalid. +// +#define FSRM_E_INVALID_EMAIL_ADDRESS ((HRESULT)0x8004531EL) + +// +// MessageId: FSRM_E_FILE_SYSTEM_CORRUPT +// +// MessageText: +// +// The file system might be corrupted. Please run the CHKDSK utility. +// +#define FSRM_E_FILE_SYSTEM_CORRUPT ((HRESULT)0x8004531FL) + +// +// MessageId: FSRM_E_LONG_CMDLINE +// +// MessageText: +// +// The specified command-line executable path is longer than MAX_PATH. +// +#define FSRM_E_LONG_CMDLINE ((HRESULT)0x80045320L) + +// +// MessageId: FSRM_E_INVALID_FILEGROUP_DEFINITION +// +// MessageText: +// +// The specified file group definition is invalid. +// +#define FSRM_E_INVALID_FILEGROUP_DEFINITION ((HRESULT)0x80045321L) + +// +// MessageId: FSRM_E_INVALID_DATASCREEN_DEFINITION +// +// MessageText: +// +// The specified file screen is invalid. +// +#define FSRM_E_INVALID_DATASCREEN_DEFINITION ((HRESULT)0x80045324L) + +// +// MessageId: FSRM_E_INVALID_REPORT_FORMAT +// +// MessageText: +// +// The specified report format is invalid. +// +#define FSRM_E_INVALID_REPORT_FORMAT ((HRESULT)0x80045328L) + +// +// MessageId: FSRM_E_INVALID_REPORT_DESC +// +// MessageText: +// +// The specified report description is invalid. +// +#define FSRM_E_INVALID_REPORT_DESC ((HRESULT)0x80045329L) + +// +// MessageId: FSRM_E_INVALID_FILENAME +// +// MessageText: +// +// The specified file name is invalid. +// +#define FSRM_E_INVALID_FILENAME ((HRESULT)0x8004532AL) + +// +// MessageId: FSRM_E_SHADOW_COPY +// +// MessageText: +// +// A volume shadow copy could not be created or was unexpectedly deleted. +// +#define FSRM_E_SHADOW_COPY ((HRESULT)0x8004532CL) + +// +// MessageId: FSRM_E_XML_CORRUPTED +// +// MessageText: +// +// A File Server Resource Manager XML configuration file or import-export file is corrupted. +// +#define FSRM_E_XML_CORRUPTED ((HRESULT)0x8004532DL) + +// +// MessageId: FSRM_E_CLUSTER_NOT_RUNNING +// +// MessageText: +// +// File Server Resource Manager global configuration cannot be accessed since the cluster service is not running. +// +#define FSRM_E_CLUSTER_NOT_RUNNING ((HRESULT)0x8004532EL) + +// +// MessageId: FSRM_E_STORE_NOT_INSTALLED +// +// MessageText: +// +// File Server Resource Manager global configuration cannot be accessed since it is not installed yet. +// +#define FSRM_E_STORE_NOT_INSTALLED ((HRESULT)0x8004532FL) + +// +// MessageId: FSRM_E_NOT_CLUSTER_VOLUME +// +// MessageText: +// +// The volume does not reside on a cluster shared disk with an associated cluster resource. +// +#define FSRM_E_NOT_CLUSTER_VOLUME ((HRESULT)0x80045330L) + +// +// MessageId: FSRM_E_DIFFERENT_CLUSTER_GROUP +// +// MessageText: +// +// There are at least two paths which reside on different cluster shared disks which are not in the same cluster resource group. +// +#define FSRM_E_DIFFERENT_CLUSTER_GROUP ((HRESULT)0x80045331L) + +// +// MessageId: FSRM_E_REPORT_TYPE_ALREADY_EXISTS +// +// MessageText: +// +// A report of the specified type already exists in the report job. +// +#define FSRM_E_REPORT_TYPE_ALREADY_EXISTS ((HRESULT)0x80045332L) + +// +// MessageId: FSRM_E_REPORT_JOB_ALREADY_RUNNING +// +// MessageText: +// +// The report job is already running or queued for running. +// +#define FSRM_E_REPORT_JOB_ALREADY_RUNNING ((HRESULT)0x80045333L) + +// +// MessageId: FSRM_E_REPORT_GENERATION_ERR +// +// MessageText: +// +// An error occurred during report generation. +// +#define FSRM_E_REPORT_GENERATION_ERR ((HRESULT)0x80045334L) + +// +// MessageId: FSRM_E_REPORT_TASK_TRIGGER +// +// MessageText: +// +// The task contains zero or unsupported triggers. +// +#define FSRM_E_REPORT_TASK_TRIGGER ((HRESULT)0x80045335L) + +// +// MessageId: FSRM_E_LOADING_DISABLED_MODULE +// +// MessageText: +// +// A rule or policy attempted to load/use a disabled module. +// +#define FSRM_E_LOADING_DISABLED_MODULE ((HRESULT)0x80045336L) + +// +// MessageId: FSRM_E_CANNOT_AGGREGATE +// +// MessageText: +// +// File Server Resource Manager cannot aggregate the value for the specified file property. +// +#define FSRM_E_CANNOT_AGGREGATE ((HRESULT)0x80045337L) + +// +// MessageId: FSRM_E_MESSAGE_LIMIT_EXCEEDED +// +// MessageText: +// +// The limit of the number of messages that the current pipeline context can add to the property bag has been reached. +// +#define FSRM_E_MESSAGE_LIMIT_EXCEEDED ((HRESULT)0x80045338L) + +// +// MessageId: FSRM_E_OBJECT_IN_USE +// +// MessageText: +// +// The object is in use and cannot be deleted. +// +#define FSRM_E_OBJECT_IN_USE ((HRESULT)0x80045339L) + +// +// MessageId: FSRM_E_CANNOT_RENAME_PROPERTY +// +// MessageText: +// +// Cannot change the name of a property definition once it is set. +// +#define FSRM_E_CANNOT_RENAME_PROPERTY ((HRESULT)0x8004533AL) + +// +// MessageId: FSRM_E_CANNOT_CHANGE_PROPERTY_TYPE +// +// MessageText: +// +// Cannot change the type of a property definition once it is set. +// +#define FSRM_E_CANNOT_CHANGE_PROPERTY_TYPE ((HRESULT)0x8004533BL) + +// +// MessageId: FSRM_E_MAX_PROPERTY_DEFINITIONS +// +// MessageText: +// +// A new property definition cannot be created. The maximum number of property definitions, {0}, has been reached. +// +#define FSRM_E_MAX_PROPERTY_DEFINITIONS ((HRESULT)0x8004533CL) + +// +// MessageId: FSRM_E_CLASSIFICATION_ALREADY_RUNNING +// +// MessageText: +// +// A classification job is currently running. Only one classification job can be running at a time. +// +#define FSRM_E_CLASSIFICATION_ALREADY_RUNNING ((HRESULT)0x8004533DL) + +// +// MessageId: FSRM_E_CLASSIFICATION_NOT_RUNNING +// +// MessageText: +// +// Classification is not currently running. +// +#define FSRM_E_CLASSIFICATION_NOT_RUNNING ((HRESULT)0x8004533EL) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_JOB_ALREADY_RUNNING +// +// MessageText: +// +// The file management task is already running or queued for running. +// +#define FSRM_E_FILE_MANAGEMENT_JOB_ALREADY_RUNNING ((HRESULT)0x8004533FL) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_JOB_EXPIRATION +// +// MessageText: +// +// Cannot expire a file while running a file management task. +// +#define FSRM_E_FILE_MANAGEMENT_JOB_EXPIRATION ((HRESULT)0x80045340L) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_JOB_CUSTOM +// +// MessageText: +// +// Cannot perform a custom action on a file while running a file management task. +// +#define FSRM_E_FILE_MANAGEMENT_JOB_CUSTOM ((HRESULT)0x80045341L) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_JOB_NOTIFICATION +// +// MessageText: +// +// Cannot send a notification for a file management task. +// +#define FSRM_E_FILE_MANAGEMENT_JOB_NOTIFICATION ((HRESULT)0x80045342L) + +// +// MessageId: FSRM_E_FILE_OPEN_ERROR +// +// MessageText: +// +// File Server Resource Manager cannot open the file. +// +#define FSRM_E_FILE_OPEN_ERROR ((HRESULT)0x80045343L) + +// +// MessageId: FSRM_E_UNSECURE_LINK_TO_HOSTED_MODULE +// +// MessageText: +// +// File Server Resource Manager failed to perform a secure link with a hosted module process. +// +#define FSRM_E_UNSECURE_LINK_TO_HOSTED_MODULE ((HRESULT)0x80045344L) + +// +// MessageId: FSRM_E_CACHE_INVALID +// +// MessageText: +// +// The property cache for the file is invalid and could not be read. +// +#define FSRM_E_CACHE_INVALID ((HRESULT)0x80045345L) + +// +// MessageId: FSRM_E_CACHE_MODULE_ALREADY_EXISTS +// +// MessageText: +// +// A cache storage module already exists. +// +#define FSRM_E_CACHE_MODULE_ALREADY_EXISTS ((HRESULT)0x80045346L) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_EXPIRATION_DIR_IN_SCOPE +// +// MessageText: +// +// The expiration directory cannot be within the file management scope. +// +#define FSRM_E_FILE_MANAGEMENT_EXPIRATION_DIR_IN_SCOPE ((HRESULT)0x80045347L) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_JOB_ALREADY_EXISTS +// +// MessageText: +// +// A file management task of the specified name already exists. +// +#define FSRM_E_FILE_MANAGEMENT_JOB_ALREADY_EXISTS ((HRESULT)0x80045348L) + +// +// MessageId: FSRM_E_PROPERTY_DELETED +// +// MessageText: +// +// The specified file property has been deleted. +// +#define FSRM_E_PROPERTY_DELETED ((HRESULT)0x80045349L) + +// +// MessageId: FSRM_E_LAST_ACCESS_UPDATE_DISABLED +// +// MessageText: +// +// The updating of last access times is disabled on this server. To create a report or file management task that uses the last access time the updating of last access time must be enabled. +// +#define FSRM_E_LAST_ACCESS_UPDATE_DISABLED ((HRESULT)0x80045350L) + +// +// MessageId: FSRM_E_NO_PROPERTY_VALUE +// +// MessageText: +// +// The specified file property should not be assigned a value. +// +#define FSRM_E_NO_PROPERTY_VALUE ((HRESULT)0x80045351L) + +// +// MessageId: FSRM_E_INPROC_MODULE_BLOCKED +// +// MessageText: +// +// An unknown module cannot be run inside the service process. +// +#define FSRM_E_INPROC_MODULE_BLOCKED ((HRESULT)0x80045352L) + +// +// MessageId: FSRM_E_ENUM_PROPERTIES_FAILED +// +// MessageText: +// +// File Server Resource Manager failed to enumerate file properties because a failure occurred while loading or classifying the file properties. +// +#define FSRM_E_ENUM_PROPERTIES_FAILED ((HRESULT)0x80045353L) + +// +// MessageId: FSRM_E_SET_PROPERTY_FAILED +// +// MessageText: +// +// File Server Resource Manager failed to set a file property to the file because a failure occurred while saving the file properties. +// +#define FSRM_E_SET_PROPERTY_FAILED ((HRESULT)0x80045354L) + +// +// MessageId: FSRM_E_CANNOT_STORE_PROPERTIES +// +// MessageText: +// +// Classification properties will not be stored because a failure occurred while loading or classifying the file properties. +// +#define FSRM_E_CANNOT_STORE_PROPERTIES ((HRESULT)0x80045355L) + +// +// MessageId: FSRM_E_CANNOT_ALLOW_REPARSE_POINT_TAG +// +// MessageText: +// +// Classification is not supported on the specified reparse point. File Server Resource Manager does not recognize the reparse point's identifier tag for the purposes of classification. +// +#define FSRM_E_CANNOT_ALLOW_REPARSE_POINT_TAG ((HRESULT)0x80045356L) + +// +// MessageId: FSRM_E_PARTIAL_CLASSIFICATION_PROPERTY_NOT_FOUND +// +// MessageText: +// +// The requested property was not found. The file may only have partial classification because a failure occurred while loading or classifying the file properties. +// +#define FSRM_E_PARTIAL_CLASSIFICATION_PROPERTY_NOT_FOUND ((HRESULT)0x80045357L) + +// +// MessageId: FSRM_E_TEXTREADER_NOT_INITIALIZED +// +// MessageText: +// +// The File Server Resource Manager text reader was not initialized. +// +#define FSRM_E_TEXTREADER_NOT_INITIALIZED ((HRESULT)0x80045358L) + +// +// MessageId: FSRM_E_TEXTREADER_IFILTER_NOT_FOUND +// +// MessageText: +// +// There is no IFilter registered for this extension. +// +#define FSRM_E_TEXTREADER_IFILTER_NOT_FOUND ((HRESULT)0x80045359L) + +// +// MessageId: FSRM_E_PERSIST_PROPERTIES_FAILED_ENCRYPTED +// +// MessageText: +// +// File Server Resource Manager failed to write the properties to the file because the file is either corrupt or protected by Rights Management Services. +// +#define FSRM_E_PERSIST_PROPERTIES_FAILED_ENCRYPTED ((HRESULT)0x8004535AL) + +// +// MessageId: FSRM_E_TEXTREADER_IFILTER_CLSID_MALFORMED +// +// MessageText: +// +// The IFilter for this extension is not registered correctly. +// +#define FSRM_E_TEXTREADER_IFILTER_CLSID_MALFORMED ((HRESULT)0x80045360L) + +// +// MessageId: FSRM_E_TEXTREADER_STREAM_ERROR +// +// MessageText: +// +// There was an error obtaining the file's streaming interface. +// +#define FSRM_E_TEXTREADER_STREAM_ERROR ((HRESULT)0x80045361L) + +// +// MessageId: FSRM_E_TEXTREADER_FILENAME_TOO_LONG +// +// MessageText: +// +// The file name's extension is too long. +// +#define FSRM_E_TEXTREADER_FILENAME_TOO_LONG ((HRESULT)0x80045362L) + +// +// MessageId: FSRM_E_INCOMPATIBLE_FORMAT +// +// MessageText: +// +// The module will not process the specified file because it is unable to determine a compatible file format. +// +#define FSRM_E_INCOMPATIBLE_FORMAT ((HRESULT)0x80045363L) + +// +// MessageId: FSRM_E_FILE_ENCRYPTED +// +// MessageText: +// +// File Server Resource Manager could not access the file because it is encrypted. +// +#define FSRM_E_FILE_ENCRYPTED ((HRESULT)0x80045364L) + +// +// MessageId: FSRM_E_PERSIST_PROPERTIES_FAILED +// +// MessageText: +// +// File Server Resource Manager failed to persist the properties to the file. +// +#define FSRM_E_PERSIST_PROPERTIES_FAILED ((HRESULT)0x80045365L) + +// +// MessageId: FSRM_E_VOLUME_OFFLINE +// +// MessageText: +// +// File Server Resource Manager failed to access the volume. It may be offline. +// +#define FSRM_E_VOLUME_OFFLINE ((HRESULT)0x80045366L) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_ACTION_TIMEOUT +// +// MessageText: +// +// The file management action command timed out. +// +#define FSRM_E_FILE_MANAGEMENT_ACTION_TIMEOUT ((HRESULT)0x80045367L) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_ACTION_GET_EXITCODE_FAILED +// +// MessageText: +// +// The file management action completed successfully, but the exit code cannot be obtained. +// +#define FSRM_E_FILE_MANAGEMENT_ACTION_GET_EXITCODE_FAILED ((HRESULT)0x80045368L) + +// +// MessageId: FSRM_E_MODULE_INVALID_PARAM +// +// MessageText: +// +// The module encountered an invalid parameter or a valid parameter with an invalid value or an expected module parameter is not found. Check the application event log for more information. +// +#define FSRM_E_MODULE_INVALID_PARAM ((HRESULT)0x80045369L) + +// +// MessageId: FSRM_E_MODULE_INITIALIZATION +// +// MessageText: +// +// The module initialization failed. Check the application event log for more information. +// +#define FSRM_E_MODULE_INITIALIZATION ((HRESULT)0x8004536AL) + +// +// MessageId: FSRM_E_MODULE_SESSION_INITIALIZATION +// +// MessageText: +// +// The module session initialization failed. Check the application event log for more information. +// +#define FSRM_E_MODULE_SESSION_INITIALIZATION ((HRESULT)0x8004536BL) + +// +// MessageId: FSRM_E_CLASSIFICATION_SCAN_FAIL +// +// MessageText: +// +// Classification failed on all volumes. Check the application event log for more information. +// +#define FSRM_E_CLASSIFICATION_SCAN_FAIL ((HRESULT)0x8004536CL) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_JOB_NOT_LEGACY_ACCESSIBLE +// +// MessageText: +// +// The file management task cannot be accessed because task conditions were modified by using WMI or Windows PowerShell interfaces. To access or edit the file management task, use the WMI or Windows PowerShell interfaces. +// +#define FSRM_E_FILE_MANAGEMENT_JOB_NOT_LEGACY_ACCESSIBLE ((HRESULT)0x8004536DL) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_JOB_MAX_FILE_CONDITIONS +// +// MessageText: +// +// The file management task has reached its maximum number of conditions. +// +#define FSRM_E_FILE_MANAGEMENT_JOB_MAX_FILE_CONDITIONS ((HRESULT)0x8004536EL) + +// +// MessageId: FSRM_E_CANNOT_USE_DEPRECATED_PROPERTY +// +// MessageText: +// +// This object uses a property definition that is deprecated. You must change it to use a non-deprecated property definition. +// +#define FSRM_E_CANNOT_USE_DEPRECATED_PROPERTY ((HRESULT)0x8004536FL) + +// +// MessageId: FSRM_E_SYNC_TASK_TIMEOUT +// +// MessageText: +// +// The property definition sync task timed out. +// +#define FSRM_E_SYNC_TASK_TIMEOUT ((HRESULT)0x80045370L) + +// +// MessageId: FSRM_E_CANNOT_USE_DELETED_PROPERTY +// +// MessageText: +// +// This object uses a property definition that doesn't exist. You must change it to use an existing property definition. +// +#define FSRM_E_CANNOT_USE_DELETED_PROPERTY ((HRESULT)0x80045371L) + +// +// MessageId: FSRM_E_INVALID_AD_CLAIM +// +// MessageText: +// +// File Server Resource Manager encountered an invalid resource claim in Active Directory. +// +#define FSRM_E_INVALID_AD_CLAIM ((HRESULT)0x80045372L) + +// +// MessageId: FSRM_E_CLASSIFICATION_CANCELED +// +// MessageText: +// +// The classification operation was canceled. +// +#define FSRM_E_CLASSIFICATION_CANCELED ((HRESULT)0x80045373L) + +// +// MessageId: FSRM_E_INVALID_FOLDER_PROPERTY_STORE +// +// MessageText: +// +// File Server Resource Manager encountered an invalid folder property store. +// +#define FSRM_E_INVALID_FOLDER_PROPERTY_STORE ((HRESULT)0x80045374L) + +// +// MessageId: FSRM_E_REBUILDING_FODLER_TYPE_INDEX +// +// MessageText: +// +// File Server Resource Manager is rebuilding the index of Folder Usage property values. +// +#define FSRM_E_REBUILDING_FODLER_TYPE_INDEX ((HRESULT)0x80045375L) + +// +// MessageId: FSRM_E_PROPERTY_MUST_APPLY_TO_FILES +// +// MessageText: +// +// The specified property definition doesn't apply to files. +// +#define FSRM_E_PROPERTY_MUST_APPLY_TO_FILES ((HRESULT)0x80045376L) + +// +// MessageId: FSRM_E_CLASSIFICATION_TIMEOUT +// +// MessageText: +// +// The classification request timed out. +// +#define FSRM_E_CLASSIFICATION_TIMEOUT ((HRESULT)0x80045377L) + +// +// MessageId: FSRM_E_CLASSIFICATION_PARTIAL_BATCH +// +// MessageText: +// +// Classification failed on one or more files in the batch operation. +// +#define FSRM_E_CLASSIFICATION_PARTIAL_BATCH ((HRESULT)0x80045378L) + +// +// MessageId: FSRM_E_CANNOT_DELETE_SYSTEM_PROPERTY +// +// MessageText: +// +// This property is a system property and cannot be deleted. +// +#define FSRM_E_CANNOT_DELETE_SYSTEM_PROPERTY ((HRESULT)0x80045379L) + +// +// MessageId: FSRM_E_FILE_IN_USE +// +// MessageText: +// +// The file is being used by another application and cannot be accessed at this time. +// +#define FSRM_E_FILE_IN_USE ((HRESULT)0x8004537AL) + +// +// MessageId: FSRM_E_ERROR_NOT_ENABLED +// +// MessageText: +// +// Access-denied assistance is not enabled for this error. +// +#define FSRM_E_ERROR_NOT_ENABLED ((HRESULT)0x8004537BL) + +// +// MessageId: FSRM_E_CANNOT_CREATE_TEMP_COPY +// +// MessageText: +// +// File Server Resource Manager could not create a temporary file copy. +// +#define FSRM_E_CANNOT_CREATE_TEMP_COPY ((HRESULT)0x8004537CL) + +// +// MessageId: FSRM_E_NO_EMAIL_ADDRESS +// +// MessageText: +// +// Access-denied assistance cannot send an email because an email address could not be found for the path specified, and sending email to the administrator is not enabled. +// +#define FSRM_E_NO_EMAIL_ADDRESS ((HRESULT)0x8004537DL) + +// +// MessageId: FSRM_E_ADR_MAX_EMAILS_SENT +// +// MessageText: +// +// The current user has sent the maximum number of requests for access-denied assistance. +// +#define FSRM_E_ADR_MAX_EMAILS_SENT ((HRESULT)0x8004537EL) + +// +// MessageId: FSRM_E_PATH_NOT_IN_NAMESPACE +// +// MessageText: +// +// The path is not included in a classification rule. +// +#define FSRM_E_PATH_NOT_IN_NAMESPACE ((HRESULT)0x8004537FL) + +// +// MessageId: FSRM_E_RMS_TEMPLATE_NOT_FOUND +// +// MessageText: +// +// The RMS template used to configure the file management task no longer exists. Please select another template. +// +#define FSRM_E_RMS_TEMPLATE_NOT_FOUND ((HRESULT)0x80045380L) + +// +// MessageId: FSRM_E_SECURE_PROPERTIES_NOT_SUPPORTED +// +// MessageText: +// +// The computer hosting the file or folder does not support setting secure properties. This can occur if the computer is running Windows Server 2008 R2, Windows 7, or earlier, or if the computer is not running Windows. +// +#define FSRM_E_SECURE_PROPERTIES_NOT_SUPPORTED ((HRESULT)0x80045381L) + +// +// MessageId: FSRM_E_RMS_NO_PROTECTORS_INSTALLED +// +// MessageText: +// +// File Server Resource Manager cannot run the file management task because no RMS protectors are installed. +// +#define FSRM_E_RMS_NO_PROTECTORS_INSTALLED ((HRESULT)0x80045382L) + +// +// MessageId: FSRM_E_RMS_NO_PROTECTOR_INSTALLED_FOR_FILE +// +// MessageText: +// +// File Server Resource Manager cannot protect the file because an RMS protector for the file type is not installed. +// +#define FSRM_E_RMS_NO_PROTECTOR_INSTALLED_FOR_FILE ((HRESULT)0x80045383L) + +// +// MessageId: FSRM_E_PROPERTY_MUST_APPLY_TO_FOLDERS +// +// MessageText: +// +// The specified property definition doesn't apply to folders. +// +#define FSRM_E_PROPERTY_MUST_APPLY_TO_FOLDERS ((HRESULT)0x80045384L) + +// +// MessageId: FSRM_E_PROPERTY_MUST_BE_SECURE +// +// MessageText: +// +// The specified property definition type is not secure. +// +#define FSRM_E_PROPERTY_MUST_BE_SECURE ((HRESULT)0x80045385L) + +// +// MessageId: FSRM_E_PROPERTY_MUST_BE_GLOBAL +// +// MessageText: +// +// The specified property definition type is not global. +// +#define FSRM_E_PROPERTY_MUST_BE_GLOBAL ((HRESULT)0x80045386L) + +// +// MessageId: FSRM_E_WMI_FAILURE +// +// MessageText: +// +// Unexpected failure from a WMI call. +// +#define FSRM_E_WMI_FAILURE ((HRESULT)0x80045387L) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_JOB_RMS +// +// MessageText: +// +// Cannot protect a file while running a file management task. +// +#define FSRM_E_FILE_MANAGEMENT_JOB_RMS ((HRESULT)0x80045388L) + +// +// MessageId: FSRM_E_SYNC_TASK_HAD_ERRORS +// +// MessageText: +// +// The property definition sync task encountered errors. +// Check the application event log for more information. +// +#define FSRM_E_SYNC_TASK_HAD_ERRORS ((HRESULT)0x80045389L) + +// +// MessageId: FSRM_E_ADR_SRV_NOT_SUPPORTED +// +// MessageText: +// +// The server does not provide access-denied assistance. +// +#define FSRM_E_ADR_SRV_NOT_SUPPORTED ((HRESULT)0x80045390L) + +// +// MessageId: FSRM_E_ADR_PATH_IS_LOCAL +// +// MessageText: +// +// Access-denied assistance cannot be provided for local paths. +// +#define FSRM_E_ADR_PATH_IS_LOCAL ((HRESULT)0x80045391L) + +// +// MessageId: FSRM_E_ADR_NOT_DOMAIN_JOINED +// +// MessageText: +// +// Access-denied assistance requires that the server be joined to a domain. +// +#define FSRM_E_ADR_NOT_DOMAIN_JOINED ((HRESULT)0x80045392L) + +// +// MessageId: FSRM_E_CANNOT_REMOVE_READONLY +// +// MessageText: +// +// File Server Resource Manager could not remove the read-only attribute from a file. +// +#define FSRM_E_CANNOT_REMOVE_READONLY ((HRESULT)0x80045393L) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_JOB_INVALID_CONTINUOUS_CONFIG +// +// MessageText: +// +// A continuous file management job cannot have conditions based on the file's last accessed/modified or created times and cannot define any notifications. +// +#define FSRM_E_FILE_MANAGEMENT_JOB_INVALID_CONTINUOUS_CONFIG ((HRESULT)0x80045394L) + +// +// MessageId: FSRM_E_LEGACY_SCHEDULE +// +// MessageText: +// +// The object contains a schedule that was created by using an earlier version of File Server Resource Manager and that is incompatible with the current version of Windows Server. Edit the schedule on this computer to update it. +// +#define FSRM_E_LEGACY_SCHEDULE ((HRESULT)0x80045395L) + +// +// MessageId: FSRM_E_CSC_PATH_NOT_SUPPORTED +// +// MessageText: +// +// This operation is not supported for paths on which Offline Files is enabled. +// +#define FSRM_E_CSC_PATH_NOT_SUPPORTED ((HRESULT)0x80045396L) + +// +// MessageId: FSRM_E_EXPIRATION_PATH_NOT_WRITEABLE +// +// MessageText: +// +// Cannot write to the specified expiration directory. Confirm that the permissions of the expiration directory grant Write permission to the computer account of the server performing the file expiration task. +// +#define FSRM_E_EXPIRATION_PATH_NOT_WRITEABLE ((HRESULT)0x80045397L) + +// +// MessageId: FSRM_E_EXPIRATION_PATH_TOO_LONG +// +// MessageText: +// +// The expiration path must be 150 characters or shorter. +// +#define FSRM_E_EXPIRATION_PATH_TOO_LONG ((HRESULT)0x80045398L) + +// +// MessageId: FSRM_E_EXPIRATION_VOLUME_NOT_NTFS +// +// MessageText: +// +// The expiration directory must be on a volume formatted with the NTFS file system. +// +#define FSRM_E_EXPIRATION_VOLUME_NOT_NTFS ((HRESULT)0x80045399L) + +// +// MessageId: FSRM_E_FILE_MANAGEMENT_JOB_DEPRECATED +// +// MessageText: +// +// This file management job is deprecated. Please check the configuration of the file management job and verify that it is up-to-date. +// +#define FSRM_E_FILE_MANAGEMENT_JOB_DEPRECATED ((HRESULT)0x8004539AL) + +// +// MessageId: FSRM_E_MODULE_TIMEOUT +// +// MessageText: +// +// A module was restarted due to excessive processing time of a file. Check the application event log for more information. +// +#define FSRM_E_MODULE_TIMEOUT ((HRESULT)0x8004539BL) + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmpipeline.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmpipeline.h new file mode 100644 index 0000000000000000000000000000000000000000..9c172f21e3daaefca52d9e9e50a7aedaafc2eb3b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmpipeline.h @@ -0,0 +1,5265 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __fsrmpipeline_h__ +#define __fsrmpipeline_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFsrmPropertyDefinition_FWD_DEFINED__ +#define __IFsrmPropertyDefinition_FWD_DEFINED__ +typedef interface IFsrmPropertyDefinition IFsrmPropertyDefinition; + +#endif /* __IFsrmPropertyDefinition_FWD_DEFINED__ */ + + +#ifndef __IFsrmPropertyDefinition2_FWD_DEFINED__ +#define __IFsrmPropertyDefinition2_FWD_DEFINED__ +typedef interface IFsrmPropertyDefinition2 IFsrmPropertyDefinition2; + +#endif /* __IFsrmPropertyDefinition2_FWD_DEFINED__ */ + + +#ifndef __IFsrmPropertyDefinitionValue_FWD_DEFINED__ +#define __IFsrmPropertyDefinitionValue_FWD_DEFINED__ +typedef interface IFsrmPropertyDefinitionValue IFsrmPropertyDefinitionValue; + +#endif /* __IFsrmPropertyDefinitionValue_FWD_DEFINED__ */ + + +#ifndef __IFsrmProperty_FWD_DEFINED__ +#define __IFsrmProperty_FWD_DEFINED__ +typedef interface IFsrmProperty IFsrmProperty; + +#endif /* __IFsrmProperty_FWD_DEFINED__ */ + + +#ifndef __IFsrmRule_FWD_DEFINED__ +#define __IFsrmRule_FWD_DEFINED__ +typedef interface IFsrmRule IFsrmRule; + +#endif /* __IFsrmRule_FWD_DEFINED__ */ + + +#ifndef __IFsrmClassificationRule_FWD_DEFINED__ +#define __IFsrmClassificationRule_FWD_DEFINED__ +typedef interface IFsrmClassificationRule IFsrmClassificationRule; + +#endif /* __IFsrmClassificationRule_FWD_DEFINED__ */ + + +#ifndef __IFsrmPipelineModuleDefinition_FWD_DEFINED__ +#define __IFsrmPipelineModuleDefinition_FWD_DEFINED__ +typedef interface IFsrmPipelineModuleDefinition IFsrmPipelineModuleDefinition; + +#endif /* __IFsrmPipelineModuleDefinition_FWD_DEFINED__ */ + + +#ifndef __IFsrmClassifierModuleDefinition_FWD_DEFINED__ +#define __IFsrmClassifierModuleDefinition_FWD_DEFINED__ +typedef interface IFsrmClassifierModuleDefinition IFsrmClassifierModuleDefinition; + +#endif /* __IFsrmClassifierModuleDefinition_FWD_DEFINED__ */ + + +#ifndef __IFsrmStorageModuleDefinition_FWD_DEFINED__ +#define __IFsrmStorageModuleDefinition_FWD_DEFINED__ +typedef interface IFsrmStorageModuleDefinition IFsrmStorageModuleDefinition; + +#endif /* __IFsrmStorageModuleDefinition_FWD_DEFINED__ */ + + +#ifndef __IFsrmClassificationManager_FWD_DEFINED__ +#define __IFsrmClassificationManager_FWD_DEFINED__ +typedef interface IFsrmClassificationManager IFsrmClassificationManager; + +#endif /* __IFsrmClassificationManager_FWD_DEFINED__ */ + + +#ifndef __IFsrmClassificationManager2_FWD_DEFINED__ +#define __IFsrmClassificationManager2_FWD_DEFINED__ +typedef interface IFsrmClassificationManager2 IFsrmClassificationManager2; + +#endif /* __IFsrmClassificationManager2_FWD_DEFINED__ */ + + +#ifndef __IFsrmPropertyBag_FWD_DEFINED__ +#define __IFsrmPropertyBag_FWD_DEFINED__ +typedef interface IFsrmPropertyBag IFsrmPropertyBag; + +#endif /* __IFsrmPropertyBag_FWD_DEFINED__ */ + + +#ifndef __IFsrmPropertyBag2_FWD_DEFINED__ +#define __IFsrmPropertyBag2_FWD_DEFINED__ +typedef interface IFsrmPropertyBag2 IFsrmPropertyBag2; + +#endif /* __IFsrmPropertyBag2_FWD_DEFINED__ */ + + +#ifndef __IFsrmPipelineModuleImplementation_FWD_DEFINED__ +#define __IFsrmPipelineModuleImplementation_FWD_DEFINED__ +typedef interface IFsrmPipelineModuleImplementation IFsrmPipelineModuleImplementation; + +#endif /* __IFsrmPipelineModuleImplementation_FWD_DEFINED__ */ + + +#ifndef __IFsrmClassifierModuleImplementation_FWD_DEFINED__ +#define __IFsrmClassifierModuleImplementation_FWD_DEFINED__ +typedef interface IFsrmClassifierModuleImplementation IFsrmClassifierModuleImplementation; + +#endif /* __IFsrmClassifierModuleImplementation_FWD_DEFINED__ */ + + +#ifndef __IFsrmStorageModuleImplementation_FWD_DEFINED__ +#define __IFsrmStorageModuleImplementation_FWD_DEFINED__ +typedef interface IFsrmStorageModuleImplementation IFsrmStorageModuleImplementation; + +#endif /* __IFsrmStorageModuleImplementation_FWD_DEFINED__ */ + + +#ifndef __IFsrmPipelineModuleConnector_FWD_DEFINED__ +#define __IFsrmPipelineModuleConnector_FWD_DEFINED__ +typedef interface IFsrmPipelineModuleConnector IFsrmPipelineModuleConnector; + +#endif /* __IFsrmPipelineModuleConnector_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "fsrm.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_fsrmpipeline_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + + + + + + + + + + +#define FSRM_DISPID_PROPERTY_DEFINITION ( ( FSRM_DISPID_FEATURE_CLASSIFICATION | 0x100000 ) ) + +#define FSRM_DISPID_PROPERTY_DEFINITION2 ( ( FSRM_DISPID_PROPERTY_DEFINITION | 0x10000 ) ) + +#define FSRM_DISPID_PROPERTY ( ( FSRM_DISPID_FEATURE_CLASSIFICATION | 0x200000 ) ) + +#define FSRM_DISPID_RULE ( ( FSRM_DISPID_FEATURE_CLASSIFICATION | 0x300000 ) ) + +#define FSRM_DISPID_CLASSIFICATION_RULE ( ( FSRM_DISPID_RULE | 0x10000 ) ) + +#define FSRM_DISPID_EXPIRATION_RULE ( ( FSRM_DISPID_RULE | 0x20000 ) ) + +#define FSRM_DISPID_PIPELINE_MODULE_DEFINITION ( ( FSRM_DISPID_FEATURE_CLASSIFICATION | 0x400000 ) ) + +#define FSRM_DISPID_CLASSIFIER_MODULE_DEFINITION ( ( FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x10000 ) ) + +#define FSRM_DISPID_STORAGE_MODULE_DEFINITION ( ( FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x20000 ) ) + +#define FSRM_DISPID_CLASSIFICATION_MANAGER ( ( FSRM_DISPID_FEATURE_CLASSIFICATION | 0x500000 ) ) + +#define FSRM_DISPID_CLASSIFICATION_MANAGER2 ( ( FSRM_DISPID_CLASSIFICATION_MANAGER | 0x10000 ) ) + +#define FSRM_DISPID_CLASSIFICATION_EVENTS ( ( FSRM_DISPID_FEATURE_CLASSIFICATION | 0x600000 ) ) + +#define FSRM_DISPID_PROPERTY_DEFINITION_VALUE ( ( FSRM_DISPID_FEATURE_CLASSIFICATION | 0x700000 ) ) + +#define FSRM_DISPID_PROPERTY_BAG ( ( FSRM_DISPID_FEATURE_PIPELINE | 0x100000 ) ) + +#define FSRM_DISPID_PROPERTY_BAG2 ( ( FSRM_DISPID_PROPERTY_BAG | 0x10000 ) ) + +#define FSRM_DISPID_PIPELINE_MODULE_IMPLEMENTATION ( ( FSRM_DISPID_FEATURE_PIPELINE | 0x200000 ) ) + +#define FSRM_DISPID_CLASSIFIER_MODULE_IMPLEMENTATION ( ( FSRM_DISPID_PIPELINE_MODULE_IMPLEMENTATION | 0x10000 ) ) + +#define FSRM_DISPID_STORAGE_MODULE_IMPLEMENTATION ( ( FSRM_DISPID_PIPELINE_MODULE_IMPLEMENTATION | 0x20000 ) ) + +#define FSRM_DISPID_PIPELINE_MODULE_CONNECTOR ( ( FSRM_DISPID_FEATURE_PIPELINE | 0x300000 ) ) + +#define FsrmMaxNumberPropertyDefinitions ( 100 ) + + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmpipeline_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmpipeline_0000_0000_v0_0_s_ifspec; + +#ifndef __IFsrmPropertyDefinition_INTERFACE_DEFINED__ +#define __IFsrmPropertyDefinition_INTERFACE_DEFINED__ + +/* interface IFsrmPropertyDefinition */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmPropertyDefinition; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ede0150f-e9a3-419c-877c-01fe5d24c5d3") + IFsrmPropertyDefinition : public IFsrmObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out FsrmPropertyDefinitionType *type) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ FsrmPropertyDefinitionType type) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PossibleValues( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *possibleValues) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PossibleValues( + /* [in] */ __RPC__in SAFEARRAY * possibleValues) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ValueDescriptions( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *valueDescriptions) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ValueDescriptions( + /* [in] */ __RPC__in SAFEARRAY * valueDescriptions) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Parameters( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Parameters( + /* [in] */ __RPC__in SAFEARRAY * parameters) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPropertyDefinitionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmPropertyDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmPropertyDefinition * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmPropertyDefinition * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmPropertyDefinition * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmPropertyDefinition * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmPropertyDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmPropertyDefinition * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmPropertyDefinition * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmPropertyDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmPropertyDefinition * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmPropertyDefinition * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmPropertyDefinition * This); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmPropertyDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmPropertyDefinition * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, get_Type) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IFsrmPropertyDefinition * This, + /* [retval][out] */ __RPC__out FsrmPropertyDefinitionType *type); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, put_Type) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in IFsrmPropertyDefinition * This, + /* [in] */ FsrmPropertyDefinitionType type); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, get_PossibleValues) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PossibleValues )( + __RPC__in IFsrmPropertyDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *possibleValues); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, put_PossibleValues) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PossibleValues )( + __RPC__in IFsrmPropertyDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * possibleValues); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, get_ValueDescriptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ValueDescriptions )( + __RPC__in IFsrmPropertyDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *valueDescriptions); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, put_ValueDescriptions) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ValueDescriptions )( + __RPC__in IFsrmPropertyDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * valueDescriptions); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, get_Parameters) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in IFsrmPropertyDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, put_Parameters) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Parameters )( + __RPC__in IFsrmPropertyDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * parameters); + + END_INTERFACE + } IFsrmPropertyDefinitionVtbl; + + interface IFsrmPropertyDefinition + { + CONST_VTBL struct IFsrmPropertyDefinitionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmPropertyDefinition_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmPropertyDefinition_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmPropertyDefinition_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmPropertyDefinition_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmPropertyDefinition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmPropertyDefinition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmPropertyDefinition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmPropertyDefinition_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmPropertyDefinition_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmPropertyDefinition_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmPropertyDefinition_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmPropertyDefinition_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmPropertyDefinition_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmPropertyDefinition_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmPropertyDefinition_get_Type(This,type) \ + ( (This)->lpVtbl -> get_Type(This,type) ) + +#define IFsrmPropertyDefinition_put_Type(This,type) \ + ( (This)->lpVtbl -> put_Type(This,type) ) + +#define IFsrmPropertyDefinition_get_PossibleValues(This,possibleValues) \ + ( (This)->lpVtbl -> get_PossibleValues(This,possibleValues) ) + +#define IFsrmPropertyDefinition_put_PossibleValues(This,possibleValues) \ + ( (This)->lpVtbl -> put_PossibleValues(This,possibleValues) ) + +#define IFsrmPropertyDefinition_get_ValueDescriptions(This,valueDescriptions) \ + ( (This)->lpVtbl -> get_ValueDescriptions(This,valueDescriptions) ) + +#define IFsrmPropertyDefinition_put_ValueDescriptions(This,valueDescriptions) \ + ( (This)->lpVtbl -> put_ValueDescriptions(This,valueDescriptions) ) + +#define IFsrmPropertyDefinition_get_Parameters(This,parameters) \ + ( (This)->lpVtbl -> get_Parameters(This,parameters) ) + +#define IFsrmPropertyDefinition_put_Parameters(This,parameters) \ + ( (This)->lpVtbl -> put_Parameters(This,parameters) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmPropertyDefinition_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmPropertyDefinition2_INTERFACE_DEFINED__ +#define __IFsrmPropertyDefinition2_INTERFACE_DEFINED__ + +/* interface IFsrmPropertyDefinition2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmPropertyDefinition2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("47782152-d16c-4229-b4e1-0ddfe308b9f6") + IFsrmPropertyDefinition2 : public IFsrmPropertyDefinition + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyDefinitionFlags( + /* [retval][out] */ __RPC__out long *propertyDefinitionFlags) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DisplayName( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AppliesTo( + /* [retval][out] */ __RPC__out long *appliesTo) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ValueDefinitions( + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **valueDefinitions) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPropertyDefinition2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmPropertyDefinition2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmPropertyDefinition2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmPropertyDefinition2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmPropertyDefinition2 * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmPropertyDefinition2 * This); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, get_Type) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__out FsrmPropertyDefinitionType *type); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, put_Type) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [in] */ FsrmPropertyDefinitionType type); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, get_PossibleValues) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PossibleValues )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *possibleValues); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, put_PossibleValues) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PossibleValues )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [in] */ __RPC__in SAFEARRAY * possibleValues); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, get_ValueDescriptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ValueDescriptions )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *valueDescriptions); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, put_ValueDescriptions) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ValueDescriptions )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [in] */ __RPC__in SAFEARRAY * valueDescriptions); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, get_Parameters) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition, put_Parameters) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Parameters )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [in] */ __RPC__in SAFEARRAY * parameters); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition2, get_PropertyDefinitionFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyDefinitionFlags )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__out long *propertyDefinitionFlags); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition2, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition2, put_DisplayName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayName )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition2, get_AppliesTo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AppliesTo )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__out long *appliesTo); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinition2, get_ValueDefinitions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ValueDefinitions )( + __RPC__in IFsrmPropertyDefinition2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **valueDefinitions); + + END_INTERFACE + } IFsrmPropertyDefinition2Vtbl; + + interface IFsrmPropertyDefinition2 + { + CONST_VTBL struct IFsrmPropertyDefinition2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmPropertyDefinition2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmPropertyDefinition2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmPropertyDefinition2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmPropertyDefinition2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmPropertyDefinition2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmPropertyDefinition2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmPropertyDefinition2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmPropertyDefinition2_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmPropertyDefinition2_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmPropertyDefinition2_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmPropertyDefinition2_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmPropertyDefinition2_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmPropertyDefinition2_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmPropertyDefinition2_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmPropertyDefinition2_get_Type(This,type) \ + ( (This)->lpVtbl -> get_Type(This,type) ) + +#define IFsrmPropertyDefinition2_put_Type(This,type) \ + ( (This)->lpVtbl -> put_Type(This,type) ) + +#define IFsrmPropertyDefinition2_get_PossibleValues(This,possibleValues) \ + ( (This)->lpVtbl -> get_PossibleValues(This,possibleValues) ) + +#define IFsrmPropertyDefinition2_put_PossibleValues(This,possibleValues) \ + ( (This)->lpVtbl -> put_PossibleValues(This,possibleValues) ) + +#define IFsrmPropertyDefinition2_get_ValueDescriptions(This,valueDescriptions) \ + ( (This)->lpVtbl -> get_ValueDescriptions(This,valueDescriptions) ) + +#define IFsrmPropertyDefinition2_put_ValueDescriptions(This,valueDescriptions) \ + ( (This)->lpVtbl -> put_ValueDescriptions(This,valueDescriptions) ) + +#define IFsrmPropertyDefinition2_get_Parameters(This,parameters) \ + ( (This)->lpVtbl -> get_Parameters(This,parameters) ) + +#define IFsrmPropertyDefinition2_put_Parameters(This,parameters) \ + ( (This)->lpVtbl -> put_Parameters(This,parameters) ) + + +#define IFsrmPropertyDefinition2_get_PropertyDefinitionFlags(This,propertyDefinitionFlags) \ + ( (This)->lpVtbl -> get_PropertyDefinitionFlags(This,propertyDefinitionFlags) ) + +#define IFsrmPropertyDefinition2_get_DisplayName(This,name) \ + ( (This)->lpVtbl -> get_DisplayName(This,name) ) + +#define IFsrmPropertyDefinition2_put_DisplayName(This,name) \ + ( (This)->lpVtbl -> put_DisplayName(This,name) ) + +#define IFsrmPropertyDefinition2_get_AppliesTo(This,appliesTo) \ + ( (This)->lpVtbl -> get_AppliesTo(This,appliesTo) ) + +#define IFsrmPropertyDefinition2_get_ValueDefinitions(This,valueDefinitions) \ + ( (This)->lpVtbl -> get_ValueDefinitions(This,valueDefinitions) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmPropertyDefinition2_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmPropertyDefinitionValue_INTERFACE_DEFINED__ +#define __IFsrmPropertyDefinitionValue_INTERFACE_DEFINED__ + +/* interface IFsrmPropertyDefinitionValue */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmPropertyDefinitionValue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E946D148-BD67-4178-8E22-1C44925ED710") + IFsrmPropertyDefinitionValue : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *displayName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *description) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UniqueID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *uniqueID) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPropertyDefinitionValueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmPropertyDefinitionValue * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmPropertyDefinitionValue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmPropertyDefinitionValue * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmPropertyDefinitionValue * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmPropertyDefinitionValue * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmPropertyDefinitionValue * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmPropertyDefinitionValue * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinitionValue, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmPropertyDefinitionValue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinitionValue, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IFsrmPropertyDefinitionValue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *displayName); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinitionValue, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmPropertyDefinitionValue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmPropertyDefinitionValue, get_UniqueID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UniqueID )( + __RPC__in IFsrmPropertyDefinitionValue * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *uniqueID); + + END_INTERFACE + } IFsrmPropertyDefinitionValueVtbl; + + interface IFsrmPropertyDefinitionValue + { + CONST_VTBL struct IFsrmPropertyDefinitionValueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmPropertyDefinitionValue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmPropertyDefinitionValue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmPropertyDefinitionValue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmPropertyDefinitionValue_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmPropertyDefinitionValue_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmPropertyDefinitionValue_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmPropertyDefinitionValue_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmPropertyDefinitionValue_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmPropertyDefinitionValue_get_DisplayName(This,displayName) \ + ( (This)->lpVtbl -> get_DisplayName(This,displayName) ) + +#define IFsrmPropertyDefinitionValue_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmPropertyDefinitionValue_get_UniqueID(This,uniqueID) \ + ( (This)->lpVtbl -> get_UniqueID(This,uniqueID) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmPropertyDefinitionValue_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmProperty_INTERFACE_DEFINED__ +#define __IFsrmProperty_INTERFACE_DEFINED__ + +/* interface IFsrmProperty */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4a73fee4-4102-4fcc-9ffb-38614f9ee768") + IFsrmProperty : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Sources( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *sources) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyFlags( + /* [retval][out] */ __RPC__out long *flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmProperty * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmProperty * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmProperty, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmProperty, get_Value) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IFsrmProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IFsrmProperty, get_Sources) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Sources )( + __RPC__in IFsrmProperty * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *sources); + + DECLSPEC_XFGVIRT(IFsrmProperty, get_PropertyFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyFlags )( + __RPC__in IFsrmProperty * This, + /* [retval][out] */ __RPC__out long *flags); + + END_INTERFACE + } IFsrmPropertyVtbl; + + interface IFsrmProperty + { + CONST_VTBL struct IFsrmPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmProperty_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmProperty_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmProperty_get_Value(This,value) \ + ( (This)->lpVtbl -> get_Value(This,value) ) + +#define IFsrmProperty_get_Sources(This,sources) \ + ( (This)->lpVtbl -> get_Sources(This,sources) ) + +#define IFsrmProperty_get_PropertyFlags(This,flags) \ + ( (This)->lpVtbl -> get_PropertyFlags(This,flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmRule_INTERFACE_DEFINED__ +#define __IFsrmRule_INTERFACE_DEFINED__ + +/* interface IFsrmRule */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmRule; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cb0df960-16f5-4495-9079-3f9360d831df") + IFsrmRule : public IFsrmObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RuleType( + /* [retval][out] */ __RPC__out FsrmRuleType *ruleType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ModuleDefinitionName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *moduleDefinitionName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ModuleDefinitionName( + /* [in] */ __RPC__in BSTR moduleDefinitionName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NamespaceRoots( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *namespaceRoots) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_NamespaceRoots( + /* [in] */ __RPC__in SAFEARRAY * namespaceRoots) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RuleFlags( + /* [retval][out] */ __RPC__out long *ruleFlags) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RuleFlags( + /* [in] */ long ruleFlags) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Parameters( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Parameters( + /* [in] */ __RPC__in SAFEARRAY * parameters) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastModified( + /* [retval][out] */ __RPC__out VARIANT *lastModified) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmRuleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmRule * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmRule * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmRule * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmRule * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmRule * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmRule * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmRule * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmRule * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmRule * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmRule * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmRule * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmRule * This); + + DECLSPEC_XFGVIRT(IFsrmRule, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmRule * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmRule, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmRule * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmRule, get_RuleType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RuleType )( + __RPC__in IFsrmRule * This, + /* [retval][out] */ __RPC__out FsrmRuleType *ruleType); + + DECLSPEC_XFGVIRT(IFsrmRule, get_ModuleDefinitionName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModuleDefinitionName )( + __RPC__in IFsrmRule * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *moduleDefinitionName); + + DECLSPEC_XFGVIRT(IFsrmRule, put_ModuleDefinitionName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ModuleDefinitionName )( + __RPC__in IFsrmRule * This, + /* [in] */ __RPC__in BSTR moduleDefinitionName); + + DECLSPEC_XFGVIRT(IFsrmRule, get_NamespaceRoots) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NamespaceRoots )( + __RPC__in IFsrmRule * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *namespaceRoots); + + DECLSPEC_XFGVIRT(IFsrmRule, put_NamespaceRoots) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NamespaceRoots )( + __RPC__in IFsrmRule * This, + /* [in] */ __RPC__in SAFEARRAY * namespaceRoots); + + DECLSPEC_XFGVIRT(IFsrmRule, get_RuleFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RuleFlags )( + __RPC__in IFsrmRule * This, + /* [retval][out] */ __RPC__out long *ruleFlags); + + DECLSPEC_XFGVIRT(IFsrmRule, put_RuleFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RuleFlags )( + __RPC__in IFsrmRule * This, + /* [in] */ long ruleFlags); + + DECLSPEC_XFGVIRT(IFsrmRule, get_Parameters) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in IFsrmRule * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters); + + DECLSPEC_XFGVIRT(IFsrmRule, put_Parameters) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Parameters )( + __RPC__in IFsrmRule * This, + /* [in] */ __RPC__in SAFEARRAY * parameters); + + DECLSPEC_XFGVIRT(IFsrmRule, get_LastModified) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastModified )( + __RPC__in IFsrmRule * This, + /* [retval][out] */ __RPC__out VARIANT *lastModified); + + END_INTERFACE + } IFsrmRuleVtbl; + + interface IFsrmRule + { + CONST_VTBL struct IFsrmRuleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmRule_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmRule_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmRule_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmRule_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmRule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmRule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmRule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmRule_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmRule_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmRule_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmRule_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmRule_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmRule_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmRule_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmRule_get_RuleType(This,ruleType) \ + ( (This)->lpVtbl -> get_RuleType(This,ruleType) ) + +#define IFsrmRule_get_ModuleDefinitionName(This,moduleDefinitionName) \ + ( (This)->lpVtbl -> get_ModuleDefinitionName(This,moduleDefinitionName) ) + +#define IFsrmRule_put_ModuleDefinitionName(This,moduleDefinitionName) \ + ( (This)->lpVtbl -> put_ModuleDefinitionName(This,moduleDefinitionName) ) + +#define IFsrmRule_get_NamespaceRoots(This,namespaceRoots) \ + ( (This)->lpVtbl -> get_NamespaceRoots(This,namespaceRoots) ) + +#define IFsrmRule_put_NamespaceRoots(This,namespaceRoots) \ + ( (This)->lpVtbl -> put_NamespaceRoots(This,namespaceRoots) ) + +#define IFsrmRule_get_RuleFlags(This,ruleFlags) \ + ( (This)->lpVtbl -> get_RuleFlags(This,ruleFlags) ) + +#define IFsrmRule_put_RuleFlags(This,ruleFlags) \ + ( (This)->lpVtbl -> put_RuleFlags(This,ruleFlags) ) + +#define IFsrmRule_get_Parameters(This,parameters) \ + ( (This)->lpVtbl -> get_Parameters(This,parameters) ) + +#define IFsrmRule_put_Parameters(This,parameters) \ + ( (This)->lpVtbl -> put_Parameters(This,parameters) ) + +#define IFsrmRule_get_LastModified(This,lastModified) \ + ( (This)->lpVtbl -> get_LastModified(This,lastModified) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmRule_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmClassificationRule_INTERFACE_DEFINED__ +#define __IFsrmClassificationRule_INTERFACE_DEFINED__ + +/* interface IFsrmClassificationRule */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmClassificationRule; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("afc052c2-5315-45ab-841b-c6db0e120148") + IFsrmClassificationRule : public IFsrmRule + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExecutionOption( + /* [retval][out] */ __RPC__out FsrmExecutionOption *executionOption) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ExecutionOption( + /* [in] */ FsrmExecutionOption executionOption) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyAffected( + /* [retval][out] */ __RPC__deref_out_opt BSTR *property) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PropertyAffected( + /* [in] */ __RPC__in BSTR property) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ __RPC__in BSTR value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmClassificationRuleVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmClassificationRule * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmClassificationRule * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmClassificationRule * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmClassificationRule * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmClassificationRule * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmClassificationRule * This); + + DECLSPEC_XFGVIRT(IFsrmRule, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmRule, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmRule, get_RuleType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RuleType )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__out FsrmRuleType *ruleType); + + DECLSPEC_XFGVIRT(IFsrmRule, get_ModuleDefinitionName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModuleDefinitionName )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *moduleDefinitionName); + + DECLSPEC_XFGVIRT(IFsrmRule, put_ModuleDefinitionName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ModuleDefinitionName )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ __RPC__in BSTR moduleDefinitionName); + + DECLSPEC_XFGVIRT(IFsrmRule, get_NamespaceRoots) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NamespaceRoots )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *namespaceRoots); + + DECLSPEC_XFGVIRT(IFsrmRule, put_NamespaceRoots) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NamespaceRoots )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ __RPC__in SAFEARRAY * namespaceRoots); + + DECLSPEC_XFGVIRT(IFsrmRule, get_RuleFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RuleFlags )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__out long *ruleFlags); + + DECLSPEC_XFGVIRT(IFsrmRule, put_RuleFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RuleFlags )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ long ruleFlags); + + DECLSPEC_XFGVIRT(IFsrmRule, get_Parameters) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters); + + DECLSPEC_XFGVIRT(IFsrmRule, put_Parameters) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Parameters )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ __RPC__in SAFEARRAY * parameters); + + DECLSPEC_XFGVIRT(IFsrmRule, get_LastModified) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastModified )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__out VARIANT *lastModified); + + DECLSPEC_XFGVIRT(IFsrmClassificationRule, get_ExecutionOption) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExecutionOption )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__out FsrmExecutionOption *executionOption); + + DECLSPEC_XFGVIRT(IFsrmClassificationRule, put_ExecutionOption) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExecutionOption )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ FsrmExecutionOption executionOption); + + DECLSPEC_XFGVIRT(IFsrmClassificationRule, get_PropertyAffected) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyAffected )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *property); + + DECLSPEC_XFGVIRT(IFsrmClassificationRule, put_PropertyAffected) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyAffected )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ __RPC__in BSTR property); + + DECLSPEC_XFGVIRT(IFsrmClassificationRule, get_Value) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IFsrmClassificationRule * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IFsrmClassificationRule, put_Value) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in IFsrmClassificationRule * This, + /* [in] */ __RPC__in BSTR value); + + END_INTERFACE + } IFsrmClassificationRuleVtbl; + + interface IFsrmClassificationRule + { + CONST_VTBL struct IFsrmClassificationRuleVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmClassificationRule_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmClassificationRule_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmClassificationRule_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmClassificationRule_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmClassificationRule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmClassificationRule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmClassificationRule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmClassificationRule_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmClassificationRule_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmClassificationRule_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmClassificationRule_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmClassificationRule_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmClassificationRule_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmClassificationRule_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmClassificationRule_get_RuleType(This,ruleType) \ + ( (This)->lpVtbl -> get_RuleType(This,ruleType) ) + +#define IFsrmClassificationRule_get_ModuleDefinitionName(This,moduleDefinitionName) \ + ( (This)->lpVtbl -> get_ModuleDefinitionName(This,moduleDefinitionName) ) + +#define IFsrmClassificationRule_put_ModuleDefinitionName(This,moduleDefinitionName) \ + ( (This)->lpVtbl -> put_ModuleDefinitionName(This,moduleDefinitionName) ) + +#define IFsrmClassificationRule_get_NamespaceRoots(This,namespaceRoots) \ + ( (This)->lpVtbl -> get_NamespaceRoots(This,namespaceRoots) ) + +#define IFsrmClassificationRule_put_NamespaceRoots(This,namespaceRoots) \ + ( (This)->lpVtbl -> put_NamespaceRoots(This,namespaceRoots) ) + +#define IFsrmClassificationRule_get_RuleFlags(This,ruleFlags) \ + ( (This)->lpVtbl -> get_RuleFlags(This,ruleFlags) ) + +#define IFsrmClassificationRule_put_RuleFlags(This,ruleFlags) \ + ( (This)->lpVtbl -> put_RuleFlags(This,ruleFlags) ) + +#define IFsrmClassificationRule_get_Parameters(This,parameters) \ + ( (This)->lpVtbl -> get_Parameters(This,parameters) ) + +#define IFsrmClassificationRule_put_Parameters(This,parameters) \ + ( (This)->lpVtbl -> put_Parameters(This,parameters) ) + +#define IFsrmClassificationRule_get_LastModified(This,lastModified) \ + ( (This)->lpVtbl -> get_LastModified(This,lastModified) ) + + +#define IFsrmClassificationRule_get_ExecutionOption(This,executionOption) \ + ( (This)->lpVtbl -> get_ExecutionOption(This,executionOption) ) + +#define IFsrmClassificationRule_put_ExecutionOption(This,executionOption) \ + ( (This)->lpVtbl -> put_ExecutionOption(This,executionOption) ) + +#define IFsrmClassificationRule_get_PropertyAffected(This,property) \ + ( (This)->lpVtbl -> get_PropertyAffected(This,property) ) + +#define IFsrmClassificationRule_put_PropertyAffected(This,property) \ + ( (This)->lpVtbl -> put_PropertyAffected(This,property) ) + +#define IFsrmClassificationRule_get_Value(This,value) \ + ( (This)->lpVtbl -> get_Value(This,value) ) + +#define IFsrmClassificationRule_put_Value(This,value) \ + ( (This)->lpVtbl -> put_Value(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmClassificationRule_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmPipelineModuleDefinition_INTERFACE_DEFINED__ +#define __IFsrmPipelineModuleDefinition_INTERFACE_DEFINED__ + +/* interface IFsrmPipelineModuleDefinition */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmPipelineModuleDefinition; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("515c1277-2c81-440e-8fcf-367921ed4f59") + IFsrmPipelineModuleDefinition : public IFsrmObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ModuleClsid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *moduleClsid) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ModuleClsid( + /* [in] */ __RPC__in BSTR moduleClsid) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Company( + /* [retval][out] */ __RPC__deref_out_opt BSTR *company) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Company( + /* [in] */ __RPC__in BSTR company) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Version( + /* [retval][out] */ __RPC__deref_out_opt BSTR *version) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Version( + /* [in] */ __RPC__in BSTR version) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ModuleType( + /* [retval][out] */ __RPC__out FsrmPipelineModuleType *moduleType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Enabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *enabled) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Enabled( + /* [in] */ VARIANT_BOOL enabled) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NeedsFileContent( + /* [retval][out] */ __RPC__out VARIANT_BOOL *needsFileContent) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_NeedsFileContent( + /* [in] */ VARIANT_BOOL needsFileContent) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Account( + /* [retval][out] */ __RPC__out FsrmAccountType *retrievalAccount) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Account( + /* [in] */ FsrmAccountType retrievalAccount) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedExtensions( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedExtensions) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SupportedExtensions( + /* [in] */ __RPC__in SAFEARRAY * supportedExtensions) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Parameters( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Parameters( + /* [in] */ __RPC__in SAFEARRAY * parameters) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPipelineModuleDefinitionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmPipelineModuleDefinition * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmPipelineModuleDefinition * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmPipelineModuleDefinition * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmPipelineModuleDefinition * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmPipelineModuleDefinition * This); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_ModuleClsid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModuleClsid )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *moduleClsid); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_ModuleClsid) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ModuleClsid )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ __RPC__in BSTR moduleClsid); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Company) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Company )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *company); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Company) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Company )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ __RPC__in BSTR company); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Version) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *version); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Version) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Version )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ __RPC__in BSTR version); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_ModuleType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModuleType )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__out FsrmPipelineModuleType *moduleType); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Enabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *enabled); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Enabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enabled )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ VARIANT_BOOL enabled); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_NeedsFileContent) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NeedsFileContent )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *needsFileContent); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_NeedsFileContent) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NeedsFileContent )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ VARIANT_BOOL needsFileContent); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Account) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Account )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__out FsrmAccountType *retrievalAccount); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Account) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Account )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ FsrmAccountType retrievalAccount); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_SupportedExtensions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedExtensions )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedExtensions); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_SupportedExtensions) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SupportedExtensions )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * supportedExtensions); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Parameters) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Parameters) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Parameters )( + __RPC__in IFsrmPipelineModuleDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * parameters); + + END_INTERFACE + } IFsrmPipelineModuleDefinitionVtbl; + + interface IFsrmPipelineModuleDefinition + { + CONST_VTBL struct IFsrmPipelineModuleDefinitionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmPipelineModuleDefinition_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmPipelineModuleDefinition_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmPipelineModuleDefinition_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmPipelineModuleDefinition_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmPipelineModuleDefinition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmPipelineModuleDefinition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmPipelineModuleDefinition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmPipelineModuleDefinition_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmPipelineModuleDefinition_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmPipelineModuleDefinition_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmPipelineModuleDefinition_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmPipelineModuleDefinition_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmPipelineModuleDefinition_get_ModuleClsid(This,moduleClsid) \ + ( (This)->lpVtbl -> get_ModuleClsid(This,moduleClsid) ) + +#define IFsrmPipelineModuleDefinition_put_ModuleClsid(This,moduleClsid) \ + ( (This)->lpVtbl -> put_ModuleClsid(This,moduleClsid) ) + +#define IFsrmPipelineModuleDefinition_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmPipelineModuleDefinition_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmPipelineModuleDefinition_get_Company(This,company) \ + ( (This)->lpVtbl -> get_Company(This,company) ) + +#define IFsrmPipelineModuleDefinition_put_Company(This,company) \ + ( (This)->lpVtbl -> put_Company(This,company) ) + +#define IFsrmPipelineModuleDefinition_get_Version(This,version) \ + ( (This)->lpVtbl -> get_Version(This,version) ) + +#define IFsrmPipelineModuleDefinition_put_Version(This,version) \ + ( (This)->lpVtbl -> put_Version(This,version) ) + +#define IFsrmPipelineModuleDefinition_get_ModuleType(This,moduleType) \ + ( (This)->lpVtbl -> get_ModuleType(This,moduleType) ) + +#define IFsrmPipelineModuleDefinition_get_Enabled(This,enabled) \ + ( (This)->lpVtbl -> get_Enabled(This,enabled) ) + +#define IFsrmPipelineModuleDefinition_put_Enabled(This,enabled) \ + ( (This)->lpVtbl -> put_Enabled(This,enabled) ) + +#define IFsrmPipelineModuleDefinition_get_NeedsFileContent(This,needsFileContent) \ + ( (This)->lpVtbl -> get_NeedsFileContent(This,needsFileContent) ) + +#define IFsrmPipelineModuleDefinition_put_NeedsFileContent(This,needsFileContent) \ + ( (This)->lpVtbl -> put_NeedsFileContent(This,needsFileContent) ) + +#define IFsrmPipelineModuleDefinition_get_Account(This,retrievalAccount) \ + ( (This)->lpVtbl -> get_Account(This,retrievalAccount) ) + +#define IFsrmPipelineModuleDefinition_put_Account(This,retrievalAccount) \ + ( (This)->lpVtbl -> put_Account(This,retrievalAccount) ) + +#define IFsrmPipelineModuleDefinition_get_SupportedExtensions(This,supportedExtensions) \ + ( (This)->lpVtbl -> get_SupportedExtensions(This,supportedExtensions) ) + +#define IFsrmPipelineModuleDefinition_put_SupportedExtensions(This,supportedExtensions) \ + ( (This)->lpVtbl -> put_SupportedExtensions(This,supportedExtensions) ) + +#define IFsrmPipelineModuleDefinition_get_Parameters(This,parameters) \ + ( (This)->lpVtbl -> get_Parameters(This,parameters) ) + +#define IFsrmPipelineModuleDefinition_put_Parameters(This,parameters) \ + ( (This)->lpVtbl -> put_Parameters(This,parameters) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmPipelineModuleDefinition_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmClassifierModuleDefinition_INTERFACE_DEFINED__ +#define __IFsrmClassifierModuleDefinition_INTERFACE_DEFINED__ + +/* interface IFsrmClassifierModuleDefinition */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmClassifierModuleDefinition; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bb36ea26-6318-4b8c-8592-f72dd602e7a5") + IFsrmClassifierModuleDefinition : public IFsrmPipelineModuleDefinition + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PropertiesAffected( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *propertiesAffected) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PropertiesAffected( + /* [in] */ __RPC__in SAFEARRAY * propertiesAffected) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PropertiesUsed( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *propertiesUsed) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PropertiesUsed( + /* [in] */ __RPC__in SAFEARRAY * propertiesUsed) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NeedsExplicitValue( + /* [retval][out] */ __RPC__out VARIANT_BOOL *needsExplicitValue) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_NeedsExplicitValue( + /* [in] */ VARIANT_BOOL needsExplicitValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmClassifierModuleDefinitionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmClassifierModuleDefinition * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmClassifierModuleDefinition * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmClassifierModuleDefinition * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmClassifierModuleDefinition * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmClassifierModuleDefinition * This); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_ModuleClsid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModuleClsid )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *moduleClsid); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_ModuleClsid) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ModuleClsid )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in BSTR moduleClsid); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Company) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Company )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *company); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Company) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Company )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in BSTR company); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Version) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *version); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Version) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Version )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in BSTR version); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_ModuleType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModuleType )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__out FsrmPipelineModuleType *moduleType); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Enabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *enabled); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Enabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enabled )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ VARIANT_BOOL enabled); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_NeedsFileContent) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NeedsFileContent )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *needsFileContent); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_NeedsFileContent) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NeedsFileContent )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ VARIANT_BOOL needsFileContent); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Account) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Account )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__out FsrmAccountType *retrievalAccount); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Account) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Account )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ FsrmAccountType retrievalAccount); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_SupportedExtensions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedExtensions )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedExtensions); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_SupportedExtensions) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SupportedExtensions )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * supportedExtensions); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Parameters) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Parameters) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Parameters )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * parameters); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleDefinition, get_PropertiesAffected) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertiesAffected )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *propertiesAffected); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleDefinition, put_PropertiesAffected) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertiesAffected )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * propertiesAffected); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleDefinition, get_PropertiesUsed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertiesUsed )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *propertiesUsed); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleDefinition, put_PropertiesUsed) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertiesUsed )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * propertiesUsed); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleDefinition, get_NeedsExplicitValue) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NeedsExplicitValue )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *needsExplicitValue); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleDefinition, put_NeedsExplicitValue) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NeedsExplicitValue )( + __RPC__in IFsrmClassifierModuleDefinition * This, + /* [in] */ VARIANT_BOOL needsExplicitValue); + + END_INTERFACE + } IFsrmClassifierModuleDefinitionVtbl; + + interface IFsrmClassifierModuleDefinition + { + CONST_VTBL struct IFsrmClassifierModuleDefinitionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmClassifierModuleDefinition_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmClassifierModuleDefinition_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmClassifierModuleDefinition_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmClassifierModuleDefinition_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmClassifierModuleDefinition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmClassifierModuleDefinition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmClassifierModuleDefinition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmClassifierModuleDefinition_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmClassifierModuleDefinition_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmClassifierModuleDefinition_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmClassifierModuleDefinition_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmClassifierModuleDefinition_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmClassifierModuleDefinition_get_ModuleClsid(This,moduleClsid) \ + ( (This)->lpVtbl -> get_ModuleClsid(This,moduleClsid) ) + +#define IFsrmClassifierModuleDefinition_put_ModuleClsid(This,moduleClsid) \ + ( (This)->lpVtbl -> put_ModuleClsid(This,moduleClsid) ) + +#define IFsrmClassifierModuleDefinition_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmClassifierModuleDefinition_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmClassifierModuleDefinition_get_Company(This,company) \ + ( (This)->lpVtbl -> get_Company(This,company) ) + +#define IFsrmClassifierModuleDefinition_put_Company(This,company) \ + ( (This)->lpVtbl -> put_Company(This,company) ) + +#define IFsrmClassifierModuleDefinition_get_Version(This,version) \ + ( (This)->lpVtbl -> get_Version(This,version) ) + +#define IFsrmClassifierModuleDefinition_put_Version(This,version) \ + ( (This)->lpVtbl -> put_Version(This,version) ) + +#define IFsrmClassifierModuleDefinition_get_ModuleType(This,moduleType) \ + ( (This)->lpVtbl -> get_ModuleType(This,moduleType) ) + +#define IFsrmClassifierModuleDefinition_get_Enabled(This,enabled) \ + ( (This)->lpVtbl -> get_Enabled(This,enabled) ) + +#define IFsrmClassifierModuleDefinition_put_Enabled(This,enabled) \ + ( (This)->lpVtbl -> put_Enabled(This,enabled) ) + +#define IFsrmClassifierModuleDefinition_get_NeedsFileContent(This,needsFileContent) \ + ( (This)->lpVtbl -> get_NeedsFileContent(This,needsFileContent) ) + +#define IFsrmClassifierModuleDefinition_put_NeedsFileContent(This,needsFileContent) \ + ( (This)->lpVtbl -> put_NeedsFileContent(This,needsFileContent) ) + +#define IFsrmClassifierModuleDefinition_get_Account(This,retrievalAccount) \ + ( (This)->lpVtbl -> get_Account(This,retrievalAccount) ) + +#define IFsrmClassifierModuleDefinition_put_Account(This,retrievalAccount) \ + ( (This)->lpVtbl -> put_Account(This,retrievalAccount) ) + +#define IFsrmClassifierModuleDefinition_get_SupportedExtensions(This,supportedExtensions) \ + ( (This)->lpVtbl -> get_SupportedExtensions(This,supportedExtensions) ) + +#define IFsrmClassifierModuleDefinition_put_SupportedExtensions(This,supportedExtensions) \ + ( (This)->lpVtbl -> put_SupportedExtensions(This,supportedExtensions) ) + +#define IFsrmClassifierModuleDefinition_get_Parameters(This,parameters) \ + ( (This)->lpVtbl -> get_Parameters(This,parameters) ) + +#define IFsrmClassifierModuleDefinition_put_Parameters(This,parameters) \ + ( (This)->lpVtbl -> put_Parameters(This,parameters) ) + + +#define IFsrmClassifierModuleDefinition_get_PropertiesAffected(This,propertiesAffected) \ + ( (This)->lpVtbl -> get_PropertiesAffected(This,propertiesAffected) ) + +#define IFsrmClassifierModuleDefinition_put_PropertiesAffected(This,propertiesAffected) \ + ( (This)->lpVtbl -> put_PropertiesAffected(This,propertiesAffected) ) + +#define IFsrmClassifierModuleDefinition_get_PropertiesUsed(This,propertiesUsed) \ + ( (This)->lpVtbl -> get_PropertiesUsed(This,propertiesUsed) ) + +#define IFsrmClassifierModuleDefinition_put_PropertiesUsed(This,propertiesUsed) \ + ( (This)->lpVtbl -> put_PropertiesUsed(This,propertiesUsed) ) + +#define IFsrmClassifierModuleDefinition_get_NeedsExplicitValue(This,needsExplicitValue) \ + ( (This)->lpVtbl -> get_NeedsExplicitValue(This,needsExplicitValue) ) + +#define IFsrmClassifierModuleDefinition_put_NeedsExplicitValue(This,needsExplicitValue) \ + ( (This)->lpVtbl -> put_NeedsExplicitValue(This,needsExplicitValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmClassifierModuleDefinition_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmStorageModuleDefinition_INTERFACE_DEFINED__ +#define __IFsrmStorageModuleDefinition_INTERFACE_DEFINED__ + +/* interface IFsrmStorageModuleDefinition */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmStorageModuleDefinition; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("15a81350-497d-4aba-80e9-d4dbcc5521fe") + IFsrmStorageModuleDefinition : public IFsrmPipelineModuleDefinition + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Capabilities( + /* [retval][out] */ __RPC__out FsrmStorageModuleCaps *capabilities) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Capabilities( + /* [in] */ FsrmStorageModuleCaps capabilities) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StorageType( + /* [retval][out] */ __RPC__out FsrmStorageModuleType *storageType) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StorageType( + /* [in] */ FsrmStorageModuleType storageType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UpdatesFileContent( + /* [retval][out] */ __RPC__out VARIANT_BOOL *updatesFileContent) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UpdatesFileContent( + /* [in] */ VARIANT_BOOL updatesFileContent) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmStorageModuleDefinitionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmStorageModuleDefinition * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmStorageModuleDefinition * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmStorageModuleDefinition * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmStorageModuleDefinition * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmStorageModuleDefinition * This); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_ModuleClsid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModuleClsid )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *moduleClsid); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_ModuleClsid) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ModuleClsid )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ __RPC__in BSTR moduleClsid); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Company) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Company )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *company); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Company) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Company )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ __RPC__in BSTR company); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Version) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Version )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *version); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Version) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Version )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ __RPC__in BSTR version); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_ModuleType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModuleType )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__out FsrmPipelineModuleType *moduleType); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Enabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *enabled); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Enabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enabled )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ VARIANT_BOOL enabled); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_NeedsFileContent) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NeedsFileContent )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *needsFileContent); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_NeedsFileContent) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NeedsFileContent )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ VARIANT_BOOL needsFileContent); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Account) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Account )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__out FsrmAccountType *retrievalAccount); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Account) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Account )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ FsrmAccountType retrievalAccount); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_SupportedExtensions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedExtensions )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedExtensions); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_SupportedExtensions) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SupportedExtensions )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * supportedExtensions); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, get_Parameters) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleDefinition, put_Parameters) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Parameters )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ __RPC__in SAFEARRAY * parameters); + + DECLSPEC_XFGVIRT(IFsrmStorageModuleDefinition, get_Capabilities) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Capabilities )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__out FsrmStorageModuleCaps *capabilities); + + DECLSPEC_XFGVIRT(IFsrmStorageModuleDefinition, put_Capabilities) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Capabilities )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ FsrmStorageModuleCaps capabilities); + + DECLSPEC_XFGVIRT(IFsrmStorageModuleDefinition, get_StorageType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StorageType )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__out FsrmStorageModuleType *storageType); + + DECLSPEC_XFGVIRT(IFsrmStorageModuleDefinition, put_StorageType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StorageType )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ FsrmStorageModuleType storageType); + + DECLSPEC_XFGVIRT(IFsrmStorageModuleDefinition, get_UpdatesFileContent) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UpdatesFileContent )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *updatesFileContent); + + DECLSPEC_XFGVIRT(IFsrmStorageModuleDefinition, put_UpdatesFileContent) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UpdatesFileContent )( + __RPC__in IFsrmStorageModuleDefinition * This, + /* [in] */ VARIANT_BOOL updatesFileContent); + + END_INTERFACE + } IFsrmStorageModuleDefinitionVtbl; + + interface IFsrmStorageModuleDefinition + { + CONST_VTBL struct IFsrmStorageModuleDefinitionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmStorageModuleDefinition_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmStorageModuleDefinition_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmStorageModuleDefinition_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmStorageModuleDefinition_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmStorageModuleDefinition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmStorageModuleDefinition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmStorageModuleDefinition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmStorageModuleDefinition_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmStorageModuleDefinition_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmStorageModuleDefinition_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmStorageModuleDefinition_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmStorageModuleDefinition_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmStorageModuleDefinition_get_ModuleClsid(This,moduleClsid) \ + ( (This)->lpVtbl -> get_ModuleClsid(This,moduleClsid) ) + +#define IFsrmStorageModuleDefinition_put_ModuleClsid(This,moduleClsid) \ + ( (This)->lpVtbl -> put_ModuleClsid(This,moduleClsid) ) + +#define IFsrmStorageModuleDefinition_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmStorageModuleDefinition_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmStorageModuleDefinition_get_Company(This,company) \ + ( (This)->lpVtbl -> get_Company(This,company) ) + +#define IFsrmStorageModuleDefinition_put_Company(This,company) \ + ( (This)->lpVtbl -> put_Company(This,company) ) + +#define IFsrmStorageModuleDefinition_get_Version(This,version) \ + ( (This)->lpVtbl -> get_Version(This,version) ) + +#define IFsrmStorageModuleDefinition_put_Version(This,version) \ + ( (This)->lpVtbl -> put_Version(This,version) ) + +#define IFsrmStorageModuleDefinition_get_ModuleType(This,moduleType) \ + ( (This)->lpVtbl -> get_ModuleType(This,moduleType) ) + +#define IFsrmStorageModuleDefinition_get_Enabled(This,enabled) \ + ( (This)->lpVtbl -> get_Enabled(This,enabled) ) + +#define IFsrmStorageModuleDefinition_put_Enabled(This,enabled) \ + ( (This)->lpVtbl -> put_Enabled(This,enabled) ) + +#define IFsrmStorageModuleDefinition_get_NeedsFileContent(This,needsFileContent) \ + ( (This)->lpVtbl -> get_NeedsFileContent(This,needsFileContent) ) + +#define IFsrmStorageModuleDefinition_put_NeedsFileContent(This,needsFileContent) \ + ( (This)->lpVtbl -> put_NeedsFileContent(This,needsFileContent) ) + +#define IFsrmStorageModuleDefinition_get_Account(This,retrievalAccount) \ + ( (This)->lpVtbl -> get_Account(This,retrievalAccount) ) + +#define IFsrmStorageModuleDefinition_put_Account(This,retrievalAccount) \ + ( (This)->lpVtbl -> put_Account(This,retrievalAccount) ) + +#define IFsrmStorageModuleDefinition_get_SupportedExtensions(This,supportedExtensions) \ + ( (This)->lpVtbl -> get_SupportedExtensions(This,supportedExtensions) ) + +#define IFsrmStorageModuleDefinition_put_SupportedExtensions(This,supportedExtensions) \ + ( (This)->lpVtbl -> put_SupportedExtensions(This,supportedExtensions) ) + +#define IFsrmStorageModuleDefinition_get_Parameters(This,parameters) \ + ( (This)->lpVtbl -> get_Parameters(This,parameters) ) + +#define IFsrmStorageModuleDefinition_put_Parameters(This,parameters) \ + ( (This)->lpVtbl -> put_Parameters(This,parameters) ) + + +#define IFsrmStorageModuleDefinition_get_Capabilities(This,capabilities) \ + ( (This)->lpVtbl -> get_Capabilities(This,capabilities) ) + +#define IFsrmStorageModuleDefinition_put_Capabilities(This,capabilities) \ + ( (This)->lpVtbl -> put_Capabilities(This,capabilities) ) + +#define IFsrmStorageModuleDefinition_get_StorageType(This,storageType) \ + ( (This)->lpVtbl -> get_StorageType(This,storageType) ) + +#define IFsrmStorageModuleDefinition_put_StorageType(This,storageType) \ + ( (This)->lpVtbl -> put_StorageType(This,storageType) ) + +#define IFsrmStorageModuleDefinition_get_UpdatesFileContent(This,updatesFileContent) \ + ( (This)->lpVtbl -> get_UpdatesFileContent(This,updatesFileContent) ) + +#define IFsrmStorageModuleDefinition_put_UpdatesFileContent(This,updatesFileContent) \ + ( (This)->lpVtbl -> put_UpdatesFileContent(This,updatesFileContent) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmStorageModuleDefinition_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmClassificationManager_INTERFACE_DEFINED__ +#define __IFsrmClassificationManager_INTERFACE_DEFINED__ + +/* interface IFsrmClassificationManager */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmClassificationManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d2dc89da-ee91-48a0-85d8-cc72a56f7d04") + IFsrmClassificationManager : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ClassificationReportFormats( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *formats) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ClassificationReportFormats( + /* [in] */ __RPC__in SAFEARRAY * formats) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Logging( + /* [retval][out] */ __RPC__out long *logging) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Logging( + /* [in] */ long logging) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ClassificationReportMailTo( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ClassificationReportMailTo( + /* [in] */ __RPC__in BSTR mailTo) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ClassificationReportEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *reportEnabled) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ClassificationReportEnabled( + /* [in] */ VARIANT_BOOL reportEnabled) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ClassificationLastReportPathWithoutExtension( + /* [retval][out] */ __RPC__deref_out_opt BSTR *lastReportPath) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ClassificationLastError( + /* [retval][out] */ __RPC__deref_out_opt BSTR *lastError) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ClassificationRunningStatus( + /* [retval][out] */ __RPC__out FsrmReportRunningStatus *runningStatus) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumPropertyDefinitions( + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **propertyDefinitions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreatePropertyDefinition( + /* [retval][out] */ __RPC__deref_out_opt IFsrmPropertyDefinition **propertyDefinition) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPropertyDefinition( + /* [in] */ __RPC__in BSTR propertyName, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPropertyDefinition **propertyDefinition) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumRules( + /* [in] */ FsrmRuleType ruleType, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **Rules) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateRule( + /* [in] */ FsrmRuleType ruleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmRule **Rule) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetRule( + /* [in] */ __RPC__in BSTR ruleName, + /* [in] */ FsrmRuleType ruleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmRule **Rule) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumModuleDefinitions( + /* [in] */ FsrmPipelineModuleType moduleType, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **moduleDefinitions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateModuleDefinition( + /* [in] */ FsrmPipelineModuleType moduleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPipelineModuleDefinition **moduleDefinition) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetModuleDefinition( + /* [in] */ __RPC__in BSTR moduleName, + /* [in] */ FsrmPipelineModuleType moduleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPipelineModuleDefinition **moduleDefinition) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RunClassification( + /* [in] */ FsrmReportGenerationContext context, + /* [in] */ __RPC__in BSTR reserved) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WaitForClassificationCompletion( + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CancelClassification( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumFileProperties( + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ FsrmGetFilePropertyOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **fileProperties) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetFileProperty( + /* [in] */ __RPC__in BSTR filePath, + /* [in] */ __RPC__in BSTR propertyName, + /* [defaultvalue][in] */ FsrmGetFilePropertyOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmProperty **property) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetFileProperty( + /* [in] */ __RPC__in BSTR filePath, + /* [in] */ __RPC__in BSTR propertyName, + /* [in] */ __RPC__in BSTR propertyValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ClearFileProperty( + /* [in] */ __RPC__in BSTR filePath, + /* [in] */ __RPC__in BSTR property) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmClassificationManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmClassificationManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmClassificationManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmClassificationManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmClassificationManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationReportFormats) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationReportFormats )( + __RPC__in IFsrmClassificationManager * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *formats); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, put_ClassificationReportFormats) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClassificationReportFormats )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in SAFEARRAY * formats); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_Logging) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Logging )( + __RPC__in IFsrmClassificationManager * This, + /* [retval][out] */ __RPC__out long *logging); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, put_Logging) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Logging )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ long logging); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationReportMailTo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationReportMailTo )( + __RPC__in IFsrmClassificationManager * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, put_ClassificationReportMailTo) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClassificationReportMailTo )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in BSTR mailTo); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationReportEnabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationReportEnabled )( + __RPC__in IFsrmClassificationManager * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *reportEnabled); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, put_ClassificationReportEnabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClassificationReportEnabled )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ VARIANT_BOOL reportEnabled); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationLastReportPathWithoutExtension) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationLastReportPathWithoutExtension )( + __RPC__in IFsrmClassificationManager * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *lastReportPath); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationLastError) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationLastError )( + __RPC__in IFsrmClassificationManager * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *lastError); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationRunningStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationRunningStatus )( + __RPC__in IFsrmClassificationManager * This, + /* [retval][out] */ __RPC__out FsrmReportRunningStatus *runningStatus); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, EnumPropertyDefinitions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumPropertyDefinitions )( + __RPC__in IFsrmClassificationManager * This, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **propertyDefinitions); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, CreatePropertyDefinition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreatePropertyDefinition )( + __RPC__in IFsrmClassificationManager * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPropertyDefinition **propertyDefinition); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, GetPropertyDefinition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPropertyDefinition )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in BSTR propertyName, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPropertyDefinition **propertyDefinition); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, EnumRules) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumRules )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ FsrmRuleType ruleType, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **Rules); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, CreateRule) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateRule )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ FsrmRuleType ruleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmRule **Rule); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, GetRule) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetRule )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in BSTR ruleName, + /* [in] */ FsrmRuleType ruleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmRule **Rule); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, EnumModuleDefinitions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumModuleDefinitions )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ FsrmPipelineModuleType moduleType, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **moduleDefinitions); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, CreateModuleDefinition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateModuleDefinition )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ FsrmPipelineModuleType moduleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPipelineModuleDefinition **moduleDefinition); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, GetModuleDefinition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetModuleDefinition )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in BSTR moduleName, + /* [in] */ FsrmPipelineModuleType moduleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPipelineModuleDefinition **moduleDefinition); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, RunClassification) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RunClassification )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ FsrmReportGenerationContext context, + /* [in] */ __RPC__in BSTR reserved); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, WaitForClassificationCompletion) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WaitForClassificationCompletion )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, CancelClassification) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CancelClassification )( + __RPC__in IFsrmClassificationManager * This); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, EnumFileProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumFileProperties )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ FsrmGetFilePropertyOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **fileProperties); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, GetFileProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFileProperty )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in BSTR filePath, + /* [in] */ __RPC__in BSTR propertyName, + /* [defaultvalue][in] */ FsrmGetFilePropertyOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmProperty **property); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, SetFileProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetFileProperty )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in BSTR filePath, + /* [in] */ __RPC__in BSTR propertyName, + /* [in] */ __RPC__in BSTR propertyValue); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, ClearFileProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ClearFileProperty )( + __RPC__in IFsrmClassificationManager * This, + /* [in] */ __RPC__in BSTR filePath, + /* [in] */ __RPC__in BSTR property); + + END_INTERFACE + } IFsrmClassificationManagerVtbl; + + interface IFsrmClassificationManager + { + CONST_VTBL struct IFsrmClassificationManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmClassificationManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmClassificationManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmClassificationManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmClassificationManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmClassificationManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmClassificationManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmClassificationManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmClassificationManager_get_ClassificationReportFormats(This,formats) \ + ( (This)->lpVtbl -> get_ClassificationReportFormats(This,formats) ) + +#define IFsrmClassificationManager_put_ClassificationReportFormats(This,formats) \ + ( (This)->lpVtbl -> put_ClassificationReportFormats(This,formats) ) + +#define IFsrmClassificationManager_get_Logging(This,logging) \ + ( (This)->lpVtbl -> get_Logging(This,logging) ) + +#define IFsrmClassificationManager_put_Logging(This,logging) \ + ( (This)->lpVtbl -> put_Logging(This,logging) ) + +#define IFsrmClassificationManager_get_ClassificationReportMailTo(This,mailTo) \ + ( (This)->lpVtbl -> get_ClassificationReportMailTo(This,mailTo) ) + +#define IFsrmClassificationManager_put_ClassificationReportMailTo(This,mailTo) \ + ( (This)->lpVtbl -> put_ClassificationReportMailTo(This,mailTo) ) + +#define IFsrmClassificationManager_get_ClassificationReportEnabled(This,reportEnabled) \ + ( (This)->lpVtbl -> get_ClassificationReportEnabled(This,reportEnabled) ) + +#define IFsrmClassificationManager_put_ClassificationReportEnabled(This,reportEnabled) \ + ( (This)->lpVtbl -> put_ClassificationReportEnabled(This,reportEnabled) ) + +#define IFsrmClassificationManager_get_ClassificationLastReportPathWithoutExtension(This,lastReportPath) \ + ( (This)->lpVtbl -> get_ClassificationLastReportPathWithoutExtension(This,lastReportPath) ) + +#define IFsrmClassificationManager_get_ClassificationLastError(This,lastError) \ + ( (This)->lpVtbl -> get_ClassificationLastError(This,lastError) ) + +#define IFsrmClassificationManager_get_ClassificationRunningStatus(This,runningStatus) \ + ( (This)->lpVtbl -> get_ClassificationRunningStatus(This,runningStatus) ) + +#define IFsrmClassificationManager_EnumPropertyDefinitions(This,options,propertyDefinitions) \ + ( (This)->lpVtbl -> EnumPropertyDefinitions(This,options,propertyDefinitions) ) + +#define IFsrmClassificationManager_CreatePropertyDefinition(This,propertyDefinition) \ + ( (This)->lpVtbl -> CreatePropertyDefinition(This,propertyDefinition) ) + +#define IFsrmClassificationManager_GetPropertyDefinition(This,propertyName,propertyDefinition) \ + ( (This)->lpVtbl -> GetPropertyDefinition(This,propertyName,propertyDefinition) ) + +#define IFsrmClassificationManager_EnumRules(This,ruleType,options,Rules) \ + ( (This)->lpVtbl -> EnumRules(This,ruleType,options,Rules) ) + +#define IFsrmClassificationManager_CreateRule(This,ruleType,Rule) \ + ( (This)->lpVtbl -> CreateRule(This,ruleType,Rule) ) + +#define IFsrmClassificationManager_GetRule(This,ruleName,ruleType,Rule) \ + ( (This)->lpVtbl -> GetRule(This,ruleName,ruleType,Rule) ) + +#define IFsrmClassificationManager_EnumModuleDefinitions(This,moduleType,options,moduleDefinitions) \ + ( (This)->lpVtbl -> EnumModuleDefinitions(This,moduleType,options,moduleDefinitions) ) + +#define IFsrmClassificationManager_CreateModuleDefinition(This,moduleType,moduleDefinition) \ + ( (This)->lpVtbl -> CreateModuleDefinition(This,moduleType,moduleDefinition) ) + +#define IFsrmClassificationManager_GetModuleDefinition(This,moduleName,moduleType,moduleDefinition) \ + ( (This)->lpVtbl -> GetModuleDefinition(This,moduleName,moduleType,moduleDefinition) ) + +#define IFsrmClassificationManager_RunClassification(This,context,reserved) \ + ( (This)->lpVtbl -> RunClassification(This,context,reserved) ) + +#define IFsrmClassificationManager_WaitForClassificationCompletion(This,waitSeconds,completed) \ + ( (This)->lpVtbl -> WaitForClassificationCompletion(This,waitSeconds,completed) ) + +#define IFsrmClassificationManager_CancelClassification(This) \ + ( (This)->lpVtbl -> CancelClassification(This) ) + +#define IFsrmClassificationManager_EnumFileProperties(This,filePath,options,fileProperties) \ + ( (This)->lpVtbl -> EnumFileProperties(This,filePath,options,fileProperties) ) + +#define IFsrmClassificationManager_GetFileProperty(This,filePath,propertyName,options,property) \ + ( (This)->lpVtbl -> GetFileProperty(This,filePath,propertyName,options,property) ) + +#define IFsrmClassificationManager_SetFileProperty(This,filePath,propertyName,propertyValue) \ + ( (This)->lpVtbl -> SetFileProperty(This,filePath,propertyName,propertyValue) ) + +#define IFsrmClassificationManager_ClearFileProperty(This,filePath,property) \ + ( (This)->lpVtbl -> ClearFileProperty(This,filePath,property) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmClassificationManager_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmClassificationManager2_INTERFACE_DEFINED__ +#define __IFsrmClassificationManager2_INTERFACE_DEFINED__ + +/* interface IFsrmClassificationManager2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmClassificationManager2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0004c1c9-127e-4765-ba07-6a3147bca112") + IFsrmClassificationManager2 : public IFsrmClassificationManager + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ClassifyFiles( + /* [in] */ __RPC__in SAFEARRAY * filePaths, + /* [unique][in] */ __RPC__in_opt SAFEARRAY * propertyNames, + /* [unique][in] */ __RPC__in_opt SAFEARRAY * propertyValues, + /* [defaultvalue][in] */ FsrmGetFilePropertyOptions options = FsrmGetFilePropertyOptions_None) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmClassificationManager2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmClassificationManager2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmClassificationManager2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmClassificationManager2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmClassificationManager2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationReportFormats) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationReportFormats )( + __RPC__in IFsrmClassificationManager2 * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *formats); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, put_ClassificationReportFormats) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClassificationReportFormats )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in SAFEARRAY * formats); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_Logging) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Logging )( + __RPC__in IFsrmClassificationManager2 * This, + /* [retval][out] */ __RPC__out long *logging); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, put_Logging) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Logging )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ long logging); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationReportMailTo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationReportMailTo )( + __RPC__in IFsrmClassificationManager2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, put_ClassificationReportMailTo) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClassificationReportMailTo )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in BSTR mailTo); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationReportEnabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationReportEnabled )( + __RPC__in IFsrmClassificationManager2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *reportEnabled); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, put_ClassificationReportEnabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClassificationReportEnabled )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ VARIANT_BOOL reportEnabled); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationLastReportPathWithoutExtension) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationLastReportPathWithoutExtension )( + __RPC__in IFsrmClassificationManager2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *lastReportPath); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationLastError) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationLastError )( + __RPC__in IFsrmClassificationManager2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *lastError); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, get_ClassificationRunningStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClassificationRunningStatus )( + __RPC__in IFsrmClassificationManager2 * This, + /* [retval][out] */ __RPC__out FsrmReportRunningStatus *runningStatus); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, EnumPropertyDefinitions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumPropertyDefinitions )( + __RPC__in IFsrmClassificationManager2 * This, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **propertyDefinitions); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, CreatePropertyDefinition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreatePropertyDefinition )( + __RPC__in IFsrmClassificationManager2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPropertyDefinition **propertyDefinition); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, GetPropertyDefinition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPropertyDefinition )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in BSTR propertyName, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPropertyDefinition **propertyDefinition); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, EnumRules) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumRules )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ FsrmRuleType ruleType, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **Rules); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, CreateRule) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateRule )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ FsrmRuleType ruleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmRule **Rule); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, GetRule) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetRule )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in BSTR ruleName, + /* [in] */ FsrmRuleType ruleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmRule **Rule); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, EnumModuleDefinitions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumModuleDefinitions )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ FsrmPipelineModuleType moduleType, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **moduleDefinitions); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, CreateModuleDefinition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateModuleDefinition )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ FsrmPipelineModuleType moduleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPipelineModuleDefinition **moduleDefinition); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, GetModuleDefinition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetModuleDefinition )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in BSTR moduleName, + /* [in] */ FsrmPipelineModuleType moduleType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPipelineModuleDefinition **moduleDefinition); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, RunClassification) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RunClassification )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ FsrmReportGenerationContext context, + /* [in] */ __RPC__in BSTR reserved); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, WaitForClassificationCompletion) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WaitForClassificationCompletion )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, CancelClassification) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CancelClassification )( + __RPC__in IFsrmClassificationManager2 * This); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, EnumFileProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumFileProperties )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in BSTR filePath, + /* [defaultvalue][in] */ FsrmGetFilePropertyOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **fileProperties); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, GetFileProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFileProperty )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in BSTR filePath, + /* [in] */ __RPC__in BSTR propertyName, + /* [defaultvalue][in] */ FsrmGetFilePropertyOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmProperty **property); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, SetFileProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetFileProperty )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in BSTR filePath, + /* [in] */ __RPC__in BSTR propertyName, + /* [in] */ __RPC__in BSTR propertyValue); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager, ClearFileProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ClearFileProperty )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in BSTR filePath, + /* [in] */ __RPC__in BSTR property); + + DECLSPEC_XFGVIRT(IFsrmClassificationManager2, ClassifyFiles) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ClassifyFiles )( + __RPC__in IFsrmClassificationManager2 * This, + /* [in] */ __RPC__in SAFEARRAY * filePaths, + /* [unique][in] */ __RPC__in_opt SAFEARRAY * propertyNames, + /* [unique][in] */ __RPC__in_opt SAFEARRAY * propertyValues, + /* [defaultvalue][in] */ FsrmGetFilePropertyOptions options); + + END_INTERFACE + } IFsrmClassificationManager2Vtbl; + + interface IFsrmClassificationManager2 + { + CONST_VTBL struct IFsrmClassificationManager2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmClassificationManager2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmClassificationManager2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmClassificationManager2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmClassificationManager2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmClassificationManager2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmClassificationManager2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmClassificationManager2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmClassificationManager2_get_ClassificationReportFormats(This,formats) \ + ( (This)->lpVtbl -> get_ClassificationReportFormats(This,formats) ) + +#define IFsrmClassificationManager2_put_ClassificationReportFormats(This,formats) \ + ( (This)->lpVtbl -> put_ClassificationReportFormats(This,formats) ) + +#define IFsrmClassificationManager2_get_Logging(This,logging) \ + ( (This)->lpVtbl -> get_Logging(This,logging) ) + +#define IFsrmClassificationManager2_put_Logging(This,logging) \ + ( (This)->lpVtbl -> put_Logging(This,logging) ) + +#define IFsrmClassificationManager2_get_ClassificationReportMailTo(This,mailTo) \ + ( (This)->lpVtbl -> get_ClassificationReportMailTo(This,mailTo) ) + +#define IFsrmClassificationManager2_put_ClassificationReportMailTo(This,mailTo) \ + ( (This)->lpVtbl -> put_ClassificationReportMailTo(This,mailTo) ) + +#define IFsrmClassificationManager2_get_ClassificationReportEnabled(This,reportEnabled) \ + ( (This)->lpVtbl -> get_ClassificationReportEnabled(This,reportEnabled) ) + +#define IFsrmClassificationManager2_put_ClassificationReportEnabled(This,reportEnabled) \ + ( (This)->lpVtbl -> put_ClassificationReportEnabled(This,reportEnabled) ) + +#define IFsrmClassificationManager2_get_ClassificationLastReportPathWithoutExtension(This,lastReportPath) \ + ( (This)->lpVtbl -> get_ClassificationLastReportPathWithoutExtension(This,lastReportPath) ) + +#define IFsrmClassificationManager2_get_ClassificationLastError(This,lastError) \ + ( (This)->lpVtbl -> get_ClassificationLastError(This,lastError) ) + +#define IFsrmClassificationManager2_get_ClassificationRunningStatus(This,runningStatus) \ + ( (This)->lpVtbl -> get_ClassificationRunningStatus(This,runningStatus) ) + +#define IFsrmClassificationManager2_EnumPropertyDefinitions(This,options,propertyDefinitions) \ + ( (This)->lpVtbl -> EnumPropertyDefinitions(This,options,propertyDefinitions) ) + +#define IFsrmClassificationManager2_CreatePropertyDefinition(This,propertyDefinition) \ + ( (This)->lpVtbl -> CreatePropertyDefinition(This,propertyDefinition) ) + +#define IFsrmClassificationManager2_GetPropertyDefinition(This,propertyName,propertyDefinition) \ + ( (This)->lpVtbl -> GetPropertyDefinition(This,propertyName,propertyDefinition) ) + +#define IFsrmClassificationManager2_EnumRules(This,ruleType,options,Rules) \ + ( (This)->lpVtbl -> EnumRules(This,ruleType,options,Rules) ) + +#define IFsrmClassificationManager2_CreateRule(This,ruleType,Rule) \ + ( (This)->lpVtbl -> CreateRule(This,ruleType,Rule) ) + +#define IFsrmClassificationManager2_GetRule(This,ruleName,ruleType,Rule) \ + ( (This)->lpVtbl -> GetRule(This,ruleName,ruleType,Rule) ) + +#define IFsrmClassificationManager2_EnumModuleDefinitions(This,moduleType,options,moduleDefinitions) \ + ( (This)->lpVtbl -> EnumModuleDefinitions(This,moduleType,options,moduleDefinitions) ) + +#define IFsrmClassificationManager2_CreateModuleDefinition(This,moduleType,moduleDefinition) \ + ( (This)->lpVtbl -> CreateModuleDefinition(This,moduleType,moduleDefinition) ) + +#define IFsrmClassificationManager2_GetModuleDefinition(This,moduleName,moduleType,moduleDefinition) \ + ( (This)->lpVtbl -> GetModuleDefinition(This,moduleName,moduleType,moduleDefinition) ) + +#define IFsrmClassificationManager2_RunClassification(This,context,reserved) \ + ( (This)->lpVtbl -> RunClassification(This,context,reserved) ) + +#define IFsrmClassificationManager2_WaitForClassificationCompletion(This,waitSeconds,completed) \ + ( (This)->lpVtbl -> WaitForClassificationCompletion(This,waitSeconds,completed) ) + +#define IFsrmClassificationManager2_CancelClassification(This) \ + ( (This)->lpVtbl -> CancelClassification(This) ) + +#define IFsrmClassificationManager2_EnumFileProperties(This,filePath,options,fileProperties) \ + ( (This)->lpVtbl -> EnumFileProperties(This,filePath,options,fileProperties) ) + +#define IFsrmClassificationManager2_GetFileProperty(This,filePath,propertyName,options,property) \ + ( (This)->lpVtbl -> GetFileProperty(This,filePath,propertyName,options,property) ) + +#define IFsrmClassificationManager2_SetFileProperty(This,filePath,propertyName,propertyValue) \ + ( (This)->lpVtbl -> SetFileProperty(This,filePath,propertyName,propertyValue) ) + +#define IFsrmClassificationManager2_ClearFileProperty(This,filePath,property) \ + ( (This)->lpVtbl -> ClearFileProperty(This,filePath,property) ) + + +#define IFsrmClassificationManager2_ClassifyFiles(This,filePaths,propertyNames,propertyValues,options) \ + ( (This)->lpVtbl -> ClassifyFiles(This,filePaths,propertyNames,propertyValues,options) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmClassificationManager2_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmPropertyBag_INTERFACE_DEFINED__ +#define __IFsrmPropertyBag_INTERFACE_DEFINED__ + +/* interface IFsrmPropertyBag */ +/* [unique][helpstring][dual][uuid][object] */ + +#define MessageSizeLimit ( 4096 ) + + +EXTERN_C const IID IID_IFsrmPropertyBag; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("774589d1-d300-4f7a-9a24-f7b766800250") + IFsrmPropertyBag : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RelativePath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *path) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VolumeName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *volumeName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RelativeNamespaceRoot( + /* [retval][out] */ __RPC__deref_out_opt BSTR *relativeNamespaceRoot) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VolumeIndex( + /* [retval][out] */ __RPC__out unsigned long *volumeId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FileId( + /* [retval][out] */ __RPC__out VARIANT *fileId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ParentDirectoryId( + /* [retval][out] */ __RPC__out VARIANT *parentDirectoryId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Size( + /* [retval][out] */ __RPC__out VARIANT *size) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SizeAllocated( + /* [retval][out] */ __RPC__out VARIANT *sizeAllocated) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CreationTime( + /* [retval][out] */ __RPC__out VARIANT *creationTime) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastAccessTime( + /* [retval][out] */ __RPC__out VARIANT *lastAccessTime) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastModificationTime( + /* [retval][out] */ __RPC__out VARIANT *lastModificationTime) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Attributes( + /* [retval][out] */ __RPC__out unsigned long *attributes) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OwnerSid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *ownerSid) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FilePropertyNames( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *filePropertyNames) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Messages( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *messages) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyBagFlags( + /* [retval][out] */ __RPC__out unsigned long *flags) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetFileProperty( + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmProperty **fileProperty) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetFileProperty( + /* [in] */ __RPC__in BSTR name, + /* [in] */ __RPC__in BSTR value) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddMessage( + /* [in] */ __RPC__in BSTR message) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetFileStreamInterface( + /* [in] */ FsrmFileStreamingMode accessMode, + /* [in] */ FsrmFileStreamingInterfaceType interfaceType, + /* [retval][out] */ __RPC__out VARIANT *pStreamInterface) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPropertyBagVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmPropertyBag * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmPropertyBag * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmPropertyBag * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmPropertyBag * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmPropertyBag * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmPropertyBag * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmPropertyBag * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_RelativePath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RelativePath )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_VolumeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeName )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *volumeName); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_RelativeNamespaceRoot) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RelativeNamespaceRoot )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *relativeNamespaceRoot); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_VolumeIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeIndex )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__out unsigned long *volumeId); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_FileId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileId )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__out VARIANT *fileId); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_ParentDirectoryId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentDirectoryId )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__out VARIANT *parentDirectoryId); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_Size) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__out VARIANT *size); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_SizeAllocated) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeAllocated )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__out VARIANT *sizeAllocated); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__out VARIANT *creationTime); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_LastAccessTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastAccessTime )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__out VARIANT *lastAccessTime); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_LastModificationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastModificationTime )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__out VARIANT *lastModificationTime); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_Attributes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__out unsigned long *attributes); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_OwnerSid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OwnerSid )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *ownerSid); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_FilePropertyNames) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilePropertyNames )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *filePropertyNames); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_Messages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Messages )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *messages); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_PropertyBagFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyBagFlags )( + __RPC__in IFsrmPropertyBag * This, + /* [retval][out] */ __RPC__out unsigned long *flags); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, GetFileProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFileProperty )( + __RPC__in IFsrmPropertyBag * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmProperty **fileProperty); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, SetFileProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetFileProperty )( + __RPC__in IFsrmPropertyBag * This, + /* [in] */ __RPC__in BSTR name, + /* [in] */ __RPC__in BSTR value); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, AddMessage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddMessage )( + __RPC__in IFsrmPropertyBag * This, + /* [in] */ __RPC__in BSTR message); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, GetFileStreamInterface) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFileStreamInterface )( + __RPC__in IFsrmPropertyBag * This, + /* [in] */ FsrmFileStreamingMode accessMode, + /* [in] */ FsrmFileStreamingInterfaceType interfaceType, + /* [retval][out] */ __RPC__out VARIANT *pStreamInterface); + + END_INTERFACE + } IFsrmPropertyBagVtbl; + + interface IFsrmPropertyBag + { + CONST_VTBL struct IFsrmPropertyBagVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmPropertyBag_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmPropertyBag_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmPropertyBag_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmPropertyBag_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmPropertyBag_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmPropertyBag_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmPropertyBag_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmPropertyBag_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmPropertyBag_get_RelativePath(This,path) \ + ( (This)->lpVtbl -> get_RelativePath(This,path) ) + +#define IFsrmPropertyBag_get_VolumeName(This,volumeName) \ + ( (This)->lpVtbl -> get_VolumeName(This,volumeName) ) + +#define IFsrmPropertyBag_get_RelativeNamespaceRoot(This,relativeNamespaceRoot) \ + ( (This)->lpVtbl -> get_RelativeNamespaceRoot(This,relativeNamespaceRoot) ) + +#define IFsrmPropertyBag_get_VolumeIndex(This,volumeId) \ + ( (This)->lpVtbl -> get_VolumeIndex(This,volumeId) ) + +#define IFsrmPropertyBag_get_FileId(This,fileId) \ + ( (This)->lpVtbl -> get_FileId(This,fileId) ) + +#define IFsrmPropertyBag_get_ParentDirectoryId(This,parentDirectoryId) \ + ( (This)->lpVtbl -> get_ParentDirectoryId(This,parentDirectoryId) ) + +#define IFsrmPropertyBag_get_Size(This,size) \ + ( (This)->lpVtbl -> get_Size(This,size) ) + +#define IFsrmPropertyBag_get_SizeAllocated(This,sizeAllocated) \ + ( (This)->lpVtbl -> get_SizeAllocated(This,sizeAllocated) ) + +#define IFsrmPropertyBag_get_CreationTime(This,creationTime) \ + ( (This)->lpVtbl -> get_CreationTime(This,creationTime) ) + +#define IFsrmPropertyBag_get_LastAccessTime(This,lastAccessTime) \ + ( (This)->lpVtbl -> get_LastAccessTime(This,lastAccessTime) ) + +#define IFsrmPropertyBag_get_LastModificationTime(This,lastModificationTime) \ + ( (This)->lpVtbl -> get_LastModificationTime(This,lastModificationTime) ) + +#define IFsrmPropertyBag_get_Attributes(This,attributes) \ + ( (This)->lpVtbl -> get_Attributes(This,attributes) ) + +#define IFsrmPropertyBag_get_OwnerSid(This,ownerSid) \ + ( (This)->lpVtbl -> get_OwnerSid(This,ownerSid) ) + +#define IFsrmPropertyBag_get_FilePropertyNames(This,filePropertyNames) \ + ( (This)->lpVtbl -> get_FilePropertyNames(This,filePropertyNames) ) + +#define IFsrmPropertyBag_get_Messages(This,messages) \ + ( (This)->lpVtbl -> get_Messages(This,messages) ) + +#define IFsrmPropertyBag_get_PropertyBagFlags(This,flags) \ + ( (This)->lpVtbl -> get_PropertyBagFlags(This,flags) ) + +#define IFsrmPropertyBag_GetFileProperty(This,name,fileProperty) \ + ( (This)->lpVtbl -> GetFileProperty(This,name,fileProperty) ) + +#define IFsrmPropertyBag_SetFileProperty(This,name,value) \ + ( (This)->lpVtbl -> SetFileProperty(This,name,value) ) + +#define IFsrmPropertyBag_AddMessage(This,message) \ + ( (This)->lpVtbl -> AddMessage(This,message) ) + +#define IFsrmPropertyBag_GetFileStreamInterface(This,accessMode,interfaceType,pStreamInterface) \ + ( (This)->lpVtbl -> GetFileStreamInterface(This,accessMode,interfaceType,pStreamInterface) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmPropertyBag_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmPropertyBag2_INTERFACE_DEFINED__ +#define __IFsrmPropertyBag2_INTERFACE_DEFINED__ + +/* interface IFsrmPropertyBag2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmPropertyBag2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0e46bdbd-2402-4fed-9c30-9266e6eb2cc9") + IFsrmPropertyBag2 : public IFsrmPropertyBag + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetFieldValue( + /* [in] */ FsrmPropertyBagField field, + /* [retval][out] */ __RPC__out VARIANT *value) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetUntrustedInFileProperties( + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **props) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPropertyBag2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmPropertyBag2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmPropertyBag2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmPropertyBag2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmPropertyBag2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmPropertyBag2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmPropertyBag2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmPropertyBag2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_RelativePath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RelativePath )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_VolumeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeName )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *volumeName); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_RelativeNamespaceRoot) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RelativeNamespaceRoot )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *relativeNamespaceRoot); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_VolumeIndex) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeIndex )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__out unsigned long *volumeId); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_FileId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileId )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__out VARIANT *fileId); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_ParentDirectoryId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ParentDirectoryId )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__out VARIANT *parentDirectoryId); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_Size) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Size )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__out VARIANT *size); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_SizeAllocated) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SizeAllocated )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__out VARIANT *sizeAllocated); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__out VARIANT *creationTime); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_LastAccessTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastAccessTime )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__out VARIANT *lastAccessTime); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_LastModificationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastModificationTime )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__out VARIANT *lastModificationTime); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_Attributes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Attributes )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__out unsigned long *attributes); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_OwnerSid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OwnerSid )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *ownerSid); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_FilePropertyNames) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FilePropertyNames )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *filePropertyNames); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_Messages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Messages )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *messages); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, get_PropertyBagFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyBagFlags )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__out unsigned long *flags); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, GetFileProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFileProperty )( + __RPC__in IFsrmPropertyBag2 * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmProperty **fileProperty); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, SetFileProperty) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetFileProperty )( + __RPC__in IFsrmPropertyBag2 * This, + /* [in] */ __RPC__in BSTR name, + /* [in] */ __RPC__in BSTR value); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, AddMessage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddMessage )( + __RPC__in IFsrmPropertyBag2 * This, + /* [in] */ __RPC__in BSTR message); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag, GetFileStreamInterface) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFileStreamInterface )( + __RPC__in IFsrmPropertyBag2 * This, + /* [in] */ FsrmFileStreamingMode accessMode, + /* [in] */ FsrmFileStreamingInterfaceType interfaceType, + /* [retval][out] */ __RPC__out VARIANT *pStreamInterface); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag2, GetFieldValue) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFieldValue )( + __RPC__in IFsrmPropertyBag2 * This, + /* [in] */ FsrmPropertyBagField field, + /* [retval][out] */ __RPC__out VARIANT *value); + + DECLSPEC_XFGVIRT(IFsrmPropertyBag2, GetUntrustedInFileProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetUntrustedInFileProperties )( + __RPC__in IFsrmPropertyBag2 * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **props); + + END_INTERFACE + } IFsrmPropertyBag2Vtbl; + + interface IFsrmPropertyBag2 + { + CONST_VTBL struct IFsrmPropertyBag2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmPropertyBag2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmPropertyBag2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmPropertyBag2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmPropertyBag2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmPropertyBag2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmPropertyBag2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmPropertyBag2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmPropertyBag2_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmPropertyBag2_get_RelativePath(This,path) \ + ( (This)->lpVtbl -> get_RelativePath(This,path) ) + +#define IFsrmPropertyBag2_get_VolumeName(This,volumeName) \ + ( (This)->lpVtbl -> get_VolumeName(This,volumeName) ) + +#define IFsrmPropertyBag2_get_RelativeNamespaceRoot(This,relativeNamespaceRoot) \ + ( (This)->lpVtbl -> get_RelativeNamespaceRoot(This,relativeNamespaceRoot) ) + +#define IFsrmPropertyBag2_get_VolumeIndex(This,volumeId) \ + ( (This)->lpVtbl -> get_VolumeIndex(This,volumeId) ) + +#define IFsrmPropertyBag2_get_FileId(This,fileId) \ + ( (This)->lpVtbl -> get_FileId(This,fileId) ) + +#define IFsrmPropertyBag2_get_ParentDirectoryId(This,parentDirectoryId) \ + ( (This)->lpVtbl -> get_ParentDirectoryId(This,parentDirectoryId) ) + +#define IFsrmPropertyBag2_get_Size(This,size) \ + ( (This)->lpVtbl -> get_Size(This,size) ) + +#define IFsrmPropertyBag2_get_SizeAllocated(This,sizeAllocated) \ + ( (This)->lpVtbl -> get_SizeAllocated(This,sizeAllocated) ) + +#define IFsrmPropertyBag2_get_CreationTime(This,creationTime) \ + ( (This)->lpVtbl -> get_CreationTime(This,creationTime) ) + +#define IFsrmPropertyBag2_get_LastAccessTime(This,lastAccessTime) \ + ( (This)->lpVtbl -> get_LastAccessTime(This,lastAccessTime) ) + +#define IFsrmPropertyBag2_get_LastModificationTime(This,lastModificationTime) \ + ( (This)->lpVtbl -> get_LastModificationTime(This,lastModificationTime) ) + +#define IFsrmPropertyBag2_get_Attributes(This,attributes) \ + ( (This)->lpVtbl -> get_Attributes(This,attributes) ) + +#define IFsrmPropertyBag2_get_OwnerSid(This,ownerSid) \ + ( (This)->lpVtbl -> get_OwnerSid(This,ownerSid) ) + +#define IFsrmPropertyBag2_get_FilePropertyNames(This,filePropertyNames) \ + ( (This)->lpVtbl -> get_FilePropertyNames(This,filePropertyNames) ) + +#define IFsrmPropertyBag2_get_Messages(This,messages) \ + ( (This)->lpVtbl -> get_Messages(This,messages) ) + +#define IFsrmPropertyBag2_get_PropertyBagFlags(This,flags) \ + ( (This)->lpVtbl -> get_PropertyBagFlags(This,flags) ) + +#define IFsrmPropertyBag2_GetFileProperty(This,name,fileProperty) \ + ( (This)->lpVtbl -> GetFileProperty(This,name,fileProperty) ) + +#define IFsrmPropertyBag2_SetFileProperty(This,name,value) \ + ( (This)->lpVtbl -> SetFileProperty(This,name,value) ) + +#define IFsrmPropertyBag2_AddMessage(This,message) \ + ( (This)->lpVtbl -> AddMessage(This,message) ) + +#define IFsrmPropertyBag2_GetFileStreamInterface(This,accessMode,interfaceType,pStreamInterface) \ + ( (This)->lpVtbl -> GetFileStreamInterface(This,accessMode,interfaceType,pStreamInterface) ) + + +#define IFsrmPropertyBag2_GetFieldValue(This,field,value) \ + ( (This)->lpVtbl -> GetFieldValue(This,field,value) ) + +#define IFsrmPropertyBag2_GetUntrustedInFileProperties(This,props) \ + ( (This)->lpVtbl -> GetUntrustedInFileProperties(This,props) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmPropertyBag2_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmPipelineModuleImplementation_INTERFACE_DEFINED__ +#define __IFsrmPipelineModuleImplementation_INTERFACE_DEFINED__ + +/* interface IFsrmPipelineModuleImplementation */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmPipelineModuleImplementation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b7907906-2b02-4cb5-84a9-fdf54613d6cd") + IFsrmPipelineModuleImplementation : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnLoad( + /* [in] */ __RPC__in_opt IFsrmPipelineModuleDefinition *moduleDefinition, + /* [out] */ __RPC__deref_out_opt IFsrmPipelineModuleConnector **moduleConnector) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnUnload( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPipelineModuleImplementationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmPipelineModuleImplementation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmPipelineModuleImplementation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmPipelineModuleImplementation * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmPipelineModuleImplementation * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmPipelineModuleImplementation * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmPipelineModuleImplementation * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmPipelineModuleImplementation * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleImplementation, OnLoad) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnLoad )( + __RPC__in IFsrmPipelineModuleImplementation * This, + /* [in] */ __RPC__in_opt IFsrmPipelineModuleDefinition *moduleDefinition, + /* [out] */ __RPC__deref_out_opt IFsrmPipelineModuleConnector **moduleConnector); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleImplementation, OnUnload) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnUnload )( + __RPC__in IFsrmPipelineModuleImplementation * This); + + END_INTERFACE + } IFsrmPipelineModuleImplementationVtbl; + + interface IFsrmPipelineModuleImplementation + { + CONST_VTBL struct IFsrmPipelineModuleImplementationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmPipelineModuleImplementation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmPipelineModuleImplementation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmPipelineModuleImplementation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmPipelineModuleImplementation_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmPipelineModuleImplementation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmPipelineModuleImplementation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmPipelineModuleImplementation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmPipelineModuleImplementation_OnLoad(This,moduleDefinition,moduleConnector) \ + ( (This)->lpVtbl -> OnLoad(This,moduleDefinition,moduleConnector) ) + +#define IFsrmPipelineModuleImplementation_OnUnload(This) \ + ( (This)->lpVtbl -> OnUnload(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmPipelineModuleImplementation_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmClassifierModuleImplementation_INTERFACE_DEFINED__ +#define __IFsrmClassifierModuleImplementation_INTERFACE_DEFINED__ + +/* interface IFsrmClassifierModuleImplementation */ +/* [unique][helpstring][dual][uuid][object] */ + +#define FsrmNeverModified ((ULONGLONG) 0x0000000000000000ui64) +#define FsrmAlwaysModified ((ULONGLONG) 0xFFFFFFFFFFFFFFFFui64) + +EXTERN_C const IID IID_IFsrmClassifierModuleImplementation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4c968fc6-6edb-4051-9c18-73b7291ae106") + IFsrmClassifierModuleImplementation : public IFsrmPipelineModuleImplementation + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastModified( + /* [retval][out] */ __RPC__out VARIANT *lastModified) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UseRulesAndDefinitions( + /* [in] */ __RPC__in_opt IFsrmCollection *rules, + /* [in] */ __RPC__in_opt IFsrmCollection *propertyDefinitions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnBeginFile( + /* [in] */ __RPC__in_opt IFsrmPropertyBag *propertyBag, + /* [in] */ __RPC__in SAFEARRAY * arrayRuleIds) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DoesPropertyValueApply( + /* [in] */ __RPC__in BSTR property, + /* [in] */ __RPC__in BSTR value, + /* [out] */ __RPC__out VARIANT_BOOL *applyValue, + /* [in] */ FSRM_OBJECT_ID idRule, + /* [in] */ FSRM_OBJECT_ID idPropDef) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetPropertyValueToApply( + /* [in] */ __RPC__in BSTR property, + /* [out] */ __RPC__deref_out_opt BSTR *value, + /* [in] */ FSRM_OBJECT_ID idRule, + /* [in] */ FSRM_OBJECT_ID idPropDef) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OnEndFile( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmClassifierModuleImplementationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmClassifierModuleImplementation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmClassifierModuleImplementation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmClassifierModuleImplementation * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmClassifierModuleImplementation * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmClassifierModuleImplementation * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmClassifierModuleImplementation * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmClassifierModuleImplementation * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleImplementation, OnLoad) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnLoad )( + __RPC__in IFsrmClassifierModuleImplementation * This, + /* [in] */ __RPC__in_opt IFsrmPipelineModuleDefinition *moduleDefinition, + /* [out] */ __RPC__deref_out_opt IFsrmPipelineModuleConnector **moduleConnector); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleImplementation, OnUnload) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnUnload )( + __RPC__in IFsrmClassifierModuleImplementation * This); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleImplementation, get_LastModified) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastModified )( + __RPC__in IFsrmClassifierModuleImplementation * This, + /* [retval][out] */ __RPC__out VARIANT *lastModified); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleImplementation, UseRulesAndDefinitions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UseRulesAndDefinitions )( + __RPC__in IFsrmClassifierModuleImplementation * This, + /* [in] */ __RPC__in_opt IFsrmCollection *rules, + /* [in] */ __RPC__in_opt IFsrmCollection *propertyDefinitions); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleImplementation, OnBeginFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnBeginFile )( + __RPC__in IFsrmClassifierModuleImplementation * This, + /* [in] */ __RPC__in_opt IFsrmPropertyBag *propertyBag, + /* [in] */ __RPC__in SAFEARRAY * arrayRuleIds); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleImplementation, DoesPropertyValueApply) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DoesPropertyValueApply )( + __RPC__in IFsrmClassifierModuleImplementation * This, + /* [in] */ __RPC__in BSTR property, + /* [in] */ __RPC__in BSTR value, + /* [out] */ __RPC__out VARIANT_BOOL *applyValue, + /* [in] */ FSRM_OBJECT_ID idRule, + /* [in] */ FSRM_OBJECT_ID idPropDef); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleImplementation, GetPropertyValueToApply) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetPropertyValueToApply )( + __RPC__in IFsrmClassifierModuleImplementation * This, + /* [in] */ __RPC__in BSTR property, + /* [out] */ __RPC__deref_out_opt BSTR *value, + /* [in] */ FSRM_OBJECT_ID idRule, + /* [in] */ FSRM_OBJECT_ID idPropDef); + + DECLSPEC_XFGVIRT(IFsrmClassifierModuleImplementation, OnEndFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnEndFile )( + __RPC__in IFsrmClassifierModuleImplementation * This); + + END_INTERFACE + } IFsrmClassifierModuleImplementationVtbl; + + interface IFsrmClassifierModuleImplementation + { + CONST_VTBL struct IFsrmClassifierModuleImplementationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmClassifierModuleImplementation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmClassifierModuleImplementation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmClassifierModuleImplementation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmClassifierModuleImplementation_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmClassifierModuleImplementation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmClassifierModuleImplementation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmClassifierModuleImplementation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmClassifierModuleImplementation_OnLoad(This,moduleDefinition,moduleConnector) \ + ( (This)->lpVtbl -> OnLoad(This,moduleDefinition,moduleConnector) ) + +#define IFsrmClassifierModuleImplementation_OnUnload(This) \ + ( (This)->lpVtbl -> OnUnload(This) ) + + +#define IFsrmClassifierModuleImplementation_get_LastModified(This,lastModified) \ + ( (This)->lpVtbl -> get_LastModified(This,lastModified) ) + +#define IFsrmClassifierModuleImplementation_UseRulesAndDefinitions(This,rules,propertyDefinitions) \ + ( (This)->lpVtbl -> UseRulesAndDefinitions(This,rules,propertyDefinitions) ) + +#define IFsrmClassifierModuleImplementation_OnBeginFile(This,propertyBag,arrayRuleIds) \ + ( (This)->lpVtbl -> OnBeginFile(This,propertyBag,arrayRuleIds) ) + +#define IFsrmClassifierModuleImplementation_DoesPropertyValueApply(This,property,value,applyValue,idRule,idPropDef) \ + ( (This)->lpVtbl -> DoesPropertyValueApply(This,property,value,applyValue,idRule,idPropDef) ) + +#define IFsrmClassifierModuleImplementation_GetPropertyValueToApply(This,property,value,idRule,idPropDef) \ + ( (This)->lpVtbl -> GetPropertyValueToApply(This,property,value,idRule,idPropDef) ) + +#define IFsrmClassifierModuleImplementation_OnEndFile(This) \ + ( (This)->lpVtbl -> OnEndFile(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmClassifierModuleImplementation_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmStorageModuleImplementation_INTERFACE_DEFINED__ +#define __IFsrmStorageModuleImplementation_INTERFACE_DEFINED__ + +/* interface IFsrmStorageModuleImplementation */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmStorageModuleImplementation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0af4a0da-895a-4e50-8712-a96724bcec64") + IFsrmStorageModuleImplementation : public IFsrmPipelineModuleImplementation + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UseDefinitions( + /* [in] */ __RPC__in_opt IFsrmCollection *propertyDefinitions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LoadProperties( + /* [in] */ __RPC__in_opt IFsrmPropertyBag *propertyBag) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SaveProperties( + /* [in] */ __RPC__in_opt IFsrmPropertyBag *propertyBag) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmStorageModuleImplementationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmStorageModuleImplementation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmStorageModuleImplementation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmStorageModuleImplementation * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmStorageModuleImplementation * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmStorageModuleImplementation * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmStorageModuleImplementation * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmStorageModuleImplementation * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleImplementation, OnLoad) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnLoad )( + __RPC__in IFsrmStorageModuleImplementation * This, + /* [in] */ __RPC__in_opt IFsrmPipelineModuleDefinition *moduleDefinition, + /* [out] */ __RPC__deref_out_opt IFsrmPipelineModuleConnector **moduleConnector); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleImplementation, OnUnload) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OnUnload )( + __RPC__in IFsrmStorageModuleImplementation * This); + + DECLSPEC_XFGVIRT(IFsrmStorageModuleImplementation, UseDefinitions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UseDefinitions )( + __RPC__in IFsrmStorageModuleImplementation * This, + /* [in] */ __RPC__in_opt IFsrmCollection *propertyDefinitions); + + DECLSPEC_XFGVIRT(IFsrmStorageModuleImplementation, LoadProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LoadProperties )( + __RPC__in IFsrmStorageModuleImplementation * This, + /* [in] */ __RPC__in_opt IFsrmPropertyBag *propertyBag); + + DECLSPEC_XFGVIRT(IFsrmStorageModuleImplementation, SaveProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SaveProperties )( + __RPC__in IFsrmStorageModuleImplementation * This, + /* [in] */ __RPC__in_opt IFsrmPropertyBag *propertyBag); + + END_INTERFACE + } IFsrmStorageModuleImplementationVtbl; + + interface IFsrmStorageModuleImplementation + { + CONST_VTBL struct IFsrmStorageModuleImplementationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmStorageModuleImplementation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmStorageModuleImplementation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmStorageModuleImplementation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmStorageModuleImplementation_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmStorageModuleImplementation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmStorageModuleImplementation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmStorageModuleImplementation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmStorageModuleImplementation_OnLoad(This,moduleDefinition,moduleConnector) \ + ( (This)->lpVtbl -> OnLoad(This,moduleDefinition,moduleConnector) ) + +#define IFsrmStorageModuleImplementation_OnUnload(This) \ + ( (This)->lpVtbl -> OnUnload(This) ) + + +#define IFsrmStorageModuleImplementation_UseDefinitions(This,propertyDefinitions) \ + ( (This)->lpVtbl -> UseDefinitions(This,propertyDefinitions) ) + +#define IFsrmStorageModuleImplementation_LoadProperties(This,propertyBag) \ + ( (This)->lpVtbl -> LoadProperties(This,propertyBag) ) + +#define IFsrmStorageModuleImplementation_SaveProperties(This,propertyBag) \ + ( (This)->lpVtbl -> SaveProperties(This,propertyBag) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmStorageModuleImplementation_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmPipelineModuleConnector_INTERFACE_DEFINED__ +#define __IFsrmPipelineModuleConnector_INTERFACE_DEFINED__ + +/* interface IFsrmPipelineModuleConnector */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmPipelineModuleConnector; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c16014f3-9aa1-46b3-b0a7-ab146eb205f2") + IFsrmPipelineModuleConnector : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ModuleImplementation( + /* [retval][out] */ __RPC__deref_out_opt IFsrmPipelineModuleImplementation **pipelineModuleImplementation) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ModuleName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *userName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HostingUserAccount( + /* [retval][out] */ __RPC__deref_out_opt BSTR *userAccount) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_HostingProcessPid( + /* [retval][out] */ __RPC__out long *pid) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Bind( + /* [in] */ __RPC__in_opt IFsrmPipelineModuleDefinition *moduleDefinition, + /* [in] */ __RPC__in_opt IFsrmPipelineModuleImplementation *moduleImplementation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPipelineModuleConnectorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmPipelineModuleConnector * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmPipelineModuleConnector * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmPipelineModuleConnector * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmPipelineModuleConnector * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmPipelineModuleConnector * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmPipelineModuleConnector * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmPipelineModuleConnector * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleConnector, get_ModuleImplementation) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModuleImplementation )( + __RPC__in IFsrmPipelineModuleConnector * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPipelineModuleImplementation **pipelineModuleImplementation); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleConnector, get_ModuleName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModuleName )( + __RPC__in IFsrmPipelineModuleConnector * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *userName); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleConnector, get_HostingUserAccount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HostingUserAccount )( + __RPC__in IFsrmPipelineModuleConnector * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *userAccount); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleConnector, get_HostingProcessPid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_HostingProcessPid )( + __RPC__in IFsrmPipelineModuleConnector * This, + /* [retval][out] */ __RPC__out long *pid); + + DECLSPEC_XFGVIRT(IFsrmPipelineModuleConnector, Bind) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Bind )( + __RPC__in IFsrmPipelineModuleConnector * This, + /* [in] */ __RPC__in_opt IFsrmPipelineModuleDefinition *moduleDefinition, + /* [in] */ __RPC__in_opt IFsrmPipelineModuleImplementation *moduleImplementation); + + END_INTERFACE + } IFsrmPipelineModuleConnectorVtbl; + + interface IFsrmPipelineModuleConnector + { + CONST_VTBL struct IFsrmPipelineModuleConnectorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmPipelineModuleConnector_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmPipelineModuleConnector_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmPipelineModuleConnector_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmPipelineModuleConnector_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmPipelineModuleConnector_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmPipelineModuleConnector_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmPipelineModuleConnector_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmPipelineModuleConnector_get_ModuleImplementation(This,pipelineModuleImplementation) \ + ( (This)->lpVtbl -> get_ModuleImplementation(This,pipelineModuleImplementation) ) + +#define IFsrmPipelineModuleConnector_get_ModuleName(This,userName) \ + ( (This)->lpVtbl -> get_ModuleName(This,userName) ) + +#define IFsrmPipelineModuleConnector_get_HostingUserAccount(This,userAccount) \ + ( (This)->lpVtbl -> get_HostingUserAccount(This,userAccount) ) + +#define IFsrmPipelineModuleConnector_get_HostingProcessPid(This,pid) \ + ( (This)->lpVtbl -> get_HostingProcessPid(This,pid) ) + +#define IFsrmPipelineModuleConnector_Bind(This,moduleDefinition,moduleImplementation) \ + ( (This)->lpVtbl -> Bind(This,moduleDefinition,moduleImplementation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmPipelineModuleConnector_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_fsrmpipeline_0000_0017 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmpipeline_0000_0017_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmpipeline_0000_0017_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmpipeline.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmpipeline.idl new file mode 100644 index 0000000000000000000000000000000000000000..5e0f95e78d47d3ba20e1c7dae7097f58f8949ada --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmpipeline.idl @@ -0,0 +1,907 @@ +////////////////////////////////////// +// Imports +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; + +import "fsrm.idl"; + + +////////////////////////////////////// +// Forward declarations +// + +interface IFsrmPropertyDefinition; +interface IFsrmPropertyDefinition2; +interface IFsrmPropertyDefinitionValue; +interface IFsrmProperty; +interface IFsrmRule; +interface IFsrmClassificationRule; +interface IFsrmPipelineModuleDefinition; +interface IFsrmClassifierModuleDefinition; +interface IFsrmStorageModuleDefinition; +interface IFsrmClassificationManager; +interface IFsrmClassificationManager2; +interface IFsrmPropertyBag; +interface IFsrmPipelineModuleImplementation; +interface IFsrmClassifierModuleImplementation; +interface IFsrmStorageModuleImplementation; +interface IFsrmPipelineModuleConnector; + + +////////////////////////////////////// +// Dispatch IDs +// + +#define FSRM_PROPERTY(x) x | FSRM_DISPID_IS_PROPERTY + +// Dispatch ID base of classification interfaces +const DISPID FSRM_DISPID_PROPERTY_DEFINITION = FSRM_DISPID_FEATURE_CLASSIFICATION | 0x100000; +const DISPID FSRM_DISPID_PROPERTY_DEFINITION2 = FSRM_DISPID_PROPERTY_DEFINITION | 0x010000; + +const DISPID FSRM_DISPID_PROPERTY = FSRM_DISPID_FEATURE_CLASSIFICATION | 0x200000; + +const DISPID FSRM_DISPID_RULE = FSRM_DISPID_FEATURE_CLASSIFICATION | 0x300000; +const DISPID FSRM_DISPID_CLASSIFICATION_RULE = FSRM_DISPID_RULE | 0x010000; +const DISPID FSRM_DISPID_EXPIRATION_RULE = FSRM_DISPID_RULE | 0x020000; + +const DISPID FSRM_DISPID_PIPELINE_MODULE_DEFINITION = FSRM_DISPID_FEATURE_CLASSIFICATION | 0x400000; +const DISPID FSRM_DISPID_CLASSIFIER_MODULE_DEFINITION = FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x010000; +const DISPID FSRM_DISPID_STORAGE_MODULE_DEFINITION = FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x020000; + +const DISPID FSRM_DISPID_CLASSIFICATION_MANAGER = FSRM_DISPID_FEATURE_CLASSIFICATION | 0x500000; +const DISPID FSRM_DISPID_CLASSIFICATION_MANAGER2 = FSRM_DISPID_CLASSIFICATION_MANAGER | 0x010000; + +const DISPID FSRM_DISPID_CLASSIFICATION_EVENTS = FSRM_DISPID_FEATURE_CLASSIFICATION | 0x600000; + +const DISPID FSRM_DISPID_PROPERTY_DEFINITION_VALUE = FSRM_DISPID_FEATURE_CLASSIFICATION | 0x700000; + +// Dispatch ID base of pipeline interfaces +const DISPID FSRM_DISPID_PROPERTY_BAG = FSRM_DISPID_FEATURE_PIPELINE | 0x100000; +const DISPID FSRM_DISPID_PROPERTY_BAG2 = FSRM_DISPID_PROPERTY_BAG | 0x010000; + +const DISPID FSRM_DISPID_PIPELINE_MODULE_IMPLEMENTATION = FSRM_DISPID_FEATURE_PIPELINE | 0x200000; +const DISPID FSRM_DISPID_CLASSIFIER_MODULE_IMPLEMENTATION = FSRM_DISPID_PIPELINE_MODULE_IMPLEMENTATION | 0x010000; +const DISPID FSRM_DISPID_STORAGE_MODULE_IMPLEMENTATION = FSRM_DISPID_PIPELINE_MODULE_IMPLEMENTATION | 0x020000; + +const DISPID FSRM_DISPID_PIPELINE_MODULE_CONNECTOR = FSRM_DISPID_FEATURE_PIPELINE | 0x300000; + + + +////////////////////////////////////// +// Constants +// + +const ULONG FsrmMaxNumberPropertyDefinitions = 100; + + +////////////////////////////////////// +// Interfaces +// + +[ + object, + uuid(ede0150f-e9a3-419c-877c-01fe5d24c5d3), + dual, + helpstring("IFsrmPropertyDefinition Interface"), + pointer_default(unique) +] +interface IFsrmPropertyDefinition : IFsrmObject +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x01)), helpstring("This property is the name of the property definition")] + HRESULT Name([out, retval] BSTR *name); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x01)), helpstring("This property is the name of the property definition")] + HRESULT Name([in] BSTR name); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x02)), helpstring("This property is the type of the property definition")] + HRESULT Type([out, retval] FsrmPropertyDefinitionType *type); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x02)), helpstring("This property is the type of the property definition")] + HRESULT Type([in] FsrmPropertyDefinitionType type); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x03)), helpstring("This property contains the possible values of the property definition")] + HRESULT PossibleValues([out, retval] SAFEARRAY(VARIANT) *possibleValues); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x03)), helpstring("This property contains the possible values of the property definition")] + HRESULT PossibleValues([in] SAFEARRAY(VARIANT) possibleValues); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x04)), helpstring("This property contains the descriptions of the possible values of the property definition")] + HRESULT ValueDescriptions([out, retval] SAFEARRAY(VARIANT) *valueDescriptions); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x04)), helpstring("This property contains the descriptions of the possible values of the property definition")] + HRESULT ValueDescriptions([in] SAFEARRAY(VARIANT) valueDescriptions); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x05)), helpstring("This property contains the parameters for the property definition")] + HRESULT Parameters([out, retval] SAFEARRAY(VARIANT) *parameters); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION | 0x05)), helpstring("This property contains the parameters for the property definition")] + HRESULT Parameters([in] SAFEARRAY(VARIANT) parameters); + +}; + + +[ + object, + uuid(47782152-d16c-4229-b4e1-0ddfe308b9f6), + dual, + helpstring("IFsrmPropertyDefinition2 Interface"), + pointer_default(unique) +] +interface IFsrmPropertyDefinition2 : IFsrmPropertyDefinition { + + // + // Properties + // + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION2 | 0x01)), helpstring("This property contains the flags for the property definition")] + HRESULT PropertyDefinitionFlags([out, retval] long *propertyDefinitionFlags); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION2 | 0x02)), helpstring("This property is the display name of the property definition")] + HRESULT DisplayName([out, retval] BSTR *name); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION2 | 0x02)), helpstring("This property is the display name of the property definition")] + HRESULT DisplayName([in] BSTR name); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION2 | 0x03)), helpstring("This property contains the object types the property definition can apply to")] + HRESULT AppliesTo([out, retval] long *appliesTo); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION2 | 0x04)), helpstring("This property contains the possible value definitions of the property definition")] + HRESULT ValueDefinitions([out, retval] IFsrmCollection **valueDefinitions); +}; + +[ + object, + uuid(E946D148-BD67-4178-8E22-1C44925ED710), + dual, + helpstring("IFsrmPropertyDefinitionValue Interface"), + pointer_default(unique) +] +interface IFsrmPropertyDefinitionValue : IDispatch +{ + // + // Properties + // + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION_VALUE | 0x01)), helpstring("This property contains the name of the property definition value")] + HRESULT Name([out, retval] BSTR *name); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION_VALUE | 0x02)), helpstring("This property contains the display name of the property definition value")] + HRESULT DisplayName([out, retval] BSTR *displayName); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION_VALUE | 0x03)), helpstring("This property contains the description of the property definition value")] + HRESULT Description([out, retval] BSTR *description); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_DEFINITION_VALUE | 0x04)), helpstring("This property contains the unique ID of the property definition value")] + HRESULT UniqueID([out, retval] BSTR *uniqueID); +}; + +[ + object, + uuid(4a73fee4-4102-4fcc-9ffb-38614f9ee768), + dual, + helpstring("IFsrmProperty Interface"), + pointer_default(unique) +] +interface IFsrmProperty : IDispatch +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY | 0x01)), helpstring("This property is the name of the property")] + HRESULT Name([out, retval] BSTR *name); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY | 0x02)), helpstring("This property is the aggregated value of the property")] + HRESULT Value([out, retval] BSTR *value); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY | 0x03)), helpstring("This property contains the modules and rules that have set the value; entries are strings of the form MODULE,RULE")] + HRESULT Sources([out, retval] SAFEARRAY(VARIANT) *sources); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY | 0x04)), helpstring("This property contains the flags of the property")] + HRESULT PropertyFlags([out, retval] long *flags); + +}; + + +[ + object, + uuid(cb0df960-16f5-4495-9079-3f9360d831df), + dual, + helpstring("IFsrmRule Interface"), + pointer_default(unique) +] +interface IFsrmRule : IFsrmObject +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x01)), helpstring("This property is the name of the rule")] + HRESULT Name([out, retval] BSTR *name); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x01)), helpstring("This property is the name of the rule")] + HRESULT Name([in] BSTR name); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x02)), helpstring("This property returns the type of the rule")] + HRESULT RuleType([out, retval] FsrmRuleType *ruleType); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x03)), helpstring("This property is the name of the module definition on which the rule will run")] + HRESULT ModuleDefinitionName([out, retval] BSTR *moduleDefinitionName); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x03)), helpstring("This property is the name of the module definition on which the rule will run")] + HRESULT ModuleDefinitionName([in] BSTR moduleDefinitionName); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x04)), helpstring("This property contains the paths on which the rule will run")] + HRESULT NamespaceRoots([out, retval] SAFEARRAY(VARIANT) *namespaceRoots); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x04)), helpstring("This property contains the paths on which the rule will run")] + HRESULT NamespaceRoots([in] SAFEARRAY(VARIANT) namespaceRoots); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x05)), helpstring("This property contains the flags for the rules")] + HRESULT RuleFlags([out, retval] long *ruleFlags); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x05)), helpstring("This property contains the flags for the rules")] + HRESULT RuleFlags([in] long ruleFlags); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x06)), helpstring("This property contains the parameters for the rule")] + HRESULT Parameters([out, retval] SAFEARRAY(VARIANT) *parameters); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x06)), helpstring("This property contains the parameters for the rule")] + HRESULT Parameters([in] SAFEARRAY(VARIANT) parameters); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_RULE | 0x07)), helpstring("This property indicates the last time the rule was modified as a 64-bit FILETIME")] + HRESULT LastModified([out, retval] VARIANT *lastModified); + +}; + + +[ + object, + uuid(afc052c2-5315-45ab-841b-c6db0e120148), + dual, + helpstring("IFsrmClassificationRule Interface"), + pointer_default(unique) +] +interface IFsrmClassificationRule : IFsrmRule +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_RULE | 0x01)), helpstring("This property indicates how often to execute the classification rule")] + HRESULT ExecutionOption([out, retval] FsrmExecutionOption *executionOption); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_RULE | 0x01)), helpstring("This property indicates how often to execute the classification rule")] + HRESULT ExecutionOption([in] FsrmExecutionOption executionOption); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_RULE | 0x02)), helpstring("This property is the property that this rule will potentially affect")] + HRESULT PropertyAffected([out, retval] BSTR *property); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_RULE | 0x02)), helpstring("This property is the property that this rule will potentially affect")] + HRESULT PropertyAffected([in] BSTR property); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_RULE | 0x03)), helpstring("This property is the value that this rule will set the property to, if explicitly defined")] + HRESULT Value([out, retval] BSTR *value); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_RULE | 0x03)), helpstring("This property is the value that this rule will set the property to, if explicitly defined")] + HRESULT Value([in] BSTR value); + +}; + + +[ + object, + uuid(515c1277-2c81-440e-8fcf-367921ed4f59), + dual, + helpstring("IFsrmPipelineModuleDefinition Interface"), + pointer_default(unique) +] +interface IFsrmPipelineModuleDefinition : IFsrmObject +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x01)), helpstring("This property is the string verison of the COM class ID of the module that is being defined")] + HRESULT ModuleClsid([out, retval] BSTR *moduleClsid); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x01)), helpstring("This property is the string verison of the COM class ID of the module that is being defined")] + HRESULT ModuleClsid([in] BSTR moduleClsid); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x02)), helpstring("This property is the name of the pipeline module definition")] + HRESULT Name([out, retval] BSTR *name); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x02)), helpstring("This property is the name of the pipeline module definition")] + HRESULT Name([in] BSTR name); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x03)), helpstring("This property is the company name of the pipeline module definition")] + HRESULT Company([out, retval] BSTR *company); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x03)), helpstring("This property is the company name of the pipeline module definition")] + HRESULT Company([in] BSTR company); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x04)), helpstring("This property is the version of the pipeline module definition")] + HRESULT Version([out, retval] BSTR *version); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x04)), helpstring("This property is the version of the pipeline module definition")] + HRESULT Version([in] BSTR version); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x05)), helpstring("This property is the type of the pipeline module")] + HRESULT ModuleType([out, retval] FsrmPipelineModuleType *moduleType); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x06)), helpstring("This property determines if the module is enabled")] + HRESULT Enabled([out, retval] VARIANT_BOOL *enabled); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x06)), helpstring("This property determines if the module is enabled")] + HRESULT Enabled([in] VARIANT_BOOL enabled); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x07)), helpstring("This property determines if the module needs access to the content of the file")] + HRESULT NeedsFileContent([out, retval] VARIANT_BOOL *needsFileContent); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x07)), helpstring("This property determines if the module needs access to the content of the file")] + HRESULT NeedsFileContent([in] VARIANT_BOOL needsFileContent); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x08)), helpstring("This property is the account to use when running the classification module")] + HRESULT Account([out, retval] FsrmAccountType *retrievalAccount); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x08)), helpstring("This property is the account to use when running the classification module")] + HRESULT Account([in] FsrmAccountType retrievalAccount); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x09)), helpstring("This property is the list of file extensions this module supports")] + HRESULT SupportedExtensions([out, retval] SAFEARRAY(VARIANT) *supportedExtensions); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0x09)), helpstring("This property is the list of file extensions this module supports")] + HRESULT SupportedExtensions([in] SAFEARRAY(VARIANT) supportedExtensions); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0xA)), helpstring("This property contains the parameters for the pipeline module definition")] + HRESULT Parameters([out, retval] SAFEARRAY(VARIANT) *parameters); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_DEFINITION | 0xA)), helpstring("This property contains the parameters for the pipeline module definition")] + HRESULT Parameters([in] SAFEARRAY(VARIANT) parameters); + +}; + + +[ + object, + uuid(bb36ea26-6318-4b8c-8592-f72dd602e7a5), + dual, + helpstring("IFsrmClassifierModuleDefinition Interface"), + pointer_default(unique) +] +interface IFsrmClassifierModuleDefinition : IFsrmPipelineModuleDefinition +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFIER_MODULE_DEFINITION | 0x01)), helpstring("This property contains the names of the properties potentially affected by this classifier")] + HRESULT PropertiesAffected([out, retval] SAFEARRAY(VARIANT) *propertiesAffected); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFIER_MODULE_DEFINITION | 0x01)), helpstring("This property contains the names of the properties potentially affected by this classifier")] + HRESULT PropertiesAffected([in] SAFEARRAY(VARIANT) propertiesAffected); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFIER_MODULE_DEFINITION | 0x02)), helpstring("This property contains the names of the properties potentially used by this classifier")] + HRESULT PropertiesUsed([out, retval] SAFEARRAY(VARIANT) *propertiesUsed); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFIER_MODULE_DEFINITION | 0x02)), helpstring("This property contains the names of the properties potentially used by this classifier")] + HRESULT PropertiesUsed([in] SAFEARRAY(VARIANT) propertiesUsed); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFIER_MODULE_DEFINITION | 0x03)), helpstring("This property determines if a rule using this classifier needs to provide an explicit value for the property being modified")] + HRESULT NeedsExplicitValue([out, retval] VARIANT_BOOL *needsExplicitValue); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFIER_MODULE_DEFINITION | 0x03)), helpstring("This property determines if a rule using this classifier needs to provide an explicit value for the property being modified")] + HRESULT NeedsExplicitValue([in] VARIANT_BOOL needsExplicitValue); + +}; + + +[ + object, + uuid(15a81350-497d-4aba-80e9-d4dbcc5521fe), + dual, + helpstring("IFsrmStorageModuleDefinition Interface"), + pointer_default(unique) +] +interface IFsrmStorageModuleDefinition : IFsrmPipelineModuleDefinition +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_STORAGE_MODULE_DEFINITION | 0x01)), helpstring("This property is the bit field containing capabilities of the storage module")] + HRESULT Capabilities([out, retval] FsrmStorageModuleCaps *capabilities); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_STORAGE_MODULE_DEFINITION | 0x01)), helpstring("This property is the bit field containing capabilities of the storage module")] + HRESULT Capabilities([in] FsrmStorageModuleCaps capabilities); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_STORAGE_MODULE_DEFINITION | 0x02)), helpstring("This property is the type of storage for the storage module")] + HRESULT StorageType([out, retval] FsrmStorageModuleType *storageType); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_STORAGE_MODULE_DEFINITION | 0x02)), helpstring("This property is the type of storage for the storage module")] + HRESULT StorageType([in] FsrmStorageModuleType storageType); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_STORAGE_MODULE_DEFINITION | 0x03)), helpstring("This property determines if the module updates the content of the file")] + HRESULT UpdatesFileContent([out, retval] VARIANT_BOOL *updatesFileContent); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_STORAGE_MODULE_DEFINITION | 0x03)), helpstring("This property determines if the module updates the content of the file")] + HRESULT UpdatesFileContent([in] VARIANT_BOOL updatesFileContent); + +}; + + +[ + object, + uuid(d2dc89da-ee91-48a0-85d8-cc72a56f7d04), + dual, + helpstring("IFsrmClassificationManager Interface"), + pointer_default(unique) +] +interface IFsrmClassificationManager : IDispatch +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x01)), helpstring("This property contains the formats in which to generate the classification reports")] + HRESULT ClassificationReportFormats([out, retval] SAFEARRAY(VARIANT) *formats); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x01)), helpstring("This property contains the formats in which to generate the classification reports")] + HRESULT ClassificationReportFormats([in] SAFEARRAY(VARIANT) formats); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x02)), helpstring("This property contains the types of logging that should be done for classificaiton")] + HRESULT Logging([out, retval] long *logging); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x02)), helpstring("This property contains the types of logging that should be done for classificaiton")] + HRESULT Logging([in] long logging); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x03)), helpstring("This property is the e-mail address to which to send the classification reports, if any")] + HRESULT ClassificationReportMailTo([out, retval] BSTR *mailTo); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x03)), helpstring("This property is the e-mail address to which to send the classification reports, if any")] + HRESULT ClassificationReportMailTo([in] BSTR mailTo); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x04)), helpstring("This property specifies whether report is enabled or not")] + HRESULT ClassificationReportEnabled([out, retval] VARIANT_BOOL *reportEnabled); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x04)), helpstring("This property specifies whether report is enabled or not")] + HRESULT ClassificationReportEnabled([in] VARIANT_BOOL reportEnabled); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x05)), helpstring("This property is the last classification report path without extension, if any")] + HRESULT ClassificationLastReportPathWithoutExtension([out, retval] BSTR *lastReportPath); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x06)), helpstring("This property is the last classification error, if any")] + HRESULT ClassificationLastError([out, retval] BSTR *lastError); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x07)), helpstring("This property is the classification running status")] + HRESULT ClassificationRunningStatus([out, retval] FsrmReportRunningStatus *runningStatus); + + + // Methods + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x01), helpstring("This method is used to enumerate property definitions")] + HRESULT EnumPropertyDefinitions( + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCollection **propertyDefinitions); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x02), helpstring("This method is used to create a new property definition")] + HRESULT CreatePropertyDefinition( + [out, retval] IFsrmPropertyDefinition **propertyDefinition); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x03), helpstring("This method is used to get a property definition having a specific name")] + HRESULT GetPropertyDefinition( + [in] BSTR propertyName, + [out, retval] IFsrmPropertyDefinition **propertyDefinition); + + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x04), helpstring("This method is used to enumerate rules of a specified type")] + HRESULT EnumRules( + [in] FsrmRuleType ruleType, + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCollection **Rules); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x05), helpstring("This method is used to create a new rule of a specified type")] + HRESULT CreateRule( + [in] FsrmRuleType ruleType, + [out, retval] IFsrmRule **Rule); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x06), helpstring("This method is used to get a rule having a specific nameand a specified type")] + HRESULT GetRule( + [in] BSTR ruleName, + [in] FsrmRuleType ruleType, + [out, retval] IFsrmRule **Rule); + + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x07), helpstring("This method is used to enumerate module definitions of a specified type")] + HRESULT EnumModuleDefinitions( + [in] FsrmPipelineModuleType moduleType, + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCollection **moduleDefinitions); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x08), helpstring("This method is used to create a new module definition of a specified type")] + HRESULT CreateModuleDefinition( + [in] FsrmPipelineModuleType moduleType, + [out, retval] IFsrmPipelineModuleDefinition**moduleDefinition); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x09), helpstring("This method is used to get a module definition having a specific name and a specified type")] + HRESULT GetModuleDefinition( + [in] BSTR moduleName, + [in] FsrmPipelineModuleType moduleType, + [out, retval] IFsrmPipelineModuleDefinition**moduleDefinition); + + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x0A), helpstring("This method is used to run the classification rules")] + HRESULT RunClassification( + [in] FsrmReportGenerationContext context, + [in] BSTR reserved); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x0B), helpstring("This method is used to wait for the specified period of time or until classification is finished running and return whether or not the job is still running")] + HRESULT WaitForClassificationCompletion( + [in] long waitSeconds, + [out, retval] VARIANT_BOOL *completed); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x0C), helpstring("This method cancels the currently running classification")] + HRESULT CancelClassification(); + + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x0D), helpstring("This method is used to enumerate all the properties of a file")] + HRESULT EnumFileProperties( + [in] BSTR filePath, + [in, defaultvalue(FsrmGetFilePropertyOptions_None)] FsrmGetFilePropertyOptions options, + [out, retval] IFsrmCollection **fileProperties); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x0E), helpstring("This method is used to get a specific property from a file")] + HRESULT GetFileProperty( + [in] BSTR filePath, + [in] BSTR propertyName, + [in, defaultvalue(FsrmGetFilePropertyOptions_None)] FsrmGetFilePropertyOptions options, + [out, retval] IFsrmProperty **property); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x0F), helpstring("This method is used to set a specific property from a file")] + HRESULT SetFileProperty( + [in] BSTR filePath, + [in] BSTR propertyName, + [in] BSTR propertyValue); + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER | 0x10), helpstring("This method is used to clear the specified property from a file")] + HRESULT ClearFileProperty( + [in] BSTR filePath, + [in] BSTR property); + +}; + + +[ + object, + uuid(0004c1c9-127e-4765-ba07-6a3147bca112), + dual, + helpstring("IFsrmClassificationManager2 Interface"), + pointer_default(unique) +] +interface IFsrmClassificationManager2 : IFsrmClassificationManager +{ + + // Methods + + [id(FSRM_DISPID_CLASSIFICATION_MANAGER2 | 0x01), helpstring("This method is used to perform bulk enumeration, setting, and clearing of file properties")] + HRESULT ClassifyFiles( + [in] SAFEARRAY(VARIANT) filePaths, + [in, unique] SAFEARRAY(VARIANT) propertyNames, + [in, unique] SAFEARRAY(VARIANT) propertyValues, + [in, defaultvalue(FsrmGetFilePropertyOptions_None)] FsrmGetFilePropertyOptions options); + +}; + + +// +// Interfaces needed for pipeline module implementation +// + + +[ + object, + uuid(774589d1-d300-4f7a-9a24-f7b766800250), + dual, + helpstring("IFsrmPropertyBag Interface"), + pointer_default(unique) +] +interface IFsrmPropertyBag : IDispatch +{ + + const long MessageSizeLimit = 4096; + + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x01)), helpstring("This property is the name of the file")] + HRESULT Name([out, retval] BSTR *name); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x02)), helpstring("This property is the relative path to the file")] + HRESULT RelativePath([out, retval] BSTR *path); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x03)), helpstring("This property is the name of the volume on which the file exists")] + HRESULT VolumeName([out, retval] BSTR *volumeName); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x04)), helpstring("This property is the relative path of the namespace root under which the file was scanned")] + HRESULT RelativeNamespaceRoot([out, retval] BSTR *relativeNamespaceRoot); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x05)), helpstring("This property is the index that the scanner uses to refer to the volume on which the file exists")] + HRESULT VolumeIndex([out, retval] unsigned long *volumeId); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x06)), helpstring("This property is the ID of the file")] + HRESULT FileId([out, retval] VARIANT *fileId); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x07)), helpstring("This property is the ID of the file's parent directory")] + HRESULT ParentDirectoryId([out, retval] VARIANT *parentDirectoryId); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x08)), helpstring("This property is the size of the file")] + HRESULT Size([out, retval] VARIANT *size); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x09)), helpstring("This property is the allocated size of the file")] + HRESULT SizeAllocated([out, retval] VARIANT *sizeAllocated); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x0A)), helpstring("This property is the creation time of the file as a 64-bit FILETIME")] + HRESULT CreationTime([out, retval] VARIANT *creationTime); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x0B)), helpstring("This property is the last access time of the file as a 64-bit FILETIME")] + HRESULT LastAccessTime([out, retval] VARIANT *lastAccessTime); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x0C)), helpstring("This property is the last modification time of the file as a 64-bit FILETIME")] + HRESULT LastModificationTime([out, retval] VARIANT *lastModificationTime); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x0D)), helpstring("This property is the attributes of the file")] + HRESULT Attributes([out, retval] unsigned long *attributes); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x0E)), helpstring("This property is the SID of the file owner")] + HRESULT OwnerSid([out, retval] BSTR *ownerSid); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x0F)), helpstring("This property contains a list of the names of the file metadata properties")] + HRESULT FilePropertyNames([out, retval] SAFEARRAY(VARIANT) *filePropertyNames); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x10)), helpstring("This property contains a list of all messages concerning classification of the file that were added")] + HRESULT Messages([out, retval] SAFEARRAY(VARIANT) *messages); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_BAG | 0x11)), helpstring("This property is a set of flags for the property bag")] + HRESULT PropertyBagFlags([out, retval] unsigned long *flags); + + + // Methods + + [id(FSRM_DISPID_PROPERTY_BAG | 0x01), helpstring("This method is used to get a file metadata property by name")] + HRESULT GetFileProperty( + [in] BSTR name, + [out, retval] IFsrmProperty **fileProperty); + + [id(FSRM_DISPID_PROPERTY_BAG | 0x02), helpstring("This method is used to set a file metadata property")] + HRESULT SetFileProperty( + [in] BSTR name, + [in] BSTR value); + + [id(FSRM_DISPID_PROPERTY_BAG | 0x03), helpstring("This method is used to add a message about the file")] + HRESULT AddMessage([in] BSTR message); + + [id(FSRM_DISPID_PROPERTY_BAG | 0x04), helpstring("Gets a file stream interface to access the file content")] + HRESULT GetFileStreamInterface( + [in] FsrmFileStreamingMode accessMode, + [in] FsrmFileStreamingInterfaceType interfaceType, + [out, retval] VARIANT * pStreamInterface + ); + +}; + + +[ + object, + uuid(0e46bdbd-2402-4fed-9c30-9266e6eb2cc9), + dual, + helpstring("IFsrmPropertyBag2 Interface"), + pointer_default(unique) +] +interface IFsrmPropertyBag2 : IFsrmPropertyBag +{ + + // Methods + + [id(FSRM_DISPID_PROPERTY_BAG2 | 0x01), helpstring("Gets the value of the specified field from the property bag")] + HRESULT GetFieldValue( + [in] FsrmPropertyBagField field, + [out, retval] VARIANT * value + ); + + [id(FSRM_DISPID_PROPERTY_BAG2 | 0x02), helpstring("Gets the set of untrusted in-file properties")] + HRESULT GetUntrustedInFileProperties( + [out, retval] IFsrmCollection ** props + ); + +}; + + +[ + object, + uuid(b7907906-2b02-4cb5-84a9-fdf54613d6cd), + dual, + helpstring("IFsrmPipelineModuleImplementation Interface"), + pointer_default(unique) +] +interface IFsrmPipelineModuleImplementation : IDispatch +{ + + // Methods + + [id(FSRM_DISPID_PIPELINE_MODULE_IMPLEMENTATION | 0x01), helpstring("This method is used to initialize the pipeline module")] + HRESULT OnLoad( + [in] IFsrmPipelineModuleDefinition *moduleDefinition, + [out] IFsrmPipelineModuleConnector **moduleConnector); + + [id(FSRM_DISPID_PIPELINE_MODULE_IMPLEMENTATION | 0x02), helpstring("This method is used to tell the module to perform any cleanup tasks")] + HRESULT OnUnload(); + +}; + + +[ + object, + uuid(4c968fc6-6edb-4051-9c18-73b7291ae106), + dual, + helpstring("IFsrmClassifierModuleImplementation Interface"), + pointer_default(unique) +] +interface IFsrmClassifierModuleImplementation : IFsrmPipelineModuleImplementation +{ + cpp_quote("#define FsrmNeverModified ((ULONGLONG) 0x0000000000000000ui64)") + cpp_quote("#define FsrmAlwaysModified ((ULONGLONG) 0xFFFFFFFFFFFFFFFFui64)") + + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_CLASSIFIER_MODULE_IMPLEMENTATION | 0x01)), helpstring("This property contains the last time the classifier's internal rules were modified as a 64-bit FILETIME")] + HRESULT LastModified([out, retval] VARIANT *lastModified); + + + // Methods + + [id(FSRM_DISPID_CLASSIFIER_MODULE_IMPLEMENTATION | 0x01), helpstring("This method is used to tell the classifier the collection of rules and relevant property definitions it should expect to process")] + HRESULT UseRulesAndDefinitions( + [in] IFsrmCollection *rules, + [in] IFsrmCollection *propertyDefinitions); + + [id(FSRM_DISPID_CLASSIFIER_MODULE_IMPLEMENTATION | 0x02), helpstring("This method is used to tell the classifier to prepare for processing a file with the specified property bag")] + HRESULT OnBeginFile([in] IFsrmPropertyBag *propertyBag, + [in] SAFEARRAY(VARIANT) arrayRuleIds); + + [id(FSRM_DISPID_CLASSIFIER_MODULE_IMPLEMENTATION | 0x03), helpstring("This method is used to ask the classifier whether the specified property value applies to the file")] + HRESULT DoesPropertyValueApply( + [in] BSTR property, + [in] BSTR value, + [out] VARIANT_BOOL *applyValue, + [in] FSRM_OBJECT_ID idRule, + [in] FSRM_OBJECT_ID idPropDef); + + [id(FSRM_DISPID_CLASSIFIER_MODULE_IMPLEMENTATION | 0x04), helpstring("This method is used to ask the classifier what value should be applied for the specified property of the file")] + HRESULT GetPropertyValueToApply( + [in] BSTR property, + [out] BSTR *value, + [in] FSRM_OBJECT_ID idRule, + [in] FSRM_OBJECT_ID idPropDef); + + [id(FSRM_DISPID_CLASSIFIER_MODULE_IMPLEMENTATION | 0x05), helpstring("This method is used to tell the classifier to perform any cleanup after processing a file")] + HRESULT OnEndFile(); + +}; + + +[ + object, + uuid(0af4a0da-895a-4e50-8712-a96724bcec64), + dual, + helpstring("IFsrmStorageModuleImplementation Interface"), + pointer_default(unique) +] +interface IFsrmStorageModuleImplementation : IFsrmPipelineModuleImplementation +{ + + // Methods + + [id(FSRM_DISPID_STORAGE_MODULE_IMPLEMENTATION | 0x01), helpstring("This method is used to tell the storage module the collection property definitions FSRM recognizes")] + HRESULT UseDefinitions([in] IFsrmCollection *propertyDefinitions); + + [id(FSRM_DISPID_STORAGE_MODULE_IMPLEMENTATION | 0x02), helpstring("This method is used to tell the storage module to load all properties")] + HRESULT LoadProperties([in] IFsrmPropertyBag *propertyBag); + + [id(FSRM_DISPID_STORAGE_MODULE_IMPLEMENTATION | 0x03), helpstring("This method is used to tell the storage module to save all properties")] + HRESULT SaveProperties([in] IFsrmPropertyBag *propertyBag); + +}; + + +[ + object, + uuid(c16014f3-9aa1-46b3-b0a7-ab146eb205f2), + dual, + helpstring("IFsrmPipelineModuleConnector Interface"), + pointer_default(unique) +] +interface IFsrmPipelineModuleConnector : IDispatch +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_CONNECTOR | 0x01)), helpstring("Get the module implementation")] + HRESULT ModuleImplementation([out, retval] IFsrmPipelineModuleImplementation **pipelineModuleImplementation); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_CONNECTOR | 0x02)), helpstring("Get the module name")] + HRESULT ModuleName([out, retval] BSTR *userName); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_CONNECTOR | 0x03)), helpstring("Get the module hosting process user account")] + HRESULT HostingUserAccount([out, retval] BSTR *userAccount); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PIPELINE_MODULE_CONNECTOR | 0x04)), helpstring("Get the module hosting process PID")] + HRESULT HostingProcessPid([out, retval] long *pid); + + + // Methods + + [id(FSRM_DISPID_PIPELINE_MODULE_CONNECTOR | 0x01), helpstring("This method is used to bind the pipeline module implementation")] + HRESULT Bind( + [in] IFsrmPipelineModuleDefinition *moduleDefinition, + [in] IFsrmPipelineModuleImplementation *moduleImplementation); + +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmquota.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmquota.h new file mode 100644 index 0000000000000000000000000000000000000000..eac58d038ed903419464a6447457cd9d69deb824 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmquota.h @@ -0,0 +1,2844 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __fsrmquota_h__ +#define __fsrmquota_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFsrmQuotaBase_FWD_DEFINED__ +#define __IFsrmQuotaBase_FWD_DEFINED__ +typedef interface IFsrmQuotaBase IFsrmQuotaBase; + +#endif /* __IFsrmQuotaBase_FWD_DEFINED__ */ + + +#ifndef __IFsrmQuotaObject_FWD_DEFINED__ +#define __IFsrmQuotaObject_FWD_DEFINED__ +typedef interface IFsrmQuotaObject IFsrmQuotaObject; + +#endif /* __IFsrmQuotaObject_FWD_DEFINED__ */ + + +#ifndef __IFsrmQuota_FWD_DEFINED__ +#define __IFsrmQuota_FWD_DEFINED__ +typedef interface IFsrmQuota IFsrmQuota; + +#endif /* __IFsrmQuota_FWD_DEFINED__ */ + + +#ifndef __IFsrmAutoApplyQuota_FWD_DEFINED__ +#define __IFsrmAutoApplyQuota_FWD_DEFINED__ +typedef interface IFsrmAutoApplyQuota IFsrmAutoApplyQuota; + +#endif /* __IFsrmAutoApplyQuota_FWD_DEFINED__ */ + + +#ifndef __IFsrmQuotaManager_FWD_DEFINED__ +#define __IFsrmQuotaManager_FWD_DEFINED__ +typedef interface IFsrmQuotaManager IFsrmQuotaManager; + +#endif /* __IFsrmQuotaManager_FWD_DEFINED__ */ + + +#ifndef __IFsrmQuotaManagerEx_FWD_DEFINED__ +#define __IFsrmQuotaManagerEx_FWD_DEFINED__ +typedef interface IFsrmQuotaManagerEx IFsrmQuotaManagerEx; + +#endif /* __IFsrmQuotaManagerEx_FWD_DEFINED__ */ + + +#ifndef __IFsrmQuotaTemplate_FWD_DEFINED__ +#define __IFsrmQuotaTemplate_FWD_DEFINED__ +typedef interface IFsrmQuotaTemplate IFsrmQuotaTemplate; + +#endif /* __IFsrmQuotaTemplate_FWD_DEFINED__ */ + + +#ifndef __IFsrmQuotaTemplateImported_FWD_DEFINED__ +#define __IFsrmQuotaTemplateImported_FWD_DEFINED__ +typedef interface IFsrmQuotaTemplateImported IFsrmQuotaTemplateImported; + +#endif /* __IFsrmQuotaTemplateImported_FWD_DEFINED__ */ + + +#ifndef __IFsrmQuotaTemplateManager_FWD_DEFINED__ +#define __IFsrmQuotaTemplateManager_FWD_DEFINED__ +typedef interface IFsrmQuotaTemplateManager IFsrmQuotaTemplateManager; + +#endif /* __IFsrmQuotaTemplateManager_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "fsrmenums.h" +#include "fsrm.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_fsrmquota_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + + +#define FSRM_DISPID_QUOTA_BASE ( ( FSRM_DISPID_FEATURE_QUOTA | 0x100000 ) ) + +#define FSRM_DISPID_QUOTA_OBJECT ( ( FSRM_DISPID_QUOTA_BASE | 0x10000 ) ) + +#define FSRM_DISPID_QUOTA ( ( FSRM_DISPID_QUOTA_OBJECT | 0x1000 ) ) + +#define FSRM_DISPID_AUTOAPPLYQUOTA ( ( FSRM_DISPID_QUOTA_OBJECT | 0x2000 ) ) + +#define FSRM_DISPID_QUOTA_TEMPLATE ( ( FSRM_DISPID_QUOTA_BASE | 0x20000 ) ) + +#define FSRM_DISPID_QUOTA_TEMPLATE_IMPORTED ( ( FSRM_DISPID_QUOTA_TEMPLATE | 0x1000 ) ) + +#define FSRM_DISPID_QUOTA_MANAGER ( ( FSRM_DISPID_FEATURE_QUOTA | 0x200000 ) ) + +#define FSRM_DISPID_QUOTA_TEMPLATE_MANAGER ( ( FSRM_DISPID_FEATURE_QUOTA | 0x300000 ) ) + +#define FSRM_DISPID_QUOTA_MANAGER_EX ( ( FSRM_DISPID_FEATURE_QUOTA | 0x400000 ) ) + +typedef long FSRM_QUOTA_THRESHOLD; + +#define FsrmMaxNumberThresholds ( 16 ) + +#define FsrmMinThresholdValue ( 1 ) + +#define FsrmMaxThresholdValue ( 250 ) + +#define FsrmMinQuotaLimit ( 1024 ) + +#define FsrmMaxExcludeFolders ( 32 ) + + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmquota_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmquota_0000_0000_v0_0_s_ifspec; + +#ifndef __IFsrmQuotaBase_INTERFACE_DEFINED__ +#define __IFsrmQuotaBase_INTERFACE_DEFINED__ + +/* interface IFsrmQuotaBase */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmQuotaBase; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1568a795-3924-4118-b74b-68d8f0fa5daf") + IFsrmQuotaBase : public IFsrmObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_QuotaLimit( + /* [retval][out] */ __RPC__out VARIANT *quotaLimit) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_QuotaLimit( + /* [in] */ VARIANT quotaLimit) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_QuotaFlags( + /* [retval][out] */ __RPC__out long *quotaFlags) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_QuotaFlags( + /* [in] */ long quotaFlags) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Thresholds( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *thresholds) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddThreshold( + /* [in] */ FSRM_QUOTA_THRESHOLD threshold) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteThreshold( + /* [in] */ FSRM_QUOTA_THRESHOLD threshold) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ModifyThreshold( + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FSRM_QUOTA_THRESHOLD newThreshold) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateThresholdAction( + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumThresholdActions( + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmQuotaBaseVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmQuotaBase * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmQuotaBase * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmQuotaBase * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmQuotaBase * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmQuotaBase * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmQuotaBase * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmQuotaBase * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmQuotaBase * This); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaLimit )( + __RPC__in IFsrmQuotaBase * This, + /* [retval][out] */ __RPC__out VARIANT *quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaLimit )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ VARIANT quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaFlags )( + __RPC__in IFsrmQuotaBase * This, + /* [retval][out] */ __RPC__out long *quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaFlags )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ long quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_Thresholds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Thresholds )( + __RPC__in IFsrmQuotaBase * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *thresholds); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, AddThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddThreshold )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, DeleteThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteThreshold )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, ModifyThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ModifyThreshold )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FSRM_QUOTA_THRESHOLD newThreshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, CreateThresholdAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateThresholdAction )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, EnumThresholdActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumThresholdActions )( + __RPC__in IFsrmQuotaBase * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + END_INTERFACE + } IFsrmQuotaBaseVtbl; + + interface IFsrmQuotaBase + { + CONST_VTBL struct IFsrmQuotaBaseVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmQuotaBase_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmQuotaBase_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmQuotaBase_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmQuotaBase_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmQuotaBase_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmQuotaBase_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmQuotaBase_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmQuotaBase_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmQuotaBase_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmQuotaBase_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmQuotaBase_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmQuotaBase_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmQuotaBase_get_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> get_QuotaLimit(This,quotaLimit) ) + +#define IFsrmQuotaBase_put_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> put_QuotaLimit(This,quotaLimit) ) + +#define IFsrmQuotaBase_get_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> get_QuotaFlags(This,quotaFlags) ) + +#define IFsrmQuotaBase_put_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> put_QuotaFlags(This,quotaFlags) ) + +#define IFsrmQuotaBase_get_Thresholds(This,thresholds) \ + ( (This)->lpVtbl -> get_Thresholds(This,thresholds) ) + +#define IFsrmQuotaBase_AddThreshold(This,threshold) \ + ( (This)->lpVtbl -> AddThreshold(This,threshold) ) + +#define IFsrmQuotaBase_DeleteThreshold(This,threshold) \ + ( (This)->lpVtbl -> DeleteThreshold(This,threshold) ) + +#define IFsrmQuotaBase_ModifyThreshold(This,threshold,newThreshold) \ + ( (This)->lpVtbl -> ModifyThreshold(This,threshold,newThreshold) ) + +#define IFsrmQuotaBase_CreateThresholdAction(This,threshold,actionType,action) \ + ( (This)->lpVtbl -> CreateThresholdAction(This,threshold,actionType,action) ) + +#define IFsrmQuotaBase_EnumThresholdActions(This,threshold,actions) \ + ( (This)->lpVtbl -> EnumThresholdActions(This,threshold,actions) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmQuotaBase_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmQuotaObject_INTERFACE_DEFINED__ +#define __IFsrmQuotaObject_INTERFACE_DEFINED__ + +/* interface IFsrmQuotaObject */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmQuotaObject; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("42dc3511-61d5-48ae-b6dc-59fc00c0a8d6") + IFsrmQuotaObject : public IFsrmQuotaBase + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *path) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UserSid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *userSid) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UserAccount( + /* [retval][out] */ __RPC__deref_out_opt BSTR *userAccount) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SourceTemplateName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *quotaTemplateName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MatchesSourceTemplate( + /* [retval][out] */ __RPC__out VARIANT_BOOL *matches) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ApplyTemplate( + /* [in] */ __RPC__in BSTR quotaTemplateName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmQuotaObjectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmQuotaObject * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmQuotaObject * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmQuotaObject * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmQuotaObject * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmQuotaObject * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmQuotaObject * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmQuotaObject * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmQuotaObject * This); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaLimit )( + __RPC__in IFsrmQuotaObject * This, + /* [retval][out] */ __RPC__out VARIANT *quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaLimit )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ VARIANT quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaFlags )( + __RPC__in IFsrmQuotaObject * This, + /* [retval][out] */ __RPC__out long *quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaFlags )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ long quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_Thresholds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Thresholds )( + __RPC__in IFsrmQuotaObject * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *thresholds); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, AddThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddThreshold )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, DeleteThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteThreshold )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, ModifyThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ModifyThreshold )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FSRM_QUOTA_THRESHOLD newThreshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, CreateThresholdAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateThresholdAction )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, EnumThresholdActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumThresholdActions )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IFsrmQuotaObject * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_UserSid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSid )( + __RPC__in IFsrmQuotaObject * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *userSid); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_UserAccount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserAccount )( + __RPC__in IFsrmQuotaObject * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *userAccount); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_SourceTemplateName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceTemplateName )( + __RPC__in IFsrmQuotaObject * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *quotaTemplateName); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_MatchesSourceTemplate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MatchesSourceTemplate )( + __RPC__in IFsrmQuotaObject * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *matches); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, ApplyTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ApplyTemplate )( + __RPC__in IFsrmQuotaObject * This, + /* [in] */ __RPC__in BSTR quotaTemplateName); + + END_INTERFACE + } IFsrmQuotaObjectVtbl; + + interface IFsrmQuotaObject + { + CONST_VTBL struct IFsrmQuotaObjectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmQuotaObject_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmQuotaObject_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmQuotaObject_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmQuotaObject_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmQuotaObject_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmQuotaObject_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmQuotaObject_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmQuotaObject_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmQuotaObject_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmQuotaObject_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmQuotaObject_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmQuotaObject_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmQuotaObject_get_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> get_QuotaLimit(This,quotaLimit) ) + +#define IFsrmQuotaObject_put_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> put_QuotaLimit(This,quotaLimit) ) + +#define IFsrmQuotaObject_get_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> get_QuotaFlags(This,quotaFlags) ) + +#define IFsrmQuotaObject_put_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> put_QuotaFlags(This,quotaFlags) ) + +#define IFsrmQuotaObject_get_Thresholds(This,thresholds) \ + ( (This)->lpVtbl -> get_Thresholds(This,thresholds) ) + +#define IFsrmQuotaObject_AddThreshold(This,threshold) \ + ( (This)->lpVtbl -> AddThreshold(This,threshold) ) + +#define IFsrmQuotaObject_DeleteThreshold(This,threshold) \ + ( (This)->lpVtbl -> DeleteThreshold(This,threshold) ) + +#define IFsrmQuotaObject_ModifyThreshold(This,threshold,newThreshold) \ + ( (This)->lpVtbl -> ModifyThreshold(This,threshold,newThreshold) ) + +#define IFsrmQuotaObject_CreateThresholdAction(This,threshold,actionType,action) \ + ( (This)->lpVtbl -> CreateThresholdAction(This,threshold,actionType,action) ) + +#define IFsrmQuotaObject_EnumThresholdActions(This,threshold,actions) \ + ( (This)->lpVtbl -> EnumThresholdActions(This,threshold,actions) ) + + +#define IFsrmQuotaObject_get_Path(This,path) \ + ( (This)->lpVtbl -> get_Path(This,path) ) + +#define IFsrmQuotaObject_get_UserSid(This,userSid) \ + ( (This)->lpVtbl -> get_UserSid(This,userSid) ) + +#define IFsrmQuotaObject_get_UserAccount(This,userAccount) \ + ( (This)->lpVtbl -> get_UserAccount(This,userAccount) ) + +#define IFsrmQuotaObject_get_SourceTemplateName(This,quotaTemplateName) \ + ( (This)->lpVtbl -> get_SourceTemplateName(This,quotaTemplateName) ) + +#define IFsrmQuotaObject_get_MatchesSourceTemplate(This,matches) \ + ( (This)->lpVtbl -> get_MatchesSourceTemplate(This,matches) ) + +#define IFsrmQuotaObject_ApplyTemplate(This,quotaTemplateName) \ + ( (This)->lpVtbl -> ApplyTemplate(This,quotaTemplateName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmQuotaObject_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmQuota_INTERFACE_DEFINED__ +#define __IFsrmQuota_INTERFACE_DEFINED__ + +/* interface IFsrmQuota */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmQuota; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("377f739d-9647-4b8e-97d2-5ffce6d759cd") + IFsrmQuota : public IFsrmQuotaObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_QuotaUsed( + /* [retval][out] */ __RPC__out VARIANT *used) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_QuotaPeakUsage( + /* [retval][out] */ __RPC__out VARIANT *peakUsage) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_QuotaPeakUsageTime( + /* [retval][out] */ __RPC__out DATE *peakUsageDateTime) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ResetPeakUsage( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RefreshUsageProperties( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmQuotaVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmQuota * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmQuota * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmQuota * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmQuota * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmQuota * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmQuota * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmQuota * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmQuota * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmQuota * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmQuota * This); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaLimit )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__out VARIANT *quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaLimit )( + __RPC__in IFsrmQuota * This, + /* [in] */ VARIANT quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaFlags )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__out long *quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaFlags )( + __RPC__in IFsrmQuota * This, + /* [in] */ long quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_Thresholds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Thresholds )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *thresholds); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, AddThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddThreshold )( + __RPC__in IFsrmQuota * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, DeleteThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteThreshold )( + __RPC__in IFsrmQuota * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, ModifyThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ModifyThreshold )( + __RPC__in IFsrmQuota * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FSRM_QUOTA_THRESHOLD newThreshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, CreateThresholdAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateThresholdAction )( + __RPC__in IFsrmQuota * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, EnumThresholdActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumThresholdActions )( + __RPC__in IFsrmQuota * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_UserSid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSid )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *userSid); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_UserAccount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserAccount )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *userAccount); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_SourceTemplateName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceTemplateName )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *quotaTemplateName); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_MatchesSourceTemplate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MatchesSourceTemplate )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *matches); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, ApplyTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ApplyTemplate )( + __RPC__in IFsrmQuota * This, + /* [in] */ __RPC__in BSTR quotaTemplateName); + + DECLSPEC_XFGVIRT(IFsrmQuota, get_QuotaUsed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaUsed )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__out VARIANT *used); + + DECLSPEC_XFGVIRT(IFsrmQuota, get_QuotaPeakUsage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaPeakUsage )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__out VARIANT *peakUsage); + + DECLSPEC_XFGVIRT(IFsrmQuota, get_QuotaPeakUsageTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaPeakUsageTime )( + __RPC__in IFsrmQuota * This, + /* [retval][out] */ __RPC__out DATE *peakUsageDateTime); + + DECLSPEC_XFGVIRT(IFsrmQuota, ResetPeakUsage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ResetPeakUsage )( + __RPC__in IFsrmQuota * This); + + DECLSPEC_XFGVIRT(IFsrmQuota, RefreshUsageProperties) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RefreshUsageProperties )( + __RPC__in IFsrmQuota * This); + + END_INTERFACE + } IFsrmQuotaVtbl; + + interface IFsrmQuota + { + CONST_VTBL struct IFsrmQuotaVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmQuota_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmQuota_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmQuota_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmQuota_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmQuota_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmQuota_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmQuota_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmQuota_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmQuota_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmQuota_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmQuota_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmQuota_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmQuota_get_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> get_QuotaLimit(This,quotaLimit) ) + +#define IFsrmQuota_put_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> put_QuotaLimit(This,quotaLimit) ) + +#define IFsrmQuota_get_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> get_QuotaFlags(This,quotaFlags) ) + +#define IFsrmQuota_put_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> put_QuotaFlags(This,quotaFlags) ) + +#define IFsrmQuota_get_Thresholds(This,thresholds) \ + ( (This)->lpVtbl -> get_Thresholds(This,thresholds) ) + +#define IFsrmQuota_AddThreshold(This,threshold) \ + ( (This)->lpVtbl -> AddThreshold(This,threshold) ) + +#define IFsrmQuota_DeleteThreshold(This,threshold) \ + ( (This)->lpVtbl -> DeleteThreshold(This,threshold) ) + +#define IFsrmQuota_ModifyThreshold(This,threshold,newThreshold) \ + ( (This)->lpVtbl -> ModifyThreshold(This,threshold,newThreshold) ) + +#define IFsrmQuota_CreateThresholdAction(This,threshold,actionType,action) \ + ( (This)->lpVtbl -> CreateThresholdAction(This,threshold,actionType,action) ) + +#define IFsrmQuota_EnumThresholdActions(This,threshold,actions) \ + ( (This)->lpVtbl -> EnumThresholdActions(This,threshold,actions) ) + + +#define IFsrmQuota_get_Path(This,path) \ + ( (This)->lpVtbl -> get_Path(This,path) ) + +#define IFsrmQuota_get_UserSid(This,userSid) \ + ( (This)->lpVtbl -> get_UserSid(This,userSid) ) + +#define IFsrmQuota_get_UserAccount(This,userAccount) \ + ( (This)->lpVtbl -> get_UserAccount(This,userAccount) ) + +#define IFsrmQuota_get_SourceTemplateName(This,quotaTemplateName) \ + ( (This)->lpVtbl -> get_SourceTemplateName(This,quotaTemplateName) ) + +#define IFsrmQuota_get_MatchesSourceTemplate(This,matches) \ + ( (This)->lpVtbl -> get_MatchesSourceTemplate(This,matches) ) + +#define IFsrmQuota_ApplyTemplate(This,quotaTemplateName) \ + ( (This)->lpVtbl -> ApplyTemplate(This,quotaTemplateName) ) + + +#define IFsrmQuota_get_QuotaUsed(This,used) \ + ( (This)->lpVtbl -> get_QuotaUsed(This,used) ) + +#define IFsrmQuota_get_QuotaPeakUsage(This,peakUsage) \ + ( (This)->lpVtbl -> get_QuotaPeakUsage(This,peakUsage) ) + +#define IFsrmQuota_get_QuotaPeakUsageTime(This,peakUsageDateTime) \ + ( (This)->lpVtbl -> get_QuotaPeakUsageTime(This,peakUsageDateTime) ) + +#define IFsrmQuota_ResetPeakUsage(This) \ + ( (This)->lpVtbl -> ResetPeakUsage(This) ) + +#define IFsrmQuota_RefreshUsageProperties(This) \ + ( (This)->lpVtbl -> RefreshUsageProperties(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmQuota_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmAutoApplyQuota_INTERFACE_DEFINED__ +#define __IFsrmAutoApplyQuota_INTERFACE_DEFINED__ + +/* interface IFsrmAutoApplyQuota */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmAutoApplyQuota; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f82e5729-6aba-4740-bfc7-c7f58f75fb7b") + IFsrmAutoApplyQuota : public IFsrmQuotaObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExcludeFolders( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *folders) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ExcludeFolders( + /* [in] */ __RPC__in SAFEARRAY * folders) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CommitAndUpdateDerived( + /* [in] */ FsrmCommitOptions commitOptions, + /* [in] */ FsrmTemplateApplyOptions applyOptions, + /* [retval][out] */ __RPC__deref_out_opt IFsrmDerivedObjectsResult **derivedObjectsResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmAutoApplyQuotaVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmAutoApplyQuota * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmAutoApplyQuota * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmAutoApplyQuota * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmAutoApplyQuota * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmAutoApplyQuota * This); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaLimit )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__out VARIANT *quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaLimit )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ VARIANT quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaFlags )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__out long *quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaFlags )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ long quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_Thresholds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Thresholds )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *thresholds); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, AddThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddThreshold )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, DeleteThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteThreshold )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, ModifyThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ModifyThreshold )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FSRM_QUOTA_THRESHOLD newThreshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, CreateThresholdAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateThresholdAction )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, EnumThresholdActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumThresholdActions )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_UserSid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSid )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *userSid); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_UserAccount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserAccount )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *userAccount); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_SourceTemplateName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceTemplateName )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *quotaTemplateName); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, get_MatchesSourceTemplate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MatchesSourceTemplate )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *matches); + + DECLSPEC_XFGVIRT(IFsrmQuotaObject, ApplyTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ApplyTemplate )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ __RPC__in BSTR quotaTemplateName); + + DECLSPEC_XFGVIRT(IFsrmAutoApplyQuota, get_ExcludeFolders) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExcludeFolders )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *folders); + + DECLSPEC_XFGVIRT(IFsrmAutoApplyQuota, put_ExcludeFolders) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExcludeFolders )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ __RPC__in SAFEARRAY * folders); + + DECLSPEC_XFGVIRT(IFsrmAutoApplyQuota, CommitAndUpdateDerived) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CommitAndUpdateDerived )( + __RPC__in IFsrmAutoApplyQuota * This, + /* [in] */ FsrmCommitOptions commitOptions, + /* [in] */ FsrmTemplateApplyOptions applyOptions, + /* [retval][out] */ __RPC__deref_out_opt IFsrmDerivedObjectsResult **derivedObjectsResult); + + END_INTERFACE + } IFsrmAutoApplyQuotaVtbl; + + interface IFsrmAutoApplyQuota + { + CONST_VTBL struct IFsrmAutoApplyQuotaVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmAutoApplyQuota_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmAutoApplyQuota_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmAutoApplyQuota_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmAutoApplyQuota_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmAutoApplyQuota_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmAutoApplyQuota_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmAutoApplyQuota_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmAutoApplyQuota_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmAutoApplyQuota_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmAutoApplyQuota_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmAutoApplyQuota_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmAutoApplyQuota_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmAutoApplyQuota_get_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> get_QuotaLimit(This,quotaLimit) ) + +#define IFsrmAutoApplyQuota_put_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> put_QuotaLimit(This,quotaLimit) ) + +#define IFsrmAutoApplyQuota_get_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> get_QuotaFlags(This,quotaFlags) ) + +#define IFsrmAutoApplyQuota_put_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> put_QuotaFlags(This,quotaFlags) ) + +#define IFsrmAutoApplyQuota_get_Thresholds(This,thresholds) \ + ( (This)->lpVtbl -> get_Thresholds(This,thresholds) ) + +#define IFsrmAutoApplyQuota_AddThreshold(This,threshold) \ + ( (This)->lpVtbl -> AddThreshold(This,threshold) ) + +#define IFsrmAutoApplyQuota_DeleteThreshold(This,threshold) \ + ( (This)->lpVtbl -> DeleteThreshold(This,threshold) ) + +#define IFsrmAutoApplyQuota_ModifyThreshold(This,threshold,newThreshold) \ + ( (This)->lpVtbl -> ModifyThreshold(This,threshold,newThreshold) ) + +#define IFsrmAutoApplyQuota_CreateThresholdAction(This,threshold,actionType,action) \ + ( (This)->lpVtbl -> CreateThresholdAction(This,threshold,actionType,action) ) + +#define IFsrmAutoApplyQuota_EnumThresholdActions(This,threshold,actions) \ + ( (This)->lpVtbl -> EnumThresholdActions(This,threshold,actions) ) + + +#define IFsrmAutoApplyQuota_get_Path(This,path) \ + ( (This)->lpVtbl -> get_Path(This,path) ) + +#define IFsrmAutoApplyQuota_get_UserSid(This,userSid) \ + ( (This)->lpVtbl -> get_UserSid(This,userSid) ) + +#define IFsrmAutoApplyQuota_get_UserAccount(This,userAccount) \ + ( (This)->lpVtbl -> get_UserAccount(This,userAccount) ) + +#define IFsrmAutoApplyQuota_get_SourceTemplateName(This,quotaTemplateName) \ + ( (This)->lpVtbl -> get_SourceTemplateName(This,quotaTemplateName) ) + +#define IFsrmAutoApplyQuota_get_MatchesSourceTemplate(This,matches) \ + ( (This)->lpVtbl -> get_MatchesSourceTemplate(This,matches) ) + +#define IFsrmAutoApplyQuota_ApplyTemplate(This,quotaTemplateName) \ + ( (This)->lpVtbl -> ApplyTemplate(This,quotaTemplateName) ) + + +#define IFsrmAutoApplyQuota_get_ExcludeFolders(This,folders) \ + ( (This)->lpVtbl -> get_ExcludeFolders(This,folders) ) + +#define IFsrmAutoApplyQuota_put_ExcludeFolders(This,folders) \ + ( (This)->lpVtbl -> put_ExcludeFolders(This,folders) ) + +#define IFsrmAutoApplyQuota_CommitAndUpdateDerived(This,commitOptions,applyOptions,derivedObjectsResult) \ + ( (This)->lpVtbl -> CommitAndUpdateDerived(This,commitOptions,applyOptions,derivedObjectsResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmAutoApplyQuota_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmQuotaManager_INTERFACE_DEFINED__ +#define __IFsrmQuotaManager_INTERFACE_DEFINED__ + +/* interface IFsrmQuotaManager */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmQuotaManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8bb68c7d-19d8-4ffb-809e-be4fc1734014") + IFsrmQuotaManager : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActionVariables( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *variables) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActionVariableDescriptions( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *descriptions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateQuota( + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuota **quota) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateAutoApplyQuota( + /* [in] */ __RPC__in BSTR quotaTemplateName, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAutoApplyQuota **quota) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetQuota( + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuota **quota) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetAutoApplyQuota( + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAutoApplyQuota **quota) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetRestrictiveQuota( + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuota **quota) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumQuotas( + /* [defaultvalue][in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotas) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumAutoApplyQuotas( + /* [defaultvalue][in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotas) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumEffectiveQuotas( + /* [in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotas) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Scan( + /* [in] */ __RPC__in BSTR strPath) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateQuotaCollection( + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **collection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmQuotaManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmQuotaManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmQuotaManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmQuotaManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmQuotaManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmQuotaManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmQuotaManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmQuotaManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, get_ActionVariables) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionVariables )( + __RPC__in IFsrmQuotaManager * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *variables); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, get_ActionVariableDescriptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionVariableDescriptions )( + __RPC__in IFsrmQuotaManager * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *descriptions); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, CreateQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateQuota )( + __RPC__in IFsrmQuotaManager * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuota **quota); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, CreateAutoApplyQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateAutoApplyQuota )( + __RPC__in IFsrmQuotaManager * This, + /* [in] */ __RPC__in BSTR quotaTemplateName, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAutoApplyQuota **quota); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, GetQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetQuota )( + __RPC__in IFsrmQuotaManager * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuota **quota); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, GetAutoApplyQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetAutoApplyQuota )( + __RPC__in IFsrmQuotaManager * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAutoApplyQuota **quota); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, GetRestrictiveQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetRestrictiveQuota )( + __RPC__in IFsrmQuotaManager * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuota **quota); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, EnumQuotas) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumQuotas )( + __RPC__in IFsrmQuotaManager * This, + /* [defaultvalue][in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotas); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, EnumAutoApplyQuotas) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumAutoApplyQuotas )( + __RPC__in IFsrmQuotaManager * This, + /* [defaultvalue][in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotas); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, EnumEffectiveQuotas) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumEffectiveQuotas )( + __RPC__in IFsrmQuotaManager * This, + /* [in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotas); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, Scan) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Scan )( + __RPC__in IFsrmQuotaManager * This, + /* [in] */ __RPC__in BSTR strPath); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, CreateQuotaCollection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateQuotaCollection )( + __RPC__in IFsrmQuotaManager * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **collection); + + END_INTERFACE + } IFsrmQuotaManagerVtbl; + + interface IFsrmQuotaManager + { + CONST_VTBL struct IFsrmQuotaManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmQuotaManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmQuotaManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmQuotaManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmQuotaManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmQuotaManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmQuotaManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmQuotaManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmQuotaManager_get_ActionVariables(This,variables) \ + ( (This)->lpVtbl -> get_ActionVariables(This,variables) ) + +#define IFsrmQuotaManager_get_ActionVariableDescriptions(This,descriptions) \ + ( (This)->lpVtbl -> get_ActionVariableDescriptions(This,descriptions) ) + +#define IFsrmQuotaManager_CreateQuota(This,path,quota) \ + ( (This)->lpVtbl -> CreateQuota(This,path,quota) ) + +#define IFsrmQuotaManager_CreateAutoApplyQuota(This,quotaTemplateName,path,quota) \ + ( (This)->lpVtbl -> CreateAutoApplyQuota(This,quotaTemplateName,path,quota) ) + +#define IFsrmQuotaManager_GetQuota(This,path,quota) \ + ( (This)->lpVtbl -> GetQuota(This,path,quota) ) + +#define IFsrmQuotaManager_GetAutoApplyQuota(This,path,quota) \ + ( (This)->lpVtbl -> GetAutoApplyQuota(This,path,quota) ) + +#define IFsrmQuotaManager_GetRestrictiveQuota(This,path,quota) \ + ( (This)->lpVtbl -> GetRestrictiveQuota(This,path,quota) ) + +#define IFsrmQuotaManager_EnumQuotas(This,path,options,quotas) \ + ( (This)->lpVtbl -> EnumQuotas(This,path,options,quotas) ) + +#define IFsrmQuotaManager_EnumAutoApplyQuotas(This,path,options,quotas) \ + ( (This)->lpVtbl -> EnumAutoApplyQuotas(This,path,options,quotas) ) + +#define IFsrmQuotaManager_EnumEffectiveQuotas(This,path,options,quotas) \ + ( (This)->lpVtbl -> EnumEffectiveQuotas(This,path,options,quotas) ) + +#define IFsrmQuotaManager_Scan(This,strPath) \ + ( (This)->lpVtbl -> Scan(This,strPath) ) + +#define IFsrmQuotaManager_CreateQuotaCollection(This,collection) \ + ( (This)->lpVtbl -> CreateQuotaCollection(This,collection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmQuotaManager_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmQuotaManagerEx_INTERFACE_DEFINED__ +#define __IFsrmQuotaManagerEx_INTERFACE_DEFINED__ + +/* interface IFsrmQuotaManagerEx */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmQuotaManagerEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4846cb01-d430-494f-abb4-b1054999fb09") + IFsrmQuotaManagerEx : public IFsrmQuotaManager + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsAffectedByQuota( + /* [in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__out VARIANT_BOOL *affected) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmQuotaManagerExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmQuotaManagerEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmQuotaManagerEx * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmQuotaManagerEx * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, get_ActionVariables) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionVariables )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *variables); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, get_ActionVariableDescriptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionVariableDescriptions )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *descriptions); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, CreateQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateQuota )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuota **quota); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, CreateAutoApplyQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateAutoApplyQuota )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ __RPC__in BSTR quotaTemplateName, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAutoApplyQuota **quota); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, GetQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetQuota )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuota **quota); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, GetAutoApplyQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetAutoApplyQuota )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAutoApplyQuota **quota); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, GetRestrictiveQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetRestrictiveQuota )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuota **quota); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, EnumQuotas) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumQuotas )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [defaultvalue][in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotas); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, EnumAutoApplyQuotas) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumAutoApplyQuotas )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [defaultvalue][in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotas); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, EnumEffectiveQuotas) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumEffectiveQuotas )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotas); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, Scan) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Scan )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ __RPC__in BSTR strPath); + + DECLSPEC_XFGVIRT(IFsrmQuotaManager, CreateQuotaCollection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateQuotaCollection )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **collection); + + DECLSPEC_XFGVIRT(IFsrmQuotaManagerEx, IsAffectedByQuota) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsAffectedByQuota )( + __RPC__in IFsrmQuotaManagerEx * This, + /* [in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__out VARIANT_BOOL *affected); + + END_INTERFACE + } IFsrmQuotaManagerExVtbl; + + interface IFsrmQuotaManagerEx + { + CONST_VTBL struct IFsrmQuotaManagerExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmQuotaManagerEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmQuotaManagerEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmQuotaManagerEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmQuotaManagerEx_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmQuotaManagerEx_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmQuotaManagerEx_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmQuotaManagerEx_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmQuotaManagerEx_get_ActionVariables(This,variables) \ + ( (This)->lpVtbl -> get_ActionVariables(This,variables) ) + +#define IFsrmQuotaManagerEx_get_ActionVariableDescriptions(This,descriptions) \ + ( (This)->lpVtbl -> get_ActionVariableDescriptions(This,descriptions) ) + +#define IFsrmQuotaManagerEx_CreateQuota(This,path,quota) \ + ( (This)->lpVtbl -> CreateQuota(This,path,quota) ) + +#define IFsrmQuotaManagerEx_CreateAutoApplyQuota(This,quotaTemplateName,path,quota) \ + ( (This)->lpVtbl -> CreateAutoApplyQuota(This,quotaTemplateName,path,quota) ) + +#define IFsrmQuotaManagerEx_GetQuota(This,path,quota) \ + ( (This)->lpVtbl -> GetQuota(This,path,quota) ) + +#define IFsrmQuotaManagerEx_GetAutoApplyQuota(This,path,quota) \ + ( (This)->lpVtbl -> GetAutoApplyQuota(This,path,quota) ) + +#define IFsrmQuotaManagerEx_GetRestrictiveQuota(This,path,quota) \ + ( (This)->lpVtbl -> GetRestrictiveQuota(This,path,quota) ) + +#define IFsrmQuotaManagerEx_EnumQuotas(This,path,options,quotas) \ + ( (This)->lpVtbl -> EnumQuotas(This,path,options,quotas) ) + +#define IFsrmQuotaManagerEx_EnumAutoApplyQuotas(This,path,options,quotas) \ + ( (This)->lpVtbl -> EnumAutoApplyQuotas(This,path,options,quotas) ) + +#define IFsrmQuotaManagerEx_EnumEffectiveQuotas(This,path,options,quotas) \ + ( (This)->lpVtbl -> EnumEffectiveQuotas(This,path,options,quotas) ) + +#define IFsrmQuotaManagerEx_Scan(This,strPath) \ + ( (This)->lpVtbl -> Scan(This,strPath) ) + +#define IFsrmQuotaManagerEx_CreateQuotaCollection(This,collection) \ + ( (This)->lpVtbl -> CreateQuotaCollection(This,collection) ) + + +#define IFsrmQuotaManagerEx_IsAffectedByQuota(This,path,options,affected) \ + ( (This)->lpVtbl -> IsAffectedByQuota(This,path,options,affected) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmQuotaManagerEx_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmQuotaTemplate_INTERFACE_DEFINED__ +#define __IFsrmQuotaTemplate_INTERFACE_DEFINED__ + +/* interface IFsrmQuotaTemplate */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmQuotaTemplate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a2efab31-295e-46bb-b976-e86d58b52e8b") + IFsrmQuotaTemplate : public IFsrmQuotaBase + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyTemplate( + /* [in] */ __RPC__in BSTR quotaTemplateName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CommitAndUpdateDerived( + /* [in] */ FsrmCommitOptions commitOptions, + /* [in] */ FsrmTemplateApplyOptions applyOptions, + /* [retval][out] */ __RPC__deref_out_opt IFsrmDerivedObjectsResult **derivedObjectsResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmQuotaTemplateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmQuotaTemplate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmQuotaTemplate * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmQuotaTemplate * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmQuotaTemplate * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmQuotaTemplate * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmQuotaTemplate * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmQuotaTemplate * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmQuotaTemplate * This); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaLimit )( + __RPC__in IFsrmQuotaTemplate * This, + /* [retval][out] */ __RPC__out VARIANT *quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaLimit )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ VARIANT quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaFlags )( + __RPC__in IFsrmQuotaTemplate * This, + /* [retval][out] */ __RPC__out long *quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaFlags )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ long quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_Thresholds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Thresholds )( + __RPC__in IFsrmQuotaTemplate * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *thresholds); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, AddThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddThreshold )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, DeleteThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteThreshold )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, ModifyThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ModifyThreshold )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FSRM_QUOTA_THRESHOLD newThreshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, CreateThresholdAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateThresholdAction )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, EnumThresholdActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumThresholdActions )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplate, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmQuotaTemplate * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplate, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplate, CopyTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTemplate )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ __RPC__in BSTR quotaTemplateName); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplate, CommitAndUpdateDerived) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CommitAndUpdateDerived )( + __RPC__in IFsrmQuotaTemplate * This, + /* [in] */ FsrmCommitOptions commitOptions, + /* [in] */ FsrmTemplateApplyOptions applyOptions, + /* [retval][out] */ __RPC__deref_out_opt IFsrmDerivedObjectsResult **derivedObjectsResult); + + END_INTERFACE + } IFsrmQuotaTemplateVtbl; + + interface IFsrmQuotaTemplate + { + CONST_VTBL struct IFsrmQuotaTemplateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmQuotaTemplate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmQuotaTemplate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmQuotaTemplate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmQuotaTemplate_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmQuotaTemplate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmQuotaTemplate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmQuotaTemplate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmQuotaTemplate_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmQuotaTemplate_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmQuotaTemplate_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmQuotaTemplate_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmQuotaTemplate_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmQuotaTemplate_get_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> get_QuotaLimit(This,quotaLimit) ) + +#define IFsrmQuotaTemplate_put_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> put_QuotaLimit(This,quotaLimit) ) + +#define IFsrmQuotaTemplate_get_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> get_QuotaFlags(This,quotaFlags) ) + +#define IFsrmQuotaTemplate_put_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> put_QuotaFlags(This,quotaFlags) ) + +#define IFsrmQuotaTemplate_get_Thresholds(This,thresholds) \ + ( (This)->lpVtbl -> get_Thresholds(This,thresholds) ) + +#define IFsrmQuotaTemplate_AddThreshold(This,threshold) \ + ( (This)->lpVtbl -> AddThreshold(This,threshold) ) + +#define IFsrmQuotaTemplate_DeleteThreshold(This,threshold) \ + ( (This)->lpVtbl -> DeleteThreshold(This,threshold) ) + +#define IFsrmQuotaTemplate_ModifyThreshold(This,threshold,newThreshold) \ + ( (This)->lpVtbl -> ModifyThreshold(This,threshold,newThreshold) ) + +#define IFsrmQuotaTemplate_CreateThresholdAction(This,threshold,actionType,action) \ + ( (This)->lpVtbl -> CreateThresholdAction(This,threshold,actionType,action) ) + +#define IFsrmQuotaTemplate_EnumThresholdActions(This,threshold,actions) \ + ( (This)->lpVtbl -> EnumThresholdActions(This,threshold,actions) ) + + +#define IFsrmQuotaTemplate_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmQuotaTemplate_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmQuotaTemplate_CopyTemplate(This,quotaTemplateName) \ + ( (This)->lpVtbl -> CopyTemplate(This,quotaTemplateName) ) + +#define IFsrmQuotaTemplate_CommitAndUpdateDerived(This,commitOptions,applyOptions,derivedObjectsResult) \ + ( (This)->lpVtbl -> CommitAndUpdateDerived(This,commitOptions,applyOptions,derivedObjectsResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmQuotaTemplate_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmQuotaTemplateImported_INTERFACE_DEFINED__ +#define __IFsrmQuotaTemplateImported_INTERFACE_DEFINED__ + +/* interface IFsrmQuotaTemplateImported */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmQuotaTemplateImported; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9a2bf113-a329-44cc-809a-5c00fce8da40") + IFsrmQuotaTemplateImported : public IFsrmQuotaTemplate + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OverwriteOnCommit( + /* [retval][out] */ __RPC__out VARIANT_BOOL *overwrite) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OverwriteOnCommit( + /* [in] */ VARIANT_BOOL overwrite) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmQuotaTemplateImportedVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmQuotaTemplateImported * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmQuotaTemplateImported * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmQuotaTemplateImported * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmQuotaTemplateImported * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmQuotaTemplateImported * This); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaLimit )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [retval][out] */ __RPC__out VARIANT *quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaLimit )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ VARIANT quotaLimit); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_QuotaFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_QuotaFlags )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [retval][out] */ __RPC__out long *quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, put_QuotaFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_QuotaFlags )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ long quotaFlags); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, get_Thresholds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Thresholds )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *thresholds); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, AddThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddThreshold )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, DeleteThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteThreshold )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, ModifyThreshold) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ModifyThreshold )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FSRM_QUOTA_THRESHOLD newThreshold); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, CreateThresholdAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateThresholdAction )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmQuotaBase, EnumThresholdActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumThresholdActions )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ FSRM_QUOTA_THRESHOLD threshold, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplate, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplate, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplate, CopyTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTemplate )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ __RPC__in BSTR quotaTemplateName); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplate, CommitAndUpdateDerived) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CommitAndUpdateDerived )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ FsrmCommitOptions commitOptions, + /* [in] */ FsrmTemplateApplyOptions applyOptions, + /* [retval][out] */ __RPC__deref_out_opt IFsrmDerivedObjectsResult **derivedObjectsResult); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplateImported, get_OverwriteOnCommit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OverwriteOnCommit )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *overwrite); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplateImported, put_OverwriteOnCommit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OverwriteOnCommit )( + __RPC__in IFsrmQuotaTemplateImported * This, + /* [in] */ VARIANT_BOOL overwrite); + + END_INTERFACE + } IFsrmQuotaTemplateImportedVtbl; + + interface IFsrmQuotaTemplateImported + { + CONST_VTBL struct IFsrmQuotaTemplateImportedVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmQuotaTemplateImported_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmQuotaTemplateImported_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmQuotaTemplateImported_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmQuotaTemplateImported_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmQuotaTemplateImported_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmQuotaTemplateImported_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmQuotaTemplateImported_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmQuotaTemplateImported_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmQuotaTemplateImported_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmQuotaTemplateImported_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmQuotaTemplateImported_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmQuotaTemplateImported_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmQuotaTemplateImported_get_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> get_QuotaLimit(This,quotaLimit) ) + +#define IFsrmQuotaTemplateImported_put_QuotaLimit(This,quotaLimit) \ + ( (This)->lpVtbl -> put_QuotaLimit(This,quotaLimit) ) + +#define IFsrmQuotaTemplateImported_get_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> get_QuotaFlags(This,quotaFlags) ) + +#define IFsrmQuotaTemplateImported_put_QuotaFlags(This,quotaFlags) \ + ( (This)->lpVtbl -> put_QuotaFlags(This,quotaFlags) ) + +#define IFsrmQuotaTemplateImported_get_Thresholds(This,thresholds) \ + ( (This)->lpVtbl -> get_Thresholds(This,thresholds) ) + +#define IFsrmQuotaTemplateImported_AddThreshold(This,threshold) \ + ( (This)->lpVtbl -> AddThreshold(This,threshold) ) + +#define IFsrmQuotaTemplateImported_DeleteThreshold(This,threshold) \ + ( (This)->lpVtbl -> DeleteThreshold(This,threshold) ) + +#define IFsrmQuotaTemplateImported_ModifyThreshold(This,threshold,newThreshold) \ + ( (This)->lpVtbl -> ModifyThreshold(This,threshold,newThreshold) ) + +#define IFsrmQuotaTemplateImported_CreateThresholdAction(This,threshold,actionType,action) \ + ( (This)->lpVtbl -> CreateThresholdAction(This,threshold,actionType,action) ) + +#define IFsrmQuotaTemplateImported_EnumThresholdActions(This,threshold,actions) \ + ( (This)->lpVtbl -> EnumThresholdActions(This,threshold,actions) ) + + +#define IFsrmQuotaTemplateImported_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmQuotaTemplateImported_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmQuotaTemplateImported_CopyTemplate(This,quotaTemplateName) \ + ( (This)->lpVtbl -> CopyTemplate(This,quotaTemplateName) ) + +#define IFsrmQuotaTemplateImported_CommitAndUpdateDerived(This,commitOptions,applyOptions,derivedObjectsResult) \ + ( (This)->lpVtbl -> CommitAndUpdateDerived(This,commitOptions,applyOptions,derivedObjectsResult) ) + + +#define IFsrmQuotaTemplateImported_get_OverwriteOnCommit(This,overwrite) \ + ( (This)->lpVtbl -> get_OverwriteOnCommit(This,overwrite) ) + +#define IFsrmQuotaTemplateImported_put_OverwriteOnCommit(This,overwrite) \ + ( (This)->lpVtbl -> put_OverwriteOnCommit(This,overwrite) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmQuotaTemplateImported_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmQuotaTemplateManager_INTERFACE_DEFINED__ +#define __IFsrmQuotaTemplateManager_INTERFACE_DEFINED__ + +/* interface IFsrmQuotaTemplateManager */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmQuotaTemplateManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4173ac41-172d-4d52-963c-fdc7e415f717") + IFsrmQuotaTemplateManager : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateTemplate( + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuotaTemplate **quotaTemplate) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetTemplate( + /* [defaultvalue][in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuotaTemplate **quotaTemplate) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumTemplates( + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotaTemplates) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExportTemplates( + /* [defaultvalue][in] */ __RPC__in VARIANT *quotaTemplateNamesArray, + /* [retval][out] */ __RPC__deref_out_opt BSTR *serializedQuotaTemplates) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportTemplates( + /* [in] */ __RPC__in BSTR serializedQuotaTemplates, + /* [defaultvalue][in] */ __RPC__in VARIANT *quotaTemplateNamesArray, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotaTemplates) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmQuotaTemplateManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmQuotaTemplateManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmQuotaTemplateManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmQuotaTemplateManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmQuotaTemplateManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmQuotaTemplateManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmQuotaTemplateManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmQuotaTemplateManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplateManager, CreateTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTemplate )( + __RPC__in IFsrmQuotaTemplateManager * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuotaTemplate **quotaTemplate); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplateManager, GetTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetTemplate )( + __RPC__in IFsrmQuotaTemplateManager * This, + /* [defaultvalue][in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmQuotaTemplate **quotaTemplate); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplateManager, EnumTemplates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumTemplates )( + __RPC__in IFsrmQuotaTemplateManager * This, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotaTemplates); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplateManager, ExportTemplates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExportTemplates )( + __RPC__in IFsrmQuotaTemplateManager * This, + /* [defaultvalue][in] */ __RPC__in VARIANT *quotaTemplateNamesArray, + /* [retval][out] */ __RPC__deref_out_opt BSTR *serializedQuotaTemplates); + + DECLSPEC_XFGVIRT(IFsrmQuotaTemplateManager, ImportTemplates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportTemplates )( + __RPC__in IFsrmQuotaTemplateManager * This, + /* [in] */ __RPC__in BSTR serializedQuotaTemplates, + /* [defaultvalue][in] */ __RPC__in VARIANT *quotaTemplateNamesArray, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **quotaTemplates); + + END_INTERFACE + } IFsrmQuotaTemplateManagerVtbl; + + interface IFsrmQuotaTemplateManager + { + CONST_VTBL struct IFsrmQuotaTemplateManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmQuotaTemplateManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmQuotaTemplateManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmQuotaTemplateManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmQuotaTemplateManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmQuotaTemplateManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmQuotaTemplateManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmQuotaTemplateManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmQuotaTemplateManager_CreateTemplate(This,quotaTemplate) \ + ( (This)->lpVtbl -> CreateTemplate(This,quotaTemplate) ) + +#define IFsrmQuotaTemplateManager_GetTemplate(This,name,quotaTemplate) \ + ( (This)->lpVtbl -> GetTemplate(This,name,quotaTemplate) ) + +#define IFsrmQuotaTemplateManager_EnumTemplates(This,options,quotaTemplates) \ + ( (This)->lpVtbl -> EnumTemplates(This,options,quotaTemplates) ) + +#define IFsrmQuotaTemplateManager_ExportTemplates(This,quotaTemplateNamesArray,serializedQuotaTemplates) \ + ( (This)->lpVtbl -> ExportTemplates(This,quotaTemplateNamesArray,serializedQuotaTemplates) ) + +#define IFsrmQuotaTemplateManager_ImportTemplates(This,serializedQuotaTemplates,quotaTemplateNamesArray,quotaTemplates) \ + ( (This)->lpVtbl -> ImportTemplates(This,serializedQuotaTemplates,quotaTemplateNamesArray,quotaTemplates) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmQuotaTemplateManager_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_fsrmquota_0000_0009 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmquota_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmquota_0000_0009_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmquota.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmquota.idl new file mode 100644 index 0000000000000000000000000000000000000000..f891450ffa0e9d44c36984e1318e1ee8fb48d152 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmquota.idl @@ -0,0 +1,418 @@ +////////////////////////////////////// +// Imports +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; + +import "fsrmenums.idl"; +import "fsrm.idl"; + + +////////////////////////////////////// +// Forward declarations +// + +interface IFsrmQuotaBase; +interface IFsrmQuotaObject; +interface IFsrmQuota; +interface IFsrmAutoApplyQuota; +interface IFsrmQuotaManager; +interface IFsrmQuotaTemplate; +interface IFsrmQuotaTemplateImported; +interface IFsrmQuotaTemplateManager; + + +////////////////////////////////////// +// Dispatch IDs +// + +#define FSRM_PROPERTY(x) x | FSRM_DISPID_IS_PROPERTY + +// Dispatch ID base of quota interfaces +const DISPID FSRM_DISPID_QUOTA_BASE = FSRM_DISPID_FEATURE_QUOTA | 0x100000; +const DISPID FSRM_DISPID_QUOTA_OBJECT = FSRM_DISPID_QUOTA_BASE | 0x010000; +const DISPID FSRM_DISPID_QUOTA = FSRM_DISPID_QUOTA_OBJECT | 0x001000; +const DISPID FSRM_DISPID_AUTOAPPLYQUOTA = FSRM_DISPID_QUOTA_OBJECT | 0x002000; +const DISPID FSRM_DISPID_QUOTA_TEMPLATE = FSRM_DISPID_QUOTA_BASE | 0x020000; +const DISPID FSRM_DISPID_QUOTA_TEMPLATE_IMPORTED = FSRM_DISPID_QUOTA_TEMPLATE | 0x001000; + +const DISPID FSRM_DISPID_QUOTA_MANAGER = FSRM_DISPID_FEATURE_QUOTA | 0x200000; + +const DISPID FSRM_DISPID_QUOTA_TEMPLATE_MANAGER = FSRM_DISPID_FEATURE_QUOTA | 0x300000; + +const DISPID FSRM_DISPID_QUOTA_MANAGER_EX = FSRM_DISPID_FEATURE_QUOTA | 0x400000; + + +////////////////////////////////////// +// Typedefs and enums +// + +typedef long FSRM_QUOTA_THRESHOLD; + + +////////////////////////////////////// +// Constants +// + +const ULONG FsrmMaxNumberThresholds = 16; +const ULONG FsrmMinThresholdValue = 1; +const ULONG FsrmMaxThresholdValue = 250; +const ULONG FsrmMinQuotaLimit = 1024; +const ULONG FsrmMaxExcludeFolders = 32; + + +////////////////////////////////////// +// Interfaces +// + +[ + object, + uuid(1568a795-3924-4118-b74b-68d8f0fa5daf), + dual, + helpstring("IFsrmQuotaBase Interface"), + pointer_default(unique) +] +interface IFsrmQuotaBase : IFsrmObject +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_BASE | 0x01)), helpstring("This property is the limit in bytes of the quota")] + HRESULT QuotaLimit([out, retval] VARIANT *quotaLimit); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_BASE | 0x01)), helpstring("This property is the limit in bytes of the quota")] + HRESULT QuotaLimit([in] VARIANT quotaLimit); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_BASE | 0x02)), helpstring("This property is the bit field containing flags defined in SRM_QUOTA_FLAGS ")] + HRESULT QuotaFlags([out, retval] long *quotaFlags); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_BASE | 0x02)), helpstring("This property is the bit field containing flags defined in SRM_QUOTA_FLAGS")] + HRESULT QuotaFlags([in] long quotaFlags); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_BASE | 0x03)), helpstring("This read-only property is an array of currently defined thresholds")] + HRESULT Thresholds([out, retval] SAFEARRAY(VARIANT) *thresholds); + + + // Methods + + [id(FSRM_DISPID_QUOTA_BASE | 0x01), helpstring("This method is used to add a new threshold value")] + HRESULT AddThreshold([in] FSRM_QUOTA_THRESHOLD threshold); + + [id(FSRM_DISPID_QUOTA_BASE | 0x02), helpstring("This method is used to delete a threshold value")] + HRESULT DeleteThreshold([in] FSRM_QUOTA_THRESHOLD threshold); + + [id(FSRM_DISPID_QUOTA_BASE | 0x03), helpstring("This method is used to modify a threshold value")] + HRESULT ModifyThreshold( + [in] FSRM_QUOTA_THRESHOLD threshold, + [in] FSRM_QUOTA_THRESHOLD newThreshold); + + [id(FSRM_DISPID_QUOTA_BASE | 0x04), helpstring("This method is used to create a threshold action of a specific type")] + HRESULT CreateThresholdAction( + [in] FSRM_QUOTA_THRESHOLD threshold, + [in] FsrmActionType actionType, + [out, retval] IFsrmAction **action); + + [id(FSRM_DISPID_QUOTA_BASE | 0x05), helpstring("This method is used to enumerate threshold actions")] + HRESULT EnumThresholdActions( + [in] FSRM_QUOTA_THRESHOLD threshold, + [out, retval] IFsrmCollection **actions); + +} + + +[ + object, + uuid(42dc3511-61d5-48ae-b6dc-59fc00c0a8d6), + dual, + helpstring("IFsrmQuotaObject Interface"), + pointer_default(unique) +] +interface IFsrmQuotaObject : IFsrmQuotaBase +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_OBJECT | 0x01)), helpstring("This read-only property is the Path to the object that will be charged quota")] + HRESULT Path([out, retval] BSTR *path); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_OBJECT | 0x02)), helpstring("This read-only property is the SID of the user that will be charged quota")] + HRESULT UserSid([out, retval] BSTR *userSid); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_OBJECT | 0x03)), helpstring("This read-only property is the account name of the user that will be charged quota")] + HRESULT UserAccount([out, retval] BSTR *userAccount); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_OBJECT | 0x04)), helpstring("This read-only property is the name of the template that this object originated from")] + HRESULT SourceTemplateName([out, retval] BSTR *quotaTemplateName); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_OBJECT | 0x05)), helpstring("This read-only property is whether the object matches the template it originated from")] + HRESULT MatchesSourceTemplate([out, retval] VARIANT_BOOL *matches); + + + // Methods + + [id(FSRM_DISPID_QUOTA_OBJECT | 0x01), helpstring("This method is used to copy the properties of this quota from the specified quota template")] + HRESULT ApplyTemplate([in] BSTR quotaTemplateName); + +}; + + +[ + object, + uuid(377f739d-9647-4b8e-97d2-5ffce6d759cd), + dual, + helpstring("IFsrmQuota Interface"), + pointer_default(unique) +] +interface IFsrmQuota : IFsrmQuotaObject +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA | 0x01)), helpstring("This read-only property is the number of bytes currently charged to the quota")] + HRESULT QuotaUsed([out, retval] VARIANT *used); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA | 0x02)), helpstring("This read-only property is the maximum number of bytes the quota was charged since the last time the peak usage was reset")] + HRESULT QuotaPeakUsage([out, retval] VARIANT *peakUsage); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA | 0x03)), helpstring("This read-only property is the time the peak usage occured")] + HRESULT QuotaPeakUsageTime([out, retval] DATE *peakUsageDateTime); + + + // Methods + + [id(FSRM_DISPID_QUOTA | 0x01), helpstring("This method is used to reset the peak usage mark to the number of bytes currently charged to the quota")] + HRESULT ResetPeakUsage(); + + [id(FSRM_DISPID_QUOTA | 0x02), helpstring("This method is used to refresh QuotaUsed, QuotaPeakUsage, and QuotaPeakUsageTime from the driver")] + HRESULT RefreshUsageProperties(); + +}; + + +[ + object, + uuid(f82e5729-6aba-4740-bfc7-c7f58f75fb7b), + dual, + helpstring("IFsrmAutoApplyQuota Interface"), + pointer_default(unique) +] +interface IFsrmAutoApplyQuota : IFsrmQuotaObject +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_AUTOAPPLYQUOTA | 0x01)), helpstring("This property is an array of first level subfolders to exclude from auto-quota creation")] + HRESULT ExcludeFolders([out, retval] SAFEARRAY(VARIANT) *folders); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_AUTOAPPLYQUOTA | 0x01)), helpstring("This property is an array of first level subfolders to exclude from auto-quota creation")] + HRESULT ExcludeFolders([in] SAFEARRAY(VARIANT) folders); + + + // Methods + + [id(FSRM_DISPID_AUTOAPPLYQUOTA | 0x01), helpstring("This method is used to apply the auto apply quota changes to derived quotas and commit both the derived quotas and auto apply quota changes. The resulting collection of derived quotas will be in Committing or Complete state depending on the synchronizaton option chosen. The collection of HRESULTs can be used to monitor the progress of the asynchronous quota commit operation and should be inspected for the error state of the individual object commit.")] + HRESULT CommitAndUpdateDerived( + [in] FsrmCommitOptions commitOptions, + [in] FsrmTemplateApplyOptions applyOptions, + [out, retval] IFsrmDerivedObjectsResult **derivedObjectsResult); + +}; + + +[ + object, + uuid(8bb68c7d-19d8-4ffb-809e-be4fc1734014), + dual, + helpstring("IFsrmQuotaManager Interface"), + pointer_default(unique) +] +interface IFsrmQuotaManager : IDispatch +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_MANAGER | 0x01)), helpstring("This method is used enumerate the runtime expanded variables available for quota notifications")] + HRESULT ActionVariables([out, retval] SAFEARRAY(VARIANT) *variables); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_MANAGER | 0x02)), helpstring("This method is used enumerate the descriptions of the runtime expanded variables available for quota notifications")] + HRESULT ActionVariableDescriptions([out, retval] SAFEARRAY(VARIANT) *descriptions); + + + // Methods + + [id(FSRM_DISPID_QUOTA_MANAGER | 0x01), helpstring("This method is used to create a new quota object")] + HRESULT CreateQuota( + [in] BSTR path, + [out, retval] IFsrmQuota **quota); + + [id(FSRM_DISPID_QUOTA_MANAGER | 0x02), helpstring("This method is used to create a new auto-quota object based on the given template")] + HRESULT CreateAutoApplyQuota( + [in] BSTR quotaTemplateName, + [in] BSTR path, + [out, retval] IFsrmAutoApplyQuota **quota); + + [id(FSRM_DISPID_QUOTA_MANAGER | 0x03), helpstring("This method is used to get a quota for a specific path")] + HRESULT GetQuota( + [in] BSTR path, + [out, retval] IFsrmQuota **quota); + + [id(FSRM_DISPID_QUOTA_MANAGER | 0x04), helpstring("This method is used to get an auto-quota for a specific path")] + HRESULT GetAutoApplyQuota( + [in] BSTR path, + [out, retval] IFsrmAutoApplyQuota **quota); + + [id(FSRM_DISPID_QUOTA_MANAGER | 0x05), helpstring("This method is used to get the most restricting quota for an arbitrary path")] + HRESULT GetRestrictiveQuota( + [in] BSTR path, + [out, retval] IFsrmQuota **quota); + + [id(FSRM_DISPID_QUOTA_MANAGER | 0x06), helpstring("This method is used to enumerate quotas")] + HRESULT EnumQuotas( + [in, defaultvalue(L"")] BSTR path, // supports wildcards + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCommittableCollection **quotas); + + [id(FSRM_DISPID_QUOTA_MANAGER | 0x07), helpstring("This method is used to enumerate auto-quotas")] + HRESULT EnumAutoApplyQuotas( + [in, defaultvalue(L"")] BSTR path, // supports wildcards + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCommittableCollection **quotas); + + [id(FSRM_DISPID_QUOTA_MANAGER | 0x08), helpstring("This method is used to enumerate all the quotas that affect an arbitrary path")] + HRESULT EnumEffectiveQuotas( + [in] BSTR path, + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCommittableCollection **quotas); + + [id(FSRM_DISPID_QUOTA_MANAGER | 0x09), helpstring("This method is used to start a quota scan on the directory tree underneath the specified path")] + HRESULT Scan([in] BSTR strPath); + + [id(FSRM_DISPID_QUOTA_MANAGER | 0x0A), helpstring("This method is used to create an empty quota collection")] + HRESULT CreateQuotaCollection([out, retval] IFsrmCommittableCollection **collection); + +}; + + +[ + object, + uuid(4846cb01-d430-494f-abb4-b1054999fb09), + dual, + helpstring("IFsrmQuotaManagerEx Interface"), + pointer_default(unique) +] +interface IFsrmQuotaManagerEx : IFsrmQuotaManager +{ + [id(FSRM_DISPID_QUOTA_MANAGER_EX | 0x01), helpstring("This method is used to check whether a given path is subject to quota")] + HRESULT IsAffectedByQuota( + [in] BSTR path, + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] VARIANT_BOOL *affected); +} + + +[ + object, + uuid(a2efab31-295e-46bb-b976-e86d58b52e8b), + dual, + helpstring("IFsrmQuotaTemplate Interface"), + pointer_default(unique) +] +interface IFsrmQuotaTemplate : IFsrmQuotaBase +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_TEMPLATE | 0x01)), helpstring("property TemplateName")] + HRESULT Name([out, retval] BSTR *name); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_TEMPLATE | 0x01)), helpstring("property TemplateName")] + HRESULT Name([in] BSTR name); + + + // Methods + + [id(FSRM_DISPID_QUOTA_TEMPLATE | 0x01), helpstring("This method is used to copy the properties of this template from the specified template")] + HRESULT CopyTemplate([in] BSTR quotaTemplateName); + + [id(FSRM_DISPID_QUOTA_TEMPLATE | 0x02), helpstring("This method is used to apply the template changes to derived quotas and commit both the derived quotas and template changes. The resulting collection of derived quotas will be in Committing or Complete state depending on the synchronizaton option chosen. The collection of HRESULTs can be used to monitor the progress of the asynchronous quota commit operation and should be inspected for the error state of the individual object commit.")] + HRESULT CommitAndUpdateDerived( + [in] FsrmCommitOptions commitOptions, + [in] FsrmTemplateApplyOptions applyOptions, + [out, retval] IFsrmDerivedObjectsResult **derivedObjectsResult); + +}; + + +[ + object, + uuid(9a2bf113-a329-44cc-809a-5c00fce8da40), + dual, + helpstring("IFsrmQuotaTemplateImported Interface"), + pointer_default(unique) +] +interface IFsrmQuotaTemplateImported : IFsrmQuotaTemplate +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_TEMPLATE_IMPORTED | 0x01)), helpstring("property OverwriteOnCommit")] + HRESULT OverwriteOnCommit([out, retval] VARIANT_BOOL *overwrite); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_TEMPLATE_IMPORTED | 0x01)), helpstring("property OverwriteOnCommit")] + HRESULT OverwriteOnCommit([in] VARIANT_BOOL overwrite); + +}; + + +[ + object, + uuid(4173ac41-172d-4d52-963c-fdc7e415f717), + dual, + helpstring("IFsrmQuotaTemplateManager Interface"), + pointer_default(unique) +] +interface IFsrmQuotaTemplateManager : IDispatch +{ + + // Methods + + [id(FSRM_DISPID_QUOTA_TEMPLATE_MANAGER | 0x01), helpstring("This method is used to create a new template")] + HRESULT CreateTemplate([out,retval] IFsrmQuotaTemplate **quotaTemplate); + + [id(FSRM_DISPID_QUOTA_TEMPLATE_MANAGER | 0x02), helpstring("This method is used to get a template by name")] + HRESULT GetTemplate( + [in, defaultvalue(L"")] BSTR name, + [out, retval] IFsrmQuotaTemplate **quotaTemplate); + + [id(FSRM_DISPID_QUOTA_TEMPLATE_MANAGER | 0x03), helpstring("This method is used to enumerate templates")] + HRESULT EnumTemplates( + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCommittableCollection **quotaTemplates); + + [id(FSRM_DISPID_QUOTA_TEMPLATE_MANAGER | 0x04), helpstring("This method is used to copy the properties of this template from the input string")] + HRESULT ExportTemplates( + [in, defaultvalue(NULL)] VARIANT* quotaTemplateNamesArray, + [out, retval] BSTR *serializedQuotaTemplates); + + [id(FSRM_DISPID_QUOTA_TEMPLATE_MANAGER | 0x05), helpstring("This method is used to import templates from the templates string representation. The resulting collection, or individual objects contain therein, must be committed to finalize the import")] + HRESULT ImportTemplates( + [in] BSTR serializedQuotaTemplates, + [in, defaultvalue(NULL)] VARIANT* quotaTemplateNamesArray, + [out, retval] IFsrmCommittableCollection **quotaTemplates); + +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmreports.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmreports.h new file mode 100644 index 0000000000000000000000000000000000000000..8da0e272cf69690eff5e56693df2d0e8f7437ab2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmreports.h @@ -0,0 +1,2742 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __fsrmreports_h__ +#define __fsrmreports_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFsrmReportManager_FWD_DEFINED__ +#define __IFsrmReportManager_FWD_DEFINED__ +typedef interface IFsrmReportManager IFsrmReportManager; + +#endif /* __IFsrmReportManager_FWD_DEFINED__ */ + + +#ifndef __IFsrmReportJob_FWD_DEFINED__ +#define __IFsrmReportJob_FWD_DEFINED__ +typedef interface IFsrmReportJob IFsrmReportJob; + +#endif /* __IFsrmReportJob_FWD_DEFINED__ */ + + +#ifndef __IFsrmReport_FWD_DEFINED__ +#define __IFsrmReport_FWD_DEFINED__ +typedef interface IFsrmReport IFsrmReport; + +#endif /* __IFsrmReport_FWD_DEFINED__ */ + + +#ifndef __IFsrmReportScheduler_FWD_DEFINED__ +#define __IFsrmReportScheduler_FWD_DEFINED__ +typedef interface IFsrmReportScheduler IFsrmReportScheduler; + +#endif /* __IFsrmReportScheduler_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileManagementJobManager_FWD_DEFINED__ +#define __IFsrmFileManagementJobManager_FWD_DEFINED__ +typedef interface IFsrmFileManagementJobManager IFsrmFileManagementJobManager; + +#endif /* __IFsrmFileManagementJobManager_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileManagementJob_FWD_DEFINED__ +#define __IFsrmFileManagementJob_FWD_DEFINED__ +typedef interface IFsrmFileManagementJob IFsrmFileManagementJob; + +#endif /* __IFsrmFileManagementJob_FWD_DEFINED__ */ + + +#ifndef __IFsrmPropertyCondition_FWD_DEFINED__ +#define __IFsrmPropertyCondition_FWD_DEFINED__ +typedef interface IFsrmPropertyCondition IFsrmPropertyCondition; + +#endif /* __IFsrmPropertyCondition_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileCondition_FWD_DEFINED__ +#define __IFsrmFileCondition_FWD_DEFINED__ +typedef interface IFsrmFileCondition IFsrmFileCondition; + +#endif /* __IFsrmFileCondition_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileConditionProperty_FWD_DEFINED__ +#define __IFsrmFileConditionProperty_FWD_DEFINED__ +typedef interface IFsrmFileConditionProperty IFsrmFileConditionProperty; + +#endif /* __IFsrmFileConditionProperty_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "fsrmenums.h" +#include "fsrm.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_fsrmreports_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + +#define FSRM_DISPID_REPORT_MANAGER ( ( FSRM_DISPID_FEATURE_REPORTS | 0x100000 ) ) + +#define FSRM_DISPID_REPORT_JOB ( ( FSRM_DISPID_FEATURE_REPORTS | 0x200000 ) ) + +#define FSRM_DISPID_REPORT ( ( FSRM_DISPID_FEATURE_REPORTS | 0x300000 ) ) + +#define FSRM_DISPID_REPORT_SCHEDULER ( ( FSRM_DISPID_FEATURE_REPORTS | 0x400000 ) ) + +#define FSRM_DISPID_FILE_MANAGEMENT_JOB_MANAGER ( ( FSRM_DISPID_FEATURE_REPORTS | 0x500000 ) ) + +#define FSRM_DISPID_FILE_MANAGEMENT_JOB ( ( FSRM_DISPID_FEATURE_REPORTS | 0x600000 ) ) + +#define FSRM_DISPID_FILE_MANAGEMENT_NOTIFICATION ( ( FSRM_DISPID_FEATURE_REPORTS | 0x700000 ) ) + +#define FSRM_DISPID_PROPERTY_CONDITION ( ( FSRM_DISPID_FEATURE_REPORTS | 0x800000 ) ) + +#define FSRM_DISPID_FILE_CONDITION ( ( FSRM_DISPID_FEATURE_REPORTS | 0x900000 ) ) + +#define FSRM_DISPID_FILE_CONDITION_PROPERTY ( ( FSRM_DISPID_FEATURE_REPORTS | 0xa00000 ) ) + +#define FSRM_DISPID_FILE_MANAGEMENT_JOB_2 ( ( FSRM_DISPID_FEATURE_REPORTS | 0xb00000 ) ) + + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmreports_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmreports_0000_0000_v0_0_s_ifspec; + +#ifndef __IFsrmReportManager_INTERFACE_DEFINED__ +#define __IFsrmReportManager_INTERFACE_DEFINED__ + +/* interface IFsrmReportManager */ +/* [object][oleautomation][dual][version][uuid] */ + + +EXTERN_C const IID IID_IFsrmReportManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27b899fe-6ffa-4481-a184-d3daade8a02b") + IFsrmReportManager : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumReportJobs( + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **reportJobs) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateReportJob( + /* [retval][out] */ __RPC__deref_out_opt IFsrmReportJob **reportJob) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetReportJob( + /* [in] */ __RPC__in BSTR taskName, + /* [retval][out] */ __RPC__deref_out_opt IFsrmReportJob **reportJob) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetOutputDirectory( + /* [in] */ FsrmReportGenerationContext context, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetOutputDirectory( + /* [in] */ FsrmReportGenerationContext context, + /* [in] */ __RPC__in BSTR path) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsFilterValidForReportType( + /* [in] */ FsrmReportType reportType, + /* [in] */ FsrmReportFilter filter, + /* [retval][out] */ __RPC__out VARIANT_BOOL *valid) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDefaultFilter( + /* [in] */ FsrmReportType reportType, + /* [in] */ FsrmReportFilter filter, + /* [retval][out] */ __RPC__out VARIANT *filterValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetDefaultFilter( + /* [in] */ FsrmReportType reportType, + /* [in] */ FsrmReportFilter filter, + /* [in] */ VARIANT filterValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetReportSizeLimit( + /* [in] */ FsrmReportLimit limit, + /* [retval][out] */ __RPC__out VARIANT *limitValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetReportSizeLimit( + /* [in] */ FsrmReportLimit limit, + /* [in] */ VARIANT limitValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmReportManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmReportManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmReportManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmReportManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmReportManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmReportManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmReportManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmReportManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmReportManager, EnumReportJobs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumReportJobs )( + __RPC__in IFsrmReportManager * This, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **reportJobs); + + DECLSPEC_XFGVIRT(IFsrmReportManager, CreateReportJob) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateReportJob )( + __RPC__in IFsrmReportManager * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmReportJob **reportJob); + + DECLSPEC_XFGVIRT(IFsrmReportManager, GetReportJob) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetReportJob )( + __RPC__in IFsrmReportManager * This, + /* [in] */ __RPC__in BSTR taskName, + /* [retval][out] */ __RPC__deref_out_opt IFsrmReportJob **reportJob); + + DECLSPEC_XFGVIRT(IFsrmReportManager, GetOutputDirectory) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetOutputDirectory )( + __RPC__in IFsrmReportManager * This, + /* [in] */ FsrmReportGenerationContext context, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path); + + DECLSPEC_XFGVIRT(IFsrmReportManager, SetOutputDirectory) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetOutputDirectory )( + __RPC__in IFsrmReportManager * This, + /* [in] */ FsrmReportGenerationContext context, + /* [in] */ __RPC__in BSTR path); + + DECLSPEC_XFGVIRT(IFsrmReportManager, IsFilterValidForReportType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsFilterValidForReportType )( + __RPC__in IFsrmReportManager * This, + /* [in] */ FsrmReportType reportType, + /* [in] */ FsrmReportFilter filter, + /* [retval][out] */ __RPC__out VARIANT_BOOL *valid); + + DECLSPEC_XFGVIRT(IFsrmReportManager, GetDefaultFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDefaultFilter )( + __RPC__in IFsrmReportManager * This, + /* [in] */ FsrmReportType reportType, + /* [in] */ FsrmReportFilter filter, + /* [retval][out] */ __RPC__out VARIANT *filterValue); + + DECLSPEC_XFGVIRT(IFsrmReportManager, SetDefaultFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetDefaultFilter )( + __RPC__in IFsrmReportManager * This, + /* [in] */ FsrmReportType reportType, + /* [in] */ FsrmReportFilter filter, + /* [in] */ VARIANT filterValue); + + DECLSPEC_XFGVIRT(IFsrmReportManager, GetReportSizeLimit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetReportSizeLimit )( + __RPC__in IFsrmReportManager * This, + /* [in] */ FsrmReportLimit limit, + /* [retval][out] */ __RPC__out VARIANT *limitValue); + + DECLSPEC_XFGVIRT(IFsrmReportManager, SetReportSizeLimit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetReportSizeLimit )( + __RPC__in IFsrmReportManager * This, + /* [in] */ FsrmReportLimit limit, + /* [in] */ VARIANT limitValue); + + END_INTERFACE + } IFsrmReportManagerVtbl; + + interface IFsrmReportManager + { + CONST_VTBL struct IFsrmReportManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmReportManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmReportManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmReportManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmReportManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmReportManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmReportManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmReportManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmReportManager_EnumReportJobs(This,options,reportJobs) \ + ( (This)->lpVtbl -> EnumReportJobs(This,options,reportJobs) ) + +#define IFsrmReportManager_CreateReportJob(This,reportJob) \ + ( (This)->lpVtbl -> CreateReportJob(This,reportJob) ) + +#define IFsrmReportManager_GetReportJob(This,taskName,reportJob) \ + ( (This)->lpVtbl -> GetReportJob(This,taskName,reportJob) ) + +#define IFsrmReportManager_GetOutputDirectory(This,context,path) \ + ( (This)->lpVtbl -> GetOutputDirectory(This,context,path) ) + +#define IFsrmReportManager_SetOutputDirectory(This,context,path) \ + ( (This)->lpVtbl -> SetOutputDirectory(This,context,path) ) + +#define IFsrmReportManager_IsFilterValidForReportType(This,reportType,filter,valid) \ + ( (This)->lpVtbl -> IsFilterValidForReportType(This,reportType,filter,valid) ) + +#define IFsrmReportManager_GetDefaultFilter(This,reportType,filter,filterValue) \ + ( (This)->lpVtbl -> GetDefaultFilter(This,reportType,filter,filterValue) ) + +#define IFsrmReportManager_SetDefaultFilter(This,reportType,filter,filterValue) \ + ( (This)->lpVtbl -> SetDefaultFilter(This,reportType,filter,filterValue) ) + +#define IFsrmReportManager_GetReportSizeLimit(This,limit,limitValue) \ + ( (This)->lpVtbl -> GetReportSizeLimit(This,limit,limitValue) ) + +#define IFsrmReportManager_SetReportSizeLimit(This,limit,limitValue) \ + ( (This)->lpVtbl -> SetReportSizeLimit(This,limit,limitValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmReportManager_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmReportJob_INTERFACE_DEFINED__ +#define __IFsrmReportJob_INTERFACE_DEFINED__ + +/* interface IFsrmReportJob */ +/* [object][oleautomation][dual][version][uuid] */ + + +EXTERN_C const IID IID_IFsrmReportJob; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("38e87280-715c-4c7d-a280-ea1651a19fef") + IFsrmReportJob : public IFsrmObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Task( + /* [retval][out] */ __RPC__deref_out_opt BSTR *taskName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Task( + /* [in] */ __RPC__in BSTR taskName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NamespaceRoots( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *namespaceRoots) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_NamespaceRoots( + /* [in] */ __RPC__in SAFEARRAY * namespaceRoots) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Formats( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *formats) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Formats( + /* [in] */ __RPC__in SAFEARRAY * formats) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MailTo( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MailTo( + /* [in] */ __RPC__in BSTR mailTo) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RunningStatus( + /* [retval][out] */ __RPC__out FsrmReportRunningStatus *runningStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastRun( + /* [retval][out] */ __RPC__out DATE *lastRun) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastError( + /* [retval][out] */ __RPC__deref_out_opt BSTR *lastError) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastGeneratedInDirectory( + /* [retval][out] */ __RPC__deref_out_opt BSTR *path) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumReports( + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **reports) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateReport( + /* [in] */ FsrmReportType reportType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmReport **report) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Run( + /* [in] */ FsrmReportGenerationContext context) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WaitForCompletion( + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmReportJobVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmReportJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmReportJob * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmReportJob * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmReportJob * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmReportJob * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmReportJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmReportJob * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmReportJob * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmReportJob * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmReportJob * This); + + DECLSPEC_XFGVIRT(IFsrmReportJob, get_Task) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Task )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *taskName); + + DECLSPEC_XFGVIRT(IFsrmReportJob, put_Task) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Task )( + __RPC__in IFsrmReportJob * This, + /* [in] */ __RPC__in BSTR taskName); + + DECLSPEC_XFGVIRT(IFsrmReportJob, get_NamespaceRoots) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NamespaceRoots )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *namespaceRoots); + + DECLSPEC_XFGVIRT(IFsrmReportJob, put_NamespaceRoots) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NamespaceRoots )( + __RPC__in IFsrmReportJob * This, + /* [in] */ __RPC__in SAFEARRAY * namespaceRoots); + + DECLSPEC_XFGVIRT(IFsrmReportJob, get_Formats) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Formats )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *formats); + + DECLSPEC_XFGVIRT(IFsrmReportJob, put_Formats) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Formats )( + __RPC__in IFsrmReportJob * This, + /* [in] */ __RPC__in SAFEARRAY * formats); + + DECLSPEC_XFGVIRT(IFsrmReportJob, get_MailTo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailTo )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo); + + DECLSPEC_XFGVIRT(IFsrmReportJob, put_MailTo) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailTo )( + __RPC__in IFsrmReportJob * This, + /* [in] */ __RPC__in BSTR mailTo); + + DECLSPEC_XFGVIRT(IFsrmReportJob, get_RunningStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RunningStatus )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__out FsrmReportRunningStatus *runningStatus); + + DECLSPEC_XFGVIRT(IFsrmReportJob, get_LastRun) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastRun )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__out DATE *lastRun); + + DECLSPEC_XFGVIRT(IFsrmReportJob, get_LastError) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastError )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *lastError); + + DECLSPEC_XFGVIRT(IFsrmReportJob, get_LastGeneratedInDirectory) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastGeneratedInDirectory )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path); + + DECLSPEC_XFGVIRT(IFsrmReportJob, EnumReports) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumReports )( + __RPC__in IFsrmReportJob * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **reports); + + DECLSPEC_XFGVIRT(IFsrmReportJob, CreateReport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateReport )( + __RPC__in IFsrmReportJob * This, + /* [in] */ FsrmReportType reportType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmReport **report); + + DECLSPEC_XFGVIRT(IFsrmReportJob, Run) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Run )( + __RPC__in IFsrmReportJob * This, + /* [in] */ FsrmReportGenerationContext context); + + DECLSPEC_XFGVIRT(IFsrmReportJob, WaitForCompletion) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WaitForCompletion )( + __RPC__in IFsrmReportJob * This, + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed); + + DECLSPEC_XFGVIRT(IFsrmReportJob, Cancel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IFsrmReportJob * This); + + END_INTERFACE + } IFsrmReportJobVtbl; + + interface IFsrmReportJob + { + CONST_VTBL struct IFsrmReportJobVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmReportJob_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmReportJob_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmReportJob_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmReportJob_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmReportJob_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmReportJob_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmReportJob_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmReportJob_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmReportJob_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmReportJob_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmReportJob_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmReportJob_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmReportJob_get_Task(This,taskName) \ + ( (This)->lpVtbl -> get_Task(This,taskName) ) + +#define IFsrmReportJob_put_Task(This,taskName) \ + ( (This)->lpVtbl -> put_Task(This,taskName) ) + +#define IFsrmReportJob_get_NamespaceRoots(This,namespaceRoots) \ + ( (This)->lpVtbl -> get_NamespaceRoots(This,namespaceRoots) ) + +#define IFsrmReportJob_put_NamespaceRoots(This,namespaceRoots) \ + ( (This)->lpVtbl -> put_NamespaceRoots(This,namespaceRoots) ) + +#define IFsrmReportJob_get_Formats(This,formats) \ + ( (This)->lpVtbl -> get_Formats(This,formats) ) + +#define IFsrmReportJob_put_Formats(This,formats) \ + ( (This)->lpVtbl -> put_Formats(This,formats) ) + +#define IFsrmReportJob_get_MailTo(This,mailTo) \ + ( (This)->lpVtbl -> get_MailTo(This,mailTo) ) + +#define IFsrmReportJob_put_MailTo(This,mailTo) \ + ( (This)->lpVtbl -> put_MailTo(This,mailTo) ) + +#define IFsrmReportJob_get_RunningStatus(This,runningStatus) \ + ( (This)->lpVtbl -> get_RunningStatus(This,runningStatus) ) + +#define IFsrmReportJob_get_LastRun(This,lastRun) \ + ( (This)->lpVtbl -> get_LastRun(This,lastRun) ) + +#define IFsrmReportJob_get_LastError(This,lastError) \ + ( (This)->lpVtbl -> get_LastError(This,lastError) ) + +#define IFsrmReportJob_get_LastGeneratedInDirectory(This,path) \ + ( (This)->lpVtbl -> get_LastGeneratedInDirectory(This,path) ) + +#define IFsrmReportJob_EnumReports(This,reports) \ + ( (This)->lpVtbl -> EnumReports(This,reports) ) + +#define IFsrmReportJob_CreateReport(This,reportType,report) \ + ( (This)->lpVtbl -> CreateReport(This,reportType,report) ) + +#define IFsrmReportJob_Run(This,context) \ + ( (This)->lpVtbl -> Run(This,context) ) + +#define IFsrmReportJob_WaitForCompletion(This,waitSeconds,completed) \ + ( (This)->lpVtbl -> WaitForCompletion(This,waitSeconds,completed) ) + +#define IFsrmReportJob_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmReportJob_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmReport_INTERFACE_DEFINED__ +#define __IFsrmReport_INTERFACE_DEFINED__ + +/* interface IFsrmReport */ +/* [object][oleautomation][dual][version][uuid] */ + + +EXTERN_C const IID IID_IFsrmReport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d8cc81d9-46b8-4fa4-bfa5-4aa9dec9b638") + IFsrmReport : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out FsrmReportType *reportType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *description) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR description) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastGeneratedFileNamePrefix( + /* [retval][out] */ __RPC__deref_out_opt BSTR *prefix) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetFilter( + /* [in] */ FsrmReportFilter filter, + /* [retval][out] */ __RPC__out VARIANT *filterValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetFilter( + /* [in] */ FsrmReportFilter filter, + /* [in] */ VARIANT filterValue) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmReportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmReport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmReport * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmReport * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmReport * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmReport * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmReport, get_Type) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IFsrmReport * This, + /* [retval][out] */ __RPC__out FsrmReportType *reportType); + + DECLSPEC_XFGVIRT(IFsrmReport, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmReport, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmReport * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmReport, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmReport, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmReport * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmReport, get_LastGeneratedFileNamePrefix) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastGeneratedFileNamePrefix )( + __RPC__in IFsrmReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *prefix); + + DECLSPEC_XFGVIRT(IFsrmReport, GetFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFilter )( + __RPC__in IFsrmReport * This, + /* [in] */ FsrmReportFilter filter, + /* [retval][out] */ __RPC__out VARIANT *filterValue); + + DECLSPEC_XFGVIRT(IFsrmReport, SetFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetFilter )( + __RPC__in IFsrmReport * This, + /* [in] */ FsrmReportFilter filter, + /* [in] */ VARIANT filterValue); + + DECLSPEC_XFGVIRT(IFsrmReport, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmReport * This); + + END_INTERFACE + } IFsrmReportVtbl; + + interface IFsrmReport + { + CONST_VTBL struct IFsrmReportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmReport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmReport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmReport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmReport_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmReport_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmReport_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmReport_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmReport_get_Type(This,reportType) \ + ( (This)->lpVtbl -> get_Type(This,reportType) ) + +#define IFsrmReport_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmReport_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmReport_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmReport_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmReport_get_LastGeneratedFileNamePrefix(This,prefix) \ + ( (This)->lpVtbl -> get_LastGeneratedFileNamePrefix(This,prefix) ) + +#define IFsrmReport_GetFilter(This,filter,filterValue) \ + ( (This)->lpVtbl -> GetFilter(This,filter,filterValue) ) + +#define IFsrmReport_SetFilter(This,filter,filterValue) \ + ( (This)->lpVtbl -> SetFilter(This,filter,filterValue) ) + +#define IFsrmReport_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmReport_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmReportScheduler_INTERFACE_DEFINED__ +#define __IFsrmReportScheduler_INTERFACE_DEFINED__ + +/* interface IFsrmReportScheduler */ +/* [object][oleautomation][dual][version][uuid] */ + + +EXTERN_C const IID IID_IFsrmReportScheduler; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6879caf9-6617-4484-8719-71c3d8645f94") + IFsrmReportScheduler : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE VerifyNamespaces( + /* [in] */ __RPC__in VARIANT *namespacesSafeArray) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateScheduleTask( + /* [in] */ __RPC__in BSTR taskName, + /* [in] */ __RPC__in VARIANT *namespacesSafeArray, + /* [in] */ __RPC__in BSTR serializedTask) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ModifyScheduleTask( + /* [in] */ __RPC__in BSTR taskName, + /* [in] */ __RPC__in VARIANT *namespacesSafeArray, + /* [in] */ __RPC__in BSTR serializedTask) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteScheduleTask( + /* [in] */ __RPC__in BSTR taskName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmReportSchedulerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmReportScheduler * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmReportScheduler * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmReportScheduler * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmReportScheduler * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmReportScheduler * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmReportScheduler * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmReportScheduler * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmReportScheduler, VerifyNamespaces) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *VerifyNamespaces )( + __RPC__in IFsrmReportScheduler * This, + /* [in] */ __RPC__in VARIANT *namespacesSafeArray); + + DECLSPEC_XFGVIRT(IFsrmReportScheduler, CreateScheduleTask) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateScheduleTask )( + __RPC__in IFsrmReportScheduler * This, + /* [in] */ __RPC__in BSTR taskName, + /* [in] */ __RPC__in VARIANT *namespacesSafeArray, + /* [in] */ __RPC__in BSTR serializedTask); + + DECLSPEC_XFGVIRT(IFsrmReportScheduler, ModifyScheduleTask) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ModifyScheduleTask )( + __RPC__in IFsrmReportScheduler * This, + /* [in] */ __RPC__in BSTR taskName, + /* [in] */ __RPC__in VARIANT *namespacesSafeArray, + /* [in] */ __RPC__in BSTR serializedTask); + + DECLSPEC_XFGVIRT(IFsrmReportScheduler, DeleteScheduleTask) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteScheduleTask )( + __RPC__in IFsrmReportScheduler * This, + /* [in] */ __RPC__in BSTR taskName); + + END_INTERFACE + } IFsrmReportSchedulerVtbl; + + interface IFsrmReportScheduler + { + CONST_VTBL struct IFsrmReportSchedulerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmReportScheduler_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmReportScheduler_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmReportScheduler_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmReportScheduler_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmReportScheduler_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmReportScheduler_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmReportScheduler_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmReportScheduler_VerifyNamespaces(This,namespacesSafeArray) \ + ( (This)->lpVtbl -> VerifyNamespaces(This,namespacesSafeArray) ) + +#define IFsrmReportScheduler_CreateScheduleTask(This,taskName,namespacesSafeArray,serializedTask) \ + ( (This)->lpVtbl -> CreateScheduleTask(This,taskName,namespacesSafeArray,serializedTask) ) + +#define IFsrmReportScheduler_ModifyScheduleTask(This,taskName,namespacesSafeArray,serializedTask) \ + ( (This)->lpVtbl -> ModifyScheduleTask(This,taskName,namespacesSafeArray,serializedTask) ) + +#define IFsrmReportScheduler_DeleteScheduleTask(This,taskName) \ + ( (This)->lpVtbl -> DeleteScheduleTask(This,taskName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmReportScheduler_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileManagementJobManager_INTERFACE_DEFINED__ +#define __IFsrmFileManagementJobManager_INTERFACE_DEFINED__ + +/* interface IFsrmFileManagementJobManager */ +/* [object][oleautomation][dual][version][uuid] */ + + +EXTERN_C const IID IID_IFsrmFileManagementJobManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ee321ecb-d95e-48e9-907c-c7685a013235") + IFsrmFileManagementJobManager : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActionVariables( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *variables) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActionVariableDescriptions( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *descriptions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumFileManagementJobs( + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **fileManagementJobs) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateFileManagementJob( + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileManagementJob **fileManagementJob) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetFileManagementJob( + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileManagementJob **fileManagementJob) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileManagementJobManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileManagementJobManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileManagementJobManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileManagementJobManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileManagementJobManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileManagementJobManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileManagementJobManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileManagementJobManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJobManager, get_ActionVariables) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionVariables )( + __RPC__in IFsrmFileManagementJobManager * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *variables); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJobManager, get_ActionVariableDescriptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionVariableDescriptions )( + __RPC__in IFsrmFileManagementJobManager * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *descriptions); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJobManager, EnumFileManagementJobs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumFileManagementJobs )( + __RPC__in IFsrmFileManagementJobManager * This, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **fileManagementJobs); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJobManager, CreateFileManagementJob) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateFileManagementJob )( + __RPC__in IFsrmFileManagementJobManager * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileManagementJob **fileManagementJob); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJobManager, GetFileManagementJob) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFileManagementJob )( + __RPC__in IFsrmFileManagementJobManager * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileManagementJob **fileManagementJob); + + END_INTERFACE + } IFsrmFileManagementJobManagerVtbl; + + interface IFsrmFileManagementJobManager + { + CONST_VTBL struct IFsrmFileManagementJobManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileManagementJobManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileManagementJobManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileManagementJobManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileManagementJobManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileManagementJobManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileManagementJobManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileManagementJobManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileManagementJobManager_get_ActionVariables(This,variables) \ + ( (This)->lpVtbl -> get_ActionVariables(This,variables) ) + +#define IFsrmFileManagementJobManager_get_ActionVariableDescriptions(This,descriptions) \ + ( (This)->lpVtbl -> get_ActionVariableDescriptions(This,descriptions) ) + +#define IFsrmFileManagementJobManager_EnumFileManagementJobs(This,options,fileManagementJobs) \ + ( (This)->lpVtbl -> EnumFileManagementJobs(This,options,fileManagementJobs) ) + +#define IFsrmFileManagementJobManager_CreateFileManagementJob(This,fileManagementJob) \ + ( (This)->lpVtbl -> CreateFileManagementJob(This,fileManagementJob) ) + +#define IFsrmFileManagementJobManager_GetFileManagementJob(This,name,fileManagementJob) \ + ( (This)->lpVtbl -> GetFileManagementJob(This,name,fileManagementJob) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileManagementJobManager_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileManagementJob_INTERFACE_DEFINED__ +#define __IFsrmFileManagementJob_INTERFACE_DEFINED__ + +/* interface IFsrmFileManagementJob */ +/* [object][oleautomation][dual][version][uuid] */ + +#define FsrmDaysNotSpecified ( -1 ) + +#define FsrmDateNotSpecified ( ( DATE )-1 ) + + +EXTERN_C const IID IID_IFsrmFileManagementJob; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0770687e-9f36-4d6f-8778-599d188461c9") + IFsrmFileManagementJob : public IFsrmObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NamespaceRoots( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *namespaceRoots) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_NamespaceRoots( + /* [in] */ __RPC__in SAFEARRAY * namespaceRoots) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Enabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *enabled) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Enabled( + /* [in] */ VARIANT_BOOL enabled) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OperationType( + /* [retval][out] */ __RPC__out FsrmFileManagementType *operationType) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OperationType( + /* [in] */ FsrmFileManagementType operationType) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExpirationDirectory( + /* [retval][out] */ __RPC__deref_out_opt BSTR *expirationDirectory) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ExpirationDirectory( + /* [in] */ __RPC__in BSTR expirationDirectory) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CustomAction( + /* [retval][out] */ __RPC__deref_out_opt IFsrmActionCommand **action) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Notifications( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *notifications) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Logging( + /* [retval][out] */ __RPC__out long *loggingFlags) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Logging( + /* [in] */ long loggingFlags) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReportEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *reportEnabled) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ReportEnabled( + /* [in] */ VARIANT_BOOL reportEnabled) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Formats( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *formats) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Formats( + /* [in] */ __RPC__in SAFEARRAY * formats) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MailTo( + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MailTo( + /* [in] */ __RPC__in BSTR mailTo) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DaysSinceFileCreated( + /* [retval][out] */ __RPC__out long *daysSinceCreation) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DaysSinceFileCreated( + /* [in] */ long daysSinceCreation) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DaysSinceFileLastAccessed( + /* [retval][out] */ __RPC__out long *daysSinceAccess) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DaysSinceFileLastAccessed( + /* [in] */ long daysSinceAccess) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DaysSinceFileLastModified( + /* [retval][out] */ __RPC__out long *daysSinceModify) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DaysSinceFileLastModified( + /* [in] */ long daysSinceModify) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyConditions( + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **propertyConditions) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FromDate( + /* [retval][out] */ __RPC__out DATE *fromDate) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FromDate( + /* [in] */ DATE fromDate) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Task( + /* [retval][out] */ __RPC__deref_out_opt BSTR *taskName) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Task( + /* [in] */ __RPC__in BSTR taskName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Parameters( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Parameters( + /* [in] */ __RPC__in SAFEARRAY * parameters) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RunningStatus( + /* [retval][out] */ __RPC__out FsrmReportRunningStatus *runningStatus) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastError( + /* [retval][out] */ __RPC__deref_out_opt BSTR *lastError) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastReportPathWithoutExtension( + /* [retval][out] */ __RPC__deref_out_opt BSTR *path) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastRun( + /* [retval][out] */ __RPC__out DATE *lastRun) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FileNamePattern( + /* [retval][out] */ __RPC__deref_out_opt BSTR *fileNamePattern) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FileNamePattern( + /* [in] */ __RPC__in BSTR fileNamePattern) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Run( + /* [in] */ FsrmReportGenerationContext context) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WaitForCompletion( + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddNotification( + /* [in] */ long days) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteNotification( + /* [in] */ long days) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ModifyNotification( + /* [in] */ long days, + /* [in] */ long newDays) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateNotificationAction( + /* [in] */ long days, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumNotificationActions( + /* [in] */ long days, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreatePropertyCondition( + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPropertyCondition **propertyCondition) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateCustomAction( + /* [retval][out] */ __RPC__deref_out_opt IFsrmActionCommand **customAction) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileManagementJobVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileManagementJob * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileManagementJob * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileManagementJob * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileManagementJob * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmFileManagementJob * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmFileManagementJob * This); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_NamespaceRoots) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NamespaceRoots )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *namespaceRoots); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_NamespaceRoots) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NamespaceRoots )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in SAFEARRAY * namespaceRoots); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_Enabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *enabled); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_Enabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enabled )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ VARIANT_BOOL enabled); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_OperationType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OperationType )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out FsrmFileManagementType *operationType); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_OperationType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OperationType )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ FsrmFileManagementType operationType); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_ExpirationDirectory) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExpirationDirectory )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *expirationDirectory); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_ExpirationDirectory) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ExpirationDirectory )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in BSTR expirationDirectory); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_CustomAction) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CustomAction )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmActionCommand **action); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_Notifications) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Notifications )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *notifications); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_Logging) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Logging )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out long *loggingFlags); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_Logging) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Logging )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ long loggingFlags); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_ReportEnabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportEnabled )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *reportEnabled); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_ReportEnabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReportEnabled )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ VARIANT_BOOL reportEnabled); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_Formats) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Formats )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *formats); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_Formats) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Formats )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in SAFEARRAY * formats); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_MailTo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MailTo )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *mailTo); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_MailTo) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MailTo )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in BSTR mailTo); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_DaysSinceFileCreated) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DaysSinceFileCreated )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out long *daysSinceCreation); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_DaysSinceFileCreated) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DaysSinceFileCreated )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ long daysSinceCreation); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_DaysSinceFileLastAccessed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DaysSinceFileLastAccessed )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out long *daysSinceAccess); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_DaysSinceFileLastAccessed) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DaysSinceFileLastAccessed )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ long daysSinceAccess); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_DaysSinceFileLastModified) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DaysSinceFileLastModified )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out long *daysSinceModify); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_DaysSinceFileLastModified) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DaysSinceFileLastModified )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ long daysSinceModify); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_PropertyConditions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyConditions )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **propertyConditions); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_FromDate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FromDate )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out DATE *fromDate); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_FromDate) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FromDate )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ DATE fromDate); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_Task) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Task )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *taskName); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_Task) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Task )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in BSTR taskName); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_Parameters) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Parameters )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *parameters); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_Parameters) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Parameters )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in SAFEARRAY * parameters); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_RunningStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RunningStatus )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out FsrmReportRunningStatus *runningStatus); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_LastError) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastError )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *lastError); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_LastReportPathWithoutExtension) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastReportPathWithoutExtension )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_LastRun) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastRun )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__out DATE *lastRun); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, get_FileNamePattern) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileNamePattern )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *fileNamePattern); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, put_FileNamePattern) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileNamePattern )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in BSTR fileNamePattern); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, Run) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Run )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ FsrmReportGenerationContext context); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, WaitForCompletion) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WaitForCompletion )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ long waitSeconds, + /* [retval][out] */ __RPC__out VARIANT_BOOL *completed); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, Cancel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IFsrmFileManagementJob * This); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, AddNotification) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddNotification )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ long days); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, DeleteNotification) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteNotification )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ long days); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, ModifyNotification) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ModifyNotification )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ long days, + /* [in] */ long newDays); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, CreateNotificationAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateNotificationAction )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ long days, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, EnumNotificationActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumNotificationActions )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ long days, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, CreatePropertyCondition) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreatePropertyCondition )( + __RPC__in IFsrmFileManagementJob * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmPropertyCondition **propertyCondition); + + DECLSPEC_XFGVIRT(IFsrmFileManagementJob, CreateCustomAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateCustomAction )( + __RPC__in IFsrmFileManagementJob * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmActionCommand **customAction); + + END_INTERFACE + } IFsrmFileManagementJobVtbl; + + interface IFsrmFileManagementJob + { + CONST_VTBL struct IFsrmFileManagementJobVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileManagementJob_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileManagementJob_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileManagementJob_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileManagementJob_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileManagementJob_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileManagementJob_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileManagementJob_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileManagementJob_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmFileManagementJob_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmFileManagementJob_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmFileManagementJob_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmFileManagementJob_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmFileManagementJob_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmFileManagementJob_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmFileManagementJob_get_NamespaceRoots(This,namespaceRoots) \ + ( (This)->lpVtbl -> get_NamespaceRoots(This,namespaceRoots) ) + +#define IFsrmFileManagementJob_put_NamespaceRoots(This,namespaceRoots) \ + ( (This)->lpVtbl -> put_NamespaceRoots(This,namespaceRoots) ) + +#define IFsrmFileManagementJob_get_Enabled(This,enabled) \ + ( (This)->lpVtbl -> get_Enabled(This,enabled) ) + +#define IFsrmFileManagementJob_put_Enabled(This,enabled) \ + ( (This)->lpVtbl -> put_Enabled(This,enabled) ) + +#define IFsrmFileManagementJob_get_OperationType(This,operationType) \ + ( (This)->lpVtbl -> get_OperationType(This,operationType) ) + +#define IFsrmFileManagementJob_put_OperationType(This,operationType) \ + ( (This)->lpVtbl -> put_OperationType(This,operationType) ) + +#define IFsrmFileManagementJob_get_ExpirationDirectory(This,expirationDirectory) \ + ( (This)->lpVtbl -> get_ExpirationDirectory(This,expirationDirectory) ) + +#define IFsrmFileManagementJob_put_ExpirationDirectory(This,expirationDirectory) \ + ( (This)->lpVtbl -> put_ExpirationDirectory(This,expirationDirectory) ) + +#define IFsrmFileManagementJob_get_CustomAction(This,action) \ + ( (This)->lpVtbl -> get_CustomAction(This,action) ) + +#define IFsrmFileManagementJob_get_Notifications(This,notifications) \ + ( (This)->lpVtbl -> get_Notifications(This,notifications) ) + +#define IFsrmFileManagementJob_get_Logging(This,loggingFlags) \ + ( (This)->lpVtbl -> get_Logging(This,loggingFlags) ) + +#define IFsrmFileManagementJob_put_Logging(This,loggingFlags) \ + ( (This)->lpVtbl -> put_Logging(This,loggingFlags) ) + +#define IFsrmFileManagementJob_get_ReportEnabled(This,reportEnabled) \ + ( (This)->lpVtbl -> get_ReportEnabled(This,reportEnabled) ) + +#define IFsrmFileManagementJob_put_ReportEnabled(This,reportEnabled) \ + ( (This)->lpVtbl -> put_ReportEnabled(This,reportEnabled) ) + +#define IFsrmFileManagementJob_get_Formats(This,formats) \ + ( (This)->lpVtbl -> get_Formats(This,formats) ) + +#define IFsrmFileManagementJob_put_Formats(This,formats) \ + ( (This)->lpVtbl -> put_Formats(This,formats) ) + +#define IFsrmFileManagementJob_get_MailTo(This,mailTo) \ + ( (This)->lpVtbl -> get_MailTo(This,mailTo) ) + +#define IFsrmFileManagementJob_put_MailTo(This,mailTo) \ + ( (This)->lpVtbl -> put_MailTo(This,mailTo) ) + +#define IFsrmFileManagementJob_get_DaysSinceFileCreated(This,daysSinceCreation) \ + ( (This)->lpVtbl -> get_DaysSinceFileCreated(This,daysSinceCreation) ) + +#define IFsrmFileManagementJob_put_DaysSinceFileCreated(This,daysSinceCreation) \ + ( (This)->lpVtbl -> put_DaysSinceFileCreated(This,daysSinceCreation) ) + +#define IFsrmFileManagementJob_get_DaysSinceFileLastAccessed(This,daysSinceAccess) \ + ( (This)->lpVtbl -> get_DaysSinceFileLastAccessed(This,daysSinceAccess) ) + +#define IFsrmFileManagementJob_put_DaysSinceFileLastAccessed(This,daysSinceAccess) \ + ( (This)->lpVtbl -> put_DaysSinceFileLastAccessed(This,daysSinceAccess) ) + +#define IFsrmFileManagementJob_get_DaysSinceFileLastModified(This,daysSinceModify) \ + ( (This)->lpVtbl -> get_DaysSinceFileLastModified(This,daysSinceModify) ) + +#define IFsrmFileManagementJob_put_DaysSinceFileLastModified(This,daysSinceModify) \ + ( (This)->lpVtbl -> put_DaysSinceFileLastModified(This,daysSinceModify) ) + +#define IFsrmFileManagementJob_get_PropertyConditions(This,propertyConditions) \ + ( (This)->lpVtbl -> get_PropertyConditions(This,propertyConditions) ) + +#define IFsrmFileManagementJob_get_FromDate(This,fromDate) \ + ( (This)->lpVtbl -> get_FromDate(This,fromDate) ) + +#define IFsrmFileManagementJob_put_FromDate(This,fromDate) \ + ( (This)->lpVtbl -> put_FromDate(This,fromDate) ) + +#define IFsrmFileManagementJob_get_Task(This,taskName) \ + ( (This)->lpVtbl -> get_Task(This,taskName) ) + +#define IFsrmFileManagementJob_put_Task(This,taskName) \ + ( (This)->lpVtbl -> put_Task(This,taskName) ) + +#define IFsrmFileManagementJob_get_Parameters(This,parameters) \ + ( (This)->lpVtbl -> get_Parameters(This,parameters) ) + +#define IFsrmFileManagementJob_put_Parameters(This,parameters) \ + ( (This)->lpVtbl -> put_Parameters(This,parameters) ) + +#define IFsrmFileManagementJob_get_RunningStatus(This,runningStatus) \ + ( (This)->lpVtbl -> get_RunningStatus(This,runningStatus) ) + +#define IFsrmFileManagementJob_get_LastError(This,lastError) \ + ( (This)->lpVtbl -> get_LastError(This,lastError) ) + +#define IFsrmFileManagementJob_get_LastReportPathWithoutExtension(This,path) \ + ( (This)->lpVtbl -> get_LastReportPathWithoutExtension(This,path) ) + +#define IFsrmFileManagementJob_get_LastRun(This,lastRun) \ + ( (This)->lpVtbl -> get_LastRun(This,lastRun) ) + +#define IFsrmFileManagementJob_get_FileNamePattern(This,fileNamePattern) \ + ( (This)->lpVtbl -> get_FileNamePattern(This,fileNamePattern) ) + +#define IFsrmFileManagementJob_put_FileNamePattern(This,fileNamePattern) \ + ( (This)->lpVtbl -> put_FileNamePattern(This,fileNamePattern) ) + +#define IFsrmFileManagementJob_Run(This,context) \ + ( (This)->lpVtbl -> Run(This,context) ) + +#define IFsrmFileManagementJob_WaitForCompletion(This,waitSeconds,completed) \ + ( (This)->lpVtbl -> WaitForCompletion(This,waitSeconds,completed) ) + +#define IFsrmFileManagementJob_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#define IFsrmFileManagementJob_AddNotification(This,days) \ + ( (This)->lpVtbl -> AddNotification(This,days) ) + +#define IFsrmFileManagementJob_DeleteNotification(This,days) \ + ( (This)->lpVtbl -> DeleteNotification(This,days) ) + +#define IFsrmFileManagementJob_ModifyNotification(This,days,newDays) \ + ( (This)->lpVtbl -> ModifyNotification(This,days,newDays) ) + +#define IFsrmFileManagementJob_CreateNotificationAction(This,days,actionType,action) \ + ( (This)->lpVtbl -> CreateNotificationAction(This,days,actionType,action) ) + +#define IFsrmFileManagementJob_EnumNotificationActions(This,days,actions) \ + ( (This)->lpVtbl -> EnumNotificationActions(This,days,actions) ) + +#define IFsrmFileManagementJob_CreatePropertyCondition(This,name,propertyCondition) \ + ( (This)->lpVtbl -> CreatePropertyCondition(This,name,propertyCondition) ) + +#define IFsrmFileManagementJob_CreateCustomAction(This,customAction) \ + ( (This)->lpVtbl -> CreateCustomAction(This,customAction) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileManagementJob_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmPropertyCondition_INTERFACE_DEFINED__ +#define __IFsrmPropertyCondition_INTERFACE_DEFINED__ + +/* interface IFsrmPropertyCondition */ +/* [object][oleautomation][dual][version][uuid] */ + + +EXTERN_C const IID IID_IFsrmPropertyCondition; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("326af66f-2ac0-4f68-bf8c-4759f054fa29") + IFsrmPropertyCondition : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out FsrmPropertyConditionType *type) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Type( + /* [in] */ FsrmPropertyConditionType type) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ __RPC__in BSTR value) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmPropertyConditionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmPropertyCondition * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmPropertyCondition * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmPropertyCondition * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmPropertyCondition * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmPropertyCondition * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmPropertyCondition * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmPropertyCondition * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmPropertyCondition, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmPropertyCondition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmPropertyCondition, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmPropertyCondition * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmPropertyCondition, get_Type) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IFsrmPropertyCondition * This, + /* [retval][out] */ __RPC__out FsrmPropertyConditionType *type); + + DECLSPEC_XFGVIRT(IFsrmPropertyCondition, put_Type) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Type )( + __RPC__in IFsrmPropertyCondition * This, + /* [in] */ FsrmPropertyConditionType type); + + DECLSPEC_XFGVIRT(IFsrmPropertyCondition, get_Value) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IFsrmPropertyCondition * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IFsrmPropertyCondition, put_Value) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in IFsrmPropertyCondition * This, + /* [in] */ __RPC__in BSTR value); + + DECLSPEC_XFGVIRT(IFsrmPropertyCondition, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmPropertyCondition * This); + + END_INTERFACE + } IFsrmPropertyConditionVtbl; + + interface IFsrmPropertyCondition + { + CONST_VTBL struct IFsrmPropertyConditionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmPropertyCondition_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmPropertyCondition_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmPropertyCondition_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmPropertyCondition_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmPropertyCondition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmPropertyCondition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmPropertyCondition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmPropertyCondition_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmPropertyCondition_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmPropertyCondition_get_Type(This,type) \ + ( (This)->lpVtbl -> get_Type(This,type) ) + +#define IFsrmPropertyCondition_put_Type(This,type) \ + ( (This)->lpVtbl -> put_Type(This,type) ) + +#define IFsrmPropertyCondition_get_Value(This,value) \ + ( (This)->lpVtbl -> get_Value(This,value) ) + +#define IFsrmPropertyCondition_put_Value(This,value) \ + ( (This)->lpVtbl -> put_Value(This,value) ) + +#define IFsrmPropertyCondition_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmPropertyCondition_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileCondition_INTERFACE_DEFINED__ +#define __IFsrmFileCondition_INTERFACE_DEFINED__ + +/* interface IFsrmFileCondition */ +/* [object][oleautomation][dual][version][uuid] */ + + +EXTERN_C const IID IID_IFsrmFileCondition; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("70684FFC-691A-4A1A-B922-97752E138CC1") + IFsrmFileCondition : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out FsrmFileConditionType *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileConditionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileCondition * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileCondition * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileCondition * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileCondition * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileCondition * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileCondition * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileCondition * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmFileCondition, get_Type) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IFsrmFileCondition * This, + /* [retval][out] */ __RPC__out FsrmFileConditionType *pVal); + + DECLSPEC_XFGVIRT(IFsrmFileCondition, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmFileCondition * This); + + END_INTERFACE + } IFsrmFileConditionVtbl; + + interface IFsrmFileCondition + { + CONST_VTBL struct IFsrmFileConditionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileCondition_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileCondition_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileCondition_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileCondition_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileCondition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileCondition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileCondition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileCondition_get_Type(This,pVal) \ + ( (This)->lpVtbl -> get_Type(This,pVal) ) + +#define IFsrmFileCondition_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileCondition_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileConditionProperty_INTERFACE_DEFINED__ +#define __IFsrmFileConditionProperty_INTERFACE_DEFINED__ + +/* interface IFsrmFileConditionProperty */ +/* [object][oleautomation][dual][version][uuid] */ + + +EXTERN_C const IID IID_IFsrmFileConditionProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("81926775-B981-4479-988F-DA171D627360") + IFsrmFileConditionProperty : public IFsrmFileCondition + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PropertyName( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PropertyId( + /* [retval][out] */ __RPC__out FsrmFileSystemPropertyId *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PropertyId( + /* [in] */ FsrmFileSystemPropertyId newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Operator( + /* [retval][out] */ __RPC__out FsrmPropertyConditionType *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Operator( + /* [in] */ FsrmPropertyConditionType newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ValueType( + /* [retval][out] */ __RPC__out FsrmPropertyValueType *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ValueType( + /* [in] */ FsrmPropertyValueType newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Value( + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Value( + /* [in] */ VARIANT newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileConditionPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileConditionProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileConditionProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileConditionProperty * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileConditionProperty * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileConditionProperty * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileConditionProperty * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileConditionProperty * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmFileCondition, get_Type) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IFsrmFileConditionProperty * This, + /* [retval][out] */ __RPC__out FsrmFileConditionType *pVal); + + DECLSPEC_XFGVIRT(IFsrmFileCondition, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmFileConditionProperty * This); + + DECLSPEC_XFGVIRT(IFsrmFileConditionProperty, get_PropertyName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyName )( + __RPC__in IFsrmFileConditionProperty * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsrmFileConditionProperty, put_PropertyName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyName )( + __RPC__in IFsrmFileConditionProperty * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFsrmFileConditionProperty, get_PropertyId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PropertyId )( + __RPC__in IFsrmFileConditionProperty * This, + /* [retval][out] */ __RPC__out FsrmFileSystemPropertyId *pVal); + + DECLSPEC_XFGVIRT(IFsrmFileConditionProperty, put_PropertyId) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PropertyId )( + __RPC__in IFsrmFileConditionProperty * This, + /* [in] */ FsrmFileSystemPropertyId newVal); + + DECLSPEC_XFGVIRT(IFsrmFileConditionProperty, get_Operator) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Operator )( + __RPC__in IFsrmFileConditionProperty * This, + /* [retval][out] */ __RPC__out FsrmPropertyConditionType *pVal); + + DECLSPEC_XFGVIRT(IFsrmFileConditionProperty, put_Operator) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Operator )( + __RPC__in IFsrmFileConditionProperty * This, + /* [in] */ FsrmPropertyConditionType newVal); + + DECLSPEC_XFGVIRT(IFsrmFileConditionProperty, get_ValueType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ValueType )( + __RPC__in IFsrmFileConditionProperty * This, + /* [retval][out] */ __RPC__out FsrmPropertyValueType *pVal); + + DECLSPEC_XFGVIRT(IFsrmFileConditionProperty, put_ValueType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ValueType )( + __RPC__in IFsrmFileConditionProperty * This, + /* [in] */ FsrmPropertyValueType newVal); + + DECLSPEC_XFGVIRT(IFsrmFileConditionProperty, get_Value) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Value )( + __RPC__in IFsrmFileConditionProperty * This, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IFsrmFileConditionProperty, put_Value) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Value )( + __RPC__in IFsrmFileConditionProperty * This, + /* [in] */ VARIANT newVal); + + END_INTERFACE + } IFsrmFileConditionPropertyVtbl; + + interface IFsrmFileConditionProperty + { + CONST_VTBL struct IFsrmFileConditionPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileConditionProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileConditionProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileConditionProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileConditionProperty_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileConditionProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileConditionProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileConditionProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileConditionProperty_get_Type(This,pVal) \ + ( (This)->lpVtbl -> get_Type(This,pVal) ) + +#define IFsrmFileConditionProperty_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + + +#define IFsrmFileConditionProperty_get_PropertyName(This,pVal) \ + ( (This)->lpVtbl -> get_PropertyName(This,pVal) ) + +#define IFsrmFileConditionProperty_put_PropertyName(This,newVal) \ + ( (This)->lpVtbl -> put_PropertyName(This,newVal) ) + +#define IFsrmFileConditionProperty_get_PropertyId(This,pVal) \ + ( (This)->lpVtbl -> get_PropertyId(This,pVal) ) + +#define IFsrmFileConditionProperty_put_PropertyId(This,newVal) \ + ( (This)->lpVtbl -> put_PropertyId(This,newVal) ) + +#define IFsrmFileConditionProperty_get_Operator(This,pVal) \ + ( (This)->lpVtbl -> get_Operator(This,pVal) ) + +#define IFsrmFileConditionProperty_put_Operator(This,newVal) \ + ( (This)->lpVtbl -> put_Operator(This,newVal) ) + +#define IFsrmFileConditionProperty_get_ValueType(This,pVal) \ + ( (This)->lpVtbl -> get_ValueType(This,pVal) ) + +#define IFsrmFileConditionProperty_put_ValueType(This,newVal) \ + ( (This)->lpVtbl -> put_ValueType(This,newVal) ) + +#define IFsrmFileConditionProperty_get_Value(This,pVal) \ + ( (This)->lpVtbl -> get_Value(This,pVal) ) + +#define IFsrmFileConditionProperty_put_Value(This,newVal) \ + ( (This)->lpVtbl -> put_Value(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileConditionProperty_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_fsrmreports_0000_0009 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmreports_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmreports_0000_0009_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmreports.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmreports.idl new file mode 100644 index 0000000000000000000000000000000000000000..0173c8025a6b9dc0515c2312e8b8cb4f9e455ab3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmreports.idl @@ -0,0 +1,642 @@ +////////////////////////////////////// +// Imports +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; + +import "fsrmenums.idl"; +import "fsrm.idl"; + + +////////////////////////////////////// +// Forward declarations +// + +interface IFsrmReportManager; +interface IFsrmReportJob; +interface IFsrmReport; +interface IFsrmFileManagementJobManager; +interface IFsrmFileManagementJob; +interface IFsrmPropertyCondition; + + +////////////////////////////////////// +// Dispatch IDs +// + +#define FSRM_PROPERTY(x) x | FSRM_DISPID_IS_PROPERTY + +// Dispatch ID base of storage report interfaces +const DISPID FSRM_DISPID_REPORT_MANAGER = FSRM_DISPID_FEATURE_REPORTS | 0x100000; +const DISPID FSRM_DISPID_REPORT_JOB = FSRM_DISPID_FEATURE_REPORTS | 0x200000; +const DISPID FSRM_DISPID_REPORT = FSRM_DISPID_FEATURE_REPORTS | 0x300000; +const DISPID FSRM_DISPID_REPORT_SCHEDULER = FSRM_DISPID_FEATURE_REPORTS | 0x400000; + +const DISPID FSRM_DISPID_FILE_MANAGEMENT_JOB_MANAGER + = FSRM_DISPID_FEATURE_REPORTS | 0x500000; +const DISPID FSRM_DISPID_FILE_MANAGEMENT_JOB + = FSRM_DISPID_FEATURE_REPORTS | 0x600000; +const DISPID FSRM_DISPID_FILE_MANAGEMENT_NOTIFICATION + = FSRM_DISPID_FEATURE_REPORTS | 0x700000; +const DISPID FSRM_DISPID_PROPERTY_CONDITION + = FSRM_DISPID_FEATURE_REPORTS | 0x800000; +const DISPID FSRM_DISPID_FILE_CONDITION + = FSRM_DISPID_FEATURE_REPORTS | 0x900000; +const DISPID FSRM_DISPID_FILE_CONDITION_PROPERTY + = FSRM_DISPID_FEATURE_REPORTS | 0xA00000; +const DISPID FSRM_DISPID_FILE_MANAGEMENT_JOB_2 + = FSRM_DISPID_FEATURE_REPORTS | 0xB00000; + + +////////////////////////////////////// +// Interfaces +// + +[ + odl, + uuid(27b899fe-6ffa-4481-a184-d3daade8a02b), + version(1.0), + dual, + oleautomation +] +interface IFsrmReportManager : IDispatch { + + // Methods + + [id(FSRM_DISPID_REPORT_MANAGER | 0x01), helpstring("This method is used to enumerate report jobs")] + HRESULT EnumReportJobs( + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCollection **reportJobs); + + [id(FSRM_DISPID_REPORT_MANAGER | 0x02), helpstring("This method is used to create a new report job")] + HRESULT CreateReportJob( + [out, retval] IFsrmReportJob **reportJob); + + [id(FSRM_DISPID_REPORT_MANAGER | 0x03), helpstring("This method is used to get a report job having a specific scheduled task name")] + HRESULT GetReportJob( + [in] BSTR taskName, + [out, retval] IFsrmReportJob **reportJob); + + [id(FSRM_DISPID_REPORT_MANAGER | 0x04), helpstring("This method is used to get the output directory of generated reports in the specified context")] + HRESULT GetOutputDirectory( + [in] FsrmReportGenerationContext context, + [out, retval] BSTR *path); + + [id(FSRM_DISPID_REPORT_MANAGER | 0x05), helpstring("This method is used to set the output directory of generated reports in the specified context")] + HRESULT SetOutputDirectory( + [in] FsrmReportGenerationContext context, + [in] BSTR path); + + [id(FSRM_DISPID_REPORT_MANAGER | 0x06), helpstring("This method is used to indicate whether a specified filter name is valid for the specified report type")] + HRESULT IsFilterValidForReportType( + [in] FsrmReportType reportType, + [in] FsrmReportFilter filter, + [out, retval] VARIANT_BOOL *valid); + + [id(FSRM_DISPID_REPORT_MANAGER | 0x07), helpstring("This method is used to get the default value of the specified filter for the specified report type")] + HRESULT GetDefaultFilter( + [in] FsrmReportType reportType, + [in] FsrmReportFilter filter, + [out, retval] VARIANT *filterValue); + + [id(FSRM_DISPID_REPORT_MANAGER | 0x08), helpstring("This method is used to set the default value of the specified filter for the specified report type")] + HRESULT SetDefaultFilter( + [in] FsrmReportType reportType, + [in] FsrmReportFilter filter, + [in] VARIANT filterValue); + + [id(FSRM_DISPID_REPORT_MANAGER | 0x09), helpstring("This method is used to get the default value of the specified limit for the specified report")] + HRESULT GetReportSizeLimit( + [in] FsrmReportLimit limit, + [out, retval] VARIANT *limitValue); + + [id(FSRM_DISPID_REPORT_MANAGER | 0x0A), helpstring("This method is used to set the default value of the specified limit for the specified report")] + HRESULT SetReportSizeLimit( + [in] FsrmReportLimit limit, + [in] VARIANT limitValue); + +}; + + +[ + odl, + uuid(38e87280-715c-4c7d-a280-ea1651a19fef), + version(1.0), + dual, + oleautomation +] +interface IFsrmReportJob : IFsrmObject { + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x01)), helpstring("This property is the name of the scheduled task associated with the report job")] + HRESULT Task([out, retval] BSTR *taskName); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x01)), helpstring("This property is the name of the scheduled task associated with the report job")] + HRESULT Task([in] BSTR taskName); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x02)), helpstring("This property contains the paths on which the reports will run")] + HRESULT NamespaceRoots([out, retval] SAFEARRAY(VARIANT) *namespaceRoots); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x02)), helpstring("This property contains the paths on which the reports will run")] + HRESULT NamespaceRoots([in] SAFEARRAY(VARIANT) namespaceRoots); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x03)), helpstring("This property contains the formats in which the generate the reports")] + HRESULT Formats([out, retval] SAFEARRAY(VARIANT) *formats); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x03)), helpstring("This property contains the formats in which the generate the reports")] + HRESULT Formats([in] SAFEARRAY(VARIANT) formats); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x04)), helpstring("This property is the e-mail address to which to send the reports, if any")] + HRESULT MailTo([out, retval] BSTR *mailTo); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x04)), helpstring("This property is the e-mail address to which to send the reports, if any")] + HRESULT MailTo([in] BSTR mailTo); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x05)), helpstring("This property indicates the run status of the report job")] + HRESULT RunningStatus([out, retval] FsrmReportRunningStatus *runningStatus); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x06)), helpstring("This property indicates the last time the report job was run")] + HRESULT LastRun([out, retval] DATE *lastRun); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x07)), helpstring("This property indicates the last error that occurred when the report job was last run, if any")] + HRESULT LastError([out, retval] BSTR *lastError); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT_JOB | 0x08)), helpstring("This property indicates the directory in which the files were generated when the report job was last run")] + HRESULT LastGeneratedInDirectory([out, retval] BSTR *path); + + + // Methods + + [id(FSRM_DISPID_REPORT_JOB | 0x01), helpstring("This method is used to enumerate reports belonging to the report job")] + HRESULT EnumReports([out, retval] IFsrmCollection **reports); + + [id(FSRM_DISPID_REPORT_JOB | 0x02), helpstring("This method is used to create a report of the specificied type")] + HRESULT CreateReport( + [in] FsrmReportType reportType, + [out, retval] IFsrmReport **report); + + [id(FSRM_DISPID_REPORT_JOB | 0x03), helpstring("This method is used to run all the reports in the report job in the specified context")] + HRESULT Run([in] FsrmReportGenerationContext context); + + [id(FSRM_DISPID_REPORT_JOB | 0x04), helpstring("This method is used to wait for the specified period of time or until all reports in the job are finished running and return whether or not the job is still running")] + HRESULT WaitForCompletion( + [in] long waitSeconds, + [out, retval] VARIANT_BOOL *completed); + + [id(FSRM_DISPID_REPORT_JOB | 0x05), helpstring("This method cancels a currently running report job")] + HRESULT Cancel(); + +}; + + +[ + odl, + uuid(d8cc81d9-46b8-4fa4-bfa5-4aa9dec9b638), + version(1.0), + dual, + oleautomation +] +interface IFsrmReport : IDispatch { + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT | 0x01)), helpstring("This property is the type of the report")] + HRESULT Type([out, retval] FsrmReportType *reportType); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT | 0x02)), helpstring("This property is the name of the report")] + HRESULT Name([out, retval] BSTR *name); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_REPORT | 0x02)), helpstring("This property is the name of the report")] + HRESULT Name([in] BSTR name); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT | 0x03)), helpstring("This property is the description of the report")] + HRESULT Description([out, retval] BSTR *description); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_REPORT | 0x03)), helpstring("This property is the description of the report")] + HRESULT Description([in] BSTR description); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_REPORT | 0x04)), helpstring("This property indicates the filename prefixes of the files that were generated by this report when the report was last run")] + HRESULT LastGeneratedFileNamePrefix([out, retval] BSTR *prefix); + + + // Methods + + [id(FSRM_DISPID_REPORT | 0x01), helpstring("This method is used to get the value of the specified filter")] + HRESULT GetFilter( + [in] FsrmReportFilter filter, + [out, retval] VARIANT *filterValue); + + [id(FSRM_DISPID_REPORT | 0x02), helpstring("This method is used to set the value of the specified filter")] + HRESULT SetFilter( + [in] FsrmReportFilter filter, + [in] VARIANT filterValue); + + [id(FSRM_DISPID_REPORT | 0x03), helpstring("This method removes the report from the report job")] + HRESULT Delete(); + +}; + + +[ + odl, + uuid(6879caf9-6617-4484-8719-71c3d8645f94), + version(1.0), + dual, + oleautomation +] +interface IFsrmReportScheduler : IDispatch +{ + + // Methods + + [id(FSRM_DISPID_REPORT_SCHEDULER | 0x01), helpstring("This method is used to verify that the array of namespaces exist and are valid, supported namespaces")] + HRESULT VerifyNamespaces([in] VARIANT* namespacesSafeArray); + + [id(FSRM_DISPID_REPORT_SCHEDULER | 0x02), helpstring("This method is used to create a scheduled task for a report on the local machine or in a cluster")] + HRESULT CreateScheduleTask( + [in] BSTR taskName, + [in] VARIANT* namespacesSafeArray, + [in] BSTR serializedTask); + + [id(FSRM_DISPID_REPORT_SCHEDULER | 0x03), helpstring("This method is used to modify a scheduled task for a report on the local machine or in a cluster")] + HRESULT ModifyScheduleTask( + [in] BSTR taskName, + [in] VARIANT* namespacesSafeArray, + [in] BSTR serializedTask); + + [id(FSRM_DISPID_REPORT_SCHEDULER | 0x04), helpstring("This method is used to delete a scheduled task for a report on the local machine or in a cluster")] + HRESULT DeleteScheduleTask([in] BSTR taskName); + +}; + + +[ + odl, + uuid(ee321ecb-d95e-48e9-907c-c7685a013235), + version(1.0), + dual, + oleautomation +] +interface IFsrmFileManagementJobManager : IDispatch +{ + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB_MANAGER | 0x01)), helpstring("This method is used enumerate the runtime expanded variables available for file management jobs")] + HRESULT ActionVariables([out, retval] SAFEARRAY(VARIANT) *variables); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB_MANAGER | 0x02)), helpstring("This method is used enumerate the descriptions of the runtime expanded variables available for file management jobs")] + HRESULT ActionVariableDescriptions([out, retval] SAFEARRAY(VARIANT) *descriptions); + + // Methods + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB_MANAGER | 0x1), helpstring("Enumerate the list of existing file management jobs")] + HRESULT EnumFileManagementJobs( + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCollection **fileManagementJobs); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB_MANAGER | 0x2), helpstring("Create a new file management job")] + HRESULT CreateFileManagementJob( + [out, retval] IFsrmFileManagementJob** fileManagementJob); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB_MANAGER | 0x3), helpstring("Get an existing file management job using name")] + HRESULT GetFileManagementJob( + [in] BSTR name, + [out, retval] IFsrmFileManagementJob** fileManagementJob); + +}; + + +[ + odl, + uuid(0770687e-9f36-4d6f-8778-599d188461c9), + version(1.0), + dual, + oleautomation +] +interface IFsrmFileManagementJob : IFsrmObject { + + const LONG FsrmDaysNotSpecified = -1; + + const DATE FsrmDateNotSpecified = ((DATE) -1); + + // + // Properties + // + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x01)), helpstring("This property specifies the name of the file management job")] + HRESULT Name([out, retval] BSTR *name); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x01)), helpstring("This property specifies the name of the file management job")] + HRESULT Name([in] BSTR name); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x02)), helpstring("This property contains the paths on which the job will run")] + HRESULT NamespaceRoots([out, retval] SAFEARRAY(VARIANT) *namespaceRoots); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x02)), helpstring("This property contains the paths on which the job will run")] + HRESULT NamespaceRoots([in] SAFEARRAY(VARIANT) namespaceRoots); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x03)), helpstring("This property specifies whether this job is enabled or not")] + HRESULT Enabled([out, retval] VARIANT_BOOL *enabled); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x03)), helpstring("This property specifies whether this job is enabled or not")] + HRESULT Enabled([in] VARIANT_BOOL enabled); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x04)), helpstring("This property specifies the operation to perform on a file when all conditions are met")] + HRESULT OperationType([out, retval] FsrmFileManagementType *operationType); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x04)), helpstring("This property specifies the operation to perform on a file when all conditions are met")] + HRESULT OperationType([in] FsrmFileManagementType operationType); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x05)), helpstring("This property specifies the root directory for moving expired files to, when all the conditions are met and expiration is enabled")] + HRESULT ExpirationDirectory([out, retval] BSTR *expirationDirectory); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x05)), helpstring("This property specifies the root directory for moving expired files to, when all the conditions are met and expiration is enabled")] + HRESULT ExpirationDirectory([in] BSTR expirationDirectory); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x06)), helpstring("The property specifies the action to execute, when all the conditions are met and custom action is enabled")] + HRESULT CustomAction([out, retval] IFsrmActionCommand **action); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x07)), helpstring("This property specifies the list of notifications to perform before the operation is performed")] + HRESULT Notifications([out, retval] SAFEARRAY(VARIANT) *notifications); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x08)), helpstring("This property specifies the type(s) of logging, using FsrmFileManagementLoggingFlags")] + HRESULT Logging([out, retval] long *loggingFlags); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x08)), helpstring("This property specifies the type(s) of logging, using FsrmFileManagementLoggingFlags")] + HRESULT Logging([in] long loggingFlags); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x09)), helpstring("This property specifies whether reporting is enabled")] + HRESULT ReportEnabled([out, retval] VARIANT_BOOL *reportEnabled); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x09)), helpstring("This property specifies whether reporting is enabled")] + HRESULT ReportEnabled([in] VARIANT_BOOL reportEnabled); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0a)), helpstring("This property contains the formats of the report to generate")] + HRESULT Formats([out, retval] SAFEARRAY(VARIANT) *formats); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0a)), helpstring("This property contains the formats of the report to generate")] + HRESULT Formats([in] SAFEARRAY(VARIANT) formats); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0b)), helpstring("This property is the e-mail address(es), delimited by semi-colon, to which to send the reports, if any")] + HRESULT MailTo([out, retval] BSTR *mailTo); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0b)), helpstring("This property is the e-mail address(es), delimited by semi-colon, to which to send the reports, if any")] + HRESULT MailTo([in] BSTR mailTo); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0c)), helpstring("This property specifies a condition: minimum number of days elapsed since a file is created. FsrmDaysNotSpecified indicates this condition is disabled.")] + HRESULT DaysSinceFileCreated([out, retval] long *daysSinceCreation); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0c)), helpstring("This property specifies a condition: minimum number of days elapsed since a file is created. FsrmDaysNotSpecified indicates this condition is disabled.")] + HRESULT DaysSinceFileCreated([in] long daysSinceCreation); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0d)), helpstring("This property specifies a condition: minimum number of days elapsed since a file is last accessed. FsrmDaysNotSpecified indicates this condition is disabled.")] + HRESULT DaysSinceFileLastAccessed([out, retval] long *daysSinceAccess); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0d)), helpstring("This property specifies a condition: minimum number of days elapsed since a file is last accessed. FsrmDaysNotSpecified indicates this condition is disabled.")] + HRESULT DaysSinceFileLastAccessed([in] long daysSinceAccess); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0e)), helpstring("This property specifies a condition: minimum number of days elapsed since a file is last modified. FsrmDaysNotSpecified indicates this condition is disabled.")] + HRESULT DaysSinceFileLastModified([out, retval] long *daysSinceModify); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0e)), helpstring("This property specifies a condition: minimum number of days elapsed since a file is last modified. FsrmDaysNotSpecified indicates this condition is disabled.")] + HRESULT DaysSinceFileLastModified([in] long daysSinceModify); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x0f)), helpstring("This property specifies a list of FSRM property conditions")] + HRESULT PropertyConditions([out, retval] IFsrmCollection **propertyConditions); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x10)), helpstring("This property specifies a condition: The date from which the file management operation should be executed. FsrmDateNotSpecified indicates this condition is disabled.")] + HRESULT FromDate([out, retval] DATE *fromDate); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x10)), helpstring("This property specifies a condition: The date from which the file management operation should be executed. FsrmDateNotSpecified indicates this condition is disabled.")] + HRESULT FromDate([in] DATE fromDate); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x11)), helpstring("This property is the name of the scheduled task associated with the job")] + HRESULT Task([out, retval] BSTR *taskName); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x11)), helpstring("This property is the name of the scheduled task associated with the job")] + HRESULT Task([in] BSTR taskName); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x12)), helpstring("This property contains the parameters for the file management job")] + HRESULT Parameters([out, retval] SAFEARRAY(VARIANT) *parameters); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x12)), helpstring("This property contains the parameters for the file management job")] + HRESULT Parameters([in] SAFEARRAY(VARIANT) parameters); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x13)), helpstring("This property is the running status of the job")] + HRESULT RunningStatus([out, retval] FsrmReportRunningStatus *runningStatus); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x14)), helpstring("This property is the last error of the job")] + HRESULT LastError([out, retval] BSTR *lastError); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x15)), helpstring("This property is the last report path without extension")] + HRESULT LastReportPathWithoutExtension([out, retval] BSTR* path); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x16)), helpstring("This property indicates the last time the file management job was run")] + HRESULT LastRun([out, retval] DATE *lastRun); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x17)), helpstring("This property specifies a condition: wildcard filter for names. Empty string indicates this condition is disabled.")] + HRESULT FileNamePattern([out, retval] BSTR *fileNamePattern); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x17)), helpstring("This property specifies a condition: wildcard filter for names. Empty string indicates this condition is disabled.")] + HRESULT FileNamePattern([in] BSTR fileNamePattern); + + // + // Methods + // + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x01), helpstring("This method is used to run the job in the specified context")] + HRESULT Run([in] FsrmReportGenerationContext context); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x02), helpstring("This method is used to wait for the specified period of time or until the job has finished running and return whether or not the job is still running")] + HRESULT WaitForCompletion( + [in] long waitSeconds, + [out, retval] VARIANT_BOOL *completed); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x03), helpstring("This method cancels a currently running job")] + HRESULT Cancel(); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x04), helpstring("This method is used to add a new notification value")] + HRESULT AddNotification([in] long days); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x05), helpstring("This method is used to delete a notification")] + HRESULT DeleteNotification([in] long days); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x06), helpstring("This method is used to modify a notification")] + HRESULT ModifyNotification( + [in] long days, + [in] long newDays); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x07), helpstring("This method is used to create a notification action of a specific type")] + HRESULT CreateNotificationAction( + [in] long days, + [in] FsrmActionType actionType, + [out, retval] IFsrmAction **action); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB | 0x08), helpstring("This method is used to enumerate notification actions")] + HRESULT EnumNotificationActions( + [in] long days, + [out, retval] IFsrmCollection **actions); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB_MANAGER | 0x09), helpstring("This method create a new IFsrmPropertyCondition object and add it to the PropertyConditions collection.")] + HRESULT CreatePropertyCondition( + [in] BSTR name, + [out, retval] IFsrmPropertyCondition** propertyCondition); + + [id(FSRM_DISPID_FILE_MANAGEMENT_JOB_MANAGER | 0x0a), helpstring("This method create a new IFsrmActionCommand object and set it to the CustomAction property.")] + HRESULT CreateCustomAction( + [out, retval] IFsrmActionCommand** customAction); + +}; + + +[ + odl, + uuid(326af66f-2ac0-4f68-bf8c-4759f054fa29), + version(1.0), + dual, + oleautomation +] +interface IFsrmPropertyCondition : IDispatch { + + // + // Properties + // + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_CONDITION | 0x01)), helpstring("This property specifies the name of the property")] + HRESULT Name([out, retval] BSTR *name); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_CONDITION | 0x01)), helpstring("This property specifies the name of the property")] + HRESULT Name([in] BSTR name); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_CONDITION | 0x02)), helpstring("This property specifies the type of the condition")] + HRESULT Type([out, retval] FsrmPropertyConditionType *type); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_CONDITION | 0x02)), helpstring("This property specifies the type of the condition")] + HRESULT Type([in] FsrmPropertyConditionType type); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_CONDITION | 0x03)), helpstring("This property specifies the condition value")] + HRESULT Value([out, retval] BSTR *value); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_PROPERTY_CONDITION | 0x03)), helpstring("This property specifies the condition value")] + HRESULT Value([in] BSTR value); + + + // + // Methods + // + + [id(FSRM_DISPID_PROPERTY_CONDITION | 0x01), helpstring("This method is used to delete a property condition")] + HRESULT Delete(); + +}; + + +[ + odl, + uuid(70684FFC-691A-4A1A-B922-97752E138CC1), + version(1.0), + dual, + oleautomation +] +interface IFsrmFileCondition : IDispatch { + + // + // Properties + // + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION | 0x01)), helpstring("This property specifies the type of the condition")] + HRESULT Type([out, retval] FsrmFileConditionType* pVal); + + // + // Methods + // + + [id(FSRM_DISPID_FILE_CONDITION | 0x01), helpstring("This method deletes a file condition")] + HRESULT Delete(); +}; + + +[ + odl, + uuid(81926775-B981-4479-988F-DA171D627360), + version(1.0), + dual, + oleautomation +] +interface IFsrmFileConditionProperty : IFsrmFileCondition { + + // + // Properties + // + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION_PROPERTY | 0x01)), helpstring("This property specifies the name of the classification property")] + HRESULT PropertyName([out, retval] BSTR* pVal); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION_PROPERTY | 0x01)), helpstring("This property specifies the name of the classification property")] + HRESULT PropertyName([in] BSTR newVal); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION_PROPERTY | 0x02)), helpstring("This property specifies the predefined file property")] + HRESULT PropertyId([out, retval] FsrmFileSystemPropertyId* pVal); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION_PROPERTY | 0x02)), helpstring("This property specifies the predefined file property")] + HRESULT PropertyId([in] FsrmFileSystemPropertyId newVal); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION_PROPERTY | 0x03)), helpstring("This property specifies the comparison operator")] + HRESULT Operator([out, retval] FsrmPropertyConditionType* pVal); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION_PROPERTY | 0x03)), helpstring("This property specifies the comparison operator")] + HRESULT Operator([in] FsrmPropertyConditionType newVal); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION_PROPERTY | 0x04)), helpstring("This property specifies the type of the value")] + HRESULT ValueType([out, retval] FsrmPropertyValueType* pVal); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION_PROPERTY | 0x04)), helpstring("This property specifies the type of the value")] + HRESULT ValueType([in] FsrmPropertyValueType newVal); + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION_PROPERTY | 0x05)), helpstring("This property specifies the value")] + HRESULT Value([out, retval] VARIANT* pVal); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILE_CONDITION_PROPERTY | 0x05)), helpstring("This property specifies the value")] + HRESULT Value([in] VARIANT newVal); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmscreen.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmscreen.h new file mode 100644 index 0000000000000000000000000000000000000000..c1503250e613393c92362891ad95bbd25671b5c7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmscreen.h @@ -0,0 +1,2568 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __fsrmscreen_h__ +#define __fsrmscreen_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFsrmFileGroup_FWD_DEFINED__ +#define __IFsrmFileGroup_FWD_DEFINED__ +typedef interface IFsrmFileGroup IFsrmFileGroup; + +#endif /* __IFsrmFileGroup_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileGroupImported_FWD_DEFINED__ +#define __IFsrmFileGroupImported_FWD_DEFINED__ +typedef interface IFsrmFileGroupImported IFsrmFileGroupImported; + +#endif /* __IFsrmFileGroupImported_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileGroupManager_FWD_DEFINED__ +#define __IFsrmFileGroupManager_FWD_DEFINED__ +typedef interface IFsrmFileGroupManager IFsrmFileGroupManager; + +#endif /* __IFsrmFileGroupManager_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileScreenBase_FWD_DEFINED__ +#define __IFsrmFileScreenBase_FWD_DEFINED__ +typedef interface IFsrmFileScreenBase IFsrmFileScreenBase; + +#endif /* __IFsrmFileScreenBase_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileScreen_FWD_DEFINED__ +#define __IFsrmFileScreen_FWD_DEFINED__ +typedef interface IFsrmFileScreen IFsrmFileScreen; + +#endif /* __IFsrmFileScreen_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileScreenException_FWD_DEFINED__ +#define __IFsrmFileScreenException_FWD_DEFINED__ +typedef interface IFsrmFileScreenException IFsrmFileScreenException; + +#endif /* __IFsrmFileScreenException_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileScreenManager_FWD_DEFINED__ +#define __IFsrmFileScreenManager_FWD_DEFINED__ +typedef interface IFsrmFileScreenManager IFsrmFileScreenManager; + +#endif /* __IFsrmFileScreenManager_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileScreenTemplate_FWD_DEFINED__ +#define __IFsrmFileScreenTemplate_FWD_DEFINED__ +typedef interface IFsrmFileScreenTemplate IFsrmFileScreenTemplate; + +#endif /* __IFsrmFileScreenTemplate_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileScreenTemplateImported_FWD_DEFINED__ +#define __IFsrmFileScreenTemplateImported_FWD_DEFINED__ +typedef interface IFsrmFileScreenTemplateImported IFsrmFileScreenTemplateImported; + +#endif /* __IFsrmFileScreenTemplateImported_FWD_DEFINED__ */ + + +#ifndef __IFsrmFileScreenTemplateManager_FWD_DEFINED__ +#define __IFsrmFileScreenTemplateManager_FWD_DEFINED__ +typedef interface IFsrmFileScreenTemplateManager IFsrmFileScreenTemplateManager; + +#endif /* __IFsrmFileScreenTemplateManager_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "fsrmenums.h" +#include "fsrm.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_fsrmscreen_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + + + + +#define FSRM_DISPID_FILEGROUP ( ( FSRM_DISPID_FEATURE_FILESCREEN | 0x100000 ) ) + +#define FSRM_DISPID_FILEGROUP_IMPORTED ( ( FSRM_DISPID_FILEGROUP | 0x10000 ) ) + +#define FSRM_DISPID_FILEGROUP_MANAGER ( ( FSRM_DISPID_FEATURE_FILESCREEN | 0x200000 ) ) + +#define FSRM_DISPID_FILESCREEN_BASE ( ( FSRM_DISPID_FEATURE_FILESCREEN | 0x300000 ) ) + +#define FSRM_DISPID_FILESCREEN ( ( FSRM_DISPID_FILESCREEN_BASE | 0x10000 ) ) + +#define FSRM_DISPID_FILESCREEN_TEMPLATE ( ( FSRM_DISPID_FILESCREEN_BASE | 0x20000 ) ) + +#define FSRM_DISPID_FILESCREEN_TEMPLATE_IMPORTED ( ( FSRM_DISPID_FILESCREEN_TEMPLATE | 0x1000 ) ) + +#define FSRM_DISPID_FILESCREEN_EXCEPTION ( ( FSRM_DISPID_FEATURE_FILESCREEN | 0x400000 ) ) + +#define FSRM_DISPID_FILESCREEN_MANAGER ( ( FSRM_DISPID_FEATURE_FILESCREEN | 0x500000 ) ) + +#define FSRM_DISPID_FILESCREEN_TEMPLATE_MANAGER ( ( FSRM_DISPID_FEATURE_FILESCREEN | 0x600000 ) ) + + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmscreen_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmscreen_0000_0000_v0_0_s_ifspec; + +#ifndef __IFsrmFileGroup_INTERFACE_DEFINED__ +#define __IFsrmFileGroup_INTERFACE_DEFINED__ + +/* interface IFsrmFileGroup */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmFileGroup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8dd04909-0e34-4d55-afaa-89e1f1a1bbb9") + IFsrmFileGroup : public IFsrmObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Members( + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **members) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Members( + /* [in] */ __RPC__in_opt IFsrmMutableCollection *members) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NonMembers( + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **nonMembers) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_NonMembers( + /* [in] */ __RPC__in_opt IFsrmMutableCollection *nonMembers) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileGroupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileGroup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileGroup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileGroup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileGroup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileGroup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileGroup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmFileGroup * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmFileGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmFileGroup * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmFileGroup * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmFileGroup * This); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmFileGroup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmFileGroup * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, get_Members) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Members )( + __RPC__in IFsrmFileGroup * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **members); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, put_Members) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Members )( + __RPC__in IFsrmFileGroup * This, + /* [in] */ __RPC__in_opt IFsrmMutableCollection *members); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, get_NonMembers) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NonMembers )( + __RPC__in IFsrmFileGroup * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **nonMembers); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, put_NonMembers) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NonMembers )( + __RPC__in IFsrmFileGroup * This, + /* [in] */ __RPC__in_opt IFsrmMutableCollection *nonMembers); + + END_INTERFACE + } IFsrmFileGroupVtbl; + + interface IFsrmFileGroup + { + CONST_VTBL struct IFsrmFileGroupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileGroup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileGroup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileGroup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileGroup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileGroup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileGroup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileGroup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileGroup_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmFileGroup_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmFileGroup_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmFileGroup_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmFileGroup_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmFileGroup_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmFileGroup_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmFileGroup_get_Members(This,members) \ + ( (This)->lpVtbl -> get_Members(This,members) ) + +#define IFsrmFileGroup_put_Members(This,members) \ + ( (This)->lpVtbl -> put_Members(This,members) ) + +#define IFsrmFileGroup_get_NonMembers(This,nonMembers) \ + ( (This)->lpVtbl -> get_NonMembers(This,nonMembers) ) + +#define IFsrmFileGroup_put_NonMembers(This,nonMembers) \ + ( (This)->lpVtbl -> put_NonMembers(This,nonMembers) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileGroup_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileGroupImported_INTERFACE_DEFINED__ +#define __IFsrmFileGroupImported_INTERFACE_DEFINED__ + +/* interface IFsrmFileGroupImported */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmFileGroupImported; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ad55f10b-5f11-4be7-94ef-d9ee2e470ded") + IFsrmFileGroupImported : public IFsrmFileGroup + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OverwriteOnCommit( + /* [retval][out] */ __RPC__out VARIANT_BOOL *overwrite) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OverwriteOnCommit( + /* [in] */ VARIANT_BOOL overwrite) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileGroupImportedVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileGroupImported * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileGroupImported * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileGroupImported * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileGroupImported * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileGroupImported * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileGroupImported * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileGroupImported * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmFileGroupImported * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmFileGroupImported * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmFileGroupImported * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmFileGroupImported * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmFileGroupImported * This); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmFileGroupImported * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmFileGroupImported * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, get_Members) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Members )( + __RPC__in IFsrmFileGroupImported * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **members); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, put_Members) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Members )( + __RPC__in IFsrmFileGroupImported * This, + /* [in] */ __RPC__in_opt IFsrmMutableCollection *members); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, get_NonMembers) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NonMembers )( + __RPC__in IFsrmFileGroupImported * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **nonMembers); + + DECLSPEC_XFGVIRT(IFsrmFileGroup, put_NonMembers) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_NonMembers )( + __RPC__in IFsrmFileGroupImported * This, + /* [in] */ __RPC__in_opt IFsrmMutableCollection *nonMembers); + + DECLSPEC_XFGVIRT(IFsrmFileGroupImported, get_OverwriteOnCommit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OverwriteOnCommit )( + __RPC__in IFsrmFileGroupImported * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *overwrite); + + DECLSPEC_XFGVIRT(IFsrmFileGroupImported, put_OverwriteOnCommit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OverwriteOnCommit )( + __RPC__in IFsrmFileGroupImported * This, + /* [in] */ VARIANT_BOOL overwrite); + + END_INTERFACE + } IFsrmFileGroupImportedVtbl; + + interface IFsrmFileGroupImported + { + CONST_VTBL struct IFsrmFileGroupImportedVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileGroupImported_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileGroupImported_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileGroupImported_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileGroupImported_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileGroupImported_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileGroupImported_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileGroupImported_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileGroupImported_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmFileGroupImported_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmFileGroupImported_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmFileGroupImported_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmFileGroupImported_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmFileGroupImported_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmFileGroupImported_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmFileGroupImported_get_Members(This,members) \ + ( (This)->lpVtbl -> get_Members(This,members) ) + +#define IFsrmFileGroupImported_put_Members(This,members) \ + ( (This)->lpVtbl -> put_Members(This,members) ) + +#define IFsrmFileGroupImported_get_NonMembers(This,nonMembers) \ + ( (This)->lpVtbl -> get_NonMembers(This,nonMembers) ) + +#define IFsrmFileGroupImported_put_NonMembers(This,nonMembers) \ + ( (This)->lpVtbl -> put_NonMembers(This,nonMembers) ) + + +#define IFsrmFileGroupImported_get_OverwriteOnCommit(This,overwrite) \ + ( (This)->lpVtbl -> get_OverwriteOnCommit(This,overwrite) ) + +#define IFsrmFileGroupImported_put_OverwriteOnCommit(This,overwrite) \ + ( (This)->lpVtbl -> put_OverwriteOnCommit(This,overwrite) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileGroupImported_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileGroupManager_INTERFACE_DEFINED__ +#define __IFsrmFileGroupManager_INTERFACE_DEFINED__ + +/* interface IFsrmFileGroupManager */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmFileGroupManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("426677d5-018c-485c-8a51-20b86d00bdc4") + IFsrmFileGroupManager : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateFileGroup( + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileGroup **fileGroup) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetFileGroup( + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileGroup **fileGroup) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumFileGroups( + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileGroups) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExportFileGroups( + /* [defaultvalue][in] */ __RPC__in VARIANT *fileGroupNamesArray, + /* [retval][out] */ __RPC__deref_out_opt BSTR *serializedFileGroups) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportFileGroups( + /* [in] */ __RPC__in BSTR serializedFileGroups, + /* [defaultvalue][in] */ __RPC__in VARIANT *fileGroupNamesArray, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileGroups) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileGroupManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileGroupManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileGroupManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileGroupManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileGroupManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileGroupManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileGroupManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileGroupManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmFileGroupManager, CreateFileGroup) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateFileGroup )( + __RPC__in IFsrmFileGroupManager * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileGroup **fileGroup); + + DECLSPEC_XFGVIRT(IFsrmFileGroupManager, GetFileGroup) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFileGroup )( + __RPC__in IFsrmFileGroupManager * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileGroup **fileGroup); + + DECLSPEC_XFGVIRT(IFsrmFileGroupManager, EnumFileGroups) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumFileGroups )( + __RPC__in IFsrmFileGroupManager * This, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileGroups); + + DECLSPEC_XFGVIRT(IFsrmFileGroupManager, ExportFileGroups) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExportFileGroups )( + __RPC__in IFsrmFileGroupManager * This, + /* [defaultvalue][in] */ __RPC__in VARIANT *fileGroupNamesArray, + /* [retval][out] */ __RPC__deref_out_opt BSTR *serializedFileGroups); + + DECLSPEC_XFGVIRT(IFsrmFileGroupManager, ImportFileGroups) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportFileGroups )( + __RPC__in IFsrmFileGroupManager * This, + /* [in] */ __RPC__in BSTR serializedFileGroups, + /* [defaultvalue][in] */ __RPC__in VARIANT *fileGroupNamesArray, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileGroups); + + END_INTERFACE + } IFsrmFileGroupManagerVtbl; + + interface IFsrmFileGroupManager + { + CONST_VTBL struct IFsrmFileGroupManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileGroupManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileGroupManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileGroupManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileGroupManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileGroupManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileGroupManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileGroupManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileGroupManager_CreateFileGroup(This,fileGroup) \ + ( (This)->lpVtbl -> CreateFileGroup(This,fileGroup) ) + +#define IFsrmFileGroupManager_GetFileGroup(This,name,fileGroup) \ + ( (This)->lpVtbl -> GetFileGroup(This,name,fileGroup) ) + +#define IFsrmFileGroupManager_EnumFileGroups(This,options,fileGroups) \ + ( (This)->lpVtbl -> EnumFileGroups(This,options,fileGroups) ) + +#define IFsrmFileGroupManager_ExportFileGroups(This,fileGroupNamesArray,serializedFileGroups) \ + ( (This)->lpVtbl -> ExportFileGroups(This,fileGroupNamesArray,serializedFileGroups) ) + +#define IFsrmFileGroupManager_ImportFileGroups(This,serializedFileGroups,fileGroupNamesArray,fileGroups) \ + ( (This)->lpVtbl -> ImportFileGroups(This,serializedFileGroups,fileGroupNamesArray,fileGroups) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileGroupManager_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileScreenBase_INTERFACE_DEFINED__ +#define __IFsrmFileScreenBase_INTERFACE_DEFINED__ + +/* interface IFsrmFileScreenBase */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmFileScreenBase; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f3637e80-5b22-4a2b-a637-bbb642b41cfc") + IFsrmFileScreenBase : public IFsrmObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockedFileGroups( + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **blockList) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BlockedFileGroups( + /* [in] */ __RPC__in_opt IFsrmMutableCollection *blockList) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FileScreenFlags( + /* [retval][out] */ __RPC__out long *fileScreenFlags) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FileScreenFlags( + /* [in] */ long fileScreenFlags) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateAction( + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumActions( + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileScreenBaseVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileScreenBase * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileScreenBase * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileScreenBase * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileScreenBase * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileScreenBase * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileScreenBase * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileScreenBase * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmFileScreenBase * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmFileScreenBase * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmFileScreenBase * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmFileScreenBase * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmFileScreenBase * This); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, get_BlockedFileGroups) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedFileGroups )( + __RPC__in IFsrmFileScreenBase * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **blockList); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, put_BlockedFileGroups) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedFileGroups )( + __RPC__in IFsrmFileScreenBase * This, + /* [in] */ __RPC__in_opt IFsrmMutableCollection *blockList); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, get_FileScreenFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileScreenFlags )( + __RPC__in IFsrmFileScreenBase * This, + /* [retval][out] */ __RPC__out long *fileScreenFlags); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, put_FileScreenFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileScreenFlags )( + __RPC__in IFsrmFileScreenBase * This, + /* [in] */ long fileScreenFlags); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, CreateAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateAction )( + __RPC__in IFsrmFileScreenBase * This, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, EnumActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumActions )( + __RPC__in IFsrmFileScreenBase * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + END_INTERFACE + } IFsrmFileScreenBaseVtbl; + + interface IFsrmFileScreenBase + { + CONST_VTBL struct IFsrmFileScreenBaseVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileScreenBase_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileScreenBase_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileScreenBase_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileScreenBase_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileScreenBase_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileScreenBase_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileScreenBase_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileScreenBase_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmFileScreenBase_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmFileScreenBase_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmFileScreenBase_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmFileScreenBase_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmFileScreenBase_get_BlockedFileGroups(This,blockList) \ + ( (This)->lpVtbl -> get_BlockedFileGroups(This,blockList) ) + +#define IFsrmFileScreenBase_put_BlockedFileGroups(This,blockList) \ + ( (This)->lpVtbl -> put_BlockedFileGroups(This,blockList) ) + +#define IFsrmFileScreenBase_get_FileScreenFlags(This,fileScreenFlags) \ + ( (This)->lpVtbl -> get_FileScreenFlags(This,fileScreenFlags) ) + +#define IFsrmFileScreenBase_put_FileScreenFlags(This,fileScreenFlags) \ + ( (This)->lpVtbl -> put_FileScreenFlags(This,fileScreenFlags) ) + +#define IFsrmFileScreenBase_CreateAction(This,actionType,action) \ + ( (This)->lpVtbl -> CreateAction(This,actionType,action) ) + +#define IFsrmFileScreenBase_EnumActions(This,actions) \ + ( (This)->lpVtbl -> EnumActions(This,actions) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileScreenBase_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileScreen_INTERFACE_DEFINED__ +#define __IFsrmFileScreen_INTERFACE_DEFINED__ + +/* interface IFsrmFileScreen */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmFileScreen; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5f6325d3-ce88-4733-84c1-2d6aefc5ea07") + IFsrmFileScreen : public IFsrmFileScreenBase + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *path) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SourceTemplateName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *fileScreenTemplateName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MatchesSourceTemplate( + /* [retval][out] */ __RPC__out VARIANT_BOOL *matches) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UserSid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *userSid) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UserAccount( + /* [retval][out] */ __RPC__deref_out_opt BSTR *userAccount) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ApplyTemplate( + /* [in] */ __RPC__in BSTR fileScreenTemplateName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileScreenVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileScreen * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileScreen * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileScreen * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileScreen * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileScreen * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileScreen * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileScreen * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmFileScreen * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmFileScreen * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmFileScreen * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmFileScreen * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmFileScreen * This); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, get_BlockedFileGroups) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedFileGroups )( + __RPC__in IFsrmFileScreen * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **blockList); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, put_BlockedFileGroups) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedFileGroups )( + __RPC__in IFsrmFileScreen * This, + /* [in] */ __RPC__in_opt IFsrmMutableCollection *blockList); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, get_FileScreenFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileScreenFlags )( + __RPC__in IFsrmFileScreen * This, + /* [retval][out] */ __RPC__out long *fileScreenFlags); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, put_FileScreenFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileScreenFlags )( + __RPC__in IFsrmFileScreen * This, + /* [in] */ long fileScreenFlags); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, CreateAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateAction )( + __RPC__in IFsrmFileScreen * This, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, EnumActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumActions )( + __RPC__in IFsrmFileScreen * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + DECLSPEC_XFGVIRT(IFsrmFileScreen, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IFsrmFileScreen * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path); + + DECLSPEC_XFGVIRT(IFsrmFileScreen, get_SourceTemplateName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SourceTemplateName )( + __RPC__in IFsrmFileScreen * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *fileScreenTemplateName); + + DECLSPEC_XFGVIRT(IFsrmFileScreen, get_MatchesSourceTemplate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MatchesSourceTemplate )( + __RPC__in IFsrmFileScreen * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *matches); + + DECLSPEC_XFGVIRT(IFsrmFileScreen, get_UserSid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSid )( + __RPC__in IFsrmFileScreen * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *userSid); + + DECLSPEC_XFGVIRT(IFsrmFileScreen, get_UserAccount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserAccount )( + __RPC__in IFsrmFileScreen * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *userAccount); + + DECLSPEC_XFGVIRT(IFsrmFileScreen, ApplyTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ApplyTemplate )( + __RPC__in IFsrmFileScreen * This, + /* [in] */ __RPC__in BSTR fileScreenTemplateName); + + END_INTERFACE + } IFsrmFileScreenVtbl; + + interface IFsrmFileScreen + { + CONST_VTBL struct IFsrmFileScreenVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileScreen_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileScreen_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileScreen_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileScreen_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileScreen_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileScreen_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileScreen_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileScreen_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmFileScreen_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmFileScreen_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmFileScreen_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmFileScreen_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmFileScreen_get_BlockedFileGroups(This,blockList) \ + ( (This)->lpVtbl -> get_BlockedFileGroups(This,blockList) ) + +#define IFsrmFileScreen_put_BlockedFileGroups(This,blockList) \ + ( (This)->lpVtbl -> put_BlockedFileGroups(This,blockList) ) + +#define IFsrmFileScreen_get_FileScreenFlags(This,fileScreenFlags) \ + ( (This)->lpVtbl -> get_FileScreenFlags(This,fileScreenFlags) ) + +#define IFsrmFileScreen_put_FileScreenFlags(This,fileScreenFlags) \ + ( (This)->lpVtbl -> put_FileScreenFlags(This,fileScreenFlags) ) + +#define IFsrmFileScreen_CreateAction(This,actionType,action) \ + ( (This)->lpVtbl -> CreateAction(This,actionType,action) ) + +#define IFsrmFileScreen_EnumActions(This,actions) \ + ( (This)->lpVtbl -> EnumActions(This,actions) ) + + +#define IFsrmFileScreen_get_Path(This,path) \ + ( (This)->lpVtbl -> get_Path(This,path) ) + +#define IFsrmFileScreen_get_SourceTemplateName(This,fileScreenTemplateName) \ + ( (This)->lpVtbl -> get_SourceTemplateName(This,fileScreenTemplateName) ) + +#define IFsrmFileScreen_get_MatchesSourceTemplate(This,matches) \ + ( (This)->lpVtbl -> get_MatchesSourceTemplate(This,matches) ) + +#define IFsrmFileScreen_get_UserSid(This,userSid) \ + ( (This)->lpVtbl -> get_UserSid(This,userSid) ) + +#define IFsrmFileScreen_get_UserAccount(This,userAccount) \ + ( (This)->lpVtbl -> get_UserAccount(This,userAccount) ) + +#define IFsrmFileScreen_ApplyTemplate(This,fileScreenTemplateName) \ + ( (This)->lpVtbl -> ApplyTemplate(This,fileScreenTemplateName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileScreen_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileScreenException_INTERFACE_DEFINED__ +#define __IFsrmFileScreenException_INTERFACE_DEFINED__ + +/* interface IFsrmFileScreenException */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmFileScreenException; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("bee7ce02-df77-4515-9389-78f01c5afc1a") + IFsrmFileScreenException : public IFsrmObject + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *path) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AllowedFileGroups( + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **allowList) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AllowedFileGroups( + /* [in] */ __RPC__in_opt IFsrmMutableCollection *allowList) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileScreenExceptionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileScreenException * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileScreenException * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileScreenException * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileScreenException * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileScreenException * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileScreenException * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileScreenException * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmFileScreenException * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmFileScreenException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmFileScreenException * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmFileScreenException * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmFileScreenException * This); + + DECLSPEC_XFGVIRT(IFsrmFileScreenException, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IFsrmFileScreenException * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *path); + + DECLSPEC_XFGVIRT(IFsrmFileScreenException, get_AllowedFileGroups) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AllowedFileGroups )( + __RPC__in IFsrmFileScreenException * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **allowList); + + DECLSPEC_XFGVIRT(IFsrmFileScreenException, put_AllowedFileGroups) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AllowedFileGroups )( + __RPC__in IFsrmFileScreenException * This, + /* [in] */ __RPC__in_opt IFsrmMutableCollection *allowList); + + END_INTERFACE + } IFsrmFileScreenExceptionVtbl; + + interface IFsrmFileScreenException + { + CONST_VTBL struct IFsrmFileScreenExceptionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileScreenException_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileScreenException_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileScreenException_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileScreenException_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileScreenException_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileScreenException_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileScreenException_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileScreenException_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmFileScreenException_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmFileScreenException_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmFileScreenException_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmFileScreenException_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmFileScreenException_get_Path(This,path) \ + ( (This)->lpVtbl -> get_Path(This,path) ) + +#define IFsrmFileScreenException_get_AllowedFileGroups(This,allowList) \ + ( (This)->lpVtbl -> get_AllowedFileGroups(This,allowList) ) + +#define IFsrmFileScreenException_put_AllowedFileGroups(This,allowList) \ + ( (This)->lpVtbl -> put_AllowedFileGroups(This,allowList) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileScreenException_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileScreenManager_INTERFACE_DEFINED__ +#define __IFsrmFileScreenManager_INTERFACE_DEFINED__ + +/* interface IFsrmFileScreenManager */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmFileScreenManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ff4fa04e-5a94-4bda-a3a0-d5b4d3c52eba") + IFsrmFileScreenManager : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActionVariables( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *variables) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActionVariableDescriptions( + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *descriptions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateFileScreen( + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreen **fileScreen) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetFileScreen( + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreen **fileScreen) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumFileScreens( + /* [defaultvalue][in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileScreens) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateFileScreenException( + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreenException **fileScreenException) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetFileScreenException( + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreenException **fileScreenException) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumFileScreenExceptions( + /* [defaultvalue][in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileScreenExceptions) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateFileScreenCollection( + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **collection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileScreenManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileScreenManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileScreenManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileScreenManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileScreenManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileScreenManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileScreenManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileScreenManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmFileScreenManager, get_ActionVariables) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionVariables )( + __RPC__in IFsrmFileScreenManager * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *variables); + + DECLSPEC_XFGVIRT(IFsrmFileScreenManager, get_ActionVariableDescriptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActionVariableDescriptions )( + __RPC__in IFsrmFileScreenManager * This, + /* [retval][out] */ __RPC__deref_out_opt SAFEARRAY * *descriptions); + + DECLSPEC_XFGVIRT(IFsrmFileScreenManager, CreateFileScreen) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateFileScreen )( + __RPC__in IFsrmFileScreenManager * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreen **fileScreen); + + DECLSPEC_XFGVIRT(IFsrmFileScreenManager, GetFileScreen) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFileScreen )( + __RPC__in IFsrmFileScreenManager * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreen **fileScreen); + + DECLSPEC_XFGVIRT(IFsrmFileScreenManager, EnumFileScreens) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumFileScreens )( + __RPC__in IFsrmFileScreenManager * This, + /* [defaultvalue][in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileScreens); + + DECLSPEC_XFGVIRT(IFsrmFileScreenManager, CreateFileScreenException) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateFileScreenException )( + __RPC__in IFsrmFileScreenManager * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreenException **fileScreenException); + + DECLSPEC_XFGVIRT(IFsrmFileScreenManager, GetFileScreenException) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetFileScreenException )( + __RPC__in IFsrmFileScreenManager * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreenException **fileScreenException); + + DECLSPEC_XFGVIRT(IFsrmFileScreenManager, EnumFileScreenExceptions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumFileScreenExceptions )( + __RPC__in IFsrmFileScreenManager * This, + /* [defaultvalue][in] */ __RPC__in BSTR path, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileScreenExceptions); + + DECLSPEC_XFGVIRT(IFsrmFileScreenManager, CreateFileScreenCollection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateFileScreenCollection )( + __RPC__in IFsrmFileScreenManager * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **collection); + + END_INTERFACE + } IFsrmFileScreenManagerVtbl; + + interface IFsrmFileScreenManager + { + CONST_VTBL struct IFsrmFileScreenManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileScreenManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileScreenManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileScreenManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileScreenManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileScreenManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileScreenManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileScreenManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileScreenManager_get_ActionVariables(This,variables) \ + ( (This)->lpVtbl -> get_ActionVariables(This,variables) ) + +#define IFsrmFileScreenManager_get_ActionVariableDescriptions(This,descriptions) \ + ( (This)->lpVtbl -> get_ActionVariableDescriptions(This,descriptions) ) + +#define IFsrmFileScreenManager_CreateFileScreen(This,path,fileScreen) \ + ( (This)->lpVtbl -> CreateFileScreen(This,path,fileScreen) ) + +#define IFsrmFileScreenManager_GetFileScreen(This,path,fileScreen) \ + ( (This)->lpVtbl -> GetFileScreen(This,path,fileScreen) ) + +#define IFsrmFileScreenManager_EnumFileScreens(This,path,options,fileScreens) \ + ( (This)->lpVtbl -> EnumFileScreens(This,path,options,fileScreens) ) + +#define IFsrmFileScreenManager_CreateFileScreenException(This,path,fileScreenException) \ + ( (This)->lpVtbl -> CreateFileScreenException(This,path,fileScreenException) ) + +#define IFsrmFileScreenManager_GetFileScreenException(This,path,fileScreenException) \ + ( (This)->lpVtbl -> GetFileScreenException(This,path,fileScreenException) ) + +#define IFsrmFileScreenManager_EnumFileScreenExceptions(This,path,options,fileScreenExceptions) \ + ( (This)->lpVtbl -> EnumFileScreenExceptions(This,path,options,fileScreenExceptions) ) + +#define IFsrmFileScreenManager_CreateFileScreenCollection(This,collection) \ + ( (This)->lpVtbl -> CreateFileScreenCollection(This,collection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileScreenManager_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileScreenTemplate_INTERFACE_DEFINED__ +#define __IFsrmFileScreenTemplate_INTERFACE_DEFINED__ + +/* interface IFsrmFileScreenTemplate */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmFileScreenTemplate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("205bebf8-dd93-452a-95a6-32b566b35828") + IFsrmFileScreenTemplate : public IFsrmFileScreenBase + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *name) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyTemplate( + /* [in] */ __RPC__in BSTR fileScreenTemplateName) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CommitAndUpdateDerived( + /* [in] */ FsrmCommitOptions commitOptions, + /* [in] */ FsrmTemplateApplyOptions applyOptions, + /* [retval][out] */ __RPC__deref_out_opt IFsrmDerivedObjectsResult **derivedObjectsResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileScreenTemplateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileScreenTemplate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileScreenTemplate * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileScreenTemplate * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmFileScreenTemplate * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmFileScreenTemplate * This); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, get_BlockedFileGroups) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedFileGroups )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **blockList); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, put_BlockedFileGroups) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedFileGroups )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [in] */ __RPC__in_opt IFsrmMutableCollection *blockList); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, get_FileScreenFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileScreenFlags )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [retval][out] */ __RPC__out long *fileScreenFlags); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, put_FileScreenFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileScreenFlags )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [in] */ long fileScreenFlags); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, CreateAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateAction )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, EnumActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumActions )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplate, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplate, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplate, CopyTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTemplate )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [in] */ __RPC__in BSTR fileScreenTemplateName); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplate, CommitAndUpdateDerived) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CommitAndUpdateDerived )( + __RPC__in IFsrmFileScreenTemplate * This, + /* [in] */ FsrmCommitOptions commitOptions, + /* [in] */ FsrmTemplateApplyOptions applyOptions, + /* [retval][out] */ __RPC__deref_out_opt IFsrmDerivedObjectsResult **derivedObjectsResult); + + END_INTERFACE + } IFsrmFileScreenTemplateVtbl; + + interface IFsrmFileScreenTemplate + { + CONST_VTBL struct IFsrmFileScreenTemplateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileScreenTemplate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileScreenTemplate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileScreenTemplate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileScreenTemplate_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileScreenTemplate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileScreenTemplate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileScreenTemplate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileScreenTemplate_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmFileScreenTemplate_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmFileScreenTemplate_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmFileScreenTemplate_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmFileScreenTemplate_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmFileScreenTemplate_get_BlockedFileGroups(This,blockList) \ + ( (This)->lpVtbl -> get_BlockedFileGroups(This,blockList) ) + +#define IFsrmFileScreenTemplate_put_BlockedFileGroups(This,blockList) \ + ( (This)->lpVtbl -> put_BlockedFileGroups(This,blockList) ) + +#define IFsrmFileScreenTemplate_get_FileScreenFlags(This,fileScreenFlags) \ + ( (This)->lpVtbl -> get_FileScreenFlags(This,fileScreenFlags) ) + +#define IFsrmFileScreenTemplate_put_FileScreenFlags(This,fileScreenFlags) \ + ( (This)->lpVtbl -> put_FileScreenFlags(This,fileScreenFlags) ) + +#define IFsrmFileScreenTemplate_CreateAction(This,actionType,action) \ + ( (This)->lpVtbl -> CreateAction(This,actionType,action) ) + +#define IFsrmFileScreenTemplate_EnumActions(This,actions) \ + ( (This)->lpVtbl -> EnumActions(This,actions) ) + + +#define IFsrmFileScreenTemplate_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmFileScreenTemplate_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmFileScreenTemplate_CopyTemplate(This,fileScreenTemplateName) \ + ( (This)->lpVtbl -> CopyTemplate(This,fileScreenTemplateName) ) + +#define IFsrmFileScreenTemplate_CommitAndUpdateDerived(This,commitOptions,applyOptions,derivedObjectsResult) \ + ( (This)->lpVtbl -> CommitAndUpdateDerived(This,commitOptions,applyOptions,derivedObjectsResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileScreenTemplate_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileScreenTemplateImported_INTERFACE_DEFINED__ +#define __IFsrmFileScreenTemplateImported_INTERFACE_DEFINED__ + +/* interface IFsrmFileScreenTemplateImported */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmFileScreenTemplateImported; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("e1010359-3e5d-4ecd-9fe4-ef48622fdf30") + IFsrmFileScreenTemplateImported : public IFsrmFileScreenTemplate + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OverwriteOnCommit( + /* [retval][out] */ __RPC__out VARIANT_BOOL *overwrite) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_OverwriteOnCommit( + /* [in] */ VARIANT_BOOL overwrite) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileScreenTemplateImportedVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileScreenTemplateImported * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileScreenTemplateImported * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileScreenTemplateImported * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Id) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Id )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [retval][out] */ __RPC__out FSRM_OBJECT_ID *id); + + DECLSPEC_XFGVIRT(IFsrmObject, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *description); + + DECLSPEC_XFGVIRT(IFsrmObject, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ __RPC__in BSTR description); + + DECLSPEC_XFGVIRT(IFsrmObject, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFsrmFileScreenTemplateImported * This); + + DECLSPEC_XFGVIRT(IFsrmObject, Commit) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IFsrmFileScreenTemplateImported * This); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, get_BlockedFileGroups) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedFileGroups )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmMutableCollection **blockList); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, put_BlockedFileGroups) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedFileGroups )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ __RPC__in_opt IFsrmMutableCollection *blockList); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, get_FileScreenFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileScreenFlags )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [retval][out] */ __RPC__out long *fileScreenFlags); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, put_FileScreenFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileScreenFlags )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ long fileScreenFlags); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, CreateAction) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateAction )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ FsrmActionType actionType, + /* [retval][out] */ __RPC__deref_out_opt IFsrmAction **action); + + DECLSPEC_XFGVIRT(IFsrmFileScreenBase, EnumActions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumActions )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCollection **actions); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplate, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *name); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplate, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplate, CopyTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTemplate )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ __RPC__in BSTR fileScreenTemplateName); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplate, CommitAndUpdateDerived) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CommitAndUpdateDerived )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ FsrmCommitOptions commitOptions, + /* [in] */ FsrmTemplateApplyOptions applyOptions, + /* [retval][out] */ __RPC__deref_out_opt IFsrmDerivedObjectsResult **derivedObjectsResult); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplateImported, get_OverwriteOnCommit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OverwriteOnCommit )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *overwrite); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplateImported, put_OverwriteOnCommit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_OverwriteOnCommit )( + __RPC__in IFsrmFileScreenTemplateImported * This, + /* [in] */ VARIANT_BOOL overwrite); + + END_INTERFACE + } IFsrmFileScreenTemplateImportedVtbl; + + interface IFsrmFileScreenTemplateImported + { + CONST_VTBL struct IFsrmFileScreenTemplateImportedVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileScreenTemplateImported_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileScreenTemplateImported_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileScreenTemplateImported_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileScreenTemplateImported_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileScreenTemplateImported_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileScreenTemplateImported_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileScreenTemplateImported_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileScreenTemplateImported_get_Id(This,id) \ + ( (This)->lpVtbl -> get_Id(This,id) ) + +#define IFsrmFileScreenTemplateImported_get_Description(This,description) \ + ( (This)->lpVtbl -> get_Description(This,description) ) + +#define IFsrmFileScreenTemplateImported_put_Description(This,description) \ + ( (This)->lpVtbl -> put_Description(This,description) ) + +#define IFsrmFileScreenTemplateImported_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IFsrmFileScreenTemplateImported_Commit(This) \ + ( (This)->lpVtbl -> Commit(This) ) + + +#define IFsrmFileScreenTemplateImported_get_BlockedFileGroups(This,blockList) \ + ( (This)->lpVtbl -> get_BlockedFileGroups(This,blockList) ) + +#define IFsrmFileScreenTemplateImported_put_BlockedFileGroups(This,blockList) \ + ( (This)->lpVtbl -> put_BlockedFileGroups(This,blockList) ) + +#define IFsrmFileScreenTemplateImported_get_FileScreenFlags(This,fileScreenFlags) \ + ( (This)->lpVtbl -> get_FileScreenFlags(This,fileScreenFlags) ) + +#define IFsrmFileScreenTemplateImported_put_FileScreenFlags(This,fileScreenFlags) \ + ( (This)->lpVtbl -> put_FileScreenFlags(This,fileScreenFlags) ) + +#define IFsrmFileScreenTemplateImported_CreateAction(This,actionType,action) \ + ( (This)->lpVtbl -> CreateAction(This,actionType,action) ) + +#define IFsrmFileScreenTemplateImported_EnumActions(This,actions) \ + ( (This)->lpVtbl -> EnumActions(This,actions) ) + + +#define IFsrmFileScreenTemplateImported_get_Name(This,name) \ + ( (This)->lpVtbl -> get_Name(This,name) ) + +#define IFsrmFileScreenTemplateImported_put_Name(This,name) \ + ( (This)->lpVtbl -> put_Name(This,name) ) + +#define IFsrmFileScreenTemplateImported_CopyTemplate(This,fileScreenTemplateName) \ + ( (This)->lpVtbl -> CopyTemplate(This,fileScreenTemplateName) ) + +#define IFsrmFileScreenTemplateImported_CommitAndUpdateDerived(This,commitOptions,applyOptions,derivedObjectsResult) \ + ( (This)->lpVtbl -> CommitAndUpdateDerived(This,commitOptions,applyOptions,derivedObjectsResult) ) + + +#define IFsrmFileScreenTemplateImported_get_OverwriteOnCommit(This,overwrite) \ + ( (This)->lpVtbl -> get_OverwriteOnCommit(This,overwrite) ) + +#define IFsrmFileScreenTemplateImported_put_OverwriteOnCommit(This,overwrite) \ + ( (This)->lpVtbl -> put_OverwriteOnCommit(This,overwrite) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileScreenTemplateImported_INTERFACE_DEFINED__ */ + + +#ifndef __IFsrmFileScreenTemplateManager_INTERFACE_DEFINED__ +#define __IFsrmFileScreenTemplateManager_INTERFACE_DEFINED__ + +/* interface IFsrmFileScreenTemplateManager */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IFsrmFileScreenTemplateManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cfe36cba-1949-4e74-a14f-f1d580ceaf13") + IFsrmFileScreenTemplateManager : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateTemplate( + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreenTemplate **fileScreenTemplate) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetTemplate( + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreenTemplate **fileScreenTemplate) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnumTemplates( + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileScreenTemplates) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ExportTemplates( + /* [defaultvalue][in] */ __RPC__in VARIANT *fileScreenTemplateNamesArray, + /* [retval][out] */ __RPC__deref_out_opt BSTR *serializedFileScreenTemplates) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportTemplates( + /* [in] */ __RPC__in BSTR serializedFileScreenTemplates, + /* [defaultvalue][in] */ __RPC__in VARIANT *fileScreenTemplateNamesArray, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileScreenTemplates) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsrmFileScreenTemplateManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsrmFileScreenTemplateManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsrmFileScreenTemplateManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsrmFileScreenTemplateManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsrmFileScreenTemplateManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsrmFileScreenTemplateManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsrmFileScreenTemplateManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsrmFileScreenTemplateManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplateManager, CreateTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTemplate )( + __RPC__in IFsrmFileScreenTemplateManager * This, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreenTemplate **fileScreenTemplate); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplateManager, GetTemplate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetTemplate )( + __RPC__in IFsrmFileScreenTemplateManager * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][out] */ __RPC__deref_out_opt IFsrmFileScreenTemplate **fileScreenTemplate); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplateManager, EnumTemplates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnumTemplates )( + __RPC__in IFsrmFileScreenTemplateManager * This, + /* [defaultvalue][in] */ FsrmEnumOptions options, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileScreenTemplates); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplateManager, ExportTemplates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ExportTemplates )( + __RPC__in IFsrmFileScreenTemplateManager * This, + /* [defaultvalue][in] */ __RPC__in VARIANT *fileScreenTemplateNamesArray, + /* [retval][out] */ __RPC__deref_out_opt BSTR *serializedFileScreenTemplates); + + DECLSPEC_XFGVIRT(IFsrmFileScreenTemplateManager, ImportTemplates) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportTemplates )( + __RPC__in IFsrmFileScreenTemplateManager * This, + /* [in] */ __RPC__in BSTR serializedFileScreenTemplates, + /* [defaultvalue][in] */ __RPC__in VARIANT *fileScreenTemplateNamesArray, + /* [retval][out] */ __RPC__deref_out_opt IFsrmCommittableCollection **fileScreenTemplates); + + END_INTERFACE + } IFsrmFileScreenTemplateManagerVtbl; + + interface IFsrmFileScreenTemplateManager + { + CONST_VTBL struct IFsrmFileScreenTemplateManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsrmFileScreenTemplateManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsrmFileScreenTemplateManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsrmFileScreenTemplateManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsrmFileScreenTemplateManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsrmFileScreenTemplateManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsrmFileScreenTemplateManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsrmFileScreenTemplateManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsrmFileScreenTemplateManager_CreateTemplate(This,fileScreenTemplate) \ + ( (This)->lpVtbl -> CreateTemplate(This,fileScreenTemplate) ) + +#define IFsrmFileScreenTemplateManager_GetTemplate(This,name,fileScreenTemplate) \ + ( (This)->lpVtbl -> GetTemplate(This,name,fileScreenTemplate) ) + +#define IFsrmFileScreenTemplateManager_EnumTemplates(This,options,fileScreenTemplates) \ + ( (This)->lpVtbl -> EnumTemplates(This,options,fileScreenTemplates) ) + +#define IFsrmFileScreenTemplateManager_ExportTemplates(This,fileScreenTemplateNamesArray,serializedFileScreenTemplates) \ + ( (This)->lpVtbl -> ExportTemplates(This,fileScreenTemplateNamesArray,serializedFileScreenTemplates) ) + +#define IFsrmFileScreenTemplateManager_ImportTemplates(This,serializedFileScreenTemplates,fileScreenTemplateNamesArray,fileScreenTemplates) \ + ( (This)->lpVtbl -> ImportTemplates(This,serializedFileScreenTemplates,fileScreenTemplateNamesArray,fileScreenTemplates) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsrmFileScreenTemplateManager_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_fsrmscreen_0000_0010 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmscreen_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmscreen_0000_0010_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmscreen.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmscreen.idl new file mode 100644 index 0000000000000000000000000000000000000000..5bf50c075aa8458d05cb03dc8565555d10f2039d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmscreen.idl @@ -0,0 +1,417 @@ +////////////////////////////////////// +// Imports +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; + +import "fsrmenums.idl"; +import "fsrm.idl"; + + +////////////////////////////////////// +// Forward declarations +// + +interface IFsrmFileGroup; +interface IFsrmFileGroupImported; +interface IFsrmFileGroupManager; + +// Shared by IFsrmFileScreen and IFsrmFileScreenTemplate +interface IFsrmFileScreenBase; + +interface IFsrmFileScreen; +interface IFsrmFileScreenException; +interface IFsrmFileScreenManager; + +interface IFsrmFileScreenTemplate; +interface IFsrmFileScreenTemplateImported; +interface IFsrmFileScreenTemplateManager; + + +////////////////////////////////////// +// Dispatch IDs +// + +#define FSRM_PROPERTY(x) x | FSRM_DISPID_IS_PROPERTY + +// Dispatch ID base of file screen interfaces +const DISPID FSRM_DISPID_FILEGROUP = FSRM_DISPID_FEATURE_FILESCREEN | 0x100000; +const DISPID FSRM_DISPID_FILEGROUP_IMPORTED = FSRM_DISPID_FILEGROUP | 0x010000; + +const DISPID FSRM_DISPID_FILEGROUP_MANAGER = FSRM_DISPID_FEATURE_FILESCREEN | 0x200000; + +const DISPID FSRM_DISPID_FILESCREEN_BASE = FSRM_DISPID_FEATURE_FILESCREEN | 0x300000; +const DISPID FSRM_DISPID_FILESCREEN = FSRM_DISPID_FILESCREEN_BASE | 0x010000; +const DISPID FSRM_DISPID_FILESCREEN_TEMPLATE = FSRM_DISPID_FILESCREEN_BASE | 0x020000; +const DISPID FSRM_DISPID_FILESCREEN_TEMPLATE_IMPORTED = FSRM_DISPID_FILESCREEN_TEMPLATE | 0x001000; + +const DISPID FSRM_DISPID_FILESCREEN_EXCEPTION = FSRM_DISPID_FEATURE_FILESCREEN | 0x400000; + +const DISPID FSRM_DISPID_FILESCREEN_MANAGER = FSRM_DISPID_FEATURE_FILESCREEN | 0x500000; + +const DISPID FSRM_DISPID_FILESCREEN_TEMPLATE_MANAGER = FSRM_DISPID_FEATURE_FILESCREEN | 0x600000; + + +////////////////////////////////////// +// Interfaces +// +[ + object, + uuid(8dd04909-0e34-4d55-afaa-89e1f1a1bbb9), + dual, + helpstring("IFsrmFileGroup Interface"), + pointer_default(unique) +] +interface IFsrmFileGroup : IFsrmObject +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILEGROUP | 0x01)), helpstring("This property is the file group name")] + HRESULT Name([out, retval] BSTR *name); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILEGROUP | 0x01)), helpstring("This property is the file group name")] + HRESULT Name([in] BSTR name); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILEGROUP | 0x02)), helpstring("This property is the Members list for the file group")] + HRESULT Members([out, retval] IFsrmMutableCollection **members); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILEGROUP | 0x02)), helpstring("This property is the Members list for the file group")] + HRESULT Members([in] IFsrmMutableCollection *members); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILEGROUP | 0x03)), helpstring("This property is the NonMembers list for the file group")] + HRESULT NonMembers([out, retval] IFsrmMutableCollection **nonMembers); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILEGROUP | 0x03)), helpstring("This property is the NonMembers list for the file group")] + HRESULT NonMembers([in] IFsrmMutableCollection *nonMembers); + +}; + + +[ + object, + uuid(ad55f10b-5f11-4be7-94ef-d9ee2e470ded), + dual, + helpstring("IFsrmFileGroupImported Interface"), + pointer_default(unique) +] +interface IFsrmFileGroupImported : IFsrmFileGroup +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILEGROUP_IMPORTED | 0x01)), helpstring("property OverwriteOnCommit")] + HRESULT OverwriteOnCommit([out, retval] VARIANT_BOOL *overwrite); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILEGROUP_IMPORTED | 0x01)), helpstring("property OverwriteOnCommit")] + HRESULT OverwriteOnCommit([in] VARIANT_BOOL overwrite); + +}; + + +[ + object, + uuid(426677d5-018c-485c-8a51-20b86d00bdc4), + dual, + helpstring("IFsrmFileGroupManager Interface"), + pointer_default(unique) +] +interface IFsrmFileGroupManager : IDispatch +{ + + // Methods + + [id(FSRM_DISPID_FILEGROUP_MANAGER | 0x01), helpstring("This method is used to create a file group")] + HRESULT CreateFileGroup([out, retval] IFsrmFileGroup **fileGroup); + + [id(FSRM_DISPID_FILEGROUP_MANAGER | 0x02), helpstring("This method is used to get a file group with a specific name")] + HRESULT GetFileGroup( + [in] BSTR name, + [out, retval] IFsrmFileGroup **fileGroup); + + [id(FSRM_DISPID_FILEGROUP_MANAGER | 0x03), helpstring("This method is used to enumerate all file groups")] + HRESULT EnumFileGroups( + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCommittableCollection **fileGroups); + + [id(FSRM_DISPID_FILEGROUP_MANAGER | 0x04), helpstring("This method is used to copy the properties of this template from the input string")] + HRESULT ExportFileGroups( + [in, defaultvalue(NULL)] VARIANT* fileGroupNamesArray, + [out, retval] BSTR *serializedFileGroups); + + [id(FSRM_DISPID_FILEGROUP_MANAGER | 0x05), helpstring("This method is used to import templates from the file groups string representation. The resulting collection, or individual objects contain therein, must be committed to finalize the import")] + HRESULT ImportFileGroups( + [in] BSTR serializedFileGroups, + [in, defaultvalue(NULL)] VARIANT* fileGroupNamesArray, + [out, retval] IFsrmCommittableCollection **fileGroups); + +}; + + +[ + object, + uuid(f3637e80-5b22-4a2b-a637-bbb642b41cfc), + dual, + helpstring("IFsrmFileScreenBase Interface"), + pointer_default(unique) +] +interface IFsrmFileScreenBase : IFsrmObject +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_BASE | 0x01)), helpstring("This property is the file groups that this file screen blocks")] + HRESULT BlockedFileGroups([out, retval] IFsrmMutableCollection **blockList); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_BASE | 0x01)), helpstring("This property is the file groups that this file screen blocks")] + HRESULT BlockedFileGroups([in] IFsrmMutableCollection *blockList); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_BASE | 0x02)), helpstring("This property is the bit field containing flags defined in FsrmFileScreenFlags")] + HRESULT FileScreenFlags([out, retval] long *fileScreenFlags); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_BASE | 0x02)), helpstring("This property is the bit field containing flags defined in FsrmFileScreenFlags")] + HRESULT FileScreenFlags([in] long fileScreenFlags); + + + // Methods + + [id(FSRM_DISPID_FILESCREEN_BASE | 0x01), helpstring("This method is used to create an action of the specified type")] + HRESULT CreateAction( + [in] FsrmActionType actionType, + [out, retval] IFsrmAction **action); + + [id(FSRM_DISPID_FILESCREEN_BASE | 0x02), helpstring("This method is used to enumerate all actions")] + HRESULT EnumActions([out, retval] IFsrmCollection **actions); + +}; + + +[ + object, + uuid(5f6325d3-ce88-4733-84c1-2d6aefc5ea07), + dual, + helpstring("IFsrmFileScreen Interface"), + pointer_default(unique) +] +interface IFsrmFileScreen : IFsrmFileScreenBase +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN | 0x01)), helpstring("This read-only property is the path of the file screen")] + HRESULT Path([out, retval] BSTR *path); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN | 0x02)), helpstring("This read-only property is name of the template that this object originated from")] + HRESULT SourceTemplateName([out, retval] BSTR *fileScreenTemplateName); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN | 0x03)), helpstring("This read-only property is whether the file screen currently matches the template it orignated from")] + HRESULT MatchesSourceTemplate([out, retval] VARIANT_BOOL *matches); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN | 0x04)), helpstring("This read-only property is the SID of the user whose files will be screened")] + HRESULT UserSid([out, retval] BSTR *userSid); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN | 0x05)), helpstring("This read-only property is the account name of the user whose files will be screened")] + HRESULT UserAccount([out, retval] BSTR *userAccount); + + + // Methods + + [id(FSRM_DISPID_FILESCREEN | 0x01), helpstring("This method is used to copy the properties of this file screen from the specified data screen template")] + HRESULT ApplyTemplate([in] BSTR fileScreenTemplateName); + +}; + + +[ + object, + uuid(bee7ce02-df77-4515-9389-78f01c5afc1a), + dual, + helpstring("IFsrmFileScreenException Interface"), + pointer_default(unique) +] +interface IFsrmFileScreenException : IFsrmObject +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_EXCEPTION | 0x01)), helpstring("This read-only property is the path of the file screen")] + HRESULT Path([out, retval] BSTR *path); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_EXCEPTION | 0x02)), helpstring("This property is the file groups that this file screen exception allows")] + HRESULT AllowedFileGroups([out, retval] IFsrmMutableCollection **allowList); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_EXCEPTION | 0x02)), helpstring("This property is the file groups that this file screen exception allows")] + HRESULT AllowedFileGroups([in] IFsrmMutableCollection *allowList); + +}; + + +[ + object, + uuid(ff4fa04e-5a94-4bda-a3a0-d5b4d3c52eba), + dual, + helpstring("IFsrmFileScreenManager Interface"), + pointer_default(unique) +] +interface IFsrmFileScreenManager : IDispatch +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_MANAGER | 0x01)), helpstring("This method is used enumerate the runtime expanded variables available for screening notifications")] + HRESULT ActionVariables([out, retval] SAFEARRAY(VARIANT) *variables); + + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_MANAGER | 0x02)), helpstring("This method is used enumerate the descriptions of the runtime expanded variables available for screening notifications")] + HRESULT ActionVariableDescriptions([out, retval] SAFEARRAY(VARIANT) *descriptions); + + + // Methods + + [id(FSRM_DISPID_FILESCREEN_MANAGER | 0x01), helpstring("This method is used to create a file screen")] + HRESULT CreateFileScreen( + [in] BSTR path, + [out, retval] IFsrmFileScreen **fileScreen); + + [id(FSRM_DISPID_FILESCREEN_MANAGER | 0x02), helpstring("This method is used to get a file screen for a specific path")] + HRESULT GetFileScreen( + [in] BSTR path, + [out, retval] IFsrmFileScreen **fileScreen); + + [id(FSRM_DISPID_FILESCREEN_MANAGER | 0x03), helpstring("This method is used to enumerate file screens")] + HRESULT EnumFileScreens( + [in, defaultvalue(L"")] BSTR path, // supports wildcards + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCommittableCollection **fileScreens); + + [id(FSRM_DISPID_FILESCREEN_MANAGER | 0x04), helpstring("This method is used to create a file screen exception")] + HRESULT CreateFileScreenException( + [in] BSTR path, + [out, retval] IFsrmFileScreenException **fileScreenException); + + [id(FSRM_DISPID_FILESCREEN_MANAGER | 0x05), helpstring("This method is used to get a file screen exception for a specific path")] + HRESULT GetFileScreenException( + [in] BSTR path, + [out, retval] IFsrmFileScreenException **fileScreenException); + + [id(FSRM_DISPID_FILESCREEN_MANAGER | 0x06), helpstring("This method is used to enumerate file screen exceptions")] + HRESULT EnumFileScreenExceptions( + [in, defaultvalue(L"")] BSTR path, // supports wildcards + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCommittableCollection **fileScreenExceptions); + + [id(FSRM_DISPID_FILESCREEN_MANAGER | 0x07), helpstring("This method is used to create an empty file screen or file screen exception collection")] + HRESULT CreateFileScreenCollection([out, retval] IFsrmCommittableCollection **collection); + +}; + + +[ + object, + uuid(205bebf8-dd93-452a-95a6-32b566b35828), + dual, + helpstring("IFsrmFileScreenTemplate Interface"), + pointer_default(unique) +] +interface IFsrmFileScreenTemplate : IFsrmFileScreenBase +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_TEMPLATE | 0x01)), helpstring("property TemplateName")] + HRESULT Name([out, retval] BSTR *name); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_TEMPLATE | 0x01)), helpstring("property TemplateName")] + HRESULT Name([in] BSTR name); + + + // Methods + + [id(FSRM_DISPID_FILESCREEN_TEMPLATE | 0x01), helpstring("This method is used to copy the properties of this template from the specified template")] + HRESULT CopyTemplate([in] BSTR fileScreenTemplateName); + + [id(FSRM_DISPID_FILESCREEN_TEMPLATE | 0x02), helpstring("This method is used to apply the template changes to derived file screens and commit both the derived file screens and template changes. The resulting collection of derived file screens will be in Committing or Complete state depending on the synchronizaton option chosen. The collection of HRESULTs can be used to monitor the progress of the asynchronous commit operation and should be inspected for the error state of the individual object commit.")] + HRESULT CommitAndUpdateDerived( + [in] FsrmCommitOptions commitOptions, + [in] FsrmTemplateApplyOptions applyOptions, + [out, retval] IFsrmDerivedObjectsResult **derivedObjectsResult); + +}; + + +[ + object, + uuid(e1010359-3e5d-4ecd-9fe4-ef48622fdf30), + dual, + helpstring("IFsrmFileScreenTemplateImported Interface"), + pointer_default(unique) +] +interface IFsrmFileScreenTemplateImported : IFsrmFileScreenTemplate +{ + + // Properties + + [propget, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_TEMPLATE_IMPORTED | 0x01)), helpstring("property OverwriteOnCommit")] + HRESULT OverwriteOnCommit([out, retval] VARIANT_BOOL *overwrite); + + [propput, id(FSRM_PROPERTY(FSRM_DISPID_FILESCREEN_TEMPLATE_IMPORTED | 0x01)), helpstring("property OverwriteOnCommit")] + HRESULT OverwriteOnCommit([in] VARIANT_BOOL overwrite); + +}; + + +[ + object, + uuid(cfe36cba-1949-4e74-a14f-f1d580ceaf13), + dual, + helpstring("IFsrmFileScreenTemplateManager Interface"), + pointer_default(unique) +] +interface IFsrmFileScreenTemplateManager : IDispatch +{ + + // Methods + + [id(FSRM_DISPID_FILESCREEN_TEMPLATE_MANAGER | 0x01), helpstring("This method is used to create a new data screen template")] + HRESULT CreateTemplate([out, retval] IFsrmFileScreenTemplate **fileScreenTemplate); + + [id(FSRM_DISPID_FILESCREEN_TEMPLATE_MANAGER | 0x02), helpstring("This method is used to get a data screen template by name")] + HRESULT GetTemplate( + [in] BSTR name, + [out, retval] IFsrmFileScreenTemplate **fileScreenTemplate); + + [id(FSRM_DISPID_FILESCREEN_TEMPLATE_MANAGER | 0x03), helpstring("This method is used to enumerate all data screen templates")] + HRESULT EnumTemplates( + [in, defaultvalue(FsrmEnumOptions_None)] FsrmEnumOptions options, + [out, retval] IFsrmCommittableCollection **fileScreenTemplates); + + [id(FSRM_DISPID_FILESCREEN_TEMPLATE_MANAGER | 0x04), helpstring("This method is used to copy the properties of this template from the input string")] + HRESULT ExportTemplates( + [in, defaultvalue(NULL)] VARIANT* fileScreenTemplateNamesArray, + [out, retval] BSTR *serializedFileScreenTemplates); + + [id(FSRM_DISPID_FILESCREEN_TEMPLATE_MANAGER | 0x05), helpstring("This method is used to import templates from the templates string representation. The resulting collection, or individual objects contain therein, must be committed to finalize the import")] + HRESULT ImportTemplates( + [in] BSTR serializedFileScreenTemplates, + [in, defaultvalue(NULL)] VARIANT* fileScreenTemplateNamesArray, + [out, retval] IFsrmCommittableCollection **fileScreenTemplates); + +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmtlb.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmtlb.h new file mode 100644 index 0000000000000000000000000000000000000000..9b71e145d4f087057c303663efc292794790be14 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fsrmtlb.h @@ -0,0 +1,632 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __fsrmtlb_h__ +#define __fsrmtlb_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __DIFsrmClassificationEvents_FWD_DEFINED__ +#define __DIFsrmClassificationEvents_FWD_DEFINED__ +typedef interface DIFsrmClassificationEvents DIFsrmClassificationEvents; + +#endif /* __DIFsrmClassificationEvents_FWD_DEFINED__ */ + + +#ifndef __DIFsrmClassificationEvents_FWD_DEFINED__ +#define __DIFsrmClassificationEvents_FWD_DEFINED__ +typedef interface DIFsrmClassificationEvents DIFsrmClassificationEvents; + +#endif /* __DIFsrmClassificationEvents_FWD_DEFINED__ */ + + +#ifndef __FsrmSetting_FWD_DEFINED__ +#define __FsrmSetting_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmSetting FsrmSetting; +#else +typedef struct FsrmSetting FsrmSetting; +#endif /* __cplusplus */ + +#endif /* __FsrmSetting_FWD_DEFINED__ */ + + +#ifndef __FsrmPathMapper_FWD_DEFINED__ +#define __FsrmPathMapper_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmPathMapper FsrmPathMapper; +#else +typedef struct FsrmPathMapper FsrmPathMapper; +#endif /* __cplusplus */ + +#endif /* __FsrmPathMapper_FWD_DEFINED__ */ + + +#ifndef __FsrmExportImport_FWD_DEFINED__ +#define __FsrmExportImport_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmExportImport FsrmExportImport; +#else +typedef struct FsrmExportImport FsrmExportImport; +#endif /* __cplusplus */ + +#endif /* __FsrmExportImport_FWD_DEFINED__ */ + + +#ifndef __FsrmQuotaManager_FWD_DEFINED__ +#define __FsrmQuotaManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmQuotaManager FsrmQuotaManager; +#else +typedef struct FsrmQuotaManager FsrmQuotaManager; +#endif /* __cplusplus */ + +#endif /* __FsrmQuotaManager_FWD_DEFINED__ */ + + +#ifndef __FsrmQuotaTemplateManager_FWD_DEFINED__ +#define __FsrmQuotaTemplateManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmQuotaTemplateManager FsrmQuotaTemplateManager; +#else +typedef struct FsrmQuotaTemplateManager FsrmQuotaTemplateManager; +#endif /* __cplusplus */ + +#endif /* __FsrmQuotaTemplateManager_FWD_DEFINED__ */ + + +#ifndef __FsrmFileGroupManager_FWD_DEFINED__ +#define __FsrmFileGroupManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmFileGroupManager FsrmFileGroupManager; +#else +typedef struct FsrmFileGroupManager FsrmFileGroupManager; +#endif /* __cplusplus */ + +#endif /* __FsrmFileGroupManager_FWD_DEFINED__ */ + + +#ifndef __FsrmFileScreenManager_FWD_DEFINED__ +#define __FsrmFileScreenManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmFileScreenManager FsrmFileScreenManager; +#else +typedef struct FsrmFileScreenManager FsrmFileScreenManager; +#endif /* __cplusplus */ + +#endif /* __FsrmFileScreenManager_FWD_DEFINED__ */ + + +#ifndef __FsrmFileScreenTemplateManager_FWD_DEFINED__ +#define __FsrmFileScreenTemplateManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmFileScreenTemplateManager FsrmFileScreenTemplateManager; +#else +typedef struct FsrmFileScreenTemplateManager FsrmFileScreenTemplateManager; +#endif /* __cplusplus */ + +#endif /* __FsrmFileScreenTemplateManager_FWD_DEFINED__ */ + + +#ifndef __FsrmReportManager_FWD_DEFINED__ +#define __FsrmReportManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmReportManager FsrmReportManager; +#else +typedef struct FsrmReportManager FsrmReportManager; +#endif /* __cplusplus */ + +#endif /* __FsrmReportManager_FWD_DEFINED__ */ + + +#ifndef __FsrmReportScheduler_FWD_DEFINED__ +#define __FsrmReportScheduler_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmReportScheduler FsrmReportScheduler; +#else +typedef struct FsrmReportScheduler FsrmReportScheduler; +#endif /* __cplusplus */ + +#endif /* __FsrmReportScheduler_FWD_DEFINED__ */ + + +#ifndef __FsrmFileManagementJobManager_FWD_DEFINED__ +#define __FsrmFileManagementJobManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmFileManagementJobManager FsrmFileManagementJobManager; +#else +typedef struct FsrmFileManagementJobManager FsrmFileManagementJobManager; +#endif /* __cplusplus */ + +#endif /* __FsrmFileManagementJobManager_FWD_DEFINED__ */ + + +#ifndef __FsrmClassificationManager_FWD_DEFINED__ +#define __FsrmClassificationManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmClassificationManager FsrmClassificationManager; +#else +typedef struct FsrmClassificationManager FsrmClassificationManager; +#endif /* __cplusplus */ + +#endif /* __FsrmClassificationManager_FWD_DEFINED__ */ + + +#ifndef __FsrmPipelineModuleConnector_FWD_DEFINED__ +#define __FsrmPipelineModuleConnector_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmPipelineModuleConnector FsrmPipelineModuleConnector; +#else +typedef struct FsrmPipelineModuleConnector FsrmPipelineModuleConnector; +#endif /* __cplusplus */ + +#endif /* __FsrmPipelineModuleConnector_FWD_DEFINED__ */ + + +#ifndef __AdSyncTask_FWD_DEFINED__ +#define __AdSyncTask_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AdSyncTask AdSyncTask; +#else +typedef struct AdSyncTask AdSyncTask; +#endif /* __cplusplus */ + +#endif /* __AdSyncTask_FWD_DEFINED__ */ + + +#ifndef __FsrmAccessDeniedRemediationClient_FWD_DEFINED__ +#define __FsrmAccessDeniedRemediationClient_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsrmAccessDeniedRemediationClient FsrmAccessDeniedRemediationClient; +#else +typedef struct FsrmAccessDeniedRemediationClient FsrmAccessDeniedRemediationClient; +#endif /* __cplusplus */ + +#endif /* __FsrmAccessDeniedRemediationClient_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "fsrmenums.h" +#include "fsrm.h" +#include "fsrmquota.h" +#include "fsrmscreen.h" +#include "fsrmreports.h" +#include "fsrmpipeline.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_fsrmtlb_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmtlb_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmtlb_0000_0000_v0_0_s_ifspec; + + +#ifndef __FsrmLib_LIBRARY_DEFINED__ +#define __FsrmLib_LIBRARY_DEFINED__ + +/* library FsrmLib */ +/* [helpstring][version][uuid] */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +EXTERN_C const IID LIBID_FsrmLib; + +#ifndef __DIFsrmClassificationEvents_DISPINTERFACE_DEFINED__ +#define __DIFsrmClassificationEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface DIFsrmClassificationEvents */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_DIFsrmClassificationEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("26942db0-dabf-41d8-bbdd-b129a9f70424") + DIFsrmClassificationEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct DIFsrmClassificationEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DIFsrmClassificationEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DIFsrmClassificationEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DIFsrmClassificationEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DIFsrmClassificationEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DIFsrmClassificationEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DIFsrmClassificationEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DIFsrmClassificationEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } DIFsrmClassificationEventsVtbl; + + interface DIFsrmClassificationEvents + { + CONST_VTBL struct DIFsrmClassificationEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DIFsrmClassificationEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DIFsrmClassificationEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DIFsrmClassificationEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DIFsrmClassificationEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DIFsrmClassificationEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DIFsrmClassificationEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DIFsrmClassificationEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __DIFsrmClassificationEvents_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_FsrmSetting; + +#ifdef __cplusplus + +class DECLSPEC_UUID("f556d708-6d4d-4594-9c61-7dbb0dae2a46") +FsrmSetting; +#endif + +EXTERN_C const CLSID CLSID_FsrmPathMapper; + +#ifdef __cplusplus + +class DECLSPEC_UUID("f3be42bd-8ac2-409e-bbd8-faf9b6b41feb") +FsrmPathMapper; +#endif + +EXTERN_C const CLSID CLSID_FsrmExportImport; + +#ifdef __cplusplus + +class DECLSPEC_UUID("1482dc37-fae9-4787-9025-8ce4e024ab56") +FsrmExportImport; +#endif + +EXTERN_C const CLSID CLSID_FsrmQuotaManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("90dcab7f-347c-4bfc-b543-540326305fbe") +FsrmQuotaManager; +#endif + +EXTERN_C const CLSID CLSID_FsrmQuotaTemplateManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("97d3d443-251c-4337-81e7-b32e8f4ee65e") +FsrmQuotaTemplateManager; +#endif + +EXTERN_C const CLSID CLSID_FsrmFileGroupManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8f1363f6-656f-4496-9226-13aecbd7718f") +FsrmFileGroupManager; +#endif + +EXTERN_C const CLSID CLSID_FsrmFileScreenManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("95941183-db53-4c5f-b37b-7d0921cf9dc7") +FsrmFileScreenManager; +#endif + +EXTERN_C const CLSID CLSID_FsrmFileScreenTemplateManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("243111df-e474-46aa-a054-eaa33edc292a") +FsrmFileScreenTemplateManager; +#endif + +EXTERN_C const CLSID CLSID_FsrmReportManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("0058ef37-aa66-4c48-bd5b-2fce432ab0c8") +FsrmReportManager; +#endif + +EXTERN_C const CLSID CLSID_FsrmReportScheduler; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ea25f1b8-1b8d-4290-8ee8-e17c12c2fe20") +FsrmReportScheduler; +#endif + +EXTERN_C const CLSID CLSID_FsrmFileManagementJobManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("eb18f9b2-4c3a-4321-b203-205120cff614") +FsrmFileManagementJobManager; +#endif + +EXTERN_C const CLSID CLSID_FsrmClassificationManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b15c0e47-c391-45b9-95c8-eb596c853f3a") +FsrmClassificationManager; +#endif + +EXTERN_C const CLSID CLSID_FsrmPipelineModuleConnector; + +#ifdef __cplusplus + +class DECLSPEC_UUID("c7643375-1eb5-44de-a062-623547d933bc") +FsrmPipelineModuleConnector; +#endif + +EXTERN_C const CLSID CLSID_AdSyncTask; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2ae64751-b728-4d6b-97a0-b2da2e7d2a3b") +AdSyncTask; +#endif + +EXTERN_C const CLSID CLSID_FsrmAccessDeniedRemediationClient; + +#ifdef __cplusplus + +class DECLSPEC_UUID("100B4FC8-74C1-470F-B1B7-DD7B6BAE79BD") +FsrmAccessDeniedRemediationClient; +#endif +#endif /* __FsrmLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_fsrmtlb_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_fsrmtlb_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_fsrmtlb_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ftpext.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ftpext.h new file mode 100644 index 0000000000000000000000000000000000000000..fa7d10a01294a8c91010ab79dbe053820f49f04c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ftpext.h @@ -0,0 +1,1758 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ftpext_h__ +#define __ftpext_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFtpProviderConstruct_FWD_DEFINED__ +#define __IFtpProviderConstruct_FWD_DEFINED__ +typedef interface IFtpProviderConstruct IFtpProviderConstruct; + +#endif /* __IFtpProviderConstruct_FWD_DEFINED__ */ + + +#ifndef __IFtpAuthenticationProvider_FWD_DEFINED__ +#define __IFtpAuthenticationProvider_FWD_DEFINED__ +typedef interface IFtpAuthenticationProvider IFtpAuthenticationProvider; + +#endif /* __IFtpAuthenticationProvider_FWD_DEFINED__ */ + + +#ifndef __AsyncIFtpAuthenticationProvider_FWD_DEFINED__ +#define __AsyncIFtpAuthenticationProvider_FWD_DEFINED__ +typedef interface AsyncIFtpAuthenticationProvider AsyncIFtpAuthenticationProvider; + +#endif /* __AsyncIFtpAuthenticationProvider_FWD_DEFINED__ */ + + +#ifndef __IFtpRoleProvider_FWD_DEFINED__ +#define __IFtpRoleProvider_FWD_DEFINED__ +typedef interface IFtpRoleProvider IFtpRoleProvider; + +#endif /* __IFtpRoleProvider_FWD_DEFINED__ */ + + +#ifndef __AsyncIFtpRoleProvider_FWD_DEFINED__ +#define __AsyncIFtpRoleProvider_FWD_DEFINED__ +typedef interface AsyncIFtpRoleProvider AsyncIFtpRoleProvider; + +#endif /* __AsyncIFtpRoleProvider_FWD_DEFINED__ */ + + +#ifndef __IFtpHomeDirectoryProvider_FWD_DEFINED__ +#define __IFtpHomeDirectoryProvider_FWD_DEFINED__ +typedef interface IFtpHomeDirectoryProvider IFtpHomeDirectoryProvider; + +#endif /* __IFtpHomeDirectoryProvider_FWD_DEFINED__ */ + + +#ifndef __AsyncIFtpHomeDirectoryProvider_FWD_DEFINED__ +#define __AsyncIFtpHomeDirectoryProvider_FWD_DEFINED__ +typedef interface AsyncIFtpHomeDirectoryProvider AsyncIFtpHomeDirectoryProvider; + +#endif /* __AsyncIFtpHomeDirectoryProvider_FWD_DEFINED__ */ + + +#ifndef __IFtpLogProvider_FWD_DEFINED__ +#define __IFtpLogProvider_FWD_DEFINED__ +typedef interface IFtpLogProvider IFtpLogProvider; + +#endif /* __IFtpLogProvider_FWD_DEFINED__ */ + + +#ifndef __AsyncIFtpLogProvider_FWD_DEFINED__ +#define __AsyncIFtpLogProvider_FWD_DEFINED__ +typedef interface AsyncIFtpLogProvider AsyncIFtpLogProvider; + +#endif /* __AsyncIFtpLogProvider_FWD_DEFINED__ */ + + +#ifndef __IFtpAuthorizationProvider_FWD_DEFINED__ +#define __IFtpAuthorizationProvider_FWD_DEFINED__ +typedef interface IFtpAuthorizationProvider IFtpAuthorizationProvider; + +#endif /* __IFtpAuthorizationProvider_FWD_DEFINED__ */ + + +#ifndef __AsyncIFtpAuthorizationProvider_FWD_DEFINED__ +#define __AsyncIFtpAuthorizationProvider_FWD_DEFINED__ +typedef interface AsyncIFtpAuthorizationProvider AsyncIFtpAuthorizationProvider; + +#endif /* __AsyncIFtpAuthorizationProvider_FWD_DEFINED__ */ + + +#ifndef __IFtpPreprocessProvider_FWD_DEFINED__ +#define __IFtpPreprocessProvider_FWD_DEFINED__ +typedef interface IFtpPreprocessProvider IFtpPreprocessProvider; + +#endif /* __IFtpPreprocessProvider_FWD_DEFINED__ */ + + +#ifndef __AsyncIFtpPreprocessProvider_FWD_DEFINED__ +#define __AsyncIFtpPreprocessProvider_FWD_DEFINED__ +typedef interface AsyncIFtpPreprocessProvider AsyncIFtpPreprocessProvider; + +#endif /* __AsyncIFtpPreprocessProvider_FWD_DEFINED__ */ + + +#ifndef __IFtpPostprocessProvider_FWD_DEFINED__ +#define __IFtpPostprocessProvider_FWD_DEFINED__ +typedef interface IFtpPostprocessProvider IFtpPostprocessProvider; + +#endif /* __IFtpPostprocessProvider_FWD_DEFINED__ */ + + +#ifndef __AsyncIFtpPostprocessProvider_FWD_DEFINED__ +#define __AsyncIFtpPostprocessProvider_FWD_DEFINED__ +typedef interface AsyncIFtpPostprocessProvider AsyncIFtpPostprocessProvider; + +#endif /* __AsyncIFtpPostprocessProvider_FWD_DEFINED__ */ + + +#ifndef __FtpProvider_FWD_DEFINED__ +#define __FtpProvider_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FtpProvider FtpProvider; +#else +typedef struct FtpProvider FtpProvider; +#endif /* __cplusplus */ + +#endif /* __FtpProvider_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ftpext_0000_0000 */ +/* [local] */ + +/*++ + +Copyright (c) 2008 Microsoft Corporation + +Module Name: ftpext.h + + + FTP extensibility API for FTP server (version 7.0 and higher) + It can be used to implement + + - custom FTP authentication + - custom FTP roles + - custom FTP user isolation + - custom FTP logging + + +--*/ +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +/* [uuid] */ struct DECLSPEC_UUID("9e04226f-e38c-419e-a448-62de3b3a8f43") CONFIGURATION_ENTRY + { + BSTR bstrKey; + BSTR bstrValue; + } ; + + +extern RPC_IF_HANDLE __MIDL_itf_ftpext_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ftpext_0000_0000_v0_0_s_ifspec; + +#ifndef __IFtpProviderConstruct_INTERFACE_DEFINED__ +#define __IFtpProviderConstruct_INTERFACE_DEFINED__ + +/* interface IFtpProviderConstruct */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IFtpProviderConstruct; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4d1a3f7b-412d-447c-b199-64f967e9a2da") + IFtpProviderConstruct : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Construct( + /* [in] */ __RPC__in SAFEARRAY * configurationEntries) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFtpProviderConstructVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFtpProviderConstruct * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFtpProviderConstruct * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFtpProviderConstruct * This); + + DECLSPEC_XFGVIRT(IFtpProviderConstruct, Construct) + HRESULT ( STDMETHODCALLTYPE *Construct )( + __RPC__in IFtpProviderConstruct * This, + /* [in] */ __RPC__in SAFEARRAY * configurationEntries); + + END_INTERFACE + } IFtpProviderConstructVtbl; + + interface IFtpProviderConstruct + { + CONST_VTBL struct IFtpProviderConstructVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFtpProviderConstruct_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFtpProviderConstruct_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFtpProviderConstruct_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFtpProviderConstruct_Construct(This,configurationEntries) \ + ( (This)->lpVtbl -> Construct(This,configurationEntries) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFtpProviderConstruct_INTERFACE_DEFINED__ */ + + +#ifndef __IFtpAuthenticationProvider_INTERFACE_DEFINED__ +#define __IFtpAuthenticationProvider_INTERFACE_DEFINED__ + +/* interface IFtpAuthenticationProvider */ +/* [helpstring][unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IFtpAuthenticationProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4659f95c-d5a8-4707-b2fc-6fd5794246cf") + IFtpAuthenticationProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AuthenticateUser( + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [string][in] */ __RPC__in_string LPCWSTR pszPassword, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszCanonicalUserName, + /* [retval][out] */ __RPC__out BOOL *pfAuthenticated) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFtpAuthenticationProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFtpAuthenticationProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFtpAuthenticationProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFtpAuthenticationProvider * This); + + DECLSPEC_XFGVIRT(IFtpAuthenticationProvider, AuthenticateUser) + HRESULT ( STDMETHODCALLTYPE *AuthenticateUser )( + __RPC__in IFtpAuthenticationProvider * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [string][in] */ __RPC__in_string LPCWSTR pszPassword, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszCanonicalUserName, + /* [retval][out] */ __RPC__out BOOL *pfAuthenticated); + + END_INTERFACE + } IFtpAuthenticationProviderVtbl; + + interface IFtpAuthenticationProvider + { + CONST_VTBL struct IFtpAuthenticationProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFtpAuthenticationProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFtpAuthenticationProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFtpAuthenticationProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFtpAuthenticationProvider_AuthenticateUser(This,pszSessionId,pszSiteName,pszUserName,pszPassword,ppszCanonicalUserName,pfAuthenticated) \ + ( (This)->lpVtbl -> AuthenticateUser(This,pszSessionId,pszSiteName,pszUserName,pszPassword,ppszCanonicalUserName,pfAuthenticated) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFtpAuthenticationProvider_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIFtpAuthenticationProvider_INTERFACE_DEFINED__ +#define __AsyncIFtpAuthenticationProvider_INTERFACE_DEFINED__ + +/* interface AsyncIFtpAuthenticationProvider */ +/* [uuid][helpstring][unique][object] */ + + +EXTERN_C const IID IID_AsyncIFtpAuthenticationProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c24efb65-9f3e-4996-8fb1-ce166916bab5") + AsyncIFtpAuthenticationProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_AuthenticateUser( + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [string][in] */ __RPC__in_string LPCWSTR pszPassword) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_AuthenticateUser( + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszCanonicalUserName, + /* [retval][out] */ __RPC__out BOOL *pfAuthenticated) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIFtpAuthenticationProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIFtpAuthenticationProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIFtpAuthenticationProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIFtpAuthenticationProvider * This); + + DECLSPEC_XFGVIRT(AsyncIFtpAuthenticationProvider, Begin_AuthenticateUser) + HRESULT ( STDMETHODCALLTYPE *Begin_AuthenticateUser )( + __RPC__in AsyncIFtpAuthenticationProvider * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [string][in] */ __RPC__in_string LPCWSTR pszPassword); + + DECLSPEC_XFGVIRT(AsyncIFtpAuthenticationProvider, Finish_AuthenticateUser) + HRESULT ( STDMETHODCALLTYPE *Finish_AuthenticateUser )( + __RPC__in AsyncIFtpAuthenticationProvider * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszCanonicalUserName, + /* [retval][out] */ __RPC__out BOOL *pfAuthenticated); + + END_INTERFACE + } AsyncIFtpAuthenticationProviderVtbl; + + interface AsyncIFtpAuthenticationProvider + { + CONST_VTBL struct AsyncIFtpAuthenticationProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIFtpAuthenticationProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIFtpAuthenticationProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIFtpAuthenticationProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIFtpAuthenticationProvider_Begin_AuthenticateUser(This,pszSessionId,pszSiteName,pszUserName,pszPassword) \ + ( (This)->lpVtbl -> Begin_AuthenticateUser(This,pszSessionId,pszSiteName,pszUserName,pszPassword) ) + +#define AsyncIFtpAuthenticationProvider_Finish_AuthenticateUser(This,ppszCanonicalUserName,pfAuthenticated) \ + ( (This)->lpVtbl -> Finish_AuthenticateUser(This,ppszCanonicalUserName,pfAuthenticated) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIFtpAuthenticationProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IFtpRoleProvider_INTERFACE_DEFINED__ +#define __IFtpRoleProvider_INTERFACE_DEFINED__ + +/* interface IFtpRoleProvider */ +/* [helpstring][unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IFtpRoleProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("909c850d-8ca0-4674-96b8-cc2941535725") + IFtpRoleProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsUserInRole( + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [string][in] */ __RPC__in_string LPCWSTR pszRole, + /* [retval][out] */ __RPC__out BOOL *pfIsInRole) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFtpRoleProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFtpRoleProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFtpRoleProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFtpRoleProvider * This); + + DECLSPEC_XFGVIRT(IFtpRoleProvider, IsUserInRole) + HRESULT ( STDMETHODCALLTYPE *IsUserInRole )( + __RPC__in IFtpRoleProvider * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [string][in] */ __RPC__in_string LPCWSTR pszRole, + /* [retval][out] */ __RPC__out BOOL *pfIsInRole); + + END_INTERFACE + } IFtpRoleProviderVtbl; + + interface IFtpRoleProvider + { + CONST_VTBL struct IFtpRoleProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFtpRoleProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFtpRoleProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFtpRoleProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFtpRoleProvider_IsUserInRole(This,pszSessionId,pszSiteName,pszUserName,pszRole,pfIsInRole) \ + ( (This)->lpVtbl -> IsUserInRole(This,pszSessionId,pszSiteName,pszUserName,pszRole,pfIsInRole) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFtpRoleProvider_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIFtpRoleProvider_INTERFACE_DEFINED__ +#define __AsyncIFtpRoleProvider_INTERFACE_DEFINED__ + +/* interface AsyncIFtpRoleProvider */ +/* [uuid][helpstring][unique][object] */ + + +EXTERN_C const IID IID_AsyncIFtpRoleProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3e83bf99-70ec-41ca-84b6-aca7c7a62caf") + AsyncIFtpRoleProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_IsUserInRole( + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [string][in] */ __RPC__in_string LPCWSTR pszRole) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_IsUserInRole( + /* [retval][out] */ __RPC__out BOOL *pfIsInRole) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIFtpRoleProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIFtpRoleProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIFtpRoleProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIFtpRoleProvider * This); + + DECLSPEC_XFGVIRT(AsyncIFtpRoleProvider, Begin_IsUserInRole) + HRESULT ( STDMETHODCALLTYPE *Begin_IsUserInRole )( + __RPC__in AsyncIFtpRoleProvider * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [string][in] */ __RPC__in_string LPCWSTR pszRole); + + DECLSPEC_XFGVIRT(AsyncIFtpRoleProvider, Finish_IsUserInRole) + HRESULT ( STDMETHODCALLTYPE *Finish_IsUserInRole )( + __RPC__in AsyncIFtpRoleProvider * This, + /* [retval][out] */ __RPC__out BOOL *pfIsInRole); + + END_INTERFACE + } AsyncIFtpRoleProviderVtbl; + + interface AsyncIFtpRoleProvider + { + CONST_VTBL struct AsyncIFtpRoleProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIFtpRoleProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIFtpRoleProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIFtpRoleProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIFtpRoleProvider_Begin_IsUserInRole(This,pszSessionId,pszSiteName,pszUserName,pszRole) \ + ( (This)->lpVtbl -> Begin_IsUserInRole(This,pszSessionId,pszSiteName,pszUserName,pszRole) ) + +#define AsyncIFtpRoleProvider_Finish_IsUserInRole(This,pfIsInRole) \ + ( (This)->lpVtbl -> Finish_IsUserInRole(This,pfIsInRole) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIFtpRoleProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IFtpHomeDirectoryProvider_INTERFACE_DEFINED__ +#define __IFtpHomeDirectoryProvider_INTERFACE_DEFINED__ + +/* interface IFtpHomeDirectoryProvider */ +/* [helpstring][unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IFtpHomeDirectoryProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0933b392-18dd-4097-8b9c-83325c35d9a6") + IFtpHomeDirectoryProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetUserHomeDirectoryData( + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszHomeDirectoryData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFtpHomeDirectoryProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFtpHomeDirectoryProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFtpHomeDirectoryProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFtpHomeDirectoryProvider * This); + + DECLSPEC_XFGVIRT(IFtpHomeDirectoryProvider, GetUserHomeDirectoryData) + HRESULT ( STDMETHODCALLTYPE *GetUserHomeDirectoryData )( + __RPC__in IFtpHomeDirectoryProvider * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszHomeDirectoryData); + + END_INTERFACE + } IFtpHomeDirectoryProviderVtbl; + + interface IFtpHomeDirectoryProvider + { + CONST_VTBL struct IFtpHomeDirectoryProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFtpHomeDirectoryProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFtpHomeDirectoryProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFtpHomeDirectoryProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFtpHomeDirectoryProvider_GetUserHomeDirectoryData(This,pszSessionId,pszSiteName,pszUserName,ppszHomeDirectoryData) \ + ( (This)->lpVtbl -> GetUserHomeDirectoryData(This,pszSessionId,pszSiteName,pszUserName,ppszHomeDirectoryData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFtpHomeDirectoryProvider_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIFtpHomeDirectoryProvider_INTERFACE_DEFINED__ +#define __AsyncIFtpHomeDirectoryProvider_INTERFACE_DEFINED__ + +/* interface AsyncIFtpHomeDirectoryProvider */ +/* [uuid][helpstring][unique][object] */ + + +EXTERN_C const IID IID_AsyncIFtpHomeDirectoryProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("73f81638-6295-42bd-a2be-4a657f7c479c") + AsyncIFtpHomeDirectoryProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_GetUserHomeDirectoryData( + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_GetUserHomeDirectoryData( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszHomeDirectoryData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIFtpHomeDirectoryProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIFtpHomeDirectoryProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIFtpHomeDirectoryProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIFtpHomeDirectoryProvider * This); + + DECLSPEC_XFGVIRT(AsyncIFtpHomeDirectoryProvider, Begin_GetUserHomeDirectoryData) + HRESULT ( STDMETHODCALLTYPE *Begin_GetUserHomeDirectoryData )( + __RPC__in AsyncIFtpHomeDirectoryProvider * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName); + + DECLSPEC_XFGVIRT(AsyncIFtpHomeDirectoryProvider, Finish_GetUserHomeDirectoryData) + HRESULT ( STDMETHODCALLTYPE *Finish_GetUserHomeDirectoryData )( + __RPC__in AsyncIFtpHomeDirectoryProvider * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *ppszHomeDirectoryData); + + END_INTERFACE + } AsyncIFtpHomeDirectoryProviderVtbl; + + interface AsyncIFtpHomeDirectoryProvider + { + CONST_VTBL struct AsyncIFtpHomeDirectoryProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIFtpHomeDirectoryProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIFtpHomeDirectoryProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIFtpHomeDirectoryProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIFtpHomeDirectoryProvider_Begin_GetUserHomeDirectoryData(This,pszSessionId,pszSiteName,pszUserName) \ + ( (This)->lpVtbl -> Begin_GetUserHomeDirectoryData(This,pszSessionId,pszSiteName,pszUserName) ) + +#define AsyncIFtpHomeDirectoryProvider_Finish_GetUserHomeDirectoryData(This,ppszHomeDirectoryData) \ + ( (This)->lpVtbl -> Finish_GetUserHomeDirectoryData(This,ppszHomeDirectoryData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIFtpHomeDirectoryProvider_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ftpext_0000_0004 */ +/* [local] */ + +/* [uuid] */ struct DECLSPEC_UUID("6c678262-fc37-406e-84e8-e9c6a5757cdc") LOGGING_PARAMETERS + { + LPCWSTR pszSessionId; + LPCWSTR pszSiteName; + LPCWSTR pszUserName; + LPCWSTR pszHostName; + LPCWSTR pszRemoteIpAddress; + DWORD dwRemoteIpPort; + LPCWSTR pszLocalIpAddress; + DWORD dwLocalIpPort; + ULONGLONG BytesSent; + ULONGLONG BytesReceived; + LPCWSTR pszCommand; + LPCWSTR pszCommandParameters; + LPCWSTR pszFullPath; + DWORD dwElapsedMilliseconds; + DWORD FtpStatus; + DWORD FtpSubStatus; + HRESULT hrStatus; + LPCWSTR pszInformation; + } ; + + +extern RPC_IF_HANDLE __MIDL_itf_ftpext_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ftpext_0000_0004_v0_0_s_ifspec; + +#ifndef __IFtpLogProvider_INTERFACE_DEFINED__ +#define __IFtpLogProvider_INTERFACE_DEFINED__ + +/* interface IFtpLogProvider */ +/* [helpstring][unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IFtpLogProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a18a94cc-8299-4408-816c-7c3baca1a40e") + IFtpLogProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Log( + /* [in] */ __RPC__in const struct LOGGING_PARAMETERS *pLoggingParameters) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFtpLogProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFtpLogProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFtpLogProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFtpLogProvider * This); + + DECLSPEC_XFGVIRT(IFtpLogProvider, Log) + HRESULT ( STDMETHODCALLTYPE *Log )( + __RPC__in IFtpLogProvider * This, + /* [in] */ __RPC__in const struct LOGGING_PARAMETERS *pLoggingParameters); + + END_INTERFACE + } IFtpLogProviderVtbl; + + interface IFtpLogProvider + { + CONST_VTBL struct IFtpLogProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFtpLogProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFtpLogProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFtpLogProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFtpLogProvider_Log(This,pLoggingParameters) \ + ( (This)->lpVtbl -> Log(This,pLoggingParameters) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFtpLogProvider_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIFtpLogProvider_INTERFACE_DEFINED__ +#define __AsyncIFtpLogProvider_INTERFACE_DEFINED__ + +/* interface AsyncIFtpLogProvider */ +/* [uuid][helpstring][unique][object] */ + + +EXTERN_C const IID IID_AsyncIFtpLogProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00a0ae46-2498-48b2-95e6-df678ed7d49f") + AsyncIFtpLogProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_Log( + /* [in] */ __RPC__in const struct LOGGING_PARAMETERS *pLoggingParameters) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_Log( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIFtpLogProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIFtpLogProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIFtpLogProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIFtpLogProvider * This); + + DECLSPEC_XFGVIRT(AsyncIFtpLogProvider, Begin_Log) + HRESULT ( STDMETHODCALLTYPE *Begin_Log )( + __RPC__in AsyncIFtpLogProvider * This, + /* [in] */ __RPC__in const struct LOGGING_PARAMETERS *pLoggingParameters); + + DECLSPEC_XFGVIRT(AsyncIFtpLogProvider, Finish_Log) + HRESULT ( STDMETHODCALLTYPE *Finish_Log )( + __RPC__in AsyncIFtpLogProvider * This); + + END_INTERFACE + } AsyncIFtpLogProviderVtbl; + + interface AsyncIFtpLogProvider + { + CONST_VTBL struct AsyncIFtpLogProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIFtpLogProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIFtpLogProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIFtpLogProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIFtpLogProvider_Begin_Log(This,pLoggingParameters) \ + ( (This)->lpVtbl -> Begin_Log(This,pLoggingParameters) ) + +#define AsyncIFtpLogProvider_Finish_Log(This) \ + ( (This)->lpVtbl -> Finish_Log(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIFtpLogProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IFtpAuthorizationProvider_INTERFACE_DEFINED__ +#define __IFtpAuthorizationProvider_INTERFACE_DEFINED__ + +/* interface IFtpAuthorizationProvider */ +/* [helpstring][unique][async_uuid][uuid][object] */ + +typedef +enum _FTP_ACCESS + { + FTP_ACCESS_NONE = 0, + FTP_ACCESS_READ = ( FTP_ACCESS_NONE + 1 ) , + FTP_ACCESS_WRITE = ( FTP_ACCESS_READ + 1 ) , + FTP_ACCESS_READ_WRITE = ( FTP_ACCESS_WRITE + 1 ) + } FTP_ACCESS; + + +EXTERN_C const IID IID_IFtpAuthorizationProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a50ae7a1-a35a-42b4-a4f3-f4f7057a05d1") + IFtpAuthorizationProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetUserAccessPermission( + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszVirtualPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [retval][out] */ __RPC__out FTP_ACCESS *pFtpAccess) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFtpAuthorizationProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFtpAuthorizationProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFtpAuthorizationProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFtpAuthorizationProvider * This); + + DECLSPEC_XFGVIRT(IFtpAuthorizationProvider, GetUserAccessPermission) + HRESULT ( STDMETHODCALLTYPE *GetUserAccessPermission )( + __RPC__in IFtpAuthorizationProvider * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszVirtualPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName, + /* [retval][out] */ __RPC__out FTP_ACCESS *pFtpAccess); + + END_INTERFACE + } IFtpAuthorizationProviderVtbl; + + interface IFtpAuthorizationProvider + { + CONST_VTBL struct IFtpAuthorizationProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFtpAuthorizationProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFtpAuthorizationProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFtpAuthorizationProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFtpAuthorizationProvider_GetUserAccessPermission(This,pszSessionId,pszSiteName,pszVirtualPath,pszUserName,pFtpAccess) \ + ( (This)->lpVtbl -> GetUserAccessPermission(This,pszSessionId,pszSiteName,pszVirtualPath,pszUserName,pFtpAccess) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFtpAuthorizationProvider_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIFtpAuthorizationProvider_INTERFACE_DEFINED__ +#define __AsyncIFtpAuthorizationProvider_INTERFACE_DEFINED__ + +/* interface AsyncIFtpAuthorizationProvider */ +/* [uuid][helpstring][unique][object] */ + + +EXTERN_C const IID IID_AsyncIFtpAuthorizationProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("860dc339-07e5-4a5c-9c61-8820cea012bc") + AsyncIFtpAuthorizationProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_GetUserAccessPermission( + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszVirtualPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_GetUserAccessPermission( + /* [retval][out] */ __RPC__out FTP_ACCESS *pFtpAccess) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIFtpAuthorizationProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIFtpAuthorizationProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIFtpAuthorizationProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIFtpAuthorizationProvider * This); + + DECLSPEC_XFGVIRT(AsyncIFtpAuthorizationProvider, Begin_GetUserAccessPermission) + HRESULT ( STDMETHODCALLTYPE *Begin_GetUserAccessPermission )( + __RPC__in AsyncIFtpAuthorizationProvider * This, + /* [string][in] */ __RPC__in_string LPCWSTR pszSessionId, + /* [string][in] */ __RPC__in_string LPCWSTR pszSiteName, + /* [string][in] */ __RPC__in_string LPCWSTR pszVirtualPath, + /* [string][in] */ __RPC__in_string LPCWSTR pszUserName); + + DECLSPEC_XFGVIRT(AsyncIFtpAuthorizationProvider, Finish_GetUserAccessPermission) + HRESULT ( STDMETHODCALLTYPE *Finish_GetUserAccessPermission )( + __RPC__in AsyncIFtpAuthorizationProvider * This, + /* [retval][out] */ __RPC__out FTP_ACCESS *pFtpAccess); + + END_INTERFACE + } AsyncIFtpAuthorizationProviderVtbl; + + interface AsyncIFtpAuthorizationProvider + { + CONST_VTBL struct AsyncIFtpAuthorizationProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIFtpAuthorizationProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIFtpAuthorizationProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIFtpAuthorizationProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIFtpAuthorizationProvider_Begin_GetUserAccessPermission(This,pszSessionId,pszSiteName,pszVirtualPath,pszUserName) \ + ( (This)->lpVtbl -> Begin_GetUserAccessPermission(This,pszSessionId,pszSiteName,pszVirtualPath,pszUserName) ) + +#define AsyncIFtpAuthorizationProvider_Finish_GetUserAccessPermission(This,pFtpAccess) \ + ( (This)->lpVtbl -> Finish_GetUserAccessPermission(This,pFtpAccess) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIFtpAuthorizationProvider_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ftpext_0000_0006 */ +/* [local] */ + +typedef /* [v1_enum][uuid] */ DECLSPEC_UUID("e95e698b-7505-4e49-8fb1-cb06dc26c096") +enum _FTP_PROCESS_STATUS + { + FTP_PROCESS_CONTINUE = 0, + FTP_PROCESS_CLOSE_SESSION = ( FTP_PROCESS_CONTINUE + 1 ) , + FTP_PROCESS_TERMINATE_SESSION = ( FTP_PROCESS_CLOSE_SESSION + 1 ) , + FTP_PROCESS_REJECT_COMMAND = ( FTP_PROCESS_TERMINATE_SESSION + 1 ) + } FTP_PROCESS_STATUS; + +/* [uuid] */ struct DECLSPEC_UUID("07c3d591-cead-4702-abab-a70886af38a3") PRE_PROCESS_PARAMETERS + { + LPCWSTR pszSessionId; + LPCWSTR pszSiteName; + LPCWSTR pszUserName; + LPCWSTR pszHostName; + LPCWSTR pszRemoteIpAddress; + DWORD dwRemoteIpPort; + LPCWSTR pszLocalIpAddress; + DWORD dwLocalIpPort; + LPCWSTR pszCommand; + LPCWSTR pszCommandParameters; + FILETIME SessionStartTime; + ULONGLONG BytesSentPerSession; + ULONGLONG BytesReceivedPerSession; + } ; + + +extern RPC_IF_HANDLE __MIDL_itf_ftpext_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ftpext_0000_0006_v0_0_s_ifspec; + +#ifndef __IFtpPreprocessProvider_INTERFACE_DEFINED__ +#define __IFtpPreprocessProvider_INTERFACE_DEFINED__ + +/* interface IFtpPreprocessProvider */ +/* [helpstring][unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IFtpPreprocessProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a3c19b60-5a28-471a-8f93-ab30411cee82") + IFtpPreprocessProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE HandlePreprocess( + /* [in] */ __RPC__in const struct PRE_PROCESS_PARAMETERS *pPreProcessParameters, + /* [retval][out] */ __RPC__out FTP_PROCESS_STATUS *pFtpProcessStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFtpPreprocessProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFtpPreprocessProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFtpPreprocessProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFtpPreprocessProvider * This); + + DECLSPEC_XFGVIRT(IFtpPreprocessProvider, HandlePreprocess) + HRESULT ( STDMETHODCALLTYPE *HandlePreprocess )( + __RPC__in IFtpPreprocessProvider * This, + /* [in] */ __RPC__in const struct PRE_PROCESS_PARAMETERS *pPreProcessParameters, + /* [retval][out] */ __RPC__out FTP_PROCESS_STATUS *pFtpProcessStatus); + + END_INTERFACE + } IFtpPreprocessProviderVtbl; + + interface IFtpPreprocessProvider + { + CONST_VTBL struct IFtpPreprocessProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFtpPreprocessProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFtpPreprocessProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFtpPreprocessProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFtpPreprocessProvider_HandlePreprocess(This,pPreProcessParameters,pFtpProcessStatus) \ + ( (This)->lpVtbl -> HandlePreprocess(This,pPreProcessParameters,pFtpProcessStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFtpPreprocessProvider_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIFtpPreprocessProvider_INTERFACE_DEFINED__ +#define __AsyncIFtpPreprocessProvider_INTERFACE_DEFINED__ + +/* interface AsyncIFtpPreprocessProvider */ +/* [uuid][helpstring][unique][object] */ + + +EXTERN_C const IID IID_AsyncIFtpPreprocessProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6ff5fd8f-fd8e-48b1-a3e0-bf7073db4db5") + AsyncIFtpPreprocessProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_HandlePreprocess( + /* [in] */ __RPC__in const struct PRE_PROCESS_PARAMETERS *pPreProcessParameters) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_HandlePreprocess( + /* [retval][out] */ __RPC__out FTP_PROCESS_STATUS *pFtpProcessStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIFtpPreprocessProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIFtpPreprocessProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIFtpPreprocessProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIFtpPreprocessProvider * This); + + DECLSPEC_XFGVIRT(AsyncIFtpPreprocessProvider, Begin_HandlePreprocess) + HRESULT ( STDMETHODCALLTYPE *Begin_HandlePreprocess )( + __RPC__in AsyncIFtpPreprocessProvider * This, + /* [in] */ __RPC__in const struct PRE_PROCESS_PARAMETERS *pPreProcessParameters); + + DECLSPEC_XFGVIRT(AsyncIFtpPreprocessProvider, Finish_HandlePreprocess) + HRESULT ( STDMETHODCALLTYPE *Finish_HandlePreprocess )( + __RPC__in AsyncIFtpPreprocessProvider * This, + /* [retval][out] */ __RPC__out FTP_PROCESS_STATUS *pFtpProcessStatus); + + END_INTERFACE + } AsyncIFtpPreprocessProviderVtbl; + + interface AsyncIFtpPreprocessProvider + { + CONST_VTBL struct AsyncIFtpPreprocessProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIFtpPreprocessProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIFtpPreprocessProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIFtpPreprocessProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIFtpPreprocessProvider_Begin_HandlePreprocess(This,pPreProcessParameters) \ + ( (This)->lpVtbl -> Begin_HandlePreprocess(This,pPreProcessParameters) ) + +#define AsyncIFtpPreprocessProvider_Finish_HandlePreprocess(This,pFtpProcessStatus) \ + ( (This)->lpVtbl -> Finish_HandlePreprocess(This,pFtpProcessStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIFtpPreprocessProvider_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_ftpext_0000_0007 */ +/* [local] */ + +/* [uuid] */ struct DECLSPEC_UUID("53337595-9165-4a8b-a202-7d5dbf7e4b8b") POST_PROCESS_PARAMETERS + { + LPCWSTR pszSessionId; + LPCWSTR pszSiteName; + LPCWSTR pszUserName; + LPCWSTR pszHostName; + LPCWSTR pszRemoteIpAddress; + DWORD dwRemoteIpPort; + LPCWSTR pszLocalIpAddress; + DWORD dwLocalIpPort; + ULONGLONG BytesSent; + ULONGLONG BytesReceived; + LPCWSTR pszCommand; + LPCWSTR pszCommandParameters; + LPCWSTR pszFullPath; + LPCWSTR pszPhysicalPath; + DWORD FtpStatus; + DWORD FtpSubStatus; + HRESULT hrStatus; + FILETIME SessionStartTime; + ULONGLONG BytesSentPerSession; + ULONGLONG BytesReceivedPerSession; + } ; + + +extern RPC_IF_HANDLE __MIDL_itf_ftpext_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ftpext_0000_0007_v0_0_s_ifspec; + +#ifndef __IFtpPostprocessProvider_INTERFACE_DEFINED__ +#define __IFtpPostprocessProvider_INTERFACE_DEFINED__ + +/* interface IFtpPostprocessProvider */ +/* [helpstring][unique][async_uuid][uuid][object] */ + + +EXTERN_C const IID IID_IFtpPostprocessProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4522cbc6-16cd-49ad-8653-9a2c579e4280") + IFtpPostprocessProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE HandlePostprocess( + /* [in] */ __RPC__in const struct POST_PROCESS_PARAMETERS *pPostProcessParameters, + /* [retval][out] */ __RPC__out FTP_PROCESS_STATUS *pFtpProcessStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFtpPostprocessProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFtpPostprocessProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFtpPostprocessProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFtpPostprocessProvider * This); + + DECLSPEC_XFGVIRT(IFtpPostprocessProvider, HandlePostprocess) + HRESULT ( STDMETHODCALLTYPE *HandlePostprocess )( + __RPC__in IFtpPostprocessProvider * This, + /* [in] */ __RPC__in const struct POST_PROCESS_PARAMETERS *pPostProcessParameters, + /* [retval][out] */ __RPC__out FTP_PROCESS_STATUS *pFtpProcessStatus); + + END_INTERFACE + } IFtpPostprocessProviderVtbl; + + interface IFtpPostprocessProvider + { + CONST_VTBL struct IFtpPostprocessProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFtpPostprocessProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFtpPostprocessProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFtpPostprocessProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFtpPostprocessProvider_HandlePostprocess(This,pPostProcessParameters,pFtpProcessStatus) \ + ( (This)->lpVtbl -> HandlePostprocess(This,pPostProcessParameters,pFtpProcessStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFtpPostprocessProvider_INTERFACE_DEFINED__ */ + + +#ifndef __AsyncIFtpPostprocessProvider_INTERFACE_DEFINED__ +#define __AsyncIFtpPostprocessProvider_INTERFACE_DEFINED__ + +/* interface AsyncIFtpPostprocessProvider */ +/* [uuid][helpstring][unique][object] */ + + +EXTERN_C const IID IID_AsyncIFtpPostprocessProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a16b2542-9694-4eb1-a564-6c2e91fdc133") + AsyncIFtpPostprocessProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Begin_HandlePostprocess( + /* [in] */ __RPC__in const struct POST_PROCESS_PARAMETERS *pPostProcessParameters) = 0; + + virtual HRESULT STDMETHODCALLTYPE Finish_HandlePostprocess( + /* [retval][out] */ __RPC__out FTP_PROCESS_STATUS *pFtpProcessStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct AsyncIFtpPostprocessProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in AsyncIFtpPostprocessProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in AsyncIFtpPostprocessProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in AsyncIFtpPostprocessProvider * This); + + DECLSPEC_XFGVIRT(AsyncIFtpPostprocessProvider, Begin_HandlePostprocess) + HRESULT ( STDMETHODCALLTYPE *Begin_HandlePostprocess )( + __RPC__in AsyncIFtpPostprocessProvider * This, + /* [in] */ __RPC__in const struct POST_PROCESS_PARAMETERS *pPostProcessParameters); + + DECLSPEC_XFGVIRT(AsyncIFtpPostprocessProvider, Finish_HandlePostprocess) + HRESULT ( STDMETHODCALLTYPE *Finish_HandlePostprocess )( + __RPC__in AsyncIFtpPostprocessProvider * This, + /* [retval][out] */ __RPC__out FTP_PROCESS_STATUS *pFtpProcessStatus); + + END_INTERFACE + } AsyncIFtpPostprocessProviderVtbl; + + interface AsyncIFtpPostprocessProvider + { + CONST_VTBL struct AsyncIFtpPostprocessProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define AsyncIFtpPostprocessProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define AsyncIFtpPostprocessProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define AsyncIFtpPostprocessProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define AsyncIFtpPostprocessProvider_Begin_HandlePostprocess(This,pPostProcessParameters) \ + ( (This)->lpVtbl -> Begin_HandlePostprocess(This,pPostProcessParameters) ) + +#define AsyncIFtpPostprocessProvider_Finish_HandlePostprocess(This,pFtpProcessStatus) \ + ( (This)->lpVtbl -> Finish_HandlePostprocess(This,pFtpProcessStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __AsyncIFtpPostprocessProvider_INTERFACE_DEFINED__ */ + + + +#ifndef __FtpProviderLibrary_LIBRARY_DEFINED__ +#define __FtpProviderLibrary_LIBRARY_DEFINED__ + +/* library FtpProviderLibrary */ +/* [helpstring][version][uuid] */ + + + + + + +EXTERN_C const IID LIBID_FtpProviderLibrary; + +EXTERN_C const CLSID CLSID_FtpProvider; + +#ifdef __cplusplus + +class DECLSPEC_UUID("70bdc667-33b2-45f0-ac52-c3ca46f7a656") +FtpProvider; +#endif +#endif /* __FtpProviderLibrary_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_ftpext_0000_0009 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_ftpext_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ftpext_0000_0009_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fullenumsyncdeviceservice.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fullenumsyncdeviceservice.h new file mode 100644 index 0000000000000000000000000000000000000000..667b26c785e8e95e86ea3950bc0352dde6c31e25 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fullenumsyncdeviceservice.h @@ -0,0 +1,195 @@ +/* + * FullEnumSyncDeviceService.h + * + * Contains definitions for the Full Enumeration Sync Device Service + * + * Copyright (c) Microsoft Corporation, All Rights Reserved. + * + */ + + +#ifndef _FULLENUMSYNCSERVICE_H_ +#define _FULLENUMSYNCSERVICE_H_ + +#include + +#include + + +/***************************************************************************** + Full Enumeration Sync Service Info +******************************************************************************/ + +DEFINE_DEVSVCGUID(SERVICE_FullEnumSync, + 0x28d3aac9, 0xc075, 0x44be, 0x88, 0x81, 0x65, 0xf3, 0x8d, 0x30, 0x59, 0x09 ); + +#define NAME_FullEnumSyncSvc L"FullEnumSync" +#define TYPE_FullEnumSyncSvc DEVSVCTYPE_ABSTRACT + + +/***************************************************************************** + Full Enumeration Sync Service Properties +******************************************************************************/ + +DEFINE_DEVSVCGUID(NAMESPACE_FullEnumSyncSvc, + 0x63b10e6c, 0x4f3a, 0x456d, 0x95, 0xcb, 0x98, 0x94, 0xed, 0xec, 0x9f, 0xa5 ); + + +/* PKEY_FullEnumSyncSvc_VersionProps + * + * Provides information about change units and version properties. The + * format for the dataset is + * + * UINT32 Number of change units + * UINT128 Namespace GUID for first change unit property key + * UINT32 Namespace ID for the first change unit property key + * UINT32 Number of properties associated with this change unit + * UINT128 Namespace GUID for first property key in change unit + * UINT32 Namespace ID for first property key in change unit + * ... Repeat for number of property keys + * ... Repeat for number of change units + * + * NOTE: If all change units use the same property key specify a namespace + * GUID of GUID_NULL (all 0's) and a namespace ID of 0. + * + * Type: AUInt8 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_FullEnumSyncSvc_VersionProps, + 0x63b10e6c, 0x4f3a, 0x456d, 0x95, 0xcb, 0x98, 0x94, 0xed, 0xec, 0x9f, 0xa5 , + 3 ); + +#define NAME_FullEnumSyncSvc_VersionProps L"FullEnumVersionProps" + + +/* PKEY_FullEnumSyncSvc_ReplicaID + * + * Contains the GUID representing this replica in the sync community. + * + * Type: UInt128 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_FullEnumSyncSvc_ReplicaID, + 0x63b10e6c, 0x4f3a, 0x456d, 0x95, 0xcb, 0x98, 0x94, 0xed, 0xec, 0x9f, 0xa5 , + 4 ); + +#define NAME_FullEnumSyncSvc_ReplicaID L"FullEnumReplicaID" + + +/* PKEY_FullEnumSyncSvc_KnowledgeObjectID + * + * Object ID to be used for the knowledge object + * + * Type: UInt32 + * Form: ObjectID + */ + +DEFINE_DEVSVCPROPKEY(PKEY_FullEnumSyncSvc_KnowledgeObjectID, + 0x63b10e6c, 0x4f3a, 0x456d, 0x95, 0xcb, 0x98, 0x94, 0xed, 0xec, 0x9f, 0xa5 , + 7 ); + +#define NAME_FullEnumSyncSvc_KnowledgeObjectID L"FullEnumKnowledgeObjectID" + + +/* PKEY_FullEnumSyncSvc_LastSyncProxyID + * + * Contains a GUID indicating the last sync proxy to perform a sync operation + * + * Type: UInt128 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_FullEnumSyncSvc_LastSyncProxyID, + 0x63b10e6c, 0x4f3a, 0x456d, 0x95, 0xcb, 0x98, 0x94, 0xed, 0xec, 0x9f, 0xa5 , + 8 ); + +#define NAME_FullEnumSyncSvc_LastSyncProxyID L"FullEnumLastSyncProxyID" + + +/* PKEY_FullEnumSyncSvc_ProviderVersion + * + * Contains a device defined value giving the version of the provider + * currently in use on the device. This version must be incremented whenever + * new properties are added to the device implementation so that they will + * be recognized and managed as part of synchronization. 0 is reserved. + * + * Type: UInt16 + * Form: None + */ + +DEFINE_DEVSVCPROPKEY(PKEY_FullEnumSyncSvc_ProviderVersion, + 0x63b10e6c, 0x4f3a, 0x456d, 0x95, 0xcb, 0x98, 0x94, 0xed, 0xec, 0x9f, 0xa5 , + 9 ); + +#define NAME_FullEnumSyncSvc_ProviderVersion L"FullEnumProviderVersion" + + +/* PKEY_FullEnumSyncSvc_SyncFormat + * + * Indicates the format GUID for the object format that is to be used in the + * sync operation. + * + * Type: UInt128 + * Form: None + */ + +#define PKEY_FullEnumSyncSvc_SyncFormat PKEY_SyncSvc_SyncFormat +#define NAME_FullEnumSyncSvc_SyncFormat NAME_SyncSvc_SyncFormat + +/* PKEY_FullEnumSyncSvc_LocalOnlyDelete + * + * Boolean flag indicating whether deletes of objects on the service host + * should be treated as "local only" and not propogated to other sync + * participants. The alternative is "true sync" in which deletes on the + * service host are propogated to all other sync participants. + * + * Type: UInt8 + * Form: None + */ + +#define PKEY_FullEnumSyncSvc_LocalOnlyDelete PKEY_SyncSvc_LocalOnlyDelete +#define NAME_FullEnumSyncSvc_LocalOnlyDelete NAME_SyncSvc_LocalOnlyDelete + +/* PKEY_FullEnumSyncSvc_FilterType + * + * Type: UInt8 + * Form: None + */ + +#define PKEY_FullEnumSyncSvc_FilterType PKEY_SyncSvc_FilterType +#define NAME_FullEnumSyncSvc_FilterType NAME_SyncSvc_FilterType + +/***************************************************************************** + Full Enumeration Sync Service Object Formats +******************************************************************************/ + +/* FORMAT_FullEnumSyncKnowledge + * + * Knowledge object format + * + */ + +DEFINE_DEVSVCGUID(FORMAT_FullEnumSyncKnowledge, + 0x221bce32, 0x221b, 0x4f45, 0xb4, 0x8b, 0x80, 0xde, 0x9a, 0x93, 0xa4, 0x4a ); + +#define NAME_FullEnumSyncKnowledge L"FullEnumSyncKnowledge" + + + +/***************************************************************************** + Full Enumeration Sync Service Methods +******************************************************************************/ + + +/* Inherited methods */ + +#define METHOD_FullEnumSyncSvc_BeginSync METHOD_SyncSvc_BeginSync +#define NAME_FullEnumSyncSvc_BeginSync NAME_SyncSvc_BeginSync + +#define METHOD_FullEnumSyncSvc_EndSync METHOD_SyncSvc_EndSync +#define NAME_FullEnumSyncSvc_EndSync NAME_SyncSvc_EndSync + + +#endif /*_FULLENUMSYNCSERVICE_H_*/ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscovery.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscovery.h new file mode 100644 index 0000000000000000000000000000000000000000..8ee410fa8676b6996ea1d3dbc2162856ee407fb7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscovery.h @@ -0,0 +1,179 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __functiondiscovery_h__ +#define __functiondiscovery_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __FunctionDiscovery_FWD_DEFINED__ +#define __FunctionDiscovery_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FunctionDiscovery FunctionDiscovery; +#else +typedef struct FunctionDiscovery FunctionDiscovery; +#endif /* __cplusplus */ + +#endif /* __FunctionDiscovery_FWD_DEFINED__ */ + + +#ifndef __PropertyStore_FWD_DEFINED__ +#define __PropertyStore_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PropertyStore PropertyStore; +#else +typedef struct PropertyStore PropertyStore; +#endif /* __cplusplus */ + +#endif /* __PropertyStore_FWD_DEFINED__ */ + + +#ifndef __FunctionInstanceCollection_FWD_DEFINED__ +#define __FunctionInstanceCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FunctionInstanceCollection FunctionInstanceCollection; +#else +typedef struct FunctionInstanceCollection FunctionInstanceCollection; +#endif /* __cplusplus */ + +#endif /* __FunctionInstanceCollection_FWD_DEFINED__ */ + + +#ifndef __PropertyStoreCollection_FWD_DEFINED__ +#define __PropertyStoreCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PropertyStoreCollection PropertyStoreCollection; +#else +typedef struct PropertyStoreCollection PropertyStoreCollection; +#endif /* __cplusplus */ + +#endif /* __PropertyStoreCollection_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "propsys.h" +#include "FunctionDiscoveryAPI.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_functiondiscovery_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_functiondiscovery_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_functiondiscovery_0000_0000_v0_0_s_ifspec; + + +#ifndef __FctnDiscLib_LIBRARY_DEFINED__ +#define __FctnDiscLib_LIBRARY_DEFINED__ + +/* library FctnDiscLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_FctnDiscLib; + +EXTERN_C const CLSID CLSID_FunctionDiscovery; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C72BE2EC-8E90-452c-B29A-AB8FF1C071FC") +FunctionDiscovery; +#endif + +EXTERN_C const CLSID CLSID_PropertyStore; + +#ifdef __cplusplus + +class DECLSPEC_UUID("e4796550-df61-448b-9193-13fc1341b163") +PropertyStore; +#endif + +EXTERN_C const CLSID CLSID_FunctionInstanceCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ba818ce5-b55f-443f-ad39-2fe89be6191f") +FunctionInstanceCollection; +#endif + +EXTERN_C const CLSID CLSID_PropertyStoreCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("EDD36029-D753-4862-AA5B-5BCCAD2A4D29") +PropertyStoreCollection; +#endif +#endif /* __FctnDiscLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_functiondiscovery_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_functiondiscovery_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_functiondiscovery_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscovery.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscovery.idl new file mode 100644 index 0000000000000000000000000000000000000000..02c5f96bfc421c5e479f34e7350b39959ff9bb35 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscovery.idl @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "propsys.idl"; +import "FunctionDiscoveryAPI.idl"; + +[ + uuid(A1CCFEB3-EBFA-44b7-9D53-CAF2D18A1782), + version(1.0), + helpstring("Function Discovery 1.0 Type Library") +] +library FctnDiscLib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + /// Function Discovery + [ + uuid(C72BE2EC-8E90-452c-B29A-AB8FF1C071FC), + helpstring("Function Discovery Class") + ] + coclass FunctionDiscovery + { + [default] interface IFunctionDiscovery; + }; + + /// Property Store + [ + uuid(e4796550-df61-448b-9193-13fc1341b163), + helpstring("Property Store") + ] + coclass PropertyStore + { + [default] interface IPropertyStore; + }; + + /// Function Instance Collection + [ + uuid(ba818ce5-b55f-443f-ad39-2fe89be6191f), + helpstring("Function Instance Collection Class") + ] + coclass FunctionInstanceCollection + { + [default] interface IFunctionInstanceCollection; + }; + + // Property Store Collection + [ + uuid(EDD36029-D753-4862-AA5B-5BCCAD2A4D29), + helpstring("Property Store Collection Class") + ] + coclass PropertyStoreCollection + { + [default] interface IPropertyStoreCollection; + }; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryapi.h new file mode 100644 index 0000000000000000000000000000000000000000..c8058103972455c33286ab6cbb9724b5356c5b1d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryapi.h @@ -0,0 +1,1197 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __functiondiscoveryapi_h__ +#define __functiondiscoveryapi_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFunctionDiscoveryNotification_FWD_DEFINED__ +#define __IFunctionDiscoveryNotification_FWD_DEFINED__ +typedef interface IFunctionDiscoveryNotification IFunctionDiscoveryNotification; + +#endif /* __IFunctionDiscoveryNotification_FWD_DEFINED__ */ + + +#ifndef __IFunctionDiscovery_FWD_DEFINED__ +#define __IFunctionDiscovery_FWD_DEFINED__ +typedef interface IFunctionDiscovery IFunctionDiscovery; + +#endif /* __IFunctionDiscovery_FWD_DEFINED__ */ + + +#ifndef __IFunctionInstance_FWD_DEFINED__ +#define __IFunctionInstance_FWD_DEFINED__ +typedef interface IFunctionInstance IFunctionInstance; + +#endif /* __IFunctionInstance_FWD_DEFINED__ */ + + +#ifndef __IFunctionInstanceCollection_FWD_DEFINED__ +#define __IFunctionInstanceCollection_FWD_DEFINED__ +typedef interface IFunctionInstanceCollection IFunctionInstanceCollection; + +#endif /* __IFunctionInstanceCollection_FWD_DEFINED__ */ + + +#ifndef __IPropertyStoreCollection_FWD_DEFINED__ +#define __IPropertyStoreCollection_FWD_DEFINED__ +typedef interface IPropertyStoreCollection IPropertyStoreCollection; + +#endif /* __IPropertyStoreCollection_FWD_DEFINED__ */ + + +#ifndef __IFunctionInstanceQuery_FWD_DEFINED__ +#define __IFunctionInstanceQuery_FWD_DEFINED__ +typedef interface IFunctionInstanceQuery IFunctionInstanceQuery; + +#endif /* __IFunctionInstanceQuery_FWD_DEFINED__ */ + + +#ifndef __IFunctionInstanceCollectionQuery_FWD_DEFINED__ +#define __IFunctionInstanceCollectionQuery_FWD_DEFINED__ +typedef interface IFunctionInstanceCollectionQuery IFunctionInstanceCollectionQuery; + +#endif /* __IFunctionInstanceCollectionQuery_FWD_DEFINED__ */ + + +#ifndef __IFunctionInstanceQuery2_FWD_DEFINED__ +#define __IFunctionInstanceQuery2_FWD_DEFINED__ +typedef interface IFunctionInstanceQuery2 IFunctionInstanceQuery2; + +#endif /* __IFunctionInstanceQuery2_FWD_DEFINED__ */ + + +#ifndef __IFunctionInstanceCollectionQuery2_FWD_DEFINED__ +#define __IFunctionInstanceCollectionQuery2_FWD_DEFINED__ +typedef interface IFunctionInstanceCollectionQuery2 IFunctionInstanceCollectionQuery2; + +#endif /* __IFunctionInstanceCollectionQuery2_FWD_DEFINED__ */ + + +#ifndef __IFunctionInstanceCollectionQueryCollection_FWD_DEFINED__ +#define __IFunctionInstanceCollectionQueryCollection_FWD_DEFINED__ +typedef interface IFunctionInstanceCollectionQueryCollection IFunctionInstanceCollectionQueryCollection; + +#endif /* __IFunctionInstanceCollectionQueryCollection_FWD_DEFINED__ */ + + +#ifndef __IFunctionDiscoveryProviderRefresh_FWD_DEFINED__ +#define __IFunctionDiscoveryProviderRefresh_FWD_DEFINED__ +typedef interface IFunctionDiscoveryProviderRefresh IFunctionDiscoveryProviderRefresh; + +#endif /* __IFunctionDiscoveryProviderRefresh_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "propsys.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_functiondiscoveryapi_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma once +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(pop) +#pragma warning(pop) +#pragma region Desktop Family +typedef +enum tagPropertyConstraint + { + QC_EQUALS = 0, + QC_NOTEQUAL = 1, + QC_LESSTHAN = 2, + QC_LESSTHANOREQUAL = 3, + QC_GREATERTHAN = 4, + QC_GREATERTHANOREQUAL = 5, + QC_STARTSWITH = 6, + QC_EXISTS = 7, + QC_DOESNOTEXIST = 8, + QC_CONTAINS = 9 + } PropertyConstraint; + +#pragma endregion +//#if ( WINVER >= 0x0600 ) +#ifndef FD_LONGHORN +#define FD_LONGHORN 1 +#endif +#ifndef FDPropertyConstraint +#define FDPropertyConstraint +#endif +#include "FunctionDiscoveryCategories.h" +#include "FunctionDiscoveryError.h" +#include "FunctionDiscoveryKeys.h" +#include "FunctionDiscoveryServiceIDs.h" +#include "FunctionDiscoveryConstraints.h" + + + + + + + +typedef DWORDLONG FDQUERYCONTEXT; + +typedef +enum tagSystemVisibilityFlags + { + SVF_SYSTEM = 0, + SVF_USER = 1 + } SystemVisibilityFlags; + +typedef +enum tagQueryUpdateAction + { + QUA_ADD = 0, + QUA_REMOVE = 1, + QUA_CHANGE = 2 + } QueryUpdateAction; + +typedef +enum tagQueryCategoryType + { + QCT_PROVIDER = 0, + QCT_LAYERED = 1 + } QueryCategoryType; + + + +extern RPC_IF_HANDLE __MIDL_itf_functiondiscoveryapi_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_functiondiscoveryapi_0000_0000_v0_0_s_ifspec; + +#ifndef __IFunctionDiscoveryNotification_INTERFACE_DEFINED__ +#define __IFunctionDiscoveryNotification_INTERFACE_DEFINED__ + +/* interface IFunctionDiscoveryNotification */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFunctionDiscoveryNotification; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5f6c1ba8-5330-422e-a368-572b244d3f87") + IFunctionDiscoveryNotification : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnUpdate( + /* [in] */ QueryUpdateAction enumQueryUpdateAction, + /* [in] */ FDQUERYCONTEXT fdqcQueryContext, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnError( + /* [in] */ HRESULT hr, + /* [in] */ FDQUERYCONTEXT fdqcQueryContext, + /* [string][in] */ __RPC__in_string const WCHAR *pszProvider) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnEvent( + /* [in] */ DWORD dwEventID, + /* [in] */ FDQUERYCONTEXT fdqcQueryContext, + /* [string][in] */ __RPC__in_string const WCHAR *pszProvider) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFunctionDiscoveryNotificationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFunctionDiscoveryNotification * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFunctionDiscoveryNotification * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFunctionDiscoveryNotification * This); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryNotification, OnUpdate) + HRESULT ( STDMETHODCALLTYPE *OnUpdate )( + __RPC__in IFunctionDiscoveryNotification * This, + /* [in] */ QueryUpdateAction enumQueryUpdateAction, + /* [in] */ FDQUERYCONTEXT fdqcQueryContext, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryNotification, OnError) + HRESULT ( STDMETHODCALLTYPE *OnError )( + __RPC__in IFunctionDiscoveryNotification * This, + /* [in] */ HRESULT hr, + /* [in] */ FDQUERYCONTEXT fdqcQueryContext, + /* [string][in] */ __RPC__in_string const WCHAR *pszProvider); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryNotification, OnEvent) + HRESULT ( STDMETHODCALLTYPE *OnEvent )( + __RPC__in IFunctionDiscoveryNotification * This, + /* [in] */ DWORD dwEventID, + /* [in] */ FDQUERYCONTEXT fdqcQueryContext, + /* [string][in] */ __RPC__in_string const WCHAR *pszProvider); + + END_INTERFACE + } IFunctionDiscoveryNotificationVtbl; + + interface IFunctionDiscoveryNotification + { + CONST_VTBL struct IFunctionDiscoveryNotificationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFunctionDiscoveryNotification_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFunctionDiscoveryNotification_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFunctionDiscoveryNotification_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFunctionDiscoveryNotification_OnUpdate(This,enumQueryUpdateAction,fdqcQueryContext,pIFunctionInstance) \ + ( (This)->lpVtbl -> OnUpdate(This,enumQueryUpdateAction,fdqcQueryContext,pIFunctionInstance) ) + +#define IFunctionDiscoveryNotification_OnError(This,hr,fdqcQueryContext,pszProvider) \ + ( (This)->lpVtbl -> OnError(This,hr,fdqcQueryContext,pszProvider) ) + +#define IFunctionDiscoveryNotification_OnEvent(This,dwEventID,fdqcQueryContext,pszProvider) \ + ( (This)->lpVtbl -> OnEvent(This,dwEventID,fdqcQueryContext,pszProvider) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFunctionDiscoveryNotification_INTERFACE_DEFINED__ */ + + +#ifndef __IFunctionDiscovery_INTERFACE_DEFINED__ +#define __IFunctionDiscovery_INTERFACE_DEFINED__ + +/* interface IFunctionDiscovery */ +/* [restricted][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFunctionDiscovery; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4df99b70-e148-4432-b004-4c9eeb535a5e") + IFunctionDiscovery : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetInstanceCollection( + /* [string][in] */ __RPC__in_string const WCHAR *pszCategory, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [in] */ BOOL fIncludeAllSubCategories, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstanceCollection **ppIFunctionInstanceCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetInstance( + /* [string][in] */ __RPC__in_string const WCHAR *pszFunctionInstanceIdentity, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateInstanceCollectionQuery( + /* [string][in] */ __RPC__in_string const WCHAR *pszCategory, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [in] */ BOOL fIncludeAllSubCategories, + /* [in] */ __RPC__in_opt IFunctionDiscoveryNotification *pIFunctionDiscoveryNotification, + /* [unique][out][in] */ __RPC__inout_opt FDQUERYCONTEXT *pfdqcQueryContext, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstanceCollectionQuery **ppIFunctionInstanceCollectionQuery) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateInstanceQuery( + /* [string][in] */ __RPC__in_string const WCHAR *pszFunctionInstanceIdentity, + /* [in] */ __RPC__in_opt IFunctionDiscoveryNotification *pIFunctionDiscoveryNotification, + /* [unique][out][in] */ __RPC__inout_opt FDQUERYCONTEXT *pfdqcQueryContext, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstanceQuery **ppIFunctionInstanceQuery) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddInstance( + /* [in] */ SystemVisibilityFlags enumSystemVisibility, + /* [string][in] */ __RPC__in_string const WCHAR *pszCategory, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [string][in] */ __RPC__in_string const WCHAR *pszCategoryIdentity, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveInstance( + /* [in] */ SystemVisibilityFlags enumSystemVisibility, + /* [string][in] */ __RPC__in_string const WCHAR *pszCategory, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [string][in] */ __RPC__in_string const WCHAR *pszCategoryIdentity) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFunctionDiscoveryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFunctionDiscovery * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFunctionDiscovery * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFunctionDiscovery * This); + + DECLSPEC_XFGVIRT(IFunctionDiscovery, GetInstanceCollection) + HRESULT ( STDMETHODCALLTYPE *GetInstanceCollection )( + __RPC__in IFunctionDiscovery * This, + /* [string][in] */ __RPC__in_string const WCHAR *pszCategory, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [in] */ BOOL fIncludeAllSubCategories, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstanceCollection **ppIFunctionInstanceCollection); + + DECLSPEC_XFGVIRT(IFunctionDiscovery, GetInstance) + HRESULT ( STDMETHODCALLTYPE *GetInstance )( + __RPC__in IFunctionDiscovery * This, + /* [string][in] */ __RPC__in_string const WCHAR *pszFunctionInstanceIdentity, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance); + + DECLSPEC_XFGVIRT(IFunctionDiscovery, CreateInstanceCollectionQuery) + HRESULT ( STDMETHODCALLTYPE *CreateInstanceCollectionQuery )( + __RPC__in IFunctionDiscovery * This, + /* [string][in] */ __RPC__in_string const WCHAR *pszCategory, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [in] */ BOOL fIncludeAllSubCategories, + /* [in] */ __RPC__in_opt IFunctionDiscoveryNotification *pIFunctionDiscoveryNotification, + /* [unique][out][in] */ __RPC__inout_opt FDQUERYCONTEXT *pfdqcQueryContext, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstanceCollectionQuery **ppIFunctionInstanceCollectionQuery); + + DECLSPEC_XFGVIRT(IFunctionDiscovery, CreateInstanceQuery) + HRESULT ( STDMETHODCALLTYPE *CreateInstanceQuery )( + __RPC__in IFunctionDiscovery * This, + /* [string][in] */ __RPC__in_string const WCHAR *pszFunctionInstanceIdentity, + /* [in] */ __RPC__in_opt IFunctionDiscoveryNotification *pIFunctionDiscoveryNotification, + /* [unique][out][in] */ __RPC__inout_opt FDQUERYCONTEXT *pfdqcQueryContext, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstanceQuery **ppIFunctionInstanceQuery); + + DECLSPEC_XFGVIRT(IFunctionDiscovery, AddInstance) + HRESULT ( STDMETHODCALLTYPE *AddInstance )( + __RPC__in IFunctionDiscovery * This, + /* [in] */ SystemVisibilityFlags enumSystemVisibility, + /* [string][in] */ __RPC__in_string const WCHAR *pszCategory, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [string][in] */ __RPC__in_string const WCHAR *pszCategoryIdentity, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance); + + DECLSPEC_XFGVIRT(IFunctionDiscovery, RemoveInstance) + HRESULT ( STDMETHODCALLTYPE *RemoveInstance )( + __RPC__in IFunctionDiscovery * This, + /* [in] */ SystemVisibilityFlags enumSystemVisibility, + /* [string][in] */ __RPC__in_string const WCHAR *pszCategory, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [string][in] */ __RPC__in_string const WCHAR *pszCategoryIdentity); + + END_INTERFACE + } IFunctionDiscoveryVtbl; + + interface IFunctionDiscovery + { + CONST_VTBL struct IFunctionDiscoveryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFunctionDiscovery_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFunctionDiscovery_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFunctionDiscovery_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFunctionDiscovery_GetInstanceCollection(This,pszCategory,pszSubCategory,fIncludeAllSubCategories,ppIFunctionInstanceCollection) \ + ( (This)->lpVtbl -> GetInstanceCollection(This,pszCategory,pszSubCategory,fIncludeAllSubCategories,ppIFunctionInstanceCollection) ) + +#define IFunctionDiscovery_GetInstance(This,pszFunctionInstanceIdentity,ppIFunctionInstance) \ + ( (This)->lpVtbl -> GetInstance(This,pszFunctionInstanceIdentity,ppIFunctionInstance) ) + +#define IFunctionDiscovery_CreateInstanceCollectionQuery(This,pszCategory,pszSubCategory,fIncludeAllSubCategories,pIFunctionDiscoveryNotification,pfdqcQueryContext,ppIFunctionInstanceCollectionQuery) \ + ( (This)->lpVtbl -> CreateInstanceCollectionQuery(This,pszCategory,pszSubCategory,fIncludeAllSubCategories,pIFunctionDiscoveryNotification,pfdqcQueryContext,ppIFunctionInstanceCollectionQuery) ) + +#define IFunctionDiscovery_CreateInstanceQuery(This,pszFunctionInstanceIdentity,pIFunctionDiscoveryNotification,pfdqcQueryContext,ppIFunctionInstanceQuery) \ + ( (This)->lpVtbl -> CreateInstanceQuery(This,pszFunctionInstanceIdentity,pIFunctionDiscoveryNotification,pfdqcQueryContext,ppIFunctionInstanceQuery) ) + +#define IFunctionDiscovery_AddInstance(This,enumSystemVisibility,pszCategory,pszSubCategory,pszCategoryIdentity,ppIFunctionInstance) \ + ( (This)->lpVtbl -> AddInstance(This,enumSystemVisibility,pszCategory,pszSubCategory,pszCategoryIdentity,ppIFunctionInstance) ) + +#define IFunctionDiscovery_RemoveInstance(This,enumSystemVisibility,pszCategory,pszSubCategory,pszCategoryIdentity) \ + ( (This)->lpVtbl -> RemoveInstance(This,enumSystemVisibility,pszCategory,pszSubCategory,pszCategoryIdentity) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFunctionDiscovery_INTERFACE_DEFINED__ */ + + +#ifndef __IFunctionInstance_INTERFACE_DEFINED__ +#define __IFunctionInstance_INTERFACE_DEFINED__ + +/* interface IFunctionInstance */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFunctionInstance; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("33591c10-0bed-4f02-b0ab-1530d5533ee9") + IFunctionInstance : public IServiceProvider + { + public: + virtual HRESULT STDMETHODCALLTYPE GetID( + /* [retval][string][out] */ __RPC__deref_out_opt_string WCHAR **ppszCoMemIdentity) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProviderInstanceID( + /* [retval][string][out] */ __RPC__deref_out_opt_string WCHAR **ppszCoMemProviderInstanceIdentity) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenPropertyStore( + /* [in] */ DWORD dwStgAccess, + /* [retval][out] */ __RPC__deref_out_opt IPropertyStore **ppIPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCategory( + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszCoMemCategory, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszCoMemSubCategory) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFunctionInstanceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFunctionInstance * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFunctionInstance * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFunctionInstance * This); + + DECLSPEC_XFGVIRT(IServiceProvider, QueryService) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *QueryService )( + IFunctionInstance * This, + /* [annotation][in] */ + _In_ REFGUID guidService, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][out] */ + _Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IFunctionInstance, GetID) + HRESULT ( STDMETHODCALLTYPE *GetID )( + __RPC__in IFunctionInstance * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string WCHAR **ppszCoMemIdentity); + + DECLSPEC_XFGVIRT(IFunctionInstance, GetProviderInstanceID) + HRESULT ( STDMETHODCALLTYPE *GetProviderInstanceID )( + __RPC__in IFunctionInstance * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string WCHAR **ppszCoMemProviderInstanceIdentity); + + DECLSPEC_XFGVIRT(IFunctionInstance, OpenPropertyStore) + HRESULT ( STDMETHODCALLTYPE *OpenPropertyStore )( + __RPC__in IFunctionInstance * This, + /* [in] */ DWORD dwStgAccess, + /* [retval][out] */ __RPC__deref_out_opt IPropertyStore **ppIPropertyStore); + + DECLSPEC_XFGVIRT(IFunctionInstance, GetCategory) + HRESULT ( STDMETHODCALLTYPE *GetCategory )( + __RPC__in IFunctionInstance * This, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszCoMemCategory, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszCoMemSubCategory); + + END_INTERFACE + } IFunctionInstanceVtbl; + + interface IFunctionInstance + { + CONST_VTBL struct IFunctionInstanceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFunctionInstance_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFunctionInstance_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFunctionInstance_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFunctionInstance_QueryService(This,guidService,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryService(This,guidService,riid,ppvObject) ) + + +#define IFunctionInstance_GetID(This,ppszCoMemIdentity) \ + ( (This)->lpVtbl -> GetID(This,ppszCoMemIdentity) ) + +#define IFunctionInstance_GetProviderInstanceID(This,ppszCoMemProviderInstanceIdentity) \ + ( (This)->lpVtbl -> GetProviderInstanceID(This,ppszCoMemProviderInstanceIdentity) ) + +#define IFunctionInstance_OpenPropertyStore(This,dwStgAccess,ppIPropertyStore) \ + ( (This)->lpVtbl -> OpenPropertyStore(This,dwStgAccess,ppIPropertyStore) ) + +#define IFunctionInstance_GetCategory(This,ppszCoMemCategory,ppszCoMemSubCategory) \ + ( (This)->lpVtbl -> GetCategory(This,ppszCoMemCategory,ppszCoMemSubCategory) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFunctionInstance_INTERFACE_DEFINED__ */ + + +#ifndef __IFunctionInstanceCollection_INTERFACE_DEFINED__ +#define __IFunctionInstanceCollection_INTERFACE_DEFINED__ + +/* interface IFunctionInstanceCollection */ +/* [restricted][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFunctionInstanceCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f0a3d895-855c-42a2-948d-2f97d450ecb1") + IFunctionInstanceCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [retval][out] */ __RPC__out DWORD *pdwCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Get( + /* [string][in] */ __RPC__in_string const WCHAR *pszInstanceIdentity, + /* [out] */ __RPC__out DWORD *pdwIndex, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance) = 0; + + virtual HRESULT STDMETHODCALLTYPE Item( + /* [in] */ DWORD dwIndex, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance) = 0; + + virtual HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance) = 0; + + virtual HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ DWORD dwIndex, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance) = 0; + + virtual HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ DWORD dwIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteAll( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFunctionInstanceCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFunctionInstanceCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFunctionInstanceCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFunctionInstanceCollection * This); + + DECLSPEC_XFGVIRT(IFunctionInstanceCollection, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IFunctionInstanceCollection * This, + /* [retval][out] */ __RPC__out DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IFunctionInstanceCollection, Get) + HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IFunctionInstanceCollection * This, + /* [string][in] */ __RPC__in_string const WCHAR *pszInstanceIdentity, + /* [out] */ __RPC__out DWORD *pdwIndex, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance); + + DECLSPEC_XFGVIRT(IFunctionInstanceCollection, Item) + HRESULT ( STDMETHODCALLTYPE *Item )( + __RPC__in IFunctionInstanceCollection * This, + /* [in] */ DWORD dwIndex, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance); + + DECLSPEC_XFGVIRT(IFunctionInstanceCollection, Add) + HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IFunctionInstanceCollection * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance); + + DECLSPEC_XFGVIRT(IFunctionInstanceCollection, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IFunctionInstanceCollection * This, + /* [in] */ DWORD dwIndex, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance); + + DECLSPEC_XFGVIRT(IFunctionInstanceCollection, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IFunctionInstanceCollection * This, + /* [in] */ DWORD dwIndex); + + DECLSPEC_XFGVIRT(IFunctionInstanceCollection, DeleteAll) + HRESULT ( STDMETHODCALLTYPE *DeleteAll )( + __RPC__in IFunctionInstanceCollection * This); + + END_INTERFACE + } IFunctionInstanceCollectionVtbl; + + interface IFunctionInstanceCollection + { + CONST_VTBL struct IFunctionInstanceCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFunctionInstanceCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFunctionInstanceCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFunctionInstanceCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFunctionInstanceCollection_GetCount(This,pdwCount) \ + ( (This)->lpVtbl -> GetCount(This,pdwCount) ) + +#define IFunctionInstanceCollection_Get(This,pszInstanceIdentity,pdwIndex,ppIFunctionInstance) \ + ( (This)->lpVtbl -> Get(This,pszInstanceIdentity,pdwIndex,ppIFunctionInstance) ) + +#define IFunctionInstanceCollection_Item(This,dwIndex,ppIFunctionInstance) \ + ( (This)->lpVtbl -> Item(This,dwIndex,ppIFunctionInstance) ) + +#define IFunctionInstanceCollection_Add(This,pIFunctionInstance) \ + ( (This)->lpVtbl -> Add(This,pIFunctionInstance) ) + +#define IFunctionInstanceCollection_Remove(This,dwIndex,ppIFunctionInstance) \ + ( (This)->lpVtbl -> Remove(This,dwIndex,ppIFunctionInstance) ) + +#define IFunctionInstanceCollection_Delete(This,dwIndex) \ + ( (This)->lpVtbl -> Delete(This,dwIndex) ) + +#define IFunctionInstanceCollection_DeleteAll(This) \ + ( (This)->lpVtbl -> DeleteAll(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFunctionInstanceCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IPropertyStoreCollection_INTERFACE_DEFINED__ +#define __IPropertyStoreCollection_INTERFACE_DEFINED__ + +/* interface IPropertyStoreCollection */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IPropertyStoreCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D14D9C30-12D2-42d8-BCE4-C60C2BB226FA") + IPropertyStoreCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [retval][out] */ __RPC__out LPDWORD pdwCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Get( + /* [string][in] */ __RPC__in_string const WCHAR *pszInstanceIdentity, + /* [out] */ __RPC__out LPDWORD pdwIndex, + /* [retval][out] */ __RPC__deref_out_opt IPropertyStore **ppIPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Item( + /* [in] */ DWORD dwIndex, + /* [retval][out] */ __RPC__deref_out_opt IPropertyStore **ppIPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IPropertyStore *pIPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ DWORD dwIndex, + /* [retval][out] */ __RPC__deref_out_opt IPropertyStore **pIPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE Delete( + /* [in] */ DWORD dwIndex) = 0; + + virtual HRESULT STDMETHODCALLTYPE DeleteAll( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPropertyStoreCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPropertyStoreCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPropertyStoreCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPropertyStoreCollection * This); + + DECLSPEC_XFGVIRT(IPropertyStoreCollection, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IPropertyStoreCollection * This, + /* [retval][out] */ __RPC__out LPDWORD pdwCount); + + DECLSPEC_XFGVIRT(IPropertyStoreCollection, Get) + HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IPropertyStoreCollection * This, + /* [string][in] */ __RPC__in_string const WCHAR *pszInstanceIdentity, + /* [out] */ __RPC__out LPDWORD pdwIndex, + /* [retval][out] */ __RPC__deref_out_opt IPropertyStore **ppIPropertyStore); + + DECLSPEC_XFGVIRT(IPropertyStoreCollection, Item) + HRESULT ( STDMETHODCALLTYPE *Item )( + __RPC__in IPropertyStoreCollection * This, + /* [in] */ DWORD dwIndex, + /* [retval][out] */ __RPC__deref_out_opt IPropertyStore **ppIPropertyStore); + + DECLSPEC_XFGVIRT(IPropertyStoreCollection, Add) + HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IPropertyStoreCollection * This, + /* [in] */ __RPC__in_opt IPropertyStore *pIPropertyStore); + + DECLSPEC_XFGVIRT(IPropertyStoreCollection, Remove) + HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IPropertyStoreCollection * This, + /* [in] */ DWORD dwIndex, + /* [retval][out] */ __RPC__deref_out_opt IPropertyStore **pIPropertyStore); + + DECLSPEC_XFGVIRT(IPropertyStoreCollection, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IPropertyStoreCollection * This, + /* [in] */ DWORD dwIndex); + + DECLSPEC_XFGVIRT(IPropertyStoreCollection, DeleteAll) + HRESULT ( STDMETHODCALLTYPE *DeleteAll )( + __RPC__in IPropertyStoreCollection * This); + + END_INTERFACE + } IPropertyStoreCollectionVtbl; + + interface IPropertyStoreCollection + { + CONST_VTBL struct IPropertyStoreCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPropertyStoreCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPropertyStoreCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPropertyStoreCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPropertyStoreCollection_GetCount(This,pdwCount) \ + ( (This)->lpVtbl -> GetCount(This,pdwCount) ) + +#define IPropertyStoreCollection_Get(This,pszInstanceIdentity,pdwIndex,ppIPropertyStore) \ + ( (This)->lpVtbl -> Get(This,pszInstanceIdentity,pdwIndex,ppIPropertyStore) ) + +#define IPropertyStoreCollection_Item(This,dwIndex,ppIPropertyStore) \ + ( (This)->lpVtbl -> Item(This,dwIndex,ppIPropertyStore) ) + +#define IPropertyStoreCollection_Add(This,pIPropertyStore) \ + ( (This)->lpVtbl -> Add(This,pIPropertyStore) ) + +#define IPropertyStoreCollection_Remove(This,dwIndex,pIPropertyStore) \ + ( (This)->lpVtbl -> Remove(This,dwIndex,pIPropertyStore) ) + +#define IPropertyStoreCollection_Delete(This,dwIndex) \ + ( (This)->lpVtbl -> Delete(This,dwIndex) ) + +#define IPropertyStoreCollection_DeleteAll(This) \ + ( (This)->lpVtbl -> DeleteAll(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPropertyStoreCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IFunctionInstanceQuery_INTERFACE_DEFINED__ +#define __IFunctionInstanceQuery_INTERFACE_DEFINED__ + +/* interface IFunctionInstanceQuery */ +/* [restricted][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFunctionInstanceQuery; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6242bc6b-90ec-4b37-bb46-e229fd84ed95") + IFunctionInstanceQuery : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Execute( + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFunctionInstanceQueryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFunctionInstanceQuery * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFunctionInstanceQuery * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFunctionInstanceQuery * This); + + DECLSPEC_XFGVIRT(IFunctionInstanceQuery, Execute) + HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in IFunctionInstanceQuery * This, + /* [retval][out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance); + + END_INTERFACE + } IFunctionInstanceQueryVtbl; + + interface IFunctionInstanceQuery + { + CONST_VTBL struct IFunctionInstanceQueryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFunctionInstanceQuery_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFunctionInstanceQuery_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFunctionInstanceQuery_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFunctionInstanceQuery_Execute(This,ppIFunctionInstance) \ + ( (This)->lpVtbl -> Execute(This,ppIFunctionInstance) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFunctionInstanceQuery_INTERFACE_DEFINED__ */ + + +#ifndef __IFunctionInstanceCollectionQuery_INTERFACE_DEFINED__ +#define __IFunctionInstanceCollectionQuery_INTERFACE_DEFINED__ + +/* interface IFunctionInstanceCollectionQuery */ +/* [restricted][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFunctionInstanceCollectionQuery; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("57cc6fd2-c09a-4289-bb72-25f04142058e") + IFunctionInstanceCollectionQuery : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE AddQueryConstraint( + /* [string][in] */ __RPC__in_string const WCHAR *pszConstraintName, + /* [string][in] */ __RPC__in_string const WCHAR *pszConstraintValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddPropertyConstraint( + /* [in] */ __RPC__in REFPROPERTYKEY Key, + /* [in] */ __RPC__in const PROPVARIANT *pv, + /* [in] */ PropertyConstraint enumPropertyConstraint) = 0; + + virtual HRESULT STDMETHODCALLTYPE Execute( + /* [out] */ __RPC__deref_out_opt IFunctionInstanceCollection **ppIFunctionInstanceCollection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFunctionInstanceCollectionQueryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFunctionInstanceCollectionQuery * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFunctionInstanceCollectionQuery * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFunctionInstanceCollectionQuery * This); + + DECLSPEC_XFGVIRT(IFunctionInstanceCollectionQuery, AddQueryConstraint) + HRESULT ( STDMETHODCALLTYPE *AddQueryConstraint )( + __RPC__in IFunctionInstanceCollectionQuery * This, + /* [string][in] */ __RPC__in_string const WCHAR *pszConstraintName, + /* [string][in] */ __RPC__in_string const WCHAR *pszConstraintValue); + + DECLSPEC_XFGVIRT(IFunctionInstanceCollectionQuery, AddPropertyConstraint) + HRESULT ( STDMETHODCALLTYPE *AddPropertyConstraint )( + __RPC__in IFunctionInstanceCollectionQuery * This, + /* [in] */ __RPC__in REFPROPERTYKEY Key, + /* [in] */ __RPC__in const PROPVARIANT *pv, + /* [in] */ PropertyConstraint enumPropertyConstraint); + + DECLSPEC_XFGVIRT(IFunctionInstanceCollectionQuery, Execute) + HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in IFunctionInstanceCollectionQuery * This, + /* [out] */ __RPC__deref_out_opt IFunctionInstanceCollection **ppIFunctionInstanceCollection); + + END_INTERFACE + } IFunctionInstanceCollectionQueryVtbl; + + interface IFunctionInstanceCollectionQuery + { + CONST_VTBL struct IFunctionInstanceCollectionQueryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFunctionInstanceCollectionQuery_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFunctionInstanceCollectionQuery_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFunctionInstanceCollectionQuery_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFunctionInstanceCollectionQuery_AddQueryConstraint(This,pszConstraintName,pszConstraintValue) \ + ( (This)->lpVtbl -> AddQueryConstraint(This,pszConstraintName,pszConstraintValue) ) + +#define IFunctionInstanceCollectionQuery_AddPropertyConstraint(This,Key,pv,enumPropertyConstraint) \ + ( (This)->lpVtbl -> AddPropertyConstraint(This,Key,pv,enumPropertyConstraint) ) + +#define IFunctionInstanceCollectionQuery_Execute(This,ppIFunctionInstanceCollection) \ + ( (This)->lpVtbl -> Execute(This,ppIFunctionInstanceCollection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFunctionInstanceCollectionQuery_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_functiondiscoveryapi_0000_0007 */ +/* [local] */ + +#include "FunctionDiscoveryNotification.h" +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_functiondiscoveryapi_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_functiondiscoveryapi_0000_0011_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryapi.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryapi.idl new file mode 100644 index 0000000000000000000000000000000000000000..5d2aa6ce967cae26d2d62f3a7f22a428d6b63e5d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryapi.idl @@ -0,0 +1,257 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "propsys.idl"; +#include "FunctionDiscoveryConstraints.h" + +cpp_quote("//#if ( WINVER >= 0x0600 )") +cpp_quote("#ifndef FD_LONGHORN") +cpp_quote("#define FD_LONGHORN 1") +cpp_quote("#endif") +cpp_quote("#ifndef FDPropertyConstraint") +cpp_quote("#define FDPropertyConstraint") +cpp_quote("#endif") + +cpp_quote("#include \"FunctionDiscoveryCategories.h\"") +cpp_quote("#include \"FunctionDiscoveryError.h\"") +cpp_quote("#include \"FunctionDiscoveryKeys.h\"") +cpp_quote("#include \"FunctionDiscoveryServiceIDs.h\"") +cpp_quote("#include \"FunctionDiscoveryConstraints.h\"") + +interface IFunctionDiscovery; +interface IFunctionInstance; +interface IFunctionInstanceCollection; +interface IFunctionInstanceQuery; +interface IFunctionInstanceCollectionQuery; +interface IPropertyStoreCollection; +interface IFunctionInstanceCollectionQueryCollection; + +typedef DWORDLONG FDQUERYCONTEXT; + +typedef enum tagSystemVisibilityFlags +{ + SVF_SYSTEM = 0, + SVF_USER = 1 +} SystemVisibilityFlags; + +typedef enum tagQueryUpdateAction +{ + QUA_ADD = 0, + QUA_REMOVE = 1, + QUA_CHANGE = 2 +} QueryUpdateAction; + +typedef enum tagQueryCategoryType +{ + QCT_PROVIDER = 0, + QCT_LAYERED = 1 +} QueryCategoryType; + + +// This interface should be implemented by clients performing async queries... +[ + object, + uuid(5f6c1ba8-5330-422e-a368-572b244d3f87), + helpstring("IFunctionDiscoveryNotification Interface"), + pointer_default(unique) +] +interface IFunctionDiscoveryNotification : IUnknown +{ + HRESULT OnUpdate( + [in] QueryUpdateAction enumQueryUpdateAction, + [in] FDQUERYCONTEXT fdqcQueryContext, + [in] IFunctionInstance * pIFunctionInstance); + HRESULT OnError( + [in] HRESULT hr, + [in] FDQUERYCONTEXT fdqcQueryContext, + [in, string] const WCHAR * pszProvider); + HRESULT OnEvent( + [in] DWORD dwEventID, + [in] FDQUERYCONTEXT fdqcQueryContext, + [in, string] const WCHAR * pszProvider); +}; + + +[ + object, + uuid(4df99b70-e148-4432-b004-4c9eeb535a5e), + helpstring("IFunctionDiscovery Interface"), + pointer_default(unique), + restricted +] +interface IFunctionDiscovery : IUnknown +{ + // Discovery + HRESULT GetInstanceCollection( + [in, string] const WCHAR * pszCategory, + [in, string, unique] const WCHAR * pszSubCategory, + [in] BOOL fIncludeAllSubCategories, + [out, retval] IFunctionInstanceCollection ** ppIFunctionInstanceCollection); + + HRESULT GetInstance( + [in, string] const WCHAR * pszFunctionInstanceIdentity, + [out, retval] IFunctionInstance ** ppIFunctionInstance); + + HRESULT CreateInstanceCollectionQuery( + [in, string] const WCHAR * pszCategory, + [in, string, unique] const WCHAR * pszSubCategory, + [in] BOOL fIncludeAllSubCategories, + [in] IFunctionDiscoveryNotification * pIFunctionDiscoveryNotification, + [in, out, unique] FDQUERYCONTEXT * pfdqcQueryContext, + [out, retval] IFunctionInstanceCollectionQuery ** ppIFunctionInstanceCollectionQuery); + + HRESULT CreateInstanceQuery( + [in, string] const WCHAR * pszFunctionInstanceIdentity, + [in] IFunctionDiscoveryNotification * pIFunctionDiscoveryNotification, + [in, out, unique] FDQUERYCONTEXT * pfdqcQueryContext, + [out, retval] IFunctionInstanceQuery ** ppIFunctionInstanceQuery); + + // Provider Specific + HRESULT AddInstance( + [in] SystemVisibilityFlags enumSystemVisibility, + [in, string] const WCHAR * pszCategory, + [in, string, unique] const WCHAR * pszSubCategory, + [in, string] const WCHAR * pszCategoryIdentity, + [out, retval] IFunctionInstance ** ppIFunctionInstance ); + + HRESULT RemoveInstance( + [in] SystemVisibilityFlags enumSystemVisibility, + [in, string] const WCHAR * pszCategory, + [in, string, unique] const WCHAR * pszSubCategory, + [in, string] const WCHAR * pszCategoryIdentity); +}; + + +[ + object, + uuid(33591c10-0bed-4f02-b0ab-1530d5533ee9), + helpstring("IFunctionInstance Interface"), + pointer_default(unique) +] +interface IFunctionInstance : IServiceProvider +{ + // Meta Data + HRESULT GetID( + [out, string, retval] WCHAR ** ppszCoMemIdentity); + + HRESULT GetProviderInstanceID( + [out, string, retval] WCHAR ** ppszCoMemProviderInstanceIdentity); + + HRESULT OpenPropertyStore( + [in] DWORD dwStgAccess, + [out, retval] IPropertyStore ** ppIPropertyStore); + + // Meta Data + HRESULT GetCategory( + [out, string] WCHAR ** ppszCoMemCategory, + [out, string] WCHAR ** ppszCoMemSubCategory); + +}; + + +[ + object, + uuid(f0a3d895-855c-42a2-948d-2f97d450ecb1), + helpstring("IFunctionInstanceCollection Interface"), + pointer_default(unique), + restricted +] +interface IFunctionInstanceCollection : IUnknown +{ + HRESULT GetCount( + [out, retval] DWORD * pdwCount ); + HRESULT Get( + [in, string] const WCHAR * pszInstanceIdentity, + [out] DWORD * pdwIndex, + [out, retval] IFunctionInstance ** ppIFunctionInstance ); + HRESULT Item( + [in] DWORD dwIndex, + [out, retval] IFunctionInstance ** ppIFunctionInstance ); + HRESULT Add( + [in] IFunctionInstance * pIFunctionInstance ); + HRESULT Remove( + [in] DWORD dwIndex, + [out, retval] IFunctionInstance ** ppIFunctionInstance ); + HRESULT Delete( + [in] DWORD dwIndex ); + HRESULT DeleteAll(); +}; + +[ + object, + uuid(D14D9C30-12D2-42d8-BCE4-C60C2BB226FA), + helpstring("IPropertyStoreCollection Interface"), + pointer_default(unique) +] +interface IPropertyStoreCollection : IUnknown +{ + HRESULT GetCount( + [out, retval] LPDWORD pdwCount ); + HRESULT Get( + [in, string] const WCHAR * pszInstanceIdentity, + [out] LPDWORD pdwIndex, + [out, retval] IPropertyStore** ppIPropertyStore); + HRESULT Item( + [in] DWORD dwIndex, + [out, retval] IPropertyStore ** ppIPropertyStore); + HRESULT Add( + [in] IPropertyStore * pIPropertyStore); + HRESULT Remove( + [in] DWORD dwIndex, + [out, retval] IPropertyStore** pIPropertyStore); + HRESULT Delete( + [in] DWORD dwIndex ); + HRESULT DeleteAll(); +}; + + +///////////////////////////////// +// Query interfaces +///////////////////////////////// +[ + object, + uuid(6242bc6b-90ec-4b37-bb46-e229fd84ed95), + helpstring("IFunctionInstanceQuery Interface"), + pointer_default(unique), + restricted +] +interface IFunctionInstanceQuery : IUnknown +{ + HRESULT Execute( + [out, retval] IFunctionInstance ** ppIFunctionInstance ); +}; + +[ + object, + uuid(57cc6fd2-c09a-4289-bb72-25f04142058e), + helpstring("IFunctionInstanceCollectionQuery Interface"), + pointer_default(unique), + restricted +] +interface IFunctionInstanceCollectionQuery : IUnknown +{ + HRESULT AddQueryConstraint( + [in, string] const WCHAR * pszConstraintName, + [in, string] const WCHAR * pszConstraintValue ); + HRESULT AddPropertyConstraint( + [in] REFPROPERTYKEY Key, + [in] const PROPVARIANT * pv, + [in] PropertyConstraint enumPropertyConstraint); + HRESULT Execute( + [out] IFunctionInstanceCollection ** ppIFunctionInstanceCollection ); +}; + +cpp_quote("#include \"FunctionDiscoveryNotification.h\"") + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverycategories.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverycategories.h new file mode 100644 index 0000000000000000000000000000000000000000..5bef3deb3c715e75c2821099d4b90ffe27031d15 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverycategories.h @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +// ***************************************************************************** +// Important: Anything added here should also be added to FunctionDiscoveryManagedKeys.h +// ***************************************************************************** + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#define FD_SUBKEY L"SOFTWARE\\Microsoft\\Function Discovery\\" +#define FD_SUBKEY_CATEGORIES FD_SUBKEY L"Categories\\" + +// ***************************************************************************** +// Function Discovery Categories +// ***************************************************************************** +// Important: Anything added here should also be added to FunctionDiscoveryManagedKeys.h +// ***************************************************************************** + +// Provider Categories +// Windows Vista +#define FCTN_CATEGORY_PNP L"Provider\\Microsoft.Base.PnP" +#define FCTN_CATEGORY_REGISTRY L"Provider\\Microsoft.Base.Registry" +#define FCTN_CATEGORY_SSDP L"Provider\\Microsoft.Networking.SSDP" +#define FCTN_CATEGORY_WSDISCOVERY L"Provider\\Microsoft.Networking.WSD" +#define FCTN_CATEGORY_NETBIOS L"Provider\\Microsoft.Networking.Netbios" +#define FCTN_CATEGORY_WCN L"Provider\\Microsoft.Networking.WCN" +#define FCTN_CATEGORY_PUBLICATION L"Provider\\Microsoft.Base.Publication" +#define FCTN_CATEGORY_PNPXASSOCIATION L"Provider\\Microsoft.PnPX.Association" +// Wireless Update Release +#define FCTN_CATEGORY_BT L"Provider\\Microsoft.Devices.Bluetooth" +#define FCTN_CATEGORY_WUSB L"Provider\\Microsoft.Devices.WirelessUSB" +#define FCTN_CATEGORY_DEVICEDISPLAYOBJECTS L"Provider\\Microsoft.Base.DeviceDisplayObjects" +#define FCTN_CATEGORY_DEVQUERYOBJECTS L"Provider\\Microsoft.Base.DevQueryObjects" + +// Layered Categories +// Windows Vista +#define FCTN_CATEGORY_NETWORKDEVICES L"Layered\\Microsoft.Networking.Devices" +#define FCTN_CATEGORY_DEVICES L"Layered\\Microsoft.Base.Devices" +#define FCTN_CATEGORY_DEVICEFUNCTIONENUMERATORS L"Layered\\Microsoft.Devices.FunctionEnumerators" +#define FCTN_CATEGORY_DEVICEPAIRING L"Layered\\Microsoft.Base.DevicePairing" + +// ***************************************************************************** +// Function Discovery SubCategories +// ***************************************************************************** +// Important: Anything added here should also be added to FunctionDiscoveryManagedKeys.h +// ***************************************************************************** + +// Subcategories of Devices FCTN_CATEGORY_DEVICES +#define FCTN_SUBCAT_DEVICES_WSDPRINTERS L"WSDPrinters" + +// Subcategories of Devices FCTN_CATEGORY_NETWORKDEVICES +#define FCTN_SUBCAT_NETWORKDEVICES_SSDP L"SSDP" +#define FCTN_SUBCAT_NETWORKDEVICES_WSD L"WSD" + +// Subcategories of Registry +#define FCTN_SUBCAT_REG_PUBLICATION L"Publication" +#define FCTN_SUBCAT_REG_DIRECTED L"Directed" + +// ***************************************************************************** +// Important: Anything added here should also be added to FunctionDiscoveryManagedKeys.h +// ***************************************************************************** + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryconstraints.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryconstraints.h new file mode 100644 index 0000000000000000000000000000000000000000..0c40a3382bd48c3ff3ba32b92e94331d7378fcba --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryconstraints.h @@ -0,0 +1,154 @@ +#pragma once + +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/////////////////////////////////////////////////////////////////////////////// +// QUERY Constraint defines +/////////////////////////////////////////////////////////////////////////////// + +#define MAX_FDCONSTRAINTNAME_LENGTH 100 +#define MAX_FDCONSTRAINTVALUE_LENGTH 1000 + +// Common Provider specific Constraints +#define FD_QUERYCONSTRAINT_PROVIDERINSTANCEID L"ProviderInstanceID" +#define FD_QUERYCONSTRAINT_SUBCATEGORY L"Subcategory" +#define FD_QUERYCONSTRAINT_RECURSESUBCATEGORY L"RecurseSubcategory" +#define FD_QUERYCONSTRAINT_VISIBILITY L"Visibility" + // FD_CONSTRAINTVALUE_VISIBILITY_DEFAULT you want just default instances (visible as defined by the provider) + // FD_CONSTRAINTVALUE_VISIBILITY_ALL (default) you want both visible and not visible/hidden instances (as defined by the provider) +#define FD_QUERYCONSTRAINT_COMCLSCONTEXT L"COMClsContext" +#define FD_QUERYCONSTRAINT_ROUTINGSCOPE L"RoutingScope" + +// Common Provider specific Constraints values +#define FD_CONSTRAINTVALUE_TRUE L"TRUE" +#define FD_CONSTRAINTVALUE_FALSE L"FALSE" +#define FD_CONSTRAINTVALUE_RECURSESUBCATEGORY_TRUE FD_CONSTRAINTVALUE_TRUE +#define FD_CONSTRAINTVALUE_VISIBILITY_DEFAULT L"0" +#define FD_CONSTRAINTVALUE_VISIBILITY_ALL L"1" +#define FD_CONSTRAINTVALUE_COMCLSCONTEXT_INPROC_SERVER L"1" +#define FD_CONSTRAINTVALUE_COMCLSCONTEXT_LOCAL_SERVER L"4" + +#define FD_CONSTRAINTVALUE_PAIRED L"Paired" +#define FD_CONSTRAINTVALUE_UNPAIRED L"UnPaired" +#define FD_CONSTRAINTVALUE_ALL L"All" + +#define FD_CONSTRAINTVALUE_ROUTINGSCOPE_ALL L"All" +#define FD_CONSTRAINTVALUE_ROUTINGSCOPE_DIRECT L"Direct" + +/////////////////////////////////////////////////////////////////////////////// +// Provider inquiry constraints +#define FD_QUERYCONSTRAINT_PAIRING_STATE L"PairingState" + // if unset, provider default is FD_CONSTRAINTVALUE_PAIRED + // FD_CONSTRAINTVALUE_PAIRED will return all paired devices + // FD_CONSTRAINTVALUE_UNPAIRED will return all unpaired devices within wireless or wired range + // FD_CONSTRAINTVALUE_ALL will return all devices cached and within wireless or wired range +#define FD_QUERYCONSTRAINT_INQUIRY_TIMEOUT L"InquiryModeTimeout" // #seconds 6-600 supported, default is 300 + +/////////////////////////////////////////////////////////////////////////////// +// PNP Provider specific Constraints +#define PROVIDERPNP_QUERYCONSTRAINT_INTERFACECLASS L"InterfaceClass" +#define PROVIDERPNP_QUERYCONSTRAINT_NOTPRESENT L"NotPresent" +#define PROVIDERPNP_QUERYCONSTRAINT_NOTIFICATIONSONLY L"NotifyOnly" + // PNP_CONSTRAINTVALUE_NOTPRESENT you want "not present" instances as well + // "FALSE" (default) you want only DIGCF_PRESENT instances. +// PNP Provider specific Constraints values +#define PNP_CONSTRAINTVALUE_NOTPRESENT FD_CONSTRAINTVALUE_TRUE +#define PNP_CONSTRAINTVALUE_NOTIFICATIONSONLY FD_CONSTRAINTVALUE_TRUE + +/////////////////////////////////////////////////////////////////////////////// +// SSDP Provider specific Constraints +#define PROVIDERSSDP_QUERYCONSTRAINT_TYPE L"Type" +#define PROVIDERSSDP_QUERYCONSTRAINT_CUSTOMXMLPROPERTY L"CustomXmlProperty" + +// SSDP Provider specific Constraints values +#define SSDP_CONSTRAINTVALUE_TYPE_ALL L"ssdp:all" +#define SSDP_CONSTRAINTVALUE_TYPE_ROOT L"upnp:rootdevice" +#define SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"urn:schemas-upnp-org:device:" +#define SSDP_CONSTRAINTVALUE_TYPE_SVC_PREFIX L"urn:schemas-upnp-org:service:" + +#define SSDP_CONSTRAINTVALUE_TYPE_DEV_LIGHTING SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"Lighting:1" +#define SSDP_CONSTRAINTVALUE_TYPE_DEV_REMINDER SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"Reminder:1" +#define SSDP_CONSTRAINTVALUE_TYPE_DEV_POWERDEVICE SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"PowerDevice:1" +#define SSDP_CONSTRAINTVALUE_TYPE_DEV_IGD SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"InternetGatewayDevice:1" +#define SSDP_CONSTRAINTVALUE_TYPE_DEV_WANDEVICE SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"WANDevice:1" +#define SSDP_CONSTRAINTVALUE_TYPE_DEV_LANDEVICE SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"LANDevice:1" +#define SSDP_CONSTRAINTVALUE_TYPE_DEV_WANCONNDEVICE SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"WANConnectionDevice:1" +#define SSDP_CONSTRAINTVALUE_TYPE_DEV_LUXMETER SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"Luxmeter:1" +#define SSDP_CONSTRAINTVALUE_TYPE_DEV_MDARNDR SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"MediaRenderer:1" +#define SSDP_CONSTRAINTVALUE_TYPE_DEV_MDASRVR SSDP_CONSTRAINTVALUE_TYPE_DEVICE_PREFIX L"MediaServer:1" + +#define SSDP_CONSTRAINTVALUE_TYPE_SVC_SCANNER SSDP_CONSTRAINTVALUE_TYPE_SVC_PREFIX L"Scanner:1" +#define SSDP_CONSTRAINTVALUE_TYPE_SVC_DIMMING SSDP_CONSTRAINTVALUE_TYPE_SVC_PREFIX L"DimmingService:1" + +/////////////////////////////////////////////////////////////////////////////// +// WSD Provider specific Constraints +#define PROVIDERWSD_QUERYCONSTRAINT_DIRECTEDADDRESS L"RemoteAddress" +#define PROVIDERWSD_QUERYCONSTRAINT_TYPE L"Type" +#define PROVIDERWSD_QUERYCONSTRAINT_SCOPE L"Scope" +#define PROVIDERWSD_QUERYCONSTRAINT_SECURITY_REQUIREMENTS L"SecurityRequirements" +#define PROVIDERWSD_QUERYCONSTRAINT_SSL_CERT_FOR_CLIENT_AUTH L"SSLClientAuthCert" +#define PROVIDERWSD_QUERYCONSTRAINT_SSL_CERTHASH_FOR_SERVER_AUTH L"SSLServerAuthCertHash" + +// WSD provider specific Constraint values +#define WSD_CONSTRAINTVALUE_REQUIRE_SECURECHANNEL L"1" +#define WSD_CONSTRAINTVALUE_REQUIRE_SECURECHANNEL_AND_COMPACTSIGNATURE L"2" +#define WSD_CONSTRAINTVALUE_NO_TRUST_VERIFICATION L"3" + +/////////////////////////////////////////////////////////////////////////////// +// NetBios Provider specific Constraints +#define PROVIDERWNET_QUERYCONSTRAINT_TYPE L"Type" +#define PROVIDERWNET_QUERYCONSTRAINT_PROPERTIES L"Properties" +#define PROVIDERWNET_QUERYCONSTRAINT_RESOURCETYPE L"ResourceType" + +#define WNET_CONSTRAINTVALUE_TYPE_ALL L"All" +#define WNET_CONSTRAINTVALUE_TYPE_SERVER L"Server" // Default +#define WNET_CONSTRAINTVALUE_TYPE_DOMAIN L"Domain" + +#define WNET_CONSTRAINTVALUE_PROPERTIES_ALL L"All" +#define WNET_CONSTRAINTVALUE_PROPERTIES_LIMITED L"Limited" // Default + +#define WNET_CONSTRAINTVALUE_RESOURCETYPE_DISK L"Disk" // All non-printer shares (dwDisplayType == RESOURCEDISPLAYTYPE_SHARE and dwType != RESOURCETYPE_PRINT) +#define WNET_CONSTRAINTVALUE_RESOURCETYPE_PRINTER L"Printer" // All printer shares (dwDisplayType == RESOURCEDISPLAYTYPE_SHARE and dwType == RESOURCETYPE_PRINT) +#define WNET_CONSTRAINTVALUE_RESOURCETYPE_DISKORPRINTER L"DiskOrPrinter" // All shares (dwDisplayType == RESOURCEDISPLAYTYPE_SHARE) + +#define ONLINE_PROVIDER_DEVICES_QUERYCONSTRAINT_OWNERNAME L"OwnerName" + +/////////////////////////////////////////////////////////////////////////////// +// Device Display Object Provider specific Constraints +#define PROVIDERDDO_QUERYCONSTRAINT_DEVICEFUNCTIONDISPLAYOBJECTS L"DeviceFunctionDisplayObjects" +#define PROVIDERDDO_QUERYCONSTRAINT_ONLYCONNECTEDDEVICES L"OnlyConnectedDevices" +#define PROVIDERDDO_QUERYCONSTRAINT_DEVICEINTERFACES L"DeviceInterfaces" + +/////////////////////////////////////////////////////////////////////////////// +// PROPERTY Constraint defines +/////////////////////////////////////////////////////////////////////////////// + +#ifndef FDPropertyConstraint +typedef enum tagPropertyConstraint +{ + QC_EQUALS = 0, + QC_NOTEQUAL = 1, + QC_LESSTHAN = 2, + QC_LESSTHANOREQUAL = 3, + QC_GREATERTHAN = 4, + QC_GREATERTHANOREQUAL = 5, + QC_STARTSWITH = 6, // Strings only + QC_EXISTS = 7, + QC_DOESNOTEXIST = 8, + QC_CONTAINS = 9 // Strings and VT_VECTOR only +} PropertyConstraint; +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryerror.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryerror.h new file mode 100644 index 0000000000000000000000000000000000000000..730a29e42c39da62a77626d657b797bffe504167 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryerror.h @@ -0,0 +1,83 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include + +// Error codes +// +// + +// MessageId: E_FDPAIRING_NOCONNECTION +// +// MessageText: +// +// The device has rejected the connection. +// +#define E_FDPAIRING_NOCONNECTION _HRESULT_TYPEDEF_(0x8FD00001L) + +// MessageId: E_FDPAIRING_NOCONNECTION +// +// MessageText: +// +// The device has indicated a hardware failure. +// +#define E_FDPAIRING_HWFAILURE _HRESULT_TYPEDEF_(0x8FD00002L) + +// MessageId: E_FDPAIRING_AUTHFAILURE +// +// MessageText: +// +// The device authentication has failed. Either the device has rejected the authentication or you rejected the authentication. +// +#define E_FDPAIRING_AUTHFAILURE _HRESULT_TYPEDEF_(0x8FD00003L) + +// MessageId: E_FDPAIRING_CONNECTTIMEOUT +// +// MessageText: +// +// The time to finish the authentication has expired on the device. +// +#define E_FDPAIRING_CONNECTTIMEOUT _HRESULT_TYPEDEF_(0x8FD00004L) + +// MessageId: E_FDPAIRING_TOOMANYCONNECTIONS +// +// MessageText: +// +// The device has indicated that it cannot accept more incoming connections. +// +#define E_FDPAIRING_TOOMANYCONNECTIONS _HRESULT_TYPEDEF_(0x8FD00005L) + +// MessageId: E_FDPAIRING_AUTHNOTALLOWED +// +// MessageText: +// +// The device has indicated that the authentication is not allowed. +// +#define E_FDPAIRING_AUTHNOTALLOWED _HRESULT_TYPEDEF_(0x8FD00006L) + +// MessageId: E_FDPAIRING_AUTHNOTALLOWED +// +// MessageText: +// +// The Pnp-X Bus Enumerator service is disabled. +// +#define E_FDPAIRING_IPBUSDISABLED _HRESULT_TYPEDEF_(0x8FD00007L) + +// MessageId: E_FDPAIRING_NOPROFILES +// +// MessageText: +// +// Windows does not have any network profiles for this device to use. +// +#define E_FDPAIRING_NOPROFILES _HRESULT_TYPEDEF_(0x8FD00008L) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverykeys.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverykeys.h new file mode 100644 index 0000000000000000000000000000000000000000..c596c86ea62b924d23b731440dc2af5a71636f80 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverykeys.h @@ -0,0 +1,367 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifndef DEFINE_API_PKEY +#include +#endif + +#include + +/* 08c0c253-a154-4746-9005-82de5317148b */ +DEFINE_PROPERTYKEY(PKEY_FunctionInstance, 0x08c0c253, 0xa154, 0x4746, 0x90, 0x05, 0x82, 0xde, 0x53, 0x17, 0x14, 0x8b, 0x00000001); // VT_UNKNOWN + +// FMTID_FD = {904b03a2-471d-423c-a584-f3483238a146} +DEFINE_GUID(FMTID_FD, 0x904b03a2, 0x471d, 0x423c, 0xa5, 0x84, 0xf3, 0x48, 0x32, 0x38, 0xa1, 0x46); +DEFINE_API_PKEY(PKEY_FD_Visibility, VisibilityFlags, 0x904b03a2, 0x471d, 0x423c, 0xa5, 0x84, 0xf3, 0x48, 0x32, 0x38, 0xa1, 0x46, 0x00000001); // VT_UINT +#define FD_Visibility_Default 0 +#define FD_Visibility_Hidden 1 + +// FMTID_Device = {78C34FC8-104A-4aca-9EA4-524D52996E57} +DEFINE_GUID(FMTID_Device, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57); + +DEFINE_API_PKEY(PKEY_Device_NotPresent, DeviceNotPresent , 0x904b03a2, 0x471d, 0x423c, 0xa5, 0x84, 0xf3, 0x48, 0x32, 0x38, 0xa1, 0x46, 0x00000002); // VT_UINT +DEFINE_API_PKEY(PKEY_Device_QueueSize, DeviceQueueSize , 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000024); // VT_UI4 +DEFINE_API_PKEY(PKEY_Device_Status, DeviceStatus , 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000025); // VT_LPWSTR +DEFINE_API_PKEY(PKEY_Device_Comment, DeviceComment , 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000026); // VT_LPWSTR +DEFINE_API_PKEY(PKEY_Device_Model, DeviceModel , 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000027); // VT_LPWSTR + +// FMTID_Device = {53808008-07BB-4661-BC3C-B5953E708560} +DEFINE_GUID(FMTID_DeviceInterface, 0x53808008, 0x07BB, 0x4661, 0xBC, 0x3C, 0xB5, 0x95, 0x3E, 0x70, 0x85, 0x60); + +DEFINE_API_PKEY(PKEY_DeviceInterface_DevicePath, DevicePath , 0x53808008, 0x07BB, 0x4661, 0xBC, 0x3C, 0xB5, 0x95, 0x3E, 0x70, 0x85, 0x60, 0x00000001); // VT_LPWSTR + +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_Address, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000033); // VT_LPWSTR or VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_DiscoveryMethod, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000034); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsEncrypted, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000035); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsAuthenticated, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000036); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsConnected, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000037); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsPaired, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000038); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_Icon, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000039); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_Version, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000041); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_Last_Seen, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000042); // VT_FIELTIME +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_Last_Connected, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000043); // VT_FILETIME +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsShowInDisconnectedState, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000044); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsLocalMachine, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000046); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_MetadataPath, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000047); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsMetadataSearchInProgress, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000048); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_MetadataChecksum, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000049); // VT_UI1 | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsNotInterestingForDisplay, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004A); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_LaunchDeviceStageOnDeviceConnect, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004C); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_LaunchDeviceStageFromExplorer, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004D); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_BaselineExperienceId, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004E); // VT_CLSID +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsDeviceUniquelyIdentifiable, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004F); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_AssociationArray, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000050); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_DeviceDescription1, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000051); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_DeviceDescription2, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000052); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsNotWorkingProperly, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000053); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsSharedDevice, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000054); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsNetworkDevice, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000055); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_IsDefaultDevice, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000056); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_MetadataCabinet, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000057); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_RequiresPairingElevation, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000058); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_ExperienceId, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000059); // VT_CLSID +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_Category, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005A); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_Category_Desc_Singular, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005B); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_Category_Desc_Plural, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005C); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_Category_Icon, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005D); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_CategoryGroup_Desc, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005E); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_CategoryGroup_Icon, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000005F); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_PrimaryCategory, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000061); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_UnpairUninstall, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000062); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_RequiresUninstallElevation, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000063); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_DeviceFunctionSubRank, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000064); // VT_UI4 +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_AlwaysShowDeviceAsConnected, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000065); // VT_BOOL + +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_FriendlyName, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003000); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_Manufacturer, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002000); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_ModelName, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002002); // VT_LPWSTR (localizable) +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_ModelNumber, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002003); // VT_LPWSTR + +DEFINE_PROPERTYKEY(PKEY_DeviceDisplay_InstallInProgress, 0x83da6326, 0x97a6, 0x4088, 0x94, 0x53, 0xa1, 0x92, 0x3f, 0x57, 0x3b, 0x29, 9); // DEVPROP_TYPE_BOOLEAN + +// FMTID_Pairing = {8807CAE6-7DB6-4f10-8EE4-435EAA1392BC} +DEFINE_GUID(FMTID_Pairing, 0x8807cae6, 0x7db6, 0x4f10, 0x8e, 0xe4, 0x43, 0x5e, 0xaa, 0x13, 0x92, 0xbc); +DEFINE_PROPERTYKEY(PKEY_Pairing_ListItemText, 0x8807cae6, 0x7db6, 0x4f10, 0x8e, 0xe4, 0x43, 0x5e, 0xaa, 0x13, 0x92, 0xbc, 0x0000001); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_Pairing_ListItemDescription, 0x8807cae6, 0x7db6, 0x4f10, 0x8e, 0xe4, 0x43, 0x5e, 0xaa, 0x13, 0x92, 0xbc, 0x0000002); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_Pairing_ListItemIcon, 0x8807cae6, 0x7db6, 0x4f10, 0x8e, 0xe4, 0x43, 0x5e, 0xaa, 0x13, 0x92, 0xbc, 0x0000003); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_Pairing_ListItemDefault, 0x8807cae6, 0x7db6, 0x4f10, 0x8e, 0xe4, 0x43, 0x5e, 0xaa, 0x13, 0x92, 0xbc, 0x0000004); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_Pairing_IsWifiOnlyDevice, 0x8807cae6, 0x7db6, 0x4f10, 0x8e, 0xe4, 0x43, 0x5e, 0xaa, 0x13, 0x92, 0xbc, 0x0000010); // VT_BOOL + +// DiscoveryMethod values +#define DEVICEDISPLAY_DISCOVERYMETHOD_BLUETOOTH L"Bluetooth" +#define DEVICEDISPLAY_DISCOVERYMETHOD_BLUETOOTH_LE L"Bluetooth Low Energy" +#define DEVICEDISPLAY_DISCOVERYMETHOD_NETBIOS L"NetBIOS" +#define DEVICEDISPLAY_DISCOVERYMETHOD_AD_PRINTER L"Published Printer" +#define DEVICEDISPLAY_DISCOVERYMETHOD_PNP L"PnP" +#define DEVICEDISPLAY_DISCOVERYMETHOD_UPNP L"UPnP" +#define DEVICEDISPLAY_DISCOVERYMETHOD_WSD L"WSD" +#define DEVICEDISPLAY_DISCOVERYMETHOD_WUSB L"WUSB" +#define DEVICEDISPLAY_DISCOVERYMETHOD_WFD L"WiFiDirect" +#define DEVICEDISPLAY_DISCOVERYMETHOD_ASP_INFRA L"AspInfra" + + +// Name: System.Device.BIOSVersion -- PKEY_Device_BIOSVersion +// Type: String -- VT_LPWSTR (For variants: VT_BSTR) Legacy code may treat this as VT_BSTR. +// FormatID: EAEE7F1D-6A33-44D1-9441-5F46DEF23198, 9 +DEFINE_PROPERTYKEY(PKEY_Device_BIOSVersion, 0xEAEE7F1D, 0x6A33, 0x44D1, 0x94, 0x41, 0x5F, 0x46, 0xDE, 0xF2, 0x31, 0x98, 9); + +DEFINE_API_PKEY(PKEY_Write_Time, WriteTime , 0xf53b7e1c, 0x77e0, 0x4450, 0x8c, 0x5f, 0xa7, 0x6c, 0xc7, 0xfd, 0xe0, 0x58, 0x00000100); // VT_FILETIME +DEFINE_API_PKEY(PKEY_Create_Time, CreateTime , 0xf53b7e1c, 0x77e0, 0x4450, 0x8c, 0x5f, 0xa7, 0x6c, 0xc7, 0xfd, 0xe0, 0x58, 0x00000101); // VT_FILETIME + +#ifdef FD_XP +DEFINE_API_PKEY(PKEY_Device_InstanceId, DeviceInstanceId , 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000100); // VT_LPWSTR +#endif +DEFINE_API_PKEY(PKEY_Device_Interface, DeviceInterface , 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000101); // VT_CLSID + +DEFINE_API_PKEY(PKEY_ExposedIIDs, ExposedIIDs , 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00003002); // VT_VECTOR | VT_CLSID +DEFINE_API_PKEY(PKEY_ExposedCLSIDs, ExposedCLSIDs , 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00003003); // VT_VECTOR | VT_CLSID +DEFINE_API_PKEY(PKEY_InstanceValidatorClsid,InstanceValidator , 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00003004); // VT_CLSID + +// FMTID_WSD = {92506491-FF95-4724-A05A-5B81885A7C92} +DEFINE_GUID(FMTID_WSD, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92); + +DEFINE_API_PKEY(PKEY_WSD_AddressURI, WSD_AddressURI, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92, 0x00001000); // VT_LPWSTR +DEFINE_API_PKEY(PKEY_WSD_Types, WSD_Types, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92, 0x00001001); // VT_LPWSTR +DEFINE_API_PKEY(PKEY_WSD_Scopes, WSD_Scopes, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92, 0x00001002); // VT_LPWSTR +DEFINE_API_PKEY(PKEY_WSD_MetadataVersion, WSD_MetadataVersion, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92, 0x00001003); //VT_UI8 +DEFINE_API_PKEY(PKEY_WSD_AppSeqInstanceID, WSD_AppSeqInstanceID, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92, 0x00001004); // VT_UI8 +DEFINE_API_PKEY(PKEY_WSD_AppSeqSessionID, WSD_AppSeqSessionID, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92, 0x00001005); // VT_LPWSTR +DEFINE_API_PKEY(PKEY_WSD_AppSeqMessageNumber, WSD_AppSeqMessageNumber, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92, 0x00001006); // VT_UI8 +DEFINE_API_PKEY(PKEY_WSD_XAddrs, WSD_XAddrs, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92, 0x00002000); // VT_LPWSTR or VT_VECTOR | VT_LPWSTR + +DEFINE_API_PKEY(PKEY_WSD_MetadataClean, WSD_MetadataClean, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92, 0x00000001); // VT_BOOL +DEFINE_API_PKEY(PKEY_WSD_ServiceInfo, WSD_ServiceInfo, 0x92506491, 0xFF95, 0x4724, 0xA0, 0x5A, 0x5B, 0x81, 0x88, 0x5A, 0x7C, 0x92, 0x00000002); // VT_VECTOR|VT_VARIANT (variants are VT_UNKNOWN) + +DEFINE_API_PKEY(PKEY_PUBSVCS_TYPE, PUBSVCS_TYPE, 0xF1B88AD3, 0x109C, 0x4FD2, 0xBA, 0x3F, 0x53, 0x5A, 0x76, 0x5F, 0x82, 0xF4, 0x00005001); // VT_LPWSTR +DEFINE_API_PKEY(PKEY_PUBSVCS_SCOPE, PUBSVCS_SCOPE, 0x2AE2B567, 0xEECB, 0x4A3E, 0xB7, 0x53, 0x54, 0xC7, 0x25, 0x49, 0x43, 0x66, 0x00005002); // VT_LPWSTR | VT_VECTOR +DEFINE_API_PKEY(PKEY_PUBSVCS_METADATA, PUBSVCS_METADATA, 0x63C6D5B8, 0xF73A, 0x4ACA, 0x96, 0x7E, 0x0C, 0xC7, 0x87, 0xE0, 0xB5, 0x59, 0x00005003); // VT_LPWSTR +DEFINE_API_PKEY(PKEY_PUBSVCS_METADATA_VERSION, PUBSVCS_METADATA_VERSION, 0xC0C96C15, 0x1823, 0x4E5B, 0x93, 0x48, 0xE8, 0x25, 0x19, 0x92, 0x3F, 0x04, 0x00005004); // VT_UI8 +DEFINE_API_PKEY(PKEY_PUBSVCS_NETWORK_PROFILES_ALLOWED, PUBSVCS_NETWORK_PROFILES_ALLOWED, 0x63C6D5B8, 0xF73A, 0x4ACA, 0x96, 0x7E, 0x0C, 0xC7, 0x87, 0xE0, 0xB5, 0x59, 0x00005005); // VT_VECTOR | VT_LPWSTR +DEFINE_API_PKEY(PKEY_PUBSVCS_NETWORK_PROFILES_DENIED, PUBSVCS_NETWORK_PROFILES_DENIED, 0x63C6D5B8, 0xF73A, 0x4ACA, 0x96, 0x7E, 0x0C, 0xC7, 0x87, 0xE0, 0xB5, 0x59, 0x00005006); // VT_VECTOR | VT_LPWSTR +DEFINE_API_PKEY(PKEY_PUBSVCS_NETWORK_PROFILES_DEFAULT, PUBSVCS_NETWORK_PROFILES_DEFAULT, 0x63C6D5B8, 0xF73A, 0x4ACA, 0x96, 0x7E, 0x0C, 0xC7, 0x87, 0xE0, 0xB5, 0x59, 0x00005007); // VT_BOOL + +// FMTID_PNPX = {656A3BB3-ECC0-43FD-8477-4AE0404A96CD} +DEFINE_GUID(FMTID_PNPX, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD); + // from Discovery messages +DEFINE_PROPERTYKEY(PKEY_PNPX_GlobalIdentity, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00001000); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_PNPX_Types, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00001001); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_PNPX_Scopes, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00001002); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_PNPX_XAddrs, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00001003); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_PNPX_MetadataVersion, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00001004); // VT_UI8 +DEFINE_PROPERTYKEY(PKEY_PNPX_ID, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00001005); // VT_LPWSTR + + // for Directed Discovery +DEFINE_PROPERTYKEY(PKEY_PNPX_RemoteAddress, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00001006); // VT_LPWSTR + // for installable ssdp root devices +DEFINE_PROPERTYKEY(PKEY_PNPX_RootProxy, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00001007); // VT_BOOL + + + // from ThisModel metadata +#define PKEY_PNPX_Manufacturer PKEY_DeviceDisplay_Manufacturer // Deprecated! Please use PKEY_DeviceDisplay_Manufacturer +DEFINE_PROPERTYKEY(PKEY_PNPX_ManufacturerUrl, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002001); // VT_LPWSTR +#define PKEY_PNPX_ModelName PKEY_DeviceDisplay_ModelName // Deprecated! Please use PKEY_DeviceDisplay_ModelName +#define PKEY_PNPX_ModelNumber PKEY_DeviceDisplay_ModelNumber //Depricated! Please use PKEY_DeviceDisplayModelNumber +DEFINE_PROPERTYKEY(PKEY_PNPX_ModelUrl, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002004); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_PNPX_Upc, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002005); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_PNPX_PresentationUrl, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00002006); // VT_LPWSTR + // from ThisDevice metadata +#define PKEY_PNPX_FriendlyName PKEY_DeviceDisplay_FriendlyName // Deprecated! Please use PKEY_DeviceDisplay_Name +DEFINE_PROPERTYKEY(PKEY_PNPX_FirmwareVersion, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003001); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_PNPX_SerialNumber, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003002); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_PNPX_DeviceCategory, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003004); // VT_LPWSTR | VT_VECTOR + + // for secure devices +DEFINE_PROPERTYKEY(PKEY_PNPX_SecureChannel, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00007001); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_PNPX_CompactSignature, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00007002); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_PNPX_DeviceCertHash, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00007003); // VT_LPWSTR + + + // DeviceCategory values +#define PNPX_DEVICECATEGORY_COMPUTER L"Computers" +#define PNPX_DEVICECATEGORY_INPUTDEVICE L"Input" +#define PNPX_DEVICECATEGORY_PRINTER L"Printers" +#define PNPX_DEVICECATEGORY_SCANNER L"Scanners" +#define PNPX_DEVICECATEGORY_FAX L"FAX" +#define PNPX_DEVICECATEGORY_MFP L"MFP" +#define PNPX_DEVICECATEGORY_CAMERA L"Cameras" +#define PNPX_DEVICECATEGORY_STORAGE L"Storage" +#define PNPX_DEVICECATEGORY_NETWORK_INFRASTRUCTURE L"NetworkInfrastructure" +#define PNPX_DEVICECATEGORY_DISPLAYS L"Displays" +#define PNPX_DEVICECATEGORY_MULTIMEDIA_DEVICE L"MediaDevices" +#define PNPX_DEVICECATEGORY_GAMING_DEVICE L"Gaming" +#define PNPX_DEVICECATEGORY_TELEPHONE L"Phones" +#define PNPX_DEVICECATEGORY_HOME_AUTOMATION_SYSTEM L"HomeAutomation" +#define PNPX_DEVICECATEGORY_HOME_SECURITY_SYSTEM L"HomeSecurity" +#define PNPX_DEVICECATEGORY_OTHER L"Other" + +DEFINE_PROPERTYKEY(PKEY_PNPX_DeviceCategory_Desc, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003005); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_PNPX_Category_Desc_NonPlural, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003010); // VT_LPWSTR | VT_VECTOR + +DEFINE_PROPERTYKEY(PKEY_PNPX_PhysicalAddress, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003006); // VT_UI1 | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_PNPX_NetworkInterfaceLuid, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003007); // VT_UI8 +DEFINE_PROPERTYKEY(PKEY_PNPX_NetworkInterfaceGuid, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003008); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_PNPX_IpAddress, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00003009); // VT_LPWSTR | VT_VECTOR + // from Relationship metadata +DEFINE_PROPERTYKEY(PKEY_PNPX_ServiceAddress, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00004000); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_PNPX_ServiceId, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00004001); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_PNPX_ServiceTypes, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00004002); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_PNPX_ServiceControlUrl, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x4004); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_PNPX_ServiceDescUrl, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x4005); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_PNPX_ServiceEventSubUrl, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x4006); // VT_LPWSTR + + // Association DB PKEYs +DEFINE_API_PKEY(PKEY_PNPX_Devnode, PnPXDevNode, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00000001); // VT_BOOL +DEFINE_API_PKEY(PKEY_PNPX_AssociationState, AssociationState, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00000002); // VT_UINT +DEFINE_API_PKEY(PKEY_PNPX_AssociatedInstanceId, AssociatedInstanceId, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00000003); // VT_LPWSTR +DEFINE_API_PKEY(PKEY_PNPX_LastNotificationTime, LastNotificationTime, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00000004); // VT_DATE + // for Computer Discovery +DEFINE_PROPERTYKEY(PKEY_PNPX_DomainName, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00005000); // VT_LPWSTR +// Use PKEY_ComputerName (propkey.h) DEFINE_PROPERTYKEY(PKEY_PNPX_MachineName, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00005001); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_PNPX_ShareName, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00005002); // VT_LPWSTR + + // SSDP Provider custom properties +DEFINE_PROPERTYKEY(PKEY_SSDP_AltLocationInfo, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00006000); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_SSDP_DevLifeTime, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00006001); // VT_UI4 +DEFINE_PROPERTYKEY(PKEY_SSDP_NetworkInterface, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00006002); // VT_BOOL + +// FMTID_PNPXDynamicProperty = {4FC5077E-B686-44BE-93E3-86CAFE368CCD} +DEFINE_GUID(FMTID_PNPXDynamicProperty, 0x4FC5077E, 0xB686, 0x44BE, 0x93, 0xE3, 0x86, 0xCA, 0xFE, 0x36, 0x8C, 0xCD); + +DEFINE_PROPERTYKEY(PKEY_PNPX_Installable, 0x4FC5077E, 0xB686, 0x44BE, 0x93, 0xE3, 0x86, 0xCA, 0xFE, 0x36, 0x8C, 0xCD, 0x00000001); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_PNPX_Associated, 0x4FC5077E, 0xB686, 0x44BE, 0x93, 0xE3, 0x86, 0xCA, 0xFE, 0x36, 0x8C, 0xCD, 0x00000002); // VT_BOOL +// PKEY_PNPX_Installed is deprecated this PKEY really represents Associated state +#define PKEY_PNPX_Installed PKEY_PNPX_Associated // Deprecated! Please use PKEY_PNPX_Associated +DEFINE_PROPERTYKEY(PKEY_PNPX_CompatibleTypes, 0x4FC5077E, 0xB686, 0x44BE, 0x93, 0xE3, 0x86, 0xCA, 0xFE, 0x36, 0x8C, 0xCD, 0x00000003); // VT_LPWSTR | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_PNPX_InstallState, 0x4FC5077E, 0xB686, 0x44BE, 0x93, 0xE3, 0x86, 0xCA, 0xFE, 0x36, 0x8C, 0xCD, 0x00000004); // VT_UI4 | VT_VECTOR +#define PNPX_INSTALLSTATE_NOTINSTALLED 0 // vector length = 1 +#define PNPX_INSTALLSTATE_INSTALLED 1 // vector length = 3, CM_Get_DevNode_Status in 2nd and 3rd elements +#define PNPX_INSTALLSTATE_INSTALLING 2 // vector length = 1 or 3, CM_Get_DevNode_Status in 2nd and 3rd elements if available +#define PNPX_INSTALLSTATE_FAILED 3 // vector length = 3, CM_Get_DevNode_Status in 2nd and 3rd elements + +// Other +DEFINE_PROPERTYKEY(PKEY_PNPX_Removable, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00007000); // VT_BOOL +DEFINE_PROPERTYKEY(PKEY_PNPX_IPBusEnumerated, 0x656A3BB3, 0xECC0, 0x43FD, 0x84, 0x77, 0x4A, 0xE0, 0x40, 0x4A, 0x96, 0xCD, 0x00007010); // VT_BOOL + + // WNET Provider properties +DEFINE_PROPERTYKEY(PKEY_WNET_Scope, 0xdebda43a, 0x37b3, 0x4383, 0x91, 0xE7, 0x44, 0x98, 0xda, 0x29, 0x95, 0xab, 0x00000001); // VT_UINT +DEFINE_PROPERTYKEY(PKEY_WNET_Type, 0xdebda43a, 0x37b3, 0x4383, 0x91, 0xE7, 0x44, 0x98, 0xda, 0x29, 0x95, 0xab, 0x00000002); // VT_UINT +DEFINE_PROPERTYKEY(PKEY_WNET_DisplayType, 0xdebda43a, 0x37b3, 0x4383, 0x91, 0xE7, 0x44, 0x98, 0xda, 0x29, 0x95, 0xab, 0x00000003); // VT_UINT +DEFINE_PROPERTYKEY(PKEY_WNET_Usage, 0xdebda43a, 0x37b3, 0x4383, 0x91, 0xE7, 0x44, 0x98, 0xda, 0x29, 0x95, 0xab, 0x00000004); // VT_UINT +DEFINE_PROPERTYKEY(PKEY_WNET_LocalName, 0xdebda43a, 0x37b3, 0x4383, 0x91, 0xE7, 0x44, 0x98, 0xda, 0x29, 0x95, 0xab, 0x00000005); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_WNET_RemoteName, 0xdebda43a, 0x37b3, 0x4383, 0x91, 0xE7, 0x44, 0x98, 0xda, 0x29, 0x95, 0xab, 0x00000006); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_WNET_Comment, 0xdebda43a, 0x37b3, 0x4383, 0x91, 0xE7, 0x44, 0x98, 0xda, 0x29, 0x95, 0xab, 0x00000007); // VT_LPWSTR +DEFINE_PROPERTYKEY(PKEY_WNET_Provider, 0xdebda43a, 0x37b3, 0x4383, 0x91, 0xE7, 0x44, 0x98, 0xda, 0x29, 0x95, 0xab, 0x00000008); // VT_LPWSTR + + + // WCN Provider properties + +DEFINE_PROPERTYKEY(PKEY_WCN_Version, 0x88190b80, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x00000001); // VT_UI1 +DEFINE_PROPERTYKEY(PKEY_WCN_RequestType, 0x88190b81, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x00000002); // VT_INT +DEFINE_PROPERTYKEY(PKEY_WCN_AuthType, 0x88190b82, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x00000003); // VT_INT +DEFINE_PROPERTYKEY(PKEY_WCN_EncryptType, 0x88190b83, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x00000004); // VT_INT +DEFINE_PROPERTYKEY(PKEY_WCN_ConnType, 0x88190b84, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x00000005); // VT_INT +DEFINE_PROPERTYKEY(PKEY_WCN_ConfigMethods, 0x88190b85, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x00000006); // VT_INT +// map WCN DeviceType to PKEY_PNPX_DeviceCategory +//DEFINE_PROPERTYKEY(PKEY_WCN_DeviceType, 0x88190b86, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x00000007); // VT_INT +DEFINE_PROPERTYKEY(PKEY_WCN_RfBand, 0x88190b87, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x00000008); // VT_INT +DEFINE_PROPERTYKEY(PKEY_WCN_AssocState, 0x88190b88, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x00000009); // VT_INT +DEFINE_PROPERTYKEY(PKEY_WCN_ConfigError, 0x88190b89, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x0000000a); // VT_INT +DEFINE_PROPERTYKEY(PKEY_WCN_ConfigState, 0x88190b89, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x0000000b); // VT_UI1 +DEFINE_PROPERTYKEY(PKEY_WCN_DevicePasswordId, 0x88190b89, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x0000000c); // VT_INT +DEFINE_PROPERTYKEY(PKEY_WCN_OSVersion, 0x88190b89, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x0000000d); // VT_UINT +DEFINE_PROPERTYKEY(PKEY_WCN_VendorExtension, 0x88190b8a, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x0000000e); // VT_UI1 | VT_VECTOR +DEFINE_PROPERTYKEY(PKEY_WCN_RegistrarType, 0x88190b8b, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x0000000f); // VT_INT + +//----------------------------------------------------------------------------- +// DriverPackage properties + +#define PKEY_DriverPackage_Model PKEY_DrvPkg_Model +#define PKEY_DriverPackage_VendorWebSite PKEY_DrvPkg_VendorWebSite +#define PKEY_DriverPackage_DetailedDescription PKEY_DrvPkg_DetailedDescription +#define PKEY_DriverPackage_DocumentationLink PKEY_DrvPkg_DocumentationLink +#define PKEY_DriverPackage_Icon PKEY_DrvPkg_Icon +#define PKEY_DriverPackage_BrandingIcon PKEY_DrvPkg_BrandingIcon + +//----------------------------------------------------------------------------- +// Hardware properties + +DEFINE_PROPERTYKEY(PKEY_Hardware_Devinst, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 4097); + +// Name: System.Hardware.DisplayAttribute -- PKEY_Hardware_DisplayAttribute +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 5 +DEFINE_PROPERTYKEY(PKEY_Hardware_DisplayAttribute, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 5); + +// Name: System.Hardware.DriverDate -- PKEY_Hardware_DriverDate +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 11 +DEFINE_PROPERTYKEY(PKEY_Hardware_DriverDate, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 11); + +// Name: System.Hardware.DriverProvider -- PKEY_Hardware_DriverProvider +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 10 +DEFINE_PROPERTYKEY(PKEY_Hardware_DriverProvider, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 10); + +// Name: System.Hardware.DriverVersion -- PKEY_Hardware_DriverVersion +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 9 +DEFINE_PROPERTYKEY(PKEY_Hardware_DriverVersion, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 9); + +// Name: System.Hardware.Function -- PKEY_Hardware_Function +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 4099 +DEFINE_PROPERTYKEY(PKEY_Hardware_Function, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 4099); + +// Name: System.Hardware.Icon -- PKEY_Hardware_Icon +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 3 +DEFINE_PROPERTYKEY(PKEY_Hardware_Icon, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 3); + +// Name: System.Hardware.Image -- PKEY_Hardware_Image +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 4098 +DEFINE_PROPERTYKEY(PKEY_Hardware_Image, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 4098); + +// Name: System.Hardware.Manufacturer -- PKEY_Hardware_Manufacturer +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 6 +DEFINE_PROPERTYKEY(PKEY_Hardware_Manufacturer, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 6); + +// Name: System.Hardware.Model -- PKEY_Hardware_Model +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 7 +DEFINE_PROPERTYKEY(PKEY_Hardware_Model, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 7); + +// Name: System.Hardware.Name -- PKEY_Hardware_Name +// Type: String -- VT_LPWSTR (For variants: VT_BSTR) +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 2 +DEFINE_PROPERTYKEY(PKEY_Hardware_Name, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 2); + +// Name: System.Hardware.SerialNumber -- PKEY_Hardware_SerialNumber +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 8 +DEFINE_PROPERTYKEY(PKEY_Hardware_SerialNumber, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 8); + +// Name: System.Hardware.ShellAttributes -- PKEY_Hardware_ShellAttributes +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 4100 +DEFINE_PROPERTYKEY(PKEY_Hardware_ShellAttributes, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 4100); + +// Name: System.Hardware.Status -- PKEY_Hardware_Status +// Type: Unspecified -- VT_NULL +// FormatID: 5EAF3EF2-E0CA-4598-BF06-71ED1D9DD953, 4096 +DEFINE_PROPERTYKEY(PKEY_Hardware_Status, 0x5EAF3EF2, 0xE0CA, 0x4598, 0xBF, 0x06, 0x71, 0xED, 0x1D, 0x9D, 0xD9, 0x53, 4096); + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverykeys_devpkey.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverykeys_devpkey.h new file mode 100644 index 0000000000000000000000000000000000000000..a05aea6b788483d0e216d46f2aa2070a4bec092f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverykeys_devpkey.h @@ -0,0 +1,224 @@ +#pragma once + +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + devpkey.h + +Abstract: + + Defines property keys for the Plug and Play Device Property API. + +Author: + + Jim Cavalaris (jamesca) 10-14-2003 + +Environment: + + User-mode only. + +Revision History: + + 14-October-2003 jamesca + + Creation and initial implementation. + + 20-June-2006 dougb + + Copied Jim's version replaced "DEFINE_DEVPROPKEY(DEVPKEY_" with "DEFINE_PROPERTYKEY(PKEY_" + +--*/ + +#include + +#pragma region Desktop and Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_GAMES) + + +//#include + +// +// _NAME +// + +DEFINE_PROPERTYKEY(PKEY_NAME, 0xb725f130, 0x47ef, 0x101a, 0xa5, 0xf1, 0x02, 0x60, 0x8c, 0x9e, 0xeb, 0xac, 10); // DEVPROP_TYPE_STRING + +// +// Device properties +// These PKEYs correspond to the old setupapi SPDRP_XXX properties +// +DEFINE_PROPERTYKEY(PKEY_Device_DeviceDesc, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 2); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_HardwareIds, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 3); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_CompatibleIds, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 4); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_Service, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 6); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_Class, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 9); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_ClassGuid, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 10); // DEVPROP_TYPE_GUID +DEFINE_PROPERTYKEY(PKEY_Device_Driver, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 11); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_ConfigFlags, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 12); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_Manufacturer, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 13); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 14); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_LocationInfo, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 15); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_PDOName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 16); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_Capabilities, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 17); // DEVPROP_TYPE_UNINT32 +DEFINE_PROPERTYKEY(PKEY_Device_UINumber, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 18); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_UpperFilters, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 19); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_LowerFilters, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 20); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_BusTypeGuid, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 21); // DEVPROP_TYPE_GUID +DEFINE_PROPERTYKEY(PKEY_Device_LegacyBusType, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 22); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_BusNumber, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 23); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_EnumeratorName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 24); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_Security, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 25); // DEVPROP_TYPE_SECURITY_DESCRIPTOR +DEFINE_PROPERTYKEY(PKEY_Device_SecuritySDS, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 26); // DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING +DEFINE_PROPERTYKEY(PKEY_Device_DevType, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 27); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_Exclusive, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 28); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_Characteristics, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 29); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_Address, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 30); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_UINumberDescFormat, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 31); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_PowerData, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 32); // DEVPROP_TYPE_BINARY +DEFINE_PROPERTYKEY(PKEY_Device_RemovalPolicy, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 33); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_RemovalPolicyDefault, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 34); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_RemovalPolicyOverride, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 35); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_InstallState, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 36); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_LocationPaths, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 37); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_BaseContainerId, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 38); // DEVPROP_TYPE_GUID + +// +// Device properties +// These PKEYs correspond to a device's status and problem code +// +DEFINE_PROPERTYKEY(PKEY_Device_DevNodeStatus, 0x4340a6c5, 0x93fa, 0x4706, 0x97, 0x2c, 0x7b, 0x64, 0x80, 0x08, 0xa5, 0xa7, 2); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_ProblemCode, 0x4340a6c5, 0x93fa, 0x4706, 0x97, 0x2c, 0x7b, 0x64, 0x80, 0x08, 0xa5, 0xa7, 3); // DEVPROP_TYPE_UINT32 + +// +// Device properties +// These PKEYs correspond to device relations +// +DEFINE_PROPERTYKEY(PKEY_Device_EjectionRelations, 0x4340a6c5, 0x93fa, 0x4706, 0x97, 0x2c, 0x7b, 0x64, 0x80, 0x08, 0xa5, 0xa7, 4); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_RemovalRelations, 0x4340a6c5, 0x93fa, 0x4706, 0x97, 0x2c, 0x7b, 0x64, 0x80, 0x08, 0xa5, 0xa7, 5); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_PowerRelations, 0x4340a6c5, 0x93fa, 0x4706, 0x97, 0x2c, 0x7b, 0x64, 0x80, 0x08, 0xa5, 0xa7, 6); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_BusRelations, 0x4340a6c5, 0x93fa, 0x4706, 0x97, 0x2c, 0x7b, 0x64, 0x80, 0x08, 0xa5, 0xa7, 7); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_Parent, 0x4340a6c5, 0x93fa, 0x4706, 0x97, 0x2c, 0x7b, 0x64, 0x80, 0x08, 0xa5, 0xa7, 8); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_Children, 0x4340a6c5, 0x93fa, 0x4706, 0x97, 0x2c, 0x7b, 0x64, 0x80, 0x08, 0xa5, 0xa7, 9); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_Siblings, 0x4340a6c5, 0x93fa, 0x4706, 0x97, 0x2c, 0x7b, 0x64, 0x80, 0x08, 0xa5, 0xa7, 10); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_TransportRelations, 0x4340a6c5, 0x93fa, 0x4706, 0x97, 0x2c, 0x7b, 0x64, 0x80, 0x08, 0xa5, 0xa7, 11); // DEVPROP_TYPE_STRING_LIST + +// +// Other Device properties +// +DEFINE_PROPERTYKEY(PKEY_Device_Reported, 0x80497100, 0x8c73, 0x48b9, 0xaa, 0xd9, 0xce, 0x38, 0x7e, 0x19, 0xc5, 0x6e, 2); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_Device_Legacy, 0x80497100, 0x8c73, 0x48b9, 0xaa, 0xd9, 0xce, 0x38, 0x7e, 0x19, 0xc5, 0x6e, 3); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_Device_InstanceId, 0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 256); // DEVPROP_TYPE_STRING + +DEFINE_PROPERTYKEY(PKEY_Device_ContainerId, 0x8c7ed206, 0x3f8a, 0x4827, 0xb3, 0xab, 0xae, 0x9e, 0x1f, 0xae, 0xfc, 0x6c, 2); // DEVPROP_TYPE_GUID + +DEFINE_PROPERTYKEY(PKEY_Device_ModelId, 0x80d81ea6, 0x7473, 0x4b0c, 0x82, 0x16, 0xef, 0xc1, 0x1a, 0x2c, 0x4c, 0x8b, 2); // DEVPROP_TYPE_GUID + +DEFINE_PROPERTYKEY(PKEY_Device_FriendlyNameAttributes, 0x80d81ea6, 0x7473, 0x4b0c, 0x82, 0x16, 0xef, 0xc1, 0x1a, 0x2c, 0x4c, 0x8b, 3); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_ManufacturerAttributes, 0x80d81ea6, 0x7473, 0x4b0c, 0x82, 0x16, 0xef, 0xc1, 0x1a, 0x2c, 0x4c, 0x8b, 4); // DEVPROP_TYPE_UINT32 + +DEFINE_PROPERTYKEY(PKEY_Device_PresenceNotForDevice, 0x80d81ea6, 0x7473, 0x4b0c, 0x82, 0x16, 0xef, 0xc1, 0x1a, 0x2c, 0x4c, 0x8b, 5); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_Device_SignalStrength, 0x80d81ea6, 0x7473, 0x4b0c, 0x82, 0x16, 0xef, 0xc1, 0x1a, 0x2c, 0x4c, 0x8b, 6); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_IsAssociateableByUserAction, 0x80d81ea6, 0x7473, 0x4b0c, 0x82, 0x16, 0xef, 0xc1, 0x1a, 0x2c, 0x4c, 0x8b, 7);// DEVPROP_TYPE_BOOLEAN + + + +DEFINE_PROPERTYKEY(PKEY_Numa_Proximity_Domain, 0x540b947e, 0x8b40, 0x45bc, 0xa8, 0xa2, 0x6a, 0x0b, 0x89, 0x4c, 0xbd, 0xa2, 1); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_DHP_Rebalance_Policy, 0x540b947e, 0x8b40, 0x45bc, 0xa8, 0xa2, 0x6a, 0x0b, 0x89, 0x4c, 0xbd, 0xa2, 2); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_Numa_Node, 0x540b947e, 0x8b40, 0x45bc, 0xa8, 0xa2, 0x6a, 0x0b, 0x89, 0x4c, 0xbd, 0xa2, 3); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_BusReportedDeviceDesc, 0x540b947e, 0x8b40, 0x45bc, 0xa8, 0xa2, 0x6a, 0x0b, 0x89, 0x4c, 0xbd, 0xa2, 4); // DEVPROP_TYPE_STRING + +DEFINE_PROPERTYKEY(PKEY_Device_InstallInProgress, 0x83da6326, 0x97a6, 0x4088, 0x94, 0x53, 0xa1, 0x92, 0x3f, 0x57, 0x3b, 0x29, 9); // DEVPROP_TYPE_BOOLEAN + +// +// Device driver properties +// +DEFINE_PROPERTYKEY(PKEY_Device_DriverDate, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 2); // DEVPROP_TYPE_FILETIME +DEFINE_PROPERTYKEY(PKEY_Device_DriverVersion, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 3); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_DriverDesc, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 4); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_DriverInfPath, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 5); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_DriverInfSection, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 6); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_DriverInfSectionExt, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 7); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_MatchingDeviceId, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 8); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_DriverProvider, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 9); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_DriverPropPageProvider, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 10); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_DriverCoInstallers, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 11); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_Device_ResourcePickerTags, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 12); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_ResourcePickerExceptions, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 13); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_Device_DriverRank, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 14); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_DriverLogoLevel, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 15); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_Device_NoConnectSound, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 17); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_Device_GenericDriverInstalled, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 18); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_Device_AdditionalSoftwareRequested, 0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 19);// DEVPROP_TYPE_BOOLEAN + +// +// Device safe-removal properties +// +DEFINE_PROPERTYKEY(PKEY_Device_SafeRemovalRequired, 0xafd97640, 0x86a3, 0x4210, 0xb6, 0x7c, 0x28, 0x9c, 0x41, 0xaa, 0xbe, 0x55, 2); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_Device_SafeRemovalRequiredOverride, 0xafd97640, 0x86a3, 0x4210, 0xb6, 0x7c, 0x28, 0x9c, 0x41, 0xaa, 0xbe, 0x55, 3);// DEVPROP_TYPE_BOOLEAN + + +// +// Device properties that were set by the driver package that was installed +// on the device. +// +DEFINE_PROPERTYKEY(PKEY_DrvPkg_Model, 0xcf73bb51, 0x3abf, 0x44a2, 0x85, 0xe0, 0x9a, 0x3d, 0xc7, 0xa1, 0x21, 0x32, 2); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DrvPkg_VendorWebSite, 0xcf73bb51, 0x3abf, 0x44a2, 0x85, 0xe0, 0x9a, 0x3d, 0xc7, 0xa1, 0x21, 0x32, 3); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DrvPkg_DetailedDescription, 0xcf73bb51, 0x3abf, 0x44a2, 0x85, 0xe0, 0x9a, 0x3d, 0xc7, 0xa1, 0x21, 0x32, 4); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DrvPkg_DocumentationLink, 0xcf73bb51, 0x3abf, 0x44a2, 0x85, 0xe0, 0x9a, 0x3d, 0xc7, 0xa1, 0x21, 0x32, 5); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DrvPkg_Icon, 0xcf73bb51, 0x3abf, 0x44a2, 0x85, 0xe0, 0x9a, 0x3d, 0xc7, 0xa1, 0x21, 0x32, 6); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_DrvPkg_BrandingIcon, 0xcf73bb51, 0x3abf, 0x44a2, 0x85, 0xe0, 0x9a, 0x3d, 0xc7, 0xa1, 0x21, 0x32, 7); // DEVPROP_TYPE_STRING_LIST + +// +// Device setup class properties +// These PKEYs correspond to the old setupapi SPCRP_XXX properties +// +DEFINE_PROPERTYKEY(PKEY_DeviceClass_UpperFilters, 0x4321918b, 0xf69e, 0x470d, 0xa5, 0xde, 0x4d, 0x88, 0xc7, 0x5a, 0xd2, 0x4b, 19); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_DeviceClass_LowerFilters, 0x4321918b, 0xf69e, 0x470d, 0xa5, 0xde, 0x4d, 0x88, 0xc7, 0x5a, 0xd2, 0x4b, 20); // DEVPROP_TYPE_STRING_LIST +DEFINE_PROPERTYKEY(PKEY_DeviceClass_Security, 0x4321918b, 0xf69e, 0x470d, 0xa5, 0xde, 0x4d, 0x88, 0xc7, 0x5a, 0xd2, 0x4b, 25); // DEVPROP_TYPE_SECURITY_DESCRIPTOR +DEFINE_PROPERTYKEY(PKEY_DeviceClass_SecuritySDS, 0x4321918b, 0xf69e, 0x470d, 0xa5, 0xde, 0x4d, 0x88, 0xc7, 0x5a, 0xd2, 0x4b, 26); // DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING +DEFINE_PROPERTYKEY(PKEY_DeviceClass_DevType, 0x4321918b, 0xf69e, 0x470d, 0xa5, 0xde, 0x4d, 0x88, 0xc7, 0x5a, 0xd2, 0x4b, 27); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_DeviceClass_Exclusive, 0x4321918b, 0xf69e, 0x470d, 0xa5, 0xde, 0x4d, 0x88, 0xc7, 0x5a, 0xd2, 0x4b, 28); // DEVPROP_TYPE_UINT32 +DEFINE_PROPERTYKEY(PKEY_DeviceClass_Characteristics, 0x4321918b, 0xf69e, 0x470d, 0xa5, 0xde, 0x4d, 0x88, 0xc7, 0x5a, 0xd2, 0x4b, 29); // DEVPROP_TYPE_UINT32 + +// +// Device setup class properties +// These PKEYs correspond to registry values under the device class GUID key +// +DEFINE_PROPERTYKEY(PKEY_DeviceClass_Name, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 2); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DeviceClass_ClassName, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 3); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DeviceClass_Icon, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 4); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DeviceClass_ClassInstaller, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 5); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DeviceClass_PropPageProvider, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 6); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DeviceClass_NoInstallClass, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 7); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_DeviceClass_NoDisplayClass, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 8); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_DeviceClass_SilentInstall, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 9); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_DeviceClass_NoUseClass, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 10); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_DeviceClass_DefaultService, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 11); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DeviceClass_IconPath, 0x259abffc, 0x50a7, 0x47ce, 0xaf, 0x8, 0x68, 0xc9, 0xa7, 0xd7, 0x33, 0x66, 12); // DEVPROP_TYPE_STRING_LIST + +// +// Other Device setup class properties +// +DEFINE_PROPERTYKEY(PKEY_DeviceClass_ClassCoInstallers, 0x713d1703, 0xa2e2, 0x49f5, 0x92, 0x14, 0x56, 0x47, 0x2e, 0xf3, 0xda, 0x5c, 2); // DEVPROP_TYPE_STRING_LIST + +// +// Device interface properties +// +DEFINE_PROPERTYKEY(PKEY_DeviceInterface_FriendlyName, 0x026e516e, 0xb814, 0x414b, 0x83, 0xcd, 0x85, 0x6d, 0x6f, 0xef, 0x48, 0x22, 2); // DEVPROP_TYPE_STRING +DEFINE_PROPERTYKEY(PKEY_DeviceInterface_Enabled, 0x026e516e, 0xb814, 0x414b, 0x83, 0xcd, 0x85, 0x6d, 0x6f, 0xef, 0x48, 0x22, 3); // DEVPROP_TYPE_BOOLEAN +DEFINE_PROPERTYKEY(PKEY_DeviceInterface_ClassGuid, 0x026e516e, 0xb814, 0x414b, 0x83, 0xcd, 0x85, 0x6d, 0x6f, 0xef, 0x48, 0x22, 4); // DEVPROP_TYPE_GUID + +// +// Device interface class properties +// +DEFINE_PROPERTYKEY(PKEY_DeviceInterfaceClass_DefaultInterface, 0x14c83a99, 0x0b3f, 0x44b7, 0xbe, 0x4c, 0xa1, 0x78, 0xd3, 0x99, 0x05, 0x64, 2); // DEVPROP_TYPE_STRING + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_GAMES) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverynotification.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverynotification.h new file mode 100644 index 0000000000000000000000000000000000000000..7f21dc6820c090d93f4655ab29700255e79a135c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoverynotification.h @@ -0,0 +1,56 @@ +#pragma once + +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +// CFunctionDiscoveryNotificationWrapper class. +// +// All OS components implementing IFunctionDiscoveryNotification should derive +// from this class rather then directly from IFunctionDiscoveryNotification +// so that a default implementation can be provided here in case of future +// breaking changes to the IFunctionDiscoveryNotification interface + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +interface IFunctionDiscoveryNotification; // forward declaration + +#ifdef __cplusplus +class CFunctionDiscoveryNotificationWrapper : public IFunctionDiscoveryNotification +{ +public: + virtual HRESULT STDMETHODCALLTYPE OnUpdate( + /* [in] */ QueryUpdateAction, + /* [in] */ FDQUERYCONTEXT, + /* [in] */ __RPC__in_opt IFunctionInstance*) + { return S_OK; } + virtual HRESULT STDMETHODCALLTYPE OnError( + /* [in] */ HRESULT, + /* [in] */ FDQUERYCONTEXT, + /* [string][in] */ __RPC__in_string const WCHAR*) + { return S_OK; } + virtual HRESULT STDMETHODCALLTYPE OnEvent( + /* [in] */ DWORD, + /* [in] */ FDQUERYCONTEXT, + /* [string][in] */ __RPC__in_string const WCHAR*) + { return S_OK; } +}; +#endif + +// Internal Event ids +#define FD_EVENTID_PRIVATE 100 + +// Event ids +#define FD_EVENTID 1000 +#define FD_EVENTID_SEARCHCOMPLETE FD_EVENTID +#define FD_EVENTID_ASYNCTHREADEXIT FD_EVENTID + 1 +#define FD_EVENTID_SEARCHSTART FD_EVENTID + 2 +#define FD_EVENTID_IPADDRESSCHANGE FD_EVENTID + 3 +#define FD_EVENTID_QUERYREFRESH FD_EVENTID + 4 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryprovider.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryprovider.h new file mode 100644 index 0000000000000000000000000000000000000000..1512dbdc7ee2a1b13e58f424212b4e8329b9da99 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryprovider.h @@ -0,0 +1,1222 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __functiondiscoveryprovider_h__ +#define __functiondiscoveryprovider_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IFunctionDiscoveryProvider_FWD_DEFINED__ +#define __IFunctionDiscoveryProvider_FWD_DEFINED__ +typedef interface IFunctionDiscoveryProvider IFunctionDiscoveryProvider; + +#endif /* __IFunctionDiscoveryProvider_FWD_DEFINED__ */ + + +#ifndef __IProviderProperties_FWD_DEFINED__ +#define __IProviderProperties_FWD_DEFINED__ +typedef interface IProviderProperties IProviderProperties; + +#endif /* __IProviderProperties_FWD_DEFINED__ */ + + +#ifndef __IProviderPublishing_FWD_DEFINED__ +#define __IProviderPublishing_FWD_DEFINED__ +typedef interface IProviderPublishing IProviderPublishing; + +#endif /* __IProviderPublishing_FWD_DEFINED__ */ + + +#ifndef __IFunctionDiscoveryProviderFactory_FWD_DEFINED__ +#define __IFunctionDiscoveryProviderFactory_FWD_DEFINED__ +typedef interface IFunctionDiscoveryProviderFactory IFunctionDiscoveryProviderFactory; + +#endif /* __IFunctionDiscoveryProviderFactory_FWD_DEFINED__ */ + + +#ifndef __IFunctionDiscoveryProviderQuery_FWD_DEFINED__ +#define __IFunctionDiscoveryProviderQuery_FWD_DEFINED__ +typedef interface IFunctionDiscoveryProviderQuery IFunctionDiscoveryProviderQuery; + +#endif /* __IFunctionDiscoveryProviderQuery_FWD_DEFINED__ */ + + +#ifndef __IProviderQueryConstraintCollection_FWD_DEFINED__ +#define __IProviderQueryConstraintCollection_FWD_DEFINED__ +typedef interface IProviderQueryConstraintCollection IProviderQueryConstraintCollection; + +#endif /* __IProviderQueryConstraintCollection_FWD_DEFINED__ */ + + +#ifndef __IProviderPropertyConstraintCollection_FWD_DEFINED__ +#define __IProviderPropertyConstraintCollection_FWD_DEFINED__ +typedef interface IProviderPropertyConstraintCollection IProviderPropertyConstraintCollection; + +#endif /* __IProviderPropertyConstraintCollection_FWD_DEFINED__ */ + + +#ifndef __IFunctionDiscoveryServiceProvider_FWD_DEFINED__ +#define __IFunctionDiscoveryServiceProvider_FWD_DEFINED__ +typedef interface IFunctionDiscoveryServiceProvider IFunctionDiscoveryServiceProvider; + +#endif /* __IFunctionDiscoveryServiceProvider_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "propsys.h" +#include "FunctionDiscoveryAPI.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_functiondiscoveryprovider_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_functiondiscoveryprovider_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_functiondiscoveryprovider_0000_0000_v0_0_s_ifspec; + +#ifndef __IFunctionDiscoveryProvider_INTERFACE_DEFINED__ +#define __IFunctionDiscoveryProvider_INTERFACE_DEFINED__ + +/* interface IFunctionDiscoveryProvider */ +/* [restricted][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFunctionDiscoveryProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("dcde394f-1478-4813-a402-f6fb10657222") + IFunctionDiscoveryProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IFunctionDiscoveryProviderFactory *pIFunctionDiscoveryProviderFactory, + /* [in] */ __RPC__in_opt IFunctionDiscoveryNotification *pIFunctionDiscoveryNotification, + /* [in] */ LCID lcidUserDefault, + /* [out] */ __RPC__out DWORD *pdwStgAccessCapabilities) = 0; + + virtual HRESULT STDMETHODCALLTYPE Query( + /* [in] */ __RPC__in_opt IFunctionDiscoveryProviderQuery *pIFunctionDiscoveryProviderQuery, + /* [out] */ __RPC__deref_out_opt IFunctionInstanceCollection **ppIFunctionInstanceCollection) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndQuery( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE InstancePropertyStoreValidateAccess( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ const DWORD dwStgAccess) = 0; + + virtual HRESULT STDMETHODCALLTYPE InstancePropertyStoreOpen( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ const DWORD dwStgAccess, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppIPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE InstancePropertyStoreFlush( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext) = 0; + + virtual HRESULT STDMETHODCALLTYPE InstanceQueryService( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ __RPC__in REFGUID guidService, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt IUnknown **ppIUnknown) = 0; + + virtual HRESULT STDMETHODCALLTYPE InstanceReleased( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFunctionDiscoveryProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFunctionDiscoveryProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFunctionDiscoveryProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFunctionDiscoveryProvider * This); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProvider, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IFunctionDiscoveryProvider * This, + /* [in] */ __RPC__in_opt IFunctionDiscoveryProviderFactory *pIFunctionDiscoveryProviderFactory, + /* [in] */ __RPC__in_opt IFunctionDiscoveryNotification *pIFunctionDiscoveryNotification, + /* [in] */ LCID lcidUserDefault, + /* [out] */ __RPC__out DWORD *pdwStgAccessCapabilities); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProvider, Query) + HRESULT ( STDMETHODCALLTYPE *Query )( + __RPC__in IFunctionDiscoveryProvider * This, + /* [in] */ __RPC__in_opt IFunctionDiscoveryProviderQuery *pIFunctionDiscoveryProviderQuery, + /* [out] */ __RPC__deref_out_opt IFunctionInstanceCollection **ppIFunctionInstanceCollection); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProvider, EndQuery) + HRESULT ( STDMETHODCALLTYPE *EndQuery )( + __RPC__in IFunctionDiscoveryProvider * This); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProvider, InstancePropertyStoreValidateAccess) + HRESULT ( STDMETHODCALLTYPE *InstancePropertyStoreValidateAccess )( + __RPC__in IFunctionDiscoveryProvider * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ const DWORD dwStgAccess); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProvider, InstancePropertyStoreOpen) + HRESULT ( STDMETHODCALLTYPE *InstancePropertyStoreOpen )( + __RPC__in IFunctionDiscoveryProvider * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ const DWORD dwStgAccess, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppIPropertyStore); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProvider, InstancePropertyStoreFlush) + HRESULT ( STDMETHODCALLTYPE *InstancePropertyStoreFlush )( + __RPC__in IFunctionDiscoveryProvider * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProvider, InstanceQueryService) + HRESULT ( STDMETHODCALLTYPE *InstanceQueryService )( + __RPC__in IFunctionDiscoveryProvider * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ __RPC__in REFGUID guidService, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt IUnknown **ppIUnknown); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProvider, InstanceReleased) + HRESULT ( STDMETHODCALLTYPE *InstanceReleased )( + __RPC__in IFunctionDiscoveryProvider * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext); + + END_INTERFACE + } IFunctionDiscoveryProviderVtbl; + + interface IFunctionDiscoveryProvider + { + CONST_VTBL struct IFunctionDiscoveryProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFunctionDiscoveryProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFunctionDiscoveryProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFunctionDiscoveryProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFunctionDiscoveryProvider_Initialize(This,pIFunctionDiscoveryProviderFactory,pIFunctionDiscoveryNotification,lcidUserDefault,pdwStgAccessCapabilities) \ + ( (This)->lpVtbl -> Initialize(This,pIFunctionDiscoveryProviderFactory,pIFunctionDiscoveryNotification,lcidUserDefault,pdwStgAccessCapabilities) ) + +#define IFunctionDiscoveryProvider_Query(This,pIFunctionDiscoveryProviderQuery,ppIFunctionInstanceCollection) \ + ( (This)->lpVtbl -> Query(This,pIFunctionDiscoveryProviderQuery,ppIFunctionInstanceCollection) ) + +#define IFunctionDiscoveryProvider_EndQuery(This) \ + ( (This)->lpVtbl -> EndQuery(This) ) + +#define IFunctionDiscoveryProvider_InstancePropertyStoreValidateAccess(This,pIFunctionInstance,iProviderInstanceContext,dwStgAccess) \ + ( (This)->lpVtbl -> InstancePropertyStoreValidateAccess(This,pIFunctionInstance,iProviderInstanceContext,dwStgAccess) ) + +#define IFunctionDiscoveryProvider_InstancePropertyStoreOpen(This,pIFunctionInstance,iProviderInstanceContext,dwStgAccess,ppIPropertyStore) \ + ( (This)->lpVtbl -> InstancePropertyStoreOpen(This,pIFunctionInstance,iProviderInstanceContext,dwStgAccess,ppIPropertyStore) ) + +#define IFunctionDiscoveryProvider_InstancePropertyStoreFlush(This,pIFunctionInstance,iProviderInstanceContext) \ + ( (This)->lpVtbl -> InstancePropertyStoreFlush(This,pIFunctionInstance,iProviderInstanceContext) ) + +#define IFunctionDiscoveryProvider_InstanceQueryService(This,pIFunctionInstance,iProviderInstanceContext,guidService,riid,ppIUnknown) \ + ( (This)->lpVtbl -> InstanceQueryService(This,pIFunctionInstance,iProviderInstanceContext,guidService,riid,ppIUnknown) ) + +#define IFunctionDiscoveryProvider_InstanceReleased(This,pIFunctionInstance,iProviderInstanceContext) \ + ( (This)->lpVtbl -> InstanceReleased(This,pIFunctionInstance,iProviderInstanceContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFunctionDiscoveryProvider_INTERFACE_DEFINED__ */ + + +#ifndef __IProviderProperties_INTERFACE_DEFINED__ +#define __IProviderProperties_INTERFACE_DEFINED__ + +/* interface IProviderProperties */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IProviderProperties; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("cf986ea6-3b5f-4c5f-b88a-2f8b20ceef17") + IProviderProperties : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [out] */ __RPC__out DWORD *pdwCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAt( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__out PROPERTYKEY *pKey) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ __RPC__in REFPROPERTYKEY Key, + /* [out] */ __RPC__out PROPVARIANT *ppropVar) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetValue( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ __RPC__in REFPROPERTYKEY Key, + /* [in] */ __RPC__in const PROPVARIANT *ppropVar) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProviderPropertiesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProviderProperties * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProviderProperties * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProviderProperties * This); + + DECLSPEC_XFGVIRT(IProviderProperties, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IProviderProperties * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [out] */ __RPC__out DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IProviderProperties, GetAt) + HRESULT ( STDMETHODCALLTYPE *GetAt )( + __RPC__in IProviderProperties * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__out PROPERTYKEY *pKey); + + DECLSPEC_XFGVIRT(IProviderProperties, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in IProviderProperties * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ __RPC__in REFPROPERTYKEY Key, + /* [out] */ __RPC__out PROPVARIANT *ppropVar); + + DECLSPEC_XFGVIRT(IProviderProperties, SetValue) + HRESULT ( STDMETHODCALLTYPE *SetValue )( + __RPC__in IProviderProperties * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ __RPC__in REFPROPERTYKEY Key, + /* [in] */ __RPC__in const PROPVARIANT *ppropVar); + + END_INTERFACE + } IProviderPropertiesVtbl; + + interface IProviderProperties + { + CONST_VTBL struct IProviderPropertiesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProviderProperties_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProviderProperties_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProviderProperties_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProviderProperties_GetCount(This,pIFunctionInstance,iProviderInstanceContext,pdwCount) \ + ( (This)->lpVtbl -> GetCount(This,pIFunctionInstance,iProviderInstanceContext,pdwCount) ) + +#define IProviderProperties_GetAt(This,pIFunctionInstance,iProviderInstanceContext,dwIndex,pKey) \ + ( (This)->lpVtbl -> GetAt(This,pIFunctionInstance,iProviderInstanceContext,dwIndex,pKey) ) + +#define IProviderProperties_GetValue(This,pIFunctionInstance,iProviderInstanceContext,Key,ppropVar) \ + ( (This)->lpVtbl -> GetValue(This,pIFunctionInstance,iProviderInstanceContext,Key,ppropVar) ) + +#define IProviderProperties_SetValue(This,pIFunctionInstance,iProviderInstanceContext,Key,ppropVar) \ + ( (This)->lpVtbl -> SetValue(This,pIFunctionInstance,iProviderInstanceContext,Key,ppropVar) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProviderProperties_INTERFACE_DEFINED__ */ + + +#ifndef __IProviderPublishing_INTERFACE_DEFINED__ +#define __IProviderPublishing_INTERFACE_DEFINED__ + +/* interface IProviderPublishing */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IProviderPublishing; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CD1B9A04-206C-4a05-A0C8-1635A21A2B7C") + IProviderPublishing : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateInstance( + /* [in] */ SystemVisibilityFlags enumVisibilityFlags, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [string][in] */ __RPC__in_string const WCHAR *pszProviderInstanceIdentity, + /* [out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoveInstance( + /* [in] */ SystemVisibilityFlags enumVisibilityFlags, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [string][in] */ __RPC__in_string const WCHAR *pszProviderInstanceIdentity) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProviderPublishingVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProviderPublishing * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProviderPublishing * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProviderPublishing * This); + + DECLSPEC_XFGVIRT(IProviderPublishing, CreateInstance) + HRESULT ( STDMETHODCALLTYPE *CreateInstance )( + __RPC__in IProviderPublishing * This, + /* [in] */ SystemVisibilityFlags enumVisibilityFlags, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [string][in] */ __RPC__in_string const WCHAR *pszProviderInstanceIdentity, + /* [out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance); + + DECLSPEC_XFGVIRT(IProviderPublishing, RemoveInstance) + HRESULT ( STDMETHODCALLTYPE *RemoveInstance )( + __RPC__in IProviderPublishing * This, + /* [in] */ SystemVisibilityFlags enumVisibilityFlags, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [string][in] */ __RPC__in_string const WCHAR *pszProviderInstanceIdentity); + + END_INTERFACE + } IProviderPublishingVtbl; + + interface IProviderPublishing + { + CONST_VTBL struct IProviderPublishingVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProviderPublishing_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProviderPublishing_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProviderPublishing_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProviderPublishing_CreateInstance(This,enumVisibilityFlags,pszSubCategory,pszProviderInstanceIdentity,ppIFunctionInstance) \ + ( (This)->lpVtbl -> CreateInstance(This,enumVisibilityFlags,pszSubCategory,pszProviderInstanceIdentity,ppIFunctionInstance) ) + +#define IProviderPublishing_RemoveInstance(This,enumVisibilityFlags,pszSubCategory,pszProviderInstanceIdentity) \ + ( (This)->lpVtbl -> RemoveInstance(This,enumVisibilityFlags,pszSubCategory,pszProviderInstanceIdentity) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProviderPublishing_INTERFACE_DEFINED__ */ + + +#ifndef __IFunctionDiscoveryProviderFactory_INTERFACE_DEFINED__ +#define __IFunctionDiscoveryProviderFactory_INTERFACE_DEFINED__ + +/* interface IFunctionDiscoveryProviderFactory */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFunctionDiscoveryProviderFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("86443ff0-1ad5-4e68-a45a-40c2c329de3b") + IFunctionDiscoveryProviderFactory : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreatePropertyStore( + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppIPropertyStore) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateInstance( + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [string][in] */ __RPC__in_string const WCHAR *pszProviderInstanceIdentity, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ __RPC__in_opt IPropertyStore *pIPropertyStore, + /* [in] */ __RPC__in_opt IFunctionDiscoveryProvider *pIFunctionDiscoveryProvider, + /* [out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateFunctionInstanceCollection( + /* [out] */ __RPC__deref_out_opt IFunctionInstanceCollection **ppIFunctionInstanceCollection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFunctionDiscoveryProviderFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFunctionDiscoveryProviderFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFunctionDiscoveryProviderFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFunctionDiscoveryProviderFactory * This); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProviderFactory, CreatePropertyStore) + HRESULT ( STDMETHODCALLTYPE *CreatePropertyStore )( + __RPC__in IFunctionDiscoveryProviderFactory * This, + /* [out] */ __RPC__deref_out_opt IPropertyStore **ppIPropertyStore); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProviderFactory, CreateInstance) + HRESULT ( STDMETHODCALLTYPE *CreateInstance )( + __RPC__in IFunctionDiscoveryProviderFactory * This, + /* [unique][string][in] */ __RPC__in_opt_string const WCHAR *pszSubCategory, + /* [string][in] */ __RPC__in_string const WCHAR *pszProviderInstanceIdentity, + /* [in] */ INT_PTR iProviderInstanceContext, + /* [in] */ __RPC__in_opt IPropertyStore *pIPropertyStore, + /* [in] */ __RPC__in_opt IFunctionDiscoveryProvider *pIFunctionDiscoveryProvider, + /* [out] */ __RPC__deref_out_opt IFunctionInstance **ppIFunctionInstance); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProviderFactory, CreateFunctionInstanceCollection) + HRESULT ( STDMETHODCALLTYPE *CreateFunctionInstanceCollection )( + __RPC__in IFunctionDiscoveryProviderFactory * This, + /* [out] */ __RPC__deref_out_opt IFunctionInstanceCollection **ppIFunctionInstanceCollection); + + END_INTERFACE + } IFunctionDiscoveryProviderFactoryVtbl; + + interface IFunctionDiscoveryProviderFactory + { + CONST_VTBL struct IFunctionDiscoveryProviderFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFunctionDiscoveryProviderFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFunctionDiscoveryProviderFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFunctionDiscoveryProviderFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFunctionDiscoveryProviderFactory_CreatePropertyStore(This,ppIPropertyStore) \ + ( (This)->lpVtbl -> CreatePropertyStore(This,ppIPropertyStore) ) + +#define IFunctionDiscoveryProviderFactory_CreateInstance(This,pszSubCategory,pszProviderInstanceIdentity,iProviderInstanceContext,pIPropertyStore,pIFunctionDiscoveryProvider,ppIFunctionInstance) \ + ( (This)->lpVtbl -> CreateInstance(This,pszSubCategory,pszProviderInstanceIdentity,iProviderInstanceContext,pIPropertyStore,pIFunctionDiscoveryProvider,ppIFunctionInstance) ) + +#define IFunctionDiscoveryProviderFactory_CreateFunctionInstanceCollection(This,ppIFunctionInstanceCollection) \ + ( (This)->lpVtbl -> CreateFunctionInstanceCollection(This,ppIFunctionInstanceCollection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFunctionDiscoveryProviderFactory_INTERFACE_DEFINED__ */ + + +#ifndef __IFunctionDiscoveryProviderQuery_INTERFACE_DEFINED__ +#define __IFunctionDiscoveryProviderQuery_INTERFACE_DEFINED__ + +/* interface IFunctionDiscoveryProviderQuery */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFunctionDiscoveryProviderQuery; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6876ea98-baec-46db-bc20-75a76e267a3a") + IFunctionDiscoveryProviderQuery : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsInstanceQuery( + /* [out] */ __RPC__out BOOL *pisInstanceQuery, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsSubcategoryQuery( + /* [out] */ __RPC__out BOOL *pisSubcategoryQuery, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetQueryConstraints( + /* [out] */ __RPC__deref_out_opt IProviderQueryConstraintCollection **ppIProviderQueryConstraints) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropertyConstraints( + /* [out] */ __RPC__deref_out_opt IProviderPropertyConstraintCollection **ppIProviderPropertyConstraints) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFunctionDiscoveryProviderQueryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFunctionDiscoveryProviderQuery * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFunctionDiscoveryProviderQuery * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFunctionDiscoveryProviderQuery * This); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProviderQuery, IsInstanceQuery) + HRESULT ( STDMETHODCALLTYPE *IsInstanceQuery )( + __RPC__in IFunctionDiscoveryProviderQuery * This, + /* [out] */ __RPC__out BOOL *pisInstanceQuery, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintValue); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProviderQuery, IsSubcategoryQuery) + HRESULT ( STDMETHODCALLTYPE *IsSubcategoryQuery )( + __RPC__in IFunctionDiscoveryProviderQuery * This, + /* [out] */ __RPC__out BOOL *pisSubcategoryQuery, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintValue); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProviderQuery, GetQueryConstraints) + HRESULT ( STDMETHODCALLTYPE *GetQueryConstraints )( + __RPC__in IFunctionDiscoveryProviderQuery * This, + /* [out] */ __RPC__deref_out_opt IProviderQueryConstraintCollection **ppIProviderQueryConstraints); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryProviderQuery, GetPropertyConstraints) + HRESULT ( STDMETHODCALLTYPE *GetPropertyConstraints )( + __RPC__in IFunctionDiscoveryProviderQuery * This, + /* [out] */ __RPC__deref_out_opt IProviderPropertyConstraintCollection **ppIProviderPropertyConstraints); + + END_INTERFACE + } IFunctionDiscoveryProviderQueryVtbl; + + interface IFunctionDiscoveryProviderQuery + { + CONST_VTBL struct IFunctionDiscoveryProviderQueryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFunctionDiscoveryProviderQuery_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFunctionDiscoveryProviderQuery_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFunctionDiscoveryProviderQuery_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFunctionDiscoveryProviderQuery_IsInstanceQuery(This,pisInstanceQuery,ppszConstraintValue) \ + ( (This)->lpVtbl -> IsInstanceQuery(This,pisInstanceQuery,ppszConstraintValue) ) + +#define IFunctionDiscoveryProviderQuery_IsSubcategoryQuery(This,pisSubcategoryQuery,ppszConstraintValue) \ + ( (This)->lpVtbl -> IsSubcategoryQuery(This,pisSubcategoryQuery,ppszConstraintValue) ) + +#define IFunctionDiscoveryProviderQuery_GetQueryConstraints(This,ppIProviderQueryConstraints) \ + ( (This)->lpVtbl -> GetQueryConstraints(This,ppIProviderQueryConstraints) ) + +#define IFunctionDiscoveryProviderQuery_GetPropertyConstraints(This,ppIProviderPropertyConstraints) \ + ( (This)->lpVtbl -> GetPropertyConstraints(This,ppIProviderPropertyConstraints) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFunctionDiscoveryProviderQuery_INTERFACE_DEFINED__ */ + + +#ifndef __IProviderQueryConstraintCollection_INTERFACE_DEFINED__ +#define __IProviderQueryConstraintCollection_INTERFACE_DEFINED__ + +/* interface IProviderQueryConstraintCollection */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IProviderQueryConstraintCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9c243e11-3261-4bcd-b922-84a873d460ae") + IProviderQueryConstraintCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out DWORD *pdwCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Get( + /* [string][in] */ __RPC__in_string const WCHAR *pszConstraintName, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Item( + /* [in] */ DWORD dwIndex, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintName, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintName, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProviderQueryConstraintCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProviderQueryConstraintCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProviderQueryConstraintCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProviderQueryConstraintCollection * This); + + DECLSPEC_XFGVIRT(IProviderQueryConstraintCollection, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IProviderQueryConstraintCollection * This, + /* [out] */ __RPC__out DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IProviderQueryConstraintCollection, Get) + HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IProviderQueryConstraintCollection * This, + /* [string][in] */ __RPC__in_string const WCHAR *pszConstraintName, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintValue); + + DECLSPEC_XFGVIRT(IProviderQueryConstraintCollection, Item) + HRESULT ( STDMETHODCALLTYPE *Item )( + __RPC__in IProviderQueryConstraintCollection * This, + /* [in] */ DWORD dwIndex, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintName, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintValue); + + DECLSPEC_XFGVIRT(IProviderQueryConstraintCollection, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IProviderQueryConstraintCollection * This, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintName, + /* [string][out] */ __RPC__deref_out_opt_string WCHAR **ppszConstraintValue); + + DECLSPEC_XFGVIRT(IProviderQueryConstraintCollection, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IProviderQueryConstraintCollection * This); + + DECLSPEC_XFGVIRT(IProviderQueryConstraintCollection, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IProviderQueryConstraintCollection * This); + + END_INTERFACE + } IProviderQueryConstraintCollectionVtbl; + + interface IProviderQueryConstraintCollection + { + CONST_VTBL struct IProviderQueryConstraintCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProviderQueryConstraintCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProviderQueryConstraintCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProviderQueryConstraintCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProviderQueryConstraintCollection_GetCount(This,pdwCount) \ + ( (This)->lpVtbl -> GetCount(This,pdwCount) ) + +#define IProviderQueryConstraintCollection_Get(This,pszConstraintName,ppszConstraintValue) \ + ( (This)->lpVtbl -> Get(This,pszConstraintName,ppszConstraintValue) ) + +#define IProviderQueryConstraintCollection_Item(This,dwIndex,ppszConstraintName,ppszConstraintValue) \ + ( (This)->lpVtbl -> Item(This,dwIndex,ppszConstraintName,ppszConstraintValue) ) + +#define IProviderQueryConstraintCollection_Next(This,ppszConstraintName,ppszConstraintValue) \ + ( (This)->lpVtbl -> Next(This,ppszConstraintName,ppszConstraintValue) ) + +#define IProviderQueryConstraintCollection_Skip(This) \ + ( (This)->lpVtbl -> Skip(This) ) + +#define IProviderQueryConstraintCollection_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProviderQueryConstraintCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IProviderPropertyConstraintCollection_INTERFACE_DEFINED__ +#define __IProviderPropertyConstraintCollection_INTERFACE_DEFINED__ + +/* interface IProviderPropertyConstraintCollection */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IProviderPropertyConstraintCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f4fae42f-5778-4a13-8540-b5fd8c1398dd") + IProviderPropertyConstraintCollection : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ __RPC__out DWORD *pdwCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE Get( + /* [in] */ __RPC__in REFPROPERTYKEY Key, + /* [out] */ __RPC__out PROPVARIANT *pPropVar, + /* [out] */ __RPC__out DWORD *pdwPropertyConstraint) = 0; + + virtual HRESULT STDMETHODCALLTYPE Item( + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__out PROPERTYKEY *pKey, + /* [out] */ __RPC__out PROPVARIANT *pPropVar, + /* [out] */ __RPC__out DWORD *pdwPropertyConstraint) = 0; + + virtual HRESULT STDMETHODCALLTYPE Next( + /* [out] */ __RPC__out PROPERTYKEY *pKey, + /* [out] */ __RPC__out PROPVARIANT *pPropVar, + /* [out] */ __RPC__out DWORD *pdwPropertyConstraint) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProviderPropertyConstraintCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProviderPropertyConstraintCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProviderPropertyConstraintCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProviderPropertyConstraintCollection * This); + + DECLSPEC_XFGVIRT(IProviderPropertyConstraintCollection, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + __RPC__in IProviderPropertyConstraintCollection * This, + /* [out] */ __RPC__out DWORD *pdwCount); + + DECLSPEC_XFGVIRT(IProviderPropertyConstraintCollection, Get) + HRESULT ( STDMETHODCALLTYPE *Get )( + __RPC__in IProviderPropertyConstraintCollection * This, + /* [in] */ __RPC__in REFPROPERTYKEY Key, + /* [out] */ __RPC__out PROPVARIANT *pPropVar, + /* [out] */ __RPC__out DWORD *pdwPropertyConstraint); + + DECLSPEC_XFGVIRT(IProviderPropertyConstraintCollection, Item) + HRESULT ( STDMETHODCALLTYPE *Item )( + __RPC__in IProviderPropertyConstraintCollection * This, + /* [in] */ DWORD dwIndex, + /* [out] */ __RPC__out PROPERTYKEY *pKey, + /* [out] */ __RPC__out PROPVARIANT *pPropVar, + /* [out] */ __RPC__out DWORD *pdwPropertyConstraint); + + DECLSPEC_XFGVIRT(IProviderPropertyConstraintCollection, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IProviderPropertyConstraintCollection * This, + /* [out] */ __RPC__out PROPERTYKEY *pKey, + /* [out] */ __RPC__out PROPVARIANT *pPropVar, + /* [out] */ __RPC__out DWORD *pdwPropertyConstraint); + + DECLSPEC_XFGVIRT(IProviderPropertyConstraintCollection, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IProviderPropertyConstraintCollection * This); + + DECLSPEC_XFGVIRT(IProviderPropertyConstraintCollection, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IProviderPropertyConstraintCollection * This); + + END_INTERFACE + } IProviderPropertyConstraintCollectionVtbl; + + interface IProviderPropertyConstraintCollection + { + CONST_VTBL struct IProviderPropertyConstraintCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProviderPropertyConstraintCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProviderPropertyConstraintCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProviderPropertyConstraintCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProviderPropertyConstraintCollection_GetCount(This,pdwCount) \ + ( (This)->lpVtbl -> GetCount(This,pdwCount) ) + +#define IProviderPropertyConstraintCollection_Get(This,Key,pPropVar,pdwPropertyConstraint) \ + ( (This)->lpVtbl -> Get(This,Key,pPropVar,pdwPropertyConstraint) ) + +#define IProviderPropertyConstraintCollection_Item(This,dwIndex,pKey,pPropVar,pdwPropertyConstraint) \ + ( (This)->lpVtbl -> Item(This,dwIndex,pKey,pPropVar,pdwPropertyConstraint) ) + +#define IProviderPropertyConstraintCollection_Next(This,pKey,pPropVar,pdwPropertyConstraint) \ + ( (This)->lpVtbl -> Next(This,pKey,pPropVar,pdwPropertyConstraint) ) + +#define IProviderPropertyConstraintCollection_Skip(This) \ + ( (This)->lpVtbl -> Skip(This) ) + +#define IProviderPropertyConstraintCollection_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProviderPropertyConstraintCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IFunctionDiscoveryServiceProvider_INTERFACE_DEFINED__ +#define __IFunctionDiscoveryServiceProvider_INTERFACE_DEFINED__ + +/* interface IFunctionDiscoveryServiceProvider */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IFunctionDiscoveryServiceProvider; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4c81ed02-1b04-43f2-a451-69966cbcd1c2") + IFunctionDiscoveryServiceProvider : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ __RPC__in REFIID riid, + /* [retval][iid_is][out] */ __RPC__deref_out_opt void **ppv) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFunctionDiscoveryServiceProviderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFunctionDiscoveryServiceProvider * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFunctionDiscoveryServiceProvider * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFunctionDiscoveryServiceProvider * This); + + DECLSPEC_XFGVIRT(IFunctionDiscoveryServiceProvider, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IFunctionDiscoveryServiceProvider * This, + /* [in] */ __RPC__in_opt IFunctionInstance *pIFunctionInstance, + /* [in] */ __RPC__in REFIID riid, + /* [retval][iid_is][out] */ __RPC__deref_out_opt void **ppv); + + END_INTERFACE + } IFunctionDiscoveryServiceProviderVtbl; + + interface IFunctionDiscoveryServiceProvider + { + CONST_VTBL struct IFunctionDiscoveryServiceProviderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFunctionDiscoveryServiceProvider_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFunctionDiscoveryServiceProvider_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFunctionDiscoveryServiceProvider_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFunctionDiscoveryServiceProvider_Initialize(This,pIFunctionInstance,riid,ppv) \ + ( (This)->lpVtbl -> Initialize(This,pIFunctionInstance,riid,ppv) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFunctionDiscoveryServiceProvider_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_functiondiscoveryprovider_0000_0008 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_functiondiscoveryprovider_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_functiondiscoveryprovider_0000_0008_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryprovider.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryprovider.idl new file mode 100644 index 0000000000000000000000000000000000000000..0537a8788c849c12e8d77090374d8e2b56fad116 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryprovider.idl @@ -0,0 +1,254 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "propsys.idl"; +import "FunctionDiscoveryAPI.idl"; + +interface IFunctionDiscoveryProviderFactory; +interface IFunctionDiscoveryProviderQuery; +interface IProviderQueryConstraintCollection; +interface IProviderPropertyConstraintCollection; + +///////////////////////////////////////////////////////////////////////////// +// +// The following interfaces are implemented by discovery providers only. +// Only the IFunctionDiscoveryProvider interface is required. +// +///////////////////////////////////////////////////////////////////////////// + +[ + object, + uuid(dcde394f-1478-4813-a402-f6fb10657222), + helpstring("IFunctionDiscoveryProvider Interface"), + pointer_default(unique), + restricted +] +interface IFunctionDiscoveryProvider : IUnknown +{ + HRESULT Initialize( + [in] IFunctionDiscoveryProviderFactory * pIFunctionDiscoveryProviderFactory, + [in] IFunctionDiscoveryNotification * pIFunctionDiscoveryNotification, + [in] LCID lcidUserDefault, + [out] DWORD * pdwStgAccessCapabilities ); // if -1 - InstancePropertyStoreValidateAccess will be used for each FI + HRESULT Query( + [in] IFunctionDiscoveryProviderQuery * pIFunctionDiscoveryProviderQuery, + [out] IFunctionInstanceCollection ** ppIFunctionInstanceCollection ); + HRESULT EndQuery(); + HRESULT InstancePropertyStoreValidateAccess( + [in] IFunctionInstance * pIFunctionInstance, + [in] INT_PTR iProviderInstanceContext, + [in] const DWORD dwStgAccess ); + HRESULT InstancePropertyStoreOpen( + [in] IFunctionInstance * pIFunctionInstance, + [in] INT_PTR iProviderInstanceContext, + [in] const DWORD dwStgAccess, + [out] IPropertyStore ** ppIPropertyStore ); + HRESULT InstancePropertyStoreFlush( + [in] IFunctionInstance * pIFunctionInstance, + [in] INT_PTR iProviderInstanceContext ); + HRESULT InstanceQueryService( + [in] IFunctionInstance * pIFunctionInstance, + [in] INT_PTR iProviderInstanceContext, + [in] REFGUID guidService, + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppIUnknown ); + HRESULT InstanceReleased( + [in] IFunctionInstance * pIFunctionInstance, + [in] INT_PTR iProviderInstanceContext ); +}; + + +// Providers that want to directly impement a property store may do so by implementing this interface. +// All calls to the API-exposed property store will go directly to the provider. +// +// If a provider does not implement this interface, then the provider must provide a property store +// at CreatingInstance time or as a last resort in response to InstanceOpenPropertyStore. +[ + object, + uuid(cf986ea6-3b5f-4c5f-b88a-2f8b20ceef17), + helpstring("IProviderProperties Interface"), + pointer_default(unique) +] +interface IProviderProperties : IUnknown +{ + HRESULT GetCount( + [in] IFunctionInstance * pIFunctionInstance, + [in] INT_PTR iProviderInstanceContext, + [out] DWORD * pdwCount ); + HRESULT GetAt( + [in] IFunctionInstance * pIFunctionInstance, + [in] INT_PTR iProviderInstanceContext, + [in] DWORD dwIndex, + [out] PROPERTYKEY * pKey ); + HRESULT GetValue( + [in] IFunctionInstance * pIFunctionInstance, + [in] INT_PTR iProviderInstanceContext, + [in] REFPROPERTYKEY Key, + [out] PROPVARIANT * ppropVar ); + HRESULT SetValue( + [in] IFunctionInstance * pIFunctionInstance, + [in] INT_PTR iProviderInstanceContext, + [in] REFPROPERTYKEY Key, + [in] const PROPVARIANT * ppropVar ); +} + +// Providers that want to impement Function Instance Add and Remove (IFunctionDiscovery::AddInstance/RemoveInstance) +// may do so by implementing this interface. +[ + object, + uuid(CD1B9A04-206C-4a05-A0C8-1635A21A2B7C), + helpstring("IProviderPublishing Interface"), + pointer_default(unique) +] +interface IProviderPublishing : IUnknown +{ + HRESULT CreateInstance( + [in] SystemVisibilityFlags enumVisibilityFlags, + [in, string, unique] const WCHAR * pszSubCategory, + [in, string] const WCHAR * pszProviderInstanceIdentity, + [out] IFunctionInstance ** ppIFunctionInstance ); + HRESULT RemoveInstance( + [in] SystemVisibilityFlags enumVisibilityFlags, + [in, string, unique] const WCHAR * pszSubCategory, + [in, string] const WCHAR * pszProviderInstanceIdentity ); +} + +///////////////////////////////////////////////////////////////////////////// +// +// The following interfaces are used by discovery providers only. +// The will be passed to the provider by Function Discovery or +// accessible from FD interfaces passed to the provider. +// +///////////////////////////////////////////////////////////////////////////// + +[ + object, + uuid(86443ff0-1ad5-4e68-a45a-40c2c329de3b), + helpstring("IFunctionDiscoveryProviderFactory Interface"), + pointer_default(unique) +] +interface IFunctionDiscoveryProviderFactory : IUnknown +{ + // Property Store is CoCreateable so this is redundant if inproc but for providers that are out of proc + // this should be used to ensure the Property Store lives in the client process + HRESULT CreatePropertyStore( + [out] IPropertyStore ** ppIPropertyStore ); + HRESULT CreateInstance( + [in, string, unique] const WCHAR * pszSubCategory, + [in, string] const WCHAR * pszProviderInstanceIdentity, + [in] INT_PTR iProviderInstanceContext, + [in] IPropertyStore * pIPropertyStore, // Can be NULL + // Pointer to yourself (the provider), because the Factory can not own the refcount to the provider it would create a cicular refcounting issue. + [in] IFunctionDiscoveryProvider * pIFunctionDiscoveryProvider, + [out] IFunctionInstance ** ppIFunctionInstance ); + // Function Instance Collection is CoCreateable so this is redundant if inproc but for providers that are out of proc + // this should be used to ensure the Property Store lives in the client process + HRESULT CreateFunctionInstanceCollection( + [out] IFunctionInstanceCollection ** ppIFunctionInstanceCollection ); + +}; + +[ + object, + uuid(6876ea98-baec-46db-bc20-75a76e267a3a), + helpstring("IFunctionDiscoveryProviderQuery Interface"), + pointer_default(unique) +] +interface IFunctionDiscoveryProviderQuery : IUnknown +{ + HRESULT IsInstanceQuery( + [out] BOOL *pisInstanceQuery, + [out, string] WCHAR ** ppszConstraintValue ); + HRESULT IsSubcategoryQuery( + [out] BOOL *pisSubcategoryQuery, + [out, string] WCHAR ** ppszConstraintValue ); + HRESULT GetQueryConstraints( + [out] IProviderQueryConstraintCollection ** ppIProviderQueryConstraints ); + HRESULT GetPropertyConstraints( + [out] IProviderPropertyConstraintCollection ** ppIProviderPropertyConstraints ); +}; + +[ + object, + uuid(9c243e11-3261-4bcd-b922-84a873d460ae), + helpstring("IProviderQueryConstraintCollection Interface"), + pointer_default(unique) +] +interface IProviderQueryConstraintCollection : IUnknown +{ + HRESULT GetCount( + [out] DWORD * pdwCount ); + HRESULT Get( + [in, string] const WCHAR * pszConstraintName, + [out, string] WCHAR ** ppszConstraintValue ); + HRESULT Item( + [in] DWORD dwIndex, + [out, string] WCHAR ** ppszConstraintName, + [out, string] WCHAR ** ppszConstraintValue ); + HRESULT Next( + [out, string] WCHAR ** ppszConstraintName, + [out, string] WCHAR ** ppszConstraintValue ); + HRESULT Skip( ); + HRESULT Reset( ); +}; + +[ + object, + uuid(f4fae42f-5778-4a13-8540-b5fd8c1398dd), + helpstring("IProviderPropertyConstraintCollection Interface"), + pointer_default(unique) +] +interface IProviderPropertyConstraintCollection : IUnknown +{ + HRESULT GetCount( + [out] DWORD * pdwCount ); + HRESULT Get( + [in] REFPROPERTYKEY Key, + [out] PROPVARIANT * pPropVar, + [out] DWORD * pdwPropertyConstraint ); + HRESULT Item( + [in] DWORD dwIndex, + [out] PROPERTYKEY *pKey, + [out] PROPVARIANT * pPropVar, + [out] DWORD * pdwPropertyConstraint ); + HRESULT Next ( + [out] PROPERTYKEY *pKey, + [out] PROPVARIANT * pPropVar, + [out] DWORD * pdwPropertyConstraint ); + HRESULT Skip( ); + HRESULT Reset( ); +}; + +///////////////////////////////////////////////////////////////////////////// +// +// The following interface is implemented by Service Provider objects. +// Note: Providers can also be Service Providers. +// +///////////////////////////////////////////////////////////////////////////// + +[ + object, + uuid(4c81ed02-1b04-43f2-a451-69966cbcd1c2), + helpstring("IFunctionDiscoveryServiceProvider Interface"), + pointer_default(unique), +] +interface IFunctionDiscoveryServiceProvider : IUnknown +{ + HRESULT Initialize( + [in] IFunctionInstance * pIFunctionInstance, + [in] REFIID riid, + [out, iid_is(riid), retval] void ** ppv ); +} + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryproviderhelper.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryproviderhelper.h new file mode 100644 index 0000000000000000000000000000000000000000..d20e9adfacaf55120a17d4c63af562351d536a33 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryproviderhelper.h @@ -0,0 +1,271 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +class CFDProviderHelper +{ +public: + CFDProviderHelper() : m_hToken(NULL), m_dwSessionId((DWORD) -1) + { + InitializeSRWLock(&srwTokenLock); + } + ~CFDProviderHelper() + { + if ( NULL != m_hToken ) + CloseHandle( m_hToken ); + } + +// Implementation +public: + ///////////////////////////////////////////////////////////////////////////// + // CoSetProxyBlanket + // + // Purpose: + // If the provider is running in a process that doesn't have permissions + // to call back into the client process by default then CoSetProxyBlanket + // must be called to enable impersonation. + // This function wraps the necessary calls and provides the correct CoSetProxyBlanket + // parameters in a single function. + // + // Arguments: + // pIUnk: Interface proxy to enable callbacks on + // + // Returns: S_OK on success, appropriate HRESULT otherwise + static HRESULT CoSetProxyBlanket( IUnknown *pIUnk ) + { + HRESULT hr = S_OK; + IUnknown* pRealUnknown; + + // Try to see if it's a COM proxy. If so, see if it's local to the process or a remote COM proxy. + // If it's remote, set the proxy blanket + ULONG_PTR ulRpcOptions = GetRpcOptions( pIUnk ); + + if ( SERVER_LOCALITY_PROCESS_LOCAL != ulRpcOptions ) + { + hr = CoImpersonateClient(); + if ( S_OK == hr ) + { + hr = pIUnk->QueryInterface(IID_IUnknown, (LPVOID*)&pRealUnknown ); + if ( S_OK == hr ) + { + hr = ::CoSetProxyBlanket( pRealUnknown, RPC_C_AUTHN_DEFAULT, RPC_C_AUTHZ_NONE, COLE_DEFAULT_PRINCIPAL, RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_STATIC_CLOAKING ); + if ( S_OK == hr ) + { + hr = ::CoSetProxyBlanket( pIUnk, RPC_C_AUTHN_DEFAULT, RPC_C_AUTHZ_NONE, COLE_DEFAULT_PRINCIPAL, + RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_STATIC_CLOAKING ); + } + if ( E_NOINTERFACE == hr ) + hr = S_OK; // Provider can end up being inproc if we are in the fdPHost process. Ignore error and try to proceed. + + pRealUnknown->Release(); + } + if ( S_OK == hr ) + hr = CoRevertToSelf(); + else + CoRevertToSelf(); // Don't want the return code + } + } + + return hr; + } + + ///////////////////////////////////////////////////////////////////////////// + // CoSetProxyBlanketWithThreadToken + // + // Purpose: + // If the provider is running in a process that doesn't have permissions + // to call back into the client process by default then CoSetProxyBlanket + // must be called to enable impersonation. + // This function wraps the necessary calls to CoSetProxyBlanket if the + // provider thread is from a thread pool instead of a thread called directly + // by FD. + // If you want to use this method you must call Initialize on the class instance. + // This is best done in IFunctionDiscoveryProvider::Initialize. + // Initialize must be called from one of the methods called by the client process. + // + // Arguments: + // pIUnk: Interface proxy to enable callbacks on + // + // Returns: S_OK on success, appropriate HRESULT otherwise + HRESULT CoSetProxyBlanketWithThreadToken( IUnknown *pIUnk ) + { + if ( NULL == m_hToken ) + return S_OK; + IUnknown* pRealUnknown; + + HRESULT hr = S_OK; + + AcquireSRWLockShared(&srwTokenLock); + if ( !SetThreadToken( NULL, m_hToken )) + hr = HRESULT_FROM_WIN32( GetLastError() ); + ReleaseSRWLockShared(&srwTokenLock); + + if ( S_OK == hr ) + { + hr = pIUnk->QueryInterface(IID_IUnknown, (LPVOID*)&pRealUnknown ); + if ( S_OK == hr ) + { + hr = ::CoSetProxyBlanket( pRealUnknown, RPC_C_AUTHN_DEFAULT, RPC_C_AUTHZ_NONE, COLE_DEFAULT_PRINCIPAL, RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_STATIC_CLOAKING ); + if (S_OK == hr) + hr = ::CoSetProxyBlanket( pIUnk, RPC_C_AUTHN_DEFAULT, RPC_C_AUTHZ_NONE, COLE_DEFAULT_PRINCIPAL, RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_STATIC_CLOAKING ); + if ( E_NOINTERFACE == hr ) + hr = S_OK; // Provider can end up being inproc if we are in the fdPHost process. Ignore error and try to proceed. + + pRealUnknown->Release(); + } + if ( !SetThreadToken( NULL, NULL )) + { + if ( S_OK == hr ) + hr = HRESULT_FROM_WIN32( GetLastError() ); + } + } + + return hr; + } + + ///////////////////////////////////////////////////////////////////////////// + // Initialize + // + // Purpose: + // If the provider is running in a process that doesn't have permissions + // to call back into the client process by default then CoSetProxyBlanket + // must be called to enable impersonation. + // CoSetProxyBlanketWithThreadToken wraps the calls necessary to do this. + // Before using that function you must call Initialize on the class instance. + // This is best done in IFunctionDiscoveryProvider::Initialize. + // Initialize must be called from one of the methods called by the client process. + // + // Note: There are three cases we we will not impersonate + // 1. If the caller is Local System we will not impersonate and subsequent + // calls to CoSetProxyBlanketWithThreadToken will effectively noop + // 2. Similary if the provider is actually running in-proc no proxy blanket + // is required and CoImpersonateClient will fail with: + // Code=0x80010117 (2147549463): RPC_E_CALL_COMPLETE: "Call context cannot be accessed after call completed." + // Severity=FAILURE; Code=279 (0x117); Facility=1 (0x1) (FACILITY_RPC) + // Handle this case gracefully and effectively noop on the + // CoSetProxyBlanketWithThreadToken as well. + // 3. If we get an inproc proxy to the provider we detect that and subsequent + // calls to CoSetProxyBlanketWithThreadToken will effectively noop. + // + // Returns: S_OK on success, appropriate HRESULT otherwise + HRESULT Initialize( IUnknown *pIUnk ) + { + if ( NULL != m_hToken ) + return S_FALSE; + + const SID LOCAL_SYSTEM_SID = { SID_REVISION, 1, {0,0,0,0,0,5}, SECURITY_LOCAL_SYSTEM_RID }; + + HRESULT hr = CoImpersonateClient(); + + if ( S_OK == hr ) + { + BOOL isLocalSystem = FALSE; + BOOL isLocalCall = (GetRpcOptions( pIUnk ) == SERVER_LOCALITY_PROCESS_LOCAL); + + if (!isLocalCall) + { + if ( !CheckTokenMembership( NULL, (PSID)&LOCAL_SYSTEM_SID, &isLocalSystem )) + { + hr = HRESULT_FROM_WIN32( GetLastError() ); + } + } + + // Only save the impersonation info if + // this is not a local call, and the caller is not System. + if ( (S_OK == hr) && (!isLocalCall) && (!isLocalSystem) ) + { + AcquireSRWLockExclusive(&srwTokenLock); + if ( !OpenThreadToken( GetCurrentThread(), TOKEN_IMPERSONATE | TOKEN_QUERY, FALSE, &m_hToken )) + hr = HRESULT_FROM_WIN32( GetLastError() ); + if ( S_OK == hr ) + { + DWORD dwSizeReturned; + if ( !GetTokenInformation(m_hToken, TokenSessionId, &m_dwSessionId, sizeof(m_dwSessionId), &dwSizeReturned )) + hr = HRESULT_FROM_WIN32( GetLastError() ); + } + ReleaseSRWLockExclusive(&srwTokenLock); + } + if ( S_OK == hr ) + hr = CoRevertToSelf(); + else + CoRevertToSelf(); // Don't want the return code + } + else if ( RPC_E_CALL_COMPLETE == hr ) + { + hr = S_OK; // InProc + } + + return hr; + } + + BOOL ReleaseToken(DWORD dwSessionId) + { + BOOL bMatch = FALSE; + + AcquireSRWLockExclusive( &srwTokenLock ); + if ( NULL != m_hToken && dwSessionId == m_dwSessionId ) + { + CloseHandle( m_hToken ); + m_hToken = NULL; + bMatch = TRUE; + } + ReleaseSRWLockExclusive( &srwTokenLock ); + + return bMatch; + } + VOID ReleaseToken() + { + AcquireSRWLockExclusive( &srwTokenLock ); + if ( NULL != m_hToken) + { + CloseHandle( m_hToken ); + m_hToken = NULL; + m_dwSessionId = (DWORD) -1; + } + ReleaseSRWLockExclusive( &srwTokenLock ); + } + +// Implementation +protected: + ///////////////////////////////////////////////////////////////////////////// + // GetRpcOptions + // + // Purpose: + // Get the rpc options if this is a proxy. + // + // Arguments: + // pIUnk: Interface proxy. + // + // Returns: ULONG_PTR rpc options on success, assume it's inproc otherwise (SERVER_LOCALITY_PROCESS_LOCAL) + static ULONG_PTR GetRpcOptions( IUnknown *pIUnk ) + { + ULONG_PTR ulOptions = SERVER_LOCALITY_PROCESS_LOCAL; + IRpcOptions* pRpcOptions; + + HRESULT hr = pIUnk->QueryInterface( __uuidof( IRpcOptions ), reinterpret_cast( &pRpcOptions ) ); + if ( S_OK == hr ) + { + hr = pRpcOptions->Query( pIUnk, COMBND_SERVER_LOCALITY, &ulOptions ); + pRpcOptions->Release(); + } + return ulOptions; + } + +// Attributes +protected: + DWORD m_dwSessionId; + HANDLE m_hToken; + SRWLOCK srwTokenLock; +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryserviceids.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryserviceids.h new file mode 100644 index 0000000000000000000000000000000000000000..1dee89610ede7224b8ce1b90fb47949d72dcf7f1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/functiondiscoveryserviceids.h @@ -0,0 +1,27 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +DEFINE_GUID( SID_PnpProvider, 0x8101368e, 0xcabb, 0x4426, 0xac, 0xff, 0x96, 0xc4, 0x10, 0x81, 0x20, 0x00); +DEFINE_GUID( SID_UPnPActivator, 0x0D0D66EB, 0xCF74, 0x4164, 0xB5, 0x2F, 0x08, 0x34, 0x46, 0x72, 0xDD, 0x46); +DEFINE_GUID( SID_EnumInterface, 0x40eab0b9, 0x4d7f, 0x4b53, 0xa3, 0x34, 0x15, 0x81, 0xdd, 0x90, 0x41, 0xf4); +DEFINE_GUID( SID_PNPXPropertyStore, 0xa86530b1, 0x542f, 0x439f, 0xB7, 0x1c, 0xb0, 0x75, 0x6b, 0x13, 0x67, 0x7a); +DEFINE_GUID( SID_PNPXAssociation, 0xcee8ccc9, 0x4f6b, 0x4469, 0xa2, 0x35, 0x5a, 0x22, 0x86, 0x9e, 0xef, 0x03); +DEFINE_GUID( SID_PNPXServiceCollection, 0x439e80ee, 0xa217, 0x4712, 0x9f, 0xa6, 0xde, 0xab, 0xd9, 0xc2, 0xa7, 0x27); +DEFINE_GUID( SID_FDPairingHandler, 0x383b69fa, 0x5486, 0x49da, 0x91, 0xf5, 0xd6, 0x3c, 0x24, 0xc8, 0xe9, 0xd0); +DEFINE_GUID( SID_EnumDeviceFunction, 0x13e0e9e2, 0xc3fa, 0x4e3c, 0x90, 0x6e, 0x64, 0x50, 0x2f, 0xa4, 0xdc, 0x95); +DEFINE_GUID( SID_UnpairProvider, 0x89A502FC,0x857B,0x4698,0xA0,0xB7,0x02,0x71,0x92,0x00,0x2F,0x9E); +DEFINE_GUID( SID_DeviceDisplayStatusManager, 0xf59aa553, 0x8309, 0x46ca, 0x97, 0x36, 0x1a, 0xc3, 0xc6, 0x2d, 0x60, 0x31); +DEFINE_GUID( SID_FunctionDiscoveryProviderRefresh, 0x2b4cbdc9, 0x31c4, 0x40d4, 0xa6, 0x2d, 0x77, 0x2a, 0xa1, 0x74, 0xed, 0x52); +DEFINE_GUID( SID_UninstallDeviceFunction, 0xc920566e, 0x5671, 0x4496, 0x80, 0x25, 0xbf, 0x0b, 0x89, 0xbd, 0x44, 0xcd); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fwpmu.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fwpmu.h new file mode 100644 index 0000000000000000000000000000000000000000..7d953b38138b6bc5812dbcdcb14d2f4c43b8fee6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fwpmu.h @@ -0,0 +1,5410 @@ +/* + Copyright (c) Microsoft Corporation + + SYNOPSIS + + Declares the management portion of the FWP API. +*/ +#include + +#pragma region Desktop Family or AppRuntime Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_APPRUNTIME) + + + +#if (NTDDI_VERSION >= NTDDI_WIN6) + +/////////////////////////////////////////////////////////////////////////////// +// +// GUIDs for built-in layers. +// +/////////////////////////////////////////////////////////////////////////////// + +// c86fd1bf-21cd-497e-a0bb-17425c885c58 +DEFINE_GUID( + FWPM_LAYER_INBOUND_IPPACKET_V4, + 0xc86fd1bf, + 0x21cd, + 0x497e, + 0xa0, 0xbb, 0x17, 0x42, 0x5c, 0x88, 0x5c, 0x58 +); + +// b5a230d0-a8c0-44f2-916e-991b53ded1f7 +DEFINE_GUID( + FWPM_LAYER_INBOUND_IPPACKET_V4_DISCARD, + 0xb5a230d0, + 0xa8c0, + 0x44f2, + 0x91, 0x6e, 0x99, 0x1b, 0x53, 0xde, 0xd1, 0xf7 +); + +// f52032cb-991c-46e7-971d-2601459a91ca +DEFINE_GUID( + FWPM_LAYER_INBOUND_IPPACKET_V6, + 0xf52032cb, + 0x991c, + 0x46e7, + 0x97, 0x1d, 0x26, 0x01, 0x45, 0x9a, 0x91, 0xca +); + +// bb24c279-93b4-47a2-83ad-ae1698b50885 +DEFINE_GUID( + FWPM_LAYER_INBOUND_IPPACKET_V6_DISCARD, + 0xbb24c279, + 0x93b4, + 0x47a2, + 0x83, 0xad, 0xae, 0x16, 0x98, 0xb5, 0x08, 0x85 +); + +// 1e5c9fae-8a84-4135-a331-950b54229ecd +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_IPPACKET_V4, + 0x1e5c9fae, + 0x8a84, + 0x4135, + 0xa3, 0x31, 0x95, 0x0b, 0x54, 0x22, 0x9e, 0xcd +); + +// 08e4bcb5-b647-48f3-953c-e5ddbd03937e +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_IPPACKET_V4_DISCARD, + 0x08e4bcb5, + 0xb647, + 0x48f3, + 0x95, 0x3c, 0xe5, 0xdd, 0xbd, 0x03, 0x93, 0x7e +); + +// a3b3ab6b-3564-488c-9117-f34e82142763 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_IPPACKET_V6, + 0xa3b3ab6b, + 0x3564, + 0x488c, + 0x91, 0x17, 0xf3, 0x4e, 0x82, 0x14, 0x27, 0x63 +); + +// 9513d7c4-a934-49dc-91a7-6ccb80cc02e3 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_IPPACKET_V6_DISCARD, + 0x9513d7c4, + 0xa934, + 0x49dc, + 0x91, 0xa7, 0x6c, 0xcb, 0x80, 0xcc, 0x02, 0xe3 +); + +// a82acc24-4ee1-4ee1-b465-fd1d25cb10a4 +DEFINE_GUID( + FWPM_LAYER_IPFORWARD_V4, + 0xa82acc24, + 0x4ee1, + 0x4ee1, + 0xb4, 0x65, 0xfd, 0x1d, 0x25, 0xcb, 0x10, 0xa4 +); + +// 9e9ea773-2fae-4210-8f17-34129ef369eb +DEFINE_GUID( + FWPM_LAYER_IPFORWARD_V4_DISCARD, + 0x9e9ea773, + 0x2fae, + 0x4210, + 0x8f, 0x17, 0x34, 0x12, 0x9e, 0xf3, 0x69, 0xeb +); + +// 7b964818-19c7-493a-b71f-832c3684d28c +DEFINE_GUID( + FWPM_LAYER_IPFORWARD_V6, + 0x7b964818, + 0x19c7, + 0x493a, + 0xb7, 0x1f, 0x83, 0x2c, 0x36, 0x84, 0xd2, 0x8c +); + +// 31524a5d-1dfe-472f-bb93-518ee945d8a2 +DEFINE_GUID( + FWPM_LAYER_IPFORWARD_V6_DISCARD, + 0x31524a5d, + 0x1dfe, + 0x472f, + 0xbb, 0x93, 0x51, 0x8e, 0xe9, 0x45, 0xd8, 0xa2 +); + +// 5926dfc8-e3cf-4426-a283-dc393f5d0f9d +DEFINE_GUID( + FWPM_LAYER_INBOUND_TRANSPORT_V4, + 0x5926dfc8, + 0xe3cf, + 0x4426, + 0xa2, 0x83, 0xdc, 0x39, 0x3f, 0x5d, 0x0f, 0x9d +); + +// ac4a9833-f69d-4648-b261-6dc84835ef39 +DEFINE_GUID( + FWPM_LAYER_INBOUND_TRANSPORT_V4_DISCARD, + 0xac4a9833, + 0xf69d, + 0x4648, + 0xb2, 0x61, 0x6d, 0xc8, 0x48, 0x35, 0xef, 0x39 +); + +// 634a869f-fc23-4b90-b0c1-bf620a36ae6f +DEFINE_GUID( + FWPM_LAYER_INBOUND_TRANSPORT_V6, + 0x634a869f, + 0xfc23, + 0x4b90, + 0xb0, 0xc1, 0xbf, 0x62, 0x0a, 0x36, 0xae, 0x6f +); + +// 2a6ff955-3b2b-49d2-9848-ad9d72dcaab7 +DEFINE_GUID( + FWPM_LAYER_INBOUND_TRANSPORT_V6_DISCARD, + 0x2a6ff955, + 0x3b2b, + 0x49d2, + 0x98, 0x48, 0xad, 0x9d, 0x72, 0xdc, 0xaa, 0xb7 +); + +// 09e61aea-d214-46e2-9b21-b26b0b2f28c8 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_TRANSPORT_V4, + 0x09e61aea, + 0xd214, + 0x46e2, + 0x9b, 0x21, 0xb2, 0x6b, 0x0b, 0x2f, 0x28, 0xc8 +); + +// c5f10551-bdb0-43d7-a313-50e211f4d68a +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_TRANSPORT_V4_DISCARD, + 0xc5f10551, + 0xbdb0, + 0x43d7, + 0xa3, 0x13, 0x50, 0xe2, 0x11, 0xf4, 0xd6, 0x8a +); + +// e1735bde-013f-4655-b351-a49e15762df0 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_TRANSPORT_V6, + 0xe1735bde, + 0x013f, + 0x4655, + 0xb3, 0x51, 0xa4, 0x9e, 0x15, 0x76, 0x2d, 0xf0 +); + +// f433df69-ccbd-482e-b9b2-57165658c3b3 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_TRANSPORT_V6_DISCARD, + 0xf433df69, + 0xccbd, + 0x482e, + 0xb9, 0xb2, 0x57, 0x16, 0x56, 0x58, 0xc3, 0xb3 +); + +// 3b89653c-c170-49e4-b1cd-e0eeeee19a3e +DEFINE_GUID( + FWPM_LAYER_STREAM_V4, + 0x3b89653c, + 0xc170, + 0x49e4, + 0xb1, 0xcd, 0xe0, 0xee, 0xee, 0xe1, 0x9a, 0x3e +); + +// 25c4c2c2-25ff-4352-82f9-c54a4a4726dc +DEFINE_GUID( + FWPM_LAYER_STREAM_V4_DISCARD, + 0x25c4c2c2, + 0x25ff, + 0x4352, + 0x82, 0xf9, 0xc5, 0x4a, 0x4a, 0x47, 0x26, 0xdc +); + +// 47c9137a-7ec4-46b3-b6e4-48e926b1eda4 +DEFINE_GUID( + FWPM_LAYER_STREAM_V6, + 0x47c9137a, + 0x7ec4, + 0x46b3, + 0xb6, 0xe4, 0x48, 0xe9, 0x26, 0xb1, 0xed, 0xa4 +); + +// 10a59fc7-b628-4c41-9eb8-cf37d55103cf +DEFINE_GUID( + FWPM_LAYER_STREAM_V6_DISCARD, + 0x10a59fc7, + 0xb628, + 0x4c41, + 0x9e, 0xb8, 0xcf, 0x37, 0xd5, 0x51, 0x03, 0xcf +); + +// 3d08bf4e-45f6-4930-a922-417098e20027 +DEFINE_GUID( + FWPM_LAYER_DATAGRAM_DATA_V4, + 0x3d08bf4e, + 0x45f6, + 0x4930, + 0xa9, 0x22, 0x41, 0x70, 0x98, 0xe2, 0x00, 0x27 +); + +// 18e330c6-7248-4e52-aaab-472ed67704fd +DEFINE_GUID( + FWPM_LAYER_DATAGRAM_DATA_V4_DISCARD, + 0x18e330c6, + 0x7248, + 0x4e52, + 0xaa, 0xab, 0x47, 0x2e, 0xd6, 0x77, 0x04, 0xfd +); + +// fa45fe2f-3cba-4427-87fc-57b9a4b10d00 +DEFINE_GUID( + FWPM_LAYER_DATAGRAM_DATA_V6, + 0xfa45fe2f, + 0x3cba, + 0x4427, + 0x87, 0xfc, 0x57, 0xb9, 0xa4, 0xb1, 0x0d, 0x00 +); + +// 09d1dfe1-9b86-4a42-be9d-8c315b92a5d0 +DEFINE_GUID( + FWPM_LAYER_DATAGRAM_DATA_V6_DISCARD, + 0x09d1dfe1, + 0x9b86, + 0x4a42, + 0xbe, 0x9d, 0x8c, 0x31, 0x5b, 0x92, 0xa5, 0xd0 +); + +// 61499990-3cb6-4e84-b950-53b94b6964f3 +DEFINE_GUID( + FWPM_LAYER_INBOUND_ICMP_ERROR_V4, + 0x61499990, + 0x3cb6, + 0x4e84, + 0xb9, 0x50, 0x53, 0xb9, 0x4b, 0x69, 0x64, 0xf3 +); + +// a6b17075-ebaf-4053-a4e7-213c8121ede5 +DEFINE_GUID( + FWPM_LAYER_INBOUND_ICMP_ERROR_V4_DISCARD, + 0xa6b17075, + 0xebaf, + 0x4053, + 0xa4, 0xe7, 0x21, 0x3c, 0x81, 0x21, 0xed, 0xe5 +); + +// 65f9bdff-3b2d-4e5d-b8c6-c720651fe898 +DEFINE_GUID( + FWPM_LAYER_INBOUND_ICMP_ERROR_V6, + 0x65f9bdff, + 0x3b2d, + 0x4e5d, + 0xb8, 0xc6, 0xc7, 0x20, 0x65, 0x1f, 0xe8, 0x98 +); + +// a6e7ccc0-08fb-468d-a472-9771d5595e09 +DEFINE_GUID( + FWPM_LAYER_INBOUND_ICMP_ERROR_V6_DISCARD, + 0xa6e7ccc0, + 0x08fb, + 0x468d, + 0xa4, 0x72, 0x97, 0x71, 0xd5, 0x59, 0x5e, 0x09 +); + +// 41390100-564c-4b32-bc1d-718048354d7c +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_ICMP_ERROR_V4, + 0x41390100, + 0x564c, + 0x4b32, + 0xbc, 0x1d, 0x71, 0x80, 0x48, 0x35, 0x4d, 0x7c +); + +// b3598d36-0561-4588-a6bf-e955e3f6264b +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_ICMP_ERROR_V4_DISCARD, + 0xb3598d36, + 0x0561, + 0x4588, + 0xa6, 0xbf, 0xe9, 0x55, 0xe3, 0xf6, 0x26, 0x4b +); + +// 7fb03b60-7b8d-4dfa-badd-980176fc4e12 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_ICMP_ERROR_V6, + 0x7fb03b60, + 0x7b8d, + 0x4dfa, + 0xba, 0xdd, 0x98, 0x01, 0x76, 0xfc, 0x4e, 0x12 +); + +// 65f2e647-8d0c-4f47-b19b-33a4d3f1357c +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_ICMP_ERROR_V6_DISCARD, + 0x65f2e647, + 0x8d0c, + 0x4f47, + 0xb1, 0x9b, 0x33, 0xa4, 0xd3, 0xf1, 0x35, 0x7c +); + +// 1247d66d-0b60-4a15-8d44-7155d0f53a0c +DEFINE_GUID( + FWPM_LAYER_ALE_RESOURCE_ASSIGNMENT_V4, + 0x1247d66d, + 0x0b60, + 0x4a15, + 0x8d, 0x44, 0x71, 0x55, 0xd0, 0xf5, 0x3a, 0x0c +); + +// 0b5812a2-c3ff-4eca-b88d-c79e20ac6322 +DEFINE_GUID( + FWPM_LAYER_ALE_RESOURCE_ASSIGNMENT_V4_DISCARD, + 0x0b5812a2, + 0xc3ff, + 0x4eca, + 0xb8, 0x8d, 0xc7, 0x9e, 0x20, 0xac, 0x63, 0x22 +); + +// 55a650e1-5f0a-4eca-a653-88f53b26aa8c +DEFINE_GUID( + FWPM_LAYER_ALE_RESOURCE_ASSIGNMENT_V6, + 0x55a650e1, + 0x5f0a, + 0x4eca, + 0xa6, 0x53, 0x88, 0xf5, 0x3b, 0x26, 0xaa, 0x8c +); + +// cbc998bb-c51f-4c1a-bb4f-9775fcacab2f +DEFINE_GUID( + FWPM_LAYER_ALE_RESOURCE_ASSIGNMENT_V6_DISCARD, + 0xcbc998bb, + 0xc51f, + 0x4c1a, + 0xbb, 0x4f, 0x97, 0x75, 0xfc, 0xac, 0xab, 0x2f +); + +// 88bb5dad-76d7-4227-9c71-df0a3ed7be7e +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_LISTEN_V4, + 0x88bb5dad, + 0x76d7, + 0x4227, + 0x9c, 0x71, 0xdf, 0x0a, 0x3e, 0xd7, 0xbe, 0x7e +); + +// 371dfada-9f26-45fd-b4eb-c29eb212893f +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_LISTEN_V4_DISCARD, + 0x371dfada, + 0x9f26, + 0x45fd, + 0xb4, 0xeb, 0xc2, 0x9e, 0xb2, 0x12, 0x89, 0x3f +); + +// 7ac9de24-17dd-4814-b4bd-a9fbc95a321b +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_LISTEN_V6, + 0x7ac9de24, + 0x17dd, + 0x4814, + 0xb4, 0xbd, 0xa9, 0xfb, 0xc9, 0x5a, 0x32, 0x1b +); + +// 60703b07-63c8-48e9-ada3-12b1af40a617 +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_LISTEN_V6_DISCARD, + 0x60703b07, + 0x63c8, + 0x48e9, + 0xad, 0xa3, 0x12, 0xb1, 0xaf, 0x40, 0xa6, 0x17 +); + +// e1cd9fe7-f4b5-4273-96c0-592e487b8650 +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_RECV_ACCEPT_V4, + 0xe1cd9fe7, + 0xf4b5, + 0x4273, + 0x96, 0xc0, 0x59, 0x2e, 0x48, 0x7b, 0x86, 0x50 +); + +// 9eeaa99b-bd22-4227-919f-0073c63357b1 +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_RECV_ACCEPT_V4_DISCARD, + 0x9eeaa99b, + 0xbd22, + 0x4227, + 0x91, 0x9f, 0x00, 0x73, 0xc6, 0x33, 0x57, 0xb1 +); + +// a3b42c97-9f04-4672-b87e-cee9c483257f +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_RECV_ACCEPT_V6, + 0xa3b42c97, + 0x9f04, + 0x4672, + 0xb8, 0x7e, 0xce, 0xe9, 0xc4, 0x83, 0x25, 0x7f +); + +// 89455b97-dbe1-453f-a224-13da895af396 +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_RECV_ACCEPT_V6_DISCARD, + 0x89455b97, + 0xdbe1, + 0x453f, + 0xa2, 0x24, 0x13, 0xda, 0x89, 0x5a, 0xf3, 0x96 +); + +// c38d57d1-05a7-4c33-904f-7fbceee60e82 +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_CONNECT_V4, + 0xc38d57d1, + 0x05a7, + 0x4c33, + 0x90, 0x4f, 0x7f, 0xbc, 0xee, 0xe6, 0x0e, 0x82 +); + +// d632a801-f5ba-4ad6-96e3-607017d9836a +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_CONNECT_V4_DISCARD, + 0xd632a801, + 0xf5ba, + 0x4ad6, + 0x96, 0xe3, 0x60, 0x70, 0x17, 0xd9, 0x83, 0x6a +); + +// 4a72393b-319f-44bc-84c3-ba54dcb3b6b4 +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_CONNECT_V6, + 0x4a72393b, + 0x319f, + 0x44bc, + 0x84, 0xc3, 0xba, 0x54, 0xdc, 0xb3, 0xb6, 0xb4 +); + +// c97bc3b8-c9a3-4e33-8695-8e17aad4de09 +DEFINE_GUID( + FWPM_LAYER_ALE_AUTH_CONNECT_V6_DISCARD, + 0xc97bc3b8, + 0xc9a3, + 0x4e33, + 0x86, 0x95, 0x8e, 0x17, 0xaa, 0xd4, 0xde, 0x09 +); + +// af80470a-5596-4c13-9992-539e6fe57967 +DEFINE_GUID( + FWPM_LAYER_ALE_FLOW_ESTABLISHED_V4, + 0xaf80470a, + 0x5596, + 0x4c13, + 0x99, 0x92, 0x53, 0x9e, 0x6f, 0xe5, 0x79, 0x67 +); + +// 146ae4a9-a1d2-4d43-a31a-4c42682b8e4f +DEFINE_GUID( + FWPM_LAYER_ALE_FLOW_ESTABLISHED_V4_DISCARD, + 0x146ae4a9, + 0xa1d2, + 0x4d43, + 0xa3, 0x1a, 0x4c, 0x42, 0x68, 0x2b, 0x8e, 0x4f +); + +// 7021d2b3-dfa4-406e-afeb-6afaf7e70efd +DEFINE_GUID( + FWPM_LAYER_ALE_FLOW_ESTABLISHED_V6, + 0x7021d2b3, + 0xdfa4, + 0x406e, + 0xaf, 0xeb, 0x6a, 0xfa, 0xf7, 0xe7, 0x0e, 0xfd +); + +// 46928636-bbca-4b76-941d-0fa7f5d7d372 +DEFINE_GUID( + FWPM_LAYER_ALE_FLOW_ESTABLISHED_V6_DISCARD, + 0x46928636, + 0xbbca, + 0x4b76, + 0x94, 0x1d, 0x0f, 0xa7, 0xf5, 0xd7, 0xd3, 0x72 +); + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +// effb7edb-0055-4f9a-a23a-4ff8131ad191 +DEFINE_GUID( + FWPM_LAYER_INBOUND_MAC_FRAME_ETHERNET, + 0xeffb7edb, + 0x0055, + 0x4f9a, + 0xa2, 0x31, 0x4f, 0xf8, 0x13, 0x1a, 0xd1, 0x91 +); + +// 694673bc-d6db-4870-adee-0acdbdb7f4b2 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_MAC_FRAME_ETHERNET, + 0x694673bc, + 0xd6db, + 0x4870, + 0xad, 0xee, 0x0a, 0xcd, 0xbd, 0xb7, 0xf4, 0xb2 +); + +// d4220bd3-62ce-4f08-ae88-b56e8526df50 +DEFINE_GUID( + FWPM_LAYER_INBOUND_MAC_FRAME_NATIVE, + 0xd4220bd3, + 0x62ce, + 0x4f08, + 0xae, 0x88, 0xb5, 0x6e, 0x85, 0x26, 0xdf, 0x50 +); + +// 94c44912-9d6f-4ebf-b995-05ab8a088d1b +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_MAC_FRAME_NATIVE, + 0x94c44912, + 0x9d6f, + 0x4ebf, + 0xb9, 0x95, 0x05, 0xab, 0x8a, 0x08, 0x8d, 0x1b +); + +// 7d98577a-9a87-41ec-9718-7cf589c9f32d +DEFINE_GUID( + FWPM_LAYER_INGRESS_VSWITCH_ETHERNET, + 0x7d98577a, + 0x9a87, + 0x41ec, + 0x97, 0x18, 0x7c, 0xf5, 0x89, 0xc9, 0xf3, 0x2d +); + +// 86c872b0-76fa-4b79-93a4-0750530ae292 +DEFINE_GUID( + FWPM_LAYER_EGRESS_VSWITCH_ETHERNET, + 0x86c872b0, + 0x76fa, + 0x4b79, + 0x93, 0xa4, 0x07, 0x50, 0x53, 0x0a, 0xe2, 0x92 +); + +// b2696ff6-774f-4554-9f7d-3da3945f8e85 +DEFINE_GUID( + FWPM_LAYER_INGRESS_VSWITCH_TRANSPORT_V4, + 0xb2696ff6, + 0x774f, + 0x4554, + 0x9f, 0x7d, 0x3d, 0xa3, 0x94, 0x5f, 0x8e, 0x85 +); + +// 5ee314fc-7d8a-47f4-b7e3-291a36da4e12 +DEFINE_GUID( + FWPM_LAYER_INGRESS_VSWITCH_TRANSPORT_V6, + 0x5ee314fc, + 0x7d8a, + 0x47f4, + 0xb7, 0xe3, 0x29, 0x1a, 0x36, 0xda, 0x4e, 0x12 +); + +// b92350b6-91f0-46b6-bdc4-871dfd4a7c98 +DEFINE_GUID( + FWPM_LAYER_EGRESS_VSWITCH_TRANSPORT_V4, + 0xb92350b6, + 0x91f0, + 0x46b6, + 0xbd, 0xc4, 0x87, 0x1d, 0xfd, 0x4a, 0x7c, 0x98 +); + +// 1b2def23-1881-40bd-82f4-4254e63141cb +DEFINE_GUID( + FWPM_LAYER_EGRESS_VSWITCH_TRANSPORT_V6, + 0x1b2def23, + 0x1881, + 0x40bd, + 0x82, 0xf4, 0x42, 0x54, 0xe6, 0x31, 0x41, 0xcb +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) +//e41d2719-05c7-40f0-8983-ea8d17bbc2f6 +DEFINE_GUID( + FWPM_LAYER_INBOUND_TRANSPORT_FAST, + 0xe41d2719, + 0x05c7, + 0x40f0, + 0x89, 0x83, 0xea, 0x8d, 0x17, 0xbb, 0xc2, 0xf6 +); + +//13ed4388-a070-4815-9935-7a9be6408b78 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_TRANSPORT_FAST, + 0x13ed4388, + 0xa070, + 0x4815, + 0x99,0x35,0x7a,0x9b,0xe6,0x40,0x8b,0x78 +); + +//853aaa8e-2b78-4d24-a804-36db08b29711 +DEFINE_GUID( + FWPM_LAYER_INBOUND_MAC_FRAME_NATIVE_FAST, + 0x853aaa8e, + 0x2b78, + 0x4d24, + 0xa8,0x04,0x36,0xdb,0x08,0xb2,0x97,0x11 +); + +//470df946-c962-486f-9446-8293cbc75eb8 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_MAC_FRAME_NATIVE_FAST, + 0x470df946, + 0xc962, + 0x486f, + 0x94,0x46,0x82,0x93,0xcb,0xc7,0x5e,0xb8 +); + + +#endif // (NTDDI_VERSION >= NTDDI_WINBLUE) + +// f02b1526-a459-4a51-b9e3-759de52b9d2c +DEFINE_GUID( + FWPM_LAYER_IPSEC_KM_DEMUX_V4, + 0xf02b1526, + 0xa459, + 0x4a51, + 0xb9, 0xe3, 0x75, 0x9d, 0xe5, 0x2b, 0x9d, 0x2c +); + +// 2f755cf6-2fd4-4e88-b3e4-a91bca495235 +DEFINE_GUID( + FWPM_LAYER_IPSEC_KM_DEMUX_V6, + 0x2f755cf6, + 0x2fd4, + 0x4e88, + 0xb3, 0xe4, 0xa9, 0x1b, 0xca, 0x49, 0x52, 0x35 +); + +// eda65c74-610d-4bc5-948f-3c4f89556867 +DEFINE_GUID( + FWPM_LAYER_IPSEC_V4, + 0xeda65c74, + 0x610d, + 0x4bc5, + 0x94, 0x8f, 0x3c, 0x4f, 0x89, 0x55, 0x68, 0x67 +); + +// 13c48442-8d87-4261-9a29-59d2abc348b4 +DEFINE_GUID( + FWPM_LAYER_IPSEC_V6, + 0x13c48442, + 0x8d87, + 0x4261, + 0x9a, 0x29, 0x59, 0xd2, 0xab, 0xc3, 0x48, 0xb4 +); + +// b14b7bdb-dbbd-473e-bed4-8b4708d4f270 +DEFINE_GUID( + FWPM_LAYER_IKEEXT_V4, + 0xb14b7bdb, + 0xdbbd, + 0x473e, + 0xbe, 0xd4, 0x8b, 0x47, 0x08, 0xd4, 0xf2, 0x70 +); + +// b64786b3-f687-4eb9-89d2-8ef32acdabe2 +DEFINE_GUID( + FWPM_LAYER_IKEEXT_V6, + 0xb64786b3, + 0xf687, + 0x4eb9, + 0x89, 0xd2, 0x8e, 0xf3, 0x2a, 0xcd, 0xab, 0xe2 +); + +// 75a89dda-95e4-40f3-adc7-7688a9c847e1 +DEFINE_GUID( + FWPM_LAYER_RPC_UM, + 0x75a89dda, + 0x95e4, + 0x40f3, + 0xad, 0xc7, 0x76, 0x88, 0xa9, 0xc8, 0x47, 0xe1 +); + +// 9247bc61-eb07-47ee-872c-bfd78bfd1616 +DEFINE_GUID( + FWPM_LAYER_RPC_EPMAP, + 0x9247bc61, + 0xeb07, + 0x47ee, + 0x87, 0x2c, 0xbf, 0xd7, 0x8b, 0xfd, 0x16, 0x16 +); + +// 618dffc7-c450-4943-95db-99b4c16a55d4 +DEFINE_GUID( + FWPM_LAYER_RPC_EP_ADD, + 0x618dffc7, + 0xc450, + 0x4943, + 0x95, 0xdb, 0x99, 0xb4, 0xc1, 0x6a, 0x55, 0xd4 +); + +// 94a4b50b-ba5c-4f27-907a-229fac0c2a7a +DEFINE_GUID( + FWPM_LAYER_RPC_PROXY_CONN, + 0x94a4b50b, + 0xba5c, + 0x4f27, + 0x90, 0x7a, 0x22, 0x9f, 0xac, 0x0c, 0x2a, 0x7a +); + +// f8a38615-e12c-41ac-98df-121ad981aade +DEFINE_GUID( + FWPM_LAYER_RPC_PROXY_IF, + 0xf8a38615, + 0xe12c, + 0x41ac, + 0x98, 0xdf, 0x12, 0x1a, 0xd9, 0x81, 0xaa, 0xde +); + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +// 4aa226e9-9020-45fb-956a-c0249d841195 +DEFINE_GUID( + FWPM_LAYER_KM_AUTHORIZATION, + 0x4aa226e9, + 0x9020, + 0x45fb, + 0x95,0x6a, 0xc0, 0x24, 0x9d, 0x84, 0x11, 0x95 +); + +// 0c2aa681-905b-4ccd-a467-4dd811d07b7b +DEFINE_GUID( + FWPM_LAYER_NAME_RESOLUTION_CACHE_V4, + 0x0c2aa681, + 0x905b, + 0x4ccd, + 0xa4, 0x67, 0x4d, 0xd8, 0x11, 0xd0, 0x7b, 0x7b +); + +// 92d592fa-6b01-434a-9dea-d1e96ea97da9 +DEFINE_GUID( + FWPM_LAYER_NAME_RESOLUTION_CACHE_V6, + 0x92d592fa, + 0x6b01, + 0x434a, + 0x9d, 0xea, 0xd1, 0xe9, 0x6e, 0xa9, 0x7d, 0xa9 +); + +// 74365cce-ccb0-401a-bfc1-b89934ad7e15 +DEFINE_GUID( + FWPM_LAYER_ALE_RESOURCE_RELEASE_V4, + 0x74365cce, + 0xccb0, + 0x401a, + 0xbf, 0xc1, 0xb8, 0x99, 0x34, 0xad, 0x7e, 0x15 +); + +// f4e5ce80-edcc-4e13-8a2f-b91454bb057b +DEFINE_GUID( + FWPM_LAYER_ALE_RESOURCE_RELEASE_V6, + 0xf4e5ce80, + 0xedcc, + 0x4e13, + 0x8a, 0x2f, 0xb9, 0x14, 0x54, 0xbb, 0x05, 0x7b +); + +// b4766427-e2a2-467a-bd7e-dbcd1bd85a09 +DEFINE_GUID( + FWPM_LAYER_ALE_ENDPOINT_CLOSURE_V4, + 0xb4766427, + 0xe2a2, + 0x467a, + 0xbd, 0x7e, 0xdb, 0xcd, 0x1b, 0xd8, 0x5a, 0x09 +); + +// bb536ccd-4755-4ba9-9ff7-f9edf8699c7b +DEFINE_GUID( + FWPM_LAYER_ALE_ENDPOINT_CLOSURE_V6, + 0xbb536ccd, + 0x4755, + 0x4ba9, + 0x9f, 0xf7, 0xf9, 0xed, 0xf8, 0x69, 0x9c, 0x7b +); + +// c6e63c8c-b784-4562-aa7d-0a67cfcaf9a3 +DEFINE_GUID( + FWPM_LAYER_ALE_CONNECT_REDIRECT_V4, + 0xc6e63c8c, + 0xb784, + 0x4562, + 0xaa, 0x7d, 0x0a, 0x67, 0xcf, 0xca, 0xf9, 0xa3 +); + +// 587e54a7-8046-42ba-a0aa-b716250fc7fd +DEFINE_GUID( + FWPM_LAYER_ALE_CONNECT_REDIRECT_V6, + 0x587e54a7, + 0x8046, + 0x42ba, + 0xa0, 0xaa, 0xb7, 0x16, 0x25, 0x0f, 0xc7, 0xfd +); + +// 66978cad-c704-42ac-86ac-7c1a231bd253 +DEFINE_GUID( + FWPM_LAYER_ALE_BIND_REDIRECT_V4, + 0x66978cad, + 0xc704, + 0x42ac, + 0x86, 0xac, 0x7c, 0x1a, 0x23, 0x1b, 0xd2, 0x53 +); + +// bef02c9c-606b-4536-8c26-1c2fc7b631d4 +DEFINE_GUID( + FWPM_LAYER_ALE_BIND_REDIRECT_V6, + 0xbef02c9c, + 0x606b, + 0x4536, + 0x8c, 0x26, 0x1c, 0x2f, 0xc7, 0xb6, 0x31, 0xd4 +); + +// af52d8ec-cb2d-44e5-ad92-f8dc38d2eb29 +DEFINE_GUID( + FWPM_LAYER_STREAM_PACKET_V4, + 0xaf52d8ec, + 0xcb2d, + 0x44e5, + 0xad, 0x92, 0xf8, 0xdc, 0x38, 0xd2, 0xeb, 0x29 +); + +// 779a8ca3-f099-468f-b5d4-83535c461c02 +DEFINE_GUID( + FWPM_LAYER_STREAM_PACKET_V6, + 0x779a8ca3, + 0xf099, + 0x468f, + 0xb5, 0xd4, 0x83, 0x53, 0x5c, 0x46, 0x1c, 0x02 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +//f4fb8d55-c076-46d8-a2c7-6a4c722ca4ed +DEFINE_GUID( + FWPM_LAYER_INBOUND_RESERVED2, + 0xf4fb8d55, + 0xc076, + 0x46d8, + 0xa2, 0xc7, 0x6a, 0x4c, 0x72, 0x2c, 0xa4, 0xed +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + + +#if (NTDDI_VERSION >= NTDDI_WIN10_NI) + +//037f317a-d696-494a-bba5-bffc265e6052 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_NETWORK_CONNECTION_POLICY_V4, + 0x037f317a, + 0xd696, + 0x494a, + 0xbb, 0xa5, 0xbf, 0xfc, 0x26, 0x5e, 0x60, 0x52 +); + +//22a4fdb1-6d7e-48ae-ae77-3742525c3119 +DEFINE_GUID( + FWPM_LAYER_OUTBOUND_NETWORK_CONNECTION_POLICY_V6, + 0x22a4fdb1, + 0x6d7e, + 0x48ae, + 0xae, 0x77, 0x37, 0x42, 0x52, 0x5c, 0x31, 0x19 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_NI) + + +/////////////////////////////////////////////////////////////////////////////// +// +// GUIDs for built-in sublayers. +// +/////////////////////////////////////////////////////////////////////////////// + +// 758c84f4-fb48-4de9-9aeb-3ed9551ab1fd +DEFINE_GUID( + FWPM_SUBLAYER_RPC_AUDIT, + 0x758c84f4, + 0xfb48, + 0x4de9, + 0x9a, 0xeb, 0x3e, 0xd9, 0x55, 0x1a, 0xb1, 0xfd +); + +// 83f299ed-9ff4-4967-aff4-c309f4dab827 +DEFINE_GUID( + FWPM_SUBLAYER_IPSEC_TUNNEL, + 0x83f299ed, + 0x9ff4, + 0x4967, + 0xaf, 0xf4, 0xc3, 0x09, 0xf4, 0xda, 0xb8, 0x27 +); + +// eebecc03-ced4-4380-819a-2734397b2b74 +DEFINE_GUID( + FWPM_SUBLAYER_UNIVERSAL, + 0xeebecc03, + 0xced4, + 0x4380, + 0x81, 0x9a, 0x27, 0x34, 0x39, 0x7b, 0x2b, 0x74 +); + +// 1b75c0ce-ff60-4711-a70f-b4958cc3b2d0 +DEFINE_GUID( + FWPM_SUBLAYER_LIPS, + 0x1b75c0ce, + 0xff60, + 0x4711, + 0xa7, 0x0f, 0xb4, 0x95, 0x8c, 0xc3, 0xb2, 0xd0 +); + +// 15a66e17-3f3c-4f7b-aa6c-812aa613dd82 +DEFINE_GUID( + FWPM_SUBLAYER_SECURE_SOCKET, + 0x15a66e17, + 0x3f3c, + 0x4f7b, + 0xaa, 0x6c, 0x81, 0x2a, 0xa6, 0x13, 0xdd, 0x82 +); + +// 337608b9-b7d5-4d5f-82f9-3618618bc058 +DEFINE_GUID( + FWPM_SUBLAYER_TCP_CHIMNEY_OFFLOAD, + 0x337608b9, + 0xb7d5, + 0x4d5f, + 0x82, 0xf9, 0x36, 0x18, 0x61, 0x8b, 0xc0, 0x58 +); + +// 877519e1-e6a9-41a5-81b4-8c4f118e4a60 +DEFINE_GUID( + FWPM_SUBLAYER_INSPECTION, + 0x877519e1, + 0xe6a9, + 0x41a5, + 0x81, 0xb4, 0x8c, 0x4f, 0x11, 0x8e, 0x4a, 0x60 +); + +// ba69dc66-5176-4979-9c89-26a7b46a8327 +DEFINE_GUID( + FWPM_SUBLAYER_TEREDO, + 0xba69dc66, + 0x5176, + 0x4979, + 0x9c, 0x89, 0x26, 0xa7, 0xb4, 0x6a, 0x83, 0x27 +); + +#define FWPM_SUBLAYER_EDGE_TRAVERSAL FWPM_SUBLAYER_TEREDO + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +// a5082e73-8f71-4559-8a9a-101cea04ef87 +DEFINE_GUID( + FWPM_SUBLAYER_IPSEC_FORWARD_OUTBOUND_TUNNEL, + 0xa5082e73, + 0x8f71, + 0x4559, + 0x8a, 0x9a, 0x10, 0x1c, 0xea, 0x04, 0xef, 0x87 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +// e076d572-5d3d-48ef-802b-909eddb098bd +DEFINE_GUID( + FWPM_SUBLAYER_IPSEC_DOSP, + 0xe076d572, + 0x5d3d, + 0x48ef, + 0x80, 0x2b, 0x90, 0x9e, 0xdd, 0xb0, 0x98, 0xbd +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +// 24421dcf-0ac5-4caa-9e14-50f6e3636af0 +DEFINE_GUID( + FWPM_SUBLAYER_TCP_TEMPLATES, + 0x24421dcf, + 0x0ac5, + 0x4caa, + 0x9e, 0x14, 0x50, 0xf6, 0xe3, 0x63, 0x6a, 0xf0 +); + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +// 37a57701-5884-4964-92b8-3e704688b0ad +DEFINE_GUID( + FWPM_SUBLAYER_IPSEC_SECURITY_REALM, + 0x37a57701, + 0x5884, + 0x4964, + 0x92, 0xb8, 0x3e, 0x70, 0x46, 0x88, 0xb0, 0xad +); + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +// B3CDD441-AF90-41BA-A745-7C6008FF2300 +DEFINE_GUID( + FWPM_SUBLAYER_MPSSVC_WSH, + 0xb3cdd441, + 0xaf90, + 0x41ba, + 0xa7, 0x45, 0x7c, 0x60, 0x08, 0xff, 0x23, 0x00 +); + +// B3CDD441-AF90-41BA-A745-7C6008FF2301 +DEFINE_GUID( + FWPM_SUBLAYER_MPSSVC_WF, + 0xb3cdd441, + 0xaf90, + 0x41ba, + 0xa7, 0x45, 0x7c, 0x60, 0x08, 0xff, 0x23, 0x01 +); + +// B3CDD441-AF90-41BA-A745-7C6008FF2302 +DEFINE_GUID( + FWPM_SUBLAYER_MPSSVC_QUARANTINE, + 0xb3cdd441, + 0xaf90, + 0x41ba, + 0xa7, 0x45, 0x7c, 0x60, 0x08, 0xff, 0x23, 0x02 +); + +// 09A47E38-FA97-471B-B12318BCD7E65071 +DEFINE_GUID( + FWPM_SUBLAYER_MPSSVC_EDP, + 0x09a47e38, + 0xfa97, + 0x471b, + 0xb1, 0x23, 0x18, 0xbc, 0xd7, 0xe6, 0x50, 0x71 +); + +// 1EC6C7E1-FDD9-478A-B55F-FF8BA1D2C17D +DEFINE_GUID( + FWPM_SUBLAYER_MPSSVC_TENANT_RESTRICTIONS, + 0x1ec6c7e1, + 0xfdd9, + 0x478a, + 0xb5, 0x5f, 0xff, 0x8b, 0xa1, 0xd2, 0xc1, 0x7d +); + +// FFE221C3-92A8-4564-A59F-DAFB70756020 +DEFINE_GUID( + FWPM_SUBLAYER_MPSSVC_APP_ISOLATION, + 0xffe221c3, + 0x92a8, + 0x4564, + 0xa5, 0x9f, 0xda, 0xfb, 0x70, 0x75, 0x60, 0x20 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +/////////////////////////////////////////////////////////////////////////////// +// +// GUIDs for built-in conditions. +// +/////////////////////////////////////////////////////////////////////////////// +#if (NTDDI_VERSION >= NTDDI_WIN10_CU) + +// 81BC78FB-F28D-4886-A604-6ACC261F261B +DEFINE_GUID( + FWPM_CONDITION_ALE_PACKAGE_FAMILY_NAME, + 0x81bc78fb, + 0xf28d, + 0x4886, + 0xa6, 0x4, 0x6a, 0xcc, 0x26, 0x1f, 0x26, 0x1B +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CU) + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +// f6e63dce-1f4b-4c6b-b6ef-1165e71f8ee7 +DEFINE_GUID( + FWPM_CONDITION_INTERFACE_MAC_ADDRESS, + 0xf6e63dce, + 0x1f4b, + 0x4c6b, + 0xb6, 0xef, 0x11, 0x65, 0xe7, 0x1f, 0x8e, 0xe7 +); + +// d999e981-7948-4c8e-b742-c84e3b678f8f +DEFINE_GUID( + FWPM_CONDITION_MAC_LOCAL_ADDRESS, + 0xd999e981, + 0x7948, + 0x4c83, + 0xb7, 0x42, 0xc8, 0x4e, 0x3b, 0x67, 0x8f, 0x8f +); + +// 408f2ed4-3a70-4b4d-92a6-415ac20e2f12 +DEFINE_GUID( + FWPM_CONDITION_MAC_REMOTE_ADDRESS, + 0x408f2ed4, + 0x3a70, + 0x4b4d, + 0x92, 0xa6, 0x41, 0x5a, 0xc2, 0x0e, 0x2f, 0x12 +); + +// fd08948d-a219-4d52-bb98-1a5540ee7b4e +DEFINE_GUID( + FWPM_CONDITION_ETHER_TYPE, + 0xfd08948d, + 0xa219, + 0x4d52, + 0xbb, 0x98, 0x1a, 0x55, 0x40, 0xee, 0x7b, 0x4e +); + + +// 938eab21-3618-4e64-9ca5-2141ebda1ca2 +DEFINE_GUID( + FWPM_CONDITION_VLAN_ID, + 0x938eab21, + 0x3618, + 0x4e64, + 0x9c, 0xa5, 0x21, 0x41, 0xeb, 0xda, 0x1c, 0xa2 +); + +// dc04843c-79e6-4e44-a025-65b9bb0f9f94 +DEFINE_GUID( + FWPM_CONDITION_VSWITCH_TENANT_NETWORK_ID, + 0xdc04843c, + 0x79e6, + 0x4e44, + 0xa0, 0x25, 0x65, 0xb9, 0xbb, 0x0f, 0x9f, 0x94 +); + +// db7bb42b-2dac-4cd4-a59a-e0bdce1e6834 +DEFINE_GUID( + FWPM_CONDITION_NDIS_PORT, + 0xdb7bb42b, + 0x2dac, + 0x4cd4, + 0xa5, 0x9a, 0xe0, 0xbd, 0xce, 0x1e, 0x68, 0x34 +); + +// cb31cef1-791d-473b-89d1-61c5984304a0 +DEFINE_GUID( + FWPM_CONDITION_NDIS_MEDIA_TYPE, + 0xcb31cef1, + 0x791d, + 0x473b, + 0x89, 0xd1, 0x61, 0xc5, 0x98, 0x43, 0x04, 0xa0 +); + +// 34c79823-c229-44f2-b83c-74020882ae77 +DEFINE_GUID( + FWPM_CONDITION_NDIS_PHYSICAL_MEDIA_TYPE, + 0x34c79823, + 0xc229, + 0x44f2, + 0xb8, 0x3c, 0x74, 0x02, 0x08, 0x82, 0xae, 0x77 +); + +// 7bc43cbf-37ba-45f1-b74a-82ff518eeb10 +DEFINE_GUID( + FWPM_CONDITION_L2_FLAGS, + 0x7bc43cbf, + 0x37ba, + 0x45f1, + 0xb7, 0x4a, 0x82, 0xff, 0x51, 0x8e, 0xeb, 0x10 +); + +// cc31355c-3073-4ffb-a14f-79415cb1ead1 +DEFINE_GUID( + FWPM_CONDITION_MAC_LOCAL_ADDRESS_TYPE, + 0xcc31355c, + 0x3073, + 0x4ffb, + 0xa1, 0x4f, 0x79, 0x41, 0x5c, 0xb1, 0xea, 0xd1 +); + +// 027fedb4-f1c1-4030-b564-ee777fd867ea +DEFINE_GUID( + FWPM_CONDITION_MAC_REMOTE_ADDRESS_TYPE, + 0x027fedb4, + 0xf1c1, + 0x4030, + 0xb5, 0x64, 0xee, 0x77, 0x7f, 0xd8, 0x67, 0xea +); + +#define FWPM_CONDITION_INTERFACE FWPM_CONDITION_IP_LOCAL_INTERFACE + +// 71BC78FA-F17C-4997-A602-6ABB261F351C +DEFINE_GUID( + FWPM_CONDITION_ALE_PACKAGE_ID, + 0x71bc78fa, + 0xf17c, + 0x4997, + 0xa6, 0x2, 0x6a, 0xbb, 0x26, 0x1f, 0x35, 0x1c +); + +// 7b795451-f1f6-4d05-b7cb-21779d802336 +DEFINE_GUID( + FWPM_CONDITION_MAC_SOURCE_ADDRESS, + 0x7b795451, + 0xf1f6, + 0x4d05, + 0xb7, 0xcb, 0x21, 0x77, 0x9d, 0x80, 0x23, 0x36 +); + +// 04ea2a93-858c-4027-b613-b43180c7859e +DEFINE_GUID( + FWPM_CONDITION_MAC_DESTINATION_ADDRESS, + 0x04ea2a93, + 0x858c, + 0x4027, + 0xb6, 0x13, 0xb4, 0x31, 0x80, 0xc7, 0x85, 0x9e +); + +// 5c1b72e4-299e-4437-a298-bc3f014b3dc2 +DEFINE_GUID( + FWPM_CONDITION_MAC_SOURCE_ADDRESS_TYPE, + 0x5c1b72e4, + 0x299e, + 0x4437, + 0xa2, 0x98, 0xbc, 0x3f, 0x01, 0x4b, 0x3d, 0xc2 +); + +// ae052932-ef42-4e99-b129-f3b3139e34f7 +DEFINE_GUID( + FWPM_CONDITION_MAC_DESTINATION_ADDRESS_TYPE, + 0xae052932, + 0xef42, + 0x4e99, + 0xb1, 0x29, 0xf3, 0xb3, 0x13, 0x9e, 0x34, 0xf7 +); + +// a6afef91-3df4-4730-a214-f5426aebf821 +DEFINE_GUID( + FWPM_CONDITION_IP_SOURCE_PORT, + 0xa6afef91, + 0x3df4, + 0x4730, + 0xa2, 0x14, 0xf5, 0x42, 0x6a, 0xeb, 0xf8, 0x21 +); + +#define FWPM_CONDITION_VSWITCH_ICMP_TYPE FWPM_CONDITION_IP_SOURCE_PORT + +// ce6def45-60fb-4a7b-a304-af30a117000e +DEFINE_GUID( + FWPM_CONDITION_IP_DESTINATION_PORT, + 0xce6def45, + 0x60fb, + 0x4a7b, + 0xa3, 0x04, 0xaf, 0x30, 0xa1, 0x17, 0x00, 0x0e +); + +#define FWPM_CONDITION_VSWITCH_ICMP_CODE FWPM_CONDITION_IP_DESTINATION_PORT + +// c4a414ba-437b-4de6-9946-d99c1b95b312 +DEFINE_GUID( + FWPM_CONDITION_VSWITCH_ID, + 0xc4a414ba, + 0x437b, + 0x4de6, + 0x99, 0x46, 0xd9, 0x9c, 0x1b, 0x95, 0xb3, 0x12 +); + +// 11d48b4b-e77a-40b4-9155-392c906c2608 +DEFINE_GUID( + FWPM_CONDITION_VSWITCH_NETWORK_TYPE, + 0x11d48b4b, + 0xe77a, + 0x40b4, + 0x91, 0x55, 0x39, 0x2c, 0x90, 0x6c, 0x26, 0x08 +); + +// 7f4ef24b-b2c1-4938-ba33-a1ecbed512ba +DEFINE_GUID( + FWPM_CONDITION_VSWITCH_SOURCE_INTERFACE_ID, + 0x7f4ef24b, + 0xb2c1, + 0x4938, + 0xba, 0x33, 0xa1, 0xec, 0xbe, 0xd5, 0x12, 0xba +); + +// 8ed48be4-c926-49f6-a4f6-ef3030e3fc16 +DEFINE_GUID( + FWPM_CONDITION_VSWITCH_DESTINATION_INTERFACE_ID, + 0x8ed48be4, + 0xc926, + 0x49f6, + 0xa4, 0xf6, 0xef, 0x30, 0x30, 0xe3, 0xfc, 0x16 +); + +// 9c2a9ec2-9fc6-42bc-bdd8-406d4da0be64 +DEFINE_GUID( + FWPM_CONDITION_VSWITCH_SOURCE_VM_ID, + 0x9c2a9ec2, + 0x9fc6, + 0x42bc, + 0xbd, 0xd8, 0x40, 0x6d, 0x4d, 0xa0, 0xbe, 0x64 +); + +// 6106aace-4de1-4c84-9671-3637f8bcf731 +DEFINE_GUID( + FWPM_CONDITION_VSWITCH_DESTINATION_VM_ID, + 0x6106aace, + 0x4de1, + 0x4c84, + 0x96, 0x71, 0x36, 0x37, 0xf8, 0xbc, 0xf7, 0x31 +); + +// e6b040a2-edaf-4c36-908b-f2f58ae43807 +DEFINE_GUID( + FWPM_CONDITION_VSWITCH_SOURCE_INTERFACE_TYPE, + 0xe6b040a2, + 0xedaf, + 0x4c36, + 0x90, 0x8b, 0xf2, 0xf5, 0x8a, 0xe4, 0x38, 0x07 +); + +// fa9b3f06-2f1a-4c57-9e68-a7098b28dbfe +DEFINE_GUID( + FWPM_CONDITION_VSWITCH_DESTINATION_INTERFACE_TYPE, + 0xfa9b3f06, + 0x2f1a, + 0x4c57, + 0x9e, 0x68, 0xa7, 0x09, 0x8b, 0x28, 0xdb, 0xfe +); + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +// 37a57699-5883-4963-92b8-3e704688b0ad +DEFINE_GUID( + FWPM_CONDITION_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, + 0x37a57699, + 0x5883, + 0x4963, + 0x92, 0xb8, 0x3e, 0x70, 0x46, 0x88, 0xb0, 0xad +); + +// 37a57700-5884-4964-92b8-3e704688b0ad +DEFINE_GUID( + FWPM_CONDITION_IPSEC_SECURITY_REALM_ID, + 0x37a57700, + 0x5884, + 0x4964, + 0x92, 0xb8, 0x3e, 0x70, 0x46, 0x88, 0xb0, 0xad +); + +// b1277b9a-b781-40fc-9671-e5f1b989f34e +DEFINE_GUID( + FWPM_CONDITION_ALE_EFFECTIVE_NAME, + 0xb1277b9a, + 0xb781, + 0x40fc, + 0x96, 0x71, 0xe5, 0xf1, 0xb9, 0x89, 0xf3, 0x4e +); + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +// d9ee00de-c1ef-4617-bfe3-ffd8f5a08957 +DEFINE_GUID( + FWPM_CONDITION_IP_LOCAL_ADDRESS, + 0xd9ee00de, + 0xc1ef, + 0x4617, + 0xbf, 0xe3, 0xff, 0xd8, 0xf5, 0xa0, 0x89, 0x57 +); + +// b235ae9a-1d64-49b8-a44c-5ff3d9095045 +DEFINE_GUID( + FWPM_CONDITION_IP_REMOTE_ADDRESS, + 0xb235ae9a, + 0x1d64, + 0x49b8, + 0xa4, 0x4c, 0x5f, 0xf3, 0xd9, 0x09, 0x50, 0x45 +); + +// ae96897e-2e94-4bc9-b313-b27ee80e574d +DEFINE_GUID( + FWPM_CONDITION_IP_SOURCE_ADDRESS, + 0xae96897e, + 0x2e94, + 0x4bc9, + 0xb3, 0x13, 0xb2, 0x7e, 0xe8, 0x0e, 0x57, 0x4d +); + +// 2d79133b-b390-45c6-8699-acaceaafed33 +DEFINE_GUID( + FWPM_CONDITION_IP_DESTINATION_ADDRESS, + 0x2d79133b, + 0xb390, + 0x45c6, + 0x86, 0x99, 0xac, 0xac, 0xea, 0xaf, 0xed, 0x33 +); + +// 6ec7f6c4-376b-45d7-9e9c-d337cedcd237 +DEFINE_GUID( + FWPM_CONDITION_IP_LOCAL_ADDRESS_TYPE, + 0x6ec7f6c4, + 0x376b, + 0x45d7, + 0x9e, 0x9c, 0xd3, 0x37, 0xce, 0xdc, 0xd2, 0x37 +); + +// 1ec1b7c9-4eea-4f5e-b9ef-76beaaaf17ee +DEFINE_GUID( + FWPM_CONDITION_IP_DESTINATION_ADDRESS_TYPE, + 0x1ec1b7c9, + 0x4eea, + 0x4f5e, + 0xb9, 0xef, 0x76, 0xbe, 0xaa, 0xaf, 0x17, 0xee +); + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +// eabe448a-a711-4d64-85b7-3f76b65299c7 +DEFINE_GUID( + FWPM_CONDITION_IP_NEXTHOP_ADDRESS, + 0xeabe448a, + 0xa711, + 0x4d64, + 0x85, 0xb7, 0x3f, 0x76, 0xb6, 0x52, 0x99, 0xc7 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +// 4cd62a49-59c3-4969-b7f3-bda5d32890a4 +DEFINE_GUID( + FWPM_CONDITION_IP_LOCAL_INTERFACE, + 0x4cd62a49, + 0x59c3, + 0x4969, + 0xb7, 0xf3, 0xbd, 0xa5, 0xd3, 0x28, 0x90, 0xa4 +); + + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +// 618a9b6d-386b-4136-ad6e-b51587cfb1cd +DEFINE_GUID( + FWPM_CONDITION_IP_ARRIVAL_INTERFACE, + 0x618a9b6d, + 0x386b, + 0x4136, + 0xad, 0x6e, 0xb5, 0x15, 0x87, 0xcf, 0xb1, 0xcd +); + +// 89f990de-e798-4e6d-ab76-7c9558292e6f +DEFINE_GUID( + FWPM_CONDITION_ARRIVAL_INTERFACE_TYPE, + 0x89f990de, + 0xe798, + 0x4e6d, + 0xab, 0x76, 0x7c, 0x95, 0x58, 0x29, 0x2e, 0x6f +); + +// 511166dc-7a8c-4aa7-b533-95ab59fb0340 +DEFINE_GUID( + FWPM_CONDITION_ARRIVAL_TUNNEL_TYPE, + 0x511166dc, + 0x7a8c, + 0x4aa7, + 0xb5, 0x33, 0x95, 0xab, 0x59, 0xfb, 0x03, 0x40 +); + +// cc088db3-1792-4a71-b0f9-037d21cd828b +DEFINE_GUID( + FWPM_CONDITION_ARRIVAL_INTERFACE_INDEX, + 0xcc088db3, + 0x1792, + 0x4a71, + 0xb0, 0xf9, 0x03, 0x7d, 0x21, 0xcd, 0x82, 0x8b +); + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +// ef8a6122-0577-45a7-9aaf-825fbeb4fb95 +DEFINE_GUID( + FWPM_CONDITION_NEXTHOP_SUB_INTERFACE_INDEX, + 0xef8a6122, + 0x0577, + 0x45a7, + 0x9a, 0xaf, 0x82, 0x5f, 0xbe, 0xb4, 0xfb, 0x95 +); + +// 93ae8f5b-7f6f-4719-98c8-14e97429ef04 +DEFINE_GUID( + FWPM_CONDITION_IP_NEXTHOP_INTERFACE, + 0x93ae8f5b, + 0x7f6f, + 0x4719, + 0x98, 0xc8, 0x14, 0xe9, 0x74, 0x29, 0xef, 0x04 +); + +// 97537c6c-d9a3-4767-a381-e942675cd920 +DEFINE_GUID( + FWPM_CONDITION_NEXTHOP_INTERFACE_TYPE, + 0x97537c6c, + 0xd9a3, + 0x4767, + 0xa3, 0x81, 0xe9, 0x42, 0x67, 0x5c, 0xd9, 0x20 +); + +// 72b1a111-987b-4720-99dd-c7c576fa2d4c +DEFINE_GUID( + FWPM_CONDITION_NEXTHOP_TUNNEL_TYPE, + 0x72b1a111, + 0x987b, + 0x4720, + 0x99, 0xdd, 0xc7, 0xc5, 0x76, 0xfa, 0x2d, 0x4c +); + +// 138e6888-7ab8-4d65-9ee8-0591bcf6a494 +DEFINE_GUID( + FWPM_CONDITION_NEXTHOP_INTERFACE_INDEX, + 0x138e6888, + 0x7ab8, + 0x4d65, + 0x9e, 0xe8, 0x05, 0x91, 0xbc, 0xf6, 0xa4, 0x94 +); + +// 46ea1551-2255-492b-8019-aabeee349f40 +DEFINE_GUID( + FWPM_CONDITION_ORIGINAL_PROFILE_ID, + 0x46ea1551, + 0x2255, + 0x492b, + 0x80, 0x19, 0xaa, 0xbe, 0xee, 0x34, 0x9f, 0x40 +); + +// ab3033c9-c0e3-4759-937d-5758c65d4ae3 +DEFINE_GUID( + FWPM_CONDITION_CURRENT_PROFILE_ID, + 0xab3033c9, + 0xc0e3, + 0x4759, + 0x93, 0x7d, 0x57, 0x58, 0xc6, 0x5d, 0x4a, 0xe3 +); + +// 4ebf7562-9f18-4d06-9941-a7a625744d71 +DEFINE_GUID( + FWPM_CONDITION_LOCAL_INTERFACE_PROFILE_ID, + 0x4ebf7562, + 0x9f18, + 0x4d06, + 0x99, 0x41, 0xa7, 0xa6, 0x25, 0x74, 0x4d, 0x71 +); + +// cdfe6aab-c083-4142-8679-c08f95329c61 +DEFINE_GUID( + FWPM_CONDITION_ARRIVAL_INTERFACE_PROFILE_ID, + 0xcdfe6aab, + 0xc083, + 0x4142, + 0x86, 0x79, 0xc0, 0x8f, 0x95, 0x32, 0x9c, 0x61 +); + +// d7ff9a56-cdaa-472b-84db-d23963c1d1bf +DEFINE_GUID( + FWPM_CONDITION_NEXTHOP_INTERFACE_PROFILE_ID, + 0xd7ff9a56, + 0xcdaa, + 0x472b, + 0x84, 0xdb, 0xd2, 0x39, 0x63, 0xc1, 0xd1, 0xbf +); + + +// 11205e8c-11ae-457a-8a44-477026dd764a +DEFINE_GUID( + FWPM_CONDITION_REAUTHORIZE_REASON, + 0x11205e8c, + 0x11ae, + 0x457a, + 0x8a, 0x44, 0x47, 0x70, 0x26, 0xdd, 0x76, 0x4a +); + +// 076dfdbe-c56c-4f72-ae8a-2cfe7e5c8286 +DEFINE_GUID( + FWPM_CONDITION_ORIGINAL_ICMP_TYPE, + 0x076dfdbe, + 0xc56c, + 0x4f72, + 0xae, 0x8a, 0x2c, 0xfe, 0x7e, 0x5c, 0x82, 0x86 +); + +// da50d5c8-fa0d-4c89-b032-6e62136d1e96 +DEFINE_GUID( + FWPM_CONDITION_IP_PHYSICAL_ARRIVAL_INTERFACE, + 0xda50d5c8, + 0xfa0d, + 0x4c89, + 0xb0, 0x32, 0x6e, 0x62, 0x13, 0x6d, 0x1e, 0x96 +); + +// f09bd5ce-5150-48be-b098-c25152fb1f92 +DEFINE_GUID( + FWPM_CONDITION_IP_PHYSICAL_NEXTHOP_INTERFACE, + 0xf09bd5ce, + 0x5150, + 0x48be, + 0xb0, 0x98, 0xc2, 0x51, 0x52, 0xfb, 0x1f, 0x92 +); + +// cce68d5e-053b-43a8-9a6f-33384c28e4f6 +DEFINE_GUID( + FWPM_CONDITION_INTERFACE_QUARANTINE_EPOCH, + 0xcce68d5e, + 0x053b, + 0x43a8, + 0x9a, 0x6f, 0x33, 0x38, 0x4c, 0x28, 0xe4, 0xf6 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +// daf8cd14-e09e-4c93-a5ae-c5c13b73ffca +DEFINE_GUID( + FWPM_CONDITION_INTERFACE_TYPE, + 0xdaf8cd14, + 0xe09e, + 0x4c93, + 0xa5, 0xae, 0xc5, 0xc1, 0x3b, 0x73, 0xff, 0xca +); + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#define FWPM_CONDITION_LOCAL_INTERFACE_TYPE FWPM_CONDITION_INTERFACE_TYPE + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +// 77a40437-8779-4868-a261-f5a902f1c0cd +DEFINE_GUID( + FWPM_CONDITION_TUNNEL_TYPE, + 0x77a40437, + 0x8779, + 0x4868, + 0xa2, 0x61, 0xf5, 0xa9, 0x02, 0xf1, 0xc0, 0xcd +); + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#define FWPM_CONDITION_LOCAL_TUNNEL_TYPE FWPM_CONDITION_TUNNEL_TYPE + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +// 1076b8a5-6323-4c5e-9810-e8d3fc9e6136 +DEFINE_GUID( + FWPM_CONDITION_IP_FORWARD_INTERFACE, + 0x1076b8a5, + 0x6323, + 0x4c5e, + 0x98, 0x10, 0xe8, 0xd3, 0xfc, 0x9e, 0x61, 0x36 +); + +// 3971ef2b-623e-4f9a-8cb1-6e79b806b9a7 +DEFINE_GUID( + FWPM_CONDITION_IP_PROTOCOL, + 0x3971ef2b, + 0x623e, + 0x4f9a, + 0x8c, 0xb1, 0x6e, 0x79, 0xb8, 0x06, 0xb9, 0xa7 +); + +// 0c1ba1af-5765-453f-af22-a8f791ac775b +DEFINE_GUID( + FWPM_CONDITION_IP_LOCAL_PORT, + 0x0c1ba1af, + 0x5765, + 0x453f, + 0xaf, 0x22, 0xa8, 0xf7, 0x91, 0xac, 0x77, 0x5b +); + +#define FWPM_CONDITION_ICMP_TYPE FWPM_CONDITION_IP_LOCAL_PORT + +// c35a604d-d22b-4e1a-91b4-68f674ee674b +DEFINE_GUID( + FWPM_CONDITION_IP_REMOTE_PORT, + 0xc35a604d, + 0xd22b, + 0x4e1a, + 0x91, 0xb4, 0x68, 0xf6, 0x74, 0xee, 0x67, 0x4b +); + +#define FWPM_CONDITION_ICMP_CODE FWPM_CONDITION_IP_REMOTE_PORT + +// 4672a468-8a0a-4202-abb4-849e92e66809 +DEFINE_GUID( + FWPM_CONDITION_EMBEDDED_LOCAL_ADDRESS_TYPE, + 0x4672a468, + 0x8a0a, + 0x4202, + 0xab, 0xb4, 0x84, 0x9e, 0x92, 0xe6, 0x68, 0x09 +); + +// 77ee4b39-3273-4671-b63b-ab6feb66eeb6 +DEFINE_GUID( + FWPM_CONDITION_EMBEDDED_REMOTE_ADDRESS, + 0x77ee4b39, + 0x3273, + 0x4671, + 0xb6, 0x3b, 0xab, 0x6f, 0xeb, 0x66, 0xee, 0xb6 +); + +// 07784107-a29e-4c7b-9ec7-29c44afafdbc +DEFINE_GUID( + FWPM_CONDITION_EMBEDDED_PROTOCOL, + 0x07784107, + 0xa29e, + 0x4c7b, + 0x9e, 0xc7, 0x29, 0xc4, 0x4a, 0xfa, 0xfd, 0xbc +); + +// bfca394d-acdb-484e-b8e6-2aff79757345 +DEFINE_GUID( + FWPM_CONDITION_EMBEDDED_LOCAL_PORT, + 0xbfca394d, + 0xacdb, + 0x484e, + 0xb8, 0xe6, 0x2a, 0xff, 0x79, 0x75, 0x73, 0x45 +); + +// cae4d6a1-2968-40ed-a4ce-547160dda88d +DEFINE_GUID( + FWPM_CONDITION_EMBEDDED_REMOTE_PORT, + 0xcae4d6a1, + 0x2968, + 0x40ed, + 0xa4, 0xce, 0x54, 0x71, 0x60, 0xdd, 0xa8, 0x8d +); + +// 632ce23b-5167-435c-86d7-e903684aa80c +DEFINE_GUID( + FWPM_CONDITION_FLAGS, + 0x632ce23b, + 0x5167, + 0x435c, + 0x86, 0xd7, 0xe9, 0x03, 0x68, 0x4a, 0xa8, 0x0c +); + +// 8784c146-ca97-44d6-9fd1-19fb1840cbf7 +DEFINE_GUID( + FWPM_CONDITION_DIRECTION, + 0x8784c146, + 0xca97, + 0x44d6, + 0x9f, 0xd1, 0x19, 0xfb, 0x18, 0x40, 0xcb, 0xf7 +); + +// 667fd755-d695-434a-8af5-d3835a1259bc +DEFINE_GUID( + FWPM_CONDITION_INTERFACE_INDEX, + 0x667fd755, + 0xd695, + 0x434a, + 0x8a, 0xf5, 0xd3, 0x83, 0x5a, 0x12, 0x59, 0xbc +); + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#define FWPM_CONDITION_LOCAL_INTERFACE_INDEX FWPM_CONDITION_INTERFACE_INDEX + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +// 0cd42473-d621-4be3-ae8c-72a348d283e1 +DEFINE_GUID( + FWPM_CONDITION_SUB_INTERFACE_INDEX, + 0x0cd42473, + 0xd621, + 0x4be3, + 0xae, 0x8c, 0x72, 0xa3, 0x48, 0xd2, 0x83, 0xe1 +); + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#define FWPM_CONDITION_ARRIVAL_SUB_INTERFACE_INDEX \ + FWPM_CONDITION_SUB_INTERFACE_INDEX + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +// 2311334d-c92d-45bf-9496-edf447820e2d +DEFINE_GUID( + FWPM_CONDITION_SOURCE_INTERFACE_INDEX, + 0x2311334d, + 0xc92d, + 0x45bf, + 0x94, 0x96, 0xed, 0xf4, 0x47, 0x82, 0x0e, 0x2d +); + +// 055edd9d-acd2-4361-8dab-f9525d97662f +DEFINE_GUID( + FWPM_CONDITION_SOURCE_SUB_INTERFACE_INDEX, + 0x055edd9d, + 0xacd2, + 0x4361, + 0x8d, 0xab, 0xf9, 0x52, 0x5d, 0x97, 0x66, 0x2f +); + +// 35cf6522-4139-45ee-a0d5-67b80949d879 +DEFINE_GUID( + FWPM_CONDITION_DESTINATION_INTERFACE_INDEX, + 0x35cf6522, + 0x4139, + 0x45ee, + 0xa0, 0xd5, 0x67, 0xb8, 0x09, 0x49, 0xd8, 0x79 +); + +// 2b7d4399-d4c7-4738-a2f5-e994b43da388 +DEFINE_GUID( + FWPM_CONDITION_DESTINATION_SUB_INTERFACE_INDEX, + 0x2b7d4399, + 0xd4c7, + 0x4738, + 0xa2, 0xf5, 0xe9, 0x94, 0xb4, 0x3d, 0xa3, 0x88 +); + +// d78e1e87-8644-4ea5-9437-d809ecefc971 +DEFINE_GUID( + FWPM_CONDITION_ALE_APP_ID, + 0xd78e1e87, + 0x8644, + 0x4ea5, + 0x94, 0x37, 0xd8, 0x09, 0xec, 0xef, 0xc9, 0x71 +); + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +// 0e6cd086-e1fb-4212-842f-8a9f993fb3f6 +DEFINE_GUID( + FWPM_CONDITION_ALE_ORIGINAL_APP_ID, + 0x0e6cd086, + 0xe1fb, + 0x4212, + 0x84, 0x2f, 0x8a, 0x9f, 0x99, 0x3f, 0xb3, 0xf6 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +// af043a0a-b34d-4f86-979c-c90371af6e66 +DEFINE_GUID( + FWPM_CONDITION_ALE_USER_ID, + 0xaf043a0a, + 0xb34d, + 0x4f86, + 0x97, 0x9c, 0xc9, 0x03, 0x71, 0xaf, 0x6e, 0x66 +); + +// f63073b7-0189-4ab0-95a4-6123cbfab862 +DEFINE_GUID( + FWPM_CONDITION_ALE_REMOTE_USER_ID, + 0xf63073b7, + 0x0189, + 0x4ab0, + 0x95, 0xa4, 0x61, 0x23, 0xcb, 0xfa, 0xb8, 0x62 +); + +// 1aa47f51-7f93-4508-a271-81abb00c9cab +DEFINE_GUID( + FWPM_CONDITION_ALE_REMOTE_MACHINE_ID, + 0x1aa47f51, + 0x7f93, + 0x4508, + 0xa2, 0x71, 0x81, 0xab, 0xb0, 0x0c, 0x9c, 0xab +); + +// 1c974776-7182-46e9-afd3-b02910e30334 +DEFINE_GUID( + FWPM_CONDITION_ALE_PROMISCUOUS_MODE, + 0x1c974776, + 0x7182, + 0x46e9, + 0xaf, 0xd3, 0xb0, 0x29, 0x10, 0xe3, 0x03, 0x34 +); + +// b9f4e088-cb98-4efb-a2c7-ad07332643db +DEFINE_GUID( + FWPM_CONDITION_ALE_SIO_FIREWALL_SYSTEM_PORT, + 0xb9f4e088, + 0xcb98, + 0x4efb, + 0xa2, 0xc7, 0xad, 0x07, 0x33, 0x26, 0x43, 0xdb +); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +#define FWPM_CONDITION_ALE_SIO_FIREWALL_SOCKET_PROPERTY \ + FWPM_CONDITION_ALE_SIO_FIREWALL_SYSTEM_PORT + +// b482d227-1979-4a98-8044-18bbe6237542 +DEFINE_GUID( + FWPM_CONDITION_ALE_REAUTH_REASON, + 0xb482d227, + 0x1979, + 0x4a98, + 0x80, 0x44, 0x18, 0xbb, 0xe6, 0x23, 0x75, 0x42 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +// 46275a9d-c03f-4d77-b784-1c57f4d02753 +DEFINE_GUID( + FWPM_CONDITION_ALE_NAP_CONTEXT, + 0x46275a9d, + 0xc03f, + 0x4d77, + 0xb7, 0x84, 0x1c, 0x57, 0xf4, 0xd0, 0x27, 0x53 +); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +// 35d0ea0e-15ca-492b-900e-97fd46352cce +DEFINE_GUID( + FWPM_CONDITION_KM_AUTH_NAP_CONTEXT, + 0x35d0ea0e, + 0x15ca, + 0x492b, + 0x90, 0x0e, 0x97, 0xfd, 0x46, 0x35, 0x2c, 0xce +); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +// 9bf0ee66-06c9-41b9-84da-288cb43af51f +DEFINE_GUID( + FWPM_CONDITION_REMOTE_USER_TOKEN, + 0x9bf0ee66, + 0x06c9, + 0x41b9, + 0x84, 0xda, 0x28, 0x8c, 0xb4, 0x3a, 0xf5, 0x1f +); + +// 7c9c7d9f-0075-4d35-a0d1-8311c4cf6af1 +DEFINE_GUID( + FWPM_CONDITION_RPC_IF_UUID, + 0x7c9c7d9f, + 0x0075, + 0x4d35, + 0xa0, 0xd1, 0x83, 0x11, 0xc4, 0xcf, 0x6a, 0xf1 +); + +// eabfd9b7-1262-4a2e-adaa-5f96f6fe326d +DEFINE_GUID( + FWPM_CONDITION_RPC_IF_VERSION, + 0xeabfd9b7, + 0x1262, + 0x4a2e, + 0xad, 0xaa, 0x5f, 0x96, 0xf6, 0xfe, 0x32, 0x6d +); + +// 238a8a32-3199-467d-871c-272621ab3896 +DEFINE_GUID( + FWPM_CONDITION_RPC_IF_FLAG, + 0x238a8a32, + 0x3199, + 0x467d, + 0x87, 0x1c, 0x27, 0x26, 0x21, 0xab, 0x38, 0x96 +); + +// ff2e7b4d-3112-4770-b636-4d24ae3a6af2 +DEFINE_GUID( + FWPM_CONDITION_DCOM_APP_ID, + 0xff2e7b4d, + 0x3112, + 0x4770, + 0xb6, 0x36, 0x4d, 0x24, 0xae, 0x3a, 0x6a, 0xf2 +); + +// d024de4d-deaa-4317-9c85-e40ef6e140c3 +DEFINE_GUID( + FWPM_CONDITION_IMAGE_NAME, + 0xd024de4d, + 0xdeaa, + 0x4317, + 0x9c, 0x85, 0xe4, 0x0e, 0xf6, 0xe1, 0x40, 0xc3 +); + +// 2717bc74-3a35-4ce7-b7ef-c838fabdec45 +DEFINE_GUID( + FWPM_CONDITION_RPC_PROTOCOL, + 0x2717bc74, + 0x3a35, + 0x4ce7, + 0xb7, 0xef, 0xc8, 0x38, 0xfa, 0xbd, 0xec, 0x45 +); + +// daba74ab-0d67-43e7-986e-75b84f82f594 +DEFINE_GUID( + FWPM_CONDITION_RPC_AUTH_TYPE, + 0xdaba74ab, + 0x0d67, + 0x43e7, + 0x98, 0x6e, 0x75, 0xb8, 0x4f, 0x82, 0xf5, 0x94 +); + +// e5a0aed5-59ac-46ea-be05-a5f05ecf446e +DEFINE_GUID( + FWPM_CONDITION_RPC_AUTH_LEVEL, + 0xe5a0aed5, + 0x59ac, + 0x46ea, + 0xbe, 0x05, 0xa5, 0xf0, 0x5e, 0xcf, 0x44, 0x6e +); + +// 0d306ef0-e974-4f74-b5c7-591b0da7d562 +DEFINE_GUID( + FWPM_CONDITION_SEC_ENCRYPT_ALGORITHM, + 0x0d306ef0, + 0xe974, + 0x4f74, + 0xb5, 0xc7, 0x59, 0x1b, 0x0d, 0xa7, 0xd5, 0x62 +); + +// 4772183b-ccf8-4aeb-bce1-c6c6161c8fe4 +DEFINE_GUID( + FWPM_CONDITION_SEC_KEY_SIZE, + 0x4772183b, + 0xccf8, + 0x4aeb, + 0xbc, 0xe1, 0xc6, 0xc6, 0x16, 0x1c, 0x8f, 0xe4 +); + +// 03a629cb-6e52-49f8-9c41-5709633c09cf +DEFINE_GUID( + FWPM_CONDITION_IP_LOCAL_ADDRESS_V4, + 0x03a629cb, + 0x6e52, + 0x49f8, + 0x9c, 0x41, 0x57, 0x09, 0x63, 0x3c, 0x09, 0xcf +); + +// 2381be84-7524-45b3-a05b-1e637d9c7a6a +DEFINE_GUID( + FWPM_CONDITION_IP_LOCAL_ADDRESS_V6, + 0x2381be84, + 0x7524, + 0x45b3, + 0xa0, 0x5b, 0x1e, 0x63, 0x7d, 0x9c, 0x7a, 0x6a +); + +// 1bd0741d-e3df-4e24-8634-762046eef6eb +DEFINE_GUID( + FWPM_CONDITION_PIPE, + 0x1bd0741d, + 0xe3df, + 0x4e24, + 0x86, 0x34, 0x76, 0x20, 0x46, 0xee, 0xf6, 0xeb +); + +// 1febb610-3bcc-45e1-bc36-2e067e2cb186 +DEFINE_GUID( + FWPM_CONDITION_IP_REMOTE_ADDRESS_V4, + 0x1febb610, + 0x3bcc, + 0x45e1, + 0xbc, 0x36, 0x2e, 0x06, 0x7e, 0x2c, 0xb1, 0x86 +); + +// 246e1d8c-8bee-4018-9b98-31d4582f3361 +DEFINE_GUID( + FWPM_CONDITION_IP_REMOTE_ADDRESS_V6, + 0x246e1d8c, + 0x8bee, + 0x4018, + 0x9b, 0x98, 0x31, 0xd4, 0x58, 0x2f, 0x33, 0x61 +); + +// d58efb76-aab7-4148-a87e-9581134129b9 +DEFINE_GUID( + FWPM_CONDITION_RPC_OPNUM, + 0xd58efb76, + 0xaab7, + 0x4148, + 0xa8, 0x7e, 0x95, 0x81, 0x13, 0x41, 0x29, 0xb9 +); + +// e31180a8-bbbd-4d14-a65e-7157b06233bb +DEFINE_GUID( + FWPM_CONDITION_PROCESS_WITH_RPC_IF_UUID, + 0xe31180a8, + 0xbbbd, + 0x4d14, + 0xa6, 0x5e, 0x71, 0x57, 0xb0, 0x62, 0x33, 0xbb +); + +// dccea0b9-0886-4360-9c6a-ab043a24fba9 +DEFINE_GUID( + FWPM_CONDITION_RPC_EP_VALUE, + 0xdccea0b9, + 0x0886, + 0x4360, + 0x9c, 0x6a, 0xab, 0x04, 0x3a, 0x24, 0xfb, 0xa9 +); + +// 218b814a-0a39-49b8-8e71-c20c39c7dd2e +DEFINE_GUID( + FWPM_CONDITION_RPC_EP_FLAGS, + 0x218b814a, + 0x0a39, + 0x49b8, + 0x8e, 0x71, 0xc2, 0x0c, 0x39, 0xc7, 0xdd, 0x2e +); + +// c228fc1e-403a-4478-be05-c9baa4c05ace +DEFINE_GUID( + FWPM_CONDITION_CLIENT_TOKEN, + 0xc228fc1e, + 0x403a, + 0x4478, + 0xbe, 0x05, 0xc9, 0xba, 0xa4, 0xc0, 0x5a, 0xce +); + +// b605a225-c3b3-48c7-9833-7aefa9527546 +DEFINE_GUID( + FWPM_CONDITION_RPC_SERVER_NAME, + 0xb605a225, + 0xc3b3, + 0x48c7, + 0x98, 0x33, 0x7a, 0xef, 0xa9, 0x52, 0x75, 0x46 +); + +// 8090f645-9ad5-4e3b-9f9f-8023ca097909 +DEFINE_GUID( + FWPM_CONDITION_RPC_SERVER_PORT, + 0x8090f645, + 0x9ad5, + 0x4e3b, + 0x9f, 0x9f, 0x80, 0x23, 0xca, 0x09, 0x79, 0x09 +); + +// 40953fe2-8565-4759-8488-1771b4b4b5db +DEFINE_GUID( + FWPM_CONDITION_RPC_PROXY_AUTH_TYPE, + 0x40953fe2, + 0x8565, + 0x4759, + 0x84, 0x88, 0x17, 0x71, 0xb4, 0xb4, 0xb5, 0xdb +); + +// a3ec00c7-05f4-4df7-91f2-5f60d91ff443 +DEFINE_GUID( + FWPM_CONDITION_CLIENT_CERT_KEY_LENGTH, + 0xa3ec00c7, + 0x05f4, + 0x4df7, + 0x91, 0xf2, 0x5f, 0x60, 0xd9, 0x1f, 0xf4, 0x43 +); + +// c491ad5e-f882-4283-b916-436b103ff4ad +DEFINE_GUID( + FWPM_CONDITION_CLIENT_CERT_OID, + 0xc491ad5e, + 0xf882, + 0x4283, + 0xb9, 0x16, 0x43, 0x6b, 0x10, 0x3f, 0xf4, 0xad +); + +// 206e9996-490e-40cf-b831-b38641eb6fcb +DEFINE_GUID( + FWPM_CONDITION_NET_EVENT_TYPE, + 0x206e9996, + 0x490e, + 0x40cf, + 0xb8, 0x31, 0xb3, 0x86, 0x41, 0xeb, 0x6f, 0xcb +); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +// 9b539082-eb90-4186-a6cc-de5b63235016 +DEFINE_GUID( + FWPM_CONDITION_PEER_NAME, + 0x9b539082, + 0xeb90, + 0x4186, + 0xa6, 0xcc, 0xde, 0x5b, 0x63, 0x23, 0x50, 0x16 +); + +//f68166fd-0682-4c89-b8f5-86436c7ef9b7 +DEFINE_GUID( + FWPM_CONDITION_REMOTE_ID, + 0xf68166fd, + 0x0682, + 0x4c89, + 0xb8, 0xf5, 0x86, 0x43, 0x6c, 0x7e, 0xf9, 0xb7 +); + +//eb458cd5-da7b-4ef9-8d43-7b0a840332f2 +DEFINE_GUID( + FWPM_CONDITION_AUTHENTICATION_TYPE, + 0xeb458cd5, + 0xda7b, + 0x4ef9, + 0x8d, 0x43, 0x7b, 0x0a, 0x84, 0x03, 0x32, 0xf2 +); + +//ff0f5f49-0ceb-481b-8638-1479791f3f2c +DEFINE_GUID( + FWPM_CONDITION_KM_TYPE, + 0xff0f5f49, + 0x0ceb, + 0x481b, + 0x86, 0x38, 0x14, 0x79, 0x79, 0x1f, 0x3f, 0x2c +); + +//feef4582-ef8f-4f7b-858b-9077d122de47 +DEFINE_GUID( + FWPM_CONDITION_KM_MODE, + 0xfeef4582, + 0xef8f, + 0x4f7b, + 0x85, 0x8b, 0x90, 0x77, 0xd1, 0x22, 0xde, 0x47 +); + +//ad37dee3-722f-45cc-a4e3-068048124452 +DEFINE_GUID( + FWPM_CONDITION_IPSEC_POLICY_KEY, + 0xad37dee3, + 0x722f, + 0x45cc, + 0xa4, 0xe3, 0x06, 0x80, 0x48, 0x12, 0x44, 0x52 +); + +#if (NTDDI_VERSION >= NTDDI_WIN8) +//f64fc6d1-f9cb-43d2-8a5f-e13bc894f265 +DEFINE_GUID( + FWPM_CONDITION_QM_MODE, + 0xf64fc6d1, + 0xf9cb, + 0x43d2, + 0x8a, 0x5f, 0xe1, 0x3b, 0xc8, 0x94, 0xf2, 0x65 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +// 35A791AB-04AC-4FF2-A6BB-DA6CFAC71806 +DEFINE_GUID( + FWPM_CONDITION_COMPARTMENT_ID, + 0x35a791ab, + 0x4ac, + 0x4ff2, + 0xa6, 0xbb, 0xda, 0x6c, 0xfa, 0xc7, 0x18, 0x6 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +//678f4deb-45af-4882-93fe-19d4729d9834 +DEFINE_GUID( + FWPM_CONDITION_RESERVED0, + 0x678f4deb, + 0x45af, + 0x4882, + 0x93, 0xfe, 0x19, 0xd4, 0x72, 0x9d, 0x98, 0x34 + ); + +//d818f827-5c69-48eb-bf80-d86b17755f97 +DEFINE_GUID( + FWPM_CONDITION_RESERVED1, + 0xd818f827, + 0x5c69, + 0x48eb, + 0xbf, 0x80, 0xd8, 0x6b, 0x17, 0x75, 0x5f, 0x97 + ); + +//53d4123d-e15b-4e84-b7a8-dce16f7b62d9 +DEFINE_GUID( + FWPM_CONDITION_RESERVED2, + 0x53d4123d, + 0xe15b, + 0x4e84, + 0xb7, 0xa8,0xdc, 0xe1, 0x6f, 0x7b, 0x62, 0xd9 + ); + +//7f6e8ca3-6606-4932-97c7-e1f20710af3b +DEFINE_GUID( + FWPM_CONDITION_RESERVED3, + 0x7f6e8ca3, + 0x6606, + 0x4932, + 0x97, 0xc7, 0xe1, 0xf2, 0x07, 0x10, 0xaf, 0x3b + ); + +//5f58e642-b937-495e-a94b-f6b051a49250 +DEFINE_GUID( + FWPM_CONDITION_RESERVED4, + 0x5f58e642, + 0xb937, + 0x495e, + 0xa9, 0x4b, 0xf6, 0xb0, 0x51, 0xa4, 0x92, 0x50 +); + +//9ba8f6cd-f77c-43e6-8847-11939dc5db5a +DEFINE_GUID( + FWPM_CONDITION_RESERVED5, + 0x9ba8f6cd, + 0xf77c, + 0x43e6, + 0x88, 0x47, 0x11, 0x93, 0x9d, 0xc5, 0xdb, 0x5a +); + +//f13d84bd-59d5-44c4-8817-5ecdae1805bd +DEFINE_GUID( + FWPM_CONDITION_RESERVED6, + 0xf13d84bd, + 0x59d5, + 0x44c4, + 0x88, 0x17, 0x5e, 0xcd, 0xae, 0x18, 0x05, 0xbd +); + +//65a0f930-45dd-4983-aa33-efc7b611af08 +DEFINE_GUID( + FWPM_CONDITION_RESERVED7, + 0x65a0f930, + 0x45dd, + 0x4983, + 0xaa, 0x33, 0xef, 0xc7, 0xb6, 0x11, 0xaf, 0x08 +); + +//4f424974-0c12-4816-9b47-9a547db39a32 +DEFINE_GUID( + FWPM_CONDITION_RESERVED8, + 0x4f424974, + 0x0c12, + 0x4816, + 0x9b, 0x47, 0x9a, 0x54, 0x7d, 0xb3, 0x9a, 0x32 +); + +//ce78e10f-13ff-4c70-8643-36ad1879afa3 +DEFINE_GUID( + FWPM_CONDITION_RESERVED9, + 0xce78e10f, + 0x13ff, + 0x4c70, + 0x86, 0x43, 0x36, 0xad, 0x18, 0x79, 0xaf, 0xa3 +); + +//b979e282-d621-4c8c-b184-b105a61c36ce +DEFINE_GUID( + FWPM_CONDITION_RESERVED10, + 0xb979e282, + 0xd621, + 0x4c8c, + 0xb1, 0x84, 0xb1, 0x05, 0xa6, 0x1c, 0x36, 0xce +); + +//2d62ee4d-023d-411f-9582-43acbb795975 +DEFINE_GUID( + FWPM_CONDITION_RESERVED11, + 0x2d62ee4d, + 0x023d, + 0x411f, + 0x95, 0x82, 0x43, 0xac, 0xbb, 0x79, 0x59, 0x75 +); + +//a3677c32-7e35-4ddc-93da-e8c33fc923c7 +DEFINE_GUID( + FWPM_CONDITION_RESERVED12, + 0xa3677c32, + 0x7e35, + 0x4ddc, + 0x93, 0xda, 0xe8, 0xc3, 0x3f, 0xc9, 0x23, 0xc7 +); + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) + +// 335a3e90-84aa-42f5-9e6f-59309536a44c +DEFINE_GUID( + FWPM_CONDITION_RESERVED13, + 0x335a3e90, + 0x84aa, + 0x42f5, + 0x9e, 0x6f, 0x59, 0x30, 0x95, 0x36, 0xa4, 0x4c +); + +// 30e44da2-2f1a-4116-a559-f907de83604a +DEFINE_GUID( + FWPM_CONDITION_RESERVED14, + 0x30e44da2, + 0x2f1a, + 0x4116, + 0xa5, 0x59, 0xf9, 0x07, 0xde, 0x83, 0x60, 0x4a +); + +// bab8340f-afe0-43d1-80d8-5ca456962de3 +DEFINE_GUID( + FWPM_CONDITION_RESERVED15, + 0xbab8340f, + 0xafe0, + 0x43d1, + 0x80, 0xd8, 0x5c, 0xa4, 0x56, 0x96, 0x2d, 0xe3 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +/////////////////////////////////////////////////////////////////////////////// +// +// GUIDs for built-in providers. +// +/////////////////////////////////////////////////////////////////////////////// + +// 10ad9216-ccde-456c-8b16-e9f04e60a90b +DEFINE_GUID( + FWPM_PROVIDER_IKEEXT, + 0x10ad9216, + 0xccde, + 0x456c, + 0x8b, 0x16, 0xe9, 0xf0, 0x4e, 0x60, 0xa9, 0x0b +); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +// 3c6c05a9-c05c-4bb9-8338-2327814ce8bf +DEFINE_GUID( + FWPM_PROVIDER_IPSEC_DOSP_CONFIG, + 0x3c6c05a9, + 0xc05c, + 0x4bb9, + 0x83, 0x38, 0x23, 0x27, 0x81, 0x4c, 0xe8, 0xbf +); +#endif + +// 896aa19e-9a34-4bcb-ae79-beb9127c84b9 +DEFINE_GUID( + FWPM_PROVIDER_TCP_CHIMNEY_OFFLOAD, + 0x896aa19e, + 0x9a34, + 0x4bcb, + 0xae, 0x79, 0xbe, 0xb9, 0x12, 0x7c, 0x84, 0xb9 +); + +#if (NTDDI_VERSION >= NTDDI_WIN8) +// 76cfcd30-3394-432d-bed3-441ae50e63c3 +DEFINE_GUID( + FWPM_PROVIDER_TCP_TEMPLATES, + 0x76cfcd30, + 0x3394, + 0x432d, + 0xbe, 0xd3, 0x44, 0x1a, 0xe5, 0x0e, 0x63, 0xc3 +); + +// 4b153735-1049-4480-aab4-d1b9bdc03710 +DEFINE_GUID( + FWPM_PROVIDER_MPSSVC_WSH, + 0x4b153735, + 0x1049, + 0x4480, + 0xaa, 0xb4, 0xd1, 0xb9, 0xbd, 0xc0, 0x37, 0x10 +); + +// decc16ca-3f33-4346-be1e-8fb4ae0f3d62 +DEFINE_GUID( + FWPM_PROVIDER_MPSSVC_WF, + 0xdecc16ca, + 0x3f33, + 0x4346, + 0xbe, 0x1e, 0x8f, 0xb4, 0xae, 0x0f, 0x3d, 0x62 +); + +// a90296f7-46b8-4457-8f84-b05e05d3c622 +DEFINE_GUID( + FWPM_PROVIDER_MPSSVC_EDP, + 0xa90296f7, + 0x46b8, + 0x4457, + 0x8f, 0x84, 0xb0, 0x5e, 0x05, 0xd3, 0xc6, 0x22 +); + +// d0718ff9-44da-4f50-9dc2-c963a4247613 +DEFINE_GUID( + FWPM_PROVIDER_MPSSVC_TENANT_RESTRICTIONS, + 0xd0718ff9, + 0x44da, + 0x4f50, + 0x9d, 0xc2, 0xc9, 0x63, 0xa4, 0x24, 0x76, 0x13 +); + +// 3cc2631f-2d5d-43a0-b174-614837d863a1 +DEFINE_GUID( + FWPM_PROVIDER_MPSSVC_APP_ISOLATION, + 0x3cc2631f, + 0x2d5d, + 0x43a0, + 0xb1, 0x74, 0x61, 0x48, 0x37, 0xd8, 0x63, 0xa1 +); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +/////////////////////////////////////////////////////////////////////////////// +// +// GUIDs for built-in callouts. +// +/////////////////////////////////////////////////////////////////////////////// + +// 5132900d-5e84-4b5f-80e4-01741e81ff10 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_INBOUND_TRANSPORT_V4, + 0x5132900d, + 0x5e84, + 0x4b5f, + 0x80, 0xe4, 0x01, 0x74, 0x1e, 0x81, 0xff, 0x10 +); + +// 49d3ac92-2a6c-4dcf-955f-1c3be009dd99 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_INBOUND_TRANSPORT_V6, + 0x49d3ac92, + 0x2a6c, + 0x4dcf, + 0x95, 0x5f, 0x1c, 0x3b, 0xe0, 0x09, 0xdd, 0x99 +); + +// 4b46bf0a-4523-4e57-aa38-a87987c910d9 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_OUTBOUND_TRANSPORT_V4, + 0x4b46bf0a, + 0x4523, + 0x4e57, + 0xaa, 0x38, 0xa8, 0x79, 0x87, 0xc9, 0x10, 0xd9 +); + +// 38d87722-ad83-4f11-a91f-df0fb077225b +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_OUTBOUND_TRANSPORT_V6, + 0x38d87722, + 0xad83, + 0x4f11, + 0xa9, 0x1f, 0xdf, 0x0f, 0xb0, 0x77, 0x22, 0x5b +); + +// 191a8a46-0bf8-46cf-b045-4b45dfa6a324 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_INBOUND_TUNNEL_V4, + 0x191a8a46, + 0x0bf8, + 0x46cf, + 0xb0, 0x45, 0x4b, 0x45, 0xdf, 0xa6, 0xa3, 0x24 +); + +// 80c342e3-1e53-4d6f-9b44-03df5aeee154 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_INBOUND_TUNNEL_V6, + 0x80c342e3, + 0x1e53, + 0x4d6f, + 0x9b, 0x44, 0x03, 0xdf, 0x5a, 0xee, 0xe1, 0x54 +); + +// 70a4196c-835b-4fb0-98e8-075f4d977d46 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_OUTBOUND_TUNNEL_V4, + 0x70a4196c, + 0x835b, + 0x4fb0, + 0x98, 0xe8, 0x07, 0x5f, 0x4d, 0x97, 0x7d, 0x46 +); + +// f1835363-a6a5-4e62-b180-23db789d8da6 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_OUTBOUND_TUNNEL_V6, + 0xf1835363, + 0xa6a5, + 0x4e62, + 0xb1, 0x80, 0x23, 0xdb, 0x78, 0x9d, 0x8d, 0xa6 +); + +// 28829633-c4f0-4e66-873f-844db2a899c7 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_FORWARD_INBOUND_TUNNEL_V4, + 0x28829633, + 0xc4f0, + 0x4e66, + 0x87, 0x3f, 0x84, 0x4d, 0xb2, 0xa8, 0x99, 0xc7 +); + +// af50bec2-c686-429a-884d-b74443e7b0b4 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_FORWARD_INBOUND_TUNNEL_V6, + 0xaf50bec2, + 0xc686, + 0x429a, + 0x88, 0x4d, 0xb7, 0x44, 0x43, 0xe7, 0xb0, 0xb4 +); + +// fb532136-15cb-440b-937c-1717ca320c40 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_FORWARD_OUTBOUND_TUNNEL_V4, + 0xfb532136, + 0x15cb, + 0x440b, + 0x93, 0x7c, 0x17, 0x17, 0xca, 0x32, 0x0c, 0x40 +); + +// dae640cc-e021-4bee-9eb6-a48b275c8c1d +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_FORWARD_OUTBOUND_TUNNEL_V6, + 0xdae640cc, + 0xe021, + 0x4bee, + 0x9e, 0xb6, 0xa4, 0x8b, 0x27, 0x5c, 0x8c, 0x1d +); + +// 7dff309b-ba7d-4aba-91aa-ae5c6640c944 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_INBOUND_INITIATE_SECURE_V4, + 0x7dff309b, + 0xba7d, + 0x4aba, + 0x91, 0xaa, 0xae, 0x5c, 0x66, 0x40, 0xc9, 0x44 +); + +// a9a0d6d9-c58c-474e-8aeb-3cfe99d6d53d +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_INBOUND_INITIATE_SECURE_V6, + 0xa9a0d6d9, + 0xc58c, + 0x474e, + 0x8a, 0xeb, 0x3c, 0xfe, 0x99, 0xd6, 0xd5, 0x3d +); + +// 3df6e7de-fd20-48f2-9f26-f854444cba79 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_INBOUND_TUNNEL_ALE_ACCEPT_V4, + 0x3df6e7de, + 0xfd20, + 0x48f2, + 0x9f, 0x26, 0xf8, 0x54, 0x44, 0x4c, 0xba, 0x79 +); + +// a1e392d3-72ac-47bb-87a7-0122c69434ab +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_INBOUND_TUNNEL_ALE_ACCEPT_V6, + 0xa1e392d3, + 0x72ac, + 0x47bb, + 0x87, 0xa7, 0x01, 0x22, 0xc6, 0x94, 0x34, 0xab +); + +// 6ac141fc-f75d-4203-b9c8-48e6149c2712 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_ALE_CONNECT_V4, + 0x6ac141fc, + 0xf75d, + 0x4203, + 0xb9,0xc8,0x48, 0xe6, 0x14, 0x9c, 0x27, 0x12 +); + +// 4c0dda05-e31f-4666-90b0-b3dfad34129a +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_ALE_CONNECT_V6, + 0x4c0dda05, + 0xe31f, + 0x4666, + 0x90, 0xb0, 0xb3, 0xdf, 0xad, 0x34, 0x12, 0x9a +); + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +// 6d08a342-db9e-4fbe-9ed2-57374ce89f79 +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_DOSP_FORWARD_V6, + 0x6d08a342, + 0xdb9e, + 0x4fbe, + 0x9e, 0xd2, 0x57, 0x37, 0x4c, 0xe8, 0x9f, 0x79 +); + +// 2fcb56ec-cd37-4b4f-b108-62c2b1850a0c +DEFINE_GUID( + FWPM_CALLOUT_IPSEC_DOSP_FORWARD_V4, + 0x2fcb56ec, + 0xcd37, + 0x4b4f, + 0xb1, 0x08, 0x62, 0xc2, 0xb1, 0x85, 0x0a, 0x0c +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +// eda08606-2494-4d78-89bc-67837c03b969 +DEFINE_GUID( + FWPM_CALLOUT_WFP_TRANSPORT_LAYER_V4_SILENT_DROP, + 0xeda08606, + 0x2494, + 0x4d78, + 0x89, 0xbc, 0x67, 0x83, 0x7c, 0x03, 0xb9, 0x69 +); + +// 8693cc74-a075-4156-b476-9286eece814e +DEFINE_GUID( + FWPM_CALLOUT_WFP_TRANSPORT_LAYER_V6_SILENT_DROP, + 0x8693cc74, + 0xa075, + 0x4156, + 0xb4, 0x76, 0x92, 0x86, 0xee, 0xce, 0x81, 0x4e +); + +// f3e10ab3-2c25-4279-ac36-c30fc181bec4 +DEFINE_GUID( + FWPM_CALLOUT_TCP_CHIMNEY_CONNECT_LAYER_V4, + 0xf3e10ab3, + 0x2c25, + 0x4279, + 0xac, 0x36, 0xc3, 0x0f, 0xc1, 0x81, 0xbe, 0xc4 +); + +// 39e22085-a341-42fc-a279-aec94e689c56 +DEFINE_GUID( + FWPM_CALLOUT_TCP_CHIMNEY_CONNECT_LAYER_V6, + 0x39e22085, + 0xa341, + 0x42fc, + 0xa2, 0x79, 0xae, 0xc9, 0x4e, 0x68, 0x9c, 0x56 +); + +// e183ecb2-3a7f-4b54-8ad9-76050ed880ca +DEFINE_GUID( + FWPM_CALLOUT_TCP_CHIMNEY_ACCEPT_LAYER_V4, + 0xe183ecb2, + 0x3a7f, + 0x4b54, + 0x8a, 0xd9, 0x76, 0x05, 0x0e, 0xd8, 0x80, 0xca +); + +// 0378cf41-bf98-4603-81f2-7f12586079f6 +DEFINE_GUID( + FWPM_CALLOUT_TCP_CHIMNEY_ACCEPT_LAYER_V6, + 0x0378cf41, + 0xbf98, + 0x4603, + 0x81, 0xf2, 0x7f, 0x12, 0x58, 0x60, 0x79, 0xf6 +); + +// bc582280-1677-41e9-94ab-c2fcb15c2eeb +DEFINE_GUID( + FWPM_CALLOUT_SET_OPTIONS_AUTH_CONNECT_LAYER_V4, + 0xbc582280, + 0x1677, + 0x41e9, + 0x94, 0xab, 0xc2, 0xfc, 0xb1, 0x5c, 0x2e, 0xeb +); + +// 98e5373c-b884-490f-b65f-2f6a4a575195 +DEFINE_GUID( + FWPM_CALLOUT_SET_OPTIONS_AUTH_CONNECT_LAYER_V6, + 0x98e5373c, + 0xb884, + 0x490f, + 0xb6, 0x5f, 0x2f, 0x6a, 0x4a, 0x57, 0x51, 0x95 +); + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +// 2d55f008-0c01-4f92-b26e-a08a94569b8d +DEFINE_GUID( + FWPM_CALLOUT_SET_OPTIONS_AUTH_RECV_ACCEPT_LAYER_V4, + 0x2d55f008, + 0x0c01, + 0x4f92, + 0xb2, 0x6e, 0xa0, 0x8a, 0x94, 0x56, 0x9b, 0x8d +); + +// 63018537-f281-4dc4-83d3-8dec18b7ade2 +DEFINE_GUID( + FWPM_CALLOUT_SET_OPTIONS_AUTH_RECV_ACCEPT_LAYER_V6, + 0x63018537, + 0xf281, + 0x4dc4, + 0x83, 0xd3, 0x8d, 0xec, 0x18, 0xb7, 0xad, 0xe2 +); + +// 288B524D-0566-4e19-B612-8F441A2E5949 +DEFINE_GUID( + FWPM_CALLOUT_RESERVED_AUTH_CONNECT_LAYER_V4, + 0x288b524d, + 0x566, + 0x4e19, + 0xb6, 0x12, 0x8f, 0x44, 0x1a, 0x2e, 0x59, 0x49 +); + +// 00B84B92-2B5E-4b71-AB0E-AACA43E387E6 +DEFINE_GUID( + FWPM_CALLOUT_RESERVED_AUTH_CONNECT_LAYER_V6, + 0xb84b92, + 0x2b5e, + 0x4b71, + 0xab, 0xe, 0xaa, 0xca, 0x43, 0xe3, 0x87, 0xe6 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +// 31b95392-066e-42a2-b7db-92f8acdd56f9 +DEFINE_GUID( + FWPM_CALLOUT_TEREDO_ALE_RESOURCE_ASSIGNMENT_V6, + 0x31b95392, + 0x066e, + 0x42a2, + 0xb7, 0xdb, 0x92, 0xf8, 0xac, 0xdd, 0x56, 0xf9 +); + +#define FWPM_CALLOUT_EDGE_TRAVERSAL_ALE_RESOURCE_ASSIGNMENT_V6 \ + FWPM_CALLOUT_TEREDO_ALE_RESOURCE_ASSIGNMENT_V6 + +// 079b1010-f1c5-4fcd-ae05-da41107abd0b +DEFINE_GUID( + FWPM_CALLOUT_EDGE_TRAVERSAL_ALE_RESOURCE_ASSIGNMENT_V4, + 0x079b1010, + 0xf1c5, + 0x4fcd, + 0xae, 0x05, 0xda, 0x41, 0x10, 0x7a, 0xbd, 0x0b +); + +// 81a434e7-f60c-4378-bab8-c625a30f0197 +DEFINE_GUID( + FWPM_CALLOUT_TEREDO_ALE_LISTEN_V6, + 0x81a434e7, + 0xf60c, + 0x4378, + 0xba, 0xb8, 0xc6, 0x25, 0xa3, 0x0f, 0x01, 0x97 +); + +#define FWPM_CALLOUT_EDGE_TRAVERSAL_ALE_LISTEN_V6 \ + FWPM_CALLOUT_TEREDO_ALE_LISTEN_V6 + +// 33486ab5-6d5e-4e65-a00b-a7afed0ba9a1 +DEFINE_GUID( + FWPM_CALLOUT_EDGE_TRAVERSAL_ALE_LISTEN_V4, + 0x33486ab5, + 0x6d5e, + 0x4e65, + 0xa0, 0x0b, 0xa7, 0xaf, 0xed, 0x0b, 0xa9, 0xa1 +); + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +// 215a0b39-4b7e-4eda-8ce4-179679df6224 +DEFINE_GUID( + FWPM_CALLOUT_TCP_TEMPLATES_CONNECT_LAYER_V4, + 0x215a0b39, + 0x4b7e, + 0x4eda, + 0x8c, 0xe4, 0x17, 0x96, 0x79, 0xdf, 0x62, 0x24 +); + +// 838b37a1-5c12-4d34-8b38-078728b2d25c +DEFINE_GUID( + FWPM_CALLOUT_TCP_TEMPLATES_CONNECT_LAYER_V6, + 0x838b37a1, + 0x5c12, + 0x4d34, + 0x8b, 0x38, 0x07, 0x87, 0x28, 0xb2, 0xd2, 0x5c +); + +// 2f23f5d0-40c4-4c41-a254-46d8dba8957c +DEFINE_GUID( + FWPM_CALLOUT_TCP_TEMPLATES_ACCEPT_LAYER_V4, + 0x2f23f5d0, + 0x40c4, + 0x4c41, + 0xa2, 0x54, 0x46, 0xd8, 0xdb, 0xa8, 0x95, 0x7c +); + +// b25152f0-991c-4f53-bbe7-d24b45fe632c +DEFINE_GUID( + FWPM_CALLOUT_TCP_TEMPLATES_ACCEPT_LAYER_V6, + 0xb25152f0, + 0x991c, + 0x4f53, + 0xbb, 0xe7, 0xd2, 0x4b, 0x45, 0xfe, 0x63, 0x2c +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +// 5FBFC31D-A51C-44DC-ACB6-0624A030A700 +DEFINE_GUID( + FWPM_CALLOUT_POLICY_SILENT_MODE_AUTH_CONNECT_LAYER_V4, + 0x5fbfc31d, + 0xa51c, + 0x44dc, + 0xac, 0xb6, 0x6, 0x24, 0xa0, 0x30, 0xa7, 0x00 +); + +// 5FBFC31D-A51C-44DC-ACB6-0624A030A701 +DEFINE_GUID( + FWPM_CALLOUT_POLICY_SILENT_MODE_AUTH_CONNECT_LAYER_V6, + 0x5fbfc31d, + 0xa51c, + 0x44dc, + 0xac, 0xb6, 0x6, 0x24, 0xa0, 0x30, 0xa7, 0x01 +); + +// 5FBFC31D-A51C-44DC-ACB6-0624A030A702 +DEFINE_GUID( + FWPM_CALLOUT_POLICY_SILENT_MODE_AUTH_RECV_ACCEPT_LAYER_V4, + 0x5fbfc31d, + 0xa51c, + 0x44dc, + 0xac, 0xb6, 0x6, 0x24, 0xa0, 0x30, 0xa7, 0x02 +); + +// 5FBFC31D-A51C-44DC-ACB6-0624A030A703 +DEFINE_GUID( + FWPM_CALLOUT_POLICY_SILENT_MODE_AUTH_RECV_ACCEPT_LAYER_V6, + 0x5fbfc31d, + 0xa51c, + 0x44dc, + 0xac, 0xb6, 0x6, 0x24, 0xa0, 0x30, 0xa7, 0x03 +); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +// b3423249-8d09-4858-9210-95c7fda8e30f +DEFINE_GUID( + FWPM_CALLOUT_HTTP_TEMPLATE_SSL_HANDSHAKE, + 0xb3423249, + 0x8d09, + 0x4858, + 0x92, 0x10, 0x95, 0xc7, 0xfd, 0xa8, 0xe3, 0x0f + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +#if (NTDDI_VERSION >= NTDDI_WIN10_NI) + +//103090d4-8e28-4fd6-9894-d1d67d6b10c9 +DEFINE_GUID( + FWPM_CALLOUT_OUTBOUND_NETWORK_CONNECTION_POLICY_LAYER_V4, + 0x103090d4, + 0x8e28, + 0x4fd6, + 0x98, 0x94, 0xd1, 0xd6, 0x7d, 0x6b, 0x10, 0xc9 + ); + +//4ed3446d-8dc7-459b-b09f-c1cb7a8f8689 +DEFINE_GUID( + FWPM_CALLOUT_OUTBOUND_NETWORK_CONNECTION_POLICY_LAYER_V6, + 0x4ed3446d, + 0x8dc7, + 0x459b, + 0xb0, 0x9f, 0xc1, 0xcb, 0x7a, 0x8f, 0x86, 0x89 + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_NI) + +/////////////////////////////////////////////////////////////////////////////// +// +// GUIDs for private built-in callouts. +// +/////////////////////////////////////////////////////////////////////////////// +#if (NTDDI_VERSION >= NTDDI_WIN10_FE) +// {779719a4-e695-47b6-a199-7999fec9163b} +DEFINE_GUID(FWPM_CALLOUT_BUILT_IN_RESERVED_1, + 0x779719a4, + 0xe695, + 0x47b6, + 0xa1, 0x99, 0x79, 0x99, 0xfe, 0xc9, 0x16, 0x3b +); + +// {ef9661b6-7c5e-48fd-a130-96678ceacc41} +DEFINE_GUID(FWPM_CALLOUT_BUILT_IN_RESERVED_2, + 0xef9661b6, + 0x7c5e, + 0x48fd, + 0xa1, 0x30, 0x96, 0x67, 0x8c, 0xea, 0xcc, 0x41 +); + +// {18729c7a-2f62-4be0-966f-974b21b86df1} +DEFINE_GUID(FWPM_CALLOUT_BUILT_IN_RESERVED_3, + 0x18729c7a, + 0x2f62, + 0x4be0, + 0x96, 0x6f, 0x97, 0x4b, 0x21, 0xb8, 0x6d, 0xf1 +); + +// {6c3fb801-daff-40e9-91e6-f7ff7e52f7d9} +DEFINE_GUID(FWPM_CALLOUT_BUILT_IN_RESERVED_4, + 0x6c3fb801, + 0xdaff, + 0x40e9, + 0x91, 0xe6, 0xf7, 0xff, 0x7e, 0x52, 0xf7, 0xd9 +); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_FE) + +/////////////////////////////////////////////////////////////////////////////// +// +// GUIDs for built-in provider contexts. +// +/////////////////////////////////////////////////////////////////////////////// + +// b25ea800-0d02-46ed-92bd-7fa84bb73e9d +DEFINE_GUID( + FWPM_PROVIDER_CONTEXT_SECURE_SOCKET_AUTHIP, + 0xb25ea800, + 0x0d02, + 0x46ed, + 0x92, 0xbd, 0x7f, 0xa8, 0x4b, 0xb7, 0x3e, 0x9d +); + +// 8c2d4144-f8e0-42c0-94ce-7ccfc63b2f9b +DEFINE_GUID( + FWPM_PROVIDER_CONTEXT_SECURE_SOCKET_IPSEC, + 0x8c2d4144, + 0xf8e0, + 0x42c0, + 0x94, 0xce, 0x7c, 0xcf, 0xc6, 0x3b, 0x2f, 0x9b +); + + +/////////////////////////////////////////////////////////////////////////////// +// +// GUIDs for built-in keying modules. +// +/////////////////////////////////////////////////////////////////////////////// + +// a9bbf787-82a8-45bb-a400-5d7e5952c7a9 +DEFINE_GUID( + FWPM_KEYING_MODULE_IKE, + 0xa9bbf787, + 0x82a8, + 0x45bb, + 0xa4, 0x00, 0x5d, 0x7e, 0x59, 0x52, 0xc7, 0xa9 +); + +// 11e3dae0-dd26-4590-857d-ab4b28d1a095 +DEFINE_GUID( + FWPM_KEYING_MODULE_AUTHIP, + 0x11e3dae0, + 0xdd26, + 0x4590, + 0x85, 0x7d, 0xab, 0x4b, 0x28, 0xd1, 0xa0, 0x95 +); + +// 041792cc-8f07-419d-a394-716968cb1647 +DEFINE_GUID( + FWPM_KEYING_MODULE_IKEV2, + 0x041792cc, + 0x8f07, + 0x419d, + 0xa3, 0x94, 0x71, 0x69, 0x68, 0xcb, 0x16, 0x47 +); + + +#ifndef GUID_DEFS_ONLY +#ifndef FWPMX_H +#define FWPMX_H + +#include "fwpmtypes.h" +#include "fwpvi.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/////////////////////////////////////////////////////////////////////////////// +// +// Well-known filter weight ranges. +// +/////////////////////////////////////////////////////////////////////////////// + +// Number of bits used for auto-generated weights. +#define FWPM_AUTO_WEIGHT_BITS (60) +// Maximum auto-generated weight. +#define FWPM_AUTO_WEIGHT_MAX (MAXUINT64 >> (64 - FWPM_AUTO_WEIGHT_BITS)) +// Maximum allowed weight range. +#define FWPM_WEIGHT_RANGE_MAX (MAXUINT64 >> FWPM_AUTO_WEIGHT_BITS) + +// IPsec policy +#define FWPM_WEIGHT_RANGE_IPSEC (0x0) +// Filters to exempt IKE traffic from IPsec. +#define FWPM_WEIGHT_RANGE_IKE_EXEMPTIONS (0xc) + + +/////////////////////////////////////////////////////////////////////////////// +// +// IPsec transform constants. +// +/////////////////////////////////////////////////////////////////////////////// + +////////// +// Authentication transform constants +////////// + +static const IPSEC_AUTH_TRANSFORM_ID0 IPSEC_AUTH_TRANSFORM_ID_HMAC_MD5_96 = +{ + IPSEC_AUTH_MD5, + IPSEC_AUTH_CONFIG_HMAC_MD5_96 +}; + +static const IPSEC_AUTH_TRANSFORM_ID0 IPSEC_AUTH_TRANSFORM_ID_HMAC_SHA_1_96 = +{ + IPSEC_AUTH_SHA_1, + IPSEC_AUTH_CONFIG_HMAC_SHA_1_96 +}; + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +static const IPSEC_AUTH_TRANSFORM_ID0 IPSEC_AUTH_TRANSFORM_ID_HMAC_SHA_256_128 = +{ + IPSEC_AUTH_SHA_256, + IPSEC_AUTH_CONFIG_HMAC_SHA_256_128 +}; + +static const IPSEC_AUTH_TRANSFORM_ID0 IPSEC_AUTH_TRANSFORM_ID_GCM_AES_128 = +{ + IPSEC_AUTH_AES_128, + IPSEC_AUTH_CONFIG_GCM_AES_128 +}; + +static const IPSEC_AUTH_TRANSFORM_ID0 IPSEC_AUTH_TRANSFORM_ID_GCM_AES_192 = +{ + IPSEC_AUTH_AES_192, + IPSEC_AUTH_CONFIG_GCM_AES_192 +}; + +static const IPSEC_AUTH_TRANSFORM_ID0 IPSEC_AUTH_TRANSFORM_ID_GCM_AES_256 = +{ + IPSEC_AUTH_AES_256, + IPSEC_AUTH_CONFIG_GCM_AES_256 +}; + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +////////// +// Cipher transform constants +////////// + +static const IPSEC_CIPHER_TRANSFORM_ID0 IPSEC_CIPHER_TRANSFORM_ID_CBC_DES = +{ + IPSEC_CIPHER_TYPE_DES, + IPSEC_CIPHER_CONFIG_CBC_DES +}; + +static const IPSEC_CIPHER_TRANSFORM_ID0 IPSEC_CIPHER_TRANSFORM_ID_CBC_3DES = +{ + IPSEC_CIPHER_TYPE_3DES, + IPSEC_CIPHER_CONFIG_CBC_3DES +}; + +static const IPSEC_CIPHER_TRANSFORM_ID0 IPSEC_CIPHER_TRANSFORM_ID_AES_128 = +{ + IPSEC_CIPHER_TYPE_AES_128, + IPSEC_CIPHER_CONFIG_CBC_AES_128 +}; + +static const IPSEC_CIPHER_TRANSFORM_ID0 IPSEC_CIPHER_TRANSFORM_ID_AES_192 = +{ + IPSEC_CIPHER_TYPE_AES_192, + IPSEC_CIPHER_CONFIG_CBC_AES_192 +}; + +static const IPSEC_CIPHER_TRANSFORM_ID0 IPSEC_CIPHER_TRANSFORM_ID_AES_256 = +{ + IPSEC_CIPHER_TYPE_AES_256, + IPSEC_CIPHER_CONFIG_CBC_AES_256 +}; + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +static const IPSEC_CIPHER_TRANSFORM_ID0 IPSEC_CIPHER_TRANSFORM_ID_GCM_AES_128 = +{ + IPSEC_CIPHER_TYPE_AES_128, + IPSEC_CIPHER_CONFIG_GCM_AES_128 +}; + +static const IPSEC_CIPHER_TRANSFORM_ID0 IPSEC_CIPHER_TRANSFORM_ID_GCM_AES_192 = +{ + IPSEC_CIPHER_TYPE_AES_192, + IPSEC_CIPHER_CONFIG_GCM_AES_192 +}; + +static const IPSEC_CIPHER_TRANSFORM_ID0 IPSEC_CIPHER_TRANSFORM_ID_GCM_AES_256 = +{ + IPSEC_CIPHER_TYPE_AES_256, + IPSEC_CIPHER_CONFIG_GCM_AES_256 +}; + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + + +/////////////////////////////////////////////////////////////////////////////// +// +// Well-known filter contexts. +// +/////////////////////////////////////////////////////////////////////////////// + +// IPsec transport filter contexts in inbound layer +#define FWPM_CONTEXT_IPSEC_INBOUND_PASSTHRU (0x1ui64) +#define FWPM_CONTEXT_IPSEC_INBOUND_PERSIST_CONNECTION_SECURITY (0x2ui64) +#define FWPM_CONTEXT_IPSEC_INBOUND_RESERVED (0xff00000000000000ui64) +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#define FWPM_CONTEXT_IPSEC_INBOUND_SECURITY_REALM_ID (0x4ui64) +#endif + +// IPsec transport filter contexts in outbound layer +#define FWPM_CONTEXT_IPSEC_OUTBOUND_NEGOTIATE_DISCOVER (0x1ui64) +#if (NTDDI_VERSION >= NTDDI_WIN7) +#define FWPM_CONTEXT_IPSEC_OUTBOUND_SUPPRESS_NEGOTIATION (0x2ui64) +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#define FWPM_CONTEXT_IPSEC_OUTBOUNDBOUND_SECURITY_REALM_ID (0x4ui64) +#endif +#endif + +// Filter contexts used in the ALE connect layer +#define FWPM_CONTEXT_ALE_SET_CONNECTION_REQUIRE_IPSEC_SECURITY (0x2ui64) +#define FWPM_CONTEXT_ALE_SET_CONNECTION_LAZY_SD_EVALUATION (0x4ui64) + +// Filter contexts used in the ALE connect or accept layer +#define FWPM_CONTEXT_ALE_SET_CONNECTION_REQUIRE_IPSEC_ENCRYPTION (0x8ui64) +#if (NTDDI_VERSION >= NTDDI_WIN7) +#define FWPM_CONTEXT_ALE_SET_CONNECTION_ALLOW_FIRST_INBOUND_PKT_UNENCRYPTED (0x10ui64) +// FWPM_CONTEXT_ALE_ALLOW_AUTH_FW modifies configurations that require IPsec +// security. Hence, at connect, this is only valid in combination with +// FWPM_CONTEXT_ALE_SET_CONNECTION_REQUIRE_IPSEC_SECURITY. +#define FWPM_CONTEXT_ALE_ALLOW_AUTH_FW (0x20ui64) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +// Contexts used by the TCP Chimney Offload callouts. +#define FWPM_CONTEXT_TCP_CHIMNEY_OFFLOAD_ENABLE (0x1ui64) +#define FWPM_CONTEXT_TCP_CHIMNEY_OFFLOAD_DISABLE (0x2ui64) + +// Contexts used in the RPC audit sublayer +#define FWPM_CONTEXT_RPC_AUDIT_ENABLED (0x1ui64) +#define FWPM_CONTEXT_RPC_AUDIT_BUFFER_ENABLED (0x2ui64) + +/////////////////////////////////////////////////////////////////////////////// +// +// Access rights +// +/////////////////////////////////////////////////////////////////////////////// + +// Specific access rights. +#define FWPM_ACTRL_ADD (0x00000001) +#define FWPM_ACTRL_ADD_LINK (0x00000002) +#define FWPM_ACTRL_BEGIN_READ_TXN (0x00000004) +#define FWPM_ACTRL_BEGIN_WRITE_TXN (0x00000008) +#define FWPM_ACTRL_CLASSIFY (0x00000010) +#define FWPM_ACTRL_ENUM (0x00000020) +#define FWPM_ACTRL_OPEN (0x00000040) +#define FWPM_ACTRL_READ (0x00000080) +#define FWPM_ACTRL_READ_STATS (0x00000100) +#define FWPM_ACTRL_SUBSCRIBE (0x00000200) +#define FWPM_ACTRL_WRITE (0x00000400) + +// Generic access rights. +#define FWPM_GENERIC_READ \ + ( STANDARD_RIGHTS_READ | \ + FWPM_ACTRL_BEGIN_READ_TXN | \ + FWPM_ACTRL_CLASSIFY | \ + FWPM_ACTRL_OPEN | \ + FWPM_ACTRL_READ | \ + FWPM_ACTRL_READ_STATS ) + +#define FWPM_GENERIC_EXECUTE \ + ( STANDARD_RIGHTS_EXECUTE | \ + FWPM_ACTRL_ENUM | \ + FWPM_ACTRL_SUBSCRIBE ) + +#define FWPM_GENERIC_WRITE \ + ( STANDARD_RIGHTS_WRITE | \ + DELETE | \ + FWPM_ACTRL_ADD | \ + FWPM_ACTRL_ADD_LINK | \ + FWPM_ACTRL_BEGIN_WRITE_TXN | \ + FWPM_ACTRL_WRITE ) + +#define FWPM_GENERIC_ALL \ + ( STANDARD_RIGHTS_REQUIRED | \ + FWPM_ACTRL_ADD | \ + FWPM_ACTRL_ADD_LINK | \ + FWPM_ACTRL_BEGIN_READ_TXN | \ + FWPM_ACTRL_BEGIN_WRITE_TXN | \ + FWPM_ACTRL_CLASSIFY | \ + FWPM_ACTRL_ENUM | \ + FWPM_ACTRL_OPEN | \ + FWPM_ACTRL_READ | \ + FWPM_ACTRL_READ_STATS | \ + FWPM_ACTRL_SUBSCRIBE | \ + FWPM_ACTRL_WRITE ) + + +/////////////////////////////////////////////////////////////////////////////// +// +// Common utility functions. +// +/////////////////////////////////////////////////////////////////////////////// + +void WINAPI FwpmFreeMemory0(_Inout_ void** p); + + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing the engine. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +FwpmEngineOpen0( + _In_opt_ const wchar_t* serverName, + _In_ UINT32 authnService, + _In_opt_ SEC_WINNT_AUTH_IDENTITY_W* authIdentity, + _In_opt_ const FWPM_SESSION0* session, + _Out_ HANDLE* engineHandle + ); + +DWORD +WINAPI +FwpmEngineClose0(_Inout_ HANDLE engineHandle); + +DWORD +WINAPI +FwpmEngineGetOption0( + _In_ HANDLE engineHandle, + _In_ FWPM_ENGINE_OPTION option, + _Outptr_ FWP_VALUE0** value + ); + +DWORD +WINAPI +FwpmEngineSetOption0( + _In_ HANDLE engineHandle, + _In_ FWPM_ENGINE_OPTION option, + _In_ const FWP_VALUE0* newValue + ); + +DWORD +WINAPI +FwpmEngineGetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpmEngineSetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +DWORD +WINAPI +FwpmSessionCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const FWPM_SESSION_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +FwpmSessionEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_SESSION0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +DWORD +WINAPI +FwpmSessionDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for explicit transactions. +// +/////////////////////////////////////////////////////////////////////////////// + +#define FWPM_TXN_READ_ONLY (0x00000001) + +DWORD +WINAPI +FwpmTransactionBegin0( + _In_ HANDLE engineHandle, + _In_ UINT32 flags + ); + +DWORD +WINAPI +FwpmTransactionCommit0(_In_ HANDLE engineHandle); + +DWORD +WINAPI +FwpmTransactionAbort0(_In_ HANDLE engineHandle); + + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing providers. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +FwpmProviderAdd0( + _In_ HANDLE engineHandle, + _In_ const FWPM_PROVIDER0* provider, + _In_opt_ PSECURITY_DESCRIPTOR sd + ); + +DWORD +WINAPI +FwpmProviderDeleteByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key + ); + +DWORD +WINAPI +FwpmProviderGetByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key, + _Outptr_ FWPM_PROVIDER0** provider + ); + +DWORD +WINAPI +FwpmProviderCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const FWPM_PROVIDER_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +FwpmProviderEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_PROVIDER0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +DWORD +WINAPI +FwpmProviderDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +FwpmProviderGetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpmProviderSetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +typedef void (CALLBACK *FWPM_PROVIDER_CHANGE_CALLBACK0)( + _Inout_ void* context, + _In_ const FWPM_PROVIDER_CHANGE0* change + ); + +DWORD +WINAPI +FwpmProviderSubscribeChanges0( + _In_ HANDLE engineHandle, + _In_ const FWPM_PROVIDER_SUBSCRIPTION0* subscription, + _In_ FWPM_PROVIDER_CHANGE_CALLBACK0 callback, + _In_opt_ void* context, + _Out_ HANDLE* changeHandle + ); + +DWORD +WINAPI +FwpmProviderUnsubscribeChanges0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE changeHandle + ); + +DWORD +WINAPI +FwpmProviderSubscriptionsGet0( + _In_ HANDLE engineHandle, + _Outptr_result_buffer_(*numEntries) + FWPM_PROVIDER_SUBSCRIPTION0*** entries, + _Out_ UINT32* numEntries + ); + + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing provider contexts. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +FwpmProviderContextAdd0( + _In_ HANDLE engineHandle, + _In_ const FWPM_PROVIDER_CONTEXT0* providerContext, + _In_opt_ PSECURITY_DESCRIPTOR sd, + _Out_opt_ UINT64* id + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +FwpmProviderContextAdd1( + _In_ HANDLE engineHandle, + _In_ const FWPM_PROVIDER_CONTEXT1* providerContext, + _In_opt_ PSECURITY_DESCRIPTOR sd, + _Out_opt_ UINT64* id + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +DWORD +WINAPI +FwpmProviderContextAdd2( + _In_ HANDLE engineHandle, + _In_ const FWPM_PROVIDER_CONTEXT2* providerContext, + _In_opt_ PSECURITY_DESCRIPTOR sd, + _Out_opt_ UINT64* id + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) +DWORD +WINAPI +FwpmProviderContextAdd3( + _In_ HANDLE engineHandle, + _In_ const FWPM_PROVIDER_CONTEXT3* providerContext, + _In_opt_ PSECURITY_DESCRIPTOR sd, + _Out_opt_ UINT64* id + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + + +DWORD +WINAPI +FwpmProviderContextDeleteById0( + _In_ HANDLE engineHandle, + _In_ UINT64 id + ); + +DWORD +WINAPI +FwpmProviderContextDeleteByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key + ); + +DWORD +WINAPI +FwpmProviderContextGetById0( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _Outptr_ FWPM_PROVIDER_CONTEXT0** providerContext + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +FwpmProviderContextGetById1( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _Outptr_ FWPM_PROVIDER_CONTEXT1** providerContext + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +DWORD +WINAPI +FwpmProviderContextGetById2( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _Outptr_ FWPM_PROVIDER_CONTEXT2** providerContext + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) +DWORD +WINAPI +FwpmProviderContextGetById3( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _Outptr_ FWPM_PROVIDER_CONTEXT3** providerContext + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + + +DWORD +WINAPI +FwpmProviderContextGetByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key, + _Outptr_ FWPM_PROVIDER_CONTEXT0** providerContext + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +FwpmProviderContextGetByKey1( + _In_ HANDLE engineHandle, + _In_ const GUID* key, + _Outptr_ FWPM_PROVIDER_CONTEXT1** providerContext + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +DWORD +WINAPI +FwpmProviderContextGetByKey2( + _In_ HANDLE engineHandle, + _In_ const GUID* key, + _Outptr_ FWPM_PROVIDER_CONTEXT2** providerContext + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) +DWORD +WINAPI +FwpmProviderContextGetByKey3( + _In_ HANDLE engineHandle, + _In_ const GUID* key, + _Outptr_ FWPM_PROVIDER_CONTEXT3** providerContext + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +DWORD +WINAPI +FwpmProviderContextCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const FWPM_PROVIDER_CONTEXT_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +FwpmProviderContextEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) + FWPM_PROVIDER_CONTEXT0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +FwpmProviderContextEnum1( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) + FWPM_PROVIDER_CONTEXT1*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +DWORD +WINAPI +FwpmProviderContextEnum2( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) + FWPM_PROVIDER_CONTEXT2*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) +DWORD +WINAPI +FwpmProviderContextEnum3( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) + FWPM_PROVIDER_CONTEXT3*** entries, + _Out_ UINT32* numEntriesReturned + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +DWORD +WINAPI +FwpmProviderContextDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +FwpmProviderContextGetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpmProviderContextSetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +typedef void (CALLBACK *FWPM_PROVIDER_CONTEXT_CHANGE_CALLBACK0)( + _Inout_ void* context, + _In_ const FWPM_PROVIDER_CONTEXT_CHANGE0* change + ); + +DWORD +WINAPI +FwpmProviderContextSubscribeChanges0( + _In_ HANDLE engineHandle, + _In_ const FWPM_PROVIDER_CONTEXT_SUBSCRIPTION0* subscription, + _In_ FWPM_PROVIDER_CONTEXT_CHANGE_CALLBACK0 callback, + _In_opt_ void* context, + _Out_ HANDLE* changeHandle + ); + +DWORD +WINAPI +FwpmProviderContextUnsubscribeChanges0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE changeHandle + ); + +DWORD +WINAPI +FwpmProviderContextSubscriptionsGet0( + _In_ HANDLE engineHandle, + _Outptr_result_buffer_(*numEntries) + FWPM_PROVIDER_CONTEXT_SUBSCRIPTION0*** entries, + _Out_ UINT32* numEntries + ); + + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing sub-layers. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +FwpmSubLayerAdd0( + _In_ HANDLE engineHandle, + _In_ const FWPM_SUBLAYER0* subLayer, + _In_opt_ PSECURITY_DESCRIPTOR sd + ); + +DWORD +WINAPI +FwpmSubLayerDeleteByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key + ); + +DWORD +WINAPI +FwpmSubLayerGetByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key, + _Outptr_ FWPM_SUBLAYER0** subLayer + ); + +DWORD +WINAPI +FwpmSubLayerCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const FWPM_SUBLAYER_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +FwpmSubLayerEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_SUBLAYER0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +DWORD +WINAPI +FwpmSubLayerDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +FwpmSubLayerGetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpmSubLayerSetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +typedef void (CALLBACK *FWPM_SUBLAYER_CHANGE_CALLBACK0)( + _Inout_ void* context, + _In_ const FWPM_SUBLAYER_CHANGE0* change + ); + +DWORD +WINAPI +FwpmSubLayerSubscribeChanges0( + _In_ HANDLE engineHandle, + _In_ const FWPM_SUBLAYER_SUBSCRIPTION0* subscription, + _In_ FWPM_SUBLAYER_CHANGE_CALLBACK0 callback, + _In_opt_ void* context, + _Out_ HANDLE* changeHandle + ); + +DWORD +WINAPI +FwpmSubLayerUnsubscribeChanges0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE changeHandle + ); + +DWORD +WINAPI +FwpmSubLayerSubscriptionsGet0( + _In_ HANDLE engineHandle, + _Outptr_result_buffer_(*numEntries) + FWPM_SUBLAYER_SUBSCRIPTION0*** entries, + _Out_ UINT32* numEntries + ); + + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing layers. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +FwpmLayerGetById0( + _In_ HANDLE engineHandle, + _In_ UINT16 id, + _Outptr_ FWPM_LAYER0** layer + ); + +DWORD +WINAPI +FwpmLayerGetByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key, + _Outptr_ FWPM_LAYER0** layer + ); + +DWORD +WINAPI +FwpmLayerCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const FWPM_LAYER_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +FwpmLayerEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_LAYER0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +DWORD +WINAPI +FwpmLayerDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +FwpmLayerGetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpmLayerSetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing callouts. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +FwpmCalloutAdd0( + _In_ HANDLE engineHandle, + _In_ const FWPM_CALLOUT0* callout, + _In_opt_ PSECURITY_DESCRIPTOR sd, + _Out_opt_ UINT32* id + ); + +DWORD +WINAPI +FwpmCalloutDeleteById0( + _In_ HANDLE engineHandle, + _In_ UINT32 id + ); + +DWORD +WINAPI +FwpmCalloutDeleteByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key + ); + +DWORD +WINAPI +FwpmCalloutGetById0( + _In_ HANDLE engineHandle, + _In_ UINT32 id, + _Outptr_ FWPM_CALLOUT0** callout + ); + +DWORD +WINAPI +FwpmCalloutGetByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key, + _Outptr_ FWPM_CALLOUT0** callout + ); + +DWORD +WINAPI +FwpmCalloutCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const FWPM_CALLOUT_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +FwpmCalloutEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_CALLOUT0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +DWORD +WINAPI +FwpmCalloutDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +FwpmCalloutGetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpmCalloutSetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +typedef void (CALLBACK *FWPM_CALLOUT_CHANGE_CALLBACK0)( + _Inout_ void* context, + _In_ const FWPM_CALLOUT_CHANGE0* change + ); + +DWORD +WINAPI +FwpmCalloutSubscribeChanges0( + _In_ HANDLE engineHandle, + _In_ const FWPM_CALLOUT_SUBSCRIPTION0* subscription, + _In_ FWPM_CALLOUT_CHANGE_CALLBACK0 callback, + _In_opt_ void* context, + _Out_ HANDLE* changeHandle + ); + +DWORD +WINAPI +FwpmCalloutUnsubscribeChanges0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE changeHandle + ); + +DWORD +WINAPI +FwpmCalloutSubscriptionsGet0( + _In_ HANDLE engineHandle, + _Outptr_result_buffer_(*numEntries) + FWPM_CALLOUT_SUBSCRIPTION0*** entries, + _Out_ UINT32* numEntries + ); + + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing filters. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +FwpmFilterAdd0( + _In_ HANDLE engineHandle, + _In_ const FWPM_FILTER0* filter, + _In_opt_ PSECURITY_DESCRIPTOR sd, + _Out_opt_ UINT64* id + ); + +DWORD +WINAPI +FwpmFilterDeleteById0( + _In_ HANDLE engineHandle, + _In_ UINT64 id + ); + +DWORD +WINAPI +FwpmFilterDeleteByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key + ); + +DWORD +WINAPI +FwpmFilterGetById0( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _Outptr_ FWPM_FILTER0** filter + ); + +DWORD +WINAPI +FwpmFilterGetByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key, + _Outptr_ FWPM_FILTER0** filter + ); + +DWORD +WINAPI +FwpmFilterCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const FWPM_FILTER_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +FwpmFilterEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_FILTER0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +DWORD +WINAPI +FwpmFilterDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +FwpmFilterGetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpmFilterSetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _In_opt_ const GUID* key, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +typedef void (CALLBACK *FWPM_FILTER_CHANGE_CALLBACK0)( + _Inout_ void* context, + _In_ const FWPM_FILTER_CHANGE0* change + ); + +DWORD +WINAPI +FwpmFilterSubscribeChanges0( + _In_ HANDLE engineHandle, + _In_ const FWPM_FILTER_SUBSCRIPTION0* subscription, + _In_ FWPM_FILTER_CHANGE_CALLBACK0 callback, + _In_opt_ void* context, + _Out_ HANDLE* changeHandle + ); + +DWORD +WINAPI +FwpmFilterUnsubscribeChanges0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE changeHandle + ); + +DWORD +WINAPI +FwpmFilterSubscriptionsGet0( + _In_ HANDLE engineHandle, + _Outptr_result_buffer_(*numEntries) + FWPM_FILTER_SUBSCRIPTION0*** entries, + _Out_ UINT32* numEntries + ); + +DWORD +WINAPI +FwpmGetAppIdFromFileName0( + _In_ PCWSTR fileName, + _Outptr_ FWP_BYTE_BLOB** appId + ); + +/////////////////////////////////////////////////////////////////////////////// +// +// Helper functions for configuring an IPsec tunnel. +// +/////////////////////////////////////////////////////////////////////////////// + +// Create a point-to-point tunnel. +#define FWPM_TUNNEL_FLAG_POINT_TO_POINT (0x00000001) +#if (NTDDI_VERSION >= NTDDI_WIN7) +// Enable Virtual interface based IPsec tunnel mode. +#define FWPM_TUNNEL_FLAG_ENABLE_VIRTUAL_IF_TUNNELING (0x00000002) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) +// Reserved flags. +#define FWPM_TUNNEL_FLAG_RESERVED0 (0x00000004) +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +DWORD +WINAPI +FwpmIPsecTunnelAdd0( + _In_ HANDLE engineHandle, + _In_ UINT32 flags, + _In_opt_ const FWPM_PROVIDER_CONTEXT0* mainModePolicy, + _In_ const FWPM_PROVIDER_CONTEXT0* tunnelPolicy, + _In_ UINT32 numFilterConditions, + _In_reads_(numFilterConditions) + const FWPM_FILTER_CONDITION0* filterConditions, + _In_opt_ PSECURITY_DESCRIPTOR sd + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +FwpmIPsecTunnelAdd1( + _In_ HANDLE engineHandle, + _In_ UINT32 flags, + _In_opt_ const FWPM_PROVIDER_CONTEXT1* mainModePolicy, + _In_ const FWPM_PROVIDER_CONTEXT1* tunnelPolicy, + _In_ UINT32 numFilterConditions, + _In_reads_(numFilterConditions) + const FWPM_FILTER_CONDITION0* filterConditions, + _In_opt_ const GUID* keyModKey, + _In_opt_ PSECURITY_DESCRIPTOR sd + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +DWORD +WINAPI +FwpmIPsecTunnelAdd2( + _In_ HANDLE engineHandle, + _In_ UINT32 flags, + _In_opt_ const FWPM_PROVIDER_CONTEXT2* mainModePolicy, + _In_ const FWPM_PROVIDER_CONTEXT2* tunnelPolicy, + _In_ UINT32 numFilterConditions, + _In_reads_(numFilterConditions) + const FWPM_FILTER_CONDITION0* filterConditions, + _In_opt_ const GUID* keyModKey, + _In_opt_ PSECURITY_DESCRIPTOR sd + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) +DWORD +WINAPI +FwpmIPsecTunnelAdd3( + _In_ HANDLE engineHandle, + _In_ UINT32 flags, + _In_opt_ const FWPM_PROVIDER_CONTEXT3* mainModePolicy, + _In_ const FWPM_PROVIDER_CONTEXT3* tunnelPolicy, + _In_ UINT32 numFilterConditions, + _In_reads_(numFilterConditions) + const FWPM_FILTER_CONDITION0* filterConditions, + _In_opt_ const GUID* keyModKey, + _In_opt_ PSECURITY_DESCRIPTOR sd + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +DWORD +WINAPI +FwpmIPsecTunnelDeleteByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key + ); + + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing IPsec. +// +/////////////////////////////////////////////////////////////////////////////// + + +DWORD +WINAPI +IPsecGetStatistics0( + _In_ HANDLE engineHandle, + _Out_ IPSEC_STATISTICS0* ipsecStatistics + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +IPsecGetStatistics1( + _In_ HANDLE engineHandle, + _Out_ IPSEC_STATISTICS1* ipsecStatistics + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +DWORD +WINAPI +IPsecSaContextCreate0( + _In_ HANDLE engineHandle, + _In_ const IPSEC_TRAFFIC0* outboundTraffic, + _Out_opt_ UINT64* inboundFilterId, + _Out_ UINT64* id + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +IPsecSaContextCreate1( + _In_ HANDLE engineHandle, + _In_ const IPSEC_TRAFFIC1* outboundTraffic, + _In_opt_ const IPSEC_VIRTUAL_IF_TUNNEL_INFO0* virtualIfTunnelInfo, + _Out_opt_ UINT64* inboundFilterId, + _Out_ UINT64* id + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +DWORD +WINAPI +IPsecSaContextDeleteById0( + _In_ HANDLE engineHandle, + _In_ UINT64 id + ); + +DWORD +WINAPI +IPsecSaContextGetById0( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _Outptr_ IPSEC_SA_CONTEXT0** saContext + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +IPsecSaContextGetById1( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _Outptr_ IPSEC_SA_CONTEXT1** saContext + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +DWORD +WINAPI +IPsecSaContextGetSpi0( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _In_ const IPSEC_GETSPI0* getSpi, + _Out_ IPSEC_SA_SPI* inboundSpi + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +IPsecSaContextGetSpi1( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _In_ const IPSEC_GETSPI1* getSpi, + _Out_ IPSEC_SA_SPI* inboundSpi + ); + +DWORD +WINAPI +IPsecSaContextSetSpi0( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _In_ const IPSEC_GETSPI1* getSpi, + _In_ IPSEC_SA_SPI inboundSpi + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +DWORD +WINAPI +IPsecSaContextAddInbound0( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _In_ const IPSEC_SA_BUNDLE0* inboundBundle + ); + +DWORD +WINAPI +IPsecSaContextAddOutbound0( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _In_ const IPSEC_SA_BUNDLE0* outboundBundle + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +IPsecSaContextAddInbound1( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _In_ const IPSEC_SA_BUNDLE1* inboundBundle + ); + +DWORD +WINAPI +IPsecSaContextAddOutbound1( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _In_ const IPSEC_SA_BUNDLE1* outboundBundle + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +DWORD +WINAPI +IPsecSaContextExpire0( + _In_ HANDLE engineHandle, + _In_ UINT64 id + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +// Flags indicating the specific field in the IPSEC_SA_CONTEXT data type that is +// being updated. +// +#define IPSEC_SA_DETAILS_UPDATE_TRAFFIC (0x01ui64) +#define IPSEC_SA_DETAILS_UPDATE_UDP_ENCAPSULATION (0x02ui64) +#define IPSEC_SA_BUNDLE_UPDATE_FLAGS (0x04ui64) +#define IPSEC_SA_BUNDLE_UPDATE_NAP_CONTEXT (0x08ui64) +#define IPSEC_SA_BUNDLE_UPDATE_KEY_MODULE_STATE (0x10ui64) +#define IPSEC_SA_BUNDLE_UPDATE_PEER_V4_PRIVATE_ADDRESS (0x20ui64) +#define IPSEC_SA_BUNDLE_UPDATE_MM_SA_ID (0x40ui64) + +DWORD +WINAPI +IPsecSaContextUpdate0( + _In_ HANDLE engineHandle, + _In_ UINT64 flags, + _In_ const IPSEC_SA_CONTEXT1* newValues + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +DWORD +WINAPI +IPsecSaContextCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const IPSEC_SA_CONTEXT_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +IPsecSaContextEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) IPSEC_SA_CONTEXT0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +IPsecSaContextEnum1( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) IPSEC_SA_CONTEXT1*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +DWORD +WINAPI +IPsecSaContextDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +typedef void (CALLBACK *IPSEC_SA_CONTEXT_CALLBACK0)( + _Inout_ void *context, + _In_ const IPSEC_SA_CONTEXT_CHANGE0 *change +); + +DWORD +WINAPI +IPsecSaContextSubscribe0( + _In_ HANDLE engineHandle, + _In_ const IPSEC_SA_CONTEXT_SUBSCRIPTION0 *subscription, + _In_ IPSEC_SA_CONTEXT_CALLBACK0 callback, + _In_opt_ void *context, + _Out_ HANDLE* eventsHandle +); + +DWORD +WINAPI +IPsecSaContextUnsubscribe0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE eventsHandle +); + +DWORD +WINAPI +IPsecSaContextSubscriptionsGet0( + _In_ HANDLE engineHandle, + _Outptr_result_buffer_(*numEntries) + IPSEC_SA_CONTEXT_SUBSCRIPTION0*** entries, + _Out_ UINT32* numEntries + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + + +DWORD +WINAPI +IPsecSaCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const IPSEC_SA_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +IPsecSaEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) IPSEC_SA_DETAILS0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +IPsecSaEnum1( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) IPSEC_SA_DETAILS1*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +DWORD +WINAPI +IPsecSaDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +IPsecSaDbGetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +IPsecSaDbSetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing IPsec DoS Protection. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +IPsecDospGetStatistics0( + _In_ HANDLE engineHandle, + _Out_ IPSEC_DOSP_STATISTICS0* idpStatistics + ); + +DWORD +WINAPI +IPsecDospStateCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const IPSEC_DOSP_STATE_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +IPsecDospStateEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntries) IPSEC_DOSP_STATE0*** entries, + _Out_ UINT32* numEntries + ); + +DWORD +WINAPI +IPsecDospStateDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +IPsecDospGetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +IPsecDospSetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing key managers. +// +/////////////////////////////////////////////////////////////////////////////// + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +typedef void ( CALLBACK * IPSEC_KEY_MANAGER_KEY_DICTATION_CHECK0)( + _In_ const IKEEXT_TRAFFIC0* ikeTraffic, + _Out_ BOOL* willDictateKey, + _Out_ UINT32* weight + ); + +typedef DWORD ( CALLBACK * IPSEC_KEY_MANAGER_DICTATE_KEY0)( + _Inout_ IPSEC_SA_DETAILS1* inboundSaDetails, + _Inout_ IPSEC_SA_DETAILS1* outboundSaDetails, + _Out_ BOOL* keyingModuleGenKey + ); + +typedef void ( CALLBACK * IPSEC_KEY_MANAGER_NOTIFY_KEY0)( + _In_ const IPSEC_SA_DETAILS1* inboundSa, + _In_ const IPSEC_SA_DETAILS1* outboundSa + ); + +typedef struct _IPSEC_KEY_MANAGER_CALLBACKS0 { + GUID reserved; + UINT32 flags; + IPSEC_KEY_MANAGER_KEY_DICTATION_CHECK0 keyDictationCheck; + IPSEC_KEY_MANAGER_DICTATE_KEY0 keyDictation; + IPSEC_KEY_MANAGER_NOTIFY_KEY0 keyNotify; +} IPSEC_KEY_MANAGER_CALLBACKS0; + +DWORD +WINAPI +IPsecKeyManagerAddAndRegister0( + _In_ HANDLE engineHandle, + _In_ const IPSEC_KEY_MANAGER0* keyManager, + _In_ const IPSEC_KEY_MANAGER_CALLBACKS0* keyManagerCallbacks, + _Out_ HANDLE* keyMgmtHandle +); + +DWORD +WINAPI +IPsecKeyManagerUnregisterAndDelete0( + _In_ HANDLE engineHandle, + _In_ HANDLE keyMgmtHandle +); + +DWORD +WINAPI +IPsecKeyManagersGet0( + _In_ HANDLE engineHandle, + _Outptr_result_buffer_(*numEntries) IPSEC_KEY_MANAGER0*** entries, + _Out_ UINT32* numEntries +); + +DWORD +WINAPI +IPsecKeyManagerGetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _Reserved_ const void* reserved, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +IPsecKeyManagerSetSecurityInfoByKey0( + _In_ HANDLE engineHandle, + _Reserved_ const void* reserved, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for managing IKE, Authip. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +IkeextGetStatistics0( + _In_ HANDLE engineHandle, + _Out_ IKEEXT_STATISTICS0* ikeextStatistics + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +IkeextGetStatistics1( + _In_ HANDLE engineHandle, + _Out_ IKEEXT_STATISTICS1* ikeextStatistics + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +DWORD +WINAPI +IkeextSaDeleteById0( + _In_ HANDLE engineHandle, + _In_ UINT64 id + ); + +DWORD +WINAPI +IkeextSaGetById0( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _Outptr_ IKEEXT_SA_DETAILS0** sa + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +IkeextSaGetById1( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _In_opt_ GUID* saLookupContext, + _Outptr_ IKEEXT_SA_DETAILS1** sa + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +DWORD +WINAPI +IkeextSaGetById2( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _In_opt_ GUID* saLookupContext, + _Outptr_ IKEEXT_SA_DETAILS2** sa + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +DWORD +WINAPI +IkeextSaCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const IKEEXT_SA_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +IkeextSaEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) IKEEXT_SA_DETAILS0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +IkeextSaEnum1( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) IKEEXT_SA_DETAILS1*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +DWORD +WINAPI +IkeextSaEnum2( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) IKEEXT_SA_DETAILS2*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + + +DWORD +WINAPI +IkeextSaDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +IkeextSaDbGetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +IkeextSaDbSetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for diagnostics. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +FwpmNetEventCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const FWPM_NET_EVENT_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +FwpmNetEventEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_NET_EVENT0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +DWORD +WINAPI +FwpmNetEventEnum1( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_NET_EVENT1*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +DWORD +WINAPI +FwpmNetEventEnum2( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_NET_EVENT2*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +DWORD +WINAPI +FwpmNetEventEnum3( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_NET_EVENT3*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS4) +DWORD +WINAPI +FwpmNetEventEnum4( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_NET_EVENT4*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) //NTDDI_WIN10_RS5 +DWORD +WINAPI +FwpmNetEventEnum5( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_NET_EVENT5*** entries, + _Out_ UINT32* numEntriesReturned + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +DWORD +WINAPI +FwpmNetEventDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +FwpmNetEventsGetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpmNetEventsSetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); +#if (NTDDI_VERSION >= NTDDI_WIN7) + +typedef void (CALLBACK *FWPM_NET_EVENT_CALLBACK0)( + _Inout_ void* context, + _In_ const FWPM_NET_EVENT1* event + ); + +DWORD +WINAPI +FwpmNetEventSubscribe0( + _In_ HANDLE engineHandle, + _In_ const FWPM_NET_EVENT_SUBSCRIPTION0* subscription, + _In_ FWPM_NET_EVENT_CALLBACK0 callback, + _In_opt_ void* context, + _Out_ HANDLE* eventsHandle + ); + +DWORD +WINAPI +FwpmNetEventUnsubscribe0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE eventsHandle + ); + +DWORD +WINAPI +FwpmNetEventSubscriptionsGet0( + _In_ HANDLE engineHandle, + _Outptr_result_buffer_(*numEntries) + FWPM_NET_EVENT_SUBSCRIPTION0*** entries, + _Out_ UINT32* numEntries + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +typedef void (CALLBACK *FWPM_NET_EVENT_CALLBACK1)( + _Inout_ void* context, + _In_ const FWPM_NET_EVENT2* event + ); + +DWORD +WINAPI +FwpmNetEventSubscribe1( + _In_ HANDLE engineHandle, + _In_ const FWPM_NET_EVENT_SUBSCRIPTION0* subscription, + _In_ FWPM_NET_EVENT_CALLBACK1 callback, + _In_opt_ void* context, + _Out_ HANDLE* eventsHandle + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +typedef void (CALLBACK *FWPM_NET_EVENT_CALLBACK2)( + _Inout_ void* context, + _In_ const FWPM_NET_EVENT3* event + ); + +DWORD +WINAPI +FwpmNetEventSubscribe2( + _In_ HANDLE engineHandle, + _In_ const FWPM_NET_EVENT_SUBSCRIPTION0* subscription, + _In_ FWPM_NET_EVENT_CALLBACK2 callback, + _In_opt_ void* context, + _Out_ HANDLE* eventsHandle + ); + +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +typedef void (CALLBACK *FWPM_NET_EVENT_CALLBACK3)( + _Inout_ void* context, + _In_ const FWPM_NET_EVENT4* event + ); + +DWORD +WINAPI +FwpmNetEventSubscribe3( + _In_ HANDLE engineHandle, + _In_ const FWPM_NET_EVENT_SUBSCRIPTION0* subscription, + _In_ FWPM_NET_EVENT_CALLBACK3 callback, + _In_opt_ void* context, + _Out_ HANDLE* eventsHandle + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) //NTDDI_WIN10_RS5 + +typedef void (CALLBACK *FWPM_NET_EVENT_CALLBACK4)( + _Inout_ void* context, + _In_ const FWPM_NET_EVENT5* event + ); + +DWORD +WINAPI +FwpmNetEventSubscribe4( + _In_ HANDLE engineHandle, + _In_ const FWPM_NET_EVENT_SUBSCRIPTION0* subscription, + _In_ FWPM_NET_EVENT_CALLBACK4 callback, + _In_opt_ void* context, + _Out_ HANDLE* eventsHandle + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for Tracking Dynamic Keyword Changes +// +/////////////////////////////////////////////////////////////////////////////// +#define FWPM_NOTIFY_ADDRESSES_AUTO_RESOLVE 0x01ui64 +#define FWPM_NOTIFY_ADDRESSES_NON_AUTO_RESOLVE 0x02ui64 +#define FWPM_NOTIFY_ADDRESSES_ALL (FWPM_NOTIFY_ADDRESSES_AUTO_RESOLVE | FWPM_NOTIFY_ADDRESSES_NON_AUTO_RESOLVE) +#define FWPM_NOTIFY_GRANULAR 0x04ui64 + +typedef void (CALLBACK *FWPM_DYNAMIC_KEYWORD_CALLBACK0)( + _Inout_ void* notification, + _Inout_ void* context + ); + +DWORD +WINAPI +FwpmDynamicKeywordSubscribe0( + _In_ DWORD flags, + _In_ FWPM_DYNAMIC_KEYWORD_CALLBACK0 callback, + _In_opt_ void* context, + _Out_ HANDLE* subscriptionHandle + ); + +DWORD +WINAPI +FwpmDynamicKeywordUnsubscribe0( + _In_ HANDLE subscriptionHandle + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for tracking system ports. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +FwpmSystemPortsGet0( + _In_opt_ HANDLE engineHandle, + _Outptr_ FWPM_SYSTEM_PORTS0** sysPorts + ); + +typedef void (CALLBACK *FWPM_SYSTEM_PORTS_CALLBACK0)( + _Inout_ void* context, + _In_ const FWPM_SYSTEM_PORTS0* sysPorts + ); + +DWORD +WINAPI +FwpmSystemPortsSubscribe0( + _In_opt_ HANDLE engineHandle, + _Reserved_ void* reserved, + _In_ FWPM_SYSTEM_PORTS_CALLBACK0 callback, + _In_opt_ void* context, + _Out_ HANDLE* sysPortsHandle + ); + +DWORD +WINAPI +FwpmSystemPortsUnsubscribe0( + _In_opt_ HANDLE engineHandle, + _Inout_ HANDLE sysPortsHandle + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +DWORD +WINAPI +FwpmConnectionGetById0( + _In_ HANDLE engineHandle, + _In_ UINT64 id, + _Outptr_ FWPM_CONNECTION0** connection + ); + +DWORD +WINAPI +FwpmConnectionEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPM_CONNECTION0*** entries, + _Out_ UINT32 *numEntriesReturned + ); + +DWORD +WINAPI +FwpmConnectionCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const FWPM_CONNECTION_ENUM_TEMPLATE0 *enumTemplate, + _Out_ HANDLE *enumHandle + ); + +DWORD +WINAPI +FwpmConnectionDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + + +DWORD +WINAPI +FwpmConnectionGetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpmConnectionSetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +typedef void (CALLBACK *FWPM_CONNECTION_CALLBACK0)( + _Inout_ void* context, + _In_ FWPM_CONNECTION_EVENT_TYPE eventType, + _In_ const FWPM_CONNECTION0* connection +); + +DWORD +WINAPI +FwpmConnectionSubscribe0( + _In_ HANDLE engineHandle, + _In_ const FWPM_CONNECTION_SUBSCRIPTION0* subscription, + _In_ FWPM_CONNECTION_CALLBACK0 callback, + _In_opt_ void* context, + _Out_ HANDLE* eventsHandle + ); + +DWORD +WINAPI +FwpmConnectionUnsubscribe0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE eventsHandle + ); + +DWORD +WINAPI +FwpmConnectionSubscriptionsGet0( + _In_ HANDLE engineHandle, + _Outptr_result_buffer_(*numEntries) + FWPM_CONNECTION_SUBSCRIPTION0*** entries, + _Out_ UINT32* numEntries + ); + +/////////////////////////////////////////////////////////////////////////////// +// +// Functions for vSwitch events. +// +/////////////////////////////////////////////////////////////////////////////// + +typedef DWORD (CALLBACK *FWPM_VSWITCH_EVENT_CALLBACK0)( + _Inout_ void* context, + _In_ const FWPM_VSWITCH_EVENT0* vSwitchEvent + ); + +DWORD +WINAPI +FwpmvSwitchEventSubscribe0( + _In_ HANDLE engineHandle, + _In_ const FWPM_VSWITCH_EVENT_SUBSCRIPTION0* subscription, + _In_ FWPM_VSWITCH_EVENT_CALLBACK0 callback, + _In_opt_ void* context, + _Out_ HANDLE* subscriptionHandle + ); + +DWORD +WINAPI +FwpmvSwitchEventUnsubscribe0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE subscriptionHandle + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +DWORD +WINAPI +FwpmvSwitchEventsGetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpmvSwitchEventsSetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +//////////////////////////////////////////////////////////////// +// +// Functions for managing connection policy. +// +//////////////////////////////////////////////////////////////// + +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +DWORD +WINAPI +FwpmConnectionPolicyAdd0( + _In_ HANDLE engineHandle, + _In_ const FWPM_PROVIDER_CONTEXT3* connectionPolicy, + _In_ FWP_IP_VERSION ipVersion, + _In_ UINT64 weight, + _In_ UINT32 numFilterConditions, + _In_reads_(numFilterConditions) + const FWPM_FILTER_CONDITION0* filterConditions, + _In_opt_ PSECURITY_DESCRIPTOR sd + ); + +DWORD +WINAPI +FwpmConnectionPolicyDeleteByKey0( + _In_ HANDLE engineHandle, + _In_ const GUID* key + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + +#ifdef __cplusplus +} +#endif +#endif // FWPMX_H +#endif // GUID_DEFS_ONLY +#endif // (NTDDI_VERSION >= NTDDI_WIN6) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_APPRUNTIME) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fwpsu.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fwpsu.h new file mode 100644 index 0000000000000000000000000000000000000000..2e3f12b8d0ecec486b028ad82d905084bf9e9f23 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fwpsu.h @@ -0,0 +1,2579 @@ +/* + Copyright (c) Microsoft Corporation + + SYNOPSIS + + Declares the system portion of the FWP API. +*/ + +#ifndef FWPSX_H +#define FWPSX_H +#if _MSC_VER >= 1020 +#pragma once +#endif +#include + +#pragma region Desktop Family or AppRuntime Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_APPRUNTIME) + + +#if (NTDDI_VERSION >= NTDDI_WIN6) + +#include "fwpstypes.h" +#include "ws2def.h" +#include +#include + +#include "fwpvi.h" + +#ifdef __cplusplus +extern "C" { +#endif + + +#if defined(_MSC_VER) && !defined(__clang__) + +/***********************************************************************************************\ +* * +* Windows Filtering Platform (WFP) Driver Callout Annotations * +* * +* Version 1.0.0 * +* * +* Defines annotations to be used in Windows Filtering Callout Drivers to enforce API * +* contracts that can be statically verified through the use of CodeQL queries. * +* * +* All APIs these annotations check for are present since Vista * +* * +\**********************************************************************************************/ + +#define _Wfp_Annotation_ __declspec("_Wfp_Annotation_") +#define _Wfp_stream_injection_classify_ __declspec("_Wfp_stream_injection_classify_") +#define _Wfp_stream_inspection_classify_ __declspec("_Wfp_stream_inspection_classify_") +#define _Wfp_stream_inspection_notify_ __declspec("_Wfp_stream_inspection_notify_") +#define _Wfp_flow_inspection_notify_ __declspec("_Wfp_flow_inspection_notify_") +#define _Wfp_flow_inspection_classify_ __declspec("_Wfp_flow_inspection_classify_") +#define _Wfp_flow_injection_classify_ __declspec("_Wfp_flow_injection_classify_") +#define _Wfp_Transport_inspection_classify_ __declspec("_Wfp_Transport_inspection_classify_") +#define _Wfp_transport_injection_classify_ __declspec("_Wfp_transport_injection_classify_") +#define _Wfp_transport_injection_classify_inline_ __declspec("_Wfp_transport_injection_classify_inline_") +#define _Wfp_ale_inspection_notify_ __declspec("_Wfp_ale_inspection_notify_") +#define _Wfp_ale_inspection_classify_ __declspec("_Wfp_ale_inspection_classify_") + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +// Connect Redirect APIs are not availible until Windows 8 +#define _Wfp_connect_redirect_inline_classify_ __declspec("_Wfp_connect_redirect_inline_classify_") +#define _Wfp_connect_redirect_classify_ __declspec("_Wfp_connect_redirect_classify_") + +#endif /// (NTDDI_VERSION >= NTDDI_WIN8) + +#endif /// (_MSC_VER) && !defined(__clang__) + +/////////////////////////////////////////////////////////////////////////////// +// +// LUIDs for built-in layers. +// +/////////////////////////////////////////////////////////////////////////////// + +typedef enum FWPS_BUILTIN_LAYERS_ +{ + // Kernel-mode layers + FWPS_LAYER_INBOUND_IPPACKET_V4, // 0 + FWPS_LAYER_INBOUND_IPPACKET_V4_DISCARD, + FWPS_LAYER_INBOUND_IPPACKET_V6, + FWPS_LAYER_INBOUND_IPPACKET_V6_DISCARD, + FWPS_LAYER_OUTBOUND_IPPACKET_V4, + FWPS_LAYER_OUTBOUND_IPPACKET_V4_DISCARD, // 5 + FWPS_LAYER_OUTBOUND_IPPACKET_V6, + FWPS_LAYER_OUTBOUND_IPPACKET_V6_DISCARD, + FWPS_LAYER_IPFORWARD_V4, + FWPS_LAYER_IPFORWARD_V4_DISCARD, + FWPS_LAYER_IPFORWARD_V6, // 10 + FWPS_LAYER_IPFORWARD_V6_DISCARD, + FWPS_LAYER_INBOUND_TRANSPORT_V4, + FWPS_LAYER_INBOUND_TRANSPORT_V4_DISCARD, + FWPS_LAYER_INBOUND_TRANSPORT_V6, + FWPS_LAYER_INBOUND_TRANSPORT_V6_DISCARD, // 15 + FWPS_LAYER_OUTBOUND_TRANSPORT_V4, + FWPS_LAYER_OUTBOUND_TRANSPORT_V4_DISCARD, + FWPS_LAYER_OUTBOUND_TRANSPORT_V6, + FWPS_LAYER_OUTBOUND_TRANSPORT_V6_DISCARD, + FWPS_LAYER_STREAM_V4, // 20 + FWPS_LAYER_STREAM_V4_DISCARD, + FWPS_LAYER_STREAM_V6, + FWPS_LAYER_STREAM_V6_DISCARD, + FWPS_LAYER_DATAGRAM_DATA_V4, + FWPS_LAYER_DATAGRAM_DATA_V4_DISCARD, // 25 + FWPS_LAYER_DATAGRAM_DATA_V6, + FWPS_LAYER_DATAGRAM_DATA_V6_DISCARD, + FWPS_LAYER_INBOUND_ICMP_ERROR_V4, + FWPS_LAYER_INBOUND_ICMP_ERROR_V4_DISCARD, + FWPS_LAYER_INBOUND_ICMP_ERROR_V6, // 30 + FWPS_LAYER_INBOUND_ICMP_ERROR_V6_DISCARD, + FWPS_LAYER_OUTBOUND_ICMP_ERROR_V4, + FWPS_LAYER_OUTBOUND_ICMP_ERROR_V4_DISCARD, + FWPS_LAYER_OUTBOUND_ICMP_ERROR_V6, + FWPS_LAYER_OUTBOUND_ICMP_ERROR_V6_DISCARD, // 35 + FWPS_LAYER_ALE_RESOURCE_ASSIGNMENT_V4, + FWPS_LAYER_ALE_RESOURCE_ASSIGNMENT_V4_DISCARD, + FWPS_LAYER_ALE_RESOURCE_ASSIGNMENT_V6, + FWPS_LAYER_ALE_RESOURCE_ASSIGNMENT_V6_DISCARD, + FWPS_LAYER_ALE_AUTH_LISTEN_V4, // 40 + FWPS_LAYER_ALE_AUTH_LISTEN_V4_DISCARD, + FWPS_LAYER_ALE_AUTH_LISTEN_V6, + FWPS_LAYER_ALE_AUTH_LISTEN_V6_DISCARD, + FWPS_LAYER_ALE_AUTH_RECV_ACCEPT_V4, + FWPS_LAYER_ALE_AUTH_RECV_ACCEPT_V4_DISCARD, // 45 + FWPS_LAYER_ALE_AUTH_RECV_ACCEPT_V6, + FWPS_LAYER_ALE_AUTH_RECV_ACCEPT_V6_DISCARD, + FWPS_LAYER_ALE_AUTH_CONNECT_V4, + FWPS_LAYER_ALE_AUTH_CONNECT_V4_DISCARD, + FWPS_LAYER_ALE_AUTH_CONNECT_V6, // 50 + FWPS_LAYER_ALE_AUTH_CONNECT_V6_DISCARD, + FWPS_LAYER_ALE_FLOW_ESTABLISHED_V4, + FWPS_LAYER_ALE_FLOW_ESTABLISHED_V4_DISCARD, + FWPS_LAYER_ALE_FLOW_ESTABLISHED_V6, + FWPS_LAYER_ALE_FLOW_ESTABLISHED_V6_DISCARD, // 55 +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_LAYER_INBOUND_MAC_FRAME_ETHERNET, + FWPS_LAYER_OUTBOUND_MAC_FRAME_ETHERNET, +#if (NTDDI_VERSION == NTDDI_WIN7) + FWPS_LAYER_RESERVED1_V4, + FWPS_LAYER_RESERVED1_V6, +#else + FWPS_LAYER_INBOUND_MAC_FRAME_NATIVE, + FWPS_LAYER_OUTBOUND_MAC_FRAME_NATIVE, +#endif + FWPS_LAYER_NAME_RESOLUTION_CACHE_V4, // 60 + FWPS_LAYER_NAME_RESOLUTION_CACHE_V6, + FWPS_LAYER_ALE_RESOURCE_RELEASE_V4, + FWPS_LAYER_ALE_RESOURCE_RELEASE_V6, + FWPS_LAYER_ALE_ENDPOINT_CLOSURE_V4, + FWPS_LAYER_ALE_ENDPOINT_CLOSURE_V6, // 65 + FWPS_LAYER_ALE_CONNECT_REDIRECT_V4, + FWPS_LAYER_ALE_CONNECT_REDIRECT_V6, + FWPS_LAYER_ALE_BIND_REDIRECT_V4, + FWPS_LAYER_ALE_BIND_REDIRECT_V6, + FWPS_LAYER_STREAM_PACKET_V4, // 70 + FWPS_LAYER_STREAM_PACKET_V6, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_LAYER_INGRESS_VSWITCH_ETHERNET, + FWPS_LAYER_EGRESS_VSWITCH_ETHERNET, + FWPS_LAYER_INGRESS_VSWITCH_TRANSPORT_V4, + FWPS_LAYER_INGRESS_VSWITCH_TRANSPORT_V6, // 75 + FWPS_LAYER_EGRESS_VSWITCH_TRANSPORT_V4, + FWPS_LAYER_EGRESS_VSWITCH_TRANSPORT_V6, +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + FWPS_LAYER_INBOUND_TRANSPORT_FAST, + FWPS_LAYER_OUTBOUND_TRANSPORT_FAST, + FWPS_LAYER_INBOUND_MAC_FRAME_NATIVE_FAST, // 80 + FWPS_LAYER_OUTBOUND_MAC_FRAME_NATIVE_FAST, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) + FWPS_LAYER_INBOUND_RESERVED2, +#if (NTDDI_VERSION >= NTDDI_WIN10_FE) + FWPS_LAYER_RESERVED_LAYER_9, + FWPS_LAYER_RESERVED_LAYER_10, +#if (NTDDI_VERSION >= NTDDI_WIN10_NI) + FWPS_LAYER_OUTBOUND_NETWORK_CONNECTION_POLICY_V4, // 85 + FWPS_LAYER_OUTBOUND_NETWORK_CONNECTION_POLICY_V6, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_NI) +#endif // (NTDDI_VERSION >= NTDDI_WIN10_FE) +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) +#endif // (NTDDI_VERSION >= NTDDI_WINBLUE) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + // User-mode layers + FWPS_LAYER_IPSEC_KM_DEMUX_V4, // 87 + FWPS_LAYER_IPSEC_KM_DEMUX_V6, + FWPS_LAYER_IPSEC_V4, + FWPS_LAYER_IPSEC_V6, // 90 + FWPS_LAYER_IKEEXT_V4, + FWPS_LAYER_IKEEXT_V6, + FWPS_LAYER_RPC_UM, + FWPS_LAYER_RPC_EPMAP, + FWPS_LAYER_RPC_EP_ADD, // 95 + FWPS_LAYER_RPC_PROXY_CONN, + FWPS_LAYER_RPC_PROXY_IF, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_LAYER_KM_AUTHORIZATION, +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_BUILTIN_LAYER_MAX, // 99 +} FWPS_BUILTIN_LAYERS; + +#define FWPS_BUILTIN_KM_LAYER_MAX FWPS_LAYER_IPSEC_KM_DEMUX_V4 + +/////////////////////////////////////////////////////////////////////////////// +// +// LUIDs for built-in fields. +// +/////////////////////////////////////////////////////////////////////////////// + +typedef enum FWPS_FIELDS_INBOUND_IPPACKET_V4_ +{ + FWPS_FIELD_INBOUND_IPPACKET_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_INBOUND_IPPACKET_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_INBOUND_IPPACKET_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_INBOUND_IPPACKET_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_INBOUND_IPPACKET_V4_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_IPPACKET_V4_SUB_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_IPPACKET_V4_FLAGS, + FWPS_FIELD_INBOUND_IPPACKET_V4_INTERFACE_TYPE, + FWPS_FIELD_INBOUND_IPPACKET_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_IPPACKET_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_IPPACKET_V4_MAX +} FWPS_FIELDS_INBOUND_IPPACKET_V4; + +typedef enum FWPS_FIELDS_INBOUND_IPPACKET_V6_ +{ + FWPS_FIELD_INBOUND_IPPACKET_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_INBOUND_IPPACKET_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_INBOUND_IPPACKET_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_INBOUND_IPPACKET_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_INBOUND_IPPACKET_V6_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_IPPACKET_V6_SUB_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_IPPACKET_V6_FLAGS, + FWPS_FIELD_INBOUND_IPPACKET_V6_INTERFACE_TYPE, + FWPS_FIELD_INBOUND_IPPACKET_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_IPPACKET_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_IPPACKET_V6_MAX +} FWPS_FIELDS_INBOUND_IPPACKET_V6; + +typedef enum FWPS_FIELDS_OUTBOUND_IPPACKET_V4_ +{ + FWPS_FIELD_OUTBOUND_IPPACKET_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_OUTBOUND_IPPACKET_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_IPPACKET_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_OUTBOUND_IPPACKET_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_OUTBOUND_IPPACKET_V4_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_IPPACKET_V4_SUB_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_IPPACKET_V4_FLAGS, + FWPS_FIELD_OUTBOUND_IPPACKET_V4_INTERFACE_TYPE, + FWPS_FIELD_OUTBOUND_IPPACKET_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_IPPACKET_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_IPPACKET_V4_MAX +} FWPS_FIELDS_OUTBOUND_IPPACKET_V4; + +typedef enum FWPS_FIELDS_OUTBOUND_IPPACKET_V6_ +{ + FWPS_FIELD_OUTBOUND_IPPACKET_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_OUTBOUND_IPPACKET_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_IPPACKET_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_OUTBOUND_IPPACKET_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_OUTBOUND_IPPACKET_V6_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_IPPACKET_V6_SUB_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_IPPACKET_V6_FLAGS, + FWPS_FIELD_OUTBOUND_IPPACKET_V6_INTERFACE_TYPE, + FWPS_FIELD_OUTBOUND_IPPACKET_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_IPPACKET_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_IPPACKET_V6_MAX +} FWPS_FIELDS_OUTBOUND_IPPACKET_V6; + +typedef enum FWPS_FIELDS_IPFORWARD_V4_ +{ + FWPS_FIELD_IPFORWARD_V4_IP_SOURCE_ADDRESS, + FWPS_FIELD_IPFORWARD_V4_IP_DESTINATION_ADDRESS, + FWPS_FIELD_IPFORWARD_V4_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_IPFORWARD_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_IPFORWARD_V4_IP_FORWARD_INTERFACE, + FWPS_FIELD_IPFORWARD_V4_SOURCE_INTERFACE_INDEX, + FWPS_FIELD_IPFORWARD_V4_SOURCE_SUB_INTERFACE_INDEX, + FWPS_FIELD_IPFORWARD_V4_DESTINATION_INTERFACE_INDEX, + FWPS_FIELD_IPFORWARD_V4_DESTINATION_SUB_INTERFACE_INDEX, + FWPS_FIELD_IPFORWARD_V4_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IPFORWARD_V4_IP_PHYSICAL_ARRIVAL_INTERFACE, + FWPS_FIELD_IPFORWARD_V4_ARRIVAL_INTERFACE_PROFILE_ID, + FWPS_FIELD_IPFORWARD_V4_IP_PHYSICAL_NEXTHOP_INTERFACE, + FWPS_FIELD_IPFORWARD_V4_NEXTHOP_INTERFACE_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_IPFORWARD_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IPFORWARD_V4_MAX +} FWPS_FIELDS_IPFORWARD_V4; + +typedef enum FWPS_FIELDS_IPFORWARD_V6_ +{ + FWPS_FIELD_IPFORWARD_V6_IP_SOURCE_ADDRESS, + FWPS_FIELD_IPFORWARD_V6_IP_DESTINATION_ADDRESS, + FWPS_FIELD_IPFORWARD_V6_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_IPFORWARD_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_IPFORWARD_V6_IP_FORWARD_INTERFACE, + FWPS_FIELD_IPFORWARD_V6_SOURCE_INTERFACE_INDEX, + FWPS_FIELD_IPFORWARD_V6_SOURCE_SUB_INTERFACE_INDEX, + FWPS_FIELD_IPFORWARD_V6_DESTINATION_INTERFACE_INDEX, + FWPS_FIELD_IPFORWARD_V6_DESTINATION_SUB_INTERFACE_INDEX, + FWPS_FIELD_IPFORWARD_V6_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IPFORWARD_V6_IP_PHYSICAL_ARRIVAL_INTERFACE, + FWPS_FIELD_IPFORWARD_V6_ARRIVAL_INTERFACE_PROFILE_ID, + FWPS_FIELD_IPFORWARD_V6_IP_PHYSICAL_NEXTHOP_INTERFACE, + FWPS_FIELD_IPFORWARD_V6_NEXTHOP_INTERFACE_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_IPFORWARD_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IPFORWARD_V6_MAX +} FWPS_FIELDS_IPFORWARD_V6; + +typedef enum FWPS_FIELDS_INBOUND_TRANSPORT_V4_ +{ + FWPS_FIELD_INBOUND_TRANSPORT_V4_IP_PROTOCOL, + FWPS_FIELD_INBOUND_TRANSPORT_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_INBOUND_TRANSPORT_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_INBOUND_TRANSPORT_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_INBOUND_TRANSPORT_V4_IP_LOCAL_PORT, + FWPS_FIELD_INBOUND_TRANSPORT_V4_IP_REMOTE_PORT, + FWPS_FIELD_INBOUND_TRANSPORT_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_INBOUND_TRANSPORT_V4_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_TRANSPORT_V4_SUB_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_TRANSPORT_V4_FLAGS, + FWPS_FIELD_INBOUND_TRANSPORT_V4_INTERFACE_TYPE, + FWPS_FIELD_INBOUND_TRANSPORT_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_INBOUND_TRANSPORT_V4_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_INBOUND_TRANSPORT_V4_IPSEC_SECURITY_REALM_ID, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_TRANSPORT_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_INBOUND_TRANSPORT_V4_MAX +} FWPS_FIELDS_INBOUND_TRANSPORT_V4; + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) +typedef enum FWPS_FIELDS_INBOUND_TRANSPORT_FAST +{ + FWPS_FIELD_INBOUND_TRANSPORT_FAST_MAX +} FWPS_FIELDS_INBOUND_TRANSPORT_FAST; + +typedef enum FWPS_FIELDS_OUTBOUND_TRANSPORT_FAST +{ + FWPS_FIELD_OUTBOUND_TRANSPORT_FAST_MAX +} FWPS_FIELDS_OUTBOUND_TRANSPORT_FAST; +#endif //(NTDDI_VERSION >= NTDDI_WINBLUE) + +#define FWPS_FIELD_INBOUND_TRANSPORT_V4_ICMP_TYPE \ + FWPS_FIELD_INBOUND_TRANSPORT_V4_IP_LOCAL_PORT + +#define FWPS_FIELD_INBOUND_TRANSPORT_V4_ICMP_CODE \ + FWPS_FIELD_INBOUND_TRANSPORT_V4_IP_REMOTE_PORT + +typedef enum FWPS_FIELDS_INBOUND_TRANSPORT_V6_ +{ + FWPS_FIELD_INBOUND_TRANSPORT_V6_IP_PROTOCOL, + FWPS_FIELD_INBOUND_TRANSPORT_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_INBOUND_TRANSPORT_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_INBOUND_TRANSPORT_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_INBOUND_TRANSPORT_V6_IP_LOCAL_PORT, + FWPS_FIELD_INBOUND_TRANSPORT_V6_IP_REMOTE_PORT, + FWPS_FIELD_INBOUND_TRANSPORT_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_INBOUND_TRANSPORT_V6_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_TRANSPORT_V6_SUB_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_TRANSPORT_V6_FLAGS, + FWPS_FIELD_INBOUND_TRANSPORT_V6_INTERFACE_TYPE, + FWPS_FIELD_INBOUND_TRANSPORT_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_INBOUND_TRANSPORT_V6_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_INBOUND_TRANSPORT_V6_IPSEC_SECURITY_REALM_ID, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_TRANSPORT_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_INBOUND_TRANSPORT_V6_MAX +} FWPS_FIELDS_INBOUND_TRANSPORT_V6; + +#define FWPS_FIELD_INBOUND_TRANSPORT_V6_ICMP_TYPE \ + FWPS_FIELD_INBOUND_TRANSPORT_V6_IP_LOCAL_PORT + +#define FWPS_FIELD_INBOUND_TRANSPORT_V6_ICMP_CODE \ + FWPS_FIELD_INBOUND_TRANSPORT_V6_IP_REMOTE_PORT + +typedef enum FWPS_FIELDS_OUTBOUND_TRANSPORT_V4_ +{ + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_PROTOCOL, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_LOCAL_PORT, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_REMOTE_PORT, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_SUB_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_FLAGS, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_INTERFACE_TYPE, + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IPSEC_SECURITY_REALM_ID, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_MAX +} FWPS_FIELDS_OUTBOUND_TRANSPORT_V4; + +#define FWPS_FIELD_OUTBOUND_TRANSPORT_V4_ICMP_TYPE \ + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_LOCAL_PORT + +#define FWPS_FIELD_OUTBOUND_TRANSPORT_V4_ICMP_CODE \ + FWPS_FIELD_OUTBOUND_TRANSPORT_V4_IP_REMOTE_PORT + +typedef enum FWPS_FIELDS_OUTBOUND_TRANSPORT_V6_ +{ + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IP_PROTOCOL, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IP_LOCAL_PORT, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IP_REMOTE_PORT, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_SUB_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_FLAGS, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_INTERFACE_TYPE, + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IPSEC_SECURITY_REALM_ID, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_MAX +} FWPS_FIELDS_OUTBOUND_TRANSPORT_V6; + +#define FWPS_FIELD_OUTBOUND_TRANSPORT_V6_ICMP_TYPE \ + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IP_LOCAL_PORT + +#define FWPS_FIELD_OUTBOUND_TRANSPORT_V6_ICMP_CODE \ + FWPS_FIELD_OUTBOUND_TRANSPORT_V6_IP_REMOTE_PORT + +typedef enum FWPS_FIELDS_STREAM_V4_ +{ + FWPS_FIELD_STREAM_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_STREAM_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_STREAM_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_STREAM_V4_IP_LOCAL_PORT, + FWPS_FIELD_STREAM_V4_IP_REMOTE_PORT, + FWPS_FIELD_STREAM_V4_DIRECTION, +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_STREAM_V4_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_STREAM_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_STREAM_V4_MAX +} FWPS_FIELDS_STREAM_V4; + +typedef enum FWPS_FIELDS_STREAM_V6_ +{ + FWPS_FIELD_STREAM_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_STREAM_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_STREAM_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_STREAM_V6_IP_LOCAL_PORT, + FWPS_FIELD_STREAM_V6_IP_REMOTE_PORT, + FWPS_FIELD_STREAM_V6_DIRECTION, +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_STREAM_V6_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_STREAM_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_STREAM_V6_MAX +} FWPS_FIELDS_STREAM_V6; + +typedef enum FWPS_FIELDS_DATAGRAM_DATA_V4_ +{ + FWPS_FIELD_DATAGRAM_DATA_V4_IP_PROTOCOL, + FWPS_FIELD_DATAGRAM_DATA_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_DATAGRAM_DATA_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_DATAGRAM_DATA_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_DATAGRAM_DATA_V4_IP_LOCAL_PORT, + FWPS_FIELD_DATAGRAM_DATA_V4_IP_REMOTE_PORT, + FWPS_FIELD_DATAGRAM_DATA_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_DATAGRAM_DATA_V4_INTERFACE_INDEX, + FWPS_FIELD_DATAGRAM_DATA_V4_SUB_INTERFACE_INDEX, + FWPS_FIELD_DATAGRAM_DATA_V4_DIRECTION, + FWPS_FIELD_DATAGRAM_DATA_V4_FLAGS, + FWPS_FIELD_DATAGRAM_DATA_V4_INTERFACE_TYPE, + FWPS_FIELD_DATAGRAM_DATA_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_DATAGRAM_DATA_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_DATAGRAM_DATA_V4_MAX +} FWPS_FIELDS_DATAGRAM_DATA_V4; + +#define FWPS_FIELD_DATAGRAM_DATA_V4_ICMP_TYPE \ + FWPS_FIELD_DATAGRAM_DATA_V4_IP_LOCAL_PORT + +#define FWPS_FIELD_DATAGRAM_DATA_V4_ICMP_CODE \ + FWPS_FIELD_DATAGRAM_DATA_V4_IP_REMOTE_PORT + + +typedef enum FWPS_FIELDS_DATAGRAM_DATA_V6_ +{ + FWPS_FIELD_DATAGRAM_DATA_V6_IP_PROTOCOL, + FWPS_FIELD_DATAGRAM_DATA_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_DATAGRAM_DATA_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_DATAGRAM_DATA_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_DATAGRAM_DATA_V6_IP_LOCAL_PORT, + FWPS_FIELD_DATAGRAM_DATA_V6_IP_REMOTE_PORT, + FWPS_FIELD_DATAGRAM_DATA_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_DATAGRAM_DATA_V6_INTERFACE_INDEX, + FWPS_FIELD_DATAGRAM_DATA_V6_SUB_INTERFACE_INDEX, + FWPS_FIELD_DATAGRAM_DATA_V6_DIRECTION, + FWPS_FIELD_DATAGRAM_DATA_V6_FLAGS, + FWPS_FIELD_DATAGRAM_DATA_V6_INTERFACE_TYPE, + FWPS_FIELD_DATAGRAM_DATA_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_DATAGRAM_DATA_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_DATAGRAM_DATA_V6_MAX +} FWPS_FIELDS_DATAGRAM_DATA_V6; + +#define FWPS_FIELD_DATAGRAM_DATA_V6_ICMP_TYPE \ + FWPS_FIELD_DATAGRAM_DATA_V6_IP_LOCAL_PORT + +#define FWPS_FIELD_DATAGRAM_DATA_V6_ICMP_CODE \ + FWPS_FIELD_DATAGRAM_DATA_V6_IP_REMOTE_PORT + +#if (NTDDI_VERSION >= NTDDI_WIN7) +typedef enum FWPS_FIELDS_STREAM_PACKET_V4_ +{ + FWPS_FIELD_STREAM_PACKET_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_STREAM_PACKET_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_STREAM_PACKET_V4_IP_LOCAL_PORT, + FWPS_FIELD_STREAM_PACKET_V4_IP_REMOTE_PORT, + FWPS_FIELD_STREAM_PACKET_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_STREAM_PACKET_V4_INTERFACE_INDEX, + FWPS_FIELD_STREAM_PACKET_V4_SUB_INTERFACE_INDEX, + FWPS_FIELD_STREAM_PACKET_V4_DIRECTION, + FWPS_FIELD_STREAM_PACKET_V4_FLAGS, + FWPS_FIELD_STREAM_PACKET_V4_INTERFACE_TYPE, + FWPS_FIELD_STREAM_PACKET_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_STREAM_PACKET_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_STREAM_PACKET_V4_MAX +} FWPS_FIELDS_STREAM_PACKET_V4; + +typedef enum FWPS_FIELDS_STREAM_PACKET_V6_ +{ + FWPS_FIELD_STREAM_PACKET_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_STREAM_PACKET_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_STREAM_PACKET_V6_IP_LOCAL_PORT, + FWPS_FIELD_STREAM_PACKET_V6_IP_REMOTE_PORT, + FWPS_FIELD_STREAM_PACKET_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_STREAM_PACKET_V6_INTERFACE_INDEX, + FWPS_FIELD_STREAM_PACKET_V6_SUB_INTERFACE_INDEX, + FWPS_FIELD_STREAM_PACKET_V6_DIRECTION, + FWPS_FIELD_STREAM_PACKET_V6_FLAGS, + FWPS_FIELD_STREAM_PACKET_V6_INTERFACE_TYPE, + FWPS_FIELD_STREAM_PACKET_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_STREAM_PACKET_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_STREAM_PACKET_V6_MAX +} FWPS_FIELDS_STREAM_PACKET_V6; +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +typedef enum FWPS_FIELDS_INBOUND_ICMP_ERROR_V4_ +{ + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_EMBEDDED_PROTOCOL, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_EMBEDDED_REMOTE_ADDRESS, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_EMBEDDED_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_EMBEDDED_LOCAL_PORT, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_EMBEDDED_REMOTE_PORT, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_ICMP_TYPE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_ICMP_CODE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_INTERFACE_INDEX, // of local/delivery interface + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_SUB_INTERFACE_INDEX, // of arrival interface + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_INTERFACE_TYPE, // of local/delivery interface + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_TUNNEL_TYPE, // of local/delivery interface +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_IP_ARRIVAL_INTERFACE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_ARRIVAL_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_ARRIVAL_INTERFACE_TYPE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_ARRIVAL_TUNNEL_TYPE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_ARRIVAL_INTERFACE_PROFILE_ID, + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_INTERFACE_QUARANTINE_EPOCH, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_MAX +} FWPS_FIELDS_INBOUND_ICMP_ERROR_V4; + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#define FWPS_FIELD_INBOUND_ICMP_ERROR_V4_LOCAL_INTERFACE_INDEX \ + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_INTERFACE_INDEX + +#define FWPS_FIELD_INBOUND_ICMP_ERROR_V4_ARRIVAL_SUB_INTERFACE_INDEX \ + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_SUB_INTERFACE_INDEX + +#define FWPS_FIELD_INBOUND_ICMP_ERROR_V4_LOCAL_INTERFACE_TYPE \ + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_INTERFACE_TYPE + +#define FWPS_FIELD_INBOUND_ICMP_ERROR_V4_LOCAL_TUNNEL_TYPE \ + FWPS_FIELD_INBOUND_ICMP_ERROR_V4_TUNNEL_TYPE + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +typedef enum FWPS_FIELDS_INBOUND_ICMP_ERROR_V6_ +{ + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_EMBEDDED_PROTOCOL, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_EMBEDDED_REMOTE_ADDRESS, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_EMBEDDED_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_EMBEDDED_LOCAL_PORT, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_EMBEDDED_REMOTE_PORT, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_ICMP_TYPE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_ICMP_CODE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_INTERFACE_INDEX, // of local/delivery interface + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_SUB_INTERFACE_INDEX, // of arrival interface + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_INTERFACE_TYPE, // of local/delivery interface + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_TUNNEL_TYPE, // of local/delivery interface +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_IP_ARRIVAL_INTERFACE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_ARRIVAL_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_ARRIVAL_INTERFACE_TYPE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_ARRIVAL_TUNNEL_TYPE, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_ARRIVAL_INTERFACE_PROFILE_ID, + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_INTERFACE_QUARANTINE_EPOCH, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_MAX +} FWPS_FIELDS_INBOUND_ICMP_ERROR_V6; + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#define FWPS_FIELD_INBOUND_ICMP_ERROR_V6_LOCAL_INTERFACE_INDEX \ + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_INTERFACE_INDEX + +#define FWPS_FIELD_INBOUND_ICMP_ERROR_V6_ARRIVAL_SUB_INTERFACE_INDEX \ + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_SUB_INTERFACE_INDEX + +#define FWPS_FIELD_INBOUND_ICMP_ERROR_V6_LOCAL_INTERFACE_TYPE \ + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_INTERFACE_TYPE + +#define FWPS_FIELD_INBOUND_ICMP_ERROR_V6_LOCAL_TUNNEL_TYPE \ + FWPS_FIELD_INBOUND_ICMP_ERROR_V6_TUNNEL_TYPE + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +typedef enum FWPS_FIELDS_OUTBOUND_ICMP_ERROR_V4_ +{ + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_ICMP_TYPE, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_ICMP_CODE, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_SUB_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_INTERFACE_TYPE, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_NEXTHOP_INTERFACE_PROFILE_ID, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_INTERFACE_QUARANTINE_EPOCH, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V4_MAX +} FWPS_FIELDS_OUTBOUND_ICMP_ERROR_V4; + +typedef enum FWPS_FIELDS_OUTBOUND_ICMP_ERROR_V6_ +{ + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_IP_LOCAL_PORT, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_IP_REMOTE_PORT, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_SUB_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_INTERFACE_TYPE, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_NEXTHOP_INTERFACE_PROFILE_ID, + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_INTERFACE_QUARANTINE_EPOCH, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_MAX +} FWPS_FIELDS_OUTBOUND_ICMP_ERROR_V6; + +#define FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_ICMP_TYPE \ + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_IP_LOCAL_PORT + +#define FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_ICMP_CODE \ + FWPS_FIELD_OUTBOUND_ICMP_ERROR_V6_IP_REMOTE_PORT + +typedef enum FWPS_FIELDS_ALE_RESOURCE_ASSIGNMENT_V4_ +{ + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_ALE_APP_ID, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_ALE_USER_ID, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_IP_LOCAL_PORT, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_IP_PROTOCOL, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_ALE_PROMISCUOUS_MODE, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_FLAGS, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_INTERFACE_TYPE, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_LOCAL_INTERFACE_PROFILE_ID, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_SIO_FIREWALL_SOCKET_PROPERTY, +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + // + // These reserved fields MUST be in this order. DO NOT change their order + // + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_RESERVED_0, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_RESERVED_1, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V4_MAX +} FWPS_FIELDS_ALE_RESOURCE_ASSIGNMENT_V4; + +typedef enum FWPS_FIELDS_ALE_RESOURCE_ASSIGNMENT_V6_ +{ + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_ALE_APP_ID, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_ALE_USER_ID, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_IP_LOCAL_PORT, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_IP_PROTOCOL, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_ALE_PROMISCUOUS_MODE, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_FLAGS, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_INTERFACE_TYPE, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_LOCAL_INTERFACE_PROFILE_ID, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_SIO_FIREWALL_SOCKET_PROPERTY, +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + // + // These reserved fields MUST be in this order. DO NOT change their order + // + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_RESERVED_0, + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_RESERVED_1, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_RESOURCE_ASSIGNMENT_V6_MAX +} FWPS_FIELDS_ALE_RESOURCE_ASSIGNMENT_V6; + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +typedef enum FWPS_FIELDS_ALE_RESOURCE_RELEASE_V4_ +{ + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_ALE_APP_ID, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_ALE_USER_ID, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_IP_LOCAL_PORT, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_IP_PROTOCOL, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_RESOURCE_RELEASE_V4_MAX +} FWPS_FIELDS_ALE_RESOURCE_RELEASE_V4; + +typedef enum FWPS_FIELDS_ALE_RESOURCE_RELEASE_V6_ +{ + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_ALE_APP_ID, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_ALE_USER_ID, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_IP_LOCAL_PORT, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_IP_PROTOCOL, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_RESOURCE_RELEASE_V6_MAX +} FWPS_FIELDS_ALE_RESOURCE_RELEASE_V6; + +typedef enum FWPS_FIELDS_ALE_ENDPOINT_CLOSURE_V4_ +{ + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_ALE_APP_ID, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_ALE_USER_ID, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_IP_LOCAL_PORT, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_IP_PROTOCOL, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_IP_REMOTE_PORT, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V4_MAX +} FWPS_FIELDS_ALE_ENDPOINT_CLOSURE_V4; + +typedef enum FWPS_FIELDS_ALE_ENDPOINT_CLOSURE_V6_ +{ + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_ALE_APP_ID, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_ALE_USER_ID, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_IP_LOCAL_PORT, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_IP_PROTOCOL, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_IP_REMOTE_PORT, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_ENDPOINT_CLOSURE_V6_MAX +} FWPS_FIELDS_ALE_ENDPOINT_CLOSURE_V6; + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +typedef enum FWPS_FIELDS_ALE_AUTH_LISTEN_V4_ +{ + FWPS_FIELD_ALE_AUTH_LISTEN_V4_ALE_APP_ID, + FWPS_FIELD_ALE_AUTH_LISTEN_V4_ALE_USER_ID, + FWPS_FIELD_ALE_AUTH_LISTEN_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_AUTH_LISTEN_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_AUTH_LISTEN_V4_IP_LOCAL_PORT, + FWPS_FIELD_ALE_AUTH_LISTEN_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_AUTH_LISTEN_V4_FLAGS, + FWPS_FIELD_ALE_AUTH_LISTEN_V4_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_LISTEN_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_ALE_AUTH_LISTEN_V4_LOCAL_INTERFACE_PROFILE_ID, + FWPS_FIELD_ALE_AUTH_LISTEN_V4_SIO_FIREWALL_SOCKET_PROPERTY, +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_AUTH_LISTEN_V4_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_AUTH_LISTEN_V4_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_AUTH_LISTEN_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_LISTEN_V4_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_LISTEN_V4_MAX +} FWPS_FIELDS_ALE_AUTH_LISTEN_V4; + +typedef enum FWPS_FIELDS_ALE_AUTH_LISTEN_V6_ +{ + FWPS_FIELD_ALE_AUTH_LISTEN_V6_ALE_APP_ID, + FWPS_FIELD_ALE_AUTH_LISTEN_V6_ALE_USER_ID, + FWPS_FIELD_ALE_AUTH_LISTEN_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_AUTH_LISTEN_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_AUTH_LISTEN_V6_IP_LOCAL_PORT, + FWPS_FIELD_ALE_AUTH_LISTEN_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_AUTH_LISTEN_V6_FLAGS, + FWPS_FIELD_ALE_AUTH_LISTEN_V6_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_LISTEN_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_ALE_AUTH_LISTEN_V6_LOCAL_INTERFACE_PROFILE_ID, + FWPS_FIELD_ALE_AUTH_LISTEN_V6_SIO_FIREWALL_SOCKET_PROPERTY, +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_AUTH_LISTEN_V6_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_AUTH_LISTEN_V6_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_AUTH_LISTEN_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_LISTEN_V6_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_LISTEN_V6_MAX +} FWPS_FIELDS_ALE_AUTH_LISTEN_V6; + +typedef enum FWPS_FIELDS_ALE_AUTH_RECV_ACCEPT_V4_ +{ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ALE_APP_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ALE_USER_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_LOCAL_PORT, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_PROTOCOL, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_REMOTE_PORT, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ALE_REMOTE_USER_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ALE_REMOTE_MACHINE_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_FLAGS, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_SIO_FIREWALL_SYSTEM_PORT, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_NAP_CONTEXT, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_INTERFACE_TYPE, // of local/delivery interface + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_TUNNEL_TYPE, // of local/delivery interface + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_INTERFACE_INDEX, // of local/delivery interface + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_SUB_INTERFACE_INDEX, // of arrival interface +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_ARRIVAL_INTERFACE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ARRIVAL_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ARRIVAL_TUNNEL_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ARRIVAL_INTERFACE_INDEX, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_NEXTHOP_SUB_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_NEXTHOP_INTERFACE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_NEXTHOP_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_NEXTHOP_TUNNEL_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_NEXTHOP_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ORIGINAL_PROFILE_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_CURRENT_PROFILE_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_REAUTHORIZE_REASON, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ORIGINAL_ICMP_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_INTERFACE_QUARANTINE_EPOCH, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + // + // These reserved fields MUST be in this order. DO NOT change their order + // + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_RESERVED_0, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_RESERVED_1, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_RESERVED_2, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_RESERVED_3, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_MAX +} FWPS_FIELDS_ALE_AUTH_RECV_ACCEPT_V4; + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ICMP_TYPE \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_LOCAL_PORT + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ICMP_CODE \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_IP_REMOTE_PORT + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_LOCAL_INTERFACE_TYPE \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_INTERFACE_TYPE + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_LOCAL_TUNNEL_TYPE \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_TUNNEL_TYPE + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_LOCAL_INTERFACE_INDEX \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_INTERFACE_INDEX + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_ARRIVAL_SUB_INTERFACE_INDEX \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_SUB_INTERFACE_INDEX + +#if (NTDDI_VERSION >= NTDDI_WIN7) +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_SIO_FIREWALL_SOCKET_PROPERTY \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V4_SIO_FIREWALL_SYSTEM_PORT +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + + +typedef enum FWPS_FIELDS_ALE_AUTH_RECV_ACCEPT_V6_ +{ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ALE_APP_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ALE_USER_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_LOCAL_PORT, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_PROTOCOL, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_REMOTE_PORT, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ALE_REMOTE_USER_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ALE_REMOTE_MACHINE_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_FLAGS, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_SIO_FIREWALL_SYSTEM_PORT, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_NAP_CONTEXT, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_INTERFACE_TYPE, // of local/delivery interface + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_TUNNEL_TYPE, // of local/delivery interface + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_INTERFACE_INDEX, // of local/delivery interface + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_SUB_INTERFACE_INDEX, // of arrival interface +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_ARRIVAL_INTERFACE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ARRIVAL_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ARRIVAL_TUNNEL_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ARRIVAL_INTERFACE_INDEX, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_NEXTHOP_SUB_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_NEXTHOP_INTERFACE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_NEXTHOP_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_NEXTHOP_TUNNEL_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_NEXTHOP_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ORIGINAL_PROFILE_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_CURRENT_PROFILE_ID, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_REAUTHORIZE_REASON, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ORIGINAL_ICMP_TYPE, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_INTERFACE_QUARANTINE_EPOCH, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + // + // These reserved fields MUST be in this order. DO NOT change their order + // + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_RESERVED_0, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_RESERVED_1, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_RESERVED_2, + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_RESERVED_3, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_MAX +} FWPS_FIELDS_ALE_AUTH_RECV_ACCEPT_V6; + + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ICMP_TYPE \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_LOCAL_PORT + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ICMP_CODE \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_IP_REMOTE_PORT + +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_LOCAL_INTERFACE_TYPE \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_INTERFACE_TYPE + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_LOCAL_TUNNEL_TYPE \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_TUNNEL_TYPE + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_LOCAL_INTERFACE_INDEX \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_INTERFACE_INDEX + +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_ARRIVAL_SUB_INTERFACE_INDEX \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_SUB_INTERFACE_INDEX + +#if (NTDDI_VERSION >= NTDDI_WIN7) +#define FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_SIO_FIREWALL_SOCKET_PROPERTY \ + FWPS_FIELD_ALE_AUTH_RECV_ACCEPT_V6_SIO_FIREWALL_SYSTEM_PORT +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +typedef enum FWPS_FIELDS_ALE_BIND_REDIRECT_V4_ +{ + FWPS_FIELD_ALE_BIND_REDIRECT_V4_ALE_APP_ID, + FWPS_FIELD_ALE_BIND_REDIRECT_V4_ALE_USER_ID, + FWPS_FIELD_ALE_BIND_REDIRECT_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_BIND_REDIRECT_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_BIND_REDIRECT_V4_IP_LOCAL_PORT, + FWPS_FIELD_ALE_BIND_REDIRECT_V4_IP_PROTOCOL, + FWPS_FIELD_ALE_BIND_REDIRECT_V4_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_BIND_REDIRECT_V4_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_BIND_REDIRECT_V4_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_BIND_REDIRECT_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_BIND_REDIRECT_V4_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_BIND_REDIRECT_V4_MAX +} FWPS_FIELDS_ALE_BIND_REDIRECT_V4; + +typedef enum FWPS_FIELDS_ALE_BIND_REDIRECT_V6_ +{ + FWPS_FIELD_ALE_BIND_REDIRECT_V6_ALE_APP_ID, + FWPS_FIELD_ALE_BIND_REDIRECT_V6_ALE_USER_ID, + FWPS_FIELD_ALE_BIND_REDIRECT_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_BIND_REDIRECT_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_BIND_REDIRECT_V6_IP_LOCAL_PORT, + FWPS_FIELD_ALE_BIND_REDIRECT_V6_IP_PROTOCOL, + FWPS_FIELD_ALE_BIND_REDIRECT_V6_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_BIND_REDIRECT_V6_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_BIND_REDIRECT_V6_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_BIND_REDIRECT_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_BIND_REDIRECT_V6_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_BIND_REDIRECT_V6_MAX +} FWPS_FIELDS_ALE_BIND_REDIRECT_V6; + +typedef enum FWPS_FIELDS_ALE_CONNECT_REDIRECT_V4_ +{ + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_ALE_APP_ID, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_ALE_USER_ID, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_IP_LOCAL_PORT, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_IP_PROTOCOL, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_IP_REMOTE_PORT, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_ALE_ORIGINAL_APP_ID, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_MAX +} FWPS_FIELDS_ALE_CONNECT_REDIRECT_V4; + +#define FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_ICMP_TYPE \ + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_IP_LOCAL_PORT + +#define FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_ICMP_CODE \ + FWPS_FIELD_ALE_CONNECT_REDIRECT_V4_IP_REMOTE_PORT + +typedef enum FWPS_FIELDS_ALE_CONNECT_REDIRECT_V6_ +{ + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_ALE_APP_ID, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_ALE_USER_ID, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_IP_LOCAL_PORT, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_IP_PROTOCOL, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_IP_REMOTE_PORT, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_ALE_ORIGINAL_APP_ID, + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_MAX +} FWPS_FIELDS_ALE_CONNECT_REDIRECT_V6; + +#define FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_ICMP_TYPE \ + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_IP_LOCAL_PORT + +#define FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_ICMP_CODE \ + FWPS_FIELD_ALE_CONNECT_REDIRECT_V6_IP_REMOTE_PORT + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +typedef enum FWPS_FIELDS_ALE_AUTH_CONNECT_V4_ +{ + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ALE_APP_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ALE_USER_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_LOCAL_PORT, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_PROTOCOL, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_REMOTE_PORT, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ALE_REMOTE_USER_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ALE_REMOTE_MACHINE_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_FLAGS, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_ALE_AUTH_CONNECT_V4_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_SUB_INTERFACE_INDEX, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_ARRIVAL_INTERFACE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ARRIVAL_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ARRIVAL_TUNNEL_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ARRIVAL_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_NEXTHOP_SUB_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_NEXTHOP_INTERFACE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_NEXTHOP_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_NEXTHOP_TUNNEL_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_NEXTHOP_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ORIGINAL_PROFILE_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_CURRENT_PROFILE_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_REAUTHORIZE_REASON, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ORIGINAL_ICMP_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_INTERFACE_QUARANTINE_EPOCH, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ALE_ORIGINAL_APP_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_ALE_EFFECTIVE_NAME, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_AUTH_CONNECT_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + // + // These reserved fields MUST be in this order. DO NOT change their order + // + FWPS_FIELD_ALE_AUTH_CONNECT_V4_RESERVED_0, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_RESERVED_1, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_RESERVED_2, + FWPS_FIELD_ALE_AUTH_CONNECT_V4_RESERVED_3, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_CONNECT_V4_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_CONNECT_V4_MAX +} FWPS_FIELDS_ALE_AUTH_CONNECT_V4; + +#define FWPS_FIELD_ALE_AUTH_CONNECT_V4_ICMP_TYPE \ + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_LOCAL_PORT + +#define FWPS_FIELD_ALE_AUTH_CONNECT_V4_ICMP_CODE \ + FWPS_FIELD_ALE_AUTH_CONNECT_V4_IP_REMOTE_PORT + +typedef enum FWPS_FIELDS_ALE_AUTH_CONNECT_V6_ +{ + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ALE_APP_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ALE_USER_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_LOCAL_PORT, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_PROTOCOL, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_REMOTE_PORT, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ALE_REMOTE_USER_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ALE_REMOTE_MACHINE_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_FLAGS, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_ALE_AUTH_CONNECT_V6_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_SUB_INTERFACE_INDEX, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_ARRIVAL_INTERFACE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ARRIVAL_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ARRIVAL_TUNNEL_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ARRIVAL_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_NEXTHOP_SUB_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_NEXTHOP_INTERFACE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_NEXTHOP_INTERFACE_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_NEXTHOP_TUNNEL_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_NEXTHOP_INTERFACE_INDEX, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ORIGINAL_PROFILE_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_CURRENT_PROFILE_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_REAUTHORIZE_REASON, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_PEER_NAME, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ORIGINAL_ICMP_TYPE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_INTERFACE_QUARANTINE_EPOCH, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ALE_ORIGINAL_APP_ID, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_ALE_EFFECTIVE_NAME, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_AUTH_CONNECT_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + // + // These reserved fields MUST be in this order. DO NOT change their order + // + FWPS_FIELD_ALE_AUTH_CONNECT_V6_RESERVED_0, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_RESERVED_1, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_RESERVED_2, + FWPS_FIELD_ALE_AUTH_CONNECT_V6_RESERVED_3, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_CONNECT_V6_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_AUTH_CONNECT_V6_MAX +} FWPS_FIELDS_ALE_AUTH_CONNECT_V6; + +#define FWPS_FIELD_ALE_AUTH_CONNECT_V6_ICMP_TYPE \ + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_LOCAL_PORT + +#define FWPS_FIELD_ALE_AUTH_CONNECT_V6_ICMP_CODE \ + FWPS_FIELD_ALE_AUTH_CONNECT_V6_IP_REMOTE_PORT + +typedef enum FWPS_FIELDS_ALE_FLOW_ESTABLISHED_V4_ +{ + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_ALE_APP_ID, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_ALE_USER_ID, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_IP_LOCAL_PORT, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_IP_PROTOCOL, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_IP_REMOTE_PORT, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_ALE_REMOTE_USER_ID, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_ALE_REMOTE_MACHINE_ID, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_DIRECTION, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_INTERFACE_TYPE, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_ALE_ORIGINAL_APP_ID, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + // + // These reserved fields MUST be in this order. DO NOT change their order + // + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_RESERVED_0, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_RESERVED_1, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_RESERVED_2, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_RESERVED_3, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_MAX +} FWPS_FIELDS_ALE_FLOW_ESTABLISHED_V4; + +#define FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_ICMP_TYPE \ + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_IP_LOCAL_PORT + +#define FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_ICMP_CODE \ + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V4_IP_REMOTE_PORT + +typedef enum FWPS_FIELDS_ALE_FLOW_ESTABLISHED_V6_ +{ + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_ALE_APP_ID, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_ALE_USER_ID, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_IP_LOCAL_PORT, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_IP_PROTOCOL, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_IP_REMOTE_PORT, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_ALE_REMOTE_USER_ID, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_ALE_REMOTE_MACHINE_ID, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_DIRECTION, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_INTERFACE_TYPE, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_TUNNEL_TYPE, +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_ALE_ORIGINAL_APP_ID, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_ALE_PACKAGE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) + // + // These reserved fields MUST be in this order. DO NOT change their order + // + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_RESERVED_0, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_RESERVED_1, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_RESERVED_2, + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_RESERVED_3, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_PACKAGE_FAMILY_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_MAX +} FWPS_FIELDS_ALE_FLOW_ESTABLISHED_V6; + +#define FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_ICMP_TYPE \ + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_IP_LOCAL_PORT + +#define FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_ICMP_CODE \ + FWPS_FIELD_ALE_FLOW_ESTABLISHED_V6_IP_REMOTE_PORT + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +typedef enum FWPS_FIELDS_NAME_RESOLUTION_CACHE_V4_ +{ + FWPS_FIELD_NAME_RESOLUTION_CACHE_V4_ALE_USER_ID, + FWPS_FIELD_NAME_RESOLUTION_CACHE_V4_ALE_APP_ID, + FWPS_FIELD_NAME_RESOLUTION_CACHE_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_NAME_RESOLUTION_CACHE_V4_PEER_NAME, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_NAME_RESOLUTION_CACHE_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_NAME_RESOLUTION_CACHE_V4_MAX +} FWPS_FIELDS_NAME_RESOLUTION_CACHE_V4; + +typedef enum FWPS_FIELDS_NAME_RESOLUTION_CACHE_V6_ +{ + FWPS_FIELD_NAME_RESOLUTION_CACHE_V6_ALE_USER_ID, + FWPS_FIELD_NAME_RESOLUTION_CACHE_V6_ALE_APP_ID, + FWPS_FIELD_NAME_RESOLUTION_CACHE_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_NAME_RESOLUTION_CACHE_V6_PEER_NAME, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_NAME_RESOLUTION_CACHE_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_NAME_RESOLUTION_CACHE_V6_MAX +} FWPS_FIELDS_NAME_RESOLUTION_CACHE_V6; + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +typedef enum FWPS_FIELDS_INBOUND_MAC_FRAME_ETHERNET_ +{ + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_INTERFACE_MAC_ADDRESS, + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_MAC_LOCAL_ADDRESS, + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_MAC_REMOTE_ADDRESS, + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_MAC_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_MAC_REMOTE_ADDRESS_TYPE, + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_ETHER_TYPE, + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_VLAN_ID, + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_INTERFACE, + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_NDIS_PORT, + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_L2_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_MAC_FRAME_ETHERNET_MAX +} FWPS_FIELDS_INBOUND_MAC_FRAME_ETHERNET; + + +typedef enum FWPS_FIELDS_OUTBOUND_MAC_FRAME_ETHERNET_ +{ + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_INTERFACE_MAC_ADDRESS, + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_MAC_LOCAL_ADDRESS, + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_MAC_REMOTE_ADDRESS, + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_MAC_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_MAC_REMOTE_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_ETHER_TYPE, + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_VLAN_ID, + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_INTERFACE, + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_NDIS_PORT, + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_L2_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_MAC_FRAME_ETHERNET_MAX +} FWPS_FIELDS_OUTBOUND_MAC_FRAME_ETHERNET; + + +typedef enum FWPS_FIELDS_INBOUND_MAC_FRAME_NATIVE_ +{ + FWPS_FIELD_INBOUND_MAC_FRAME_NATIVE_NDIS_MEDIA_TYPE, + FWPS_FIELD_INBOUND_MAC_FRAME_NATIVE_NDIS_PHYSICAL_MEDIA_TYPE, + FWPS_FIELD_INBOUND_MAC_FRAME_NATIVE_INTERFACE, + FWPS_FIELD_INBOUND_MAC_FRAME_NATIVE_INTERFACE_TYPE, + FWPS_FIELD_INBOUND_MAC_FRAME_NATIVE_INTERFACE_INDEX, + FWPS_FIELD_INBOUND_MAC_FRAME_NATIVE_NDIS_PORT, + FWPS_FIELD_INBOUND_MAC_FRAME_NATIVE_L2_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_MAC_FRAME_NATIVE_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INBOUND_MAC_FRAME_NATIVE_MAX +} FWPS_FIELDS_INBOUND_MAC_FRAME_NATIVE; + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) +typedef enum FWPS_FIELDS_INBOUND_MAC_FRAME_NATIVE_FAST_ +{ + FWPS_FIELD_INBOUND_MAC_FRAME_NATIVE_FAST_MAX +} FWPS_FIELDS_INBOUND_MAC_FRAME_NATIVE_FAST; +#endif // (NTDDI_VERSION >= NTDDI_WINBLUE) + +typedef enum FWPS_FIELDS_OUTBOUND_MAC_FRAME_NATIVE_ +{ + FWPS_FIELD_OUTBOUND_MAC_FRAME_NATIVE_NDIS_MEDIA_TYPE, + FWPS_FIELD_OUTBOUND_MAC_FRAME_NATIVE_NDIS_PHYSICAL_MEDIA_TYPE, + FWPS_FIELD_OUTBOUND_MAC_FRAME_NATIVE_INTERFACE, + FWPS_FIELD_OUTBOUND_MAC_FRAME_NATIVE_INTERFACE_TYPE, + FWPS_FIELD_OUTBOUND_MAC_FRAME_NATIVE_INTERFACE_INDEX, + FWPS_FIELD_OUTBOUND_MAC_FRAME_NATIVE_NDIS_PORT, + FWPS_FIELD_OUTBOUND_MAC_FRAME_NATIVE_L2_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_MAC_FRAME_NATIVE_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_OUTBOUND_MAC_FRAME_NATIVE_MAX +} FWPS_FIELDS_OUTBOUND_MAC_FRAME_NATIVE; + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) +typedef enum FWPS_FIELDS_OUTBOUND_MAC_FRAME_NATIVE_FAST +{ + FWPS_FIELD_OUTBOUND_MAC_FRAME_NATIVE_FAST_MAX +} FWPS_FIELDS_OUTBOUND_MAC_FRAME_NATIVE_FAST; +#endif // (NTDDI_VERSION >= NTDDI_WINBLUE) + +typedef enum FWPS_FIELDS_INGRESS_VSWITCH_ETHERNET_ +{ + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_MAC_SOURCE_ADDRESS, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_MAC_SOURCE_ADDRESS_TYPE, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_MAC_DESTINATION_ADDRESS, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_MAC_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_ETHER_TYPE, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_VLAN_ID, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_VSWITCH_TENANT_NETWORK_ID, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_VSWITCH_ID, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_VSWITCH_NETWORK_TYPE, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_VSWITCH_SOURCE_INTERFACE_ID, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_VSWITCH_SOURCE_INTERFACE_TYPE, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_VSWITCH_SOURCE_VM_ID, + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_L2_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INGRESS_VSWITCH_ETHERNET_MAX +} FWPS_FIELDS_INGRESS_VSWITCH_ETHERNET; + +typedef enum FWPS_FIELDS_EGRESS_VSWITCH_ETHERNET_ +{ + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_MAC_SOURCE_ADDRESS, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_MAC_SOURCE_ADDRESS_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_MAC_DESTINATION_ADDRESS, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_MAC_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_ETHER_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_VLAN_ID, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_VSWITCH_TENANT_NETWORK_ID, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_VSWITCH_ID, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_VSWITCH_NETWORK_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_VSWITCH_SOURCE_INTERFACE_ID, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_VSWITCH_SOURCE_INTERFACE_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_VSWITCH_SOURCE_VM_ID, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_VSWITCH_DESTINATION_INTERFACE_ID, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_VSWITCH_DESTINATION_INTERFACE_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_VSWITCH_DESTINATION_VM_ID, + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_L2_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_EGRESS_VSWITCH_ETHERNET_MAX +} FWPS_FIELDS_EGRESS_VSWITCH_ETHERNET; + +typedef enum FWPS_FIELDS_INGRESS_VSWITCH_TRANSPORT_V4_ +{ + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_IP_SOURCE_ADDRESS, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_IP_DESTINATION_ADDRESS, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_IP_PROTOCOL, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_IP_SOURCE_PORT, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_IP_DESTINATION_PORT, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_VLAN_ID, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_TENANT_NETWORK_ID, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_ID, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_NETWORK_TYPE, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_SOURCE_INTERFACE_ID, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_SOURCE_INTERFACE_TYPE, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_SOURCE_VM_ID, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_L2_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_MAX +} FWPS_FIELDS_INGRESS_VSWITCH_TRANSPORT_V4; + +#define FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_ICMP_TYPE \ + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_IP_SOURCE_PORT + +#define FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_ICMP_CODE \ + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V4_IP_DESTINATION_PORT + +typedef enum FWPS_FIELDS_INGRESS_VSWITCH_TRANSPORT_V6_ +{ + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_IP_SOURCE_ADDRESS, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_IP_DESTINATION_ADDRESS, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_IP_PROTOCOL, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_IP_SOURCE_PORT, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_IP_DESTINATION_PORT, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_VLAN_ID, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_TENANT_NETWORK_ID, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_ID, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_NETWORK_TYPE, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_SOURCE_INTERFACE_ID, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_SOURCE_INTERFACE_TYPE, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_SOURCE_VM_ID, + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_L2_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_MAX +} FWPS_FIELDS_INGRESS_VSWITCH_TRANSPORT_V6; + +#define FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_ICMP_TYPE \ + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_IP_SOURCE_PORT + +#define FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_ICMP_CODE \ + FWPS_FIELD_INGRESS_VSWITCH_TRANSPORT_V6_IP_DESTINATION_PORT + +typedef enum FWPS_FIELDS_EGRESS_VSWITCH_TRANSPORT_V4_ +{ + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_IP_SOURCE_ADDRESS, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_IP_DESTINATION_ADDRESS, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_IP_PROTOCOL, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_IP_SOURCE_PORT, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_IP_DESTINATION_PORT, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_VLAN_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_TENANT_NETWORK_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_NETWORK_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_SOURCE_INTERFACE_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_SOURCE_INTERFACE_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_SOURCE_VM_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_DESTINATION_INTERFACE_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_DESTINATION_INTERFACE_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_VSWITCH_DESTINATION_VM_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_L2_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_MAX +} FWPS_FIELDS_EGRESS_VSWITCH_TRANSPORT_V4; + +#define FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_ICMP_TYPE \ + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_IP_SOURCE_PORT + +#define FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_ICMP_CODE \ + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V4_IP_DESTINATION_PORT + +typedef enum FWPS_FIELDS_EGRESS_VSWITCH_TRANSPORT_V6_ +{ + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_IP_SOURCE_ADDRESS, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_IP_DESTINATION_ADDRESS, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_IP_PROTOCOL, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_IP_SOURCE_PORT, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_IP_DESTINATION_PORT, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_VLAN_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_TENANT_NETWORK_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_NETWORK_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_SOURCE_INTERFACE_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_SOURCE_INTERFACE_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_SOURCE_VM_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_DESTINATION_INTERFACE_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_DESTINATION_INTERFACE_TYPE, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_VSWITCH_DESTINATION_VM_ID, + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_L2_FLAGS, +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_COMPARTMENT_ID, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_MAX +} FWPS_FIELDS_EGRESS_VSWITCH_TRANSPORT_V6; + +#define FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_ICMP_TYPE \ + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_IP_SOURCE_PORT + +#define FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_ICMP_CODE \ + FWPS_FIELD_EGRESS_VSWITCH_TRANSPORT_V6_IP_DESTINATION_PORT + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +typedef enum FWPS_FIELDS_IPSEC_KM_DEMUX_V4_ +{ + FWPS_FIELD_IPSEC_KM_DEMUX_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_IPSEC_KM_DEMUX_V4_IP_REMOTE_ADDRESS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_IPSEC_KM_DEMUX_V4_QM_MODE, + FWPS_FIELD_IPSEC_KM_DEMUX_V4_IP_LOCAL_INTERFACE, + FWPS_FIELD_IPSEC_KM_DEMUX_V4_CURRENT_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_KM_DEMUX_V4_IPSEC_SECURITY_REALM_ID, +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_IPSEC_KM_DEMUX_V4_MAX +} FWPS_FIELDS_IPSEC_KM_DEMUX_V4; + +typedef enum FWPS_FIELDS_IPSEC_KM_DEMUX_V6_ +{ + FWPS_FIELD_IPSEC_KM_DEMUX_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_IPSEC_KM_DEMUX_V6_IP_REMOTE_ADDRESS, +#if (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_IPSEC_KM_DEMUX_V6_QM_MODE, + FWPS_FIELD_IPSEC_KM_DEMUX_V6_IP_LOCAL_INTERFACE, + FWPS_FIELD_IPSEC_KM_DEMUX_V6_CURRENT_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_KM_DEMUX_V6_IPSEC_SECURITY_REALM_ID, +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + FWPS_FIELD_IPSEC_KM_DEMUX_V6_MAX +} FWPS_FIELDS_IPSEC_KM_DEMUX_V6; + +typedef enum FWPS_FIELDS_IPSEC_V4_ +{ + FWPS_FIELD_IPSEC_V4_IP_PROTOCOL, + FWPS_FIELD_IPSEC_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_IPSEC_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_IPSEC_V4_IP_LOCAL_PORT, + FWPS_FIELD_IPSEC_V4_IP_REMOTE_PORT, + FWPS_FIELD_IPSEC_V4_IP_LOCAL_INTERFACE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IPSEC_V4_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_IPSEC_V4_IPSEC_SECURITY_REALM_ID, +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IPSEC_V4_MAX +} FWPS_FIELDS_IPSEC_V4; + +typedef enum FWPS_FIELDS_IPSEC_V6_ +{ + FWPS_FIELD_IPSEC_V6_IP_PROTOCOL, + FWPS_FIELD_IPSEC_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_IPSEC_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_IPSEC_V6_IP_LOCAL_PORT, + FWPS_FIELD_IPSEC_V6_IP_REMOTE_PORT, + FWPS_FIELD_IPSEC_V6_IP_LOCAL_INTERFACE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IPSEC_V6_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_IPSEC_V6_IPSEC_SECURITY_REALM_ID, +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IPSEC_V6_MAX +} FWPS_FIELDS_IPSEC_V6; + +typedef enum FWPS_FIELDS_IKEEXT_V4_ +{ + FWPS_FIELD_IKEEXT_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_IKEEXT_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_IKEEXT_V4_IP_LOCAL_INTERFACE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IKEEXT_V4_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_IKEEXT_V4_IPSEC_SECURITY_REALM_ID, +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IKEEXT_V4_MAX +} FWPS_FIELDS_IKEEXT_V4; + +typedef enum FWPS_FIELDS_IKEEXT_V6_ +{ + FWPS_FIELD_IKEEXT_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_IKEEXT_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_IKEEXT_V6_IP_LOCAL_INTERFACE, +#if (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IKEEXT_V6_PROFILE_ID, +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + FWPS_FIELD_IKEEXT_V6_IPSEC_SECURITY_REALM_ID, +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + FWPS_FIELD_IKEEXT_V6_MAX +} FWPS_FIELDS_IKEEXT_V6; + +typedef enum FWPS_FIELDS_RPC_UM_ +{ + FWPS_FIELD_RPC_UM_REMOTE_USER_TOKEN, + FWPS_FIELD_RPC_UM_IF_UUID, + FWPS_FIELD_RPC_UM_IF_VERSION, + FWPS_FIELD_RPC_UM_IF_FLAG, + FWPS_FIELD_RPC_UM_DCOM_APP_ID, + FWPS_FIELD_RPC_UM_IMAGE_NAME, + FWPS_FIELD_RPC_UM_PROTOCOL, + FWPS_FIELD_RPC_UM_AUTH_TYPE, + FWPS_FIELD_RPC_UM_AUTH_LEVEL, + FWPS_FIELD_RPC_UM_SEC_ENCRYPT_ALGORITHM, + FWPS_FIELD_RPC_UM_SEC_KEY_SIZE, + FWPS_FIELD_RPC_UM_LOCAL_ADDR_V4, + FWPS_FIELD_RPC_UM_LOCAL_ADDR_V6, + FWPS_FIELD_RPC_UM_LOCAL_PORT, + FWPS_FIELD_RPC_UM_PIPE, + FWPS_FIELD_RPC_UM_REMOTE_ADDR_V4, + FWPS_FIELD_RPC_UM_REMOTE_ADDR_V6, +#if (NTDDI_VERSION >= NTDDI_WIN11_GA) + FWPS_FIELD_RPC_UM_RPC_OPNUM, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_GA) + FWPS_FIELD_RPC_UM_MAX +} FWPS_FIELDS_RPC_UM; + +typedef enum FWPS_FIELDS_RPC_EPMAP_ +{ + FWPS_FIELD_RPC_EPMAP_REMOTE_USER_TOKEN, + FWPS_FIELD_RPC_EPMAP_IF_UUID, + FWPS_FIELD_RPC_EPMAP_IF_VERSION, + FWPS_FIELD_RPC_EPMAP_PROTOCOL, + FWPS_FIELD_RPC_EPMAP_AUTH_TYPE, + FWPS_FIELD_RPC_EPMAP_AUTH_LEVEL, + FWPS_FIELD_RPC_EPMAP_SEC_ENCRYPT_ALGORITHM, + FWPS_FIELD_RPC_EPMAP_SEC_KEY_SIZE, + FWPS_FIELD_RPC_EPMAP_LOCAL_ADDR_V4, + FWPS_FIELD_RPC_EPMAP_LOCAL_ADDR_V6, + FWPS_FIELD_RPC_EPMAP_LOCAL_PORT, + FWPS_FIELD_RPC_EPMAP_PIPE, + FWPS_FIELD_RPC_EPMAP_REMOTE_ADDR_V4, + FWPS_FIELD_RPC_EPMAP_REMOTE_ADDR_V6, + FWPS_FIELD_RPC_EPMAP_MAX +} FWPS_FIELDS_RPC_EPMAP; + +typedef enum FWPS_FIELDS_RPC_EP_ADD_ +{ + FWPS_FIELD_RPC_EP_ADD_PROCESS_WITH_RPC_IF_UUID, + FWPS_FIELD_RPC_EP_ADD_PROTOCOL, + FWPS_FIELD_RPC_EP_ADD_EP_VALUE, + FWPS_FIELD_RPC_EP_ADD_EP_FLAGS, + FWPS_FIELD_RPC_EP_ADD_MAX +} FWPS_FIELDS_RPC_EP_ADD; + +typedef enum FWPS_FIELDS_RPC_PROXY_CONN_ +{ + FWPS_FIELD_RPC_PROXY_CONN_CLIENT_TOKEN, + FWPS_FIELD_RPC_PROXY_CONN_SERVER_NAME, + FWPS_FIELD_RPC_PROXY_CONN_SERVER_PORT, + FWPS_FIELD_RPC_PROXY_CONN_PROXY_AUTH_TYPE, + FWPS_FIELD_RPC_PROXY_CONN_CLIENT_CERT_KEY_LENGTH, + FWPS_FIELD_RPC_PROXY_CONN_CLIENT_CERT_OID, + FWPS_FIELD_RPC_PROXY_CONN_MAX +} FWPS_FIELDS_RPC_PROXY_CONN; + +typedef enum FWPS_FIELDS_RPC_PROXY_IF_ +{ + FWPS_FIELD_RPC_PROXY_IF_CLIENT_TOKEN, + FWPS_FIELD_RPC_PROXY_IF_IF_UUID, + FWPS_FIELD_RPC_PROXY_IF_IF_VERSION, + FWPS_FIELD_RPC_PROXY_IF_SERVER_NAME, + FWPS_FIELD_RPC_PROXY_IF_SERVER_PORT, + FWPS_FIELD_RPC_PROXY_IF_PROXY_AUTH_TYPE, + FWPS_FIELD_RPC_PROXY_IF_CLIENT_CERT_KEY_LENGTH, + FWPS_FIELD_RPC_PROXY_IF_CLIENT_CERT_OID, + FWPS_FIELD_RPC_PROXY_IF_MAX +} FWPS_FIELDS_RPC_PROXY_IF_IF; + + +#if (NTDDI_VERSION >= NTDDI_WIN7) +typedef enum FWPS_FIELDS_KM_AUTHORIZATION_ +{ + FWPS_FIELD_KM_AUTHORIZATION_REMOTE_ID, + FWPS_FIELD_KM_AUTHORIZATION_AUTHENTICATION_TYPE, + FWPS_FIELD_KM_AUTHORIZATION_KM_TYPE, + FWPS_FIELD_KM_AUTHORIZATION_DIRECTION, + FWPS_FIELD_KM_AUTHORIZATION_KM_MODE, + FWPS_FIELD_KM_AUTHORIZATION_IPSEC_POLICY_KEY, + FWPS_FIELD_KM_AUTHORIZATION_NAP_CONTEXT, + FWPS_FIELD_KM_AUTHORIZATION_MAX, +} FWPS_FIELDS_KM_AUTHORIZATION; + +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +typedef enum FWPS_FIELDS_INBOUND_RESERVED2_ +{ + FWPS_FIELD_INBOUND_RESERVED2_RESERVED0, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED1, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED2, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED3, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED4, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED5, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED6, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED7, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED8, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED9, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED10, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED11, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED12, + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) + + FWPS_FIELD_INBOUND_RESERVED2_RESERVED13, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED14, + FWPS_FIELD_INBOUND_RESERVED2_RESERVED15, + +#endif + + FWPS_FIELD_INBOUND_RESERVED2_MAX, +} FWPS_FIELDS_INBOUND_RESERVED2; + +#endif //(NTDDI_VERSION >= NTDDI_WIN10_RS3) + +#if (NTDDI_VERSION >= NTDDI_WIN10_NI) + +typedef enum FWPS_FIELDS_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_ +{ + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_ALE_APP_ID, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_ALE_USER_ID, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_IP_LOCAL_ADDRESS, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_IP_LOCAL_PORT, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_IP_PROTOCOL, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_IP_REMOTE_ADDRESS, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_IP_REMOTE_PORT, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_FLAGS, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_ALE_ORIGINAL_APP_ID, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_ALE_PACKAGE_ID, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_COMPARTMENT_ID, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_MAX +} FWPS_FIELDS_OUTBOUND_NETWORK_POLICY_V4; + +#define FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_ICMP_TYPE \ + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_IP_LOCAL_PORT + +#define FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_ICMP_CODE \ + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V4_IP_REMOTE_PORT + +typedef enum FWPS_FIELDS_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_ +{ + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_ALE_APP_ID, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_ALE_USER_ID, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_IP_LOCAL_ADDRESS, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_IP_LOCAL_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_IP_LOCAL_PORT, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_IP_PROTOCOL, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_IP_REMOTE_ADDRESS, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_IP_DESTINATION_ADDRESS_TYPE, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_IP_REMOTE_PORT, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_FLAGS, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_ALE_ORIGINAL_APP_ID, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_ALE_PACKAGE_ID, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_ALE_SECURITY_ATTRIBUTE_FQBN_VALUE, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_COMPARTMENT_ID, + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_MAX +} FWPS_FIELDS_OUTBOUND_NETWORK_POLICY_V6; + +#define FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_ICMP_TYPE \ + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_IP_LOCAL_PORT + +#define FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_ICMP_CODE \ + FWPS_FIELD_OUTBOUND_NETWORK_CONNECTION_POLICY_V6_IP_REMOTE_PORT + +#endif //(NTDDI_VERSION >= NTDDI_WIN10_NI) + +/////////////////////////////////////////////////////////////////////////////// +// +// Network and transport discard reasons. +// +/////////////////////////////////////////////////////////////////////////////// + +// +// INET_DISCARD_REASON +// +// Define the reasons given by INET modules for discarding incoming datagrams. +// + +#ifndef _INET_DISCARD_REASON_DEFINE_ +#define _INET_DISCARD_REASON_DEFINE_ + +typedef enum { + InetDiscardSourceUnspecified = 0, + InetDiscardDestinationMulticast = 1, + InetDiscardHeaderInvalid = 2, + InetDiscardChecksumInvalid = 3, + InetDiscardEndpointNotFound = 4, + InetDiscardConnectedPath = 5, + InetDiscardSessionState = 6, + InetDiscardReceiveInspection = 7, + InetDiscardAckInvalid = 8, + InetDiscardExpectedSyn = 9, + InetDiscardRst = 10, + InetDiscardSynRcvdSyn = 11, + InetDiscardSimultaneousConnect = 12, + InetDiscardPawsFailed = 13, + InetDiscardLandAttack = 14, + InetDiscardMissedReset = 15, + InetDiscardOutsideWindow = 16, + InetDiscardDuplicateSegment = 17, + InetDiscardClosedWindow = 18, + InetDiscardTcbRemoved = 19, + InetDiscardFinWait2 = 20, + InetDiscardReassemblyConflict = 21, + InetDiscardFinReceived = 22, + InetDiscardListenerInvalidFlags = 23, + InetDiscardUrgentDeliveryAllocationFailure = 24, + InetDiscardTcbNotInTcbTable = 25, + InetDiscardTimeWaitTcbReceivedRstOutsideWindow = 26, + InetDiscardTimeWaitTcbSynAndOtherFlags = 27, + InetDiscardTimeWaitTcb = 28, + InetDiscardSynAckWithFastopenCookieRequest = 29, + InetDiscardPauseAccept = 30, + InetDiscardSynAttack = 31, + InetDiscardAcceptInspection = 32, + InetDiscardAcceptRedirection = 33, + InetDiscardReasonMaxEnumValue +} INET_DISCARD_REASON, *PINET_DISCARD_REASON; + +#endif + + +#ifndef _IP_DISCARD_REASON_DEFINE_ +#define _IP_DISCARD_REASON_DEFINE_ + +typedef enum { + // + // Receive path discard reasons. + // + IpDiscardBadSourceAddress = 1, + IpDiscardNotLocallyDestined, + IpDiscardProtocolUnreachable, + IpDiscardPortUnreachable, + IpDiscardBadLength, + IpDiscardMalformedHeader, + IpDiscardNoRoute, + IpDiscardBeyondScope, + IpDiscardInspectionDrop, // Blocked by firewall, ICMP should not be sent. + IpDiscardTooManyDecapsulations, + IpDiscardAdministrativelyProhibited, // Blocked, ICMP should be sent. + IpDiscardBadChecksum, + IpDiscardFirstFragmentIncomplete, + IpDiscardHeaderNotContiguous, + IpDiscardHeaderNotAligned, + + IpDiscardReceivePathMax = 127, + + // + // Forward path discard reasons. + // + IpDiscardHopLimitExceeded, + IpDiscardAddressUnreachable, + IpDiscardRscPacket, + IpDiscardSourceViolation, + IpDiscardForwardPathMax = 255, + + // + // Internally used discard reasons. + // + IpDiscardArbitrationUnhandled, + IpDiscardInspectionAbsorb, // WFP took ownership of the packet. + + // + // Send path discard reasons not covered above. + // + IpDiscardDontFragmentMtuExceeded, + IpDiscardBufferLengthExceeded, + IpDiscardAddressResolutionTimeout, + IpDiscardAddressResolutionFailure, + IpDiscardIpsecFailure, + IpDiscardExtensionHeadersFailure, + IpDiscardAllocationFailure, + + // + // Discard reasons common to all paths. + // + IpDiscardIpsnpiClientDrop, + + IpDiscardUnsupportedOffload, + IpDiscardRoutingFailure, + IpDiscardAncillaryDataFailure, + IpDiscardRawDataFailure, + IpDiscardSessionStateFailure, + + IpDiscardIpsnpiAllocationFailure, + IpDiscardIpsnpiModifiedButNotForwarded, + IpDiscardIpsnpiNoNextHop, + IpDiscardIpsnpiNoCompartment, + IpDiscardIpsnpiNoInterface, + IpDiscardIpsnpiNoSubInterface, + IpDiscardIpsnpiInterfaceDisabled, + IpDiscardIpsnpiSegmentationFailed, + IpDiscardIpsnpiNoEthernetHeader, + IpDiscardIpsnpiUnexpectedFragment, + IpDiscardIpsnpiUnsupportedInterfaceType, + IpDiscardIpsnpiInvalidLsoInfo, + IpDiscardIpsnpiInvalidUsoInfo, + + IpDiscardInternalError, + IpDiscardAdministrativelyConfigured, + IpDiscardBadOption, + IpDiscardLoopbackDisallowed, + IpDiscardSmallerScope, + IpDiscardQueueFull, + IpDiscardInterfaceDisabled, + IpDiscardNlClientDiscard, + + IpDiscardIpsnpiUroSegmentSizeExceedsMtu, + IpDiscardSwUsoFailure, + + IpDiscardMax +} IP_DISCARD_REASON, *PIP_DISCARD_REASON; + +#endif + + + + +/////////////////////////////////////////////////////////////////////////////// +// +// API for implementing a callout. +// +/////////////////////////////////////////////////////////////////////////////// + +////////// +// Flags that can specified which entries are present +// in the FWPS_INCOMING_METADATA_VALUES0 structure. +////////// + +#define FWPS_METADATA_FIELD_DISCARD_REASON 0x00000001 +#define FWPS_METADATA_FIELD_FLOW_HANDLE 0x00000002 +#define FWPS_METADATA_FIELD_IP_HEADER_SIZE 0x00000004 +#define FWPS_METADATA_FIELD_PROCESS_PATH 0x00000008 +#define FWPS_METADATA_FIELD_TOKEN 0x00000010 +#define FWPS_METADATA_FIELD_PROCESS_ID 0x00000020 +#define FWPS_METADATA_FIELD_SYSTEM_FLAGS 0x00000040 +#define FWPS_METADATA_FIELD_RESERVED 0x00000080 +#define FWPS_METADATA_FIELD_SOURCE_INTERFACE_INDEX 0x00000100 +#define FWPS_METADATA_FIELD_DESTINATION_INTERFACE_INDEX 0x00000200 +#define FWPS_METADATA_FIELD_TRANSPORT_HEADER_SIZE 0x00000400 +#define FWPS_METADATA_FIELD_COMPARTMENT_ID 0x00000800 +#define FWPS_METADATA_FIELD_FRAGMENT_DATA 0x00001000 +#define FWPS_METADATA_FIELD_PATH_MTU 0x00002000 +#define FWPS_METADATA_FIELD_COMPLETION_HANDLE 0x00004000 +#define FWPS_METADATA_FIELD_TRANSPORT_ENDPOINT_HANDLE 0x00008000 +#define FWPS_METADATA_FIELD_TRANSPORT_CONTROL_DATA 0x00010000 +#define FWPS_METADATA_FIELD_REMOTE_SCOPE_ID 0x00020000 +#define FWPS_METADATA_FIELD_PACKET_DIRECTION 0x00040000 +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) +#define FWPS_METADATA_FIELD_PACKET_SYSTEM_CRITICAL 0x00080000 +#define FWPS_METADATA_FIELD_FORWARD_LAYER_OUTBOUND_PASS_THRU 0x00100000 +#define FWPS_METADATA_FIELD_FORWARD_LAYER_INBOUND_PASS_THRU 0x00200000 +#define FWPS_METADATA_FIELD_ALE_CLASSIFY_REQUIRED 0x00400000 +#define FWPS_METADATA_FIELD_TRANSPORT_HEADER_INCLUDE_HEADER 0x00800000 +#if (NTDDI_VERSION >= NTDDI_WIN7) +#define FWPS_METADATA_FIELD_DESTINATION_PREFIX 0x01000000 +#define FWPS_METADATA_FIELD_ETHER_FRAME_LENGTH 0x02000000 +#define FWPS_METADATA_FIELD_PARENT_ENDPOINT_HANDLE 0x04000000 +#define FWPS_METADATA_FIELD_ICMP_ID_AND_SEQUENCE 0x08000000 +#define FWPS_METADATA_FIELD_LOCAL_REDIRECT_TARGET_PID 0x10000000 +#define FWPS_METADATA_FIELD_ORIGINAL_DESTINATION 0x20000000 +#if (NTDDI_VERSION >= NTDDI_WIN8) +#define FWPS_METADATA_FIELD_REDIRECT_RECORD_HANDLE 0x40000000 +#define FWPS_METADATA_FIELD_SUB_PROCESS_TAG 0x80000000 + +#define FWPS_L2_METADATA_FIELD_ETHERNET_MAC_HEADER_SIZE 0x00000001 +#define FWPS_L2_METADATA_FIELD_WIFI_OPERATION_MODE 0x00000002 +#define FWPS_L2_METADATA_FIELD_VSWITCH_SOURCE_PORT_ID 0x00000004 +#define FWPS_L2_METADATA_FIELD_VSWITCH_SOURCE_NIC_INDEX 0x00000008 +#define FWPS_L2_METADATA_FIELD_VSWITCH_PACKET_CONTEXT 0x00000010 +#define FWPS_L2_METADATA_FIELD_VSWITCH_DESTINATION_PORT_ID 0x00000020 +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) +#define FWPS_L2_METADATA_FIELD_RESERVED 0x80000000 +#endif // (NTDDI_VERSION >= NTDDI_WINBLUE) + + +// Provides additional meta-information to the filter engine. This information +// is not processed by the filter engine, but is supplied to the callouts. +// Unlike the FWPS_INCOMING_VALUES0, the schema of the meta-information is not +// fixed. Callouts should not assume that a given FWPS_METADATA_FIELD is +// present or that it is located at a given index in the array. + +typedef struct FWPS_INCOMING_METADATA_VALUES0_ +{ + // Bitmask representing which values are set. + UINT32 currentMetadataValues; + // Internal flags; + UINT32 flags; + // Reserved for system use. + UINT64 reserved; + // Discard module and reason. + FWPS_DISCARD_METADATA0 discardMetadata; + // Flow Handle. + UINT64 flowHandle; + // IP Header size. + UINT32 ipHeaderSize; + // Transport Header size + UINT32 transportHeaderSize; + // Process Path. + FWP_BYTE_BLOB* processPath; + // Token used for authorization. + UINT64 token; + // Process Id. + UINT64 processId; + // Source and Destination interface indices for discard indications. + UINT32 sourceInterfaceIndex; + UINT32 destinationInterfaceIndex; + // Compartment Id for injection APIs. + ULONG compartmentId; + // Fragment data for inbound fragments. + FWPS_INBOUND_FRAGMENT_METADATA0 fragmentMetadata; + // Path MTU for outbound packets (to enable calculation of fragments). + ULONG pathMtu; + // Completion handle (required in order to be able to pend at this layer). + HANDLE completionHandle; + // Endpoint handle for use in outbound transport layer injection. + UINT64 transportEndpointHandle; + // Remote scope id for use in outbound transport layer injection. + SCOPE_ID remoteScopeId; + // Socket control data (and length) for use in outbound transport layer injection. + WSACMSGHDR* controlData; + ULONG controlDataLength; + // Direction for the current packet. Only specified for ALE re-authorization. + FWP_DIRECTION packetDirection; +#if (NTDDI_VERSION >= NTDDI_WIN6SP1) + // Raw IP header (and length) if the packet is sent with IP header from a RAW socket. + PVOID headerIncludeHeader; + ULONG headerIncludeHeaderLength; +#if (NTDDI_VERSION >= NTDDI_WIN7) + IP_ADDRESS_PREFIX destinationPrefix; + UINT16 frameLength; + UINT64 parentEndpointHandle; + UINT32 icmpIdAndSequence; + // PID of the process that will be accepting the redirected connection + DWORD localRedirectTargetPID; + // original destination of a redirected connection + SOCKADDR* originalDestination; +#if (NTDDI_VERSION >= NTDDI_WIN8) + HANDLE redirectRecords; + // Bitmask representing which L2 values are set. + UINT32 currentL2MetadataValues; + // L2 layer Flags; + UINT32 l2Flags; + UINT32 ethernetMacHeaderSize; + UINT32 wiFiOperationMode; + HANDLE vSwitchPacketContext; +#endif // (NTDDI_VERSION >= NTDDI_WIN8) +#endif // (NTDDI_VERSION >= NTDDI_WIN7) +#endif // (NTDDI_VERSION >= NTDDI_WIN6SP1) +#if (NTDDI_VERSION >= NTDDI_WIN8) + PVOID subProcessTag; + // Reserved for system use. + UINT64 reserved1; +#endif +} FWPS_INCOMING_METADATA_VALUES0; + +/////////////////////////////////////////////////////////////////////////////// +// +// Macro for checking for metadata fields +// +/////////////////////////////////////////////////////////////////////////////// + +#define FWPS_IS_METADATA_FIELD_PRESENT(metadataValues, metadataField) \ + (((metadataValues)->currentMetadataValues & (metadataField)) == (metadataField)) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +#define FWPS_IS_L2_METADATA_FIELD_PRESENT(metadataValues, l2MetadataField) \ + (((metadataValues)->currentL2MetadataValues & (l2MetadataField)) == (l2MetadataField)) +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +// Invoked during classification when a callout filter matches. +typedef void (NTAPI *FWPS_CALLOUT_CLASSIFY_FN0)( + _In_ const FWPS_INCOMING_VALUES0* inFixedValues, + _In_ const FWPS_INCOMING_METADATA_VALUES0* inMetaValues, + _Inout_opt_ void* layerData, + _In_ const FWPS_FILTER0* filter, + _In_ UINT64 flowContext, + _Inout_ FWPS_CLASSIFY_OUT0* classifyOut + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +// Version-1 of function invoked during classification when a callout filter +// matches. +typedef void (NTAPI *FWPS_CALLOUT_CLASSIFY_FN1)( + _In_ const FWPS_INCOMING_VALUES0* inFixedValues, + _In_ const FWPS_INCOMING_METADATA_VALUES0* inMetaValues, + _Inout_opt_ void* layerData, + _In_opt_ const void* classifyContext, + _In_ const FWPS_FILTER1* filter, + _In_ UINT64 flowContext, + _Inout_ FWPS_CLASSIFY_OUT0* classifyOut + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +// Version-2 of function invoked during classification when a callout filter +// matches. +typedef void (NTAPI *FWPS_CALLOUT_CLASSIFY_FN2)( + _In_ const FWPS_INCOMING_VALUES0* inFixedValues, + _In_ const FWPS_INCOMING_METADATA_VALUES0* inMetaValues, + _Inout_opt_ void* layerData, + _In_opt_ const void* classifyContext, + _In_ const FWPS_FILTER2* filter, + _In_ UINT64 flowContext, + _Inout_ FWPS_CLASSIFY_OUT0* classifyOut + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) +// Version-3 of function invoked during classification when a callout filter +// matches. +typedef void (NTAPI *FWPS_CALLOUT_CLASSIFY_FN3)( + _In_ const FWPS_INCOMING_VALUES0* inFixedValues, + _In_ const FWPS_INCOMING_METADATA_VALUES0* inMetaValues, + _Inout_opt_ void* layerData, + _In_opt_ const void* classifyContext, + _In_ const FWPS_FILTER3* filter, + _In_ UINT64 flowContext, + _Inout_ FWPS_CLASSIFY_OUT0* classifyOut + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + + + +// Notifies the callout that a filter invoking it has been added/deleted. +typedef NTSTATUS (NTAPI *FWPS_CALLOUT_NOTIFY_FN0)( + _In_ FWPS_CALLOUT_NOTIFY_TYPE notifyType, + _In_ const GUID* filterKey, + _Inout_ FWPS_FILTER0* filter + ); + +#if (NTDDI_VERSION >= NTDDI_WIN7) +// Version-1 of function that notifies the callout that a filter invoking it has +// been added/deleted. +typedef NTSTATUS (NTAPI *FWPS_CALLOUT_NOTIFY_FN1)( + _In_ FWPS_CALLOUT_NOTIFY_TYPE notifyType, + _In_ const GUID* filterKey, + _Inout_ FWPS_FILTER1* filter + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#if (NTDDI_VERSION >= NTDDI_WIN8) +// Version-2 of function that notifies the callout that a filter invoking it has +// been added/deleted. +typedef NTSTATUS (NTAPI *FWPS_CALLOUT_NOTIFY_FN2)( + _In_ FWPS_CALLOUT_NOTIFY_TYPE notifyType, + _In_ const GUID* filterKey, + _Inout_ FWPS_FILTER2* filter + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) +// Version-3 of function invoked during classification when a callout filter +// matches. +typedef NTSTATUS (NTAPI *FWPS_CALLOUT_NOTIFY_FN3)( + _In_ FWPS_CALLOUT_NOTIFY_TYPE notifyType, + _In_ const GUID* filterKey, + _Inout_ FWPS_FILTER3* filter + ); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS3) + + +// Notifies the callout that a flow has been deleted. +typedef void (NTAPI *FWPS_CALLOUT_FLOW_DELETE_NOTIFY_FN0)( + _In_ UINT16 layerId, + _In_ UINT32 calloutId, + _In_ UINT64 flowContext + ); + +// Notify callout that boottime callout has been removed +typedef void (NTAPI *FWPS_CALLOUT_BOOTTIME_CALLOUT_DELETE_NOTIFY_FN0)( + _In_ UINT32 calloutId + ); + + +#if (NTDDI_VERSION >= NTDDI_WIN7) + +/////////////////////////////////////////////////////////////////////////////// +// +// ALE endpoint API. +// +/////////////////////////////////////////////////////////////////////////////// + +DWORD +WINAPI +FwpsOpenToken0( + IN HANDLE engineHandle, + IN LUID modifiedId, + IN DWORD desiredAccess, + OUT HANDLE* accessToken + ); + +DWORD +WINAPI +FwpsAleEndpointGetById0( + _In_ HANDLE engineHandle, + _In_ UINT64 endpointId, + _Out_ FWPS_ALE_ENDPOINT_PROPERTIES0** properties + ); + +DWORD +WINAPI +FwpsAleEndpointCreateEnumHandle0( + _In_ HANDLE engineHandle, + _In_opt_ const FWPS_ALE_ENDPOINT_ENUM_TEMPLATE0* enumTemplate, + _Out_ HANDLE* enumHandle + ); + +DWORD +WINAPI +FwpsAleEndpointEnum0( + _In_ HANDLE engineHandle, + _In_ HANDLE enumHandle, + _In_ UINT32 numEntriesRequested, + _Outptr_result_buffer_(*numEntriesReturned) FWPS_ALE_ENDPOINT_PROPERTIES0*** entries, + _Out_ UINT32* numEntriesReturned + ); + +DWORD +WINAPI +FwpsAleEndpointDestroyEnumHandle0( + _In_ HANDLE engineHandle, + _Inout_ HANDLE enumHandle + ); + +DWORD +WINAPI +FwpsAleEndpointGetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _Outptr_result_maybenull_ PSID* sidOwner, + _Outptr_result_maybenull_ PSID* sidGroup, + _Outptr_result_maybenull_ PACL* dacl, + _Outptr_result_maybenull_ PACL* sacl, + _Outptr_ PSECURITY_DESCRIPTOR* securityDescriptor + ); + +DWORD +WINAPI +FwpsAleEndpointSetSecurityInfo0( + _In_ HANDLE engineHandle, + _In_ SECURITY_INFORMATION securityInfo, + _In_opt_ const SID* sidOwner, + _In_opt_ const SID* sidGroup, + _In_opt_ const ACL* dacl, + _In_opt_ const ACL* sacl + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN7) + +#ifdef __cplusplus +} +#endif +#endif // (NTDDI_VERSION >= NTDDI_WIN6) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_APPRUNTIME) */ +#pragma endregion + +#endif // FWPSX_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/fxsutility.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fxsutility.h new file mode 100644 index 0000000000000000000000000000000000000000..a836ed0fce4a35c7a28891aefcf92032a91ae04c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/fxsutility.h @@ -0,0 +1,52 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + +Module Name: + + FxsSnd.h + +Abstract: + + This header file contains prototypes for "Send to Fax Recipient" functionality. + +--*/ + +#ifndef _FXS_UTILITY_H_ +#define _FXS_UTILITY_H_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum { + SEND_TO_FAX_RECIPIENT_ATTACHMENT +} SendToMode; + +BOOL WINAPI CanSendToFaxRecipient(); +DWORD WINAPI SendToFaxRecipient(SendToMode sndMode, LPCWSTR lpFileName); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gameux.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gameux.h new file mode 100644 index 0000000000000000000000000000000000000000..cac33b94ad2506173735a5ab7082662562f5b85d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gameux.h @@ -0,0 +1,774 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __gameux_h__ +#define __gameux_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IGameExplorer_FWD_DEFINED__ +#define __IGameExplorer_FWD_DEFINED__ +typedef interface IGameExplorer IGameExplorer; + +#endif /* __IGameExplorer_FWD_DEFINED__ */ + + +#ifndef __IGameStatistics_FWD_DEFINED__ +#define __IGameStatistics_FWD_DEFINED__ +typedef interface IGameStatistics IGameStatistics; + +#endif /* __IGameStatistics_FWD_DEFINED__ */ + + +#ifndef __IGameStatisticsMgr_FWD_DEFINED__ +#define __IGameStatisticsMgr_FWD_DEFINED__ +typedef interface IGameStatisticsMgr IGameStatisticsMgr; + +#endif /* __IGameStatisticsMgr_FWD_DEFINED__ */ + + +#ifndef __IGameExplorer2_FWD_DEFINED__ +#define __IGameExplorer2_FWD_DEFINED__ +typedef interface IGameExplorer2 IGameExplorer2; + +#endif /* __IGameExplorer2_FWD_DEFINED__ */ + + +#ifndef __GameExplorer_FWD_DEFINED__ +#define __GameExplorer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GameExplorer GameExplorer; +#else +typedef struct GameExplorer GameExplorer; +#endif /* __cplusplus */ + +#endif /* __GameExplorer_FWD_DEFINED__ */ + + +#ifndef __GameStatistics_FWD_DEFINED__ +#define __GameStatistics_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GameStatistics GameStatistics; +#else +typedef struct GameStatistics GameStatistics; +#endif /* __cplusplus */ + +#endif /* __GameStatistics_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "shobjidl_core.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_gameux_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define ID_GDF_XML __GDF_XML +#define ID_GDF_THUMBNAIL __GDF_THUMBNAIL +#define ID_ICON_ICO __ICON_ICO +#define ID_GDF_XML_STR L"__GDF_XML" +#define ID_GDF_THUMBNAIL_STR L"__GDF_THUMBNAIL" +typedef /* [v1_enum] */ +enum GAME_INSTALL_SCOPE + { + GIS_NOT_INSTALLED = 1, + GIS_CURRENT_USER = 2, + GIS_ALL_USERS = 3 + } GAME_INSTALL_SCOPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_gameux_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_gameux_0000_0000_v0_0_s_ifspec; + +#ifndef __IGameExplorer_INTERFACE_DEFINED__ +#define __IGameExplorer_INTERFACE_DEFINED__ + +/* interface IGameExplorer */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGameExplorer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E7B2FB72-D728-49B3-A5F2-18EBF5F1349E") + IGameExplorer : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddGame( + /* [in] */ __RPC__in BSTR bstrGDFBinaryPath, + /* [in] */ __RPC__in BSTR bstrGameInstallDirectory, + /* [in] */ GAME_INSTALL_SCOPE installScope, + /* [out][in] */ __RPC__inout GUID *pguidInstanceID) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RemoveGame( + /* [in] */ GUID guidInstanceID) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UpdateGame( + /* [in] */ GUID guidInstanceID) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE VerifyAccess( + /* [in] */ __RPC__in BSTR bstrGDFBinaryPath, + /* [out] */ __RPC__out BOOL *pfHasAccess) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGameExplorerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGameExplorer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGameExplorer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGameExplorer * This); + + DECLSPEC_XFGVIRT(IGameExplorer, AddGame) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddGame )( + __RPC__in IGameExplorer * This, + /* [in] */ __RPC__in BSTR bstrGDFBinaryPath, + /* [in] */ __RPC__in BSTR bstrGameInstallDirectory, + /* [in] */ GAME_INSTALL_SCOPE installScope, + /* [out][in] */ __RPC__inout GUID *pguidInstanceID); + + DECLSPEC_XFGVIRT(IGameExplorer, RemoveGame) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveGame )( + __RPC__in IGameExplorer * This, + /* [in] */ GUID guidInstanceID); + + DECLSPEC_XFGVIRT(IGameExplorer, UpdateGame) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UpdateGame )( + __RPC__in IGameExplorer * This, + /* [in] */ GUID guidInstanceID); + + DECLSPEC_XFGVIRT(IGameExplorer, VerifyAccess) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VerifyAccess )( + __RPC__in IGameExplorer * This, + /* [in] */ __RPC__in BSTR bstrGDFBinaryPath, + /* [out] */ __RPC__out BOOL *pfHasAccess); + + END_INTERFACE + } IGameExplorerVtbl; + + interface IGameExplorer + { + CONST_VTBL struct IGameExplorerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGameExplorer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGameExplorer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGameExplorer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGameExplorer_AddGame(This,bstrGDFBinaryPath,bstrGameInstallDirectory,installScope,pguidInstanceID) \ + ( (This)->lpVtbl -> AddGame(This,bstrGDFBinaryPath,bstrGameInstallDirectory,installScope,pguidInstanceID) ) + +#define IGameExplorer_RemoveGame(This,guidInstanceID) \ + ( (This)->lpVtbl -> RemoveGame(This,guidInstanceID) ) + +#define IGameExplorer_UpdateGame(This,guidInstanceID) \ + ( (This)->lpVtbl -> UpdateGame(This,guidInstanceID) ) + +#define IGameExplorer_VerifyAccess(This,bstrGDFBinaryPath,pfHasAccess) \ + ( (This)->lpVtbl -> VerifyAccess(This,bstrGDFBinaryPath,pfHasAccess) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGameExplorer_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_gameux_0000_0001 */ +/* [local] */ + +typedef /* [v1_enum] */ +enum GAMESTATS_OPEN_TYPE + { + GAMESTATS_OPEN_OPENORCREATE = 0, + GAMESTATS_OPEN_OPENONLY = 1 + } GAMESTATS_OPEN_TYPE; + +typedef /* [v1_enum] */ +enum GAMESTATS_OPEN_RESULT + { + GAMESTATS_OPEN_CREATED = 0, + GAMESTATS_OPEN_OPENED = 1 + } GAMESTATS_OPEN_RESULT; + + + +extern RPC_IF_HANDLE __MIDL_itf_gameux_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_gameux_0000_0001_v0_0_s_ifspec; + +#ifndef __IGameStatistics_INTERFACE_DEFINED__ +#define __IGameStatistics_INTERFACE_DEFINED__ + +/* interface IGameStatistics */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGameStatistics; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3887C9CA-04A0-42ae-BC4C-5FA6C7721145") + IGameStatistics : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMaxCategoryLength( + /* [retval][out] */ __RPC__out UINT *cch) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMaxNameLength( + /* [retval][out] */ __RPC__out UINT *cch) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMaxValueLength( + /* [retval][out] */ __RPC__out UINT *cch) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMaxCategories( + /* [retval][out] */ __RPC__out WORD *pMax) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMaxStatsPerCategory( + /* [retval][out] */ __RPC__out WORD *pMax) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCategoryTitle( + /* [in] */ WORD categoryIndex, + /* [string][in] */ __RPC__in_string LPCWSTR title) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCategoryTitle( + /* [in] */ WORD categoryIndex, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *pTitle) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetStatistic( + /* [in] */ WORD categoryIndex, + /* [in] */ WORD statIndex, + /* [string][unique][out][in] */ __RPC__deref_opt_inout_opt_string LPWSTR *pName, + /* [string][unique][out][in] */ __RPC__deref_opt_inout_opt_string LPWSTR *pValue) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetStatistic( + /* [in] */ WORD categoryIndex, + /* [in] */ WORD statIndex, + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [string][in] */ __RPC__in_string LPCWSTR value) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Save( + /* [in] */ BOOL trackChanges) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetLastPlayedCategory( + /* [in] */ UINT categoryIndex) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetLastPlayedCategory( + /* [retval][out] */ __RPC__out UINT *pCategoryIndex) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGameStatisticsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGameStatistics * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGameStatistics * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGameStatistics * This); + + DECLSPEC_XFGVIRT(IGameStatistics, GetMaxCategoryLength) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMaxCategoryLength )( + __RPC__in IGameStatistics * This, + /* [retval][out] */ __RPC__out UINT *cch); + + DECLSPEC_XFGVIRT(IGameStatistics, GetMaxNameLength) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMaxNameLength )( + __RPC__in IGameStatistics * This, + /* [retval][out] */ __RPC__out UINT *cch); + + DECLSPEC_XFGVIRT(IGameStatistics, GetMaxValueLength) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMaxValueLength )( + __RPC__in IGameStatistics * This, + /* [retval][out] */ __RPC__out UINT *cch); + + DECLSPEC_XFGVIRT(IGameStatistics, GetMaxCategories) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMaxCategories )( + __RPC__in IGameStatistics * This, + /* [retval][out] */ __RPC__out WORD *pMax); + + DECLSPEC_XFGVIRT(IGameStatistics, GetMaxStatsPerCategory) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMaxStatsPerCategory )( + __RPC__in IGameStatistics * This, + /* [retval][out] */ __RPC__out WORD *pMax); + + DECLSPEC_XFGVIRT(IGameStatistics, SetCategoryTitle) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCategoryTitle )( + __RPC__in IGameStatistics * This, + /* [in] */ WORD categoryIndex, + /* [string][in] */ __RPC__in_string LPCWSTR title); + + DECLSPEC_XFGVIRT(IGameStatistics, GetCategoryTitle) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCategoryTitle )( + __RPC__in IGameStatistics * This, + /* [in] */ WORD categoryIndex, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *pTitle); + + DECLSPEC_XFGVIRT(IGameStatistics, GetStatistic) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetStatistic )( + __RPC__in IGameStatistics * This, + /* [in] */ WORD categoryIndex, + /* [in] */ WORD statIndex, + /* [string][unique][out][in] */ __RPC__deref_opt_inout_opt_string LPWSTR *pName, + /* [string][unique][out][in] */ __RPC__deref_opt_inout_opt_string LPWSTR *pValue); + + DECLSPEC_XFGVIRT(IGameStatistics, SetStatistic) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetStatistic )( + __RPC__in IGameStatistics * This, + /* [in] */ WORD categoryIndex, + /* [in] */ WORD statIndex, + /* [string][in] */ __RPC__in_string LPCWSTR name, + /* [string][in] */ __RPC__in_string LPCWSTR value); + + DECLSPEC_XFGVIRT(IGameStatistics, Save) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IGameStatistics * This, + /* [in] */ BOOL trackChanges); + + DECLSPEC_XFGVIRT(IGameStatistics, SetLastPlayedCategory) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetLastPlayedCategory )( + __RPC__in IGameStatistics * This, + /* [in] */ UINT categoryIndex); + + DECLSPEC_XFGVIRT(IGameStatistics, GetLastPlayedCategory) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetLastPlayedCategory )( + __RPC__in IGameStatistics * This, + /* [retval][out] */ __RPC__out UINT *pCategoryIndex); + + END_INTERFACE + } IGameStatisticsVtbl; + + interface IGameStatistics + { + CONST_VTBL struct IGameStatisticsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGameStatistics_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGameStatistics_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGameStatistics_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGameStatistics_GetMaxCategoryLength(This,cch) \ + ( (This)->lpVtbl -> GetMaxCategoryLength(This,cch) ) + +#define IGameStatistics_GetMaxNameLength(This,cch) \ + ( (This)->lpVtbl -> GetMaxNameLength(This,cch) ) + +#define IGameStatistics_GetMaxValueLength(This,cch) \ + ( (This)->lpVtbl -> GetMaxValueLength(This,cch) ) + +#define IGameStatistics_GetMaxCategories(This,pMax) \ + ( (This)->lpVtbl -> GetMaxCategories(This,pMax) ) + +#define IGameStatistics_GetMaxStatsPerCategory(This,pMax) \ + ( (This)->lpVtbl -> GetMaxStatsPerCategory(This,pMax) ) + +#define IGameStatistics_SetCategoryTitle(This,categoryIndex,title) \ + ( (This)->lpVtbl -> SetCategoryTitle(This,categoryIndex,title) ) + +#define IGameStatistics_GetCategoryTitle(This,categoryIndex,pTitle) \ + ( (This)->lpVtbl -> GetCategoryTitle(This,categoryIndex,pTitle) ) + +#define IGameStatistics_GetStatistic(This,categoryIndex,statIndex,pName,pValue) \ + ( (This)->lpVtbl -> GetStatistic(This,categoryIndex,statIndex,pName,pValue) ) + +#define IGameStatistics_SetStatistic(This,categoryIndex,statIndex,name,value) \ + ( (This)->lpVtbl -> SetStatistic(This,categoryIndex,statIndex,name,value) ) + +#define IGameStatistics_Save(This,trackChanges) \ + ( (This)->lpVtbl -> Save(This,trackChanges) ) + +#define IGameStatistics_SetLastPlayedCategory(This,categoryIndex) \ + ( (This)->lpVtbl -> SetLastPlayedCategory(This,categoryIndex) ) + +#define IGameStatistics_GetLastPlayedCategory(This,pCategoryIndex) \ + ( (This)->lpVtbl -> GetLastPlayedCategory(This,pCategoryIndex) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGameStatistics_INTERFACE_DEFINED__ */ + + +#ifndef __IGameStatisticsMgr_INTERFACE_DEFINED__ +#define __IGameStatisticsMgr_INTERFACE_DEFINED__ + +/* interface IGameStatisticsMgr */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGameStatisticsMgr; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AFF3EA11-E70E-407d-95DD-35E612C41CE2") + IGameStatisticsMgr : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetGameStatistics( + /* [string][in] */ __RPC__in_string LPCWSTR GDFBinaryPath, + /* [in] */ GAMESTATS_OPEN_TYPE openType, + /* [out] */ __RPC__out GAMESTATS_OPEN_RESULT *pOpenResult, + /* [retval][out] */ __RPC__deref_out_opt IGameStatistics **ppiStats) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RemoveGameStatistics( + /* [string][in] */ __RPC__in_string LPCWSTR GDFBinaryPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGameStatisticsMgrVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGameStatisticsMgr * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGameStatisticsMgr * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGameStatisticsMgr * This); + + DECLSPEC_XFGVIRT(IGameStatisticsMgr, GetGameStatistics) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetGameStatistics )( + __RPC__in IGameStatisticsMgr * This, + /* [string][in] */ __RPC__in_string LPCWSTR GDFBinaryPath, + /* [in] */ GAMESTATS_OPEN_TYPE openType, + /* [out] */ __RPC__out GAMESTATS_OPEN_RESULT *pOpenResult, + /* [retval][out] */ __RPC__deref_out_opt IGameStatistics **ppiStats); + + DECLSPEC_XFGVIRT(IGameStatisticsMgr, RemoveGameStatistics) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RemoveGameStatistics )( + __RPC__in IGameStatisticsMgr * This, + /* [string][in] */ __RPC__in_string LPCWSTR GDFBinaryPath); + + END_INTERFACE + } IGameStatisticsMgrVtbl; + + interface IGameStatisticsMgr + { + CONST_VTBL struct IGameStatisticsMgrVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGameStatisticsMgr_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGameStatisticsMgr_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGameStatisticsMgr_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGameStatisticsMgr_GetGameStatistics(This,GDFBinaryPath,openType,pOpenResult,ppiStats) \ + ( (This)->lpVtbl -> GetGameStatistics(This,GDFBinaryPath,openType,pOpenResult,ppiStats) ) + +#define IGameStatisticsMgr_RemoveGameStatistics(This,GDFBinaryPath) \ + ( (This)->lpVtbl -> RemoveGameStatistics(This,GDFBinaryPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGameStatisticsMgr_INTERFACE_DEFINED__ */ + + +#ifndef __IGameExplorer2_INTERFACE_DEFINED__ +#define __IGameExplorer2_INTERFACE_DEFINED__ + +/* interface IGameExplorer2 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IGameExplorer2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("86874AA7-A1ED-450d-A7EB-B89E20B2FFF3") + IGameExplorer2 : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE InstallGame( + /* [string][in] */ __RPC__in_string LPCWSTR binaryGDFPath, + /* [unique][in] */ __RPC__in_opt LPCWSTR installDirectory, + /* [in] */ GAME_INSTALL_SCOPE installScope) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UninstallGame( + /* [string][in] */ __RPC__in_string LPCWSTR binaryGDFPath) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CheckAccess( + /* [string][in] */ __RPC__in_string LPCWSTR binaryGDFPath, + /* [retval][out] */ __RPC__out BOOL *pHasAccess) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGameExplorer2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGameExplorer2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGameExplorer2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGameExplorer2 * This); + + DECLSPEC_XFGVIRT(IGameExplorer2, InstallGame) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *InstallGame )( + __RPC__in IGameExplorer2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR binaryGDFPath, + /* [unique][in] */ __RPC__in_opt LPCWSTR installDirectory, + /* [in] */ GAME_INSTALL_SCOPE installScope); + + DECLSPEC_XFGVIRT(IGameExplorer2, UninstallGame) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UninstallGame )( + __RPC__in IGameExplorer2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR binaryGDFPath); + + DECLSPEC_XFGVIRT(IGameExplorer2, CheckAccess) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CheckAccess )( + __RPC__in IGameExplorer2 * This, + /* [string][in] */ __RPC__in_string LPCWSTR binaryGDFPath, + /* [retval][out] */ __RPC__out BOOL *pHasAccess); + + END_INTERFACE + } IGameExplorer2Vtbl; + + interface IGameExplorer2 + { + CONST_VTBL struct IGameExplorer2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGameExplorer2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGameExplorer2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGameExplorer2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGameExplorer2_InstallGame(This,binaryGDFPath,installDirectory,installScope) \ + ( (This)->lpVtbl -> InstallGame(This,binaryGDFPath,installDirectory,installScope) ) + +#define IGameExplorer2_UninstallGame(This,binaryGDFPath) \ + ( (This)->lpVtbl -> UninstallGame(This,binaryGDFPath) ) + +#define IGameExplorer2_CheckAccess(This,binaryGDFPath,pHasAccess) \ + ( (This)->lpVtbl -> CheckAccess(This,binaryGDFPath,pHasAccess) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGameExplorer2_INTERFACE_DEFINED__ */ + + + +#ifndef __gameuxLib_LIBRARY_DEFINED__ +#define __gameuxLib_LIBRARY_DEFINED__ + +/* library gameuxLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_gameuxLib; + +EXTERN_C const CLSID CLSID_GameExplorer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("9A5EA990-3034-4D6F-9128-01F3C61022BC") +GameExplorer; +#endif + +EXTERN_C const CLSID CLSID_GameStatistics; + +#ifdef __cplusplus + +class DECLSPEC_UUID("DBC85A2C-C0DC-4961-B6E2-D28B62C11AD4") +GameStatistics; +#endif +#endif /* __gameuxLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_gameux_0000_0005 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_gameux_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_gameux_0000_0005_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gamingdeviceinformation.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gamingdeviceinformation.h new file mode 100644 index 0000000000000000000000000000000000000000..9c0ffd1f7ff47685cc7dd99e727b4e5b623aa1e4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gamingdeviceinformation.h @@ -0,0 +1,74 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +// +// API Set Contract: +// +// api-ms-win-gaming-deviceinformation-l1-1-* +// +// Abstract: +// +// This header file provides API function signatures for querying gaming device information. +// + +#ifdef MSC_VER +#pragma once +#endif + +#ifndef _APISET_GAMINGDEVICEINFORMATION_ +#define _APISET_GAMINGDEVICEINFORMATION_ + +#include +#include +#ifdef _CONTRACT_GEN +#include +#include +#include +#include +#endif + +#if defined(__cplusplus) +extern "C" { +#endif + +typedef enum GAMING_DEVICE_VENDOR_ID +{ + GAMING_DEVICE_VENDOR_ID_NONE = 0, + GAMING_DEVICE_VENDOR_ID_MICROSOFT = 0xC2EC5032 +} GAMING_DEVICE_VENDOR_ID; + +typedef enum GAMING_DEVICE_DEVICE_ID +{ + GAMING_DEVICE_DEVICE_ID_NONE = 0, + GAMING_DEVICE_DEVICE_ID_XBOX_ONE = 0x768BAE26, + GAMING_DEVICE_DEVICE_ID_XBOX_ONE_S = 0x2A7361D9, + GAMING_DEVICE_DEVICE_ID_XBOX_ONE_X = 0x5AD617C7, + GAMING_DEVICE_DEVICE_ID_XBOX_ONE_X_DEVKIT = 0x10F7CDE3, + GAMING_DEVICE_DEVICE_ID_XBOX_SERIES_S = 0x1D27FABB, + GAMING_DEVICE_DEVICE_ID_XBOX_SERIES_X = 0x2F7A3DFF, + GAMING_DEVICE_DEVICE_ID_XBOX_SERIES_X_DEVKIT = 0xDE8A5661 +} GAMING_DEVICE_DEVICE_ID; + +// Definitions to maintain backwards compat with previous SDKs. +#define GAMING_DEVICE_DEVICE_ID_XBOX_ONE_SCORPIO GAMING_DEVICE_DEVICE_ID_XBOX_ONE_X +#define GAMING_DEVICE_DEVICE_ID_XBOX_ONE_SCORPIO_DEVKIT GAMING_DEVICE_DEVICE_ID_XBOX_ONE_X_DEVKIT + +typedef struct GAMING_DEVICE_MODEL_INFORMATION +{ + GAMING_DEVICE_VENDOR_ID vendorId; + GAMING_DEVICE_DEVICE_ID deviceId; +} GAMING_DEVICE_MODEL_INFORMATION; + +// Returns S_OK and GAMING_DEVICE_VENDOR_ID_NONE/GAMING_DEVICE_DEVICE_ID_NONE on non-Xbox SKUs. +STDAPI +GetGamingDeviceModelInformation( + _Out_ GAMING_DEVICE_MODEL_INFORMATION* information + ); + +#if defined(__cplusplus) +} // end extern "C" +#endif // defined(__cplusplus) + +#endif // _APISET_GAMINGDEVICEINFORMATION_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gamingexperience.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gamingexperience.h new file mode 100644 index 0000000000000000000000000000000000000000..7079702b67391309024a1d2ce465f0eb21b0944c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gamingexperience.h @@ -0,0 +1,82 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +// +// API Set Contract: +// +// api-ms-win-gaming-experience-l1-1-* +// +// Abstract: +// +// This header file provides API function signatures for gaming experience apps. +// + +#ifdef MSC_VER +#pragma once +#endif + +#ifndef _APISET_GAMING_EXPERIENCE_ +#define _APISET_GAMING_EXPERIENCE_ + +#include +#include +#ifdef _CONTRACT_GEN +#include +#include +#include +#include +#endif + +#if defined(__cplusplus) +extern "C" { +#endif + +BOOL +WINAPI +IsGamingFullScreenExperienceSupported( + ); + +BOOL +WINAPI +IsGamingFullScreenExperienceActive( + ); + +BOOL +WINAPI +CanSetGamingFullScreenExperience( + ); + +HRESULT +WINAPI +SetGamingFullScreenExperience( + _In_ BOOL active + ); + +typedef +VOID (CALLBACK *PGAMING_FULL_SCREEN_EXPERIENCE_CHANGE_ROUTINE) ( + _In_ PVOID context + ); + +DECLARE_HANDLE(GAMING_FULL_SCREEN_EXPERIENCE_REGISTRATION); + +HRESULT +WINAPI +RegisterGamingFullScreenExperienceChangeNotification( + _In_ PGAMING_FULL_SCREEN_EXPERIENCE_CHANGE_ROUTINE routine, + _In_opt_ PVOID context, + _Out_ GAMING_FULL_SCREEN_EXPERIENCE_REGISTRATION* registration + ); + +VOID +WINAPI +UnregisterGamingFullScreenExperienceChangeNotification( + _Inout_ GAMING_FULL_SCREEN_EXPERIENCE_REGISTRATION registration + ); + +#if defined(__cplusplus) +} // end extern "C" +#endif // defined(__cplusplus) + +#endif // _APISET_GAMING_EXPERIENCE_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gamingtcui.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gamingtcui.h new file mode 100644 index 0000000000000000000000000000000000000000..78c5c59a94a386ff987466d2729aa285b8b9782c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gamingtcui.h @@ -0,0 +1,327 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// + +// +// API Set Contract: +// +// api-ms-win-gaming-tcui-l1-1-* +// +// Abstract: +// +// This header file provides API function signatures for gaming related +// TCUI APIs. +// + +#ifdef MSC_VER +#pragma once +#endif + +#ifndef _GAMING_TCUI_EXT_ +#define _GAMING_TCUI_EXT_ + +#if NTDDI_VERSION >= NTDDI_THRESHOLD + +#include +#include +#ifdef _CONTRACT_GEN +#include +#include +#include +#include +#include +#endif + +#include + +#if defined(__cplusplus) +extern "C" { +#endif + +typedef VOID (WINAPI * GameUICompletionRoutine) ( + _In_ HRESULT returnCode, + _In_ void* context + ); + +typedef VOID (WINAPI * PlayerPickerUICompletionRoutine) ( + _In_ HRESULT returnCode, + _In_ void* context, + _In_reads_(selectedXuidsCount) const HSTRING* selectedXuids, + _In_ size_t selectedXuidsCount + ); + +HRESULT +WINAPI +ShowGameInviteUI( + _In_ HSTRING serviceConfigurationId, + _In_ HSTRING sessionTemplateName, + _In_ HSTRING sessionId, + _In_ HSTRING invitationDisplayText, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowPlayerPickerUI( + _In_ HSTRING promptDisplayText, + _In_reads_(xuidsCount) const HSTRING* xuids, + _In_ size_t xuidsCount, + _In_reads_opt_(preSelectedXuidsCount) const HSTRING* preSelectedXuids, + _In_ size_t preSelectedXuidsCount, + _In_ size_t minSelectionCount, + _In_ size_t maxSelectionCount, + _In_ PlayerPickerUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowProfileCardUI( + _In_ HSTRING targetUserXuid, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowChangeFriendRelationshipUI( + _In_ HSTRING targetUserXuid, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowTitleAchievementsUI( + _In_ UINT32 titleId, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ProcessPendingGameUI( + _In_ BOOL waitForCompletion + ); + +BOOL +WINAPI +TryCancelPendingGameUI( + ); + +typedef enum KnownGamingPrivileges{ + XPRIVILEGE_BROADCAST = 190, // The user can broadcast live gameplay + XPRIVILEGE_VIEW_FRIENDS_LIST = 197, // The user can view other user's friends list if this privilege is present + XPRIVILEGE_GAME_DVR = 198, // The user can upload recorded in-game videos to the cloud if this privilege is present. Viewing GameDVRs is subject to privacy controls. + XPRIVILEGE_SHARE_KINECT_CONTENT = 199, // Kinect recorded content can be uploaded to the cloud for the user and made accessible to anyone if this privilege is present. Viewing other user's Kinect content is subject to a privacy setting. + XPRIVILEGE_MULTIPLAYER_PARTIES = 203, // The user can join a party session if this privilege is present + XPRIVILEGE_COMMUNICATION_VOICE_INGAME = 205, // The user can participate in voice chat during parties and multiplayer game sessions if this privilege is present. Communicating with other users is subject to additional privacy permission checks + XPRIVILEGE_COMMUNICATION_VOICE_SKYPE = 206, // The user can use voice communication with Skype on Xbox One if this privilege is present + XPRIVILEGE_CLOUD_GAMING_MANAGE_SESSION = 207, // The user can allocate a cloud compute cluster and manage a cloud compute cluster for a hosted game session if this privilege is present + XPRIVILEGE_CLOUD_GAMING_JOIN_SESSION = 208, // The user can join a cloud compute session if this privilege is present + XPRIVILEGE_CLOUD_SAVED_GAMES = 209, // The user can save games in cloud title storage if this privilege is present + XPRIVILEGE_SHARE_CONTENT = 211, // The user can share content with others if this privilege is present + XPRIVILEGE_PREMIUM_CONTENT = 214, // The user can purchase, download and launch premium content available with the Xbox LIVE Gold subscription if this privilege is present + XPRIVILEGE_SUBSCRIPTION_CONTENT = 219, // The user can purchase and download premium subscription content and use premium subscription features when this privilege is present + XPRIVILEGE_SOCIAL_NETWORK_SHARING = 220, // The user is allowed to share progress information on social networks when this privilege is present + XPRIVILEGE_PREMIUM_VIDEO = 224, // The user can access premium video services if this privilege is present + XPRIVILEGE_VIDEO_COMMUNICATIONS = 235, // The user can use video communication with Skype or other providers when this privilege is present. Communicating with other users is subject to additional privacy permission checks + XPRIVILEGE_PURCHASE_CONTENT = 245, // The user is authorized to purchase content when this privilege is present + XPRIVILEGE_USER_CREATED_CONTENT = 247, // The user is authorized to download and view online user created content when this privilege is present. + XPRIVILEGE_PROFILE_VIEWING = 249, // The user is authorized to view other user's profiles when this privilege is present. Viewing other user's profiles is subject to additional privacy checks + XPRIVILEGE_COMMUNICATIONS = 252, // The user can use asynchronous text messaging with anyone when this privilege is present. Extra privacy permissions checks are required to determine who the user is authorized to communicate with. Communicating with other users is subject to additional privacy permission checks + XPRIVILEGE_MULTIPLAYER_SESSIONS = 254, // The user can join a multiplayer sessions for a game when this privilege is present. + XPRIVILEGE_ADD_FRIEND = 255, // The user can follow other Xbox LIVE users and add Xbox LIVE friends when this privilege is present +} KnownGamingPrivileges; + +HRESULT +WINAPI +CheckGamingPrivilegeWithUI( + _In_ UINT32 privilegeId, + _In_ HSTRING scope, + _In_ HSTRING policy, + _In_opt_ HSTRING friendlyMessage, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +CheckGamingPrivilegeSilently( + _In_ UINT32 privilegeId, + _In_ HSTRING scope, + _In_ HSTRING policy, + _Out_ BOOL* hasPrivilege + ); + +HRESULT +WINAPI +ShowGameInviteUIForUser( + _In_ IInspectable* user, + _In_ HSTRING serviceConfigurationId, + _In_ HSTRING sessionTemplateName, + _In_ HSTRING sessionId, + _In_ HSTRING invitationDisplayText, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowPlayerPickerUIForUser( + _In_ IInspectable* user, + _In_ HSTRING promptDisplayText, + _In_reads_(xuidsCount) const HSTRING* xuids, + _In_ size_t xuidsCount, + _In_reads_opt_(preSelectedXuidsCount) const HSTRING* preSelectedXuids, + _In_ size_t preSelectedXuidsCount, + _In_ size_t minSelectionCount, + _In_ size_t maxSelectionCount, + _In_ PlayerPickerUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowProfileCardUIForUser( + _In_ IInspectable* user, + _In_ HSTRING targetUserXuid, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowChangeFriendRelationshipUIForUser( + _In_ IInspectable* user, + _In_ HSTRING targetUserXuid, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowTitleAchievementsUIForUser( + _In_ IInspectable* user, + _In_ UINT32 titleId, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +CheckGamingPrivilegeWithUIForUser( + _In_ IInspectable* user, + _In_ UINT32 privilegeId, + _In_ HSTRING scope, + _In_ HSTRING policy, + _In_opt_ HSTRING friendlyMessage, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +CheckGamingPrivilegeSilentlyForUser( + _In_ IInspectable* user, + _In_ UINT32 privilegeId, + _In_ HSTRING scope, + _In_ HSTRING policy, + _Out_ BOOL* hasPrivilege + ); + +HRESULT +WINAPI +ShowGameInviteUIWithContext( + _In_ HSTRING serviceConfigurationId, + _In_ HSTRING sessionTemplateName, + _In_ HSTRING sessionId, + _In_ HSTRING invitationDisplayText, + _In_ HSTRING customActivationContext, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowGameInviteUIWithContextForUser( + _In_ IInspectable* user, + _In_ HSTRING serviceConfigurationId, + _In_ HSTRING sessionTemplateName, + _In_ HSTRING sessionId, + _In_ HSTRING invitationDisplayText, + _In_ HSTRING customActivationContext, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowGameInfoUI( + _In_ UINT32 titleId, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowGameInfoUIForUser( + _In_ IInspectable* user, + _In_ UINT32 titleId, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowFindFriendsUI( + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowFindFriendsUIForUser( + _In_ IInspectable* user, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowCustomizeUserProfileUI( + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowCustomizeUserProfileUIForUser( + _In_ IInspectable* user, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowUserSettingsUI( + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +HRESULT +WINAPI +ShowUserSettingsUIForUser( + _In_ IInspectable* user, + _In_ GameUICompletionRoutine completionRoutine, + _In_opt_ void* context + ); + +#if defined(__cplusplus) +} // end extern "C" +#endif // defined(__cplusplus) + +#endif // NTDDI_VERSION >= NTDDI_THRESHOLD + +#endif // _GAMING_TCUI_EXT_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gb18030.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gb18030.h new file mode 100644 index 0000000000000000000000000000000000000000..870ddf9ad69825066789116a4c549032443404ff --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gb18030.h @@ -0,0 +1,126 @@ +#ifndef __GB18030_H +#define __GB18030_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Flags for dwFlags in NlsDllCodePageTranslation. +// +#define NLS_CP_CPINFO 0x10000000 +#define NLS_CP_MBTOWC 0x40000000 +#define NLS_CP_WCTOMB 0x80000000 + +//////////////////////////////////////////////////////////////////////////// +// +// gb18030.h +// +// This is the header for using the c_g18030.dll in the system. +// This file lists all exported functions in c_g18030.dll. +// c_g18030.dll is a codpeage conversion DLL for the Chinese GB-18030 codepage +// (Windows codepage 54936). +// +// The best way to use c_g18030.dll is to use the Windows API +// MultiByteToWideChar() and WideCharToMultiByte(), and pass 54936 as the codepage +// number. Internally, MultiByteToWideChar() and WideCharToMultiByte() call function +// in c_g18030.dll using these exported functions. +// +// You can also use this header and load these functions dynamically from c_g18030.dll. +// However, this is not recommended since MulitByteToWideChar() and WideCharToMultiByte() +// are much easier to use and these exports may change between windows versions. +// +//////////////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////////////////// +// +// NlsDllCodePageTranslation +// This routine is the main exported procedure for the functionality in +// c_g18030.dll. It can be used to get code page information or do conversion +// depending on the value of dwFlags. +// +// Parameters: +// CodePage The value of the codepage. The value should be 54936. Otherwise, +// 0 will be returned and GetLastError() will return ERROR_INVALID_PARAMETER. +// +// dwFlags It can be one of these values +// NLS_CP_CPINFO To return code page information in the buffer pointed by +// lpCPInfo. lpMultiByteStr/cchMultiByte/lpWideCharStr/cchWideChar are not used. +// +// NLS_CP_MBTOWC Convert GB-18030 bytes to Unicode characters. +// The source GB-18030 characters should be pointed by lpMultiByteStr, and cchMultiByte should +// contains the byte count of the buffer. +// The Unicode result will be stored in the buffer pointed by lpWideCharStr, and cchWideChar +// should contain the character count of the Unicode buffer. +// If lpWideCharStr or cchWideChar are zero, the expected character count of the Unicode result +// will be returned, and no real conversion will be done. +// lpCPInfo is not used in this case. +// +// NLS_CP_WCTOMB Convert Unicode characters to GB-18030 bytes. +// The source Unicode string should be pointed by lpWideCharStr, and cchWideChar should +// contians the character count of the buffer. +// The GB-18030 result will be stored in the buffer pointed by lpMultiByteStr, and cchMultiByte +// should contain the byte count of the GB-18030 buffer. +// If lpMultiByteStr or cchMultiByte are zero, the byte count of the GB-18030 result +// will be returned, and no real conversion will be done. +// lpCPInfo is not used in this case. +// +// Additionally one of these values may also be passed by logically oring them together +// WC_ERR_INVALID_CHARS +// Returns 0 and GetLastError returns ERROR_NO_UNICODE_TRANSLATION if illegal unicode characters are +// encountered during NLS_CP_WCTOMB, instead of replacing them with ? +// +// MB_ERR_INVALID_CHARS +// Returns 0 and GetLastError returns ERROR_NO_UNICODE_TRANSLATION if illegal gb18030 code points +// are encountered during NLS_CPMBTOWC conversion. If this flag isn't set they would be replaced +// by ? instead. +// +// lpMultiByteStr Pointed to a buffer which contains multi-byte GB-18030 characters. This can be a source buffer +// or target buffer, depending on the value of dwFlags. +// +// cchMulitByte The byte count of the multi-byte buffer. +// +// lpWideCharStr Pointed to a buffer which contains Unicode characters. This can be a source buffer +// or target buffer, depending on the value of dwFlags. +// +// cchWideChar The character count of the Unicode buffer. +// +// lpCPInfo A pointer which points to a structure of CPINFO. CPINFO is defined in Platform SDK. +// +// Returns: +// 1 if the function succeeds. +// 0 if the function fails +// +//////////////////////////////////////////////////////////////////////////// + +STDAPI_(DWORD) NlsDllCodePageTranslation( + DWORD CodePage, + DWORD dwFlags, + LPSTR lpMultiByteStr, + int cchMultiByte, + LPWSTR lpWideCharStr, + int cchWideChar, + LPCPINFO lpCPInfo); + +//////////////////////////////////////////////////////////////////////////// +// +// BytesToUnicode +// +// Deprecated, only available in Windows XP and Windows Server 2003. +// +//////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////////////////// +// +// UnicodeToBytes +// +// Deprecated, only available in Windows XP and Windows Server 2003. +// +//////////////////////////////////////////////////////////////////////////// + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplus.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplus.h new file mode 100644 index 0000000000000000000000000000000000000000..4fd8dc0e2b54e8d2ab51a210f2439891ed9cc5f8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplus.h @@ -0,0 +1,90 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* Gdiplus.h +* +* Abstract: +* +* GDI+ public header file +* +\**************************************************************************/ + +#ifndef _GDIPLUS_H +#define _GDIPLUS_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +struct IDirectDrawSurface7; + +typedef signed short INT16; +typedef unsigned short UINT16; + + +// Define the Current GDIPlus Version +#ifndef GDIPVER +#define GDIPVER 0x0100 +#endif + +#include // set structure packing to 8 + +namespace Gdiplus +{ + namespace DllExports + { + #include "GdiplusMem.h" + }; + + #include "GdiplusBase.h" + + #include "GdiplusEnums.h" + #include "GdiplusTypes.h" + #include "GdiplusInit.h" + #include "GdiplusPixelFormats.h" + #include "GdiplusColor.h" + #include "GdiplusMetaHeader.h" + #include "GdiplusImaging.h" + #include "GdiplusColorMatrix.h" +#if (GDIPVER >= 0x0110) + #include "GdiplusEffects.h" +#endif + #include "GdiplusGpStubs.h" + #include "GdiplusHeaders.h" + + namespace DllExports + { + #include "GdiplusFlat.h" + }; + + + #include "GdiplusImageAttributes.h" + #include "GdiplusMatrix.h" + #include "GdiplusBrush.h" + #include "GdiplusPen.h" + #include "GdiplusStringFormat.h" + #include "GdiplusPath.h" + #include "GdiplusLineCaps.h" + #include "GdiplusGraphics.h" + #include "GdiplusMetafile.h" + #include "GdiplusCachedBitmap.h" + #include "GdiplusRegion.h" + #include "GdiplusFontCollection.h" + #include "GdiplusFontFamily.h" + #include "GdiplusFont.h" + #include "GdiplusBitmap.h" + #include "GdiplusImageCodec.h" + +}; // namespace Gdiplus + +#include // pop structure packing back to previous state + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_GDIPLUS_HPP diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusbase.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusbase.h new file mode 100644 index 0000000000000000000000000000000000000000..94c18a3de88129f954ec4843c524e43c42b6c19b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusbase.h @@ -0,0 +1,49 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusBase.h +* +* Abstract: +* +* GDI+ base memory allocation class +* +\**************************************************************************/ + +#ifndef _GDIPLUSBASE_H +#define _GDIPLUSBASE_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +class GdiplusBase +{ +public: + void (operator delete)(void* in_pVoid) + { + DllExports::GdipFree(in_pVoid); + } + void* (operator new)(size_t in_size) + { + return DllExports::GdipAlloc(in_size); + } + void (operator delete[])(void* in_pVoid) + { + DllExports::GdipFree(in_pVoid); + } + void* (operator new[])(size_t in_size) + { + return DllExports::GdipAlloc(in_size); + } +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusbitmap.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusbitmap.h new file mode 100644 index 0000000000000000000000000000000000000000..78e768153a1b22a4be288a4864071575e9b56fc2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusbitmap.h @@ -0,0 +1,1134 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusBitmap.h +* +* Abstract: +* +* GDI+ Bitmap class +* +\**************************************************************************/ + +#ifndef _GDIPLUSBITMAP_H +#define _GDIPLUSBITMAP_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#pragma warning(push) +#pragma warning(disable: 6102 6103) // Uses SetStatus()/GetStatus() pattern rather than return codes so PREfast gets confused + +inline +Image::Image( + IN const WCHAR* filename, + IN BOOL useEmbeddedColorManagement + ) +{ + nativeImage = NULL; + if(useEmbeddedColorManagement) + { + lastResult = DllExports::GdipLoadImageFromFileICM( + filename, + &nativeImage + ); + } + else + { + lastResult = DllExports::GdipLoadImageFromFile( + filename, + &nativeImage + ); + } +} + +inline +Image::Image( + IN IStream* stream, + IN BOOL useEmbeddedColorManagement + ) +{ + nativeImage = NULL; + if(useEmbeddedColorManagement) + { + lastResult = DllExports::GdipLoadImageFromStreamICM( + stream, + &nativeImage + ); + } + else + { + lastResult = DllExports::GdipLoadImageFromStream( + stream, + &nativeImage + ); + } +} + +inline Image* +Image::FromFile( + IN const WCHAR* filename, + IN BOOL useEmbeddedColorManagement + ) +{ + return new Image( + filename, + useEmbeddedColorManagement + ); +} + +inline Image* +Image::FromStream( + IN IStream* stream, + IN BOOL useEmbeddedColorManagement + ) +{ + return new Image( + stream, + useEmbeddedColorManagement + ); +} + +inline +Image::~Image() +{ + DllExports::GdipDisposeImage(nativeImage); +} + +inline Image* +Image::Clone() +{ + GpImage *cloneimage = NULL; + + SetStatus(DllExports::GdipCloneImage(nativeImage, &cloneimage)); + + return new Image(cloneimage, lastResult); +} + +inline UINT +Image::GetEncoderParameterListSize( + IN const CLSID* clsidEncoder + ) +{ + UINT size = 0; + + SetStatus(DllExports::GdipGetEncoderParameterListSize(nativeImage, + clsidEncoder, + &size)); + return size; +} + +inline Status +Image::GetEncoderParameterList( + IN const CLSID* clsidEncoder, + IN UINT size, + OUT EncoderParameters* buffer + ) +{ + return SetStatus(DllExports::GdipGetEncoderParameterList(nativeImage, + clsidEncoder, + size, + buffer)); +} + +inline Status +Image::Save( + IN const WCHAR* filename, + IN const CLSID* clsidEncoder, + IN const EncoderParameters *encoderParams + ) +{ + return SetStatus(DllExports::GdipSaveImageToFile(nativeImage, + filename, + clsidEncoder, + encoderParams)); +} + +inline Status +Image::Save( + IN IStream* stream, + IN const CLSID* clsidEncoder, + IN const EncoderParameters *encoderParams + ) +{ + return SetStatus(DllExports::GdipSaveImageToStream(nativeImage, + stream, + clsidEncoder, + encoderParams)); +} + +inline Status +Image::SaveAdd( + IN const EncoderParameters *encoderParams + ) +{ + return SetStatus(DllExports::GdipSaveAdd(nativeImage, + encoderParams)); +} + +inline Status +Image::SaveAdd( + IN Image* newImage, + IN const EncoderParameters *encoderParams + ) +{ + if ( newImage == NULL ) + { + return SetStatus(InvalidParameter); + } + + return SetStatus(DllExports::GdipSaveAddImage(nativeImage, + newImage->nativeImage, + encoderParams)); +} + +inline ImageType +Image::GetType() const +{ + ImageType type = ImageTypeUnknown; + + SetStatus(DllExports::GdipGetImageType(nativeImage, &type)); + + return type; +} + +inline Status +Image::GetPhysicalDimension( + OUT SizeF* size + ) +{ + if (size == NULL) + { + return SetStatus(InvalidParameter); + } + + REAL width, height; + Status status; + + status = SetStatus(DllExports::GdipGetImageDimension(nativeImage, + &width, &height)); + + size->Width = width; + size->Height = height; + + return status; +} + +inline Status +Image::GetBounds( + OUT RectF *srcRect, + OUT Unit *srcUnit + ) +{ + return SetStatus(DllExports::GdipGetImageBounds(nativeImage, + srcRect, srcUnit)); +} + +inline UINT +Image::GetWidth() +{ + UINT width = 0; + + SetStatus(DllExports::GdipGetImageWidth(nativeImage, &width)); + + return width; +} + +inline UINT +Image::GetHeight() +{ + UINT height = 0; + + SetStatus(DllExports::GdipGetImageHeight(nativeImage, &height)); + + return height; +} + +inline REAL +Image::GetHorizontalResolution() +{ + REAL resolution = 0.0f; + + SetStatus(DllExports::GdipGetImageHorizontalResolution(nativeImage, &resolution)); + + return resolution; +} + +inline REAL +Image::GetVerticalResolution() +{ + REAL resolution = 0.0f; + + SetStatus(DllExports::GdipGetImageVerticalResolution(nativeImage, &resolution)); + + return resolution; +} + +inline UINT +Image::GetFlags() +{ + UINT flags = 0; + + SetStatus(DllExports::GdipGetImageFlags(nativeImage, &flags)); + + return flags; +} + +inline Status +Image::GetRawFormat(OUT GUID *format) +{ + return SetStatus(DllExports::GdipGetImageRawFormat(nativeImage, format)); +} + +inline PixelFormat +Image::GetPixelFormat() +{ + PixelFormat format; + + SetStatus(DllExports::GdipGetImagePixelFormat(nativeImage, &format)); + + return format; +} + +inline INT +Image::GetPaletteSize() +{ + INT size = 0; + + SetStatus(DllExports::GdipGetImagePaletteSize(nativeImage, &size)); + + return size; +} + +inline Status +Image::GetPalette( + OUT ColorPalette *palette, + IN INT size +) +{ + return SetStatus(DllExports::GdipGetImagePalette(nativeImage, palette, size)); +} + +inline Status +Image::SetPalette( + IN const ColorPalette *palette + ) +{ + return SetStatus(DllExports::GdipSetImagePalette(nativeImage, palette)); +} + +inline Image* +Image::GetThumbnailImage( + IN UINT thumbWidth, + IN UINT thumbHeight, + IN GetThumbnailImageAbort callback, + IN VOID* callbackData + ) +{ + GpImage *thumbimage = NULL; + + SetStatus(DllExports::GdipGetImageThumbnail(nativeImage, + thumbWidth, thumbHeight, + &thumbimage, + callback, callbackData)); + + Image *newImage = new Image(thumbimage, lastResult); + + if (newImage == NULL) + { + DllExports::GdipDisposeImage(thumbimage); + } + + return newImage; +} + +inline UINT +Image::GetFrameDimensionsCount() +{ + UINT count = 0; + + SetStatus(DllExports::GdipImageGetFrameDimensionsCount(nativeImage, + &count)); + + return count; +} + +inline Status +Image::GetFrameDimensionsList( + OUT GUID* dimensionIDs, + IN UINT count + ) +{ + return SetStatus(DllExports::GdipImageGetFrameDimensionsList(nativeImage, + dimensionIDs, + count)); +} + +inline UINT +Image::GetFrameCount( + IN const GUID* dimensionID + ) +{ + UINT count = 0; + + SetStatus(DllExports::GdipImageGetFrameCount(nativeImage, + dimensionID, + &count)); + return count; +} + +inline Status +Image::SelectActiveFrame( + IN const GUID *dimensionID, + IN UINT frameIndex + ) +{ + return SetStatus(DllExports::GdipImageSelectActiveFrame(nativeImage, + dimensionID, + frameIndex)); +} + +inline Status +Image::RotateFlip( + IN RotateFlipType rotateFlipType + ) +{ + return SetStatus(DllExports::GdipImageRotateFlip(nativeImage, + rotateFlipType)); +} + +inline UINT +Image::GetPropertyCount() +{ + UINT numProperty = 0; + + SetStatus(DllExports::GdipGetPropertyCount(nativeImage, + &numProperty)); + + return numProperty; +} + +inline Status +Image::GetPropertyIdList( + IN UINT numOfProperty, + OUT PROPID* list + ) +{ + return SetStatus(DllExports::GdipGetPropertyIdList(nativeImage, + numOfProperty, list)); +} + +inline UINT +Image::GetPropertyItemSize( + IN PROPID propId + ) +{ + UINT size = 0; + + SetStatus(DllExports::GdipGetPropertyItemSize(nativeImage, + propId, + &size)); + + return size; +} + +inline Status +Image::GetPropertyItem( + IN PROPID propId, + IN UINT propSize, + OUT PropertyItem* buffer + ) +{ + return SetStatus(DllExports::GdipGetPropertyItem(nativeImage, + propId, propSize, buffer)); +} + +inline Status +Image::GetPropertySize( + OUT UINT* totalBufferSize, + OUT UINT* numProperties + ) +{ + return SetStatus(DllExports::GdipGetPropertySize(nativeImage, + totalBufferSize, + numProperties)); +} + +inline Status +Image::GetAllPropertyItems( + IN UINT totalBufferSize, + IN UINT numProperties, + OUT PropertyItem* allItems + ) +{ + if (allItems == NULL) + { + return SetStatus(InvalidParameter); + } + return SetStatus(DllExports::GdipGetAllPropertyItems(nativeImage, + totalBufferSize, + numProperties, + allItems)); +} + +inline Status +Image::RemovePropertyItem( + IN PROPID propId + ) +{ + return SetStatus(DllExports::GdipRemovePropertyItem(nativeImage, propId)); +} + +inline Status +Image::SetPropertyItem( + IN const PropertyItem* item + ) +{ + return SetStatus(DllExports::GdipSetPropertyItem(nativeImage, item)); +} + +#if (GDIPVER >= 0x0110) +inline Status +Image::FindFirstItem( + IN ImageItemData* item + ) +{ + return SetStatus(DllExports::GdipFindFirstImageItem(nativeImage, item)); +} + +inline Status +Image::FindNextItem( + IN ImageItemData* item + ) +{ + return SetStatus(DllExports::GdipFindNextImageItem(nativeImage, item)); +} + +inline Status +Image::GetItemData( + IN ImageItemData* item + ) +{ + return SetStatus(DllExports::GdipGetImageItemData(nativeImage, item)); +} +#endif //(GDIPVER >= 0x0110) + +inline Status +Image::GetLastStatus() const +{ + Status lastStatus = lastResult; + lastResult = Ok; + + return lastStatus; +} + +inline +Image::Image(GpImage *nativeImage, Status status) +{ + SetNativeImage(nativeImage); + lastResult = status; +} + +inline VOID +Image::SetNativeImage(GpImage *newNativeImage) +{ + this->nativeImage = newNativeImage; +} + +inline +Bitmap::Bitmap( + IN const WCHAR *filename, + IN BOOL useEmbeddedColorManagement + ) +{ + GpBitmap *bitmap = NULL; + + if(useEmbeddedColorManagement) + { + lastResult = DllExports::GdipCreateBitmapFromFileICM(filename, &bitmap); + } + else + { + lastResult = DllExports::GdipCreateBitmapFromFile(filename, &bitmap); + } + + SetNativeImage(bitmap); +} + +inline +Bitmap::Bitmap( + IN IStream *stream, + IN BOOL useEmbeddedColorManagement + ) +{ + GpBitmap *bitmap = NULL; + + if(useEmbeddedColorManagement) + { + lastResult = DllExports::GdipCreateBitmapFromStreamICM(stream, &bitmap); + } + else + { + lastResult = DllExports::GdipCreateBitmapFromStream(stream, &bitmap); + } + + SetNativeImage(bitmap); +} + +inline +Bitmap::Bitmap( + _In_ INT width, + _In_ INT height, + _In_ INT stride, + _In_ PixelFormat format, + _In_reads_opt_(_Inexpressible_("height * stride")) BYTE* scan0 + ) +{ + GpBitmap *bitmap = NULL; + + lastResult = DllExports::GdipCreateBitmapFromScan0(width, + height, + stride, + format, + scan0, + &bitmap); + + SetNativeImage(bitmap); +} + +inline +Bitmap::Bitmap( + IN INT width, + IN INT height, + IN PixelFormat format + ) +{ + GpBitmap *bitmap = NULL; + + lastResult = DllExports::GdipCreateBitmapFromScan0(width, + height, + 0, + format, + NULL, + &bitmap); + + SetNativeImage(bitmap); +} + +inline +Bitmap::Bitmap( + IN INT width, + IN INT height, + IN Graphics* target) +{ + GpBitmap *bitmap = NULL; + + lastResult = DllExports::GdipCreateBitmapFromGraphics(width, + height, + target->nativeGraphics, + &bitmap); + + SetNativeImage(bitmap); +} + +inline +Bitmap::Bitmap( + IN IDirectDrawSurface7 * surface + ) +{ + GpBitmap *bitmap = NULL; + + lastResult = DllExports::GdipCreateBitmapFromDirectDrawSurface(surface, + &bitmap); + + SetNativeImage(bitmap); +} + +inline +Bitmap::Bitmap( + IN const BITMAPINFO* gdiBitmapInfo, + IN VOID* gdiBitmapData + ) +{ + GpBitmap *bitmap = NULL; + + lastResult = DllExports::GdipCreateBitmapFromGdiDib(gdiBitmapInfo, + gdiBitmapData, + &bitmap); + + SetNativeImage(bitmap); +} + +inline +Bitmap::Bitmap( + IN HBITMAP hbm, + IN HPALETTE hpal + ) +{ + GpBitmap *bitmap = NULL; + + lastResult = DllExports::GdipCreateBitmapFromHBITMAP(hbm, hpal, &bitmap); + + SetNativeImage(bitmap); +} + +inline +Bitmap::Bitmap( + IN HICON hicon + ) +{ + GpBitmap *bitmap = NULL; + + lastResult = DllExports::GdipCreateBitmapFromHICON(hicon, &bitmap); + + SetNativeImage(bitmap); +} + +inline +Bitmap::Bitmap( + IN HINSTANCE hInstance, + IN const WCHAR *bitmapName + ) +{ + GpBitmap *bitmap = NULL; + + lastResult = DllExports::GdipCreateBitmapFromResource(hInstance, + bitmapName, + &bitmap); + + SetNativeImage(bitmap); +} + + +inline Bitmap* +Bitmap::FromFile( + IN const WCHAR *filename, + IN BOOL useEmbeddedColorManagement + ) +{ + return new Bitmap( + filename, + useEmbeddedColorManagement + ); +} + +inline Bitmap* +Bitmap::FromStream( + IN IStream *stream, + IN BOOL useEmbeddedColorManagement + ) +{ + return new Bitmap( + stream, + useEmbeddedColorManagement + ); +} + +inline Bitmap* +Bitmap::FromDirectDrawSurface7( + IN IDirectDrawSurface7* surface + ) +{ + return new Bitmap(surface); +} + +inline Bitmap* +Bitmap::FromBITMAPINFO( + IN const BITMAPINFO* gdiBitmapInfo, + IN VOID* gdiBitmapData) +{ + return new Bitmap(gdiBitmapInfo, gdiBitmapData); +} + +inline Bitmap* +Bitmap::FromHBITMAP( + IN HBITMAP hbm, + IN HPALETTE hpal + ) +{ + return new Bitmap(hbm, hpal); +} + +inline Bitmap* +Bitmap::FromHICON( + IN HICON hicon + ) +{ + return new Bitmap(hicon); +} + +inline Bitmap* +Bitmap::FromResource( + IN HINSTANCE hInstance, + IN const WCHAR *bitmapName) +{ + return new Bitmap(hInstance, bitmapName); +} + +inline Status +Bitmap::GetHBITMAP( + IN const Color& colorBackground, + OUT HBITMAP* hbmReturn + ) +{ + return SetStatus(DllExports::GdipCreateHBITMAPFromBitmap( + static_cast(nativeImage), + hbmReturn, + colorBackground.GetValue())); +} + +inline Status +Bitmap::GetHICON( + OUT HICON* hiconReturn + ) +{ + return SetStatus(DllExports::GdipCreateHICONFromBitmap( + static_cast(nativeImage), + hiconReturn)); +} + +inline Bitmap* +Bitmap::Clone( + IN const Rect& rect, + IN PixelFormat format + ) +{ + return Clone(rect.X, rect.Y, rect.Width, rect.Height, format); +} + +inline Bitmap* +Bitmap::Clone( + IN INT x, + IN INT y, + IN INT width, + IN INT height, + IN PixelFormat format + ) +{ + GpBitmap* gpdstBitmap = NULL; + Bitmap* bitmap; + + if (SetStatus(DllExports::GdipCloneBitmapAreaI( + x, + y, + width, + height, + format, + (GpBitmap *)nativeImage, + &gpdstBitmap)) == Ok) + { + bitmap = new Bitmap(gpdstBitmap); + + if (bitmap == NULL) + { + DllExports::GdipDisposeImage(gpdstBitmap); + } + + return bitmap; + } + else + return NULL; +} + +inline Bitmap* +Bitmap::Clone( + IN const RectF& rect, + IN PixelFormat format + ) +{ + return Clone(rect.X, rect.Y, rect.Width, rect.Height, format); +} + +inline Bitmap* +Bitmap::Clone( + IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height, + IN PixelFormat format + ) +{ + GpBitmap* gpdstBitmap = NULL; + Bitmap* bitmap; + + if (SetStatus(DllExports::GdipCloneBitmapArea( + x, + y, + width, + height, + format, + (GpBitmap *)nativeImage, + &gpdstBitmap)) == Ok) + { + bitmap = new Bitmap(gpdstBitmap); + + if (bitmap == NULL) + { + DllExports::GdipDisposeImage(gpdstBitmap); + } + + return bitmap; + } + else + return NULL; +} + +inline Bitmap::Bitmap(GpBitmap *nativeBitmap) +{ + lastResult = Ok; + + SetNativeImage(nativeBitmap); +} + +inline Status +Bitmap::LockBits( + IN const Rect* rect, + IN UINT flags, + IN PixelFormat format, + OUT BitmapData* lockedBitmapData +) +{ + return SetStatus(DllExports::GdipBitmapLockBits( + static_cast(nativeImage), + rect, + flags, + format, + lockedBitmapData)); +} + +inline Status +Bitmap::UnlockBits( + IN BitmapData* lockedBitmapData + ) +{ + return SetStatus(DllExports::GdipBitmapUnlockBits( + static_cast(nativeImage), + lockedBitmapData)); +} + +inline Status +Bitmap::GetPixel( + IN INT x, + IN INT y, + OUT Color *color) +{ + ARGB argb; + + Status status = SetStatus(DllExports::GdipBitmapGetPixel( + static_cast(nativeImage), + x, y, + &argb)); + + if (status == Ok) + { + color->SetValue(argb); + } + + return status; +} + +inline Status +Bitmap::SetPixel( + IN INT x, + IN INT y, + IN const Color& color) +{ + return SetStatus(DllExports::GdipBitmapSetPixel( + static_cast(nativeImage), + x, y, + color.GetValue())); +} + +#if (GDIPVER >= 0x0110) +inline Status Image::SetAbort(GdiplusAbort *pIAbort) +{ + return SetStatus(DllExports::GdipImageSetAbort( + nativeImage, + pIAbort + )); +} + +inline Status +Bitmap::ConvertFormat( + PixelFormat format, + DitherType dithertype, + PaletteType palettetype, + ColorPalette *palette, + REAL alphaThresholdPercent + ) +{ + return SetStatus(DllExports::GdipBitmapConvertFormat( + static_cast(nativeImage), + format, + dithertype, + palettetype, + palette, + alphaThresholdPercent + )); +} + +inline Status +Bitmap::InitializePalette( + OUT ColorPalette *palette, // output palette. must be allocated. + PaletteType palettetype, // palette enumeration type. + INT optimalColors, // how many optimal colors + BOOL useTransparentColor, // add a transparent color to the palette. + Bitmap *bitmap // optional bitmap for median cut. + ) +{ + return DllExports::GdipInitializePalette( + palette, + palettetype, + optimalColors, + useTransparentColor, + bitmap ? static_cast(bitmap->nativeImage) : NULL + ); +} + + +inline Status +Bitmap::ApplyEffect( + IN Bitmap **inputs, + IN INT numInputs, + IN Effect *effect, + IN RECT *ROI, // optional parameter. + OUT RECT *outputRect, // optional parameter. + OUT Bitmap **output +) +{ + if (numInputs < 0) + { + return InvalidParameter; + } + + GpBitmap *outputNative = NULL; + GpBitmap **nativeInputs = new GpBitmap * [numInputs]; + + if (NULL == nativeInputs) + { + return OutOfMemory; + } + + for (int i = 0; i < numInputs; i++) + { + nativeInputs[i] = static_cast(inputs[i]->nativeImage); + } + + if (effect->auxData) + { + DllExports::GdipFree(effect->auxData); + effect->auxData = NULL; + effect->auxDataSize = 0; + } + + Status status = DllExports::GdipBitmapCreateApplyEffect( + nativeInputs, + numInputs, + effect->nativeEffect, + ROI, + outputRect, + &outputNative, + effect->useAuxData, + &effect->auxData, + &effect->auxDataSize + ); + + if ((Ok == status) && outputNative) + { + *output = new Bitmap(outputNative); + + if (NULL == *output) + { + status = OutOfMemory; + DllExports::GdipDisposeImage(outputNative); + } + } + else + { + *output = NULL; + } + + delete [] nativeInputs; + + return status; +} + + +inline Status +Bitmap::ApplyEffect( + Effect *effect, + RECT *ROI +) +{ + if(effect->auxData) + { + DllExports::GdipFree(effect->auxData); + effect->auxData = NULL; + effect->auxDataSize = 0; + } + + return DllExports::GdipBitmapApplyEffect( + static_cast(nativeImage), + effect->nativeEffect, + ROI, + effect->useAuxData, + &effect->auxData, + &effect->auxDataSize + ); +} + +inline Status +Bitmap::GetHistogram( + IN HistogramFormat format, + IN UINT NumberOfEntries, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel0, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel1, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel2, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel3 +) +{ + return DllExports::GdipBitmapGetHistogram( + static_cast(nativeImage), + format, + NumberOfEntries, + channel0, + channel1, + channel2, + channel3 + ); +} + +inline Status +Bitmap::GetHistogramSize( + IN HistogramFormat format, + OUT UINT *NumberOfEntries +) +{ + return DllExports::GdipBitmapGetHistogramSize( + format, + NumberOfEntries + ); +} + +#endif // (GDIPVER >= 0x0110) + + +inline Status +Bitmap::SetResolution( + IN REAL xdpi, + IN REAL ydpi) +{ + return SetStatus(DllExports::GdipBitmapSetResolution( + static_cast(nativeImage), + xdpi, ydpi)); +} + +#pragma warning(pop) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusbrush.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusbrush.h new file mode 100644 index 0000000000000000000000000000000000000000..11eb1ce627d737295b53792d67d99847f065e04f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusbrush.h @@ -0,0 +1,856 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusBrush.h +* +* Abstract: +* +* GDI+ Brush class +* +\**************************************************************************/ + +#ifndef _GDIPLUSBRUSH_H +#define _GDIPLUSBRUSH_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +class GraphicsPath; + +//-------------------------------------------------------------------------- +// Abstract base class for various brush types +//-------------------------------------------------------------------------- + +class Brush : public GdiplusBase +{ +public: + friend class Pen; + friend class Graphics; + + virtual ~Brush() + { + DllExports::GdipDeleteBrush(nativeBrush); + } + + virtual Brush* Clone() const + { + GpBrush *brush = NULL; + + SetStatus(DllExports::GdipCloneBrush(nativeBrush, &brush)); + + Brush *newBrush = new Brush(brush, lastResult); + + if (newBrush == NULL) + { + DllExports::GdipDeleteBrush(brush); + } + + return newBrush; + } + + BrushType GetType() const + { + BrushType type = static_cast(-1); + + SetStatus(DllExports::GdipGetBrushType(nativeBrush, &type)); + + return type; + } + + Status GetLastStatus() const + { + Status lastStatus = lastResult; + lastResult = Ok; + + return lastStatus; + } + +protected: + + Brush() + { + SetStatus(NotImplemented); + } + +private: + Brush(const Brush& brush); + Brush& operator=(const Brush& brush); +protected: + + Brush(GpBrush* nativeBrushArg, Status status) + { + lastResult = status; + SetNativeBrush(nativeBrushArg); + } + + VOID SetNativeBrush(GpBrush* nativeBrushArg) + { + this->nativeBrush = nativeBrushArg; + } + + Status SetStatus(Status status) const + { + if (status != Ok) + return (lastResult = status); + else + return status; + } + + GpBrush* nativeBrush; + mutable Status lastResult; +}; + +//-------------------------------------------------------------------------- +// Solid Fill Brush Object +//-------------------------------------------------------------------------- + +class SolidBrush : public Brush +{ +public: + friend class Pen; + + SolidBrush(IN const Color& color) + { + GpSolidFill *brush = NULL; + + lastResult = DllExports::GdipCreateSolidFill(color.GetValue(), &brush); + + SetNativeBrush(brush); + } + + Status GetColor(OUT Color* color) const + { + ARGB argb; + + if (color == NULL) + { + return SetStatus(InvalidParameter); + } + + SetStatus(DllExports::GdipGetSolidFillColor((GpSolidFill*)nativeBrush, + &argb)); + + *color = Color(argb); + + return lastResult; + } + + Status SetColor(IN const Color& color) + { + return SetStatus(DllExports::GdipSetSolidFillColor((GpSolidFill*)nativeBrush, + color.GetValue())); + } + +private: + SolidBrush(const SolidBrush &); + SolidBrush& operator=(const SolidBrush &); + +protected: + + SolidBrush() + { + } +}; + +//-------------------------------------------------------------------------- +// Texture Brush Fill Object +//-------------------------------------------------------------------------- + +class TextureBrush : public Brush +{ +public: + friend class Pen; + + TextureBrush(IN Image* image, + IN WrapMode wrapMode = WrapModeTile) + { + GpTexture *texture = NULL; + + lastResult = DllExports::GdipCreateTexture( + image->nativeImage, + wrapMode, &texture); + + SetNativeBrush(texture); + } + + // When creating a texture brush from a metafile image, the dstRect + // is used to specify the size that the metafile image should be + // rendered at in the device units of the destination graphics. + // It is NOT used to crop the metafile image, so only the width + // and height values matter for metafiles. + + TextureBrush(IN Image* image, + IN WrapMode wrapMode, + IN const RectF &dstRect) + { + GpTexture *texture = NULL; + + lastResult = DllExports::GdipCreateTexture2( + image->nativeImage, + wrapMode, + dstRect.X, + dstRect.Y, + dstRect.Width, + dstRect.Height, + &texture); + + SetNativeBrush(texture); + } + + TextureBrush(IN Image *image, + IN const RectF &dstRect, + IN const ImageAttributes *imageAttributes = NULL) + { + GpTexture *texture = NULL; + + lastResult = DllExports::GdipCreateTextureIA( + image->nativeImage, + (imageAttributes)?imageAttributes->nativeImageAttr:NULL, + dstRect.X, + dstRect.Y, + dstRect.Width, + dstRect.Height, + &texture + ); + + SetNativeBrush(texture); + } + + TextureBrush(IN Image *image, + IN const Rect &dstRect, + IN const ImageAttributes *imageAttributes = NULL) + { + GpTexture *texture = NULL; + + lastResult = DllExports::GdipCreateTextureIAI( + image->nativeImage, + (imageAttributes)?imageAttributes->nativeImageAttr:NULL, + dstRect.X, + dstRect.Y, + dstRect.Width, + dstRect.Height, + &texture + ); + + SetNativeBrush(texture); + } + + TextureBrush( + IN Image* image, + IN WrapMode wrapMode, + + const IN Rect &dstRect + ) + { + GpTexture *texture = NULL; + + lastResult = DllExports::GdipCreateTexture2I( + image->nativeImage, + wrapMode, + dstRect.X, + dstRect.Y, + dstRect.Width, + dstRect.Height, + &texture); + + SetNativeBrush(texture); + } + + TextureBrush(IN Image* image, + IN WrapMode wrapMode, + IN REAL dstX, + IN REAL dstY, + IN REAL dstWidth, + IN REAL dstHeight) + { + GpTexture *texture = NULL; + + lastResult = DllExports::GdipCreateTexture2( + image->nativeImage, + wrapMode, + dstX, + dstY, + dstWidth, + dstHeight, + &texture); + + SetNativeBrush(texture); + } + + TextureBrush(IN Image* image, + IN WrapMode wrapMode, + IN INT dstX, + IN INT dstY, + IN INT dstWidth, + IN INT dstHeight) + { + GpTexture *texture = NULL; + + lastResult = DllExports::GdipCreateTexture2I( + image->nativeImage, + wrapMode, + dstX, + dstY, + dstWidth, + dstHeight, + &texture); + + SetNativeBrush(texture); + } + + Status SetTransform(IN const Matrix* matrix) + { + return SetStatus(DllExports::GdipSetTextureTransform((GpTexture*)nativeBrush, + matrix->nativeMatrix)); + } + + Status GetTransform(OUT Matrix* matrix) const + { + return SetStatus(DllExports::GdipGetTextureTransform((GpTexture*)nativeBrush, + matrix->nativeMatrix)); + } + + Status ResetTransform() + { + return SetStatus(DllExports::GdipResetTextureTransform((GpTexture*)nativeBrush)); + } + + Status MultiplyTransform(IN const Matrix* matrix, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipMultiplyTextureTransform((GpTexture*)nativeBrush, + matrix->nativeMatrix, + order)); + } + + Status TranslateTransform(IN REAL dx, + IN REAL dy, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipTranslateTextureTransform((GpTexture*)nativeBrush, + dx, dy, order)); + } + + Status ScaleTransform(IN REAL sx, + IN REAL sy, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipScaleTextureTransform((GpTexture*)nativeBrush, + sx, sy, order)); + } + + Status RotateTransform(IN REAL angle, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipRotateTextureTransform((GpTexture*)nativeBrush, + angle, order)); + } + + Status SetWrapMode(IN WrapMode wrapMode) + { + return SetStatus(DllExports::GdipSetTextureWrapMode((GpTexture*)nativeBrush, + wrapMode)); + } + + WrapMode GetWrapMode() const + { + WrapMode wrapMode; + + SetStatus(DllExports::GdipGetTextureWrapMode((GpTexture*)nativeBrush, + &wrapMode)); + return wrapMode; + } + + Image *GetImage() const + { + GpImage *image; + + SetStatus(DllExports::GdipGetTextureImage((GpTexture *)nativeBrush, + &image)); + + Image *retimage = new Image(image, lastResult); + + if (retimage == NULL) + { + DllExports::GdipDisposeImage(image); + } + + return retimage; + } + +private: + TextureBrush(const TextureBrush &); + TextureBrush& operator=(const TextureBrush &); + +protected: + + TextureBrush() + { + } +}; + +//-------------------------------------------------------------------------- +// Linear Gradient Brush Object +//-------------------------------------------------------------------------- + +class LinearGradientBrush : public Brush +{ +public: + friend class Pen; + + LinearGradientBrush(IN const PointF& point1, + IN const PointF& point2, + IN const Color& color1, + IN const Color& color2) + { + GpLineGradient *brush = NULL; + + lastResult = DllExports::GdipCreateLineBrush(&point1, + &point2, + color1.GetValue(), + color2.GetValue(), + WrapModeTile, + &brush); + + SetNativeBrush(brush); + } + + LinearGradientBrush(IN const Point& point1, + IN const Point& point2, + IN const Color& color1, + IN const Color& color2) + { + GpLineGradient *brush = NULL; + + lastResult = DllExports::GdipCreateLineBrushI(&point1, + &point2, + color1.GetValue(), + color2.GetValue(), + WrapModeTile, + &brush); + + SetNativeBrush(brush); + } + + LinearGradientBrush(IN const RectF& rect, + IN const Color& color1, + IN const Color& color2, + IN LinearGradientMode mode) + { + GpLineGradient *brush = NULL; + + lastResult = DllExports::GdipCreateLineBrushFromRect(&rect, + color1.GetValue(), + color2.GetValue(), + mode, + WrapModeTile, + &brush); + + SetNativeBrush(brush); + } + + LinearGradientBrush(IN const Rect& rect, + IN const Color& color1, + IN const Color& color2, + IN LinearGradientMode mode) + { + GpLineGradient *brush = NULL; + + lastResult = DllExports::GdipCreateLineBrushFromRectI(&rect, + color1.GetValue(), + color2.GetValue(), + mode, + WrapModeTile, + &brush); + + SetNativeBrush(brush); + } + + LinearGradientBrush(IN const RectF& rect, + IN const Color& color1, + IN const Color& color2, + IN REAL angle, + IN BOOL isAngleScalable = FALSE) + { + GpLineGradient *brush = NULL; + + lastResult = DllExports::GdipCreateLineBrushFromRectWithAngle(&rect, + color1.GetValue(), + color2.GetValue(), + angle, + isAngleScalable, + WrapModeTile, + &brush); + + SetNativeBrush(brush); + } + + LinearGradientBrush(IN const Rect& rect, + IN const Color& color1, + IN const Color& color2, + IN REAL angle, + IN BOOL isAngleScalable = FALSE) + { + GpLineGradient *brush = NULL; + + lastResult = DllExports::GdipCreateLineBrushFromRectWithAngleI(&rect, + color1.GetValue(), + color2.GetValue(), + angle, + isAngleScalable, + WrapModeTile, + &brush); + + SetNativeBrush(brush); + } + + Status SetLinearColors(IN const Color& color1, + IN const Color& color2) + { + return SetStatus(DllExports::GdipSetLineColors((GpLineGradient*)nativeBrush, + color1.GetValue(), + color2.GetValue())); + } + + Status GetLinearColors(OUT Color* colors) const + { + ARGB argb[2]; + + if (colors == NULL) + { + return SetStatus(InvalidParameter); + } + + Status status = SetStatus(DllExports::GdipGetLineColors((GpLineGradient*) nativeBrush, argb)); + + if (status == Ok) + { + // use bitwise copy operator for Color copy + colors[0] = Color(argb[0]); + colors[1] = Color(argb[1]); + } + + return status; + } + + Status GetRectangle(OUT RectF* rect) const + { + return SetStatus(DllExports::GdipGetLineRect((GpLineGradient*)nativeBrush, rect)); + } + + Status GetRectangle(OUT Rect* rect) const + { + return SetStatus(DllExports::GdipGetLineRectI((GpLineGradient*)nativeBrush, rect)); + } + + Status SetGammaCorrection(IN BOOL useGammaCorrection) + { + return SetStatus(DllExports::GdipSetLineGammaCorrection((GpLineGradient*)nativeBrush, + useGammaCorrection)); + } + + BOOL GetGammaCorrection() const + { + BOOL useGammaCorrection; + + SetStatus(DllExports::GdipGetLineGammaCorrection((GpLineGradient*)nativeBrush, + &useGammaCorrection)); + + return useGammaCorrection; + } + + INT GetBlendCount() const + { + INT count = 0; + + SetStatus(DllExports::GdipGetLineBlendCount((GpLineGradient*) + nativeBrush, + &count)); + + return count; + } + + Status SetBlend(IN const REAL* blendFactors, + IN const REAL* blendPositions, + IN INT count) + { + return SetStatus(DllExports::GdipSetLineBlend((GpLineGradient*) + nativeBrush, + blendFactors, + blendPositions, + count)); + } + + Status GetBlend(OUT REAL* blendFactors, + OUT REAL* blendPositions, + IN INT count) const + { + return SetStatus(DllExports::GdipGetLineBlend((GpLineGradient*)nativeBrush, + blendFactors, + blendPositions, + count)); + } + + INT GetInterpolationColorCount() const + { + INT count = 0; + + SetStatus(DllExports::GdipGetLinePresetBlendCount((GpLineGradient*) + nativeBrush, + &count)); + + return count; + } + + Status SetInterpolationColors(IN const Color* presetColors, + IN const REAL* blendPositions, + IN INT count) + { + if ((count <= 0) || !presetColors) + return SetStatus(InvalidParameter); + + ARGB *argbs = (ARGB*) new BYTE[count*sizeof(ARGB)]; + + if (argbs) + { + for (INT i = 0; i < count; i++) + { + argbs[i] = presetColors[i].GetValue(); + } + + Status status = SetStatus(DllExports::GdipSetLinePresetBlend( + (GpLineGradient*) nativeBrush, + argbs, + blendPositions, + count)); + delete [] argbs; + return status; + } + else + { + return SetStatus(OutOfMemory); + } + } + + Status GetInterpolationColors(OUT Color* presetColors, + OUT REAL* blendPositions, + IN INT count) const + { + if ((count <= 0) || !presetColors) + return SetStatus(InvalidParameter); + + ARGB* argbs = (ARGB*) new BYTE[count*sizeof(ARGB)]; + + if (!argbs) + { + return SetStatus(OutOfMemory); + } + + Status status = SetStatus(DllExports::GdipGetLinePresetBlend((GpLineGradient*)nativeBrush, + argbs, + blendPositions, + count)); + if (status == Ok) + { + for (INT i = 0; i < count; i++) + { + presetColors[i] = Color(argbs[i]); + } + } + + delete [] argbs; + + return status; + } + + Status SetBlendBellShape(IN REAL focus, + IN REAL scale = 1.0f) + { + return SetStatus(DllExports::GdipSetLineSigmaBlend((GpLineGradient*)nativeBrush, focus, scale)); + } + + Status SetBlendTriangularShape( + IN REAL focus, + IN REAL scale = 1.0f + ) + { + return SetStatus(DllExports::GdipSetLineLinearBlend((GpLineGradient*)nativeBrush, focus, scale)); + } + + Status SetTransform(IN const Matrix* matrix) + { + return SetStatus(DllExports::GdipSetLineTransform((GpLineGradient*)nativeBrush, + matrix->nativeMatrix)); + } + + Status GetTransform(OUT Matrix *matrix) const + { + return SetStatus(DllExports::GdipGetLineTransform((GpLineGradient*)nativeBrush, + matrix->nativeMatrix)); + } + + Status ResetTransform() + { + return SetStatus(DllExports::GdipResetLineTransform((GpLineGradient*)nativeBrush)); + } + + Status MultiplyTransform(IN const Matrix* matrix, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipMultiplyLineTransform((GpLineGradient*)nativeBrush, + matrix->nativeMatrix, + order)); + } + + Status TranslateTransform(IN REAL dx, + IN REAL dy, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipTranslateLineTransform((GpLineGradient*)nativeBrush, + dx, dy, order)); + } + + Status ScaleTransform(IN REAL sx, + IN REAL sy, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipScaleLineTransform((GpLineGradient*)nativeBrush, + sx, sy, order)); + } + + Status RotateTransform(IN REAL angle, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipRotateLineTransform((GpLineGradient*)nativeBrush, + angle, order)); + } + + Status SetWrapMode(IN WrapMode wrapMode) + { + return SetStatus(DllExports::GdipSetLineWrapMode((GpLineGradient*)nativeBrush, + wrapMode)); + } + + WrapMode GetWrapMode() const + { + WrapMode wrapMode; + + SetStatus(DllExports::GdipGetLineWrapMode((GpLineGradient*) + nativeBrush, + &wrapMode)); + + return wrapMode; + } + +private: + LinearGradientBrush(const LinearGradientBrush &); + LinearGradientBrush& operator=(const LinearGradientBrush &); + +protected: + + LinearGradientBrush() + { + } +}; + +//-------------------------------------------------------------------------- +// PathGradientBrush object is defined +// in gdipluspath.h. +//-------------------------------------------------------------------------- + +//-------------------------------------------------------------------------- +// Hatch Brush Object +//-------------------------------------------------------------------------- + +class HatchBrush : public Brush +{ +public: + friend class Pen; + + HatchBrush(IN HatchStyle hatchStyle, + IN const Color& foreColor, + IN const Color& backColor = Color()) + { + GpHatch *brush = NULL; + + lastResult = DllExports::GdipCreateHatchBrush(hatchStyle, + foreColor.GetValue(), + backColor.GetValue(), + &brush); + SetNativeBrush(brush); + } + + HatchStyle GetHatchStyle() const + { + HatchStyle hatchStyle; + + SetStatus(DllExports::GdipGetHatchStyle((GpHatch*)nativeBrush, + &hatchStyle)); + + return hatchStyle; + } + + Status GetForegroundColor(OUT Color* color) const + { + ARGB argb; + + if (color == NULL) + { + return SetStatus(InvalidParameter); + } + + Status status = SetStatus(DllExports::GdipGetHatchForegroundColor( + (GpHatch*)nativeBrush, + &argb)); + + color->SetValue(argb); + + return status; + } + + Status GetBackgroundColor(OUT Color *color) const + { + ARGB argb; + + if (color == NULL) + { + return SetStatus(InvalidParameter); + } + + Status status = SetStatus(DllExports::GdipGetHatchBackgroundColor( + (GpHatch*)nativeBrush, + &argb)); + + color->SetValue(argb); + + return status; + } + +private: + HatchBrush(const HatchBrush &); + HatchBrush& operator=(const HatchBrush &); + +protected: + + HatchBrush() + { + } +}; + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluscachedbitmap.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluscachedbitmap.h new file mode 100644 index 0000000000000000000000000000000000000000..5b8e63d3556d0f0b12aaab8e31cfe5b5588af361 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluscachedbitmap.h @@ -0,0 +1,60 @@ +/************************************************************************** +* +* Copyright (c) 2000 Microsoft Corporation +* +* Module Name: +* +* CachedBitmap class definition +* +* Abstract: +* +* GDI+ CachedBitmap is a representation of an accelerated drawing +* that has restrictions on what operations are allowed in order +* to accelerate the drawing to the destination. +* +* Look for class definition in GdiplusHeaders.h +* +**************************************************************************/ + +#ifndef _GDIPLUSCACHEDBITMAP_H +#define _GDIPLUSCACHEDBITMAP_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +inline +CachedBitmap::CachedBitmap( + IN Bitmap *bitmap, + IN Graphics *graphics) +{ + nativeCachedBitmap = NULL; + + lastResult = DllExports::GdipCreateCachedBitmap( + (GpBitmap *)bitmap->nativeImage, + graphics->nativeGraphics, + &nativeCachedBitmap + ); +} + +inline +CachedBitmap::~CachedBitmap() +{ + DllExports::GdipDeleteCachedBitmap(nativeCachedBitmap); +} + +inline Status +CachedBitmap::GetLastStatus() const +{ + Status lastStatus = lastResult; + lastResult = Ok; + return (lastStatus); +} + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluscolor.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluscolor.h new file mode 100644 index 0000000000000000000000000000000000000000..55fa15503c0ac09f093a1d0de4d9589ccc7e3748 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluscolor.h @@ -0,0 +1,333 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusColor.h +* +* Abstract: +* +* GDI+ Color Object +* +\**************************************************************************/ + +#ifndef _GDIPLUSCOLOR_H +#define _GDIPLUSCOLOR_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +//---------------------------------------------------------------------------- +// Color mode +//---------------------------------------------------------------------------- + +enum ColorMode +{ + ColorModeARGB32 = 0, + ColorModeARGB64 = 1 +}; + +//---------------------------------------------------------------------------- +// Color Channel flags +//---------------------------------------------------------------------------- + +enum ColorChannelFlags +{ + ColorChannelFlagsC = 0, + ColorChannelFlagsM, + ColorChannelFlagsY, + ColorChannelFlagsK, + ColorChannelFlagsLast +}; + +//---------------------------------------------------------------------------- +// Color +//---------------------------------------------------------------------------- + +class Color +{ +public: + + Color() + { + Argb = (ARGB)Color::Black; + } + + // Construct an opaque Color object with + // the specified Red, Green, Blue values. + // + // Color values are not premultiplied. + + Color(IN BYTE r, + IN BYTE g, + IN BYTE b) + { + Argb = MakeARGB(255, r, g, b); + } + + Color(IN BYTE a, + IN BYTE r, + IN BYTE g, + IN BYTE b) + { + Argb = MakeARGB(a, r, g, b); + } + + Color(IN ARGB argb) + { + Argb = argb; + } + + BYTE GetAlpha() const + { + return (BYTE) (Argb >> AlphaShift); + } + + BYTE GetA() const + { + return GetAlpha(); + } + + BYTE GetRed() const + { + return (BYTE) (Argb >> RedShift); + } + + BYTE GetR() const + { + return GetRed(); + } + + BYTE GetGreen() const + { + return (BYTE) (Argb >> GreenShift); + } + + BYTE GetG() const + { + return GetGreen(); + } + + BYTE GetBlue() const + { + return (BYTE) (Argb >> BlueShift); + } + + BYTE GetB() const + { + return GetBlue(); + } + + ARGB GetValue() const + { + return Argb; + } + + VOID SetValue(IN ARGB argb) + { + Argb = argb; + } + + VOID SetFromCOLORREF(IN COLORREF rgb) + { + Argb = MakeARGB(255, GetRValue(rgb), GetGValue(rgb), GetBValue(rgb)); + } + + COLORREF ToCOLORREF() const + { + return RGB(GetRed(), GetGreen(), GetBlue()); + } + +public: + + // Common color constants + + enum + { + AliceBlue = 0xFFF0F8FF, + AntiqueWhite = 0xFFFAEBD7, + Aqua = 0xFF00FFFF, + Aquamarine = 0xFF7FFFD4, + Azure = 0xFFF0FFFF, + Beige = 0xFFF5F5DC, + Bisque = 0xFFFFE4C4, + Black = 0xFF000000, + BlanchedAlmond = 0xFFFFEBCD, + Blue = 0xFF0000FF, + BlueViolet = 0xFF8A2BE2, + Brown = 0xFFA52A2A, + BurlyWood = 0xFFDEB887, + CadetBlue = 0xFF5F9EA0, + Chartreuse = 0xFF7FFF00, + Chocolate = 0xFFD2691E, + Coral = 0xFFFF7F50, + CornflowerBlue = 0xFF6495ED, + Cornsilk = 0xFFFFF8DC, + Crimson = 0xFFDC143C, + Cyan = 0xFF00FFFF, + DarkBlue = 0xFF00008B, + DarkCyan = 0xFF008B8B, + DarkGoldenrod = 0xFFB8860B, + DarkGray = 0xFFA9A9A9, + DarkGreen = 0xFF006400, + DarkKhaki = 0xFFBDB76B, + DarkMagenta = 0xFF8B008B, + DarkOliveGreen = 0xFF556B2F, + DarkOrange = 0xFFFF8C00, + DarkOrchid = 0xFF9932CC, + DarkRed = 0xFF8B0000, + DarkSalmon = 0xFFE9967A, + DarkSeaGreen = 0xFF8FBC8B, + DarkSlateBlue = 0xFF483D8B, + DarkSlateGray = 0xFF2F4F4F, + DarkTurquoise = 0xFF00CED1, + DarkViolet = 0xFF9400D3, + DeepPink = 0xFFFF1493, + DeepSkyBlue = 0xFF00BFFF, + DimGray = 0xFF696969, + DodgerBlue = 0xFF1E90FF, + Firebrick = 0xFFB22222, + FloralWhite = 0xFFFFFAF0, + ForestGreen = 0xFF228B22, + Fuchsia = 0xFFFF00FF, + Gainsboro = 0xFFDCDCDC, + GhostWhite = 0xFFF8F8FF, + Gold = 0xFFFFD700, + Goldenrod = 0xFFDAA520, + Gray = 0xFF808080, + Green = 0xFF008000, + GreenYellow = 0xFFADFF2F, + Honeydew = 0xFFF0FFF0, + HotPink = 0xFFFF69B4, + IndianRed = 0xFFCD5C5C, + Indigo = 0xFF4B0082, + Ivory = 0xFFFFFFF0, + Khaki = 0xFFF0E68C, + Lavender = 0xFFE6E6FA, + LavenderBlush = 0xFFFFF0F5, + LawnGreen = 0xFF7CFC00, + LemonChiffon = 0xFFFFFACD, + LightBlue = 0xFFADD8E6, + LightCoral = 0xFFF08080, + LightCyan = 0xFFE0FFFF, + LightGoldenrodYellow = 0xFFFAFAD2, + LightGray = 0xFFD3D3D3, + LightGreen = 0xFF90EE90, + LightPink = 0xFFFFB6C1, + LightSalmon = 0xFFFFA07A, + LightSeaGreen = 0xFF20B2AA, + LightSkyBlue = 0xFF87CEFA, + LightSlateGray = 0xFF778899, + LightSteelBlue = 0xFFB0C4DE, + LightYellow = 0xFFFFFFE0, + Lime = 0xFF00FF00, + LimeGreen = 0xFF32CD32, + Linen = 0xFFFAF0E6, + Magenta = 0xFFFF00FF, + Maroon = 0xFF800000, + MediumAquamarine = 0xFF66CDAA, + MediumBlue = 0xFF0000CD, + MediumOrchid = 0xFFBA55D3, + MediumPurple = 0xFF9370DB, + MediumSeaGreen = 0xFF3CB371, + MediumSlateBlue = 0xFF7B68EE, + MediumSpringGreen = 0xFF00FA9A, + MediumTurquoise = 0xFF48D1CC, + MediumVioletRed = 0xFFC71585, + MidnightBlue = 0xFF191970, + MintCream = 0xFFF5FFFA, + MistyRose = 0xFFFFE4E1, + Moccasin = 0xFFFFE4B5, + NavajoWhite = 0xFFFFDEAD, + Navy = 0xFF000080, + OldLace = 0xFFFDF5E6, + Olive = 0xFF808000, + OliveDrab = 0xFF6B8E23, + Orange = 0xFFFFA500, + OrangeRed = 0xFFFF4500, + Orchid = 0xFFDA70D6, + PaleGoldenrod = 0xFFEEE8AA, + PaleGreen = 0xFF98FB98, + PaleTurquoise = 0xFFAFEEEE, + PaleVioletRed = 0xFFDB7093, + PapayaWhip = 0xFFFFEFD5, + PeachPuff = 0xFFFFDAB9, + Peru = 0xFFCD853F, + Pink = 0xFFFFC0CB, + Plum = 0xFFDDA0DD, + PowderBlue = 0xFFB0E0E6, + Purple = 0xFF800080, + Red = 0xFFFF0000, + RosyBrown = 0xFFBC8F8F, + RoyalBlue = 0xFF4169E1, + SaddleBrown = 0xFF8B4513, + Salmon = 0xFFFA8072, + SandyBrown = 0xFFF4A460, + SeaGreen = 0xFF2E8B57, + SeaShell = 0xFFFFF5EE, + Sienna = 0xFFA0522D, + Silver = 0xFFC0C0C0, + SkyBlue = 0xFF87CEEB, + SlateBlue = 0xFF6A5ACD, + SlateGray = 0xFF708090, + Snow = 0xFFFFFAFA, + SpringGreen = 0xFF00FF7F, + SteelBlue = 0xFF4682B4, + Tan = 0xFFD2B48C, + Teal = 0xFF008080, + Thistle = 0xFFD8BFD8, + Tomato = 0xFFFF6347, + Transparent = 0x00FFFFFF, + Turquoise = 0xFF40E0D0, + Violet = 0xFFEE82EE, + Wheat = 0xFFF5DEB3, + White = 0xFFFFFFFF, + WhiteSmoke = 0xFFF5F5F5, + Yellow = 0xFFFFFF00, + YellowGreen = 0xFF9ACD32 + }; + + // Shift count and bit mask for A, R, G, B components + + enum + { + AlphaShift = 24, + RedShift = 16, + GreenShift = 8, + BlueShift = 0 + }; + + enum + { + AlphaMask = 0xff000000, + RedMask = 0x00ff0000, + GreenMask = 0x0000ff00, + BlueMask = 0x000000ff + }; + + // Assemble A, R, G, B values into a 32-bit integer + + static ARGB MakeARGB(IN BYTE a, + IN BYTE r, + IN BYTE g, + IN BYTE b) + { + return (((ARGB) (b) << BlueShift) | + ((ARGB) (g) << GreenShift) | + ((ARGB) (r) << RedShift) | + ((ARGB) (a) << AlphaShift)); + } + +protected: + + ARGB Argb; +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluscolormatrix.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluscolormatrix.h new file mode 100644 index 0000000000000000000000000000000000000000..c86119559e700240d0f6ec4b37d8f13155e6a3d1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluscolormatrix.h @@ -0,0 +1,96 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusColorMatrix.h +* +* Abstract: +* +* GDI+ Color Matrix object, used with Graphics.DrawImage +* +\**************************************************************************/ + +#ifndef _GDIPLUSCOLORMATRIX_H +#define _GDIPLUSCOLORMATRIX_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#if (GDIPVER >= 0x0110) +//---------------------------------------------------------------------------- +// Color channel look up table (LUT) +//---------------------------------------------------------------------------- + +typedef BYTE ColorChannelLUT[256]; + +//---------------------------------------------------------------------------- +// Per-channel Histogram for 8bpp images. +//---------------------------------------------------------------------------- + +enum HistogramFormat +{ + HistogramFormatARGB, + HistogramFormatPARGB, + HistogramFormatRGB, + HistogramFormatGray, + HistogramFormatB, + HistogramFormatG, + HistogramFormatR, + HistogramFormatA +}; +#endif //(GDIPVER >= 0x0110) + +//---------------------------------------------------------------------------- +// Color matrix +//---------------------------------------------------------------------------- + +struct ColorMatrix +{ + REAL m[5][5]; +}; + +//---------------------------------------------------------------------------- +// Color Matrix flags +//---------------------------------------------------------------------------- + +enum ColorMatrixFlags +{ + ColorMatrixFlagsDefault = 0, + ColorMatrixFlagsSkipGrays = 1, + ColorMatrixFlagsAltGray = 2 +}; + +//---------------------------------------------------------------------------- +// Color Adjust Type +//---------------------------------------------------------------------------- + +enum ColorAdjustType +{ + ColorAdjustTypeDefault, + ColorAdjustTypeBitmap, + ColorAdjustTypeBrush, + ColorAdjustTypePen, + ColorAdjustTypeText, + ColorAdjustTypeCount, + ColorAdjustTypeAny // Reserved +}; + +//---------------------------------------------------------------------------- +// Color Map +//---------------------------------------------------------------------------- + +struct ColorMap +{ + Color oldColor; + Color newColor; +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluseffects.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluseffects.h new file mode 100644 index 0000000000000000000000000000000000000000..e576a1a6104bc7b08dda5120b7f3ccb8b176ba2b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluseffects.h @@ -0,0 +1,529 @@ +/************************************************************************** +* +* Copyright (c) 2001 Microsoft Corporation +* +* Module Name: +* +* Gdiplus effect objects. +* +* Created: +* +* 05/29/2001 asecchia +* Created it. +* +**************************************************************************/ + +#ifndef _GDIPLUSEFFECTS_HPP +#define _GDIPLUSEFFECTS_HPP + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if (GDIPVER >= 0x0110) + +//----------------------------------------------------------------------------- +// GDI+ effect GUIDs +//----------------------------------------------------------------------------- + +// {633C80A4-1843-482b-9EF2-BE2834C5FDD4} +static const GUID BlurEffectGuid = +{ 0x633c80a4, 0x1843, 0x482b, { 0x9e, 0xf2, 0xbe, 0x28, 0x34, 0xc5, 0xfd, 0xd4 } }; + +// {63CBF3EE-C526-402c-8F71-62C540BF5142} +static const GUID SharpenEffectGuid = +{ 0x63cbf3ee, 0xc526, 0x402c, { 0x8f, 0x71, 0x62, 0xc5, 0x40, 0xbf, 0x51, 0x42 } }; + +// {718F2615-7933-40e3-A511-5F68FE14DD74} +static const GUID ColorMatrixEffectGuid = +{ 0x718f2615, 0x7933, 0x40e3, { 0xa5, 0x11, 0x5f, 0x68, 0xfe, 0x14, 0xdd, 0x74 } }; + +// {A7CE72A9-0F7F-40d7-B3CC-D0C02D5C3212} +static const GUID ColorLUTEffectGuid = +{ 0xa7ce72a9, 0xf7f, 0x40d7, { 0xb3, 0xcc, 0xd0, 0xc0, 0x2d, 0x5c, 0x32, 0x12 } }; + +// {D3A1DBE1-8EC4-4c17-9F4C-EA97AD1C343D} +static const GUID BrightnessContrastEffectGuid = +{ 0xd3a1dbe1, 0x8ec4, 0x4c17, { 0x9f, 0x4c, 0xea, 0x97, 0xad, 0x1c, 0x34, 0x3d } }; + +// {8B2DD6C3-EB07-4d87-A5F0-7108E26A9C5F} +static const GUID HueSaturationLightnessEffectGuid = +{ 0x8b2dd6c3, 0xeb07, 0x4d87, { 0xa5, 0xf0, 0x71, 0x8, 0xe2, 0x6a, 0x9c, 0x5f } }; + +// {99C354EC-2A31-4f3a-8C34-17A803B33A25} +static const GUID LevelsEffectGuid = +{ 0x99c354ec, 0x2a31, 0x4f3a, { 0x8c, 0x34, 0x17, 0xa8, 0x3, 0xb3, 0x3a, 0x25 } }; + +// {1077AF00-2848-4441-9489-44AD4C2D7A2C} +static const GUID TintEffectGuid = +{ 0x1077af00, 0x2848, 0x4441, { 0x94, 0x89, 0x44, 0xad, 0x4c, 0x2d, 0x7a, 0x2c } }; + +// {537E597D-251E-48da-9664-29CA496B70F8} +static const GUID ColorBalanceEffectGuid = +{ 0x537e597d, 0x251e, 0x48da, { 0x96, 0x64, 0x29, 0xca, 0x49, 0x6b, 0x70, 0xf8 } }; + +// {74D29D05-69A4-4266-9549-3CC52836B632} +static const GUID RedEyeCorrectionEffectGuid = +{ 0x74d29d05, 0x69a4, 0x4266, { 0x95, 0x49, 0x3c, 0xc5, 0x28, 0x36, 0xb6, 0x32 } }; + +// {DD6A0022-58E4-4a67-9D9B-D48EB881A53D} +static const GUID ColorCurveEffectGuid = +{ 0xdd6a0022, 0x58e4, 0x4a67, { 0x9d, 0x9b, 0xd4, 0x8e, 0xb8, 0x81, 0xa5, 0x3d } + }; + +//----------------------------------------------------------------------------- + +struct SharpenParams +{ + float radius; + float amount; +}; + +struct BlurParams +{ + float radius; + BOOL expandEdge; +}; + +struct BrightnessContrastParams +{ + INT brightnessLevel; + INT contrastLevel; +}; + +struct RedEyeCorrectionParams +{ + UINT numberOfAreas; + RECT *areas; +}; + +struct HueSaturationLightnessParams +{ + INT hueLevel; + INT saturationLevel; + INT lightnessLevel; +}; + +struct TintParams +{ + INT hue; + INT amount; +}; + +struct LevelsParams +{ + INT highlight; + INT midtone; + INT shadow; +}; + +struct ColorBalanceParams +{ + INT cyanRed; + INT magentaGreen; + INT yellowBlue; +}; + +struct ColorLUTParams +{ + // look up tables for each color channel. + + ColorChannelLUT lutB; + ColorChannelLUT lutG; + ColorChannelLUT lutR; + ColorChannelLUT lutA; +}; + +enum CurveAdjustments +{ + AdjustExposure, + AdjustDensity, + AdjustContrast, + AdjustHighlight, + AdjustShadow, + AdjustMidtone, + AdjustWhiteSaturation, + AdjustBlackSaturation +}; + +enum CurveChannel +{ + CurveChannelAll, + CurveChannelRed, + CurveChannelGreen, + CurveChannelBlue +}; + +struct ColorCurveParams +{ + CurveAdjustments adjustment; + CurveChannel channel; + INT adjustValue; +}; + +class CGpEffect; + +extern "C" { +Status __stdcall +GdipCreateEffect(const GUID guid, CGpEffect **effect); + +Status __stdcall +GdipDeleteEffect(CGpEffect *effect); + +Status __stdcall +GdipGetEffectParameterSize(CGpEffect *effect, UINT *size); + +Status __stdcall +GdipSetEffectParameters(CGpEffect *effect, const VOID *params, const UINT size); + +Status __stdcall +GdipGetEffectParameters(CGpEffect *effect, UINT *size, VOID *params); +} + +#ifndef _GDIPLUSEFFECTS_EXCLUDEOBJECTS + +class Effect +{ + friend class Bitmap; + friend class Graphics; + +public: + + Effect() + { + auxDataSize = 0; + auxData = NULL; + nativeEffect = NULL; + useAuxData = FALSE; + } + + virtual ~Effect() + { + // pvData is allocated by ApplyEffect. Return the pointer so that + // it can be freed by the appropriate memory manager. + + DllExports::GdipFree(auxData); + + // Release the native Effect. + + GdipDeleteEffect(nativeEffect); + } + + INT GetAuxDataSize() const + { + return auxDataSize; + } + + VOID *GetAuxData() const + { + return auxData; + } + + VOID UseAuxData(const BOOL useAuxDataFlag) + { + useAuxData = useAuxDataFlag; + } + + Status GetParameterSize(UINT *size) + { + return GdipGetEffectParameterSize(nativeEffect, size); + } + +protected: + + Status SetParameters(const void *params, const UINT size) + { + return GdipSetEffectParameters(nativeEffect, params, size); + } + + Status GetParameters(UINT *size, void *params) + { + return GdipGetEffectParameters(nativeEffect, size, params); + } + + // protected data members. + + CGpEffect *nativeEffect; + INT auxDataSize; + VOID *auxData; + BOOL useAuxData; +}; + +// Blur + +class Blur : public Effect +{ + public: + + // constructors cannot return an error code. + + Blur() + { + GdipCreateEffect(BlurEffectGuid, &nativeEffect); + } + + Status SetParameters(const BlurParams *parameters) + { + UINT size = sizeof(BlurParams); + return Effect::SetParameters(parameters, size); + } + + Status GetParameters(UINT *size, BlurParams *parameters) + { + return Effect::GetParameters(size, (VOID*)parameters); + } +}; + +// Sharpen + +class Sharpen : public Effect +{ +public: + + Sharpen() + { + GdipCreateEffect(SharpenEffectGuid, &nativeEffect); + } + + Status SetParameters(const SharpenParams *parameters) + { + UINT size = sizeof(SharpenParams); + return Effect::SetParameters(parameters, size); + } + + Status GetParameters(UINT *size, SharpenParams *parameters) + { + return Effect::GetParameters(size, (VOID*)parameters); + } +}; + +// RedEye Correction + +class RedEyeCorrection : public Effect +{ +public: + + // constructors cannot return an error code. + + RedEyeCorrection() + { + GdipCreateEffect(RedEyeCorrectionEffectGuid, &nativeEffect); + } + + Status SetParameters(const RedEyeCorrectionParams *parameters) + { + Status status = InvalidParameter; + + if (parameters) + { + RedEyeCorrectionParams *inputParam = + (RedEyeCorrectionParams*)parameters; + + UINT size = sizeof(RedEyeCorrectionParams) + + inputParam->numberOfAreas * sizeof(RECT); + + status = Effect::SetParameters(parameters, size); + } + + return status; + } + + Status GetParameters(UINT *size, RedEyeCorrectionParams *parameters) + { + return Effect::GetParameters(size,(VOID*)parameters); + } +}; + +// Brightness/Contrast +class BrightnessContrast : public Effect +{ +public: + BrightnessContrast() + { + GdipCreateEffect(BrightnessContrastEffectGuid, &nativeEffect); + } + + Status SetParameters(const BrightnessContrastParams *parameters) + { + UINT size = sizeof(BrightnessContrastParams); + return Effect::SetParameters((VOID*)parameters, size); + } + + Status GetParameters(UINT *size, BrightnessContrastParams *parameters) + { + return Effect::GetParameters(size, (VOID*)parameters); + } +}; + +// Hue/Saturation/Lightness + +class HueSaturationLightness : public Effect +{ +public: + HueSaturationLightness() + { + GdipCreateEffect(HueSaturationLightnessEffectGuid, &nativeEffect); + } + + Status SetParameters(const HueSaturationLightnessParams *parameters) + { + UINT size = sizeof(HueSaturationLightnessParams); + return Effect::SetParameters((VOID*)parameters, size); + } + + Status GetParameters(UINT *size, HueSaturationLightnessParams *parameters) + { + return Effect::GetParameters(size, (VOID*)parameters); + } +}; + +// Highlight/Midtone/Shadow curves + +class Levels : public Effect +{ +public: + Levels() + { + GdipCreateEffect(LevelsEffectGuid, &nativeEffect); + } + + Status SetParameters(const LevelsParams *parameters) + { + UINT size = sizeof(LevelsParams); + return Effect::SetParameters((VOID*)parameters, size); + } + + Status GetParameters(UINT *size, LevelsParams *parameters) + { + return Effect::GetParameters(size, (VOID*)parameters); + } +}; + +// Tint + +class Tint : public Effect +{ +public: + Tint() + { + GdipCreateEffect(TintEffectGuid, &nativeEffect); + } + + Status SetParameters(const TintParams *parameters) + { + UINT size = sizeof(TintParams); + return Effect::SetParameters((VOID*)parameters, size); + } + + Status GetParameters(UINT *size, TintParams *parameters) + { + return Effect::GetParameters(size, (VOID*)parameters); + } +}; + +// ColorBalance + +class ColorBalance : public Effect +{ +public: + ColorBalance() + { + GdipCreateEffect(ColorBalanceEffectGuid, &nativeEffect); + } + + Status SetParameters(const ColorBalanceParams *parameters) + { + UINT size = sizeof(ColorBalanceParams); + return Effect::SetParameters((VOID*)parameters, size); + } + + Status GetParameters(UINT *size, ColorBalanceParams *parameters) + { + return Effect::GetParameters(size, (VOID*)parameters); + } +}; + +// ColorMatrix + +class ColorMatrixEffect : public Effect +{ +public: + + // constructors cannot return an error code. + + ColorMatrixEffect() + { + GdipCreateEffect(ColorMatrixEffectGuid, &nativeEffect); + } + + Status SetParameters(const ColorMatrix *matrix) + { + UINT size = sizeof(ColorMatrix); + return Effect::SetParameters(matrix, size); + } + + Status GetParameters(UINT *size, ColorMatrix *matrix) + { + return Effect::GetParameters(size, (VOID*)matrix); + } +}; + + +// ColorLUT + +class ColorLUT : public Effect +{ + public: + + // constructors cannot return an error code. + + ColorLUT() + { + GdipCreateEffect(ColorLUTEffectGuid, &nativeEffect); + } + + Status SetParameters(const ColorLUTParams *lut) + { + UINT size = sizeof(ColorLUTParams); + return Effect::SetParameters(lut, size); + } + + Status GetParameters(UINT *size, ColorLUTParams *lut) + { + return Effect::GetParameters(size, (VOID*)lut); + } +}; + +// Color Curve + +class ColorCurve : public Effect +{ +public: + ColorCurve() + { + GdipCreateEffect(ColorCurveEffectGuid, &nativeEffect); + } + + Status SetParameters(const ColorCurveParams *parameters) + { + UINT size = sizeof(ColorCurveParams); + return Effect::SetParameters((VOID*)parameters, size); + } + + Status GetParameters(UINT *size, ColorCurveParams *parameters) + { + return Effect::GetParameters(size, (VOID*)parameters); + } +}; + +#endif // _GDIPLUSEFFECTS_EXCLUDEEOBJECTS + +#endif //(GDIPVER >= 0x0110) + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusenums.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusenums.h new file mode 100644 index 0000000000000000000000000000000000000000..b32ee5c56e1c40d9769741fce244ace19f19b717 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusenums.h @@ -0,0 +1,1124 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusEnums.h +* +* Abstract: +* +* GDI+ Enumeration Types +* +\**************************************************************************/ + +#ifndef _GDIPLUSENUMS_H +#define _GDIPLUSENUMS_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +//-------------------------------------------------------------------------- +// Default bezier flattening tolerance in device pixels. +//-------------------------------------------------------------------------- + +const float FlatnessDefault = 1.0f/4.0f; + +//-------------------------------------------------------------------------- +// Graphics and Container State cookies +//-------------------------------------------------------------------------- + +typedef UINT GraphicsState; +typedef UINT GraphicsContainer; + +//-------------------------------------------------------------------------- +// Fill mode constants +//-------------------------------------------------------------------------- + +enum FillMode +{ + FillModeAlternate, // 0 + FillModeWinding // 1 +}; + +//-------------------------------------------------------------------------- +// Quality mode constants +//-------------------------------------------------------------------------- + +enum QualityMode +{ + QualityModeInvalid = -1, + QualityModeDefault = 0, + QualityModeLow = 1, // Best performance + QualityModeHigh = 2 // Best rendering quality +}; + +//-------------------------------------------------------------------------- +// Alpha Compositing mode constants +//-------------------------------------------------------------------------- + +enum CompositingMode +{ + CompositingModeSourceOver, // 0 + CompositingModeSourceCopy // 1 +}; + +//-------------------------------------------------------------------------- +// Alpha Compositing quality constants +//-------------------------------------------------------------------------- + +enum CompositingQuality +{ + CompositingQualityInvalid = QualityModeInvalid, + CompositingQualityDefault = QualityModeDefault, + CompositingQualityHighSpeed = QualityModeLow, + CompositingQualityHighQuality = QualityModeHigh, + CompositingQualityGammaCorrected, + CompositingQualityAssumeLinear +}; + +//-------------------------------------------------------------------------- +// Unit constants +//-------------------------------------------------------------------------- + +enum Unit +{ + UnitWorld, // 0 -- World coordinate (non-physical unit) + UnitDisplay, // 1 -- Variable -- for PageTransform only + UnitPixel, // 2 -- Each unit is one device pixel. + UnitPoint, // 3 -- Each unit is a printer's point, or 1/72 inch. + UnitInch, // 4 -- Each unit is 1 inch. + UnitDocument, // 5 -- Each unit is 1/300 inch. + UnitMillimeter // 6 -- Each unit is 1 millimeter. +}; + +//-------------------------------------------------------------------------- +// MetafileFrameUnit +// +// The frameRect for creating a metafile can be specified in any of these +// units. There is an extra frame unit value (MetafileFrameUnitGdi) so +// that units can be supplied in the same units that GDI expects for +// frame rects -- these units are in .01 (1/100ths) millimeter units +// as defined by GDI. +//-------------------------------------------------------------------------- + +enum MetafileFrameUnit +{ + MetafileFrameUnitPixel = UnitPixel, + MetafileFrameUnitPoint = UnitPoint, + MetafileFrameUnitInch = UnitInch, + MetafileFrameUnitDocument = UnitDocument, + MetafileFrameUnitMillimeter = UnitMillimeter, + MetafileFrameUnitGdi // GDI compatible .01 MM units +}; + +//-------------------------------------------------------------------------- +// Coordinate space identifiers +//-------------------------------------------------------------------------- + +enum CoordinateSpace +{ + CoordinateSpaceWorld, // 0 + CoordinateSpacePage, // 1 + CoordinateSpaceDevice // 2 +}; + +//-------------------------------------------------------------------------- +// Various wrap modes for brushes +//-------------------------------------------------------------------------- + +enum WrapMode +{ + WrapModeTile, // 0 + WrapModeTileFlipX, // 1 + WrapModeTileFlipY, // 2 + WrapModeTileFlipXY, // 3 + WrapModeClamp // 4 +}; + +//-------------------------------------------------------------------------- +// Various hatch styles +//-------------------------------------------------------------------------- + +enum HatchStyle +{ + HatchStyleHorizontal, // 0 + HatchStyleVertical, // 1 + HatchStyleForwardDiagonal, // 2 + HatchStyleBackwardDiagonal, // 3 + HatchStyleCross, // 4 + HatchStyleDiagonalCross, // 5 + HatchStyle05Percent, // 6 + HatchStyle10Percent, // 7 + HatchStyle20Percent, // 8 + HatchStyle25Percent, // 9 + HatchStyle30Percent, // 10 + HatchStyle40Percent, // 11 + HatchStyle50Percent, // 12 + HatchStyle60Percent, // 13 + HatchStyle70Percent, // 14 + HatchStyle75Percent, // 15 + HatchStyle80Percent, // 16 + HatchStyle90Percent, // 17 + HatchStyleLightDownwardDiagonal, // 18 + HatchStyleLightUpwardDiagonal, // 19 + HatchStyleDarkDownwardDiagonal, // 20 + HatchStyleDarkUpwardDiagonal, // 21 + HatchStyleWideDownwardDiagonal, // 22 + HatchStyleWideUpwardDiagonal, // 23 + HatchStyleLightVertical, // 24 + HatchStyleLightHorizontal, // 25 + HatchStyleNarrowVertical, // 26 + HatchStyleNarrowHorizontal, // 27 + HatchStyleDarkVertical, // 28 + HatchStyleDarkHorizontal, // 29 + HatchStyleDashedDownwardDiagonal, // 30 + HatchStyleDashedUpwardDiagonal, // 31 + HatchStyleDashedHorizontal, // 32 + HatchStyleDashedVertical, // 33 + HatchStyleSmallConfetti, // 34 + HatchStyleLargeConfetti, // 35 + HatchStyleZigZag, // 36 + HatchStyleWave, // 37 + HatchStyleDiagonalBrick, // 38 + HatchStyleHorizontalBrick, // 39 + HatchStyleWeave, // 40 + HatchStylePlaid, // 41 + HatchStyleDivot, // 42 + HatchStyleDottedGrid, // 43 + HatchStyleDottedDiamond, // 44 + HatchStyleShingle, // 45 + HatchStyleTrellis, // 46 + HatchStyleSphere, // 47 + HatchStyleSmallGrid, // 48 + HatchStyleSmallCheckerBoard, // 49 + HatchStyleLargeCheckerBoard, // 50 + HatchStyleOutlinedDiamond, // 51 + HatchStyleSolidDiamond, // 52 + + HatchStyleTotal, + HatchStyleLargeGrid = HatchStyleCross, // 4 + + HatchStyleMin = HatchStyleHorizontal, + HatchStyleMax = HatchStyleTotal - 1, +}; + +//-------------------------------------------------------------------------- +// Dash style constants +//-------------------------------------------------------------------------- + +enum DashStyle +{ + DashStyleSolid, // 0 + DashStyleDash, // 1 + DashStyleDot, // 2 + DashStyleDashDot, // 3 + DashStyleDashDotDot, // 4 + DashStyleCustom // 5 +}; + +//-------------------------------------------------------------------------- +// Dash cap constants +//-------------------------------------------------------------------------- + +enum DashCap +{ + DashCapFlat = 0, + DashCapRound = 2, + DashCapTriangle = 3 +}; + +//-------------------------------------------------------------------------- +// Line cap constants (only the lowest 8 bits are used). +//-------------------------------------------------------------------------- + +enum LineCap +{ + LineCapFlat = 0, + LineCapSquare = 1, + LineCapRound = 2, + LineCapTriangle = 3, + + LineCapNoAnchor = 0x10, // corresponds to flat cap + LineCapSquareAnchor = 0x11, // corresponds to square cap + LineCapRoundAnchor = 0x12, // corresponds to round cap + LineCapDiamondAnchor = 0x13, // corresponds to triangle cap + LineCapArrowAnchor = 0x14, // no correspondence + + LineCapCustom = 0xff, // custom cap + + LineCapAnchorMask = 0xf0 // mask to check for anchor or not. +}; + +//-------------------------------------------------------------------------- +// Custom Line cap type constants +//-------------------------------------------------------------------------- + +enum CustomLineCapType +{ + CustomLineCapTypeDefault = 0, + CustomLineCapTypeAdjustableArrow = 1 +}; + +//-------------------------------------------------------------------------- +// Line join constants +//-------------------------------------------------------------------------- + +enum LineJoin +{ + LineJoinMiter = 0, + LineJoinBevel = 1, + LineJoinRound = 2, + LineJoinMiterClipped = 3 +}; + +//-------------------------------------------------------------------------- +// Path point types (only the lowest 8 bits are used.) +// The lowest 3 bits are interpreted as point type +// The higher 5 bits are reserved for flags. +//-------------------------------------------------------------------------- + +enum PathPointType +{ + PathPointTypeStart = 0, // move + PathPointTypeLine = 1, // line + PathPointTypeBezier = 3, // default Bezier (= cubic Bezier) + PathPointTypePathTypeMask = 0x07, // type mask (lowest 3 bits). + PathPointTypeDashMode = 0x10, // currently in dash mode. + PathPointTypePathMarker = 0x20, // a marker for the path. + PathPointTypeCloseSubpath = 0x80, // closed flag + + // Path types used for advanced path. + + PathPointTypeBezier3 = 3, // cubic Bezier +}; + + +//-------------------------------------------------------------------------- +// WarpMode constants +//-------------------------------------------------------------------------- + +enum WarpMode +{ + WarpModePerspective, // 0 + WarpModeBilinear // 1 +}; + +//-------------------------------------------------------------------------- +// LineGradient Mode +//-------------------------------------------------------------------------- + +enum LinearGradientMode +{ + LinearGradientModeHorizontal, // 0 + LinearGradientModeVertical, // 1 + LinearGradientModeForwardDiagonal, // 2 + LinearGradientModeBackwardDiagonal // 3 +}; + +//-------------------------------------------------------------------------- +// Region Comine Modes +//-------------------------------------------------------------------------- + +enum CombineMode +{ + CombineModeReplace, // 0 + CombineModeIntersect, // 1 + CombineModeUnion, // 2 + CombineModeXor, // 3 + CombineModeExclude, // 4 + CombineModeComplement // 5 (Exclude From) +}; + +//-------------------------------------------------------------------------- + // Image types +//-------------------------------------------------------------------------- + +enum ImageType +{ + ImageTypeUnknown, // 0 + ImageTypeBitmap, // 1 + ImageTypeMetafile // 2 +}; + +//-------------------------------------------------------------------------- +// Interpolation modes +//-------------------------------------------------------------------------- + +enum InterpolationMode +{ + InterpolationModeInvalid = QualityModeInvalid, + InterpolationModeDefault = QualityModeDefault, + InterpolationModeLowQuality = QualityModeLow, + InterpolationModeHighQuality = QualityModeHigh, + InterpolationModeBilinear, + InterpolationModeBicubic, + InterpolationModeNearestNeighbor, + InterpolationModeHighQualityBilinear, + InterpolationModeHighQualityBicubic +}; + +//-------------------------------------------------------------------------- +// Pen types +//-------------------------------------------------------------------------- + +enum PenAlignment +{ + PenAlignmentCenter = 0, + PenAlignmentInset = 1 +}; + +//-------------------------------------------------------------------------- +// Brush types +//-------------------------------------------------------------------------- + +enum BrushType +{ + BrushTypeSolidColor = 0, + BrushTypeHatchFill = 1, + BrushTypeTextureFill = 2, + BrushTypePathGradient = 3, + BrushTypeLinearGradient = 4 +}; + +//-------------------------------------------------------------------------- +// Pen's Fill types +//-------------------------------------------------------------------------- + +enum PenType +{ + PenTypeSolidColor = BrushTypeSolidColor, + PenTypeHatchFill = BrushTypeHatchFill, + PenTypeTextureFill = BrushTypeTextureFill, + PenTypePathGradient = BrushTypePathGradient, + PenTypeLinearGradient = BrushTypeLinearGradient, + PenTypeUnknown = -1 +}; + +//-------------------------------------------------------------------------- +// Matrix Order +//-------------------------------------------------------------------------- + +enum MatrixOrder +{ + MatrixOrderPrepend = 0, + MatrixOrderAppend = 1 +}; + +//-------------------------------------------------------------------------- +// Generic font families +//-------------------------------------------------------------------------- + +enum GenericFontFamily +{ + GenericFontFamilySerif, + GenericFontFamilySansSerif, + GenericFontFamilyMonospace + +}; + +//-------------------------------------------------------------------------- +// FontStyle: face types and common styles +//-------------------------------------------------------------------------- + +enum FontStyle +{ + FontStyleRegular = 0, + FontStyleBold = 1, + FontStyleItalic = 2, + FontStyleBoldItalic = 3, + FontStyleUnderline = 4, + FontStyleStrikeout = 8 +}; + +//--------------------------------------------------------------------------- +// Smoothing Mode +//--------------------------------------------------------------------------- + +enum SmoothingMode +{ + SmoothingModeInvalid = QualityModeInvalid, + SmoothingModeDefault = QualityModeDefault, + SmoothingModeHighSpeed = QualityModeLow, + SmoothingModeHighQuality = QualityModeHigh, + SmoothingModeNone, + SmoothingModeAntiAlias, +#if (GDIPVER >= 0x0110) + SmoothingModeAntiAlias8x4 = SmoothingModeAntiAlias, + SmoothingModeAntiAlias8x8 +#endif //(GDIPVER >= 0x0110) +}; + +//--------------------------------------------------------------------------- +// Pixel Format Mode +//--------------------------------------------------------------------------- + +enum PixelOffsetMode +{ + PixelOffsetModeInvalid = QualityModeInvalid, + PixelOffsetModeDefault = QualityModeDefault, + PixelOffsetModeHighSpeed = QualityModeLow, + PixelOffsetModeHighQuality = QualityModeHigh, + PixelOffsetModeNone, // No pixel offset + PixelOffsetModeHalf // Offset by -0.5, -0.5 for fast anti-alias perf +}; + +//--------------------------------------------------------------------------- +// Text Rendering Hint +//--------------------------------------------------------------------------- + +enum TextRenderingHint +{ + TextRenderingHintSystemDefault = 0, // Glyph with system default rendering hint + TextRenderingHintSingleBitPerPixelGridFit, // Glyph bitmap with hinting + TextRenderingHintSingleBitPerPixel, // Glyph bitmap without hinting + TextRenderingHintAntiAliasGridFit, // Glyph anti-alias bitmap with hinting + TextRenderingHintAntiAlias, // Glyph anti-alias bitmap without hinting + TextRenderingHintClearTypeGridFit // Glyph CT bitmap with hinting +}; + +//--------------------------------------------------------------------------- +// Metafile Types +//--------------------------------------------------------------------------- + +enum MetafileType +{ + MetafileTypeInvalid, // Invalid metafile + MetafileTypeWmf, // Standard WMF + MetafileTypeWmfPlaceable, // Placeable WMF + MetafileTypeEmf, // EMF (not EMF+) + MetafileTypeEmfPlusOnly, // EMF+ without dual, down-level records + MetafileTypeEmfPlusDual // EMF+ with dual, down-level records +}; + +//--------------------------------------------------------------------------- +// Specifies the type of EMF to record +//--------------------------------------------------------------------------- + +enum EmfType +{ + EmfTypeEmfOnly = MetafileTypeEmf, // no EMF+, only EMF + EmfTypeEmfPlusOnly = MetafileTypeEmfPlusOnly, // no EMF, only EMF+ + EmfTypeEmfPlusDual = MetafileTypeEmfPlusDual // both EMF+ and EMF +}; + +//--------------------------------------------------------------------------- +// EMF+ Persistent object types +//--------------------------------------------------------------------------- + +enum ObjectType +{ + ObjectTypeInvalid, + ObjectTypeBrush, + ObjectTypePen, + ObjectTypePath, + ObjectTypeRegion, + ObjectTypeImage, + ObjectTypeFont, + ObjectTypeStringFormat, + ObjectTypeImageAttributes, + ObjectTypeCustomLineCap, +#if (GDIPVER >= 0x0110) + ObjectTypeGraphics, + + ObjectTypeMax = ObjectTypeGraphics, +#else + ObjectTypeMax = ObjectTypeCustomLineCap, +#endif //(GDIPVER >= 0x0110) + ObjectTypeMin = ObjectTypeBrush +}; + +inline BOOL +ObjectTypeIsValid( + ObjectType type + ) +{ + return ((type >= ObjectTypeMin) && (type <= ObjectTypeMax)); +} + +//--------------------------------------------------------------------------- +// EMF+ Records +//--------------------------------------------------------------------------- + +// We have to change the WMF record numbers so that they don't conflict with +// the EMF and EMF+ record numbers. + +#define GDIP_EMFPLUS_RECORD_BASE 0x00004000 +#define GDIP_WMF_RECORD_BASE 0x00010000 +#define GDIP_WMF_RECORD_TO_EMFPLUS(n) ((EmfPlusRecordType)((n) | GDIP_WMF_RECORD_BASE)) +#define GDIP_EMFPLUS_RECORD_TO_WMF(n) ((n) & (~GDIP_WMF_RECORD_BASE)) +#define GDIP_IS_WMF_RECORDTYPE(n) (((n) & GDIP_WMF_RECORD_BASE) != 0) + +enum EmfPlusRecordType +{ + // Since we have to enumerate GDI records right along with GDI+ records, + // We list all the GDI records here so that they can be part of the + // same enumeration type which is used in the enumeration callback. + + WmfRecordTypeSetBkColor = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETBKCOLOR), + WmfRecordTypeSetBkMode = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETBKMODE), + WmfRecordTypeSetMapMode = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETMAPMODE), + WmfRecordTypeSetROP2 = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETROP2), + WmfRecordTypeSetRelAbs = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETRELABS), + WmfRecordTypeSetPolyFillMode = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETPOLYFILLMODE), + WmfRecordTypeSetStretchBltMode = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETSTRETCHBLTMODE), + WmfRecordTypeSetTextCharExtra = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETTEXTCHAREXTRA), + WmfRecordTypeSetTextColor = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETTEXTCOLOR), + WmfRecordTypeSetTextJustification = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETTEXTJUSTIFICATION), + WmfRecordTypeSetWindowOrg = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETWINDOWORG), + WmfRecordTypeSetWindowExt = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETWINDOWEXT), + WmfRecordTypeSetViewportOrg = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETVIEWPORTORG), + WmfRecordTypeSetViewportExt = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETVIEWPORTEXT), + WmfRecordTypeOffsetWindowOrg = GDIP_WMF_RECORD_TO_EMFPLUS(META_OFFSETWINDOWORG), + WmfRecordTypeScaleWindowExt = GDIP_WMF_RECORD_TO_EMFPLUS(META_SCALEWINDOWEXT), + WmfRecordTypeOffsetViewportOrg = GDIP_WMF_RECORD_TO_EMFPLUS(META_OFFSETVIEWPORTORG), + WmfRecordTypeScaleViewportExt = GDIP_WMF_RECORD_TO_EMFPLUS(META_SCALEVIEWPORTEXT), + WmfRecordTypeLineTo = GDIP_WMF_RECORD_TO_EMFPLUS(META_LINETO), + WmfRecordTypeMoveTo = GDIP_WMF_RECORD_TO_EMFPLUS(META_MOVETO), + WmfRecordTypeExcludeClipRect = GDIP_WMF_RECORD_TO_EMFPLUS(META_EXCLUDECLIPRECT), + WmfRecordTypeIntersectClipRect = GDIP_WMF_RECORD_TO_EMFPLUS(META_INTERSECTCLIPRECT), + WmfRecordTypeArc = GDIP_WMF_RECORD_TO_EMFPLUS(META_ARC), + WmfRecordTypeEllipse = GDIP_WMF_RECORD_TO_EMFPLUS(META_ELLIPSE), + WmfRecordTypeFloodFill = GDIP_WMF_RECORD_TO_EMFPLUS(META_FLOODFILL), + WmfRecordTypePie = GDIP_WMF_RECORD_TO_EMFPLUS(META_PIE), + WmfRecordTypeRectangle = GDIP_WMF_RECORD_TO_EMFPLUS(META_RECTANGLE), + WmfRecordTypeRoundRect = GDIP_WMF_RECORD_TO_EMFPLUS(META_ROUNDRECT), + WmfRecordTypePatBlt = GDIP_WMF_RECORD_TO_EMFPLUS(META_PATBLT), + WmfRecordTypeSaveDC = GDIP_WMF_RECORD_TO_EMFPLUS(META_SAVEDC), + WmfRecordTypeSetPixel = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETPIXEL), + WmfRecordTypeOffsetClipRgn = GDIP_WMF_RECORD_TO_EMFPLUS(META_OFFSETCLIPRGN), + WmfRecordTypeTextOut = GDIP_WMF_RECORD_TO_EMFPLUS(META_TEXTOUT), + WmfRecordTypeBitBlt = GDIP_WMF_RECORD_TO_EMFPLUS(META_BITBLT), + WmfRecordTypeStretchBlt = GDIP_WMF_RECORD_TO_EMFPLUS(META_STRETCHBLT), + WmfRecordTypePolygon = GDIP_WMF_RECORD_TO_EMFPLUS(META_POLYGON), + WmfRecordTypePolyline = GDIP_WMF_RECORD_TO_EMFPLUS(META_POLYLINE), + WmfRecordTypeEscape = GDIP_WMF_RECORD_TO_EMFPLUS(META_ESCAPE), + WmfRecordTypeRestoreDC = GDIP_WMF_RECORD_TO_EMFPLUS(META_RESTOREDC), + WmfRecordTypeFillRegion = GDIP_WMF_RECORD_TO_EMFPLUS(META_FILLREGION), + WmfRecordTypeFrameRegion = GDIP_WMF_RECORD_TO_EMFPLUS(META_FRAMEREGION), + WmfRecordTypeInvertRegion = GDIP_WMF_RECORD_TO_EMFPLUS(META_INVERTREGION), + WmfRecordTypePaintRegion = GDIP_WMF_RECORD_TO_EMFPLUS(META_PAINTREGION), + WmfRecordTypeSelectClipRegion = GDIP_WMF_RECORD_TO_EMFPLUS(META_SELECTCLIPREGION), + WmfRecordTypeSelectObject = GDIP_WMF_RECORD_TO_EMFPLUS(META_SELECTOBJECT), + WmfRecordTypeSetTextAlign = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETTEXTALIGN), + WmfRecordTypeDrawText = GDIP_WMF_RECORD_TO_EMFPLUS(0x062F), // META_DRAWTEXT + WmfRecordTypeChord = GDIP_WMF_RECORD_TO_EMFPLUS(META_CHORD), + WmfRecordTypeSetMapperFlags = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETMAPPERFLAGS), + WmfRecordTypeExtTextOut = GDIP_WMF_RECORD_TO_EMFPLUS(META_EXTTEXTOUT), + WmfRecordTypeSetDIBToDev = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETDIBTODEV), + WmfRecordTypeSelectPalette = GDIP_WMF_RECORD_TO_EMFPLUS(META_SELECTPALETTE), + WmfRecordTypeRealizePalette = GDIP_WMF_RECORD_TO_EMFPLUS(META_REALIZEPALETTE), + WmfRecordTypeAnimatePalette = GDIP_WMF_RECORD_TO_EMFPLUS(META_ANIMATEPALETTE), + WmfRecordTypeSetPalEntries = GDIP_WMF_RECORD_TO_EMFPLUS(META_SETPALENTRIES), + WmfRecordTypePolyPolygon = GDIP_WMF_RECORD_TO_EMFPLUS(META_POLYPOLYGON), + WmfRecordTypeResizePalette = GDIP_WMF_RECORD_TO_EMFPLUS(META_RESIZEPALETTE), + WmfRecordTypeDIBBitBlt = GDIP_WMF_RECORD_TO_EMFPLUS(META_DIBBITBLT), + WmfRecordTypeDIBStretchBlt = GDIP_WMF_RECORD_TO_EMFPLUS(META_DIBSTRETCHBLT), + WmfRecordTypeDIBCreatePatternBrush = GDIP_WMF_RECORD_TO_EMFPLUS(META_DIBCREATEPATTERNBRUSH), + WmfRecordTypeStretchDIB = GDIP_WMF_RECORD_TO_EMFPLUS(META_STRETCHDIB), + WmfRecordTypeExtFloodFill = GDIP_WMF_RECORD_TO_EMFPLUS(META_EXTFLOODFILL), + WmfRecordTypeSetLayout = GDIP_WMF_RECORD_TO_EMFPLUS(0x0149), // META_SETLAYOUT + WmfRecordTypeResetDC = GDIP_WMF_RECORD_TO_EMFPLUS(0x014C), // META_RESETDC + WmfRecordTypeStartDoc = GDIP_WMF_RECORD_TO_EMFPLUS(0x014D), // META_STARTDOC + WmfRecordTypeStartPage = GDIP_WMF_RECORD_TO_EMFPLUS(0x004F), // META_STARTPAGE + WmfRecordTypeEndPage = GDIP_WMF_RECORD_TO_EMFPLUS(0x0050), // META_ENDPAGE + WmfRecordTypeAbortDoc = GDIP_WMF_RECORD_TO_EMFPLUS(0x0052), // META_ABORTDOC + WmfRecordTypeEndDoc = GDIP_WMF_RECORD_TO_EMFPLUS(0x005E), // META_ENDDOC + WmfRecordTypeDeleteObject = GDIP_WMF_RECORD_TO_EMFPLUS(META_DELETEOBJECT), + WmfRecordTypeCreatePalette = GDIP_WMF_RECORD_TO_EMFPLUS(META_CREATEPALETTE), + WmfRecordTypeCreateBrush = GDIP_WMF_RECORD_TO_EMFPLUS(0x00F8), // META_CREATEBRUSH + WmfRecordTypeCreatePatternBrush = GDIP_WMF_RECORD_TO_EMFPLUS(META_CREATEPATTERNBRUSH), + WmfRecordTypeCreatePenIndirect = GDIP_WMF_RECORD_TO_EMFPLUS(META_CREATEPENINDIRECT), + WmfRecordTypeCreateFontIndirect = GDIP_WMF_RECORD_TO_EMFPLUS(META_CREATEFONTINDIRECT), + WmfRecordTypeCreateBrushIndirect = GDIP_WMF_RECORD_TO_EMFPLUS(META_CREATEBRUSHINDIRECT), + WmfRecordTypeCreateBitmapIndirect = GDIP_WMF_RECORD_TO_EMFPLUS(0x02FD), // META_CREATEBITMAPINDIRECT + WmfRecordTypeCreateBitmap = GDIP_WMF_RECORD_TO_EMFPLUS(0x06FE), // META_CREATEBITMAP + WmfRecordTypeCreateRegion = GDIP_WMF_RECORD_TO_EMFPLUS(META_CREATEREGION), + + EmfRecordTypeHeader = EMR_HEADER, + EmfRecordTypePolyBezier = EMR_POLYBEZIER, + EmfRecordTypePolygon = EMR_POLYGON, + EmfRecordTypePolyline = EMR_POLYLINE, + EmfRecordTypePolyBezierTo = EMR_POLYBEZIERTO, + EmfRecordTypePolyLineTo = EMR_POLYLINETO, + EmfRecordTypePolyPolyline = EMR_POLYPOLYLINE, + EmfRecordTypePolyPolygon = EMR_POLYPOLYGON, + EmfRecordTypeSetWindowExtEx = EMR_SETWINDOWEXTEX, + EmfRecordTypeSetWindowOrgEx = EMR_SETWINDOWORGEX, + EmfRecordTypeSetViewportExtEx = EMR_SETVIEWPORTEXTEX, + EmfRecordTypeSetViewportOrgEx = EMR_SETVIEWPORTORGEX, + EmfRecordTypeSetBrushOrgEx = EMR_SETBRUSHORGEX, + EmfRecordTypeEOF = EMR_EOF, + EmfRecordTypeSetPixelV = EMR_SETPIXELV, + EmfRecordTypeSetMapperFlags = EMR_SETMAPPERFLAGS, + EmfRecordTypeSetMapMode = EMR_SETMAPMODE, + EmfRecordTypeSetBkMode = EMR_SETBKMODE, + EmfRecordTypeSetPolyFillMode = EMR_SETPOLYFILLMODE, + EmfRecordTypeSetROP2 = EMR_SETROP2, + EmfRecordTypeSetStretchBltMode = EMR_SETSTRETCHBLTMODE, + EmfRecordTypeSetTextAlign = EMR_SETTEXTALIGN, + EmfRecordTypeSetColorAdjustment = EMR_SETCOLORADJUSTMENT, + EmfRecordTypeSetTextColor = EMR_SETTEXTCOLOR, + EmfRecordTypeSetBkColor = EMR_SETBKCOLOR, + EmfRecordTypeOffsetClipRgn = EMR_OFFSETCLIPRGN, + EmfRecordTypeMoveToEx = EMR_MOVETOEX, + EmfRecordTypeSetMetaRgn = EMR_SETMETARGN, + EmfRecordTypeExcludeClipRect = EMR_EXCLUDECLIPRECT, + EmfRecordTypeIntersectClipRect = EMR_INTERSECTCLIPRECT, + EmfRecordTypeScaleViewportExtEx = EMR_SCALEVIEWPORTEXTEX, + EmfRecordTypeScaleWindowExtEx = EMR_SCALEWINDOWEXTEX, + EmfRecordTypeSaveDC = EMR_SAVEDC, + EmfRecordTypeRestoreDC = EMR_RESTOREDC, + EmfRecordTypeSetWorldTransform = EMR_SETWORLDTRANSFORM, + EmfRecordTypeModifyWorldTransform = EMR_MODIFYWORLDTRANSFORM, + EmfRecordTypeSelectObject = EMR_SELECTOBJECT, + EmfRecordTypeCreatePen = EMR_CREATEPEN, + EmfRecordTypeCreateBrushIndirect = EMR_CREATEBRUSHINDIRECT, + EmfRecordTypeDeleteObject = EMR_DELETEOBJECT, + EmfRecordTypeAngleArc = EMR_ANGLEARC, + EmfRecordTypeEllipse = EMR_ELLIPSE, + EmfRecordTypeRectangle = EMR_RECTANGLE, + EmfRecordTypeRoundRect = EMR_ROUNDRECT, + EmfRecordTypeArc = EMR_ARC, + EmfRecordTypeChord = EMR_CHORD, + EmfRecordTypePie = EMR_PIE, + EmfRecordTypeSelectPalette = EMR_SELECTPALETTE, + EmfRecordTypeCreatePalette = EMR_CREATEPALETTE, + EmfRecordTypeSetPaletteEntries = EMR_SETPALETTEENTRIES, + EmfRecordTypeResizePalette = EMR_RESIZEPALETTE, + EmfRecordTypeRealizePalette = EMR_REALIZEPALETTE, + EmfRecordTypeExtFloodFill = EMR_EXTFLOODFILL, + EmfRecordTypeLineTo = EMR_LINETO, + EmfRecordTypeArcTo = EMR_ARCTO, + EmfRecordTypePolyDraw = EMR_POLYDRAW, + EmfRecordTypeSetArcDirection = EMR_SETARCDIRECTION, + EmfRecordTypeSetMiterLimit = EMR_SETMITERLIMIT, + EmfRecordTypeBeginPath = EMR_BEGINPATH, + EmfRecordTypeEndPath = EMR_ENDPATH, + EmfRecordTypeCloseFigure = EMR_CLOSEFIGURE, + EmfRecordTypeFillPath = EMR_FILLPATH, + EmfRecordTypeStrokeAndFillPath = EMR_STROKEANDFILLPATH, + EmfRecordTypeStrokePath = EMR_STROKEPATH, + EmfRecordTypeFlattenPath = EMR_FLATTENPATH, + EmfRecordTypeWidenPath = EMR_WIDENPATH, + EmfRecordTypeSelectClipPath = EMR_SELECTCLIPPATH, + EmfRecordTypeAbortPath = EMR_ABORTPATH, + EmfRecordTypeReserved_069 = 69, // Not Used + EmfRecordTypeGdiComment = EMR_GDICOMMENT, + EmfRecordTypeFillRgn = EMR_FILLRGN, + EmfRecordTypeFrameRgn = EMR_FRAMERGN, + EmfRecordTypeInvertRgn = EMR_INVERTRGN, + EmfRecordTypePaintRgn = EMR_PAINTRGN, + EmfRecordTypeExtSelectClipRgn = EMR_EXTSELECTCLIPRGN, + EmfRecordTypeBitBlt = EMR_BITBLT, + EmfRecordTypeStretchBlt = EMR_STRETCHBLT, + EmfRecordTypeMaskBlt = EMR_MASKBLT, + EmfRecordTypePlgBlt = EMR_PLGBLT, + EmfRecordTypeSetDIBitsToDevice = EMR_SETDIBITSTODEVICE, + EmfRecordTypeStretchDIBits = EMR_STRETCHDIBITS, + EmfRecordTypeExtCreateFontIndirect = EMR_EXTCREATEFONTINDIRECTW, + EmfRecordTypeExtTextOutA = EMR_EXTTEXTOUTA, + EmfRecordTypeExtTextOutW = EMR_EXTTEXTOUTW, + EmfRecordTypePolyBezier16 = EMR_POLYBEZIER16, + EmfRecordTypePolygon16 = EMR_POLYGON16, + EmfRecordTypePolyline16 = EMR_POLYLINE16, + EmfRecordTypePolyBezierTo16 = EMR_POLYBEZIERTO16, + EmfRecordTypePolylineTo16 = EMR_POLYLINETO16, + EmfRecordTypePolyPolyline16 = EMR_POLYPOLYLINE16, + EmfRecordTypePolyPolygon16 = EMR_POLYPOLYGON16, + EmfRecordTypePolyDraw16 = EMR_POLYDRAW16, + EmfRecordTypeCreateMonoBrush = EMR_CREATEMONOBRUSH, + EmfRecordTypeCreateDIBPatternBrushPt = EMR_CREATEDIBPATTERNBRUSHPT, + EmfRecordTypeExtCreatePen = EMR_EXTCREATEPEN, + EmfRecordTypePolyTextOutA = EMR_POLYTEXTOUTA, + EmfRecordTypePolyTextOutW = EMR_POLYTEXTOUTW, + EmfRecordTypeSetICMMode = 98, // EMR_SETICMMODE, + EmfRecordTypeCreateColorSpace = 99, // EMR_CREATECOLORSPACE, + EmfRecordTypeSetColorSpace = 100, // EMR_SETCOLORSPACE, + EmfRecordTypeDeleteColorSpace = 101, // EMR_DELETECOLORSPACE, + EmfRecordTypeGLSRecord = 102, // EMR_GLSRECORD, + EmfRecordTypeGLSBoundedRecord = 103, // EMR_GLSBOUNDEDRECORD, + EmfRecordTypePixelFormat = 104, // EMR_PIXELFORMAT, + EmfRecordTypeDrawEscape = 105, // EMR_RESERVED_105, + EmfRecordTypeExtEscape = 106, // EMR_RESERVED_106, + EmfRecordTypeStartDoc = 107, // EMR_RESERVED_107, + EmfRecordTypeSmallTextOut = 108, // EMR_RESERVED_108, + EmfRecordTypeForceUFIMapping = 109, // EMR_RESERVED_109, + EmfRecordTypeNamedEscape = 110, // EMR_RESERVED_110, + EmfRecordTypeColorCorrectPalette = 111, // EMR_COLORCORRECTPALETTE, + EmfRecordTypeSetICMProfileA = 112, // EMR_SETICMPROFILEA, + EmfRecordTypeSetICMProfileW = 113, // EMR_SETICMPROFILEW, + EmfRecordTypeAlphaBlend = 114, // EMR_ALPHABLEND, + EmfRecordTypeSetLayout = 115, // EMR_SETLAYOUT, + EmfRecordTypeTransparentBlt = 116, // EMR_TRANSPARENTBLT, + EmfRecordTypeReserved_117 = 117, // Not Used + EmfRecordTypeGradientFill = 118, // EMR_GRADIENTFILL, + EmfRecordTypeSetLinkedUFIs = 119, // EMR_RESERVED_119, + EmfRecordTypeSetTextJustification = 120, // EMR_RESERVED_120, + EmfRecordTypeColorMatchToTargetW = 121, // EMR_COLORMATCHTOTARGETW, + EmfRecordTypeCreateColorSpaceW = 122, // EMR_CREATECOLORSPACEW, + EmfRecordTypeMax = 122, + EmfRecordTypeMin = 1, + + // That is the END of the GDI EMF records. + + // Now we start the list of EMF+ records. We leave quite + // a bit of room here for the addition of any new GDI + // records that may be added later. + + EmfPlusRecordTypeInvalid = GDIP_EMFPLUS_RECORD_BASE, + EmfPlusRecordTypeHeader, + EmfPlusRecordTypeEndOfFile, + + EmfPlusRecordTypeComment, + + EmfPlusRecordTypeGetDC, + + EmfPlusRecordTypeMultiFormatStart, + EmfPlusRecordTypeMultiFormatSection, + EmfPlusRecordTypeMultiFormatEnd, + + // For all persistent objects + + EmfPlusRecordTypeObject, + + // Drawing Records + + EmfPlusRecordTypeClear, + EmfPlusRecordTypeFillRects, + EmfPlusRecordTypeDrawRects, + EmfPlusRecordTypeFillPolygon, + EmfPlusRecordTypeDrawLines, + EmfPlusRecordTypeFillEllipse, + EmfPlusRecordTypeDrawEllipse, + EmfPlusRecordTypeFillPie, + EmfPlusRecordTypeDrawPie, + EmfPlusRecordTypeDrawArc, + EmfPlusRecordTypeFillRegion, + EmfPlusRecordTypeFillPath, + EmfPlusRecordTypeDrawPath, + EmfPlusRecordTypeFillClosedCurve, + EmfPlusRecordTypeDrawClosedCurve, + EmfPlusRecordTypeDrawCurve, + EmfPlusRecordTypeDrawBeziers, + EmfPlusRecordTypeDrawImage, + EmfPlusRecordTypeDrawImagePoints, + EmfPlusRecordTypeDrawString, + + // Graphics State Records + + EmfPlusRecordTypeSetRenderingOrigin, + EmfPlusRecordTypeSetAntiAliasMode, + EmfPlusRecordTypeSetTextRenderingHint, + EmfPlusRecordTypeSetTextContrast, + EmfPlusRecordTypeSetInterpolationMode, + EmfPlusRecordTypeSetPixelOffsetMode, + EmfPlusRecordTypeSetCompositingMode, + EmfPlusRecordTypeSetCompositingQuality, + EmfPlusRecordTypeSave, + EmfPlusRecordTypeRestore, + EmfPlusRecordTypeBeginContainer, + EmfPlusRecordTypeBeginContainerNoParams, + EmfPlusRecordTypeEndContainer, + EmfPlusRecordTypeSetWorldTransform, + EmfPlusRecordTypeResetWorldTransform, + EmfPlusRecordTypeMultiplyWorldTransform, + EmfPlusRecordTypeTranslateWorldTransform, + EmfPlusRecordTypeScaleWorldTransform, + EmfPlusRecordTypeRotateWorldTransform, + EmfPlusRecordTypeSetPageTransform, + EmfPlusRecordTypeResetClip, + EmfPlusRecordTypeSetClipRect, + EmfPlusRecordTypeSetClipPath, + EmfPlusRecordTypeSetClipRegion, + EmfPlusRecordTypeOffsetClip, + + EmfPlusRecordTypeDrawDriverString, +#if (GDIPVER >= 0x0110) + EmfPlusRecordTypeStrokeFillPath, + EmfPlusRecordTypeSerializableObject, + + EmfPlusRecordTypeSetTSGraphics, + EmfPlusRecordTypeSetTSClip, +#endif + // NOTE: New records *must* be added immediately before this line. + + EmfPlusRecordTotal, + + EmfPlusRecordTypeMax = EmfPlusRecordTotal-1, + EmfPlusRecordTypeMin = EmfPlusRecordTypeHeader, +}; + +//--------------------------------------------------------------------------- +// StringFormatFlags +//--------------------------------------------------------------------------- + +//--------------------------------------------------------------------------- +// String format flags +// +// DirectionRightToLeft - For horizontal text, the reading order is +// right to left. This value is called +// the base embedding level by the Unicode +// bidirectional engine. +// For vertical text, columns are read from +// right to left. +// By default, horizontal or vertical text is +// read from left to right. +// +// DirectionVertical - Individual lines of text are vertical. In +// each line, characters progress from top to +// bottom. +// By default, lines of text are horizontal, +// each new line below the previous line. +// +// NoFitBlackBox - Allows parts of glyphs to overhang the +// bounding rectangle. +// By default glyphs are first aligned +// inside the margines, then any glyphs which +// still overhang the bounding box are +// repositioned to avoid any overhang. +// For example when an italic +// lower case letter f in a font such as +// Garamond is aligned at the far left of a +// rectangle, the lower part of the f will +// reach slightly further left than the left +// edge of the rectangle. Setting this flag +// will ensure the character aligns visually +// with the lines above and below, but may +// cause some pixels outside the formatting +// rectangle to be clipped or painted. +// +// DisplayFormatControl - Causes control characters such as the +// left-to-right mark to be shown in the +// output with a representative glyph. +// +// NoFontFallback - Disables fallback to alternate fonts for +// characters not supported in the requested +// font. Any missing characters will be +// be displayed with the fonts missing glyph, +// usually an open square. +// +// NoWrap - Disables wrapping of text between lines +// when formatting within a rectangle. +// NoWrap is implied when a point is passed +// instead of a rectangle, or when the +// specified rectangle has a zero line length. +// +// NoClip - By default text is clipped to the +// formatting rectangle. Setting NoClip +// allows overhanging pixels to affect the +// device outside the formatting rectangle. +// Pixels at the end of the line may be +// affected if the glyphs overhang their +// cells, and either the NoFitBlackBox flag +// has been set, or the glyph extends to far +// to be fitted. +// Pixels above/before the first line or +// below/after the last line may be affected +// if the glyphs extend beyond their cell +// ascent / descent. This can occur rarely +// with unusual diacritic mark combinations. + +//--------------------------------------------------------------------------- + +enum StringFormatFlags +{ + StringFormatFlagsDirectionRightToLeft = 0x00000001, + StringFormatFlagsDirectionVertical = 0x00000002, + StringFormatFlagsNoFitBlackBox = 0x00000004, + StringFormatFlagsDisplayFormatControl = 0x00000020, + StringFormatFlagsNoFontFallback = 0x00000400, + StringFormatFlagsMeasureTrailingSpaces = 0x00000800, + StringFormatFlagsNoWrap = 0x00001000, + StringFormatFlagsLineLimit = 0x00002000, + + StringFormatFlagsNoClip = 0x00004000, + StringFormatFlagsBypassGDI = 0x80000000 +}; + +//--------------------------------------------------------------------------- +// StringTrimming +//--------------------------------------------------------------------------- + +enum StringTrimming { + StringTrimmingNone = 0, + StringTrimmingCharacter = 1, + StringTrimmingWord = 2, + StringTrimmingEllipsisCharacter = 3, + StringTrimmingEllipsisWord = 4, + StringTrimmingEllipsisPath = 5 +}; + +//--------------------------------------------------------------------------- +// National language digit substitution +//--------------------------------------------------------------------------- + +enum StringDigitSubstitute +{ + StringDigitSubstituteUser = 0, // As NLS setting + StringDigitSubstituteNone = 1, + StringDigitSubstituteNational = 2, + StringDigitSubstituteTraditional = 3 +}; + +//--------------------------------------------------------------------------- +// Hotkey prefix interpretation +//--------------------------------------------------------------------------- + +enum HotkeyPrefix +{ + HotkeyPrefixNone = 0, + HotkeyPrefixShow = 1, + HotkeyPrefixHide = 2 +}; + +//--------------------------------------------------------------------------- +// String alignment flags +//--------------------------------------------------------------------------- + +enum StringAlignment +{ + // Left edge for left-to-right text, + // right for right-to-left text, + // and top for vertical + StringAlignmentNear = 0, + StringAlignmentCenter = 1, + StringAlignmentFar = 2 +}; + +//--------------------------------------------------------------------------- +// DriverStringOptions +//--------------------------------------------------------------------------- + +enum DriverStringOptions +{ + DriverStringOptionsCmapLookup = 1, + DriverStringOptionsVertical = 2, + DriverStringOptionsRealizedAdvance = 4, + DriverStringOptionsLimitSubpixel = 8 +}; + +//--------------------------------------------------------------------------- +// Flush Intention flags +//--------------------------------------------------------------------------- + +enum FlushIntention +{ + FlushIntentionFlush = 0, // Flush all batched rendering operations + FlushIntentionSync = 1 // Flush all batched rendering operations + // and wait for them to complete +}; + +//--------------------------------------------------------------------------- +// Image encoder parameter related types +//--------------------------------------------------------------------------- + +enum EncoderParameterValueType +{ + EncoderParameterValueTypeByte = 1, // 8-bit unsigned int + EncoderParameterValueTypeASCII = 2, // 8-bit byte containing one 7-bit ASCII + // code. NULL terminated. + EncoderParameterValueTypeShort = 3, // 16-bit unsigned int + EncoderParameterValueTypeLong = 4, // 32-bit unsigned int + EncoderParameterValueTypeRational = 5, // Two Longs. The first Long is the + // numerator, the second Long expresses the + // denomintor. + EncoderParameterValueTypeLongRange = 6, // Two longs which specify a range of + // integer values. The first Long specifies + // the lower end and the second one + // specifies the higher end. All values + // are inclusive at both ends + EncoderParameterValueTypeUndefined = 7, // 8-bit byte that can take any value + // depending on field definition + EncoderParameterValueTypeRationalRange = 8, // Two Rationals. The first Rational + // specifies the lower end and the second + // specifies the higher end. All values + // are inclusive at both ends +#if (GDIPVER >= 0x0110) + EncoderParameterValueTypePointer = 9 // a pointer to a parameter defined data. +#endif //(GDIPVER >= 0x0110) +}; + +//--------------------------------------------------------------------------- +// Image encoder value types +//--------------------------------------------------------------------------- + +enum EncoderValue +{ + EncoderValueColorTypeCMYK, + EncoderValueColorTypeYCCK, + EncoderValueCompressionLZW, + EncoderValueCompressionCCITT3, + EncoderValueCompressionCCITT4, + EncoderValueCompressionRle, + EncoderValueCompressionNone, + EncoderValueScanMethodInterlaced, + EncoderValueScanMethodNonInterlaced, + EncoderValueVersionGif87, + EncoderValueVersionGif89, + EncoderValueRenderProgressive, + EncoderValueRenderNonProgressive, + EncoderValueTransformRotate90, + EncoderValueTransformRotate180, + EncoderValueTransformRotate270, + EncoderValueTransformFlipHorizontal, + EncoderValueTransformFlipVertical, + EncoderValueMultiFrame, + EncoderValueLastFrame, + EncoderValueFlush, + EncoderValueFrameDimensionTime, + EncoderValueFrameDimensionResolution, + EncoderValueFrameDimensionPage, +#if (GDIPVER >= 0x0110) + EncoderValueColorTypeGray, + EncoderValueColorTypeRGB, +#endif +}; + +//--------------------------------------------------------------------------- +// Conversion of Emf To WMF Bits flags +//--------------------------------------------------------------------------- + +enum EmfToWmfBitsFlags +{ + EmfToWmfBitsFlagsDefault = 0x00000000, + EmfToWmfBitsFlagsEmbedEmf = 0x00000001, + EmfToWmfBitsFlagsIncludePlaceable = 0x00000002, + EmfToWmfBitsFlagsNoXORClip = 0x00000004 +}; + +#if (GDIPVER >= 0x0110) +//--------------------------------------------------------------------------- +// Conversion of Emf To Emf+ Bits flags +//--------------------------------------------------------------------------- + +enum ConvertToEmfPlusFlags +{ + ConvertToEmfPlusFlagsDefault = 0x00000000, + ConvertToEmfPlusFlagsRopUsed = 0x00000001, + ConvertToEmfPlusFlagsText = 0x00000002, + ConvertToEmfPlusFlagsInvalidRecord = 0x00000004 +}; +#endif + + +//--------------------------------------------------------------------------- +// Test Control flags +//--------------------------------------------------------------------------- + +enum GpTestControlEnum +{ + TestControlForceBilinear = 0, + TestControlNoICM = 1, + TestControlGetBuildNumber = 2 +}; + + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_GDIPLUSENUMS_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusflat.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusflat.h new file mode 100644 index 0000000000000000000000000000000000000000..ba094eef74b92f3d183fb9651f9c5f0f04daf23b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusflat.h @@ -0,0 +1,2798 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusFlat.h +* +* Abstract: +* +* Private GDI+ header file. +* +\**************************************************************************/ + +#ifndef _FLATAPI_H +#define _FLATAPI_H + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define WINGDIPAPI __stdcall + +#define GDIPCONST const + +#ifdef __cplusplus +extern "C" { +#endif + +//---------------------------------------------------------------------------- +// GraphicsPath APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreatePath(GpFillMode brushMode, GpPath **path); + +GpStatus WINGDIPAPI +GdipCreatePath2(GDIPCONST GpPointF*, GDIPCONST BYTE*, INT, GpFillMode, + GpPath **path); + +GpStatus WINGDIPAPI +GdipCreatePath2I(GDIPCONST GpPoint*, GDIPCONST BYTE*, INT, GpFillMode, + GpPath **path); + +GpStatus WINGDIPAPI +GdipClonePath(GpPath* path, GpPath **clonePath); + +GpStatus WINGDIPAPI +GdipDeletePath(GpPath* path); + +GpStatus WINGDIPAPI +GdipResetPath(GpPath* path); + +GpStatus WINGDIPAPI +GdipGetPointCount(GpPath* path, INT* count); + +GpStatus WINGDIPAPI +GdipGetPathTypes(_In_ GpPath* path, + _Out_writes_bytes_(count) BYTE* types, INT count); + +GpStatus WINGDIPAPI +GdipGetPathPoints(GpPath*, GpPointF* points, INT count); + +GpStatus WINGDIPAPI +GdipGetPathPointsI(GpPath*, GpPoint* points, INT count); + +GpStatus WINGDIPAPI +GdipGetPathFillMode(GpPath *path, GpFillMode *fillmode); + +GpStatus WINGDIPAPI +GdipSetPathFillMode(GpPath *path, GpFillMode fillmode); + +GpStatus WINGDIPAPI +GdipGetPathData(GpPath *path, GpPathData* pathData); + +GpStatus WINGDIPAPI +GdipStartPathFigure(GpPath *path); + +GpStatus WINGDIPAPI +GdipClosePathFigure(GpPath *path); + +GpStatus WINGDIPAPI +GdipClosePathFigures(GpPath *path); + +GpStatus WINGDIPAPI +GdipSetPathMarker(GpPath* path); + +GpStatus WINGDIPAPI +GdipClearPathMarkers(GpPath* path); + +GpStatus WINGDIPAPI +GdipReversePath(GpPath* path); + +GpStatus WINGDIPAPI +GdipGetPathLastPoint(GpPath* path, GpPointF* lastPoint); + +GpStatus WINGDIPAPI +GdipAddPathLine(GpPath *path, REAL x1, REAL y1, REAL x2, REAL y2); + +GpStatus WINGDIPAPI +GdipAddPathLine2(GpPath *path, GDIPCONST GpPointF *points, INT count); + +GpStatus WINGDIPAPI +GdipAddPathArc(GpPath *path, REAL x, REAL y, REAL width, REAL height, + REAL startAngle, REAL sweepAngle); + +GpStatus WINGDIPAPI +GdipAddPathBezier(GpPath *path, REAL x1, REAL y1, REAL x2, REAL y2, + REAL x3, REAL y3, REAL x4, REAL y4); + +GpStatus WINGDIPAPI +GdipAddPathBeziers(GpPath *path, GDIPCONST GpPointF *points, INT count); + +GpStatus WINGDIPAPI +GdipAddPathCurve(GpPath *path, GDIPCONST GpPointF *points, INT count); + +GpStatus WINGDIPAPI +GdipAddPathCurve2(GpPath *path, GDIPCONST GpPointF *points, INT count, + REAL tension); + +GpStatus WINGDIPAPI +GdipAddPathCurve3(GpPath *path, GDIPCONST GpPointF *points, INT count, + INT offset, INT numberOfSegments, REAL tension); + +GpStatus WINGDIPAPI +GdipAddPathClosedCurve(GpPath *path, GDIPCONST GpPointF *points, INT count); + +GpStatus WINGDIPAPI +GdipAddPathClosedCurve2(GpPath *path, GDIPCONST GpPointF *points, INT count, + REAL tension); + +GpStatus WINGDIPAPI +GdipAddPathRectangle(GpPath *path, REAL x, REAL y, REAL width, REAL height); + +GpStatus WINGDIPAPI +GdipAddPathRectangles(GpPath *path, GDIPCONST GpRectF *rects, INT count); + +GpStatus WINGDIPAPI +GdipAddPathEllipse(GpPath *path, REAL x, REAL y, REAL width, + REAL height); + +GpStatus WINGDIPAPI +GdipAddPathPie(GpPath *path, REAL x, REAL y, REAL width, REAL height, + REAL startAngle, REAL sweepAngle); + +GpStatus WINGDIPAPI +GdipAddPathPolygon(GpPath *path, GDIPCONST GpPointF *points, INT count); + +GpStatus WINGDIPAPI +GdipAddPathPath(GpPath *path, GDIPCONST GpPath* addingPath, BOOL connect); + +GpStatus WINGDIPAPI +GdipAddPathString(GpPath *path, GDIPCONST WCHAR *string, + INT length, GDIPCONST GpFontFamily *family, INT style, + REAL emSize, GDIPCONST RectF *layoutRect, + GDIPCONST GpStringFormat *format); + +GpStatus WINGDIPAPI +GdipAddPathStringI(GpPath *path, GDIPCONST WCHAR *string, + INT length, GDIPCONST GpFontFamily *family, INT style, + REAL emSize, GDIPCONST Rect *layoutRect, + GDIPCONST GpStringFormat *format); + +GpStatus WINGDIPAPI +GdipAddPathLineI(GpPath *path, INT x1, INT y1, INT x2, INT y2); + +GpStatus WINGDIPAPI +GdipAddPathLine2I(GpPath *path, GDIPCONST GpPoint *points, INT count); + +GpStatus WINGDIPAPI +GdipAddPathArcI(GpPath *path, INT x, INT y, INT width, INT height, + REAL startAngle, REAL sweepAngle); + +GpStatus WINGDIPAPI +GdipAddPathBezierI(GpPath *path, INT x1, INT y1, INT x2, INT y2, + INT x3, INT y3, INT x4, INT y4); + +GpStatus WINGDIPAPI +GdipAddPathBeziersI(GpPath *path, GDIPCONST GpPoint *points, INT count); + +GpStatus WINGDIPAPI +GdipAddPathCurveI(GpPath *path, GDIPCONST GpPoint *points, INT count); + +GpStatus WINGDIPAPI +GdipAddPathCurve2I(GpPath *path, GDIPCONST GpPoint *points, INT count, + REAL tension); + +GpStatus WINGDIPAPI +GdipAddPathCurve3I(GpPath *path, GDIPCONST GpPoint *points, INT count, + INT offset, INT numberOfSegments, REAL tension); + +GpStatus WINGDIPAPI +GdipAddPathClosedCurveI(GpPath *path, GDIPCONST GpPoint *points, INT count); + +GpStatus WINGDIPAPI +GdipAddPathClosedCurve2I(GpPath *path, GDIPCONST GpPoint *points, INT count, + REAL tension); + +GpStatus WINGDIPAPI +GdipAddPathRectangleI(GpPath *path, INT x, INT y, INT width, INT height); + +GpStatus WINGDIPAPI +GdipAddPathRectanglesI(GpPath *path, GDIPCONST GpRect *rects, INT count); + +GpStatus WINGDIPAPI +GdipAddPathEllipseI(GpPath *path, INT x, INT y, INT width, INT height); + +GpStatus WINGDIPAPI +GdipAddPathPieI(GpPath *path, INT x, INT y, INT width, INT height, + REAL startAngle, REAL sweepAngle); + +GpStatus WINGDIPAPI +GdipAddPathPolygonI(GpPath *path, GDIPCONST GpPoint *points, INT count); + +GpStatus WINGDIPAPI +GdipFlattenPath(GpPath *path, GpMatrix* matrix, REAL flatness); + +GpStatus WINGDIPAPI +GdipWindingModeOutline( + GpPath *path, + GpMatrix *matrix, + REAL flatness +); + +GpStatus WINGDIPAPI +GdipWidenPath( + GpPath *nativePath, + GpPen *pen, + GpMatrix *matrix, + REAL flatness +); + +GpStatus WINGDIPAPI +GdipWarpPath(GpPath *path, GpMatrix* matrix, + GDIPCONST GpPointF *points, INT count, + REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, + WarpMode warpMode, REAL flatness); + +GpStatus WINGDIPAPI +GdipTransformPath(GpPath* path, GpMatrix* matrix); + +GpStatus WINGDIPAPI +GdipGetPathWorldBounds(GpPath* path, GpRectF* bounds, + GDIPCONST GpMatrix *matrix, GDIPCONST GpPen *pen); + +GpStatus WINGDIPAPI +GdipGetPathWorldBoundsI(GpPath* path, GpRect* bounds, + GDIPCONST GpMatrix *matrix, GDIPCONST GpPen *pen); + +GpStatus WINGDIPAPI +GdipIsVisiblePathPoint(GpPath* path, REAL x, REAL y, + GpGraphics *graphics, BOOL *result); + +GpStatus WINGDIPAPI +GdipIsVisiblePathPointI(GpPath* path, INT x, INT y, + GpGraphics *graphics, BOOL *result); + +GpStatus WINGDIPAPI +GdipIsOutlineVisiblePathPoint(GpPath* path, REAL x, REAL y, GpPen *pen, + GpGraphics *graphics, BOOL *result); + +GpStatus WINGDIPAPI +GdipIsOutlineVisiblePathPointI(GpPath* path, INT x, INT y, GpPen *pen, + GpGraphics *graphics, BOOL *result); + + +//---------------------------------------------------------------------------- +// PathIterator APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreatePathIter(GpPathIterator **iterator, GpPath* path); + +GpStatus WINGDIPAPI +GdipDeletePathIter(GpPathIterator *iterator); + +GpStatus WINGDIPAPI +GdipPathIterNextSubpath(GpPathIterator* iterator, INT *resultCount, + INT* startIndex, INT* endIndex, BOOL* isClosed); + +GpStatus WINGDIPAPI +GdipPathIterNextSubpathPath(GpPathIterator* iterator, INT* resultCount, + GpPath* path, BOOL* isClosed); + +GpStatus WINGDIPAPI +GdipPathIterNextPathType(GpPathIterator* iterator, _Out_ INT* resultCount, + _Out_ BYTE* pathType, _Out_ INT* startIndex, _Out_ INT* endIndex); + +GpStatus WINGDIPAPI +GdipPathIterNextMarker(GpPathIterator* iterator, INT *resultCount, + INT* startIndex, INT* endIndex); + +GpStatus WINGDIPAPI +GdipPathIterNextMarkerPath(GpPathIterator* iterator, INT* resultCount, + GpPath* path); + +GpStatus WINGDIPAPI +GdipPathIterGetCount(GpPathIterator* iterator, INT* count); + +GpStatus WINGDIPAPI +GdipPathIterGetSubpathCount(GpPathIterator* iterator, INT* count); + +GpStatus WINGDIPAPI +GdipPathIterIsValid(GpPathIterator* iterator, BOOL* valid); + +GpStatus WINGDIPAPI +GdipPathIterHasCurve(GpPathIterator* iterator, BOOL* hasCurve); + +GpStatus WINGDIPAPI +GdipPathIterRewind(GpPathIterator* iterator); + +GpStatus WINGDIPAPI +GdipPathIterEnumerate(GpPathIterator* iterator, _Out_ INT* resultCount, + _Out_writes_to_(count, *resultCount) GpPointF *points, + _Out_writes_to_(count, *resultCount) BYTE *types, INT count); + +GpStatus WINGDIPAPI +GdipPathIterCopyData(GpPathIterator* iterator, _Out_ INT* resultCount, + _Out_writes_to_(endIndex - startIndex + 1, *resultCount) GpPointF* points, + _Out_writes_to_(endIndex - startIndex + 1, *resultCount) BYTE* types, + INT startIndex, INT endIndex); + +//---------------------------------------------------------------------------- +// Matrix APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateMatrix(GpMatrix **matrix); + +GpStatus WINGDIPAPI +GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22, REAL dx, + REAL dy, GpMatrix **matrix); + +GpStatus WINGDIPAPI +GdipCreateMatrix3(GDIPCONST GpRectF *rect, GDIPCONST GpPointF *dstplg, + GpMatrix **matrix); + +GpStatus WINGDIPAPI +GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint *dstplg, + GpMatrix **matrix); + +GpStatus WINGDIPAPI +GdipCloneMatrix(GpMatrix *matrix, GpMatrix **cloneMatrix); + +GpStatus WINGDIPAPI +GdipDeleteMatrix(GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipSetMatrixElements(GpMatrix *matrix, REAL m11, REAL m12, REAL m21, REAL m22, + REAL dx, REAL dy); + +GpStatus WINGDIPAPI +GdipMultiplyMatrix(GpMatrix *matrix, GpMatrix* matrix2, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipTranslateMatrix(GpMatrix *matrix, REAL offsetX, REAL offsetY, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipScaleMatrix(GpMatrix *matrix, REAL scaleX, REAL scaleY, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipRotateMatrix(GpMatrix *matrix, REAL angle, GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipShearMatrix(GpMatrix *matrix, REAL shearX, REAL shearY, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipInvertMatrix(GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipTransformMatrixPoints(GpMatrix *matrix, GpPointF *pts, INT count); + +GpStatus WINGDIPAPI +GdipTransformMatrixPointsI(GpMatrix *matrix, GpPoint *pts, INT count); + +GpStatus WINGDIPAPI +GdipVectorTransformMatrixPoints(GpMatrix *matrix, GpPointF *pts, + INT count); + +GpStatus WINGDIPAPI +GdipVectorTransformMatrixPointsI(GpMatrix *matrix, GpPoint *pts, + INT count); + +GpStatus WINGDIPAPI +GdipGetMatrixElements(GDIPCONST GpMatrix *matrix, REAL *matrixOut); + +GpStatus WINGDIPAPI +GdipIsMatrixInvertible(GDIPCONST GpMatrix *matrix, BOOL *result); + +GpStatus WINGDIPAPI +GdipIsMatrixIdentity(GDIPCONST GpMatrix *matrix, BOOL *result); + +GpStatus WINGDIPAPI +GdipIsMatrixEqual(GDIPCONST GpMatrix *matrix, GDIPCONST GpMatrix *matrix2, + BOOL *result); + +//---------------------------------------------------------------------------- +// Region APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateRegion(GpRegion **region); + +GpStatus WINGDIPAPI +GdipCreateRegionRect(GDIPCONST GpRectF *rect, GpRegion **region); + +GpStatus WINGDIPAPI +GdipCreateRegionRectI(GDIPCONST GpRect *rect, GpRegion **region); + +GpStatus WINGDIPAPI +GdipCreateRegionPath(GpPath *path, GpRegion **region); + +GpStatus WINGDIPAPI +GdipCreateRegionRgnData(GDIPCONST BYTE *regionData, INT size, + GpRegion **region); + +GpStatus WINGDIPAPI +GdipCreateRegionHrgn(HRGN hRgn, GpRegion **region); + +GpStatus WINGDIPAPI +GdipCloneRegion(GpRegion *region, GpRegion **cloneRegion); + +GpStatus WINGDIPAPI +GdipDeleteRegion(GpRegion *region); + +GpStatus WINGDIPAPI +GdipSetInfinite(GpRegion *region); + +GpStatus WINGDIPAPI +GdipSetEmpty(GpRegion *region); + +GpStatus WINGDIPAPI +GdipCombineRegionRect(GpRegion *region, GDIPCONST GpRectF *rect, + CombineMode combineMode); + +GpStatus WINGDIPAPI +GdipCombineRegionRectI(GpRegion *region, GDIPCONST GpRect *rect, + CombineMode combineMode); + +GpStatus WINGDIPAPI +GdipCombineRegionPath(GpRegion *region, GpPath *path, CombineMode combineMode); + +GpStatus WINGDIPAPI +GdipCombineRegionRegion(GpRegion *region, GpRegion *region2, + CombineMode combineMode); + +GpStatus WINGDIPAPI +GdipTranslateRegion(GpRegion *region, REAL dx, REAL dy); + +GpStatus WINGDIPAPI +GdipTranslateRegionI(GpRegion *region, INT dx, INT dy); + +GpStatus WINGDIPAPI +GdipTransformRegion(GpRegion *region, GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipGetRegionBounds(GpRegion *region, GpGraphics *graphics, + GpRectF *rect); + +GpStatus WINGDIPAPI +GdipGetRegionBoundsI(GpRegion *region, GpGraphics *graphics, + GpRect *rect); + +GpStatus WINGDIPAPI +GdipGetRegionHRgn(GpRegion *region, GpGraphics *graphics, HRGN *hRgn); + +GpStatus WINGDIPAPI +GdipIsEmptyRegion(GpRegion *region, GpGraphics *graphics, + BOOL *result); + +GpStatus WINGDIPAPI +GdipIsInfiniteRegion(GpRegion *region, GpGraphics *graphics, + BOOL *result); + +GpStatus WINGDIPAPI +GdipIsEqualRegion(GpRegion *region, GpRegion *region2, + GpGraphics *graphics, BOOL *result); + +GpStatus WINGDIPAPI +GdipGetRegionDataSize(GpRegion *region, UINT * bufferSize); + +GpStatus WINGDIPAPI +GdipGetRegionData(GpRegion *region, + _Out_writes_to_(bufferSize, *sizeFilled) BYTE * buffer, + UINT bufferSize, _Out_opt_ UINT * sizeFilled); + +GpStatus WINGDIPAPI +GdipIsVisibleRegionPoint(GpRegion *region, REAL x, REAL y, + GpGraphics *graphics, BOOL *result); + +GpStatus WINGDIPAPI +GdipIsVisibleRegionPointI(GpRegion *region, INT x, INT y, + GpGraphics *graphics, BOOL *result); + +GpStatus WINGDIPAPI +GdipIsVisibleRegionRect(GpRegion *region, REAL x, REAL y, REAL width, + REAL height, GpGraphics *graphics, BOOL *result); + +GpStatus WINGDIPAPI +GdipIsVisibleRegionRectI(GpRegion *region, INT x, INT y, INT width, + INT height, GpGraphics *graphics, BOOL *result); + +GpStatus WINGDIPAPI +GdipGetRegionScansCount(GpRegion *region, UINT* count, GpMatrix* matrix); + +GpStatus WINGDIPAPI +GdipGetRegionScans(GpRegion *region, GpRectF* rects, INT* count, + GpMatrix* matrix); + +GpStatus WINGDIPAPI +GdipGetRegionScansI(GpRegion *region, GpRect* rects, INT* count, + GpMatrix* matrix); + +//---------------------------------------------------------------------------- +// Brush APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCloneBrush(GpBrush *brush, GpBrush **cloneBrush); + +GpStatus WINGDIPAPI +GdipDeleteBrush(GpBrush *brush); + +GpStatus WINGDIPAPI +GdipGetBrushType(GpBrush *brush, GpBrushType *type); + +//---------------------------------------------------------------------------- +// HatchBrush APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateHatchBrush(GpHatchStyle hatchstyle, ARGB forecol, + ARGB backcol, GpHatch **brush); + +GpStatus WINGDIPAPI +GdipGetHatchStyle(GpHatch *brush, GpHatchStyle *hatchstyle); + +GpStatus WINGDIPAPI +GdipGetHatchForegroundColor(GpHatch *brush, ARGB* forecol); + +GpStatus WINGDIPAPI +GdipGetHatchBackgroundColor(GpHatch *brush, ARGB* backcol); + +//---------------------------------------------------------------------------- +// TextureBrush APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateTexture(GpImage *image, GpWrapMode wrapmode, + GpTexture **texture); + +GpStatus WINGDIPAPI +GdipCreateTexture2(GpImage *image, GpWrapMode wrapmode, REAL x, + REAL y, REAL width, REAL height, GpTexture **texture); + +GpStatus WINGDIPAPI +GdipCreateTextureIA(GpImage *image, + GDIPCONST GpImageAttributes *imageAttributes, + REAL x, REAL y, REAL width, REAL height, + GpTexture **texture); + +GpStatus WINGDIPAPI +GdipCreateTexture2I(GpImage *image, GpWrapMode wrapmode, INT x, + INT y, INT width, INT height, GpTexture **texture); + +GpStatus WINGDIPAPI +GdipCreateTextureIAI(GpImage *image, + GDIPCONST GpImageAttributes *imageAttributes, + INT x, INT y, INT width, INT height, + GpTexture **texture); + + +GpStatus WINGDIPAPI +GdipGetTextureTransform(GpTexture *brush, GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipSetTextureTransform(GpTexture *brush, GDIPCONST GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipResetTextureTransform(GpTexture* brush); + +GpStatus WINGDIPAPI +GdipMultiplyTextureTransform(GpTexture* brush, GDIPCONST GpMatrix *matrix, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipTranslateTextureTransform(GpTexture* brush, REAL dx, REAL dy, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipScaleTextureTransform(GpTexture* brush, REAL sx, REAL sy, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipRotateTextureTransform(GpTexture* brush, REAL angle, GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipSetTextureWrapMode(GpTexture *brush, GpWrapMode wrapmode); + +GpStatus WINGDIPAPI +GdipGetTextureWrapMode(GpTexture *brush, GpWrapMode *wrapmode); + +GpStatus WINGDIPAPI +GdipGetTextureImage(GpTexture *brush, GpImage **image); + +//---------------------------------------------------------------------------- +// SolidBrush APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateSolidFill(ARGB color, GpSolidFill **brush); + +GpStatus WINGDIPAPI +GdipSetSolidFillColor(GpSolidFill *brush, ARGB color); + +GpStatus WINGDIPAPI +GdipGetSolidFillColor(GpSolidFill *brush, ARGB *color); + +//---------------------------------------------------------------------------- +// LineBrush APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateLineBrush(GDIPCONST GpPointF* point1, + GDIPCONST GpPointF* point2, + ARGB color1, ARGB color2, + GpWrapMode wrapMode, + GpLineGradient **lineGradient); + +GpStatus WINGDIPAPI +GdipCreateLineBrushI(GDIPCONST GpPoint* point1, + GDIPCONST GpPoint* point2, + ARGB color1, ARGB color2, + GpWrapMode wrapMode, + GpLineGradient **lineGradient); + +GpStatus WINGDIPAPI +GdipCreateLineBrushFromRect(GDIPCONST GpRectF* rect, + ARGB color1, ARGB color2, + LinearGradientMode mode, + GpWrapMode wrapMode, + GpLineGradient **lineGradient); + +GpStatus WINGDIPAPI +GdipCreateLineBrushFromRectI(GDIPCONST GpRect* rect, + ARGB color1, ARGB color2, + LinearGradientMode mode, + GpWrapMode wrapMode, + GpLineGradient **lineGradient); + +GpStatus WINGDIPAPI +GdipCreateLineBrushFromRectWithAngle(GDIPCONST GpRectF* rect, + ARGB color1, ARGB color2, + REAL angle, + BOOL isAngleScalable, + GpWrapMode wrapMode, + GpLineGradient **lineGradient); + +GpStatus WINGDIPAPI +GdipCreateLineBrushFromRectWithAngleI(GDIPCONST GpRect* rect, + ARGB color1, ARGB color2, + REAL angle, + BOOL isAngleScalable, + GpWrapMode wrapMode, + GpLineGradient **lineGradient); + +GpStatus WINGDIPAPI +GdipSetLineColors(GpLineGradient *brush, ARGB color1, ARGB color2); + +GpStatus WINGDIPAPI +GdipGetLineColors(GpLineGradient *brush, ARGB* colors); + +GpStatus WINGDIPAPI +GdipGetLineRect(GpLineGradient *brush, GpRectF *rect); + +GpStatus WINGDIPAPI +GdipGetLineRectI(GpLineGradient *brush, GpRect *rect); + +GpStatus WINGDIPAPI +GdipSetLineGammaCorrection(GpLineGradient *brush, BOOL useGammaCorrection); + +GpStatus WINGDIPAPI +GdipGetLineGammaCorrection(GpLineGradient *brush, BOOL *useGammaCorrection); + +GpStatus WINGDIPAPI +GdipGetLineBlendCount(GpLineGradient *brush, INT *count); + +GpStatus WINGDIPAPI +GdipGetLineBlend(GpLineGradient *brush, REAL *blend, REAL* positions, + INT count); + +GpStatus WINGDIPAPI +GdipSetLineBlend(GpLineGradient *brush, GDIPCONST REAL *blend, + GDIPCONST REAL* positions, INT count); + +GpStatus WINGDIPAPI +GdipGetLinePresetBlendCount(GpLineGradient *brush, INT *count); + +GpStatus WINGDIPAPI +GdipGetLinePresetBlend(GpLineGradient *brush, ARGB *blend, + REAL* positions, INT count); + +GpStatus WINGDIPAPI +GdipSetLinePresetBlend(GpLineGradient *brush, GDIPCONST ARGB *blend, + GDIPCONST REAL* positions, INT count); + +GpStatus WINGDIPAPI +GdipSetLineSigmaBlend(GpLineGradient *brush, REAL focus, REAL scale); + +GpStatus WINGDIPAPI +GdipSetLineLinearBlend(GpLineGradient *brush, REAL focus, REAL scale); + +GpStatus WINGDIPAPI +GdipSetLineWrapMode(GpLineGradient *brush, GpWrapMode wrapmode); + +GpStatus WINGDIPAPI +GdipGetLineWrapMode(GpLineGradient *brush, GpWrapMode *wrapmode); + +GpStatus WINGDIPAPI +GdipGetLineTransform(GpLineGradient *brush, GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipSetLineTransform(GpLineGradient *brush, GDIPCONST GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipResetLineTransform(GpLineGradient* brush); + +GpStatus WINGDIPAPI +GdipMultiplyLineTransform(GpLineGradient* brush, GDIPCONST GpMatrix *matrix, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipTranslateLineTransform(GpLineGradient* brush, REAL dx, REAL dy, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipScaleLineTransform(GpLineGradient* brush, REAL sx, REAL sy, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipRotateLineTransform(GpLineGradient* brush, REAL angle, + GpMatrixOrder order); + +//---------------------------------------------------------------------------- +// PathGradientBrush APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreatePathGradient(GDIPCONST GpPointF* points, + INT count, + GpWrapMode wrapMode, + GpPathGradient **polyGradient); + +GpStatus WINGDIPAPI +GdipCreatePathGradientI(GDIPCONST GpPoint* points, + INT count, + GpWrapMode wrapMode, + GpPathGradient **polyGradient); + +GpStatus WINGDIPAPI +GdipCreatePathGradientFromPath(GDIPCONST GpPath* path, + GpPathGradient **polyGradient); + +GpStatus WINGDIPAPI +GdipGetPathGradientCenterColor( + GpPathGradient *brush, ARGB* colors); + +GpStatus WINGDIPAPI +GdipSetPathGradientCenterColor( + GpPathGradient *brush, ARGB colors); + +GpStatus WINGDIPAPI +GdipGetPathGradientSurroundColorsWithCount( + _In_ GpPathGradient *brush, + _Out_writes_to_(*count, *count) ARGB* color, + _Inout_ INT* count); + +GpStatus WINGDIPAPI +GdipSetPathGradientSurroundColorsWithCount( + GpPathGradient *brush, + GDIPCONST ARGB* color, INT* count); + +GpStatus WINGDIPAPI +GdipGetPathGradientPath(GpPathGradient *brush, GpPath *path); + +GpStatus WINGDIPAPI +GdipSetPathGradientPath(GpPathGradient *brush, GDIPCONST GpPath *path); + +GpStatus WINGDIPAPI +GdipGetPathGradientCenterPoint( + GpPathGradient *brush, GpPointF* points); + +GpStatus WINGDIPAPI +GdipGetPathGradientCenterPointI( + GpPathGradient *brush, GpPoint* points); + +GpStatus WINGDIPAPI +GdipSetPathGradientCenterPoint( + GpPathGradient *brush, GDIPCONST GpPointF* points); + +GpStatus WINGDIPAPI +GdipSetPathGradientCenterPointI( + GpPathGradient *brush, GDIPCONST GpPoint* points); + +GpStatus WINGDIPAPI +GdipGetPathGradientRect(GpPathGradient *brush, GpRectF *rect); + +GpStatus WINGDIPAPI +GdipGetPathGradientRectI(GpPathGradient *brush, GpRect *rect); + +GpStatus WINGDIPAPI +GdipGetPathGradientPointCount(GpPathGradient *brush, INT* count); + +GpStatus WINGDIPAPI +GdipGetPathGradientSurroundColorCount(GpPathGradient *brush, INT* count); + +GpStatus WINGDIPAPI +GdipSetPathGradientGammaCorrection(GpPathGradient *brush, + BOOL useGammaCorrection); + +GpStatus WINGDIPAPI +GdipGetPathGradientGammaCorrection(GpPathGradient *brush, + BOOL *useGammaCorrection); + +GpStatus WINGDIPAPI +GdipGetPathGradientBlendCount(GpPathGradient *brush, + INT *count); + +GpStatus WINGDIPAPI +GdipGetPathGradientBlend(GpPathGradient *brush, + REAL *blend, REAL *positions, INT count); + +GpStatus WINGDIPAPI +GdipSetPathGradientBlend(GpPathGradient *brush, + GDIPCONST REAL *blend, GDIPCONST REAL *positions, INT count); + +GpStatus WINGDIPAPI +GdipGetPathGradientPresetBlendCount(GpPathGradient *brush, INT *count); + +GpStatus WINGDIPAPI +GdipGetPathGradientPresetBlend(GpPathGradient *brush, ARGB *blend, + REAL* positions, INT count); + +GpStatus WINGDIPAPI +GdipSetPathGradientPresetBlend(GpPathGradient *brush, GDIPCONST ARGB *blend, + GDIPCONST REAL* positions, INT count); + +GpStatus WINGDIPAPI +GdipSetPathGradientSigmaBlend(GpPathGradient *brush, REAL focus, REAL scale); + +GpStatus WINGDIPAPI +GdipSetPathGradientLinearBlend(GpPathGradient *brush, REAL focus, REAL scale); + +GpStatus WINGDIPAPI +GdipGetPathGradientWrapMode(GpPathGradient *brush, + GpWrapMode *wrapmode); + +GpStatus WINGDIPAPI +GdipSetPathGradientWrapMode(GpPathGradient *brush, + GpWrapMode wrapmode); + +GpStatus WINGDIPAPI +GdipGetPathGradientTransform(GpPathGradient *brush, + GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipSetPathGradientTransform(GpPathGradient *brush, + GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipResetPathGradientTransform(GpPathGradient* brush); + +GpStatus WINGDIPAPI +GdipMultiplyPathGradientTransform(GpPathGradient* brush, + GDIPCONST GpMatrix *matrix, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipTranslatePathGradientTransform(GpPathGradient* brush, REAL dx, REAL dy, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipScalePathGradientTransform(GpPathGradient* brush, REAL sx, REAL sy, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipRotatePathGradientTransform(GpPathGradient* brush, REAL angle, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipGetPathGradientFocusScales(GpPathGradient *brush, REAL* xScale, + REAL* yScale); + +GpStatus WINGDIPAPI +GdipSetPathGradientFocusScales(GpPathGradient *brush, REAL xScale, + REAL yScale); + +//---------------------------------------------------------------------------- +// Pen APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreatePen1(ARGB color, REAL width, GpUnit unit, GpPen **pen); + +GpStatus WINGDIPAPI +GdipCreatePen2(GpBrush *brush, REAL width, GpUnit unit, + GpPen **pen); + +GpStatus WINGDIPAPI +GdipClonePen(GpPen *pen, GpPen **clonepen); + +GpStatus WINGDIPAPI +GdipDeletePen(GpPen *pen); + +GpStatus WINGDIPAPI +GdipSetPenWidth(GpPen *pen, REAL width); + +GpStatus WINGDIPAPI +GdipGetPenWidth(GpPen *pen, REAL *width); + +GpStatus WINGDIPAPI +GdipSetPenUnit(GpPen *pen, GpUnit unit); + +GpStatus WINGDIPAPI +GdipGetPenUnit(GpPen *pen, GpUnit *unit); + +GpStatus WINGDIPAPI +GdipSetPenLineCap197819(GpPen *pen, GpLineCap startCap, GpLineCap endCap, + GpDashCap dashCap); + +GpStatus WINGDIPAPI +GdipSetPenStartCap(GpPen *pen, GpLineCap startCap); + +GpStatus WINGDIPAPI +GdipSetPenEndCap(GpPen *pen, GpLineCap endCap); + +GpStatus WINGDIPAPI +GdipSetPenDashCap197819(GpPen *pen, GpDashCap dashCap); + +GpStatus WINGDIPAPI +GdipGetPenStartCap(GpPen *pen, GpLineCap *startCap); + +GpStatus WINGDIPAPI +GdipGetPenEndCap(GpPen *pen, GpLineCap *endCap); + +GpStatus WINGDIPAPI +GdipGetPenDashCap197819(GpPen *pen, GpDashCap *dashCap); + +GpStatus WINGDIPAPI +GdipSetPenLineJoin(GpPen *pen, GpLineJoin lineJoin); + +GpStatus WINGDIPAPI +GdipGetPenLineJoin(GpPen *pen, GpLineJoin *lineJoin); + +GpStatus WINGDIPAPI +GdipSetPenCustomStartCap(GpPen *pen, GpCustomLineCap* customCap); + +GpStatus WINGDIPAPI +GdipGetPenCustomStartCap(GpPen *pen, GpCustomLineCap** customCap); + +GpStatus WINGDIPAPI +GdipSetPenCustomEndCap(GpPen *pen, GpCustomLineCap* customCap); + +GpStatus WINGDIPAPI +GdipGetPenCustomEndCap(GpPen *pen, GpCustomLineCap** customCap); + +GpStatus WINGDIPAPI +GdipSetPenMiterLimit(GpPen *pen, REAL miterLimit); + +GpStatus WINGDIPAPI +GdipGetPenMiterLimit(GpPen *pen, REAL *miterLimit); + +GpStatus WINGDIPAPI +GdipSetPenMode(GpPen *pen, GpPenAlignment penMode); + +GpStatus WINGDIPAPI +GdipGetPenMode(GpPen *pen, GpPenAlignment *penMode); + +GpStatus WINGDIPAPI +GdipSetPenTransform(GpPen *pen, GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipGetPenTransform(GpPen *pen, GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipResetPenTransform(GpPen *pen); + +GpStatus WINGDIPAPI +GdipMultiplyPenTransform(GpPen *pen, GDIPCONST GpMatrix *matrix, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipTranslatePenTransform(GpPen *pen, REAL dx, REAL dy, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipScalePenTransform(GpPen *pen, REAL sx, REAL sy, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipRotatePenTransform(GpPen *pen, REAL angle, GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipSetPenColor(GpPen *pen, ARGB argb); + +GpStatus WINGDIPAPI +GdipGetPenColor(GpPen *pen, ARGB *argb); + +GpStatus WINGDIPAPI +GdipSetPenBrushFill(GpPen *pen, GpBrush *brush); + +GpStatus WINGDIPAPI +GdipGetPenBrushFill(GpPen *pen, GpBrush **brush); + +GpStatus WINGDIPAPI +GdipGetPenFillType(GpPen *pen, GpPenType* type); + +GpStatus WINGDIPAPI +GdipGetPenDashStyle(GpPen *pen, GpDashStyle *dashstyle); + +GpStatus WINGDIPAPI +GdipSetPenDashStyle(GpPen *pen, GpDashStyle dashstyle); + +GpStatus WINGDIPAPI +GdipGetPenDashOffset(GpPen *pen, REAL *offset); + +GpStatus WINGDIPAPI +GdipSetPenDashOffset(GpPen *pen, REAL offset); + +GpStatus WINGDIPAPI +GdipGetPenDashCount(GpPen *pen, INT *count); + +GpStatus WINGDIPAPI +GdipSetPenDashArray(GpPen *pen, GDIPCONST REAL *dash, INT count); + +GpStatus WINGDIPAPI +GdipGetPenDashArray(GpPen *pen, REAL *dash, INT count); + +GpStatus WINGDIPAPI +GdipGetPenCompoundCount(GpPen *pen, INT *count); + +GpStatus WINGDIPAPI +GdipSetPenCompoundArray(GpPen *pen, GDIPCONST REAL *dash, INT count); + +GpStatus WINGDIPAPI +GdipGetPenCompoundArray(GpPen *pen, REAL *dash, INT count); + +//---------------------------------------------------------------------------- +// CustomLineCap APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateCustomLineCap(GpPath* fillPath, GpPath* strokePath, + GpLineCap baseCap, REAL baseInset, GpCustomLineCap **customCap); + +GpStatus WINGDIPAPI +GdipDeleteCustomLineCap(GpCustomLineCap* customCap); + +GpStatus WINGDIPAPI +GdipCloneCustomLineCap(GpCustomLineCap* customCap, + GpCustomLineCap** clonedCap); + +GpStatus WINGDIPAPI +GdipGetCustomLineCapType(GpCustomLineCap* customCap, + CustomLineCapType* capType); + +GpStatus WINGDIPAPI +GdipSetCustomLineCapStrokeCaps(GpCustomLineCap* customCap, + GpLineCap startCap, GpLineCap endCap); + +GpStatus WINGDIPAPI +GdipGetCustomLineCapStrokeCaps(GpCustomLineCap* customCap, + GpLineCap* startCap, GpLineCap* endCap); + +GpStatus WINGDIPAPI +GdipSetCustomLineCapStrokeJoin(GpCustomLineCap* customCap, + GpLineJoin lineJoin); + +GpStatus WINGDIPAPI +GdipGetCustomLineCapStrokeJoin(GpCustomLineCap* customCap, + GpLineJoin* lineJoin); + +GpStatus WINGDIPAPI +GdipSetCustomLineCapBaseCap(GpCustomLineCap* customCap, GpLineCap baseCap); + +GpStatus WINGDIPAPI +GdipGetCustomLineCapBaseCap(GpCustomLineCap* customCap, GpLineCap* baseCap); + +GpStatus WINGDIPAPI +GdipSetCustomLineCapBaseInset(GpCustomLineCap* customCap, REAL inset); + +GpStatus WINGDIPAPI +GdipGetCustomLineCapBaseInset(GpCustomLineCap* customCap, REAL* inset); + +GpStatus WINGDIPAPI +GdipSetCustomLineCapWidthScale(GpCustomLineCap* customCap, REAL widthScale); + +GpStatus WINGDIPAPI +GdipGetCustomLineCapWidthScale(GpCustomLineCap* customCap, REAL* widthScale); + +//---------------------------------------------------------------------------- +// AdjustableArrowCap APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateAdjustableArrowCap(REAL height, REAL width, BOOL isFilled, + GpAdjustableArrowCap **cap); + +GpStatus WINGDIPAPI +GdipSetAdjustableArrowCapHeight(GpAdjustableArrowCap* cap, REAL height); + +GpStatus WINGDIPAPI +GdipGetAdjustableArrowCapHeight(GpAdjustableArrowCap* cap, REAL* height); + +GpStatus WINGDIPAPI +GdipSetAdjustableArrowCapWidth(GpAdjustableArrowCap* cap, REAL width); + +GpStatus WINGDIPAPI +GdipGetAdjustableArrowCapWidth(GpAdjustableArrowCap* cap, REAL* width); + +GpStatus WINGDIPAPI +GdipSetAdjustableArrowCapMiddleInset(GpAdjustableArrowCap* cap, + REAL middleInset); + +GpStatus WINGDIPAPI +GdipGetAdjustableArrowCapMiddleInset(GpAdjustableArrowCap* cap, + REAL* middleInset); + +GpStatus WINGDIPAPI +GdipSetAdjustableArrowCapFillState(GpAdjustableArrowCap* cap, BOOL fillState); + +GpStatus WINGDIPAPI +GdipGetAdjustableArrowCapFillState(GpAdjustableArrowCap* cap, BOOL* fillState); + +//---------------------------------------------------------------------------- +// Image APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipLoadImageFromStream(IStream* stream, GpImage **image); + +GpStatus WINGDIPAPI +GdipLoadImageFromFile(GDIPCONST WCHAR* filename, GpImage **image); + +GpStatus WINGDIPAPI +GdipLoadImageFromStreamICM(IStream* stream, GpImage **image); + +GpStatus WINGDIPAPI +GdipLoadImageFromFileICM(GDIPCONST WCHAR* filename, GpImage **image); + +GpStatus WINGDIPAPI +GdipCloneImage(GpImage *image, GpImage **cloneImage); + +GpStatus WINGDIPAPI +GdipDisposeImage(GpImage *image); + +GpStatus WINGDIPAPI +GdipSaveImageToFile(GpImage *image, GDIPCONST WCHAR* filename, + GDIPCONST CLSID* clsidEncoder, + GDIPCONST EncoderParameters* encoderParams); + +GpStatus WINGDIPAPI +GdipSaveImageToStream(GpImage *image, IStream* stream, + GDIPCONST CLSID* clsidEncoder, + GDIPCONST EncoderParameters* encoderParams); + +GpStatus WINGDIPAPI +GdipSaveAdd(GpImage *image, GDIPCONST EncoderParameters* encoderParams); + +GpStatus WINGDIPAPI +GdipSaveAddImage(GpImage *image, GpImage* newImage, + GDIPCONST EncoderParameters* encoderParams); + +GpStatus WINGDIPAPI +GdipGetImageGraphicsContext(GpImage *image, GpGraphics **graphics); + +GpStatus WINGDIPAPI +GdipGetImageBounds(GpImage *image, GpRectF *srcRect, GpUnit *srcUnit); + +GpStatus WINGDIPAPI +GdipGetImageDimension(GpImage *image, REAL *width, REAL *height); + +GpStatus WINGDIPAPI +GdipGetImageType(GpImage *image, ImageType *type); + +GpStatus WINGDIPAPI +GdipGetImageWidth(GpImage *image, UINT *width); + +GpStatus WINGDIPAPI +GdipGetImageHeight(GpImage *image, UINT *height); + +GpStatus WINGDIPAPI +GdipGetImageHorizontalResolution(GpImage *image, REAL *resolution); + +GpStatus WINGDIPAPI +GdipGetImageVerticalResolution(GpImage *image, REAL *resolution); + +GpStatus WINGDIPAPI +GdipGetImageFlags(GpImage *image, UINT *flags); + +GpStatus WINGDIPAPI +GdipGetImageRawFormat(GpImage *image, GUID *format); + +GpStatus WINGDIPAPI +GdipGetImagePixelFormat(GpImage *image, PixelFormat *format); + +GpStatus WINGDIPAPI +GdipGetImageThumbnail(GpImage *image, UINT thumbWidth, UINT thumbHeight, + GpImage **thumbImage, + GetThumbnailImageAbort callback, VOID * callbackData); + +GpStatus WINGDIPAPI +GdipGetEncoderParameterListSize(GpImage *image, GDIPCONST CLSID* clsidEncoder, + UINT* size); + +GpStatus WINGDIPAPI +GdipGetEncoderParameterList(GpImage *image, GDIPCONST CLSID* clsidEncoder, + UINT size, EncoderParameters* buffer); + +GpStatus WINGDIPAPI +GdipImageGetFrameDimensionsCount(GpImage* image, UINT* count); + +GpStatus WINGDIPAPI +GdipImageGetFrameDimensionsList(GpImage* image, GUID* dimensionIDs, + UINT count); + +GpStatus WINGDIPAPI +GdipImageGetFrameCount(GpImage *image, GDIPCONST GUID* dimensionID, + UINT* count); + +GpStatus WINGDIPAPI +GdipImageSelectActiveFrame(GpImage *image, GDIPCONST GUID* dimensionID, + UINT frameIndex); + +GpStatus WINGDIPAPI +GdipImageRotateFlip(GpImage *image, RotateFlipType rfType); + +GpStatus WINGDIPAPI +GdipGetImagePalette(GpImage *image, ColorPalette *palette, INT size); + +GpStatus WINGDIPAPI +GdipSetImagePalette(GpImage *image, GDIPCONST ColorPalette *palette); + +GpStatus WINGDIPAPI +GdipGetImagePaletteSize(GpImage *image, INT *size); + +GpStatus WINGDIPAPI +GdipGetPropertyCount(GpImage *image, UINT* numOfProperty); + +GpStatus WINGDIPAPI +GdipGetPropertyIdList(GpImage *image, UINT numOfProperty, PROPID* list); + +GpStatus WINGDIPAPI +GdipGetPropertyItemSize(GpImage *image, PROPID propId, UINT* size); + +GpStatus WINGDIPAPI +GdipGetPropertyItem(GpImage *image, PROPID propId,UINT propSize, + PropertyItem* buffer); + +GpStatus WINGDIPAPI +GdipGetPropertySize(GpImage *image, UINT* totalBufferSize, + UINT* numProperties); + +GpStatus WINGDIPAPI +GdipGetAllPropertyItems(GpImage *image, UINT totalBufferSize, + UINT numProperties, PropertyItem* allItems); + +GpStatus WINGDIPAPI +GdipRemovePropertyItem(GpImage *image, PROPID propId); + +GpStatus WINGDIPAPI +GdipSetPropertyItem(GpImage *image, GDIPCONST PropertyItem* item); + +#if (GDIPVER >= 0x0110) +GpStatus WINGDIPAPI +GdipFindFirstImageItem(GpImage *image, ImageItemData* item); + +GpStatus WINGDIPAPI +GdipFindNextImageItem(GpImage *image, ImageItemData* item); + +GpStatus WINGDIPAPI +GdipGetImageItemData(GpImage *image, ImageItemData* item); +#endif //(GDIPVER >= 0x0110) + +GpStatus WINGDIPAPI +GdipImageForceValidation(GpImage *image); + +//---------------------------------------------------------------------------- +// Bitmap APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateBitmapFromStream(IStream* stream, GpBitmap **bitmap); + +GpStatus WINGDIPAPI +GdipCreateBitmapFromFile(GDIPCONST WCHAR* filename, GpBitmap **bitmap); + +GpStatus WINGDIPAPI +GdipCreateBitmapFromStreamICM(IStream* stream, GpBitmap **bitmap); + +GpStatus WINGDIPAPI +GdipCreateBitmapFromFileICM(GDIPCONST WCHAR* filename, GpBitmap **bitmap); + +GpStatus WINGDIPAPI +GdipCreateBitmapFromScan0(INT width, + INT height, + INT stride, + PixelFormat format, + _In_reads_opt_(_Inexpressible_("height * stride")) BYTE* scan0, + + _Outptr_ GpBitmap** bitmap); + +GpStatus WINGDIPAPI +GdipCreateBitmapFromGraphics(INT width, + INT height, + GpGraphics* target, + GpBitmap** bitmap); + +GpStatus WINGDIPAPI +GdipCreateBitmapFromDirectDrawSurface(IDirectDrawSurface7* surface, + GpBitmap** bitmap); + +GpStatus WINGDIPAPI +GdipCreateBitmapFromGdiDib(GDIPCONST BITMAPINFO* gdiBitmapInfo, + VOID* gdiBitmapData, + GpBitmap** bitmap); + +GpStatus WINGDIPAPI +GdipCreateBitmapFromHBITMAP(HBITMAP hbm, + HPALETTE hpal, + GpBitmap** bitmap); + +GpStatus WINGDIPAPI +GdipCreateHBITMAPFromBitmap(GpBitmap* bitmap, + HBITMAP* hbmReturn, + ARGB background); + +GpStatus WINGDIPAPI +GdipCreateBitmapFromHICON(HICON hicon, + GpBitmap** bitmap); + +GpStatus WINGDIPAPI +GdipCreateHICONFromBitmap(GpBitmap* bitmap, + HICON* hbmReturn); + +GpStatus WINGDIPAPI +GdipCreateBitmapFromResource(HINSTANCE hInstance, + GDIPCONST WCHAR* lpBitmapName, + GpBitmap** bitmap); + +GpStatus WINGDIPAPI +GdipCloneBitmapArea(REAL x, REAL y, REAL width, REAL height, + PixelFormat format, + GpBitmap *srcBitmap, + GpBitmap **dstBitmap); + +GpStatus WINGDIPAPI +GdipCloneBitmapAreaI(INT x, + INT y, + INT width, + INT height, + PixelFormat format, + GpBitmap *srcBitmap, + GpBitmap **dstBitmap); + +GpStatus WINGDIPAPI +GdipBitmapLockBits(GpBitmap* bitmap, + GDIPCONST GpRect* rect, + UINT flags, + PixelFormat format, + BitmapData* lockedBitmapData); + +GpStatus WINGDIPAPI +GdipBitmapUnlockBits(GpBitmap* bitmap, + BitmapData* lockedBitmapData); + +GpStatus WINGDIPAPI +GdipBitmapGetPixel(GpBitmap* bitmap, INT x, INT y, ARGB *color); + +GpStatus WINGDIPAPI +GdipBitmapSetPixel(GpBitmap* bitmap, INT x, INT y, ARGB color); + +#if (GDIPVER >= 0x0110) +GpStatus WINGDIPAPI GdipImageSetAbort( + GpImage *pImage, + GdiplusAbort *pIAbort + ); + +GpStatus WINGDIPAPI GdipGraphicsSetAbort( + GpGraphics *pGraphics, + GdiplusAbort *pIAbort + ); + +GpStatus WINGDIPAPI +GdipBitmapConvertFormat( + IN GpBitmap *pInputBitmap, + PixelFormat format, + DitherType dithertype, + PaletteType palettetype, + ColorPalette *palette, + REAL alphaThresholdPercent + ); + +GpStatus WINGDIPAPI +GdipInitializePalette( + OUT ColorPalette *palette, // output palette. must be allocated. + PaletteType palettetype, // palette enumeration type. + INT optimalColors, // how many optimal colors + BOOL useTransparentColor, // add a transparent color to the palette. + GpBitmap *bitmap // optional bitmap for median cut. + ); + +GpStatus WINGDIPAPI +GdipBitmapApplyEffect( + GpBitmap* bitmap, + CGpEffect *effect, + RECT *roi, + BOOL useAuxData, + VOID **auxData, + INT *auxDataSize + ); + +GpStatus WINGDIPAPI +GdipBitmapCreateApplyEffect( + GpBitmap **inputBitmaps, + INT numInputs, + CGpEffect *effect, + RECT *roi, + RECT *outputRect, + GpBitmap **outputBitmap, + BOOL useAuxData, + VOID **auxData, + INT *auxDataSize +); + +GpStatus WINGDIPAPI +GdipBitmapGetHistogram( + GpBitmap* bitmap, + IN HistogramFormat format, + IN UINT NumberOfEntries, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel0, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel1, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel2, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel3 +); + +GpStatus WINGDIPAPI +GdipBitmapGetHistogramSize( + IN HistogramFormat format, + OUT UINT *NumberOfEntries +); +#endif + +GpStatus WINGDIPAPI +GdipBitmapSetResolution(GpBitmap* bitmap, REAL xdpi, REAL ydpi); + +//---------------------------------------------------------------------------- +// ImageAttributes APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateImageAttributes(GpImageAttributes **imageattr); + +GpStatus WINGDIPAPI +GdipCloneImageAttributes(GDIPCONST GpImageAttributes *imageattr, + GpImageAttributes **cloneImageattr); + +GpStatus WINGDIPAPI +GdipDisposeImageAttributes(GpImageAttributes *imageattr); + +GpStatus WINGDIPAPI +GdipSetImageAttributesToIdentity(GpImageAttributes *imageattr, + ColorAdjustType type); +GpStatus WINGDIPAPI +GdipResetImageAttributes(GpImageAttributes *imageattr, + ColorAdjustType type); + +GpStatus WINGDIPAPI +GdipSetImageAttributesColorMatrix(GpImageAttributes *imageattr, + ColorAdjustType type, + BOOL enableFlag, + GDIPCONST ColorMatrix* colorMatrix, + GDIPCONST ColorMatrix* grayMatrix, + ColorMatrixFlags flags); + +GpStatus WINGDIPAPI +GdipSetImageAttributesThreshold(GpImageAttributes *imageattr, + ColorAdjustType type, + BOOL enableFlag, + REAL threshold); + +GpStatus WINGDIPAPI +GdipSetImageAttributesGamma(GpImageAttributes *imageattr, + ColorAdjustType type, + BOOL enableFlag, + REAL gamma); + +GpStatus WINGDIPAPI +GdipSetImageAttributesNoOp(GpImageAttributes *imageattr, + ColorAdjustType type, + BOOL enableFlag); + +GpStatus WINGDIPAPI +GdipSetImageAttributesColorKeys(GpImageAttributes *imageattr, + ColorAdjustType type, + BOOL enableFlag, + ARGB colorLow, + ARGB colorHigh); + +GpStatus WINGDIPAPI +GdipSetImageAttributesOutputChannel(GpImageAttributes *imageattr, + ColorAdjustType type, + BOOL enableFlag, + ColorChannelFlags channelFlags); + +GpStatus WINGDIPAPI +GdipSetImageAttributesOutputChannelColorProfile(GpImageAttributes *imageattr, + ColorAdjustType type, + BOOL enableFlag, + GDIPCONST + WCHAR *colorProfileFilename); + +GpStatus WINGDIPAPI +GdipSetImageAttributesRemapTable(GpImageAttributes *imageattr, + ColorAdjustType type, + BOOL enableFlag, + UINT mapSize, + GDIPCONST ColorMap *map); +GpStatus WINGDIPAPI +GdipSetImageAttributesWrapMode( + GpImageAttributes *imageAttr, + WrapMode wrap, + ARGB argb, + BOOL clamp +); + +GpStatus WINGDIPAPI +GdipSetImageAttributesICMMode( + GpImageAttributes *imageAttr, + BOOL on +); + +GpStatus WINGDIPAPI +GdipGetImageAttributesAdjustedPalette( + GpImageAttributes *imageAttr, + ColorPalette * colorPalette, + ColorAdjustType colorAdjustType +); + +//---------------------------------------------------------------------------- +// Graphics APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipFlush(GpGraphics *graphics, GpFlushIntention intention); + +GpStatus WINGDIPAPI +GdipCreateFromHDC(HDC hdc, GpGraphics **graphics); + +GpStatus WINGDIPAPI +GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, GpGraphics **graphics); + +GpStatus WINGDIPAPI +GdipCreateFromHWND(HWND hwnd, GpGraphics **graphics); + +GpStatus WINGDIPAPI +GdipCreateFromHWNDICM(HWND hwnd, GpGraphics **graphics); + +GpStatus WINGDIPAPI +GdipDeleteGraphics(GpGraphics *graphics); + +GpStatus WINGDIPAPI +GdipGetDC(GpGraphics* graphics, HDC * hdc); + +GpStatus WINGDIPAPI +GdipReleaseDC(GpGraphics* graphics, HDC hdc); + +GpStatus WINGDIPAPI +GdipSetCompositingMode(GpGraphics *graphics, CompositingMode compositingMode); + +GpStatus WINGDIPAPI +GdipGetCompositingMode(GpGraphics *graphics, CompositingMode *compositingMode); + +GpStatus WINGDIPAPI +GdipSetRenderingOrigin(GpGraphics *graphics, INT x, INT y); + +GpStatus WINGDIPAPI +GdipGetRenderingOrigin(GpGraphics *graphics, INT *x, INT *y); + +GpStatus WINGDIPAPI +GdipSetCompositingQuality(GpGraphics *graphics, + CompositingQuality compositingQuality); + +GpStatus WINGDIPAPI +GdipGetCompositingQuality(GpGraphics *graphics, + CompositingQuality *compositingQuality); + +GpStatus WINGDIPAPI +GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode smoothingMode); + +GpStatus WINGDIPAPI +GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *smoothingMode); + +GpStatus WINGDIPAPI +GdipSetPixelOffsetMode(GpGraphics* graphics, PixelOffsetMode pixelOffsetMode); + +GpStatus WINGDIPAPI +GdipGetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode *pixelOffsetMode); + +GpStatus WINGDIPAPI +GdipSetTextRenderingHint(GpGraphics *graphics, TextRenderingHint mode); + +GpStatus WINGDIPAPI +GdipGetTextRenderingHint(GpGraphics *graphics, TextRenderingHint *mode); + +GpStatus WINGDIPAPI +GdipSetTextContrast(GpGraphics *graphics, UINT contrast); + +GpStatus WINGDIPAPI +GdipGetTextContrast(GpGraphics *graphics, UINT * contrast); + +GpStatus WINGDIPAPI +GdipSetInterpolationMode(GpGraphics *graphics, + InterpolationMode interpolationMode); + +GpStatus WINGDIPAPI +GdipGetInterpolationMode(GpGraphics *graphics, + InterpolationMode *interpolationMode); + +GpStatus WINGDIPAPI +GdipSetWorldTransform(GpGraphics *graphics, GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipResetWorldTransform(GpGraphics *graphics); + +GpStatus WINGDIPAPI +GdipMultiplyWorldTransform(GpGraphics *graphics, GDIPCONST GpMatrix *matrix, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipTranslateWorldTransform(GpGraphics *graphics, REAL dx, REAL dy, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipScaleWorldTransform(GpGraphics *graphics, REAL sx, REAL sy, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipRotateWorldTransform(GpGraphics *graphics, REAL angle, + GpMatrixOrder order); + +GpStatus WINGDIPAPI +GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix); + +GpStatus WINGDIPAPI +GdipResetPageTransform(GpGraphics *graphics); + +GpStatus WINGDIPAPI +GdipGetPageUnit(GpGraphics *graphics, GpUnit *unit); + +GpStatus WINGDIPAPI +GdipGetPageScale(GpGraphics *graphics, REAL *scale); + +GpStatus WINGDIPAPI +GdipSetPageUnit(GpGraphics *graphics, GpUnit unit); + +GpStatus WINGDIPAPI +GdipSetPageScale(GpGraphics *graphics, REAL scale); + +GpStatus WINGDIPAPI +GdipGetDpiX(GpGraphics *graphics, REAL* dpi); + +GpStatus WINGDIPAPI +GdipGetDpiY(GpGraphics *graphics, REAL* dpi); + +GpStatus WINGDIPAPI +GdipTransformPoints(GpGraphics *graphics, GpCoordinateSpace destSpace, + GpCoordinateSpace srcSpace, GpPointF *points, + INT count); + +GpStatus WINGDIPAPI +GdipTransformPointsI(GpGraphics *graphics, GpCoordinateSpace destSpace, + GpCoordinateSpace srcSpace, GpPoint *points, + INT count); + +GpStatus WINGDIPAPI +GdipGetNearestColor(GpGraphics *graphics, ARGB* argb); + +// Creates the Win9x Halftone Palette (even on NT) with correct Desktop colors +HPALETTE WINGDIPAPI +GdipCreateHalftonePalette(); + +GpStatus WINGDIPAPI +GdipDrawLine(GpGraphics *graphics, GpPen *pen, REAL x1, REAL y1, + REAL x2, REAL y2); + +GpStatus WINGDIPAPI +GdipDrawLineI(GpGraphics *graphics, GpPen *pen, INT x1, INT y1, + INT x2, INT y2); + +GpStatus WINGDIPAPI +GdipDrawLines(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, + INT count); + +GpStatus WINGDIPAPI +GdipDrawLinesI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, + INT count); + +GpStatus WINGDIPAPI +GdipDrawArc(GpGraphics *graphics, GpPen *pen, REAL x, REAL y, + REAL width, REAL height, REAL startAngle, REAL sweepAngle); + +GpStatus WINGDIPAPI +GdipDrawArcI(GpGraphics *graphics, GpPen *pen, INT x, INT y, + INT width, INT height, REAL startAngle, REAL sweepAngle); + +GpStatus WINGDIPAPI +GdipDrawBezier(GpGraphics *graphics, GpPen *pen, REAL x1, REAL y1, + REAL x2, REAL y2, REAL x3, REAL y3, REAL x4, REAL y4); + +GpStatus WINGDIPAPI +GdipDrawBezierI(GpGraphics *graphics, GpPen *pen, INT x1, INT y1, + INT x2, INT y2, INT x3, INT y3, INT x4, INT y4); + +GpStatus WINGDIPAPI +GdipDrawBeziers(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, + INT count); + +GpStatus WINGDIPAPI +GdipDrawBeziersI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, + INT count); + +GpStatus WINGDIPAPI +GdipDrawRectangle(GpGraphics *graphics, GpPen *pen, REAL x, REAL y, + REAL width, REAL height); + +GpStatus WINGDIPAPI +GdipDrawRectangleI(GpGraphics *graphics, GpPen *pen, INT x, INT y, + INT width, INT height); + +GpStatus WINGDIPAPI +GdipDrawRectangles(GpGraphics *graphics, GpPen *pen, GDIPCONST GpRectF *rects, + INT count); + +GpStatus WINGDIPAPI +GdipDrawRectanglesI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpRect *rects, + INT count); + +GpStatus WINGDIPAPI +GdipDrawEllipse(GpGraphics *graphics, GpPen *pen, REAL x, REAL y, + REAL width, REAL height); + +GpStatus WINGDIPAPI +GdipDrawEllipseI(GpGraphics *graphics, GpPen *pen, INT x, INT y, + INT width, INT height); + +GpStatus WINGDIPAPI +GdipDrawPie(GpGraphics *graphics, GpPen *pen, REAL x, REAL y, + REAL width, REAL height, REAL startAngle, + REAL sweepAngle); + +GpStatus WINGDIPAPI +GdipDrawPieI(GpGraphics *graphics, GpPen *pen, INT x, INT y, + INT width, INT height, REAL startAngle, REAL sweepAngle); + +GpStatus WINGDIPAPI +GdipDrawPolygon(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, + INT count); + +GpStatus WINGDIPAPI +GdipDrawPolygonI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, + INT count); + +GpStatus WINGDIPAPI +GdipDrawPath(GpGraphics *graphics, GpPen *pen, GpPath *path); + +GpStatus WINGDIPAPI +GdipDrawCurve(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, + INT count); + +GpStatus WINGDIPAPI +GdipDrawCurveI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, + INT count); + +GpStatus WINGDIPAPI +GdipDrawCurve2(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, + INT count, REAL tension); + +GpStatus WINGDIPAPI +GdipDrawCurve2I(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, + INT count, REAL tension); + +GpStatus WINGDIPAPI +GdipDrawCurve3(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, + INT count, INT offset, INT numberOfSegments, REAL tension); + +GpStatus WINGDIPAPI +GdipDrawCurve3I(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, + INT count, INT offset, INT numberOfSegments, REAL tension); + +GpStatus WINGDIPAPI +GdipDrawClosedCurve(GpGraphics *graphics, GpPen *pen, + GDIPCONST GpPointF *points, INT count); + +GpStatus WINGDIPAPI +GdipDrawClosedCurveI(GpGraphics *graphics, GpPen *pen, + GDIPCONST GpPoint *points, INT count); + +GpStatus WINGDIPAPI +GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen, + GDIPCONST GpPointF *points, INT count, REAL tension); + +GpStatus WINGDIPAPI +GdipDrawClosedCurve2I(GpGraphics *graphics, GpPen *pen, + GDIPCONST GpPoint *points, INT count, REAL tension); + +GpStatus WINGDIPAPI +GdipGraphicsClear(GpGraphics *graphics, ARGB color); + +GpStatus WINGDIPAPI +GdipFillRectangle(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, + REAL width, REAL height); + +GpStatus WINGDIPAPI +GdipFillRectangleI(GpGraphics *graphics, GpBrush *brush, INT x, INT y, + INT width, INT height); + +GpStatus WINGDIPAPI +GdipFillRectangles(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpRectF *rects, INT count); + +GpStatus WINGDIPAPI +GdipFillRectanglesI(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpRect *rects, INT count); + +GpStatus WINGDIPAPI +GdipFillPolygon(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpPointF *points, INT count, GpFillMode fillMode); + +GpStatus WINGDIPAPI +GdipFillPolygonI(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpPoint *points, INT count, GpFillMode fillMode); + +GpStatus WINGDIPAPI +GdipFillPolygon2(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpPointF *points, INT count); + +GpStatus WINGDIPAPI +GdipFillPolygon2I(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpPoint *points, INT count); + +GpStatus WINGDIPAPI +GdipFillEllipse(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, + REAL width, REAL height); + +GpStatus WINGDIPAPI +GdipFillEllipseI(GpGraphics *graphics, GpBrush *brush, INT x, INT y, + INT width, INT height); + +GpStatus WINGDIPAPI +GdipFillPie(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, + REAL width, REAL height, REAL startAngle, REAL sweepAngle); + +GpStatus WINGDIPAPI +GdipFillPieI(GpGraphics *graphics, GpBrush *brush, INT x, INT y, + INT width, INT height, REAL startAngle, REAL sweepAngle); + +GpStatus WINGDIPAPI +GdipFillPath(GpGraphics *graphics, GpBrush *brush, GpPath *path); + +GpStatus WINGDIPAPI +GdipFillClosedCurve(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpPointF *points, INT count); + +GpStatus WINGDIPAPI +GdipFillClosedCurveI(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpPoint *points, INT count); + +GpStatus WINGDIPAPI +GdipFillClosedCurve2(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpPointF *points, INT count, + REAL tension, GpFillMode fillMode); + +GpStatus WINGDIPAPI +GdipFillClosedCurve2I(GpGraphics *graphics, GpBrush *brush, + GDIPCONST GpPoint *points, INT count, + REAL tension, GpFillMode fillMode); + +GpStatus WINGDIPAPI +GdipFillRegion(GpGraphics *graphics, GpBrush *brush, + GpRegion *region); + +#if (GDIPVER >= 0x0110) +GpStatus +WINGDIPAPI +GdipDrawImageFX( + GpGraphics *graphics, + GpImage *image, + GpRectF *source, + GpMatrix *xForm, + CGpEffect *effect, + GpImageAttributes *imageAttributes, + GpUnit srcUnit + ); +#endif //(GDIPVER >= 0x0110) + +GpStatus WINGDIPAPI +GdipDrawImage(GpGraphics *graphics, GpImage *image, REAL x, REAL y); + +GpStatus WINGDIPAPI +GdipDrawImageI(GpGraphics *graphics, GpImage *image, INT x, INT y); + +GpStatus WINGDIPAPI +GdipDrawImageRect(GpGraphics *graphics, GpImage *image, REAL x, REAL y, + REAL width, REAL height); + +GpStatus WINGDIPAPI +GdipDrawImageRectI(GpGraphics *graphics, GpImage *image, INT x, INT y, + INT width, INT height); + +GpStatus WINGDIPAPI +GdipDrawImagePoints(GpGraphics *graphics, GpImage *image, + GDIPCONST GpPointF *dstpoints, INT count); + +GpStatus WINGDIPAPI +GdipDrawImagePointsI(GpGraphics *graphics, GpImage *image, + GDIPCONST GpPoint *dstpoints, INT count); + +GpStatus WINGDIPAPI +GdipDrawImagePointRect(GpGraphics *graphics, GpImage *image, REAL x, + REAL y, REAL srcx, REAL srcy, REAL srcwidth, + REAL srcheight, GpUnit srcUnit); + +GpStatus WINGDIPAPI +GdipDrawImagePointRectI(GpGraphics *graphics, GpImage *image, INT x, + INT y, INT srcx, INT srcy, INT srcwidth, + INT srcheight, GpUnit srcUnit); + +GpStatus WINGDIPAPI +GdipDrawImageRectRect(GpGraphics *graphics, GpImage *image, REAL dstx, + REAL dsty, REAL dstwidth, REAL dstheight, + REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, + GpUnit srcUnit, + GDIPCONST GpImageAttributes* imageAttributes, + DrawImageAbort callback, VOID * callbackData); + +GpStatus WINGDIPAPI +GdipDrawImageRectRectI(GpGraphics *graphics, GpImage *image, INT dstx, + INT dsty, INT dstwidth, INT dstheight, + INT srcx, INT srcy, INT srcwidth, INT srcheight, + GpUnit srcUnit, + GDIPCONST GpImageAttributes* imageAttributes, + DrawImageAbort callback, VOID * callbackData); + +GpStatus WINGDIPAPI +GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image, + GDIPCONST GpPointF *points, INT count, REAL srcx, + REAL srcy, REAL srcwidth, REAL srcheight, + GpUnit srcUnit, + GDIPCONST GpImageAttributes* imageAttributes, + DrawImageAbort callback, VOID * callbackData); + +GpStatus WINGDIPAPI +GdipDrawImagePointsRectI(GpGraphics *graphics, GpImage *image, + GDIPCONST GpPoint *points, INT count, INT srcx, + INT srcy, INT srcwidth, INT srcheight, + GpUnit srcUnit, + GDIPCONST GpImageAttributes* imageAttributes, + DrawImageAbort callback, VOID * callbackData); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileDestPoint( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST PointF & destPoint, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileDestPointI( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST Point & destPoint, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileDestRect( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST RectF & destRect, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileDestRectI( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST Rect & destRect, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileDestPoints( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST PointF * destPoints, + INT count, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileDestPointsI( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST Point * destPoints, + INT count, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileSrcRectDestPoint( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST PointF & destPoint, + GDIPCONST RectF & srcRect, + Unit srcUnit, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileSrcRectDestPointI( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST Point & destPoint, + GDIPCONST Rect & srcRect, + Unit srcUnit, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileSrcRectDestRect( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST RectF & destRect, + GDIPCONST RectF & srcRect, + Unit srcUnit, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileSrcRectDestRectI( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST Rect & destRect, + GDIPCONST Rect & srcRect, + Unit srcUnit, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileSrcRectDestPoints( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST PointF * destPoints, + INT count, + GDIPCONST RectF & srcRect, + Unit srcUnit, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipEnumerateMetafileSrcRectDestPointsI( + GpGraphics * graphics, + GDIPCONST GpMetafile * metafile, + GDIPCONST Point * destPoints, + INT count, + GDIPCONST Rect & srcRect, + Unit srcUnit, + EnumerateMetafileProc callback, + VOID * callbackData, + GDIPCONST GpImageAttributes * imageAttributes + ); + +GpStatus WINGDIPAPI +GdipPlayMetafileRecord( + GDIPCONST GpMetafile * metafile, + EmfPlusRecordType recordType, + UINT flags, + UINT dataSize, + GDIPCONST BYTE * data + ); + +GpStatus WINGDIPAPI +GdipSetClipGraphics(GpGraphics *graphics, GpGraphics *srcgraphics, + CombineMode combineMode); + +GpStatus WINGDIPAPI +GdipSetClipRect(GpGraphics *graphics, REAL x, REAL y, + REAL width, REAL height, CombineMode combineMode); + +GpStatus WINGDIPAPI +GdipSetClipRectI(GpGraphics *graphics, INT x, INT y, + INT width, INT height, CombineMode combineMode); + +GpStatus WINGDIPAPI +GdipSetClipPath(GpGraphics *graphics, GpPath *path, CombineMode combineMode); + +GpStatus WINGDIPAPI +GdipSetClipRegion(GpGraphics *graphics, GpRegion *region, + CombineMode combineMode); + +GpStatus WINGDIPAPI +GdipSetClipHrgn(GpGraphics *graphics, HRGN hRgn, CombineMode combineMode); + +GpStatus WINGDIPAPI +GdipResetClip(GpGraphics *graphics); + +GpStatus WINGDIPAPI +GdipTranslateClip(GpGraphics *graphics, REAL dx, REAL dy); + +GpStatus WINGDIPAPI +GdipTranslateClipI(GpGraphics *graphics, INT dx, INT dy); + +GpStatus WINGDIPAPI +GdipGetClip(GpGraphics *graphics, GpRegion *region); + +GpStatus WINGDIPAPI +GdipGetClipBounds(GpGraphics *graphics, GpRectF *rect); + +GpStatus WINGDIPAPI +GdipGetClipBoundsI(GpGraphics *graphics, GpRect *rect); + +GpStatus WINGDIPAPI +GdipIsClipEmpty(GpGraphics *graphics, BOOL *result); + +GpStatus WINGDIPAPI +GdipGetVisibleClipBounds(GpGraphics *graphics, GpRectF *rect); + +GpStatus WINGDIPAPI +GdipGetVisibleClipBoundsI(GpGraphics *graphics, GpRect *rect); + +GpStatus WINGDIPAPI +GdipIsVisibleClipEmpty(GpGraphics *graphics, BOOL *result); + +GpStatus WINGDIPAPI +GdipIsVisiblePoint(GpGraphics *graphics, REAL x, REAL y, + BOOL *result); + +GpStatus WINGDIPAPI +GdipIsVisiblePointI(GpGraphics *graphics, INT x, INT y, + BOOL *result); + +GpStatus WINGDIPAPI +GdipIsVisibleRect(GpGraphics *graphics, REAL x, REAL y, + REAL width, REAL height, BOOL *result); + +GpStatus WINGDIPAPI +GdipIsVisibleRectI(GpGraphics *graphics, INT x, INT y, + INT width, INT height, BOOL *result); + +GpStatus WINGDIPAPI +GdipSaveGraphics(GpGraphics *graphics, GraphicsState *state); + +GpStatus WINGDIPAPI +GdipRestoreGraphics(GpGraphics *graphics, GraphicsState state); + +GpStatus WINGDIPAPI +GdipBeginContainer(GpGraphics *graphics, GDIPCONST GpRectF* dstrect, + GDIPCONST GpRectF *srcrect, GpUnit unit, + GraphicsContainer *state); + +GpStatus WINGDIPAPI +GdipBeginContainerI(GpGraphics *graphics, GDIPCONST GpRect* dstrect, + GDIPCONST GpRect *srcrect, GpUnit unit, + GraphicsContainer *state); + +GpStatus WINGDIPAPI +GdipBeginContainer2(GpGraphics *graphics, GraphicsContainer* state); + +GpStatus WINGDIPAPI +GdipEndContainer(GpGraphics *graphics, GraphicsContainer state); + +GpStatus +GdipGetMetafileHeaderFromWmf( + HMETAFILE hWmf, + GDIPCONST WmfPlaceableFileHeader * wmfPlaceableFileHeader, + MetafileHeader * header + ); + +GpStatus +WINGDIPAPI +GdipGetMetafileHeaderFromEmf( + HENHMETAFILE hEmf, + MetafileHeader * header + ); + +GpStatus +WINGDIPAPI +GdipGetMetafileHeaderFromFile( + GDIPCONST WCHAR* filename, + MetafileHeader * header + ); + +GpStatus +WINGDIPAPI +GdipGetMetafileHeaderFromStream( + IStream * stream, + MetafileHeader * header + ); + +GpStatus +WINGDIPAPI +GdipGetMetafileHeaderFromMetafile( + GpMetafile * metafile, + MetafileHeader * header + ); + +GpStatus +WINGDIPAPI +GdipGetHemfFromMetafile( + GpMetafile * metafile, + HENHMETAFILE * hEmf + ); + +GpStatus WINGDIPAPI +GdipCreateStreamOnFile(GDIPCONST WCHAR * filename, UINT access, + IStream **stream); + +GpStatus WINGDIPAPI +GdipCreateMetafileFromWmf(HMETAFILE hWmf, BOOL deleteWmf, + GDIPCONST WmfPlaceableFileHeader * wmfPlaceableFileHeader, + GpMetafile **metafile); + +GpStatus WINGDIPAPI +GdipCreateMetafileFromEmf(HENHMETAFILE hEmf, BOOL deleteEmf, + GpMetafile **metafile); + +GpStatus WINGDIPAPI +GdipCreateMetafileFromFile(GDIPCONST WCHAR* file, GpMetafile **metafile); + +GpStatus WINGDIPAPI +GdipCreateMetafileFromWmfFile(GDIPCONST WCHAR* file, + GDIPCONST WmfPlaceableFileHeader * wmfPlaceableFileHeader, + GpMetafile **metafile); + +GpStatus WINGDIPAPI +GdipCreateMetafileFromStream(IStream * stream, GpMetafile **metafile); + + +GpStatus WINGDIPAPI +GdipRecordMetafile( + HDC referenceHdc, + EmfType type, + GDIPCONST GpRectF * frameRect, + MetafileFrameUnit frameUnit, + GDIPCONST WCHAR * description, + GpMetafile ** metafile + ); + +GpStatus WINGDIPAPI +GdipRecordMetafileI( + HDC referenceHdc, + EmfType type, + GDIPCONST GpRect * frameRect, + MetafileFrameUnit frameUnit, + GDIPCONST WCHAR * description, + GpMetafile ** metafile + ); + +GpStatus WINGDIPAPI +GdipRecordMetafileFileName( + GDIPCONST WCHAR* fileName, + HDC referenceHdc, + EmfType type, + GDIPCONST GpRectF * frameRect, + MetafileFrameUnit frameUnit, + GDIPCONST WCHAR * description, + GpMetafile ** metafile + ); + +GpStatus WINGDIPAPI +GdipRecordMetafileFileNameI( + GDIPCONST WCHAR* fileName, + HDC referenceHdc, + EmfType type, + GDIPCONST GpRect * frameRect, + MetafileFrameUnit frameUnit, + GDIPCONST WCHAR * description, + GpMetafile ** metafile + ); + +GpStatus WINGDIPAPI +GdipRecordMetafileStream( + IStream * stream, + HDC referenceHdc, + EmfType type, + GDIPCONST GpRectF * frameRect, + MetafileFrameUnit frameUnit, + GDIPCONST WCHAR * description, + GpMetafile ** metafile + ); + +GpStatus WINGDIPAPI +GdipRecordMetafileStreamI( + IStream * stream, + HDC referenceHdc, + EmfType type, + GDIPCONST GpRect * frameRect, + MetafileFrameUnit frameUnit, + GDIPCONST WCHAR * description, + GpMetafile ** metafile + ); + +GpStatus WINGDIPAPI +GdipSetMetafileDownLevelRasterizationLimit( + GpMetafile * metafile, + UINT metafileRasterizationLimitDpi + ); + +GpStatus WINGDIPAPI +GdipGetMetafileDownLevelRasterizationLimit( + GDIPCONST GpMetafile * metafile, + UINT * metafileRasterizationLimitDpi + ); + +GpStatus WINGDIPAPI +GdipGetImageDecodersSize(_Out_ UINT *numDecoders, _Out_ _Out_range_(>=, (*numDecoders) * sizeof(ImageCodecInfo)) UINT *size); + +GpStatus WINGDIPAPI +GdipGetImageDecoders(_In_ UINT numDecoders, + _In_ UINT size, + _Out_writes_bytes_(size) ImageCodecInfo *decoders); + +GpStatus WINGDIPAPI +GdipGetImageEncodersSize(_Out_ UINT *numEncoders, _Out_ _Out_range_(>=, (*numEncoders) * sizeof(ImageCodecInfo)) UINT *size); + +GpStatus WINGDIPAPI +GdipGetImageEncoders(_In_ UINT numEncoders, + _In_ UINT size, + _Out_writes_bytes_(size) ImageCodecInfo *encoders); + +GpStatus WINGDIPAPI +GdipComment(GpGraphics* graphics, UINT sizeData, GDIPCONST BYTE * data); + +//---------------------------------------------------------------------------- +// FontFamily APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name, + GpFontCollection *fontCollection, + GpFontFamily **fontFamily); + +GpStatus WINGDIPAPI +GdipDeleteFontFamily(GpFontFamily *fontFamily); + +GpStatus WINGDIPAPI +GdipCloneFontFamily(GpFontFamily *fontFamily, GpFontFamily **clonedFontFamily); + +GpStatus WINGDIPAPI +GdipGetGenericFontFamilySansSerif(GpFontFamily **nativeFamily); + +GpStatus WINGDIPAPI +GdipGetGenericFontFamilySerif(GpFontFamily **nativeFamily); + +GpStatus WINGDIPAPI +GdipGetGenericFontFamilyMonospace(GpFontFamily **nativeFamily); + + +GpStatus WINGDIPAPI +GdipGetFamilyName( + GDIPCONST GpFontFamily *family, + _Out_writes_(LF_FACESIZE) LPWSTR name, + LANGID language +); + +GpStatus WINGDIPAPI +GdipIsStyleAvailable(GDIPCONST GpFontFamily *family, INT style, + BOOL * IsStyleAvailable); + +GpStatus WINGDIPAPI +GdipFontCollectionEnumerable( + GpFontCollection* fontCollection, + GpGraphics* graphics, + INT * numFound +); + +GpStatus WINGDIPAPI GdipFontCollectionEnumerate( + GpFontCollection* fontCollection, + INT numSought, + GpFontFamily* gpfamilies[], + INT* numFound, + GpGraphics* graphics +); + +GpStatus WINGDIPAPI +GdipGetEmHeight(GDIPCONST GpFontFamily *family, INT style, + UINT16 * EmHeight); + +GpStatus WINGDIPAPI +GdipGetCellAscent(GDIPCONST GpFontFamily *family, INT style, + UINT16 * CellAscent); + +GpStatus WINGDIPAPI +GdipGetCellDescent(GDIPCONST GpFontFamily *family, INT style, + UINT16 * CellDescent); + +GpStatus WINGDIPAPI +GdipGetLineSpacing(GDIPCONST GpFontFamily *family, INT style, + UINT16 * LineSpacing); + + +//---------------------------------------------------------------------------- +// Font APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateFontFromDC( + HDC hdc, + GpFont **font +); + +GpStatus WINGDIPAPI +GdipCreateFontFromLogfontA( + HDC hdc, + GDIPCONST LOGFONTA *logfont, + GpFont **font +); + +GpStatus WINGDIPAPI +GdipCreateFontFromLogfontW( + HDC hdc, + GDIPCONST LOGFONTW *logfont, + GpFont **font +); + +GpStatus WINGDIPAPI +GdipCreateFont( + GDIPCONST GpFontFamily *fontFamily, + REAL emSize, + INT style, + Unit unit, + GpFont **font +); + +GpStatus WINGDIPAPI +GdipCloneFont(GpFont* font, GpFont** cloneFont); + +GpStatus WINGDIPAPI +GdipDeleteFont(GpFont* font); + +GpStatus WINGDIPAPI +GdipGetFamily(GpFont *font, GpFontFamily **family); + +GpStatus WINGDIPAPI +GdipGetFontStyle(GpFont *font, INT *style); + +GpStatus WINGDIPAPI +GdipGetFontSize(GpFont *font, REAL *size); + +GpStatus WINGDIPAPI +GdipGetFontUnit(GpFont *font, Unit *unit); + +GpStatus WINGDIPAPI +GdipGetFontHeight(GDIPCONST GpFont *font, GDIPCONST GpGraphics *graphics, + REAL *height); + +GpStatus WINGDIPAPI +GdipGetFontHeightGivenDPI(GDIPCONST GpFont *font, REAL dpi, REAL *height); + +GpStatus WINGDIPAPI +GdipGetLogFontA(GpFont * font, GpGraphics *graphics, LOGFONTA * logfontA); + +GpStatus WINGDIPAPI +GdipGetLogFontW(GpFont * font, GpGraphics *graphics, LOGFONTW * logfontW); + +GpStatus WINGDIPAPI +GdipNewInstalledFontCollection(GpFontCollection** fontCollection); + +GpStatus WINGDIPAPI +GdipNewPrivateFontCollection(GpFontCollection** fontCollection); + +GpStatus WINGDIPAPI +GdipDeletePrivateFontCollection(GpFontCollection** fontCollection); + +GpStatus WINGDIPAPI +GdipGetFontCollectionFamilyCount( + GpFontCollection* fontCollection, + INT * numFound +); + +GpStatus WINGDIPAPI +GdipGetFontCollectionFamilyList( + _In_ GpFontCollection* fontCollection, + _In_ INT numSought, + _Out_writes_to_(numSought, *numFound) GpFontFamily* gpfamilies[], + _Out_ INT* numFound +); + +GpStatus WINGDIPAPI +GdipPrivateAddFontFile( + GpFontCollection* fontCollection, + GDIPCONST WCHAR* filename +); + +GpStatus WINGDIPAPI +GdipPrivateAddMemoryFont( + GpFontCollection* fontCollection, + GDIPCONST void* memory, + INT length +); + +//---------------------------------------------------------------------------- +// Text APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipDrawString( + GpGraphics *graphics, + GDIPCONST WCHAR *string, + INT length, + GDIPCONST GpFont *font, + GDIPCONST RectF *layoutRect, + GDIPCONST GpStringFormat *stringFormat, + GDIPCONST GpBrush *brush +); + +GpStatus WINGDIPAPI +GdipMeasureString( + GpGraphics *graphics, + GDIPCONST WCHAR *string, + INT length, + GDIPCONST GpFont *font, + GDIPCONST RectF *layoutRect, + GDIPCONST GpStringFormat *stringFormat, + RectF *boundingBox, + INT *codepointsFitted, + INT *linesFilled +); + +GpStatus +WINGDIPAPI +GdipMeasureCharacterRanges( + GpGraphics *graphics, + GDIPCONST WCHAR *string, + INT length, + GDIPCONST GpFont *font, + GDIPCONST RectF &layoutRect, + GDIPCONST GpStringFormat *stringFormat, + INT regionCount, + GpRegion **regions +); + +GpStatus WINGDIPAPI +GdipDrawDriverString( + GpGraphics *graphics, + GDIPCONST UINT16 *text, + INT length, + GDIPCONST GpFont *font, + GDIPCONST GpBrush *brush, + GDIPCONST PointF *positions, + INT flags, + GDIPCONST GpMatrix *matrix +); + +GpStatus WINGDIPAPI +GdipMeasureDriverString( + GpGraphics *graphics, + GDIPCONST UINT16 *text, + INT length, + GDIPCONST GpFont *font, + GDIPCONST PointF *positions, + INT flags, + GDIPCONST GpMatrix *matrix, + RectF *boundingBox +); + +//---------------------------------------------------------------------------- +// String format APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateStringFormat( + INT formatAttributes, + LANGID language, + GpStringFormat **format +); + +GpStatus WINGDIPAPI +GdipStringFormatGetGenericDefault(GpStringFormat **format); + +GpStatus WINGDIPAPI +GdipStringFormatGetGenericTypographic(GpStringFormat **format); + +GpStatus WINGDIPAPI +GdipDeleteStringFormat(GpStringFormat *format); + +GpStatus WINGDIPAPI +GdipCloneStringFormat(GDIPCONST GpStringFormat *format, + GpStringFormat **newFormat); + +GpStatus WINGDIPAPI +GdipSetStringFormatFlags(GpStringFormat *format, INT flags); + +GpStatus WINGDIPAPI GdipGetStringFormatFlags(GDIPCONST GpStringFormat *format, + INT *flags); + +GpStatus WINGDIPAPI +GdipSetStringFormatAlign(GpStringFormat *format, StringAlignment align); + +GpStatus WINGDIPAPI +GdipGetStringFormatAlign(GDIPCONST GpStringFormat *format, + StringAlignment *align); + +GpStatus WINGDIPAPI +GdipSetStringFormatLineAlign(GpStringFormat *format, + StringAlignment align); + +GpStatus WINGDIPAPI +GdipGetStringFormatLineAlign(GDIPCONST GpStringFormat *format, + StringAlignment *align); + +GpStatus WINGDIPAPI +GdipSetStringFormatTrimming( + GpStringFormat *format, + StringTrimming trimming +); + +GpStatus WINGDIPAPI +GdipGetStringFormatTrimming( + GDIPCONST GpStringFormat *format, + StringTrimming *trimming +); + +GpStatus WINGDIPAPI +GdipSetStringFormatHotkeyPrefix(GpStringFormat *format, INT hotkeyPrefix); + +GpStatus WINGDIPAPI +GdipGetStringFormatHotkeyPrefix(GDIPCONST GpStringFormat *format, + INT *hotkeyPrefix); + +GpStatus WINGDIPAPI +GdipSetStringFormatTabStops(GpStringFormat *format, REAL firstTabOffset, + INT count, GDIPCONST REAL *tabStops); + +GpStatus WINGDIPAPI +GdipGetStringFormatTabStops(GDIPCONST GpStringFormat *format, INT count, + REAL *firstTabOffset, REAL *tabStops); + +GpStatus WINGDIPAPI +GdipGetStringFormatTabStopCount(GDIPCONST GpStringFormat *format, INT * count); + +GpStatus WINGDIPAPI +GdipSetStringFormatDigitSubstitution(GpStringFormat *format, LANGID language, + StringDigitSubstitute substitute); + +GpStatus WINGDIPAPI +GdipGetStringFormatDigitSubstitution(GDIPCONST GpStringFormat *format, + LANGID *language, + StringDigitSubstitute *substitute); + +GpStatus WINGDIPAPI +GdipGetStringFormatMeasurableCharacterRangeCount( + GDIPCONST GpStringFormat *format, + INT *count +); + +GpStatus WINGDIPAPI +GdipSetStringFormatMeasurableCharacterRanges( + GpStringFormat *format, + INT rangeCount, + GDIPCONST CharacterRange *ranges +); + +//---------------------------------------------------------------------------- +// Cached Bitmap APIs +//---------------------------------------------------------------------------- + +GpStatus WINGDIPAPI +GdipCreateCachedBitmap( + GpBitmap *bitmap, + GpGraphics *graphics, + GpCachedBitmap **cachedBitmap +); + +GpStatus WINGDIPAPI +GdipDeleteCachedBitmap(GpCachedBitmap *cachedBitmap); + +GpStatus WINGDIPAPI +GdipDrawCachedBitmap( + GpGraphics *graphics, + GpCachedBitmap *cachedBitmap, + INT x, + INT y +); + +UINT WINGDIPAPI +GdipEmfToWmfBits( + HENHMETAFILE hemf, + UINT cbData16, + _Out_writes_to_opt_(cbData16, return) LPBYTE pData16, + INT iMapMode, + INT eFlags +); + +GpStatus WINGDIPAPI +GdipSetImageAttributesCachedBackground( + GpImageAttributes *imageattr, + BOOL enableFlag +); + +GpStatus WINGDIPAPI +GdipTestControl( + GpTestControlEnum control, + void * param +); + +GpStatus WINAPI +GdiplusNotificationHook( + OUT ULONG_PTR *token +); + +VOID WINAPI +GdiplusNotificationUnhook( + ULONG_PTR token +); + +#if (GDIPVER >= 0x0110) +GpStatus WINGDIPAPI +GdipConvertToEmfPlus( + const GpGraphics* refGraphics, + GpMetafile* metafile, + INT* conversionFailureFlag, + EmfType emfType, + const WCHAR* description, + GpMetafile** out_metafile +); + +GpStatus WINGDIPAPI +GdipConvertToEmfPlusToFile( + const GpGraphics* refGraphics, + GpMetafile* metafile, + INT* conversionFailureFlag, + const WCHAR* filename, + EmfType emfType, + const WCHAR* description, + GpMetafile** out_metafile +); + +GpStatus WINGDIPAPI +GdipConvertToEmfPlusToStream( + const GpGraphics* refGraphics, + GpMetafile* metafile, + INT* conversionFailureFlag, + IStream* stream, + EmfType emfType, + const WCHAR* description, + GpMetafile** out_metafile +); +#endif //(GDIPVER >= 0x0110) + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_FLATAPI_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusfont.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusfont.h new file mode 100644 index 0000000000000000000000000000000000000000..7be2be9cfdc2d4d5831b3b575db47979c3e63b72 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusfont.h @@ -0,0 +1,289 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusFont.h +* +* Abstract: +* +* GDI+ Font class +* +\**************************************************************************/ + +#ifndef _GDIPLUSFONT_H +#define _GDIPLUSFONT_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +inline +Font::Font(IN HDC hdc) +{ + GpFont *font = NULL; + lastResult = DllExports::GdipCreateFontFromDC(hdc, &font); + + SetNativeFont(font); +} + +inline +Font::Font(IN HDC hdc, + IN const HFONT hfont) +{ + GpFont *font = NULL; + + if (hfont) + { + LOGFONTA lf; + + if(GetObjectA(hfont, sizeof(LOGFONTA), &lf)) + lastResult = DllExports::GdipCreateFontFromLogfontA(hdc, &lf, &font); + else + lastResult = DllExports::GdipCreateFontFromDC(hdc, &font); + } + else + { + lastResult = DllExports::GdipCreateFontFromDC(hdc, &font); + } + + SetNativeFont(font); +} + +inline +Font::Font(IN HDC hdc, + IN const LOGFONTW* logfont) +{ + GpFont *font = NULL; + if (logfont) + { + lastResult = DllExports::GdipCreateFontFromLogfontW(hdc, logfont, &font); + } + else + { + lastResult = DllExports::GdipCreateFontFromDC(hdc, &font); + } + + SetNativeFont(font); +} + +inline +Font::Font(IN HDC hdc, + IN const LOGFONTA* logfont) +{ + GpFont *font = NULL; + + if (logfont) + { + lastResult = DllExports::GdipCreateFontFromLogfontA(hdc, logfont, &font); + } + else + { + lastResult = DllExports::GdipCreateFontFromDC(hdc, &font); + } + + SetNativeFont(font); +} + +inline +Font::Font( + IN const FontFamily * family, + IN REAL emSize, + IN INT style, + IN Unit unit +) +{ + GpFont *font = NULL; + + lastResult = DllExports::GdipCreateFont(family ? family->nativeFamily : NULL, + emSize, + style, + unit, + &font); + + SetNativeFont(font); +} + +inline +Font::Font( + IN const WCHAR * familyName, + IN REAL emSize, + IN INT style, + IN Unit unit, + IN const FontCollection * fontCollection +) +{ + nativeFont = NULL; + + FontFamily family(familyName, fontCollection); + GpFontFamily *nativeFamily = family.nativeFamily; + + lastResult = family.GetLastStatus(); + + if (lastResult != Ok) + { + nativeFamily = FontFamily::GenericSansSerif()->nativeFamily; + lastResult = FontFamily::GenericSansSerif()->lastResult; + if (lastResult != Ok) + return; + } + + lastResult = DllExports::GdipCreateFont(nativeFamily, + emSize, + style, + unit, + &nativeFont); + + if (lastResult != Ok) + { + nativeFamily = FontFamily::GenericSansSerif()->nativeFamily; + lastResult = FontFamily::GenericSansSerif()->lastResult; + if (lastResult != Ok) + return; + + lastResult = DllExports::GdipCreateFont( + nativeFamily, + emSize, + style, + unit, + &nativeFont); + } +} + +inline Status +Font::GetLogFontA(IN const Graphics *g, + OUT LOGFONTA *logfontA) const +{ + return SetStatus(DllExports::GdipGetLogFontA(nativeFont, g ? g->nativeGraphics : NULL, logfontA)); + +} + +inline Status +Font::GetLogFontW(IN const Graphics *g, + OUT LOGFONTW *logfontW) const +{ + return SetStatus(DllExports::GdipGetLogFontW(nativeFont, g ? g->nativeGraphics : NULL, logfontW)); +} + + +inline Font* +Font::Clone() const +{ + GpFont *cloneFont = NULL; + + SetStatus(DllExports::GdipCloneFont(nativeFont, &cloneFont)); + + return new Font(cloneFont, lastResult); +} + +inline +Font::~Font() +{ + DllExports::GdipDeleteFont(nativeFont); +} + +// Operations + +inline BOOL +Font::IsAvailable() const +{ + return (nativeFont ? TRUE : FALSE); +} + +inline Status +Font::GetFamily(OUT FontFamily *family) const +{ + if (family == NULL) + { + return SetStatus(InvalidParameter); + } + + Status status = DllExports::GdipGetFamily(nativeFont, &(family->nativeFamily)); + family->SetStatus(status); + + return SetStatus(status); +} + +inline INT +Font::GetStyle() const +{ + INT style; + + SetStatus(DllExports::GdipGetFontStyle(nativeFont, &style)); + + return style; +} + +inline REAL +Font::GetSize() const +{ + REAL size; + SetStatus(DllExports::GdipGetFontSize(nativeFont, &size)); + return size; +} + +inline Unit +Font::GetUnit() const +{ + Unit unit; + SetStatus(DllExports::GdipGetFontUnit(nativeFont, &unit)); + return unit; +} + +inline REAL +Font::GetHeight(IN const Graphics *graphics) const +{ + REAL height; + SetStatus(DllExports::GdipGetFontHeight( + nativeFont, + graphics ? graphics->nativeGraphics : NULL, + &height + )); + return height; +} + + +inline REAL +Font::GetHeight(IN REAL dpi) const +{ + REAL height; + SetStatus(DllExports::GdipGetFontHeightGivenDPI(nativeFont, dpi, &height)); + return height; +} + +inline +Font::Font(IN GpFont* font, + IN Status status) +{ + lastResult = status; + SetNativeFont(font); +} + +inline VOID +Font::SetNativeFont(GpFont *Font) +{ + nativeFont = Font; +} + +inline Status +Font::GetLastStatus(void) const +{ + return lastResult; +} + +inline _Post_equal_to_(status) Status +Font::SetStatus(IN Status status) const +{ + if (status != Ok) + return (lastResult = status); + else + return status; +} + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusfontcollection.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusfontcollection.h new file mode 100644 index 0000000000000000000000000000000000000000..19e49b2b3e56ce828990db554a3c6d45935c31b9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusfontcollection.h @@ -0,0 +1,154 @@ +/**************************************************************************\ +* +* Copyright (c) 2000, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusFontCollection.h +* +* Abstract: +* +* Font collections (Installed and Private) +* +\**************************************************************************/ + +#ifndef _GDIPLUSFONTCOLL_H +#define _GDIPLUSFONTCOLL_H + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#if _MSC_VER >= 1400 +#pragma warning(disable:4365) /* signed/unsigned mismatch */ +#endif +#endif + +inline +FontCollection::FontCollection() +{ + nativeFontCollection = NULL; +} + +inline +FontCollection::~FontCollection() +{ +} + +inline INT +FontCollection::GetFamilyCount() const +{ + INT numFound = 0; + + lastResult = DllExports::GdipGetFontCollectionFamilyCount( + nativeFontCollection, &numFound); + + + + return numFound; +} + +inline Status +FontCollection::GetFamilies( + _In_ INT numSought, + _Out_writes_to_(numSought, *numFound) FontFamily * gpfamilies, + _Out_ INT * numFound +) const +{ + if (numSought <= 0 || gpfamilies == NULL || numFound == NULL) + { + return SetStatus(InvalidParameter); + } + *numFound = 0; + GpFontFamily **nativeFamilyList = new GpFontFamily*[numSought]; + + if (nativeFamilyList == NULL) + { + return SetStatus(OutOfMemory); + } + + Status status = DllExports::GdipGetFontCollectionFamilyList( + nativeFontCollection, + numSought, + nativeFamilyList, + numFound + ); + if (status == Ok) + { + for (INT i = 0; i < *numFound; i++) + { + DllExports::GdipCloneFontFamily(nativeFamilyList[i], + &gpfamilies[i].nativeFamily); + } + } + + delete [] nativeFamilyList; + + return SetStatus(status); +} + +inline Status FontCollection::GetLastStatus () const +{ + return lastResult; +} + +_Always_(_Post_satisfies_(return == status)) +inline Status +FontCollection::SetStatus(IN Status status) const +{ + lastResult = status; + return lastResult; +} + +inline +InstalledFontCollection::InstalledFontCollection() +{ + nativeFontCollection = NULL; + lastResult = DllExports::GdipNewInstalledFontCollection(&nativeFontCollection); +} + +inline +InstalledFontCollection::~InstalledFontCollection() +{ +} + +inline +PrivateFontCollection::PrivateFontCollection() +{ + nativeFontCollection = NULL; + lastResult = DllExports::GdipNewPrivateFontCollection(&nativeFontCollection); +} + +inline +PrivateFontCollection::~PrivateFontCollection() +{ + DllExports::GdipDeletePrivateFontCollection(&nativeFontCollection); +} + +inline Status +PrivateFontCollection::AddFontFile(IN const WCHAR* filename) +{ + return SetStatus(DllExports::GdipPrivateAddFontFile(nativeFontCollection, filename)); +} + +inline Status +PrivateFontCollection::AddMemoryFont(IN const void* memory, + IN INT length) +{ + return SetStatus(DllExports::GdipPrivateAddMemoryFont( + nativeFontCollection, + memory, + length)); +} + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _GDIPLUSFONTCOLL_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusfontfamily.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusfontfamily.h new file mode 100644 index 0000000000000000000000000000000000000000..04dc358be5b7039cf88313424b853475fdf5e8a1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusfontfamily.h @@ -0,0 +1,216 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusFontFamily.h +* +* Abstract: +* +* GDI+ Font Family class +* +\**************************************************************************/ + +#ifndef _GDIPLUS_FONT_FAMILY_H +#define _GDIPLUS_FONT_FAMILY_H + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +inline +FontFamily::FontFamily() : + nativeFamily (NULL), + lastResult (Ok) +{ +} + +inline +FontFamily::FontFamily( + IN const WCHAR* name, + IN const FontCollection* fontCollection +) +{ + nativeFamily = NULL; + lastResult = DllExports::GdipCreateFontFamilyFromName( + name, + fontCollection ? fontCollection->nativeFontCollection : NULL, + &nativeFamily + ); +} + +inline +FontFamily::FontFamily( + IN GpFontFamily *nativeOrig, + IN Status status +) +{ + lastResult = status; + nativeFamily = nativeOrig; +} + +inline const FontFamily * +FontFamily::GenericSansSerif() +{ + if (GenericSansSerifFontFamily != NULL) + { + return GenericSansSerifFontFamily; + } + + GenericSansSerifFontFamily = + (FontFamily*) GenericSansSerifFontFamilyBuffer; + + GenericSansSerifFontFamily->lastResult = + DllExports::GdipGetGenericFontFamilySansSerif( + &(GenericSansSerifFontFamily->nativeFamily) + ); + + return GenericSansSerifFontFamily; +} + +inline const FontFamily * +FontFamily::GenericSerif() +{ + if (GenericSerifFontFamily != NULL) + { + return GenericSerifFontFamily; + } + + GenericSerifFontFamily = + (FontFamily*) GenericSerifFontFamilyBuffer; + + GenericSerifFontFamily->lastResult = + DllExports::GdipGetGenericFontFamilySerif( + &(GenericSerifFontFamily->nativeFamily) + ); + + return GenericSerifFontFamily; +} + +inline const FontFamily * +FontFamily::GenericMonospace() +{ + if (GenericMonospaceFontFamily != NULL) + { + return GenericMonospaceFontFamily; + } + + GenericMonospaceFontFamily = + (FontFamily*) GenericMonospaceFontFamilyBuffer; + + GenericMonospaceFontFamily->lastResult = + DllExports::GdipGetGenericFontFamilyMonospace( + &(GenericMonospaceFontFamily->nativeFamily) + ); + + return GenericMonospaceFontFamily; +} + +inline FontFamily::~FontFamily() +{ + DllExports::GdipDeleteFontFamily (nativeFamily); +} + +inline FontFamily * +FontFamily::Clone() const +{ + GpFontFamily * clonedFamily = NULL; + + SetStatus(DllExports::GdipCloneFontFamily (nativeFamily, &clonedFamily)); + + return new FontFamily(clonedFamily, lastResult); +} + +inline Status +FontFamily::GetFamilyName( + _Out_writes_(LF_FACESIZE) LPWSTR name, + IN LANGID language +) const +{ + return SetStatus(DllExports::GdipGetFamilyName(nativeFamily, + name, + language)); +} + +inline BOOL +FontFamily::IsStyleAvailable(IN INT style) const +{ + BOOL StyleAvailable; + Status status; + + status = SetStatus(DllExports::GdipIsStyleAvailable(nativeFamily, style, &StyleAvailable)); + + if (status != Ok) + StyleAvailable = FALSE; + + return StyleAvailable; +} + + +inline UINT16 +FontFamily::GetEmHeight(IN INT style) const +{ + UINT16 EmHeight; + + SetStatus(DllExports::GdipGetEmHeight(nativeFamily, style, &EmHeight)); + + return EmHeight; +} + +inline UINT16 +FontFamily::GetCellAscent(IN INT style) const +{ + UINT16 CellAscent; + + SetStatus(DllExports::GdipGetCellAscent(nativeFamily, style, &CellAscent)); + + return CellAscent; +} + +inline UINT16 +FontFamily::GetCellDescent(IN INT style) const +{ + UINT16 CellDescent; + + SetStatus(DllExports::GdipGetCellDescent(nativeFamily, style, &CellDescent)); + + return CellDescent; +} + + +inline UINT16 +FontFamily::GetLineSpacing(IN INT style) const +{ + UINT16 LineSpacing; + + SetStatus(DllExports::GdipGetLineSpacing(nativeFamily, style, &LineSpacing)); + + return LineSpacing; + +} + +inline Status +FontFamily::GetLastStatus() const +{ + Status lastStatus = lastResult; + lastResult = Ok; + + return lastStatus; +} + +inline _Post_equal_to_(status) Status +FontFamily::SetStatus(Status status) const +{ + if (status != Ok) + return (lastResult = status); + else + return status; +} + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusgpstubs.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusgpstubs.h new file mode 100644 index 0000000000000000000000000000000000000000..f3eb9b878cea069549560d742a6f894b07741e86 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusgpstubs.h @@ -0,0 +1,116 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusGpStubs.h +* +* Abstract: +* +* Private GDI+ header file. +* +\**************************************************************************/ + +#ifndef _GDIPLUSGPSTUBS_H +#define _GDIPLUSGPSTUBS_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +//--------------------------------------------------------------------------- +// GDI+ classes for forward reference +//--------------------------------------------------------------------------- + +class Graphics; +class Pen; +class Brush; +class Matrix; +class Bitmap; +class Metafile; +class GraphicsPath; +class PathIterator; +class Region; +class Image; +class TextureBrush; +class HatchBrush; +class SolidBrush; +class LinearGradientBrush; +class PathGradientBrush; +class Font; +class FontFamily; +class FontCollection; +class InstalledFontCollection; +class PrivateFontCollection; +class ImageAttributes; +class CachedBitmap; + +//--------------------------------------------------------------------------- +// Private GDI+ classes for internal type checking +//--------------------------------------------------------------------------- +class GpGraphics {}; + +class GpBrush {}; +class GpTexture : public GpBrush {}; +class GpSolidFill : public GpBrush {}; +class GpLineGradient : public GpBrush {}; +class GpPathGradient : public GpBrush {}; +class GpHatch : public GpBrush {}; + +class GpPen {}; +class GpCustomLineCap {}; +class GpAdjustableArrowCap : public GpCustomLineCap {}; + +class GpImage {}; +class GpBitmap : public GpImage {}; +class GpMetafile : public GpImage {}; +class GpImageAttributes {}; + +class GpPath {}; +class GpRegion {}; +class GpPathIterator {}; + +class GpFontFamily {}; +class GpFont {}; +class GpStringFormat {}; +class GpFontCollection {}; +class GpInstalledFontCollection : public GpFontCollection {}; +class GpPrivateFontCollection : public GpFontCollection {}; + +class GpCachedBitmap; + +typedef _Return_type_success_(return == Ok) Status GpStatus; +typedef FillMode GpFillMode; +typedef WrapMode GpWrapMode; +typedef Unit GpUnit; +typedef CoordinateSpace GpCoordinateSpace; +typedef PointF GpPointF; +typedef Point GpPoint; +typedef RectF GpRectF; +typedef Rect GpRect; +typedef SizeF GpSizeF; +typedef HatchStyle GpHatchStyle; +typedef DashStyle GpDashStyle; +typedef LineCap GpLineCap; +typedef DashCap GpDashCap; + + +typedef PenAlignment GpPenAlignment; + +typedef LineJoin GpLineJoin; +typedef PenType GpPenType; + +typedef Matrix GpMatrix; +typedef BrushType GpBrushType; +typedef MatrixOrder GpMatrixOrder; +typedef FlushIntention GpFlushIntention; +typedef PathData GpPathData; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_GDIPLUSGPSTUBS.HPP + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusgraphics.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusgraphics.h new file mode 100644 index 0000000000000000000000000000000000000000..71ec98218da8d1d778481deda2652bb8ccfcb9a3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusgraphics.h @@ -0,0 +1,2565 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusGraphics.h +* +* Abstract: +* +* GDI+ Graphics Object +* +\**************************************************************************/ + +#ifndef _GDIPLUSGRAPHICS_H +#define _GDIPLUSGRAPHICS_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#if _MSC_VER >= 1400 +#pragma warning(disable:4365) /* signed/unsigned mismatch */ +#endif +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +class Graphics : public GdiplusBase +{ +public: + friend class Region; + friend class GraphicsPath; + friend class Image; + friend class Bitmap; + friend class Metafile; + friend class Font; + friend class FontFamily; + friend class FontCollection; + friend class CachedBitmap; + + static Graphics* FromHDC(IN HDC hdc) + { + return new Graphics(hdc); + } + + static Graphics* FromHDC(IN HDC hdc, + IN HANDLE hdevice) + { + return new Graphics(hdc, hdevice); + } + + static Graphics* FromHWND(IN HWND hwnd, + IN BOOL icm = FALSE) + { + return new Graphics(hwnd, icm); + } + + static Graphics* FromImage(IN Image *image) + { + return new Graphics(image); + } + + Graphics(IN HDC hdc) + { + GpGraphics *graphics = NULL; + + lastResult = DllExports::GdipCreateFromHDC(hdc, &graphics); + + SetNativeGraphics(graphics); + } + + Graphics(IN HDC hdc, + IN HANDLE hdevice) + { + GpGraphics *graphics = NULL; + + lastResult = DllExports::GdipCreateFromHDC2(hdc, hdevice, &graphics); + + SetNativeGraphics(graphics); + } + + Graphics(IN HWND hwnd, + IN BOOL icm = FALSE) + { + GpGraphics *graphics = NULL; + + if (icm) + { + lastResult = DllExports::GdipCreateFromHWNDICM(hwnd, &graphics); + } + else + { + lastResult = DllExports::GdipCreateFromHWND(hwnd, &graphics); + } + + SetNativeGraphics(graphics); + } + + Graphics(IN Image* image) + { + GpGraphics *graphics = NULL; + + if (image != NULL) + { + lastResult = DllExports::GdipGetImageGraphicsContext( + image->nativeImage, &graphics); + } + SetNativeGraphics(graphics); + } + + ~Graphics() + { + DllExports::GdipDeleteGraphics(nativeGraphics); + } + + VOID Flush(IN FlushIntention intention = FlushIntentionFlush) + { + DllExports::GdipFlush(nativeGraphics, intention); + } + + //------------------------------------------------------------------------ + // GDI Interop methods + //------------------------------------------------------------------------ + + // Locks the graphics until ReleaseDC is called + + HDC GetHDC() + { + HDC hdc = NULL; + + SetStatus(DllExports::GdipGetDC(nativeGraphics, &hdc)); + + return hdc; + } + + VOID ReleaseHDC(IN HDC hdc) + { + SetStatus(DllExports::GdipReleaseDC(nativeGraphics, hdc)); + } + + //------------------------------------------------------------------------ + // Rendering modes + //------------------------------------------------------------------------ + + Status SetRenderingOrigin(IN INT x, IN INT y) + { + return SetStatus( + DllExports::GdipSetRenderingOrigin( + nativeGraphics, x, y + ) + ); + } + + Status GetRenderingOrigin(OUT INT *x, OUT INT *y) const + { + return SetStatus( + DllExports::GdipGetRenderingOrigin( + nativeGraphics, x, y + ) + ); + } + + Status SetCompositingMode(IN CompositingMode compositingMode) + { + return SetStatus(DllExports::GdipSetCompositingMode(nativeGraphics, + compositingMode)); + } + + CompositingMode GetCompositingMode() const + { + CompositingMode mode; + + SetStatus(DllExports::GdipGetCompositingMode(nativeGraphics, + &mode)); + + return mode; + } + + Status SetCompositingQuality(IN CompositingQuality compositingQuality) + { + return SetStatus(DllExports::GdipSetCompositingQuality( + nativeGraphics, + compositingQuality)); + } + + CompositingQuality GetCompositingQuality() const + { + CompositingQuality quality; + + SetStatus(DllExports::GdipGetCompositingQuality( + nativeGraphics, + &quality)); + + return quality; + } + + Status SetTextRenderingHint(IN TextRenderingHint newMode) + { + return SetStatus(DllExports::GdipSetTextRenderingHint(nativeGraphics, + newMode)); + } + + TextRenderingHint GetTextRenderingHint() const + { + TextRenderingHint hint; + + SetStatus(DllExports::GdipGetTextRenderingHint(nativeGraphics, + &hint)); + + return hint; + } + + Status SetTextContrast(IN UINT contrast) + { + return SetStatus(DllExports::GdipSetTextContrast(nativeGraphics, + contrast)); + } + + UINT GetTextContrast() const + { + UINT contrast; + + SetStatus(DllExports::GdipGetTextContrast(nativeGraphics, + &contrast)); + + return contrast; + } + + InterpolationMode GetInterpolationMode() const + { + InterpolationMode mode = InterpolationModeInvalid; + + SetStatus(DllExports::GdipGetInterpolationMode(nativeGraphics, + &mode)); + + return mode; + } + + Status SetInterpolationMode(IN InterpolationMode interpolationMode) + { + return SetStatus(DllExports::GdipSetInterpolationMode(nativeGraphics, + interpolationMode)); + } + +#if (GDIPVER >= 0x0110) + Status SetAbort(GdiplusAbort *pIAbort) + { + return SetStatus(DllExports::GdipGraphicsSetAbort( + nativeGraphics, + pIAbort + )); + } +#endif //(GDIPVER >= 0x0110) + + SmoothingMode GetSmoothingMode() const + { + SmoothingMode smoothingMode = SmoothingModeInvalid; + + SetStatus(DllExports::GdipGetSmoothingMode(nativeGraphics, + &smoothingMode)); + + return smoothingMode; + } + + Status SetSmoothingMode(IN SmoothingMode smoothingMode) + { + return SetStatus(DllExports::GdipSetSmoothingMode(nativeGraphics, + smoothingMode)); + } + + PixelOffsetMode GetPixelOffsetMode() const + { + PixelOffsetMode pixelOffsetMode = PixelOffsetModeInvalid; + + SetStatus(DllExports::GdipGetPixelOffsetMode(nativeGraphics, + &pixelOffsetMode)); + + return pixelOffsetMode; + } + + Status SetPixelOffsetMode(IN PixelOffsetMode pixelOffsetMode) + { + return SetStatus(DllExports::GdipSetPixelOffsetMode(nativeGraphics, + pixelOffsetMode)); + } + + //------------------------------------------------------------------------ + // Manipulate current world transform + //------------------------------------------------------------------------ + + Status SetTransform(IN const Matrix* matrix) + { + return SetStatus(DllExports::GdipSetWorldTransform(nativeGraphics, + matrix->nativeMatrix)); + } + Status ResetTransform() + { + return SetStatus(DllExports::GdipResetWorldTransform(nativeGraphics)); + } + + Status MultiplyTransform(IN const Matrix* matrix, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipMultiplyWorldTransform(nativeGraphics, + matrix->nativeMatrix, + order)); + } + + Status TranslateTransform(IN REAL dx, + IN REAL dy, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipTranslateWorldTransform(nativeGraphics, + dx, dy, order)); + } + + Status ScaleTransform(IN REAL sx, + IN REAL sy, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipScaleWorldTransform(nativeGraphics, + sx, sy, order)); + } + + Status RotateTransform(IN REAL angle, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipRotateWorldTransform(nativeGraphics, + angle, order)); + } + + Status GetTransform(OUT Matrix* matrix) const + { + return SetStatus(DllExports::GdipGetWorldTransform(nativeGraphics, + matrix->nativeMatrix)); + } + + Status SetPageUnit(IN Unit unit) + { + return SetStatus(DllExports::GdipSetPageUnit(nativeGraphics, + unit)); + } + + Status SetPageScale(IN REAL scale) + { + return SetStatus(DllExports::GdipSetPageScale(nativeGraphics, + scale)); + } + + Unit GetPageUnit() const + { + Unit unit; + + SetStatus(DllExports::GdipGetPageUnit(nativeGraphics, &unit)); + + return unit; + } + + REAL GetPageScale() const + { + REAL scale; + + SetStatus(DllExports::GdipGetPageScale(nativeGraphics, &scale)); + + return scale; + } + + REAL GetDpiX() const + { + REAL dpi; + + SetStatus(DllExports::GdipGetDpiX(nativeGraphics, &dpi)); + + return dpi; + } + + REAL GetDpiY() const + { + REAL dpi; + + SetStatus(DllExports::GdipGetDpiY(nativeGraphics, &dpi)); + + return dpi; + } + + Status TransformPoints(IN CoordinateSpace destSpace, + IN CoordinateSpace srcSpace, + IN OUT PointF* pts, + IN INT count) const + { + return SetStatus(DllExports::GdipTransformPoints(nativeGraphics, + destSpace, + srcSpace, + pts, + count)); + } + + Status TransformPoints(IN CoordinateSpace destSpace, + IN CoordinateSpace srcSpace, + IN OUT Point* pts, + IN INT count) const + { + + return SetStatus(DllExports::GdipTransformPointsI(nativeGraphics, + destSpace, + srcSpace, + pts, + count)); + } + + //------------------------------------------------------------------------ + // GetNearestColor (for <= 8bpp surfaces). Note: Alpha is ignored. + //------------------------------------------------------------------------ + + Status GetNearestColor(IN OUT Color* color) const + { + if (color == NULL) + { + return SetStatus(InvalidParameter); + } + + ARGB argb = color->GetValue(); + + Status status = SetStatus(DllExports::GdipGetNearestColor(nativeGraphics, &argb)); + + color->SetValue(argb); + + return status; + } + + Status DrawLine(IN const Pen* pen, + IN REAL x1, + IN REAL y1, + IN REAL x2, + IN REAL y2) + { + return SetStatus(DllExports::GdipDrawLine(nativeGraphics, + pen->nativePen, x1, y1, x2, + y2)); + } + + Status DrawLine(IN const Pen* pen, + IN const PointF& pt1, + IN const PointF& pt2) + { + return DrawLine(pen, pt1.X, pt1.Y, pt2.X, pt2.Y); + } + + Status DrawLines(IN const Pen* pen, + IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipDrawLines(nativeGraphics, + pen->nativePen, + points, count)); + } + + Status DrawLine(IN const Pen* pen, + IN INT x1, + IN INT y1, + IN INT x2, + IN INT y2) + { + return SetStatus(DllExports::GdipDrawLineI(nativeGraphics, + pen->nativePen, + x1, + y1, + x2, + y2)); + } + + Status DrawLine(IN const Pen* pen, + IN const Point& pt1, + IN const Point& pt2) + { + return DrawLine(pen, + pt1.X, + pt1.Y, + pt2.X, + pt2.Y); + } + + Status DrawLines(IN const Pen* pen, + IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipDrawLinesI(nativeGraphics, + pen->nativePen, + points, + count)); + } + + Status DrawArc(IN const Pen* pen, + IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height, + IN REAL startAngle, + IN REAL sweepAngle) + { + return SetStatus(DllExports::GdipDrawArc(nativeGraphics, + pen->nativePen, + x, + y, + width, + height, + startAngle, + sweepAngle)); + } + + Status DrawArc(IN const Pen* pen, + IN const RectF& rect, + IN REAL startAngle, + IN REAL sweepAngle) + { + return DrawArc(pen, rect.X, rect.Y, rect.Width, rect.Height, + startAngle, sweepAngle); + } + + Status DrawArc(IN const Pen* pen, + IN INT x, + IN INT y, + IN INT width, + IN INT height, + IN REAL startAngle, + IN REAL sweepAngle) + { + return SetStatus(DllExports::GdipDrawArcI(nativeGraphics, + pen->nativePen, + x, + y, + width, + height, + startAngle, + sweepAngle)); + } + + + Status DrawArc(IN const Pen* pen, + IN const Rect& rect, + IN REAL startAngle, + IN REAL sweepAngle) + { + return DrawArc(pen, + rect.X, + rect.Y, + rect.Width, + rect.Height, + startAngle, + sweepAngle); + } + + Status DrawBezier(IN const Pen* pen, + IN REAL x1, + IN REAL y1, + IN REAL x2, + IN REAL y2, + IN REAL x3, + IN REAL y3, + IN REAL x4, + IN REAL y4) + { + return SetStatus(DllExports::GdipDrawBezier(nativeGraphics, + pen->nativePen, x1, y1, + x2, y2, x3, y3, x4, y4)); + } + + Status DrawBezier(IN const Pen* pen, + IN const PointF& pt1, + IN const PointF& pt2, + IN const PointF& pt3, + IN const PointF& pt4) + { + return DrawBezier(pen, + pt1.X, + pt1.Y, + pt2.X, + pt2.Y, + pt3.X, + pt3.Y, + pt4.X, + pt4.Y); + } + + Status DrawBeziers(IN const Pen* pen, + IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipDrawBeziers(nativeGraphics, + pen->nativePen, + points, + count)); + } + + Status DrawBezier(IN const Pen* pen, + IN INT x1, + IN INT y1, + IN INT x2, + IN INT y2, + IN INT x3, + IN INT y3, + IN INT x4, + IN INT y4) + { + return SetStatus(DllExports::GdipDrawBezierI(nativeGraphics, + pen->nativePen, + x1, + y1, + x2, + y2, + x3, + y3, + x4, + y4)); + } + + Status DrawBezier(IN const Pen* pen, + IN const Point& pt1, + IN const Point& pt2, + IN const Point& pt3, + IN const Point& pt4) + { + return DrawBezier(pen, + pt1.X, + pt1.Y, + pt2.X, + pt2.Y, + pt3.X, + pt3.Y, + pt4.X, + pt4.Y); + } + + Status DrawBeziers(IN const Pen* pen, + IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipDrawBeziersI(nativeGraphics, + pen->nativePen, + points, + count)); + } + + Status DrawRectangle(IN const Pen* pen, + IN const RectF& rect) + { + return DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height); + } + + Status DrawRectangle(IN const Pen* pen, + IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height) + { + return SetStatus(DllExports::GdipDrawRectangle(nativeGraphics, + pen->nativePen, x, y, + width, height)); + } + + Status DrawRectangles(IN const Pen* pen, + IN const RectF* rects, + IN INT count) + { + return SetStatus(DllExports::GdipDrawRectangles(nativeGraphics, + pen->nativePen, + rects, count)); + } + + Status DrawRectangle(IN const Pen* pen, + IN const Rect& rect) + { + return DrawRectangle(pen, + rect.X, + rect.Y, + rect.Width, + rect.Height); + } + + Status DrawRectangle(IN const Pen* pen, + IN INT x, + IN INT y, + IN INT width, + IN INT height) + { + return SetStatus(DllExports::GdipDrawRectangleI(nativeGraphics, + pen->nativePen, + x, + y, + width, + height)); + } + + Status DrawRectangles(IN const Pen* pen, + IN const Rect* rects, + IN INT count) + { + return SetStatus(DllExports::GdipDrawRectanglesI(nativeGraphics, + pen->nativePen, + rects, + count)); + } + + Status DrawEllipse(IN const Pen* pen, + IN const RectF& rect) + { + return DrawEllipse(pen, rect.X, rect.Y, rect.Width, rect.Height); + } + + Status DrawEllipse(IN const Pen* pen, + IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height) + { + return SetStatus(DllExports::GdipDrawEllipse(nativeGraphics, + pen->nativePen, + x, + y, + width, + height)); + } + + Status DrawEllipse(IN const Pen* pen, + IN const Rect& rect) + { + return DrawEllipse(pen, + rect.X, + rect.Y, + rect.Width, + rect.Height); + } + + Status DrawEllipse(IN const Pen* pen, + IN INT x, + IN INT y, + IN INT width, + IN INT height) + { + return SetStatus(DllExports::GdipDrawEllipseI(nativeGraphics, + pen->nativePen, + x, + y, + width, + height)); + } + + Status DrawPie(IN const Pen* pen, + IN const RectF& rect, + IN REAL startAngle, + IN REAL sweepAngle) + { + return DrawPie(pen, + rect.X, + rect.Y, + rect.Width, + rect.Height, + startAngle, + sweepAngle); + } + + Status DrawPie(IN const Pen* pen, + IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height, + IN REAL startAngle, + IN REAL sweepAngle) + { + return SetStatus(DllExports::GdipDrawPie(nativeGraphics, + pen->nativePen, + x, + y, + width, + height, + startAngle, + sweepAngle)); + } + + Status DrawPie(IN const Pen* pen, + IN const Rect& rect, + IN REAL startAngle, + IN REAL sweepAngle) + { + return DrawPie(pen, + rect.X, + rect.Y, + rect.Width, + rect.Height, + startAngle, + sweepAngle); + } + + Status DrawPie(IN const Pen* pen, + IN INT x, + IN INT y, + IN INT width, + IN INT height, + IN REAL startAngle, + IN REAL sweepAngle) + { + return SetStatus(DllExports::GdipDrawPieI(nativeGraphics, + pen->nativePen, + x, + y, + width, + height, + startAngle, + sweepAngle)); + } + + Status DrawPolygon(IN const Pen* pen, + IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipDrawPolygon(nativeGraphics, + pen->nativePen, + points, + count)); + } + + Status DrawPolygon(IN const Pen* pen, + IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipDrawPolygonI(nativeGraphics, + pen->nativePen, + points, + count)); + } + + Status DrawPath(IN const Pen* pen, + IN const GraphicsPath* path) + { + return SetStatus(DllExports::GdipDrawPath(nativeGraphics, + pen ? pen->nativePen : NULL, + path ? path->nativePath : NULL)); + } + + Status DrawCurve(IN const Pen* pen, + IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipDrawCurve(nativeGraphics, + pen->nativePen, points, + count)); + } + + Status DrawCurve(IN const Pen* pen, + IN const PointF* points, + IN INT count, + IN REAL tension) + { + return SetStatus(DllExports::GdipDrawCurve2(nativeGraphics, + pen->nativePen, points, + count, tension)); + } + + Status DrawCurve(IN const Pen* pen, + IN const PointF* points, + IN INT count, + IN INT offset, + IN INT numberOfSegments, + IN REAL tension = 0.5f) + { + return SetStatus(DllExports::GdipDrawCurve3(nativeGraphics, + pen->nativePen, points, + count, offset, + numberOfSegments, tension)); + } + + Status DrawCurve(IN const Pen* pen, + IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipDrawCurveI(nativeGraphics, + pen->nativePen, + points, + count)); + } + + Status DrawCurve(IN const Pen* pen, + IN const Point* points, + IN INT count, + IN REAL tension) + { + return SetStatus(DllExports::GdipDrawCurve2I(nativeGraphics, + pen->nativePen, + points, + count, + tension)); + } + + Status DrawCurve(IN const Pen* pen, + IN const Point* points, + IN INT count, + IN INT offset, + IN INT numberOfSegments, + IN REAL tension = 0.5f) + { + return SetStatus(DllExports::GdipDrawCurve3I(nativeGraphics, + pen->nativePen, + points, + count, + offset, + numberOfSegments, + tension)); + } + + Status DrawClosedCurve(IN const Pen* pen, + IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipDrawClosedCurve(nativeGraphics, + pen->nativePen, + points, count)); + } + + Status DrawClosedCurve(IN const Pen *pen, + IN const PointF* points, + IN INT count, + IN REAL tension) + { + return SetStatus(DllExports::GdipDrawClosedCurve2(nativeGraphics, + pen->nativePen, + points, count, + tension)); + } + + Status DrawClosedCurve(IN const Pen* pen, + IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipDrawClosedCurveI(nativeGraphics, + pen->nativePen, + points, + count)); + } + + Status DrawClosedCurve(IN const Pen *pen, + IN const Point* points, + IN INT count, + IN REAL tension) + { + return SetStatus(DllExports::GdipDrawClosedCurve2I(nativeGraphics, + pen->nativePen, + points, + count, + tension)); + } + + Status Clear(IN const Color &color) + { + return SetStatus(DllExports::GdipGraphicsClear( + nativeGraphics, + color.GetValue())); + } + + Status FillRectangle(IN const Brush* brush, + IN const RectF& rect) + { + return FillRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height); + } + + Status FillRectangle(IN const Brush* brush, + IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height) + { + return SetStatus(DllExports::GdipFillRectangle(nativeGraphics, + brush->nativeBrush, x, y, + width, height)); + } + + Status FillRectangles(IN const Brush* brush, + IN const RectF* rects, + IN INT count) + { + return SetStatus(DllExports::GdipFillRectangles(nativeGraphics, + brush->nativeBrush, + rects, count)); + } + + Status FillRectangle(IN const Brush* brush, + IN const Rect& rect) + { + return FillRectangle(brush, + rect.X, + rect.Y, + rect.Width, + rect.Height); + } + + Status FillRectangle(IN const Brush* brush, + IN INT x, + IN INT y, + IN INT width, + IN INT height) + { + return SetStatus(DllExports::GdipFillRectangleI(nativeGraphics, + brush->nativeBrush, + x, + y, + width, + height)); + } + + Status FillRectangles(IN const Brush* brush, + IN const Rect* rects, + IN INT count) + { + return SetStatus(DllExports::GdipFillRectanglesI(nativeGraphics, + brush->nativeBrush, + rects, + count)); + } + + Status FillPolygon(IN const Brush* brush, + IN const PointF* points, + IN INT count) + { + return FillPolygon(brush, points, count, FillModeAlternate); + } + + Status FillPolygon(IN const Brush* brush, + IN const PointF* points, + IN INT count, + IN FillMode fillMode) + { + return SetStatus(DllExports::GdipFillPolygon(nativeGraphics, + brush->nativeBrush, + points, count, fillMode)); + } + + Status FillPolygon(IN const Brush* brush, + IN const Point* points, + IN INT count) + { + return FillPolygon(brush, points, count, FillModeAlternate); + } + + Status FillPolygon(IN const Brush* brush, + IN const Point* points, + IN INT count, + IN FillMode fillMode) + { + return SetStatus(DllExports::GdipFillPolygonI(nativeGraphics, + brush->nativeBrush, + points, count, + fillMode)); + } + + Status FillEllipse(IN const Brush* brush, + IN const RectF& rect) + { + return FillEllipse(brush, rect.X, rect.Y, rect.Width, rect.Height); + } + + Status FillEllipse(IN const Brush* brush, + IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height) + { + return SetStatus(DllExports::GdipFillEllipse(nativeGraphics, + brush->nativeBrush, x, y, + width, height)); + } + + Status FillEllipse(IN const Brush* brush, + IN const Rect& rect) + { + return FillEllipse(brush, rect.X, rect.Y, rect.Width, rect.Height); + } + + Status FillEllipse(IN const Brush* brush, + IN INT x, + IN INT y, + IN INT width, + IN INT height) + { + return SetStatus(DllExports::GdipFillEllipseI(nativeGraphics, + brush->nativeBrush, + x, + y, + width, + height)); + } + + Status FillPie(IN const Brush* brush, + IN const RectF& rect, + IN REAL startAngle, + IN REAL sweepAngle) + { + return FillPie(brush, rect.X, rect.Y, rect.Width, rect.Height, + startAngle, sweepAngle); + } + + Status FillPie(IN const Brush* brush, + IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height, + IN REAL startAngle, + IN REAL sweepAngle) + { + return SetStatus(DllExports::GdipFillPie(nativeGraphics, + brush->nativeBrush, x, y, + width, height, startAngle, + sweepAngle)); + } + + Status FillPie(IN const Brush* brush, + IN const Rect& rect, + IN REAL startAngle, + IN REAL sweepAngle) + { + return FillPie(brush, rect.X, rect.Y, rect.Width, rect.Height, + startAngle, sweepAngle); + } + + Status FillPie(IN const Brush* brush, + IN INT x, + IN INT y, + IN INT width, + IN INT height, + IN REAL startAngle, + IN REAL sweepAngle) + { + return SetStatus(DllExports::GdipFillPieI(nativeGraphics, + brush->nativeBrush, + x, + y, + width, + height, + startAngle, + sweepAngle)); + } + + Status FillPath(IN const Brush* brush, + IN const GraphicsPath* path) + { + return SetStatus(DllExports::GdipFillPath(nativeGraphics, + brush->nativeBrush, + path->nativePath)); + } + + Status FillClosedCurve(IN const Brush* brush, + IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipFillClosedCurve(nativeGraphics, + brush->nativeBrush, + points, count)); + + } + + Status FillClosedCurve(IN const Brush* brush, + IN const PointF* points, + IN INT count, + IN FillMode fillMode, + IN REAL tension = 0.5f) + { + return SetStatus(DllExports::GdipFillClosedCurve2(nativeGraphics, + brush->nativeBrush, + points, count, + tension, fillMode)); + } + + Status FillClosedCurve(IN const Brush* brush, + IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipFillClosedCurveI(nativeGraphics, + brush->nativeBrush, + points, + count)); + } + + Status FillClosedCurve(IN const Brush* brush, + IN const Point* points, + IN INT count, + IN FillMode fillMode, + IN REAL tension = 0.5f) + { + return SetStatus(DllExports::GdipFillClosedCurve2I(nativeGraphics, + brush->nativeBrush, + points, count, + tension, fillMode)); + } + + Status FillRegion(IN const Brush* brush, + IN const Region* region) + { + return SetStatus(DllExports::GdipFillRegion(nativeGraphics, + brush->nativeBrush, + region->nativeRegion)); + } + + Status + DrawString( + IN const WCHAR *string, + IN INT length, + IN const Font *font, + IN const RectF &layoutRect, + IN const StringFormat *stringFormat, + IN const Brush *brush + ) + { + return SetStatus(DllExports::GdipDrawString( + nativeGraphics, + string, + length, + font ? font->nativeFont : NULL, + &layoutRect, + stringFormat ? stringFormat->nativeFormat : NULL, + brush ? brush->nativeBrush : NULL + )); + } + + Status + DrawString( + const WCHAR *string, + INT length, + const Font *font, + const PointF &origin, + const Brush *brush + ) + { + RectF rect(origin.X, origin.Y, 0.0f, 0.0f); + + return SetStatus(DllExports::GdipDrawString( + nativeGraphics, + string, + length, + font ? font->nativeFont : NULL, + &rect, + NULL, + brush ? brush->nativeBrush : NULL + )); + } + + Status + DrawString( + const WCHAR *string, + INT length, + const Font *font, + const PointF &origin, + const StringFormat *stringFormat, + const Brush *brush + ) + { + RectF rect(origin.X, origin.Y, 0.0f, 0.0f); + + return SetStatus(DllExports::GdipDrawString( + nativeGraphics, + string, + length, + font ? font->nativeFont : NULL, + &rect, + stringFormat ? stringFormat->nativeFormat : NULL, + brush ? brush->nativeBrush : NULL + )); + } + + Status + MeasureString( + IN const WCHAR *string, + IN INT length, + IN const Font *font, + IN const RectF &layoutRect, + IN const StringFormat *stringFormat, + OUT RectF *boundingBox, + OUT INT *codepointsFitted = 0, + OUT INT *linesFilled = 0 + ) const + { + return SetStatus(DllExports::GdipMeasureString( + nativeGraphics, + string, + length, + font ? font->nativeFont : NULL, + &layoutRect, + stringFormat ? stringFormat->nativeFormat : NULL, + boundingBox, + codepointsFitted, + linesFilled + )); + } + + Status + MeasureString( + IN const WCHAR *string, + IN INT length, + IN const Font *font, + IN const SizeF &layoutRectSize, + IN const StringFormat *stringFormat, + OUT SizeF *size, + OUT INT *codepointsFitted = 0, + OUT INT *linesFilled = 0 + ) const + { + RectF layoutRect(0, 0, layoutRectSize.Width, layoutRectSize.Height); + RectF boundingBox; + Status status; + + if (size == NULL) + { + return SetStatus(InvalidParameter); + } + + status = SetStatus(DllExports::GdipMeasureString( + nativeGraphics, + string, + length, + font ? font->nativeFont : NULL, + &layoutRect, + stringFormat ? stringFormat->nativeFormat : NULL, + size ? &boundingBox : NULL, + codepointsFitted, + linesFilled + )); + + if (size && status == Ok) + { + size->Width = boundingBox.Width; + size->Height = boundingBox.Height; + } + + return status; + } + + Status + MeasureString( + IN const WCHAR *string, + IN INT length, + IN const Font *font, + IN const PointF &origin, + IN const StringFormat *stringFormat, + OUT RectF *boundingBox + ) const + { + RectF rect(origin.X, origin.Y, 0.0f, 0.0f); + + return SetStatus(DllExports::GdipMeasureString( + nativeGraphics, + string, + length, + font ? font->nativeFont : NULL, + &rect, + stringFormat ? stringFormat->nativeFormat : NULL, + boundingBox, + NULL, + NULL + )); + } + + Status + MeasureString( + IN const WCHAR *string, + IN INT length, + IN const Font *font, + IN const RectF &layoutRect, + OUT RectF *boundingBox + ) const + { + return SetStatus(DllExports::GdipMeasureString( + nativeGraphics, + string, + length, + font ? font->nativeFont : NULL, + &layoutRect, + NULL, + boundingBox, + NULL, + NULL + )); + } + + Status + MeasureString( + IN const WCHAR *string, + IN INT length, + IN const Font *font, + IN const PointF &origin, + OUT RectF *boundingBox + ) const + { + RectF rect(origin.X, origin.Y, 0.0f, 0.0f); + + return SetStatus(DllExports::GdipMeasureString( + nativeGraphics, + string, + length, + font ? font->nativeFont : NULL, + &rect, + NULL, + boundingBox, + NULL, + NULL + )); + } + + + Status + MeasureCharacterRanges( + IN const WCHAR *string, + IN INT length, + IN const Font *font, + IN const RectF &layoutRect, + IN const StringFormat *stringFormat, + IN INT regionCount, + OUT Region *regions + ) const + { + if (!regions || regionCount <= 0) + { + return InvalidParameter; + } + + GpRegion **nativeRegions = new GpRegion* [regionCount]; + + if (!nativeRegions) + { + return OutOfMemory; + } + + for (INT i = 0; i < regionCount; i++) + { + nativeRegions[i] = regions[i].nativeRegion; + } + + Status status = SetStatus(DllExports::GdipMeasureCharacterRanges( + nativeGraphics, + string, + length, + font ? font->nativeFont : NULL, + layoutRect, + stringFormat ? stringFormat->nativeFormat : NULL, + regionCount, + nativeRegions + )); + + delete [] nativeRegions; + + return status; + } + + Status DrawDriverString( + IN const UINT16 *text, + IN INT length, + IN const Font *font, + IN const Brush *brush, + IN const PointF *positions, + IN INT flags, + IN const Matrix *matrix + ) + { + return SetStatus(DllExports::GdipDrawDriverString( + nativeGraphics, + text, + length, + font ? font->nativeFont : NULL, + brush ? brush->nativeBrush : NULL, + positions, + flags, + matrix ? matrix->nativeMatrix : NULL + )); + } + + Status MeasureDriverString( + IN const UINT16 *text, + IN INT length, + IN const Font *font, + IN const PointF *positions, + IN INT flags, + IN const Matrix *matrix, + OUT RectF *boundingBox + ) const + { + return SetStatus(DllExports::GdipMeasureDriverString( + nativeGraphics, + text, + length, + font ? font->nativeFont : NULL, + positions, + flags, + matrix ? matrix->nativeMatrix : NULL, + boundingBox + )); + } + + // Draw a cached bitmap on this graphics destination offset by + // x, y. Note this will fail with WrongState if the CachedBitmap + // native format differs from this Graphics. + + Status DrawCachedBitmap(IN CachedBitmap *cb, + IN INT x, + IN INT y) + { + return SetStatus(DllExports::GdipDrawCachedBitmap( + nativeGraphics, + cb->nativeCachedBitmap, + x, y + )); + } + + Status DrawImage(IN Image* image, + IN const PointF& point) + { + return DrawImage(image, point.X, point.Y); + } + + Status DrawImage(IN Image* image, + IN REAL x, + IN REAL y) + { + return SetStatus(DllExports::GdipDrawImage(nativeGraphics, + image ? image->nativeImage + : NULL, + x, + y)); + } + + Status DrawImage(IN Image* image, + IN const RectF& rect) + { + return DrawImage(image, rect.X, rect.Y, rect.Width, rect.Height); + } + + Status DrawImage(IN Image* image, + IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height) + { + return SetStatus(DllExports::GdipDrawImageRect(nativeGraphics, + image ? image->nativeImage + : NULL, + x, + y, + width, + height)); + } + + Status DrawImage(IN Image* image, + IN const Point& point) + { + return DrawImage(image, point.X, point.Y); + } + + Status DrawImage(IN Image* image, + IN INT x, + IN INT y) + { + return SetStatus(DllExports::GdipDrawImageI(nativeGraphics, + image ? image->nativeImage + : NULL, + x, + y)); + } + + Status DrawImage(IN Image* image, + IN const Rect& rect) + { + return DrawImage(image, + rect.X, + rect.Y, + rect.Width, + rect.Height); + } + + Status DrawImage(IN Image* image, + IN INT x, + IN INT y, + IN INT width, + IN INT height) { + return SetStatus(DllExports::GdipDrawImageRectI(nativeGraphics, + image ? image->nativeImage + : NULL, + x, + y, + width, + height)); + } + + + Status DrawImage(IN Image* image, + IN const PointF* destPoints, + IN INT count) + { + if (count != 3 && count != 4) + return SetStatus(InvalidParameter); + + return SetStatus(DllExports::GdipDrawImagePoints(nativeGraphics, + image ? image->nativeImage + : NULL, + destPoints, count)); + } + + Status DrawImage(IN Image* image, + IN const Point* destPoints, + IN INT count) + { + if (count != 3 && count != 4) + return SetStatus(InvalidParameter); + + return SetStatus(DllExports::GdipDrawImagePointsI(nativeGraphics, + image ? image->nativeImage + : NULL, + destPoints, + count)); + } + + Status DrawImage(IN Image* image, + IN REAL x, + IN REAL y, + IN REAL srcx, + IN REAL srcy, + IN REAL srcwidth, + IN REAL srcheight, + IN Unit srcUnit) + { + return SetStatus(DllExports::GdipDrawImagePointRect(nativeGraphics, + image ? image->nativeImage + : NULL, + x, y, + srcx, srcy, + srcwidth, srcheight, srcUnit)); + } + + Status DrawImage(IN Image* image, + IN const RectF& destRect, + IN REAL srcx, + IN REAL srcy, + IN REAL srcwidth, + IN REAL srcheight, + IN Unit srcUnit, + IN const ImageAttributes* imageAttributes = NULL, + IN DrawImageAbort callback = NULL, + IN VOID* callbackData = NULL) + { + return SetStatus(DllExports::GdipDrawImageRectRect(nativeGraphics, + image ? image->nativeImage + : NULL, + destRect.X, + destRect.Y, + destRect.Width, + destRect.Height, + srcx, srcy, + srcwidth, srcheight, + srcUnit, + imageAttributes + ? imageAttributes->nativeImageAttr + : NULL, + callback, + callbackData)); + } + + Status DrawImage(IN Image* image, + IN const PointF* destPoints, + IN INT count, + IN REAL srcx, + IN REAL srcy, + IN REAL srcwidth, + IN REAL srcheight, + IN Unit srcUnit, + IN const ImageAttributes* imageAttributes = NULL, + IN DrawImageAbort callback = NULL, + IN VOID* callbackData = NULL) + { + return SetStatus(DllExports::GdipDrawImagePointsRect(nativeGraphics, + image ? image->nativeImage + : NULL, + destPoints, count, + srcx, srcy, + srcwidth, + srcheight, + srcUnit, + imageAttributes + ? imageAttributes->nativeImageAttr + : NULL, + callback, + callbackData)); + } + + Status DrawImage(IN Image* image, + IN INT x, + IN INT y, + IN INT srcx, + IN INT srcy, + IN INT srcwidth, + IN INT srcheight, + IN Unit srcUnit) + { + return SetStatus(DllExports::GdipDrawImagePointRectI(nativeGraphics, + image ? image->nativeImage + : NULL, + x, + y, + srcx, + srcy, + srcwidth, + srcheight, + srcUnit)); + } + + Status DrawImage(IN Image* image, + IN const Rect& destRect, + IN INT srcx, + IN INT srcy, + IN INT srcwidth, + IN INT srcheight, + IN Unit srcUnit, + IN const ImageAttributes* imageAttributes = NULL, + IN DrawImageAbort callback = NULL, + IN VOID* callbackData = NULL) + { + return SetStatus(DllExports::GdipDrawImageRectRectI(nativeGraphics, + image ? image->nativeImage + : NULL, + destRect.X, + destRect.Y, + destRect.Width, + destRect.Height, + srcx, + srcy, + srcwidth, + srcheight, + srcUnit, + imageAttributes + ? imageAttributes->nativeImageAttr + : NULL, + callback, + callbackData)); + } + + Status DrawImage(IN Image* image, + IN const Point* destPoints, + IN INT count, + IN INT srcx, + IN INT srcy, + IN INT srcwidth, + IN INT srcheight, + IN Unit srcUnit, + IN const ImageAttributes* imageAttributes = NULL, + IN DrawImageAbort callback = NULL, + IN VOID* callbackData = NULL) + { + return SetStatus(DllExports::GdipDrawImagePointsRectI(nativeGraphics, + image ? image->nativeImage + : NULL, + destPoints, + count, + srcx, + srcy, + srcwidth, + srcheight, + srcUnit, + imageAttributes + ? imageAttributes->nativeImageAttr + : NULL, + callback, + callbackData)); + } + +#if (GDIPVER >= 0x0110) + Status DrawImage( + IN Image *image, + IN const RectF &destRect, + IN const RectF &sourceRect, + IN Unit srcUnit, + IN const ImageAttributes *imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipDrawImageRectRect( + nativeGraphics, + image->nativeImage, + destRect.X, + destRect.Y, + destRect.Width, + destRect.Height, + sourceRect.X, + sourceRect.Y, + sourceRect.Width, + sourceRect.Height, + srcUnit, + imageAttributes ? imageAttributes->nativeImageAttr : NULL, + NULL, + NULL + )); + } + + Status DrawImage( + IN Image *image, + IN RectF *sourceRect, + IN Matrix *xForm, + IN Effect *effect, + IN ImageAttributes *imageAttributes, + IN Unit srcUnit + ) + { + return SetStatus(DllExports::GdipDrawImageFX( + nativeGraphics, + image->nativeImage, + sourceRect, + xForm ? xForm->nativeMatrix : NULL, + effect ? effect->nativeEffect : NULL, + imageAttributes ? imageAttributes->nativeImageAttr : NULL, + srcUnit + )); + } +#endif //(GDIPVER >= 0x0110) + + // The following methods are for playing an EMF+ to a graphics + // via the enumeration interface. Each record of the EMF+ is + // sent to the callback (along with the callbackData). Then + // the callback can invoke the Metafile::PlayRecord method + // to play the particular record. + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const PointF & destPoint, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileDestPoint( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destPoint, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const Point & destPoint, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileDestPointI( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destPoint, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const RectF & destRect, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileDestRect( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destRect, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const Rect & destRect, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileDestRectI( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destRect, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const PointF * destPoints, + IN INT count, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileDestPoints( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destPoints, + count, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const Point * destPoints, + IN INT count, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileDestPointsI( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destPoints, + count, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const PointF & destPoint, + IN const RectF & srcRect, + IN Unit srcUnit, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileSrcRectDestPoint( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destPoint, + srcRect, + srcUnit, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const Point & destPoint, + IN const Rect & srcRect, + IN Unit srcUnit, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileSrcRectDestPointI( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destPoint, + srcRect, + srcUnit, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const RectF & destRect, + IN const RectF & srcRect, + IN Unit srcUnit, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileSrcRectDestRect( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destRect, + srcRect, + srcUnit, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const Rect & destRect, + IN const Rect & srcRect, + IN Unit srcUnit, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileSrcRectDestRectI( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destRect, + srcRect, + srcUnit, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const PointF * destPoints, + IN INT count, + IN const RectF & srcRect, + IN Unit srcUnit, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileSrcRectDestPoints( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destPoints, + count, + srcRect, + srcUnit, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status + EnumerateMetafile( + IN const Metafile * metafile, + IN const Point * destPoints, + IN INT count, + IN const Rect & srcRect, + IN Unit srcUnit, + IN EnumerateMetafileProc callback, + IN VOID * callbackData = NULL, + IN const ImageAttributes * imageAttributes = NULL + ) + { + return SetStatus(DllExports::GdipEnumerateMetafileSrcRectDestPointsI( + nativeGraphics, + (const GpMetafile *)(metafile ? metafile->nativeImage:NULL), + destPoints, + count, + srcRect, + srcUnit, + callback, + callbackData, + imageAttributes ? imageAttributes->nativeImageAttr : NULL)); + } + + Status SetClip(IN const Graphics* g, + IN CombineMode combineMode = CombineModeReplace) + { + return SetStatus(DllExports::GdipSetClipGraphics(nativeGraphics, + g->nativeGraphics, + combineMode)); + } + + Status SetClip(IN const RectF& rect, + IN CombineMode combineMode = CombineModeReplace) + { + return SetStatus(DllExports::GdipSetClipRect(nativeGraphics, + rect.X, rect.Y, + rect.Width, rect.Height, + combineMode)); + } + + Status SetClip(IN const Rect& rect, + IN CombineMode combineMode = CombineModeReplace) + { + return SetStatus(DllExports::GdipSetClipRectI(nativeGraphics, + rect.X, rect.Y, + rect.Width, rect.Height, + combineMode)); + } + + Status SetClip(IN const GraphicsPath* path, + IN CombineMode combineMode = CombineModeReplace) + { + return SetStatus(DllExports::GdipSetClipPath(nativeGraphics, + path->nativePath, + combineMode)); + } + + Status SetClip(IN const Region* region, + IN CombineMode combineMode = CombineModeReplace) + { + return SetStatus(DllExports::GdipSetClipRegion(nativeGraphics, + region->nativeRegion, + combineMode)); + } + + // This is different than the other SetClip methods because it assumes + // that the HRGN is already in device units, so it doesn't transform + // the coordinates in the HRGN. + + Status SetClip(IN HRGN hRgn, + IN CombineMode combineMode = CombineModeReplace) + { + return SetStatus(DllExports::GdipSetClipHrgn(nativeGraphics, hRgn, + combineMode)); + } + + Status IntersectClip(IN const RectF& rect) + { + return SetStatus(DllExports::GdipSetClipRect(nativeGraphics, + rect.X, rect.Y, + rect.Width, rect.Height, + CombineModeIntersect)); + } + + Status IntersectClip(IN const Rect& rect) + { + return SetStatus(DllExports::GdipSetClipRectI(nativeGraphics, + rect.X, rect.Y, + rect.Width, rect.Height, + CombineModeIntersect)); + } + + Status IntersectClip(IN const Region* region) + { + return SetStatus(DllExports::GdipSetClipRegion(nativeGraphics, + region->nativeRegion, + CombineModeIntersect)); + } + + Status ExcludeClip(IN const RectF& rect) + { + return SetStatus(DllExports::GdipSetClipRect(nativeGraphics, + rect.X, rect.Y, + rect.Width, rect.Height, + CombineModeExclude)); + } + + Status ExcludeClip(IN const Rect& rect) + { + return SetStatus(DllExports::GdipSetClipRectI(nativeGraphics, + rect.X, rect.Y, + rect.Width, rect.Height, + CombineModeExclude)); + } + + Status ExcludeClip(IN const Region* region) + { + return SetStatus(DllExports::GdipSetClipRegion(nativeGraphics, + region->nativeRegion, + CombineModeExclude)); + } + + Status ResetClip() + { + return SetStatus(DllExports::GdipResetClip(nativeGraphics)); + } + + Status TranslateClip(IN REAL dx, + IN REAL dy) + { + return SetStatus(DllExports::GdipTranslateClip(nativeGraphics, dx, dy)); + } + + Status TranslateClip(IN INT dx, + IN INT dy) + { + return SetStatus(DllExports::GdipTranslateClipI(nativeGraphics, + dx, dy)); + } + + Status GetClip(OUT Region* region) const + { + return SetStatus(DllExports::GdipGetClip(nativeGraphics, + region->nativeRegion)); + } + + Status GetClipBounds(OUT RectF* rect) const + { + return SetStatus(DllExports::GdipGetClipBounds(nativeGraphics, rect)); + } + + Status GetClipBounds(OUT Rect* rect) const + { + return SetStatus(DllExports::GdipGetClipBoundsI(nativeGraphics, rect)); + } + + BOOL IsClipEmpty() const + { + BOOL booln = FALSE; + + SetStatus(DllExports::GdipIsClipEmpty(nativeGraphics, &booln)); + + return booln; + } + + Status GetVisibleClipBounds(OUT RectF *rect) const + { + + return SetStatus(DllExports::GdipGetVisibleClipBounds(nativeGraphics, + rect)); + } + + Status GetVisibleClipBounds(OUT Rect *rect) const + { + return SetStatus(DllExports::GdipGetVisibleClipBoundsI(nativeGraphics, + rect)); + } + + BOOL IsVisibleClipEmpty() const + { + BOOL booln = FALSE; + + SetStatus(DllExports::GdipIsVisibleClipEmpty(nativeGraphics, &booln)); + + return booln; + } + + BOOL IsVisible(IN INT x, + IN INT y) const + { + return IsVisible(Point(x,y)); + } + + BOOL IsVisible(IN const Point& point) const + { + BOOL booln = FALSE; + + SetStatus(DllExports::GdipIsVisiblePointI(nativeGraphics, + point.X, + point.Y, + &booln)); + + return booln; + } + + BOOL IsVisible(IN INT x, + IN INT y, + IN INT width, + IN INT height) const + { + return IsVisible(Rect(x, y, width, height)); + } + + BOOL IsVisible(IN const Rect& rect) const + { + + BOOL booln = TRUE; + + SetStatus(DllExports::GdipIsVisibleRectI(nativeGraphics, + rect.X, + rect.Y, + rect.Width, + rect.Height, + &booln)); + return booln; + } + + BOOL IsVisible(IN REAL x, + IN REAL y) const + { + return IsVisible(PointF(x, y)); + } + + BOOL IsVisible(IN const PointF& point) const + { + BOOL booln = FALSE; + + SetStatus(DllExports::GdipIsVisiblePoint(nativeGraphics, + point.X, + point.Y, + &booln)); + + return booln; + } + + BOOL IsVisible(IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height) const + { + return IsVisible(RectF(x, y, width, height)); + } + + BOOL IsVisible(IN const RectF& rect) const + { + BOOL booln = TRUE; + + SetStatus(DllExports::GdipIsVisibleRect(nativeGraphics, + rect.X, + rect.Y, + rect.Width, + rect.Height, + &booln)); + return booln; + } + + GraphicsState Save() const + { + GraphicsState gstate; + + SetStatus(DllExports::GdipSaveGraphics(nativeGraphics, &gstate)); + + return gstate; + } + + Status Restore(IN GraphicsState gstate) + { + return SetStatus(DllExports::GdipRestoreGraphics(nativeGraphics, + gstate)); + } + + GraphicsContainer BeginContainer(IN const RectF &dstrect, + IN const RectF &srcrect, + IN Unit unit) + { + GraphicsContainer state; + + SetStatus(DllExports::GdipBeginContainer(nativeGraphics, &dstrect, + &srcrect, unit, &state)); + + return state; + } + + GraphicsContainer BeginContainer(IN const Rect &dstrect, + IN const Rect &srcrect, + IN Unit unit) + { + GraphicsContainer state; + + SetStatus(DllExports::GdipBeginContainerI(nativeGraphics, &dstrect, + &srcrect, unit, &state)); + + return state; + } + + GraphicsContainer BeginContainer() + { + GraphicsContainer state; + + SetStatus(DllExports::GdipBeginContainer2(nativeGraphics, &state)); + + return state; + } + + Status EndContainer(IN GraphicsContainer state) + { + return SetStatus(DllExports::GdipEndContainer(nativeGraphics, state)); + } + + // Only valid when recording metafiles. + + Status AddMetafileComment(IN const BYTE * data, + IN UINT sizeData) + { + return SetStatus(DllExports::GdipComment(nativeGraphics, sizeData, data)); + } + + static HPALETTE GetHalftonePalette() + { + return DllExports::GdipCreateHalftonePalette(); + } + + Status GetLastStatus() const + { + Status lastStatus = lastResult; + lastResult = Ok; + + return lastStatus; + } + +private: + Graphics(const Graphics &); + Graphics& operator=(const Graphics &); + +protected: + Graphics(GpGraphics* graphics) + { + lastResult = Ok; + SetNativeGraphics(graphics); + } + + VOID SetNativeGraphics(GpGraphics *graphics) + { + this->nativeGraphics = graphics; + } + + Status SetStatus(Status status) const + { + if (status != Ok) + return (lastResult = status); + else + return status; + } + + GpGraphics* GetNativeGraphics() const + { + return this->nativeGraphics; + } + + GpPen* GetNativePen(const Pen* pen) + { + return pen->nativePen; + } + +protected: + GpGraphics* nativeGraphics; + mutable Status lastResult; + +}; + +//---------------------------------------------------------------------------- +// Implementation of GraphicsPath methods that use Graphics +//---------------------------------------------------------------------------- + +// The GetBounds rectangle may not be the tightest bounds. + +inline Status +GraphicsPath::GetBounds( + OUT RectF* bounds, + IN const Matrix* matrix, + IN const Pen* pen) const +{ + GpMatrix* nativeMatrix = NULL; + GpPen* nativePen = NULL; + + if (matrix) + nativeMatrix = matrix->nativeMatrix; + + if (pen) + nativePen = pen->nativePen; + + return SetStatus(DllExports::GdipGetPathWorldBounds(nativePath, bounds, + nativeMatrix, nativePen)); +} + +inline Status +GraphicsPath::GetBounds( + OUT Rect* bounds, + IN const Matrix* matrix, + IN const Pen* pen +) const +{ + GpMatrix* nativeMatrix = NULL; + GpPen* nativePen = NULL; + + if (matrix) + nativeMatrix = matrix->nativeMatrix; + + if (pen) + nativePen = pen->nativePen; + + return SetStatus(DllExports::GdipGetPathWorldBoundsI(nativePath, bounds, + nativeMatrix, nativePen)); +} + +inline BOOL +GraphicsPath::IsVisible( + IN REAL x, + IN REAL y, + IN const Graphics* g) const +{ + BOOL booln = FALSE; + + GpGraphics* nativeGraphics = NULL; + + if (g) + nativeGraphics = g->nativeGraphics; + + SetStatus(DllExports::GdipIsVisiblePathPoint(nativePath, + x, y, nativeGraphics, + &booln)); + return booln; +} + +inline BOOL +GraphicsPath::IsVisible( + IN INT x, + IN INT y, + IN const Graphics* g) const +{ + BOOL booln = FALSE; + + GpGraphics* nativeGraphics = NULL; + + if (g) + nativeGraphics = g->nativeGraphics; + + SetStatus(DllExports::GdipIsVisiblePathPointI(nativePath, + x, y, nativeGraphics, + &booln)); + return booln; +} + +inline BOOL +GraphicsPath::IsOutlineVisible( + IN REAL x, + IN REAL y, + IN const Pen* pen, + IN const Graphics* g) const +{ + BOOL booln = FALSE; + + GpGraphics* nativeGraphics = NULL; + GpPen* nativePen = NULL; + + if(g) + nativeGraphics = g->nativeGraphics; + if(pen) + nativePen = pen->nativePen; + + SetStatus(DllExports::GdipIsOutlineVisiblePathPoint(nativePath, + x, y, nativePen, nativeGraphics, + &booln)); + return booln; +} + +inline BOOL +GraphicsPath::IsOutlineVisible( + IN INT x, + IN INT y, + IN const Pen* pen, + IN const Graphics* g) const +{ + BOOL booln = FALSE; + + GpGraphics* nativeGraphics = NULL; + GpPen* nativePen = NULL; + + if(g) + nativeGraphics = g->nativeGraphics; + if(pen) + nativePen = pen->nativePen; + + SetStatus(DllExports::GdipIsOutlineVisiblePathPointI(nativePath, + x, y, nativePen, nativeGraphics, + &booln)); + return booln; +} + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusheaders.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusheaders.h new file mode 100644 index 0000000000000000000000000000000000000000..77558aa0eb4b27c505e2ff1a1a6201c813250dae --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusheaders.h @@ -0,0 +1,956 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusHeaders.h +* +* Abstract: +* +* GDI+ Region, Font, Image, CustomLineCap class definitions. +* +* +* Class definition and inline class implementation are separated into +* different files to avoid circular dependencies. +* +\**************************************************************************/ + +#ifndef _GDIPLUSHEADERS_H +#define _GDIPLUSHEADERS_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4263) /* member function does not override any base class virtual member function */ +#pragma warning(disable:4264) /* no override available for virtual member function from base 'class'; function is hidden */ +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +class Region : public GdiplusBase +{ +public: + friend class Graphics; + + Region(); + Region(IN const RectF& rect); + Region(IN const Rect& rect); + Region(IN const GraphicsPath* path); + Region(IN const BYTE* regionData, IN INT size); + Region(IN HRGN hRgn); + static Region* FromHRGN(IN HRGN hRgn); + + ~Region(); + Region* Clone() const; + + Status MakeInfinite(); + Status MakeEmpty(); + + UINT GetDataSize() const; + + // buffer - where to put the data + // bufferSize - how big the buffer is (should be at least as big as GetDataSize()) + // sizeFilled - if not NULL, this is an OUT param that says how many bytes + // of data were written to the buffer. + + Status GetData(_Out_writes_bytes_to_(bufferSize, *sizeFilled) BYTE* buffer, + _In_ UINT bufferSize, + _Out_opt_ UINT* sizeFilled = NULL) const; + + Status Intersect(IN const Rect& rect); + Status Intersect(IN const RectF& rect); + Status Intersect(IN const GraphicsPath* path); + Status Intersect(IN const Region* region); + Status Union(IN const Rect& rect); + Status Union(IN const RectF& rect); + Status Union(IN const GraphicsPath* path); + Status Union(IN const Region* region); + Status Xor(IN const Rect& rect); + Status Xor(IN const RectF& rect); + Status Xor(IN const GraphicsPath* path); + Status Xor(IN const Region* region); + Status Exclude(IN const Rect& rect); + Status Exclude(IN const RectF& rect); + Status Exclude(IN const GraphicsPath* path); + Status Exclude(IN const Region* region); + Status Complement(IN const Rect& rect); + Status Complement(IN const RectF& rect); + Status Complement(IN const GraphicsPath* path); + Status Complement(IN const Region* region); + Status Translate(IN REAL dx, + IN REAL dy); + Status Translate(IN INT dx, + IN INT dy); + Status Transform(IN const Matrix* matrix); + + Status GetBounds(OUT Rect* rect, + IN const Graphics* g) const; + + Status GetBounds(OUT RectF* rect, + IN const Graphics* g) const; + + HRGN GetHRGN (IN const Graphics * g) const; + + BOOL IsEmpty(IN const Graphics *g) const; + BOOL IsInfinite(IN const Graphics *g) const; + + BOOL IsVisible(IN INT x, + IN INT y, + IN const Graphics* g = NULL) const + { + return IsVisible(Point(x, y), g); + } + + BOOL IsVisible(IN const Point& point, + IN const Graphics* g = NULL) const; + + BOOL IsVisible(IN REAL x, + IN REAL y, + IN const Graphics* g = NULL) const + { + return IsVisible(PointF(x, y), g); + } + + BOOL IsVisible(IN const PointF& point, + IN const Graphics* g = NULL) const; + + BOOL IsVisible(IN INT x, + IN INT y, + IN INT width, + IN INT height, + IN const Graphics* g) const + { + return IsVisible(Rect(x, y, width, height), g); + } + + BOOL IsVisible(IN const Rect& rect, + IN const Graphics* g = NULL) const; + + BOOL IsVisible(IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height, + IN const Graphics* g = NULL) const + { + return IsVisible(RectF(x, y, width, height), g); + } + + BOOL IsVisible(IN const RectF& rect, + IN const Graphics* g = NULL) const; + + BOOL Equals(IN const Region* region, + IN const Graphics* g) const; + + UINT GetRegionScansCount(IN const Matrix* matrix) const; + Status GetRegionScans(IN const Matrix* matrix, + OUT RectF* rects, + OUT INT* count) const; + Status GetRegionScans(IN const Matrix* matrix, + OUT Rect* rects, + OUT INT* count) const; + Status GetLastStatus() const; + +protected: + +private: + Region(const Region ®ion); + Region& operator=(const Region ®ion); +protected: + + _Post_equal_to_(status) + Status SetStatus(Status status) const + { + if (status != Ok) + return (lastResult = status); + else + return status; + } + + Region(GpRegion* nativeRegion); + + VOID SetNativeRegion(GpRegion* nativeRegion); + +protected: + GpRegion* nativeRegion; + mutable Status lastResult; +}; + + +//-------------------------------------------------------------------------- +// FontFamily +//-------------------------------------------------------------------------- + +class FontFamily : public GdiplusBase +{ +public: + friend class Font; + friend class Graphics; + friend class GraphicsPath; + friend class FontCollection; + + FontFamily(); + + FontFamily( + IN const WCHAR *name, + IN const FontCollection *fontCollection = NULL + ); + + ~FontFamily(); + + static const FontFamily *GenericSansSerif(); + static const FontFamily *GenericSerif(); + static const FontFamily *GenericMonospace(); + + Status GetFamilyName( + _Out_writes_(LF_FACESIZE) LPWSTR name, + IN LANGID language = 0 + ) const; + + FontFamily * Clone() const; + + BOOL IsAvailable() const + { + return (nativeFamily != NULL); + }; + + BOOL IsStyleAvailable(IN INT style) const; + + UINT16 GetEmHeight (IN INT style) const; + UINT16 GetCellAscent (IN INT style) const; + UINT16 GetCellDescent (IN INT style) const; + UINT16 GetLineSpacing (IN INT style) const; + + Status GetLastStatus() const; + +private: + FontFamily(const FontFamily &); + FontFamily& operator=(const FontFamily &); + +protected: + _Post_equal_to_(status) Status SetStatus(Status status) const; + + FontFamily(GpFontFamily * nativeFamily, Status status); + +protected: + + GpFontFamily *nativeFamily; + mutable Status lastResult; +}; + +static FontFamily *GenericSansSerifFontFamily = NULL; +static FontFamily *GenericSerifFontFamily = NULL; +static FontFamily *GenericMonospaceFontFamily = NULL; + +static BYTE GenericSansSerifFontFamilyBuffer[sizeof(FontFamily)] = {0}; +static BYTE GenericSerifFontFamilyBuffer [sizeof(FontFamily)] = {0}; +static BYTE GenericMonospaceFontFamilyBuffer[sizeof(FontFamily)] = {0}; + + +//-------------------------------------------------------------------------- +// Font +//-------------------------------------------------------------------------- + +class Font : public GdiplusBase +{ +public: + friend class Graphics; + + Font(IN HDC hdc); + Font(IN HDC hdc, + IN const LOGFONTA* logfont); + Font(IN HDC hdc, + IN const LOGFONTW* logfont); + Font(IN HDC hdc, + IN const HFONT hfont); + Font( + IN const FontFamily * family, + IN REAL emSize, + IN INT style = FontStyleRegular, + IN Unit unit = UnitPoint + ); + + Font( + IN const WCHAR * familyName, + IN REAL emSize, + IN INT style = FontStyleRegular, + IN Unit unit = UnitPoint, + IN const FontCollection * fontCollection = NULL + ); + + Status GetLogFontA(IN const Graphics* g, + OUT LOGFONTA * logfontA) const; + Status GetLogFontW(IN const Graphics* g, + OUT LOGFONTW * logfontW) const; + + Font* Clone() const; + ~Font(); + BOOL IsAvailable() const; + INT GetStyle() const; + REAL GetSize() const; + Unit GetUnit() const; + Status GetLastStatus() const; + REAL GetHeight(IN const Graphics *graphics) const; + REAL GetHeight(IN REAL dpi) const; + + Status GetFamily(OUT FontFamily *family) const; + +private: + Font(const Font &); + Font& operator=(const Font &); + +protected: + Font(GpFont* font, Status status); + VOID SetNativeFont(GpFont *Font); + _Post_equal_to_(status) Status SetStatus(Status status) const; + +protected: + + GpFont* nativeFont; + mutable Status lastResult; +}; + +//-------------------------------------------------------------------------- +// Font Collection +//-------------------------------------------------------------------------- + +class FontCollection : public GdiplusBase +{ +public: + friend class FontFamily; + + FontCollection(); + virtual ~FontCollection(); + + INT GetFamilyCount() const; + + Status GetFamilies( + _In_ INT numSought, + _Out_writes_to_(numSought, *numFound) FontFamily * gpfamilies, + _Out_ INT * numFound + ) const; + + Status GetLastStatus() const; + +private: + FontCollection(const FontCollection &); + FontCollection& operator=(const FontCollection &); + +protected: + _Post_equal_to_(status) Status SetStatus(Status status) const ; + + GpFontCollection *nativeFontCollection; + mutable Status lastResult; +}; + + +class InstalledFontCollection : public FontCollection +{ +public: + InstalledFontCollection(); + ~InstalledFontCollection(); + +private: + InstalledFontCollection(const InstalledFontCollection &); + InstalledFontCollection& operator=(const InstalledFontCollection &); + +protected: + _Post_equal_to_(status) Status SetStatus(Status status) const ; +}; + + +class PrivateFontCollection : public FontCollection +{ +public: + PrivateFontCollection(); + ~PrivateFontCollection(); + + Status AddFontFile(IN const WCHAR* filename); + Status AddMemoryFont(IN const VOID* memory, + IN INT length); + +private: + PrivateFontCollection(const PrivateFontCollection &); + PrivateFontCollection& operator=(const PrivateFontCollection &); +}; + + +//-------------------------------------------------------------------------- +// Abstract base class for Image and Metafile +//-------------------------------------------------------------------------- + +class Image : public GdiplusBase +{ +public: + friend class Brush; + friend class TextureBrush; + friend class Graphics; + + Image( + IN const WCHAR* filename, + IN BOOL useEmbeddedColorManagement = FALSE + ); + + Image( + IN IStream* stream, + IN BOOL useEmbeddedColorManagement = FALSE + ); + + static Image* FromFile( + IN const WCHAR* filename, + IN BOOL useEmbeddedColorManagement = FALSE + ); + + static Image* FromStream( + IN IStream* stream, + IN BOOL useEmbeddedColorManagement = FALSE + ); + + virtual ~Image(); + virtual Image* Clone(); + + Status Save(IN const WCHAR* filename, + IN const CLSID* clsidEncoder, + IN const EncoderParameters *encoderParams = NULL); + Status Save(IN IStream* stream, + IN const CLSID* clsidEncoder, + IN const EncoderParameters *encoderParams = NULL); + Status SaveAdd(IN const EncoderParameters* encoderParams); + Status SaveAdd(IN Image* newImage, + IN const EncoderParameters* encoderParams); + + ImageType GetType() const; + Status GetPhysicalDimension(OUT SizeF* size); + Status GetBounds(OUT RectF* srcRect, + OUT Unit* srcUnit); + + UINT GetWidth(); + UINT GetHeight(); + REAL GetHorizontalResolution(); + REAL GetVerticalResolution(); + UINT GetFlags(); + Status GetRawFormat(OUT GUID *format); + PixelFormat GetPixelFormat(); + + INT GetPaletteSize(); + Status GetPalette(OUT ColorPalette* palette, + IN INT size); + Status SetPalette(IN const ColorPalette* palette); + + Image* GetThumbnailImage(IN UINT thumbWidth, + IN UINT thumbHeight, + IN GetThumbnailImageAbort callback = NULL, + IN VOID* callbackData = NULL); + UINT GetFrameDimensionsCount(); + Status GetFrameDimensionsList(OUT GUID* dimensionIDs, + IN UINT count); + UINT GetFrameCount(IN const GUID* dimensionID); + Status SelectActiveFrame(IN const GUID* dimensionID, + IN UINT frameIndex); + Status RotateFlip(IN RotateFlipType rotateFlipType); + UINT GetPropertyCount(); + Status GetPropertyIdList(IN UINT numOfProperty, + OUT PROPID* list); + UINT GetPropertyItemSize(IN PROPID propId); + Status GetPropertyItem(IN PROPID propId, + IN UINT propSize, + OUT PropertyItem* buffer); + Status GetPropertySize(OUT UINT* totalBufferSize, + OUT UINT* numProperties); + Status GetAllPropertyItems(IN UINT totalBufferSize, + IN UINT numProperties, + OUT PropertyItem* allItems); + Status RemovePropertyItem(IN PROPID propId); + Status SetPropertyItem(IN const PropertyItem* item); + + UINT GetEncoderParameterListSize(IN const CLSID* clsidEncoder); + Status GetEncoderParameterList(IN const CLSID* clsidEncoder, + IN UINT size, + OUT EncoderParameters* buffer); +#if (GDIPVER >= 0x0110) + Status FindFirstItem(IN ImageItemData *item); + Status FindNextItem(IN ImageItemData *item); + Status GetItemData(IN ImageItemData *item); + Status SetAbort(GdiplusAbort *pIAbort); +#endif //(GDIPVER >= 0x0110) + + Status GetLastStatus() const; + +protected: + + Image() {} + + Image(GpImage *nativeImage, Status status); + + VOID SetNativeImage(GpImage* nativeImage); + + _Post_equal_to_(status) + Status SetStatus(Status status) const + { + if (status != Ok) + return (lastResult = status); + else + return status; + } + + GpImage* nativeImage; + mutable Status lastResult; + mutable Status loadStatus; + +private: + Image(IN const Image& C); + Image& operator=(IN const Image& C); +}; + +class Bitmap : public Image +{ +public: + friend class Image; + friend class CachedBitmap; + + Bitmap( + IN const WCHAR *filename, + IN BOOL useEmbeddedColorManagement = FALSE + ); + + Bitmap( + IN IStream *stream, + IN BOOL useEmbeddedColorManagement = FALSE + ); + + static Bitmap* FromFile( + IN const WCHAR *filename, + IN BOOL useEmbeddedColorManagement = FALSE + ); + + static Bitmap* FromStream( + IN IStream *stream, + IN BOOL useEmbeddedColorManagement = FALSE + ); + + Bitmap(_In_ INT width, + _In_ INT height, + _In_ INT stride, + _In_ PixelFormat format, + _In_reads_opt_(_Inexpressible_("height * stride")) BYTE* scan0); + Bitmap(IN INT width, + IN INT height, + IN PixelFormat format = PixelFormat32bppARGB); + Bitmap(IN INT width, + IN INT height, + IN Graphics* target); + + Bitmap* Clone(IN const Rect& rect, + IN PixelFormat format); + Bitmap* Clone(IN INT x, + IN INT y, + IN INT width, + IN INT height, + IN PixelFormat format); + Bitmap* Clone(IN const RectF& rect, + IN PixelFormat format); + Bitmap* Clone(IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height, + IN PixelFormat format); + + Status LockBits(IN const Rect* rect, + IN UINT flags, + IN PixelFormat format, + OUT BitmapData* lockedBitmapData); + Status UnlockBits(IN BitmapData* lockedBitmapData); + Status GetPixel(IN INT x, + IN INT y, + OUT Color *color); + Status SetPixel(IN INT x, + IN INT y, + IN const Color &color); + +#if (GDIPVER >= 0x0110) + Status ConvertFormat( + PixelFormat format, + DitherType dithertype, + PaletteType palettetype, + ColorPalette *palette, + REAL alphaThresholdPercent + ); + + // The palette must be allocated and count must be set to the number of + // entries in the palette. If there are not enough, the API will fail. + + static Status InitializePalette( + IN OUT ColorPalette *palette, // Palette to initialize. + PaletteType palettetype, // palette enumeration type. + INT optimalColors, // how many optimal colors + BOOL useTransparentColor, // add a transparent color to the palette. + Bitmap *bitmap // optional bitmap for median cut. + ); + + Status ApplyEffect(Effect *effect, RECT *ROI); + + static Status + ApplyEffect( + IN Bitmap **inputs, + IN INT numInputs, + IN Effect *effect, + IN RECT *ROI, // optional parameter. + OUT RECT *outputRect, // optional parameter. + OUT Bitmap **output + ); + + Status GetHistogram( + IN HistogramFormat format, + IN UINT NumberOfEntries, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel0, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel1, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel2, + _Out_writes_bytes_(sizeof(UINT)*256) UINT *channel3 + ); + + static Status GetHistogramSize( + IN HistogramFormat format, + OUT UINT *NumberOfEntries + ); +#endif //(GDIPVER >= 0x0110) + + Status SetResolution(IN REAL xdpi, + IN REAL ydpi); + + Bitmap(IN IDirectDrawSurface7* surface); + Bitmap(IN const BITMAPINFO* gdiBitmapInfo, + IN VOID* gdiBitmapData); + Bitmap(IN HBITMAP hbm, + IN HPALETTE hpal); + Bitmap(IN HICON hicon); + Bitmap(IN HINSTANCE hInstance, + IN const WCHAR * bitmapName); + static Bitmap* FromDirectDrawSurface7(IN IDirectDrawSurface7* surface); + static Bitmap* FromBITMAPINFO(IN const BITMAPINFO* gdiBitmapInfo, + IN VOID* gdiBitmapData); + static Bitmap* FromHBITMAP(IN HBITMAP hbm, + IN HPALETTE hpal); + static Bitmap* FromHICON(IN HICON hicon); + static Bitmap* FromResource(IN HINSTANCE hInstance, + IN const WCHAR * bitmapName); + + Status GetHBITMAP(IN const Color& colorBackground, + OUT HBITMAP *hbmReturn); + Status GetHICON(HICON *hicon); + +private: + Bitmap(const Bitmap &); + Bitmap& operator=(const Bitmap &); + +protected: + Bitmap(GpBitmap *nativeBitmap); +}; + +class CustomLineCap : public GdiplusBase +{ +public: + friend class Pen; + + CustomLineCap( + IN const GraphicsPath* fillPath, + IN const GraphicsPath* strokePath, + IN LineCap baseCap = LineCapFlat, + IN REAL baseInset = 0 + ); + virtual ~CustomLineCap(); + + CustomLineCap* Clone() const; + + // This changes both the start and end cap. + + Status SetStrokeCap(IN LineCap strokeCap) + { + return SetStrokeCaps(strokeCap, strokeCap); + } + + Status SetStrokeCaps(IN LineCap startCap, + IN LineCap endCap); + Status GetStrokeCaps(OUT LineCap* startCap, + OUT LineCap* endCap) const; + Status SetStrokeJoin(IN LineJoin lineJoin); + LineJoin GetStrokeJoin() const; + Status SetBaseCap(IN LineCap baseCap); + LineCap GetBaseCap() const; + Status SetBaseInset(IN REAL inset); + REAL GetBaseInset() const; + Status SetWidthScale(IN REAL widthScale); + REAL GetWidthScale() const; + Status GetLastStatus() const; + +protected: + CustomLineCap(); + +private: + CustomLineCap(const CustomLineCap &); + CustomLineCap& operator=(const CustomLineCap &); + +protected: + CustomLineCap(GpCustomLineCap* nativeCapArg, Status status) + { + lastResult = status; + SetNativeCap(nativeCapArg); + } + + VOID SetNativeCap(GpCustomLineCap* nativeCapArg) + { + this->nativeCap = nativeCapArg; + } + + _Post_equal_to_(status) + Status SetStatus(Status status) const + { + if (status != Ok) + return (lastResult = status); + else + return status; + } + +protected: + GpCustomLineCap* nativeCap; + mutable Status lastResult; +}; + +class CachedBitmap : public GdiplusBase +{ + friend Graphics; + +public: + CachedBitmap(IN Bitmap *bitmap, + IN Graphics *graphics); + virtual ~CachedBitmap(); + + Status GetLastStatus() const; + +private: + CachedBitmap(const CachedBitmap &); + CachedBitmap& operator=(const CachedBitmap &); + +protected: + GpCachedBitmap *nativeCachedBitmap; + mutable Status lastResult; +}; + +class Metafile : public Image +{ +public: + friend class Image; + + // Playback a metafile from a HMETAFILE + // If deleteWmf is TRUE, then when the metafile is deleted, + // the hWmf will also be deleted. Otherwise, it won't be. + + Metafile( + IN HMETAFILE hWmf, + IN const WmfPlaceableFileHeader * wmfPlaceableFileHeader, + IN BOOL deleteWmf = FALSE + ); + + // Playback a metafile from a HENHMETAFILE + // If deleteEmf is TRUE, then when the metafile is deleted, + // the hEmf will also be deleted. Otherwise, it won't be. + + Metafile( + IN HENHMETAFILE hEmf, + IN BOOL deleteEmf = FALSE + ); + + Metafile(IN const WCHAR* filename); + + // Playback a WMF metafile from a file. + + Metafile( + IN const WCHAR* filename, + IN const WmfPlaceableFileHeader * wmfPlaceableFileHeader + ); + + Metafile(IN IStream* stream); + + // Record a metafile to memory. + + Metafile( + IN HDC referenceHdc, + IN EmfType type = EmfTypeEmfPlusDual, + IN const WCHAR * description = NULL + ); + + // Record a metafile to memory. + + Metafile( + IN HDC referenceHdc, + IN const RectF & frameRect, + IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, + IN EmfType type = EmfTypeEmfPlusDual, + IN const WCHAR * description = NULL + ); + + // Record a metafile to memory. + + Metafile( + IN HDC referenceHdc, + IN const Rect & frameRect, + IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, + IN EmfType type = EmfTypeEmfPlusDual, + IN const WCHAR * description = NULL + ); + + Metafile( + IN const WCHAR* fileName, + IN HDC referenceHdc, + IN EmfType type = EmfTypeEmfPlusDual, + IN const WCHAR * description = NULL + ); + + Metafile( + IN const WCHAR* fileName, + IN HDC referenceHdc, + IN const RectF & frameRect, + IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, + IN EmfType type = EmfTypeEmfPlusDual, + IN const WCHAR * description = NULL + ); + + Metafile( + IN const WCHAR* fileName, + IN HDC referenceHdc, + IN const Rect & frameRect, + IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, + IN EmfType type = EmfTypeEmfPlusDual, + IN const WCHAR * description = NULL + ); + + Metafile( + IN IStream * stream, + IN HDC referenceHdc, + IN EmfType type = EmfTypeEmfPlusDual, + IN const WCHAR * description = NULL + ); + + Metafile( + IN IStream * stream, + IN HDC referenceHdc, + IN const RectF & frameRect, + IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, + IN EmfType type = EmfTypeEmfPlusDual, + IN const WCHAR * description = NULL + ); + + Metafile( + IN IStream * stream, + IN HDC referenceHdc, + IN const Rect & frameRect, + IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, + IN EmfType type = EmfTypeEmfPlusDual, + IN const WCHAR * description = NULL + ); + + static Status GetMetafileHeader( + IN HMETAFILE hWmf, + IN const WmfPlaceableFileHeader * wmfPlaceableFileHeader, + OUT MetafileHeader * header + ); + + static Status GetMetafileHeader( + IN HENHMETAFILE hEmf, + OUT MetafileHeader * header + ); + + static Status GetMetafileHeader( + IN const WCHAR* filename, + OUT MetafileHeader * header + ); + + static Status GetMetafileHeader( + IN IStream * stream, + OUT MetafileHeader * header + ); + + Status GetMetafileHeader( + OUT MetafileHeader * header + ) const; + + // Once this method is called, the Metafile object is in an invalid state + // and can no longer be used. It is the responsiblity of the caller to + // invoke DeleteEnhMetaFile to delete this hEmf. + + HENHMETAFILE GetHENHMETAFILE(); + + // Used in conjuction with Graphics::EnumerateMetafile to play an EMF+ + // The data must be DWORD aligned if it's an EMF or EMF+. It must be + // WORD aligned if it's a WMF. + + Status PlayRecord( + IN EmfPlusRecordType recordType, + IN UINT flags, + IN UINT dataSize, + IN const BYTE * data + ) const; + + // If you're using a printer HDC for the metafile, but you want the + // metafile rasterized at screen resolution, then use this API to set + // the rasterization dpi of the metafile to the screen resolution, + // e.g. 96 dpi or 120 dpi. + + Status SetDownLevelRasterizationLimit( + IN UINT metafileRasterizationLimitDpi + ); + + UINT GetDownLevelRasterizationLimit() const; + + static UINT EmfToWmfBits( + _In_ HENHMETAFILE hemf, + _In_ UINT cbData16, + _Out_writes_to_opt_(cbData16, return) LPBYTE pData16, + _In_ INT iMapMode = MM_ANISOTROPIC, + _In_ INT eFlags = EmfToWmfBitsFlagsDefault + ); + +#if (GDIPVER >= 0x0110) + Status ConvertToEmfPlus( + IN const Graphics* refGraphics, + IN OUT INT* conversionFailureFlag = NULL, + IN EmfType emfType = EmfTypeEmfPlusOnly, + IN const WCHAR* description = NULL + ); + Status ConvertToEmfPlus( + IN const Graphics* refGraphics, + IN const WCHAR* filename, + IN OUT INT* conversionFailureFlag = NULL, + IN EmfType emfType = EmfTypeEmfPlusOnly, + IN const WCHAR* description = NULL + ); + Status ConvertToEmfPlus( + IN const Graphics* refGraphics, + IN IStream* stream, + IN OUT INT* conversionFailureFlag = NULL, + IN EmfType emfType = EmfTypeEmfPlusOnly, + IN const WCHAR* description = NULL + ); +#endif + +protected: + Metafile() + { + SetNativeImage(NULL); + lastResult = Ok; + } + +private: + Metafile(const Metafile &); + Metafile& operator=(const Metafile &); +}; + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_GDIPLUSHEADERS.HPP diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusimageattributes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusimageattributes.h new file mode 100644 index 0000000000000000000000000000000000000000..88f8c4a4e2f4d24f1be5bd04d0c0d0dd15c95804 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusimageattributes.h @@ -0,0 +1,393 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* Image Attributes +* +* Abstract: +* +* GDI+ Image Attributes used with Graphics.DrawImage +* +* There are 5 possible sets of color adjustments: +* ColorAdjustDefault, +* ColorAdjustBitmap, +* ColorAdjustBrush, +* ColorAdjustPen, +* ColorAdjustText, +* +* Bitmaps, Brushes, Pens, and Text will all use any color adjustments +* that have been set into the default ImageAttributes until their own +* color adjustments have been set. So as soon as any "Set" method is +* called for Bitmaps, Brushes, Pens, or Text, then they start from +* scratch with only the color adjustments that have been set for them. +* Calling Reset removes any individual color adjustments for a type +* and makes it revert back to using all the default color adjustments +* (if any). The SetToIdentity method is a way to force a type to +* have no color adjustments at all, regardless of what previous adjustments +* have been set for the defaults or for that type. +* +\********************************************************************F******/ + +#ifndef _GDIPLUSIMAGEATTRIBUTES_H +#define _GDIPLUSIMAGEATTRIBUTES_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +class GpImageAttributes; + +class ImageAttributes : public GdiplusBase +{ + friend class Graphics; + friend class TextureBrush; + +public: + + ImageAttributes() + { + nativeImageAttr = NULL; + lastResult = DllExports::GdipCreateImageAttributes(&nativeImageAttr); + } + + ~ImageAttributes() + { + DllExports::GdipDisposeImageAttributes(nativeImageAttr); + } + + ImageAttributes* Clone() const + { + GpImageAttributes* clone; + + SetStatus(DllExports::GdipCloneImageAttributes( + nativeImageAttr, + &clone)); + + return new ImageAttributes(clone, lastResult); + } + + Status + SetToIdentity( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesToIdentity( + nativeImageAttr, + type)); + } + + Status + Reset( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipResetImageAttributes( + nativeImageAttr, + type)); + } + + Status + SetColorMatrix( + IN const ColorMatrix *colorMatrix, + IN ColorMatrixFlags mode = ColorMatrixFlagsDefault, + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesColorMatrix( + nativeImageAttr, + type, + TRUE, + colorMatrix, + NULL, + mode)); + } + + Status ClearColorMatrix( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesColorMatrix( + nativeImageAttr, + type, + FALSE, + NULL, + NULL, + ColorMatrixFlagsDefault)); + } + + Status + SetColorMatrices( + IN const ColorMatrix *colorMatrix, + IN const ColorMatrix *grayMatrix, + IN ColorMatrixFlags mode = ColorMatrixFlagsDefault, + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesColorMatrix( + nativeImageAttr, + type, + TRUE, + colorMatrix, + grayMatrix, + mode)); + } + + Status ClearColorMatrices( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesColorMatrix( + nativeImageAttr, + type, + FALSE, + NULL, + NULL, + ColorMatrixFlagsDefault)); + } + + Status SetThreshold( + IN REAL threshold, + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesThreshold( + nativeImageAttr, + type, + TRUE, + threshold)); + } + + Status ClearThreshold( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesThreshold( + nativeImageAttr, + type, + FALSE, + 0.0)); + } + + Status SetGamma( + IN REAL gamma, + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesGamma( + nativeImageAttr, + type, + TRUE, + gamma)); + } + + Status ClearGamma( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesGamma( + nativeImageAttr, + type, + FALSE, + 0.0)); + } + + Status SetNoOp( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesNoOp( + nativeImageAttr, + type, + TRUE)); + } + + Status ClearNoOp( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesNoOp( + nativeImageAttr, + type, + FALSE)); + } + + Status SetColorKey( + IN const Color& colorLow, + IN const Color& colorHigh, + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesColorKeys( + nativeImageAttr, + type, + TRUE, + colorLow.GetValue(), + colorHigh.GetValue())); + } + + Status ClearColorKey( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesColorKeys( + nativeImageAttr, + type, + FALSE, + NULL, + NULL)); + } + + Status SetOutputChannel( + IN ColorChannelFlags channelFlags, + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesOutputChannel( + nativeImageAttr, + type, + TRUE, + channelFlags)); + } + + Status ClearOutputChannel( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesOutputChannel( + nativeImageAttr, + type, + FALSE, + ColorChannelFlagsLast)); + } + + Status SetOutputChannelColorProfile( + IN const WCHAR *colorProfileFilename, + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesOutputChannelColorProfile( + nativeImageAttr, + type, + TRUE, + colorProfileFilename)); + } + + Status ClearOutputChannelColorProfile( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesOutputChannelColorProfile( + nativeImageAttr, + type, + FALSE, + NULL)); + } + + Status SetRemapTable( + IN UINT mapSize, + IN const ColorMap *map, + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesRemapTable( + nativeImageAttr, + type, + TRUE, + mapSize, + map)); + } + + Status ClearRemapTable( + IN ColorAdjustType type = ColorAdjustTypeDefault + ) + { + return SetStatus(DllExports::GdipSetImageAttributesRemapTable( + nativeImageAttr, + type, + FALSE, + 0, + NULL)); + } + + Status SetBrushRemapTable(IN UINT mapSize, + IN const ColorMap *map) + { + return this->SetRemapTable(mapSize, map, ColorAdjustTypeBrush); + } + + Status ClearBrushRemapTable() + { + return this->ClearRemapTable(ColorAdjustTypeBrush); + } + + Status SetWrapMode(IN WrapMode wrap, + IN const Color& color = Color(), + IN BOOL clamp = FALSE) + { + ARGB argb = color.GetValue(); + + return SetStatus(DllExports::GdipSetImageAttributesWrapMode( + nativeImageAttr, wrap, argb, clamp)); + } + + // The flags of the palette are ignored. + + Status GetAdjustedPalette(IN OUT ColorPalette* colorPalette, + IN ColorAdjustType colorAdjustType) const + { + return SetStatus(DllExports::GdipGetImageAttributesAdjustedPalette( + nativeImageAttr, colorPalette, colorAdjustType)); + } + + Status GetLastStatus() const + { + Status lastStatus = lastResult; + lastResult = Ok; + + return lastStatus; + } + +private: + ImageAttributes(const ImageAttributes &); + ImageAttributes& operator=(const ImageAttributes &); + +protected: + ImageAttributes(GpImageAttributes* imageAttr, Status status) + { + SetNativeImageAttr(imageAttr); + lastResult = status; + } + + VOID SetNativeImageAttr(GpImageAttributes* nativeImageAttrArg) + { + this->nativeImageAttr = nativeImageAttrArg; + } + + Status SetStatus(Status status) const + { + if (status != Ok) + return (lastResult = status); + else + return status; + } + +protected: + GpImageAttributes* nativeImageAttr; + mutable Status lastResult; +}; + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusimagecodec.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusimagecodec.h new file mode 100644 index 0000000000000000000000000000000000000000..0e83da3ae179caf66c43ed00b04cb531afbaea59 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusimagecodec.h @@ -0,0 +1,68 @@ +/**************************************************************************\ +* +* Copyright (c) 2000-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusImageCodec.h +* +* Abstract: +* +* GDI+ Codec Image APIs +* +\**************************************************************************/ + +#ifndef _GDIPLUSIMAGECODEC_H +#define _GDIPLUSIMAGECODEC_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +//-------------------------------------------------------------------------- +// Codec Management APIs +//-------------------------------------------------------------------------- + +inline Status +GetImageDecodersSize( + _Out_ UINT *numDecoders, + _Out_ _Out_range_(>=, (*numDecoders) * sizeof(ImageCodecInfo)) UINT *size) +{ + return DllExports::GdipGetImageDecodersSize(numDecoders, size); +} + + +inline Status +GetImageDecoders( + _In_ UINT numDecoders, + _In_ UINT size, + _Out_writes_bytes_(size) ImageCodecInfo *decoders) +{ + return DllExports::GdipGetImageDecoders(numDecoders, size, decoders); +} + + +inline Status +GetImageEncodersSize( + _Out_ UINT *numEncoders, + _Out_ _Out_range_(>=, (*numEncoders) * sizeof(ImageCodecInfo)) UINT *size) +{ + return DllExports::GdipGetImageEncodersSize(numEncoders, size); +} + + +inline Status +GetImageEncoders( + _In_ UINT numEncoders, + _In_ IN UINT size, + _Out_writes_bytes_(size) ImageCodecInfo *encoders) +{ + return DllExports::GdipGetImageEncoders(numEncoders, size, encoders); +} + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _GDIPLUSIMAGECODEC_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusimaging.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusimaging.h new file mode 100644 index 0000000000000000000000000000000000000000..3b5ae8b68081a974f5239a2b77726fbc955a39f6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusimaging.h @@ -0,0 +1,606 @@ + +/**************************************************************************\ +* +* Copyright (c) 1999-2000 Microsoft Corporation +* +* Module Name: +* +* GdiplusImaging.h +* +* Abstract: +* +* GDI+ Imaging GUIDs +* +\**************************************************************************/ + +#ifndef _GDIPLUSIMAGING_H +#define _GDIPLUSIMAGING_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +//--------------------------------------------------------------------------- +// Image file format identifiers +//--------------------------------------------------------------------------- + +DEFINE_GUID(ImageFormatUndefined, 0xb96b3ca9,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatMemoryBMP, 0xb96b3caa,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatBMP, 0xb96b3cab,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatEMF, 0xb96b3cac,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatWMF, 0xb96b3cad,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatJPEG, 0xb96b3cae,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatPNG, 0xb96b3caf,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatGIF, 0xb96b3cb0,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatTIFF, 0xb96b3cb1,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatEXIF, 0xb96b3cb2,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatIcon, 0xb96b3cb5,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatHEIF, 0xb96b3cb6,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); +DEFINE_GUID(ImageFormatWEBP, 0xb96b3cb7,0x0728,0x11d3,0x9d,0x7b,0x00,0x00,0xf8,0x1e,0xf3,0x2e); + +//--------------------------------------------------------------------------- +// Predefined multi-frame dimension IDs +//--------------------------------------------------------------------------- + +DEFINE_GUID(FrameDimensionTime, 0x6aedbd6d,0x3fb5,0x418a,0x83,0xa6,0x7f,0x45,0x22,0x9d,0xc8,0x72); +DEFINE_GUID(FrameDimensionResolution, 0x84236f7b,0x3bd3,0x428f,0x8d,0xab,0x4e,0xa1,0x43,0x9c,0xa3,0x15); +DEFINE_GUID(FrameDimensionPage, 0x7462dc86,0x6180,0x4c7e,0x8e,0x3f,0xee,0x73,0x33,0xa7,0xa4,0x83); + +//--------------------------------------------------------------------------- +// Property sets +//--------------------------------------------------------------------------- + +DEFINE_GUID(FormatIDImageInformation, 0xe5836cbe,0x5eef,0x4f1d,0xac,0xde,0xae,0x4c,0x43,0xb6,0x08,0xce); +DEFINE_GUID(FormatIDJpegAppHeaders, 0x1c4afdcd,0x6177,0x43cf,0xab,0xc7,0x5f,0x51,0xaf,0x39,0xee,0x85); + +//--------------------------------------------------------------------------- +// Encoder parameter sets +//--------------------------------------------------------------------------- + +DEFINE_GUID(EncoderCompression, 0xe09d739d,0xccd4,0x44ee,0x8e,0xba,0x3f,0xbf,0x8b,0xe4,0xfc,0x58); +DEFINE_GUID(EncoderColorDepth, 0x66087055,0xad66,0x4c7c,0x9a,0x18,0x38,0xa2,0x31,0x0b,0x83,0x37); +DEFINE_GUID(EncoderScanMethod, 0x3a4e2661,0x3109,0x4e56,0x85,0x36,0x42,0xc1,0x56,0xe7,0xdc,0xfa); +DEFINE_GUID(EncoderVersion, 0x24d18c76,0x814a,0x41a4,0xbf,0x53,0x1c,0x21,0x9c,0xcc,0xf7,0x97); +DEFINE_GUID(EncoderRenderMethod, 0x6d42c53a,0x229a,0x4825,0x8b,0xb7,0x5c,0x99,0xe2,0xb9,0xa8,0xb8); +DEFINE_GUID(EncoderQuality, 0x1d5be4b5,0xfa4a,0x452d,0x9c,0xdd,0x5d,0xb3,0x51,0x05,0xe7,0xeb); +DEFINE_GUID(EncoderTransformation,0x8d0eb2d1,0xa58e,0x4ea8,0xaa,0x14,0x10,0x80,0x74,0xb7,0xb6,0xf9); +DEFINE_GUID(EncoderLuminanceTable,0xedb33bce,0x0266,0x4a77,0xb9,0x04,0x27,0x21,0x60,0x99,0xe7,0x17); +DEFINE_GUID(EncoderChrominanceTable,0xf2e455dc,0x09b3,0x4316,0x82,0x60,0x67,0x6a,0xda,0x32,0x48,0x1c); +DEFINE_GUID(EncoderSaveFlag,0x292266fc,0xac40,0x47bf,0x8c, 0xfc, 0xa8, 0x5b, 0x89, 0xa6, 0x55, 0xde); + +#if (GDIPVER >= 0x0110) +DEFINE_GUID(EncoderColorSpace,0xae7a62a0,0xee2c,0x49d8,0x9d,0x7,0x1b,0xa8,0xa9,0x27,0x59,0x6e); +DEFINE_GUID(EncoderImageItems,0x63875e13,0x1f1d,0x45ab,0x91, 0x95, 0xa2, 0x9b, 0x60, 0x66, 0xa6, 0x50); +DEFINE_GUID(EncoderSaveAsCMYK,0xa219bbc9, 0xa9d, 0x4005, 0xa3, 0xee, 0x3a, 0x42, 0x1b, 0x8b, 0xb0, 0x6c); +#endif //(GDIPVER >= 0x0110) + +DEFINE_GUID(CodecIImageBytes,0x025d1823,0x6c7d,0x447b,0xbb, 0xdb, 0xa3, 0xcb, 0xc3, 0xdf, 0xa2, 0xfc); + +MIDL_INTERFACE("025D1823-6C7D-447B-BBDB-A3CBC3DFA2FC") +IImageBytes : public IUnknown +{ +public: + // Return total number of bytes in the IStream + + STDMETHOD(CountBytes)( + OUT UINT *pcb + ) = 0; + + // Locks "cb" bytes, starting from "ulOffset" in the stream, and returns the + // pointer to the beginning of the locked memory chunk in "ppvBytes" + + STDMETHOD(LockBytes)( + IN UINT cb, + IN ULONG ulOffset, + OUT const VOID ** ppvBytes + ) = 0; + + // Unlocks "cb" bytes, pointed by "pvBytes", starting from "ulOffset" in the + // stream + + STDMETHOD(UnlockBytes)( + IN const VOID *pvBytes, + IN UINT cb, + IN ULONG ulOffset + ) = 0; +}; + +//-------------------------------------------------------------------------- +// ImageCodecInfo structure +//-------------------------------------------------------------------------- + +class ImageCodecInfo +{ +public: + CLSID Clsid; + GUID FormatID; + const WCHAR* CodecName; + const WCHAR* DllName; + const WCHAR* FormatDescription; + const WCHAR* FilenameExtension; + const WCHAR* MimeType; + DWORD Flags; + DWORD Version; + DWORD SigCount; + DWORD SigSize; + const BYTE* SigPattern; + const BYTE* SigMask; +}; + +//-------------------------------------------------------------------------- +// Information flags about image codecs +//-------------------------------------------------------------------------- + +enum ImageCodecFlags +{ + ImageCodecFlagsEncoder = 0x00000001, + ImageCodecFlagsDecoder = 0x00000002, + ImageCodecFlagsSupportBitmap = 0x00000004, + ImageCodecFlagsSupportVector = 0x00000008, + ImageCodecFlagsSeekableEncode = 0x00000010, + ImageCodecFlagsBlockingDecode = 0x00000020, + + ImageCodecFlagsBuiltin = 0x00010000, + ImageCodecFlagsSystem = 0x00020000, + ImageCodecFlagsUser = 0x00040000 +}; + +//--------------------------------------------------------------------------- +// Access modes used when calling Image::LockBits +//--------------------------------------------------------------------------- + +enum ImageLockMode +{ + ImageLockModeRead = 0x0001, + ImageLockModeWrite = 0x0002, + ImageLockModeUserInputBuf= 0x0004 +}; + +//--------------------------------------------------------------------------- +// Information about image pixel data +//--------------------------------------------------------------------------- + +class BitmapData +{ +public: + UINT Width; + UINT Height; + INT Stride; + PixelFormat PixelFormat; + VOID* Scan0; + UINT_PTR Reserved; +}; + +//--------------------------------------------------------------------------- +// Image flags +//--------------------------------------------------------------------------- + +enum ImageFlags +{ + ImageFlagsNone = 0, + + // Low-word: shared with SINKFLAG_x + + ImageFlagsScalable = 0x0001, + ImageFlagsHasAlpha = 0x0002, + ImageFlagsHasTranslucent = 0x0004, + ImageFlagsPartiallyScalable = 0x0008, + + // Low-word: color space definition + + ImageFlagsColorSpaceRGB = 0x0010, + ImageFlagsColorSpaceCMYK = 0x0020, + ImageFlagsColorSpaceGRAY = 0x0040, + ImageFlagsColorSpaceYCBCR = 0x0080, + ImageFlagsColorSpaceYCCK = 0x0100, + + // Low-word: image size info + + ImageFlagsHasRealDPI = 0x1000, + ImageFlagsHasRealPixelSize = 0x2000, + + // High-word + + ImageFlagsReadOnly = 0x00010000, + ImageFlagsCaching = 0x00020000 +}; + +enum RotateFlipType +{ + RotateNoneFlipNone = 0, + Rotate90FlipNone = 1, + Rotate180FlipNone = 2, + Rotate270FlipNone = 3, + + RotateNoneFlipX = 4, + Rotate90FlipX = 5, + Rotate180FlipX = 6, + Rotate270FlipX = 7, + + RotateNoneFlipY = Rotate180FlipX, + Rotate90FlipY = Rotate270FlipX, + Rotate180FlipY = RotateNoneFlipX, + Rotate270FlipY = Rotate90FlipX, + + RotateNoneFlipXY = Rotate180FlipNone, + Rotate90FlipXY = Rotate270FlipNone, + Rotate180FlipXY = RotateNoneFlipNone, + Rotate270FlipXY = Rotate90FlipNone +}; + +//--------------------------------------------------------------------------- +// Encoder Parameter structure +//--------------------------------------------------------------------------- +class EncoderParameter +{ +public: + GUID Guid; // GUID of the parameter + ULONG NumberOfValues; // Number of the parameter values + ULONG Type; // Value type, like ValueTypeLONG etc. + VOID* Value; // A pointer to the parameter values +}; + +//--------------------------------------------------------------------------- +// Encoder Parameters structure +//--------------------------------------------------------------------------- +class EncoderParameters +{ +public: + UINT Count; // Number of parameters in this structure + EncoderParameter Parameter[1]; // Parameter values +}; + +#if (GDIPVER >= 0x0110) +enum ItemDataPosition +{ + ItemDataPositionAfterHeader = 0x0, + ItemDataPositionAfterPalette = 0x1, + ItemDataPositionAfterBits = 0x2, +}; + +//--------------------------------------------------------------------------- +// External Data Item +//--------------------------------------------------------------------------- +class ImageItemData +{ +public: + UINT Size; // size of the structure + UINT Position; // flags describing how the data is to be used. + VOID *Desc; // description on how the data is to be saved. + // it is different for every codec type. + UINT DescSize; // size memory pointed by Desc + VOID *Data; // pointer to the data that is to be saved in the + // file, could be anything saved directly. + UINT DataSize; // size memory pointed by Data + UINT Cookie; // opaque for the apps data member used during + // enumeration of image data items. +}; +#endif //(GDIPVER >= 0x0110) + +//--------------------------------------------------------------------------- +// Property Item +//--------------------------------------------------------------------------- +class PropertyItem +{ +public: + PROPID id; // ID of this property + ULONG length; // Length of the property value, in bytes + WORD type; // Type of the value, as one of TAG_TYPE_XXX + // defined above + VOID* value; // property value +}; + +//--------------------------------------------------------------------------- +// Image property types +//--------------------------------------------------------------------------- +#define PropertyTagTypeByte 1 +#define PropertyTagTypeASCII 2 +#define PropertyTagTypeShort 3 +#define PropertyTagTypeLong 4 +#define PropertyTagTypeRational 5 +#define PropertyTagTypeUndefined 7 +#define PropertyTagTypeSLONG 9 +#define PropertyTagTypeSRational 10 + +//--------------------------------------------------------------------------- +// Image property ID tags +//--------------------------------------------------------------------------- + +#define PropertyTagExifIFD 0x8769 +#define PropertyTagGpsIFD 0x8825 + +#define PropertyTagNewSubfileType 0x00FE +#define PropertyTagSubfileType 0x00FF +#define PropertyTagImageWidth 0x0100 +#define PropertyTagImageHeight 0x0101 +#define PropertyTagBitsPerSample 0x0102 +#define PropertyTagCompression 0x0103 +#define PropertyTagPhotometricInterp 0x0106 +#define PropertyTagThreshHolding 0x0107 +#define PropertyTagCellWidth 0x0108 +#define PropertyTagCellHeight 0x0109 +#define PropertyTagFillOrder 0x010A +#define PropertyTagDocumentName 0x010D +#define PropertyTagImageDescription 0x010E +#define PropertyTagEquipMake 0x010F +#define PropertyTagEquipModel 0x0110 +#define PropertyTagStripOffsets 0x0111 +#define PropertyTagOrientation 0x0112 +#define PropertyTagSamplesPerPixel 0x0115 +#define PropertyTagRowsPerStrip 0x0116 +#define PropertyTagStripBytesCount 0x0117 +#define PropertyTagMinSampleValue 0x0118 +#define PropertyTagMaxSampleValue 0x0119 +#define PropertyTagXResolution 0x011A // Image resolution in width direction +#define PropertyTagYResolution 0x011B // Image resolution in height direction +#define PropertyTagPlanarConfig 0x011C // Image data arrangement +#define PropertyTagPageName 0x011D +#define PropertyTagXPosition 0x011E +#define PropertyTagYPosition 0x011F +#define PropertyTagFreeOffset 0x0120 +#define PropertyTagFreeByteCounts 0x0121 +#define PropertyTagGrayResponseUnit 0x0122 +#define PropertyTagGrayResponseCurve 0x0123 +#define PropertyTagT4Option 0x0124 +#define PropertyTagT6Option 0x0125 +#define PropertyTagResolutionUnit 0x0128 // Unit of X and Y resolution +#define PropertyTagPageNumber 0x0129 +#define PropertyTagTransferFuncition 0x012D +#define PropertyTagSoftwareUsed 0x0131 +#define PropertyTagDateTime 0x0132 +#define PropertyTagArtist 0x013B +#define PropertyTagHostComputer 0x013C +#define PropertyTagPredictor 0x013D +#define PropertyTagWhitePoint 0x013E +#define PropertyTagPrimaryChromaticities 0x013F +#define PropertyTagColorMap 0x0140 +#define PropertyTagHalftoneHints 0x0141 +#define PropertyTagTileWidth 0x0142 +#define PropertyTagTileLength 0x0143 +#define PropertyTagTileOffset 0x0144 +#define PropertyTagTileByteCounts 0x0145 +#define PropertyTagInkSet 0x014C +#define PropertyTagInkNames 0x014D +#define PropertyTagNumberOfInks 0x014E +#define PropertyTagDotRange 0x0150 +#define PropertyTagTargetPrinter 0x0151 +#define PropertyTagExtraSamples 0x0152 +#define PropertyTagSampleFormat 0x0153 +#define PropertyTagSMinSampleValue 0x0154 +#define PropertyTagSMaxSampleValue 0x0155 +#define PropertyTagTransferRange 0x0156 + +#define PropertyTagJPEGProc 0x0200 +#define PropertyTagJPEGInterFormat 0x0201 +#define PropertyTagJPEGInterLength 0x0202 +#define PropertyTagJPEGRestartInterval 0x0203 +#define PropertyTagJPEGLosslessPredictors 0x0205 +#define PropertyTagJPEGPointTransforms 0x0206 +#define PropertyTagJPEGQTables 0x0207 +#define PropertyTagJPEGDCTables 0x0208 +#define PropertyTagJPEGACTables 0x0209 + +#define PropertyTagYCbCrCoefficients 0x0211 +#define PropertyTagYCbCrSubsampling 0x0212 +#define PropertyTagYCbCrPositioning 0x0213 +#define PropertyTagREFBlackWhite 0x0214 + +#define PropertyTagICCProfile 0x8773 // This TAG is defined by ICC + // for embedded ICC in TIFF +#define PropertyTagGamma 0x0301 +#define PropertyTagICCProfileDescriptor 0x0302 +#define PropertyTagSRGBRenderingIntent 0x0303 + +#define PropertyTagImageTitle 0x0320 +#define PropertyTagCopyright 0x8298 + +// Extra TAGs (Like Adobe Image Information tags etc.) + +#define PropertyTagResolutionXUnit 0x5001 +#define PropertyTagResolutionYUnit 0x5002 +#define PropertyTagResolutionXLengthUnit 0x5003 +#define PropertyTagResolutionYLengthUnit 0x5004 +#define PropertyTagPrintFlags 0x5005 +#define PropertyTagPrintFlagsVersion 0x5006 +#define PropertyTagPrintFlagsCrop 0x5007 +#define PropertyTagPrintFlagsBleedWidth 0x5008 +#define PropertyTagPrintFlagsBleedWidthScale 0x5009 +#define PropertyTagHalftoneLPI 0x500A +#define PropertyTagHalftoneLPIUnit 0x500B +#define PropertyTagHalftoneDegree 0x500C +#define PropertyTagHalftoneShape 0x500D +#define PropertyTagHalftoneMisc 0x500E +#define PropertyTagHalftoneScreen 0x500F +#define PropertyTagJPEGQuality 0x5010 +#define PropertyTagGridSize 0x5011 +#define PropertyTagThumbnailFormat 0x5012 // 1 = JPEG, 0 = RAW RGB +#define PropertyTagThumbnailWidth 0x5013 +#define PropertyTagThumbnailHeight 0x5014 +#define PropertyTagThumbnailColorDepth 0x5015 +#define PropertyTagThumbnailPlanes 0x5016 +#define PropertyTagThumbnailRawBytes 0x5017 +#define PropertyTagThumbnailSize 0x5018 +#define PropertyTagThumbnailCompressedSize 0x5019 +#define PropertyTagColorTransferFunction 0x501A +#define PropertyTagThumbnailData 0x501B// RAW thumbnail bits in + // JPEG format or RGB format + // depends on + // PropertyTagThumbnailFormat + +// Thumbnail related TAGs + +#define PropertyTagThumbnailImageWidth 0x5020 // Thumbnail width +#define PropertyTagThumbnailImageHeight 0x5021 // Thumbnail height +#define PropertyTagThumbnailBitsPerSample 0x5022 // Number of bits per + // component +#define PropertyTagThumbnailCompression 0x5023 // Compression Scheme +#define PropertyTagThumbnailPhotometricInterp 0x5024 // Pixel composition +#define PropertyTagThumbnailImageDescription 0x5025 // Image Tile +#define PropertyTagThumbnailEquipMake 0x5026 // Manufacturer of Image + // Input equipment +#define PropertyTagThumbnailEquipModel 0x5027 // Model of Image input + // equipment +#define PropertyTagThumbnailStripOffsets 0x5028 // Image data location +#define PropertyTagThumbnailOrientation 0x5029 // Orientation of image +#define PropertyTagThumbnailSamplesPerPixel 0x502A // Number of components +#define PropertyTagThumbnailRowsPerStrip 0x502B // Number of rows per strip +#define PropertyTagThumbnailStripBytesCount 0x502C // Bytes per compressed + // strip +#define PropertyTagThumbnailResolutionX 0x502D // Resolution in width + // direction +#define PropertyTagThumbnailResolutionY 0x502E // Resolution in height + // direction +#define PropertyTagThumbnailPlanarConfig 0x502F // Image data arrangement +#define PropertyTagThumbnailResolutionUnit 0x5030 // Unit of X and Y + // Resolution +#define PropertyTagThumbnailTransferFunction 0x5031 // Transfer function +#define PropertyTagThumbnailSoftwareUsed 0x5032 // Software used +#define PropertyTagThumbnailDateTime 0x5033 // File change date and + // time +#define PropertyTagThumbnailArtist 0x5034 // Person who created the + // image +#define PropertyTagThumbnailWhitePoint 0x5035 // White point chromaticity +#define PropertyTagThumbnailPrimaryChromaticities 0x5036 + // Chromaticities of + // primaries +#define PropertyTagThumbnailYCbCrCoefficients 0x5037 // Color space transforma- + // tion coefficients +#define PropertyTagThumbnailYCbCrSubsampling 0x5038 // Subsampling ratio of Y + // to C +#define PropertyTagThumbnailYCbCrPositioning 0x5039 // Y and C position +#define PropertyTagThumbnailRefBlackWhite 0x503A // Pair of black and white + // reference values +#define PropertyTagThumbnailCopyRight 0x503B // CopyRight holder + +#define PropertyTagLuminanceTable 0x5090 +#define PropertyTagChrominanceTable 0x5091 + +#define PropertyTagFrameDelay 0x5100 +#define PropertyTagLoopCount 0x5101 + +#if (GDIPVER >= 0x0110) +#define PropertyTagGlobalPalette 0x5102 +#define PropertyTagIndexBackground 0x5103 +#define PropertyTagIndexTransparent 0x5104 +#endif //(GDIPVER >= 0x0110) + +#define PropertyTagPixelUnit 0x5110 // Unit specifier for pixel/unit +#define PropertyTagPixelPerUnitX 0x5111 // Pixels per unit in X +#define PropertyTagPixelPerUnitY 0x5112 // Pixels per unit in Y +#define PropertyTagPaletteHistogram 0x5113 // Palette histogram + +// EXIF specific tag + +#define PropertyTagExifExposureTime 0x829A +#define PropertyTagExifFNumber 0x829D + +#define PropertyTagExifExposureProg 0x8822 +#define PropertyTagExifSpectralSense 0x8824 +#define PropertyTagExifISOSpeed 0x8827 +#define PropertyTagExifOECF 0x8828 + +#define PropertyTagExifVer 0x9000 +#define PropertyTagExifDTOrig 0x9003 // Date & time of original +#define PropertyTagExifDTDigitized 0x9004 // Date & time of digital data generation + +#define PropertyTagExifCompConfig 0x9101 +#define PropertyTagExifCompBPP 0x9102 + +#define PropertyTagExifShutterSpeed 0x9201 +#define PropertyTagExifAperture 0x9202 +#define PropertyTagExifBrightness 0x9203 +#define PropertyTagExifExposureBias 0x9204 +#define PropertyTagExifMaxAperture 0x9205 +#define PropertyTagExifSubjectDist 0x9206 +#define PropertyTagExifMeteringMode 0x9207 +#define PropertyTagExifLightSource 0x9208 +#define PropertyTagExifFlash 0x9209 +#define PropertyTagExifFocalLength 0x920A +#define PropertyTagExifSubjectArea 0x9214 // exif 2.2 Subject Area +#define PropertyTagExifMakerNote 0x927C +#define PropertyTagExifUserComment 0x9286 +#define PropertyTagExifDTSubsec 0x9290 // Date & Time subseconds +#define PropertyTagExifDTOrigSS 0x9291 // Date & Time original subseconds +#define PropertyTagExifDTDigSS 0x9292 // Date & TIme digitized subseconds + +#define PropertyTagExifFPXVer 0xA000 +#define PropertyTagExifColorSpace 0xA001 +#define PropertyTagExifPixXDim 0xA002 +#define PropertyTagExifPixYDim 0xA003 +#define PropertyTagExifRelatedWav 0xA004 // related sound file +#define PropertyTagExifInterop 0xA005 +#define PropertyTagExifFlashEnergy 0xA20B +#define PropertyTagExifSpatialFR 0xA20C // Spatial Frequency Response +#define PropertyTagExifFocalXRes 0xA20E // Focal Plane X Resolution +#define PropertyTagExifFocalYRes 0xA20F // Focal Plane Y Resolution +#define PropertyTagExifFocalResUnit 0xA210 // Focal Plane Resolution Unit +#define PropertyTagExifSubjectLoc 0xA214 +#define PropertyTagExifExposureIndex 0xA215 +#define PropertyTagExifSensingMethod 0xA217 +#define PropertyTagExifFileSource 0xA300 +#define PropertyTagExifSceneType 0xA301 +#define PropertyTagExifCfaPattern 0xA302 + +// New EXIF 2.2 properties + +#define PropertyTagExifCustomRendered 0xA401 +#define PropertyTagExifExposureMode 0xA402 +#define PropertyTagExifWhiteBalance 0xA403 +#define PropertyTagExifDigitalZoomRatio 0xA404 +#define PropertyTagExifFocalLengthIn35mmFilm 0xA405 +#define PropertyTagExifSceneCaptureType 0xA406 +#define PropertyTagExifGainControl 0xA407 +#define PropertyTagExifContrast 0xA408 +#define PropertyTagExifSaturation 0xA409 +#define PropertyTagExifSharpness 0xA40A +#define PropertyTagExifDeviceSettingDesc 0xA40B +#define PropertyTagExifSubjectDistanceRange 0xA40C +#define PropertyTagExifUniqueImageID 0xA420 + + +#define PropertyTagGpsVer 0x0000 +#define PropertyTagGpsLatitudeRef 0x0001 +#define PropertyTagGpsLatitude 0x0002 +#define PropertyTagGpsLongitudeRef 0x0003 +#define PropertyTagGpsLongitude 0x0004 +#define PropertyTagGpsAltitudeRef 0x0005 +#define PropertyTagGpsAltitude 0x0006 +#define PropertyTagGpsGpsTime 0x0007 +#define PropertyTagGpsGpsSatellites 0x0008 +#define PropertyTagGpsGpsStatus 0x0009 +#define PropertyTagGpsGpsMeasureMode 0x00A +#define PropertyTagGpsGpsDop 0x000B // Measurement precision +#define PropertyTagGpsSpeedRef 0x000C +#define PropertyTagGpsSpeed 0x000D +#define PropertyTagGpsTrackRef 0x000E +#define PropertyTagGpsTrack 0x000F +#define PropertyTagGpsImgDirRef 0x0010 +#define PropertyTagGpsImgDir 0x0011 +#define PropertyTagGpsMapDatum 0x0012 +#define PropertyTagGpsDestLatRef 0x0013 +#define PropertyTagGpsDestLat 0x0014 +#define PropertyTagGpsDestLongRef 0x0015 +#define PropertyTagGpsDestLong 0x0016 +#define PropertyTagGpsDestBearRef 0x0017 +#define PropertyTagGpsDestBear 0x0018 +#define PropertyTagGpsDestDistRef 0x0019 +#define PropertyTagGpsDestDist 0x001A +#define PropertyTagGpsProcessingMethod 0x001B +#define PropertyTagGpsAreaInformation 0x001C +#define PropertyTagGpsDate 0x001D +#define PropertyTagGpsDifferential 0x001E + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusinit.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusinit.h new file mode 100644 index 0000000000000000000000000000000000000000..9993b298c74138eea1d1e41fd7f3365d3fe8f1af --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusinit.h @@ -0,0 +1,167 @@ +/************************************************************************** +* +* Copyright (c) 2000-2003 Microsoft Corporation +* +* Module Name: +* +* Gdiplus initialization +* +* Abstract: +* +* GDI+ Startup and Shutdown APIs +* +**************************************************************************/ + +#ifndef _GDIPLUSINIT_H +#define _GDIPLUSINIT_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +enum DebugEventLevel +{ + DebugEventLevelFatal, + DebugEventLevelWarning +}; + +// Callback function that GDI+ can call, on debug builds, for assertions +// and warnings. + +typedef VOID (WINAPI *DebugEventProc)(DebugEventLevel level, CHAR *message); + +// Notification functions which the user must call appropriately if +// "SuppressBackgroundThread" (below) is set. + +typedef Status (WINAPI *NotificationHookProc)(OUT ULONG_PTR *token); +typedef VOID (WINAPI *NotificationUnhookProc)(ULONG_PTR token); + +// Input structure for GdiplusStartup() + +struct GdiplusStartupInput +{ + UINT32 GdiplusVersion; // Must be 1 (or 2 for the Ex version) + DebugEventProc DebugEventCallback; // Ignored on free builds + BOOL SuppressBackgroundThread; // FALSE unless you're prepared to call + // the hook/unhook functions properly + BOOL SuppressExternalCodecs; // FALSE unless you want GDI+ only to use + // its internal image codecs. + + GdiplusStartupInput( + DebugEventProc debugEventCallback = NULL, + BOOL suppressBackgroundThread = FALSE, + BOOL suppressExternalCodecs = FALSE) + { + GdiplusVersion = 1; + DebugEventCallback = debugEventCallback; + SuppressBackgroundThread = suppressBackgroundThread; + SuppressExternalCodecs = suppressExternalCodecs; + } +}; + +#if (GDIPVER >= 0x0110) +struct GdiplusStartupInputEx : GdiplusStartupInput +{ + enum class Version : UINT32 + { + V2 = 2, + V3 = 3 // Enables Heif and Avif image codecs. Unlike other functionalities in Gdiplus, + // these two codecs require COM to be initiailized. + }; + + INT StartupParameters; // Do we not set the FPU rounding mode + + GdiplusStartupInputEx( + INT startupParameters = 0, + DebugEventProc debugEventCallback = NULL, + BOOL suppressBackgroundThread = FALSE, + BOOL suppressExternalCodecs = FALSE) + { + GdiplusVersion = 2; + DebugEventCallback = debugEventCallback; + SuppressBackgroundThread = suppressBackgroundThread; + SuppressExternalCodecs = suppressExternalCodecs; + StartupParameters = startupParameters; + } + + GdiplusStartupInputEx( + Version gdiplusVersion, + INT startupParameters = 0, + DebugEventProc debugEventCallback = NULL, + BOOL suppressBackgroundThread = FALSE, + BOOL suppressExternalCodecs = FALSE) + { + GdiplusVersion = static_cast(gdiplusVersion); + DebugEventCallback = debugEventCallback; + SuppressBackgroundThread = suppressBackgroundThread; + SuppressExternalCodecs = suppressExternalCodecs; + StartupParameters = startupParameters; + } +}; + +enum GdiplusStartupParams +{ + GdiplusStartupDefault = 0x00000000, + GdiplusStartupNoSetRound = 0x00000001, + GdiplusStartupSetPSValue = 0x00000002, + GdiplusStartupReserved0 = 0x00000004, + GdiplusStartupReserved1 = 0x00000008, + GdiplusStartupReserved2 = 0x00000010, + GdiplusStartupTransparencyMask = 0xFF000000 +}; + +#endif + + +// Output structure for GdiplusStartup() + +struct GdiplusStartupOutput +{ + // The following 2 fields are NULL if SuppressBackgroundThread is FALSE. + // Otherwise, they are functions which must be called appropriately to + // replace the background thread. + // + // These should be called on the application's main message loop - i.e. + // a message loop which is active for the lifetime of GDI+. + // "NotificationHook" should be called before starting the loop, + // and "NotificationUnhook" should be called after the loop ends. + + NotificationHookProc NotificationHook; + NotificationUnhookProc NotificationUnhook; +}; + +// GDI+ initialization. Must not be called from DllMain - can cause deadlock. +// +// Must be called before GDI+ API's or constructors are used. +// +// token - may not be NULL - accepts a token to be passed in the corresponding +// GdiplusShutdown call. +// input - may not be NULL +// output - may be NULL only if input->SuppressBackgroundThread is FALSE. + +extern "C" Status WINAPI GdiplusStartup( + OUT ULONG_PTR *token, + const GdiplusStartupInput *input, + OUT GdiplusStartupOutput *output); + +// GDI+ termination. Must be called before GDI+ is unloaded. +// Must not be called from DllMain - can cause deadlock. +// +// GDI+ API's may not be called after GdiplusShutdown. Pay careful attention +// to GDI+ object destructors. + +extern "C" VOID WINAPI GdiplusShutdown(ULONG_PTR token); + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluslinecaps.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluslinecaps.h new file mode 100644 index 0000000000000000000000000000000000000000..fc54243c43e90b4ec027ba23f205520d4dd5426c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluslinecaps.h @@ -0,0 +1,271 @@ +/**************************************************************************\ +* +* Copyright (c) 2000-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusLineCaps.h +* +* Abstract: +* +* GDI+ CustomLineCap APIs +* +\**************************************************************************/ + +#ifndef _GDIPLUSLINECAPS_H +#define _GDIPLUSLINECAPS_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +inline +CustomLineCap::CustomLineCap( + IN const GraphicsPath* fillPath, + IN const GraphicsPath* strokePath, + IN LineCap baseCap, + IN REAL baseInset + ) +{ + nativeCap = NULL; + GpPath* nativeFillPath = NULL; + GpPath* nativeStrokePath = NULL; + + if(fillPath) + nativeFillPath = fillPath->nativePath; + if(strokePath) + nativeStrokePath = strokePath->nativePath; + + lastResult = DllExports::GdipCreateCustomLineCap( + nativeFillPath, nativeStrokePath, + baseCap, baseInset, &nativeCap); +} + +inline +CustomLineCap::CustomLineCap() +{ + nativeCap = NULL; + lastResult = Ok; +} + +inline +CustomLineCap::~CustomLineCap() +{ + DllExports::GdipDeleteCustomLineCap(nativeCap); +} + +inline Status +CustomLineCap::SetStrokeCaps( + IN LineCap startCap, + IN LineCap endCap) +{ + return SetStatus(DllExports::GdipSetCustomLineCapStrokeCaps(nativeCap, + startCap, endCap)); +} + +inline Status +CustomLineCap::GetStrokeCaps( + OUT LineCap* startCap, + OUT LineCap* endCap) const +{ + return SetStatus(DllExports::GdipGetCustomLineCapStrokeCaps(nativeCap, + startCap, endCap)); +} + +inline Status +CustomLineCap::SetStrokeJoin( + IN LineJoin lineJoin) +{ + return SetStatus(DllExports::GdipSetCustomLineCapStrokeJoin(nativeCap, + lineJoin)); +} + +inline LineJoin +CustomLineCap::GetStrokeJoin() const +{ + LineJoin lineJoin; + + SetStatus(DllExports::GdipGetCustomLineCapStrokeJoin(nativeCap, + &lineJoin)); + + return lineJoin; +} + +inline Status +CustomLineCap::SetBaseCap(IN LineCap baseCap) +{ + return SetStatus(DllExports::GdipSetCustomLineCapBaseCap(nativeCap, + baseCap)); +} + +inline LineCap +CustomLineCap::GetBaseCap() const +{ + LineCap baseCap; + SetStatus(DllExports::GdipGetCustomLineCapBaseCap(nativeCap, &baseCap)); + + return baseCap; +} + +inline Status +CustomLineCap::SetBaseInset(IN REAL inset) +{ + return SetStatus(DllExports::GdipSetCustomLineCapBaseInset(nativeCap, + inset)); +} + +inline REAL +CustomLineCap::GetBaseInset() const +{ + REAL inset; + SetStatus(DllExports::GdipGetCustomLineCapBaseInset(nativeCap, &inset)); + + return inset; +} + + +inline Status +CustomLineCap::SetWidthScale(IN REAL widthScale) +{ + return SetStatus(DllExports::GdipSetCustomLineCapWidthScale(nativeCap, + widthScale)); +} + +inline REAL +CustomLineCap::GetWidthScale() const +{ + REAL widthScale; + SetStatus(DllExports::GdipGetCustomLineCapWidthScale(nativeCap, + &widthScale)); + + return widthScale; +} + +inline CustomLineCap* +CustomLineCap::Clone() const +{ + GpCustomLineCap *newNativeLineCap = NULL; + + SetStatus(DllExports::GdipCloneCustomLineCap(nativeCap, + &newNativeLineCap)); + + if (lastResult == Ok) + { + CustomLineCap *newLineCap = new CustomLineCap(newNativeLineCap, + lastResult); + if (newLineCap == NULL) + { + SetStatus(DllExports::GdipDeleteCustomLineCap(newNativeLineCap)); + } + + return newLineCap; + } + + return NULL; +} + +inline Status +CustomLineCap::GetLastStatus() const +{ + Status lastStatus = lastResult; + lastResult = Ok; + return (lastStatus); +} + +class AdjustableArrowCap : public CustomLineCap +{ +public: + + AdjustableArrowCap( + IN REAL height, + IN REAL width, + IN BOOL isFilled = TRUE + ) + { + GpAdjustableArrowCap* cap = NULL; + + lastResult = DllExports::GdipCreateAdjustableArrowCap( + height, width, isFilled, &cap); + SetNativeCap(cap); + } + + Status SetHeight(IN REAL height) + { + GpAdjustableArrowCap* cap = (GpAdjustableArrowCap*) nativeCap; + return SetStatus(DllExports::GdipSetAdjustableArrowCapHeight( + cap, height)); + } + + REAL GetHeight() const + { + GpAdjustableArrowCap* cap = (GpAdjustableArrowCap*) nativeCap; + REAL height; + SetStatus(DllExports::GdipGetAdjustableArrowCapHeight( + cap, &height)); + + return height; + } + + Status SetWidth(IN REAL width) + { + GpAdjustableArrowCap* cap = (GpAdjustableArrowCap*) nativeCap; + return SetStatus(DllExports::GdipSetAdjustableArrowCapWidth( + cap, width)); + } + + REAL GetWidth() const + { + GpAdjustableArrowCap* cap = (GpAdjustableArrowCap*) nativeCap; + REAL width; + SetStatus(DllExports::GdipGetAdjustableArrowCapWidth( + cap, &width)); + + return width; + } + + Status SetMiddleInset(IN REAL middleInset) + { + GpAdjustableArrowCap* cap = (GpAdjustableArrowCap*) nativeCap; + return SetStatus(DllExports::GdipSetAdjustableArrowCapMiddleInset( + cap, middleInset)); + } + + REAL GetMiddleInset() const + { + GpAdjustableArrowCap* cap = (GpAdjustableArrowCap*) nativeCap; + REAL middleInset; + SetStatus(DllExports::GdipGetAdjustableArrowCapMiddleInset( + cap, &middleInset)); + + return middleInset; + } + + Status SetFillState(IN BOOL isFilled) + { + GpAdjustableArrowCap* cap = (GpAdjustableArrowCap*) nativeCap; + return SetStatus(DllExports::GdipSetAdjustableArrowCapFillState( + cap, isFilled)); + } + + BOOL IsFilled() const + { + GpAdjustableArrowCap* cap = (GpAdjustableArrowCap*) nativeCap; + BOOL isFilled; + SetStatus(DllExports::GdipGetAdjustableArrowCapFillState( + cap, &isFilled)); + + return isFilled; + } + +private: + AdjustableArrowCap(const AdjustableArrowCap &); + AdjustableArrowCap& operator=(const AdjustableArrowCap &); +}; + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmatrix.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmatrix.h new file mode 100644 index 0000000000000000000000000000000000000000..ed415bfdb5c21b40a264e5be4065158f044ce389 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmatrix.h @@ -0,0 +1,325 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusMatrix.h +* +* Abstract: +* +* GDI+ Matrix class +* +\**************************************************************************/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +class Matrix : public GdiplusBase +{ +public: + friend class Graphics; + friend class GraphicsPath; + friend class TextureBrush; + friend class LinearGradientBrush; + friend class PathGradientBrush; + friend class Pen; + friend class Region; + + // Default constructor is set to identity matrix. + + Matrix() + { + GpMatrix *matrix = NULL; + + lastResult = DllExports::GdipCreateMatrix(&matrix); + + SetNativeMatrix(matrix); + } + + Matrix(IN REAL m11, + IN REAL m12, + IN REAL m21, + IN REAL m22, + IN REAL dx, + IN REAL dy) + { + GpMatrix *matrix = NULL; + + lastResult = DllExports::GdipCreateMatrix2(m11, m12, m21, m22, + dx, dy, &matrix); + + SetNativeMatrix(matrix); + } + + Matrix(IN const RectF& rect, + IN const PointF* dstplg) + { + GpMatrix *matrix = NULL; + + lastResult = DllExports::GdipCreateMatrix3(&rect, + dstplg, + &matrix); + + SetNativeMatrix(matrix); + } + + Matrix(IN const Rect& rect, + IN const Point* dstplg) + { + GpMatrix *matrix = NULL; + + lastResult = DllExports::GdipCreateMatrix3I(&rect, + dstplg, + &matrix); + + SetNativeMatrix(matrix); + } + + ~Matrix() + { + DllExports::GdipDeleteMatrix(nativeMatrix); + } + + Matrix *Clone() const + { + GpMatrix *cloneMatrix = NULL; + + SetStatus(DllExports::GdipCloneMatrix(nativeMatrix, + &cloneMatrix)); + + if (lastResult != Ok) + return NULL; + + return new Matrix(cloneMatrix); + } + + Status GetElements(OUT REAL *m) const + { + return SetStatus(DllExports::GdipGetMatrixElements(nativeMatrix, m)); + } + + Status SetElements(IN REAL m11, + IN REAL m12, + IN REAL m21, + IN REAL m22, + IN REAL dx, + IN REAL dy) + { + return SetStatus(DllExports::GdipSetMatrixElements(nativeMatrix, + m11, m12, m21, m22, dx, dy)); + } + + REAL OffsetX() const + { + REAL elements[6]; + + if (GetElements(&elements[0]) == Ok) + return elements[4]; + else + return 0.0f; + } + + REAL OffsetY() const + { + REAL elements[6]; + + if (GetElements(&elements[0]) == Ok) + return elements[5]; + else + return 0.0f; + } + + Status Reset() + { + // set identity matrix elements + return SetStatus(DllExports::GdipSetMatrixElements(nativeMatrix, + 1.0, 0.0, 0.0, 1.0, 0.0, 0.0)); + } + + Status Multiply(IN const Matrix *matrix, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipMultiplyMatrix(nativeMatrix, + matrix->nativeMatrix, + order)); + } + + Status Translate(IN REAL offsetX, + IN REAL offsetY, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipTranslateMatrix(nativeMatrix, offsetX, + offsetY, order)); + } + + Status Scale(IN REAL scaleX, + IN REAL scaleY, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipScaleMatrix(nativeMatrix, scaleX, + scaleY, order)); + } + + Status Rotate(IN REAL angle, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipRotateMatrix(nativeMatrix, angle, + order)); + } + + Status RotateAt(IN REAL angle, + IN const PointF& center, + IN MatrixOrder order = MatrixOrderPrepend) + { + if(order == MatrixOrderPrepend) + { + SetStatus(DllExports::GdipTranslateMatrix(nativeMatrix, center.X, + center.Y, order)); + SetStatus(DllExports::GdipRotateMatrix(nativeMatrix, angle, + order)); + return SetStatus(DllExports::GdipTranslateMatrix(nativeMatrix, + -center.X, + -center.Y, + order)); + } + else + { + SetStatus(DllExports::GdipTranslateMatrix(nativeMatrix, + - center.X, + - center.Y, + order)); + SetStatus(DllExports::GdipRotateMatrix(nativeMatrix, angle, + order)); + return SetStatus(DllExports::GdipTranslateMatrix(nativeMatrix, + center.X, + center.Y, + order)); + } + } + + Status Shear(IN REAL shearX, + IN REAL shearY, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipShearMatrix(nativeMatrix, shearX, + shearY, order)); + } + + Status Invert() + { + return SetStatus(DllExports::GdipInvertMatrix(nativeMatrix)); + } + + // float version + Status TransformPoints(IN OUT PointF* pts, + IN INT count = 1) const + { + return SetStatus(DllExports::GdipTransformMatrixPoints(nativeMatrix, + pts, count)); + } + + Status TransformPoints(IN OUT Point* pts, + IN INT count = 1) const + { + return SetStatus(DllExports::GdipTransformMatrixPointsI(nativeMatrix, + pts, + count)); + } + + Status TransformVectors(IN OUT PointF* pts, + IN INT count = 1) const + { + return SetStatus(DllExports::GdipVectorTransformMatrixPoints( + nativeMatrix, pts, count)); + } + + Status TransformVectors(IN OUT Point* pts, + IN INT count = 1) const + { + return SetStatus(DllExports::GdipVectorTransformMatrixPointsI( + nativeMatrix, + pts, + count)); + } + + BOOL IsInvertible() const + { + BOOL result = FALSE; + + SetStatus(DllExports::GdipIsMatrixInvertible(nativeMatrix, &result)); + + return result; + } + + BOOL IsIdentity() const + { + BOOL result = FALSE; + + SetStatus(DllExports::GdipIsMatrixIdentity(nativeMatrix, &result)); + + return result; + } + + BOOL Equals(IN const Matrix *matrix) const + { + BOOL result = FALSE; + + SetStatus(DllExports::GdipIsMatrixEqual(nativeMatrix, + matrix->nativeMatrix, + &result)); + + return result; + } + + Status GetLastStatus() const + { + Status lastStatus = lastResult; + lastResult = Ok; + + return lastStatus; + } + +private: + Matrix(const Matrix &); + Matrix& operator=(const Matrix &); + +protected: + Matrix(GpMatrix *nativeMatrixArg) + { + lastResult = Ok; + SetNativeMatrix(nativeMatrixArg); + } + + VOID SetNativeMatrix(GpMatrix * nativeMatrixArg) + { + this->nativeMatrix = nativeMatrixArg; + } + + Status SetStatus(Status status) const + { + if (status != Ok) + return (lastResult = status); + else + return status; + } + +protected: + GpMatrix *nativeMatrix; + mutable Status lastResult; +}; + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmem.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmem.h new file mode 100644 index 0000000000000000000000000000000000000000..bf873ca8adac0b364dfb430839ac46b17c4680f1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmem.h @@ -0,0 +1,47 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusMem.h +* +* Abstract: +* +* GDI+ Private Memory Management APIs +* +\**************************************************************************/ + +#ifndef _GDIPLUSMEM_H +#define _GDIPLUSMEM_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#define WINGDIPAPI __stdcall + +//---------------------------------------------------------------------------- +// Memory Allocation APIs +//---------------------------------------------------------------------------- + +void* WINGDIPAPI +GdipAlloc(size_t size); + +void WINGDIPAPI +GdipFree(void* ptr); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_GDIPLUSMEM_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmetafile.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmetafile.h new file mode 100644 index 0000000000000000000000000000000000000000..9e698392406d99baed9b7ab5f4f4eabcdcd0cc5e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmetafile.h @@ -0,0 +1,481 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusMetafile.h +* +* Abstract: +* +* GDI+ Metafile class +* +\**************************************************************************/ + +#ifndef _GDIPLUSMETAFILE_H +#define _GDIPLUSMETAFILE_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +inline +Metafile::Metafile( + IN HMETAFILE hWmf, + IN const WmfPlaceableFileHeader * wmfPlaceableFileHeader, + IN BOOL deleteWmf + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipCreateMetafileFromWmf(hWmf, deleteWmf, + wmfPlaceableFileHeader, + &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN HENHMETAFILE hEmf, + IN BOOL deleteEmf + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipCreateMetafileFromEmf(hEmf, deleteEmf, + &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile(IN const WCHAR* filename) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipCreateMetafileFromFile(filename, + &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN const WCHAR* filename, + IN const WmfPlaceableFileHeader * wmfPlaceableFileHeader + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipCreateMetafileFromWmfFile(filename, + wmfPlaceableFileHeader, + &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile(IN IStream* stream) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipCreateMetafileFromStream(stream, + &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN HDC referenceHdc, + IN EmfType type, + IN const WCHAR * description + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipRecordMetafile( + referenceHdc, type, NULL, MetafileFrameUnitGdi, + description, &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN HDC referenceHdc, + IN const RectF & frameRect, + IN MetafileFrameUnit frameUnit, + IN EmfType type, + IN const WCHAR * description + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipRecordMetafile( + referenceHdc, type, &frameRect, frameUnit, + description, &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN HDC referenceHdc, + IN const Rect & frameRect, + IN MetafileFrameUnit frameUnit, + IN EmfType type, + IN const WCHAR * description + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipRecordMetafileI( + referenceHdc, type, &frameRect, frameUnit, + description, &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN const WCHAR* fileName, + IN HDC referenceHdc, + IN EmfType type, + IN const WCHAR * description + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipRecordMetafileFileName(fileName, + referenceHdc, type, NULL, MetafileFrameUnitGdi, + description, &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN const WCHAR* fileName, + IN HDC referenceHdc, + IN const RectF & frameRect, + IN MetafileFrameUnit frameUnit, + IN EmfType type, + IN const WCHAR * description + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipRecordMetafileFileName(fileName, + referenceHdc, type, &frameRect, frameUnit, + description, &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN const WCHAR* fileName, + IN HDC referenceHdc, + IN const Rect & frameRect, + IN MetafileFrameUnit frameUnit, + IN EmfType type, + IN const WCHAR * description + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipRecordMetafileFileNameI(fileName, + referenceHdc, type, &frameRect, frameUnit, + description, &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN IStream * stream, + IN HDC referenceHdc, + IN EmfType type, + IN const WCHAR * description + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipRecordMetafileStream(stream, + referenceHdc, type, NULL, MetafileFrameUnitGdi, + description, &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN IStream * stream, + IN HDC referenceHdc, + IN const RectF & frameRect, + IN MetafileFrameUnit frameUnit, + IN EmfType type, + IN const WCHAR * description + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipRecordMetafileStream(stream, + referenceHdc, type, &frameRect, frameUnit, + description, &metafile); + + SetNativeImage(metafile); +}; + +inline +Metafile::Metafile( + IN IStream * stream, + IN HDC referenceHdc, + IN const Rect & frameRect, + IN MetafileFrameUnit frameUnit, + IN EmfType type, + IN const WCHAR * description + ) +{ + GpMetafile * metafile = NULL; + + lastResult = DllExports::GdipRecordMetafileStreamI(stream, + referenceHdc, type, &frameRect, frameUnit, + description, &metafile); + + SetNativeImage(metafile); +}; + +inline Status +Metafile::GetMetafileHeader( + IN HMETAFILE hWmf, + IN const WmfPlaceableFileHeader * wmfPlaceableFileHeader, + OUT MetafileHeader * header + ) +{ + return DllExports::GdipGetMetafileHeaderFromWmf(hWmf, + wmfPlaceableFileHeader, + header); +}; + +inline Status +Metafile::GetMetafileHeader( + IN HENHMETAFILE hEmf, + OUT MetafileHeader * header + ) +{ + return DllExports::GdipGetMetafileHeaderFromEmf(hEmf, header); +}; + +inline Status +Metafile::GetMetafileHeader( + IN const WCHAR* filename, + OUT MetafileHeader * header + ) +{ + return DllExports::GdipGetMetafileHeaderFromFile(filename, header); +}; + +inline Status +Metafile::GetMetafileHeader( + IN IStream * stream, + OUT MetafileHeader * header + ) +{ + return DllExports::GdipGetMetafileHeaderFromStream(stream, header); +}; + +inline Status +Metafile::GetMetafileHeader( + OUT MetafileHeader * header + ) const +{ + return SetStatus(DllExports::GdipGetMetafileHeaderFromMetafile( + (GpMetafile *)nativeImage, + header)); +}; + +// Once this method is called, the Metafile object is in an invalid state +// and can no longer be used. It is the responsiblity of the caller to +// invoke DeleteEnhMetaFile to delete this hEmf. + +inline HENHMETAFILE +Metafile::GetHENHMETAFILE() +{ + HENHMETAFILE hEmf; + + SetStatus(DllExports::GdipGetHemfFromMetafile( + (GpMetafile *)nativeImage, + &hEmf)); + + return hEmf; +}; + +// Used in conjuction with Graphics::EnumerateMetafile to play an EMF+ +// The data must be DWORD aligned if it's an EMF or EMF+. It must be +// WORD aligned if it's a WMF. + +inline Status +Metafile::PlayRecord( + IN EmfPlusRecordType recordType, + IN UINT flags, + IN UINT dataSize, + IN const BYTE * data + ) const +{ + return SetStatus(DllExports::GdipPlayMetafileRecord( + (GpMetafile *)nativeImage, + recordType, + flags, + dataSize, + data)); +}; + +// If you're using a printer HDC for the metafile, but you want the +// metafile rasterized at screen resolution, then use this API to set +// the rasterization dpi of the metafile to the screen resolution, +// e.g. 96 dpi or 120 dpi. + +inline Status +Metafile::SetDownLevelRasterizationLimit( + IN UINT metafileRasterizationLimitDpi + ) +{ + return SetStatus(DllExports:: + GdipSetMetafileDownLevelRasterizationLimit( + (GpMetafile *)nativeImage, + metafileRasterizationLimitDpi)); +}; + +inline UINT +Metafile::GetDownLevelRasterizationLimit() const +{ + UINT metafileRasterizationLimitDpi = 0; + + SetStatus(DllExports::GdipGetMetafileDownLevelRasterizationLimit( + (GpMetafile *)nativeImage, + &metafileRasterizationLimitDpi)); + + return metafileRasterizationLimitDpi; +}; + +inline UINT +Metafile::EmfToWmfBits( + _In_ HENHMETAFILE hemf, + _In_ UINT cbData16, + _Out_writes_to_opt_(cbData16, return) LPBYTE pData16, + _In_ INT iMapMode, + _In_ INT eFlags + ) +{ + return DllExports::GdipEmfToWmfBits( + hemf, + cbData16, + pData16, + iMapMode, + eFlags); +}; + +#if (GDIPVER >= 0x0110) +inline Status +Metafile::ConvertToEmfPlus( + IN const Graphics* refGraphics, + IN OUT INT* conversionFailureFlag, + IN EmfType emfType, + IN const WCHAR* description + ) +{ + GpMetafile * metafile = NULL; + GpStatus status = DllExports::GdipConvertToEmfPlus( + (GpGraphics*)refGraphics->nativeGraphics, + (GpMetafile *)nativeImage, + conversionFailureFlag, + emfType, description, &metafile); + + if (metafile != NULL) + { + if (status == Ok) + { + DllExports::GdipDisposeImage(nativeImage); + SetNativeImage(metafile); + } + else + { + DllExports::GdipDisposeImage(metafile); + } + } + return status; +}; + +inline Status +Metafile::ConvertToEmfPlus( + IN const Graphics* refGraphics, + IN const WCHAR* filename, + IN OUT INT* conversionFailureFlag, + IN EmfType emfType, + IN const WCHAR* description + ) +{ + GpMetafile * metafile = NULL; + GpStatus status = DllExports::GdipConvertToEmfPlusToFile( + (GpGraphics*)refGraphics->nativeGraphics, + (GpMetafile *)nativeImage, + conversionFailureFlag, + filename, emfType, description, &metafile); + + if (metafile != NULL) + { + if (status == Ok) + { + DllExports::GdipDisposeImage(nativeImage); + SetNativeImage(metafile); + } + else + { + DllExports::GdipDisposeImage(metafile); + } + } + return status; +}; + +inline Status +Metafile::ConvertToEmfPlus( + IN const Graphics* refGraphics, + IN IStream* stream, + IN OUT INT* conversionFailureFlag, + IN EmfType emfType, + IN const WCHAR* description + ) +{ + GpMetafile * metafile = NULL; + GpStatus status = DllExports::GdipConvertToEmfPlusToStream( + (GpGraphics*)refGraphics->nativeGraphics, + (GpMetafile *)nativeImage, + conversionFailureFlag, + stream, emfType, description, &metafile); + + if (metafile != NULL) + { + if (status == Ok) + { + DllExports::GdipDisposeImage(nativeImage); + SetNativeImage(metafile); + } + else + { + DllExports::GdipDisposeImage(metafile); + } + } + return status; +}; +#endif //(GDIPVER >= 0x0110) + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_METAFILE_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmetaheader.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmetaheader.h new file mode 100644 index 0000000000000000000000000000000000000000..032d22acde0d8d84adb88cc847d04cd514d16541 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusmetaheader.h @@ -0,0 +1,230 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* Metafile headers +* +* Abstract: +* +* GDI+ Metafile Related Structures +* +\**************************************************************************/ + +#ifndef _GDIPLUSMETAHEADER_H +#define _GDIPLUSMETAHEADER_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +typedef struct +{ + DWORD iType; // Record type EMR_HEADER + DWORD nSize; // Record size in bytes. This may be greater + // than the sizeof(ENHMETAHEADER). + RECTL rclBounds; // Inclusive-inclusive bounds in device units + RECTL rclFrame; // Inclusive-inclusive Picture Frame .01mm unit + DWORD dSignature; // Signature. Must be ENHMETA_SIGNATURE. + DWORD nVersion; // Version number + DWORD nBytes; // Size of the metafile in bytes + DWORD nRecords; // Number of records in the metafile + WORD nHandles; // Number of handles in the handle table + // Handle index zero is reserved. + WORD sReserved; // Reserved. Must be zero. + DWORD nDescription; // Number of chars in the unicode desc string + // This is 0 if there is no description string + DWORD offDescription; // Offset to the metafile description record. + // This is 0 if there is no description string + DWORD nPalEntries; // Number of entries in the metafile palette. + SIZEL szlDevice; // Size of the reference device in pels + SIZEL szlMillimeters; // Size of the reference device in millimeters +} ENHMETAHEADER3; + +// Placeable WMFs + +// Placeable Metafiles were created as a non-standard way of specifying how +// a metafile is mapped and scaled on an output device. +// Placeable metafiles are quite wide-spread, but not directly supported by +// the Windows API. To playback a placeable metafile using the Windows API, +// you will first need to strip the placeable metafile header from the file. +// This is typically performed by copying the metafile to a temporary file +// starting at file offset 22 (0x16). The contents of the temporary file may +// then be used as input to the Windows GetMetaFile(), PlayMetaFile(), +// CopyMetaFile(), etc. GDI functions. + +// Each placeable metafile begins with a 22-byte header, +// followed by a standard metafile: + +#include // set structure packing to 2 + +typedef struct +{ + INT16 Left; + INT16 Top; + INT16 Right; + INT16 Bottom; +} PWMFRect16; + +typedef struct +{ + UINT32 Key; // GDIP_WMF_PLACEABLEKEY + INT16 Hmf; // Metafile HANDLE number (always 0) + PWMFRect16 BoundingBox; // Coordinates in metafile units + INT16 Inch; // Number of metafile units per inch + UINT32 Reserved; // Reserved (always 0) + INT16 Checksum; // Checksum value for previous 10 WORDs +} WmfPlaceableFileHeader; + +#include + +// Key contains a special identification value that indicates the presence +// of a placeable metafile header and is always 0x9AC6CDD7. + +// Handle is used to stored the handle of the metafile in memory. When written +// to disk, this field is not used and will always contains the value 0. + +// Left, Top, Right, and Bottom contain the coordinates of the upper-left +// and lower-right corners of the image on the output device. These are +// measured in twips. + +// A twip (meaning "twentieth of a point") is the logical unit of measurement +// used in Windows Metafiles. A twip is equal to 1/1440 of an inch. Thus 720 +// twips equal 1/2 inch, while 32,768 twips is 22.75 inches. + +// Inch contains the number of twips per inch used to represent the image. +// Normally, there are 1440 twips per inch; however, this number may be +// changed to scale the image. A value of 720 indicates that the image is +// double its normal size, or scaled to a factor of 2:1. A value of 360 +// indicates a scale of 4:1, while a value of 2880 indicates that the image +// is scaled down in size by a factor of two. A value of 1440 indicates +// a 1:1 scale ratio. + +// Reserved is not used and is always set to 0. + +// Checksum contains a checksum value for the previous 10 WORDs in the header. +// This value can be used in an attempt to detect if the metafile has become +// corrupted. The checksum is calculated by XORing each WORD value to an +// initial value of 0. + +// If the metafile was recorded with a reference Hdc that was a display. + +#define GDIP_EMFPLUSFLAGS_DISPLAY 0x00000001 + +class MetafileHeader +{ +public: + MetafileType Type; + UINT Size; // Size of the metafile (in bytes) + UINT Version; // EMF+, EMF, or WMF version + UINT EmfPlusFlags; + REAL DpiX; + REAL DpiY; + INT X; // Bounds in device units + INT Y; + INT Width; + INT Height; + union + { + METAHEADER WmfHeader; + ENHMETAHEADER3 EmfHeader; + }; + INT EmfPlusHeaderSize; // size of the EMF+ header in file + INT LogicalDpiX; // Logical Dpi of reference Hdc + INT LogicalDpiY; // usually valid only for EMF+ + +public: + MetafileType GetType() const { return Type; } + + UINT GetMetafileSize() const { return Size; } + + // If IsEmfPlus, this is the EMF+ version; else it is the WMF or EMF ver + + UINT GetVersion() const { return Version; } + + // Get the EMF+ flags associated with the metafile + + UINT GetEmfPlusFlags() const { return EmfPlusFlags; } + + REAL GetDpiX() const { return DpiX; } + + REAL GetDpiY() const { return DpiY; } + + VOID GetBounds (OUT Rect *rect) const + { + rect->X = X; + rect->Y = Y; + rect->Width = Width; + rect->Height = Height; + } + + // Is it any type of WMF (standard or Placeable Metafile)? + + BOOL IsWmf() const + { + return ((Type == MetafileTypeWmf) || (Type == MetafileTypeWmfPlaceable)); + } + + // Is this an Placeable Metafile? + + BOOL IsWmfPlaceable() const { return (Type == MetafileTypeWmfPlaceable); } + + // Is this an EMF (not an EMF+)? + + BOOL IsEmf() const { return (Type == MetafileTypeEmf); } + + // Is this an EMF or EMF+ file? + + BOOL IsEmfOrEmfPlus() const { return (Type >= MetafileTypeEmf); } + + // Is this an EMF+ file? + + BOOL IsEmfPlus() const { return (Type >= MetafileTypeEmfPlusOnly); } + + // Is this an EMF+ dual (has dual, down-level records) file? + + BOOL IsEmfPlusDual() const { return (Type == MetafileTypeEmfPlusDual); } + + // Is this an EMF+ only (no dual records) file? + + BOOL IsEmfPlusOnly() const { return (Type == MetafileTypeEmfPlusOnly); } + + // If it's an EMF+ file, was it recorded against a display Hdc? + + BOOL IsDisplay() const + { + return (IsEmfPlus() && + ((EmfPlusFlags & GDIP_EMFPLUSFLAGS_DISPLAY) != 0)); + } + + // Get the WMF header of the metafile (if it is a WMF) + + const METAHEADER * GetWmfHeader() const + { + if (IsWmf()) + { + return &WmfHeader; + } + return NULL; + } + + // Get the EMF header of the metafile (if it is an EMF) + + const ENHMETAHEADER3 * GetEmfHeader() const + { + if (IsEmfOrEmfPlus()) + { + return &EmfHeader; + } + return NULL; + } +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluspath.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluspath.h new file mode 100644 index 0000000000000000000000000000000000000000..031d51ba368f44a7f894512371b28b6d2af689dd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluspath.h @@ -0,0 +1,1565 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusPath.h +* +* Abstract: +* +* GDI+ Graphics Path class +* +\**************************************************************************/ + +#ifndef _GDIPLUSPATH_H +#define _GDIPLUSPATH_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#if _MSC_VER >= 1400 +#pragma warning(disable:4365) /* signed/unsigned mismatch */ +#endif +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +class GraphicsPath : public GdiplusBase +{ +public: + friend class Graphics; + friend class Region; + friend class PathGradientBrush; + friend class GraphicsPathIterator; + friend class CustomLineCap; + + GraphicsPath(IN FillMode fillMode = FillModeAlternate) + { + nativePath = NULL; + lastResult = DllExports::GdipCreatePath(fillMode, &nativePath); + } + + GraphicsPath(IN const PointF* points, + IN const BYTE* types, + IN INT count, + IN FillMode fillMode = FillModeAlternate) + { + nativePath = NULL; + lastResult = DllExports::GdipCreatePath2(points, + types, + count, + fillMode, + &nativePath); + } + + GraphicsPath(IN const Point* points, + IN const BYTE* types, + IN INT count, + IN FillMode fillMode = FillModeAlternate) + { + nativePath = NULL; + lastResult = DllExports::GdipCreatePath2I(points, + types, + count, + fillMode, + &nativePath); + } + + ~GraphicsPath() + { + DllExports::GdipDeletePath(nativePath); + } + + GraphicsPath* Clone() const + { + GpPath *clonepath = NULL; + + SetStatus(DllExports::GdipClonePath(nativePath, &clonepath)); + + return new GraphicsPath(clonepath); + } + + // Reset the path object to empty (and fill mode to FillModeAlternate) + + Status Reset() + { + return SetStatus(DllExports::GdipResetPath(nativePath)); + } + + FillMode GetFillMode() const + { + FillMode fillmode = FillModeAlternate; + + SetStatus(DllExports::GdipGetPathFillMode(nativePath, &fillmode)); + + return fillmode; + } + + Status SetFillMode(IN FillMode fillmode) + { + return SetStatus(DllExports::GdipSetPathFillMode(nativePath, + fillmode)); + } + + Status GetPathData(OUT PathData* pathData) const + { + if (pathData == NULL) + { + return SetStatus(InvalidParameter); + } + + INT count = GetPointCount(); + + if ((count <= 0) || (pathData->Count>0 && pathData->CountCount = 0; + if (pathData->Points) + { + delete [] pathData->Points; + pathData->Points = NULL; + } + + if (pathData->Types) + { + delete [] pathData->Types; + pathData->Types = NULL; + } + + if (count <= 0) + { + return Ok; + } + } + + if (pathData->Count == 0) + { + pathData->Points = new PointF[count]; + if (pathData->Points == NULL) + { + return SetStatus(OutOfMemory); + + } + pathData->Types = new byte[count]; + if (pathData->Types == NULL) + { + delete [] pathData->Points; + pathData->Points = NULL; + + return SetStatus(OutOfMemory); + } + pathData->Count = count; + } + + return SetStatus(DllExports::GdipGetPathData(nativePath, pathData)); + } + + Status StartFigure() + { + return SetStatus(DllExports::GdipStartPathFigure(nativePath)); + } + + Status CloseFigure() + { + return SetStatus(DllExports::GdipClosePathFigure(nativePath)); + } + + Status CloseAllFigures() + { + return SetStatus(DllExports::GdipClosePathFigures(nativePath)); + } + + Status SetMarker() + { + return SetStatus(DllExports::GdipSetPathMarker(nativePath)); + } + + Status ClearMarkers() + { + return SetStatus(DllExports::GdipClearPathMarkers(nativePath)); + } + + Status Reverse() + { + return SetStatus(DllExports::GdipReversePath(nativePath)); + } + + Status GetLastPoint(OUT PointF* lastPoint) const + { + return SetStatus(DllExports::GdipGetPathLastPoint(nativePath, + lastPoint)); + } + + Status AddLine(IN const PointF& pt1, + IN const PointF& pt2) + { + return AddLine(pt1.X, pt1.Y, pt2.X, pt2.Y); + } + + Status AddLine(IN REAL x1, + IN REAL y1, + IN REAL x2, + IN REAL y2) + { + return SetStatus(DllExports::GdipAddPathLine(nativePath, x1, y1, + x2, y2)); + } + + Status AddLines(IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathLine2(nativePath, points, + count)); + } + + Status AddLine(IN const Point& pt1, + IN const Point& pt2) + { + return AddLine(pt1.X, + pt1.Y, + pt2.X, + pt2.Y); + } + + Status AddLine(IN INT x1, + IN INT y1, + IN INT x2, + IN INT y2) + { + return SetStatus(DllExports::GdipAddPathLineI(nativePath, + x1, + y1, + x2, + y2)); + } + + Status AddLines(IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathLine2I(nativePath, + points, + count)); + } + + Status AddArc(IN const RectF& rect, + IN REAL startAngle, + IN REAL sweepAngle) + { + return AddArc(rect.X, rect.Y, rect.Width, rect.Height, + startAngle, sweepAngle); + } + + Status AddArc(IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height, + IN REAL startAngle, + IN REAL sweepAngle) + { + return SetStatus(DllExports::GdipAddPathArc(nativePath, x, y, width, + height, startAngle, + sweepAngle)); + } + + Status AddArc(IN const Rect& rect, + IN REAL startAngle, + IN REAL sweepAngle) + { + return AddArc(rect.X, rect.Y, rect.Width, rect.Height, + startAngle, sweepAngle); + } + + Status AddArc(IN INT x, + IN INT y, + IN INT width, + IN INT height, + IN REAL startAngle, + IN REAL sweepAngle) + { + return SetStatus(DllExports::GdipAddPathArcI(nativePath, + x, + y, + width, + height, + startAngle, + sweepAngle)); + } + + Status AddBezier(IN const PointF& pt1, + IN const PointF& pt2, + IN const PointF& pt3, + IN const PointF& pt4) + { + return AddBezier(pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, + pt4.Y); + } + + Status AddBezier(IN REAL x1, + IN REAL y1, + IN REAL x2, + IN REAL y2, + IN REAL x3, + IN REAL y3, + IN REAL x4, + IN REAL y4) + { + return SetStatus(DllExports::GdipAddPathBezier(nativePath, x1, y1, x2, + y2, x3, y3, x4, y4)); + } + + Status AddBeziers(IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathBeziers(nativePath, points, + count)); + } + + Status AddBezier(IN const Point& pt1, + IN const Point& pt2, + IN const Point& pt3, + IN const Point& pt4) + { + return AddBezier(pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, + pt4.Y); + } + + Status AddBezier(IN INT x1, + IN INT y1, + IN INT x2, + IN INT y2, + IN INT x3, + IN INT y3, + IN INT x4, + IN INT y4) + { + return SetStatus(DllExports::GdipAddPathBezierI(nativePath, + x1, + y1, + x2, + y2, + x3, + y3, + x4, + y4)); + } + + Status AddBeziers(IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathBeziersI(nativePath, + points, + count)); + } + + Status AddCurve(IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathCurve(nativePath, + points, + count)); + } + + Status AddCurve(IN const PointF* points, + IN INT count, + IN REAL tension) + { + return SetStatus(DllExports::GdipAddPathCurve2(nativePath, + points, + count, + tension)); + } + + Status AddCurve(IN const PointF* points, + IN INT count, + IN INT offset, + IN INT numberOfSegments, + IN REAL tension) + { + return SetStatus(DllExports::GdipAddPathCurve3(nativePath, + points, + count, + offset, + numberOfSegments, + tension)); + } + + Status AddCurve(IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathCurveI(nativePath, + points, + count)); + } + + Status AddCurve(IN const Point* points, + IN INT count, + IN REAL tension) + { + return SetStatus(DllExports::GdipAddPathCurve2I(nativePath, + points, + count, + tension)); + } + + Status AddCurve(IN const Point* points, + IN INT count, + IN INT offset, + IN INT numberOfSegments, + IN REAL tension) + { + return SetStatus(DllExports::GdipAddPathCurve3I(nativePath, + points, + count, + offset, + numberOfSegments, + tension)); + } + + Status AddClosedCurve(IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathClosedCurve(nativePath, + points, + count)); + } + + Status AddClosedCurve(IN const PointF* points, + IN INT count, + IN REAL tension) + { + return SetStatus(DllExports::GdipAddPathClosedCurve2(nativePath, + points, + count, + tension)); + } + + Status AddClosedCurve(IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathClosedCurveI(nativePath, + points, + count)); + } + + + Status AddClosedCurve(IN const Point* points, + IN INT count, + IN REAL tension) + { + return SetStatus(DllExports::GdipAddPathClosedCurve2I(nativePath, + points, + count, + tension)); + } + + Status AddRectangle(IN const RectF& rect) + { + return SetStatus(DllExports::GdipAddPathRectangle(nativePath, + rect.X, + rect.Y, + rect.Width, + rect.Height)); + } + + Status AddRectangles(IN const RectF* rects, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathRectangles(nativePath, + rects, + count)); + } + + Status AddRectangle(IN const Rect& rect) + { + return SetStatus(DllExports::GdipAddPathRectangleI(nativePath, + rect.X, + rect.Y, + rect.Width, + rect.Height)); + } + + Status AddRectangles(IN const Rect* rects, INT count) + { + return SetStatus(DllExports::GdipAddPathRectanglesI(nativePath, + rects, + count)); + } + + Status AddEllipse(IN const RectF& rect) + { + return AddEllipse(rect.X, rect.Y, rect.Width, rect.Height); + } + + Status AddEllipse(IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height) + { + return SetStatus(DllExports::GdipAddPathEllipse(nativePath, + x, + y, + width, + height)); + } + + Status AddEllipse(IN const Rect& rect) + { + return AddEllipse(rect.X, rect.Y, rect.Width, rect.Height); + } + + Status AddEllipse(IN INT x, + IN INT y, + IN INT width, + IN INT height) + { + return SetStatus(DllExports::GdipAddPathEllipseI(nativePath, + x, + y, + width, + height)); + } + + Status AddPie(IN const RectF& rect, + IN REAL startAngle, + IN REAL sweepAngle) + { + return AddPie(rect.X, rect.Y, rect.Width, rect.Height, startAngle, + sweepAngle); + } + + Status AddPie(IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height, + IN REAL startAngle, + IN REAL sweepAngle) + { + return SetStatus(DllExports::GdipAddPathPie(nativePath, x, y, width, + height, startAngle, + sweepAngle)); + } + + Status AddPie(IN const Rect& rect, + IN REAL startAngle, + IN REAL sweepAngle) + { + return AddPie(rect.X, + rect.Y, + rect.Width, + rect.Height, + startAngle, + sweepAngle); + } + + Status AddPie(IN INT x, + IN INT y, + IN INT width, + IN INT height, + IN REAL startAngle, + IN REAL sweepAngle) + { + return SetStatus(DllExports::GdipAddPathPieI(nativePath, + x, + y, + width, + height, + startAngle, + sweepAngle)); + } + + Status AddPolygon(IN const PointF* points, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathPolygon(nativePath, points, + count)); + } + + Status AddPolygon(IN const Point* points, + IN INT count) + { + return SetStatus(DllExports::GdipAddPathPolygonI(nativePath, points, + count)); + } + + Status AddPath(IN const GraphicsPath* addingPath, + IN BOOL connect) + { + GpPath* nativePath2 = NULL; + if(addingPath) + nativePath2 = addingPath->nativePath; + + return SetStatus(DllExports::GdipAddPathPath(nativePath, nativePath2, + connect)); + } + + Status AddString( + IN const WCHAR *string, + IN INT length, + IN const FontFamily *family, + IN INT style, + IN REAL emSize, // World units + IN const PointF &origin, + IN const StringFormat *format + ) + { + RectF rect(origin.X, origin.Y, 0.0f, 0.0f); + + return SetStatus(DllExports::GdipAddPathString( + nativePath, + string, + length, + family ? family->nativeFamily : NULL, + style, + emSize, + &rect, + format ? format->nativeFormat : NULL + )); + } + + Status AddString( + IN const WCHAR *string, + IN INT length, + IN const FontFamily *family, + IN INT style, + IN REAL emSize, // World units + IN const RectF &layoutRect, + IN const StringFormat *format + ) + { + return SetStatus(DllExports::GdipAddPathString( + nativePath, + string, + length, + family ? family->nativeFamily : NULL, + style, + emSize, + &layoutRect, + format ? format->nativeFormat : NULL + )); + } + + Status AddString( + IN const WCHAR *string, + IN INT length, + IN const FontFamily *family, + IN INT style, + IN REAL emSize, // World units + IN const Point &origin, + IN const StringFormat *format + ) + { + Rect rect(origin.X, origin.Y, 0, 0); + + return SetStatus(DllExports::GdipAddPathStringI( + nativePath, + string, + length, + family ? family->nativeFamily : NULL, + style, + emSize, + &rect, + format ? format->nativeFormat : NULL + )); + } + + Status AddString( + IN const WCHAR *string, + IN INT length, + IN const FontFamily *family, + IN INT style, + IN REAL emSize, // World units + IN const Rect &layoutRect, + IN const StringFormat *format + ) + { + return SetStatus(DllExports::GdipAddPathStringI( + nativePath, + string, + length, + family ? family->nativeFamily : NULL, + style, + emSize, + &layoutRect, + format ? format->nativeFormat : NULL + )); + } + + Status Transform(IN const Matrix* matrix) + { + if(matrix) + return SetStatus(DllExports::GdipTransformPath(nativePath, + matrix->nativeMatrix)); + else + return Ok; + } + + // This is not always the tightest bounds. + + Status GetBounds(OUT RectF* bounds, + IN const Matrix* matrix = NULL, + IN const Pen* pen = NULL) const; + + Status GetBounds(OUT Rect* bounds, + IN const Matrix* matrix = NULL, + IN const Pen* pen = NULL) const; + + // Once flattened, the resultant path is made of line segments and + // the original path information is lost. When matrix is NULL the + // identity matrix is assumed. + + Status Flatten(IN const Matrix* matrix = NULL, + IN REAL flatness = FlatnessDefault) + { + GpMatrix* nativeMatrix = NULL; + if(matrix) + { + nativeMatrix = matrix->nativeMatrix; + } + + return SetStatus(DllExports::GdipFlattenPath( + nativePath, + nativeMatrix, + flatness + )); + } + + Status Widen( + IN const Pen* pen, + IN const Matrix* matrix = NULL, + IN REAL flatness = FlatnessDefault + ) + { + GpMatrix* nativeMatrix = NULL; + if(matrix) + nativeMatrix = matrix->nativeMatrix; + + return SetStatus(DllExports::GdipWidenPath( + nativePath, + pen->nativePen, + nativeMatrix, + flatness + )); + } + + Status Outline( + IN const Matrix *matrix = NULL, + IN REAL flatness = FlatnessDefault + ) + { + GpMatrix* nativeMatrix = NULL; + if(matrix) + { + nativeMatrix = matrix->nativeMatrix; + } + + return SetStatus(DllExports::GdipWindingModeOutline( + nativePath, nativeMatrix, flatness + )); + } + + // Once this is called, the resultant path is made of line segments and + // the original path information is lost. When matrix is NULL, the + // identity matrix is assumed. + + Status Warp(IN const PointF* destPoints, + IN INT count, + IN const RectF& srcRect, + IN const Matrix* matrix = NULL, + IN WarpMode warpMode = WarpModePerspective, + IN REAL flatness = FlatnessDefault) + { + GpMatrix* nativeMatrix = NULL; + if(matrix) + nativeMatrix = matrix->nativeMatrix; + + return SetStatus(DllExports::GdipWarpPath( + nativePath, + nativeMatrix, + destPoints, + count, + srcRect.X, + srcRect.Y, + srcRect.Width, + srcRect.Height, + warpMode, + flatness)); + } + + INT GetPointCount() const + { + INT count = 0; + + SetStatus(DllExports::GdipGetPointCount(nativePath, &count)); + + return count; + } + + Status GetPathTypes(_Out_writes_bytes_(count) BYTE* types, + _In_ INT count) const + { + return SetStatus(DllExports::GdipGetPathTypes(nativePath, types, + count)); + } + + Status GetPathPoints(OUT PointF* points, + IN INT count) const + { + return SetStatus(DllExports::GdipGetPathPoints(nativePath, points, + count)); + } + + Status GetPathPoints(OUT Point* points, + IN INT count) const + { + return SetStatus(DllExports::GdipGetPathPointsI(nativePath, points, + count)); + } + + Status GetLastStatus() const + { + Status lastStatus = lastResult; + lastResult = Ok; + + return lastStatus; + } + + BOOL IsVisible(IN const PointF& point, + IN const Graphics* g = NULL) const + { + return IsVisible(point.X, point.Y, g); + } + + BOOL IsVisible(IN REAL x, + IN REAL y, + IN const Graphics* g = NULL) const; + + BOOL IsVisible(IN const Point& point, + IN const Graphics* g = NULL) const + { + return IsVisible(point.X, point.Y, g); + } + + BOOL IsVisible(IN INT x, + IN INT y, + IN const Graphics* g = NULL) const; + + BOOL IsOutlineVisible(IN const PointF& point, + IN const Pen* pen, + IN const Graphics* g = NULL) const + { + return IsOutlineVisible(point.X, point.Y, pen, g); + } + + BOOL IsOutlineVisible(IN REAL x, + IN REAL y, + IN const Pen* pen, + IN const Graphics* g = NULL) const; + + BOOL IsOutlineVisible(IN const Point& point, + IN const Pen* pen, + IN const Graphics* g = NULL) const + { + return IsOutlineVisible(point.X, point.Y, pen, g); + } + + BOOL IsOutlineVisible(IN INT x, + IN INT y, + IN const Pen* pen, + IN const Graphics* g = NULL) const; + +protected: + + GraphicsPath(const GraphicsPath& path) + { + GpPath *clonepath = NULL; + SetStatus(DllExports::GdipClonePath(path.nativePath, &clonepath)); + SetNativePath(clonepath); + } + +private: + GraphicsPath& operator=(const GraphicsPath &); + +protected: + GraphicsPath(GpPath* nativePath) + { + lastResult = Ok; + SetNativePath(nativePath); + } + + VOID SetNativePath(GpPath *nativePathArg) + { + this->nativePath = nativePathArg; + } + + Status SetStatus(Status status) const + { + if (status != Ok) + return (lastResult = status); + else + return status; + } + +protected: + GpPath* nativePath; + mutable Status lastResult; +}; + + +//-------------------------------------------------------------------------- +// GraphisPathIterator class +//-------------------------------------------------------------------------- + +#pragma warning(push) +#pragma warning(disable: 6102 6103) // Uses SetStatus()/GetStatus() pattern rather than return codes so PREfast gets confused + +class GraphicsPathIterator : public GdiplusBase +{ +public: + + GraphicsPathIterator(IN const GraphicsPath* path) + { + GpPath* nativePath = NULL; + if(path) + nativePath = path->nativePath; + + GpPathIterator *iter = NULL; + lastResult = DllExports::GdipCreatePathIter(&iter, nativePath); + SetNativeIterator(iter); + } + + ~GraphicsPathIterator() + { + DllExports::GdipDeletePathIter(nativeIterator); + } + + + INT NextSubpath(OUT INT* startIndex, + OUT INT* endIndex, + OUT BOOL* isClosed) + { + INT resultCount; + + SetStatus(DllExports::GdipPathIterNextSubpath(nativeIterator, + &resultCount, startIndex, endIndex, isClosed)); + + return resultCount; + } + + + INT NextSubpath(OUT const GraphicsPath* path, + OUT BOOL* isClosed) + { + GpPath* nativePath = NULL; + + INT resultCount; + + if(path) + nativePath= path->nativePath; + + SetStatus(DllExports::GdipPathIterNextSubpathPath(nativeIterator, + &resultCount, nativePath, isClosed)); + + return resultCount; + } + + INT NextPathType(_Out_ BYTE* pathType, + _Out_ INT* startIndex, + _Out_ INT* endIndex) + { + INT resultCount; + + SetStatus(DllExports::GdipPathIterNextPathType(nativeIterator, + &resultCount, pathType, startIndex, endIndex)); + + return resultCount; + } + + INT NextMarker(OUT INT* startIndex, + OUT INT* endIndex) + { + INT resultCount; + + SetStatus(DllExports::GdipPathIterNextMarker(nativeIterator, + &resultCount, startIndex, endIndex)); + + return resultCount; + } + + + INT NextMarker(OUT const GraphicsPath* path) + { + GpPath* nativePath = NULL; + + INT resultCount; + + if(path) + nativePath= path->nativePath; + + SetStatus(DllExports::GdipPathIterNextMarkerPath(nativeIterator, + &resultCount, nativePath)); + + return resultCount; + } + + INT GetCount() const + { + INT resultCount; + + SetStatus(DllExports::GdipPathIterGetCount(nativeIterator, + &resultCount)); + + return resultCount; + } + + INT GetSubpathCount() const + { + INT resultCount; + + SetStatus(DllExports::GdipPathIterGetSubpathCount(nativeIterator, + &resultCount)); + + return resultCount; + } + + BOOL HasCurve() const + { + BOOL hasCurve; + + SetStatus(DllExports::GdipPathIterHasCurve(nativeIterator, &hasCurve)); + + return hasCurve; + } + + VOID Rewind() + { + SetStatus(DllExports::GdipPathIterRewind(nativeIterator)); + } + + INT Enumerate(_Out_writes_to_(count, return) PointF *points, + _Out_writes_to_(count, return) BYTE *types, + _In_ INT count) + { + INT resultCount; + + SetStatus(DllExports::GdipPathIterEnumerate(nativeIterator, + &resultCount, points, types, count)); + + return resultCount; + } + + INT CopyData(_Out_writes_to_(endIndex-startIndex+1, return) PointF* points, + _Out_writes_to_(endIndex-startIndex+1, return) BYTE* types, + _In_ INT startIndex, + _In_ INT endIndex) + { + INT resultCount; + + SetStatus(DllExports::GdipPathIterCopyData(nativeIterator, + &resultCount, points, types, startIndex, endIndex)); + + return resultCount; + } + + Status GetLastStatus() const + { + Status lastStatus = lastResult; + lastResult = Ok; + + return lastStatus; + } + +private: + GraphicsPathIterator(const GraphicsPathIterator &); + GraphicsPathIterator& operator=(const GraphicsPathIterator &); + +protected: + VOID SetNativeIterator(GpPathIterator *nativeIteratorArg) + { + this->nativeIterator = nativeIteratorArg; + } + + Status SetStatus(Status status) const + { + if (status != Ok) + return (lastResult = status); + else + return status; + } + +protected: + GpPathIterator* nativeIterator; + mutable Status lastResult; +}; + +#pragma warning(pop) + +//-------------------------------------------------------------------------- +// Path Gradient Brush +//-------------------------------------------------------------------------- + +#pragma warning(push) +#pragma warning(disable: 6102 6103) // Uses SetStatus()/GetStatus() pattern rather than return codes so PREfast gets confused + +class PathGradientBrush : public Brush +{ +public: + friend class Pen; + + PathGradientBrush( + IN const PointF* points, + IN INT count, + IN WrapMode wrapMode = WrapModeClamp) + { + GpPathGradient *brush = NULL; + + lastResult = DllExports::GdipCreatePathGradient( + points, count, + wrapMode, &brush); + SetNativeBrush(brush); + } + + PathGradientBrush( + IN const Point* points, + IN INT count, + IN WrapMode wrapMode = WrapModeClamp) + { + GpPathGradient *brush = NULL; + + lastResult = DllExports::GdipCreatePathGradientI( + points, count, + wrapMode, &brush); + + SetNativeBrush(brush); + } + + PathGradientBrush( + IN const GraphicsPath* path + ) + { + GpPathGradient *brush = NULL; + + lastResult = DllExports::GdipCreatePathGradientFromPath( + path->nativePath, &brush); + SetNativeBrush(brush); + } + + Status GetCenterColor(OUT Color* color) const + { + ARGB argb; + + if (color == NULL) + { + return SetStatus(InvalidParameter); + } + + SetStatus(DllExports::GdipGetPathGradientCenterColor( + (GpPathGradient*) nativeBrush, &argb)); + + color->SetValue(argb); + + return lastResult; + } + + Status SetCenterColor(IN const Color& color) + { + SetStatus(DllExports::GdipSetPathGradientCenterColor( + (GpPathGradient*) nativeBrush, + color.GetValue())); + + return lastResult; + } + + INT GetPointCount() const + { + INT count; + + SetStatus(DllExports::GdipGetPathGradientPointCount( + (GpPathGradient*) nativeBrush, &count)); + + return count; + } + + INT GetSurroundColorCount() const + { + INT count; + + SetStatus(DllExports::GdipGetPathGradientSurroundColorCount( + (GpPathGradient*) nativeBrush, &count)); + + return count; + } + + Status GetSurroundColors(_Out_writes_to_(*count, *count) Color* colors, + _Inout_ INT* count) const + { + if(colors == NULL || count == NULL) + { + return SetStatus(InvalidParameter); + } + + INT count1; + + SetStatus(DllExports::GdipGetPathGradientSurroundColorCount( + (GpPathGradient*) nativeBrush, &count1)); + + if(lastResult != Ok) + return lastResult; + + if((*count < count1) || (count1 <= 0)) + return SetStatus(InsufficientBuffer); + + ARGB* argbs = (ARGB*) new ARGB[count1]; + if(argbs == NULL) + return SetStatus(OutOfMemory); + + SetStatus(DllExports::GdipGetPathGradientSurroundColorsWithCount( + (GpPathGradient*)nativeBrush, argbs, &count1)); + + if(lastResult == Ok) + { + for(INT i = 0; i < count1; i++) + { +#pragma warning(suppress: 6385) // Tool bug, doesn't see that *numFound > numSought + colors[i].SetValue(argbs[i]); + } + *count = count1; + } + + delete [] argbs; + return lastResult; + } + + Status SetSurroundColors(IN const Color* colors, + IN OUT INT* count) + { + if(colors == NULL || count == NULL) + { + return SetStatus(InvalidParameter); + } + + INT count1 = GetPointCount(); + + if((*count > count1) || (count1 <= 0)) + return SetStatus(InvalidParameter); + + count1 = *count; + + ARGB* argbs = (ARGB*) new ARGB[count1]; + if(argbs == NULL) + return SetStatus(OutOfMemory); + + for(INT i = 0; i < count1; i++) + { + argbs[i] = colors[i].GetValue(); + } + + SetStatus(DllExports::GdipSetPathGradientSurroundColorsWithCount( + (GpPathGradient*)nativeBrush, argbs, &count1)); + + if(lastResult == Ok) + *count = count1; + + delete [] argbs; + + return lastResult; + } + + Status GetGraphicsPath(OUT GraphicsPath* path) const + { + if(path == NULL) + return SetStatus(InvalidParameter); + + return SetStatus(DllExports::GdipGetPathGradientPath( + (GpPathGradient*)nativeBrush, path->nativePath)); + } + + Status SetGraphicsPath(IN const GraphicsPath* path) + { + if(path == NULL) + return SetStatus(InvalidParameter); + + return SetStatus(DllExports::GdipSetPathGradientPath( + (GpPathGradient*)nativeBrush, path->nativePath)); + } + + Status GetCenterPoint(OUT PointF* point) const + { + return SetStatus(DllExports::GdipGetPathGradientCenterPoint( + (GpPathGradient*)nativeBrush, + point)); + } + + Status GetCenterPoint(OUT Point* point) const + { + return SetStatus(DllExports::GdipGetPathGradientCenterPointI( + (GpPathGradient*)nativeBrush, + point)); + } + + Status SetCenterPoint(IN const PointF& point) + { + return SetStatus(DllExports::GdipSetPathGradientCenterPoint( + (GpPathGradient*)nativeBrush, + &point)); + } + + Status SetCenterPoint(IN const Point& point) + { + return SetStatus(DllExports::GdipSetPathGradientCenterPointI( + (GpPathGradient*)nativeBrush, + &point)); + } + + Status GetRectangle(OUT RectF* rect) const + { + return SetStatus(DllExports::GdipGetPathGradientRect( + (GpPathGradient*)nativeBrush, rect)); + } + + Status GetRectangle(OUT Rect* rect) const + { + return SetStatus(DllExports::GdipGetPathGradientRectI( + (GpPathGradient*)nativeBrush, rect)); + } + + Status SetGammaCorrection(IN BOOL useGammaCorrection) + { + return SetStatus(DllExports::GdipSetPathGradientGammaCorrection( + (GpPathGradient*)nativeBrush, useGammaCorrection)); + } + + BOOL GetGammaCorrection() const + { + BOOL useGammaCorrection; + + SetStatus(DllExports::GdipGetPathGradientGammaCorrection( + (GpPathGradient*)nativeBrush, &useGammaCorrection)); + + return useGammaCorrection; + } + + INT GetBlendCount() const + { + INT count = 0; + + SetStatus(DllExports::GdipGetPathGradientBlendCount( + (GpPathGradient*) nativeBrush, &count)); + + return count; + } + + Status GetBlend(OUT REAL* blendFactors, + OUT REAL* blendPositions, + IN INT count) const + { + return SetStatus(DllExports::GdipGetPathGradientBlend( + (GpPathGradient*)nativeBrush, + blendFactors, blendPositions, count)); + } + + Status SetBlend(IN const REAL* blendFactors, + IN const REAL* blendPositions, + IN INT count) + { + return SetStatus(DllExports::GdipSetPathGradientBlend( + (GpPathGradient*)nativeBrush, + blendFactors, blendPositions, count)); + } + + INT GetInterpolationColorCount() const + { + INT count = 0; + + SetStatus(DllExports::GdipGetPathGradientPresetBlendCount( + (GpPathGradient*) nativeBrush, &count)); + + return count; + } + + Status SetInterpolationColors(IN const Color* presetColors, + IN const REAL* blendPositions, + IN INT count) + { + if ((count <= 0) || !presetColors) + { + return SetStatus(InvalidParameter); + } + + ARGB* argbs = (ARGB*) new ARGB[count]; + if(argbs) + { + for(INT i = 0; i < count; i++) + { + argbs[i] = presetColors[i].GetValue(); + } + + Status status = SetStatus(DllExports:: + GdipSetPathGradientPresetBlend( + (GpPathGradient*) nativeBrush, + argbs, + blendPositions, + count)); + delete[] argbs; + return status; + } + else + { + return SetStatus(OutOfMemory); + } + } + + Status GetInterpolationColors(OUT Color* presetColors, + OUT REAL* blendPositions, + IN INT count) const + { + if ((count <= 0) || !presetColors) + { + return SetStatus(InvalidParameter); + } + + ARGB* argbs = (ARGB*) new ARGB[count]; + + if (!argbs) + { + return SetStatus(OutOfMemory); + } + + GpStatus status = SetStatus(DllExports::GdipGetPathGradientPresetBlend( + (GpPathGradient*)nativeBrush, + argbs, + blendPositions, + count)); + + for(INT i = 0; i < count; i++) + { + presetColors[i] = Color(argbs[i]); + } + delete [] argbs; + + return status; + } + + Status SetBlendBellShape(IN REAL focus, + IN REAL scale = 1.0) + { + return SetStatus(DllExports::GdipSetPathGradientSigmaBlend( + (GpPathGradient*)nativeBrush, focus, scale)); + } + + Status SetBlendTriangularShape( + IN REAL focus, + IN REAL scale = 1.0 + ) + { + return SetStatus(DllExports::GdipSetPathGradientLinearBlend( + (GpPathGradient*)nativeBrush, focus, scale)); + } + + Status GetTransform(OUT Matrix *matrix) const + { + return SetStatus(DllExports::GdipGetPathGradientTransform( + (GpPathGradient*) nativeBrush, + matrix->nativeMatrix)); + } + + Status SetTransform(IN const Matrix* matrix) + { + return SetStatus(DllExports::GdipSetPathGradientTransform( + (GpPathGradient*) nativeBrush, + matrix->nativeMatrix)); + } + + Status ResetTransform() + { + return SetStatus(DllExports::GdipResetPathGradientTransform( + (GpPathGradient*)nativeBrush)); + } + + Status MultiplyTransform(IN const Matrix* matrix, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipMultiplyPathGradientTransform( + (GpPathGradient*)nativeBrush, + matrix->nativeMatrix, + order)); + } + + Status TranslateTransform(IN REAL dx, + IN REAL dy, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipTranslatePathGradientTransform( + (GpPathGradient*)nativeBrush, + dx, dy, order)); + } + + Status ScaleTransform(IN REAL sx, + IN REAL sy, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipScalePathGradientTransform( + (GpPathGradient*)nativeBrush, + sx, sy, order)); + } + + Status RotateTransform(IN REAL angle, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipRotatePathGradientTransform( + (GpPathGradient*)nativeBrush, + angle, order)); + } + + Status GetFocusScales(OUT REAL* xScale, + OUT REAL* yScale) const + { + return SetStatus(DllExports::GdipGetPathGradientFocusScales( + (GpPathGradient*) nativeBrush, xScale, yScale)); + } + + Status SetFocusScales(IN REAL xScale, + IN REAL yScale) + { + return SetStatus(DllExports::GdipSetPathGradientFocusScales( + (GpPathGradient*) nativeBrush, xScale, yScale)); + } + + WrapMode GetWrapMode() const + { + WrapMode wrapMode; + + SetStatus(DllExports::GdipGetPathGradientWrapMode( + (GpPathGradient*) nativeBrush, &wrapMode)); + + return wrapMode; + } + + Status SetWrapMode(IN WrapMode wrapMode) + { + return SetStatus(DllExports::GdipSetPathGradientWrapMode( + (GpPathGradient*) nativeBrush, wrapMode)); + } + +private: + PathGradientBrush(const PathGradientBrush &); + PathGradientBrush& operator=(const PathGradientBrush &); + +protected: + + PathGradientBrush() + { + } +}; + +#pragma warning(pop) + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_GRAPHICSPATH_HPP diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluspen.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluspen.h new file mode 100644 index 0000000000000000000000000000000000000000..4ad8f90859204955185bcf7978dbdf9663bbb43d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluspen.h @@ -0,0 +1,492 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusPen.h +* +* Abstract: +* +* GDI+ Pen class +* +\**************************************************************************/ +#ifndef _GDIPLUSPEN_H +#define _GDIPLUSPEN_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4061) /* enumerator in switch of enum is not explicitly handled by a case label */ +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +//-------------------------------------------------------------------------- +// Pen class +//-------------------------------------------------------------------------- + +class Pen : public GdiplusBase +{ +public: + friend class GraphicsPath; + friend class Graphics; + + Pen(IN const Color& color, + IN REAL width = 1.0f) + { + Unit unit = UnitWorld; + nativePen = NULL; + lastResult = DllExports::GdipCreatePen1(color.GetValue(), + width, unit, &nativePen); + } + + Pen(IN const Brush* brush, + IN REAL width = 1.0f) + { + Unit unit = UnitWorld; + nativePen = NULL; + lastResult = DllExports::GdipCreatePen2(brush->nativeBrush, + width, unit, &nativePen); + } + + ~Pen() + { + DllExports::GdipDeletePen(nativePen); + } + + Pen* Clone() const + { + GpPen *clonePen = NULL; + + lastResult = DllExports::GdipClonePen(nativePen, &clonePen); + + return new Pen(clonePen, lastResult); + } + + Status SetWidth(IN REAL width) + { + return SetStatus(DllExports::GdipSetPenWidth(nativePen, width)); + } + + REAL GetWidth() const + { + REAL width; + + SetStatus(DllExports::GdipGetPenWidth(nativePen, &width)); + + return width; + } + + // Set/get line caps: start, end, and dash + + // Line cap and join APIs by using LineCap and LineJoin enums. + + Status SetLineCap(IN LineCap startCap, + IN LineCap endCap, + IN DashCap dashCap) + { + return SetStatus(DllExports::GdipSetPenLineCap197819(nativePen, + startCap, endCap, dashCap)); + } + + Status SetStartCap(IN LineCap startCap) + { + return SetStatus(DllExports::GdipSetPenStartCap(nativePen, startCap)); + } + + Status SetEndCap(IN LineCap endCap) + { + return SetStatus(DllExports::GdipSetPenEndCap(nativePen, endCap)); + } + + Status SetDashCap(IN DashCap dashCap) + { + return SetStatus(DllExports::GdipSetPenDashCap197819(nativePen, + dashCap)); + } + + LineCap GetStartCap() const + { + LineCap startCap; + + SetStatus(DllExports::GdipGetPenStartCap(nativePen, &startCap)); + + return startCap; + } + + LineCap GetEndCap() const + { + LineCap endCap; + + SetStatus(DllExports::GdipGetPenEndCap(nativePen, &endCap)); + + return endCap; + } + + DashCap GetDashCap() const + { + DashCap dashCap; + + SetStatus(DllExports::GdipGetPenDashCap197819(nativePen, + &dashCap)); + + return dashCap; + } + + Status SetLineJoin(IN LineJoin lineJoin) + { + return SetStatus(DllExports::GdipSetPenLineJoin(nativePen, lineJoin)); + } + + LineJoin GetLineJoin() const + { + LineJoin lineJoin; + + SetStatus(DllExports::GdipGetPenLineJoin(nativePen, &lineJoin)); + + return lineJoin; + } + + Status SetCustomStartCap(IN const CustomLineCap* customCap) + { + GpCustomLineCap* nativeCap = NULL; + if(customCap) + nativeCap = customCap->nativeCap; + + return SetStatus(DllExports::GdipSetPenCustomStartCap(nativePen, + nativeCap)); + } + + Status GetCustomStartCap(OUT CustomLineCap* customCap) const + { + if(!customCap) + return SetStatus(InvalidParameter); + + return SetStatus(DllExports::GdipGetPenCustomStartCap(nativePen, + &(customCap->nativeCap))); + } + + Status SetCustomEndCap(IN const CustomLineCap* customCap) + { + GpCustomLineCap* nativeCap = NULL; + if(customCap) + nativeCap = customCap->nativeCap; + + return SetStatus(DllExports::GdipSetPenCustomEndCap(nativePen, + nativeCap)); + } + + Status GetCustomEndCap(OUT CustomLineCap* customCap) const + { + if(!customCap) + return SetStatus(InvalidParameter); + + return SetStatus(DllExports::GdipGetPenCustomEndCap(nativePen, + &(customCap->nativeCap))); + } + + Status SetMiterLimit(IN REAL miterLimit) + { + return SetStatus(DllExports::GdipSetPenMiterLimit(nativePen, + miterLimit)); + } + + REAL GetMiterLimit() const + { + REAL miterLimit; + + SetStatus(DllExports::GdipGetPenMiterLimit(nativePen, &miterLimit)); + + return miterLimit; + } + + Status SetAlignment(IN PenAlignment penAlignment) + { + return SetStatus(DllExports::GdipSetPenMode(nativePen, penAlignment)); + } + + PenAlignment GetAlignment() const + { + PenAlignment penAlignment; + + SetStatus(DllExports::GdipGetPenMode(nativePen, &penAlignment)); + + return penAlignment; + } + + Status SetTransform(IN const Matrix* matrix) + { + return SetStatus(DllExports::GdipSetPenTransform(nativePen, + matrix->nativeMatrix)); + } + + Status GetTransform(OUT Matrix* matrix) const + { + return SetStatus(DllExports::GdipGetPenTransform(nativePen, + matrix->nativeMatrix)); + } + + Status ResetTransform() + { + return SetStatus(DllExports::GdipResetPenTransform(nativePen)); + } + + Status MultiplyTransform(IN const Matrix* matrix, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipMultiplyPenTransform(nativePen, + matrix->nativeMatrix, + order)); + } + + Status TranslateTransform(IN REAL dx, + IN REAL dy, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipTranslatePenTransform(nativePen, + dx, + dy, + order)); + } + + Status ScaleTransform(IN REAL sx, + IN REAL sy, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipScalePenTransform(nativePen, + sx, + sy, + order)); + } + + Status RotateTransform(IN REAL angle, + IN MatrixOrder order = MatrixOrderPrepend) + { + return SetStatus(DllExports::GdipRotatePenTransform(nativePen, + angle, + order)); + } + + PenType GetPenType() const + { + PenType type; + SetStatus(DllExports::GdipGetPenFillType(nativePen, &type)); + + return type; + } + + Status SetColor(IN const Color& color) + { + return SetStatus(DllExports::GdipSetPenColor(nativePen, + color.GetValue())); + } + + Status SetBrush(IN const Brush* brush) + { + return SetStatus(DllExports::GdipSetPenBrushFill(nativePen, + brush->nativeBrush)); + } + + Status GetColor(OUT Color* color) const + { + if (color == NULL) + { + return SetStatus(InvalidParameter); + } + + PenType type = GetPenType(); + + if (type != PenTypeSolidColor) + { + return WrongState; + } + + ARGB argb; + + SetStatus(DllExports::GdipGetPenColor(nativePen, + &argb)); + if (lastResult == Ok) + { + color->SetValue(argb); + } + + return lastResult; + } + + Brush* GetBrush() const + { + PenType type = GetPenType(); + + Brush* brush = NULL; + + switch(type) + { + case PenTypeSolidColor: + brush = new SolidBrush(); + break; + + case PenTypeHatchFill: + brush = new HatchBrush(); + break; + + case PenTypeTextureFill: + brush = new TextureBrush(); + break; + + case PenTypePathGradient: + brush = new Brush(); + break; + + case PenTypeLinearGradient: + brush = new LinearGradientBrush(); + break; + + default: + break; + } + + if(brush) + { + GpBrush* nativeBrush; + + SetStatus(DllExports::GdipGetPenBrushFill(nativePen, + &nativeBrush)); + brush->SetNativeBrush(nativeBrush); + } + + return brush; + } + + DashStyle GetDashStyle() const + { + DashStyle dashStyle; + + SetStatus(DllExports::GdipGetPenDashStyle(nativePen, &dashStyle)); + + return dashStyle; + } + + Status SetDashStyle(IN DashStyle dashStyle) + { + return SetStatus(DllExports::GdipSetPenDashStyle(nativePen, + dashStyle)); + } + + REAL GetDashOffset() const + { + REAL dashOffset; + + SetStatus(DllExports::GdipGetPenDashOffset(nativePen, &dashOffset)); + + return dashOffset; + } + + Status SetDashOffset(IN REAL dashOffset) + { + return SetStatus(DllExports::GdipSetPenDashOffset(nativePen, + dashOffset)); + } + + Status SetDashPattern(IN const REAL* dashArray, IN INT count) + { + return SetStatus(DllExports::GdipSetPenDashArray(nativePen, + dashArray, + count)); + } + + INT GetDashPatternCount() const + { + INT count = 0; + + SetStatus(DllExports::GdipGetPenDashCount(nativePen, &count)); + + return count; + } + + Status GetDashPattern(OUT REAL* dashArray, + IN INT count) const + { + if (dashArray == NULL || count <= 0) + return SetStatus(InvalidParameter); + + return SetStatus(DllExports::GdipGetPenDashArray(nativePen, + dashArray, + count)); + } + + Status SetCompoundArray(IN const REAL* compoundArray, + IN INT count) + { + return SetStatus(DllExports::GdipSetPenCompoundArray(nativePen, + compoundArray, + count)); + } + + INT GetCompoundArrayCount() const + { + INT count = 0; + + SetStatus(DllExports::GdipGetPenCompoundCount(nativePen, &count)); + + return count; + } + + Status GetCompoundArray(OUT REAL* compoundArray, + IN INT count) const + { + if (compoundArray == NULL || count <= 0) + return SetStatus(InvalidParameter); + + return SetStatus(DllExports::GdipGetPenCompoundArray(nativePen, + compoundArray, + count)); + } + + Status GetLastStatus() const + { + Status lastStatus = lastResult; + lastResult = Ok; + + return lastStatus; + } + +private: + Pen(const Pen &); + Pen& operator=(const Pen &); + +protected: + Pen(GpPen* nativePenArg, Status status) + { + lastResult = status; + SetNativePen(nativePenArg); + } + + VOID SetNativePen(GpPen* nativePenArg) + { + this->nativePen = nativePenArg; + } + + Status SetStatus(Status status) const + { + if (status != Ok) + return (lastResult = status); + else + return status; + } + +protected: + GpPen* nativePen; + mutable Status lastResult; +}; + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluspixelformats.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluspixelformats.h new file mode 100644 index 0000000000000000000000000000000000000000..1503a328a3bdb0eb4f67f80074c79efc1cea9fa2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdipluspixelformats.h @@ -0,0 +1,208 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* Gdiplus Pixel Formats +* +* Abstract: +* +* GDI+ Pixel Formats +* +\**************************************************************************/ + +#ifndef _GDIPLUSPIXELFORMATS_H +#define _GDIPLUSPIXELFORMATS_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4001) /* nonstandard extension: single line comment */ +#pragma warning(disable:4263) /* member function does not override any base class virtual member function */ +#pragma warning(disable:4264) /* no override available for virtual member function from base 'class'; function is hidden */ +#if _MSC_VER >= 1400 +#pragma warning(disable:4365) /* signed/unsigned mismatch */ +#endif +#endif + +typedef DWORD ARGB; +typedef DWORDLONG ARGB64; + +#define ALPHA_SHIFT 24 +#define RED_SHIFT 16 +#define GREEN_SHIFT 8 +#define BLUE_SHIFT 0 +#define ALPHA_MASK ((ARGB) 0xff << ALPHA_SHIFT) + +// In-memory pixel data formats: +// bits 0-7 = format index +// bits 8-15 = pixel size (in bits) +// bits 16-23 = flags +// bits 24-31 = reserved + +typedef INT PixelFormat; + +#define PixelFormatIndexed 0x00010000 // Indexes into a palette +#define PixelFormatGDI 0x00020000 // Is a GDI-supported format +#define PixelFormatAlpha 0x00040000 // Has an alpha component +#define PixelFormatPAlpha 0x00080000 // Pre-multiplied alpha +#define PixelFormatExtended 0x00100000 // Extended color 16 bits/channel +#define PixelFormatCanonical 0x00200000 + +#define PixelFormatUndefined 0 +#define PixelFormatDontCare 0 + +#define PixelFormat1bppIndexed (1 | ( 1 << 8) | PixelFormatIndexed | PixelFormatGDI) +#define PixelFormat4bppIndexed (2 | ( 4 << 8) | PixelFormatIndexed | PixelFormatGDI) +#define PixelFormat8bppIndexed (3 | ( 8 << 8) | PixelFormatIndexed | PixelFormatGDI) +#define PixelFormat16bppGrayScale (4 | (16 << 8) | PixelFormatExtended) +#define PixelFormat16bppRGB555 (5 | (16 << 8) | PixelFormatGDI) +#define PixelFormat16bppRGB565 (6 | (16 << 8) | PixelFormatGDI) +#define PixelFormat16bppARGB1555 (7 | (16 << 8) | PixelFormatAlpha | PixelFormatGDI) +#define PixelFormat24bppRGB (8 | (24 << 8) | PixelFormatGDI) +#define PixelFormat32bppRGB (9 | (32 << 8) | PixelFormatGDI) +#define PixelFormat32bppARGB (10 | (32 << 8) | PixelFormatAlpha | PixelFormatGDI | PixelFormatCanonical) +#define PixelFormat32bppPARGB (11 | (32 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatGDI) +#define PixelFormat48bppRGB (12 | (48 << 8) | PixelFormatExtended) +#define PixelFormat64bppARGB (13 | (64 << 8) | PixelFormatAlpha | PixelFormatCanonical | PixelFormatExtended) +#define PixelFormat64bppPARGB (14 | (64 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatExtended) +#define PixelFormat32bppCMYK (15 | (32 << 8)) +#define PixelFormatMax 16 + +inline UINT +GetPixelFormatSize(PixelFormat pixfmt) +{ + return (pixfmt >> 8) & 0xff; +} + +inline BOOL +IsIndexedPixelFormat(PixelFormat pixfmt) +{ + return (pixfmt & PixelFormatIndexed) != 0; +} + +inline BOOL +IsAlphaPixelFormat(PixelFormat pixfmt) +{ + return (pixfmt & PixelFormatAlpha) != 0; +} + +inline BOOL +IsExtendedPixelFormat(PixelFormat pixfmt) +{ + return (pixfmt & PixelFormatExtended) != 0; +} + +//-------------------------------------------------------------------------- +// Determine if the Pixel Format is Canonical format: +// PixelFormat32bppARGB +// PixelFormat32bppPARGB +// PixelFormat64bppARGB +// PixelFormat64bppPARGB +//-------------------------------------------------------------------------- + +inline BOOL +IsCanonicalPixelFormat(PixelFormat pixfmt) +{ + return (pixfmt & PixelFormatCanonical) != 0; +} + +#if (GDIPVER >= 0x0110) +//---------------------------------------------------------------------------- +// Color format conversion parameters +//---------------------------------------------------------------------------- + +enum PaletteType +{ + // Arbitrary custom palette provided by caller. + + PaletteTypeCustom = 0, + + // Optimal palette generated using a median-cut algorithm. + + PaletteTypeOptimal = 1, + + // Black and white palette. + + PaletteTypeFixedBW = 2, + + // Symmetric halftone palettes. + // Each of these halftone palettes will be a superset of the system palette. + // E.g. Halftone8 will have it's 8-color on-off primaries and the 16 system + // colors added. With duplicates removed, that leaves 16 colors. + + PaletteTypeFixedHalftone8 = 3, // 8-color, on-off primaries + PaletteTypeFixedHalftone27 = 4, // 3 intensity levels of each color + PaletteTypeFixedHalftone64 = 5, // 4 intensity levels of each color + PaletteTypeFixedHalftone125 = 6, // 5 intensity levels of each color + PaletteTypeFixedHalftone216 = 7, // 6 intensity levels of each color + + // Assymetric halftone palettes. + // These are somewhat less useful than the symmetric ones, but are + // included for completeness. These do not include all of the system + // colors. + + PaletteTypeFixedHalftone252 = 8, // 6-red, 7-green, 6-blue intensities + PaletteTypeFixedHalftone256 = 9, // 8-red, 8-green, 4-blue intensities +}; + +enum DitherType +{ + DitherTypeNone = 0, + + // Solid color - picks the nearest matching color with no attempt to + // halftone or dither. May be used on an arbitrary palette. + + DitherTypeSolid = 1, + + // Ordered dithers and spiral dithers must be used with a fixed palette. + + // NOTE: DitherOrdered4x4 is unique in that it may apply to 16bpp + // conversions also. + + DitherTypeOrdered4x4 = 2, + + DitherTypeOrdered8x8 = 3, + DitherTypeOrdered16x16 = 4, + DitherTypeSpiral4x4 = 5, + DitherTypeSpiral8x8 = 6, + DitherTypeDualSpiral4x4 = 7, + DitherTypeDualSpiral8x8 = 8, + + // Error diffusion. May be used with any palette. + + DitherTypeErrorDiffusion = 9, + + DitherTypeMax = 10 +}; +#endif //(GDIPVER >= 0x0110) + +enum PaletteFlags +{ + PaletteFlagsHasAlpha = 0x0001, + PaletteFlagsGrayScale = 0x0002, + PaletteFlagsHalftone = 0x0004 +}; + +struct ColorPalette +{ + +public: + + UINT Flags; // Palette flags + UINT Count; // Number of color entries + ARGB Entries[1]; // Palette color entries +}; + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusregion.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusregion.h new file mode 100644 index 0000000000000000000000000000000000000000..76068806ac7a6da86162173462cdf6e2dcfd6dae --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusregion.h @@ -0,0 +1,523 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusRegion.h +* +* Abstract: +* +* GDI+ Region class implementation +* +\**************************************************************************/ + +#ifndef _GDIPLUSREGION_H +#define _GDIPLUSREGION_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +inline +Region::Region() +{ + GpRegion *region = NULL; + + lastResult = DllExports::GdipCreateRegion(®ion); + + SetNativeRegion(region); +} + +inline +Region::Region(IN const RectF& rect) +{ + GpRegion *region = NULL; + + lastResult = DllExports::GdipCreateRegionRect(&rect, ®ion); + + SetNativeRegion(region); +} + +inline +Region::Region(IN const Rect& rect) +{ + GpRegion *region = NULL; + + lastResult = DllExports::GdipCreateRegionRectI(&rect, ®ion); + + SetNativeRegion(region); +} + +inline +Region::Region(IN const GraphicsPath* path) +{ + GpRegion *region = NULL; + + lastResult = DllExports::GdipCreateRegionPath(path->nativePath, ®ion); + + SetNativeRegion(region); +} + +inline +Region::Region(IN const BYTE* regionData, IN INT size) +{ + GpRegion *region = NULL; + + lastResult = DllExports::GdipCreateRegionRgnData(regionData, size, + ®ion); + + SetNativeRegion(region); +} + +inline +Region::Region(IN HRGN hRgn) +{ + GpRegion *region = NULL; + + lastResult = DllExports::GdipCreateRegionHrgn(hRgn, ®ion); + + SetNativeRegion(region); +} + +inline +Region* Region::FromHRGN(IN HRGN hRgn) +{ + GpRegion *region = NULL; + + if (DllExports::GdipCreateRegionHrgn(hRgn, ®ion) == Ok) + { + Region* newRegion = new Region(region); + + if (newRegion == NULL) + { + DllExports::GdipDeleteRegion(region); + } + + return newRegion; + } + else + return NULL; +} + +inline +Region::~Region() +{ + DllExports::GdipDeleteRegion(nativeRegion); +} + +inline Region* +Region::Clone() const +{ + GpRegion *region = NULL; + + SetStatus(DllExports::GdipCloneRegion(nativeRegion, ®ion)); + + return new Region(region); +} + +inline Status +Region::MakeInfinite() +{ + return SetStatus(DllExports::GdipSetInfinite(nativeRegion)); +} + +inline Status +Region::MakeEmpty() +{ + return SetStatus(DllExports::GdipSetEmpty(nativeRegion)); +} + +inline Status +Region::Intersect(IN const RectF& rect) +{ + return SetStatus(DllExports::GdipCombineRegionRect(nativeRegion, &rect, + CombineModeIntersect)); +} + +inline Status +Region::Intersect(IN const Rect& rect) +{ + return SetStatus(DllExports::GdipCombineRegionRectI(nativeRegion, &rect, + CombineModeIntersect)); +} + +inline Status +Region::Intersect(IN const GraphicsPath* path) +{ + return SetStatus(DllExports::GdipCombineRegionPath(nativeRegion, + path->nativePath, + CombineModeIntersect)); +} + +inline Status +Region::Intersect(IN const Region* region) +{ + return SetStatus(DllExports::GdipCombineRegionRegion(nativeRegion, + region->nativeRegion, + CombineModeIntersect)); +} + +inline Status +Region::Union(IN const RectF& rect) +{ + return SetStatus(DllExports::GdipCombineRegionRect(nativeRegion, &rect, + CombineModeUnion)); +} + +inline Status +Region::Union(IN const Rect& rect) +{ + return SetStatus(DllExports::GdipCombineRegionRectI(nativeRegion, &rect, + CombineModeUnion)); +} + +inline Status +Region::Union(IN const GraphicsPath* path) +{ + return SetStatus(DllExports::GdipCombineRegionPath(nativeRegion, + path->nativePath, + CombineModeUnion)); +} + +inline Status +Region::Union(IN const Region* region) +{ + return SetStatus(DllExports::GdipCombineRegionRegion(nativeRegion, + region->nativeRegion, + CombineModeUnion)); +} + +inline Status +Region::Xor(IN const RectF& rect) +{ + return SetStatus(DllExports::GdipCombineRegionRect(nativeRegion, &rect, + CombineModeXor)); +} + +inline Status +Region::Xor(IN const Rect& rect) +{ + return SetStatus(DllExports::GdipCombineRegionRectI(nativeRegion, &rect, + CombineModeXor)); +} + +inline Status +Region::Xor(IN const GraphicsPath* path) +{ + return SetStatus(DllExports::GdipCombineRegionPath(nativeRegion, + path->nativePath, + CombineModeXor)); +} + +inline Status +Region::Xor(IN const Region* region) +{ + return SetStatus(DllExports::GdipCombineRegionRegion(nativeRegion, + region->nativeRegion, + CombineModeXor)); +} + +inline Status +Region::Exclude(IN const RectF& rect) +{ + return SetStatus(DllExports::GdipCombineRegionRect(nativeRegion, &rect, + CombineModeExclude)); +} + +inline Status +Region::Exclude(IN const Rect& rect) +{ + return SetStatus(DllExports::GdipCombineRegionRectI(nativeRegion, &rect, + CombineModeExclude)); +} + +inline Status +Region::Exclude(IN const GraphicsPath* path) +{ + return SetStatus(DllExports::GdipCombineRegionPath(nativeRegion, + path->nativePath, + CombineModeExclude)); +} + +inline Status +Region::Exclude(IN const Region* region) +{ + return SetStatus(DllExports::GdipCombineRegionRegion(nativeRegion, + region->nativeRegion, + CombineModeExclude)); +} + +inline Status +Region::Complement(IN const RectF& rect) +{ + return SetStatus(DllExports::GdipCombineRegionRect(nativeRegion, &rect, + CombineModeComplement)); +} + +inline Status +Region::Complement(IN const Rect& rect) +{ + return SetStatus(DllExports::GdipCombineRegionRectI(nativeRegion, &rect, + CombineModeComplement)); +} + +inline Status +Region::Complement(IN const GraphicsPath* path) +{ + return SetStatus(DllExports::GdipCombineRegionPath(nativeRegion, + path->nativePath, + CombineModeComplement)); +} + +inline Status +Region::Complement(IN const Region* region) +{ + return SetStatus(DllExports::GdipCombineRegionRegion(nativeRegion, + region->nativeRegion, + CombineModeComplement)); +} + +inline Status +Region::Translate(IN REAL dx, + IN REAL dy) +{ + return SetStatus(DllExports::GdipTranslateRegion(nativeRegion, dx, dy)); +} + +inline Status +Region::Translate(IN INT dx, + IN INT dy) +{ + return SetStatus(DllExports::GdipTranslateRegionI(nativeRegion, dx, dy)); +} + +inline Status +Region::Transform(IN const Matrix* matrix) +{ + return SetStatus(DllExports::GdipTransformRegion(nativeRegion, + matrix->nativeMatrix)); +} + +inline Status +Region::GetBounds(OUT RectF* rect, + IN const Graphics* g) const +{ + return SetStatus(DllExports::GdipGetRegionBounds(nativeRegion, + g->nativeGraphics, + rect)); +} + +inline Status +Region::GetBounds(OUT Rect* rect, + IN const Graphics* g) const +{ + return SetStatus(DllExports::GdipGetRegionBoundsI(nativeRegion, + g->nativeGraphics, + rect)); +} + +inline HRGN +Region::GetHRGN(IN const Graphics* g) const +{ + HRGN hrgn; + + SetStatus(DllExports::GdipGetRegionHRgn(nativeRegion, + g->nativeGraphics, + &hrgn)); + + return hrgn; +} + +inline BOOL +Region::IsEmpty(IN const Graphics *g) const +{ + BOOL booln = FALSE; + + SetStatus(DllExports::GdipIsEmptyRegion(nativeRegion, + g->nativeGraphics, + &booln)); + + return booln; +} + +inline BOOL +Region::IsInfinite(IN const Graphics *g) const +{ + BOOL booln = FALSE; + + SetStatus(DllExports::GdipIsInfiniteRegion(nativeRegion, + g->nativeGraphics, + &booln)); + + return booln; +} + +inline BOOL +Region::Equals(IN const Region* region, + IN const Graphics* g) const +{ + BOOL booln = FALSE; + + SetStatus(DllExports::GdipIsEqualRegion(nativeRegion, + region->nativeRegion, + g->nativeGraphics, + &booln)); + return booln; +} + +// Get the size of the buffer needed for the GetData method +inline UINT +Region::GetDataSize() const +{ + UINT bufferSize = 0; + + SetStatus(DllExports::GdipGetRegionDataSize(nativeRegion, &bufferSize)); + + return bufferSize; +} + +// buffer - where to put the data +// bufferSize - how big the buffer is (should be at least as big as GetDataSize()) +// sizeFilled - if not NULL, this is an OUT param that says how many bytes +// of data were written to the buffer. +inline Status +Region::GetData(_Out_writes_bytes_to_(bufferSize, *sizeFilled) BYTE* buffer, + _In_ UINT bufferSize, + _Out_opt_ UINT* sizeFilled) const +{ + return SetStatus(DllExports::GdipGetRegionData(nativeRegion, buffer, + bufferSize, sizeFilled)); +} + +/** + * Hit testing operations + */ +inline BOOL +Region::IsVisible(IN const PointF& point, + IN const Graphics* g) const +{ + BOOL booln = FALSE; + + SetStatus(DllExports::GdipIsVisibleRegionPoint(nativeRegion, + point.X, point.Y, + (g == NULL) ? NULL : g->nativeGraphics, + &booln)); + return booln; +} + +inline BOOL +Region::IsVisible(IN const RectF& rect, + IN const Graphics* g) const +{ + BOOL booln = FALSE; + + SetStatus(DllExports::GdipIsVisibleRegionRect(nativeRegion, rect.X, + rect.Y, rect.Width, + rect.Height, + (g == NULL) ? + NULL : g->nativeGraphics, + &booln)); + return booln; +} + +inline BOOL +Region::IsVisible(IN const Point& point, + IN const Graphics* g) const +{ + BOOL booln = FALSE; + + + SetStatus(DllExports::GdipIsVisibleRegionPointI(nativeRegion, + point.X, + point.Y, + (g == NULL) + ? NULL : g->nativeGraphics, + &booln)); + return booln; +} + +inline BOOL +Region::IsVisible(IN const Rect& rect, + IN const Graphics* g) const +{ + BOOL booln = FALSE; + + SetStatus(DllExports::GdipIsVisibleRegionRectI(nativeRegion, + rect.X, + rect.Y, + rect.Width, + rect.Height, + (g == NULL) + ? NULL : g->nativeGraphics, + &booln)); + return booln; +} + +inline UINT +Region::GetRegionScansCount(IN const Matrix* matrix) const +{ + UINT count = 0; + + SetStatus(DllExports::GdipGetRegionScansCount(nativeRegion, + &count, + matrix->nativeMatrix)); + return count; +} + +// If rects is NULL, return the count of rects in the region. +// Otherwise, assume rects is big enough to hold all the region rects +// and fill them in and return the number of rects filled in. +// The rects are returned in the units specified by the matrix +// (which is typically a world-to-device transform). +// Note that the number of rects returned can vary, depending on the +// matrix that is used. + +inline Status +Region::GetRegionScans( + IN const Matrix* matrix, + OUT RectF* rects, + IN OUT INT* count) const +{ + return SetStatus(DllExports::GdipGetRegionScans(nativeRegion, + rects, + count, + matrix->nativeMatrix)); +} + +inline Status +Region::GetRegionScans( + IN const Matrix* matrix, + OUT Rect* rects, + IN OUT INT* count) const +{ + return SetStatus(DllExports::GdipGetRegionScansI(nativeRegion, + rects, + count, + matrix->nativeMatrix)); +} + +inline Region::Region(GpRegion* nativeRegion) +{ + SetNativeRegion(nativeRegion); +} + +inline VOID Region::SetNativeRegion(GpRegion* newNativeRegion) +{ + this->nativeRegion = newNativeRegion; +} + +inline Status Region::GetLastStatus() const +{ + Status lastStatus = lastResult; + lastResult = Ok; + + return lastStatus; +} + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_GDIPLUSREGION_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusstringformat.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusstringformat.h new file mode 100644 index 0000000000000000000000000000000000000000..77b57fbabe2a37c20500a9d8aae3aed82be1ccd5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplusstringformat.h @@ -0,0 +1,349 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusStringFormat.h +* +* Abstract: +* +* GDI+ StringFormat class +* +\**************************************************************************/ + +#ifndef _GDIPLUSSTRINGFORMAT_H +#define _GDIPLUSSTRINGFORMAT_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +class StringFormat : public GdiplusBase +{ +public: + friend class Graphics; + friend class GraphicsPath; + + + StringFormat( + IN INT formatFlags = 0, + IN LANGID language = LANG_NEUTRAL + ) + { + nativeFormat = NULL; + lastError = DllExports::GdipCreateStringFormat( + formatFlags, + language, + &nativeFormat + ); + } + + static const StringFormat *GenericDefault(); + static const StringFormat *GenericTypographic(); + + StringFormat( + IN const StringFormat *format + ) + { + nativeFormat = NULL; + lastError = DllExports::GdipCloneStringFormat( + format ? format->nativeFormat : NULL, + &nativeFormat + ); + } + + StringFormat *Clone() const + { + GpStringFormat *clonedStringFormat = NULL; + + lastError = DllExports::GdipCloneStringFormat( + nativeFormat, + &clonedStringFormat + ); + + if (lastError == Ok) + return new StringFormat(clonedStringFormat, lastError); + else + return NULL; + } + + ~StringFormat() + { + DllExports::GdipDeleteStringFormat(nativeFormat); + } + + Status SetFormatFlags(IN INT flags) + { + return SetStatus(DllExports::GdipSetStringFormatFlags( + nativeFormat, + flags + )); + } + + INT GetFormatFlags() const + { + INT flags; + SetStatus(DllExports::GdipGetStringFormatFlags(nativeFormat, &flags)); + return flags; + } + + Status SetAlignment(IN StringAlignment align) + { + return SetStatus(DllExports::GdipSetStringFormatAlign( + nativeFormat, + align + )); + } + + StringAlignment GetAlignment() const + { + StringAlignment alignment; + SetStatus(DllExports::GdipGetStringFormatAlign( + nativeFormat, + &alignment + )); + return alignment; + } + + Status SetLineAlignment(IN StringAlignment align) + { + return SetStatus(DllExports::GdipSetStringFormatLineAlign( + nativeFormat, + align + )); + } + + StringAlignment GetLineAlignment() const + { + StringAlignment alignment; + SetStatus(DllExports::GdipGetStringFormatLineAlign( + nativeFormat, + &alignment + )); + return alignment; + } + + Status SetHotkeyPrefix(IN HotkeyPrefix hotkeyPrefix) + { + return SetStatus(DllExports::GdipSetStringFormatHotkeyPrefix( + nativeFormat, + (INT)hotkeyPrefix + )); + } + + HotkeyPrefix GetHotkeyPrefix() const + { + HotkeyPrefix hotkeyPrefix; + SetStatus(DllExports::GdipGetStringFormatHotkeyPrefix( + nativeFormat, + (INT*)&hotkeyPrefix + )); + return hotkeyPrefix; + } + + Status SetTabStops( + IN REAL firstTabOffset, + IN INT count, + IN const REAL *tabStops + ) + { + return SetStatus(DllExports::GdipSetStringFormatTabStops( + nativeFormat, + firstTabOffset, + count, + tabStops + )); + } + + INT GetTabStopCount() const + { + INT count; + SetStatus(DllExports::GdipGetStringFormatTabStopCount(nativeFormat, &count)); + return count; + } + + Status GetTabStops( + IN INT count, + OUT REAL *firstTabOffset, + OUT REAL *tabStops + ) const + { + return SetStatus(DllExports::GdipGetStringFormatTabStops( + nativeFormat, + count, + firstTabOffset, + tabStops + )); + } + + Status SetDigitSubstitution( + IN LANGID language, + IN StringDigitSubstitute substitute + ) + { + return SetStatus(DllExports::GdipSetStringFormatDigitSubstitution( + nativeFormat, + language, + substitute + )); + } + + LANGID GetDigitSubstitutionLanguage( + ) const + { + LANGID language; + SetStatus(DllExports::GdipGetStringFormatDigitSubstitution( + nativeFormat, + &language, + NULL + )); + return language; + } + + StringDigitSubstitute GetDigitSubstitutionMethod( + ) const + { + StringDigitSubstitute substitute; + SetStatus(DllExports::GdipGetStringFormatDigitSubstitution( + nativeFormat, + NULL, + &substitute + )); + return substitute; + } + + Status SetTrimming(IN StringTrimming trimming) + { + return SetStatus(DllExports::GdipSetStringFormatTrimming( + nativeFormat, + trimming + )); + } + + StringTrimming GetTrimming() const + { + StringTrimming trimming; + SetStatus(DllExports::GdipGetStringFormatTrimming( + nativeFormat, + &trimming + )); + return trimming; + } + + Status SetMeasurableCharacterRanges( + IN INT rangeCount, + IN const CharacterRange *ranges + ) + { + return SetStatus(DllExports::GdipSetStringFormatMeasurableCharacterRanges( + nativeFormat, + rangeCount, + ranges + )); + } + + INT GetMeasurableCharacterRangeCount() + { + INT count; + SetStatus(DllExports::GdipGetStringFormatMeasurableCharacterRangeCount( + nativeFormat, + &count + )); + return count; + } + + Status GetLastStatus() const + { + Status lastStatus = lastError; + lastError = Ok; + + return lastStatus; + } + +protected: + + Status SetStatus(GpStatus newStatus) const + { + if (newStatus == Ok) + { + return Ok; + } + else + { + return lastError = newStatus; + } + } + + StringFormat(const StringFormat &source) + { + nativeFormat = NULL; + lastError = DllExports::GdipCloneStringFormat( + source.nativeFormat, + &nativeFormat + ); + } + + StringFormat& operator=(const StringFormat &source) + { + DllExports::GdipDeleteStringFormat(nativeFormat); + lastError = DllExports::GdipCloneStringFormat( + source.nativeFormat, + &nativeFormat + ); + return *this; + } + + StringFormat(GpStringFormat * clonedStringFormat, Status status) + { + lastError = status; + nativeFormat = clonedStringFormat; + + } + + GpStringFormat *nativeFormat; + mutable Status lastError; +}; + +static BYTE GenericTypographicStringFormatBuffer[sizeof(StringFormat)] = {0}; +static BYTE GenericDefaultStringFormatBuffer[sizeof(StringFormat)] = {0}; + +inline const StringFormat *StringFormat::GenericDefault() +{ + StringFormat * genericDefaultStringFormat = + (StringFormat*)GenericDefaultStringFormatBuffer; + + genericDefaultStringFormat->lastError = + DllExports::GdipStringFormatGetGenericDefault( + &(genericDefaultStringFormat->nativeFormat) + ); + + return genericDefaultStringFormat; +} + +inline const StringFormat *StringFormat::GenericTypographic() +{ + StringFormat * genericTypographicStringFormat = + (StringFormat*)GenericTypographicStringFormatBuffer; + + genericTypographicStringFormat->lastError = + DllExports::GdipStringFormatGetGenericTypographic( + &genericTypographicStringFormat->nativeFormat + ); + + return genericTypographicStringFormat; +} + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_GDIPLUSSTRINGFORMAT_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplustypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplustypes.h new file mode 100644 index 0000000000000000000000000000000000000000..9ee8975c36dd703206b6dbdb22ca2199be0816d0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gdiplustypes.h @@ -0,0 +1,795 @@ +/**************************************************************************\ +* +* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. +* +* Module Name: +* +* GdiplusTypes.h +* +* Abstract: +* +* GDI+ Types +* +\**************************************************************************/ + +#ifndef _GDIPLUSTYPES_H +#define _GDIPLUSTYPES_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) /* padding added after data member */ +#endif + +// Support NOMINMAX by defining local min max macros +#define GDIPLUS_MIN(a,b) (((a) < (b)) ? (a) : (b)) +#define GDIPLUS_MAX(a,b) (((a) > (b)) ? (a) : (b)) + +//-------------------------------------------------------------------------- +// Callback functions +//-------------------------------------------------------------------------- + +extern "C" { +typedef BOOL (CALLBACK * ImageAbort)(VOID *); +typedef ImageAbort DrawImageAbort; +typedef ImageAbort GetThumbnailImageAbort; +} + +// Callback for EnumerateMetafile methods. The parameters are: + +// recordType WMF, EMF, or EMF+ record type +// flags (always 0 for WMF/EMF records) +// dataSize size of the record data (in bytes), or 0 if no data +// data pointer to the record data, or NULL if no data +// callbackData pointer to callbackData, if any + +// This method can then call Metafile::PlayRecord to play the +// record that was just enumerated. If this method returns +// FALSE, the enumeration process is aborted. Otherwise, it continues. + +extern "C" { +typedef BOOL (CALLBACK * EnumerateMetafileProc)(EmfPlusRecordType,UINT,UINT,const BYTE*,VOID*); +} + +#if (GDIPVER >= 0x0110) +// This is the main GDI+ Abort interface + +struct __declspec(novtable) GdiplusAbort +{ + virtual HRESULT __stdcall Abort(void) = 0; +}; +#endif //(GDIPVER >= 0x0110) + +//-------------------------------------------------------------------------- +// Primitive data types +// +// NOTE: +// Types already defined in standard header files: +// INT8 +// UINT8 +// INT16 +// UINT16 +// INT32 +// UINT32 +// INT64 +// UINT64 +// +// Avoid using the following types: +// LONG - use INT +// ULONG - use UINT +// DWORD - use UINT32 +//-------------------------------------------------------------------------- + +typedef float REAL; + +#define REAL_MAX FLT_MAX +#define REAL_MIN FLT_MIN +#define REAL_TOLERANCE (FLT_MIN * 100) +#define REAL_EPSILON 1.192092896e-07F /* FLT_EPSILON */ + +//-------------------------------------------------------------------------- +// Forward declarations of common classes +//-------------------------------------------------------------------------- + +class Size; +class SizeF; +class Point; +class PointF; +class Rect; +class RectF; +class CharacterRange; + +//-------------------------------------------------------------------------- +// Status return values from GDI+ methods +//-------------------------------------------------------------------------- + +_Return_type_success_(return == 0) enum Status +{ + Ok = 0, + GenericError = 1, + InvalidParameter = 2, + OutOfMemory = 3, + ObjectBusy = 4, + InsufficientBuffer = 5, + NotImplemented = 6, + Win32Error = 7, + WrongState = 8, + Aborted = 9, + FileNotFound = 10, + ValueOverflow = 11, + AccessDenied = 12, + UnknownImageFormat = 13, + FontFamilyNotFound = 14, + FontStyleNotFound = 15, + NotTrueTypeFont = 16, + UnsupportedGdiplusVersion = 17, + GdiplusNotInitialized = 18, + PropertyNotFound = 19, + PropertyNotSupported = 20, +#if (GDIPVER >= 0x0110) + ProfileNotFound = 21, +#endif //(GDIPVER >= 0x0110) +}; + +//-------------------------------------------------------------------------- +// Represents a dimension in a 2D coordinate system (floating-point coordinates) +//-------------------------------------------------------------------------- + +class SizeF +{ +public: + SizeF() + { + Width = Height = 0.0f; + } + + SizeF(IN const SizeF& size) + { + Width = size.Width; + Height = size.Height; + } + + SizeF(IN REAL width, + IN REAL height) + { + Width = width; + Height = height; + } + + SizeF operator+(IN const SizeF& sz) const + { + return SizeF(Width + sz.Width, + Height + sz.Height); + } + + SizeF operator-(IN const SizeF& sz) const + { + return SizeF(Width - sz.Width, + Height - sz.Height); + } + + BOOL Equals(IN const SizeF& sz) const + { + return (Width == sz.Width) && (Height == sz.Height); + } + + BOOL Empty() const + { + return (Width == 0.0f && Height == 0.0f); + } + +public: + + REAL Width; + REAL Height; +}; + +//-------------------------------------------------------------------------- +// Represents a dimension in a 2D coordinate system (integer coordinates) +//-------------------------------------------------------------------------- + +class Size +{ +public: + Size() + { + Width = Height = 0; + } + + Size(IN const Size& size) + { + Width = size.Width; + Height = size.Height; + } + + Size(IN INT width, + IN INT height) + { + Width = width; + Height = height; + } + + Size operator+(IN const Size& sz) const + { + return Size(Width + sz.Width, + Height + sz.Height); + } + + Size operator-(IN const Size& sz) const + { + return Size(Width - sz.Width, + Height - sz.Height); + } + + BOOL Equals(IN const Size& sz) const + { + return (Width == sz.Width) && (Height == sz.Height); + } + + BOOL Empty() const + { + return (Width == 0 && Height == 0); + } + +public: + + INT Width; + INT Height; +}; + +//-------------------------------------------------------------------------- +// Represents a location in a 2D coordinate system (floating-point coordinates) +//-------------------------------------------------------------------------- + +class PointF +{ +public: + PointF() + { + X = Y = 0.0f; + } + + PointF(IN const PointF &point) + { + X = point.X; + Y = point.Y; + } + + PointF(IN const SizeF &size) + { + X = size.Width; + Y = size.Height; + } + + PointF(IN REAL x, + IN REAL y) + { + X = x; + Y = y; + } + + PointF operator+(IN const PointF& point) const + { + return PointF(X + point.X, + Y + point.Y); + } + + PointF operator-(IN const PointF& point) const + { + return PointF(X - point.X, + Y - point.Y); + } + + BOOL Equals(IN const PointF& point) + { + return (X == point.X) && (Y == point.Y); + } + +public: + + REAL X; + REAL Y; +}; + +//-------------------------------------------------------------------------- +// Represents a location in a 2D coordinate system (integer coordinates) +//-------------------------------------------------------------------------- + +class Point +{ +public: + Point() + { + X = Y = 0; + } + + Point(IN const Point &point) + { + X = point.X; + Y = point.Y; + } + + Point(IN const Size &size) + { + X = size.Width; + Y = size.Height; + } + + Point(IN INT x, + IN INT y) + { + X = x; + Y = y; + } + + Point operator+(IN const Point& point) const + { + return Point(X + point.X, + Y + point.Y); + } + + Point operator-(IN const Point& point) const + { + return Point(X - point.X, + Y - point.Y); + } + + BOOL Equals(IN const Point& point) + { + return (X == point.X) && (Y == point.Y); + } + +public: + + INT X; + INT Y; +}; + +//-------------------------------------------------------------------------- +// Represents a rectangle in a 2D coordinate system (floating-point coordinates) +//-------------------------------------------------------------------------- + +class RectF +{ +public: + + RectF() + { + X = Y = Width = Height = 0.0f; + } + + RectF(IN REAL x, + IN REAL y, + IN REAL width, + IN REAL height) + { + X = x; + Y = y; + Width = width; + Height = height; + } + + RectF(IN const PointF& location, + IN const SizeF& size) + { + X = location.X; + Y = location.Y; + Width = size.Width; + Height = size.Height; + } + + RectF* Clone() const + { + return new RectF(X, Y, Width, Height); + } + + VOID GetLocation(OUT PointF* point) const + { + point->X = X; + point->Y = Y; + } + + VOID GetSize(OUT SizeF* size) const + { + size->Width = Width; + size->Height = Height; + } + + VOID GetBounds(OUT RectF* rect) const + { + rect->X = X; + rect->Y = Y; + rect->Width = Width; + rect->Height = Height; + } + + REAL GetLeft() const + { + return X; + } + + REAL GetTop() const + { + return Y; + } + + REAL GetRight() const + { + return X+Width; + } + + REAL GetBottom() const + { + return Y+Height; + } + + BOOL IsEmptyArea() const + { + return (Width <= REAL_EPSILON) || (Height <= REAL_EPSILON); + } + + BOOL Equals(IN const RectF & rect) const + { + return X == rect.X && + Y == rect.Y && + Width == rect.Width && + Height == rect.Height; + } + + BOOL Contains(IN REAL x, + IN REAL y) const + { + return x >= X && x < X+Width && + y >= Y && y < Y+Height; + } + + BOOL Contains(IN const PointF& pt) const + { + return Contains(pt.X, pt.Y); + } + + BOOL Contains(IN const RectF& rect) const + { + return (X <= rect.X) && (rect.GetRight() <= GetRight()) && + (Y <= rect.Y) && (rect.GetBottom() <= GetBottom()); + } + + VOID Inflate(IN REAL dx, + IN REAL dy) + { + X -= dx; + Y -= dy; + Width += 2*dx; + Height += 2*dy; + } + + VOID Inflate(IN const PointF& point) + { + Inflate(point.X, point.Y); + } + + BOOL Intersect(IN const RectF& rect) + { + return Intersect(*this, *this, rect); + } + + static BOOL Intersect(OUT RectF& c, + IN const RectF& a, + IN const RectF& b) + { + REAL right = GDIPLUS_MIN(a.GetRight(), b.GetRight()); + REAL bottom = GDIPLUS_MIN(a.GetBottom(), b.GetBottom()); + REAL left = GDIPLUS_MAX(a.GetLeft(), b.GetLeft()); + REAL top = GDIPLUS_MAX(a.GetTop(), b.GetTop()); + + c.X = left; + c.Y = top; + c.Width = right - left; + c.Height = bottom - top; + return !c.IsEmptyArea(); + } + + BOOL IntersectsWith(IN const RectF& rect) const + { + return (GetLeft() < rect.GetRight() && + GetTop() < rect.GetBottom() && + GetRight() > rect.GetLeft() && + GetBottom() > rect.GetTop()); + } + + static BOOL Union(OUT RectF& c, + IN const RectF& a, + IN const RectF& b) + { + REAL right = GDIPLUS_MAX(a.GetRight(), b.GetRight()); + REAL bottom = GDIPLUS_MAX(a.GetBottom(), b.GetBottom()); + REAL left = GDIPLUS_MIN(a.GetLeft(), b.GetLeft()); + REAL top = GDIPLUS_MIN(a.GetTop(), b.GetTop()); + + c.X = left; + c.Y = top; + c.Width = right - left; + c.Height = bottom - top; + return !c.IsEmptyArea(); + } + + VOID Offset(IN const PointF& point) + { + Offset(point.X, point.Y); + } + + VOID Offset(IN REAL dx, + IN REAL dy) + { + X += dx; + Y += dy; + } + +public: + + REAL X; + REAL Y; + REAL Width; + REAL Height; +}; + +//-------------------------------------------------------------------------- +// Represents a rectangle in a 2D coordinate system (integer coordinates) +//-------------------------------------------------------------------------- + +class Rect +{ +public: + + Rect() + { + X = Y = Width = Height = 0; + } + + Rect(IN INT x, + IN INT y, + IN INT width, + IN INT height) + { + X = x; + Y = y; + Width = width; + Height = height; + } + + Rect(IN const Point& location, + IN const Size& size) + { + X = location.X; + Y = location.Y; + Width = size.Width; + Height = size.Height; + } + + Rect* Clone() const + { + return new Rect(X, Y, Width, Height); + } + + VOID GetLocation(OUT Point* point) const + { + point->X = X; + point->Y = Y; + } + + VOID GetSize(OUT Size* size) const + { + size->Width = Width; + size->Height = Height; + } + + VOID GetBounds(OUT Rect* rect) const + { + rect->X = X; + rect->Y = Y; + rect->Width = Width; + rect->Height = Height; + } + + INT GetLeft() const + { + return X; + } + + INT GetTop() const + { + return Y; + } + + INT GetRight() const + { + return X+Width; + } + + INT GetBottom() const + { + return Y+Height; + } + + BOOL IsEmptyArea() const + { + return (Width <= 0) || (Height <= 0); + } + + BOOL Equals(IN const Rect & rect) const + { + return X == rect.X && + Y == rect.Y && + Width == rect.Width && + Height == rect.Height; + } + + BOOL Contains(IN INT x, + IN INT y) const + { + return x >= X && x < X+Width && + y >= Y && y < Y+Height; + } + + BOOL Contains(IN const Point& pt) const + { + return Contains(pt.X, pt.Y); + } + + BOOL Contains(IN Rect& rect) const + { + return (X <= rect.X) && (rect.GetRight() <= GetRight()) && + (Y <= rect.Y) && (rect.GetBottom() <= GetBottom()); + } + + VOID Inflate(IN INT dx, + IN INT dy) + { + X -= dx; + Y -= dy; + Width += 2*dx; + Height += 2*dy; + } + + VOID Inflate(IN const Point& point) + { + Inflate(point.X, point.Y); + } + + BOOL Intersect(IN const Rect& rect) + { + return Intersect(*this, *this, rect); + } + + static BOOL Intersect(OUT Rect& c, + IN const Rect& a, + IN const Rect& b) + { + INT right = GDIPLUS_MIN(a.GetRight(), b.GetRight()); + INT bottom = GDIPLUS_MIN(a.GetBottom(), b.GetBottom()); + INT left = GDIPLUS_MAX(a.GetLeft(), b.GetLeft()); + INT top = GDIPLUS_MAX(a.GetTop(), b.GetTop()); + + c.X = left; + c.Y = top; + c.Width = right - left; + c.Height = bottom - top; + return !c.IsEmptyArea(); + } + + BOOL IntersectsWith(IN const Rect& rect) const + { + return (GetLeft() < rect.GetRight() && + GetTop() < rect.GetBottom() && + GetRight() > rect.GetLeft() && + GetBottom() > rect.GetTop()); + } + + static BOOL Union(OUT Rect& c, + IN const Rect& a, + IN const Rect& b) + { + INT right = GDIPLUS_MAX(a.GetRight(), b.GetRight()); + INT bottom = GDIPLUS_MAX(a.GetBottom(), b.GetBottom()); + INT left = GDIPLUS_MIN(a.GetLeft(), b.GetLeft()); + INT top = GDIPLUS_MIN(a.GetTop(), b.GetTop()); + + c.X = left; + c.Y = top; + c.Width = right - left; + c.Height = bottom - top; + return !c.IsEmptyArea(); + } + + VOID Offset(IN const Point& point) + { + Offset(point.X, point.Y); + } + + VOID Offset(IN INT dx, + IN INT dy) + { + X += dx; + Y += dy; + } + +public: + + INT X; + INT Y; + INT Width; + INT Height; +}; + +class PathData +{ +public: + PathData() + { + Count = 0; + Points = NULL; + Types = NULL; + } + + ~PathData() + { + if (Points != NULL) + { + delete [] Points; + } + + if (Types != NULL) + { + delete [] Types; + } + } + +private: + PathData(const PathData &); + PathData& operator=(const PathData &); + +public: + INT Count; + PointF* Points; + _Field_size_opt_(Count) BYTE* Types; +}; + +class CharacterRange +{ +public: + CharacterRange( + INT first, + INT length + ) : + First (first), + Length (length) + {} + + CharacterRange() : First(0), Length(0) + {} + + CharacterRange & operator = (const CharacterRange &rhs) + { + First = rhs.First; + Length = rhs.Length; + return *this; + } + + INT First; + INT Length; +}; + +#undef GDIPLUS_MIN +#undef GDIPLUS_MAX + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_GDIPLUSTYPES_HPP diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/getdts.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/getdts.idl new file mode 100644 index 0000000000000000000000000000000000000000..ca86df8b5eabb4da026bb5f632dc05bb61e2c38d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/getdts.idl @@ -0,0 +1,47 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: getdts.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a75-2a1c-11ce-ade5-00aa0044773d) + + +interface IGetDataSource : IUnknown { + + [local] + HRESULT GetDataSource( + [in] REFIID riid, + [out, iid_is(riid), annotation("_Outptr_result_maybenull_")] IUnknown ** ppDataSource + ); + + [call_as(GetDataSource)] + HRESULT RemoteGetDataSource( + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppDataSource, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/getrow.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/getrow.idl new file mode 100644 index 0000000000000000000000000000000000000000..d8ab2882f5a9820da3f6f5eef5f27d6670fdc458 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/getrow.idl @@ -0,0 +1,45 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: getrow.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" + + +LOCAL_INTERFACE(0c733aaf-2a1c-11ce-ade5-00aa0044773d) + + +interface IGetRow : IUnknown +{ +HRESULT GetRowFromHROW( + [in, unique] IUnknown* pUnkOuter, + [in] HROW hRow, + [in] REFIID riid, + [out, iid_is(riid)] IUnknown** ppUnk + ); + +HRESULT GetURLFromHROW( + [in] HROW hRow, + [out, annotation("_Outptr_result_z_")]LPOLESTR* ppwszURL + ); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/getses.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/getses.idl new file mode 100644 index 0000000000000000000000000000000000000000..398775c6f2019c8e1db447895df1c16a05d12247 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/getses.idl @@ -0,0 +1,40 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: getses.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" + + + REMOTED_INTERFACE(0c733aba-2a1c-11ce-ade5-00aa0044773d) + + +interface IGetSession : IUnknown +{ + + HRESULT GetSession( + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppSession + ); +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/getsrw.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/getsrw.idl new file mode 100644 index 0000000000000000000000000000000000000000..31cfcbee2522c45f136367f73eb6184160c98ab9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/getsrw.idl @@ -0,0 +1,38 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: getsrw.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" + + +REMOTED_INTERFACE(0c733abb-2a1c-11ce-ade5-00aa0044773d) + + +interface IGetSourceRow : IUnknown +{ +HRESULT GetSourceRow( + [in]REFIID riid, + [out, iid_is(riid)]IUnknown **ppRow); +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gpmgmt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gpmgmt.h new file mode 100644 index 0000000000000000000000000000000000000000..04be2a114b80ea50bf7d48dff5cafbaa660975d2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gpmgmt.h @@ -0,0 +1,11759 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __gpmgmt_h__ +#define __gpmgmt_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IGPM_FWD_DEFINED__ +#define __IGPM_FWD_DEFINED__ +typedef interface IGPM IGPM; + +#endif /* __IGPM_FWD_DEFINED__ */ + + +#ifndef __IGPMDomain_FWD_DEFINED__ +#define __IGPMDomain_FWD_DEFINED__ +typedef interface IGPMDomain IGPMDomain; + +#endif /* __IGPMDomain_FWD_DEFINED__ */ + + +#ifndef __IGPMBackupDir_FWD_DEFINED__ +#define __IGPMBackupDir_FWD_DEFINED__ +typedef interface IGPMBackupDir IGPMBackupDir; + +#endif /* __IGPMBackupDir_FWD_DEFINED__ */ + + +#ifndef __IGPMSitesContainer_FWD_DEFINED__ +#define __IGPMSitesContainer_FWD_DEFINED__ +typedef interface IGPMSitesContainer IGPMSitesContainer; + +#endif /* __IGPMSitesContainer_FWD_DEFINED__ */ + + +#ifndef __IGPMSearchCriteria_FWD_DEFINED__ +#define __IGPMSearchCriteria_FWD_DEFINED__ +typedef interface IGPMSearchCriteria IGPMSearchCriteria; + +#endif /* __IGPMSearchCriteria_FWD_DEFINED__ */ + + +#ifndef __IGPMTrustee_FWD_DEFINED__ +#define __IGPMTrustee_FWD_DEFINED__ +typedef interface IGPMTrustee IGPMTrustee; + +#endif /* __IGPMTrustee_FWD_DEFINED__ */ + + +#ifndef __IGPMPermission_FWD_DEFINED__ +#define __IGPMPermission_FWD_DEFINED__ +typedef interface IGPMPermission IGPMPermission; + +#endif /* __IGPMPermission_FWD_DEFINED__ */ + + +#ifndef __IGPMSecurityInfo_FWD_DEFINED__ +#define __IGPMSecurityInfo_FWD_DEFINED__ +typedef interface IGPMSecurityInfo IGPMSecurityInfo; + +#endif /* __IGPMSecurityInfo_FWD_DEFINED__ */ + + +#ifndef __IGPMBackup_FWD_DEFINED__ +#define __IGPMBackup_FWD_DEFINED__ +typedef interface IGPMBackup IGPMBackup; + +#endif /* __IGPMBackup_FWD_DEFINED__ */ + + +#ifndef __IGPMBackupCollection_FWD_DEFINED__ +#define __IGPMBackupCollection_FWD_DEFINED__ +typedef interface IGPMBackupCollection IGPMBackupCollection; + +#endif /* __IGPMBackupCollection_FWD_DEFINED__ */ + + +#ifndef __IGPMSOM_FWD_DEFINED__ +#define __IGPMSOM_FWD_DEFINED__ +typedef interface IGPMSOM IGPMSOM; + +#endif /* __IGPMSOM_FWD_DEFINED__ */ + + +#ifndef __IGPMSOMCollection_FWD_DEFINED__ +#define __IGPMSOMCollection_FWD_DEFINED__ +typedef interface IGPMSOMCollection IGPMSOMCollection; + +#endif /* __IGPMSOMCollection_FWD_DEFINED__ */ + + +#ifndef __IGPMWMIFilter_FWD_DEFINED__ +#define __IGPMWMIFilter_FWD_DEFINED__ +typedef interface IGPMWMIFilter IGPMWMIFilter; + +#endif /* __IGPMWMIFilter_FWD_DEFINED__ */ + + +#ifndef __IGPMWMIFilterCollection_FWD_DEFINED__ +#define __IGPMWMIFilterCollection_FWD_DEFINED__ +typedef interface IGPMWMIFilterCollection IGPMWMIFilterCollection; + +#endif /* __IGPMWMIFilterCollection_FWD_DEFINED__ */ + + +#ifndef __IGPMRSOP_FWD_DEFINED__ +#define __IGPMRSOP_FWD_DEFINED__ +typedef interface IGPMRSOP IGPMRSOP; + +#endif /* __IGPMRSOP_FWD_DEFINED__ */ + + +#ifndef __IGPMGPO_FWD_DEFINED__ +#define __IGPMGPO_FWD_DEFINED__ +typedef interface IGPMGPO IGPMGPO; + +#endif /* __IGPMGPO_FWD_DEFINED__ */ + + +#ifndef __IGPMGPOCollection_FWD_DEFINED__ +#define __IGPMGPOCollection_FWD_DEFINED__ +typedef interface IGPMGPOCollection IGPMGPOCollection; + +#endif /* __IGPMGPOCollection_FWD_DEFINED__ */ + + +#ifndef __IGPMGPOLink_FWD_DEFINED__ +#define __IGPMGPOLink_FWD_DEFINED__ +typedef interface IGPMGPOLink IGPMGPOLink; + +#endif /* __IGPMGPOLink_FWD_DEFINED__ */ + + +#ifndef __IGPMGPOLinksCollection_FWD_DEFINED__ +#define __IGPMGPOLinksCollection_FWD_DEFINED__ +typedef interface IGPMGPOLinksCollection IGPMGPOLinksCollection; + +#endif /* __IGPMGPOLinksCollection_FWD_DEFINED__ */ + + +#ifndef __IGPMCSECollection_FWD_DEFINED__ +#define __IGPMCSECollection_FWD_DEFINED__ +typedef interface IGPMCSECollection IGPMCSECollection; + +#endif /* __IGPMCSECollection_FWD_DEFINED__ */ + + +#ifndef __IGPMClientSideExtension_FWD_DEFINED__ +#define __IGPMClientSideExtension_FWD_DEFINED__ +typedef interface IGPMClientSideExtension IGPMClientSideExtension; + +#endif /* __IGPMClientSideExtension_FWD_DEFINED__ */ + + +#ifndef __IGPMAsyncCancel_FWD_DEFINED__ +#define __IGPMAsyncCancel_FWD_DEFINED__ +typedef interface IGPMAsyncCancel IGPMAsyncCancel; + +#endif /* __IGPMAsyncCancel_FWD_DEFINED__ */ + + +#ifndef __IGPMAsyncProgress_FWD_DEFINED__ +#define __IGPMAsyncProgress_FWD_DEFINED__ +typedef interface IGPMAsyncProgress IGPMAsyncProgress; + +#endif /* __IGPMAsyncProgress_FWD_DEFINED__ */ + + +#ifndef __IGPMStatusMsgCollection_FWD_DEFINED__ +#define __IGPMStatusMsgCollection_FWD_DEFINED__ +typedef interface IGPMStatusMsgCollection IGPMStatusMsgCollection; + +#endif /* __IGPMStatusMsgCollection_FWD_DEFINED__ */ + + +#ifndef __IGPMStatusMessage_FWD_DEFINED__ +#define __IGPMStatusMessage_FWD_DEFINED__ +typedef interface IGPMStatusMessage IGPMStatusMessage; + +#endif /* __IGPMStatusMessage_FWD_DEFINED__ */ + + +#ifndef __IGPMConstants_FWD_DEFINED__ +#define __IGPMConstants_FWD_DEFINED__ +typedef interface IGPMConstants IGPMConstants; + +#endif /* __IGPMConstants_FWD_DEFINED__ */ + + +#ifndef __IGPMResult_FWD_DEFINED__ +#define __IGPMResult_FWD_DEFINED__ +typedef interface IGPMResult IGPMResult; + +#endif /* __IGPMResult_FWD_DEFINED__ */ + + +#ifndef __IGPMMapEntryCollection_FWD_DEFINED__ +#define __IGPMMapEntryCollection_FWD_DEFINED__ +typedef interface IGPMMapEntryCollection IGPMMapEntryCollection; + +#endif /* __IGPMMapEntryCollection_FWD_DEFINED__ */ + + +#ifndef __IGPMMapEntry_FWD_DEFINED__ +#define __IGPMMapEntry_FWD_DEFINED__ +typedef interface IGPMMapEntry IGPMMapEntry; + +#endif /* __IGPMMapEntry_FWD_DEFINED__ */ + + +#ifndef __IGPMMigrationTable_FWD_DEFINED__ +#define __IGPMMigrationTable_FWD_DEFINED__ +typedef interface IGPMMigrationTable IGPMMigrationTable; + +#endif /* __IGPMMigrationTable_FWD_DEFINED__ */ + + +#ifndef __IGPMBackupDirEx_FWD_DEFINED__ +#define __IGPMBackupDirEx_FWD_DEFINED__ +typedef interface IGPMBackupDirEx IGPMBackupDirEx; + +#endif /* __IGPMBackupDirEx_FWD_DEFINED__ */ + + +#ifndef __IGPMStarterGPOBackupCollection_FWD_DEFINED__ +#define __IGPMStarterGPOBackupCollection_FWD_DEFINED__ +typedef interface IGPMStarterGPOBackupCollection IGPMStarterGPOBackupCollection; + +#endif /* __IGPMStarterGPOBackupCollection_FWD_DEFINED__ */ + + +#ifndef __IGPMStarterGPOBackup_FWD_DEFINED__ +#define __IGPMStarterGPOBackup_FWD_DEFINED__ +typedef interface IGPMStarterGPOBackup IGPMStarterGPOBackup; + +#endif /* __IGPMStarterGPOBackup_FWD_DEFINED__ */ + + +#ifndef __IGPM2_FWD_DEFINED__ +#define __IGPM2_FWD_DEFINED__ +typedef interface IGPM2 IGPM2; + +#endif /* __IGPM2_FWD_DEFINED__ */ + + +#ifndef __IGPMStarterGPO_FWD_DEFINED__ +#define __IGPMStarterGPO_FWD_DEFINED__ +typedef interface IGPMStarterGPO IGPMStarterGPO; + +#endif /* __IGPMStarterGPO_FWD_DEFINED__ */ + + +#ifndef __IGPMStarterGPOCollection_FWD_DEFINED__ +#define __IGPMStarterGPOCollection_FWD_DEFINED__ +typedef interface IGPMStarterGPOCollection IGPMStarterGPOCollection; + +#endif /* __IGPMStarterGPOCollection_FWD_DEFINED__ */ + + +#ifndef __IGPMDomain2_FWD_DEFINED__ +#define __IGPMDomain2_FWD_DEFINED__ +typedef interface IGPMDomain2 IGPMDomain2; + +#endif /* __IGPMDomain2_FWD_DEFINED__ */ + + +#ifndef __IGPMConstants2_FWD_DEFINED__ +#define __IGPMConstants2_FWD_DEFINED__ +typedef interface IGPMConstants2 IGPMConstants2; + +#endif /* __IGPMConstants2_FWD_DEFINED__ */ + + +#ifndef __IGPMGPO2_FWD_DEFINED__ +#define __IGPMGPO2_FWD_DEFINED__ +typedef interface IGPMGPO2 IGPMGPO2; + +#endif /* __IGPMGPO2_FWD_DEFINED__ */ + + +#ifndef __IGPMDomain3_FWD_DEFINED__ +#define __IGPMDomain3_FWD_DEFINED__ +typedef interface IGPMDomain3 IGPMDomain3; + +#endif /* __IGPMDomain3_FWD_DEFINED__ */ + + +#ifndef __IGPMGPO3_FWD_DEFINED__ +#define __IGPMGPO3_FWD_DEFINED__ +typedef interface IGPMGPO3 IGPMGPO3; + +#endif /* __IGPMGPO3_FWD_DEFINED__ */ + + +#ifndef __GPM_FWD_DEFINED__ +#define __GPM_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPM GPM; +#else +typedef struct GPM GPM; +#endif /* __cplusplus */ + +#endif /* __GPM_FWD_DEFINED__ */ + + +#ifndef __GPMDomain_FWD_DEFINED__ +#define __GPMDomain_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMDomain GPMDomain; +#else +typedef struct GPMDomain GPMDomain; +#endif /* __cplusplus */ + +#endif /* __GPMDomain_FWD_DEFINED__ */ + + +#ifndef __GPMSitesContainer_FWD_DEFINED__ +#define __GPMSitesContainer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMSitesContainer GPMSitesContainer; +#else +typedef struct GPMSitesContainer GPMSitesContainer; +#endif /* __cplusplus */ + +#endif /* __GPMSitesContainer_FWD_DEFINED__ */ + + +#ifndef __GPMBackupDir_FWD_DEFINED__ +#define __GPMBackupDir_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMBackupDir GPMBackupDir; +#else +typedef struct GPMBackupDir GPMBackupDir; +#endif /* __cplusplus */ + +#endif /* __GPMBackupDir_FWD_DEFINED__ */ + + +#ifndef __GPMSOM_FWD_DEFINED__ +#define __GPMSOM_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMSOM GPMSOM; +#else +typedef struct GPMSOM GPMSOM; +#endif /* __cplusplus */ + +#endif /* __GPMSOM_FWD_DEFINED__ */ + + +#ifndef __GPMSearchCriteria_FWD_DEFINED__ +#define __GPMSearchCriteria_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMSearchCriteria GPMSearchCriteria; +#else +typedef struct GPMSearchCriteria GPMSearchCriteria; +#endif /* __cplusplus */ + +#endif /* __GPMSearchCriteria_FWD_DEFINED__ */ + + +#ifndef __GPMPermission_FWD_DEFINED__ +#define __GPMPermission_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMPermission GPMPermission; +#else +typedef struct GPMPermission GPMPermission; +#endif /* __cplusplus */ + +#endif /* __GPMPermission_FWD_DEFINED__ */ + + +#ifndef __GPMSecurityInfo_FWD_DEFINED__ +#define __GPMSecurityInfo_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMSecurityInfo GPMSecurityInfo; +#else +typedef struct GPMSecurityInfo GPMSecurityInfo; +#endif /* __cplusplus */ + +#endif /* __GPMSecurityInfo_FWD_DEFINED__ */ + + +#ifndef __GPMBackup_FWD_DEFINED__ +#define __GPMBackup_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMBackup GPMBackup; +#else +typedef struct GPMBackup GPMBackup; +#endif /* __cplusplus */ + +#endif /* __GPMBackup_FWD_DEFINED__ */ + + +#ifndef __GPMBackupCollection_FWD_DEFINED__ +#define __GPMBackupCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMBackupCollection GPMBackupCollection; +#else +typedef struct GPMBackupCollection GPMBackupCollection; +#endif /* __cplusplus */ + +#endif /* __GPMBackupCollection_FWD_DEFINED__ */ + + +#ifndef __GPMSOMCollection_FWD_DEFINED__ +#define __GPMSOMCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMSOMCollection GPMSOMCollection; +#else +typedef struct GPMSOMCollection GPMSOMCollection; +#endif /* __cplusplus */ + +#endif /* __GPMSOMCollection_FWD_DEFINED__ */ + + +#ifndef __GPMWMIFilter_FWD_DEFINED__ +#define __GPMWMIFilter_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMWMIFilter GPMWMIFilter; +#else +typedef struct GPMWMIFilter GPMWMIFilter; +#endif /* __cplusplus */ + +#endif /* __GPMWMIFilter_FWD_DEFINED__ */ + + +#ifndef __GPMWMIFilterCollection_FWD_DEFINED__ +#define __GPMWMIFilterCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMWMIFilterCollection GPMWMIFilterCollection; +#else +typedef struct GPMWMIFilterCollection GPMWMIFilterCollection; +#endif /* __cplusplus */ + +#endif /* __GPMWMIFilterCollection_FWD_DEFINED__ */ + + +#ifndef __GPMRSOP_FWD_DEFINED__ +#define __GPMRSOP_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMRSOP GPMRSOP; +#else +typedef struct GPMRSOP GPMRSOP; +#endif /* __cplusplus */ + +#endif /* __GPMRSOP_FWD_DEFINED__ */ + + +#ifndef __GPMGPO_FWD_DEFINED__ +#define __GPMGPO_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMGPO GPMGPO; +#else +typedef struct GPMGPO GPMGPO; +#endif /* __cplusplus */ + +#endif /* __GPMGPO_FWD_DEFINED__ */ + + +#ifndef __GPMGPOCollection_FWD_DEFINED__ +#define __GPMGPOCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMGPOCollection GPMGPOCollection; +#else +typedef struct GPMGPOCollection GPMGPOCollection; +#endif /* __cplusplus */ + +#endif /* __GPMGPOCollection_FWD_DEFINED__ */ + + +#ifndef __GPMGPOLink_FWD_DEFINED__ +#define __GPMGPOLink_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMGPOLink GPMGPOLink; +#else +typedef struct GPMGPOLink GPMGPOLink; +#endif /* __cplusplus */ + +#endif /* __GPMGPOLink_FWD_DEFINED__ */ + + +#ifndef __GPMGPOLinksCollection_FWD_DEFINED__ +#define __GPMGPOLinksCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMGPOLinksCollection GPMGPOLinksCollection; +#else +typedef struct GPMGPOLinksCollection GPMGPOLinksCollection; +#endif /* __cplusplus */ + +#endif /* __GPMGPOLinksCollection_FWD_DEFINED__ */ + + +#ifndef __GPMAsyncCancel_FWD_DEFINED__ +#define __GPMAsyncCancel_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMAsyncCancel GPMAsyncCancel; +#else +typedef struct GPMAsyncCancel GPMAsyncCancel; +#endif /* __cplusplus */ + +#endif /* __GPMAsyncCancel_FWD_DEFINED__ */ + + +#ifndef __GPMStatusMsgCollection_FWD_DEFINED__ +#define __GPMStatusMsgCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMStatusMsgCollection GPMStatusMsgCollection; +#else +typedef struct GPMStatusMsgCollection GPMStatusMsgCollection; +#endif /* __cplusplus */ + +#endif /* __GPMStatusMsgCollection_FWD_DEFINED__ */ + + +#ifndef __GPMStatusMessage_FWD_DEFINED__ +#define __GPMStatusMessage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMStatusMessage GPMStatusMessage; +#else +typedef struct GPMStatusMessage GPMStatusMessage; +#endif /* __cplusplus */ + +#endif /* __GPMStatusMessage_FWD_DEFINED__ */ + + +#ifndef __GPMTrustee_FWD_DEFINED__ +#define __GPMTrustee_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMTrustee GPMTrustee; +#else +typedef struct GPMTrustee GPMTrustee; +#endif /* __cplusplus */ + +#endif /* __GPMTrustee_FWD_DEFINED__ */ + + +#ifndef __GPMClientSideExtension_FWD_DEFINED__ +#define __GPMClientSideExtension_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMClientSideExtension GPMClientSideExtension; +#else +typedef struct GPMClientSideExtension GPMClientSideExtension; +#endif /* __cplusplus */ + +#endif /* __GPMClientSideExtension_FWD_DEFINED__ */ + + +#ifndef __GPMCSECollection_FWD_DEFINED__ +#define __GPMCSECollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMCSECollection GPMCSECollection; +#else +typedef struct GPMCSECollection GPMCSECollection; +#endif /* __cplusplus */ + +#endif /* __GPMCSECollection_FWD_DEFINED__ */ + + +#ifndef __GPMConstants_FWD_DEFINED__ +#define __GPMConstants_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMConstants GPMConstants; +#else +typedef struct GPMConstants GPMConstants; +#endif /* __cplusplus */ + +#endif /* __GPMConstants_FWD_DEFINED__ */ + + +#ifndef __GPMResult_FWD_DEFINED__ +#define __GPMResult_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMResult GPMResult; +#else +typedef struct GPMResult GPMResult; +#endif /* __cplusplus */ + +#endif /* __GPMResult_FWD_DEFINED__ */ + + +#ifndef __GPMMapEntryCollection_FWD_DEFINED__ +#define __GPMMapEntryCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMMapEntryCollection GPMMapEntryCollection; +#else +typedef struct GPMMapEntryCollection GPMMapEntryCollection; +#endif /* __cplusplus */ + +#endif /* __GPMMapEntryCollection_FWD_DEFINED__ */ + + +#ifndef __GPMMapEntry_FWD_DEFINED__ +#define __GPMMapEntry_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMMapEntry GPMMapEntry; +#else +typedef struct GPMMapEntry GPMMapEntry; +#endif /* __cplusplus */ + +#endif /* __GPMMapEntry_FWD_DEFINED__ */ + + +#ifndef __GPMMigrationTable_FWD_DEFINED__ +#define __GPMMigrationTable_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMMigrationTable GPMMigrationTable; +#else +typedef struct GPMMigrationTable GPMMigrationTable; +#endif /* __cplusplus */ + +#endif /* __GPMMigrationTable_FWD_DEFINED__ */ + + +#ifndef __GPMBackupDirEx_FWD_DEFINED__ +#define __GPMBackupDirEx_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMBackupDirEx GPMBackupDirEx; +#else +typedef struct GPMBackupDirEx GPMBackupDirEx; +#endif /* __cplusplus */ + +#endif /* __GPMBackupDirEx_FWD_DEFINED__ */ + + +#ifndef __GPMStarterGPOBackupCollection_FWD_DEFINED__ +#define __GPMStarterGPOBackupCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMStarterGPOBackupCollection GPMStarterGPOBackupCollection; +#else +typedef struct GPMStarterGPOBackupCollection GPMStarterGPOBackupCollection; +#endif /* __cplusplus */ + +#endif /* __GPMStarterGPOBackupCollection_FWD_DEFINED__ */ + + +#ifndef __GPMStarterGPOBackup_FWD_DEFINED__ +#define __GPMStarterGPOBackup_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMStarterGPOBackup GPMStarterGPOBackup; +#else +typedef struct GPMStarterGPOBackup GPMStarterGPOBackup; +#endif /* __cplusplus */ + +#endif /* __GPMStarterGPOBackup_FWD_DEFINED__ */ + + +#ifndef __GPMTemplate_FWD_DEFINED__ +#define __GPMTemplate_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMTemplate GPMTemplate; +#else +typedef struct GPMTemplate GPMTemplate; +#endif /* __cplusplus */ + +#endif /* __GPMTemplate_FWD_DEFINED__ */ + + +#ifndef __GPMStarterGPOCollection_FWD_DEFINED__ +#define __GPMStarterGPOCollection_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class GPMStarterGPOCollection GPMStarterGPOCollection; +#else +typedef struct GPMStarterGPOCollection GPMStarterGPOCollection; +#endif /* __cplusplus */ + +#endif /* __GPMStarterGPOCollection_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_gpmgmt_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_gpmgmt_0000_0000_0001 + { + rsopUnknown = 0, + rsopPlanning = ( rsopUnknown + 1 ) , + rsopLogging = ( rsopPlanning + 1 ) + } GPMRSOPMode; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_gpmgmt_0000_0000_0002 + { + permGPOApply = 0x10000, + permGPORead = 0x10100, + permGPOEdit = 0x10101, + permGPOEditSecurityAndDelete = 0x10102, + permGPOCustom = 0x10103, + permWMIFilterEdit = 0x20000, + permWMIFilterFullControl = 0x20001, + permWMIFilterCustom = 0x20002, + permSOMLink = 0x1c0000, + permSOMLogging = 0x180100, + permSOMPlanning = 0x180200, + permSOMWMICreate = 0x100300, + permSOMWMIFullControl = 0x100301, + permSOMGPOCreate = 0x100400, + permStarterGPORead = 0x30500, + permStarterGPOEdit = 0x30501, + permStarterGPOFullControl = 0x30502, + permStarterGPOCustom = 0x30503, + permSOMStarterGPOCreate = 0x100500 + } GPMPermissionType; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_gpmgmt_0000_0000_0003 + { + gpoPermissions = 0, + gpoEffectivePermissions = ( gpoPermissions + 1 ) , + gpoDisplayName = ( gpoEffectivePermissions + 1 ) , + gpoWMIFilter = ( gpoDisplayName + 1 ) , + gpoID = ( gpoWMIFilter + 1 ) , + gpoComputerExtensions = ( gpoID + 1 ) , + gpoUserExtensions = ( gpoComputerExtensions + 1 ) , + somLinks = ( gpoUserExtensions + 1 ) , + gpoDomain = ( somLinks + 1 ) , + backupMostRecent = ( gpoDomain + 1 ) , + starterGPOPermissions = ( backupMostRecent + 1 ) , + starterGPOEffectivePermissions = ( starterGPOPermissions + 1 ) , + starterGPODisplayName = ( starterGPOEffectivePermissions + 1 ) , + starterGPOID = ( starterGPODisplayName + 1 ) , + starterGPODomain = ( starterGPOID + 1 ) + } GPMSearchProperty; + +typedef /* [public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_gpmgmt_0000_0000_0004 + { + opEquals = 0, + opContains = ( opEquals + 1 ) , + opNotContains = ( opContains + 1 ) , + opNotEquals = ( opNotContains + 1 ) + } GPMSearchOperation; + +typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_gpmgmt_0000_0000_0005 + { + repXML = 0, + repHTML = ( repXML + 1 ) , + repInfraXML = ( repHTML + 1 ) , + repInfraRefreshXML = ( repInfraXML + 1 ) , + repClientHealthXML = ( repInfraRefreshXML + 1 ) , + repClientHealthRefreshXML = ( repClientHealthXML + 1 ) + } GPMReportType; + +typedef /* [public][public][public][public][public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_gpmgmt_0000_0000_0006 + { + typeUser = 0, + typeComputer = ( typeUser + 1 ) , + typeLocalGroup = ( typeComputer + 1 ) , + typeGlobalGroup = ( typeLocalGroup + 1 ) , + typeUniversalGroup = ( typeGlobalGroup + 1 ) , + typeUNCPath = ( typeUniversalGroup + 1 ) , + typeUnknown = ( typeUNCPath + 1 ) + } GPMEntryType; + +typedef /* [public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_gpmgmt_0000_0000_0007 + { + opDestinationSameAsSource = 0, + opDestinationNone = ( opDestinationSameAsSource + 1 ) , + opDestinationByRelativeName = ( opDestinationNone + 1 ) , + opDestinationSet = ( opDestinationByRelativeName + 1 ) + } GPMDestinationOption; + +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_gpmgmt_0000_0000_0008 + { + opReportLegacy = 0, + opReportComments = 1 + } GPMReportingOptions; + +#define GPM_USE_PDC ( 0 ) + +#define GPM_USE_ANYDC ( 1 ) + +#define GPM_DONOTUSE_W2KDC ( 2 ) + +#define GPM_DONOT_VALIDATEDC ( 1 ) + +#define GPM_MIGRATIONTABLE_ONLY ( 0x1 ) + +#define GPM_PROCESS_SECURITY ( 0x2 ) + +#define RSOP_NO_COMPUTER ( 0x10000 ) + +#define RSOP_NO_USER ( 0x20000 ) + +#define RSOP_PLANNING_ASSUME_SLOW_LINK ( 0x1 ) + +#define RSOP_PLANNING_ASSUME_LOOPBACK_MERGE ( 0x2 ) + +#define RSOP_PLANNING_ASSUME_LOOPBACK_REPLACE ( 0x4 ) + +#define RSOP_PLANNING_ASSUME_USER_WQLFILTER_TRUE ( 0x8 ) + +#define RSOP_PLANNING_ASSUME_COMP_WQLFILTER_TRUE ( 0x10 ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_gpmgmt_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_gpmgmt_0000_0000_v0_0_s_ifspec; + +#ifndef __IGPM_INTERFACE_DEFINED__ +#define __IGPM_INTERFACE_DEFINED__ + +/* interface IGPM */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPM; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F5FAE809-3BD6-4DA9-A65E-17665B41D763") + IGPM : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDomain( + /* [in] */ __RPC__in BSTR bstrDomain, + /* [unique][in] */ __RPC__in_opt BSTR bstrDomainController, + /* [in] */ long lDCFlags, + /* [retval][out] */ __RPC__deref_out_opt IGPMDomain **pIGPMDomain) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetBackupDir( + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [retval][out] */ __RPC__deref_out_opt IGPMBackupDir **pIGPMBackupDir) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSitesContainer( + /* [in] */ __RPC__in BSTR bstrForest, + /* [unique][in] */ __RPC__in_opt BSTR bstrDomain, + /* [unique][in] */ __RPC__in_opt BSTR bstrDomainController, + /* [in] */ long lDCFlags, + /* [retval][out] */ __RPC__deref_out_opt IGPMSitesContainer **ppIGPMSitesContainer) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetRSOP( + /* [in] */ GPMRSOPMode gpmRSoPMode, + /* [in] */ __RPC__in BSTR bstrNamespace, + /* [in] */ long lFlags, + /* [retval][out] */ __RPC__deref_out_opt IGPMRSOP **ppIGPMRSOP) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreatePermission( + /* [in] */ __RPC__in BSTR bstrTrustee, + /* [in] */ GPMPermissionType perm, + /* [in] */ VARIANT_BOOL bInheritable, + /* [retval][out] */ __RPC__deref_out_opt IGPMPermission **ppPerm) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateSearchCriteria( + /* [retval][out] */ __RPC__deref_out_opt IGPMSearchCriteria **ppIGPMSearchCriteria) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateTrustee( + /* [in] */ __RPC__in BSTR bstrTrustee, + /* [retval][out] */ __RPC__deref_out_opt IGPMTrustee **ppIGPMTrustee) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetClientSideExtensions( + /* [retval][out] */ __RPC__deref_out_opt IGPMCSECollection **ppIGPMCSECollection) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetConstants( + /* [retval][out] */ __RPC__deref_out_opt IGPMConstants **ppIGPMConstants) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetMigrationTable( + /* [in] */ __RPC__in BSTR bstrMigrationTablePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMMigrationTable **ppMigrationTable) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateMigrationTable( + /* [retval][out] */ __RPC__deref_out_opt IGPMMigrationTable **ppMigrationTable) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitializeReporting( + /* [unique][in] */ __RPC__in_opt BSTR bstrAdmPath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPM * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPM * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPM * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPM * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPM * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPM * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPM * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPM, GetDomain) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDomain )( + __RPC__in IGPM * This, + /* [in] */ __RPC__in BSTR bstrDomain, + /* [unique][in] */ __RPC__in_opt BSTR bstrDomainController, + /* [in] */ long lDCFlags, + /* [retval][out] */ __RPC__deref_out_opt IGPMDomain **pIGPMDomain); + + DECLSPEC_XFGVIRT(IGPM, GetBackupDir) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetBackupDir )( + __RPC__in IGPM * This, + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [retval][out] */ __RPC__deref_out_opt IGPMBackupDir **pIGPMBackupDir); + + DECLSPEC_XFGVIRT(IGPM, GetSitesContainer) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSitesContainer )( + __RPC__in IGPM * This, + /* [in] */ __RPC__in BSTR bstrForest, + /* [unique][in] */ __RPC__in_opt BSTR bstrDomain, + /* [unique][in] */ __RPC__in_opt BSTR bstrDomainController, + /* [in] */ long lDCFlags, + /* [retval][out] */ __RPC__deref_out_opt IGPMSitesContainer **ppIGPMSitesContainer); + + DECLSPEC_XFGVIRT(IGPM, GetRSOP) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetRSOP )( + __RPC__in IGPM * This, + /* [in] */ GPMRSOPMode gpmRSoPMode, + /* [in] */ __RPC__in BSTR bstrNamespace, + /* [in] */ long lFlags, + /* [retval][out] */ __RPC__deref_out_opt IGPMRSOP **ppIGPMRSOP); + + DECLSPEC_XFGVIRT(IGPM, CreatePermission) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreatePermission )( + __RPC__in IGPM * This, + /* [in] */ __RPC__in BSTR bstrTrustee, + /* [in] */ GPMPermissionType perm, + /* [in] */ VARIANT_BOOL bInheritable, + /* [retval][out] */ __RPC__deref_out_opt IGPMPermission **ppPerm); + + DECLSPEC_XFGVIRT(IGPM, CreateSearchCriteria) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateSearchCriteria )( + __RPC__in IGPM * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMSearchCriteria **ppIGPMSearchCriteria); + + DECLSPEC_XFGVIRT(IGPM, CreateTrustee) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTrustee )( + __RPC__in IGPM * This, + /* [in] */ __RPC__in BSTR bstrTrustee, + /* [retval][out] */ __RPC__deref_out_opt IGPMTrustee **ppIGPMTrustee); + + DECLSPEC_XFGVIRT(IGPM, GetClientSideExtensions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetClientSideExtensions )( + __RPC__in IGPM * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMCSECollection **ppIGPMCSECollection); + + DECLSPEC_XFGVIRT(IGPM, GetConstants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetConstants )( + __RPC__in IGPM * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMConstants **ppIGPMConstants); + + DECLSPEC_XFGVIRT(IGPM, GetMigrationTable) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMigrationTable )( + __RPC__in IGPM * This, + /* [in] */ __RPC__in BSTR bstrMigrationTablePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMMigrationTable **ppMigrationTable); + + DECLSPEC_XFGVIRT(IGPM, CreateMigrationTable) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateMigrationTable )( + __RPC__in IGPM * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMMigrationTable **ppMigrationTable); + + DECLSPEC_XFGVIRT(IGPM, InitializeReporting) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitializeReporting )( + __RPC__in IGPM * This, + /* [unique][in] */ __RPC__in_opt BSTR bstrAdmPath); + + END_INTERFACE + } IGPMVtbl; + + interface IGPM + { + CONST_VTBL struct IGPMVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPM_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPM_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPM_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPM_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPM_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPM_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPM_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPM_GetDomain(This,bstrDomain,bstrDomainController,lDCFlags,pIGPMDomain) \ + ( (This)->lpVtbl -> GetDomain(This,bstrDomain,bstrDomainController,lDCFlags,pIGPMDomain) ) + +#define IGPM_GetBackupDir(This,bstrBackupDir,pIGPMBackupDir) \ + ( (This)->lpVtbl -> GetBackupDir(This,bstrBackupDir,pIGPMBackupDir) ) + +#define IGPM_GetSitesContainer(This,bstrForest,bstrDomain,bstrDomainController,lDCFlags,ppIGPMSitesContainer) \ + ( (This)->lpVtbl -> GetSitesContainer(This,bstrForest,bstrDomain,bstrDomainController,lDCFlags,ppIGPMSitesContainer) ) + +#define IGPM_GetRSOP(This,gpmRSoPMode,bstrNamespace,lFlags,ppIGPMRSOP) \ + ( (This)->lpVtbl -> GetRSOP(This,gpmRSoPMode,bstrNamespace,lFlags,ppIGPMRSOP) ) + +#define IGPM_CreatePermission(This,bstrTrustee,perm,bInheritable,ppPerm) \ + ( (This)->lpVtbl -> CreatePermission(This,bstrTrustee,perm,bInheritable,ppPerm) ) + +#define IGPM_CreateSearchCriteria(This,ppIGPMSearchCriteria) \ + ( (This)->lpVtbl -> CreateSearchCriteria(This,ppIGPMSearchCriteria) ) + +#define IGPM_CreateTrustee(This,bstrTrustee,ppIGPMTrustee) \ + ( (This)->lpVtbl -> CreateTrustee(This,bstrTrustee,ppIGPMTrustee) ) + +#define IGPM_GetClientSideExtensions(This,ppIGPMCSECollection) \ + ( (This)->lpVtbl -> GetClientSideExtensions(This,ppIGPMCSECollection) ) + +#define IGPM_GetConstants(This,ppIGPMConstants) \ + ( (This)->lpVtbl -> GetConstants(This,ppIGPMConstants) ) + +#define IGPM_GetMigrationTable(This,bstrMigrationTablePath,ppMigrationTable) \ + ( (This)->lpVtbl -> GetMigrationTable(This,bstrMigrationTablePath,ppMigrationTable) ) + +#define IGPM_CreateMigrationTable(This,ppMigrationTable) \ + ( (This)->lpVtbl -> CreateMigrationTable(This,ppMigrationTable) ) + +#define IGPM_InitializeReporting(This,bstrAdmPath) \ + ( (This)->lpVtbl -> InitializeReporting(This,bstrAdmPath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPM_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMDomain_INTERFACE_DEFINED__ +#define __IGPMDomain_INTERFACE_DEFINED__ + +/* interface IGPMDomain */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMDomain; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6B21CC14-5A00-4F44-A738-FEEC8A94C7E3") + IGPMDomain : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DomainController( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Domain( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateGPO( + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppNewGPO) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetGPO( + /* [in] */ __RPC__in BSTR bstrGuid, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppGPO) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SearchGPOs( + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPOCollection **ppIGPMGPOCollection) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RestoreGPO( + /* [in] */ __RPC__in_opt IGPMBackup *pIGPMBackup, + /* [in] */ long lDCFlags, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSOM( + /* [unique][in] */ __RPC__in_opt BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOM **ppSOM) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SearchSOMs( + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOMCollection **ppIGPMSOMCollection) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetWMIFilter( + /* [in] */ __RPC__in BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilter **ppWMIFilter) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SearchWMIFilters( + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilterCollection **ppIGPMWMIFilterCollection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMDomainVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMDomain * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMDomain * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMDomain * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMDomain * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMDomain * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMDomain * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMDomain * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMDomain, get_DomainController) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainController )( + __RPC__in IGPMDomain * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMDomain, get_Domain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Domain )( + __RPC__in IGPMDomain * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMDomain, CreateGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateGPO )( + __RPC__in IGPMDomain * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppNewGPO); + + DECLSPEC_XFGVIRT(IGPMDomain, GetGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetGPO )( + __RPC__in IGPMDomain * This, + /* [in] */ __RPC__in BSTR bstrGuid, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppGPO); + + DECLSPEC_XFGVIRT(IGPMDomain, SearchGPOs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchGPOs )( + __RPC__in IGPMDomain * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPOCollection **ppIGPMGPOCollection); + + DECLSPEC_XFGVIRT(IGPMDomain, RestoreGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RestoreGPO )( + __RPC__in IGPMDomain * This, + /* [in] */ __RPC__in_opt IGPMBackup *pIGPMBackup, + /* [in] */ long lDCFlags, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMDomain, GetSOM) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSOM )( + __RPC__in IGPMDomain * This, + /* [unique][in] */ __RPC__in_opt BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOM **ppSOM); + + DECLSPEC_XFGVIRT(IGPMDomain, SearchSOMs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchSOMs )( + __RPC__in IGPMDomain * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOMCollection **ppIGPMSOMCollection); + + DECLSPEC_XFGVIRT(IGPMDomain, GetWMIFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetWMIFilter )( + __RPC__in IGPMDomain * This, + /* [in] */ __RPC__in BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilter **ppWMIFilter); + + DECLSPEC_XFGVIRT(IGPMDomain, SearchWMIFilters) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchWMIFilters )( + __RPC__in IGPMDomain * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilterCollection **ppIGPMWMIFilterCollection); + + END_INTERFACE + } IGPMDomainVtbl; + + interface IGPMDomain + { + CONST_VTBL struct IGPMDomainVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMDomain_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMDomain_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMDomain_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMDomain_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMDomain_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMDomain_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMDomain_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMDomain_get_DomainController(This,pVal) \ + ( (This)->lpVtbl -> get_DomainController(This,pVal) ) + +#define IGPMDomain_get_Domain(This,pVal) \ + ( (This)->lpVtbl -> get_Domain(This,pVal) ) + +#define IGPMDomain_CreateGPO(This,ppNewGPO) \ + ( (This)->lpVtbl -> CreateGPO(This,ppNewGPO) ) + +#define IGPMDomain_GetGPO(This,bstrGuid,ppGPO) \ + ( (This)->lpVtbl -> GetGPO(This,bstrGuid,ppGPO) ) + +#define IGPMDomain_SearchGPOs(This,pIGPMSearchCriteria,ppIGPMGPOCollection) \ + ( (This)->lpVtbl -> SearchGPOs(This,pIGPMSearchCriteria,ppIGPMGPOCollection) ) + +#define IGPMDomain_RestoreGPO(This,pIGPMBackup,lDCFlags,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> RestoreGPO(This,pIGPMBackup,lDCFlags,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMDomain_GetSOM(This,bstrPath,ppSOM) \ + ( (This)->lpVtbl -> GetSOM(This,bstrPath,ppSOM) ) + +#define IGPMDomain_SearchSOMs(This,pIGPMSearchCriteria,ppIGPMSOMCollection) \ + ( (This)->lpVtbl -> SearchSOMs(This,pIGPMSearchCriteria,ppIGPMSOMCollection) ) + +#define IGPMDomain_GetWMIFilter(This,bstrPath,ppWMIFilter) \ + ( (This)->lpVtbl -> GetWMIFilter(This,bstrPath,ppWMIFilter) ) + +#define IGPMDomain_SearchWMIFilters(This,pIGPMSearchCriteria,ppIGPMWMIFilterCollection) \ + ( (This)->lpVtbl -> SearchWMIFilters(This,pIGPMSearchCriteria,ppIGPMWMIFilterCollection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMDomain_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMBackupDir_INTERFACE_DEFINED__ +#define __IGPMBackupDir_INTERFACE_DEFINED__ + +/* interface IGPMBackupDir */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMBackupDir; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B1568BED-0A93-4ACC-810F-AFE7081019B9") + IGPMBackupDir : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BackupDirectory( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetBackup( + /* [in] */ __RPC__in BSTR bstrID, + /* [retval][out] */ __RPC__deref_out_opt IGPMBackup **ppBackup) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SearchBackups( + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMBackupCollection **ppIGPMBackupCollection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMBackupDirVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMBackupDir * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMBackupDir * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMBackupDir * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMBackupDir * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMBackupDir * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMBackupDir * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMBackupDir * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMBackupDir, get_BackupDirectory) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackupDirectory )( + __RPC__in IGPMBackupDir * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMBackupDir, GetBackup) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetBackup )( + __RPC__in IGPMBackupDir * This, + /* [in] */ __RPC__in BSTR bstrID, + /* [retval][out] */ __RPC__deref_out_opt IGPMBackup **ppBackup); + + DECLSPEC_XFGVIRT(IGPMBackupDir, SearchBackups) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchBackups )( + __RPC__in IGPMBackupDir * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMBackupCollection **ppIGPMBackupCollection); + + END_INTERFACE + } IGPMBackupDirVtbl; + + interface IGPMBackupDir + { + CONST_VTBL struct IGPMBackupDirVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMBackupDir_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMBackupDir_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMBackupDir_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMBackupDir_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMBackupDir_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMBackupDir_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMBackupDir_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMBackupDir_get_BackupDirectory(This,pVal) \ + ( (This)->lpVtbl -> get_BackupDirectory(This,pVal) ) + +#define IGPMBackupDir_GetBackup(This,bstrID,ppBackup) \ + ( (This)->lpVtbl -> GetBackup(This,bstrID,ppBackup) ) + +#define IGPMBackupDir_SearchBackups(This,pIGPMSearchCriteria,ppIGPMBackupCollection) \ + ( (This)->lpVtbl -> SearchBackups(This,pIGPMSearchCriteria,ppIGPMBackupCollection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMBackupDir_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMSitesContainer_INTERFACE_DEFINED__ +#define __IGPMSitesContainer_INTERFACE_DEFINED__ + +/* interface IGPMSitesContainer */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMSitesContainer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4725A899-2782-4D27-A6BB-D499246FFD72") + IGPMSitesContainer : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DomainController( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Domain( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Forest( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSite( + /* [in] */ __RPC__in BSTR bstrSiteName, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOM **ppSOM) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SearchSites( + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOMCollection **ppIGPMSOMCollection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMSitesContainerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMSitesContainer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMSitesContainer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMSitesContainer * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMSitesContainer * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMSitesContainer * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMSitesContainer * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMSitesContainer * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMSitesContainer, get_DomainController) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainController )( + __RPC__in IGPMSitesContainer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMSitesContainer, get_Domain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Domain )( + __RPC__in IGPMSitesContainer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMSitesContainer, get_Forest) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Forest )( + __RPC__in IGPMSitesContainer * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMSitesContainer, GetSite) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSite )( + __RPC__in IGPMSitesContainer * This, + /* [in] */ __RPC__in BSTR bstrSiteName, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOM **ppSOM); + + DECLSPEC_XFGVIRT(IGPMSitesContainer, SearchSites) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchSites )( + __RPC__in IGPMSitesContainer * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOMCollection **ppIGPMSOMCollection); + + END_INTERFACE + } IGPMSitesContainerVtbl; + + interface IGPMSitesContainer + { + CONST_VTBL struct IGPMSitesContainerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMSitesContainer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMSitesContainer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMSitesContainer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMSitesContainer_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMSitesContainer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMSitesContainer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMSitesContainer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMSitesContainer_get_DomainController(This,pVal) \ + ( (This)->lpVtbl -> get_DomainController(This,pVal) ) + +#define IGPMSitesContainer_get_Domain(This,pVal) \ + ( (This)->lpVtbl -> get_Domain(This,pVal) ) + +#define IGPMSitesContainer_get_Forest(This,pVal) \ + ( (This)->lpVtbl -> get_Forest(This,pVal) ) + +#define IGPMSitesContainer_GetSite(This,bstrSiteName,ppSOM) \ + ( (This)->lpVtbl -> GetSite(This,bstrSiteName,ppSOM) ) + +#define IGPMSitesContainer_SearchSites(This,pIGPMSearchCriteria,ppIGPMSOMCollection) \ + ( (This)->lpVtbl -> SearchSites(This,pIGPMSearchCriteria,ppIGPMSOMCollection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMSitesContainer_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMSearchCriteria_INTERFACE_DEFINED__ +#define __IGPMSearchCriteria_INTERFACE_DEFINED__ + +/* interface IGPMSearchCriteria */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMSearchCriteria; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D6F11C42-829B-48D4-83F5-3615B67DFC22") + IGPMSearchCriteria : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ GPMSearchProperty searchProperty, + /* [in] */ GPMSearchOperation searchOperation, + /* [in] */ VARIANT varValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMSearchCriteriaVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMSearchCriteria * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMSearchCriteria * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMSearchCriteria * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMSearchCriteria * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMSearchCriteria * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMSearchCriteria * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMSearchCriteria * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMSearchCriteria, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IGPMSearchCriteria * This, + /* [in] */ GPMSearchProperty searchProperty, + /* [in] */ GPMSearchOperation searchOperation, + /* [in] */ VARIANT varValue); + + END_INTERFACE + } IGPMSearchCriteriaVtbl; + + interface IGPMSearchCriteria + { + CONST_VTBL struct IGPMSearchCriteriaVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMSearchCriteria_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMSearchCriteria_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMSearchCriteria_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMSearchCriteria_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMSearchCriteria_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMSearchCriteria_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMSearchCriteria_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMSearchCriteria_Add(This,searchProperty,searchOperation,varValue) \ + ( (This)->lpVtbl -> Add(This,searchProperty,searchOperation,varValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMSearchCriteria_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMTrustee_INTERFACE_DEFINED__ +#define __IGPMTrustee_INTERFACE_DEFINED__ + +/* interface IGPMTrustee */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMTrustee; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3B466DA8-C1A4-4B2A-999A-BEFCDD56CEFB") + IGPMTrustee : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TrusteeSid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TrusteeName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TrusteeDomain( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TrusteeDSPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TrusteeType( + /* [retval][out] */ __RPC__out long *lVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMTrusteeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMTrustee * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMTrustee * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMTrustee * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMTrustee * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMTrustee * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMTrustee * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMTrustee * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMTrustee, get_TrusteeSid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TrusteeSid )( + __RPC__in IGPMTrustee * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMTrustee, get_TrusteeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TrusteeName )( + __RPC__in IGPMTrustee * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMTrustee, get_TrusteeDomain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TrusteeDomain )( + __RPC__in IGPMTrustee * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMTrustee, get_TrusteeDSPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TrusteeDSPath )( + __RPC__in IGPMTrustee * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMTrustee, get_TrusteeType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TrusteeType )( + __RPC__in IGPMTrustee * This, + /* [retval][out] */ __RPC__out long *lVal); + + END_INTERFACE + } IGPMTrusteeVtbl; + + interface IGPMTrustee + { + CONST_VTBL struct IGPMTrusteeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMTrustee_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMTrustee_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMTrustee_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMTrustee_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMTrustee_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMTrustee_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMTrustee_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMTrustee_get_TrusteeSid(This,bstrVal) \ + ( (This)->lpVtbl -> get_TrusteeSid(This,bstrVal) ) + +#define IGPMTrustee_get_TrusteeName(This,bstrVal) \ + ( (This)->lpVtbl -> get_TrusteeName(This,bstrVal) ) + +#define IGPMTrustee_get_TrusteeDomain(This,bstrVal) \ + ( (This)->lpVtbl -> get_TrusteeDomain(This,bstrVal) ) + +#define IGPMTrustee_get_TrusteeDSPath(This,pVal) \ + ( (This)->lpVtbl -> get_TrusteeDSPath(This,pVal) ) + +#define IGPMTrustee_get_TrusteeType(This,lVal) \ + ( (This)->lpVtbl -> get_TrusteeType(This,lVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMTrustee_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMPermission_INTERFACE_DEFINED__ +#define __IGPMPermission_INTERFACE_DEFINED__ + +/* interface IGPMPermission */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMPermission; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("35EBCA40-E1A1-4A02-8905-D79416FB464A") + IGPMPermission : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Inherited( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Inheritable( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Denied( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Permission( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Trustee( + /* [retval][out] */ __RPC__deref_out_opt IGPMTrustee **ppIGPMTrustee) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMPermissionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMPermission * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMPermission * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMPermission * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMPermission * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMPermission * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMPermission * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMPermission * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMPermission, get_Inherited) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Inherited )( + __RPC__in IGPMPermission * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IGPMPermission, get_Inheritable) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Inheritable )( + __RPC__in IGPMPermission * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IGPMPermission, get_Denied) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Denied )( + __RPC__in IGPMPermission * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IGPMPermission, get_Permission) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Permission )( + __RPC__in IGPMPermission * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMPermission, get_Trustee) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Trustee )( + __RPC__in IGPMPermission * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMTrustee **ppIGPMTrustee); + + END_INTERFACE + } IGPMPermissionVtbl; + + interface IGPMPermission + { + CONST_VTBL struct IGPMPermissionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMPermission_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMPermission_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMPermission_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMPermission_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMPermission_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMPermission_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMPermission_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMPermission_get_Inherited(This,pVal) \ + ( (This)->lpVtbl -> get_Inherited(This,pVal) ) + +#define IGPMPermission_get_Inheritable(This,pVal) \ + ( (This)->lpVtbl -> get_Inheritable(This,pVal) ) + +#define IGPMPermission_get_Denied(This,pVal) \ + ( (This)->lpVtbl -> get_Denied(This,pVal) ) + +#define IGPMPermission_get_Permission(This,pVal) \ + ( (This)->lpVtbl -> get_Permission(This,pVal) ) + +#define IGPMPermission_get_Trustee(This,ppIGPMTrustee) \ + ( (This)->lpVtbl -> get_Trustee(This,ppIGPMTrustee) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMPermission_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMSecurityInfo_INTERFACE_DEFINED__ +#define __IGPMSecurityInfo_INTERFACE_DEFINED__ + +/* interface IGPMSecurityInfo */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMSecurityInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B6C31ED4-1C93-4D3E-AE84-EB6D61161B60") + IGPMSecurityInfo : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppEnum) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IGPMPermission *pPerm) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ __RPC__in_opt IGPMPermission *pPerm) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveTrustee( + /* [in] */ __RPC__in BSTR bstrTrustee) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMSecurityInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMSecurityInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMSecurityInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMSecurityInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMSecurityInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMSecurityInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMSecurityInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMSecurityInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMSecurityInfo, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMSecurityInfo * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMSecurityInfo, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMSecurityInfo * This, + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMSecurityInfo, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMSecurityInfo * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppEnum); + + DECLSPEC_XFGVIRT(IGPMSecurityInfo, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IGPMSecurityInfo * This, + /* [in] */ __RPC__in_opt IGPMPermission *pPerm); + + DECLSPEC_XFGVIRT(IGPMSecurityInfo, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IGPMSecurityInfo * This, + /* [in] */ __RPC__in_opt IGPMPermission *pPerm); + + DECLSPEC_XFGVIRT(IGPMSecurityInfo, RemoveTrustee) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveTrustee )( + __RPC__in IGPMSecurityInfo * This, + /* [in] */ __RPC__in BSTR bstrTrustee); + + END_INTERFACE + } IGPMSecurityInfoVtbl; + + interface IGPMSecurityInfo + { + CONST_VTBL struct IGPMSecurityInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMSecurityInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMSecurityInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMSecurityInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMSecurityInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMSecurityInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMSecurityInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMSecurityInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMSecurityInfo_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMSecurityInfo_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMSecurityInfo_get__NewEnum(This,ppEnum) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppEnum) ) + +#define IGPMSecurityInfo_Add(This,pPerm) \ + ( (This)->lpVtbl -> Add(This,pPerm) ) + +#define IGPMSecurityInfo_Remove(This,pPerm) \ + ( (This)->lpVtbl -> Remove(This,pPerm) ) + +#define IGPMSecurityInfo_RemoveTrustee(This,bstrTrustee) \ + ( (This)->lpVtbl -> RemoveTrustee(This,bstrTrustee) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMSecurityInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMBackup_INTERFACE_DEFINED__ +#define __IGPMBackup_INTERFACE_DEFINED__ + +/* interface IGPMBackup */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMBackup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D8A16A35-3B0D-416B-8D02-4DF6F95A7119") + IGPMBackup : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GPOID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GPODomain( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GPODisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Timestamp( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Comment( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BackupDir( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReport( + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReportToFile( + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMBackupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMBackup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMBackup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMBackup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMBackup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMBackup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMBackup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMBackup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMBackup, get_ID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ID )( + __RPC__in IGPMBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMBackup, get_GPOID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GPOID )( + __RPC__in IGPMBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMBackup, get_GPODomain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GPODomain )( + __RPC__in IGPMBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMBackup, get_GPODisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GPODisplayName )( + __RPC__in IGPMBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMBackup, get_Timestamp) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Timestamp )( + __RPC__in IGPMBackup * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IGPMBackup, get_Comment) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Comment )( + __RPC__in IGPMBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMBackup, get_BackupDir) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackupDir )( + __RPC__in IGPMBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMBackup, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IGPMBackup * This); + + DECLSPEC_XFGVIRT(IGPMBackup, GenerateReport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReport )( + __RPC__in IGPMBackup * This, + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMBackup, GenerateReportToFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReportToFile )( + __RPC__in IGPMBackup * This, + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + END_INTERFACE + } IGPMBackupVtbl; + + interface IGPMBackup + { + CONST_VTBL struct IGPMBackupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMBackup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMBackup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMBackup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMBackup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMBackup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMBackup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMBackup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMBackup_get_ID(This,pVal) \ + ( (This)->lpVtbl -> get_ID(This,pVal) ) + +#define IGPMBackup_get_GPOID(This,pVal) \ + ( (This)->lpVtbl -> get_GPOID(This,pVal) ) + +#define IGPMBackup_get_GPODomain(This,pVal) \ + ( (This)->lpVtbl -> get_GPODomain(This,pVal) ) + +#define IGPMBackup_get_GPODisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_GPODisplayName(This,pVal) ) + +#define IGPMBackup_get_Timestamp(This,pVal) \ + ( (This)->lpVtbl -> get_Timestamp(This,pVal) ) + +#define IGPMBackup_get_Comment(This,pVal) \ + ( (This)->lpVtbl -> get_Comment(This,pVal) ) + +#define IGPMBackup_get_BackupDir(This,pVal) \ + ( (This)->lpVtbl -> get_BackupDir(This,pVal) ) + +#define IGPMBackup_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IGPMBackup_GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMBackup_GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMBackup_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMBackupCollection_INTERFACE_DEFINED__ +#define __IGPMBackupCollection_INTERFACE_DEFINED__ + +/* interface IGPMBackupCollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMBackupCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C786FC0F-26D8-4BAB-A745-39CA7E800CAC") + IGPMBackupCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMBackup) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMBackupCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMBackupCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMBackupCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMBackupCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMBackupCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMBackupCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMBackupCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMBackupCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMBackupCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMBackupCollection * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMBackupCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMBackupCollection * This, + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMBackupCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMBackupCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMBackup); + + END_INTERFACE + } IGPMBackupCollectionVtbl; + + interface IGPMBackupCollection + { + CONST_VTBL struct IGPMBackupCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMBackupCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMBackupCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMBackupCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMBackupCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMBackupCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMBackupCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMBackupCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMBackupCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMBackupCollection_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMBackupCollection_get__NewEnum(This,ppIGPMBackup) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppIGPMBackup) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMBackupCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMSOM_INTERFACE_DEFINED__ +#define __IGPMSOM_INTERFACE_DEFINED__ + +/* interface IGPMSOM */ +/* [unique][helpstring][dual][uuid][object] */ + +typedef /* [public][public][public][public][public] */ +enum __MIDL_IGPMSOM_0001 + { + somSite = 0, + somDomain = ( somSite + 1 ) , + somOU = ( somDomain + 1 ) + } GPMSOMType; + + +EXTERN_C const IID IID_IGPMSOM; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C0A7F09E-05A1-4F0C-8158-9E5C33684F6B") + IGPMSOM : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GPOInheritanceBlocked( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_GPOInheritanceBlocked( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateGPOLink( + /* [in] */ long lLinkPos, + /* [in] */ __RPC__in_opt IGPMGPO *pGPO, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPOLink **ppNewGPOLink) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out GPMSOMType *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetGPOLinks( + /* [retval][out] */ __RPC__deref_out_opt IGPMGPOLinksCollection **ppGPOLinks) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetInheritedGPOLinks( + /* [retval][out] */ __RPC__deref_out_opt IGPMGPOLinksCollection **ppGPOLinks) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecurityInfo( + /* [retval][out] */ __RPC__deref_out_opt IGPMSecurityInfo **ppSecurityInfo) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSecurityInfo( + /* [in] */ __RPC__in_opt IGPMSecurityInfo *pSecurityInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMSOMVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMSOM * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMSOM * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMSOM * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMSOM * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMSOM * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMSOM * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMSOM * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMSOM, get_GPOInheritanceBlocked) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GPOInheritanceBlocked )( + __RPC__in IGPMSOM * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IGPMSOM, put_GPOInheritanceBlocked) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_GPOInheritanceBlocked )( + __RPC__in IGPMSOM * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IGPMSOM, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IGPMSOM * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMSOM, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IGPMSOM * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMSOM, CreateGPOLink) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateGPOLink )( + __RPC__in IGPMSOM * This, + /* [in] */ long lLinkPos, + /* [in] */ __RPC__in_opt IGPMGPO *pGPO, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPOLink **ppNewGPOLink); + + DECLSPEC_XFGVIRT(IGPMSOM, get_Type) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IGPMSOM * This, + /* [retval][out] */ __RPC__out GPMSOMType *pVal); + + DECLSPEC_XFGVIRT(IGPMSOM, GetGPOLinks) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetGPOLinks )( + __RPC__in IGPMSOM * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPOLinksCollection **ppGPOLinks); + + DECLSPEC_XFGVIRT(IGPMSOM, GetInheritedGPOLinks) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetInheritedGPOLinks )( + __RPC__in IGPMSOM * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPOLinksCollection **ppGPOLinks); + + DECLSPEC_XFGVIRT(IGPMSOM, GetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityInfo )( + __RPC__in IGPMSOM * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMSecurityInfo **ppSecurityInfo); + + DECLSPEC_XFGVIRT(IGPMSOM, SetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurityInfo )( + __RPC__in IGPMSOM * This, + /* [in] */ __RPC__in_opt IGPMSecurityInfo *pSecurityInfo); + + END_INTERFACE + } IGPMSOMVtbl; + + interface IGPMSOM + { + CONST_VTBL struct IGPMSOMVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMSOM_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMSOM_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMSOM_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMSOM_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMSOM_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMSOM_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMSOM_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMSOM_get_GPOInheritanceBlocked(This,pVal) \ + ( (This)->lpVtbl -> get_GPOInheritanceBlocked(This,pVal) ) + +#define IGPMSOM_put_GPOInheritanceBlocked(This,newVal) \ + ( (This)->lpVtbl -> put_GPOInheritanceBlocked(This,newVal) ) + +#define IGPMSOM_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) + +#define IGPMSOM_get_Path(This,pVal) \ + ( (This)->lpVtbl -> get_Path(This,pVal) ) + +#define IGPMSOM_CreateGPOLink(This,lLinkPos,pGPO,ppNewGPOLink) \ + ( (This)->lpVtbl -> CreateGPOLink(This,lLinkPos,pGPO,ppNewGPOLink) ) + +#define IGPMSOM_get_Type(This,pVal) \ + ( (This)->lpVtbl -> get_Type(This,pVal) ) + +#define IGPMSOM_GetGPOLinks(This,ppGPOLinks) \ + ( (This)->lpVtbl -> GetGPOLinks(This,ppGPOLinks) ) + +#define IGPMSOM_GetInheritedGPOLinks(This,ppGPOLinks) \ + ( (This)->lpVtbl -> GetInheritedGPOLinks(This,ppGPOLinks) ) + +#define IGPMSOM_GetSecurityInfo(This,ppSecurityInfo) \ + ( (This)->lpVtbl -> GetSecurityInfo(This,ppSecurityInfo) ) + +#define IGPMSOM_SetSecurityInfo(This,pSecurityInfo) \ + ( (This)->lpVtbl -> SetSecurityInfo(This,pSecurityInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMSOM_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMSOMCollection_INTERFACE_DEFINED__ +#define __IGPMSOMCollection_INTERFACE_DEFINED__ + +/* interface IGPMSOMCollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMSOMCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ADC1688E-00E4-4495-ABBA-BED200DF0CAB") + IGPMSOMCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMSOM) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMSOMCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMSOMCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMSOMCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMSOMCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMSOMCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMSOMCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMSOMCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMSOMCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMSOMCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMSOMCollection * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMSOMCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMSOMCollection * This, + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMSOMCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMSOMCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMSOM); + + END_INTERFACE + } IGPMSOMCollectionVtbl; + + interface IGPMSOMCollection + { + CONST_VTBL struct IGPMSOMCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMSOMCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMSOMCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMSOMCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMSOMCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMSOMCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMSOMCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMSOMCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMSOMCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMSOMCollection_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMSOMCollection_get__NewEnum(This,ppIGPMSOM) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppIGPMSOM) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMSOMCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMWMIFilter_INTERFACE_DEFINED__ +#define __IGPMWMIFilter_INTERFACE_DEFINED__ + +/* interface IGPMWMIFilter */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMWMIFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EF2FF9B4-3C27-459A-B979-038305CEC75D") + IGPMWMIFilter : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Name( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetQueryList( + /* [retval][out] */ __RPC__out VARIANT *pQryList) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecurityInfo( + /* [retval][out] */ __RPC__deref_out_opt IGPMSecurityInfo **ppSecurityInfo) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSecurityInfo( + /* [in] */ __RPC__in_opt IGPMSecurityInfo *pSecurityInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMWMIFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMWMIFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMWMIFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMWMIFilter * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMWMIFilter * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMWMIFilter * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMWMIFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMWMIFilter * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMWMIFilter, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IGPMWMIFilter * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMWMIFilter, put_Name) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Name )( + __RPC__in IGPMWMIFilter * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IGPMWMIFilter, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IGPMWMIFilter * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMWMIFilter, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IGPMWMIFilter * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IGPMWMIFilter, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IGPMWMIFilter * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMWMIFilter, GetQueryList) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetQueryList )( + __RPC__in IGPMWMIFilter * This, + /* [retval][out] */ __RPC__out VARIANT *pQryList); + + DECLSPEC_XFGVIRT(IGPMWMIFilter, GetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityInfo )( + __RPC__in IGPMWMIFilter * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMSecurityInfo **ppSecurityInfo); + + DECLSPEC_XFGVIRT(IGPMWMIFilter, SetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurityInfo )( + __RPC__in IGPMWMIFilter * This, + /* [in] */ __RPC__in_opt IGPMSecurityInfo *pSecurityInfo); + + END_INTERFACE + } IGPMWMIFilterVtbl; + + interface IGPMWMIFilter + { + CONST_VTBL struct IGPMWMIFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMWMIFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMWMIFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMWMIFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMWMIFilter_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMWMIFilter_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMWMIFilter_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMWMIFilter_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMWMIFilter_get_Path(This,pVal) \ + ( (This)->lpVtbl -> get_Path(This,pVal) ) + +#define IGPMWMIFilter_put_Name(This,newVal) \ + ( (This)->lpVtbl -> put_Name(This,newVal) ) + +#define IGPMWMIFilter_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) + +#define IGPMWMIFilter_put_Description(This,newVal) \ + ( (This)->lpVtbl -> put_Description(This,newVal) ) + +#define IGPMWMIFilter_get_Description(This,pVal) \ + ( (This)->lpVtbl -> get_Description(This,pVal) ) + +#define IGPMWMIFilter_GetQueryList(This,pQryList) \ + ( (This)->lpVtbl -> GetQueryList(This,pQryList) ) + +#define IGPMWMIFilter_GetSecurityInfo(This,ppSecurityInfo) \ + ( (This)->lpVtbl -> GetSecurityInfo(This,ppSecurityInfo) ) + +#define IGPMWMIFilter_SetSecurityInfo(This,pSecurityInfo) \ + ( (This)->lpVtbl -> SetSecurityInfo(This,pSecurityInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMWMIFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMWMIFilterCollection_INTERFACE_DEFINED__ +#define __IGPMWMIFilterCollection_INTERFACE_DEFINED__ + +/* interface IGPMWMIFilterCollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMWMIFilterCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5782D582-1A36-4661-8A94-C3C32551945B") + IGPMWMIFilterCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMWMIFilterCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMWMIFilterCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMWMIFilterCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMWMIFilterCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMWMIFilterCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMWMIFilterCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMWMIFilterCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMWMIFilterCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMWMIFilterCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMWMIFilterCollection * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMWMIFilterCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMWMIFilterCollection * This, + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMWMIFilterCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMWMIFilterCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **pVal); + + END_INTERFACE + } IGPMWMIFilterCollectionVtbl; + + interface IGPMWMIFilterCollection + { + CONST_VTBL struct IGPMWMIFilterCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMWMIFilterCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMWMIFilterCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMWMIFilterCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMWMIFilterCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMWMIFilterCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMWMIFilterCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMWMIFilterCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMWMIFilterCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMWMIFilterCollection_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMWMIFilterCollection_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMWMIFilterCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMRSOP_INTERFACE_DEFINED__ +#define __IGPMRSOP_INTERFACE_DEFINED__ + +/* interface IGPMRSOP */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMRSOP; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("49ED785A-3237-4FF2-B1F0-FDF5A8D5A1EE") + IGPMRSOP : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Mode( + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Namespace( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LoggingComputer( + /* [in] */ __RPC__in BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LoggingComputer( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LoggingUser( + /* [in] */ __RPC__in BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LoggingUser( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LoggingFlags( + /* [in] */ long lVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LoggingFlags( + /* [retval][out] */ __RPC__out long *lVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningFlags( + /* [in] */ long lVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningFlags( + /* [retval][out] */ __RPC__out long *lVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningDomainController( + /* [in] */ __RPC__in BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningDomainController( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningSiteName( + /* [in] */ __RPC__in BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningSiteName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningUser( + /* [in] */ __RPC__in BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningUser( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningUserSOM( + /* [in] */ __RPC__in BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningUserSOM( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningUserWMIFilters( + /* [in] */ VARIANT varVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningUserWMIFilters( + /* [retval][out] */ __RPC__out VARIANT *varVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningUserSecurityGroups( + /* [in] */ VARIANT varVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningUserSecurityGroups( + /* [retval][out] */ __RPC__out VARIANT *varVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningComputer( + /* [in] */ __RPC__in BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningComputer( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningComputerSOM( + /* [in] */ __RPC__in BSTR bstrVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningComputerSOM( + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningComputerWMIFilters( + /* [in] */ VARIANT varVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningComputerWMIFilters( + /* [retval][out] */ __RPC__out VARIANT *varVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlanningComputerSecurityGroups( + /* [in] */ VARIANT varVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlanningComputerSecurityGroups( + /* [retval][out] */ __RPC__out VARIANT *varVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LoggingEnumerateUsers( + /* [retval][out] */ __RPC__out VARIANT *varVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateQueryResults( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReleaseQueryResults( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReport( + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReportToFile( + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMRSOPVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMRSOP * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMRSOP * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMRSOP * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMRSOP * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMRSOP * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMRSOP * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMRSOP * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_Mode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Mode )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_Namespace) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Namespace )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_LoggingComputer) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LoggingComputer )( + __RPC__in IGPMRSOP * This, + /* [in] */ __RPC__in BSTR bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_LoggingComputer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LoggingComputer )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_LoggingUser) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LoggingUser )( + __RPC__in IGPMRSOP * This, + /* [in] */ __RPC__in BSTR bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_LoggingUser) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LoggingUser )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_LoggingFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LoggingFlags )( + __RPC__in IGPMRSOP * This, + /* [in] */ long lVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_LoggingFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LoggingFlags )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__out long *lVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningFlags )( + __RPC__in IGPMRSOP * This, + /* [in] */ long lVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningFlags )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__out long *lVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningDomainController) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningDomainController )( + __RPC__in IGPMRSOP * This, + /* [in] */ __RPC__in BSTR bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningDomainController) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningDomainController )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningSiteName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningSiteName )( + __RPC__in IGPMRSOP * This, + /* [in] */ __RPC__in BSTR bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningSiteName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningSiteName )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningUser) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningUser )( + __RPC__in IGPMRSOP * This, + /* [in] */ __RPC__in BSTR bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningUser) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningUser )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningUserSOM) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningUserSOM )( + __RPC__in IGPMRSOP * This, + /* [in] */ __RPC__in BSTR bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningUserSOM) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningUserSOM )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningUserWMIFilters) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningUserWMIFilters )( + __RPC__in IGPMRSOP * This, + /* [in] */ VARIANT varVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningUserWMIFilters) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningUserWMIFilters )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__out VARIANT *varVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningUserSecurityGroups) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningUserSecurityGroups )( + __RPC__in IGPMRSOP * This, + /* [in] */ VARIANT varVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningUserSecurityGroups) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningUserSecurityGroups )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__out VARIANT *varVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningComputer) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningComputer )( + __RPC__in IGPMRSOP * This, + /* [in] */ __RPC__in BSTR bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningComputer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningComputer )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningComputerSOM) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningComputerSOM )( + __RPC__in IGPMRSOP * This, + /* [in] */ __RPC__in BSTR bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningComputerSOM) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningComputerSOM )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *bstrVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningComputerWMIFilters) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningComputerWMIFilters )( + __RPC__in IGPMRSOP * This, + /* [in] */ VARIANT varVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningComputerWMIFilters) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningComputerWMIFilters )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__out VARIANT *varVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, put_PlanningComputerSecurityGroups) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlanningComputerSecurityGroups )( + __RPC__in IGPMRSOP * This, + /* [in] */ VARIANT varVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, get_PlanningComputerSecurityGroups) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlanningComputerSecurityGroups )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__out VARIANT *varVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, LoggingEnumerateUsers) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LoggingEnumerateUsers )( + __RPC__in IGPMRSOP * This, + /* [retval][out] */ __RPC__out VARIANT *varVal); + + DECLSPEC_XFGVIRT(IGPMRSOP, CreateQueryResults) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateQueryResults )( + __RPC__in IGPMRSOP * This); + + DECLSPEC_XFGVIRT(IGPMRSOP, ReleaseQueryResults) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReleaseQueryResults )( + __RPC__in IGPMRSOP * This); + + DECLSPEC_XFGVIRT(IGPMRSOP, GenerateReport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReport )( + __RPC__in IGPMRSOP * This, + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMRSOP, GenerateReportToFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReportToFile )( + __RPC__in IGPMRSOP * This, + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + END_INTERFACE + } IGPMRSOPVtbl; + + interface IGPMRSOP + { + CONST_VTBL struct IGPMRSOPVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMRSOP_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMRSOP_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMRSOP_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMRSOP_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMRSOP_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMRSOP_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMRSOP_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMRSOP_get_Mode(This,pVal) \ + ( (This)->lpVtbl -> get_Mode(This,pVal) ) + +#define IGPMRSOP_get_Namespace(This,bstrVal) \ + ( (This)->lpVtbl -> get_Namespace(This,bstrVal) ) + +#define IGPMRSOP_put_LoggingComputer(This,bstrVal) \ + ( (This)->lpVtbl -> put_LoggingComputer(This,bstrVal) ) + +#define IGPMRSOP_get_LoggingComputer(This,bstrVal) \ + ( (This)->lpVtbl -> get_LoggingComputer(This,bstrVal) ) + +#define IGPMRSOP_put_LoggingUser(This,bstrVal) \ + ( (This)->lpVtbl -> put_LoggingUser(This,bstrVal) ) + +#define IGPMRSOP_get_LoggingUser(This,bstrVal) \ + ( (This)->lpVtbl -> get_LoggingUser(This,bstrVal) ) + +#define IGPMRSOP_put_LoggingFlags(This,lVal) \ + ( (This)->lpVtbl -> put_LoggingFlags(This,lVal) ) + +#define IGPMRSOP_get_LoggingFlags(This,lVal) \ + ( (This)->lpVtbl -> get_LoggingFlags(This,lVal) ) + +#define IGPMRSOP_put_PlanningFlags(This,lVal) \ + ( (This)->lpVtbl -> put_PlanningFlags(This,lVal) ) + +#define IGPMRSOP_get_PlanningFlags(This,lVal) \ + ( (This)->lpVtbl -> get_PlanningFlags(This,lVal) ) + +#define IGPMRSOP_put_PlanningDomainController(This,bstrVal) \ + ( (This)->lpVtbl -> put_PlanningDomainController(This,bstrVal) ) + +#define IGPMRSOP_get_PlanningDomainController(This,bstrVal) \ + ( (This)->lpVtbl -> get_PlanningDomainController(This,bstrVal) ) + +#define IGPMRSOP_put_PlanningSiteName(This,bstrVal) \ + ( (This)->lpVtbl -> put_PlanningSiteName(This,bstrVal) ) + +#define IGPMRSOP_get_PlanningSiteName(This,bstrVal) \ + ( (This)->lpVtbl -> get_PlanningSiteName(This,bstrVal) ) + +#define IGPMRSOP_put_PlanningUser(This,bstrVal) \ + ( (This)->lpVtbl -> put_PlanningUser(This,bstrVal) ) + +#define IGPMRSOP_get_PlanningUser(This,bstrVal) \ + ( (This)->lpVtbl -> get_PlanningUser(This,bstrVal) ) + +#define IGPMRSOP_put_PlanningUserSOM(This,bstrVal) \ + ( (This)->lpVtbl -> put_PlanningUserSOM(This,bstrVal) ) + +#define IGPMRSOP_get_PlanningUserSOM(This,bstrVal) \ + ( (This)->lpVtbl -> get_PlanningUserSOM(This,bstrVal) ) + +#define IGPMRSOP_put_PlanningUserWMIFilters(This,varVal) \ + ( (This)->lpVtbl -> put_PlanningUserWMIFilters(This,varVal) ) + +#define IGPMRSOP_get_PlanningUserWMIFilters(This,varVal) \ + ( (This)->lpVtbl -> get_PlanningUserWMIFilters(This,varVal) ) + +#define IGPMRSOP_put_PlanningUserSecurityGroups(This,varVal) \ + ( (This)->lpVtbl -> put_PlanningUserSecurityGroups(This,varVal) ) + +#define IGPMRSOP_get_PlanningUserSecurityGroups(This,varVal) \ + ( (This)->lpVtbl -> get_PlanningUserSecurityGroups(This,varVal) ) + +#define IGPMRSOP_put_PlanningComputer(This,bstrVal) \ + ( (This)->lpVtbl -> put_PlanningComputer(This,bstrVal) ) + +#define IGPMRSOP_get_PlanningComputer(This,bstrVal) \ + ( (This)->lpVtbl -> get_PlanningComputer(This,bstrVal) ) + +#define IGPMRSOP_put_PlanningComputerSOM(This,bstrVal) \ + ( (This)->lpVtbl -> put_PlanningComputerSOM(This,bstrVal) ) + +#define IGPMRSOP_get_PlanningComputerSOM(This,bstrVal) \ + ( (This)->lpVtbl -> get_PlanningComputerSOM(This,bstrVal) ) + +#define IGPMRSOP_put_PlanningComputerWMIFilters(This,varVal) \ + ( (This)->lpVtbl -> put_PlanningComputerWMIFilters(This,varVal) ) + +#define IGPMRSOP_get_PlanningComputerWMIFilters(This,varVal) \ + ( (This)->lpVtbl -> get_PlanningComputerWMIFilters(This,varVal) ) + +#define IGPMRSOP_put_PlanningComputerSecurityGroups(This,varVal) \ + ( (This)->lpVtbl -> put_PlanningComputerSecurityGroups(This,varVal) ) + +#define IGPMRSOP_get_PlanningComputerSecurityGroups(This,varVal) \ + ( (This)->lpVtbl -> get_PlanningComputerSecurityGroups(This,varVal) ) + +#define IGPMRSOP_LoggingEnumerateUsers(This,varVal) \ + ( (This)->lpVtbl -> LoggingEnumerateUsers(This,varVal) ) + +#define IGPMRSOP_CreateQueryResults(This) \ + ( (This)->lpVtbl -> CreateQueryResults(This) ) + +#define IGPMRSOP_ReleaseQueryResults(This) \ + ( (This)->lpVtbl -> ReleaseQueryResults(This) ) + +#define IGPMRSOP_GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMRSOP_GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMRSOP_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMGPO_INTERFACE_DEFINED__ +#define __IGPMGPO_INTERFACE_DEFINED__ + +/* interface IGPMGPO */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMGPO; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("58CC4352-1CA3-48E5-9864-1DA4D6E0D60F") + IGPMGPO : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DisplayName( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DomainName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CreationTime( + /* [retval][out] */ __RPC__out DATE *pDate) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ModificationTime( + /* [retval][out] */ __RPC__out DATE *pDate) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UserDSVersionNumber( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ComputerDSVersionNumber( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UserSysvolVersionNumber( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ComputerSysvolVersionNumber( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetWMIFilter( + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilter **ppIGPMWMIFilter) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetWMIFilter( + /* [in] */ __RPC__in_opt IGPMWMIFilter *pIGPMWMIFilter) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetUserEnabled( + /* [in] */ VARIANT_BOOL vbEnabled) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetComputerEnabled( + /* [in] */ VARIANT_BOOL vbEnabled) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsUserEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsComputerEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecurityInfo( + /* [retval][out] */ __RPC__deref_out_opt IGPMSecurityInfo **ppSecurityInfo) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSecurityInfo( + /* [in] */ __RPC__in_opt IGPMSecurityInfo *pSecurityInfo) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Backup( + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [in] */ __RPC__in BSTR bstrComment, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Import( + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IGPMBackup *pIGPMBackup, + /* [optional][in] */ __RPC__in VARIANT *pvarMigrationTable, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReport( + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReportToFile( + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyTo( + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IGPMDomain *pIGPMDomain, + /* [optional][in] */ __RPC__in VARIANT *pvarNewDisplayName, + /* [optional][in] */ __RPC__in VARIANT *pvarMigrationTable, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSecurityDescriptor( + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IDispatch *pSD) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecurityDescriptor( + /* [in] */ long lFlags, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppSD) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsACLConsistent( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbConsistent) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MakeACLConsistent( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMGPOVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMGPO * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMGPO * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMGPO * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMGPO * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMGPO * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMGPO * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMGPO * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMGPO, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, put_DisplayName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayName )( + __RPC__in IGPMGPO * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ID )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_DomainName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainName )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ModificationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModificationTime )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(IGPMGPO, get_UserDSVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDSVersionNumber )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ComputerDSVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerDSVersionNumber )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_UserSysvolVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSysvolVersionNumber )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ComputerSysvolVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerSysvolVersionNumber )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, GetWMIFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetWMIFilter )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilter **ppIGPMWMIFilter); + + DECLSPEC_XFGVIRT(IGPMGPO, SetWMIFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetWMIFilter )( + __RPC__in IGPMGPO * This, + /* [in] */ __RPC__in_opt IGPMWMIFilter *pIGPMWMIFilter); + + DECLSPEC_XFGVIRT(IGPMGPO, SetUserEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetUserEnabled )( + __RPC__in IGPMGPO * This, + /* [in] */ VARIANT_BOOL vbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, SetComputerEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetComputerEnabled )( + __RPC__in IGPMGPO * This, + /* [in] */ VARIANT_BOOL vbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, IsUserEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsUserEnabled )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, IsComputerEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsComputerEnabled )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, GetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityInfo )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMSecurityInfo **ppSecurityInfo); + + DECLSPEC_XFGVIRT(IGPMGPO, SetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurityInfo )( + __RPC__in IGPMGPO * This, + /* [in] */ __RPC__in_opt IGPMSecurityInfo *pSecurityInfo); + + DECLSPEC_XFGVIRT(IGPMGPO, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IGPMGPO * This); + + DECLSPEC_XFGVIRT(IGPMGPO, Backup) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Backup )( + __RPC__in IGPMGPO * This, + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [in] */ __RPC__in BSTR bstrComment, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, Import) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Import )( + __RPC__in IGPMGPO * This, + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IGPMBackup *pIGPMBackup, + /* [optional][in] */ __RPC__in VARIANT *pvarMigrationTable, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, GenerateReport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReport )( + __RPC__in IGPMGPO * This, + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, GenerateReportToFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReportToFile )( + __RPC__in IGPMGPO * This, + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, CopyTo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )( + __RPC__in IGPMGPO * This, + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IGPMDomain *pIGPMDomain, + /* [optional][in] */ __RPC__in VARIANT *pvarNewDisplayName, + /* [optional][in] */ __RPC__in VARIANT *pvarMigrationTable, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, SetSecurityDescriptor) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurityDescriptor )( + __RPC__in IGPMGPO * This, + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IDispatch *pSD); + + DECLSPEC_XFGVIRT(IGPMGPO, GetSecurityDescriptor) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityDescriptor )( + __RPC__in IGPMGPO * This, + /* [in] */ long lFlags, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppSD); + + DECLSPEC_XFGVIRT(IGPMGPO, IsACLConsistent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsACLConsistent )( + __RPC__in IGPMGPO * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbConsistent); + + DECLSPEC_XFGVIRT(IGPMGPO, MakeACLConsistent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MakeACLConsistent )( + __RPC__in IGPMGPO * This); + + END_INTERFACE + } IGPMGPOVtbl; + + interface IGPMGPO + { + CONST_VTBL struct IGPMGPOVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMGPO_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMGPO_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMGPO_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMGPO_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMGPO_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMGPO_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMGPO_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMGPO_get_DisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_DisplayName(This,pVal) ) + +#define IGPMGPO_put_DisplayName(This,newVal) \ + ( (This)->lpVtbl -> put_DisplayName(This,newVal) ) + +#define IGPMGPO_get_Path(This,pVal) \ + ( (This)->lpVtbl -> get_Path(This,pVal) ) + +#define IGPMGPO_get_ID(This,pVal) \ + ( (This)->lpVtbl -> get_ID(This,pVal) ) + +#define IGPMGPO_get_DomainName(This,pVal) \ + ( (This)->lpVtbl -> get_DomainName(This,pVal) ) + +#define IGPMGPO_get_CreationTime(This,pDate) \ + ( (This)->lpVtbl -> get_CreationTime(This,pDate) ) + +#define IGPMGPO_get_ModificationTime(This,pDate) \ + ( (This)->lpVtbl -> get_ModificationTime(This,pDate) ) + +#define IGPMGPO_get_UserDSVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_UserDSVersionNumber(This,pVal) ) + +#define IGPMGPO_get_ComputerDSVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_ComputerDSVersionNumber(This,pVal) ) + +#define IGPMGPO_get_UserSysvolVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_UserSysvolVersionNumber(This,pVal) ) + +#define IGPMGPO_get_ComputerSysvolVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_ComputerSysvolVersionNumber(This,pVal) ) + +#define IGPMGPO_GetWMIFilter(This,ppIGPMWMIFilter) \ + ( (This)->lpVtbl -> GetWMIFilter(This,ppIGPMWMIFilter) ) + +#define IGPMGPO_SetWMIFilter(This,pIGPMWMIFilter) \ + ( (This)->lpVtbl -> SetWMIFilter(This,pIGPMWMIFilter) ) + +#define IGPMGPO_SetUserEnabled(This,vbEnabled) \ + ( (This)->lpVtbl -> SetUserEnabled(This,vbEnabled) ) + +#define IGPMGPO_SetComputerEnabled(This,vbEnabled) \ + ( (This)->lpVtbl -> SetComputerEnabled(This,vbEnabled) ) + +#define IGPMGPO_IsUserEnabled(This,pvbEnabled) \ + ( (This)->lpVtbl -> IsUserEnabled(This,pvbEnabled) ) + +#define IGPMGPO_IsComputerEnabled(This,pvbEnabled) \ + ( (This)->lpVtbl -> IsComputerEnabled(This,pvbEnabled) ) + +#define IGPMGPO_GetSecurityInfo(This,ppSecurityInfo) \ + ( (This)->lpVtbl -> GetSecurityInfo(This,ppSecurityInfo) ) + +#define IGPMGPO_SetSecurityInfo(This,pSecurityInfo) \ + ( (This)->lpVtbl -> SetSecurityInfo(This,pSecurityInfo) ) + +#define IGPMGPO_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IGPMGPO_Backup(This,bstrBackupDir,bstrComment,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> Backup(This,bstrBackupDir,bstrComment,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO_Import(This,lFlags,pIGPMBackup,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> Import(This,lFlags,pIGPMBackup,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO_GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO_GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) ) + +#define IGPMGPO_CopyTo(This,lFlags,pIGPMDomain,pvarNewDisplayName,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> CopyTo(This,lFlags,pIGPMDomain,pvarNewDisplayName,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO_SetSecurityDescriptor(This,lFlags,pSD) \ + ( (This)->lpVtbl -> SetSecurityDescriptor(This,lFlags,pSD) ) + +#define IGPMGPO_GetSecurityDescriptor(This,lFlags,ppSD) \ + ( (This)->lpVtbl -> GetSecurityDescriptor(This,lFlags,ppSD) ) + +#define IGPMGPO_IsACLConsistent(This,pvbConsistent) \ + ( (This)->lpVtbl -> IsACLConsistent(This,pvbConsistent) ) + +#define IGPMGPO_MakeACLConsistent(This) \ + ( (This)->lpVtbl -> MakeACLConsistent(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMGPO_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMGPOCollection_INTERFACE_DEFINED__ +#define __IGPMGPOCollection_INTERFACE_DEFINED__ + +/* interface IGPMGPOCollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMGPOCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F0F0D5CF-70CA-4C39-9E29-B642F8726C01") + IGPMGPOCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMGPOs) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMGPOCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMGPOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMGPOCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMGPOCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMGPOCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMGPOCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMGPOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMGPOCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMGPOCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMGPOCollection * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPOCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMGPOCollection * This, + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMGPOCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMGPOCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMGPOs); + + END_INTERFACE + } IGPMGPOCollectionVtbl; + + interface IGPMGPOCollection + { + CONST_VTBL struct IGPMGPOCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMGPOCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMGPOCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMGPOCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMGPOCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMGPOCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMGPOCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMGPOCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMGPOCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMGPOCollection_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMGPOCollection_get__NewEnum(This,ppIGPMGPOs) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppIGPMGPOs) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMGPOCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMGPOLink_INTERFACE_DEFINED__ +#define __IGPMGPOLink_INTERFACE_DEFINED__ + +/* interface IGPMGPOLink */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMGPOLink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("434B99BD-5DE7-478A-809C-C251721DF70C") + IGPMGPOLink : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GPOID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_GPODomain( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Enabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Enabled( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Enforced( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Enforced( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SOMLinkOrder( + /* [retval][out] */ __RPC__out long *lVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SOM( + /* [retval][out] */ __RPC__deref_out_opt IGPMSOM **ppIGPMSOM) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMGPOLinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMGPOLink * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMGPOLink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMGPOLink * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMGPOLink * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMGPOLink * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMGPOLink * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMGPOLink * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMGPOLink, get_GPOID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GPOID )( + __RPC__in IGPMGPOLink * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPOLink, get_GPODomain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_GPODomain )( + __RPC__in IGPMGPOLink * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPOLink, get_Enabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )( + __RPC__in IGPMGPOLink * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IGPMGPOLink, put_Enabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enabled )( + __RPC__in IGPMGPOLink * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IGPMGPOLink, get_Enforced) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Enforced )( + __RPC__in IGPMGPOLink * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IGPMGPOLink, put_Enforced) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Enforced )( + __RPC__in IGPMGPOLink * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IGPMGPOLink, get_SOMLinkOrder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SOMLinkOrder )( + __RPC__in IGPMGPOLink * This, + /* [retval][out] */ __RPC__out long *lVal); + + DECLSPEC_XFGVIRT(IGPMGPOLink, get_SOM) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SOM )( + __RPC__in IGPMGPOLink * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOM **ppIGPMSOM); + + DECLSPEC_XFGVIRT(IGPMGPOLink, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IGPMGPOLink * This); + + END_INTERFACE + } IGPMGPOLinkVtbl; + + interface IGPMGPOLink + { + CONST_VTBL struct IGPMGPOLinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMGPOLink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMGPOLink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMGPOLink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMGPOLink_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMGPOLink_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMGPOLink_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMGPOLink_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMGPOLink_get_GPOID(This,pVal) \ + ( (This)->lpVtbl -> get_GPOID(This,pVal) ) + +#define IGPMGPOLink_get_GPODomain(This,pVal) \ + ( (This)->lpVtbl -> get_GPODomain(This,pVal) ) + +#define IGPMGPOLink_get_Enabled(This,pVal) \ + ( (This)->lpVtbl -> get_Enabled(This,pVal) ) + +#define IGPMGPOLink_put_Enabled(This,newVal) \ + ( (This)->lpVtbl -> put_Enabled(This,newVal) ) + +#define IGPMGPOLink_get_Enforced(This,pVal) \ + ( (This)->lpVtbl -> get_Enforced(This,pVal) ) + +#define IGPMGPOLink_put_Enforced(This,newVal) \ + ( (This)->lpVtbl -> put_Enforced(This,newVal) ) + +#define IGPMGPOLink_get_SOMLinkOrder(This,lVal) \ + ( (This)->lpVtbl -> get_SOMLinkOrder(This,lVal) ) + +#define IGPMGPOLink_get_SOM(This,ppIGPMSOM) \ + ( (This)->lpVtbl -> get_SOM(This,ppIGPMSOM) ) + +#define IGPMGPOLink_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMGPOLink_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMGPOLinksCollection_INTERFACE_DEFINED__ +#define __IGPMGPOLinksCollection_INTERFACE_DEFINED__ + +/* interface IGPMGPOLinksCollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMGPOLinksCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("189D7B68-16BD-4D0D-A2EC-2E6AA2288C7F") + IGPMGPOLinksCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMLinks) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMGPOLinksCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMGPOLinksCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMGPOLinksCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMGPOLinksCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMGPOLinksCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMGPOLinksCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMGPOLinksCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMGPOLinksCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMGPOLinksCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMGPOLinksCollection * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPOLinksCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMGPOLinksCollection * This, + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMGPOLinksCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMGPOLinksCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMLinks); + + END_INTERFACE + } IGPMGPOLinksCollectionVtbl; + + interface IGPMGPOLinksCollection + { + CONST_VTBL struct IGPMGPOLinksCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMGPOLinksCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMGPOLinksCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMGPOLinksCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMGPOLinksCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMGPOLinksCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMGPOLinksCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMGPOLinksCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMGPOLinksCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMGPOLinksCollection_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMGPOLinksCollection_get__NewEnum(This,ppIGPMLinks) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppIGPMLinks) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMGPOLinksCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMCSECollection_INTERFACE_DEFINED__ +#define __IGPMCSECollection_INTERFACE_DEFINED__ + +/* interface IGPMCSECollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMCSECollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2E52A97D-0A4A-4A6F-85DB-201622455DA0") + IGPMCSECollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMCSEs) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMCSECollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMCSECollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMCSECollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMCSECollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMCSECollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMCSECollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMCSECollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMCSECollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMCSECollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMCSECollection * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMCSECollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMCSECollection * This, + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMCSECollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMCSECollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMCSEs); + + END_INTERFACE + } IGPMCSECollectionVtbl; + + interface IGPMCSECollection + { + CONST_VTBL struct IGPMCSECollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMCSECollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMCSECollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMCSECollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMCSECollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMCSECollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMCSECollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMCSECollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMCSECollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMCSECollection_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMCSECollection_get__NewEnum(This,ppIGPMCSEs) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppIGPMCSEs) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMCSECollection_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMClientSideExtension_INTERFACE_DEFINED__ +#define __IGPMClientSideExtension_INTERFACE_DEFINED__ + +/* interface IGPMClientSideExtension */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMClientSideExtension; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("69DA7488-B8DB-415E-9266-901BE4D49928") + IGPMClientSideExtension : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsUserEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsComputerEnabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMClientSideExtensionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMClientSideExtension * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMClientSideExtension * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMClientSideExtension * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMClientSideExtension * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMClientSideExtension * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMClientSideExtension * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMClientSideExtension * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMClientSideExtension, get_ID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ID )( + __RPC__in IGPMClientSideExtension * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMClientSideExtension, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IGPMClientSideExtension * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMClientSideExtension, IsUserEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsUserEnabled )( + __RPC__in IGPMClientSideExtension * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled); + + DECLSPEC_XFGVIRT(IGPMClientSideExtension, IsComputerEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsComputerEnabled )( + __RPC__in IGPMClientSideExtension * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled); + + END_INTERFACE + } IGPMClientSideExtensionVtbl; + + interface IGPMClientSideExtension + { + CONST_VTBL struct IGPMClientSideExtensionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMClientSideExtension_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMClientSideExtension_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMClientSideExtension_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMClientSideExtension_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMClientSideExtension_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMClientSideExtension_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMClientSideExtension_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMClientSideExtension_get_ID(This,pVal) \ + ( (This)->lpVtbl -> get_ID(This,pVal) ) + +#define IGPMClientSideExtension_get_DisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_DisplayName(This,pVal) ) + +#define IGPMClientSideExtension_IsUserEnabled(This,pvbEnabled) \ + ( (This)->lpVtbl -> IsUserEnabled(This,pvbEnabled) ) + +#define IGPMClientSideExtension_IsComputerEnabled(This,pvbEnabled) \ + ( (This)->lpVtbl -> IsComputerEnabled(This,pvbEnabled) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMClientSideExtension_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMAsyncCancel_INTERFACE_DEFINED__ +#define __IGPMAsyncCancel_INTERFACE_DEFINED__ + +/* interface IGPMAsyncCancel */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMAsyncCancel; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DDC67754-BE67-4541-8166-F48166868C9C") + IGPMAsyncCancel : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Cancel( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMAsyncCancelVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMAsyncCancel * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMAsyncCancel * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMAsyncCancel * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMAsyncCancel * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMAsyncCancel * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMAsyncCancel * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMAsyncCancel * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMAsyncCancel, Cancel) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Cancel )( + __RPC__in IGPMAsyncCancel * This); + + END_INTERFACE + } IGPMAsyncCancelVtbl; + + interface IGPMAsyncCancel + { + CONST_VTBL struct IGPMAsyncCancelVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMAsyncCancel_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMAsyncCancel_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMAsyncCancel_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMAsyncCancel_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMAsyncCancel_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMAsyncCancel_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMAsyncCancel_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMAsyncCancel_Cancel(This) \ + ( (This)->lpVtbl -> Cancel(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMAsyncCancel_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMAsyncProgress_INTERFACE_DEFINED__ +#define __IGPMAsyncProgress_INTERFACE_DEFINED__ + +/* interface IGPMAsyncProgress */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMAsyncProgress; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6AAC29F8-5948-4324-BF70-423818942DBC") + IGPMAsyncProgress : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Status( + /* [in] */ long lProgressNumerator, + /* [in] */ long lProgressDenominator, + /* [in] */ HRESULT hrStatus, + /* [in] */ __RPC__in VARIANT *pResult, + /* [in] */ __RPC__in_opt IGPMStatusMsgCollection *ppIGPMStatusMsgCollection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMAsyncProgressVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMAsyncProgress * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMAsyncProgress * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMAsyncProgress * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMAsyncProgress * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMAsyncProgress * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMAsyncProgress * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMAsyncProgress * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMAsyncProgress, Status) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Status )( + __RPC__in IGPMAsyncProgress * This, + /* [in] */ long lProgressNumerator, + /* [in] */ long lProgressDenominator, + /* [in] */ HRESULT hrStatus, + /* [in] */ __RPC__in VARIANT *pResult, + /* [in] */ __RPC__in_opt IGPMStatusMsgCollection *ppIGPMStatusMsgCollection); + + END_INTERFACE + } IGPMAsyncProgressVtbl; + + interface IGPMAsyncProgress + { + CONST_VTBL struct IGPMAsyncProgressVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMAsyncProgress_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMAsyncProgress_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMAsyncProgress_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMAsyncProgress_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMAsyncProgress_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMAsyncProgress_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMAsyncProgress_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMAsyncProgress_Status(This,lProgressNumerator,lProgressDenominator,hrStatus,pResult,ppIGPMStatusMsgCollection) \ + ( (This)->lpVtbl -> Status(This,lProgressNumerator,lProgressDenominator,hrStatus,pResult,ppIGPMStatusMsgCollection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMAsyncProgress_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMStatusMsgCollection_INTERFACE_DEFINED__ +#define __IGPMStatusMsgCollection_INTERFACE_DEFINED__ + +/* interface IGPMStatusMsgCollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMStatusMsgCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B6E1AF0-1A92-40F3-A59D-F36AC1F728B7") + IGPMStatusMsgCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMStatusMsgCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMStatusMsgCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMStatusMsgCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMStatusMsgCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMStatusMsgCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMStatusMsgCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMStatusMsgCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMStatusMsgCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMStatusMsgCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMStatusMsgCollection * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMStatusMsgCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMStatusMsgCollection * This, + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMStatusMsgCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMStatusMsgCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **pVal); + + END_INTERFACE + } IGPMStatusMsgCollectionVtbl; + + interface IGPMStatusMsgCollection + { + CONST_VTBL struct IGPMStatusMsgCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMStatusMsgCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMStatusMsgCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMStatusMsgCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMStatusMsgCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMStatusMsgCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMStatusMsgCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMStatusMsgCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMStatusMsgCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMStatusMsgCollection_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMStatusMsgCollection_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMStatusMsgCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMStatusMessage_INTERFACE_DEFINED__ +#define __IGPMStatusMessage_INTERFACE_DEFINED__ + +/* interface IGPMStatusMessage */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMStatusMessage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8496C22F-F3DE-4A1F-8F58-603CAAA93D7B") + IGPMStatusMessage : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ObjectPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ErrorCode( void) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExtensionName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SettingsName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OperationCode( void) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Message( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMStatusMessageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMStatusMessage * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMStatusMessage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMStatusMessage * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMStatusMessage * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMStatusMessage * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMStatusMessage * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMStatusMessage * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMStatusMessage, get_ObjectPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ObjectPath )( + __RPC__in IGPMStatusMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMStatusMessage, ErrorCode) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ErrorCode )( + __RPC__in IGPMStatusMessage * This); + + DECLSPEC_XFGVIRT(IGPMStatusMessage, get_ExtensionName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExtensionName )( + __RPC__in IGPMStatusMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMStatusMessage, get_SettingsName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SettingsName )( + __RPC__in IGPMStatusMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMStatusMessage, OperationCode) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OperationCode )( + __RPC__in IGPMStatusMessage * This); + + DECLSPEC_XFGVIRT(IGPMStatusMessage, get_Message) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Message )( + __RPC__in IGPMStatusMessage * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + END_INTERFACE + } IGPMStatusMessageVtbl; + + interface IGPMStatusMessage + { + CONST_VTBL struct IGPMStatusMessageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMStatusMessage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMStatusMessage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMStatusMessage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMStatusMessage_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMStatusMessage_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMStatusMessage_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMStatusMessage_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMStatusMessage_get_ObjectPath(This,pVal) \ + ( (This)->lpVtbl -> get_ObjectPath(This,pVal) ) + +#define IGPMStatusMessage_ErrorCode(This) \ + ( (This)->lpVtbl -> ErrorCode(This) ) + +#define IGPMStatusMessage_get_ExtensionName(This,pVal) \ + ( (This)->lpVtbl -> get_ExtensionName(This,pVal) ) + +#define IGPMStatusMessage_get_SettingsName(This,pVal) \ + ( (This)->lpVtbl -> get_SettingsName(This,pVal) ) + +#define IGPMStatusMessage_OperationCode(This) \ + ( (This)->lpVtbl -> OperationCode(This) ) + +#define IGPMStatusMessage_get_Message(This,pVal) \ + ( (This)->lpVtbl -> get_Message(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMStatusMessage_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMConstants_INTERFACE_DEFINED__ +#define __IGPMConstants_INTERFACE_DEFINED__ + +/* interface IGPMConstants */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMConstants; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("50EF73E6-D35C-4C8D-BE63-7EA5D2AAC5C4") + IGPMConstants : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermGPOApply( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermGPORead( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermGPOEdit( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermGPOEditSecurityAndDelete( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermGPOCustom( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermWMIFilterEdit( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermWMIFilterFullControl( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermWMIFilterCustom( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermSOMLink( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermSOMLogging( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermSOMPlanning( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermSOMGPOCreate( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermSOMWMICreate( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermSOMWMIFullControl( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyGPOPermissions( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyGPOEffectivePermissions( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyGPODisplayName( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyGPOWMIFilter( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyGPOID( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyGPOComputerExtensions( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyGPOUserExtensions( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertySOMLinks( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyGPODomain( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyBackupMostRecent( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchOpEquals( + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchOpContains( + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchOpNotContains( + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchOpNotEquals( + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UsePDC( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseAnyDC( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DoNotUseW2KDC( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SOMSite( + /* [retval][out] */ __RPC__out GPMSOMType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SOMDomain( + /* [retval][out] */ __RPC__out GPMSOMType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SOMOU( + /* [retval][out] */ __RPC__out GPMSOMType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SecurityFlags( + /* [in] */ VARIANT_BOOL vbOwner, + /* [in] */ VARIANT_BOOL vbGroup, + /* [in] */ VARIANT_BOOL vbDACL, + /* [in] */ VARIANT_BOOL vbSACL, + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DoNotValidateDC( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReportHTML( + /* [retval][out] */ __RPC__out GPMReportType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReportXML( + /* [retval][out] */ __RPC__out GPMReportType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RSOPModeUnknown( + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RSOPModePlanning( + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RSOPModeLogging( + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EntryTypeUser( + /* [retval][out] */ __RPC__out GPMEntryType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EntryTypeComputer( + /* [retval][out] */ __RPC__out GPMEntryType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EntryTypeLocalGroup( + /* [retval][out] */ __RPC__out GPMEntryType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EntryTypeGlobalGroup( + /* [retval][out] */ __RPC__out GPMEntryType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EntryTypeUniversalGroup( + /* [retval][out] */ __RPC__out GPMEntryType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EntryTypeUNCPath( + /* [retval][out] */ __RPC__out GPMEntryType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EntryTypeUnknown( + /* [retval][out] */ __RPC__out GPMEntryType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DestinationOptionSameAsSource( + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DestinationOptionNone( + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DestinationOptionByRelativeName( + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DestinationOptionSet( + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MigrationTableOnly( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProcessSecurity( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RsopLoggingNoComputer( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RsopLoggingNoUser( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RsopPlanningAssumeSlowLink( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RsopPlanningLoopbackOption( + /* [in] */ VARIANT_BOOL vbMerge, + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RsopPlanningAssumeUserWQLFilterTrue( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RsopPlanningAssumeCompWQLFilterTrue( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMConstantsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMConstants * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMConstants * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMConstants * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMConstants * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMConstants * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMConstants * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMConstants * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermGPOApply) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermGPOApply )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermGPORead) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermGPORead )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermGPOEdit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermGPOEdit )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermGPOEditSecurityAndDelete) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermGPOEditSecurityAndDelete )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermGPOCustom) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermGPOCustom )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermWMIFilterEdit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermWMIFilterEdit )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermWMIFilterFullControl) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermWMIFilterFullControl )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermWMIFilterCustom) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermWMIFilterCustom )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMLink) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMLink )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMLogging) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMLogging )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMPlanning) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMPlanning )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMGPOCreate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMGPOCreate )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMWMICreate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMWMICreate )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMWMIFullControl) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMWMIFullControl )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOPermissions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOPermissions )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOEffectivePermissions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOEffectivePermissions )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPODisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPODisplayName )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOWMIFilter) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOWMIFilter )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOID )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOComputerExtensions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOComputerExtensions )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOUserExtensions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOUserExtensions )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertySOMLinks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertySOMLinks )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPODomain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPODomain )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyBackupMostRecent) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyBackupMostRecent )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchOpEquals) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchOpEquals )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchOpContains) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchOpContains )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchOpNotContains) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchOpNotContains )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchOpNotEquals) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchOpNotEquals )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_UsePDC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsePDC )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_UseAnyDC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseAnyDC )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DoNotUseW2KDC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DoNotUseW2KDC )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SOMSite) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SOMSite )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSOMType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SOMDomain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SOMDomain )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSOMType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SOMOU) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SOMOU )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMSOMType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SecurityFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SecurityFlags )( + __RPC__in IGPMConstants * This, + /* [in] */ VARIANT_BOOL vbOwner, + /* [in] */ VARIANT_BOOL vbGroup, + /* [in] */ VARIANT_BOOL vbDACL, + /* [in] */ VARIANT_BOOL vbSACL, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DoNotValidateDC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DoNotValidateDC )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_ReportHTML) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportHTML )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMReportType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_ReportXML) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportXML )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMReportType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RSOPModeUnknown) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RSOPModeUnknown )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RSOPModePlanning) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RSOPModePlanning )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RSOPModeLogging) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RSOPModeLogging )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeUser) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeUser )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeComputer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeComputer )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeLocalGroup) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeLocalGroup )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeGlobalGroup) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeGlobalGroup )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeUniversalGroup) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeUniversalGroup )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeUNCPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeUNCPath )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeUnknown) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeUnknown )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DestinationOptionSameAsSource) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationOptionSameAsSource )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DestinationOptionNone) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationOptionNone )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DestinationOptionByRelativeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationOptionByRelativeName )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DestinationOptionSet) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationOptionSet )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_MigrationTableOnly) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MigrationTableOnly )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_ProcessSecurity) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProcessSecurity )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopLoggingNoComputer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopLoggingNoComputer )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopLoggingNoUser) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopLoggingNoUser )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopPlanningAssumeSlowLink) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopPlanningAssumeSlowLink )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopPlanningLoopbackOption) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopPlanningLoopbackOption )( + __RPC__in IGPMConstants * This, + /* [in] */ VARIANT_BOOL vbMerge, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopPlanningAssumeUserWQLFilterTrue) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopPlanningAssumeUserWQLFilterTrue )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopPlanningAssumeCompWQLFilterTrue) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopPlanningAssumeCompWQLFilterTrue )( + __RPC__in IGPMConstants * This, + /* [retval][out] */ __RPC__out long *pVal); + + END_INTERFACE + } IGPMConstantsVtbl; + + interface IGPMConstants + { + CONST_VTBL struct IGPMConstantsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMConstants_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMConstants_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMConstants_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMConstants_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMConstants_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMConstants_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMConstants_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMConstants_get_PermGPOApply(This,pVal) \ + ( (This)->lpVtbl -> get_PermGPOApply(This,pVal) ) + +#define IGPMConstants_get_PermGPORead(This,pVal) \ + ( (This)->lpVtbl -> get_PermGPORead(This,pVal) ) + +#define IGPMConstants_get_PermGPOEdit(This,pVal) \ + ( (This)->lpVtbl -> get_PermGPOEdit(This,pVal) ) + +#define IGPMConstants_get_PermGPOEditSecurityAndDelete(This,pVal) \ + ( (This)->lpVtbl -> get_PermGPOEditSecurityAndDelete(This,pVal) ) + +#define IGPMConstants_get_PermGPOCustom(This,pVal) \ + ( (This)->lpVtbl -> get_PermGPOCustom(This,pVal) ) + +#define IGPMConstants_get_PermWMIFilterEdit(This,pVal) \ + ( (This)->lpVtbl -> get_PermWMIFilterEdit(This,pVal) ) + +#define IGPMConstants_get_PermWMIFilterFullControl(This,pVal) \ + ( (This)->lpVtbl -> get_PermWMIFilterFullControl(This,pVal) ) + +#define IGPMConstants_get_PermWMIFilterCustom(This,pVal) \ + ( (This)->lpVtbl -> get_PermWMIFilterCustom(This,pVal) ) + +#define IGPMConstants_get_PermSOMLink(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMLink(This,pVal) ) + +#define IGPMConstants_get_PermSOMLogging(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMLogging(This,pVal) ) + +#define IGPMConstants_get_PermSOMPlanning(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMPlanning(This,pVal) ) + +#define IGPMConstants_get_PermSOMGPOCreate(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMGPOCreate(This,pVal) ) + +#define IGPMConstants_get_PermSOMWMICreate(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMWMICreate(This,pVal) ) + +#define IGPMConstants_get_PermSOMWMIFullControl(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMWMIFullControl(This,pVal) ) + +#define IGPMConstants_get_SearchPropertyGPOPermissions(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOPermissions(This,pVal) ) + +#define IGPMConstants_get_SearchPropertyGPOEffectivePermissions(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOEffectivePermissions(This,pVal) ) + +#define IGPMConstants_get_SearchPropertyGPODisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPODisplayName(This,pVal) ) + +#define IGPMConstants_get_SearchPropertyGPOWMIFilter(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOWMIFilter(This,pVal) ) + +#define IGPMConstants_get_SearchPropertyGPOID(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOID(This,pVal) ) + +#define IGPMConstants_get_SearchPropertyGPOComputerExtensions(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOComputerExtensions(This,pVal) ) + +#define IGPMConstants_get_SearchPropertyGPOUserExtensions(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOUserExtensions(This,pVal) ) + +#define IGPMConstants_get_SearchPropertySOMLinks(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertySOMLinks(This,pVal) ) + +#define IGPMConstants_get_SearchPropertyGPODomain(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPODomain(This,pVal) ) + +#define IGPMConstants_get_SearchPropertyBackupMostRecent(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyBackupMostRecent(This,pVal) ) + +#define IGPMConstants_get_SearchOpEquals(This,pVal) \ + ( (This)->lpVtbl -> get_SearchOpEquals(This,pVal) ) + +#define IGPMConstants_get_SearchOpContains(This,pVal) \ + ( (This)->lpVtbl -> get_SearchOpContains(This,pVal) ) + +#define IGPMConstants_get_SearchOpNotContains(This,pVal) \ + ( (This)->lpVtbl -> get_SearchOpNotContains(This,pVal) ) + +#define IGPMConstants_get_SearchOpNotEquals(This,pVal) \ + ( (This)->lpVtbl -> get_SearchOpNotEquals(This,pVal) ) + +#define IGPMConstants_get_UsePDC(This,pVal) \ + ( (This)->lpVtbl -> get_UsePDC(This,pVal) ) + +#define IGPMConstants_get_UseAnyDC(This,pVal) \ + ( (This)->lpVtbl -> get_UseAnyDC(This,pVal) ) + +#define IGPMConstants_get_DoNotUseW2KDC(This,pVal) \ + ( (This)->lpVtbl -> get_DoNotUseW2KDC(This,pVal) ) + +#define IGPMConstants_get_SOMSite(This,pVal) \ + ( (This)->lpVtbl -> get_SOMSite(This,pVal) ) + +#define IGPMConstants_get_SOMDomain(This,pVal) \ + ( (This)->lpVtbl -> get_SOMDomain(This,pVal) ) + +#define IGPMConstants_get_SOMOU(This,pVal) \ + ( (This)->lpVtbl -> get_SOMOU(This,pVal) ) + +#define IGPMConstants_get_SecurityFlags(This,vbOwner,vbGroup,vbDACL,vbSACL,pVal) \ + ( (This)->lpVtbl -> get_SecurityFlags(This,vbOwner,vbGroup,vbDACL,vbSACL,pVal) ) + +#define IGPMConstants_get_DoNotValidateDC(This,pVal) \ + ( (This)->lpVtbl -> get_DoNotValidateDC(This,pVal) ) + +#define IGPMConstants_get_ReportHTML(This,pVal) \ + ( (This)->lpVtbl -> get_ReportHTML(This,pVal) ) + +#define IGPMConstants_get_ReportXML(This,pVal) \ + ( (This)->lpVtbl -> get_ReportXML(This,pVal) ) + +#define IGPMConstants_get_RSOPModeUnknown(This,pVal) \ + ( (This)->lpVtbl -> get_RSOPModeUnknown(This,pVal) ) + +#define IGPMConstants_get_RSOPModePlanning(This,pVal) \ + ( (This)->lpVtbl -> get_RSOPModePlanning(This,pVal) ) + +#define IGPMConstants_get_RSOPModeLogging(This,pVal) \ + ( (This)->lpVtbl -> get_RSOPModeLogging(This,pVal) ) + +#define IGPMConstants_get_EntryTypeUser(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeUser(This,pVal) ) + +#define IGPMConstants_get_EntryTypeComputer(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeComputer(This,pVal) ) + +#define IGPMConstants_get_EntryTypeLocalGroup(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeLocalGroup(This,pVal) ) + +#define IGPMConstants_get_EntryTypeGlobalGroup(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeGlobalGroup(This,pVal) ) + +#define IGPMConstants_get_EntryTypeUniversalGroup(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeUniversalGroup(This,pVal) ) + +#define IGPMConstants_get_EntryTypeUNCPath(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeUNCPath(This,pVal) ) + +#define IGPMConstants_get_EntryTypeUnknown(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeUnknown(This,pVal) ) + +#define IGPMConstants_get_DestinationOptionSameAsSource(This,pVal) \ + ( (This)->lpVtbl -> get_DestinationOptionSameAsSource(This,pVal) ) + +#define IGPMConstants_get_DestinationOptionNone(This,pVal) \ + ( (This)->lpVtbl -> get_DestinationOptionNone(This,pVal) ) + +#define IGPMConstants_get_DestinationOptionByRelativeName(This,pVal) \ + ( (This)->lpVtbl -> get_DestinationOptionByRelativeName(This,pVal) ) + +#define IGPMConstants_get_DestinationOptionSet(This,pVal) \ + ( (This)->lpVtbl -> get_DestinationOptionSet(This,pVal) ) + +#define IGPMConstants_get_MigrationTableOnly(This,pVal) \ + ( (This)->lpVtbl -> get_MigrationTableOnly(This,pVal) ) + +#define IGPMConstants_get_ProcessSecurity(This,pVal) \ + ( (This)->lpVtbl -> get_ProcessSecurity(This,pVal) ) + +#define IGPMConstants_get_RsopLoggingNoComputer(This,pVal) \ + ( (This)->lpVtbl -> get_RsopLoggingNoComputer(This,pVal) ) + +#define IGPMConstants_get_RsopLoggingNoUser(This,pVal) \ + ( (This)->lpVtbl -> get_RsopLoggingNoUser(This,pVal) ) + +#define IGPMConstants_get_RsopPlanningAssumeSlowLink(This,pVal) \ + ( (This)->lpVtbl -> get_RsopPlanningAssumeSlowLink(This,pVal) ) + +#define IGPMConstants_get_RsopPlanningLoopbackOption(This,vbMerge,pVal) \ + ( (This)->lpVtbl -> get_RsopPlanningLoopbackOption(This,vbMerge,pVal) ) + +#define IGPMConstants_get_RsopPlanningAssumeUserWQLFilterTrue(This,pVal) \ + ( (This)->lpVtbl -> get_RsopPlanningAssumeUserWQLFilterTrue(This,pVal) ) + +#define IGPMConstants_get_RsopPlanningAssumeCompWQLFilterTrue(This,pVal) \ + ( (This)->lpVtbl -> get_RsopPlanningAssumeCompWQLFilterTrue(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMConstants_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMResult_INTERFACE_DEFINED__ +#define __IGPMResult_INTERFACE_DEFINED__ + +/* interface IGPMResult */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMResult; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("86DFF7E9-F76F-42AB-9570-CEBC6BE8A52D") + IGPMResult : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__deref_out_opt IGPMStatusMsgCollection **ppIGPMStatusMsgCollection) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Result( + /* [retval][out] */ __RPC__out VARIANT *pvarResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OverallStatus( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMResultVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMResult * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMResult * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMResult * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMResult * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMResult * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMResult * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMResult * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMResult, get_Status) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IGPMResult * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMStatusMsgCollection **ppIGPMStatusMsgCollection); + + DECLSPEC_XFGVIRT(IGPMResult, get_Result) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Result )( + __RPC__in IGPMResult * This, + /* [retval][out] */ __RPC__out VARIANT *pvarResult); + + DECLSPEC_XFGVIRT(IGPMResult, OverallStatus) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *OverallStatus )( + __RPC__in IGPMResult * This); + + END_INTERFACE + } IGPMResultVtbl; + + interface IGPMResult + { + CONST_VTBL struct IGPMResultVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMResult_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMResult_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMResult_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMResult_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMResult_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMResult_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMResult_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMResult_get_Status(This,ppIGPMStatusMsgCollection) \ + ( (This)->lpVtbl -> get_Status(This,ppIGPMStatusMsgCollection) ) + +#define IGPMResult_get_Result(This,pvarResult) \ + ( (This)->lpVtbl -> get_Result(This,pvarResult) ) + +#define IGPMResult_OverallStatus(This) \ + ( (This)->lpVtbl -> OverallStatus(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMResult_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMMapEntryCollection_INTERFACE_DEFINED__ +#define __IGPMMapEntryCollection_INTERFACE_DEFINED__ + +/* interface IGPMMapEntryCollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMMapEntryCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BB0BF49B-E53F-443F-B807-8BE22BFB6D42") + IGPMMapEntryCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMMapEntryCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMMapEntryCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMMapEntryCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMMapEntryCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMMapEntryCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMMapEntryCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMMapEntryCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMMapEntryCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMMapEntryCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMMapEntryCollection * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMMapEntryCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMMapEntryCollection * This, + /* [in] */ long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMMapEntryCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMMapEntryCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **pVal); + + END_INTERFACE + } IGPMMapEntryCollectionVtbl; + + interface IGPMMapEntryCollection + { + CONST_VTBL struct IGPMMapEntryCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMMapEntryCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMMapEntryCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMMapEntryCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMMapEntryCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMMapEntryCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMMapEntryCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMMapEntryCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMMapEntryCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMMapEntryCollection_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMMapEntryCollection_get__NewEnum(This,pVal) \ + ( (This)->lpVtbl -> get__NewEnum(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMMapEntryCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMMapEntry_INTERFACE_DEFINED__ +#define __IGPMMapEntry_INTERFACE_DEFINED__ + +/* interface IGPMMapEntry */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMMapEntry; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8E79AD06-2381-4444-BE4C-FF693E6E6F2B") + IGPMMapEntry : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Source( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSource) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Destination( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDestination) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DestinationOption( + /* [retval][out] */ __RPC__out GPMDestinationOption *pgpmDestOption) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EntryType( + /* [retval][out] */ __RPC__out GPMEntryType *pgpmEntryType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMMapEntryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMMapEntry * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMMapEntry * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMMapEntry * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMMapEntry * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMMapEntry * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMMapEntry * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMMapEntry * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMMapEntry, get_Source) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Source )( + __RPC__in IGPMMapEntry * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSource); + + DECLSPEC_XFGVIRT(IGPMMapEntry, get_Destination) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Destination )( + __RPC__in IGPMMapEntry * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDestination); + + DECLSPEC_XFGVIRT(IGPMMapEntry, get_DestinationOption) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationOption )( + __RPC__in IGPMMapEntry * This, + /* [retval][out] */ __RPC__out GPMDestinationOption *pgpmDestOption); + + DECLSPEC_XFGVIRT(IGPMMapEntry, get_EntryType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryType )( + __RPC__in IGPMMapEntry * This, + /* [retval][out] */ __RPC__out GPMEntryType *pgpmEntryType); + + END_INTERFACE + } IGPMMapEntryVtbl; + + interface IGPMMapEntry + { + CONST_VTBL struct IGPMMapEntryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMMapEntry_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMMapEntry_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMMapEntry_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMMapEntry_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMMapEntry_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMMapEntry_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMMapEntry_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMMapEntry_get_Source(This,pbstrSource) \ + ( (This)->lpVtbl -> get_Source(This,pbstrSource) ) + +#define IGPMMapEntry_get_Destination(This,pbstrDestination) \ + ( (This)->lpVtbl -> get_Destination(This,pbstrDestination) ) + +#define IGPMMapEntry_get_DestinationOption(This,pgpmDestOption) \ + ( (This)->lpVtbl -> get_DestinationOption(This,pgpmDestOption) ) + +#define IGPMMapEntry_get_EntryType(This,pgpmEntryType) \ + ( (This)->lpVtbl -> get_EntryType(This,pgpmEntryType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMMapEntry_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMMigrationTable_INTERFACE_DEFINED__ +#define __IGPMMigrationTable_INTERFACE_DEFINED__ + +/* interface IGPMMigrationTable */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMMigrationTable; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("48F823B1-EFAF-470B-B6ED-40D14EE1A4EC") + IGPMMigrationTable : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( + /* [in] */ __RPC__in BSTR bstrMigrationTablePath) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ long lFlags, + /* [in] */ VARIANT var) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddEntry( + /* [in] */ __RPC__in BSTR bstrSource, + /* [in] */ GPMEntryType gpmEntryType, + /* [optional][in] */ __RPC__in VARIANT *pvarDestination, + /* [retval][out] */ __RPC__deref_out_opt IGPMMapEntry **ppEntry) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetEntry( + /* [in] */ __RPC__in BSTR bstrSource, + /* [retval][out] */ __RPC__deref_out_opt IGPMMapEntry **ppEntry) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DeleteEntry( + /* [in] */ __RPC__in BSTR bstrSource) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UpdateDestination( + /* [in] */ __RPC__in BSTR bstrSource, + /* [optional][in] */ __RPC__in VARIANT *pvarDestination, + /* [retval][out] */ __RPC__deref_out_opt IGPMMapEntry **ppEntry) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Validate( + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetEntries( + /* [retval][out] */ __RPC__deref_out_opt IGPMMapEntryCollection **ppEntries) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMMigrationTableVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMMigrationTable * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMMigrationTable * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMMigrationTable * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMMigrationTable * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMMigrationTable * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMMigrationTable * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMMigrationTable * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMMigrationTable, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IGPMMigrationTable * This, + /* [in] */ __RPC__in BSTR bstrMigrationTablePath); + + DECLSPEC_XFGVIRT(IGPMMigrationTable, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IGPMMigrationTable * This, + /* [in] */ long lFlags, + /* [in] */ VARIANT var); + + DECLSPEC_XFGVIRT(IGPMMigrationTable, AddEntry) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddEntry )( + __RPC__in IGPMMigrationTable * This, + /* [in] */ __RPC__in BSTR bstrSource, + /* [in] */ GPMEntryType gpmEntryType, + /* [optional][in] */ __RPC__in VARIANT *pvarDestination, + /* [retval][out] */ __RPC__deref_out_opt IGPMMapEntry **ppEntry); + + DECLSPEC_XFGVIRT(IGPMMigrationTable, GetEntry) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetEntry )( + __RPC__in IGPMMigrationTable * This, + /* [in] */ __RPC__in BSTR bstrSource, + /* [retval][out] */ __RPC__deref_out_opt IGPMMapEntry **ppEntry); + + DECLSPEC_XFGVIRT(IGPMMigrationTable, DeleteEntry) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DeleteEntry )( + __RPC__in IGPMMigrationTable * This, + /* [in] */ __RPC__in BSTR bstrSource); + + DECLSPEC_XFGVIRT(IGPMMigrationTable, UpdateDestination) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateDestination )( + __RPC__in IGPMMigrationTable * This, + /* [in] */ __RPC__in BSTR bstrSource, + /* [optional][in] */ __RPC__in VARIANT *pvarDestination, + /* [retval][out] */ __RPC__deref_out_opt IGPMMapEntry **ppEntry); + + DECLSPEC_XFGVIRT(IGPMMigrationTable, Validate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Validate )( + __RPC__in IGPMMigrationTable * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppResult); + + DECLSPEC_XFGVIRT(IGPMMigrationTable, GetEntries) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetEntries )( + __RPC__in IGPMMigrationTable * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMMapEntryCollection **ppEntries); + + END_INTERFACE + } IGPMMigrationTableVtbl; + + interface IGPMMigrationTable + { + CONST_VTBL struct IGPMMigrationTableVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMMigrationTable_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMMigrationTable_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMMigrationTable_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMMigrationTable_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMMigrationTable_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMMigrationTable_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMMigrationTable_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMMigrationTable_Save(This,bstrMigrationTablePath) \ + ( (This)->lpVtbl -> Save(This,bstrMigrationTablePath) ) + +#define IGPMMigrationTable_Add(This,lFlags,var) \ + ( (This)->lpVtbl -> Add(This,lFlags,var) ) + +#define IGPMMigrationTable_AddEntry(This,bstrSource,gpmEntryType,pvarDestination,ppEntry) \ + ( (This)->lpVtbl -> AddEntry(This,bstrSource,gpmEntryType,pvarDestination,ppEntry) ) + +#define IGPMMigrationTable_GetEntry(This,bstrSource,ppEntry) \ + ( (This)->lpVtbl -> GetEntry(This,bstrSource,ppEntry) ) + +#define IGPMMigrationTable_DeleteEntry(This,bstrSource) \ + ( (This)->lpVtbl -> DeleteEntry(This,bstrSource) ) + +#define IGPMMigrationTable_UpdateDestination(This,bstrSource,pvarDestination,ppEntry) \ + ( (This)->lpVtbl -> UpdateDestination(This,bstrSource,pvarDestination,ppEntry) ) + +#define IGPMMigrationTable_Validate(This,ppResult) \ + ( (This)->lpVtbl -> Validate(This,ppResult) ) + +#define IGPMMigrationTable_GetEntries(This,ppEntries) \ + ( (This)->lpVtbl -> GetEntries(This,ppEntries) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMMigrationTable_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_gpmgmt_0000_0030 */ +/* [local] */ + +typedef /* [public][public][public][public][public] */ +enum __MIDL___MIDL_itf_gpmgmt_0000_0030_0001 + { + typeGPO = 0, + typeStarterGPO = ( typeGPO + 1 ) + } GPMBackupType; + +typedef /* [public][public][public][public][public] */ +enum __MIDL___MIDL_itf_gpmgmt_0000_0030_0002 + { + typeSystem = 0, + typeCustom = ( typeSystem + 1 ) + } GPMStarterGPOType; + + + +extern RPC_IF_HANDLE __MIDL_itf_gpmgmt_0000_0030_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_gpmgmt_0000_0030_v0_0_s_ifspec; + +#ifndef __IGPMBackupDirEx_INTERFACE_DEFINED__ +#define __IGPMBackupDirEx_INTERFACE_DEFINED__ + +/* interface IGPMBackupDirEx */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMBackupDirEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F8DC55ED-3BA0-4864-AAD4-D365189EE1D5") + IGPMBackupDirEx : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BackupDir( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBackupDir) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BackupType( + /* [retval][out] */ __RPC__out GPMBackupType *pgpmBackupType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetBackup( + /* [in] */ __RPC__in BSTR bstrID, + /* [retval][out] */ __RPC__out VARIANT *pvarBackup) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SearchBackups( + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__out VARIANT *pvarBackupCollection) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMBackupDirExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMBackupDirEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMBackupDirEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMBackupDirEx * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMBackupDirEx * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMBackupDirEx * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMBackupDirEx * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMBackupDirEx * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMBackupDirEx, get_BackupDir) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackupDir )( + __RPC__in IGPMBackupDirEx * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBackupDir); + + DECLSPEC_XFGVIRT(IGPMBackupDirEx, get_BackupType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackupType )( + __RPC__in IGPMBackupDirEx * This, + /* [retval][out] */ __RPC__out GPMBackupType *pgpmBackupType); + + DECLSPEC_XFGVIRT(IGPMBackupDirEx, GetBackup) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetBackup )( + __RPC__in IGPMBackupDirEx * This, + /* [in] */ __RPC__in BSTR bstrID, + /* [retval][out] */ __RPC__out VARIANT *pvarBackup); + + DECLSPEC_XFGVIRT(IGPMBackupDirEx, SearchBackups) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchBackups )( + __RPC__in IGPMBackupDirEx * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__out VARIANT *pvarBackupCollection); + + END_INTERFACE + } IGPMBackupDirExVtbl; + + interface IGPMBackupDirEx + { + CONST_VTBL struct IGPMBackupDirExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMBackupDirEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMBackupDirEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMBackupDirEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMBackupDirEx_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMBackupDirEx_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMBackupDirEx_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMBackupDirEx_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMBackupDirEx_get_BackupDir(This,pbstrBackupDir) \ + ( (This)->lpVtbl -> get_BackupDir(This,pbstrBackupDir) ) + +#define IGPMBackupDirEx_get_BackupType(This,pgpmBackupType) \ + ( (This)->lpVtbl -> get_BackupType(This,pgpmBackupType) ) + +#define IGPMBackupDirEx_GetBackup(This,bstrID,pvarBackup) \ + ( (This)->lpVtbl -> GetBackup(This,bstrID,pvarBackup) ) + +#define IGPMBackupDirEx_SearchBackups(This,pIGPMSearchCriteria,pvarBackupCollection) \ + ( (This)->lpVtbl -> SearchBackups(This,pIGPMSearchCriteria,pvarBackupCollection) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMBackupDirEx_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMStarterGPOBackupCollection_INTERFACE_DEFINED__ +#define __IGPMStarterGPOBackupCollection_INTERFACE_DEFINED__ + +/* interface IGPMStarterGPOBackupCollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMStarterGPOBackupCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C998031D-ADD0-4bb5-8DEA-298505D8423B") + IGPMStarterGPOBackupCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMTmplBackup) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMStarterGPOBackupCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMStarterGPOBackupCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMStarterGPOBackupCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMStarterGPOBackupCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMStarterGPOBackupCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMStarterGPOBackupCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMStarterGPOBackupCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMStarterGPOBackupCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackupCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMStarterGPOBackupCollection * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackupCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMStarterGPOBackupCollection * This, + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackupCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMStarterGPOBackupCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMTmplBackup); + + END_INTERFACE + } IGPMStarterGPOBackupCollectionVtbl; + + interface IGPMStarterGPOBackupCollection + { + CONST_VTBL struct IGPMStarterGPOBackupCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMStarterGPOBackupCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMStarterGPOBackupCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMStarterGPOBackupCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMStarterGPOBackupCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMStarterGPOBackupCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMStarterGPOBackupCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMStarterGPOBackupCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMStarterGPOBackupCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMStarterGPOBackupCollection_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMStarterGPOBackupCollection_get__NewEnum(This,ppIGPMTmplBackup) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppIGPMTmplBackup) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMStarterGPOBackupCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMStarterGPOBackup_INTERFACE_DEFINED__ +#define __IGPMStarterGPOBackup_INTERFACE_DEFINED__ + +/* interface IGPMStarterGPOBackup */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMStarterGPOBackup; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("51D98EDA-A87E-43dd-B80A-0B66EF1938D6") + IGPMStarterGPOBackup : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BackupDir( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBackupDir) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Comment( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrComment) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDisplayName) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Domain( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTemplateDomain) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StarterGPOID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTemplateID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrID) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Timestamp( + /* [retval][out] */ __RPC__out DATE *pTimestamp) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out GPMStarterGPOType *pType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReport( + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReportToFile( + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMStarterGPOBackupVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMStarterGPOBackup * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMStarterGPOBackup * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMStarterGPOBackup * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMStarterGPOBackup * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMStarterGPOBackup * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMStarterGPOBackup * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMStarterGPOBackup * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, get_BackupDir) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackupDir )( + __RPC__in IGPMStarterGPOBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBackupDir); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, get_Comment) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Comment )( + __RPC__in IGPMStarterGPOBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrComment); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IGPMStarterGPOBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrDisplayName); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, get_Domain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Domain )( + __RPC__in IGPMStarterGPOBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTemplateDomain); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, get_StarterGPOID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StarterGPOID )( + __RPC__in IGPMStarterGPOBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTemplateID); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, get_ID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ID )( + __RPC__in IGPMStarterGPOBackup * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrID); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, get_Timestamp) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Timestamp )( + __RPC__in IGPMStarterGPOBackup * This, + /* [retval][out] */ __RPC__out DATE *pTimestamp); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, get_Type) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IGPMStarterGPOBackup * This, + /* [retval][out] */ __RPC__out GPMStarterGPOType *pType); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IGPMStarterGPOBackup * This); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, GenerateReport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReport )( + __RPC__in IGPMStarterGPOBackup * This, + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMStarterGPOBackup, GenerateReportToFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReportToFile )( + __RPC__in IGPMStarterGPOBackup * This, + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + END_INTERFACE + } IGPMStarterGPOBackupVtbl; + + interface IGPMStarterGPOBackup + { + CONST_VTBL struct IGPMStarterGPOBackupVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMStarterGPOBackup_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMStarterGPOBackup_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMStarterGPOBackup_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMStarterGPOBackup_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMStarterGPOBackup_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMStarterGPOBackup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMStarterGPOBackup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMStarterGPOBackup_get_BackupDir(This,pbstrBackupDir) \ + ( (This)->lpVtbl -> get_BackupDir(This,pbstrBackupDir) ) + +#define IGPMStarterGPOBackup_get_Comment(This,pbstrComment) \ + ( (This)->lpVtbl -> get_Comment(This,pbstrComment) ) + +#define IGPMStarterGPOBackup_get_DisplayName(This,pbstrDisplayName) \ + ( (This)->lpVtbl -> get_DisplayName(This,pbstrDisplayName) ) + +#define IGPMStarterGPOBackup_get_Domain(This,pbstrTemplateDomain) \ + ( (This)->lpVtbl -> get_Domain(This,pbstrTemplateDomain) ) + +#define IGPMStarterGPOBackup_get_StarterGPOID(This,pbstrTemplateID) \ + ( (This)->lpVtbl -> get_StarterGPOID(This,pbstrTemplateID) ) + +#define IGPMStarterGPOBackup_get_ID(This,pbstrID) \ + ( (This)->lpVtbl -> get_ID(This,pbstrID) ) + +#define IGPMStarterGPOBackup_get_Timestamp(This,pTimestamp) \ + ( (This)->lpVtbl -> get_Timestamp(This,pTimestamp) ) + +#define IGPMStarterGPOBackup_get_Type(This,pType) \ + ( (This)->lpVtbl -> get_Type(This,pType) ) + +#define IGPMStarterGPOBackup_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IGPMStarterGPOBackup_GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMStarterGPOBackup_GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMStarterGPOBackup_INTERFACE_DEFINED__ */ + + +#ifndef __IGPM2_INTERFACE_DEFINED__ +#define __IGPM2_INTERFACE_DEFINED__ + +/* interface IGPM2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPM2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("00238F8A-3D86-41ac-8F5E-06A6638A634A") + IGPM2 : public IGPM + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetBackupDirEx( + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [in] */ GPMBackupType backupDirType, + /* [retval][out] */ __RPC__deref_out_opt IGPMBackupDirEx **ppIGPMBackupDirEx) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitializeReportingEx( + /* [in] */ __RPC__in BSTR bstrAdmPath, + /* [in] */ LONG reportingOptions) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPM2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPM2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPM2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPM2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPM2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPM2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPM2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPM2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPM, GetDomain) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDomain )( + __RPC__in IGPM2 * This, + /* [in] */ __RPC__in BSTR bstrDomain, + /* [unique][in] */ __RPC__in_opt BSTR bstrDomainController, + /* [in] */ long lDCFlags, + /* [retval][out] */ __RPC__deref_out_opt IGPMDomain **pIGPMDomain); + + DECLSPEC_XFGVIRT(IGPM, GetBackupDir) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetBackupDir )( + __RPC__in IGPM2 * This, + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [retval][out] */ __RPC__deref_out_opt IGPMBackupDir **pIGPMBackupDir); + + DECLSPEC_XFGVIRT(IGPM, GetSitesContainer) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSitesContainer )( + __RPC__in IGPM2 * This, + /* [in] */ __RPC__in BSTR bstrForest, + /* [unique][in] */ __RPC__in_opt BSTR bstrDomain, + /* [unique][in] */ __RPC__in_opt BSTR bstrDomainController, + /* [in] */ long lDCFlags, + /* [retval][out] */ __RPC__deref_out_opt IGPMSitesContainer **ppIGPMSitesContainer); + + DECLSPEC_XFGVIRT(IGPM, GetRSOP) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetRSOP )( + __RPC__in IGPM2 * This, + /* [in] */ GPMRSOPMode gpmRSoPMode, + /* [in] */ __RPC__in BSTR bstrNamespace, + /* [in] */ long lFlags, + /* [retval][out] */ __RPC__deref_out_opt IGPMRSOP **ppIGPMRSOP); + + DECLSPEC_XFGVIRT(IGPM, CreatePermission) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreatePermission )( + __RPC__in IGPM2 * This, + /* [in] */ __RPC__in BSTR bstrTrustee, + /* [in] */ GPMPermissionType perm, + /* [in] */ VARIANT_BOOL bInheritable, + /* [retval][out] */ __RPC__deref_out_opt IGPMPermission **ppPerm); + + DECLSPEC_XFGVIRT(IGPM, CreateSearchCriteria) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateSearchCriteria )( + __RPC__in IGPM2 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMSearchCriteria **ppIGPMSearchCriteria); + + DECLSPEC_XFGVIRT(IGPM, CreateTrustee) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateTrustee )( + __RPC__in IGPM2 * This, + /* [in] */ __RPC__in BSTR bstrTrustee, + /* [retval][out] */ __RPC__deref_out_opt IGPMTrustee **ppIGPMTrustee); + + DECLSPEC_XFGVIRT(IGPM, GetClientSideExtensions) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetClientSideExtensions )( + __RPC__in IGPM2 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMCSECollection **ppIGPMCSECollection); + + DECLSPEC_XFGVIRT(IGPM, GetConstants) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetConstants )( + __RPC__in IGPM2 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMConstants **ppIGPMConstants); + + DECLSPEC_XFGVIRT(IGPM, GetMigrationTable) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetMigrationTable )( + __RPC__in IGPM2 * This, + /* [in] */ __RPC__in BSTR bstrMigrationTablePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMMigrationTable **ppMigrationTable); + + DECLSPEC_XFGVIRT(IGPM, CreateMigrationTable) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateMigrationTable )( + __RPC__in IGPM2 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMMigrationTable **ppMigrationTable); + + DECLSPEC_XFGVIRT(IGPM, InitializeReporting) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitializeReporting )( + __RPC__in IGPM2 * This, + /* [unique][in] */ __RPC__in_opt BSTR bstrAdmPath); + + DECLSPEC_XFGVIRT(IGPM2, GetBackupDirEx) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetBackupDirEx )( + __RPC__in IGPM2 * This, + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [in] */ GPMBackupType backupDirType, + /* [retval][out] */ __RPC__deref_out_opt IGPMBackupDirEx **ppIGPMBackupDirEx); + + DECLSPEC_XFGVIRT(IGPM2, InitializeReportingEx) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitializeReportingEx )( + __RPC__in IGPM2 * This, + /* [in] */ __RPC__in BSTR bstrAdmPath, + /* [in] */ LONG reportingOptions); + + END_INTERFACE + } IGPM2Vtbl; + + interface IGPM2 + { + CONST_VTBL struct IGPM2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPM2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPM2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPM2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPM2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPM2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPM2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPM2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPM2_GetDomain(This,bstrDomain,bstrDomainController,lDCFlags,pIGPMDomain) \ + ( (This)->lpVtbl -> GetDomain(This,bstrDomain,bstrDomainController,lDCFlags,pIGPMDomain) ) + +#define IGPM2_GetBackupDir(This,bstrBackupDir,pIGPMBackupDir) \ + ( (This)->lpVtbl -> GetBackupDir(This,bstrBackupDir,pIGPMBackupDir) ) + +#define IGPM2_GetSitesContainer(This,bstrForest,bstrDomain,bstrDomainController,lDCFlags,ppIGPMSitesContainer) \ + ( (This)->lpVtbl -> GetSitesContainer(This,bstrForest,bstrDomain,bstrDomainController,lDCFlags,ppIGPMSitesContainer) ) + +#define IGPM2_GetRSOP(This,gpmRSoPMode,bstrNamespace,lFlags,ppIGPMRSOP) \ + ( (This)->lpVtbl -> GetRSOP(This,gpmRSoPMode,bstrNamespace,lFlags,ppIGPMRSOP) ) + +#define IGPM2_CreatePermission(This,bstrTrustee,perm,bInheritable,ppPerm) \ + ( (This)->lpVtbl -> CreatePermission(This,bstrTrustee,perm,bInheritable,ppPerm) ) + +#define IGPM2_CreateSearchCriteria(This,ppIGPMSearchCriteria) \ + ( (This)->lpVtbl -> CreateSearchCriteria(This,ppIGPMSearchCriteria) ) + +#define IGPM2_CreateTrustee(This,bstrTrustee,ppIGPMTrustee) \ + ( (This)->lpVtbl -> CreateTrustee(This,bstrTrustee,ppIGPMTrustee) ) + +#define IGPM2_GetClientSideExtensions(This,ppIGPMCSECollection) \ + ( (This)->lpVtbl -> GetClientSideExtensions(This,ppIGPMCSECollection) ) + +#define IGPM2_GetConstants(This,ppIGPMConstants) \ + ( (This)->lpVtbl -> GetConstants(This,ppIGPMConstants) ) + +#define IGPM2_GetMigrationTable(This,bstrMigrationTablePath,ppMigrationTable) \ + ( (This)->lpVtbl -> GetMigrationTable(This,bstrMigrationTablePath,ppMigrationTable) ) + +#define IGPM2_CreateMigrationTable(This,ppMigrationTable) \ + ( (This)->lpVtbl -> CreateMigrationTable(This,ppMigrationTable) ) + +#define IGPM2_InitializeReporting(This,bstrAdmPath) \ + ( (This)->lpVtbl -> InitializeReporting(This,bstrAdmPath) ) + + +#define IGPM2_GetBackupDirEx(This,bstrBackupDir,backupDirType,ppIGPMBackupDirEx) \ + ( (This)->lpVtbl -> GetBackupDirEx(This,bstrBackupDir,backupDirType,ppIGPMBackupDirEx) ) + +#define IGPM2_InitializeReportingEx(This,bstrAdmPath,reportingOptions) \ + ( (This)->lpVtbl -> InitializeReportingEx(This,bstrAdmPath,reportingOptions) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPM2_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMStarterGPO_INTERFACE_DEFINED__ +#define __IGPMStarterGPO_INTERFACE_DEFINED__ + +/* interface IGPMStarterGPO */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMStarterGPO; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DFC3F61B-8880-4490-9337-D29C7BA8C2F0") + IGPMStarterGPO : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisplayName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DisplayName( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Author( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Product( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CreationTime( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ID( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ModifiedTime( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Type( + /* [retval][out] */ __RPC__out GPMStarterGPOType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ComputerVersion( + /* [retval][out] */ __RPC__out USHORT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UserVersion( + /* [retval][out] */ __RPC__out USHORT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StarterGPOVersion( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Save( + /* [in] */ __RPC__in BSTR bstrSaveFile, + /* [in] */ VARIANT_BOOL bOverwrite, + /* [in] */ VARIANT_BOOL bSaveAsSystem, + /* [optional][in] */ __RPC__in VARIANT *bstrLanguage, + /* [optional][in] */ __RPC__in VARIANT *bstrAuthor, + /* [optional][in] */ __RPC__in VARIANT *bstrProduct, + /* [optional][in] */ __RPC__in VARIANT *bstrUniqueID, + /* [optional][in] */ __RPC__in VARIANT *bstrVersion, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Backup( + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [in] */ __RPC__in BSTR bstrComment, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CopyTo( + /* [optional][in] */ __RPC__in VARIANT *pvarNewDisplayName, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReport( + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReportToFile( + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecurityInfo( + /* [retval][out] */ __RPC__deref_out_opt IGPMSecurityInfo **ppSecurityInfo) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSecurityInfo( + /* [in] */ __RPC__in_opt IGPMSecurityInfo *pSecurityInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMStarterGPOVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMStarterGPO * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMStarterGPO * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMStarterGPO * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMStarterGPO * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMStarterGPO * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMStarterGPO * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMStarterGPO * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, put_DisplayName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayName )( + __RPC__in IGPMStarterGPO * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IGPMStarterGPO * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_Author) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Author )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_Product) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Product )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_ID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ID )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_ModifiedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModifiedTime )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_Type) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Type )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__out GPMStarterGPOType *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_ComputerVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerVersion )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__out USHORT *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_UserVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserVersion )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__out USHORT *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, get_StarterGPOVersion) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StarterGPOVersion )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IGPMStarterGPO * This); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, Save) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Save )( + __RPC__in IGPMStarterGPO * This, + /* [in] */ __RPC__in BSTR bstrSaveFile, + /* [in] */ VARIANT_BOOL bOverwrite, + /* [in] */ VARIANT_BOOL bSaveAsSystem, + /* [optional][in] */ __RPC__in VARIANT *bstrLanguage, + /* [optional][in] */ __RPC__in VARIANT *bstrAuthor, + /* [optional][in] */ __RPC__in VARIANT *bstrProduct, + /* [optional][in] */ __RPC__in VARIANT *bstrUniqueID, + /* [optional][in] */ __RPC__in VARIANT *bstrVersion, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, Backup) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Backup )( + __RPC__in IGPMStarterGPO * This, + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [in] */ __RPC__in BSTR bstrComment, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, CopyTo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )( + __RPC__in IGPMStarterGPO * This, + /* [optional][in] */ __RPC__in VARIANT *pvarNewDisplayName, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, GenerateReport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReport )( + __RPC__in IGPMStarterGPO * This, + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, GenerateReportToFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReportToFile )( + __RPC__in IGPMStarterGPO * This, + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, GetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityInfo )( + __RPC__in IGPMStarterGPO * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMSecurityInfo **ppSecurityInfo); + + DECLSPEC_XFGVIRT(IGPMStarterGPO, SetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurityInfo )( + __RPC__in IGPMStarterGPO * This, + /* [in] */ __RPC__in_opt IGPMSecurityInfo *pSecurityInfo); + + END_INTERFACE + } IGPMStarterGPOVtbl; + + interface IGPMStarterGPO + { + CONST_VTBL struct IGPMStarterGPOVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMStarterGPO_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMStarterGPO_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMStarterGPO_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMStarterGPO_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMStarterGPO_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMStarterGPO_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMStarterGPO_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMStarterGPO_get_DisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_DisplayName(This,pVal) ) + +#define IGPMStarterGPO_put_DisplayName(This,newVal) \ + ( (This)->lpVtbl -> put_DisplayName(This,newVal) ) + +#define IGPMStarterGPO_get_Description(This,pVal) \ + ( (This)->lpVtbl -> get_Description(This,pVal) ) + +#define IGPMStarterGPO_put_Description(This,newVal) \ + ( (This)->lpVtbl -> put_Description(This,newVal) ) + +#define IGPMStarterGPO_get_Author(This,pVal) \ + ( (This)->lpVtbl -> get_Author(This,pVal) ) + +#define IGPMStarterGPO_get_Product(This,pVal) \ + ( (This)->lpVtbl -> get_Product(This,pVal) ) + +#define IGPMStarterGPO_get_CreationTime(This,pVal) \ + ( (This)->lpVtbl -> get_CreationTime(This,pVal) ) + +#define IGPMStarterGPO_get_ID(This,pVal) \ + ( (This)->lpVtbl -> get_ID(This,pVal) ) + +#define IGPMStarterGPO_get_ModifiedTime(This,pVal) \ + ( (This)->lpVtbl -> get_ModifiedTime(This,pVal) ) + +#define IGPMStarterGPO_get_Type(This,pVal) \ + ( (This)->lpVtbl -> get_Type(This,pVal) ) + +#define IGPMStarterGPO_get_ComputerVersion(This,pVal) \ + ( (This)->lpVtbl -> get_ComputerVersion(This,pVal) ) + +#define IGPMStarterGPO_get_UserVersion(This,pVal) \ + ( (This)->lpVtbl -> get_UserVersion(This,pVal) ) + +#define IGPMStarterGPO_get_StarterGPOVersion(This,pVal) \ + ( (This)->lpVtbl -> get_StarterGPOVersion(This,pVal) ) + +#define IGPMStarterGPO_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IGPMStarterGPO_Save(This,bstrSaveFile,bOverwrite,bSaveAsSystem,bstrLanguage,bstrAuthor,bstrProduct,bstrUniqueID,bstrVersion,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> Save(This,bstrSaveFile,bOverwrite,bSaveAsSystem,bstrLanguage,bstrAuthor,bstrProduct,bstrUniqueID,bstrVersion,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMStarterGPO_Backup(This,bstrBackupDir,bstrComment,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> Backup(This,bstrBackupDir,bstrComment,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMStarterGPO_CopyTo(This,pvarNewDisplayName,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> CopyTo(This,pvarNewDisplayName,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMStarterGPO_GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMStarterGPO_GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) ) + +#define IGPMStarterGPO_GetSecurityInfo(This,ppSecurityInfo) \ + ( (This)->lpVtbl -> GetSecurityInfo(This,ppSecurityInfo) ) + +#define IGPMStarterGPO_SetSecurityInfo(This,pSecurityInfo) \ + ( (This)->lpVtbl -> SetSecurityInfo(This,pSecurityInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMStarterGPO_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMStarterGPOCollection_INTERFACE_DEFINED__ +#define __IGPMStarterGPOCollection_INTERFACE_DEFINED__ + +/* interface IGPMStarterGPOCollection */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMStarterGPOCollection; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2E522729-2219-44ad-933A-64DFD650C423") + IGPMStarterGPOCollection : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMTemplates) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMStarterGPOCollectionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMStarterGPOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMStarterGPOCollection * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMStarterGPOCollection * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMStarterGPOCollection * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMStarterGPOCollection * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMStarterGPOCollection * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMStarterGPOCollection * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMStarterGPOCollection, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IGPMStarterGPOCollection * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPOCollection, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IGPMStarterGPOCollection * This, + long lIndex, + /* [retval][out] */ __RPC__out VARIANT *pVal); + + DECLSPEC_XFGVIRT(IGPMStarterGPOCollection, get__NewEnum) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IGPMStarterGPOCollection * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **ppIGPMTemplates); + + END_INTERFACE + } IGPMStarterGPOCollectionVtbl; + + interface IGPMStarterGPOCollection + { + CONST_VTBL struct IGPMStarterGPOCollectionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMStarterGPOCollection_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMStarterGPOCollection_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMStarterGPOCollection_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMStarterGPOCollection_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMStarterGPOCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMStarterGPOCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMStarterGPOCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMStarterGPOCollection_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IGPMStarterGPOCollection_get_Item(This,lIndex,pVal) \ + ( (This)->lpVtbl -> get_Item(This,lIndex,pVal) ) + +#define IGPMStarterGPOCollection_get__NewEnum(This,ppIGPMTemplates) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppIGPMTemplates) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMStarterGPOCollection_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMDomain2_INTERFACE_DEFINED__ +#define __IGPMDomain2_INTERFACE_DEFINED__ + +/* interface IGPMDomain2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMDomain2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7CA6BB8B-F1EB-490a-938D-3C4E51C768E6") + IGPMDomain2 : public IGPMDomain + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateStarterGPO( + /* [retval][out] */ __RPC__deref_out_opt IGPMStarterGPO **ppnewTemplate) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateGPOFromStarterGPO( + /* [in] */ __RPC__in_opt IGPMStarterGPO *pGPOTemplate, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppnewGPO) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetStarterGPO( + /* [in] */ __RPC__in BSTR bstrGuid, + /* [retval][out] */ __RPC__deref_out_opt IGPMStarterGPO **ppTemplate) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SearchStarterGPOs( + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMStarterGPOCollection **ppIGPMTemplateCollection) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LoadStarterGPO( + /* [in] */ __RPC__in BSTR bstrLoadFile, + /* [in] */ VARIANT_BOOL bOverwrite, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RestoreStarterGPO( + /* [in] */ __RPC__in_opt IGPMStarterGPOBackup *pIGPMTmplBackup, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMDomain2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMDomain2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMDomain2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMDomain2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMDomain2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMDomain2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMDomain, get_DomainController) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainController )( + __RPC__in IGPMDomain2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMDomain, get_Domain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Domain )( + __RPC__in IGPMDomain2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMDomain, CreateGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateGPO )( + __RPC__in IGPMDomain2 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppNewGPO); + + DECLSPEC_XFGVIRT(IGPMDomain, GetGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetGPO )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in BSTR bstrGuid, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppGPO); + + DECLSPEC_XFGVIRT(IGPMDomain, SearchGPOs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchGPOs )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPOCollection **ppIGPMGPOCollection); + + DECLSPEC_XFGVIRT(IGPMDomain, RestoreGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RestoreGPO )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in_opt IGPMBackup *pIGPMBackup, + /* [in] */ long lDCFlags, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMDomain, GetSOM) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSOM )( + __RPC__in IGPMDomain2 * This, + /* [unique][in] */ __RPC__in_opt BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOM **ppSOM); + + DECLSPEC_XFGVIRT(IGPMDomain, SearchSOMs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchSOMs )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOMCollection **ppIGPMSOMCollection); + + DECLSPEC_XFGVIRT(IGPMDomain, GetWMIFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetWMIFilter )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilter **ppWMIFilter); + + DECLSPEC_XFGVIRT(IGPMDomain, SearchWMIFilters) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchWMIFilters )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilterCollection **ppIGPMWMIFilterCollection); + + DECLSPEC_XFGVIRT(IGPMDomain2, CreateStarterGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateStarterGPO )( + __RPC__in IGPMDomain2 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMStarterGPO **ppnewTemplate); + + DECLSPEC_XFGVIRT(IGPMDomain2, CreateGPOFromStarterGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateGPOFromStarterGPO )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in_opt IGPMStarterGPO *pGPOTemplate, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppnewGPO); + + DECLSPEC_XFGVIRT(IGPMDomain2, GetStarterGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetStarterGPO )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in BSTR bstrGuid, + /* [retval][out] */ __RPC__deref_out_opt IGPMStarterGPO **ppTemplate); + + DECLSPEC_XFGVIRT(IGPMDomain2, SearchStarterGPOs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchStarterGPOs )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMStarterGPOCollection **ppIGPMTemplateCollection); + + DECLSPEC_XFGVIRT(IGPMDomain2, LoadStarterGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LoadStarterGPO )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in BSTR bstrLoadFile, + /* [in] */ VARIANT_BOOL bOverwrite, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMDomain2, RestoreStarterGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RestoreStarterGPO )( + __RPC__in IGPMDomain2 * This, + /* [in] */ __RPC__in_opt IGPMStarterGPOBackup *pIGPMTmplBackup, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + END_INTERFACE + } IGPMDomain2Vtbl; + + interface IGPMDomain2 + { + CONST_VTBL struct IGPMDomain2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMDomain2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMDomain2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMDomain2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMDomain2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMDomain2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMDomain2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMDomain2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMDomain2_get_DomainController(This,pVal) \ + ( (This)->lpVtbl -> get_DomainController(This,pVal) ) + +#define IGPMDomain2_get_Domain(This,pVal) \ + ( (This)->lpVtbl -> get_Domain(This,pVal) ) + +#define IGPMDomain2_CreateGPO(This,ppNewGPO) \ + ( (This)->lpVtbl -> CreateGPO(This,ppNewGPO) ) + +#define IGPMDomain2_GetGPO(This,bstrGuid,ppGPO) \ + ( (This)->lpVtbl -> GetGPO(This,bstrGuid,ppGPO) ) + +#define IGPMDomain2_SearchGPOs(This,pIGPMSearchCriteria,ppIGPMGPOCollection) \ + ( (This)->lpVtbl -> SearchGPOs(This,pIGPMSearchCriteria,ppIGPMGPOCollection) ) + +#define IGPMDomain2_RestoreGPO(This,pIGPMBackup,lDCFlags,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> RestoreGPO(This,pIGPMBackup,lDCFlags,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMDomain2_GetSOM(This,bstrPath,ppSOM) \ + ( (This)->lpVtbl -> GetSOM(This,bstrPath,ppSOM) ) + +#define IGPMDomain2_SearchSOMs(This,pIGPMSearchCriteria,ppIGPMSOMCollection) \ + ( (This)->lpVtbl -> SearchSOMs(This,pIGPMSearchCriteria,ppIGPMSOMCollection) ) + +#define IGPMDomain2_GetWMIFilter(This,bstrPath,ppWMIFilter) \ + ( (This)->lpVtbl -> GetWMIFilter(This,bstrPath,ppWMIFilter) ) + +#define IGPMDomain2_SearchWMIFilters(This,pIGPMSearchCriteria,ppIGPMWMIFilterCollection) \ + ( (This)->lpVtbl -> SearchWMIFilters(This,pIGPMSearchCriteria,ppIGPMWMIFilterCollection) ) + + +#define IGPMDomain2_CreateStarterGPO(This,ppnewTemplate) \ + ( (This)->lpVtbl -> CreateStarterGPO(This,ppnewTemplate) ) + +#define IGPMDomain2_CreateGPOFromStarterGPO(This,pGPOTemplate,ppnewGPO) \ + ( (This)->lpVtbl -> CreateGPOFromStarterGPO(This,pGPOTemplate,ppnewGPO) ) + +#define IGPMDomain2_GetStarterGPO(This,bstrGuid,ppTemplate) \ + ( (This)->lpVtbl -> GetStarterGPO(This,bstrGuid,ppTemplate) ) + +#define IGPMDomain2_SearchStarterGPOs(This,pIGPMSearchCriteria,ppIGPMTemplateCollection) \ + ( (This)->lpVtbl -> SearchStarterGPOs(This,pIGPMSearchCriteria,ppIGPMTemplateCollection) ) + +#define IGPMDomain2_LoadStarterGPO(This,bstrLoadFile,bOverwrite,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> LoadStarterGPO(This,bstrLoadFile,bOverwrite,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMDomain2_RestoreStarterGPO(This,pIGPMTmplBackup,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> RestoreStarterGPO(This,pIGPMTmplBackup,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMDomain2_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMConstants2_INTERFACE_DEFINED__ +#define __IGPMConstants2_INTERFACE_DEFINED__ + +/* interface IGPMConstants2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMConstants2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("05AE21B0-AC09-4032-A26F-9E7DA786DC19") + IGPMConstants2 : public IGPMConstants + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BackupTypeGPO( + /* [retval][out] */ __RPC__out GPMBackupType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BackupTypeStarterGPO( + /* [retval][out] */ __RPC__out GPMBackupType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StarterGPOTypeSystem( + /* [retval][out] */ __RPC__out GPMStarterGPOType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StarterGPOTypeCustom( + /* [retval][out] */ __RPC__out GPMStarterGPOType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyStarterGPOPermissions( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyStarterGPOEffectivePermissions( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyStarterGPODisplayName( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyStarterGPOID( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SearchPropertyStarterGPODomain( + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermStarterGPORead( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermStarterGPOEdit( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermStarterGPOFullControl( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PermStarterGPOCustom( + /* [retval][out] */ __RPC__out GPMPermissionType *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReportLegacy( + /* [retval][out] */ __RPC__out GPMReportingOptions *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ReportComments( + /* [retval][out] */ __RPC__out GPMReportingOptions *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMConstants2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMConstants2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMConstants2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMConstants2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMConstants2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMConstants2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMConstants2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMConstants2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermGPOApply) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermGPOApply )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermGPORead) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermGPORead )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermGPOEdit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermGPOEdit )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermGPOEditSecurityAndDelete) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermGPOEditSecurityAndDelete )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermGPOCustom) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermGPOCustom )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermWMIFilterEdit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermWMIFilterEdit )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermWMIFilterFullControl) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermWMIFilterFullControl )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermWMIFilterCustom) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermWMIFilterCustom )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMLink) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMLink )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMLogging) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMLogging )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMPlanning) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMPlanning )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMGPOCreate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMGPOCreate )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMWMICreate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMWMICreate )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_PermSOMWMIFullControl) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermSOMWMIFullControl )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOPermissions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOPermissions )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOEffectivePermissions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOEffectivePermissions )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPODisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPODisplayName )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOWMIFilter) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOWMIFilter )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOID )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOComputerExtensions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOComputerExtensions )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPOUserExtensions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPOUserExtensions )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertySOMLinks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertySOMLinks )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyGPODomain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyGPODomain )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchPropertyBackupMostRecent) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyBackupMostRecent )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchOpEquals) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchOpEquals )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchOpContains) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchOpContains )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchOpNotContains) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchOpNotContains )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SearchOpNotEquals) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchOpNotEquals )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchOperation *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_UsePDC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsePDC )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_UseAnyDC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseAnyDC )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DoNotUseW2KDC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DoNotUseW2KDC )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SOMSite) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SOMSite )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSOMType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SOMDomain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SOMDomain )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSOMType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SOMOU) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SOMOU )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSOMType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_SecurityFlags) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SecurityFlags )( + __RPC__in IGPMConstants2 * This, + /* [in] */ VARIANT_BOOL vbOwner, + /* [in] */ VARIANT_BOOL vbGroup, + /* [in] */ VARIANT_BOOL vbDACL, + /* [in] */ VARIANT_BOOL vbSACL, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DoNotValidateDC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DoNotValidateDC )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_ReportHTML) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportHTML )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMReportType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_ReportXML) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportXML )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMReportType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RSOPModeUnknown) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RSOPModeUnknown )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RSOPModePlanning) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RSOPModePlanning )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RSOPModeLogging) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RSOPModeLogging )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMRSOPMode *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeUser) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeUser )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeComputer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeComputer )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeLocalGroup) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeLocalGroup )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeGlobalGroup) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeGlobalGroup )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeUniversalGroup) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeUniversalGroup )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeUNCPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeUNCPath )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_EntryTypeUnknown) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EntryTypeUnknown )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMEntryType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DestinationOptionSameAsSource) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationOptionSameAsSource )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DestinationOptionNone) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationOptionNone )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DestinationOptionByRelativeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationOptionByRelativeName )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_DestinationOptionSet) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DestinationOptionSet )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMDestinationOption *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_MigrationTableOnly) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MigrationTableOnly )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_ProcessSecurity) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProcessSecurity )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopLoggingNoComputer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopLoggingNoComputer )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopLoggingNoUser) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopLoggingNoUser )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopPlanningAssumeSlowLink) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopPlanningAssumeSlowLink )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopPlanningLoopbackOption) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopPlanningLoopbackOption )( + __RPC__in IGPMConstants2 * This, + /* [in] */ VARIANT_BOOL vbMerge, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopPlanningAssumeUserWQLFilterTrue) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopPlanningAssumeUserWQLFilterTrue )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants, get_RsopPlanningAssumeCompWQLFilterTrue) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RsopPlanningAssumeCompWQLFilterTrue )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_BackupTypeGPO) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackupTypeGPO )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMBackupType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_BackupTypeStarterGPO) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BackupTypeStarterGPO )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMBackupType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_StarterGPOTypeSystem) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StarterGPOTypeSystem )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMStarterGPOType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_StarterGPOTypeCustom) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StarterGPOTypeCustom )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMStarterGPOType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_SearchPropertyStarterGPOPermissions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyStarterGPOPermissions )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_SearchPropertyStarterGPOEffectivePermissions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyStarterGPOEffectivePermissions )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_SearchPropertyStarterGPODisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyStarterGPODisplayName )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_SearchPropertyStarterGPOID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyStarterGPOID )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_SearchPropertyStarterGPODomain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SearchPropertyStarterGPODomain )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMSearchProperty *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_PermStarterGPORead) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermStarterGPORead )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_PermStarterGPOEdit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermStarterGPOEdit )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_PermStarterGPOFullControl) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermStarterGPOFullControl )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_PermStarterGPOCustom) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PermStarterGPOCustom )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMPermissionType *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_ReportLegacy) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportLegacy )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMReportingOptions *pVal); + + DECLSPEC_XFGVIRT(IGPMConstants2, get_ReportComments) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportComments )( + __RPC__in IGPMConstants2 * This, + /* [retval][out] */ __RPC__out GPMReportingOptions *pVal); + + END_INTERFACE + } IGPMConstants2Vtbl; + + interface IGPMConstants2 + { + CONST_VTBL struct IGPMConstants2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMConstants2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMConstants2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMConstants2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMConstants2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMConstants2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMConstants2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMConstants2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMConstants2_get_PermGPOApply(This,pVal) \ + ( (This)->lpVtbl -> get_PermGPOApply(This,pVal) ) + +#define IGPMConstants2_get_PermGPORead(This,pVal) \ + ( (This)->lpVtbl -> get_PermGPORead(This,pVal) ) + +#define IGPMConstants2_get_PermGPOEdit(This,pVal) \ + ( (This)->lpVtbl -> get_PermGPOEdit(This,pVal) ) + +#define IGPMConstants2_get_PermGPOEditSecurityAndDelete(This,pVal) \ + ( (This)->lpVtbl -> get_PermGPOEditSecurityAndDelete(This,pVal) ) + +#define IGPMConstants2_get_PermGPOCustom(This,pVal) \ + ( (This)->lpVtbl -> get_PermGPOCustom(This,pVal) ) + +#define IGPMConstants2_get_PermWMIFilterEdit(This,pVal) \ + ( (This)->lpVtbl -> get_PermWMIFilterEdit(This,pVal) ) + +#define IGPMConstants2_get_PermWMIFilterFullControl(This,pVal) \ + ( (This)->lpVtbl -> get_PermWMIFilterFullControl(This,pVal) ) + +#define IGPMConstants2_get_PermWMIFilterCustom(This,pVal) \ + ( (This)->lpVtbl -> get_PermWMIFilterCustom(This,pVal) ) + +#define IGPMConstants2_get_PermSOMLink(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMLink(This,pVal) ) + +#define IGPMConstants2_get_PermSOMLogging(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMLogging(This,pVal) ) + +#define IGPMConstants2_get_PermSOMPlanning(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMPlanning(This,pVal) ) + +#define IGPMConstants2_get_PermSOMGPOCreate(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMGPOCreate(This,pVal) ) + +#define IGPMConstants2_get_PermSOMWMICreate(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMWMICreate(This,pVal) ) + +#define IGPMConstants2_get_PermSOMWMIFullControl(This,pVal) \ + ( (This)->lpVtbl -> get_PermSOMWMIFullControl(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyGPOPermissions(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOPermissions(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyGPOEffectivePermissions(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOEffectivePermissions(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyGPODisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPODisplayName(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyGPOWMIFilter(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOWMIFilter(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyGPOID(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOID(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyGPOComputerExtensions(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOComputerExtensions(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyGPOUserExtensions(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPOUserExtensions(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertySOMLinks(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertySOMLinks(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyGPODomain(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyGPODomain(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyBackupMostRecent(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyBackupMostRecent(This,pVal) ) + +#define IGPMConstants2_get_SearchOpEquals(This,pVal) \ + ( (This)->lpVtbl -> get_SearchOpEquals(This,pVal) ) + +#define IGPMConstants2_get_SearchOpContains(This,pVal) \ + ( (This)->lpVtbl -> get_SearchOpContains(This,pVal) ) + +#define IGPMConstants2_get_SearchOpNotContains(This,pVal) \ + ( (This)->lpVtbl -> get_SearchOpNotContains(This,pVal) ) + +#define IGPMConstants2_get_SearchOpNotEquals(This,pVal) \ + ( (This)->lpVtbl -> get_SearchOpNotEquals(This,pVal) ) + +#define IGPMConstants2_get_UsePDC(This,pVal) \ + ( (This)->lpVtbl -> get_UsePDC(This,pVal) ) + +#define IGPMConstants2_get_UseAnyDC(This,pVal) \ + ( (This)->lpVtbl -> get_UseAnyDC(This,pVal) ) + +#define IGPMConstants2_get_DoNotUseW2KDC(This,pVal) \ + ( (This)->lpVtbl -> get_DoNotUseW2KDC(This,pVal) ) + +#define IGPMConstants2_get_SOMSite(This,pVal) \ + ( (This)->lpVtbl -> get_SOMSite(This,pVal) ) + +#define IGPMConstants2_get_SOMDomain(This,pVal) \ + ( (This)->lpVtbl -> get_SOMDomain(This,pVal) ) + +#define IGPMConstants2_get_SOMOU(This,pVal) \ + ( (This)->lpVtbl -> get_SOMOU(This,pVal) ) + +#define IGPMConstants2_get_SecurityFlags(This,vbOwner,vbGroup,vbDACL,vbSACL,pVal) \ + ( (This)->lpVtbl -> get_SecurityFlags(This,vbOwner,vbGroup,vbDACL,vbSACL,pVal) ) + +#define IGPMConstants2_get_DoNotValidateDC(This,pVal) \ + ( (This)->lpVtbl -> get_DoNotValidateDC(This,pVal) ) + +#define IGPMConstants2_get_ReportHTML(This,pVal) \ + ( (This)->lpVtbl -> get_ReportHTML(This,pVal) ) + +#define IGPMConstants2_get_ReportXML(This,pVal) \ + ( (This)->lpVtbl -> get_ReportXML(This,pVal) ) + +#define IGPMConstants2_get_RSOPModeUnknown(This,pVal) \ + ( (This)->lpVtbl -> get_RSOPModeUnknown(This,pVal) ) + +#define IGPMConstants2_get_RSOPModePlanning(This,pVal) \ + ( (This)->lpVtbl -> get_RSOPModePlanning(This,pVal) ) + +#define IGPMConstants2_get_RSOPModeLogging(This,pVal) \ + ( (This)->lpVtbl -> get_RSOPModeLogging(This,pVal) ) + +#define IGPMConstants2_get_EntryTypeUser(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeUser(This,pVal) ) + +#define IGPMConstants2_get_EntryTypeComputer(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeComputer(This,pVal) ) + +#define IGPMConstants2_get_EntryTypeLocalGroup(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeLocalGroup(This,pVal) ) + +#define IGPMConstants2_get_EntryTypeGlobalGroup(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeGlobalGroup(This,pVal) ) + +#define IGPMConstants2_get_EntryTypeUniversalGroup(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeUniversalGroup(This,pVal) ) + +#define IGPMConstants2_get_EntryTypeUNCPath(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeUNCPath(This,pVal) ) + +#define IGPMConstants2_get_EntryTypeUnknown(This,pVal) \ + ( (This)->lpVtbl -> get_EntryTypeUnknown(This,pVal) ) + +#define IGPMConstants2_get_DestinationOptionSameAsSource(This,pVal) \ + ( (This)->lpVtbl -> get_DestinationOptionSameAsSource(This,pVal) ) + +#define IGPMConstants2_get_DestinationOptionNone(This,pVal) \ + ( (This)->lpVtbl -> get_DestinationOptionNone(This,pVal) ) + +#define IGPMConstants2_get_DestinationOptionByRelativeName(This,pVal) \ + ( (This)->lpVtbl -> get_DestinationOptionByRelativeName(This,pVal) ) + +#define IGPMConstants2_get_DestinationOptionSet(This,pVal) \ + ( (This)->lpVtbl -> get_DestinationOptionSet(This,pVal) ) + +#define IGPMConstants2_get_MigrationTableOnly(This,pVal) \ + ( (This)->lpVtbl -> get_MigrationTableOnly(This,pVal) ) + +#define IGPMConstants2_get_ProcessSecurity(This,pVal) \ + ( (This)->lpVtbl -> get_ProcessSecurity(This,pVal) ) + +#define IGPMConstants2_get_RsopLoggingNoComputer(This,pVal) \ + ( (This)->lpVtbl -> get_RsopLoggingNoComputer(This,pVal) ) + +#define IGPMConstants2_get_RsopLoggingNoUser(This,pVal) \ + ( (This)->lpVtbl -> get_RsopLoggingNoUser(This,pVal) ) + +#define IGPMConstants2_get_RsopPlanningAssumeSlowLink(This,pVal) \ + ( (This)->lpVtbl -> get_RsopPlanningAssumeSlowLink(This,pVal) ) + +#define IGPMConstants2_get_RsopPlanningLoopbackOption(This,vbMerge,pVal) \ + ( (This)->lpVtbl -> get_RsopPlanningLoopbackOption(This,vbMerge,pVal) ) + +#define IGPMConstants2_get_RsopPlanningAssumeUserWQLFilterTrue(This,pVal) \ + ( (This)->lpVtbl -> get_RsopPlanningAssumeUserWQLFilterTrue(This,pVal) ) + +#define IGPMConstants2_get_RsopPlanningAssumeCompWQLFilterTrue(This,pVal) \ + ( (This)->lpVtbl -> get_RsopPlanningAssumeCompWQLFilterTrue(This,pVal) ) + + +#define IGPMConstants2_get_BackupTypeGPO(This,pVal) \ + ( (This)->lpVtbl -> get_BackupTypeGPO(This,pVal) ) + +#define IGPMConstants2_get_BackupTypeStarterGPO(This,pVal) \ + ( (This)->lpVtbl -> get_BackupTypeStarterGPO(This,pVal) ) + +#define IGPMConstants2_get_StarterGPOTypeSystem(This,pVal) \ + ( (This)->lpVtbl -> get_StarterGPOTypeSystem(This,pVal) ) + +#define IGPMConstants2_get_StarterGPOTypeCustom(This,pVal) \ + ( (This)->lpVtbl -> get_StarterGPOTypeCustom(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyStarterGPOPermissions(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyStarterGPOPermissions(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyStarterGPOEffectivePermissions(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyStarterGPOEffectivePermissions(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyStarterGPODisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyStarterGPODisplayName(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyStarterGPOID(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyStarterGPOID(This,pVal) ) + +#define IGPMConstants2_get_SearchPropertyStarterGPODomain(This,pVal) \ + ( (This)->lpVtbl -> get_SearchPropertyStarterGPODomain(This,pVal) ) + +#define IGPMConstants2_get_PermStarterGPORead(This,pVal) \ + ( (This)->lpVtbl -> get_PermStarterGPORead(This,pVal) ) + +#define IGPMConstants2_get_PermStarterGPOEdit(This,pVal) \ + ( (This)->lpVtbl -> get_PermStarterGPOEdit(This,pVal) ) + +#define IGPMConstants2_get_PermStarterGPOFullControl(This,pVal) \ + ( (This)->lpVtbl -> get_PermStarterGPOFullControl(This,pVal) ) + +#define IGPMConstants2_get_PermStarterGPOCustom(This,pVal) \ + ( (This)->lpVtbl -> get_PermStarterGPOCustom(This,pVal) ) + +#define IGPMConstants2_get_ReportLegacy(This,pVal) \ + ( (This)->lpVtbl -> get_ReportLegacy(This,pVal) ) + +#define IGPMConstants2_get_ReportComments(This,pVal) \ + ( (This)->lpVtbl -> get_ReportComments(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMConstants2_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMGPO2_INTERFACE_DEFINED__ +#define __IGPMGPO2_INTERFACE_DEFINED__ + +/* interface IGPMGPO2 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMGPO2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8A66A210-B78B-4d99-88E2-C306A817C925") + IGPMGPO2 : public IGPMGPO + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Description( + /* [in] */ __RPC__in BSTR newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMGPO2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMGPO2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMGPO2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMGPO2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMGPO2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMGPO2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMGPO2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMGPO2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMGPO, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, put_DisplayName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayName )( + __RPC__in IGPMGPO2 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ID )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_DomainName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainName )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ModificationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModificationTime )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(IGPMGPO, get_UserDSVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDSVersionNumber )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ComputerDSVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerDSVersionNumber )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_UserSysvolVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSysvolVersionNumber )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ComputerSysvolVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerSysvolVersionNumber )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, GetWMIFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetWMIFilter )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilter **ppIGPMWMIFilter); + + DECLSPEC_XFGVIRT(IGPMGPO, SetWMIFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetWMIFilter )( + __RPC__in IGPMGPO2 * This, + /* [in] */ __RPC__in_opt IGPMWMIFilter *pIGPMWMIFilter); + + DECLSPEC_XFGVIRT(IGPMGPO, SetUserEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetUserEnabled )( + __RPC__in IGPMGPO2 * This, + /* [in] */ VARIANT_BOOL vbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, SetComputerEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetComputerEnabled )( + __RPC__in IGPMGPO2 * This, + /* [in] */ VARIANT_BOOL vbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, IsUserEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsUserEnabled )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, IsComputerEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsComputerEnabled )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, GetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityInfo )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMSecurityInfo **ppSecurityInfo); + + DECLSPEC_XFGVIRT(IGPMGPO, SetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurityInfo )( + __RPC__in IGPMGPO2 * This, + /* [in] */ __RPC__in_opt IGPMSecurityInfo *pSecurityInfo); + + DECLSPEC_XFGVIRT(IGPMGPO, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IGPMGPO2 * This); + + DECLSPEC_XFGVIRT(IGPMGPO, Backup) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Backup )( + __RPC__in IGPMGPO2 * This, + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [in] */ __RPC__in BSTR bstrComment, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, Import) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Import )( + __RPC__in IGPMGPO2 * This, + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IGPMBackup *pIGPMBackup, + /* [optional][in] */ __RPC__in VARIANT *pvarMigrationTable, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, GenerateReport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReport )( + __RPC__in IGPMGPO2 * This, + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, GenerateReportToFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReportToFile )( + __RPC__in IGPMGPO2 * This, + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, CopyTo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )( + __RPC__in IGPMGPO2 * This, + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IGPMDomain *pIGPMDomain, + /* [optional][in] */ __RPC__in VARIANT *pvarNewDisplayName, + /* [optional][in] */ __RPC__in VARIANT *pvarMigrationTable, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, SetSecurityDescriptor) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurityDescriptor )( + __RPC__in IGPMGPO2 * This, + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IDispatch *pSD); + + DECLSPEC_XFGVIRT(IGPMGPO, GetSecurityDescriptor) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityDescriptor )( + __RPC__in IGPMGPO2 * This, + /* [in] */ long lFlags, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppSD); + + DECLSPEC_XFGVIRT(IGPMGPO, IsACLConsistent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsACLConsistent )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbConsistent); + + DECLSPEC_XFGVIRT(IGPMGPO, MakeACLConsistent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MakeACLConsistent )( + __RPC__in IGPMGPO2 * This); + + DECLSPEC_XFGVIRT(IGPMGPO2, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IGPMGPO2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO2, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IGPMGPO2 * This, + /* [in] */ __RPC__in BSTR newVal); + + END_INTERFACE + } IGPMGPO2Vtbl; + + interface IGPMGPO2 + { + CONST_VTBL struct IGPMGPO2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMGPO2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMGPO2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMGPO2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMGPO2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMGPO2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMGPO2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMGPO2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMGPO2_get_DisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_DisplayName(This,pVal) ) + +#define IGPMGPO2_put_DisplayName(This,newVal) \ + ( (This)->lpVtbl -> put_DisplayName(This,newVal) ) + +#define IGPMGPO2_get_Path(This,pVal) \ + ( (This)->lpVtbl -> get_Path(This,pVal) ) + +#define IGPMGPO2_get_ID(This,pVal) \ + ( (This)->lpVtbl -> get_ID(This,pVal) ) + +#define IGPMGPO2_get_DomainName(This,pVal) \ + ( (This)->lpVtbl -> get_DomainName(This,pVal) ) + +#define IGPMGPO2_get_CreationTime(This,pDate) \ + ( (This)->lpVtbl -> get_CreationTime(This,pDate) ) + +#define IGPMGPO2_get_ModificationTime(This,pDate) \ + ( (This)->lpVtbl -> get_ModificationTime(This,pDate) ) + +#define IGPMGPO2_get_UserDSVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_UserDSVersionNumber(This,pVal) ) + +#define IGPMGPO2_get_ComputerDSVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_ComputerDSVersionNumber(This,pVal) ) + +#define IGPMGPO2_get_UserSysvolVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_UserSysvolVersionNumber(This,pVal) ) + +#define IGPMGPO2_get_ComputerSysvolVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_ComputerSysvolVersionNumber(This,pVal) ) + +#define IGPMGPO2_GetWMIFilter(This,ppIGPMWMIFilter) \ + ( (This)->lpVtbl -> GetWMIFilter(This,ppIGPMWMIFilter) ) + +#define IGPMGPO2_SetWMIFilter(This,pIGPMWMIFilter) \ + ( (This)->lpVtbl -> SetWMIFilter(This,pIGPMWMIFilter) ) + +#define IGPMGPO2_SetUserEnabled(This,vbEnabled) \ + ( (This)->lpVtbl -> SetUserEnabled(This,vbEnabled) ) + +#define IGPMGPO2_SetComputerEnabled(This,vbEnabled) \ + ( (This)->lpVtbl -> SetComputerEnabled(This,vbEnabled) ) + +#define IGPMGPO2_IsUserEnabled(This,pvbEnabled) \ + ( (This)->lpVtbl -> IsUserEnabled(This,pvbEnabled) ) + +#define IGPMGPO2_IsComputerEnabled(This,pvbEnabled) \ + ( (This)->lpVtbl -> IsComputerEnabled(This,pvbEnabled) ) + +#define IGPMGPO2_GetSecurityInfo(This,ppSecurityInfo) \ + ( (This)->lpVtbl -> GetSecurityInfo(This,ppSecurityInfo) ) + +#define IGPMGPO2_SetSecurityInfo(This,pSecurityInfo) \ + ( (This)->lpVtbl -> SetSecurityInfo(This,pSecurityInfo) ) + +#define IGPMGPO2_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IGPMGPO2_Backup(This,bstrBackupDir,bstrComment,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> Backup(This,bstrBackupDir,bstrComment,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO2_Import(This,lFlags,pIGPMBackup,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> Import(This,lFlags,pIGPMBackup,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO2_GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO2_GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) ) + +#define IGPMGPO2_CopyTo(This,lFlags,pIGPMDomain,pvarNewDisplayName,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> CopyTo(This,lFlags,pIGPMDomain,pvarNewDisplayName,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO2_SetSecurityDescriptor(This,lFlags,pSD) \ + ( (This)->lpVtbl -> SetSecurityDescriptor(This,lFlags,pSD) ) + +#define IGPMGPO2_GetSecurityDescriptor(This,lFlags,ppSD) \ + ( (This)->lpVtbl -> GetSecurityDescriptor(This,lFlags,ppSD) ) + +#define IGPMGPO2_IsACLConsistent(This,pvbConsistent) \ + ( (This)->lpVtbl -> IsACLConsistent(This,pvbConsistent) ) + +#define IGPMGPO2_MakeACLConsistent(This) \ + ( (This)->lpVtbl -> MakeACLConsistent(This) ) + + +#define IGPMGPO2_get_Description(This,pVal) \ + ( (This)->lpVtbl -> get_Description(This,pVal) ) + +#define IGPMGPO2_put_Description(This,newVal) \ + ( (This)->lpVtbl -> put_Description(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMGPO2_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMDomain3_INTERFACE_DEFINED__ +#define __IGPMDomain3_INTERFACE_DEFINED__ + +/* interface IGPMDomain3 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMDomain3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0077FDFE-88C7-4acf-A11D-D10A7C310A03") + IGPMDomain3 : public IGPMDomain2 + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GenerateReport( + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InfrastructureDC( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InfrastructureDC( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InfrastructureFlags( + /* [in] */ DWORD dwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMDomain3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMDomain3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMDomain3 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMDomain3 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMDomain3 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMDomain3 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMDomain, get_DomainController) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainController )( + __RPC__in IGPMDomain3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMDomain, get_Domain) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Domain )( + __RPC__in IGPMDomain3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMDomain, CreateGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateGPO )( + __RPC__in IGPMDomain3 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppNewGPO); + + DECLSPEC_XFGVIRT(IGPMDomain, GetGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetGPO )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in BSTR bstrGuid, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppGPO); + + DECLSPEC_XFGVIRT(IGPMDomain, SearchGPOs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchGPOs )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPOCollection **ppIGPMGPOCollection); + + DECLSPEC_XFGVIRT(IGPMDomain, RestoreGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RestoreGPO )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in_opt IGPMBackup *pIGPMBackup, + /* [in] */ long lDCFlags, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMDomain, GetSOM) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSOM )( + __RPC__in IGPMDomain3 * This, + /* [unique][in] */ __RPC__in_opt BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOM **ppSOM); + + DECLSPEC_XFGVIRT(IGPMDomain, SearchSOMs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchSOMs )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMSOMCollection **ppIGPMSOMCollection); + + DECLSPEC_XFGVIRT(IGPMDomain, GetWMIFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetWMIFilter )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in BSTR bstrPath, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilter **ppWMIFilter); + + DECLSPEC_XFGVIRT(IGPMDomain, SearchWMIFilters) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchWMIFilters )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilterCollection **ppIGPMWMIFilterCollection); + + DECLSPEC_XFGVIRT(IGPMDomain2, CreateStarterGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateStarterGPO )( + __RPC__in IGPMDomain3 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMStarterGPO **ppnewTemplate); + + DECLSPEC_XFGVIRT(IGPMDomain2, CreateGPOFromStarterGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateGPOFromStarterGPO )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in_opt IGPMStarterGPO *pGPOTemplate, + /* [retval][out] */ __RPC__deref_out_opt IGPMGPO **ppnewGPO); + + DECLSPEC_XFGVIRT(IGPMDomain2, GetStarterGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetStarterGPO )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in BSTR bstrGuid, + /* [retval][out] */ __RPC__deref_out_opt IGPMStarterGPO **ppTemplate); + + DECLSPEC_XFGVIRT(IGPMDomain2, SearchStarterGPOs) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SearchStarterGPOs )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in_opt IGPMSearchCriteria *pIGPMSearchCriteria, + /* [retval][out] */ __RPC__deref_out_opt IGPMStarterGPOCollection **ppIGPMTemplateCollection); + + DECLSPEC_XFGVIRT(IGPMDomain2, LoadStarterGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LoadStarterGPO )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in BSTR bstrLoadFile, + /* [in] */ VARIANT_BOOL bOverwrite, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMDomain2, RestoreStarterGPO) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RestoreStarterGPO )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in_opt IGPMStarterGPOBackup *pIGPMTmplBackup, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMDomain3, GenerateReport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReport )( + __RPC__in IGPMDomain3 * This, + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMDomain3, get_InfrastructureDC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InfrastructureDC )( + __RPC__in IGPMDomain3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMDomain3, put_InfrastructureDC) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InfrastructureDC )( + __RPC__in IGPMDomain3 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IGPMDomain3, put_InfrastructureFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InfrastructureFlags )( + __RPC__in IGPMDomain3 * This, + /* [in] */ DWORD dwFlags); + + END_INTERFACE + } IGPMDomain3Vtbl; + + interface IGPMDomain3 + { + CONST_VTBL struct IGPMDomain3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMDomain3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMDomain3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMDomain3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMDomain3_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMDomain3_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMDomain3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMDomain3_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMDomain3_get_DomainController(This,pVal) \ + ( (This)->lpVtbl -> get_DomainController(This,pVal) ) + +#define IGPMDomain3_get_Domain(This,pVal) \ + ( (This)->lpVtbl -> get_Domain(This,pVal) ) + +#define IGPMDomain3_CreateGPO(This,ppNewGPO) \ + ( (This)->lpVtbl -> CreateGPO(This,ppNewGPO) ) + +#define IGPMDomain3_GetGPO(This,bstrGuid,ppGPO) \ + ( (This)->lpVtbl -> GetGPO(This,bstrGuid,ppGPO) ) + +#define IGPMDomain3_SearchGPOs(This,pIGPMSearchCriteria,ppIGPMGPOCollection) \ + ( (This)->lpVtbl -> SearchGPOs(This,pIGPMSearchCriteria,ppIGPMGPOCollection) ) + +#define IGPMDomain3_RestoreGPO(This,pIGPMBackup,lDCFlags,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> RestoreGPO(This,pIGPMBackup,lDCFlags,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMDomain3_GetSOM(This,bstrPath,ppSOM) \ + ( (This)->lpVtbl -> GetSOM(This,bstrPath,ppSOM) ) + +#define IGPMDomain3_SearchSOMs(This,pIGPMSearchCriteria,ppIGPMSOMCollection) \ + ( (This)->lpVtbl -> SearchSOMs(This,pIGPMSearchCriteria,ppIGPMSOMCollection) ) + +#define IGPMDomain3_GetWMIFilter(This,bstrPath,ppWMIFilter) \ + ( (This)->lpVtbl -> GetWMIFilter(This,bstrPath,ppWMIFilter) ) + +#define IGPMDomain3_SearchWMIFilters(This,pIGPMSearchCriteria,ppIGPMWMIFilterCollection) \ + ( (This)->lpVtbl -> SearchWMIFilters(This,pIGPMSearchCriteria,ppIGPMWMIFilterCollection) ) + + +#define IGPMDomain3_CreateStarterGPO(This,ppnewTemplate) \ + ( (This)->lpVtbl -> CreateStarterGPO(This,ppnewTemplate) ) + +#define IGPMDomain3_CreateGPOFromStarterGPO(This,pGPOTemplate,ppnewGPO) \ + ( (This)->lpVtbl -> CreateGPOFromStarterGPO(This,pGPOTemplate,ppnewGPO) ) + +#define IGPMDomain3_GetStarterGPO(This,bstrGuid,ppTemplate) \ + ( (This)->lpVtbl -> GetStarterGPO(This,bstrGuid,ppTemplate) ) + +#define IGPMDomain3_SearchStarterGPOs(This,pIGPMSearchCriteria,ppIGPMTemplateCollection) \ + ( (This)->lpVtbl -> SearchStarterGPOs(This,pIGPMSearchCriteria,ppIGPMTemplateCollection) ) + +#define IGPMDomain3_LoadStarterGPO(This,bstrLoadFile,bOverwrite,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> LoadStarterGPO(This,bstrLoadFile,bOverwrite,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMDomain3_RestoreStarterGPO(This,pIGPMTmplBackup,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> RestoreStarterGPO(This,pIGPMTmplBackup,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + + +#define IGPMDomain3_GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMDomain3_get_InfrastructureDC(This,pVal) \ + ( (This)->lpVtbl -> get_InfrastructureDC(This,pVal) ) + +#define IGPMDomain3_put_InfrastructureDC(This,newVal) \ + ( (This)->lpVtbl -> put_InfrastructureDC(This,newVal) ) + +#define IGPMDomain3_put_InfrastructureFlags(This,dwFlags) \ + ( (This)->lpVtbl -> put_InfrastructureFlags(This,dwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMDomain3_INTERFACE_DEFINED__ */ + + +#ifndef __IGPMGPO3_INTERFACE_DEFINED__ +#define __IGPMGPO3_INTERFACE_DEFINED__ + +/* interface IGPMGPO3 */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IGPMGPO3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7CF123A1-F94A-4112-BFAE-6AA1DB9CB248") + IGPMGPO3 : public IGPMGPO2 + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InfrastructureDC( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InfrastructureDC( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InfrastructureFlags( + /* [in] */ DWORD dwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IGPMGPO3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IGPMGPO3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IGPMGPO3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IGPMGPO3 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IGPMGPO3 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IGPMGPO3 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IGPMGPO3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IGPMGPO3 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IGPMGPO, get_DisplayName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisplayName )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, put_DisplayName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisplayName )( + __RPC__in IGPMGPO3 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ID) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ID )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_DomainName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DomainName )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ModificationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModificationTime )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__out DATE *pDate); + + DECLSPEC_XFGVIRT(IGPMGPO, get_UserDSVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserDSVersionNumber )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ComputerDSVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerDSVersionNumber )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_UserSysvolVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UserSysvolVersionNumber )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, get_ComputerSysvolVersionNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ComputerSysvolVersionNumber )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO, GetWMIFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetWMIFilter )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMWMIFilter **ppIGPMWMIFilter); + + DECLSPEC_XFGVIRT(IGPMGPO, SetWMIFilter) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetWMIFilter )( + __RPC__in IGPMGPO3 * This, + /* [in] */ __RPC__in_opt IGPMWMIFilter *pIGPMWMIFilter); + + DECLSPEC_XFGVIRT(IGPMGPO, SetUserEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetUserEnabled )( + __RPC__in IGPMGPO3 * This, + /* [in] */ VARIANT_BOOL vbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, SetComputerEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetComputerEnabled )( + __RPC__in IGPMGPO3 * This, + /* [in] */ VARIANT_BOOL vbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, IsUserEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsUserEnabled )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, IsComputerEnabled) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsComputerEnabled )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbEnabled); + + DECLSPEC_XFGVIRT(IGPMGPO, GetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityInfo )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__deref_out_opt IGPMSecurityInfo **ppSecurityInfo); + + DECLSPEC_XFGVIRT(IGPMGPO, SetSecurityInfo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurityInfo )( + __RPC__in IGPMGPO3 * This, + /* [in] */ __RPC__in_opt IGPMSecurityInfo *pSecurityInfo); + + DECLSPEC_XFGVIRT(IGPMGPO, Delete) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Delete )( + __RPC__in IGPMGPO3 * This); + + DECLSPEC_XFGVIRT(IGPMGPO, Backup) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Backup )( + __RPC__in IGPMGPO3 * This, + /* [in] */ __RPC__in BSTR bstrBackupDir, + /* [in] */ __RPC__in BSTR bstrComment, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, Import) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Import )( + __RPC__in IGPMGPO3 * This, + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IGPMBackup *pIGPMBackup, + /* [optional][in] */ __RPC__in VARIANT *pvarMigrationTable, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, GenerateReport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReport )( + __RPC__in IGPMGPO3 * This, + /* [in] */ GPMReportType gpmReportType, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, GenerateReportToFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GenerateReportToFile )( + __RPC__in IGPMGPO3 * This, + /* [in] */ GPMReportType gpmReportType, + /* [in] */ __RPC__in BSTR bstrTargetFilePath, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, CopyTo) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )( + __RPC__in IGPMGPO3 * This, + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IGPMDomain *pIGPMDomain, + /* [optional][in] */ __RPC__in VARIANT *pvarNewDisplayName, + /* [optional][in] */ __RPC__in VARIANT *pvarMigrationTable, + /* [optional][in] */ __RPC__in VARIANT *pvarGPMProgress, + /* [optional][out] */ __RPC__out VARIANT *pvarGPMCancel, + /* [retval][out] */ __RPC__deref_out_opt IGPMResult **ppIGPMResult); + + DECLSPEC_XFGVIRT(IGPMGPO, SetSecurityDescriptor) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetSecurityDescriptor )( + __RPC__in IGPMGPO3 * This, + /* [in] */ long lFlags, + /* [in] */ __RPC__in_opt IDispatch *pSD); + + DECLSPEC_XFGVIRT(IGPMGPO, GetSecurityDescriptor) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecurityDescriptor )( + __RPC__in IGPMGPO3 * This, + /* [in] */ long lFlags, + /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppSD); + + DECLSPEC_XFGVIRT(IGPMGPO, IsACLConsistent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsACLConsistent )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pvbConsistent); + + DECLSPEC_XFGVIRT(IGPMGPO, MakeACLConsistent) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *MakeACLConsistent )( + __RPC__in IGPMGPO3 * This); + + DECLSPEC_XFGVIRT(IGPMGPO2, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO2, put_Description) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Description )( + __RPC__in IGPMGPO3 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IGPMGPO3, get_InfrastructureDC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InfrastructureDC )( + __RPC__in IGPMGPO3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IGPMGPO3, put_InfrastructureDC) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InfrastructureDC )( + __RPC__in IGPMGPO3 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IGPMGPO3, put_InfrastructureFlags) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InfrastructureFlags )( + __RPC__in IGPMGPO3 * This, + /* [in] */ DWORD dwFlags); + + END_INTERFACE + } IGPMGPO3Vtbl; + + interface IGPMGPO3 + { + CONST_VTBL struct IGPMGPO3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IGPMGPO3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IGPMGPO3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IGPMGPO3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IGPMGPO3_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IGPMGPO3_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IGPMGPO3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IGPMGPO3_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IGPMGPO3_get_DisplayName(This,pVal) \ + ( (This)->lpVtbl -> get_DisplayName(This,pVal) ) + +#define IGPMGPO3_put_DisplayName(This,newVal) \ + ( (This)->lpVtbl -> put_DisplayName(This,newVal) ) + +#define IGPMGPO3_get_Path(This,pVal) \ + ( (This)->lpVtbl -> get_Path(This,pVal) ) + +#define IGPMGPO3_get_ID(This,pVal) \ + ( (This)->lpVtbl -> get_ID(This,pVal) ) + +#define IGPMGPO3_get_DomainName(This,pVal) \ + ( (This)->lpVtbl -> get_DomainName(This,pVal) ) + +#define IGPMGPO3_get_CreationTime(This,pDate) \ + ( (This)->lpVtbl -> get_CreationTime(This,pDate) ) + +#define IGPMGPO3_get_ModificationTime(This,pDate) \ + ( (This)->lpVtbl -> get_ModificationTime(This,pDate) ) + +#define IGPMGPO3_get_UserDSVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_UserDSVersionNumber(This,pVal) ) + +#define IGPMGPO3_get_ComputerDSVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_ComputerDSVersionNumber(This,pVal) ) + +#define IGPMGPO3_get_UserSysvolVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_UserSysvolVersionNumber(This,pVal) ) + +#define IGPMGPO3_get_ComputerSysvolVersionNumber(This,pVal) \ + ( (This)->lpVtbl -> get_ComputerSysvolVersionNumber(This,pVal) ) + +#define IGPMGPO3_GetWMIFilter(This,ppIGPMWMIFilter) \ + ( (This)->lpVtbl -> GetWMIFilter(This,ppIGPMWMIFilter) ) + +#define IGPMGPO3_SetWMIFilter(This,pIGPMWMIFilter) \ + ( (This)->lpVtbl -> SetWMIFilter(This,pIGPMWMIFilter) ) + +#define IGPMGPO3_SetUserEnabled(This,vbEnabled) \ + ( (This)->lpVtbl -> SetUserEnabled(This,vbEnabled) ) + +#define IGPMGPO3_SetComputerEnabled(This,vbEnabled) \ + ( (This)->lpVtbl -> SetComputerEnabled(This,vbEnabled) ) + +#define IGPMGPO3_IsUserEnabled(This,pvbEnabled) \ + ( (This)->lpVtbl -> IsUserEnabled(This,pvbEnabled) ) + +#define IGPMGPO3_IsComputerEnabled(This,pvbEnabled) \ + ( (This)->lpVtbl -> IsComputerEnabled(This,pvbEnabled) ) + +#define IGPMGPO3_GetSecurityInfo(This,ppSecurityInfo) \ + ( (This)->lpVtbl -> GetSecurityInfo(This,ppSecurityInfo) ) + +#define IGPMGPO3_SetSecurityInfo(This,pSecurityInfo) \ + ( (This)->lpVtbl -> SetSecurityInfo(This,pSecurityInfo) ) + +#define IGPMGPO3_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IGPMGPO3_Backup(This,bstrBackupDir,bstrComment,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> Backup(This,bstrBackupDir,bstrComment,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO3_Import(This,lFlags,pIGPMBackup,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> Import(This,lFlags,pIGPMBackup,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO3_GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReport(This,gpmReportType,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO3_GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) \ + ( (This)->lpVtbl -> GenerateReportToFile(This,gpmReportType,bstrTargetFilePath,ppIGPMResult) ) + +#define IGPMGPO3_CopyTo(This,lFlags,pIGPMDomain,pvarNewDisplayName,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) \ + ( (This)->lpVtbl -> CopyTo(This,lFlags,pIGPMDomain,pvarNewDisplayName,pvarMigrationTable,pvarGPMProgress,pvarGPMCancel,ppIGPMResult) ) + +#define IGPMGPO3_SetSecurityDescriptor(This,lFlags,pSD) \ + ( (This)->lpVtbl -> SetSecurityDescriptor(This,lFlags,pSD) ) + +#define IGPMGPO3_GetSecurityDescriptor(This,lFlags,ppSD) \ + ( (This)->lpVtbl -> GetSecurityDescriptor(This,lFlags,ppSD) ) + +#define IGPMGPO3_IsACLConsistent(This,pvbConsistent) \ + ( (This)->lpVtbl -> IsACLConsistent(This,pvbConsistent) ) + +#define IGPMGPO3_MakeACLConsistent(This) \ + ( (This)->lpVtbl -> MakeACLConsistent(This) ) + + +#define IGPMGPO3_get_Description(This,pVal) \ + ( (This)->lpVtbl -> get_Description(This,pVal) ) + +#define IGPMGPO3_put_Description(This,newVal) \ + ( (This)->lpVtbl -> put_Description(This,newVal) ) + + +#define IGPMGPO3_get_InfrastructureDC(This,pVal) \ + ( (This)->lpVtbl -> get_InfrastructureDC(This,pVal) ) + +#define IGPMGPO3_put_InfrastructureDC(This,newVal) \ + ( (This)->lpVtbl -> put_InfrastructureDC(This,newVal) ) + +#define IGPMGPO3_put_InfrastructureFlags(This,dwFlags) \ + ( (This)->lpVtbl -> put_InfrastructureFlags(This,dwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IGPMGPO3_INTERFACE_DEFINED__ */ + + + +#ifndef __GPMGMTLib_LIBRARY_DEFINED__ +#define __GPMGMTLib_LIBRARY_DEFINED__ + +/* library GPMGMTLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_GPMGMTLib; + +EXTERN_C const CLSID CLSID_GPM; + +#ifdef __cplusplus + +class DECLSPEC_UUID("F5694708-88FE-4B35-BABF-E56162D5FBC8") +GPM; +#endif + +EXTERN_C const CLSID CLSID_GPMDomain; + +#ifdef __cplusplus + +class DECLSPEC_UUID("710901BE-1050-4CB1-838A-C5CFF259E183") +GPMDomain; +#endif + +EXTERN_C const CLSID CLSID_GPMSitesContainer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("229F5C42-852C-4B30-945F-C522BE9BD386") +GPMSitesContainer; +#endif + +EXTERN_C const CLSID CLSID_GPMBackupDir; + +#ifdef __cplusplus + +class DECLSPEC_UUID("FCE4A59D-0F21-4AFA-B859-E6D0C62CD10C") +GPMBackupDir; +#endif + +EXTERN_C const CLSID CLSID_GPMSOM; + +#ifdef __cplusplus + +class DECLSPEC_UUID("32D93FAC-450E-44CF-829C-8B22FF6BDAE1") +GPMSOM; +#endif + +EXTERN_C const CLSID CLSID_GPMSearchCriteria; + +#ifdef __cplusplus + +class DECLSPEC_UUID("17AACA26-5CE0-44FA-8CC0-5259E6483566") +GPMSearchCriteria; +#endif + +EXTERN_C const CLSID CLSID_GPMPermission; + +#ifdef __cplusplus + +class DECLSPEC_UUID("5871A40A-E9C0-46EC-913E-944EF9225A94") +GPMPermission; +#endif + +EXTERN_C const CLSID CLSID_GPMSecurityInfo; + +#ifdef __cplusplus + +class DECLSPEC_UUID("547A5E8F-9162-4516-A4DF-9DDB9686D846") +GPMSecurityInfo; +#endif + +EXTERN_C const CLSID CLSID_GPMBackup; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ED1A54B8-5EFA-482A-93C0-8AD86F0D68C3") +GPMBackup; +#endif + +EXTERN_C const CLSID CLSID_GPMBackupCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("EB8F035B-70DB-4A9F-9676-37C25994E9DC") +GPMBackupCollection; +#endif + +EXTERN_C const CLSID CLSID_GPMSOMCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("24C1F147-3720-4F5B-A9C3-06B4E4F931D2") +GPMSOMCollection; +#endif + +EXTERN_C const CLSID CLSID_GPMWMIFilter; + +#ifdef __cplusplus + +class DECLSPEC_UUID("626745D8-0DEA-4062-BF60-CFC5B1CA1286") +GPMWMIFilter; +#endif + +EXTERN_C const CLSID CLSID_GPMWMIFilterCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("74DC6D28-E820-47D6-A0B8-F08D93D7FA33") +GPMWMIFilterCollection; +#endif + +EXTERN_C const CLSID CLSID_GPMRSOP; + +#ifdef __cplusplus + +class DECLSPEC_UUID("489B0CAF-9EC2-4EB7-91F5-B6F71D43DA8C") +GPMRSOP; +#endif + +EXTERN_C const CLSID CLSID_GPMGPO; + +#ifdef __cplusplus + +class DECLSPEC_UUID("D2CE2994-59B5-4064-B581-4D68486A16C4") +GPMGPO; +#endif + +EXTERN_C const CLSID CLSID_GPMGPOCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7A057325-832D-4DE3-A41F-C780436A4E09") +GPMGPOCollection; +#endif + +EXTERN_C const CLSID CLSID_GPMGPOLink; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C1DF9880-5303-42C6-8A3C-0488E1BF7364") +GPMGPOLink; +#endif + +EXTERN_C const CLSID CLSID_GPMGPOLinksCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("F6ED581A-49A5-47E2-B771-FD8DC02B6259") +GPMGPOLinksCollection; +#endif + +EXTERN_C const CLSID CLSID_GPMAsyncCancel; + +#ifdef __cplusplus + +class DECLSPEC_UUID("372796A9-76EC-479D-AD6C-556318ED5F9D") +GPMAsyncCancel; +#endif + +EXTERN_C const CLSID CLSID_GPMStatusMsgCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2824E4BE-4BCC-4CAC-9E60-0E3ED7F12496") +GPMStatusMsgCollection; +#endif + +EXTERN_C const CLSID CLSID_GPMStatusMessage; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4B77CC94-D255-409B-BC62-370881715A19") +GPMStatusMessage; +#endif + +EXTERN_C const CLSID CLSID_GPMTrustee; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C54A700D-19B6-4211-BCB0-E8E2475E471E") +GPMTrustee; +#endif + +EXTERN_C const CLSID CLSID_GPMClientSideExtension; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C1A2E70E-659C-4B1A-940B-F88B0AF9C8A4") +GPMClientSideExtension; +#endif + +EXTERN_C const CLSID CLSID_GPMCSECollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CF92B828-2D44-4B61-B10A-B327AFD42DA8") +GPMCSECollection; +#endif + +EXTERN_C const CLSID CLSID_GPMConstants; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3855E880-CD9E-4D0C-9EAF-1579283A1888") +GPMConstants; +#endif + +EXTERN_C const CLSID CLSID_GPMResult; + +#ifdef __cplusplus + +class DECLSPEC_UUID("92101AC0-9287-4206-A3B2-4BDB73D225F6") +GPMResult; +#endif + +EXTERN_C const CLSID CLSID_GPMMapEntryCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("0CF75D5B-A3A1-4C55-B4FE-9E149C41F66D") +GPMMapEntryCollection; +#endif + +EXTERN_C const CLSID CLSID_GPMMapEntry; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8C975253-5431-4471-B35D-0626C928258A") +GPMMapEntry; +#endif + +EXTERN_C const CLSID CLSID_GPMMigrationTable; + +#ifdef __cplusplus + +class DECLSPEC_UUID("55AF4043-2A06-4F72-ABEF-631B44079C76") +GPMMigrationTable; +#endif + +EXTERN_C const CLSID CLSID_GPMBackupDirEx; + +#ifdef __cplusplus + +class DECLSPEC_UUID("E8C0988A-CF03-4c5b-8BE2-2AA9AD32AADA") +GPMBackupDirEx; +#endif + +EXTERN_C const CLSID CLSID_GPMStarterGPOBackupCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("E75EA59D-1AEB-4cb5-A78A-281DAA582406") +GPMStarterGPOBackupCollection; +#endif + +EXTERN_C const CLSID CLSID_GPMStarterGPOBackup; + +#ifdef __cplusplus + +class DECLSPEC_UUID("389E400A-D8EF-455b-A861-5F9CA34A6A02") +GPMStarterGPOBackup; +#endif + +EXTERN_C const CLSID CLSID_GPMTemplate; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ECF1D454-71DA-4e2f-A8C0-8185465911D9") +GPMTemplate; +#endif + +EXTERN_C const CLSID CLSID_GPMStarterGPOCollection; + +#ifdef __cplusplus + +class DECLSPEC_UUID("82F8AA8B-49BA-43b2-956E-3397F9B94C3A") +GPMStarterGPOCollection; +#endif +#endif /* __GPMGMTLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_gpmgmt_0000_0042 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_gpmgmt_0000_0042_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_gpmgmt_0000_0042_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/gpmgmt.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gpmgmt.idl new file mode 100644 index 0000000000000000000000000000000000000000..2590ab1cf425b0b03a867b1d802cf0fa096ae961 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/gpmgmt.idl @@ -0,0 +1,1457 @@ +// gpmgmt.idl : IDL source for gpmgmt.dll +// + +// This file will be processed by the MIDL tool to +// produce the type library (gpmgmt.tlb) and marshalling code. + + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +typedef enum {rsopUnknown, rsopPlanning, rsopLogging} GPMRSOPMode; + +// +// The following GPMPermissionType constants have this structure: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---------------+---------------+---------------+---------------+ +// | Object type flags | Category | Level | +// +---------------+---------------+---------------+---------------+ +// + +typedef enum { + // + // GPO permissions + // + + permGPOApply = 0x00010000, + + permGPORead = 0x00010100, + permGPOEdit = 0x00010101, + permGPOEditSecurityAndDelete= 0x00010102, + permGPOCustom = 0x00010103, + + // + // Per-filter WMI filter permissions + // + + permWMIFilterEdit = 0x00020000, + permWMIFilterFullControl = 0x00020001, + permWMIFilterCustom = 0x00020002, + + // + // SOM permissions + // + + // Sites, domains, OUs + + permSOMLink = 0x001C0000, + + // Domains, OUs + + permSOMLogging = 0x00180100, + + permSOMPlanning = 0x00180200, + + // Domains + + permSOMWMICreate = 0x00100300, + permSOMWMIFullControl = 0x00100301, + + permSOMGPOCreate = 0x00100400, + + // + // Template permissions + // + + permStarterGPORead = 0x00030500, + permStarterGPOEdit = 0x00030501, + permStarterGPOFullControl = 0x00030502, + permStarterGPOCustom = 0x00030503, + + permSOMStarterGPOCreate = 0x00100500 // Added: v-joel May 30, 06 to suppot Templates folder delegation +} GPMPermissionType; + +typedef enum {gpoPermissions, gpoEffectivePermissions, gpoDisplayName, gpoWMIFilter, gpoID, + gpoComputerExtensions, gpoUserExtensions, somLinks, gpoDomain, backupMostRecent, + starterGPOPermissions, starterGPOEffectivePermissions, starterGPODisplayName, starterGPOID, + starterGPODomain} GPMSearchProperty; + +typedef enum {opEquals, opContains, opNotContains, opNotEquals} GPMSearchOperation; + + // + // repXML, repHTML are the standard reports. repInfraXML is the Infrastructure XML + // repClientHealthXML is for client health reporting + // +typedef enum {repXML, repHTML, repInfraXML, repInfraRefreshXML, repClientHealthXML, repClientHealthRefreshXML} GPMReportType; + +typedef enum { + typeUser = 0, + typeComputer, + typeLocalGroup, + typeGlobalGroup, + typeUniversalGroup, + typeUNCPath, + typeUnknown + } GPMEntryType; + +typedef enum { + opDestinationSameAsSource = 0, + opDestinationNone, + opDestinationByRelativeName, + opDestinationSet + } GPMDestinationOption; + +typedef enum { + opReportLegacy = 0, + opReportComments = 1, + } GPMReportingOptions; + +const long GPM_USE_PDC = 0; +const long GPM_USE_ANYDC = 1; +const long GPM_DONOTUSE_W2KDC = 2; + +const long GPM_DONOT_VALIDATEDC = 1; + +const long GPM_MIGRATIONTABLE_ONLY = 0x1; +const long GPM_PROCESS_SECURITY = 0x2; + +const long RSOP_NO_COMPUTER = 0x10000; +const long RSOP_NO_USER = 0x20000; + +const long RSOP_PLANNING_ASSUME_SLOW_LINK = 0x1; +const long RSOP_PLANNING_ASSUME_LOOPBACK_MERGE = 0x2; +const long RSOP_PLANNING_ASSUME_LOOPBACK_REPLACE = 0x4; +const long RSOP_PLANNING_ASSUME_USER_WQLFILTER_TRUE = 0x8; +const long RSOP_PLANNING_ASSUME_COMP_WQLFILTER_TRUE = 0x10; + + +import "oaidl.idl"; +import "ocidl.idl"; + +interface IGPM; +interface IGPMDomain; +interface IGPMSitesContainer; +interface IGPMBackupDir; +interface IGPMSearchCriteria; +interface IGPMPermission; +interface IGPMClientSideExtension; +interface IGPMCSECollection; + +interface IGPMGPO; +interface IGPMGPOCollection; + +interface IGPMWMIFilter; +interface IGPMWMIFilterCollection; + +interface IGPMSecurityInfo; + +interface IGPMBackup; +interface IGPMBackupCollection; + +interface IGPMSOM; +interface IGPMSOMCollection; + +interface IGPMGPOLink; +interface IGPMGPOLinksCollection; + +interface IGPMRSOP; + +interface IGPMStatusMessage; +interface IGPMStatusMsgCollection; + +interface IGPMAsyncCancel; +interface IGPMAsyncProgress; +interface IGPMTrustee; +interface IGPMConstants; +interface IGPMResult; +interface IGPMMigrationTable; +interface IGPMMapEntryCollection; +interface IGPMMapEntry; + + [ + object, + uuid(F5FAE809-3BD6-4DA9-A65E-17665B41D763), + dual, + helpstring("IGPM Interface"), + pointer_default(unique) + ] + + interface IGPM : IDispatch + { + [id(1), helpstring("method GetDomain")] HRESULT GetDomain([in] BSTR bstrDomain, [in, unique] BSTR bstrDomainController, [in] long lDCFlags, [out, retval] IGPMDomain **pIGPMDomain); + [id(2), helpstring("method GetBackupDir")] HRESULT GetBackupDir([in] BSTR bstrBackupDir, [out, retval] IGPMBackupDir **pIGPMBackupDir); + [id(3), helpstring("method GetSitesContainer")] HRESULT GetSitesContainer([in] BSTR bstrForest, [in, unique] BSTR bstrDomain, [in, unique] BSTR bstrDomainController, [in] long lDCFlags, [out, retval] IGPMSitesContainer **ppIGPMSitesContainer); + [id(4), helpstring("method GetRSOP")] HRESULT GetRSOP([in] GPMRSOPMode gpmRSoPMode, [in] BSTR bstrNamespace, [in] long lFlags, [out, retval] IGPMRSOP **ppIGPMRSOP); + [id(5), helpstring("method CreatePermission")] HRESULT CreatePermission([in] BSTR bstrTrustee, [in] GPMPermissionType perm, [in] VARIANT_BOOL bInheritable, [out, retval] IGPMPermission **ppPerm); + [id(6), helpstring("method CreateSearchCriteria")] HRESULT CreateSearchCriteria([out, retval] IGPMSearchCriteria **ppIGPMSearchCriteria); + [id(7), helpstring("method CreateTrustee")] HRESULT CreateTrustee([in] BSTR bstrTrustee, [out, retval] IGPMTrustee **ppIGPMTrustee); + [id(8), helpstring("method GetClientSideExtensions")] HRESULT GetClientSideExtensions([out, retval] IGPMCSECollection **ppIGPMCSECollection); + [id(9), helpstring("method GetConstants")] HRESULT GetConstants([out, retval] IGPMConstants **ppIGPMConstants); + [id(10), helpstring("method GetMigrationTable")] HRESULT GetMigrationTable([in] BSTR bstrMigrationTablePath, [out, retval] IGPMMigrationTable **ppMigrationTable); + [id(11), helpstring("method CreateMigrationTable")] HRESULT CreateMigrationTable([out, retval] IGPMMigrationTable **ppMigrationTable); + [id(12), helpstring("method InitializeReporting")] HRESULT InitializeReporting([in, unique] BSTR bstrAdmPath); + }; + + [ + object, + uuid(6B21CC14-5A00-4F44-A738-FEEC8A94C7E3), + dual, + helpstring("IGPMDomain Interface"), + pointer_default(unique) + ] + interface IGPMDomain : IDispatch + { + [propget, id(1), helpstring("property DomainController")] HRESULT DomainController([out, retval] BSTR *pVal); + [propget, id(2), helpstring("property Domain")] HRESULT Domain([out, retval] BSTR *pVal); + + [id(4), helpstring("method CreateGPO")] HRESULT CreateGPO([out, retval] IGPMGPO **ppNewGPO); + [id(5), helpstring("method GetGPO")] HRESULT GetGPO([in] BSTR bstrGuid, [out, retval] IGPMGPO **ppGPO); + [id(6), helpstring("method SearchGPOs")] HRESULT SearchGPOs([in] IGPMSearchCriteria *pIGPMSearchCriteria, [out, retval] IGPMGPOCollection **ppIGPMGPOCollection ); + + [id(7), helpstring("method RestoreGPO")] HRESULT RestoreGPO( + [in] IGPMBackup *pIGPMBackup, + [in] long lDCFlags, + [in, optional] VARIANT *pvarGPMProgress, + [out, optional] VARIANT *pvarGPMCancel, + [out, retval] IGPMResult **ppIGPMResult); + + [id(8), helpstring("method GetSOM")] HRESULT GetSOM([in, unique] BSTR bstrPath, [out, retval] IGPMSOM **ppSOM); + [id(9), helpstring("method SearchSOMs")] HRESULT SearchSOMs([in] IGPMSearchCriteria *pIGPMSearchCriteria, [out, retval] IGPMSOMCollection **ppIGPMSOMCollection); + + [id(10), helpstring("method GetWMIFilter")] HRESULT GetWMIFilter([in] BSTR bstrPath, [out, retval] IGPMWMIFilter **ppWMIFilter); + [id(11), helpstring("method SearchWMIFilters")] HRESULT SearchWMIFilters([in] IGPMSearchCriteria *pIGPMSearchCriteria, [out, retval] IGPMWMIFilterCollection **ppIGPMWMIFilterCollection); + }; + + + [ + object, + uuid(B1568BED-0A93-4ACC-810F-AFE7081019B9), + dual, + helpstring("IGPMBackupDir Interface"), + pointer_default(unique) + ] + interface IGPMBackupDir : IDispatch + { + [propget, id(1), helpstring("property BackupDirectory")] HRESULT BackupDirectory([out, retval] BSTR *pVal); + [id(2), helpstring("method GetBackup")] HRESULT GetBackup([in] BSTR bstrID, [out, retval] IGPMBackup **ppBackup); + [id(3), helpstring("method SearchBackups")] HRESULT SearchBackups([in] IGPMSearchCriteria *pIGPMSearchCriteria, [out, retval] IGPMBackupCollection **ppIGPMBackupCollection); + }; + + [ + object, + uuid(4725A899-2782-4D27-A6BB-D499246FFD72), + dual, + helpstring("IGPMSitesContainer Interface"), + pointer_default(unique) + ] + interface IGPMSitesContainer : IDispatch + { + [propget, id(1), helpstring("property DomainController")] HRESULT DomainController([out, retval] BSTR *pVal); + [propget, id(2), helpstring("property Domain")] HRESULT Domain([out, retval] BSTR *pVal); + [propget, id(3), helpstring("property Forest")] HRESULT Forest([out, retval] BSTR *pVal); + [id(4), helpstring("method GetSite")] HRESULT GetSite([in] BSTR bstrSiteName, [out, retval] IGPMSOM **ppSOM); + [id(5), helpstring("method SearchSites")] HRESULT SearchSites([in] IGPMSearchCriteria *pIGPMSearchCriteria, [out, retval] IGPMSOMCollection **ppIGPMSOMCollection); + }; + + + [ + object, + uuid(D6F11C42-829B-48D4-83F5-3615B67DFC22), + dual, + helpstring("IGPMSearchCriteria Interface"), + pointer_default(unique) + ] + interface IGPMSearchCriteria : IDispatch + { + [id(1), helpstring("method Add")] HRESULT Add([in] GPMSearchProperty searchProperty, [in] GPMSearchOperation searchOperation, [in] VARIANT varValue); + }; + + [ + object, + uuid(3B466DA8-C1A4-4B2A-999A-BEFCDD56CEFB), + dual, + helpstring("IGPMTrustee Interface"), + pointer_default(unique) + ] + interface IGPMTrustee : IDispatch + { + [propget, id(1), helpstring("property Sid")] HRESULT TrusteeSid([out, retval] BSTR *bstrVal); + [propget, id(2), helpstring("property Name")] HRESULT TrusteeName([out, retval] BSTR *bstrVal); + [propget, id(3), helpstring("property Domain")] HRESULT TrusteeDomain([out, retval] BSTR *bstrVal); + [propget, id(4), helpstring("property TrusteeDSPath")] HRESULT TrusteeDSPath([out, retval] BSTR *pVal); + [propget, id(5), helpstring("property TrusteeType")] HRESULT TrusteeType([out, retval] long *lVal); + }; + + [ + object, + uuid(35EBCA40-E1A1-4A02-8905-D79416FB464A), + dual, + helpstring("IGPMPermission Interface"), + pointer_default(unique) + ] + interface IGPMPermission : IDispatch + { + [propget, id(1), helpstring("property Inherited")] HRESULT Inherited([out, retval] VARIANT_BOOL *pVal); + [propget, id(2), helpstring("property Inheritable")] HRESULT Inheritable([out, retval] VARIANT_BOOL *pVal); + [propget, id(3), helpstring("property Denied")] HRESULT Denied([out, retval] VARIANT_BOOL *pVal); + [propget, id(4), helpstring("property Permission")] HRESULT Permission([out, retval] GPMPermissionType *pVal); + [propget, id(5), helpstring("property Trustee")] HRESULT Trustee([out, retval] IGPMTrustee **ppIGPMTrustee); + }; + + [ + object, + uuid(B6C31ED4-1C93-4D3E-AE84-EB6D61161B60), + dual, + helpstring("IGPMSecurityInfo Interface"), + pointer_default(unique) + ] + interface IGPMSecurityInfo : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item(long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT **ppEnum); + [id(5), helpstring("method Add")] HRESULT Add([in] IGPMPermission *pPerm); + [id(6), helpstring("method Remove")] HRESULT Remove([in] IGPMPermission *pPerm); + [id(7), helpstring("method RemoveTrustee")] HRESULT RemoveTrustee([in] BSTR bstrTrustee); + }; + + [ + object, + uuid(D8A16A35-3B0D-416B-8D02-4DF6F95A7119), + dual, + helpstring("IGPMBackup Interface"), + pointer_default(unique) + ] + interface IGPMBackup : IDispatch + { + [propget, id(1), helpstring("property ID")] HRESULT ID([out, retval] BSTR *pVal); + [propget, id(2), helpstring("property GPOID")] HRESULT GPOID([out, retval] BSTR *pVal); + [propget, id(3), helpstring("property GPODomain")] HRESULT GPODomain([out, retval] BSTR *pVal); + [propget, id(4), helpstring("property GPODisplayName")] HRESULT GPODisplayName([out, retval] BSTR *pVal); + [propget, id(5), helpstring("property Timestamp")] HRESULT Timestamp([out, retval] DATE *pVal); + [propget, id(6), helpstring("property Comment")] HRESULT Comment([out, retval] BSTR *pVal); + [propget, id(7), helpstring("property BackupDir")] HRESULT BackupDir([out, retval] BSTR *pVal); + [id(8), helpstring("method Delete")] HRESULT Delete(); + + [id(9), helpstring("method GenerateReport")] HRESULT GenerateReport( + [in] GPMReportType gpmReportType, + [in, optional] VARIANT *pvarGPMProgress, + [out,optional] VARIANT *pvarGPMCancel, + [out,retval] IGPMResult **ppIGPMResult); + + [id(10), helpstring("method GenerateReportToFile")] HRESULT GenerateReportToFile( + [in] GPMReportType gpmReportType, + [in] BSTR bstrTargetFilePath, + [out, retval] IGPMResult **ppIGPMResult); + + }; + + [ + object, + uuid(C786FC0F-26D8-4BAB-A745-39CA7E800CAC), + dual, + helpstring("IGPMBackupCollection Interface"), + pointer_default(unique) + ] + interface IGPMBackupCollection : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item(long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT* *ppIGPMBackup); + }; + + [ + object, + uuid(C0A7F09E-05A1-4F0C-8158-9E5C33684F6B), + dual, + helpstring("IGPMSOM Interface"), + pointer_default(unique) + ] + interface IGPMSOM : IDispatch + { + typedef enum {somSite, somDomain, somOU} GPMSOMType; + + [propget, id(1), helpstring("property GPOInheritanceBlocked")] HRESULT GPOInheritanceBlocked([out, retval] VARIANT_BOOL *pVal); + [propput, id(1), helpstring("property GPOInheritanceBlocked")] HRESULT GPOInheritanceBlocked([in] VARIANT_BOOL newVal); + [propget, id(3), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal); + [propget, id(4), helpstring("property Path")] HRESULT Path([out, retval] BSTR *pVal); + [id(5), helpstring("method CreateGPOLink")] HRESULT CreateGPOLink([in] long lLinkPos, [in] IGPMGPO *pGPO, [out, retval] IGPMGPOLink **ppNewGPOLink); + [propget, id(6), helpstring("property Type")] HRESULT Type([out, retval] GPMSOMType *pVal); + [id(7), helpstring("method GetGPOLinks")] HRESULT GetGPOLinks([out, retval] IGPMGPOLinksCollection **ppGPOLinks); + [id(8), helpstring("method GetInheritedGPOLinks")] HRESULT GetInheritedGPOLinks([out, retval] IGPMGPOLinksCollection **ppGPOLinks); + [id(9), helpstring("method GetSecurityInfo")] HRESULT GetSecurityInfo([out, retval] IGPMSecurityInfo **ppSecurityInfo); + [id(10), helpstring("method SetSecurityInfo")] HRESULT SetSecurityInfo([in] IGPMSecurityInfo *pSecurityInfo); + }; + + [ + object, + uuid(ADC1688E-00E4-4495-ABBA-BED200DF0CAB), + dual, + helpstring("IGPMSOMCollection Interface"), + pointer_default(unique) + ] + interface IGPMSOMCollection : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item(long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT* *ppIGPMSOM); + }; + + [ + object, + uuid(EF2FF9B4-3C27-459A-B979-038305CEC75D), + dual, + helpstring("IGPMWMIFilter Interface"), + pointer_default(unique) + ] + interface IGPMWMIFilter : IDispatch + { + [propget, id(1), helpstring("property Path")] HRESULT Path([out, retval] BSTR *pVal); + [propput, id(2), helpstring("property Name")] HRESULT Name([in] BSTR newVal); + [propget, id(2), helpstring("property Name")] HRESULT Name([out,retval] BSTR * pVal); + [propput, id(3), helpstring("property Description")] HRESULT Description([in] BSTR newVal); + [propget, id(3), helpstring("property Description")] HRESULT Description([out,retval] BSTR * pVal); + [id(4), helpstring("method GetQueryList")] HRESULT GetQueryList([out,retval] VARIANT *pQryList); + [id(5), helpstring("method GetSecurityInfo")] HRESULT GetSecurityInfo([out, retval] IGPMSecurityInfo **ppSecurityInfo); + [id(6), helpstring("method SetSecurityInfo")] HRESULT SetSecurityInfo([in] IGPMSecurityInfo *pSecurityInfo); + }; + + [ + object, + uuid(5782D582-1A36-4661-8A94-C3C32551945B), + dual, + helpstring("IGPMWMIFilterCollection Interface"), + pointer_default(unique) + ] + interface IGPMWMIFilterCollection : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item(long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT* *pVal); + }; + + [ + object, + uuid(49ED785A-3237-4FF2-B1F0-FDF5A8D5A1EE), + dual, + helpstring("IGPMRSOP Interface"), + pointer_default(unique) + ] + interface IGPMRSOP : IDispatch + { + // general properties + [propget, id(1), helpstring("property Mode")] HRESULT Mode([out, retval] GPMRSOPMode *pVal); + [propget, id(2), helpstring("property Namespace")] HRESULT Namespace([out, retval] BSTR *bstrVal); + + // logging mode properties + [propput, id(3), helpstring("property LoggingComputer")] HRESULT LoggingComputer([in] BSTR bstrVal); + [propget, id(3), helpstring("property LoggingComputer")] HRESULT LoggingComputer([out, retval] BSTR *bstrVal); + + [propput, id(4), helpstring("property LoggingUser")] HRESULT LoggingUser([in] BSTR bstrVal); + [propget, id(4), helpstring("property LoggingUser")] HRESULT LoggingUser([out, retval] BSTR *bstrVal); + + [propput, id(5), helpstring("property LoggingFlags")] HRESULT LoggingFlags([in] long lVal); + [propget, id(5), helpstring("property LoggingFlags")] HRESULT LoggingFlags([out, retval] long *lVal); + + + // planning mode properties + [propput, id(6), helpstring("property PlanningFlags")] HRESULT PlanningFlags([in] long lVal); + [propget, id(6), helpstring("property PlanningFlags")] HRESULT PlanningFlags([out, retval] long *lVal); + + [propput, id(7), helpstring("property PlanningDomainController")] HRESULT PlanningDomainController([in] BSTR bstrVal); + [propget, id(7), helpstring("property PlanningDomainController")] HRESULT PlanningDomainController([out, retval] BSTR *bstrVal); + + [propput, id(8), helpstring("property PlanningSiteName")] HRESULT PlanningSiteName([in] BSTR bstrVal); + [propget, id(8), helpstring("property PlanningSiteName")] HRESULT PlanningSiteName([out, retval] BSTR *bstrVal); + + // planning mode user properties + [propput, id(9), helpstring("property PlanningUser")] HRESULT PlanningUser([in] BSTR bstrVal); + [propget, id(9), helpstring("property PlanningUser")] HRESULT PlanningUser([out, retval] BSTR *bstrVal); + + [propput, id(10), helpstring("property PlanningUserSOM")] HRESULT PlanningUserSOM([in] BSTR bstrVal); + [propget, id(10), helpstring("property PlanningUserSOM")] HRESULT PlanningUserSOM([out, retval] BSTR *bstrVal); + + // array of IGPMWMIFilter pointers in a variant + [propput, id(11), helpstring("property PlanningUserWMIFilters")] HRESULT PlanningUserWMIFilters([in] VARIANT varVal); + [propget, id(11), helpstring("property PlanningUserWMIFilters")] HRESULT PlanningUserWMIFilters([out, retval] VARIANT *varVal); + + // array of IGPMTrustee pointers in a variant + [propput, id(12), helpstring("property PlanningUserSecurityGroups")] HRESULT PlanningUserSecurityGroups([in] VARIANT varVal); + [propget, id(12), helpstring("property PlanningUserSecurityGroups")] HRESULT PlanningUserSecurityGroups([out, retval] VARIANT *varVal); + + + // planning mode computer properties + [propput, id(13), helpstring("property PlanningComputer")] HRESULT PlanningComputer([in] BSTR bstrVal); + [propget, id(13), helpstring("property PlanningComputer")] HRESULT PlanningComputer([out, retval] BSTR *bstrVal); + + [propput, id(14), helpstring("property PlanningComputerSOM")] HRESULT PlanningComputerSOM([in] BSTR bstrVal); + [propget, id(14), helpstring("property PlanningComputerSOM")] HRESULT PlanningComputerSOM([out, retval] BSTR *bstrVal); + + // array of IGPMWMIFilter pointers in a variant + [propput, id(15), helpstring("property PlanningComputerWMIFilters")] HRESULT PlanningComputerWMIFilters([in] VARIANT varVal); + [propget, id(15), helpstring("property PlanningComputerWMIFilters")] HRESULT PlanningComputerWMIFilters([out, retval] VARIANT *varVal); + + // array of IGPMTrustee pointers in a variant + [propput, id(16), helpstring("property PlanningComputerSecurityGroups")] HRESULT PlanningComputerSecurityGroups([in] VARIANT varVal); + [propget, id(16), helpstring("property PlanningComputerSecurityGroups")] HRESULT PlanningComputerSecurityGroups([out, retval] VARIANT *varVal); + + + // array of IGPMTrustees + [id(17), helpstring("method LoggingEnumerateUsers")] HRESULT LoggingEnumerateUsers( [out, retval] VARIANT *varVal ); + + [id(18), helpstring("method CreateQueryResults")] HRESULT CreateQueryResults(); + [id(19), helpstring("method ReleaseQueryResults")] HRESULT ReleaseQueryResults(); + + [id(20), helpstring("method GenerateReport")] HRESULT GenerateReport( + [in] GPMReportType gpmReportType, + [in, optional] VARIANT *pvarGPMProgress, + [out,optional] VARIANT *pvarGPMCancel, + [out,retval] IGPMResult **ppIGPMResult); + + [id(21), helpstring("method GenerateReportToFile")] HRESULT GenerateReportToFile( + [in] GPMReportType gpmReportType, + [in] BSTR bstrTargetFilePath, + [out, retval] IGPMResult **ppIGPMResult); + + }; + + [ + object, + uuid(58CC4352-1CA3-48E5-9864-1DA4D6E0D60F), + dual, + helpstring("IGPMGPO Interface"), + pointer_default(unique) + ] + interface IGPMGPO : IDispatch + { + [propget, id(1), helpstring("property DisplayName")] HRESULT DisplayName([out, retval] BSTR *pVal); + [propput, id(1), helpstring("property DisplayName")] HRESULT DisplayName([in] BSTR newVal); + [propget, id(3), helpstring("property Path")] HRESULT Path([out, retval] BSTR *pVal); + [propget, id(4), helpstring("property ID")] HRESULT ID([out, retval] BSTR *pVal); + [propget, id(5), helpstring("property DomainName")] HRESULT DomainName([out, retval] BSTR *pVal); + [propget, id(6), helpstring("property CreationTime")] HRESULT CreationTime([out, retval] DATE *pDate); + [propget, id(7), helpstring("property ModificationTime")] HRESULT ModificationTime([out, retval] DATE *pDate); + [propget, id(8), helpstring("property UserDSVersionNumber")] HRESULT UserDSVersionNumber([out, retval] long *pVal); + [propget, id(9), helpstring("property ComputerDSVersionNumber")] HRESULT ComputerDSVersionNumber([out, retval] long *pVal); + [propget, id(10), helpstring("property UserSysvolVersionNumber")] HRESULT UserSysvolVersionNumber([out, retval] long *pVal); + [propget, id(11), helpstring("property ComputerSysvolVersionNumber")] HRESULT ComputerSysvolVersionNumber([out, retval] long *pVal); + + [id(12), helpstring("method GetWMIFilter")] HRESULT GetWMIFilter([out, retval] IGPMWMIFilter **ppIGPMWMIFilter); + [id(13), helpstring("method SetWMIFilter")] HRESULT SetWMIFilter([in] IGPMWMIFilter *pIGPMWMIFilter); + [id(14), helpstring("method SetUserEnabled")] HRESULT SetUserEnabled([in] VARIANT_BOOL vbEnabled); + [id(15), helpstring("method SetComputerEnabled")] HRESULT SetComputerEnabled([in] VARIANT_BOOL vbEnabled); + [id(16), helpstring("method IsUserEnabled")] HRESULT IsUserEnabled([out, retval] VARIANT_BOOL *pvbEnabled); + [id(17), helpstring("method IsComputerEnabled")] HRESULT IsComputerEnabled([out, retval] VARIANT_BOOL *pvbEnabled); + [id(18), helpstring("method GetSecurityInfo")] HRESULT GetSecurityInfo([out, retval] IGPMSecurityInfo **ppSecurityInfo); + [id(19), helpstring("method SetSecurityInfo")] HRESULT SetSecurityInfo([in] IGPMSecurityInfo *pSecurityInfo); + [id(20), helpstring("method Delete")] HRESULT Delete(); + + [id(21), helpstring("method Backup")] HRESULT Backup( + [in] BSTR bstrBackupDir, + [in] BSTR bstrComment, + [in, optional] VARIANT *pvarGPMProgress, + [out,optional] VARIANT *pvarGPMCancel, + [out,retval] IGPMResult **ppIGPMResult); + + [id(22), helpstring("method Import")] HRESULT Import( + [in] long lFlags, + [in] IGPMBackup *pIGPMBackup, + [in, optional] VARIANT *pvarMigrationTable, + [in, optional] VARIANT *pvarGPMProgress, + [out,optional] VARIANT *pvarGPMCancel, + [out,retval] IGPMResult **ppIGPMResult); + + [id(23), helpstring("method GenerateReport")] HRESULT GenerateReport( + [in] GPMReportType gpmReportType, + [in, optional] VARIANT *pvarGPMProgress, + [out,optional] VARIANT *pvarGPMCancel, + [out,retval] IGPMResult **ppIGPMResult); + + [id(24), helpstring("method GenerateReportToFile")] HRESULT GenerateReportToFile( + [in] GPMReportType gpmReportType, + [in] BSTR bstrTargetFilePath, + [out, retval] IGPMResult **ppIGPMResult); + + [id(25), helpstring("method CopyTo")] HRESULT CopyTo( + [in] long lFlags, + [in] IGPMDomain *pIGPMDomain, + [in, optional] VARIANT *pvarNewDisplayName, + [in, optional] VARIANT *pvarMigrationTable, + [in, optional] VARIANT *pvarGPMProgress, + [out,optional] VARIANT *pvarGPMCancel, + [out,retval] IGPMResult **ppIGPMResult); + + [id(26), helpstring("method SetSecurityDescriptor")] HRESULT SetSecurityDescriptor([in] long lFlags, [in] IDispatch *pSD); + [id(27), helpstring("method GetSecurityDescriptor")] HRESULT GetSecurityDescriptor([in] long lFlags, [out, retval] IDispatch **ppSD); + [id(28), helpstring("method IsACLConsistent")] HRESULT IsACLConsistent([out, retval] VARIANT_BOOL *pvbConsistent); + [id(29), helpstring("method MakeACLConsistent")] HRESULT MakeACLConsistent(); + }; + + [ + object, + uuid(F0F0D5CF-70CA-4C39-9E29-B642F8726C01), + dual, + helpstring("IGPMGPOCollection Interface"), + pointer_default(unique) + ] + interface IGPMGPOCollection : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item([in] long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT **ppIGPMGPOs); + }; + + [ + object, + uuid(434B99BD-5DE7-478A-809C-C251721DF70C), + dual, + helpstring("IGPMGPOLink Interface"), + pointer_default(unique) + ] + interface IGPMGPOLink : IDispatch + { + [propget, id(1), helpstring("property GPOID")] HRESULT GPOID([out, retval] BSTR *pVal); + [propget, id(2), helpstring("property GPODomain")] HRESULT GPODomain([out, retval] BSTR *pVal); + [propget, id(3), helpstring("property Enabled")] HRESULT Enabled([out, retval] VARIANT_BOOL *pVal); + [propput, id(3), helpstring("property Enabled")] HRESULT Enabled([in] VARIANT_BOOL newVal); + [propget, id(4), helpstring("property Enforced")] HRESULT Enforced([out, retval] VARIANT_BOOL *pVal); + [propput, id(4), helpstring("property Enforced")] HRESULT Enforced([in] VARIANT_BOOL newVal); + [propget, id(5), helpstring("property SOMLinkOrder")] HRESULT SOMLinkOrder([out, retval] long *lVal); + [propget, id(6), helpstring("property SOM")] HRESULT SOM([out, retval] IGPMSOM **ppIGPMSOM); + [id(7), helpstring("method Delete")] HRESULT Delete(); + }; + + [ + object, + uuid(189D7B68-16BD-4D0D-A2EC-2E6AA2288C7F), + dual, + helpstring("IGPMGPOLinksCollection Interface"), + pointer_default(unique) + ] + interface IGPMGPOLinksCollection : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item([in] long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT **ppIGPMLinks); + }; + + [ + object, + uuid(2E52A97D-0A4A-4A6F-85DB-201622455DA0), + dual, + helpstring("IGPMCSECollection Interface"), + pointer_default(unique) + ] + interface IGPMCSECollection : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item([in] long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT **ppIGPMCSEs); + }; + + [ + object, + uuid(69DA7488-B8DB-415E-9266-901BE4D49928), + dual, + helpstring("IGPMClientSideExtension Interface"), + pointer_default(unique) + ] + interface IGPMClientSideExtension : IDispatch + { + [propget, id(1), helpstring("property ID")] HRESULT ID([out, retval] BSTR *pVal); + [propget, id(2), helpstring("property DisplayName")] HRESULT DisplayName([out, retval] BSTR *pVal); + [id(3), helpstring("method IsUserEnabled")] HRESULT IsUserEnabled([out, retval] VARIANT_BOOL *pvbEnabled); + [id(4), helpstring("method IsComputerEnabled")] HRESULT IsComputerEnabled([out, retval] VARIANT_BOOL *pvbEnabled); + }; + + [ + object, + uuid(DDC67754-BE67-4541-8166-F48166868C9C), + dual, + helpstring("IGPMAsyncCancel Interface"), + pointer_default(unique) + ] + interface IGPMAsyncCancel : IDispatch + { + [id(1), helpstring("method Cancel")] HRESULT Cancel(); + }; + [ + object, + uuid(6AAC29F8-5948-4324-BF70-423818942DBC), + dual, + helpstring("IGPMAsyncProgress Interface"), + pointer_default(unique) + ] + interface IGPMAsyncProgress : IDispatch + { + [id(1), helpstring("method Status")] HRESULT Status([in] long lProgressNumerator, [in] long lProgressDenominator, [in] HRESULT hrStatus, [in] VARIANT *pResult, [in] IGPMStatusMsgCollection *ppIGPMStatusMsgCollection); + }; + + [ + object, + uuid(9B6E1AF0-1A92-40F3-A59D-F36AC1F728B7), + dual, + helpstring("IGPMStatusMsgCollection Interface"), + pointer_default(unique) + ] + interface IGPMStatusMsgCollection : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item([in] long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT * *pVal); + }; + + [ + object, + uuid(8496C22F-F3DE-4A1F-8F58-603CAAA93D7B), + dual, + helpstring("IGPMStatusMessage Interface"), + pointer_default(unique) + ] + interface IGPMStatusMessage : IDispatch + { + [propget, id(1), helpstring("property ObjectPath")] HRESULT ObjectPath([out, retval] BSTR *pVal); + [id(2), helpstring("method ErrorCode")] HRESULT ErrorCode(); + [propget, id(3), helpstring("property ExtensionName")] HRESULT ExtensionName([out, retval] BSTR *pVal); + [propget, id(4), helpstring("property SettingsName")] HRESULT SettingsName([out, retval] BSTR *pVal); + [id(5), helpstring("method OperationCode")] HRESULT OperationCode(); + [propget, id(6), helpstring("property Message")] HRESULT Message([out, retval] BSTR *pVal); + }; + + [ + object, + uuid(50EF73E6-D35C-4C8D-BE63-7EA5D2AAC5C4), + dual, + helpstring("IGPMConstants Interface"), + pointer_default(unique) + ] + interface IGPMConstants : IDispatch + { + [propget, id(1), helpstring("property PermGPOApply")] HRESULT PermGPOApply([out, retval] GPMPermissionType *pVal); + [propget, id(2), helpstring("property PermGPORead")] HRESULT PermGPORead([out, retval] GPMPermissionType *pVal); + [propget, id(3), helpstring("property PermGPOEdit")] HRESULT PermGPOEdit([out, retval] GPMPermissionType *pVal); + [propget, id(4), helpstring("property PermGPOEditSecurityAndDelete")] HRESULT PermGPOEditSecurityAndDelete([out, retval] GPMPermissionType *pVal); + [propget, id(5), helpstring("property PermGPOCustom")] HRESULT PermGPOCustom([out, retval] GPMPermissionType *pVal); + [propget, id(6), helpstring("property PermWMIFilterEdit")] HRESULT PermWMIFilterEdit([out, retval] GPMPermissionType *pVal); + [propget, id(7), helpstring("property PermWMIFilterFullControl")] HRESULT PermWMIFilterFullControl([out, retval] GPMPermissionType *pVal); + [propget, id(8), helpstring("property PermWMIFilterCustom")] HRESULT PermWMIFilterCustom([out, retval] GPMPermissionType *pVal); + [propget, id(9), helpstring("property PermSOMLink")] HRESULT PermSOMLink([out, retval] GPMPermissionType *pVal); + [propget, id(10), helpstring("property PermSOMLogging")] HRESULT PermSOMLogging([out, retval] GPMPermissionType *pVal); + [propget, id(11), helpstring("property PermSOMPlanning")] HRESULT PermSOMPlanning([out, retval] GPMPermissionType *pVal); + [propget, id(12), helpstring("property PermSOMGPOCreate")] HRESULT PermSOMGPOCreate([out, retval] GPMPermissionType *pVal); + [propget, id(13), helpstring("property PermSOMWMICreate")] HRESULT PermSOMWMICreate([out, retval] GPMPermissionType *pVal); + [propget, id(14), helpstring("property PermSOMWMIFullControl")] HRESULT PermSOMWMIFullControl([out, retval] GPMPermissionType *pVal); + [propget, id(15), helpstring("property SearchPropertyGPOPermissions")] HRESULT SearchPropertyGPOPermissions([out, retval] GPMSearchProperty *pVal); + [propget, id(16), helpstring("property SearchPropertyGPOEffectivePermissions")] HRESULT SearchPropertyGPOEffectivePermissions([out, retval] GPMSearchProperty *pVal); + [propget, id(17), helpstring("property SearchPropertyGPODisplayName")] HRESULT SearchPropertyGPODisplayName([out, retval] GPMSearchProperty *pVal); + [propget, id(18), helpstring("property SearchPropertyGPOWMIFilter")] HRESULT SearchPropertyGPOWMIFilter([out, retval] GPMSearchProperty *pVal); + [propget, id(19), helpstring("property SearchPropertyGPOID")] HRESULT SearchPropertyGPOID([out, retval] GPMSearchProperty *pVal); + [propget, id(20), helpstring("property SearchPropertyGPOComputerExtensions")] HRESULT SearchPropertyGPOComputerExtensions([out, retval] GPMSearchProperty *pVal); + [propget, id(21), helpstring("property SearchPropertyGPOUserExtensions")] HRESULT SearchPropertyGPOUserExtensions([out, retval] GPMSearchProperty *pVal); + [propget, id(22), helpstring("property SearchPropertySOMLinks")] HRESULT SearchPropertySOMLinks([out, retval] GPMSearchProperty *pVal); + [propget, id(23), helpstring("property SearchPropertyGPODomain")] HRESULT SearchPropertyGPODomain([out, retval] GPMSearchProperty *pVal); + [propget, id(24), helpstring("property SearchPropertyBackupMostRecent")] HRESULT SearchPropertyBackupMostRecent([out, retval] GPMSearchProperty *pVal); + [propget, id(25), helpstring("property SearchOpEquals")] HRESULT SearchOpEquals([out, retval] GPMSearchOperation *pVal); + [propget, id(26), helpstring("property SearchOpContains")] HRESULT SearchOpContains([out, retval] GPMSearchOperation *pVal); + [propget, id(27), helpstring("property SearchOpNotContains")] HRESULT SearchOpNotContains([out, retval] GPMSearchOperation *pVal); + [propget, id(28), helpstring("property SearchOpNotEquals")] HRESULT SearchOpNotEquals([out, retval] GPMSearchOperation *pVal); + [propget, id(29), helpstring("property UsePDC")] HRESULT UsePDC([out, retval] long *pVal); + [propget, id(30), helpstring("property UseAnyDC")] HRESULT UseAnyDC([out, retval] long *pVal); + [propget, id(31), helpstring("property DoNotUseW2KDC")] HRESULT DoNotUseW2KDC([out, retval] long *pVal); + [propget, id(32), helpstring("property SOMSite")] HRESULT SOMSite([out, retval] GPMSOMType *pVal); + [propget, id(33), helpstring("property SOMDomain")] HRESULT SOMDomain([out, retval] GPMSOMType *pVal); + [propget, id(34), helpstring("property SOMOU")] HRESULT SOMOU([out, retval] GPMSOMType *pVal); + [propget, id(35), helpstring("property SecurityFlags")] HRESULT SecurityFlags([in] VARIANT_BOOL vbOwner, [in] VARIANT_BOOL vbGroup, [in] VARIANT_BOOL vbDACL, [in] VARIANT_BOOL vbSACL, [out, retval] long *pVal); + [propget, id(36), helpstring("property DoNotValidateDC")] HRESULT DoNotValidateDC([out, retval] long *pVal); + [propget, id(37), helpstring("property ReportHTML")] HRESULT ReportHTML([out, retval] GPMReportType *pVal); + [propget, id(38), helpstring("property ReportXML")] HRESULT ReportXML([out, retval] GPMReportType *pVal); + [propget, id(39), helpstring("property RSOPModeUnknown")] HRESULT RSOPModeUnknown([out, retval] GPMRSOPMode *pVal); + [propget, id(40), helpstring("property RSOPModePlanning")] HRESULT RSOPModePlanning([out, retval] GPMRSOPMode *pVal); + [propget, id(41), helpstring("property RSOPModeLogging")] HRESULT RSOPModeLogging([out, retval] GPMRSOPMode *pVal); + [propget, id(42), helpstring("property EntryTypeUser")] HRESULT EntryTypeUser([out, retval] GPMEntryType *pVal); + [propget, id(43), helpstring("property EntryTypeComputer")] HRESULT EntryTypeComputer([out, retval] GPMEntryType *pVal); + [propget, id(44), helpstring("property EntryTypeLocalGroup")] HRESULT EntryTypeLocalGroup([out, retval] GPMEntryType *pVal); + [propget, id(45), helpstring("property EntryTypeGlobalGroup")] HRESULT EntryTypeGlobalGroup([out, retval] GPMEntryType *pVal); + [propget, id(46), helpstring("property EntryTypeUniversalGroup")] HRESULT EntryTypeUniversalGroup([out, retval] GPMEntryType *pVal); + [propget, id(47), helpstring("property EntryTypeUNCPath")] HRESULT EntryTypeUNCPath([out, retval] GPMEntryType *pVal); + [propget, id(48), helpstring("property EntryTypeUnknown")] HRESULT EntryTypeUnknown([out, retval] GPMEntryType *pVal); + [propget, id(49), helpstring("property DestinationOptionSameAsSource")] HRESULT DestinationOptionSameAsSource([out, retval] GPMDestinationOption *pVal); + [propget, id(50), helpstring("property DestinationOptionNone")] HRESULT DestinationOptionNone([out, retval] GPMDestinationOption *pVal); + [propget, id(51), helpstring("property DestinationOptionByRelativeName")] HRESULT DestinationOptionByRelativeName([out, retval] GPMDestinationOption *pVal); + [propget, id(52), helpstring("property DestinationOptionSet")] HRESULT DestinationOptionSet([out, retval] GPMDestinationOption *pVal); + [propget, id(53), helpstring("property MigrationTableOnly")] HRESULT MigrationTableOnly([out, retval] long *pVal); + [propget, id(54), helpstring("property ProcessSecurity")] HRESULT ProcessSecurity([out, retval] long *pVal); + [propget, id(55), helpstring("property RsopLoggingNoComputer")] HRESULT RsopLoggingNoComputer([out, retval] long *pVal); + [propget, id(56), helpstring("property RsopLoggingNoUser")] HRESULT RsopLoggingNoUser([out, retval] long *pVal); + [propget, id(57), helpstring("property RsopPlanningAssumeSlowLink")] HRESULT RsopPlanningAssumeSlowLink([out, retval] long *pVal); + [propget, id(58), helpstring("property RsopPlanningLoopbackOption")] HRESULT RsopPlanningLoopbackOption([in] VARIANT_BOOL vbMerge, [out, retval] long *pVal); + [propget, id(59), helpstring("property RsopPlanningAssumeUserWQLFilterTrue")] HRESULT RsopPlanningAssumeUserWQLFilterTrue([out, retval] long *pVal); + [propget, id(60), helpstring("property RsopPlanningAssumeCompWQLFilterTrue")] HRESULT RsopPlanningAssumeCompWQLFilterTrue([out, retval] long *pVal); + }; + + [ + object, + uuid(86DFF7E9-F76F-42AB-9570-CEBC6BE8A52D), + dual, + helpstring("IGPMResult Interface"), + pointer_default(unique) + ] + interface IGPMResult : IDispatch + { + [propget, id(1), helpstring("property Status")] HRESULT Status([out, retval] IGPMStatusMsgCollection **ppIGPMStatusMsgCollection); + [propget, id(2), helpstring("property Result")] HRESULT Result([out, retval] VARIANT *pvarResult); + [id(3), helpstring("method OverallStatus")] HRESULT OverallStatus(); + }; + + [ + object, + uuid(BB0BF49B-E53F-443F-B807-8BE22BFB6D42), + dual, + helpstring("IGPMMapEntryCollection Interface"), + pointer_default(unique) + ] + interface IGPMMapEntryCollection : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item([in] long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT * *pVal); + }; + + [ + object, + uuid(8E79AD06-2381-4444-BE4C-FF693E6E6F2B), + dual, + helpstring("IGPMMapEntry Interface"), + pointer_default(unique) + ] + interface IGPMMapEntry : IDispatch + { + [propget, id(1), helpstring("property Source")] HRESULT Source([out, retval] BSTR *pbstrSource); + [propget, id(2), helpstring("property Destination")] HRESULT Destination([out, retval] BSTR *pbstrDestination); + [propget, id(3), helpstring("property DestinationOption")] HRESULT DestinationOption([out, retval] GPMDestinationOption *pgpmDestOption); + [propget, id(4), helpstring("property EntryType")] HRESULT EntryType([out, retval] GPMEntryType *pgpmEntryType); + }; + + [ + object, + uuid(48F823B1-EFAF-470B-B6ED-40D14EE1A4EC), + dual, + helpstring("IGPMMigrationTable Interface"), + pointer_default(unique) + ] + interface IGPMMigrationTable : IDispatch + { + [id(1), helpstring("method Save")] HRESULT Save([in] BSTR bstrMigrationTablePath); + [id(2), helpstring("method Add")] HRESULT Add([in] long lFlags, [in] VARIANT var); + [id(3), helpstring("method AddEntry")] HRESULT AddEntry([in] BSTR bstrSource, + [in] GPMEntryType gpmEntryType, + [in, optional] VARIANT *pvarDestination, + [out, retval] IGPMMapEntry **ppEntry); + [id(4), helpstring("method GetEntry")] HRESULT GetEntry([in] BSTR bstrSource, + [out, retval] IGPMMapEntry **ppEntry); + [id(5), helpstring("method DeleteEntry")] HRESULT DeleteEntry([in] BSTR bstrSource); + [id(6), helpstring("method UpdateDestination")] HRESULT UpdateDestination([in] BSTR bstrSource, + [in, optional] VARIANT *pvarDestination, + [out, retval] IGPMMapEntry **ppEntry); + [id(7), helpstring("method Validate")] HRESULT Validate([out, retval] IGPMResult **ppResult); + [id(8), helpstring("method GetEntries")] HRESULT GetEntries([out, retval] IGPMMapEntryCollection **ppEntries); + }; + +////////////////////////////////////////////////////////////////// +// Template support +////////////////////////////////////////////////////////////////// + +typedef enum { + typeGPO = 0, + typeStarterGPO +} GPMBackupType; + +typedef enum { + typeSystem = 0, + typeCustom +} GPMStarterGPOType; + + + [ + object, + uuid(F8DC55ED-3BA0-4864-AAD4-D365189EE1D5), + dual, + helpstring("IGPMBackupDirEx"), + pointer_default(unique) + ] + interface IGPMBackupDirEx : IDispatch + { + [propget, id(1), helpstring("property BackupDirectory")] HRESULT BackupDir([out, retval] BSTR *pbstrBackupDir); + [propget, id(2), helpstring("property BackupType")] HRESULT BackupType([out, retval] GPMBackupType *pgpmBackupType); + + [id(3), helpstring("method GetBackup")] HRESULT GetBackup([in] BSTR bstrID, [out, retval] VARIANT *pvarBackup); + [id(4), helpstring("method SearchBackups")] HRESULT SearchBackups([in] IGPMSearchCriteria *pIGPMSearchCriteria, [out, retval] VARIANT *pvarBackupCollection); + }; + [ + object, + uuid(C998031D-ADD0-4bb5-8DEA-298505D8423B), + dual, + helpstring("IGPMStarterGPOBackupCollection Interface"), + pointer_default(unique) + ] + interface IGPMStarterGPOBackupCollection : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item(long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT* *ppIGPMTmplBackup); + }; + + [ + object, + uuid(51D98EDA-A87E-43dd-B80A-0B66EF1938D6), + dual, + helpstring("IGPMStarterGPOBackup Interface"), + pointer_default(unique) + ] + interface IGPMStarterGPOBackup : IDispatch + { + [propget, id(1), helpstring("property BackupDir")] HRESULT BackupDir([out, retval] BSTR *pbstrBackupDir); + [propget, id(2), helpstring("property Comment")] HRESULT Comment([out, retval] BSTR *pbstrComment); + [propget, id(3), helpstring("property DisplayName")] HRESULT DisplayName([out, retval] BSTR *pbstrDisplayName); + [propget, id(4), helpstring("property Domain")] HRESULT Domain([out, retval] BSTR *pbstrTemplateDomain); + [propget, id(5), helpstring("property StarterGPOID")] HRESULT StarterGPOID([out, retval] BSTR *pbstrTemplateID); + [propget, id(6), helpstring("property ID")] HRESULT ID([out, retval] BSTR *pbstrID); + [propget, id(7), helpstring("property Timestamp")] HRESULT Timestamp([out, retval] DATE *pTimestamp); + [propget, id(8), helpstring("property Type")] HRESULT Type([out, retval]GPMStarterGPOType *pType); + [id(9), helpstring("method Delete")] HRESULT Delete(void); + [id(10), helpstring("method GenerateReport")] HRESULT GenerateReport([in] GPMReportType gpmReportType, [in, optional] VARIANT *pvarGPMProgress, [out, optional] VARIANT *pvarGPMCancel, [out, retval] IGPMResult **ppIGPMResult); + [id(11), helpstring("method GenerateReportToFile")] HRESULT GenerateReportToFile([in] GPMReportType gpmReportType, [in] BSTR bstrTargetFilePath, [out, retval] IGPMResult **ppIGPMResult); + }; + + [ + object, + uuid(00238F8A-3D86-41ac-8F5E-06A6638A634A), + dual, + helpstring("IGPM2 Interface"), + pointer_default(unique) + ] + interface IGPM2 : IGPM + { + [id(13), helpstring("method GetBackupDirEx")] HRESULT GetBackupDirEx([in] BSTR bstrBackupDir, [in] GPMBackupType backupDirType, [out, retval] IGPMBackupDirEx **ppIGPMBackupDirEx); + [id(14), helpstring("method InitializeReportingEx")] HRESULT InitializeReportingEx([in] BSTR bstrAdmPath, [in] LONG reportingOptions); + }; + + [ + object, + uuid(DFC3F61B-8880-4490-9337-D29C7BA8C2F0), + dual, + helpstring("IGPMStarterGPO Interface"), + pointer_default(unique) + ] + interface IGPMStarterGPO : IDispatch + { + [propget, id(1), helpstring("property DisplayName")] HRESULT DisplayName([out, retval] BSTR *pVal); + [propput, id(1), helpstring("property DisplayName")] HRESULT DisplayName([in] BSTR newVal); + [propget, id(2), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pVal); + [propput, id(2), helpstring("property Description")] HRESULT Description([in] BSTR newVal); + [propget, id(3), helpstring("property Author")] HRESULT Author([out, retval] BSTR *pVal); + [propget, id(4), helpstring("property Product")] HRESULT Product([out, retval] BSTR *pVal); + [propget, id(5), helpstring("property CreationTime")] HRESULT CreationTime([out, retval] DATE *pVal); + [propget, id(6), helpstring("property ID")] HRESULT ID([out, retval] BSTR *pVal); + [propget, id(7), helpstring("property ModifiedTime")] HRESULT ModifiedTime([out, retval] DATE *pVal); + [propget, id(8), helpstring("property Type")] HRESULT Type([out, retval] GPMStarterGPOType *pVal); + [propget, id(9), helpstring("property ComputerVersion")] HRESULT ComputerVersion([out, retval] USHORT *pVal); + [propget, id(10), helpstring("property UserVersion")] HRESULT UserVersion([out, retval] USHORT *pVal); + [propget, id(11), helpstring("property StarterGPOVersion")] HRESULT StarterGPOVersion([out, retval] BSTR *pVal); + + [id(12), helpstring("method Delete")] HRESULT Delete(); + [id(13), helpstring("method Save")] HRESULT Save( + [in] BSTR bstrSaveFile, + [in] VARIANT_BOOL bOverwrite, + [in] VARIANT_BOOL bSaveAsSystem, + [in, optional] VARIANT* bstrLanguage, + [in, optional] VARIANT* bstrAuthor, + [in, optional] VARIANT* bstrProduct, + [in, optional] VARIANT* bstrUniqueID, + [in, optional] VARIANT* bstrVersion, + [in, optional] VARIANT* pvarGPMProgress, + [out, optional] VARIANT* pvarGPMCancel, + [out, retval] IGPMResult** ppIGPMResult ); + + [id(14), helpstring("method Backup")] HRESULT Backup( + [in] BSTR bstrBackupDir, + [in] BSTR bstrComment, + [in, optional] VARIANT* pvarGPMProgress, + [out, optional] VARIANT* pvarGPMCancel, + [out, retval] IGPMResult** ppIGPMResult); + + [id(15), helpstring("method CopyTo")] HRESULT CopyTo( + [in, optional] VARIANT* pvarNewDisplayName, + [in, optional] VARIANT* pvarGPMProgress, + [in, optional] VARIANT* pvarGPMCancel, + + [out, retval] IGPMResult** ppIGPMResult); + + [id(16), helpstring("method GenerateReport")] HRESULT GenerateReport( + [in] GPMReportType gpmReportType, + [in, optional] VARIANT* pvarGPMProgress, + [in, optional] VARIANT* pvarGPMCancel, + [out, retval] IGPMResult** ppIGPMResult); + + [id(17), helpstring("method GenerateReportToFile")] HRESULT GenerateReportToFile( + [in] GPMReportType gpmReportType, + [in] BSTR bstrTargetFilePath, + [out, retval] IGPMResult **ppIGPMResult); + + [id(18), helpstring("method GetSecurityInfo")] HRESULT GetSecurityInfo([out, retval] IGPMSecurityInfo **ppSecurityInfo); + [id(19), helpstring("method SetSecurityInfo")] HRESULT SetSecurityInfo([in] IGPMSecurityInfo *pSecurityInfo); + + }; + + [ + object, + uuid(2E522729-2219-44ad-933A-64DFD650C423), + dual, + helpstring("IGPMStarterGPOCollection Interface"), + pointer_default(unique) + ] + interface IGPMStarterGPOCollection : IDispatch + { + [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] long *pVal); + [propget, id(DISPID_VALUE), helpstring("property Item")] HRESULT Item(long lIndex, [out, retval] VARIANT *pVal); + [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] HRESULT _NewEnum([out, retval] IEnumVARIANT* *ppIGPMTemplates); + }; + + [ + object, + uuid(7CA6BB8B-F1EB-490a-938D-3C4E51C768E6), + dual, + helpstring("IGPMDomain2 Interface"), + pointer_default(unique) + ] + interface IGPMDomain2 : IGPMDomain + { + [id(12), helpstring("method CreateStarterGPO")] HRESULT CreateStarterGPO([out, retval] IGPMStarterGPO **ppnewTemplate); + [id(13), helpstring("method CreateGPOFromStarterGPO")] HRESULT CreateGPOFromStarterGPO([in] IGPMStarterGPO *pGPOTemplate, [out, retval] IGPMGPO **ppnewGPO); + [id(14), helpstring("method GetStarterGPO")] HRESULT GetStarterGPO([in] BSTR bstrGuid, [out, retval] IGPMStarterGPO **ppTemplate); + [id(15), helpstring("method SearchStarterGPOs")] HRESULT SearchStarterGPOs([in] IGPMSearchCriteria *pIGPMSearchCriteria, [out, retval] IGPMStarterGPOCollection **ppIGPMTemplateCollection); + [id(16), helpstring("method LoadStarterGPO")] HRESULT LoadStarterGPO( + [in] BSTR bstrLoadFile, + [in] VARIANT_BOOL bOverwrite, + [in, optional] VARIANT *pvarGPMProgress, + [out, optional] VARIANT *pvarGPMCancel, + [out, retval] IGPMResult **ppIGPMResult); + [id(17), helpstring("method RestoreStarterGPO")] HRESULT RestoreStarterGPO( + [in] IGPMStarterGPOBackup *pIGPMTmplBackup, + /* MM032206 - This parameter makes no sense here, since templates do + not support SI settings + [in] long lDCFlags,*/ + [in, optional] VARIANT *pvarGPMProgress, + [out, optional] VARIANT *pvarGPMCancel, + [out, retval] IGPMResult **ppIGPMResult); + }; + + [ + object, + uuid(05AE21B0-AC09-4032-A26F-9E7DA786DC19), + dual, + helpstring("IGPMConstants2 Interface"), + pointer_default(unique) + ] + interface IGPMConstants2 : IGPMConstants + { + [propget, id(61), helpstring("property BackupTypeGPO")] HRESULT BackupTypeGPO([out, retval] GPMBackupType *pVal); + [propget, id(62), helpstring("property BackupTypeStarterGPO")] HRESULT BackupTypeStarterGPO([out, retval] GPMBackupType *pVal); + [propget, id(63), helpstring("property StarterGPOTypeSystem")] HRESULT StarterGPOTypeSystem([out, retval] GPMStarterGPOType*pVal); + [propget, id(64), helpstring("property StarterGPOTypeCustom")] HRESULT StarterGPOTypeCustom([out, retval] GPMStarterGPOType *pVal); + [propget, id(65), helpstring("property SearchPropertyStarterGPOPermissions")] HRESULT SearchPropertyStarterGPOPermissions([out, retval] GPMSearchProperty *pVal); + [propget, id(66), helpstring("property SearchPropertyStarterGPOEffectivePermissions")] HRESULT SearchPropertyStarterGPOEffectivePermissions([out, retval] GPMSearchProperty *pVal); + [propget, id(67), helpstring("property SearchPropertyStarterGPODisplayName")] HRESULT SearchPropertyStarterGPODisplayName([out, retval] GPMSearchProperty *pVal); + [propget, id(69), helpstring("property SearchPropertyStarterGPOID")] HRESULT SearchPropertyStarterGPOID([out, retval] GPMSearchProperty *pVal); + [propget, id(70), helpstring("property SearchPropertyStarterGPODomain")] HRESULT SearchPropertyStarterGPODomain([out, retval] GPMSearchProperty *pVal); + [propget, id(71), helpstring("property PermStarterGPORead")] HRESULT PermStarterGPORead([out, retval] GPMPermissionType *pVal); + [propget, id(72), helpstring("property PermStarterGPOEdit")] HRESULT PermStarterGPOEdit([out, retval] GPMPermissionType *pVal); + [propget, id(73), helpstring("property PermStarterGPOFullControl")] HRESULT PermStarterGPOFullControl([out, retval] GPMPermissionType *pVal); + [propget, id(74), helpstring("property PermStarterGPOCustom")] HRESULT PermStarterGPOCustom([out, retval] GPMPermissionType *pVal); + [propget, id(75), helpstring("property ReportLegacy")] HRESULT ReportLegacy([out, retval] GPMReportingOptions *pVal); + [propget, id(76), helpstring("property ReportComments")] HRESULT ReportComments([out, retval] GPMReportingOptions *pVal); + }; + + [ + object, + uuid(8A66A210-B78B-4d99-88E2-C306A817C925), + dual, + helpstring("IGPMGPO2 Interface"), + pointer_default(unique) + ] + interface IGPMGPO2 : IGPMGPO + { + [propget, id(30), helpstring("property Description")] HRESULT Description([out, retval] BSTR *pVal); + [propput, id(30), helpstring("property Description")] HRESULT Description([in] BSTR newVal); + }; + + [ + object, + uuid(0077FDFE-88C7-4acf-A11D-D10A7C310A03), + dual, + helpstring("IGPMDomain3 Interface"), + pointer_default(unique) + ] + interface IGPMDomain3 : IGPMDomain2 + { + [id(18), helpstring("method GenerateReport")] HRESULT GenerateReport( + [in] GPMReportType gpmReportType, + [in, optional] VARIANT *pvarGPMProgress, + [out,optional] VARIANT *pvarGPMCancel, + [out,retval] IGPMResult **ppIGPMResult); + [propget, id(19), helpstring("property InfrastructureDC")] HRESULT InfrastructureDC([out, retval] BSTR *pVal); + [propput, id(19), helpstring("property InfrastructureDC")] HRESULT InfrastructureDC([in] BSTR newVal); + [propput, id(20), helpstring("property InfrastructureFlags")] HRESULT InfrastructureFlags([in] DWORD dwFlags); + }; + + [ + object, + uuid(7CF123A1-F94A-4112-BFAE-6AA1DB9CB248), + dual, + helpstring("IGPMGPO3 Interface"), + pointer_default(unique) + ] + interface IGPMGPO3 : IGPMGPO2 + { + [propget, id(31), helpstring("property InfrastructureDC")] HRESULT InfrastructureDC([out, retval] BSTR *pVal); + [propput, id(31), helpstring("property InfrastructureDC")] HRESULT InfrastructureDC([in] BSTR newVal); + [propput, id(32), helpstring("property InfrastructureFlags")] HRESULT InfrastructureFlags([in] DWORD dwFlags); + }; + +[ + uuid(C2F48CC2-305B-4672-BAA7-76A57738F48A), + version(1.0), + helpstring("gpmgmt 1.0 Type Library") +] +library GPMGMTLib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + uuid(F5694708-88FE-4B35-BABF-E56162D5FBC8), + helpstring("GPM Class") + ] + coclass GPM + { + [default] interface IGPM2; + }; + + [ + uuid(710901BE-1050-4CB1-838A-C5CFF259E183), + helpstring("GPMDomain Class") + ] + coclass GPMDomain + { + [default] interface IGPMDomain3; + }; + + [ + uuid(229F5C42-852C-4B30-945F-C522BE9BD386), + helpstring("GPMSitesContainer Class") + ] + coclass GPMSitesContainer + { + [default] interface IGPMSitesContainer; + }; + + [ + uuid(FCE4A59D-0F21-4AFA-B859-E6D0C62CD10C), + helpstring("GPMBackupDir Class") + ] + coclass GPMBackupDir + { + [default] interface IGPMBackupDir; + }; + + [ + uuid(32D93FAC-450E-44CF-829C-8B22FF6BDAE1), + helpstring("GPMSOM Class") + ] + coclass GPMSOM + { + [default] interface IGPMSOM; + }; + + [ + uuid(17AACA26-5CE0-44FA-8CC0-5259E6483566), + helpstring("GPMSearchCriteria Class") + ] + coclass GPMSearchCriteria + { + [default] interface IGPMSearchCriteria; + }; + + [ + uuid(5871A40A-E9C0-46EC-913E-944EF9225A94), + helpstring("GPMPermission Class") + ] + coclass GPMPermission + { + [default] interface IGPMPermission; + }; + + [ + uuid(547A5E8F-9162-4516-A4DF-9DDB9686D846), + helpstring("GPMSecurityInfo Class") + ] + coclass GPMSecurityInfo + { + [default] interface IGPMSecurityInfo; + }; + + [ + uuid(ED1A54B8-5EFA-482A-93C0-8AD86F0D68C3), + helpstring("GPMBackup Class") + ] + coclass GPMBackup + { + [default] interface IGPMBackup; + }; + + [ + uuid(EB8F035B-70DB-4A9F-9676-37C25994E9DC), + helpstring("GPMBackupCollection Class") + ] + coclass GPMBackupCollection + { + [default] interface IGPMBackupCollection; + }; + + [ + uuid(24C1F147-3720-4F5B-A9C3-06B4E4F931D2), + helpstring("GPMSOMCollection Class") + ] + coclass GPMSOMCollection + { + [default] interface IGPMSOMCollection; + }; + + [ + uuid(626745D8-0DEA-4062-BF60-CFC5B1CA1286), + helpstring("GPMWMIFilter Class") + ] + coclass GPMWMIFilter + { + [default] interface IGPMWMIFilter; + }; + + [ + uuid(74DC6D28-E820-47D6-A0B8-F08D93D7FA33), + helpstring("GPMWMIFilterCollection Class") + ] + coclass GPMWMIFilterCollection + { + [default] interface IGPMWMIFilterCollection; + }; + + [ + uuid(489B0CAF-9EC2-4EB7-91F5-B6F71D43DA8C), + helpstring("GPMRSOP Class") + ] + coclass GPMRSOP + { + [default] interface IGPMRSOP; + }; + + [ + uuid(D2CE2994-59B5-4064-B581-4D68486A16C4), + helpstring("GPMGPO Class") + ] + coclass GPMGPO + { + [default] interface IGPMGPO3; + }; + + [ + uuid(7A057325-832D-4DE3-A41F-C780436A4E09), + helpstring("GPMGPOCollection Class") + ] + coclass GPMGPOCollection + { + [default] interface IGPMGPOCollection; + }; + + [ + uuid(C1DF9880-5303-42C6-8A3C-0488E1BF7364), + helpstring("GPMGPOLink Class") + ] + coclass GPMGPOLink + { + [default] interface IGPMGPOLink; + }; + + [ + uuid(F6ED581A-49A5-47E2-B771-FD8DC02B6259), + helpstring("GPMGPOLinksCollection Class") + ] + coclass GPMGPOLinksCollection + { + [default] interface IGPMGPOLinksCollection; + }; + + [ + uuid(372796A9-76EC-479D-AD6C-556318ED5F9D), + helpstring("GPMAsyncCancel Class") + ] + coclass GPMAsyncCancel + { + [default] interface IGPMAsyncCancel; + }; + + [ + uuid(2824E4BE-4BCC-4CAC-9E60-0E3ED7F12496), + helpstring("GPMStatusMsgCollection Class") + ] + coclass GPMStatusMsgCollection + { + [default] interface IGPMStatusMsgCollection; + }; + + [ + uuid(4B77CC94-D255-409B-BC62-370881715A19), + helpstring("GPMStatusMessage Class") + ] + coclass GPMStatusMessage + { + [default] interface IGPMStatusMessage; + }; + +/**** + Commenting it out to remove dependency on stdole.dll + Bug 1458451 [Windows OS Bugs] + [ + uuid(36ED64E5-7266-4545-8E14-1645EEBA2A90), + helpstring("GPMEnum Class") + ] + coclass GPMEnum + { + [default] interface IEnumVARIANT; + }; +****/ + [ + uuid(C54A700D-19B6-4211-BCB0-E8E2475E471E), + helpstring("GPMTrustee Class") + ] + coclass GPMTrustee + { + [default] interface IGPMTrustee; + }; + + [ + uuid(C1A2E70E-659C-4B1A-940B-F88B0AF9C8A4), + helpstring("GPMClientSideExtension Class") + ] + coclass GPMClientSideExtension + { + [default] interface IGPMClientSideExtension; + }; + + [ + uuid(CF92B828-2D44-4B61-B10A-B327AFD42DA8), + helpstring("GPMCSECollection Class") + ] + coclass GPMCSECollection + { + [default] interface IGPMCSECollection; + }; + + [ + uuid(3855E880-CD9E-4D0C-9EAF-1579283A1888), + helpstring("GPMConstants Class") + ] + coclass GPMConstants + { + [default] interface IGPMConstants2; + }; + + [ + uuid(92101AC0-9287-4206-A3B2-4BDB73D225F6), + helpstring("GPMResult Class") + ] + coclass GPMResult + { + [default] interface IGPMResult; + }; + + [ + uuid(0CF75D5B-A3A1-4C55-B4FE-9E149C41F66D), + helpstring("GPMMapEntryCollection Class") + ] + coclass GPMMapEntryCollection + { + [default] interface IGPMMapEntryCollection; + }; + + [ + uuid(8C975253-5431-4471-B35D-0626C928258A), + helpstring("GPMMapEntry Class") + ] + coclass GPMMapEntry + { + [default] interface IGPMMapEntry; + }; + + [ + uuid(55AF4043-2A06-4F72-ABEF-631B44079C76), + helpstring("GPMMigrationTable Class") + ] + coclass GPMMigrationTable + { + [default] interface IGPMMigrationTable; + }; + + [ + uuid(E8C0988A-CF03-4c5b-8BE2-2AA9AD32AADA), + helpstring("GPMBackupDirEx Class") + ] + coclass GPMBackupDirEx + { + [default] interface IGPMBackupDirEx; + }; + + [ + uuid(E75EA59D-1AEB-4cb5-A78A-281DAA582406), + helpstring("GPMTemplateBackupCollection Class") + ] + coclass GPMStarterGPOBackupCollection + { + [default] interface IGPMStarterGPOBackupCollection; + }; + + [ + uuid(389E400A-D8EF-455b-A861-5F9CA34A6A02), + helpstring("GPMTemplateBackup Class") + ] + coclass GPMStarterGPOBackup + { + [default] interface IGPMStarterGPOBackup; + }; + + [ + uuid(ECF1D454-71DA-4e2f-A8C0-8185465911D9), + helpstring("GPMTemplate Class") + ] + coclass GPMTemplate + { + [default] interface IGPMStarterGPO; + }; + + [ + uuid(82F8AA8B-49BA-43b2-956E-3397F9B94C3A), + helpstring("GPMTemplate Class") + ] + coclass GPMStarterGPOCollection + { + [default] interface IGPMStarterGPOCollection; + }; +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/handleapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/handleapi.h new file mode 100644 index 0000000000000000000000000000000000000000..0036bec591ae8ebeb7ca23046a41561faa6b74da --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/handleapi.h @@ -0,0 +1,99 @@ +/******************************************************************************** +* * +* handleapi.h -- ApiSet Contract for api-ms-win-core-handle-l1-1-0 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _APISETHANDLE_ +#define _APISETHANDLE_ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Constants +// +#define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR)-1) + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// Prototypes +// +WINBASEAPI +BOOL +WINAPI +CloseHandle( + _In_ _Post_ptr_invalid_ HANDLE hObject + ); + +WINBASEAPI +BOOL +WINAPI +DuplicateHandle( + _In_ HANDLE hSourceProcessHandle, + _In_ HANDLE hSourceHandle, + _In_ HANDLE hTargetProcessHandle, + _Outptr_ LPHANDLE lpTargetHandle, + _In_ DWORD dwDesiredAccess, + _In_ BOOL bInheritHandle, + _In_ DWORD dwOptions + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +WINAPI +CompareObjectHandles( + _In_ HANDLE hFirstObjectHandle, + _In_ HANDLE hSecondObjectHandle + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +GetHandleInformation( + _In_ HANDLE hObject, + _Out_ LPDWORD lpdwFlags + ); + +WINBASEAPI +BOOL +WINAPI +SetHandleInformation( + _In_ HANDLE hObject, + _In_ DWORD dwMask, + _In_ DWORD dwFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _APISETHANDLE_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/heapapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/heapapi.h new file mode 100644 index 0000000000000000000000000000000000000000..d72e8f8ca01cd7585ba9440522c81025664daded --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/heapapi.h @@ -0,0 +1,240 @@ +/******************************************************************************** +* * +* HeapApi.h -- ApiSet Contract for api-ms-win-core-heap-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _HEAPAPI_H_ +#define _HEAPAPI_H_ + +#include +#include +#include +#include + +#if _MSC_VER < 1900 +#define DECLSPEC_ALLOCATOR +#else +#define DECLSPEC_ALLOCATOR __declspec(allocator) +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) // padding added after data member +#endif + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// typdefs +// + +typedef struct _HEAP_SUMMARY { + DWORD cb; + SIZE_T cbAllocated; + SIZE_T cbCommitted; + SIZE_T cbReserved; + SIZE_T cbMaxReserve; +} HEAP_SUMMARY, *PHEAP_SUMMARY; +typedef PHEAP_SUMMARY LPHEAP_SUMMARY; + +// +// Prototypes +// + +WINBASEAPI +_Ret_maybenull_ +HANDLE +WINAPI +HeapCreate( + _In_ DWORD flOptions, + _In_ SIZE_T dwInitialSize, + _In_ SIZE_T dwMaximumSize + ); + +WINBASEAPI +BOOL +WINAPI +HeapDestroy( + _In_ HANDLE hHeap + ); + +WINBASEAPI +_Ret_maybenull_ +_Post_writable_byte_size_(dwBytes) +DECLSPEC_ALLOCATOR +LPVOID +WINAPI +HeapAlloc( + _In_ HANDLE hHeap, + _In_ DWORD dwFlags, + _In_ SIZE_T dwBytes + ); + +WINBASEAPI +_Success_(return != 0) +_Ret_maybenull_ +_Post_writable_byte_size_(dwBytes) +DECLSPEC_ALLOCATOR +LPVOID +WINAPI +HeapReAlloc( + _Inout_ HANDLE hHeap, + _In_ DWORD dwFlags, + _Frees_ptr_opt_ LPVOID lpMem, + _In_ SIZE_T dwBytes + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +HeapFree( + _Inout_ HANDLE hHeap, + _In_ DWORD dwFlags, + __drv_freesMem(Mem) _Frees_ptr_opt_ LPVOID lpMem + ); + +WINBASEAPI +SIZE_T +WINAPI +HeapSize( + _In_ HANDLE hHeap, + _In_ DWORD dwFlags, + _In_ LPCVOID lpMem + ); + +WINBASEAPI +HANDLE +WINAPI +GetProcessHeap( + VOID + ); + +WINBASEAPI +SIZE_T +WINAPI +HeapCompact( + _In_ HANDLE hHeap, + _In_ DWORD dwFlags + ); + +WINBASEAPI +BOOL +WINAPI +HeapSetInformation( + _In_opt_ HANDLE HeapHandle, + _In_ HEAP_INFORMATION_CLASS HeapInformationClass, + _In_reads_bytes_opt_(HeapInformationLength) PVOID HeapInformation, + _In_ SIZE_T HeapInformationLength + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +HeapValidate( + _In_ HANDLE hHeap, + _In_ DWORD dwFlags, + _In_opt_ LPCVOID lpMem + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +BOOL +WINAPI +HeapSummary( + _In_ HANDLE hHeap, + _In_ DWORD dwFlags, + _Out_ LPHEAP_SUMMARY lpSummary + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +DWORD +WINAPI +GetProcessHeaps( + _In_ DWORD NumberOfHeaps, + _Out_writes_to_(NumberOfHeaps,return) PHANDLE ProcessHeaps + ); + +WINBASEAPI +BOOL +WINAPI +HeapLock( + _In_ HANDLE hHeap + ); + +WINBASEAPI +BOOL +WINAPI +HeapUnlock( + _In_ HANDLE hHeap + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +HeapWalk( + _In_ HANDLE hHeap, + _Inout_ LPPROCESS_HEAP_ENTRY lpEntry + ); + +WINBASEAPI +BOOL +WINAPI +HeapQueryInformation( + _In_opt_ HANDLE HeapHandle, + _In_ HEAP_INFORMATION_CLASS HeapInformationClass, + _Out_writes_bytes_to_opt_(HeapInformationLength,*ReturnLength) PVOID HeapInformation, + _In_ SIZE_T HeapInformationLength, + _Out_opt_ PSIZE_T ReturnLength + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +// +// HeapSummary() is in minwinbase.w within ;beg_internal tags. Has to stay there for downlevel reasons. +// + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#ifdef __cplusplus +} +#endif + +#endif // _HEAPAPI_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/highlevelmonitorconfigurationapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/highlevelmonitorconfigurationapi.h new file mode 100644 index 0000000000000000000000000000000000000000..9148a814e894903c54d91d3f3cd4105921fef199 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/highlevelmonitorconfigurationapi.h @@ -0,0 +1,219 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#ifndef HighLevelMonitorConfigurationAPI_h +#define HighLevelMonitorConfigurationAPI_h + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +#pragma pack( push, 1 ) + +/****************************************************************************** + Flags +******************************************************************************/ +#define MC_CAPS_NONE 0x00000000 +#define MC_CAPS_MONITOR_TECHNOLOGY_TYPE 0x00000001 +#define MC_CAPS_BRIGHTNESS 0x00000002 +#define MC_CAPS_CONTRAST 0x00000004 +#define MC_CAPS_COLOR_TEMPERATURE 0x00000008 +#define MC_CAPS_RED_GREEN_BLUE_GAIN 0x00000010 +#define MC_CAPS_RED_GREEN_BLUE_DRIVE 0x00000020 +#define MC_CAPS_DEGAUSS 0x00000040 +#define MC_CAPS_DISPLAY_AREA_POSITION 0x00000080 +#define MC_CAPS_DISPLAY_AREA_SIZE 0x00000100 +#define MC_CAPS_RESTORE_FACTORY_DEFAULTS 0x00000400 +#define MC_CAPS_RESTORE_FACTORY_COLOR_DEFAULTS 0x00000800 +#define MC_RESTORE_FACTORY_DEFAULTS_ENABLES_MONITOR_SETTINGS 0x00001000 + +#define MC_SUPPORTED_COLOR_TEMPERATURE_NONE 0x00000000 +#define MC_SUPPORTED_COLOR_TEMPERATURE_4000K 0x00000001 +#define MC_SUPPORTED_COLOR_TEMPERATURE_5000K 0x00000002 +#define MC_SUPPORTED_COLOR_TEMPERATURE_6500K 0x00000004 +#define MC_SUPPORTED_COLOR_TEMPERATURE_7500K 0x00000008 +#define MC_SUPPORTED_COLOR_TEMPERATURE_8200K 0x00000010 +#define MC_SUPPORTED_COLOR_TEMPERATURE_9300K 0x00000020 +#define MC_SUPPORTED_COLOR_TEMPERATURE_10000K 0x00000040 +#define MC_SUPPORTED_COLOR_TEMPERATURE_11500K 0x00000080 + +/****************************************************************************** + Enumerations +******************************************************************************/ +typedef enum _MC_DISPLAY_TECHNOLOGY_TYPE +{ + MC_SHADOW_MASK_CATHODE_RAY_TUBE, + MC_APERTURE_GRILL_CATHODE_RAY_TUBE, + MC_THIN_FILM_TRANSISTOR, + MC_LIQUID_CRYSTAL_ON_SILICON, + MC_PLASMA, + MC_ORGANIC_LIGHT_EMITTING_DIODE, + MC_ELECTROLUMINESCENT, + MC_MICROELECTROMECHANICAL, + MC_FIELD_EMISSION_DEVICE + +} MC_DISPLAY_TECHNOLOGY_TYPE, *LPMC_DISPLAY_TECHNOLOGY_TYPE; + +typedef enum _MC_DRIVE_TYPE +{ + MC_RED_DRIVE, + MC_GREEN_DRIVE, + MC_BLUE_DRIVE + +} MC_DRIVE_TYPE; + +typedef enum _MC_GAIN_TYPE +{ + MC_RED_GAIN, + MC_GREEN_GAIN, + MC_BLUE_GAIN + +} MC_GAIN_TYPE; + +typedef enum _MC_POSITION_TYPE +{ + MC_HORIZONTAL_POSITION, + MC_VERTICAL_POSITION + +} MC_POSITION_TYPE; + +typedef enum _MC_SIZE_TYPE +{ + MC_WIDTH, + MC_HEIGHT + +} MC_SIZE_TYPE; + +typedef enum _MC_COLOR_TEMPERATURE +{ + MC_COLOR_TEMPERATURE_UNKNOWN, + MC_COLOR_TEMPERATURE_4000K, + MC_COLOR_TEMPERATURE_5000K, + MC_COLOR_TEMPERATURE_6500K, + MC_COLOR_TEMPERATURE_7500K, + MC_COLOR_TEMPERATURE_8200K, + MC_COLOR_TEMPERATURE_9300K, + MC_COLOR_TEMPERATURE_10000K, + MC_COLOR_TEMPERATURE_11500K + +} MC_COLOR_TEMPERATURE, *LPMC_COLOR_TEMPERATURE; + +/****************************************************************************** + Monitor capability functions +******************************************************************************/ +_BOOL WINAPI GetMonitorCapabilities + ( + HANDLE hMonitor, + _Out_ LPDWORD pdwMonitorCapabilities, + _Out_ LPDWORD pdwSupportedColorTemperatures + ); + +/****************************************************************************** + Monitor setting persistence functions +******************************************************************************/ +_BOOL WINAPI SaveCurrentMonitorSettings( HANDLE hMonitor ); + +/****************************************************************************** + Monitor meta-data functions +******************************************************************************/ +_BOOL WINAPI GetMonitorTechnologyType( HANDLE hMonitor, LPMC_DISPLAY_TECHNOLOGY_TYPE pdtyDisplayTechnologyType ); + +/****************************************************************************** + Monitor image calibration functions +******************************************************************************/ +_BOOL WINAPI GetMonitorBrightness + ( + HANDLE hMonitor, + _Out_ LPDWORD pdwMinimumBrightness, + _Out_ LPDWORD pdwCurrentBrightness, + _Out_ LPDWORD pdwMaximumBrightness + ); +_BOOL WINAPI GetMonitorContrast + ( + HANDLE hMonitor, + _Out_ LPDWORD pdwMinimumContrast, + _Out_ LPDWORD pdwCurrentContrast, + _Out_ LPDWORD pdwMaximumContrast + ); +_BOOL WINAPI GetMonitorColorTemperature( HANDLE hMonitor, _Out_ LPMC_COLOR_TEMPERATURE pctCurrentColorTemperature ); +_BOOL WINAPI GetMonitorRedGreenOrBlueDrive + ( + HANDLE hMonitor, + MC_DRIVE_TYPE dtDriveType, + _Out_ LPDWORD pdwMinimumDrive, + _Out_ LPDWORD pdwCurrentDrive, + _Out_ LPDWORD pdwMaximumDrive + ); +_BOOL WINAPI GetMonitorRedGreenOrBlueGain + ( + HANDLE hMonitor, + MC_GAIN_TYPE gtGainType, + _Out_ LPDWORD pdwMinimumGain, + _Out_ LPDWORD pdwCurrentGain, + _Out_ LPDWORD pdwMaximumGain + ); + +_BOOL WINAPI SetMonitorBrightness( HANDLE hMonitor, DWORD dwNewBrightness ); +_BOOL WINAPI SetMonitorContrast( HANDLE hMonitor, DWORD dwNewContrast ); +_BOOL WINAPI SetMonitorColorTemperature( HANDLE hMonitor, MC_COLOR_TEMPERATURE ctCurrentColorTemperature ); +_BOOL WINAPI SetMonitorRedGreenOrBlueDrive( HANDLE hMonitor, MC_DRIVE_TYPE dtDriveType, DWORD dwNewDrive ); +_BOOL WINAPI SetMonitorRedGreenOrBlueGain( HANDLE hMonitor, MC_GAIN_TYPE gtGainType, DWORD dwNewGain ); +_BOOL WINAPI DegaussMonitor( HANDLE hMonitor ); + +/****************************************************************************** + Monitor image size and position calibration functions +******************************************************************************/ +_BOOL WINAPI GetMonitorDisplayAreaSize + ( + HANDLE hMonitor, + MC_SIZE_TYPE stSizeType, + _Out_ LPDWORD pdwMinimumWidthOrHeight, + _Out_ LPDWORD pdwCurrentWidthOrHeight, + _Out_ LPDWORD pdwMaximumWidthOrHeight + ); +_BOOL WINAPI GetMonitorDisplayAreaPosition + ( + HANDLE hMonitor, + MC_POSITION_TYPE ptPositionType, + _Out_ LPDWORD pdwMinimumPosition, + _Out_ LPDWORD pdwCurrentPosition, + _Out_ LPDWORD pdwMaximumPosition + ); +_BOOL WINAPI SetMonitorDisplayAreaSize + ( + HANDLE hMonitor, + MC_SIZE_TYPE stSizeType, + DWORD dwNewDisplayAreaWidthOrHeight + ); +_BOOL WINAPI SetMonitorDisplayAreaPosition + ( + HANDLE hMonitor, + MC_POSITION_TYPE ptPositionType, + DWORD dwNewPosition + ); + +/****************************************************************************** + Restore to defaults functions +******************************************************************************/ +_BOOL WINAPI RestoreMonitorFactoryColorDefaults( HANDLE hMonitor ); +_BOOL WINAPI RestoreMonitorFactoryDefaults( HANDLE hMonitor ); + +#pragma pack( pop ) + +#ifdef __cplusplus +} +#endif // __cplusplus + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // HighLevelMonitorConfigurationAPI_h diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/hintsdeviceservice.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hintsdeviceservice.h new file mode 100644 index 0000000000000000000000000000000000000000..1cedc0259f8d7a45b8161e4c046c93ce10e1fa0b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hintsdeviceservice.h @@ -0,0 +1,296 @@ +/* + * HintsDeviceService.h + * + * Contains definitions of the Hints Device Service + * + * Copyright (c) Microsoft Corporation, All Rights Reserved. + * + */ + +#ifndef _HINTSDEVICESERVICE_H_ +#define _HINTSDEVICESERVICE_H_ + +#include + + +/***************************************************************************** + Hints Service Info +******************************************************************************/ + +DEFINE_DEVSVCGUID(SERVICE_Hints, + 0xc8a98b1f, 0x6b19, 0x4e79, 0xa4, 0x14, 0x67, 0xea, 0x4c, 0x39, 0xee, 0xc2 ); + +#define NAME_HintsSvc L"Hints" +#define TYPE_HintsSvc DEVSVCTYPE_DEFAULT + + +/*****************************************************************************/ +/* WPD Content Types */ +/*****************************************************************************/ + + +/* WPDCONTENTTYPE_Folder + * + * Indicates this object is a folder. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Folder, + 0x27E2E392, 0xA111, 0x48E0, 0xAB, 0x0C, 0xE1, 0x77, 0x05, 0xA0, 0x5F, 0x85); + + +/* WPDCONTENTTYPE_Image + * + * Indicates this object represents image data (e.g. a JPEG file) + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Image, + 0xef2107d5, 0xa52a, 0x4243, 0xa2, 0x6b, 0x62, 0xd4, 0x17, 0x6d, 0x76, 0x03); + + +/* WPDCONTENTTYPE_Document + * + * Indicates this object represents document data (e.g. a MS WORD file, + * TEXT file, etc.) + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Document, + 0x680ADF52, 0x950A, 0x4041, 0x9B, 0x41, 0x65, 0xE3, 0x93, 0x64, 0x81, 0x55); + + +/* WPDCONTENTTYPE_Contact + * + * Indicates this object represents contact data (e.g. name/number, or a + * VCARD file) + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Contact, + 0xEABA8313, 0x4525, 0x4707, 0x9F, 0x0E, 0x87, 0xC6, 0x80, 0x8E, 0x94, 0x35); + + +/* WPDCONTENTTYPE_ContactGroup + * + * Indicates this object represents a group of contacts. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_ContactGroup, + 0x346B8932, 0x4C36, 0x40D8, 0x94, 0x15, 0x18, 0x28, 0x29, 0x1F, 0x9D, 0xE9); + + +/* WPDCONTENTTYPE_Audio + * + * Indicates this object represents audio data (e.g. a WMA or MP3 file) + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Audio, + 0x4AD2C85E, 0x5E2D, 0x45E5, 0x88, 0x64, 0x4F, 0x22, 0x9E, 0x3C, 0x6C, 0xF0); + + +/* WPDCONTENTTYPE_Video + * + * Indicates this object represents video data (e.g. a WMV or AVI file) + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Video, + 0x9261B03C, 0x3D78, 0x4519, 0x85, 0xE3, 0x02, 0xC5, 0xE1, 0xF5, 0x0B, 0xB9); + + +/* WPDCONTENTTYPE_Television + * + * Indicates this object represents a television recording. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Television, + 0x60A169CF, 0xF2AE, 0x4E21, 0x93, 0x75, 0x96, 0x77, 0xF1, 0x1C, 0x1C, 0x6E); + + +/* WPDCONTENTTYPE_Playlist + * + * Indicates this object represents a playlist. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Playlist, + 0x1A33F7E4, 0xAF13, 0x48F5, 0x99, 0x4E, 0x77, 0x36, 0x9D, 0xFE, 0x04, 0xA3); + + +/* WPDCONTENTTYPE_MixedContentAlbum + * + * Indicates this object represents an album, which may contain objects of + * different content types (typically, MUSIC, IMAGE and VIDEO). + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_MixedContentAlbum, + 0x00F0C3AC, 0xA593, 0x49AC, 0x92, 0x19, 0x24, 0xAB, 0xCA, 0x5A, 0x25, 0x63); + + +/* WPDCONTENTTYPE_AudioAlbum + * + * Indicates this object represents an audio album. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_AudioAlbum, + 0xAA18737E, 0x5009, 0x48FA, 0xAE, 0x21, 0x85, 0xF2, 0x43, 0x83, 0xB4, 0xE6); + + +/* WPDCONTENTTYPE_ImageAlbum + * + * Indicates this object represents an image album. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_ImageAlbum, + 0x75793148, 0x15F5, 0x4A30, 0xA8, 0x13, 0x54, 0xED, 0x8A, 0x37, 0xE2, 0x26); + + +/* WPDCONTENTTYPE_VideoAlbum + * + * Indicates this object represents a video album. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_VideoAlbum, + 0x012B0DB7, 0xD4C1, 0x45D6, 0xB0, 0x81, 0x94, 0xB8, 0x77, 0x79, 0x61, 0x4F); + + +/* WPDCONTENTTYPE_Memo + * + * Indicates this object represents memo data + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Memo, + 0x9CD20ECF, 0x3B50, 0x414F, 0xA6, 0x41, 0xE4, 0x73, 0xFF, 0xE4, 0x57, 0x51); + + +/* WPDCONTENTTYPE_Email + * + * Indicates this object represents e-mail data + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Email, + 0x8038044A, 0x7E51, 0x4F8F, 0x88, 0x3D, 0x1D, 0x06, 0x23, 0xD1, 0x45, 0x33); + + +/* WPDCONTENTTYPE_Appointment + * + * Indicates this object represents an appointment in a calendar + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Appointment, + 0x0FED060E, 0x8793, 0x4B1E, 0x90, 0xC9, 0x48, 0xAC, 0x38, 0x9A, 0xC6, 0x31); + + +/* WPDCONTENTTYPE_Task + * + * Indicates this object represents a task for tracking (e.g. a TODO list) + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Task, + 0x63252F2C, 0x887F, 0x4CB6, 0xB1, 0xAC, 0xD2, 0x98, 0x55, 0xDC, 0xEF, 0x6C); + + +/* WPDCONTENTTYPE_Program + * + * Indicates this object represents a file that can be run. This could be a + * script, executable and so on. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Program, + 0xD269F96A, 0x247C, 0x4BFF, 0x98, 0xFB, 0x97, 0xF3, 0xC4, 0x92, 0x20, 0xE6); + + +/* WPDCONTENTTYPE_GenericFile + * + * Indicates this object represents a file that does not fall into any of the + * other predefined WPD types for files. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_GenericFile, + 0x0085E0A6, 0x8D34, 0x45D7, 0xBC, 0x5C, 0x44, 0x7E, 0x59, 0xC7, 0x3D, 0x48); + + +/* WPDCONTENTTYPE_Calendar + * + * Indicates this object represents a calender + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Calendar, + 0xA1FD5967, 0x6023, 0x49A0, 0x9D, 0xF1, 0xF8, 0x06, 0x0B, 0xE7, 0x51, 0xB0); + + +/* WPDCONTENTTYPE_GenericMessage + * + * Indicates this object represents a message (e.g. SMS message, + * E-Mail message, etc.) + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_GenericMessage, + 0xE80EAAF8, 0xB2DB, 0x4133, 0xB6, 0x7E, 0x1B, 0xEF, 0x4B, 0x4A, 0x6E, 0x5F); + + +/* WPDCONTENTTYPE_NetworkAssociation + * + * Indicates this object represents an association between a host and a device. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_NetworkAssociation, + 0x031DA7EE, 0x18C8, 0x4205, 0x84, 0x7E, 0x89, 0xA1, 0x12, 0x61, 0xD0, 0xF3); + + +/* WPDCONTENTTYPE_Certificate + * + * Indicates this object represents certificate used for authentication. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Certificate, + 0xDC3876E8, 0xA948, 0x4060, 0x90, 0x50, 0xCB, 0xD7, 0x7E, 0x8A, 0x3D, 0x87); + + +/* WPDCONTENTTYPE_WirelessProfile + * + * Indicates this object represents wireless network access information. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_WirelessProfile, + 0x0BAC070A, 0x9F5F, 0x4DA4, 0xA8, 0xF6, 0x3D, 0xE4, 0x4D, 0x68, 0xFD, 0x6C); + + +/* WPDCONTENTTYPE_MediaCast + * + * Indicates this object represents a media cast. A media cast object can be + * thought of as a container object that groups related content, similar to + * how a playlist groups songs to play. Often, a media cast object is used + * to group media content originally published online. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_MediaCast, + 0x5E88B3CC, 0x3E65, 0x4E62, 0xBF, 0xFF, 0x22, 0x94, 0x95, 0x25, 0x3A, 0xB0); + + +/* WPDCONTENTTYPE_Section + * + * Indicates this object describes a section of data contained in another + * object. The WPD_OBJECT_REFERENCES property indicates which object contains + * the actual data. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Section, + 0x821089F5, 0x1D91, 0x4DC9, 0xBE, 0x3C, 0xBB, 0xB1, 0xB3, 0x5B, 0x18, 0xCE); + + +/* WPDCONTENTTYPE_Unspecified + * + * Indicates this object doesn't fall into the predefined WPD content types + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_Unspecified, + 0x28D8D31E, 0x249C, 0x454E, 0xAA, 0xBC, 0x34, 0x88, 0x31, 0x68, 0xE6, 0x34); + + +/* WPDCONTENTTYPE_All + * + * This content type is only valid as a parameter to API functions and driver + * commands. It should not be reported as a supported content type by the driver. + */ + +DEFINE_DEVSVCGUID(WPDCONTENTTYPE_All, + 0x80E170D2, 0x1055, 0x4A3E, 0xB9, 0x52, 0x82, 0xCC, 0x4F, 0x8A, 0x86, 0x89); + + +#endif /*_HINTSDEVICESERVICE_H_*/ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/homepagesetting.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/homepagesetting.h new file mode 100644 index 0000000000000000000000000000000000000000..2a49466d78e99936b7bccbda9d30e94042efa68f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/homepagesetting.h @@ -0,0 +1,249 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __homepagesetting_h__ +#define __homepagesetting_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IHomePageSetting_FWD_DEFINED__ +#define __IHomePageSetting_FWD_DEFINED__ +typedef interface IHomePageSetting IHomePageSetting; + +#endif /* __IHomePageSetting_FWD_DEFINED__ */ + + +#ifndef __HomePageSetting_FWD_DEFINED__ +#define __HomePageSetting_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class HomePageSetting HomePageSetting; +#else +typedef struct HomePageSetting HomePageSetting; +#endif /* __cplusplus */ + +#endif /* __HomePageSetting_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "objidl.h" +#include "oleidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_homepagesetting_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// homepagesetting.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_homepagesetting_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_homepagesetting_0000_0000_v0_0_s_ifspec; + +#ifndef __IHomePageSetting_INTERFACE_DEFINED__ +#define __IHomePageSetting_INTERFACE_DEFINED__ + +/* interface IHomePageSetting */ +/* [local][unique][uuid][object] */ + + +EXTERN_C const IID IID_IHomePageSetting; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FDFC244F-18FA-4FF2-B08E-1D618F3FFBE4") + IHomePageSetting : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetHomePage( + /* [in] */ HWND hwnd, + /* [in] */ LPCWSTR homePageUri, + /* [in] */ LPCWSTR brandingMessage) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsHomePage( + /* [in] */ LPCWSTR uri, + /* [out] */ BOOL *isDefault) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetHomePageToBrowserDefault( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHomePageSettingVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IHomePageSetting * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IHomePageSetting * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IHomePageSetting * This); + + DECLSPEC_XFGVIRT(IHomePageSetting, SetHomePage) + HRESULT ( STDMETHODCALLTYPE *SetHomePage )( + IHomePageSetting * This, + /* [in] */ HWND hwnd, + /* [in] */ LPCWSTR homePageUri, + /* [in] */ LPCWSTR brandingMessage); + + DECLSPEC_XFGVIRT(IHomePageSetting, IsHomePage) + HRESULT ( STDMETHODCALLTYPE *IsHomePage )( + IHomePageSetting * This, + /* [in] */ LPCWSTR uri, + /* [out] */ BOOL *isDefault); + + DECLSPEC_XFGVIRT(IHomePageSetting, SetHomePageToBrowserDefault) + HRESULT ( STDMETHODCALLTYPE *SetHomePageToBrowserDefault )( + IHomePageSetting * This); + + END_INTERFACE + } IHomePageSettingVtbl; + + interface IHomePageSetting + { + CONST_VTBL struct IHomePageSettingVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHomePageSetting_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHomePageSetting_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHomePageSetting_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHomePageSetting_SetHomePage(This,hwnd,homePageUri,brandingMessage) \ + ( (This)->lpVtbl -> SetHomePage(This,hwnd,homePageUri,brandingMessage) ) + +#define IHomePageSetting_IsHomePage(This,uri,isDefault) \ + ( (This)->lpVtbl -> IsHomePage(This,uri,isDefault) ) + +#define IHomePageSetting_SetHomePageToBrowserDefault(This) \ + ( (This)->lpVtbl -> SetHomePageToBrowserDefault(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHomePageSetting_INTERFACE_DEFINED__ */ + + + +#ifndef __IEHomePageSettingObjects_LIBRARY_DEFINED__ +#define __IEHomePageSettingObjects_LIBRARY_DEFINED__ + +/* library IEHomePageSettingObjects */ +/* [uuid] */ + + +EXTERN_C const IID LIBID_IEHomePageSettingObjects; + +EXTERN_C const CLSID CLSID_HomePageSetting; + +#ifdef __cplusplus + +class DECLSPEC_UUID("374CEDE0-873A-4C4F-BC86-BCC8CF5116A3") +HomePageSetting; +#endif +#endif /* __IEHomePageSettingObjects_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_homepagesetting_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_homepagesetting_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_homepagesetting_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/homepagesetting.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/homepagesetting.idl new file mode 100644 index 0000000000000000000000000000000000000000..8bd146bef7015be1f27c1c94f4d53d44b4c9c9ed --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/homepagesetting.idl @@ -0,0 +1,56 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: homepagesetting.idl +// +//---------------------------------------------------------------------------- +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// homepagesetting.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "objidl.idl"; +import "oleidl.idl"; + +[ + object, + uuid(FDFC244F-18FA-4FF2-B08E-1D618F3FFBE4), + pointer_default(unique), + local, +] +interface IHomePageSetting : IUnknown +{ + HRESULT SetHomePage( + [in] HWND hwnd, + [in] LPCWSTR homePageUri, + [in] LPCWSTR brandingMessage); + HRESULT IsHomePage( + [in] LPCWSTR uri, + [out] BOOL *isDefault); + HRESULT SetHomePageToBrowserDefault(); +} +[ + uuid(D9903292-C3C3-4D0D-8A09-05DD419D5B6F), +] +library IEHomePageSettingObjects +{ + [uuid(374CEDE0-873A-4C4F-BC86-BCC8CF5116A3)] coclass HomePageSetting {interface IHomePageSetting;} +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/hrtfapoapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hrtfapoapi.h new file mode 100644 index 0000000000000000000000000000000000000000..a1c2a9980d2ea4b13d773960cc8b6f5f6ec55da3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hrtfapoapi.h @@ -0,0 +1,184 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// +#ifdef _MSC_VER +#pragma once +#endif + +#ifndef __HRTFAPOAPI_INCLUDED__ +#define __HRTFAPOAPI_INCLUDED__ + +#include +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#define HRTF_MAX_GAIN_LIMIT 12.0f +#define HRTF_MIN_GAIN_LIMIT -96.0f +#define HRTF_MIN_UNITY_GAIN_DISTANCE 0.05f +#define HRTF_DEFAULT_UNITY_GAIN_DISTANCE 1.0f +#define HRTF_DEFAULT_CUTOFF_DISTANCE FLT_MAX + +//! Represents a position in 3D space, using a right-handed coordinate system. +typedef struct HrtfPosition +{ + float x; + float y; + float z; +} HrtfPosition; + +//! Indicates the orientation of an HRTF directivity object. This is a row-major 3x3 rotation matrix. +typedef struct HrtfOrientation +{ + float element[9]; +} HrtfOrientation; + +//! Indicates one of several stock directivity patterns. +typedef enum HrtfDirectivityType +{ + //! The sound emission is in all directions. + OmniDirectional=0, + //! The sound emission is a cardiod shape. + Cardioid, + //! The sound emission is a cone. + Cone +} HrtfDirectivityType; + +//! Indicates one of several stock environment types. +typedef enum HrtfEnvironment +{ + //! A small room. + Small=0, + //! A medium-sized room. + Medium, + //! A large enclosed space. + Large, + //! An outdoor space. + Outdoors, +} HrtfEnvironment; + +// +//! Base directivity pattern descriptor. Describes the type of directivity applied to a sound. +//! The scaling parameter is used to interpolate between directivity behavior and omnidirectional; it determines how much attenuation is applied to the source outside of the directivity pattern and controls how directional the source is. +// +typedef struct HrtfDirectivity +{ + //! Indicates the type of directivity. + HrtfDirectivityType type; + //! A normalized value between zero and one. Specifies the amount of linear interpolation between omnidirectional sound and the full directivity pattern, where 0 is fully omnidirectional and 1 is fully directional. + float scaling; +} HrtfDirectivity; + +//! Describes a cardioid directivity pattern. +typedef struct HrtfDirectivityCardioid +{ + //! Descriptor for the cardioid pattern. The type parameter must be set to HrtfDirectivityType.Cardioid. + HrtfDirectivity directivity; + //! Order controls the shape of the cardioid. The higher order the shape, the narrower it is. Must be greater than 0 and less than or equal to 32. + float order; +} HrtfDirectivityCardioid; + +// +//! Describes a cone directivity. +//! Attenuation is 0 inside the inner cone. +//! Attenuation is linearly interpolated between the inner cone, which is defined by innerAngle, and the outer cone, which is defined by outerAngle. +// +typedef struct HrtfDirectivityCone +{ + //! Descriptor for the cone pattern. The type parameter must be set to HrtfDirectivityType.Cone. + HrtfDirectivity directivity; + //! Angle, in radians, that defines the inner cone. Must be between 0 and 2 * pi. + float innerAngle; + //! Angle, in radians, that defines the outer cone. Must be between 0 and 2 * pi. + float outerAngle; +} HrtfDirectivityCone; + +// +//! Indicates a distance-based decay type applied to a sound. +// +typedef enum HrtfDistanceDecayType +{ + //! Simulates natural decay with distance, as constrained by minimum and maximum gain distance limits. Drops to silence at rolloff distance. + NaturalDecay=0, + //! Used to set up a custom gain curve, within the maximum and minimum gain limit. + CustomDecay +} HrtfDistanceDecayType; + +// +//! Describes a distance-based decay behavior. +// +typedef struct HrtfDistanceDecay +{ + //! The type of decay behavior, natural or custom. + HrtfDistanceDecayType type; + //! The maximum gain limit applied at any distance. Applies to both natural and custom decay. This value is specified in dB, with a range from -96 to 12 inclusive. The default value is 12 dB. + float maxGain; + //! The minimum gain limit applied at any distance. Applies to both natural and custom decay. This value is specified in dB, with a range from -96 to 12 inclusive. The default value is -96 dB. + float minGain; + //! The distance at which the gain is 0dB. Applies to natural decay only. This value is specified in meters, with a range from 0.05 to infinity (FLT_MAX). The default value is 1 meter. + float unityGainDistance; + //! The distance at which output is silent. Applies to natural decay only. This value is specified in meters, with a range from zero (non-inclusive) to infinity (FLT_MAX). The default value is infinity. + float cutoffDistance; +} HrtfDistanceDecay; + +// +//! Specifies parameters used to initialize HRTF. +//! +//! Instances of the XAPO interface are created by using the CreateHrtfApo() API: +//! ```STDAPI CreateHrtfApo(_In_ const HrtfApoInit* pInit, _Outptr_ IXAPO** ppXapo);``` +//! +// +typedef struct HrtfApoInit +{ + //! The decay type. If you pass in nullptr, the default value will be used. The default is natural decay. + HrtfDistanceDecay* distanceDecay; + //! The directivity type. If you pass in nullptr, the default value will be used. The default directivity is omni-directional. + HrtfDirectivity* directivity; +} HrtfApoInit; + +//! Creates an instance of the XAPO object. +//! Format requirements: +//! * Input: mono, 48 kHz, 32-bit float PCM. +//! * Output: stereo, 48 kHz, 32-bit float PCM. +//! Audio is processed in blocks of 1024 samples. +//! Returns: +//! S_OK for success, any other value indicates failure. +//! Returns E_NOTIMPL on unsupported platforms. +STDAPI CreateHrtfApo( + //! Pointer to an HrtfApoInit struct. Specifies parameters for XAPO interface initialization. + _In_ const HrtfApoInit* init, + //! Returns the new instance of the XAPO interface. + _COM_Outptr_ IXAPO** xApo +); + +// +//! The interface used to set parameters that control how HRTF is applied to a sound. +// +#undef INTERFACE +#define INTERFACE IXAPOHrtfParameters +DECLARE_INTERFACE_IID_(IXAPOHrtfParameters, IUnknown, "15B3CD66-E9DE-4464-B6E6-2BC3CF63D455") +{ + // IUnknown + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppv) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + // HRTF params + //! The position of the sound relative to the listener. + STDMETHOD(SetSourcePosition)(THIS_ _In_ const HrtfPosition* position) PURE; + //! The rotation matrix for the source orientation, with respect to the listener's frame of reference (the listener's coordinate system). + STDMETHOD(SetSourceOrientation)(THIS_ _In_ const HrtfOrientation* orientation) PURE; + //! The custom direct path gain value for the current source position. Valid only for sounds played with the HrtfDistanceDecayType. Custom decay type. + STDMETHOD(SetSourceGain)(THIS_ _In_ float gain) PURE; + + // Distance cue params + //! Selects the acoustic environment to simulate. + STDMETHOD(SetEnvironment)(THIS_ _In_ HrtfEnvironment environment) PURE; +}; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // __HRTFAPOAPI_INCLUDED__ \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiface.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiface.h new file mode 100644 index 0000000000000000000000000000000000000000..677618246701ba676e7fcdb8c63d5d68783617e9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiface.h @@ -0,0 +1,814 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __htiface_h__ +#define __htiface_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ITargetFrame_FWD_DEFINED__ +#define __ITargetFrame_FWD_DEFINED__ +typedef interface ITargetFrame ITargetFrame; + +#endif /* __ITargetFrame_FWD_DEFINED__ */ + + +#ifndef __ITargetEmbedding_FWD_DEFINED__ +#define __ITargetEmbedding_FWD_DEFINED__ +typedef interface ITargetEmbedding ITargetEmbedding; + +#endif /* __ITargetEmbedding_FWD_DEFINED__ */ + + +#ifndef __ITargetFramePriv_FWD_DEFINED__ +#define __ITargetFramePriv_FWD_DEFINED__ +typedef interface ITargetFramePriv ITargetFramePriv; + +#endif /* __ITargetFramePriv_FWD_DEFINED__ */ + + +#ifndef __ITargetFramePriv2_FWD_DEFINED__ +#define __ITargetFramePriv2_FWD_DEFINED__ +typedef interface ITargetFramePriv2 ITargetFramePriv2; + +#endif /* __ITargetFramePriv2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "objidl.h" +#include "oleidl.h" +#include "urlmon.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_htiface_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// HTIface.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma comment(lib,"uuid.lib") + +//-------------------------------------------------------------------------- +// OLE Hyperlinking ITargetFrame Interfaces. + +#ifndef _LPTARGETFRAME2_DEFINED +#include "htiframe.h" +#endif // _LPTARGETFRAME2_DEFINED + + +EXTERN_C const IID IID_ITargetFrame; +EXTERN_C const IID IID_ITargetEmbedding; +EXTERN_C const IID IID_ITargetFramePriv; +EXTERN_C const IID IID_ITargetFramePriv2; +#ifndef _LPTARGETFRAME_DEFINED +#define _LPTARGETFRAME_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_htiface_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_htiface_0000_0000_v0_0_s_ifspec; + +#ifndef __ITargetFrame_INTERFACE_DEFINED__ +#define __ITargetFrame_INTERFACE_DEFINED__ + +/* interface ITargetFrame */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer ITargetFrame *LPTARGETFRAME; + +typedef /* [public] */ +enum __MIDL_ITargetFrame_0001 + { + NAVIGATEFRAME_FL_RECORD = 0x1, + NAVIGATEFRAME_FL_POST = 0x2, + NAVIGATEFRAME_FL_NO_DOC_CACHE = 0x4, + NAVIGATEFRAME_FL_NO_IMAGE_CACHE = 0x8, + NAVIGATEFRAME_FL_AUTH_FAIL_CACHE_OK = 0x10, + NAVIGATEFRAME_FL_SENDING_FROM_FORM = 0x20, + NAVIGATEFRAME_FL_REALLY_SENDING_FROM_FORM = 0x40 + } NAVIGATEFRAME_FLAGS; + +typedef struct tagNavigateData + { + ULONG ulTarget; + ULONG ulURL; + ULONG ulRefURL; + ULONG ulPostData; + DWORD dwFlags; + } NAVIGATEDATA; + + +EXTERN_C const IID IID_ITargetFrame; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("d5f78c80-5252-11cf-90fa-00AA0042106e") + ITargetFrame : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetFrameName( + /* [in] */ __RPC__in LPCWSTR pszFrameName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrameName( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszFrameName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParentFrame( + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkParent) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFrame( + /* [in] */ __RPC__in LPCWSTR pszTargetName, + /* [in] */ __RPC__in_opt IUnknown *ppunkContextFrame, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkTargetFrame) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFrameSrc( + /* [in] */ __RPC__in LPCWSTR pszFrameSrc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrameSrc( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszFrameSrc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFramesContainer( + /* [out] */ __RPC__deref_out_opt IOleContainer **ppContainer) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFrameOptions( + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrameOptions( + /* [out] */ __RPC__out DWORD *pdwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFrameMargins( + /* [in] */ DWORD dwWidth, + /* [in] */ DWORD dwHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrameMargins( + /* [out] */ __RPC__out DWORD *pdwWidth, + /* [out] */ __RPC__out DWORD *pdwHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE RemoteNavigate( + /* [in] */ ULONG cLength, + /* [size_is][in] */ __RPC__in_ecount_full(cLength) ULONG *pulData) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnChildFrameActivate( + /* [in] */ __RPC__in_opt IUnknown *pUnkChildFrame) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnChildFrameDeactivate( + /* [in] */ __RPC__in_opt IUnknown *pUnkChildFrame) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITargetFrameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITargetFrame * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITargetFrame * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITargetFrame * This); + + DECLSPEC_XFGVIRT(ITargetFrame, SetFrameName) + HRESULT ( STDMETHODCALLTYPE *SetFrameName )( + __RPC__in ITargetFrame * This, + /* [in] */ __RPC__in LPCWSTR pszFrameName); + + DECLSPEC_XFGVIRT(ITargetFrame, GetFrameName) + HRESULT ( STDMETHODCALLTYPE *GetFrameName )( + __RPC__in ITargetFrame * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszFrameName); + + DECLSPEC_XFGVIRT(ITargetFrame, GetParentFrame) + HRESULT ( STDMETHODCALLTYPE *GetParentFrame )( + __RPC__in ITargetFrame * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkParent); + + DECLSPEC_XFGVIRT(ITargetFrame, FindFrame) + HRESULT ( STDMETHODCALLTYPE *FindFrame )( + __RPC__in ITargetFrame * This, + /* [in] */ __RPC__in LPCWSTR pszTargetName, + /* [in] */ __RPC__in_opt IUnknown *ppunkContextFrame, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkTargetFrame); + + DECLSPEC_XFGVIRT(ITargetFrame, SetFrameSrc) + HRESULT ( STDMETHODCALLTYPE *SetFrameSrc )( + __RPC__in ITargetFrame * This, + /* [in] */ __RPC__in LPCWSTR pszFrameSrc); + + DECLSPEC_XFGVIRT(ITargetFrame, GetFrameSrc) + HRESULT ( STDMETHODCALLTYPE *GetFrameSrc )( + __RPC__in ITargetFrame * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszFrameSrc); + + DECLSPEC_XFGVIRT(ITargetFrame, GetFramesContainer) + HRESULT ( STDMETHODCALLTYPE *GetFramesContainer )( + __RPC__in ITargetFrame * This, + /* [out] */ __RPC__deref_out_opt IOleContainer **ppContainer); + + DECLSPEC_XFGVIRT(ITargetFrame, SetFrameOptions) + HRESULT ( STDMETHODCALLTYPE *SetFrameOptions )( + __RPC__in ITargetFrame * This, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(ITargetFrame, GetFrameOptions) + HRESULT ( STDMETHODCALLTYPE *GetFrameOptions )( + __RPC__in ITargetFrame * This, + /* [out] */ __RPC__out DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(ITargetFrame, SetFrameMargins) + HRESULT ( STDMETHODCALLTYPE *SetFrameMargins )( + __RPC__in ITargetFrame * This, + /* [in] */ DWORD dwWidth, + /* [in] */ DWORD dwHeight); + + DECLSPEC_XFGVIRT(ITargetFrame, GetFrameMargins) + HRESULT ( STDMETHODCALLTYPE *GetFrameMargins )( + __RPC__in ITargetFrame * This, + /* [out] */ __RPC__out DWORD *pdwWidth, + /* [out] */ __RPC__out DWORD *pdwHeight); + + DECLSPEC_XFGVIRT(ITargetFrame, RemoteNavigate) + HRESULT ( STDMETHODCALLTYPE *RemoteNavigate )( + __RPC__in ITargetFrame * This, + /* [in] */ ULONG cLength, + /* [size_is][in] */ __RPC__in_ecount_full(cLength) ULONG *pulData); + + DECLSPEC_XFGVIRT(ITargetFrame, OnChildFrameActivate) + HRESULT ( STDMETHODCALLTYPE *OnChildFrameActivate )( + __RPC__in ITargetFrame * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkChildFrame); + + DECLSPEC_XFGVIRT(ITargetFrame, OnChildFrameDeactivate) + HRESULT ( STDMETHODCALLTYPE *OnChildFrameDeactivate )( + __RPC__in ITargetFrame * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkChildFrame); + + END_INTERFACE + } ITargetFrameVtbl; + + interface ITargetFrame + { + CONST_VTBL struct ITargetFrameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITargetFrame_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITargetFrame_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITargetFrame_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITargetFrame_SetFrameName(This,pszFrameName) \ + ( (This)->lpVtbl -> SetFrameName(This,pszFrameName) ) + +#define ITargetFrame_GetFrameName(This,ppszFrameName) \ + ( (This)->lpVtbl -> GetFrameName(This,ppszFrameName) ) + +#define ITargetFrame_GetParentFrame(This,ppunkParent) \ + ( (This)->lpVtbl -> GetParentFrame(This,ppunkParent) ) + +#define ITargetFrame_FindFrame(This,pszTargetName,ppunkContextFrame,dwFlags,ppunkTargetFrame) \ + ( (This)->lpVtbl -> FindFrame(This,pszTargetName,ppunkContextFrame,dwFlags,ppunkTargetFrame) ) + +#define ITargetFrame_SetFrameSrc(This,pszFrameSrc) \ + ( (This)->lpVtbl -> SetFrameSrc(This,pszFrameSrc) ) + +#define ITargetFrame_GetFrameSrc(This,ppszFrameSrc) \ + ( (This)->lpVtbl -> GetFrameSrc(This,ppszFrameSrc) ) + +#define ITargetFrame_GetFramesContainer(This,ppContainer) \ + ( (This)->lpVtbl -> GetFramesContainer(This,ppContainer) ) + +#define ITargetFrame_SetFrameOptions(This,dwFlags) \ + ( (This)->lpVtbl -> SetFrameOptions(This,dwFlags) ) + +#define ITargetFrame_GetFrameOptions(This,pdwFlags) \ + ( (This)->lpVtbl -> GetFrameOptions(This,pdwFlags) ) + +#define ITargetFrame_SetFrameMargins(This,dwWidth,dwHeight) \ + ( (This)->lpVtbl -> SetFrameMargins(This,dwWidth,dwHeight) ) + +#define ITargetFrame_GetFrameMargins(This,pdwWidth,pdwHeight) \ + ( (This)->lpVtbl -> GetFrameMargins(This,pdwWidth,pdwHeight) ) + +#define ITargetFrame_RemoteNavigate(This,cLength,pulData) \ + ( (This)->lpVtbl -> RemoteNavigate(This,cLength,pulData) ) + +#define ITargetFrame_OnChildFrameActivate(This,pUnkChildFrame) \ + ( (This)->lpVtbl -> OnChildFrameActivate(This,pUnkChildFrame) ) + +#define ITargetFrame_OnChildFrameDeactivate(This,pUnkChildFrame) \ + ( (This)->lpVtbl -> OnChildFrameDeactivate(This,pUnkChildFrame) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITargetFrame_INTERFACE_DEFINED__ */ + + +#ifndef __ITargetEmbedding_INTERFACE_DEFINED__ +#define __ITargetEmbedding_INTERFACE_DEFINED__ + +/* interface ITargetEmbedding */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer ITargetEmbedding *LPTARGETEMBEDDING; + + +EXTERN_C const IID IID_ITargetEmbedding; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("548793C0-9E74-11cf-9655-00A0C9034923") + ITargetEmbedding : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTargetFrame( + /* [out] */ __RPC__deref_out_opt ITargetFrame **ppTargetFrame) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITargetEmbeddingVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITargetEmbedding * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITargetEmbedding * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITargetEmbedding * This); + + DECLSPEC_XFGVIRT(ITargetEmbedding, GetTargetFrame) + HRESULT ( STDMETHODCALLTYPE *GetTargetFrame )( + __RPC__in ITargetEmbedding * This, + /* [out] */ __RPC__deref_out_opt ITargetFrame **ppTargetFrame); + + END_INTERFACE + } ITargetEmbeddingVtbl; + + interface ITargetEmbedding + { + CONST_VTBL struct ITargetEmbeddingVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITargetEmbedding_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITargetEmbedding_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITargetEmbedding_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITargetEmbedding_GetTargetFrame(This,ppTargetFrame) \ + ( (This)->lpVtbl -> GetTargetFrame(This,ppTargetFrame) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITargetEmbedding_INTERFACE_DEFINED__ */ + + +#ifndef __ITargetFramePriv_INTERFACE_DEFINED__ +#define __ITargetFramePriv_INTERFACE_DEFINED__ + +/* interface ITargetFramePriv */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer ITargetFramePriv *LPTARGETFRAMEPRIV; + + +EXTERN_C const IID IID_ITargetFramePriv; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9216E421-2BF5-11d0-82B4-00A0C90C29C5") + ITargetFramePriv : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE FindFrameDownwards( + /* [in] */ __RPC__in LPCWSTR pszTargetName, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkTargetFrame) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFrameInContext( + /* [in] */ __RPC__in LPCWSTR pszTargetName, + /* [in] */ __RPC__in_opt IUnknown *punkContextFrame, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkTargetFrame) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnChildFrameActivate( + /* [in] */ __RPC__in_opt IUnknown *pUnkChildFrame) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnChildFrameDeactivate( + /* [in] */ __RPC__in_opt IUnknown *pUnkChildFrame) = 0; + + virtual HRESULT STDMETHODCALLTYPE NavigateHack( + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPBC pbc, + /* [unique][in] */ __RPC__in_opt IBindStatusCallback *pibsc, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszTargetName, + /* [in] */ __RPC__in LPCWSTR pszUrl, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszLocation) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindBrowserByIndex( + /* [in] */ DWORD dwID, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkBrowser) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITargetFramePrivVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITargetFramePriv * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITargetFramePriv * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITargetFramePriv * This); + + DECLSPEC_XFGVIRT(ITargetFramePriv, FindFrameDownwards) + HRESULT ( STDMETHODCALLTYPE *FindFrameDownwards )( + __RPC__in ITargetFramePriv * This, + /* [in] */ __RPC__in LPCWSTR pszTargetName, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkTargetFrame); + + DECLSPEC_XFGVIRT(ITargetFramePriv, FindFrameInContext) + HRESULT ( STDMETHODCALLTYPE *FindFrameInContext )( + __RPC__in ITargetFramePriv * This, + /* [in] */ __RPC__in LPCWSTR pszTargetName, + /* [in] */ __RPC__in_opt IUnknown *punkContextFrame, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkTargetFrame); + + DECLSPEC_XFGVIRT(ITargetFramePriv, OnChildFrameActivate) + HRESULT ( STDMETHODCALLTYPE *OnChildFrameActivate )( + __RPC__in ITargetFramePriv * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkChildFrame); + + DECLSPEC_XFGVIRT(ITargetFramePriv, OnChildFrameDeactivate) + HRESULT ( STDMETHODCALLTYPE *OnChildFrameDeactivate )( + __RPC__in ITargetFramePriv * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkChildFrame); + + DECLSPEC_XFGVIRT(ITargetFramePriv, NavigateHack) + HRESULT ( STDMETHODCALLTYPE *NavigateHack )( + __RPC__in ITargetFramePriv * This, + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPBC pbc, + /* [unique][in] */ __RPC__in_opt IBindStatusCallback *pibsc, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszTargetName, + /* [in] */ __RPC__in LPCWSTR pszUrl, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszLocation); + + DECLSPEC_XFGVIRT(ITargetFramePriv, FindBrowserByIndex) + HRESULT ( STDMETHODCALLTYPE *FindBrowserByIndex )( + __RPC__in ITargetFramePriv * This, + /* [in] */ DWORD dwID, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkBrowser); + + END_INTERFACE + } ITargetFramePrivVtbl; + + interface ITargetFramePriv + { + CONST_VTBL struct ITargetFramePrivVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITargetFramePriv_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITargetFramePriv_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITargetFramePriv_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITargetFramePriv_FindFrameDownwards(This,pszTargetName,dwFlags,ppunkTargetFrame) \ + ( (This)->lpVtbl -> FindFrameDownwards(This,pszTargetName,dwFlags,ppunkTargetFrame) ) + +#define ITargetFramePriv_FindFrameInContext(This,pszTargetName,punkContextFrame,dwFlags,ppunkTargetFrame) \ + ( (This)->lpVtbl -> FindFrameInContext(This,pszTargetName,punkContextFrame,dwFlags,ppunkTargetFrame) ) + +#define ITargetFramePriv_OnChildFrameActivate(This,pUnkChildFrame) \ + ( (This)->lpVtbl -> OnChildFrameActivate(This,pUnkChildFrame) ) + +#define ITargetFramePriv_OnChildFrameDeactivate(This,pUnkChildFrame) \ + ( (This)->lpVtbl -> OnChildFrameDeactivate(This,pUnkChildFrame) ) + +#define ITargetFramePriv_NavigateHack(This,grfHLNF,pbc,pibsc,pszTargetName,pszUrl,pszLocation) \ + ( (This)->lpVtbl -> NavigateHack(This,grfHLNF,pbc,pibsc,pszTargetName,pszUrl,pszLocation) ) + +#define ITargetFramePriv_FindBrowserByIndex(This,dwID,ppunkBrowser) \ + ( (This)->lpVtbl -> FindBrowserByIndex(This,dwID,ppunkBrowser) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITargetFramePriv_INTERFACE_DEFINED__ */ + + +#ifndef __ITargetFramePriv2_INTERFACE_DEFINED__ +#define __ITargetFramePriv2_INTERFACE_DEFINED__ + +/* interface ITargetFramePriv2 */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer ITargetFramePriv2 *LPTARGETFRAMEPRIV2; + + +EXTERN_C const IID IID_ITargetFramePriv2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B2C867E6-69D6-46F2-A611-DED9A4BD7FEF") + ITargetFramePriv2 : public ITargetFramePriv + { + public: + virtual HRESULT STDMETHODCALLTYPE AggregatedNavigation2( + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPBC pbc, + /* [unique][in] */ __RPC__in_opt IBindStatusCallback *pibsc, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszTargetName, + /* [in] */ __RPC__in_opt IUri *pUri, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszLocation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITargetFramePriv2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITargetFramePriv2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITargetFramePriv2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITargetFramePriv2 * This); + + DECLSPEC_XFGVIRT(ITargetFramePriv, FindFrameDownwards) + HRESULT ( STDMETHODCALLTYPE *FindFrameDownwards )( + __RPC__in ITargetFramePriv2 * This, + /* [in] */ __RPC__in LPCWSTR pszTargetName, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkTargetFrame); + + DECLSPEC_XFGVIRT(ITargetFramePriv, FindFrameInContext) + HRESULT ( STDMETHODCALLTYPE *FindFrameInContext )( + __RPC__in ITargetFramePriv2 * This, + /* [in] */ __RPC__in LPCWSTR pszTargetName, + /* [in] */ __RPC__in_opt IUnknown *punkContextFrame, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkTargetFrame); + + DECLSPEC_XFGVIRT(ITargetFramePriv, OnChildFrameActivate) + HRESULT ( STDMETHODCALLTYPE *OnChildFrameActivate )( + __RPC__in ITargetFramePriv2 * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkChildFrame); + + DECLSPEC_XFGVIRT(ITargetFramePriv, OnChildFrameDeactivate) + HRESULT ( STDMETHODCALLTYPE *OnChildFrameDeactivate )( + __RPC__in ITargetFramePriv2 * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkChildFrame); + + DECLSPEC_XFGVIRT(ITargetFramePriv, NavigateHack) + HRESULT ( STDMETHODCALLTYPE *NavigateHack )( + __RPC__in ITargetFramePriv2 * This, + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPBC pbc, + /* [unique][in] */ __RPC__in_opt IBindStatusCallback *pibsc, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszTargetName, + /* [in] */ __RPC__in LPCWSTR pszUrl, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszLocation); + + DECLSPEC_XFGVIRT(ITargetFramePriv, FindBrowserByIndex) + HRESULT ( STDMETHODCALLTYPE *FindBrowserByIndex )( + __RPC__in ITargetFramePriv2 * This, + /* [in] */ DWORD dwID, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkBrowser); + + DECLSPEC_XFGVIRT(ITargetFramePriv2, AggregatedNavigation2) + HRESULT ( STDMETHODCALLTYPE *AggregatedNavigation2 )( + __RPC__in ITargetFramePriv2 * This, + /* [in] */ DWORD grfHLNF, + /* [unique][in] */ __RPC__in_opt LPBC pbc, + /* [unique][in] */ __RPC__in_opt IBindStatusCallback *pibsc, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszTargetName, + /* [in] */ __RPC__in_opt IUri *pUri, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszLocation); + + END_INTERFACE + } ITargetFramePriv2Vtbl; + + interface ITargetFramePriv2 + { + CONST_VTBL struct ITargetFramePriv2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITargetFramePriv2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITargetFramePriv2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITargetFramePriv2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITargetFramePriv2_FindFrameDownwards(This,pszTargetName,dwFlags,ppunkTargetFrame) \ + ( (This)->lpVtbl -> FindFrameDownwards(This,pszTargetName,dwFlags,ppunkTargetFrame) ) + +#define ITargetFramePriv2_FindFrameInContext(This,pszTargetName,punkContextFrame,dwFlags,ppunkTargetFrame) \ + ( (This)->lpVtbl -> FindFrameInContext(This,pszTargetName,punkContextFrame,dwFlags,ppunkTargetFrame) ) + +#define ITargetFramePriv2_OnChildFrameActivate(This,pUnkChildFrame) \ + ( (This)->lpVtbl -> OnChildFrameActivate(This,pUnkChildFrame) ) + +#define ITargetFramePriv2_OnChildFrameDeactivate(This,pUnkChildFrame) \ + ( (This)->lpVtbl -> OnChildFrameDeactivate(This,pUnkChildFrame) ) + +#define ITargetFramePriv2_NavigateHack(This,grfHLNF,pbc,pibsc,pszTargetName,pszUrl,pszLocation) \ + ( (This)->lpVtbl -> NavigateHack(This,grfHLNF,pbc,pibsc,pszTargetName,pszUrl,pszLocation) ) + +#define ITargetFramePriv2_FindBrowserByIndex(This,dwID,ppunkBrowser) \ + ( (This)->lpVtbl -> FindBrowserByIndex(This,dwID,ppunkBrowser) ) + + +#define ITargetFramePriv2_AggregatedNavigation2(This,grfHLNF,pbc,pibsc,pszTargetName,pUri,pszLocation) \ + ( (This)->lpVtbl -> AggregatedNavigation2(This,grfHLNF,pbc,pibsc,pszTargetName,pUri,pszLocation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITargetFramePriv2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_htiface_0000_0004 */ +/* [local] */ + +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_htiface_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_htiface_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiface.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiface.idl new file mode 100644 index 0000000000000000000000000000000000000000..f059c42822a0ff4242ad0fccb10419ad2a60d1bd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiface.idl @@ -0,0 +1,239 @@ +//+--------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation. All Rights Reserved. +// +// Contents: OLE Hyperlinking interfaces +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// HTIface.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("// OLE Hyperlinking ITargetFrame Interfaces.") +cpp_quote("") +cpp_quote("#ifndef _LPTARGETFRAME2_DEFINED ") +cpp_quote("#include \"htiframe.h\" ") +cpp_quote("#endif // _LPTARGETFRAME2_DEFINED ") + +import "objidl.idl"; +import "oleidl.idl"; +import "urlmon.idl"; + +interface ITargetFrame; +interface ITargetEmbedding; + +cpp_quote("EXTERN_C const IID IID_ITargetFrame;") +cpp_quote("EXTERN_C const IID IID_ITargetEmbedding;") +cpp_quote("EXTERN_C const IID IID_ITargetFramePriv;") +cpp_quote("EXTERN_C const IID IID_ITargetFramePriv2;") + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995-1998. +// +// Contents: ITargetFrame interface definition +// +//---------------------------------------------------------------------------- + +cpp_quote("#ifndef _LPTARGETFRAME_DEFINED") +cpp_quote("#define _LPTARGETFRAME_DEFINED") + + +[ + object, + uuid(d5f78c80-5252-11cf-90fa-00AA0042106e), + pointer_default(unique) +] + +interface ITargetFrame: IUnknown +{ + typedef [unique] ITargetFrame *LPTARGETFRAME; + + typedef enum + { + /* Add document to history. */ + + NAVIGATEFRAME_FL_RECORD = 0x0001, + + /* Post data. */ + + NAVIGATEFRAME_FL_POST = 0x0002, + + /* Do not retrieve document from cache. */ + + NAVIGATEFRAME_FL_NO_DOC_CACHE = 0x0004, + + /* Do not retrieve images from cache. */ + + NAVIGATEFRAME_FL_NO_IMAGE_CACHE = 0x0008, + + /* Retrieve page from cache even if marked "Authorization failed" + * This is overridden by NAVIGATEFRAME_FL_NO_DOC_CACHE. */ + + NAVIGATEFRAME_FL_AUTH_FAIL_CACHE_OK = 0x0010, + + /* We are sending information contained on a for + * method of sending can either be POST or GET */ + + NAVIGATEFRAME_FL_SENDING_FROM_FORM = 0x0020, + + /* no funny stuff here, if this bit it set we mean business, + we are going to be sending a form */ + NAVIGATEFRAME_FL_REALLY_SENDING_FROM_FORM = 0x0040, + + /* flag combinations */ + + } NAVIGATEFRAME_FLAGS; + + typedef struct tagNavigateData + { + ULONG ulTarget; + ULONG ulURL; + ULONG ulRefURL; + ULONG ulPostData; + DWORD dwFlags; + } NAVIGATEDATA; + + HRESULT SetFrameName( + [in] LPCWSTR pszFrameName); + + HRESULT GetFrameName( + [out] LPWSTR *ppszFrameName); + + HRESULT GetParentFrame( + [out] IUnknown **ppunkParent); + + HRESULT FindFrame( + [in] LPCWSTR pszTargetName, + [in] IUnknown *ppunkContextFrame, + [in] DWORD dwFlags, + [out] IUnknown **ppunkTargetFrame); + + HRESULT SetFrameSrc( + [in] LPCWSTR pszFrameSrc); + + HRESULT GetFrameSrc( + [out] LPWSTR *ppszFrameSrc); + + HRESULT GetFramesContainer( + [out] IOleContainer **ppContainer); + + HRESULT SetFrameOptions( + [in] DWORD dwFlags); + + HRESULT GetFrameOptions( + [out] DWORD *pdwFlags); + + HRESULT SetFrameMargins( + [in] DWORD dwWidth, + [in] DWORD dwHeight); + + HRESULT GetFrameMargins( + [out] DWORD *pdwWidth, + [out] DWORD *pdwHeight); + + HRESULT RemoteNavigate( + [in] ULONG cLength, + [in, size_is(cLength)] ULONG *pulData); + + HRESULT OnChildFrameActivate( + [in] IUnknown * pUnkChildFrame); + + HRESULT OnChildFrameDeactivate( + [in] IUnknown * pUnkChildFrame); + +} + +[ + object, + uuid(548793C0-9E74-11cf-9655-00A0C9034923), + pointer_default(unique) +] + +interface ITargetEmbedding: IUnknown +{ + typedef [unique] ITargetEmbedding *LPTARGETEMBEDDING; + + + HRESULT GetTargetFrame( + [out] ITargetFrame **ppTargetFrame); +} + +[ + object, + uuid(9216E421-2BF5-11d0-82B4-00A0C90C29C5), + pointer_default(unique) +] +interface ITargetFramePriv: IUnknown +{ + typedef [unique] ITargetFramePriv *LPTARGETFRAMEPRIV; + + HRESULT FindFrameDownwards( + [in] LPCWSTR pszTargetName, + [in] DWORD dwFlags, + [out] IUnknown **ppunkTargetFrame); + + HRESULT FindFrameInContext( + [in] LPCWSTR pszTargetName, + [in] IUnknown *punkContextFrame, + [in] DWORD dwFlags, + [out] IUnknown **ppunkTargetFrame); + + HRESULT OnChildFrameActivate( + [in] IUnknown * pUnkChildFrame); + + HRESULT OnChildFrameDeactivate( + [in] IUnknown * pUnkChildFrame); + + HRESULT NavigateHack( + [in] DWORD grfHLNF, + [in, unique] LPBC pbc, + [in, unique] IBindStatusCallback * pibsc, + [in, unique] LPCWSTR pszTargetName, + [in] LPCWSTR pszUrl, + [in, unique] LPCWSTR pszLocation); + + HRESULT FindBrowserByIndex( + [in] DWORD dwID, + [out] IUnknown **ppunkBrowser); +} + +[ + object, + uuid(B2C867E6-69D6-46F2-A611-DED9A4BD7FEF), + pointer_default(unique) +] +interface ITargetFramePriv2: ITargetFramePriv +{ + typedef [unique] ITargetFramePriv2 *LPTARGETFRAMEPRIV2; + + HRESULT AggregatedNavigation2( + [in] DWORD grfHLNF, + [in, unique] LPBC pbc, + [in, unique] IBindStatusCallback * pibsc, + [in, unique] LPCWSTR pszTargetName, + [in] IUri* pUri, + [in, unique] LPCWSTR pszLocation); +} + +cpp_quote("#endif") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiframe.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiframe.h new file mode 100644 index 0000000000000000000000000000000000000000..ce51ea9eea30b127a8e2131a113a8c1f9a4f3545 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiframe.h @@ -0,0 +1,690 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __htiframe_h__ +#define __htiframe_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ITargetNotify_FWD_DEFINED__ +#define __ITargetNotify_FWD_DEFINED__ +typedef interface ITargetNotify ITargetNotify; + +#endif /* __ITargetNotify_FWD_DEFINED__ */ + + +#ifndef __ITargetNotify2_FWD_DEFINED__ +#define __ITargetNotify2_FWD_DEFINED__ +typedef interface ITargetNotify2 ITargetNotify2; + +#endif /* __ITargetNotify2_FWD_DEFINED__ */ + + +#ifndef __ITargetFrame2_FWD_DEFINED__ +#define __ITargetFrame2_FWD_DEFINED__ +typedef interface ITargetFrame2 ITargetFrame2; + +#endif /* __ITargetFrame2_FWD_DEFINED__ */ + + +#ifndef __ITargetContainer_FWD_DEFINED__ +#define __ITargetContainer_FWD_DEFINED__ +typedef interface ITargetContainer ITargetContainer; + +#endif /* __ITargetContainer_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "objidl.h" +#include "oleidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_htiframe_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// HTIframe.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma comment(lib,"uuid.lib") + +//-------------------------------------------------------------------------- +// OLE Hyperlinking ITargetFrame2 Interfaces. + + + +EXTERN_C const IID IID_ITargetFrame2; +EXTERN_C const IID IID_ITargetContainer; +#ifndef _LPTARGETFRAME2_DEFINED +#define _LPTARGETFRAME2_DEFINED +#define TF_NAVIGATE 0x7FAEABAC +#define TARGET_NOTIFY_OBJECT_NAME L"863a99a0-21bc-11d0-82b4-00a0c90c29c5" + + +extern RPC_IF_HANDLE __MIDL_itf_htiframe_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_htiframe_0000_0000_v0_0_s_ifspec; + +#ifndef __ITargetNotify_INTERFACE_DEFINED__ +#define __ITargetNotify_INTERFACE_DEFINED__ + +/* interface ITargetNotify */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer ITargetNotify *LPTARGETNOTIFY; + + +EXTERN_C const IID IID_ITargetNotify; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("863a99a0-21bc-11d0-82b4-00a0c90c29c5") + ITargetNotify : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnCreate( + /* [in] */ __RPC__in_opt IUnknown *pUnkDestination, + /* [in] */ ULONG cbCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnReuse( + /* [in] */ __RPC__in_opt IUnknown *pUnkDestination) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITargetNotifyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITargetNotify * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITargetNotify * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITargetNotify * This); + + DECLSPEC_XFGVIRT(ITargetNotify, OnCreate) + HRESULT ( STDMETHODCALLTYPE *OnCreate )( + __RPC__in ITargetNotify * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkDestination, + /* [in] */ ULONG cbCookie); + + DECLSPEC_XFGVIRT(ITargetNotify, OnReuse) + HRESULT ( STDMETHODCALLTYPE *OnReuse )( + __RPC__in ITargetNotify * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkDestination); + + END_INTERFACE + } ITargetNotifyVtbl; + + interface ITargetNotify + { + CONST_VTBL struct ITargetNotifyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITargetNotify_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITargetNotify_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITargetNotify_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITargetNotify_OnCreate(This,pUnkDestination,cbCookie) \ + ( (This)->lpVtbl -> OnCreate(This,pUnkDestination,cbCookie) ) + +#define ITargetNotify_OnReuse(This,pUnkDestination) \ + ( (This)->lpVtbl -> OnReuse(This,pUnkDestination) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITargetNotify_INTERFACE_DEFINED__ */ + + +#ifndef __ITargetNotify2_INTERFACE_DEFINED__ +#define __ITargetNotify2_INTERFACE_DEFINED__ + +/* interface ITargetNotify2 */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer ITargetNotify2 *LPTARGETNOTIFY2; + + +EXTERN_C const IID IID_ITargetNotify2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3050f6b1-98b5-11cf-bb82-00aa00bdce0b") + ITargetNotify2 : public ITargetNotify + { + public: + virtual HRESULT STDMETHODCALLTYPE GetOptionString( + /* [out][in] */ __RPC__deref_inout_opt BSTR *pbstrOptions) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITargetNotify2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITargetNotify2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITargetNotify2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITargetNotify2 * This); + + DECLSPEC_XFGVIRT(ITargetNotify, OnCreate) + HRESULT ( STDMETHODCALLTYPE *OnCreate )( + __RPC__in ITargetNotify2 * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkDestination, + /* [in] */ ULONG cbCookie); + + DECLSPEC_XFGVIRT(ITargetNotify, OnReuse) + HRESULT ( STDMETHODCALLTYPE *OnReuse )( + __RPC__in ITargetNotify2 * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkDestination); + + DECLSPEC_XFGVIRT(ITargetNotify2, GetOptionString) + HRESULT ( STDMETHODCALLTYPE *GetOptionString )( + __RPC__in ITargetNotify2 * This, + /* [out][in] */ __RPC__deref_inout_opt BSTR *pbstrOptions); + + END_INTERFACE + } ITargetNotify2Vtbl; + + interface ITargetNotify2 + { + CONST_VTBL struct ITargetNotify2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITargetNotify2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITargetNotify2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITargetNotify2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITargetNotify2_OnCreate(This,pUnkDestination,cbCookie) \ + ( (This)->lpVtbl -> OnCreate(This,pUnkDestination,cbCookie) ) + +#define ITargetNotify2_OnReuse(This,pUnkDestination) \ + ( (This)->lpVtbl -> OnReuse(This,pUnkDestination) ) + + +#define ITargetNotify2_GetOptionString(This,pbstrOptions) \ + ( (This)->lpVtbl -> GetOptionString(This,pbstrOptions) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITargetNotify2_INTERFACE_DEFINED__ */ + + +#ifndef __ITargetFrame2_INTERFACE_DEFINED__ +#define __ITargetFrame2_INTERFACE_DEFINED__ + +/* interface ITargetFrame2 */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer ITargetFrame2 *LPTARGETFRAME2; + +typedef /* [public] */ +enum __MIDL_ITargetFrame2_0001 + { + FINDFRAME_NONE = 0, + FINDFRAME_JUSTTESTEXISTENCE = 1, + FINDFRAME_INTERNAL = 0x80000000 + } FINDFRAME_FLAGS; + +typedef /* [public] */ +enum __MIDL_ITargetFrame2_0002 + { + FRAMEOPTIONS_SCROLL_YES = 0x1, + FRAMEOPTIONS_SCROLL_NO = 0x2, + FRAMEOPTIONS_SCROLL_AUTO = 0x4, + FRAMEOPTIONS_NORESIZE = 0x8, + FRAMEOPTIONS_NO3DBORDER = 0x10, + FRAMEOPTIONS_DESKTOP = 0x20, + FRAMEOPTIONS_BROWSERBAND = 0x40 + } FRAMEOPTIONS_FLAGS; + + +EXTERN_C const IID IID_ITargetFrame2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("86D52E11-94A8-11d0-82AF-00C04FD5AE38") + ITargetFrame2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetFrameName( + /* [in] */ __RPC__in LPCWSTR pszFrameName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrameName( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszFrameName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParentFrame( + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkParent) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFrameSrc( + /* [in] */ __RPC__in LPCWSTR pszFrameSrc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrameSrc( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszFrameSrc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFramesContainer( + /* [out] */ __RPC__deref_out_opt IOleContainer **ppContainer) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFrameOptions( + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrameOptions( + /* [out] */ __RPC__out DWORD *pdwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetFrameMargins( + /* [in] */ DWORD dwWidth, + /* [in] */ DWORD dwHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrameMargins( + /* [out] */ __RPC__out DWORD *pdwWidth, + /* [out] */ __RPC__out DWORD *pdwHeight) = 0; + + virtual HRESULT STDMETHODCALLTYPE FindFrame( + /* [unique][in] */ __RPC__in_opt LPCWSTR pszTargetName, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkTargetFrame) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTargetAlias( + /* [unique][in] */ __RPC__in_opt LPCWSTR pszTargetName, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszTargetAlias) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITargetFrame2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITargetFrame2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITargetFrame2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITargetFrame2 * This); + + DECLSPEC_XFGVIRT(ITargetFrame2, SetFrameName) + HRESULT ( STDMETHODCALLTYPE *SetFrameName )( + __RPC__in ITargetFrame2 * This, + /* [in] */ __RPC__in LPCWSTR pszFrameName); + + DECLSPEC_XFGVIRT(ITargetFrame2, GetFrameName) + HRESULT ( STDMETHODCALLTYPE *GetFrameName )( + __RPC__in ITargetFrame2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszFrameName); + + DECLSPEC_XFGVIRT(ITargetFrame2, GetParentFrame) + HRESULT ( STDMETHODCALLTYPE *GetParentFrame )( + __RPC__in ITargetFrame2 * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkParent); + + DECLSPEC_XFGVIRT(ITargetFrame2, SetFrameSrc) + HRESULT ( STDMETHODCALLTYPE *SetFrameSrc )( + __RPC__in ITargetFrame2 * This, + /* [in] */ __RPC__in LPCWSTR pszFrameSrc); + + DECLSPEC_XFGVIRT(ITargetFrame2, GetFrameSrc) + HRESULT ( STDMETHODCALLTYPE *GetFrameSrc )( + __RPC__in ITargetFrame2 * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszFrameSrc); + + DECLSPEC_XFGVIRT(ITargetFrame2, GetFramesContainer) + HRESULT ( STDMETHODCALLTYPE *GetFramesContainer )( + __RPC__in ITargetFrame2 * This, + /* [out] */ __RPC__deref_out_opt IOleContainer **ppContainer); + + DECLSPEC_XFGVIRT(ITargetFrame2, SetFrameOptions) + HRESULT ( STDMETHODCALLTYPE *SetFrameOptions )( + __RPC__in ITargetFrame2 * This, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(ITargetFrame2, GetFrameOptions) + HRESULT ( STDMETHODCALLTYPE *GetFrameOptions )( + __RPC__in ITargetFrame2 * This, + /* [out] */ __RPC__out DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(ITargetFrame2, SetFrameMargins) + HRESULT ( STDMETHODCALLTYPE *SetFrameMargins )( + __RPC__in ITargetFrame2 * This, + /* [in] */ DWORD dwWidth, + /* [in] */ DWORD dwHeight); + + DECLSPEC_XFGVIRT(ITargetFrame2, GetFrameMargins) + HRESULT ( STDMETHODCALLTYPE *GetFrameMargins )( + __RPC__in ITargetFrame2 * This, + /* [out] */ __RPC__out DWORD *pdwWidth, + /* [out] */ __RPC__out DWORD *pdwHeight); + + DECLSPEC_XFGVIRT(ITargetFrame2, FindFrame) + HRESULT ( STDMETHODCALLTYPE *FindFrame )( + __RPC__in ITargetFrame2 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszTargetName, + /* [in] */ DWORD dwFlags, + /* [out] */ __RPC__deref_out_opt IUnknown **ppunkTargetFrame); + + DECLSPEC_XFGVIRT(ITargetFrame2, GetTargetAlias) + HRESULT ( STDMETHODCALLTYPE *GetTargetAlias )( + __RPC__in ITargetFrame2 * This, + /* [unique][in] */ __RPC__in_opt LPCWSTR pszTargetName, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszTargetAlias); + + END_INTERFACE + } ITargetFrame2Vtbl; + + interface ITargetFrame2 + { + CONST_VTBL struct ITargetFrame2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITargetFrame2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITargetFrame2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITargetFrame2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITargetFrame2_SetFrameName(This,pszFrameName) \ + ( (This)->lpVtbl -> SetFrameName(This,pszFrameName) ) + +#define ITargetFrame2_GetFrameName(This,ppszFrameName) \ + ( (This)->lpVtbl -> GetFrameName(This,ppszFrameName) ) + +#define ITargetFrame2_GetParentFrame(This,ppunkParent) \ + ( (This)->lpVtbl -> GetParentFrame(This,ppunkParent) ) + +#define ITargetFrame2_SetFrameSrc(This,pszFrameSrc) \ + ( (This)->lpVtbl -> SetFrameSrc(This,pszFrameSrc) ) + +#define ITargetFrame2_GetFrameSrc(This,ppszFrameSrc) \ + ( (This)->lpVtbl -> GetFrameSrc(This,ppszFrameSrc) ) + +#define ITargetFrame2_GetFramesContainer(This,ppContainer) \ + ( (This)->lpVtbl -> GetFramesContainer(This,ppContainer) ) + +#define ITargetFrame2_SetFrameOptions(This,dwFlags) \ + ( (This)->lpVtbl -> SetFrameOptions(This,dwFlags) ) + +#define ITargetFrame2_GetFrameOptions(This,pdwFlags) \ + ( (This)->lpVtbl -> GetFrameOptions(This,pdwFlags) ) + +#define ITargetFrame2_SetFrameMargins(This,dwWidth,dwHeight) \ + ( (This)->lpVtbl -> SetFrameMargins(This,dwWidth,dwHeight) ) + +#define ITargetFrame2_GetFrameMargins(This,pdwWidth,pdwHeight) \ + ( (This)->lpVtbl -> GetFrameMargins(This,pdwWidth,pdwHeight) ) + +#define ITargetFrame2_FindFrame(This,pszTargetName,dwFlags,ppunkTargetFrame) \ + ( (This)->lpVtbl -> FindFrame(This,pszTargetName,dwFlags,ppunkTargetFrame) ) + +#define ITargetFrame2_GetTargetAlias(This,pszTargetName,ppszTargetAlias) \ + ( (This)->lpVtbl -> GetTargetAlias(This,pszTargetName,ppszTargetAlias) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITargetFrame2_INTERFACE_DEFINED__ */ + + +#ifndef __ITargetContainer_INTERFACE_DEFINED__ +#define __ITargetContainer_INTERFACE_DEFINED__ + +/* interface ITargetContainer */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer ITargetContainer *LPTARGETCONTAINER; + + +EXTERN_C const IID IID_ITargetContainer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7847EC01-2BEC-11d0-82B4-00A0C90C29C5") + ITargetContainer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetFrameUrl( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszFrameSrc) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFramesContainer( + /* [out] */ __RPC__deref_out_opt IOleContainer **ppContainer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ITargetContainerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ITargetContainer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ITargetContainer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ITargetContainer * This); + + DECLSPEC_XFGVIRT(ITargetContainer, GetFrameUrl) + HRESULT ( STDMETHODCALLTYPE *GetFrameUrl )( + __RPC__in ITargetContainer * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppszFrameSrc); + + DECLSPEC_XFGVIRT(ITargetContainer, GetFramesContainer) + HRESULT ( STDMETHODCALLTYPE *GetFramesContainer )( + __RPC__in ITargetContainer * This, + /* [out] */ __RPC__deref_out_opt IOleContainer **ppContainer); + + END_INTERFACE + } ITargetContainerVtbl; + + interface ITargetContainer + { + CONST_VTBL struct ITargetContainerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ITargetContainer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ITargetContainer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ITargetContainer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ITargetContainer_GetFrameUrl(This,ppszFrameSrc) \ + ( (This)->lpVtbl -> GetFrameUrl(This,ppszFrameSrc) ) + +#define ITargetContainer_GetFramesContainer(This,ppContainer) \ + ( (This)->lpVtbl -> GetFramesContainer(This,ppContainer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ITargetContainer_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_htiframe_0000_0004 */ +/* [local] */ + +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_htiframe_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_htiframe_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiframe.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiframe.idl new file mode 100644 index 0000000000000000000000000000000000000000..d48b5dd0c3f50dfb794d66f57cfac5cc5a661aae --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/htiframe.idl @@ -0,0 +1,183 @@ +//+--------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation. All Rights Reserved. +// +// Contents: OLE Hyperlinking interfaces +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// HTIframe.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("// OLE Hyperlinking ITargetFrame2 Interfaces.") +cpp_quote("") + +import "objidl.idl"; +import "oleidl.idl"; + +interface ITargetFrame2; +interface ITargetContainer; + +cpp_quote("EXTERN_C const IID IID_ITargetFrame2;") +cpp_quote("EXTERN_C const IID IID_ITargetContainer;") + + +//+--------------------------------------------------------------------------- +// +// Copyright (C) Microsoft Corporation, 1995-1998. +// +// Contents: ITargetFrame interface definition +// +//---------------------------------------------------------------------------- + +cpp_quote("#ifndef _LPTARGETFRAME2_DEFINED") +cpp_quote("#define _LPTARGETFRAME2_DEFINED") + +cpp_quote("#define TF_NAVIGATE 0x7FAEABAC") +cpp_quote("#define TARGET_NOTIFY_OBJECT_NAME L\"863a99a0-21bc-11d0-82b4-00a0c90c29c5\"") + + + + +[ + object, + uuid(863a99a0-21bc-11d0-82b4-00a0c90c29c5), + pointer_default(unique) +] +interface ITargetNotify: IUnknown +{ + typedef [unique] ITargetNotify *LPTARGETNOTIFY; + + + HRESULT OnCreate( + [in] IUnknown *pUnkDestination, + [in] ULONG cbCookie); + + HRESULT OnReuse( + [in] IUnknown *pUnkDestination); + +} + +[ + object, + uuid(3050f6b1-98b5-11cf-bb82-00aa00bdce0b), + pointer_default(unique) +] +interface ITargetNotify2: ITargetNotify +{ + typedef [unique] ITargetNotify2 *LPTARGETNOTIFY2; + + HRESULT GetOptionString( + [in,out] BSTR * pbstrOptions); +} + +[ + object, + uuid(86D52E11-94A8-11d0-82AF-00C04FD5AE38), + pointer_default(unique) +] +interface ITargetFrame2: IUnknown +{ + typedef [unique] ITargetFrame2 *LPTARGETFRAME2; + + typedef enum + { + FINDFRAME_NONE = 0, + FINDFRAME_JUSTTESTEXISTENCE = 1, + FINDFRAME_INTERNAL = 0x80000000, + } FINDFRAME_FLAGS; + + // values indicating frame layout options + typedef enum + { + FRAMEOPTIONS_SCROLL_YES = 0x00000001, + FRAMEOPTIONS_SCROLL_NO = 0x00000002, + FRAMEOPTIONS_SCROLL_AUTO = 0x00000004, + FRAMEOPTIONS_NORESIZE = 0x00000008, + FRAMEOPTIONS_NO3DBORDER = 0x00000010, + FRAMEOPTIONS_DESKTOP = 0x00000020, + FRAMEOPTIONS_BROWSERBAND = 0x00000040, + } FRAMEOPTIONS_FLAGS; + + HRESULT SetFrameName( + [in] LPCWSTR pszFrameName); + + HRESULT GetFrameName( + [out] LPWSTR *ppszFrameName); + + HRESULT GetParentFrame( + [out] IUnknown **ppunkParent); + + HRESULT SetFrameSrc( + [in] LPCWSTR pszFrameSrc); + + HRESULT GetFrameSrc( + [out] LPWSTR *ppszFrameSrc); + + HRESULT GetFramesContainer( + [out] IOleContainer **ppContainer); + + HRESULT SetFrameOptions( + [in] DWORD dwFlags); + + HRESULT GetFrameOptions( + [out] DWORD *pdwFlags); + + HRESULT SetFrameMargins( + [in] DWORD dwWidth, + [in] DWORD dwHeight); + + HRESULT GetFrameMargins( + [out] DWORD *pdwWidth, + [out] DWORD *pdwHeight); + + HRESULT FindFrame( + [in,unique] LPCWSTR pszTargetName, + [in] DWORD dwFlags, + [out] IUnknown **ppunkTargetFrame); + + HRESULT GetTargetAlias( + [in,unique] LPCWSTR pszTargetName, + [out] LPWSTR *ppszTargetAlias); + + +} + +[ + object, + uuid(7847EC01-2BEC-11d0-82B4-00A0C90C29C5), + pointer_default(unique) +] +interface ITargetContainer: IUnknown +{ + typedef [unique] ITargetContainer *LPTARGETCONTAINER; + + HRESULT GetFrameUrl( + [out] LPWSTR *ppszFrameSrc); + + HRESULT GetFramesContainer( + [out] IOleContainer **ppContainer); + +} + +cpp_quote("#endif") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/http.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/http.h new file mode 100644 index 0000000000000000000000000000000000000000..4178ef13d165ebbfefa7f57e0709ef1fdbc865a8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/http.h @@ -0,0 +1,3586 @@ + + +/*++ + +Copyright (c) 1998-2002 Microsoft Corporation + +Module Name: + + Http.h + +Abstract: + + This header corresponds to the HTTP API specification + +Revision History: + +--*/ + + +#ifndef __HTTP_H__ +#define __HTTP_H__ + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#if _WIN32_WINNT >= 0x0501 + +// +// HTTPAPI is available on +// +// a) WinXP SP2 and higher +// b) Windows 2003 and higher +// c) Vista and higher. +// + + +#include +#include + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + + +// +// Flags for HttpInitialize() and HttpTerminate(). +// +// +// HTTP_INITIALIZE_SERVER - Initializes the HTTP API layer and driver for +// applications using server APIs. +// +// HTTP_INITIALIZE_CONFIG - Initializes the HTTP API layer and driver for +// applications using HTTP configuration APIs. +// +// HTTP_DEMAND_CBT - Pre-Win7, it checks HTTP API layer and driver for +// Extended Protection capabilities. +// On Win7 and above, this flag has no use and is +// present only for app-compat reasons. +// It must be combined with HTTP_INITIALIZE_SERVER. +// +// Notes - +// +// 1. These flags can be used in combination. +// +// 2. HttpTerminate() must be called for each call to HttpInitialize() made +// with each flag set when invoking HttpInitialize. For example, one +// could make two calls to HttpInitialize() setting HTTP_INITIALIZE_SERVER +// the first time and HTTP_INITIALIZE_CONFIG the second time. One call +// to HttpTerminate() with both flags set suffices to clean up both +// calls to HttpInitialize(). +// + +#define HTTP_INITIALIZE_SERVER 0x00000001 +#define HTTP_INITIALIZE_CONFIG 0x00000002 +#define HTTP_DEMAND_CBT 0x00000004 + + +#if _WIN32_WINNT >= 0x0600 + +// +// Following section defines the properties supported by the +// server side HTTP API. +// + +typedef enum _HTTP_SERVER_PROPERTY +{ + // + // Used for enabling server side authentication. + // + + HttpServerAuthenticationProperty = 0, + + // + // Used for enabling logging. + // + + HttpServerLoggingProperty = 1, + + // + // Used for setting QoS properties. + // + + HttpServerQosProperty = 2, + + // + // Used for configuring timeouts. + // + + HttpServerTimeoutsProperty = 3, + + // + // Used for limiting request queue lengths. + // + + HttpServerQueueLengthProperty = 4, + + // + // Used for manipulating the state. + // + + HttpServerStateProperty = 5, + + // + // Used for modifying the verbosity level of 503 type responses + // generated by server side API. + // + + HttpServer503VerbosityProperty = 6, + + // + // Used for manipulating Url Group to Request Queue association. + // + + HttpServerBindingProperty = 7, + + // + // Extended authentication property. + // + + HttpServerExtendedAuthenticationProperty = 8, + + // + // Listening endpoint property. + // + + HttpServerListenEndpointProperty = 9, + + // + // Authentication channel binding property + // + + HttpServerChannelBindProperty = 10, + + // + // IP Protection level policy for a Url Group. + // + + HttpServerProtectionLevelProperty = 11, + + + // + // Used for manipulating Url Group to Delegate Request Queue association. + // + + HttpServerDelegationProperty = 16, + + + // + // Used to configure fast forwarding support. + // + + HttpServerFastForwardingProperty = 18, + + // + // Used to enable optional request info fields. + // + + HttpServerRequestInfoProperty = 19, + +} HTTP_SERVER_PROPERTY, *PHTTP_SERVER_PROPERTY; + + +#define HTTP_MAX_SERVER_QUEUE_LENGTH 0x7FFFFFFF +#define HTTP_MIN_SERVER_QUEUE_LENGTH 1 + +// +// Generic property flags. Each structure defining a property info typically +// contain an element of this type. +// + +typedef struct _HTTP_PROPERTY_FLAGS +{ + ULONG Present:1; + +} HTTP_PROPERTY_FLAGS, *PHTTP_PROPERTY_FLAGS; + +// +// Enabled state. +// + +typedef enum _HTTP_ENABLED_STATE +{ + HttpEnabledStateActive, + HttpEnabledStateInactive, + +} HTTP_ENABLED_STATE, *PHTTP_ENABLED_STATE; + + +typedef struct _HTTP_STATE_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + HTTP_ENABLED_STATE State; + +} HTTP_STATE_INFO, *PHTTP_STATE_INFO; + +// +// Defines the verbosity level for a request queue which will be used +// when sending "503 - Service Unavailable" type error responses. Note that +// this setting only affects the error responses generated internally +// by HTTPAPI. +// + +typedef enum _HTTP_503_RESPONSE_VERBOSITY +{ + // + // Instead of sending a 503 response, the connection will be reset. + // This is the default behavior. + // + Http503ResponseVerbosityBasic, + + // + // Will send a 503 w/ a generic reason phrase. + // + Http503ResponseVerbosityLimited, + + // + // Will send a 503 w/ a detailed reason phrase. + // + Http503ResponseVerbosityFull + +} HTTP_503_RESPONSE_VERBOSITY, *PHTTP_503_RESPONSE_VERBOSITY; + +// +// Network QoS related. +// + +typedef enum _HTTP_QOS_SETTING_TYPE +{ + HttpQosSettingTypeBandwidth, + HttpQosSettingTypeConnectionLimit, + HttpQosSettingTypeFlowRate + +} HTTP_QOS_SETTING_TYPE, *PHTTP_QOS_SETTING_TYPE; + +typedef struct _HTTP_QOS_SETTING_INFO +{ + HTTP_QOS_SETTING_TYPE QosType; + PVOID QosSetting; +} HTTP_QOS_SETTING_INFO, *PHTTP_QOS_SETTING_INFO; + +typedef struct _HTTP_CONNECTION_LIMIT_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + ULONG MaxConnections; + +} HTTP_CONNECTION_LIMIT_INFO, *PHTTP_CONNECTION_LIMIT_INFO; + +typedef struct _HTTP_BANDWIDTH_LIMIT_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + ULONG MaxBandwidth; + +} HTTP_BANDWIDTH_LIMIT_INFO, *PHTTP_BANDWIDTH_LIMIT_INFO; + +typedef struct _HTTP_FLOWRATE_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + ULONG MaxBandwidth; + ULONG MaxPeakBandwidth; + ULONG BurstSize; + +} HTTP_FLOWRATE_INFO, *PHTTP_FLOWRATE_INFO; + +// +// Bandwidth throttling limit can not be set lower than the following +// number. The value is in bytes/sec. +// + +#define HTTP_MIN_ALLOWED_BANDWIDTH_THROTTLING_RATE ((ULONG)1024) + +// +// Distinguished value for bandwidth, connection limits and logging rollover +// size indicating "no limit". +// + +#define HTTP_LIMIT_INFINITE ((ULONG)-1) + +// +// Timeout information. +// + +// +// For manipulating global timeout settings. +// These timers run when connection does not belong to any application. +// Value zero is not allowed for driver wide timeout settings. +// + +typedef enum _HTTP_SERVICE_CONFIG_TIMEOUT_KEY +{ + IdleConnectionTimeout = 0, + HeaderWaitTimeout + +} HTTP_SERVICE_CONFIG_TIMEOUT_KEY, *PHTTP_SERVICE_CONFIG_TIMEOUT_KEY; + +typedef USHORT HTTP_SERVICE_CONFIG_TIMEOUT_PARAM, + *PHTTP_SERVICE_CONFIG_TIMEOUT_PARAM; + +// +// To set a timeout value use the set structure. To query/delete use the key +// directly. When you query a timeout value the output buffer must be exactly +// the sizeof param. +// + +typedef struct _HTTP_SERVICE_CONFIG_TIMEOUT_SET +{ + HTTP_SERVICE_CONFIG_TIMEOUT_KEY KeyDesc; + HTTP_SERVICE_CONFIG_TIMEOUT_PARAM ParamDesc; + +} HTTP_SERVICE_CONFIG_TIMEOUT_SET, *PHTTP_SERVICE_CONFIG_TIMEOUT_SET; + +// +// For manipulating application specific timeout settings. +// These timers run when there's a request being processed on a connection +// and HTTPAPI has already associated the request with an application. +// Setting a timeout value to zero will cause HTTPAPI to revert to default. +// + +typedef struct _HTTP_TIMEOUT_LIMIT_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + + // + // Timeouts configured in seconds. + // + + USHORT EntityBody; + USHORT DrainEntityBody; + USHORT RequestQueue; + + // + // Following two timeouts are only enforced after first request on + // connection is routed to the application. These will not manipulate + // the driver wide timeouts. + // + + USHORT IdleConnection; + USHORT HeaderWait; + + // + // Timeouts configured in bytes/second. + // This timer can be turned off by setting it to MAXULONG. + // + + ULONG MinSendRate; + +} HTTP_TIMEOUT_LIMIT_INFO, *PHTTP_TIMEOUT_LIMIT_INFO; + +// +// Controls config settings +// + +typedef enum _HTTP_SERVICE_CONFIG_SETTING_KEY +{ + HttpNone = 0, + HttpTlsThrottle +} HTTP_SERVICE_CONFIG_SETTING_KEY, *PHTTP_SERVICE_CONFIG_SETTING_KEY; + +typedef ULONG HTTP_SERVICE_CONFIG_SETTING_PARAM, + *PHTTP_SERVICE_CONFIG_SETTING_PARAM; + +typedef struct _HTTP_SERVICE_CONFIG_SETTING_SET +{ + HTTP_SERVICE_CONFIG_SETTING_KEY KeyDesc; + HTTP_SERVICE_CONFIG_SETTING_PARAM ParamDesc; + +} HTTP_SERVICE_CONFIG_SETTING_SET, *PHTTP_SERVICE_CONFIG_SETTING_SET; + + +// +// Controls whether IP-based URLs should listen on the specific IP or wildcard. +// + +typedef struct _HTTP_LISTEN_ENDPOINT_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + + BOOLEAN EnableSharing; + +} HTTP_LISTEN_ENDPOINT_INFO, *PHTTP_LISTEN_ENDPOINT_INFO; + + +typedef struct _HTTP_FAST_FORWARD_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + BOOLEAN EnableFastForwarding; +} HTTP_FAST_FORWARD_INFO, *PHTTP_FAST_FORWARD_INFO; + +typedef struct _HTTP_SERVER_AUTHENTICATION_DIGEST_PARAMS +{ + USHORT DomainNameLength; + PWSTR DomainName; + USHORT RealmLength; + PWSTR Realm; +} HTTP_SERVER_AUTHENTICATION_DIGEST_PARAMS, + *PHTTP_SERVER_AUTHENTICATION_DIGEST_PARAMS; + +typedef struct _HTTP_SERVER_AUTHENTICATION_BASIC_PARAMS +{ + USHORT RealmLength; + PWSTR Realm; +} HTTP_SERVER_AUTHENTICATION_BASIC_PARAMS, + *PHTTP_SERVER_AUTHENTICATION_BASIC_PARAMS; + +// +// Definitions used for setting server side authentication property. +// + +#define HTTP_AUTH_ENABLE_BASIC (0x00000001) +#define HTTP_AUTH_ENABLE_DIGEST (0x00000002) +#define HTTP_AUTH_ENABLE_NTLM (0x00000004) +#define HTTP_AUTH_ENABLE_NEGOTIATE (0x00000008) +#define HTTP_AUTH_ENABLE_KERBEROS (0x00000010) + +#define HTTP_AUTH_ENABLE_ALL \ + (HTTP_AUTH_ENABLE_BASIC |\ + HTTP_AUTH_ENABLE_DIGEST |\ + HTTP_AUTH_ENABLE_NTLM |\ + HTTP_AUTH_ENABLE_NEGOTIATE |\ + HTTP_AUTH_ENABLE_KERBEROS) + + +C_ASSERT(HTTP_AUTH_ENABLE_NEGOTIATE > HTTP_AUTH_ENABLE_NTLM); +C_ASSERT(HTTP_AUTH_ENABLE_NTLM > HTTP_AUTH_ENABLE_DIGEST); +C_ASSERT(HTTP_AUTH_ENABLE_DIGEST > HTTP_AUTH_ENABLE_BASIC); + +#define HTTP_AUTH_EX_FLAG_ENABLE_KERBEROS_CREDENTIAL_CACHING (0x01) +#define HTTP_AUTH_EX_FLAG_CAPTURE_CREDENTIAL (0x02) + +typedef struct _HTTP_SERVER_AUTHENTICATION_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + + ULONG AuthSchemes; + + BOOLEAN ReceiveMutualAuth; + BOOLEAN ReceiveContextHandle; + BOOLEAN DisableNTLMCredentialCaching; + + UCHAR ExFlags; + + HTTP_SERVER_AUTHENTICATION_DIGEST_PARAMS DigestParams; + HTTP_SERVER_AUTHENTICATION_BASIC_PARAMS BasicParams; + +} HTTP_SERVER_AUTHENTICATION_INFO, *PHTTP_SERVER_AUTHENTICATION_INFO; + +#if _WIN32_WINNT >= _WIN32_WINNT_WIN7 + +// +// Definitions for setting authentication channel binding properties +// + +typedef enum _HTTP_SERVICE_BINDING_TYPE +{ + HttpServiceBindingTypeNone = 0, + HttpServiceBindingTypeW, + HttpServiceBindingTypeA + +} HTTP_SERVICE_BINDING_TYPE; + +typedef struct _HTTP_SERVICE_BINDING_BASE +{ + HTTP_SERVICE_BINDING_TYPE Type; + +} HTTP_SERVICE_BINDING_BASE, *PHTTP_SERVICE_BINDING_BASE; + +typedef struct _HTTP_SERVICE_BINDING_A +{ + HTTP_SERVICE_BINDING_BASE Base; + PCHAR Buffer; + ULONG BufferSize; + +} HTTP_SERVICE_BINDING_A, *PHTTP_SERVICE_BINDING_A; + +typedef struct _HTTP_SERVICE_BINDING_W +{ + HTTP_SERVICE_BINDING_BASE Base; + PWCHAR Buffer; + ULONG BufferSize; + +} HTTP_SERVICE_BINDING_W, *PHTTP_SERVICE_BINDING_W; + +typedef enum _HTTP_AUTHENTICATION_HARDENING_LEVELS +{ + HttpAuthenticationHardeningLegacy = 0, + HttpAuthenticationHardeningMedium, + HttpAuthenticationHardeningStrict + +} HTTP_AUTHENTICATION_HARDENING_LEVELS; + +// +// Channel binding token verification flags. +// + +#define HTTP_CHANNEL_BIND_PROXY 0x1 +#define HTTP_CHANNEL_BIND_PROXY_COHOSTING 0x20 + +// +// Service bind verification flags +// + +#define HTTP_CHANNEL_BIND_NO_SERVICE_NAME_CHECK 0x2 +#define HTTP_CHANNEL_BIND_DOTLESS_SERVICE 0x4 + +// +// Flags triggering channel bind parameters retrieval +// + +#define HTTP_CHANNEL_BIND_SECURE_CHANNEL_TOKEN 0x8 +#define HTTP_CHANNEL_BIND_CLIENT_SERVICE 0x10 + +// +// All valid flags (mask for internal checks) +// + +typedef struct _HTTP_CHANNEL_BIND_INFO +{ + HTTP_AUTHENTICATION_HARDENING_LEVELS Hardening; + ULONG Flags; + PHTTP_SERVICE_BINDING_BASE * ServiceNames; + ULONG NumberOfServiceNames; + +} HTTP_CHANNEL_BIND_INFO, *PHTTP_CHANNEL_BIND_INFO; + +typedef struct _HTTP_REQUEST_CHANNEL_BIND_STATUS +{ + PHTTP_SERVICE_BINDING_BASE ServiceName; + PUCHAR ChannelToken; + ULONG ChannelTokenSize; + ULONG Flags; + +} HTTP_REQUEST_CHANNEL_BIND_STATUS, *PHTTP_REQUEST_CHANNEL_BIND_STATUS; + +#endif + +typedef struct _HTTP_REQUEST_TOKEN_BINDING_INFO +{ + PUCHAR TokenBinding; + ULONG TokenBindingSize; + + PUCHAR EKM; + ULONG EKMSize; + + UCHAR KeyType; + +} HTTP_REQUEST_TOKEN_BINDING_INFO, *PHTTP_REQUEST_TOKEN_BINDING_INFO; + +// +// Definitions used for setting logging property. +// + +// +// The known log fields recognized/supported by HTTPAPI. Following fields +// are used for W3C logging. Subset of them are also used for error +// logging. +// + +#define HTTP_LOG_FIELD_DATE 0x00000001 +#define HTTP_LOG_FIELD_TIME 0x00000002 +#define HTTP_LOG_FIELD_CLIENT_IP 0x00000004 +#define HTTP_LOG_FIELD_USER_NAME 0x00000008 +#define HTTP_LOG_FIELD_SITE_NAME 0x00000010 +#define HTTP_LOG_FIELD_COMPUTER_NAME 0x00000020 +#define HTTP_LOG_FIELD_SERVER_IP 0x00000040 +#define HTTP_LOG_FIELD_METHOD 0x00000080 +#define HTTP_LOG_FIELD_URI_STEM 0x00000100 +#define HTTP_LOG_FIELD_URI_QUERY 0x00000200 +#define HTTP_LOG_FIELD_STATUS 0x00000400 +#define HTTP_LOG_FIELD_WIN32_STATUS 0x00000800 +#define HTTP_LOG_FIELD_BYTES_SENT 0x00001000 +#define HTTP_LOG_FIELD_BYTES_RECV 0x00002000 +#define HTTP_LOG_FIELD_TIME_TAKEN 0x00004000 +#define HTTP_LOG_FIELD_SERVER_PORT 0x00008000 +#define HTTP_LOG_FIELD_USER_AGENT 0x00010000 +#define HTTP_LOG_FIELD_COOKIE 0x00020000 +#define HTTP_LOG_FIELD_REFERER 0x00040000 +#define HTTP_LOG_FIELD_VERSION 0x00080000 +#define HTTP_LOG_FIELD_HOST 0x00100000 +#define HTTP_LOG_FIELD_SUB_STATUS 0x00200000 +#define HTTP_LOG_FIELD_STREAM_ID 0x08000000 +#define HTTP_LOG_FIELD_STREAM_ID_EX 0x10000000 +#define HTTP_LOG_FIELD_TRANSPORT_TYPE 0x20000000 + +// +// Fields that are used only for error logging. +// + +#define HTTP_LOG_FIELD_CLIENT_PORT 0x00400000 +#define HTTP_LOG_FIELD_URI 0x00800000 +#define HTTP_LOG_FIELD_SITE_ID 0x01000000 +#define HTTP_LOG_FIELD_REASON 0x02000000 +#define HTTP_LOG_FIELD_QUEUE_NAME 0x04000000 +#define HTTP_LOG_FIELD_CORRELATION_ID 0x40000000 +#define HTTP_LOG_FIELD_FAULT_CODE 0x80000000 + +#define HTTP_LOG_FIELD_EXT_FAULT_CODE_EXT 0x0000000000000001 + +// +// Defines the logging type. +// + +typedef enum _HTTP_LOGGING_TYPE +{ + HttpLoggingTypeW3C, + HttpLoggingTypeIIS, + HttpLoggingTypeNCSA, + HttpLoggingTypeRaw + +} HTTP_LOGGING_TYPE, *PHTTP_LOGGING_TYPE; + +// +// Defines the rollover type for log files. +// + +typedef enum _HTTP_LOGGING_ROLLOVER_TYPE +{ + HttpLoggingRolloverSize, + HttpLoggingRolloverDaily, + HttpLoggingRolloverWeekly, + HttpLoggingRolloverMonthly, + HttpLoggingRolloverHourly + +} HTTP_LOGGING_ROLLOVER_TYPE, *PHTTP_LOGGING_ROLLOVER_TYPE; + +// +// Log file rollover size can not be set lower than the following +// limit. The value is in bytes. +// + +#define HTTP_MIN_ALLOWED_LOG_FILE_ROLLOVER_SIZE ((ULONG)(1 * 1024 * 1024)) + +// +// Logging option flags. When used in the logging configuration alters +// some default logging behaviour. +// +// HTTP_LOGGING_FLAG_LOCAL_TIME_ROLLOVER - This flag is used to change +// the log file rollover to happen by local time based. By default +// log file rollovers happen by GMT time. +// +// HTTP_LOGGING_FLAG_USE_UTF8_CONVERSION - When set the unicode fields +// will be converted to UTF8 multibytes when writting to the log +// files. When this flag is not present, the local code page +// conversion happens. +// +// HTTP_LOGGING_FLAG_LOG_ERRORS_ONLY - +// HTTP_LOGGING_FLAG_LOG_SUCCESS_ONLY - These two flags are used to +// to do selective logging. If neither of them are present both +// types of requests will be logged. Only one these flags can be +// set at a time. They are mutually exclusive. +// + +#define HTTP_LOGGING_FLAG_LOCAL_TIME_ROLLOVER (0x00000001) +#define HTTP_LOGGING_FLAG_USE_UTF8_CONVERSION (0x00000002) +#define HTTP_LOGGING_FLAG_LOG_ERRORS_ONLY (0x00000004) +#define HTTP_LOGGING_FLAG_LOG_SUCCESS_ONLY (0x00000008) + +// +// Configuration structure used for setting the logging property. +// + +typedef struct _HTTP_LOGGING_INFO +{ + // + // Specifies whether this property exists or not. + // + + HTTP_PROPERTY_FLAGS Flags; + + // + // Optional logging flags. + // + + ULONG LoggingFlags; + + // + // Optional informatonal software directive string for W3C type logging. Not + // used for other types of logging. If nothing is provided here HTTPAPI will + // log a default string. Any arbitrary string could be used here to identify + // the application. Length cannot be greater than MAX_PATH. Lenght is in + // bytes. + // + + PCWSTR SoftwareName; + USHORT SoftwareNameLength; + + // + // Log file directory must be a fully qualified path. + // Length must be in number of bytes. + // + + USHORT DirectoryNameLength; + PCWSTR DirectoryName; + + // + // Specifies the format for the log files. + // + + HTTP_LOGGING_TYPE Format; + + // + // Bitmask value indicates which fields to be logged + // if the log format is set to W3C. This must be the 'bitwise or' + // of the HTTP_LOG_FIELD_... values. + // + + ULONG Fields; + + // + // Following fields are reserved they must be NULL and zero.. + // + + PVOID pExtFields; + USHORT NumOfExtFields; + + // + // Reserved must be zero. + // + + USHORT MaxRecordSize; + + // + // Defines the rollover type for the log files. + // + + HTTP_LOGGING_ROLLOVER_TYPE RolloverType; + + // + // Indicates the maximum size (in bytes) after which + // the log files should be rolled over. A value of -1 + // (HTTP_LIMIT_INFINITE) indicates an unlimited size. + // This value is discarded if rollover type is not set to + // HttpLoggingRolloverSize. + // + + ULONG RolloverSize; + + // + // Specifies the security descriptor to be applied to + // the log files and the sub-directories. If null we will + // inherit the system default. This security descriptor must + // be self-relative. + // + + PSECURITY_DESCRIPTOR pSecurityDescriptor; + +} HTTP_LOGGING_INFO, *PHTTP_LOGGING_INFO; + +// +// Binding information. +// + +typedef struct _HTTP_BINDING_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + HANDLE RequestQueueHandle; + +} HTTP_BINDING_INFO, *PHTTP_BINDING_INFO; + +#endif +#if _WIN32_WINNT >= _WIN32_WINNT_WIN7 + +// +// Defines the protection level types for UrlGroups. +// + +typedef enum _HTTP_PROTECTION_LEVEL_TYPE +{ + // + // This option will allow edge (NAT) traversed traffic, i.e. Teredo + // for the UrlGroup, unless there is an admin rule that overwrites the + // application's intend. + // + + HttpProtectionLevelUnrestricted, + + // + // This setting will ensure that edge (NAT) traversed traffic + // will not be allowed. + // + + HttpProtectionLevelEdgeRestricted, + + // + // Below type is not supported by HTTP API. + // + + HttpProtectionLevelRestricted + + +} HTTP_PROTECTION_LEVEL_TYPE, *PHTTP_PROTECTION_LEVEL_TYPE; + +// +// Controls whether the associated UrlGroup Namespace should receive +// edge traversed traffic. By default this parameter is unspecified. +// + +typedef struct _HTTP_PROTECTION_LEVEL_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + HTTP_PROTECTION_LEVEL_TYPE Level; + +} HTTP_PROTECTION_LEVEL_INFO, *PHTTP_PROTECTION_LEVEL_INFO; + +#endif + +// +// Used with HttpServerRequestInfoProperty. These flags will identify optional request +// info fields not normally supplied; these fields are only populated on-demand as they +// are less commonly requested. +// + +#define HTTP_REQUEST_INFO_FLAG_INITIAL_TTL (0x00000001ULL) + +typedef struct _HTTP_REQUEST_INFO_PROPERTY_INFO +{ + HTTP_PROPERTY_FLAGS Flags; + ULONGLONG RequestInfoFlags; +} HTTP_REQUEST_INFO_PROPERTY_INFO, *PHTTP_REQUEST_INFO_PROPERTY_INFO; + +#if _WIN32_WINNT >= 0x0600 + +// +// Definitions for request queue manipulation. +// +// These flags are used with HttpCreateRequestQueue() API. +// +// HTTP_CREATE_REQUEST_QUEUE_FLAG_OPEN_EXISTING - To open an existing request +// queue. The request queue name must be supplied. +// +// HTTP_CREATE_REQUEST_QUEUE_FLAG_CONTROLLER - Creates the request queue and +// marks that the caller process is not willing to do send/receive (HTTP I/O)on +// the handle directly. +// + +#define HTTP_CREATE_REQUEST_QUEUE_FLAG_OPEN_EXISTING (0x00000001) +#define HTTP_CREATE_REQUEST_QUEUE_FLAG_CONTROLLER (0x00000002) +#define HTTP_CREATE_REQUEST_QUEUE_FLAG_DELEGATION (0x00000008) + +#endif // _WIN32_WINNT >= 0x0600 + +// +// Flags for HttpReceiveHttpRequest(). +// +// HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY - Specifies that the caller would like +// any available entity body to be copied along with the protocol headers. +// +// HTTP_RECEIVE_REQUEST_FLAG_FLUSH_BODY - Specifies that the caller would like +// all of the entity bodies to be copied along with the protocol headers. +// + +#define HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY 0x00000001 +#define HTTP_RECEIVE_REQUEST_FLAG_FLUSH_BODY 0x00000002 + + +#if _WIN32_WINNT >= 0x0600 + +// +// Flags for HttpReceiveRequestEntityBody(). +// +// HTTP_RECEIVE_REQUEST_ENTITY_BODY_FLAG_FILL_BUFFER - Specifies that the +// caller would like the buffer to get filled up with entity bodies unless +// there are no more entity bodies to be copied. +// + +#define HTTP_RECEIVE_REQUEST_ENTITY_BODY_FLAG_FILL_BUFFER 0x00000001 + +#endif // _WIN32_WINNT >= 0x0600 + + +// +// Flags for HttpSendHttpResponse() and HttpSendResponseEntityBody(). +// +// HTTP_SEND_RESPONSE_FLAG_DISCONNECT - Specifies that the network connection +// should be disconnected immediately after sending the response, overriding +// the HTTP protocol's persistent connection features, such as +// "Connection: keep-alive". +// +// HTTP_SEND_RESPONSE_FLAG_MORE_DATA - Specifies that additional entity body +// data will be sent by the caller. +// +// HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA - Specifies that a caller wants the +// response to complete as soon as possible at the cost of buffering partial +// or the entire response. +// +// HTTP_SEND_RESPONSE_FLAG_ENABLE_NAGLING - Specifies that a caller wants to +// enable the TCP nagling algorithm for this particular send. +// +// HTTP_SEND_RESPONSE_FLAG_PROCESS_RANGES - Specifies that for a range request +// a full response content is passed and a caller wants HTTP API to process +// ranges properly. +// +// HTTP_SEND_RESPONSE_FLAG_OPAQUE - Specifies that the request/response is not +// HTTP compliant and all subsequent bytes should be treated as entity-body. +// +// HTTP_SEND_RESPONSE_FLAG_GOAWAY - A flag that must always be specified with +// HTTP_SEND_RESPONSE_FLAG_DISCONNECT. For pure HTTP/1.x connections, that is +// connections that don't do HTTP/2 and HTTP/3, this behaves the same as +// HTTP_SEND_RESPONSE_FLAG_DISCONNECT. For HTTP/2 and HTTP/3, this results in +// sending a GOAWAY frame and will cause the client to move to a different +// connection. +// +// HTTP_SEND_RESPONSE_FLAG_AUTOMATIC_CHUNKING - This flag instructs the +// http.sys to add chunk encoding automatically. +// HTTP_SEND_RESPONSE_FLAG_MORE_DATA must be specified as well. The caller +// must not add Transfer-Encoding: Chunked header. +// + +#define HTTP_SEND_RESPONSE_FLAG_DISCONNECT 0x00000001 +#define HTTP_SEND_RESPONSE_FLAG_MORE_DATA 0x00000002 +#define HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA 0x00000004 +#define HTTP_SEND_RESPONSE_FLAG_ENABLE_NAGLING 0x00000008 +#define HTTP_SEND_RESPONSE_FLAG_PROCESS_RANGES 0x00000020 +#define HTTP_SEND_RESPONSE_FLAG_OPAQUE 0x00000040 +#define HTTP_SEND_RESPONSE_FLAG_GOAWAY 0x00000100 +#define HTTP_SEND_RESPONSE_FLAG_AUTOMATIC_CHUNKING 0x00000200 + + +// +// Flags for HttpFlushResponseCache(). +// +// HTTP_FLUSH_RESPONSE_FLAG_RECURSIVE - Flushes the specified URL and all +// hierarchally-related sub-URLs from the response or fragment cache. +// + +#define HTTP_FLUSH_RESPONSE_FLAG_RECURSIVE 0x00000001 + + +// +// Opaque identifiers for various HTTPAPI objects. +// + +typedef ULONGLONG HTTP_OPAQUE_ID, *PHTTP_OPAQUE_ID; + +typedef HTTP_OPAQUE_ID HTTP_REQUEST_ID, *PHTTP_REQUEST_ID; +typedef HTTP_OPAQUE_ID HTTP_CONNECTION_ID, *PHTTP_CONNECTION_ID; +typedef HTTP_OPAQUE_ID HTTP_RAW_CONNECTION_ID, *PHTTP_RAW_CONNECTION_ID; + +#if _WIN32_WINNT >= 0x0600 + +typedef HTTP_OPAQUE_ID HTTP_URL_GROUP_ID, *PHTTP_URL_GROUP_ID; +typedef HTTP_OPAQUE_ID HTTP_SERVER_SESSION_ID, *PHTTP_SERVER_SESSION_ID; + +// #if _WIN32_WINNT >= Somevalue +typedef HTTP_OPAQUE_ID HTTP_CLIENT_REQUEST_ID, *PHTTP_CLIENT_REQUEST_ID; +typedef HTTP_OPAQUE_ID HTTP_CLIENT_CONNECTION_ID, *PHTTP_CLIENT_CONNECTION_ID; +typedef HTTP_OPAQUE_ID HTTP_CLIENT_STREAM_ID, *PHTTP_CLIENT_STREAM_ID; +typedef HTTP_OPAQUE_ID HTTP_CLIENT_CREDENTIAL_ID, *PHTTP_CLIENT_CREDENTIAL_ID; + +#endif // _WIN32_WINNT >= 0x0600 + +// +// Macros for opaque identifier manipulations. +// + +#define HTTP_NULL_ID (0ui64) +#define HTTP_IS_NULL_ID(pid) (HTTP_NULL_ID == *(pid)) +#define HTTP_SET_NULL_ID(pid) (*(pid) = HTTP_NULL_ID) + +// +// This structure defines a file byte range. +// +// If the Length field is HTTP_BYTE_RANGE_TO_EOF then the remainder of the +// file (everything after StartingOffset) is sent. +// + +#define HTTP_BYTE_RANGE_TO_EOF ((ULONGLONG)-1) + +typedef struct _HTTP_BYTE_RANGE +{ + ULARGE_INTEGER StartingOffset; + ULARGE_INTEGER Length; + +} HTTP_BYTE_RANGE, *PHTTP_BYTE_RANGE; + +// +// The type for HTTP protocol version numbers. +// + +#ifdef HTTP_VERSION +#undef HTTP_VERSION +#endif + +typedef struct _HTTP_VERSION +{ + USHORT MajorVersion; + USHORT MinorVersion; + +} HTTP_VERSION, *PHTTP_VERSION; + +// +// Some useful macros for HTTP protocol version manipulation. +// + +#define HTTP_VERSION_UNKNOWN { 0, 0 } +#define HTTP_VERSION_0_9 { 0, 9 } +#define HTTP_VERSION_1_0 { 1, 0 } +#define HTTP_VERSION_1_1 { 1, 1 } +#define HTTP_VERSION_2_0 { 2, 0 } +#define HTTP_VERSION_3_0 { 3, 0 } + +#define HTTP_SET_VERSION(version, major, minor) \ +do { \ + (version).MajorVersion = (major); \ + (version).MinorVersion = (minor); \ +} while (0) + +#define HTTP_EQUAL_VERSION(version, major, minor) \ + ((version).MajorVersion == (major) && \ + (version).MinorVersion == (minor)) + +#define HTTP_GREATER_VERSION(version, major, minor) \ + ((version).MajorVersion > (major) || \ + ((version).MajorVersion == (major) && \ + (version).MinorVersion > (minor))) + +#define HTTP_LESS_VERSION(version, major, minor) \ + ((version).MajorVersion < (major) || \ + ((version).MajorVersion == (major) && \ + (version).MinorVersion < (minor))) + +#define HTTP_NOT_EQUAL_VERSION(version, major, minor) \ + (!HTTP_EQUAL_VERSION(version, major, minor)) + +#define HTTP_GREATER_EQUAL_VERSION(version, major, minor) \ + (!HTTP_LESS_VERSION(version, major, minor)) + +#define HTTP_LESS_EQUAL_VERSION(version, major, minor) \ + (!HTTP_GREATER_VERSION(version, major, minor)) + +// +// The enum type for HTTP Scheme. +// + +typedef enum _HTTP_URI_SCHEME +{ + HttpSchemeHttp, + HttpSchemeHttps, + HttpSchemeMaximum +} HTTP_SCHEME, *PHTTP_URI_SCHEME; + +// +// The enum type for HTTP verbs. +// + +typedef enum _HTTP_VERB +{ + HttpVerbUnparsed, + HttpVerbUnknown, + HttpVerbInvalid, + HttpVerbOPTIONS, + HttpVerbGET, + HttpVerbHEAD, + HttpVerbPOST, + HttpVerbPUT, + HttpVerbDELETE, + HttpVerbTRACE, + HttpVerbCONNECT, + HttpVerbTRACK, // used by Microsoft Cluster Server for a non-logged trace + HttpVerbMOVE, + HttpVerbCOPY, + HttpVerbPROPFIND, + HttpVerbPROPPATCH, + HttpVerbMKCOL, + HttpVerbLOCK, + HttpVerbUNLOCK, + HttpVerbSEARCH, + + HttpVerbMaximum + +} HTTP_VERB, *PHTTP_VERB; + +// +// Symbols for all HTTP/1.1 headers and other tokens. Notice request + +// response values overlap. Make sure you know which type of header array +// you are indexing. +// +// These values are used as offsets into arrays and as token values in +// HTTP_KNOWN_HEADER arrays in HTTP_REQUEST_HEADERS and HTTP_RESPONSE_HEADERS. +// +// See RFC 2616, HTTP/1.1, for further explanation of most of these headers. +// + +typedef enum _HTTP_HEADER_ID +{ + HttpHeaderCacheControl = 0, // general-header [section 4.5] + HttpHeaderConnection = 1, // general-header [section 4.5] + HttpHeaderDate = 2, // general-header [section 4.5] + HttpHeaderKeepAlive = 3, // general-header [not in rfc] + HttpHeaderPragma = 4, // general-header [section 4.5] + HttpHeaderTrailer = 5, // general-header [section 4.5] + HttpHeaderTransferEncoding = 6, // general-header [section 4.5] + HttpHeaderUpgrade = 7, // general-header [section 4.5] + HttpHeaderVia = 8, // general-header [section 4.5] + HttpHeaderWarning = 9, // general-header [section 4.5] + + HttpHeaderAllow = 10, // entity-header [section 7.1] + HttpHeaderContentLength = 11, // entity-header [section 7.1] + HttpHeaderContentType = 12, // entity-header [section 7.1] + HttpHeaderContentEncoding = 13, // entity-header [section 7.1] + HttpHeaderContentLanguage = 14, // entity-header [section 7.1] + HttpHeaderContentLocation = 15, // entity-header [section 7.1] + HttpHeaderContentMd5 = 16, // entity-header [section 7.1] + HttpHeaderContentRange = 17, // entity-header [section 7.1] + HttpHeaderExpires = 18, // entity-header [section 7.1] + HttpHeaderLastModified = 19, // entity-header [section 7.1] + + // Request Headers + + HttpHeaderAccept = 20, // request-header [section 5.3] + HttpHeaderAcceptCharset = 21, // request-header [section 5.3] + HttpHeaderAcceptEncoding = 22, // request-header [section 5.3] + HttpHeaderAcceptLanguage = 23, // request-header [section 5.3] + HttpHeaderAuthorization = 24, // request-header [section 5.3] + HttpHeaderCookie = 25, // request-header [not in rfc] + HttpHeaderExpect = 26, // request-header [section 5.3] + HttpHeaderFrom = 27, // request-header [section 5.3] + HttpHeaderHost = 28, // request-header [section 5.3] + HttpHeaderIfMatch = 29, // request-header [section 5.3] + + HttpHeaderIfModifiedSince = 30, // request-header [section 5.3] + HttpHeaderIfNoneMatch = 31, // request-header [section 5.3] + HttpHeaderIfRange = 32, // request-header [section 5.3] + HttpHeaderIfUnmodifiedSince = 33, // request-header [section 5.3] + HttpHeaderMaxForwards = 34, // request-header [section 5.3] + HttpHeaderProxyAuthorization = 35, // request-header [section 5.3] + HttpHeaderReferer = 36, // request-header [section 5.3] + HttpHeaderRange = 37, // request-header [section 5.3] + HttpHeaderTe = 38, // request-header [section 5.3] + HttpHeaderTranslate = 39, // request-header [webDAV, not in rfc 2518] + + HttpHeaderUserAgent = 40, // request-header [section 5.3] + + HttpHeaderRequestMaximum = 41, + + // Response Headers + + HttpHeaderAcceptRanges = 20, // response-header [section 6.2] + HttpHeaderAge = 21, // response-header [section 6.2] + HttpHeaderEtag = 22, // response-header [section 6.2] + HttpHeaderLocation = 23, // response-header [section 6.2] + HttpHeaderProxyAuthenticate = 24, // response-header [section 6.2] + HttpHeaderRetryAfter = 25, // response-header [section 6.2] + HttpHeaderServer = 26, // response-header [section 6.2] + HttpHeaderSetCookie = 27, // response-header [not in rfc] + HttpHeaderVary = 28, // response-header [section 6.2] + HttpHeaderWwwAuthenticate = 29, // response-header [section 6.2] + + HttpHeaderResponseMaximum = 30, + + HttpHeaderMaximum = 41 + +} HTTP_HEADER_ID, *PHTTP_HEADER_ID; + + +// +// Structure defining format of a known HTTP header. +// Name is from HTTP_HEADER_ID. +// + +typedef struct _HTTP_KNOWN_HEADER +{ + USHORT RawValueLength; // in bytes not including the NUL + PCSTR pRawValue; + +} HTTP_KNOWN_HEADER, *PHTTP_KNOWN_HEADER; + +// +// Structure defining format of an unknown header. +// + +typedef struct _HTTP_UNKNOWN_HEADER +{ + USHORT NameLength; // in bytes not including the NUL + USHORT RawValueLength; // in bytes not including the NUL + PCSTR pName; // The header name (minus the ':' character) + PCSTR pRawValue; // The header value + +} HTTP_UNKNOWN_HEADER, *PHTTP_UNKNOWN_HEADER; + +#if _WIN32_WINNT >= 0x0600 + +// +// Log fields data structure is used for logging a request. This structure must +// be provided along with an HttpSendHttpResponse or HttpSendResponseEntityBody +// call that concludes the send. +// + +// Base structure is for future versioning. + +typedef enum _HTTP_LOG_DATA_TYPE +{ + HttpLogDataTypeFields = 0 + +} HTTP_LOG_DATA_TYPE, *PHTTP_LOG_DATA_TYPE; + +// should we DECLSPEC_ALIGN(4 or 8) == DECLSPEC_POINTERALIGN? +typedef struct _HTTP_LOG_DATA +{ + HTTP_LOG_DATA_TYPE Type; + +} HTTP_LOG_DATA, *PHTTP_LOG_DATA; + +// Current log fields data structure for of type HttpLogDataTypeFields. + +typedef struct _HTTP_LOG_FIELDS_DATA +{ + HTTP_LOG_DATA Base; + + USHORT UserNameLength; + USHORT UriStemLength; + USHORT ClientIpLength; + USHORT ServerNameLength; + USHORT ServiceNameLength; + USHORT ServerIpLength; + USHORT MethodLength; + USHORT UriQueryLength; + USHORT HostLength; + USHORT UserAgentLength; + USHORT CookieLength; + USHORT ReferrerLength; + + PWCHAR UserName; + PWCHAR UriStem; + PCHAR ClientIp; + PCHAR ServerName; + PCHAR ServiceName; + PCHAR ServerIp; + PCHAR Method; + PCHAR UriQuery; + PCHAR Host; + PCHAR UserAgent; + PCHAR Cookie; + PCHAR Referrer; + + USHORT ServerPort; + USHORT ProtocolStatus; + + ULONG Win32Status; + + HTTP_VERB MethodNum; + + USHORT SubStatus; + +} HTTP_LOG_FIELDS_DATA, *PHTTP_LOG_FIELDS_DATA; + +#endif // _WIN32_WINNT >= 0x0600 + + +typedef struct _HTTP_WINHTTP_FAST_FORWARDING_DATA +{ + UCHAR Reserved[16]; +} HTTP_WINHTTP_FAST_FORWARDING_DATA, *PHTTP_WINHTTP_FAST_FORWARDING_DATA; + + +// +// This enum defines a data source for a particular chunk of data. +// + +typedef enum _HTTP_DATA_CHUNK_TYPE +{ + HttpDataChunkFromMemory, + HttpDataChunkFromFileHandle, + HttpDataChunkFromFragmentCache, + HttpDataChunkFromFragmentCacheEx, + HttpDataChunkTrailers, + HttpDataChunkFromWinHttpFastForwarding, + + HttpDataChunkMaximum + +} HTTP_DATA_CHUNK_TYPE, *PHTTP_DATA_CHUNK_TYPE; + +// +// This structure describes an individual data chunk. +// + +typedef struct _HTTP_DATA_CHUNK +{ + // + // The type of this data chunk. + // + + HTTP_DATA_CHUNK_TYPE DataChunkType; + + // + // The data chunk structures, one per supported data chunk type. + // + + union + { + // + // From-memory data chunk. + // + + struct + { + PVOID pBuffer; + ULONG BufferLength; + + } FromMemory; + + // + // From-file handle data chunk. + // + + struct + { + HTTP_BYTE_RANGE ByteRange; + HANDLE FileHandle; + + } FromFileHandle; + + // + // From-fragment cache data chunk. + // + + struct + { + USHORT FragmentNameLength; // in bytes not including the NUL + PCWSTR pFragmentName; + + } FromFragmentCache; + + // + // From-fragment cache data chunk that specifies a byte range. + // + + struct + { + HTTP_BYTE_RANGE ByteRange; + PCWSTR pFragmentName; // NULL-terminated string + + } FromFragmentCacheEx; + + // + // Trailer data chunk that specifies Trailer headers. + // + + struct + { + USHORT TrailerCount; + PHTTP_UNKNOWN_HEADER pTrailers; + + } Trailers; + + struct + { + HTTP_WINHTTP_FAST_FORWARDING_DATA WhFastForwardingData; + } FromWinHttpFastForwarding; + }; + +} HTTP_DATA_CHUNK, *PHTTP_DATA_CHUNK; + +// +// HTTP API doesn't support 16 bit applications. +// Neither WIN32 nor _WIN64 was defined. +// + +C_ASSERT(TYPE_ALIGNMENT(HTTP_DATA_CHUNK) == sizeof(ULONGLONG)); + +// +// Structure defining format of request headers. +// + +typedef struct _HTTP_REQUEST_HEADERS +{ + // + // The array of unknown HTTP headers and the number of + // entries in the array. + // + + USHORT UnknownHeaderCount; + PHTTP_UNKNOWN_HEADER pUnknownHeaders; + + // + // Trailers - we don't use these currently, reserved for a future release + // + USHORT TrailerCount; // Reserved, must be 0 + PHTTP_UNKNOWN_HEADER pTrailers; // Reserved, must be NULL + + + // + // Known headers. + // + + HTTP_KNOWN_HEADER KnownHeaders[HttpHeaderRequestMaximum]; + +} HTTP_REQUEST_HEADERS, *PHTTP_REQUEST_HEADERS; + +// +// Structure defining format of response headers. +// + +typedef struct _HTTP_RESPONSE_HEADERS +{ + // + // The array of unknown HTTP headers and the number of + // entries in the array. + // + + USHORT UnknownHeaderCount; + PHTTP_UNKNOWN_HEADER pUnknownHeaders; + + // + // Trailers - we don't use these currently, reserved for a future release + // + USHORT TrailerCount; // Reserved, must be 0 + PHTTP_UNKNOWN_HEADER pTrailers; // Reserved, must be NULL + + // + // Known headers. + // + + HTTP_KNOWN_HEADER KnownHeaders[HttpHeaderResponseMaximum]; + +} HTTP_RESPONSE_HEADERS, *PHTTP_RESPONSE_HEADERS; + +// +// Properties that can be passed down with IOCTL_HTTP_DELEGATE_REQUEST_EX +// + +typedef enum _HTTP_DELEGATE_REQUEST_PROPERTY_ID +{ + DelegateRequestReservedProperty, + DelegateRequestDelegateUrlProperty, +} HTTP_DELEGATE_REQUEST_PROPERTY_ID, *PHTTP_DELEGATE_REQUEST_PROPERTY_ID; + +typedef struct _HTTP_DELEGATE_REQUEST_PROPERTY_INFO +{ + HTTP_DELEGATE_REQUEST_PROPERTY_ID PropertyId; + ULONG PropertyInfoLength; + PVOID PropertyInfo; +} HTTP_DELEGATE_REQUEST_PROPERTY_INFO, *PHTTP_DELEGATE_REQUEST_PROPERTY_INFO; + +// +// Properties that can be passed down with IOCTL_HTTP_CREATE_REQUEST_QUEUE_EX +// + +typedef enum _HTTP_CREATE_REQUEST_QUEUE_PROPERTY_ID +{ + CreateRequestQueueExternalIdProperty = 1, + CreateRequestQueueMax +} HTTP_CREATE_REQUEST_QUEUE_PROPERTY_ID, *PHTTP_CREATE_REQUEST_QUEUE_PROPERTY_ID; + +typedef struct _HTTP_CREATE_REQUEST_QUEUE_PROPERTY_INFO +{ + HTTP_CREATE_REQUEST_QUEUE_PROPERTY_ID PropertyId; + ULONG PropertyInfoLength; + PVOID PropertyInfo; +} HTTP_CREATE_REQUEST_QUEUE_PROPERTY_INFO, *PHTTP_CREATE_REQUEST_QUEUE_PROPERTY_INFO; + +// +// Structure defining format of transport address. Use pLocalAddress->sa_family +// to determine whether this is an IPv4 address (AF_INET) or IPv6 (AF_INET6). +// +// pRemoteAddress->sa_family will be the same as pLocalAddress->sa_family. +// +// SOCKADDRs are always in network order, not host order. +// + +typedef struct _HTTP_TRANSPORT_ADDRESS +{ + PSOCKADDR pRemoteAddress; + PSOCKADDR pLocalAddress; + +} HTTP_TRANSPORT_ADDRESS, *PHTTP_TRANSPORT_ADDRESS; + +// +// Structure defining format of cooked URL. +// + +typedef struct _HTTP_COOKED_URL +{ + // + // Pointers overlap and point into pFullUrl. NULL if not present. + // + + USHORT FullUrlLength; // in bytes not including the NUL + USHORT HostLength; // in bytes (no NUL) + USHORT AbsPathLength; // in bytes (no NUL) + USHORT QueryStringLength; // in bytes (no NUL) + + PCWSTR pFullUrl; // points to "http://hostname:port/abs/.../path?query" + PCWSTR pHost; // points to the first char in the hostname + PCWSTR pAbsPath; // Points to the 3rd '/' char + PCWSTR pQueryString; // Points to the 1st '?' char or NULL + +} HTTP_COOKED_URL, *PHTTP_COOKED_URL; + +// +// An opaque context for URL manipulation. +// + +typedef ULONGLONG HTTP_URL_CONTEXT; + + +#if _WIN32_WINNT >= 0x0600 + +// +// Optional flags for URL manipulation functions. +// +// HTTP_URL_FLAG_REMOVE_ALL : When this flag is used +// when removing a Url from a url group, regardless of +// the passed URL, all of the Urls from the url group +// will be removed. +// + +#define HTTP_URL_FLAG_REMOVE_ALL 0x00000001 + + +// +// Request Authentication related. +// + +typedef enum _HTTP_AUTH_STATUS +{ + HttpAuthStatusSuccess, + HttpAuthStatusNotAuthenticated, + HttpAuthStatusFailure + +} HTTP_AUTH_STATUS, *PHTTP_AUTH_STATUS; + + +typedef enum _HTTP_REQUEST_AUTH_TYPE +{ + HttpRequestAuthTypeNone = 0, + HttpRequestAuthTypeBasic, + HttpRequestAuthTypeDigest, + HttpRequestAuthTypeNTLM, + HttpRequestAuthTypeNegotiate, + HttpRequestAuthTypeKerberos + + +} HTTP_REQUEST_AUTH_TYPE, *PHTTP_REQUEST_AUTH_TYPE; + +#endif // _WIN32_WINNT >= 0x0600 + +// +// SSL Client certificate information. +// + +typedef struct _HTTP_SSL_CLIENT_CERT_INFO +{ + ULONG CertFlags; + ULONG CertEncodedSize; + PUCHAR pCertEncoded; + HANDLE Token; + BOOLEAN CertDeniedByMapper; + +} HTTP_SSL_CLIENT_CERT_INFO, *PHTTP_SSL_CLIENT_CERT_INFO; + +#if _WIN32_WINNT >= _WIN32_WINNT_WIN7 + +// +// Flag to retrieve secure channel binding with HttpReceiveClientCertificate +// + +#define HTTP_RECEIVE_SECURE_CHANNEL_TOKEN 0x1 + +// +// Flag to retrieve full certificate chain with HttpReceiveClientCertificate +// + +#define HTTP_RECEIVE_FULL_CHAIN 0x2 + +#endif + +// +// Data computed during SSL handshake. +// + +typedef struct _HTTP_SSL_INFO +{ + USHORT ServerCertKeySize; + USHORT ConnectionKeySize; + ULONG ServerCertIssuerSize; + ULONG ServerCertSubjectSize; + + PCSTR pServerCertIssuer; + PCSTR pServerCertSubject; + + PHTTP_SSL_CLIENT_CERT_INFO pClientCertInfo; + ULONG SslClientCertNegotiated; + +} HTTP_SSL_INFO, *PHTTP_SSL_INFO; + +// +// HttpRequestInfoTypeSslProtocol payload. Contains basic information about the +// SSL/TLS protocol and cipher. See SecPkgContext_ConnectionInfo documentation +// for details. This information is meant for statistics. Do not use this for +// security enforcement because by the time you check this the client may +// already have transmitted the information being protected (e.g. HTTP request +// headers). +// + +typedef struct _HTTP_SSL_PROTOCOL_INFO +{ + ULONG Protocol; + ULONG CipherType; + ULONG CipherStrength; + ULONG HashType; + ULONG HashStrength; + ULONG KeyExchangeType; + ULONG KeyExchangeStrength; + +} HTTP_SSL_PROTOCOL_INFO, *PHTTP_SSL_PROTOCOL_INFO; + +// +// List of possible sizes for which information will be retured in HTTP_REQUEST_SIZING_INFO. +// + +typedef enum _HTTP_REQUEST_SIZING_TYPE +{ + HttpRequestSizingTypeTlsHandshakeLeg1ClientData, // Inbound/outbound data? + HttpRequestSizingTypeTlsHandshakeLeg1ServerData, + HttpRequestSizingTypeTlsHandshakeLeg2ClientData, + HttpRequestSizingTypeTlsHandshakeLeg2ServerData, + HttpRequestSizingTypeHeaders, + HttpRequestSizingTypeMax + +} HTTP_REQUEST_SIZING_TYPE, *PHTTP_REQUEST_SIZING_TYPE; + +// +// Flag values for HTTP_REQUEST_SIZING_INFO +// + +#define HTTP_REQUEST_SIZING_INFO_FLAG_TCP_FAST_OPEN 0x00000001 +#define HTTP_REQUEST_SIZING_INFO_FLAG_TLS_SESSION_RESUMPTION 0x00000002 +#define HTTP_REQUEST_SIZING_INFO_FLAG_TLS_FALSE_START 0x00000004 +#define HTTP_REQUEST_SIZING_INFO_FLAG_FIRST_REQUEST 0x00000008 + +// +// HttpRequestInfoTypeSizeInfo payload. Contains size information filled by +// each processsing stage. +// + +typedef struct _HTTP_REQUEST_SIZING_INFO +{ + ULONGLONG Flags; + ULONG RequestIndex; + ULONG RequestSizingCount; + ULONGLONG RequestSizing[HttpRequestSizingTypeMax]; + +} HTTP_REQUEST_SIZING_INFO, *PHTTP_REQUEST_SIZING_INFO; + +// +// List of possible request timings for which information will be retured in +// HTTP_REQUEST_TIMING_INFO. Not all timings apply for every request. +// + +typedef enum _HTTP_REQUEST_TIMING_TYPE +{ + HttpRequestTimingTypeConnectionStart, + HttpRequestTimingTypeDataStart, + HttpRequestTimingTypeTlsCertificateLoadStart, + HttpRequestTimingTypeTlsCertificateLoadEnd, + HttpRequestTimingTypeTlsHandshakeLeg1Start, + HttpRequestTimingTypeTlsHandshakeLeg1End, + HttpRequestTimingTypeTlsHandshakeLeg2Start, + HttpRequestTimingTypeTlsHandshakeLeg2End, + HttpRequestTimingTypeTlsAttributesQueryStart, + HttpRequestTimingTypeTlsAttributesQueryEnd, + HttpRequestTimingTypeTlsClientCertQueryStart, + HttpRequestTimingTypeTlsClientCertQueryEnd, + HttpRequestTimingTypeHttp2StreamStart, + HttpRequestTimingTypeHttp2HeaderDecodeStart, + HttpRequestTimingTypeHttp2HeaderDecodeEnd, + HttpRequestTimingTypeRequestHeaderParseStart, + HttpRequestTimingTypeRequestHeaderParseEnd, + HttpRequestTimingTypeRequestRoutingStart, + HttpRequestTimingTypeRequestRoutingEnd, + HttpRequestTimingTypeRequestQueuedForInspection, + HttpRequestTimingTypeRequestDeliveredForInspection, + HttpRequestTimingTypeRequestReturnedAfterInspection, + HttpRequestTimingTypeRequestQueuedForDelegation, + HttpRequestTimingTypeRequestDeliveredForDelegation, + HttpRequestTimingTypeRequestReturnedAfterDelegation, + HttpRequestTimingTypeRequestQueuedForIO, + HttpRequestTimingTypeRequestDeliveredForIO, + HttpRequestTimingTypeHttp3StreamStart, + HttpRequestTimingTypeHttp3HeaderDecodeStart, + HttpRequestTimingTypeHttp3HeaderDecodeEnd, + HttpRequestTimingTypeMax + +} HTTP_REQUEST_TIMING_TYPE, *PHTTP_REQUEST_TIMING_TYPE; + +// +// HttpRequestInfoTypeTiming payload. Contains information about how much +// time was spent at each request processing stage. +// + +typedef struct _HTTP_REQUEST_TIMING_INFO +{ + ULONG RequestTimingCount; + ULONGLONG RequestTiming[HttpRequestTimingTypeMax]; + +} HTTP_REQUEST_TIMING_INFO, *PHTTP_REQUEST_TIMING_INFO; + +typedef struct _HTTP_REQUEST_TRANSPORT_IDLE_CONNECTION_TIMEOUT_INFO +{ + USHORT TransportIdleConnectionTimeout; + +} HTTP_REQUEST_TRANSPORT_IDLE_CONNECTION_TIMEOUT_INFO, *PHTTP_REQUEST_TRANSPORT_IDLE_CONNECTION_TIMEOUT_INFO; + +typedef struct _HTTP_REQUEST_DSCP_INFO +{ + BYTE DscpTag; + +} HTTP_REQUEST_DSCP_INFO, *PHTTP_REQUEST_DSCP_INFO; + +typedef struct _HTTP_REQUEST_INITIAL_PACKET_TTL_INFO +{ + BYTE InitialPacketTtl; +} HTTP_REQUEST_INITIAL_PACKET_TTL_INFO, *PHTTP_REQUEST_INITIAL_PACKET_TTL_INFO; + +#if _WIN32_WINNT >= 0x0600 + +// +// Generic request information type. +// + +typedef enum _HTTP_REQUEST_INFO_TYPE +{ + HttpRequestInfoTypeAuth, + HttpRequestInfoTypeChannelBind, + HttpRequestInfoTypeSslProtocol, + HttpRequestInfoTypeSslTokenBindingDraft, + HttpRequestInfoTypeSslTokenBinding, + HttpRequestInfoTypeRequestTiming, + HttpRequestInfoTypeTcpInfoV0, + HttpRequestInfoTypeRequestSizing, + HttpRequestInfoTypeQuicStats, + HttpRequestInfoTypeTcpInfoV1, + HttpRequestInfoTypeQuicStatsV2, + HttpRequestInfoTypeTcpInfoV2, + HttpRequestInfoTypeTransportIdleConnectionTimeout, + HttpRequestInfoTypeDscpTag, + HttpRequestInfoTypeInitialPacketTtl, + +} HTTP_REQUEST_INFO_TYPE, *PHTTP_REQUEST_INFO_TYPE; + +typedef struct _HTTP_REQUEST_INFO +{ + HTTP_REQUEST_INFO_TYPE InfoType; + ULONG InfoLength; + PVOID pInfo; + +} HTTP_REQUEST_INFO, *PHTTP_REQUEST_INFO; + +#ifndef __SECSTATUS_DEFINED__ +typedef LONG SECURITY_STATUS; +#define __SECSTATUS_DEFINED__ +#endif // __SECSTATUS_DEFINED__ + +// +// Authentication request info structure +// + +#define HTTP_REQUEST_AUTH_FLAG_TOKEN_FOR_CACHED_CRED (0x00000001) + +typedef struct _HTTP_REQUEST_AUTH_INFO +{ + HTTP_AUTH_STATUS AuthStatus; + SECURITY_STATUS SecStatus; + + ULONG Flags; + + HTTP_REQUEST_AUTH_TYPE AuthType; + + HANDLE AccessToken; + ULONG ContextAttributes; + + // + // Optional serialized context. + // + + ULONG PackedContextLength; + ULONG PackedContextType; + PVOID PackedContext; + + // + // Optional mutual authentication data and its length in bytes. + // + + ULONG MutualAuthDataLength; + PCHAR pMutualAuthData; + + // + // For SSPI based schemes the package name is returned. Length does + // not include the terminating null and it is in bytes. + // + + USHORT PackageNameLength; + PWSTR pPackageName; + +} HTTP_REQUEST_AUTH_INFO, *PHTTP_REQUEST_AUTH_INFO; + +#endif // _WIN32_WINNT >= 0x0600 + +// +// The structure of an HTTP request for downlevel OS +// + +typedef struct _HTTP_REQUEST_V1 +{ + // + // Request flags (see HTTP_REQUEST_FLAG_* definitions below). + // + + ULONG Flags; + + // + // An opaque request identifier. These values are used by the driver + // to correlate outgoing responses with incoming requests. + // + + HTTP_CONNECTION_ID ConnectionId; + HTTP_REQUEST_ID RequestId; + + // + // The context associated with the URL prefix. + // + + HTTP_URL_CONTEXT UrlContext; + + // + // The HTTP version number. + // + + HTTP_VERSION Version; + + // + // The request verb. + // + + HTTP_VERB Verb; + + // + // The length of the verb string if the Verb field is HttpVerbUnknown. + // + + USHORT UnknownVerbLength; // in bytes not including the NUL + + // + // The length of the raw (uncooked) URL + // + + USHORT RawUrlLength; // in bytes not including the NUL + + // + // Pointer to the verb string if the Verb field is HttpVerbUnknown. + // + + PCSTR pUnknownVerb; + + // + // Pointer to the raw (uncooked) URL + // + + PCSTR pRawUrl; + + // + // The canonicalized Unicode URL + // + + HTTP_COOKED_URL CookedUrl; + + // + // Local and remote transport addresses for the connection. + // + + HTTP_TRANSPORT_ADDRESS Address; + + // + // The request headers. + // + + HTTP_REQUEST_HEADERS Headers; + + // + // The total number of bytes received from network for this request. + // + + ULONGLONG BytesReceived; + + // + // pEntityChunks is an array of EntityChunkCount HTTP_DATA_CHUNKs. The + // entity body is copied only if HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY + // was passed to HttpReceiveHttpRequest(). + // + + USHORT EntityChunkCount; + PHTTP_DATA_CHUNK pEntityChunks; + + // + // SSL connection information. + // + + HTTP_RAW_CONNECTION_ID RawConnectionId; + PHTTP_SSL_INFO pSslInfo; + +} HTTP_REQUEST_V1, *PHTTP_REQUEST_V1; + +#if _WIN32_WINNT >= 0x0600 + +// Vista + +// +// Version 2.0 members are defined here +// N.B. One must define V2 elements in two places :( +// This is due to the fact that C++ doesn't allow anonymous +// structure declarations and one must use structure +// inheritance instead. +// + +#ifdef __cplusplus + +typedef struct _HTTP_REQUEST_V2 : _HTTP_REQUEST_V1 +{ + // + // Version 1.0 members are inherited + // Version 2.0 members are declared below + // + + // + // Additional Request Informations. + // + + USHORT RequestInfoCount; + PHTTP_REQUEST_INFO pRequestInfo; +} HTTP_REQUEST_V2, *PHTTP_REQUEST_V2; + +#else // __cplusplus + +typedef struct _HTTP_REQUEST_V2 +{ + struct _HTTP_REQUEST_V1; // Anonymous structure + + // + // Version 2.0 members are declared below + // + + // + // Additional Request Informations. + // + + USHORT RequestInfoCount; + PHTTP_REQUEST_INFO pRequestInfo; +} HTTP_REQUEST_V2, *PHTTP_REQUEST_V2; + +#endif // __cplusplus + +typedef HTTP_REQUEST_V2 HTTP_REQUEST; + +#else // _WIN32_WINNT >= 0x0600 + +typedef HTTP_REQUEST_V1 HTTP_REQUEST; + +#endif // _WIN32_WINNT >= 0x0600 + +typedef HTTP_REQUEST * PHTTP_REQUEST; + + +// +// Values for HTTP_REQUEST::Flags. Zero or more of these may be ORed together. +// +// HTTP_REQUEST_FLAG_MORE_ENTITY_BODY_EXISTS - there is more entity body +// to be read for this request. Otherwise, there is no entity body or +// all of the entity body was copied into pEntityChunks. +// HTTP_REQUEST_FLAG_IP_ROUTED - This flag indicates that the request has been +// routed based on host plus ip or ip binding.This is a hint for the application +// to include the local ip while flushing kernel cache entries build for this +// request if any. +// HTTP_REQUEST_FLAG_HTTP2 - Indicates the request was received over HTTP/2. +// HTTP_REQUEST_FLAG_HTTP3 - Indicates the request was received over HTTP/3. +// HTTP_REQUEST_FLAG_FAST_FORWARDING_RESPONSE_ALLOWED - Indicates the response +// is eligible for +// fast-forwarding. +// HTTP_REQUEST_FLAG_FAST_FORWARDING_ALLOWED - This should not be used, it is +// the old flag. +// It has been used first, but the flag +// was split into request and response +// side. This old flag has the same +// value as the response-side flag. +// + +#define HTTP_REQUEST_FLAG_MORE_ENTITY_BODY_EXISTS 0x00000001 +#define HTTP_REQUEST_FLAG_IP_ROUTED 0x00000002 +#define HTTP_REQUEST_FLAG_HTTP2 0x00000004 +#define HTTP_REQUEST_FLAG_HTTP3 0x00000008 +#define HTTP_REQUEST_FLAG_FAST_FORWARDING_ALLOWED 0x00000010 +#define HTTP_REQUEST_FLAG_FAST_FORWARDING_RESPONSE_ALLOWED HTTP_REQUEST_FLAG_FAST_FORWARDING_ALLOWED + + +// +// This structure describes an HTTP response. +// + +typedef struct _HTTP_RESPONSE_V1 +{ + // + // Response flags (see HTTP_RESPONSE_FLAG_* definitions below). + // + + ULONG Flags; + + // + // The raw HTTP protocol version number. + // + + HTTP_VERSION Version; + + // + // The HTTP status code (e.g., 200). + // + + USHORT StatusCode; + + // + // The HTTP reason (e.g., "OK"). This MUST not contain + // non-ASCII characters (i.e., all chars must be in range 0x20-0x7E). + // + + USHORT ReasonLength; // in bytes not including the '\0' + PCSTR pReason; + + // + // The response headers. + // + + HTTP_RESPONSE_HEADERS Headers; + + // + // pEntityChunks points to an array of EntityChunkCount HTTP_DATA_CHUNKs. + // + + USHORT EntityChunkCount; + PHTTP_DATA_CHUNK pEntityChunks; + +} HTTP_RESPONSE_V1, *PHTTP_RESPONSE_V1; + +#if _WIN32_WINNT >= 0x0600 + +// +// Values for HTTP_RESPONSE::Flags. +// +// HTTP_RESPONSE_FLAG_MULTIPLE_ENCODINGS_AVAILABLE - Set this flag if encodings +// other than identity form are available for this resource.This flag is ignored +// if application has not asked for response to be cached. It's used as a hint +// to the Http Server API for content negotiation used when serving from the +// the kernel response cache. +// +// HTTP_RESPONSE_FLAG_MORE_ENTITY_BODY_EXISTS - there is more entity body +// to be read for this response. Otherwise, there is no entity body or +// all of the entity body was copied into pEntityChunks. +// + +#define HTTP_RESPONSE_FLAG_MULTIPLE_ENCODINGS_AVAILABLE 0x00000001 +#define HTTP_RESPONSE_FLAG_MORE_ENTITY_BODY_EXISTS 0x00000002 + + +typedef enum _HTTP_RESPONSE_INFO_TYPE +{ + HttpResponseInfoTypeMultipleKnownHeaders, + HttpResponseInfoTypeAuthenticationProperty, + HttpResponseInfoTypeQoSProperty, + HttpResponseInfoTypeChannelBind + +} HTTP_RESPONSE_INFO_TYPE, *PHTTP_RESPONSE_INFO_TYPE; + +typedef struct _HTTP_RESPONSE_INFO +{ + HTTP_RESPONSE_INFO_TYPE Type; + ULONG Length; + PVOID pInfo; +} HTTP_RESPONSE_INFO, *PHTTP_RESPONSE_INFO; + +#define HTTP_RESPONSE_INFO_FLAGS_PRESERVE_ORDER 0x00000001 + +// +// This structure allows the provision of providing multiple known headers. +// + +typedef struct _HTTP_MULTIPLE_KNOWN_HEADERS +{ + // + // Known header id. + // + + HTTP_HEADER_ID HeaderId; + + ULONG Flags; + + // + // Number of headers of the same category. + // + + USHORT KnownHeaderCount; + + // + // Array of known header structures. + // + + PHTTP_KNOWN_HEADER KnownHeaders; + +} HTTP_MULTIPLE_KNOWN_HEADERS, *PHTTP_MULTIPLE_KNOWN_HEADERS; + +// +// Version 2.0 members are defined here +// N.B. One must define V2 elements in two places :( +// This is due to the fact that C++ doesn't allow anonymous +// structure declarations and one must use structure +// inheritance instead. +// + +#ifdef __cplusplus + +typedef struct _HTTP_RESPONSE_V2 : _HTTP_RESPONSE_V1 +{ + // + // Version 1.0 members are inherited + // Version 2.0 members are declared below + // + + USHORT ResponseInfoCount; + PHTTP_RESPONSE_INFO pResponseInfo; + +} HTTP_RESPONSE_V2, *PHTTP_RESPONSE_V2; + +#else // __cplusplus + +typedef struct _HTTP_RESPONSE_V2 +{ + struct _HTTP_RESPONSE_V1; + + // + // Version 2.0 members are declared below + // + + USHORT ResponseInfoCount; + PHTTP_RESPONSE_INFO pResponseInfo; +} HTTP_RESPONSE_V2, *PHTTP_RESPONSE_V2; + +#endif // __cplusplus + +typedef HTTP_RESPONSE_V2 HTTP_RESPONSE; + +#else // _WIN32_WINNT >= 0x0600 + +typedef HTTP_RESPONSE_V1 HTTP_RESPONSE; + +#endif // _WIN32_WINNT >= 0x0600 + +typedef HTTP_RESPONSE *PHTTP_RESPONSE; + +// +// Api Version. This is used to ensure compatibility between applications and +// httpapi.dll and http.sys. +// +// This must not be confused with the HTTP Protocol version. +// + +typedef struct _HTTPAPI_VERSION +{ + USHORT HttpApiMajorVersion; + USHORT HttpApiMinorVersion; + +} HTTPAPI_VERSION, *PHTTPAPI_VERSION; + + +#if _WIN32_WINNT >= 0x0600 + +// Vista + +#define HTTPAPI_VERSION_2 { 2, 0 } + +#endif // _WIN32_WINNT >= 0x0600 + +#define HTTPAPI_VERSION_1 { 1, 0 } + +#define HTTPAPI_EQUAL_VERSION(version, major, minor) \ + ((version).HttpApiMajorVersion == (major) && \ + (version).HttpApiMinorVersion == (minor)) + +#define HTTPAPI_GREATER_VERSION(version, major, minor) \ + ((version).HttpApiMajorVersion > (major) || \ + ((version).HttpApiMajorVersion == (major) && \ + (version).HttpApiMinorVersion > (minor))) + +#define HTTPAPI_LESS_VERSION(version, major, minor) \ + ((version).HttpApiMajorVersion < (major) || \ + ((version).HttpApiMajorVersion == (major) && \ + (version).HttpApiMinorVersion < (minor))) + +#define HTTPAPI_VERSION_GREATER_OR_EQUAL( version, major, minor) \ + (!HTTPAPI_LESS_VERSION(version, major, minor)) + + +// +// Cache control. +// + +// +// This enum defines the available cache policies. +// + +typedef enum _HTTP_CACHE_POLICY_TYPE +{ + HttpCachePolicyNocache, + HttpCachePolicyUserInvalidates, + HttpCachePolicyTimeToLive, + + HttpCachePolicyMaximum + +} HTTP_CACHE_POLICY_TYPE, *PHTTP_CACHE_POLICY_TYPE; + + +// +// Only cache unauthorized GETs + HEADs. +// + +typedef struct _HTTP_CACHE_POLICY +{ + HTTP_CACHE_POLICY_TYPE Policy; + ULONG SecondsToLive; + +} HTTP_CACHE_POLICY, *PHTTP_CACHE_POLICY; + +// +// Enum that is used with HttpSetServiceConfiguration(), +// HttpQueryServiceConfiguration(), and HttpDeleteServiceConfiguration() APIs. +// + +typedef enum _HTTP_SERVICE_CONFIG_ID +{ + HttpServiceConfigIPListenList, // Set, Query & Delete. + HttpServiceConfigSSLCertInfo, // Set, Update, Query & Delete. + HttpServiceConfigUrlAclInfo, // Set, Query & Delete. + HttpServiceConfigTimeout, // Set, Query & Delete. + HttpServiceConfigCache, // Set, Query & Delete. + +#if _WIN32_WINNT >= _WIN32_WINNT_WIN8 + + HttpServiceConfigSslSniCertInfo, // Set, Update, Query & Delete. + HttpServiceConfigSslCcsCertInfo, // Set, Update, Query & Delete. + +#endif + +#if _WIN32_WINNT >= _WIN32_WINNT_WIN10 + + HttpServiceConfigSetting, // Set, Query & Delete. + +#endif + + HttpServiceConfigSslCertInfoEx, + HttpServiceConfigSslSniCertInfoEx, + HttpServiceConfigSslCcsCertInfoEx, + HttpServiceConfigSslScopedCcsCertInfo, + HttpServiceConfigSslScopedCcsCertInfoEx, + + HttpServiceConfigMax + +} HTTP_SERVICE_CONFIG_ID, *PHTTP_SERVICE_CONFIG_ID; + +// +// Generic Query enum that can be used with HttpQueryServiceConfiguration() +// + +typedef enum _HTTP_SERVICE_CONFIG_QUERY_TYPE +{ + HttpServiceConfigQueryExact, + HttpServiceConfigQueryNext, + HttpServiceConfigQueryMax + +} HTTP_SERVICE_CONFIG_QUERY_TYPE, *PHTTP_SERVICE_CONFIG_QUERY_TYPE; + +// +// These data structures are used to define the key types of the various SSL +// bindings. +// + +typedef struct _HTTP_SERVICE_CONFIG_SSL_KEY +{ + PSOCKADDR pIpPort; +} HTTP_SERVICE_CONFIG_SSL_KEY, *PHTTP_SERVICE_CONFIG_SSL_KEY; + +typedef struct _HTTP_SERVICE_CONFIG_SSL_KEY_EX +{ + SOCKADDR_STORAGE IpPort; +} HTTP_SERVICE_CONFIG_SSL_KEY_EX, *PHTTP_SERVICE_CONFIG_SSL_KEY_EX; + + +#if _WIN32_WINNT >= _WIN32_WINNT_WIN8 + +typedef struct _HTTP_SERVICE_CONFIG_SSL_SNI_KEY +{ + SOCKADDR_STORAGE IpPort; + PWSTR Host; +} HTTP_SERVICE_CONFIG_SSL_SNI_KEY, *PHTTP_SERVICE_CONFIG_SSL_SNI_KEY; + +typedef struct _HTTP_SERVICE_CONFIG_SSL_CCS_KEY +{ + SOCKADDR_STORAGE LocalAddress; +} HTTP_SERVICE_CONFIG_SSL_CCS_KEY, *PHTTP_SERVICE_CONFIG_SSL_CCS_KEY; + +#endif + +// +// Define various certificate check mode flags used by DefaultCertCheckMode. +// + +#define HTTP_CERT_CHECK_MODE_NO_REVOCATION 0x00001 +#define HTTP_CERT_CHECK_MODE_CACHED_REVOCATION 0x00002 +#define HTTP_CERT_CHECK_MODE_USE_REVOCATION_FRESHNESS 0x00004 +#define HTTP_CERT_CHECK_MODE_CACHED_URLS 0x00008 +#define HTTP_CERT_CHECK_MODE_NO_AIA 0x00010 +#define HTTP_CERT_CHECK_MODE_NO_USAGE_CHECK 0x10000 + +// +// This defines a record for the SSL config store. +// + +typedef struct _HTTP_SERVICE_CONFIG_SSL_PARAM +{ + ULONG SslHashLength; // Length of the SSL hash (in bytes) + PVOID pSslHash; // Pointer to the SSL hash + GUID AppId; // A unique identifier that can be used to + // identify the app that has set this parameter + + PWSTR pSslCertStoreName; // Store name to read the server certificate + // from; defaults to "MY". Certificate must be + // stored in the LOCAL_MACHINE context. + + // + // The following settings are used only for client certificates + // + + // + // DefaultCertCheckMode is a bit flag with the following semantics + // 0x1 - Client certificate will not be verified for revocation + // 0x2 - Only cached certificate revocation will be used. + // 0x4 - Enable use of the DefaultRevocationFreshnessTime setting + // 0x8 - Disable network URL retrieval. + // 0x10 - Disable AIA checks. + // 0x10000 - No usage check. + + DWORD DefaultCertCheckMode; + + // + // DefaultRevocationFreshnessTime (seconds) - How often to check for + // an updated Certificate revocation list (CRL). If this value is 0 + // then the new CRL is updated only if the previous one expires + // + + DWORD DefaultRevocationFreshnessTime; + + // + // DefaultRevocationUrlRetrievalTimeout (milliseconds) - Timeout on + // attempt to retrieve certificate revocation list from the remote URL. + // + + DWORD DefaultRevocationUrlRetrievalTimeout; + + // + // pDefaultSslCtlIdentifier - Restrict the certificate issuers that you + // want to trust. Can be a subset of the certificate issuers that are + // trusted by the machine. + // + + PWSTR pDefaultSslCtlIdentifier; + + // + // Store name under LOCAL_MACHINE where Ctl identified by + // pDefaultSslCtlIdentifier is stored. + // + + PWSTR pDefaultSslCtlStoreName; + + // + // Default Flags - see HTTP_SERVICE_CONFIG_SSL_FLAG* below. + // + + DWORD DefaultFlags; + +} HTTP_SERVICE_CONFIG_SSL_PARAM, *PHTTP_SERVICE_CONFIG_SSL_PARAM; + +// +// The extended param type for the SSL extended params. +// + +typedef enum _HTTP_SSL_SERVICE_CONFIG_EX_PARAM_TYPE +{ + ExParamTypeHttp2Window, + ExParamTypeHttp2SettingsLimits, + ExParamTypeHttpPerformance, + ExParamTypeTlsRestrictions, + ExParamTypeErrorHeaders, + ExParamTypeTlsSessionTicketKeys, + ExParamTypeCertConfig, + ExParamTypeMax +} HTTP_SSL_SERVICE_CONFIG_EX_PARAM_TYPE, *PHTTP_SSL_SERVICE_CONFIG_EX_PARAM_TYPE; + +typedef struct _HTTP2_WINDOW_SIZE_PARAM +{ + // + // The http/2 connection receive window size. + // + + DWORD Http2ReceiveWindowSize; +} HTTP2_WINDOW_SIZE_PARAM, *PHTTP2_WINDOW_SIZE_PARAM; + +typedef struct _HTTP2_SETTINGS_LIMITS_PARAM +{ + // + // The maximum allowed settings per SETTINGS frame. + // + + DWORD Http2MaxSettingsPerFrame; + + // + // The maximum settings we will process in a minute. + // + + DWORD Http2MaxSettingsPerMinute; +} HTTP2_SETTINGS_LIMITS_PARAM, *PHTTP2_SETTINGS_LIMITS_PARAM; + +typedef enum _HTTP_PERFORMANCE_PARAM_TYPE +{ + PerformanceParamSendBufferingFlags, + PerformanceParamAggressiveICW, + PerformanceParamMaxSendBufferSize, + PerformanceParamMaxConcurrentClientStreams, + PerformanceParamMaxReceiveBufferSize, + PerformanceParamDecryptOnSspiThread, + PerformanceParamMax, +} HTTP_PERFORMANCE_PARAM_TYPE, *PHTTP_PERFORMANCE_PARAM_TYPE; + +typedef struct _HTTP_PERFORMANCE_PARAM +{ + HTTP_PERFORMANCE_PARAM_TYPE Type; + ULONG BufferSize; + PVOID Buffer; +} HTTP_PERFORMANCE_PARAM, *PHTTP_PERFORMANCE_PARAM; + +typedef struct _HTTP_TLS_RESTRICTIONS_PARAM +{ + ULONG RestrictionCount; + PVOID TlsRestrictions; +} HTTP_TLS_RESTRICTIONS_PARAM, *PHTTP_TLS_RESTRICTIONS_PARAM; + +typedef struct _HTTP_ERROR_HEADERS_PARAM +{ + USHORT StatusCode; + USHORT HeaderCount; + PHTTP_UNKNOWN_HEADER Headers; +} HTTP_ERROR_HEADERS_PARAM, *PHTTP_ERROR_HEADERS_PARAM; + +typedef struct _HTTP_TLS_SESSION_TICKET_KEYS_PARAM +{ + ULONG SessionTicketKeyCount; + PVOID SessionTicketKeys; +} HTTP_TLS_SESSION_TICKET_KEYS_PARAM, *PHTTP_TLS_SESSION_TICKET_KEYS_PARAM; + +// +// This should really be defined by one of the security header files. +// + +#define HTTP_SSL_CERT_SHA_HASH_LENGTH 20 +#define HTTP_SSL_CERT_STORE_NAME_LENGTH 128 + +typedef struct _HTTP_CERT_CONFIG_ENTRY +{ + BYTE CertHash[HTTP_SSL_CERT_SHA_HASH_LENGTH]; + WCHAR CertStoreName[HTTP_SSL_CERT_STORE_NAME_LENGTH]; +} HTTP_CERT_CONFIG_ENTRY, *PHTTP_CERT_CONFIG_ENTRY; + +typedef struct _HTTP_CERT_CONFIG_PARAM +{ + ULONG CertConfigCount; + PHTTP_CERT_CONFIG_ENTRY CertConfigs; +} HTTP_CERT_CONFIG_PARAM, *PHTTP_CERT_CONFIG_PARAM; + +// +// This defines the extended params for the ssl config record. +// + +typedef struct _HTTP_SERVICE_CONFIG_SSL_PARAM_EX +{ + // + // The id that decides which param property is passed below. + // + + HTTP_SSL_SERVICE_CONFIG_EX_PARAM_TYPE ParamType; + + // + // Flags for future use, if any. + // + + ULONGLONG Flags; + + // + // The property. + // + + union + { + HTTP2_WINDOW_SIZE_PARAM Http2WindowSizeParam; + HTTP2_SETTINGS_LIMITS_PARAM Http2SettingsLimitsParam; + HTTP_PERFORMANCE_PARAM HttpPerformanceParam; + HTTP_TLS_RESTRICTIONS_PARAM HttpTlsRestrictionsParam; + HTTP_ERROR_HEADERS_PARAM HttpErrorHeadersParam; + HTTP_TLS_SESSION_TICKET_KEYS_PARAM HttpTlsSessionTicketKeysParam; + HTTP_CERT_CONFIG_PARAM HttpCertConfigParam; + }; +} HTTP_SERVICE_CONFIG_SSL_PARAM_EX, *PHTTP_SERVICE_CONFIG_SSL_PARAM_EX; + +// +// The SSL config flags. +// + +#define HTTP_SERVICE_CONFIG_SSL_FLAG_USE_DS_MAPPER 0x00000001 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_NEGOTIATE_CLIENT_CERT 0x00000002 +#if _WIN32_WINNT < 0x0600 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_NO_RAW_FILTER 0x00000004 +#endif // _WIN32_WINNT < 0x0600 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_REJECT 0x00000008 + +#define HTTP_SERVICE_CONFIG_SSL_FLAG_DISABLE_HTTP2 0x00000010 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_DISABLE_QUIC 0x00000020 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_DISABLE_TLS13 0x00000040 + +#define HTTP_SERVICE_CONFIG_SSL_FLAG_DISABLE_OCSP_STAPLING 0x00000080 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_ENABLE_TOKEN_BINDING 0x00000100 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_LOG_EXTENDED_EVENTS 0x00000200 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_DISABLE_LEGACY_TLS 0x00000400 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_ENABLE_SESSION_TICKET 0x00000800 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_DISABLE_TLS12 0x00001000 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_ENABLE_CLIENT_CORRELATION 0x00002000 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_DISABLE_SESSION_ID 0x00004000 +#define HTTP_SERVICE_CONFIG_SSL_FLAG_ENABLE_CACHE_CLIENT_HELLO 0x00008000 + + +// +// These data structures are used by HttpSetServiceConfiguration() to add a new +// record to the SSL bindings list. +// +// ConfigId | Structure +// --------------------------------+--------------------------------- +// HttpServiceConfigSSLCertInfo | HTTP_SERVICE_CONFIG_SSL_SET +// HttpServiceConfigSslSniCertInfo | HTTP_SERVICE_CONFIG_SSL_SNI_SET +// HttpServiceConfigSslCcsCertInfo | HTTP_SERVICE_CONFIG_SSL_CCS_SET +// + +typedef struct _HTTP_SERVICE_CONFIG_SSL_SET +{ + HTTP_SERVICE_CONFIG_SSL_KEY KeyDesc; + HTTP_SERVICE_CONFIG_SSL_PARAM ParamDesc; +} HTTP_SERVICE_CONFIG_SSL_SET, *PHTTP_SERVICE_CONFIG_SSL_SET; + +#if _WIN32_WINNT >= _WIN32_WINNT_WIN8 + +typedef struct _HTTP_SERVICE_CONFIG_SSL_SNI_SET +{ + HTTP_SERVICE_CONFIG_SSL_SNI_KEY KeyDesc; + HTTP_SERVICE_CONFIG_SSL_PARAM ParamDesc; +} HTTP_SERVICE_CONFIG_SSL_SNI_SET, *PHTTP_SERVICE_CONFIG_SSL_SNI_SET; + +typedef struct _HTTP_SERVICE_CONFIG_SSL_CCS_SET +{ + HTTP_SERVICE_CONFIG_SSL_CCS_KEY KeyDesc; + HTTP_SERVICE_CONFIG_SSL_PARAM ParamDesc; +} HTTP_SERVICE_CONFIG_SSL_CCS_SET, *PHTTP_SERVICE_CONFIG_SSL_CCS_SET; + +typedef struct _HTTP_SERVICE_CONFIG_SSL_SET_EX +{ + HTTP_SERVICE_CONFIG_SSL_KEY_EX KeyDesc; + HTTP_SERVICE_CONFIG_SSL_PARAM_EX ParamDesc; +} HTTP_SERVICE_CONFIG_SSL_SET_EX, *PHTTP_SERVICE_CONFIG_SSL_SET_EX; + +typedef struct _HTTP_SERVICE_CONFIG_SSL_SNI_SET_EX +{ + HTTP_SERVICE_CONFIG_SSL_SNI_KEY KeyDesc; + HTTP_SERVICE_CONFIG_SSL_PARAM_EX ParamDesc; +} HTTP_SERVICE_CONFIG_SSL_SNI_SET_EX, *PHTTP_SERVICE_CONFIG_SSL_SNI_SET_EX; + +typedef struct _HTTP_SERVICE_CONFIG_SSL_CCS_SET_EX +{ + HTTP_SERVICE_CONFIG_SSL_CCS_KEY KeyDesc; + HTTP_SERVICE_CONFIG_SSL_PARAM_EX ParamDesc; +} HTTP_SERVICE_CONFIG_SSL_CCS_SET_EX, *PHTTP_SERVICE_CONFIG_SSL_CCS_SET_EX; + +#endif + +// +// These data structures are used by HttpQueryServiceConfiguration() to query a +// particular record from the SSL store. +// +// ConfigId | Structure +// --------------------------------+--------------------------------- +// HttpServiceConfigSSLCertInfo | HTTP_SERVICE_CONFIG_SSL_QUERY +// HttpServiceConfigSSLSniCertInfo | HTTP_SERVICE_CONFIG_SSL_SNI_QUERY +// HttpServiceConfigSslCcsCertInfo | HTTP_SERVICE_CONFIG_SSL_CCS_QUERY +// +// If QueryDesc is HttpServiceConfigQueryExact, then the one particular record +// is returned. If the QueryType is HttpServiceConfigQueryNext, then the next +// instance is returned. In such cases, the dwToken field represents the cursor. +// To retrieve the first item, dwToken has to be 0. For retrieving subsequent +// items, dwToken has to be incremented by 1, until ERROR_NO_MORE_ITEMS is +// returned. +// + +typedef struct _HTTP_SERVICE_CONFIG_SSL_QUERY +{ + HTTP_SERVICE_CONFIG_QUERY_TYPE QueryDesc; + HTTP_SERVICE_CONFIG_SSL_KEY KeyDesc; + DWORD dwToken; +} HTTP_SERVICE_CONFIG_SSL_QUERY, *PHTTP_SERVICE_CONFIG_SSL_QUERY; + +#if _WIN32_WINNT >= _WIN32_WINNT_WIN8 + +typedef struct _HTTP_SERVICE_CONFIG_SSL_SNI_QUERY +{ + HTTP_SERVICE_CONFIG_QUERY_TYPE QueryDesc; + HTTP_SERVICE_CONFIG_SSL_SNI_KEY KeyDesc; + DWORD dwToken; +} HTTP_SERVICE_CONFIG_SSL_SNI_QUERY, *PHTTP_SERVICE_CONFIG_SSL_SNI_QUERY; + +typedef struct _HTTP_SERVICE_CONFIG_SSL_CCS_QUERY +{ + HTTP_SERVICE_CONFIG_QUERY_TYPE QueryDesc; + HTTP_SERVICE_CONFIG_SSL_CCS_KEY KeyDesc; + DWORD dwToken; +} HTTP_SERVICE_CONFIG_SSL_CCS_QUERY, *PHTTP_SERVICE_CONFIG_SSL_CCS_QUERY; + +typedef struct _HTTP_SERVICE_CONFIG_SSL_QUERY_EX +{ + HTTP_SERVICE_CONFIG_QUERY_TYPE QueryDesc; + HTTP_SERVICE_CONFIG_SSL_KEY_EX KeyDesc; + DWORD dwToken; + HTTP_SSL_SERVICE_CONFIG_EX_PARAM_TYPE ParamType; +} HTTP_SERVICE_CONFIG_SSL_QUERY_EX, *PHTTP_SERVICE_CONFIG_SSL_QUERY_EX; + +typedef struct _HTTP_SERVICE_CONFIG_SSL_SNI_QUERY_EX +{ + HTTP_SERVICE_CONFIG_QUERY_TYPE QueryDesc; + HTTP_SERVICE_CONFIG_SSL_SNI_KEY KeyDesc; + DWORD dwToken; + HTTP_SSL_SERVICE_CONFIG_EX_PARAM_TYPE ParamType; +} HTTP_SERVICE_CONFIG_SSL_SNI_QUERY_EX, *PHTTP_SERVICE_CONFIG_SSL_SNI_QUERY_EX; + +typedef struct _HTTP_SERVICE_CONFIG_SSL_CCS_QUERY_EX +{ + HTTP_SERVICE_CONFIG_QUERY_TYPE QueryDesc; + HTTP_SERVICE_CONFIG_SSL_CCS_KEY KeyDesc; + DWORD dwToken; + HTTP_SSL_SERVICE_CONFIG_EX_PARAM_TYPE ParamType; +} HTTP_SERVICE_CONFIG_SSL_CCS_QUERY_EX, *PHTTP_SERVICE_CONFIG_SSL_CCS_QUERY_EX; + +#endif + +// +// Set/Delete IP Listen-Only List record +// +// Used as a parameter to both HttpSetServiceConfiguration() and +// HttpDeleteServiceConfiguration() functions. +// + +typedef struct _HTTP_SERVICE_CONFIG_IP_LISTEN_PARAM +{ + USHORT AddrLength; + PSOCKADDR pAddress; +} HTTP_SERVICE_CONFIG_IP_LISTEN_PARAM, *PHTTP_SERVICE_CONFIG_IP_LISTEN_PARAM; + +// +// Query IP Listen-Only List record. +// +// Parameter to HttpQueryServiceConfiguration() for the config ID +// HttpServiceConfigIPListenList. On successful return, AddrList +// contains an array of AddrCount elements. Caller must provide a +// large enough buffer to hold all elements in one call. +// +// Caller may determine the type of each returned element by examining +// AddrList[i].ss_family. If it's AF_INET, use ((PSOCKADDR_IN) &AddrList[i]); +// otherwise, for AF_INET6, use ((PSOCKADDR_IN6) &AddrList[i]) +// to select the appropriate address type. +// + +typedef struct _HTTP_SERVICE_CONFIG_IP_LISTEN_QUERY +{ + ULONG AddrCount; + SOCKADDR_STORAGE AddrList[ANYSIZE_ARRAY]; +} HTTP_SERVICE_CONFIG_IP_LISTEN_QUERY, *PHTTP_SERVICE_CONFIG_IP_LISTEN_QUERY; + +// +// URL ACL +// +// +typedef struct _HTTP_SERVICE_CONFIG_URLACL_KEY +{ + PWSTR pUrlPrefix; + +} HTTP_SERVICE_CONFIG_URLACL_KEY, *PHTTP_SERVICE_CONFIG_URLACL_KEY; + +// +// This defines a record for the SSL config store. +// + +typedef struct _HTTP_SERVICE_CONFIG_URLACL_PARAM +{ + PWSTR pStringSecurityDescriptor; +} HTTP_SERVICE_CONFIG_URLACL_PARAM, *PHTTP_SERVICE_CONFIG_URLACL_PARAM; + + +// +// This data structure is used by HttpSetServiceConfiguration for the config ID +// HttpServiceConfigUrlAclInfo. It is used to add a new record to the URL ACL +// store. +// + +typedef struct _HTTP_SERVICE_CONFIG_URLACL_SET +{ + HTTP_SERVICE_CONFIG_URLACL_KEY KeyDesc; + HTTP_SERVICE_CONFIG_URLACL_PARAM ParamDesc; +} HTTP_SERVICE_CONFIG_URLACL_SET, *PHTTP_SERVICE_CONFIG_URLACL_SET; + + +// +// This data structure is used by HttpQueryServiceConfiguration() for the +// config ID HttpServiceConfigUrlAclInfo. It's used to query a particular +// record from the URL ACL store. +// +// If QueryType is HttpServiceConfigQueryExact, then one particular record of +// the type HTTP_SERVICE_CONFIG_URLACL_SET is returned. If the QueryType is +// HttpServiceConfigQueryNext, then the next instance of +// HTTP_SERVICE_CONFIG_URLACL_SET is returned. In such cases, the dwToken field +// represents the cursor. For the first item, dwToken has to be 0. +// For subsequent items, dwToken has to be incremented by 1, +// until ERROR_NO_MORE_ITEMS is returned. +// + +typedef struct _HTTP_SERVICE_CONFIG_URLACL_QUERY +{ + HTTP_SERVICE_CONFIG_QUERY_TYPE QueryDesc; + HTTP_SERVICE_CONFIG_URLACL_KEY KeyDesc; + DWORD dwToken; +} HTTP_SERVICE_CONFIG_URLACL_QUERY, *PHTTP_SERVICE_CONFIG_URLACL_QUERY; + +// +// Cache Paramemers +// + +// +// For manipulating global cache parameters. +// The parameters that can be changed or queued are per-uri cache size +// and cached range chunk size. +// + +typedef enum _HTTP_SERVICE_CONFIG_CACHE_KEY +{ + MaxCacheResponseSize = 0, + CacheRangeChunkSize +} HTTP_SERVICE_CONFIG_CACHE_KEY, *PHTTP_SERVICE_CONFIG_CACHE_KEY; + +typedef ULONG HTTP_SERVICE_CONFIG_CACHE_PARAM, + *PHTTP_SERVICE_CONFIG_CACHE_PARAM; + +// +// To set a cache parameter value use the set structure. To query use the key +// directly. When you query a parameter value the output buffer must be exactly +// the sizeof param. +// + +typedef struct { + HTTP_SERVICE_CONFIG_CACHE_KEY KeyDesc; + HTTP_SERVICE_CONFIG_CACHE_PARAM ParamDesc; +} HTTP_SERVICE_CONFIG_CACHE_SET, *PHTTP_SERVICE_CONFIG_CACHE_SET; + +// +// Input types for HttpQueryRequestProperty. Only types are public and not the API +// so that IIS need not have their own types for public usage. +// + +typedef enum _HTTP_REQUEST_PROPERTY +{ + HttpRequestPropertyIsb, + HttpRequestPropertyTcpInfoV0, + HttpRequestPropertyQuicStats, + HttpRequestPropertyTcpInfoV1, + HttpRequestPropertySni, + HttpRequestPropertyStreamError, + HttpRequestPropertyWskApiTimings, + HttpRequestPropertyQuicApiTimings, + HttpRequestPropertyQuicStatsV2, + HttpRequestPropertyQuicStreamStats, + HttpRequestPropertyTcpInfoV2, + HttpRequestPropertyTlsClientHello, + HttpRequestPropertyTransportIdleConnectionTimeout, + HttpRequestPropertyDscpTag, + HttpRequestPropertyTlsCipherInfo, +} HTTP_REQUEST_PROPERTY, *PHTTP_REQUEST_PROPERTY; + +typedef struct _HTTP_QUERY_REQUEST_QUALIFIER_TCP +{ + ULONGLONG Freshness; +} HTTP_QUERY_REQUEST_QUALIFIER_TCP, *PHTTP_QUERY_REQUEST_QUALIFIER_TCP; + +typedef struct _HTTP_QUERY_REQUEST_QUALIFIER_QUIC +{ + ULONGLONG Freshness; +} HTTP_QUERY_REQUEST_QUALIFIER_QUIC, *PHTTP_QUERY_REQUEST_QUALIFIER_QUIC; + +#define HTTP_REQUEST_PROPERTY_SNI_HOST_MAX_LENGTH 255 + +// +// Flags inside HTTP_REQUEST_PROPERTY_SNI can have following values: +// - HTTP_REQUEST_PROPERTY_SNI_FLAG_SNI_USED: Indicates that SNI was used for succesful +// endpoint lookup during handshake. If client sent the SNI but Http.sys still decided to +// use IP endpoint binding then this flag will not be set. +// - HTTP_REQUEST_PROPERTY_SNI_FLAG_NO_SNI: Indicates that client did not send the SNI. +// If this flag is set, HTTP_REQUEST_PROPERTY_SNI_FLAG_SNI_USED can not be set. +// + +#define HTTP_REQUEST_PROPERTY_SNI_FLAG_SNI_USED 0x00000001 +#define HTTP_REQUEST_PROPERTY_SNI_FLAG_NO_SNI 0x00000002 + +typedef struct _HTTP_REQUEST_PROPERTY_SNI +{ + WCHAR Hostname[HTTP_REQUEST_PROPERTY_SNI_HOST_MAX_LENGTH + 1]; + ULONG Flags; +} HTTP_REQUEST_PROPERTY_SNI, *PHTTP_REQUEST_PROPERTY_SNI; + +typedef struct _HTTP_REQUEST_PROPERTY_STREAM_ERROR +{ + ULONG ErrorCode; +} HTTP_REQUEST_PROPERTY_STREAM_ERROR, *PHTTP_REQUEST_PROPERTY_STREAM_ERROR; + +typedef struct _HTTP_WSK_API_TIMINGS +{ + ULONGLONG ConnectCount; + ULONGLONG ConnectSum; + ULONGLONG DisconnectCount; + ULONGLONG DisconnectSum; + + ULONGLONG SendCount; + ULONGLONG SendSum; + ULONGLONG ReceiveCount; + ULONGLONG ReceiveSum; + + ULONGLONG ReleaseCount; + ULONGLONG ReleaseSum; + + ULONGLONG ControlSocketCount; + ULONGLONG ControlSocketSum; +} HTTP_WSK_API_TIMINGS, *PHTTP_WSK_API_TIMINGS; + +typedef struct _HTTP_QUIC_STREAM_API_TIMINGS +{ + ULONGLONG OpenCount; + ULONGLONG OpenSum; + ULONGLONG CloseCount; + ULONGLONG CloseSum; + + ULONGLONG StartCount; + ULONGLONG StartSum; + ULONGLONG ShutdownCount; + ULONGLONG ShutdownSum; + + ULONGLONG SendCount; + ULONGLONG SendSum; + + ULONGLONG ReceiveSetEnabledCount; + ULONGLONG ReceiveSetEnabledSum; + + ULONGLONG GetParamCount; + ULONGLONG GetParamSum; + + ULONGLONG SetParamCount; + ULONGLONG SetParamSum; + + ULONGLONG SetCallbackHandlerCount; + ULONGLONG SetCallbackHandlerSum; + +} HTTP_QUIC_STREAM_API_TIMINGS, *PHTTP_QUIC_STREAM_API_TIMINGS; + +typedef struct _HTTP_QUIC_CONNECTION_API_TIMINGS +{ + ULONGLONG OpenTime; + ULONGLONG CloseTime; + + ULONGLONG StartTime; + ULONGLONG ShutdownTime; + + ULONGLONG SecConfigCreateTime; + ULONGLONG SecConfigDeleteTime; + + ULONGLONG GetParamCount; + ULONGLONG GetParamSum; + + ULONGLONG SetParamCount; + ULONGLONG SetParamSum; + + ULONGLONG SetCallbackHandlerCount; + ULONGLONG SetCallbackHandlerSum; + + HTTP_QUIC_STREAM_API_TIMINGS ControlStreamTimings; + +} HTTP_QUIC_CONNECTION_API_TIMINGS, *PHTTP_QUIC_CONNECTION_API_TIMINGS; + +typedef struct _HTTP_QUIC_API_TIMINGS +{ + HTTP_QUIC_CONNECTION_API_TIMINGS ConnectionTimings; + HTTP_QUIC_STREAM_API_TIMINGS StreamTimings; + +} HTTP_QUIC_API_TIMINGS, *PHTTP_QUIC_API_TIMINGS; + +typedef struct _HTTP_QUIC_STREAM_REQUEST_STATS +{ + ULONGLONG StreamWaitStart; + ULONGLONG StreamWaitEnd; + + ULONGLONG RequestHeadersCompressionStart; + ULONGLONG RequestHeadersCompressionEnd; + + ULONGLONG ResponseHeadersDecompressionStart; + ULONGLONG ResponseHeadersDecompressionEnd; + + ULONGLONG RequestHeadersCompressedSize; + ULONGLONG ResponseHeadersCompressedSize; + +} HTTP_QUIC_STREAM_REQUEST_STATS, *PHTTP_QUIC_STREAM_REQUEST_STATS; + +#define HTTP_QUIC_KEEPALIVE_TIMEOUT_DISABLED ((ULONG)-1) + +typedef enum _HTTP_FEATURE_ID +{ + HttpFeatureUnknown = 0, + HttpFeatureResponseTrailers = 1, + HttpFeatureApiTimings = 2, + HttpFeatureDelegateEx = 3, + HttpFeatureHttp3 = 4, + HttpFeatureTlsSessionTickets = 5, + HttpFeatureDisableTlsSessionId = 6, + HttpFeatureTlsDualCerts = 7, + HttpFeatureAutomaticChunkedEncoding = 8, + HttpFeatureDedicatedReqQueueDelegationType = 9, + HttpFeatureFastForwardResponse = 10, + HttpFeatureCacheTlsClientHello = 11, + HttpFeatureIdleConnectionTimeoutRequestProperty = 12, + HttpFeatureDisableAiaFlag = 13, + HttpFeatureDscp = 14, + HttpFeatureQueryCipherInfo = 15, + HttpFeatureQueryInitialPacketTtl = 16, + HttpFeatureTlsHandshakePerformanceCounters = 17, + HttpFeatureLast = 18, + + + HttpFeaturemax = 0xFFFFFFFF, + +} HTTP_FEATURE_ID, *PHTTP_FEATURE_ID; + + +// +// Define our API linkage. +// + +#if !defined(HTTPAPI_LINKAGE) +#define HTTPAPI_LINKAGE DECLSPEC_IMPORT +#endif // !HTTPAPI_LINKAGE + +// +// Initialize/Terminate APIs. +// + + +// NOTE: MUST be called once before all other APIs + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpInitialize( + IN HTTPAPI_VERSION Version, + IN ULONG Flags, + _Reserved_ IN OUT PVOID pReserved + ); + +// NOTE: MUST be called after final API call returns. + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpTerminate( + IN ULONG Flags, + _Reserved_ IN OUT PVOID pReserved + ); + +// +// HTTP Request Queue manipulation APIs. +// +// This API is maintained for backward competibility for the first +// version of the HTTPAPI and should not be used. Instead the new +// HttpCreateRequestQueue() API must be used. +// +// Use CloseHandle() to release the handles returned by +// HttpCreateHttpHandle() API. +// + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpCreateHttpHandle( + OUT PHANDLE RequestQueueHandle, + _Reserved_ ULONG Reserved + ); + +#if _WIN32_WINNT >= 0x0600 + +// +// Extended Request Queue manipulation APIs. +// +// Use HttpCloseRequestQueue() API to close the handles +// created by the HttpCreateRequestQueue API. +// + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpCreateRequestQueue( + IN HTTPAPI_VERSION Version, + IN PCWSTR Name OPTIONAL, + IN PSECURITY_ATTRIBUTES SecurityAttributes OPTIONAL, + IN ULONG Flags OPTIONAL, + OUT PHANDLE RequestQueueHandle + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpCloseRequestQueue( + IN HANDLE RequestQueueHandle + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpSetRequestQueueProperty( + _In_ HANDLE RequestQueueHandle, + _In_ HTTP_SERVER_PROPERTY Property, + _In_reads_bytes_(PropertyInformationLength) PVOID PropertyInformation, + _In_ ULONG PropertyInformationLength, + _Reserved_ ULONG Reserved1, + _Reserved_ PVOID Reserved2 + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpQueryRequestQueueProperty( + _In_ HANDLE RequestQueueHandle, + _In_ HTTP_SERVER_PROPERTY Property, + _Out_writes_bytes_to_opt_(PropertyInformationLength, *ReturnLength) PVOID PropertyInformation, + _In_ ULONG PropertyInformationLength, + _Reserved_ ULONG Reserved1, + _Out_opt_ PULONG ReturnLength, + _Reserved_ PVOID Reserved2 + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpSetRequestProperty( + _In_ HANDLE RequestQueueHandle, + _In_ HTTP_OPAQUE_ID Id, + _In_ HTTP_REQUEST_PROPERTY PropertyId, + _In_reads_bytes_opt_(InputPropertySize) PVOID Input, + _In_ ULONG InputPropertySize, + _In_ LPOVERLAPPED Overlapped + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpQueryRequestProperty( + _In_ HANDLE RequestQueueHandle, + _In_ HTTP_OPAQUE_ID Id, + _In_ HTTP_REQUEST_PROPERTY PropertyId, + _In_reads_bytes_opt_(QualifierSize) const VOID *Qualifier, + _In_ ULONG QualifierSize, + _Out_writes_bytes_to_opt_(OutputBufferSize, *BytesReturned) PVOID Output, + _In_ ULONG OutputBufferSize, + _Out_opt_ PULONG BytesReturned, + _In_opt_ LPOVERLAPPED Overlapped + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpShutdownRequestQueue( + IN HANDLE RequestQueueHandle + ); + +#endif // _WIN32_WINNT >= 0x0600 + +// +// SSL APIs. +// + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpReceiveClientCertificate( + IN HANDLE RequestQueueHandle, + IN HTTP_CONNECTION_ID ConnectionId, + IN ULONG Flags, + _Out_writes_bytes_to_(SslClientCertInfoSize, *BytesReceived) PHTTP_SSL_CLIENT_CERT_INFO SslClientCertInfo, + IN ULONG SslClientCertInfoSize, + _Out_opt_ PULONG BytesReceived, + IN LPOVERLAPPED Overlapped OPTIONAL + ); + +#if _WIN32_WINNT >= 0x0600 + +// +// Server Session APIs. +// + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpCreateServerSession( + IN HTTPAPI_VERSION Version, + OUT PHTTP_SERVER_SESSION_ID ServerSessionId, + _Reserved_ IN ULONG Reserved + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpCloseServerSession( + IN HTTP_SERVER_SESSION_ID ServerSessionId + ); + +HTTPAPI_LINKAGE +_Success_(return == NO_ERROR) +ULONG +WINAPI +HttpQueryServerSessionProperty( + IN HTTP_SERVER_SESSION_ID ServerSessionId, + IN HTTP_SERVER_PROPERTY Property, + _Out_writes_bytes_to_opt_(PropertyInformationLength, *ReturnLength) PVOID PropertyInformation, + IN ULONG PropertyInformationLength, + _Out_opt_ PULONG ReturnLength + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpSetServerSessionProperty( + IN HTTP_SERVER_SESSION_ID ServerSessionId, + IN HTTP_SERVER_PROPERTY Property, + _In_reads_bytes_(PropertyInformationLength) PVOID PropertyInformation, + IN ULONG PropertyInformationLength + ); + +#endif // _WIN32_WINNT >= 0x0600 + +// +// Url Configuration APIs. Can only be used for V1 request queues. +// + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpAddUrl( + IN HANDLE RequestQueueHandle, + IN PCWSTR FullyQualifiedUrl, + _Reserved_ PVOID Reserved + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpRemoveUrl( + IN HANDLE RequestQueueHandle, + IN PCWSTR FullyQualifiedUrl + ); + +#if _WIN32_WINNT >= 0x0600 + +// +// Url Group APIs. +// + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpCreateUrlGroup( + IN HTTP_SERVER_SESSION_ID ServerSessionId, + OUT PHTTP_URL_GROUP_ID pUrlGroupId, + _Reserved_ IN ULONG Reserved + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpCloseUrlGroup( + IN HTTP_URL_GROUP_ID UrlGroupId + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpAddUrlToUrlGroup( + IN HTTP_URL_GROUP_ID UrlGroupId, + IN PCWSTR pFullyQualifiedUrl, + IN HTTP_URL_CONTEXT UrlContext OPTIONAL, + _Reserved_ IN ULONG Reserved + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpRemoveUrlFromUrlGroup( + IN HTTP_URL_GROUP_ID UrlGroupId, + IN PCWSTR pFullyQualifiedUrl, + IN ULONG Flags + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpSetUrlGroupProperty( + IN HTTP_URL_GROUP_ID UrlGroupId, + IN HTTP_SERVER_PROPERTY Property, + _In_reads_bytes_(PropertyInformationLength) PVOID PropertyInformation, + IN ULONG PropertyInformationLength + ); + +HTTPAPI_LINKAGE +_Success_(return == NO_ERROR) +ULONG +WINAPI +HttpQueryUrlGroupProperty( + IN HTTP_URL_GROUP_ID UrlGroupId, + IN HTTP_SERVER_PROPERTY Property, + _Out_writes_bytes_to_opt_(PropertyInformationLength, *ReturnLength) PVOID PropertyInformation, + IN ULONG PropertyInformationLength, + _Out_opt_ PULONG ReturnLength + ); + +#endif // _WIN32_WINNT >= 0x0600 + +#if _WIN32_WINNT >= _WIN32_WINNT_WIN8 + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpPrepareUrl( + _Reserved_ PVOID Reserved, + _Reserved_ ULONG Flags, + _In_ PCWSTR Url, + _Outptr_ PWSTR *PreparedUrl + ); + +#endif + +// +// HTTP Server I/O APIs. +// + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpReceiveHttpRequest( + IN HANDLE RequestQueueHandle, + IN HTTP_REQUEST_ID RequestId, + IN ULONG Flags, + _Out_writes_bytes_to_(RequestBufferLength, *BytesReturned) PHTTP_REQUEST RequestBuffer, + IN ULONG RequestBufferLength, + _Out_opt_ PULONG BytesReturned, + IN LPOVERLAPPED Overlapped OPTIONAL + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpReceiveRequestEntityBody( + IN HANDLE RequestQueueHandle, + IN HTTP_REQUEST_ID RequestId, + IN ULONG Flags, + _Out_writes_bytes_to_(EntityBufferLength, *BytesReturned) PVOID EntityBuffer, + IN ULONG EntityBufferLength, + _Out_opt_ PULONG BytesReturned, + IN LPOVERLAPPED Overlapped OPTIONAL + ); + +#if _WIN32_WINNT >= 0x0600 + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpSendHttpResponse( + IN HANDLE RequestQueueHandle, + IN HTTP_REQUEST_ID RequestId, + IN ULONG Flags, + IN PHTTP_RESPONSE HttpResponse, + IN PHTTP_CACHE_POLICY CachePolicy OPTIONAL, + OUT PULONG BytesSent OPTIONAL, + _Reserved_ PVOID Reserved1, + _Reserved_ ULONG Reserved2, + IN LPOVERLAPPED Overlapped OPTIONAL, + IN PHTTP_LOG_DATA LogData OPTIONAL + ); + +#else // _WIN32_WINNT >= 0x0600 + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpSendHttpResponse( + IN HANDLE ReqQueueHandle, + IN HTTP_REQUEST_ID RequestId, + IN ULONG Flags, + IN PHTTP_RESPONSE pHttpResponse, + IN PVOID pReserved1 OPTIONAL, // must be NULL + OUT PULONG pBytesSent OPTIONAL, + _Reserved_ PVOID pReserved2, // must be NULL + _Reserved_ ULONG Reserved3, // must be 0 + IN LPOVERLAPPED pOverlapped OPTIONAL, + IN PVOID pReserved4 OPTIONAL // must be NULL + ); + +#endif // _WIN32_WINNT >= 0x0600 + +#if _WIN32_WINNT >= 0x0600 + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpSendResponseEntityBody( + IN HANDLE RequestQueueHandle, + IN HTTP_REQUEST_ID RequestId, + IN ULONG Flags, + IN USHORT EntityChunkCount OPTIONAL, + _In_reads_opt_(EntityChunkCount) PHTTP_DATA_CHUNK EntityChunks, + OUT PULONG BytesSent OPTIONAL, + _Reserved_ PVOID Reserved1 OPTIONAL, + _Reserved_ ULONG Reserved2 OPTIONAL, + IN LPOVERLAPPED Overlapped OPTIONAL, + IN PHTTP_LOG_DATA LogData OPTIONAL + ); + +#else // _WIN32_WINNT >= 0x0600 + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpSendResponseEntityBody( + IN HANDLE ReqQueueHandle, + IN HTTP_REQUEST_ID RequestId, + IN ULONG Flags, + IN USHORT EntityChunkCount OPTIONAL, + _In_reads_opt_(EntityChunkCount) + IN PHTTP_DATA_CHUNK pEntityChunks OPTIONAL, + OUT PULONG pBytesSent OPTIONAL, + _Reserved_ PVOID pReserved1 OPTIONAL, // must be NULL + _Reserved_ ULONG Reserved2 OPTIONAL, // must be 0 + IN LPOVERLAPPED pOverlapped OPTIONAL, + IN PVOID pReserved3 OPTIONAL // must be NULL + ); + +#endif // _WIN32_WINNT >= 0x0600 + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpDeclarePush( + _In_ HANDLE RequestQueueHandle, + _In_ HTTP_REQUEST_ID RequestId, + _In_ HTTP_VERB Verb, + _In_ PCWSTR Path, + _In_opt_ PCSTR Query, + _In_opt_ PHTTP_REQUEST_HEADERS Headers + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpWaitForDisconnect( + IN HANDLE RequestQueueHandle, + IN HTTP_CONNECTION_ID ConnectionId, + IN LPOVERLAPPED Overlapped OPTIONAL + ); + +#if _WIN32_WINNT >= 0x0600 + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpWaitForDisconnectEx( + IN HANDLE RequestQueueHandle, + IN HTTP_CONNECTION_ID ConnectionId, + _Reserved_ IN ULONG Reserved OPTIONAL, + IN LPOVERLAPPED Overlapped OPTIONAL + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpCancelHttpRequest( + IN HANDLE RequestQueueHandle, + IN HTTP_REQUEST_ID RequestId, + IN LPOVERLAPPED Overlapped OPTIONAL + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpWaitForDemandStart( + IN HANDLE RequestQueueHandle, + IN LPOVERLAPPED Overlapped OPTIONAL + ); + +BOOL +WINAPI +HttpIsFeatureSupported( + _In_ HTTP_FEATURE_ID FeatureId + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpDelegateRequestEx( + _In_ HANDLE RequestQueueHandle, + _In_ HANDLE DelegateQueueHandle, + _In_ HTTP_REQUEST_ID RequestId, + _In_ HTTP_URL_GROUP_ID DelegateUrlGroupId, + _In_ ULONG PropertyInfoSetSize, + _In_ PHTTP_DELEGATE_REQUEST_PROPERTY_INFO PropertyInfoSet + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpFindUrlGroupId( + _In_ PCWSTR FullyQualifiedUrl, + _In_ HANDLE RequestQueueHandle, + _Out_ PHTTP_URL_GROUP_ID UrlGroupId + ); + + +#endif // _WIN32_WINNT >= 0x0600 + +// +// Cache manipulation APIs. +// + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpFlushResponseCache( + IN HANDLE RequestQueueHandle, + IN PCWSTR UrlPrefix, + IN ULONG Flags, + IN LPOVERLAPPED Overlapped OPTIONAL + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpAddFragmentToCache( + IN HANDLE RequestQueueHandle, + IN PCWSTR UrlPrefix, + IN PHTTP_DATA_CHUNK DataChunk, + IN PHTTP_CACHE_POLICY CachePolicy, + IN LPOVERLAPPED Overlapped OPTIONAL + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpReadFragmentFromCache( + IN HANDLE RequestQueueHandle, + IN PCWSTR UrlPrefix, + IN PHTTP_BYTE_RANGE ByteRange OPTIONAL, + _Out_writes_bytes_to_(BufferLength, *BytesRead) PVOID Buffer, + IN ULONG BufferLength, + _Out_opt_ PULONG BytesRead, + IN LPOVERLAPPED Overlapped OPTIONAL + ); + +// +// Server configuration APIs +// + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpSetServiceConfiguration( + _Reserved_ HANDLE ServiceHandle, + _In_ HTTP_SERVICE_CONFIG_ID ConfigId, + _In_reads_bytes_(ConfigInformationLength) PVOID pConfigInformation, + _In_ ULONG ConfigInformationLength, + _Reserved_ LPOVERLAPPED pOverlapped + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpUpdateServiceConfiguration( + _Reserved_ HANDLE Handle, + _In_ HTTP_SERVICE_CONFIG_ID ConfigId, + _In_reads_bytes_(ConfigInfoLength) PVOID ConfigInfo, + _In_ ULONG ConfigInfoLength, + _Reserved_ LPOVERLAPPED Overlapped + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpDeleteServiceConfiguration( + _Reserved_ HANDLE ServiceHandle, + _In_ HTTP_SERVICE_CONFIG_ID ConfigId, + _In_reads_bytes_(ConfigInformationLength) PVOID pConfigInformation, + _In_ ULONG ConfigInformationLength, + _Reserved_ LPOVERLAPPED pOverlapped + ); + +HTTPAPI_LINKAGE +ULONG +WINAPI +HttpQueryServiceConfiguration( + _Reserved_ HANDLE ServiceHandle, + _In_ HTTP_SERVICE_CONFIG_ID ConfigId, + _In_reads_bytes_opt_(InputLength) PVOID pInput, + _In_ ULONG InputLength, + _Out_writes_bytes_to_opt_(OutputLength, *pReturnLength) PVOID pOutput, + _In_ ULONG OutputLength, + _Out_opt_ PULONG pReturnLength, + _Reserved_ LPOVERLAPPED pOverlapped + ); + +ULONG +WINAPI +HttpGetExtension( + __in HTTPAPI_VERSION Version, + __in ULONG Extension, + __out PVOID __bcount(BufferSize) Buffer, + __in ULONG BufferSize + ); + + +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus + +#endif // _WIN32_WINNT >= 0x0501 + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __HTTP_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/httpcach.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httpcach.h new file mode 100644 index 0000000000000000000000000000000000000000..a5a757e57423e8d815a31b39b5b0317b3c862e70 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httpcach.h @@ -0,0 +1,134 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#ifndef _HTTPCACH_H_ +#define _HTTPCACH_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Key and data for uri-cache +// + +#define URI_CACHE_NAME L"URI" + +class __declspec(uuid("f1bc4f8c-6bf8-42c0-b745-4fbe1a67e5a7")) +IUriKey : public IHttpCacheKey +{ +public: + + PCWSTR + GetCacheName( + VOID + ) const + { + return URI_CACHE_NAME; + } + + virtual + PCWSTR + GetUrl( + VOID + ) const = 0; + + virtual + PCWSTR + GetSiteName( + VOID + ) const = 0; + + virtual + DWORD + GetSiteId( + VOID + ) const = 0; + + virtual + VOID + UpdateFrequentlyHitTickCount( + DWORD dwTicks + ) = 0; + + virtual + PCWSTR + GetConfigPath( + VOID + ) const = 0; +}; + +// +// Key and data for file-cache +// + +#define FILE_CACHE_NAME L"FILE" + +class __declspec(uuid("7377f6a4-266c-4043-b62a-9ea955a5e97a")) +IFileKey : public IHttpCacheKey +{ +public: + + PCWSTR + GetCacheName( + VOID + ) const + { + return FILE_CACHE_NAME; + } + + virtual + PCWSTR + GetPath( + VOID + ) const = 0; +}; + +// +// Key and data for token-cache +// + +#define TOKEN_CACHE_NAME L"TOKEN" + +class __declspec(uuid("1d3dc8cb-fc52-42bc-97e1-1bf02136e8ba")) +IHttpTokenKey : public IHttpCacheKey +{ +public: + + PCWSTR + GetCacheName( + VOID + ) const + { + return TOKEN_CACHE_NAME; + } + + virtual + PCWSTR + GetUserName( + VOID + ) const = 0; + + virtual + PCWSTR + GetPasswordHash( + VOID + ) const = 0; + + // + // Return the LOGON32_LOGON_* method used when logging on the user + // + + virtual + DWORD + GetLogonMethod( + VOID + ) const = 0; +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/httpcompression.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httpcompression.h new file mode 100644 index 0000000000000000000000000000000000000000..0416fa0c1a9b3ebbcee93d98035dad54bd4f1080 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httpcompression.h @@ -0,0 +1,130 @@ +#ifndef _HTTP_COMPRESSION_H_ +#define _HTTP_COMPRESSION_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/*++ + + Copyright (c) 2009 Microsoft Corporation + + Module Name: + + httpcompression.h + + Abstract: + + Definition of extensibility APIs required + to write a compression scheme for IIS + +--*/ + +// +// Compression operation for Compress2 +// +// +// Process input data. +// The encoder may choose to buffer the data and postpone flushing output. +// +#define IIS_COMPRESSION_OPERATION_PROCESS 0 + +// +// Flush all pending output data buffered in the encoder. +// Flush is performed when the available input data is depleted. +// +#define IIS_COMPRESSION_OPERATION_FLUSH 1 + +// +// Finalize the stream. +// Finalization happens when the input stream reaches the end. +// +#define IIS_COMPRESSION_OPERATION_FINISH 2 + +// +// Initialize compression scheme +// When used with IIS, InitCompression is called once as soon +// as compression scheme dll is loaded by IIS compression module +// +HRESULT +WINAPI +InitCompression( + VOID +); + +// +// Uninitialize compression scheme +// When used with IIS, this method is called before compression +// scheme dll is unloaded by IIS compression module +// +VOID +WINAPI +DeInitCompression( + VOID +); + +// +// Create a new compression context +// +HRESULT +WINAPI +CreateCompression( + OUT PVOID *context, + IN ULONG reserved +); + +// +// Compress data +// +HRESULT WINAPI Compress( + IN OUT PVOID context, // compression context + IN CONST BYTE * input_buffer, // input buffer + IN LONG input_buffer_size, // size of input buffer + IN PBYTE output_buffer, // output buffer + IN LONG output_buffer_size, // size of output buffer + OUT PLONG input_used, // amount of input buffer used + OUT PLONG output_used, // amount of output buffer used + IN INT compression_level // compression level +); + +// +// Compress data with a given compression operation +// +HRESULT WINAPI Compress2( + IN OUT PVOID context, // compression context + IN CONST BYTE * input_buffer, // input buffer + IN LONG input_buffer_size, // size of input buffer + IN PBYTE output_buffer, // output buffer + IN LONG output_buffer_size, // size of output buffer + OUT PLONG input_used, // amount of input buffer used + OUT PLONG output_used, // amount of output buffer used + IN INT compression_level, // compression level + IN INT operation // compression operation +); + +// +// Destroy compression context +// +VOID +WINAPI +DestroyCompression( + IN PVOID context +); + +// +// Reset compression state +// Required export but not used on Windows Vista and Windows Server 2008 - IIS 7.0 +// Deprecated and not required export for Windows 7 and Windows Server 2008 R2 - IIS 7.5 +// +HRESULT +WINAPI +ResetCompression( + IN OUT PVOID context +); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _HTTP_COMPRESSION_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/httprequest.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httprequest.idl new file mode 100644 index 0000000000000000000000000000000000000000..8bd599b694d6b6d43586fc7063ae114445f4760c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httprequest.idl @@ -0,0 +1,218 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows HTTP Services (WinHTTP) +// Copyright (C) Microsoft Corporation. All rights reserved. +// +// File: httprequest.idl +// +//-------------------------------------------------------------------------- + + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows HTTP Services (WinHTTP) version 5.1") +cpp_quote("// Copyright (C) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") + +cpp_quote("#include ") + +#pragma region Desktop Family or OneCore Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)") + +#include "httprequestid.h" + + + + +[ + uuid(662901fc-6951-4854-9eb2-d9a2570f2b2e), + helpstring("Microsoft WinHTTP Services, version 5.1"), + lcid(0x0000), + version(5.1) + +] +library WinHttp +{ + importlib ("stdole2.tlb"); + + typedef [public] long HTTPREQUEST_PROXY_SETTING; + const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_DEFAULT = 0x00000000; + const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_PRECONFIG = 0x00000000; + const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_DIRECT = 0x00000001; + const HTTPREQUEST_PROXY_SETTING HTTPREQUEST_PROXYSETTING_PROXY = 0x00000002; + + typedef [public] long HTTPREQUEST_SETCREDENTIALS_FLAGS; + const HTTPREQUEST_SETCREDENTIALS_FLAGS HTTPREQUEST_SETCREDENTIALS_FOR_SERVER = 0x00000000; + const HTTPREQUEST_SETCREDENTIALS_FLAGS HTTPREQUEST_SETCREDENTIALS_FOR_PROXY = 0x00000001; + + typedef + [uuid(12782009-FE90-4877-9730-E5E183669B19), helpstring("WinHttpRequest Options")] + enum WinHttpRequestOption + { + WinHttpRequestOption_UserAgentString, + WinHttpRequestOption_URL, + WinHttpRequestOption_URLCodePage, + WinHttpRequestOption_EscapePercentInURL, + WinHttpRequestOption_SslErrorIgnoreFlags, + WinHttpRequestOption_SelectCertificate, + WinHttpRequestOption_EnableRedirects, + WinHttpRequestOption_UrlEscapeDisable, + WinHttpRequestOption_UrlEscapeDisableQuery, + WinHttpRequestOption_SecureProtocols, + WinHttpRequestOption_EnableTracing, + WinHttpRequestOption_RevertImpersonationOverSsl, + WinHttpRequestOption_EnableHttpsToHttpRedirects, + WinHttpRequestOption_EnablePassportAuthentication, + WinHttpRequestOption_MaxAutomaticRedirects, + WinHttpRequestOption_MaxResponseHeaderSize, + WinHttpRequestOption_MaxResponseDrainSize, + WinHttpRequestOption_EnableHttp1_1, + WinHttpRequestOption_EnableCertificateRevocationCheck, + WinHttpRequestOption_RejectUserpwd + } WinHttpRequestOption; + + typedef + [uuid(9d8a6df8-13de-4b1f-a330-67c719d62514)] + enum WinHttpRequestAutoLogonPolicy + { + AutoLogonPolicy_Always, + AutoLogonPolicy_OnlyIfBypassProxy, + AutoLogonPolicy_Never + } WinHttpRequestAutoLogonPolicy; + + typedef + [uuid(152a1ca2-55a9-43a3-b187-0605bb886349)] + enum WinHttpRequestSslErrorFlags + { + SslErrorFlag_UnknownCA = 0x00000100, + SslErrorFlag_CertWrongUsage = 0x00000200, + SslErrorFlag_CertCNInvalid = 0x00001000, + SslErrorFlag_CertDateInvalid = 0x00002000, + SslErrorFlag_Ignore_All = 0x00003300 + } WinHttpRequestSslErrorFlags; + + + typedef + [uuid(6b2c51c1-a8ea-46bd-b928-c9b76f9f14dd)] + enum WinHttpRequestSecureProtocols + { + SecureProtocol_SSL2 = 0x00000008, + SecureProtocol_SSL3 = 0x00000020, + SecureProtocol_TLS1 = 0x00000080, + SecureProtocol_TLS1_1 = 0x00000200, + SecureProtocol_TLS1_2 = 0x00000800, + SecureProtocol_ALL = 0x000000A8 + } WinHttpRequestSecureProtocols; + + + [ + object, + uuid(016fe2ec-b2c8-45f8-b23b-39e53a75396b), + odl, + dual, + oleautomation, + nonextensible, + helpstring("IWinHttpRequest Interface"), + pointer_default(unique) + ] + interface IWinHttpRequest : IDispatch + { + [id(DISPID_HTTPREQUEST_SETPROXY), helpstring("Specify proxy configuration")] + HRESULT SetProxy([in] HTTPREQUEST_PROXY_SETTING ProxySetting, + [in, optional] VARIANT ProxyServer, + [in, optional] VARIANT BypassList); + + [id(DISPID_HTTPREQUEST_SETCREDENTIALS), helpstring("Specify authentication credentials")] + HRESULT SetCredentials([in] BSTR UserName, + [in] BSTR Password, + [in] HTTPREQUEST_SETCREDENTIALS_FLAGS Flags); + + [id(DISPID_HTTPREQUEST_OPEN), helpstring("Open HTTP connection")] + HRESULT Open([in] BSTR Method, [in] BSTR Url, [in, optional] VARIANT Async); + + [id(DISPID_HTTPREQUEST_SETREQUESTHEADER), helpstring("Add HTTP request header")] + HRESULT SetRequestHeader([in] BSTR Header, [in] BSTR Value); + + [id(DISPID_HTTPREQUEST_GETRESPONSEHEADER), helpstring("Get HTTP response header")] + HRESULT GetResponseHeader([in] BSTR Header, [out, retval] BSTR * Value); + + [id(DISPID_HTTPREQUEST_GETALLRESPONSEHEADERS), helpstring("Get all HTTP response headers")] + HRESULT GetAllResponseHeaders([out, retval] BSTR * Headers); + + [id(DISPID_HTTPREQUEST_SEND), helpstring("Send HTTP request")] + HRESULT Send([in, optional] VARIANT Body); + + [propget, id(DISPID_HTTPREQUEST_STATUS), helpstring("Get HTTP status code")] + HRESULT Status([out, retval] long * Status); + + [propget, id(DISPID_HTTPREQUEST_STATUSTEXT), helpstring("Get HTTP status text")] + HRESULT StatusText([out, retval] BSTR * Status); + + [propget, id(DISPID_HTTPREQUEST_RESPONSETEXT), helpstring("Get response body as a string")] + HRESULT ResponseText([out, retval] BSTR * Body); + + [propget, id(DISPID_HTTPREQUEST_RESPONSEBODY), helpstring("Get response body as a safearray of UI1")] + HRESULT ResponseBody([out, retval] VARIANT * Body); + + [propget, id(DISPID_HTTPREQUEST_RESPONSESTREAM), helpstring("Get response body as a stream")] + HRESULT ResponseStream([out, retval] VARIANT * Body); + + [propget, id(DISPID_HTTPREQUEST_OPTION)] + HRESULT Option([in] WinHttpRequestOption Option, [out, retval] VARIANT * Value); + + [propput, id(DISPID_HTTPREQUEST_OPTION)] + HRESULT Option([in] WinHttpRequestOption Option, [in] VARIANT Value); + + [id(DISPID_HTTPREQUEST_WAITFORRESPONSE), helpstring("Wait for asynchronous send to complete, with optional timeout (in seconds)")] + HRESULT WaitForResponse([in, optional] VARIANT Timeout, [out, retval] VARIANT_BOOL * Succeeded); + + [id(DISPID_HTTPREQUEST_ABORT), helpstring("Abort an asynchronous operation in progress")] + HRESULT Abort(); + + [id(DISPID_HTTPREQUEST_SETTIMEOUTS), helpstring("Specify timeout settings (in milliseconds)")] + HRESULT SetTimeouts([in] long ResolveTimeout, [in] long ConnectTimeout, [in] long SendTimeout, [in] long ReceiveTimeout); + + [id(DISPID_HTTPREQUEST_SETCLIENTCERTIFICATE), helpstring("Specify a client certificate")] + HRESULT SetClientCertificate([in] BSTR ClientCertificate); + + [id(DISPID_HTTPREQUEST_SETAUTOLOGONPOLICY), helpstring("Specify if credentials should be sent automatically")] + HRESULT SetAutoLogonPolicy([in] WinHttpRequestAutoLogonPolicy AutoLogonPolicy); + }; + + [ + object, + uuid(f97f4e15-b787-4212-80d1-d380cbbf982e), + odl, + oleautomation, + nonextensible, + helpstring("IWinHttpRequestEvents Interface"), + pointer_default(unique) + ] + interface IWinHttpRequestEvents : IUnknown + { + void OnResponseStart([in] long Status, [in] BSTR ContentType); + + void OnResponseDataAvailable([in] SAFEARRAY(unsigned char) * Data); + + void OnResponseFinished(); + + void OnError([in] long ErrorNumber, [in] BSTR ErrorDescription); + }; + + + // WinHttpRequest Class + [ + uuid(2087c2f4-2cef-4953-a8ab-66779b670495), + helpstring("WinHttpRequest component") + ] + coclass WinHttpRequest + { + [default] interface IWinHttpRequest; + [default, source] interface IWinHttpRequestEvents; + }; +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/httprequestid.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httprequestid.h new file mode 100644 index 0000000000000000000000000000000000000000..712a68f44101d9d874a7cce0bbdfda939b410228 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httprequestid.h @@ -0,0 +1,43 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows HTTP Services (WinHTTP) +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- + + +#ifndef __HTTPREQUESTID_H__ +#define __HTTPREQUESTID_H__ +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#define DISPID_HTTPREQUEST_BASE 0x00000001 + + +#define DISPID_HTTPREQUEST_OPEN (DISPID_HTTPREQUEST_BASE) +#define DISPID_HTTPREQUEST_SETREQUESTHEADER (DISPID_HTTPREQUEST_BASE + 1) +#define DISPID_HTTPREQUEST_GETRESPONSEHEADER (DISPID_HTTPREQUEST_BASE + 2) +#define DISPID_HTTPREQUEST_GETALLRESPONSEHEADERS (DISPID_HTTPREQUEST_BASE + 3) +#define DISPID_HTTPREQUEST_SEND (DISPID_HTTPREQUEST_BASE + 4) +#define DISPID_HTTPREQUEST_OPTION (DISPID_HTTPREQUEST_BASE + 5) +#define DISPID_HTTPREQUEST_STATUS (DISPID_HTTPREQUEST_BASE + 6) +#define DISPID_HTTPREQUEST_STATUSTEXT (DISPID_HTTPREQUEST_BASE + 7) +#define DISPID_HTTPREQUEST_RESPONSETEXT (DISPID_HTTPREQUEST_BASE + 8) +#define DISPID_HTTPREQUEST_RESPONSEBODY (DISPID_HTTPREQUEST_BASE + 9) +#define DISPID_HTTPREQUEST_RESPONSESTREAM (DISPID_HTTPREQUEST_BASE + 10) +#define DISPID_HTTPREQUEST_ABORT (DISPID_HTTPREQUEST_BASE + 11) +#define DISPID_HTTPREQUEST_SETPROXY (DISPID_HTTPREQUEST_BASE + 12) +#define DISPID_HTTPREQUEST_SETCREDENTIALS (DISPID_HTTPREQUEST_BASE + 13) +#define DISPID_HTTPREQUEST_WAITFORRESPONSE (DISPID_HTTPREQUEST_BASE + 14) +#define DISPID_HTTPREQUEST_SETTIMEOUTS (DISPID_HTTPREQUEST_BASE + 15) +#define DISPID_HTTPREQUEST_SETCLIENTCERTIFICATE (DISPID_HTTPREQUEST_BASE + 16) +#define DISPID_HTTPREQUEST_SETAUTOLOGONPOLICY (DISPID_HTTPREQUEST_BASE + 17) + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // __HTTPREQUESTID_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/httpserv.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httpserv.h new file mode 100644 index 0000000000000000000000000000000000000000..cc37ee9a6fe2ba8983ca89cebc88b43daab6ca5b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httpserv.h @@ -0,0 +1,3913 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#ifndef _HTTPSERV_H_ +#define _HTTPSERV_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#if (!defined(_WIN64) && !defined(WIN32)) +#error httpserv.h is only supported on WIN32 or WIN64 platforms +#endif + + +#include +#include + +// +// Request deterministic notifications +// + +// request is beginning +#define RQ_BEGIN_REQUEST 0x00000001 +// request is being authenticated +#define RQ_AUTHENTICATE_REQUEST 0x00000002 +// request is being authorized +#define RQ_AUTHORIZE_REQUEST 0x00000004 +// satisfy request from cache +#define RQ_RESOLVE_REQUEST_CACHE 0x00000008 +// map handler for request +#define RQ_MAP_REQUEST_HANDLER 0x00000010 +// acquire request state +#define RQ_ACQUIRE_REQUEST_STATE 0x00000020 +// pre-execute handler +#define RQ_PRE_EXECUTE_REQUEST_HANDLER 0x00000040 +// execute handler +#define RQ_EXECUTE_REQUEST_HANDLER 0x00000080 +// release request state +#define RQ_RELEASE_REQUEST_STATE 0x00000100 +// update cache +#define RQ_UPDATE_REQUEST_CACHE 0x00000200 +// log request +#define RQ_LOG_REQUEST 0x00000400 +// end request +#define RQ_END_REQUEST 0x00000800 + +// +// Request non-deterministic notifications +// + +// send response status and headers +#define RQ_SEND_RESPONSE_STATUS_AND_HEADERS 0x08000000 +// custom notification +#define RQ_CUSTOM_NOTIFICATION 0x10000000 +// send response +#define RQ_SEND_RESPONSE 0x20000000 +// read entity +#define RQ_READ_ENTITY 0x40000000 +// map a url to a physical path +#define RQ_MAP_PATH 0x80000000 + +// +// Global notifications +// + +// stop accepting new requests +#define GL_STOP_LISTENING 0x00000002 +// cache cleanup before termination +#define GL_CACHE_CLEANUP 0x00000004 +// cache operation +#define GL_CACHE_OPERATION 0x00000010 +// health check +#define GL_HEALTH_CHECK 0x00000020 +// configuration changed +#define GL_CONFIGURATION_CHANGE 0x00000040 +// file changed +#define GL_FILE_CHANGE 0x00000080 +// before request pipeline has started +#define GL_PRE_BEGIN_REQUEST 0x00000100 +// application start +#define GL_APPLICATION_START 0x00000200 +// resolve modules for an application +#define GL_APPLICATION_RESOLVE_MODULES 0x00000400 +// application end +#define GL_APPLICATION_STOP 0x00000800 +// RSCA query +#define GL_RSCA_QUERY 0x00001000 +// trace event was raised +#define GL_TRACE_EVENT 0x00002000 +// custom notification +#define GL_CUSTOM_NOTIFICATION 0x00004000 +// thread cleanup notification +#define GL_THREAD_CLEANUP 0x00008000 +// application preload notification +#define GL_APPLICATION_PRELOAD 0x00010000 +// suspend process due to inactiviy +#define GL_SUSPEND_PROCESS 0x00020000 + +// +// Request notification return status +// + +enum REQUEST_NOTIFICATION_STATUS +{ + RQ_NOTIFICATION_CONTINUE, // continue processing + // for notification + RQ_NOTIFICATION_PENDING, // suspend processing + // for notification + RQ_NOTIFICATION_FINISH_REQUEST // finish request + // processing +}; + +// +// Out of band return codes +// + +enum GLOBAL_NOTIFICATION_STATUS +{ + GL_NOTIFICATION_CONTINUE, // continue processing + // for notification + GL_NOTIFICATION_HANDLED // finish processing for + // notification +}; + +// +// Priority class aliases +// + +#define PRIORITY_ALIAS_FIRST L"FIRST" +#define PRIORITY_ALIAS_HIGH L"HIGH" +#define PRIORITY_ALIAS_MEDIUM L"MEDIUM" +#define PRIORITY_ALIAS_LOW L"LOW" +#define PRIORITY_ALIAS_LAST L"LAST" + +// +// Cache operations +// + +enum CACHE_OPERATION +{ + CACHE_OPERATION_RETRIEVE, + CACHE_OPERATION_ADD, + CACHE_OPERATION_DELETE, + CACHE_OPERATION_FLUSH_PREFIX, + CACHE_OPERATION_ENUM +}; + +// +// Module identifier +// + +typedef VOID* HTTP_MODULE_ID; + +// +// Flags for IHttpContext->CloneContext() +// + +#define CLONE_FLAG_BASICS 0x01 +#define CLONE_FLAG_HEADERS 0x02 +#define CLONE_FLAG_ENTITY 0x04 +#define CLONE_FLAG_NO_PRECONDITION 0x08 +#define CLONE_FLAG_NO_DAV 0x10 +#define CLONE_FLAG_USER_CACHE_VARY_BY 0x20 +#define CLONE_FLAG_SERVER_VARIABLE 0x40 + +// +// Flags for IHttpContext->ExecuteRequest() +// + +#define EXECUTE_FLAG_NO_HEADERS 0x01 +#define EXECUTE_FLAG_IGNORE_CURRENT_INTERCEPTOR 0x02 +#define EXECUTE_FLAG_IGNORE_APPPOOL 0x04 +#define EXECUTE_FLAG_DISABLE_CUSTOM_ERROR 0x08 +#define EXECUTE_FLAG_SAME_URL 0x10 +// Do not flush the child response but copy it back to the parent +#define EXECUTE_FLAG_BUFFER_RESPONSE 0x20 +// Child response is still eligible for http.sys caching +#define EXECUTE_FLAG_HTTP_CACHE_ELIGIBLE 0x40 + + +// +// Forward declarations +// +struct HTTP_TRACE_CONFIGURATION; +struct HTTP_TRACE_EVENT; + +class IWorkerProcessFramework; +class IWpfSettings; +class IHttpTraceContext; +class IHttpContext3; +class IHttpCompletionInfo2; + +// +// Module-specific context descriptor +// +class __declspec(uuid("f1927f76-790e-4ccb-a72e-396bdfdae05d")) +IHttpStoredContext +{ +public: + virtual + VOID + CleanupStoredContext( + VOID + ) = 0; +}; + +// +// Context container +// +class __declspec(uuid("d7fad7c9-aa27-4ab9-bd60-e55ccba3f5dc")) +IHttpModuleContextContainer +{ +public: + virtual + IHttpStoredContext * + GetModuleContext( + _In_ HTTP_MODULE_ID moduleId + ) = 0; + + virtual + HRESULT + SetModuleContext( + _In_ IHttpStoredContext * ppStoredContext, + _In_ HTTP_MODULE_ID moduleId + ) = 0; +}; + +// +// Container for named contexts +// + +class __declspec(uuid("16db6f7c-1a94-47ca-a8e8-fea6005ff3ba")) +INamedContextContainer +{ +public: + virtual + IHttpStoredContext * + GetNamedContext( + _In_ LPCWSTR szName + ) = 0; + + virtual + HRESULT + SetNamedContext( + _In_ IHttpStoredContext * ppStoredContext, + _In_ LPCWSTR szName + ) = 0; +}; + +// +// Dispensed context container +// +class __declspec(uuid("2ae49359-95dd-4e48-ae20-c0cb9d0bc03a")) +IDispensedHttpModuleContextContainer : public IHttpModuleContextContainer +{ +public: + virtual + VOID + ReleaseContainer( + VOID + ) = 0; +}; + +// +// Performance counter descriptor +// +class __declspec(uuid("bdfc4c4a-12a4-4744-87d8-765eb320c59f")) +IHttpPerfCounterInfo +{ +public: + virtual + VOID + IncrementCounter( + DWORD dwCounterIndex, + DWORD dwValue = 1 + ) = 0; + + virtual + VOID + DecrementCounter( + DWORD dwCounterIndex, + DWORD dwValue = 1 + ) = 0; +}; + +// +// Application descriptor +// +class __declspec(uuid("3f75d9e6-1075-422c-ad89-93a85f2d7bdc")) +IHttpApplication +{ +public: + virtual + PCWSTR + GetApplicationPhysicalPath( + VOID + ) const = 0; + + virtual + PCWSTR + GetApplicationId( + VOID + ) const = 0; + + virtual + PCWSTR + GetAppConfigPath( + VOID + ) const = 0; + + virtual + IHttpModuleContextContainer * + GetModuleContextContainer( + VOID + ) = 0; +}; + +// +// IHttpApplication2 is available on Windows 8 and newer +// + +class __declspec(uuid("311a3b7a-b673-4a1c-8349-2e98a23cadcb")) +IHttpApplication2 : public IHttpApplication +{ +public: + virtual + VOID + BeginApplicationWarmup( + VOID + ) = 0; + + virtual + VOID + EndApplicationWarmup( + VOID + ) = 0; + + virtual + BOOL + QueryIsWarmingUp( + VOID + ) = 0; +}; + +// +// URI cache entry descriptor +// +class __declspec(uuid("7e0e6167-0094-49a1-8287-ecf6dc6e73a6")) +IHttpUrlInfo +{ +public: + virtual + IHttpModuleContextContainer * + GetModuleContextContainer( + VOID + ) = 0; + + virtual + BOOL + IsFrequentlyHit( + VOID + ) const = 0; +}; + +// +// Script map descriptor +// +class __declspec(uuid("d7fe3d77-68bc-4d4a-851f-eec9fb68017c")) +IScriptMapInfo +{ +public: + virtual + PCWSTR + GetPath( + VOID + ) const = 0; + + virtual + PCSTR + GetAllowedVerbs( + VOID + ) const = 0; + + virtual + _Ret_writes_(*pcchModules) + PCWSTR + GetModules( + _Out_ DWORD * pcchModules = NULL + ) const = 0; + + virtual + _Ret_writes_(*pcchScriptProcessor) + PCWSTR + GetScriptProcessor( + _Out_ DWORD * pcchScriptProcessor = NULL + ) const = 0; + + virtual + _Ret_writes_(*pcchManagedType) + PCWSTR + GetManagedType( + _Out_ DWORD * pcchManagedType = NULL + ) const = 0; + + virtual + BOOL + GetAllowPathInfoForScriptMappings( + VOID + ) const = 0; + + virtual + DWORD + GetRequiredAccess( + VOID + ) const = 0; + + virtual + DWORD + GetResourceType( + VOID + ) const = 0; + + virtual + BOOL + GetIsStarScriptMap( + VOID + ) const = 0; + + virtual + DWORD + GetResponseBufferLimit( + VOID + ) const = 0; + + virtual + PCWSTR + GetName( + VOID + ) const = 0; +}; + +class __declspec(uuid("fd86e6de-fb0e-47dd-820a-e0da12be46e9")) +IHttpTokenEntry; + +// +// Metadata descriptor +// +class __declspec(uuid("48b10633-825d-495e-93b0-225380053e8e")) +IMetadataInfo +{ +public: + virtual + PCWSTR + GetMetaPath( + VOID + ) const = 0; + + virtual + PCWSTR + GetVrPath( + VOID + ) const = 0; + + virtual + IHttpTokenEntry * + GetVrToken( + VOID + ) = 0; + + virtual + IHttpModuleContextContainer * + GetModuleContextContainer( + VOID + ) = 0; +}; + +class __declspec(uuid("3fc5c336-9ad7-45ea-af2f-31b59302c9fe")) +IReferencedMetadataInfo : public IMetadataInfo +{ +public: + virtual + VOID + ReferenceMetadata( + VOID + ) = 0; + + virtual + VOID + DereferenceMetadata( + VOID + ) = 0; +}; + +// +// Provides an interface to an HTTP request object. The methods on this +// class can be used to inspect and modify request data. +// +class __declspec(uuid("e8698f7e-576e-4cac-a309-67435355faef")) +IHttpRequest +{ +public: + virtual + HTTP_REQUEST * + GetRawHttpRequest( + VOID + ) = 0; + + virtual + const HTTP_REQUEST * + GetRawHttpRequest( + VOID + ) const = 0; + + virtual + _Ret_writes_bytes_(*pcchHeaderValue) + PCSTR + GetHeader( + _In_ PCSTR pszHeaderName, + _Out_ USHORT * pcchHeaderValue = NULL + ) const = 0; + + virtual + _Ret_writes_bytes_(*pcchHeaderValue) + PCSTR + GetHeader( + _In_ HTTP_HEADER_ID ulHeaderIndex, + _Out_ USHORT * pcchHeaderValue = NULL + ) const = 0; + + virtual + HRESULT + SetHeader( + _In_ PCSTR pszHeaderName, + _In_reads_bytes_(cchHeaderValue) + PCSTR pszHeaderValue, + _In_ USHORT cchHeaderValue, + _In_ BOOL fReplace + ) = 0; + + virtual + HRESULT + SetHeader( + _In_ HTTP_HEADER_ID ulHeaderIndex, + _In_ PCSTR pszHeaderValue, + _In_ USHORT cchHeaderValue, + _In_ BOOL fReplace + ) = 0; + + virtual + HRESULT + DeleteHeader( + _In_ PCSTR pszHeaderName + ) = 0; + + virtual + HRESULT + DeleteHeader( + _In_ HTTP_HEADER_ID ulHeaderIndex + ) = 0; + + virtual + PCSTR + GetHttpMethod( + VOID + ) const = 0; + + virtual + HRESULT + SetHttpMethod( + _In_ PCSTR pszHttpMethod + ) = 0; + + virtual + HRESULT + SetUrl( + _In_reads_(cchUrl) + PCWSTR pszUrl, + _In_ DWORD cchUrl, + _In_ BOOL fResetQueryString + ) = 0; + + virtual + HRESULT + SetUrl( + _In_reads_bytes_(cchUrl) + PCSTR pszUrl, + _In_ DWORD cchUrl, + _In_ BOOL fResetQueryString + ) = 0; + + virtual + BOOL + GetUrlChanged( + VOID + ) const = 0; + + virtual + PCWSTR + GetForwardedUrl( + VOID + ) const = 0; + + virtual + PSOCKADDR + GetLocalAddress( + VOID + ) const = 0; + + virtual + PSOCKADDR + GetRemoteAddress( + VOID + ) const = 0; + + virtual + HRESULT + ReadEntityBody( + _Out_writes_bytes_all_(cbBuffer) + VOID * pvBuffer, + _In_ DWORD cbBuffer, + _In_ BOOL fAsync, + _Out_ DWORD * pcbBytesReceived, + _Out_ BOOL * pfCompletionPending = NULL + ) = 0; + + virtual + HRESULT + InsertEntityBody( + _In_reads_bytes_(cbBuffer) + VOID * pvBuffer, + _In_ DWORD cbBuffer + ) = 0; + + virtual + DWORD + GetRemainingEntityBytes( + VOID + ) = 0; + + virtual + VOID + GetHttpVersion( + _Out_ USHORT * pMajorVersion, + _Out_ USHORT * pMinorVersion + ) const = 0; + + virtual + HRESULT + GetClientCertificate( + _Outptr_ + HTTP_SSL_CLIENT_CERT_INFO ** ppClientCertInfo, + _Out_ BOOL * pfClientCertNegotiated + ) = 0; + + virtual + HRESULT + NegotiateClientCertificate( + _In_ BOOL fAsync, + _Out_ BOOL * pfCompletionPending = NULL + ) = 0; + + virtual + DWORD + GetSiteId( + VOID + ) const = 0; + + virtual + HRESULT + GetHeaderChanges( + _In_ DWORD dwOldChangeNumber, + _Out_ DWORD * pdwNewChangeNumber, + _Inout_ PCSTR knownHeaderSnapshot[HttpHeaderRequestMaximum], + _Inout_ DWORD * pdwUnknownHeaderSnapshot, + _Inout_ PCSTR ** ppUnknownHeaderNameSnapshot, + _Inout_ PCSTR ** ppUnknownHeaderValueSnapshot, + _Out_writes_all_(HttpHeaderRequestMaximum+1) + DWORD diffedKnownHeaderIndices[HttpHeaderRequestMaximum+1], + _Out_ DWORD * pdwDiffedUnknownHeaders, + _Out_ DWORD ** ppDiffedUnknownHeaderIndices + ) = 0; +}; + +class __declspec(uuid("d9244ae1-51f8-4aa1-a66d-19277c33e610")) +IHttpRequest2 : public IHttpRequest +{ +public: + virtual + HRESULT + GetChannelBindingToken( + _Outptr_result_bytebuffer_to_(*pTokenSize, *pTokenSize) + PBYTE * ppToken, + _Out_ DWORD * pTokenSize + ) = 0; +}; + +// +// Custom Completion routine definition +// + +typedef +REQUEST_NOTIFICATION_STATUS +(WINAPI * PFN_ASYNC_COMPLETION )( + IHttpContext3 * pHttpContext, + IHttpCompletionInfo2 * pCompletionInfo, + VOID * pvCompletionContext +); + +class __declspec(uuid("b32e4e0f-4057-4feb-aeab-7b69c03c6314")) +IHttpRequest3 : public IHttpRequest2 +{ +public: + virtual + HRESULT + ReadEntityBody( + _Out_writes_bytes_all_(cbBuffer) + VOID * pvBuffer, + _In_ DWORD cbBuffer, + _In_ BOOL fAsync, + _In_ PFN_ASYNC_COMPLETION pfnCompletionCallback, + _In_ VOID * pvCompletionContext, + _Out_ DWORD * pcbBytesReceived, + _Out_ BOOL * pfCompletionPending = NULL + ) = 0; +}; + +class __declspec(uuid("3816f517-f631-49f0-8b51-16d6f0c6ffb2")) +IHttpRequest4 : public IHttpRequest3 +{ +public: + virtual + HRESULT + ReadEntityBody( + _Out_writes_bytes_all_(cbBuffer) + VOID* pvBuffer, + _In_ DWORD cbBuffer, + _In_ BOOL fAsync, + _In_ ULONG ulFlags, + _Out_ DWORD * pcbBytesReceived, + _Out_ BOOL * pfCompletionPending = NULL + ) = 0; +}; + +class __declspec(uuid("cb1c40ca-70f2-41a0-add2-881f5ef57388")) +IHttpCachePolicy +{ +public: + virtual + HTTP_CACHE_POLICY * + GetKernelCachePolicy( + VOID + ) = 0; + + virtual + VOID + SetKernelCacheInvalidatorSet( + VOID + ) = 0; + + virtual + HTTP_CACHE_POLICY * + GetUserCachePolicy( + VOID + ) = 0; + + virtual + HRESULT + AppendVaryByHeader( + _In_ PCSTR pszHeader + ) = 0; + + virtual + PCSTR + GetVaryByHeaders( + VOID + ) const = 0; + + virtual + HRESULT + AppendVaryByQueryString( + _In_ PCSTR pszParam + ) = 0; + + virtual + PCSTR + GetVaryByQueryStrings( + VOID + ) const = 0; + + virtual + HRESULT + SetVaryByValue( + _In_ PCSTR pszValue + ) = 0; + + virtual + PCSTR + GetVaryByValue( + VOID + ) const = 0; + + virtual + BOOL + IsUserCacheEnabled( + VOID + ) const = 0; + + virtual + VOID + DisableUserCache( + VOID + ) = 0; + + virtual + BOOL + IsCached( + VOID + ) const = 0; + + virtual + VOID + SetIsCached( + VOID + ) = 0; + + virtual + BOOL + GetKernelCacheInvalidatorSet( + VOID + ) const = 0; +}; + +class __declspec(uuid("9f4ba807-050e-4495-ae55-8870f7e9194a")) +IHttpCachePolicy2 : public IHttpCachePolicy +{ +public: + virtual + BOOL + IsForceUpdateSet( + VOID + ) const = 0; + + virtual + VOID + SetForceUpdate( + VOID + ) = 0; +}; + +// +// Response descriptor +// +class __declspec(uuid("7e1c6b38-628f-4e6c-95dc-41237eb7f95e")) +IHttpResponse +{ +public: + virtual + HTTP_RESPONSE * + GetRawHttpResponse( + VOID + ) = 0; + + virtual + const HTTP_RESPONSE * + GetRawHttpResponse( + VOID + ) const = 0; + + virtual + IHttpCachePolicy * + GetCachePolicy( + VOID + ) = 0; + + virtual + HRESULT + SetStatus( + _In_ USHORT statusCode, + _In_ PCSTR pszReason, + _In_ USHORT uSubStatus = 0, + _In_ HRESULT hrErrorToReport = S_OK, + _In_opt_ IAppHostConfigException * pException = NULL, + _In_ BOOL fTrySkipCustomErrors = FALSE + ) = 0; + + virtual + HRESULT + SetHeader( + _In_ PCSTR pszHeaderName, + _In_ PCSTR pszHeaderValue, + _In_ USHORT cchHeaderValue, + _In_ BOOL fReplace + ) = 0; + + virtual + HRESULT + SetHeader( + _In_ HTTP_HEADER_ID ulHeaderIndex, + _In_ PCSTR pszHeaderValue, + _In_ USHORT cchHeaderValue, + _In_ BOOL fReplace + ) = 0; + + virtual + HRESULT + DeleteHeader( + _In_ PCSTR pszHeaderName + ) = 0; + + virtual + HRESULT + DeleteHeader( + _In_ HTTP_HEADER_ID ulHeaderIndex + ) = 0; + + virtual + _Ret_writes_bytes_(*pcchHeaderValue) + PCSTR + GetHeader( + _In_ PCSTR pszHeaderName, + _Out_ USHORT * pcchHeaderValue = NULL + ) const = 0; + + virtual + _Ret_writes_bytes_(*pcchHeaderValue) + PCSTR + GetHeader( + _In_ HTTP_HEADER_ID ulHeaderIndex, + _Out_ USHORT * pcchHeaderValue = NULL + ) const = 0; + + virtual + VOID + Clear( + VOID + ) = 0; + + virtual + VOID + ClearHeaders( + VOID + ) = 0; + + virtual + VOID + SetNeedDisconnect( + VOID + ) = 0; + + virtual + VOID + ResetConnection( + VOID + ) = 0; + + virtual + VOID + DisableKernelCache( + ULONG reason = 9 + ) = 0; + + virtual + BOOL + GetKernelCacheEnabled( + VOID + ) const = 0; + + virtual + VOID + SuppressHeaders( + VOID + ) = 0; + + virtual + BOOL + GetHeadersSuppressed( + VOID + ) const = 0; + + virtual + HRESULT + Flush( + _In_ BOOL fAsync, + _In_ BOOL fMoreData, + _Out_ DWORD * pcbSent, + _Out_ BOOL * pfCompletionExpected = NULL + ) = 0; + + virtual + HRESULT + Redirect( + _In_ PCSTR pszUrl, + _In_ BOOL fResetStatusCode = TRUE, + _In_ BOOL fIncludeParameters = FALSE + ) = 0; + + virtual + HRESULT + WriteEntityChunkByReference( + _In_ HTTP_DATA_CHUNK * pDataChunk, + _In_ LONG lInsertPosition = -1 + ) = 0; + + virtual + HRESULT + WriteEntityChunks( + _In_reads_(nChunks) + HTTP_DATA_CHUNK * pDataChunks, + _In_ DWORD nChunks, + _In_ BOOL fAsync, + _In_ BOOL fMoreData, + _Out_ DWORD * pcbSent, + _Out_ BOOL * pfCompletionExpected = NULL + ) = 0; + + virtual + VOID + DisableBuffering( + VOID + ) = 0; + + virtual + VOID + GetStatus( + _Out_ USHORT * pStatusCode, + _Out_ USHORT * pSubStatus = NULL, + _Outptr_opt_result_bytebuffer_(*pcchReason) + PCSTR * ppszReason = NULL, + _Out_ USHORT * pcchReason = NULL, + _Out_ HRESULT * phrErrorToReport = NULL, + _Outptr_opt_ + PCWSTR * ppszModule = NULL, + _Out_ DWORD * pdwNotification = NULL, + _Outptr_opt_ + IAppHostConfigException ** ppException = NULL, + _Out_ BOOL * pfTrySkipCustomErrors = NULL + ) = 0; + + virtual + HRESULT + SetErrorDescription( + _In_reads_(cchDescription) + PCWSTR pszDescription, + _In_ DWORD cchDescription, + _In_ BOOL fHtmlEncode = TRUE + ) = 0; + + virtual + _Ret_writes_(*pcchDescription) + PCWSTR + GetErrorDescription( + _Out_ DWORD * pcchDescription = NULL + ) = 0; + + virtual + HRESULT + GetHeaderChanges( + _In_ DWORD dwOldChangeNumber, + _Out_ DWORD * pdwNewChangeNumber, + _Inout_ PCSTR knownHeaderSnapshot[HttpHeaderResponseMaximum], + _Inout_ DWORD * pdwUnknownHeaderSnapshot, + _Inout_ PCSTR ** ppUnknownHeaderNameSnapshot, + _Inout_ PCSTR ** ppUnknownHeaderValueSnapshot, + _Out_writes_(HttpHeaderResponseMaximum+1) + DWORD diffedKnownHeaderIndices[HttpHeaderResponseMaximum+1], + _Out_ DWORD * pdwDiffedUnknownHeaders, + _Out_ DWORD ** ppDiffedUnknownHeaderIndices + ) = 0; + + virtual + VOID + CloseConnection( + VOID + ) = 0; +}; + +class __declspec(uuid("0822c871-f14e-4974-a1e6-5b3c1f09b76a")) +IHttpResponse2 : public IHttpResponse +{ +public: + virtual + HRESULT + WriteEntityChunks( + _In_reads_(nChunks) + HTTP_DATA_CHUNK * pDataChunks, + _In_ DWORD nChunks, + _In_ BOOL fAsync, + _In_ BOOL fMoreData, + _In_ PFN_ASYNC_COMPLETION pfnCompletionCallback, + _In_ VOID * pvCompletionContext, + _Out_ DWORD * pcbSent, + _Out_ BOOL * pfCompletionExpected = NULL + ) = 0; + + virtual + HRESULT + Flush( + _In_ BOOL fAsync, + _In_ BOOL fMoreData, + _In_ PFN_ASYNC_COMPLETION pfnCompletionCallback, + _In_ VOID * pvCompletionContext, + _Out_ DWORD * pcbSent, + _Out_ BOOL * pfCompletionExpected = NULL + ) = 0; +}; + +// +// Add the SPDY/3 & HTTP/2.0 Push-Promise support +// + +class __declspec(uuid("19578e49-d080-45da-b673-96cb475d3c5d")) +IHttpResponse3 : public IHttpResponse2 +{ +public: + virtual + HRESULT + PushPromise( + _In_ PCSTR pszVerb, + _In_ PCWSTR pwszPath, + _In_opt_ PCWSTR pwszQuery, + _In_ DWORD cHeaders, + _In_opt_count_(cHeaders) PCSTR * rgHeaderNames, + _In_opt_count_(cHeaders) PCSTR * rgHeaderValues + ) = 0; +}; + +// +// Add support for certain HTTP/2.0 features like trailing headers +// and GOAWAY or RST_STREAM frames. +// + +class __declspec(uuid("1a2acc57-cae2-4f28-b4ab-00c8f96b12ec")) +IHttpResponse4 : public IHttpResponse3 +{ +public: + virtual + HRESULT + DeleteTrailer( + _In_ PCSTR pszHeaderName + ) = 0; + + virtual + PCSTR + GetTrailer( + _In_ PCSTR pszHeaderName, + _Out_ USHORT * pcchHeaderValue = NULL + ) const = 0; + + virtual + VOID + ResetStream( + _In_ ULONG errorCode + ) = 0; + + virtual + VOID + SetNeedGoAway( + VOID + ) = 0; + + virtual + HRESULT + SetTrailer( + _In_ PCSTR pszHeaderName, + _In_ PCSTR pszHeaderValue, + _In_ USHORT cchHeaderValue, + _In_ BOOL fReplace + ) = 0; +}; + +// +// User descriptor +// +class __declspec(uuid("8059e6f8-10ce-4d61-b47e-5a1d8d9a8b67")) +IHttpUser +{ +public: + virtual + PCWSTR + GetRemoteUserName( + VOID + ) = 0; + + virtual + PCWSTR + GetUserName( + VOID + ) = 0; + + virtual + PCWSTR + GetAuthenticationType( + VOID + ) = 0; + + virtual + PCWSTR + GetPassword( + VOID + ) = 0; + + virtual + HANDLE + GetImpersonationToken( + VOID + ) = 0; + + virtual + HANDLE + GetPrimaryToken( + VOID + ) = 0; + + virtual + VOID + ReferenceUser( + VOID + ) = 0; + + virtual + VOID + DereferenceUser( + VOID + ) = 0; + + virtual + BOOL + SupportsIsInRole( + VOID + ) = 0; + + virtual + HRESULT + IsInRole( + _In_ PCWSTR pszRoleName, + _Out_ BOOL * pfInRole + ) = 0; + + virtual + PVOID + GetUserVariable( + _In_ PCSTR pszVariableName + ) = 0; +}; + +#define HTTP_USER_VARIABLE_SID "SID" +#define HTTP_USER_VARIABLE_CTXT_HANDLE "CtxtHandle" +#define HTTP_USER_VARIABLE_CRED_HANDLE "CredHandle" + +class __declspec(uuid("841d9a71-75f4-4626-8b97-66046ca7e45b")) +IHttpConnectionStoredContext : public IHttpStoredContext +{ +public: + virtual + VOID + NotifyDisconnect( + VOID + ) = 0; +}; + +class __declspec(uuid("f3dd2fb3-4d11-4295-b8ab-4cb667add1fe")) +IHttpConnectionModuleContextContainer : public IHttpModuleContextContainer +{ +public: + virtual + IHttpConnectionStoredContext * + GetConnectionModuleContext( + _In_ HTTP_MODULE_ID moduleId + ) = 0; + + virtual + HRESULT + SetConnectionModuleContext( + _In_ IHttpConnectionStoredContext * ppStoredContext, + _In_ HTTP_MODULE_ID moduleId + ) = 0; +}; + +// +// Connection descriptor +// +class __declspec(uuid("d9a5de00-3346-4599-9826-fe88565e1226")) +IHttpConnection +{ +public: + virtual + BOOL + IsConnected( + VOID + ) const = 0; + + virtual + + _Ret_opt_ _Post_writable_byte_size_(cbAllocation) + VOID * + AllocateMemory( + DWORD cbAllocation + ) = 0; + + virtual + IHttpConnectionModuleContextContainer * + GetModuleContextContainer( + VOID + ) = 0; +}; + +// +// Forward declarations +// +class __declspec(uuid("71e95595-8c74-44d9-88a9-f5112d5f5900")) +IHttpFileInfo; + +class __declspec(uuid("eb16a6ec-ba5d-436f-bf24-3ede13906450")) +IHttpSite; + +class __declspec(uuid("671e6d34-9380-4df4-b453-91129df02b24")) +ICustomNotificationProvider; + +class __declspec(uuid("6f3f657d-2fb8-43c6-a096-5064b41f0580")) +IHttpEventProvider; + +class CHttpModule; + +// +// IHttpContext extended interface versions (deprecated) +// +enum HTTP_CONTEXT_INTERFACE_VERSION +{ +}; + +// +// Context object representing the processing of an HTTP request +// +class __declspec(uuid("424c1b8c-a1ba-44d7-ac98-9f8f457701a5")) +IHttpContext +{ + public: + virtual + IHttpSite * + GetSite( + VOID + ) = 0; + + virtual + IHttpApplication * + GetApplication( + VOID + ) = 0; + + virtual + IHttpConnection * + GetConnection( + VOID + ) = 0; + + virtual + IHttpRequest * + GetRequest( + VOID + ) = 0; + + virtual + IHttpResponse * + GetResponse( + VOID + ) = 0; + + virtual + BOOL + GetResponseHeadersSent( + VOID + ) const = 0; + + virtual + IHttpUser * + GetUser( + VOID + ) const = 0; + + virtual + IHttpModuleContextContainer * + GetModuleContextContainer( + VOID + ) = 0; + + virtual + VOID + IndicateCompletion( + _In_ REQUEST_NOTIFICATION_STATUS notificationStatus + ) = 0; + + virtual + HRESULT + PostCompletion( + _In_ DWORD cbBytes + ) = 0; + + virtual + VOID + DisableNotifications( + _In_ DWORD dwNotifications, + _In_ DWORD dwPostNotifications + ) = 0; + + virtual + BOOL + GetNextNotification( + _In_ REQUEST_NOTIFICATION_STATUS status, + _Out_ DWORD * pdwNotification, + _Out_ BOOL * pfIsPostNotification, + _Outptr_ CHttpModule ** ppModuleInfo, + _Outptr_ IHttpEventProvider ** ppRequestOutput + ) = 0; + + virtual + BOOL + GetIsLastNotification( + _In_ REQUEST_NOTIFICATION_STATUS status + ) = 0; + + virtual + HRESULT + ExecuteRequest( + _In_ BOOL fAsync, + _In_ IHttpContext * pHttpContext, + _In_ DWORD dwExecuteFlags, + _In_ IHttpUser * pHttpUser, + _Out_ BOOL * pfCompletionExpected = NULL + ) = 0; + + virtual + DWORD + GetExecuteFlags( + VOID + ) const = 0; + + virtual + HRESULT + GetServerVariable( + _In_ PCSTR pszVariableName, + _Outptr_result_buffer_(*pcchValueLength) + PCWSTR * ppszValue, + _Out_ DWORD * pcchValueLength + ) = 0; + + virtual + HRESULT + GetServerVariable( + _In_ PCSTR pszVariableName, + _Outptr_result_bytebuffer_(*pcchValueLength) + PCSTR * ppszValue, + _Out_ DWORD * pcchValueLength + ) = 0; + + virtual + HRESULT + SetServerVariable( + PCSTR pszVariableName, + PCWSTR pszVariableValue + ) = 0; + + virtual + + _Ret_opt_ _Post_writable_byte_size_(cbAllocation) + VOID * + AllocateRequestMemory( + _In_ DWORD cbAllocation + ) = 0; + + virtual + IHttpUrlInfo * + GetUrlInfo( + VOID + ) = 0; + + virtual + IMetadataInfo * + GetMetadata( + VOID + ) = 0; + + virtual + _Ret_writes_(*pcchPhysicalPath) + PCWSTR + GetPhysicalPath( + _Out_ DWORD * pcchPhysicalPath = NULL + ) = 0; + + virtual + _Ret_writes_(*pcchScriptName) + PCWSTR + GetScriptName( + _Out_ DWORD * pcchScriptName = NULL + ) const = 0; + + virtual + _Ret_writes_(*pcchScriptTranslated) + PCWSTR + GetScriptTranslated( + _Out_ DWORD * pcchScriptTranslated = NULL + ) = 0; + + virtual + IScriptMapInfo * + GetScriptMap( + VOID + ) const = 0; + + virtual + VOID + SetRequestHandled( + VOID + ) = 0; + + virtual + IHttpFileInfo * + GetFileInfo( + VOID + ) const = 0; + + virtual + HRESULT + MapPath( + _In_ PCWSTR pszUrl, + _Inout_updates_(*pcbPhysicalPath) + PWSTR pszPhysicalPath, + _Inout_ DWORD * pcbPhysicalPath + ) = 0; + + virtual + HRESULT + NotifyCustomNotification( + _In_ ICustomNotificationProvider * pCustomOutput, + _Out_ BOOL * pfCompletionExpected + ) = 0; + + virtual + IHttpContext * + GetParentContext( + VOID + ) const = 0; + + virtual + IHttpContext * + GetRootContext( + VOID + ) const = 0; + + virtual + HRESULT + CloneContext( + _In_ DWORD dwCloneFlags, + _Outptr_ + IHttpContext ** ppHttpContext + ) = 0; + + virtual + HRESULT + ReleaseClonedContext( + VOID + ) = 0; + + virtual + HRESULT + GetCurrentExecutionStats( + _Out_ DWORD * pdwNotification, + _Out_ DWORD * pdwNotificationStartTickCount = NULL, + _Out_ PCWSTR * ppszModule = NULL, + _Out_ DWORD * pdwModuleStartTickCount = NULL, + _Out_ DWORD * pdwAsyncNotification = NULL, + _Out_ DWORD * pdwAsyncNotificationStartTickCount = NULL + ) const = 0; + + virtual + IHttpTraceContext * + GetTraceContext( + VOID + ) const = 0; + + virtual + HRESULT + GetServerVarChanges( + _In_ DWORD dwOldChangeNumber, + _Out_ DWORD * pdwNewChangeNumber, + _Inout_ DWORD * pdwVariableSnapshot, + _Inout_ _At_(*ppVariableNameSnapshot, _Pre_readable_size_(*pdwVariableSnapshot) _Post_readable_size_(*pdwVariableSnapshot)) + PCSTR ** ppVariableNameSnapshot, + _Inout_ _At_(*ppVariableValueSnapshot, _Pre_readable_size_(*pdwVariableSnapshot) _Post_readable_size_(*pdwVariableSnapshot)) + PCWSTR ** ppVariableValueSnapshot, + _Out_ DWORD * pdwDiffedVariables, + _Out_ DWORD ** ppDiffedVariableIndices + ) = 0; + + virtual + HRESULT + CancelIo( + VOID + ) = 0; + + virtual + HRESULT + MapHandler( + _In_ DWORD dwSiteId, + _In_ PCWSTR pszSiteName, + _In_ PCWSTR pszUrl, + _In_ PCSTR pszVerb, + _Outptr_ + IScriptMapInfo ** ppScriptMap, + _In_ BOOL fIgnoreWildcardMappings = FALSE + ) = 0; + + __declspec(deprecated("This method is deprecated. Use the HttpGetExtendedInterface helper function instead.")) + virtual + HRESULT + GetExtendedInterface( + _In_ HTTP_CONTEXT_INTERFACE_VERSION version, + _Outptr_ PVOID * ppInterface + ) = 0; +}; + + +// +// Context object representing the processing of an HTTP request +// IHttpContext2 is available on Windows 7 and newer +// +class __declspec(uuid("c986182c-cf4a-4482-8205-0dbbc1fd6cee")) +IHttpContext2 : public IHttpContext +{ +public: + virtual + IHttpUser * + GetOriginalUser( + VOID + ) const = 0; +}; + +// +// Context object representing the processing of an HTTP request +// IHttpContext3 is available on Windows 8 and newer +// + +class __declspec(uuid("bf53c022-ca4b-4349-a38e-a4b78ad897fb")) +IHttpContext3 : public IHttpContext2 +{ +public: + virtual + INamedContextContainer * + GetNamedContextContainer( + VOID + ) = 0; + + virtual + VOID + EnableFullDuplex( + VOID + ) = 0; + + virtual + HRESULT + InheritServerVariable( + _In_ PCSTR szName, + _In_ BOOL fFailIfNotExist = FALSE + ) = 0; + + virtual + HRESULT + PostCompletion( + DWORD cbBytes, + LPOVERLAPPED_COMPLETION_ROUTINE pfnCompletionRoutine, + VOID * pvCompletionContext + ) = 0; +}; + +// +// Context object representing the processing of an HTTP request +// IHttpContext4 is available in Windows 9 and newer. +// + +class __declspec(uuid("2c9463d8-4ec4-4622-8917-d486321a9443")) +IHttpContext4 : public IHttpContext3 +{ +public: + // + // Gets the request start time as returned by GetTickCount64() + // + virtual + ULONGLONG + GetRequestStartTime( + VOID + ) = 0; + + // + // Gets the elapsed time in milliseconds + // + virtual + ULONGLONG + GetRequestElapsedTime( + VOID + ) = 0; +}; + +class __declspec(uuid("9f9098d5-915c-4294-a52e-66532a232bc9")) +IHttpTraceContext +{ +public: + virtual + HRESULT + GetTraceConfiguration( + _Inout_ HTTP_TRACE_CONFIGURATION * pHttpTraceConfiguration + ) = 0; + + virtual + HRESULT + SetTraceConfiguration( + _In_ HTTP_MODULE_ID moduleId, + _In_ HTTP_TRACE_CONFIGURATION * pHttpTraceConfiguration, + _In_ DWORD cHttpTraceConfiguration = 1 + ) = 0; + + virtual + HRESULT + RaiseTraceEvent( + _In_ HTTP_TRACE_EVENT * pTraceEvent + ) = 0; + + virtual + LPCGUID + GetTraceActivityId( + ) = 0; + + virtual + HRESULT + QuickTrace( + _In_ PCWSTR pszData1, + _In_opt_ PCWSTR pszData2 = NULL, + _In_ HRESULT hrLastError = S_OK, + // + // 4 == TRACE_LEVEL_INFORMATION + // + _In_ UCHAR Level = 4 + ) = 0; +}; + +class __declspec(uuid("37776aff-852e-4eec-93a5-b85a285a95b8")) +IHttpCacheSpecificData; + +// +// Cache helpers +// +class __declspec(uuid("cdef2aad-20b3-4512-b1b1-094b3844aeb2")) +IHttpCacheKey +{ +public: + virtual + DWORD + GetHash( + VOID + ) const = 0; + + virtual + PCWSTR + GetCacheName( + VOID + ) const = 0; + + virtual + bool + GetIsEqual( + _In_ IHttpCacheKey * pCacheCompareKey + ) const = 0; + + virtual + bool + GetIsPrefix( + _In_ IHttpCacheKey * pCacheCompareKey + ) const = 0; + + virtual + VOID + Enum( + _In_ IHttpCacheSpecificData * pCacheData + ) = 0; +}; + +class __declspec(uuid("37776aff-852e-4eec-93a5-b85a285a95b8")) +IHttpCacheSpecificData +{ +public: + virtual + IHttpCacheKey * + GetCacheKey( + VOID + ) const = 0; + + virtual + VOID + ReferenceCacheData( + VOID + ) = 0; + + virtual + VOID + DereferenceCacheData( + VOID + ) = 0; + + virtual + VOID + ResetTTL( + VOID + ) = 0; + + virtual + VOID + DecrementTTL( + _Out_ BOOL * pfTTLExpired + ) = 0; + + virtual + VOID + SetFlushed( + VOID + ) = 0; + + virtual + BOOL + GetFlushed( + VOID + ) const = 0; +}; + +// +// Site descriptor +// +class __declspec(uuid("eb16a6ec-ba5d-436f-bf24-3ede13906450")) +IHttpSite +{ +public: + virtual + DWORD + GetSiteId( + VOID + ) const = 0; + + virtual + PCWSTR + GetSiteName( + VOID + ) const = 0; + + virtual + IHttpModuleContextContainer * + GetModuleContextContainer( + VOID + ) = 0; + + virtual + IHttpPerfCounterInfo * + GetPerfCounterInfo( + VOID + ) = 0; +}; + +// +// File change monitor +// +class __declspec(uuid("985422da-b0cf-473b-ba9e-8148ceb3e240")) +IHttpFileMonitor +{ +public: + virtual + IHttpModuleContextContainer * + GetModuleContextContainer( + VOID + ) = 0; + + virtual + VOID + DereferenceFileMonitor( + VOID + ) = 0; +}; + +// +// File descriptor +// +class __declspec(uuid("71e95595-8c74-44d9-88a9-f5112d5f5900")) +IHttpFileInfo : public IHttpCacheSpecificData +{ +public: + virtual + DWORD + GetAttributes( + VOID + ) const = 0; + + virtual + VOID + GetSize( + _Out_ ULARGE_INTEGER * pliSize + ) const = 0; + + virtual + const BYTE * + GetFileBuffer( + VOID + ) const = 0; + + virtual + HANDLE + GetFileHandle( + VOID + ) const = 0; + + virtual + PCWSTR + GetFilePath( + VOID + ) const = 0; + + virtual + PCSTR + GetETag( + _Out_ USHORT * pcchETag = NULL + ) const = 0; + + virtual + VOID + GetLastModifiedTime( + _Out_ FILETIME * pFileTime + ) const = 0; + + virtual + PCSTR + GetLastModifiedString( + VOID + ) const = 0; + + virtual + BOOL + GetHttpCacheAllowed( + _Out_ DWORD * pSecondsToLive + ) const = 0; + + virtual + HRESULT + AccessCheck( + _In_ HANDLE hUserToken, + _In_ PSID pUserSid + ) = 0; + + virtual + HANDLE + GetVrToken( + VOID + ) const = 0; + + virtual + PCWSTR + GetVrPath( + VOID + ) const = 0; + + virtual + IHttpModuleContextContainer * + GetModuleContextContainer( + VOID + ) = 0; + + virtual + BOOL + CheckIfFileHasChanged( + _In_ HANDLE hUserToken + ) = 0; +}; + + +// +// Token-cache entry +// +class __declspec(uuid("fd86e6de-fb0e-47dd-820a-e0da12be46e9")) +IHttpTokenEntry : public IHttpCacheSpecificData +{ +public: + virtual + HANDLE + GetImpersonationToken( + VOID + ) = 0; + + virtual + HANDLE + GetPrimaryToken( + VOID + ) = 0; + + virtual + PSID + GetSid( + VOID + ) = 0; +}; + + +// +// IHttpServer extended interface versions +// +enum HTTP_SERVER_INTERFACE_VERSION +{ + HTTP_SERVER_INTERFACE_V2, + HTTP_SERVER_INTERFACE_V3 +}; + + +// +// Global utility descriptor +// +class __declspec(uuid("eda2a40f-fb92-4d6d-b52b-c8c207380b4e")) +IHttpServer +{ +public: + virtual + BOOL + IsCommandLineLaunch( + VOID + ) const = 0; + + virtual + PCWSTR + GetAppPoolName( + VOID + ) const = 0; + + virtual + HRESULT + AssociateWithThreadPool( + _In_ HANDLE hHandle, + _In_ LPOVERLAPPED_COMPLETION_ROUTINE completionRoutine + ) = 0; + + virtual + VOID + IncrementThreadCount( + VOID + ) = 0; + + virtual + VOID + DecrementThreadCount( + VOID + ) = 0; + + virtual + VOID + ReportUnhealthy( + _In_ PCWSTR pszReasonString, + _In_ HRESULT hrReason + ) = 0; + + virtual + VOID + RecycleProcess( + _In_ PCWSTR pszReason + ) = 0; + + virtual + IAppHostAdminManager * + GetAdminManager( + VOID + ) const = 0; + + virtual + HRESULT + GetFileInfo( + _In_ PCWSTR pszPhysicalPath, + _In_ HANDLE hUserToken, + _In_ PSID pSid, + _In_ PCWSTR pszChangeNotificationPath, + _In_ HANDLE hChangeNotificationToken, + _In_ BOOL fCache, + _Outptr_ + IHttpFileInfo ** ppFileInfo, + _In_opt_ + IHttpTraceContext * pHttpTraceContext = NULL + ) = 0; + + virtual + HRESULT + FlushKernelCache( + _In_ PCWSTR pszUrl + ) = 0; + + virtual + HRESULT + DoCacheOperation( + _In_ CACHE_OPERATION cacheOperation, + _In_ IHttpCacheKey * pCacheKey, + _Outptr_ + IHttpCacheSpecificData ** ppCacheSpecificData, + _In_opt_ + IHttpTraceContext * pHttpTraceContext = NULL + ) = 0; + + virtual + GLOBAL_NOTIFICATION_STATUS + NotifyCustomNotification( + _In_ ICustomNotificationProvider * pCustomOutput + ) = 0; + + virtual + IHttpPerfCounterInfo * + GetPerfCounterInfo( + VOID + ) = 0; + + virtual + VOID + RecycleApplication( + _In_ PCWSTR pszAppConfigPath + ) = 0; + + virtual + VOID + NotifyConfigurationChange( + _In_ PCWSTR pszPath + ) = 0; + + virtual + VOID + NotifyFileChange( + _In_ PCWSTR pszFileName + ) = 0; + + virtual + IDispensedHttpModuleContextContainer * + DispenseContainer( + VOID + ) = 0; + + virtual + HRESULT + AddFragmentToCache( + _In_ HTTP_DATA_CHUNK * pDataChunk, + _In_ PCWSTR pszFragmentName + ) = 0; + + virtual + HRESULT + ReadFragmentFromCache( + _In_ PCWSTR pszFragmentName, + _Out_writes_bytes_all_(cbSize) + BYTE * pvBuffer, + _In_ DWORD cbSize, + _Out_ DWORD * pcbCopied + ) = 0; + + virtual + HRESULT + RemoveFragmentFromCache( + _In_ PCWSTR pszFragmentName + ) = 0; + + virtual + HRESULT + GetWorkerProcessSettings( + _Outptr_ + IWpfSettings ** ppWorkerProcessSettings + ) = 0; + + virtual + HRESULT + GetProtocolManagerCustomInterface( + _In_ PCWSTR pProtocolManagerDll, + _In_ PCWSTR pProtocolManagerDllInitFunction, + _In_ DWORD dwCustomInterfaceId, + _Outptr_ PVOID* ppCustomInterface + ) = 0; + + virtual + BOOL + SatisfiesPrecondition( + _In_ PCWSTR pszPrecondition, + _Out_ BOOL * pfUnknownPrecondition = NULL + ) const = 0; + + virtual + IHttpTraceContext * + GetTraceContext( + VOID + ) const = 0; + + virtual + HRESULT + RegisterFileChangeMonitor( + _In_ PCWSTR pszPath, + _In_ HANDLE hToken, + _Outptr_ + IHttpFileMonitor ** ppFileMonitor + ) = 0; + + virtual + HRESULT + GetExtendedInterface( + _In_ HTTP_SERVER_INTERFACE_VERSION version, + _Outptr_ PVOID * ppInterface + ) = 0; +}; + +class __declspec(uuid("34af637e-afe8-4556-bcc1-767f8e0b4a4e")) +IHttpServer2 : public IHttpServer +{ +public: + + virtual + HRESULT + GetToken( + _In_ PCWSTR pszUserName, + _In_ PCWSTR pszPassword, + _In_ DWORD dwLogonMethod, + _Outptr_ + IHttpTokenEntry ** ppTokenEntry, + _In_opt_ PCWSTR pszDefaultDomain = NULL, + _In_opt_ PSOCKADDR pSockAddr = NULL, + _In_opt_ IHttpTraceContext * pHttpTraceContext = NULL + ) = 0; + + virtual + _Ret_writes_(*pcchConfigFilePath) + PCWSTR + GetAppPoolConfigFile( + _Out_ DWORD * pcchConfigFilePath = NULL + ) const = 0; + + virtual + HRESULT + GetExtendedInterface( + _In_ const GUID & Version1, + _In_ PVOID pInput, + _In_ const GUID & Version2, + _Outptr_ PVOID * ppOutput + ) = 0; + + virtual + HRESULT + GetMetadata( + _In_ PCWSTR pszSiteName, + _In_ PCWSTR pszUrl, + _Outptr_ + IReferencedMetadataInfo ** ppMetadataInfo + ) = 0; + + virtual + HRESULT + GetWorkerProcessFramework( + _Outptr_ + IWorkerProcessFramework ** ppWorkerProcessFramework + ) = 0; +}; + +class __declspec(uuid("f7a66d59-c0a2-48b5-a88f-be5975c960fb")) +IHttpServer3 : public IHttpServer2 +{ +public: + + virtual + HRESULT + QueryRequestProperty( + _In_ HTTP_OPAQUE_ID id, + _In_ HTTP_REQUEST_PROPERTY propertyId, + _In_reads_bytes_opt_(qualifierSize) PVOID pQualifier, + _In_ ULONG qualifierSize, + _Out_writes_bytes_to_opt_(outputBufferSize, *pcbBytesReturned) PVOID pOutput, + _In_ ULONG outputBufferSize, + _Out_opt_ PULONG pcbBytesReturned, + _In_ LPOVERLAPPED pOverlapped + ) = 0; +}; + +// +// Helper function to get extended HTTP interfaces. +// +// Template parameters (HttpType1 and HttpType2) +// can be deduced from the arguments to the function. +// +// Example: +// +// IHttpRequest * pHttpRequest = pHttpContext->GetRequest(); +// IHttpRequest2 * pHttpRequest2; +// HRESULT hr = HttpGetExtendedInterface(g_pHttpServer, pHttpRequest, &pHttpRequest2); +// if( SUCCEEDED(hr) ) +// { +// // Use pHttpRequest2. +// } +// +// Where pHttpContext is an IHttpContext pointer and +// g_pHttpServer is an IHttpServer pointer. +// + +template +HRESULT +HttpGetExtendedInterface( + _In_ IHttpServer * pHttpServer, + _In_ HttpType1 * pInput, + _Outptr_ HttpType2 ** ppOutput +) +{ + HRESULT hr; + IHttpServer2 * pHttpServer2; + hr = pHttpServer->GetExtendedInterface(HTTP_SERVER_INTERFACE_V2, + reinterpret_cast(&pHttpServer2) ); + if (SUCCEEDED(hr)) + { + hr = pHttpServer2->GetExtendedInterface(__uuidof(HttpType1), + pInput, + __uuidof(HttpType2), + reinterpret_cast(ppOutput) ); + } + return hr; +} + +// +// Notification specific output for notifications +// + +class __declspec(uuid("6f3f657d-2fb8-43c6-a096-5064b41f0580")) +IHttpEventProvider +{ +public: + virtual + VOID + SetErrorStatus( + _In_ HRESULT hrError + ) = 0; +}; + +// +// Completion information for notifications +// +class __declspec(uuid("49dd20e3-d9c0-463c-8821-f3413b55cc00")) +IHttpCompletionInfo +{ +public: + virtual + DWORD + GetCompletionBytes( + VOID + ) const = 0; + + virtual + HRESULT + GetCompletionStatus( + VOID + ) const = 0; +}; + +// +// Extended completion information available in Windows 8 and newer +// +class __declspec(uuid("53129f70-0196-47ec-b16c-127906e2afeb")) +IHttpCompletionInfo2 : public IHttpCompletionInfo +{ +public: + virtual + DWORD + GetCompletedOperation( + VOID + ) const = 0; +}; + +// +// RQ_ and GL_ CUSTOM_NOTIFICATION outputs +// +class __declspec(uuid("671e6d34-9380-4df4-b453-91129df02b24")) +ICustomNotificationProvider : public IHttpEventProvider +{ +public: + virtual + PCWSTR + QueryNotificationType( + VOID + ) = 0; +}; + +// +// RQ_REQUEST_AUTHENTICATE descriptor +// +class __declspec(uuid("304d51d0-0307-45ed-83fd-dd3fc032fdfc")) +IAuthenticationProvider : public IHttpEventProvider +{ +public: + virtual + VOID + SetUser( + _In_ IHttpUser * pUser + ) = 0; +}; + +// +// RQ_MAP_REQUEST_HANDLER +// +class __declspec(uuid("fea3ce6b-e346-47e7-b2a6-ad265baeff2c")) +IMapHandlerProvider : public IHttpEventProvider +{ +public: + virtual + HRESULT + SetScriptName( + _In_reads_(cchScriptName) + PCWSTR pszScriptName, + _In_ DWORD cchScriptName + ) = 0; + + virtual + VOID + SetScriptMap( + _In_ IScriptMapInfo * pScriptMap + ) = 0; + + virtual + VOID + SetFileInfo( + _In_ IHttpFileInfo * pFileInfo + ) = 0; +}; + +// +// RQ_MAP_PATH +// +class __declspec(uuid("8efdf557-a8f1-4bc9-b462-6df3b038a59a")) +IMapPathProvider : public IHttpEventProvider +{ +public: + virtual + PCWSTR + GetUrl( + VOID + ) const = 0; + + virtual + PCWSTR + GetPhysicalPath( + VOID + ) const = 0; + + virtual + HRESULT + SetPhysicalPath( + _In_reads_(cchPhysicalPath) + PCWSTR pszPhysicalPath, + _In_ DWORD cchPhysicalPath + ) = 0; +}; + +// +// RQ_SEND_RESPONSE +// +class __declspec(uuid("57f2e7bc-0bcf-4a9f-94a4-10e55c6e5b51")) +ISendResponseProvider : public IHttpEventProvider +{ +public: + virtual + BOOL + GetHeadersBeingSent( + VOID + ) const = 0; + + virtual + DWORD + GetFlags( + VOID + ) const = 0; + + virtual + VOID + SetFlags( + _In_ DWORD dwFlags + ) = 0; + + virtual + HTTP_LOG_DATA * + GetLogData( + VOID + ) const = 0; + + virtual + HRESULT + SetLogData( + _In_ HTTP_LOG_DATA * pLogData + ) = 0; + + virtual + BOOL + GetReadyToLogData( + VOID + ) const = 0; +}; + +// +// RQ_READ_ENTITY +// +class __declspec(uuid("fe6d905a-99b8-49fd-b389-cfc809562b81")) +IReadEntityProvider : public IHttpEventProvider +{ +public: + virtual + VOID + GetEntity( + _Outptr_result_bytebuffer_to_(*pcbBuffer, *pcbData) + PVOID * ppBuffer, + _Out_ DWORD * pcbData, + _Out_ DWORD * pcbBuffer + ) = 0; + + virtual + VOID + SetEntity( + _In_reads_(cbBuffer) + PVOID pBuffer, + _In_ DWORD cbData, + _In_ DWORD cbBuffer + ) = 0; +}; + +// +// GL_PRE_BEGIN_REQUEST provider +// +class __declspec(uuid("fb715d26-aff9-476a-8fc0-6b1acb3d1098")) +IPreBeginRequestProvider : public IHttpEventProvider +{ +public: + virtual + IHttpContext * + GetHttpContext( + VOID + ) = 0; +}; + +// +// GL_APPLICATION_START provider +// +class __declspec(uuid("1de2c71c-c126-4512-aed3-f4f885e14997")) +IHttpApplicationProvider : public IHttpEventProvider +{ +public: + virtual + IHttpApplication * + GetApplication( + VOID + ) = 0; +}; + +typedef IHttpApplicationProvider IHttpApplicationStartProvider; + +class __declspec(uuid("ba32d330-9ea8-4b9e-89f1-8c76a323277f")) +IHttpModuleFactory; + +// +// GL_APPLICATION_RESOLVE_MODULES provider +// +class __declspec(uuid("0617d9b9-e20f-4a9f-94f9-35403b3be01e")) +IHttpApplicationResolveModulesProvider : public IHttpApplicationProvider +{ +public: + virtual + HRESULT + RegisterModule( + _In_ HTTP_MODULE_ID parentModuleId, + _In_ IHttpModuleFactory * pModuleFactory, + _In_ PCWSTR pszModuleName, + _In_ PCWSTR pszModuleType, + _In_ PCWSTR pszModulePreCondition, + _In_ DWORD dwRequestNotifications, + _In_ DWORD dwPostRequestNotifications + ) = 0; + + virtual + HRESULT + SetPriorityForRequestNotification( + _In_ PCWSTR pszModuleName, + _In_ DWORD dwRequestNotification, + _In_ PCWSTR pszPriorityAlias + ) = 0; +}; + +// +// GL_APPLICATION_STOP provider +// +typedef IHttpApplicationProvider IHttpApplicationStopProvider; + +// +// GL_RSCA_QUERY provider +// +class __declspec(uuid("63fdc43f-934a-4ee5-bcd8-7e7b50b75605")) +IGlobalRSCAQueryProvider : public IHttpEventProvider +{ +public: + virtual + PCWSTR + GetFunctionName( + VOID + ) const = 0; + + virtual + PCWSTR + GetFunctionParameters( + VOID + ) const = 0; + + virtual + + HRESULT + GetOutputBuffer( + _In_ DWORD cbBuffer, + _Outptr_result_bytebuffer_to_(cbBuffer, 0) + BYTE ** ppbBuffer + ) = 0; + + virtual + HRESULT + ResizeOutputBuffer( + _In_ DWORD cbNewBuffer, + _In_ _In_range_(<=, cbNewBuffer) + DWORD cbBytesToCopy, + _Inout_ _At_(*ppbBuffer, _Pre_readable_size_(cbBytesToCopy) _Post_readable_size_(cbBytesToCopy) _Post_writable_size_(cbNewBuffer)) + BYTE ** ppbBuffer + ) = 0; + + virtual + VOID + SetResult( + _In_ DWORD cbData, + _In_ HRESULT hr + ) = 0; +}; + +// +// GL_STOP_LISTENING +// +class __declspec(uuid("41f9a601-e25d-4ac8-8a1f-635698a30ab9")) +IGlobalStopListeningProvider : public IHttpEventProvider +{ +public: + virtual + BOOL + DrainRequestsGracefully( + VOID + ) const = 0; +}; + +// +// GL_CACHE_OPERATION +// +class __declspec(uuid("58925fb9-7c5e-4684-833b-4a04e1286690")) +ICacheProvider : public IHttpEventProvider +{ +public: + virtual + CACHE_OPERATION + GetCacheOperation( + VOID + ) const = 0; + + virtual + IHttpCacheKey * + GetCacheKey( + VOID + ) const = 0; + + virtual + IHttpCacheSpecificData * + GetCacheRecord( + VOID + ) const = 0; + + virtual + VOID + SetCacheRecord( + _In_ IHttpCacheSpecificData * pCacheRecord + ) = 0; + + virtual + IHttpTraceContext * + GetTraceContext( + VOID + ) const = 0; +}; + +// +// GL_CONFIGURATION_CHANGE +// +class __declspec(uuid("3405f3b4-b3d6-4b73-b5f5-4d8a3cc642ce")) +IGlobalConfigurationChangeProvider : public IHttpEventProvider +{ +public: + virtual + PCWSTR + GetChangePath( + VOID + ) const = 0; +}; + +// +// GL_FILE_CHANGE +// +class __declspec(uuid("ece31ee5-0486-4fb0-a875-6739a2d7daf5")) +IGlobalFileChangeProvider : public IHttpEventProvider +{ +public: + virtual + PCWSTR + GetFileName( + VOID + ) const = 0; + + virtual + IHttpFileMonitor * + GetFileMonitor( + VOID + ) = 0; +}; + +// +// GL_TRACE_EVENT +// +class __declspec(uuid("7c6bb150-0310-4718-a01f-6faceb62dc1d")) +IGlobalTraceEventProvider : public IHttpEventProvider +{ +public: + virtual + HRESULT + GetTraceEvent( + _Outptr_ + HTTP_TRACE_EVENT ** ppTraceEvent + ) = 0; + + virtual + BOOL + CheckSubscription( + _In_ HTTP_MODULE_ID ModuleId + ) = 0; + + virtual + HRESULT + GetCurrentHttpRequestContext( + _Outptr_ + IHttpContext ** ppHttpContext + ) = 0; +}; + +// +// GL_THREAD_CLEANUP +// +class __declspec(uuid("6b36a149-8620-45a0-8197-00814a706e2e")) +IGlobalThreadCleanupProvider : public IHttpEventProvider +{ +public: + virtual + IHttpApplication * + GetApplication( + VOID + ) = 0; +}; + +// +// GL_APPLICATION_PRELOAD +// +class __declspec(uuid("2111f8d6-0c41-4ff7-bd45-5c04c7e91a73")) +IGlobalApplicationPreloadProvider : public IHttpEventProvider +{ +public: + virtual + HRESULT + CreateContext( + _Outptr_ IHttpContext ** ppHttpContext + ) = 0; + + virtual + HRESULT + ExecuteRequest( + _In_ IHttpContext * pHttpContext, + _In_ IHttpUser * pHttpUser + ) = 0; +}; + +// +// GL_APPLICATION_PRELOAD +// IGlobalApplicationPreloadProvider2 is available on Windows 8 and newer +// + +class __declspec(uuid("251db2dd-81e7-44ce-ae02-46529f2d71ea")) +IGlobalApplicationPreloadProvider2 : public IGlobalApplicationPreloadProvider +{ +public: + virtual + BOOL + IsProcessRecycled( + VOID + ) const = 0; +}; + +// +// GL_SUSPEND_PROCESS +// +class __declspec(uuid("7fd8f303-1031-4e50-918a-b7b916fd6c54")) +IGlobalSuspendProcessCallback : public IHttpEventProvider +{ +public: + virtual + HRESULT + Resume( + VOID + ) = 0; +}; + +class CHttpModule +{ +public: + // RQ_BEGIN_REQUEST + + virtual + REQUEST_NOTIFICATION_STATUS + OnBeginRequest( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostBeginRequest( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + // RQ_AUTHENTICATE_REQUEST + + virtual + REQUEST_NOTIFICATION_STATUS + OnAuthenticateRequest( + _In_ IHttpContext * pHttpContext, + _In_ IAuthenticationProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostAuthenticateRequest( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + // RQ_AUTHORIZE_REQUEST + + virtual + REQUEST_NOTIFICATION_STATUS + OnAuthorizeRequest( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostAuthorizeRequest( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + // RQ_RESOLVE_REQUEST_CACHE + + virtual + REQUEST_NOTIFICATION_STATUS + OnResolveRequestCache( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostResolveRequestCache( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + // RQ_MAP_REQUEST_HANDLER + + virtual + REQUEST_NOTIFICATION_STATUS + OnMapRequestHandler( + _In_ IHttpContext * pHttpContext, + _In_ IMapHandlerProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostMapRequestHandler( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + // RQ_ACQUIRE_REQUEST_STATE + + virtual + REQUEST_NOTIFICATION_STATUS + OnAcquireRequestState( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostAcquireRequestState( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + // RQ_PRE_EXECUTE_REQUEST_HANDLER + + virtual + REQUEST_NOTIFICATION_STATUS + OnPreExecuteRequestHandler( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostPreExecuteRequestHandler( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + // RQ_EXECUTE_REQUEST_HANDLER + + virtual + REQUEST_NOTIFICATION_STATUS + OnExecuteRequestHandler( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostExecuteRequestHandler( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + // RQ_RELEASE_REQUEST_STATE + + virtual + REQUEST_NOTIFICATION_STATUS + OnReleaseRequestState( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostReleaseRequestState( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + // RQ_UPDATE_REQUEST_CACHE + + virtual + REQUEST_NOTIFICATION_STATUS + OnUpdateRequestCache( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostUpdateRequestCache( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + // RQ_LOG_REQUEST + + virtual + REQUEST_NOTIFICATION_STATUS + OnLogRequest( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostLogRequest( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + // RQ_END_REQUEST + + virtual + REQUEST_NOTIFICATION_STATUS + OnEndRequest( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + virtual + REQUEST_NOTIFICATION_STATUS + OnPostEndRequest( + _In_ IHttpContext * pHttpContext, + _In_ IHttpEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + // RQ_SEND_RESPONSE + + virtual + REQUEST_NOTIFICATION_STATUS + OnSendResponse( + _In_ IHttpContext * pHttpContext, + _In_ ISendResponseProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + // RQ_MAP_PATH + + virtual + REQUEST_NOTIFICATION_STATUS + OnMapPath( + _In_ IHttpContext * pHttpContext, + _In_ IMapPathProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + // RQ_READ_ENTITY + + virtual + REQUEST_NOTIFICATION_STATUS + OnReadEntity( + _In_ IHttpContext * pHttpContext, + _In_ IReadEntityProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + // RQ_CUSTOM_NOTIFICATION + + virtual + REQUEST_NOTIFICATION_STATUS + OnCustomRequestNotification( + _In_ IHttpContext * pHttpContext, + _In_ ICustomNotificationProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + // Completion + + virtual + REQUEST_NOTIFICATION_STATUS + OnAsyncCompletion( + _In_ IHttpContext * pHttpContext, + _In_ DWORD dwNotification, + _In_ BOOL fPostNotification, + _In_ IHttpEventProvider * pProvider, + _In_ IHttpCompletionInfo * pCompletionInfo + ) + { + UNREFERENCED_PARAMETER( pHttpContext ); + UNREFERENCED_PARAMETER( dwNotification ); + UNREFERENCED_PARAMETER( fPostNotification ); + UNREFERENCED_PARAMETER( pProvider ); + UNREFERENCED_PARAMETER( pCompletionInfo ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CHttpModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return RQ_NOTIFICATION_CONTINUE; + } + + virtual + VOID + Dispose( + VOID + ) + { + delete this; + } + + protected: + + CHttpModule() + {} + + virtual + ~CHttpModule() + {} +}; + +class CGlobalModule +{ +public: + + // GL_STOP_LISTENING + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalStopListening( + _In_ IGlobalStopListeningProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_CACHE_CLEANUP + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalCacheCleanup( + VOID + ) + { + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_CACHE_OPERATION + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalCacheOperation( + _In_ ICacheProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_HEALTH_CHECK + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalHealthCheck( + VOID + ) + { + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_CONFIGURATION_CHANGE + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalConfigurationChange( + _In_ IGlobalConfigurationChangeProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_FILE_CHANGE + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalFileChange( + _In_ IGlobalFileChangeProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_PRE_BEGIN_REQUEST + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalPreBeginRequest( + _In_ IPreBeginRequestProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_APPLICATION_START + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalApplicationStart( + _In_ IHttpApplicationStartProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_APPLICATION_RESOLVE_MODULES + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalApplicationResolveModules( + _In_ IHttpApplicationResolveModulesProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_APPLICATION_STOP + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalApplicationStop( + _In_ IHttpApplicationStopProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_RSCA_QUERY + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalRSCAQuery( + _In_ IGlobalRSCAQueryProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_TRACE_EVENT + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalTraceEvent( + _In_ IGlobalTraceEventProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_CUSTOM_NOTIFICATION + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalCustomNotification( + _In_ ICustomNotificationProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + virtual + VOID + Terminate( + VOID + ) = 0; + + // GL_THREAD_CLEANUP + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalThreadCleanup( + _In_ IGlobalThreadCleanupProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_APPLICATION_PRELOAD + + virtual + GLOBAL_NOTIFICATION_STATUS + OnGlobalApplicationPreload( + _In_ IGlobalApplicationPreloadProvider * pProvider + ) + { + UNREFERENCED_PARAMETER( pProvider ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } + + // GL_SUSPEND_PROCESS + virtual + GLOBAL_NOTIFICATION_STATUS + OnSuspendProcess( + _Outptr_ IGlobalSuspendProcessCallback ** pCallback + ) + { + UNREFERENCED_PARAMETER( pCallback ); + OutputDebugStringA( + "This module subscribed to event "); + OutputDebugStringA(__FUNCTION__); + OutputDebugStringA( + " but did not override the method in its CGlobalModule implementation." + " Please check the method signature to make sure it matches the corresponding method.\n"); + DebugBreak(); + + return GL_NOTIFICATION_CONTINUE; + } +}; + +class __declspec(uuid("85c1679c-0b21-491c-afb5-c7b5c86464c4")) +IModuleAllocator +{ +public: + virtual + + _Ret_opt_ _Post_writable_byte_size_(cbAllocation) + VOID * + AllocateMemory( + _In_ DWORD cbAllocation + ) = 0; +}; + +class __declspec(uuid("ba32d330-9ea8-4b9e-89f1-8c76a323277f")) +IHttpModuleFactory +{ +public: + virtual + HRESULT + GetHttpModule( + _Outptr_ CHttpModule ** ppModule, + _In_ IModuleAllocator * pAllocator + ) = 0; + + virtual + VOID + Terminate( + VOID + ) = 0; +}; + +// +// Register-module descriptor +// +class __declspec(uuid("07e5beb3-b798-459d-a98a-e6c485b2b3bc")) +IHttpModuleRegistrationInfo +{ +public: + virtual + PCWSTR + GetName( + VOID + ) const = 0; + + virtual + HTTP_MODULE_ID + GetId( + VOID + ) const = 0; + + virtual + HRESULT + SetRequestNotifications( + _In_ IHttpModuleFactory * pModuleFactory, + _In_ DWORD dwRequestNotifications, + _In_ DWORD dwPostRequestNotifications + ) = 0; + + virtual + HRESULT + SetGlobalNotifications( + _In_ CGlobalModule * pGlobalModule, + _In_ DWORD dwGlobalNotifications + ) = 0; + + virtual + HRESULT + SetPriorityForRequestNotification( + _In_ DWORD dwRequestNotification, + _In_ PCWSTR pszPriority + ) = 0; + + virtual + HRESULT + SetPriorityForGlobalNotification( + _In_ DWORD dwGlobalNotification, + _In_ PCWSTR pszPriority + ) = 0; +}; + +class __declspec(uuid("4fd11cbf-8cc5-418e-8000-c9e765f88533")) +IHttpModuleRegistrationInfo2 : public IHttpModuleRegistrationInfo +{ +public: + virtual + HRESULT + SetPriorityForPostRequestNotification( + _In_ DWORD dwPostRequestNotification, + _In_ PCWSTR pszPriority + ) = 0; +}; +// +// Register Module entry point +// + +typedef +HRESULT +(WINAPI * PFN_REGISTERMODULE)( + DWORD dwServerVersion, + IHttpModuleRegistrationInfo * pModuleInfo, + IHttpServer * pGlobalInfo +); + +#define MODULE_REGISTERMODULE "RegisterModule" + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/httptrace.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httptrace.h new file mode 100644 index 0000000000000000000000000000000000000000..d3993236e021740c1c69ec7c5dd0c165a2be421d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/httptrace.h @@ -0,0 +1,210 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#ifndef _HTTP_TRACE_H +#define _HTTP_TRACE_H + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// HTTP_TRACE_TYPE contains type that are supported by +// the IIS trace infrastructure. +// The enum values match the equivalent VARIANT types. +// +enum HTTP_TRACE_TYPE +{ + HTTP_TRACE_TYPE_BYTE = 17, // mof type "uint8" + HTTP_TRACE_TYPE_USHORT = 18, // mof type "uint16" + HTTP_TRACE_TYPE_ULONG = 19, // mof type "uint32" + HTTP_TRACE_TYPE_ULONGLONG = 21, // mof type "uint64" + HTTP_TRACE_TYPE_CHAR = 16, // mof type "int8" + HTTP_TRACE_TYPE_SHORT = 2, // mof type "int16" + HTTP_TRACE_TYPE_LONG = 3, // mof type "int32" + HTTP_TRACE_TYPE_LONGLONG = 20, // mof type "int64" + HTTP_TRACE_TYPE_LPCWSTR = 31, // mof type string "w" + HTTP_TRACE_TYPE_LPCSTR = 30, // mof type string "a" + HTTP_TRACE_TYPE_LPCGUID = 72, // mof type object "Guid" + HTTP_TRACE_TYPE_BOOL = 11, // mof type object "boolean" +}; + +// Bit values for the HTTP_TRACE_EVENT.dwFlags + +// +// If HTTP_TRACE_EVENT_FLAG_STATIC_DESCRIPTIVE_FIELDS is set then +// consumers of the trace event can assume that +// pProviderGuid, pAreaGuid, pszEventName in the HTTP_TRACE_EVENT +// and pszName and pszDescription in each HTTP_TRACE_EVENT_ITEM +// entry are static (their memory is available throughout the +// process lifetime). If event needs to be buffered there is no need +// to copy values for these fields +// +#define HTTP_TRACE_EVENT_FLAG_STATIC_DESCRIPTIVE_FIELDS 0x01 + +// +// In addition to TRACE_LEVEL_FATAL - TRACE_LEVEL_VERBOSE +// +#define HTTP_TRACE_LEVEL_START 6 +#define HTTP_TRACE_LEVEL_END 7 + +struct HTTP_TRACE_EVENT_ITEM; + +// +// Each Trace event will need to be described with the HTTP_TRACE_EVENT structure. +// It is designed to contain all the information relevant to ETW, +// but ETW is not the only consumer +// +// + +struct HTTP_TRACE_EVENT +{ + // + // Trace Provider (such as "WWW Server") + // + LPCGUID pProviderGuid; + // + // Trace Area Flag ( a bit flag that may represent area such as "Authentication") + // + DWORD dwArea; + // + // GUID equivalent to the Area Flag + // + LPCGUID pAreaGuid; + // + // ID of the event (in the ETW terminology this would be the Event Type) + // + DWORD dwEvent; + // + // String matching the event ID (dwEvent) + // + LPCWSTR pszEventName; + // + // Event version + // + DWORD dwEventVersion; + // + // Verbosity of the event ( General, FatalError, Error, Warning, Info, Verbose) + // In the ETW terminology this is the "event level" + DWORD dwVerbosity; + // + // Activity GUID. For the http request based event + // it may represent the request ID + // + LPCGUID pActivityGuid; + // + // Additional GUID to allow to associate + // multiple related activities + // + LPCGUID pRelatedActivityGuid; + // + // Optional timestamp (in GetTickCount() ticks ) + // If set to 0 then system will fill in the TickCount. + // + DWORD dwTimeStamp; + // + // Flags (reserved: Set to 0) + // + DWORD dwFlags; + // + // + // Number of entries in the structured + // description of the event + // Note that the maximum allowed number of EventTraceItems + // should match the ETW internal limit of 16. + // + DWORD cEventItems; + // + // Array of individual entries describing + // the event + // + _Field_size_full_(cEventItems) + struct HTTP_TRACE_EVENT_ITEM * pEventItems; +}; + + +// Each HTTP_TRACE_EVENT can have multiple items or elements that describe the event +// (for example the "GENERAL_REQUEST_START" event contains an item with the Request URL) + +struct HTTP_TRACE_EVENT_ITEM +{ + // + // Friendly name of the item (for example "RequestUrl") + // + LPCWSTR pszName; + // + // Data type that pbData is pointed to + // + enum HTTP_TRACE_TYPE dwDataType; + // + // Pointer to the actual data (needs to be casted based on the dwDataType) + // For example the HTTP_TRACE_EVENT_ITEM describing HTTP request URL would have + // the pbData pointing to the actual URL string + // + _Field_size_bytes_full_(cbData) + PBYTE pbData; + // + // # of bytes of the actual data (it should matter only for string types) + // + DWORD cbData; + // + // Additional description of the data - enumerations take advantage of this field + // (always set to NULL if not used) + // + LPCWSTR pszDataDescription; +}; + + +// +// HTTP_TRACE_CONFIGURATION is used by both trace providers and trace consumers +// Trace consumers declare the TraceProviders and TraceAreas of the interest. +// Trace providers can retrieve what areas at what verbosity is allowed +// for a given provider +// + +struct HTTP_TRACE_CONFIGURATION +{ + LPCGUID pProviderGuid; + DWORD dwAreas; + DWORD dwVerbosity; + BOOL fProviderEnabled; +}; + +// +// Definiton of the GUIDs for the TRACE Providers that ship with IIS +// or are related to IIS +// + +DEFINE_GUID( GUID_IIS_ALL_TRACE_PROVIDERS, + 0x00000000,0x0000,0x0000,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00); + +DEFINE_GUID( GUID_IIS_WWW_SERVER_TRACE_PROVIDER, + 0x3a2a4e84,0x4c21,0x4981,0xae,0x10,0x3f,0xda,0x0d,0x9b,0x0f,0x83); + +// IIS V2(Crimson/Unified) trace provider +DEFINE_GUID( GUID_IIS_WWW_SERVER_V2_TRACE_PROVIDER, + 0xde4649c9,0x15e8,0x4fea,0x9d,0x85,0x1c,0xdd,0xa5,0x20,0xc3,0x34); + +// ETW name for the provider: "ASP.NET Events +DEFINE_GUID( GUID_IIS_ASPNET_TRACE_PROVIDER, + 0xAFF081FE,0x0247,0x4275,0x9C,0x4E,0x02,0x1F,0x3D,0xC1,0xDA,0x35); + +// ETW name for the provider: "IIS: Active Server Pages (ASP)" +DEFINE_GUID( GUID_IIS_ASP_TRACE_TRACE_PROVIDER, + 0x06b94d9a,0xb15e,0x456e,0xa4,0xef,0x37,0xc9,0x84,0xa2,0xcb,0x4b); + +DEFINE_GUID( GUID_IIS_WWW_GLOBAL_TRACE_PROVIDER, + 0xd55d3bc9,0xcba9,0x44df,0x82,0x7e,0x13,0x2d,0x3a,0x45,0x96,0xc2); + +// ETW name for the provider: "IIS: WWW Isapi Extension" +DEFINE_GUID( GUID_IIS_ISAPI_TRACE_PROVIDER, + 0xa1c2040e,0x8840,0x4c31,0xba,0x11,0x98,0x71,0x03,0x1a,0x19,0xea); + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/hwebcore.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hwebcore.h new file mode 100644 index 0000000000000000000000000000000000000000..d96b27dcda1a8160d6a7c2c3ec1b3fd586f584db --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hwebcore.h @@ -0,0 +1,139 @@ +/*++ + + Copyright (c) 2004 Microsoft Corporation + + Module Name : + hostable_web_core.h + + Abstract: + + Hostable web core enables processes other than the W3WP.exe to load the IISCore + and effectively host pages without having to reverse-engineer IIS W3 core + functionality (ISAPI filter/extension support, authentication, authorization, + configuring http.sys, compression, etc.). + + This header file defines the interface between the hostable web core and the hosting process + + Note: Only single instance of the hostable web core will be allowed within one process + Attempt to initialize more than one will result in failure + + Environment: + Win32 - User Mode + + Project: + IIS7 + +--*/ + +#ifndef _HOSTABLE_WEB_CORE_H_ +#define _HOSTABLE_WEB_CORE_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// The actual names of the hostable webcore DLL and the start/stop entry points +// + +#define WEB_CORE_DLL_NAME L"hwebcore.dll" +#define WEB_CORE_ACTIVATE_DLL_ENTRY "WebCoreActivate" +#define WEB_CORE_SHUTDOWN_DLL_ENTRY "WebCoreShutdown" +#define WEB_CORE_SET_METADATA_DLL_ENTRY "WebCoreSetMetadata" + + +// +// Prototype for the WEB_CORE_SET_METADATA_DLL_ENTRY call used to +// set metadata options for a web core activation. +// +// Return values: +// +// HRESULT_FROM_WIN32( ERROR_SERVICE_ALREADY_RUNNING ) - returned if +// instance of the hostable web core is already running in the process +// +// HRESULT_FROM_WIN32( ERROR_NOT_SUPPORTED ) - returned if the metadata +// being set is not supported. +// +// HRESULT_FROM_WIN32( ERROR_INVALID_DATA ) - most likely this error +// means configuration error in the AppHostConfigFile +// +// any other error that occurs during activation will be reported +// + +typedef HRESULT +(*PFN_WEB_CORE_SET_METADATA_DLL_ENTRY) +( + IN PCWSTR pszMetadataType, + IN PCWSTR pszValue +); + + +// +// Prototype for the WEB_CORE_ACTIVATE_DLL_ENTRY call used to +// start the hostable webcore. +// Hosting process must provide path to the Application Host config file +// that contains the description of sites/applications/appools +// second parameter is meant mainly for identifying webcore instance +// when reporting NT event log events +// +// Return values: +// +// HRESULT_FROM_WIN32( ERROR_SERVICE_ALREADY_RUNNING ) - returned if +// instance of the hostable web core is already running in the process +// +// HRESULT_FROM_WIN32( ERROR_INVALID_DATA ) - most likely this error +// means configuration error in the AppHostConfigFile +// +// any other error that occurs during activation will be reported +// + +typedef HRESULT +(*PFN_WEB_CORE_ACTIVATE) +( + IN PCWSTR pszAppHostConfigFile, + IN PCWSTR pszRootWebConfigFile, + IN PCWSTR pszInstanceName +); + + +// +// Prototype for the WEB_CORE_SHUTDOWN_DLL_ENTRY call used to +// stop the hostable webcore. +// Hosting process may choose between immediate shutdown and graceful shutdown +// If graceful shutdown is chosen then hostable webcore will stop receiving +// new requests and wait for the currently executing requests to complete for certain time +// (as specified in the config) +// +// Return values: +// +// HRESULT_FROM_WIN32( ERROR_SERVICE_NOT_ACTIVE ) - returned if +// hostable web core is not running and there is nothing to stop +// +// HRESULT_FROM_WIN32( ERROR_INVALID_SERVICE_CONTROL ) - returned if shutdown +// is already in progress. Note that this error wouldn't be returned +// if current shutdown in progress been triggered by the callback thread +// (the one that notifies about config change or bad health). In that case +// host asking for shutdown will be blocked until callback thread is completed +// +// HRESULT_FROM_WIN32( ERROR_SERVICE_REQUEST_TIMEOUT ) - returned if graceful +// shutdown was requested but was not able to complete within a given period +// This is rather a WARNING because webcore gets shutdown forcefully +// if graceful shutdown attempt times out. But caller may want to be informed +// that some requests may have been forcefully cancelled +// +// any other error that occurs during termination will be reported +// + +typedef HRESULT +(*PFN_WEB_CORE_SHUTDOWN) +( + IN DWORD fImmediate +); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/hwreqchkapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hwreqchkapi.h new file mode 100644 index 0000000000000000000000000000000000000000..d9df81d3b23ab1fabe025b0fd178921d3494e322 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hwreqchkapi.h @@ -0,0 +1,150 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + hwreqchkapi.h + +Abstract: + + The header that defines the interface used by the HWREQCHK APIs + +--*/ + +#ifndef _hwreqchkapi_h_ +#define _hwreqchkapi_h_ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#include +#include + +#if defined(__cplusplus) +extern "C" { +#endif // defined(__cplusplus) + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// The maximum supported size for property, requirement and rule names +#define HWREQCHK_MAX_PROPERTY_VALUE 256 +#define HWREQCHK_MAX_HARDWARE_REQUIREMENT_NAME 64 +#define HWREQCHK_MAX_HARDWARE_RULE_NAME 64 + +typedef enum HWREQCHK_TARGET_RELEASE +{ + HWREQCHK_TARGET_RELEASE_INVALID, + HWREQCHK_TARGET_RELEASE_WIN11_VNEXT, // For newer versions of Windows not yet released + HWREQCHK_TARGET_RELEASE_WIN11_21H2, + HWREQCHK_TARGET_RELEASE_WIN11_22H2, + HWREQCHK_TARGET_RELEASE_SRV2022_21H2 +} HWREQCHK_TARGET_RELEASE; + +typedef enum HWREQCHK_PRODUCT_TYPE +{ + HWREQCHK_PRODUCT_INVALID, + HWREQCHK_PRODUCT_DEFAULT, + HWREQCHK_PRODUCT_DESKTOP, + HWREQCHK_PRODUCT_SERVER, + HWREQCHK_PRODUCT_IOTENTERPRISE, + HWREQCHK_PRODUCT_IOT, + HWREQCHK_PRODUCT_IOTENTERPRISE_LTSC +} HWREQCHK_PRODUCT_TYPE; + +typedef enum HWREQCHK_CPU_VENDOR +{ + HWREQCHK_CPU_VENDOR_OTHER = 0, + HWREQCHK_CPU_VENDOR_AMD = 1, + HWREQCHK_CPU_VENDOR_INTEL = 2, + HWREQCHK_CPU_VENDOR_QUALCOMM = 3 +} HWREQCHK_CPU_VENDOR; + +typedef struct HWREQCHK_DEVICE_HARDWARE_EVALUATION +{ + WCHAR RuleName[HWREQCHK_MAX_HARDWARE_RULE_NAME]; + BOOL Succeeded; +} HWREQCHK_DEVICE_HARDWARE_EVALUATION; + +typedef struct HWREQCHK_DEVICE_HARDWARE_REQUIREMENT +{ + HWREQCHK_TARGET_RELEASE TargetRelease; + HWREQCHK_PRODUCT_TYPE ProductType; + ULONG Revision; + BOOL IsLatestRequirementForProductType; + WCHAR RequirementName[HWREQCHK_MAX_HARDWARE_REQUIREMENT_NAME]; +} HWREQCHK_DEVICE_HARDWARE_REQUIREMENT; + +typedef struct HWREQCHK_DEVICE_HARDWARE_SYSINFO +{ + // + // Hardware System inventory information + // + + // Supported processor feature information + BOOL SSE2ProcessorSupport; + BOOL NXProcessorSupport; + BOOL CompareExchange128Support; + BOOL LahfSahfSupport; + BOOL PrefetchWSupport; + BOOL ArmV81ProcessorSupport; + + // UEFI/Firmware security feature information + BOOL SecureBootCapable; + ULONG TpmVersion; + + // Device hardware information + ULONG RamMB; + ULONG SystemDiskSizeMB; + + // CPU specific information + ULONG CpuMhz; + ULONG CpuCoreCount; + ULONG CpuFamily; + ULONG CpuModel; + ULONG CpuStepping; + ULONG Platform; + HWREQCHK_CPU_VENDOR CpuVendor; + ULONG Architecture; + WCHAR ProcessorName[HWREQCHK_MAX_PROPERTY_VALUE]; + + // OS specific information + BOOL IsServer; + WLDP_WINDOWS_LOCKDOWN_MODE LockdownMode; + ULONG ProductOS; + WCHAR ProductName[HWREQCHK_MAX_PROPERTY_VALUE]; +} HWREQCHK_DEVICE_HARDWARE_SYSINFO; + +HRESULT +WINAPI +EvaluateHardwareRequirement( + _In_ const HWREQCHK_DEVICE_HARDWARE_REQUIREMENT* hardwareRequirement, + _Out_ BOOL* evaluationResult, + _Out_opt_ HWREQCHK_DEVICE_HARDWARE_EVALUATION** constraintsEvaluated, + _Out_opt_ ULONG* constraintEvaluationCount); + +HRESULT +WINAPI +GetLatestHardwareRequirement( + _In_ HWREQCHK_PRODUCT_TYPE productType, + _Out_ HWREQCHK_DEVICE_HARDWARE_REQUIREMENT* deviceHardwareRequirement); + +HRESULT +WINAPI +GetHardwareRequirements( + _Out_ HWREQCHK_DEVICE_HARDWARE_REQUIREMENT** deviceHardwareRequirements, + _Out_ ULONG* requirementCount); + +HRESULT +WINAPI +GetHardwareRequirementSystemInfo( + _Out_ HWREQCHK_DEVICE_HARDWARE_SYSINFO* deviceHardwareSystemInfo); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ + +#if defined(__cplusplus) +} +#endif // defined(__cplusplus) + +#endif // _hwreqchkapi_h_ \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/hxhelppaneproxy.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hxhelppaneproxy.h new file mode 100644 index 0000000000000000000000000000000000000000..d3a20deb337ac6a1c3ee6670b79b278ba4b444dc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hxhelppaneproxy.h @@ -0,0 +1,338 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __hxhelppaneproxy_h__ +#define __hxhelppaneproxy_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IHxHelpPane_FWD_DEFINED__ +#define __IHxHelpPane_FWD_DEFINED__ +typedef interface IHxHelpPane IHxHelpPane; + +#endif /* __IHxHelpPane_FWD_DEFINED__ */ + + +#ifndef __IHxInteractiveUser_FWD_DEFINED__ +#define __IHxInteractiveUser_FWD_DEFINED__ +typedef interface IHxInteractiveUser IHxInteractiveUser; + +#endif /* __IHxInteractiveUser_FWD_DEFINED__ */ + + +#ifndef __HxHelpPane_FWD_DEFINED__ +#define __HxHelpPane_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class HxHelpPane HxHelpPane; +#else +typedef struct HxHelpPane HxHelpPane; +#endif /* __cplusplus */ + +#endif /* __HxHelpPane_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_hxhelppaneproxy_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + +extern RPC_IF_HANDLE __MIDL_itf_hxhelppaneproxy_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hxhelppaneproxy_0000_0000_v0_0_s_ifspec; + +#ifndef __IHxHelpPane_INTERFACE_DEFINED__ +#define __IHxHelpPane_INTERFACE_DEFINED__ + +/* interface IHxHelpPane */ +/* [hidden][oleautomation][helpstring][uuid][unique][object] */ + + +EXTERN_C const IID IID_IHxHelpPane; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8cec5884-07a1-11d9-b15e-000d56bfe6ee") + IHxHelpPane : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE DisplayTask( + /* [in] */ __RPC__in BSTR bstrUrl) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisplayContents( + /* [annotation][in] */ + _In_opt_ BSTR bstrUrl) = 0; + + virtual HRESULT STDMETHODCALLTYPE DisplaySearchResults( + /* [in] */ __RPC__in BSTR bstrSearchQuery) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHxHelpPaneVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHxHelpPane * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHxHelpPane * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHxHelpPane * This); + + DECLSPEC_XFGVIRT(IHxHelpPane, DisplayTask) + HRESULT ( STDMETHODCALLTYPE *DisplayTask )( + __RPC__in IHxHelpPane * This, + /* [in] */ __RPC__in BSTR bstrUrl); + + DECLSPEC_XFGVIRT(IHxHelpPane, DisplayContents) + HRESULT ( STDMETHODCALLTYPE *DisplayContents )( + __RPC__in IHxHelpPane * This, + /* [annotation][in] */ + _In_opt_ BSTR bstrUrl); + + DECLSPEC_XFGVIRT(IHxHelpPane, DisplaySearchResults) + HRESULT ( STDMETHODCALLTYPE *DisplaySearchResults )( + __RPC__in IHxHelpPane * This, + /* [in] */ __RPC__in BSTR bstrSearchQuery); + + END_INTERFACE + } IHxHelpPaneVtbl; + + interface IHxHelpPane + { + CONST_VTBL struct IHxHelpPaneVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHxHelpPane_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHxHelpPane_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHxHelpPane_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHxHelpPane_DisplayTask(This,bstrUrl) \ + ( (This)->lpVtbl -> DisplayTask(This,bstrUrl) ) + +#define IHxHelpPane_DisplayContents(This,bstrUrl) \ + ( (This)->lpVtbl -> DisplayContents(This,bstrUrl) ) + +#define IHxHelpPane_DisplaySearchResults(This,bstrSearchQuery) \ + ( (This)->lpVtbl -> DisplaySearchResults(This,bstrSearchQuery) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHxHelpPane_INTERFACE_DEFINED__ */ + + +#ifndef __IHxInteractiveUser_INTERFACE_DEFINED__ +#define __IHxInteractiveUser_INTERFACE_DEFINED__ + +/* interface IHxInteractiveUser */ +/* [hidden][oleautomation][helpstring][uuid][unique][object] */ + + +EXTERN_C const IID IID_IHxInteractiveUser; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8cec595b-07a1-11d9-b15e-000d56bfe6ee") + IHxInteractiveUser : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Execute( + /* [in] */ __RPC__in LPCWSTR pcUrl) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHxInteractiveUserVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHxInteractiveUser * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHxInteractiveUser * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHxInteractiveUser * This); + + DECLSPEC_XFGVIRT(IHxInteractiveUser, Execute) + HRESULT ( STDMETHODCALLTYPE *Execute )( + __RPC__in IHxInteractiveUser * This, + /* [in] */ __RPC__in LPCWSTR pcUrl); + + END_INTERFACE + } IHxInteractiveUserVtbl; + + interface IHxInteractiveUser + { + CONST_VTBL struct IHxInteractiveUserVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHxInteractiveUser_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHxInteractiveUser_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHxInteractiveUser_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHxInteractiveUser_Execute(This,pcUrl) \ + ( (This)->lpVtbl -> Execute(This,pcUrl) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHxInteractiveUser_INTERFACE_DEFINED__ */ + + + +#ifndef __HelpPane_LIBRARY_DEFINED__ +#define __HelpPane_LIBRARY_DEFINED__ + +/* library HelpPane */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_HelpPane; + +EXTERN_C const CLSID CLSID_HxHelpPane; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8cec58e7-07a1-11d9-b15e-000d56bfe6ee") +HxHelpPane; +#endif +#endif /* __HelpPane_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_hxhelppaneproxy_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_hxhelppaneproxy_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_hxhelppaneproxy_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/hypervdevicevirtualization.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hypervdevicevirtualization.h new file mode 100644 index 0000000000000000000000000000000000000000..cc4d8e1ea8d995b54fa72375e2e5d296b850fe3e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/hypervdevicevirtualization.h @@ -0,0 +1,397 @@ +// HyperVDeviceVirtualization.h: ApiSet Contract for ext-ms-win-hyperv-devicevirtualization-l1-1 +// Copyright (c) Microsoft Corporation. All rights reserved. + +#ifndef _HYPERV_DEVICE_VIRTUALIZATION_H_ +#define _HYPERV_DEVICE_VIRTUALIZATION_H_ + +#if defined(_MSC_VER) && (_MSC_VER >= 1200) +#pragma once +#endif + +#include +#include +#include +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void* HDV_HOST; +typedef void* HDV_DEVICE; + +typedef enum HDV_DEVICE_TYPE +{ + HdvDeviceTypeUndefined = 0, + HdvDeviceTypePCI + +} HDV_DEVICE_TYPE; + +typedef enum HDV_DEVICE_HOST_FLAGS +{ + HdvDeviceHostFlagNone = 0, + HdvDeviceHostFlagInitializeComSecurity = 1, +} HDV_DEVICE_HOST_FLAGS; +DEFINE_ENUM_FLAG_OPERATORS(HDV_DEVICE_HOST_FLAGS); + +#ifndef _HDV_COMMON_DEFINITIONS_ +#define _HDV_COMMON_DEFINITIONS_ + +typedef struct HDV_PCI_PNP_ID +{ + UINT16 VendorID; + UINT16 DeviceID; + UINT8 RevisionID; + UINT8 ProgIf; + UINT8 SubClass; + UINT8 BaseClass; + UINT16 SubVendorID; + UINT16 SubSystemID; + +} HDV_PCI_PNP_ID, *PHDV_PCI_PNP_ID; + +typedef enum HDV_PCI_BAR_SELECTOR +{ + HDV_PCI_BAR0 = 0, + HDV_PCI_BAR1, + HDV_PCI_BAR2, + HDV_PCI_BAR3, + HDV_PCI_BAR4, + HDV_PCI_BAR5 + +} HDV_PCI_BAR_SELECTOR; + +typedef enum HDV_DOORBELL_FLAGS +{ + HDV_DOORBELL_FLAG_TRIGGER_SIZE_ANY = 0, + HDV_DOORBELL_FLAG_TRIGGER_SIZE_BYTE = 1, + HDV_DOORBELL_FLAG_TRIGGER_SIZE_WORD = 2, + HDV_DOORBELL_FLAG_TRIGGER_SIZE_DWORD = 3, + HDV_DOORBELL_FLAG_TRIGGER_SIZE_QWORD = 4, + HDV_DOORBELL_FLAG_TRIGGER_ANY_VALUE = 0x80000000 +} HDV_DOORBELL_FLAGS; + +typedef enum HDV_MMIO_MAPPING_FLAGS +{ + HdvMmioMappingFlagNone = 0x00000000, + HdvMmioMappingFlagWriteable = 0x00000001, + HdvMmioMappingFlagExecutable = 0x00000002 + +} HDV_MMIO_MAPPING_FLAGS; + +DEFINE_ENUM_FLAG_OPERATORS(HDV_MMIO_MAPPING_FLAGS); + +#endif // _HDV_COMMON_DEFINITIONS_ + +#define HDV_PCI_BAR_COUNT 6 + +HRESULT +WINAPI +HdvInitializeDeviceHost( + _In_ HCS_SYSTEM computeSystem, + _Out_ HDV_HOST* deviceHostHandle + ); + +HRESULT +WINAPI +HdvInitializeDeviceHostEx( + _In_ HCS_SYSTEM computeSystem, + _In_ HDV_DEVICE_HOST_FLAGS flags, + _Out_ HDV_HOST* deviceHostHandle + ); + +HRESULT +WINAPI +HdvTeardownDeviceHost( + _In_ HDV_HOST deviceHostHandle + ); + +HRESULT +WINAPI +HdvCreateDeviceInstance( + _In_ HDV_HOST deviceHostHandle, + _In_ HDV_DEVICE_TYPE deviceType, + _In_ const GUID* deviceClassId, + _In_ const GUID* deviceInstanceId, + _In_ const VOID* deviceInterface, + _In_opt_ VOID* deviceContext, + _Out_ HDV_DEVICE* deviceHandle + ); + +HRESULT +WINAPI +HdvReadGuestMemory( + _In_ HDV_DEVICE requestor, + _In_ UINT64 guestPhysicalAddress, + _In_ UINT32 byteCount, + _Out_writes_(byteCount) BYTE* buffer + ); + +HRESULT +WINAPI +HdvWriteGuestMemory( + _In_ HDV_DEVICE requestor, + _In_ UINT64 guestPhysicalAddress, + _In_ UINT32 byteCount, + _In_reads_(byteCount) const BYTE* buffer + ); + +HRESULT +WINAPI +HdvCreateGuestMemoryAperture( + _In_ HDV_DEVICE requestor, + _In_ UINT64 guestPhysicalAddress, + _In_ UINT32 byteCount, + _In_ BOOL writeProtected, + _Out_ PVOID* mappedAddress + ); + +HRESULT +WINAPI +HdvDestroyGuestMemoryAperture( + _In_ HDV_DEVICE requestor, + _In_ PVOID mappedAddress + ); + +HRESULT +WINAPI +HdvDeliverGuestInterrupt( + _In_ HDV_DEVICE requestor, + _In_ UINT64 msiAddress, + _In_ UINT32 msiData + ); + +HRESULT +WINAPI +HdvRegisterDoorbell( + _In_ HDV_DEVICE requestor, + _In_ HDV_PCI_BAR_SELECTOR BarIndex, + _In_ UINT64 BarOffset, + _In_ UINT64 TriggerValue, + _In_ UINT64 Flags, + _In_ HANDLE DoorbellEvent + ); + +HRESULT +WINAPI +HdvUnregisterDoorbell( + _In_ HDV_DEVICE requestor, + _In_ HDV_PCI_BAR_SELECTOR BarIndex, + _In_ UINT64 BarOffset, + _In_ UINT64 TriggerValue, + _In_ UINT64 Flags + ); + +HRESULT +WINAPI +HdvCreateSectionBackedMmioRange( + _In_ HDV_DEVICE requestor, + _In_ HDV_PCI_BAR_SELECTOR barIndex, + _In_ UINT64 offsetInPages, + _In_ UINT64 lengthInPages, + _In_ HDV_MMIO_MAPPING_FLAGS MappingFlags, + _In_ HANDLE sectionHandle, + _In_ UINT64 sectionOffsetInPages + ); + +HRESULT +WINAPI +HdvDestroySectionBackedMmioRange( + _In_ HDV_DEVICE requestor, + _In_ HDV_PCI_BAR_SELECTOR barIndex, + _In_ UINT64 offsetInPages + ); + +// +// PCI device interface. +// + +typedef HRESULT (CALLBACK *HDV_PCI_DEVICE_INITIALIZE)( + _In_opt_ PVOID deviceContext + ); + +typedef void (CALLBACK *HDV_PCI_DEVICE_TEARDOWN)( + _In_opt_ PVOID deviceContext + ); + +typedef HRESULT (CALLBACK *HDV_PCI_DEVICE_SET_CONFIGURATION)( + _In_opt_ PVOID deviceContext, + _In_ UINT32 configurationValueCount, + _In_reads_(configurationValueCount) const LPCWSTR* configurationValues + ); + +typedef HRESULT (CALLBACK *HDV_PCI_DEVICE_GET_DETAILS)( + _In_opt_ PVOID deviceContext, + _Out_ PHDV_PCI_PNP_ID pnpId, + _In_ UINT32 probedBarsCount, + _Out_writes_(probedBarsCount) UINT32* probedBars + ); + +typedef HRESULT (CALLBACK *HDV_PCI_DEVICE_START)( + _In_opt_ PVOID deviceContext + ); + +typedef void (CALLBACK *HDV_PCI_DEVICE_STOP)( + _In_opt_ PVOID deviceContext + ); + +typedef HRESULT (CALLBACK *HDV_PCI_READ_CONFIG_SPACE)( + _In_opt_ PVOID deviceContext, + _In_ UINT32 offset, + _Out_ UINT32* value + ); + +typedef HRESULT (CALLBACK *HDV_PCI_WRITE_CONFIG_SPACE)( + _In_opt_ PVOID deviceContext, + _In_ UINT32 offset, + _In_ UINT32 value + ); + +typedef HRESULT (CALLBACK *HDV_PCI_READ_INTERCEPTED_MEMORY)( + _In_opt_ PVOID deviceContext, + _In_ HDV_PCI_BAR_SELECTOR barIndex, + _In_ UINT64 offset, + _In_ UINT64 length, + _Out_writes_(length) BYTE* value + ); + +typedef HRESULT (CALLBACK *HDV_PCI_WRITE_INTERCEPTED_MEMORY)( + _In_opt_ PVOID deviceContext, + _In_ HDV_PCI_BAR_SELECTOR barIndex, + _In_ UINT64 offset, + _In_ UINT64 length, + _In_reads_(length) const BYTE* value + ); + +typedef enum HDV_PCI_INTERFACE_VERSION +{ + HdvPciDeviceInterfaceVersionInvalid = 0, + HdvPciDeviceInterfaceVersion1 = 1 + +} HDV_PCI_INTERFACE_VERSION; + +typedef struct HDV_PCI_DEVICE_INTERFACE +{ + HDV_PCI_INTERFACE_VERSION Version; + HDV_PCI_DEVICE_INITIALIZE Initialize; + HDV_PCI_DEVICE_TEARDOWN Teardown; + HDV_PCI_DEVICE_SET_CONFIGURATION SetConfiguration; + HDV_PCI_DEVICE_GET_DETAILS GetDetails; + HDV_PCI_DEVICE_START Start; + HDV_PCI_DEVICE_STOP Stop; + HDV_PCI_READ_CONFIG_SPACE ReadConfigSpace; + HDV_PCI_WRITE_CONFIG_SPACE WriteConfigSpace; + HDV_PCI_READ_INTERCEPTED_MEMORY ReadInterceptedMemory; + HDV_PCI_WRITE_INTERCEPTED_MEMORY WriteInterceptedMemory; + +} HDV_PCI_DEVICE_INTERFACE, *PHDV_PCI_DEVICE_INTERFACE; + +#ifdef __cplusplus +} +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#endif // _HYPERV_DEVICE_VIRTUALIZATION_H_ + +#ifndef ext_ms_win_hyperv_devicevirtualization_l1_2_2_query_routines +#define ext_ms_win_hyperv_devicevirtualization_l1_2_2_query_routines + +// +//Private Extension API Query Routines +// + +#ifdef __cplusplus +extern "C" { +#endif + +BOOLEAN +__stdcall +IsHdvInitializeDeviceHostPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvInitializeDeviceHostExPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvTeardownDeviceHostPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvCreateDeviceInstancePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvReadGuestMemoryPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvWriteGuestMemoryPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvCreateGuestMemoryAperturePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvDestroyGuestMemoryAperturePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvDeliverGuestInterruptPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvRegisterDoorbellPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvUnregisterDoorbellPresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvCreateSectionBackedMmioRangePresent( + VOID + ); + +BOOLEAN +__stdcall +IsHdvDestroySectionBackedMmioRangePresent( + VOID + ); + +#ifdef __cplusplus +} +#endif + +#endif // endof guard + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/i_cryptasn1tls.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/i_cryptasn1tls.h new file mode 100644 index 0000000000000000000000000000000000000000..d6d30ff335fc8627fb62379ae6c575a3d4731374 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/i_cryptasn1tls.h @@ -0,0 +1,101 @@ +//+------------------------------------------------------------------------- +// Microsoft Windows +// +// Copyright (C) Microsoft Corporation, 2002 - 2002 +// +// File: i_cryptasn1tls.h +// +// Contents: Crypt ASN.1 Thread Local Storage (TLS) functions +//-------------------------------------------------------------------------- + +#ifndef __I_CRYPTASN1TLS_H__ +#define __I_CRYPTASN1TLS_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + + +// Handle to an installed Asn1 module +typedef DWORD HCRYPTASN1MODULE; + +// Pointers to ASN1 data structures +typedef void *ASN1module_t; +typedef void *ASN1encoding_t; +typedef void *ASN1decoding_t; + + +//+------------------------------------------------------------------------- +// Install an Asn1 module entry and return a handle for future access. +// +// Each thread has its own copy of the decoder and encoder associated +// with the Asn1 module. Creation is deferred until first referenced by +// the thread. +// +// I_CryptGetAsn1Encoder or I_CryptGetAsn1Decoder must be called with the +// handle returned by I_CryptInstallAsn1Module to get the thread specific +// Asn1 encoder or decoder. +// +// Currently, dwFlags and pvReserved aren't used and must be set to 0. +//-------------------------------------------------------------------------- + +HCRYPTASN1MODULE +WINAPI +I_CryptInstallAsn1Module( + IN ASN1module_t pMod, + IN DWORD dwFlags, + IN void *pvReserved + ); + + +//+------------------------------------------------------------------------- +// Called at DLL_PROCESS_DETACH to uninstall an hAsn1Module entry. Iterates +// through the threads and frees their created Asn1 encoders and decoders. +//-------------------------------------------------------------------------- +BOOL +WINAPI +I_CryptUninstallAsn1Module( + IN HCRYPTASN1MODULE hAsn1Module + ); + + +//+------------------------------------------------------------------------- +// Get the thread specific pointer to the Asn1 encoder specified by the +// hAsn1Module returned by CryptInstallAsn1Module. If the +// encoder doesn't exist, then, its created using the Asn1 module +// associated with hAsn1Module. +//-------------------------------------------------------------------------- +ASN1encoding_t +WINAPI +I_CryptGetAsn1Encoder( + IN HCRYPTASN1MODULE hAsn1Module + ); + + +//+------------------------------------------------------------------------- +// Get the thread specific pointer to the Asn1 decoder specified by the +// hAsn1Module returned by CryptInstallAsn1Module. If the +// decoder doesn't exist, then, its created using the Asn1 module +// associated with hAsn1Module. +//-------------------------------------------------------------------------- +ASN1decoding_t +WINAPI +I_CryptGetAsn1Decoder( + IN HCRYPTASN1MODULE hAsn1Module + ); + +#ifdef __cplusplus +} // Balance extern "C" above +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/icftypes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icftypes.h new file mode 100644 index 0000000000000000000000000000000000000000..4e5688452abea9a817897acdb5dbf05b2ad844bb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icftypes.h @@ -0,0 +1,193 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __icftypes_h__ +#define __icftypes_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +/* header files for imported files */ +#include "wtypes.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_icftypes_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef +enum NET_FW_POLICY_TYPE_ + { + NET_FW_POLICY_GROUP = 0, + NET_FW_POLICY_LOCAL = ( NET_FW_POLICY_GROUP + 1 ) , + NET_FW_POLICY_EFFECTIVE = ( NET_FW_POLICY_LOCAL + 1 ) , + NET_FW_POLICY_TYPE_MAX = ( NET_FW_POLICY_EFFECTIVE + 1 ) + } NET_FW_POLICY_TYPE; + +typedef +enum NET_FW_PROFILE_TYPE_ + { + NET_FW_PROFILE_DOMAIN = 0, + NET_FW_PROFILE_STANDARD = ( NET_FW_PROFILE_DOMAIN + 1 ) , + NET_FW_PROFILE_CURRENT = ( NET_FW_PROFILE_STANDARD + 1 ) , + NET_FW_PROFILE_TYPE_MAX = ( NET_FW_PROFILE_CURRENT + 1 ) + } NET_FW_PROFILE_TYPE; + +typedef +enum NET_FW_PROFILE_TYPE2_ + { + NET_FW_PROFILE2_DOMAIN = 0x1, + NET_FW_PROFILE2_PRIVATE = 0x2, + NET_FW_PROFILE2_PUBLIC = 0x4, + NET_FW_PROFILE2_ALL = 0x7fffffff + } NET_FW_PROFILE_TYPE2; + +typedef +enum NET_FW_IP_VERSION_ + { + NET_FW_IP_VERSION_V4 = 0, + NET_FW_IP_VERSION_V6 = ( NET_FW_IP_VERSION_V4 + 1 ) , + NET_FW_IP_VERSION_ANY = ( NET_FW_IP_VERSION_V6 + 1 ) , + NET_FW_IP_VERSION_MAX = ( NET_FW_IP_VERSION_ANY + 1 ) + } NET_FW_IP_VERSION; + +typedef +enum NET_FW_SCOPE_ + { + NET_FW_SCOPE_ALL = 0, + NET_FW_SCOPE_LOCAL_SUBNET = ( NET_FW_SCOPE_ALL + 1 ) , + NET_FW_SCOPE_CUSTOM = ( NET_FW_SCOPE_LOCAL_SUBNET + 1 ) , + NET_FW_SCOPE_MAX = ( NET_FW_SCOPE_CUSTOM + 1 ) + } NET_FW_SCOPE; + +typedef +enum NET_FW_IP_PROTOCOL_ + { + NET_FW_IP_PROTOCOL_TCP = 6, + NET_FW_IP_PROTOCOL_UDP = 17, + NET_FW_IP_PROTOCOL_ANY = 256 + } NET_FW_IP_PROTOCOL; + +typedef +enum NET_FW_SERVICE_TYPE_ + { + NET_FW_SERVICE_FILE_AND_PRINT = 0, + NET_FW_SERVICE_UPNP = ( NET_FW_SERVICE_FILE_AND_PRINT + 1 ) , + NET_FW_SERVICE_REMOTE_DESKTOP = ( NET_FW_SERVICE_UPNP + 1 ) , + NET_FW_SERVICE_NONE = ( NET_FW_SERVICE_REMOTE_DESKTOP + 1 ) , + NET_FW_SERVICE_TYPE_MAX = ( NET_FW_SERVICE_NONE + 1 ) + } NET_FW_SERVICE_TYPE; + +typedef +enum NET_FW_RULE_DIRECTION_ + { + NET_FW_RULE_DIR_IN = 1, + NET_FW_RULE_DIR_OUT = ( NET_FW_RULE_DIR_IN + 1 ) , + NET_FW_RULE_DIR_MAX = ( NET_FW_RULE_DIR_OUT + 1 ) + } NET_FW_RULE_DIRECTION; + +typedef +enum NET_FW_ACTION_ + { + NET_FW_ACTION_BLOCK = 0, + NET_FW_ACTION_ALLOW = ( NET_FW_ACTION_BLOCK + 1 ) , + NET_FW_ACTION_MAX = ( NET_FW_ACTION_ALLOW + 1 ) + } NET_FW_ACTION; + +typedef +enum NET_FW_MODIFY_STATE_ + { + NET_FW_MODIFY_STATE_OK = 0, + NET_FW_MODIFY_STATE_GP_OVERRIDE = ( NET_FW_MODIFY_STATE_OK + 1 ) , + NET_FW_MODIFY_STATE_INBOUND_BLOCKED = ( NET_FW_MODIFY_STATE_GP_OVERRIDE + 1 ) + } NET_FW_MODIFY_STATE; + +typedef +enum NET_FW_RULE_CATEGORY_ + { + NET_FW_RULE_CATEGORY_BOOT = 0, + NET_FW_RULE_CATEGORY_STEALTH = ( NET_FW_RULE_CATEGORY_BOOT + 1 ) , + NET_FW_RULE_CATEGORY_FIREWALL = ( NET_FW_RULE_CATEGORY_STEALTH + 1 ) , + NET_FW_RULE_CATEGORY_CONSEC = ( NET_FW_RULE_CATEGORY_FIREWALL + 1 ) , + NET_FW_RULE_CATEGORY_MAX = ( NET_FW_RULE_CATEGORY_CONSEC + 1 ) + } NET_FW_RULE_CATEGORY; + +typedef +enum NET_FW_EDGE_TRAVERSAL_TYPE_ + { + NET_FW_EDGE_TRAVERSAL_TYPE_DENY = 0, + NET_FW_EDGE_TRAVERSAL_TYPE_ALLOW = ( NET_FW_EDGE_TRAVERSAL_TYPE_DENY + 1 ) , + NET_FW_EDGE_TRAVERSAL_TYPE_DEFER_TO_APP = ( NET_FW_EDGE_TRAVERSAL_TYPE_ALLOW + 1 ) , + NET_FW_EDGE_TRAVERSAL_TYPE_DEFER_TO_USER = ( NET_FW_EDGE_TRAVERSAL_TYPE_DEFER_TO_APP + 1 ) + } NET_FW_EDGE_TRAVERSAL_TYPE; + +typedef +enum NET_FW_AUTHENTICATE_TYPE_ + { + NET_FW_AUTHENTICATE_NONE = 0, + NET_FW_AUTHENTICATE_NO_ENCAPSULATION = ( NET_FW_AUTHENTICATE_NONE + 1 ) , + NET_FW_AUTHENTICATE_WITH_INTEGRITY = ( NET_FW_AUTHENTICATE_NO_ENCAPSULATION + 1 ) , + NET_FW_AUTHENTICATE_AND_NEGOTIATE_ENCRYPTION = ( NET_FW_AUTHENTICATE_WITH_INTEGRITY + 1 ) , + NET_FW_AUTHENTICATE_AND_ENCRYPT = ( NET_FW_AUTHENTICATE_AND_NEGOTIATE_ENCRYPTION + 1 ) + } NET_FW_AUTHENTICATE_TYPE; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_icftypes_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_icftypes_0000_0000_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/icftypes.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icftypes.idl new file mode 100644 index 0000000000000000000000000000000000000000..f7f9d667187025db14edd34e2e693933f20bccec --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icftypes.idl @@ -0,0 +1,142 @@ +/* + Copyright (c) Microsoft Corporation + + SYNOPSIS + + Defines public datatypes used by the ICF API. +*/ + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "wtypes.idl"; + +// Represents the different policy types understood by the firewall. +typedef enum NET_FW_POLICY_TYPE_ +{ + NET_FW_POLICY_GROUP, + NET_FW_POLICY_LOCAL, + NET_FW_POLICY_EFFECTIVE, + NET_FW_POLICY_TYPE_MAX +} NET_FW_POLICY_TYPE; + +// Represents the different profile types that make up a firewall policy. +// Maintained for compatibility with INetFwMgr interface +typedef enum NET_FW_PROFILE_TYPE_ +{ + NET_FW_PROFILE_DOMAIN, + NET_FW_PROFILE_STANDARD, + NET_FW_PROFILE_CURRENT, + NET_FW_PROFILE_TYPE_MAX +} NET_FW_PROFILE_TYPE; + +// Represents the different profile types that make up a firewall policy. +typedef enum NET_FW_PROFILE_TYPE2_ +{ + NET_FW_PROFILE2_DOMAIN = 0x0001, + NET_FW_PROFILE2_PRIVATE = 0x0002, + NET_FW_PROFILE2_PUBLIC = 0x0004, + NET_FW_PROFILE2_ALL = 0x7FFFFFFF +} NET_FW_PROFILE_TYPE2; + +// Used to specify the IP version for a port. +typedef enum NET_FW_IP_VERSION_ +{ + NET_FW_IP_VERSION_V4, + NET_FW_IP_VERSION_V6, + NET_FW_IP_VERSION_ANY, + NET_FW_IP_VERSION_MAX +} NET_FW_IP_VERSION; + +// Used to specify the scope of addresses from which a port can listen. +typedef enum NET_FW_SCOPE_ +{ + NET_FW_SCOPE_ALL, + NET_FW_SCOPE_LOCAL_SUBNET, + NET_FW_SCOPE_CUSTOM, + NET_FW_SCOPE_MAX +} NET_FW_SCOPE; + +// Used to specify the IP protocol when opening/closing firewall ports. +typedef enum NET_FW_IP_PROTOCOL_ +{ + NET_FW_IP_PROTOCOL_TCP = 6, + NET_FW_IP_PROTOCOL_UDP = 17, + NET_FW_IP_PROTOCOL_ANY = 256 +} NET_FW_IP_PROTOCOL; + +// Well-known services that can be authorized to listen through the firewall. +// (WinXP and Win2k3 compatability) +typedef enum NET_FW_SERVICE_TYPE_ +{ + NET_FW_SERVICE_FILE_AND_PRINT, + NET_FW_SERVICE_UPNP, + NET_FW_SERVICE_REMOTE_DESKTOP, + NET_FW_SERVICE_NONE, + NET_FW_SERVICE_TYPE_MAX +} NET_FW_SERVICE_TYPE; + +// Used to specify the direction for the rule +typedef enum NET_FW_RULE_DIRECTION_ +{ + NET_FW_RULE_DIR_IN = 1, + NET_FW_RULE_DIR_OUT, + NET_FW_RULE_DIR_MAX +} NET_FW_RULE_DIRECTION; + +// Used to specify the action for a rule or a default setting +typedef enum NET_FW_ACTION_ +{ + NET_FW_ACTION_BLOCK, + NET_FW_ACTION_ALLOW, + NET_FW_ACTION_MAX +} NET_FW_ACTION; + +// Used to specify the modifiable state of current policy +typedef enum NET_FW_MODIFY_STATE_ +{ + NET_FW_MODIFY_STATE_OK, // Changing or adding a firewall rule (or group) to + // the current profile will take effect. + NET_FW_MODIFY_STATE_GP_OVERRIDE, // Changing or adding a firewall rule (or group) to + // the current profile will not take effect because group + // policy overrides it. + NET_FW_MODIFY_STATE_INBOUND_BLOCKED // Changing or adding an inbound firewall rule (or group) to + // the current profile will not take effect because unsolicited + // inbound traffic is not allowed. +} NET_FW_MODIFY_STATE; + +// Represents the different types of rules that the firewall supports. +typedef enum NET_FW_RULE_CATEGORY_ +{ + NET_FW_RULE_CATEGORY_BOOT, + NET_FW_RULE_CATEGORY_STEALTH, + NET_FW_RULE_CATEGORY_FIREWALL, + NET_FW_RULE_CATEGORY_CONSEC, + NET_FW_RULE_CATEGORY_MAX +} NET_FW_RULE_CATEGORY; + +typedef enum NET_FW_EDGE_TRAVERSAL_TYPE_ +{ + NET_FW_EDGE_TRAVERSAL_TYPE_DENY = 0, + NET_FW_EDGE_TRAVERSAL_TYPE_ALLOW, + NET_FW_EDGE_TRAVERSAL_TYPE_DEFER_TO_APP, + NET_FW_EDGE_TRAVERSAL_TYPE_DEFER_TO_USER +} NET_FW_EDGE_TRAVERSAL_TYPE; + + + +typedef enum NET_FW_AUTHENTICATE_TYPE_ +{ + NET_FW_AUTHENTICATE_NONE = 0, + NET_FW_AUTHENTICATE_NO_ENCAPSULATION, + NET_FW_AUTHENTICATE_WITH_INTEGRITY, + NET_FW_AUTHENTICATE_AND_NEGOTIATE_ENCRYPTION, + NET_FW_AUTHENTICATE_AND_ENCRYPT +} NET_FW_AUTHENTICATE_TYPE; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/icodecapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icodecapi.h new file mode 100644 index 0000000000000000000000000000000000000000..f66d627c41f1e7ece1f839b388a4fa649cefc5fe --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icodecapi.h @@ -0,0 +1,398 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __icodecapi_h__ +#define __icodecapi_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ICodecAPI_FWD_DEFINED__ +#define __ICodecAPI_FWD_DEFINED__ +typedef interface ICodecAPI ICodecAPI; + +#endif /* __ICodecAPI_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_icodecapi_0000_0000 */ +/* [local] */ + +#include +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +struct CodecAPIEventData + { + GUID guid; + DWORD dataLength; + DWORD reserved[ 3 ]; + } ; + + + +extern RPC_IF_HANDLE __MIDL_itf_icodecapi_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_icodecapi_0000_0000_v0_0_s_ifspec; + +#ifndef __ICodecAPI_INTERFACE_DEFINED__ +#define __ICodecAPI_INTERFACE_DEFINED__ + +/* interface ICodecAPI */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_ICodecAPI; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("901db4c7-31ce-41a2-85dc-8fa0bf41b8da") + ICodecAPI : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsSupported( + /* [in] */ const GUID *Api) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsModifiable( + /* [in] */ const GUID *Api) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParameterRange( + /* [in] */ const GUID *Api, + /* [annotation][out] */ + _Out_ VARIANT *ValueMin, + /* [annotation][out] */ + _Out_ VARIANT *ValueMax, + /* [annotation][out] */ + _Out_ VARIANT *SteppingDelta) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParameterValues( + /* [in] */ const GUID *Api, + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_all_(*ValuesCount) VARIANT **Values, + /* [annotation][out] */ + _Out_ ULONG *ValuesCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefaultValue( + /* [in] */ const GUID *Api, + /* [annotation][out] */ + _Out_ VARIANT *Value) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [in] */ const GUID *Api, + /* [annotation][out] */ + _Out_ VARIANT *Value) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetValue( + /* [in] */ const GUID *Api, + /* [annotation][in] */ + _In_ VARIANT *Value) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForEvent( + /* [in] */ const GUID *Api, + /* [in] */ LONG_PTR userData) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterForEvent( + /* [in] */ const GUID *Api) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAllDefaults( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetValueWithNotify( + /* [in] */ const GUID *Api, + /* [in] */ VARIANT *Value, + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_all_(*ChangedParamCount) GUID **ChangedParam, + /* [annotation][out] */ + _Out_ ULONG *ChangedParamCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAllDefaultsWithNotify( + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_all_(*ChangedParamCount) GUID **ChangedParam, + /* [annotation][out] */ + _Out_ ULONG *ChangedParamCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAllSettings( + /* [in] */ IStream *__MIDL__ICodecAPI0000) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAllSettings( + /* [in] */ IStream *__MIDL__ICodecAPI0001) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetAllSettingsWithNotify( + IStream *__MIDL__ICodecAPI0002, + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_all_(*ChangedParamCount) GUID **ChangedParam, + /* [annotation][out] */ + _Out_ ULONG *ChangedParamCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICodecAPIVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ICodecAPI * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ICodecAPI * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ICodecAPI * This); + + DECLSPEC_XFGVIRT(ICodecAPI, IsSupported) + HRESULT ( STDMETHODCALLTYPE *IsSupported )( + ICodecAPI * This, + /* [in] */ const GUID *Api); + + DECLSPEC_XFGVIRT(ICodecAPI, IsModifiable) + HRESULT ( STDMETHODCALLTYPE *IsModifiable )( + ICodecAPI * This, + /* [in] */ const GUID *Api); + + DECLSPEC_XFGVIRT(ICodecAPI, GetParameterRange) + HRESULT ( STDMETHODCALLTYPE *GetParameterRange )( + ICodecAPI * This, + /* [in] */ const GUID *Api, + /* [annotation][out] */ + _Out_ VARIANT *ValueMin, + /* [annotation][out] */ + _Out_ VARIANT *ValueMax, + /* [annotation][out] */ + _Out_ VARIANT *SteppingDelta); + + DECLSPEC_XFGVIRT(ICodecAPI, GetParameterValues) + HRESULT ( STDMETHODCALLTYPE *GetParameterValues )( + ICodecAPI * This, + /* [in] */ const GUID *Api, + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_all_(*ValuesCount) VARIANT **Values, + /* [annotation][out] */ + _Out_ ULONG *ValuesCount); + + DECLSPEC_XFGVIRT(ICodecAPI, GetDefaultValue) + HRESULT ( STDMETHODCALLTYPE *GetDefaultValue )( + ICodecAPI * This, + /* [in] */ const GUID *Api, + /* [annotation][out] */ + _Out_ VARIANT *Value); + + DECLSPEC_XFGVIRT(ICodecAPI, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + ICodecAPI * This, + /* [in] */ const GUID *Api, + /* [annotation][out] */ + _Out_ VARIANT *Value); + + DECLSPEC_XFGVIRT(ICodecAPI, SetValue) + HRESULT ( STDMETHODCALLTYPE *SetValue )( + ICodecAPI * This, + /* [in] */ const GUID *Api, + /* [annotation][in] */ + _In_ VARIANT *Value); + + DECLSPEC_XFGVIRT(ICodecAPI, RegisterForEvent) + HRESULT ( STDMETHODCALLTYPE *RegisterForEvent )( + ICodecAPI * This, + /* [in] */ const GUID *Api, + /* [in] */ LONG_PTR userData); + + DECLSPEC_XFGVIRT(ICodecAPI, UnregisterForEvent) + HRESULT ( STDMETHODCALLTYPE *UnregisterForEvent )( + ICodecAPI * This, + /* [in] */ const GUID *Api); + + DECLSPEC_XFGVIRT(ICodecAPI, SetAllDefaults) + HRESULT ( STDMETHODCALLTYPE *SetAllDefaults )( + ICodecAPI * This); + + DECLSPEC_XFGVIRT(ICodecAPI, SetValueWithNotify) + HRESULT ( STDMETHODCALLTYPE *SetValueWithNotify )( + ICodecAPI * This, + /* [in] */ const GUID *Api, + /* [in] */ VARIANT *Value, + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_all_(*ChangedParamCount) GUID **ChangedParam, + /* [annotation][out] */ + _Out_ ULONG *ChangedParamCount); + + DECLSPEC_XFGVIRT(ICodecAPI, SetAllDefaultsWithNotify) + HRESULT ( STDMETHODCALLTYPE *SetAllDefaultsWithNotify )( + ICodecAPI * This, + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_all_(*ChangedParamCount) GUID **ChangedParam, + /* [annotation][out] */ + _Out_ ULONG *ChangedParamCount); + + DECLSPEC_XFGVIRT(ICodecAPI, GetAllSettings) + HRESULT ( STDMETHODCALLTYPE *GetAllSettings )( + ICodecAPI * This, + /* [in] */ IStream *__MIDL__ICodecAPI0000); + + DECLSPEC_XFGVIRT(ICodecAPI, SetAllSettings) + HRESULT ( STDMETHODCALLTYPE *SetAllSettings )( + ICodecAPI * This, + /* [in] */ IStream *__MIDL__ICodecAPI0001); + + DECLSPEC_XFGVIRT(ICodecAPI, SetAllSettingsWithNotify) + HRESULT ( STDMETHODCALLTYPE *SetAllSettingsWithNotify )( + ICodecAPI * This, + IStream *__MIDL__ICodecAPI0002, + /* [annotation][size_is][size_is][out] */ + _Outptr_result_buffer_all_(*ChangedParamCount) GUID **ChangedParam, + /* [annotation][out] */ + _Out_ ULONG *ChangedParamCount); + + END_INTERFACE + } ICodecAPIVtbl; + + interface ICodecAPI + { + CONST_VTBL struct ICodecAPIVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICodecAPI_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICodecAPI_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICodecAPI_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICodecAPI_IsSupported(This,Api) \ + ( (This)->lpVtbl -> IsSupported(This,Api) ) + +#define ICodecAPI_IsModifiable(This,Api) \ + ( (This)->lpVtbl -> IsModifiable(This,Api) ) + +#define ICodecAPI_GetParameterRange(This,Api,ValueMin,ValueMax,SteppingDelta) \ + ( (This)->lpVtbl -> GetParameterRange(This,Api,ValueMin,ValueMax,SteppingDelta) ) + +#define ICodecAPI_GetParameterValues(This,Api,Values,ValuesCount) \ + ( (This)->lpVtbl -> GetParameterValues(This,Api,Values,ValuesCount) ) + +#define ICodecAPI_GetDefaultValue(This,Api,Value) \ + ( (This)->lpVtbl -> GetDefaultValue(This,Api,Value) ) + +#define ICodecAPI_GetValue(This,Api,Value) \ + ( (This)->lpVtbl -> GetValue(This,Api,Value) ) + +#define ICodecAPI_SetValue(This,Api,Value) \ + ( (This)->lpVtbl -> SetValue(This,Api,Value) ) + +#define ICodecAPI_RegisterForEvent(This,Api,userData) \ + ( (This)->lpVtbl -> RegisterForEvent(This,Api,userData) ) + +#define ICodecAPI_UnregisterForEvent(This,Api) \ + ( (This)->lpVtbl -> UnregisterForEvent(This,Api) ) + +#define ICodecAPI_SetAllDefaults(This) \ + ( (This)->lpVtbl -> SetAllDefaults(This) ) + +#define ICodecAPI_SetValueWithNotify(This,Api,Value,ChangedParam,ChangedParamCount) \ + ( (This)->lpVtbl -> SetValueWithNotify(This,Api,Value,ChangedParam,ChangedParamCount) ) + +#define ICodecAPI_SetAllDefaultsWithNotify(This,ChangedParam,ChangedParamCount) \ + ( (This)->lpVtbl -> SetAllDefaultsWithNotify(This,ChangedParam,ChangedParamCount) ) + +#define ICodecAPI_GetAllSettings(This,__MIDL__ICodecAPI0000) \ + ( (This)->lpVtbl -> GetAllSettings(This,__MIDL__ICodecAPI0000) ) + +#define ICodecAPI_SetAllSettings(This,__MIDL__ICodecAPI0001) \ + ( (This)->lpVtbl -> SetAllSettings(This,__MIDL__ICodecAPI0001) ) + +#define ICodecAPI_SetAllSettingsWithNotify(This,__MIDL__ICodecAPI0002,ChangedParam,ChangedParamCount) \ + ( (This)->lpVtbl -> SetAllSettingsWithNotify(This,__MIDL__ICodecAPI0002,ChangedParam,ChangedParamCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICodecAPI_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_icodecapi_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_icodecapi_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_icodecapi_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/icodecapi.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icodecapi.idl new file mode 100644 index 0000000000000000000000000000000000000000..34a4a39427419fab0dad04fb21dbef91ff5a9aea --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icodecapi.idl @@ -0,0 +1,238 @@ +//------------------------------------------------------------------------------ +// File: icodecapi.idl +// +// Desc: Defines icodecapi interface +// +// Copyright (c) 1992 - 2011, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +import "unknwn.idl"; +import "oaidl.idl"; + +// Define for 'local' so that proxy-stubs can be generated for testing +#ifndef AM_LOCAL +#define AM_LOCAL local, +#define AM_ANNOTATION(_x_) ,annotation(_x_) +#endif + +struct CodecAPIEventData +{ + GUID guid; + DWORD dataLength; + DWORD reserved[3]; + // BYTE data[dataLength]; +}; + +interface IStream; // forward declaration +// +// Applications can pass the CODECAPI_VIDEO_ENCODER to IsSupported to test for video encoders +// Similarly, the GUIDs for audio encoders, video decoders, audio decoders and muxes can be +// used to test for the codec classification +// +// See uuids.h for a more detailed list. +// +[ + AM_LOCAL + object, + uuid(901db4c7-31ce-41a2-85dc-8fa0bf41b8da), + pointer_default(unique) +] +interface ICodecAPI : IUnknown +{ + // + // IsSupported(): + // + // Query whether a given parameter is supported. + // + HRESULT + IsSupported ( + [in] const GUID *Api + ); + + // + // IsModifiable + // + // Query whether a given parameter can be changed given the codec selection + // and other parameter selections. + // + HRESULT + IsModifiable ( + [in] const GUID *Api + ); + + // + // GetParameterRange(): + // + // Returns the valid range of values that the parameter supports should + // the parameter support a stepped range as opposed to a list of specific + // values. The support is [ValueMin .. ValueMax] by SteppingDelta. + // + // Ranged variant types must fall into one of the below types. Each + // parameter will, by definition, return a specific type. + // + // If the range has no stepping delta (any delta will do), the Stepping + // delta will be empty (VT_EMPTY). + // + HRESULT + GetParameterRange ( + [in] const GUID *Api, + [out AM_ANNOTATION("_Out_")] VARIANT *ValueMin, + [out AM_ANNOTATION("_Out_")] VARIANT *ValueMax, + [out AM_ANNOTATION("_Out_")] VARIANT *SteppingDelta + ); + + // + // GetParameterValues(): + // + // Returns the list of values supported by the given parameter as a + // COM allocated array. The total number of values will be placed in + // the ValuesCount parameter and the Values array will contain the + // individual values. This array must be freed by the caller through + // CoTaskMemFree(). + // + HRESULT + GetParameterValues ( + [in] const GUID *Api, + [out, size_is(,*ValuesCount) AM_ANNOTATION("_Outptr_result_buffer_all_(*ValuesCount)")] VARIANT **Values, + [out AM_ANNOTATION("_Out_")] ULONG *ValuesCount + ); + + // + // GetDefaultValue(): + // + // Get the default value for a parameter, if one exists. Otherwise, + // an error will be returned. + // + HRESULT + GetDefaultValue ( + [in] const GUID *Api, + [out AM_ANNOTATION("_Out_")] VARIANT *Value + ); + + // + // GetValue(): + // + // Get the current value of a parameter. + // + HRESULT + GetValue ( + [in] const GUID *Api, + [out AM_ANNOTATION("_Out_")] VARIANT *Value + ); + + // + // SetValue(): + // + // Set the current value of a parameter. + // + HRESULT + SetValue ( + [in] const GUID *Api, + [in AM_ANNOTATION("_In_")] VARIANT *Value + ); + + // new methods beyond IEncoderAPI + + // + // RegisterForEvent(): + // + // Enable events to be reported for the given event GUID. For DShow + // events, the event is returned as + // (EC_CODECAPI_EVENT, lParam=userData, lParam2=CodecAPIEventData* Data) + // where + // - the CodecAPIEventData is COM allocated memory and must be handled and freed + // by the application using CoTaskMemFree(). + // - the userData is the same pointer passed to RegisterForEvent + // + // Each data block starts with the following structure: + // struct CodecAPIEventData + // { + // GUID guid; + // DWORD dataLength; + // DWORD reserved[3]; // pad to 16 byte alignment + // BYTE data[dataLength]; + // } + // The guid parameter identifies the event. The data associated with the event follows the + // structure (represented by the variable length BYTE data[dataLength] array). + // + // If guid is equal to CODECAPI_CHANGELISTS, then data is an array of GUIDs that changed as + // a result of setting the parameter, as follows: + // GUID changedGuids[ header.dataLength / sizeof(GUID) ] + // + // The current array is limited, so a driver may send multiple messages if the array size is + // exceeded. + // + HRESULT + RegisterForEvent ( + [in] const GUID *Api, + [in] LONG_PTR userData + ); + + // + // UnregisterForEvent(): + // + // Disable event reporting for the given event GUID. + // + HRESULT + UnregisterForEvent ( + [in] const GUID *Api + ); + + // + // SetAllDefaults + // + HRESULT SetAllDefaults(void); + + // + // Extended SetValue & SetAllDefaults: + // + // Changes the current value of a parameter and returns back an alteration list + // + // The secondary arguments return back a list of other settings + // that changed as a result of the SetValue() call (for UI updates etc) + // The client must free the buffer. + // + HRESULT + SetValueWithNotify ( + [in] const GUID *Api, + [in] VARIANT *Value, + [out, size_is(,*ChangedParamCount) AM_ANNOTATION("_Outptr_result_buffer_all_(*ChangedParamCount)")] GUID **ChangedParam, + [out AM_ANNOTATION("_Out_")] ULONG *ChangedParamCount + ); + + // + // SetAllDefaultsWithNotify + // + HRESULT SetAllDefaultsWithNotify( + [out, size_is(,*ChangedParamCount) AM_ANNOTATION("_Outptr_result_buffer_all_(*ChangedParamCount)")] GUID **ChangedParam, + [out AM_ANNOTATION("_Out_")] ULONG *ChangedParamCount + ); + // + // GetAllSettings + // Load the current settings from a stream + // + HRESULT GetAllSettings( [in] IStream* ); + + // + // SetAllSettings + // Save the current settings to a stream + // + HRESULT SetAllSettings( [in] IStream* ); + + // + // SetAllSettingsWithNotify + // + HRESULT SetAllSettingsWithNotify( IStream*, + [out, size_is(,*ChangedParamCount) AM_ANNOTATION("_Outptr_result_buffer_all_(*ChangedParamCount)")] GUID **ChangedParam, + [out AM_ANNOTATION("_Out_")] ULONG *ChangedParamCount ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/icrsint.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icrsint.h new file mode 100644 index 0000000000000000000000000000000000000000..70af019bd6eb975fae3ae54c874310d4e88e5548 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icrsint.h @@ -0,0 +1,203 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + +//----------------------------------------------------------------------------- +// File: icrsint.h +// +// Contents: ADO C/C++ Record Binding Definitions +// +// Comments: +// +//----------------------------------------------------------------------------- + +#ifndef _ICRSINT_H_ +#define _ICRSINT_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include +#include + +// forwards +class CADORecordBinding; + +#define classoffset(base, derived) ((DWORD_PTR)(static_cast((derived*)8))-8) + +enum ADOFieldStatusEnum +{ + adFldOK = 0, + adFldBadAccessor = 1, + adFldCantConvertValue = 2, + adFldNull = 3, + adFldTruncated = 4, + adFldSignMismatch = 5, + adFldDataOverFlow = 6, + adFldCantCreate = 7, + adFldUnavailable = 8, + adFldPermissionDenied = 9, + adFldIntegrityViolation = 10, + adFldSchemaViolation = 11, + adFldBadStatus = 12, + adFldDefault = 13 +}; + +typedef struct stADO_BINDING_ENTRY +{ + ULONG_PTR ulOrdinal; + WORD wDataType; + BYTE bPrecision; + BYTE bScale; + ULONG_PTR ulSize; + ULONG_PTR ulBufferOffset; + ULONG_PTR ulStatusOffset; + ULONG_PTR ulLengthOffset; + ULONG_PTR ulADORecordBindingOffSet; + BOOL fModify; +} ADO_BINDING_ENTRY; + +#define BEGIN_ADO_BINDING(cls) public: \ + typedef cls ADORowClass; \ + const ADO_BINDING_ENTRY* STDMETHODCALLTYPE GetADOBindingEntries() { \ + static const ADO_BINDING_ENTRY rgADOBindingEntries[] = { + +// +// Fixed length non-numeric data +// +#define ADO_FIXED_LENGTH_ENTRY(Ordinal, DataType, Buffer, Status, Modify)\ + {Ordinal, \ + DataType, \ + 0, \ + 0, \ + 0, \ + offsetof(ADORowClass, Buffer), \ + offsetof(ADORowClass, Status), \ + 0, \ + classoffset(CADORecordBinding, ADORowClass), \ + Modify}, + +#define ADO_FIXED_LENGTH_ENTRY2(Ordinal, DataType, Buffer, Modify)\ + {Ordinal, \ + DataType, \ + 0, \ + 0, \ + 0, \ + offsetof(ADORowClass, Buffer), \ + 0, \ + 0, \ + classoffset(CADORecordBinding, ADORowClass), \ + Modify}, + +// +// Numeric data +// +#define ADO_NUMERIC_ENTRY(Ordinal, DataType, Buffer, Precision, Scale, Status, Modify)\ + {Ordinal, \ + DataType, \ + Precision, \ + Scale, \ + 0, \ + offsetof(ADORowClass, Buffer), \ + offsetof(ADORowClass, Status), \ + 0, \ + classoffset(CADORecordBinding, ADORowClass), \ + Modify}, + +#define ADO_NUMERIC_ENTRY2(Ordinal, DataType, Buffer, Precision, Scale, Modify)\ + {Ordinal, \ + DataType, \ + Precision, \ + Scale, \ + 0, \ + offsetof(ADORowClass, Buffer), \ + 0, \ + 0, \ + classoffset(CADORecordBinding, ADORowClass), \ + Modify}, + +// +// Variable length data +// +#define ADO_VARIABLE_LENGTH_ENTRY(Ordinal, DataType, Buffer, Size, Status, Length, Modify)\ + {Ordinal, \ + DataType, \ + 0, \ + 0, \ + Size, \ + offsetof(ADORowClass, Buffer), \ + offsetof(ADORowClass, Status), \ + offsetof(ADORowClass, Length), \ + classoffset(CADORecordBinding, ADORowClass), \ + Modify}, + +#define ADO_VARIABLE_LENGTH_ENTRY2(Ordinal, DataType, Buffer, Size, Status, Modify)\ + {Ordinal, \ + DataType, \ + 0, \ + 0, \ + Size, \ + offsetof(ADORowClass, Buffer), \ + offsetof(ADORowClass, Status), \ + 0, \ + classoffset(CADORecordBinding, ADORowClass), \ + Modify}, + +#define ADO_VARIABLE_LENGTH_ENTRY3(Ordinal, DataType, Buffer, Size, Length, Modify)\ + {Ordinal, \ + DataType, \ + 0, \ + 0, \ + Size, \ + offsetof(ADORowClass, Buffer), \ + 0, \ + offsetof(ADORowClass, Length), \ + classoffset(CADORecordBinding, ADORowClass), \ + Modify}, + +#define ADO_VARIABLE_LENGTH_ENTRY4(Ordinal, DataType, Buffer, Size, Modify)\ + {Ordinal, \ + DataType, \ + 0, \ + 0, \ + Size, \ + offsetof(ADORowClass, Buffer), \ + 0, \ + 0, \ + classoffset(CADORecordBinding, ADORowClass), \ + Modify}, + +#define END_ADO_BINDING() {0, adEmpty, 0, 0, 0, 0, 0, 0, 0, FALSE}};\ + return rgADOBindingEntries;} + +// +// Interface that the client 'record' class needs to support. The ADO Binding entries +// provide the implementation for this interface. +// +class CADORecordBinding +{ +public: + STDMETHOD_(const ADO_BINDING_ENTRY*, GetADOBindingEntries) (VOID) PURE; +}; + +// +// Interface that allows a client to fetch a record of data into class data members. +// +struct __declspec(uuid("00000544-0000-0010-8000-00aa006d2ea4")) IADORecordBinding; +DECLARE_INTERFACE_(IADORecordBinding, IUnknown) +{ +public: + STDMETHOD(BindToRecordset) (CADORecordBinding *pAdoRecordBinding) PURE; + STDMETHOD(AddNew) (CADORecordBinding *pAdoRecordBinding) PURE; + STDMETHOD(Update) (CADORecordBinding *pAdoRecordBinding) PURE; +}; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_ICRSINT_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/icu.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icu.h new file mode 100644 index 0000000000000000000000000000000000000000..fc8a6568c8cf92c0f2ba309851bda108f90701e1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icu.h @@ -0,0 +1,47500 @@ +// icu.h is autogenerated and merged from the ICU header files. +// Code unused or not supported in the Windows ICU SDK has been removed. + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) + +// Default Windows SDK ICU configuration options. +// Alternate selections are not supported in the Windows SDK. +#define U_DISABLE_RENAMING 1 +#define U_SHOW_CPLUSPLUS_API 0 +#define U_DEFAULT_SHOW_DRAFT 0 +#define U_HIDE_DRAFT_API 1 +#define U_HIDE_DEPRECATED_API 1 +#define U_HIDE_OBSOLETE_API 1 +#define U_HIDE_INTERNAL_API 1 +#define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 1 + + +// appendable.h +// No supported content + +// brkiter.h +// No supported content + +// bytestream.h +// No supported content + +// bytestrie.h +// No supported content + +// bytestriebuilder.h +// No supported content + +// caniter.h +// No supported content + +// casemap.h +// No supported content + +// char16ptr.h +// No supported content + +// chariter.h +// No supported content + +// dbbi.h +// No supported content + +// docmain.h +// No supported content + +// dtintrv.h +// No supported content + +// edits.h +// No supported content + +// enumset.h +// No supported content + +// errorcode.h +// No supported content + +// filteredbrk.h +// No supported content + +// icuplug.h +// No supported content + +// idna.h +// No supported content + +// localebuilder.h +// No supported content + +// localematcher.h +// No supported content + +// localpointer.h +// No supported content + +// locdspnm.h +// No supported content + +// locid.h +// No supported content + +// messagepattern.h +// No supported content + +// normalizer2.h +// No supported content + +// normlzr.h +// No supported content + +// parsepos.h +// No supported content + +// rbbi.h +// No supported content + +// rep.h +// No supported content + +// resbund.h +// No supported content + +// schriter.h +// No supported content + +// simpleformatter.h +// No supported content + +// std_string.h +// No supported content + +// strenum.h +// No supported content + +// stringpiece.h +// No supported content + +// stringtriebuilder.h +// No supported content + +// symtable.h +// No supported content + +// ucharstrie.h +// No supported content + +// ucharstriebuilder.h +// No supported content + +// uchriter.h +// No supported content + +// uconfig.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 2002-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* file name: uconfig.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2002sep19 +* created by: Markus W. Scherer +*/ + +#ifndef __UCONFIG_H__ +#define __UCONFIG_H__ + + +/*! + * \file + * \brief User-configurable settings + * + * Miscellaneous switches: + * + * A number of macros affect a variety of minor aspects of ICU. + * Most of them used to be defined elsewhere (e.g., in utypes.h or platform.h) + * and moved here to make them easier to find. + * + * Switches for excluding parts of ICU library code modules: + * + * Changing these macros allows building partial, smaller libraries for special purposes. + * By default, all modules are built. + * The switches are fairly coarse, controlling large modules. + * Basic services cannot be turned off. + * + * Building with any of these options does not guarantee that the + * ICU build process will completely work. It is recommended that + * the ICU libraries and data be built using the normal build. + * At that time you should remove the data used by those services. + * After building the ICU data library, you should rebuild the ICU + * libraries with these switches customized to your needs. + * + * @stable ICU 2.4 + */ + + +/** + * \def U_DEBUG + * Determines whether to include debugging code. + * Automatically set on Windows, but most compilers do not have + * related predefined macros. + * @internal + */ +#ifdef U_DEBUG + /* Use the predefined value. */ +#elif defined(_DEBUG) + /* + * _DEBUG is defined by Visual Studio debug compilation. + * Do *not* test for its NDEBUG macro: It is an orthogonal macro + * which disables assert(). + */ +# define U_DEBUG 1 +# else +# define U_DEBUG 0 +#endif + +/** + * Determines whether to enable auto cleanup of libraries. + * @internal + */ +#ifndef UCLN_NO_AUTO_CLEANUP +#define UCLN_NO_AUTO_CLEANUP 1 +#endif + +/** + * \def U_DISABLE_RENAMING + * Determines whether to disable renaming or not. + * @internal + */ +#ifndef U_DISABLE_RENAMING +#endif + +/** + * \def U_NO_DEFAULT_INCLUDE_UTF_HEADERS + * Determines whether utypes.h includes utf.h, utf8.h, utf16.h and utf_old.h. + * utypes.h includes those headers if this macro is defined to 0. + * Otherwise, each those headers must be included explicitly when using one of their macros. + * Defaults to 0 for backward compatibility, except inside ICU. + * @stable ICU 49 + */ + +/** + * \def U_OVERRIDE_CXX_ALLOCATION + * Determines whether to override new and delete. + * ICU is normally built such that all of its C++ classes, via their UMemory base, + * override operators new and delete to use its internal, customizable, + * non-exception-throwing memory allocation functions. (Default value 1 for this macro.) + * + * This is especially important when the application and its libraries use multiple heaps. + * For example, on Windows, this allows the ICU DLL to be used by + * applications that statically link the C Runtime library. + * + * @stable ICU 2.2 + */ +#ifndef U_OVERRIDE_CXX_ALLOCATION +#define U_OVERRIDE_CXX_ALLOCATION 1 +#endif + +/** + * \def U_ENABLE_TRACING + * Determines whether to enable tracing. + * @internal + */ +#ifndef U_ENABLE_TRACING +#define U_ENABLE_TRACING 0 +#endif + +/** + * \def UCONFIG_ENABLE_PLUGINS + * Determines whether to enable ICU plugins. + * @internal + */ +#ifndef UCONFIG_ENABLE_PLUGINS +#define UCONFIG_ENABLE_PLUGINS 0 +#endif + +/** + * \def U_ENABLE_DYLOAD + * Whether to enable Dynamic loading in ICU. + * @internal + */ +#ifndef U_ENABLE_DYLOAD +#define U_ENABLE_DYLOAD 1 +#endif + +/** + * \def U_CHECK_DYLOAD + * Whether to test Dynamic loading as an OS capability. + * @internal + */ +#ifndef U_CHECK_DYLOAD +#define U_CHECK_DYLOAD 1 +#endif + +/** + * \def U_DEFAULT_SHOW_DRAFT + * Do we allow ICU users to use the draft APIs by default? + * @internal + */ +#ifndef U_DEFAULT_SHOW_DRAFT +#define U_DEFAULT_SHOW_DRAFT 1 +#endif + +/*===========================================================================*/ +/* Custom icu entry point renaming */ +/*===========================================================================*/ + +/** + * \def U_HAVE_LIB_SUFFIX + * 1 if a custom library suffix is set. + * @internal + */ +#ifdef U_HAVE_LIB_SUFFIX + /* Use the predefined value. */ +#elif defined(U_LIB_SUFFIX_C_NAME) || defined(U_IN_DOXYGEN) +# define U_HAVE_LIB_SUFFIX 1 +#endif + +/** + * \def U_LIB_SUFFIX_C_NAME_STRING + * Defines the library suffix as a string with C syntax. + * @internal + */ +#ifdef U_LIB_SUFFIX_C_NAME_STRING + /* Use the predefined value. */ +#elif defined(U_LIB_SUFFIX_C_NAME) +# define CONVERT_TO_STRING(s) #s +# define U_LIB_SUFFIX_C_NAME_STRING CONVERT_TO_STRING(U_LIB_SUFFIX_C_NAME) +#else +# define U_LIB_SUFFIX_C_NAME_STRING "" +#endif + +/* common/i18n library switches --------------------------------------------- */ + +/** + * \def UCONFIG_ONLY_COLLATION + * This switch turns off modules that are not needed for collation. + * + * It does not turn off legacy conversion because that is necessary + * for ICU to work on EBCDIC platforms (for the default converter). + * If you want "only collation" and do not build for EBCDIC, + * then you can define UCONFIG_NO_CONVERSION or UCONFIG_NO_LEGACY_CONVERSION to 1 as well. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_ONLY_COLLATION +# define UCONFIG_ONLY_COLLATION 0 +#endif + +#if UCONFIG_ONLY_COLLATION + /* common library */ +# define UCONFIG_NO_BREAK_ITERATION 1 +# define UCONFIG_NO_IDNA 1 + + /* i18n library */ +# if UCONFIG_NO_COLLATION +# error Contradictory collation switches in uconfig.h. +# endif +# define UCONFIG_NO_FORMATTING 1 +# define UCONFIG_NO_TRANSLITERATION 1 +# define UCONFIG_NO_REGULAR_EXPRESSIONS 1 +#endif + +/* common library switches -------------------------------------------------- */ + +/** + * \def UCONFIG_NO_FILE_IO + * This switch turns off all file access in the common library + * where file access is only used for data loading. + * ICU data must then be provided in the form of a data DLL (or with an + * equivalent way to link to the data residing in an executable, + * as in building a combined library with both the common library's code and + * the data), or via udata_setCommonData(). + * Application data must be provided via udata_setAppData() or by using + * "open" functions that take pointers to data, for example ucol_openBinary(). + * + * File access is not used at all in the i18n library. + * + * File access cannot be turned off for the icuio library or for the ICU + * test suites and ICU tools. + * + * @stable ICU 3.6 + */ +#ifndef UCONFIG_NO_FILE_IO +# define UCONFIG_NO_FILE_IO 0 +#endif + +#if UCONFIG_NO_FILE_IO && defined(U_TIMEZONE_FILES_DIR) +# error Contradictory file io switches in uconfig.h. +#endif + +/** + * \def UCONFIG_NO_CONVERSION + * ICU will not completely build (compiling the tools fails) with this + * switch turned on. + * This switch turns off all converters. + * + * You may want to use this together with U_CHARSET_IS_UTF8 defined to 1 + * in utypes.h if char* strings in your environment are always in UTF-8. + * + * @stable ICU 3.2 + * @see U_CHARSET_IS_UTF8 + */ +#ifndef UCONFIG_NO_CONVERSION +# define UCONFIG_NO_CONVERSION 0 +#endif + +#if UCONFIG_NO_CONVERSION +# define UCONFIG_NO_LEGACY_CONVERSION 1 +#endif + +/** + * \def UCONFIG_ONLY_HTML_CONVERSION + * This switch turns off all of the converters NOT listed in + * the HTML encoding standard: + * http://www.w3.org/TR/encoding/#names-and-labels + * + * This is not possible on EBCDIC platforms + * because they need ibm-37 or ibm-1047 default converters. + * + * @stable ICU 55 + */ +#ifndef UCONFIG_ONLY_HTML_CONVERSION +# define UCONFIG_ONLY_HTML_CONVERSION 0 +#endif + +/** + * \def UCONFIG_NO_LEGACY_CONVERSION + * This switch turns off all converters except for + * - Unicode charsets (UTF-7/8/16/32, CESU-8, SCSU, BOCU-1) + * - US-ASCII + * - ISO-8859-1 + * + * Turning off legacy conversion is not possible on EBCDIC platforms + * because they need ibm-37 or ibm-1047 default converters. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_LEGACY_CONVERSION +# define UCONFIG_NO_LEGACY_CONVERSION 0 +#endif + +/** + * \def UCONFIG_NO_NORMALIZATION + * This switch turns off normalization. + * It implies turning off several other services as well, for example + * collation and IDNA. + * + * @stable ICU 2.6 + */ +#ifndef UCONFIG_NO_NORMALIZATION +# define UCONFIG_NO_NORMALIZATION 0 +#endif + +#if UCONFIG_NO_NORMALIZATION + /* common library */ + /* ICU 50 CJK dictionary BreakIterator uses normalization */ +# define UCONFIG_NO_BREAK_ITERATION 1 + /* IDNA (UTS #46) is implemented via normalization */ +# define UCONFIG_NO_IDNA 1 + + /* i18n library */ +# if UCONFIG_ONLY_COLLATION +# error Contradictory collation switches in uconfig.h. +# endif +# define UCONFIG_NO_COLLATION 1 +# define UCONFIG_NO_TRANSLITERATION 1 +#endif + +/** + * \def UCONFIG_NO_BREAK_ITERATION + * This switch turns off break iteration. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_BREAK_ITERATION +# define UCONFIG_NO_BREAK_ITERATION 0 +#endif + +/** + * \def UCONFIG_NO_IDNA + * This switch turns off IDNA. + * + * @stable ICU 2.6 + */ +#ifndef UCONFIG_NO_IDNA +# define UCONFIG_NO_IDNA 0 +#endif + +/** + * \def UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE + * Determines the default UMessagePatternApostropheMode. + * See the documentation for that enum. + * + * @stable ICU 4.8 + */ +#ifndef UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE +# define UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE UMSGPAT_APOS_DOUBLE_OPTIONAL +#endif + + +/* i18n library switches ---------------------------------------------------- */ + +/** + * \def UCONFIG_NO_COLLATION + * This switch turns off collation and collation-based string search. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_COLLATION +# define UCONFIG_NO_COLLATION 0 +#endif + +/** + * \def UCONFIG_NO_FORMATTING + * This switch turns off formatting and calendar/timezone services. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_FORMATTING +# define UCONFIG_NO_FORMATTING 0 +#endif + +/** + * \def UCONFIG_NO_TRANSLITERATION + * This switch turns off transliteration. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_TRANSLITERATION +# define UCONFIG_NO_TRANSLITERATION 0 +#endif + +/** + * \def UCONFIG_NO_REGULAR_EXPRESSIONS + * This switch turns off regular expressions. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_REGULAR_EXPRESSIONS +# define UCONFIG_NO_REGULAR_EXPRESSIONS 0 +#endif + +/** + * \def UCONFIG_NO_SERVICE + * This switch turns off service registration. + * + * @stable ICU 3.2 + */ +#ifndef UCONFIG_NO_SERVICE +# define UCONFIG_NO_SERVICE 0 +#endif + +/** + * \def UCONFIG_HAVE_PARSEALLINPUT + * This switch turns on the "parse all input" attribute. Binary incompatible. + * + * @internal + */ +#ifndef UCONFIG_HAVE_PARSEALLINPUT +# define UCONFIG_HAVE_PARSEALLINPUT 1 +#endif + +/** + * \def UCONFIG_NO_FILTERED_BREAK_ITERATION + * This switch turns off filtered break iteration code. + * + * @internal + */ +#ifndef UCONFIG_NO_FILTERED_BREAK_ITERATION +# define UCONFIG_NO_FILTERED_BREAK_ITERATION 0 +#endif + +#endif // __UCONFIG_H__ + +// udata.h +// No supported content + +// unifilt.h +// No supported content + +// unifunct.h +// No supported content + +// unimatch.h +// No supported content + +// uniset.h +// No supported content + +// unistr.h +// No supported content + +// uobject.h +// No supported content + +// urename.h +// No supported content + +// usetiter.h +// No supported content + +// utf32.h +// No supported content + +// uvernum.h +// No supported content + +// platform.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* +* Copyright (C) 1997-2016, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* +* FILE NAME : platform.h +* +* Date Name Description +* 05/13/98 nos Creation (content moved here from ptypes.h). +* 03/02/99 stephen Added AS400 support. +* 03/30/99 stephen Added Linux support. +* 04/13/99 stephen Reworked for autoconf. +****************************************************************************** +*/ + +#ifndef _PLATFORM_H +#define _PLATFORM_H + + +/** + * \file + * \brief Basic types for the platform. + * + * This file used to be generated by autoconf/configure. + * Starting with ICU 49, platform.h is a normal source file, + * to simplify cross-compiling and working with non-autoconf/make build systems. + * + * When a value in this file does not work on a platform, then please + * try to derive it from the U_PLATFORM value + * (for which we might need a new value constant in rare cases) + * and/or from other macros that are predefined by the compiler + * or defined in standard (POSIX or platform or compiler) headers. + * + * As a temporary workaround, you can add an explicit \#define for some macros + * before it is first tested, or add an equivalent -D macro definition + * to the compiler's command line. + * + * Note: Some compilers provide ways to show the predefined macros. + * For example, with gcc you can compile an empty .c file and have the compiler + * print the predefined macros with + * \code + * gcc -E -dM -x c /dev/null | sort + * \endcode + * (You can provide an actual empty .c file rather than /dev/null. + * -x c++ is for C++.) + */ + +/** + * Define some things so that they can be documented. + * @internal + */ +#ifdef U_IN_DOXYGEN +/* + * Problem: "platform.h:335: warning: documentation for unknown define U_HAVE_STD_STRING found." means that U_HAVE_STD_STRING is not documented. + * Solution: #define any defines for non @internal API here, so that they are visible in the docs. If you just set PREDEFINED in Doxyfile.in, they won't be documented. + */ + +/* None for now. */ +#endif + +/** + * \def U_PLATFORM + * The U_PLATFORM macro defines the platform we're on. + * + * We used to define one different, value-less macro per platform. + * That made it hard to know the set of relevant platforms and macros, + * and hard to deal with variants of platforms. + * + * Starting with ICU 49, we define platforms as numeric macros, + * with ranges of values for related platforms and their variants. + * The U_PLATFORM macro is set to one of these values. + * + * Historical note from the Solaris Wikipedia article: + * AT&T and Sun collaborated on a project to merge the most popular Unix variants + * on the market at that time: BSD, System V, and Xenix. + * This became Unix System V Release 4 (SVR4). + * + * @internal + */ + +/** Unknown platform. @internal */ +#define U_PF_UNKNOWN 0 +/** Windows @internal */ +#define U_PF_WINDOWS 1000 +/** MinGW. Windows, calls to Win32 API, but using GNU gcc and binutils. @internal */ +#define U_PF_MINGW 1800 +/** + * Cygwin. Windows, calls to cygwin1.dll for Posix functions, + * using MSVC or GNU gcc and binutils. + * @internal + */ +#define U_PF_CYGWIN 1900 +/* Reserve 2000 for U_PF_UNIX? */ +/** HP-UX is based on UNIX System V. @internal */ +#define U_PF_HPUX 2100 +/** Solaris is a Unix operating system based on SVR4. @internal */ +#define U_PF_SOLARIS 2600 +/** BSD is a UNIX operating system derivative. @internal */ +#define U_PF_BSD 3000 +/** AIX is based on UNIX System V Releases and 4.3 BSD. @internal */ +#define U_PF_AIX 3100 +/** IRIX is based on UNIX System V with BSD extensions. @internal */ +#define U_PF_IRIX 3200 +/** + * Darwin is a POSIX-compliant operating system, composed of code developed by Apple, + * as well as code derived from NeXTSTEP, BSD, and other projects, + * built around the Mach kernel. + * Darwin forms the core set of components upon which Mac OS X, Apple TV, and iOS are based. + * (Original description modified from WikiPedia.) + * @internal + */ +#define U_PF_DARWIN 3500 +/** iPhone OS (iOS) is a derivative of Mac OS X. @internal */ +#define U_PF_IPHONE 3550 +/** QNX is a commercial Unix-like real-time operating system related to BSD. @internal */ +#define U_PF_QNX 3700 +/** Linux is a Unix-like operating system. @internal */ +#define U_PF_LINUX 4000 +/** + * Native Client is pretty close to Linux. + * See https://developer.chrome.com/native-client and + * http://www.chromium.org/nativeclient + * @internal + */ +#define U_PF_BROWSER_NATIVE_CLIENT 4020 +/** Android is based on Linux. @internal */ +#define U_PF_ANDROID 4050 +/** Fuchsia is a POSIX-ish platform. @internal */ +#define U_PF_FUCHSIA 4100 +/* Maximum value for Linux-based platform is 4499 */ +/** + * Emscripten is a C++ transpiler for the Web that can target asm.js or + * WebAssembly. It provides some POSIX-compatible wrappers and stubs and + * some Linux-like functionality, but is not fully compatible with + * either. + * @internal + */ +#define U_PF_EMSCRIPTEN 5010 +/** z/OS is the successor to OS/390 which was the successor to MVS. @internal */ +#define U_PF_OS390 9000 +/** "IBM i" is the current name of what used to be i5/OS and earlier OS/400. @internal */ +#define U_PF_OS400 9400 + +#ifdef U_PLATFORM + /* Use the predefined value. */ +#elif defined(__MINGW32__) +# define U_PLATFORM U_PF_MINGW +#elif defined(__CYGWIN__) +# define U_PLATFORM U_PF_CYGWIN +#elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) +# define U_PLATFORM U_PF_WINDOWS +#elif defined(__ANDROID__) +# define U_PLATFORM U_PF_ANDROID + /* Android wchar_t support depends on the API level. */ +# include +#elif defined(__pnacl__) || defined(__native_client__) +# define U_PLATFORM U_PF_BROWSER_NATIVE_CLIENT +#elif defined(__Fuchsia__) +# define U_PLATFORM U_PF_FUCHSIA +#elif defined(linux) || defined(__linux__) || defined(__linux) +# define U_PLATFORM U_PF_LINUX +#elif defined(__APPLE__) && defined(__MACH__) +# include +# if (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) && (defined(TARGET_OS_MACCATALYST) && !TARGET_OS_MACCATALYST) /* variant of TARGET_OS_MAC */ +# define U_PLATFORM U_PF_IPHONE +# else +# define U_PLATFORM U_PF_DARWIN +# endif +#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__) +# if defined(__FreeBSD__) +# include +# endif +# define U_PLATFORM U_PF_BSD +#elif defined(sun) || defined(__sun) + /* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */ +# define U_PLATFORM U_PF_SOLARIS +# if defined(__GNUC__) + /* Solaris/GCC needs this header file to get the proper endianness. Normally, this + * header file is included with stddef.h but on Solairs/GCC, the GCC version of stddef.h + * is included which does not include this header file. + */ +# include +# endif +#elif defined(_AIX) || defined(__TOS_AIX__) +# define U_PLATFORM U_PF_AIX +#elif defined(_hpux) || defined(hpux) || defined(__hpux) +# define U_PLATFORM U_PF_HPUX +#elif defined(sgi) || defined(__sgi) +# define U_PLATFORM U_PF_IRIX +#elif defined(__QNX__) || defined(__QNXNTO__) +# define U_PLATFORM U_PF_QNX +#elif defined(__TOS_MVS__) +# define U_PLATFORM U_PF_OS390 +#elif defined(__OS400__) || defined(__TOS_OS400__) +# define U_PLATFORM U_PF_OS400 +#elif defined(__EMSCRIPTEN__) +# define U_PLATFORM U_PF_EMSCRIPTEN +#else +# define U_PLATFORM U_PF_UNKNOWN +#endif + +/** + * \def CYGWINMSVC + * Defined if this is Windows with Cygwin, but using MSVC rather than gcc. + * Otherwise undefined. + * @internal + */ +/* Commented out because this is already set in mh-cygwin-msvc +#if U_PLATFORM == U_PF_CYGWIN && defined(_MSC_VER) +# define CYGWINMSVC +#endif +*/ +#ifdef U_IN_DOXYGEN +# define CYGWINMSVC +#endif + +/** + * \def U_PLATFORM_USES_ONLY_WIN32_API + * Defines whether the platform uses only the Win32 API. + * Set to 1 for Windows/MSVC and MinGW but not Cygwin. + * @internal + */ +#ifdef U_PLATFORM_USES_ONLY_WIN32_API + /* Use the predefined value. */ +#elif (U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_MINGW) || defined(CYGWINMSVC) +# define U_PLATFORM_USES_ONLY_WIN32_API 1 +#else + /* Cygwin implements POSIX. */ +# define U_PLATFORM_USES_ONLY_WIN32_API 0 +#endif + +/** + * \def U_PLATFORM_HAS_WIN32_API + * Defines whether the Win32 API is available on the platform. + * Set to 1 for Windows/MSVC, MinGW and Cygwin. + * @internal + */ +#ifdef U_PLATFORM_HAS_WIN32_API + /* Use the predefined value. */ +#elif U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN +# define U_PLATFORM_HAS_WIN32_API 1 +#else +# define U_PLATFORM_HAS_WIN32_API 0 +#endif + +/** + * \def U_PLATFORM_HAS_WINUWP_API + * Defines whether target is intended for Universal Windows Platform API + * Set to 1 for Windows10 Release Solution Configuration + * @internal + */ +#ifdef U_PLATFORM_HAS_WINUWP_API + /* Use the predefined value. */ +#else +#endif + +/** + * \def U_PLATFORM_IMPLEMENTS_POSIX + * Defines whether the platform implements (most of) the POSIX API. + * Set to 1 for Cygwin and most other platforms. + * @internal + */ +#ifdef U_PLATFORM_IMPLEMENTS_POSIX + /* Use the predefined value. */ +#elif U_PLATFORM_USES_ONLY_WIN32_API +# define U_PLATFORM_IMPLEMENTS_POSIX 0 +#else +# define U_PLATFORM_IMPLEMENTS_POSIX 1 +#endif + +/** + * \def U_PLATFORM_IS_LINUX_BASED + * Defines whether the platform is Linux or one of its derivatives. + * @internal + */ +#ifdef U_PLATFORM_IS_LINUX_BASED + /* Use the predefined value. */ +#elif U_PF_LINUX <= U_PLATFORM && U_PLATFORM <= 4499 +# define U_PLATFORM_IS_LINUX_BASED 1 +#else +# define U_PLATFORM_IS_LINUX_BASED 0 +#endif + +/** + * \def U_PLATFORM_IS_DARWIN_BASED + * Defines whether the platform is Darwin or one of its derivatives. + * @internal + */ +#ifdef U_PLATFORM_IS_DARWIN_BASED + /* Use the predefined value. */ +#elif U_PF_DARWIN <= U_PLATFORM && U_PLATFORM <= U_PF_IPHONE +# define U_PLATFORM_IS_DARWIN_BASED 1 +#else +# define U_PLATFORM_IS_DARWIN_BASED 0 +#endif + +/** + * \def U_HAVE_STDINT_H + * Defines whether stdint.h is available. It is a C99 standard header. + * We used to include inttypes.h which includes stdint.h but we usually do not need + * the additional definitions from inttypes.h. + * @internal + */ +#ifdef U_HAVE_STDINT_H + /* Use the predefined value. */ +#elif U_PLATFORM_USES_ONLY_WIN32_API +# if defined(__BORLANDC__) || U_PLATFORM == U_PF_MINGW || (defined(_MSC_VER) && _MSC_VER>=1600) + /* Windows Visual Studio 9 and below do not have stdint.h & inttypes.h, but VS 2010 adds them. */ +# define U_HAVE_STDINT_H 1 +# else +# define U_HAVE_STDINT_H 0 +# endif +#elif U_PLATFORM == U_PF_SOLARIS + /* Solaris has inttypes.h but not stdint.h. */ +# define U_HAVE_STDINT_H 0 +#elif U_PLATFORM == U_PF_AIX && !defined(_AIX51) && defined(_POWER) + /* PPC AIX <= 4.3 has inttypes.h but not stdint.h. */ +# define U_HAVE_STDINT_H 0 +#else +# define U_HAVE_STDINT_H 1 +#endif + +/** + * \def U_HAVE_INTTYPES_H + * Defines whether inttypes.h is available. It is a C99 standard header. + * We include inttypes.h where it is available but stdint.h is not. + * @internal + */ +#ifdef U_HAVE_INTTYPES_H + /* Use the predefined value. */ +#elif U_PLATFORM == U_PF_SOLARIS + /* Solaris has inttypes.h but not stdint.h. */ +# define U_HAVE_INTTYPES_H 1 +#elif U_PLATFORM == U_PF_AIX && !defined(_AIX51) && defined(_POWER) + /* PPC AIX <= 4.3 has inttypes.h but not stdint.h. */ +# define U_HAVE_INTTYPES_H 1 +#else + /* Most platforms have both inttypes.h and stdint.h, or neither. */ +# define U_HAVE_INTTYPES_H U_HAVE_STDINT_H +#endif + +/*===========================================================================*/ +/** @{ Compiler and environment features */ +/*===========================================================================*/ + +/** + * \def U_GCC_MAJOR_MINOR + * Indicates whether the compiler is gcc (test for != 0), + * and if so, contains its major (times 100) and minor version numbers. + * If the compiler is not gcc, then U_GCC_MAJOR_MINOR == 0. + * + * For example, for testing for whether we have gcc, and whether it's 4.6 or higher, + * use "#if U_GCC_MAJOR_MINOR >= 406". + * @internal + */ +#ifdef __GNUC__ +# define U_GCC_MAJOR_MINOR (__GNUC__ * 100 + __GNUC_MINOR__) +#else +# define U_GCC_MAJOR_MINOR 0 +#endif + +/** + * \def U_IS_BIG_ENDIAN + * Determines the endianness of the platform. + * @internal + */ +# define U_IS_BIG_ENDIAN 0 + +/** + * \def U_HAVE_PLACEMENT_NEW + * Determines whether to override placement new and delete for STL. + * @stable ICU 2.6 + */ +#ifdef U_HAVE_PLACEMENT_NEW + /* Use the predefined value. */ +#elif defined(__BORLANDC__) +# define U_HAVE_PLACEMENT_NEW 0 +#else +# define U_HAVE_PLACEMENT_NEW 1 +#endif + +/** + * \def U_HAVE_DEBUG_LOCATION_NEW + * Define this to define the MFC debug version of the operator new. + * + * @stable ICU 3.4 + */ +#ifdef U_HAVE_DEBUG_LOCATION_NEW + /* Use the predefined value. */ +#elif defined(_MSC_VER) +# define U_HAVE_DEBUG_LOCATION_NEW 1 +#else +# define U_HAVE_DEBUG_LOCATION_NEW 0 +#endif + +/* Compatibility with compilers other than clang: http://clang.llvm.org/docs/LanguageExtensions.html */ +#ifdef __has_attribute +# define UPRV_HAS_ATTRIBUTE(x) __has_attribute(x) +#else +# define UPRV_HAS_ATTRIBUTE(x) 0 +#endif +#ifdef __has_cpp_attribute +# define UPRV_HAS_CPP_ATTRIBUTE(x) __has_cpp_attribute(x) +#else +# define UPRV_HAS_CPP_ATTRIBUTE(x) 0 +#endif +#ifdef __has_declspec_attribute +# define UPRV_HAS_DECLSPEC_ATTRIBUTE(x) __has_declspec_attribute(x) +#else +# define UPRV_HAS_DECLSPEC_ATTRIBUTE(x) 0 +#endif +#ifdef __has_builtin +# define UPRV_HAS_BUILTIN(x) __has_builtin(x) +#else +# define UPRV_HAS_BUILTIN(x) 0 +#endif +#ifdef __has_feature +# define UPRV_HAS_FEATURE(x) __has_feature(x) +#else +# define UPRV_HAS_FEATURE(x) 0 +#endif +#ifdef __has_extension +# define UPRV_HAS_EXTENSION(x) __has_extension(x) +#else +# define UPRV_HAS_EXTENSION(x) 0 +#endif +#ifdef __has_warning +# define UPRV_HAS_WARNING(x) __has_warning(x) +#else +# define UPRV_HAS_WARNING(x) 0 +#endif + +/** + * \def U_MALLOC_ATTR + * Attribute to mark functions as malloc-like + * @internal + */ +#if defined(__GNUC__) && __GNUC__>=3 +# define U_MALLOC_ATTR __attribute__ ((__malloc__)) +#else +# define U_MALLOC_ATTR +#endif + +/** + * \def U_ALLOC_SIZE_ATTR + * Attribute to specify the size of the allocated buffer for malloc-like functions + * @internal + */ +#if (defined(__GNUC__) && \ + (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))) || \ + UPRV_HAS_ATTRIBUTE(alloc_size) +# define U_ALLOC_SIZE_ATTR(X) __attribute__ ((alloc_size(X))) +# define U_ALLOC_SIZE_ATTR2(X,Y) __attribute__ ((alloc_size(X,Y))) +#else +# define U_ALLOC_SIZE_ATTR(X) +# define U_ALLOC_SIZE_ATTR2(X,Y) +#endif + +/** + * \def U_CPLUSPLUS_VERSION + * 0 if no C++; 1, 11, 14, ... if C++. + * Support for specific features cannot always be determined by the C++ version alone. + * @internal + */ +#ifdef U_CPLUSPLUS_VERSION +# if U_CPLUSPLUS_VERSION != 0 && !defined(__cplusplus) +# undef U_CPLUSPLUS_VERSION +# define U_CPLUSPLUS_VERSION 0 +# endif + /* Otherwise use the predefined value. */ +#elif !defined(__cplusplus) +# define U_CPLUSPLUS_VERSION 0 +#elif __cplusplus >= 201402L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L) +# define U_CPLUSPLUS_VERSION 14 +#elif __cplusplus >= 201103L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L) +# define U_CPLUSPLUS_VERSION 11 +#else + // C++98 or C++03 +# define U_CPLUSPLUS_VERSION 1 +#endif + +#if (U_PLATFORM == U_PF_AIX || U_PLATFORM == U_PF_OS390) && defined(__cplusplus) &&(U_CPLUSPLUS_VERSION < 11) +// add in std::nullptr_t +namespace std { + typedef decltype(nullptr) nullptr_t; +}; +#endif + +/** + * \def U_NOEXCEPT + * "noexcept" if supported, otherwise empty. + * Some code, especially STL containers, uses move semantics of objects only + * if the move constructor and the move operator are declared as not throwing exceptions. + * @internal + */ +#ifdef U_NOEXCEPT + /* Use the predefined value. */ +#else +# define U_NOEXCEPT noexcept +#endif + +/** + * \def U_FALLTHROUGH + * Annotate intentional fall-through between switch labels. + * http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough + * @internal + */ +#ifndef __cplusplus + // Not for C. +#elif defined(U_FALLTHROUGH) + // Use the predefined value. +#elif defined(__clang__) + // Test for compiler vs. feature separately. + // Other compilers might choke on the feature test. +# if UPRV_HAS_CPP_ATTRIBUTE(clang::fallthrough) || \ + (UPRV_HAS_FEATURE(cxx_attributes) && \ + UPRV_HAS_WARNING("-Wimplicit-fallthrough")) +# define U_FALLTHROUGH [[clang::fallthrough]] +# endif +#elif defined(__GNUC__) && (__GNUC__ >= 7) +# define U_FALLTHROUGH __attribute__((fallthrough)) +#endif + +#ifndef U_FALLTHROUGH +# define U_FALLTHROUGH +#endif + +/** @} */ + +/*===========================================================================*/ +/** @{ Character data types */ +/*===========================================================================*/ + +/** + * U_CHARSET_FAMILY is equal to this value when the platform is an ASCII based platform. + * @stable ICU 2.0 + */ +#define U_ASCII_FAMILY 0 + +/** + * U_CHARSET_FAMILY is equal to this value when the platform is an EBCDIC based platform. + * @stable ICU 2.0 + */ +#define U_EBCDIC_FAMILY 1 + +/** + * \def U_CHARSET_FAMILY + * + *

These definitions allow to specify the encoding of text + * in the char data type as defined by the platform and the compiler. + * It is enough to determine the code point values of "invariant characters", + * which are the ones shared by all encodings that are in use + * on a given platform.

+ * + *

Those "invariant characters" should be all the uppercase and lowercase + * latin letters, the digits, the space, and "basic punctuation". + * Also, '\\n', '\\r', '\\t' should be available.

+ * + *

The list of "invariant characters" is:
+ * \code + * A-Z a-z 0-9 SPACE " % & ' ( ) * + , - . / : ; < = > ? _ + * \endcode + *
+ * (52 letters + 10 numbers + 20 punc/sym/space = 82 total)

+ * + *

This matches the IBM Syntactic Character Set (CS 640).

+ * + *

In other words, all the graphic characters in 7-bit ASCII should + * be safely accessible except the following:

+ * + * \code + * '\' + * '[' + * ']' + * '{' + * '}' + * '^' + * '~' + * '!' + * '#' + * '|' + * '$' + * '@' + * '`' + * \endcode + * @stable ICU 2.0 + */ +#ifdef U_CHARSET_FAMILY + /* Use the predefined value. */ +#elif U_PLATFORM == U_PF_OS390 && (!defined(__CHARSET_LIB) || !__CHARSET_LIB) +# define U_CHARSET_FAMILY U_EBCDIC_FAMILY +#elif U_PLATFORM == U_PF_OS400 && !defined(__UTF32__) +# define U_CHARSET_FAMILY U_EBCDIC_FAMILY +#else +# define U_CHARSET_FAMILY U_ASCII_FAMILY +#endif + +/** + * \def U_CHARSET_IS_UTF8 + * + * Hardcode the default charset to UTF-8. + * + * If this is set to 1, then + * - ICU will assume that all non-invariant char*, StringPiece, std::string etc. + * contain UTF-8 text, regardless of what the system API uses + * - some ICU code will use fast functions like u_strFromUTF8() + * rather than the more general and more heavy-weight conversion API (ucnv.h) + * - ucnv_getDefaultName() always returns "UTF-8" + * - ucnv_setDefaultName() is disabled and will not change the default charset + * - static builds of ICU are smaller + * - more functionality is available with the UCONFIG_NO_CONVERSION build-time + * configuration option (see unicode/uconfig.h) + * - the UCONFIG_NO_CONVERSION build option in uconfig.h is more usable + * + * @stable ICU 4.2 + * @see UCONFIG_NO_CONVERSION + */ +#ifdef U_CHARSET_IS_UTF8 + /* Use the predefined value. */ +#elif U_PLATFORM_IS_LINUX_BASED || U_PLATFORM_IS_DARWIN_BASED || \ + U_PLATFORM == U_PF_EMSCRIPTEN +# define U_CHARSET_IS_UTF8 1 +#else +# define U_CHARSET_IS_UTF8 0 +#endif + +/** @} */ + +/*===========================================================================*/ +/** @{ Information about wchar support */ +/*===========================================================================*/ + +/** + * \def U_HAVE_WCHAR_H + * Indicates whether is available (1) or not (0). Set to 1 by default. + * + * @stable ICU 2.0 + */ +#ifdef U_HAVE_WCHAR_H + /* Use the predefined value. */ +#elif U_PLATFORM == U_PF_ANDROID && __ANDROID_API__ < 9 + /* + * Android before Gingerbread (Android 2.3, API level 9) did not support wchar_t. + * The type and header existed, but the library functions did not work as expected. + * The size of wchar_t was 1 but L"xyz" string literals had 32-bit units anyway. + */ +# define U_HAVE_WCHAR_H 0 +#else +# define U_HAVE_WCHAR_H 1 +#endif + +/** + * \def U_SIZEOF_WCHAR_T + * U_SIZEOF_WCHAR_T==sizeof(wchar_t) + * + * @stable ICU 2.0 + */ +#ifdef U_SIZEOF_WCHAR_T + /* Use the predefined value. */ +#elif (U_PLATFORM == U_PF_ANDROID && __ANDROID_API__ < 9) + /* + * Classic Mac OS and Mac OS X before 10.3 (Panther) did not support wchar_t or wstring. + * Newer Mac OS X has size 4. + */ +# define U_SIZEOF_WCHAR_T 1 +#elif U_PLATFORM_HAS_WIN32_API || U_PLATFORM == U_PF_CYGWIN +# define U_SIZEOF_WCHAR_T 2 +#elif U_PLATFORM == U_PF_AIX + /* + * AIX 6.1 information, section "Wide character data representation": + * "... the wchar_t datatype is 32-bit in the 64-bit environment and + * 16-bit in the 32-bit environment." + * and + * "All locales use Unicode for their wide character code values (process code), + * except the IBM-eucTW codeset." + */ +# ifdef __64BIT__ +# define U_SIZEOF_WCHAR_T 4 +# else +# define U_SIZEOF_WCHAR_T 2 +# endif +#elif U_PLATFORM == U_PF_OS390 + /* + * z/OS V1R11 information center, section "LP64 | ILP32": + * "In 31-bit mode, the size of long and pointers is 4 bytes and the size of wchar_t is 2 bytes. + * Under LP64, the size of long and pointer is 8 bytes and the size of wchar_t is 4 bytes." + */ +# ifdef _LP64 +# define U_SIZEOF_WCHAR_T 4 +# else +# define U_SIZEOF_WCHAR_T 2 +# endif +#elif U_PLATFORM == U_PF_OS400 +# if defined(__UTF32__) + /* + * LOCALETYPE(*LOCALEUTF) is specified. + * Wide-character strings are in UTF-32, + * narrow-character strings are in UTF-8. + */ +# define U_SIZEOF_WCHAR_T 4 +# elif defined(__UCS2__) + /* + * LOCALETYPE(*LOCALEUCS2) is specified. + * Wide-character strings are in UCS-2, + * narrow-character strings are in EBCDIC. + */ +# define U_SIZEOF_WCHAR_T 2 +# else + /* + * LOCALETYPE(*CLD) or LOCALETYPE(*LOCALE) is specified. + * Wide-character strings are in 16-bit EBCDIC, + * narrow-character strings are in EBCDIC. + */ +# define U_SIZEOF_WCHAR_T 2 +# endif +#else +# define U_SIZEOF_WCHAR_T 4 +#endif + +#ifndef U_HAVE_WCSCPY +#define U_HAVE_WCSCPY U_HAVE_WCHAR_H +#endif + +/** @} */ + +/** + * \def U_HAVE_CHAR16_T + * Defines whether the char16_t type is available for UTF-16 + * and u"abc" UTF-16 string literals are supported. + * This is a new standard type and standard string literal syntax in C++0x + * but has been available in some compilers before. + * @internal + */ +#ifdef U_HAVE_CHAR16_T + /* Use the predefined value. */ +#else + /* + * Notes: + * Visual Studio 2010 (_MSC_VER==1600) defines char16_t as a typedef + * and does not support u"abc" string literals. + * Visual Studio 2015 (_MSC_VER>=1900) and above adds support for + * both char16_t and u"abc" string literals. + * gcc 4.4 defines the __CHAR16_TYPE__ macro to a usable type but + * does not support u"abc" string literals. + * C++11 and C11 require support for UTF-16 literals + * TODO: Fix for plain C. Doesn't work on Mac. + */ +# if U_CPLUSPLUS_VERSION >= 11 || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) +# define U_HAVE_CHAR16_T 1 +# else +# define U_HAVE_CHAR16_T 0 +# endif +#endif + +/** + * @{ + * \def U_DECLARE_UTF16 + * Do not use this macro because it is not defined on all platforms. + * Use the UNICODE_STRING or U_STRING_DECL macros instead. + * @internal + */ +#ifdef U_DECLARE_UTF16 + /* Use the predefined value. */ +#elif U_HAVE_CHAR16_T \ + || (defined(__xlC__) && defined(__IBM_UTF_LITERAL) && U_SIZEOF_WCHAR_T != 2) \ + || (defined(__HP_aCC) && __HP_aCC >= 035000) \ + || (defined(__HP_cc) && __HP_cc >= 111106) \ + || (defined(U_IN_DOXYGEN)) +# define U_DECLARE_UTF16(string) u ## string +#elif U_SIZEOF_WCHAR_T == 2 \ + && (U_CHARSET_FAMILY == 0 || (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400 && defined(__UCS2__))) +# define U_DECLARE_UTF16(string) L ## string +#else + /* Leave U_DECLARE_UTF16 undefined. See unistr.h. */ +#endif + +/** @} */ + +/*===========================================================================*/ +/** @{ Symbol import-export control */ +/*===========================================================================*/ + +#ifdef U_EXPORT + /* Use the predefined value. */ +#elif defined(U_STATIC_IMPLEMENTATION) +# define U_EXPORT +#elif defined(_MSC_VER) || (UPRV_HAS_DECLSPEC_ATTRIBUTE(__dllexport__) && \ + UPRV_HAS_DECLSPEC_ATTRIBUTE(__dllimport__)) +# define U_EXPORT __declspec(dllexport) +#elif defined(__GNUC__) +# define U_EXPORT __attribute__((visibility("default"))) +#elif (defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x550) \ + || (defined(__SUNPRO_C) && __SUNPRO_C >= 0x550) +# define U_EXPORT __global +/*#elif defined(__HP_aCC) || defined(__HP_cc) +# define U_EXPORT __declspec(dllexport)*/ +#else +# define U_EXPORT +#endif + +/* U_CALLCONV is related to U_EXPORT2 */ +#ifdef U_EXPORT2 + /* Use the predefined value. */ +#elif defined(_MSC_VER) +# define U_EXPORT2 __cdecl +#else +# define U_EXPORT2 +#endif + +#ifdef U_IMPORT + /* Use the predefined value. */ +#elif defined(_MSC_VER) || (UPRV_HAS_DECLSPEC_ATTRIBUTE(__dllexport__) && \ + UPRV_HAS_DECLSPEC_ATTRIBUTE(__dllimport__)) + /* Windows needs to export/import data. */ +# define U_IMPORT __declspec(dllimport) +#else +# define U_IMPORT +#endif + +/** + * \def U_HIDDEN + * This is used to mark internal structs declared within external classes, + * to prevent the internal structs from having the same visibility as the + * class within which they are declared. + * @internal + */ +#ifdef U_HIDDEN + /* Use the predefined value. */ +#elif defined(__GNUC__) +# define U_HIDDEN __attribute__((visibility("hidden"))) +#else +# define U_HIDDEN +#endif + +/** + * \def U_CALLCONV + * Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary + * in callback function typedefs to make sure that the calling convention + * is compatible. + * + * This is only used for non-ICU-API functions. + * When a function is a public ICU API, + * you must use the U_CAPI and U_EXPORT2 qualifiers. + * + * Please note, you need to use U_CALLCONV after the *. + * + * NO : "static const char U_CALLCONV *func( . . . )" + * YES: "static const char* U_CALLCONV func( . . . )" + * + * @stable ICU 2.0 + */ +#if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) +# define U_CALLCONV __cdecl +#else +# define U_CALLCONV U_EXPORT2 +#endif + +/** + * \def U_CALLCONV_FPTR + * Similar to U_CALLCONV, but only used on function pointers. + * @internal + */ +#if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) +# define U_CALLCONV_FPTR U_CALLCONV +#else +# define U_CALLCONV_FPTR +#endif +/* @} */ + +#endif // _PLATFORM_H + +// ptypes.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* +* Copyright (C) 1997-2012, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* +* FILE NAME : ptypes.h +* +* Date Name Description +* 05/13/98 nos Creation (content moved here from ptypes.h). +* 03/02/99 stephen Added AS400 support. +* 03/30/99 stephen Added Linux support. +* 04/13/99 stephen Reworked for autoconf. +* 09/18/08 srl Moved basic types back to ptypes.h from platform.h +****************************************************************************** +*/ + +/** + * \file + * \brief C API: Definitions of integer types of various widths + */ + +#ifndef _PTYPES_H +#define _PTYPES_H + +/** + * \def __STDC_LIMIT_MACROS + * According to the Linux stdint.h, the ISO C99 standard specifies that in C++ implementations + * macros like INT32_MIN and UINTPTR_MAX should only be defined if explicitly requested. + * We need to define __STDC_LIMIT_MACROS before including stdint.h in C++ code + * that uses such limit macros. + * @internal + */ +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS +#endif + +/* NULL, size_t, wchar_t */ +#include + +/* + * If all compilers provided all of the C99 headers and types, + * we would just unconditionally #include here + * and not need any of the stuff after including platform.h. + */ + +/* Find out if we have stdint.h etc. */ + +/*===========================================================================*/ +/* Generic data types */ +/*===========================================================================*/ + +/* If your platform does not have the header, you may + need to edit the typedefs in the #else section below. + Use #if...#else...#endif with predefined compiler macros if possible. */ +#if U_HAVE_STDINT_H + +/* + * We mostly need (which defines the standard integer types) but not . + * includes and adds the printf/scanf helpers PRId32, SCNx16 etc. + * which we almost never use, plus stuff like imaxabs() which we never use. + */ +#include + +#if U_PLATFORM == U_PF_OS390 +/* The features header is needed to get (u)int64_t sometimes. */ +#include +/* z/OS has , but some versions are missing uint8_t (APAR PK62248). */ +#if !defined(__uint8_t) +#define __uint8_t 1 +typedef unsigned char uint8_t; +#endif +#endif /* U_PLATFORM == U_PF_OS390 */ + +#elif U_HAVE_INTTYPES_H + +# include + +#else /* neither U_HAVE_STDINT_H nor U_HAVE_INTTYPES_H */ + +/// \cond +#if ! U_HAVE_INT8_T +typedef signed char int8_t; +#endif + +#if ! U_HAVE_UINT8_T +typedef unsigned char uint8_t; +#endif + +#if ! U_HAVE_INT16_T +typedef signed short int16_t; +#endif + +#if ! U_HAVE_UINT16_T +typedef unsigned short uint16_t; +#endif + +#if ! U_HAVE_INT32_T +typedef signed int int32_t; +#endif + +#if ! U_HAVE_UINT32_T +typedef unsigned int uint32_t; +#endif + +#if ! U_HAVE_INT64_T +#ifdef _MSC_VER + typedef signed __int64 int64_t; +#else + typedef signed long long int64_t; +#endif +#endif + +#if ! U_HAVE_UINT64_T +#ifdef _MSC_VER + typedef unsigned __int64 uint64_t; +#else + typedef unsigned long long uint64_t; +#endif +#endif +/// \endcond + +#endif /* U_HAVE_STDINT_H / U_HAVE_INTTYPES_H */ + +#endif /* _PTYPES_H */ + +// umachine.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* +* Copyright (C) 1999-2015, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* file name: umachine.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 1999sep13 +* created by: Markus W. Scherer +* +* This file defines basic types and constants for ICU to be +* platform-independent. umachine.h and utf.h are included into +* utypes.h to provide all the general definitions for ICU. +* All of these definitions used to be in utypes.h before +* the UTF-handling macros made this unmaintainable. +*/ + +#ifndef __UMACHINE_H__ +#define __UMACHINE_H__ + + +/** + * \file + * \brief Basic types and constants for UTF + * + *

Basic types and constants for UTF

+ * This file defines basic types and constants for utf.h to be + * platform-independent. umachine.h and utf.h are included into + * utypes.h to provide all the general definitions for ICU. + * All of these definitions used to be in utypes.h before + * the UTF-handling macros made this unmaintainable. + * + */ +/*==========================================================================*/ +/* Include platform-dependent definitions */ +/* which are contained in the platform-specific file platform.h */ +/*==========================================================================*/ + + +/* + * ANSI C headers: + * stddef.h defines wchar_t + */ +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +// Microsoft-specific change: Non-C++ callers with older CRTs that don't have the +// C99 header stdbool.h available can define the macro DONT_HAVE_STDBOOL_H before +// including this header in order to avoid the dependency on stdbool.h +// In this case we'll provide our own definitions for true/false, similar to the +// stdbool.h header definitions. +#ifndef __cplusplus + #ifndef DONT_HAVE_STDBOOL_H + #include + #else + #ifndef false + #define false 0 + #endif + #ifndef true + #define true 1 + #endif + #endif // DONT_HAVE_STDBOOL_H +#endif // __cplusplus +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) +#include + +/*==========================================================================*/ +/* For C wrappers, we use the symbol U_CAPI. */ +/* This works properly if the includer is C or C++. */ +/* Functions are declared U_CAPI return-type U_EXPORT2 function-name()... */ +/*==========================================================================*/ + +/** + * \def U_CFUNC + * This is used in a declaration of a library private ICU C function. + * @stable ICU 2.4 + */ + +/** + * \def U_CDECL_BEGIN + * This is used to begin a declaration of a library private ICU C API. + * @stable ICU 2.4 + */ + +/** + * \def U_CDECL_END + * This is used to end a declaration of a library private ICU C API + * @stable ICU 2.4 + */ + +#ifdef __cplusplus +# define U_CFUNC extern "C" +# define U_CDECL_BEGIN extern "C" { +# define U_CDECL_END } +#else +# define U_CFUNC extern +# define U_CDECL_BEGIN +# define U_CDECL_END +#endif + +#ifndef U_ATTRIBUTE_DEPRECATED +/** + * \def U_ATTRIBUTE_DEPRECATED + * This is used for GCC specific attributes + * @internal + */ +#if U_GCC_MAJOR_MINOR >= 302 +# define U_ATTRIBUTE_DEPRECATED __attribute__ ((deprecated)) +/** + * \def U_ATTRIBUTE_DEPRECATED + * This is used for Visual C++ specific attributes + * @internal + */ +#elif defined(_MSC_VER) && (_MSC_VER >= 1400) +# define U_ATTRIBUTE_DEPRECATED __declspec(deprecated) +#else +# define U_ATTRIBUTE_DEPRECATED +#endif +#endif + +/** This is used to declare a function as a public ICU C API @stable ICU 2.0*/ +#define U_CAPI U_CFUNC U_EXPORT +/** Obsolete/same as U_CAPI; was used to declare a function as a stable public ICU C API*/ +#define U_STABLE U_CAPI +/** Obsolete/same as U_CAPI; was used to declare a function as a draft public ICU C API */ +#define U_DRAFT U_CAPI +/** This is used to declare a function as a deprecated public ICU C API */ +#define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED +/** Obsolete/same as U_CAPI; was used to declare a function as an obsolete public ICU C API */ +#define U_OBSOLETE U_CAPI +/** Obsolete/same as U_CAPI; was used to declare a function as an internal ICU C API */ +#define U_INTERNAL U_CAPI + + +// Before ICU 65, function-like, multi-statement ICU macros were just defined as +// series of statements wrapped in { } blocks and the caller could choose to +// either treat them as if they were actual functions and end the invocation +// with a trailing ; creating an empty statement after the block or else omit +// this trailing ; using the knowledge that the macro would expand to { }. +// +// But doing so doesn't work well with macros that look like functions and +// compiler warnings about empty statements (ICU-20601) and ICU 65 therefore +// switches to the standard solution of wrapping such macros in do { } while. +// +// This will however break existing code that depends on being able to invoke +// these macros without a trailing ; so to be able to remain compatible with +// such code the wrapper is itself defined as macros so that it's possible to +// build ICU 65 and later with the old macro behaviour, like this: +// +// export CPPFLAGS='-DUPRV_BLOCK_MACRO_BEGIN="" -DUPRV_BLOCK_MACRO_END=""' +// runConfigureICU ... +// + +#if (NTDDI_VERSION < NTDDI_WIN10_CO) +// Microsoft-specific change: +// In order to avoid having to add #ifdefs everywhere these are used, since these +// are private macros, we define these to nothing for versions below NTDDI_WIN10_CO +// for compatibility. +#define UPRV_BLOCK_MACRO_BEGIN +#define UPRV_BLOCK_MACRO_END +#endif // (NTDDI_VERSION < NTDDI_WIN10_CO) + +/** + * \def UPRV_BLOCK_MACRO_BEGIN + * Defined as the "do" keyword by default. + * @internal + */ +#ifndef UPRV_BLOCK_MACRO_BEGIN +#define UPRV_BLOCK_MACRO_BEGIN do +#endif + +/** + * \def UPRV_BLOCK_MACRO_END + * Defined as "while (false)" by default. + * @internal + */ +#ifndef UPRV_BLOCK_MACRO_END +#define UPRV_BLOCK_MACRO_END while (false) +#endif + +/*==========================================================================*/ +/* limits for int32_t etc., like in POSIX inttypes.h */ +/*==========================================================================*/ + +#ifndef INT8_MIN +/** The smallest value an 8 bit signed integer can hold @stable ICU 2.0 */ +# define INT8_MIN ((int8_t)(-128)) +#endif +#ifndef INT16_MIN +/** The smallest value a 16 bit signed integer can hold @stable ICU 2.0 */ +# define INT16_MIN ((int16_t)(-32767-1)) +#endif +#ifndef INT32_MIN +/** The smallest value a 32 bit signed integer can hold @stable ICU 2.0 */ +# define INT32_MIN ((int32_t)(-2147483647-1)) +#endif + +#ifndef INT8_MAX +/** The largest value an 8 bit signed integer can hold @stable ICU 2.0 */ +# define INT8_MAX ((int8_t)(127)) +#endif +#ifndef INT16_MAX +/** The largest value a 16 bit signed integer can hold @stable ICU 2.0 */ +# define INT16_MAX ((int16_t)(32767)) +#endif +#ifndef INT32_MAX +/** The largest value a 32 bit signed integer can hold @stable ICU 2.0 */ +# define INT32_MAX ((int32_t)(2147483647)) +#endif + +#ifndef UINT8_MAX +/** The largest value an 8 bit unsigned integer can hold @stable ICU 2.0 */ +# define UINT8_MAX ((uint8_t)(255U)) +#endif +#ifndef UINT16_MAX +/** The largest value a 16 bit unsigned integer can hold @stable ICU 2.0 */ +# define UINT16_MAX ((uint16_t)(65535U)) +#endif +#ifndef UINT32_MAX +/** The largest value a 32 bit unsigned integer can hold @stable ICU 2.0 */ +# define UINT32_MAX ((uint32_t)(4294967295U)) +#endif + +#if defined(U_INT64_T_UNAVAILABLE) +# error int64_t is required for decimal format and rule-based number format. +#else +# ifndef INT64_C +/** + * Provides a platform independent way to specify a signed 64-bit integer constant. + * note: may be wrong for some 64 bit platforms - ensure your compiler provides INT64_C + * @stable ICU 2.8 + */ +# define INT64_C(c) c ## LL +# endif +# ifndef UINT64_C +/** + * Provides a platform independent way to specify an unsigned 64-bit integer constant. + * note: may be wrong for some 64 bit platforms - ensure your compiler provides UINT64_C + * @stable ICU 2.8 + */ +# define UINT64_C(c) c ## ULL +# endif +# ifndef U_INT64_MIN +/** The smallest value a 64 bit signed integer can hold @stable ICU 2.8 */ +# define U_INT64_MIN ((int64_t)(INT64_C(-9223372036854775807)-1)) +# endif +# ifndef U_INT64_MAX +/** The largest value a 64 bit signed integer can hold @stable ICU 2.8 */ +# define U_INT64_MAX ((int64_t)(INT64_C(9223372036854775807))) +# endif +# ifndef U_UINT64_MAX +/** The largest value a 64 bit unsigned integer can hold @stable ICU 2.8 */ +# define U_UINT64_MAX ((uint64_t)(UINT64_C(18446744073709551615))) +# endif +#endif + +/*==========================================================================*/ +/* Boolean data type */ +/*==========================================================================*/ + +/** + * The ICU boolean type, a signed-byte integer. + * ICU-specific for historical reasons: The C and C++ standards used to not define type bool. + * Also provides a fixed type definition, as opposed to + * type bool whose details (e.g., sizeof) may vary by compiler and between C and C++. + * + * @stable ICU 2.0 + */ +typedef int8_t UBool; + +#if (NTDDI_VERSION < NTDDI_WIN10_CO) +// Microsoft-specific change: +// ICU previously defined FALSE=0 & TRUE=1 in the public ICU headers, but this was changed +// in ICU 68, such that they are now deprecated and no longer defined. For versions +// below NTDDI_WIN10_CO, we set U_DEFINE_FALSE_AND_TRUE to 1 so they will still be defined +// for compatibility. +#define U_DEFINE_FALSE_AND_TRUE 1 +#endif // (NTDDI_VERSION < NTDDI_WIN10_CO) + +/** + * \def U_DEFINE_FALSE_AND_TRUE + * Normally turns off defining macros FALSE=0 & TRUE=1 in public ICU headers. + * These obsolete macros sometimes break compilation of other code that + * defines enum constants or similar with these names. + * C++ has long defined bool/false/true. + * C99 also added definitions for these, although as macros; see stdbool.h. + * + * You may transitionally define U_DEFINE_FALSE_AND_TRUE=1 if you need time to migrate code. + * + * @internal ICU 68 + */ +#ifdef U_DEFINE_FALSE_AND_TRUE + // Use the predefined value. +#elif defined(U_COMBINED_IMPLEMENTATION) || \ + defined(U_COMMON_IMPLEMENTATION) || defined(U_I18N_IMPLEMENTATION) || \ + defined(U_IO_IMPLEMENTATION) || defined(U_LAYOUTEX_IMPLEMENTATION) || \ + defined(U_TOOLUTIL_IMPLEMENTATION) + // Inside ICU: Keep FALSE & TRUE available. +# define U_DEFINE_FALSE_AND_TRUE 1 +#else + // Outside ICU: Avoid collision with non-macro definitions of FALSE & TRUE. +# define U_DEFINE_FALSE_AND_TRUE 0 +#endif + +#if U_DEFINE_FALSE_AND_TRUE || defined(U_IN_DOXYGEN) +#ifndef TRUE +/** + * The TRUE value of a UBool. + * + * @deprecated ICU 68 Use standard "true" instead. + */ +# define TRUE 1 +#endif +#ifndef FALSE +/** + * The FALSE value of a UBool. + * + * @deprecated ICU 68 Use standard "false" instead. + */ +# define FALSE 0 +#endif +#endif // U_DEFINE_FALSE_AND_TRUE + +/*==========================================================================*/ +/* Unicode data types */ +/*==========================================================================*/ + +/* wchar_t-related definitions -------------------------------------------- */ + +/* + * \def U_WCHAR_IS_UTF16 + * Defined if wchar_t uses UTF-16. + * + * @stable ICU 2.0 + */ +/* + * \def U_WCHAR_IS_UTF32 + * Defined if wchar_t uses UTF-32. + * + * @stable ICU 2.0 + */ +#if !defined(U_WCHAR_IS_UTF16) && !defined(U_WCHAR_IS_UTF32) +# ifdef __STDC_ISO_10646__ +# if (U_SIZEOF_WCHAR_T==2) +# define U_WCHAR_IS_UTF16 +# elif (U_SIZEOF_WCHAR_T==4) +# define U_WCHAR_IS_UTF32 +# endif +# elif defined __UCS2__ +# if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T==2) +# define U_WCHAR_IS_UTF16 +# endif +# elif defined(__UCS4__) || (U_PLATFORM == U_PF_OS400 && defined(__UTF32__)) +# if (U_SIZEOF_WCHAR_T==4) +# define U_WCHAR_IS_UTF32 +# endif +# elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T==4 && U_PLATFORM_IS_LINUX_BASED) +# define U_WCHAR_IS_UTF32 +# elif U_PLATFORM_HAS_WIN32_API +# define U_WCHAR_IS_UTF16 +# endif +#endif + +/* UChar and UChar32 definitions -------------------------------------------- */ + +/** Number of bytes in a UChar. @stable ICU 2.0 */ +#define U_SIZEOF_UCHAR 2 + +/** + * \def U_CHAR16_IS_TYPEDEF + * If 1, then char16_t is a typedef and not a real type (yet) + * @internal + */ +#if (U_PLATFORM == U_PF_AIX) && defined(__cplusplus) &&(U_CPLUSPLUS_VERSION < 11) +// for AIX, uchar.h needs to be included +# include +# define U_CHAR16_IS_TYPEDEF 1 +#elif defined(_MSC_VER) && (_MSC_VER < 1900) +// Versions of Visual Studio/MSVC below 2015 do not support char16_t as a real type, +// and instead use a typedef. https://msdn.microsoft.com/library/bb531344.aspx +# define U_CHAR16_IS_TYPEDEF 1 +#else +# define U_CHAR16_IS_TYPEDEF 0 +#endif + + +/** + * \var UChar + * + * The base type for UTF-16 code units and pointers. + * Unsigned 16-bit integer. + * Starting with ICU 59, C++ API uses char16_t directly, while C API continues to use UChar. + * + * UChar is configurable by defining the macro UCHAR_TYPE + * on the preprocessor or compiler command line: + * -DUCHAR_TYPE=uint16_t or -DUCHAR_TYPE=wchar_t (if U_SIZEOF_WCHAR_T==2) etc. + * (The UCHAR_TYPE can also be \#defined earlier in this file, for outside the ICU library code.) + * This is for transitional use from application code that uses uint16_t or wchar_t for UTF-16. + * + * The default is UChar=char16_t. + * + * C++11 defines char16_t as bit-compatible with uint16_t, but as a distinct type. + * + * In C, char16_t is a simple typedef of uint_least16_t. + * ICU requires uint_least16_t=uint16_t for data memory mapping. + * On macOS, char16_t is not available because the uchar.h standard header is missing. + * + * @stable ICU 4.4 + */ + +#if 1 + // #if 1 is normal. UChar defaults to char16_t in C++. + // For configuration testing of UChar=uint16_t temporarily change this to #if 0. + // The intltest Makefile #defines UCHAR_TYPE=char16_t, + // so we only #define it to uint16_t if it is undefined so far. +#elif !defined(UCHAR_TYPE) +# define UCHAR_TYPE uint16_t +#endif + +#if defined(U_COMBINED_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) || \ + defined(U_I18N_IMPLEMENTATION) || defined(U_IO_IMPLEMENTATION) + // Inside the ICU library code, never configurable. + typedef char16_t UChar; +#elif defined(UCHAR_TYPE) + typedef UCHAR_TYPE UChar; +#elif (U_CPLUSPLUS_VERSION >= 11) + typedef char16_t UChar; +#else + typedef uint16_t UChar; +#endif + +/** + * \var OldUChar + * Default ICU 58 definition of UChar. + * A base type for UTF-16 code units and pointers. + * Unsigned 16-bit integer. + * + * Define OldUChar to be wchar_t if that is 16 bits wide. + * If wchar_t is not 16 bits wide, then define UChar to be uint16_t. + * + * This makes the definition of OldUChar platform-dependent + * but allows direct string type compatibility with platforms with + * 16-bit wchar_t types. + * + * This is how UChar was defined in ICU 58, for transition convenience. + * Exception: ICU 58 UChar was defined to UCHAR_TYPE if that macro was defined. + * The current UChar responds to UCHAR_TYPE but OldUChar does not. + * + * @stable ICU 59 + */ +#if U_SIZEOF_WCHAR_T==2 + typedef wchar_t OldUChar; +#elif defined(__CHAR16_TYPE__) + typedef __CHAR16_TYPE__ OldUChar; +#else + typedef uint16_t OldUChar; +#endif + +/** + * Define UChar32 as a type for single Unicode code points. + * UChar32 is a signed 32-bit integer (same as int32_t). + * + * The Unicode code point range is 0..0x10ffff. + * All other values (negative or >=0x110000) are illegal as Unicode code points. + * They may be used as sentinel values to indicate "done", "error" + * or similar non-code point conditions. + * + * Before ICU 2.4 (Jitterbug 2146), UChar32 was defined + * to be wchar_t if that is 32 bits wide (wchar_t may be signed or unsigned) + * or else to be uint32_t. + * That is, the definition of UChar32 was platform-dependent. + * + * @see U_SENTINEL + * @stable ICU 2.4 + */ +typedef int32_t UChar32; + +/** + * This value is intended for sentinel values for APIs that + * (take or) return single code points (UChar32). + * It is outside of the Unicode code point range 0..0x10ffff. + * + * For example, a "done" or "error" value in a new API + * could be indicated with U_SENTINEL. + * + * ICU APIs designed before ICU 2.4 usually define service-specific "done" + * values, mostly 0xffff. + * Those may need to be distinguished from + * actual U+ffff text contents by calling functions like + * CharacterIterator::hasNext() or UnicodeString::length(). + * + * @return -1 + * @see UChar32 + * @stable ICU 2.4 + */ +#define U_SENTINEL (-1) + + +#endif + +// utf.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* +* Copyright (C) 1999-2011, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: utf.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 1999sep09 +* created by: Markus W. Scherer +*/ + +/** + * \file + * \brief C API: Code point macros + * + * This file defines macros for checking whether a code point is + * a surrogate or a non-character etc. + * + * If U_NO_DEFAULT_INCLUDE_UTF_HEADERS is 0 then utf.h is included by utypes.h + * and itself includes utf8.h and utf16.h after some + * common definitions. + * If U_NO_DEFAULT_INCLUDE_UTF_HEADERS is 1 then each of these headers must be + * included explicitly if their definitions are used. + * + * utf8.h and utf16.h define macros for efficiently getting code points + * in and out of UTF-8/16 strings. + * utf16.h macros have "U16_" prefixes. + * utf8.h defines similar macros with "U8_" prefixes for UTF-8 string handling. + * + * ICU mostly processes 16-bit Unicode strings. + * Most of the time, such strings are well-formed UTF-16. + * Single, unpaired surrogates must be handled as well, and are treated in ICU + * like regular code points where possible. + * (Pairs of surrogate code points are indistinguishable from supplementary + * code points encoded as pairs of supplementary code units.) + * + * In fact, almost all Unicode code points in normal text (>99%) + * are on the BMP (<=U+ffff) and even <=U+d7ff. + * ICU functions handle supplementary code points (U+10000..U+10ffff) + * but are optimized for the much more frequently occurring BMP code points. + * + * umachine.h defines UChar to be an unsigned 16-bit integer. + * Since ICU 59, ICU uses char16_t in C++, UChar only in C, + * and defines UChar=char16_t by default. See the UChar API docs for details. + * + * UChar32 is defined to be a signed 32-bit integer (int32_t), large enough for a 21-bit + * Unicode code point (Unicode scalar value, 0..0x10ffff) and U_SENTINEL (-1). + * Before ICU 2.4, the definition of UChar32 was similarly platform-dependent as + * the definition of UChar. For details see the documentation for UChar32 itself. + * + * utf.h defines a small number of C macros for single Unicode code points. + * These are simple checks for surrogates and non-characters. + * For actual Unicode character properties see uchar.h. + * + * By default, string operations must be done with error checking in case + * a string is not well-formed UTF-16 or UTF-8. + * + * The U16_ macros detect if a surrogate code unit is unpaired + * (lead unit without trail unit or vice versa) and just return the unit itself + * as the code point. + * + * The U8_ macros detect illegal byte sequences and return a negative value. + * Starting with ICU 60, the observable length of a single illegal byte sequence + * skipped by one of these macros follows the Unicode 6+ recommendation + * which is consistent with the W3C Encoding Standard. + * + * There are ..._OR_FFFD versions of both U16_ and U8_ macros + * that return U+FFFD for illegal code unit sequences. + * + * The regular "safe" macros require that the initial, passed-in string index + * is within bounds. They only check the index when they read more than one + * code unit. This is usually done with code similar to the following loop: + *
while(i
+ *
+ * When it is safe to assume that text is well-formed UTF-16
+ * (does not contain single, unpaired surrogates), then one can use
+ * U16_..._UNSAFE macros.
+ * These do not check for proper code unit sequences or truncated text and may
+ * yield wrong results or even cause a crash if they are used with "malformed"
+ * text.
+ * In practice, U16_..._UNSAFE macros will produce slightly less code but
+ * should not be faster because the processing is only different when a
+ * surrogate code unit is detected, which will be rare.
+ *
+ * Similarly for UTF-8, there are "safe" macros without a suffix,
+ * and U8_..._UNSAFE versions.
+ * The performance differences are much larger here because UTF-8 provides so
+ * many opportunities for malformed sequences.
+ * The unsafe UTF-8 macros are entirely implemented inside the macro definitions
+ * and are fast, while the safe UTF-8 macros call functions for some complicated cases.
+ *
+ * Unlike with UTF-16, malformed sequences cannot be expressed with distinct
+ * code point values (0..U+10ffff). They are indicated with negative values instead.
+ *
+ * For more information see the ICU User Guide Strings chapter
+ * (https://unicode-org.github.io/icu/userguide/strings).
+ *
+ * Usage:
+ * ICU coding guidelines for if() statements should be followed when using these macros.
+ * Compound statements (curly braces {}) must be used  for if-else-while... 
+ * bodies and all macro statements should be terminated with semicolon.
+ *
+ * @stable ICU 2.4
+ */
+
+#ifndef __UTF_H__
+#define __UTF_H__
+
+/* include the utfXX.h after the following definitions */
+
+/* single-code point definitions -------------------------------------------- */
+
+/**
+ * Is this code point a Unicode noncharacter?
+ * @param c 32-bit code point
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U_IS_UNICODE_NONCHAR(c) \
+    ((c)>=0xfdd0 && \
+     ((c)<=0xfdef || ((c)&0xfffe)==0xfffe) && (c)<=0x10ffff)
+
+/**
+ * Is c a Unicode code point value (0..U+10ffff)
+ * that can be assigned a character?
+ *
+ * Code points that are not characters include:
+ * - single surrogate code points (U+d800..U+dfff, 2048 code points)
+ * - the last two code points on each plane (U+__fffe and U+__ffff, 34 code points)
+ * - U+fdd0..U+fdef (new with Unicode 3.1, 32 code points)
+ * - the highest Unicode code point value is U+10ffff
+ *
+ * This means that all code points below U+d800 are character code points,
+ * and that boundary is tested first for performance.
+ *
+ * @param c 32-bit code point
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U_IS_UNICODE_CHAR(c) \
+    ((uint32_t)(c)<0xd800 || \
+        (0xdfff<(c) && (c)<=0x10ffff && !U_IS_UNICODE_NONCHAR(c)))
+
+/**
+ * Is this code point a BMP code point (U+0000..U+ffff)?
+ * @param c 32-bit code point
+ * @return true or false
+ * @stable ICU 2.8
+ */
+#define U_IS_BMP(c) ((uint32_t)(c)<=0xffff)
+
+/**
+ * Is this code point a supplementary code point (U+10000..U+10ffff)?
+ * @param c 32-bit code point
+ * @return true or false
+ * @stable ICU 2.8
+ */
+#define U_IS_SUPPLEMENTARY(c) ((uint32_t)((c)-0x10000)<=0xfffff)
+ 
+/**
+ * Is this code point a lead surrogate (U+d800..U+dbff)?
+ * @param c 32-bit code point
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
+
+/**
+ * Is this code point a trail surrogate (U+dc00..U+dfff)?
+ * @param c 32-bit code point
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
+
+/**
+ * Is this code point a surrogate (U+d800..U+dfff)?
+ * @param c 32-bit code point
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
+
+/**
+ * Assuming c is a surrogate code point (U_IS_SURROGATE(c)),
+ * is it a lead surrogate?
+ * @param c 32-bit code point
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
+
+/**
+ * Assuming c is a surrogate code point (U_IS_SURROGATE(c)),
+ * is it a trail surrogate?
+ * @param c 32-bit code point
+ * @return true or false
+ * @stable ICU 4.2
+ */
+#define U_IS_SURROGATE_TRAIL(c) (((c)&0x400)!=0)
+
+/* include the utfXX.h ------------------------------------------------------ */
+
+
+#endif  /* __UTF_H__ */
+
+// utf8.h
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
+/*
+*******************************************************************************
+*
+*   Copyright (C) 1999-2015, International Business Machines
+*   Corporation and others.  All Rights Reserved.
+*
+*******************************************************************************
+*   file name:  utf8.h
+*   encoding:   UTF-8
+*   tab size:   8 (not used)
+*   indentation:4
+*
+*   created on: 1999sep13
+*   created by: Markus W. Scherer
+*/
+
+/**
+ * \file
+ * \brief C API: 8-bit Unicode handling macros
+ * 
+ * This file defines macros to deal with 8-bit Unicode (UTF-8) code units (bytes) and strings.
+ *
+ * For more information see utf.h and the ICU User Guide Strings chapter
+ * (https://unicode-org.github.io/icu/userguide/strings).
+ *
+ * Usage:
+ * ICU coding guidelines for if() statements should be followed when using these macros.
+ * Compound statements (curly braces {}) must be used  for if-else-while... 
+ * bodies and all macro statements should be terminated with semicolon.
+ */
+
+#ifndef __UTF8_H__
+#define __UTF8_H__
+
+#ifndef __UTF_H__
+#   include "icu/utf.h"
+#endif
+
+/* internal definitions ----------------------------------------------------- */
+
+/**
+ * Counts the trail bytes for a UTF-8 lead byte.
+ * Returns 0 for 0..0xc1 as well as for 0xf5..0xff.
+ * leadByte might be evaluated multiple times.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this file and thus must remain stable.
+ *
+ * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff.
+ * @internal
+ */
+#define U8_COUNT_TRAIL_BYTES(leadByte) \
+    (U8_IS_LEAD(leadByte) ? \
+        ((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0)+1 : 0)
+
+/**
+ * Counts the trail bytes for a UTF-8 lead byte of a valid UTF-8 sequence.
+ * Returns 0 for 0..0xc1. Undefined for 0xf5..0xff.
+ * leadByte might be evaluated multiple times.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this file and thus must remain stable.
+ *
+ * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff.
+ * @internal
+ */
+#define U8_COUNT_TRAIL_BYTES_UNSAFE(leadByte) \
+    (((uint8_t)(leadByte)>=0xc2)+((uint8_t)(leadByte)>=0xe0)+((uint8_t)(leadByte)>=0xf0))
+
+/**
+ * Mask a UTF-8 lead byte, leave only the lower bits that form part of the code point value.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this file and thus must remain stable.
+ * @internal
+ */
+#define U8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1)
+
+/**
+ * Internal bit vector for 3-byte UTF-8 validity check, for use in U8_IS_VALID_LEAD3_AND_T1.
+ * Each bit indicates whether one lead byte + first trail byte pair starts a valid sequence.
+ * Lead byte E0..EF bits 3..0 are used as byte index,
+ * first trail byte bits 7..5 are used as bit index into that byte.
+ * @see U8_IS_VALID_LEAD3_AND_T1
+ * @internal
+ */
+#define U8_LEAD3_T1_BITS "\x20\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x10\x30\x30"
+
+/**
+ * Internal 3-byte UTF-8 validity check.
+ * Non-zero if lead byte E0..EF and first trail byte 00..FF start a valid sequence.
+ * @internal
+ */
+#define U8_IS_VALID_LEAD3_AND_T1(lead, t1) (U8_LEAD3_T1_BITS[(lead)&0xf]&(1<<((uint8_t)(t1)>>5)))
+
+/**
+ * Internal bit vector for 4-byte UTF-8 validity check, for use in U8_IS_VALID_LEAD4_AND_T1.
+ * Each bit indicates whether one lead byte + first trail byte pair starts a valid sequence.
+ * First trail byte bits 7..4 are used as byte index,
+ * lead byte F0..F4 bits 2..0 are used as bit index into that byte.
+ * @see U8_IS_VALID_LEAD4_AND_T1
+ * @internal
+ */
+#define U8_LEAD4_T1_BITS "\x00\x00\x00\x00\x00\x00\x00\x00\x1E\x0F\x0F\x0F\x00\x00\x00\x00"
+
+/**
+ * Internal 4-byte UTF-8 validity check.
+ * Non-zero if lead byte F0..F4 and first trail byte 00..FF start a valid sequence.
+ * @internal
+ */
+#define U8_IS_VALID_LEAD4_AND_T1(lead, t1) (U8_LEAD4_T1_BITS[(uint8_t)(t1)>>4]&(1<<((lead)&7)))
+
+/**
+ * Function for handling "next code point" with error-checking.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this
+ * file and thus must remain stable, and should not be hidden when other internal
+ * functions are hidden (otherwise public macros would fail to compile).
+ * @internal
+ */
+U_CAPI UChar32 U_EXPORT2
+utf8_nextCharSafeBody(const uint8_t *s, int32_t *pi, int32_t length, UChar32 c, UBool strict);
+
+/**
+ * Function for handling "append code point" with error-checking.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this
+ * file and thus must remain stable, and should not be hidden when other internal
+ * functions are hidden (otherwise public macros would fail to compile).
+ * @internal
+ */
+U_CAPI int32_t U_EXPORT2
+utf8_appendCharSafeBody(uint8_t *s, int32_t i, int32_t length, UChar32 c, UBool *pIsError);
+
+/**
+ * Function for handling "previous code point" with error-checking.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this
+ * file and thus must remain stable, and should not be hidden when other internal
+ * functions are hidden (otherwise public macros would fail to compile).
+ * @internal
+ */
+U_CAPI UChar32 U_EXPORT2
+utf8_prevCharSafeBody(const uint8_t *s, int32_t start, int32_t *pi, UChar32 c, UBool strict);
+
+/**
+ * Function for handling "skip backward one code point" with error-checking.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this
+ * file and thus must remain stable, and should not be hidden when other internal
+ * functions are hidden (otherwise public macros would fail to compile).
+ * @internal
+ */
+U_CAPI int32_t U_EXPORT2
+utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
+
+/* single-code point definitions -------------------------------------------- */
+
+/**
+ * Does this code unit (byte) encode a code point by itself (US-ASCII 0..0x7f)?
+ * @param c 8-bit code unit (byte)
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U8_IS_SINGLE(c) (((c)&0x80)==0)
+
+/**
+ * Is this code unit (byte) a UTF-8 lead byte? (0xC2..0xF4)
+ * @param c 8-bit code unit (byte)
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U8_IS_LEAD(c) ((uint8_t)((c)-0xc2)<=0x32)
+// 0x32=0xf4-0xc2
+
+/**
+ * Is this code unit (byte) a UTF-8 trail byte? (0x80..0xBF)
+ * @param c 8-bit code unit (byte)
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U8_IS_TRAIL(c) ((int8_t)(c)<-0x40)
+
+/**
+ * How many code units (bytes) are used for the UTF-8 encoding
+ * of this Unicode code point?
+ * @param c 32-bit code point
+ * @return 1..4, or 0 if c is a surrogate or not a Unicode code point
+ * @stable ICU 2.4
+ */
+#define U8_LENGTH(c) \
+    ((uint32_t)(c)<=0x7f ? 1 : \
+        ((uint32_t)(c)<=0x7ff ? 2 : \
+            ((uint32_t)(c)<=0xd7ff ? 3 : \
+                ((uint32_t)(c)<=0xdfff || (uint32_t)(c)>0x10ffff ? 0 : \
+                    ((uint32_t)(c)<=0xffff ? 3 : 4)\
+                ) \
+            ) \
+        ) \
+    )
+
+/**
+ * The maximum number of UTF-8 code units (bytes) per Unicode code point (U+0000..U+10ffff).
+ * @return 4
+ * @stable ICU 2.4
+ */
+#define U8_MAX_LENGTH 4
+
+/**
+ * Get a code point from a string at a random-access offset,
+ * without changing the offset.
+ * The offset may point to either the lead byte or one of the trail bytes
+ * for a code point, in which case the macro will read all of the bytes
+ * for the code point.
+ * The result is undefined if the offset points to an illegal UTF-8
+ * byte sequence.
+ * Iteration through a string is more efficient with U8_NEXT_UNSAFE or U8_NEXT.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @param c output UChar32 variable
+ * @see U8_GET
+ * @stable ICU 2.4
+ */
+#define U8_GET_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
+    int32_t _u8_get_unsafe_index=(int32_t)(i); \
+    U8_SET_CP_START_UNSAFE(s, _u8_get_unsafe_index); \
+    U8_NEXT_UNSAFE(s, _u8_get_unsafe_index, c); \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Get a code point from a string at a random-access offset,
+ * without changing the offset.
+ * The offset may point to either the lead byte or one of the trail bytes
+ * for a code point, in which case the macro will read all of the bytes
+ * for the code point.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * If the offset points to an illegal UTF-8 byte sequence, then
+ * c is set to a negative value.
+ * Iteration through a string is more efficient with U8_NEXT_UNSAFE or U8_NEXT.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset
+ * @param i int32_t string offset, must be start<=i= NTDDI_WIN10_RS5)
+#define U8_NEXT(s, i, length, c) U8_INTERNAL_NEXT_OR_SUB(s, i, length, c, U_SENTINEL)
+#elif (NTDDI_VERSION >= NTDDI_WIN10_RS3)
+#define U8_NEXT(s, i, length, c) { \
+    (c)=(uint8_t)(s)[(i)++]; \
+    if(!U8_IS_SINGLE(c)) { \
+        uint8_t __t1, __t2; \
+        if( /* handle U+0800..U+FFFF inline */ \
+                (0xe0<=(c) && (c)<0xf0) && \
+                (((i)+1)<(length) || (length)<0) && \
+                U8_IS_VALID_LEAD3_AND_T1((c), __t1=(s)[i]) && \
+                (__t2=(s)[(i)+1]-0x80)<=0x3f) { \
+            (c)=(((c)&0xf)<<12)|((__t1&0x3f)<<6)|__t2; \
+            (i)+=2; \
+        } else if( /* handle U+0080..U+07FF inline */ \
+                ((c)<0xe0 && (c)>=0xc2) && \
+                ((i)!=(length)) && \
+                (__t1=(s)[i]-0x80)<=0x3f) { \
+            (c)=(((c)&0x1f)<<6)|__t1; \
+            ++(i); \
+        } else { \
+            /* function call for "complicated" and error cases */ \
+            (c)=utf8_nextCharSafeBody((const uint8_t *)s, &(i), (length), c, -1); \
+        } \
+    } \
+}
+#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5)
+
+/**
+ * Get a code point from a string at a code point boundary offset,
+ * and advance the offset to the next code point boundary.
+ * (Post-incrementing forward iteration.)
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * The offset may point to the lead byte of a multi-byte sequence,
+ * in which case the macro will read the whole sequence.
+ * If the offset points to a trail byte or an illegal UTF-8 sequence, then
+ * c is set to U+FFFD.
+ *
+ * This macro does not distinguish between a real U+FFFD in the text
+ * and U+FFFD returned for an ill-formed sequence.
+ * Use U8_NEXT() if that distinction is important.
+ *
+ * @param s const uint8_t * string
+ * @param i int32_t string offset, must be i= NTDDI_WIN10_RS5)
+#define U8_NEXT_OR_FFFD(s, i, length, c) U8_INTERNAL_NEXT_OR_SUB(s, i, length, c, 0xfffd)
+#elif (NTDDI_VERSION >= NTDDI_WIN10_RS3)
+#define U8_NEXT_OR_FFFD(s, i, length, c) { \
+    (c)=(uint8_t)(s)[(i)++]; \
+    if(!U8_IS_SINGLE(c)) { \
+        uint8_t __t1, __t2; \
+        if( /* handle U+0800..U+FFFF inline */ \
+                (0xe0<=(c) && (c)<0xf0) && \
+                (((i)+1)<(length) || (length)<0) && \
+                U8_IS_VALID_LEAD3_AND_T1((c), __t1=(s)[i]) && \
+                (__t2=(s)[(i)+1]-0x80)<=0x3f) { \
+            (c)=(((c)&0xf)<<12)|((__t1&0x3f)<<6)|__t2; \
+            (i)+=2; \
+        } else if( /* handle U+0080..U+07FF inline */ \
+                ((c)<0xe0 && (c)>=0xc2) && \
+                ((i)!=(length)) && \
+                (__t1=(s)[i]-0x80)<=0x3f) { \
+            (c)=(((c)&0x1f)<<6)|__t1; \
+            ++(i); \
+        } else { \
+            /* function call for "complicated" and error cases */ \
+            (c)=utf8_nextCharSafeBody((const uint8_t *)s, &(i), (length), c, -3); \
+        } \
+    } \
+}
+#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5)
+
+#if (NTDDI_VERSION >= NTDDI_WIN10_RS5)
+/** @internal */
+#define U8_INTERNAL_NEXT_OR_SUB(s, i, length, c, sub) UPRV_BLOCK_MACRO_BEGIN { \
+    (c)=(uint8_t)(s)[(i)++]; \
+    if(!U8_IS_SINGLE(c)) { \
+        uint8_t __t = 0; \
+        if((i)!=(length) && \
+            /* fetch/validate/assemble all but last trail byte */ \
+            ((c)>=0xe0 ? \
+                ((c)<0xf0 ?  /* U+0800..U+FFFF except surrogates */ \
+                    U8_LEAD3_T1_BITS[(c)&=0xf]&(1<<((__t=(s)[i])>>5)) && \
+                    (__t&=0x3f, 1) \
+                :  /* U+10000..U+10FFFF */ \
+                    ((c)-=0xf0)<=4 && \
+                    U8_LEAD4_T1_BITS[(__t=(s)[i])>>4]&(1<<(c)) && \
+                    ((c)=((c)<<6)|(__t&0x3f), ++(i)!=(length)) && \
+                    (__t=(s)[i]-0x80)<=0x3f) && \
+                /* valid second-to-last trail byte */ \
+                ((c)=((c)<<6)|__t, ++(i)!=(length)) \
+            :  /* U+0080..U+07FF */ \
+                (c)>=0xc2 && ((c)&=0x1f, 1)) && \
+            /* last trail byte */ \
+            (__t=(s)[i]-0x80)<=0x3f && \
+            ((c)=((c)<<6)|__t, ++(i), 1)) { \
+        } else { \
+            (c)=(sub);  /* ill-formed*/ \
+        } \
+    } \
+} UPRV_BLOCK_MACRO_END
+#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5)
+
+/**
+ * Append a code point to a string, overwriting 1 to 4 bytes.
+ * The offset points to the current end of the string contents
+ * and is advanced (post-increment).
+ * "Unsafe" macro, assumes a valid code point and sufficient space in the string.
+ * Otherwise, the result is undefined.
+ *
+ * @param s const uint8_t * string buffer
+ * @param i string offset
+ * @param c code point to append
+ * @see U8_APPEND
+ * @stable ICU 2.4
+ */
+#if (NTDDI_VERSION >= NTDDI_WIN10_RS5)
+#define U8_APPEND_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
+    uint32_t __uc=(c); \
+    if(__uc<=0x7f) { \
+        (s)[(i)++]=(uint8_t)__uc; \
+    } else { \
+        if(__uc<=0x7ff) { \
+            (s)[(i)++]=(uint8_t)((__uc>>6)|0xc0); \
+        } else { \
+            if(__uc<=0xffff) { \
+                (s)[(i)++]=(uint8_t)((__uc>>12)|0xe0); \
+            } else { \
+                (s)[(i)++]=(uint8_t)((__uc>>18)|0xf0); \
+                (s)[(i)++]=(uint8_t)(((__uc>>12)&0x3f)|0x80); \
+            } \
+            (s)[(i)++]=(uint8_t)(((__uc>>6)&0x3f)|0x80); \
+        } \
+        (s)[(i)++]=(uint8_t)((__uc&0x3f)|0x80); \
+    } \
+} UPRV_BLOCK_MACRO_END
+#elif (NTDDI_VERSION >= NTDDI_WIN10_RS3)
+#define U8_APPEND_UNSAFE(s, i, c) { \
+    if((uint32_t)(c)<=0x7f) { \
+        (s)[(i)++]=(uint8_t)(c); \
+    } else { \
+        if((uint32_t)(c)<=0x7ff) { \
+            (s)[(i)++]=(uint8_t)(((c)>>6)|0xc0); \
+        } else { \
+            if((uint32_t)(c)<=0xffff) { \
+                (s)[(i)++]=(uint8_t)(((c)>>12)|0xe0); \
+            } else { \
+                (s)[(i)++]=(uint8_t)(((c)>>18)|0xf0); \
+                (s)[(i)++]=(uint8_t)((((c)>>12)&0x3f)|0x80); \
+            } \
+            (s)[(i)++]=(uint8_t)((((c)>>6)&0x3f)|0x80); \
+        } \
+        (s)[(i)++]=(uint8_t)(((c)&0x3f)|0x80); \
+    } \
+}
+#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5)
+
+/**
+ * Append a code point to a string, overwriting 1 to 4 bytes.
+ * The offset points to the current end of the string contents
+ * and is advanced (post-increment).
+ * "Safe" macro, checks for a valid code point.
+ * If a non-ASCII code point is written, checks for sufficient space in the string.
+ * If the code point is not valid or trail bytes do not fit,
+ * then isError is set to true.
+ *
+ * @param s const uint8_t * string buffer
+ * @param i int32_t string offset, must be i= NTDDI_WIN10_CO)
+#define U8_APPEND(s, i, capacity, c, isError) UPRV_BLOCK_MACRO_BEGIN { \
+    uint32_t __uc=(c); \
+    if(__uc<=0x7f) { \
+        (s)[(i)++]=(uint8_t)__uc; \
+    } else if(__uc<=0x7ff && (i)+1<(capacity)) { \
+        (s)[(i)++]=(uint8_t)((__uc>>6)|0xc0); \
+        (s)[(i)++]=(uint8_t)((__uc&0x3f)|0x80); \
+    } else if((__uc<=0xd7ff || (0xe000<=__uc && __uc<=0xffff)) && (i)+2<(capacity)) { \
+        (s)[(i)++]=(uint8_t)((__uc>>12)|0xe0); \
+        (s)[(i)++]=(uint8_t)(((__uc>>6)&0x3f)|0x80); \
+        (s)[(i)++]=(uint8_t)((__uc&0x3f)|0x80); \
+    } else if(0xffff<__uc && __uc<=0x10ffff && (i)+3<(capacity)) { \
+        (s)[(i)++]=(uint8_t)((__uc>>18)|0xf0); \
+        (s)[(i)++]=(uint8_t)(((__uc>>12)&0x3f)|0x80); \
+        (s)[(i)++]=(uint8_t)(((__uc>>6)&0x3f)|0x80); \
+        (s)[(i)++]=(uint8_t)((__uc&0x3f)|0x80); \
+    } else { \
+        (isError)=true; \
+    } \
+} UPRV_BLOCK_MACRO_END
+#elif (NTDDI_VERSION >= NTDDI_WIN10_RS5)
+#define U8_APPEND(s, i, capacity, c, isError) { \
+    uint32_t __uc=(c); \
+    if(__uc<=0x7f) { \
+        (s)[(i)++]=(uint8_t)__uc; \
+    } else if(__uc<=0x7ff && (i)+1<(capacity)) { \
+        (s)[(i)++]=(uint8_t)((__uc>>6)|0xc0); \
+        (s)[(i)++]=(uint8_t)((__uc&0x3f)|0x80); \
+    } else if((__uc<=0xd7ff || (0xe000<=__uc && __uc<=0xffff)) && (i)+2<(capacity)) { \
+        (s)[(i)++]=(uint8_t)((__uc>>12)|0xe0); \
+        (s)[(i)++]=(uint8_t)(((__uc>>6)&0x3f)|0x80); \
+        (s)[(i)++]=(uint8_t)((__uc&0x3f)|0x80); \
+    } else if(0xffff<__uc && __uc<=0x10ffff && (i)+3<(capacity)) { \
+        (s)[(i)++]=(uint8_t)((__uc>>18)|0xf0); \
+        (s)[(i)++]=(uint8_t)(((__uc>>12)&0x3f)|0x80); \
+        (s)[(i)++]=(uint8_t)(((__uc>>6)&0x3f)|0x80); \
+        (s)[(i)++]=(uint8_t)((__uc&0x3f)|0x80); \
+    } else { \
+        (isError)=TRUE; \
+    } \
+}
+
+#elif (NTDDI_VERSION >= NTDDI_WIN10_RS3)
+#define U8_APPEND(s, i, capacity, c, isError) { \
+    if((uint32_t)(c)<=0x7f) { \
+        (s)[(i)++]=(uint8_t)(c); \
+    } else if((uint32_t)(c)<=0x7ff && (i)+1<(capacity)) { \
+        (s)[(i)++]=(uint8_t)(((c)>>6)|0xc0); \
+        (s)[(i)++]=(uint8_t)(((c)&0x3f)|0x80); \
+    } else if((uint32_t)(c)<=0xd7ff && (i)+2<(capacity)) { \
+        (s)[(i)++]=(uint8_t)(((c)>>12)|0xe0); \
+        (s)[(i)++]=(uint8_t)((((c)>>6)&0x3f)|0x80); \
+        (s)[(i)++]=(uint8_t)(((c)&0x3f)|0x80); \
+    } else { \
+        (i)=utf8_appendCharSafeBody(s, (i), (capacity), c, &(isError)); \
+    } \
+}
+#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5)
+
+/**
+ * Advance the string offset from one code point boundary to the next.
+ * (Post-incrementing iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @see U8_FWD_1
+ * @stable ICU 2.4
+ */
+#define U8_FWD_1_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \
+    (i)+=1+U8_COUNT_TRAIL_BYTES_UNSAFE((s)[i]); \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Advance the string offset from one code point boundary to the next.
+ * (Post-incrementing iteration.)
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const uint8_t * string
+ * @param i int32_t string offset, must be i=0xf0 */ { \
+            if(U8_IS_VALID_LEAD4_AND_T1(__b, __t1) && \
+                    ++(i)!=(length) && U8_IS_TRAIL((s)[i]) && \
+                    ++(i)!=(length) && U8_IS_TRAIL((s)[i])) { \
+                ++(i); \
+            } \
+        } \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Advance the string offset from one code point boundary to the n-th next one,
+ * i.e., move forward by n code points.
+ * (Post-incrementing iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @param n number of code points to skip
+ * @see U8_FWD_N
+ * @stable ICU 2.4
+ */
+#define U8_FWD_N_UNSAFE(s, i, n) UPRV_BLOCK_MACRO_BEGIN { \
+    int32_t __N=(n); \
+    while(__N>0) { \
+        U8_FWD_1_UNSAFE(s, i); \
+        --__N; \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Advance the string offset from one code point boundary to the n-th next one,
+ * i.e., move forward by n code points.
+ * (Post-incrementing iteration.)
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const uint8_t * string
+ * @param i int32_t string offset, must be i0 && ((i)<(length) || ((length)<0 && (s)[i]!=0))) { \
+        U8_FWD_1(s, i, length); \
+        --__N; \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Adjust a random-access offset to a code point boundary
+ * at the start of a code point.
+ * If the offset points to a UTF-8 trail byte,
+ * then the offset is moved backward to the corresponding lead byte.
+ * Otherwise, it is not modified.
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @see U8_SET_CP_START
+ * @stable ICU 2.4
+ */
+#define U8_SET_CP_START_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \
+    while(U8_IS_TRAIL((s)[i])) { --(i); } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Adjust a random-access offset to a code point boundary
+ * at the start of a code point.
+ * If the offset points to a UTF-8 trail byte,
+ * then the offset is moved backward to the corresponding lead byte.
+ * Otherwise, it is not modified.
+ *
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ * Unlike U8_TRUNCATE_IF_INCOMPLETE(), this macro always reads s[i].
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param i int32_t string offset, must be start<=i
+ * @see U8_SET_CP_START_UNSAFE
+ * @see U8_TRUNCATE_IF_INCOMPLETE
+ * @stable ICU 2.4
+ */
+#define U8_SET_CP_START(s, start, i) UPRV_BLOCK_MACRO_BEGIN { \
+    if(U8_IS_TRAIL((s)[(i)])) { \
+        (i)=utf8_back1SafeBody(s, start, (i)); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+#if (NTDDI_VERSION >= NTDDI_WIN10_VB)
+/**
+ * If the string ends with a UTF-8 byte sequence that is valid so far
+ * but incomplete, then reduce the length of the string to end before
+ * the lead byte of that incomplete sequence.
+ * For example, if the string ends with E1 80, the length is reduced by 2.
+ *
+ * In all other cases (the string ends with a complete sequence, or it is not
+ * possible for any further trail byte to extend the trailing sequence)
+ * the length remains unchanged.
+ *
+ * Useful for processing text split across multiple buffers
+ * (save the incomplete sequence for later)
+ * and for optimizing iteration
+ * (check for string length only once per character).
+ *
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ * Unlike U8_SET_CP_START(), this macro never reads s[length].
+ *
+ * (In UTF-16, simply check for U16_IS_LEAD(last code unit).)
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param length int32_t string length (usually start<=length)
+ * @see U8_SET_CP_START
+ * @stable ICU 61
+ */
+#define U8_TRUNCATE_IF_INCOMPLETE(s, start, length) UPRV_BLOCK_MACRO_BEGIN { \
+    if((length)>(start)) { \
+        uint8_t __b1=s[(length)-1]; \
+        if(U8_IS_SINGLE(__b1)) { \
+            /* common ASCII character */ \
+        } else if(U8_IS_LEAD(__b1)) { \
+            --(length); \
+        } else if(U8_IS_TRAIL(__b1) && ((length)-2)>=(start)) { \
+            uint8_t __b2=s[(length)-2]; \
+            if(0xe0<=__b2 && __b2<=0xf4) { \
+                if(__b2<0xf0 ? U8_IS_VALID_LEAD3_AND_T1(__b2, __b1) : \
+                        U8_IS_VALID_LEAD4_AND_T1(__b2, __b1)) { \
+                    (length)-=2; \
+                } \
+            } else if(U8_IS_TRAIL(__b2) && ((length)-3)>=(start)) { \
+                uint8_t __b3=s[(length)-3]; \
+                if(0xf0<=__b3 && __b3<=0xf4 && U8_IS_VALID_LEAD4_AND_T1(__b3, __b2)) { \
+                    (length)-=3; \
+                } \
+            } \
+        } \
+    } \
+} UPRV_BLOCK_MACRO_END
+#endif // (NTDDI_VERSION >= NTDDI_WIN10_VB)
+
+/* definitions with backward iteration -------------------------------------- */
+
+/**
+ * Move the string offset from one code point boundary to the previous one
+ * and get the code point between them.
+ * (Pre-decrementing backward iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * The input offset may be the same as the string length.
+ * If the offset is behind a multi-byte sequence, then the macro will read
+ * the whole sequence.
+ * If the offset is behind a lead byte, then that itself
+ * will be returned as the code point.
+ * The result is undefined if the offset is behind an illegal UTF-8 sequence.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @param c output UChar32 variable
+ * @see U8_PREV
+ * @stable ICU 2.4
+ */
+#define U8_PREV_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
+    (c)=(uint8_t)(s)[--(i)]; \
+    if(U8_IS_TRAIL(c)) { \
+        uint8_t __b, __count=1, __shift=6; \
+\
+        /* c is a trail byte */ \
+        (c)&=0x3f; \
+        for(;;) { \
+            __b=(s)[--(i)]; \
+            if(__b>=0xc0) { \
+                U8_MASK_LEAD_BYTE(__b, __count); \
+                (c)|=(UChar32)__b<<__shift; \
+                break; \
+            } else { \
+                (c)|=(UChar32)(__b&0x3f)<<__shift; \
+                ++__count; \
+                __shift+=6; \
+            } \
+        } \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Move the string offset from one code point boundary to the previous one
+ * and get the code point between them.
+ * (Pre-decrementing backward iteration.)
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The input offset may be the same as the string length.
+ * If the offset is behind a multi-byte sequence, then the macro will read
+ * the whole sequence.
+ * If the offset is behind a lead byte, then that itself
+ * will be returned as the code point.
+ * If the offset is behind an illegal UTF-8 sequence, then c is set to a negative value.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param i int32_t string offset, must be start0) { \
+        U8_BACK_1_UNSAFE(s, i); \
+        --__N; \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Move the string offset from one code point boundary to the n-th one before it,
+ * i.e., move backward by n code points.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t index of the start of the string
+ * @param i int32_t string offset, must be start0 && (i)>(start)) { \
+        U8_BACK_1(s, start, i); \
+        --__N; \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Adjust a random-access offset to a code point boundary after a code point.
+ * If the offset is behind a partial multi-byte sequence,
+ * then the offset is incremented to behind the whole sequence.
+ * Otherwise, it is not modified.
+ * The input offset may be the same as the string length.
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @see U8_SET_CP_LIMIT
+ * @stable ICU 2.4
+ */
+#define U8_SET_CP_LIMIT_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \
+    U8_BACK_1_UNSAFE(s, i); \
+    U8_FWD_1_UNSAFE(s, i); \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Adjust a random-access offset to a code point boundary after a code point.
+ * If the offset is behind a partial multi-byte sequence,
+ * then the offset is incremented to behind the whole sequence.
+ * Otherwise, it is not modified.
+ * The input offset may be the same as the string length.
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param i int32_t string offset, must be start<=i<=length
+ * @param length int32_t string length
+ * @see U8_SET_CP_LIMIT_UNSAFE
+ * @stable ICU 2.4
+ */
+#define U8_SET_CP_LIMIT(s, start, i, length) UPRV_BLOCK_MACRO_BEGIN { \
+    if((start)<(i) && ((i)<(length) || (length)<0)) { \
+        U8_BACK_1(s, start, i); \
+        U8_FWD_1(s, i, length); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+#endif
+
+// utf16.h
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
+/*
+*******************************************************************************
+*
+*   Copyright (C) 1999-2012, International Business Machines
+*   Corporation and others.  All Rights Reserved.
+*
+*******************************************************************************
+*   file name:  utf16.h
+*   encoding:   UTF-8
+*   tab size:   8 (not used)
+*   indentation:4
+*
+*   created on: 1999sep09
+*   created by: Markus W. Scherer
+*/
+
+/**
+ * \file
+ * \brief C API: 16-bit Unicode handling macros
+ * 
+ * This file defines macros to deal with 16-bit Unicode (UTF-16) code units and strings.
+ *
+ * For more information see utf.h and the ICU User Guide Strings chapter
+ * (https://unicode-org.github.io/icu/userguide/strings).
+ *
+ * Usage:
+ * ICU coding guidelines for if() statements should be followed when using these macros.
+ * Compound statements (curly braces {}) must be used  for if-else-while... 
+ * bodies and all macro statements should be terminated with semicolon.
+ */
+
+#ifndef __UTF16_H__
+#define __UTF16_H__
+
+#ifndef __UTF_H__
+#   include "icu/utf.h"
+#endif
+
+/* single-code point definitions -------------------------------------------- */
+
+/**
+ * Does this code unit alone encode a code point (BMP, not a surrogate)?
+ * @param c 16-bit code unit
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U16_IS_SINGLE(c) !U_IS_SURROGATE(c)
+
+/**
+ * Is this code unit a lead surrogate (U+d800..U+dbff)?
+ * @param c 16-bit code unit
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
+
+/**
+ * Is this code unit a trail surrogate (U+dc00..U+dfff)?
+ * @param c 16-bit code unit
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
+
+/**
+ * Is this code unit a surrogate (U+d800..U+dfff)?
+ * @param c 16-bit code unit
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
+
+/**
+ * Assuming c is a surrogate code point (U16_IS_SURROGATE(c)),
+ * is it a lead surrogate?
+ * @param c 16-bit code unit
+ * @return true or false
+ * @stable ICU 2.4
+ */
+#define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
+
+/**
+ * Assuming c is a surrogate code point (U16_IS_SURROGATE(c)),
+ * is it a trail surrogate?
+ * @param c 16-bit code unit
+ * @return true or false
+ * @stable ICU 4.2
+ */
+#define U16_IS_SURROGATE_TRAIL(c) (((c)&0x400)!=0)
+
+/**
+ * Helper constant for U16_GET_SUPPLEMENTARY.
+ * @internal
+ */
+#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
+
+/**
+ * Get a supplementary code point value (U+10000..U+10ffff)
+ * from its lead and trail surrogates.
+ * The result is undefined if the input values are not
+ * lead and trail surrogates.
+ *
+ * @param lead lead surrogate (U+d800..U+dbff)
+ * @param trail trail surrogate (U+dc00..U+dfff)
+ * @return supplementary code point (U+10000..U+10ffff)
+ * @stable ICU 2.4
+ */
+#define U16_GET_SUPPLEMENTARY(lead, trail) \
+    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
+
+
+/**
+ * Get the lead surrogate (0xd800..0xdbff) for a
+ * supplementary code point (0x10000..0x10ffff).
+ * @param supplementary 32-bit code point (U+10000..U+10ffff)
+ * @return lead surrogate (U+d800..U+dbff) for supplementary
+ * @stable ICU 2.4
+ */
+#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
+
+/**
+ * Get the trail surrogate (0xdc00..0xdfff) for a
+ * supplementary code point (0x10000..0x10ffff).
+ * @param supplementary 32-bit code point (U+10000..U+10ffff)
+ * @return trail surrogate (U+dc00..U+dfff) for supplementary
+ * @stable ICU 2.4
+ */
+#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
+
+/**
+ * How many 16-bit code units are used to encode this Unicode code point? (1 or 2)
+ * The result is not defined if c is not a Unicode code point (U+0000..U+10ffff).
+ * @param c 32-bit code point
+ * @return 1 or 2
+ * @stable ICU 2.4
+ */
+#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
+
+/**
+ * The maximum number of 16-bit code units per Unicode code point (U+0000..U+10ffff).
+ * @return 2
+ * @stable ICU 2.4
+ */
+#define U16_MAX_LENGTH 2
+
+/**
+ * Get a code point from a string at a random-access offset,
+ * without changing the offset.
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * The offset may point to either the lead or trail surrogate unit
+ * for a supplementary code point, in which case the macro will read
+ * the adjacent matching surrogate as well.
+ * The result is undefined if the offset points to a single, unpaired surrogate.
+ * Iteration through a string is more efficient with U16_NEXT_UNSAFE or U16_NEXT.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @param c output UChar32 variable
+ * @see U16_GET
+ * @stable ICU 2.4
+ */
+#define U16_GET_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
+    (c)=(s)[i]; \
+    if(U16_IS_SURROGATE(c)) { \
+        if(U16_IS_SURROGATE_LEAD(c)) { \
+            (c)=U16_GET_SUPPLEMENTARY((c), (s)[(i)+1]); \
+        } else { \
+            (c)=U16_GET_SUPPLEMENTARY((s)[(i)-1], (c)); \
+        } \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Get a code point from a string at a random-access offset,
+ * without changing the offset.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The offset may point to either the lead or trail surrogate unit
+ * for a supplementary code point, in which case the macro will read
+ * the adjacent matching surrogate as well.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * If the offset points to a single, unpaired surrogate, then
+ * c is set to that unpaired surrogate.
+ * Iteration through a string is more efficient with U16_NEXT_UNSAFE or U16_NEXT.
+ *
+ * @param s const UChar * string
+ * @param start starting string offset (usually 0)
+ * @param i string offset, must be start<=i(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
+                (c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
+            } \
+        } \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+#if (NTDDI_VERSION >= NTDDI_WIN10_19H1)
+/**
+ * Get a code point from a string at a random-access offset,
+ * without changing the offset.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The offset may point to either the lead or trail surrogate unit
+ * for a supplementary code point, in which case the macro will read
+ * the adjacent matching surrogate as well.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * If the offset points to a single, unpaired surrogate, then
+ * c is set to U+FFFD.
+ * Iteration through a string is more efficient with U16_NEXT_UNSAFE or U16_NEXT_OR_FFFD.
+ *
+ * @param s const UChar * string
+ * @param start starting string offset (usually 0)
+ * @param i string offset, must be start<=i(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
+                (c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
+            } else { \
+                (c)=0xfffd; \
+            } \
+        } \
+    } \
+} UPRV_BLOCK_MACRO_END
+#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1)
+
+/* definitions with forward iteration --------------------------------------- */
+
+/**
+ * Get a code point from a string at a code point boundary offset,
+ * and advance the offset to the next code point boundary.
+ * (Post-incrementing forward iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * The offset may point to the lead surrogate unit
+ * for a supplementary code point, in which case the macro will read
+ * the following trail surrogate as well.
+ * If the offset points to a trail surrogate, then that itself
+ * will be returned as the code point.
+ * The result is undefined if the offset points to a single, unpaired lead surrogate.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @param c output UChar32 variable
+ * @see U16_NEXT
+ * @stable ICU 2.4
+ */
+#define U16_NEXT_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
+    (c)=(s)[(i)++]; \
+    if(U16_IS_LEAD(c)) { \
+        (c)=U16_GET_SUPPLEMENTARY((c), (s)[(i)++]); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Get a code point from a string at a code point boundary offset,
+ * and advance the offset to the next code point boundary.
+ * (Post-incrementing forward iteration.)
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * The offset may point to the lead surrogate unit
+ * for a supplementary code point, in which case the macro will read
+ * the following trail surrogate as well.
+ * If the offset points to a trail surrogate or
+ * to a single, unpaired lead surrogate, then c is set to that unpaired surrogate.
+ *
+ * @param s const UChar * string
+ * @param i string offset, must be i= NTDDI_WIN10_19H1)
+/**
+ * Get a code point from a string at a code point boundary offset,
+ * and advance the offset to the next code point boundary.
+ * (Post-incrementing forward iteration.)
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * The offset may point to the lead surrogate unit
+ * for a supplementary code point, in which case the macro will read
+ * the following trail surrogate as well.
+ * If the offset points to a trail surrogate or
+ * to a single, unpaired lead surrogate, then c is set to U+FFFD.
+ *
+ * @param s const UChar * string
+ * @param i string offset, must be i= NTDDI_WIN10_19H1)
+
+/**
+ * Append a code point to a string, overwriting 1 or 2 code units.
+ * The offset points to the current end of the string contents
+ * and is advanced (post-increment).
+ * "Unsafe" macro, assumes a valid code point and sufficient space in the string.
+ * Otherwise, the result is undefined.
+ *
+ * @param s const UChar * string buffer
+ * @param i string offset
+ * @param c code point to append
+ * @see U16_APPEND
+ * @stable ICU 2.4
+ */
+#define U16_APPEND_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
+    if((uint32_t)(c)<=0xffff) { \
+        (s)[(i)++]=(uint16_t)(c); \
+    } else { \
+        (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
+        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Append a code point to a string, overwriting 1 or 2 code units.
+ * The offset points to the current end of the string contents
+ * and is advanced (post-increment).
+ * "Safe" macro, checks for a valid code point.
+ * If a surrogate pair is written, checks for sufficient space in the string.
+ * If the code point is not valid or a trail surrogate does not fit,
+ * then isError is set to true.
+ *
+ * @param s const UChar * string buffer
+ * @param i string offset, must be i= NTDDI_WIN10_CO)
+#define U16_APPEND(s, i, capacity, c, isError) UPRV_BLOCK_MACRO_BEGIN { \
+    if((uint32_t)(c)<=0xffff) { \
+        (s)[(i)++]=(uint16_t)(c); \
+    } else if((uint32_t)(c)<=0x10ffff && (i)+1<(capacity)) { \
+        (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
+        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
+    } else /* c>0x10ffff or not enough space */ { \
+        (isError)=true; \
+    } \
+} UPRV_BLOCK_MACRO_END
+#else
+#define U16_APPEND(s, i, capacity, c, isError) { \
+    if((uint32_t)(c)<=0xffff) { \
+        (s)[(i)++]=(uint16_t)(c); \
+    } else if((uint32_t)(c)<=0x10ffff && (i)+1<(capacity)) { \
+        (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
+        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
+    } else /* c>0x10ffff or not enough space */ { \
+        (isError)=TRUE; \
+    } \
+}
+#endif
+
+/**
+ * Advance the string offset from one code point boundary to the next.
+ * (Post-incrementing iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @see U16_FWD_1
+ * @stable ICU 2.4
+ */
+#define U16_FWD_1_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \
+    if(U16_IS_LEAD((s)[(i)++])) { \
+        ++(i); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Advance the string offset from one code point boundary to the next.
+ * (Post-incrementing iteration.)
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const UChar * string
+ * @param i string offset, must be i0) { \
+        U16_FWD_1_UNSAFE(s, i); \
+        --__N; \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Advance the string offset from one code point boundary to the n-th next one,
+ * i.e., move forward by n code points.
+ * (Post-incrementing iteration.)
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const UChar * string
+ * @param i int32_t string offset, must be i0 && ((i)<(length) || ((length)<0 && (s)[i]!=0))) { \
+        U16_FWD_1(s, i, length); \
+        --__N; \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Adjust a random-access offset to a code point boundary
+ * at the start of a code point.
+ * If the offset points to the trail surrogate of a surrogate pair,
+ * then the offset is decremented.
+ * Otherwise, it is not modified.
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @see U16_SET_CP_START
+ * @stable ICU 2.4
+ */
+#define U16_SET_CP_START_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \
+    if(U16_IS_TRAIL((s)[i])) { \
+        --(i); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Adjust a random-access offset to a code point boundary
+ * at the start of a code point.
+ * If the offset points to the trail surrogate of a surrogate pair,
+ * then the offset is decremented.
+ * Otherwise, it is not modified.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * @param s const UChar * string
+ * @param start starting string offset (usually 0)
+ * @param i string offset, must be start<=i
+ * @see U16_SET_CP_START_UNSAFE
+ * @stable ICU 2.4
+ */
+#define U16_SET_CP_START(s, start, i) UPRV_BLOCK_MACRO_BEGIN { \
+    if(U16_IS_TRAIL((s)[i]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
+        --(i); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/* definitions with backward iteration -------------------------------------- */
+
+/**
+ * Move the string offset from one code point boundary to the previous one
+ * and get the code point between them.
+ * (Pre-decrementing backward iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * The input offset may be the same as the string length.
+ * If the offset is behind a trail surrogate unit
+ * for a supplementary code point, then the macro will read
+ * the preceding lead surrogate as well.
+ * If the offset is behind a lead surrogate, then that itself
+ * will be returned as the code point.
+ * The result is undefined if the offset is behind a single, unpaired trail surrogate.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @param c output UChar32 variable
+ * @see U16_PREV
+ * @stable ICU 2.4
+ */
+#define U16_PREV_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
+    (c)=(s)[--(i)]; \
+    if(U16_IS_TRAIL(c)) { \
+        (c)=U16_GET_SUPPLEMENTARY((s)[--(i)], (c)); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Move the string offset from one code point boundary to the previous one
+ * and get the code point between them.
+ * (Pre-decrementing backward iteration.)
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The input offset may be the same as the string length.
+ * If the offset is behind a trail surrogate unit
+ * for a supplementary code point, then the macro will read
+ * the preceding lead surrogate as well.
+ * If the offset is behind a lead surrogate or behind a single, unpaired
+ * trail surrogate, then c is set to that unpaired surrogate.
+ *
+ * @param s const UChar * string
+ * @param start starting string offset (usually 0)
+ * @param i string offset, must be start(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
+            --(i); \
+            (c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
+        } \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+#if (NTDDI_VERSION >= NTDDI_WIN10_19H1)
+/**
+ * Move the string offset from one code point boundary to the previous one
+ * and get the code point between them.
+ * (Pre-decrementing backward iteration.)
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The input offset may be the same as the string length.
+ * If the offset is behind a trail surrogate unit
+ * for a supplementary code point, then the macro will read
+ * the preceding lead surrogate as well.
+ * If the offset is behind a lead surrogate or behind a single, unpaired
+ * trail surrogate, then c is set to U+FFFD.
+ *
+ * @param s const UChar * string
+ * @param start starting string offset (usually 0)
+ * @param i string offset, must be start(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
+            --(i); \
+            (c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
+        } else { \
+            (c)=0xfffd; \
+        } \
+    } \
+} UPRV_BLOCK_MACRO_END
+#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1)
+
+/**
+ * Move the string offset from one code point boundary to the previous one.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @see U16_BACK_1
+ * @stable ICU 2.4
+ */
+#define U16_BACK_1_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \
+    if(U16_IS_TRAIL((s)[--(i)])) { \
+        --(i); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Move the string offset from one code point boundary to the previous one.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * @param s const UChar * string
+ * @param start starting string offset (usually 0)
+ * @param i string offset, must be start(start) && U16_IS_LEAD((s)[(i)-1])) { \
+        --(i); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Move the string offset from one code point boundary to the n-th one before it,
+ * i.e., move backward by n code points.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @param n number of code points to skip
+ * @see U16_BACK_N
+ * @stable ICU 2.4
+ */
+#define U16_BACK_N_UNSAFE(s, i, n) UPRV_BLOCK_MACRO_BEGIN { \
+    int32_t __N=(n); \
+    while(__N>0) { \
+        U16_BACK_1_UNSAFE(s, i); \
+        --__N; \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Move the string offset from one code point boundary to the n-th one before it,
+ * i.e., move backward by n code points.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * @param s const UChar * string
+ * @param start start of string
+ * @param i string offset, must be start0 && (i)>(start)) { \
+        U16_BACK_1(s, start, i); \
+        --__N; \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Adjust a random-access offset to a code point boundary after a code point.
+ * If the offset is behind the lead surrogate of a surrogate pair,
+ * then the offset is incremented.
+ * Otherwise, it is not modified.
+ * The input offset may be the same as the string length.
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @see U16_SET_CP_LIMIT
+ * @stable ICU 2.4
+ */
+#define U16_SET_CP_LIMIT_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \
+    if(U16_IS_LEAD((s)[(i)-1])) { \
+        ++(i); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+/**
+ * Adjust a random-access offset to a code point boundary after a code point.
+ * If the offset is behind the lead surrogate of a surrogate pair,
+ * then the offset is incremented.
+ * Otherwise, it is not modified.
+ * The input offset may be the same as the string length.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const UChar * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param i int32_t string offset, start<=i<=length
+ * @param length int32_t string length
+ * @see U16_SET_CP_LIMIT_UNSAFE
+ * @stable ICU 2.4
+ */
+#define U16_SET_CP_LIMIT(s, start, i, length) UPRV_BLOCK_MACRO_BEGIN { \
+    if((start)<(i) && ((i)<(length) || (length)<0) && U16_IS_LEAD((s)[(i)-1]) && U16_IS_TRAIL((s)[i])) { \
+        ++(i); \
+    } \
+} UPRV_BLOCK_MACRO_END
+
+#endif
+
+// utf_old.h
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
+/*
+*******************************************************************************
+*
+*   Copyright (C) 2002-2012, International Business Machines
+*   Corporation and others.  All Rights Reserved.
+*
+*******************************************************************************
+*   file name:  utf_old.h
+*   encoding:   UTF-8
+*   tab size:   8 (not used)
+*   indentation:4
+*
+*   created on: 2002sep21
+*   created by: Markus W. Scherer
+*/
+
+/**
+ * \file
+ * \brief C API: Deprecated macros for Unicode string handling
+ *
+ * The macros in utf_old.h are all deprecated and their use discouraged.
+ * Some of the design principles behind the set of UTF macros
+ * have changed or proved impractical.
+ * Almost all of the old "UTF macros" are at least renamed.
+ * If you are looking for a new equivalent to an old macro, please see the
+ * comment at the old one.
+ *
+ * Brief summary of reasons for deprecation:
+ * - Switch on UTF_SIZE (selection of UTF-8/16/32 default string processing)
+ *   was impractical.
+ * - Switch on UTF_SAFE etc. (selection of unsafe/safe/strict default string processing)
+ *   was of little use and impractical.
+ * - Whole classes of macros became obsolete outside of the UTF_SIZE/UTF_SAFE
+ *   selection framework: UTF32_ macros (all trivial)
+ *   and UTF_ default and intermediate macros (all aliases).
+ * - The selection framework also caused many macro aliases.
+ * - Change in Unicode standard: "irregular" sequences (3.0) became illegal (3.2).
+ * - Change of language in Unicode standard:
+ *   Growing distinction between internal x-bit Unicode strings and external UTF-x
+ *   forms, with the former more lenient.
+ *   Suggests renaming of UTF16_ macros to U16_.
+ * - The prefix "UTF_" without a width number confused some users.
+ * - "Safe" append macros needed the addition of an error indicator output.
+ * - "Safe" UTF-8 macros used legitimate (if rarely used) code point values
+ *   to indicate error conditions.
+ * - The use of the "_CHAR" infix for code point operations confused some users.
+ *
+ * More details:
+ *
+ * Until ICU 2.2, utf.h theoretically allowed to choose among UTF-8/16/32
+ * for string processing, and among unsafe/safe/strict default macros for that.
+ *
+ * It proved nearly impossible to write non-trivial, high-performance code
+ * that is UTF-generic.
+ * Unsafe default macros would be dangerous for default string processing,
+ * and the main reason for the "strict" versions disappeared:
+ * Between Unicode 3.0 and 3.2 all "irregular" UTF-8 sequences became illegal.
+ * The only other conditions that "strict" checked for were non-characters,
+ * which are valid during processing. Only during text input/output should they
+ * be checked, and at that time other well-formedness checks may be
+ * necessary or useful as well.
+ * This can still be done by using U16_NEXT and U_IS_UNICODE_NONCHAR
+ * or U_IS_UNICODE_CHAR.
+ *
+ * The old UTF8_..._SAFE macros also used some normal Unicode code points
+ * to indicate malformed sequences.
+ * The new UTF8_ macros without suffix use negative values instead.
+ *
+ * The entire contents of utf32.h was moved here without replacement
+ * because all those macros were trivial and
+ * were meaningful only in the framework of choosing the UTF size.
+ *
+ * See Jitterbug 2150 and its discussion on the ICU mailing list
+ * in September 2002.
+ *
+ * 
+ * + * Obsolete part of pre-ICU 2.4 utf.h file documentation: + * + *

The original concept for these files was for ICU to allow + * in principle to set which UTF (UTF-8/16/32) is used internally + * by defining UTF_SIZE to either 8, 16, or 32. utf.h would then define the UChar type + * accordingly. UTF-16 was the default.

+ * + *

This concept has been abandoned. + * A lot of the ICU source code assumes UChar strings are in UTF-16. + * This is especially true for low-level code like + * conversion, normalization, and collation. + * The utf.h header enforces the default of UTF-16. + * The UTF-8 and UTF-32 macros remain for now for completeness and backward compatibility.

+ * + *

Accordingly, utf.h defines UChar to be an unsigned 16-bit integer. If this matches wchar_t, then + * UChar is defined to be exactly wchar_t, otherwise uint16_t.

+ * + *

UChar32 is defined to be a signed 32-bit integer (int32_t), large enough for a 21-bit + * Unicode code point (Unicode scalar value, 0..0x10ffff). + * Before ICU 2.4, the definition of UChar32 was similarly platform-dependent as + * the definition of UChar. For details see the documentation for UChar32 itself.

+ * + *

utf.h also defines a number of C macros for handling single Unicode code points and + * for using UTF Unicode strings. It includes utf8.h, utf16.h, and utf32.h for the actual + * implementations of those macros and then aliases one set of them (for UTF-16) for general use. + * The UTF-specific macros have the UTF size in the macro name prefixes (UTF16_...), while + * the general alias macros always begin with UTF_...

+ * + *

Many string operations can be done with or without error checking. + * Where such a distinction is useful, there are two versions of the macros, "unsafe" and "safe" + * ones with ..._UNSAFE and ..._SAFE suffixes. The unsafe macros are fast but may cause + * program failures if the strings are not well-formed. The safe macros have an additional, boolean + * parameter "strict". If strict is false, then only illegal sequences are detected. + * Otherwise, irregular sequences and non-characters are detected as well (like single surrogates). + * Safe macros return special error code points for illegal/irregular sequences: + * Typically, U+ffff, or values that would result in a code unit sequence of the same length + * as the erroneous input sequence.
+ * Note that _UNSAFE macros have fewer parameters: They do not have the strictness parameter, and + * they do not have start/length parameters for boundary checking.

+ * + *

Here, the macros are aliased in two steps: + * In the first step, the UTF-specific macros with UTF16_ prefix and _UNSAFE and _SAFE suffixes are + * aliased according to the UTF_SIZE to macros with UTF_ prefix and the same suffixes and signatures. + * Then, in a second step, the default, general alias macros are set to use either the unsafe or + * the safe/not strict (default) or the safe/strict macro; + * these general macros do not have a strictness parameter.

+ * + *

It is possible to change the default choice for the general alias macros to be unsafe, safe/not strict or safe/strict. + * The default is safe/not strict. It is not recommended to select the unsafe macros as the basis for + * Unicode string handling in ICU! To select this, define UTF_SAFE, UTF_STRICT, or UTF_UNSAFE.

+ * + *

For general use, one should use the default, general macros with UTF_ prefix and no _SAFE/_UNSAFE suffix. + * Only in some cases it may be necessary to control the choice of macro directly and use a less generic alias. + * For example, if it can be assumed that a string is well-formed and the index will stay within the bounds, + * then the _UNSAFE version may be used. + * If a UTF-8 string is to be processed, then the macros with UTF8_ prefixes need to be used.

+ * + *
+ * + * Deprecated ICU 2.4. Use the macros in utf.h, utf16.h, utf8.h instead. + */ + +#ifndef __UTF_OLD_H__ +#define __UTF_OLD_H__ + + +/** + * \def U_HIDE_OBSOLETE_UTF_OLD_H + * + * Hides the obsolete definitions in unicode/utf_old.h. + * Recommended to be set to 1 at compile time to make sure + * the long-deprecated macros are no longer used. + * + * For reasons for the deprecation see the utf_old.h file comments. + * + * @internal + */ +#ifndef U_HIDE_OBSOLETE_UTF_OLD_H +# define U_HIDE_OBSOLETE_UTF_OLD_H 0 +#endif + +#if !defined(U_HIDE_DEPRECATED_API) && !U_HIDE_OBSOLETE_UTF_OLD_H + +/* Formerly utf.h, part 1 --------------------------------------------------- */ + +#ifdef U_USE_UTF_DEPRECATES +/** + * Unicode string and array offset and index type. + * ICU always counts Unicode code units (UChars) for + * string offsets, indexes, and lengths, not Unicode code points. + * + * @obsolete ICU 2.6. Use int32_t directly instead since this API will be removed in that release. + */ +typedef int32_t UTextOffset; +#endif + +/** Number of bits in a Unicode string code unit - ICU uses 16-bit Unicode. @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF_SIZE 16 + +/** + * The default choice for general Unicode string macros is to use the ..._SAFE macro implementations + * with strict=false. + * + * @deprecated ICU 2.4. Obsolete, see utf_old.h. + */ +#define UTF_SAFE +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#undef UTF_UNSAFE +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#undef UTF_STRICT + +/** + * UTF8_ERROR_VALUE_1 and UTF8_ERROR_VALUE_2 are special error values for UTF-8, + * which need 1 or 2 bytes in UTF-8: + * \code + * U+0015 = NAK = Negative Acknowledge, C0 control character + * U+009f = highest C1 control character + * \endcode + * + * These are used by UTF8_..._SAFE macros so that they can return an error value + * that needs the same number of code units (bytes) as were seen by + * a macro. They should be tested with UTF_IS_ERROR() or UTF_IS_VALID(). + * + * @deprecated ICU 2.4. Obsolete, see utf_old.h. + */ +#define UTF8_ERROR_VALUE_1 0x15 + +/** + * See documentation on UTF8_ERROR_VALUE_1 for details. + * + * @deprecated ICU 2.4. Obsolete, see utf_old.h. + */ +#define UTF8_ERROR_VALUE_2 0x9f + +/** + * Error value for all UTFs. This code point value will be set by macros with error + * checking if an error is detected. + * + * @deprecated ICU 2.4. Obsolete, see utf_old.h. + */ +#define UTF_ERROR_VALUE 0xffff + +/** + * Is a given 32-bit code an error value + * as returned by one of the macros for any UTF? + * + * @deprecated ICU 2.4. Obsolete, see utf_old.h. + */ +#define UTF_IS_ERROR(c) \ + (((c)&0xfffe)==0xfffe || (c)==UTF8_ERROR_VALUE_1 || (c)==UTF8_ERROR_VALUE_2) + +/** + * This is a combined macro: Is c a valid Unicode value _and_ not an error code? + * + * @deprecated ICU 2.4. Obsolete, see utf_old.h. + */ +#define UTF_IS_VALID(c) \ + (UTF_IS_UNICODE_CHAR(c) && \ + (c)!=UTF8_ERROR_VALUE_1 && (c)!=UTF8_ERROR_VALUE_2) + +/** + * Is this code unit or code point a surrogate (U+d800..U+dfff)? + * @deprecated ICU 2.4. Renamed to U_IS_SURROGATE and U16_IS_SURROGATE, see utf_old.h. + */ +#define UTF_IS_SURROGATE(uchar) (((uchar)&0xfffff800)==0xd800) + +/** + * Is a given 32-bit code point a Unicode noncharacter? + * + * @deprecated ICU 2.4. Renamed to U_IS_UNICODE_NONCHAR, see utf_old.h. + */ +#define UTF_IS_UNICODE_NONCHAR(c) \ + ((c)>=0xfdd0 && \ + ((uint32_t)(c)<=0xfdef || ((c)&0xfffe)==0xfffe) && \ + (uint32_t)(c)<=0x10ffff) + +/** + * Is a given 32-bit value a Unicode code point value (0..U+10ffff) + * that can be assigned a character? + * + * Code points that are not characters include: + * - single surrogate code points (U+d800..U+dfff, 2048 code points) + * - the last two code points on each plane (U+__fffe and U+__ffff, 34 code points) + * - U+fdd0..U+fdef (new with Unicode 3.1, 32 code points) + * - the highest Unicode code point value is U+10ffff + * + * This means that all code points below U+d800 are character code points, + * and that boundary is tested first for performance. + * + * @deprecated ICU 2.4. Renamed to U_IS_UNICODE_CHAR, see utf_old.h. + */ +#define UTF_IS_UNICODE_CHAR(c) \ + ((uint32_t)(c)<0xd800 || \ + ((uint32_t)(c)>0xdfff && \ + (uint32_t)(c)<=0x10ffff && \ + !UTF_IS_UNICODE_NONCHAR(c))) + +/* Formerly utf8.h ---------------------------------------------------------- */ + +/** +* \var utf8_countTrailBytes +* Internal array with numbers of trail bytes for any given byte used in +* lead byte position. +* +* This is internal since it is not meant to be called directly by external clients; +* however it is called by public macros in this file and thus must remain stable, +* and should not be hidden when other internal functions are hidden (otherwise +* public macros would fail to compile). +* @internal +*/ +#ifdef U_UTF8_IMPL +// No forward declaration if compiling utf_impl.cpp, which defines utf8_countTrailBytes. +#elif defined(U_STATIC_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) +U_CAPI const uint8_t utf8_countTrailBytes[]; +#else +U_CFUNC U_IMPORT const uint8_t utf8_countTrailBytes[]; +#endif + +/** + * Count the trail bytes for a UTF-8 lead byte. + * @deprecated ICU 2.4. Renamed to U8_COUNT_TRAIL_BYTES, see utf_old.h. + */ +#define UTF8_COUNT_TRAIL_BYTES(leadByte) (utf8_countTrailBytes[(uint8_t)leadByte]) + +/** + * Mask a UTF-8 lead byte, leave only the lower bits that form part of the code point value. + * @deprecated ICU 2.4. Renamed to U8_MASK_LEAD_BYTE, see utf_old.h. + */ +#define UTF8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1) + +/** Is this this code point a single code unit (byte)? @deprecated ICU 2.4. Renamed to U8_IS_SINGLE, see utf_old.h. */ +#define UTF8_IS_SINGLE(uchar) (((uchar)&0x80)==0) +/** Is this this code unit the lead code unit (byte) of a code point? @deprecated ICU 2.4. Renamed to U8_IS_LEAD, see utf_old.h. */ +#define UTF8_IS_LEAD(uchar) ((uint8_t)((uchar)-0xc0)<0x3e) +/** Is this this code unit a trailing code unit (byte) of a code point? @deprecated ICU 2.4. Renamed to U8_IS_TRAIL, see utf_old.h. */ +#define UTF8_IS_TRAIL(uchar) (((uchar)&0xc0)==0x80) + +/** Does this scalar Unicode value need multiple code units for storage? @deprecated ICU 2.4. Use U8_LENGTH or test ((uint32_t)(c)>0x7f) instead, see utf_old.h. */ +#define UTF8_NEED_MULTIPLE_UCHAR(c) ((uint32_t)(c)>0x7f) + +/** + * Given the lead character, how many bytes are taken by this code point. + * ICU does not deal with code points >0x10ffff + * unless necessary for advancing in the byte stream. + * + * These length macros take into account that for values >0x10ffff + * the UTF8_APPEND_CHAR_SAFE macros would write the error code point 0xffff + * with 3 bytes. + * Code point comparisons need to be in uint32_t because UChar32 + * may be a signed type, and negative values must be recognized. + * + * @deprecated ICU 2.4. Use U8_LENGTH instead, see utf.h. + */ +#if 1 +# define UTF8_CHAR_LENGTH(c) \ + ((uint32_t)(c)<=0x7f ? 1 : \ + ((uint32_t)(c)<=0x7ff ? 2 : \ + ((uint32_t)((c)-0x10000)>0xfffff ? 3 : 4) \ + ) \ + ) +#else +# define UTF8_CHAR_LENGTH(c) \ + ((uint32_t)(c)<=0x7f ? 1 : \ + ((uint32_t)(c)<=0x7ff ? 2 : \ + ((uint32_t)(c)<=0xffff ? 3 : \ + ((uint32_t)(c)<=0x10ffff ? 4 : \ + ((uint32_t)(c)<=0x3ffffff ? 5 : \ + ((uint32_t)(c)<=0x7fffffff ? 6 : 3) \ + ) \ + ) \ + ) \ + ) \ + ) +#endif + +/** The maximum number of bytes per code point. @deprecated ICU 2.4. Renamed to U8_MAX_LENGTH, see utf_old.h. */ +#define UTF8_MAX_CHAR_LENGTH 4 + +/** Average number of code units compared to UTF-16. @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF8_ARRAY_SIZE(size) ((5*(size))/2) + +/** @deprecated ICU 2.4. Renamed to U8_GET_UNSAFE, see utf_old.h. */ +#define UTF8_GET_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + int32_t _utf8_get_char_unsafe_index=(int32_t)(i); \ + UTF8_SET_CHAR_START_UNSAFE(s, _utf8_get_char_unsafe_index); \ + UTF8_NEXT_CHAR_UNSAFE(s, _utf8_get_char_unsafe_index, c); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Use U8_GET instead, see utf_old.h. */ +#define UTF8_GET_CHAR_SAFE(s, start, i, length, c, strict) UPRV_BLOCK_MACRO_BEGIN { \ + int32_t _utf8_get_char_safe_index=(int32_t)(i); \ + UTF8_SET_CHAR_START_SAFE(s, start, _utf8_get_char_safe_index); \ + UTF8_NEXT_CHAR_SAFE(s, _utf8_get_char_safe_index, length, c, strict); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U8_NEXT_UNSAFE, see utf_old.h. */ +#define UTF8_NEXT_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[(i)++]; \ + if((uint8_t)((c)-0xc0)<0x35) { \ + uint8_t __count=UTF8_COUNT_TRAIL_BYTES(c); \ + UTF8_MASK_LEAD_BYTE(c, __count); \ + switch(__count) { \ + /* each following branch falls through to the next one */ \ + case 3: \ + (c)=((c)<<6)|((s)[(i)++]&0x3f); \ + case 2: \ + (c)=((c)<<6)|((s)[(i)++]&0x3f); \ + case 1: \ + (c)=((c)<<6)|((s)[(i)++]&0x3f); \ + /* no other branches to optimize switch() */ \ + break; \ + } \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U8_APPEND_UNSAFE, see utf_old.h. */ +#define UTF8_APPEND_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + if((uint32_t)(c)<=0x7f) { \ + (s)[(i)++]=(uint8_t)(c); \ + } else { \ + if((uint32_t)(c)<=0x7ff) { \ + (s)[(i)++]=(uint8_t)(((c)>>6)|0xc0); \ + } else { \ + if((uint32_t)(c)<=0xffff) { \ + (s)[(i)++]=(uint8_t)(((c)>>12)|0xe0); \ + } else { \ + (s)[(i)++]=(uint8_t)(((c)>>18)|0xf0); \ + (s)[(i)++]=(uint8_t)((((c)>>12)&0x3f)|0x80); \ + } \ + (s)[(i)++]=(uint8_t)((((c)>>6)&0x3f)|0x80); \ + } \ + (s)[(i)++]=(uint8_t)(((c)&0x3f)|0x80); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U8_FWD_1_UNSAFE, see utf_old.h. */ +#define UTF8_FWD_1_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ + (i)+=1+UTF8_COUNT_TRAIL_BYTES((s)[i]); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U8_FWD_N_UNSAFE, see utf_old.h. */ +#define UTF8_FWD_N_UNSAFE(s, i, n) UPRV_BLOCK_MACRO_BEGIN { \ + int32_t __N=(n); \ + while(__N>0) { \ + UTF8_FWD_1_UNSAFE(s, i); \ + --__N; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U8_SET_CP_START_UNSAFE, see utf_old.h. */ +#define UTF8_SET_CHAR_START_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ + while(UTF8_IS_TRAIL((s)[i])) { --(i); } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Use U8_NEXT instead, see utf_old.h. */ +#define UTF8_NEXT_CHAR_SAFE(s, i, length, c, strict) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[(i)++]; \ + if((c)>=0x80) { \ + if(UTF8_IS_LEAD(c)) { \ + (c)=utf8_nextCharSafeBody(s, &(i), (int32_t)(length), c, strict); \ + } else { \ + (c)=UTF8_ERROR_VALUE_1; \ + } \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Use U8_APPEND instead, see utf_old.h. */ +#define UTF8_APPEND_CHAR_SAFE(s, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \ + if((uint32_t)(c)<=0x7f) { \ + (s)[(i)++]=(uint8_t)(c); \ + } else { \ + (i)=utf8_appendCharSafeBody(s, (int32_t)(i), (int32_t)(length), c, NULL); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U8_FWD_1, see utf_old.h. */ +#define UTF8_FWD_1_SAFE(s, i, length) U8_FWD_1(s, i, length) + +/** @deprecated ICU 2.4. Renamed to U8_FWD_N, see utf_old.h. */ +#define UTF8_FWD_N_SAFE(s, i, length, n) U8_FWD_N(s, i, length, n) + +/** @deprecated ICU 2.4. Renamed to U8_SET_CP_START, see utf_old.h. */ +#define UTF8_SET_CHAR_START_SAFE(s, start, i) U8_SET_CP_START(s, start, i) + +/** @deprecated ICU 2.4. Renamed to U8_PREV_UNSAFE, see utf_old.h. */ +#define UTF8_PREV_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[--(i)]; \ + if(UTF8_IS_TRAIL(c)) { \ + uint8_t __b, __count=1, __shift=6; \ +\ + /* c is a trail byte */ \ + (c)&=0x3f; \ + for(;;) { \ + __b=(s)[--(i)]; \ + if(__b>=0xc0) { \ + UTF8_MASK_LEAD_BYTE(__b, __count); \ + (c)|=(UChar32)__b<<__shift; \ + break; \ + } else { \ + (c)|=(UChar32)(__b&0x3f)<<__shift; \ + ++__count; \ + __shift+=6; \ + } \ + } \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U8_BACK_1_UNSAFE, see utf_old.h. */ +#define UTF8_BACK_1_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ + while(UTF8_IS_TRAIL((s)[--(i)])) {} \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U8_BACK_N_UNSAFE, see utf_old.h. */ +#define UTF8_BACK_N_UNSAFE(s, i, n) UPRV_BLOCK_MACRO_BEGIN { \ + int32_t __N=(n); \ + while(__N>0) { \ + UTF8_BACK_1_UNSAFE(s, i); \ + --__N; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U8_SET_CP_LIMIT_UNSAFE, see utf_old.h. */ +#define UTF8_SET_CHAR_LIMIT_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ + UTF8_BACK_1_UNSAFE(s, i); \ + UTF8_FWD_1_UNSAFE(s, i); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Use U8_PREV instead, see utf_old.h. */ +#define UTF8_PREV_CHAR_SAFE(s, start, i, c, strict) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[--(i)]; \ + if((c)>=0x80) { \ + if((c)<=0xbf) { \ + (c)=utf8_prevCharSafeBody(s, start, &(i), c, strict); \ + } else { \ + (c)=UTF8_ERROR_VALUE_1; \ + } \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U8_BACK_1, see utf_old.h. */ +#define UTF8_BACK_1_SAFE(s, start, i) U8_BACK_1(s, start, i) + +/** @deprecated ICU 2.4. Renamed to U8_BACK_N, see utf_old.h. */ +#define UTF8_BACK_N_SAFE(s, start, i, n) U8_BACK_N(s, start, i, n) + +/** @deprecated ICU 2.4. Renamed to U8_SET_CP_LIMIT, see utf_old.h. */ +#define UTF8_SET_CHAR_LIMIT_SAFE(s, start, i, length) U8_SET_CP_LIMIT(s, start, i, length) + +/* Formerly utf16.h --------------------------------------------------------- */ + +/** Is uchar a first/lead surrogate? @deprecated ICU 2.4. Renamed to U_IS_LEAD and U16_IS_LEAD, see utf_old.h. */ +#define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xd800) + +/** Is uchar a second/trail surrogate? @deprecated ICU 2.4. Renamed to U_IS_TRAIL and U16_IS_TRAIL, see utf_old.h. */ +#define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xdc00) + +/** Assuming c is a surrogate, is it a first/lead surrogate? @deprecated ICU 2.4. Renamed to U_IS_SURROGATE_LEAD and U16_IS_SURROGATE_LEAD, see utf_old.h. */ +#define UTF_IS_SURROGATE_FIRST(c) (((c)&0x400)==0) + +/** Helper constant for UTF16_GET_PAIR_VALUE. @deprecated ICU 2.4. Renamed to U16_SURROGATE_OFFSET, see utf_old.h. */ +#define UTF_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000) + +/** Get the UTF-32 value from the surrogate code units. @deprecated ICU 2.4. Renamed to U16_GET_SUPPLEMENTARY, see utf_old.h. */ +#define UTF16_GET_PAIR_VALUE(first, second) \ + (((first)<<10UL)+(second)-UTF_SURROGATE_OFFSET) + +/** @deprecated ICU 2.4. Renamed to U16_LEAD, see utf_old.h. */ +#define UTF_FIRST_SURROGATE(supplementary) (UChar)(((supplementary)>>10)+0xd7c0) + +/** @deprecated ICU 2.4. Renamed to U16_TRAIL, see utf_old.h. */ +#define UTF_SECOND_SURROGATE(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00) + +/** @deprecated ICU 2.4. Renamed to U16_LEAD, see utf_old.h. */ +#define UTF16_LEAD(supplementary) UTF_FIRST_SURROGATE(supplementary) + +/** @deprecated ICU 2.4. Renamed to U16_TRAIL, see utf_old.h. */ +#define UTF16_TRAIL(supplementary) UTF_SECOND_SURROGATE(supplementary) + +/** @deprecated ICU 2.4. Renamed to U16_IS_SINGLE, see utf_old.h. */ +#define UTF16_IS_SINGLE(uchar) !UTF_IS_SURROGATE(uchar) + +/** @deprecated ICU 2.4. Renamed to U16_IS_LEAD, see utf_old.h. */ +#define UTF16_IS_LEAD(uchar) UTF_IS_FIRST_SURROGATE(uchar) + +/** @deprecated ICU 2.4. Renamed to U16_IS_TRAIL, see utf_old.h. */ +#define UTF16_IS_TRAIL(uchar) UTF_IS_SECOND_SURROGATE(uchar) + +/** Does this scalar Unicode value need multiple code units for storage? @deprecated ICU 2.4. Use U16_LENGTH or test ((uint32_t)(c)>0xffff) instead, see utf_old.h. */ +#define UTF16_NEED_MULTIPLE_UCHAR(c) ((uint32_t)(c)>0xffff) + +/** @deprecated ICU 2.4. Renamed to U16_LENGTH, see utf_old.h. */ +#define UTF16_CHAR_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2) + +/** @deprecated ICU 2.4. Renamed to U16_MAX_LENGTH, see utf_old.h. */ +#define UTF16_MAX_CHAR_LENGTH 2 + +/** Average number of code units compared to UTF-16. @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF16_ARRAY_SIZE(size) (size) + +/** + * Get a single code point from an offset that points to any + * of the code units that belong to that code point. + * Assume 0<=i=(start) && UTF_IS_FIRST_SURROGATE(__c2=(s)[(i)-1])) { \ + (c)=UTF16_GET_PAIR_VALUE(__c2, (c)); \ + /* strict: ((c)&0xfffe)==0xfffe is caught by UTF_IS_ERROR() and UTF_IS_UNICODE_CHAR() */ \ + } else if(strict) {\ + /* unmatched second surrogate */ \ + (c)=UTF_ERROR_VALUE; \ + } \ + } \ + } else if((strict) && !UTF_IS_UNICODE_CHAR(c)) { \ + (c)=UTF_ERROR_VALUE; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U16_NEXT_UNSAFE, see utf_old.h. */ +#define UTF16_NEXT_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[(i)++]; \ + if(UTF_IS_FIRST_SURROGATE(c)) { \ + (c)=UTF16_GET_PAIR_VALUE((c), (s)[(i)++]); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U16_APPEND_UNSAFE, see utf_old.h. */ +#define UTF16_APPEND_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + if((uint32_t)(c)<=0xffff) { \ + (s)[(i)++]=(uint16_t)(c); \ + } else { \ + (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \ + (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U16_FWD_1_UNSAFE, see utf_old.h. */ +#define UTF16_FWD_1_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ + if(UTF_IS_FIRST_SURROGATE((s)[(i)++])) { \ + ++(i); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U16_FWD_N_UNSAFE, see utf_old.h. */ +#define UTF16_FWD_N_UNSAFE(s, i, n) UPRV_BLOCK_MACRO_BEGIN { \ + int32_t __N=(n); \ + while(__N>0) { \ + UTF16_FWD_1_UNSAFE(s, i); \ + --__N; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U16_SET_CP_START_UNSAFE, see utf_old.h. */ +#define UTF16_SET_CHAR_START_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ + if(UTF_IS_SECOND_SURROGATE((s)[i])) { \ + --(i); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Use U16_NEXT instead, see utf_old.h. */ +#define UTF16_NEXT_CHAR_SAFE(s, i, length, c, strict) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[(i)++]; \ + if(UTF_IS_FIRST_SURROGATE(c)) { \ + uint16_t __c2; \ + if((i)<(length) && UTF_IS_SECOND_SURROGATE(__c2=(s)[(i)])) { \ + ++(i); \ + (c)=UTF16_GET_PAIR_VALUE((c), __c2); \ + /* strict: ((c)&0xfffe)==0xfffe is caught by UTF_IS_ERROR() and UTF_IS_UNICODE_CHAR() */ \ + } else if(strict) {\ + /* unmatched first surrogate */ \ + (c)=UTF_ERROR_VALUE; \ + } \ + } else if((strict) && !UTF_IS_UNICODE_CHAR(c)) { \ + /* unmatched second surrogate or other non-character */ \ + (c)=UTF_ERROR_VALUE; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Use U16_APPEND instead, see utf_old.h. */ +#define UTF16_APPEND_CHAR_SAFE(s, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \ + if((uint32_t)(c)<=0xffff) { \ + (s)[(i)++]=(uint16_t)(c); \ + } else if((uint32_t)(c)<=0x10ffff) { \ + if((i)+1<(length)) { \ + (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \ + (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \ + } else /* not enough space */ { \ + (s)[(i)++]=UTF_ERROR_VALUE; \ + } \ + } else /* c>0x10ffff, write error value */ { \ + (s)[(i)++]=UTF_ERROR_VALUE; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U16_FWD_1, see utf_old.h. */ +#define UTF16_FWD_1_SAFE(s, i, length) U16_FWD_1(s, i, length) + +/** @deprecated ICU 2.4. Renamed to U16_FWD_N, see utf_old.h. */ +#define UTF16_FWD_N_SAFE(s, i, length, n) U16_FWD_N(s, i, length, n) + +/** @deprecated ICU 2.4. Renamed to U16_SET_CP_START, see utf_old.h. */ +#define UTF16_SET_CHAR_START_SAFE(s, start, i) U16_SET_CP_START(s, start, i) + +/** @deprecated ICU 2.4. Renamed to U16_PREV_UNSAFE, see utf_old.h. */ +#define UTF16_PREV_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[--(i)]; \ + if(UTF_IS_SECOND_SURROGATE(c)) { \ + (c)=UTF16_GET_PAIR_VALUE((s)[--(i)], (c)); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U16_BACK_1_UNSAFE, see utf_old.h. */ +#define UTF16_BACK_1_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ + if(UTF_IS_SECOND_SURROGATE((s)[--(i)])) { \ + --(i); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U16_BACK_N_UNSAFE, see utf_old.h. */ +#define UTF16_BACK_N_UNSAFE(s, i, n) UPRV_BLOCK_MACRO_BEGIN { \ + int32_t __N=(n); \ + while(__N>0) { \ + UTF16_BACK_1_UNSAFE(s, i); \ + --__N; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U16_SET_CP_LIMIT_UNSAFE, see utf_old.h. */ +#define UTF16_SET_CHAR_LIMIT_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ + if(UTF_IS_FIRST_SURROGATE((s)[(i)-1])) { \ + ++(i); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Use U16_PREV instead, see utf_old.h. */ +#define UTF16_PREV_CHAR_SAFE(s, start, i, c, strict) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[--(i)]; \ + if(UTF_IS_SECOND_SURROGATE(c)) { \ + uint16_t __c2; \ + if((i)>(start) && UTF_IS_FIRST_SURROGATE(__c2=(s)[(i)-1])) { \ + --(i); \ + (c)=UTF16_GET_PAIR_VALUE(__c2, (c)); \ + /* strict: ((c)&0xfffe)==0xfffe is caught by UTF_IS_ERROR() and UTF_IS_UNICODE_CHAR() */ \ + } else if(strict) {\ + /* unmatched second surrogate */ \ + (c)=UTF_ERROR_VALUE; \ + } \ + } else if((strict) && !UTF_IS_UNICODE_CHAR(c)) { \ + /* unmatched first surrogate or other non-character */ \ + (c)=UTF_ERROR_VALUE; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Renamed to U16_BACK_1, see utf_old.h. */ +#define UTF16_BACK_1_SAFE(s, start, i) U16_BACK_1(s, start, i) + +/** @deprecated ICU 2.4. Renamed to U16_BACK_N, see utf_old.h. */ +#define UTF16_BACK_N_SAFE(s, start, i, n) U16_BACK_N(s, start, i, n) + +/** @deprecated ICU 2.4. Renamed to U16_SET_CP_LIMIT, see utf_old.h. */ +#define UTF16_SET_CHAR_LIMIT_SAFE(s, start, i, length) U16_SET_CP_LIMIT(s, start, i, length) + +/* Formerly utf32.h --------------------------------------------------------- */ + +/* +* Old documentation: +* +* This file defines macros to deal with UTF-32 code units and code points. +* Signatures and semantics are the same as for the similarly named macros +* in utf16.h. +* utf32.h is included by utf.h after unicode/umachine.h

+* and some common definitions. +*

Usage: ICU coding guidelines for if() statements should be followed when using these macros. +* Compound statements (curly braces {}) must be used for if-else-while... +* bodies and all macro statements should be terminated with semicolon.

+*/ + +/* internal definitions ----------------------------------------------------- */ + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_IS_SAFE(c, strict) \ + (!(strict) ? \ + (uint32_t)(c)<=0x10ffff : \ + UTF_IS_UNICODE_CHAR(c)) + +/* + * For the semantics of all of these macros, see utf16.h. + * The UTF-32 versions are trivial because any code point is + * encoded using exactly one code unit. + */ + +/* single-code point definitions -------------------------------------------- */ + +/* classes of code unit values */ + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_IS_SINGLE(uchar) 1 +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_IS_LEAD(uchar) 0 +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_IS_TRAIL(uchar) 0 + +/* number of code units per code point */ + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_NEED_MULTIPLE_UCHAR(c) 0 +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_CHAR_LENGTH(c) 1 +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_MAX_CHAR_LENGTH 1 + +/* average number of code units compared to UTF-16 */ + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_ARRAY_SIZE(size) (size) + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_GET_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[i]; \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_GET_CHAR_SAFE(s, start, i, length, c, strict) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[i]; \ + if(!UTF32_IS_SAFE(c, strict)) { \ + (c)=UTF_ERROR_VALUE; \ + } \ +} UPRV_BLOCK_MACRO_END + +/* definitions with forward iteration --------------------------------------- */ + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_NEXT_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[(i)++]; \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_APPEND_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + (s)[(i)++]=(c); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_FWD_1_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ + ++(i); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_FWD_N_UNSAFE(s, i, n) UPRV_BLOCK_MACRO_BEGIN { \ + (i)+=(n); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_SET_CHAR_START_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_NEXT_CHAR_SAFE(s, i, length, c, strict) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[(i)++]; \ + if(!UTF32_IS_SAFE(c, strict)) { \ + (c)=UTF_ERROR_VALUE; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_APPEND_CHAR_SAFE(s, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \ + if((uint32_t)(c)<=0x10ffff) { \ + (s)[(i)++]=(c); \ + } else /* c>0x10ffff, write 0xfffd */ { \ + (s)[(i)++]=0xfffd; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_FWD_1_SAFE(s, i, length) UPRV_BLOCK_MACRO_BEGIN { \ + ++(i); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_FWD_N_SAFE(s, i, length, n) UPRV_BLOCK_MACRO_BEGIN { \ + if(((i)+=(n))>(length)) { \ + (i)=(length); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_SET_CHAR_START_SAFE(s, start, i) UPRV_BLOCK_MACRO_BEGIN { \ +} UPRV_BLOCK_MACRO_END + +/* definitions with backward iteration -------------------------------------- */ + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_PREV_CHAR_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[--(i)]; \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_BACK_1_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ + --(i); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_BACK_N_UNSAFE(s, i, n) UPRV_BLOCK_MACRO_BEGIN { \ + (i)-=(n); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_SET_CHAR_LIMIT_UNSAFE(s, i) UPRV_BLOCK_MACRO_BEGIN { \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_PREV_CHAR_SAFE(s, start, i, c, strict) UPRV_BLOCK_MACRO_BEGIN { \ + (c)=(s)[--(i)]; \ + if(!UTF32_IS_SAFE(c, strict)) { \ + (c)=UTF_ERROR_VALUE; \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_BACK_1_SAFE(s, start, i) UPRV_BLOCK_MACRO_BEGIN { \ + --(i); \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_BACK_N_SAFE(s, start, i, n) UPRV_BLOCK_MACRO_BEGIN { \ + (i)-=(n); \ + if((i)<(start)) { \ + (i)=(start); \ + } \ +} UPRV_BLOCK_MACRO_END + +/** @deprecated ICU 2.4. Obsolete, see utf_old.h. */ +#define UTF32_SET_CHAR_LIMIT_SAFE(s, i, length) UPRV_BLOCK_MACRO_BEGIN { \ +} UPRV_BLOCK_MACRO_END + +/* Formerly utf.h, part 2 --------------------------------------------------- */ + +/** + * Estimate the number of code units for a string based on the number of UTF-16 code units. + * + * @deprecated ICU 2.4. Obsolete, see utf_old.h. + */ +#define UTF_ARRAY_SIZE(size) UTF16_ARRAY_SIZE(size) + +/** @deprecated ICU 2.4. Renamed to U16_GET_UNSAFE, see utf_old.h. */ +#define UTF_GET_CHAR_UNSAFE(s, i, c) UTF16_GET_CHAR_UNSAFE(s, i, c) + +/** @deprecated ICU 2.4. Use U16_GET instead, see utf_old.h. */ +#define UTF_GET_CHAR_SAFE(s, start, i, length, c, strict) UTF16_GET_CHAR_SAFE(s, start, i, length, c, strict) + + +/** @deprecated ICU 2.4. Renamed to U16_NEXT_UNSAFE, see utf_old.h. */ +#define UTF_NEXT_CHAR_UNSAFE(s, i, c) UTF16_NEXT_CHAR_UNSAFE(s, i, c) + +/** @deprecated ICU 2.4. Use U16_NEXT instead, see utf_old.h. */ +#define UTF_NEXT_CHAR_SAFE(s, i, length, c, strict) UTF16_NEXT_CHAR_SAFE(s, i, length, c, strict) + + +/** @deprecated ICU 2.4. Renamed to U16_APPEND_UNSAFE, see utf_old.h. */ +#define UTF_APPEND_CHAR_UNSAFE(s, i, c) UTF16_APPEND_CHAR_UNSAFE(s, i, c) + +/** @deprecated ICU 2.4. Use U16_APPEND instead, see utf_old.h. */ +#define UTF_APPEND_CHAR_SAFE(s, i, length, c) UTF16_APPEND_CHAR_SAFE(s, i, length, c) + + +/** @deprecated ICU 2.4. Renamed to U16_FWD_1_UNSAFE, see utf_old.h. */ +#define UTF_FWD_1_UNSAFE(s, i) UTF16_FWD_1_UNSAFE(s, i) + +/** @deprecated ICU 2.4. Renamed to U16_FWD_1, see utf_old.h. */ +#define UTF_FWD_1_SAFE(s, i, length) UTF16_FWD_1_SAFE(s, i, length) + + +/** @deprecated ICU 2.4. Renamed to U16_FWD_N_UNSAFE, see utf_old.h. */ +#define UTF_FWD_N_UNSAFE(s, i, n) UTF16_FWD_N_UNSAFE(s, i, n) + +/** @deprecated ICU 2.4. Renamed to U16_FWD_N, see utf_old.h. */ +#define UTF_FWD_N_SAFE(s, i, length, n) UTF16_FWD_N_SAFE(s, i, length, n) + + +/** @deprecated ICU 2.4. Renamed to U16_SET_CP_START_UNSAFE, see utf_old.h. */ +#define UTF_SET_CHAR_START_UNSAFE(s, i) UTF16_SET_CHAR_START_UNSAFE(s, i) + +/** @deprecated ICU 2.4. Renamed to U16_SET_CP_START, see utf_old.h. */ +#define UTF_SET_CHAR_START_SAFE(s, start, i) UTF16_SET_CHAR_START_SAFE(s, start, i) + + +/** @deprecated ICU 2.4. Renamed to U16_PREV_UNSAFE, see utf_old.h. */ +#define UTF_PREV_CHAR_UNSAFE(s, i, c) UTF16_PREV_CHAR_UNSAFE(s, i, c) + +/** @deprecated ICU 2.4. Use U16_PREV instead, see utf_old.h. */ +#define UTF_PREV_CHAR_SAFE(s, start, i, c, strict) UTF16_PREV_CHAR_SAFE(s, start, i, c, strict) + + +/** @deprecated ICU 2.4. Renamed to U16_BACK_1_UNSAFE, see utf_old.h. */ +#define UTF_BACK_1_UNSAFE(s, i) UTF16_BACK_1_UNSAFE(s, i) + +/** @deprecated ICU 2.4. Renamed to U16_BACK_1, see utf_old.h. */ +#define UTF_BACK_1_SAFE(s, start, i) UTF16_BACK_1_SAFE(s, start, i) + + +/** @deprecated ICU 2.4. Renamed to U16_BACK_N_UNSAFE, see utf_old.h. */ +#define UTF_BACK_N_UNSAFE(s, i, n) UTF16_BACK_N_UNSAFE(s, i, n) + +/** @deprecated ICU 2.4. Renamed to U16_BACK_N, see utf_old.h. */ +#define UTF_BACK_N_SAFE(s, start, i, n) UTF16_BACK_N_SAFE(s, start, i, n) + + +/** @deprecated ICU 2.4. Renamed to U16_SET_CP_LIMIT_UNSAFE, see utf_old.h. */ +#define UTF_SET_CHAR_LIMIT_UNSAFE(s, i) UTF16_SET_CHAR_LIMIT_UNSAFE(s, i) + +/** @deprecated ICU 2.4. Renamed to U16_SET_CP_LIMIT, see utf_old.h. */ +#define UTF_SET_CHAR_LIMIT_SAFE(s, start, i, length) UTF16_SET_CHAR_LIMIT_SAFE(s, start, i, length) + +/* Define default macros (UTF-16 "safe") ------------------------------------ */ + +/** + * Does this code unit alone encode a code point (BMP, not a surrogate)? + * Same as UTF16_IS_SINGLE. + * @deprecated ICU 2.4. Renamed to U_IS_SINGLE and U16_IS_SINGLE, see utf_old.h. + */ +#define UTF_IS_SINGLE(uchar) U16_IS_SINGLE(uchar) + +/** + * Is this code unit the first one of several (a lead surrogate)? + * Same as UTF16_IS_LEAD. + * @deprecated ICU 2.4. Renamed to U_IS_LEAD and U16_IS_LEAD, see utf_old.h. + */ +#define UTF_IS_LEAD(uchar) U16_IS_LEAD(uchar) + +/** + * Is this code unit one of several but not the first one (a trail surrogate)? + * Same as UTF16_IS_TRAIL. + * @deprecated ICU 2.4. Renamed to U_IS_TRAIL and U16_IS_TRAIL, see utf_old.h. + */ +#define UTF_IS_TRAIL(uchar) U16_IS_TRAIL(uchar) + +/** + * Does this code point require multiple code units (is it a supplementary code point)? + * Same as UTF16_NEED_MULTIPLE_UCHAR. + * @deprecated ICU 2.4. Use U16_LENGTH or test ((uint32_t)(c)>0xffff) instead. + */ +#define UTF_NEED_MULTIPLE_UCHAR(c) UTF16_NEED_MULTIPLE_UCHAR(c) + +/** + * How many code units are used to encode this code point (1 or 2)? + * Same as UTF16_CHAR_LENGTH. + * @deprecated ICU 2.4. Renamed to U16_LENGTH, see utf_old.h. + */ +#define UTF_CHAR_LENGTH(c) U16_LENGTH(c) + +/** + * How many code units are used at most for any Unicode code point (2)? + * Same as UTF16_MAX_CHAR_LENGTH. + * @deprecated ICU 2.4. Renamed to U16_MAX_LENGTH, see utf_old.h. + */ +#define UTF_MAX_CHAR_LENGTH U16_MAX_LENGTH + +/** + * Set c to the code point that contains the code unit i. + * i could point to the lead or the trail surrogate for the code point. + * i is not modified. + * Same as UTF16_GET_CHAR. + * \pre 0<=i +* 12/07/99 helena Moved copyright notice string from ucnv_bld.h here. +******************************************************************************* +*/ + +#ifndef UTYPES_H +#define UTYPES_H + + +#include + + +/*! + * \file + * \brief Basic definitions for ICU, for both C and C++ APIs + * + * This file defines basic types, constants, and enumerations directly or + * indirectly by including other header files, especially utf.h for the + * basic character and string definitions and umachine.h for consistent + * integer and other types. + */ + + +/** + * \def U_SHOW_CPLUSPLUS_API + * @internal + */ +#ifdef __cplusplus +# ifndef U_SHOW_CPLUSPLUS_API +# endif +#else +# undef U_SHOW_CPLUSPLUS_API +#endif + +/** @{ API visibility control */ + +/** + * \def U_HIDE_DRAFT_API + * Define this to 1 to request that draft API be "hidden" + * @internal + */ +/** + * \def U_HIDE_INTERNAL_API + * Define this to 1 to request that internal API be "hidden" + * @internal + */ +#if !U_DEFAULT_SHOW_DRAFT && !defined(U_SHOW_DRAFT_API) +#endif +#if !U_DEFAULT_SHOW_DRAFT && !defined(U_SHOW_INTERNAL_API) +#endif + +/** @} */ + + +/** + * \def NULL + * Define NULL if necessary, to nullptr for C++ and to ((void *)0) for C. + * @stable ICU 2.0 + */ +#ifndef NULL +#ifdef __cplusplus +#define NULL nullptr +#else +#define NULL ((void *)0) +#endif +#endif + +/*===========================================================================*/ +/* Calendar/TimeZone data types */ +/*===========================================================================*/ + +/** + * Date and Time data type. + * This is a primitive data type that holds the date and time + * as the number of milliseconds since 1970-jan-01, 00:00 UTC. + * UTC leap seconds are ignored. + * @stable ICU 2.0 + */ +typedef double UDate; + +/** The number of milliseconds per second @stable ICU 2.0 */ +#define U_MILLIS_PER_SECOND (1000) +/** The number of milliseconds per minute @stable ICU 2.0 */ +#define U_MILLIS_PER_MINUTE (60000) +/** The number of milliseconds per hour @stable ICU 2.0 */ +#define U_MILLIS_PER_HOUR (3600000) +/** The number of milliseconds per day @stable ICU 2.0 */ +#define U_MILLIS_PER_DAY (86400000) + +/** + * Maximum UDate value + * @stable ICU 4.8 + */ +#define U_DATE_MAX DBL_MAX + +/** + * Minimum UDate value + * @stable ICU 4.8 + */ +#define U_DATE_MIN -U_DATE_MAX + +/*===========================================================================*/ +/* Shared library/DLL import-export API control */ +/*===========================================================================*/ + +/* + * Control of symbol import/export. + * ICU is separated into three libraries. + */ + +/** + * \def U_COMBINED_IMPLEMENTATION + * Set to export library symbols from inside the ICU library + * when all of ICU is in a single library. + * This can be set as a compiler option while building ICU, and it + * needs to be the first one tested to override U_COMMON_API, U_I18N_API, etc. + * @stable ICU 2.0 + */ + +/** + * \def U_DATA_API + * Set to export library symbols from inside the stubdata library, + * and to import them from outside. + * @stable ICU 3.0 + */ + +/** + * \def U_COMMON_API + * Set to export library symbols from inside the common library, + * and to import them from outside. + * @stable ICU 2.0 + */ + +/** + * \def U_I18N_API + * Set to export library symbols from inside the i18n library, + * and to import them from outside. + * @stable ICU 2.0 + */ + +/** + * \def U_LAYOUT_API + * Set to export library symbols from inside the layout engine library, + * and to import them from outside. + * @stable ICU 2.0 + */ + +/** + * \def U_LAYOUTEX_API + * Set to export library symbols from inside the layout extensions library, + * and to import them from outside. + * @stable ICU 2.6 + */ + +/** + * \def U_IO_API + * Set to export library symbols from inside the ustdio library, + * and to import them from outside. + * @stable ICU 2.0 + */ + +/** + * \def U_TOOLUTIL_API + * Set to export library symbols from inside the toolutil library, + * and to import them from outside. + * @stable ICU 3.4 + */ + +#ifdef U_IN_DOXYGEN +// This definition is required when generating the API docs. +#define U_COMBINED_IMPLEMENTATION 1 +#endif + +#if defined(U_COMBINED_IMPLEMENTATION) +#define U_DATA_API U_EXPORT +#define U_COMMON_API U_EXPORT +#define U_I18N_API U_EXPORT +#define U_LAYOUT_API U_EXPORT +#define U_LAYOUTEX_API U_EXPORT +#define U_IO_API U_EXPORT +#define U_TOOLUTIL_API U_EXPORT +#elif defined(U_STATIC_IMPLEMENTATION) +#define U_DATA_API +#define U_COMMON_API +#define U_I18N_API +#define U_LAYOUT_API +#define U_LAYOUTEX_API +#define U_IO_API +#define U_TOOLUTIL_API +#elif defined(U_COMMON_IMPLEMENTATION) +#define U_DATA_API U_IMPORT +#define U_COMMON_API U_EXPORT +#define U_I18N_API U_IMPORT +#define U_LAYOUT_API U_IMPORT +#define U_LAYOUTEX_API U_IMPORT +#define U_IO_API U_IMPORT +#define U_TOOLUTIL_API U_IMPORT +#elif defined(U_I18N_IMPLEMENTATION) +#define U_DATA_API U_IMPORT +#define U_COMMON_API U_IMPORT +#define U_I18N_API U_EXPORT +#define U_LAYOUT_API U_IMPORT +#define U_LAYOUTEX_API U_IMPORT +#define U_IO_API U_IMPORT +#define U_TOOLUTIL_API U_IMPORT +#elif defined(U_LAYOUT_IMPLEMENTATION) +#define U_DATA_API U_IMPORT +#define U_COMMON_API U_IMPORT +#define U_I18N_API U_IMPORT +#define U_LAYOUT_API U_EXPORT +#define U_LAYOUTEX_API U_IMPORT +#define U_IO_API U_IMPORT +#define U_TOOLUTIL_API U_IMPORT +#elif defined(U_LAYOUTEX_IMPLEMENTATION) +#define U_DATA_API U_IMPORT +#define U_COMMON_API U_IMPORT +#define U_I18N_API U_IMPORT +#define U_LAYOUT_API U_IMPORT +#define U_LAYOUTEX_API U_EXPORT +#define U_IO_API U_IMPORT +#define U_TOOLUTIL_API U_IMPORT +#elif defined(U_IO_IMPLEMENTATION) +#define U_DATA_API U_IMPORT +#define U_COMMON_API U_IMPORT +#define U_I18N_API U_IMPORT +#define U_LAYOUT_API U_IMPORT +#define U_LAYOUTEX_API U_IMPORT +#define U_IO_API U_EXPORT +#define U_TOOLUTIL_API U_IMPORT +#elif defined(U_TOOLUTIL_IMPLEMENTATION) +#define U_DATA_API U_IMPORT +#define U_COMMON_API U_IMPORT +#define U_I18N_API U_IMPORT +#define U_LAYOUT_API U_IMPORT +#define U_LAYOUTEX_API U_IMPORT +#define U_IO_API U_IMPORT +#define U_TOOLUTIL_API U_EXPORT +#else +#define U_DATA_API U_IMPORT +#define U_COMMON_API U_IMPORT +#define U_I18N_API U_IMPORT +#define U_LAYOUT_API U_IMPORT +#define U_LAYOUTEX_API U_IMPORT +#define U_IO_API U_IMPORT +#define U_TOOLUTIL_API U_IMPORT +#endif + +/** + * \def U_STANDARD_CPP_NAMESPACE + * Control of C++ Namespace + * @stable ICU 2.0 + */ +#ifdef __cplusplus +#define U_STANDARD_CPP_NAMESPACE :: +#else +#define U_STANDARD_CPP_NAMESPACE +#endif + +/*===========================================================================*/ +/* UErrorCode */ +/*===========================================================================*/ + +/** + * Standard ICU4C error code type, a substitute for exceptions. + * + * Initialize the UErrorCode with U_ZERO_ERROR, and check for success or + * failure using U_SUCCESS() or U_FAILURE(): + * + * UErrorCode errorCode = U_ZERO_ERROR; + * // call ICU API that needs an error code parameter. + * if (U_FAILURE(errorCode)) { + * // An error occurred. Handle it here. + * } + * + * C++ code should use icu::ErrorCode, available in unicode/errorcode.h, or a + * suitable subclass. + * + * For more information, see: + * https://unicode-org.github.io/icu/userguide/dev/codingguidelines#details-about-icu-error-codes + * + * Note: By convention, ICU functions that take a reference (C++) or a pointer + * (C) to a UErrorCode first test: + * + * if (U_FAILURE(errorCode)) { return immediately; } + * + * so that in a chain of such functions the first one that sets an error code + * causes the following ones to not perform any operations. + * + * @stable ICU 2.0 + */ +typedef enum UErrorCode { + /* The ordering of U_ERROR_INFO_START Vs U_USING_FALLBACK_WARNING looks weird + * and is that way because VC++ debugger displays first encountered constant, + * which is not the what the code is used for + */ + + U_USING_FALLBACK_WARNING = -128, /**< A resource bundle lookup returned a fallback result (not an error) */ + + U_ERROR_WARNING_START = -128, /**< Start of information results (semantically successful) */ + + U_USING_DEFAULT_WARNING = -127, /**< A resource bundle lookup returned a result from the root locale (not an error) */ + + U_SAFECLONE_ALLOCATED_WARNING = -126, /**< A SafeClone operation required allocating memory (informational only) */ + + U_STATE_OLD_WARNING = -125, /**< ICU has to use compatibility layer to construct the service. Expect performance/memory usage degradation. Consider upgrading */ + + U_STRING_NOT_TERMINATED_WARNING = -124,/**< An output string could not be NUL-terminated because output length==destCapacity. */ + + U_SORT_KEY_TOO_SHORT_WARNING = -123, /**< Number of levels requested in getBound is higher than the number of levels in the sort key */ + + U_AMBIGUOUS_ALIAS_WARNING = -122, /**< This converter alias can go to different converter implementations */ + + U_DIFFERENT_UCA_VERSION = -121, /**< ucol_open encountered a mismatch between UCA version and collator image version, so the collator was constructed from rules. No impact to further function */ + + U_PLUGIN_CHANGED_LEVEL_WARNING = -120, /**< A plugin caused a level change. May not be an error, but later plugins may not load. */ + + + U_ZERO_ERROR = 0, /**< No error, no warning. */ + + U_ILLEGAL_ARGUMENT_ERROR = 1, /**< Start of codes indicating failure */ + U_MISSING_RESOURCE_ERROR = 2, /**< The requested resource cannot be found */ + U_INVALID_FORMAT_ERROR = 3, /**< Data format is not what is expected */ + U_FILE_ACCESS_ERROR = 4, /**< The requested file cannot be found */ + U_INTERNAL_PROGRAM_ERROR = 5, /**< Indicates a bug in the library code */ + U_MESSAGE_PARSE_ERROR = 6, /**< Unable to parse a message (message format) */ + U_MEMORY_ALLOCATION_ERROR = 7, /**< Memory allocation error */ + U_INDEX_OUTOFBOUNDS_ERROR = 8, /**< Trying to access the index that is out of bounds */ + U_PARSE_ERROR = 9, /**< Equivalent to Java ParseException */ + U_INVALID_CHAR_FOUND = 10, /**< Character conversion: Unmappable input sequence. In other APIs: Invalid character. */ + U_TRUNCATED_CHAR_FOUND = 11, /**< Character conversion: Incomplete input sequence. */ + U_ILLEGAL_CHAR_FOUND = 12, /**< Character conversion: Illegal input sequence/combination of input units. */ + U_INVALID_TABLE_FORMAT = 13, /**< Conversion table file found, but corrupted */ + U_INVALID_TABLE_FILE = 14, /**< Conversion table file not found */ + U_BUFFER_OVERFLOW_ERROR = 15, /**< A result would not fit in the supplied buffer */ + U_UNSUPPORTED_ERROR = 16, /**< Requested operation not supported in current context */ + U_RESOURCE_TYPE_MISMATCH = 17, /**< an operation is requested over a resource that does not support it */ + U_ILLEGAL_ESCAPE_SEQUENCE = 18, /**< ISO-2022 illegal escape sequence */ + U_UNSUPPORTED_ESCAPE_SEQUENCE = 19, /**< ISO-2022 unsupported escape sequence */ + U_NO_SPACE_AVAILABLE = 20, /**< No space available for in-buffer expansion for Arabic shaping */ + U_CE_NOT_FOUND_ERROR = 21, /**< Currently used only while setting variable top, but can be used generally */ + U_PRIMARY_TOO_LONG_ERROR = 22, /**< User tried to set variable top to a primary that is longer than two bytes */ + U_STATE_TOO_OLD_ERROR = 23, /**< ICU cannot construct a service from this state, as it is no longer supported */ + U_TOO_MANY_ALIASES_ERROR = 24, /**< There are too many aliases in the path to the requested resource. + It is very possible that a circular alias definition has occurred */ + U_ENUM_OUT_OF_SYNC_ERROR = 25, /**< UEnumeration out of sync with underlying collection */ + U_INVARIANT_CONVERSION_ERROR = 26, /**< Unable to convert a UChar* string to char* with the invariant converter. */ + U_INVALID_STATE_ERROR = 27, /**< Requested operation can not be completed with ICU in its current state */ + U_COLLATOR_VERSION_MISMATCH = 28, /**< Collator version is not compatible with the base version */ + U_USELESS_COLLATOR_ERROR = 29, /**< Collator is options only and no base is specified */ + U_NO_WRITE_PERMISSION = 30, /**< Attempt to modify read-only or constant data. */ +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + /** + * The input is impractically long for an operation. + * It is rejected because it may lead to problems such as excessive + * processing time, stack depth, or heap memory requirements. + * + * @stable ICU 68 + */ + U_INPUT_TOO_LONG_ERROR = 31, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + + /* + * Error codes in the range 0x10000 0x10100 are reserved for Transliterator. + */ + U_BAD_VARIABLE_DEFINITION=0x10000,/**< Missing '$' or duplicate variable name */ + U_PARSE_ERROR_START = 0x10000, /**< Start of Transliterator errors */ + U_MALFORMED_RULE, /**< Elements of a rule are misplaced */ + U_MALFORMED_SET, /**< A UnicodeSet pattern is invalid*/ + U_MALFORMED_SYMBOL_REFERENCE, /**< UNUSED as of ICU 2.4 */ + U_MALFORMED_UNICODE_ESCAPE, /**< A Unicode escape pattern is invalid*/ + U_MALFORMED_VARIABLE_DEFINITION, /**< A variable definition is invalid */ + U_MALFORMED_VARIABLE_REFERENCE, /**< A variable reference is invalid */ + U_MISMATCHED_SEGMENT_DELIMITERS, /**< UNUSED as of ICU 2.4 */ + U_MISPLACED_ANCHOR_START, /**< A start anchor appears at an illegal position */ + U_MISPLACED_CURSOR_OFFSET, /**< A cursor offset occurs at an illegal position */ + U_MISPLACED_QUANTIFIER, /**< A quantifier appears after a segment close delimiter */ + U_MISSING_OPERATOR, /**< A rule contains no operator */ + U_MISSING_SEGMENT_CLOSE, /**< UNUSED as of ICU 2.4 */ + U_MULTIPLE_ANTE_CONTEXTS, /**< More than one ante context */ + U_MULTIPLE_CURSORS, /**< More than one cursor */ + U_MULTIPLE_POST_CONTEXTS, /**< More than one post context */ + U_TRAILING_BACKSLASH, /**< A dangling backslash */ + U_UNDEFINED_SEGMENT_REFERENCE, /**< A segment reference does not correspond to a defined segment */ + U_UNDEFINED_VARIABLE, /**< A variable reference does not correspond to a defined variable */ + U_UNQUOTED_SPECIAL, /**< A special character was not quoted or escaped */ + U_UNTERMINATED_QUOTE, /**< A closing single quote is missing */ + U_RULE_MASK_ERROR, /**< A rule is hidden by an earlier more general rule */ + U_MISPLACED_COMPOUND_FILTER, /**< A compound filter is in an invalid location */ + U_MULTIPLE_COMPOUND_FILTERS, /**< More than one compound filter */ + U_INVALID_RBT_SYNTAX, /**< A "::id" rule was passed to the RuleBasedTransliterator parser */ + U_INVALID_PROPERTY_PATTERN, /**< UNUSED as of ICU 2.4 */ + U_MALFORMED_PRAGMA, /**< A 'use' pragma is invalid */ + U_UNCLOSED_SEGMENT, /**< A closing ')' is missing */ + U_ILLEGAL_CHAR_IN_SEGMENT, /**< UNUSED as of ICU 2.4 */ + U_VARIABLE_RANGE_EXHAUSTED, /**< Too many stand-ins generated for the given variable range */ + U_VARIABLE_RANGE_OVERLAP, /**< The variable range overlaps characters used in rules */ + U_ILLEGAL_CHARACTER, /**< A special character is outside its allowed context */ + U_INTERNAL_TRANSLITERATOR_ERROR, /**< Internal transliterator system error */ + U_INVALID_ID, /**< A "::id" rule specifies an unknown transliterator */ + U_INVALID_FUNCTION, /**< A "&fn()" rule specifies an unknown transliterator */ + + /* + * Error codes in the range 0x10100 0x10200 are reserved for the formatting API. + */ + U_UNEXPECTED_TOKEN=0x10100, /**< Syntax error in format pattern */ + U_FMT_PARSE_ERROR_START=0x10100, /**< Start of format library errors */ + U_MULTIPLE_DECIMAL_SEPARATORS, /**< More than one decimal separator in number pattern */ + U_MULTIPLE_DECIMAL_SEPERATORS = U_MULTIPLE_DECIMAL_SEPARATORS, /**< Typo: kept for backward compatibility. Use U_MULTIPLE_DECIMAL_SEPARATORS */ + U_MULTIPLE_EXPONENTIAL_SYMBOLS, /**< More than one exponent symbol in number pattern */ + U_MALFORMED_EXPONENTIAL_PATTERN, /**< Grouping symbol in exponent pattern */ + U_MULTIPLE_PERCENT_SYMBOLS, /**< More than one percent symbol in number pattern */ + U_MULTIPLE_PERMILL_SYMBOLS, /**< More than one permill symbol in number pattern */ + U_MULTIPLE_PAD_SPECIFIERS, /**< More than one pad symbol in number pattern */ + U_PATTERN_SYNTAX_ERROR, /**< Syntax error in format pattern */ + U_ILLEGAL_PAD_POSITION, /**< Pad symbol misplaced in number pattern */ + U_UNMATCHED_BRACES, /**< Braces do not match in message pattern */ + U_UNSUPPORTED_PROPERTY, /**< UNUSED as of ICU 2.4 */ + U_UNSUPPORTED_ATTRIBUTE, /**< UNUSED as of ICU 2.4 */ + U_ARGUMENT_TYPE_MISMATCH, /**< Argument name and argument index mismatch in MessageFormat functions */ + U_DUPLICATE_KEYWORD, /**< Duplicate keyword in PluralFormat */ + U_UNDEFINED_KEYWORD, /**< Undefined Plural keyword */ + U_DEFAULT_KEYWORD_MISSING, /**< Missing DEFAULT rule in plural rules */ + U_DECIMAL_NUMBER_SYNTAX_ERROR, /**< Decimal number syntax error */ + U_FORMAT_INEXACT_ERROR, /**< Cannot format a number exactly and rounding mode is ROUND_UNNECESSARY @stable ICU 4.8 */ +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) + U_NUMBER_ARG_OUTOFBOUNDS_ERROR, /**< The argument to a NumberFormatter helper method was out of bounds; the bounds are usually 0 to 999. @stable ICU 61 */ + U_NUMBER_SKELETON_SYNTAX_ERROR, /**< The number skeleton passed to C++ NumberFormatter or C UNumberFormatter was invalid or contained a syntax error. @stable ICU 62 */ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_VB) + /* + * Error codes in the range 0x10200 0x102ff are reserved for BreakIterator. + */ + U_BRK_INTERNAL_ERROR=0x10200, /**< An internal error (bug) was detected. */ + U_BRK_ERROR_START=0x10200, /**< Start of codes indicating Break Iterator failures */ + U_BRK_HEX_DIGITS_EXPECTED, /**< Hex digits expected as part of a escaped char in a rule. */ + U_BRK_SEMICOLON_EXPECTED, /**< Missing ';' at the end of a RBBI rule. */ + U_BRK_RULE_SYNTAX, /**< Syntax error in RBBI rule. */ + U_BRK_UNCLOSED_SET, /**< UnicodeSet writing an RBBI rule missing a closing ']'. */ + U_BRK_ASSIGN_ERROR, /**< Syntax error in RBBI rule assignment statement. */ + U_BRK_VARIABLE_REDFINITION, /**< RBBI rule $Variable redefined. */ + U_BRK_MISMATCHED_PAREN, /**< Mis-matched parentheses in an RBBI rule. */ + U_BRK_NEW_LINE_IN_QUOTED_STRING, /**< Missing closing quote in an RBBI rule. */ + U_BRK_UNDEFINED_VARIABLE, /**< Use of an undefined $Variable in an RBBI rule. */ + U_BRK_INIT_ERROR, /**< Initialization failure. Probable missing ICU Data. */ + U_BRK_RULE_EMPTY_SET, /**< Rule contains an empty Unicode Set. */ + U_BRK_UNRECOGNIZED_OPTION, /**< !!option in RBBI rules not recognized. */ + U_BRK_MALFORMED_RULE_TAG, /**< The {nnn} tag on a rule is malformed */ + + /* + * Error codes in the range 0x10300-0x103ff are reserved for regular expression related errors. + */ + U_REGEX_INTERNAL_ERROR=0x10300, /**< An internal error (bug) was detected. */ + U_REGEX_ERROR_START=0x10300, /**< Start of codes indicating Regexp failures */ + U_REGEX_RULE_SYNTAX, /**< Syntax error in regexp pattern. */ + U_REGEX_INVALID_STATE, /**< RegexMatcher in invalid state for requested operation */ + U_REGEX_BAD_ESCAPE_SEQUENCE, /**< Unrecognized backslash escape sequence in pattern */ + U_REGEX_PROPERTY_SYNTAX, /**< Incorrect Unicode property */ + U_REGEX_UNIMPLEMENTED, /**< Use of regexp feature that is not yet implemented. */ + U_REGEX_MISMATCHED_PAREN, /**< Incorrectly nested parentheses in regexp pattern. */ + U_REGEX_NUMBER_TOO_BIG, /**< Decimal number is too large. */ + U_REGEX_BAD_INTERVAL, /**< Error in {min,max} interval */ + U_REGEX_MAX_LT_MIN, /**< In {min,max}, max is less than min. */ + U_REGEX_INVALID_BACK_REF, /**< Back-reference to a non-existent capture group. */ + U_REGEX_INVALID_FLAG, /**< Invalid value for match mode flags. */ + U_REGEX_LOOK_BEHIND_LIMIT, /**< Look-Behind pattern matches must have a bounded maximum length. */ + U_REGEX_SET_CONTAINS_STRING, /**< Regexps cannot have UnicodeSets containing strings.*/ + U_REGEX_MISSING_CLOSE_BRACKET=U_REGEX_SET_CONTAINS_STRING+2, /**< Missing closing bracket on a bracket expression. */ + U_REGEX_INVALID_RANGE, /**< In a character range [x-y], x is greater than y. */ + U_REGEX_STACK_OVERFLOW, /**< Regular expression backtrack stack overflow. */ + U_REGEX_TIME_OUT, /**< Maximum allowed match time exceeded */ + U_REGEX_STOPPED_BY_CALLER, /**< Matching operation aborted by user callback fn. */ + U_REGEX_PATTERN_TOO_BIG, /**< Pattern exceeds limits on size or complexity. @stable ICU 55 */ + U_REGEX_INVALID_CAPTURE_GROUP_NAME, /**< Invalid capture group name. @stable ICU 55 */ + + /* + * Error codes in the range 0x10400-0x104ff are reserved for IDNA related error codes. + */ + U_IDNA_PROHIBITED_ERROR=0x10400, + U_IDNA_ERROR_START=0x10400, + U_IDNA_UNASSIGNED_ERROR, + U_IDNA_CHECK_BIDI_ERROR, + U_IDNA_STD3_ASCII_RULES_ERROR, + U_IDNA_ACE_PREFIX_ERROR, + U_IDNA_VERIFICATION_ERROR, + U_IDNA_LABEL_TOO_LONG_ERROR, + U_IDNA_ZERO_LENGTH_LABEL_ERROR, + U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR, + /* + * Aliases for StringPrep + */ + U_STRINGPREP_PROHIBITED_ERROR = U_IDNA_PROHIBITED_ERROR, + U_STRINGPREP_UNASSIGNED_ERROR = U_IDNA_UNASSIGNED_ERROR, + U_STRINGPREP_CHECK_BIDI_ERROR = U_IDNA_CHECK_BIDI_ERROR, + + /* + * Error codes in the range 0x10500-0x105ff are reserved for Plugin related error codes. + */ + U_PLUGIN_ERROR_START=0x10500, /**< Start of codes indicating plugin failures */ + U_PLUGIN_TOO_HIGH=0x10500, /**< The plugin's level is too high to be loaded right now. */ + U_PLUGIN_DIDNT_SET_LEVEL, /**< The plugin didn't call uplug_setPlugLevel in response to a QUERY */ + +} UErrorCode; + +/* Use the following to determine if an UErrorCode represents */ +/* operational success or failure. */ + +#ifdef __cplusplus + /** + * Does the error code indicate success? + * @stable ICU 2.0 + */ + static + inline UBool U_SUCCESS(UErrorCode code) { return (UBool)(code<=U_ZERO_ERROR); } + /** + * Does the error code indicate a failure? + * @stable ICU 2.0 + */ + static + inline UBool U_FAILURE(UErrorCode code) { return (UBool)(code>U_ZERO_ERROR); } +#else + /** + * Does the error code indicate success? + * @stable ICU 2.0 + */ +# define U_SUCCESS(x) ((x)<=U_ZERO_ERROR) + /** + * Does the error code indicate a failure? + * @stable ICU 2.0 + */ +# define U_FAILURE(x) ((x)>U_ZERO_ERROR) +#endif + +/** + * Return a string for a UErrorCode value. + * The string will be the same as the name of the error code constant + * in the UErrorCode enum above. + * @stable ICU 2.0 + */ +U_CAPI const char * U_EXPORT2 +u_errorName(UErrorCode code); + + +#endif /* _UTYPES */ + +// utrace.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* +* Copyright (C) 2003-2013, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: utrace.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2003aug06 +* created by: Markus W. Scherer +* +* Definitions for ICU tracing/logging. +* +*/ + +#ifndef __UTRACE_H__ +#define __UTRACE_H__ + +#include + +/** + * \file + * \brief C API: Definitions for ICU tracing/logging. + * + * This provides API for debugging the internals of ICU without the use of + * a traditional debugger. + * + * By default, tracing is disabled in ICU. If you need to debug ICU with + * tracing, please compile ICU with the --enable-tracing configure option. + */ + +U_CDECL_BEGIN + +/** + * Trace severity levels. Higher levels increase the verbosity of the trace output. + * @see utrace_setLevel + * @stable ICU 2.8 + */ +typedef enum UTraceLevel { + /** Disable all tracing @stable ICU 2.8*/ + UTRACE_OFF=-1, + /** Trace error conditions only @stable ICU 2.8*/ + UTRACE_ERROR=0, + /** Trace errors and warnings @stable ICU 2.8*/ + UTRACE_WARNING=3, + /** Trace opens and closes of ICU services @stable ICU 2.8*/ + UTRACE_OPEN_CLOSE=5, + /** Trace an intermediate number of ICU operations @stable ICU 2.8*/ + UTRACE_INFO=7, + /** Trace the maximum number of ICU operations @stable ICU 2.8*/ + UTRACE_VERBOSE=9 +} UTraceLevel; + +/** + * These are the ICU functions that will be traced when tracing is enabled. + * @stable ICU 2.8 + */ +typedef enum UTraceFunctionNumber { + UTRACE_FUNCTION_START=0, + UTRACE_U_INIT=UTRACE_FUNCTION_START, + UTRACE_U_CLEANUP, + + + UTRACE_CONVERSION_START=0x1000, + UTRACE_UCNV_OPEN=UTRACE_CONVERSION_START, + UTRACE_UCNV_OPEN_PACKAGE, + UTRACE_UCNV_OPEN_ALGORITHMIC, + UTRACE_UCNV_CLONE, + UTRACE_UCNV_CLOSE, + UTRACE_UCNV_FLUSH_CACHE, + UTRACE_UCNV_LOAD, + UTRACE_UCNV_UNLOAD, + + + UTRACE_COLLATION_START=0x2000, + UTRACE_UCOL_OPEN=UTRACE_COLLATION_START, + UTRACE_UCOL_CLOSE, + UTRACE_UCOL_STRCOLL, + UTRACE_UCOL_GET_SORTKEY, + UTRACE_UCOL_GETLOCALE, + UTRACE_UCOL_NEXTSORTKEYPART, + UTRACE_UCOL_STRCOLLITER, + UTRACE_UCOL_OPEN_FROM_SHORT_STRING, + UTRACE_UCOL_STRCOLLUTF8, /**< @stable ICU 50 */ + + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + + /** + * The lowest resource/data location. + * @stable ICU 65 + */ + UTRACE_UDATA_START=0x3000, + + /** + * Indicates that a value was read from a resource bundle. Provides three + * C-style strings to UTraceData: type, file name, and resource path. The + * possible types are: + * + * - "string" (a string value was accessed) + * - "binary" (a binary value was accessed) + * - "intvector" (a integer vector value was accessed) + * - "int" (a signed integer value was accessed) + * - "uint" (a unsigned integer value was accessed) + * - "get" (a path was loaded, but the value was not accessed) + * - "getalias" (a path was loaded, and an alias was resolved) + * + * @stable ICU 65 + */ + UTRACE_UDATA_RESOURCE=UTRACE_UDATA_START, + + /** + * Indicates that a resource bundle was opened. + * + * Provides one C-style string to UTraceData: file name. + * @stable ICU 65 + */ + UTRACE_UDATA_BUNDLE, + + /** + * Indicates that a data file was opened, but not *.res files. + * + * Provides one C-style string to UTraceData: file name. + * + * @stable ICU 65 + */ + UTRACE_UDATA_DATA_FILE, + + /** + * Indicates that a *.res file was opened. + * + * This differs from UTRACE_UDATA_BUNDLE because a res file is typically + * opened only once per application runtime, but the bundle corresponding + * to that res file may be opened many times. + * + * Provides one C-style string to UTraceData: file name. + * + * @stable ICU 65 + */ + UTRACE_UDATA_RES_FILE, + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + +} UTraceFunctionNumber; + +/** + * Setter for the trace level. + * @param traceLevel A UTraceLevel value. + * @stable ICU 2.8 + */ +U_CAPI void U_EXPORT2 +utrace_setLevel(int32_t traceLevel); + +/** + * Getter for the trace level. + * @return The UTraceLevel value being used by ICU. + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +utrace_getLevel(void); + +/* Trace function pointers types ----------------------------- */ + +/** + * Type signature for the trace function to be called when entering a function. + * @param context value supplied at the time the trace functions are set. + * @param fnNumber Enum value indicating the ICU function being entered. + * @stable ICU 2.8 + */ +typedef void U_CALLCONV +UTraceEntry(const void *context, int32_t fnNumber); + +/** + * Type signature for the trace function to be called when exiting from a function. + * @param context value supplied at the time the trace functions are set. + * @param fnNumber Enum value indicating the ICU function being exited. + * @param fmt A formatting string that describes the number and types + * of arguments included with the variable args. The fmt + * string has the same form as the utrace_vformat format + * string. + * @param args A variable arguments list. Contents are described by + * the fmt parameter. + * @see utrace_vformat + * @stable ICU 2.8 + */ +typedef void U_CALLCONV +UTraceExit(const void *context, int32_t fnNumber, + const char *fmt, va_list args); + +/** + * Type signature for the trace function to be called from within an ICU function + * to display data or messages. + * @param context value supplied at the time the trace functions are set. + * @param fnNumber Enum value indicating the ICU function being exited. + * @param level The current tracing level + * @param fmt A format string describing the tracing data that is supplied + * as variable args + * @param args The data being traced, passed as variable args. + * @stable ICU 2.8 + */ +typedef void U_CALLCONV +UTraceData(const void *context, int32_t fnNumber, int32_t level, + const char *fmt, va_list args); + +/** + * Set ICU Tracing functions. Installs application-provided tracing + * functions into ICU. After doing this, subsequent ICU operations + * will call back to the installed functions, providing a trace + * of the use of ICU. Passing a NULL pointer for a tracing function + * is allowed, and inhibits tracing action at points where that function + * would be called. + *

+ * Tracing and Threads: Tracing functions are global to a process, and + * will be called in response to ICU operations performed by any + * thread. If tracing of an individual thread is desired, the + * tracing functions must themselves filter by checking that the + * current thread is the desired thread. + * + * @param context an uninterpreted pointer. Whatever is passed in + * here will in turn be passed to each of the tracing + * functions UTraceEntry, UTraceExit and UTraceData. + * ICU does not use or alter this pointer. + * @param e Callback function to be called on entry to a + * a traced ICU function. + * @param x Callback function to be called on exit from a + * traced ICU function. + * @param d Callback function to be called from within a + * traced ICU function, for the purpose of providing + * data to the trace. + * + * @stable ICU 2.8 + */ +U_CAPI void U_EXPORT2 +utrace_setFunctions(const void *context, + UTraceEntry *e, UTraceExit *x, UTraceData *d); + +/** + * Get the currently installed ICU tracing functions. Note that a null function + * pointer will be returned if no trace function has been set. + * + * @param context The currently installed tracing context. + * @param e The currently installed UTraceEntry function. + * @param x The currently installed UTraceExit function. + * @param d The currently installed UTraceData function. + * @stable ICU 2.8 + */ +U_CAPI void U_EXPORT2 +utrace_getFunctions(const void **context, + UTraceEntry **e, UTraceExit **x, UTraceData **d); + + + +/* + * + * ICU trace format string syntax + * + * Format Strings are passed to UTraceData functions, and define the + * number and types of the trace data being passed on each call. + * + * The UTraceData function, which is supplied by the application, + * not by ICU, can either forward the trace data (passed via + * varargs) and the format string back to ICU for formatting into + * a displayable string, or it can interpret the format itself, + * and do as it wishes with the trace data. + * + * + * Goals for the format string + * - basic data output + * - easy to use for trace programmer + * - sufficient provision for data types for trace output readability + * - well-defined types and binary portable APIs + * + * Non-goals + * - printf compatibility + * - fancy formatting + * - argument reordering and other internationalization features + * + * ICU trace format strings contain plain text with argument inserts, + * much like standard printf format strings. + * Each insert begins with a '%', then optionally contains a 'v', + * then exactly one type character. + * Two '%' in a row represent a '%' instead of an insert. + * The trace format strings need not have \n at the end. + * + * + * Types + * ----- + * + * Type characters: + * - c A char character in the default codepage. + * - s A NUL-terminated char * string in the default codepage. + * - S A UChar * string. Requires two params, (ptr, length). Length=-1 for nul term. + * - b A byte (8-bit integer). + * - h A 16-bit integer. Also a 16 bit Unicode code unit. + * - d A 32-bit integer. Also a 20 bit Unicode code point value. + * - l A 64-bit integer. + * - p A data pointer. + * + * Vectors + * ------- + * + * If the 'v' is not specified, then one item of the specified type + * is passed in. + * If the 'v' (for "vector") is specified, then a vector of items of the + * specified type is passed in, via a pointer to the first item + * and an int32_t value for the length of the vector. + * Length==-1 means zero or NUL termination. Works for vectors of all types. + * + * Note: %vS is a vector of (UChar *) strings. The strings must + * be nul terminated as there is no way to provide a + * separate length parameter for each string. The length + * parameter (required for all vectors) is the number of + * strings, not the length of the strings. + * + * Examples + * -------- + * + * These examples show the parameters that will be passed to an application's + * UTraceData() function for various formats. + * + * - the precise formatting is up to the application! + * - the examples use type casts for arguments only to _show_ the types of + * arguments without needing variable declarations in the examples; + * the type casts will not be necessary in actual code + * + * UTraceDataFunc(context, fnNumber, level, + * "There is a character %c in the string %s.", // Format String + * (char)c, (const char *)s); // varargs parameters + * -> There is a character 0x42 'B' in the string "Bravo". + * + * UTraceDataFunc(context, fnNumber, level, + * "Vector of bytes %vb vector of chars %vc", + * (const uint8_t *)bytes, (int32_t)bytesLength, + * (const char *)chars, (int32_t)charsLength); + * -> Vector of bytes + * 42 63 64 3f [4] + * vector of chars + * "Bcd?"[4] + * + * UTraceDataFunc(context, fnNumber, level, + * "An int32_t %d and a whole bunch of them %vd", + * (int32_t)-5, (const int32_t *)ints, (int32_t)intsLength); + * -> An int32_t 0xfffffffb and a whole bunch of them + * fffffffb 00000005 0000010a [3] + * + */ + + + +/** + * Trace output Formatter. An application's UTraceData tracing functions may call + * back to this function to format the trace output in a + * human readable form. Note that a UTraceData function may choose + * to not format the data; it could, for example, save it in + * in the raw form it was received (more compact), leaving + * formatting for a later trace analysis tool. + * @param outBuf pointer to a buffer to receive the formatted output. Output + * will be nul terminated if there is space in the buffer - + * if the length of the requested output < the output buffer size. + * @param capacity Length of the output buffer. + * @param indent Number of spaces to indent the output. Intended to allow + * data displayed from nested functions to be indented for readability. + * @param fmt Format specification for the data to output + * @param args Data to be formatted. + * @return Length of formatted output, including the terminating NUL. + * If buffer capacity is insufficient, the required capacity is returned. + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +utrace_vformat(char *outBuf, int32_t capacity, + int32_t indent, const char *fmt, va_list args); + +/** + * Trace output Formatter. An application's UTraceData tracing functions may call + * this function to format any additional trace data, beyond that + * provided by default, in human readable form with the same + * formatting conventions used by utrace_vformat(). + * @param outBuf pointer to a buffer to receive the formatted output. Output + * will be nul terminated if there is space in the buffer - + * if the length of the requested output < the output buffer size. + * @param capacity Length of the output buffer. + * @param indent Number of spaces to indent the output. Intended to allow + * data displayed from nested functions to be indented for readability. + * @param fmt Format specification for the data to output + * @param ... Data to be formatted. + * @return Length of formatted output, including the terminating NUL. + * If buffer capacity is insufficient, the required capacity is returned. + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +utrace_format(char *outBuf, int32_t capacity, + int32_t indent, const char *fmt, ...); + + + +/* Trace function numbers --------------------------------------------------- */ + +/** + * Get the name of a function from its trace function number. + * + * @param fnNumber The trace number for an ICU function. + * @return The name string for the function. + * + * @see UTraceFunctionNumber + * @stable ICU 2.8 + */ +U_CAPI const char * U_EXPORT2 +utrace_functionName(int32_t fnNumber); + +U_CDECL_END + +#endif + +// ustringtrie.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* Copyright (C) 2010-2012, International Business Machines +* Corporation and others. All Rights Reserved. +******************************************************************************* +* file name: udicttrie.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2010dec17 +* created by: Markus W. Scherer +*/ + +#ifndef __USTRINGTRIE_H__ +#define __USTRINGTRIE_H__ + +/** + * \file + * \brief C API: Helper definitions for dictionary trie APIs. + */ + + + +/** + * Return values for BytesTrie::next(), UCharsTrie::next() and similar methods. + * @see USTRINGTRIE_MATCHES + * @see USTRINGTRIE_HAS_VALUE + * @see USTRINGTRIE_HAS_NEXT + * @stable ICU 4.8 + */ +enum UStringTrieResult { + /** + * The input unit(s) did not continue a matching string. + * Once current()/next() return USTRINGTRIE_NO_MATCH, + * all further calls to current()/next() will also return USTRINGTRIE_NO_MATCH, + * until the trie is reset to its original state or to a saved state. + * @stable ICU 4.8 + */ + USTRINGTRIE_NO_MATCH, + /** + * The input unit(s) continued a matching string + * but there is no value for the string so far. + * (It is a prefix of a longer string.) + * @stable ICU 4.8 + */ + USTRINGTRIE_NO_VALUE, + /** + * The input unit(s) continued a matching string + * and there is a value for the string so far. + * This value will be returned by getValue(). + * No further input byte/unit can continue a matching string. + * @stable ICU 4.8 + */ + USTRINGTRIE_FINAL_VALUE, + /** + * The input unit(s) continued a matching string + * and there is a value for the string so far. + * This value will be returned by getValue(). + * Another input byte/unit can continue a matching string. + * @stable ICU 4.8 + */ + USTRINGTRIE_INTERMEDIATE_VALUE +}; + +/** + * Same as (result!=USTRINGTRIE_NO_MATCH). + * @param result A result from BytesTrie::first(), UCharsTrie::next() etc. + * @return true if the input bytes/units so far are part of a matching string/byte sequence. + * @stable ICU 4.8 + */ +#define USTRINGTRIE_MATCHES(result) ((result)!=USTRINGTRIE_NO_MATCH) + +/** + * Equivalent to (result==USTRINGTRIE_INTERMEDIATE_VALUE || result==USTRINGTRIE_FINAL_VALUE) but + * this macro evaluates result exactly once. + * @param result A result from BytesTrie::first(), UCharsTrie::next() etc. + * @return true if there is a value for the input bytes/units so far. + * @see BytesTrie::getValue + * @see UCharsTrie::getValue + * @stable ICU 4.8 + */ +#define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE) + +/** + * Equivalent to (result==USTRINGTRIE_NO_VALUE || result==USTRINGTRIE_INTERMEDIATE_VALUE) but + * this macro evaluates result exactly once. + * @param result A result from BytesTrie::first(), UCharsTrie::next() etc. + * @return true if another input byte/unit can continue a matching string. + * @stable ICU 4.8 + */ +#define USTRINGTRIE_HAS_NEXT(result) ((result)&1) + +#endif /* __USTRINGTRIE_H__ */ + +// ushape.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* +* Copyright (C) 2000-2012, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* file name: ushape.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2000jun29 +* created by: Markus W. Scherer +*/ + +#ifndef __USHAPE_H__ +#define __USHAPE_H__ + + +/** + * \file + * \brief C API: Arabic shaping + * + */ + +/** + * Shape Arabic text on a character basis. + * + *

This function performs basic operations for "shaping" Arabic text. It is most + * useful for use with legacy data formats and legacy display technology + * (simple terminals). All operations are performed on Unicode characters.

+ * + *

Text-based shaping means that some character code points in the text are + * replaced by others depending on the context. It transforms one kind of text + * into another. In comparison, modern displays for Arabic text select + * appropriate, context-dependent font glyphs for each text element, which means + * that they transform text into a glyph vector.

+ * + *

Text transformations are necessary when modern display technology is not + * available or when text needs to be transformed to or from legacy formats that + * use "shaped" characters. Since the Arabic script is cursive, connecting + * adjacent letters to each other, computers select images for each letter based + * on the surrounding letters. This usually results in four images per Arabic + * letter: initial, middle, final, and isolated forms. In Unicode, on the other + * hand, letters are normally stored abstract, and a display system is expected + * to select the necessary glyphs. (This makes searching and other text + * processing easier because the same letter has only one code.) It is possible + * to mimic this with text transformations because there are characters in + * Unicode that are rendered as letters with a specific shape + * (or cursive connectivity). They were included for interoperability with + * legacy systems and codepages, and for unsophisticated display systems.

+ * + *

A second kind of text transformations is supported for Arabic digits: + * For compatibility with legacy codepages that only include European digits, + * it is possible to replace one set of digits by another, changing the + * character code points. These operations can be performed for either + * Arabic-Indic Digits (U+0660...U+0669) or Eastern (Extended) Arabic-Indic + * digits (U+06f0...U+06f9).

+ * + *

Some replacements may result in more or fewer characters (code points). + * By default, this means that the destination buffer may receive text with a + * length different from the source length. Some legacy systems rely on the + * length of the text to be constant. They expect extra spaces to be added + * or consumed either next to the affected character or at the end of the + * text.

+ * + *

For details about the available operations, see the description of the + * U_SHAPE_... options.

+ * + * @param source The input text. + * + * @param sourceLength The number of UChars in source. + * + * @param dest The destination buffer that will receive the results of the + * requested operations. It may be NULL only if + * destSize is 0. The source and destination must not + * overlap. + * + * @param destSize The size (capacity) of the destination buffer in UChars. + * If destSize is 0, then no output is produced, + * but the necessary buffer size is returned ("preflighting"). + * + * @param options This is a 32-bit set of flags that specify the operations + * that are performed on the input text. If no error occurs, + * then the result will always be written to the destination + * buffer. + * + * @param pErrorCode must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @return The number of UChars written to the destination buffer. + * If an error occurred, then no output was written, or it may be + * incomplete. If U_BUFFER_OVERFLOW_ERROR is set, then + * the return value indicates the necessary destination buffer size. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_shapeArabic(const UChar *source, int32_t sourceLength, + UChar *dest, int32_t destSize, + uint32_t options, + UErrorCode *pErrorCode); + +/** + * Memory option: allow the result to have a different length than the source. + * Affects: LamAlef options + * @stable ICU 2.0 + */ +#define U_SHAPE_LENGTH_GROW_SHRINK 0 + +/** + * Memory option: allow the result to have a different length than the source. + * Affects: LamAlef options + * This option is an alias to U_SHAPE_LENGTH_GROW_SHRINK + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_RESIZE 0 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces next to modified characters. + * @stable ICU 2.0 + */ +#define U_SHAPE_LENGTH_FIXED_SPACES_NEAR 1 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces next to modified characters. + * Affects: LamAlef options + * This option is an alias to U_SHAPE_LENGTH_FIXED_SPACES_NEAR + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_NEAR 1 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces at the end of the text. + * @stable ICU 2.0 + */ +#define U_SHAPE_LENGTH_FIXED_SPACES_AT_END 2 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces at the end of the text. + * Affects: LamAlef options + * This option is an alias to U_SHAPE_LENGTH_FIXED_SPACES_AT_END + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_END 2 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces at the beginning of the text. + * @stable ICU 2.0 + */ +#define U_SHAPE_LENGTH_FIXED_SPACES_AT_BEGINNING 3 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces at the beginning of the text. + * Affects: LamAlef options + * This option is an alias to U_SHAPE_LENGTH_FIXED_SPACES_AT_BEGINNING + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_BEGIN 3 + + +/** + * Memory option: the result must have the same length as the source. + * Shaping Mode: For each LAMALEF character found, expand LAMALEF using space at end. + * If there is no space at end, use spaces at beginning of the buffer. If there + * is no space at beginning of the buffer, use spaces at the near (i.e. the space + * after the LAMALEF character). + * If there are no spaces found, an error U_NO_SPACE_AVAILABLE (as defined in utypes.h) + * will be set in pErrorCode + * + * Deshaping Mode: Perform the same function as the flag equals U_SHAPE_LAMALEF_END. + * Affects: LamAlef options + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_AUTO 0x10000 + +/** Bit mask for memory options. @stable ICU 2.0 */ +#define U_SHAPE_LENGTH_MASK 0x10003 /* Changed old value 3 */ + + +/** + * Bit mask for LamAlef memory options. + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_MASK 0x10003 /* updated */ + +/** Direction indicator: the source is in logical (keyboard) order. @stable ICU 2.0 */ +#define U_SHAPE_TEXT_DIRECTION_LOGICAL 0 + +/** + * Direction indicator: + * the source is in visual RTL order, + * the rightmost displayed character stored first. + * This option is an alias to U_SHAPE_TEXT_DIRECTION_LOGICAL + * @stable ICU 4.2 + */ +#define U_SHAPE_TEXT_DIRECTION_VISUAL_RTL 0 + +/** + * Direction indicator: + * the source is in visual LTR order, + * the leftmost displayed character stored first. + * @stable ICU 2.0 + */ +#define U_SHAPE_TEXT_DIRECTION_VISUAL_LTR 4 + +/** Bit mask for direction indicators. @stable ICU 2.0 */ +#define U_SHAPE_TEXT_DIRECTION_MASK 4 + + +/** Letter shaping option: do not perform letter shaping. @stable ICU 2.0 */ +#define U_SHAPE_LETTERS_NOOP 0 + +/** Letter shaping option: replace abstract letter characters by "shaped" ones. @stable ICU 2.0 */ +#define U_SHAPE_LETTERS_SHAPE 8 + +/** Letter shaping option: replace "shaped" letter characters by abstract ones. @stable ICU 2.0 */ +#define U_SHAPE_LETTERS_UNSHAPE 0x10 + +/** + * Letter shaping option: replace abstract letter characters by "shaped" ones. + * The only difference with U_SHAPE_LETTERS_SHAPE is that Tashkeel letters + * are always "shaped" into the isolated form instead of the medial form + * (selecting code points from the Arabic Presentation Forms-B block). + * @stable ICU 2.0 + */ +#define U_SHAPE_LETTERS_SHAPE_TASHKEEL_ISOLATED 0x18 + + +/** Bit mask for letter shaping options. @stable ICU 2.0 */ +#define U_SHAPE_LETTERS_MASK 0x18 + + +/** Digit shaping option: do not perform digit shaping. @stable ICU 2.0 */ +#define U_SHAPE_DIGITS_NOOP 0 + +/** + * Digit shaping option: + * Replace European digits (U+0030...) by Arabic-Indic digits. + * @stable ICU 2.0 + */ +#define U_SHAPE_DIGITS_EN2AN 0x20 + +/** + * Digit shaping option: + * Replace Arabic-Indic digits by European digits (U+0030...). + * @stable ICU 2.0 + */ +#define U_SHAPE_DIGITS_AN2EN 0x40 + +/** + * Digit shaping option: + * Replace European digits (U+0030...) by Arabic-Indic digits if the most recent + * strongly directional character is an Arabic letter + * (u_charDirection() result U_RIGHT_TO_LEFT_ARABIC [AL]).
+ * The direction of "preceding" depends on the direction indicator option. + * For the first characters, the preceding strongly directional character + * (initial state) is assumed to be not an Arabic letter + * (it is U_LEFT_TO_RIGHT [L] or U_RIGHT_TO_LEFT [R]). + * @stable ICU 2.0 + */ +#define U_SHAPE_DIGITS_ALEN2AN_INIT_LR 0x60 + +/** + * Digit shaping option: + * Replace European digits (U+0030...) by Arabic-Indic digits if the most recent + * strongly directional character is an Arabic letter + * (u_charDirection() result U_RIGHT_TO_LEFT_ARABIC [AL]).
+ * The direction of "preceding" depends on the direction indicator option. + * For the first characters, the preceding strongly directional character + * (initial state) is assumed to be an Arabic letter. + * @stable ICU 2.0 + */ +#define U_SHAPE_DIGITS_ALEN2AN_INIT_AL 0x80 + +/** Not a valid option value. May be replaced by a new option. @stable ICU 2.0 */ +#define U_SHAPE_DIGITS_RESERVED 0xa0 + +/** Bit mask for digit shaping options. @stable ICU 2.0 */ +#define U_SHAPE_DIGITS_MASK 0xe0 + + +/** Digit type option: Use Arabic-Indic digits (U+0660...U+0669). @stable ICU 2.0 */ +#define U_SHAPE_DIGIT_TYPE_AN 0 + +/** Digit type option: Use Eastern (Extended) Arabic-Indic digits (U+06f0...U+06f9). @stable ICU 2.0 */ +#define U_SHAPE_DIGIT_TYPE_AN_EXTENDED 0x100 + +/** Not a valid option value. May be replaced by a new option. @stable ICU 2.0 */ +#define U_SHAPE_DIGIT_TYPE_RESERVED 0x200 + +/** Bit mask for digit type options. @stable ICU 2.0 */ +#define U_SHAPE_DIGIT_TYPE_MASK 0x300 /* I need to change this from 0x3f00 to 0x300 */ + +/** + * Tashkeel aggregation option: + * Replaces any combination of U+0651 with one of + * U+064C, U+064D, U+064E, U+064F, U+0650 with + * U+FC5E, U+FC5F, U+FC60, U+FC61, U+FC62 consecutively. + * @stable ICU 3.6 + */ +#define U_SHAPE_AGGREGATE_TASHKEEL 0x4000 +/** Tashkeel aggregation option: do not aggregate tashkeels. @stable ICU 3.6 */ +#define U_SHAPE_AGGREGATE_TASHKEEL_NOOP 0 +/** Bit mask for tashkeel aggregation. @stable ICU 3.6 */ +#define U_SHAPE_AGGREGATE_TASHKEEL_MASK 0x4000 + +/** + * Presentation form option: + * Don't replace Arabic Presentation Forms-A and Arabic Presentation Forms-B + * characters with 0+06xx characters, before shaping. + * @stable ICU 3.6 + */ +#define U_SHAPE_PRESERVE_PRESENTATION 0x8000 +/** Presentation form option: + * Replace Arabic Presentation Forms-A and Arabic Presentationo Forms-B with + * their unshaped correspondents in range 0+06xx, before shaping. + * @stable ICU 3.6 + */ +#define U_SHAPE_PRESERVE_PRESENTATION_NOOP 0 +/** Bit mask for preserve presentation form. @stable ICU 3.6 */ +#define U_SHAPE_PRESERVE_PRESENTATION_MASK 0x8000 + +/* Seen Tail option */ +/** + * Memory option: the result must have the same length as the source. + * Shaping mode: The SEEN family character will expand into two characters using space near + * the SEEN family character(i.e. the space after the character). + * If there are no spaces found, an error U_NO_SPACE_AVAILABLE (as defined in utypes.h) + * will be set in pErrorCode + * + * De-shaping mode: Any Seen character followed by Tail character will be + * replaced by one cell Seen and a space will replace the Tail. + * Affects: Seen options + * @stable ICU 4.2 + */ +#define U_SHAPE_SEEN_TWOCELL_NEAR 0x200000 + +/** + * Bit mask for Seen memory options. + * @stable ICU 4.2 + */ +#define U_SHAPE_SEEN_MASK 0x700000 + +/* YehHamza option */ +/** + * Memory option: the result must have the same length as the source. + * Shaping mode: The YEHHAMZA character will expand into two characters using space near it + * (i.e. the space after the character + * If there are no spaces found, an error U_NO_SPACE_AVAILABLE (as defined in utypes.h) + * will be set in pErrorCode + * + * De-shaping mode: Any Yeh (final or isolated) character followed by Hamza character will be + * replaced by one cell YehHamza and space will replace the Hamza. + * Affects: YehHamza options + * @stable ICU 4.2 + */ +#define U_SHAPE_YEHHAMZA_TWOCELL_NEAR 0x1000000 + + +/** + * Bit mask for YehHamza memory options. + * @stable ICU 4.2 + */ +#define U_SHAPE_YEHHAMZA_MASK 0x3800000 + +/* New Tashkeel options */ +/** + * Memory option: the result must have the same length as the source. + * Shaping mode: Tashkeel characters will be replaced by spaces. + * Spaces will be placed at beginning of the buffer + * + * De-shaping mode: N/A + * Affects: Tashkeel options + * @stable ICU 4.2 + */ +#define U_SHAPE_TASHKEEL_BEGIN 0x40000 + +/** + * Memory option: the result must have the same length as the source. + * Shaping mode: Tashkeel characters will be replaced by spaces. + * Spaces will be placed at end of the buffer + * + * De-shaping mode: N/A + * Affects: Tashkeel options + * @stable ICU 4.2 + */ +#define U_SHAPE_TASHKEEL_END 0x60000 + +/** + * Memory option: allow the result to have a different length than the source. + * Shaping mode: Tashkeel characters will be removed, buffer length will shrink. + * De-shaping mode: N/A + * + * Affect: Tashkeel options + * @stable ICU 4.2 + */ +#define U_SHAPE_TASHKEEL_RESIZE 0x80000 + +/** + * Memory option: the result must have the same length as the source. + * Shaping mode: Tashkeel characters will be replaced by Tatweel if it is connected to adjacent + * characters (i.e. shaped on Tatweel) or replaced by space if it is not connected. + * + * De-shaping mode: N/A + * Affects: YehHamza options + * @stable ICU 4.2 + */ +#define U_SHAPE_TASHKEEL_REPLACE_BY_TATWEEL 0xC0000 + +/** + * Bit mask for Tashkeel replacement with Space or Tatweel memory options. + * @stable ICU 4.2 + */ +#define U_SHAPE_TASHKEEL_MASK 0xE0000 + + +/* Space location Control options */ +/** + * This option affect the meaning of BEGIN and END options. if this option is not used the default + * for BEGIN and END will be as following: + * The Default (for both Visual LTR, Visual RTL and Logical Text) + * 1. BEGIN always refers to the start address of physical memory. + * 2. END always refers to the end address of physical memory. + * + * If this option is used it will swap the meaning of BEGIN and END only for Visual LTR text. + * + * The effect on BEGIN and END Memory Options will be as following: + * A. BEGIN For Visual LTR text: This will be the beginning (right side) of the visual text( + * corresponding to the physical memory address end for Visual LTR text, Same as END in + * default behavior) + * B. BEGIN For Logical text: Same as BEGIN in default behavior. + * C. END For Visual LTR text: This will be the end (left side) of the visual text (corresponding + * to the physical memory address beginning for Visual LTR text, Same as BEGIN in default behavior. + * D. END For Logical text: Same as END in default behavior). + * Affects: All LamAlef BEGIN, END and AUTO options. + * @stable ICU 4.2 + */ +#define U_SHAPE_SPACES_RELATIVE_TO_TEXT_BEGIN_END 0x4000000 + +/** + * Bit mask for swapping BEGIN and END for Visual LTR text + * @stable ICU 4.2 + */ +#define U_SHAPE_SPACES_RELATIVE_TO_TEXT_MASK 0x4000000 + +/** + * If this option is used, shaping will use the new Unicode code point for TAIL (i.e. 0xFE73). + * If this option is not specified (Default), old unofficial Unicode TAIL code point is used (i.e. 0x200B) + * De-shaping will not use this option as it will always search for both the new Unicode code point for the + * TAIL (i.e. 0xFE73) or the old unofficial Unicode TAIL code point (i.e. 0x200B) and de-shape the + * Seen-Family letter accordingly. + * + * Shaping Mode: Only shaping. + * De-shaping Mode: N/A. + * Affects: All Seen options + * @stable ICU 4.8 + */ +#define U_SHAPE_TAIL_NEW_UNICODE 0x8000000 + +/** + * Bit mask for new Unicode Tail option + * @stable ICU 4.8 + */ +#define U_SHAPE_TAIL_TYPE_MASK 0x8000000 + +#endif + +// uscript.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* + ********************************************************************** + * Copyright (C) 1997-2016, International Business Machines + * Corporation and others. All Rights Reserved. + ********************************************************************** + * + * File USCRIPT.H + * + * Modification History: + * + * Date Name Description + * 07/06/2001 Ram Creation. + ****************************************************************************** + */ + +#ifndef USCRIPT_H +#define USCRIPT_H + +/** + * \file + * \brief C API: Unicode Script Information + */ + +/** + * Constants for ISO 15924 script codes. + * + * The current set of script code constants supports at least all scripts + * that are encoded in the version of Unicode which ICU currently supports. + * The names of the constants are usually derived from the + * Unicode script property value aliases. + * See UAX #24 Unicode Script Property (http://www.unicode.org/reports/tr24/) + * and http://www.unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt . + * + * In addition, constants for many ISO 15924 script codes + * are included, for use with language tags, CLDR data, and similar. + * Some of those codes are not used in the Unicode Character Database (UCD). + * For example, there are no characters that have a UCD script property value of + * Hans or Hant. All Han ideographs have the Hani script property value in Unicode. + * + * Private-use codes Qaaa..Qabx are not included, except as used in the UCD or in CLDR. + * + * Starting with ICU 55, script codes are only added when their scripts + * have been or will certainly be encoded in Unicode, + * and have been assigned Unicode script property value aliases, + * to ensure that their script names are stable and match the names of the constants. + * Script codes like Latf and Aran that are not subject to separate encoding + * may be added at any time. + * + * @stable ICU 2.2 + */ +typedef enum UScriptCode { + /* + * Note: UScriptCode constants and their ISO script code comments + * are parsed by preparseucd.py. + * It matches lines like + * USCRIPT_ = , / * * / + */ + + /** @stable ICU 2.2 */ + USCRIPT_INVALID_CODE = -1, + /** @stable ICU 2.2 */ + USCRIPT_COMMON = 0, /* Zyyy */ + /** @stable ICU 2.2 */ + USCRIPT_INHERITED = 1, /* Zinh */ /* "Code for inherited script", for non-spacing combining marks; also Qaai */ + /** @stable ICU 2.2 */ + USCRIPT_ARABIC = 2, /* Arab */ + /** @stable ICU 2.2 */ + USCRIPT_ARMENIAN = 3, /* Armn */ + /** @stable ICU 2.2 */ + USCRIPT_BENGALI = 4, /* Beng */ + /** @stable ICU 2.2 */ + USCRIPT_BOPOMOFO = 5, /* Bopo */ + /** @stable ICU 2.2 */ + USCRIPT_CHEROKEE = 6, /* Cher */ + /** @stable ICU 2.2 */ + USCRIPT_COPTIC = 7, /* Copt */ + /** @stable ICU 2.2 */ + USCRIPT_CYRILLIC = 8, /* Cyrl */ + /** @stable ICU 2.2 */ + USCRIPT_DESERET = 9, /* Dsrt */ + /** @stable ICU 2.2 */ + USCRIPT_DEVANAGARI = 10, /* Deva */ + /** @stable ICU 2.2 */ + USCRIPT_ETHIOPIC = 11, /* Ethi */ + /** @stable ICU 2.2 */ + USCRIPT_GEORGIAN = 12, /* Geor */ + /** @stable ICU 2.2 */ + USCRIPT_GOTHIC = 13, /* Goth */ + /** @stable ICU 2.2 */ + USCRIPT_GREEK = 14, /* Grek */ + /** @stable ICU 2.2 */ + USCRIPT_GUJARATI = 15, /* Gujr */ + /** @stable ICU 2.2 */ + USCRIPT_GURMUKHI = 16, /* Guru */ + /** @stable ICU 2.2 */ + USCRIPT_HAN = 17, /* Hani */ + /** @stable ICU 2.2 */ + USCRIPT_HANGUL = 18, /* Hang */ + /** @stable ICU 2.2 */ + USCRIPT_HEBREW = 19, /* Hebr */ + /** @stable ICU 2.2 */ + USCRIPT_HIRAGANA = 20, /* Hira */ + /** @stable ICU 2.2 */ + USCRIPT_KANNADA = 21, /* Knda */ + /** @stable ICU 2.2 */ + USCRIPT_KATAKANA = 22, /* Kana */ + /** @stable ICU 2.2 */ + USCRIPT_KHMER = 23, /* Khmr */ + /** @stable ICU 2.2 */ + USCRIPT_LAO = 24, /* Laoo */ + /** @stable ICU 2.2 */ + USCRIPT_LATIN = 25, /* Latn */ + /** @stable ICU 2.2 */ + USCRIPT_MALAYALAM = 26, /* Mlym */ + /** @stable ICU 2.2 */ + USCRIPT_MONGOLIAN = 27, /* Mong */ + /** @stable ICU 2.2 */ + USCRIPT_MYANMAR = 28, /* Mymr */ + /** @stable ICU 2.2 */ + USCRIPT_OGHAM = 29, /* Ogam */ + /** @stable ICU 2.2 */ + USCRIPT_OLD_ITALIC = 30, /* Ital */ + /** @stable ICU 2.2 */ + USCRIPT_ORIYA = 31, /* Orya */ + /** @stable ICU 2.2 */ + USCRIPT_RUNIC = 32, /* Runr */ + /** @stable ICU 2.2 */ + USCRIPT_SINHALA = 33, /* Sinh */ + /** @stable ICU 2.2 */ + USCRIPT_SYRIAC = 34, /* Syrc */ + /** @stable ICU 2.2 */ + USCRIPT_TAMIL = 35, /* Taml */ + /** @stable ICU 2.2 */ + USCRIPT_TELUGU = 36, /* Telu */ + /** @stable ICU 2.2 */ + USCRIPT_THAANA = 37, /* Thaa */ + /** @stable ICU 2.2 */ + USCRIPT_THAI = 38, /* Thai */ + /** @stable ICU 2.2 */ + USCRIPT_TIBETAN = 39, /* Tibt */ + /** Canadian_Aboriginal script. @stable ICU 2.6 */ + USCRIPT_CANADIAN_ABORIGINAL = 40, /* Cans */ + /** Canadian_Aboriginal script (alias). @stable ICU 2.2 */ + USCRIPT_UCAS = USCRIPT_CANADIAN_ABORIGINAL, + /** @stable ICU 2.2 */ + USCRIPT_YI = 41, /* Yiii */ + /* New scripts in Unicode 3.2 */ + /** @stable ICU 2.2 */ + USCRIPT_TAGALOG = 42, /* Tglg */ + /** @stable ICU 2.2 */ + USCRIPT_HANUNOO = 43, /* Hano */ + /** @stable ICU 2.2 */ + USCRIPT_BUHID = 44, /* Buhd */ + /** @stable ICU 2.2 */ + USCRIPT_TAGBANWA = 45, /* Tagb */ + + /* New scripts in Unicode 4 */ + /** @stable ICU 2.6 */ + USCRIPT_BRAILLE = 46, /* Brai */ + /** @stable ICU 2.6 */ + USCRIPT_CYPRIOT = 47, /* Cprt */ + /** @stable ICU 2.6 */ + USCRIPT_LIMBU = 48, /* Limb */ + /** @stable ICU 2.6 */ + USCRIPT_LINEAR_B = 49, /* Linb */ + /** @stable ICU 2.6 */ + USCRIPT_OSMANYA = 50, /* Osma */ + /** @stable ICU 2.6 */ + USCRIPT_SHAVIAN = 51, /* Shaw */ + /** @stable ICU 2.6 */ + USCRIPT_TAI_LE = 52, /* Tale */ + /** @stable ICU 2.6 */ + USCRIPT_UGARITIC = 53, /* Ugar */ + + /** New script code in Unicode 4.0.1 @stable ICU 3.0 */ + USCRIPT_KATAKANA_OR_HIRAGANA = 54,/*Hrkt */ + + /* New scripts in Unicode 4.1 */ + /** @stable ICU 3.4 */ + USCRIPT_BUGINESE = 55, /* Bugi */ + /** @stable ICU 3.4 */ + USCRIPT_GLAGOLITIC = 56, /* Glag */ + /** @stable ICU 3.4 */ + USCRIPT_KHAROSHTHI = 57, /* Khar */ + /** @stable ICU 3.4 */ + USCRIPT_SYLOTI_NAGRI = 58, /* Sylo */ + /** @stable ICU 3.4 */ + USCRIPT_NEW_TAI_LUE = 59, /* Talu */ + /** @stable ICU 3.4 */ + USCRIPT_TIFINAGH = 60, /* Tfng */ + /** @stable ICU 3.4 */ + USCRIPT_OLD_PERSIAN = 61, /* Xpeo */ + + /* New script codes from Unicode and ISO 15924 */ + /** @stable ICU 3.6 */ + USCRIPT_BALINESE = 62, /* Bali */ + /** @stable ICU 3.6 */ + USCRIPT_BATAK = 63, /* Batk */ + /** @stable ICU 3.6 */ + USCRIPT_BLISSYMBOLS = 64, /* Blis */ + /** @stable ICU 3.6 */ + USCRIPT_BRAHMI = 65, /* Brah */ + /** @stable ICU 3.6 */ + USCRIPT_CHAM = 66, /* Cham */ + /** @stable ICU 3.6 */ + USCRIPT_CIRTH = 67, /* Cirt */ + /** @stable ICU 3.6 */ + USCRIPT_OLD_CHURCH_SLAVONIC_CYRILLIC = 68, /* Cyrs */ + /** @stable ICU 3.6 */ + USCRIPT_DEMOTIC_EGYPTIAN = 69, /* Egyd */ + /** @stable ICU 3.6 */ + USCRIPT_HIERATIC_EGYPTIAN = 70, /* Egyh */ + /** @stable ICU 3.6 */ + USCRIPT_EGYPTIAN_HIEROGLYPHS = 71, /* Egyp */ + /** @stable ICU 3.6 */ + USCRIPT_KHUTSURI = 72, /* Geok */ + /** @stable ICU 3.6 */ + USCRIPT_SIMPLIFIED_HAN = 73, /* Hans */ + /** @stable ICU 3.6 */ + USCRIPT_TRADITIONAL_HAN = 74, /* Hant */ + /** @stable ICU 3.6 */ + USCRIPT_PAHAWH_HMONG = 75, /* Hmng */ + /** @stable ICU 3.6 */ + USCRIPT_OLD_HUNGARIAN = 76, /* Hung */ + /** @stable ICU 3.6 */ + USCRIPT_HARAPPAN_INDUS = 77, /* Inds */ + /** @stable ICU 3.6 */ + USCRIPT_JAVANESE = 78, /* Java */ + /** @stable ICU 3.6 */ + USCRIPT_KAYAH_LI = 79, /* Kali */ + /** @stable ICU 3.6 */ + USCRIPT_LATIN_FRAKTUR = 80, /* Latf */ + /** @stable ICU 3.6 */ + USCRIPT_LATIN_GAELIC = 81, /* Latg */ + /** @stable ICU 3.6 */ + USCRIPT_LEPCHA = 82, /* Lepc */ + /** @stable ICU 3.6 */ + USCRIPT_LINEAR_A = 83, /* Lina */ + /** @stable ICU 4.6 */ + USCRIPT_MANDAIC = 84, /* Mand */ + /** @stable ICU 3.6 */ + USCRIPT_MANDAEAN = USCRIPT_MANDAIC, + /** @stable ICU 3.6 */ + USCRIPT_MAYAN_HIEROGLYPHS = 85, /* Maya */ + /** @stable ICU 4.6 */ + USCRIPT_MEROITIC_HIEROGLYPHS = 86, /* Mero */ + /** @stable ICU 3.6 */ + USCRIPT_MEROITIC = USCRIPT_MEROITIC_HIEROGLYPHS, + /** @stable ICU 3.6 */ + USCRIPT_NKO = 87, /* Nkoo */ + /** @stable ICU 3.6 */ + USCRIPT_ORKHON = 88, /* Orkh */ + /** @stable ICU 3.6 */ + USCRIPT_OLD_PERMIC = 89, /* Perm */ + /** @stable ICU 3.6 */ + USCRIPT_PHAGS_PA = 90, /* Phag */ + /** @stable ICU 3.6 */ + USCRIPT_PHOENICIAN = 91, /* Phnx */ + /** @stable ICU 52 */ + USCRIPT_MIAO = 92, /* Plrd */ + /** @stable ICU 3.6 */ + USCRIPT_PHONETIC_POLLARD = USCRIPT_MIAO, + /** @stable ICU 3.6 */ + USCRIPT_RONGORONGO = 93, /* Roro */ + /** @stable ICU 3.6 */ + USCRIPT_SARATI = 94, /* Sara */ + /** @stable ICU 3.6 */ + USCRIPT_ESTRANGELO_SYRIAC = 95, /* Syre */ + /** @stable ICU 3.6 */ + USCRIPT_WESTERN_SYRIAC = 96, /* Syrj */ + /** @stable ICU 3.6 */ + USCRIPT_EASTERN_SYRIAC = 97, /* Syrn */ + /** @stable ICU 3.6 */ + USCRIPT_TENGWAR = 98, /* Teng */ + /** @stable ICU 3.6 */ + USCRIPT_VAI = 99, /* Vaii */ + /** @stable ICU 3.6 */ + USCRIPT_VISIBLE_SPEECH = 100,/* Visp */ + /** @stable ICU 3.6 */ + USCRIPT_CUNEIFORM = 101,/* Xsux */ + /** @stable ICU 3.6 */ + USCRIPT_UNWRITTEN_LANGUAGES = 102,/* Zxxx */ + /** @stable ICU 3.6 */ + USCRIPT_UNKNOWN = 103,/* Zzzz */ /* Unknown="Code for uncoded script", for unassigned code points */ + + /** @stable ICU 3.8 */ + USCRIPT_CARIAN = 104,/* Cari */ + /** @stable ICU 3.8 */ + USCRIPT_JAPANESE = 105,/* Jpan */ + /** @stable ICU 3.8 */ + USCRIPT_LANNA = 106,/* Lana */ + /** @stable ICU 3.8 */ + USCRIPT_LYCIAN = 107,/* Lyci */ + /** @stable ICU 3.8 */ + USCRIPT_LYDIAN = 108,/* Lydi */ + /** @stable ICU 3.8 */ + USCRIPT_OL_CHIKI = 109,/* Olck */ + /** @stable ICU 3.8 */ + USCRIPT_REJANG = 110,/* Rjng */ + /** @stable ICU 3.8 */ + USCRIPT_SAURASHTRA = 111,/* Saur */ + /** Sutton SignWriting @stable ICU 3.8 */ + USCRIPT_SIGN_WRITING = 112,/* Sgnw */ + /** @stable ICU 3.8 */ + USCRIPT_SUNDANESE = 113,/* Sund */ + /** @stable ICU 3.8 */ + USCRIPT_MOON = 114,/* Moon */ + /** @stable ICU 3.8 */ + USCRIPT_MEITEI_MAYEK = 115,/* Mtei */ + + /** @stable ICU 4.0 */ + USCRIPT_IMPERIAL_ARAMAIC = 116,/* Armi */ + /** @stable ICU 4.0 */ + USCRIPT_AVESTAN = 117,/* Avst */ + /** @stable ICU 4.0 */ + USCRIPT_CHAKMA = 118,/* Cakm */ + /** @stable ICU 4.0 */ + USCRIPT_KOREAN = 119,/* Kore */ + /** @stable ICU 4.0 */ + USCRIPT_KAITHI = 120,/* Kthi */ + /** @stable ICU 4.0 */ + USCRIPT_MANICHAEAN = 121,/* Mani */ + /** @stable ICU 4.0 */ + USCRIPT_INSCRIPTIONAL_PAHLAVI = 122,/* Phli */ + /** @stable ICU 4.0 */ + USCRIPT_PSALTER_PAHLAVI = 123,/* Phlp */ + /** @stable ICU 4.0 */ + USCRIPT_BOOK_PAHLAVI = 124,/* Phlv */ + /** @stable ICU 4.0 */ + USCRIPT_INSCRIPTIONAL_PARTHIAN = 125,/* Prti */ + /** @stable ICU 4.0 */ + USCRIPT_SAMARITAN = 126,/* Samr */ + /** @stable ICU 4.0 */ + USCRIPT_TAI_VIET = 127,/* Tavt */ + /** @stable ICU 4.0 */ + USCRIPT_MATHEMATICAL_NOTATION = 128,/* Zmth */ + /** @stable ICU 4.0 */ + USCRIPT_SYMBOLS = 129,/* Zsym */ + + /** @stable ICU 4.4 */ + USCRIPT_BAMUM = 130,/* Bamu */ + /** @stable ICU 4.4 */ + USCRIPT_LISU = 131,/* Lisu */ + /** @stable ICU 4.4 */ + USCRIPT_NAKHI_GEBA = 132,/* Nkgb */ + /** @stable ICU 4.4 */ + USCRIPT_OLD_SOUTH_ARABIAN = 133,/* Sarb */ + + /** @stable ICU 4.6 */ + USCRIPT_BASSA_VAH = 134,/* Bass */ + /** @stable ICU 54 */ + USCRIPT_DUPLOYAN = 135,/* Dupl */ + /** @stable ICU 4.6 */ + USCRIPT_ELBASAN = 136,/* Elba */ + /** @stable ICU 4.6 */ + USCRIPT_GRANTHA = 137,/* Gran */ + /** @stable ICU 4.6 */ + USCRIPT_KPELLE = 138,/* Kpel */ + /** @stable ICU 4.6 */ + USCRIPT_LOMA = 139,/* Loma */ + /** Mende Kikakui @stable ICU 4.6 */ + USCRIPT_MENDE = 140,/* Mend */ + /** @stable ICU 4.6 */ + USCRIPT_MEROITIC_CURSIVE = 141,/* Merc */ + /** @stable ICU 4.6 */ + USCRIPT_OLD_NORTH_ARABIAN = 142,/* Narb */ + /** @stable ICU 4.6 */ + USCRIPT_NABATAEAN = 143,/* Nbat */ + /** @stable ICU 4.6 */ + USCRIPT_PALMYRENE = 144,/* Palm */ + /** @stable ICU 54 */ + USCRIPT_KHUDAWADI = 145,/* Sind */ + /** @stable ICU 4.6 */ + USCRIPT_SINDHI = USCRIPT_KHUDAWADI, + /** @stable ICU 4.6 */ + USCRIPT_WARANG_CITI = 146,/* Wara */ + + /** @stable ICU 4.8 */ + USCRIPT_AFAKA = 147,/* Afak */ + /** @stable ICU 4.8 */ + USCRIPT_JURCHEN = 148,/* Jurc */ + /** @stable ICU 4.8 */ + USCRIPT_MRO = 149,/* Mroo */ + /** @stable ICU 4.8 */ + USCRIPT_NUSHU = 150,/* Nshu */ + /** @stable ICU 4.8 */ + USCRIPT_SHARADA = 151,/* Shrd */ + /** @stable ICU 4.8 */ + USCRIPT_SORA_SOMPENG = 152,/* Sora */ + /** @stable ICU 4.8 */ + USCRIPT_TAKRI = 153,/* Takr */ + /** @stable ICU 4.8 */ + USCRIPT_TANGUT = 154,/* Tang */ + /** @stable ICU 4.8 */ + USCRIPT_WOLEAI = 155,/* Wole */ + + /** @stable ICU 49 */ + USCRIPT_ANATOLIAN_HIEROGLYPHS = 156,/* Hluw */ + /** @stable ICU 49 */ + USCRIPT_KHOJKI = 157,/* Khoj */ + /** @stable ICU 49 */ + USCRIPT_TIRHUTA = 158,/* Tirh */ + + /** @stable ICU 52 */ + USCRIPT_CAUCASIAN_ALBANIAN = 159,/* Aghb */ + /** @stable ICU 52 */ + USCRIPT_MAHAJANI = 160,/* Mahj */ + + /** @stable ICU 54 */ + USCRIPT_AHOM = 161,/* Ahom */ + /** @stable ICU 54 */ + USCRIPT_HATRAN = 162,/* Hatr */ + /** @stable ICU 54 */ + USCRIPT_MODI = 163,/* Modi */ + /** @stable ICU 54 */ + USCRIPT_MULTANI = 164,/* Mult */ + /** @stable ICU 54 */ + USCRIPT_PAU_CIN_HAU = 165,/* Pauc */ + /** @stable ICU 54 */ + USCRIPT_SIDDHAM = 166,/* Sidd */ + + /** @stable ICU 58 */ + USCRIPT_ADLAM = 167,/* Adlm */ + /** @stable ICU 58 */ + USCRIPT_BHAIKSUKI = 168,/* Bhks */ + /** @stable ICU 58 */ + USCRIPT_MARCHEN = 169,/* Marc */ + /** @stable ICU 58 */ + USCRIPT_NEWA = 170,/* Newa */ + /** @stable ICU 58 */ + USCRIPT_OSAGE = 171,/* Osge */ + + /** @stable ICU 58 */ + USCRIPT_HAN_WITH_BOPOMOFO = 172,/* Hanb */ + /** @stable ICU 58 */ + USCRIPT_JAMO = 173,/* Jamo */ + /** @stable ICU 58 */ + USCRIPT_SYMBOLS_EMOJI = 174,/* Zsye */ + + /** @stable ICU 60 */ + USCRIPT_MASARAM_GONDI = 175,/* Gonm */ + /** @stable ICU 60 */ + USCRIPT_SOYOMBO = 176,/* Soyo */ + /** @stable ICU 60 */ + USCRIPT_ZANABAZAR_SQUARE = 177,/* Zanb */ + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) + /** @stable ICU 62 */ + USCRIPT_DOGRA = 178,/* Dogr */ + /** @stable ICU 62 */ + USCRIPT_GUNJALA_GONDI = 179,/* Gong */ + /** @stable ICU 62 */ + USCRIPT_MAKASAR = 180,/* Maka */ + /** @stable ICU 62 */ + USCRIPT_MEDEFAIDRIN = 181,/* Medf */ + /** @stable ICU 62 */ + USCRIPT_HANIFI_ROHINGYA = 182,/* Rohg */ + /** @stable ICU 62 */ + USCRIPT_SOGDIAN = 183,/* Sogd */ + /** @stable ICU 62 */ + USCRIPT_OLD_SOGDIAN = 184,/* Sogo */ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) + /** @stable ICU 64 */ + USCRIPT_ELYMAIC = 185,/* Elym */ + /** @stable ICU 64 */ + USCRIPT_NYIAKENG_PUACHUE_HMONG = 186,/* Hmnp */ + /** @stable ICU 64 */ + USCRIPT_NANDINAGARI = 187,/* Nand */ + /** @stable ICU 64 */ + USCRIPT_WANCHO = 188,/* Wcho */ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_VB) + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + /** @stable ICU 66 */ + USCRIPT_CHORASMIAN = 189,/* Chrs */ + /** @stable ICU 66 */ + USCRIPT_DIVES_AKURU = 190,/* Diak */ + /** @stable ICU 66 */ + USCRIPT_KHITAN_SMALL_SCRIPT = 191,/* Kits */ + /** @stable ICU 66 */ + USCRIPT_YEZIDI = 192,/* Yezi */ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +} UScriptCode; + +/** + * Gets the script codes associated with the given locale or ISO 15924 abbreviation or name. + * Fills in USCRIPT_MALAYALAM given "Malayam" OR "Mlym". + * Fills in USCRIPT_LATIN given "en" OR "en_US" + * If the required capacity is greater than the capacity of the destination buffer, + * then the error code is set to U_BUFFER_OVERFLOW_ERROR and the required capacity is returned. + * + *

Note: To search by short or long script alias only, use + * u_getPropertyValueEnum(UCHAR_SCRIPT, alias) instead. That does + * a fast lookup with no access of the locale data. + * + * @param nameOrAbbrOrLocale name of the script, as given in + * PropertyValueAliases.txt, or ISO 15924 code or locale + * @param fillIn the UScriptCode buffer to fill in the script code + * @param capacity the capacity (size) of UScriptCode buffer passed in. + * @param err the error status code. + * @return The number of script codes filled in the buffer passed in + * @stable ICU 2.4 + */ +U_CAPI int32_t U_EXPORT2 +uscript_getCode(const char* nameOrAbbrOrLocale,UScriptCode* fillIn,int32_t capacity,UErrorCode *err); + +/** + * Returns the long Unicode script name, if there is one. + * Otherwise returns the 4-letter ISO 15924 script code. + * Returns "Malayam" given USCRIPT_MALAYALAM. + * + * @param scriptCode UScriptCode enum + * @return long script name as given in PropertyValueAliases.txt, or the 4-letter code, + * or NULL if scriptCode is invalid + * @stable ICU 2.4 + */ +U_CAPI const char* U_EXPORT2 +uscript_getName(UScriptCode scriptCode); + +/** + * Returns the 4-letter ISO 15924 script code, + * which is the same as the short Unicode script name if Unicode has names for the script. + * Returns "Mlym" given USCRIPT_MALAYALAM. + * + * @param scriptCode UScriptCode enum + * @return short script name (4-letter code), or NULL if scriptCode is invalid + * @stable ICU 2.4 + */ +U_CAPI const char* U_EXPORT2 +uscript_getShortName(UScriptCode scriptCode); + +/** + * Gets the script code associated with the given codepoint. + * Returns USCRIPT_MALAYALAM given 0x0D02 + * @param codepoint UChar32 codepoint + * @param err the error status code. + * @return The UScriptCode, or 0 if codepoint is invalid + * @stable ICU 2.4 + */ +U_CAPI UScriptCode U_EXPORT2 +uscript_getScript(UChar32 codepoint, UErrorCode *err); + +/** + * Do the Script_Extensions of code point c contain script sc? + * If c does not have explicit Script_Extensions, then this tests whether + * c has the Script property value sc. + * + * Some characters are commonly used in multiple scripts. + * For more information, see UAX #24: http://www.unicode.org/reports/tr24/. + * @param c code point + * @param sc script code + * @return true if sc is in Script_Extensions(c) + * @stable ICU 49 + */ +U_CAPI UBool U_EXPORT2 +uscript_hasScript(UChar32 c, UScriptCode sc); + +/** + * Writes code point c's Script_Extensions as a list of UScriptCode values + * to the output scripts array and returns the number of script codes. + * - If c does have Script_Extensions, then the Script property value + * (normally Common or Inherited) is not included. + * - If c does not have Script_Extensions, then the one Script code is written to the output array. + * - If c is not a valid code point, then the one USCRIPT_UNKNOWN code is written. + * In other words, if the return value is 1, + * then the output array contains exactly c's single Script code. + * If the return value is n>=2, then the output array contains c's n Script_Extensions script codes. + * + * Some characters are commonly used in multiple scripts. + * For more information, see UAX #24: http://www.unicode.org/reports/tr24/. + * + * If there are more than capacity script codes to be written, then + * U_BUFFER_OVERFLOW_ERROR is set and the number of Script_Extensions is returned. + * (Usual ICU buffer handling behavior.) + * + * @param c code point + * @param scripts output script code array + * @param capacity capacity of the scripts array + * @param errorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return number of script codes in c's Script_Extensions, or 1 for the single Script value, + * written to scripts unless U_BUFFER_OVERFLOW_ERROR indicates insufficient capacity + * @stable ICU 49 + */ +U_CAPI int32_t U_EXPORT2 +uscript_getScriptExtensions(UChar32 c, + UScriptCode *scripts, int32_t capacity, + UErrorCode *errorCode); + +/** + * Script usage constants. + * See UAX #31 Unicode Identifier and Pattern Syntax. + * http://www.unicode.org/reports/tr31/#Table_Candidate_Characters_for_Exclusion_from_Identifiers + * + * @stable ICU 51 + */ +typedef enum UScriptUsage { + /** Not encoded in Unicode. @stable ICU 51 */ + USCRIPT_USAGE_NOT_ENCODED, + /** Unknown script usage. @stable ICU 51 */ + USCRIPT_USAGE_UNKNOWN, + /** Candidate for Exclusion from Identifiers. @stable ICU 51 */ + USCRIPT_USAGE_EXCLUDED, + /** Limited Use script. @stable ICU 51 */ + USCRIPT_USAGE_LIMITED_USE, + /** Aspirational Use script. @stable ICU 51 */ + USCRIPT_USAGE_ASPIRATIONAL, + /** Recommended script. @stable ICU 51 */ + USCRIPT_USAGE_RECOMMENDED +} UScriptUsage; + +/** + * Writes the script sample character string. + * This string normally consists of one code point but might be longer. + * The string is empty if the script is not encoded. + * + * @param script script code + * @param dest output string array + * @param capacity number of UChars in the dest array + * @param pErrorCode standard ICU in/out error code, must pass U_SUCCESS() on input + * @return the string length, even if U_BUFFER_OVERFLOW_ERROR + * @stable ICU 51 + */ +U_CAPI int32_t U_EXPORT2 +uscript_getSampleString(UScriptCode script, UChar *dest, int32_t capacity, UErrorCode *pErrorCode); + + +/** + * Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax. + * Returns USCRIPT_USAGE_NOT_ENCODED if the script is not encoded in Unicode. + * + * @param script script code + * @return script usage + * @see UScriptUsage + * @stable ICU 51 + */ +U_CAPI UScriptUsage U_EXPORT2 +uscript_getUsage(UScriptCode script); + +/** + * Returns true if the script is written right-to-left. + * For example, Arab and Hebr. + * + * @param script script code + * @return true if the script is right-to-left + * @stable ICU 51 + */ +U_CAPI UBool U_EXPORT2 +uscript_isRightToLeft(UScriptCode script); + +/** + * Returns true if the script allows line breaks between letters (excluding hyphenation). + * Such a script typically requires dictionary-based line breaking. + * For example, Hani and Thai. + * + * @param script script code + * @return true if the script allows line breaks between letters + * @stable ICU 51 + */ +U_CAPI UBool U_EXPORT2 +uscript_breaksBetweenLetters(UScriptCode script); + +/** + * Returns true if in modern (or most recent) usage of the script case distinctions are customary. + * For example, Latn and Cyrl. + * + * @param script script code + * @return true if the script is cased + * @stable ICU 51 + */ +U_CAPI UBool U_EXPORT2 +uscript_isCased(UScriptCode script); + +#endif + +// urep.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* Copyright (C) 1997-2010, International Business Machines +* Corporation and others. All Rights Reserved. +****************************************************************************** +* Date Name Description +* 06/23/00 aliu Creation. +****************************************************************************** +*/ + +#ifndef __UREP_H +#define __UREP_H + + +U_CDECL_BEGIN + +/******************************************************************** + * General Notes + ******************************************************************** + * TODO + * Add usage scenario + * Add test code + * Talk about pinning + * Talk about "can truncate result if out of memory" + */ + +/******************************************************************** + * Data Structures + ********************************************************************/ +/** + * \file + * \brief C API: Callbacks for UReplaceable + */ +/** + * An opaque replaceable text object. This will be manipulated only + * through the caller-supplied UReplaceableFunctor struct. Related + * to the C++ class Replaceable. + * This is currently only used in the Transliterator C API, see utrans.h . + * @stable ICU 2.0 + */ +typedef void* UReplaceable; + +/** + * A set of function pointers that transliterators use to manipulate a + * UReplaceable. The caller should supply the required functions to + * manipulate their text appropriately. Related to the C++ class + * Replaceable. + * @stable ICU 2.0 + */ +typedef struct UReplaceableCallbacks { + + /** + * Function pointer that returns the number of UChar code units in + * this text. + * + * @param rep A pointer to "this" UReplaceable object. + * @return The length of the text. + * @stable ICU 2.0 + */ + int32_t (*length)(const UReplaceable* rep); + + /** + * Function pointer that returns a UChar code units at the given + * offset into this text; 0 <= offset < n, where n is the value + * returned by (*length)(rep). See unistr.h for a description of + * charAt() vs. char32At(). + * + * @param rep A pointer to "this" UReplaceable object. + * @param offset The index at which to fetch the UChar (code unit). + * @return The UChar (code unit) at offset, or U+FFFF if the offset is out of bounds. + * @stable ICU 2.0 + */ + UChar (*charAt)(const UReplaceable* rep, + int32_t offset); + + /** + * Function pointer that returns a UChar32 code point at the given + * offset into this text. See unistr.h for a description of + * charAt() vs. char32At(). + * + * @param rep A pointer to "this" UReplaceable object. + * @param offset The index at which to fetch the UChar32 (code point). + * @return The UChar32 (code point) at offset, or U+FFFF if the offset is out of bounds. + * @stable ICU 2.0 + */ + UChar32 (*char32At)(const UReplaceable* rep, + int32_t offset); + + /** + * Function pointer that replaces text between start and limit in + * this text with the given text. Attributes (out of band info) + * should be retained. + * + * @param rep A pointer to "this" UReplaceable object. + * @param start the starting index of the text to be replaced, + * inclusive. + * @param limit the ending index of the text to be replaced, + * exclusive. + * @param text the new text to replace the UChars from + * start..limit-1. + * @param textLength the number of UChars at text, or -1 if text + * is null-terminated. + * @stable ICU 2.0 + */ + void (*replace)(UReplaceable* rep, + int32_t start, + int32_t limit, + const UChar* text, + int32_t textLength); + + /** + * Function pointer that copies the characters in the range + * [start, limit) into the array dst. + * + * @param rep A pointer to "this" UReplaceable object. + * @param start offset of first character which will be copied + * into the array + * @param limit offset immediately following the last character to + * be copied + * @param dst array in which to copy characters. The length of + * dst must be at least (limit - start). + * @stable ICU 2.1 + */ + void (*extract)(UReplaceable* rep, + int32_t start, + int32_t limit, + UChar* dst); + + /** + * Function pointer that copies text between start and limit in + * this text to another index in the text. Attributes (out of + * band info) should be retained. After this call, there will be + * (at least) two copies of the characters originally located at + * start..limit-1. + * + * @param rep A pointer to "this" UReplaceable object. + * @param start the starting index of the text to be copied, + * inclusive. + * @param limit the ending index of the text to be copied, + * exclusive. + * @param dest the index at which the copy of the UChars should be + * inserted. + * @stable ICU 2.0 + */ + void (*copy)(UReplaceable* rep, + int32_t start, + int32_t limit, + int32_t dest); + +} UReplaceableCallbacks; + +U_CDECL_END + +#endif + +// umisc.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 1999-2006, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* file name: umisc.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 1999oct15 +* created by: Markus W. Scherer +*/ + +#ifndef UMISC_H +#define UMISC_H + + +/** + * \file + * \brief C API: Miscellaneous definitions + * + * This file contains miscellaneous definitions for the C APIs. + */ + +U_CDECL_BEGIN + +/** A struct representing a range of text containing a specific field + * @stable ICU 2.0 + */ +typedef struct UFieldPosition { + /** + * The field + * @stable ICU 2.0 + */ + int32_t field; + /** + * The start of the text range containing field + * @stable ICU 2.0 + */ + int32_t beginIndex; + /** + * The limit of the text range containing field + * @stable ICU 2.0 + */ + int32_t endIndex; +} UFieldPosition; + +#if !UCONFIG_NO_SERVICE +/** + * Opaque type returned by registerInstance, registerFactory and unregister for service registration. + * @stable ICU 2.6 + */ +typedef const void* URegistryKey; +#endif + +U_CDECL_END + +#endif + +// uiter.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* +* Copyright (C) 2002-2011 International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: uiter.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2002jan18 +* created by: Markus W. Scherer +*/ + +#ifndef __UITER_H__ +#define __UITER_H__ + +/** + * \file + * \brief C API: Unicode Character Iteration + * + * @see UCharIterator + */ + + + +U_CDECL_BEGIN + +struct UCharIterator; +typedef struct UCharIterator UCharIterator; /**< C typedef for struct UCharIterator. @stable ICU 2.1 */ + +/** + * Origin constants for UCharIterator.getIndex() and UCharIterator.move(). + * @see UCharIteratorMove + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef enum UCharIteratorOrigin { + UITER_START, UITER_CURRENT, UITER_LIMIT, UITER_ZERO, UITER_LENGTH +} UCharIteratorOrigin; + +/** Constants for UCharIterator. @stable ICU 2.6 */ +enum { + /** + * Constant value that may be returned by UCharIteratorMove + * indicating that the final UTF-16 index is not known, but that the move succeeded. + * This can occur when moving relative to limit or length, or + * when moving relative to the current index after a setState() + * when the current UTF-16 index is not known. + * + * It would be very inefficient to have to count from the beginning of the text + * just to get the current/limit/length index after moving relative to it. + * The actual index can be determined with getIndex(UITER_CURRENT) + * which will count the UChars if necessary. + * + * @stable ICU 2.6 + */ + UITER_UNKNOWN_INDEX=-2 +}; + + +/** + * Constant for UCharIterator getState() indicating an error or + * an unknown state. + * Returned by uiter_getState()/UCharIteratorGetState + * when an error occurs. + * Also, some UCharIterator implementations may not be able to return + * a valid state for each position. This will be clearly documented + * for each such iterator (none of the public ones here). + * + * @stable ICU 2.6 + */ +#define UITER_NO_STATE ((uint32_t)0xffffffff) + +/** + * Function type declaration for UCharIterator.getIndex(). + * + * Gets the current position, or the start or limit of the + * iteration range. + * + * This function may perform slowly for UITER_CURRENT after setState() was called, + * or for UITER_LENGTH, because an iterator implementation may have to count + * UChars if the underlying storage is not UTF-16. + * + * @param iter the UCharIterator structure ("this pointer") + * @param origin get the 0, start, limit, length, or current index + * @return the requested index, or U_SENTINEL in an error condition + * + * @see UCharIteratorOrigin + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef int32_t U_CALLCONV +UCharIteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin); + +/** + * Function type declaration for UCharIterator.move(). + * + * Use iter->move(iter, index, UITER_ZERO) like CharacterIterator::setIndex(index). + * + * Moves the current position relative to the start or limit of the + * iteration range, or relative to the current position itself. + * The movement is expressed in numbers of code units forward + * or backward by specifying a positive or negative delta. + * Out of bounds movement will be pinned to the start or limit. + * + * This function may perform slowly for moving relative to UITER_LENGTH + * because an iterator implementation may have to count the rest of the + * UChars if the native storage is not UTF-16. + * + * When moving relative to the limit or length, or + * relative to the current position after setState() was called, + * move() may return UITER_UNKNOWN_INDEX (-2) to avoid an inefficient + * determination of the actual UTF-16 index. + * The actual index can be determined with getIndex(UITER_CURRENT) + * which will count the UChars if necessary. + * See UITER_UNKNOWN_INDEX for details. + * + * @param iter the UCharIterator structure ("this pointer") + * @param delta can be positive, zero, or negative + * @param origin move relative to the 0, start, limit, length, or current index + * @return the new index, or U_SENTINEL on an error condition, + * or UITER_UNKNOWN_INDEX when the index is not known. + * + * @see UCharIteratorOrigin + * @see UCharIterator + * @see UITER_UNKNOWN_INDEX + * @stable ICU 2.1 + */ +typedef int32_t U_CALLCONV +UCharIteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin); + +/** + * Function type declaration for UCharIterator.hasNext(). + * + * Check if current() and next() can still + * return another code unit. + * + * @param iter the UCharIterator structure ("this pointer") + * @return boolean value for whether current() and next() can still return another code unit + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef UBool U_CALLCONV +UCharIteratorHasNext(UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.hasPrevious(). + * + * Check if previous() can still return another code unit. + * + * @param iter the UCharIterator structure ("this pointer") + * @return boolean value for whether previous() can still return another code unit + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef UBool U_CALLCONV +UCharIteratorHasPrevious(UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.current(). + * + * Return the code unit at the current position, + * or U_SENTINEL if there is none (index is at the limit). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the current code unit + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef UChar32 U_CALLCONV +UCharIteratorCurrent(UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.next(). + * + * Return the code unit at the current index and increment + * the index (post-increment, like s[i++]), + * or return U_SENTINEL if there is none (index is at the limit). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the current code unit (and post-increment the current index) + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef UChar32 U_CALLCONV +UCharIteratorNext(UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.previous(). + * + * Decrement the index and return the code unit from there + * (pre-decrement, like s[--i]), + * or return U_SENTINEL if there is none (index is at the start). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the previous code unit (after pre-decrementing the current index) + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef UChar32 U_CALLCONV +UCharIteratorPrevious(UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.reservedFn(). + * Reserved for future use. + * + * @param iter the UCharIterator structure ("this pointer") + * @param something some integer argument + * @return some integer + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef int32_t U_CALLCONV +UCharIteratorReserved(UCharIterator *iter, int32_t something); + +/** + * Function type declaration for UCharIterator.getState(). + * + * Get the "state" of the iterator in the form of a single 32-bit word. + * It is recommended that the state value be calculated to be as small as + * is feasible. For strings with limited lengths, fewer than 32 bits may + * be sufficient. + * + * This is used together with setState()/UCharIteratorSetState + * to save and restore the iterator position more efficiently than with + * getIndex()/move(). + * + * The iterator state is defined as a uint32_t value because it is designed + * for use in ucol_nextSortKeyPart() which provides 32 bits to store the state + * of the character iterator. + * + * With some UCharIterator implementations (e.g., UTF-8), + * getting and setting the UTF-16 index with existing functions + * (getIndex(UITER_CURRENT) followed by move(pos, UITER_ZERO)) is possible but + * relatively slow because the iterator has to "walk" from a known index + * to the requested one. + * This takes more time the farther it needs to go. + * + * An opaque state value allows an iterator implementation to provide + * an internal index (UTF-8: the source byte array index) for + * fast, constant-time restoration. + * + * After calling setState(), a getIndex(UITER_CURRENT) may be slow because + * the UTF-16 index may not be restored as well, but the iterator can deliver + * the correct text contents and move relative to the current position + * without performance degradation. + * + * Some UCharIterator implementations may not be able to return + * a valid state for each position, in which case they return UITER_NO_STATE instead. + * This will be clearly documented for each such iterator (none of the public ones here). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the state word + * + * @see UCharIterator + * @see UCharIteratorSetState + * @see UITER_NO_STATE + * @stable ICU 2.6 + */ +typedef uint32_t U_CALLCONV +UCharIteratorGetState(const UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.setState(). + * + * Restore the "state" of the iterator using a state word from a getState() call. + * The iterator object need not be the same one as for which getState() was called, + * but it must be of the same type (set up using the same uiter_setXYZ function) + * and it must iterate over the same string + * (binary identical regardless of memory address). + * For more about the state word see UCharIteratorGetState. + * + * After calling setState(), a getIndex(UITER_CURRENT) may be slow because + * the UTF-16 index may not be restored as well, but the iterator can deliver + * the correct text contents and move relative to the current position + * without performance degradation. + * + * @param iter the UCharIterator structure ("this pointer") + * @param state the state word from a getState() call + * on a same-type, same-string iterator + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @see UCharIterator + * @see UCharIteratorGetState + * @stable ICU 2.6 + */ +typedef void U_CALLCONV +UCharIteratorSetState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode); + + +/** + * C API for code unit iteration. + * This can be used as a C wrapper around + * CharacterIterator, Replaceable, or implemented using simple strings, etc. + * + * There are two roles for using UCharIterator: + * + * A "provider" sets the necessary function pointers and controls the "protected" + * fields of the UCharIterator structure. A "provider" passes a UCharIterator + * into C APIs that need a UCharIterator as an abstract, flexible string interface. + * + * Implementations of such C APIs are "callers" of UCharIterator functions; + * they only use the "public" function pointers and never access the "protected" + * fields directly. + * + * The current() and next() functions only check the current index against the + * limit, and previous() only checks the current index against the start, + * to see if the iterator already reached the end of the iteration range. + * + * The assumption - in all iterators - is that the index is moved via the API, + * which means it won't go out of bounds, or the index is modified by + * user code that knows enough about the iterator implementation to set valid + * index values. + * + * UCharIterator functions return code unit values 0..0xffff, + * or U_SENTINEL if the iteration bounds are reached. + * + * @stable ICU 2.1 + */ +struct UCharIterator { + /** + * (protected) Pointer to string or wrapped object or similar. + * Not used by caller. + * @stable ICU 2.1 + */ + const void *context; + + /** + * (protected) Length of string or similar. + * Not used by caller. + * @stable ICU 2.1 + */ + int32_t length; + + /** + * (protected) Start index or similar. + * Not used by caller. + * @stable ICU 2.1 + */ + int32_t start; + + /** + * (protected) Current index or similar. + * Not used by caller. + * @stable ICU 2.1 + */ + int32_t index; + + /** + * (protected) Limit index or similar. + * Not used by caller. + * @stable ICU 2.1 + */ + int32_t limit; + + /** + * (protected) Used by UTF-8 iterators and possibly others. + * @stable ICU 2.1 + */ + int32_t reservedField; + + /** + * (public) Returns the current position or the + * start or limit index of the iteration range. + * + * @see UCharIteratorGetIndex + * @stable ICU 2.1 + */ + UCharIteratorGetIndex *getIndex; + + /** + * (public) Moves the current position relative to the start or limit of the + * iteration range, or relative to the current position itself. + * The movement is expressed in numbers of code units forward + * or backward by specifying a positive or negative delta. + * + * @see UCharIteratorMove + * @stable ICU 2.1 + */ + UCharIteratorMove *move; + + /** + * (public) Check if current() and next() can still + * return another code unit. + * + * @see UCharIteratorHasNext + * @stable ICU 2.1 + */ + UCharIteratorHasNext *hasNext; + + /** + * (public) Check if previous() can still return another code unit. + * + * @see UCharIteratorHasPrevious + * @stable ICU 2.1 + */ + UCharIteratorHasPrevious *hasPrevious; + + /** + * (public) Return the code unit at the current position, + * or U_SENTINEL if there is none (index is at the limit). + * + * @see UCharIteratorCurrent + * @stable ICU 2.1 + */ + UCharIteratorCurrent *current; + + /** + * (public) Return the code unit at the current index and increment + * the index (post-increment, like s[i++]), + * or return U_SENTINEL if there is none (index is at the limit). + * + * @see UCharIteratorNext + * @stable ICU 2.1 + */ + UCharIteratorNext *next; + + /** + * (public) Decrement the index and return the code unit from there + * (pre-decrement, like s[--i]), + * or return U_SENTINEL if there is none (index is at the start). + * + * @see UCharIteratorPrevious + * @stable ICU 2.1 + */ + UCharIteratorPrevious *previous; + + /** + * (public) Reserved for future use. Currently NULL. + * + * @see UCharIteratorReserved + * @stable ICU 2.1 + */ + UCharIteratorReserved *reservedFn; + + /** + * (public) Return the state of the iterator, to be restored later with setState(). + * This function pointer is NULL if the iterator does not implement it. + * + * @see UCharIteratorGet + * @stable ICU 2.6 + */ + UCharIteratorGetState *getState; + + /** + * (public) Restore the iterator state from the state word from a call + * to getState(). + * This function pointer is NULL if the iterator does not implement it. + * + * @see UCharIteratorSet + * @stable ICU 2.6 + */ + UCharIteratorSetState *setState; +}; + +/** + * Helper function for UCharIterator to get the code point + * at the current index. + * + * Return the code point that includes the code unit at the current position, + * or U_SENTINEL if there is none (index is at the limit). + * If the current code unit is a lead or trail surrogate, + * then the following or preceding surrogate is used to form + * the code point value. + * + * @param iter the UCharIterator structure ("this pointer") + * @return the current code point + * + * @see UCharIterator + * @see U16_GET + * @see UnicodeString::char32At() + * @stable ICU 2.1 + */ +U_CAPI UChar32 U_EXPORT2 +uiter_current32(UCharIterator *iter); + +/** + * Helper function for UCharIterator to get the next code point. + * + * Return the code point at the current index and increment + * the index (post-increment, like s[i++]), + * or return U_SENTINEL if there is none (index is at the limit). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the current code point (and post-increment the current index) + * + * @see UCharIterator + * @see U16_NEXT + * @stable ICU 2.1 + */ +U_CAPI UChar32 U_EXPORT2 +uiter_next32(UCharIterator *iter); + +/** + * Helper function for UCharIterator to get the previous code point. + * + * Decrement the index and return the code point from there + * (pre-decrement, like s[--i]), + * or return U_SENTINEL if there is none (index is at the start). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the previous code point (after pre-decrementing the current index) + * + * @see UCharIterator + * @see U16_PREV + * @stable ICU 2.1 + */ +U_CAPI UChar32 U_EXPORT2 +uiter_previous32(UCharIterator *iter); + +/** + * Get the "state" of the iterator in the form of a single 32-bit word. + * This is a convenience function that calls iter->getState(iter) + * if iter->getState is not NULL; + * if it is NULL or any other error occurs, then UITER_NO_STATE is returned. + * + * Some UCharIterator implementations may not be able to return + * a valid state for each position, in which case they return UITER_NO_STATE instead. + * This will be clearly documented for each such iterator (none of the public ones here). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the state word + * + * @see UCharIterator + * @see UCharIteratorGetState + * @see UITER_NO_STATE + * @stable ICU 2.6 + */ +U_CAPI uint32_t U_EXPORT2 +uiter_getState(const UCharIterator *iter); + +/** + * Restore the "state" of the iterator using a state word from a getState() call. + * This is a convenience function that calls iter->setState(iter, state, pErrorCode) + * if iter->setState is not NULL; if it is NULL, then U_UNSUPPORTED_ERROR is set. + * + * @param iter the UCharIterator structure ("this pointer") + * @param state the state word from a getState() call + * on a same-type, same-string iterator + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @see UCharIterator + * @see UCharIteratorSetState + * @stable ICU 2.6 + */ +U_CAPI void U_EXPORT2 +uiter_setState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode); + +/** + * Set up a UCharIterator to iterate over a string. + * + * Sets the UCharIterator function pointers for iteration over the string s + * with iteration boundaries start=index=0 and length=limit=string length. + * The "provider" may set the start, index, and limit values at any time + * within the range 0..length. + * The length field will be ignored. + * + * The string pointer s is set into UCharIterator.context without copying + * or reallocating the string contents. + * + * getState() simply returns the current index. + * move() will always return the final index. + * + * @param iter UCharIterator structure to be set for iteration + * @param s String to iterate over + * @param length Length of s, or -1 if NUL-terminated + * + * @see UCharIterator + * @stable ICU 2.1 + */ +U_CAPI void U_EXPORT2 +uiter_setString(UCharIterator *iter, const UChar *s, int32_t length); + +/** + * Set up a UCharIterator to iterate over a UTF-16BE string + * (byte vector with a big-endian pair of bytes per UChar). + * + * Everything works just like with a normal UChar iterator (uiter_setString), + * except that UChars are assembled from byte pairs, + * and that the length argument here indicates an even number of bytes. + * + * getState() simply returns the current index. + * move() will always return the final index. + * + * @param iter UCharIterator structure to be set for iteration + * @param s UTF-16BE string to iterate over + * @param length Length of s as an even number of bytes, or -1 if NUL-terminated + * (NUL means pair of 0 bytes at even index from s) + * + * @see UCharIterator + * @see uiter_setString + * @stable ICU 2.6 + */ +U_CAPI void U_EXPORT2 +uiter_setUTF16BE(UCharIterator *iter, const char *s, int32_t length); + +/** + * Set up a UCharIterator to iterate over a UTF-8 string. + * + * Sets the UCharIterator function pointers for iteration over the UTF-8 string s + * with UTF-8 iteration boundaries 0 and length. + * The implementation counts the UTF-16 index on the fly and + * lazily evaluates the UTF-16 length of the text. + * + * The start field is used as the UTF-8 offset, the limit field as the UTF-8 length. + * When the reservedField is not 0, then it contains a supplementary code point + * and the UTF-16 index is between the two corresponding surrogates. + * At that point, the UTF-8 index is behind that code point. + * + * The UTF-8 string pointer s is set into UCharIterator.context without copying + * or reallocating the string contents. + * + * getState() returns a state value consisting of + * - the current UTF-8 source byte index (bits 31..1) + * - a flag (bit 0) that indicates whether the UChar position is in the middle + * of a surrogate pair + * (from a 4-byte UTF-8 sequence for the corresponding supplementary code point) + * + * getState() cannot also encode the UTF-16 index in the state value. + * move(relative to limit or length), or + * move(relative to current) after setState(), may return UITER_UNKNOWN_INDEX. + * + * @param iter UCharIterator structure to be set for iteration + * @param s UTF-8 string to iterate over + * @param length Length of s in bytes, or -1 if NUL-terminated + * + * @see UCharIterator + * @stable ICU 2.6 + */ +U_CAPI void U_EXPORT2 +uiter_setUTF8(UCharIterator *iter, const char *s, int32_t length); + + +U_CDECL_END + +#endif + +// uenum.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* +* Copyright (C) 2002-2013, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: uenum.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:2 +* +* created on: 2002jul08 +* created by: Vladimir Weinstein +*/ + +#ifndef __UENUM_H +#define __UENUM_H + + + +/** + * \file + * \brief C API: String Enumeration + */ + +/** + * An enumeration object. + * For usage in C programs. + * @stable ICU 2.2 + */ +struct UEnumeration; +/** structure representing an enumeration object instance @stable ICU 2.2 */ +typedef struct UEnumeration UEnumeration; + +/** + * Disposes of resources in use by the iterator. If en is NULL, + * does nothing. After this call, any char* or UChar* pointer + * returned by uenum_unext() or uenum_next() is invalid. + * @param en UEnumeration structure pointer + * @stable ICU 2.2 + */ +U_CAPI void U_EXPORT2 +uenum_close(UEnumeration* en); + + +/** + * Returns the number of elements that the iterator traverses. If + * the iterator is out-of-sync with its service, status is set to + * U_ENUM_OUT_OF_SYNC_ERROR. + * This is a convenience function. It can end up being very + * expensive as all the items might have to be pre-fetched (depending + * on the type of data being traversed). Use with caution and only + * when necessary. + * @param en UEnumeration structure pointer + * @param status error code, can be U_ENUM_OUT_OF_SYNC_ERROR if the + * iterator is out of sync. + * @return number of elements in the iterator + * @stable ICU 2.2 + */ +U_CAPI int32_t U_EXPORT2 +uenum_count(UEnumeration* en, UErrorCode* status); + +/** + * Returns the next element in the iterator's list. If there are + * no more elements, returns NULL. If the iterator is out-of-sync + * with its service, status is set to U_ENUM_OUT_OF_SYNC_ERROR and + * NULL is returned. If the native service string is a char* string, + * it is converted to UChar* with the invariant converter. + * The result is terminated by (UChar)0. + * @param en the iterator object + * @param resultLength pointer to receive the length of the result + * (not including the terminating \\0). + * If the pointer is NULL it is ignored. + * @param status the error code, set to U_ENUM_OUT_OF_SYNC_ERROR if + * the iterator is out of sync with its service. + * @return a pointer to the string. The string will be + * zero-terminated. The return pointer is owned by this iterator + * and must not be deleted by the caller. The pointer is valid + * until the next call to any uenum_... method, including + * uenum_next() or uenum_unext(). When all strings have been + * traversed, returns NULL. + * @stable ICU 2.2 + */ +U_CAPI const UChar* U_EXPORT2 +uenum_unext(UEnumeration* en, + int32_t* resultLength, + UErrorCode* status); + +/** + * Returns the next element in the iterator's list. If there are + * no more elements, returns NULL. If the iterator is out-of-sync + * with its service, status is set to U_ENUM_OUT_OF_SYNC_ERROR and + * NULL is returned. If the native service string is a UChar* + * string, it is converted to char* with the invariant converter. + * The result is terminated by (char)0. If the conversion fails + * (because a character cannot be converted) then status is set to + * U_INVARIANT_CONVERSION_ERROR and the return value is undefined + * (but non-NULL). + * @param en the iterator object + * @param resultLength pointer to receive the length of the result + * (not including the terminating \\0). + * If the pointer is NULL it is ignored. + * @param status the error code, set to U_ENUM_OUT_OF_SYNC_ERROR if + * the iterator is out of sync with its service. Set to + * U_INVARIANT_CONVERSION_ERROR if the underlying native string is + * UChar* and conversion to char* with the invariant converter + * fails. This error pertains only to current string, so iteration + * might be able to continue successfully. + * @return a pointer to the string. The string will be + * zero-terminated. The return pointer is owned by this iterator + * and must not be deleted by the caller. The pointer is valid + * until the next call to any uenum_... method, including + * uenum_next() or uenum_unext(). When all strings have been + * traversed, returns NULL. + * @stable ICU 2.2 + */ +U_CAPI const char* U_EXPORT2 +uenum_next(UEnumeration* en, + int32_t* resultLength, + UErrorCode* status); + +/** + * Resets the iterator to the current list of service IDs. This + * re-establishes sync with the service and rewinds the iterator + * to start at the first element. + * @param en the iterator object + * @param status the error code, set to U_ENUM_OUT_OF_SYNC_ERROR if + * the iterator is out of sync with its service. + * @stable ICU 2.2 + */ +U_CAPI void U_EXPORT2 +uenum_reset(UEnumeration* en, UErrorCode* status); + + +/** + * Given an array of const UChar* strings, return a UEnumeration. String pointers from 0..count-1 must not be null. + * Do not free or modify either the string array or the characters it points to until this object has been destroyed with uenum_close. + * \snippet test/cintltst/uenumtst.c uenum_openUCharStringsEnumeration + * @param strings array of const UChar* strings (each null terminated). All storage is owned by the caller. + * @param count length of the array + * @param ec error code + * @return the new UEnumeration object. Caller is responsible for calling uenum_close to free memory. + * @see uenum_close + * @stable ICU 50 + */ +U_CAPI UEnumeration* U_EXPORT2 +uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count, + UErrorCode* ec); + +/** + * Given an array of const char* strings (invariant chars only), return a UEnumeration. String pointers from 0..count-1 must not be null. + * Do not free or modify either the string array or the characters it points to until this object has been destroyed with uenum_close. + * \snippet test/cintltst/uenumtst.c uenum_openCharStringsEnumeration + * @param strings array of char* strings (each null terminated). All storage is owned by the caller. + * @param count length of the array + * @param ec error code + * @return the new UEnumeration object. Caller is responsible for calling uenum_close to free memory + * @see uenum_close + * @stable ICU 50 + */ +U_CAPI UEnumeration* U_EXPORT2 +uenum_openCharStringsEnumeration(const char* const strings[], int32_t count, + UErrorCode* ec); + +#endif + +// uloc.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 1997-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* +* File ULOC.H +* +* Modification History: +* +* Date Name Description +* 04/01/97 aliu Creation. +* 08/22/98 stephen JDK 1.2 sync. +* 12/08/98 rtg New C API for Locale +* 03/30/99 damiba overhaul +* 03/31/99 helena Javadoc for uloc functions. +* 04/15/99 Madhu Updated Javadoc +******************************************************************************** +*/ + +#ifndef ULOC_H +#define ULOC_H + + +/** + * \file + * \brief C API: Locale ID functionality similar to C++ class Locale + * + *

ULoc C API for Locale

+ * A Locale represents a specific geographical, political, + * or cultural region. An operation that requires a Locale to perform + * its task is called locale-sensitive and uses the Locale + * to tailor information for the user. For example, displaying a number + * is a locale-sensitive operation--the number should be formatted + * according to the customs/conventions of the user's native country, + * region, or culture. In the C APIs, a locales is simply a const char string. + * + *

+ * You create a Locale with one of the three options listed below. + * Each of the component is separated by '_' in the locale string. + * \htmlonly

\endhtmlonly + *
+ * \code
+ *       newLanguage
+ * 
+ *       newLanguage + newCountry
+ * 
+ *       newLanguage + newCountry + newVariant
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * The first option is a valid ISO + * Language Code. These codes are the lower-case two-letter + * codes as defined by ISO-639. + * You can find a full list of these codes at a number of sites, such as: + *
+ * http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt + * + *

+ * The second option includes an additional ISO Country + * Code. These codes are the upper-case two-letter codes + * as defined by ISO-3166. + * You can find a full list of these codes at a number of sites, such as: + *
+ * http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + * + *

+ * The third option requires another additional information--the + * Variant. + * The Variant codes are vendor and browser-specific. + * For example, use WIN for Windows, MAC for Macintosh, and POSIX for POSIX. + * Where there are two variants, separate them with an underscore, and + * put the most important one first. For + * example, a Traditional Spanish collation might be referenced, with + * "ES", "ES", "Traditional_WIN". + * + *

+ * Because a Locale is just an identifier for a region, + * no validity check is performed when you specify a Locale. + * If you want to see whether particular resources are available for the + * Locale you asked for, you must query those resources. For + * example, ask the UNumberFormat for the locales it supports + * using its getAvailable method. + *
Note: When you ask for a resource for a particular + * locale, you get back the best available match, not necessarily + * precisely what you asked for. For more information, look at + * UResourceBundle. + * + *

+ * The Locale provides a number of convenient constants + * that you can use to specify the commonly used + * locales. For example, the following refers to a locale + * for the United States: + * \htmlonly

\endhtmlonly + *
+ * \code
+ *       ULOC_US
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * + *

+ * Once you've specified a locale you can query it for information about + * itself. Use uloc_getCountry to get the ISO Country Code and + * uloc_getLanguage to get the ISO Language Code. You can + * use uloc_getDisplayCountry to get the + * name of the country suitable for displaying to the user. Similarly, + * you can use uloc_getDisplayLanguage to get the name of + * the language suitable for displaying to the user. Interestingly, + * the uloc_getDisplayXXX methods are themselves locale-sensitive + * and have two versions: one that uses the default locale and one + * that takes a locale as an argument and displays the name or country in + * a language appropriate to that locale. + * + *

+ * The ICU provides a number of services that perform locale-sensitive + * operations. For example, the unum_xxx functions format + * numbers, currency, or percentages in a locale-sensitive manner. + *

+ * \htmlonly
\endhtmlonly + *
+ * \code
+ *     UErrorCode success = U_ZERO_ERROR;
+ *     UNumberFormat *nf;
+ *     const char* myLocale = "fr_FR";
+ * 
+ *     nf = unum_open( UNUM_DEFAULT, NULL, success );          
+ *     unum_close(nf);
+ *     nf = unum_open( UNUM_CURRENCY, NULL, success );
+ *     unum_close(nf);
+ *     nf = unum_open( UNUM_PERCENT, NULL, success );   
+ *     unum_close(nf);
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * Each of these methods has two variants; one with an explicit locale + * and one without; the latter using the default locale. + * \htmlonly
\endhtmlonly + *
+ * \code 
+ * 
+ *     nf = unum_open( UNUM_DEFAULT, myLocale, success );          
+ *     unum_close(nf);
+ *     nf = unum_open( UNUM_CURRENCY, myLocale, success );
+ *     unum_close(nf);
+ *     nf = unum_open( UNUM_PERCENT, myLocale, success );   
+ *     unum_close(nf);
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * A Locale is the mechanism for identifying the kind of services + * (UNumberFormat) that you would like to get. The locale is + * just a mechanism for identifying these services. + * + *

+ * Each international service that performs locale-sensitive operations + * allows you + * to get all the available objects of that type. You can sift + * through these objects by language, country, or variant, + * and use the display names to present a menu to the user. + * For example, you can create a menu of all the collation objects + * suitable for a given language. Such classes implement these + * three class methods: + * \htmlonly

\endhtmlonly + *
+ * \code
+ *       const char* uloc_getAvailable(int32_t index);
+ *       int32_t uloc_countAvailable();
+ *       int32_t
+ *       uloc_getDisplayName(const char* localeID,
+ *                 const char* inLocaleID, 
+ *                 UChar* result,
+ *                 int32_t maxResultSize,
+ *                  UErrorCode* err);
+ * 
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + *

+ * Concerning POSIX/RFC1766 Locale IDs, + * the getLanguage/getCountry/getVariant/getName functions do understand + * the POSIX type form of language_COUNTRY.ENCODING\@VARIANT + * and if there is not an ICU-stype variant, uloc_getVariant() for example + * will return the one listed after the \@at sign. As well, the hyphen + * "-" is recognized as a country/variant separator similarly to RFC1766. + * So for example, "en-us" will be interpreted as en_US. + * As a result, uloc_getName() is far from a no-op, and will have the + * effect of converting POSIX/RFC1766 IDs into ICU form, although it does + * NOT map any of the actual codes (i.e. russian->ru) in any way. + * Applications should call uloc_getName() at the point where a locale ID + * is coming from an external source (user entry, OS, web browser) + * and pass the resulting string to other ICU functions. For example, + * don't use de-de\@EURO as an argument to resourcebundle. + * + * @see UResourceBundle + */ + +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_CHINESE "zh" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_ENGLISH "en" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_FRENCH "fr" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_GERMAN "de" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_ITALIAN "it" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_JAPANESE "ja" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_KOREAN "ko" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_SIMPLIFIED_CHINESE "zh_CN" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_TRADITIONAL_CHINESE "zh_TW" + +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_CANADA "en_CA" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_CANADA_FRENCH "fr_CA" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_CHINA "zh_CN" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_PRC "zh_CN" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_FRANCE "fr_FR" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_GERMANY "de_DE" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_ITALY "it_IT" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_JAPAN "ja_JP" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_KOREA "ko_KR" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_TAIWAN "zh_TW" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_UK "en_GB" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_US "en_US" + +/** + * Useful constant for the maximum size of the language part of a locale ID. + * (including the terminating NULL). + * @stable ICU 2.0 + */ +#define ULOC_LANG_CAPACITY 12 + +/** + * Useful constant for the maximum size of the country part of a locale ID + * (including the terminating NULL). + * @stable ICU 2.0 + */ +#define ULOC_COUNTRY_CAPACITY 4 +/** + * Useful constant for the maximum size of the whole locale ID + * (including the terminating NULL and all keywords). + * @stable ICU 2.0 + */ +#define ULOC_FULLNAME_CAPACITY 157 + +/** + * Useful constant for the maximum size of the script part of a locale ID + * (including the terminating NULL). + * @stable ICU 2.8 + */ +#define ULOC_SCRIPT_CAPACITY 6 + +/** + * Useful constant for the maximum size of keywords in a locale + * @stable ICU 2.8 + */ +#define ULOC_KEYWORDS_CAPACITY 96 + +/** + * Useful constant for the maximum total size of keywords and their values in a locale + * @stable ICU 2.8 + */ +#define ULOC_KEYWORD_AND_VALUES_CAPACITY 100 + +/** + * Invariant character separating keywords from the locale string + * @stable ICU 2.8 + */ +#define ULOC_KEYWORD_SEPARATOR '@' + +/** + * Unicode code point for '@' separating keywords from the locale string. + * @see ULOC_KEYWORD_SEPARATOR + * @stable ICU 4.6 + */ +#define ULOC_KEYWORD_SEPARATOR_UNICODE 0x40 + +/** + * Invariant character for assigning value to a keyword + * @stable ICU 2.8 + */ +#define ULOC_KEYWORD_ASSIGN '=' + +/** + * Unicode code point for '=' for assigning value to a keyword. + * @see ULOC_KEYWORD_ASSIGN + * @stable ICU 4.6 + */ +#define ULOC_KEYWORD_ASSIGN_UNICODE 0x3D + +/** + * Invariant character separating keywords + * @stable ICU 2.8 + */ +#define ULOC_KEYWORD_ITEM_SEPARATOR ';' + +/** + * Unicode code point for ';' separating keywords + * @see ULOC_KEYWORD_ITEM_SEPARATOR + * @stable ICU 4.6 + */ +#define ULOC_KEYWORD_ITEM_SEPARATOR_UNICODE 0x3B + +/** + * Constants for *_getLocale() + * Allow user to select whether she wants information on + * requested, valid or actual locale. + * For example, a collator for "en_US_CALIFORNIA" was + * requested. In the current state of ICU (2.0), + * the requested locale is "en_US_CALIFORNIA", + * the valid locale is "en_US" (most specific locale supported by ICU) + * and the actual locale is "root" (the collation data comes unmodified + * from the UCA) + * The locale is considered supported by ICU if there is a core ICU bundle + * for that locale (although it may be empty). + * @stable ICU 2.1 + */ +typedef enum { + /** This is locale the data actually comes from + * @stable ICU 2.1 + */ + ULOC_ACTUAL_LOCALE = 0, + /** This is the most specific locale supported by ICU + * @stable ICU 2.1 + */ + ULOC_VALID_LOCALE = 1, + +} ULocDataLocaleType; + +#ifndef U_HIDE_SYSTEM_API +/** + * Gets ICU's default locale. + * The returned string is a snapshot in time, and will remain valid + * and unchanged even when uloc_setDefault() is called. + * The returned storage is owned by ICU, and must not be altered or deleted + * by the caller. + * + * @return the ICU default locale + * @system + * @stable ICU 2.0 + */ +U_CAPI const char* U_EXPORT2 +uloc_getDefault(void); + +/** + * Sets ICU's default locale. + * By default (without calling this function), ICU's default locale will be based + * on information obtained from the underlying system environment. + *

+ * Changes to ICU's default locale do not propagate back to the + * system environment. + *

+ * Changes to ICU's default locale to not affect any ICU services that + * may already be open based on the previous default locale value. + * + * @param localeID the new ICU default locale. A value of NULL will try to get + * the system's default locale. + * @param status the error information if the setting of default locale fails + * @system + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +uloc_setDefault(const char* localeID, + UErrorCode* status); +#endif /* U_HIDE_SYSTEM_API */ + +/** + * Gets the language code for the specified locale. + * + * @param localeID the locale to get the ISO language code with + * @param language the language code for localeID + * @param languageCapacity the size of the language buffer to store the + * language code with + * @param err error information if retrieving the language code failed + * @return the actual buffer size needed for the language code. If it's greater + * than languageCapacity, the returned language code will be truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getLanguage(const char* localeID, + char* language, + int32_t languageCapacity, + UErrorCode* err); + +/** + * Gets the script code for the specified locale. + * + * @param localeID the locale to get the ISO language code with + * @param script the language code for localeID + * @param scriptCapacity the size of the language buffer to store the + * language code with + * @param err error information if retrieving the language code failed + * @return the actual buffer size needed for the language code. If it's greater + * than scriptCapacity, the returned language code will be truncated. + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getScript(const char* localeID, + char* script, + int32_t scriptCapacity, + UErrorCode* err); + +/** + * Gets the country code for the specified locale. + * + * @param localeID the locale to get the country code with + * @param country the country code for localeID + * @param countryCapacity the size of the country buffer to store the + * country code with + * @param err error information if retrieving the country code failed + * @return the actual buffer size needed for the country code. If it's greater + * than countryCapacity, the returned country code will be truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getCountry(const char* localeID, + char* country, + int32_t countryCapacity, + UErrorCode* err); + +/** + * Gets the variant code for the specified locale. + * + * @param localeID the locale to get the variant code with + * @param variant the variant code for localeID + * @param variantCapacity the size of the variant buffer to store the + * variant code with + * @param err error information if retrieving the variant code failed + * @return the actual buffer size needed for the variant code. If it's greater + * than variantCapacity, the returned variant code will be truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getVariant(const char* localeID, + char* variant, + int32_t variantCapacity, + UErrorCode* err); + + +/** + * Gets the full name for the specified locale. + * Note: This has the effect of 'canonicalizing' the ICU locale ID to + * a certain extent. Upper and lower case are set as needed. + * It does NOT map aliased names in any way. + * See the top of this header file. + * This API supports preflighting. + * + * @param localeID the locale to get the full name with + * @param name fill in buffer for the name without keywords. + * @param nameCapacity capacity of the fill in buffer. + * @param err error information if retrieving the full name failed + * @return the actual buffer size needed for the full name. If it's greater + * than nameCapacity, the returned full name will be truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getName(const char* localeID, + char* name, + int32_t nameCapacity, + UErrorCode* err); + +/** + * Gets the full name for the specified locale. + * Note: This has the effect of 'canonicalizing' the string to + * a certain extent. Upper and lower case are set as needed, + * and if the components were in 'POSIX' format they are changed to + * ICU format. It does NOT map aliased names in any way. + * See the top of this header file. + * + * @param localeID the locale to get the full name with + * @param name the full name for localeID + * @param nameCapacity the size of the name buffer to store the + * full name with + * @param err error information if retrieving the full name failed + * @return the actual buffer size needed for the full name. If it's greater + * than nameCapacity, the returned full name will be truncated. + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +uloc_canonicalize(const char* localeID, + char* name, + int32_t nameCapacity, + UErrorCode* err); + +/** + * Gets the ISO language code for the specified locale. + * + * @param localeID the locale to get the ISO language code with + * @return language the ISO language code for localeID + * @stable ICU 2.0 + */ +U_CAPI const char* U_EXPORT2 +uloc_getISO3Language(const char* localeID); + + +/** + * Gets the ISO country code for the specified locale. + * + * @param localeID the locale to get the ISO country code with + * @return country the ISO country code for localeID + * @stable ICU 2.0 + */ +U_CAPI const char* U_EXPORT2 +uloc_getISO3Country(const char* localeID); + +/** + * Gets the Win32 LCID value for the specified locale. + * If the ICU locale is not recognized by Windows, 0 will be returned. + * + * LCIDs were deprecated with Windows Vista and Microsoft recommends + * that developers use BCP47 style tags instead (uloc_toLanguageTag). + * + * @param localeID the locale to get the Win32 LCID value with + * @return country the Win32 LCID for localeID + * @stable ICU 2.0 + */ +U_CAPI uint32_t U_EXPORT2 +uloc_getLCID(const char* localeID); + +/** + * Gets the language name suitable for display for the specified locale. + * + * @param locale the locale to get the ISO language code with + * @param displayLocale Specifies the locale to be used to display the name. In + * other words, if the locale's language code is "en", passing + * Locale::getFrench() for inLocale would result in "Anglais", + * while passing Locale::getGerman() for inLocale would result + * in "Englisch". + * @param language the displayable language code for localeID + * @param languageCapacity the size of the language buffer to store the + * displayable language code with. + * @param status error information if retrieving the displayable language code + * failed. U_USING_DEFAULT_WARNING indicates that no data was + * found from the locale resources and a case canonicalized + * language code is placed into language as fallback. + * @return the actual buffer size needed for the displayable language code. If + * it's greater than languageCapacity, the returned language + * code will be truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getDisplayLanguage(const char* locale, + const char* displayLocale, + UChar* language, + int32_t languageCapacity, + UErrorCode* status); + +/** + * Gets the script name suitable for display for the specified locale. + * + * @param locale the locale to get the displayable script code with. NULL may be + * used to specify the default. + * @param displayLocale Specifies the locale to be used to display the name. In + * other words, if the locale's language code is "en", passing + * Locale::getFrench() for inLocale would result in "", while + * passing Locale::getGerman() for inLocale would result in "". + * NULL may be used to specify the default. + * @param script the displayable script for the localeID. + * @param scriptCapacity the size of the script buffer to store the displayable + * script code with. + * @param status error information if retrieving the displayable script code + * failed. U_USING_DEFAULT_WARNING indicates that no data was + * found from the locale resources and a case canonicalized + * script code is placed into script as fallback. + * @return the actual buffer size needed for the displayable script code. If + * it's greater than scriptCapacity, the returned displayable + * script code will be truncated. + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getDisplayScript(const char* locale, + const char* displayLocale, + UChar* script, + int32_t scriptCapacity, + UErrorCode* status); + +/** + * Gets the country name suitable for display for the specified locale. + * Warning: this is for the region part of a valid locale ID; it cannot just be + * the region code (like "FR"). To get the display name for a region alone, or + * for other options, use ULocaleDisplayNames instead. + * + * @param locale the locale to get the displayable country code with. NULL may + * be used to specify the default. + * @param displayLocale Specifies the locale to be used to display the name. In + * other words, if the locale's language code is "en", passing + * Locale::getFrench() for inLocale would result in "Anglais", + * while passing Locale::getGerman() for inLocale would result + * in "Englisch". NULL may be used to specify the default. + * @param country the displayable country code for localeID. + * @param countryCapacity the size of the country buffer to store the + * displayable country code with. + * @param status error information if retrieving the displayable country code + * failed. U_USING_DEFAULT_WARNING indicates that no data was + * found from the locale resources and a case canonicalized + * country code is placed into country as fallback. + * @return the actual buffer size needed for the displayable country code. If + * it's greater than countryCapacity, the returned displayable + * country code will be truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getDisplayCountry(const char* locale, + const char* displayLocale, + UChar* country, + int32_t countryCapacity, + UErrorCode* status); + + +/** + * Gets the variant name suitable for display for the specified locale. + * + * @param locale the locale to get the displayable variant code with. NULL may + * be used to specify the default. + * @param displayLocale Specifies the locale to be used to display the name. In + * other words, if the locale's language code is "en", passing + * Locale::getFrench() for inLocale would result in "Anglais", + * while passing Locale::getGerman() for inLocale would result + * in "Englisch". NULL may be used to specify the default. + * @param variant the displayable variant code for localeID. + * @param variantCapacity the size of the variant buffer to store the + * displayable variant code with. + * @param status error information if retrieving the displayable variant code + * failed. U_USING_DEFAULT_WARNING indicates that no data was + * found from the locale resources and a case canonicalized + * variant code is placed into variant as fallback. + * @return the actual buffer size needed for the displayable variant code. If + * it's greater than variantCapacity, the returned displayable + * variant code will be truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getDisplayVariant(const char* locale, + const char* displayLocale, + UChar* variant, + int32_t variantCapacity, + UErrorCode* status); + +/** + * Gets the keyword name suitable for display for the specified locale. E.g: + * for the locale string de_DE\@collation=PHONEBOOK, this API gets the display + * string for the keyword collation. + * Usage: + * + * UErrorCode status = U_ZERO_ERROR; + * const char* keyword =NULL; + * int32_t keywordLen = 0; + * int32_t keywordCount = 0; + * UChar displayKeyword[256]; + * int32_t displayKeywordLen = 0; + * UEnumeration* keywordEnum = uloc_openKeywords("de_DE@collation=PHONEBOOK;calendar=TRADITIONAL", &status); + * for(keywordCount = uenum_count(keywordEnum, &status); keywordCount > 0 ; keywordCount--){ + * if(U_FAILURE(status)){ + * ...something went wrong so handle the error... + * break; + * } + * // the uenum_next returns NUL terminated string + * keyword = uenum_next(keywordEnum, &keywordLen, &status); + * displayKeywordLen = uloc_getDisplayKeyword(keyword, "en_US", displayKeyword, 256); + * ... do something interesting ..... + * } + * uenum_close(keywordEnum); + * + * @param keyword The keyword whose display string needs to be returned. + * @param displayLocale Specifies the locale to be used to display the name. In other words, + * if the locale's language code is "en", passing Locale::getFrench() for + * inLocale would result in "Anglais", while passing Locale::getGerman() + * for inLocale would result in "Englisch". NULL may be used to specify the default. + * @param dest the buffer to which the displayable keyword should be written. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param status error information if retrieving the displayable string failed. + * Should not be NULL and should not indicate failure on entry. + * U_USING_DEFAULT_WARNING indicates that no data was found from the locale + * resources and the keyword is placed into dest as fallback. + * @return the actual buffer size needed for the displayable variant code. + * @see #uloc_openKeywords + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getDisplayKeyword(const char* keyword, + const char* displayLocale, + UChar* dest, + int32_t destCapacity, + UErrorCode* status); +/** + * Gets the value of the keyword suitable for display for the specified locale. + * E.g: for the locale string de_DE\@collation=PHONEBOOK, this API gets the display + * string for PHONEBOOK, in the display locale, when "collation" is specified as the keyword. + * + * @param locale The locale to get the displayable variant code with. NULL may be used to specify the default. + * @param keyword The keyword for whose value should be used. + * @param displayLocale Specifies the locale to be used to display the name. In other words, + * if the locale's language code is "en", passing Locale::getFrench() for + * inLocale would result in "Anglais", while passing Locale::getGerman() + * for inLocale would result in "Englisch". NULL may be used to specify the default. + * @param dest the buffer to which the displayable keyword should be written. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param status error information if retrieving the displayable string failed. + * Should not be NULL and must not indicate failure on entry. + * U_USING_DEFAULT_WARNING indicates that no data was found from the locale + * resources and the value of the keyword is placed into dest as fallback. + * @return the actual buffer size needed for the displayable variant code. + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getDisplayKeywordValue( const char* locale, + const char* keyword, + const char* displayLocale, + UChar* dest, + int32_t destCapacity, + UErrorCode* status); +/** + * Gets the full name suitable for display for the specified locale. + * + * @param localeID the locale to get the displayable name with. NULL may be used to specify the default. + * @param inLocaleID Specifies the locale to be used to display the name. In other words, + * if the locale's language code is "en", passing Locale::getFrench() for + * inLocale would result in "Anglais", while passing Locale::getGerman() + * for inLocale would result in "Englisch". NULL may be used to specify the default. + * @param result the displayable name for localeID + * @param maxResultSize the size of the name buffer to store the + * displayable full name with + * @param err error information if retrieving the displayable name failed + * @return the actual buffer size needed for the displayable name. If it's greater + * than maxResultSize, the returned displayable name will be truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getDisplayName(const char* localeID, + const char* inLocaleID, + UChar* result, + int32_t maxResultSize, + UErrorCode* err); + + +/** + * Gets the specified locale from a list of available locales. + * + * This method corresponds to uloc_openAvailableByType called with the + * ULOC_AVAILABLE_DEFAULT type argument. + * + * The return value is a pointer to an item of a locale name array. Both this + * array and the pointers it contains are owned by ICU and should not be + * deleted or written through by the caller. The locale name is terminated by + * a null pointer. + * + * @param n the specific locale name index of the available locale list; + * should not exceed the number returned by uloc_countAvailable. + * @return a specified locale name of all available locales + * @stable ICU 2.0 + */ +U_CAPI const char* U_EXPORT2 +uloc_getAvailable(int32_t n); + +/** + * Gets the size of the all available locale list. + * + * @return the size of the locale list + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 uloc_countAvailable(void); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * Types for uloc_getAvailableByType and uloc_countAvailableByType. + * + * @stable ICU 65 + */ +typedef enum ULocAvailableType { + /** + * Locales that return data when passed to ICU APIs, + * but not including legacy or alias locales. + * + * @stable ICU 65 + */ + ULOC_AVAILABLE_DEFAULT, + + /** + * Legacy or alias locales that return data when passed to ICU APIs. + * Examples of supported legacy or alias locales: + * + * - iw (alias to he) + * - mo (alias to ro) + * - zh_CN (alias to zh_Hans_CN) + * - sr_BA (alias to sr_Cyrl_BA) + * - ars (alias to ar_SA) + * + * The locales in this set are disjoint from the ones in + * ULOC_AVAILABLE_DEFAULT. To get both sets at the same time, use + * ULOC_AVAILABLE_WITH_LEGACY_ALIASES. + * + * @stable ICU 65 + */ + ULOC_AVAILABLE_ONLY_LEGACY_ALIASES, + + /** + * The union of the locales in ULOC_AVAILABLE_DEFAULT and + * ULOC_AVAILABLE_ONLY_LEGACY_ALIAS. + * + * @stable ICU 65 + */ + ULOC_AVAILABLE_WITH_LEGACY_ALIASES, + +} ULocAvailableType; + +/** + * Gets a list of available locales according to the type argument, allowing + * the user to access different sets of supported locales in ICU. + * + * The returned UEnumeration must be closed by the caller. + * + * @param type Type choice from ULocAvailableType. + * @param status Set if an error occurred. + * @return a UEnumeration owned by the caller, or nullptr on failure. + * @stable ICU 65 + */ +U_CAPI UEnumeration* U_EXPORT2 +uloc_openAvailableByType(ULocAvailableType type, UErrorCode* status); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * + * Gets a list of all available 2-letter language codes defined in ISO 639, + * plus additional 3-letter codes determined to be useful for locale generation as + * defined by Unicode CLDR. This is a pointer + * to an array of pointers to arrays of char. All of these pointers are owned + * by ICU-- do not delete them, and do not write through them. The array is + * terminated with a null pointer. + * @return a list of all available language codes + * @stable ICU 2.0 + */ +U_CAPI const char* const* U_EXPORT2 +uloc_getISOLanguages(void); + +/** + * + * Gets a list of all available 2-letter country codes defined in ISO 639. This is a + * pointer to an array of pointers to arrays of char. All of these pointers are + * owned by ICU-- do not delete them, and do not write through them. The array is + * terminated with a null pointer. + * @return a list of all available country codes + * @stable ICU 2.0 + */ +U_CAPI const char* const* U_EXPORT2 +uloc_getISOCountries(void); + +/** + * Truncate the locale ID string to get the parent locale ID. + * Copies the part of the string before the last underscore. + * The parent locale ID will be an empty string if there is no + * underscore, or if there is only one underscore at localeID[0]. + * + * @param localeID Input locale ID string. + * @param parent Output string buffer for the parent locale ID. + * @param parentCapacity Size of the output buffer. + * @param err A UErrorCode value. + * @return The length of the parent locale ID. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getParent(const char* localeID, + char* parent, + int32_t parentCapacity, + UErrorCode* err); + + + + +/** + * Gets the full name for the specified locale, like uloc_getName(), + * but without keywords. + * + * Note: This has the effect of 'canonicalizing' the string to + * a certain extent. Upper and lower case are set as needed, + * and if the components were in 'POSIX' format they are changed to + * ICU format. It does NOT map aliased names in any way. + * See the top of this header file. + * + * This API strips off the keyword part, so "de_DE\@collation=phonebook" + * will become "de_DE". + * This API supports preflighting. + * + * @param localeID the locale to get the full name with + * @param name fill in buffer for the name without keywords. + * @param nameCapacity capacity of the fill in buffer. + * @param err error information if retrieving the full name failed + * @return the actual buffer size needed for the full name. If it's greater + * than nameCapacity, the returned full name will be truncated. + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getBaseName(const char* localeID, + char* name, + int32_t nameCapacity, + UErrorCode* err); + +/** + * Gets an enumeration of keywords for the specified locale. Enumeration + * must get disposed of by the client using uenum_close function. + * + * @param localeID the locale to get the variant code with + * @param status error information if retrieving the keywords failed + * @return enumeration of keywords or NULL if there are no keywords. + * @stable ICU 2.8 + */ +U_CAPI UEnumeration* U_EXPORT2 +uloc_openKeywords(const char* localeID, + UErrorCode* status); + +/** + * Get the value for a keyword. Locale name does not need to be normalized. + * + * @param localeID locale name containing the keyword ("de_DE@currency=EURO;collation=PHONEBOOK") + * @param keywordName name of the keyword for which we want the value; must not be + * NULL or empty, and must consist only of [A-Za-z0-9]. Case insensitive. + * @param buffer receiving buffer + * @param bufferCapacity capacity of receiving buffer + * @param status containing error code: e.g. buffer not big enough or ill-formed localeID + * or keywordName parameters. + * @return the length of keyword value + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getKeywordValue(const char* localeID, + const char* keywordName, + char* buffer, int32_t bufferCapacity, + UErrorCode* status); + + +/** + * Sets or removes the value of the specified keyword. + * + * For removing all keywords, use uloc_getBaseName(). + * + * NOTE: Unlike almost every other ICU function which takes a + * buffer, this function will NOT truncate the output text, and will + * not update the buffer with unterminated text setting a status of + * U_STRING_NOT_TERMINATED_WARNING. If a BUFFER_OVERFLOW_ERROR is received, + * it means a terminated version of the updated locale ID would not fit + * in the buffer, and the original buffer is untouched. This is done to + * prevent incorrect or possibly even malformed locales from being generated + * and used. + * + * @param keywordName name of the keyword to be set; must not be + * NULL or empty, and must consist only of [A-Za-z0-9]. Case insensitive. + * @param keywordValue value of the keyword to be set. If 0-length or + * NULL, will result in the keyword being removed; no error is given if + * that keyword does not exist. Otherwise, must consist only of + * [A-Za-z0-9] and [/_+-]. + * @param buffer input buffer containing well-formed locale ID to be + * modified. + * @param bufferCapacity capacity of receiving buffer + * @param status containing error code: e.g. buffer not big enough + * or ill-formed keywordName or keywordValue parameters, or ill-formed + * locale ID in buffer on input. + * @return the length needed for the buffer + * @see uloc_getKeywordValue + * @stable ICU 3.2 + */ +U_CAPI int32_t U_EXPORT2 +uloc_setKeywordValue(const char* keywordName, + const char* keywordValue, + char* buffer, int32_t bufferCapacity, + UErrorCode* status); + +/** + * Returns whether the locale's script is written right-to-left. + * If there is no script subtag, then the likely script is used, see uloc_addLikelySubtags(). + * If no likely script is known, then false is returned. + * + * A script is right-to-left according to the CLDR script metadata + * which corresponds to whether the script's letters have Bidi_Class=R or AL. + * + * Returns true for "ar" and "en-Hebr", false for "zh" and "fa-Cyrl". + * + * @param locale input locale ID + * @return true if the locale's script is written right-to-left + * @stable ICU 54 + */ +U_CAPI UBool U_EXPORT2 +uloc_isRightToLeft(const char *locale); + +/** + * enums for the return value for the character and line orientation + * functions. + * @stable ICU 4.0 + */ +typedef enum { + ULOC_LAYOUT_LTR = 0, /* left-to-right. */ + ULOC_LAYOUT_RTL = 1, /* right-to-left. */ + ULOC_LAYOUT_TTB = 2, /* top-to-bottom. */ + ULOC_LAYOUT_BTT = 3, /* bottom-to-top. */ + ULOC_LAYOUT_UNKNOWN +} ULayoutType; + +/** + * Get the layout character orientation for the specified locale. + * + * @param localeId locale name + * @param status Error status + * @return an enum indicating the layout orientation for characters. + * @stable ICU 4.0 + */ +U_CAPI ULayoutType U_EXPORT2 +uloc_getCharacterOrientation(const char* localeId, + UErrorCode *status); + +/** + * Get the layout line orientation for the specified locale. + * + * @param localeId locale name + * @param status Error status + * @return an enum indicating the layout orientation for lines. + * @stable ICU 4.0 + */ +U_CAPI ULayoutType U_EXPORT2 +uloc_getLineOrientation(const char* localeId, + UErrorCode *status); + +/** + * Output values which uloc_acceptLanguage() writes to the 'outResult' parameter. + * + * @see uloc_acceptLanguageFromHTTP + * @see uloc_acceptLanguage + * @stable ICU 3.2 + */ +typedef enum { + /** + * No exact match was found. + * @stable ICU 3.2 + */ + ULOC_ACCEPT_FAILED = 0, + /** + * An exact match was found. + * @stable ICU 3.2 + */ + ULOC_ACCEPT_VALID = 1, + /** + * A fallback was found. For example, the Accept-Language list includes 'ja_JP' + * and is matched with available locale 'ja'. + * @stable ICU 3.2 + */ + ULOC_ACCEPT_FALLBACK = 2 /* */ +} UAcceptResult; + +/** + * Based on a HTTP header from a web browser and a list of available locales, + * determine an acceptable locale for the user. + * + * This is a thin wrapper over C++ class LocaleMatcher. + * + * @param result - buffer to accept the result locale + * @param resultAvailable the size of the result buffer. + * @param outResult - An out parameter that contains the fallback status + * @param httpAcceptLanguage - "Accept-Language:" header as per HTTP. + * @param availableLocales - list of available locales to match + * @param status ICU error code. Its input value must pass the U_SUCCESS() test, + * or else the function returns immediately. Check for U_FAILURE() + * on output or use with function chaining. (See User Guide for details.) + * @return length needed for the locale. + * @stable ICU 3.2 + */ +U_CAPI int32_t U_EXPORT2 +uloc_acceptLanguageFromHTTP(char *result, int32_t resultAvailable, + UAcceptResult *outResult, + const char *httpAcceptLanguage, + UEnumeration* availableLocales, + UErrorCode *status); + +/** + * Based on a list of available locales, + * determine an acceptable locale for the user. + * + * This is a thin wrapper over C++ class LocaleMatcher. + * + * @param result - buffer to accept the result locale + * @param resultAvailable the size of the result buffer. + * @param outResult - An out parameter that contains the fallback status + * @param acceptList - list of acceptable languages + * @param acceptListCount - count of acceptList items + * @param availableLocales - list of available locales to match + * @param status ICU error code. Its input value must pass the U_SUCCESS() test, + * or else the function returns immediately. Check for U_FAILURE() + * on output or use with function chaining. (See User Guide for details.) + * @return length needed for the locale. + * @stable ICU 3.2 + */ +U_CAPI int32_t U_EXPORT2 +uloc_acceptLanguage(char *result, int32_t resultAvailable, + UAcceptResult *outResult, const char **acceptList, + int32_t acceptListCount, + UEnumeration* availableLocales, + UErrorCode *status); + + +/** + * Gets the ICU locale ID for the specified Win32 LCID value. + * + * @param hostID the Win32 LCID to translate + * @param locale the output buffer for the ICU locale ID, which will be NUL-terminated + * if there is room. + * @param localeCapacity the size of the output buffer + * @param status an error is returned if the LCID is unrecognized or the output buffer + * is too small + * @return actual the actual size of the locale ID, not including NUL-termination + * @stable ICU 3.8 + */ +U_CAPI int32_t U_EXPORT2 +uloc_getLocaleForLCID(uint32_t hostID, char *locale, int32_t localeCapacity, + UErrorCode *status); + + +/** + * Add the likely subtags for a provided locale ID, per the algorithm described + * in the following CLDR technical report: + * + * http://www.unicode.org/reports/tr35/#Likely_Subtags + * + * If localeID is already in the maximal form, or there is no data available + * for maximization, it will be copied to the output buffer. For example, + * "und-Zzzz" cannot be maximized, since there is no reasonable maximization. + * + * Examples: + * + * "en" maximizes to "en_Latn_US" + * + * "de" maximizes to "de_Latn_US" + * + * "sr" maximizes to "sr_Cyrl_RS" + * + * "sh" maximizes to "sr_Latn_RS" (Note this will not reverse.) + * + * "zh_Hani" maximizes to "zh_Hans_CN" (Note this will not reverse.) + * + * @param localeID The locale to maximize + * @param maximizedLocaleID The maximized locale + * @param maximizedLocaleIDCapacity The capacity of the maximizedLocaleID buffer + * @param err Error information if maximizing the locale failed. If the length + * of the localeID and the null-terminator is greater than the maximum allowed size, + * or the localeId is not well-formed, the error code is U_ILLEGAL_ARGUMENT_ERROR. + * @return The actual buffer size needed for the maximized locale. If it's + * greater than maximizedLocaleIDCapacity, the returned ID will be truncated. + * On error, the return value is -1. + * @stable ICU 4.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_addLikelySubtags(const char* localeID, + char* maximizedLocaleID, + int32_t maximizedLocaleIDCapacity, + UErrorCode* err); + + +/** + * Minimize the subtags for a provided locale ID, per the algorithm described + * in the following CLDR technical report: + * + * http://www.unicode.org/reports/tr35/#Likely_Subtags + * + * If localeID is already in the minimal form, or there is no data available + * for minimization, it will be copied to the output buffer. Since the + * minimization algorithm relies on proper maximization, see the comments + * for uloc_addLikelySubtags for reasons why there might not be any data. + * + * Examples: + * + * "en_Latn_US" minimizes to "en" + * + * "de_Latn_US" minimizes to "de" + * + * "sr_Cyrl_RS" minimizes to "sr" + * + * "zh_Hant_TW" minimizes to "zh_TW" (The region is preferred to the + * script, and minimizing to "zh" would imply "zh_Hans_CN".) + * + * @param localeID The locale to minimize + * @param minimizedLocaleID The minimized locale + * @param minimizedLocaleIDCapacity The capacity of the minimizedLocaleID buffer + * @param err Error information if minimizing the locale failed. If the length + * of the localeID and the null-terminator is greater than the maximum allowed size, + * or the localeId is not well-formed, the error code is U_ILLEGAL_ARGUMENT_ERROR. + * @return The actual buffer size needed for the minimized locale. If it's + * greater than minimizedLocaleIDCapacity, the returned ID will be truncated. + * On error, the return value is -1. + * @stable ICU 4.0 + */ +U_CAPI int32_t U_EXPORT2 +uloc_minimizeSubtags(const char* localeID, + char* minimizedLocaleID, + int32_t minimizedLocaleIDCapacity, + UErrorCode* err); + +/** + * Returns a locale ID for the specified BCP47 language tag string. + * If the specified language tag contains any ill-formed subtags, + * the first such subtag and all following subtags are ignored. + *

+ * This implements the 'Language-Tag' production of BCP 47, and so + * supports legacy language tags (marked as “Type: grandfathered†in BCP 47) + * (regular and irregular) as well as private use language tags. + * + * Private use tags are represented as 'x-whatever', + * and legacy tags are converted to their canonical replacements where they exist. + * + * Note that a few legacy tags have no modern replacement; + * these will be converted using the fallback described in + * the first paragraph, so some information might be lost. + * + * @param langtag the input BCP47 language tag. + * @param localeID the output buffer receiving a locale ID for the + * specified BCP47 language tag. + * @param localeIDCapacity the size of the locale ID output buffer. + * @param parsedLength if not NULL, successfully parsed length + * for the input language tag is set. + * @param err error information if receiving the locald ID + * failed. + * @return the length of the locale ID. + * @stable ICU 4.2 + */ +U_CAPI int32_t U_EXPORT2 +uloc_forLanguageTag(const char* langtag, + char* localeID, + int32_t localeIDCapacity, + int32_t* parsedLength, + UErrorCode* err); + +/** + * Returns a well-formed language tag for this locale ID. + *

+ * Note: When strict is false, any locale + * fields which do not satisfy the BCP47 syntax requirement will + * be omitted from the result. When strict is + * true, this function sets U_ILLEGAL_ARGUMENT_ERROR to the + * err if any locale fields do not satisfy the + * BCP47 syntax requirement. + * @param localeID the input locale ID + * @param langtag the output buffer receiving BCP47 language + * tag for the locale ID. + * @param langtagCapacity the size of the BCP47 language tag + * output buffer. + * @param strict boolean value indicating if the function returns + * an error for an ill-formed input locale ID. + * @param err error information if receiving the language + * tag failed. + * @return The length of the BCP47 language tag. + * @stable ICU 4.2 + */ +U_CAPI int32_t U_EXPORT2 +uloc_toLanguageTag(const char* localeID, + char* langtag, + int32_t langtagCapacity, + UBool strict, + UErrorCode* err); + +/** + * Converts the specified keyword (legacy key, or BCP 47 Unicode locale + * extension key) to the equivalent BCP 47 Unicode locale extension key. + * For example, BCP 47 Unicode locale extension key "co" is returned for + * the input keyword "collation". + *

+ * When the specified keyword is unknown, but satisfies the BCP syntax, + * then the pointer to the input keyword itself will be returned. + * For example, + * uloc_toUnicodeLocaleKey("ZZ") returns "ZZ". + * + * @param keyword the input locale keyword (either legacy key + * such as "collation" or BCP 47 Unicode locale extension + * key such as "co"). + * @return the well-formed BCP 47 Unicode locale extension key, + * or NULL if the specified locale keyword cannot be + * mapped to a well-formed BCP 47 Unicode locale extension + * key. + * @see uloc_toLegacyKey + * @stable ICU 54 + */ +U_CAPI const char* U_EXPORT2 +uloc_toUnicodeLocaleKey(const char* keyword); + +/** + * Converts the specified keyword value (legacy type, or BCP 47 + * Unicode locale extension type) to the well-formed BCP 47 Unicode locale + * extension type for the specified keyword (category). For example, BCP 47 + * Unicode locale extension type "phonebk" is returned for the input + * keyword value "phonebook", with the keyword "collation" (or "co"). + *

+ * When the specified keyword is not recognized, but the specified value + * satisfies the syntax of the BCP 47 Unicode locale extension type, + * or when the specified keyword allows 'variable' type and the specified + * value satisfies the syntax, then the pointer to the input type value itself + * will be returned. + * For example, + * uloc_toUnicodeLocaleType("Foo", "Bar") returns "Bar", + * uloc_toUnicodeLocaleType("variableTop", "00A4") returns "00A4". + * + * @param keyword the locale keyword (either legacy key such as + * "collation" or BCP 47 Unicode locale extension + * key such as "co"). + * @param value the locale keyword value (either legacy type + * such as "phonebook" or BCP 47 Unicode locale extension + * type such as "phonebk"). + * @return the well-formed BCP47 Unicode locale extension type, + * or NULL if the locale keyword value cannot be mapped to + * a well-formed BCP 47 Unicode locale extension type. + * @see uloc_toLegacyType + * @stable ICU 54 + */ +U_CAPI const char* U_EXPORT2 +uloc_toUnicodeLocaleType(const char* keyword, const char* value); + +/** + * Converts the specified keyword (BCP 47 Unicode locale extension key, or + * legacy key) to the legacy key. For example, legacy key "collation" is + * returned for the input BCP 47 Unicode locale extension key "co". + * + * @param keyword the input locale keyword (either BCP 47 Unicode locale + * extension key or legacy key). + * @return the well-formed legacy key, or NULL if the specified + * keyword cannot be mapped to a well-formed legacy key. + * @see toUnicodeLocaleKey + * @stable ICU 54 + */ +U_CAPI const char* U_EXPORT2 +uloc_toLegacyKey(const char* keyword); + +/** + * Converts the specified keyword value (BCP 47 Unicode locale extension type, + * or legacy type or type alias) to the canonical legacy type. For example, + * the legacy type "phonebook" is returned for the input BCP 47 Unicode + * locale extension type "phonebk" with the keyword "collation" (or "co"). + *

+ * When the specified keyword is not recognized, but the specified value + * satisfies the syntax of legacy key, or when the specified keyword + * allows 'variable' type and the specified value satisfies the syntax, + * then the pointer to the input type value itself will be returned. + * For example, + * uloc_toLegacyType("Foo", "Bar") returns "Bar", + * uloc_toLegacyType("vt", "00A4") returns "00A4". + * + * @param keyword the locale keyword (either legacy keyword such as + * "collation" or BCP 47 Unicode locale extension + * key such as "co"). + * @param value the locale keyword value (either BCP 47 Unicode locale + * extension type such as "phonebk" or legacy keyword value + * such as "phonebook"). + * @return the well-formed legacy type, or NULL if the specified + * keyword value cannot be mapped to a well-formed legacy + * type. + * @see toUnicodeLocaleType + * @stable ICU 54 + */ +U_CAPI const char* U_EXPORT2 +uloc_toLegacyType(const char* keyword, const char* value); + +#endif /*_ULOC*/ + +// ures.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 1997-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* +* File URES.H (formerly CRESBUND.H) +* +* Modification History: +* +* Date Name Description +* 04/01/97 aliu Creation. +* 02/22/99 damiba overhaul. +* 04/04/99 helena Fixed internal header inclusion. +* 04/15/99 Madhu Updated Javadoc +* 06/14/99 stephen Removed functions taking a filename suffix. +* 07/20/99 stephen Language-independent typedef to void* +* 11/09/99 weiv Added ures_getLocale() +* 06/24/02 weiv Added support for resource sharing +****************************************************************************** +*/ + +#ifndef URES_H +#define URES_H + + + +/** + * \file + * \brief C API: Resource Bundle + * + *

C API: Resource Bundle

+ * + * C API representing a collection of resource information pertaining to a given + * locale. A resource bundle provides a way of accessing locale- specific information in + * a data file. You create a resource bundle that manages the resources for a given + * locale and then ask it for individual resources. + *

+ * Resource bundles in ICU4C are currently defined using text files which conform to the following + * BNF definition. + * More on resource bundle concepts and syntax can be found in the + * Users Guide. + *

+ */ + +/** + * UResourceBundle is an opaque type for handles for resource bundles in C APIs. + * @stable ICU 2.0 + */ +struct UResourceBundle; + +/** + * @stable ICU 2.0 + */ +typedef struct UResourceBundle UResourceBundle; + +/** + * Numeric constants for types of resource items. + * @see ures_getType + * @stable ICU 2.0 + */ +typedef enum { + /** Resource type constant for "no resource". @stable ICU 2.6 */ + URES_NONE=-1, + + /** Resource type constant for 16-bit Unicode strings. @stable ICU 2.6 */ + URES_STRING=0, + + /** Resource type constant for binary data. @stable ICU 2.6 */ + URES_BINARY=1, + + /** Resource type constant for tables of key-value pairs. @stable ICU 2.6 */ + URES_TABLE=2, + + /** + * Resource type constant for aliases; + * internally stores a string which identifies the actual resource + * storing the data (can be in a different resource bundle). + * Resolved internally before delivering the actual resource through the API. + * @stable ICU 2.6 + */ + URES_ALIAS=3, + + /** + * Resource type constant for a single 28-bit integer, interpreted as + * signed or unsigned by the ures_getInt() or ures_getUInt() function. + * @see ures_getInt + * @see ures_getUInt + * @stable ICU 2.6 + */ + URES_INT=7, + + /** Resource type constant for arrays of resources. @stable ICU 2.6 */ + URES_ARRAY=8, + + /** + * Resource type constant for vectors of 32-bit integers. + * @see ures_getIntVector + * @stable ICU 2.6 + */ + URES_INT_VECTOR = 14, +} UResType; + +/* + * Functions to create and destroy resource bundles. + */ + +/** + * Opens a UResourceBundle, from which users can extract strings by using + * their corresponding keys. + * Note that the caller is responsible of calling ures_close on each successfully + * opened resource bundle. + * @param packageName The packageName and locale together point to an ICU udata object, + * as defined by udata_open( packageName, "res", locale, err) + * or equivalent. Typically, packageName will refer to a (.dat) file, or to + * a package registered with udata_setAppData(). Using a full file or directory + * pathname for packageName is deprecated. If NULL, ICU data will be used. + * @param locale specifies the locale for which we want to open the resource + * if NULL, the default locale will be used. If strlen(locale) == 0 + * root locale will be used. + * + * @param status fills in the outgoing error code. + * The UErrorCode err parameter is used to return status information to the user. To + * check whether the construction succeeded or not, you should check the value of + * U_SUCCESS(err). If you wish more detailed information, you can check for + * informational status results which still indicate success. U_USING_FALLBACK_WARNING + * indicates that a fall back locale was used. For example, 'de_CH' was requested, + * but nothing was found there, so 'de' was used. U_USING_DEFAULT_WARNING indicates that + * the default locale data or root locale data was used; neither the requested locale + * nor any of its fall back locales could be found. Please see the users guide for more + * information on this topic. + * @return a newly allocated resource bundle. + * @see ures_close + * @stable ICU 2.0 + */ +U_CAPI UResourceBundle* U_EXPORT2 +ures_open(const char* packageName, + const char* locale, + UErrorCode* status); + + +/** This function does not care what kind of localeID is passed in. It simply opens a bundle with + * that name. Fallback mechanism is disabled for the new bundle. If the requested bundle contains + * an %%ALIAS directive, the results are undefined. + * @param packageName The packageName and locale together point to an ICU udata object, + * as defined by udata_open( packageName, "res", locale, err) + * or equivalent. Typically, packageName will refer to a (.dat) file, or to + * a package registered with udata_setAppData(). Using a full file or directory + * pathname for packageName is deprecated. If NULL, ICU data will be used. + * @param locale specifies the locale for which we want to open the resource + * if NULL, the default locale will be used. If strlen(locale) == 0 + * root locale will be used. + * + * @param status fills in the outgoing error code. Either U_ZERO_ERROR or U_MISSING_RESOURCE_ERROR + * @return a newly allocated resource bundle or NULL if it doesn't exist. + * @see ures_close + * @stable ICU 2.0 + */ +U_CAPI UResourceBundle* U_EXPORT2 +ures_openDirect(const char* packageName, + const char* locale, + UErrorCode* status); + +/** + * Same as ures_open() but takes a const UChar *path. + * This path will be converted to char * using the default converter, + * then ures_open() is called. + * + * @param packageName The packageName and locale together point to an ICU udata object, + * as defined by udata_open( packageName, "res", locale, err) + * or equivalent. Typically, packageName will refer to a (.dat) file, or to + * a package registered with udata_setAppData(). Using a full file or directory + * pathname for packageName is deprecated. If NULL, ICU data will be used. + * @param locale specifies the locale for which we want to open the resource + * if NULL, the default locale will be used. If strlen(locale) == 0 + * root locale will be used. + * @param status fills in the outgoing error code. + * @return a newly allocated resource bundle. + * @see ures_open + * @stable ICU 2.0 + */ +U_CAPI UResourceBundle* U_EXPORT2 +ures_openU(const UChar* packageName, + const char* locale, + UErrorCode* status); + + +/** + * Close a resource bundle, all pointers returned from the various ures_getXXX calls + * on this particular bundle should be considered invalid henceforth. + * + * @param resourceBundle a pointer to a resourceBundle struct. Can be NULL. + * @see ures_open + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ures_close(UResourceBundle* resourceBundle); + + + +/** + * Return the version number associated with this ResourceBundle as an + * UVersionInfo array. + * + * @param resB The resource bundle for which the version is checked. + * @param versionInfo A UVersionInfo array that is filled with the version number + * as specified in the resource bundle or its parent. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ures_getVersion(const UResourceBundle* resB, + UVersionInfo versionInfo); + + +/** + * Return the name of the Locale associated with this ResourceBundle. + * You can choose between requested, valid and real locale. + * + * @param resourceBundle resource bundle in question + * @param type You can choose between requested, valid and actual + * locale. For description see the definition of + * ULocDataLocaleType in uloc.h + * @param status just for catching illegal arguments + * @return A Locale name + * @stable ICU 2.8 + */ +U_CAPI const char* U_EXPORT2 +ures_getLocaleByType(const UResourceBundle* resourceBundle, + ULocDataLocaleType type, + UErrorCode* status); + + + +/** + * Returns a string from a string resource type + * + * @param resourceBundle a string resource + * @param len fills in the length of resulting string + * @param status fills in the outgoing error code + * could be U_MISSING_RESOURCE_ERROR if the key is not found + * Always check the value of status. Don't count on returning NULL. + * could be a non-failing error + * e.g.: U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING + * @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file. + * @see ures_getBinary + * @see ures_getIntVector + * @see ures_getInt + * @see ures_getUInt + * @stable ICU 2.0 + */ +U_CAPI const UChar* U_EXPORT2 +ures_getString(const UResourceBundle* resourceBundle, + int32_t* len, + UErrorCode* status); + +/** + * Returns a UTF-8 string from a string resource. + * The UTF-8 string may be returnable directly as a pointer, or + * it may need to be copied, or transformed from UTF-16 using u_strToUTF8() + * or equivalent. + * + * If forceCopy==true, then the string is always written to the dest buffer + * and dest is returned. + * + * If forceCopy==false, then the string is returned as a pointer if possible, + * without needing a dest buffer (it can be NULL). If the string needs to be + * copied or transformed, then it may be placed into dest at an arbitrary offset. + * + * If the string is to be written to dest, then U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING are set if appropriate, as usual. + * + * If the string is transformed from UTF-16, then a conversion error may occur + * if an unpaired surrogate is encountered. If the function is successful, then + * the output UTF-8 string is always well-formed. + * + * @param resB Resource bundle. + * @param dest Destination buffer. Can be NULL only if capacity=*length==0. + * @param length Input: Capacity of destination buffer. + * Output: Actual length of the UTF-8 string, not counting the + * terminating NUL, even in case of U_BUFFER_OVERFLOW_ERROR. + * Can be NULL, meaning capacity=0 and the string length is not + * returned to the caller. + * @param forceCopy If true, then the output string will always be written to + * dest, with U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING set if appropriate. + * If false, then the dest buffer may or may not contain a + * copy of the string. dest may or may not be modified. + * If a copy needs to be written, then the UErrorCode parameter + * indicates overflow etc. as usual. + * @param status Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to the UTF-8 string. It may be dest, or at some offset + * from dest (only if !forceCopy), or in unrelated memory. + * Always NUL-terminated unless the string was written to dest and + * length==capacity (in which case U_STRING_NOT_TERMINATED_WARNING is set). + * + * @see ures_getString + * @see u_strToUTF8 + * @stable ICU 3.6 + */ +U_CAPI const char * U_EXPORT2 +ures_getUTF8String(const UResourceBundle *resB, + char *dest, int32_t *length, + UBool forceCopy, + UErrorCode *status); + +/** + * Returns a binary data from a binary resource. + * + * @param resourceBundle a string resource + * @param len fills in the length of resulting byte chunk + * @param status fills in the outgoing error code + * could be U_MISSING_RESOURCE_ERROR if the key is not found + * Always check the value of status. Don't count on returning NULL. + * could be a non-failing error + * e.g.: U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING + * @return a pointer to a chunk of unsigned bytes which live in a memory mapped/DLL file. + * @see ures_getString + * @see ures_getIntVector + * @see ures_getInt + * @see ures_getUInt + * @stable ICU 2.0 + */ +U_CAPI const uint8_t* U_EXPORT2 +ures_getBinary(const UResourceBundle* resourceBundle, + int32_t* len, + UErrorCode* status); + +/** + * Returns a 32 bit integer array from a resource. + * + * @param resourceBundle an int vector resource + * @param len fills in the length of resulting byte chunk + * @param status fills in the outgoing error code + * could be U_MISSING_RESOURCE_ERROR if the key is not found + * Always check the value of status. Don't count on returning NULL. + * could be a non-failing error + * e.g.: U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING + * @return a pointer to a chunk of integers which live in a memory mapped/DLL file. + * @see ures_getBinary + * @see ures_getString + * @see ures_getInt + * @see ures_getUInt + * @stable ICU 2.0 + */ +U_CAPI const int32_t* U_EXPORT2 +ures_getIntVector(const UResourceBundle* resourceBundle, + int32_t* len, + UErrorCode* status); + +/** + * Returns an unsigned integer from a resource. + * This integer is originally 28 bits. + * + * @param resourceBundle a string resource + * @param status fills in the outgoing error code + * could be U_MISSING_RESOURCE_ERROR if the key is not found + * could be a non-failing error + * e.g.: U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING + * @return an integer value + * @see ures_getInt + * @see ures_getIntVector + * @see ures_getBinary + * @see ures_getString + * @stable ICU 2.0 + */ +U_CAPI uint32_t U_EXPORT2 +ures_getUInt(const UResourceBundle* resourceBundle, + UErrorCode *status); + +/** + * Returns a signed integer from a resource. + * This integer is originally 28 bit and the sign gets propagated. + * + * @param resourceBundle a string resource + * @param status fills in the outgoing error code + * could be U_MISSING_RESOURCE_ERROR if the key is not found + * could be a non-failing error + * e.g.: U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING + * @return an integer value + * @see ures_getUInt + * @see ures_getIntVector + * @see ures_getBinary + * @see ures_getString + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ures_getInt(const UResourceBundle* resourceBundle, + UErrorCode *status); + +/** + * Returns the size of a resource. Size for scalar types is always 1, + * and for vector/table types is the number of child resources. + * @warning Integer array is treated as a scalar type. There are no + * APIs to access individual members of an integer array. It + * is always returned as a whole. + * @param resourceBundle a resource + * @return number of resources in a given resource. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ures_getSize(const UResourceBundle *resourceBundle); + +/** + * Returns the type of a resource. Available types are defined in enum UResType + * + * @param resourceBundle a resource + * @return type of the given resource. + * @see UResType + * @stable ICU 2.0 + */ +U_CAPI UResType U_EXPORT2 +ures_getType(const UResourceBundle *resourceBundle); + +/** + * Returns the key associated with a given resource. Not all the resources have a key - only + * those that are members of a table. + * + * @param resourceBundle a resource + * @return a key associated to this resource, or NULL if it doesn't have a key + * @stable ICU 2.0 + */ +U_CAPI const char * U_EXPORT2 +ures_getKey(const UResourceBundle *resourceBundle); + +/* ITERATION API + This API provides means for iterating through a resource +*/ + +/** + * Resets the internal context of a resource so that iteration starts from the first element. + * + * @param resourceBundle a resource + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ures_resetIterator(UResourceBundle *resourceBundle); + +/** + * Checks whether the given resource has another element to iterate over. + * + * @param resourceBundle a resource + * @return true if there are more elements, false if there is no more elements + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +ures_hasNext(const UResourceBundle *resourceBundle); + +/** + * Returns the next resource in a given resource or NULL if there are no more resources + * to iterate over. Features a fill-in parameter. + * + * @param resourceBundle a resource + * @param fillIn if NULL a new UResourceBundle struct is allocated and must be closed by the caller. + * Alternatively, you can supply a struct to be filled by this function. + * @param status fills in the outgoing error code. You may still get a non NULL result even if an + * error occurred. Check status instead. + * @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must close it + * @stable ICU 2.0 + */ +U_CAPI UResourceBundle* U_EXPORT2 +ures_getNextResource(UResourceBundle *resourceBundle, + UResourceBundle *fillIn, + UErrorCode *status); + +/** + * Returns the next string in a given resource or NULL if there are no more resources + * to iterate over. + * + * @param resourceBundle a resource + * @param len fill in length of the string + * @param key fill in for key associated with this string. NULL if no key + * @param status fills in the outgoing error code. If an error occurred, we may return NULL, but don't + * count on it. Check status instead! + * @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file. + * @stable ICU 2.0 + */ +U_CAPI const UChar* U_EXPORT2 +ures_getNextString(UResourceBundle *resourceBundle, + int32_t* len, + const char ** key, + UErrorCode *status); + +/** + * Returns the resource in a given resource at the specified index. Features a fill-in parameter. + * + * @param resourceBundle the resource bundle from which to get a sub-resource + * @param indexR an index to the wanted resource. + * @param fillIn if NULL a new UResourceBundle struct is allocated and must be closed by the caller. + * Alternatively, you can supply a struct to be filled by this function. + * @param status fills in the outgoing error code. Don't count on NULL being returned if an error has + * occurred. Check status instead. + * @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must close it + * @stable ICU 2.0 + */ +U_CAPI UResourceBundle* U_EXPORT2 +ures_getByIndex(const UResourceBundle *resourceBundle, + int32_t indexR, + UResourceBundle *fillIn, + UErrorCode *status); + +/** + * Returns the string in a given resource at the specified index. + * + * @param resourceBundle a resource + * @param indexS an index to the wanted string. + * @param len fill in length of the string + * @param status fills in the outgoing error code. If an error occurred, we may return NULL, but don't + * count on it. Check status instead! + * @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file. + * @stable ICU 2.0 + */ +U_CAPI const UChar* U_EXPORT2 +ures_getStringByIndex(const UResourceBundle *resourceBundle, + int32_t indexS, + int32_t* len, + UErrorCode *status); + +/** + * Returns a UTF-8 string from a resource at the specified index. + * The UTF-8 string may be returnable directly as a pointer, or + * it may need to be copied, or transformed from UTF-16 using u_strToUTF8() + * or equivalent. + * + * If forceCopy==true, then the string is always written to the dest buffer + * and dest is returned. + * + * If forceCopy==false, then the string is returned as a pointer if possible, + * without needing a dest buffer (it can be NULL). If the string needs to be + * copied or transformed, then it may be placed into dest at an arbitrary offset. + * + * If the string is to be written to dest, then U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING are set if appropriate, as usual. + * + * If the string is transformed from UTF-16, then a conversion error may occur + * if an unpaired surrogate is encountered. If the function is successful, then + * the output UTF-8 string is always well-formed. + * + * @param resB Resource bundle. + * @param stringIndex An index to the wanted string. + * @param dest Destination buffer. Can be NULL only if capacity=*length==0. + * @param pLength Input: Capacity of destination buffer. + * Output: Actual length of the UTF-8 string, not counting the + * terminating NUL, even in case of U_BUFFER_OVERFLOW_ERROR. + * Can be NULL, meaning capacity=0 and the string length is not + * returned to the caller. + * @param forceCopy If true, then the output string will always be written to + * dest, with U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING set if appropriate. + * If false, then the dest buffer may or may not contain a + * copy of the string. dest may or may not be modified. + * If a copy needs to be written, then the UErrorCode parameter + * indicates overflow etc. as usual. + * @param status Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to the UTF-8 string. It may be dest, or at some offset + * from dest (only if !forceCopy), or in unrelated memory. + * Always NUL-terminated unless the string was written to dest and + * length==capacity (in which case U_STRING_NOT_TERMINATED_WARNING is set). + * + * @see ures_getStringByIndex + * @see u_strToUTF8 + * @stable ICU 3.6 + */ +U_CAPI const char * U_EXPORT2 +ures_getUTF8StringByIndex(const UResourceBundle *resB, + int32_t stringIndex, + char *dest, int32_t *pLength, + UBool forceCopy, + UErrorCode *status); + +/** + * Returns a resource in a given resource that has a given key. This procedure works only with table + * resources. Features a fill-in parameter. + * + * @param resourceBundle a resource + * @param key a key associated with the wanted resource + * @param fillIn if NULL a new UResourceBundle struct is allocated and must be closed by the caller. + * Alternatively, you can supply a struct to be filled by this function. + * @param status fills in the outgoing error code. + * @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must close it + * @stable ICU 2.0 + */ +U_CAPI UResourceBundle* U_EXPORT2 +ures_getByKey(const UResourceBundle *resourceBundle, + const char* key, + UResourceBundle *fillIn, + UErrorCode *status); + +/** + * Returns a string in a given resource that has a given key. This procedure works only with table + * resources. + * + * @param resB a resource + * @param key a key associated with the wanted string + * @param len fill in length of the string + * @param status fills in the outgoing error code. If an error occurred, we may return NULL, but don't + * count on it. Check status instead! + * @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file. + * @stable ICU 2.0 + */ +U_CAPI const UChar* U_EXPORT2 +ures_getStringByKey(const UResourceBundle *resB, + const char* key, + int32_t* len, + UErrorCode *status); + +/** + * Returns a UTF-8 string from a resource and a key. + * This function works only with table resources. + * + * The UTF-8 string may be returnable directly as a pointer, or + * it may need to be copied, or transformed from UTF-16 using u_strToUTF8() + * or equivalent. + * + * If forceCopy==true, then the string is always written to the dest buffer + * and dest is returned. + * + * If forceCopy==false, then the string is returned as a pointer if possible, + * without needing a dest buffer (it can be NULL). If the string needs to be + * copied or transformed, then it may be placed into dest at an arbitrary offset. + * + * If the string is to be written to dest, then U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING are set if appropriate, as usual. + * + * If the string is transformed from UTF-16, then a conversion error may occur + * if an unpaired surrogate is encountered. If the function is successful, then + * the output UTF-8 string is always well-formed. + * + * @param resB Resource bundle. + * @param key A key associated with the wanted resource + * @param dest Destination buffer. Can be NULL only if capacity=*length==0. + * @param pLength Input: Capacity of destination buffer. + * Output: Actual length of the UTF-8 string, not counting the + * terminating NUL, even in case of U_BUFFER_OVERFLOW_ERROR. + * Can be NULL, meaning capacity=0 and the string length is not + * returned to the caller. + * @param forceCopy If true, then the output string will always be written to + * dest, with U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING set if appropriate. + * If false, then the dest buffer may or may not contain a + * copy of the string. dest may or may not be modified. + * If a copy needs to be written, then the UErrorCode parameter + * indicates overflow etc. as usual. + * @param status Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to the UTF-8 string. It may be dest, or at some offset + * from dest (only if !forceCopy), or in unrelated memory. + * Always NUL-terminated unless the string was written to dest and + * length==capacity (in which case U_STRING_NOT_TERMINATED_WARNING is set). + * + * @see ures_getStringByKey + * @see u_strToUTF8 + * @stable ICU 3.6 + */ +U_CAPI const char * U_EXPORT2 +ures_getUTF8StringByKey(const UResourceBundle *resB, + const char *key, + char *dest, int32_t *pLength, + UBool forceCopy, + UErrorCode *status); + + +/** + * Create a string enumerator, owned by the caller, of all locales located within + * the specified resource tree. + * @param packageName name of the tree, such as (NULL) or U_ICUDATA_ALIAS or or "ICUDATA-coll" + * This call is similar to uloc_getAvailable(). + * @param status error code + * @stable ICU 3.2 + */ +U_CAPI UEnumeration* U_EXPORT2 +ures_openAvailableLocales(const char *packageName, UErrorCode *status); + + +#endif /*_URES*/ +/*eof*/ + +// udisplaycontext.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +***************************************************************************************** +* Copyright (C) 2014-2016, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UDISPLAYCONTEXT_H +#define UDISPLAYCONTEXT_H + + +#if !UCONFIG_NO_FORMATTING + +/** + * \file + * \brief C API: Display context types (enum values) + */ + +/** + * Display context types, for getting values of a particular setting. + * Note, the specific numeric values are internal and may change. + * @stable ICU 51 + */ +enum UDisplayContextType { + /** + * Type to retrieve the dialect handling setting, e.g. + * UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES. + * @stable ICU 51 + */ + UDISPCTX_TYPE_DIALECT_HANDLING = 0, + /** + * Type to retrieve the capitalization context setting, e.g. + * UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, + * UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, etc. + * @stable ICU 51 + */ + UDISPCTX_TYPE_CAPITALIZATION = 1, + /** + * Type to retrieve the display length setting, e.g. + * UDISPCTX_LENGTH_FULL, UDISPCTX_LENGTH_SHORT. + * @stable ICU 54 + */ + UDISPCTX_TYPE_DISPLAY_LENGTH = 2, + /** + * Type to retrieve the substitute handling setting, e.g. + * UDISPCTX_SUBSTITUTE, UDISPCTX_NO_SUBSTITUTE. + * @stable ICU 58 + */ + UDISPCTX_TYPE_SUBSTITUTE_HANDLING = 3 +}; +/** +* @stable ICU 51 +*/ +typedef enum UDisplayContextType UDisplayContextType; + +/** + * Display context settings. + * Note, the specific numeric values are internal and may change. + * @stable ICU 51 + */ +enum UDisplayContext { + /** + * ================================ + * DIALECT_HANDLING can be set to one of UDISPCTX_STANDARD_NAMES or + * UDISPCTX_DIALECT_NAMES. Use UDisplayContextType UDISPCTX_TYPE_DIALECT_HANDLING + * to get the value. + */ + /** + * A possible setting for DIALECT_HANDLING: + * use standard names when generating a locale name, + * e.g. en_GB displays as 'English (United Kingdom)'. + * @stable ICU 51 + */ + UDISPCTX_STANDARD_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 0, + /** + * A possible setting for DIALECT_HANDLING: + * use dialect names, when generating a locale name, + * e.g. en_GB displays as 'British English'. + * @stable ICU 51 + */ + UDISPCTX_DIALECT_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 1, + /** + * ================================ + * CAPITALIZATION can be set to one of UDISPCTX_CAPITALIZATION_NONE, + * UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, + * UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, + * UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU, or + * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. + * Use UDisplayContextType UDISPCTX_TYPE_CAPITALIZATION to get the value. + */ + /** + * The capitalization context to be used is unknown (this is the default value). + * @stable ICU 51 + */ + UDISPCTX_CAPITALIZATION_NONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 0, + /** + * The capitalization context if a date, date symbol or display name is to be + * formatted with capitalization appropriate for the middle of a sentence. + * @stable ICU 51 + */ + UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 1, + /** + * The capitalization context if a date, date symbol or display name is to be + * formatted with capitalization appropriate for the beginning of a sentence. + * @stable ICU 51 + */ + UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 2, + /** + * The capitalization context if a date, date symbol or display name is to be + * formatted with capitalization appropriate for a user-interface list or menu item. + * @stable ICU 51 + */ + UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 3, + /** + * The capitalization context if a date, date symbol or display name is to be + * formatted with capitalization appropriate for stand-alone usage such as an + * isolated name on a calendar page. + * @stable ICU 51 + */ + UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 4, + /** + * ================================ + * DISPLAY_LENGTH can be set to one of UDISPCTX_LENGTH_FULL or + * UDISPCTX_LENGTH_SHORT. Use UDisplayContextType UDISPCTX_TYPE_DISPLAY_LENGTH + * to get the value. + */ + /** + * A possible setting for DISPLAY_LENGTH: + * use full names when generating a locale name, + * e.g. "United States" for US. + * @stable ICU 54 + */ + UDISPCTX_LENGTH_FULL = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 0, + /** + * A possible setting for DISPLAY_LENGTH: + * use short names when generating a locale name, + * e.g. "U.S." for US. + * @stable ICU 54 + */ + UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1, + /** + * ================================ + * SUBSTITUTE_HANDLING can be set to one of UDISPCTX_SUBSTITUTE or + * UDISPCTX_NO_SUBSTITUTE. Use UDisplayContextType UDISPCTX_TYPE_SUBSTITUTE_HANDLING + * to get the value. + */ + /** + * A possible setting for SUBSTITUTE_HANDLING: + * Returns a fallback value (e.g., the input code) when no data is available. + * This is the default value. + * @stable ICU 58 + */ + UDISPCTX_SUBSTITUTE = (UDISPCTX_TYPE_SUBSTITUTE_HANDLING<<8) + 0, + /** + * A possible setting for SUBSTITUTE_HANDLING: + * Returns a null value with error code set to U_ILLEGAL_ARGUMENT_ERROR when no + * data is available. + * @stable ICU 58 + */ + UDISPCTX_NO_SUBSTITUTE = (UDISPCTX_TYPE_SUBSTITUTE_HANDLING<<8) + 1 + +}; +/** +* @stable ICU 51 +*/ +typedef enum UDisplayContext UDisplayContext; + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// uldnames.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* Copyright (C) 2010-2016, International Business Machines Corporation and +* others. All Rights Reserved. +******************************************************************************* +*/ + +#ifndef __ULDNAMES_H__ +#define __ULDNAMES_H__ + +/** + * \file + * \brief C API: Provides display names of Locale ids and their components. + */ + + + +/** + * Enum used in LocaleDisplayNames::createInstance. + * @stable ICU 4.4 + */ +typedef enum { + /** + * Use standard names when generating a locale name, + * e.g. en_GB displays as 'English (United Kingdom)'. + * @stable ICU 4.4 + */ + ULDN_STANDARD_NAMES = 0, + /** + * Use dialect names, when generating a locale name, + * e.g. en_GB displays as 'British English'. + * @stable ICU 4.4 + */ + ULDN_DIALECT_NAMES +} UDialectHandling; + +/** + * Opaque C service object type for the locale display names API + * @stable ICU 4.4 + */ +struct ULocaleDisplayNames; + +/** + * C typedef for struct ULocaleDisplayNames. + * @stable ICU 4.4 + */ +typedef struct ULocaleDisplayNames ULocaleDisplayNames; + +#if !UCONFIG_NO_FORMATTING + +/** + * Returns an instance of LocaleDisplayNames that returns names + * formatted for the provided locale, using the provided + * dialectHandling. The usual value for dialectHandling is + * ULOC_STANDARD_NAMES. + * + * @param locale the display locale + * @param dialectHandling how to select names for locales + * @return a ULocaleDisplayNames instance + * @param pErrorCode the status code + * @stable ICU 4.4 + */ +U_CAPI ULocaleDisplayNames * U_EXPORT2 +uldn_open(const char * locale, + UDialectHandling dialectHandling, + UErrorCode *pErrorCode); + +/** + * Closes a ULocaleDisplayNames instance obtained from uldn_open(). + * @param ldn the ULocaleDisplayNames instance to be closed + * @stable ICU 4.4 + */ +U_CAPI void U_EXPORT2 +uldn_close(ULocaleDisplayNames *ldn); + + +/* getters for state */ + +/** + * Returns the locale used to determine the display names. This is + * not necessarily the same locale passed to {@link #uldn_open}. + * @param ldn the LocaleDisplayNames instance + * @return the display locale + * @stable ICU 4.4 + */ +U_CAPI const char * U_EXPORT2 +uldn_getLocale(const ULocaleDisplayNames *ldn); + +/** + * Returns the dialect handling used in the display names. + * @param ldn the LocaleDisplayNames instance + * @return the dialect handling enum + * @stable ICU 4.4 + */ +U_CAPI UDialectHandling U_EXPORT2 +uldn_getDialectHandling(const ULocaleDisplayNames *ldn); + +/* names for entire locales */ + +/** + * Returns the display name of the provided locale. + * @param ldn the LocaleDisplayNames instance + * @param locale the locale whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +uldn_localeDisplayName(const ULocaleDisplayNames *ldn, + const char *locale, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/* names for components of a locale */ + +/** + * Returns the display name of the provided language code. + * @param ldn the LocaleDisplayNames instance + * @param lang the language code whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +uldn_languageDisplayName(const ULocaleDisplayNames *ldn, + const char *lang, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided script. + * @param ldn the LocaleDisplayNames instance + * @param script the script whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +uldn_scriptDisplayName(const ULocaleDisplayNames *ldn, + const char *script, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided script code. + * @param ldn the LocaleDisplayNames instance + * @param scriptCode the script code whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +uldn_scriptCodeDisplayName(const ULocaleDisplayNames *ldn, + UScriptCode scriptCode, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided region code. + * @param ldn the LocaleDisplayNames instance + * @param region the region code whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +uldn_regionDisplayName(const ULocaleDisplayNames *ldn, + const char *region, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided variant + * @param ldn the LocaleDisplayNames instance + * @param variant the variant whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +uldn_variantDisplayName(const ULocaleDisplayNames *ldn, + const char *variant, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided locale key + * @param ldn the LocaleDisplayNames instance + * @param key the locale key whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +uldn_keyDisplayName(const ULocaleDisplayNames *ldn, + const char *key, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided value (used with the provided key). + * @param ldn the LocaleDisplayNames instance + * @param key the locale key + * @param value the locale key's value + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +uldn_keyValueDisplayName(const ULocaleDisplayNames *ldn, + const char *key, + const char *value, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** +* Returns an instance of LocaleDisplayNames that returns names formatted +* for the provided locale, using the provided UDisplayContext settings. +* +* @param locale The display locale +* @param contexts List of one or more context settings (e.g. for dialect +* handling, capitalization, etc. +* @param length Number of items in the contexts list +* @param pErrorCode Pointer to UErrorCode input/output status. If at entry this indicates +* a failure status, the function will do nothing; otherwise this will be +* updated with any new status from the function. +* @return a ULocaleDisplayNames instance +* @stable ICU 51 +*/ +U_CAPI ULocaleDisplayNames * U_EXPORT2 +uldn_openForContext(const char * locale, UDisplayContext *contexts, + int32_t length, UErrorCode *pErrorCode); + +/** +* Returns the UDisplayContext value for the specified UDisplayContextType. +* @param ldn the ULocaleDisplayNames instance +* @param type the UDisplayContextType whose value to return +* @param pErrorCode Pointer to UErrorCode input/output status. If at entry this indicates +* a failure status, the function will do nothing; otherwise this will be +* updated with any new status from the function. +* @return the UDisplayContextValue for the specified type. +* @stable ICU 51 +*/ +U_CAPI UDisplayContext U_EXPORT2 +uldn_getContext(const ULocaleDisplayNames *ldn, UDisplayContextType type, + UErrorCode *pErrorCode); + +#endif /* !UCONFIG_NO_FORMATTING */ +#endif /* __ULDNAMES_H__ */ + +// ucurr.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (c) 2002-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +*/ +#ifndef _UCURR_H_ +#define _UCURR_H_ + + +/** + * \file + * \brief C API: Encapsulates information about a currency. + * + * The ucurr API encapsulates information about a currency, as defined by + * ISO 4217. A currency is represented by a 3-character string + * containing its ISO 4217 code. This API can return various data + * necessary the proper display of a currency: + * + *

  • A display symbol, for a specific locale + *
  • The number of fraction digits to display + *
  • A rounding increment + *
+ * + * The DecimalFormat class uses these data to display + * currencies. + * @author Alan Liu + * @since ICU 2.2 + */ + +#if !UCONFIG_NO_FORMATTING + +/** + * Currency Usage used for Decimal Format + * @stable ICU 54 + */ +enum UCurrencyUsage { + /** + * a setting to specify currency usage which determines currency digit + * and rounding for standard usage, for example: "50.00 NT$" + * used as DEFAULT value + * @stable ICU 54 + */ + UCURR_USAGE_STANDARD=0, + /** + * a setting to specify currency usage which determines currency digit + * and rounding for cash usage, for example: "50 NT$" + * @stable ICU 54 + */ + UCURR_USAGE_CASH=1, +}; +/** Currency Usage used for Decimal Format */ +typedef enum UCurrencyUsage UCurrencyUsage; + +/** + * Finds a currency code for the given locale. + * @param locale the locale for which to retrieve a currency code. + * Currency can be specified by the "currency" keyword + * in which case it overrides the default currency code + * @param buff fill in buffer. Can be NULL for preflighting. + * @param buffCapacity capacity of the fill in buffer. Can be 0 for + * preflighting. If it is non-zero, the buff parameter + * must not be NULL. + * @param ec error code + * @return length of the currency string. It should always be 3. If 0, + * currency couldn't be found or the input values are + * invalid. + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +ucurr_forLocale(const char* locale, + UChar* buff, + int32_t buffCapacity, + UErrorCode* ec); + +/** + * Selector constants for ucurr_getName(). + * + * @see ucurr_getName + * @stable ICU 2.6 + */ +typedef enum UCurrNameStyle { + /** + * Selector for ucurr_getName indicating a symbolic name for a + * currency, such as "$" for USD. + * @stable ICU 2.6 + */ + UCURR_SYMBOL_NAME, + + /** + * Selector for ucurr_getName indicating the long name for a + * currency, such as "US Dollar" for USD. + * @stable ICU 2.6 + */ + UCURR_LONG_NAME, + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) + /** + * Selector for getName() indicating the narrow currency symbol. + * The narrow currency symbol is similar to the regular currency + * symbol, but it always takes the shortest form: for example, + * "$" instead of "US$" for USD in en-CA. + * + * @stable ICU 61 + */ + UCURR_NARROW_SYMBOL_NAME, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_VB) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + /** + * Selector for getName() indicating the variant currency symbol. + * The variant symbol for a currency is an alternative symbol + * that is not necessarily as widely used as the regular symbol. + * + * @stable ICU 68 + */ + UCURR_VARIANT_SYMBOL_NAME +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + +} UCurrNameStyle; + +#if !UCONFIG_NO_SERVICE +/** + * @stable ICU 2.6 + */ +typedef const void* UCurrRegistryKey; + +/** + * Register an (existing) ISO 4217 currency code for the given locale. + * Only the country code and the two variants EURO and PRE_EURO are + * recognized. + * @param isoCode the three-letter ISO 4217 currency code + * @param locale the locale for which to register this currency code + * @param status the in/out status code + * @return a registry key that can be used to unregister this currency code, or NULL + * if there was an error. + * @stable ICU 2.6 + */ +U_CAPI UCurrRegistryKey U_EXPORT2 +ucurr_register(const UChar* isoCode, + const char* locale, + UErrorCode* status); +/** + * Unregister the previously-registered currency definitions using the + * URegistryKey returned from ucurr_register. Key becomes invalid after + * a successful call and should not be used again. Any currency + * that might have been hidden by the original ucurr_register call is + * restored. + * @param key the registry key returned by a previous call to ucurr_register + * @param status the in/out status code, no special meanings are assigned + * @return true if the currency for this key was successfully unregistered + * @stable ICU 2.6 + */ +U_CAPI UBool U_EXPORT2 +ucurr_unregister(UCurrRegistryKey key, UErrorCode* status); +#endif /* UCONFIG_NO_SERVICE */ + +/** + * Returns the display name for the given currency in the + * given locale. For example, the display name for the USD + * currency object in the en_US locale is "$". + * @param currency null-terminated 3-letter ISO 4217 code + * @param locale locale in which to display currency + * @param nameStyle selector for which kind of name to return + * @param isChoiceFormat always set to false, or can be NULL; + * display names are static strings; + * since ICU 4.4, ChoiceFormat patterns are no longer supported + * @param len fill-in parameter to receive length of result + * @param ec error code + * @return pointer to display string of 'len' UChars. If the resource + * data contains no entry for 'currency', then 'currency' itself is + * returned. + * @stable ICU 2.6 + */ +U_CAPI const UChar* U_EXPORT2 +ucurr_getName(const UChar* currency, + const char* locale, + UCurrNameStyle nameStyle, + UBool* isChoiceFormat, + int32_t* len, + UErrorCode* ec); + +/** + * Returns the plural name for the given currency in the + * given locale. For example, the plural name for the USD + * currency object in the en_US locale is "US dollar" or "US dollars". + * @param currency null-terminated 3-letter ISO 4217 code + * @param locale locale in which to display currency + * @param isChoiceFormat always set to false, or can be NULL; + * display names are static strings; + * since ICU 4.4, ChoiceFormat patterns are no longer supported + * @param pluralCount plural count + * @param len fill-in parameter to receive length of result + * @param ec error code + * @return pointer to display string of 'len' UChars. If the resource + * data contains no entry for 'currency', then 'currency' itself is + * returned. + * @stable ICU 4.2 + */ +U_CAPI const UChar* U_EXPORT2 +ucurr_getPluralName(const UChar* currency, + const char* locale, + UBool* isChoiceFormat, + const char* pluralCount, + int32_t* len, + UErrorCode* ec); + +/** + * Returns the number of the number of fraction digits that should + * be displayed for the given currency. + * This is equivalent to ucurr_getDefaultFractionDigitsForUsage(currency,UCURR_USAGE_STANDARD,ec); + * + * Important: The number of fraction digits for a given currency is NOT + * guaranteed to be constant across versions of ICU or CLDR. For example, + * do NOT use this value as a mechanism for deciding the magnitude used + * to store currency values in a database. You should use this value for + * display purposes only. + * + * @param currency null-terminated 3-letter ISO 4217 code + * @param ec input-output error code + * @return a non-negative number of fraction digits to be + * displayed, or 0 if there is an error + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +ucurr_getDefaultFractionDigits(const UChar* currency, + UErrorCode* ec); + +/** + * Returns the number of the number of fraction digits that should + * be displayed for the given currency with usage. + * + * Important: The number of fraction digits for a given currency is NOT + * guaranteed to be constant across versions of ICU or CLDR. For example, + * do NOT use this value as a mechanism for deciding the magnitude used + * to store currency values in a database. You should use this value for + * display purposes only. + * + * @param currency null-terminated 3-letter ISO 4217 code + * @param usage enum usage for the currency + * @param ec input-output error code + * @return a non-negative number of fraction digits to be + * displayed, or 0 if there is an error + * @stable ICU 54 + */ +U_CAPI int32_t U_EXPORT2 +ucurr_getDefaultFractionDigitsForUsage(const UChar* currency, + const UCurrencyUsage usage, + UErrorCode* ec); + +/** + * Returns the rounding increment for the given currency, or 0.0 if no + * rounding is done by the currency. + * This is equivalent to ucurr_getRoundingIncrementForUsage(currency,UCURR_USAGE_STANDARD,ec); + * @param currency null-terminated 3-letter ISO 4217 code + * @param ec input-output error code + * @return the non-negative rounding increment, or 0.0 if none, + * or 0.0 if there is an error + * @stable ICU 3.0 + */ +U_CAPI double U_EXPORT2 +ucurr_getRoundingIncrement(const UChar* currency, + UErrorCode* ec); + +/** + * Returns the rounding increment for the given currency, or 0.0 if no + * rounding is done by the currency given usage. + * @param currency null-terminated 3-letter ISO 4217 code + * @param usage enum usage for the currency + * @param ec input-output error code + * @return the non-negative rounding increment, or 0.0 if none, + * or 0.0 if there is an error + * @stable ICU 54 + */ +U_CAPI double U_EXPORT2 +ucurr_getRoundingIncrementForUsage(const UChar* currency, + const UCurrencyUsage usage, + UErrorCode* ec); + +/** + * Selector constants for ucurr_openCurrencies(). + * + * @see ucurr_openCurrencies + * @stable ICU 3.2 + */ +typedef enum UCurrCurrencyType { + /** + * Select all ISO-4217 currency codes. + * @stable ICU 3.2 + */ + UCURR_ALL = INT32_MAX, + /** + * Select only ISO-4217 commonly used currency codes. + * These currencies can be found in common use, and they usually have + * bank notes or coins associated with the currency code. + * This does not include fund codes, precious metals and other + * various ISO-4217 codes limited to special financial products. + * @stable ICU 3.2 + */ + UCURR_COMMON = 1, + /** + * Select ISO-4217 uncommon currency codes. + * These codes respresent fund codes, precious metals and other + * various ISO-4217 codes limited to special financial products. + * A fund code is a monetary resource associated with a currency. + * @stable ICU 3.2 + */ + UCURR_UNCOMMON = 2, + /** + * Select only deprecated ISO-4217 codes. + * These codes are no longer in general public use. + * @stable ICU 3.2 + */ + UCURR_DEPRECATED = 4, + /** + * Select only non-deprecated ISO-4217 codes. + * These codes are in general public use. + * @stable ICU 3.2 + */ + UCURR_NON_DEPRECATED = 8 +} UCurrCurrencyType; + +/** + * Provides a UEnumeration object for listing ISO-4217 codes. + * @param currType You can use one of several UCurrCurrencyType values for this + * variable. You can also | (or) them together to get a specific list of + * currencies. Most people will want to use the (UCURR_COMMON|UCURR_NON_DEPRECATED) value to + * get a list of current currencies. + * @param pErrorCode Error code + * @stable ICU 3.2 + */ +U_CAPI UEnumeration * U_EXPORT2 +ucurr_openISOCurrencies(uint32_t currType, UErrorCode *pErrorCode); + +/** + * Queries if the given ISO 4217 3-letter code is available on the specified date range. + * + * Note: For checking availability of a currency on a specific date, specify the date on both 'from' and 'to' + * + * When 'from' is U_DATE_MIN and 'to' is U_DATE_MAX, this method checks if the specified currency is available any time. + * If 'from' and 'to' are same UDate value, this method checks if the specified currency is available on that date. + * + * @param isoCode + * The ISO 4217 3-letter code. + * + * @param from + * The lower bound of the date range, inclusive. When 'from' is U_DATE_MIN, check the availability + * of the currency any date before 'to' + * + * @param to + * The upper bound of the date range, inclusive. When 'to' is U_DATE_MAX, check the availability of + * the currency any date after 'from' + * + * @param errorCode + * ICU error code + * + * @return true if the given ISO 4217 3-letter code is supported on the specified date range. + * + * @stable ICU 4.8 + */ +U_CAPI UBool U_EXPORT2 +ucurr_isAvailable(const UChar* isoCode, + UDate from, + UDate to, + UErrorCode* errorCode); + +/** + * Finds the number of valid currency codes for the + * given locale and date. + * @param locale the locale for which to retrieve the + * currency count. + * @param date the date for which to retrieve the + * currency count for the given locale. + * @param ec error code + * @return the number of currency codes for the + * given locale and date. If 0, currency + * codes couldn't be found for the input + * values are invalid. + * @stable ICU 4.0 + */ +U_CAPI int32_t U_EXPORT2 +ucurr_countCurrencies(const char* locale, + UDate date, + UErrorCode* ec); + +/** + * Finds a currency code for the given locale and date + * @param locale the locale for which to retrieve a currency code. + * Currency can be specified by the "currency" keyword + * in which case it overrides the default currency code + * @param date the date for which to retrieve a currency code for + * the given locale. + * @param index the index within the available list of currency codes + * for the given locale on the given date. + * @param buff fill in buffer. Can be NULL for preflighting. + * @param buffCapacity capacity of the fill in buffer. Can be 0 for + * preflighting. If it is non-zero, the buff parameter + * must not be NULL. + * @param ec error code + * @return length of the currency string. It should always be 3. + * If 0, currency couldn't be found or the input values are + * invalid. + * @stable ICU 4.0 + */ +U_CAPI int32_t U_EXPORT2 +ucurr_forLocaleAndDate(const char* locale, + UDate date, + int32_t index, + UChar* buff, + int32_t buffCapacity, + UErrorCode* ec); + +/** + * Given a key and a locale, returns an array of string values in a preferred + * order that would make a difference. These are all and only those values where + * the open (creation) of the service with the locale formed from the input locale + * plus input keyword and that value has different behavior than creation with the + * input locale alone. + * @param key one of the keys supported by this service. For now, only + * "currency" is supported. + * @param locale the locale + * @param commonlyUsed if set to true it will return only commonly used values + * with the given locale in preferred order. Otherwise, + * it will return all the available values for the locale. + * @param status error status + * @return a string enumeration over keyword values for the given key and the locale. + * @stable ICU 4.2 + */ +U_CAPI UEnumeration* U_EXPORT2 +ucurr_getKeywordValuesForLocale(const char* key, + const char* locale, + UBool commonlyUsed, + UErrorCode* status); + +/** + * Returns the ISO 4217 numeric code for the currency. + *

Note: If the ISO 4217 numeric code is not assigned for the currency or + * the currency is unknown, this function returns 0. + * + * @param currency null-terminated 3-letter ISO 4217 code + * @return The ISO 4217 numeric code of the currency + * @stable ICU 49 + */ +U_CAPI int32_t U_EXPORT2 +ucurr_getNumericCode(const UChar* currency); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif // _UCURR_H_ + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + +// ucpmap.h +// Copyright (C) 2018 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html + +// ucpmap.h +// created: 2018sep03 Markus W. Scherer + +#ifndef __UCPMAP_H__ +#define __UCPMAP_H__ + + +U_CDECL_BEGIN + +/** + * \file + * + * This file defines an abstract map from Unicode code points to integer values. + * + * @see UCPMap + * @see UCPTrie + * @see UMutableCPTrie + */ + +/** + * Abstract map from Unicode code points (U+0000..U+10FFFF) to integer values. + * + * @see UCPTrie + * @see UMutableCPTrie + * @stable ICU 63 + */ +typedef struct UCPMap UCPMap; + +/** + * Selectors for how ucpmap_getRange() etc. should report value ranges overlapping with surrogates. + * Most users should use UCPMAP_RANGE_NORMAL. + * + * @see ucpmap_getRange + * @see ucptrie_getRange + * @see umutablecptrie_getRange + * @stable ICU 63 + */ +enum UCPMapRangeOption { + /** + * ucpmap_getRange() enumerates all same-value ranges as stored in the map. + * Most users should use this option. + * @stable ICU 63 + */ + UCPMAP_RANGE_NORMAL, + /** + * ucpmap_getRange() enumerates all same-value ranges as stored in the map, + * except that lead surrogates (U+D800..U+DBFF) are treated as having the + * surrogateValue, which is passed to getRange() as a separate parameter. + * The surrogateValue is not transformed via filter(). + * See U_IS_LEAD(c). + * + * Most users should use UCPMAP_RANGE_NORMAL instead. + * + * This option is useful for maps that map surrogate code *units* to + * special values optimized for UTF-16 string processing + * or for special error behavior for unpaired surrogates, + * but those values are not to be associated with the lead surrogate code *points*. + * @stable ICU 63 + */ + UCPMAP_RANGE_FIXED_LEAD_SURROGATES, + /** + * ucpmap_getRange() enumerates all same-value ranges as stored in the map, + * except that all surrogates (U+D800..U+DFFF) are treated as having the + * surrogateValue, which is passed to getRange() as a separate parameter. + * The surrogateValue is not transformed via filter(). + * See U_IS_SURROGATE(c). + * + * Most users should use UCPMAP_RANGE_NORMAL instead. + * + * This option is useful for maps that map surrogate code *units* to + * special values optimized for UTF-16 string processing + * or for special error behavior for unpaired surrogates, + * but those values are not to be associated with the lead surrogate code *points*. + * @stable ICU 63 + */ + UCPMAP_RANGE_FIXED_ALL_SURROGATES +}; +#ifndef U_IN_DOXYGEN +typedef enum UCPMapRangeOption UCPMapRangeOption; +#endif + +/** + * Returns the value for a code point as stored in the map, with range checking. + * Returns an implementation-defined error value if c is not in the range 0..U+10FFFF. + * + * @param map the map + * @param c the code point + * @return the map value, + * or an implementation-defined error value if the code point is not in the range 0..U+10FFFF + * @stable ICU 63 + */ +U_CAPI uint32_t U_EXPORT2 +ucpmap_get(const UCPMap *map, UChar32 c); + +/** + * Callback function type: Modifies a map value. + * Optionally called by ucpmap_getRange()/ucptrie_getRange()/umutablecptrie_getRange(). + * The modified value will be returned by the getRange function. + * + * Can be used to ignore some of the value bits, + * make a filter for one of several values, + * return a value index computed from the map value, etc. + * + * @param context an opaque pointer, as passed into the getRange function + * @param value a value from the map + * @return the modified value + * @stable ICU 63 + */ +typedef uint32_t U_CALLCONV +UCPMapValueFilter(const void *context, uint32_t value); + +/** + * Returns the last code point such that all those from start to there have the same value. + * Can be used to efficiently iterate over all same-value ranges in a map. + * (This is normally faster than iterating over code points and get()ting each value, + * but much slower than a data structure that stores ranges directly.) + * + * If the UCPMapValueFilter function pointer is not NULL, then + * the value to be delivered is passed through that function, and the return value is the end + * of the range where all values are modified to the same actual value. + * The value is unchanged if that function pointer is NULL. + * + * Example: + * \code + * UChar32 start = 0, end; + * uint32_t value; + * while ((end = ucpmap_getRange(map, start, UCPMAP_RANGE_NORMAL, 0, + * NULL, NULL, &value)) >= 0) { + * // Work with the range start..end and its value. + * start = end + 1; + * } + * \endcode + * + * @param map the map + * @param start range start + * @param option defines whether surrogates are treated normally, + * or as having the surrogateValue; usually UCPMAP_RANGE_NORMAL + * @param surrogateValue value for surrogates; ignored if option==UCPMAP_RANGE_NORMAL + * @param filter a pointer to a function that may modify the map data value, + * or NULL if the values from the map are to be used unmodified + * @param context an opaque pointer that is passed on to the filter function + * @param pValue if not NULL, receives the value that every code point start..end has; + * may have been modified by filter(context, map value) + * if that function pointer is not NULL + * @return the range end code point, or -1 if start is not a valid code point + * @stable ICU 63 + */ +U_CAPI UChar32 U_EXPORT2 +ucpmap_getRange(const UCPMap *map, UChar32 start, + UCPMapRangeOption option, uint32_t surrogateValue, + UCPMapValueFilter *filter, const void *context, uint32_t *pValue); + +U_CDECL_END + +#endif // __UCPMAP_H__ + +// ucptrie.h +// Copyright (C) 2017 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html + +// ucptrie.h (modified from utrie2.h) +// created: 2017dec29 Markus W. Scherer + +#ifndef __UCPTRIE_H__ +#define __UCPTRIE_H__ + + + +U_CDECL_BEGIN + +/** + * \file + * \brief C API: This file defines an immutable Unicode code point trie. + * + * This file defines an immutable Unicode code point trie. + * + * @see UCPTrie + * @see UMutableCPTrie + */ + +#ifndef U_IN_DOXYGEN +/** @internal */ +typedef union UCPTrieData { + /** @internal */ + const void *ptr0; + /** @internal */ + const uint16_t *ptr16; + /** @internal */ + const uint32_t *ptr32; + /** @internal */ + const uint8_t *ptr8; +} UCPTrieData; +#endif + +/** + * Immutable Unicode code point trie structure. + * Fast, reasonably compact, map from Unicode code points (U+0000..U+10FFFF) to integer values. + * For details see https://icu.unicode.org/design/struct/utrie + * + * Do not access UCPTrie fields directly; use public functions and macros. + * Functions are easy to use: They support all trie types and value widths. + * + * When performance is really important, macros provide faster access. + * Most macros are specific to either "fast" or "small" tries, see UCPTrieType. + * There are "fast" macros for special optimized use cases. + * + * The macros will return bogus values, or may crash, if used on the wrong type or value width. + * + * @see UMutableCPTrie + * @stable ICU 63 + */ +struct UCPTrie { +#ifndef U_IN_DOXYGEN + /** @internal */ + const uint16_t *index; + /** @internal */ + UCPTrieData data; + + /** @internal */ + int32_t indexLength; + /** @internal */ + int32_t dataLength; + /** Start of the last range which ends at U+10FFFF. @internal */ + UChar32 highStart; + /** highStart>>12 @internal */ + uint16_t shifted12HighStart; + + /** @internal */ + int8_t type; // UCPTrieType + /** @internal */ + int8_t valueWidth; // UCPTrieValueWidth + + /** padding/reserved @internal */ + uint32_t reserved32; + /** padding/reserved @internal */ + uint16_t reserved16; + + /** + * Internal index-3 null block offset. + * Set to an impossibly high value (e.g., 0xffff) if there is no dedicated index-3 null block. + * @internal + */ + uint16_t index3NullOffset; + /** + * Internal data null block offset, not shifted. + * Set to an impossibly high value (e.g., 0xfffff) if there is no dedicated data null block. + * @internal + */ + int32_t dataNullOffset; + /** @internal */ + uint32_t nullValue; + +#ifdef UCPTRIE_DEBUG + /** @internal */ + const char *name; +#endif +#endif +}; +#ifndef U_IN_DOXYGEN +typedef struct UCPTrie UCPTrie; +#endif + +/** + * Selectors for the type of a UCPTrie. + * Different trade-offs for size vs. speed. + * + * @see umutablecptrie_buildImmutable + * @see ucptrie_openFromBinary + * @see ucptrie_getType + * @stable ICU 63 + */ +enum UCPTrieType { + /** + * For ucptrie_openFromBinary() to accept any type. + * ucptrie_getType() will return the actual type. + * @stable ICU 63 + */ + UCPTRIE_TYPE_ANY = -1, + /** + * Fast/simple/larger BMP data structure. Use functions and "fast" macros. + * @stable ICU 63 + */ + UCPTRIE_TYPE_FAST, + /** + * Small/slower BMP data structure. Use functions and "small" macros. + * @stable ICU 63 + */ + UCPTRIE_TYPE_SMALL +}; +#ifndef U_IN_DOXYGEN +typedef enum UCPTrieType UCPTrieType; +#endif + +/** + * Selectors for the number of bits in a UCPTrie data value. + * + * @see umutablecptrie_buildImmutable + * @see ucptrie_openFromBinary + * @see ucptrie_getValueWidth + * @stable ICU 63 + */ +enum UCPTrieValueWidth { + /** + * For ucptrie_openFromBinary() to accept any data value width. + * ucptrie_getValueWidth() will return the actual data value width. + * @stable ICU 63 + */ + UCPTRIE_VALUE_BITS_ANY = -1, + /** + * The trie stores 16 bits per data value. + * It returns them as unsigned values 0..0xffff=65535. + * @stable ICU 63 + */ + UCPTRIE_VALUE_BITS_16, + /** + * The trie stores 32 bits per data value. + * @stable ICU 63 + */ + UCPTRIE_VALUE_BITS_32, + /** + * The trie stores 8 bits per data value. + * It returns them as unsigned values 0..0xff=255. + * @stable ICU 63 + */ + UCPTRIE_VALUE_BITS_8 +}; +#ifndef U_IN_DOXYGEN +typedef enum UCPTrieValueWidth UCPTrieValueWidth; +#endif + +/** + * Opens a trie from its binary form, stored in 32-bit-aligned memory. + * Inverse of ucptrie_toBinary(). + * + * The memory must remain valid and unchanged as long as the trie is used. + * You must ucptrie_close() the trie once you are done using it. + * + * @param type selects the trie type; results in an + * U_INVALID_FORMAT_ERROR if it does not match the binary data; + * use UCPTRIE_TYPE_ANY to accept any type + * @param valueWidth selects the number of bits in a data value; results in an + * U_INVALID_FORMAT_ERROR if it does not match the binary data; + * use UCPTRIE_VALUE_BITS_ANY to accept any data value width + * @param data a pointer to 32-bit-aligned memory containing the binary data of a UCPTrie + * @param length the number of bytes available at data; + * can be more than necessary + * @param pActualLength receives the actual number of bytes at data taken up by the trie data; + * can be NULL + * @param pErrorCode an in/out ICU UErrorCode + * @return the trie + * + * @see umutablecptrie_open + * @see umutablecptrie_buildImmutable + * @see ucptrie_toBinary + * @stable ICU 63 + */ +U_CAPI UCPTrie * U_EXPORT2 +ucptrie_openFromBinary(UCPTrieType type, UCPTrieValueWidth valueWidth, + const void *data, int32_t length, int32_t *pActualLength, + UErrorCode *pErrorCode); + +/** + * Closes a trie and releases associated memory. + * + * @param trie the trie + * @stable ICU 63 + */ +U_CAPI void U_EXPORT2 +ucptrie_close(UCPTrie *trie); + +/** + * Returns the trie type. + * + * @param trie the trie + * @return the trie type + * @see ucptrie_openFromBinary + * @see UCPTRIE_TYPE_ANY + * @stable ICU 63 + */ +U_CAPI UCPTrieType U_EXPORT2 +ucptrie_getType(const UCPTrie *trie); + +/** + * Returns the number of bits in a trie data value. + * + * @param trie the trie + * @return the number of bits in a trie data value + * @see ucptrie_openFromBinary + * @see UCPTRIE_VALUE_BITS_ANY + * @stable ICU 63 + */ +U_CAPI UCPTrieValueWidth U_EXPORT2 +ucptrie_getValueWidth(const UCPTrie *trie); + +/** + * Returns the value for a code point as stored in the trie, with range checking. + * Returns the trie error value if c is not in the range 0..U+10FFFF. + * + * Easier to use than UCPTRIE_FAST_GET() and similar macros but slower. + * Easier to use because, unlike the macros, this function works on all UCPTrie + * objects, for all types and value widths. + * + * @param trie the trie + * @param c the code point + * @return the trie value, + * or the trie error value if the code point is not in the range 0..U+10FFFF + * @stable ICU 63 + */ +U_CAPI uint32_t U_EXPORT2 +ucptrie_get(const UCPTrie *trie, UChar32 c); + +/** + * Returns the last code point such that all those from start to there have the same value. + * Can be used to efficiently iterate over all same-value ranges in a trie. + * (This is normally faster than iterating over code points and get()ting each value, + * but much slower than a data structure that stores ranges directly.) + * + * If the UCPMapValueFilter function pointer is not NULL, then + * the value to be delivered is passed through that function, and the return value is the end + * of the range where all values are modified to the same actual value. + * The value is unchanged if that function pointer is NULL. + * + * Example: + * \code + * UChar32 start = 0, end; + * uint32_t value; + * while ((end = ucptrie_getRange(trie, start, UCPMAP_RANGE_NORMAL, 0, + * NULL, NULL, &value)) >= 0) { + * // Work with the range start..end and its value. + * start = end + 1; + * } + * \endcode + * + * @param trie the trie + * @param start range start + * @param option defines whether surrogates are treated normally, + * or as having the surrogateValue; usually UCPMAP_RANGE_NORMAL + * @param surrogateValue value for surrogates; ignored if option==UCPMAP_RANGE_NORMAL + * @param filter a pointer to a function that may modify the trie data value, + * or NULL if the values from the trie are to be used unmodified + * @param context an opaque pointer that is passed on to the filter function + * @param pValue if not NULL, receives the value that every code point start..end has; + * may have been modified by filter(context, trie value) + * if that function pointer is not NULL + * @return the range end code point, or -1 if start is not a valid code point + * @stable ICU 63 + */ +U_CAPI UChar32 U_EXPORT2 +ucptrie_getRange(const UCPTrie *trie, UChar32 start, + UCPMapRangeOption option, uint32_t surrogateValue, + UCPMapValueFilter *filter, const void *context, uint32_t *pValue); + +/** + * Writes a memory-mappable form of the trie into 32-bit aligned memory. + * Inverse of ucptrie_openFromBinary(). + * + * @param trie the trie + * @param data a pointer to 32-bit-aligned memory to be filled with the trie data; + * can be NULL if capacity==0 + * @param capacity the number of bytes available at data, or 0 for pure preflighting + * @param pErrorCode an in/out ICU UErrorCode; + * U_BUFFER_OVERFLOW_ERROR if the capacity is too small + * @return the number of bytes written or (if buffer overflow) needed for the trie + * + * @see ucptrie_openFromBinary() + * @stable ICU 63 + */ +U_CAPI int32_t U_EXPORT2 +ucptrie_toBinary(const UCPTrie *trie, void *data, int32_t capacity, UErrorCode *pErrorCode); + +/** + * Macro parameter value for a trie with 16-bit data values. + * Use the name of this macro as a "dataAccess" parameter in other macros. + * Do not use this macro in any other way. + * + * @see UCPTRIE_VALUE_BITS_16 + * @stable ICU 63 + */ +#define UCPTRIE_16(trie, i) ((trie)->data.ptr16[i]) + +/** + * Macro parameter value for a trie with 32-bit data values. + * Use the name of this macro as a "dataAccess" parameter in other macros. + * Do not use this macro in any other way. + * + * @see UCPTRIE_VALUE_BITS_32 + * @stable ICU 63 + */ +#define UCPTRIE_32(trie, i) ((trie)->data.ptr32[i]) + +/** + * Macro parameter value for a trie with 8-bit data values. + * Use the name of this macro as a "dataAccess" parameter in other macros. + * Do not use this macro in any other way. + * + * @see UCPTRIE_VALUE_BITS_8 + * @stable ICU 63 + */ +#define UCPTRIE_8(trie, i) ((trie)->data.ptr8[i]) + +/** + * Returns a trie value for a code point, with range checking. + * Returns the trie error value if c is not in the range 0..U+10FFFF. + * + * @param trie (const UCPTrie *, in) the trie; must have type UCPTRIE_TYPE_FAST + * @param dataAccess UCPTRIE_16, UCPTRIE_32, or UCPTRIE_8 according to the trie’s value width + * @param c (UChar32, in) the input code point + * @return The code point's trie value. + * @stable ICU 63 + */ +#define UCPTRIE_FAST_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_CP_INDEX(trie, 0xffff, c)) + +/** + * Returns a 16-bit trie value for a code point, with range checking. + * Returns the trie error value if c is not in the range U+0000..U+10FFFF. + * + * @param trie (const UCPTrie *, in) the trie; must have type UCPTRIE_TYPE_SMALL + * @param dataAccess UCPTRIE_16, UCPTRIE_32, or UCPTRIE_8 according to the trie’s value width + * @param c (UChar32, in) the input code point + * @return The code point's trie value. + * @stable ICU 63 + */ +#define UCPTRIE_SMALL_GET(trie, dataAccess, c) \ + dataAccess(trie, _UCPTRIE_CP_INDEX(trie, UCPTRIE_SMALL_MAX, c)) + +/** + * UTF-16: Reads the next code point (UChar32 c, out), post-increments src, + * and gets a value from the trie. + * Sets the trie error value if c is an unpaired surrogate. + * + * @param trie (const UCPTrie *, in) the trie; must have type UCPTRIE_TYPE_FAST + * @param dataAccess UCPTRIE_16, UCPTRIE_32, or UCPTRIE_8 according to the trie’s value width + * @param src (const UChar *, in/out) the source text pointer + * @param limit (const UChar *, in) the limit pointer for the text, or NULL if NUL-terminated + * @param c (UChar32, out) variable for the code point + * @param result (out) variable for the trie lookup result + * @stable ICU 63 + */ +#define UCPTRIE_FAST_U16_NEXT(trie, dataAccess, src, limit, c, result) UPRV_BLOCK_MACRO_BEGIN { \ + (c) = *(src)++; \ + int32_t __index; \ + if (!U16_IS_SURROGATE(c)) { \ + __index = _UCPTRIE_FAST_INDEX(trie, c); \ + } else { \ + uint16_t __c2; \ + if (U16_IS_SURROGATE_LEAD(c) && (src) != (limit) && U16_IS_TRAIL(__c2 = *(src))) { \ + ++(src); \ + (c) = U16_GET_SUPPLEMENTARY((c), __c2); \ + __index = _UCPTRIE_SMALL_INDEX(trie, c); \ + } else { \ + __index = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; \ + } \ + } \ + (result) = dataAccess(trie, __index); \ +} UPRV_BLOCK_MACRO_END + +/** + * UTF-16: Reads the previous code point (UChar32 c, out), pre-decrements src, + * and gets a value from the trie. + * Sets the trie error value if c is an unpaired surrogate. + * + * @param trie (const UCPTrie *, in) the trie; must have type UCPTRIE_TYPE_FAST + * @param dataAccess UCPTRIE_16, UCPTRIE_32, or UCPTRIE_8 according to the trie’s value width + * @param start (const UChar *, in) the start pointer for the text + * @param src (const UChar *, in/out) the source text pointer + * @param c (UChar32, out) variable for the code point + * @param result (out) variable for the trie lookup result + * @stable ICU 63 + */ +#define UCPTRIE_FAST_U16_PREV(trie, dataAccess, start, src, c, result) UPRV_BLOCK_MACRO_BEGIN { \ + (c) = *--(src); \ + int32_t __index; \ + if (!U16_IS_SURROGATE(c)) { \ + __index = _UCPTRIE_FAST_INDEX(trie, c); \ + } else { \ + uint16_t __c2; \ + if (U16_IS_SURROGATE_TRAIL(c) && (src) != (start) && U16_IS_LEAD(__c2 = *((src) - 1))) { \ + --(src); \ + (c) = U16_GET_SUPPLEMENTARY(__c2, (c)); \ + __index = _UCPTRIE_SMALL_INDEX(trie, c); \ + } else { \ + __index = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; \ + } \ + } \ + (result) = dataAccess(trie, __index); \ +} UPRV_BLOCK_MACRO_END + +/** + * UTF-8: Post-increments src and gets a value from the trie. + * Sets the trie error value for an ill-formed byte sequence. + * + * Unlike UCPTRIE_FAST_U16_NEXT() this UTF-8 macro does not provide the code point + * because it would be more work to do so and is often not needed. + * If the trie value differs from the error value, then the byte sequence is well-formed, + * and the code point can be assembled without revalidation. + * + * @param trie (const UCPTrie *, in) the trie; must have type UCPTRIE_TYPE_FAST + * @param dataAccess UCPTRIE_16, UCPTRIE_32, or UCPTRIE_8 according to the trie’s value width + * @param src (const char *, in/out) the source text pointer + * @param limit (const char *, in) the limit pointer for the text (must not be NULL) + * @param result (out) variable for the trie lookup result + * @stable ICU 63 + */ +#define UCPTRIE_FAST_U8_NEXT(trie, dataAccess, src, limit, result) UPRV_BLOCK_MACRO_BEGIN { \ + int32_t __lead = (uint8_t)*(src)++; \ + if (!U8_IS_SINGLE(__lead)) { \ + uint8_t __t1, __t2, __t3; \ + if ((src) != (limit) && \ + (__lead >= 0xe0 ? \ + __lead < 0xf0 ? /* U+0800..U+FFFF except surrogates */ \ + U8_LEAD3_T1_BITS[__lead &= 0xf] & (1 << ((__t1 = *(src)) >> 5)) && \ + ++(src) != (limit) && (__t2 = *(src) - 0x80) <= 0x3f && \ + (__lead = ((int32_t)(trie)->index[(__lead << 6) + (__t1 & 0x3f)]) + __t2, 1) \ + : /* U+10000..U+10FFFF */ \ + (__lead -= 0xf0) <= 4 && \ + U8_LEAD4_T1_BITS[(__t1 = *(src)) >> 4] & (1 << __lead) && \ + (__lead = (__lead << 6) | (__t1 & 0x3f), ++(src) != (limit)) && \ + (__t2 = *(src) - 0x80) <= 0x3f && \ + ++(src) != (limit) && (__t3 = *(src) - 0x80) <= 0x3f && \ + (__lead = __lead >= (trie)->shifted12HighStart ? \ + (trie)->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET : \ + ucptrie_internalSmallU8Index((trie), __lead, __t2, __t3), 1) \ + : /* U+0080..U+07FF */ \ + __lead >= 0xc2 && (__t1 = *(src) - 0x80) <= 0x3f && \ + (__lead = (int32_t)(trie)->index[__lead & 0x1f] + __t1, 1))) { \ + ++(src); \ + } else { \ + __lead = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; /* ill-formed*/ \ + } \ + } \ + (result) = dataAccess(trie, __lead); \ +} UPRV_BLOCK_MACRO_END + +/** + * UTF-8: Pre-decrements src and gets a value from the trie. + * Sets the trie error value for an ill-formed byte sequence. + * + * Unlike UCPTRIE_FAST_U16_PREV() this UTF-8 macro does not provide the code point + * because it would be more work to do so and is often not needed. + * If the trie value differs from the error value, then the byte sequence is well-formed, + * and the code point can be assembled without revalidation. + * + * @param trie (const UCPTrie *, in) the trie; must have type UCPTRIE_TYPE_FAST + * @param dataAccess UCPTRIE_16, UCPTRIE_32, or UCPTRIE_8 according to the trie’s value width + * @param start (const char *, in) the start pointer for the text + * @param src (const char *, in/out) the source text pointer + * @param result (out) variable for the trie lookup result + * @stable ICU 63 + */ +#define UCPTRIE_FAST_U8_PREV(trie, dataAccess, start, src, result) UPRV_BLOCK_MACRO_BEGIN { \ + int32_t __index = (uint8_t)*--(src); \ + if (!U8_IS_SINGLE(__index)) { \ + __index = ucptrie_internalU8PrevIndex((trie), __index, (const uint8_t *)(start), \ + (const uint8_t *)(src)); \ + (src) -= __index & 7; \ + __index >>= 3; \ + } \ + (result) = dataAccess(trie, __index); \ +} UPRV_BLOCK_MACRO_END + +/** + * Returns a trie value for an ASCII code point, without range checking. + * + * @param trie (const UCPTrie *, in) the trie (of either fast or small type) + * @param dataAccess UCPTRIE_16, UCPTRIE_32, or UCPTRIE_8 according to the trie’s value width + * @param c (UChar32, in) the input code point; must be U+0000..U+007F + * @return The ASCII code point's trie value. + * @stable ICU 63 + */ +#define UCPTRIE_ASCII_GET(trie, dataAccess, c) dataAccess(trie, c) + +/** + * Returns a trie value for a BMP code point (U+0000..U+FFFF), without range checking. + * Can be used to look up a value for a UTF-16 code unit if other parts of + * the string processing check for surrogates. + * + * @param trie (const UCPTrie *, in) the trie; must have type UCPTRIE_TYPE_FAST + * @param dataAccess UCPTRIE_16, UCPTRIE_32, or UCPTRIE_8 according to the trie’s value width + * @param c (UChar32, in) the input code point, must be U+0000..U+FFFF + * @return The BMP code point's trie value. + * @stable ICU 63 + */ +#define UCPTRIE_FAST_BMP_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_FAST_INDEX(trie, c)) + +/** + * Returns a trie value for a supplementary code point (U+10000..U+10FFFF), + * without range checking. + * + * @param trie (const UCPTrie *, in) the trie; must have type UCPTRIE_TYPE_FAST + * @param dataAccess UCPTRIE_16, UCPTRIE_32, or UCPTRIE_8 according to the trie’s value width + * @param c (UChar32, in) the input code point, must be U+10000..U+10FFFF + * @return The supplementary code point's trie value. + * @stable ICU 63 + */ +#define UCPTRIE_FAST_SUPP_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_SMALL_INDEX(trie, c)) + +/* Internal definitions ----------------------------------------------------- */ + +#ifndef U_IN_DOXYGEN + +/** + * Internal implementation constants. + * These are needed for the API macros, but users should not use these directly. + * @internal + */ +enum { + /** @internal */ + UCPTRIE_FAST_SHIFT = 6, + + /** Number of entries in a data block for code points below the fast limit. 64=0x40 @internal */ + UCPTRIE_FAST_DATA_BLOCK_LENGTH = 1 << UCPTRIE_FAST_SHIFT, + + /** Mask for getting the lower bits for the in-fast-data-block offset. @internal */ + UCPTRIE_FAST_DATA_MASK = UCPTRIE_FAST_DATA_BLOCK_LENGTH - 1, + + /** @internal */ + UCPTRIE_SMALL_MAX = 0xfff, + + /** + * Offset from dataLength (to be subtracted) for fetching the + * value returned for out-of-range code points and ill-formed UTF-8/16. + * @internal + */ + UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET = 1, + /** + * Offset from dataLength (to be subtracted) for fetching the + * value returned for code points highStart..U+10FFFF. + * @internal + */ + UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET = 2 +}; + +/* Internal functions and macros -------------------------------------------- */ +// Do not conditionalize with #ifndef U_HIDE_INTERNAL_API, needed for public API + +/** @internal */ +U_CAPI int32_t U_EXPORT2 +ucptrie_internalSmallIndex(const UCPTrie *trie, UChar32 c); + +/** @internal */ +U_CAPI int32_t U_EXPORT2 +ucptrie_internalSmallU8Index(const UCPTrie *trie, int32_t lt1, uint8_t t2, uint8_t t3); + +/** + * Internal function for part of the UCPTRIE_FAST_U8_PREVxx() macro implementations. + * Do not call directly. + * @internal + */ +U_CAPI int32_t U_EXPORT2 +ucptrie_internalU8PrevIndex(const UCPTrie *trie, UChar32 c, + const uint8_t *start, const uint8_t *src); + +/** Internal trie getter for a code point below the fast limit. Returns the data index. @internal */ +#define _UCPTRIE_FAST_INDEX(trie, c) \ + ((int32_t)(trie)->index[(c) >> UCPTRIE_FAST_SHIFT] + ((c) & UCPTRIE_FAST_DATA_MASK)) + +/** Internal trie getter for a code point at or above the fast limit. Returns the data index. @internal */ +#define _UCPTRIE_SMALL_INDEX(trie, c) \ + ((c) >= (trie)->highStart ? \ + (trie)->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET : \ + ucptrie_internalSmallIndex(trie, c)) + +/** + * Internal trie getter for a code point, with checking that c is in U+0000..10FFFF. + * Returns the data index. + * @internal + */ +#define _UCPTRIE_CP_INDEX(trie, fastMax, c) \ + ((uint32_t)(c) <= (uint32_t)(fastMax) ? \ + _UCPTRIE_FAST_INDEX(trie, c) : \ + (uint32_t)(c) <= 0x10ffff ? \ + _UCPTRIE_SMALL_INDEX(trie, c) : \ + (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET) + +U_CDECL_END + +#endif // U_IN_DOXYGEN + + +#endif // __UCPTRIE_H__ + +// umutablecptrie.h +// Copyright (C) 2017 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html + +// umutablecptrie.h (split out of ucptrie.h) +// created: 2018jan24 Markus W. Scherer + +#ifndef __UMUTABLECPTRIE_H__ +#define __UMUTABLECPTRIE_H__ + + + + +U_CDECL_BEGIN + +/** + * \file + * + * This file defines a mutable Unicode code point trie. + * + * @see UCPTrie + * @see UMutableCPTrie + */ + +/** + * Mutable Unicode code point trie. + * Fast map from Unicode code points (U+0000..U+10FFFF) to 32-bit integer values. + * For details see https://icu.unicode.org/design/struct/utrie + * + * Setting values (especially ranges) and lookup is fast. + * The mutable trie is only somewhat space-efficient. + * It builds a compacted, immutable UCPTrie. + * + * This trie can be modified while iterating over its contents. + * For example, it is possible to merge its values with those from another + * set of ranges (e.g., another mutable or immutable trie): + * Iterate over those source ranges; for each of them iterate over this trie; + * add the source value into the value of each trie range. + * + * @see UCPTrie + * @see umutablecptrie_buildImmutable + * @stable ICU 63 + */ +typedef struct UMutableCPTrie UMutableCPTrie; + +/** + * Creates a mutable trie that initially maps each Unicode code point to the same value. + * It uses 32-bit data values until umutablecptrie_buildImmutable() is called. + * umutablecptrie_buildImmutable() takes a valueWidth parameter which + * determines the number of bits in the data value in the resulting UCPTrie. + * You must umutablecptrie_close() the trie once you are done using it. + * + * @param initialValue the initial value that is set for all code points + * @param errorValue the value for out-of-range code points and ill-formed UTF-8/16 + * @param pErrorCode an in/out ICU UErrorCode + * @return the trie + * @stable ICU 63 + */ +U_CAPI UMutableCPTrie * U_EXPORT2 +umutablecptrie_open(uint32_t initialValue, uint32_t errorValue, UErrorCode *pErrorCode); + +/** + * Clones a mutable trie. + * You must umutablecptrie_close() the clone once you are done using it. + * + * @param other the trie to clone + * @param pErrorCode an in/out ICU UErrorCode + * @return the trie clone + * @stable ICU 63 + */ +U_CAPI UMutableCPTrie * U_EXPORT2 +umutablecptrie_clone(const UMutableCPTrie *other, UErrorCode *pErrorCode); + +/** + * Closes a mutable trie and releases associated memory. + * + * @param trie the trie + * @stable ICU 63 + */ +U_CAPI void U_EXPORT2 +umutablecptrie_close(UMutableCPTrie *trie); + +/** + * Creates a mutable trie with the same contents as the UCPMap. + * You must umutablecptrie_close() the mutable trie once you are done using it. + * + * @param map the source map + * @param pErrorCode an in/out ICU UErrorCode + * @return the mutable trie + * @stable ICU 63 + */ +U_CAPI UMutableCPTrie * U_EXPORT2 +umutablecptrie_fromUCPMap(const UCPMap *map, UErrorCode *pErrorCode); + +/** + * Creates a mutable trie with the same contents as the immutable one. + * You must umutablecptrie_close() the mutable trie once you are done using it. + * + * @param trie the immutable trie + * @param pErrorCode an in/out ICU UErrorCode + * @return the mutable trie + * @stable ICU 63 + */ +U_CAPI UMutableCPTrie * U_EXPORT2 +umutablecptrie_fromUCPTrie(const UCPTrie *trie, UErrorCode *pErrorCode); + +/** + * Returns the value for a code point as stored in the trie. + * + * @param trie the trie + * @param c the code point + * @return the value + * @stable ICU 63 + */ +U_CAPI uint32_t U_EXPORT2 +umutablecptrie_get(const UMutableCPTrie *trie, UChar32 c); + +/** + * Returns the last code point such that all those from start to there have the same value. + * Can be used to efficiently iterate over all same-value ranges in a trie. + * (This is normally faster than iterating over code points and get()ting each value, + * but much slower than a data structure that stores ranges directly.) + * + * The trie can be modified between calls to this function. + * + * If the UCPMapValueFilter function pointer is not NULL, then + * the value to be delivered is passed through that function, and the return value is the end + * of the range where all values are modified to the same actual value. + * The value is unchanged if that function pointer is NULL. + * + * See the same-signature ucptrie_getRange() for a code sample. + * + * @param trie the trie + * @param start range start + * @param option defines whether surrogates are treated normally, + * or as having the surrogateValue; usually UCPMAP_RANGE_NORMAL + * @param surrogateValue value for surrogates; ignored if option==UCPMAP_RANGE_NORMAL + * @param filter a pointer to a function that may modify the trie data value, + * or NULL if the values from the trie are to be used unmodified + * @param context an opaque pointer that is passed on to the filter function + * @param pValue if not NULL, receives the value that every code point start..end has; + * may have been modified by filter(context, trie value) + * if that function pointer is not NULL + * @return the range end code point, or -1 if start is not a valid code point + * @stable ICU 63 + */ +U_CAPI UChar32 U_EXPORT2 +umutablecptrie_getRange(const UMutableCPTrie *trie, UChar32 start, + UCPMapRangeOption option, uint32_t surrogateValue, + UCPMapValueFilter *filter, const void *context, uint32_t *pValue); + +/** + * Sets a value for a code point. + * + * @param trie the trie + * @param c the code point + * @param value the value + * @param pErrorCode an in/out ICU UErrorCode + * @stable ICU 63 + */ +U_CAPI void U_EXPORT2 +umutablecptrie_set(UMutableCPTrie *trie, UChar32 c, uint32_t value, UErrorCode *pErrorCode); + +/** + * Sets a value for each code point [start..end]. + * Faster and more space-efficient than setting the value for each code point separately. + * + * @param trie the trie + * @param start the first code point to get the value + * @param end the last code point to get the value (inclusive) + * @param value the value + * @param pErrorCode an in/out ICU UErrorCode + * @stable ICU 63 + */ +U_CAPI void U_EXPORT2 +umutablecptrie_setRange(UMutableCPTrie *trie, + UChar32 start, UChar32 end, + uint32_t value, UErrorCode *pErrorCode); + +/** + * Compacts the data and builds an immutable UCPTrie according to the parameters. + * After this, the mutable trie will be empty. + * + * The mutable trie stores 32-bit values until buildImmutable() is called. + * If values shorter than 32 bits are to be stored in the immutable trie, + * then the upper bits are discarded. + * For example, when the mutable trie contains values 0x81, -0x7f, and 0xa581, + * and the value width is 8 bits, then each of these is stored as 0x81 + * and the immutable trie will return that as an unsigned value. + * (Some implementations may want to make productive temporary use of the upper bits + * until buildImmutable() discards them.) + * + * Not every possible set of mappings can be built into a UCPTrie, + * because of limitations resulting from speed and space optimizations. + * Every Unicode assigned character can be mapped to a unique value. + * Typical data yields data structures far smaller than the limitations. + * + * It is possible to construct extremely unusual mappings that exceed the data structure limits. + * In such a case this function will fail with a U_INDEX_OUTOFBOUNDS_ERROR. + * + * @param trie the trie trie + * @param type selects the trie type + * @param valueWidth selects the number of bits in a trie data value; if smaller than 32 bits, + * then the values stored in the trie will be truncated first + * @param pErrorCode an in/out ICU UErrorCode + * + * @see umutablecptrie_fromUCPTrie + * @stable ICU 63 + */ +U_CAPI UCPTrie * U_EXPORT2 +umutablecptrie_buildImmutable(UMutableCPTrie *trie, UCPTrieType type, UCPTrieValueWidth valueWidth, + UErrorCode *pErrorCode); + +U_CDECL_END + + +#endif // __UMUTABLECPTRIE_H__ + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +// ucnv_err.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 1999-2009, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** + * + * + * ucnv_err.h: + */ + +/** + * \file + * \brief C API: UConverter predefined error callbacks + * + *

Error Behaviour Functions

+ * Defines some error behaviour functions called by ucnv_{from,to}Unicode + * These are provided as part of ICU and many are stable, but they + * can also be considered only as an example of what can be done with + * callbacks. You may of course write your own. + * + * If you want to write your own, you may also find the functions from + * ucnv_cb.h useful when writing your own callbacks. + * + * These functions, although public, should NEVER be called directly. + * They should be used as parameters to the ucnv_setFromUCallback + * and ucnv_setToUCallback functions, to set the behaviour of a converter + * when it encounters ILLEGAL/UNMAPPED/INVALID sequences. + * + * usage example: 'STOP' doesn't need any context, but newContext + * could be set to something other than 'NULL' if needed. The available + * contexts in this header can modify the default behavior of the callback. + * + * \code + * UErrorCode err = U_ZERO_ERROR; + * UConverter *myConverter = ucnv_open("ibm-949", &err); + * const void *oldContext; + * UConverterFromUCallback oldAction; + * + * + * if (U_SUCCESS(err)) + * { + * ucnv_setFromUCallBack(myConverter, + * UCNV_FROM_U_CALLBACK_STOP, + * NULL, + * &oldAction, + * &oldContext, + * &status); + * } + * \endcode + * + * The code above tells "myConverter" to stop when it encounters an + * ILLEGAL/TRUNCATED/INVALID sequences when it is used to convert from + * Unicode -> Codepage. The behavior from Codepage to Unicode is not changed, + * and ucnv_setToUCallBack would need to be called in order to change + * that behavior too. + * + * Here is an example with a context: + * + * \code + * UErrorCode err = U_ZERO_ERROR; + * UConverter *myConverter = ucnv_open("ibm-949", &err); + * const void *oldContext; + * UConverterFromUCallback oldAction; + * + * + * if (U_SUCCESS(err)) + * { + * ucnv_setToUCallBack(myConverter, + * UCNV_TO_U_CALLBACK_SUBSTITUTE, + * UCNV_SUB_STOP_ON_ILLEGAL, + * &oldAction, + * &oldContext, + * &status); + * } + * \endcode + * + * The code above tells "myConverter" to stop when it encounters an + * ILLEGAL/TRUNCATED/INVALID sequences when it is used to convert from + * Codepage -> Unicode. Any unmapped and legal characters will be + * substituted to be the default substitution character. + */ + +#ifndef UCNV_ERR_H +#define UCNV_ERR_H + + +#if !UCONFIG_NO_CONVERSION + +/** Forward declaring the UConverter structure. @stable ICU 2.0 */ +struct UConverter; + +/** @stable ICU 2.0 */ +typedef struct UConverter UConverter; + +/** + * FROM_U, TO_U context options for sub callback + * @stable ICU 2.0 + */ +#define UCNV_SUB_STOP_ON_ILLEGAL "i" + +/** + * FROM_U, TO_U context options for skip callback + * @stable ICU 2.0 + */ +#define UCNV_SKIP_STOP_ON_ILLEGAL "i" + +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to ICU (%UXXXX) + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_ICU NULL +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to JAVA (\\uXXXX) + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_JAVA "J" +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to C (\\uXXXX \\UXXXXXXXX) + * TO_U_CALLBACK_ESCAPE option to escape the character value according to C (\\xXXXX) + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_C "C" +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to XML Decimal escape \htmlonly(&#DDDD;)\endhtmlonly + * TO_U_CALLBACK_ESCAPE context option to escape the character value according to XML Decimal escape \htmlonly(&#DDDD;)\endhtmlonly + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_XML_DEC "D" +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to XML Hex escape \htmlonly(&#xXXXX;)\endhtmlonly + * TO_U_CALLBACK_ESCAPE context option to escape the character value according to XML Hex escape \htmlonly(&#xXXXX;)\endhtmlonly + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_XML_HEX "X" +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to Unicode (U+XXXXX) + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_UNICODE "U" + +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to CSS2 conventions (\\HH..H, that is, + * a backslash, 1..6 hex digits, and a space) + * @stable ICU 4.0 + */ +#define UCNV_ESCAPE_CSS2 "S" + +/** + * The process condition code to be used with the callbacks. + * Codes which are greater than UCNV_IRREGULAR should be + * passed on to any chained callbacks. + * @stable ICU 2.0 + */ +typedef enum { + UCNV_UNASSIGNED = 0, /**< The code point is unassigned. + The error code U_INVALID_CHAR_FOUND will be set. */ + UCNV_ILLEGAL = 1, /**< The code point is illegal. For example, + \\x81\\x2E is illegal in SJIS because \\x2E + is not a valid trail byte for the \\x81 + lead byte. + Also, starting with Unicode 3.0.1, non-shortest byte sequences + in UTF-8 (like \\xC1\\xA1 instead of \\x61 for U+0061) + are also illegal, not just irregular. + The error code U_ILLEGAL_CHAR_FOUND will be set. */ + UCNV_IRREGULAR = 2, /**< The codepoint is not a regular sequence in + the encoding. For example, \\xED\\xA0\\x80..\\xED\\xBF\\xBF + are irregular UTF-8 byte sequences for single surrogate + code points. + The error code U_INVALID_CHAR_FOUND will be set. */ + UCNV_RESET = 3, /**< The callback is called with this reason when a + 'reset' has occurred. Callback should reset all + state. */ + UCNV_CLOSE = 4, /**< Called when the converter is closed. The + callback should release any allocated memory.*/ + UCNV_CLONE = 5 /**< Called when ucnv_safeClone() is called on the + converter. the pointer available as the + 'context' is an alias to the original converters' + context pointer. If the context must be owned + by the new converter, the callback must clone + the data and call ucnv_setFromUCallback + (or setToUCallback) with the correct pointer. + @stable ICU 2.2 + */ +} UConverterCallbackReason; + + +/** + * The structure for the fromUnicode callback function parameter. + * @stable ICU 2.0 + */ +typedef struct { + uint16_t size; /**< The size of this struct. @stable ICU 2.0 */ + UBool flush; /**< The internal state of converter will be reset and data flushed if set to true. @stable ICU 2.0 */ + UConverter *converter; /**< Pointer to the converter that is opened and to which this struct is passed as an argument. @stable ICU 2.0 */ + const UChar *source; /**< Pointer to the source source buffer. @stable ICU 2.0 */ + const UChar *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 */ + char *target; /**< Pointer to the target buffer. @stable ICU 2.0 */ + const char *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 */ + int32_t *offsets; /**< Pointer to the buffer that receives the offsets. *offset = blah ; offset++;. @stable ICU 2.0 */ +} UConverterFromUnicodeArgs; + + +/** + * The structure for the toUnicode callback function parameter. + * @stable ICU 2.0 + */ +typedef struct { + uint16_t size; /**< The size of this struct @stable ICU 2.0 */ + UBool flush; /**< The internal state of converter will be reset and data flushed if set to true. @stable ICU 2.0 */ + UConverter *converter; /**< Pointer to the converter that is opened and to which this struct is passed as an argument. @stable ICU 2.0 */ + const char *source; /**< Pointer to the source source buffer. @stable ICU 2.0 */ + const char *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 */ + UChar *target; /**< Pointer to the target buffer. @stable ICU 2.0 */ + const UChar *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 */ + int32_t *offsets; /**< Pointer to the buffer that receives the offsets. *offset = blah ; offset++;. @stable ICU 2.0 */ +} UConverterToUnicodeArgs; + + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This From Unicode callback STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * + * @param context Pointer to the callback's private data + * @param fromUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' UChars of the concerned Unicode sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint. + * @param reason Defines the reason the callback was invoked + * @param err This should always be set to a failure status prior to calling. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_STOP ( + const void *context, + UConverterFromUnicodeArgs *fromUArgs, + const UChar* codeUnits, + int32_t length, + UChar32 codePoint, + UConverterCallbackReason reason, + UErrorCode * err); + + + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This To Unicode callback STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * + * @param context Pointer to the callback's private data + * @param toUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' bytes of the concerned codepage sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param reason Defines the reason the callback was invoked + * @param err This should always be set to a failure status prior to calling. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP ( + const void *context, + UConverterToUnicodeArgs *toUArgs, + const char* codeUnits, + int32_t length, + UConverterCallbackReason reason, + UErrorCode * err); + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This From Unicode callback skips any ILLEGAL_SEQUENCE, or + * skips only UNASSIGNED_SEQUENCE depending on the context parameter + * simply ignoring those characters. + * + * @param context The function currently recognizes the callback options: + * UCNV_SKIP_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * NULL: Skips any ILLEGAL_SEQUENCE + * @param fromUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' UChars of the concerned Unicode sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint. + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_SKIP ( + const void *context, + UConverterFromUnicodeArgs *fromUArgs, + const UChar* codeUnits, + int32_t length, + UChar32 codePoint, + UConverterCallbackReason reason, + UErrorCode * err); + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This From Unicode callback will Substitute the ILLEGAL SEQUENCE, or + * UNASSIGNED_SEQUENCE depending on context parameter, with the + * current substitution string for the converter. This is the default + * callback. + * + * @param context The function currently recognizes the callback options: + * UCNV_SUB_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * NULL: Substitutes any ILLEGAL_SEQUENCE + * @param fromUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' UChars of the concerned Unicode sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint. + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @see ucnv_setSubstChars + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_SUBSTITUTE ( + const void *context, + UConverterFromUnicodeArgs *fromUArgs, + const UChar* codeUnits, + int32_t length, + UChar32 codePoint, + UConverterCallbackReason reason, + UErrorCode * err); + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This From Unicode callback will Substitute the ILLEGAL SEQUENCE with the + * hexadecimal representation of the illegal codepoints + * + * @param context The function currently recognizes the callback options: + *
    + *
  • UCNV_ESCAPE_ICU: Substitutes the ILLEGAL SEQUENCE with the hexadecimal + * representation in the format %UXXXX, e.g. "%uFFFE%u00AC%uC8FE"). + * In the Event the converter doesn't support the characters {%,U}[A-F][0-9], + * it will substitute the illegal sequence with the substitution characters. + * Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as + * %UD84D%UDC56
  • + *
  • UCNV_ESCAPE_JAVA: Substitutes the ILLEGAL SEQUENCE with the hexadecimal + * representation in the format \\uXXXX, e.g. "\\uFFFE\\u00AC\\uC8FE"). + * In the Event the converter doesn't support the characters {\,u}[A-F][0-9], + * it will substitute the illegal sequence with the substitution characters. + * Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as + * \\uD84D\\uDC56
  • + *
  • UCNV_ESCAPE_C: Substitutes the ILLEGAL SEQUENCE with the hexadecimal + * representation in the format \\uXXXX, e.g. "\\uFFFE\\u00AC\\uC8FE"). + * In the Event the converter doesn't support the characters {\,u,U}[A-F][0-9], + * it will substitute the illegal sequence with the substitution characters. + * Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as + * \\U00023456
  • + *
  • UCNV_ESCAPE_XML_DEC: Substitutes the ILLEGAL SEQUENCE with the decimal + * representation in the format \htmlonly&#DDDDDDDD;, e.g. "&#65534;&#172;&#51454;")\endhtmlonly. + * In the Event the converter doesn't support the characters {&,#}[0-9], + * it will substitute the illegal sequence with the substitution characters. + * Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as + * &#144470; and Zero padding is ignored.
  • + *
  • UCNV_ESCAPE_XML_HEX:Substitutes the ILLEGAL SEQUENCE with the decimal + * representation in the format \htmlonly&#xXXXX; e.g. "&#xFFFE;&#x00AC;&#xC8FE;")\endhtmlonly. + * In the Event the converter doesn't support the characters {&,#,x}[0-9], + * it will substitute the illegal sequence with the substitution characters. + * Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as + * \htmlonly&#x23456;\endhtmlonly
  • + *
+ * @param fromUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' UChars of the concerned Unicode sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint. + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_ESCAPE ( + const void *context, + UConverterFromUnicodeArgs *fromUArgs, + const UChar* codeUnits, + int32_t length, + UChar32 codePoint, + UConverterCallbackReason reason, + UErrorCode * err); + + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This To Unicode callback skips any ILLEGAL_SEQUENCE, or + * skips only UNASSIGNED_SEQUENCE depending on the context parameter + * simply ignoring those characters. + * + * @param context The function currently recognizes the callback options: + * UCNV_SKIP_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * NULL: Skips any ILLEGAL_SEQUENCE + * @param toUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' bytes of the concerned codepage sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_SKIP ( + const void *context, + UConverterToUnicodeArgs *toUArgs, + const char* codeUnits, + int32_t length, + UConverterCallbackReason reason, + UErrorCode * err); + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This To Unicode callback will Substitute the ILLEGAL SEQUENCE,or + * UNASSIGNED_SEQUENCE depending on context parameter, with the + * Unicode substitution character, U+FFFD. + * + * @param context The function currently recognizes the callback options: + * UCNV_SUB_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * NULL: Substitutes any ILLEGAL_SEQUENCE + * @param toUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' bytes of the concerned codepage sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_SUBSTITUTE ( + const void *context, + UConverterToUnicodeArgs *toUArgs, + const char* codeUnits, + int32_t length, + UConverterCallbackReason reason, + UErrorCode * err); + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This To Unicode callback will Substitute the ILLEGAL SEQUENCE with the + * hexadecimal representation of the illegal bytes + * (in the format %XNN, e.g. "%XFF%X0A%XC8%X03"). + * + * @param context This function currently recognizes the callback options: + * UCNV_ESCAPE_ICU, UCNV_ESCAPE_JAVA, UCNV_ESCAPE_C, UCNV_ESCAPE_XML_DEC, + * UCNV_ESCAPE_XML_HEX and UCNV_ESCAPE_UNICODE. + * @param toUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' bytes of the concerned codepage sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @stable ICU 2.0 + */ + +U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_ESCAPE ( + const void *context, + UConverterToUnicodeArgs *toUArgs, + const char* codeUnits, + int32_t length, + UConverterCallbackReason reason, + UErrorCode * err); + +#endif + +#endif + +/*UCNV_ERR_H*/ + +// ucnv.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 1999-2014, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** + * ucnv.h: + * External APIs for the ICU's codeset conversion library + * Bertrand A. Damiba + * + * Modification History: + * + * Date Name Description + * 04/04/99 helena Fixed internal header inclusion. + * 05/11/00 helena Added setFallback and usesFallback APIs. + * 06/29/2000 helena Major rewrite of the callback APIs. + * 12/07/2000 srl Update of documentation + */ + +/** + * \file + * \brief C API: Character conversion + * + *

Character Conversion C API

+ * + *

This API is used to convert codepage or character encoded data to and + * from UTF-16. You can open a converter with {@link ucnv_open() }. With that + * converter, you can get its properties, set options, convert your data and + * close the converter.

+ * + *

Since many software programs recognize different converter names for + * different types of converters, there are other functions in this API to + * iterate over the converter aliases. The functions {@link ucnv_getAvailableName() }, + * {@link ucnv_getAlias() } and {@link ucnv_getStandardName() } are some of the + * more frequently used alias functions to get this information.

+ * + *

When a converter encounters an illegal, irregular, invalid or unmappable character + * its default behavior is to use a substitution character to replace the + * bad byte sequence. This behavior can be changed by using {@link ucnv_setFromUCallBack() } + * or {@link ucnv_setToUCallBack() } on the converter. The header ucnv_err.h defines + * many other callback actions that can be used instead of a character substitution.

+ * + *

More information about this API can be found in our + * User Guide.

+ */ + +#ifndef UCNV_H +#define UCNV_H + + + +#if !defined(USET_DEFINED) && !defined(U_IN_DOXYGEN) + +#define USET_DEFINED + +/** + * USet is the C API type corresponding to C++ class UnicodeSet. + * It is forward-declared here to avoid including unicode/uset.h file if related + * conversion APIs are not used. + * + * @see ucnv_getUnicodeSet + * @stable ICU 2.4 + */ +typedef struct USet USet; + +#endif + +#if !UCONFIG_NO_CONVERSION + +U_CDECL_BEGIN + +/** Maximum length of a converter name including the terminating NULL @stable ICU 2.0 */ +#define UCNV_MAX_CONVERTER_NAME_LENGTH 60 +/** Maximum length of a converter name including path and terminating NULL @stable ICU 2.0 */ +#define UCNV_MAX_FULL_FILE_NAME_LENGTH (600+UCNV_MAX_CONVERTER_NAME_LENGTH) + +/** Shift in for EBDCDIC_STATEFUL and iso2022 states @stable ICU 2.0 */ +#define UCNV_SI 0x0F +/** Shift out for EBDCDIC_STATEFUL and iso2022 states @stable ICU 2.0 */ +#define UCNV_SO 0x0E + +/** + * Enum for specifying basic types of converters + * @see ucnv_getType + * @stable ICU 2.0 + */ +typedef enum { + /** @stable ICU 2.0 */ + UCNV_UNSUPPORTED_CONVERTER = -1, + /** @stable ICU 2.0 */ + UCNV_SBCS = 0, + /** @stable ICU 2.0 */ + UCNV_DBCS = 1, + /** @stable ICU 2.0 */ + UCNV_MBCS = 2, + /** @stable ICU 2.0 */ + UCNV_LATIN_1 = 3, + /** @stable ICU 2.0 */ + UCNV_UTF8 = 4, + /** @stable ICU 2.0 */ + UCNV_UTF16_BigEndian = 5, + /** @stable ICU 2.0 */ + UCNV_UTF16_LittleEndian = 6, + /** @stable ICU 2.0 */ + UCNV_UTF32_BigEndian = 7, + /** @stable ICU 2.0 */ + UCNV_UTF32_LittleEndian = 8, + /** @stable ICU 2.0 */ + UCNV_EBCDIC_STATEFUL = 9, + /** @stable ICU 2.0 */ + UCNV_ISO_2022 = 10, + + /** @stable ICU 2.0 */ + UCNV_LMBCS_1 = 11, + /** @stable ICU 2.0 */ + UCNV_LMBCS_2, + /** @stable ICU 2.0 */ + UCNV_LMBCS_3, + /** @stable ICU 2.0 */ + UCNV_LMBCS_4, + /** @stable ICU 2.0 */ + UCNV_LMBCS_5, + /** @stable ICU 2.0 */ + UCNV_LMBCS_6, + /** @stable ICU 2.0 */ + UCNV_LMBCS_8, + /** @stable ICU 2.0 */ + UCNV_LMBCS_11, + /** @stable ICU 2.0 */ + UCNV_LMBCS_16, + /** @stable ICU 2.0 */ + UCNV_LMBCS_17, + /** @stable ICU 2.0 */ + UCNV_LMBCS_18, + /** @stable ICU 2.0 */ + UCNV_LMBCS_19, + /** @stable ICU 2.0 */ + UCNV_LMBCS_LAST = UCNV_LMBCS_19, + /** @stable ICU 2.0 */ + UCNV_HZ, + /** @stable ICU 2.0 */ + UCNV_SCSU, + /** @stable ICU 2.0 */ + UCNV_ISCII, + /** @stable ICU 2.0 */ + UCNV_US_ASCII, + /** @stable ICU 2.0 */ + UCNV_UTF7, + /** @stable ICU 2.2 */ + UCNV_BOCU1, + /** @stable ICU 2.2 */ + UCNV_UTF16, + /** @stable ICU 2.2 */ + UCNV_UTF32, + /** @stable ICU 2.2 */ + UCNV_CESU8, + /** @stable ICU 2.4 */ + UCNV_IMAP_MAILBOX, + /** @stable ICU 4.8 */ + UCNV_COMPOUND_TEXT, + + /* Number of converter types for which we have conversion routines. */ + UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES +} UConverterType; + +/** + * Enum for specifying which platform a converter ID refers to. + * The use of platform/CCSID is not recommended. See ucnv_openCCSID(). + * + * @see ucnv_getPlatform + * @see ucnv_openCCSID + * @see ucnv_getCCSID + * @stable ICU 2.0 + */ +typedef enum { + UCNV_UNKNOWN = -1, + UCNV_IBM = 0 +} UConverterPlatform; + +/** + * Function pointer for error callback in the codepage to unicode direction. + * Called when an error has occurred in conversion to unicode, or on open/close of the callback (see reason). + * @param context Pointer to the callback's private data + * @param args Information about the conversion in progress + * @param codeUnits Points to 'length' bytes of the concerned codepage sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param reason Defines the reason the callback was invoked + * @param pErrorCode ICU error code in/out parameter. + * For converter callback functions, set to a conversion error + * before the call, and the callback may reset it to U_ZERO_ERROR. + * @see ucnv_setToUCallBack + * @see UConverterToUnicodeArgs + * @stable ICU 2.0 + */ +typedef void (U_EXPORT2 *UConverterToUCallback) ( + const void* context, + UConverterToUnicodeArgs *args, + const char *codeUnits, + int32_t length, + UConverterCallbackReason reason, + UErrorCode *pErrorCode); + +/** + * Function pointer for error callback in the unicode to codepage direction. + * Called when an error has occurred in conversion from unicode, or on open/close of the callback (see reason). + * @param context Pointer to the callback's private data + * @param args Information about the conversion in progress + * @param codeUnits Points to 'length' UChars of the concerned Unicode sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint. + * @param reason Defines the reason the callback was invoked + * @param pErrorCode ICU error code in/out parameter. + * For converter callback functions, set to a conversion error + * before the call, and the callback may reset it to U_ZERO_ERROR. + * @see ucnv_setFromUCallBack + * @stable ICU 2.0 + */ +typedef void (U_EXPORT2 *UConverterFromUCallback) ( + const void* context, + UConverterFromUnicodeArgs *args, + const UChar* codeUnits, + int32_t length, + UChar32 codePoint, + UConverterCallbackReason reason, + UErrorCode *pErrorCode); + +U_CDECL_END + +/** + * Character that separates converter names from options and options from each other. + * @see ucnv_open + * @stable ICU 2.0 + */ +#define UCNV_OPTION_SEP_CHAR ',' + +/** + * String version of UCNV_OPTION_SEP_CHAR. + * @see ucnv_open + * @stable ICU 2.0 + */ +#define UCNV_OPTION_SEP_STRING "," + +/** + * Character that separates a converter option from its value. + * @see ucnv_open + * @stable ICU 2.0 + */ +#define UCNV_VALUE_SEP_CHAR '=' + +/** + * String version of UCNV_VALUE_SEP_CHAR. + * @see ucnv_open + * @stable ICU 2.0 + */ +#define UCNV_VALUE_SEP_STRING "=" + +/** + * Converter option for specifying a locale. + * For example, ucnv_open("SCSU,locale=ja", &errorCode); + * See convrtrs.txt. + * + * @see ucnv_open + * @stable ICU 2.0 + */ +#define UCNV_LOCALE_OPTION_STRING ",locale=" + +/** + * Converter option for specifying a version selector (0..9) for some converters. + * For example, + * \code + * ucnv_open("UTF-7,version=1", &errorCode); + * \endcode + * See convrtrs.txt. + * + * @see ucnv_open + * @stable ICU 2.4 + */ +#define UCNV_VERSION_OPTION_STRING ",version=" + +/** + * Converter option for EBCDIC SBCS or mixed-SBCS/DBCS (stateful) codepages. + * Swaps Unicode mappings for EBCDIC LF and NL codes, as used on + * S/390 (z/OS) Unix System Services (Open Edition). + * For example, ucnv_open("ibm-1047,swaplfnl", &errorCode); + * See convrtrs.txt. + * + * @see ucnv_open + * @stable ICU 2.4 + */ +#define UCNV_SWAP_LFNL_OPTION_STRING ",swaplfnl" + +/** + * Do a fuzzy compare of two converter/alias names. + * The comparison is case-insensitive, ignores leading zeroes if they are not + * followed by further digits, and ignores all but letters and digits. + * Thus the strings "UTF-8", "utf_8", "u*T@f08" and "Utf 8" are exactly equivalent. + * See section 1.4, Charset Alias Matching in Unicode Technical Standard #22 + * at http://www.unicode.org/reports/tr22/ + * + * @param name1 a converter name or alias, zero-terminated + * @param name2 a converter name or alias, zero-terminated + * @return 0 if the names match, or a negative value if the name1 + * lexically precedes name2, or a positive value if the name1 + * lexically follows name2. + * @stable ICU 2.0 + */ +U_CAPI int U_EXPORT2 +ucnv_compareNames(const char *name1, const char *name2); + + +/** + * Creates a UConverter object with the name of a coded character set specified as a C string. + * The actual name will be resolved with the alias file + * using a case-insensitive string comparison that ignores + * leading zeroes and all non-alphanumeric characters. + * E.g., the names "UTF8", "utf-8", "u*T@f08" and "Utf 8" are all equivalent. + * (See also ucnv_compareNames().) + * If NULL is passed for the converter name, it will create one with the + * getDefaultName return value. + * + *

A converter name for ICU 1.5 and above may contain options + * like a locale specification to control the specific behavior of + * the newly instantiated converter. + * The meaning of the options depends on the particular converter. + * If an option is not defined for or recognized by a given converter, then it is ignored.

+ * + *

Options are appended to the converter name string, with a + * UCNV_OPTION_SEP_CHAR between the name and the first option and + * also between adjacent options.

+ * + *

If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING.

+ * + *

The conversion behavior and names can vary between platforms. ICU may + * convert some characters differently from other platforms. Details on this topic + * are in the User + * Guide. Aliases starting with a "cp" prefix have no specific meaning + * other than its an alias starting with the letters "cp". Please do not + * associate any meaning to these aliases.

+ * + * \snippet samples/ucnv/convsamp.cpp ucnv_open + * + * @param converterName Name of the coded character set table. + * This may have options appended to the string. + * IANA alias character set names, IBM CCSIDs starting with "ibm-", + * Windows codepage numbers starting with "windows-" are frequently + * used for this parameter. See ucnv_getAvailableName and + * ucnv_getAlias for a complete list that is available. + * If this parameter is NULL, the default converter will be used. + * @param err outgoing error status U_MEMORY_ALLOCATION_ERROR, U_FILE_ACCESS_ERROR + * @return the created Unicode converter object, or NULL if an error occurred + * @see ucnv_openU + * @see ucnv_openCCSID + * @see ucnv_getAvailableName + * @see ucnv_getAlias + * @see ucnv_getDefaultName + * @see ucnv_close + * @see ucnv_compareNames + * @stable ICU 2.0 + */ +U_CAPI UConverter* U_EXPORT2 +ucnv_open(const char *converterName, UErrorCode *err); + + +/** + * Creates a Unicode converter with the names specified as unicode string. + * The name should be limited to the ASCII-7 alphanumerics range. + * The actual name will be resolved with the alias file + * using a case-insensitive string comparison that ignores + * leading zeroes and all non-alphanumeric characters. + * E.g., the names "UTF8", "utf-8", "u*T@f08" and "Utf 8" are all equivalent. + * (See also ucnv_compareNames().) + * If NULL is passed for the converter name, it will create + * one with the ucnv_getDefaultName() return value. + * If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING. + * + *

See ucnv_open for the complete details

+ * @param name Name of the UConverter table in a zero terminated + * Unicode string + * @param err outgoing error status U_MEMORY_ALLOCATION_ERROR, + * U_FILE_ACCESS_ERROR + * @return the created Unicode converter object, or NULL if an + * error occurred + * @see ucnv_open + * @see ucnv_openCCSID + * @see ucnv_close + * @see ucnv_compareNames + * @stable ICU 2.0 + */ +U_CAPI UConverter* U_EXPORT2 +ucnv_openU(const UChar *name, + UErrorCode *err); + +/** + * Creates a UConverter object from a CCSID number and platform pair. + * Note that the usefulness of this function is limited to platforms with numeric + * encoding IDs. Only IBM and Microsoft platforms use numeric (16-bit) identifiers for + * encodings. + * + * In addition, IBM CCSIDs and Unicode conversion tables are not 1:1 related. + * For many IBM CCSIDs there are multiple (up to six) Unicode conversion tables, and + * for some Unicode conversion tables there are multiple CCSIDs. + * Some "alternate" Unicode conversion tables are provided by the + * IBM CDRA conversion table registry. + * The most prominent example of a systematic modification of conversion tables that is + * not provided in the form of conversion table files in the repository is + * that S/390 Unix System Services swaps the codes for Line Feed and New Line in all + * EBCDIC codepages, which requires such a swap in the Unicode conversion tables as well. + * + * Only IBM default conversion tables are accessible with ucnv_openCCSID(). + * ucnv_getCCSID() will return the same CCSID for all conversion tables that are associated + * with that CCSID. + * + * Currently, the only "platform" supported in the ICU converter API is UCNV_IBM. + * + * In summary, the use of CCSIDs and the associated API functions is not recommended. + * + * In order to open a converter with the default IBM CDRA Unicode conversion table, + * you can use this function or use the prefix "ibm-": + * \code + * char name[20]; + * sprintf(name, "ibm-%hu", ccsid); + * cnv=ucnv_open(name, &errorCode); + * \endcode + * + * In order to open a converter with the IBM S/390 Unix System Services variant + * of a Unicode/EBCDIC conversion table, + * you can use the prefix "ibm-" together with the option string UCNV_SWAP_LFNL_OPTION_STRING: + * \code + * char name[20]; + * sprintf(name, "ibm-%hu" UCNV_SWAP_LFNL_OPTION_STRING, ccsid); + * cnv=ucnv_open(name, &errorCode); + * \endcode + * + * In order to open a converter from a Microsoft codepage number, use the prefix "cp": + * \code + * char name[20]; + * sprintf(name, "cp%hu", codepageID); + * cnv=ucnv_open(name, &errorCode); + * \endcode + * + * If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING. + * + * @param codepage codepage number to create + * @param platform the platform in which the codepage number exists + * @param err error status U_MEMORY_ALLOCATION_ERROR, U_FILE_ACCESS_ERROR + * @return the created Unicode converter object, or NULL if an error + * occurred. + * @see ucnv_open + * @see ucnv_openU + * @see ucnv_close + * @see ucnv_getCCSID + * @see ucnv_getPlatform + * @see UConverterPlatform + * @stable ICU 2.0 + */ +U_CAPI UConverter* U_EXPORT2 +ucnv_openCCSID(int32_t codepage, + UConverterPlatform platform, + UErrorCode * err); + +/** + *

Creates a UConverter object specified from a packageName and a converterName.

+ * + *

The packageName and converterName must point to an ICU udata object, as defined by + * udata_open( packageName, "cnv", converterName, err) or equivalent. + * Typically, packageName will refer to a (.dat) file, or to a package registered with + * udata_setAppData(). Using a full file or directory pathname for packageName is deprecated.

+ * + *

The name will NOT be looked up in the alias mechanism, nor will the converter be + * stored in the converter cache or the alias table. The only way to open further converters + * is call this function multiple times, or use the ucnv_safeClone() function to clone a + * 'primary' converter.

+ * + *

A future version of ICU may add alias table lookups and/or caching + * to this function.

+ * + *

Example Use: + * cnv = ucnv_openPackage("myapp", "myconverter", &err); + *

+ * + * @param packageName name of the package (equivalent to 'path' in udata_open() call) + * @param converterName name of the data item to be used, without suffix. + * @param err outgoing error status U_MEMORY_ALLOCATION_ERROR, U_FILE_ACCESS_ERROR + * @return the created Unicode converter object, or NULL if an error occurred + * @see udata_open + * @see ucnv_open + * @see ucnv_safeClone + * @see ucnv_close + * @stable ICU 2.2 + */ +U_CAPI UConverter* U_EXPORT2 +ucnv_openPackage(const char *packageName, const char *converterName, UErrorCode *err); + +/** + * Thread safe converter cloning operation. + * For most efficient operation, pass in a stackBuffer (and a *pBufferSize) + * with at least U_CNV_SAFECLONE_BUFFERSIZE bytes of space. + * If the buffer size is sufficient, then the clone will use the stack buffer; + * otherwise, it will be allocated, and *pBufferSize will indicate + * the actual size. (This should not occur with U_CNV_SAFECLONE_BUFFERSIZE.) + * + * You must ucnv_close() the clone in any case. + * + * If *pBufferSize==0, (regardless of whether stackBuffer==NULL or not) + * then *pBufferSize will be changed to a sufficient size + * for cloning this converter, + * without actually cloning the converter ("pure pre-flighting"). + * + * If *pBufferSize is greater than zero but not large enough for a stack-based + * clone, then the converter is cloned using newly allocated memory + * and *pBufferSize is changed to the necessary size. + * + * If the converter clone fits into the stack buffer but the stack buffer is not + * sufficiently aligned for the clone, then the clone will use an + * adjusted pointer and use an accordingly smaller buffer size. + * + * @param cnv converter to be cloned + * @param stackBuffer Deprecated functionality as of ICU 52, use NULL.
+ * user allocated space for the new clone. If NULL new memory will be allocated. + * If buffer is not large enough, new memory will be allocated. + * Clients can use the U_CNV_SAFECLONE_BUFFERSIZE. This will probably be enough to avoid memory allocations. + * @param pBufferSize Deprecated functionality as of ICU 52, use NULL or 1.
+ * pointer to size of allocated space. + * @param status to indicate whether the operation went on smoothly or there were errors + * An informational status value, U_SAFECLONE_ALLOCATED_WARNING, + * is used if any allocations were necessary. + * However, it is better to check if *pBufferSize grew for checking for + * allocations because warning codes can be overridden by subsequent + * function calls. + * @return pointer to the new clone + * @stable ICU 2.0 + */ +U_CAPI UConverter * U_EXPORT2 +ucnv_safeClone(const UConverter *cnv, + void *stackBuffer, + int32_t *pBufferSize, + UErrorCode *status); +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +U_CAPI UConverter* U_EXPORT2 ucnv_clone(const UConverter *cnv, UErrorCode *status); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + +/** + * Deletes the unicode converter and releases resources associated + * with just this instance. + * Does not free up shared converter tables. + * + * @param converter the converter object to be deleted + * @see ucnv_open + * @see ucnv_openU + * @see ucnv_openCCSID + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_close(UConverter * converter); + + +/** + * Fills in the output parameter, subChars, with the substitution characters + * as multiple bytes. + * If ucnv_setSubstString() set a Unicode string because the converter is + * stateful, then subChars will be an empty string. + * + * @param converter the Unicode converter + * @param subChars the substitution characters + * @param len on input the capacity of subChars, on output the number + * of bytes copied to it + * @param err the outgoing error status code. + * If the substitution character array is too small, an + * U_INDEX_OUTOFBOUNDS_ERROR will be returned. + * @see ucnv_setSubstString + * @see ucnv_setSubstChars + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_getSubstChars(const UConverter *converter, + char *subChars, + int8_t *len, + UErrorCode *err); + +/** + * Sets the substitution chars when converting from unicode to a codepage. The + * substitution is specified as a string of 1-4 bytes, and may contain + * NULL bytes. + * The subChars must represent a single character. The caller needs to know the + * byte sequence of a valid character in the converter's charset. + * For some converters, for example some ISO 2022 variants, only single-byte + * substitution characters may be supported. + * The newer ucnv_setSubstString() function relaxes these limitations. + * + * @param converter the Unicode converter + * @param subChars the substitution character byte sequence we want set + * @param len the number of bytes in subChars + * @param err the error status code. U_INDEX_OUTOFBOUNDS_ERROR if + * len is bigger than the maximum number of bytes allowed in subchars + * @see ucnv_setSubstString + * @see ucnv_getSubstChars + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_setSubstChars(UConverter *converter, + const char *subChars, + int8_t len, + UErrorCode *err); + +/** + * Set a substitution string for converting from Unicode to a charset. + * The caller need not know the charset byte sequence for each charset. + * + * Unlike ucnv_setSubstChars() which is designed to set a charset byte sequence + * for a single character, this function takes a Unicode string with + * zero, one or more characters, and immediately verifies that the string can be + * converted to the charset. + * If not, or if the result is too long (more than 32 bytes as of ICU 3.6), + * then the function returns with an error accordingly. + * + * Also unlike ucnv_setSubstChars(), this function works for stateful charsets + * by converting on the fly at the point of substitution rather than setting + * a fixed byte sequence. + * + * @param cnv The UConverter object. + * @param s The Unicode string. + * @param length The number of UChars in s, or -1 for a NUL-terminated string. + * @param err Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * + * @see ucnv_setSubstChars + * @see ucnv_getSubstChars + * @stable ICU 3.6 + */ +U_CAPI void U_EXPORT2 +ucnv_setSubstString(UConverter *cnv, + const UChar *s, + int32_t length, + UErrorCode *err); + +/** + * Fills in the output parameter, errBytes, with the error characters from the + * last failing conversion. + * + * @param converter the Unicode converter + * @param errBytes the codepage bytes which were in error + * @param len on input the capacity of errBytes, on output the number of + * bytes which were copied to it + * @param err the error status code. + * If the substitution character array is too small, an + * U_INDEX_OUTOFBOUNDS_ERROR will be returned. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_getInvalidChars(const UConverter *converter, + char *errBytes, + int8_t *len, + UErrorCode *err); + +/** + * Fills in the output parameter, errChars, with the error characters from the + * last failing conversion. + * + * @param converter the Unicode converter + * @param errUChars the UChars which were in error + * @param len on input the capacity of errUChars, on output the number of + * UChars which were copied to it + * @param err the error status code. + * If the substitution character array is too small, an + * U_INDEX_OUTOFBOUNDS_ERROR will be returned. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_getInvalidUChars(const UConverter *converter, + UChar *errUChars, + int8_t *len, + UErrorCode *err); + +/** + * Resets the state of a converter to the default state. This is used + * in the case of an error, to restart a conversion from a known default state. + * It will also empty the internal output buffers. + * @param converter the Unicode converter + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_reset(UConverter *converter); + +/** + * Resets the to-Unicode part of a converter state to the default state. + * This is used in the case of an error to restart a conversion to + * Unicode to a known default state. It will also empty the internal + * output buffers used for the conversion to Unicode codepoints. + * @param converter the Unicode converter + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_resetToUnicode(UConverter *converter); + +/** + * Resets the from-Unicode part of a converter state to the default state. + * This is used in the case of an error to restart a conversion from + * Unicode to a known default state. It will also empty the internal output + * buffers used for the conversion from Unicode codepoints. + * @param converter the Unicode converter + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_resetFromUnicode(UConverter *converter); + +/** + * Returns the maximum number of bytes that are output per UChar in conversion + * from Unicode using this converter. + * The returned number can be used with UCNV_GET_MAX_BYTES_FOR_STRING + * to calculate the size of a target buffer for conversion from Unicode. + * + * Note: Before ICU 2.8, this function did not return reliable numbers for + * some stateful converters (EBCDIC_STATEFUL, ISO-2022) and LMBCS. + * + * This number may not be the same as the maximum number of bytes per + * "conversion unit". In other words, it may not be the intuitively expected + * number of bytes per character that would be published for a charset, + * and may not fulfill any other purpose than the allocation of an output + * buffer of guaranteed sufficient size for a given input length and converter. + * + * Examples for special cases that are taken into account: + * - Supplementary code points may convert to more bytes than BMP code points. + * This function returns bytes per UChar (UTF-16 code unit), not per + * Unicode code point, for efficient buffer allocation. + * - State-shifting output (SI/SO, escapes, etc.) from stateful converters. + * - When m input UChars are converted to n output bytes, then the maximum m/n + * is taken into account. + * + * The number returned here does not take into account + * (see UCNV_GET_MAX_BYTES_FOR_STRING): + * - callbacks which output more than one charset character sequence per call, + * like escape callbacks + * - initial and final non-character bytes that are output by some converters + * (automatic BOMs, initial escape sequence, final SI, etc.) + * + * Examples for returned values: + * - SBCS charsets: 1 + * - Shift-JIS: 2 + * - UTF-16: 2 (2 per BMP, 4 per surrogate _pair_, BOM not counted) + * - UTF-8: 3 (3 per BMP, 4 per surrogate _pair_) + * - EBCDIC_STATEFUL (EBCDIC mixed SBCS/DBCS): 3 (SO + DBCS) + * - ISO-2022: 3 (always outputs UTF-8) + * - ISO-2022-JP: 6 (4-byte escape sequences + DBCS) + * - ISO-2022-CN: 8 (4-byte designator sequences + 2-byte SS2/SS3 + DBCS) + * + * @param converter The Unicode converter. + * @return The maximum number of bytes per UChar (16 bit code unit) + * that are output by ucnv_fromUnicode(), + * to be used together with UCNV_GET_MAX_BYTES_FOR_STRING + * for buffer allocation. + * + * @see UCNV_GET_MAX_BYTES_FOR_STRING + * @see ucnv_getMinCharSize + * @stable ICU 2.0 + */ +U_CAPI int8_t U_EXPORT2 +ucnv_getMaxCharSize(const UConverter *converter); + +/** + * Calculates the size of a buffer for conversion from Unicode to a charset. + * The calculated size is guaranteed to be sufficient for this conversion. + * + * It takes into account initial and final non-character bytes that are output + * by some converters. + * It does not take into account callbacks which output more than one charset + * character sequence per call, like escape callbacks. + * The default (substitution) callback only outputs one charset character sequence. + * + * @param length Number of UChars to be converted. + * @param maxCharSize Return value from ucnv_getMaxCharSize() for the converter + * that will be used. + * @return Size of a buffer that will be large enough to hold the output bytes of + * converting length UChars with the converter that returned the maxCharSize. + * + * @see ucnv_getMaxCharSize + * @stable ICU 2.8 + */ +#define UCNV_GET_MAX_BYTES_FOR_STRING(length, maxCharSize) \ + (((int32_t)(length)+10)*(int32_t)(maxCharSize)) + +/** + * Returns the minimum byte length (per codepoint) for characters in this codepage. + * This is usually either 1 or 2. + * @param converter the Unicode converter + * @return the minimum number of bytes per codepoint allowed by this particular converter + * @see ucnv_getMaxCharSize + * @stable ICU 2.0 + */ +U_CAPI int8_t U_EXPORT2 +ucnv_getMinCharSize(const UConverter *converter); + +/** + * Returns the display name of the converter passed in based on the Locale + * passed in. If the locale contains no display name, the internal ASCII + * name will be filled in. + * + * @param converter the Unicode converter. + * @param displayLocale is the specific Locale we want to localized for + * @param displayName user provided buffer to be filled in + * @param displayNameCapacity size of displayName Buffer + * @param err error status code + * @return displayNameLength number of UChar needed in displayName + * @see ucnv_getName + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucnv_getDisplayName(const UConverter *converter, + const char *displayLocale, + UChar *displayName, + int32_t displayNameCapacity, + UErrorCode *err); + +/** + * Gets the internal, canonical name of the converter (zero-terminated). + * The lifetime of the returned string will be that of the converter + * passed to this function. + * @param converter the Unicode converter + * @param err UErrorCode status + * @return the internal name of the converter + * @see ucnv_getDisplayName + * @stable ICU 2.0 + */ +U_CAPI const char * U_EXPORT2 +ucnv_getName(const UConverter *converter, UErrorCode *err); + +/** + * Gets a codepage number associated with the converter. This is not guaranteed + * to be the one used to create the converter. Some converters do not represent + * platform registered codepages and return zero for the codepage number. + * The error code fill-in parameter indicates if the codepage number + * is available. + * Does not check if the converter is NULL or if converter's data + * table is NULL. + * + * Important: The use of CCSIDs is not recommended because it is limited + * to only two platforms in principle and only one (UCNV_IBM) in the current + * ICU converter API. + * Also, CCSIDs are insufficient to identify IBM Unicode conversion tables precisely. + * For more details see ucnv_openCCSID(). + * + * @param converter the Unicode converter + * @param err the error status code. + * @return If any error occurs, -1 will be returned otherwise, the codepage number + * will be returned + * @see ucnv_openCCSID + * @see ucnv_getPlatform + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucnv_getCCSID(const UConverter *converter, + UErrorCode *err); + +/** + * Gets a codepage platform associated with the converter. Currently, + * only UCNV_IBM will be returned. + * Does not test if the converter is NULL or if converter's data + * table is NULL. + * @param converter the Unicode converter + * @param err the error status code. + * @return The codepage platform + * @stable ICU 2.0 + */ +U_CAPI UConverterPlatform U_EXPORT2 +ucnv_getPlatform(const UConverter *converter, + UErrorCode *err); + +/** + * Gets the type of the converter + * e.g. SBCS, MBCS, DBCS, UTF8, UTF16_BE, UTF16_LE, ISO_2022, + * EBCDIC_STATEFUL, LATIN_1 + * @param converter a valid, opened converter + * @return the type of the converter + * @stable ICU 2.0 + */ +U_CAPI UConverterType U_EXPORT2 +ucnv_getType(const UConverter * converter); + +/** + * Gets the "starter" (lead) bytes for converters of type MBCS. + * Will fill in an U_ILLEGAL_ARGUMENT_ERROR if converter passed in + * is not MBCS. Fills in an array of type UBool, with the value of the byte + * as offset to the array. For example, if (starters[0x20] == true) at return, + * it means that the byte 0x20 is a starter byte in this converter. + * Context pointers are always owned by the caller. + * + * @param converter a valid, opened converter of type MBCS + * @param starters an array of size 256 to be filled in + * @param err error status, U_ILLEGAL_ARGUMENT_ERROR if the + * converter is not a type which can return starters. + * @see ucnv_getType + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_getStarters(const UConverter* converter, + UBool starters[256], + UErrorCode* err); + + +/** + * Selectors for Unicode sets that can be returned by ucnv_getUnicodeSet(). + * @see ucnv_getUnicodeSet + * @stable ICU 2.6 + */ +typedef enum UConverterUnicodeSet { + /** Select the set of roundtrippable Unicode code points. @stable ICU 2.6 */ + UCNV_ROUNDTRIP_SET, + /** Select the set of Unicode code points with roundtrip or fallback mappings. @stable ICU 4.0 */ + UCNV_ROUNDTRIP_AND_FALLBACK_SET, +} UConverterUnicodeSet; + + +/** + * Returns the set of Unicode code points that can be converted by an ICU converter. + * + * Returns one of several kinds of set: + * + * 1. UCNV_ROUNDTRIP_SET + * + * The set of all Unicode code points that can be roundtrip-converted + * (converted without any data loss) with the converter (ucnv_fromUnicode()). + * This set will not include code points that have fallback mappings + * or are only the result of reverse fallback mappings. + * This set will also not include PUA code points with fallbacks, although + * ucnv_fromUnicode() will always uses those mappings despite ucnv_setFallback(). + * See UTR #22 "Character Mapping Markup Language" + * at http://www.unicode.org/reports/tr22/ + * + * This is useful for example for + * - checking that a string or document can be roundtrip-converted with a converter, + * without/before actually performing the conversion + * - testing if a converter can be used for text for typical text for a certain locale, + * by comparing its roundtrip set with the set of ExemplarCharacters from + * ICU's locale data or other sources + * + * 2. UCNV_ROUNDTRIP_AND_FALLBACK_SET + * + * The set of all Unicode code points that can be converted with the converter (ucnv_fromUnicode()) + * when fallbacks are turned on (see ucnv_setFallback()). + * This set includes all code points with roundtrips and fallbacks (but not reverse fallbacks). + * + * In the future, there may be more UConverterUnicodeSet choices to select + * sets with different properties. + * + * @param cnv The converter for which a set is requested. + * @param setFillIn A valid USet *. It will be cleared by this function before + * the converter's specific set is filled into the USet. + * @param whichSet A UConverterUnicodeSet selector; + * currently UCNV_ROUNDTRIP_SET is the only supported value. + * @param pErrorCode ICU error code in/out parameter. + * Must fulfill U_SUCCESS before the function call. + * + * @see UConverterUnicodeSet + * @see uset_open + * @see uset_close + * @stable ICU 2.6 + */ +U_CAPI void U_EXPORT2 +ucnv_getUnicodeSet(const UConverter *cnv, + USet *setFillIn, + UConverterUnicodeSet whichSet, + UErrorCode *pErrorCode); + +/** + * Gets the current callback function used by the converter when an illegal + * or invalid codepage sequence is found. + * Context pointers are always owned by the caller. + * + * @param converter the unicode converter + * @param action fillin: returns the callback function pointer + * @param context fillin: returns the callback's private void* context + * @see ucnv_setToUCallBack + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_getToUCallBack (const UConverter * converter, + UConverterToUCallback *action, + const void **context); + +/** + * Gets the current callback function used by the converter when illegal + * or invalid Unicode sequence is found. + * Context pointers are always owned by the caller. + * + * @param converter the unicode converter + * @param action fillin: returns the callback function pointer + * @param context fillin: returns the callback's private void* context + * @see ucnv_setFromUCallBack + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_getFromUCallBack (const UConverter * converter, + UConverterFromUCallback *action, + const void **context); + +/** + * Changes the callback function used by the converter when + * an illegal or invalid sequence is found. + * Context pointers are always owned by the caller. + * Predefined actions and contexts can be found in the ucnv_err.h header. + * + * @param converter the unicode converter + * @param newAction the new callback function + * @param newContext the new toUnicode callback context pointer. This can be NULL. + * @param oldAction fillin: returns the old callback function pointer. This can be NULL. + * @param oldContext fillin: returns the old callback's private void* context. This can be NULL. + * @param err The error code status + * @see ucnv_getToUCallBack + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_setToUCallBack (UConverter * converter, + UConverterToUCallback newAction, + const void* newContext, + UConverterToUCallback *oldAction, + const void** oldContext, + UErrorCode * err); + +/** + * Changes the current callback function used by the converter when + * an illegal or invalid sequence is found. + * Context pointers are always owned by the caller. + * Predefined actions and contexts can be found in the ucnv_err.h header. + * + * @param converter the unicode converter + * @param newAction the new callback function + * @param newContext the new fromUnicode callback context pointer. This can be NULL. + * @param oldAction fillin: returns the old callback function pointer. This can be NULL. + * @param oldContext fillin: returns the old callback's private void* context. This can be NULL. + * @param err The error code status + * @see ucnv_getFromUCallBack + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_setFromUCallBack (UConverter * converter, + UConverterFromUCallback newAction, + const void *newContext, + UConverterFromUCallback *oldAction, + const void **oldContext, + UErrorCode * err); + +/** + * Converts an array of unicode characters to an array of codepage + * characters. This function is optimized for converting a continuous + * stream of data in buffer-sized chunks, where the entire source and + * target does not fit in available buffers. + * + * The source pointer is an in/out parameter. It starts out pointing where the + * conversion is to begin, and ends up pointing after the last UChar consumed. + * + * Target similarly starts out pointer at the first available byte in the output + * buffer, and ends up pointing after the last byte written to the output. + * + * The converter always attempts to consume the entire source buffer, unless + * (1.) the target buffer is full, or (2.) a failing error is returned from the + * current callback function. When a successful error status has been + * returned, it means that all of the source buffer has been + * consumed. At that point, the caller should reset the source and + * sourceLimit pointers to point to the next chunk. + * + * At the end of the stream (flush==true), the input is completely consumed + * when *source==sourceLimit and no error code is set. + * The converter object is then automatically reset by this function. + * (This means that a converter need not be reset explicitly between data + * streams if it finishes the previous stream without errors.) + * + * This is a stateful conversion. Additionally, even when all source data has + * been consumed, some data may be in the converters' internal state. + * Call this function repeatedly, updating the target pointers with + * the next empty chunk of target in case of a + * U_BUFFER_OVERFLOW_ERROR, and updating the source pointers + * with the next chunk of source when a successful error status is + * returned, until there are no more chunks of source data. + * @param converter the Unicode converter + * @param target I/O parameter. Input : Points to the beginning of the buffer to copy + * codepage characters to. Output : points to after the last codepage character copied + * to target. + * @param targetLimit the pointer just after last of the target buffer + * @param source I/O parameter, pointer to pointer to the source Unicode character buffer. + * @param sourceLimit the pointer just after the last of the source buffer + * @param offsets if NULL is passed, nothing will happen to it, otherwise it needs to have the same number + * of allocated cells as target. Will fill in offsets from target to source pointer + * e.g: offsets[3] is equal to 6, it means that the target[3] was a result of transcoding source[6] + * For output data carried across calls, and other data without a specific source character + * (such as from escape sequences or callbacks) -1 will be placed for offsets. + * @param flush set to true if the current source buffer is the last available + * chunk of the source, false otherwise. Note that if a failing status is returned, + * this function may have to be called multiple times with flush set to true until + * the source buffer is consumed. + * @param err the error status. U_ILLEGAL_ARGUMENT_ERROR will be set if the + * converter is NULL. + * U_BUFFER_OVERFLOW_ERROR will be set if the target is full and there is + * still data to be written to the target. + * @see ucnv_fromUChars + * @see ucnv_convert + * @see ucnv_getMinCharSize + * @see ucnv_setToUCallBack + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_fromUnicode (UConverter * converter, + char **target, + const char *targetLimit, + const UChar ** source, + const UChar * sourceLimit, + int32_t* offsets, + UBool flush, + UErrorCode * err); + +/** + * Converts a buffer of codepage bytes into an array of unicode UChars + * characters. This function is optimized for converting a continuous + * stream of data in buffer-sized chunks, where the entire source and + * target does not fit in available buffers. + * + * The source pointer is an in/out parameter. It starts out pointing where the + * conversion is to begin, and ends up pointing after the last byte of source consumed. + * + * Target similarly starts out pointer at the first available UChar in the output + * buffer, and ends up pointing after the last UChar written to the output. + * It does NOT necessarily keep UChar sequences together. + * + * The converter always attempts to consume the entire source buffer, unless + * (1.) the target buffer is full, or (2.) a failing error is returned from the + * current callback function. When a successful error status has been + * returned, it means that all of the source buffer has been + * consumed. At that point, the caller should reset the source and + * sourceLimit pointers to point to the next chunk. + * + * At the end of the stream (flush==true), the input is completely consumed + * when *source==sourceLimit and no error code is set + * The converter object is then automatically reset by this function. + * (This means that a converter need not be reset explicitly between data + * streams if it finishes the previous stream without errors.) + * + * This is a stateful conversion. Additionally, even when all source data has + * been consumed, some data may be in the converters' internal state. + * Call this function repeatedly, updating the target pointers with + * the next empty chunk of target in case of a + * U_BUFFER_OVERFLOW_ERROR, and updating the source pointers + * with the next chunk of source when a successful error status is + * returned, until there are no more chunks of source data. + * @param converter the Unicode converter + * @param target I/O parameter. Input : Points to the beginning of the buffer to copy + * UChars into. Output : points to after the last UChar copied. + * @param targetLimit the pointer just after the end of the target buffer + * @param source I/O parameter, pointer to pointer to the source codepage buffer. + * @param sourceLimit the pointer to the byte after the end of the source buffer + * @param offsets if NULL is passed, nothing will happen to it, otherwise it needs to have the same number + * of allocated cells as target. Will fill in offsets from target to source pointer + * e.g: offsets[3] is equal to 6, it means that the target[3] was a result of transcoding source[6] + * For output data carried across calls, and other data without a specific source character + * (such as from escape sequences or callbacks) -1 will be placed for offsets. + * @param flush set to true if the current source buffer is the last available + * chunk of the source, false otherwise. Note that if a failing status is returned, + * this function may have to be called multiple times with flush set to true until + * the source buffer is consumed. + * @param err the error status. U_ILLEGAL_ARGUMENT_ERROR will be set if the + * converter is NULL. + * U_BUFFER_OVERFLOW_ERROR will be set if the target is full and there is + * still data to be written to the target. + * @see ucnv_fromUChars + * @see ucnv_convert + * @see ucnv_getMinCharSize + * @see ucnv_setFromUCallBack + * @see ucnv_getNextUChar + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_toUnicode(UConverter *converter, + UChar **target, + const UChar *targetLimit, + const char **source, + const char *sourceLimit, + int32_t *offsets, + UBool flush, + UErrorCode *err); + +/** + * Convert the Unicode string into a codepage string using an existing UConverter. + * The output string is NUL-terminated if possible. + * + * This function is a more convenient but less powerful version of ucnv_fromUnicode(). + * It is only useful for whole strings, not for streaming conversion. + * + * The maximum output buffer capacity required (barring output from callbacks) will be + * UCNV_GET_MAX_BYTES_FOR_STRING(srcLength, ucnv_getMaxCharSize(cnv)). + * + * @param cnv the converter object to be used (ucnv_resetFromUnicode() will be called) + * @param src the input Unicode string + * @param srcLength the input string length, or -1 if NUL-terminated + * @param dest destination string buffer, can be NULL if destCapacity==0 + * @param destCapacity the number of chars available at dest + * @param pErrorCode normal ICU error code; + * common error codes that may be set by this function include + * U_BUFFER_OVERFLOW_ERROR, U_STRING_NOT_TERMINATED_WARNING, + * U_ILLEGAL_ARGUMENT_ERROR, and conversion errors + * @return the length of the output string, not counting the terminating NUL; + * if the length is greater than destCapacity, then the string will not fit + * and a buffer of the indicated length would need to be passed in + * @see ucnv_fromUnicode + * @see ucnv_convert + * @see UCNV_GET_MAX_BYTES_FOR_STRING + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucnv_fromUChars(UConverter *cnv, + char *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Convert the codepage string into a Unicode string using an existing UConverter. + * The output string is NUL-terminated if possible. + * + * This function is a more convenient but less powerful version of ucnv_toUnicode(). + * It is only useful for whole strings, not for streaming conversion. + * + * The maximum output buffer capacity required (barring output from callbacks) will be + * 2*srcLength (each char may be converted into a surrogate pair). + * + * @param cnv the converter object to be used (ucnv_resetToUnicode() will be called) + * @param src the input codepage string + * @param srcLength the input string length, or -1 if NUL-terminated + * @param dest destination string buffer, can be NULL if destCapacity==0 + * @param destCapacity the number of UChars available at dest + * @param pErrorCode normal ICU error code; + * common error codes that may be set by this function include + * U_BUFFER_OVERFLOW_ERROR, U_STRING_NOT_TERMINATED_WARNING, + * U_ILLEGAL_ARGUMENT_ERROR, and conversion errors + * @return the length of the output string, not counting the terminating NUL; + * if the length is greater than destCapacity, then the string will not fit + * and a buffer of the indicated length would need to be passed in + * @see ucnv_toUnicode + * @see ucnv_convert + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucnv_toUChars(UConverter *cnv, + UChar *dest, int32_t destCapacity, + const char *src, int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Convert a codepage buffer into Unicode one character at a time. + * The input is completely consumed when the U_INDEX_OUTOFBOUNDS_ERROR is set. + * + * Advantage compared to ucnv_toUnicode() or ucnv_toUChars(): + * - Faster for small amounts of data, for most converters, e.g., + * US-ASCII, ISO-8859-1, UTF-8/16/32, and most "normal" charsets. + * (For complex converters, e.g., SCSU, UTF-7 and ISO 2022 variants, + * it uses ucnv_toUnicode() internally.) + * - Convenient. + * + * Limitations compared to ucnv_toUnicode(): + * - Always assumes flush=true. + * This makes ucnv_getNextUChar() unsuitable for "streaming" conversion, + * that is, for where the input is supplied in multiple buffers, + * because ucnv_getNextUChar() will assume the end of the input at the end + * of the first buffer. + * - Does not provide offset output. + * + * It is possible to "mix" ucnv_getNextUChar() and ucnv_toUnicode() because + * ucnv_getNextUChar() uses the current state of the converter + * (unlike ucnv_toUChars() which always resets first). + * However, if ucnv_getNextUChar() is called after ucnv_toUnicode() + * stopped in the middle of a character sequence (with flush=false), + * then ucnv_getNextUChar() will always use the slower ucnv_toUnicode() + * internally until the next character boundary. + * (This is new in ICU 2.6. In earlier releases, ucnv_getNextUChar() had to + * start at a character boundary.) + * + * Instead of using ucnv_getNextUChar(), it is recommended + * to convert using ucnv_toUnicode() or ucnv_toUChars() + * and then iterate over the text using U16_NEXT() or a UCharIterator (uiter.h) + * or a C++ CharacterIterator or similar. + * This allows streaming conversion and offset output, for example. + * + *

Handling of surrogate pairs and supplementary-plane code points:
+ * There are two different kinds of codepages that provide mappings for surrogate characters: + *

    + *
  • Codepages like UTF-8, UTF-32, and GB 18030 provide direct representations for Unicode + * code points U+10000-U+10ffff as well as for single surrogates U+d800-U+dfff. + * Each valid sequence will result in exactly one returned code point. + * If a sequence results in a single surrogate, then that will be returned + * by itself, even if a neighboring sequence encodes the matching surrogate.
  • + *
  • Codepages like SCSU and LMBCS (and UTF-16) provide direct representations only for BMP code points + * including surrogates. Code points in supplementary planes are represented with + * two sequences, each encoding a surrogate. + * For these codepages, matching pairs of surrogates will be combined into single + * code points for returning from this function. + * (Note that SCSU is actually a mix of these codepage types.)
  • + *

+ * + * @param converter an open UConverter + * @param source the address of a pointer to the codepage buffer, will be + * updated to point after the bytes consumed in the conversion call. + * @param sourceLimit points to the end of the input buffer + * @param err fills in error status (see ucnv_toUnicode) + * U_INDEX_OUTOFBOUNDS_ERROR will be set if the input + * is empty or does not convert to any output (e.g.: pure state-change + * codes SI/SO, escape sequences for ISO 2022, + * or if the callback did not output anything, ...). + * This function will not set a U_BUFFER_OVERFLOW_ERROR because + * the "buffer" is the return code. However, there might be subsequent output + * stored in the converter object + * that will be returned in following calls to this function. + * @return a UChar32 resulting from the partial conversion of source + * @see ucnv_toUnicode + * @see ucnv_toUChars + * @see ucnv_convert + * @stable ICU 2.0 + */ +U_CAPI UChar32 U_EXPORT2 +ucnv_getNextUChar(UConverter * converter, + const char **source, + const char * sourceLimit, + UErrorCode * err); + +/** + * Convert from one external charset to another using two existing UConverters. + * Internally, two conversions - ucnv_toUnicode() and ucnv_fromUnicode() - + * are used, "pivoting" through 16-bit Unicode. + * + * Important: For streaming conversion (multiple function calls for successive + * parts of a text stream), the caller must provide a pivot buffer explicitly, + * and must preserve the pivot buffer and associated pointers from one + * call to another. (The buffer may be moved if its contents and the relative + * pointer positions are preserved.) + * + * There is a similar function, ucnv_convert(), + * which has the following limitations: + * - it takes charset names, not converter objects, so that + * - two converters are opened for each call + * - only single-string conversion is possible, not streaming operation + * - it does not provide enough information to find out, + * in case of failure, whether the toUnicode or + * the fromUnicode conversion failed + * + * By contrast, ucnv_convertEx() + * - takes UConverter parameters instead of charset names + * - fully exposes the pivot buffer for streaming conversion and complete error handling + * + * ucnv_convertEx() also provides further convenience: + * - an option to reset the converters at the beginning + * (if reset==true, see parameters; + * also sets *pivotTarget=*pivotSource=pivotStart) + * - allow NUL-terminated input + * (only a single NUL byte, will not work for charsets with multi-byte NULs) + * (if sourceLimit==NULL, see parameters) + * - terminate with a NUL on output + * (only a single NUL byte, not useful for charsets with multi-byte NULs), + * or set U_STRING_NOT_TERMINATED_WARNING if the output exactly fills + * the target buffer + * - the pivot buffer can be provided internally; + * possible only for whole-string conversion, not streaming conversion; + * in this case, the caller will not be able to get details about where an + * error occurred + * (if pivotStart==NULL, see below) + * + * The function returns when one of the following is true: + * - the entire source text has been converted successfully to the target buffer + * - a target buffer overflow occurred (U_BUFFER_OVERFLOW_ERROR) + * - a conversion error occurred + * (other U_FAILURE(), see description of pErrorCode) + * + * Limitation compared to the direct use of + * ucnv_fromUnicode() and ucnv_toUnicode(): + * ucnv_convertEx() does not provide offset information. + * + * Limitation compared to ucnv_fromUChars() and ucnv_toUChars(): + * ucnv_convertEx() does not support preflighting directly. + * + * Sample code for converting a single string from + * one external charset to UTF-8, ignoring the location of errors: + * + * \code + * int32_t + * myToUTF8(UConverter *cnv, + * const char *s, int32_t length, + * char *u8, int32_t capacity, + * UErrorCode *pErrorCode) { + * UConverter *utf8Cnv; + * char *target; + * + * if(U_FAILURE(*pErrorCode)) { + * return 0; + * } + * + * utf8Cnv=myGetCachedUTF8Converter(pErrorCode); + * if(U_FAILURE(*pErrorCode)) { + * return 0; + * } + * + * if(length<0) { + * length=strlen(s); + * } + * target=u8; + * ucnv_convertEx(utf8Cnv, cnv, + * &target, u8+capacity, + * &s, s+length, + * NULL, NULL, NULL, NULL, + * true, true, + * pErrorCode); + * + * myReleaseCachedUTF8Converter(utf8Cnv); + * + * // return the output string length, but without preflighting + * return (int32_t)(target-u8); + * } + * \endcode + * + * @param targetCnv Output converter, used to convert from the UTF-16 pivot + * to the target using ucnv_fromUnicode(). + * @param sourceCnv Input converter, used to convert from the source to + * the UTF-16 pivot using ucnv_toUnicode(). + * @param target I/O parameter, same as for ucnv_fromUChars(). + * Input: *target points to the beginning of the target buffer. + * Output: *target points to the first unit after the last char written. + * @param targetLimit Pointer to the first unit after the target buffer. + * @param source I/O parameter, same as for ucnv_toUChars(). + * Input: *source points to the beginning of the source buffer. + * Output: *source points to the first unit after the last char read. + * @param sourceLimit Pointer to the first unit after the source buffer. + * @param pivotStart Pointer to the UTF-16 pivot buffer. If pivotStart==NULL, + * then an internal buffer is used and the other pivot + * arguments are ignored and can be NULL as well. + * @param pivotSource I/O parameter, same as source in ucnv_fromUChars() for + * conversion from the pivot buffer to the target buffer. + * @param pivotTarget I/O parameter, same as target in ucnv_toUChars() for + * conversion from the source buffer to the pivot buffer. + * It must be pivotStart<=*pivotSource<=*pivotTarget<=pivotLimit + * and pivotStart[0..ucnv_countAvaiable()]) + * @return a pointer a string (library owned), or NULL if the index is out of bounds. + * @see ucnv_countAvailable + * @stable ICU 2.0 + */ +U_CAPI const char* U_EXPORT2 +ucnv_getAvailableName(int32_t n); + +/** + * Returns a UEnumeration to enumerate all of the canonical converter + * names, as per the alias file, regardless of the ability to open each + * converter. + * + * @return A UEnumeration object for getting all the recognized canonical + * converter names. + * @see ucnv_getAvailableName + * @see uenum_close + * @see uenum_next + * @stable ICU 2.4 + */ +U_CAPI UEnumeration * U_EXPORT2 +ucnv_openAllNames(UErrorCode *pErrorCode); + +/** + * Gives the number of aliases for a given converter or alias name. + * If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING. + * This method only enumerates the listed entries in the alias file. + * @param alias alias name + * @param pErrorCode error status + * @return number of names on alias list for given alias + * @stable ICU 2.0 + */ +U_CAPI uint16_t U_EXPORT2 +ucnv_countAliases(const char *alias, UErrorCode *pErrorCode); + +/** + * Gives the name of the alias at given index of alias list. + * This method only enumerates the listed entries in the alias file. + * If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING. + * @param alias alias name + * @param n index in alias list + * @param pErrorCode result of operation + * @return returns the name of the alias at given index + * @see ucnv_countAliases + * @stable ICU 2.0 + */ +U_CAPI const char * U_EXPORT2 +ucnv_getAlias(const char *alias, uint16_t n, UErrorCode *pErrorCode); + +/** + * Fill-up the list of alias names for the given alias. + * This method only enumerates the listed entries in the alias file. + * If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING. + * @param alias alias name + * @param aliases fill-in list, aliases is a pointer to an array of + * ucnv_countAliases() string-pointers + * (const char *) that will be filled in. + * The strings themselves are owned by the library. + * @param pErrorCode result of operation + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_getAliases(const char *alias, const char **aliases, UErrorCode *pErrorCode); + +/** + * Return a new UEnumeration object for enumerating all the + * alias names for a given converter that are recognized by a standard. + * This method only enumerates the listed entries in the alias file. + * The convrtrs.txt file can be modified to change the results of + * this function. + * The first result in this list is the same result given by + * ucnv_getStandardName, which is the default alias for + * the specified standard name. The returned object must be closed with + * uenum_close when you are done with the object. + * + * @param convName original converter name + * @param standard name of the standard governing the names; MIME and IANA + * are such standards + * @param pErrorCode The error code + * @return A UEnumeration object for getting all aliases that are recognized + * by a standard. If any of the parameters are invalid, NULL + * is returned. + * @see ucnv_getStandardName + * @see uenum_close + * @see uenum_next + * @stable ICU 2.2 + */ +U_CAPI UEnumeration * U_EXPORT2 +ucnv_openStandardNames(const char *convName, + const char *standard, + UErrorCode *pErrorCode); + +/** + * Gives the number of standards associated to converter names. + * @return number of standards + * @stable ICU 2.0 + */ +U_CAPI uint16_t U_EXPORT2 +ucnv_countStandards(void); + +/** + * Gives the name of the standard at given index of standard list. + * @param n index in standard list + * @param pErrorCode result of operation + * @return returns the name of the standard at given index. Owned by the library. + * @stable ICU 2.0 + */ +U_CAPI const char * U_EXPORT2 +ucnv_getStandard(uint16_t n, UErrorCode *pErrorCode); + +/** + * Returns a standard name for a given converter name. + *

+ * Example alias table:
+ * conv alias1 { STANDARD1 } alias2 { STANDARD1* } + *

+ * Result of ucnv_getStandardName("conv", "STANDARD1") from example + * alias table:
+ * "alias2" + * + * @param name original converter name + * @param standard name of the standard governing the names; MIME and IANA + * are such standards + * @param pErrorCode result of operation + * @return returns the standard converter name; + * if a standard converter name cannot be determined, + * then NULL is returned. Owned by the library. + * @stable ICU 2.0 + */ +U_CAPI const char * U_EXPORT2 +ucnv_getStandardName(const char *name, const char *standard, UErrorCode *pErrorCode); + +/** + * This function will return the internal canonical converter name of the + * tagged alias. This is the opposite of ucnv_openStandardNames, which + * returns the tagged alias given the canonical name. + *

+ * Example alias table:
+ * conv alias1 { STANDARD1 } alias2 { STANDARD1* } + *

+ * Result of ucnv_getStandardName("alias1", "STANDARD1") from example + * alias table:
+ * "conv" + * + * @return returns the canonical converter name; + * if a standard or alias name cannot be determined, + * then NULL is returned. The returned string is + * owned by the library. + * @see ucnv_getStandardName + * @stable ICU 2.4 + */ +U_CAPI const char * U_EXPORT2 +ucnv_getCanonicalName(const char *alias, const char *standard, UErrorCode *pErrorCode); + +/** + * Returns the current default converter name. If you want to open + * a default converter, you do not need to use this function. + * It is faster if you pass a NULL argument to ucnv_open the + * default converter. + * + * If U_CHARSET_IS_UTF8 is defined to 1 in utypes.h then this function + * always returns "UTF-8". + * + * @return returns the current default converter name. + * Storage owned by the library + * @see ucnv_setDefaultName + * @stable ICU 2.0 + */ +U_CAPI const char * U_EXPORT2 +ucnv_getDefaultName(void); + +#ifndef U_HIDE_SYSTEM_API +/** + * This function is not thread safe. DO NOT call this function when ANY ICU + * function is being used from more than one thread! This function sets the + * current default converter name. If this function needs to be called, it + * should be called during application initialization. Most of the time, the + * results from ucnv_getDefaultName() or ucnv_open with a NULL string argument + * is sufficient for your application. + * + * If U_CHARSET_IS_UTF8 is defined to 1 in utypes.h then this function + * does nothing. + * + * @param name the converter name to be the default (must be known by ICU). + * @see ucnv_getDefaultName + * @system + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_setDefaultName(const char *name); +#endif /* U_HIDE_SYSTEM_API */ + +/** + * Fixes the backslash character mismapping. For example, in SJIS, the backslash + * character in the ASCII portion is also used to represent the yen currency sign. + * When mapping from Unicode character 0x005C, it's unclear whether to map the + * character back to yen or backslash in SJIS. This function will take the input + * buffer and replace all the yen sign characters with backslash. This is necessary + * when the user tries to open a file with the input buffer on Windows. + * This function will test the converter to see whether such mapping is + * required. You can sometimes avoid using this function by using the correct version + * of Shift-JIS. + * + * @param cnv The converter representing the target codepage. + * @param source the input buffer to be fixed + * @param sourceLen the length of the input buffer + * @see ucnv_isAmbiguous + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen); + +/** + * Determines if the converter contains ambiguous mappings of the same + * character or not. + * @param cnv the converter to be tested + * @return true if the converter contains ambiguous mapping of the same + * character, false otherwise. + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +ucnv_isAmbiguous(const UConverter *cnv); + +/** + * Sets the converter to use fallback mappings or not. + * Regardless of this flag, the converter will always use + * fallbacks from Unicode Private Use code points, as well as + * reverse fallbacks (to Unicode). + * For details see ".ucm File Format" + * in the Conversion Data chapter of the ICU User Guide: + * https://unicode-org.github.io/icu/userguide/conversion/data.html#ucm-file-format + * + * @param cnv The converter to set the fallback mapping usage on. + * @param usesFallback true if the user wants the converter to take advantage of the fallback + * mapping, false otherwise. + * @stable ICU 2.0 + * @see ucnv_usesFallback + */ +U_CAPI void U_EXPORT2 +ucnv_setFallback(UConverter *cnv, UBool usesFallback); + +/** + * Determines if the converter uses fallback mappings or not. + * This flag has restrictions, see ucnv_setFallback(). + * + * @param cnv The converter to be tested + * @return true if the converter uses fallback, false otherwise. + * @stable ICU 2.0 + * @see ucnv_setFallback + */ +U_CAPI UBool U_EXPORT2 +ucnv_usesFallback(const UConverter *cnv); + +/** + * Detects Unicode signature byte sequences at the start of the byte stream + * and returns the charset name of the indicated Unicode charset. + * NULL is returned when no Unicode signature is recognized. + * The number of bytes in the signature is output as well. + * + * The caller can ucnv_open() a converter using the charset name. + * The first code unit (UChar) from the start of the stream will be U+FEFF + * (the Unicode BOM/signature character) and can usually be ignored. + * + * For most Unicode charsets it is also possible to ignore the indicated + * number of initial stream bytes and start converting after them. + * However, there are stateful Unicode charsets (UTF-7 and BOCU-1) for which + * this will not work. Therefore, it is best to ignore the first output UChar + * instead of the input signature bytes. + *

+ * Usage: + * \snippet samples/ucnv/convsamp.cpp ucnv_detectUnicodeSignature + * + * @param source The source string in which the signature should be detected. + * @param sourceLength Length of the input string, or -1 if terminated with a NUL byte. + * @param signatureLength A pointer to int32_t to receive the number of bytes that make up the signature + * of the detected UTF. 0 if not detected. + * Can be a NULL pointer. + * @param pErrorCode ICU error code in/out parameter. + * Must fulfill U_SUCCESS before the function call. + * @return The name of the encoding detected. NULL if encoding is not detected. + * @stable ICU 2.4 + */ +U_CAPI const char* U_EXPORT2 +ucnv_detectUnicodeSignature(const char* source, + int32_t sourceLength, + int32_t *signatureLength, + UErrorCode *pErrorCode); + +/** + * Returns the number of UChars held in the converter's internal state + * because more input is needed for completing the conversion. This function is + * useful for mapping semantics of ICU's converter interface to those of iconv, + * and this information is not needed for normal conversion. + * @param cnv The converter in which the input is held + * @param status ICU error code in/out parameter. + * Must fulfill U_SUCCESS before the function call. + * @return The number of UChars in the state. -1 if an error is encountered. + * @stable ICU 3.4 + */ +U_CAPI int32_t U_EXPORT2 +ucnv_fromUCountPending(const UConverter* cnv, UErrorCode* status); + +/** + * Returns the number of chars held in the converter's internal state + * because more input is needed for completing the conversion. This function is + * useful for mapping semantics of ICU's converter interface to those of iconv, + * and this information is not needed for normal conversion. + * @param cnv The converter in which the input is held as internal state + * @param status ICU error code in/out parameter. + * Must fulfill U_SUCCESS before the function call. + * @return The number of chars in the state. -1 if an error is encountered. + * @stable ICU 3.4 + */ +U_CAPI int32_t U_EXPORT2 +ucnv_toUCountPending(const UConverter* cnv, UErrorCode* status); + +/** + * Returns whether or not the charset of the converter has a fixed number of bytes + * per charset character. + * An example of this are converters that are of the type UCNV_SBCS or UCNV_DBCS. + * Another example is UTF-32 which is always 4 bytes per character. + * A Unicode code point may be represented by more than one UTF-8 or UTF-16 code unit + * but a UTF-32 converter encodes each code point with 4 bytes. + * Note: This method is not intended to be used to determine whether the charset has a + * fixed ratio of bytes to Unicode codes units for any particular Unicode encoding form. + * false is returned with the UErrorCode if error occurs or cnv is NULL. + * @param cnv The converter to be tested + * @param status ICU error code in/out parameter + * @return true if the converter is fixed-width + * @stable ICU 4.8 + */ +U_CAPI UBool U_EXPORT2 +ucnv_isFixedWidth(UConverter *cnv, UErrorCode *status); + +#endif + +#endif +/*_UCNV*/ + +// ucnv_cb.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 2000-2004, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** + * ucnv_cb.h: + * External APIs for the ICU's codeset conversion library + * Helena Shih + * + * Modification History: + * + * Date Name Description + */ + +/** + * \file + * \brief C API: UConverter functions to aid the writers of callbacks + * + *

Callback API for UConverter

+ * + * These functions are provided here for the convenience of the callback + * writer. If you are just looking for callback functions to use, please + * see ucnv_err.h. DO NOT call these functions directly when you are + * working with converters, unless your code has been called as a callback + * via ucnv_setFromUCallback or ucnv_setToUCallback !! + * + * A note about error codes and overflow. Unlike other ICU functions, + * these functions do not expect the error status to be U_ZERO_ERROR. + * Callbacks must be much more careful about their error codes. + * The error codes used here are in/out parameters, which should be passed + * back in the callback's error parameter. + * + * For example, if you call ucnv_cbfromUWriteBytes to write data out + * to the output codepage, it may return U_BUFFER_OVERFLOW_ERROR if + * the data did not fit in the target. But this isn't a failing error, + * in fact, ucnv_cbfromUWriteBytes may be called AGAIN with the error + * status still U_BUFFER_OVERFLOW_ERROR to attempt to write further bytes, + * which will also go into the internal overflow buffers. + * + * Concerning offsets, the 'offset' parameters here are relative to the start + * of SOURCE. For example, Suppose the string "ABCD" was being converted + * from Unicode into a codepage which doesn't have a mapping for 'B'. + * 'A' will be written out correctly, but + * The FromU Callback will be called on an unassigned character for 'B'. + * At this point, this is the state of the world: + * Target: A [..] [points after A] + * Source: A B [C] D [points to C - B has been consumed] + * 0 1 2 3 + * codePoint = "B" [the unassigned codepoint] + * + * Now, suppose a callback wants to write the substitution character '?' to + * the target. It calls ucnv_cbFromUWriteBytes() to write the ?. + * It should pass ZERO as the offset, because the offset as far as the + * callback is concerned is relative to the SOURCE pointer [which points + * before 'C'.] If the callback goes into the args and consumes 'C' also, + * it would call FromUWriteBytes with an offset of 1 (and advance the source + * pointer). + * + */ + +#ifndef UCNV_CB_H +#define UCNV_CB_H + + +#if !UCONFIG_NO_CONVERSION + + +/** + * ONLY used by FromU callback functions. + * Writes out the specified byte output bytes to the target byte buffer or to converter internal buffers. + * + * @param args callback fromUnicode arguments + * @param source source bytes to write + * @param length length of bytes to write + * @param offsetIndex the relative offset index from callback. + * @param err error status. If U_BUFFER_OVERFLOW is returned, then U_BUFFER_OVERFLOW must + * be returned to the user, because it means that not all data could be written into the target buffer, and some is + * in the converter error buffer. + * @see ucnv_cbFromUWriteSub + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_cbFromUWriteBytes (UConverterFromUnicodeArgs *args, + const char* source, + int32_t length, + int32_t offsetIndex, + UErrorCode * err); + +/** + * ONLY used by FromU callback functions. + * This function will write out the correct substitution character sequence + * to the target. + * + * @param args callback fromUnicode arguments + * @param offsetIndex the relative offset index from the current source pointer to be used + * @param err error status. If U_BUFFER_OVERFLOW is returned, then U_BUFFER_OVERFLOW must + * be returned to the user, because it means that not all data could be written into the target buffer, and some is + * in the converter error buffer. + * @see ucnv_cbFromUWriteBytes + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucnv_cbFromUWriteSub (UConverterFromUnicodeArgs *args, + int32_t offsetIndex, + UErrorCode * err); + +/** + * ONLY used by fromU callback functions. + * This function will write out the error character(s) to the target UChar buffer. + * + * @param args callback fromUnicode arguments + * @param source pointer to pointer to first UChar to write [on exit: 1 after last UChar processed] + * @param sourceLimit pointer after last UChar to write + * @param offsetIndex the relative offset index from callback which will be set + * @param err error status U_BUFFER_OVERFLOW + * @see ucnv_cbToUWriteSub + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args, + const UChar** source, + const UChar* sourceLimit, + int32_t offsetIndex, + UErrorCode * err); + +/** + * ONLY used by ToU callback functions. + * This function will write out the specified characters to the target + * UChar buffer. + * + * @param args callback toUnicode arguments + * @param source source string to write + * @param length the length of source string + * @param offsetIndex the relative offset index which will be written. + * @param err error status U_BUFFER_OVERFLOW + * @see ucnv_cbToUWriteSub + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 ucnv_cbToUWriteUChars (UConverterToUnicodeArgs *args, + const UChar* source, + int32_t length, + int32_t offsetIndex, + UErrorCode * err); + +/** + * ONLY used by ToU callback functions. + * This function will write out the Unicode substitution character (U+FFFD). + * + * @param args callback fromUnicode arguments + * @param offsetIndex the relative offset index from callback. + * @param err error status U_BUFFER_OVERFLOW + * @see ucnv_cbToUWriteUChars + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 ucnv_cbToUWriteSub (UConverterToUnicodeArgs *args, + int32_t offsetIndex, + UErrorCode * err); +#endif + +#endif + +// uclean.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* Copyright (C) 2001-2014, International Business Machines +* Corporation and others. All Rights Reserved. +****************************************************************************** +* file name: uclean.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2001July05 +* created by: George Rhoten +*/ + +#ifndef __UCLEAN_H__ +#define __UCLEAN_H__ + +/** + * \file + * \brief C API: Initialize and clean up ICU + */ + +/** + * Initialize ICU. + * + * Use of this function is optional. It is OK to simply use ICU + * services and functions without first having initialized + * ICU by calling u_init(). + * + * u_init() will attempt to load some part of ICU's data, and is + * useful as a test for configuration or installation problems that + * leave the ICU data inaccessible. A successful invocation of u_init() + * does not, however, guarantee that all ICU data is accessible. + * + * Multiple calls to u_init() cause no harm, aside from the small amount + * of time required. + * + * In old versions of ICU, u_init() was required in multi-threaded applications + * to ensure the thread safety of ICU. u_init() is no longer needed for this purpose. + * + * @param status An ICU UErrorCode parameter. It must not be NULL. + * An Error will be returned if some required part of ICU data can not + * be loaded or initialized. + * The function returns immediately if the input error code indicates a + * failure, as usual. + * + * @stable ICU 2.6 + */ +U_CAPI void U_EXPORT2 +u_init(UErrorCode *status); + +#ifndef U_HIDE_SYSTEM_API +/** + * Clean up the system resources, such as allocated memory or open files, + * used in all ICU libraries. This will free/delete all memory owned by the + * ICU libraries, and return them to their original load state. All open ICU + * items (collators, resource bundles, converters, etc.) must be closed before + * calling this function, otherwise ICU may not free its allocated memory + * (e.g. close your converters and resource bundles before calling this + * function). Generally, this function should be called once just before + * an application exits. For applications that dynamically load and unload + * the ICU libraries (relatively uncommon), u_cleanup() should be called + * just before the library unload. + *

+ * u_cleanup() also clears any ICU heap functions, mutex functions or + * trace functions that may have been set for the process. + * This has the effect of restoring ICU to its initial condition, before + * any of these override functions were installed. Refer to + * u_setMemoryFunctions(), u_setMutexFunctions and + * utrace_setFunctions(). If ICU is to be reinitialized after + * calling u_cleanup(), these runtime override functions will need to + * be set up again if they are still required. + *

+ * u_cleanup() is not thread safe. All other threads should stop using ICU + * before calling this function. + *

+ * Any open ICU items will be left in an undefined state by u_cleanup(), + * and any subsequent attempt to use such an item will give unpredictable + * results. + *

+ * After calling u_cleanup(), an application may continue to use ICU by + * calling u_init(). An application must invoke u_init() first from one single + * thread before allowing other threads call u_init(). All threads existing + * at the time of the first thread's call to u_init() must also call + * u_init() themselves before continuing with other ICU operations. + *

+ * The use of u_cleanup() just before an application terminates is optional, + * but it should be called only once for performance reasons. The primary + * benefit is to eliminate reports of memory or resource leaks originating + * in ICU code from the results generated by heap analysis tools. + *

+ * Use this function with great care! + *

+ * + * @stable ICU 2.0 + * @system + */ +U_CAPI void U_EXPORT2 +u_cleanup(void); + +U_CDECL_BEGIN +/** + * Pointer type for a user supplied memory allocation function. + * @param context user supplied value, obtained from u_setMemoryFunctions(). + * @param size The number of bytes to be allocated + * @return Pointer to the newly allocated memory, or NULL if the allocation failed. + * @stable ICU 2.8 + * @system + */ +typedef void *U_CALLCONV UMemAllocFn(const void *context, size_t size); +/** + * Pointer type for a user supplied memory re-allocation function. + * @param context user supplied value, obtained from u_setMemoryFunctions(). + * @param mem Pointer to the memory block to be resized. + * @param size The new size for the block. + * @return Pointer to the newly allocated memory, or NULL if the allocation failed. + * @stable ICU 2.8 + * @system + */ +typedef void *U_CALLCONV UMemReallocFn(const void *context, void *mem, size_t size); +/** + * Pointer type for a user supplied memory free function. Behavior should be + * similar the standard C library free(). + * @param context user supplied value, obtained from u_setMemoryFunctions(). + * @param mem Pointer to the memory block to be freed. + * @return Pointer to the resized memory block, or NULL if the resizing failed. + * @stable ICU 2.8 + * @system + */ +typedef void U_CALLCONV UMemFreeFn (const void *context, void *mem); + +/** + * Set the functions that ICU will use for memory allocation. + * Use of this function is optional; by default (without this function), ICU will + * use the standard C library malloc() and free() functions. + * This function can only be used when ICU is in an initial, unused state, before + * u_init() has been called. + * @param context This pointer value will be saved, and then (later) passed as + * a parameter to the memory functions each time they + * are called. + * @param a Pointer to a user-supplied malloc function. + * @param r Pointer to a user-supplied realloc function. + * @param f Pointer to a user-supplied free function. + * @param status Receives error values. + * @stable ICU 2.8 + * @system + */ +U_CAPI void U_EXPORT2 +u_setMemoryFunctions(const void *context, UMemAllocFn * U_CALLCONV_FPTR a, UMemReallocFn * U_CALLCONV_FPTR r, UMemFreeFn * U_CALLCONV_FPTR f, + UErrorCode *status); + +U_CDECL_END + +#endif /* U_HIDE_SYSTEM_API */ + +#endif + +// ucat.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (c) 2003-2004, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* Author: Alan Liu +* Created: March 19 2003 +* Since: ICU 2.6 +********************************************************************** +*/ +#ifndef UCAT_H +#define UCAT_H + + +/** + * \file + * \brief C API: Message Catalog Wrappers + * + * This C API provides look-alike functions that deliberately resemble + * the POSIX catopen, catclose, and catgets functions. The underlying + * implementation is in terms of ICU resource bundles, rather than + * POSIX message catalogs. + * + * The ICU resource bundles obey standard ICU inheritance policies. + * To facilitate this, sets and messages are flattened into one tier. + * This is done by creating resource bundle keys of the form + * <set_num>%<msg_num> where set_num is the set number and msg_num is + * the message number, formatted as decimal strings. + * + * Example: Consider a message catalog containing two sets: + * + * Set 1: Message 4 = "Good morning." + * Message 5 = "Good afternoon." + * Message 7 = "Good evening." + * Message 8 = "Good night." + * Set 4: Message 14 = "Please " + * Message 19 = "Thank you." + * Message 20 = "Sincerely," + * + * The ICU resource bundle source file would, assuming it is named + * "greet.txt", would look like this: + * + * greet + * { + * 1%4 { "Good morning." } + * 1%5 { "Good afternoon." } + * 1%7 { "Good evening." } + * 1%8 { "Good night." } + * + * 4%14 { "Please " } + * 4%19 { "Thank you." } + * 4%20 { "Sincerely," } + * } + * + * The catgets function is commonly used in combination with functions + * like printf and strftime. ICU components like message format can + * be used instead, although they use a different format syntax. + * There is an ICU package, icuio, that provides some of + * the POSIX-style formatting API. + */ + +U_CDECL_BEGIN + +/** + * An ICU message catalog descriptor, analogous to nl_catd. + * + * @stable ICU 2.6 + */ +typedef UResourceBundle* u_nl_catd; + +/** + * Open and return an ICU message catalog descriptor. The descriptor + * may be passed to u_catgets() to retrieve localized strings. + * + * @param name string containing the full path pointing to the + * directory where the resources reside followed by the package name + * e.g. "/usr/resource/my_app/resources/guimessages" on a Unix system. + * If NULL, ICU default data files will be used. + * + * Unlike POSIX, environment variables are not interpolated within the + * name. + * + * @param locale the locale for which we want to open the resource. If + * NULL, the default ICU locale will be used (see uloc_getDefault). If + * strlen(locale) == 0, the root locale will be used. + * + * @param ec input/output error code. Upon output, + * U_USING_FALLBACK_WARNING indicates that a fallback locale was + * used. For example, 'de_CH' was requested, but nothing was found + * there, so 'de' was used. U_USING_DEFAULT_WARNING indicates that the + * default locale data or root locale data was used; neither the + * requested locale nor any of its fallback locales were found. + * + * @return a message catalog descriptor that may be passed to + * u_catgets(). If the ec parameter indicates success, then the caller + * is responsible for calling u_catclose() to close the message + * catalog. If the ec parameter indicates failure, then NULL will be + * returned. + * + * @stable ICU 2.6 + */ +U_CAPI u_nl_catd U_EXPORT2 +u_catopen(const char* name, const char* locale, UErrorCode* ec); + +/** + * Close an ICU message catalog, given its descriptor. + * + * @param catd a message catalog descriptor to be closed. May be NULL, + * in which case no action is taken. + * + * @stable ICU 2.6 + */ +U_CAPI void U_EXPORT2 +u_catclose(u_nl_catd catd); + +/** + * Retrieve a localized string from an ICU message catalog. + * + * @param catd a message catalog descriptor returned by u_catopen. + * + * @param set_num the message catalog set number. Sets need not be + * numbered consecutively. + * + * @param msg_num the message catalog message number within the + * set. Messages need not be numbered consecutively. + * + * @param s the default string. This is returned if the string + * specified by the set_num and msg_num is not found. It must be + * zero-terminated. + * + * @param len fill-in parameter to receive the length of the result. + * May be NULL, in which case it is ignored. + * + * @param ec input/output error code. May be U_USING_FALLBACK_WARNING + * or U_USING_DEFAULT_WARNING. U_MISSING_RESOURCE_ERROR indicates that + * the set_num/msg_num tuple does not specify a valid message string + * in this catalog. + * + * @return a pointer to a zero-terminated UChar array which lives in + * an internal buffer area, typically a memory mapped/DLL file. The + * caller must NOT delete this pointer. If the call is unsuccessful + * for any reason, then s is returned. This includes the situation in + * which ec indicates a failing error code upon entry to this + * function. + * + * @stable ICU 2.6 + */ +U_CAPI const UChar* U_EXPORT2 +u_catgets(u_nl_catd catd, int32_t set_num, int32_t msg_num, + const UChar* s, + int32_t* len, UErrorCode* ec); + +U_CDECL_END + +#endif /*UCAT_H*/ +/*eof*/ + +// stringoptions.h +// Copyright (C) 2017 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html + +// stringoptions.h +// created: 2017jun08 Markus W. Scherer + +#ifndef __STRINGOPTIONS_H__ +#define __STRINGOPTIONS_H__ + + +/** + * \file + * \brief C API: Bit set option bit constants for various string and character processing functions. + */ + +/** + * Option value for case folding: Use default mappings defined in CaseFolding.txt. + * + * @stable ICU 2.0 + */ +#define U_FOLD_CASE_DEFAULT 0 + +/** + * Option value for case folding: + * + * Use the modified set of mappings provided in CaseFolding.txt to handle dotted I + * and dotless i appropriately for Turkic languages (tr, az). + * + * Before Unicode 3.2, CaseFolding.txt contains mappings marked with 'I' that + * are to be included for default mappings and + * excluded for the Turkic-specific mappings. + * + * Unicode 3.2 CaseFolding.txt instead contains mappings marked with 'T' that + * are to be excluded for default mappings and + * included for the Turkic-specific mappings. + * + * @stable ICU 2.0 + */ +#define U_FOLD_CASE_EXCLUDE_SPECIAL_I 1 + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) +/** + * Titlecase the string as a whole rather than each word. + * (Titlecase only the character at index 0, possibly adjusted.) + * Option bits value for titlecasing APIs that take an options bit set. + * + * It is an error to specify multiple titlecasing iterator options together, + * including both an options bit and an explicit BreakIterator. + * + * @see U_TITLECASE_ADJUST_TO_CASED + * @stable ICU 60 + */ +#define U_TITLECASE_WHOLE_STRING 0x20 + +/** + * Titlecase sentences rather than words. + * (Titlecase only the first character of each sentence, possibly adjusted.) + * Option bits value for titlecasing APIs that take an options bit set. + * + * It is an error to specify multiple titlecasing iterator options together, + * including both an options bit and an explicit BreakIterator. + * + * @see U_TITLECASE_ADJUST_TO_CASED + * @stable ICU 60 + */ +#define U_TITLECASE_SENTENCES 0x40 +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) + +/** + * Do not lowercase non-initial parts of words when titlecasing. + * Option bit for titlecasing APIs that take an options bit set. + * + * By default, titlecasing will titlecase the character at each + * (possibly adjusted) BreakIterator index and + * lowercase all other characters up to the next iterator index. + * With this option, the other characters will not be modified. + * + * @see U_TITLECASE_ADJUST_TO_CASED + * @see UnicodeString::toTitle + * @see CaseMap::toTitle + * @see ucasemap_setOptions + * @see ucasemap_toTitle + * @see ucasemap_utf8ToTitle + * @stable ICU 3.8 + */ +#define U_TITLECASE_NO_LOWERCASE 0x100 + +/** + * Do not adjust the titlecasing BreakIterator indexes; + * titlecase exactly the characters at breaks from the iterator. + * Option bit for titlecasing APIs that take an options bit set. + * + * By default, titlecasing will take each break iterator index, + * adjust it to the next relevant character (see U_TITLECASE_ADJUST_TO_CASED), + * and titlecase that one. + * + * Other characters are lowercased. + * + * It is an error to specify multiple titlecasing adjustment options together. + * + * @see U_TITLECASE_ADJUST_TO_CASED + * @see U_TITLECASE_NO_LOWERCASE + * @see UnicodeString::toTitle + * @see CaseMap::toTitle + * @see ucasemap_setOptions + * @see ucasemap_toTitle + * @see ucasemap_utf8ToTitle + * @stable ICU 3.8 + */ +#define U_TITLECASE_NO_BREAK_ADJUSTMENT 0x200 + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) +/** + * Adjust each titlecasing BreakIterator index to the next cased character. + * (See the Unicode Standard, chapter 3, Default Case Conversion, R3 toTitlecase(X).) + * Option bit for titlecasing APIs that take an options bit set. + * + * This used to be the default index adjustment in ICU. + * Since ICU 60, the default index adjustment is to the next character that is + * a letter, number, symbol, or private use code point. + * (Uncased modifier letters are skipped.) + * The difference in behavior is small for word titlecasing, + * but the new adjustment is much better for whole-string and sentence titlecasing: + * It yields "49ers" and "«丰(abc)»" instead of "49Ers" and "«丰(Abc)»". + * + * It is an error to specify multiple titlecasing adjustment options together. + * + * @see U_TITLECASE_NO_BREAK_ADJUSTMENT + * @stable ICU 60 + */ +#define U_TITLECASE_ADJUST_TO_CASED 0x400 + +/** + * Option for string transformation functions to not first reset the Edits object. + * Used for example in some case-mapping and normalization functions. + * + * @see CaseMap + * @see Edits + * @see Normalizer2 + * @stable ICU 60 + */ +#define U_EDITS_NO_RESET 0x2000 + +/** + * Omit unchanged text when recording how source substrings + * relate to changed and unchanged result substrings. + * Used for example in some case-mapping and normalization functions. + * + * @see CaseMap + * @see Edits + * @see Normalizer2 + * @stable ICU 60 + */ +#define U_OMIT_UNCHANGED_TEXT 0x4000 +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) + +/** + * Option bit for u_strCaseCompare, u_strcasecmp, unorm_compare, etc: + * Compare strings in code point order instead of code unit order. + * @stable ICU 2.2 + */ +#define U_COMPARE_CODE_POINT_ORDER 0x8000 + +/** + * Option bit for unorm_compare: + * Perform case-insensitive comparison. + * @stable ICU 2.2 + */ +#define U_COMPARE_IGNORE_CASE 0x10000 + +/** + * Option bit for unorm_compare: + * Both input strings are assumed to fulfill FCD conditions. + * @stable ICU 2.2 + */ +#define UNORM_INPUT_IS_FCD 0x20000 + +// Related definitions elsewhere. +// Options that are not meaningful in the same functions +// can share the same bits. +// +// Public: +// unicode/unorm.h #define UNORM_COMPARE_NORM_OPTIONS_SHIFT 20 +// +// Internal: (may change or be removed) +// ucase.h #define _STRCASECMP_OPTIONS_MASK 0xffff +// ucase.h #define _FOLD_CASE_OPTIONS_MASK 7 +// ucasemap_imp.h #define U_TITLECASE_ITERATOR_MASK 0xe0 +// ucasemap_imp.h #define U_TITLECASE_ADJUSTMENT_MASK 0x600 +// ustr_imp.h #define _STRNCMP_STYLE 0x1000 +// unormcmp.cpp #define _COMPARE_EQUIV 0x80000 + +#endif // __STRINGOPTIONS_H__ + +// uchar.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 1997-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* +* File UCHAR.H +* +* Modification History: +* +* Date Name Description +* 04/02/97 aliu Creation. +* 03/29/99 helena Updated for C APIs. +* 4/15/99 Madhu Updated for C Implementation and Javadoc +* 5/20/99 Madhu Added the function u_getVersion() +* 8/19/1999 srl Upgraded scripts to Unicode 3.0 +* 8/27/1999 schererm UCharDirection constants: U_... +* 11/11/1999 weiv added u_isalnum(), cleaned comments +* 01/11/2000 helena Renamed u_getVersion to u_getUnicodeVersion(). +****************************************************************************** +*/ + +#ifndef UCHAR_H +#define UCHAR_H + + +#if !defined(USET_DEFINED) && !defined(U_IN_DOXYGEN) + +#define USET_DEFINED + +/** + * USet is the C API type corresponding to C++ class UnicodeSet. + * It is forward-declared here to avoid including unicode/uset.h file if related + * APIs are not used. + * + * @see ucnv_getUnicodeSet + * @stable ICU 2.4 + */ +typedef struct USet USet; + +#endif + + +U_CDECL_BEGIN + + +/** + * \file + * \brief C API: Unicode Properties + * + * This C API provides low-level access to the Unicode Character Database. + * In addition to raw property values, some convenience functions calculate + * derived properties, for example for Java-style programming. + * + * Unicode assigns each code point (not just assigned character) values for + * many properties. + * Most of them are simple boolean flags, or constants from a small enumerated list. + * For some properties, values are strings or other relatively more complex types. + * + * For more information see + * "About the Unicode Character Database" (http://www.unicode.org/ucd/) + * and the ICU User Guide chapter on Properties (https://unicode-org.github.io/icu/userguide/strings/properties). + * + * Many properties are accessible via generic functions that take a UProperty selector. + * - u_hasBinaryProperty() returns a binary value (true/false) per property and code point. + * - u_getIntPropertyValue() returns an integer value per property and code point. + * For each supported enumerated or catalog property, there is + * an enum type for all of the property's values, and + * u_getIntPropertyValue() returns the numeric values of those constants. + * - u_getBinaryPropertySet() returns a set for each ICU-supported binary property with + * all code points for which the property is true. + * - u_getIntPropertyMap() returns a map for each + * ICU-supported enumerated/catalog/int-valued property which + * maps all Unicode code points to their values for that property. + * + * Many functions are designed to match java.lang.Character functions. + * See the individual function documentation, + * and see the JDK 1.4 java.lang.Character documentation + * at http://java.sun.com/j2se/1.4/docs/api/java/lang/Character.html + * + * There are also functions that provide easy migration from C/POSIX functions + * like isblank(). Their use is generally discouraged because the C/POSIX + * standards do not define their semantics beyond the ASCII range, which means + * that different implementations exhibit very different behavior. + * Instead, Unicode properties should be used directly. + * + * There are also only a few, broad C/POSIX character classes, and they tend + * to be used for conflicting purposes. For example, the "isalpha()" class + * is sometimes used to determine word boundaries, while a more sophisticated + * approach would at least distinguish initial letters from continuation + * characters (the latter including combining marks). + * (In ICU, BreakIterator is the most sophisticated API for word boundaries.) + * Another example: There is no "istitle()" class for titlecase characters. + * + * ICU 3.4 and later provides API access for all twelve C/POSIX character classes. + * ICU implements them according to the Standard Recommendations in + * Annex C: Compatibility Properties of UTS #18 Unicode Regular Expressions + * (http://www.unicode.org/reports/tr18/#Compatibility_Properties). + * + * API access for C/POSIX character classes is as follows: + * - alpha: u_isUAlphabetic(c) or u_hasBinaryProperty(c, UCHAR_ALPHABETIC) + * - lower: u_isULowercase(c) or u_hasBinaryProperty(c, UCHAR_LOWERCASE) + * - upper: u_isUUppercase(c) or u_hasBinaryProperty(c, UCHAR_UPPERCASE) + * - punct: u_ispunct(c) + * - digit: u_isdigit(c) or u_charType(c)==U_DECIMAL_DIGIT_NUMBER + * - xdigit: u_isxdigit(c) or u_hasBinaryProperty(c, UCHAR_POSIX_XDIGIT) + * - alnum: u_hasBinaryProperty(c, UCHAR_POSIX_ALNUM) + * - space: u_isUWhiteSpace(c) or u_hasBinaryProperty(c, UCHAR_WHITE_SPACE) + * - blank: u_isblank(c) or u_hasBinaryProperty(c, UCHAR_POSIX_BLANK) + * - cntrl: u_charType(c)==U_CONTROL_CHAR + * - graph: u_hasBinaryProperty(c, UCHAR_POSIX_GRAPH) + * - print: u_hasBinaryProperty(c, UCHAR_POSIX_PRINT) + * + * Note: Some of the u_isxyz() functions in uchar.h predate, and do not match, + * the Standard Recommendations in UTS #18. Instead, they match Java + * functions according to their API documentation. + * + * \htmlonly + * The C/POSIX character classes are also available in UnicodeSet patterns, + * using patterns like [:graph:] or \p{graph}. + * \endhtmlonly + * + * Note: There are several ICU whitespace functions. + * Comparison: + * - u_isUWhiteSpace=UCHAR_WHITE_SPACE: Unicode White_Space property; + * most of general categories "Z" (separators) + most whitespace ISO controls + * (including no-break spaces, but excluding IS1..IS4) + * - u_isWhitespace: Java isWhitespace; Z + whitespace ISO controls but excluding no-break spaces + * - u_isJavaSpaceChar: Java isSpaceChar; just Z (including no-break spaces) + * - u_isspace: Z + whitespace ISO controls (including no-break spaces) + * - u_isblank: "horizontal spaces" = TAB + Zs + */ + +/** + * Constants. + */ + +/** The lowest Unicode code point value. Code points are non-negative. @stable ICU 2.0 */ +#define UCHAR_MIN_VALUE 0 + +/** + * The highest Unicode code point value (scalar value) according to + * The Unicode Standard. This is a 21-bit value (20.1 bits, rounded up). + * For a single character, UChar32 is a simple type that can hold any code point value. + * + * @see UChar32 + * @stable ICU 2.0 + */ +#define UCHAR_MAX_VALUE 0x10ffff + +/** + * Get a single-bit bit set (a flag) from a bit number 0..31. + * @stable ICU 2.1 + */ +#define U_MASK(x) ((uint32_t)1<<(x)) + +/** + * Selection constants for Unicode properties. + * These constants are used in functions like u_hasBinaryProperty to select + * one of the Unicode properties. + * + * The properties APIs are intended to reflect Unicode properties as defined + * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR). + * + * For details about the properties see + * UAX #44: Unicode Character Database (http://www.unicode.org/reports/tr44/). + * + * Important: If ICU is built with UCD files from Unicode versions below, e.g., 3.2, + * then properties marked with "new in Unicode 3.2" are not or not fully available. + * Check u_getUnicodeVersion to be sure. + * + * @see u_hasBinaryProperty + * @see u_getIntPropertyValue + * @see u_getUnicodeVersion + * @stable ICU 2.1 + */ +typedef enum UProperty { + /* + * Note: UProperty constants are parsed by preparseucd.py. + * It matches lines like + * UCHAR_=, + */ + + /* Note: Place UCHAR_ALPHABETIC before UCHAR_BINARY_START so that + debuggers display UCHAR_ALPHABETIC as the symbolic name for 0, + rather than UCHAR_BINARY_START. Likewise for other *_START + identifiers. */ + + /** Binary property Alphabetic. Same as u_isUAlphabetic, different from u_isalpha. + Lu+Ll+Lt+Lm+Lo+Nl+Other_Alphabetic @stable ICU 2.1 */ + UCHAR_ALPHABETIC=0, + /** First constant for binary Unicode properties. @stable ICU 2.1 */ + UCHAR_BINARY_START=UCHAR_ALPHABETIC, + /** Binary property ASCII_Hex_Digit. 0-9 A-F a-f @stable ICU 2.1 */ + UCHAR_ASCII_HEX_DIGIT=1, + /** Binary property Bidi_Control. + Format controls which have specific functions + in the Bidi Algorithm. @stable ICU 2.1 */ + UCHAR_BIDI_CONTROL=2, + /** Binary property Bidi_Mirrored. + Characters that may change display in RTL text. + Same as u_isMirrored. + See Bidi Algorithm, UTR 9. @stable ICU 2.1 */ + UCHAR_BIDI_MIRRORED=3, + /** Binary property Dash. Variations of dashes. @stable ICU 2.1 */ + UCHAR_DASH=4, + /** Binary property Default_Ignorable_Code_Point (new in Unicode 3.2). + Ignorable in most processing. + <2060..206F, FFF0..FFFB, E0000..E0FFF>+Other_Default_Ignorable_Code_Point+(Cf+Cc+Cs-White_Space) @stable ICU 2.1 */ + UCHAR_DEFAULT_IGNORABLE_CODE_POINT=5, + /** Binary property Deprecated (new in Unicode 3.2). + The usage of deprecated characters is strongly discouraged. @stable ICU 2.1 */ + UCHAR_DEPRECATED=6, + /** Binary property Diacritic. Characters that linguistically modify + the meaning of another character to which they apply. @stable ICU 2.1 */ + UCHAR_DIACRITIC=7, + /** Binary property Extender. + Extend the value or shape of a preceding alphabetic character, + e.g., length and iteration marks. @stable ICU 2.1 */ + UCHAR_EXTENDER=8, + /** Binary property Full_Composition_Exclusion. + CompositionExclusions.txt+Singleton Decompositions+ + Non-Starter Decompositions. @stable ICU 2.1 */ + UCHAR_FULL_COMPOSITION_EXCLUSION=9, + /** Binary property Grapheme_Base (new in Unicode 3.2). + For programmatic determination of grapheme cluster boundaries. + [0..10FFFF]-Cc-Cf-Cs-Co-Cn-Zl-Zp-Grapheme_Link-Grapheme_Extend-CGJ @stable ICU 2.1 */ + UCHAR_GRAPHEME_BASE=10, + /** Binary property Grapheme_Extend (new in Unicode 3.2). + For programmatic determination of grapheme cluster boundaries. + Me+Mn+Mc+Other_Grapheme_Extend-Grapheme_Link-CGJ @stable ICU 2.1 */ + UCHAR_GRAPHEME_EXTEND=11, + /** Binary property Grapheme_Link (new in Unicode 3.2). + For programmatic determination of grapheme cluster boundaries. @stable ICU 2.1 */ + UCHAR_GRAPHEME_LINK=12, + /** Binary property Hex_Digit. + Characters commonly used for hexadecimal numbers. @stable ICU 2.1 */ + UCHAR_HEX_DIGIT=13, + /** Binary property Hyphen. Dashes used to mark connections + between pieces of words, plus the Katakana middle dot. @stable ICU 2.1 */ + UCHAR_HYPHEN=14, + /** Binary property ID_Continue. + Characters that can continue an identifier. + DerivedCoreProperties.txt also says "NOTE: Cf characters should be filtered out." + ID_Start+Mn+Mc+Nd+Pc @stable ICU 2.1 */ + UCHAR_ID_CONTINUE=15, + /** Binary property ID_Start. + Characters that can start an identifier. + Lu+Ll+Lt+Lm+Lo+Nl @stable ICU 2.1 */ + UCHAR_ID_START=16, + /** Binary property Ideographic. + CJKV ideographs. @stable ICU 2.1 */ + UCHAR_IDEOGRAPHIC=17, + /** Binary property IDS_Binary_Operator (new in Unicode 3.2). + For programmatic determination of + Ideographic Description Sequences. @stable ICU 2.1 */ + UCHAR_IDS_BINARY_OPERATOR=18, + /** Binary property IDS_Trinary_Operator (new in Unicode 3.2). + For programmatic determination of + Ideographic Description Sequences. @stable ICU 2.1 */ + UCHAR_IDS_TRINARY_OPERATOR=19, + /** Binary property Join_Control. + Format controls for cursive joining and ligation. @stable ICU 2.1 */ + UCHAR_JOIN_CONTROL=20, + /** Binary property Logical_Order_Exception (new in Unicode 3.2). + Characters that do not use logical order and + require special handling in most processing. @stable ICU 2.1 */ + UCHAR_LOGICAL_ORDER_EXCEPTION=21, + /** Binary property Lowercase. Same as u_isULowercase, different from u_islower. + Ll+Other_Lowercase @stable ICU 2.1 */ + UCHAR_LOWERCASE=22, + /** Binary property Math. Sm+Other_Math @stable ICU 2.1 */ + UCHAR_MATH=23, + /** Binary property Noncharacter_Code_Point. + Code points that are explicitly defined as illegal + for the encoding of characters. @stable ICU 2.1 */ + UCHAR_NONCHARACTER_CODE_POINT=24, + /** Binary property Quotation_Mark. @stable ICU 2.1 */ + UCHAR_QUOTATION_MARK=25, + /** Binary property Radical (new in Unicode 3.2). + For programmatic determination of + Ideographic Description Sequences. @stable ICU 2.1 */ + UCHAR_RADICAL=26, + /** Binary property Soft_Dotted (new in Unicode 3.2). + Characters with a "soft dot", like i or j. + An accent placed on these characters causes + the dot to disappear. @stable ICU 2.1 */ + UCHAR_SOFT_DOTTED=27, + /** Binary property Terminal_Punctuation. + Punctuation characters that generally mark + the end of textual units. @stable ICU 2.1 */ + UCHAR_TERMINAL_PUNCTUATION=28, + /** Binary property Unified_Ideograph (new in Unicode 3.2). + For programmatic determination of + Ideographic Description Sequences. @stable ICU 2.1 */ + UCHAR_UNIFIED_IDEOGRAPH=29, + /** Binary property Uppercase. Same as u_isUUppercase, different from u_isupper. + Lu+Other_Uppercase @stable ICU 2.1 */ + UCHAR_UPPERCASE=30, + /** Binary property White_Space. + Same as u_isUWhiteSpace, different from u_isspace and u_isWhitespace. + Space characters+TAB+CR+LF-ZWSP-ZWNBSP @stable ICU 2.1 */ + UCHAR_WHITE_SPACE=31, + /** Binary property XID_Continue. + ID_Continue modified to allow closure under + normalization forms NFKC and NFKD. @stable ICU 2.1 */ + UCHAR_XID_CONTINUE=32, + /** Binary property XID_Start. ID_Start modified to allow + closure under normalization forms NFKC and NFKD. @stable ICU 2.1 */ + UCHAR_XID_START=33, + /** Binary property Case_Sensitive. Either the source of a case + mapping or _in_ the target of a case mapping. Not the same as + the general category Cased_Letter. @stable ICU 2.6 */ + UCHAR_CASE_SENSITIVE=34, + /** Binary property STerm (new in Unicode 4.0.1). + Sentence Terminal. Used in UAX #29: Text Boundaries + (http://www.unicode.org/reports/tr29/) + @stable ICU 3.0 */ + UCHAR_S_TERM=35, + /** Binary property Variation_Selector (new in Unicode 4.0.1). + Indicates all those characters that qualify as Variation Selectors. + For details on the behavior of these characters, + see StandardizedVariants.html and 15.6 Variation Selectors. + @stable ICU 3.0 */ + UCHAR_VARIATION_SELECTOR=36, + /** Binary property NFD_Inert. + ICU-specific property for characters that are inert under NFD, + i.e., they do not interact with adjacent characters. + See the documentation for the Normalizer2 class and the + Normalizer2::isInert() method. + @stable ICU 3.0 */ + UCHAR_NFD_INERT=37, + /** Binary property NFKD_Inert. + ICU-specific property for characters that are inert under NFKD, + i.e., they do not interact with adjacent characters. + See the documentation for the Normalizer2 class and the + Normalizer2::isInert() method. + @stable ICU 3.0 */ + UCHAR_NFKD_INERT=38, + /** Binary property NFC_Inert. + ICU-specific property for characters that are inert under NFC, + i.e., they do not interact with adjacent characters. + See the documentation for the Normalizer2 class and the + Normalizer2::isInert() method. + @stable ICU 3.0 */ + UCHAR_NFC_INERT=39, + /** Binary property NFKC_Inert. + ICU-specific property for characters that are inert under NFKC, + i.e., they do not interact with adjacent characters. + See the documentation for the Normalizer2 class and the + Normalizer2::isInert() method. + @stable ICU 3.0 */ + UCHAR_NFKC_INERT=40, + /** Binary Property Segment_Starter. + ICU-specific property for characters that are starters in terms of + Unicode normalization and combining character sequences. + They have ccc=0 and do not occur in non-initial position of the + canonical decomposition of any character + (like a-umlaut in NFD and a Jamo T in an NFD(Hangul LVT)). + ICU uses this property for segmenting a string for generating a set of + canonically equivalent strings, e.g. for canonical closure while + processing collation tailoring rules. + @stable ICU 3.0 */ + UCHAR_SEGMENT_STARTER=41, + /** Binary property Pattern_Syntax (new in Unicode 4.1). + See UAX #31 Identifier and Pattern Syntax + (http://www.unicode.org/reports/tr31/) + @stable ICU 3.4 */ + UCHAR_PATTERN_SYNTAX=42, + /** Binary property Pattern_White_Space (new in Unicode 4.1). + See UAX #31 Identifier and Pattern Syntax + (http://www.unicode.org/reports/tr31/) + @stable ICU 3.4 */ + UCHAR_PATTERN_WHITE_SPACE=43, + /** Binary property alnum (a C/POSIX character class). + Implemented according to the UTS #18 Annex C Standard Recommendation. + See the uchar.h file documentation. + @stable ICU 3.4 */ + UCHAR_POSIX_ALNUM=44, + /** Binary property blank (a C/POSIX character class). + Implemented according to the UTS #18 Annex C Standard Recommendation. + See the uchar.h file documentation. + @stable ICU 3.4 */ + UCHAR_POSIX_BLANK=45, + /** Binary property graph (a C/POSIX character class). + Implemented according to the UTS #18 Annex C Standard Recommendation. + See the uchar.h file documentation. + @stable ICU 3.4 */ + UCHAR_POSIX_GRAPH=46, + /** Binary property print (a C/POSIX character class). + Implemented according to the UTS #18 Annex C Standard Recommendation. + See the uchar.h file documentation. + @stable ICU 3.4 */ + UCHAR_POSIX_PRINT=47, + /** Binary property xdigit (a C/POSIX character class). + Implemented according to the UTS #18 Annex C Standard Recommendation. + See the uchar.h file documentation. + @stable ICU 3.4 */ + UCHAR_POSIX_XDIGIT=48, + /** Binary property Cased. For Lowercase, Uppercase and Titlecase characters. @stable ICU 4.4 */ + UCHAR_CASED=49, + /** Binary property Case_Ignorable. Used in context-sensitive case mappings. @stable ICU 4.4 */ + UCHAR_CASE_IGNORABLE=50, + /** Binary property Changes_When_Lowercased. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_LOWERCASED=51, + /** Binary property Changes_When_Uppercased. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_UPPERCASED=52, + /** Binary property Changes_When_Titlecased. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_TITLECASED=53, + /** Binary property Changes_When_Casefolded. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_CASEFOLDED=54, + /** Binary property Changes_When_Casemapped. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_CASEMAPPED=55, + /** Binary property Changes_When_NFKC_Casefolded. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED=56, + /** + * Binary property Emoji. + * See http://www.unicode.org/reports/tr51/#Emoji_Properties + * + * @stable ICU 57 + */ + UCHAR_EMOJI=57, + /** + * Binary property Emoji_Presentation. + * See http://www.unicode.org/reports/tr51/#Emoji_Properties + * + * @stable ICU 57 + */ + UCHAR_EMOJI_PRESENTATION=58, + /** + * Binary property Emoji_Modifier. + * See http://www.unicode.org/reports/tr51/#Emoji_Properties + * + * @stable ICU 57 + */ + UCHAR_EMOJI_MODIFIER=59, + /** + * Binary property Emoji_Modifier_Base. + * See http://www.unicode.org/reports/tr51/#Emoji_Properties + * + * @stable ICU 57 + */ + UCHAR_EMOJI_MODIFIER_BASE=60, + /** + * Binary property Emoji_Component. + * See http://www.unicode.org/reports/tr51/#Emoji_Properties + * + * @stable ICU 60 + */ + UCHAR_EMOJI_COMPONENT=61, + /** + * Binary property Regional_Indicator. + * @stable ICU 60 + */ + UCHAR_REGIONAL_INDICATOR=62, + /** + * Binary property Prepended_Concatenation_Mark. + * @stable ICU 60 + */ + UCHAR_PREPENDED_CONCATENATION_MARK=63, +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) + /** + * Binary property Extended_Pictographic. + * See http://www.unicode.org/reports/tr51/#Emoji_Properties + * + * @stable ICU 62 + */ + UCHAR_EXTENDED_PICTOGRAPHIC=64, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) + + /** Enumerated property Bidi_Class. + Same as u_charDirection, returns UCharDirection values. @stable ICU 2.2 */ + UCHAR_BIDI_CLASS=0x1000, + /** First constant for enumerated/integer Unicode properties. @stable ICU 2.2 */ + UCHAR_INT_START=UCHAR_BIDI_CLASS, + /** Enumerated property Block. + Same as ublock_getCode, returns UBlockCode values. @stable ICU 2.2 */ + UCHAR_BLOCK=0x1001, + /** Enumerated property Canonical_Combining_Class. + Same as u_getCombiningClass, returns 8-bit numeric values. @stable ICU 2.2 */ + UCHAR_CANONICAL_COMBINING_CLASS=0x1002, + /** Enumerated property Decomposition_Type. + Returns UDecompositionType values. @stable ICU 2.2 */ + UCHAR_DECOMPOSITION_TYPE=0x1003, + /** Enumerated property East_Asian_Width. + See http://www.unicode.org/reports/tr11/ + Returns UEastAsianWidth values. @stable ICU 2.2 */ + UCHAR_EAST_ASIAN_WIDTH=0x1004, + /** Enumerated property General_Category. + Same as u_charType, returns UCharCategory values. @stable ICU 2.2 */ + UCHAR_GENERAL_CATEGORY=0x1005, + /** Enumerated property Joining_Group. + Returns UJoiningGroup values. @stable ICU 2.2 */ + UCHAR_JOINING_GROUP=0x1006, + /** Enumerated property Joining_Type. + Returns UJoiningType values. @stable ICU 2.2 */ + UCHAR_JOINING_TYPE=0x1007, + /** Enumerated property Line_Break. + Returns ULineBreak values. @stable ICU 2.2 */ + UCHAR_LINE_BREAK=0x1008, + /** Enumerated property Numeric_Type. + Returns UNumericType values. @stable ICU 2.2 */ + UCHAR_NUMERIC_TYPE=0x1009, + /** Enumerated property Script. + Same as uscript_getScript, returns UScriptCode values. @stable ICU 2.2 */ + UCHAR_SCRIPT=0x100A, + /** Enumerated property Hangul_Syllable_Type, new in Unicode 4. + Returns UHangulSyllableType values. @stable ICU 2.6 */ + UCHAR_HANGUL_SYLLABLE_TYPE=0x100B, + /** Enumerated property NFD_Quick_Check. + Returns UNormalizationCheckResult values. @stable ICU 3.0 */ + UCHAR_NFD_QUICK_CHECK=0x100C, + /** Enumerated property NFKD_Quick_Check. + Returns UNormalizationCheckResult values. @stable ICU 3.0 */ + UCHAR_NFKD_QUICK_CHECK=0x100D, + /** Enumerated property NFC_Quick_Check. + Returns UNormalizationCheckResult values. @stable ICU 3.0 */ + UCHAR_NFC_QUICK_CHECK=0x100E, + /** Enumerated property NFKC_Quick_Check. + Returns UNormalizationCheckResult values. @stable ICU 3.0 */ + UCHAR_NFKC_QUICK_CHECK=0x100F, + /** Enumerated property Lead_Canonical_Combining_Class. + ICU-specific property for the ccc of the first code point + of the decomposition, or lccc(c)=ccc(NFD(c)[0]). + Useful for checking for canonically ordered text; + see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD . + Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */ + UCHAR_LEAD_CANONICAL_COMBINING_CLASS=0x1010, + /** Enumerated property Trail_Canonical_Combining_Class. + ICU-specific property for the ccc of the last code point + of the decomposition, or tccc(c)=ccc(NFD(c)[last]). + Useful for checking for canonically ordered text; + see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD . + Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */ + UCHAR_TRAIL_CANONICAL_COMBINING_CLASS=0x1011, + /** Enumerated property Grapheme_Cluster_Break (new in Unicode 4.1). + Used in UAX #29: Text Boundaries + (http://www.unicode.org/reports/tr29/) + Returns UGraphemeClusterBreak values. @stable ICU 3.4 */ + UCHAR_GRAPHEME_CLUSTER_BREAK=0x1012, + /** Enumerated property Sentence_Break (new in Unicode 4.1). + Used in UAX #29: Text Boundaries + (http://www.unicode.org/reports/tr29/) + Returns USentenceBreak values. @stable ICU 3.4 */ + UCHAR_SENTENCE_BREAK=0x1013, + /** Enumerated property Word_Break (new in Unicode 4.1). + Used in UAX #29: Text Boundaries + (http://www.unicode.org/reports/tr29/) + Returns UWordBreakValues values. @stable ICU 3.4 */ + UCHAR_WORD_BREAK=0x1014, + /** Enumerated property Bidi_Paired_Bracket_Type (new in Unicode 6.3). + Used in UAX #9: Unicode Bidirectional Algorithm + (http://www.unicode.org/reports/tr9/) + Returns UBidiPairedBracketType values. @stable ICU 52 */ + UCHAR_BIDI_PAIRED_BRACKET_TYPE=0x1015, +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) + /** + * Enumerated property Indic_Positional_Category. + * New in Unicode 6.0 as provisional property Indic_Matra_Category; + * renamed and changed to informative in Unicode 8.0. + * See http://www.unicode.org/reports/tr44/#IndicPositionalCategory.txt + * @stable ICU 63 + */ + UCHAR_INDIC_POSITIONAL_CATEGORY=0x1016, + /** + * Enumerated property Indic_Syllabic_Category. + * New in Unicode 6.0 as provisional; informative since Unicode 8.0. + * See http://www.unicode.org/reports/tr44/#IndicSyllabicCategory.txt + * @stable ICU 63 + */ + UCHAR_INDIC_SYLLABIC_CATEGORY=0x1017, + /** + * Enumerated property Vertical_Orientation. + * Used for UAX #50 Unicode Vertical Text Layout (https://www.unicode.org/reports/tr50/). + * New as a UCD property in Unicode 10.0. + * @stable ICU 63 + */ + UCHAR_VERTICAL_ORIENTATION=0x1018, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) + + /** Bitmask property General_Category_Mask. + This is the General_Category property returned as a bit mask. + When used in u_getIntPropertyValue(c), same as U_MASK(u_charType(c)), + returns bit masks for UCharCategory values where exactly one bit is set. + When used with u_getPropertyValueName() and u_getPropertyValueEnum(), + a multi-bit mask is used for sets of categories like "Letters". + Mask values should be cast to uint32_t. + @stable ICU 2.4 */ + UCHAR_GENERAL_CATEGORY_MASK=0x2000, + /** First constant for bit-mask Unicode properties. @stable ICU 2.4 */ + UCHAR_MASK_START=UCHAR_GENERAL_CATEGORY_MASK, + + /** Double property Numeric_Value. + Corresponds to u_getNumericValue. @stable ICU 2.4 */ + UCHAR_NUMERIC_VALUE=0x3000, + /** First constant for double Unicode properties. @stable ICU 2.4 */ + UCHAR_DOUBLE_START=UCHAR_NUMERIC_VALUE, + + /** String property Age. + Corresponds to u_charAge. @stable ICU 2.4 */ + UCHAR_AGE=0x4000, + /** First constant for string Unicode properties. @stable ICU 2.4 */ + UCHAR_STRING_START=UCHAR_AGE, + /** String property Bidi_Mirroring_Glyph. + Corresponds to u_charMirror. @stable ICU 2.4 */ + UCHAR_BIDI_MIRRORING_GLYPH=0x4001, + /** String property Case_Folding. + Corresponds to u_strFoldCase in ustring.h. @stable ICU 2.4 */ + UCHAR_CASE_FOLDING=0x4002, + /** String property Lowercase_Mapping. + Corresponds to u_strToLower in ustring.h. @stable ICU 2.4 */ + UCHAR_LOWERCASE_MAPPING=0x4004, + /** String property Name. + Corresponds to u_charName. @stable ICU 2.4 */ + UCHAR_NAME=0x4005, + /** String property Simple_Case_Folding. + Corresponds to u_foldCase. @stable ICU 2.4 */ + UCHAR_SIMPLE_CASE_FOLDING=0x4006, + /** String property Simple_Lowercase_Mapping. + Corresponds to u_tolower. @stable ICU 2.4 */ + UCHAR_SIMPLE_LOWERCASE_MAPPING=0x4007, + /** String property Simple_Titlecase_Mapping. + Corresponds to u_totitle. @stable ICU 2.4 */ + UCHAR_SIMPLE_TITLECASE_MAPPING=0x4008, + /** String property Simple_Uppercase_Mapping. + Corresponds to u_toupper. @stable ICU 2.4 */ + UCHAR_SIMPLE_UPPERCASE_MAPPING=0x4009, + /** String property Titlecase_Mapping. + Corresponds to u_strToTitle in ustring.h. @stable ICU 2.4 */ + UCHAR_TITLECASE_MAPPING=0x400A, + /** String property Uppercase_Mapping. + Corresponds to u_strToUpper in ustring.h. @stable ICU 2.4 */ + UCHAR_UPPERCASE_MAPPING=0x400C, + /** String property Bidi_Paired_Bracket (new in Unicode 6.3). + Corresponds to u_getBidiPairedBracket. @stable ICU 52 */ + UCHAR_BIDI_PAIRED_BRACKET=0x400D, + + /** Miscellaneous property Script_Extensions (new in Unicode 6.0). + Some characters are commonly used in multiple scripts. + For more information, see UAX #24: http://www.unicode.org/reports/tr24/. + Corresponds to uscript_hasScript and uscript_getScriptExtensions in uscript.h. + @stable ICU 4.6 */ + UCHAR_SCRIPT_EXTENSIONS=0x7000, + /** First constant for Unicode properties with unusual value types. @stable ICU 4.6 */ + UCHAR_OTHER_PROPERTY_START=UCHAR_SCRIPT_EXTENSIONS, + + /** Represents a nonexistent or invalid property or property value. @stable ICU 2.4 */ + UCHAR_INVALID_CODE = -1 +} UProperty; + +/** + * Data for enumerated Unicode general category types. + * See http://www.unicode.org/Public/UNIDATA/UnicodeData.html . + * @stable ICU 2.0 + */ +typedef enum UCharCategory +{ + /* + * Note: UCharCategory constants and their API comments are parsed by preparseucd.py. + * It matches pairs of lines like + * / ** comment... * / + * U_<[A-Z_]+> = , + */ + + /** Non-category for unassigned and non-character code points. @stable ICU 2.0 */ + U_UNASSIGNED = 0, + /** Cn "Other, Not Assigned (no characters in [UnicodeData.txt] have this property)" (same as U_UNASSIGNED!) @stable ICU 2.0 */ + U_GENERAL_OTHER_TYPES = 0, + /** Lu @stable ICU 2.0 */ + U_UPPERCASE_LETTER = 1, + /** Ll @stable ICU 2.0 */ + U_LOWERCASE_LETTER = 2, + /** Lt @stable ICU 2.0 */ + U_TITLECASE_LETTER = 3, + /** Lm @stable ICU 2.0 */ + U_MODIFIER_LETTER = 4, + /** Lo @stable ICU 2.0 */ + U_OTHER_LETTER = 5, + /** Mn @stable ICU 2.0 */ + U_NON_SPACING_MARK = 6, + /** Me @stable ICU 2.0 */ + U_ENCLOSING_MARK = 7, + /** Mc @stable ICU 2.0 */ + U_COMBINING_SPACING_MARK = 8, + /** Nd @stable ICU 2.0 */ + U_DECIMAL_DIGIT_NUMBER = 9, + /** Nl @stable ICU 2.0 */ + U_LETTER_NUMBER = 10, + /** No @stable ICU 2.0 */ + U_OTHER_NUMBER = 11, + /** Zs @stable ICU 2.0 */ + U_SPACE_SEPARATOR = 12, + /** Zl @stable ICU 2.0 */ + U_LINE_SEPARATOR = 13, + /** Zp @stable ICU 2.0 */ + U_PARAGRAPH_SEPARATOR = 14, + /** Cc @stable ICU 2.0 */ + U_CONTROL_CHAR = 15, + /** Cf @stable ICU 2.0 */ + U_FORMAT_CHAR = 16, + /** Co @stable ICU 2.0 */ + U_PRIVATE_USE_CHAR = 17, + /** Cs @stable ICU 2.0 */ + U_SURROGATE = 18, + /** Pd @stable ICU 2.0 */ + U_DASH_PUNCTUATION = 19, + /** Ps @stable ICU 2.0 */ + U_START_PUNCTUATION = 20, + /** Pe @stable ICU 2.0 */ + U_END_PUNCTUATION = 21, + /** Pc @stable ICU 2.0 */ + U_CONNECTOR_PUNCTUATION = 22, + /** Po @stable ICU 2.0 */ + U_OTHER_PUNCTUATION = 23, + /** Sm @stable ICU 2.0 */ + U_MATH_SYMBOL = 24, + /** Sc @stable ICU 2.0 */ + U_CURRENCY_SYMBOL = 25, + /** Sk @stable ICU 2.0 */ + U_MODIFIER_SYMBOL = 26, + /** So @stable ICU 2.0 */ + U_OTHER_SYMBOL = 27, + /** Pi @stable ICU 2.0 */ + U_INITIAL_PUNCTUATION = 28, + /** Pf @stable ICU 2.0 */ + U_FINAL_PUNCTUATION = 29, + /** + * One higher than the last enum UCharCategory constant. + * This numeric value is stable (will not change), see + * http://www.unicode.org/policies/stability_policy.html#Property_Value + * + * @stable ICU 2.0 + */ + U_CHAR_CATEGORY_COUNT +} UCharCategory; + +/** + * U_GC_XX_MASK constants are bit flags corresponding to Unicode + * general category values. + * For each category, the nth bit is set if the numeric value of the + * corresponding UCharCategory constant is n. + * + * There are also some U_GC_Y_MASK constants for groups of general categories + * like L for all letter categories. + * + * @see u_charType + * @see U_GET_GC_MASK + * @see UCharCategory + * @stable ICU 2.1 + */ +#define U_GC_CN_MASK U_MASK(U_GENERAL_OTHER_TYPES) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_LU_MASK U_MASK(U_UPPERCASE_LETTER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_LL_MASK U_MASK(U_LOWERCASE_LETTER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_LT_MASK U_MASK(U_TITLECASE_LETTER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_LM_MASK U_MASK(U_MODIFIER_LETTER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_LO_MASK U_MASK(U_OTHER_LETTER) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_MN_MASK U_MASK(U_NON_SPACING_MARK) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_ME_MASK U_MASK(U_ENCLOSING_MARK) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_MC_MASK U_MASK(U_COMBINING_SPACING_MARK) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_ND_MASK U_MASK(U_DECIMAL_DIGIT_NUMBER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_NL_MASK U_MASK(U_LETTER_NUMBER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_NO_MASK U_MASK(U_OTHER_NUMBER) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_ZS_MASK U_MASK(U_SPACE_SEPARATOR) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_ZL_MASK U_MASK(U_LINE_SEPARATOR) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_ZP_MASK U_MASK(U_PARAGRAPH_SEPARATOR) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_CC_MASK U_MASK(U_CONTROL_CHAR) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_CF_MASK U_MASK(U_FORMAT_CHAR) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_CO_MASK U_MASK(U_PRIVATE_USE_CHAR) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_CS_MASK U_MASK(U_SURROGATE) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PD_MASK U_MASK(U_DASH_PUNCTUATION) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PS_MASK U_MASK(U_START_PUNCTUATION) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PE_MASK U_MASK(U_END_PUNCTUATION) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PC_MASK U_MASK(U_CONNECTOR_PUNCTUATION) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PO_MASK U_MASK(U_OTHER_PUNCTUATION) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_SM_MASK U_MASK(U_MATH_SYMBOL) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_SC_MASK U_MASK(U_CURRENCY_SYMBOL) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_SK_MASK U_MASK(U_MODIFIER_SYMBOL) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_SO_MASK U_MASK(U_OTHER_SYMBOL) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PI_MASK U_MASK(U_INITIAL_PUNCTUATION) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PF_MASK U_MASK(U_FINAL_PUNCTUATION) + + +/** Mask constant for multiple UCharCategory bits (L Letters). @stable ICU 2.1 */ +#define U_GC_L_MASK \ + (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK|U_GC_LM_MASK|U_GC_LO_MASK) + +/** Mask constant for multiple UCharCategory bits (LC Cased Letters). @stable ICU 2.1 */ +#define U_GC_LC_MASK \ + (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK) + +/** Mask constant for multiple UCharCategory bits (M Marks). @stable ICU 2.1 */ +#define U_GC_M_MASK (U_GC_MN_MASK|U_GC_ME_MASK|U_GC_MC_MASK) + +/** Mask constant for multiple UCharCategory bits (N Numbers). @stable ICU 2.1 */ +#define U_GC_N_MASK (U_GC_ND_MASK|U_GC_NL_MASK|U_GC_NO_MASK) + +/** Mask constant for multiple UCharCategory bits (Z Separators). @stable ICU 2.1 */ +#define U_GC_Z_MASK (U_GC_ZS_MASK|U_GC_ZL_MASK|U_GC_ZP_MASK) + +/** Mask constant for multiple UCharCategory bits (C Others). @stable ICU 2.1 */ +#define U_GC_C_MASK \ + (U_GC_CN_MASK|U_GC_CC_MASK|U_GC_CF_MASK|U_GC_CO_MASK|U_GC_CS_MASK) + +/** Mask constant for multiple UCharCategory bits (P Punctuation). @stable ICU 2.1 */ +#define U_GC_P_MASK \ + (U_GC_PD_MASK|U_GC_PS_MASK|U_GC_PE_MASK|U_GC_PC_MASK|U_GC_PO_MASK| \ + U_GC_PI_MASK|U_GC_PF_MASK) + +/** Mask constant for multiple UCharCategory bits (S Symbols). @stable ICU 2.1 */ +#define U_GC_S_MASK (U_GC_SM_MASK|U_GC_SC_MASK|U_GC_SK_MASK|U_GC_SO_MASK) + +/** + * This specifies the language directional property of a character set. + * @stable ICU 2.0 + */ +typedef enum UCharDirection { + /* + * Note: UCharDirection constants and their API comments are parsed by preparseucd.py. + * It matches pairs of lines like + * / ** comment... * / + * U_<[A-Z_]+> = , + */ + + /** L @stable ICU 2.0 */ + U_LEFT_TO_RIGHT = 0, + /** R @stable ICU 2.0 */ + U_RIGHT_TO_LEFT = 1, + /** EN @stable ICU 2.0 */ + U_EUROPEAN_NUMBER = 2, + /** ES @stable ICU 2.0 */ + U_EUROPEAN_NUMBER_SEPARATOR = 3, + /** ET @stable ICU 2.0 */ + U_EUROPEAN_NUMBER_TERMINATOR = 4, + /** AN @stable ICU 2.0 */ + U_ARABIC_NUMBER = 5, + /** CS @stable ICU 2.0 */ + U_COMMON_NUMBER_SEPARATOR = 6, + /** B @stable ICU 2.0 */ + U_BLOCK_SEPARATOR = 7, + /** S @stable ICU 2.0 */ + U_SEGMENT_SEPARATOR = 8, + /** WS @stable ICU 2.0 */ + U_WHITE_SPACE_NEUTRAL = 9, + /** ON @stable ICU 2.0 */ + U_OTHER_NEUTRAL = 10, + /** LRE @stable ICU 2.0 */ + U_LEFT_TO_RIGHT_EMBEDDING = 11, + /** LRO @stable ICU 2.0 */ + U_LEFT_TO_RIGHT_OVERRIDE = 12, + /** AL @stable ICU 2.0 */ + U_RIGHT_TO_LEFT_ARABIC = 13, + /** RLE @stable ICU 2.0 */ + U_RIGHT_TO_LEFT_EMBEDDING = 14, + /** RLO @stable ICU 2.0 */ + U_RIGHT_TO_LEFT_OVERRIDE = 15, + /** PDF @stable ICU 2.0 */ + U_POP_DIRECTIONAL_FORMAT = 16, + /** NSM @stable ICU 2.0 */ + U_DIR_NON_SPACING_MARK = 17, + /** BN @stable ICU 2.0 */ + U_BOUNDARY_NEUTRAL = 18, + /** FSI @stable ICU 52 */ + U_FIRST_STRONG_ISOLATE = 19, + /** LRI @stable ICU 52 */ + U_LEFT_TO_RIGHT_ISOLATE = 20, + /** RLI @stable ICU 52 */ + U_RIGHT_TO_LEFT_ISOLATE = 21, + /** PDI @stable ICU 52 */ + U_POP_DIRECTIONAL_ISOLATE = 22, +} UCharDirection; + +/** + * Bidi Paired Bracket Type constants. + * + * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE + * @stable ICU 52 + */ +typedef enum UBidiPairedBracketType { + /* + * Note: UBidiPairedBracketType constants are parsed by preparseucd.py. + * It matches lines like + * U_BPT_ + */ + + /** Not a paired bracket. @stable ICU 52 */ + U_BPT_NONE, + /** Open paired bracket. @stable ICU 52 */ + U_BPT_OPEN, + /** Close paired bracket. @stable ICU 52 */ + U_BPT_CLOSE, +} UBidiPairedBracketType; + +/** + * Constants for Unicode blocks, see the Unicode Data file Blocks.txt + * @stable ICU 2.0 + */ +enum UBlockCode { + /* + * Note: UBlockCode constants are parsed by preparseucd.py. + * It matches lines like + * UBLOCK_ = , + */ + + /** New No_Block value in Unicode 4. @stable ICU 2.6 */ + UBLOCK_NO_BLOCK = 0, /*[none]*/ /* Special range indicating No_Block */ + + /** @stable ICU 2.0 */ + UBLOCK_BASIC_LATIN = 1, /*[0000]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LATIN_1_SUPPLEMENT=2, /*[0080]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LATIN_EXTENDED_A =3, /*[0100]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LATIN_EXTENDED_B =4, /*[0180]*/ + + /** @stable ICU 2.0 */ + UBLOCK_IPA_EXTENSIONS =5, /*[0250]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SPACING_MODIFIER_LETTERS =6, /*[02B0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_COMBINING_DIACRITICAL_MARKS =7, /*[0300]*/ + + /** + * Unicode 3.2 renames this block to "Greek and Coptic". + * @stable ICU 2.0 + */ + UBLOCK_GREEK =8, /*[0370]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CYRILLIC =9, /*[0400]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ARMENIAN =10, /*[0530]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HEBREW =11, /*[0590]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ARABIC =12, /*[0600]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SYRIAC =13, /*[0700]*/ + + /** @stable ICU 2.0 */ + UBLOCK_THAANA =14, /*[0780]*/ + + /** @stable ICU 2.0 */ + UBLOCK_DEVANAGARI =15, /*[0900]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BENGALI =16, /*[0980]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GURMUKHI =17, /*[0A00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GUJARATI =18, /*[0A80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ORIYA =19, /*[0B00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_TAMIL =20, /*[0B80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_TELUGU =21, /*[0C00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_KANNADA =22, /*[0C80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MALAYALAM =23, /*[0D00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SINHALA =24, /*[0D80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_THAI =25, /*[0E00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LAO =26, /*[0E80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_TIBETAN =27, /*[0F00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MYANMAR =28, /*[1000]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GEORGIAN =29, /*[10A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HANGUL_JAMO =30, /*[1100]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ETHIOPIC =31, /*[1200]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CHEROKEE =32, /*[13A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS =33, /*[1400]*/ + + /** @stable ICU 2.0 */ + UBLOCK_OGHAM =34, /*[1680]*/ + + /** @stable ICU 2.0 */ + UBLOCK_RUNIC =35, /*[16A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_KHMER =36, /*[1780]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MONGOLIAN =37, /*[1800]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LATIN_EXTENDED_ADDITIONAL =38, /*[1E00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GREEK_EXTENDED =39, /*[1F00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GENERAL_PUNCTUATION =40, /*[2000]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SUPERSCRIPTS_AND_SUBSCRIPTS =41, /*[2070]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CURRENCY_SYMBOLS =42, /*[20A0]*/ + + /** + * Unicode 3.2 renames this block to "Combining Diacritical Marks for Symbols". + * @stable ICU 2.0 + */ + UBLOCK_COMBINING_MARKS_FOR_SYMBOLS =43, /*[20D0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LETTERLIKE_SYMBOLS =44, /*[2100]*/ + + /** @stable ICU 2.0 */ + UBLOCK_NUMBER_FORMS =45, /*[2150]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ARROWS =46, /*[2190]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MATHEMATICAL_OPERATORS =47, /*[2200]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MISCELLANEOUS_TECHNICAL =48, /*[2300]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CONTROL_PICTURES =49, /*[2400]*/ + + /** @stable ICU 2.0 */ + UBLOCK_OPTICAL_CHARACTER_RECOGNITION =50, /*[2440]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ENCLOSED_ALPHANUMERICS =51, /*[2460]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BOX_DRAWING =52, /*[2500]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BLOCK_ELEMENTS =53, /*[2580]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GEOMETRIC_SHAPES =54, /*[25A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MISCELLANEOUS_SYMBOLS =55, /*[2600]*/ + + /** @stable ICU 2.0 */ + UBLOCK_DINGBATS =56, /*[2700]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BRAILLE_PATTERNS =57, /*[2800]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_RADICALS_SUPPLEMENT =58, /*[2E80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_KANGXI_RADICALS =59, /*[2F00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_IDEOGRAPHIC_DESCRIPTION_CHARACTERS =60, /*[2FF0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_SYMBOLS_AND_PUNCTUATION =61, /*[3000]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HIRAGANA =62, /*[3040]*/ + + /** @stable ICU 2.0 */ + UBLOCK_KATAKANA =63, /*[30A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BOPOMOFO =64, /*[3100]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HANGUL_COMPATIBILITY_JAMO =65, /*[3130]*/ + + /** @stable ICU 2.0 */ + UBLOCK_KANBUN =66, /*[3190]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BOPOMOFO_EXTENDED =67, /*[31A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ENCLOSED_CJK_LETTERS_AND_MONTHS =68, /*[3200]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_COMPATIBILITY =69, /*[3300]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A =70, /*[3400]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS =71, /*[4E00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_YI_SYLLABLES =72, /*[A000]*/ + + /** @stable ICU 2.0 */ + UBLOCK_YI_RADICALS =73, /*[A490]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HANGUL_SYLLABLES =74, /*[AC00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HIGH_SURROGATES =75, /*[D800]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HIGH_PRIVATE_USE_SURROGATES =76, /*[DB80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LOW_SURROGATES =77, /*[DC00]*/ + + /** + * Same as UBLOCK_PRIVATE_USE. + * Until Unicode 3.1.1, the corresponding block name was "Private Use", + * and multiple code point ranges had this block. + * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and + * adds separate blocks for the supplementary PUAs. + * + * @stable ICU 2.0 + */ + UBLOCK_PRIVATE_USE_AREA =78, /*[E000]*/ + /** + * Same as UBLOCK_PRIVATE_USE_AREA. + * Until Unicode 3.1.1, the corresponding block name was "Private Use", + * and multiple code point ranges had this block. + * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and + * adds separate blocks for the supplementary PUAs. + * + * @stable ICU 2.0 + */ + UBLOCK_PRIVATE_USE = UBLOCK_PRIVATE_USE_AREA, + + /** @stable ICU 2.0 */ + UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS =79, /*[F900]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ALPHABETIC_PRESENTATION_FORMS =80, /*[FB00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ARABIC_PRESENTATION_FORMS_A =81, /*[FB50]*/ + + /** @stable ICU 2.0 */ + UBLOCK_COMBINING_HALF_MARKS =82, /*[FE20]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_COMPATIBILITY_FORMS =83, /*[FE30]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SMALL_FORM_VARIANTS =84, /*[FE50]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ARABIC_PRESENTATION_FORMS_B =85, /*[FE70]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SPECIALS =86, /*[FFF0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HALFWIDTH_AND_FULLWIDTH_FORMS =87, /*[FF00]*/ + + /* New blocks in Unicode 3.1 */ + + /** @stable ICU 2.0 */ + UBLOCK_OLD_ITALIC = 88, /*[10300]*/ + /** @stable ICU 2.0 */ + UBLOCK_GOTHIC = 89, /*[10330]*/ + /** @stable ICU 2.0 */ + UBLOCK_DESERET = 90, /*[10400]*/ + /** @stable ICU 2.0 */ + UBLOCK_BYZANTINE_MUSICAL_SYMBOLS = 91, /*[1D000]*/ + /** @stable ICU 2.0 */ + UBLOCK_MUSICAL_SYMBOLS = 92, /*[1D100]*/ + /** @stable ICU 2.0 */ + UBLOCK_MATHEMATICAL_ALPHANUMERIC_SYMBOLS = 93, /*[1D400]*/ + /** @stable ICU 2.0 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B = 94, /*[20000]*/ + /** @stable ICU 2.0 */ + UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = 95, /*[2F800]*/ + /** @stable ICU 2.0 */ + UBLOCK_TAGS = 96, /*[E0000]*/ + + /* New blocks in Unicode 3.2 */ + + /** @stable ICU 3.0 */ + UBLOCK_CYRILLIC_SUPPLEMENT = 97, /*[0500]*/ + /** + * Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement". + * @stable ICU 2.2 + */ + UBLOCK_CYRILLIC_SUPPLEMENTARY = UBLOCK_CYRILLIC_SUPPLEMENT, + /** @stable ICU 2.2 */ + UBLOCK_TAGALOG = 98, /*[1700]*/ + /** @stable ICU 2.2 */ + UBLOCK_HANUNOO = 99, /*[1720]*/ + /** @stable ICU 2.2 */ + UBLOCK_BUHID = 100, /*[1740]*/ + /** @stable ICU 2.2 */ + UBLOCK_TAGBANWA = 101, /*[1760]*/ + /** @stable ICU 2.2 */ + UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = 102, /*[27C0]*/ + /** @stable ICU 2.2 */ + UBLOCK_SUPPLEMENTAL_ARROWS_A = 103, /*[27F0]*/ + /** @stable ICU 2.2 */ + UBLOCK_SUPPLEMENTAL_ARROWS_B = 104, /*[2900]*/ + /** @stable ICU 2.2 */ + UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = 105, /*[2980]*/ + /** @stable ICU 2.2 */ + UBLOCK_SUPPLEMENTAL_MATHEMATICAL_OPERATORS = 106, /*[2A00]*/ + /** @stable ICU 2.2 */ + UBLOCK_KATAKANA_PHONETIC_EXTENSIONS = 107, /*[31F0]*/ + /** @stable ICU 2.2 */ + UBLOCK_VARIATION_SELECTORS = 108, /*[FE00]*/ + /** @stable ICU 2.2 */ + UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_A = 109, /*[F0000]*/ + /** @stable ICU 2.2 */ + UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_B = 110, /*[100000]*/ + + /* New blocks in Unicode 4 */ + + /** @stable ICU 2.6 */ + UBLOCK_LIMBU = 111, /*[1900]*/ + /** @stable ICU 2.6 */ + UBLOCK_TAI_LE = 112, /*[1950]*/ + /** @stable ICU 2.6 */ + UBLOCK_KHMER_SYMBOLS = 113, /*[19E0]*/ + /** @stable ICU 2.6 */ + UBLOCK_PHONETIC_EXTENSIONS = 114, /*[1D00]*/ + /** @stable ICU 2.6 */ + UBLOCK_MISCELLANEOUS_SYMBOLS_AND_ARROWS = 115, /*[2B00]*/ + /** @stable ICU 2.6 */ + UBLOCK_YIJING_HEXAGRAM_SYMBOLS = 116, /*[4DC0]*/ + /** @stable ICU 2.6 */ + UBLOCK_LINEAR_B_SYLLABARY = 117, /*[10000]*/ + /** @stable ICU 2.6 */ + UBLOCK_LINEAR_B_IDEOGRAMS = 118, /*[10080]*/ + /** @stable ICU 2.6 */ + UBLOCK_AEGEAN_NUMBERS = 119, /*[10100]*/ + /** @stable ICU 2.6 */ + UBLOCK_UGARITIC = 120, /*[10380]*/ + /** @stable ICU 2.6 */ + UBLOCK_SHAVIAN = 121, /*[10450]*/ + /** @stable ICU 2.6 */ + UBLOCK_OSMANYA = 122, /*[10480]*/ + /** @stable ICU 2.6 */ + UBLOCK_CYPRIOT_SYLLABARY = 123, /*[10800]*/ + /** @stable ICU 2.6 */ + UBLOCK_TAI_XUAN_JING_SYMBOLS = 124, /*[1D300]*/ + /** @stable ICU 2.6 */ + UBLOCK_VARIATION_SELECTORS_SUPPLEMENT = 125, /*[E0100]*/ + + /* New blocks in Unicode 4.1 */ + + /** @stable ICU 3.4 */ + UBLOCK_ANCIENT_GREEK_MUSICAL_NOTATION = 126, /*[1D200]*/ + /** @stable ICU 3.4 */ + UBLOCK_ANCIENT_GREEK_NUMBERS = 127, /*[10140]*/ + /** @stable ICU 3.4 */ + UBLOCK_ARABIC_SUPPLEMENT = 128, /*[0750]*/ + /** @stable ICU 3.4 */ + UBLOCK_BUGINESE = 129, /*[1A00]*/ + /** @stable ICU 3.4 */ + UBLOCK_CJK_STROKES = 130, /*[31C0]*/ + /** @stable ICU 3.4 */ + UBLOCK_COMBINING_DIACRITICAL_MARKS_SUPPLEMENT = 131, /*[1DC0]*/ + /** @stable ICU 3.4 */ + UBLOCK_COPTIC = 132, /*[2C80]*/ + /** @stable ICU 3.4 */ + UBLOCK_ETHIOPIC_EXTENDED = 133, /*[2D80]*/ + /** @stable ICU 3.4 */ + UBLOCK_ETHIOPIC_SUPPLEMENT = 134, /*[1380]*/ + /** @stable ICU 3.4 */ + UBLOCK_GEORGIAN_SUPPLEMENT = 135, /*[2D00]*/ + /** @stable ICU 3.4 */ + UBLOCK_GLAGOLITIC = 136, /*[2C00]*/ + /** @stable ICU 3.4 */ + UBLOCK_KHAROSHTHI = 137, /*[10A00]*/ + /** @stable ICU 3.4 */ + UBLOCK_MODIFIER_TONE_LETTERS = 138, /*[A700]*/ + /** @stable ICU 3.4 */ + UBLOCK_NEW_TAI_LUE = 139, /*[1980]*/ + /** @stable ICU 3.4 */ + UBLOCK_OLD_PERSIAN = 140, /*[103A0]*/ + /** @stable ICU 3.4 */ + UBLOCK_PHONETIC_EXTENSIONS_SUPPLEMENT = 141, /*[1D80]*/ + /** @stable ICU 3.4 */ + UBLOCK_SUPPLEMENTAL_PUNCTUATION = 142, /*[2E00]*/ + /** @stable ICU 3.4 */ + UBLOCK_SYLOTI_NAGRI = 143, /*[A800]*/ + /** @stable ICU 3.4 */ + UBLOCK_TIFINAGH = 144, /*[2D30]*/ + /** @stable ICU 3.4 */ + UBLOCK_VERTICAL_FORMS = 145, /*[FE10]*/ + + /* New blocks in Unicode 5.0 */ + + /** @stable ICU 3.6 */ + UBLOCK_NKO = 146, /*[07C0]*/ + /** @stable ICU 3.6 */ + UBLOCK_BALINESE = 147, /*[1B00]*/ + /** @stable ICU 3.6 */ + UBLOCK_LATIN_EXTENDED_C = 148, /*[2C60]*/ + /** @stable ICU 3.6 */ + UBLOCK_LATIN_EXTENDED_D = 149, /*[A720]*/ + /** @stable ICU 3.6 */ + UBLOCK_PHAGS_PA = 150, /*[A840]*/ + /** @stable ICU 3.6 */ + UBLOCK_PHOENICIAN = 151, /*[10900]*/ + /** @stable ICU 3.6 */ + UBLOCK_CUNEIFORM = 152, /*[12000]*/ + /** @stable ICU 3.6 */ + UBLOCK_CUNEIFORM_NUMBERS_AND_PUNCTUATION = 153, /*[12400]*/ + /** @stable ICU 3.6 */ + UBLOCK_COUNTING_ROD_NUMERALS = 154, /*[1D360]*/ + + /* New blocks in Unicode 5.1 */ + + /** @stable ICU 4.0 */ + UBLOCK_SUNDANESE = 155, /*[1B80]*/ + /** @stable ICU 4.0 */ + UBLOCK_LEPCHA = 156, /*[1C00]*/ + /** @stable ICU 4.0 */ + UBLOCK_OL_CHIKI = 157, /*[1C50]*/ + /** @stable ICU 4.0 */ + UBLOCK_CYRILLIC_EXTENDED_A = 158, /*[2DE0]*/ + /** @stable ICU 4.0 */ + UBLOCK_VAI = 159, /*[A500]*/ + /** @stable ICU 4.0 */ + UBLOCK_CYRILLIC_EXTENDED_B = 160, /*[A640]*/ + /** @stable ICU 4.0 */ + UBLOCK_SAURASHTRA = 161, /*[A880]*/ + /** @stable ICU 4.0 */ + UBLOCK_KAYAH_LI = 162, /*[A900]*/ + /** @stable ICU 4.0 */ + UBLOCK_REJANG = 163, /*[A930]*/ + /** @stable ICU 4.0 */ + UBLOCK_CHAM = 164, /*[AA00]*/ + /** @stable ICU 4.0 */ + UBLOCK_ANCIENT_SYMBOLS = 165, /*[10190]*/ + /** @stable ICU 4.0 */ + UBLOCK_PHAISTOS_DISC = 166, /*[101D0]*/ + /** @stable ICU 4.0 */ + UBLOCK_LYCIAN = 167, /*[10280]*/ + /** @stable ICU 4.0 */ + UBLOCK_CARIAN = 168, /*[102A0]*/ + /** @stable ICU 4.0 */ + UBLOCK_LYDIAN = 169, /*[10920]*/ + /** @stable ICU 4.0 */ + UBLOCK_MAHJONG_TILES = 170, /*[1F000]*/ + /** @stable ICU 4.0 */ + UBLOCK_DOMINO_TILES = 171, /*[1F030]*/ + + /* New blocks in Unicode 5.2 */ + + /** @stable ICU 4.4 */ + UBLOCK_SAMARITAN = 172, /*[0800]*/ + /** @stable ICU 4.4 */ + UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = 173, /*[18B0]*/ + /** @stable ICU 4.4 */ + UBLOCK_TAI_THAM = 174, /*[1A20]*/ + /** @stable ICU 4.4 */ + UBLOCK_VEDIC_EXTENSIONS = 175, /*[1CD0]*/ + /** @stable ICU 4.4 */ + UBLOCK_LISU = 176, /*[A4D0]*/ + /** @stable ICU 4.4 */ + UBLOCK_BAMUM = 177, /*[A6A0]*/ + /** @stable ICU 4.4 */ + UBLOCK_COMMON_INDIC_NUMBER_FORMS = 178, /*[A830]*/ + /** @stable ICU 4.4 */ + UBLOCK_DEVANAGARI_EXTENDED = 179, /*[A8E0]*/ + /** @stable ICU 4.4 */ + UBLOCK_HANGUL_JAMO_EXTENDED_A = 180, /*[A960]*/ + /** @stable ICU 4.4 */ + UBLOCK_JAVANESE = 181, /*[A980]*/ + /** @stable ICU 4.4 */ + UBLOCK_MYANMAR_EXTENDED_A = 182, /*[AA60]*/ + /** @stable ICU 4.4 */ + UBLOCK_TAI_VIET = 183, /*[AA80]*/ + /** @stable ICU 4.4 */ + UBLOCK_MEETEI_MAYEK = 184, /*[ABC0]*/ + /** @stable ICU 4.4 */ + UBLOCK_HANGUL_JAMO_EXTENDED_B = 185, /*[D7B0]*/ + /** @stable ICU 4.4 */ + UBLOCK_IMPERIAL_ARAMAIC = 186, /*[10840]*/ + /** @stable ICU 4.4 */ + UBLOCK_OLD_SOUTH_ARABIAN = 187, /*[10A60]*/ + /** @stable ICU 4.4 */ + UBLOCK_AVESTAN = 188, /*[10B00]*/ + /** @stable ICU 4.4 */ + UBLOCK_INSCRIPTIONAL_PARTHIAN = 189, /*[10B40]*/ + /** @stable ICU 4.4 */ + UBLOCK_INSCRIPTIONAL_PAHLAVI = 190, /*[10B60]*/ + /** @stable ICU 4.4 */ + UBLOCK_OLD_TURKIC = 191, /*[10C00]*/ + /** @stable ICU 4.4 */ + UBLOCK_RUMI_NUMERAL_SYMBOLS = 192, /*[10E60]*/ + /** @stable ICU 4.4 */ + UBLOCK_KAITHI = 193, /*[11080]*/ + /** @stable ICU 4.4 */ + UBLOCK_EGYPTIAN_HIEROGLYPHS = 194, /*[13000]*/ + /** @stable ICU 4.4 */ + UBLOCK_ENCLOSED_ALPHANUMERIC_SUPPLEMENT = 195, /*[1F100]*/ + /** @stable ICU 4.4 */ + UBLOCK_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = 196, /*[1F200]*/ + /** @stable ICU 4.4 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = 197, /*[2A700]*/ + + /* New blocks in Unicode 6.0 */ + + /** @stable ICU 4.6 */ + UBLOCK_MANDAIC = 198, /*[0840]*/ + /** @stable ICU 4.6 */ + UBLOCK_BATAK = 199, /*[1BC0]*/ + /** @stable ICU 4.6 */ + UBLOCK_ETHIOPIC_EXTENDED_A = 200, /*[AB00]*/ + /** @stable ICU 4.6 */ + UBLOCK_BRAHMI = 201, /*[11000]*/ + /** @stable ICU 4.6 */ + UBLOCK_BAMUM_SUPPLEMENT = 202, /*[16800]*/ + /** @stable ICU 4.6 */ + UBLOCK_KANA_SUPPLEMENT = 203, /*[1B000]*/ + /** @stable ICU 4.6 */ + UBLOCK_PLAYING_CARDS = 204, /*[1F0A0]*/ + /** @stable ICU 4.6 */ + UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS = 205, /*[1F300]*/ + /** @stable ICU 4.6 */ + UBLOCK_EMOTICONS = 206, /*[1F600]*/ + /** @stable ICU 4.6 */ + UBLOCK_TRANSPORT_AND_MAP_SYMBOLS = 207, /*[1F680]*/ + /** @stable ICU 4.6 */ + UBLOCK_ALCHEMICAL_SYMBOLS = 208, /*[1F700]*/ + /** @stable ICU 4.6 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D = 209, /*[2B740]*/ + + /* New blocks in Unicode 6.1 */ + + /** @stable ICU 49 */ + UBLOCK_ARABIC_EXTENDED_A = 210, /*[08A0]*/ + /** @stable ICU 49 */ + UBLOCK_ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS = 211, /*[1EE00]*/ + /** @stable ICU 49 */ + UBLOCK_CHAKMA = 212, /*[11100]*/ + /** @stable ICU 49 */ + UBLOCK_MEETEI_MAYEK_EXTENSIONS = 213, /*[AAE0]*/ + /** @stable ICU 49 */ + UBLOCK_MEROITIC_CURSIVE = 214, /*[109A0]*/ + /** @stable ICU 49 */ + UBLOCK_MEROITIC_HIEROGLYPHS = 215, /*[10980]*/ + /** @stable ICU 49 */ + UBLOCK_MIAO = 216, /*[16F00]*/ + /** @stable ICU 49 */ + UBLOCK_SHARADA = 217, /*[11180]*/ + /** @stable ICU 49 */ + UBLOCK_SORA_SOMPENG = 218, /*[110D0]*/ + /** @stable ICU 49 */ + UBLOCK_SUNDANESE_SUPPLEMENT = 219, /*[1CC0]*/ + /** @stable ICU 49 */ + UBLOCK_TAKRI = 220, /*[11680]*/ + + /* New blocks in Unicode 7.0 */ + + /** @stable ICU 54 */ + UBLOCK_BASSA_VAH = 221, /*[16AD0]*/ + /** @stable ICU 54 */ + UBLOCK_CAUCASIAN_ALBANIAN = 222, /*[10530]*/ + /** @stable ICU 54 */ + UBLOCK_COPTIC_EPACT_NUMBERS = 223, /*[102E0]*/ + /** @stable ICU 54 */ + UBLOCK_COMBINING_DIACRITICAL_MARKS_EXTENDED = 224, /*[1AB0]*/ + /** @stable ICU 54 */ + UBLOCK_DUPLOYAN = 225, /*[1BC00]*/ + /** @stable ICU 54 */ + UBLOCK_ELBASAN = 226, /*[10500]*/ + /** @stable ICU 54 */ + UBLOCK_GEOMETRIC_SHAPES_EXTENDED = 227, /*[1F780]*/ + /** @stable ICU 54 */ + UBLOCK_GRANTHA = 228, /*[11300]*/ + /** @stable ICU 54 */ + UBLOCK_KHOJKI = 229, /*[11200]*/ + /** @stable ICU 54 */ + UBLOCK_KHUDAWADI = 230, /*[112B0]*/ + /** @stable ICU 54 */ + UBLOCK_LATIN_EXTENDED_E = 231, /*[AB30]*/ + /** @stable ICU 54 */ + UBLOCK_LINEAR_A = 232, /*[10600]*/ + /** @stable ICU 54 */ + UBLOCK_MAHAJANI = 233, /*[11150]*/ + /** @stable ICU 54 */ + UBLOCK_MANICHAEAN = 234, /*[10AC0]*/ + /** @stable ICU 54 */ + UBLOCK_MENDE_KIKAKUI = 235, /*[1E800]*/ + /** @stable ICU 54 */ + UBLOCK_MODI = 236, /*[11600]*/ + /** @stable ICU 54 */ + UBLOCK_MRO = 237, /*[16A40]*/ + /** @stable ICU 54 */ + UBLOCK_MYANMAR_EXTENDED_B = 238, /*[A9E0]*/ + /** @stable ICU 54 */ + UBLOCK_NABATAEAN = 239, /*[10880]*/ + /** @stable ICU 54 */ + UBLOCK_OLD_NORTH_ARABIAN = 240, /*[10A80]*/ + /** @stable ICU 54 */ + UBLOCK_OLD_PERMIC = 241, /*[10350]*/ + /** @stable ICU 54 */ + UBLOCK_ORNAMENTAL_DINGBATS = 242, /*[1F650]*/ + /** @stable ICU 54 */ + UBLOCK_PAHAWH_HMONG = 243, /*[16B00]*/ + /** @stable ICU 54 */ + UBLOCK_PALMYRENE = 244, /*[10860]*/ + /** @stable ICU 54 */ + UBLOCK_PAU_CIN_HAU = 245, /*[11AC0]*/ + /** @stable ICU 54 */ + UBLOCK_PSALTER_PAHLAVI = 246, /*[10B80]*/ + /** @stable ICU 54 */ + UBLOCK_SHORTHAND_FORMAT_CONTROLS = 247, /*[1BCA0]*/ + /** @stable ICU 54 */ + UBLOCK_SIDDHAM = 248, /*[11580]*/ + /** @stable ICU 54 */ + UBLOCK_SINHALA_ARCHAIC_NUMBERS = 249, /*[111E0]*/ + /** @stable ICU 54 */ + UBLOCK_SUPPLEMENTAL_ARROWS_C = 250, /*[1F800]*/ + /** @stable ICU 54 */ + UBLOCK_TIRHUTA = 251, /*[11480]*/ + /** @stable ICU 54 */ + UBLOCK_WARANG_CITI = 252, /*[118A0]*/ + + /* New blocks in Unicode 8.0 */ + + /** @stable ICU 56 */ + UBLOCK_AHOM = 253, /*[11700]*/ + /** @stable ICU 56 */ + UBLOCK_ANATOLIAN_HIEROGLYPHS = 254, /*[14400]*/ + /** @stable ICU 56 */ + UBLOCK_CHEROKEE_SUPPLEMENT = 255, /*[AB70]*/ + /** @stable ICU 56 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E = 256, /*[2B820]*/ + /** @stable ICU 56 */ + UBLOCK_EARLY_DYNASTIC_CUNEIFORM = 257, /*[12480]*/ + /** @stable ICU 56 */ + UBLOCK_HATRAN = 258, /*[108E0]*/ + /** @stable ICU 56 */ + UBLOCK_MULTANI = 259, /*[11280]*/ + /** @stable ICU 56 */ + UBLOCK_OLD_HUNGARIAN = 260, /*[10C80]*/ + /** @stable ICU 56 */ + UBLOCK_SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS = 261, /*[1F900]*/ + /** @stable ICU 56 */ + UBLOCK_SUTTON_SIGNWRITING = 262, /*[1D800]*/ + + /* New blocks in Unicode 9.0 */ + + /** @stable ICU 58 */ + UBLOCK_ADLAM = 263, /*[1E900]*/ + /** @stable ICU 58 */ + UBLOCK_BHAIKSUKI = 264, /*[11C00]*/ + /** @stable ICU 58 */ + UBLOCK_CYRILLIC_EXTENDED_C = 265, /*[1C80]*/ + /** @stable ICU 58 */ + UBLOCK_GLAGOLITIC_SUPPLEMENT = 266, /*[1E000]*/ + /** @stable ICU 58 */ + UBLOCK_IDEOGRAPHIC_SYMBOLS_AND_PUNCTUATION = 267, /*[16FE0]*/ + /** @stable ICU 58 */ + UBLOCK_MARCHEN = 268, /*[11C70]*/ + /** @stable ICU 58 */ + UBLOCK_MONGOLIAN_SUPPLEMENT = 269, /*[11660]*/ + /** @stable ICU 58 */ + UBLOCK_NEWA = 270, /*[11400]*/ + /** @stable ICU 58 */ + UBLOCK_OSAGE = 271, /*[104B0]*/ + /** @stable ICU 58 */ + UBLOCK_TANGUT = 272, /*[17000]*/ + /** @stable ICU 58 */ + UBLOCK_TANGUT_COMPONENTS = 273, /*[18800]*/ + + // New blocks in Unicode 10.0 + + /** @stable ICU 60 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F = 274, /*[2CEB0]*/ + /** @stable ICU 60 */ + UBLOCK_KANA_EXTENDED_A = 275, /*[1B100]*/ + /** @stable ICU 60 */ + UBLOCK_MASARAM_GONDI = 276, /*[11D00]*/ + /** @stable ICU 60 */ + UBLOCK_NUSHU = 277, /*[1B170]*/ + /** @stable ICU 60 */ + UBLOCK_SOYOMBO = 278, /*[11A50]*/ + /** @stable ICU 60 */ + UBLOCK_SYRIAC_SUPPLEMENT = 279, /*[0860]*/ + /** @stable ICU 60 */ + UBLOCK_ZANABAZAR_SQUARE = 280, /*[11A00]*/ + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) + // New blocks in Unicode 11.0 + + /** @stable ICU 62 */ + UBLOCK_CHESS_SYMBOLS = 281, /*[1FA00]*/ + /** @stable ICU 62 */ + UBLOCK_DOGRA = 282, /*[11800]*/ + /** @stable ICU 62 */ + UBLOCK_GEORGIAN_EXTENDED = 283, /*[1C90]*/ + /** @stable ICU 62 */ + UBLOCK_GUNJALA_GONDI = 284, /*[11D60]*/ + /** @stable ICU 62 */ + UBLOCK_HANIFI_ROHINGYA = 285, /*[10D00]*/ + /** @stable ICU 62 */ + UBLOCK_INDIC_SIYAQ_NUMBERS = 286, /*[1EC70]*/ + /** @stable ICU 62 */ + UBLOCK_MAKASAR = 287, /*[11EE0]*/ + /** @stable ICU 62 */ + UBLOCK_MAYAN_NUMERALS = 288, /*[1D2E0]*/ + /** @stable ICU 62 */ + UBLOCK_MEDEFAIDRIN = 289, /*[16E40]*/ + /** @stable ICU 62 */ + UBLOCK_OLD_SOGDIAN = 290, /*[10F00]*/ + /** @stable ICU 62 */ + UBLOCK_SOGDIAN = 291, /*[10F30]*/ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) + // New blocks in Unicode 12.0 + + /** @stable ICU 64 */ + UBLOCK_EGYPTIAN_HIEROGLYPH_FORMAT_CONTROLS = 292, /*[13430]*/ + /** @stable ICU 64 */ + UBLOCK_ELYMAIC = 293, /*[10FE0]*/ + /** @stable ICU 64 */ + UBLOCK_NANDINAGARI = 294, /*[119A0]*/ + /** @stable ICU 64 */ + UBLOCK_NYIAKENG_PUACHUE_HMONG = 295, /*[1E100]*/ + /** @stable ICU 64 */ + UBLOCK_OTTOMAN_SIYAQ_NUMBERS = 296, /*[1ED00]*/ + /** @stable ICU 64 */ + UBLOCK_SMALL_KANA_EXTENSION = 297, /*[1B130]*/ + /** @stable ICU 64 */ + UBLOCK_SYMBOLS_AND_PICTOGRAPHS_EXTENDED_A = 298, /*[1FA70]*/ + /** @stable ICU 64 */ + UBLOCK_TAMIL_SUPPLEMENT = 299, /*[11FC0]*/ + /** @stable ICU 64 */ + UBLOCK_WANCHO = 300, /*[1E2C0]*/ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_VB) + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + // New blocks in Unicode 13.0 + + /** @stable ICU 66 */ + UBLOCK_CHORASMIAN = 301, /*[10FB0]*/ + /** @stable ICU 66 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G = 302, /*[30000]*/ + /** @stable ICU 66 */ + UBLOCK_DIVES_AKURU = 303, /*[11900]*/ + /** @stable ICU 66 */ + UBLOCK_KHITAN_SMALL_SCRIPT = 304, /*[18B00]*/ + /** @stable ICU 66 */ + UBLOCK_LISU_SUPPLEMENT = 305, /*[11FB0]*/ + /** @stable ICU 66 */ + UBLOCK_SYMBOLS_FOR_LEGACY_COMPUTING = 306, /*[1FB00]*/ + /** @stable ICU 66 */ + UBLOCK_TANGUT_SUPPLEMENT = 307, /*[18D00]*/ + /** @stable ICU 66 */ + UBLOCK_YEZIDI = 308, /*[10E80]*/ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + /** @stable ICU 2.0 */ + UBLOCK_INVALID_CODE=-1 +}; + +/** @stable ICU 2.0 */ +typedef enum UBlockCode UBlockCode; + +/** + * East Asian Width constants. + * + * @see UCHAR_EAST_ASIAN_WIDTH + * @see u_getIntPropertyValue + * @stable ICU 2.2 + */ +typedef enum UEastAsianWidth { + /* + * Note: UEastAsianWidth constants are parsed by preparseucd.py. + * It matches lines like + * U_EA_ + */ + + U_EA_NEUTRAL, /*[N]*/ + U_EA_AMBIGUOUS, /*[A]*/ + U_EA_HALFWIDTH, /*[H]*/ + U_EA_FULLWIDTH, /*[F]*/ + U_EA_NARROW, /*[Na]*/ + U_EA_WIDE, /*[W]*/ +} UEastAsianWidth; + +/** + * Selector constants for u_charName(). + * u_charName() returns the "modern" name of a + * Unicode character; or the name that was defined in + * Unicode version 1.0, before the Unicode standard merged + * with ISO-10646; or an "extended" name that gives each + * Unicode code point a unique name. + * + * @see u_charName + * @stable ICU 2.0 + */ +typedef enum UCharNameChoice { + /** Unicode character name (Name property). @stable ICU 2.0 */ + U_UNICODE_CHAR_NAME, + /** Standard or synthetic character name. @stable ICU 2.0 */ + U_EXTENDED_CHAR_NAME = U_UNICODE_CHAR_NAME+2, + /** Corrected name from NameAliases.txt. @stable ICU 4.4 */ + U_CHAR_NAME_ALIAS, +} UCharNameChoice; + +/** + * Selector constants for u_getPropertyName() and + * u_getPropertyValueName(). These selectors are used to choose which + * name is returned for a given property or value. All properties and + * values have a long name. Most have a short name, but some do not. + * Unicode allows for additional names, beyond the long and short + * name, which would be indicated by U_LONG_PROPERTY_NAME + i, where + * i=1, 2,... + * + * @see u_getPropertyName() + * @see u_getPropertyValueName() + * @stable ICU 2.4 + */ +typedef enum UPropertyNameChoice { + U_SHORT_PROPERTY_NAME, + U_LONG_PROPERTY_NAME, +} UPropertyNameChoice; + +/** + * Decomposition Type constants. + * + * @see UCHAR_DECOMPOSITION_TYPE + * @stable ICU 2.2 + */ +typedef enum UDecompositionType { + /* + * Note: UDecompositionType constants are parsed by preparseucd.py. + * It matches lines like + * U_DT_ + */ + + U_DT_NONE, /*[none]*/ + U_DT_CANONICAL, /*[can]*/ + U_DT_COMPAT, /*[com]*/ + U_DT_CIRCLE, /*[enc]*/ + U_DT_FINAL, /*[fin]*/ + U_DT_FONT, /*[font]*/ + U_DT_FRACTION, /*[fra]*/ + U_DT_INITIAL, /*[init]*/ + U_DT_ISOLATED, /*[iso]*/ + U_DT_MEDIAL, /*[med]*/ + U_DT_NARROW, /*[nar]*/ + U_DT_NOBREAK, /*[nb]*/ + U_DT_SMALL, /*[sml]*/ + U_DT_SQUARE, /*[sqr]*/ + U_DT_SUB, /*[sub]*/ + U_DT_SUPER, /*[sup]*/ + U_DT_VERTICAL, /*[vert]*/ + U_DT_WIDE, /*[wide]*/ +} UDecompositionType; + +/** + * Joining Type constants. + * + * @see UCHAR_JOINING_TYPE + * @stable ICU 2.2 + */ +typedef enum UJoiningType { + /* + * Note: UJoiningType constants are parsed by preparseucd.py. + * It matches lines like + * U_JT_ + */ + + U_JT_NON_JOINING, /*[U]*/ + U_JT_JOIN_CAUSING, /*[C]*/ + U_JT_DUAL_JOINING, /*[D]*/ + U_JT_LEFT_JOINING, /*[L]*/ + U_JT_RIGHT_JOINING, /*[R]*/ + U_JT_TRANSPARENT, /*[T]*/ +} UJoiningType; + +/** + * Joining Group constants. + * + * @see UCHAR_JOINING_GROUP + * @stable ICU 2.2 + */ +typedef enum UJoiningGroup { + /* + * Note: UJoiningGroup constants are parsed by preparseucd.py. + * It matches lines like + * U_JG_ + */ + + U_JG_NO_JOINING_GROUP, + U_JG_AIN, + U_JG_ALAPH, + U_JG_ALEF, + U_JG_BEH, + U_JG_BETH, + U_JG_DAL, + U_JG_DALATH_RISH, + U_JG_E, + U_JG_FEH, + U_JG_FINAL_SEMKATH, + U_JG_GAF, + U_JG_GAMAL, + U_JG_HAH, + U_JG_TEH_MARBUTA_GOAL, /**< @stable ICU 4.6 */ + U_JG_HAMZA_ON_HEH_GOAL=U_JG_TEH_MARBUTA_GOAL, + U_JG_HE, + U_JG_HEH, + U_JG_HEH_GOAL, + U_JG_HETH, + U_JG_KAF, + U_JG_KAPH, + U_JG_KNOTTED_HEH, + U_JG_LAM, + U_JG_LAMADH, + U_JG_MEEM, + U_JG_MIM, + U_JG_NOON, + U_JG_NUN, + U_JG_PE, + U_JG_QAF, + U_JG_QAPH, + U_JG_REH, + U_JG_REVERSED_PE, + U_JG_SAD, + U_JG_SADHE, + U_JG_SEEN, + U_JG_SEMKATH, + U_JG_SHIN, + U_JG_SWASH_KAF, + U_JG_SYRIAC_WAW, + U_JG_TAH, + U_JG_TAW, + U_JG_TEH_MARBUTA, + U_JG_TETH, + U_JG_WAW, + U_JG_YEH, + U_JG_YEH_BARREE, + U_JG_YEH_WITH_TAIL, + U_JG_YUDH, + U_JG_YUDH_HE, + U_JG_ZAIN, + U_JG_FE, /**< @stable ICU 2.6 */ + U_JG_KHAPH, /**< @stable ICU 2.6 */ + U_JG_ZHAIN, /**< @stable ICU 2.6 */ + U_JG_BURUSHASKI_YEH_BARREE, /**< @stable ICU 4.0 */ + U_JG_FARSI_YEH, /**< @stable ICU 4.4 */ + U_JG_NYA, /**< @stable ICU 4.4 */ + U_JG_ROHINGYA_YEH, /**< @stable ICU 49 */ + U_JG_MANICHAEAN_ALEPH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_AYIN, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_BETH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_DALETH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_DHAMEDH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_FIVE, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_GIMEL, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_HETH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_HUNDRED, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_KAPH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_LAMEDH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_MEM, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_NUN, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_ONE, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_PE, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_QOPH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_RESH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_SADHE, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_SAMEKH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_TAW, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_TEN, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_TETH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_THAMEDH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_TWENTY, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_WAW, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_YODH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_ZAYIN, /**< @stable ICU 54 */ + U_JG_STRAIGHT_WAW, /**< @stable ICU 54 */ + U_JG_AFRICAN_FEH, /**< @stable ICU 58 */ + U_JG_AFRICAN_NOON, /**< @stable ICU 58 */ + U_JG_AFRICAN_QAF, /**< @stable ICU 58 */ + + U_JG_MALAYALAM_BHA, /**< @stable ICU 60 */ + U_JG_MALAYALAM_JA, /**< @stable ICU 60 */ + U_JG_MALAYALAM_LLA, /**< @stable ICU 60 */ + U_JG_MALAYALAM_LLLA, /**< @stable ICU 60 */ + U_JG_MALAYALAM_NGA, /**< @stable ICU 60 */ + U_JG_MALAYALAM_NNA, /**< @stable ICU 60 */ + U_JG_MALAYALAM_NNNA, /**< @stable ICU 60 */ + U_JG_MALAYALAM_NYA, /**< @stable ICU 60 */ + U_JG_MALAYALAM_RA, /**< @stable ICU 60 */ + U_JG_MALAYALAM_SSA, /**< @stable ICU 60 */ + U_JG_MALAYALAM_TTA, /**< @stable ICU 60 */ + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) + U_JG_HANIFI_ROHINGYA_KINNA_YA, /**< @stable ICU 62 */ + U_JG_HANIFI_ROHINGYA_PA, /**< @stable ICU 62 */ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + U_JG_THIN_YEH, /**< @stable ICU 70 */ + U_JG_VERTICAL_TAIL, /**< @stable ICU 70 */ +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + +} UJoiningGroup; + +/** + * Grapheme Cluster Break constants. + * + * @see UCHAR_GRAPHEME_CLUSTER_BREAK + * @stable ICU 3.4 + */ +typedef enum UGraphemeClusterBreak { + /* + * Note: UGraphemeClusterBreak constants are parsed by preparseucd.py. + * It matches lines like + * U_GCB_ + */ + + U_GCB_OTHER = 0, /*[XX]*/ + U_GCB_CONTROL = 1, /*[CN]*/ + U_GCB_CR = 2, /*[CR]*/ + U_GCB_EXTEND = 3, /*[EX]*/ + U_GCB_L = 4, /*[L]*/ + U_GCB_LF = 5, /*[LF]*/ + U_GCB_LV = 6, /*[LV]*/ + U_GCB_LVT = 7, /*[LVT]*/ + U_GCB_T = 8, /*[T]*/ + U_GCB_V = 9, /*[V]*/ + /** @stable ICU 4.0 */ + U_GCB_SPACING_MARK = 10, /*[SM]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */ + /** @stable ICU 4.0 */ + U_GCB_PREPEND = 11, /*[PP]*/ + /** @stable ICU 50 */ + U_GCB_REGIONAL_INDICATOR = 12, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */ + /** @stable ICU 58 */ + U_GCB_E_BASE = 13, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */ + /** @stable ICU 58 */ + U_GCB_E_BASE_GAZ = 14, /*[EBG]*/ + /** @stable ICU 58 */ + U_GCB_E_MODIFIER = 15, /*[EM]*/ + /** @stable ICU 58 */ + U_GCB_GLUE_AFTER_ZWJ = 16, /*[GAZ]*/ + /** @stable ICU 58 */ + U_GCB_ZWJ = 17, /*[ZWJ]*/ + +} UGraphemeClusterBreak; + +/** + * Word Break constants. + * (UWordBreak is a pre-existing enum type in ubrk.h for word break status tags.) + * + * @see UCHAR_WORD_BREAK + * @stable ICU 3.4 + */ +typedef enum UWordBreakValues { + /* + * Note: UWordBreakValues constants are parsed by preparseucd.py. + * It matches lines like + * U_WB_ + */ + + U_WB_OTHER = 0, /*[XX]*/ + U_WB_ALETTER = 1, /*[LE]*/ + U_WB_FORMAT = 2, /*[FO]*/ + U_WB_KATAKANA = 3, /*[KA]*/ + U_WB_MIDLETTER = 4, /*[ML]*/ + U_WB_MIDNUM = 5, /*[MN]*/ + U_WB_NUMERIC = 6, /*[NU]*/ + U_WB_EXTENDNUMLET = 7, /*[EX]*/ + /** @stable ICU 4.0 */ + U_WB_CR = 8, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */ + /** @stable ICU 4.0 */ + U_WB_EXTEND = 9, /*[Extend]*/ + /** @stable ICU 4.0 */ + U_WB_LF = 10, /*[LF]*/ + /** @stable ICU 4.0 */ + U_WB_MIDNUMLET =11, /*[MB]*/ + /** @stable ICU 4.0 */ + U_WB_NEWLINE =12, /*[NL]*/ + /** @stable ICU 50 */ + U_WB_REGIONAL_INDICATOR = 13, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */ + /** @stable ICU 52 */ + U_WB_HEBREW_LETTER = 14, /*[HL]*/ /* from here on: new in Unicode 6.3/ICU 52 */ + /** @stable ICU 52 */ + U_WB_SINGLE_QUOTE = 15, /*[SQ]*/ + /** @stable ICU 52 */ + U_WB_DOUBLE_QUOTE = 16, /*[DQ]*/ + /** @stable ICU 58 */ + U_WB_E_BASE = 17, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */ + /** @stable ICU 58 */ + U_WB_E_BASE_GAZ = 18, /*[EBG]*/ + /** @stable ICU 58 */ + U_WB_E_MODIFIER = 19, /*[EM]*/ + /** @stable ICU 58 */ + U_WB_GLUE_AFTER_ZWJ = 20, /*[GAZ]*/ + /** @stable ICU 58 */ + U_WB_ZWJ = 21, /*[ZWJ]*/ +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) + /** @stable ICU 62 */ + U_WB_WSEGSPACE = 22, /*[WSEGSPACE]*/ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) + +} UWordBreakValues; + +/** + * Sentence Break constants. + * + * @see UCHAR_SENTENCE_BREAK + * @stable ICU 3.4 + */ +typedef enum USentenceBreak { + /* + * Note: USentenceBreak constants are parsed by preparseucd.py. + * It matches lines like + * U_SB_ + */ + + U_SB_OTHER = 0, /*[XX]*/ + U_SB_ATERM = 1, /*[AT]*/ + U_SB_CLOSE = 2, /*[CL]*/ + U_SB_FORMAT = 3, /*[FO]*/ + U_SB_LOWER = 4, /*[LO]*/ + U_SB_NUMERIC = 5, /*[NU]*/ + U_SB_OLETTER = 6, /*[LE]*/ + U_SB_SEP = 7, /*[SE]*/ + U_SB_SP = 8, /*[SP]*/ + U_SB_STERM = 9, /*[ST]*/ + U_SB_UPPER = 10, /*[UP]*/ + U_SB_CR = 11, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */ + U_SB_EXTEND = 12, /*[EX]*/ + U_SB_LF = 13, /*[LF]*/ + U_SB_SCONTINUE = 14, /*[SC]*/ +} USentenceBreak; + +/** + * Line Break constants. + * + * @see UCHAR_LINE_BREAK + * @stable ICU 2.2 + */ +typedef enum ULineBreak { + /* + * Note: ULineBreak constants are parsed by preparseucd.py. + * It matches lines like + * U_LB_ + */ + + U_LB_UNKNOWN = 0, /*[XX]*/ + U_LB_AMBIGUOUS = 1, /*[AI]*/ + U_LB_ALPHABETIC = 2, /*[AL]*/ + U_LB_BREAK_BOTH = 3, /*[B2]*/ + U_LB_BREAK_AFTER = 4, /*[BA]*/ + U_LB_BREAK_BEFORE = 5, /*[BB]*/ + U_LB_MANDATORY_BREAK = 6, /*[BK]*/ + U_LB_CONTINGENT_BREAK = 7, /*[CB]*/ + U_LB_CLOSE_PUNCTUATION = 8, /*[CL]*/ + U_LB_COMBINING_MARK = 9, /*[CM]*/ + U_LB_CARRIAGE_RETURN = 10, /*[CR]*/ + U_LB_EXCLAMATION = 11, /*[EX]*/ + U_LB_GLUE = 12, /*[GL]*/ + U_LB_HYPHEN = 13, /*[HY]*/ + U_LB_IDEOGRAPHIC = 14, /*[ID]*/ + /** Renamed from the misspelled "inseperable" in Unicode 4.0.1/ICU 3.0 @stable ICU 3.0 */ + U_LB_INSEPARABLE = 15, /*[IN]*/ + U_LB_INSEPERABLE = U_LB_INSEPARABLE, + U_LB_INFIX_NUMERIC = 16, /*[IS]*/ + U_LB_LINE_FEED = 17, /*[LF]*/ + U_LB_NONSTARTER = 18, /*[NS]*/ + U_LB_NUMERIC = 19, /*[NU]*/ + U_LB_OPEN_PUNCTUATION = 20, /*[OP]*/ + U_LB_POSTFIX_NUMERIC = 21, /*[PO]*/ + U_LB_PREFIX_NUMERIC = 22, /*[PR]*/ + U_LB_QUOTATION = 23, /*[QU]*/ + U_LB_COMPLEX_CONTEXT = 24, /*[SA]*/ + U_LB_SURROGATE = 25, /*[SG]*/ + U_LB_SPACE = 26, /*[SP]*/ + U_LB_BREAK_SYMBOLS = 27, /*[SY]*/ + U_LB_ZWSPACE = 28, /*[ZW]*/ + /** @stable ICU 2.6 */ + U_LB_NEXT_LINE = 29, /*[NL]*/ /* from here on: new in Unicode 4/ICU 2.6 */ + /** @stable ICU 2.6 */ + U_LB_WORD_JOINER = 30, /*[WJ]*/ + /** @stable ICU 3.4 */ + U_LB_H2 = 31, /*[H2]*/ /* from here on: new in Unicode 4.1/ICU 3.4 */ + /** @stable ICU 3.4 */ + U_LB_H3 = 32, /*[H3]*/ + /** @stable ICU 3.4 */ + U_LB_JL = 33, /*[JL]*/ + /** @stable ICU 3.4 */ + U_LB_JT = 34, /*[JT]*/ + /** @stable ICU 3.4 */ + U_LB_JV = 35, /*[JV]*/ + /** @stable ICU 4.4 */ + U_LB_CLOSE_PARENTHESIS = 36, /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */ + /** @stable ICU 49 */ + U_LB_CONDITIONAL_JAPANESE_STARTER = 37,/*[CJ]*/ /* new in Unicode 6.1/ICU 49 */ + /** @stable ICU 49 */ + U_LB_HEBREW_LETTER = 38, /*[HL]*/ /* new in Unicode 6.1/ICU 49 */ + /** @stable ICU 50 */ + U_LB_REGIONAL_INDICATOR = 39,/*[RI]*/ /* new in Unicode 6.2/ICU 50 */ + /** @stable ICU 58 */ + U_LB_E_BASE = 40, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */ + /** @stable ICU 58 */ + U_LB_E_MODIFIER = 41, /*[EM]*/ + /** @stable ICU 58 */ + U_LB_ZWJ = 42, /*[ZWJ]*/ +} ULineBreak; + +/** + * Numeric Type constants. + * + * @see UCHAR_NUMERIC_TYPE + * @stable ICU 2.2 + */ +typedef enum UNumericType { + /* + * Note: UNumericType constants are parsed by preparseucd.py. + * It matches lines like + * U_NT_ + */ + + U_NT_NONE, /*[None]*/ + U_NT_DECIMAL, /*[de]*/ + U_NT_DIGIT, /*[di]*/ + U_NT_NUMERIC, /*[nu]*/ +} UNumericType; + +/** + * Hangul Syllable Type constants. + * + * @see UCHAR_HANGUL_SYLLABLE_TYPE + * @stable ICU 2.6 + */ +typedef enum UHangulSyllableType { + /* + * Note: UHangulSyllableType constants are parsed by preparseucd.py. + * It matches lines like + * U_HST_ + */ + + U_HST_NOT_APPLICABLE, /*[NA]*/ + U_HST_LEADING_JAMO, /*[L]*/ + U_HST_VOWEL_JAMO, /*[V]*/ + U_HST_TRAILING_JAMO, /*[T]*/ + U_HST_LV_SYLLABLE, /*[LV]*/ + U_HST_LVT_SYLLABLE, /*[LVT]*/ +} UHangulSyllableType; + +#if (NTDDI_VERSION >= NTDDI_WIN10_19H1) +/** + * Indic Positional Category constants. + * + * @see UCHAR_INDIC_POSITIONAL_CATEGORY + * @stable ICU 63 + */ +typedef enum UIndicPositionalCategory { + /* + * Note: UIndicPositionalCategory constants are parsed by preparseucd.py. + * It matches lines like + * U_INPC_ + */ + + /** @stable ICU 63 */ + U_INPC_NA, + /** @stable ICU 63 */ + U_INPC_BOTTOM, + /** @stable ICU 63 */ + U_INPC_BOTTOM_AND_LEFT, + /** @stable ICU 63 */ + U_INPC_BOTTOM_AND_RIGHT, + /** @stable ICU 63 */ + U_INPC_LEFT, + /** @stable ICU 63 */ + U_INPC_LEFT_AND_RIGHT, + /** @stable ICU 63 */ + U_INPC_OVERSTRUCK, + /** @stable ICU 63 */ + U_INPC_RIGHT, + /** @stable ICU 63 */ + U_INPC_TOP, + /** @stable ICU 63 */ + U_INPC_TOP_AND_BOTTOM, + /** @stable ICU 63 */ + U_INPC_TOP_AND_BOTTOM_AND_RIGHT, + /** @stable ICU 63 */ + U_INPC_TOP_AND_LEFT, + /** @stable ICU 63 */ + U_INPC_TOP_AND_LEFT_AND_RIGHT, + /** @stable ICU 63 */ + U_INPC_TOP_AND_RIGHT, + /** @stable ICU 63 */ + U_INPC_VISUAL_ORDER_LEFT, + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + /** @stable ICU 66 */ + U_INPC_TOP_AND_BOTTOM_AND_LEFT, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +} UIndicPositionalCategory; + +/** + * Indic Syllabic Category constants. + * + * @see UCHAR_INDIC_SYLLABIC_CATEGORY + * @stable ICU 63 + */ +typedef enum UIndicSyllabicCategory { + /* + * Note: UIndicSyllabicCategory constants are parsed by preparseucd.py. + * It matches lines like + * U_INSC_ + */ + + /** @stable ICU 63 */ + U_INSC_OTHER, + /** @stable ICU 63 */ + U_INSC_AVAGRAHA, + /** @stable ICU 63 */ + U_INSC_BINDU, + /** @stable ICU 63 */ + U_INSC_BRAHMI_JOINING_NUMBER, + /** @stable ICU 63 */ + U_INSC_CANTILLATION_MARK, + /** @stable ICU 63 */ + U_INSC_CONSONANT, + /** @stable ICU 63 */ + U_INSC_CONSONANT_DEAD, + /** @stable ICU 63 */ + U_INSC_CONSONANT_FINAL, + /** @stable ICU 63 */ + U_INSC_CONSONANT_HEAD_LETTER, + /** @stable ICU 63 */ + U_INSC_CONSONANT_INITIAL_POSTFIXED, + /** @stable ICU 63 */ + U_INSC_CONSONANT_KILLER, + /** @stable ICU 63 */ + U_INSC_CONSONANT_MEDIAL, + /** @stable ICU 63 */ + U_INSC_CONSONANT_PLACEHOLDER, + /** @stable ICU 63 */ + U_INSC_CONSONANT_PRECEDING_REPHA, + /** @stable ICU 63 */ + U_INSC_CONSONANT_PREFIXED, + /** @stable ICU 63 */ + U_INSC_CONSONANT_SUBJOINED, + /** @stable ICU 63 */ + U_INSC_CONSONANT_SUCCEEDING_REPHA, + /** @stable ICU 63 */ + U_INSC_CONSONANT_WITH_STACKER, + /** @stable ICU 63 */ + U_INSC_GEMINATION_MARK, + /** @stable ICU 63 */ + U_INSC_INVISIBLE_STACKER, + /** @stable ICU 63 */ + U_INSC_JOINER, + /** @stable ICU 63 */ + U_INSC_MODIFYING_LETTER, + /** @stable ICU 63 */ + U_INSC_NON_JOINER, + /** @stable ICU 63 */ + U_INSC_NUKTA, + /** @stable ICU 63 */ + U_INSC_NUMBER, + /** @stable ICU 63 */ + U_INSC_NUMBER_JOINER, + /** @stable ICU 63 */ + U_INSC_PURE_KILLER, + /** @stable ICU 63 */ + U_INSC_REGISTER_SHIFTER, + /** @stable ICU 63 */ + U_INSC_SYLLABLE_MODIFIER, + /** @stable ICU 63 */ + U_INSC_TONE_LETTER, + /** @stable ICU 63 */ + U_INSC_TONE_MARK, + /** @stable ICU 63 */ + U_INSC_VIRAMA, + /** @stable ICU 63 */ + U_INSC_VISARGA, + /** @stable ICU 63 */ + U_INSC_VOWEL, + /** @stable ICU 63 */ + U_INSC_VOWEL_DEPENDENT, + /** @stable ICU 63 */ + U_INSC_VOWEL_INDEPENDENT, +} UIndicSyllabicCategory; + +/** + * Vertical Orientation constants. + * + * @see UCHAR_VERTICAL_ORIENTATION + * @stable ICU 63 + */ +typedef enum UVerticalOrientation { + /* + * Note: UVerticalOrientation constants are parsed by preparseucd.py. + * It matches lines like + * U_VO_ + */ + + /** @stable ICU 63 */ + U_VO_ROTATED, + /** @stable ICU 63 */ + U_VO_TRANSFORMED_ROTATED, + /** @stable ICU 63 */ + U_VO_TRANSFORMED_UPRIGHT, + /** @stable ICU 63 */ + U_VO_UPRIGHT, +} UVerticalOrientation; +#endif // (NTDDI_VERSION >= NTDDI_WIN10_19H1) + +/** + * Check a binary Unicode property for a code point. + * + * Unicode, especially in version 3.2, defines many more properties than the + * original set in UnicodeData.txt. + * + * The properties APIs are intended to reflect Unicode properties as defined + * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR). + * For details about the properties see http://www.unicode.org/ucd/ . + * For names of Unicode properties see the UCD file PropertyAliases.txt. + * + * Important: If ICU is built with UCD files from Unicode versions below 3.2, + * then properties marked with "new in Unicode 3.2" are not or not fully available. + * + * @param c Code point to test. + * @param which UProperty selector constant, identifies which binary property to check. + * Must be UCHAR_BINARY_START<=which= NTDDI_WIN11_ZN) +/** + * Returns true if the property is true for the string. + * Same as u_hasBinaryProperty(single code point, which) + * if the string contains exactly one code point. + * + * Most properties apply only to single code points. + * UTS #51 Unicode Emoji + * defines several properties of strings. + * + * @param s String to test. + * @param length Length of the string, or negative if NUL-terminated. + * @param which UProperty selector constant, identifies which binary property to check. + * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT. + * @return true or false according to the binary Unicode property value for the string. + * Also false if 'which' is out of bounds or if the Unicode version + * does not have data for the property at all. + * + * @see UProperty + * @see u_hasBinaryProperty + * @see u_getBinaryPropertySet + * @see u_getIntPropertyValue + * @see u_getUnicodeVersion + * @stable ICU 70 + */ +U_CAPI UBool U_EXPORT2 +u_stringHasBinaryProperty(const UChar *s, int32_t length, UProperty which); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Returns a frozen USet for a binary property. + * The library retains ownership over the returned object. + * Sets an error code if the property number is not one for a binary property. + * + * The returned set contains all code points for which the property is true. + * + * @param property UCHAR_BINARY_START..UCHAR_BINARY_LIMIT-1 + * @param pErrorCode an in/out ICU UErrorCode + * @return the property as a set + * @see UProperty + * @see u_hasBinaryProperty + * @see Unicode::fromUSet + * @stable ICU 63 + */ +U_CAPI const USet * U_EXPORT2 +u_getBinaryPropertySet(UProperty property, UErrorCode *pErrorCode); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * Check if a code point has the Alphabetic Unicode property. + * Same as u_hasBinaryProperty(c, UCHAR_ALPHABETIC). + * This is different from u_isalpha! + * @param c Code point to test + * @return true if the code point has the Alphabetic Unicode property, false otherwise + * + * @see UCHAR_ALPHABETIC + * @see u_isalpha + * @see u_hasBinaryProperty + * @stable ICU 2.1 + */ +U_CAPI UBool U_EXPORT2 +u_isUAlphabetic(UChar32 c); + +/** + * Check if a code point has the Lowercase Unicode property. + * Same as u_hasBinaryProperty(c, UCHAR_LOWERCASE). + * This is different from u_islower! + * @param c Code point to test + * @return true if the code point has the Lowercase Unicode property, false otherwise + * + * @see UCHAR_LOWERCASE + * @see u_islower + * @see u_hasBinaryProperty + * @stable ICU 2.1 + */ +U_CAPI UBool U_EXPORT2 +u_isULowercase(UChar32 c); + +/** + * Check if a code point has the Uppercase Unicode property. + * Same as u_hasBinaryProperty(c, UCHAR_UPPERCASE). + * This is different from u_isupper! + * @param c Code point to test + * @return true if the code point has the Uppercase Unicode property, false otherwise + * + * @see UCHAR_UPPERCASE + * @see u_isupper + * @see u_hasBinaryProperty + * @stable ICU 2.1 + */ +U_CAPI UBool U_EXPORT2 +u_isUUppercase(UChar32 c); + +/** + * Check if a code point has the White_Space Unicode property. + * Same as u_hasBinaryProperty(c, UCHAR_WHITE_SPACE). + * This is different from both u_isspace and u_isWhitespace! + * + * Note: There are several ICU whitespace functions; please see the uchar.h + * file documentation for a detailed comparison. + * + * @param c Code point to test + * @return true if the code point has the White_Space Unicode property, false otherwise. + * + * @see UCHAR_WHITE_SPACE + * @see u_isWhitespace + * @see u_isspace + * @see u_isJavaSpaceChar + * @see u_hasBinaryProperty + * @stable ICU 2.1 + */ +U_CAPI UBool U_EXPORT2 +u_isUWhiteSpace(UChar32 c); + +/** + * Get the property value for an enumerated or integer Unicode property for a code point. + * Also returns binary and mask property values. + * + * Unicode, especially in version 3.2, defines many more properties than the + * original set in UnicodeData.txt. + * + * The properties APIs are intended to reflect Unicode properties as defined + * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR). + * For details about the properties see http://www.unicode.org/ . + * For names of Unicode properties see the UCD file PropertyAliases.txt. + * + * Sample usage: + * UEastAsianWidth ea=(UEastAsianWidth)u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH); + * UBool b=(UBool)u_getIntPropertyValue(c, UCHAR_IDEOGRAPHIC); + * + * @param c Code point to test. + * @param which UProperty selector constant, identifies which property to check. + * Must be UCHAR_BINARY_START<=which= NTDDI_WIN10_CO) +/** + * Returns an immutable UCPMap for an enumerated/catalog/int-valued property. + * The library retains ownership over the returned object. + * Sets an error code if the property number is not one for an "int property". + * + * The returned object maps all Unicode code points to their values for that property. + * For documentation of the integer values see u_getIntPropertyValue(). + * + * @param property UCHAR_INT_START..UCHAR_INT_LIMIT-1 + * @param pErrorCode an in/out ICU UErrorCode + * @return the property as a map + * @see UProperty + * @see u_getIntPropertyValue + * @stable ICU 63 + */ +U_CAPI const UCPMap * U_EXPORT2 +u_getIntPropertyMap(UProperty property, UErrorCode *pErrorCode); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * Get the numeric value for a Unicode code point as defined in the + * Unicode Character Database. + * + * A "double" return type is necessary because + * some numeric values are fractions, negative, or too large for int32_t. + * + * For characters without any numeric values in the Unicode Character Database, + * this function will return U_NO_NUMERIC_VALUE. + * Note: This is different from the Unicode Standard which specifies NaN as the default value. + * (NaN is not available on all platforms.) + * + * Similar to java.lang.Character.getNumericValue(), but u_getNumericValue() + * also supports negative values, large values, and fractions, + * while Java's getNumericValue() returns values 10..35 for ASCII letters. + * + * @param c Code point to get the numeric value for. + * @return Numeric value of c, or U_NO_NUMERIC_VALUE if none is defined. + * + * @see U_NO_NUMERIC_VALUE + * @stable ICU 2.2 + */ +U_CAPI double U_EXPORT2 +u_getNumericValue(UChar32 c); + +/** + * Special value that is returned by u_getNumericValue when + * no numeric value is defined for a code point. + * + * @see u_getNumericValue + * @stable ICU 2.2 + */ +#define U_NO_NUMERIC_VALUE ((double)-123456789.) + +/** + * Determines whether the specified code point has the general category "Ll" + * (lowercase letter). + * + * Same as java.lang.Character.isLowerCase(). + * + * This misses some characters that are also lowercase but + * have a different general category value. + * In order to include those, use UCHAR_LOWERCASE. + * + * In addition to being equivalent to a Java function, this also serves + * as a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is an Ll lowercase letter + * + * @see UCHAR_LOWERCASE + * @see u_isupper + * @see u_istitle + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_islower(UChar32 c); + +/** + * Determines whether the specified code point has the general category "Lu" + * (uppercase letter). + * + * Same as java.lang.Character.isUpperCase(). + * + * This misses some characters that are also uppercase but + * have a different general category value. + * In order to include those, use UCHAR_UPPERCASE. + * + * In addition to being equivalent to a Java function, this also serves + * as a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is an Lu uppercase letter + * + * @see UCHAR_UPPERCASE + * @see u_islower + * @see u_istitle + * @see u_tolower + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_isupper(UChar32 c); + +/** + * Determines whether the specified code point is a titlecase letter. + * True for general category "Lt" (titlecase letter). + * + * Same as java.lang.Character.isTitleCase(). + * + * @param c the code point to be tested + * @return true if the code point is an Lt titlecase letter + * + * @see u_isupper + * @see u_islower + * @see u_totitle + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_istitle(UChar32 c); + +/** + * Determines whether the specified code point is a digit character according to Java. + * True for characters with general category "Nd" (decimal digit numbers). + * Beginning with Unicode 4, this is the same as + * testing for the Numeric_Type of Decimal. + * + * Same as java.lang.Character.isDigit(). + * + * In addition to being equivalent to a Java function, this also serves + * as a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is a digit character according to Character.isDigit() + * + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_isdigit(UChar32 c); + +/** + * Determines whether the specified code point is a letter character. + * True for general categories "L" (letters). + * + * Same as java.lang.Character.isLetter(). + * + * In addition to being equivalent to a Java function, this also serves + * as a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is a letter character + * + * @see u_isdigit + * @see u_isalnum + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_isalpha(UChar32 c); + +/** + * Determines whether the specified code point is an alphanumeric character + * (letter or digit) according to Java. + * True for characters with general categories + * "L" (letters) and "Nd" (decimal digit numbers). + * + * Same as java.lang.Character.isLetterOrDigit(). + * + * In addition to being equivalent to a Java function, this also serves + * as a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is an alphanumeric character according to Character.isLetterOrDigit() + * + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_isalnum(UChar32 c); + +/** + * Determines whether the specified code point is a hexadecimal digit. + * This is equivalent to u_digit(c, 16)>=0. + * True for characters with general category "Nd" (decimal digit numbers) + * as well as Latin letters a-f and A-F in both ASCII and Fullwidth ASCII. + * (That is, for letters with code points + * 0041..0046, 0061..0066, FF21..FF26, FF41..FF46.) + * + * In order to narrow the definition of hexadecimal digits to only ASCII + * characters, use (c<=0x7f && u_isxdigit(c)). + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is a hexadecimal digit + * + * @stable ICU 2.6 + */ +U_CAPI UBool U_EXPORT2 +u_isxdigit(UChar32 c); + +/** + * Determines whether the specified code point is a punctuation character. + * True for characters with general categories "P" (punctuation). + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is a punctuation character + * + * @stable ICU 2.6 + */ +U_CAPI UBool U_EXPORT2 +u_ispunct(UChar32 c); + +/** + * Determines whether the specified code point is a "graphic" character + * (printable, excluding spaces). + * true for all characters except those with general categories + * "Cc" (control codes), "Cf" (format controls), "Cs" (surrogates), + * "Cn" (unassigned), and "Z" (separators). + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is a "graphic" character + * + * @stable ICU 2.6 + */ +U_CAPI UBool U_EXPORT2 +u_isgraph(UChar32 c); + +/** + * Determines whether the specified code point is a "blank" or "horizontal space", + * a character that visibly separates words on a line. + * The following are equivalent definitions: + * + * true for Unicode White_Space characters except for "vertical space controls" + * where "vertical space controls" are the following characters: + * U+000A (LF) U+000B (VT) U+000C (FF) U+000D (CR) U+0085 (NEL) U+2028 (LS) U+2029 (PS) + * + * same as + * + * true for U+0009 (TAB) and characters with general category "Zs" (space separators). + * + * Note: There are several ICU whitespace functions; please see the uchar.h + * file documentation for a detailed comparison. + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is a "blank" + * + * @stable ICU 2.6 + */ +U_CAPI UBool U_EXPORT2 +u_isblank(UChar32 c); + +/** + * Determines whether the specified code point is "defined", + * which usually means that it is assigned a character. + * True for general categories other than "Cn" (other, not assigned), + * i.e., true for all code points mentioned in UnicodeData.txt. + * + * Note that non-character code points (e.g., U+FDD0) are not "defined" + * (they are Cn), but surrogate code points are "defined" (Cs). + * + * Same as java.lang.Character.isDefined(). + * + * @param c the code point to be tested + * @return true if the code point is assigned a character + * + * @see u_isdigit + * @see u_isalpha + * @see u_isalnum + * @see u_isupper + * @see u_islower + * @see u_istitle + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_isdefined(UChar32 c); + +/** + * Determines if the specified character is a space character or not. + * + * Note: There are several ICU whitespace functions; please see the uchar.h + * file documentation for a detailed comparison. + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the character to be tested + * @return true if the character is a space character; false otherwise. + * + * @see u_isJavaSpaceChar + * @see u_isWhitespace + * @see u_isUWhiteSpace + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_isspace(UChar32 c); + +/** + * Determine if the specified code point is a space character according to Java. + * True for characters with general categories "Z" (separators), + * which does not include control codes (e.g., TAB or Line Feed). + * + * Same as java.lang.Character.isSpaceChar(). + * + * Note: There are several ICU whitespace functions; please see the uchar.h + * file documentation for a detailed comparison. + * + * @param c the code point to be tested + * @return true if the code point is a space character according to Character.isSpaceChar() + * + * @see u_isspace + * @see u_isWhitespace + * @see u_isUWhiteSpace + * @stable ICU 2.6 + */ +U_CAPI UBool U_EXPORT2 +u_isJavaSpaceChar(UChar32 c); + +/** + * Determines if the specified code point is a whitespace character according to Java/ICU. + * A character is considered to be a Java whitespace character if and only + * if it satisfies one of the following criteria: + * + * - It is a Unicode Separator character (categories "Z" = "Zs" or "Zl" or "Zp"), but is not + * also a non-breaking space (U+00A0 NBSP or U+2007 Figure Space or U+202F Narrow NBSP). + * - It is U+0009 HORIZONTAL TABULATION. + * - It is U+000A LINE FEED. + * - It is U+000B VERTICAL TABULATION. + * - It is U+000C FORM FEED. + * - It is U+000D CARRIAGE RETURN. + * - It is U+001C FILE SEPARATOR. + * - It is U+001D GROUP SEPARATOR. + * - It is U+001E RECORD SEPARATOR. + * - It is U+001F UNIT SEPARATOR. + * + * This API tries to sync with the semantics of Java's + * java.lang.Character.isWhitespace(), but it may not return + * the exact same results because of the Unicode version + * difference. + * + * Note: Unicode 4.0.1 changed U+200B ZERO WIDTH SPACE from a Space Separator (Zs) + * to a Format Control (Cf). Since then, isWhitespace(0x200b) returns false. + * See http://www.unicode.org/versions/Unicode4.0.1/ + * + * Note: There are several ICU whitespace functions; please see the uchar.h + * file documentation for a detailed comparison. + * + * @param c the code point to be tested + * @return true if the code point is a whitespace character according to Java/ICU + * + * @see u_isspace + * @see u_isJavaSpaceChar + * @see u_isUWhiteSpace + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_isWhitespace(UChar32 c); + +/** + * Determines whether the specified code point is a control character + * (as defined by this function). + * A control character is one of the following: + * - ISO 8-bit control character (U+0000..U+001f and U+007f..U+009f) + * - U_CONTROL_CHAR (Cc) + * - U_FORMAT_CHAR (Cf) + * - U_LINE_SEPARATOR (Zl) + * - U_PARAGRAPH_SEPARATOR (Zp) + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is a control character + * + * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT + * @see u_isprint + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_iscntrl(UChar32 c); + +/** + * Determines whether the specified code point is an ISO control code. + * True for U+0000..U+001f and U+007f..U+009f (general category "Cc"). + * + * Same as java.lang.Character.isISOControl(). + * + * @param c the code point to be tested + * @return true if the code point is an ISO control code + * + * @see u_iscntrl + * @stable ICU 2.6 + */ +U_CAPI UBool U_EXPORT2 +u_isISOControl(UChar32 c); + +/** + * Determines whether the specified code point is a printable character. + * True for general categories other than "C" (controls). + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return true if the code point is a printable character + * + * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT + * @see u_iscntrl + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_isprint(UChar32 c); + +/** + * Non-standard: Determines whether the specified code point is a base character. + * True for general categories "L" (letters), "N" (numbers), + * "Mc" (spacing combining marks), and "Me" (enclosing marks). + * + * Note that this is different from the Unicode Standard definition in + * chapter 3.6, conformance clause D51 “Base characterâ€, + * which defines base characters as the code points with general categories + * Letter (L), Number (N), Punctuation (P), Symbol (S), or Space Separator (Zs). + * + * @param c the code point to be tested + * @return true if the code point is a base character according to this function + * + * @see u_isalpha + * @see u_isdigit + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_isbase(UChar32 c); + +/** + * Returns the bidirectional category value for the code point, + * which is used in the Unicode bidirectional algorithm + * (UAX #9 http://www.unicode.org/reports/tr9/). + * Note that some unassigned code points have bidi values + * of R or AL because they are in blocks that are reserved + * for Right-To-Left scripts. + * + * Same as java.lang.Character.getDirectionality() + * + * @param c the code point to be tested + * @return the bidirectional category (UCharDirection) value + * + * @see UCharDirection + * @stable ICU 2.0 + */ +U_CAPI UCharDirection U_EXPORT2 +u_charDirection(UChar32 c); + +/** + * Determines whether the code point has the Bidi_Mirrored property. + * This property is set for characters that are commonly used in + * Right-To-Left contexts and need to be displayed with a "mirrored" + * glyph. + * + * Same as java.lang.Character.isMirrored(). + * Same as UCHAR_BIDI_MIRRORED + * + * @param c the code point to be tested + * @return true if the character has the Bidi_Mirrored property + * + * @see UCHAR_BIDI_MIRRORED + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +u_isMirrored(UChar32 c); + +/** + * Maps the specified character to a "mirror-image" character. + * For characters with the Bidi_Mirrored property, implementations + * sometimes need a "poor man's" mapping to another Unicode + * character (code point) such that the default glyph may serve + * as the mirror-image of the default glyph of the specified + * character. This is useful for text conversion to and from + * codepages with visual order, and for displays without glyph + * selection capabilities. + * + * @param c the code point to be mapped + * @return another Unicode code point that may serve as a mirror-image + * substitute, or c itself if there is no such mapping or c + * does not have the Bidi_Mirrored property + * + * @see UCHAR_BIDI_MIRRORED + * @see u_isMirrored + * @stable ICU 2.0 + */ +U_CAPI UChar32 U_EXPORT2 +u_charMirror(UChar32 c); + +/** + * Maps the specified character to its paired bracket character. + * For Bidi_Paired_Bracket_Type!=None, this is the same as u_charMirror(). + * Otherwise c itself is returned. + * See http://www.unicode.org/reports/tr9/ + * + * @param c the code point to be mapped + * @return the paired bracket code point, + * or c itself if there is no such mapping + * (Bidi_Paired_Bracket_Type=None) + * + * @see UCHAR_BIDI_PAIRED_BRACKET + * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE + * @see u_charMirror + * @stable ICU 52 + */ +U_CAPI UChar32 U_EXPORT2 +u_getBidiPairedBracket(UChar32 c); + +/** + * Returns the general category value for the code point. + * + * Same as java.lang.Character.getType(). + * + * @param c the code point to be tested + * @return the general category (UCharCategory) value + * + * @see UCharCategory + * @stable ICU 2.0 + */ +U_CAPI int8_t U_EXPORT2 +u_charType(UChar32 c); + +/** + * Get a single-bit bit set for the general category of a character. + * This bit set can be compared bitwise with U_GC_SM_MASK, U_GC_L_MASK, etc. + * Same as U_MASK(u_charType(c)). + * + * @param c the code point to be tested + * @return a single-bit mask corresponding to the general category (UCharCategory) value + * + * @see u_charType + * @see UCharCategory + * @see U_GC_CN_MASK + * @stable ICU 2.1 + */ +#define U_GET_GC_MASK(c) U_MASK(u_charType(c)) + +/** + * Callback from u_enumCharTypes(), is called for each contiguous range + * of code points c (where start<=cnameChoice, the character name written + * into the buffer is the "modern" name or the name that was defined + * in Unicode version 1.0. + * The name contains only "invariant" characters + * like A-Z, 0-9, space, and '-'. + * Unicode 1.0 names are only retrieved if they are different from the modern + * names and if the data file contains the data for them. gennames may or may + * not be called with a command line option to include 1.0 names in unames.dat. + * + * @param code The character (code point) for which to get the name. + * It must be 0<=code<=0x10ffff. + * @param nameChoice Selector for which name to get. + * @param buffer Destination address for copying the name. + * The name will always be zero-terminated. + * If there is no name, then the buffer will be set to the empty string. + * @param bufferLength ==sizeof(buffer) + * @param pErrorCode Pointer to a UErrorCode variable; + * check for U_SUCCESS() after u_charName() + * returns. + * @return The length of the name, or 0 if there is no name for this character. + * If the bufferLength is less than or equal to the length, then the buffer + * contains the truncated name and the returned length indicates the full + * length of the name. + * The length does not include the zero-termination. + * + * @see UCharNameChoice + * @see u_charFromName + * @see u_enumCharNames + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_charName(UChar32 code, UCharNameChoice nameChoice, + char *buffer, int32_t bufferLength, + UErrorCode *pErrorCode); + + +/** + * Find a Unicode character by its name and return its code point value. + * The name is matched exactly and completely. + * If the name does not correspond to a code point, pErrorCode + * is set to U_INVALID_CHAR_FOUND. + * A Unicode 1.0 name is matched only if it differs from the modern name. + * Unicode names are all uppercase. Extended names are lowercase followed + * by an uppercase hexadecimal number, and within angle brackets. + * + * @param nameChoice Selector for which name to match. + * @param name The name to match. + * @param pErrorCode Pointer to a UErrorCode variable + * @return The Unicode value of the code point with the given name, + * or an undefined value if there is no such code point. + * + * @see UCharNameChoice + * @see u_charName + * @see u_enumCharNames + * @stable ICU 1.7 + */ +U_CAPI UChar32 U_EXPORT2 +u_charFromName(UCharNameChoice nameChoice, + const char *name, + UErrorCode *pErrorCode); + +/** + * Type of a callback function for u_enumCharNames() that gets called + * for each Unicode character with the code point value and + * the character name. + * If such a function returns false, then the enumeration is stopped. + * + * @param context The context pointer that was passed to u_enumCharNames(). + * @param code The Unicode code point for the character with this name. + * @param nameChoice Selector for which kind of names is enumerated. + * @param name The character's name, zero-terminated. + * @param length The length of the name. + * @return true if the enumeration should continue, false to stop it. + * + * @see UCharNameChoice + * @see u_enumCharNames + * @stable ICU 1.7 + */ +typedef UBool U_CALLCONV UEnumCharNamesFn(void *context, + UChar32 code, + UCharNameChoice nameChoice, + const char *name, + int32_t length); + +/** + * Enumerate all assigned Unicode characters between the start and limit + * code points (start inclusive, limit exclusive) and call a function + * for each, passing the code point value and the character name. + * For Unicode 1.0 names, only those are enumerated that differ from the + * modern names. + * + * @param start The first code point in the enumeration range. + * @param limit One more than the last code point in the enumeration range + * (the first one after the range). + * @param fn The function that is to be called for each character name. + * @param context An arbitrary pointer that is passed to the function. + * @param nameChoice Selector for which kind of names to enumerate. + * @param pErrorCode Pointer to a UErrorCode variable + * + * @see UCharNameChoice + * @see UEnumCharNamesFn + * @see u_charName + * @see u_charFromName + * @stable ICU 1.7 + */ +U_CAPI void U_EXPORT2 +u_enumCharNames(UChar32 start, UChar32 limit, + UEnumCharNamesFn *fn, + void *context, + UCharNameChoice nameChoice, + UErrorCode *pErrorCode); + +/** + * Return the Unicode name for a given property, as given in the + * Unicode database file PropertyAliases.txt. + * + * In addition, this function maps the property + * UCHAR_GENERAL_CATEGORY_MASK to the synthetic names "gcm" / + * "General_Category_Mask". These names are not in + * PropertyAliases.txt. + * + * @param property UProperty selector other than UCHAR_INVALID_CODE. + * If out of range, NULL is returned. + * + * @param nameChoice selector for which name to get. If out of range, + * NULL is returned. All properties have a long name. Most + * have a short name, but some do not. Unicode allows for + * additional names; if present these will be returned by + * U_LONG_PROPERTY_NAME + i, where i=1, 2,... + * + * @return a pointer to the name, or NULL if either the + * property or the nameChoice is out of range. If a given + * nameChoice returns NULL, then all larger values of + * nameChoice will return NULL, with one exception: if NULL is + * returned for U_SHORT_PROPERTY_NAME, then + * U_LONG_PROPERTY_NAME (and higher) may still return a + * non-NULL value. The returned pointer is valid until + * u_cleanup() is called. + * + * @see UProperty + * @see UPropertyNameChoice + * @stable ICU 2.4 + */ +U_CAPI const char* U_EXPORT2 +u_getPropertyName(UProperty property, + UPropertyNameChoice nameChoice); + +/** + * Return the UProperty enum for a given property name, as specified + * in the Unicode database file PropertyAliases.txt. Short, long, and + * any other variants are recognized. + * + * In addition, this function maps the synthetic names "gcm" / + * "General_Category_Mask" to the property + * UCHAR_GENERAL_CATEGORY_MASK. These names are not in + * PropertyAliases.txt. + * + * @param alias the property name to be matched. The name is compared + * using "loose matching" as described in PropertyAliases.txt. + * + * @return a UProperty enum, or UCHAR_INVALID_CODE if the given name + * does not match any property. + * + * @see UProperty + * @stable ICU 2.4 + */ +U_CAPI UProperty U_EXPORT2 +u_getPropertyEnum(const char* alias); + +/** + * Return the Unicode name for a given property value, as given in the + * Unicode database file PropertyValueAliases.txt. + * + * Note: Some of the names in PropertyValueAliases.txt can only be + * retrieved using UCHAR_GENERAL_CATEGORY_MASK, not + * UCHAR_GENERAL_CATEGORY. These include: "C" / "Other", "L" / + * "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P" + * / "Punctuation", "S" / "Symbol", and "Z" / "Separator". + * + * @param property UProperty selector constant. + * Must be UCHAR_BINARY_START<=which2<=radix<=36 or if the + * value of c is not a valid digit in the specified + * radix, -1 is returned. A character is a valid digit + * if at least one of the following is true: + *
    + *
  • The character has a decimal digit value. + * Such characters have the general category "Nd" (decimal digit numbers) + * and a Numeric_Type of Decimal. + * In this case the value is the character's decimal digit value.
  • + *
  • The character is one of the uppercase Latin letters + * 'A' through 'Z'. + * In this case the value is c-'A'+10.
  • + *
  • The character is one of the lowercase Latin letters + * 'a' through 'z'. + * In this case the value is ch-'a'+10.
  • + *
  • Latin letters from both the ASCII range (0061..007A, 0041..005A) + * as well as from the Fullwidth ASCII range (FF41..FF5A, FF21..FF3A) + * are recognized.
  • + *
+ * + * Same as java.lang.Character.digit(). + * + * @param ch the code point to be tested. + * @param radix the radix. + * @return the numeric value represented by the character in the + * specified radix, + * or -1 if there is no value or if the value exceeds the radix. + * + * @see UCHAR_NUMERIC_TYPE + * @see u_forDigit + * @see u_charDigitValue + * @see u_isdigit + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_digit(UChar32 ch, int8_t radix); + +/** + * Determines the character representation for a specific digit in + * the specified radix. If the value of radix is not a + * valid radix, or the value of digit is not a valid + * digit in the specified radix, the null character + * (U+0000) is returned. + *

+ * The radix argument is valid if it is greater than or + * equal to 2 and less than or equal to 36. + * The digit argument is valid if + * 0 <= digit < radix. + *

+ * If the digit is less than 10, then + * '0' + digit is returned. Otherwise, the value + * 'a' + digit - 10 is returned. + * + * Same as java.lang.Character.forDigit(). + * + * @param digit the number to convert to a character. + * @param radix the radix. + * @return the char representation of the specified digit + * in the specified radix. + * + * @see u_digit + * @see u_charDigitValue + * @see u_isdigit + * @stable ICU 2.0 + */ +U_CAPI UChar32 U_EXPORT2 +u_forDigit(int32_t digit, int8_t radix); + +/** + * Get the "age" of the code point. + * The "age" is the Unicode version when the code point was first + * designated (as a non-character or for Private Use) + * or assigned a character. + * This can be useful to avoid emitting code points to receiving + * processes that do not accept newer characters. + * The data is from the UCD file DerivedAge.txt. + * + * @param c The code point. + * @param versionArray The Unicode version number array, to be filled in. + * + * @stable ICU 2.1 + */ +U_CAPI void U_EXPORT2 +u_charAge(UChar32 c, UVersionInfo versionArray); + +/** + * Gets the Unicode version information. + * The version array is filled in with the version information + * for the Unicode standard that is currently used by ICU. + * For example, Unicode version 3.1.1 is represented as an array with + * the values { 3, 1, 1, 0 }. + * + * @param versionArray an output array that will be filled in with + * the Unicode version number + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +u_getUnicodeVersion(UVersionInfo versionArray); + +#if !UCONFIG_NO_NORMALIZATION +/** + * Get the FC_NFKC_Closure property string for a character. + * See Unicode Standard Annex #15 for details, search for "FC_NFKC_Closure" + * or for "FNC": http://www.unicode.org/reports/tr15/ + * + * @param c The character (code point) for which to get the FC_NFKC_Closure string. + * It must be 0<=c<=0x10ffff. + * @param dest Destination address for copying the string. + * The string will be zero-terminated if possible. + * If there is no FC_NFKC_Closure string, + * then the buffer will be set to the empty string. + * @param destCapacity ==sizeof(dest) + * @param pErrorCode Pointer to a UErrorCode variable. + * @return The length of the string, or 0 if there is no FC_NFKC_Closure string for this character. + * If the destCapacity is less than or equal to the length, then the buffer + * contains the truncated name and the returned length indicates the full + * length of the name. + * The length does not include the zero-termination. + * + * @stable ICU 2.2 + */ +U_CAPI int32_t U_EXPORT2 +u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode); + +#endif + + +U_CDECL_END + +#endif /*_UCHAR*/ +/*eof*/ + +// ubidi.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* +* Copyright (C) 1999-2013, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* file name: ubidi.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 1999jul27 +* created by: Markus W. Scherer, updated by Matitiahu Allouche +*/ + +#ifndef UBIDI_H +#define UBIDI_H + + + +/** + *\file + * \brief C API: Bidi algorithm + * + *

Bidi algorithm for ICU

+ * + * This is an implementation of the Unicode Bidirectional Algorithm. + * The algorithm is defined in the + * Unicode Standard Annex #9.

+ * + * Note: Libraries that perform a bidirectional algorithm and + * reorder strings accordingly are sometimes called "Storage Layout Engines". + * ICU's Bidi and shaping (u_shapeArabic()) APIs can be used at the core of such + * "Storage Layout Engines". + * + *

General remarks about the API:

+ * + * In functions with an error code parameter, + * the pErrorCode pointer must be valid + * and the value that it points to must not indicate a failure before + * the function call. Otherwise, the function returns immediately. + * After the function call, the value indicates success or failure.

+ * + * The "limit" of a sequence of characters is the position just after their + * last character, i.e., one more than that position.

+ * + * Some of the API functions provide access to "runs". + * Such a "run" is defined as a sequence of characters + * that are at the same embedding level + * after performing the Bidi algorithm.

+ * + * @author Markus W. Scherer + * @version 1.0 + * + * + *

Sample code for the ICU Bidi API

+ * + *
Rendering a paragraph with the ICU Bidi API
+ * + * This is (hypothetical) sample code that illustrates + * how the ICU Bidi API could be used to render a paragraph of text. + * Rendering code depends highly on the graphics system, + * therefore this sample code must make a lot of assumptions, + * which may or may not match any existing graphics system's properties. + * + *

The basic assumptions are:

+ *
    + *
  • Rendering is done from left to right on a horizontal line.
  • + *
  • A run of single-style, unidirectional text can be rendered at once.
  • + *
  • Such a run of text is passed to the graphics system with + * characters (code units) in logical order.
  • + *
  • The line-breaking algorithm is very complicated + * and Locale-dependent - + * and therefore its implementation omitted from this sample code.
  • + *
+ * + *
+ * \code
+ *#include 
+ *
+ *typedef enum {
+ *     styleNormal=0, styleSelected=1,
+ *     styleBold=2, styleItalics=4,
+ *     styleSuper=8, styleSub=16
+ *} Style;
+ *
+ *typedef struct { int32_t limit; Style style; } StyleRun;
+ *
+ *int getTextWidth(const UChar *text, int32_t start, int32_t limit,
+ *                  const StyleRun *styleRuns, int styleRunCount);
+ *
+ * // set *pLimit and *pStyleRunLimit for a line
+ * // from text[start] and from styleRuns[styleRunStart]
+ * // using ubidi_getLogicalRun(para, ...)
+ *void getLineBreak(const UChar *text, int32_t start, int32_t *pLimit,
+ *                  UBiDi *para,
+ *                  const StyleRun *styleRuns, int styleRunStart, int *pStyleRunLimit,
+ *                  int *pLineWidth);
+ *
+ * // render runs on a line sequentially, always from left to right
+ *
+ * // prepare rendering a new line
+ * void startLine(UBiDiDirection textDirection, int lineWidth);
+ *
+ * // render a run of text and advance to the right by the run width
+ * // the text[start..limit-1] is always in logical order
+ * void renderRun(const UChar *text, int32_t start, int32_t limit,
+ *               UBiDiDirection textDirection, Style style);
+ *
+ * // We could compute a cross-product
+ * // from the style runs with the directional runs
+ * // and then reorder it.
+ * // Instead, here we iterate over each run type
+ * // and render the intersections -
+ * // with shortcuts in simple (and common) cases.
+ * // renderParagraph() is the main function.
+ *
+ * // render a directional run with
+ * // (possibly) multiple style runs intersecting with it
+ * void renderDirectionalRun(const UChar *text,
+ *                           int32_t start, int32_t limit,
+ *                           UBiDiDirection direction,
+ *                           const StyleRun *styleRuns, int styleRunCount) {
+ *     int i;
+ *
+ *     // iterate over style runs
+ *     if(direction==UBIDI_LTR) {
+ *         int styleLimit;
+ *
+ *         for(i=0; ilimit) { styleLimit=limit; }
+ *                 renderRun(text, start, styleLimit,
+ *                           direction, styleRuns[i].style);
+ *                 if(styleLimit==limit) { break; }
+ *                 start=styleLimit;
+ *             }
+ *         }
+ *     } else {
+ *         int styleStart;
+ *
+ *         for(i=styleRunCount-1; i>=0; --i) {
+ *             if(i>0) {
+ *                 styleStart=styleRuns[i-1].limit;
+ *             } else {
+ *                 styleStart=0;
+ *             }
+ *             if(limit>=styleStart) {
+ *                 if(styleStart=length
+ *
+ *         width=getTextWidth(text, 0, length, styleRuns, styleRunCount);
+ *         if(width<=lineWidth) {
+ *             // everything fits onto one line
+ *
+ *            // prepare rendering a new line from either left or right
+ *             startLine(paraLevel, width);
+ *
+ *             renderLine(para, text, 0, length,
+ *                        styleRuns, styleRunCount, pErrorCode);
+ *         } else {
+ *             UBiDi *line;
+ *
+ *             // we need to render several lines
+ *             line=ubidi_openSized(length, 0, pErrorCode);
+ *             if(line!=NULL) {
+ *                 int32_t start=0, limit;
+ *                 int styleRunStart=0, styleRunLimit;
+ *
+ *                 for(;;) {
+ *                     limit=length;
+ *                     styleRunLimit=styleRunCount;
+ *                     getLineBreak(text, start, &limit, para,
+ *                                  styleRuns, styleRunStart, &styleRunLimit,
+ *                                 &width);
+ *                     ubidi_setLine(para, start, limit, line, pErrorCode);
+ *                     if(U_SUCCESS(*pErrorCode)) {
+ *                         // prepare rendering a new line
+ *                         // from either left or right
+ *                         startLine(paraLevel, width);
+ *
+ *                         renderLine(line, text, start, limit,
+ *                                    styleRuns+styleRunStart,
+ *                                    styleRunLimit-styleRunStart, pErrorCode);
+ *                     }
+ *                     if(limit==length) { break; }
+ *                     start=limit;
+ *                     styleRunStart=styleRunLimit-1;
+ *                     if(start>=styleRuns[styleRunStart].limit) {
+ *                         ++styleRunStart;
+ *                     }
+ *                 }
+ *
+ *                 ubidi_close(line);
+ *             }
+ *        }
+ *    }
+ *
+ *     ubidi_close(para);
+ *}
+ *\endcode
+ * 
+ */ + +/*DOCXX_TAG*/ +/*@{*/ + +/** + * UBiDiLevel is the type of the level values in this + * Bidi implementation. + * It holds an embedding level and indicates the visual direction + * by its bit 0 (even/odd value).

+ * + * It can also hold non-level values for the + * paraLevel and embeddingLevels + * arguments of ubidi_setPara(); there: + *

    + *
  • bit 7 of an embeddingLevels[] + * value indicates whether the using application is + * specifying the level of a character to override whatever the + * Bidi implementation would resolve it to.
  • + *
  • paraLevel can be set to the + * pseudo-level values UBIDI_DEFAULT_LTR + * and UBIDI_DEFAULT_RTL.
  • + *
+ * + * @see ubidi_setPara + * + *

The related constants are not real, valid level values. + * UBIDI_DEFAULT_XXX can be used to specify + * a default for the paragraph level for + * when the ubidi_setPara() function + * shall determine it but there is no + * strongly typed character in the input.

+ * + * Note that the value for UBIDI_DEFAULT_LTR is even + * and the one for UBIDI_DEFAULT_RTL is odd, + * just like with normal LTR and RTL level values - + * these special values are designed that way. Also, the implementation + * assumes that UBIDI_MAX_EXPLICIT_LEVEL is odd. + * + * Note: The numeric values of the related constants will not change: + * They are tied to the use of 7-bit byte values (plus the override bit) + * and of the UBiDiLevel=uint8_t data type in this API. + * + * @see UBIDI_DEFAULT_LTR + * @see UBIDI_DEFAULT_RTL + * @see UBIDI_LEVEL_OVERRIDE + * @see UBIDI_MAX_EXPLICIT_LEVEL + * @stable ICU 2.0 + */ +typedef uint8_t UBiDiLevel; + +/** Paragraph level setting.

+ * + * Constant indicating that the base direction depends on the first strong + * directional character in the text according to the Unicode Bidirectional + * Algorithm. If no strong directional character is present, + * then set the paragraph level to 0 (left-to-right).

+ * + * If this value is used in conjunction with reordering modes + * UBIDI_REORDER_INVERSE_LIKE_DIRECT or + * UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL, the text to reorder + * is assumed to be visual LTR, and the text after reordering is required + * to be the corresponding logical string with appropriate contextual + * direction. The direction of the result string will be RTL if either + * the righmost or leftmost strong character of the source text is RTL + * or Arabic Letter, the direction will be LTR otherwise.

+ * + * If reordering option UBIDI_OPTION_INSERT_MARKS is set, an RLM may + * be added at the beginning of the result string to ensure round trip + * (that the result string, when reordered back to visual, will produce + * the original source text). + * @see UBIDI_REORDER_INVERSE_LIKE_DIRECT + * @see UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL + * @stable ICU 2.0 + */ +#define UBIDI_DEFAULT_LTR 0xfe + +/** Paragraph level setting.

+ * + * Constant indicating that the base direction depends on the first strong + * directional character in the text according to the Unicode Bidirectional + * Algorithm. If no strong directional character is present, + * then set the paragraph level to 1 (right-to-left).

+ * + * If this value is used in conjunction with reordering modes + * UBIDI_REORDER_INVERSE_LIKE_DIRECT or + * UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL, the text to reorder + * is assumed to be visual LTR, and the text after reordering is required + * to be the corresponding logical string with appropriate contextual + * direction. The direction of the result string will be RTL if either + * the righmost or leftmost strong character of the source text is RTL + * or Arabic Letter, or if the text contains no strong character; + * the direction will be LTR otherwise.

+ * + * If reordering option UBIDI_OPTION_INSERT_MARKS is set, an RLM may + * be added at the beginning of the result string to ensure round trip + * (that the result string, when reordered back to visual, will produce + * the original source text). + * @see UBIDI_REORDER_INVERSE_LIKE_DIRECT + * @see UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL + * @stable ICU 2.0 + */ +#define UBIDI_DEFAULT_RTL 0xff + +/** + * Maximum explicit embedding level. + * Same as the max_depth value in the + * Unicode Bidirectional Algorithm. + * (The maximum resolved level can be up to UBIDI_MAX_EXPLICIT_LEVEL+1). + * @stable ICU 2.0 + */ +#define UBIDI_MAX_EXPLICIT_LEVEL 125 + +/** Bit flag for level input. + * Overrides directional properties. + * @stable ICU 2.0 + */ +#define UBIDI_LEVEL_OVERRIDE 0x80 + +/** + * Special value which can be returned by the mapping functions when a logical + * index has no corresponding visual index or vice-versa. This may happen + * for the logical-to-visual mapping of a Bidi control when option + * #UBIDI_OPTION_REMOVE_CONTROLS is specified. This can also happen + * for the visual-to-logical mapping of a Bidi mark (LRM or RLM) inserted + * by option #UBIDI_OPTION_INSERT_MARKS. + * @see ubidi_getVisualIndex + * @see ubidi_getVisualMap + * @see ubidi_getLogicalIndex + * @see ubidi_getLogicalMap + * @stable ICU 3.6 + */ +#define UBIDI_MAP_NOWHERE (-1) + +/** + * UBiDiDirection values indicate the text direction. + * @stable ICU 2.0 + */ +enum UBiDiDirection { + /** Left-to-right text. This is a 0 value. + *

    + *
  • As return value for ubidi_getDirection(), it means + * that the source string contains no right-to-left characters, or + * that the source string is empty and the paragraph level is even. + *
  • As return value for ubidi_getBaseDirection(), it + * means that the first strong character of the source string has + * a left-to-right direction. + *
+ * @stable ICU 2.0 + */ + UBIDI_LTR, + /** Right-to-left text. This is a 1 value. + *
    + *
  • As return value for ubidi_getDirection(), it means + * that the source string contains no left-to-right characters, or + * that the source string is empty and the paragraph level is odd. + *
  • As return value for ubidi_getBaseDirection(), it + * means that the first strong character of the source string has + * a right-to-left direction. + *
+ * @stable ICU 2.0 + */ + UBIDI_RTL, + /** Mixed-directional text. + *

As return value for ubidi_getDirection(), it means + * that the source string contains both left-to-right and + * right-to-left characters. + * @stable ICU 2.0 + */ + UBIDI_MIXED, + /** No strongly directional text. + *

As return value for ubidi_getBaseDirection(), it means + * that the source string is missing or empty, or contains neither left-to-right + * nor right-to-left characters. + * @stable ICU 4.6 + */ + UBIDI_NEUTRAL +}; + +/** @stable ICU 2.0 */ +typedef enum UBiDiDirection UBiDiDirection; + +/** + * Forward declaration of the UBiDi structure for the declaration of + * the API functions. Its fields are implementation-specific.

+ * This structure holds information about a paragraph (or multiple paragraphs) + * of text with Bidi-algorithm-related details, or about one line of + * such a paragraph.

+ * Reordering can be done on a line, or on one or more paragraphs which are + * then interpreted each as one single line. + * @stable ICU 2.0 + */ +struct UBiDi; + +/** @stable ICU 2.0 */ +typedef struct UBiDi UBiDi; + +/** + * Allocate a UBiDi structure. + * Such an object is initially empty. It is assigned + * the Bidi properties of a piece of text containing one or more paragraphs + * by ubidi_setPara() + * or the Bidi properties of a line within a paragraph by + * ubidi_setLine().

+ * This object can be reused for as long as it is not deallocated + * by calling ubidi_close().

+ * ubidi_setPara() and ubidi_setLine() will allocate + * additional memory for internal structures as necessary. + * + * @return An empty UBiDi object. + * @stable ICU 2.0 + */ +U_CAPI UBiDi * U_EXPORT2 +ubidi_open(void); + +/** + * Allocate a UBiDi structure with preallocated memory + * for internal structures. + * This function provides a UBiDi object like ubidi_open() + * with no arguments, but it also preallocates memory for internal structures + * according to the sizings supplied by the caller.

+ * Subsequent functions will not allocate any more memory, and are thus + * guaranteed not to fail because of lack of memory.

+ * The preallocation can be limited to some of the internal memory + * by setting some values to 0 here. That means that if, e.g., + * maxRunCount cannot be reasonably predetermined and should not + * be set to maxLength (the only failproof value) to avoid + * wasting memory, then maxRunCount could be set to 0 here + * and the internal structures that are associated with it will be allocated + * on demand, just like with ubidi_open(). + * + * @param maxLength is the maximum text or line length that internal memory + * will be preallocated for. An attempt to associate this object with a + * longer text will fail, unless this value is 0, which leaves the allocation + * up to the implementation. + * + * @param maxRunCount is the maximum anticipated number of same-level runs + * that internal memory will be preallocated for. An attempt to access + * visual runs on an object that was not preallocated for as many runs + * as the text was actually resolved to will fail, + * unless this value is 0, which leaves the allocation up to the implementation.

+ * The number of runs depends on the actual text and maybe anywhere between + * 1 and maxLength. It is typically small. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return An empty UBiDi object with preallocated memory. + * @stable ICU 2.0 + */ +U_CAPI UBiDi * U_EXPORT2 +ubidi_openSized(int32_t maxLength, int32_t maxRunCount, UErrorCode *pErrorCode); + +/** + * ubidi_close() must be called to free the memory + * associated with a UBiDi object.

+ * + * Important: + * A parent UBiDi object must not be destroyed or reused if + * it still has children. + * If a UBiDi object has become the child + * of another one (its parent) by calling + * ubidi_setLine(), then the child object must + * be destroyed (closed) or reused (by calling + * ubidi_setPara() or ubidi_setLine()) + * before the parent object. + * + * @param pBiDi is a UBiDi object. + * + * @see ubidi_setPara + * @see ubidi_setLine + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubidi_close(UBiDi *pBiDi); + + +/** + * Modify the operation of the Bidi algorithm such that it + * approximates an "inverse Bidi" algorithm. This function + * must be called before ubidi_setPara(). + * + *

The normal operation of the Bidi algorithm as described + * in the Unicode Technical Report is to take text stored in logical + * (keyboard, typing) order and to determine the reordering of it for visual + * rendering. + * Some legacy systems store text in visual order, and for operations + * with standard, Unicode-based algorithms, the text needs to be transformed + * to logical order. This is effectively the inverse algorithm of the + * described Bidi algorithm. Note that there is no standard algorithm for + * this "inverse Bidi" and that the current implementation provides only an + * approximation of "inverse Bidi".

+ * + *

With isInverse set to true, + * this function changes the behavior of some of the subsequent functions + * in a way that they can be used for the inverse Bidi algorithm. + * Specifically, runs of text with numeric characters will be treated in a + * special way and may need to be surrounded with LRM characters when they are + * written in reordered sequence.

+ * + *

Output runs should be retrieved using ubidi_getVisualRun(). + * Since the actual input for "inverse Bidi" is visually ordered text and + * ubidi_getVisualRun() gets the reordered runs, these are actually + * the runs of the logically ordered output.

+ * + *

Calling this function with argument isInverse set to + * true is equivalent to calling + * ubidi_setReorderingMode with argument + * reorderingMode + * set to #UBIDI_REORDER_INVERSE_NUMBERS_AS_L.
+ * Calling this function with argument isInverse set to + * false is equivalent to calling + * ubidi_setReorderingMode with argument + * reorderingMode + * set to #UBIDI_REORDER_DEFAULT. + * + * @param pBiDi is a UBiDi object. + * + * @param isInverse specifies "forward" or "inverse" Bidi operation. + * + * @see ubidi_setPara + * @see ubidi_writeReordered + * @see ubidi_setReorderingMode + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubidi_setInverse(UBiDi *pBiDi, UBool isInverse); + +/** + * Is this Bidi object set to perform the inverse Bidi algorithm? + *

Note: calling this function after setting the reordering mode with + * ubidi_setReorderingMode will return true if the + * reordering mode was set to #UBIDI_REORDER_INVERSE_NUMBERS_AS_L, + * false for all other values.

+ * + * @param pBiDi is a UBiDi object. + * @return true if the Bidi object is set to perform the inverse Bidi algorithm + * by handling numbers as L. + * + * @see ubidi_setInverse + * @see ubidi_setReorderingMode + * @stable ICU 2.0 + */ + +U_CAPI UBool U_EXPORT2 +ubidi_isInverse(UBiDi *pBiDi); + +/** + * Specify whether block separators must be allocated level zero, + * so that successive paragraphs will progress from left to right. + * This function must be called before ubidi_setPara(). + * Paragraph separators (B) may appear in the text. Setting them to level zero + * means that all paragraph separators (including one possibly appearing + * in the last text position) are kept in the reordered text after the text + * that they follow in the source text. + * When this feature is not enabled, a paragraph separator at the last + * position of the text before reordering will go to the first position + * of the reordered text when the paragraph level is odd. + * + * @param pBiDi is a UBiDi object. + * + * @param orderParagraphsLTR specifies whether paragraph separators (B) must + * receive level 0, so that successive paragraphs progress from left to right. + * + * @see ubidi_setPara + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +ubidi_orderParagraphsLTR(UBiDi *pBiDi, UBool orderParagraphsLTR); + +/** + * Is this Bidi object set to allocate level 0 to block separators so that + * successive paragraphs progress from left to right? + * + * @param pBiDi is a UBiDi object. + * @return true if the Bidi object is set to allocate level 0 to block + * separators. + * + * @see ubidi_orderParagraphsLTR + * @stable ICU 3.4 + */ +U_CAPI UBool U_EXPORT2 +ubidi_isOrderParagraphsLTR(UBiDi *pBiDi); + +/** + * UBiDiReorderingMode values indicate which variant of the Bidi + * algorithm to use. + * + * @see ubidi_setReorderingMode + * @stable ICU 3.6 + */ +typedef enum UBiDiReorderingMode { + /** Regular Logical to Visual Bidi algorithm according to Unicode. + * This is a 0 value. + * @stable ICU 3.6 */ + UBIDI_REORDER_DEFAULT = 0, + /** Logical to Visual algorithm which handles numbers in a way which + * mimics the behavior of Windows XP. + * @stable ICU 3.6 */ + UBIDI_REORDER_NUMBERS_SPECIAL, + /** Logical to Visual algorithm grouping numbers with adjacent R characters + * (reversible algorithm). + * @stable ICU 3.6 */ + UBIDI_REORDER_GROUP_NUMBERS_WITH_R, + /** Reorder runs only to transform a Logical LTR string to the Logical RTL + * string with the same display, or vice-versa.
+ * If this mode is set together with option + * #UBIDI_OPTION_INSERT_MARKS, some Bidi controls in the source + * text may be removed and other controls may be added to produce the + * minimum combination which has the required display. + * @stable ICU 3.6 */ + UBIDI_REORDER_RUNS_ONLY, + /** Visual to Logical algorithm which handles numbers like L + * (same algorithm as selected by ubidi_setInverse(true). + * @see ubidi_setInverse + * @stable ICU 3.6 */ + UBIDI_REORDER_INVERSE_NUMBERS_AS_L, + /** Visual to Logical algorithm equivalent to the regular Logical to Visual + * algorithm. + * @stable ICU 3.6 */ + UBIDI_REORDER_INVERSE_LIKE_DIRECT, + /** Inverse Bidi (Visual to Logical) algorithm for the + * UBIDI_REORDER_NUMBERS_SPECIAL Bidi algorithm. + * @stable ICU 3.6 */ + UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL, +} UBiDiReorderingMode; + +/** + * Modify the operation of the Bidi algorithm such that it implements some + * variant to the basic Bidi algorithm or approximates an "inverse Bidi" + * algorithm, depending on different values of the "reordering mode". + * This function must be called before ubidi_setPara(), and stays + * in effect until called again with a different argument. + * + *

The normal operation of the Bidi algorithm as described + * in the Unicode Standard Annex #9 is to take text stored in logical + * (keyboard, typing) order and to determine how to reorder it for visual + * rendering.

+ * + *

With the reordering mode set to a value other than + * #UBIDI_REORDER_DEFAULT, this function changes the behavior of + * some of the subsequent functions in a way such that they implement an + * inverse Bidi algorithm or some other algorithm variants.

+ * + *

Some legacy systems store text in visual order, and for operations + * with standard, Unicode-based algorithms, the text needs to be transformed + * into logical order. This is effectively the inverse algorithm of the + * described Bidi algorithm. Note that there is no standard algorithm for + * this "inverse Bidi", so a number of variants are implemented here.

+ * + *

In other cases, it may be desirable to emulate some variant of the + * Logical to Visual algorithm (e.g. one used in MS Windows), or perform a + * Logical to Logical transformation.

+ * + *
    + *
  • When the reordering mode is set to #UBIDI_REORDER_DEFAULT, + * the standard Bidi Logical to Visual algorithm is applied.
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_NUMBERS_SPECIAL, + * the algorithm used to perform Bidi transformations when calling + * ubidi_setPara should approximate the algorithm used in + * Microsoft Windows XP rather than strictly conform to the Unicode Bidi + * algorithm. + *
    + * The differences between the basic algorithm and the algorithm addressed + * by this option are as follows: + *
      + *
    • Within text at an even embedding level, the sequence "123AB" + * (where AB represent R or AL letters) is transformed to "123BA" by the + * Unicode algorithm and to "BA123" by the Windows algorithm.
    • + *
    • Arabic-Indic numbers (AN) are handled by the Windows algorithm just + * like regular numbers (EN).
    • + *
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_GROUP_NUMBERS_WITH_R, + * numbers located between LTR text and RTL text are associated with the RTL + * text. For instance, an LTR paragraph with content "abc 123 DEF" (where + * upper case letters represent RTL characters) will be transformed to + * "abc FED 123" (and not "abc 123 FED"), "DEF 123 abc" will be transformed + * to "123 FED abc" and "123 FED abc" will be transformed to "DEF 123 abc". + * This makes the algorithm reversible and makes it useful when round trip + * (from visual to logical and back to visual) must be achieved without + * adding LRM characters. However, this is a variation from the standard + * Unicode Bidi algorithm.
    + * The source text should not contain Bidi control characters other than LRM + * or RLM.
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_RUNS_ONLY, + * a "Logical to Logical" transformation must be performed: + *
      + *
    • If the default text level of the source text (argument paraLevel + * in ubidi_setPara) is even, the source text will be handled as + * LTR logical text and will be transformed to the RTL logical text which has + * the same LTR visual display.
    • + *
    • If the default level of the source text is odd, the source text + * will be handled as RTL logical text and will be transformed to the + * LTR logical text which has the same LTR visual display.
    • + *
    + * This mode may be needed when logical text which is basically Arabic or + * Hebrew, with possible included numbers or phrases in English, has to be + * displayed as if it had an even embedding level (this can happen if the + * displaying application treats all text as if it was basically LTR). + *
    + * This mode may also be needed in the reverse case, when logical text which is + * basically English, with possible included phrases in Arabic or Hebrew, has to + * be displayed as if it had an odd embedding level. + *
    + * Both cases could be handled by adding LRE or RLE at the head of the text, + * if the display subsystem supports these formatting controls. If it does not, + * the problem may be handled by transforming the source text in this mode + * before displaying it, so that it will be displayed properly.
    + * The source text should not contain Bidi control characters other than LRM + * or RLM.
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_INVERSE_NUMBERS_AS_L, an "inverse Bidi" algorithm + * is applied. + * Runs of text with numeric characters will be treated like LTR letters and + * may need to be surrounded with LRM characters when they are written in + * reordered sequence (the option #UBIDI_INSERT_LRM_FOR_NUMERIC can + * be used with function ubidi_writeReordered to this end. This + * mode is equivalent to calling ubidi_setInverse() with + * argument isInverse set to true.
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_INVERSE_LIKE_DIRECT, the "direct" Logical to Visual + * Bidi algorithm is used as an approximation of an "inverse Bidi" algorithm. + * This mode is similar to mode #UBIDI_REORDER_INVERSE_NUMBERS_AS_L + * but is closer to the regular Bidi algorithm. + *
    + * For example, an LTR paragraph with the content "FED 123 456 CBA" (where + * upper case represents RTL characters) will be transformed to + * "ABC 456 123 DEF", as opposed to "DEF 123 456 ABC" + * with mode UBIDI_REORDER_INVERSE_NUMBERS_AS_L.
    + * When used in conjunction with option + * #UBIDI_OPTION_INSERT_MARKS, this mode generally + * adds Bidi marks to the output significantly more sparingly than mode + * #UBIDI_REORDER_INVERSE_NUMBERS_AS_L with option + * #UBIDI_INSERT_LRM_FOR_NUMERIC in calls to + * ubidi_writeReordered.
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL, the Logical to Visual + * Bidi algorithm used in Windows XP is used as an approximation of an "inverse Bidi" algorithm. + *
    + * For example, an LTR paragraph with the content "abc FED123" (where + * upper case represents RTL characters) will be transformed to "abc 123DEF."
  • + *
+ * + *

In all the reordering modes specifying an "inverse Bidi" algorithm + * (i.e. those with a name starting with UBIDI_REORDER_INVERSE), + * output runs should be retrieved using + * ubidi_getVisualRun(), and the output text with + * ubidi_writeReordered(). The caller should keep in mind that in + * "inverse Bidi" modes the input is actually visually ordered text and + * reordered output returned by ubidi_getVisualRun() or + * ubidi_writeReordered() are actually runs or character string + * of logically ordered output.
+ * For all the "inverse Bidi" modes, the source text should not contain + * Bidi control characters other than LRM or RLM.

+ * + *

Note that option #UBIDI_OUTPUT_REVERSE of + * ubidi_writeReordered has no useful meaning and should not be + * used in conjunction with any value of the reordering mode specifying + * "inverse Bidi" or with value UBIDI_REORDER_RUNS_ONLY. + * + * @param pBiDi is a UBiDi object. + * @param reorderingMode specifies the required variant of the Bidi algorithm. + * + * @see UBiDiReorderingMode + * @see ubidi_setInverse + * @see ubidi_setPara + * @see ubidi_writeReordered + * @stable ICU 3.6 + */ +U_CAPI void U_EXPORT2 +ubidi_setReorderingMode(UBiDi *pBiDi, UBiDiReorderingMode reorderingMode); + +/** + * What is the requested reordering mode for a given Bidi object? + * + * @param pBiDi is a UBiDi object. + * @return the current reordering mode of the Bidi object + * @see ubidi_setReorderingMode + * @stable ICU 3.6 + */ +U_CAPI UBiDiReorderingMode U_EXPORT2 +ubidi_getReorderingMode(UBiDi *pBiDi); + +/** + * UBiDiReorderingOption values indicate which options are + * specified to affect the Bidi algorithm. + * + * @see ubidi_setReorderingOptions + * @stable ICU 3.6 + */ +typedef enum UBiDiReorderingOption { + /** + * option value for ubidi_setReorderingOptions: + * disable all the options which can be set with this function + * @see ubidi_setReorderingOptions + * @stable ICU 3.6 + */ + UBIDI_OPTION_DEFAULT = 0, + + /** + * option bit for ubidi_setReorderingOptions: + * insert Bidi marks (LRM or RLM) when needed to ensure correct result of + * a reordering to a Logical order + * + *

This option must be set or reset before calling + * ubidi_setPara.

+ * + *

This option is significant only with reordering modes which generate + * a result with Logical order, specifically:

+ *
    + *
  • #UBIDI_REORDER_RUNS_ONLY
  • + *
  • #UBIDI_REORDER_INVERSE_NUMBERS_AS_L
  • + *
  • #UBIDI_REORDER_INVERSE_LIKE_DIRECT
  • + *
  • #UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL
  • + *
+ * + *

If this option is set in conjunction with reordering mode + * #UBIDI_REORDER_INVERSE_NUMBERS_AS_L or with calling + * ubidi_setInverse(true), it implies + * option #UBIDI_INSERT_LRM_FOR_NUMERIC + * in calls to function ubidi_writeReordered().

+ * + *

For other reordering modes, a minimum number of LRM or RLM characters + * will be added to the source text after reordering it so as to ensure + * round trip, i.e. when applying the inverse reordering mode on the + * resulting logical text with removal of Bidi marks + * (option #UBIDI_OPTION_REMOVE_CONTROLS set before calling + * ubidi_setPara() or option #UBIDI_REMOVE_BIDI_CONTROLS + * in ubidi_writeReordered), the result will be identical to the + * source text in the first transformation. + * + *

This option will be ignored if specified together with option + * #UBIDI_OPTION_REMOVE_CONTROLS. It inhibits option + * UBIDI_REMOVE_BIDI_CONTROLS in calls to function + * ubidi_writeReordered() and it implies option + * #UBIDI_INSERT_LRM_FOR_NUMERIC in calls to function + * ubidi_writeReordered() if the reordering mode is + * #UBIDI_REORDER_INVERSE_NUMBERS_AS_L.

+ * + * @see ubidi_setReorderingMode + * @see ubidi_setReorderingOptions + * @stable ICU 3.6 + */ + UBIDI_OPTION_INSERT_MARKS = 1, + + /** + * option bit for ubidi_setReorderingOptions: + * remove Bidi control characters + * + *

This option must be set or reset before calling + * ubidi_setPara.

+ * + *

This option nullifies option #UBIDI_OPTION_INSERT_MARKS. + * It inhibits option #UBIDI_INSERT_LRM_FOR_NUMERIC in calls + * to function ubidi_writeReordered() and it implies option + * #UBIDI_REMOVE_BIDI_CONTROLS in calls to that function.

+ * + * @see ubidi_setReorderingMode + * @see ubidi_setReorderingOptions + * @stable ICU 3.6 + */ + UBIDI_OPTION_REMOVE_CONTROLS = 2, + + /** + * option bit for ubidi_setReorderingOptions: + * process the output as part of a stream to be continued + * + *

This option must be set or reset before calling + * ubidi_setPara.

+ * + *

This option specifies that the caller is interested in processing large + * text object in parts. + * The results of the successive calls are expected to be concatenated by the + * caller. Only the call for the last part will have this option bit off.

+ * + *

When this option bit is on, ubidi_setPara() may process + * less than the full source text in order to truncate the text at a meaningful + * boundary. The caller should call ubidi_getProcessedLength() + * immediately after calling ubidi_setPara() in order to + * determine how much of the source text has been processed. + * Source text beyond that length should be resubmitted in following calls to + * ubidi_setPara. The processed length may be less than + * the length of the source text if a character preceding the last character of + * the source text constitutes a reasonable boundary (like a block separator) + * for text to be continued.
+ * If the last character of the source text constitutes a reasonable + * boundary, the whole text will be processed at once.
+ * If nowhere in the source text there exists + * such a reasonable boundary, the processed length will be zero.
+ * The caller should check for such an occurrence and do one of the following: + *

  • submit a larger amount of text with a better chance to include + * a reasonable boundary.
  • + *
  • resubmit the same text after turning off option + * UBIDI_OPTION_STREAMING.
+ * In all cases, this option should be turned off before processing the last + * part of the text.

+ * + *

When the UBIDI_OPTION_STREAMING option is used, + * it is recommended to call ubidi_orderParagraphsLTR() with + * argument orderParagraphsLTR set to true before + * calling ubidi_setPara so that later paragraphs may be + * concatenated to previous paragraphs on the right.

+ * + * @see ubidi_setReorderingMode + * @see ubidi_setReorderingOptions + * @see ubidi_getProcessedLength + * @see ubidi_orderParagraphsLTR + * @stable ICU 3.6 + */ + UBIDI_OPTION_STREAMING = 4 +} UBiDiReorderingOption; + +/** + * Specify which of the reordering options + * should be applied during Bidi transformations. + * + * @param pBiDi is a UBiDi object. + * @param reorderingOptions is a combination of zero or more of the following + * options: + * #UBIDI_OPTION_DEFAULT, #UBIDI_OPTION_INSERT_MARKS, + * #UBIDI_OPTION_REMOVE_CONTROLS, #UBIDI_OPTION_STREAMING. + * + * @see ubidi_getReorderingOptions + * @stable ICU 3.6 + */ +U_CAPI void U_EXPORT2 +ubidi_setReorderingOptions(UBiDi *pBiDi, uint32_t reorderingOptions); + +/** + * What are the reordering options applied to a given Bidi object? + * + * @param pBiDi is a UBiDi object. + * @return the current reordering options of the Bidi object + * @see ubidi_setReorderingOptions + * @stable ICU 3.6 + */ +U_CAPI uint32_t U_EXPORT2 +ubidi_getReorderingOptions(UBiDi *pBiDi); + +/** + * Set the context before a call to ubidi_setPara().

+ * + * ubidi_setPara() computes the left-right directionality for a given piece + * of text which is supplied as one of its arguments. Sometimes this piece + * of text (the "main text") should be considered in context, because text + * appearing before ("prologue") and/or after ("epilogue") the main text + * may affect the result of this computation.

+ * + * This function specifies the prologue and/or the epilogue for the next + * call to ubidi_setPara(). The characters specified as prologue and + * epilogue should not be modified by the calling program until the call + * to ubidi_setPara() has returned. If successive calls to ubidi_setPara() + * all need specification of a context, ubidi_setContext() must be called + * before each call to ubidi_setPara(). In other words, a context is not + * "remembered" after the following successful call to ubidi_setPara().

+ * + * If a call to ubidi_setPara() specifies UBIDI_DEFAULT_LTR or + * UBIDI_DEFAULT_RTL as paraLevel and is preceded by a call to + * ubidi_setContext() which specifies a prologue, the paragraph level will + * be computed taking in consideration the text in the prologue.

+ * + * When ubidi_setPara() is called without a previous call to + * ubidi_setContext, the main text is handled as if preceded and followed + * by strong directional characters at the current paragraph level. + * Calling ubidi_setContext() with specification of a prologue will change + * this behavior by handling the main text as if preceded by the last + * strong character appearing in the prologue, if any. + * Calling ubidi_setContext() with specification of an epilogue will change + * the behavior of ubidi_setPara() by handling the main text as if followed + * by the first strong character or digit appearing in the epilogue, if any.

+ * + * Note 1: if ubidi_setContext is called repeatedly without + * calling ubidi_setPara, the earlier calls have no effect, + * only the last call will be remembered for the next call to + * ubidi_setPara.

+ * + * Note 2: calling ubidi_setContext(pBiDi, NULL, 0, NULL, 0, &errorCode) + * cancels any previous setting of non-empty prologue or epilogue. + * The next call to ubidi_setPara() will process no + * prologue or epilogue.

+ * + * Note 3: users must be aware that even after setting the context + * before a call to ubidi_setPara() to perform e.g. a logical to visual + * transformation, the resulting string may not be identical to what it + * would have been if all the text, including prologue and epilogue, had + * been processed together.
+ * Example (upper case letters represent RTL characters):
+ *   prologue = "abc DE"
+ *   epilogue = none
+ *   main text = "FGH xyz"
+ *   paraLevel = UBIDI_LTR
+ *   display without prologue = "HGF xyz" + * ("HGF" is adjacent to "xyz")
+ *   display with prologue = "abc HGFED xyz" + * ("HGF" is not adjacent to "xyz")
+ * + * @param pBiDi is a paragraph UBiDi object. + * + * @param prologue is a pointer to the text which precedes the text that + * will be specified in a coming call to ubidi_setPara(). + * If there is no prologue to consider, then proLength + * must be zero and this pointer can be NULL. + * + * @param proLength is the length of the prologue; if proLength==-1 + * then the prologue must be zero-terminated. + * Otherwise proLength must be >= 0. If proLength==0, it means + * that there is no prologue to consider. + * + * @param epilogue is a pointer to the text which follows the text that + * will be specified in a coming call to ubidi_setPara(). + * If there is no epilogue to consider, then epiLength + * must be zero and this pointer can be NULL. + * + * @param epiLength is the length of the epilogue; if epiLength==-1 + * then the epilogue must be zero-terminated. + * Otherwise epiLength must be >= 0. If epiLength==0, it means + * that there is no epilogue to consider. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @see ubidi_setPara + * @stable ICU 4.8 + */ +U_CAPI void U_EXPORT2 +ubidi_setContext(UBiDi *pBiDi, + const UChar *prologue, int32_t proLength, + const UChar *epilogue, int32_t epiLength, + UErrorCode *pErrorCode); + +/** + * Perform the Unicode Bidi algorithm. It is defined in the + * Unicode Standard Annex #9, + * version 13, + * also described in The Unicode Standard, Version 4.0 .

+ * + * This function takes a piece of plain text containing one or more paragraphs, + * with or without externally specified embedding levels from styled + * text and computes the left-right-directionality of each character.

+ * + * If the entire text is all of the same directionality, then + * the function may not perform all the steps described by the algorithm, + * i.e., some levels may not be the same as if all steps were performed. + * This is not relevant for unidirectional text.
+ * For example, in pure LTR text with numbers the numbers would get + * a resolved level of 2 higher than the surrounding text according to + * the algorithm. This implementation may set all resolved levels to + * the same value in such a case.

+ * + * The text can be composed of multiple paragraphs. Occurrence of a block + * separator in the text terminates a paragraph, and whatever comes next starts + * a new paragraph. The exception to this rule is when a Carriage Return (CR) + * is followed by a Line Feed (LF). Both CR and LF are block separators, but + * in that case, the pair of characters is considered as terminating the + * preceding paragraph, and a new paragraph will be started by a character + * coming after the LF. + * + * @param pBiDi A UBiDi object allocated with ubidi_open() + * which will be set to contain the reordering information, + * especially the resolved levels for all the characters in text. + * + * @param text is a pointer to the text that the Bidi algorithm will be performed on. + * This pointer is stored in the UBiDi object and can be retrieved + * with ubidi_getText().
+ * Note: the text must be (at least) length long. + * + * @param length is the length of the text; if length==-1 then + * the text must be zero-terminated. + * + * @param paraLevel specifies the default level for the text; + * it is typically 0 (LTR) or 1 (RTL). + * If the function shall determine the paragraph level from the text, + * then paraLevel can be set to + * either #UBIDI_DEFAULT_LTR + * or #UBIDI_DEFAULT_RTL; if the text contains multiple + * paragraphs, the paragraph level shall be determined separately for + * each paragraph; if a paragraph does not include any strongly typed + * character, then the desired default is used (0 for LTR or 1 for RTL). + * Any other value between 0 and #UBIDI_MAX_EXPLICIT_LEVEL + * is also valid, with odd levels indicating RTL. + * + * @param embeddingLevels (in) may be used to preset the embedding and override levels, + * ignoring characters like LRE and PDF in the text. + * A level overrides the directional property of its corresponding + * (same index) character if the level has the + * #UBIDI_LEVEL_OVERRIDE bit set.

+ * Aside from that bit, it must be + * paraLevel<=embeddingLevels[]<=UBIDI_MAX_EXPLICIT_LEVEL, + * except that level 0 is always allowed. + * Level 0 for a paragraph separator prevents reordering of paragraphs; + * this only works reliably if #UBIDI_LEVEL_OVERRIDE + * is also set for paragraph separators. + * Level 0 for other characters is treated as a wildcard + * and is lifted up to the resolved level of the surrounding paragraph.

+ * Caution: A copy of this pointer, not of the levels, + * will be stored in the UBiDi object; + * the embeddingLevels array must not be + * deallocated before the UBiDi structure is destroyed or reused, + * and the embeddingLevels + * should not be modified to avoid unexpected results on subsequent Bidi operations. + * However, the ubidi_setPara() and + * ubidi_setLine() functions may modify some or all of the levels.

+ * After the UBiDi object is reused or destroyed, the caller + * must take care of the deallocation of the embeddingLevels array.

+ * Note: the embeddingLevels array must be + * at least length long. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pErrorCode must be a valid pointer to an error code value. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubidi_setPara(UBiDi *pBiDi, const UChar *text, int32_t length, + UBiDiLevel paraLevel, UBiDiLevel *embeddingLevels, + UErrorCode *pErrorCode); + +/** + * ubidi_setLine() sets a UBiDi to + * contain the reordering information, especially the resolved levels, + * for all the characters in a line of text. This line of text is + * specified by referring to a UBiDi object representing + * this information for a piece of text containing one or more paragraphs, + * and by specifying a range of indexes in this text.

+ * In the new line object, the indexes will range from 0 to limit-start-1.

+ * + * This is used after calling ubidi_setPara() + * for a piece of text, and after line-breaking on that text. + * It is not necessary if each paragraph is treated as a single line.

+ * + * After line-breaking, rules (L1) and (L2) for the treatment of + * trailing WS and for reordering are performed on + * a UBiDi object that represents a line.

+ * + * Important: pLineBiDi shares data with + * pParaBiDi. + * You must destroy or reuse pLineBiDi before pParaBiDi. + * In other words, you must destroy or reuse the UBiDi object for a line + * before the object for its parent paragraph.

+ * + * The text pointer that was stored in pParaBiDi is also copied, + * and start is added to it so that it points to the beginning of the + * line for this object. + * + * @param pParaBiDi is the parent paragraph object. It must have been set + * by a successful call to ubidi_setPara. + * + * @param start is the line's first index into the text. + * + * @param limit is just behind the line's last index into the text + * (its last index +1).
+ * It must be 0<=startcontaining paragraph limit. + * If the specified line crosses a paragraph boundary, the function + * will terminate with error code U_ILLEGAL_ARGUMENT_ERROR. + * + * @param pLineBiDi is the object that will now represent a line of the text. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @see ubidi_setPara + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubidi_setLine(const UBiDi *pParaBiDi, + int32_t start, int32_t limit, + UBiDi *pLineBiDi, + UErrorCode *pErrorCode); + +/** + * Get the directionality of the text. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @return a value of UBIDI_LTR, UBIDI_RTL + * or UBIDI_MIXED + * that indicates if the entire text + * represented by this object is unidirectional, + * and which direction, or if it is mixed-directional. + * Note - The value UBIDI_NEUTRAL is never returned from this method. + * + * @see UBiDiDirection + * @stable ICU 2.0 + */ +U_CAPI UBiDiDirection U_EXPORT2 +ubidi_getDirection(const UBiDi *pBiDi); + +/** + * Gets the base direction of the text provided according + * to the Unicode Bidirectional Algorithm. The base direction + * is derived from the first character in the string with bidirectional + * character type L, R, or AL. If the first such character has type L, + * UBIDI_LTR is returned. If the first such character has + * type R or AL, UBIDI_RTL is returned. If the string does + * not contain any character of these types, then + * UBIDI_NEUTRAL is returned. + * + * This is a lightweight function for use when only the base direction + * is needed and no further bidi processing of the text is needed. + * + * @param text is a pointer to the text whose base + * direction is needed. + * Note: the text must be (at least) @c length long. + * + * @param length is the length of the text; + * if length==-1 then the text + * must be zero-terminated. + * + * @return UBIDI_LTR, UBIDI_RTL, + * UBIDI_NEUTRAL + * + * @see UBiDiDirection + * @stable ICU 4.6 + */ +U_CAPI UBiDiDirection U_EXPORT2 +ubidi_getBaseDirection(const UChar *text, int32_t length ); + +/** + * Get the pointer to the text. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @return The pointer to the text that the UBiDi object was created for. + * + * @see ubidi_setPara + * @see ubidi_setLine + * @stable ICU 2.0 + */ +U_CAPI const UChar * U_EXPORT2 +ubidi_getText(const UBiDi *pBiDi); + +/** + * Get the length of the text. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @return The length of the text that the UBiDi object was created for. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubidi_getLength(const UBiDi *pBiDi); + +/** + * Get the paragraph level of the text. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @return The paragraph level. If there are multiple paragraphs, their + * level may vary if the required paraLevel is UBIDI_DEFAULT_LTR or + * UBIDI_DEFAULT_RTL. In that case, the level of the first paragraph + * is returned. + * + * @see UBiDiLevel + * @see ubidi_getParagraph + * @see ubidi_getParagraphByIndex + * @stable ICU 2.0 + */ +U_CAPI UBiDiLevel U_EXPORT2 +ubidi_getParaLevel(const UBiDi *pBiDi); + +/** + * Get the number of paragraphs. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @return The number of paragraphs. + * @stable ICU 3.4 + */ +U_CAPI int32_t U_EXPORT2 +ubidi_countParagraphs(UBiDi *pBiDi); + +/** + * Get a paragraph, given a position within the text. + * This function returns information about a paragraph.
+ * Note: if the paragraph index is known, it is more efficient to + * retrieve the paragraph information using ubidi_getParagraphByIndex().

+ * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param charIndex is the index of a character within the text, in the + * range [0..ubidi_getProcessedLength(pBiDi)-1]. + * + * @param pParaStart will receive the index of the first character of the + * paragraph in the text. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pParaLimit will receive the limit of the paragraph. + * The l-value that you point to here may be the + * same expression (variable) as the one for + * charIndex. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pParaLevel will receive the level of the paragraph. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The index of the paragraph containing the specified position. + * + * @see ubidi_getProcessedLength + * @stable ICU 3.4 + */ +U_CAPI int32_t U_EXPORT2 +ubidi_getParagraph(const UBiDi *pBiDi, int32_t charIndex, int32_t *pParaStart, + int32_t *pParaLimit, UBiDiLevel *pParaLevel, + UErrorCode *pErrorCode); + +/** + * Get a paragraph, given the index of this paragraph. + * + * This function returns information about a paragraph.

+ * + * @param pBiDi is the paragraph UBiDi object. + * + * @param paraIndex is the number of the paragraph, in the + * range [0..ubidi_countParagraphs(pBiDi)-1]. + * + * @param pParaStart will receive the index of the first character of the + * paragraph in the text. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pParaLimit will receive the limit of the paragraph. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pParaLevel will receive the level of the paragraph. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +ubidi_getParagraphByIndex(const UBiDi *pBiDi, int32_t paraIndex, + int32_t *pParaStart, int32_t *pParaLimit, + UBiDiLevel *pParaLevel, UErrorCode *pErrorCode); + +/** + * Get the level for one character. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param charIndex the index of a character. It must be in the range + * [0..ubidi_getProcessedLength(pBiDi)]. + * + * @return The level for the character at charIndex (0 if charIndex is not + * in the valid range). + * + * @see UBiDiLevel + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_CAPI UBiDiLevel U_EXPORT2 +ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex); + +/** + * Get an array of levels for each character.

+ * + * Note that this function may allocate memory under some + * circumstances, unlike ubidi_getLevelAt(). + * + * @param pBiDi is the paragraph or line UBiDi object, whose + * text length must be strictly positive. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The levels array for the text, + * or NULL if an error occurs. + * + * @see UBiDiLevel + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_CAPI const UBiDiLevel * U_EXPORT2 +ubidi_getLevels(UBiDi *pBiDi, UErrorCode *pErrorCode); + +/** + * Get a logical run. + * This function returns information about a run and is used + * to retrieve runs in logical order.

+ * This is especially useful for line-breaking on a paragraph. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param logicalPosition is a logical position within the source text. + * + * @param pLogicalLimit will receive the limit of the corresponding run. + * The l-value that you point to here may be the + * same expression (variable) as the one for + * logicalPosition. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pLevel will receive the level of the corresponding run. + * This pointer can be NULL if this + * value is not necessary. + * + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubidi_getLogicalRun(const UBiDi *pBiDi, int32_t logicalPosition, + int32_t *pLogicalLimit, UBiDiLevel *pLevel); + +/** + * Get the number of runs. + * This function may invoke the actual reordering on the + * UBiDi object, after ubidi_setPara() + * may have resolved only the levels of the text. Therefore, + * ubidi_countRuns() may have to allocate memory, + * and may fail doing so. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The number of runs. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubidi_countRuns(UBiDi *pBiDi, UErrorCode *pErrorCode); + +/** + * Get one run's logical start, length, and directionality, + * which can be 0 for LTR or 1 for RTL. + * In an RTL run, the character at the logical start is + * visually on the right of the displayed run. + * The length is the number of characters in the run.

+ * ubidi_countRuns() should be called + * before the runs are retrieved. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param runIndex is the number of the run in visual order, in the + * range [0..ubidi_countRuns(pBiDi)-1]. + * + * @param pLogicalStart is the first logical character index in the text. + * The pointer may be NULL if this index is not needed. + * + * @param pLength is the number of characters (at least one) in the run. + * The pointer may be NULL if this is not needed. + * + * @return the directionality of the run, + * UBIDI_LTR==0 or UBIDI_RTL==1, + * never UBIDI_MIXED, + * never UBIDI_NEUTRAL. + * + * @see ubidi_countRuns + * + * Example: + *

+ * \code
+ * int32_t i, count=ubidi_countRuns(pBiDi),
+ *         logicalStart, visualIndex=0, length;
+ * for(i=0; i0);
+ *     } else {
+ *         logicalStart+=length;  // logicalLimit
+ *         do { // RTL
+ *             show_char(text[--logicalStart], visualIndex++);
+ *         } while(--length>0);
+ *     }
+ * }
+ *\endcode
+ * 
+ * + * Note that in right-to-left runs, code like this places + * second surrogates before first ones (which is generally a bad idea) + * and combining characters before base characters. + *

+ * Use of ubidi_writeReordered(), optionally with the + * #UBIDI_KEEP_BASE_COMBINING option, can be considered in order + * to avoid these issues. + * @stable ICU 2.0 + */ +U_CAPI UBiDiDirection U_EXPORT2 +ubidi_getVisualRun(UBiDi *pBiDi, int32_t runIndex, + int32_t *pLogicalStart, int32_t *pLength); + +/** + * Get the visual position from a logical text position. + * If such a mapping is used many times on the same + * UBiDi object, then calling + * ubidi_getLogicalMap() is more efficient.

+ * + * The value returned may be #UBIDI_MAP_NOWHERE if there is no + * visual position because the corresponding text character is a Bidi control + * removed from output by the option #UBIDI_OPTION_REMOVE_CONTROLS. + *

+ * When the visual output is altered by using options of + * ubidi_writeReordered() such as UBIDI_INSERT_LRM_FOR_NUMERIC, + * UBIDI_KEEP_BASE_COMBINING, UBIDI_OUTPUT_REVERSE, + * UBIDI_REMOVE_BIDI_CONTROLS, the visual position returned may not + * be correct. It is advised to use, when possible, reordering options + * such as UBIDI_OPTION_INSERT_MARKS and UBIDI_OPTION_REMOVE_CONTROLS. + *

+ * Note that in right-to-left runs, this mapping places + * second surrogates before first ones (which is generally a bad idea) + * and combining characters before base characters. + * Use of ubidi_writeReordered(), optionally with the + * #UBIDI_KEEP_BASE_COMBINING option can be considered instead + * of using the mapping, in order to avoid these issues. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param logicalIndex is the index of a character in the text. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The visual position of this character. + * + * @see ubidi_getLogicalMap + * @see ubidi_getLogicalIndex + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubidi_getVisualIndex(UBiDi *pBiDi, int32_t logicalIndex, UErrorCode *pErrorCode); + +/** + * Get the logical text position from a visual position. + * If such a mapping is used many times on the same + * UBiDi object, then calling + * ubidi_getVisualMap() is more efficient.

+ * + * The value returned may be #UBIDI_MAP_NOWHERE if there is no + * logical position because the corresponding text character is a Bidi mark + * inserted in the output by option #UBIDI_OPTION_INSERT_MARKS. + *

+ * This is the inverse function to ubidi_getVisualIndex(). + *

+ * When the visual output is altered by using options of + * ubidi_writeReordered() such as UBIDI_INSERT_LRM_FOR_NUMERIC, + * UBIDI_KEEP_BASE_COMBINING, UBIDI_OUTPUT_REVERSE, + * UBIDI_REMOVE_BIDI_CONTROLS, the logical position returned may not + * be correct. It is advised to use, when possible, reordering options + * such as UBIDI_OPTION_INSERT_MARKS and UBIDI_OPTION_REMOVE_CONTROLS. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param visualIndex is the visual position of a character. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The index of this character in the text. + * + * @see ubidi_getVisualMap + * @see ubidi_getVisualIndex + * @see ubidi_getResultLength + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubidi_getLogicalIndex(UBiDi *pBiDi, int32_t visualIndex, UErrorCode *pErrorCode); + +/** + * Get a logical-to-visual index map (array) for the characters in the UBiDi + * (paragraph or line) object. + *

+ * Some values in the map may be #UBIDI_MAP_NOWHERE if the + * corresponding text characters are Bidi controls removed from the visual + * output by the option #UBIDI_OPTION_REMOVE_CONTROLS. + *

+ * When the visual output is altered by using options of + * ubidi_writeReordered() such as UBIDI_INSERT_LRM_FOR_NUMERIC, + * UBIDI_KEEP_BASE_COMBINING, UBIDI_OUTPUT_REVERSE, + * UBIDI_REMOVE_BIDI_CONTROLS, the visual positions returned may not + * be correct. It is advised to use, when possible, reordering options + * such as UBIDI_OPTION_INSERT_MARKS and UBIDI_OPTION_REMOVE_CONTROLS. + *

+ * Note that in right-to-left runs, this mapping places + * second surrogates before first ones (which is generally a bad idea) + * and combining characters before base characters. + * Use of ubidi_writeReordered(), optionally with the + * #UBIDI_KEEP_BASE_COMBINING option can be considered instead + * of using the mapping, in order to avoid these issues. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param indexMap is a pointer to an array of ubidi_getProcessedLength() + * indexes which will reflect the reordering of the characters. + * If option #UBIDI_OPTION_INSERT_MARKS is set, the number + * of elements allocated in indexMap must be no less than + * ubidi_getResultLength(). + * The array does not need to be initialized.

+ * The index map will result in indexMap[logicalIndex]==visualIndex. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @see ubidi_getVisualMap + * @see ubidi_getVisualIndex + * @see ubidi_getProcessedLength + * @see ubidi_getResultLength + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubidi_getLogicalMap(UBiDi *pBiDi, int32_t *indexMap, UErrorCode *pErrorCode); + +/** + * Get a visual-to-logical index map (array) for the characters in the UBiDi + * (paragraph or line) object. + *

+ * Some values in the map may be #UBIDI_MAP_NOWHERE if the + * corresponding text characters are Bidi marks inserted in the visual output + * by the option #UBIDI_OPTION_INSERT_MARKS. + *

+ * When the visual output is altered by using options of + * ubidi_writeReordered() such as UBIDI_INSERT_LRM_FOR_NUMERIC, + * UBIDI_KEEP_BASE_COMBINING, UBIDI_OUTPUT_REVERSE, + * UBIDI_REMOVE_BIDI_CONTROLS, the logical positions returned may not + * be correct. It is advised to use, when possible, reordering options + * such as UBIDI_OPTION_INSERT_MARKS and UBIDI_OPTION_REMOVE_CONTROLS. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param indexMap is a pointer to an array of ubidi_getResultLength() + * indexes which will reflect the reordering of the characters. + * If option #UBIDI_OPTION_REMOVE_CONTROLS is set, the number + * of elements allocated in indexMap must be no less than + * ubidi_getProcessedLength(). + * The array does not need to be initialized.

+ * The index map will result in indexMap[visualIndex]==logicalIndex. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @see ubidi_getLogicalMap + * @see ubidi_getLogicalIndex + * @see ubidi_getProcessedLength + * @see ubidi_getResultLength + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubidi_getVisualMap(UBiDi *pBiDi, int32_t *indexMap, UErrorCode *pErrorCode); + +/** + * This is a convenience function that does not use a UBiDi object. + * It is intended to be used for when an application has determined the levels + * of objects (character sequences) and just needs to have them reordered (L2). + * This is equivalent to using ubidi_getLogicalMap() on a + * UBiDi object. + * + * @param levels is an array with length levels that have been determined by + * the application. + * + * @param length is the number of levels in the array, or, semantically, + * the number of objects to be reordered. + * It must be length>0. + * + * @param indexMap is a pointer to an array of length + * indexes which will reflect the reordering of the characters. + * The array does not need to be initialized.

+ * The index map will result in indexMap[logicalIndex]==visualIndex. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubidi_reorderLogical(const UBiDiLevel *levels, int32_t length, int32_t *indexMap); + +/** + * This is a convenience function that does not use a UBiDi object. + * It is intended to be used for when an application has determined the levels + * of objects (character sequences) and just needs to have them reordered (L2). + * This is equivalent to using ubidi_getVisualMap() on a + * UBiDi object. + * + * @param levels is an array with length levels that have been determined by + * the application. + * + * @param length is the number of levels in the array, or, semantically, + * the number of objects to be reordered. + * It must be length>0. + * + * @param indexMap is a pointer to an array of length + * indexes which will reflect the reordering of the characters. + * The array does not need to be initialized.

+ * The index map will result in indexMap[visualIndex]==logicalIndex. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubidi_reorderVisual(const UBiDiLevel *levels, int32_t length, int32_t *indexMap); + +/** + * Invert an index map. + * The index mapping of the first map is inverted and written to + * the second one. + * + * @param srcMap is an array with length elements + * which defines the original mapping from a source array containing + * length elements to a destination array. + * Some elements of the source array may have no mapping in the + * destination array. In that case, their value will be + * the special value UBIDI_MAP_NOWHERE. + * All elements must be >=0 or equal to UBIDI_MAP_NOWHERE. + * Some elements may have a value >= length, if the + * destination array has more elements than the source array. + * There must be no duplicate indexes (two or more elements with the + * same value except UBIDI_MAP_NOWHERE). + * + * @param destMap is an array with a number of elements equal to 1 + the highest + * value in srcMap. + * destMap will be filled with the inverse mapping. + * If element with index i in srcMap has a value k different + * from UBIDI_MAP_NOWHERE, this means that element i of + * the source array maps to element k in the destination array. + * The inverse map will have value i in its k-th element. + * For all elements of the destination array which do not map to + * an element in the source array, the corresponding element in the + * inverse map will have a value equal to UBIDI_MAP_NOWHERE. + * + * @param length is the length of each array. + * @see UBIDI_MAP_NOWHERE + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubidi_invertMap(const int32_t *srcMap, int32_t *destMap, int32_t length); + +/** option flags for ubidi_writeReordered() */ + +/** + * option bit for ubidi_writeReordered(): + * keep combining characters after their base characters in RTL runs + * + * @see ubidi_writeReordered + * @stable ICU 2.0 + */ +#define UBIDI_KEEP_BASE_COMBINING 1 + +/** + * option bit for ubidi_writeReordered(): + * replace characters with the "mirrored" property in RTL runs + * by their mirror-image mappings + * + * @see ubidi_writeReordered + * @stable ICU 2.0 + */ +#define UBIDI_DO_MIRRORING 2 + +/** + * option bit for ubidi_writeReordered(): + * surround the run with LRMs if necessary; + * this is part of the approximate "inverse Bidi" algorithm + * + *

This option does not imply corresponding adjustment of the index + * mappings.

+ * + * @see ubidi_setInverse + * @see ubidi_writeReordered + * @stable ICU 2.0 + */ +#define UBIDI_INSERT_LRM_FOR_NUMERIC 4 + +/** + * option bit for ubidi_writeReordered(): + * remove Bidi control characters + * (this does not affect #UBIDI_INSERT_LRM_FOR_NUMERIC) + * + *

This option does not imply corresponding adjustment of the index + * mappings.

+ * + * @see ubidi_writeReordered + * @stable ICU 2.0 + */ +#define UBIDI_REMOVE_BIDI_CONTROLS 8 + +/** + * option bit for ubidi_writeReordered(): + * write the output in reverse order + * + *

This has the same effect as calling ubidi_writeReordered() + * first without this option, and then calling + * ubidi_writeReverse() without mirroring. + * Doing this in the same step is faster and avoids a temporary buffer. + * An example for using this option is output to a character terminal that + * is designed for RTL scripts and stores text in reverse order.

+ * + * @see ubidi_writeReordered + * @stable ICU 2.0 + */ +#define UBIDI_OUTPUT_REVERSE 16 + +/** + * Get the length of the source text processed by the last call to + * ubidi_setPara(). This length may be different from the length + * of the source text if option #UBIDI_OPTION_STREAMING + * has been set. + *
+ * Note that whenever the length of the text affects the execution or the + * result of a function, it is the processed length which must be considered, + * except for ubidi_setPara (which receives unprocessed source + * text) and ubidi_getLength (which returns the original length + * of the source text).
+ * In particular, the processed length is the one to consider in the following + * cases: + *
    + *
  • maximum value of the limit argument of + * ubidi_setLine
  • + *
  • maximum value of the charIndex argument of + * ubidi_getParagraph
  • + *
  • maximum value of the charIndex argument of + * ubidi_getLevelAt
  • + *
  • number of elements in the array returned by ubidi_getLevels
  • + *
  • maximum value of the logicalStart argument of + * ubidi_getLogicalRun
  • + *
  • maximum value of the logicalIndex argument of + * ubidi_getVisualIndex
  • + *
  • number of elements filled in the *indexMap argument of + * ubidi_getLogicalMap
  • + *
  • length of text processed by ubidi_writeReordered
  • + *
+ * + * @param pBiDi is the paragraph UBiDi object. + * + * @return The length of the part of the source text processed by + * the last call to ubidi_setPara. + * @see ubidi_setPara + * @see UBIDI_OPTION_STREAMING + * @stable ICU 3.6 + */ +U_CAPI int32_t U_EXPORT2 +ubidi_getProcessedLength(const UBiDi *pBiDi); + +/** + * Get the length of the reordered text resulting from the last call to + * ubidi_setPara(). This length may be different from the length + * of the source text if option #UBIDI_OPTION_INSERT_MARKS + * or option #UBIDI_OPTION_REMOVE_CONTROLS has been set. + *
+ * This resulting length is the one to consider in the following cases: + *
    + *
  • maximum value of the visualIndex argument of + * ubidi_getLogicalIndex
  • + *
  • number of elements of the *indexMap argument of + * ubidi_getVisualMap
  • + *
+ * Note that this length stays identical to the source text length if + * Bidi marks are inserted or removed using option bits of + * ubidi_writeReordered, or if option + * #UBIDI_REORDER_INVERSE_NUMBERS_AS_L has been set. + * + * @param pBiDi is the paragraph UBiDi object. + * + * @return The length of the reordered text resulting from + * the last call to ubidi_setPara. + * @see ubidi_setPara + * @see UBIDI_OPTION_INSERT_MARKS + * @see UBIDI_OPTION_REMOVE_CONTROLS + * @stable ICU 3.6 + */ +U_CAPI int32_t U_EXPORT2 +ubidi_getResultLength(const UBiDi *pBiDi); + +U_CDECL_BEGIN + + +/** + * Callback type declaration for overriding default Bidi class values with + * custom ones. + *

Usually, the function pointer will be propagated to a UBiDi + * object by calling the ubidi_setClassCallback() function; + * then the callback will be invoked by the UBA implementation any time the + * class of a character is to be determined.

+ * + * @param context is a pointer to the callback private data. + * + * @param c is the code point to get a Bidi class for. + * + * @return The directional property / Bidi class for the given code point + * c if the default class has been overridden, or + * u_getIntPropertyMaxValue(UCHAR_BIDI_CLASS)+1 + * if the standard Bidi class value for c is to be used. + * @see ubidi_setClassCallback + * @see ubidi_getClassCallback + * @stable ICU 3.6 + */ +typedef UCharDirection U_CALLCONV +UBiDiClassCallback(const void *context, UChar32 c); + +U_CDECL_END + +/** + * Retrieve the Bidi class for a given code point. + *

If a #UBiDiClassCallback callback is defined and returns a + * value other than u_getIntPropertyMaxValue(UCHAR_BIDI_CLASS)+1, + * that value is used; otherwise the default class determination mechanism is invoked.

+ * + * @param pBiDi is the paragraph UBiDi object. + * + * @param c is the code point whose Bidi class must be retrieved. + * + * @return The Bidi class for character c based + * on the given pBiDi instance. + * @see UBiDiClassCallback + * @stable ICU 3.6 + */ +U_CAPI UCharDirection U_EXPORT2 +ubidi_getCustomizedClass(UBiDi *pBiDi, UChar32 c); + +/** + * Set the callback function and callback data used by the UBA + * implementation for Bidi class determination. + *

This may be useful for assigning Bidi classes to PUA characters, or + * for special application needs. For instance, an application may want to + * handle all spaces like L or R characters (according to the base direction) + * when creating the visual ordering of logical lines which are part of a report + * organized in columns: there should not be interaction between adjacent + * cells.

+ * + * @param pBiDi is the paragraph UBiDi object. + * + * @param newFn is the new callback function pointer. + * + * @param newContext is the new callback context pointer. This can be NULL. + * + * @param oldFn fillin: Returns the old callback function pointer. This can be + * NULL. + * + * @param oldContext fillin: Returns the old callback's context. This can be + * NULL. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @see ubidi_getClassCallback + * @stable ICU 3.6 + */ +U_CAPI void U_EXPORT2 +ubidi_setClassCallback(UBiDi *pBiDi, UBiDiClassCallback *newFn, + const void *newContext, UBiDiClassCallback **oldFn, + const void **oldContext, UErrorCode *pErrorCode); + +/** + * Get the current callback function used for Bidi class determination. + * + * @param pBiDi is the paragraph UBiDi object. + * + * @param fn fillin: Returns the callback function pointer. + * + * @param context fillin: Returns the callback's private context. + * + * @see ubidi_setClassCallback + * @stable ICU 3.6 + */ +U_CAPI void U_EXPORT2 +ubidi_getClassCallback(UBiDi *pBiDi, UBiDiClassCallback **fn, const void **context); + +/** + * Take a UBiDi object containing the reordering + * information for a piece of text (one or more paragraphs) set by + * ubidi_setPara() or for a line of text set by + * ubidi_setLine() and write a reordered string to the + * destination buffer. + * + * This function preserves the integrity of characters with multiple + * code units and (optionally) combining characters. + * Characters in RTL runs can be replaced by mirror-image characters + * in the destination buffer. Note that "real" mirroring has + * to be done in a rendering engine by glyph selection + * and that for many "mirrored" characters there are no + * Unicode characters as mirror-image equivalents. + * There are also options to insert or remove Bidi control + * characters; see the description of the destSize + * and options parameters and of the option bit flags. + * + * @param pBiDi A pointer to a UBiDi object that + * is set by ubidi_setPara() or + * ubidi_setLine() and contains the reordering + * information for the text that it was defined for, + * as well as a pointer to that text.

+ * The text was aliased (only the pointer was stored + * without copying the contents) and must not have been modified + * since the ubidi_setPara() call. + * + * @param dest A pointer to where the reordered text is to be copied. + * The source text and dest[destSize] + * must not overlap. + * + * @param destSize The size of the dest buffer, + * in number of UChars. + * If the UBIDI_INSERT_LRM_FOR_NUMERIC + * option is set, then the destination length could be + * as large as + * ubidi_getLength(pBiDi)+2*ubidi_countRuns(pBiDi). + * If the UBIDI_REMOVE_BIDI_CONTROLS option + * is set, then the destination length may be less than + * ubidi_getLength(pBiDi). + * If none of these options is set, then the destination length + * will be exactly ubidi_getProcessedLength(pBiDi). + * + * @param options A bit set of options for the reordering that control + * how the reordered text is written. + * The options include mirroring the characters on a code + * point basis and inserting LRM characters, which is used + * especially for transforming visually stored text + * to logically stored text (although this is still an + * imperfect implementation of an "inverse Bidi" algorithm + * because it uses the "forward Bidi" algorithm at its core). + * The available options are: + * #UBIDI_DO_MIRRORING, + * #UBIDI_INSERT_LRM_FOR_NUMERIC, + * #UBIDI_KEEP_BASE_COMBINING, + * #UBIDI_OUTPUT_REVERSE, + * #UBIDI_REMOVE_BIDI_CONTROLS + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The length of the output string. + * + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubidi_writeReordered(UBiDi *pBiDi, + UChar *dest, int32_t destSize, + uint16_t options, + UErrorCode *pErrorCode); + +/** + * Reverse a Right-To-Left run of Unicode text. + * + * This function preserves the integrity of characters with multiple + * code units and (optionally) combining characters. + * Characters can be replaced by mirror-image characters + * in the destination buffer. Note that "real" mirroring has + * to be done in a rendering engine by glyph selection + * and that for many "mirrored" characters there are no + * Unicode characters as mirror-image equivalents. + * There are also options to insert or remove Bidi control + * characters. + * + * This function is the implementation for reversing RTL runs as part + * of ubidi_writeReordered(). For detailed descriptions + * of the parameters, see there. + * Since no Bidi controls are inserted here, the output string length + * will never exceed srcLength. + * + * @see ubidi_writeReordered + * + * @param src A pointer to the RTL run text. + * + * @param srcLength The length of the RTL run. + * + * @param dest A pointer to where the reordered text is to be copied. + * src[srcLength] and dest[destSize] + * must not overlap. + * + * @param destSize The size of the dest buffer, + * in number of UChars. + * If the UBIDI_REMOVE_BIDI_CONTROLS option + * is set, then the destination length may be less than + * srcLength. + * If this option is not set, then the destination length + * will be exactly srcLength. + * + * @param options A bit set of options for the reordering that control + * how the reordered text is written. + * See the options parameter in ubidi_writeReordered(). + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The length of the output string. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubidi_writeReverse(const UChar *src, int32_t srcLength, + UChar *dest, int32_t destSize, + uint16_t options, + UErrorCode *pErrorCode); + +/*#define BIDI_SAMPLE_CODE*/ +/*@}*/ + +#endif + +// ubiditransform.h +/* +****************************************************************************** +* +* Copyright (C) 2016 and later: Unicode, Inc. and others. +* License & terms of use: http://www.unicode.org/copyright.html +* +****************************************************************************** +* file name: ubiditransform.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2016jul24 +* created by: Lina Kemmel +* +*/ + +#ifndef UBIDITRANSFORM_H +#define UBIDITRANSFORM_H + + + +/** + * \file + * \brief Bidi Transformations + */ + +/** + * `UBiDiOrder` indicates the order of text. + * + * This bidi transformation engine supports all possible combinations (4 in + * total) of input and output text order: + * + * - : unless the output direction is RTL, this + * corresponds to a normal operation of the Bidi algorithm as described in the + * Unicode Technical Report and implemented by `UBiDi` when the + * reordering mode is set to `UBIDI_REORDER_DEFAULT`. Visual RTL + * mode is not supported by `UBiDi` and is accomplished through + * reversing a visual LTR string, + * + * - : unless the input direction is RTL, this + * corresponds to an "inverse bidi algorithm" in `UBiDi` with the + * reordering mode set to `UBIDI_REORDER_INVERSE_LIKE_DIRECT`. + * Visual RTL mode is not not supported by `UBiDi` and is + * accomplished through reversing a visual LTR string, + * + * - : if the input and output base directions + * mismatch, this corresponds to the `UBiDi` implementation with the + * reordering mode set to `UBIDI_REORDER_RUNS_ONLY`; and if the + * input and output base directions are identical, the transformation engine + * will only handle character mirroring and Arabic shaping operations without + * reordering, + * + * - : this reordering mode is not supported by + * the `UBiDi` engine; it implies character mirroring, Arabic + * shaping, and - if the input/output base directions mismatch - string + * reverse operations. + * @see ubidi_setInverse + * @see ubidi_setReorderingMode + * @see UBIDI_REORDER_DEFAULT + * @see UBIDI_REORDER_INVERSE_LIKE_DIRECT + * @see UBIDI_REORDER_RUNS_ONLY + * @stable ICU 58 + */ +typedef enum { + /** 0: Constant indicating a logical order. + * This is the default for input text. + * @stable ICU 58 + */ + UBIDI_LOGICAL = 0, + /** 1: Constant indicating a visual order. + * This is a default for output text. + * @stable ICU 58 + */ + UBIDI_VISUAL +} UBiDiOrder; + +/** + * UBiDiMirroring indicates whether or not characters with the + * "mirrored" property in RTL runs should be replaced with their mirror-image + * counterparts. + * @see UBIDI_DO_MIRRORING + * @see ubidi_setReorderingOptions + * @see ubidi_writeReordered + * @see ubidi_writeReverse + * @stable ICU 58 + */ +typedef enum { + /** 0: Constant indicating that character mirroring should not be + * performed. + * This is the default. + * @stable ICU 58 + */ + UBIDI_MIRRORING_OFF = 0, + /** 1: Constant indicating that character mirroring should be performed. + * This corresponds to calling ubidi_writeReordered or + * ubidi_writeReverse with the + * UBIDI_DO_MIRRORING option bit set. + * @stable ICU 58 + */ + UBIDI_MIRRORING_ON +} UBiDiMirroring; + +/** + * Forward declaration of the UBiDiTransform structure that stores + * information used by the layout transformation engine. + * @stable ICU 58 + */ +typedef struct UBiDiTransform UBiDiTransform; + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +/** + * Performs transformation of text from the bidi layout defined by the input + * ordering scheme to the bidi layout defined by the output ordering scheme, + * and applies character mirroring and Arabic shaping operations.

+ * In terms of UBiDi, such a transformation implies: + *

    + *
  • calling ubidi_setReorderingMode as needed (when the + * reordering mode is other than normal),
  • + *
  • calling ubidi_setInverse as needed (when text should be + * transformed from a visual to a logical form),
  • + *
  • resolving embedding levels of each character in the input text by + * calling ubidi_setPara,
  • + *
  • reordering the characters based on the computed embedding levels, also + * performing character mirroring as needed, and streaming the result to the + * output, by calling ubidi_writeReordered,
  • + *
  • performing Arabic digit and letter shaping on the output text by calling + * u_shapeArabic.
  • + *
+ * An "ordering scheme" encompasses the base direction and the order of text, + * and these characteristics must be defined by the caller for both input and + * output explicitly .

+ * There are 36 possible combinations of ordering schemes, + * which are partially supported by UBiDi already. Examples of the + * currently supported combinations: + *

    + *
  • : this is equivalent to calling + * ubidi_setPara with paraLevel == UBIDI_LTR,
  • + *
  • : this is equivalent to calling + * ubidi_setPara with paraLevel == UBIDI_RTL,
  • + *
  • : this is equivalent to + * calling ubidi_setPara with + * paraLevel == UBIDI_DEFAULT_LTR,
  • + *
  • : this is equivalent to + * calling ubidi_setPara with + * paraLevel == UBIDI_DEFAULT_RTL,
  • + *
  • : this is equivalent to + * calling ubidi_setInverse(UBiDi*, true) and then + * ubidi_setPara with paraLevel == UBIDI_LTR,
  • + *
  • : this is equivalent to + * calling ubidi_setInverse(UBiDi*, true) and then + * ubidi_setPara with paraLevel == UBIDI_RTL.
  • + *
+ * All combinations that involve the Visual RTL scheme are unsupported by + * UBiDi, for instance: + *
    + *
  • ,
  • + *
  • .
  • + *
+ *

Example of usage of the transformation engine:
+ *

+ * \code
+ * UChar text1[] = {'a', 'b', 'c', 0x0625, '1', 0};
+ * UChar text2[] = {'a', 'b', 'c', 0x0625, '1', 0};
+ * UErrorCode errorCode = U_ZERO_ERROR;
+ * // Run a transformation.
+ * ubiditransform_transform(pBidiTransform,
+ *          text1, -1, text2, -1,
+ *          UBIDI_LTR, UBIDI_VISUAL,
+ *          UBIDI_RTL, UBIDI_LOGICAL,
+ *          UBIDI_MIRRORING_OFF,
+ *          U_SHAPE_DIGITS_AN2EN | U_SHAPE_DIGIT_TYPE_AN_EXTENDED,
+ *          &errorCode);
+ * // Do something with text2.
+ *  text2[4] = '2';
+ * // Run a reverse transformation.
+ * ubiditransform_transform(pBidiTransform,
+ *          text2, -1, text1, -1,
+ *          UBIDI_RTL, UBIDI_LOGICAL,
+ *          UBIDI_LTR, UBIDI_VISUAL,
+ *          UBIDI_MIRRORING_OFF,
+ *          U_SHAPE_DIGITS_EN2AN | U_SHAPE_DIGIT_TYPE_AN_EXTENDED,
+ *          &errorCode);
+ *\endcode
+ * 
+ *

+ * + * @param pBiDiTransform A pointer to a UBiDiTransform object + * allocated with ubiditransform_open() or + * NULL.

+ * This object serves for one-time setup to amortize initialization + * overheads. Use of this object is not thread-safe. All other threads + * should allocate a new UBiDiTransform object by calling + * ubiditransform_open() before using it. Alternatively, + * a caller can set this parameter to NULL, in which case + * the object will be allocated by the engine on the fly.

+ * @param src A pointer to the text that the Bidi layout transformations will + * be performed on. + *

Note: the text must be (at least) + * srcLength long.

+ * @param srcLength The length of the text, in number of UChars. If + * length == -1 then the text must be zero-terminated. + * @param dest A pointer to where the processed text is to be copied. + * @param destSize The size of the dest buffer, in number of + * UChars. If the U_SHAPE_LETTERS_UNSHAPE option is set, + * then the destination length could be as large as + * srcLength * 2. Otherwise, the destination length will + * not exceed srcLength. If the caller reserves the last + * position for zero-termination, it should be excluded from + * destSize. + *

destSize == -1 is allowed and makes sense when + * dest was holds some meaningful value, e.g. that of + * src. In this case dest must be + * zero-terminated.

+ * @param inParaLevel A base embedding level of the input as defined in + * ubidi_setPara documentation for the + * paraLevel parameter. + * @param inOrder An order of the input, which can be one of the + * UBiDiOrder values. + * @param outParaLevel A base embedding level of the output as defined in + * ubidi_setPara documentation for the + * paraLevel parameter. + * @param outOrder An order of the output, which can be one of the + * UBiDiOrder values. + * @param doMirroring Indicates whether or not to perform character mirroring, + * and can accept one of the UBiDiMirroring values. + * @param shapingOptions Arabic digit and letter shaping options defined in the + * ushape.h documentation. + *

Note: Direction indicator options are computed by + * the transformation engine based on the effective ordering schemes, so + * user-defined direction indicators will be ignored.

+ * @param pErrorCode A pointer to an error code value. + * + * @return The destination length, i.e. the number of UChars written to + * dest. If the transformation fails, the return value + * will be 0 (and the error code will be written to + * pErrorCode). + * + * @see UBiDiLevel + * @see UBiDiOrder + * @see UBiDiMirroring + * @see ubidi_setPara + * @see u_shapeArabic + * @stable ICU 58 + */ +U_CAPI uint32_t U_EXPORT2 +ubiditransform_transform(UBiDiTransform *pBiDiTransform, + const UChar *src, int32_t srcLength, + UChar *dest, int32_t destSize, + UBiDiLevel inParaLevel, UBiDiOrder inOrder, + UBiDiLevel outParaLevel, UBiDiOrder outOrder, + UBiDiMirroring doMirroring, uint32_t shapingOptions, + UErrorCode *pErrorCode); + +/** + * Allocates a UBiDiTransform object. This object can be reused, + * e.g. with different ordering schemes, mirroring or shaping options.

+ * Note:The object can only be reused in the same thread. + * All other threads should allocate a new UBiDiTransform object + * before using it.

+ * Example of usage:

+ *

+ * \code
+ * UErrorCode errorCode = U_ZERO_ERROR;
+ * // Open a new UBiDiTransform.
+ * UBiDiTransform* transform = ubiditransform_open(&errorCode);
+ * // Run a transformation.
+ * ubiditransform_transform(transform,
+ *          text1, -1, text2, -1,
+ *          UBIDI_RTL, UBIDI_LOGICAL,
+ *          UBIDI_LTR, UBIDI_VISUAL,
+ *          UBIDI_MIRRORING_ON,
+ *          U_SHAPE_DIGITS_EN2AN,
+ *          &errorCode);
+ * // Do something with the output text and invoke another transformation using
+ * //   that text as input.
+ * ubiditransform_transform(transform,
+ *          text2, -1, text3, -1,
+ *          UBIDI_LTR, UBIDI_VISUAL,
+ *          UBIDI_RTL, UBIDI_VISUAL,
+ *          UBIDI_MIRRORING_ON,
+ *          0, &errorCode);
+ *\endcode
+ * 
+ *

+ * The UBiDiTransform object must be deallocated by calling + * ubiditransform_close(). + * + * @return An empty UBiDiTransform object. + * @stable ICU 58 + */ +U_CAPI UBiDiTransform* U_EXPORT2 +ubiditransform_open(UErrorCode *pErrorCode); + +/** + * Deallocates the given UBiDiTransform object. + * @stable ICU 58 + */ +U_CAPI void U_EXPORT2 +ubiditransform_close(UBiDiTransform *pBidiTransform); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +#endif + +// utext.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* +* Copyright (C) 2004-2012, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: utext.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2004oct06 +* created by: Markus W. Scherer +*/ + +#ifndef __UTEXT_H__ +#define __UTEXT_H__ + +/** + * \file + * \brief C API: Abstract Unicode Text API + * + * The Text Access API provides a means to allow text that is stored in alternative + * formats to work with ICU services. ICU normally operates on text that is + * stored in UTF-16 format, in (UChar *) arrays for the C APIs or as type + * UnicodeString for C++ APIs. + * + * ICU Text Access allows other formats, such as UTF-8 or non-contiguous + * UTF-16 strings, to be placed in a UText wrapper and then passed to ICU services. + * + * There are three general classes of usage for UText: + * + * Application Level Use. This is the simplest usage - applications would + * use one of the utext_open() functions on their input text, and pass + * the resulting UText to the desired ICU service. + * + * Second is usage in ICU Services, such as break iteration, that will need to + * operate on input presented to them as a UText. These implementations + * will need to use the iteration and related UText functions to gain + * access to the actual text. + * + * The third class of UText users are "text providers." These are the + * UText implementations for the various text storage formats. An application + * or system with a unique text storage format can implement a set of + * UText provider functions for that format, which will then allow + * ICU services to operate on that format. + * + * + * Iterating over text + * + * Here is sample code for a forward iteration over the contents of a UText + * + * \code + * UChar32 c; + * UText *ut = whatever(); + * + * for (c=utext_next32From(ut, 0); c>=0; c=utext_next32(ut)) { + * // do whatever with the codepoint c here. + * } + * \endcode + * + * And here is similar code to iterate in the reverse direction, from the end + * of the text towards the beginning. + * + * \code + * UChar32 c; + * UText *ut = whatever(); + * int textLength = utext_nativeLength(ut); + * for (c=utext_previous32From(ut, textLength); c>=0; c=utext_previous32(ut)) { + * // do whatever with the codepoint c here. + * } + * \endcode + * + * Characters and Indexing + * + * Indexing into text by UText functions is nearly always in terms of the native + * indexing of the underlying text storage. The storage format could be UTF-8 + * or UTF-32, for example. When coding to the UText access API, no assumptions + * can be made regarding the size of characters, or how far an index + * may move when iterating between characters. + * + * All indices supplied to UText functions are pinned to the length of the + * text. An out-of-bounds index is not considered to be an error, but is + * adjusted to be in the range 0 <= index <= length of input text. + * + * + * When an index position is returned from a UText function, it will be + * a native index to the underlying text. In the case of multi-unit characters, + * it will always refer to the first position of the character, + * never to the interior. This is essentially the same thing as saying that + * a returned index will always point to a boundary between characters. + * + * When a native index is supplied to a UText function, all indices that + * refer to any part of a multi-unit character representation are considered + * to be equivalent. In the case of multi-unit characters, an incoming index + * will be logically normalized to refer to the start of the character. + * + * It is possible to test whether a native index is on a code point boundary + * by doing a utext_setNativeIndex() followed by a utext_getNativeIndex(). + * If the index is returned unchanged, it was on a code point boundary. If + * an adjusted index is returned, the original index referred to the + * interior of a character. + * + * Conventions for calling UText functions + * + * Most UText access functions have as their first parameter a (UText *) pointer, + * which specifies the UText to be used. Unless otherwise noted, the + * pointer must refer to a valid, open UText. Attempting to + * use a closed UText or passing a NULL pointer is a programming error and + * will produce undefined results or NULL pointer exceptions. + * + * The UText_Open family of functions can either open an existing (closed) + * UText, or heap allocate a new UText. Here is sample code for creating + * a stack-allocated UText. + * + * \code + * char *s = whatever(); // A utf-8 string + * U_ErrorCode status = U_ZERO_ERROR; + * UText ut = UTEXT_INITIALIZER; + * utext_openUTF8(ut, s, -1, &status); + * if (U_FAILURE(status)) { + * // error handling + * } else { + * // work with the UText + * } + * \endcode + * + * Any existing UText passed to an open function _must_ have been initialized, + * either by the UTEXT_INITIALIZER, or by having been originally heap-allocated + * by an open function. Passing NULL will cause the open function to + * heap-allocate and fully initialize a new UText. + * + */ + + + + + +U_CDECL_BEGIN + +struct UText; +typedef struct UText UText; /**< C typedef for struct UText. @stable ICU 3.6 */ + + +/*************************************************************************************** + * + * C Functions for creating UText wrappers around various kinds of text strings. + * + ****************************************************************************************/ + + +/** + * Close function for UText instances. + * Cleans up, releases any resources being held by an open UText. + *

+ * If the UText was originally allocated by one of the utext_open functions, + * the storage associated with the utext will also be freed. + * If the UText storage originated with the application, as it would with + * a local or static instance, the storage will not be deleted. + * + * An open UText can be reset to refer to new string by using one of the utext_open() + * functions without first closing the UText. + * + * @param ut The UText to be closed. + * @return NULL if the UText struct was deleted by the close. If the UText struct + * was originally provided by the caller to the open function, it is + * returned by this function, and may be safely used again in + * a subsequent utext_open. + * + * @stable ICU 3.4 + */ +U_CAPI UText * U_EXPORT2 +utext_close(UText *ut); + +/** + * Open a read-only UText implementation for UTF-8 strings. + * + * \htmlonly + * Any invalid UTF-8 in the input will be handled in this way: + * a sequence of bytes that has the form of a truncated, but otherwise valid, + * UTF-8 sequence will be replaced by a single unicode replacement character, \uFFFD. + * Any other illegal bytes will each be replaced by a \uFFFD. + * \endhtmlonly + * + * @param ut Pointer to a UText struct. If NULL, a new UText will be created. + * If non-NULL, must refer to an initialized UText struct, which will then + * be reset to reference the specified UTF-8 string. + * @param s A UTF-8 string. Must not be NULL. + * @param length The length of the UTF-8 string in bytes, or -1 if the string is + * zero terminated. + * @param status Errors are returned here. + * @return A pointer to the UText. If a pre-allocated UText was provided, it + * will always be used and returned. + * @stable ICU 3.4 + */ +U_CAPI UText * U_EXPORT2 +utext_openUTF8(UText *ut, const char *s, int64_t length, UErrorCode *status); + + +/** + * Open a read-only UText for UChar * string. + * + * @param ut Pointer to a UText struct. If NULL, a new UText will be created. + * If non-NULL, must refer to an initialized UText struct, which will then + * be reset to reference the specified UChar string. + * @param s A UChar (UTF-16) string + * @param length The number of UChars in the input string, or -1 if the string is + * zero terminated. + * @param status Errors are returned here. + * @return A pointer to the UText. If a pre-allocated UText was provided, it + * will always be used and returned. + * @stable ICU 3.4 + */ +U_CAPI UText * U_EXPORT2 +utext_openUChars(UText *ut, const UChar *s, int64_t length, UErrorCode *status); + + + + +/** + * Clone a UText. This is much like opening a UText where the source text is itself + * another UText. + * + * A deep clone will copy both the UText data structures and the underlying text. + * The original and cloned UText will operate completely independently; modifications + * made to the text in one will not affect the other. Text providers are not + * required to support deep clones. The user of clone() must check the status return + * and be prepared to handle failures. + * + * The standard UText implementations for UTF8, UChar *, UnicodeString and + * Replaceable all support deep cloning. + * + * The UText returned from a deep clone will be writable, assuming that the text + * provider is able to support writing, even if the source UText had been made + * non-writable by means of UText_freeze(). + * + * A shallow clone replicates only the UText data structures; it does not make + * a copy of the underlying text. Shallow clones can be used as an efficient way to + * have multiple iterators active in a single text string that is not being + * modified. + * + * A shallow clone operation will not fail, barring truly exceptional conditions such + * as memory allocation failures. + * + * Shallow UText clones should be avoided if the UText functions that modify the + * text are expected to be used, either on the original or the cloned UText. + * Any such modifications can cause unpredictable behavior. Read Only + * shallow clones provide some protection against errors of this type by + * disabling text modification via the cloned UText. + * + * A shallow clone made with the readOnly parameter == false will preserve the + * utext_isWritable() state of the source object. Note, however, that + * write operations must be avoided while more than one UText exists that refer + * to the same underlying text. + * + * A UText and its clone may be safely concurrently accessed by separate threads. + * This is true for read access only with shallow clones, and for both read and + * write access with deep clones. + * It is the responsibility of the Text Provider to ensure that this thread safety + * constraint is met. + * + * @param dest A UText struct to be filled in with the result of the clone operation, + * or NULL if the clone function should heap-allocate a new UText struct. + * If non-NULL, must refer to an already existing UText, which will then + * be reset to become the clone. + * @param src The UText to be cloned. + * @param deep true to request a deep clone, false for a shallow clone. + * @param readOnly true to request that the cloned UText have read only access to the + * underlying text. + + * @param status Errors are returned here. For deep clones, U_UNSUPPORTED_ERROR + * will be returned if the text provider is unable to clone the + * original text. + * @return The newly created clone, or NULL if the clone operation failed. + * @stable ICU 3.4 + */ +U_CAPI UText * U_EXPORT2 +utext_clone(UText *dest, const UText *src, UBool deep, UBool readOnly, UErrorCode *status); + + +/** + * Compare two UText objects for equality. + * UTexts are equal if they are iterating over the same text, and + * have the same iteration position within the text. + * If either or both of the parameters are NULL, the comparison is false. + * + * @param a The first of the two UTexts to compare. + * @param b The other UText to be compared. + * @return true if the two UTexts are equal. + * @stable ICU 3.6 + */ +U_CAPI UBool U_EXPORT2 +utext_equals(const UText *a, const UText *b); + + +/***************************************************************************** + * + * Functions to work with the text represented by a UText wrapper + * + *****************************************************************************/ + +/** + * Get the length of the text. Depending on the characteristics + * of the underlying text representation, this may be expensive. + * @see utext_isLengthExpensive() + * + * + * @param ut the text to be accessed. + * @return the length of the text, expressed in native units. + * + * @stable ICU 3.4 + */ +U_CAPI int64_t U_EXPORT2 +utext_nativeLength(UText *ut); + +/** + * Return true if calculating the length of the text could be expensive. + * Finding the length of NUL terminated strings is considered to be expensive. + * + * Note that the value of this function may change + * as the result of other operations on a UText. + * Once the length of a string has been discovered, it will no longer + * be expensive to report it. + * + * @param ut the text to be accessed. + * @return true if determining the length of the text could be time consuming. + * @stable ICU 3.4 + */ +U_CAPI UBool U_EXPORT2 +utext_isLengthExpensive(const UText *ut); + +/** + * Returns the code point at the requested index, + * or U_SENTINEL (-1) if it is out of bounds. + * + * If the specified index points to the interior of a multi-unit + * character - one of the trail bytes of a UTF-8 sequence, for example - + * the complete code point will be returned. + * + * The iteration position will be set to the start of the returned code point. + * + * This function is roughly equivalent to the sequence + * utext_setNativeIndex(index); + * utext_current32(); + * (There is a subtle difference if the index is out of bounds by being less than zero - + * utext_setNativeIndex(negative value) sets the index to zero, after which utext_current() + * will return the char at zero. utext_char32At(negative index), on the other hand, will + * return the U_SENTINEL value of -1.) + * + * @param ut the text to be accessed + * @param nativeIndex the native index of the character to be accessed. If the index points + * to other than the first unit of a multi-unit character, it will be adjusted + * to the start of the character. + * @return the code point at the specified index. + * @stable ICU 3.4 + */ +U_CAPI UChar32 U_EXPORT2 +utext_char32At(UText *ut, int64_t nativeIndex); + + +/** + * + * Get the code point at the current iteration position, + * or U_SENTINEL (-1) if the iteration has reached the end of + * the input text. + * + * @param ut the text to be accessed. + * @return the Unicode code point at the current iterator position. + * @stable ICU 3.4 + */ +U_CAPI UChar32 U_EXPORT2 +utext_current32(UText *ut); + + +/** + * Get the code point at the current iteration position of the UText, and + * advance the position to the first index following the character. + * + * If the position is at the end of the text (the index following + * the last character, which is also the length of the text), + * return U_SENTINEL (-1) and do not advance the index. + * + * This is a post-increment operation. + * + * An inline macro version of this function, UTEXT_NEXT32(), + * is available for performance critical use. + * + * @param ut the text to be accessed. + * @return the Unicode code point at the iteration position. + * @see UTEXT_NEXT32 + * @stable ICU 3.4 + */ +U_CAPI UChar32 U_EXPORT2 +utext_next32(UText *ut); + + +/** + * Move the iterator position to the character (code point) whose + * index precedes the current position, and return that character. + * This is a pre-decrement operation. + * + * If the initial position is at the start of the text (index of 0) + * return U_SENTINEL (-1), and leave the position unchanged. + * + * An inline macro version of this function, UTEXT_PREVIOUS32(), + * is available for performance critical use. + * + * @param ut the text to be accessed. + * @return the previous UChar32 code point, or U_SENTINEL (-1) + * if the iteration has reached the start of the text. + * @see UTEXT_PREVIOUS32 + * @stable ICU 3.4 + */ +U_CAPI UChar32 U_EXPORT2 +utext_previous32(UText *ut); + + +/** + * Set the iteration index and return the code point at that index. + * Leave the iteration index at the start of the following code point. + * + * This function is the most efficient and convenient way to + * begin a forward iteration. The results are identical to the those + * from the sequence + * \code + * utext_setIndex(); + * utext_next32(); + * \endcode + * + * @param ut the text to be accessed. + * @param nativeIndex Iteration index, in the native units of the text provider. + * @return Code point which starts at or before index, + * or U_SENTINEL (-1) if it is out of bounds. + * @stable ICU 3.4 + */ +U_CAPI UChar32 U_EXPORT2 +utext_next32From(UText *ut, int64_t nativeIndex); + + + +/** + * Set the iteration index, and return the code point preceding the + * one specified by the initial index. Leave the iteration position + * at the start of the returned code point. + * + * This function is the most efficient and convenient way to + * begin a backwards iteration. + * + * @param ut the text to be accessed. + * @param nativeIndex Iteration index in the native units of the text provider. + * @return Code point preceding the one at the initial index, + * or U_SENTINEL (-1) if it is out of bounds. + * + * @stable ICU 3.4 + */ +U_CAPI UChar32 U_EXPORT2 +utext_previous32From(UText *ut, int64_t nativeIndex); + +/** + * Get the current iterator position, which can range from 0 to + * the length of the text. + * The position is a native index into the input text, in whatever format it + * may have (possibly UTF-8 for example), and may not always be the same as + * the corresponding UChar (UTF-16) index. + * The returned position will always be aligned to a code point boundary. + * + * @param ut the text to be accessed. + * @return the current index position, in the native units of the text provider. + * @stable ICU 3.4 + */ +U_CAPI int64_t U_EXPORT2 +utext_getNativeIndex(const UText *ut); + +/** + * Set the current iteration position to the nearest code point + * boundary at or preceding the specified index. + * The index is in the native units of the original input text. + * If the index is out of range, it will be pinned to be within + * the range of the input text. + *

+ * It will usually be more efficient to begin an iteration + * using the functions utext_next32From() or utext_previous32From() + * rather than setIndex(). + *

+ * Moving the index position to an adjacent character is best done + * with utext_next32(), utext_previous32() or utext_moveIndex32(). + * Attempting to do direct arithmetic on the index position is + * complicated by the fact that the size (in native units) of a + * character depends on the underlying representation of the character + * (UTF-8, UTF-16, UTF-32, arbitrary codepage), and is not + * easily knowable. + * + * @param ut the text to be accessed. + * @param nativeIndex the native unit index of the new iteration position. + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +utext_setNativeIndex(UText *ut, int64_t nativeIndex); + +/** + * Move the iterator position by delta code points. The number of code points + * is a signed number; a negative delta will move the iterator backwards, + * towards the start of the text. + *

+ * The index is moved by delta code points + * forward or backward, but no further backward than to 0 and + * no further forward than to utext_nativeLength(). + * The resulting index value will be in between 0 and length, inclusive. + * + * @param ut the text to be accessed. + * @param delta the signed number of code points to move the iteration position. + * @return true if the position could be moved the requested number of positions while + * staying within the range [0 - text length]. + * @stable ICU 3.4 + */ +U_CAPI UBool U_EXPORT2 +utext_moveIndex32(UText *ut, int32_t delta); + +/** + * Get the native index of the character preceding the current position. + * If the iteration position is already at the start of the text, zero + * is returned. + * The value returned is the same as that obtained from the following sequence, + * but without the side effect of changing the iteration position. + * + * \code + * UText *ut = whatever; + * ... + * utext_previous(ut) + * utext_getNativeIndex(ut); + * \endcode + * + * This function is most useful during forwards iteration, where it will get the + * native index of the character most recently returned from utext_next(). + * + * @param ut the text to be accessed + * @return the native index of the character preceding the current index position, + * or zero if the current position is at the start of the text. + * @stable ICU 3.6 + */ +U_CAPI int64_t U_EXPORT2 +utext_getPreviousNativeIndex(UText *ut); + + +/** + * + * Extract text from a UText into a UChar buffer. The range of text to be extracted + * is specified in the native indices of the UText provider. These may not necessarily + * be UTF-16 indices. + *

+ * The size (number of 16 bit UChars) of the data to be extracted is returned. The + * full number of UChars is returned, even when the extracted text is truncated + * because the specified buffer size is too small. + *

+ * The extracted string will (if you are a user) / must (if you are a text provider) + * be NUL-terminated if there is sufficient space in the destination buffer. This + * terminating NUL is not included in the returned length. + *

+ * The iteration index is left at the position following the last extracted character. + * + * @param ut the UText from which to extract data. + * @param nativeStart the native index of the first character to extract.\ + * If the specified index is out of range, + * it will be pinned to be within 0 <= index <= textLength + * @param nativeLimit the native string index of the position following the last + * character to extract. If the specified index is out of range, + * it will be pinned to be within 0 <= index <= textLength. + * nativeLimit must be >= nativeStart. + * @param dest the UChar (UTF-16) buffer into which the extracted text is placed + * @param destCapacity The size, in UChars, of the destination buffer. May be zero + * for precomputing the required size. + * @param status receives any error status. + * U_BUFFER_OVERFLOW_ERROR: the extracted text was truncated because the + * buffer was too small. Returns number of UChars for preflighting. + * @return Number of UChars in the data to be extracted. Does not include a trailing NUL. + * + * @stable ICU 3.4 + */ +U_CAPI int32_t U_EXPORT2 +utext_extract(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + UChar *dest, int32_t destCapacity, + UErrorCode *status); + + + +/************************************************************************************ + * + * #define inline versions of selected performance-critical text access functions + * Caution: do not use auto increment++ or decrement-- expressions + * as parameters to these macros. + * + * For most use, where there is no extreme performance constraint, the + * normal, non-inline functions are a better choice. The resulting code + * will be smaller, and, if the need ever arises, easier to debug. + * + * These are implemented as #defines rather than real functions + * because there is no fully portable way to do inline functions in plain C. + * + ************************************************************************************/ + + +/** + * inline version of utext_next32(), for performance-critical situations. + * + * Get the code point at the current iteration position of the UText, and + * advance the position to the first index following the character. + * This is a post-increment operation. + * Returns U_SENTINEL (-1) if the position is at the end of the + * text. + * + * @stable ICU 3.4 + */ +#define UTEXT_NEXT32(ut) \ + ((ut)->chunkOffset < (ut)->chunkLength && ((ut)->chunkContents)[(ut)->chunkOffset]<0xd800 ? \ + ((ut)->chunkContents)[((ut)->chunkOffset)++] : utext_next32(ut)) + +/** + * inline version of utext_previous32(), for performance-critical situations. + * + * Move the iterator position to the character (code point) whose + * index precedes the current position, and return that character. + * This is a pre-decrement operation. + * Returns U_SENTINEL (-1) if the position is at the start of the text. + * + * @stable ICU 3.4 + */ +#define UTEXT_PREVIOUS32(ut) \ + ((ut)->chunkOffset > 0 && \ + (ut)->chunkContents[(ut)->chunkOffset-1] < 0xd800 ? \ + (ut)->chunkContents[--((ut)->chunkOffset)] : utext_previous32(ut)) + +/** + * inline version of utext_getNativeIndex(), for performance-critical situations. + * + * Get the current iterator position, which can range from 0 to + * the length of the text. + * The position is a native index into the input text, in whatever format it + * may have (possibly UTF-8 for example), and may not always be the same as + * the corresponding UChar (UTF-16) index. + * The returned position will always be aligned to a code point boundary. + * + * @stable ICU 3.6 + */ +#define UTEXT_GETNATIVEINDEX(ut) \ + ((ut)->chunkOffset <= (ut)->nativeIndexingLimit? \ + (ut)->chunkNativeStart+(ut)->chunkOffset : \ + (ut)->pFuncs->mapOffsetToNative(ut)) + +/** + * inline version of utext_setNativeIndex(), for performance-critical situations. + * + * Set the current iteration position to the nearest code point + * boundary at or preceding the specified index. + * The index is in the native units of the original input text. + * If the index is out of range, it will be pinned to be within + * the range of the input text. + * + * @stable ICU 3.8 + */ +#define UTEXT_SETNATIVEINDEX(ut, ix) UPRV_BLOCK_MACRO_BEGIN { \ + int64_t __offset = (ix) - (ut)->chunkNativeStart; \ + if (__offset>=0 && __offset<(int64_t)(ut)->nativeIndexingLimit && (ut)->chunkContents[__offset]<0xdc00) { \ + (ut)->chunkOffset=(int32_t)__offset; \ + } else { \ + utext_setNativeIndex((ut), (ix)); \ + } \ +} UPRV_BLOCK_MACRO_END + + + +/************************************************************************************ + * + * Functions related to writing or modifying the text. + * These will work only with modifiable UTexts. Attempting to + * modify a read-only UText will return an error status. + * + ************************************************************************************/ + + +/** + * Return true if the text can be written (modified) with utext_replace() or + * utext_copy(). For the text to be writable, the text provider must + * be of a type that supports writing and the UText must not be frozen. + * + * Attempting to modify text when utext_isWriteable() is false will fail - + * the text will not be modified, and an error will be returned from the function + * that attempted the modification. + * + * @param ut the UText to be tested. + * @return true if the text is modifiable. + * + * @see utext_freeze() + * @see utext_replace() + * @see utext_copy() + * @stable ICU 3.4 + * + */ +U_CAPI UBool U_EXPORT2 +utext_isWritable(const UText *ut); + + +/** + * Test whether there is meta data associated with the text. + * @see Replaceable::hasMetaData() + * + * @param ut The UText to be tested + * @return true if the underlying text includes meta data. + * @stable ICU 3.4 + */ +U_CAPI UBool U_EXPORT2 +utext_hasMetaData(const UText *ut); + + +/** + * Replace a range of the original text with a replacement text. + * + * Leaves the current iteration position at the position following the + * newly inserted replacement text. + * + * This function is only available on UText types that support writing, + * that is, ones where utext_isWritable() returns true. + * + * When using this function, there should be only a single UText opened onto the + * underlying native text string. Behavior after a replace operation + * on a UText is undefined for any other additional UTexts that refer to the + * modified string. + * + * @param ut the UText representing the text to be operated on. + * @param nativeStart the native index of the start of the region to be replaced + * @param nativeLimit the native index of the character following the region to be replaced. + * @param replacementText pointer to the replacement text + * @param replacementLength length of the replacement text, or -1 if the text is NUL terminated. + * @param status receives any error status. Possible errors include + * U_NO_WRITE_PERMISSION + * + * @return The signed number of (native) storage units by which + * the length of the text expanded or contracted. + * + * @stable ICU 3.4 + */ +U_CAPI int32_t U_EXPORT2 +utext_replace(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + const UChar *replacementText, int32_t replacementLength, + UErrorCode *status); + + + +/** + * + * Copy or move a substring from one position to another within the text, + * while retaining any metadata associated with the text. + * This function is used to duplicate or reorder substrings. + * The destination index must not overlap the source range. + * + * The text to be copied or moved is inserted at destIndex; + * it does not replace or overwrite any existing text. + * + * The iteration position is left following the newly inserted text + * at the destination position. + * + * This function is only available on UText types that support writing, + * that is, ones where utext_isWritable() returns true. + * + * When using this function, there should be only a single UText opened onto the + * underlying native text string. Behavior after a copy operation + * on a UText is undefined in any other additional UTexts that refer to the + * modified string. + * + * @param ut The UText representing the text to be operated on. + * @param nativeStart The native index of the start of the region to be copied or moved + * @param nativeLimit The native index of the character position following the region + * to be copied. + * @param destIndex The native destination index to which the source substring is + * copied or moved. + * @param move If true, then the substring is moved, not copied/duplicated. + * @param status receives any error status. Possible errors include U_NO_WRITE_PERMISSION + * + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +utext_copy(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + int64_t destIndex, + UBool move, + UErrorCode *status); + + +/** + *

+ * Freeze a UText. This prevents any modification to the underlying text itself + * by means of functions operating on this UText. + *

+ *

+ * Once frozen, a UText can not be unfrozen. The intent is to ensure + * that a the text underlying a frozen UText wrapper cannot be modified via that UText. + *

+ *

+ * Caution: freezing a UText will disable changes made via the specific + * frozen UText wrapper only; it will not have any effect on the ability to + * directly modify the text by bypassing the UText. Any such backdoor modifications + * are always an error while UText access is occurring because the underlying + * text can get out of sync with UText's buffering. + *

+ * + * @param ut The UText to be frozen. + * @see utext_isWritable() + * @stable ICU 3.6 + */ +U_CAPI void U_EXPORT2 +utext_freeze(UText *ut); + + +/** + * UText provider properties (bit field indexes). + * + * @see UText + * @stable ICU 3.4 + */ +enum { + /** + * It is potentially time consuming for the provider to determine the length of the text. + * @stable ICU 3.4 + */ + UTEXT_PROVIDER_LENGTH_IS_EXPENSIVE = 1, + /** + * Text chunks remain valid and usable until the text object is modified or + * deleted, not just until the next time the access() function is called + * (which is the default). + * @stable ICU 3.4 + */ + UTEXT_PROVIDER_STABLE_CHUNKS = 2, + /** + * The provider supports modifying the text via the replace() and copy() + * functions. + * @see Replaceable + * @stable ICU 3.4 + */ + UTEXT_PROVIDER_WRITABLE = 3, + /** + * There is meta data associated with the text. + * @see Replaceable::hasMetaData() + * @stable ICU 3.4 + */ + UTEXT_PROVIDER_HAS_META_DATA = 4, + /** + * Text provider owns the text storage. + * Generally occurs as the result of a deep clone of the UText. + * When closing the UText, the associated text must + * also be closed/deleted/freed/ whatever is appropriate. + * @stable ICU 3.6 + */ + UTEXT_PROVIDER_OWNS_TEXT = 5 +}; + +/** + * Function type declaration for UText.clone(). + * + * clone a UText. Much like opening a UText where the source text is itself + * another UText. + * + * A deep clone will copy both the UText data structures and the underlying text. + * The original and cloned UText will operate completely independently; modifications + * made to the text in one will not effect the other. Text providers are not + * required to support deep clones. The user of clone() must check the status return + * and be prepared to handle failures. + * + * A shallow clone replicates only the UText data structures; it does not make + * a copy of the underlying text. Shallow clones can be used as an efficient way to + * have multiple iterators active in a single text string that is not being + * modified. + * + * A shallow clone operation must not fail except for truly exceptional conditions such + * as memory allocation failures. + * + * A UText and its clone may be safely concurrently accessed by separate threads. + * This is true for both shallow and deep clones. + * It is the responsibility of the Text Provider to ensure that this thread safety + * constraint is met. + + * + * @param dest A UText struct to be filled in with the result of the clone operation, + * or NULL if the clone function should heap-allocate a new UText struct. + * @param src The UText to be cloned. + * @param deep true to request a deep clone, false for a shallow clone. + * @param status Errors are returned here. For deep clones, U_UNSUPPORTED_ERROR + * should be returned if the text provider is unable to clone the + * original text. + * @return The newly created clone, or NULL if the clone operation failed. + * + * @stable ICU 3.4 + */ +typedef UText * U_CALLCONV +UTextClone(UText *dest, const UText *src, UBool deep, UErrorCode *status); + + +/** + * Function type declaration for UText.nativeLength(). + * + * @param ut the UText to get the length of. + * @return the length, in the native units of the original text string. + * @see UText + * @stable ICU 3.4 + */ +typedef int64_t U_CALLCONV +UTextNativeLength(UText *ut); + +/** + * Function type declaration for UText.access(). Get the description of the text chunk + * containing the text at a requested native index. The UText's iteration + * position will be left at the requested index. If the index is out + * of bounds, the iteration position will be left at the start or end + * of the string, as appropriate. + * + * Chunks must begin and end on code point boundaries. A single code point + * comprised of multiple storage units must never span a chunk boundary. + * + * + * @param ut the UText being accessed. + * @param nativeIndex Requested index of the text to be accessed. + * @param forward If true, then the returned chunk must contain text + * starting from the index, so that start<=index + * The size (number of 16 bit UChars) in the data to be extracted is returned. The + * full amount is returned, even when the specified buffer size is smaller. + *

+ * The extracted string will (if you are a user) / must (if you are a text provider) + * be NUL-terminated if there is sufficient space in the destination buffer. + * + * @param ut the UText from which to extract data. + * @param nativeStart the native index of the first character to extract. + * @param nativeLimit the native string index of the position following the last + * character to extract. + * @param dest the UChar (UTF-16) buffer into which the extracted text is placed + * @param destCapacity The size, in UChars, of the destination buffer. May be zero + * for precomputing the required size. + * @param status receives any error status. + * If U_BUFFER_OVERFLOW_ERROR: Returns number of UChars for + * preflighting. + * @return Number of UChars in the data. Does not include a trailing NUL. + * + * @stable ICU 3.4 + */ +typedef int32_t U_CALLCONV +UTextExtract(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + UChar *dest, int32_t destCapacity, + UErrorCode *status); + +/** + * Function type declaration for UText.replace(). + * + * Replace a range of the original text with a replacement text. + * + * Leaves the current iteration position at the position following the + * newly inserted replacement text. + * + * This function need only be implemented on UText types that support writing. + * + * When using this function, there should be only a single UText opened onto the + * underlying native text string. The function is responsible for updating the + * text chunk within the UText to reflect the updated iteration position, + * taking into account any changes to the underlying string's structure caused + * by the replace operation. + * + * @param ut the UText representing the text to be operated on. + * @param nativeStart the index of the start of the region to be replaced + * @param nativeLimit the index of the character following the region to be replaced. + * @param replacementText pointer to the replacement text + * @param replacmentLength length of the replacement text in UChars, or -1 if the text is NUL terminated. + * @param status receives any error status. Possible errors include + * U_NO_WRITE_PERMISSION + * + * @return The signed number of (native) storage units by which + * the length of the text expanded or contracted. + * + * @stable ICU 3.4 + */ +typedef int32_t U_CALLCONV +UTextReplace(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + const UChar *replacementText, int32_t replacmentLength, + UErrorCode *status); + +/** + * Function type declaration for UText.copy(). + * + * Copy or move a substring from one position to another within the text, + * while retaining any metadata associated with the text. + * This function is used to duplicate or reorder substrings. + * The destination index must not overlap the source range. + * + * The text to be copied or moved is inserted at destIndex; + * it does not replace or overwrite any existing text. + * + * This function need only be implemented for UText types that support writing. + * + * When using this function, there should be only a single UText opened onto the + * underlying native text string. The function is responsible for updating the + * text chunk within the UText to reflect the updated iteration position, + * taking into account any changes to the underlying string's structure caused + * by the replace operation. + * + * @param ut The UText representing the text to be operated on. + * @param nativeStart The index of the start of the region to be copied or moved + * @param nativeLimit The index of the character following the region to be replaced. + * @param nativeDest The destination index to which the source substring is copied or moved. + * @param move If true, then the substring is moved, not copied/duplicated. + * @param status receives any error status. Possible errors include U_NO_WRITE_PERMISSION + * + * @stable ICU 3.4 + */ +typedef void U_CALLCONV +UTextCopy(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + int64_t nativeDest, + UBool move, + UErrorCode *status); + +/** + * Function type declaration for UText.mapOffsetToNative(). + * Map from the current UChar offset within the current text chunk to + * the corresponding native index in the original source text. + * + * This is required only for text providers that do not use native UTF-16 indexes. + * + * @param ut the UText. + * @return Absolute (native) index corresponding to chunkOffset in the current chunk. + * The returned native index should always be to a code point boundary. + * + * @stable ICU 3.4 + */ +typedef int64_t U_CALLCONV +UTextMapOffsetToNative(const UText *ut); + +/** + * Function type declaration for UText.mapIndexToUTF16(). + * Map from a native index to a UChar offset within a text chunk. + * Behavior is undefined if the native index does not fall within the + * current chunk. + * + * This function is required only for text providers that do not use native UTF-16 indexes. + * + * @param ut The UText containing the text chunk. + * @param nativeIndex Absolute (native) text index, chunk->start<=index<=chunk->limit. + * @return Chunk-relative UTF-16 offset corresponding to the specified native + * index. + * + * @stable ICU 3.4 + */ +typedef int32_t U_CALLCONV +UTextMapNativeIndexToUTF16(const UText *ut, int64_t nativeIndex); + + +/** + * Function type declaration for UText.utextClose(). + * + * A Text Provider close function is only required for provider types that make + * allocations in their open function (or other functions) that must be + * cleaned when the UText is closed. + * + * The allocation of the UText struct itself and any "extra" storage + * associated with the UText is handled by the common UText implementation + * and does not require provider specific cleanup in a close function. + * + * Most UText provider implementations do not need to implement this function. + * + * @param ut A UText object to be closed. + * + * @stable ICU 3.4 + */ +typedef void U_CALLCONV +UTextClose(UText *ut); + + +/** + * (public) Function dispatch table for UText. + * Conceptually very much like a C++ Virtual Function Table. + * This struct defines the organization of the table. + * Each text provider implementation must provide an + * actual table that is initialized with the appropriate functions + * for the type of text being handled. + * @stable ICU 3.6 + */ +struct UTextFuncs { + /** + * (public) Function table size, sizeof(UTextFuncs) + * Intended for use should the table grow to accommodate added + * functions in the future, to allow tests for older format + * function tables that do not contain the extensions. + * + * Fields are placed for optimal alignment on + * 32/64/128-bit-pointer machines, by normally grouping together + * 4 32-bit fields, + * 4 pointers, + * 2 64-bit fields + * in sequence. + * @stable ICU 3.6 + */ + int32_t tableSize; + + /** + * (private) Alignment padding. + * Do not use, reserved for use by the UText framework only. + * @internal + */ + int32_t reserved1, /** @internal */ reserved2, /** @internal */ reserved3; + + + /** + * (public) Function pointer for UTextClone + * + * @see UTextClone + * @stable ICU 3.6 + */ + UTextClone *clone; + + /** + * (public) function pointer for UTextLength + * May be expensive to compute! + * + * @see UTextLength + * @stable ICU 3.6 + */ + UTextNativeLength *nativeLength; + + /** + * (public) Function pointer for UTextAccess. + * + * @see UTextAccess + * @stable ICU 3.6 + */ + UTextAccess *access; + + /** + * (public) Function pointer for UTextExtract. + * + * @see UTextExtract + * @stable ICU 3.6 + */ + UTextExtract *extract; + + /** + * (public) Function pointer for UTextReplace. + * + * @see UTextReplace + * @stable ICU 3.6 + */ + UTextReplace *replace; + + /** + * (public) Function pointer for UTextCopy. + * + * @see UTextCopy + * @stable ICU 3.6 + */ + UTextCopy *copy; + + /** + * (public) Function pointer for UTextMapOffsetToNative. + * + * @see UTextMapOffsetToNative + * @stable ICU 3.6 + */ + UTextMapOffsetToNative *mapOffsetToNative; + + /** + * (public) Function pointer for UTextMapNativeIndexToUTF16. + * + * @see UTextMapNativeIndexToUTF16 + * @stable ICU 3.6 + */ + UTextMapNativeIndexToUTF16 *mapNativeIndexToUTF16; + + /** + * (public) Function pointer for UTextClose. + * + * @see UTextClose + * @stable ICU 3.6 + */ + UTextClose *close; + + /** + * (private) Spare function pointer + * @internal + */ + UTextClose *spare1; + + /** + * (private) Spare function pointer + * @internal + */ + UTextClose *spare2; + + /** + * (private) Spare function pointer + * @internal + */ + UTextClose *spare3; + +}; +/** + * Function dispatch table for UText + * @see UTextFuncs + */ +typedef struct UTextFuncs UTextFuncs; + + /** + * UText struct. Provides the interface between the generic UText access code + * and the UText provider code that works on specific kinds of + * text (UTF-8, noncontiguous UTF-16, whatever.) + * + * Applications that are using predefined types of text providers + * to pass text data to ICU services will have no need to view the + * internals of the UText structs that they open. + * + * @stable ICU 3.6 + */ +struct UText { + /** + * (private) Magic. Used to help detect when UText functions are handed + * invalid or uninitialized UText structs. + * utext_openXYZ() functions take an initialized, + * but not necessarily open, UText struct as an + * optional fill-in parameter. This magic field + * is used to check for that initialization. + * Text provider close functions must NOT clear + * the magic field because that would prevent + * reuse of the UText struct. + * @internal + */ + uint32_t magic; + + + /** + * (private) Flags for managing the allocation and freeing of + * memory associated with this UText. + * @internal + */ + int32_t flags; + + + /** + * Text provider properties. This set of flags is maintained by the + * text provider implementation. + * @stable ICU 3.4 + */ + int32_t providerProperties; + + /** + * (public) sizeOfStruct=sizeof(UText) + * Allows possible backward compatible extension. + * + * @stable ICU 3.4 + */ + int32_t sizeOfStruct; + + /* ------ 16 byte alignment boundary ----------- */ + + + /** + * (protected) Native index of the first character position following + * the current chunk. + * @stable ICU 3.6 + */ + int64_t chunkNativeLimit; + + /** + * (protected) Size in bytes of the extra space (pExtra). + * @stable ICU 3.4 + */ + int32_t extraSize; + + /** + * (protected) The highest chunk offset where native indexing and + * chunk (UTF-16) indexing correspond. For UTF-16 sources, value + * will be equal to chunkLength. + * + * @stable ICU 3.6 + */ + int32_t nativeIndexingLimit; + + /* ---- 16 byte alignment boundary------ */ + + /** + * (protected) Native index of the first character in the text chunk. + * @stable ICU 3.6 + */ + int64_t chunkNativeStart; + + /** + * (protected) Current iteration position within the text chunk (UTF-16 buffer). + * This is the index to the character that will be returned by utext_next32(). + * @stable ICU 3.6 + */ + int32_t chunkOffset; + + /** + * (protected) Length the text chunk (UTF-16 buffer), in UChars. + * @stable ICU 3.6 + */ + int32_t chunkLength; + + /* ---- 16 byte alignment boundary-- */ + + + /** + * (protected) pointer to a chunk of text in UTF-16 format. + * May refer either to original storage of the source of the text, or + * if conversion was required, to a buffer owned by the UText. + * @stable ICU 3.6 + */ + const UChar *chunkContents; + + /** + * (public) Pointer to Dispatch table for accessing functions for this UText. + * @stable ICU 3.6 + */ + const UTextFuncs *pFuncs; + + /** + * (protected) Pointer to additional space requested by the + * text provider during the utext_open operation. + * @stable ICU 3.4 + */ + void *pExtra; + + /** + * (protected) Pointer to string or text-containing object or similar. + * This is the source of the text that this UText is wrapping, in a format + * that is known to the text provider functions. + * @stable ICU 3.4 + */ + const void *context; + + /* --- 16 byte alignment boundary--- */ + + /** + * (protected) Pointer fields available for use by the text provider. + * Not used by UText common code. + * @stable ICU 3.6 + */ + const void *p; + /** + * (protected) Pointer fields available for use by the text provider. + * Not used by UText common code. + * @stable ICU 3.6 + */ + const void *q; + /** + * (protected) Pointer fields available for use by the text provider. + * Not used by UText common code. + * @stable ICU 3.6 + */ + const void *r; + + /** + * Private field reserved for future use by the UText framework + * itself. This is not to be touched by the text providers. + * @internal ICU 3.4 + */ + void *privP; + + + /* --- 16 byte alignment boundary--- */ + + + /** + * (protected) Integer field reserved for use by the text provider. + * Not used by the UText framework, or by the client (user) of the UText. + * @stable ICU 3.4 + */ + int64_t a; + + /** + * (protected) Integer field reserved for use by the text provider. + * Not used by the UText framework, or by the client (user) of the UText. + * @stable ICU 3.4 + */ + int32_t b; + + /** + * (protected) Integer field reserved for use by the text provider. + * Not used by the UText framework, or by the client (user) of the UText. + * @stable ICU 3.4 + */ + int32_t c; + + /* ---- 16 byte alignment boundary---- */ + + + /** + * Private field reserved for future use by the UText framework + * itself. This is not to be touched by the text providers. + * @internal ICU 3.4 + */ + int64_t privA; + /** + * Private field reserved for future use by the UText framework + * itself. This is not to be touched by the text providers. + * @internal ICU 3.4 + */ + int32_t privB; + /** + * Private field reserved for future use by the UText framework + * itself. This is not to be touched by the text providers. + * @internal ICU 3.4 + */ + int32_t privC; +}; + + +/** + * Common function for use by Text Provider implementations to allocate and/or initialize + * a new UText struct. To be called in the implementation of utext_open() functions. + * If the supplied UText parameter is null, a new UText struct will be allocated on the heap. + * If the supplied UText is already open, the provider's close function will be called + * so that the struct can be reused by the open that is in progress. + * + * @param ut pointer to a UText struct to be re-used, or null if a new UText + * should be allocated. + * @param extraSpace The amount of additional space to be allocated as part + * of this UText, for use by types of providers that require + * additional storage. + * @param status Errors are returned here. + * @return pointer to the UText, allocated if necessary, with extra space set up if requested. + * @stable ICU 3.4 + */ +U_CAPI UText * U_EXPORT2 +utext_setup(UText *ut, int32_t extraSpace, UErrorCode *status); + +// do not use #ifndef U_HIDE_INTERNAL_API around the following! +/** + * @internal + * Value used to help identify correctly initialized UText structs. + * Note: must be publicly visible so that UTEXT_INITIALIZER can access it. + */ +enum { + UTEXT_MAGIC = 0x345ad82c +}; + +/** + * initializer to be used with local (stack) instances of a UText + * struct. UText structs must be initialized before passing + * them to one of the utext_open functions. + * + * @stable ICU 3.6 + */ +#define UTEXT_INITIALIZER { \ + UTEXT_MAGIC, /* magic */ \ + 0, /* flags */ \ + 0, /* providerProps */ \ + sizeof(UText), /* sizeOfStruct */ \ + 0, /* chunkNativeLimit */ \ + 0, /* extraSize */ \ + 0, /* nativeIndexingLimit */ \ + 0, /* chunkNativeStart */ \ + 0, /* chunkOffset */ \ + 0, /* chunkLength */ \ + NULL, /* chunkContents */ \ + NULL, /* pFuncs */ \ + NULL, /* pExtra */ \ + NULL, /* context */ \ + NULL, NULL, NULL, /* p, q, r */ \ + NULL, /* privP */ \ + 0, 0, 0, /* a, b, c */ \ + 0, 0, 0 /* privA,B,C, */ \ + } + + +U_CDECL_END + + + + +#endif + +// uset.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* +* Copyright (C) 2002-2014, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: uset.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2002mar07 +* created by: Markus W. Scherer +* +* C version of UnicodeSet. +*/ + + +/** + * \file + * \brief C API: Unicode Set + * + *

This is a C wrapper around the C++ UnicodeSet class.

+ */ + +#ifndef __USET_H__ +#define __USET_H__ + + + +#ifndef USET_DEFINED + +#ifndef U_IN_DOXYGEN +#define USET_DEFINED +#endif +/** + * USet is the C API type corresponding to C++ class UnicodeSet. + * Use the uset_* API to manipulate. Create with + * uset_open*, and destroy with uset_close. + * @stable ICU 2.4 + */ +typedef struct USet USet; +#endif + +/** + * Bitmask values to be passed to uset_openPatternOptions() or + * uset_applyPattern() taking an option parameter. + * @stable ICU 2.4 + */ +enum { + /** + * Ignore white space within patterns unless quoted or escaped. + * @stable ICU 2.4 + */ + USET_IGNORE_SPACE = 1, + + /** + * Enable case insensitive matching. E.g., "[ab]" with this flag + * will match 'a', 'A', 'b', and 'B'. "[^ab]" with this flag will + * match all except 'a', 'A', 'b', and 'B'. This performs a full + * closure over case mappings, e.g. U+017F for s. + * + * The resulting set is a superset of the input for the code points but + * not for the strings. + * It performs a case mapping closure of the code points and adds + * full case folding strings for the code points, and reduces strings of + * the original set to their full case folding equivalents. + * + * This is designed for case-insensitive matches, for example + * in regular expressions. The full code point case closure allows checking of + * an input character directly against the closure set. + * Strings are matched by comparing the case-folded form from the closure + * set with an incremental case folding of the string in question. + * + * The closure set will also contain single code points if the original + * set contained case-equivalent strings (like U+00DF for "ss" or "Ss" etc.). + * This is not necessary (that is, redundant) for the above matching method + * but results in the same closure sets regardless of whether the original + * set contained the code point or a string. + * + * @stable ICU 2.4 + */ + USET_CASE_INSENSITIVE = 2, + + /** + * Enable case insensitive matching. E.g., "[ab]" with this flag + * will match 'a', 'A', 'b', and 'B'. "[^ab]" with this flag will + * match all except 'a', 'A', 'b', and 'B'. This adds the lower-, + * title-, and uppercase mappings as well as the case folding + * of each existing element in the set. + * @stable ICU 3.2 + */ + USET_ADD_CASE_MAPPINGS = 4 +}; + +/** + * Argument values for whether span() and similar functions continue while + * the current character is contained vs. not contained in the set. + * + * The functionality is straightforward for sets with only single code points, + * without strings (which is the common case): + * - USET_SPAN_CONTAINED and USET_SPAN_SIMPLE work the same. + * - USET_SPAN_CONTAINED and USET_SPAN_SIMPLE are inverses of USET_SPAN_NOT_CONTAINED. + * - span() and spanBack() partition any string the same way when + * alternating between span(USET_SPAN_NOT_CONTAINED) and + * span(either "contained" condition). + * - Using a complemented (inverted) set and the opposite span conditions + * yields the same results. + * + * When a set contains multi-code point strings, then these statements may not + * be true, depending on the strings in the set (for example, whether they + * overlap with each other) and the string that is processed. + * For a set with strings: + * - The complement of the set contains the opposite set of code points, + * but the same set of strings. + * Therefore, complementing both the set and the span conditions + * may yield different results. + * - When starting spans at different positions in a string + * (span(s, ...) vs. span(s+1, ...)) the ends of the spans may be different + * because a set string may start before the later position. + * - span(USET_SPAN_SIMPLE) may be shorter than + * span(USET_SPAN_CONTAINED) because it will not recursively try + * all possible paths. + * For example, with a set which contains the three strings "xy", "xya" and "ax", + * span("xyax", USET_SPAN_CONTAINED) will return 4 but + * span("xyax", USET_SPAN_SIMPLE) will return 3. + * span(USET_SPAN_SIMPLE) will never be longer than + * span(USET_SPAN_CONTAINED). + * - With either "contained" condition, span() and spanBack() may partition + * a string in different ways. + * For example, with a set which contains the two strings "ab" and "ba", + * and when processing the string "aba", + * span() will yield contained/not-contained boundaries of { 0, 2, 3 } + * while spanBack() will yield boundaries of { 0, 1, 3 }. + * + * Note: If it is important to get the same boundaries whether iterating forward + * or backward through a string, then either only span() should be used and + * the boundaries cached for backward operation, or an ICU BreakIterator + * could be used. + * + * Note: Unpaired surrogates are treated like surrogate code points. + * Similarly, set strings match only on code point boundaries, + * never in the middle of a surrogate pair. + * Illegal UTF-8 sequences are treated like U+FFFD. + * When processing UTF-8 strings, malformed set strings + * (strings with unpaired surrogates which cannot be converted to UTF-8) + * are ignored. + * + * @stable ICU 3.8 + */ +typedef enum USetSpanCondition { + /** + * Continues a span() while there is no set element at the current position. + * Increments by one code point at a time. + * Stops before the first set element (character or string). + * (For code points only, this is like while contains(current)==false). + * + * When span() returns, the substring between where it started and the position + * it returned consists only of characters that are not in the set, + * and none of its strings overlap with the span. + * + * @stable ICU 3.8 + */ + USET_SPAN_NOT_CONTAINED = 0, + /** + * Spans the longest substring that is a concatenation of set elements (characters or strings). + * (For characters only, this is like while contains(current)==true). + * + * When span() returns, the substring between where it started and the position + * it returned consists only of set elements (characters or strings) that are in the set. + * + * If a set contains strings, then the span will be the longest substring for which there + * exists at least one non-overlapping concatenation of set elements (characters or strings). + * This is equivalent to a POSIX regular expression for (OR of each set element)*. + * (Java/ICU/Perl regex stops at the first match of an OR.) + * + * @stable ICU 3.8 + */ + USET_SPAN_CONTAINED = 1, + /** + * Continues a span() while there is a set element at the current position. + * Increments by the longest matching element at each position. + * (For characters only, this is like while contains(current)==true). + * + * When span() returns, the substring between where it started and the position + * it returned consists only of set elements (characters or strings) that are in the set. + * + * If a set only contains single characters, then this is the same + * as USET_SPAN_CONTAINED. + * + * If a set contains strings, then the span will be the longest substring + * with a match at each position with the longest single set element (character or string). + * + * Use this span condition together with other longest-match algorithms, + * such as ICU converters (ucnv_getUnicodeSet()). + * + * @stable ICU 3.8 + */ + USET_SPAN_SIMPLE = 2, +} USetSpanCondition; + +enum { + /** + * Capacity of USerializedSet::staticArray. + * Enough for any single-code point set. + * Also provides padding for nice sizeof(USerializedSet). + * @stable ICU 2.4 + */ + USET_SERIALIZED_STATIC_ARRAY_CAPACITY=8 +}; + +/** + * A serialized form of a Unicode set. Limited manipulations are + * possible directly on a serialized set. See below. + * @stable ICU 2.4 + */ +typedef struct USerializedSet { + /** + * The serialized Unicode Set. + * @stable ICU 2.4 + */ + const uint16_t *array; + /** + * The length of the array that contains BMP characters. + * @stable ICU 2.4 + */ + int32_t bmpLength; + /** + * The total length of the array. + * @stable ICU 2.4 + */ + int32_t length; + /** + * A small buffer for the array to reduce memory allocations. + * @stable ICU 2.4 + */ + uint16_t staticArray[USET_SERIALIZED_STATIC_ARRAY_CAPACITY]; +} USerializedSet; + +/********************************************************************* + * USet API + *********************************************************************/ + +/** + * Create an empty USet object. + * Equivalent to uset_open(1, 0). + * @return a newly created USet. The caller must call uset_close() on + * it when done. + * @stable ICU 4.2 + */ +U_CAPI USet* U_EXPORT2 +uset_openEmpty(void); + +/** + * Creates a USet object that contains the range of characters + * start..end, inclusive. If start > end + * then an empty set is created (same as using uset_openEmpty()). + * @param start first character of the range, inclusive + * @param end last character of the range, inclusive + * @return a newly created USet. The caller must call uset_close() on + * it when done. + * @stable ICU 2.4 + */ +U_CAPI USet* U_EXPORT2 +uset_open(UChar32 start, UChar32 end); + +/** + * Creates a set from the given pattern. See the UnicodeSet class + * description for the syntax of the pattern language. + * @param pattern a string specifying what characters are in the set + * @param patternLength the length of the pattern, or -1 if null + * terminated + * @param ec the error code + * @stable ICU 2.4 + */ +U_CAPI USet* U_EXPORT2 +uset_openPattern(const UChar* pattern, int32_t patternLength, + UErrorCode* ec); + +/** + * Creates a set from the given pattern. See the UnicodeSet class + * description for the syntax of the pattern language. + * @param pattern a string specifying what characters are in the set + * @param patternLength the length of the pattern, or -1 if null + * terminated + * @param options bitmask for options to apply to the pattern. + * Valid options are USET_IGNORE_SPACE and USET_CASE_INSENSITIVE. + * @param ec the error code + * @stable ICU 2.4 + */ +U_CAPI USet* U_EXPORT2 +uset_openPatternOptions(const UChar* pattern, int32_t patternLength, + uint32_t options, + UErrorCode* ec); + +/** + * Disposes of the storage used by a USet object. This function should + * be called exactly once for objects returned by uset_open(). + * @param set the object to dispose of + * @stable ICU 2.4 + */ +U_CAPI void U_EXPORT2 +uset_close(USet* set); + + +/** + * Returns a copy of this object. + * If this set is frozen, then the clone will be frozen as well. + * Use uset_cloneAsThawed() for a mutable clone of a frozen set. + * @param set the original set + * @return the newly allocated copy of the set + * @see uset_cloneAsThawed + * @stable ICU 3.8 + */ +U_CAPI USet * U_EXPORT2 +uset_clone(const USet *set); + +/** + * Determines whether the set has been frozen (made immutable) or not. + * See the ICU4J Freezable interface for details. + * @param set the set + * @return true/false for whether the set has been frozen + * @see uset_freeze + * @see uset_cloneAsThawed + * @stable ICU 3.8 + */ +U_CAPI UBool U_EXPORT2 +uset_isFrozen(const USet *set); + +/** + * Freeze the set (make it immutable). + * Once frozen, it cannot be unfrozen and is therefore thread-safe + * until it is deleted. + * See the ICU4J Freezable interface for details. + * Freezing the set may also make some operations faster, for example + * uset_contains() and uset_span(). + * A frozen set will not be modified. (It remains frozen.) + * @param set the set + * @return the same set, now frozen + * @see uset_isFrozen + * @see uset_cloneAsThawed + * @stable ICU 3.8 + */ +U_CAPI void U_EXPORT2 +uset_freeze(USet *set); + +/** + * Clone the set and make the clone mutable. + * See the ICU4J Freezable interface for details. + * @param set the set + * @return the mutable clone + * @see uset_freeze + * @see uset_isFrozen + * @see uset_clone + * @stable ICU 3.8 + */ +U_CAPI USet * U_EXPORT2 +uset_cloneAsThawed(const USet *set); + +/** + * Causes the USet object to represent the range start - end. + * If start > end then this USet is set to an empty range. + * A frozen set will not be modified. + * @param set the object to set to the given range + * @param start first character in the set, inclusive + * @param end last character in the set, inclusive + * @stable ICU 3.2 + */ +U_CAPI void U_EXPORT2 +uset_set(USet* set, + UChar32 start, UChar32 end); + +/** + * Modifies the set to represent the set specified by the given + * pattern. See the UnicodeSet class description for the syntax of + * the pattern language. See also the User Guide chapter about UnicodeSet. + * Empties the set passed before applying the pattern. + * A frozen set will not be modified. + * @param set The set to which the pattern is to be applied. + * @param pattern A pointer to UChar string specifying what characters are in the set. + * The character at pattern[0] must be a '['. + * @param patternLength The length of the UChar string. -1 if NUL terminated. + * @param options A bitmask for options to apply to the pattern. + * Valid options are USET_IGNORE_SPACE and USET_CASE_INSENSITIVE. + * @param status Returns an error if the pattern cannot be parsed. + * @return Upon successful parse, the value is either + * the index of the character after the closing ']' + * of the parsed pattern. + * If the status code indicates failure, then the return value + * is the index of the error in the source. + * + * @stable ICU 2.8 + */ +U_CAPI int32_t U_EXPORT2 +uset_applyPattern(USet *set, + const UChar *pattern, int32_t patternLength, + uint32_t options, + UErrorCode *status); + +/** + * Modifies the set to contain those code points which have the given value + * for the given binary or enumerated property, as returned by + * u_getIntPropertyValue. Prior contents of this set are lost. + * A frozen set will not be modified. + * + * @param set the object to contain the code points defined by the property + * + * @param prop a property in the range UCHAR_BIN_START..UCHAR_BIN_LIMIT-1 + * or UCHAR_INT_START..UCHAR_INT_LIMIT-1 + * or UCHAR_MASK_START..UCHAR_MASK_LIMIT-1. + * + * @param value a value in the range u_getIntPropertyMinValue(prop).. + * u_getIntPropertyMaxValue(prop), with one exception. If prop is + * UCHAR_GENERAL_CATEGORY_MASK, then value should not be a UCharCategory, but + * rather a mask value produced by U_GET_GC_MASK(). This allows grouped + * categories such as [:L:] to be represented. + * + * @param ec error code input/output parameter + * + * @stable ICU 3.2 + */ +U_CAPI void U_EXPORT2 +uset_applyIntPropertyValue(USet* set, + UProperty prop, int32_t value, UErrorCode* ec); + +/** + * Modifies the set to contain those code points which have the + * given value for the given property. Prior contents of this + * set are lost. + * A frozen set will not be modified. + * + * @param set the object to contain the code points defined by the given + * property and value alias + * + * @param prop a string specifying a property alias, either short or long. + * The name is matched loosely. See PropertyAliases.txt for names and a + * description of loose matching. If the value string is empty, then this + * string is interpreted as either a General_Category value alias, a Script + * value alias, a binary property alias, or a special ID. Special IDs are + * matched loosely and correspond to the following sets: + * + * "ANY" = [\\u0000-\\U0010FFFF], + * "ASCII" = [\\u0000-\\u007F], + * "Assigned" = [:^Cn:]. + * + * @param propLength the length of the prop, or -1 if NULL + * + * @param value a string specifying a value alias, either short or long. + * The name is matched loosely. See PropertyValueAliases.txt for names + * and a description of loose matching. In addition to aliases listed, + * numeric values and canonical combining classes may be expressed + * numerically, e.g., ("nv", "0.5") or ("ccc", "220"). The value string + * may also be empty. + * + * @param valueLength the length of the value, or -1 if NULL + * + * @param ec error code input/output parameter + * + * @stable ICU 3.2 + */ +U_CAPI void U_EXPORT2 +uset_applyPropertyAlias(USet* set, + const UChar *prop, int32_t propLength, + const UChar *value, int32_t valueLength, + UErrorCode* ec); + +/** + * Return true if the given position, in the given pattern, appears + * to be the start of a UnicodeSet pattern. + * + * @param pattern a string specifying the pattern + * @param patternLength the length of the pattern, or -1 if NULL + * @param pos the given position + * @stable ICU 3.2 + */ +U_CAPI UBool U_EXPORT2 +uset_resemblesPattern(const UChar *pattern, int32_t patternLength, + int32_t pos); + +/** + * Returns a string representation of this set. If the result of + * calling this function is passed to a uset_openPattern(), it + * will produce another set that is equal to this one. + * @param set the set + * @param result the string to receive the rules, may be NULL + * @param resultCapacity the capacity of result, may be 0 if result is NULL + * @param escapeUnprintable if true then convert unprintable + * character to their hex escape representations, \\uxxxx or + * \\Uxxxxxxxx. Unprintable characters are those other than + * U+000A, U+0020..U+007E. + * @param ec error code. + * @return length of string, possibly larger than resultCapacity + * @stable ICU 2.4 + */ +U_CAPI int32_t U_EXPORT2 +uset_toPattern(const USet* set, + UChar* result, int32_t resultCapacity, + UBool escapeUnprintable, + UErrorCode* ec); + +/** + * Adds the given character to the given USet. After this call, + * uset_contains(set, c) will return true. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param c the character to add + * @stable ICU 2.4 + */ +U_CAPI void U_EXPORT2 +uset_add(USet* set, UChar32 c); + +/** + * Adds all of the elements in the specified set to this set if + * they're not already present. This operation effectively + * modifies this set so that its value is the union of the two + * sets. The behavior of this operation is unspecified if the specified + * collection is modified while the operation is in progress. + * A frozen set will not be modified. + * + * @param set the object to which to add the set + * @param additionalSet the source set whose elements are to be added to this set. + * @stable ICU 2.6 + */ +U_CAPI void U_EXPORT2 +uset_addAll(USet* set, const USet *additionalSet); + +/** + * Adds the given range of characters to the given USet. After this call, + * uset_contains(set, start, end) will return true. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param start the first character of the range to add, inclusive + * @param end the last character of the range to add, inclusive + * @stable ICU 2.2 + */ +U_CAPI void U_EXPORT2 +uset_addRange(USet* set, UChar32 start, UChar32 end); + +/** + * Adds the given string to the given USet. After this call, + * uset_containsString(set, str, strLen) will return true. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param str the string to add + * @param strLen the length of the string or -1 if null terminated. + * @stable ICU 2.4 + */ +U_CAPI void U_EXPORT2 +uset_addString(USet* set, const UChar* str, int32_t strLen); + +/** + * Adds each of the characters in this string to the set. Thus "ch" => {"c", "h"} + * If this set already any particular character, it has no effect on that character. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param str the source string + * @param strLen the length of the string or -1 if null terminated. + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +uset_addAllCodePoints(USet* set, const UChar *str, int32_t strLen); + +/** + * Removes the given character from the given USet. After this call, + * uset_contains(set, c) will return false. + * A frozen set will not be modified. + * @param set the object from which to remove the character + * @param c the character to remove + * @stable ICU 2.4 + */ +U_CAPI void U_EXPORT2 +uset_remove(USet* set, UChar32 c); + +/** + * Removes the given range of characters from the given USet. After this call, + * uset_contains(set, start, end) will return false. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param start the first character of the range to remove, inclusive + * @param end the last character of the range to remove, inclusive + * @stable ICU 2.2 + */ +U_CAPI void U_EXPORT2 +uset_removeRange(USet* set, UChar32 start, UChar32 end); + +/** + * Removes the given string to the given USet. After this call, + * uset_containsString(set, str, strLen) will return false. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param str the string to remove + * @param strLen the length of the string or -1 if null terminated. + * @stable ICU 2.4 + */ +U_CAPI void U_EXPORT2 +uset_removeString(USet* set, const UChar* str, int32_t strLen); +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Removes EACH of the characters in this string. Note: "ch" == {"c", "h"} + * A frozen set will not be modified. + * + * @param set the object to be modified + * @param str the string + * @param length the length of the string, or -1 if NUL-terminated + * @stable ICU 69 + */ +U_CAPI void U_EXPORT2 +uset_removeAllCodePoints(USet *set, const UChar *str, int32_t length); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Removes from this set all of its elements that are contained in the + * specified set. This operation effectively modifies this + * set so that its value is the asymmetric set difference of + * the two sets. + * A frozen set will not be modified. + * @param set the object from which the elements are to be removed + * @param removeSet the object that defines which elements will be + * removed from this set + * @stable ICU 3.2 + */ +U_CAPI void U_EXPORT2 +uset_removeAll(USet* set, const USet* removeSet); + +/** + * Retain only the elements in this set that are contained in the + * specified range. If start > end then an empty range is + * retained, leaving the set empty. This is equivalent to + * a boolean logic AND, or a set INTERSECTION. + * A frozen set will not be modified. + * + * @param set the object for which to retain only the specified range + * @param start first character, inclusive, of range to be retained + * to this set. + * @param end last character, inclusive, of range to be retained + * to this set. + * @stable ICU 3.2 + */ +U_CAPI void U_EXPORT2 +uset_retain(USet* set, UChar32 start, UChar32 end); +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Retains only the specified string from this set if it is present. + * Upon return this set will be empty if it did not contain s, or + * will only contain s if it did contain s. + * A frozen set will not be modified. + * + * @param set the object to be modified + * @param str the string + * @param length the length of the string, or -1 if NUL-terminated + * @stable ICU 69 + */ +U_CAPI void U_EXPORT2 +uset_retainString(USet *set, const UChar *str, int32_t length); + +/** + * Retains EACH of the characters in this string. Note: "ch" == {"c", "h"} + * A frozen set will not be modified. + * + * @param set the object to be modified + * @param str the string + * @param length the length of the string, or -1 if NUL-terminated + * @stable ICU 69 + */ +U_CAPI void U_EXPORT2 +uset_retainAllCodePoints(USet *set, const UChar *str, int32_t length); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Retains only the elements in this set that are contained in the + * specified set. In other words, removes from this set all of + * its elements that are not contained in the specified set. This + * operation effectively modifies this set so that its value is + * the intersection of the two sets. + * A frozen set will not be modified. + * + * @param set the object on which to perform the retain + * @param retain set that defines which elements this set will retain + * @stable ICU 3.2 + */ +U_CAPI void U_EXPORT2 +uset_retainAll(USet* set, const USet* retain); + +/** + * Reallocate this objects internal structures to take up the least + * possible space, without changing this object's value. + * A frozen set will not be modified. + * + * @param set the object on which to perform the compact + * @stable ICU 3.2 + */ +U_CAPI void U_EXPORT2 +uset_compact(USet* set); + +/** + * Inverts this set. This operation modifies this set so that + * its value is its complement. This operation does not affect + * the multicharacter strings, if any. + * A frozen set will not be modified. + * @param set the set + * @stable ICU 2.4 + */ +U_CAPI void U_EXPORT2 +uset_complement(USet* set); +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Complements the specified range in this set. Any character in + * the range will be removed if it is in this set, or will be + * added if it is not in this set. If start > end + * then an empty range is complemented, leaving the set unchanged. + * This is equivalent to a boolean logic XOR. + * A frozen set will not be modified. + * + * @param set the object to be modified + * @param start first character, inclusive, of range + * @param end last character, inclusive, of range + * @stable ICU 69 + */ +U_CAPI void U_EXPORT2 +uset_complementRange(USet *set, UChar32 start, UChar32 end); + +/** + * Complements the specified string in this set. + * The string will be removed if it is in this set, or will be added if it is not in this set. + * A frozen set will not be modified. + * + * @param set the object to be modified + * @param str the string + * @param length the length of the string, or -1 if NUL-terminated + * @stable ICU 69 + */ +U_CAPI void U_EXPORT2 +uset_complementString(USet *set, const UChar *str, int32_t length); + +/** + * Complements EACH of the characters in this string. Note: "ch" == {"c", "h"} + * A frozen set will not be modified. + * + * @param set the object to be modified + * @param str the string + * @param length the length of the string, or -1 if NUL-terminated + * @stable ICU 69 + */ +U_CAPI void U_EXPORT2 +uset_complementAllCodePoints(USet *set, const UChar *str, int32_t length); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Complements in this set all elements contained in the specified + * set. Any character in the other set will be removed if it is + * in this set, or will be added if it is not in this set. + * A frozen set will not be modified. + * + * @param set the set with which to complement + * @param complement set that defines which elements will be xor'ed + * from this set. + * @stable ICU 3.2 + */ +U_CAPI void U_EXPORT2 +uset_complementAll(USet* set, const USet* complement); + +/** + * Removes all of the elements from this set. This set will be + * empty after this call returns. + * A frozen set will not be modified. + * @param set the set + * @stable ICU 2.4 + */ +U_CAPI void U_EXPORT2 +uset_clear(USet* set); + +/** + * Close this set over the given attribute. For the attribute + * USET_CASE, the result is to modify this set so that: + * + * 1. For each character or string 'a' in this set, all strings or + * characters 'b' such that foldCase(a) == foldCase(b) are added + * to this set. + * + * 2. For each string 'e' in the resulting set, if e != + * foldCase(e), 'e' will be removed. + * + * Example: [aq\\u00DF{Bc}{bC}{Fi}] => [aAqQ\\u00DF\\uFB01{ss}{bc}{fi}] + * + * (Here foldCase(x) refers to the operation u_strFoldCase, and a + * == b denotes that the contents are the same, not pointer + * comparison.) + * + * A frozen set will not be modified. + * + * @param set the set + * + * @param attributes bitmask for attributes to close over. + * Currently only the USET_CASE bit is supported. Any undefined bits + * are ignored. + * @stable ICU 4.2 + */ +U_CAPI void U_EXPORT2 +uset_closeOver(USet* set, int32_t attributes); + +/** + * Remove all strings from this set. + * + * @param set the set + * @stable ICU 4.2 + */ +U_CAPI void U_EXPORT2 +uset_removeAllStrings(USet* set); + +/** + * Returns true if the given USet contains no characters and no + * strings. + * @param set the set + * @return true if set is empty + * @stable ICU 2.4 + */ +U_CAPI UBool U_EXPORT2 +uset_isEmpty(const USet* set); +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * @param set the set + * @return true if this set contains multi-character strings or the empty string. + * @stable ICU 70 + */ +U_CAPI UBool U_EXPORT2 +uset_hasStrings(const USet *set); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Returns true if the given USet contains the given character. + * This function works faster with a frozen set. + * @param set the set + * @param c The codepoint to check for within the set + * @return true if set contains c + * @stable ICU 2.4 + */ +U_CAPI UBool U_EXPORT2 +uset_contains(const USet* set, UChar32 c); + +/** + * Returns true if the given USet contains all characters c + * where start <= c && c <= end. + * @param set the set + * @param start the first character of the range to test, inclusive + * @param end the last character of the range to test, inclusive + * @return true if set contains the range + * @stable ICU 2.2 + */ +U_CAPI UBool U_EXPORT2 +uset_containsRange(const USet* set, UChar32 start, UChar32 end); + +/** + * Returns true if the given USet contains the given string. + * @param set the set + * @param str the string + * @param strLen the length of the string or -1 if null terminated. + * @return true if set contains str + * @stable ICU 2.4 + */ +U_CAPI UBool U_EXPORT2 +uset_containsString(const USet* set, const UChar* str, int32_t strLen); + +/** + * Returns the index of the given character within this set, where + * the set is ordered by ascending code point. If the character + * is not in this set, return -1. The inverse of this method is + * charAt(). + * @param set the set + * @param c the character to obtain the index for + * @return an index from 0..size()-1, or -1 + * @stable ICU 3.2 + */ +U_CAPI int32_t U_EXPORT2 +uset_indexOf(const USet* set, UChar32 c); + +/** + * Returns the character at the given index within this set, where + * the set is ordered by ascending code point. If the index is + * out of range, return (UChar32)-1. The inverse of this method is + * indexOf(). + * @param set the set + * @param charIndex an index from 0..size()-1 to obtain the char for + * @return the character at the given index, or (UChar32)-1. + * @stable ICU 3.2 + */ +U_CAPI UChar32 U_EXPORT2 +uset_charAt(const USet* set, int32_t charIndex); + +/** + * Returns the number of characters and strings contained in the given + * USet. + * @param set the set + * @return a non-negative integer counting the characters and strings + * contained in set + * @stable ICU 2.4 + * @see uset_getRangeCount + */ +U_CAPI int32_t U_EXPORT2 +uset_size(const USet* set); +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * @param set the set + * @return the number of ranges in this set. + * @stable ICU 70 + * @see uset_getItemCount + * @see uset_getItem + * @see uset_size + */ +U_CAPI int32_t U_EXPORT2 +uset_getRangeCount(const USet *set); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Returns the number of items in this set. An item is either a range + * of characters or a single multicharacter string. + * @param set the set + * @return a non-negative integer counting the character ranges + * and/or strings contained in set + * @stable ICU 2.4 + */ +U_CAPI int32_t U_EXPORT2 +uset_getItemCount(const USet* set); + +/** + * Returns an item of this set. An item is either a range of + * characters or a single multicharacter string. + * @param set the set + * @param itemIndex a non-negative integer in the range 0.. + * uset_getItemCount(set)-1 + * @param start pointer to variable to receive first character + * in range, inclusive + * @param end pointer to variable to receive last character in range, + * inclusive + * @param str buffer to receive the string, may be NULL + * @param strCapacity capacity of str, or 0 if str is NULL + * @param ec error code; U_INDEX_OUTOFBOUNDS_ERROR if the itemIndex is out of range + * @return the length of the string (0 or >= 2), or 0 if the item is a range, + * or -1 if the itemIndex is out of range + * @stable ICU 2.4 + */ +U_CAPI int32_t U_EXPORT2 +uset_getItem(const USet* set, int32_t itemIndex, + UChar32* start, UChar32* end, + UChar* str, int32_t strCapacity, + UErrorCode* ec); + +/** + * Returns true if set1 contains all the characters and strings + * of set2. It answers the question, 'Is set1 a superset of set2?' + * @param set1 set to be checked for containment + * @param set2 set to be checked for containment + * @return true if the test condition is met + * @stable ICU 3.2 + */ +U_CAPI UBool U_EXPORT2 +uset_containsAll(const USet* set1, const USet* set2); + +/** + * Returns true if this set contains all the characters + * of the given string. This is does not check containment of grapheme + * clusters, like uset_containsString. + * @param set set of characters to be checked for containment + * @param str string containing codepoints to be checked for containment + * @param strLen the length of the string or -1 if null terminated. + * @return true if the test condition is met + * @stable ICU 3.4 + */ +U_CAPI UBool U_EXPORT2 +uset_containsAllCodePoints(const USet* set, const UChar *str, int32_t strLen); + +/** + * Returns true if set1 contains none of the characters and strings + * of set2. It answers the question, 'Is set1 a disjoint set of set2?' + * @param set1 set to be checked for containment + * @param set2 set to be checked for containment + * @return true if the test condition is met + * @stable ICU 3.2 + */ +U_CAPI UBool U_EXPORT2 +uset_containsNone(const USet* set1, const USet* set2); + +/** + * Returns true if set1 contains some of the characters and strings + * of set2. It answers the question, 'Does set1 and set2 have an intersection?' + * @param set1 set to be checked for containment + * @param set2 set to be checked for containment + * @return true if the test condition is met + * @stable ICU 3.2 + */ +U_CAPI UBool U_EXPORT2 +uset_containsSome(const USet* set1, const USet* set2); + +/** + * Returns the length of the initial substring of the input string which + * consists only of characters and strings that are contained in this set + * (USET_SPAN_CONTAINED, USET_SPAN_SIMPLE), + * or only of characters and strings that are not contained + * in this set (USET_SPAN_NOT_CONTAINED). + * See USetSpanCondition for details. + * Similar to the strspn() C library function. + * Unpaired surrogates are treated according to contains() of their surrogate code points. + * This function works faster with a frozen set and with a non-negative string length argument. + * @param set the set + * @param s start of the string + * @param length of the string; can be -1 for NUL-terminated + * @param spanCondition specifies the containment condition + * @return the length of the initial substring according to the spanCondition; + * 0 if the start of the string does not fit the spanCondition + * @stable ICU 3.8 + * @see USetSpanCondition + */ +U_CAPI int32_t U_EXPORT2 +uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition); + +/** + * Returns the start of the trailing substring of the input string which + * consists only of characters and strings that are contained in this set + * (USET_SPAN_CONTAINED, USET_SPAN_SIMPLE), + * or only of characters and strings that are not contained + * in this set (USET_SPAN_NOT_CONTAINED). + * See USetSpanCondition for details. + * Unpaired surrogates are treated according to contains() of their surrogate code points. + * This function works faster with a frozen set and with a non-negative string length argument. + * @param set the set + * @param s start of the string + * @param length of the string; can be -1 for NUL-terminated + * @param spanCondition specifies the containment condition + * @return the start of the trailing substring according to the spanCondition; + * the string length if the end of the string does not fit the spanCondition + * @stable ICU 3.8 + * @see USetSpanCondition + */ +U_CAPI int32_t U_EXPORT2 +uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition); + +/** + * Returns the length of the initial substring of the input string which + * consists only of characters and strings that are contained in this set + * (USET_SPAN_CONTAINED, USET_SPAN_SIMPLE), + * or only of characters and strings that are not contained + * in this set (USET_SPAN_NOT_CONTAINED). + * See USetSpanCondition for details. + * Similar to the strspn() C library function. + * Malformed byte sequences are treated according to contains(0xfffd). + * This function works faster with a frozen set and with a non-negative string length argument. + * @param set the set + * @param s start of the string (UTF-8) + * @param length of the string; can be -1 for NUL-terminated + * @param spanCondition specifies the containment condition + * @return the length of the initial substring according to the spanCondition; + * 0 if the start of the string does not fit the spanCondition + * @stable ICU 3.8 + * @see USetSpanCondition + */ +U_CAPI int32_t U_EXPORT2 +uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition); + +/** + * Returns the start of the trailing substring of the input string which + * consists only of characters and strings that are contained in this set + * (USET_SPAN_CONTAINED, USET_SPAN_SIMPLE), + * or only of characters and strings that are not contained + * in this set (USET_SPAN_NOT_CONTAINED). + * See USetSpanCondition for details. + * Malformed byte sequences are treated according to contains(0xfffd). + * This function works faster with a frozen set and with a non-negative string length argument. + * @param set the set + * @param s start of the string (UTF-8) + * @param length of the string; can be -1 for NUL-terminated + * @param spanCondition specifies the containment condition + * @return the start of the trailing substring according to the spanCondition; + * the string length if the end of the string does not fit the spanCondition + * @stable ICU 3.8 + * @see USetSpanCondition + */ +U_CAPI int32_t U_EXPORT2 +uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition); + +/** + * Returns true if set1 contains all of the characters and strings + * of set2, and vis versa. It answers the question, 'Is set1 equal to set2?' + * @param set1 set to be checked for containment + * @param set2 set to be checked for containment + * @return true if the test condition is met + * @stable ICU 3.2 + */ +U_CAPI UBool U_EXPORT2 +uset_equals(const USet* set1, const USet* set2); + +/********************************************************************* + * Serialized set API + *********************************************************************/ + +/** + * Serializes this set into an array of 16-bit integers. Serialization + * (currently) only records the characters in the set; multicharacter + * strings are ignored. + * + * The array + * has following format (each line is one 16-bit integer): + * + * length = (n+2*m) | (m!=0?0x8000:0) + * bmpLength = n; present if m!=0 + * bmp[0] + * bmp[1] + * ... + * bmp[n-1] + * supp-high[0] + * supp-low[0] + * supp-high[1] + * supp-low[1] + * ... + * supp-high[m-1] + * supp-low[m-1] + * + * The array starts with a header. After the header are n bmp + * code points, then m supplementary code points. Either n or m + * or both may be zero. n+2*m is always <= 0x7FFF. + * + * If there are no supplementary characters (if m==0) then the + * header is one 16-bit integer, 'length', with value n. + * + * If there are supplementary characters (if m!=0) then the header + * is two 16-bit integers. The first, 'length', has value + * (n+2*m)|0x8000. The second, 'bmpLength', has value n. + * + * After the header the code points are stored in ascending order. + * Supplementary code points are stored as most significant 16 + * bits followed by least significant 16 bits. + * + * @param set the set + * @param dest pointer to buffer of destCapacity 16-bit integers. + * May be NULL only if destCapacity is zero. + * @param destCapacity size of dest, or zero. Must not be negative. + * @param pErrorCode pointer to the error code. Will be set to + * U_INDEX_OUTOFBOUNDS_ERROR if n+2*m > 0x7FFF. Will be set to + * U_BUFFER_OVERFLOW_ERROR if n+2*m+(m!=0?2:1) > destCapacity. + * @return the total length of the serialized format, including + * the header, that is, n+2*m+(m!=0?2:1), or 0 on error other + * than U_BUFFER_OVERFLOW_ERROR. + * @stable ICU 2.4 + */ +U_CAPI int32_t U_EXPORT2 +uset_serialize(const USet* set, uint16_t* dest, int32_t destCapacity, UErrorCode* pErrorCode); + +/** + * Given a serialized array, fill in the given serialized set object. + * @param fillSet pointer to result + * @param src pointer to start of array + * @param srcLength length of array + * @return true if the given array is valid, otherwise false + * @stable ICU 2.4 + */ +U_CAPI UBool U_EXPORT2 +uset_getSerializedSet(USerializedSet* fillSet, const uint16_t* src, int32_t srcLength); + +/** + * Set the USerializedSet to contain the given character (and nothing + * else). + * @param fillSet pointer to result + * @param c The codepoint to set + * @stable ICU 2.4 + */ +U_CAPI void U_EXPORT2 +uset_setSerializedToOne(USerializedSet* fillSet, UChar32 c); + +/** + * Returns true if the given USerializedSet contains the given + * character. + * @param set the serialized set + * @param c The codepoint to check for within the set + * @return true if set contains c + * @stable ICU 2.4 + */ +U_CAPI UBool U_EXPORT2 +uset_serializedContains(const USerializedSet* set, UChar32 c); + +/** + * Returns the number of disjoint ranges of characters contained in + * the given serialized set. Ignores any strings contained in the + * set. + * @param set the serialized set + * @return a non-negative integer counting the character ranges + * contained in set + * @stable ICU 2.4 + */ +U_CAPI int32_t U_EXPORT2 +uset_getSerializedRangeCount(const USerializedSet* set); + +/** + * Returns a range of characters contained in the given serialized + * set. + * @param set the serialized set + * @param rangeIndex a non-negative integer in the range 0.. + * uset_getSerializedRangeCount(set)-1 + * @param pStart pointer to variable to receive first character + * in range, inclusive + * @param pEnd pointer to variable to receive last character in range, + * inclusive + * @return true if rangeIndex is valid, otherwise false + * @stable ICU 2.4 + */ +U_CAPI UBool U_EXPORT2 +uset_getSerializedRange(const USerializedSet* set, int32_t rangeIndex, + UChar32* pStart, UChar32* pEnd); + +#endif + +// unorm2.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* +* Copyright (C) 2009-2015, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: unorm2.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2009dec15 +* created by: Markus W. Scherer +*/ + +#ifndef __UNORM2_H__ +#define __UNORM2_H__ + +/** + * \file + * \brief C API: New API for Unicode Normalization. + * + * Unicode normalization functionality for standard Unicode normalization or + * for using custom mapping tables. + * All instances of UNormalizer2 are unmodifiable/immutable. + * Instances returned by unorm2_getInstance() are singletons that must not be deleted by the caller. + * For more details see the Normalizer2 C++ class. + */ + + + +/** + * Constants for normalization modes. + * For details about standard Unicode normalization forms + * and about the algorithms which are also used with custom mapping tables + * see http://www.unicode.org/unicode/reports/tr15/ + * @stable ICU 4.4 + */ +typedef enum { + /** + * Decomposition followed by composition. + * Same as standard NFC when using an "nfc" instance. + * Same as standard NFKC when using an "nfkc" instance. + * For details about standard Unicode normalization forms + * see http://www.unicode.org/unicode/reports/tr15/ + * @stable ICU 4.4 + */ + UNORM2_COMPOSE, + /** + * Map, and reorder canonically. + * Same as standard NFD when using an "nfc" instance. + * Same as standard NFKD when using an "nfkc" instance. + * For details about standard Unicode normalization forms + * see http://www.unicode.org/unicode/reports/tr15/ + * @stable ICU 4.4 + */ + UNORM2_DECOMPOSE, + /** + * "Fast C or D" form. + * If a string is in this form, then further decomposition without reordering + * would yield the same form as DECOMPOSE. + * Text in "Fast C or D" form can be processed efficiently with data tables + * that are "canonically closed", that is, that provide equivalent data for + * equivalent text, without having to be fully normalized. + * Not a standard Unicode normalization form. + * Not a unique form: Different FCD strings can be canonically equivalent. + * For details see http://www.unicode.org/notes/tn5/#FCD + * @stable ICU 4.4 + */ + UNORM2_FCD, + /** + * Compose only contiguously. + * Also known as "FCC" or "Fast C Contiguous". + * The result will often but not always be in NFC. + * The result will conform to FCD which is useful for processing. + * Not a standard Unicode normalization form. + * For details see http://www.unicode.org/notes/tn5/#FCC + * @stable ICU 4.4 + */ + UNORM2_COMPOSE_CONTIGUOUS +} UNormalization2Mode; + +/** + * Result values for normalization quick check functions. + * For details see http://www.unicode.org/reports/tr15/#Detecting_Normalization_Forms + * @stable ICU 2.0 + */ +typedef enum UNormalizationCheckResult { + /** + * The input string is not in the normalization form. + * @stable ICU 2.0 + */ + UNORM_NO, + /** + * The input string is in the normalization form. + * @stable ICU 2.0 + */ + UNORM_YES, + /** + * The input string may or may not be in the normalization form. + * This value is only returned for composition forms like NFC and FCC, + * when a backward-combining character is found for which the surrounding text + * would have to be analyzed further. + * @stable ICU 2.0 + */ + UNORM_MAYBE +} UNormalizationCheckResult; + +/** + * Opaque C service object type for the new normalization API. + * @stable ICU 4.4 + */ +struct UNormalizer2; +typedef struct UNormalizer2 UNormalizer2; /**< C typedef for struct UNormalizer2. @stable ICU 4.4 */ + +#if !UCONFIG_NO_NORMALIZATION + +/** + * Returns a UNormalizer2 instance for Unicode NFC normalization. + * Same as unorm2_getInstance(NULL, "nfc", UNORM2_COMPOSE, pErrorCode). + * Returns an unmodifiable singleton instance. Do not delete it. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested Normalizer2, if successful + * @stable ICU 49 + */ +U_CAPI const UNormalizer2 * U_EXPORT2 +unorm2_getNFCInstance(UErrorCode *pErrorCode); + +/** + * Returns a UNormalizer2 instance for Unicode NFD normalization. + * Same as unorm2_getInstance(NULL, "nfc", UNORM2_DECOMPOSE, pErrorCode). + * Returns an unmodifiable singleton instance. Do not delete it. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested Normalizer2, if successful + * @stable ICU 49 + */ +U_CAPI const UNormalizer2 * U_EXPORT2 +unorm2_getNFDInstance(UErrorCode *pErrorCode); + +/** + * Returns a UNormalizer2 instance for Unicode NFKC normalization. + * Same as unorm2_getInstance(NULL, "nfkc", UNORM2_COMPOSE, pErrorCode). + * Returns an unmodifiable singleton instance. Do not delete it. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested Normalizer2, if successful + * @stable ICU 49 + */ +U_CAPI const UNormalizer2 * U_EXPORT2 +unorm2_getNFKCInstance(UErrorCode *pErrorCode); + +/** + * Returns a UNormalizer2 instance for Unicode NFKD normalization. + * Same as unorm2_getInstance(NULL, "nfkc", UNORM2_DECOMPOSE, pErrorCode). + * Returns an unmodifiable singleton instance. Do not delete it. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested Normalizer2, if successful + * @stable ICU 49 + */ +U_CAPI const UNormalizer2 * U_EXPORT2 +unorm2_getNFKDInstance(UErrorCode *pErrorCode); + +/** + * Returns a UNormalizer2 instance for Unicode NFKC_Casefold normalization. + * Same as unorm2_getInstance(NULL, "nfkc_cf", UNORM2_COMPOSE, pErrorCode). + * Returns an unmodifiable singleton instance. Do not delete it. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested Normalizer2, if successful + * @stable ICU 49 + */ +U_CAPI const UNormalizer2 * U_EXPORT2 +unorm2_getNFKCCasefoldInstance(UErrorCode *pErrorCode); + +/** + * Returns a UNormalizer2 instance which uses the specified data file + * (packageName/name similar to ucnv_openPackage() and ures_open()/ResourceBundle) + * and which composes or decomposes text according to the specified mode. + * Returns an unmodifiable singleton instance. Do not delete it. + * + * Use packageName=NULL for data files that are part of ICU's own data. + * Use name="nfc" and UNORM2_COMPOSE/UNORM2_DECOMPOSE for Unicode standard NFC/NFD. + * Use name="nfkc" and UNORM2_COMPOSE/UNORM2_DECOMPOSE for Unicode standard NFKC/NFKD. + * Use name="nfkc_cf" and UNORM2_COMPOSE for Unicode standard NFKC_CF=NFKC_Casefold. + * + * @param packageName NULL for ICU built-in data, otherwise application data package name + * @param name "nfc" or "nfkc" or "nfkc_cf" or name of custom data file + * @param mode normalization mode (compose or decompose etc.) + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested UNormalizer2, if successful + * @stable ICU 4.4 + */ +U_CAPI const UNormalizer2 * U_EXPORT2 +unorm2_getInstance(const char *packageName, + const char *name, + UNormalization2Mode mode, + UErrorCode *pErrorCode); + +/** + * Constructs a filtered normalizer wrapping any UNormalizer2 instance + * and a filter set. + * Both are aliased and must not be modified or deleted while this object + * is used. + * The filter set should be frozen; otherwise the performance will suffer greatly. + * @param norm2 wrapped UNormalizer2 instance + * @param filterSet USet which determines the characters to be normalized + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested UNormalizer2, if successful + * @stable ICU 4.4 + */ +U_CAPI UNormalizer2 * U_EXPORT2 +unorm2_openFiltered(const UNormalizer2 *norm2, const USet *filterSet, UErrorCode *pErrorCode); + +/** + * Closes a UNormalizer2 instance from unorm2_openFiltered(). + * Do not close instances from unorm2_getInstance()! + * @param norm2 UNormalizer2 instance to be closed + * @stable ICU 4.4 + */ +U_CAPI void U_EXPORT2 +unorm2_close(UNormalizer2 *norm2); + + +/** + * Writes the normalized form of the source string to the destination string + * (replacing its contents) and returns the length of the destination string. + * The source and destination strings must be different buffers. + * @param norm2 UNormalizer2 instance + * @param src source string + * @param length length of the source string, or -1 if NUL-terminated + * @param dest destination string; its contents is replaced with normalized src + * @param capacity number of UChars that can be written to dest + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return dest + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +unorm2_normalize(const UNormalizer2 *norm2, + const UChar *src, int32_t length, + UChar *dest, int32_t capacity, + UErrorCode *pErrorCode); +/** + * Appends the normalized form of the second string to the first string + * (merging them at the boundary) and returns the length of the first string. + * The result is normalized if the first string was normalized. + * The first and second strings must be different buffers. + * @param norm2 UNormalizer2 instance + * @param first string, should be normalized + * @param firstLength length of the first string, or -1 if NUL-terminated + * @param firstCapacity number of UChars that can be written to first + * @param second string, will be normalized + * @param secondLength length of the source string, or -1 if NUL-terminated + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return first + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +unorm2_normalizeSecondAndAppend(const UNormalizer2 *norm2, + UChar *first, int32_t firstLength, int32_t firstCapacity, + const UChar *second, int32_t secondLength, + UErrorCode *pErrorCode); +/** + * Appends the second string to the first string + * (merging them at the boundary) and returns the length of the first string. + * The result is normalized if both the strings were normalized. + * The first and second strings must be different buffers. + * @param norm2 UNormalizer2 instance + * @param first string, should be normalized + * @param firstLength length of the first string, or -1 if NUL-terminated + * @param firstCapacity number of UChars that can be written to first + * @param second string, should be normalized + * @param secondLength length of the source string, or -1 if NUL-terminated + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return first + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +unorm2_append(const UNormalizer2 *norm2, + UChar *first, int32_t firstLength, int32_t firstCapacity, + const UChar *second, int32_t secondLength, + UErrorCode *pErrorCode); + +/** + * Gets the decomposition mapping of c. + * Roughly equivalent to normalizing the String form of c + * on a UNORM2_DECOMPOSE UNormalizer2 instance, but much faster, and except that this function + * returns a negative value and does not write a string + * if c does not have a decomposition mapping in this instance's data. + * This function is independent of the mode of the UNormalizer2. + * @param norm2 UNormalizer2 instance + * @param c code point + * @param decomposition String buffer which will be set to c's + * decomposition mapping, if there is one. + * @param capacity number of UChars that can be written to decomposition + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the non-negative length of c's decomposition, if there is one; otherwise a negative value + * @stable ICU 4.6 + */ +U_CAPI int32_t U_EXPORT2 +unorm2_getDecomposition(const UNormalizer2 *norm2, + UChar32 c, UChar *decomposition, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Gets the raw decomposition mapping of c. + * + * This is similar to the unorm2_getDecomposition() function but returns the + * raw decomposition mapping as specified in UnicodeData.txt or + * (for custom data) in the mapping files processed by the gennorm2 tool. + * By contrast, unorm2_getDecomposition() returns the processed, + * recursively-decomposed version of this mapping. + * + * When used on a standard NFKC Normalizer2 instance, + * unorm2_getRawDecomposition() returns the Unicode Decomposition_Mapping (dm) property. + * + * When used on a standard NFC Normalizer2 instance, + * it returns the Decomposition_Mapping only if the Decomposition_Type (dt) is Canonical (Can); + * in this case, the result contains either one or two code points (=1..4 UChars). + * + * This function is independent of the mode of the UNormalizer2. + * @param norm2 UNormalizer2 instance + * @param c code point + * @param decomposition String buffer which will be set to c's + * raw decomposition mapping, if there is one. + * @param capacity number of UChars that can be written to decomposition + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the non-negative length of c's raw decomposition, if there is one; otherwise a negative value + * @stable ICU 49 + */ +U_CAPI int32_t U_EXPORT2 +unorm2_getRawDecomposition(const UNormalizer2 *norm2, + UChar32 c, UChar *decomposition, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Performs pairwise composition of a & b and returns the composite if there is one. + * + * Returns a composite code point c only if c has a two-way mapping to a+b. + * In standard Unicode normalization, this means that + * c has a canonical decomposition to a+b + * and c does not have the Full_Composition_Exclusion property. + * + * This function is independent of the mode of the UNormalizer2. + * @param norm2 UNormalizer2 instance + * @param a A (normalization starter) code point. + * @param b Another code point. + * @return The non-negative composite code point if there is one; otherwise a negative value. + * @stable ICU 49 + */ +U_CAPI UChar32 U_EXPORT2 +unorm2_composePair(const UNormalizer2 *norm2, UChar32 a, UChar32 b); + +/** + * Gets the combining class of c. + * The default implementation returns 0 + * but all standard implementations return the Unicode Canonical_Combining_Class value. + * @param norm2 UNormalizer2 instance + * @param c code point + * @return c's combining class + * @stable ICU 49 + */ +U_CAPI uint8_t U_EXPORT2 +unorm2_getCombiningClass(const UNormalizer2 *norm2, UChar32 c); + +/** + * Tests if the string is normalized. + * Internally, in cases where the quickCheck() method would return "maybe" + * (which is only possible for the two COMPOSE modes) this method + * resolves to "yes" or "no" to provide a definitive result, + * at the cost of doing more work in those cases. + * @param norm2 UNormalizer2 instance + * @param s input string + * @param length length of the string, or -1 if NUL-terminated + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return true if s is normalized + * @stable ICU 4.4 + */ +U_CAPI UBool U_EXPORT2 +unorm2_isNormalized(const UNormalizer2 *norm2, + const UChar *s, int32_t length, + UErrorCode *pErrorCode); + +/** + * Tests if the string is normalized. + * For the two COMPOSE modes, the result could be "maybe" in cases that + * would take a little more work to resolve definitively. + * Use spanQuickCheckYes() and normalizeSecondAndAppend() for a faster + * combination of quick check + normalization, to avoid + * re-checking the "yes" prefix. + * @param norm2 UNormalizer2 instance + * @param s input string + * @param length length of the string, or -1 if NUL-terminated + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return UNormalizationCheckResult + * @stable ICU 4.4 + */ +U_CAPI UNormalizationCheckResult U_EXPORT2 +unorm2_quickCheck(const UNormalizer2 *norm2, + const UChar *s, int32_t length, + UErrorCode *pErrorCode); + +/** + * Returns the end of the normalized substring of the input string. + * In other words, with end=spanQuickCheckYes(s, ec); + * the substring UnicodeString(s, 0, end) + * will pass the quick check with a "yes" result. + * + * The returned end index is usually one or more characters before the + * "no" or "maybe" character: The end index is at a normalization boundary. + * (See the class documentation for more about normalization boundaries.) + * + * When the goal is a normalized string and most input strings are expected + * to be normalized already, then call this method, + * and if it returns a prefix shorter than the input string, + * copy that prefix and use normalizeSecondAndAppend() for the remainder. + * @param norm2 UNormalizer2 instance + * @param s input string + * @param length length of the string, or -1 if NUL-terminated + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return "yes" span end index + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +unorm2_spanQuickCheckYes(const UNormalizer2 *norm2, + const UChar *s, int32_t length, + UErrorCode *pErrorCode); + +/** + * Tests if the character always has a normalization boundary before it, + * regardless of context. + * For details see the Normalizer2 base class documentation. + * @param norm2 UNormalizer2 instance + * @param c character to test + * @return true if c has a normalization boundary before it + * @stable ICU 4.4 + */ +U_CAPI UBool U_EXPORT2 +unorm2_hasBoundaryBefore(const UNormalizer2 *norm2, UChar32 c); + +/** + * Tests if the character always has a normalization boundary after it, + * regardless of context. + * For details see the Normalizer2 base class documentation. + * @param norm2 UNormalizer2 instance + * @param c character to test + * @return true if c has a normalization boundary after it + * @stable ICU 4.4 + */ +U_CAPI UBool U_EXPORT2 +unorm2_hasBoundaryAfter(const UNormalizer2 *norm2, UChar32 c); + +/** + * Tests if the character is normalization-inert. + * For details see the Normalizer2 base class documentation. + * @param norm2 UNormalizer2 instance + * @param c character to test + * @return true if c is normalization-inert + * @stable ICU 4.4 + */ +U_CAPI UBool U_EXPORT2 +unorm2_isInert(const UNormalizer2 *norm2, UChar32 c); + +/** + * Compares two strings for canonical equivalence. + * Further options include case-insensitive comparison and + * code point order (as opposed to code unit order). + * + * Canonical equivalence between two strings is defined as their normalized + * forms (NFD or NFC) being identical. + * This function compares strings incrementally instead of normalizing + * (and optionally case-folding) both strings entirely, + * improving performance significantly. + * + * Bulk normalization is only necessary if the strings do not fulfill the FCD + * conditions. Only in this case, and only if the strings are relatively long, + * is memory allocated temporarily. + * For FCD strings and short non-FCD strings there is no memory allocation. + * + * Semantically, this is equivalent to + * strcmp[CodePointOrder](NFD(foldCase(NFD(s1))), NFD(foldCase(NFD(s2)))) + * where code point order and foldCase are all optional. + * + * UAX 21 2.5 Caseless Matching specifies that for a canonical caseless match + * the case folding must be performed first, then the normalization. + * + * @param s1 First source string. + * @param length1 Length of first source string, or -1 if NUL-terminated. + * + * @param s2 Second source string. + * @param length2 Length of second source string, or -1 if NUL-terminated. + * + * @param options A bit set of options: + * - U_FOLD_CASE_DEFAULT or 0 is used for default options: + * Case-sensitive comparison in code unit order, and the input strings + * are quick-checked for FCD. + * + * - UNORM_INPUT_IS_FCD + * Set if the caller knows that both s1 and s2 fulfill the FCD conditions. + * If not set, the function will quickCheck for FCD + * and normalize if necessary. + * + * - U_COMPARE_CODE_POINT_ORDER + * Set to choose code point order instead of code unit order + * (see u_strCompare for details). + * + * - U_COMPARE_IGNORE_CASE + * Set to compare strings case-insensitively using case folding, + * instead of case-sensitively. + * If set, then the following case folding options are used. + * + * - Options as used with case-insensitive comparisons, currently: + * + * - U_FOLD_CASE_EXCLUDE_SPECIAL_I + * (see u_strCaseCompare for details) + * + * - regular normalization options shifted left by UNORM_COMPARE_NORM_OPTIONS_SHIFT + * + * @param pErrorCode ICU error code in/out parameter. + * Must fulfill U_SUCCESS before the function call. + * @return <0 or 0 or >0 as usual for string comparisons + * + * @see unorm_normalize + * @see UNORM_FCD + * @see u_strCompare + * @see u_strCaseCompare + * + * @stable ICU 2.2 + */ +U_CAPI int32_t U_EXPORT2 +unorm_compare(const UChar *s1, int32_t length1, + const UChar *s2, int32_t length2, + uint32_t options, + UErrorCode *pErrorCode); + +#endif /* !UCONFIG_NO_NORMALIZATION */ +#endif /* __UNORM2_H__ */ + +// unorm.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* Copyright (c) 1996-2016, International Business Machines Corporation +* and others. All Rights Reserved. +******************************************************************************* +* File unorm.h +* +* Created by: Vladimir Weinstein 12052000 +* +* Modification history : +* +* Date Name Description +* 02/01/01 synwee Added normalization quickcheck enum and method. +*/ +#ifndef UNORM_H +#define UNORM_H + + +#if !UCONFIG_NO_NORMALIZATION + + +/** + * \file + * \brief C API: Unicode Normalization + * + * Old Unicode normalization API. + * + * This API has been replaced by the unorm2.h API and is only available + * for backward compatibility. The functions here simply delegate to the + * unorm2.h functions, for example unorm2_getInstance() and unorm2_normalize(). + * There is one exception: The new API does not provide a replacement for unorm_compare(). + * Its declaration has been moved to unorm2.h. + * + * unorm_normalize transforms Unicode text into an equivalent composed or + * decomposed form, allowing for easier sorting and searching of text. + * unorm_normalize supports the standard normalization forms described in + * + * Unicode Standard Annex #15: Unicode Normalization Forms. + * + * Characters with accents or other adornments can be encoded in + * several different ways in Unicode. For example, take the character A-acute. + * In Unicode, this can be encoded as a single character (the + * "composed" form): + * + * \code + * 00C1 LATIN CAPITAL LETTER A WITH ACUTE + * \endcode + * + * or as two separate characters (the "decomposed" form): + * + * \code + * 0041 LATIN CAPITAL LETTER A + * 0301 COMBINING ACUTE ACCENT + * \endcode + * + * To a user of your program, however, both of these sequences should be + * treated as the same "user-level" character "A with acute accent". When you are searching or + * comparing text, you must ensure that these two sequences are treated + * equivalently. In addition, you must handle characters with more than one + * accent. Sometimes the order of a character's combining accents is + * significant, while in other cases accent sequences in different orders are + * really equivalent. + * + * Similarly, the string "ffi" can be encoded as three separate letters: + * + * \code + * 0066 LATIN SMALL LETTER F + * 0066 LATIN SMALL LETTER F + * 0069 LATIN SMALL LETTER I + * \endcode + * + * or as the single character + * + * \code + * FB03 LATIN SMALL LIGATURE FFI + * \endcode + * + * The ffi ligature is not a distinct semantic character, and strictly speaking + * it shouldn't be in Unicode at all, but it was included for compatibility + * with existing character sets that already provided it. The Unicode standard + * identifies such characters by giving them "compatibility" decompositions + * into the corresponding semantic characters. When sorting and searching, you + * will often want to use these mappings. + * + * unorm_normalize helps solve these problems by transforming text into the + * canonical composed and decomposed forms as shown in the first example above. + * In addition, you can have it perform compatibility decompositions so that + * you can treat compatibility characters the same as their equivalents. + * Finally, unorm_normalize rearranges accents into the proper canonical + * order, so that you do not have to worry about accent rearrangement on your + * own. + * + * Form FCD, "Fast C or D", is also designed for collation. + * It allows to work on strings that are not necessarily normalized + * with an algorithm (like in collation) that works under "canonical closure", i.e., it treats precomposed + * characters and their decomposed equivalents the same. + * + * It is not a normalization form because it does not provide for uniqueness of representation. Multiple strings + * may be canonically equivalent (their NFDs are identical) and may all conform to FCD without being identical + * themselves. + * + * The form is defined such that the "raw decomposition", the recursive canonical decomposition of each character, + * results in a string that is canonically ordered. This means that precomposed characters are allowed for as long + * as their decompositions do not need canonical reordering. + * + * Its advantage for a process like collation is that all NFD and most NFC texts - and many unnormalized texts - + * already conform to FCD and do not need to be normalized (NFD) for such a process. The FCD quick check will + * return UNORM_YES for most strings in practice. + * + * unorm_normalize(UNORM_FCD) may be implemented with UNORM_NFD. + * + * For more details on FCD see the collation design document: + * https://htmlpreview.github.io/?https://github.com/unicode-org/icu-docs/blob/main/design/collation/ICU_collation_design.htm + * + * ICU collation performs either NFD or FCD normalization automatically if normalization + * is turned on for the collator object. + * Beyond collation and string search, normalized strings may be useful for string equivalence comparisons, + * transliteration/transcription, unique representations, etc. + * + * The W3C generally recommends to exchange texts in NFC. + * Note also that most legacy character encodings use only precomposed forms and often do not + * encode any combining marks by themselves. For conversion to such character encodings the + * Unicode text needs to be normalized to NFC. + * For more usage examples, see the Unicode Standard Annex. + */ + +// Do not conditionalize the following enum with #ifndef U_HIDE_DEPRECATED_API, +// it is needed for layout of Normalizer object. +#ifndef U_FORCE_HIDE_DEPRECATED_API + +/** + * Constants for normalization modes. + * @deprecated ICU 56 Use unorm2.h instead. + */ +typedef enum { + /** No decomposition/composition. @deprecated ICU 56 Use unorm2.h instead. */ + UNORM_NONE = 1, + /** Canonical decomposition. @deprecated ICU 56 Use unorm2.h instead. */ + UNORM_NFD = 2, + /** Compatibility decomposition. @deprecated ICU 56 Use unorm2.h instead. */ + UNORM_NFKD = 3, + /** Canonical decomposition followed by canonical composition. @deprecated ICU 56 Use unorm2.h instead. */ + UNORM_NFC = 4, + /** Default normalization. @deprecated ICU 56 Use unorm2.h instead. */ + UNORM_DEFAULT = UNORM_NFC, + /** Compatibility decomposition followed by canonical composition. @deprecated ICU 56 Use unorm2.h instead. */ + UNORM_NFKC =5, + /** "Fast C or D" form. @deprecated ICU 56 Use unorm2.h instead. */ + UNORM_FCD = 6, + + /** One more than the highest normalization mode constant. @deprecated ICU 56 Use unorm2.h instead. */ + UNORM_MODE_COUNT +} UNormalizationMode; + +#endif // U_FORCE_HIDE_DEPRECATED_API + +#endif /* #if !UCONFIG_NO_NORMALIZATION */ +#endif + +// ucnvsel.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* +* Copyright (C) 2008-2011, International Business Machines +* Corporation, Google and others. All Rights Reserved. +* +******************************************************************************* +*/ +/* + * Author : eldawy@google.com (Mohamed Eldawy) + * ucnvsel.h + * + * Purpose: To generate a list of encodings capable of handling + * a given Unicode text + * + * Started 09-April-2008 + */ + +#ifndef __ICU_UCNV_SEL_H__ +#define __ICU_UCNV_SEL_H__ + + +#if !UCONFIG_NO_CONVERSION + + + +/** + * \file + * \brief C API: Encoding/charset encoding selector + * + * A converter selector is built with a set of encoding/charset names + * and given an input string returns the set of names of the + * corresponding converters which can convert the string. + * + * A converter selector can be serialized into a buffer and reopened + * from the serialized form. + */ + + +/** + * @{ + * Typedef for selector data structure. + */ +struct UConverterSelector; +typedef struct UConverterSelector UConverterSelector; +/** @} */ + +/** + * Open a selector. + * If converterListSize is 0, build for all available converters. + * If excludedCodePoints is NULL, don't exclude any code points. + * + * @param converterList a pointer to encoding names needed to be involved. + * Can be NULL if converterListSize==0. + * The list and the names will be cloned, and the caller + * retains ownership of the original. + * @param converterListSize number of encodings in above list. + * If 0, builds a selector for all available converters. + * @param excludedCodePoints a set of code points to be excluded from consideration. + * That is, excluded code points in a string do not change + * the selection result. (They might be handled by a callback.) + * Use NULL to exclude nothing. + * @param whichSet what converter set to use? Use this to determine whether + * to consider only roundtrip mappings or also fallbacks. + * @param status an in/out ICU UErrorCode + * @return the new selector + * + * @stable ICU 4.2 + */ +U_CAPI UConverterSelector* U_EXPORT2 +ucnvsel_open(const char* const* converterList, int32_t converterListSize, + const USet* excludedCodePoints, + const UConverterUnicodeSet whichSet, UErrorCode* status); + +/** + * Closes a selector. + * If any Enumerations were returned by ucnv_select*, they become invalid. + * They can be closed before or after calling ucnv_closeSelector, + * but should never be used after the selector is closed. + * + * @see ucnv_selectForString + * @see ucnv_selectForUTF8 + * + * @param sel selector to close + * + * @stable ICU 4.2 + */ +U_CAPI void U_EXPORT2 +ucnvsel_close(UConverterSelector *sel); + + +/** + * Open a selector from its serialized form. + * The buffer must remain valid and unchanged for the lifetime of the selector. + * This is much faster than creating a selector from scratch. + * Using a serialized form from a different machine (endianness/charset) is supported. + * + * @param buffer pointer to the serialized form of a converter selector; + * must be 32-bit-aligned + * @param length the capacity of this buffer (can be equal to or larger than + * the actual data length) + * @param status an in/out ICU UErrorCode + * @return the new selector + * + * @stable ICU 4.2 + */ +U_CAPI UConverterSelector* U_EXPORT2 +ucnvsel_openFromSerialized(const void* buffer, int32_t length, UErrorCode* status); + +/** + * Serialize a selector into a linear buffer. + * The serialized form is portable to different machines. + * + * @param sel selector to consider + * @param buffer pointer to 32-bit-aligned memory to be filled with the + * serialized form of this converter selector + * @param bufferCapacity the capacity of this buffer + * @param status an in/out ICU UErrorCode + * @return the required buffer capacity to hold serialize data (even if the call fails + * with a U_BUFFER_OVERFLOW_ERROR, it will return the required capacity) + * + * @stable ICU 4.2 + */ +U_CAPI int32_t U_EXPORT2 +ucnvsel_serialize(const UConverterSelector* sel, + void* buffer, int32_t bufferCapacity, UErrorCode* status); + +/** + * Select converters that can map all characters in a UTF-16 string, + * ignoring the excluded code points. + * + * @param sel a selector + * @param s UTF-16 string + * @param length length of the string, or -1 if NUL-terminated + * @param status an in/out ICU UErrorCode + * @return an enumeration containing encoding names. + * The returned encoding names and their order will be the same as + * supplied when building the selector. + * + * @stable ICU 4.2 + */ +U_CAPI UEnumeration * U_EXPORT2 +ucnvsel_selectForString(const UConverterSelector* sel, + const UChar *s, int32_t length, UErrorCode *status); + +/** + * Select converters that can map all characters in a UTF-8 string, + * ignoring the excluded code points. + * + * @param sel a selector + * @param s UTF-8 string + * @param length length of the string, or -1 if NUL-terminated + * @param status an in/out ICU UErrorCode + * @return an enumeration containing encoding names. + * The returned encoding names and their order will be the same as + * supplied when building the selector. + * + * @stable ICU 4.2 + */ +U_CAPI UEnumeration * U_EXPORT2 +ucnvsel_selectForUTF8(const UConverterSelector* sel, + const char *s, int32_t length, UErrorCode *status); + +#endif /* !UCONFIG_NO_CONVERSION */ + +#endif /* __ICU_UCNV_SEL_H__ */ + +// putil.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* +* Copyright (C) 1997-2014, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* +* FILE NAME : putil.h +* +* Date Name Description +* 05/14/98 nos Creation (content moved here from utypes.h). +* 06/17/99 erm Added IEEE_754 +* 07/22/98 stephen Added IEEEremainder, max, min, trunc +* 08/13/98 stephen Added isNegativeInfinity, isPositiveInfinity +* 08/24/98 stephen Added longBitsFromDouble +* 03/02/99 stephen Removed openFile(). Added AS400 support. +* 04/15/99 stephen Converted to C +* 11/15/99 helena Integrated S/390 changes for IEEE support. +* 01/11/00 helena Added u_getVersion. +****************************************************************************** +*/ + +#ifndef PUTIL_H +#define PUTIL_H + + /** + * \file + * \brief C API: Platform Utilities + */ + +/*==========================================================================*/ +/* Platform utilities */ +/*==========================================================================*/ + +/** + * Platform utilities isolates the platform dependencies of the + * library. For each platform which this code is ported to, these + * functions may have to be re-implemented. + */ + + +/** @} */ + +/** + * Convert char characters to UChar characters. + * This utility function is useful only for "invariant characters" + * that are encoded in the platform default encoding. + * They are a small, constant subset of the encoding and include + * just the latin letters, digits, and some punctuation. + * For details, see U_CHARSET_FAMILY. + * + * @param cs Input string, points to length + * character bytes from a subset of the platform encoding. + * @param us Output string, points to memory for length + * Unicode characters. + * @param length The number of characters to convert; this may + * include the terminating NUL. + * + * @see U_CHARSET_FAMILY + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +u_charsToUChars(const char *cs, UChar *us, int32_t length); + +/** + * Convert UChar characters to char characters. + * This utility function is useful only for "invariant characters" + * that can be encoded in the platform default encoding. + * They are a small, constant subset of the encoding and include + * just the latin letters, digits, and some punctuation. + * For details, see U_CHARSET_FAMILY. + * + * @param us Input string, points to length + * Unicode characters that can be encoded with the + * codepage-invariant subset of the platform encoding. + * @param cs Output string, points to memory for length + * character bytes. + * @param length The number of characters to convert; this may + * include the terminating NUL. + * + * @see U_CHARSET_FAMILY + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +u_UCharsToChars(const UChar *us, char *cs, int32_t length); + +#endif + +// ustring.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 1998-2014, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* +* File ustring.h +* +* Modification History: +* +* Date Name Description +* 12/07/98 bertrand Creation. +****************************************************************************** +*/ + +#ifndef USTRING_H +#define USTRING_H + + +/** + * \def UBRK_TYPEDEF_UBREAK_ITERATOR + * @internal + */ + +#ifndef UBRK_TYPEDEF_UBREAK_ITERATOR +# define UBRK_TYPEDEF_UBREAK_ITERATOR +/** Simple declaration for u_strToTitle() to avoid including unicode/ubrk.h. @stable ICU 2.1*/ + typedef struct UBreakIterator UBreakIterator; +#endif + +/** + * \file + * \brief C API: Unicode string handling functions + * + * These C API functions provide general Unicode string handling. + * + * Some functions are equivalent in name, signature, and behavior to the ANSI C + * functions. (For example, they do not check for bad arguments like NULL string pointers.) + * In some cases, only the thread-safe variant of such a function is implemented here + * (see u_strtok_r()). + * + * Other functions provide more Unicode-specific functionality like locale-specific + * upper/lower-casing and string comparison in code point order. + * + * ICU uses 16-bit Unicode (UTF-16) in the form of arrays of UChar code units. + * UTF-16 encodes each Unicode code point with either one or two UChar code units. + * (This is the default form of Unicode, and a forward-compatible extension of the original, + * fixed-width form that was known as UCS-2. UTF-16 superseded UCS-2 with Unicode 2.0 + * in 1996.) + * + * Some APIs accept a 32-bit UChar32 value for a single code point. + * + * ICU also handles 16-bit Unicode text with unpaired surrogates. + * Such text is not well-formed UTF-16. + * Code-point-related functions treat unpaired surrogates as surrogate code points, + * i.e., as separate units. + * + * Although UTF-16 is a variable-width encoding form (like some legacy multi-byte encodings), + * it is much more efficient even for random access because the code unit values + * for single-unit characters vs. lead units vs. trail units are completely disjoint. + * This means that it is easy to determine character (code point) boundaries from + * random offsets in the string. + * + * Unicode (UTF-16) string processing is optimized for the single-unit case. + * Although it is important to support supplementary characters + * (which use pairs of lead/trail code units called "surrogates"), + * their occurrence is rare. Almost all characters in modern use require only + * a single UChar code unit (i.e., their code point values are <=0xffff). + * + * For more details see the User Guide Strings chapter (https://unicode-org.github.io/icu/userguide/strings/). + * For a discussion of the handling of unpaired surrogates see also + * Jitterbug 2145 and its icu mailing list proposal on 2002-sep-18. + */ + +/** + * \defgroup ustring_ustrlen String Length + * \ingroup ustring_strlen + */ +/*@{*/ +/** + * Determine the length of an array of UChar. + * + * @param s The array of UChars, NULL (U+0000) terminated. + * @return The number of UChars in chars, minus the terminator. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strlen(const UChar *s); +/*@}*/ + +/** + * Count Unicode code points in the length UChar code units of the string. + * A code point may occupy either one or two UChar code units. + * Counting code points involves reading all code units. + * + * This functions is basically the inverse of the U16_FWD_N() macro (see utf.h). + * + * @param s The input string. + * @param length The number of UChar code units to be checked, or -1 to count all + * code points before the first NUL (U+0000). + * @return The number of code points in the specified code units. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_countChar32(const UChar *s, int32_t length); + +/** + * Check if the string contains more Unicode code points than a certain number. + * This is more efficient than counting all code points in the entire string + * and comparing that number with a threshold. + * This function may not need to scan the string at all if the length is known + * (not -1 for NUL-termination) and falls within a certain range, and + * never needs to count more than 'number+1' code points. + * Logically equivalent to (u_countChar32(s, length)>number). + * A Unicode code point may occupy either one or two UChar code units. + * + * @param s The input string. + * @param length The length of the string, or -1 if it is NUL-terminated. + * @param number The number of code points in the string is compared against + * the 'number' parameter. + * @return Boolean value for whether the string contains more Unicode code points + * than 'number'. Same as (u_countChar32(s, length)>number). + * @stable ICU 2.4 + */ +U_CAPI UBool U_EXPORT2 +u_strHasMoreChar32Than(const UChar *s, int32_t length, int32_t number); + +/** + * Concatenate two ustrings. Appends a copy of src, + * including the null terminator, to dst. The initial copied + * character from src overwrites the null terminator in dst. + * + * @param dst The destination string. + * @param src The source string. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_CAPI UChar* U_EXPORT2 +u_strcat(UChar *dst, + const UChar *src); + +/** + * Concatenate two ustrings. + * Appends at most n characters from src to dst. + * Adds a terminating NUL. + * If src is too long, then only n-1 characters will be copied + * before the terminating NUL. + * If n<=0 then dst is not modified. + * + * @param dst The destination string. + * @param src The source string (can be NULL/invalid if n<=0). + * @param n The maximum number of characters to append; no-op if <=0. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_CAPI UChar* U_EXPORT2 +u_strncat(UChar *dst, + const UChar *src, + int32_t n); + +/** + * Find the first occurrence of a substring in a string. + * The substring is found at code point boundaries. + * That means that if the substring begins with + * a trail surrogate or ends with a lead surrogate, + * then it is found only if these surrogates stand alone in the text. + * Otherwise, the substring edge units would be matched against + * halves of surrogate pairs. + * + * @param s The string to search (NUL-terminated). + * @param substring The substring to find (NUL-terminated). + * @return A pointer to the first occurrence of substring in s, + * or s itself if the substring is empty, + * or NULL if substring is not in s. + * @stable ICU 2.0 + * + * @see u_strrstr + * @see u_strFindFirst + * @see u_strFindLast + */ +U_CAPI UChar * U_EXPORT2 +u_strstr(const UChar *s, const UChar *substring); + +/** + * Find the first occurrence of a substring in a string. + * The substring is found at code point boundaries. + * That means that if the substring begins with + * a trail surrogate or ends with a lead surrogate, + * then it is found only if these surrogates stand alone in the text. + * Otherwise, the substring edge units would be matched against + * halves of surrogate pairs. + * + * @param s The string to search. + * @param length The length of s (number of UChars), or -1 if it is NUL-terminated. + * @param substring The substring to find (NUL-terminated). + * @param subLength The length of substring (number of UChars), or -1 if it is NUL-terminated. + * @return A pointer to the first occurrence of substring in s, + * or s itself if the substring is empty, + * or NULL if substring is not in s. + * @stable ICU 2.4 + * + * @see u_strstr + * @see u_strFindLast + */ +U_CAPI UChar * U_EXPORT2 +u_strFindFirst(const UChar *s, int32_t length, const UChar *substring, int32_t subLength); + +/** + * Find the first occurrence of a BMP code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (NUL-terminated). + * @param c The BMP code point to find. + * @return A pointer to the first occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.0 + * + * @see u_strchr32 + * @see u_memchr + * @see u_strstr + * @see u_strFindFirst + */ +U_CAPI UChar * U_EXPORT2 +u_strchr(const UChar *s, UChar c); + +/** + * Find the first occurrence of a code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (NUL-terminated). + * @param c The code point to find. + * @return A pointer to the first occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.0 + * + * @see u_strchr + * @see u_memchr32 + * @see u_strstr + * @see u_strFindFirst + */ +U_CAPI UChar * U_EXPORT2 +u_strchr32(const UChar *s, UChar32 c); + +/** + * Find the last occurrence of a substring in a string. + * The substring is found at code point boundaries. + * That means that if the substring begins with + * a trail surrogate or ends with a lead surrogate, + * then it is found only if these surrogates stand alone in the text. + * Otherwise, the substring edge units would be matched against + * halves of surrogate pairs. + * + * @param s The string to search (NUL-terminated). + * @param substring The substring to find (NUL-terminated). + * @return A pointer to the last occurrence of substring in s, + * or s itself if the substring is empty, + * or NULL if substring is not in s. + * @stable ICU 2.4 + * + * @see u_strstr + * @see u_strFindFirst + * @see u_strFindLast + */ +U_CAPI UChar * U_EXPORT2 +u_strrstr(const UChar *s, const UChar *substring); + +/** + * Find the last occurrence of a substring in a string. + * The substring is found at code point boundaries. + * That means that if the substring begins with + * a trail surrogate or ends with a lead surrogate, + * then it is found only if these surrogates stand alone in the text. + * Otherwise, the substring edge units would be matched against + * halves of surrogate pairs. + * + * @param s The string to search. + * @param length The length of s (number of UChars), or -1 if it is NUL-terminated. + * @param substring The substring to find (NUL-terminated). + * @param subLength The length of substring (number of UChars), or -1 if it is NUL-terminated. + * @return A pointer to the last occurrence of substring in s, + * or s itself if the substring is empty, + * or NULL if substring is not in s. + * @stable ICU 2.4 + * + * @see u_strstr + * @see u_strFindLast + */ +U_CAPI UChar * U_EXPORT2 +u_strFindLast(const UChar *s, int32_t length, const UChar *substring, int32_t subLength); + +/** + * Find the last occurrence of a BMP code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (NUL-terminated). + * @param c The BMP code point to find. + * @return A pointer to the last occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.4 + * + * @see u_strrchr32 + * @see u_memrchr + * @see u_strrstr + * @see u_strFindLast + */ +U_CAPI UChar * U_EXPORT2 +u_strrchr(const UChar *s, UChar c); + +/** + * Find the last occurrence of a code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (NUL-terminated). + * @param c The code point to find. + * @return A pointer to the last occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.4 + * + * @see u_strrchr + * @see u_memchr32 + * @see u_strrstr + * @see u_strFindLast + */ +U_CAPI UChar * U_EXPORT2 +u_strrchr32(const UChar *s, UChar32 c); + +/** + * Locates the first occurrence in the string string of any of the characters + * in the string matchSet. + * Works just like C's strpbrk but with Unicode. + * + * @param string The string in which to search, NUL-terminated. + * @param matchSet A NUL-terminated string defining a set of code points + * for which to search in the text string. + * @return A pointer to the character in string that matches one of the + * characters in matchSet, or NULL if no such character is found. + * @stable ICU 2.0 + */ +U_CAPI UChar * U_EXPORT2 +u_strpbrk(const UChar *string, const UChar *matchSet); + +/** + * Returns the number of consecutive characters in string, + * beginning with the first, that do not occur somewhere in matchSet. + * Works just like C's strcspn but with Unicode. + * + * @param string The string in which to search, NUL-terminated. + * @param matchSet A NUL-terminated string defining a set of code points + * for which to search in the text string. + * @return The number of initial characters in string that do not + * occur in matchSet. + * @see u_strspn + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strcspn(const UChar *string, const UChar *matchSet); + +/** + * Returns the number of consecutive characters in string, + * beginning with the first, that occur somewhere in matchSet. + * Works just like C's strspn but with Unicode. + * + * @param string The string in which to search, NUL-terminated. + * @param matchSet A NUL-terminated string defining a set of code points + * for which to search in the text string. + * @return The number of initial characters in string that do + * occur in matchSet. + * @see u_strcspn + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strspn(const UChar *string, const UChar *matchSet); + +/** + * The string tokenizer API allows an application to break a string into + * tokens. Unlike strtok(), the saveState (the current pointer within the + * original string) is maintained in saveState. In the first call, the + * argument src is a pointer to the string. In subsequent calls to + * return successive tokens of that string, src must be specified as + * NULL. The value saveState is set by this function to maintain the + * function's position within the string, and on each subsequent call + * you must give this argument the same variable. This function does + * handle surrogate pairs. This function is similar to the strtok_r() + * the POSIX Threads Extension (1003.1c-1995) version. + * + * @param src String containing token(s). This string will be modified. + * After the first call to u_strtok_r(), this argument must + * be NULL to get to the next token. + * @param delim Set of delimiter characters (Unicode code points). + * @param saveState The current pointer within the original string, + * which is set by this function. The saveState + * parameter should the address of a local variable of type + * UChar *. (i.e. defined "UChar *myLocalSaveState" and use + * &myLocalSaveState for this parameter). + * @return A pointer to the next token found in src, or NULL + * when there are no more tokens. + * @stable ICU 2.0 + */ +U_CAPI UChar * U_EXPORT2 +u_strtok_r(UChar *src, + const UChar *delim, + UChar **saveState); + +/** + * Compare two Unicode strings for bitwise equality (code unit order). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @return 0 if s1 and s2 are bitwise equal; a negative + * value if s1 is bitwise less than s2,; a positive + * value if s1 is bitwise greater than s2. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strcmp(const UChar *s1, + const UChar *s2); + +/** + * Compare two Unicode strings in code point order. + * See u_strCompare for details. + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @return a negative/zero/positive integer corresponding to whether + * the first string is less than/equal to/greater than the second one + * in code point order + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strcmpCodePointOrder(const UChar *s1, const UChar *s2); + +/** + * Compare two Unicode strings (binary order). + * + * The comparison can be done in code unit order or in code point order. + * They differ only in UTF-16 when + * comparing supplementary code points (U+10000..U+10ffff) + * to BMP code points near the end of the BMP (i.e., U+e000..U+ffff). + * In code unit order, high BMP code points sort after supplementary code points + * because they are stored as pairs of surrogates which are at U+d800..U+dfff. + * + * This functions works with strings of different explicitly specified lengths + * unlike the ANSI C-like u_strcmp() and u_memcmp() etc. + * NUL-terminated strings are possible with length arguments of -1. + * + * @param s1 First source string. + * @param length1 Length of first source string, or -1 if NUL-terminated. + * + * @param s2 Second source string. + * @param length2 Length of second source string, or -1 if NUL-terminated. + * + * @param codePointOrder Choose between code unit order (false) + * and code point order (true). + * + * @return <0 or 0 or >0 as usual for string comparisons + * + * @stable ICU 2.2 + */ +U_CAPI int32_t U_EXPORT2 +u_strCompare(const UChar *s1, int32_t length1, + const UChar *s2, int32_t length2, + UBool codePointOrder); + +/** + * Compare two Unicode strings (binary order) + * as presented by UCharIterator objects. + * Works otherwise just like u_strCompare(). + * + * Both iterators are reset to their start positions. + * When the function returns, it is undefined where the iterators + * have stopped. + * + * @param iter1 First source string iterator. + * @param iter2 Second source string iterator. + * @param codePointOrder Choose between code unit order (false) + * and code point order (true). + * + * @return <0 or 0 or >0 as usual for string comparisons + * + * @see u_strCompare + * + * @stable ICU 2.6 + */ +U_CAPI int32_t U_EXPORT2 +u_strCompareIter(UCharIterator *iter1, UCharIterator *iter2, UBool codePointOrder); + +/** + * Compare two strings case-insensitively using full case folding. + * This is equivalent to + * u_strCompare(u_strFoldCase(s1, options), + * u_strFoldCase(s2, options), + * (options&U_COMPARE_CODE_POINT_ORDER)!=0). + * + * The comparison can be done in UTF-16 code unit order or in code point order. + * They differ only when comparing supplementary code points (U+10000..U+10ffff) + * to BMP code points near the end of the BMP (i.e., U+e000..U+ffff). + * In code unit order, high BMP code points sort after supplementary code points + * because they are stored as pairs of surrogates which are at U+d800..U+dfff. + * + * This functions works with strings of different explicitly specified lengths + * unlike the ANSI C-like u_strcmp() and u_memcmp() etc. + * NUL-terminated strings are possible with length arguments of -1. + * + * @param s1 First source string. + * @param length1 Length of first source string, or -1 if NUL-terminated. + * + * @param s2 Second source string. + * @param length2 Length of second source string, or -1 if NUL-terminated. + * + * @param options A bit set of options: + * - U_FOLD_CASE_DEFAULT or 0 is used for default options: + * Comparison in code unit order with default case folding. + * + * - U_COMPARE_CODE_POINT_ORDER + * Set to choose code point order instead of code unit order + * (see u_strCompare for details). + * + * - U_FOLD_CASE_EXCLUDE_SPECIAL_I + * + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @return <0 or 0 or >0 as usual for string comparisons + * + * @stable ICU 2.2 + */ +U_CAPI int32_t U_EXPORT2 +u_strCaseCompare(const UChar *s1, int32_t length1, + const UChar *s2, int32_t length2, + uint32_t options, + UErrorCode *pErrorCode); + +/** + * Compare two ustrings for bitwise equality. + * Compares at most n characters. + * + * @param ucs1 A string to compare (can be NULL/invalid if n<=0). + * @param ucs2 A string to compare (can be NULL/invalid if n<=0). + * @param n The maximum number of characters to compare; always returns 0 if n<=0. + * @return 0 if s1 and s2 are bitwise equal; a negative + * value if s1 is bitwise less than s2; a positive + * value if s1 is bitwise greater than s2. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strncmp(const UChar *ucs1, + const UChar *ucs2, + int32_t n); + +/** + * Compare two Unicode strings in code point order. + * This is different in UTF-16 from u_strncmp() if supplementary characters are present. + * For details, see u_strCompare(). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @param n The maximum number of characters to compare. + * @return a negative/zero/positive integer corresponding to whether + * the first string is less than/equal to/greater than the second one + * in code point order + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strncmpCodePointOrder(const UChar *s1, const UChar *s2, int32_t n); + +/** + * Compare two strings case-insensitively using full case folding. + * This is equivalent to u_strcmp(u_strFoldCase(s1, options), u_strFoldCase(s2, options)). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @param options A bit set of options: + * - U_FOLD_CASE_DEFAULT or 0 is used for default options: + * Comparison in code unit order with default case folding. + * + * - U_COMPARE_CODE_POINT_ORDER + * Set to choose code point order instead of code unit order + * (see u_strCompare for details). + * + * - U_FOLD_CASE_EXCLUDE_SPECIAL_I + * + * @return A negative, zero, or positive integer indicating the comparison result. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strcasecmp(const UChar *s1, const UChar *s2, uint32_t options); + +/** + * Compare two strings case-insensitively using full case folding. + * This is equivalent to u_strcmp(u_strFoldCase(s1, at most n, options), + * u_strFoldCase(s2, at most n, options)). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @param n The maximum number of characters each string to case-fold and then compare. + * @param options A bit set of options: + * - U_FOLD_CASE_DEFAULT or 0 is used for default options: + * Comparison in code unit order with default case folding. + * + * - U_COMPARE_CODE_POINT_ORDER + * Set to choose code point order instead of code unit order + * (see u_strCompare for details). + * + * - U_FOLD_CASE_EXCLUDE_SPECIAL_I + * + * @return A negative, zero, or positive integer indicating the comparison result. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strncasecmp(const UChar *s1, const UChar *s2, int32_t n, uint32_t options); + +/** + * Compare two strings case-insensitively using full case folding. + * This is equivalent to u_strcmp(u_strFoldCase(s1, n, options), + * u_strFoldCase(s2, n, options)). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @param length The number of characters in each string to case-fold and then compare. + * @param options A bit set of options: + * - U_FOLD_CASE_DEFAULT or 0 is used for default options: + * Comparison in code unit order with default case folding. + * + * - U_COMPARE_CODE_POINT_ORDER + * Set to choose code point order instead of code unit order + * (see u_strCompare for details). + * + * - U_FOLD_CASE_EXCLUDE_SPECIAL_I + * + * @return A negative, zero, or positive integer indicating the comparison result. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_memcasecmp(const UChar *s1, const UChar *s2, int32_t length, uint32_t options); + +/** + * Copy a ustring. Adds a null terminator. + * + * @param dst The destination string. + * @param src The source string. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_CAPI UChar* U_EXPORT2 +u_strcpy(UChar *dst, + const UChar *src); + +/** + * Copy a ustring. + * Copies at most n characters. The result will be null terminated + * if the length of src is less than n. + * + * @param dst The destination string. + * @param src The source string (can be NULL/invalid if n<=0). + * @param n The maximum number of characters to copy; no-op if <=0. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_CAPI UChar* U_EXPORT2 +u_strncpy(UChar *dst, + const UChar *src, + int32_t n); + +#if !UCONFIG_NO_CONVERSION + +/** + * Copy a byte string encoded in the default codepage to a ustring. + * Adds a null terminator. + * Performs a host byte to UChar conversion + * + * @param dst The destination string. + * @param src The source string. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_CAPI UChar* U_EXPORT2 u_uastrcpy(UChar *dst, + const char *src ); + +/** + * Copy a byte string encoded in the default codepage to a ustring. + * Copies at most n characters. The result will be null terminated + * if the length of src is less than n. + * Performs a host byte to UChar conversion + * + * @param dst The destination string. + * @param src The source string. + * @param n The maximum number of characters to copy. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_CAPI UChar* U_EXPORT2 u_uastrncpy(UChar *dst, + const char *src, + int32_t n); + +/** + * Copy ustring to a byte string encoded in the default codepage. + * Adds a null terminator. + * Performs a UChar to host byte conversion + * + * @param dst The destination string. + * @param src The source string. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_CAPI char* U_EXPORT2 u_austrcpy(char *dst, + const UChar *src ); + +/** + * Copy ustring to a byte string encoded in the default codepage. + * Copies at most n characters. The result will be null terminated + * if the length of src is less than n. + * Performs a UChar to host byte conversion + * + * @param dst The destination string. + * @param src The source string. + * @param n The maximum number of characters to copy. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_CAPI char* U_EXPORT2 u_austrncpy(char *dst, + const UChar *src, + int32_t n ); + +#endif + +/** + * Synonym for memcpy(), but with UChars only. + * @param dest The destination string + * @param src The source string (can be NULL/invalid if count<=0) + * @param count The number of characters to copy; no-op if <=0 + * @return A pointer to dest + * @stable ICU 2.0 + */ +U_CAPI UChar* U_EXPORT2 +u_memcpy(UChar *dest, const UChar *src, int32_t count); + +/** + * Synonym for memmove(), but with UChars only. + * @param dest The destination string + * @param src The source string (can be NULL/invalid if count<=0) + * @param count The number of characters to move; no-op if <=0 + * @return A pointer to dest + * @stable ICU 2.0 + */ +U_CAPI UChar* U_EXPORT2 +u_memmove(UChar *dest, const UChar *src, int32_t count); + +/** + * Initialize count characters of dest to c. + * + * @param dest The destination string. + * @param c The character to initialize the string. + * @param count The maximum number of characters to set. + * @return A pointer to dest. + * @stable ICU 2.0 + */ +U_CAPI UChar* U_EXPORT2 +u_memset(UChar *dest, UChar c, int32_t count); + +/** + * Compare the first count UChars of each buffer. + * + * @param buf1 The first string to compare. + * @param buf2 The second string to compare. + * @param count The maximum number of UChars to compare. + * @return When buf1 < buf2, a negative number is returned. + * When buf1 == buf2, 0 is returned. + * When buf1 > buf2, a positive number is returned. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_memcmp(const UChar *buf1, const UChar *buf2, int32_t count); + +/** + * Compare two Unicode strings in code point order. + * This is different in UTF-16 from u_memcmp() if supplementary characters are present. + * For details, see u_strCompare(). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @param count The maximum number of characters to compare. + * @return a negative/zero/positive integer corresponding to whether + * the first string is less than/equal to/greater than the second one + * in code point order + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_memcmpCodePointOrder(const UChar *s1, const UChar *s2, int32_t count); + +/** + * Find the first occurrence of a BMP code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (contains count UChars). + * @param c The BMP code point to find. + * @param count The length of the string. + * @return A pointer to the first occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.0 + * + * @see u_strchr + * @see u_memchr32 + * @see u_strFindFirst + */ +U_CAPI UChar* U_EXPORT2 +u_memchr(const UChar *s, UChar c, int32_t count); + +/** + * Find the first occurrence of a code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (contains count UChars). + * @param c The code point to find. + * @param count The length of the string. + * @return A pointer to the first occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.0 + * + * @see u_strchr32 + * @see u_memchr + * @see u_strFindFirst + */ +U_CAPI UChar* U_EXPORT2 +u_memchr32(const UChar *s, UChar32 c, int32_t count); + +/** + * Find the last occurrence of a BMP code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (contains count UChars). + * @param c The BMP code point to find. + * @param count The length of the string. + * @return A pointer to the last occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.4 + * + * @see u_strrchr + * @see u_memrchr32 + * @see u_strFindLast + */ +U_CAPI UChar* U_EXPORT2 +u_memrchr(const UChar *s, UChar c, int32_t count); + +/** + * Find the last occurrence of a code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (contains count UChars). + * @param c The code point to find. + * @param count The length of the string. + * @return A pointer to the last occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.4 + * + * @see u_strrchr32 + * @see u_memrchr + * @see u_strFindLast + */ +U_CAPI UChar* U_EXPORT2 +u_memrchr32(const UChar *s, UChar32 c, int32_t count); + +/** + * Unicode String literals in C. + * We need one macro to declare a variable for the string + * and to statically preinitialize it if possible, + * and a second macro to dynamically initialize such a string variable if necessary. + * + * The macros are defined for maximum performance. + * They work only for strings that contain "invariant characters", i.e., + * only latin letters, digits, and some punctuation. + * See utypes.h for details. + * + * A pair of macros for a single string must be used with the same + * parameters. + * The string parameter must be a C string literal. + * The length of the string, not including the terminating + * `NUL`, must be specified as a constant. + * The U_STRING_DECL macro should be invoked exactly once for one + * such string variable before it is used. + * + * Usage: + * + * U_STRING_DECL(ustringVar1, "Quick-Fox 2", 11); + * U_STRING_DECL(ustringVar2, "jumps 5%", 8); + * static UBool didInit=false; + * + * int32_t function() { + * if(!didInit) { + * U_STRING_INIT(ustringVar1, "Quick-Fox 2", 11); + * U_STRING_INIT(ustringVar2, "jumps 5%", 8); + * didInit=true; + * } + * return u_strcmp(ustringVar1, ustringVar2); + * } + * + * Note that the macros will NOT consistently work if their argument is another #`define`. + * The following will not work on all platforms, don't use it. + * + * #define GLUCK "Mr. Gluck" + * U_STRING_DECL(var, GLUCK, 9) + * U_STRING_INIT(var, GLUCK, 9) + * + * Instead, use the string literal "Mr. Gluck" as the argument to both macro + * calls. + * + * + * @stable ICU 2.0 + */ +#if defined(U_DECLARE_UTF16) +# define U_STRING_DECL(var, cs, length) static const UChar *var=(const UChar *)U_DECLARE_UTF16(cs) + /**@stable ICU 2.0 */ +# define U_STRING_INIT(var, cs, length) +#elif U_SIZEOF_WCHAR_T==U_SIZEOF_UCHAR && (U_CHARSET_FAMILY==U_ASCII_FAMILY || (U_SIZEOF_UCHAR == 2 && defined(U_WCHAR_IS_UTF16))) +# define U_STRING_DECL(var, cs, length) static const UChar var[(length)+1]=L ## cs + /**@stable ICU 2.0 */ +# define U_STRING_INIT(var, cs, length) +#elif U_SIZEOF_UCHAR==1 && U_CHARSET_FAMILY==U_ASCII_FAMILY +# define U_STRING_DECL(var, cs, length) static const UChar var[(length)+1]=cs + /**@stable ICU 2.0 */ +# define U_STRING_INIT(var, cs, length) +#else +# define U_STRING_DECL(var, cs, length) static UChar var[(length)+1] + /**@stable ICU 2.0 */ +# define U_STRING_INIT(var, cs, length) u_charsToUChars(cs, var, length+1) +#endif + +/** + * Unescape a string of characters and write the resulting + * Unicode characters to the destination buffer. The following escape + * sequences are recognized: + * + * \\uhhhh 4 hex digits; h in [0-9A-Fa-f] + * \\Uhhhhhhhh 8 hex digits + * \\xhh 1-2 hex digits + * \\x{h...} 1-8 hex digits + * \\ooo 1-3 octal digits; o in [0-7] + * \\cX control-X; X is masked with 0x1F + * + * as well as the standard ANSI C escapes: + * + * \\a => U+0007, \\b => U+0008, \\t => U+0009, \\n => U+000A, + * \\v => U+000B, \\f => U+000C, \\r => U+000D, \\e => U+001B, + * \\" => U+0022, \\' => U+0027, \\? => U+003F, \\\\ => U+005C + * + * Anything else following a backslash is generically escaped. For + * example, "[a\\-z]" returns "[a-z]". + * + * If an escape sequence is ill-formed, this method returns an empty + * string. An example of an ill-formed sequence is "\\u" followed by + * fewer than 4 hex digits. + * + * The above characters are recognized in the compiler's codepage, + * that is, they are coded as 'u', '\\', etc. Characters that are + * not parts of escape sequences are converted using u_charsToUChars(). + * + * This function is similar to UnicodeString::unescape() but not + * identical to it. The latter takes a source UnicodeString, so it + * does escape recognition but no conversion. + * + * @param src a zero-terminated string of invariant characters + * @param dest pointer to buffer to receive converted and unescaped + * text and, if there is room, a zero terminator. May be NULL for + * preflighting, in which case no UChars will be written, but the + * return value will still be valid. On error, an empty string is + * stored here (if possible). + * @param destCapacity the number of UChars that may be written at + * dest. Ignored if dest == NULL. + * @return the length of unescaped string. + * @see u_unescapeAt + * @see UnicodeString#unescape() + * @see UnicodeString#unescapeAt() + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_unescape(const char *src, + UChar *dest, int32_t destCapacity); + +U_CDECL_BEGIN +/** + * Callback function for u_unescapeAt() that returns a character of + * the source text given an offset and a context pointer. The context + * pointer will be whatever is passed into u_unescapeAt(). + * + * @param offset pointer to the offset that will be passed to u_unescapeAt(). + * @param context an opaque pointer passed directly into u_unescapeAt() + * @return the character represented by the escape sequence at + * offset + * @see u_unescapeAt + * @stable ICU 2.0 + */ +typedef UChar (U_CALLCONV *UNESCAPE_CHAR_AT)(int32_t offset, void *context); +U_CDECL_END + +/** + * Unescape a single sequence. The character at offset-1 is assumed + * (without checking) to be a backslash. This method takes a callback + * pointer to a function that returns the UChar at a given offset. By + * varying this callback, ICU functions are able to unescape char* + * strings, UnicodeString objects, and UFILE pointers. + * + * If offset is out of range, or if the escape sequence is ill-formed, + * (UChar32)0xFFFFFFFF is returned. See documentation of u_unescape() + * for a list of recognized sequences. + * + * @param charAt callback function that returns a UChar of the source + * text given an offset and a context pointer. + * @param offset pointer to the offset that will be passed to charAt. + * The offset value will be updated upon return to point after the + * last parsed character of the escape sequence. On error the offset + * is unchanged. + * @param length the number of characters in the source text. The + * last character of the source text is considered to be at offset + * length-1. + * @param context an opaque pointer passed directly into charAt. + * @return the character represented by the escape sequence at + * offset, or (UChar32)0xFFFFFFFF on error. + * @see u_unescape() + * @see UnicodeString#unescape() + * @see UnicodeString#unescapeAt() + * @stable ICU 2.0 + */ +U_CAPI UChar32 U_EXPORT2 +u_unescapeAt(UNESCAPE_CHAR_AT charAt, + int32_t *offset, + int32_t length, + void *context); + +/** + * Uppercase the characters in a string. + * Casing is locale-dependent and context-sensitive. + * The result may be longer or shorter than the original. + * The source string and the destination buffer are allowed to overlap. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param locale The locale to consider, or "" for the root locale or NULL for the default locale. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string. It may be greater than destCapacity. In that case, + * only some of the result was written to the destination buffer. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strToUpper(UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + const char *locale, + UErrorCode *pErrorCode); + +/** + * Lowercase the characters in a string. + * Casing is locale-dependent and context-sensitive. + * The result may be longer or shorter than the original. + * The source string and the destination buffer are allowed to overlap. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param locale The locale to consider, or "" for the root locale or NULL for the default locale. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string. It may be greater than destCapacity. In that case, + * only some of the result was written to the destination buffer. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strToLower(UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + const char *locale, + UErrorCode *pErrorCode); + +#if !UCONFIG_NO_BREAK_ITERATION + +/** + * Titlecase a string. + * Casing is locale-dependent and context-sensitive. + * Titlecasing uses a break iterator to find the first characters of words + * that are to be titlecased. It titlecases those characters and lowercases + * all others. + * + * The titlecase break iterator can be provided to customize for arbitrary + * styles, using rules and dictionaries beyond the standard iterators. + * It may be more efficient to always provide an iterator to avoid + * opening and closing one for each string. + * The standard titlecase iterator for the root locale implements the + * algorithm of Unicode TR 21. + * + * This function uses only the setText(), first() and next() methods of the + * provided break iterator. + * + * The result may be longer or shorter than the original. + * The source string and the destination buffer are allowed to overlap. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param titleIter A break iterator to find the first characters of words + * that are to be titlecased. + * If none is provided (NULL), then a standard titlecase + * break iterator is opened. + * @param locale The locale to consider, or "" for the root locale or NULL for the default locale. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string. It may be greater than destCapacity. In that case, + * only some of the result was written to the destination buffer. + * @stable ICU 2.1 + */ +U_CAPI int32_t U_EXPORT2 +u_strToTitle(UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + UBreakIterator *titleIter, + const char *locale, + UErrorCode *pErrorCode); + +#endif + +/** + * Case-folds the characters in a string. + * + * Case-folding is locale-independent and not context-sensitive, + * but there is an option for whether to include or exclude mappings for dotted I + * and dotless i that are marked with 'T' in CaseFolding.txt. + * + * The result may be longer or shorter than the original. + * The source string and the destination buffer are allowed to overlap. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param options Either U_FOLD_CASE_DEFAULT or U_FOLD_CASE_EXCLUDE_SPECIAL_I + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string. It may be greater than destCapacity. In that case, + * only some of the result was written to the destination buffer. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_strFoldCase(UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + uint32_t options, + UErrorCode *pErrorCode); + +#if defined(U_WCHAR_IS_UTF16) || defined(U_WCHAR_IS_UTF32) || !UCONFIG_NO_CONVERSION +/** + * Convert a UTF-16 string to a wchar_t string. + * If it is known at compile time that wchar_t strings are in UTF-16 or UTF-32, then + * this function simply calls the fast, dedicated function for that. + * Otherwise, two conversions UTF-16 -> default charset -> wchar_t* are performed. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of wchar_t's). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The pointer to destination buffer. + * @stable ICU 2.0 + */ +U_CAPI wchar_t* U_EXPORT2 +u_strToWCS(wchar_t *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar *src, + int32_t srcLength, + UErrorCode *pErrorCode); +/** + * Convert a wchar_t string to UTF-16. + * If it is known at compile time that wchar_t strings are in UTF-16 or UTF-32, then + * this function simply calls the fast, dedicated function for that. + * Otherwise, two conversions wchar_t* -> default charset -> UTF-16 are performed. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The pointer to destination buffer. + * @stable ICU 2.0 + */ +U_CAPI UChar* U_EXPORT2 +u_strFromWCS(UChar *dest, + int32_t destCapacity, + int32_t *pDestLength, + const wchar_t *src, + int32_t srcLength, + UErrorCode *pErrorCode); +#endif /* defined(U_WCHAR_IS_UTF16) || defined(U_WCHAR_IS_UTF32) || !UCONFIG_NO_CONVERSION */ + +/** + * Convert a UTF-16 string to UTF-8. + * If the input string is not well-formed, then the U_INVALID_CHAR_FOUND error code is set. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of chars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The pointer to destination buffer. + * @stable ICU 2.0 + * @see u_strToUTF8WithSub + * @see u_strFromUTF8 + */ +U_CAPI char* U_EXPORT2 +u_strToUTF8(char *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar *src, + int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Convert a UTF-8 string to UTF-16. + * If the input string is not well-formed, then the U_INVALID_CHAR_FOUND error code is set. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The pointer to destination buffer. + * @stable ICU 2.0 + * @see u_strFromUTF8WithSub + * @see u_strFromUTF8Lenient + */ +U_CAPI UChar* U_EXPORT2 +u_strFromUTF8(UChar *dest, + int32_t destCapacity, + int32_t *pDestLength, + const char *src, + int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Convert a UTF-16 string to UTF-8. + * + * Same as u_strToUTF8() except for the additional subchar which is output for + * illegal input sequences, instead of stopping with the U_INVALID_CHAR_FOUND error code. + * With subchar==U_SENTINEL, this function behaves exactly like u_strToUTF8(). + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of chars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param subchar The substitution character to use in place of an illegal input sequence, + * or U_SENTINEL if the function is to return with U_INVALID_CHAR_FOUND instead. + * A substitution character can be any valid Unicode code point (up to U+10FFFF) + * except for surrogate code points (U+D800..U+DFFF). + * The recommended value is U+FFFD "REPLACEMENT CHARACTER". + * @param pNumSubstitutions Output parameter receiving the number of substitutions if subchar>=0. + * Set to 0 if no substitutions occur or subchar<0. + * pNumSubstitutions can be NULL. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @see u_strToUTF8 + * @see u_strFromUTF8WithSub + * @stable ICU 3.6 + */ +U_CAPI char* U_EXPORT2 +u_strToUTF8WithSub(char *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar *src, + int32_t srcLength, + UChar32 subchar, int32_t *pNumSubstitutions, + UErrorCode *pErrorCode); + +/** + * Convert a UTF-8 string to UTF-16. + * + * Same as u_strFromUTF8() except for the additional subchar which is output for + * illegal input sequences, instead of stopping with the U_INVALID_CHAR_FOUND error code. + * With subchar==U_SENTINEL, this function behaves exactly like u_strFromUTF8(). + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param subchar The substitution character to use in place of an illegal input sequence, + * or U_SENTINEL if the function is to return with U_INVALID_CHAR_FOUND instead. + * A substitution character can be any valid Unicode code point (up to U+10FFFF) + * except for surrogate code points (U+D800..U+DFFF). + * The recommended value is U+FFFD "REPLACEMENT CHARACTER". + * @param pNumSubstitutions Output parameter receiving the number of substitutions if subchar>=0. + * Set to 0 if no substitutions occur or subchar<0. + * pNumSubstitutions can be NULL. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @see u_strFromUTF8 + * @see u_strFromUTF8Lenient + * @see u_strToUTF8WithSub + * @stable ICU 3.6 + */ +U_CAPI UChar* U_EXPORT2 +u_strFromUTF8WithSub(UChar *dest, + int32_t destCapacity, + int32_t *pDestLength, + const char *src, + int32_t srcLength, + UChar32 subchar, int32_t *pNumSubstitutions, + UErrorCode *pErrorCode); + +/** + * Convert a UTF-8 string to UTF-16. + * + * Same as u_strFromUTF8() except that this function is designed to be very fast, + * which it achieves by being lenient about malformed UTF-8 sequences. + * This function is intended for use in environments where UTF-8 text is + * expected to be well-formed. + * + * Its semantics are: + * - Well-formed UTF-8 text is correctly converted to well-formed UTF-16 text. + * - The function will not read beyond the input string, nor write beyond + * the destCapacity. + * - Malformed UTF-8 results in "garbage" 16-bit Unicode strings which may not + * be well-formed UTF-16. + * The function will resynchronize to valid code point boundaries + * within a small number of code points after an illegal sequence. + * - Non-shortest forms are not detected and will result in "spoofing" output. + * + * For further performance improvement, if srcLength is given (>=0), + * then it must be destCapacity>=srcLength. + * + * There is no inverse u_strToUTF8Lenient() function because there is practically + * no performance gain from not checking that a UTF-16 string is well-formed. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * Unlike for other ICU functions, if srcLength>=0 then it + * must be destCapacity>=srcLength. + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * Unlike for other ICU functions, if srcLength>=0 but + * destCapacity=0. + * Set to 0 if no substitutions occur or subchar<0. + * pNumSubstitutions can be NULL. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @see u_strToUTF32 + * @see u_strFromUTF32WithSub + * @stable ICU 4.2 + */ +U_CAPI UChar32* U_EXPORT2 +u_strToUTF32WithSub(UChar32 *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar *src, + int32_t srcLength, + UChar32 subchar, int32_t *pNumSubstitutions, + UErrorCode *pErrorCode); + +/** + * Convert a UTF-32 string to UTF-16. + * + * Same as u_strFromUTF32() except for the additional subchar which is output for + * illegal input sequences, instead of stopping with the U_INVALID_CHAR_FOUND error code. + * With subchar==U_SENTINEL, this function behaves exactly like u_strFromUTF32(). + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param subchar The substitution character to use in place of an illegal input sequence, + * or U_SENTINEL if the function is to return with U_INVALID_CHAR_FOUND instead. + * A substitution character can be any valid Unicode code point (up to U+10FFFF) + * except for surrogate code points (U+D800..U+DFFF). + * The recommended value is U+FFFD "REPLACEMENT CHARACTER". + * @param pNumSubstitutions Output parameter receiving the number of substitutions if subchar>=0. + * Set to 0 if no substitutions occur or subchar<0. + * pNumSubstitutions can be NULL. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @see u_strFromUTF32 + * @see u_strToUTF32WithSub + * @stable ICU 4.2 + */ +U_CAPI UChar* U_EXPORT2 +u_strFromUTF32WithSub(UChar *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar32 *src, + int32_t srcLength, + UChar32 subchar, int32_t *pNumSubstitutions, + UErrorCode *pErrorCode); + +/** + * Convert a 16-bit Unicode string to Java Modified UTF-8. + * See http://java.sun.com/javase/6/docs/api/java/io/DataInput.html#modified-utf-8 + * + * This function behaves according to the documentation for Java DataOutput.writeUTF() + * except that it does not encode the output length in the destination buffer + * and does not have an output length restriction. + * See http://java.sun.com/javase/6/docs/api/java/io/DataOutput.html#writeUTF(java.lang.String) + * + * The input string need not be well-formed UTF-16. + * (Therefore there is no subchar parameter.) + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of chars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @stable ICU 4.4 + * @see u_strToUTF8WithSub + * @see u_strFromJavaModifiedUTF8WithSub + */ +U_CAPI char* U_EXPORT2 +u_strToJavaModifiedUTF8( + char *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar *src, + int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Convert a Java Modified UTF-8 string to a 16-bit Unicode string. + * If the input string is not well-formed and no substitution char is specified, + * then the U_INVALID_CHAR_FOUND error code is set. + * + * This function behaves according to the documentation for Java DataInput.readUTF() + * except that it takes a length parameter rather than + * interpreting the first two input bytes as the length. + * See http://java.sun.com/javase/6/docs/api/java/io/DataInput.html#readUTF() + * + * The output string may not be well-formed UTF-16. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param subchar The substitution character to use in place of an illegal input sequence, + * or U_SENTINEL if the function is to return with U_INVALID_CHAR_FOUND instead. + * A substitution character can be any valid Unicode code point (up to U+10FFFF) + * except for surrogate code points (U+D800..U+DFFF). + * The recommended value is U+FFFD "REPLACEMENT CHARACTER". + * @param pNumSubstitutions Output parameter receiving the number of substitutions if subchar>=0. + * Set to 0 if no substitutions occur or subchar<0. + * pNumSubstitutions can be NULL. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @see u_strFromUTF8WithSub + * @see u_strFromUTF8Lenient + * @see u_strToJavaModifiedUTF8 + * @stable ICU 4.4 + */ +U_CAPI UChar* U_EXPORT2 +u_strFromJavaModifiedUTF8WithSub( + UChar *dest, + int32_t destCapacity, + int32_t *pDestLength, + const char *src, + int32_t srcLength, + UChar32 subchar, int32_t *pNumSubstitutions, + UErrorCode *pErrorCode); + +#endif + +// ucasemap.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* +* Copyright (C) 2005-2012, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: ucasemap.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2005may06 +* created by: Markus W. Scherer +* +* Case mapping service object and functions using it. +*/ + +#ifndef __UCASEMAP_H__ +#define __UCASEMAP_H__ + + + +/** + * \file + * \brief C API: Unicode case mapping functions using a UCaseMap service object. + * + * The service object takes care of memory allocations, data loading, and setup + * for the attributes, as usual. + * + * Currently, the functionality provided here does not overlap with uchar.h + * and ustring.h, except for ucasemap_toTitle(). + * + * ucasemap_utf8XYZ() functions operate directly on UTF-8 strings. + */ + +/** + * UCaseMap is an opaque service object for newer ICU case mapping functions. + * Older functions did not use a service object. + * @stable ICU 3.4 + */ +struct UCaseMap; +typedef struct UCaseMap UCaseMap; /**< C typedef for struct UCaseMap. @stable ICU 3.4 */ + +/** + * Open a UCaseMap service object for a locale and a set of options. + * The locale ID and options are preprocessed so that functions using the + * service object need not process them in each call. + * + * @param locale ICU locale ID, used for language-dependent + * upper-/lower-/title-casing according to the Unicode standard. + * Usual semantics: ""=root, NULL=default locale, etc. + * @param options Options bit set, used for case folding and string comparisons. + * Same flags as for u_foldCase(), u_strFoldCase(), + * u_strCaseCompare(), etc. + * Use 0 or U_FOLD_CASE_DEFAULT for default behavior. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return Pointer to a UCaseMap service object, if successful. + * + * @see U_FOLD_CASE_DEFAULT + * @see U_FOLD_CASE_EXCLUDE_SPECIAL_I + * @see U_TITLECASE_NO_LOWERCASE + * @see U_TITLECASE_NO_BREAK_ADJUSTMENT + * @stable ICU 3.4 + */ +U_CAPI UCaseMap * U_EXPORT2 +ucasemap_open(const char *locale, uint32_t options, UErrorCode *pErrorCode); + +/** + * Close a UCaseMap service object. + * @param csm Object to be closed. + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +ucasemap_close(UCaseMap *csm); + + +/** + * Get the locale ID that is used for language-dependent case mappings. + * @param csm UCaseMap service object. + * @return locale ID + * @stable ICU 3.4 + */ +U_CAPI const char * U_EXPORT2 +ucasemap_getLocale(const UCaseMap *csm); + +/** + * Get the options bit set that is used for case folding and string comparisons. + * @param csm UCaseMap service object. + * @return options bit set + * @stable ICU 3.4 + */ +U_CAPI uint32_t U_EXPORT2 +ucasemap_getOptions(const UCaseMap *csm); + +/** + * Set the locale ID that is used for language-dependent case mappings. + * + * @param csm UCaseMap service object. + * @param locale Locale ID, see ucasemap_open(). + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @see ucasemap_open + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode); + +/** + * Set the options bit set that is used for case folding and string comparisons. + * + * @param csm UCaseMap service object. + * @param options Options bit set, see ucasemap_open(). + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @see ucasemap_open + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode); + +#if !UCONFIG_NO_BREAK_ITERATION + +/** + * Get the break iterator that is used for titlecasing. + * Do not modify the returned break iterator. + * @param csm UCaseMap service object. + * @return titlecasing break iterator + * @stable ICU 3.8 + */ +U_CAPI const UBreakIterator * U_EXPORT2 +ucasemap_getBreakIterator(const UCaseMap *csm); + +/** + * Set the break iterator that is used for titlecasing. + * The UCaseMap service object releases a previously set break iterator + * and "adopts" this new one, taking ownership of it. + * It will be released in a subsequent call to ucasemap_setBreakIterator() + * or ucasemap_close(). + * + * Break iterator operations are not thread-safe. Therefore, titlecasing + * functions use non-const UCaseMap objects. It is not possible to titlecase + * strings concurrently using the same UCaseMap. + * + * @param csm UCaseMap service object. + * @param iterToAdopt Break iterator to be adopted for titlecasing. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @see ucasemap_toTitle + * @see ucasemap_utf8ToTitle + * @stable ICU 3.8 + */ +U_CAPI void U_EXPORT2 +ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode); + +/** + * Titlecase a UTF-16 string. This function is almost a duplicate of u_strToTitle(), + * except that it takes ucasemap_setOptions() into account and has performance + * advantages from being able to use a UCaseMap object for multiple case mapping + * operations, saving setup time. + * + * Casing is locale-dependent and context-sensitive. + * Titlecasing uses a break iterator to find the first characters of words + * that are to be titlecased. It titlecases those characters and lowercases + * all others. (This can be modified with ucasemap_setOptions().) + * + * Note: This function takes a non-const UCaseMap pointer because it will + * open a default break iterator if no break iterator was set yet, + * and effectively call ucasemap_setBreakIterator(); + * also because the break iterator is stateful and will be modified during + * the iteration. + * + * The titlecase break iterator can be provided to customize for arbitrary + * styles, using rules and dictionaries beyond the standard iterators. + * The standard titlecase iterator for the root locale implements the + * algorithm of Unicode TR 21. + * + * This function uses only the setText(), first() and next() methods of the + * provided break iterator. + * + * The result may be longer or shorter than the original. + * The source string and the destination buffer must not overlap. + * + * @param csm UCaseMap service object. This pointer is non-const! + * See the note above for details. + * @param dest A buffer for the result string. The result will be NUL-terminated if + * the buffer is large enough. + * The contents is undefined in case of failure. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string. + * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string, if successful - or in case of a buffer overflow, + * in which case it will be greater than destCapacity. + * + * @see u_strToTitle + * @stable ICU 3.8 + */ +U_CAPI int32_t U_EXPORT2 +ucasemap_toTitle(UCaseMap *csm, + UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + UErrorCode *pErrorCode); + +#endif // UCONFIG_NO_BREAK_ITERATION + +/** + * Lowercase the characters in a UTF-8 string. + * Casing is locale-dependent and context-sensitive. + * The result may be longer or shorter than the original. + * The source string and the destination buffer must not overlap. + * + * @param csm UCaseMap service object. + * @param dest A buffer for the result string. The result will be NUL-terminated if + * the buffer is large enough. + * The contents is undefined in case of failure. + * @param destCapacity The size of the buffer (number of bytes). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string. + * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string, if successful - or in case of a buffer overflow, + * in which case it will be greater than destCapacity. + * + * @see u_strToLower + * @stable ICU 3.4 + */ +U_CAPI int32_t U_EXPORT2 +ucasemap_utf8ToLower(const UCaseMap *csm, + char *dest, int32_t destCapacity, + const char *src, int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Uppercase the characters in a UTF-8 string. + * Casing is locale-dependent and context-sensitive. + * The result may be longer or shorter than the original. + * The source string and the destination buffer must not overlap. + * + * @param csm UCaseMap service object. + * @param dest A buffer for the result string. The result will be NUL-terminated if + * the buffer is large enough. + * The contents is undefined in case of failure. + * @param destCapacity The size of the buffer (number of bytes). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string. + * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string, if successful - or in case of a buffer overflow, + * in which case it will be greater than destCapacity. + * + * @see u_strToUpper + * @stable ICU 3.4 + */ +U_CAPI int32_t U_EXPORT2 +ucasemap_utf8ToUpper(const UCaseMap *csm, + char *dest, int32_t destCapacity, + const char *src, int32_t srcLength, + UErrorCode *pErrorCode); + +#if !UCONFIG_NO_BREAK_ITERATION + +/** + * Titlecase a UTF-8 string. + * Casing is locale-dependent and context-sensitive. + * Titlecasing uses a break iterator to find the first characters of words + * that are to be titlecased. It titlecases those characters and lowercases + * all others. (This can be modified with ucasemap_setOptions().) + * + * Note: This function takes a non-const UCaseMap pointer because it will + * open a default break iterator if no break iterator was set yet, + * and effectively call ucasemap_setBreakIterator(); + * also because the break iterator is stateful and will be modified during + * the iteration. + * + * The titlecase break iterator can be provided to customize for arbitrary + * styles, using rules and dictionaries beyond the standard iterators. + * The standard titlecase iterator for the root locale implements the + * algorithm of Unicode TR 21. + * + * This function uses only the setUText(), first(), next() and close() methods of the + * provided break iterator. + * + * The result may be longer or shorter than the original. + * The source string and the destination buffer must not overlap. + * + * @param csm UCaseMap service object. This pointer is non-const! + * See the note above for details. + * @param dest A buffer for the result string. The result will be NUL-terminated if + * the buffer is large enough. + * The contents is undefined in case of failure. + * @param destCapacity The size of the buffer (number of bytes). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string. + * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string, if successful - or in case of a buffer overflow, + * in which case it will be greater than destCapacity. + * + * @see u_strToTitle + * @see U_TITLECASE_NO_LOWERCASE + * @see U_TITLECASE_NO_BREAK_ADJUSTMENT + * @stable ICU 3.8 + */ +U_CAPI int32_t U_EXPORT2 +ucasemap_utf8ToTitle(UCaseMap *csm, + char *dest, int32_t destCapacity, + const char *src, int32_t srcLength, + UErrorCode *pErrorCode); + +#endif + +/** + * Case-folds the characters in a UTF-8 string. + * + * Case-folding is locale-independent and not context-sensitive, + * but there is an option for whether to include or exclude mappings for dotted I + * and dotless i that are marked with 'T' in CaseFolding.txt. + * + * The result may be longer or shorter than the original. + * The source string and the destination buffer must not overlap. + * + * @param csm UCaseMap service object. + * @param dest A buffer for the result string. The result will be NUL-terminated if + * the buffer is large enough. + * The contents is undefined in case of failure. + * @param destCapacity The size of the buffer (number of bytes). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string. + * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string, if successful - or in case of a buffer overflow, + * in which case it will be greater than destCapacity. + * + * @see u_strFoldCase + * @see ucasemap_setOptions + * @see U_FOLD_CASE_DEFAULT + * @see U_FOLD_CASE_EXCLUDE_SPECIAL_I + * @stable ICU 3.8 + */ +U_CAPI int32_t U_EXPORT2 +ucasemap_utf8FoldCase(const UCaseMap *csm, + char *dest, int32_t destCapacity, + const char *src, int32_t srcLength, + UErrorCode *pErrorCode); + +#endif + +// parseerr.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 1999-2005, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* Date Name Description +* 03/14/00 aliu Creation. +* 06/27/00 aliu Change from C++ class to C struct +********************************************************************** +*/ +#ifndef PARSEERR_H +#define PARSEERR_H + + + +/** + * \file + * \brief C API: Parse Error Information + */ +/** + * The capacity of the context strings in UParseError. + * @stable ICU 2.0 + */ +enum { U_PARSE_CONTEXT_LEN = 16 }; + +/** + * A UParseError struct is used to returned detailed information about + * parsing errors. It is used by ICU parsing engines that parse long + * rules, patterns, or programs, where the text being parsed is long + * enough that more information than a UErrorCode is needed to + * localize the error. + * + *

The line, offset, and context fields are optional; parsing + * engines may choose not to use to use them. + * + *

The preContext and postContext strings include some part of the + * context surrounding the error. If the source text is "let for=7" + * and "for" is the error (e.g., because it is a reserved word), then + * some examples of what a parser might produce are the following: + * + *

+ * preContext   postContext
+ * ""           ""            The parser does not support context
+ * "let "       "=7"          Pre- and post-context only
+ * "let "       "for=7"       Pre- and post-context and error text
+ * ""           "for"         Error text only
+ * 
+ * + *

Examples of engines which use UParseError (or may use it in the + * future) are Transliterator, RuleBasedBreakIterator, and + * RegexPattern. + * + * @stable ICU 2.0 + */ +typedef struct UParseError { + + /** + * The line on which the error occurred. If the parser uses this + * field, it sets it to the line number of the source text line on + * which the error appears, which will be a value >= 1. If the + * parse does not support line numbers, the value will be <= 0. + * @stable ICU 2.0 + */ + int32_t line; + + /** + * The character offset to the error. If the line field is >= 1, + * then this is the offset from the start of the line. Otherwise, + * this is the offset from the start of the text. If the parser + * does not support this field, it will have a value < 0. + * @stable ICU 2.0 + */ + int32_t offset; + + /** + * Textual context before the error. Null-terminated. The empty + * string if not supported by parser. + * @stable ICU 2.0 + */ + UChar preContext[U_PARSE_CONTEXT_LEN]; + + /** + * The error itself and/or textual context after the error. + * Null-terminated. The empty string if not supported by parser. + * @stable ICU 2.0 + */ + UChar postContext[U_PARSE_CONTEXT_LEN]; + +} UParseError; + +#endif + +// usprep.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* + ******************************************************************************* + * + * Copyright (C) 2003-2014, International Business Machines + * Corporation and others. All Rights Reserved. + * + ******************************************************************************* + * file name: usprep.h + * encoding: UTF-8 + * tab size: 8 (not used) + * indentation:4 + * + * created on: 2003jul2 + * created by: Ram Viswanadha + */ + +#ifndef __USPREP_H__ +#define __USPREP_H__ + +/** + * \file + * \brief C API: Implements the StringPrep algorithm. + */ + + + +/** + * + * StringPrep API implements the StingPrep framework as described by RFC 3454. + * StringPrep prepares Unicode strings for use in network protocols. + * Profiles of StingPrep are set of rules and data according to with the + * Unicode Strings are prepared. Each profiles contains tables which describe + * how a code point should be treated. The tables are broadly classified into + *

    + *
  • Unassigned Table: Contains code points that are unassigned + * in the Unicode Version supported by StringPrep. Currently + * RFC 3454 supports Unicode 3.2.
  • + *
  • Prohibited Table: Contains code points that are prohibited from + * the output of the StringPrep processing function.
  • + *
  • Mapping Table: Contains code points that are deleted from the output or case mapped.
  • + *
+ * + * The procedure for preparing Unicode strings: + *
    + *
  1. Map: For each character in the input, check if it has a mapping + * and, if so, replace it with its mapping.
  2. + *
  3. Normalize: Possibly normalize the result of step 1 using Unicode + * normalization.
  4. + *
  5. Prohibit: Check for any characters that are not allowed in the + * output. If any are found, return an error.
  6. + *
  7. Check bidi: Possibly check for right-to-left characters, and if + * any are found, make sure that the whole string satisfies the + * requirements for bidirectional strings. If the string does not + * satisfy the requirements for bidirectional strings, return an + * error.
  8. + *
+ * @author Ram Viswanadha + */ +#if !UCONFIG_NO_IDNA + + +/** + * The StringPrep profile + * @stable ICU 2.8 + */ +typedef struct UStringPrepProfile UStringPrepProfile; + + +/** + * Option to prohibit processing of unassigned code points in the input + * + * @see usprep_prepare + * @stable ICU 2.8 + */ +#define USPREP_DEFAULT 0x0000 + +/** + * Option to allow processing of unassigned code points in the input + * + * @see usprep_prepare + * @stable ICU 2.8 + */ +#define USPREP_ALLOW_UNASSIGNED 0x0001 + +/** + * enums for the standard stringprep profile types + * supported by usprep_openByType. + * @see usprep_openByType + * @stable ICU 4.2 + */ +typedef enum UStringPrepProfileType { + /** + * RFC3491 Nameprep + * @stable ICU 4.2 + */ + USPREP_RFC3491_NAMEPREP, + /** + * RFC3530 nfs4_cs_prep + * @stable ICU 4.2 + */ + USPREP_RFC3530_NFS4_CS_PREP, + /** + * RFC3530 nfs4_cs_prep with case insensitive option + * @stable ICU 4.2 + */ + USPREP_RFC3530_NFS4_CS_PREP_CI, + /** + * RFC3530 nfs4_cis_prep + * @stable ICU 4.2 + */ + USPREP_RFC3530_NFS4_CIS_PREP, + /** + * RFC3530 nfs4_mixed_prep for prefix + * @stable ICU 4.2 + */ + USPREP_RFC3530_NFS4_MIXED_PREP_PREFIX, + /** + * RFC3530 nfs4_mixed_prep for suffix + * @stable ICU 4.2 + */ + USPREP_RFC3530_NFS4_MIXED_PREP_SUFFIX, + /** + * RFC3722 iSCSI + * @stable ICU 4.2 + */ + USPREP_RFC3722_ISCSI, + /** + * RFC3920 XMPP Nodeprep + * @stable ICU 4.2 + */ + USPREP_RFC3920_NODEPREP, + /** + * RFC3920 XMPP Resourceprep + * @stable ICU 4.2 + */ + USPREP_RFC3920_RESOURCEPREP, + /** + * RFC4011 Policy MIB Stringprep + * @stable ICU 4.2 + */ + USPREP_RFC4011_MIB, + /** + * RFC4013 SASLprep + * @stable ICU 4.2 + */ + USPREP_RFC4013_SASLPREP, + /** + * RFC4505 trace + * @stable ICU 4.2 + */ + USPREP_RFC4505_TRACE, + /** + * RFC4518 LDAP + * @stable ICU 4.2 + */ + USPREP_RFC4518_LDAP, + /** + * RFC4518 LDAP for case ignore, numeric and stored prefix + * matching rules + * @stable ICU 4.2 + */ + USPREP_RFC4518_LDAP_CI +} UStringPrepProfileType; + +/** + * Creates a StringPrep profile from the data file. + * + * @param path string containing the full path pointing to the directory + * where the profile reside followed by the package name + * e.g. "/usr/resource/my_app/profiles/mydata" on a Unix system. + * if NULL, ICU default data files will be used. + * @param fileName name of the profile file to be opened + * @param status ICU error code in/out parameter. Must not be NULL. + * Must fulfill U_SUCCESS before the function call. + * @return Pointer to UStringPrepProfile that is opened. Should be closed by + * calling usprep_close() + * @see usprep_close() + * @stable ICU 2.8 + */ +U_CAPI UStringPrepProfile* U_EXPORT2 +usprep_open(const char* path, + const char* fileName, + UErrorCode* status); + +/** + * Creates a StringPrep profile for the specified profile type. + * + * @param type The profile type + * @param status ICU error code in/out parameter. Must not be NULL. + * Must fulfill U_SUCCESS before the function call. + * @return Pointer to UStringPrepProfile that is opened. Should be closed by + * calling usprep_close() + * @see usprep_close() + * @stable ICU 4.2 + */ +U_CAPI UStringPrepProfile* U_EXPORT2 +usprep_openByType(UStringPrepProfileType type, + UErrorCode* status); + +/** + * Closes the profile + * @param profile The profile to close + * @stable ICU 2.8 + */ +U_CAPI void U_EXPORT2 +usprep_close(UStringPrepProfile* profile); + + +/** + * Prepare the input buffer for use in applications with the given profile. This operation maps, normalizes(NFKC), + * checks for prohibited and BiDi characters in the order defined by RFC 3454 + * depending on the options specified in the profile. + * + * @param prep The profile to use + * @param src Pointer to UChar buffer containing the string to prepare + * @param srcLength Number of characters in the source string + * @param dest Pointer to the destination buffer to receive the output + * @param destCapacity The capacity of destination array + * @param options A bit set of options: + * + * - USPREP_DEFAULT Prohibit processing of unassigned code points in the input + * + * - USPREP_ALLOW_UNASSIGNED Treat the unassigned code points are in the input + * as normal Unicode code points. + * + * @param parseError Pointer to UParseError struct to receive information on position + * of error if an error is encountered. Can be NULL. + * @param status ICU in/out error code parameter. + * U_INVALID_CHAR_FOUND if src contains + * unmatched single surrogates. + * U_INDEX_OUTOFBOUNDS_ERROR if src contains + * too many code points. + * U_BUFFER_OVERFLOW_ERROR if destCapacity is not enough + * @return The number of UChars in the destination buffer + * @stable ICU 2.8 + */ + +U_CAPI int32_t U_EXPORT2 +usprep_prepare( const UStringPrepProfile* prep, + const UChar* src, int32_t srcLength, + UChar* dest, int32_t destCapacity, + int32_t options, + UParseError* parseError, + UErrorCode* status ); + + +#endif /* #if !UCONFIG_NO_IDNA */ + +#endif + +// uidna.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* + ******************************************************************************* + * + * Copyright (C) 2003-2014, International Business Machines + * Corporation and others. All Rights Reserved. + * + ******************************************************************************* + * file name: uidna.h + * encoding: UTF-8 + * tab size: 8 (not used) + * indentation:4 + * + * created on: 2003feb1 + * created by: Ram Viswanadha + */ + +#ifndef __UIDNA_H__ +#define __UIDNA_H__ + + +#if !UCONFIG_NO_IDNA + +/** + * \file + * \brief C API: Internationalizing Domain Names in Applications (IDNA) + * + * IDNA2008 is implemented according to UTS #46, see the IDNA C++ class in idna.h. + * + * The C API functions which do take a UIDNA * service object pointer + * implement UTS #46 and IDNA2008. + * + * IDNA2003 is obsolete. + * The C API functions which do not take a service object pointer + * implement IDNA2003. They are all deprecated. + */ + +/* + * IDNA option bit set values. + */ +enum { + /** + * Default options value: None of the other options are set. + * For use in static worker and factory methods. + * @stable ICU 2.6 + */ + UIDNA_DEFAULT=0, + /** + * Option to check whether the input conforms to the STD3 ASCII rules, + * for example the restriction of labels to LDH characters + * (ASCII Letters, Digits and Hyphen-Minus). + * For use in static worker and factory methods. + * @stable ICU 2.6 + */ + UIDNA_USE_STD3_RULES=2, + /** + * IDNA option to check for whether the input conforms to the BiDi rules. + * For use in static worker and factory methods. + *

This option is ignored by the IDNA2003 implementation. + * (IDNA2003 always performs a BiDi check.) + * @stable ICU 4.6 + */ + UIDNA_CHECK_BIDI=4, + /** + * IDNA option to check for whether the input conforms to the CONTEXTJ rules. + * For use in static worker and factory methods. + *

This option is ignored by the IDNA2003 implementation. + * (The CONTEXTJ check is new in IDNA2008.) + * @stable ICU 4.6 + */ + UIDNA_CHECK_CONTEXTJ=8, + /** + * IDNA option for nontransitional processing in ToASCII(). + * For use in static worker and factory methods. + *

By default, ToASCII() uses transitional processing. + *

This option is ignored by the IDNA2003 implementation. + * (This is only relevant for compatibility of newer IDNA implementations with IDNA2003.) + * @stable ICU 4.6 + */ + UIDNA_NONTRANSITIONAL_TO_ASCII=0x10, + /** + * IDNA option for nontransitional processing in ToUnicode(). + * For use in static worker and factory methods. + *

By default, ToUnicode() uses transitional processing. + *

This option is ignored by the IDNA2003 implementation. + * (This is only relevant for compatibility of newer IDNA implementations with IDNA2003.) + * @stable ICU 4.6 + */ + UIDNA_NONTRANSITIONAL_TO_UNICODE=0x20, + /** + * IDNA option to check for whether the input conforms to the CONTEXTO rules. + * For use in static worker and factory methods. + *

This option is ignored by the IDNA2003 implementation. + * (The CONTEXTO check is new in IDNA2008.) + *

This is for use by registries for IDNA2008 conformance. + * UTS #46 does not require the CONTEXTO check. + * @stable ICU 49 + */ + UIDNA_CHECK_CONTEXTO=0x40 +}; + +/** + * Opaque C service object type for the new IDNA API. + * @stable ICU 4.6 + */ +struct UIDNA; +typedef struct UIDNA UIDNA; /**< C typedef for struct UIDNA. @stable ICU 4.6 */ + +/** + * Returns a UIDNA instance which implements UTS #46. + * Returns an unmodifiable instance, owned by the caller. + * Cache it for multiple operations, and uidna_close() it when done. + * The instance is thread-safe, that is, it can be used concurrently. + * + * For details about the UTS #46 implementation see the IDNA C++ class in idna.h. + * + * @param options Bit set to modify the processing and error checking. + * See option bit set values in uidna.h. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the UTS #46 UIDNA instance, if successful + * @stable ICU 4.6 + */ +U_CAPI UIDNA * U_EXPORT2 +uidna_openUTS46(uint32_t options, UErrorCode *pErrorCode); + +/** + * Closes a UIDNA instance. + * @param idna UIDNA instance to be closed + * @stable ICU 4.6 + */ +U_CAPI void U_EXPORT2 +uidna_close(UIDNA *idna); + + +/** + * Output container for IDNA processing errors. + * Initialize with UIDNA_INFO_INITIALIZER: + * \code + * UIDNAInfo info = UIDNA_INFO_INITIALIZER; + * int32_t length = uidna_nameToASCII(..., &info, &errorCode); + * if(U_SUCCESS(errorCode) && info.errors!=0) { ... } + * \endcode + * @stable ICU 4.6 + */ +typedef struct UIDNAInfo { + /** sizeof(UIDNAInfo) @stable ICU 4.6 */ + int16_t size; + /** + * Set to true if transitional and nontransitional processing produce different results. + * For details see C++ IDNAInfo::isTransitionalDifferent(). + * @stable ICU 4.6 + */ + UBool isTransitionalDifferent; + UBool reservedB3; /**< Reserved field, do not use. @internal */ + /** + * Bit set indicating IDNA processing errors. 0 if no errors. + * See UIDNA_ERROR_... constants. + * @stable ICU 4.6 + */ + uint32_t errors; + int32_t reservedI2; /**< Reserved field, do not use. @internal */ + int32_t reservedI3; /**< Reserved field, do not use. @internal */ +} UIDNAInfo; + +/** + * Static initializer for a UIDNAInfo struct. + * @stable ICU 4.6 + */ +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +#define UIDNA_INFO_INITIALIZER { \ + (int16_t)sizeof(UIDNAInfo), \ + false, false, \ + 0, 0, 0 } +#else +#define UIDNA_INFO_INITIALIZER { \ + (int16_t)sizeof(UIDNAInfo), \ + FALSE, FALSE, \ + 0, 0, 0 } +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * Converts a single domain name label into its ASCII form for DNS lookup. + * If any processing step fails, then pInfo->errors will be non-zero and + * the result might not be an ASCII string. + * The label might be modified according to the types of errors. + * Labels with severe errors will be left in (or turned into) their Unicode form. + * + * The UErrorCode indicates an error only in exceptional cases, + * such as a U_MEMORY_ALLOCATION_ERROR. + * + * @param idna UIDNA instance + * @param label Input domain name label + * @param length Label length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_CAPI int32_t U_EXPORT2 +uidna_labelToASCII(const UIDNA *idna, + const UChar *label, int32_t length, + UChar *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a single domain name label into its Unicode form for human-readable display. + * If any processing step fails, then pInfo->errors will be non-zero. + * The label might be modified according to the types of errors. + * + * The UErrorCode indicates an error only in exceptional cases, + * such as a U_MEMORY_ALLOCATION_ERROR. + * + * @param idna UIDNA instance + * @param label Input domain name label + * @param length Label length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_CAPI int32_t U_EXPORT2 +uidna_labelToUnicode(const UIDNA *idna, + const UChar *label, int32_t length, + UChar *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a whole domain name into its ASCII form for DNS lookup. + * If any processing step fails, then pInfo->errors will be non-zero and + * the result might not be an ASCII string. + * The domain name might be modified according to the types of errors. + * Labels with severe errors will be left in (or turned into) their Unicode form. + * + * The UErrorCode indicates an error only in exceptional cases, + * such as a U_MEMORY_ALLOCATION_ERROR. + * + * @param idna UIDNA instance + * @param name Input domain name + * @param length Domain name length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_CAPI int32_t U_EXPORT2 +uidna_nameToASCII(const UIDNA *idna, + const UChar *name, int32_t length, + UChar *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a whole domain name into its Unicode form for human-readable display. + * If any processing step fails, then pInfo->errors will be non-zero. + * The domain name might be modified according to the types of errors. + * + * The UErrorCode indicates an error only in exceptional cases, + * such as a U_MEMORY_ALLOCATION_ERROR. + * + * @param idna UIDNA instance + * @param name Input domain name + * @param length Domain name length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_CAPI int32_t U_EXPORT2 +uidna_nameToUnicode(const UIDNA *idna, + const UChar *name, int32_t length, + UChar *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/* UTF-8 versions of the processing methods --------------------------------- */ + +/** + * Converts a single domain name label into its ASCII form for DNS lookup. + * UTF-8 version of uidna_labelToASCII(), same behavior. + * + * @param idna UIDNA instance + * @param label Input domain name label + * @param length Label length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_CAPI int32_t U_EXPORT2 +uidna_labelToASCII_UTF8(const UIDNA *idna, + const char *label, int32_t length, + char *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a single domain name label into its Unicode form for human-readable display. + * UTF-8 version of uidna_labelToUnicode(), same behavior. + * + * @param idna UIDNA instance + * @param label Input domain name label + * @param length Label length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_CAPI int32_t U_EXPORT2 +uidna_labelToUnicodeUTF8(const UIDNA *idna, + const char *label, int32_t length, + char *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a whole domain name into its ASCII form for DNS lookup. + * UTF-8 version of uidna_nameToASCII(), same behavior. + * + * @param idna UIDNA instance + * @param name Input domain name + * @param length Domain name length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_CAPI int32_t U_EXPORT2 +uidna_nameToASCII_UTF8(const UIDNA *idna, + const char *name, int32_t length, + char *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a whole domain name into its Unicode form for human-readable display. + * UTF-8 version of uidna_nameToUnicode(), same behavior. + * + * @param idna UIDNA instance + * @param name Input domain name + * @param length Domain name length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_CAPI int32_t U_EXPORT2 +uidna_nameToUnicodeUTF8(const UIDNA *idna, + const char *name, int32_t length, + char *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/* + * IDNA error bit set values. + * When a domain name or label fails a processing step or does not meet the + * validity criteria, then one or more of these error bits are set. + */ +enum { + /** + * A non-final domain name label (or the whole domain name) is empty. + * @stable ICU 4.6 + */ + UIDNA_ERROR_EMPTY_LABEL=1, + /** + * A domain name label is longer than 63 bytes. + * (See STD13/RFC1034 3.1. Name space specifications and terminology.) + * This is only checked in ToASCII operations, and only if the output label is all-ASCII. + * @stable ICU 4.6 + */ + UIDNA_ERROR_LABEL_TOO_LONG=2, + /** + * A domain name is longer than 255 bytes in its storage form. + * (See STD13/RFC1034 3.1. Name space specifications and terminology.) + * This is only checked in ToASCII operations, and only if the output domain name is all-ASCII. + * @stable ICU 4.6 + */ + UIDNA_ERROR_DOMAIN_NAME_TOO_LONG=4, + /** + * A label starts with a hyphen-minus ('-'). + * @stable ICU 4.6 + */ + UIDNA_ERROR_LEADING_HYPHEN=8, + /** + * A label ends with a hyphen-minus ('-'). + * @stable ICU 4.6 + */ + UIDNA_ERROR_TRAILING_HYPHEN=0x10, + /** + * A label contains hyphen-minus ('-') in the third and fourth positions. + * @stable ICU 4.6 + */ + UIDNA_ERROR_HYPHEN_3_4=0x20, + /** + * A label starts with a combining mark. + * @stable ICU 4.6 + */ + UIDNA_ERROR_LEADING_COMBINING_MARK=0x40, + /** + * A label or domain name contains disallowed characters. + * @stable ICU 4.6 + */ + UIDNA_ERROR_DISALLOWED=0x80, + /** + * A label starts with "xn--" but does not contain valid Punycode. + * That is, an xn-- label failed Punycode decoding. + * @stable ICU 4.6 + */ + UIDNA_ERROR_PUNYCODE=0x100, + /** + * A label contains a dot=full stop. + * This can occur in an input string for a single-label function. + * @stable ICU 4.6 + */ + UIDNA_ERROR_LABEL_HAS_DOT=0x200, + /** + * An ACE label does not contain a valid label string. + * The label was successfully ACE (Punycode) decoded but the resulting + * string had severe validation errors. For example, + * it might contain characters that are not allowed in ACE labels, + * or it might not be normalized. + * @stable ICU 4.6 + */ + UIDNA_ERROR_INVALID_ACE_LABEL=0x400, + /** + * A label does not meet the IDNA BiDi requirements (for right-to-left characters). + * @stable ICU 4.6 + */ + UIDNA_ERROR_BIDI=0x800, + /** + * A label does not meet the IDNA CONTEXTJ requirements. + * @stable ICU 4.6 + */ + UIDNA_ERROR_CONTEXTJ=0x1000, + /** + * A label does not meet the IDNA CONTEXTO requirements for punctuation characters. + * Some punctuation characters "Would otherwise have been DISALLOWED" + * but are allowed in certain contexts. (RFC 5892) + * @stable ICU 49 + */ + UIDNA_ERROR_CONTEXTO_PUNCTUATION=0x2000, + /** + * A label does not meet the IDNA CONTEXTO requirements for digits. + * Arabic-Indic Digits (U+066x) must not be mixed with Extended Arabic-Indic Digits (U+06Fx). + * @stable ICU 49 + */ + UIDNA_ERROR_CONTEXTO_DIGITS=0x4000 +}; + + +#endif /* #if !UCONFIG_NO_IDNA */ + +#endif + +// ubrk.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* Copyright (C) 1996-2015, International Business Machines Corporation and others. +* All Rights Reserved. +****************************************************************************** +*/ + +#ifndef UBRK_H +#define UBRK_H + + + +/** + * A text-break iterator. + * For usage in C programs. + */ +#ifndef UBRK_TYPEDEF_UBREAK_ITERATOR +# define UBRK_TYPEDEF_UBREAK_ITERATOR + /** + * Opaque type representing an ICU Break iterator object. + * @stable ICU 2.0 + */ + typedef struct UBreakIterator UBreakIterator; +#endif + +#if !UCONFIG_NO_BREAK_ITERATION + + +/** + * \file + * \brief C API: BreakIterator + * + *

BreakIterator C API

+ * + * The BreakIterator C API defines methods for finding the location + * of boundaries in text. Pointer to a UBreakIterator maintain a + * current position and scan over text returning the index of characters + * where boundaries occur. + *

+ * Line boundary analysis determines where a text string can be broken + * when line-wrapping. The mechanism correctly handles punctuation and + * hyphenated words. + *

+ * Note: The locale keyword "lb" can be used to modify line break + * behavior according to the CSS level 3 line-break options, see + * . For example: + * "ja@lb=strict", "zh@lb=loose". + *

+ * Sentence boundary analysis allows selection with correct + * interpretation of periods within numbers and abbreviations, and + * trailing punctuation marks such as quotation marks and parentheses. + *

+ * Note: The locale keyword "ss" can be used to enable use of + * segmentation suppression data (preventing breaks in English after + * abbreviations such as "Mr." or "Est.", for example), as follows: + * "en@ss=standard". + *

+ * Word boundary analysis is used by search and replace functions, as + * well as within text editing applications that allow the user to + * select words with a double click. Word selection provides correct + * interpretation of punctuation marks within and following + * words. Characters that are not part of a word, such as symbols or + * punctuation marks, have word-breaks on both sides. + *

+ * Character boundary analysis identifies the boundaries of + * "Extended Grapheme Clusters", which are groupings of codepoints + * that should be treated as character-like units for many text operations. + * Please see Unicode Standard Annex #29, Unicode Text Segmentation, + * http://www.unicode.org/reports/tr29/ for additional information + * on grapheme clusters and guidelines on their use. + *

+ * Title boundary analysis locates all positions, + * typically starts of words, that should be set to Title Case + * when title casing the text. + *

+ * The text boundary positions are found according to the rules + * described in Unicode Standard Annex #29, Text Boundaries, and + * Unicode Standard Annex #14, Line Breaking Properties. These + * are available at http://www.unicode.org/reports/tr14/ and + * http://www.unicode.org/reports/tr29/. + *

+ * In addition to the plain C API defined in this header file, an + * object oriented C++ API with equivalent functionality is defined in the + * file brkiter.h. + *

+ * Code snippets illustrating the use of the Break Iterator APIs + * are available in the ICU User Guide, + * https://unicode-org.github.io/icu/userguide/boundaryanalysis/ + * and in the sample program icu/source/samples/break/break.cpp + */ + +/** The possible types of text boundaries. @stable ICU 2.0 */ +typedef enum UBreakIteratorType { + /** Character breaks @stable ICU 2.0 */ + UBRK_CHARACTER = 0, + /** Word breaks @stable ICU 2.0 */ + UBRK_WORD = 1, + /** Line breaks @stable ICU 2.0 */ + UBRK_LINE = 2, + /** Sentence breaks @stable ICU 2.0 */ + UBRK_SENTENCE = 3, + +} UBreakIteratorType; + +/** Value indicating all text boundaries have been returned. + * @stable ICU 2.0 + */ +#define UBRK_DONE ((int32_t) -1) + + +/** + * Enum constants for the word break tags returned by + * getRuleStatus(). A range of values is defined for each category of + * word, to allow for further subdivisions of a category in future releases. + * Applications should check for tag values falling within the range, rather + * than for single individual values. + * + * The numeric values of all of these constants are stable (will not change). + * + * @stable ICU 2.2 +*/ +typedef enum UWordBreak { + /** Tag value for "words" that do not fit into any of other categories. + * Includes spaces and most punctuation. */ + UBRK_WORD_NONE = 0, + /** Upper bound for tags for uncategorized words. */ + UBRK_WORD_NONE_LIMIT = 100, + /** Tag value for words that appear to be numbers, lower limit. */ + UBRK_WORD_NUMBER = 100, + /** Tag value for words that appear to be numbers, upper limit. */ + UBRK_WORD_NUMBER_LIMIT = 200, + /** Tag value for words that contain letters, excluding + * hiragana, katakana or ideographic characters, lower limit. */ + UBRK_WORD_LETTER = 200, + /** Tag value for words containing letters, upper limit */ + UBRK_WORD_LETTER_LIMIT = 300, + /** Tag value for words containing kana characters, lower limit */ + UBRK_WORD_KANA = 300, + /** Tag value for words containing kana characters, upper limit */ + UBRK_WORD_KANA_LIMIT = 400, + /** Tag value for words containing ideographic characters, lower limit */ + UBRK_WORD_IDEO = 400, + /** Tag value for words containing ideographic characters, upper limit */ + UBRK_WORD_IDEO_LIMIT = 500 +} UWordBreak; + +/** + * Enum constants for the line break tags returned by getRuleStatus(). + * A range of values is defined for each category of + * word, to allow for further subdivisions of a category in future releases. + * Applications should check for tag values falling within the range, rather + * than for single individual values. + * + * The numeric values of all of these constants are stable (will not change). + * + * @stable ICU 2.8 +*/ +typedef enum ULineBreakTag { + /** Tag value for soft line breaks, positions at which a line break + * is acceptable but not required */ + UBRK_LINE_SOFT = 0, + /** Upper bound for soft line breaks. */ + UBRK_LINE_SOFT_LIMIT = 100, + /** Tag value for a hard, or mandatory line break */ + UBRK_LINE_HARD = 100, + /** Upper bound for hard line breaks. */ + UBRK_LINE_HARD_LIMIT = 200 +} ULineBreakTag; + + + +/** + * Enum constants for the sentence break tags returned by getRuleStatus(). + * A range of values is defined for each category of + * sentence, to allow for further subdivisions of a category in future releases. + * Applications should check for tag values falling within the range, rather + * than for single individual values. + * + * The numeric values of all of these constants are stable (will not change). + * + * @stable ICU 2.8 +*/ +typedef enum USentenceBreakTag { + /** Tag value for for sentences ending with a sentence terminator + * ('.', '?', '!', etc.) character, possibly followed by a + * hard separator (CR, LF, PS, etc.) + */ + UBRK_SENTENCE_TERM = 0, + /** Upper bound for tags for sentences ended by sentence terminators. */ + UBRK_SENTENCE_TERM_LIMIT = 100, + /** Tag value for for sentences that do not contain an ending + * sentence terminator ('.', '?', '!', etc.) character, but + * are ended only by a hard separator (CR, LF, PS, etc.) or end of input. + */ + UBRK_SENTENCE_SEP = 100, + /** Upper bound for tags for sentences ended by a separator. */ + UBRK_SENTENCE_SEP_LIMIT = 200 + /** Tag value for a hard, or mandatory line break */ +} USentenceBreakTag; + + +/** + * Open a new UBreakIterator for locating text boundaries for a specified locale. + * A UBreakIterator may be used for detecting character, line, word, + * and sentence breaks in text. + * @param type The type of UBreakIterator to open: one of UBRK_CHARACTER, UBRK_WORD, + * UBRK_LINE, UBRK_SENTENCE + * @param locale The locale specifying the text-breaking conventions. Note that + * locale keys such as "lb" and "ss" may be used to modify text break behavior, + * see general discussion of BreakIterator C API. + * @param text The text to be iterated over. May be null, in which case ubrk_setText() is + * used to specify the text to be iterated. + * @param textLength The number of characters in text, or -1 if null-terminated. + * @param status A UErrorCode to receive any errors. + * @return A UBreakIterator for the specified locale. + * @see ubrk_openRules + * @stable ICU 2.0 + */ +U_CAPI UBreakIterator* U_EXPORT2 +ubrk_open(UBreakIteratorType type, + const char *locale, + const UChar *text, + int32_t textLength, + UErrorCode *status); + +/** + * Open a new UBreakIterator for locating text boundaries using specified breaking rules. + * The rule syntax is ... (TBD) + * @param rules A set of rules specifying the text breaking conventions. + * @param rulesLength The number of characters in rules, or -1 if null-terminated. + * @param text The text to be iterated over. May be null, in which case ubrk_setText() is + * used to specify the text to be iterated. + * @param textLength The number of characters in text, or -1 if null-terminated. + * @param parseErr Receives position and context information for any syntax errors + * detected while parsing the rules. + * @param status A UErrorCode to receive any errors. + * @return A UBreakIterator for the specified rules. + * @see ubrk_open + * @stable ICU 2.2 + */ +U_CAPI UBreakIterator* U_EXPORT2 +ubrk_openRules(const UChar *rules, + int32_t rulesLength, + const UChar *text, + int32_t textLength, + UParseError *parseErr, + UErrorCode *status); + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +/** + * Open a new UBreakIterator for locating text boundaries using precompiled binary rules. + * Opening a UBreakIterator this way is substantially faster than using ubrk_openRules. + * Binary rules may be obtained using ubrk_getBinaryRules. The compiled rules are not + * compatible across different major versions of ICU, nor across platforms of different + * endianness or different base character set family (ASCII vs EBCDIC). + * @param binaryRules A set of compiled binary rules specifying the text breaking + * conventions. Ownership of the storage containing the compiled + * rules remains with the caller of this function. The compiled + * rules must not be modified or deleted during the life of the + * break iterator. + * @param rulesLength The length of binaryRules in bytes; must be >= 0. + * @param text The text to be iterated over. May be null, in which case + * ubrk_setText() is used to specify the text to be iterated. + * @param textLength The number of characters in text, or -1 if null-terminated. + * @param status Pointer to UErrorCode to receive any errors. + * @return UBreakIterator for the specified rules. + * @see ubrk_getBinaryRules + * @stable ICU 59 + */ +U_CAPI UBreakIterator* U_EXPORT2 +ubrk_openBinaryRules(const uint8_t *binaryRules, int32_t rulesLength, + const UChar * text, int32_t textLength, + UErrorCode * status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +/** + * Thread safe cloning operation + * @param bi iterator to be cloned + * @param stackBuffer Deprecated functionality as of ICU 52, use NULL.
+ * user allocated space for the new clone. If NULL new memory will be allocated. + * If buffer is not large enough, new memory will be allocated. + * Clients can use the U_BRK_SAFECLONE_BUFFERSIZE. + * @param pBufferSize Deprecated functionality as of ICU 52, use NULL or 1.
+ * pointer to size of allocated space. + * If *pBufferSize == 0, a sufficient size for use in cloning will + * be returned ('pre-flighting') + * If *pBufferSize is not enough for a stack-based safe clone, + * new memory will be allocated. + * @param status to indicate whether the operation went on smoothly or there were errors + * An informational status value, U_SAFECLONE_ALLOCATED_ERROR, is used if any allocations were necessary. + * @return pointer to the new clone + * @stable ICU 2.0 + */ +U_CAPI UBreakIterator * U_EXPORT2 +ubrk_safeClone( + const UBreakIterator *bi, + void *stackBuffer, + int32_t *pBufferSize, + UErrorCode *status); +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Thread safe cloning operation + * @param bi iterator to be cloned + * @param status to indicate whether the operation went on smoothly or there were errors + * @return pointer to the new clone + * @stable ICU 69 + */ +U_CAPI UBreakIterator * U_EXPORT2 +ubrk_clone(const UBreakIterator *bi, + UErrorCode *status); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + +/** +* Close a UBreakIterator. +* Once closed, a UBreakIterator may no longer be used. +* @param bi The break iterator to close. + * @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +ubrk_close(UBreakIterator *bi); + + +/** + * Sets an existing iterator to point to a new piece of text. + * The break iterator retains a pointer to the supplied text. + * The caller must not modify or delete the text while the BreakIterator + * retains the reference. + * + * @param bi The iterator to use + * @param text The text to be set + * @param textLength The length of the text + * @param status The error code + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ubrk_setText(UBreakIterator* bi, + const UChar* text, + int32_t textLength, + UErrorCode* status); + + +/** + * Sets an existing iterator to point to a new piece of text. + * + * All index positions returned by break iterator functions are + * native indices from the UText. For example, when breaking UTF-8 + * encoded text, the break positions returned by \ref ubrk_next, \ref ubrk_previous, etc. + * will be UTF-8 string indices, not UTF-16 positions. + * + * @param bi The iterator to use + * @param text The text to be set. + * This function makes a shallow clone of the supplied UText. This means + * that the caller is free to immediately close or otherwise reuse the + * UText that was passed as a parameter, but that the underlying text itself + * must not be altered while being referenced by the break iterator. + * @param status The error code + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +ubrk_setUText(UBreakIterator* bi, + UText* text, + UErrorCode* status); + + + +/** + * Determine the most recently-returned text boundary. + * + * @param bi The break iterator to use. + * @return The character index most recently returned by \ref ubrk_next, \ref ubrk_previous, + * \ref ubrk_first, or \ref ubrk_last. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubrk_current(const UBreakIterator *bi); + +/** + * Advance the iterator to the boundary following the current boundary. + * + * @param bi The break iterator to use. + * @return The character index of the next text boundary, or UBRK_DONE + * if all text boundaries have been returned. + * @see ubrk_previous + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubrk_next(UBreakIterator *bi); + +/** + * Set the iterator position to the boundary preceding the current boundary. + * + * @param bi The break iterator to use. + * @return The character index of the preceding text boundary, or UBRK_DONE + * if all text boundaries have been returned. + * @see ubrk_next + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubrk_previous(UBreakIterator *bi); + +/** + * Set the iterator position to zero, the start of the text being scanned. + * @param bi The break iterator to use. + * @return The new iterator position (zero). + * @see ubrk_last + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubrk_first(UBreakIterator *bi); + +/** + * Set the iterator position to the index immediately beyond the last character in the text being scanned. + * This is not the same as the last character. + * @param bi The break iterator to use. + * @return The character offset immediately beyond the last character in the + * text being scanned. + * @see ubrk_first + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubrk_last(UBreakIterator *bi); + +/** + * Set the iterator position to the first boundary preceding the specified offset. + * The new position is always smaller than offset, or UBRK_DONE. + * @param bi The break iterator to use. + * @param offset The offset to begin scanning. + * @return The text boundary preceding offset, or UBRK_DONE. + * @see ubrk_following + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubrk_preceding(UBreakIterator *bi, + int32_t offset); + +/** + * Advance the iterator to the first boundary following the specified offset. + * The value returned is always greater than offset, or UBRK_DONE. + * @param bi The break iterator to use. + * @param offset The offset to begin scanning. + * @return The text boundary following offset, or UBRK_DONE. + * @see ubrk_preceding + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ubrk_following(UBreakIterator *bi, + int32_t offset); + +/** +* Get a locale for which text breaking information is available. +* A UBreakIterator in a locale returned by this function will perform the correct +* text breaking for the locale. +* @param index The index of the desired locale. +* @return A locale for which number text breaking information is available, or 0 if none. +* @see ubrk_countAvailable +* @stable ICU 2.0 +*/ +U_CAPI const char* U_EXPORT2 +ubrk_getAvailable(int32_t index); + +/** +* Determine how many locales have text breaking information available. +* This function is most useful as determining the loop ending condition for +* calls to \ref ubrk_getAvailable. +* @return The number of locales for which text breaking information is available. +* @see ubrk_getAvailable +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +ubrk_countAvailable(void); + + +/** +* Returns true if the specified position is a boundary position. As a side +* effect, leaves the iterator pointing to the first boundary position at +* or after "offset". +* @param bi The break iterator to use. +* @param offset the offset to check. +* @return True if "offset" is a boundary position. +* @stable ICU 2.0 +*/ +U_CAPI UBool U_EXPORT2 +ubrk_isBoundary(UBreakIterator *bi, int32_t offset); + +/** + * Return the status from the break rule that determined the most recently + * returned break position. The values appear in the rule source + * within brackets, {123}, for example. For rules that do not specify a + * status, a default value of 0 is returned. + *

+ * For word break iterators, the possible values are defined in enum UWordBreak. + * @stable ICU 2.2 + */ +U_CAPI int32_t U_EXPORT2 +ubrk_getRuleStatus(UBreakIterator *bi); + +/** + * Get the statuses from the break rules that determined the most recently + * returned break position. The values appear in the rule source + * within brackets, {123}, for example. The default status value for rules + * that do not explicitly provide one is zero. + *

+ * For word break iterators, the possible values are defined in enum UWordBreak. + * @param bi The break iterator to use + * @param fillInVec an array to be filled in with the status values. + * @param capacity the length of the supplied vector. A length of zero causes + * the function to return the number of status values, in the + * normal way, without attempting to store any values. + * @param status receives error codes. + * @return The number of rule status values from rules that determined + * the most recent boundary returned by the break iterator. + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +ubrk_getRuleStatusVec(UBreakIterator *bi, int32_t *fillInVec, int32_t capacity, UErrorCode *status); + +/** + * Return the locale of the break iterator. You can choose between the valid and + * the actual locale. + * @param bi break iterator + * @param type locale type (valid or actual) + * @param status error code + * @return locale string + * @stable ICU 2.8 + */ +U_CAPI const char* U_EXPORT2 +ubrk_getLocaleByType(const UBreakIterator *bi, ULocDataLocaleType type, UErrorCode* status); + +/** + * Set the subject text string upon which the break iterator is operating + * without changing any other aspect of the state. + * The new and previous text strings must have the same content. + * + * This function is intended for use in environments where ICU is operating on + * strings that may move around in memory. It provides a mechanism for notifying + * ICU that the string has been relocated, and providing a new UText to access the + * string in its new position. + * + * Note that the break iterator never copies the underlying text + * of a string being processed, but always operates directly on the original text + * provided by the user. Refreshing simply drops the references to the old text + * and replaces them with references to the new. + * + * Caution: this function is normally used only by very specialized + * system-level code. One example use case is with garbage collection + * that moves the text in memory. + * + * @param bi The break iterator. + * @param text The new (moved) text string. + * @param status Receives errors detected by this function. + * + * @stable ICU 49 + */ +U_CAPI void U_EXPORT2 +ubrk_refreshUText(UBreakIterator *bi, + UText *text, + UErrorCode *status); + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +/** + * Get a compiled binary version of the rules specifying the behavior of a UBreakIterator. + * The binary rules may be used with ubrk_openBinaryRules to open a new UBreakIterator + * more quickly than using ubrk_openRules. The compiled rules are not compatible across + * different major versions of ICU, nor across platforms of different endianness or + * different base character set family (ASCII vs EBCDIC). Supports preflighting (with + * binaryRules=NULL and rulesCapacity=0) to get the rules length without copying them to + * the binaryRules buffer. However, whether preflighting or not, if the actual length + * is greater than INT32_MAX, then the function returns 0 and sets *status to + * U_INDEX_OUTOFBOUNDS_ERROR. + + * @param bi The break iterator to use. + * @param binaryRules Buffer to receive the compiled binary rules; set to NULL for + * preflighting. + * @param rulesCapacity Capacity (in bytes) of the binaryRules buffer; set to 0 for + * preflighting. Must be >= 0. + * @param status Pointer to UErrorCode to receive any errors, such as + * U_BUFFER_OVERFLOW_ERROR, U_INDEX_OUTOFBOUNDS_ERROR, or + * U_ILLEGAL_ARGUMENT_ERROR. + * @return The actual byte length of the binary rules, if <= INT32_MAX; + * otherwise 0. If not preflighting and this is larger than + * rulesCapacity, *status will be set to an error. + * @see ubrk_openBinaryRules + * @stable ICU 59 + */ +U_CAPI int32_t U_EXPORT2 +ubrk_getBinaryRules(UBreakIterator *bi, + uint8_t * binaryRules, int32_t rulesCapacity, + UErrorCode * status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +#endif /* #if !UCONFIG_NO_BREAK_ITERATION */ + +#endif + +// icudataver.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* +* Copyright (C) 2009-2013, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +*/ + + +/** + * \file + * \brief C API: access to ICU Data Version number + */ + +#ifndef __ICU_DATA_VER_H__ +#define __ICU_DATA_VER_H__ + + +/** + * @stable ICU 49 + */ +#define U_ICU_VERSION_BUNDLE "icuver" + +/** + * @stable ICU 49 + */ +#define U_ICU_DATA_KEY "DataVersion" + +/** + * Retrieves the data version from icuver and stores it in dataVersionFillin. + * + * @param dataVersionFillin icuver data version information to be filled in if not-null + * @param status stores the error code from the calls to resource bundle + * + * @stable ICU 49 + */ +U_CAPI void U_EXPORT2 u_getDataVersion(UVersionInfo dataVersionFillin, UErrorCode *status); + +#endif + +// alphaindex.h +// No supported content + +// basictz.h +// No supported content + +// calendar.h +// No supported content + +// choicfmt.h +// No supported content + +// coleitr.h +// No supported content + +// coll.h +// No supported content + +// compactdecimalformat.h +// No supported content + +// curramt.h +// No supported content + +// currpinf.h +// No supported content + +// currunit.h +// No supported content + +// datefmt.h +// No supported content + +// dcfmtsym.h +// No supported content + +// decimfmt.h +// No supported content + +// displayoptions.h +// No supported content + +// dtfmtsym.h +// No supported content + +// dtitvfmt.h +// No supported content + +// dtitvinf.h +// No supported content + +// dtptngen.h +// No supported content + +// dtrule.h +// No supported content + +// fieldpos.h +// No supported content + +// fmtable.h +// No supported content + +// format.h +// No supported content + +// formattedvalue.h +// No supported content + +// fpositer.h +// No supported content + +// gender.h +// No supported content + +// gregocal.h +// No supported content + +// listformatter.h +// No supported content + +// measfmt.h +// No supported content + +// measunit.h +// No supported content + +// measure.h +// No supported content + +// msgfmt.h +// No supported content + +// nounit.h +// No supported content + +// numberformatter.h +// No supported content + +// numberrangeformatter.h +// No supported content + +// numfmt.h +// No supported content + +// numsys.h +// No supported content + +// plurfmt.h +// No supported content + +// plurrule.h +// No supported content + +// rbnf.h +// No supported content + +// rbtz.h +// No supported content + +// regex.h +// No supported content + +// region.h +// No supported content + +// reldatefmt.h +// No supported content + +// scientificnumberformatter.h +// No supported content + +// search.h +// No supported content + +// selfmt.h +// No supported content + +// simpletz.h +// No supported content + +// smpdtfmt.h +// No supported content + +// sortkey.h +// No supported content + +// stsearch.h +// No supported content + +// tblcoll.h +// No supported content + +// timezone.h +// No supported content + +// tmunit.h +// No supported content + +// tmutamt.h +// No supported content + +// tmutfmt.h +// No supported content + +// translit.h +// No supported content + +// tzfmt.h +// No supported content + +// tznames.h +// No supported content + +// tzrule.h +// No supported content + +// tztrans.h +// No supported content + +// ucal.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* + ******************************************************************************* + * Copyright (C) 1996-2015, International Business Machines Corporation and + * others. All Rights Reserved. + ******************************************************************************* + */ + +#ifndef UCAL_H +#define UCAL_H + + + +#if !UCONFIG_NO_FORMATTING + +/** + * \file + * \brief C API: Calendar + * + *

Calendar C API

+ * + * UCalendar C API is used for converting between a UDate object + * and a set of integer fields such as UCAL_YEAR, UCAL_MONTH, + * UCAL_DAY, UCAL_HOUR, and so on. + * (A UDate object represents a specific instant in + * time with millisecond precision. See UDate + * for information about the UDate .) + * + *

+ * Types of UCalendar interpret a UDate + * according to the rules of a specific calendar system. The C API + * provides the enum UCalendarType with UCAL_TRADITIONAL and + * UCAL_GREGORIAN. + *

+ * Like other locale-sensitive C API, calendar API provides a + * function, ucal_open(), which returns a pointer to + * UCalendar whose time fields have been initialized + * with the current date and time. We need to specify the type of + * calendar to be opened and the timezoneId. + * \htmlonly

\endhtmlonly + *
+ * \code
+ * UCalendar *caldef;
+ * UChar *tzId;
+ * UErrorCode status;
+ * tzId=(UChar*)malloc(sizeof(UChar) * (strlen("PST") +1) );
+ * u_uastrcpy(tzId, "PST");
+ * caldef=ucal_open(tzID, u_strlen(tzID), NULL, UCAL_TRADITIONAL, &status);
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * + *

+ * A UCalendar object can produce all the time field values + * needed to implement the date-time formatting for a particular language + * and calendar style (for example, Japanese-Gregorian, Japanese-Traditional). + * + *

+ * When computing a UDate from time fields, two special circumstances + * may arise: there may be insufficient information to compute the + * UDate (such as only year and month but no day in the month), + * or there may be inconsistent information (such as "Tuesday, July 15, 1996" + * -- July 15, 1996 is actually a Monday). + * + *

+ * Insufficient information. The calendar will use default + * information to specify the missing fields. This may vary by calendar; for + * the Gregorian calendar, the default for a field is the same as that of the + * start of the epoch: i.e., UCAL_YEAR = 1970, UCAL_MONTH = JANUARY, UCAL_DATE = 1, etc. + * + *

+ * Inconsistent information. If fields conflict, the calendar + * will give preference to fields set more recently. For example, when + * determining the day, the calendar will look for one of the following + * combinations of fields. The most recent combination, as determined by the + * most recently set single field, will be used. + * + * \htmlonly

\endhtmlonly + *
+ * \code
+ * UCAL_MONTH + UCAL_DAY_OF_MONTH
+ * UCAL_MONTH + UCAL_WEEK_OF_MONTH + UCAL_DAY_OF_WEEK
+ * UCAL_MONTH + UCAL_DAY_OF_WEEK_IN_MONTH + UCAL_DAY_OF_WEEK
+ * UCAL_DAY_OF_YEAR
+ * UCAL_DAY_OF_WEEK + UCAL_WEEK_OF_YEAR
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * + * For the time of day: + * + * \htmlonly
\endhtmlonly + *
+ * \code
+ * UCAL_HOUR_OF_DAY
+ * UCAL_AM_PM + UCAL_HOUR
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * + *

+ * Note: for some non-Gregorian calendars, different + * fields may be necessary for complete disambiguation. For example, a full + * specification of the historical Arabic astronomical calendar requires year, + * month, day-of-month and day-of-week in some cases. + * + *

+ * Note: There are certain possible ambiguities in + * interpretation of certain singular times, which are resolved in the + * following ways: + *

    + *
  1. 24:00:00 "belongs" to the following day. That is, + * 23:59 on Dec 31, 1969 < 24:00 on Jan 1, 1970 < 24:01:00 on Jan 1, 1970 + * + *
  2. Although historically not precise, midnight also belongs to "am", + * and noon belongs to "pm", so on the same day, + * 12:00 am (midnight) < 12:01 am, and 12:00 pm (noon) < 12:01 pm + *
+ * + *

+ * The date or time format strings are not part of the definition of a + * calendar, as those must be modifiable or overridable by the user at + * runtime. Use {@link icu::DateFormat} + * to format dates. + * + *

+ * Calendar provides an API for field "rolling", where fields + * can be incremented or decremented, but wrap around. For example, rolling the + * month up in the date December 12, 1996 results in + * January 12, 1996. + * + *

+ * Calendar also provides a date arithmetic function for + * adding the specified (signed) amount of time to a particular time field. + * For example, subtracting 5 days from the date September 12, 1996 + * results in September 7, 1996. + * + *

+ * The Japanese calendar uses a combination of era name and year number. + * When an emperor of Japan abdicates and a new emperor ascends the throne, + * a new era is declared and year number is reset to 1. Even if the date of + * abdication is scheduled ahead of time, the new era name might not be + * announced until just before the date. In such case, ICU4C may include + * a start date of future era without actual era name, but not enabled + * by default. ICU4C users who want to test the behavior of the future era + * can enable the tentative era by: + *

    + *
  • Environment variable ICU_ENABLE_TENTATIVE_ERA=true.
  • + *
+ * + * @stable ICU 2.0 + */ + +/** + * The time zone ID reserved for unknown time zone. + * It behaves like the GMT/UTC time zone but has the special ID "Etc/Unknown". + * @stable ICU 4.8 + */ +#define UCAL_UNKNOWN_ZONE_ID "Etc/Unknown" + +/** A calendar. + * For usage in C programs. + * @stable ICU 2.0 + */ +typedef void* UCalendar; + +/** Possible types of UCalendars + * @stable ICU 2.0 + */ +enum UCalendarType { + /** + * Despite the name, UCAL_TRADITIONAL designates the locale's default calendar, + * which may be the Gregorian calendar or some other calendar. + * @stable ICU 2.0 + */ + UCAL_TRADITIONAL, + /** + * A better name for UCAL_TRADITIONAL. + * @stable ICU 4.2 + */ + UCAL_DEFAULT = UCAL_TRADITIONAL, + /** + * Unambiguously designates the Gregorian calendar for the locale. + * @stable ICU 2.0 + */ + UCAL_GREGORIAN +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarType UCalendarType; + +/** Possible fields in a UCalendar + * @stable ICU 2.0 + */ +enum UCalendarDateFields { + /** + * Field number indicating the era, e.g., AD or BC in the Gregorian (Julian) calendar. + * This is a calendar-specific value. + * @stable ICU 2.6 + */ + UCAL_ERA, + + /** + * Field number indicating the year. This is a calendar-specific value. + * @stable ICU 2.6 + */ + UCAL_YEAR, + + /** + * Field number indicating the month. This is a calendar-specific value. + * The first month of the year is + * JANUARY; the last depends on the number of months in a year. + * @see #UCAL_JANUARY + * @see #UCAL_FEBRUARY + * @see #UCAL_MARCH + * @see #UCAL_APRIL + * @see #UCAL_MAY + * @see #UCAL_JUNE + * @see #UCAL_JULY + * @see #UCAL_AUGUST + * @see #UCAL_SEPTEMBER + * @see #UCAL_OCTOBER + * @see #UCAL_NOVEMBER + * @see #UCAL_DECEMBER + * @see #UCAL_UNDECIMBER + * @stable ICU 2.6 + */ + UCAL_MONTH, + + /** + * Field number indicating the + * week number within the current year. The first week of the year, as + * defined by UCAL_FIRST_DAY_OF_WEEK and UCAL_MINIMAL_DAYS_IN_FIRST_WEEK + * attributes, has value 1. Subclasses define + * the value of UCAL_WEEK_OF_YEAR for days before the first week of + * the year. + * @see ucal_getAttribute + * @see ucal_setAttribute + * @stable ICU 2.6 + */ + UCAL_WEEK_OF_YEAR, + + /** + * Field number indicating the + * week number within the current month. The first week of the month, as + * defined by UCAL_FIRST_DAY_OF_WEEK and UCAL_MINIMAL_DAYS_IN_FIRST_WEEK + * attributes, has value 1. Subclasses define + * the value of WEEK_OF_MONTH for days before the first week of + * the month. + * @see ucal_getAttribute + * @see ucal_setAttribute + * @see #UCAL_FIRST_DAY_OF_WEEK + * @see #UCAL_MINIMAL_DAYS_IN_FIRST_WEEK + * @stable ICU 2.6 + */ + UCAL_WEEK_OF_MONTH, + + /** + * Field number indicating the + * day of the month. This is a synonym for DAY_OF_MONTH. + * The first day of the month has value 1. + * @see #UCAL_DAY_OF_MONTH + * @stable ICU 2.6 + */ + UCAL_DATE, + + /** + * Field number indicating the day + * number within the current year. The first day of the year has value 1. + * @stable ICU 2.6 + */ + UCAL_DAY_OF_YEAR, + + /** + * Field number indicating the day + * of the week. This field takes values SUNDAY, + * MONDAY, TUESDAY, WEDNESDAY, + * THURSDAY, FRIDAY, and SATURDAY. + * @see #UCAL_SUNDAY + * @see #UCAL_MONDAY + * @see #UCAL_TUESDAY + * @see #UCAL_WEDNESDAY + * @see #UCAL_THURSDAY + * @see #UCAL_FRIDAY + * @see #UCAL_SATURDAY + * @stable ICU 2.6 + */ + UCAL_DAY_OF_WEEK, + + /** + * Field number indicating the + * ordinal number of the day of the week within the current month. Together + * with the DAY_OF_WEEK field, this uniquely specifies a day + * within a month. Unlike WEEK_OF_MONTH and + * WEEK_OF_YEAR, this field's value does not depend on + * getFirstDayOfWeek() or + * getMinimalDaysInFirstWeek(). DAY_OF_MONTH 1 + * through 7 always correspond to DAY_OF_WEEK_IN_MONTH + * 1; 8 through 15 correspond to + * DAY_OF_WEEK_IN_MONTH 2, and so on. + * DAY_OF_WEEK_IN_MONTH 0 indicates the week before + * DAY_OF_WEEK_IN_MONTH 1. Negative values count back from the + * end of the month, so the last Sunday of a month is specified as + * DAY_OF_WEEK = SUNDAY, DAY_OF_WEEK_IN_MONTH = -1. Because + * negative values count backward they will usually be aligned differently + * within the month than positive values. For example, if a month has 31 + * days, DAY_OF_WEEK_IN_MONTH -1 will overlap + * DAY_OF_WEEK_IN_MONTH 5 and the end of 4. + * @see #UCAL_DAY_OF_WEEK + * @see #UCAL_WEEK_OF_MONTH + * @stable ICU 2.6 + */ + UCAL_DAY_OF_WEEK_IN_MONTH, + + /** + * Field number indicating + * whether the HOUR is before or after noon. + * E.g., at 10:04:15.250 PM the AM_PM is PM. + * @see #UCAL_AM + * @see #UCAL_PM + * @see #UCAL_HOUR + * @stable ICU 2.6 + */ + UCAL_AM_PM, + + /** + * Field number indicating the + * hour of the morning or afternoon. HOUR is used for the 12-hour + * clock. + * E.g., at 10:04:15.250 PM the HOUR is 10. + * @see #UCAL_AM_PM + * @see #UCAL_HOUR_OF_DAY + * @stable ICU 2.6 + */ + UCAL_HOUR, + + /** + * Field number indicating the + * hour of the day. HOUR_OF_DAY is used for the 24-hour clock. + * E.g., at 10:04:15.250 PM the HOUR_OF_DAY is 22. + * @see #UCAL_HOUR + * @stable ICU 2.6 + */ + UCAL_HOUR_OF_DAY, + + /** + * Field number indicating the + * minute within the hour. + * E.g., at 10:04:15.250 PM the UCAL_MINUTE is 4. + * @stable ICU 2.6 + */ + UCAL_MINUTE, + + /** + * Field number indicating the + * second within the minute. + * E.g., at 10:04:15.250 PM the UCAL_SECOND is 15. + * @stable ICU 2.6 + */ + UCAL_SECOND, + + /** + * Field number indicating the + * millisecond within the second. + * E.g., at 10:04:15.250 PM the UCAL_MILLISECOND is 250. + * @stable ICU 2.6 + */ + UCAL_MILLISECOND, + + /** + * Field number indicating the + * raw offset from GMT in milliseconds. + * @stable ICU 2.6 + */ + UCAL_ZONE_OFFSET, + + /** + * Field number indicating the + * daylight savings offset in milliseconds. + * @stable ICU 2.6 + */ + UCAL_DST_OFFSET, + + /** + * Field number + * indicating the extended year corresponding to the + * UCAL_WEEK_OF_YEAR field. This may be one greater or less + * than the value of UCAL_EXTENDED_YEAR. + * @stable ICU 2.6 + */ + UCAL_YEAR_WOY, + + /** + * Field number + * indicating the localized day of week. This will be a value from 1 + * to 7 inclusive, with 1 being the localized first day of the week. + * @stable ICU 2.6 + */ + UCAL_DOW_LOCAL, + + /** + * Year of this calendar system, encompassing all supra-year fields. For example, + * in Gregorian/Julian calendars, positive Extended Year values indicate years AD, + * 1 BC = 0 extended, 2 BC = -1 extended, and so on. + * @stable ICU 2.8 + */ + UCAL_EXTENDED_YEAR, + + /** + * Field number + * indicating the modified Julian day number. This is different from + * the conventional Julian day number in two regards. First, it + * demarcates days at local zone midnight, rather than noon GMT. + * Second, it is a local number; that is, it depends on the local time + * zone. It can be thought of as a single number that encompasses all + * the date-related fields. + * @stable ICU 2.8 + */ + UCAL_JULIAN_DAY, + + /** + * Ranges from 0 to 23:59:59.999 (regardless of DST). This field behaves exactly + * like a composite of all time-related fields, not including the zone fields. As such, + * it also reflects discontinuities of those fields on DST transition days. On a day + * of DST onset, it will jump forward. On a day of DST cessation, it will jump + * backward. This reflects the fact that it must be combined with the DST_OFFSET field + * to obtain a unique local time value. + * @stable ICU 2.8 + */ + UCAL_MILLISECONDS_IN_DAY, + + /** + * Whether or not the current month is a leap month (0 or 1). See the Chinese calendar for + * an example of this. + */ + UCAL_IS_LEAP_MONTH, + + /* Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API, + * it is needed for layout of Calendar, DateFormat, and other objects */ +#ifndef U_FORCE_HIDE_DEPRECATED_API + /** + * One more than the highest normal UCalendarDateFields value. + * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. + */ + UCAL_FIELD_COUNT, +#endif // U_FORCE_HIDE_DEPRECATED_API + + /** + * Field number indicating the + * day of the month. This is a synonym for UCAL_DATE. + * The first day of the month has value 1. + * @see #UCAL_DATE + * Synonym for UCAL_DATE + * @stable ICU 2.8 + **/ + UCAL_DAY_OF_MONTH=UCAL_DATE +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarDateFields UCalendarDateFields; + /** + * Useful constant for days of week. Note: Calendar day-of-week is 1-based. Clients + * who create locale resources for the field of first-day-of-week should be aware of + * this. For instance, in US locale, first-day-of-week is set to 1, i.e., UCAL_SUNDAY. + */ +/** Possible days of the week in a UCalendar + * @stable ICU 2.0 + */ +enum UCalendarDaysOfWeek { + /** Sunday */ + UCAL_SUNDAY = 1, + /** Monday */ + UCAL_MONDAY, + /** Tuesday */ + UCAL_TUESDAY, + /** Wednesday */ + UCAL_WEDNESDAY, + /** Thursday */ + UCAL_THURSDAY, + /** Friday */ + UCAL_FRIDAY, + /** Saturday */ + UCAL_SATURDAY +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarDaysOfWeek UCalendarDaysOfWeek; + +/** Possible months in a UCalendar. Note: Calendar month is 0-based. + * @stable ICU 2.0 + */ +enum UCalendarMonths { + /** January */ + UCAL_JANUARY, + /** February */ + UCAL_FEBRUARY, + /** March */ + UCAL_MARCH, + /** April */ + UCAL_APRIL, + /** May */ + UCAL_MAY, + /** June */ + UCAL_JUNE, + /** July */ + UCAL_JULY, + /** August */ + UCAL_AUGUST, + /** September */ + UCAL_SEPTEMBER, + /** October */ + UCAL_OCTOBER, + /** November */ + UCAL_NOVEMBER, + /** December */ + UCAL_DECEMBER, + /** Value of the UCAL_MONTH field indicating the + * thirteenth month of the year. Although the Gregorian calendar + * does not use this value, lunar calendars do. + */ + UCAL_UNDECIMBER +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarMonths UCalendarMonths; + +/** Possible AM/PM values in a UCalendar + * @stable ICU 2.0 + */ +enum UCalendarAMPMs { + /** AM */ + UCAL_AM, + /** PM */ + UCAL_PM +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarAMPMs UCalendarAMPMs; + +/** + * System time zone type constants used by filtering zones + * in ucal_openTimeZoneIDEnumeration. + * @see ucal_openTimeZoneIDEnumeration + * @stable ICU 4.8 + */ +enum USystemTimeZoneType { + /** + * Any system zones. + * @stable ICU 4.8 + */ + UCAL_ZONE_TYPE_ANY, + /** + * Canonical system zones. + * @stable ICU 4.8 + */ + UCAL_ZONE_TYPE_CANONICAL, + /** + * Canonical system zones associated with actual locations. + * @stable ICU 4.8 + */ + UCAL_ZONE_TYPE_CANONICAL_LOCATION +}; + +/** @stable ICU 4.8 */ +typedef enum USystemTimeZoneType USystemTimeZoneType; + +/** + * Create an enumeration over system time zone IDs with the given + * filter conditions. + * @param zoneType The system time zone type. + * @param region The ISO 3166 two-letter country code or UN M.49 + * three-digit area code. When NULL, no filtering + * done by region. + * @param rawOffset An offset from GMT in milliseconds, ignoring the + * effect of daylight savings time, if any. When NULL, + * no filtering done by zone offset. + * @param ec A pointer to an UErrorCode to receive any errors + * @return an enumeration object that the caller must dispose of + * using enum_close(), or NULL upon failure. In case of failure, + * *ec will indicate the error. + * @stable ICU 4.8 + */ +U_CAPI UEnumeration* U_EXPORT2 +ucal_openTimeZoneIDEnumeration(USystemTimeZoneType zoneType, const char* region, + const int32_t* rawOffset, UErrorCode* ec); + +/** + * Create an enumeration over all time zones. + * + * @param ec input/output error code + * + * @return an enumeration object that the caller must dispose of using + * uenum_close(), or NULL upon failure. In case of failure *ec will + * indicate the error. + * + * @stable ICU 2.6 + */ +U_CAPI UEnumeration* U_EXPORT2 +ucal_openTimeZones(UErrorCode* ec); + +/** + * Create an enumeration over all time zones associated with the given + * country. Some zones are affiliated with no country (e.g., "UTC"); + * these may also be retrieved, as a group. + * + * @param country the ISO 3166 two-letter country code, or NULL to + * retrieve zones not affiliated with any country + * + * @param ec input/output error code + * + * @return an enumeration object that the caller must dispose of using + * uenum_close(), or NULL upon failure. In case of failure *ec will + * indicate the error. + * + * @stable ICU 2.6 + */ +U_CAPI UEnumeration* U_EXPORT2 +ucal_openCountryTimeZones(const char* country, UErrorCode* ec); + +/** + * Return the default time zone. The default is determined initially + * by querying the host operating system. If the host system detection + * routines fail, or if they specify a TimeZone or TimeZone offset + * which is not recognized, then the special TimeZone "Etc/Unknown" + * is returned. + * + * The default may be changed with `ucal_setDefaultTimeZone()` or with + * the C++ TimeZone API, `TimeZone::adoptDefault(TimeZone*)`. + * + * @param result A buffer to receive the result, or NULL + * + * @param resultCapacity The capacity of the result buffer + * + * @param ec input/output error code + * + * @return The result string length, not including the terminating + * null + * + * @see #UCAL_UNKNOWN_ZONE_ID + * + * @stable ICU 2.6 + */ +U_CAPI int32_t U_EXPORT2 +ucal_getDefaultTimeZone(UChar* result, int32_t resultCapacity, UErrorCode* ec); + +/** + * Set the default time zone. + * + * @param zoneID null-terminated time zone ID + * + * @param ec input/output error code + * + * @stable ICU 2.6 + */ +U_CAPI void U_EXPORT2 +ucal_setDefaultTimeZone(const UChar* zoneID, UErrorCode* ec); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Return the current host time zone. The host time zone is detected from + * the current host system configuration by querying the host operating + * system. If the host system detection routines fail, or if they specify + * a TimeZone or TimeZone offset which is not recognized, then the special + * TimeZone "Etc/Unknown" is returned. + * + * Note that host time zone and the ICU default time zone can be different. + * + * The ICU default time zone does not change once initialized unless modified + * by calling `ucal_setDefaultTimeZone()` or with the C++ TimeZone API, + * `TimeZone::adoptDefault(TimeZone*)`. + * + * If the host operating system configuration has changed since ICU has + * initialized then the returned value can be different than the ICU default + * time zone, even if the default has not changed. + * + *

This function is not thread safe.

+ * + * @param result A buffer to receive the result, or NULL + * @param resultCapacity The capacity of the result buffer + * @param ec input/output error code + * @return The result string length, not including the terminating + * null + * + * @see #UCAL_UNKNOWN_ZONE_ID + * + * @stable ICU 65 + */ +U_CAPI int32_t U_EXPORT2 +ucal_getHostTimeZone(UChar *result, int32_t resultCapacity, UErrorCode *ec); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * Return the amount of time in milliseconds that the clock is + * advanced during daylight savings time for the given time zone, or + * zero if the time zone does not observe daylight savings time. + * + * @param zoneID null-terminated time zone ID + * + * @param ec input/output error code + * + * @return the number of milliseconds the time is advanced with + * respect to standard time when the daylight savings rules are in + * effect. This is always a non-negative number, most commonly either + * 3,600,000 (one hour) or zero. + * + * @stable ICU 2.6 + */ +U_CAPI int32_t U_EXPORT2 +ucal_getDSTSavings(const UChar* zoneID, UErrorCode* ec); + +/** + * Get the current date and time. + * The value returned is represented as milliseconds from the epoch. + * @return The current date and time. + * @stable ICU 2.0 + */ +U_CAPI UDate U_EXPORT2 +ucal_getNow(void); + +/** + * Open a UCalendar. + * A UCalendar may be used to convert a millisecond value to a year, + * month, and day. + *

+ * Note: When unknown TimeZone ID is specified or if the TimeZone ID specified is "Etc/Unknown", + * the UCalendar returned by the function is initialized with GMT zone with TimeZone ID + * UCAL_UNKNOWN_ZONE_ID ("Etc/Unknown") without any errors/warnings. If you want + * to check if a TimeZone ID is valid prior to this function, use ucal_getCanonicalTimeZoneID. + * + * @param zoneID The desired TimeZone ID. If 0, use the default time zone. + * @param len The length of zoneID, or -1 if null-terminated. + * @param locale The desired locale + * @param type The type of UCalendar to open. This can be UCAL_GREGORIAN to open the Gregorian + * calendar for the locale, or UCAL_DEFAULT to open the default calendar for the locale (the + * default calendar may also be Gregorian). To open a specific non-Gregorian calendar for the + * locale, use uloc_setKeywordValue to set the value of the calendar keyword for the locale + * and then pass the locale to ucal_open with UCAL_DEFAULT as the type. + * @param status A pointer to an UErrorCode to receive any errors + * @return A pointer to a UCalendar, or 0 if an error occurred. + * @see #UCAL_UNKNOWN_ZONE_ID + * @stable ICU 2.0 + */ +U_CAPI UCalendar* U_EXPORT2 +ucal_open(const UChar* zoneID, + int32_t len, + const char* locale, + UCalendarType type, + UErrorCode* status); + +/** + * Close a UCalendar. + * Once closed, a UCalendar may no longer be used. + * @param cal The UCalendar to close. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_close(UCalendar *cal); + + +/** + * Open a copy of a UCalendar. + * This function performs a deep copy. + * @param cal The calendar to copy + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UCalendar identical to cal. + * @stable ICU 4.0 + */ +U_CAPI UCalendar* U_EXPORT2 +ucal_clone(const UCalendar* cal, + UErrorCode* status); + +/** + * Set the TimeZone used by a UCalendar. + * A UCalendar uses a timezone for converting from Greenwich time to local time. + * @param cal The UCalendar to set. + * @param zoneID The desired TimeZone ID. If 0, use the default time zone. + * @param len The length of zoneID, or -1 if null-terminated. + * @param status A pointer to an UErrorCode to receive any errors. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_setTimeZone(UCalendar* cal, + const UChar* zoneID, + int32_t len, + UErrorCode* status); + +/** + * Get the ID of the UCalendar's time zone. + * + * @param cal The UCalendar to query. + * @param result Receives the UCalendar's time zone ID. + * @param resultLength The maximum size of result. + * @param status Receives the status. + * @return The total buffer size needed; if greater than resultLength, the output was truncated. + * @stable ICU 51 + */ +U_CAPI int32_t U_EXPORT2 +ucal_getTimeZoneID(const UCalendar *cal, + UChar *result, + int32_t resultLength, + UErrorCode *status); + +/** + * Possible formats for a UCalendar's display name + * @stable ICU 2.0 + */ +enum UCalendarDisplayNameType { + /** Standard display name */ + UCAL_STANDARD, + /** Short standard display name */ + UCAL_SHORT_STANDARD, + /** Daylight savings display name */ + UCAL_DST, + /** Short daylight savings display name */ + UCAL_SHORT_DST +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarDisplayNameType UCalendarDisplayNameType; + +/** + * Get the display name for a UCalendar's TimeZone. + * A display name is suitable for presentation to a user. + * @param cal The UCalendar to query. + * @param type The desired display name format; one of UCAL_STANDARD, UCAL_SHORT_STANDARD, + * UCAL_DST, UCAL_SHORT_DST + * @param locale The desired locale for the display name. + * @param result A pointer to a buffer to receive the formatted number. + * @param resultLength The maximum size of result. + * @param status A pointer to an UErrorCode to receive any errors + * @return The total buffer size needed; if greater than resultLength, the output was truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucal_getTimeZoneDisplayName(const UCalendar* cal, + UCalendarDisplayNameType type, + const char* locale, + UChar* result, + int32_t resultLength, + UErrorCode* status); + +/** + * Determine if a UCalendar is currently in daylight savings time. + * Daylight savings time is not used in all parts of the world. + * @param cal The UCalendar to query. + * @param status A pointer to an UErrorCode to receive any errors + * @return true if cal is currently in daylight savings time, false otherwise + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +ucal_inDaylightTime(const UCalendar* cal, + UErrorCode* status ); + +/** + * Sets the GregorianCalendar change date. This is the point when the switch from + * Julian dates to Gregorian dates occurred. Default is 00:00:00 local time, October + * 15, 1582. Previous to this time and date will be Julian dates. + * + * This function works only for Gregorian calendars. If the UCalendar is not + * an instance of a Gregorian calendar, then a U_UNSUPPORTED_ERROR + * error code is set. + * + * @param cal The calendar object. + * @param date The given Gregorian cutover date. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * + * @see GregorianCalendar::setGregorianChange + * @see ucal_getGregorianChange + * @stable ICU 3.6 + */ +U_CAPI void U_EXPORT2 +ucal_setGregorianChange(UCalendar *cal, UDate date, UErrorCode *pErrorCode); + +/** + * Gets the Gregorian Calendar change date. This is the point when the switch from + * Julian dates to Gregorian dates occurred. Default is 00:00:00 local time, October + * 15, 1582. Previous to this time and date will be Julian dates. + * + * This function works only for Gregorian calendars. If the UCalendar is not + * an instance of a Gregorian calendar, then a U_UNSUPPORTED_ERROR + * error code is set. + * + * @param cal The calendar object. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The Gregorian cutover time for this calendar. + * + * @see GregorianCalendar::getGregorianChange + * @see ucal_setGregorianChange + * @stable ICU 3.6 + */ +U_CAPI UDate U_EXPORT2 +ucal_getGregorianChange(const UCalendar *cal, UErrorCode *pErrorCode); + +/** + * Types of UCalendar attributes + * @stable ICU 2.0 + */ +enum UCalendarAttribute { + /** + * Lenient parsing + * @stable ICU 2.0 + */ + UCAL_LENIENT, + /** + * First day of week + * @stable ICU 2.0 + */ + UCAL_FIRST_DAY_OF_WEEK, + /** + * Minimum number of days in first week + * @stable ICU 2.0 + */ + UCAL_MINIMAL_DAYS_IN_FIRST_WEEK, + /** + * The behavior for handling wall time repeating multiple times + * at negative time zone offset transitions + * @stable ICU 49 + */ + UCAL_REPEATED_WALL_TIME, + /** + * The behavior for handling skipped wall time at positive time + * zone offset transitions. + * @stable ICU 49 + */ + UCAL_SKIPPED_WALL_TIME +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarAttribute UCalendarAttribute; + +/** + * Options for handling ambiguous wall time at time zone + * offset transitions. + * @stable ICU 49 + */ +enum UCalendarWallTimeOption { + /** + * An ambiguous wall time to be interpreted as the latest. + * This option is valid for UCAL_REPEATED_WALL_TIME and + * UCAL_SKIPPED_WALL_TIME. + * @stable ICU 49 + */ + UCAL_WALLTIME_LAST, + /** + * An ambiguous wall time to be interpreted as the earliest. + * This option is valid for UCAL_REPEATED_WALL_TIME and + * UCAL_SKIPPED_WALL_TIME. + * @stable ICU 49 + */ + UCAL_WALLTIME_FIRST, + /** + * An ambiguous wall time to be interpreted as the next valid + * wall time. This option is valid for UCAL_SKIPPED_WALL_TIME. + * @stable ICU 49 + */ + UCAL_WALLTIME_NEXT_VALID +}; +/** @stable ICU 49 */ +typedef enum UCalendarWallTimeOption UCalendarWallTimeOption; + +/** + * Get a numeric attribute associated with a UCalendar. + * Numeric attributes include the first day of the week, or the minimal numbers + * of days in the first week of the month. + * @param cal The UCalendar to query. + * @param attr The desired attribute; one of UCAL_LENIENT, UCAL_FIRST_DAY_OF_WEEK, + * UCAL_MINIMAL_DAYS_IN_FIRST_WEEK, UCAL_REPEATED_WALL_TIME or UCAL_SKIPPED_WALL_TIME + * @return The value of attr. + * @see ucal_setAttribute + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucal_getAttribute(const UCalendar* cal, + UCalendarAttribute attr); + +/** + * Set a numeric attribute associated with a UCalendar. + * Numeric attributes include the first day of the week, or the minimal numbers + * of days in the first week of the month. + * @param cal The UCalendar to set. + * @param attr The desired attribute; one of UCAL_LENIENT, UCAL_FIRST_DAY_OF_WEEK, + * UCAL_MINIMAL_DAYS_IN_FIRST_WEEK, UCAL_REPEATED_WALL_TIME or UCAL_SKIPPED_WALL_TIME + * @param newValue The new value of attr. + * @see ucal_getAttribute + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_setAttribute(UCalendar* cal, + UCalendarAttribute attr, + int32_t newValue); + +/** + * Get a locale for which calendars are available. + * A UCalendar in a locale returned by this function will contain the correct + * day and month names for the locale. + * @param localeIndex The index of the desired locale. + * @return A locale for which calendars are available, or 0 if none. + * @see ucal_countAvailable + * @stable ICU 2.0 + */ +U_CAPI const char* U_EXPORT2 +ucal_getAvailable(int32_t localeIndex); + +/** + * Determine how many locales have calendars available. + * This function is most useful as determining the loop ending condition for + * calls to \ref ucal_getAvailable. + * @return The number of locales for which calendars are available. + * @see ucal_getAvailable + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucal_countAvailable(void); + +/** + * Get a UCalendar's current time in millis. + * The time is represented as milliseconds from the epoch. + * @param cal The UCalendar to query. + * @param status A pointer to an UErrorCode to receive any errors + * @return The calendar's current time in millis. + * @see ucal_setMillis + * @see ucal_setDate + * @see ucal_setDateTime + * @stable ICU 2.0 + */ +U_CAPI UDate U_EXPORT2 +ucal_getMillis(const UCalendar* cal, + UErrorCode* status); + +/** + * Set a UCalendar's current time in millis. + * The time is represented as milliseconds from the epoch. + * @param cal The UCalendar to set. + * @param dateTime The desired date and time. + * @param status A pointer to an UErrorCode to receive any errors + * @see ucal_getMillis + * @see ucal_setDate + * @see ucal_setDateTime + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_setMillis(UCalendar* cal, + UDate dateTime, + UErrorCode* status ); + +/** + * Set a UCalendar's current date. + * The date is represented as a series of 32-bit integers. + * @param cal The UCalendar to set. + * @param year The desired year. + * @param month The desired month; one of UCAL_JANUARY, UCAL_FEBRUARY, UCAL_MARCH, UCAL_APRIL, UCAL_MAY, + * UCAL_JUNE, UCAL_JULY, UCAL_AUGUST, UCAL_SEPTEMBER, UCAL_OCTOBER, UCAL_NOVEMBER, UCAL_DECEMBER, UCAL_UNDECIMBER + * @param date The desired day of the month. + * @param status A pointer to an UErrorCode to receive any errors + * @see ucal_getMillis + * @see ucal_setMillis + * @see ucal_setDateTime + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_setDate(UCalendar* cal, + int32_t year, + int32_t month, + int32_t date, + UErrorCode* status); + +/** + * Set a UCalendar's current date. + * The date is represented as a series of 32-bit integers. + * @param cal The UCalendar to set. + * @param year The desired year. + * @param month The desired month; one of UCAL_JANUARY, UCAL_FEBRUARY, UCAL_MARCH, UCAL_APRIL, UCAL_MAY, + * UCAL_JUNE, UCAL_JULY, UCAL_AUGUST, UCAL_SEPTEMBER, UCAL_OCTOBER, UCAL_NOVEMBER, UCAL_DECEMBER, UCAL_UNDECIMBER + * @param date The desired day of the month. + * @param hour The desired hour of day. + * @param minute The desired minute. + * @param second The desirec second. + * @param status A pointer to an UErrorCode to receive any errors + * @see ucal_getMillis + * @see ucal_setMillis + * @see ucal_setDate + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_setDateTime(UCalendar* cal, + int32_t year, + int32_t month, + int32_t date, + int32_t hour, + int32_t minute, + int32_t second, + UErrorCode* status); + +/** + * Returns true if two UCalendars are equivalent. Equivalent + * UCalendars will behave identically, but they may be set to + * different times. + * @param cal1 The first of the UCalendars to compare. + * @param cal2 The second of the UCalendars to compare. + * @return true if cal1 and cal2 are equivalent, false otherwise. + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +ucal_equivalentTo(const UCalendar* cal1, + const UCalendar* cal2); + +/** + * Add a specified signed amount to a particular field in a UCalendar. + * This can modify more significant fields in the calendar. + * Adding a positive value always means moving forward in time, so for the Gregorian calendar, + * starting with 100 BC and adding +1 to year results in 99 BC (even though this actually reduces + * the numeric value of the field itself). + * @param cal The UCalendar to which to add. + * @param field The field to which to add the signed value; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param amount The signed amount to add to field. If the amount causes the value + * to exceed to maximum or minimum values for that field, other fields are modified + * to preserve the magnitude of the change. + * @param status A pointer to an UErrorCode to receive any errors + * @see ucal_roll + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_add(UCalendar* cal, + UCalendarDateFields field, + int32_t amount, + UErrorCode* status); + +/** + * Add a specified signed amount to a particular field in a UCalendar. + * This will not modify more significant fields in the calendar. + * Rolling by a positive value always means moving forward in time (unless the limit of the + * field is reached, in which case it may pin or wrap), so for Gregorian calendar, + * starting with 100 BC and rolling the year by +1 results in 99 BC. + * When eras have a definite beginning and end (as in the Chinese calendar, or as in most eras in the + * Japanese calendar) then rolling the year past either limit of the era will cause the year to wrap around. + * When eras only have a limit at one end, then attempting to roll the year past that limit will result in + * pinning the year at that limit. Note that for most calendars in which era 0 years move forward in time + * (such as Buddhist, Hebrew, or Islamic), it is possible for add or roll to result in negative years for + * era 0 (that is the only way to represent years before the calendar epoch). + * @param cal The UCalendar to which to add. + * @param field The field to which to add the signed value; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param amount The signed amount to add to field. If the amount causes the value + * to exceed to maximum or minimum values for that field, the field is pinned to a permissible + * value. + * @param status A pointer to an UErrorCode to receive any errors + * @see ucal_add + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_roll(UCalendar* cal, + UCalendarDateFields field, + int32_t amount, + UErrorCode* status); + +/** + * Get the current value of a field from a UCalendar. + * All fields are represented as 32-bit integers. + * @param cal The UCalendar to query. + * @param field The desired field; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param status A pointer to an UErrorCode to receive any errors + * @return The value of the desired field. + * @see ucal_set + * @see ucal_isSet + * @see ucal_clearField + * @see ucal_clear + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucal_get(const UCalendar* cal, + UCalendarDateFields field, + UErrorCode* status ); + +/** + * Set the value of a field in a UCalendar. + * All fields are represented as 32-bit integers. + * @param cal The UCalendar to set. + * @param field The field to set; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param value The desired value of field. + * @see ucal_get + * @see ucal_isSet + * @see ucal_clearField + * @see ucal_clear + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_set(UCalendar* cal, + UCalendarDateFields field, + int32_t value); + +/** + * Determine if a field in a UCalendar is set. + * All fields are represented as 32-bit integers. + * @param cal The UCalendar to query. + * @param field The desired field; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @return true if field is set, false otherwise. + * @see ucal_get + * @see ucal_set + * @see ucal_clearField + * @see ucal_clear + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +ucal_isSet(const UCalendar* cal, + UCalendarDateFields field); + +/** + * Clear a field in a UCalendar. + * All fields are represented as 32-bit integers. + * @param cal The UCalendar containing the field to clear. + * @param field The field to clear; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @see ucal_get + * @see ucal_set + * @see ucal_isSet + * @see ucal_clear + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_clearField(UCalendar* cal, + UCalendarDateFields field); + +/** + * Clear all fields in a UCalendar. + * All fields are represented as 32-bit integers. + * @param calendar The UCalendar to clear. + * @see ucal_get + * @see ucal_set + * @see ucal_isSet + * @see ucal_clearField + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucal_clear(UCalendar* calendar); + +/** + * Possible limit values for a UCalendar + * @stable ICU 2.0 + */ +enum UCalendarLimitType { + /** Minimum value */ + UCAL_MINIMUM, + /** Maximum value */ + UCAL_MAXIMUM, + /** Greatest minimum value */ + UCAL_GREATEST_MINIMUM, + /** Leaest maximum value */ + UCAL_LEAST_MAXIMUM, + /** Actual minimum value */ + UCAL_ACTUAL_MINIMUM, + /** Actual maximum value */ + UCAL_ACTUAL_MAXIMUM +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarLimitType UCalendarLimitType; + +/** + * Determine a limit for a field in a UCalendar. + * A limit is a maximum or minimum value for a field. + * @param cal The UCalendar to query. + * @param field The desired field; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param type The desired critical point; one of UCAL_MINIMUM, UCAL_MAXIMUM, UCAL_GREATEST_MINIMUM, + * UCAL_LEAST_MAXIMUM, UCAL_ACTUAL_MINIMUM, UCAL_ACTUAL_MAXIMUM + * @param status A pointer to an UErrorCode to receive any errors. + * @return The requested value. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucal_getLimit(const UCalendar* cal, + UCalendarDateFields field, + UCalendarLimitType type, + UErrorCode* status); + +/** Get the locale for this calendar object. You can choose between valid and actual locale. + * @param cal The calendar object + * @param type type of the locale we're looking for (valid or actual) + * @param status error code for the operation + * @return the locale name + * @stable ICU 2.8 + */ +U_CAPI const char * U_EXPORT2 +ucal_getLocaleByType(const UCalendar *cal, ULocDataLocaleType type, UErrorCode* status); + +/** + * Returns the timezone data version currently used by ICU. + * @param status error code for the operation + * @return the version string, such as "2007f" + * @stable ICU 3.8 + */ +U_CAPI const char * U_EXPORT2 +ucal_getTZDataVersion(UErrorCode* status); + +/** + * Returns the canonical system timezone ID or the normalized + * custom time zone ID for the given time zone ID. + * @param id The input timezone ID to be canonicalized. + * @param len The length of id, or -1 if null-terminated. + * @param result The buffer receives the canonical system timezone ID + * or the custom timezone ID in normalized format. + * @param resultCapacity The capacity of the result buffer. + * @param isSystemID Receives if the given ID is a known system + * timezone ID. + * @param status Receives the status. When the given timezone ID + * is neither a known system time zone ID nor a + * valid custom timezone ID, U_ILLEGAL_ARGUMENT_ERROR + * is set. + * @return The result string length, not including the terminating + * null. + * @stable ICU 4.0 + */ +U_CAPI int32_t U_EXPORT2 +ucal_getCanonicalTimeZoneID(const UChar* id, int32_t len, + UChar* result, int32_t resultCapacity, UBool *isSystemID, UErrorCode* status); +/** + * Get the resource keyword value string designating the calendar type for the UCalendar. + * @param cal The UCalendar to query. + * @param status The error code for the operation. + * @return The resource keyword value string. + * @stable ICU 4.2 + */ +U_CAPI const char * U_EXPORT2 +ucal_getType(const UCalendar *cal, UErrorCode* status); + +/** + * Given a key and a locale, returns an array of string values in a preferred + * order that would make a difference. These are all and only those values where + * the open (creation) of the service with the locale formed from the input locale + * plus input keyword and that value has different behavior than creation with the + * input locale alone. + * @param key one of the keys supported by this service. For now, only + * "calendar" is supported. + * @param locale the locale + * @param commonlyUsed if set to true it will return only commonly used values + * with the given locale in preferred order. Otherwise, + * it will return all the available values for the locale. + * @param status error status + * @return a string enumeration over keyword values for the given key and the locale. + * @stable ICU 4.2 + */ +U_CAPI UEnumeration* U_EXPORT2 +ucal_getKeywordValuesForLocale(const char* key, + const char* locale, + UBool commonlyUsed, + UErrorCode* status); + + +/** Weekday types, as returned by ucal_getDayOfWeekType(). + * @stable ICU 4.4 + */ +enum UCalendarWeekdayType { + /** + * Designates a full weekday (no part of the day is included in the weekend). + * @stable ICU 4.4 + */ + UCAL_WEEKDAY, + /** + * Designates a full weekend day (the entire day is included in the weekend). + * @stable ICU 4.4 + */ + UCAL_WEEKEND, + /** + * Designates a day that starts as a weekday and transitions to the weekend. + * Call ucal_getWeekendTransition() to get the time of transition. + * @stable ICU 4.4 + */ + UCAL_WEEKEND_ONSET, + /** + * Designates a day that starts as the weekend and transitions to a weekday. + * Call ucal_getWeekendTransition() to get the time of transition. + * @stable ICU 4.4 + */ + UCAL_WEEKEND_CEASE +}; + +/** @stable ICU 4.4 */ +typedef enum UCalendarWeekdayType UCalendarWeekdayType; + +/** + * Returns whether the given day of the week is a weekday, a weekend day, + * or a day that transitions from one to the other, for the locale and + * calendar system associated with this UCalendar (the locale's region is + * often the most determinant factor). If a transition occurs at midnight, + * then the days before and after the transition will have the + * type UCAL_WEEKDAY or UCAL_WEEKEND. If a transition occurs at a time + * other than midnight, then the day of the transition will have + * the type UCAL_WEEKEND_ONSET or UCAL_WEEKEND_CEASE. In this case, the + * function ucal_getWeekendTransition() will return the point of + * transition. + * @param cal The UCalendar to query. + * @param dayOfWeek The day of the week whose type is desired (UCAL_SUNDAY..UCAL_SATURDAY). + * @param status The error code for the operation. + * @return The UCalendarWeekdayType for the day of the week. + * @stable ICU 4.4 + */ +U_CAPI UCalendarWeekdayType U_EXPORT2 +ucal_getDayOfWeekType(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode* status); + +/** + * Returns the time during the day at which the weekend begins or ends in + * this calendar system. If ucal_getDayOfWeekType() returns UCAL_WEEKEND_ONSET + * for the specified dayOfWeek, return the time at which the weekend begins. + * If ucal_getDayOfWeekType() returns UCAL_WEEKEND_CEASE for the specified dayOfWeek, + * return the time at which the weekend ends. If ucal_getDayOfWeekType() returns + * some other UCalendarWeekdayType for the specified dayOfWeek, is it an error condition + * (U_ILLEGAL_ARGUMENT_ERROR). + * @param cal The UCalendar to query. + * @param dayOfWeek The day of the week for which the weekend transition time is + * desired (UCAL_SUNDAY..UCAL_SATURDAY). + * @param status The error code for the operation. + * @return The milliseconds after midnight at which the weekend begins or ends. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +ucal_getWeekendTransition(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode *status); + +/** + * Returns true if the given UDate is in the weekend in + * this calendar system. + * @param cal The UCalendar to query. + * @param date The UDate in question. + * @param status The error code for the operation. + * @return true if the given UDate is in the weekend in + * this calendar system, false otherwise. + * @stable ICU 4.4 + */ +U_CAPI UBool U_EXPORT2 +ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status); + +/** + * Return the difference between the target time and the time this calendar object is currently set to. + * If the target time is after the current calendar setting, the the returned value will be positive. + * The field parameter specifies the units of the return value. For example, if field is UCAL_MONTH + * and ucal_getFieldDifference returns 3, then the target time is 3 to less than 4 months after the + * current calendar setting. + * + * As a side effect of this call, this calendar is advanced toward target by the given amount. That is, + * calling this function has the side effect of calling ucal_add on this calendar with the specified + * field and an amount equal to the return value from this function. + * + * A typical way of using this function is to call it first with the largest field of interest, then + * with progressively smaller fields. + * + * @param cal The UCalendar to compare and update. + * @param target The target date to compare to the current calendar setting. + * @param field The field to compare; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param status A pointer to an UErrorCode to receive any errors + * @return The date difference for the specified field. + * @stable ICU 4.8 + */ +U_CAPI int32_t U_EXPORT2 +ucal_getFieldDifference(UCalendar* cal, + UDate target, + UCalendarDateFields field, + UErrorCode* status); + +/** + * Time zone transition types for ucal_getTimeZoneTransitionDate + * @stable ICU 50 + */ +enum UTimeZoneTransitionType { + /** + * Get the next transition after the current date, + * i.e. excludes the current date + * @stable ICU 50 + */ + UCAL_TZ_TRANSITION_NEXT, + /** + * Get the next transition on or after the current date, + * i.e. may include the current date + * @stable ICU 50 + */ + UCAL_TZ_TRANSITION_NEXT_INCLUSIVE, + /** + * Get the previous transition before the current date, + * i.e. excludes the current date + * @stable ICU 50 + */ + UCAL_TZ_TRANSITION_PREVIOUS, + /** + * Get the previous transition on or before the current date, + * i.e. may include the current date + * @stable ICU 50 + */ + UCAL_TZ_TRANSITION_PREVIOUS_INCLUSIVE +}; + +typedef enum UTimeZoneTransitionType UTimeZoneTransitionType; /**< @stable ICU 50 */ + +/** +* Get the UDate for the next/previous time zone transition relative to +* the calendar's current date, in the time zone to which the calendar +* is currently set. If there is no known time zone transition of the +* requested type relative to the calendar's date, the function returns +* false. +* @param cal The UCalendar to query. +* @param type The type of transition desired. +* @param transition A pointer to a UDate to be set to the transition time. +* If the function returns false, the value set is unspecified. +* @param status A pointer to a UErrorCode to receive any errors. +* @return true if a valid transition time is set in *transition, false +* otherwise. +* @stable ICU 50 +*/ +U_CAPI UBool U_EXPORT2 +ucal_getTimeZoneTransitionDate(const UCalendar* cal, UTimeZoneTransitionType type, + UDate* transition, UErrorCode* status); + +/** +* Converts a system time zone ID to an equivalent Windows time zone ID. For example, +* Windows time zone ID "Pacific Standard Time" is returned for input "America/Los_Angeles". +* +*

There are system time zones that cannot be mapped to Windows zones. When the input +* system time zone ID is unknown or unmappable to a Windows time zone, then this +* function returns 0 as the result length, but the operation itself remains successful +* (no error status set on return). +* +*

This implementation utilizes +* Zone-Tzid mapping data. The mapping data is updated time to time. To get the latest changes, +* please read the ICU user guide section +* Updating the Time Zone Data. +* +* @param id A system time zone ID. +* @param len The length of id, or -1 if null-terminated. +* @param winid A buffer to receive a Windows time zone ID. +* @param winidCapacity The capacity of the result buffer winid. +* @param status Receives the status. +* @return The result string length, not including the terminating null. +* @see ucal_getTimeZoneIDForWindowsID +* +* @stable ICU 52 +*/ +U_CAPI int32_t U_EXPORT2 +ucal_getWindowsTimeZoneID(const UChar* id, int32_t len, + UChar* winid, int32_t winidCapacity, UErrorCode* status); + +/** +* Converts a Windows time zone ID to an equivalent system time zone ID +* for a region. For example, system time zone ID "America/Los_Angeles" is returned +* for input Windows ID "Pacific Standard Time" and region "US" (or null), +* "America/Vancouver" is returned for the same Windows ID "Pacific Standard Time" and +* region "CA". +* +*

Not all Windows time zones can be mapped to system time zones. When the input +* Windows time zone ID is unknown or unmappable to a system time zone, then this +* function returns 0 as the result length, but the operation itself remains successful +* (no error status set on return). +* +*

This implementation utilizes +* Zone-Tzid mapping data. The mapping data is updated time to time. To get the latest changes, +* please read the ICU user guide section +* Updating the Time Zone Data. +* +* @param winid A Windows time zone ID. +* @param len The length of winid, or -1 if null-terminated. +* @param region A null-terminated region code, or NULL if no regional preference. +* @param id A buffer to receive a system time zone ID. +* @param idCapacity The capacity of the result buffer id. +* @param status Receives the status. +* @return The result string length, not including the terminating null. +* @see ucal_getWindowsTimeZoneID +* +* @stable ICU 52 +*/ +U_CAPI int32_t U_EXPORT2 +ucal_getTimeZoneIDForWindowsID(const UChar* winid, int32_t len, const char* region, + UChar* id, int32_t idCapacity, UErrorCode* status); +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Options used by ucal_getTimeZoneOffsetFromLocal and BasicTimeZone::getOffsetFromLocal() + * to specify how to interpret an input time when it does not exist, or when it is ambiguous, + * around a time zone transition. + * @stable ICU 69 + */ +enum UTimeZoneLocalOption { + /** + * An input time is always interpreted as local time before + * a time zone transition. + * @stable ICU 69 + */ + UCAL_TZ_LOCAL_FORMER = 0x04, + /** + * An input time is always interpreted as local time after + * a time zone transition. + * @stable ICU 69 + */ + UCAL_TZ_LOCAL_LATTER = 0x0C, + /** + * An input time is interpreted as standard time when local + * time is switched to/from daylight saving time. When both + * sides of a time zone transition are standard time, + * or daylight saving time, the local time before the + * transition is used. + * @stable ICU 69 + */ + UCAL_TZ_LOCAL_STANDARD_FORMER = UCAL_TZ_LOCAL_FORMER | 0x01, + /** + * An input time is interpreted as standard time when local + * time is switched to/from daylight saving time. When both + * sides of a time zone transition are standard time, + * or daylight saving time, the local time after the + * transition is used. + * @stable ICU 69 + */ + UCAL_TZ_LOCAL_STANDARD_LATTER = UCAL_TZ_LOCAL_LATTER | 0x01, + /** + * An input time is interpreted as daylight saving time when + * local time is switched to/from standard time. When both + * sides of a time zone transition are standard time, + * or daylight saving time, the local time before the + * transition is used. + * @stable ICU 69 + */ + UCAL_TZ_LOCAL_DAYLIGHT_FORMER = UCAL_TZ_LOCAL_FORMER | 0x03, + /** + * An input time is interpreted as daylight saving time when + * local time is switched to/from standard time. When both + * sides of a time zone transition are standard time, + * or daylight saving time, the local time after the + * transition is used. + * @stable ICU 69 + */ + UCAL_TZ_LOCAL_DAYLIGHT_LATTER = UCAL_TZ_LOCAL_LATTER | 0x03, +}; +typedef enum UTimeZoneLocalOption UTimeZoneLocalOption; /**< @stable ICU 69 */ + +/** +* Returns the time zone raw and GMT offset for the given moment +* in time. Upon return, local-millis = GMT-millis + rawOffset + +* dstOffset. All computations are performed in the proleptic +* Gregorian calendar. +* +* @param cal The UCalendar which specify the local date and time value to query. +* @param nonExistingTimeOpt The option to indicate how to interpret the date and +* time in the calendar represent a local time that skipped at a positive time +* zone transitions (e.g. when the daylight saving time starts or the time zone +* offset is increased due to a time zone rule change). +* @param duplicatedTimeOpt The option to indicate how to interpret the date and +* time in the calendar represent a local time that repeating multiple times at a +* negative time zone transition (e.g. when the daylight saving time ends or the +* time zone offset is decreased due to a time zone rule change) +* @param rawOffset output parameter to receive the raw offset, that +* is, the offset not including DST adjustments. +* If the status is set to one of the error code, the value set is unspecified. +* @param dstOffset output parameter to receive the DST offset, +* that is, the offset to be added to `rawOffset' to obtain the +* total offset between local and GMT time. If DST is not in +* effect, this value is zero; otherwise it is a positive value, +* typically one hour. +* If the status is set to one of the error code, the value set is unspecified. +* @param status A pointer to a UErrorCode to receive any errors. +* @stable ICU 69 +*/ +U_CAPI void U_EXPORT2 +ucal_getTimeZoneOffsetFromLocal( + const UCalendar* cal, + UTimeZoneLocalOption nonExistingTimeOpt, + UTimeZoneLocalOption duplicatedTimeOpt, + int32_t* rawOffset, int32_t* dstOffset, UErrorCode* status); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// ucol.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* Copyright (c) 1996-2015, International Business Machines Corporation and others. +* All Rights Reserved. +******************************************************************************* +*/ + +#ifndef UCOL_H +#define UCOL_H + + +#if !UCONFIG_NO_COLLATION + + + +/** + * \file + * \brief C API: Collator + * + *

Collator C API

+ * + * The C API for Collator performs locale-sensitive + * string comparison. You use this service to build + * searching and sorting routines for natural language text. + *

+ * For more information about the collation service see + * the User Guide. + *

+ * Collation service provides correct sorting orders for most locales supported in ICU. + * If specific data for a locale is not available, the orders eventually falls back + * to the CLDR root sort order. + *

+ * Sort ordering may be customized by providing your own set of rules. For more on + * this subject see the + * Collation Customization section of the User Guide. + *

+ * @see UCollationResult + * @see UNormalizationMode + * @see UCollationStrength + * @see UCollationElements + */ + +/** A collator. +* For usage in C programs. +*/ +struct UCollator; +/** structure representing a collator object instance + * @stable ICU 2.0 + */ +typedef struct UCollator UCollator; + + +/** + * UCOL_LESS is returned if source string is compared to be less than target + * string in the ucol_strcoll() method. + * UCOL_EQUAL is returned if source string is compared to be equal to target + * string in the ucol_strcoll() method. + * UCOL_GREATER is returned if source string is compared to be greater than + * target string in the ucol_strcoll() method. + * @see ucol_strcoll() + *

+ * Possible values for a comparison result + * @stable ICU 2.0 + */ +typedef enum { + /** string a == string b */ + UCOL_EQUAL = 0, + /** string a > string b */ + UCOL_GREATER = 1, + /** string a < string b */ + UCOL_LESS = -1 +} UCollationResult ; + + +/** Enum containing attribute values for controling collation behavior. + * Here are all the allowable values. Not every attribute can take every value. The only + * universal value is UCOL_DEFAULT, which resets the attribute value to the predefined + * value for that locale + * @stable ICU 2.0 + */ +typedef enum { + /** accepted by most attributes */ + UCOL_DEFAULT = -1, + + /** Primary collation strength */ + UCOL_PRIMARY = 0, + /** Secondary collation strength */ + UCOL_SECONDARY = 1, + /** Tertiary collation strength */ + UCOL_TERTIARY = 2, + /** Default collation strength */ + UCOL_DEFAULT_STRENGTH = UCOL_TERTIARY, + UCOL_CE_STRENGTH_LIMIT, + /** Quaternary collation strength */ + UCOL_QUATERNARY=3, + /** Identical collation strength */ + UCOL_IDENTICAL=15, + UCOL_STRENGTH_LIMIT, + + /** Turn the feature off - works for UCOL_FRENCH_COLLATION, + UCOL_CASE_LEVEL, UCOL_HIRAGANA_QUATERNARY_MODE + & UCOL_DECOMPOSITION_MODE*/ + UCOL_OFF = 16, + /** Turn the feature on - works for UCOL_FRENCH_COLLATION, + UCOL_CASE_LEVEL, UCOL_HIRAGANA_QUATERNARY_MODE + & UCOL_DECOMPOSITION_MODE*/ + UCOL_ON = 17, + + /** Valid for UCOL_ALTERNATE_HANDLING. Alternate handling will be shifted */ + UCOL_SHIFTED = 20, + /** Valid for UCOL_ALTERNATE_HANDLING. Alternate handling will be non ignorable */ + UCOL_NON_IGNORABLE = 21, + + /** Valid for UCOL_CASE_FIRST - + lower case sorts before upper case */ + UCOL_LOWER_FIRST = 24, + /** upper case sorts before lower case */ + UCOL_UPPER_FIRST = 25, + +} UColAttributeValue; + +/** + * Enum containing the codes for reordering segments of the collation table that are not script + * codes. These reordering codes are to be used in conjunction with the script codes. + * @see ucol_getReorderCodes + * @see ucol_setReorderCodes + * @see ucol_getEquivalentReorderCodes + * @see UScriptCode + * @stable ICU 4.8 + */ + typedef enum { + /** + * A special reordering code that is used to specify the default + * reordering codes for a locale. + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_DEFAULT = -1, + /** + * A special reordering code that is used to specify no reordering codes. + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_NONE = USCRIPT_UNKNOWN, + /** + * A special reordering code that is used to specify all other codes used for + * reordering except for the codes lised as UColReorderCode values and those + * listed explicitly in a reordering. + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_OTHERS = USCRIPT_UNKNOWN, + /** + * Characters with the space property. + * This is equivalent to the rule value "space". + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_SPACE = 0x1000, + /** + * The first entry in the enumeration of reordering groups. This is intended for use in + * range checking and enumeration of the reorder codes. + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_FIRST = UCOL_REORDER_CODE_SPACE, + /** + * Characters with the punctuation property. + * This is equivalent to the rule value "punct". + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_PUNCTUATION = 0x1001, + /** + * Characters with the symbol property. + * This is equivalent to the rule value "symbol". + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_SYMBOL = 0x1002, + /** + * Characters with the currency property. + * This is equivalent to the rule value "currency". + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_CURRENCY = 0x1003, + /** + * Characters with the digit property. + * This is equivalent to the rule value "digit". + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_DIGIT = 0x1004, +} UColReorderCode; + +/** + * Base letter represents a primary difference. Set comparison + * level to UCOL_PRIMARY to ignore secondary and tertiary differences. + * Use this to set the strength of a Collator object. + * Example of primary difference, "abc" < "abd" + * + * Diacritical differences on the same base letter represent a secondary + * difference. Set comparison level to UCOL_SECONDARY to ignore tertiary + * differences. Use this to set the strength of a Collator object. + * Example of secondary difference, "ä" >> "a". + * + * Uppercase and lowercase versions of the same character represents a + * tertiary difference. Set comparison level to UCOL_TERTIARY to include + * all comparison differences. Use this to set the strength of a Collator + * object. + * Example of tertiary difference, "abc" <<< "ABC". + * + * Two characters are considered "identical" when they have the same + * unicode spellings. UCOL_IDENTICAL. + * For example, "ä" == "ä". + * + * UCollationStrength is also used to determine the strength of sort keys + * generated from UCollator objects + * These values can be now found in the UColAttributeValue enum. + * @stable ICU 2.0 + **/ +typedef UColAttributeValue UCollationStrength; + +/** Attributes that collation service understands. All the attributes can take UCOL_DEFAULT + * value, as well as the values specific to each one. + * @stable ICU 2.0 + */ +typedef enum { + /** Attribute for direction of secondary weights - used in Canadian French. + * Acceptable values are UCOL_ON, which results in secondary weights + * being considered backwards and UCOL_OFF which treats secondary + * weights in the order they appear. + * @stable ICU 2.0 + */ + UCOL_FRENCH_COLLATION, + /** Attribute for handling variable elements. + * Acceptable values are UCOL_NON_IGNORABLE (default) + * which treats all the codepoints with non-ignorable + * primary weights in the same way, + * and UCOL_SHIFTED which causes codepoints with primary + * weights that are equal or below the variable top value + * to be ignored on primary level and moved to the quaternary + * level. + * @stable ICU 2.0 + */ + UCOL_ALTERNATE_HANDLING, + /** Controls the ordering of upper and lower case letters. + * Acceptable values are UCOL_OFF (default), which orders + * upper and lower case letters in accordance to their tertiary + * weights, UCOL_UPPER_FIRST which forces upper case letters to + * sort before lower case letters, and UCOL_LOWER_FIRST which does + * the opposite. + * @stable ICU 2.0 + */ + UCOL_CASE_FIRST, + /** Controls whether an extra case level (positioned before the third + * level) is generated or not. Acceptable values are UCOL_OFF (default), + * when case level is not generated, and UCOL_ON which causes the case + * level to be generated. Contents of the case level are affected by + * the value of UCOL_CASE_FIRST attribute. A simple way to ignore + * accent differences in a string is to set the strength to UCOL_PRIMARY + * and enable case level. + * @stable ICU 2.0 + */ + UCOL_CASE_LEVEL, + /** Controls whether the normalization check and necessary normalizations + * are performed. When set to UCOL_OFF (default) no normalization check + * is performed. The correctness of the result is guaranteed only if the + * input data is in so-called FCD form (see users manual for more info). + * When set to UCOL_ON, an incremental check is performed to see whether + * the input data is in the FCD form. If the data is not in the FCD form, + * incremental NFD normalization is performed. + * @stable ICU 2.0 + */ + UCOL_NORMALIZATION_MODE, + /** An alias for UCOL_NORMALIZATION_MODE attribute. + * @stable ICU 2.0 + */ + UCOL_DECOMPOSITION_MODE = UCOL_NORMALIZATION_MODE, + /** The strength attribute. Can be either UCOL_PRIMARY, UCOL_SECONDARY, + * UCOL_TERTIARY, UCOL_QUATERNARY or UCOL_IDENTICAL. The usual strength + * for most locales (except Japanese) is tertiary. + * + * Quaternary strength + * is useful when combined with shifted setting for alternate handling + * attribute and for JIS X 4061 collation, when it is used to distinguish + * between Katakana and Hiragana. + * Otherwise, quaternary level + * is affected only by the number of non-ignorable code points in + * the string. + * + * Identical strength is rarely useful, as it amounts + * to codepoints of the NFD form of the string. + * @stable ICU 2.0 + */ + UCOL_STRENGTH, + /** + * When turned on, this attribute makes + * substrings of digits sort according to their numeric values. + * + * This is a way to get '100' to sort AFTER '2'. Note that the longest + * digit substring that can be treated as a single unit is + * 254 digits (not counting leading zeros). If a digit substring is + * longer than that, the digits beyond the limit will be treated as a + * separate digit substring. + * + * A "digit" in this sense is a code point with General_Category=Nd, + * which does not include circled numbers, roman numerals, etc. + * Only a contiguous digit substring is considered, that is, + * non-negative integers without separators. + * There is no support for plus/minus signs, decimals, exponents, etc. + * + * @stable ICU 2.8 + */ + UCOL_NUMERIC_COLLATION = UCOL_STRENGTH + 2, + + /* Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API, + * it is needed for layout of RuleBasedCollator object. */ +#ifndef U_FORCE_HIDE_DEPRECATED_API + /** + * One more than the highest normal UColAttribute value. + * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. + */ + UCOL_ATTRIBUTE_COUNT +#endif // U_FORCE_HIDE_DEPRECATED_API +} UColAttribute; + +/** Options for retrieving the rule string + * @stable ICU 2.0 + */ +typedef enum { + /** + * Retrieves the tailoring rules only. + * Same as calling the version of getRules() without UColRuleOption. + * @stable ICU 2.0 + */ + UCOL_TAILORING_ONLY, + /** + * Retrieves the "UCA rules" concatenated with the tailoring rules. + * The "UCA rules" are an approximation of the root collator's sort order. + * They are almost never used or useful at runtime and can be removed from the data. + * See https://unicode-org.github.io/icu/userguide/collation/customization#building-on-existing-locales + * @stable ICU 2.0 + */ + UCOL_FULL_RULES +} UColRuleOption ; + +/** + * Open a UCollator for comparing strings. + * + * For some languages, multiple collation types are available; + * for example, "de@collation=phonebook". + * Starting with ICU 54, collation attributes can be specified via locale keywords as well, + * in the old locale extension syntax ("el@colCaseFirst=upper") + * or in language tag syntax ("el-u-kf-upper"). + * See User Guide: Collation API. + * + * The UCollator pointer is used in all the calls to the Collation + * service. After finished, collator must be disposed of by calling + * {@link #ucol_close }. + * @param loc The locale containing the required collation rules. + * Special values for locales can be passed in - + * if NULL is passed for the locale, the default locale + * collation rules will be used. If empty string ("") or + * "root" are passed, the root collator will be returned. + * @param status A pointer to a UErrorCode to receive any errors + * @return A pointer to a UCollator, or 0 if an error occurred. + * @see ucol_openRules + * @see ucol_safeClone + * @see ucol_close + * @stable ICU 2.0 + */ +U_CAPI UCollator* U_EXPORT2 +ucol_open(const char *loc, UErrorCode *status); + +/** + * Produce a UCollator instance according to the rules supplied. + * The rules are used to change the default ordering, defined in the + * UCA in a process called tailoring. The resulting UCollator pointer + * can be used in the same way as the one obtained by {@link #ucol_strcoll }. + * @param rules A string describing the collation rules. For the syntax + * of the rules please see users guide. + * @param rulesLength The length of rules, or -1 if null-terminated. + * @param normalizationMode The normalization mode: One of + * UCOL_OFF (expect the text to not need normalization), + * UCOL_ON (normalize), or + * UCOL_DEFAULT (set the mode according to the rules) + * @param strength The default collation strength; one of UCOL_PRIMARY, UCOL_SECONDARY, + * UCOL_TERTIARY, UCOL_IDENTICAL,UCOL_DEFAULT_STRENGTH - can be also set in the rules. + * @param parseError A pointer to UParseError to recieve information about errors + * occurred during parsing. This argument can currently be set + * to NULL, but at users own risk. Please provide a real structure. + * @param status A pointer to a UErrorCode to receive any errors + * @return A pointer to a UCollator. It is not guaranteed that NULL be returned in case + * of error - please use status argument to check for errors. + * @see ucol_open + * @see ucol_safeClone + * @see ucol_close + * @stable ICU 2.0 + */ +U_CAPI UCollator* U_EXPORT2 +ucol_openRules( const UChar *rules, + int32_t rulesLength, + UColAttributeValue normalizationMode, + UCollationStrength strength, + UParseError *parseError, + UErrorCode *status); + + + +/** + * Get a set containing the expansions defined by the collator. The set includes + * both the root collator's expansions and the expansions defined by the tailoring + * @param coll collator + * @param contractions if not NULL, the set to hold the contractions + * @param expansions if not NULL, the set to hold the expansions + * @param addPrefixes add the prefix contextual elements to contractions + * @param status to hold the error code + * + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +ucol_getContractionsAndExpansions( const UCollator *coll, + USet *contractions, USet *expansions, + UBool addPrefixes, UErrorCode *status); + +/** + * Close a UCollator. + * Once closed, a UCollator should not be used. Every open collator should + * be closed. Otherwise, a memory leak will result. + * @param coll The UCollator to close. + * @see ucol_open + * @see ucol_openRules + * @see ucol_safeClone + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucol_close(UCollator *coll); + + +/** + * Compare two strings. + * The strings will be compared using the options already specified. + * @param coll The UCollator containing the comparison rules. + * @param source The source string. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param target The target string. + * @param targetLength The length of target, or -1 if null-terminated. + * @return The result of comparing the strings; one of UCOL_EQUAL, + * UCOL_GREATER, UCOL_LESS + * @see ucol_greater + * @see ucol_greaterOrEqual + * @see ucol_equal + * @stable ICU 2.0 + */ +U_CAPI UCollationResult U_EXPORT2 +ucol_strcoll( const UCollator *coll, + const UChar *source, + int32_t sourceLength, + const UChar *target, + int32_t targetLength); + +/** +* Compare two strings in UTF-8. +* The strings will be compared using the options already specified. +* Note: When input string contains malformed a UTF-8 byte sequence, +* this function treats these bytes as REPLACEMENT CHARACTER (U+FFFD). +* @param coll The UCollator containing the comparison rules. +* @param source The source UTF-8 string. +* @param sourceLength The length of source, or -1 if null-terminated. +* @param target The target UTF-8 string. +* @param targetLength The length of target, or -1 if null-terminated. +* @param status A pointer to a UErrorCode to receive any errors +* @return The result of comparing the strings; one of UCOL_EQUAL, +* UCOL_GREATER, UCOL_LESS +* @see ucol_greater +* @see ucol_greaterOrEqual +* @see ucol_equal +* @stable ICU 50 +*/ +U_CAPI UCollationResult U_EXPORT2 +ucol_strcollUTF8( + const UCollator *coll, + const char *source, + int32_t sourceLength, + const char *target, + int32_t targetLength, + UErrorCode *status); + +/** + * Determine if one string is greater than another. + * This function is equivalent to {@link #ucol_strcoll } == UCOL_GREATER + * @param coll The UCollator containing the comparison rules. + * @param source The source string. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param target The target string. + * @param targetLength The length of target, or -1 if null-terminated. + * @return true if source is greater than target, false otherwise. + * @see ucol_strcoll + * @see ucol_greaterOrEqual + * @see ucol_equal + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +ucol_greater(const UCollator *coll, + const UChar *source, int32_t sourceLength, + const UChar *target, int32_t targetLength); + +/** + * Determine if one string is greater than or equal to another. + * This function is equivalent to {@link #ucol_strcoll } != UCOL_LESS + * @param coll The UCollator containing the comparison rules. + * @param source The source string. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param target The target string. + * @param targetLength The length of target, or -1 if null-terminated. + * @return true if source is greater than or equal to target, false otherwise. + * @see ucol_strcoll + * @see ucol_greater + * @see ucol_equal + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +ucol_greaterOrEqual(const UCollator *coll, + const UChar *source, int32_t sourceLength, + const UChar *target, int32_t targetLength); + +/** + * Compare two strings for equality. + * This function is equivalent to {@link #ucol_strcoll } == UCOL_EQUAL + * @param coll The UCollator containing the comparison rules. + * @param source The source string. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param target The target string. + * @param targetLength The length of target, or -1 if null-terminated. + * @return true if source is equal to target, false otherwise + * @see ucol_strcoll + * @see ucol_greater + * @see ucol_greaterOrEqual + * @stable ICU 2.0 + */ +U_CAPI UBool U_EXPORT2 +ucol_equal(const UCollator *coll, + const UChar *source, int32_t sourceLength, + const UChar *target, int32_t targetLength); + +/** + * Compare two UTF-8 encoded strings. + * The strings will be compared using the options already specified. + * @param coll The UCollator containing the comparison rules. + * @param sIter The source string iterator. + * @param tIter The target string iterator. + * @return The result of comparing the strings; one of UCOL_EQUAL, + * UCOL_GREATER, UCOL_LESS + * @param status A pointer to a UErrorCode to receive any errors + * @see ucol_strcoll + * @stable ICU 2.6 + */ +U_CAPI UCollationResult U_EXPORT2 +ucol_strcollIter( const UCollator *coll, + UCharIterator *sIter, + UCharIterator *tIter, + UErrorCode *status); + +/** + * Get the collation strength used in a UCollator. + * The strength influences how strings are compared. + * @param coll The UCollator to query. + * @return The collation strength; one of UCOL_PRIMARY, UCOL_SECONDARY, + * UCOL_TERTIARY, UCOL_QUATERNARY, UCOL_IDENTICAL + * @see ucol_setStrength + * @stable ICU 2.0 + */ +U_CAPI UCollationStrength U_EXPORT2 +ucol_getStrength(const UCollator *coll); + +/** + * Set the collation strength used in a UCollator. + * The strength influences how strings are compared. + * @param coll The UCollator to set. + * @param strength The desired collation strength; one of UCOL_PRIMARY, + * UCOL_SECONDARY, UCOL_TERTIARY, UCOL_QUATERNARY, UCOL_IDENTICAL, UCOL_DEFAULT + * @see ucol_getStrength + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucol_setStrength(UCollator *coll, + UCollationStrength strength); + +/** + * Retrieves the reordering codes for this collator. + * These reordering codes are a combination of UScript codes and UColReorderCode entries. + * @param coll The UCollator to query. + * @param dest The array to fill with the script ordering. + * @param destCapacity The length of dest. If it is 0, then dest may be NULL and the function + * will only return the length of the result without writing any codes (pre-flighting). + * @param pErrorCode Must be a valid pointer to an error code value, which must not indicate a + * failure before the function call. + * @return The number of reordering codes written to the dest array. + * @see ucol_setReorderCodes + * @see ucol_getEquivalentReorderCodes + * @see UScriptCode + * @see UColReorderCode + * @stable ICU 4.8 + */ +U_CAPI int32_t U_EXPORT2 +ucol_getReorderCodes(const UCollator* coll, + int32_t* dest, + int32_t destCapacity, + UErrorCode *pErrorCode); +/** + * Sets the reordering codes for this collator. + * Collation reordering allows scripts and some other groups of characters + * to be moved relative to each other. This reordering is done on top of + * the DUCET/CLDR standard collation order. Reordering can specify groups to be placed + * at the start and/or the end of the collation order. These groups are specified using + * UScript codes and UColReorderCode entries. + * + *

By default, reordering codes specified for the start of the order are placed in the + * order given after several special non-script blocks. These special groups of characters + * are space, punctuation, symbol, currency, and digit. These special groups are represented with + * UColReorderCode entries. Script groups can be intermingled with + * these special non-script groups if those special groups are explicitly specified in the reordering. + * + *

The special code OTHERS stands for any script that is not explicitly + * mentioned in the list of reordering codes given. Anything that is after OTHERS + * will go at the very end of the reordering in the order given. + * + *

The special reorder code DEFAULT will reset the reordering for this collator + * to the default for this collator. The default reordering may be the DUCET/CLDR order or may be a reordering that + * was specified when this collator was created from resource data or from rules. The + * DEFAULT code must be the sole code supplied when it is used. + * If not, then U_ILLEGAL_ARGUMENT_ERROR will be set. + * + *

The special reorder code NONE will remove any reordering for this collator. + * The result of setting no reordering will be to have the DUCET/CLDR ordering used. The + * NONE code must be the sole code supplied when it is used. + * + * @param coll The UCollator to set. + * @param reorderCodes An array of script codes in the new order. This can be NULL if the + * length is also set to 0. An empty array will clear any reordering codes on the collator. + * @param reorderCodesLength The length of reorderCodes. + * @param pErrorCode Must be a valid pointer to an error code value, which must not indicate a + * failure before the function call. + * @see ucol_getReorderCodes + * @see ucol_getEquivalentReorderCodes + * @see UScriptCode + * @see UColReorderCode + * @stable ICU 4.8 + */ +U_CAPI void U_EXPORT2 +ucol_setReorderCodes(UCollator* coll, + const int32_t* reorderCodes, + int32_t reorderCodesLength, + UErrorCode *pErrorCode); + +/** + * Retrieves the reorder codes that are grouped with the given reorder code. Some reorder + * codes will be grouped and must reorder together. + * Beginning with ICU 55, scripts only reorder together if they are primary-equal, + * for example Hiragana and Katakana. + * + * @param reorderCode The reorder code to determine equivalence for. + * @param dest The array to fill with the script ordering. + * @param destCapacity The length of dest. If it is 0, then dest may be NULL and the function + * will only return the length of the result without writing any codes (pre-flighting). + * @param pErrorCode Must be a valid pointer to an error code value, which must not indicate + * a failure before the function call. + * @return The number of reordering codes written to the dest array. + * @see ucol_setReorderCodes + * @see ucol_getReorderCodes + * @see UScriptCode + * @see UColReorderCode + * @stable ICU 4.8 + */ +U_CAPI int32_t U_EXPORT2 +ucol_getEquivalentReorderCodes(int32_t reorderCode, + int32_t* dest, + int32_t destCapacity, + UErrorCode *pErrorCode); + +/** + * Get the display name for a UCollator. + * The display name is suitable for presentation to a user. + * @param objLoc The locale of the collator in question. + * @param dispLoc The locale for display. + * @param result A pointer to a buffer to receive the attribute. + * @param resultLength The maximum size of result. + * @param status A pointer to a UErrorCode to receive any errors + * @return The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucol_getDisplayName( const char *objLoc, + const char *dispLoc, + UChar *result, + int32_t resultLength, + UErrorCode *status); + +/** + * Get a locale for which collation rules are available. + * A UCollator in a locale returned by this function will perform the correct + * collation for the locale. + * @param localeIndex The index of the desired locale. + * @return A locale for which collation rules are available, or 0 if none. + * @see ucol_countAvailable + * @stable ICU 2.0 + */ +U_CAPI const char* U_EXPORT2 +ucol_getAvailable(int32_t localeIndex); + +/** + * Determine how many locales have collation rules available. + * This function is most useful as determining the loop ending condition for + * calls to {@link #ucol_getAvailable }. + * @return The number of locales for which collation rules are available. + * @see ucol_getAvailable + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucol_countAvailable(void); + +#if !UCONFIG_NO_SERVICE +/** + * Create a string enumerator of all locales for which a valid + * collator may be opened. + * @param status input-output error code + * @return a string enumeration over locale strings. The caller is + * responsible for closing the result. + * @stable ICU 3.0 + */ +U_CAPI UEnumeration* U_EXPORT2 +ucol_openAvailableLocales(UErrorCode *status); +#endif + +/** + * Create a string enumerator of all possible keywords that are relevant to + * collation. At this point, the only recognized keyword for this + * service is "collation". + * @param status input-output error code + * @return a string enumeration over locale strings. The caller is + * responsible for closing the result. + * @stable ICU 3.0 + */ +U_CAPI UEnumeration* U_EXPORT2 +ucol_getKeywords(UErrorCode *status); + +/** + * Given a keyword, create a string enumeration of all values + * for that keyword that are currently in use. + * @param keyword a particular keyword as enumerated by + * ucol_getKeywords. If any other keyword is passed in, *status is set + * to U_ILLEGAL_ARGUMENT_ERROR. + * @param status input-output error code + * @return a string enumeration over collation keyword values, or NULL + * upon error. The caller is responsible for closing the result. + * @stable ICU 3.0 + */ +U_CAPI UEnumeration* U_EXPORT2 +ucol_getKeywordValues(const char *keyword, UErrorCode *status); + +/** + * Given a key and a locale, returns an array of string values in a preferred + * order that would make a difference. These are all and only those values where + * the open (creation) of the service with the locale formed from the input locale + * plus input keyword and that value has different behavior than creation with the + * input locale alone. + * @param key one of the keys supported by this service. For now, only + * "collation" is supported. + * @param locale the locale + * @param commonlyUsed if set to true it will return only commonly used values + * with the given locale in preferred order. Otherwise, + * it will return all the available values for the locale. + * @param status error status + * @return a string enumeration over keyword values for the given key and the locale. + * @stable ICU 4.2 + */ +U_CAPI UEnumeration* U_EXPORT2 +ucol_getKeywordValuesForLocale(const char* key, + const char* locale, + UBool commonlyUsed, + UErrorCode* status); + +/** + * Return the functionally equivalent locale for the specified + * input locale, with respect to given keyword, for the + * collation service. If two different input locale + keyword + * combinations produce the same result locale, then collators + * instantiated for these two different input locales will behave + * equivalently. The converse is not always true; two collators + * may in fact be equivalent, but return different results, due to + * internal details. The return result has no other meaning than + * that stated above, and implies nothing as to the relationship + * between the two locales. This is intended for use by + * applications who wish to cache collators, or otherwise reuse + * collators when possible. The functional equivalent may change + * over time. For more information, please see the + * Locales and Services section of the ICU User Guide. + * @param result fillin for the functionally equivalent result locale + * @param resultCapacity capacity of the fillin buffer + * @param keyword a particular keyword as enumerated by + * ucol_getKeywords. + * @param locale the specified input locale + * @param isAvailable if non-NULL, pointer to a fillin parameter that + * on return indicates whether the specified input locale was 'available' + * to the collation service. A locale is defined as 'available' if it + * physically exists within the collation locale data. + * @param status pointer to input-output error code + * @return the actual buffer size needed for the locale. If greater + * than resultCapacity, the returned full name will be truncated and + * an error code will be returned. + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +ucol_getFunctionalEquivalent(char* result, int32_t resultCapacity, + const char* keyword, const char* locale, + UBool* isAvailable, UErrorCode* status); + +/** + * Get the collation tailoring rules from a UCollator. + * The rules will follow the rule syntax. + * @param coll The UCollator to query. + * @param length + * @return The collation tailoring rules. + * @stable ICU 2.0 + */ +U_CAPI const UChar* U_EXPORT2 +ucol_getRules( const UCollator *coll, + int32_t *length); + + + +/** + * Get a sort key for a string from a UCollator. + * Sort keys may be compared using strcmp. + * + * Note that sort keys are often less efficient than simply doing comparison. + * For more details, see the ICU User Guide. + * + * Like ICU functions that write to an output buffer, the buffer contents + * is undefined if the buffer capacity (resultLength parameter) is too small. + * Unlike ICU functions that write a string to an output buffer, + * the terminating zero byte is counted in the sort key length. + * @param coll The UCollator containing the collation rules. + * @param source The string to transform. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param result A pointer to a buffer to receive the attribute. + * @param resultLength The maximum size of result. + * @return The size needed to fully store the sort key. + * If there was an internal error generating the sort key, + * a zero value is returned. + * @see ucol_keyHashCode + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucol_getSortKey(const UCollator *coll, + const UChar *source, + int32_t sourceLength, + uint8_t *result, + int32_t resultLength); + + +/** Gets the next count bytes of a sort key. Caller needs + * to preserve state array between calls and to provide + * the same type of UCharIterator set with the same string. + * The destination buffer provided must be big enough to store + * the number of requested bytes. + * + * The generated sort key may or may not be compatible with + * sort keys generated using ucol_getSortKey(). + * @param coll The UCollator containing the collation rules. + * @param iter UCharIterator containing the string we need + * the sort key to be calculated for. + * @param state Opaque state of sortkey iteration. + * @param dest Buffer to hold the resulting sortkey part + * @param count number of sort key bytes required. + * @param status error code indicator. + * @return the actual number of bytes of a sortkey. It can be + * smaller than count if we have reached the end of + * the sort key. + * @stable ICU 2.6 + */ +U_CAPI int32_t U_EXPORT2 +ucol_nextSortKeyPart(const UCollator *coll, + UCharIterator *iter, + uint32_t state[2], + uint8_t *dest, int32_t count, + UErrorCode *status); + +/** enum that is taken by ucol_getBound API + * See below for explanation + * do not change the values assigned to the + * members of this enum. Underlying code + * depends on them having these numbers + * @stable ICU 2.0 + */ +typedef enum { + /** lower bound */ + UCOL_BOUND_LOWER = 0, + /** upper bound that will match strings of exact size */ + UCOL_BOUND_UPPER = 1, + /** upper bound that will match all the strings that have the same initial substring as the given string */ + UCOL_BOUND_UPPER_LONG = 2, +} UColBoundMode; + +/** + * Produce a bound for a given sortkey and a number of levels. + * Return value is always the number of bytes needed, regardless of + * whether the result buffer was big enough or even valid.
+ * Resulting bounds can be used to produce a range of strings that are + * between upper and lower bounds. For example, if bounds are produced + * for a sortkey of string "smith", strings between upper and lower + * bounds with one level would include "Smith", "SMITH", "sMiTh".
+ * There are two upper bounds that can be produced. If UCOL_BOUND_UPPER + * is produced, strings matched would be as above. However, if bound + * produced using UCOL_BOUND_UPPER_LONG is used, the above example will + * also match "Smithsonian" and similar.
+ * For more on usage, see example in cintltst/capitst.c in procedure + * TestBounds. + * Sort keys may be compared using strcmp. + * @param source The source sortkey. + * @param sourceLength The length of source, or -1 if null-terminated. + * (If an unmodified sortkey is passed, it is always null + * terminated). + * @param boundType Type of bound required. It can be UCOL_BOUND_LOWER, which + * produces a lower inclusive bound, UCOL_BOUND_UPPER, that + * produces upper bound that matches strings of the same length + * or UCOL_BOUND_UPPER_LONG that matches strings that have the + * same starting substring as the source string. + * @param noOfLevels Number of levels required in the resulting bound (for most + * uses, the recommended value is 1). See users guide for + * explanation on number of levels a sortkey can have. + * @param result A pointer to a buffer to receive the resulting sortkey. + * @param resultLength The maximum size of result. + * @param status Used for returning error code if something went wrong. If the + * number of levels requested is higher than the number of levels + * in the source key, a warning (U_SORT_KEY_TOO_SHORT_WARNING) is + * issued. + * @return The size needed to fully store the bound. + * @see ucol_keyHashCode + * @stable ICU 2.1 + */ +U_CAPI int32_t U_EXPORT2 +ucol_getBound(const uint8_t *source, + int32_t sourceLength, + UColBoundMode boundType, + uint32_t noOfLevels, + uint8_t *result, + int32_t resultLength, + UErrorCode *status); + +/** + * Gets the version information for a Collator. Version is currently + * an opaque 32-bit number which depends, among other things, on major + * versions of the collator tailoring and UCA. + * @param coll The UCollator to query. + * @param info the version # information, the result will be filled in + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucol_getVersion(const UCollator* coll, UVersionInfo info); + +/** + * Gets the UCA version information for a Collator. Version is the + * UCA version number (3.1.1, 4.0). + * @param coll The UCollator to query. + * @param info the version # information, the result will be filled in + * @stable ICU 2.8 + */ +U_CAPI void U_EXPORT2 +ucol_getUCAVersion(const UCollator* coll, UVersionInfo info); + +/** + * Merges two sort keys. The levels are merged with their corresponding counterparts + * (primaries with primaries, secondaries with secondaries etc.). Between the values + * from the same level a separator is inserted. + * + * This is useful, for example, for combining sort keys from first and last names + * to sort such pairs. + * See http://www.unicode.org/reports/tr10/#Merging_Sort_Keys + * + * The recommended way to achieve "merged" sorting is by + * concatenating strings with U+FFFE between them. + * The concatenation has the same sort order as the merged sort keys, + * but merge(getSortKey(str1), getSortKey(str2)) may differ from getSortKey(str1 + '\\uFFFE' + str2). + * Using strings with U+FFFE may yield shorter sort keys. + * + * For details about Sort Key Features see + * https://unicode-org.github.io/icu/userguide/collation/api#sort-key-features + * + * It is possible to merge multiple sort keys by consecutively merging + * another one with the intermediate result. + * + * The length of the merge result is the sum of the lengths of the input sort keys. + * + * Example (uncompressed): + *

191B1D 01 050505 01 910505 00
+ * 1F2123 01 050505 01 910505 00
+ * will be merged as + *
191B1D 02 1F2123 01 050505 02 050505 01 910505 02 910505 00
+ * + * If the destination buffer is not big enough, then its contents are undefined. + * If any of source lengths are zero or any of the source pointers are NULL/undefined, + * the result is of size zero. + * + * @param src1 the first sort key + * @param src1Length the length of the first sort key, including the zero byte at the end; + * can be -1 if the function is to find the length + * @param src2 the second sort key + * @param src2Length the length of the second sort key, including the zero byte at the end; + * can be -1 if the function is to find the length + * @param dest the buffer where the merged sort key is written, + * can be NULL if destCapacity==0 + * @param destCapacity the number of bytes in the dest buffer + * @return the length of the merged sort key, src1Length+src2Length; + * can be larger than destCapacity, or 0 if an error occurs (only for illegal arguments), + * in which cases the contents of dest is undefined + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucol_mergeSortkeys(const uint8_t *src1, int32_t src1Length, + const uint8_t *src2, int32_t src2Length, + uint8_t *dest, int32_t destCapacity); + +/** + * Universal attribute setter + * @param coll collator which attributes are to be changed + * @param attr attribute type + * @param value attribute value + * @param status to indicate whether the operation went on smoothly or there were errors + * @see UColAttribute + * @see UColAttributeValue + * @see ucol_getAttribute + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status); + +/** + * Universal attribute getter + * @param coll collator which attributes are to be changed + * @param attr attribute type + * @return attribute value + * @param status to indicate whether the operation went on smoothly or there were errors + * @see UColAttribute + * @see UColAttributeValue + * @see ucol_setAttribute + * @stable ICU 2.0 + */ +U_CAPI UColAttributeValue U_EXPORT2 +ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status); + +/** + * Sets the variable top to the top of the specified reordering group. + * The variable top determines the highest-sorting character + * which is affected by UCOL_ALTERNATE_HANDLING. + * If that attribute is set to UCOL_NON_IGNORABLE, then the variable top has no effect. + * @param coll the collator + * @param group one of UCOL_REORDER_CODE_SPACE, UCOL_REORDER_CODE_PUNCTUATION, + * UCOL_REORDER_CODE_SYMBOL, UCOL_REORDER_CODE_CURRENCY; + * or UCOL_REORDER_CODE_DEFAULT to restore the default max variable group + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @see ucol_getMaxVariable + * @stable ICU 53 + */ +U_CAPI void U_EXPORT2 +ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode); + +/** + * Returns the maximum reordering group whose characters are affected by UCOL_ALTERNATE_HANDLING. + * @param coll the collator + * @return the maximum variable reordering group. + * @see ucol_setMaxVariable + * @stable ICU 53 + */ +U_CAPI UColReorderCode U_EXPORT2 +ucol_getMaxVariable(const UCollator *coll); + + +/** + * Gets the variable top value of a Collator. + * @param coll collator which variable top needs to be retrieved + * @param status error code (not changed by function). If error code is set, + * the return value is undefined. + * @return the variable top primary weight + * @see ucol_getMaxVariable + * @see ucol_setVariableTop + * @see ucol_restoreVariableTop + * @stable ICU 2.0 + */ +U_CAPI uint32_t U_EXPORT2 ucol_getVariableTop(const UCollator *coll, UErrorCode *status); + +/** + * Thread safe cloning operation. The result is a clone of a given collator. + * @param coll collator to be cloned + * @param stackBuffer Deprecated functionality as of ICU 52, use NULL.
+ * user allocated space for the new clone. + * If NULL new memory will be allocated. + * If buffer is not large enough, new memory will be allocated. + * Clients can use the U_COL_SAFECLONE_BUFFERSIZE. + * @param pBufferSize Deprecated functionality as of ICU 52, use NULL or 1.
+ * pointer to size of allocated space. + * If *pBufferSize == 0, a sufficient size for use in cloning will + * be returned ('pre-flighting') + * If *pBufferSize is not enough for a stack-based safe clone, + * new memory will be allocated. + * @param status to indicate whether the operation went on smoothly or there were errors + * An informational status value, U_SAFECLONE_ALLOCATED_ERROR, is used if any + * allocations were necessary. + * @return pointer to the new clone + * @see ucol_open + * @see ucol_openRules + * @see ucol_close + * @stable ICU 2.0 + */ +U_CAPI UCollator* U_EXPORT2 +ucol_safeClone(const UCollator *coll, + void *stackBuffer, + int32_t *pBufferSize, + UErrorCode *status); +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Thread safe cloning operation. The result is a clone of a given collator. + * @param coll collator to be cloned + * @param status to indicate whether the operation went on smoothly or there were errors + * @return pointer to the new clone + * @see ucol_open + * @see ucol_openRules + * @see ucol_close + * @stable ICU 71 + */ +U_CAPI UCollator* U_EXPORT2 ucol_clone(const UCollator *coll, UErrorCode *status); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + +/** + * Returns current rules. Delta defines whether full rules are returned or just the tailoring. + * Returns number of UChars needed to store rules. If buffer is NULL or bufferLen is not enough + * to store rules, will store up to available space. + * + * ucol_getRules() should normally be used instead. + * See https://unicode-org.github.io/icu/userguide/collation/customization#building-on-existing-locales + * @param coll collator to get the rules from + * @param delta one of UCOL_TAILORING_ONLY, UCOL_FULL_RULES. + * @param buffer buffer to store the result in. If NULL, you'll get no rules. + * @param bufferLen length of buffer to store rules in. If less than needed you'll get only the part that fits in. + * @return current rules + * @stable ICU 2.0 + * @see UCOL_FULL_RULES + */ +U_CAPI int32_t U_EXPORT2 +ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen); + + +/** + * gets the locale name of the collator. If the collator + * is instantiated from the rules, then this function returns + * NULL. + * @param coll The UCollator for which the locale is needed + * @param type You can choose between requested, valid and actual + * locale. For description see the definition of + * ULocDataLocaleType in uloc.h + * @param status error code of the operation + * @return real locale name from which the collation data comes. + * If the collator was instantiated from rules, returns + * NULL. + * @stable ICU 2.8 + */ +U_CAPI const char * U_EXPORT2 +ucol_getLocaleByType(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status); + +/** + * Get a Unicode set that contains all the characters and sequences tailored in + * this collator. The result must be disposed of by using uset_close. + * @param coll The UCollator for which we want to get tailored chars + * @param status error code of the operation + * @return a pointer to newly created USet. Must be be disposed by using uset_close + * @see ucol_openRules + * @see uset_close + * @stable ICU 2.4 + */ +U_CAPI USet * U_EXPORT2 +ucol_getTailoredSet(const UCollator *coll, UErrorCode *status); + + +/** Creates a binary image of a collator. This binary image can be stored and + * later used to instantiate a collator using ucol_openBinary. + * This API supports preflighting. + * @param coll Collator + * @param buffer a fill-in buffer to receive the binary image + * @param capacity capacity of the destination buffer + * @param status for catching errors + * @return size of the image + * @see ucol_openBinary + * @stable ICU 3.2 + */ +U_CAPI int32_t U_EXPORT2 +ucol_cloneBinary(const UCollator *coll, + uint8_t *buffer, int32_t capacity, + UErrorCode *status); + +/** Opens a collator from a collator binary image created using + * ucol_cloneBinary. Binary image used in instantiation of the + * collator remains owned by the user and should stay around for + * the lifetime of the collator. The API also takes a base collator + * which must be the root collator. + * @param bin binary image owned by the user and required through the + * lifetime of the collator + * @param length size of the image. If negative, the API will try to + * figure out the length of the image + * @param base Base collator, for lookup of untailored characters. + * Must be the root collator, must not be NULL. + * The base is required to be present through the lifetime of the collator. + * @param status for catching errors + * @return newly created collator + * @see ucol_cloneBinary + * @stable ICU 3.2 + */ +U_CAPI UCollator* U_EXPORT2 +ucol_openBinary(const uint8_t *bin, int32_t length, + const UCollator *base, + UErrorCode *status); + + +#endif /* #if !UCONFIG_NO_COLLATION */ + +#endif + +// ucoleitr.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* Copyright (C) 2001-2014, International Business Machines +* Corporation and others. All Rights Reserved. +******************************************************************************* +* +* File ucoleitr.h +* +* Modification History: +* +* Date Name Description +* 02/15/2001 synwee Modified all methods to process its own function +* instead of calling the equivalent c++ api (coleitr.h) +*******************************************************************************/ + +#ifndef UCOLEITR_H +#define UCOLEITR_H + + +#if !UCONFIG_NO_COLLATION + +/** + * This indicates an error has occurred during processing or if no more CEs is + * to be returned. + * @stable ICU 2.0 + */ +#define UCOL_NULLORDER ((int32_t)0xFFFFFFFF) + + +/** + * The UCollationElements struct. + * For usage in C programs. + * @stable ICU 2.0 + */ +typedef struct UCollationElements UCollationElements; + +/** + * \file + * \brief C API: UCollationElements + * + * The UCollationElements API is used as an iterator to walk through each + * character of an international string. Use the iterator to return the + * ordering priority of the positioned character. The ordering priority of a + * character, which we refer to as a key, defines how a character is collated + * in the given collation object. + * For example, consider the following in Slovak and in traditional Spanish collation: + *
+ * .       "ca" -> the first key is key('c') and second key is key('a').
+ * .       "cha" -> the first key is key('ch') and second key is key('a').
+ * 
+ * And in German phonebook collation, + *
+ * .       "b"-> the first key is key('a'), the second key is key('e'), and
+ * .       the third key is key('b').
+ * 
+ *

Example of the iterator usage: (without error checking) + *

+ * .  void CollationElementIterator_Example()
+ * .  {
+ * .      UChar *s;
+ * .      t_int32 order, primaryOrder;
+ * .      UCollationElements *c;
+ * .      UCollatorOld *coll;
+ * .      UErrorCode success = U_ZERO_ERROR;
+ * .      str=(UChar*)malloc(sizeof(UChar) * (strlen("This is a test")+1) );
+ * .      u_uastrcpy(str, "This is a test");
+ * .      coll = ucol_open(NULL, &success);
+ * .      c = ucol_openElements(coll, str, u_strlen(str), &status);
+ * .      order = ucol_next(c, &success);
+ * .      ucol_reset(c);
+ * .      order = ucol_prev(c, &success);
+ * .      free(str);
+ * .      ucol_close(coll);
+ * .      ucol_closeElements(c);
+ * .  }
+ * 
+ *

+ * ucol_next() returns the collation order of the next. + * ucol_prev() returns the collation order of the previous character. + * The Collation Element Iterator moves only in one direction between calls to + * ucol_reset. That is, ucol_next() and ucol_prev can not be inter-used. + * Whenever ucol_prev is to be called after ucol_next() or vice versa, + * ucol_reset has to be called first to reset the status, shifting pointers to + * either the end or the start of the string. Hence at the next call of + * ucol_prev or ucol_next, the first or last collation order will be returned. + * If a change of direction is done without a ucol_reset, the result is + * undefined. + * The result of a forward iterate (ucol_next) and reversed result of the + * backward iterate (ucol_prev) on the same string are equivalent, if + * collation orders with the value 0 are ignored. + * Character based on the comparison level of the collator. A collation order + * consists of primary order, secondary order and tertiary order. The data + * type of the collation order is int32_t. + * + * @see UCollator + */ + +/** + * Open the collation elements for a string. + * + * The UCollationElements retains a pointer to the supplied text. + * The caller must not modify or delete the text while the UCollationElements + * object is used to iterate over this text. + * + * @param coll The collator containing the desired collation rules. + * @param text The text to iterate over. + * @param textLength The number of characters in text, or -1 if null-terminated + * @param status A pointer to a UErrorCode to receive any errors. + * @return a struct containing collation element information + * @stable ICU 2.0 + */ +U_CAPI UCollationElements* U_EXPORT2 +ucol_openElements(const UCollator *coll, + const UChar *text, + int32_t textLength, + UErrorCode *status); + +/** + * get a hash code for a key... Not very useful! + * @param key the given key. + * @param length the size of the key array. + * @return the hash code. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucol_keyHashCode(const uint8_t* key, int32_t length); + +/** + * Close a UCollationElements. + * Once closed, a UCollationElements may no longer be used. + * @param elems The UCollationElements to close. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucol_closeElements(UCollationElements *elems); + +/** + * Reset the collation elements to their initial state. + * This will move the 'cursor' to the beginning of the text. + * Property settings for collation will be reset to the current status. + * @param elems The UCollationElements to reset. + * @see ucol_next + * @see ucol_previous + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucol_reset(UCollationElements *elems); + +/** + * Get the ordering priority of the next collation element in the text. + * A single character may contain more than one collation element. + * @param elems The UCollationElements containing the text. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The next collation elements ordering, otherwise returns UCOL_NULLORDER + * if an error has occurred or if the end of string has been reached + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucol_next(UCollationElements *elems, UErrorCode *status); + +/** + * Get the ordering priority of the previous collation element in the text. + * A single character may contain more than one collation element. + * Note that internally a stack is used to store buffered collation elements. + * @param elems The UCollationElements containing the text. + * @param status A pointer to a UErrorCode to receive any errors. Notably + * a U_BUFFER_OVERFLOW_ERROR is returned if the internal stack + * buffer has been exhausted. + * @return The previous collation elements ordering, otherwise returns + * UCOL_NULLORDER if an error has occurred or if the start of string has + * been reached. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucol_previous(UCollationElements *elems, UErrorCode *status); + +/** + * Get the maximum length of any expansion sequences that end with the + * specified comparison order. + * This is useful for .... ? + * @param elems The UCollationElements containing the text. + * @param order A collation order returned by previous or next. + * @return maximum size of the expansion sequences ending with the collation + * element or 1 if collation element does not occur at the end of any + * expansion sequence + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucol_getMaxExpansion(const UCollationElements *elems, int32_t order); + +/** + * Set the text containing the collation elements. + * Property settings for collation will remain the same. + * In order to reset the iterator to the current collation property settings, + * the API reset() has to be called. + * + * The UCollationElements retains a pointer to the supplied text. + * The caller must not modify or delete the text while the UCollationElements + * object is used to iterate over this text. + * + * @param elems The UCollationElements to set. + * @param text The source text containing the collation elements. + * @param textLength The length of text, or -1 if null-terminated. + * @param status A pointer to a UErrorCode to receive any errors. + * @see ucol_getText + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucol_setText( UCollationElements *elems, + const UChar *text, + int32_t textLength, + UErrorCode *status); + +/** + * Get the offset of the current source character. + * This is an offset into the text of the character containing the current + * collation elements. + * @param elems The UCollationElements to query. + * @return The offset of the current source character. + * @see ucol_setOffset + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +ucol_getOffset(const UCollationElements *elems); + +/** + * Set the offset of the current source character. + * This is an offset into the text of the character to be processed. + * Property settings for collation will remain the same. + * In order to reset the iterator to the current collation property settings, + * the API reset() has to be called. + * @param elems The UCollationElements to set. + * @param offset The desired character offset. + * @param status A pointer to a UErrorCode to receive any errors. + * @see ucol_getOffset + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +ucol_setOffset(UCollationElements *elems, + int32_t offset, + UErrorCode *status); + +/** +* Get the primary order of a collation order. +* @param order the collation order +* @return the primary order of a collation order. +* @stable ICU 2.6 +*/ +U_CAPI int32_t U_EXPORT2 +ucol_primaryOrder (int32_t order); + +/** +* Get the secondary order of a collation order. +* @param order the collation order +* @return the secondary order of a collation order. +* @stable ICU 2.6 +*/ +U_CAPI int32_t U_EXPORT2 +ucol_secondaryOrder (int32_t order); + +/** +* Get the tertiary order of a collation order. +* @param order the collation order +* @return the tertiary order of a collation order. +* @stable ICU 2.6 +*/ +U_CAPI int32_t U_EXPORT2 +ucol_tertiaryOrder (int32_t order); + +#endif /* #if !UCONFIG_NO_COLLATION */ + +#endif + +// ucsdet.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* + ********************************************************************** + * Copyright (C) 2005-2013, International Business Machines + * Corporation and others. All Rights Reserved. + ********************************************************************** + * file name: ucsdet.h + * encoding: UTF-8 + * indentation:4 + * + * created on: 2005Aug04 + * created by: Andy Heninger + * + * ICU Character Set Detection, API for C + * + * Draft version 18 Oct 2005 + * + */ + +#ifndef __UCSDET_H +#define __UCSDET_H + + +#if !UCONFIG_NO_CONVERSION + + + +/** + * \file + * \brief C API: Charset Detection API + * + * This API provides a facility for detecting the + * charset or encoding of character data in an unknown text format. + * The input data can be from an array of bytes. + *

+ * Character set detection is at best an imprecise operation. The detection + * process will attempt to identify the charset that best matches the characteristics + * of the byte data, but the process is partly statistical in nature, and + * the results can not be guaranteed to always be correct. + *

+ * For best accuracy in charset detection, the input data should be primarily + * in a single language, and a minimum of a few hundred bytes worth of plain text + * in the language are needed. The detection process will attempt to + * ignore html or xml style markup that could otherwise obscure the content. + *

+ * An alternative to the ICU Charset Detector is the + * Compact Encoding Detector, https://github.com/google/compact_enc_det. + * It often gives more accurate results, especially with short input samples. + */ + + +struct UCharsetDetector; +/** + * Structure representing a charset detector + * @stable ICU 3.6 + */ +typedef struct UCharsetDetector UCharsetDetector; + +struct UCharsetMatch; +/** + * Opaque structure representing a match that was identified + * from a charset detection operation. + * @stable ICU 3.6 + */ +typedef struct UCharsetMatch UCharsetMatch; + +/** + * Open a charset detector. + * + * @param status Any error conditions occurring during the open + * operation are reported back in this variable. + * @return the newly opened charset detector. + * @stable ICU 3.6 + */ +U_CAPI UCharsetDetector * U_EXPORT2 +ucsdet_open(UErrorCode *status); + +/** + * Close a charset detector. All storage and any other resources + * owned by this charset detector will be released. Failure to + * close a charset detector when finished with it can result in + * memory leaks in the application. + * + * @param ucsd The charset detector to be closed. + * @stable ICU 3.6 + */ +U_CAPI void U_EXPORT2 +ucsdet_close(UCharsetDetector *ucsd); + + +/** + * Set the input byte data whose charset is to detected. + * + * Ownership of the input text byte array remains with the caller. + * The input string must not be altered or deleted until the charset + * detector is either closed or reset to refer to different input text. + * + * @param ucsd the charset detector to be used. + * @param textIn the input text of unknown encoding. . + * @param len the length of the input text, or -1 if the text + * is NUL terminated. + * @param status any error conditions are reported back in this variable. + * + * @stable ICU 3.6 + */ +U_CAPI void U_EXPORT2 +ucsdet_setText(UCharsetDetector *ucsd, const char *textIn, int32_t len, UErrorCode *status); + + +/** Set the declared encoding for charset detection. + * The declared encoding of an input text is an encoding obtained + * by the user from an http header or xml declaration or similar source that + * can be provided as an additional hint to the charset detector. + * + * How and whether the declared encoding will be used during the + * detection process is TBD. + * + * @param ucsd the charset detector to be used. + * @param encoding an encoding for the current data obtained from + * a header or declaration or other source outside + * of the byte data itself. + * @param length the length of the encoding name, or -1 if the name string + * is NUL terminated. + * @param status any error conditions are reported back in this variable. + * + * @stable ICU 3.6 + */ +U_CAPI void U_EXPORT2 +ucsdet_setDeclaredEncoding(UCharsetDetector *ucsd, const char *encoding, int32_t length, UErrorCode *status); + + +/** + * Return the charset that best matches the supplied input data. + * + * Note though, that because the detection + * only looks at the start of the input data, + * there is a possibility that the returned charset will fail to handle + * the full set of input data. + *

+ * The returned UCharsetMatch object is owned by the UCharsetDetector. + * It will remain valid until the detector input is reset, or until + * the detector is closed. + *

+ * The function will fail if + *

    + *
  • no charset appears to match the data.
  • + *
  • no input text has been provided
  • + *
+ * + * @param ucsd the charset detector to be used. + * @param status any error conditions are reported back in this variable. + * @return a UCharsetMatch representing the best matching charset, + * or NULL if no charset matches the byte data. + * + * @stable ICU 3.6 + */ +U_CAPI const UCharsetMatch * U_EXPORT2 +ucsdet_detect(UCharsetDetector *ucsd, UErrorCode *status); + + +/** + * Find all charset matches that appear to be consistent with the input, + * returning an array of results. The results are ordered with the + * best quality match first. + * + * Because the detection only looks at a limited amount of the + * input byte data, some of the returned charsets may fail to handle + * the all of input data. + *

+ * The returned UCharsetMatch objects are owned by the UCharsetDetector. + * They will remain valid until the detector is closed or modified + * + *

+ * Return an error if + *

    + *
  • no charsets appear to match the input data.
  • + *
  • no input text has been provided
  • + *
+ * + * @param ucsd the charset detector to be used. + * @param matchesFound pointer to a variable that will be set to the + * number of charsets identified that are consistent with + * the input data. Output only. + * @param status any error conditions are reported back in this variable. + * @return A pointer to an array of pointers to UCharSetMatch objects. + * This array, and the UCharSetMatch instances to which it refers, + * are owned by the UCharsetDetector, and will remain valid until + * the detector is closed or modified. + * @stable ICU 3.6 + */ +U_CAPI const UCharsetMatch ** U_EXPORT2 +ucsdet_detectAll(UCharsetDetector *ucsd, int32_t *matchesFound, UErrorCode *status); + + + +/** + * Get the name of the charset represented by a UCharsetMatch. + * + * The storage for the returned name string is owned by the + * UCharsetMatch, and will remain valid while the UCharsetMatch + * is valid. + * + * The name returned is suitable for use with the ICU conversion APIs. + * + * @param ucsm The charset match object. + * @param status Any error conditions are reported back in this variable. + * @return The name of the matching charset. + * + * @stable ICU 3.6 + */ +U_CAPI const char * U_EXPORT2 +ucsdet_getName(const UCharsetMatch *ucsm, UErrorCode *status); + +/** + * Get a confidence number for the quality of the match of the byte + * data with the charset. Confidence numbers range from zero to 100, + * with 100 representing complete confidence and zero representing + * no confidence. + * + * The confidence values are somewhat arbitrary. They define an + * an ordering within the results for any single detection operation + * but are not generally comparable between the results for different input. + * + * A confidence value of ten does have a general meaning - it is used + * for charsets that can represent the input data, but for which there + * is no other indication that suggests that the charset is the correct one. + * Pure 7 bit ASCII data, for example, is compatible with a + * great many charsets, most of which will appear as possible matches + * with a confidence of 10. + * + * @param ucsm The charset match object. + * @param status Any error conditions are reported back in this variable. + * @return A confidence number for the charset match. + * + * @stable ICU 3.6 + */ +U_CAPI int32_t U_EXPORT2 +ucsdet_getConfidence(const UCharsetMatch *ucsm, UErrorCode *status); + +/** + * Get the RFC 3066 code for the language of the input data. + * + * The Charset Detection service is intended primarily for detecting + * charsets, not language. For some, but not all, charsets, a language is + * identified as a byproduct of the detection process, and that is what + * is returned by this function. + * + * CAUTION: + * 1. Language information is not available for input data encoded in + * all charsets. In particular, no language is identified + * for UTF-8 input data. + * + * 2. Closely related languages may sometimes be confused. + * + * If more accurate language detection is required, a linguistic + * analysis package should be used. + * + * The storage for the returned name string is owned by the + * UCharsetMatch, and will remain valid while the UCharsetMatch + * is valid. + * + * @param ucsm The charset match object. + * @param status Any error conditions are reported back in this variable. + * @return The RFC 3066 code for the language of the input data, or + * an empty string if the language could not be determined. + * + * @stable ICU 3.6 + */ +U_CAPI const char * U_EXPORT2 +ucsdet_getLanguage(const UCharsetMatch *ucsm, UErrorCode *status); + + +/** + * Get the entire input text as a UChar string, placing it into + * a caller-supplied buffer. A terminating + * NUL character will be appended to the buffer if space is available. + * + * The number of UChars in the output string, not including the terminating + * NUL, is returned. + * + * If the supplied buffer is smaller than required to hold the output, + * the contents of the buffer are undefined. The full output string length + * (in UChars) is returned as always, and can be used to allocate a buffer + * of the correct size. + * + * + * @param ucsm The charset match object. + * @param buf A UChar buffer to be filled with the converted text data. + * @param cap The capacity of the buffer in UChars. + * @param status Any error conditions are reported back in this variable. + * @return The number of UChars in the output string. + * + * @stable ICU 3.6 + */ +U_CAPI int32_t U_EXPORT2 +ucsdet_getUChars(const UCharsetMatch *ucsm, + UChar *buf, int32_t cap, UErrorCode *status); + + + +/** + * Get an iterator over the set of all detectable charsets - + * over the charsets that are known to the charset detection + * service. + * + * The returned UEnumeration provides access to the names of + * the charsets. + * + *

+ * The state of the Charset detector that is passed in does not + * affect the result of this function, but requiring a valid, open + * charset detector as a parameter insures that the charset detection + * service has been safely initialized and that the required detection + * data is available. + * + *

+ * Note: Multiple different charset encodings in a same family may use + * a single shared name in this implementation. For example, this method returns + * an array including "ISO-8859-1" (ISO Latin 1), but not including "windows-1252" + * (Windows Latin 1). However, actual detection result could be "windows-1252" + * when the input data matches Latin 1 code points with any points only available + * in "windows-1252". + * + * @param ucsd a Charset detector. + * @param status Any error conditions are reported back in this variable. + * @return an iterator providing access to the detectable charset names. + * @stable ICU 3.6 + */ +U_CAPI UEnumeration * U_EXPORT2 +ucsdet_getAllDetectableCharsets(const UCharsetDetector *ucsd, UErrorCode *status); + +/** + * Test whether input filtering is enabled for this charset detector. + * Input filtering removes text that appears to be HTML or xml + * markup from the input before applying the code page detection + * heuristics. + * + * @param ucsd The charset detector to check. + * @return true if filtering is enabled. + * @stable ICU 3.6 + */ + +U_CAPI UBool U_EXPORT2 +ucsdet_isInputFilterEnabled(const UCharsetDetector *ucsd); + + +/** + * Enable filtering of input text. If filtering is enabled, + * text within angle brackets ("<" and ">") will be removed + * before detection, which will remove most HTML or xml markup. + * + * @param ucsd the charset detector to be modified. + * @param filter true to enable input text filtering. + * @return The previous setting. + * + * @stable ICU 3.6 + */ +U_CAPI UBool U_EXPORT2 +ucsdet_enableInputFilter(UCharsetDetector *ucsd, UBool filter); + + +#endif +#endif /* __UCSDET_H */ + + + +// udisplayoptions.h +// No supported content + +// ufieldpositer.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +***************************************************************************************** +* Copyright (C) 2015-2016, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UFIELDPOSITER_H +#define UFIELDPOSITER_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C API: UFieldPositionIterator for use with format APIs. + * + * Usage: + * ufieldpositer_open creates an empty (unset) UFieldPositionIterator. + * This can be passed to format functions such as {@link #udat_formatForFields}, + * which will set it to apply to the fields in a particular formatted string. + * ufieldpositer_next can then be used to iterate over those fields, + * providing for each field its type (using values that are specific to the + * particular format type, such as date or number formats), as well as the + * start and end positions of the field in the formatted string. + * A given UFieldPositionIterator can be re-used for different format calls; + * each such call resets it to apply to that format string. + * ufieldpositer_close should be called to dispose of the UFieldPositionIterator + * when it is no longer needed. + * + * @see FieldPositionIterator + */ + +/** + * Opaque UFieldPositionIterator object for use in C. + * @stable ICU 55 + */ +struct UFieldPositionIterator; +typedef struct UFieldPositionIterator UFieldPositionIterator; /**< C typedef for struct UFieldPositionIterator. @stable ICU 55 */ + +/** + * Open a new, unset UFieldPositionIterator object. + * @param status + * A pointer to a UErrorCode to receive any errors. + * @return + * A pointer to an empty (unset) UFieldPositionIterator object, + * or NULL if an error occurred. + * @stable ICU 55 + */ +U_CAPI UFieldPositionIterator* U_EXPORT2 +ufieldpositer_open(UErrorCode* status); + +/** + * Close a UFieldPositionIterator object. Once closed it may no longer be used. + * @param fpositer + * A pointer to the UFieldPositionIterator object to close. + * @stable ICU 55 + */ +U_CAPI void U_EXPORT2 +ufieldpositer_close(UFieldPositionIterator *fpositer); + + + +/** + * Get information for the next field in the formatted string to which this + * UFieldPositionIterator currently applies, or return a negative value if there + * are no more fields. + * @param fpositer + * A pointer to the UFieldPositionIterator object containing iteration + * state for the format fields. + * @param beginIndex + * A pointer to an int32_t to receive information about the start offset + * of the field in the formatted string (undefined if the function + * returns a negative value). May be NULL if this information is not needed. + * @param endIndex + * A pointer to an int32_t to receive information about the end offset + * of the field in the formatted string (undefined if the function + * returns a negative value). May be NULL if this information is not needed. + * @return + * The field type (non-negative value), or a negative value if there are + * no more fields for which to provide information. If negative, then any + * values pointed to by beginIndex and endIndex are undefined. + * + * The values for field type depend on what type of formatter the + * UFieldPositionIterator has been set by; for a date formatter, the + * values from the UDateFormatField enum. For more information, see the + * descriptions of format functions that take a UFieldPositionIterator* + * parameter, such as {@link #udat_formatForFields}. + * + * @stable ICU 55 + */ +U_CAPI int32_t U_EXPORT2 +ufieldpositer_next(UFieldPositionIterator *fpositer, + int32_t *beginIndex, int32_t *endIndex); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// uformattable.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************** +* Copyright (C) 2013-2014, International Business Machines Corporation and others. +* All Rights Reserved. +******************************************************************************** +* +* File UFORMATTABLE.H +* +* Modification History: +* +* Date Name Description +* 2013 Jun 7 srl New +******************************************************************************** +*/ + +/** + * \file + * \brief C API: UFormattable is a thin wrapper for primitive types used for formatting and parsing. + * + * This is a C interface to the icu::Formattable class. Static functions on this class convert + * to and from this interface (via reinterpret_cast). Note that Formattables (and thus UFormattables) + * are mutable, and many operations (even getters) may actually modify the internal state. For this + * reason, UFormattables are not thread safe, and should not be shared between threads. + * + * See {@link unum_parseToUFormattable} for example code. + */ + +#ifndef UFORMATTABLE_H +#define UFORMATTABLE_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * Enum designating the type of a UFormattable instance. + * Practically, this indicates which of the getters would return without conversion + * or error. + * @see icu::Formattable::Type + * @stable ICU 52 + */ +typedef enum UFormattableType { + UFMT_DATE = 0, /**< ufmt_getDate() will return without conversion. @see ufmt_getDate*/ + UFMT_DOUBLE, /**< ufmt_getDouble() will return without conversion. @see ufmt_getDouble*/ + UFMT_LONG, /**< ufmt_getLong() will return without conversion. @see ufmt_getLong */ + UFMT_STRING, /**< ufmt_getUChars() will return without conversion. @see ufmt_getUChars*/ + UFMT_ARRAY, /**< ufmt_countArray() and ufmt_getArray() will return the value. @see ufmt_getArrayItemByIndex */ + UFMT_INT64, /**< ufmt_getInt64() will return without conversion. @see ufmt_getInt64 */ + UFMT_OBJECT, /**< ufmt_getObject() will return without conversion. @see ufmt_getObject*/ +} UFormattableType; + + +/** + * Opaque type representing various types of data which may be used for formatting + * and parsing operations. + * @see icu::Formattable + * @stable ICU 52 + */ +typedef void *UFormattable; + +/** + * Initialize a UFormattable, to type UNUM_LONG, value 0 + * may return error if memory allocation failed. + * parameter status error code. + * See {@link unum_parseToUFormattable} for example code. + * @stable ICU 52 + * @return the new UFormattable + * @see ufmt_close + * @see icu::Formattable::Formattable() + */ +U_CAPI UFormattable* U_EXPORT2 +ufmt_open(UErrorCode* status); + +/** + * Cleanup any additional memory allocated by this UFormattable. + * @param fmt the formatter + * @stable ICU 52 + * @see ufmt_open + */ +U_CAPI void U_EXPORT2 +ufmt_close(UFormattable* fmt); + + +/** + * Return the type of this object + * @param fmt the UFormattable object + * @param status status code - U_ILLEGAL_ARGUMENT_ERROR is returned if the UFormattable contains data not supported by + * the API + * @return the value as a UFormattableType + * @see ufmt_isNumeric + * @see icu::Formattable::getType() const + * @stable ICU 52 + */ +U_CAPI UFormattableType U_EXPORT2 +ufmt_getType(const UFormattable* fmt, UErrorCode *status); + +/** + * Return whether the object is numeric. + * @param fmt the UFormattable object + * @return true if the object is a double, long, or int64 value, else false. + * @see ufmt_getType + * @see icu::Formattable::isNumeric() const + * @stable ICU 52 + */ +U_CAPI UBool U_EXPORT2 +ufmt_isNumeric(const UFormattable* fmt); + +/** + * Gets the UDate value of this object. If the type is not of type UFMT_DATE, + * status is set to U_INVALID_FORMAT_ERROR and the return value is + * undefined. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @return the value + * @stable ICU 52 + * @see icu::Formattable::getDate(UErrorCode&) const + */ +U_CAPI UDate U_EXPORT2 +ufmt_getDate(const UFormattable* fmt, UErrorCode *status); + +/** + * Gets the double value of this object. If the type is not a UFMT_DOUBLE, or + * if there are additional significant digits than fit in a double type, + * a conversion is performed with possible loss of precision. + * If the type is UFMT_OBJECT and the + * object is a Measure, then the result of + * getNumber().getDouble(status) is returned. If this object is + * neither a numeric type nor a Measure, then 0 is returned and + * the status is set to U_INVALID_FORMAT_ERROR. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @return the value + * @stable ICU 52 + * @see icu::Formattable::getDouble(UErrorCode&) const + */ +U_CAPI double U_EXPORT2 +ufmt_getDouble(UFormattable* fmt, UErrorCode *status); + +/** + * Gets the long (int32_t) value of this object. If the magnitude is too + * large to fit in a long, then the maximum or minimum long value, + * as appropriate, is returned and the status is set to + * U_INVALID_FORMAT_ERROR. If this object is of type UFMT_INT64 and + * it fits within a long, then no precision is lost. If it is of + * type kDouble or kDecimalNumber, then a conversion is peformed, with + * truncation of any fractional part. If the type is UFMT_OBJECT and + * the object is a Measure, then the result of + * getNumber().getLong(status) is returned. If this object is + * neither a numeric type nor a Measure, then 0 is returned and + * the status is set to U_INVALID_FORMAT_ERROR. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @return the value + * @stable ICU 52 + * @see icu::Formattable::getLong(UErrorCode&) const + */ +U_CAPI int32_t U_EXPORT2 +ufmt_getLong(UFormattable* fmt, UErrorCode *status); + + +/** + * Gets the int64_t value of this object. If this object is of a numeric + * type and the magnitude is too large to fit in an int64, then + * the maximum or minimum int64 value, as appropriate, is returned + * and the status is set to U_INVALID_FORMAT_ERROR. If the + * magnitude fits in an int64, then a casting conversion is + * peformed, with truncation of any fractional part. If the type + * is UFMT_OBJECT and the object is a Measure, then the result of + * getNumber().getDouble(status) is returned. If this object is + * neither a numeric type nor a Measure, then 0 is returned and + * the status is set to U_INVALID_FORMAT_ERROR. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @return the value + * @stable ICU 52 + * @see icu::Formattable::getInt64(UErrorCode&) const + */ +U_CAPI int64_t U_EXPORT2 +ufmt_getInt64(UFormattable* fmt, UErrorCode *status); + +/** + * Returns a pointer to the UObject contained within this + * formattable (as a const void*), or NULL if this object + * is not of type UFMT_OBJECT. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @return the value as a const void*. It is a polymorphic C++ object. + * @stable ICU 52 + * @see icu::Formattable::getObject() const + */ +U_CAPI const void *U_EXPORT2 +ufmt_getObject(const UFormattable* fmt, UErrorCode *status); + +/** + * Gets the string value of this object as a UChar string. If the type is not a + * string, status is set to U_INVALID_FORMAT_ERROR and a NULL pointer is returned. + * This function is not thread safe and may modify the UFormattable if need be to terminate the string. + * The returned pointer is not valid if any other functions are called on this UFormattable, or if the UFormattable is closed. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @param len if non null, contains the string length on return + * @return the null terminated string value - must not be referenced after any other functions are called on this UFormattable. + * @stable ICU 52 + * @see icu::Formattable::getString(UnicodeString&)const + */ +U_CAPI const UChar* U_EXPORT2 +ufmt_getUChars(UFormattable* fmt, int32_t *len, UErrorCode *status); + +/** + * Get the number of array objects contained, if an array type UFMT_ARRAY + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors. U_ILLEGAL_ARGUMENT_ERROR if not an array type. + * @return the number of array objects or undefined if not an array type + * @stable ICU 52 + * @see ufmt_getArrayItemByIndex + */ +U_CAPI int32_t U_EXPORT2 +ufmt_getArrayLength(const UFormattable* fmt, UErrorCode *status); + +/** + * Get the specified value from the array of UFormattables. Invalid if the object is not an array type UFMT_ARRAY + * @param fmt the UFormattable object + * @param n the number of the array to return (0 based). + * @param status the error code - any conversion or format errors. Returns an error if n is out of bounds. + * @return the nth array value, only valid while the containing UFormattable is valid. NULL if not an array. + * @stable ICU 52 + * @see icu::Formattable::getArray(int32_t&, UErrorCode&) const + */ +U_CAPI UFormattable * U_EXPORT2 +ufmt_getArrayItemByIndex(UFormattable* fmt, int32_t n, UErrorCode *status); + +/** + * Returns a numeric string representation of the number contained within this + * formattable, or NULL if this object does not contain numeric type. + * For values obtained by parsing, the returned decimal number retains + * the full precision and range of the original input, unconstrained by + * the limits of a double floating point or a 64 bit int. + * + * This function is not thread safe, and therefore is not declared const, + * even though it is logically const. + * The resulting buffer is owned by the UFormattable and is invalid if any other functions are + * called on the UFormattable. + * + * Possible errors include U_MEMORY_ALLOCATION_ERROR, and + * U_INVALID_STATE if the formattable object has not been set to + * a numeric type. + * @param fmt the UFormattable object + * @param len if non-null, on exit contains the string length (not including the terminating null) + * @param status the error code + * @return the character buffer as a NULL terminated string, which is owned by the object and must not be accessed if any other functions are called on this object. + * @stable ICU 52 + * @see icu::Formattable::getDecimalNumber(UErrorCode&) + */ +U_CAPI const char * U_EXPORT2 +ufmt_getDecNumChars(UFormattable *fmt, int32_t *len, UErrorCode *status); + +#endif + +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + +// uformattedvalue.h +// Copyright (C) 2018 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html + +#ifndef __UFORMATTEDVALUE_H__ +#define __UFORMATTEDVALUE_H__ + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C API: Abstract operations for localized strings. + * + * This file contains declarations for classes that deal with formatted strings. A number + * of APIs throughout ICU use these classes for expressing their localized output. + */ + + +/** + * All possible field categories in ICU. Every entry in this enum corresponds + * to another enum that exists in ICU. + * + * In the APIs that take a UFieldCategory, an int32_t type is used. Field + * categories having any of the top four bits turned on are reserved as + * private-use for external APIs implementing FormattedValue. This means that + * categories 2^28 and higher or below zero (with the highest bit turned on) + * are private-use and will not be used by ICU in the future. + * + * @stable ICU 64 + */ +typedef enum UFieldCategory { + /** + * For an undefined field category. + * + * @stable ICU 64 + */ + UFIELD_CATEGORY_UNDEFINED = 0, + + /** + * For fields in UDateFormatField (udat.h), from ICU 3.0. + * + * @stable ICU 64 + */ + UFIELD_CATEGORY_DATE, + + /** + * For fields in UNumberFormatFields (unum.h), from ICU 49. + * + * @stable ICU 64 + */ + UFIELD_CATEGORY_NUMBER, + + /** + * For fields in UListFormatterField (ulistformatter.h), from ICU 63. + * + * @stable ICU 64 + */ + UFIELD_CATEGORY_LIST, + + /** + * For fields in URelativeDateTimeFormatterField (ureldatefmt.h), from ICU 64. + * + * @stable ICU 64 + */ + UFIELD_CATEGORY_RELATIVE_DATETIME, + + /** + * Reserved for possible future fields in UDateIntervalFormatField. + * + * @internal + */ + UFIELD_CATEGORY_DATE_INTERVAL, + + + /** + * Category for spans in a list. + * + * @stable ICU 64 + */ + UFIELD_CATEGORY_LIST_SPAN = 0x1000 + UFIELD_CATEGORY_LIST, + + /** + * Category for spans in a date interval. + * + * @stable ICU 64 + */ + UFIELD_CATEGORY_DATE_INTERVAL_SPAN = 0x1000 + UFIELD_CATEGORY_DATE_INTERVAL, + #if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + /** + * Category for spans in a number range. + * + * @stable ICU 69 + */ + UFIELD_CATEGORY_NUMBER_RANGE_SPAN = 0x1000 + UFIELD_CATEGORY_NUMBER, + #endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + +} UFieldCategory; + + +struct UConstrainedFieldPosition; +/** + * Represents a span of a string containing a given field. + * + * This struct differs from UFieldPosition in the following ways: + * + * 1. It has information on the field category. + * 2. It allows you to set constraints to use when iterating over field positions. + * 3. It is used for the newer FormattedValue APIs. + * + * @stable ICU 64 + */ +typedef struct UConstrainedFieldPosition UConstrainedFieldPosition; + + +/** + * Creates a new UConstrainedFieldPosition. + * + * By default, the UConstrainedFieldPosition has no iteration constraints. + * + * @param ec Set if an error occurs. + * @return The new object, or NULL if an error occurs. + * @stable ICU 64 + */ +U_CAPI UConstrainedFieldPosition* U_EXPORT2 +ucfpos_open(UErrorCode* ec); + + +/** + * Resets a UConstrainedFieldPosition to its initial state, as if it were newly created. + * + * Removes any constraints that may have been set on the instance. + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @param ec Set if an error occurs. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ucfpos_reset( + UConstrainedFieldPosition* ucfpos, + UErrorCode* ec); + + +/** + * Destroys a UConstrainedFieldPosition and releases its memory. + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ucfpos_close(UConstrainedFieldPosition* ucfpos); + + +/** + * Sets a constraint on the field category. + * + * When this instance of UConstrainedFieldPosition is passed to ufmtval_nextPosition, + * positions are skipped unless they have the given category. + * + * Any previously set constraints are cleared. + * + * For example, to loop over only the number-related fields: + * + * UConstrainedFieldPosition* ucfpos = ucfpos_open(ec); + * ucfpos_constrainCategory(ucfpos, UFIELDCATEGORY_NUMBER_FORMAT, ec); + * while (ufmtval_nextPosition(ufmtval, ucfpos, ec)) { + * // handle the number-related field position + * } + * ucfpos_close(ucfpos); + * + * Changing the constraint while in the middle of iterating over a FormattedValue + * does not generally have well-defined behavior. + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @param category The field category to fix when iterating. + * @param ec Set if an error occurs. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ucfpos_constrainCategory( + UConstrainedFieldPosition* ucfpos, + int32_t category, + UErrorCode* ec); + + +/** + * Sets a constraint on the category and field. + * + * When this instance of UConstrainedFieldPosition is passed to ufmtval_nextPosition, + * positions are skipped unless they have the given category and field. + * + * Any previously set constraints are cleared. + * + * For example, to loop over all grouping separators: + * + * UConstrainedFieldPosition* ucfpos = ucfpos_open(ec); + * ucfpos_constrainField(ucfpos, UFIELDCATEGORY_NUMBER_FORMAT, UNUM_GROUPING_SEPARATOR_FIELD, ec); + * while (ufmtval_nextPosition(ufmtval, ucfpos, ec)) { + * // handle the grouping separator position + * } + * ucfpos_close(ucfpos); + * + * Changing the constraint while in the middle of iterating over a FormattedValue + * does not generally have well-defined behavior. + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @param category The field category to fix when iterating. + * @param field The field to fix when iterating. + * @param ec Set if an error occurs. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ucfpos_constrainField( + UConstrainedFieldPosition* ucfpos, + int32_t category, + int32_t field, + UErrorCode* ec); + + +/** + * Gets the field category for the current position. + * + * If a category or field constraint was set, this function returns the constrained + * category. Otherwise, the return value is well-defined only after + * ufmtval_nextPosition returns true. + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @param ec Set if an error occurs. + * @return The field category saved in the instance. + * @stable ICU 64 + */ +U_CAPI int32_t U_EXPORT2 +ucfpos_getCategory( + const UConstrainedFieldPosition* ucfpos, + UErrorCode* ec); + + +/** + * Gets the field for the current position. + * + * If a field constraint was set, this function returns the constrained + * field. Otherwise, the return value is well-defined only after + * ufmtval_nextPosition returns true. + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @param ec Set if an error occurs. + * @return The field saved in the instance. + * @stable ICU 64 + */ +U_CAPI int32_t U_EXPORT2 +ucfpos_getField( + const UConstrainedFieldPosition* ucfpos, + UErrorCode* ec); + + +/** + * Gets the INCLUSIVE start and EXCLUSIVE end index stored for the current position. + * + * The output values are well-defined only after ufmtval_nextPosition returns true. + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @param pStart Set to the start index saved in the instance. Ignored if nullptr. + * @param pLimit Set to the end index saved in the instance. Ignored if nullptr. + * @param ec Set if an error occurs. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ucfpos_getIndexes( + const UConstrainedFieldPosition* ucfpos, + int32_t* pStart, + int32_t* pLimit, + UErrorCode* ec); + + +/** + * Gets an int64 that FormattedValue implementations may use for storage. + * + * The initial value is zero. + * + * Users of FormattedValue should not need to call this method. + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @param ec Set if an error occurs. + * @return The current iteration context from ucfpos_setInt64IterationContext. + * @stable ICU 64 + */ +U_CAPI int64_t U_EXPORT2 +ucfpos_getInt64IterationContext( + const UConstrainedFieldPosition* ucfpos, + UErrorCode* ec); + + +/** + * Sets an int64 that FormattedValue implementations may use for storage. + * + * Intended to be used by FormattedValue implementations. + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @param context The new iteration context. + * @param ec Set if an error occurs. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ucfpos_setInt64IterationContext( + UConstrainedFieldPosition* ucfpos, + int64_t context, + UErrorCode* ec); + + +/** + * Determines whether a given field should be included given the + * constraints. + * + * Intended to be used by FormattedValue implementations. + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @param category The category to test. + * @param field The field to test. + * @param ec Set if an error occurs. + * @stable ICU 64 + */ +U_CAPI UBool U_EXPORT2 +ucfpos_matchesField( + const UConstrainedFieldPosition* ucfpos, + int32_t category, + int32_t field, + UErrorCode* ec); + + +/** + * Sets new values for the primary public getters. + * + * Intended to be used by FormattedValue implementations. + * + * It is up to the implementation to ensure that the user-requested + * constraints are satisfied. This method does not check! + * + * @param ucfpos The instance of UConstrainedFieldPosition. + * @param category The new field category. + * @param field The new field. + * @param start The new inclusive start index. + * @param limit The new exclusive end index. + * @param ec Set if an error occurs. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ucfpos_setState( + UConstrainedFieldPosition* ucfpos, + int32_t category, + int32_t field, + int32_t start, + int32_t limit, + UErrorCode* ec); + + +struct UFormattedValue; +/** + * An abstract formatted value: a string with associated field attributes. + * Many formatters format to types compatible with UFormattedValue. + * + * @stable ICU 64 + */ +typedef struct UFormattedValue UFormattedValue; + + +/** + * Returns a pointer to the formatted string. The pointer is owned by the UFormattedValue. The + * return value is valid only as long as the UFormattedValue is present and unchanged in memory. + * + * The return value is NUL-terminated but could contain internal NULs. + * + * @param ufmtval + * The object containing the formatted string and attributes. + * @param pLength Output variable for the length of the string. Ignored if NULL. + * @param ec Set if an error occurs. + * @return A NUL-terminated char16 string owned by the UFormattedValue. + * @stable ICU 64 + */ +U_CAPI const UChar* U_EXPORT2 +ufmtval_getString( + const UFormattedValue* ufmtval, + int32_t* pLength, + UErrorCode* ec); + + +/** + * Iterates over field positions in the UFormattedValue. This lets you determine the position + * of specific types of substrings, like a month or a decimal separator. + * + * To loop over all field positions: + * + * UConstrainedFieldPosition* ucfpos = ucfpos_open(ec); + * while (ufmtval_nextPosition(ufmtval, ucfpos, ec)) { + * // handle the field position; get information from ucfpos + * } + * ucfpos_close(ucfpos); + * + * @param ufmtval + * The object containing the formatted string and attributes. + * @param ucfpos + * The object used for iteration state; can provide constraints to iterate over only + * one specific category or field; + * see ucfpos_constrainCategory + * and ucfpos_constrainField. + * @param ec Set if an error occurs. + * @return true if another position was found; false otherwise. + * @stable ICU 64 + */ +U_CAPI UBool U_EXPORT2 +ufmtval_nextPosition( + const UFormattedValue* ufmtval, + UConstrainedFieldPosition* ucfpos, + UErrorCode* ec); + + +#endif /* #if !UCONFIG_NO_FORMATTING */ +#endif // __UFORMATTEDVALUE_H__ + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + +// udateintervalformat.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +***************************************************************************************** +* Copyright (C) 2010-2012,2015 International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UDATEINTERVALFORMAT_H +#define UDATEINTERVALFORMAT_H + + +#if !UCONFIG_NO_FORMATTING + + + +/** + * \file + * \brief C API: Format a date interval. + * + * A UDateIntervalFormat is used to format the range between two UDate values + * in a locale-sensitive way, using a skeleton that specifies the precision and + * completeness of the information to show. If the range smaller than the resolution + * specified by the skeleton, a single date format will be produced. If the range + * is larger than the format specified by the skeleton, a locale-specific fallback + * will be used to format the items missing from the skeleton. + * + * For example, if the range is 2010-03-04 07:56 - 2010-03-04 19:56 (12 hours) + * - The skeleton jm will produce + * for en_US, "7:56 AM - 7:56 PM" + * for en_GB, "7:56 - 19:56" + * - The skeleton MMMd will produce + * for en_US, "Mar 4" + * for en_GB, "4 Mar" + * If the range is 2010-03-04 07:56 - 2010-03-08 16:11 (4 days, 8 hours, 15 minutes) + * - The skeleton jm will produce + * for en_US, "3/4/2010 7:56 AM - 3/8/2010 4:11 PM" + * for en_GB, "4/3/2010 7:56 - 8/3/2010 16:11" + * - The skeleton MMMd will produce + * for en_US, "Mar 4-8" + * for en_GB, "4-8 Mar" + * + * Note: the "-" characters in the above sample output will actually be + * Unicode 2013, EN_DASH, in all but the last example. + * + * Note, in ICU 4.4 the standard skeletons for which date interval format data + * is usually available are as follows; best results will be obtained by using + * skeletons from this set, or those formed by combining these standard skeletons + * (note that for these skeletons, the length of digit field such as d, y, or + * M vs MM is irrelevant (but for non-digit fields such as MMM vs MMMM it is + * relevant). Note that a skeleton involving h or H generally explicitly requests + * that time style (12- or 24-hour time respectively). For a skeleton that + * requests the locale's default time style (h or H), use 'j' instead of h or H. + * h, H, hm, Hm, + * hv, Hv, hmv, Hmv, + * d, + * M, MMM, MMMM, + * Md, MMMd, + * MEd, MMMEd, + * y, + * yM, yMMM, yMMMM, + * yMd, yMMMd, + * yMEd, yMMMEd + * + * Locales for which ICU 4.4 seems to have a reasonable amount of this data + * include: + * af, am, ar, be, bg, bn, ca, cs, da, de (_AT), el, en (_AU,_CA,_GB,_IE,_IN...), + * eo, es (_AR,_CL,_CO,...,_US) et, fa, fi, fo, fr (_BE,_CH,_CA), fur, gsw, he, + * hr, hu, hy, is, it (_CH), ja, kk, km, ko, lt, lv, mk, ml, mt, nb, nl )_BE), + * nn, pl, pt (_PT), rm, ro, ru (_UA), sk, sl, so, sq, sr, sr_Latn, sv, th, to, + * tr, uk, ur, vi, zh (_SG), zh_Hant (_HK,_MO) + */ + +/** + * Opaque UDateIntervalFormat object for use in C programs. + * @stable ICU 4.8 + */ +struct UDateIntervalFormat; +typedef struct UDateIntervalFormat UDateIntervalFormat; /**< C typedef for struct UDateIntervalFormat. @stable ICU 4.8 */ + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +struct UFormattedDateInterval; +/** + * Opaque struct to contain the results of a UDateIntervalFormat operation. + * @stable ICU 64 + */ +typedef struct UFormattedDateInterval UFormattedDateInterval; +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * Open a new UDateIntervalFormat object using the predefined rules for a + * given locale plus a specified skeleton. + * @param locale + * The locale for whose rules should be used; may be NULL for + * default locale. + * @param skeleton + * A pattern containing only the fields desired for the interval + * format, for example "Hm", "yMMMd", or "yMMMEdHm". + * @param skeletonLength + * The length of skeleton; may be -1 if the skeleton is zero-terminated. + * @param tzID + * A timezone ID specifying the timezone to use. If 0, use the default + * timezone. + * @param tzIDLength + * The length of tzID, or -1 if null-terminated. If 0, use the default + * timezone. + * @param status + * A pointer to a UErrorCode to receive any errors. + * @return + * A pointer to a UDateIntervalFormat object for the specified locale, + * or NULL if an error occurred. + * @stable ICU 4.8 + */ +U_CAPI UDateIntervalFormat* U_EXPORT2 +udtitvfmt_open(const char* locale, + const UChar* skeleton, + int32_t skeletonLength, + const UChar* tzID, + int32_t tzIDLength, + UErrorCode* status); + +/** + * Close a UDateIntervalFormat object. Once closed it may no longer be used. + * @param formatter + * The UDateIntervalFormat object to close. + * @stable ICU 4.8 + */ +U_CAPI void U_EXPORT2 +udtitvfmt_close(UDateIntervalFormat *formatter); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Creates an object to hold the result of a UDateIntervalFormat + * operation. The object can be used repeatedly; it is cleared whenever + * passed to a format function. + * + * @param ec Set if an error occurs. + * @return A pointer needing ownership. + * @stable ICU 64 + */ +U_CAPI UFormattedDateInterval* U_EXPORT2 +udtitvfmt_openResult(UErrorCode* ec); + +/** + * Returns a representation of a UFormattedDateInterval as a UFormattedValue, + * which can be subsequently passed to any API requiring that type. + * + * The returned object is owned by the UFormattedDateInterval and is valid + * only as long as the UFormattedDateInterval is present and unchanged in memory. + * + * You can think of this method as a cast between types. + * + * When calling ufmtval_nextPosition(): + * The fields are returned from left to right. The special field category + * UFIELD_CATEGORY_DATE_INTERVAL_SPAN is used to indicate which datetime + * primitives came from which arguments: 0 means fromCalendar, and 1 means + * toCalendar. The span category will always occur before the + * corresponding fields in UFIELD_CATEGORY_DATE + * in the ufmtval_nextPosition() iterator. + * + * @param uresult The object containing the formatted string. + * @param ec Set if an error occurs. + * @return A UFormattedValue owned by the input object. + * @stable ICU 64 + */ +U_CAPI const UFormattedValue* U_EXPORT2 +udtitvfmt_resultAsValue(const UFormattedDateInterval* uresult, UErrorCode* ec); + +/** + * Releases the UFormattedDateInterval created by udtitvfmt_openResult(). + * + * @param uresult The object to release. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +udtitvfmt_closeResult(UFormattedDateInterval* uresult); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + + +/** + * Formats a date/time range using the conventions established for the + * UDateIntervalFormat object. + * @param formatter + * The UDateIntervalFormat object specifying the format conventions. + * @param fromDate + * The starting point of the range. + * @param toDate + * The ending point of the range. + * @param result + * A pointer to a buffer to receive the formatted range. + * @param resultCapacity + * The maximum size of result. + * @param position + * A pointer to a UFieldPosition. On input, position->field is read. + * On output, position->beginIndex and position->endIndex indicate + * the beginning and ending indices of field number position->field, + * if such a field exists. This parameter may be NULL, in which case + * no field position data is returned. + * There may be multiple instances of a given field type in an + * interval format; in this case the position indices refer to the + * first instance. + * @param status + * A pointer to a UErrorCode to receive any errors. + * @return + * The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @stable ICU 4.8 + */ +U_CAPI int32_t U_EXPORT2 +udtitvfmt_format(const UDateIntervalFormat* formatter, + UDate fromDate, + UDate toDate, + UChar* result, + int32_t resultCapacity, + UFieldPosition* position, + UErrorCode* status); + +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Formats a date/time range using the conventions established for the + * UDateIntervalFormat object. + * @param formatter + * The UDateIntervalFormat object specifying the format conventions. + * @param fromDate + * The starting point of the range. + * @param toDate + * The ending point of the range. + * @param result + * The UFormattedDateInterval to contain the result of the + * formatting operation. + * @param status + * A pointer to a UErrorCode to receive any errors. + * @stable ICU 67 + */ +U_CAPI void U_EXPORT2 +udtitvfmt_formatToResult( + const UDateIntervalFormat* formatter, + UDate fromDate, + UDate toDate, + UFormattedDateInterval* result, + UErrorCode* status); + +/** + * Formats a date/time range using the conventions established for the + * UDateIntervalFormat object. + * @param formatter + * The UDateIntervalFormat object specifying the format conventions. + * @param fromCalendar + * The starting point of the range. + * @param toCalendar + * The ending point of the range. + * @param result + * The UFormattedDateInterval to contain the result of the + * formatting operation. + * @param status + * A pointer to a UErrorCode to receive any errors. + * @stable ICU 67 + */ + +U_CAPI void U_EXPORT2 +udtitvfmt_formatCalendarToResult( + const UDateIntervalFormat* formatter, + UCalendar* fromCalendar, + UCalendar* toCalendar, + UFormattedDateInterval* result, + UErrorCode* status); + +/** + * Set a particular UDisplayContext value in the formatter, such as + * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. This causes the formatted + * result to be capitalized appropriately for the context in which + * it is intended to be used, considering both the locale and the + * type of field at the beginning of the formatted result. + * @param formatter The formatter for which to set a UDisplayContext value. + * @param value The UDisplayContext value to set. + * @param status A pointer to an UErrorCode to receive any errors + * @stable ICU 68 + */ +U_CAPI void U_EXPORT2 +udtitvfmt_setContext(UDateIntervalFormat* formatter, UDisplayContext value, UErrorCode* status); + +/** + * Get the formatter's UDisplayContext value for the specified UDisplayContextType, + * such as UDISPCTX_TYPE_CAPITALIZATION. + * @param formatter The formatter to query. + * @param type The UDisplayContextType whose value to return + * @param status A pointer to an UErrorCode to receive any errors + * @return The UDisplayContextValue for the specified type. + * @stable ICU 68 + */ +U_CAPI UDisplayContext U_EXPORT2 +udtitvfmt_getContext(const UDateIntervalFormat* formatter, UDisplayContextType type, UErrorCode* status); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// ugender.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +***************************************************************************************** +* Copyright (C) 2010-2013, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UGENDER_H +#define UGENDER_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C API: The purpose of this API is to compute the gender of a list as a + * whole given the gender of each element. + * + */ + +/** + * Genders + * @stable ICU 50 + */ +enum UGender { + /** + * Male gender. + * @stable ICU 50 + */ + UGENDER_MALE, + /** + * Female gender. + * @stable ICU 50 + */ + UGENDER_FEMALE, + /** + * Neutral gender. + * @stable ICU 50 + */ + UGENDER_OTHER +}; +/** + * @stable ICU 50 + */ +typedef enum UGender UGender; + +struct UGenderInfo; +/** + * Opaque UGenderInfo object for use in C programs. + * @stable ICU 50 + */ +typedef struct UGenderInfo UGenderInfo; + +/** + * Opens a new UGenderInfo object given locale. + * @param locale The locale for which the rules are desired. + * @param status UErrorCode pointer + * @return A UGenderInfo for the specified locale, or NULL if an error occurred. + * @stable ICU 50 + */ +U_CAPI const UGenderInfo* U_EXPORT2 +ugender_getInstance(const char *locale, UErrorCode *status); + + +/** + * Given a list, returns the gender of the list as a whole. + * @param genderInfo pointer that ugender_getInstance returns. + * @param genders the gender of each element in the list. + * @param size the size of the list. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The gender of the list. + * @stable ICU 50 + */ +U_CAPI UGender U_EXPORT2 +ugender_getListGender(const UGenderInfo* genderInfo, const UGender *genders, int32_t size, UErrorCode *status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// ulistformatter.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +***************************************************************************************** +* Copyright (C) 2015-2016, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef ULISTFORMATTER_H +#define ULISTFORMATTER_H + + +#if !UCONFIG_NO_FORMATTING + + + +/** + * \file + * \brief C API: Format a list in a locale-appropriate way. + * + * A UListFormatter is used to format a list of items in a locale-appropriate way, + * using data from CLDR. + * Example: Input data ["Alice", "Bob", "Charlie", "Delta"] will be formatted + * as "Alice, Bob, Charlie, and Delta" in English. + */ + +/** + * Opaque UListFormatter object for use in C + * @stable ICU 55 + */ +struct UListFormatter; +typedef struct UListFormatter UListFormatter; /**< C typedef for struct UListFormatter. @stable ICU 55 */ + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + +struct UFormattedList; +/** + * Opaque struct to contain the results of a UListFormatter operation. + * @stable ICU 64 + */ +typedef struct UFormattedList UFormattedList; + +/** + * FieldPosition and UFieldPosition selectors for format fields + * defined by ListFormatter. + * @stable ICU 63 + */ +typedef enum UListFormatterField { + /** + * The literal text in the result which came from the resources. + * @stable ICU 63 + */ + ULISTFMT_LITERAL_FIELD, + /** + * The element text in the result which came from the input strings. + * @stable ICU 63 + */ + ULISTFMT_ELEMENT_FIELD +} UListFormatterField; + +/** + * Type of meaning expressed by the list. + * + * @stable ICU 67 + */ +typedef enum UListFormatterType { + /** + * Conjunction formatting, e.g. "Alice, Bob, Charlie, and Delta". + * + * @stable ICU 67 + */ + ULISTFMT_TYPE_AND, + + /** + * Disjunction (or alternative, or simply one of) formatting, e.g. + * "Alice, Bob, Charlie, or Delta". + * + * @stable ICU 67 + */ + ULISTFMT_TYPE_OR, + + /** + * Formatting of a list of values with units, e.g. "5 pounds, 12 ounces". + * + * @stable ICU 67 + */ + ULISTFMT_TYPE_UNITS +} UListFormatterType; + +/** + * Verbosity level of the list patterns. + * + * @stable ICU 67 + */ +typedef enum UListFormatterWidth { + /** + * Use list formatting with full words (no abbreviations) when possible. + * + * @stable ICU 67 + */ + ULISTFMT_WIDTH_WIDE, + + /** + * Use list formatting of typical length. + * @stable ICU 67 + */ + ULISTFMT_WIDTH_SHORT, + + /** + * Use list formatting of the shortest possible length. + * @stable ICU 67 + */ + ULISTFMT_WIDTH_NARROW, +} UListFormatterWidth; + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * Open a new UListFormatter object using the rules for a given locale. + * The object will be initialized with AND type and WIDE width. + * + * @param locale + * The locale whose rules should be used; may be NULL for + * default locale. + * @param status + * A pointer to a standard ICU UErrorCode (input/output parameter). + * Its input value must pass the U_SUCCESS() test, or else the + * function returns immediately. The caller should check its output + * value with U_FAILURE(), or use with function chaining (see User + * Guide for details). + * @return + * A pointer to a UListFormatter object for the specified locale, + * or NULL if an error occurred. + * @stable ICU 55 + */ +U_CAPI UListFormatter* U_EXPORT2 +ulistfmt_open(const char* locale, + UErrorCode* status); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Open a new UListFormatter object appropriate for the given locale, list type, + * and style. + * + * @param locale + * The locale whose rules should be used; may be NULL for + * default locale. + * @param type + * The type of list formatting to use. + * @param width + * The width of formatting to use. + * @param status + * A pointer to a standard ICU UErrorCode (input/output parameter). + * Its input value must pass the U_SUCCESS() test, or else the + * function returns immediately. The caller should check its output + * value with U_FAILURE(), or use with function chaining (see User + * Guide for details). + * @return + * A pointer to a UListFormatter object for the specified locale, + * or NULL if an error occurred. + * @stable ICU 67 + */ +U_CAPI UListFormatter* U_EXPORT2 +ulistfmt_openForType(const char* locale, UListFormatterType type, + UListFormatterWidth width, UErrorCode* status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * Close a UListFormatter object. Once closed it may no longer be used. + * @param listfmt + * The UListFormatter object to close. + * @stable ICU 55 + */ +U_CAPI void U_EXPORT2 +ulistfmt_close(UListFormatter *listfmt); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Creates an object to hold the result of a UListFormatter + * operation. The object can be used repeatedly; it is cleared whenever + * passed to a format function. + * + * @param ec Set if an error occurs. + * @return A pointer needing ownership. + * @stable ICU 64 + */ +U_CAPI UFormattedList* U_EXPORT2 +ulistfmt_openResult(UErrorCode* ec); + +/** + * Returns a representation of a UFormattedList as a UFormattedValue, + * which can be subsequently passed to any API requiring that type. + * + * The returned object is owned by the UFormattedList and is valid + * only as long as the UFormattedList is present and unchanged in memory. + * + * You can think of this method as a cast between types. + * + * When calling ufmtval_nextPosition(): + * The fields are returned from start to end. The special field category + * UFIELD_CATEGORY_LIST_SPAN is used to indicate which argument + * was inserted at the given position. The span category will + * always occur before the corresponding instance of UFIELD_CATEGORY_LIST + * in the ufmtval_nextPosition() iterator. + * + * @param uresult The object containing the formatted string. + * @param ec Set if an error occurs. + * @return A UFormattedValue owned by the input object. + * @stable ICU 64 + */ +U_CAPI const UFormattedValue* U_EXPORT2 +ulistfmt_resultAsValue(const UFormattedList* uresult, UErrorCode* ec); + +/** + * Releases the UFormattedList created by ulistfmt_openResult(). + * + * @param uresult The object to release. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ulistfmt_closeResult(UFormattedList* uresult); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + + +/** + * Formats a list of strings using the conventions established for the + * UListFormatter object. + * @param listfmt + * The UListFormatter object specifying the list conventions. + * @param strings + * An array of pointers to UChar strings; the array length is + * specified by stringCount. Must be non-NULL if stringCount > 0. + * @param stringLengths + * An array of string lengths corresponding to the strings[] + * parameter; any individual length value may be negative to indicate + * that the corresponding strings[] entry is 0-terminated, or + * stringLengths itself may be NULL if all of the strings are + * 0-terminated. If non-NULL, the stringLengths array must have + * stringCount entries. + * @param stringCount + * the number of entries in strings[], and the number of entries + * in the stringLengths array if it is not NULL. Must be >= 0. + * @param result + * A pointer to a buffer to receive the formatted list. + * @param resultCapacity + * The maximum size of result. + * @param status + * A pointer to a standard ICU UErrorCode (input/output parameter). + * Its input value must pass the U_SUCCESS() test, or else the + * function returns immediately. The caller should check its output + * value with U_FAILURE(), or use with function chaining (see User + * Guide for details). + * @return + * The total buffer size needed; if greater than resultLength, the + * output was truncated. May be <=0 if unable to determine the + * total buffer size needed (e.g. for illegal arguments). + * @stable ICU 55 + */ +U_CAPI int32_t U_EXPORT2 +ulistfmt_format(const UListFormatter* listfmt, + const UChar* const strings[], + const int32_t * stringLengths, + int32_t stringCount, + UChar* result, + int32_t resultCapacity, + UErrorCode* status); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Formats a list of strings to a UFormattedList, which exposes more + * information than the string exported by ulistfmt_format(). + * + * @param listfmt + * The UListFormatter object specifying the list conventions. + * @param strings + * An array of pointers to UChar strings; the array length is + * specified by stringCount. Must be non-NULL if stringCount > 0. + * @param stringLengths + * An array of string lengths corresponding to the strings[] + * parameter; any individual length value may be negative to indicate + * that the corresponding strings[] entry is 0-terminated, or + * stringLengths itself may be NULL if all of the strings are + * 0-terminated. If non-NULL, the stringLengths array must have + * stringCount entries. + * @param stringCount + * the number of entries in strings[], and the number of entries + * in the stringLengths array if it is not NULL. Must be >= 0. + * @param uresult + * The object in which to store the result of the list formatting + * operation. See ulistfmt_openResult(). + * @param status + * Error code set if an error occurred during formatting. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ulistfmt_formatStringsToResult( + const UListFormatter* listfmt, + const UChar* const strings[], + const int32_t * stringLengths, + int32_t stringCount, + UFormattedList* uresult, + UErrorCode* status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// ulocdata.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +****************************************************************************** +* * +* Copyright (C) 2003-2015, International Business Machines * +* Corporation and others. All Rights Reserved. * +* * +****************************************************************************** +* file name: ulocdata.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2003Oct21 +* created by: Ram Viswanadha +*/ + +#ifndef __ULOCDATA_H__ +#define __ULOCDATA_H__ + + + +/** + * \file + * \brief C API: Provides access to locale data. + */ + +/** Forward declaration of the ULocaleData structure. @stable ICU 3.6 */ +struct ULocaleData; + +/** A locale data object. @stable ICU 3.6 */ +typedef struct ULocaleData ULocaleData; + + + +/** The possible types of exemplar character sets. + * @stable ICU 3.4 + */ +typedef enum ULocaleDataExemplarSetType { + /** Basic set @stable ICU 3.4 */ + ULOCDATA_ES_STANDARD=0, + /** Auxiliary set @stable ICU 3.4 */ + ULOCDATA_ES_AUXILIARY=1, + /** Index Character set @stable ICU 4.8 */ + ULOCDATA_ES_INDEX=2, + /** Punctuation set @stable ICU 51 */ + ULOCDATA_ES_PUNCTUATION=3, +} ULocaleDataExemplarSetType; + +/** The possible types of delimiters. + * @stable ICU 3.4 + */ +typedef enum ULocaleDataDelimiterType { + /** Quotation start @stable ICU 3.4 */ + ULOCDATA_QUOTATION_START = 0, + /** Quotation end @stable ICU 3.4 */ + ULOCDATA_QUOTATION_END = 1, + /** Alternate quotation start @stable ICU 3.4 */ + ULOCDATA_ALT_QUOTATION_START = 2, + /** Alternate quotation end @stable ICU 3.4 */ + ULOCDATA_ALT_QUOTATION_END = 3, +} ULocaleDataDelimiterType; + +/** + * Opens a locale data object for the given locale + * + * @param localeID Specifies the locale associated with this locale + * data object. + * @param status Pointer to error status code. + * @stable ICU 3.4 + */ +U_CAPI ULocaleData* U_EXPORT2 +ulocdata_open(const char *localeID, UErrorCode *status); + +/** + * Closes a locale data object. + * + * @param uld The locale data object to close + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +ulocdata_close(ULocaleData *uld); + + +/** + * Sets the "no Substitute" attribute of the locale data + * object. If true, then any methods associated with the + * locale data object will return null when there is no + * data available for that method, given the locale ID + * supplied to ulocdata_open(). + * + * @param uld The locale data object to set. + * @param setting Value of the "no substitute" attribute. + * @stable ICU 3.4 + */ +U_CAPI void U_EXPORT2 +ulocdata_setNoSubstitute(ULocaleData *uld, UBool setting); + +/** + * Retrieves the current "no Substitute" value of the locale data + * object. If true, then any methods associated with the + * locale data object will return null when there is no + * data available for that method, given the locale ID + * supplied to ulocdata_open(). + * + * @param uld Pointer to the The locale data object to set. + * @return UBool Value of the "no substitute" attribute. + * @stable ICU 3.4 + */ +U_CAPI UBool U_EXPORT2 +ulocdata_getNoSubstitute(ULocaleData *uld); + +/** + * Returns the set of exemplar characters for a locale. + * + * @param uld Pointer to the locale data object from which the + * exemplar character set is to be retrieved. + * @param fillIn Pointer to a USet object to receive the + * exemplar character set for the given locale. Previous + * contents of fillIn are lost. If fillIn is NULL, + * then a new USet is created and returned. The caller + * owns the result and must dispose of it by calling + * uset_close. + * @param options Bitmask for options to apply to the exemplar pattern. + * Specify zero to retrieve the exemplar set as it is + * defined in the locale data. Specify + * USET_CASE_INSENSITIVE to retrieve a case-folded + * exemplar set. See uset_applyPattern for a complete + * list of valid options. The USET_IGNORE_SPACE bit is + * always set, regardless of the value of 'options'. + * @param extype Specifies the type of exemplar set to be retrieved. + * @param status Pointer to an input-output error code value; + * must not be NULL. Will be set to U_MISSING_RESOURCE_ERROR + * if the requested data is not available. + * @return USet* Either fillIn, or if fillIn is NULL, a pointer to + * a newly-allocated USet that the user must close. + * In case of error, NULL is returned. + * @stable ICU 3.4 + */ +U_CAPI USet* U_EXPORT2 +ulocdata_getExemplarSet(ULocaleData *uld, USet *fillIn, + uint32_t options, ULocaleDataExemplarSetType extype, UErrorCode *status); + +/** + * Returns one of the delimiter strings associated with a locale. + * + * @param uld Pointer to the locale data object from which the + * delimiter string is to be retrieved. + * @param type the type of delimiter to be retrieved. + * @param result A pointer to a buffer to receive the result. + * @param resultLength The maximum size of result. + * @param status Pointer to an error code value + * @return int32_t The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @stable ICU 3.4 + */ +U_CAPI int32_t U_EXPORT2 +ulocdata_getDelimiter(ULocaleData *uld, ULocaleDataDelimiterType type, UChar *result, int32_t resultLength, UErrorCode *status); + +/** + * Enumeration for representing the measurement systems. + * @stable ICU 2.8 + */ +typedef enum UMeasurementSystem { + UMS_SI, /**< Measurement system specified by SI otherwise known as Metric system. @stable ICU 2.8 */ + UMS_US, /**< Measurement system followed in the United States of America. @stable ICU 2.8 */ + UMS_UK, /**< Mix of metric and imperial units used in Great Britain. @stable ICU 55 */ +} UMeasurementSystem; + +/** + * Returns the measurement system used in the locale specified by the localeID. + * Please note that this API will change in ICU 3.6 and will use an ulocdata object. + * + * @param localeID The id of the locale for which the measurement system to be retrieved. + * @param status Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return UMeasurementSystem the measurement system used in the locale. + * @stable ICU 2.8 + */ +U_CAPI UMeasurementSystem U_EXPORT2 +ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status); + +/** + * Returns the element gives the normal business letter size, and customary units. + * The units for the numbers are always in milli-meters. + * For US since 8.5 and 11 do not yeild an integral value when converted to milli-meters, + * the values are rounded off. + * So for A4 size paper the height and width are 297 mm and 210 mm repectively, + * and for US letter size the height and width are 279 mm and 216 mm respectively. + * Please note that this API will change in ICU 3.6 and will use an ulocdata object. + * + * @param localeID The id of the locale for which the paper size information to be retrieved. + * @param height A pointer to int to recieve the height information. + * @param width A pointer to int to recieve the width information. + * @param status Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @stable ICU 2.8 + */ +U_CAPI void U_EXPORT2 +ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status); + +/** + * Return the current CLDR version used by the library. + * @param versionArray fillin that will recieve the version number + * @param status error code - could be U_MISSING_RESOURCE_ERROR if the version was not found. + * @stable ICU 4.2 + */ +U_CAPI void U_EXPORT2 +ulocdata_getCLDRVersion(UVersionInfo versionArray, UErrorCode *status); + +/** + * Returns locale display pattern associated with a locale. + * + * @param uld Pointer to the locale data object from which the + * exemplar character set is to be retrieved. + * @param pattern locale display pattern for locale. + * @param patternCapacity the size of the buffer to store the locale display + * pattern with. + * @param status Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return the actual buffer size needed for localeDisplayPattern. If it's greater + * than patternCapacity, the returned pattern will be truncated. + * + * @stable ICU 4.2 + */ +U_CAPI int32_t U_EXPORT2 +ulocdata_getLocaleDisplayPattern(ULocaleData *uld, + UChar *pattern, + int32_t patternCapacity, + UErrorCode *status); + + +/** + * Returns locale separator associated with a locale. + * + * @param uld Pointer to the locale data object from which the + * exemplar character set is to be retrieved. + * @param separator locale separator for locale. + * @param separatorCapacity the size of the buffer to store the locale + * separator with. + * @param status Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return the actual buffer size needed for localeSeparator. If it's greater + * than separatorCapacity, the returned separator will be truncated. + * + * @stable ICU 4.2 + */ +U_CAPI int32_t U_EXPORT2 +ulocdata_getLocaleSeparator(ULocaleData *uld, + UChar *separator, + int32_t separatorCapacity, + UErrorCode *status); +#endif + +// umsg.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/******************************************************************** + * COPYRIGHT: + * Copyright (c) 1997-2011, International Business Machines Corporation and + * others. All Rights Reserved. + * Copyright (C) 2010 , Yahoo! Inc. + ******************************************************************** + * + * file name: umsg.h + * encoding: UTF-8 + * tab size: 8 (not used) + * indentation:4 + * + * Change history: + * + * 08/5/2001 Ram Added C wrappers for C++ API. + ********************************************************************/ + +#ifndef UMSG_H +#define UMSG_H + + +#if !UCONFIG_NO_FORMATTING + +#include + + +/** + * \file + * \brief C API: MessageFormat + * + *

MessageFormat C API

+ * + *

MessageFormat prepares strings for display to users, + * with optional arguments (variables/placeholders). + * The arguments can occur in any order, which is necessary for translation + * into languages with different grammars. + * + *

The opaque UMessageFormat type is a thin C wrapper around + * a C++ MessageFormat. It is constructed from a pattern string + * with arguments in {curly braces} which will be replaced by formatted values. + * + *

Currently, the C API supports only numbered arguments. + * + *

For details about the pattern syntax and behavior, + * especially about the ASCII apostrophe vs. the + * real apostrophe (single quote) character \htmlonly’\endhtmlonly (U+2019), + * see the C++ MessageFormat class documentation. + * + *

Here are some examples of C API usage: + * Example 1: + *

+ * \code
+ *     UChar *result, *tzID, *str;
+ *     UChar pattern[100];
+ *     int32_t resultLengthOut, resultlength;
+ *     UCalendar *cal;
+ *     UDate d1;
+ *     UDateFormat *def1;
+ *     UErrorCode status = U_ZERO_ERROR;
+ *
+ *     str=(UChar*)malloc(sizeof(UChar) * (strlen("disturbance in force") +1));
+ *     u_uastrcpy(str, "disturbance in force");
+ *     tzID=(UChar*)malloc(sizeof(UChar) * 4);
+ *     u_uastrcpy(tzID, "PST");
+ *     cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status);
+ *     ucal_setDateTime(cal, 1999, UCAL_MARCH, 18, 0, 0, 0, &status);
+ *     d1=ucal_getMillis(cal, &status);
+ *     u_uastrcpy(pattern, "On {0, date, long}, there was a {1} on planet {2,number,integer}");
+ *     resultlength=0;
+ *     resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status, d1, str, 7);
+ *     if(status==U_BUFFER_OVERFLOW_ERROR){
+ *         status=U_ZERO_ERROR;
+ *         resultlength=resultLengthOut+1;
+ *         result=(UChar*)realloc(result, sizeof(UChar) * resultlength);
+ *         u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, d1, str, 7);
+ *     }
+ *     printf("%s\n", austrdup(result) );//austrdup( a function used to convert UChar* to char*)
+ *     //output>: "On March 18, 1999, there was a disturbance in force on planet 7
+ * \endcode
+ * 
+ * Typically, the message format will come from resources, and the + * arguments will be dynamically set at runtime. + *

+ * Example 2: + *

+ * \code
+ *     UChar* str;
+ *     UErrorCode status = U_ZERO_ERROR;
+ *     UChar *result;
+ *     UChar pattern[100];
+ *     int32_t resultlength, resultLengthOut, i;
+ *     double testArgs= { 100.0, 1.0, 0.0};
+ *
+ *     str=(UChar*)malloc(sizeof(UChar) * 10);
+ *     u_uastrcpy(str, "MyDisk");
+ *     u_uastrcpy(pattern, "The disk {1} contains {0,choice,0#no files|1#one file|1<{0,number,integer} files}");
+ *     for(i=0; i<3; i++){
+ *       resultlength=0; 
+ *       resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status, testArgs[i], str); 
+ *       if(status==U_BUFFER_OVERFLOW_ERROR){
+ *         status=U_ZERO_ERROR;
+ *         resultlength=resultLengthOut+1;
+ *         result=(UChar*)malloc(sizeof(UChar) * resultlength);
+ *         u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, testArgs[i], str);
+ *       }
+ *       printf("%s\n", austrdup(result) );  //austrdup( a function used to convert UChar* to char*)
+ *       free(result);
+ *     }
+ *     // output, with different testArgs:
+ *     // output: The disk "MyDisk" contains 100 files.
+ *     // output: The disk "MyDisk" contains one file.
+ *     // output: The disk "MyDisk" contains no files.
+ * \endcode
+ *  
+ * + * + * Example 3: + *
+ * \code
+ * UChar* str;
+ * UChar* str1;
+ * UErrorCode status = U_ZERO_ERROR;
+ * UChar *result;
+ * UChar pattern[100];
+ * UChar expected[100];
+ * int32_t resultlength,resultLengthOut;
+
+ * str=(UChar*)malloc(sizeof(UChar) * 25);
+ * u_uastrcpy(str, "Kirti");
+ * str1=(UChar*)malloc(sizeof(UChar) * 25);
+ * u_uastrcpy(str1, "female");
+ * log_verbose("Testing message format with Select test #1\n:");
+ * u_uastrcpy(pattern, "{0} est {1, select, female {all\\u00E9e} other {all\\u00E9}} \\u00E0 Paris.");
+ * u_uastrcpy(expected, "Kirti est all\\u00E9e \\u00E0 Paris.");
+ * resultlength=0;
+ * resultLengthOut=u_formatMessage( "fr", pattern, u_strlen(pattern), NULL, resultlength, &status, str , str1);
+ * if(status==U_BUFFER_OVERFLOW_ERROR)
+ *  {
+ *      status=U_ZERO_ERROR;
+ *      resultlength=resultLengthOut+1;
+ *      result=(UChar*)malloc(sizeof(UChar) * resultlength);
+ *      u_formatMessage( "fr", pattern, u_strlen(pattern), result, resultlength, &status, str , str1);
+ *      if(u_strcmp(result, expected)==0)
+ *          log_verbose("PASS: MessagFormat successful on Select test#1\n");
+ *      else{
+ *          log_err("FAIL: Error in MessageFormat on Select test#1\n GOT %s EXPECTED %s\n", austrdup(result),
+ *          austrdup(expected) );
+ *      }
+ *      free(result);
+ * }
+ * \endcode
+ *  
+ */ + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param locale The locale for which the message will be formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments specified + * in pattern. + * @return The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @see u_parseMessage + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_formatMessage(const char *locale, + const UChar *pattern, + int32_t patternLength, + UChar *result, + int32_t resultLength, + UErrorCode *status, + ...); + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param locale The locale for which the message will be formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param ap A variable-length argument list containing the arguments specified + * @param status A pointer to an UErrorCode to receive any errors + * in pattern. + * @return The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @see u_parseMessage + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_vformatMessage( const char *locale, + const UChar *pattern, + int32_t patternLength, + UChar *result, + int32_t resultLength, + va_list ap, + UErrorCode *status); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #u_formatMessage }. + * @param locale The locale for which the message is formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments + * specified in pattern. + * @see u_formatMessage + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +u_parseMessage( const char *locale, + const UChar *pattern, + int32_t patternLength, + const UChar *source, + int32_t sourceLength, + UErrorCode *status, + ...); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #u_formatMessage }. + * @param locale The locale for which the message is formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param ap A variable-length argument list containing the arguments + * @param status A pointer to an UErrorCode to receive any errors + * specified in pattern. + * @see u_formatMessage + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +u_vparseMessage(const char *locale, + const UChar *pattern, + int32_t patternLength, + const UChar *source, + int32_t sourceLength, + va_list ap, + UErrorCode *status); + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param locale The locale for which the message will be formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments specified + * in pattern. + * @param parseError A pointer to UParseError to receive information about errors + * occurred during parsing. + * @return The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @see u_parseMessage + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_formatMessageWithError( const char *locale, + const UChar *pattern, + int32_t patternLength, + UChar *result, + int32_t resultLength, + UParseError *parseError, + UErrorCode *status, + ...); + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param locale The locale for which the message will be formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param parseError A pointer to UParseError to receive information about errors + * occurred during parsing. + * @param ap A variable-length argument list containing the arguments specified + * @param status A pointer to an UErrorCode to receive any errors + * in pattern. + * @return The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +u_vformatMessageWithError( const char *locale, + const UChar *pattern, + int32_t patternLength, + UChar *result, + int32_t resultLength, + UParseError* parseError, + va_list ap, + UErrorCode *status); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #u_formatMessage }. + * @param locale The locale for which the message is formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param parseError A pointer to UParseError to receive information about errors + * occurred during parsing. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments + * specified in pattern. + * @see u_formatMessage + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +u_parseMessageWithError(const char *locale, + const UChar *pattern, + int32_t patternLength, + const UChar *source, + int32_t sourceLength, + UParseError *parseError, + UErrorCode *status, + ...); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #u_formatMessage }. + * @param locale The locale for which the message is formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param ap A variable-length argument list containing the arguments + * @param parseError A pointer to UParseError to receive information about errors + * occurred during parsing. + * @param status A pointer to an UErrorCode to receive any errors + * specified in pattern. + * @see u_formatMessage + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +u_vparseMessageWithError(const char *locale, + const UChar *pattern, + int32_t patternLength, + const UChar *source, + int32_t sourceLength, + va_list ap, + UParseError *parseError, + UErrorCode* status); + +/*----------------------- New experimental API --------------------------- */ +/** + * The message format object + * @stable ICU 2.0 + */ +typedef void* UMessageFormat; + + +/** + * Open a message formatter with given pattern and for the given locale. + * @param pattern A pattern specifying the format to use. + * @param patternLength Length of the pattern to use + * @param locale The locale for which the messages are formatted. + * @param parseError A pointer to UParseError struct to receive any errors + * occurred during parsing. Can be NULL. + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UMessageFormat to use for formatting + * messages, or 0 if an error occurred. + * @stable ICU 2.0 + */ +U_CAPI UMessageFormat* U_EXPORT2 +umsg_open( const UChar *pattern, + int32_t patternLength, + const char *locale, + UParseError *parseError, + UErrorCode *status); + +/** + * Close a UMessageFormat. + * Once closed, a UMessageFormat may no longer be used. + * @param format The formatter to close. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +umsg_close(UMessageFormat* format); + + +/** + * Open a copy of a UMessageFormat. + * This function performs a deep copy. + * @param fmt The formatter to copy + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UDateFormat identical to fmt. + * @stable ICU 2.0 + */ +U_CAPI UMessageFormat U_EXPORT2 +umsg_clone(const UMessageFormat *fmt, + UErrorCode *status); + +/** + * Sets the locale. This locale is used for fetching default number or date + * format information. + * @param fmt The formatter to set + * @param locale The locale the formatter should use. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +umsg_setLocale(UMessageFormat *fmt, + const char* locale); + +/** + * Gets the locale. This locale is used for fetching default number or date + * format information. + * @param fmt The formatter to querry + * @return the locale. + * @stable ICU 2.0 + */ +U_CAPI const char* U_EXPORT2 +umsg_getLocale(const UMessageFormat *fmt); + +/** + * Sets the pattern. + * @param fmt The formatter to use + * @param pattern The pattern to be applied. + * @param patternLength Length of the pattern to use + * @param parseError Struct to receive information on position + * of error if an error is encountered.Can be NULL. + * @param status Output param set to success/failure code on + * exit. If the pattern is invalid, this will be + * set to a failure result. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +umsg_applyPattern( UMessageFormat *fmt, + const UChar* pattern, + int32_t patternLength, + UParseError* parseError, + UErrorCode* status); + +/** + * Gets the pattern. + * @param fmt The formatter to use + * @param result A pointer to a buffer to receive the pattern. + * @param resultLength The maximum size of result. + * @param status Output param set to success/failure code on + * exit. If the pattern is invalid, this will be + * set to a failure result. + * @return the pattern of the format + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +umsg_toPattern(const UMessageFormat *fmt, + UChar* result, + int32_t resultLength, + UErrorCode* status); + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param fmt The formatter to use + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments + * specified in pattern. + * @return The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +umsg_format( const UMessageFormat *fmt, + UChar *result, + int32_t resultLength, + UErrorCode *status, + ...); + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param fmt The formatter to use + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param ap A variable-length argument list containing the arguments + * @param status A pointer to an UErrorCode to receive any errors + * specified in pattern. + * @return The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +umsg_vformat( const UMessageFormat *fmt, + UChar *result, + int32_t resultLength, + va_list ap, + UErrorCode *status); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #umsg_format }. + * @param fmt The formatter to use + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param count Output param to receive number of elements returned. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments + * specified in pattern. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +umsg_parse( const UMessageFormat *fmt, + const UChar *source, + int32_t sourceLength, + int32_t *count, + UErrorCode *status, + ...); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #umsg_format }. + * @param fmt The formatter to use + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param count Output param to receive number of elements returned. + * @param ap A variable-length argument list containing the arguments + * @param status A pointer to an UErrorCode to receive any errors + * specified in pattern. + * @see u_formatMessage + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +umsg_vparse(const UMessageFormat *fmt, + const UChar *source, + int32_t sourceLength, + int32_t *count, + va_list ap, + UErrorCode *status); + + +/** + * Convert an 'apostrophe-friendly' pattern into a standard + * pattern. Standard patterns treat all apostrophes as + * quotes, which is problematic in some languages, e.g. + * French, where apostrophe is commonly used. This utility + * assumes that only an unpaired apostrophe immediately before + * a brace is a true quote. Other unpaired apostrophes are paired, + * and the resulting standard pattern string is returned. + * + *

Note it is not guaranteed that the returned pattern + * is indeed a valid pattern. The only effect is to convert + * between patterns having different quoting semantics. + * + * @param pattern the 'apostrophe-friendly' patttern to convert + * @param patternLength the length of pattern, or -1 if unknown and pattern is null-terminated + * @param dest the buffer for the result, or NULL if preflight only + * @param destCapacity the length of the buffer, or 0 if preflighting + * @param ec the error code + * @return the length of the resulting text, not including trailing null + * if buffer has room for the trailing null, it is provided, otherwise + * not + * @stable ICU 3.4 + */ +U_CAPI int32_t U_EXPORT2 +umsg_autoQuoteApostrophe(const UChar* pattern, + int32_t patternLength, + UChar* dest, + int32_t destCapacity, + UErrorCode* ec); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// unirepl.h +// No supported content + +// unum.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* Copyright (C) 1997-2015, International Business Machines Corporation and others. +* All Rights Reserved. +* Modification History: +* +* Date Name Description +* 06/24/99 helena Integrated Alan's NF enhancements and Java2 bug fixes +******************************************************************************* +*/ + +#ifndef _UNUM +#define _UNUM + + +#if !UCONFIG_NO_FORMATTING + + + +/** + * \file + * \brief C API: Compatibility APIs for number formatting. + * + *

Number Format C API

+ * + *

IMPORTANT: New users with are strongly encouraged to + * see if unumberformatter.h fits their use case. Although not deprecated, + * this header is provided for backwards compatibility only. + * + * Number Format C API Provides functions for + * formatting and parsing a number. Also provides methods for + * determining which locales have number formats, and what their names + * are. + *

+ * UNumberFormat helps you to format and parse numbers for any locale. + * Your code can be completely independent of the locale conventions + * for decimal points, thousands-separators, or even the particular + * decimal digits used, or whether the number format is even decimal. + * There are different number format styles like decimal, currency, + * percent and spellout. + *

+ * To format a number for the current Locale, use one of the static + * factory methods: + *

+ * \code
+ *    UChar myString[20];
+ *    double myNumber = 7.0;
+ *    UErrorCode status = U_ZERO_ERROR;
+ *    UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
+ *    unum_formatDouble(nf, myNumber, myString, 20, NULL, &status);
+ *    printf(" Example 1: %s\n", austrdup(myString) ); //austrdup( a function used to convert UChar* to char*)
+ * \endcode
+ * 
+ * If you are formatting multiple numbers, it is more efficient to get + * the format and use it multiple times so that the system doesn't + * have to fetch the information about the local language and country + * conventions multiple times. + *
+ * \code
+ * uint32_t i, resultlength, reslenneeded;
+ * UErrorCode status = U_ZERO_ERROR;
+ * UFieldPosition pos;
+ * uint32_t a[] = { 123, 3333, -1234567 };
+ * const uint32_t a_len = sizeof(a) / sizeof(a[0]);
+ * UNumberFormat* nf;
+ * UChar* result = NULL;
+ *
+ * nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
+ * for (i = 0; i < a_len; i++) {
+ *    resultlength=0;
+ *    reslenneeded=unum_format(nf, a[i], NULL, resultlength, &pos, &status);
+ *    result = NULL;
+ *    if(status==U_BUFFER_OVERFLOW_ERROR){
+ *       status=U_ZERO_ERROR;
+ *       resultlength=reslenneeded+1;
+ *       result=(UChar*)malloc(sizeof(UChar) * resultlength);
+ *       unum_format(nf, a[i], result, resultlength, &pos, &status);
+ *    }
+ *    printf( " Example 2: %s\n", austrdup(result));
+ *    free(result);
+ * }
+ * \endcode
+ * 
+ * To format a number for a different Locale, specify it in the + * call to unum_open(). + *
+ * \code
+ *     UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, "fr_FR", NULL, &success)
+ * \endcode
+ * 
+ * You can use a NumberFormat API unum_parse() to parse. + *
+ * \code
+ *    UErrorCode status = U_ZERO_ERROR;
+ *    int32_t pos=0;
+ *    int32_t num;
+ *    num = unum_parse(nf, str, u_strlen(str), &pos, &status);
+ * \endcode
+ * 
+ * Use UNUM_DECIMAL to get the normal number format for that country. + * There are other static options available. Use UNUM_CURRENCY + * to get the currency number format for that country. Use UNUM_PERCENT + * to get a format for displaying percentages. With this format, a + * fraction from 0.53 is displayed as 53%. + *

+ * Use a pattern to create either a DecimalFormat or a RuleBasedNumberFormat + * formatter. The pattern must conform to the syntax defined for those + * formatters. + *

+ * You can also control the display of numbers with such function as + * unum_getAttributes() and unum_setAttributes(), which let you set the + * minimum fraction digits, grouping, etc. + * @see UNumberFormatAttributes for more details + *

+ * You can also use forms of the parse and format methods with + * ParsePosition and UFieldPosition to allow you to: + *

    + *
  • (a) progressively parse through pieces of a string. + *
  • (b) align the decimal point and other areas. + *
+ *

+ * It is also possible to change or set the symbols used for a particular + * locale like the currency symbol, the grouping separator , monetary separator + * etc by making use of functions unum_setSymbols() and unum_getSymbols(). + */ + +/** A number formatter. + * For usage in C programs. + * @stable ICU 2.0 + */ +typedef void* UNumberFormat; + +/** The possible number format styles. + * @stable ICU 2.0 + */ +typedef enum UNumberFormatStyle { + /** + * Decimal format defined by a pattern string. + * @stable ICU 3.0 + */ + UNUM_PATTERN_DECIMAL=0, + /** + * Decimal format ("normal" style). + * @stable ICU 2.0 + */ + UNUM_DECIMAL=1, + /** + * Currency format (generic). + * Defaults to UNUM_CURRENCY_STANDARD style + * (using currency symbol, e.g., "$1.00", with non-accounting + * style for negative values e.g. using minus sign). + * The specific style may be specified using the -cf- locale key. + * @stable ICU 2.0 + */ + UNUM_CURRENCY=2, + /** + * Percent format + * @stable ICU 2.0 + */ + UNUM_PERCENT=3, + /** + * Scientific format + * @stable ICU 2.1 + */ + UNUM_SCIENTIFIC=4, + /** + * Spellout rule-based format. The default ruleset can be specified/changed using + * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets + * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS. + * @stable ICU 2.0 + */ + UNUM_SPELLOUT=5, + /** + * Ordinal rule-based format . The default ruleset can be specified/changed using + * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets + * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS. + * @stable ICU 3.0 + */ + UNUM_ORDINAL=6, + /** + * Duration rule-based format + * @stable ICU 3.0 + */ + UNUM_DURATION=7, + /** + * Numbering system rule-based format + * @stable ICU 4.2 + */ + UNUM_NUMBERING_SYSTEM=8, + /** + * Rule-based format defined by a pattern string. + * @stable ICU 3.0 + */ + UNUM_PATTERN_RULEBASED=9, + /** + * Currency format with an ISO currency code, e.g., "USD1.00". + * @stable ICU 4.8 + */ + UNUM_CURRENCY_ISO=10, + /** + * Currency format with a pluralized currency name, + * e.g., "1.00 US dollar" and "3.00 US dollars". + * @stable ICU 4.8 + */ + UNUM_CURRENCY_PLURAL=11, + /** + * Currency format for accounting, e.g., "($3.00)" for + * negative currency amount instead of "-$3.00" ({@link #UNUM_CURRENCY}). + * Overrides any style specified using -cf- key in locale. + * @stable ICU 53 + */ + UNUM_CURRENCY_ACCOUNTING=12, + /** + * Currency format with a currency symbol given CASH usage, e.g., + * "NT$3" instead of "NT$3.23". + * @stable ICU 54 + */ + UNUM_CASH_CURRENCY=13, + /** + * Decimal format expressed using compact notation + * (short form, corresponds to UNumberCompactStyle=UNUM_SHORT) + * e.g. "23K", "45B" + * @stable ICU 56 + */ + UNUM_DECIMAL_COMPACT_SHORT=14, + /** + * Decimal format expressed using compact notation + * (long form, corresponds to UNumberCompactStyle=UNUM_LONG) + * e.g. "23 thousand", "45 billion" + * @stable ICU 56 + */ + UNUM_DECIMAL_COMPACT_LONG=15, + /** + * Currency format with a currency symbol, e.g., "$1.00", + * using non-accounting style for negative values (e.g. minus sign). + * Overrides any style specified using -cf- key in locale. + * @stable ICU 56 + */ + UNUM_CURRENCY_STANDARD=16, + + + /** + * Default format + * @stable ICU 2.0 + */ + UNUM_DEFAULT = UNUM_DECIMAL, + /** + * Alias for UNUM_PATTERN_DECIMAL + * @stable ICU 3.0 + */ + UNUM_IGNORE = UNUM_PATTERN_DECIMAL +} UNumberFormatStyle; + +/** The possible number format rounding modes. + * + *

+ * For more detail on rounding modes, see: + * https://unicode-org.github.io/icu/userguide/format_parse/numbers/rounding-modes + * + * @stable ICU 2.0 + */ +typedef enum UNumberFormatRoundingMode { + UNUM_ROUND_CEILING, + UNUM_ROUND_FLOOR, + UNUM_ROUND_DOWN, + UNUM_ROUND_UP, + /** + * Half-even rounding + * @stable, ICU 3.8 + */ + UNUM_ROUND_HALFEVEN, + UNUM_ROUND_HALFDOWN = UNUM_ROUND_HALFEVEN + 1, + UNUM_ROUND_HALFUP, + /** + * ROUND_UNNECESSARY reports an error if formatted result is not exact. + * @stable ICU 4.8 + */ + UNUM_ROUND_UNNECESSARY, +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + /** + * Rounds ties toward the odd number. + * @stable ICU 69 + */ + UNUM_ROUND_HALF_ODD, + /** + * Rounds ties toward +∞. + * @stable ICU 69 + */ + UNUM_ROUND_HALF_CEILING, + /** + * Rounds ties toward -∞. + * @stable ICU 69 + */ + UNUM_ROUND_HALF_FLOOR, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +} UNumberFormatRoundingMode; + +/** The possible number format pad positions. + * @stable ICU 2.0 + */ +typedef enum UNumberFormatPadPosition { + UNUM_PAD_BEFORE_PREFIX, + UNUM_PAD_AFTER_PREFIX, + UNUM_PAD_BEFORE_SUFFIX, + UNUM_PAD_AFTER_SUFFIX +} UNumberFormatPadPosition; + +/** + * Constants for specifying short or long format. + * @stable ICU 51 + */ +typedef enum UNumberCompactStyle { + /** @stable ICU 51 */ + UNUM_SHORT, + /** @stable ICU 51 */ + UNUM_LONG + /** @stable ICU 51 */ +} UNumberCompactStyle; + +/** + * Constants for specifying currency spacing + * @stable ICU 4.8 + */ +enum UCurrencySpacing { + /** @stable ICU 4.8 */ + UNUM_CURRENCY_MATCH, + /** @stable ICU 4.8 */ + UNUM_CURRENCY_SURROUNDING_MATCH, + /** @stable ICU 4.8 */ + UNUM_CURRENCY_INSERT, + + /* Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API, + * it is needed for layout of DecimalFormatSymbols object. */ +#ifndef U_FORCE_HIDE_DEPRECATED_API + /** + * One more than the highest normal UCurrencySpacing value. + * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. + */ + UNUM_CURRENCY_SPACING_COUNT +#endif // U_FORCE_HIDE_DEPRECATED_API +}; +typedef enum UCurrencySpacing UCurrencySpacing; /**< @stable ICU 4.8 */ + + +/** + * FieldPosition and UFieldPosition selectors for format fields + * defined by NumberFormat and UNumberFormat. + * @stable ICU 49 + */ +typedef enum UNumberFormatFields { + /** @stable ICU 49 */ + UNUM_INTEGER_FIELD, + /** @stable ICU 49 */ + UNUM_FRACTION_FIELD, + /** @stable ICU 49 */ + UNUM_DECIMAL_SEPARATOR_FIELD, + /** @stable ICU 49 */ + UNUM_EXPONENT_SYMBOL_FIELD, + /** @stable ICU 49 */ + UNUM_EXPONENT_SIGN_FIELD, + /** @stable ICU 49 */ + UNUM_EXPONENT_FIELD, + /** @stable ICU 49 */ + UNUM_GROUPING_SEPARATOR_FIELD, + /** @stable ICU 49 */ + UNUM_CURRENCY_FIELD, + /** @stable ICU 49 */ + UNUM_PERCENT_FIELD, + /** @stable ICU 49 */ + UNUM_PERMILL_FIELD, + /** @stable ICU 49 */ + UNUM_SIGN_FIELD, + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + /** @stable ICU 64 */ + UNUM_MEASURE_UNIT_FIELD, + /** @stable ICU 64 */ + UNUM_COMPACT_FIELD, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +} UNumberFormatFields; + +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Selectors with special numeric values to use locale default minimum grouping + * digits for the DecimalFormat/UNumberFormat setMinimumGroupingDigits method. + * Do not use these constants with the [U]NumberFormatter API. + * + * @stable ICU 68 + */ +typedef enum UNumberFormatMinimumGroupingDigits { + /** + * Display grouping using the default strategy for all locales. + * @stable ICU 68 + */ + UNUM_MINIMUM_GROUPING_DIGITS_AUTO = -2, + /** + * Display grouping using locale defaults, except do not show grouping on + * values smaller than 10000 (such that there is a minimum of two digits + * before the first separator). + * @stable ICU 68 + */ + UNUM_MINIMUM_GROUPING_DIGITS_MIN2 = -3, +} UNumberFormatMinimumGroupingDigits; +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Create and return a new UNumberFormat for formatting and parsing + * numbers. A UNumberFormat may be used to format numbers by calling + * {@link #unum_format }, and to parse numbers by calling {@link #unum_parse }. + * The caller must call {@link #unum_close } when done to release resources + * used by this object. + * @param style The type of number format to open: one of + * UNUM_DECIMAL, UNUM_CURRENCY, UNUM_PERCENT, UNUM_SCIENTIFIC, + * UNUM_CURRENCY_ISO, UNUM_CURRENCY_PLURAL, UNUM_SPELLOUT, + * UNUM_ORDINAL, UNUM_DURATION, UNUM_NUMBERING_SYSTEM, + * UNUM_PATTERN_DECIMAL, UNUM_PATTERN_RULEBASED, or UNUM_DEFAULT. + * If UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED is passed then the + * number format is opened using the given pattern, which must conform + * to the syntax described in DecimalFormat or RuleBasedNumberFormat, + * respectively. + * + *

NOTE:: New users with are strongly encouraged to + * use unumf_openForSkeletonAndLocale instead of unum_open. + * + * @param pattern A pattern specifying the format to use. + * This parameter is ignored unless the style is + * UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED. + * @param patternLength The number of characters in the pattern, or -1 + * if null-terminated. This parameter is ignored unless the style is + * UNUM_PATTERN. + * @param locale A locale identifier to use to determine formatting + * and parsing conventions, or NULL to use the default locale. + * @param parseErr A pointer to a UParseError struct to receive the + * details of any parsing errors, or NULL if no parsing error details + * are desired. + * @param status A pointer to an input-output UErrorCode. + * @return A pointer to a newly created UNumberFormat, or NULL if an + * error occurred. + * @see unum_close + * @see DecimalFormat + * @stable ICU 2.0 + */ +U_CAPI UNumberFormat* U_EXPORT2 +unum_open( UNumberFormatStyle style, + const UChar* pattern, + int32_t patternLength, + const char* locale, + UParseError* parseErr, + UErrorCode* status); + + +/** +* Close a UNumberFormat. +* Once closed, a UNumberFormat may no longer be used. +* @param fmt The formatter to close. +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +unum_close(UNumberFormat* fmt); + + +/** + * Open a copy of a UNumberFormat. + * This function performs a deep copy. + * @param fmt The format to copy + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UNumberFormat identical to fmt. + * @stable ICU 2.0 + */ +U_CAPI UNumberFormat* U_EXPORT2 +unum_clone(const UNumberFormat *fmt, + UErrorCode *status); + +/** +* Format an integer using a UNumberFormat. +* The integer will be formatted according to the UNumberFormat's locale. +* @param fmt The formatter to use. +* @param number The number to format. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_formatInt64 +* @see unum_formatDouble +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_format( const UNumberFormat* fmt, + int32_t number, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, + UErrorCode* status); + +/** +* Format an int64 using a UNumberFormat. +* The int64 will be formatted according to the UNumberFormat's locale. +* @param fmt The formatter to use. +* @param number The number to format. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_format +* @see unum_formatDouble +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_formatInt64(const UNumberFormat *fmt, + int64_t number, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, + UErrorCode* status); + +/** +* Format a double using a UNumberFormat. +* The double will be formatted according to the UNumberFormat's locale. +* @param fmt The formatter to use. +* @param number The number to format. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_format +* @see unum_formatInt64 +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_formatDouble( const UNumberFormat* fmt, + double number, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, /* 0 if ignore */ + UErrorCode* status); + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +/** +* Format a double using a UNumberFormat according to the UNumberFormat's locale, +* and initialize a UFieldPositionIterator that enumerates the subcomponents of +* the resulting string. +* +* @param format +* The formatter to use. +* @param number +* The number to format. +* @param result +* A pointer to a buffer to receive the NULL-terminated formatted +* number. If the formatted number fits into dest but cannot be +* NULL-terminated (length == resultLength) then the error code is set +* to U_STRING_NOT_TERMINATED_WARNING. If the formatted number doesn't +* fit into result then the error code is set to +* U_BUFFER_OVERFLOW_ERROR. +* @param resultLength +* The maximum size of result. +* @param fpositer +* A pointer to a UFieldPositionIterator created by {@link #ufieldpositer_open} +* (may be NULL if field position information is not needed, but in this +* case it's preferable to use {@link #unum_formatDouble}). Iteration +* information already present in the UFieldPositionIterator is deleted, +* and the iterator is reset to apply to the fields in the formatted +* string created by this function call. The field values and indexes +* returned by {@link #ufieldpositer_next} represent fields denoted by +* the UNumberFormatFields enum. Fields are not returned in a guaranteed +* order. Fields cannot overlap, but they may nest. For example, 1234 +* could format as "1,234" which might consist of a grouping separator +* field for ',' and an integer field encompassing the entire string. +* @param status +* A pointer to an UErrorCode to receive any errors +* @return +* The total buffer size needed; if greater than resultLength, the +* output was truncated. +* @see unum_formatDouble +* @see unum_parse +* @see unum_parseDouble +* @see UFieldPositionIterator +* @see UNumberFormatFields +* @stable ICU 59 +*/ +U_CAPI int32_t U_EXPORT2 +unum_formatDoubleForFields(const UNumberFormat* format, + double number, + UChar* result, + int32_t resultLength, + UFieldPositionIterator* fpositer, + UErrorCode* status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +/** +* Format a decimal number using a UNumberFormat. +* The number will be formatted according to the UNumberFormat's locale. +* The syntax of the input number is a "numeric string" +* as defined in the Decimal Arithmetic Specification, available at +* http://speleotrove.com/decimal +* @param fmt The formatter to use. +* @param number The number to format. +* @param length The length of the input number, or -1 if the input is nul-terminated. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case it is ignored. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_format +* @see unum_formatInt64 +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 4.4 +*/ +U_CAPI int32_t U_EXPORT2 +unum_formatDecimal( const UNumberFormat* fmt, + const char * number, + int32_t length, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, /* 0 if ignore */ + UErrorCode* status); + +/** + * Format a double currency amount using a UNumberFormat. + * The double will be formatted according to the UNumberFormat's locale. + * + * To format an exact decimal value with a currency, use + * `unum_setTextAttribute(UNUM_CURRENCY_CODE, ...)` followed by unum_formatDecimal. + * Your UNumberFormat must be created with the UNUM_CURRENCY style. Alternatively, + * consider using unumf_openForSkeletonAndLocale. + * + * @param fmt the formatter to use + * @param number the number to format + * @param currency the 3-letter null-terminated ISO 4217 currency code + * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If + * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) + * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number + * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. + * @param resultLength the maximum number of UChars to write to result + * @param pos a pointer to a UFieldPosition. On input, + * position->field is read. On output, position->beginIndex and + * position->endIndex indicate the beginning and ending indices of + * field number position->field, if such a field exists. This + * parameter may be NULL, in which case it is ignored. + * @param status a pointer to an input-output UErrorCode + * @return the total buffer size needed; if greater than resultLength, + * the output was truncated. + * @see unum_formatDouble + * @see unum_parseDoubleCurrency + * @see UFieldPosition + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +unum_formatDoubleCurrency(const UNumberFormat* fmt, + double number, + UChar* currency, + UChar* result, + int32_t resultLength, + UFieldPosition* pos, + UErrorCode* status); + +/** + * Format a UFormattable into a string. + * @param fmt the formatter to use + * @param number the number to format, as a UFormattable + * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If + * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) + * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number + * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. + * @param resultLength the maximum number of UChars to write to result + * @param pos a pointer to a UFieldPosition. On input, + * position->field is read. On output, position->beginIndex and + * position->endIndex indicate the beginning and ending indices of + * field number position->field, if such a field exists. This + * parameter may be NULL, in which case it is ignored. + * @param status a pointer to an input-output UErrorCode + * @return the total buffer size needed; if greater than resultLength, + * the output was truncated. Will return 0 on error. + * @see unum_parseToUFormattable + * @stable ICU 52 + */ +U_CAPI int32_t U_EXPORT2 +unum_formatUFormattable(const UNumberFormat* fmt, + const UFormattable *number, + UChar *result, + int32_t resultLength, + UFieldPosition *pos, + UErrorCode *status); + +/** +* Parse a string into an integer using a UNumberFormat. +* The string will be parsed according to the UNumberFormat's locale. +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed integer +* @see unum_parseInt64 +* @see unum_parseDouble +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_parse( const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + UErrorCode *status); + +/** +* Parse a string into an int64 using a UNumberFormat. +* The string will be parsed according to the UNumberFormat's locale. +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed integer +* @see unum_parse +* @see unum_parseDouble +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 2.8 +*/ +U_CAPI int64_t U_EXPORT2 +unum_parseInt64(const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + UErrorCode *status); + +/** +* Parse a string into a double using a UNumberFormat. +* The string will be parsed according to the UNumberFormat's locale. +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed double +* @see unum_parse +* @see unum_parseInt64 +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 2.0 +*/ +U_CAPI double U_EXPORT2 +unum_parseDouble( const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + UErrorCode *status); + + +/** +* Parse a number from a string into an unformatted numeric string using a UNumberFormat. +* The input string will be parsed according to the UNumberFormat's locale. +* The syntax of the output is a "numeric string" +* as defined in the Decimal Arithmetic Specification, available at +* http://speleotrove.com/decimal +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param outBuf A (char *) buffer to receive the parsed number as a string. The output string +* will be nul-terminated if there is sufficient space. +* @param outBufLength The size of the output buffer. May be zero, in which case +* the outBuf pointer may be NULL, and the function will return the +* size of the output string. +* @param status A pointer to an UErrorCode to receive any errors +* @return the length of the output string, not including any terminating nul. +* @see unum_parse +* @see unum_parseInt64 +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 4.4 +*/ +U_CAPI int32_t U_EXPORT2 +unum_parseDecimal(const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + char *outBuf, + int32_t outBufLength, + UErrorCode *status); + +/** + * Parse a string into a double and a currency using a UNumberFormat. + * The string will be parsed according to the UNumberFormat's locale. + * @param fmt the formatter to use + * @param text the text to parse + * @param textLength the length of text, or -1 if null-terminated + * @param parsePos a pointer to an offset index into text at which to + * begin parsing. On output, *parsePos will point after the last + * parsed character. This parameter may be NULL, in which case parsing + * begins at offset 0. + * @param currency a pointer to the buffer to receive the parsed null- + * terminated currency. This buffer must have a capacity of at least + * 4 UChars. + * @param status a pointer to an input-output UErrorCode + * @return the parsed double + * @see unum_parseDouble + * @see unum_formatDoubleCurrency + * @stable ICU 3.0 + */ +U_CAPI double U_EXPORT2 +unum_parseDoubleCurrency(const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t* parsePos, /* 0 = start */ + UChar* currency, + UErrorCode* status); + +/** + * Parse a UChar string into a UFormattable. + * Example code: + * \snippet test/cintltst/cnumtst.c unum_parseToUFormattable + * Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT + * and UNUM_DECIMAL_COMPACT_LONG. + * @param fmt the formatter to use + * @param result the UFormattable to hold the result. If NULL, a new UFormattable will be allocated (which the caller must close with ufmt_close). + * @param text the text to parse + * @param textLength the length of text, or -1 if null-terminated + * @param parsePos a pointer to an offset index into text at which to + * begin parsing. On output, *parsePos will point after the last + * parsed character. This parameter may be NULL in which case parsing + * begins at offset 0. + * @param status a pointer to an input-output UErrorCode + * @return the UFormattable. Will be ==result unless NULL was passed in for result, in which case it will be the newly opened UFormattable. + * @see ufmt_getType + * @see ufmt_close + * @stable ICU 52 + */ +U_CAPI UFormattable* U_EXPORT2 +unum_parseToUFormattable(const UNumberFormat* fmt, + UFormattable *result, + const UChar* text, + int32_t textLength, + int32_t* parsePos, /* 0 = start */ + UErrorCode* status); + +/** + * Set the pattern used by a UNumberFormat. This can only be used + * on a DecimalFormat, other formats return U_UNSUPPORTED_ERROR + * in the status. + * @param format The formatter to set. + * @param localized true if the pattern is localized, false otherwise. + * @param pattern The new pattern + * @param patternLength The length of pattern, or -1 if null-terminated. + * @param parseError A pointer to UParseError to receive information + * about errors occurred during parsing, or NULL if no parse error + * information is desired. + * @param status A pointer to an input-output UErrorCode. + * @see unum_toPattern + * @see DecimalFormat + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +unum_applyPattern( UNumberFormat *format, + UBool localized, + const UChar *pattern, + int32_t patternLength, + UParseError *parseError, + UErrorCode *status + ); + +/** +* Get a locale for which decimal formatting patterns are available. +* A UNumberFormat in a locale returned by this function will perform the correct +* formatting and parsing for the locale. The results of this call are not +* valid for rule-based number formats. +* @param localeIndex The index of the desired locale. +* @return A locale for which number formatting patterns are available, or 0 if none. +* @see unum_countAvailable +* @stable ICU 2.0 +*/ +U_CAPI const char* U_EXPORT2 +unum_getAvailable(int32_t localeIndex); + +/** +* Determine how many locales have decimal formatting patterns available. The +* results of this call are not valid for rule-based number formats. +* This function is useful for determining the loop ending condition for +* calls to {@link #unum_getAvailable }. +* @return The number of locales for which decimal formatting patterns are available. +* @see unum_getAvailable +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_countAvailable(void); + +#if UCONFIG_HAVE_PARSEALLINPUT +/* The UNumberFormatAttributeValue type cannot be #ifndef U_HIDE_INTERNAL_API, needed for .h variable declaration */ +/** + * @internal + */ +typedef enum UNumberFormatAttributeValue { + /** @internal */ + UNUM_FORMAT_ATTRIBUTE_VALUE_HIDDEN +} UNumberFormatAttributeValue; +#endif + +/** The possible UNumberFormat numeric attributes @stable ICU 2.0 */ +typedef enum UNumberFormatAttribute { + /** Parse integers only */ + UNUM_PARSE_INT_ONLY, + /** Use grouping separator */ + UNUM_GROUPING_USED, + /** Always show decimal point */ + UNUM_DECIMAL_ALWAYS_SHOWN, + /** Maximum integer digits */ + UNUM_MAX_INTEGER_DIGITS, + /** Minimum integer digits */ + UNUM_MIN_INTEGER_DIGITS, + /** Integer digits */ + UNUM_INTEGER_DIGITS, + /** Maximum fraction digits */ + UNUM_MAX_FRACTION_DIGITS, + /** Minimum fraction digits */ + UNUM_MIN_FRACTION_DIGITS, + /** Fraction digits */ + UNUM_FRACTION_DIGITS, + /** Multiplier */ + UNUM_MULTIPLIER, + /** Grouping size */ + UNUM_GROUPING_SIZE, + /** Rounding Mode */ + UNUM_ROUNDING_MODE, + /** Rounding increment */ + UNUM_ROUNDING_INCREMENT, + /** The width to which the output of format() is padded. */ + UNUM_FORMAT_WIDTH, + /** The position at which padding will take place. */ + UNUM_PADDING_POSITION, + /** Secondary grouping size */ + UNUM_SECONDARY_GROUPING_SIZE, + /** Use significant digits + * @stable ICU 3.0 */ + UNUM_SIGNIFICANT_DIGITS_USED, + /** Minimum significant digits + * @stable ICU 3.0 */ + UNUM_MIN_SIGNIFICANT_DIGITS, + /** Maximum significant digits + * @stable ICU 3.0 */ + UNUM_MAX_SIGNIFICANT_DIGITS, + /** Lenient parse mode used by rule-based formats. + * @stable ICU 3.0 + */ + UNUM_LENIENT_PARSE, +#if UCONFIG_HAVE_PARSEALLINPUT + /** Consume all input. (may use fastpath). Set to UNUM_YES (require fastpath), UNUM_NO (skip fastpath), or UNUM_MAYBE (heuristic). + * This is an internal ICU API. Do not use. + * @internal + */ + UNUM_PARSE_ALL_INPUT = 20, +#endif + /** + * Scale, which adjusts the position of the + * decimal point when formatting. Amounts will be multiplied by 10 ^ (scale) + * before they are formatted. The default value for the scale is 0 ( no adjustment ). + * + *

Example: setting the scale to 3, 123 formats as "123,000" + *

Example: setting the scale to -4, 123 formats as "0.0123" + * + * This setting is analogous to getMultiplierScale() and setMultiplierScale() in decimfmt.h. + * + * @stable ICU 51 */ + UNUM_SCALE = 21, + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + /** + * Minimum grouping digits; most commonly set to 2 to print "1000" instead of "1,000". + * See DecimalFormat::getMinimumGroupingDigits(). + * + * For better control over grouping strategies, use UNumberFormatter. + * + * @stable ICU 64 + */ + UNUM_MINIMUM_GROUPING_DIGITS = 22, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + /** + * if this attribute is set to 0, it is set to UNUM_CURRENCY_STANDARD purpose, + * otherwise it is UNUM_CASH_CURRENCY purpose + * Default: 0 (UNUM_CURRENCY_STANDARD purpose) + * @stable ICU 54 + */ + UNUM_CURRENCY_USAGE = 23, + + + /** If 1, specifies that if setting the "max integer digits" attribute would truncate a value, set an error status rather than silently truncating. + * For example, formatting the value 1234 with 4 max int digits would succeed, but formatting 12345 would fail. There is no effect on parsing. + * Default: 0 (not set) + * @stable ICU 50 + */ + UNUM_FORMAT_FAIL_IF_MORE_THAN_MAX_DIGITS = 0x1000, + /** + * if this attribute is set to 1, specifies that, if the pattern doesn't contain an exponent, the exponent will not be parsed. If the pattern does contain an exponent, this attribute has no effect. + * Has no effect on formatting. + * Default: 0 (unset) + * @stable ICU 50 + */ + UNUM_PARSE_NO_EXPONENT = 0x1001, + + /** + * if this attribute is set to 1, specifies that, if the pattern contains a + * decimal mark the input is required to have one. If this attribute is set to 0, + * specifies that input does not have to contain a decimal mark. + * Has no effect on formatting. + * Default: 0 (unset) + * @stable ICU 54 + */ + UNUM_PARSE_DECIMAL_MARK_REQUIRED = 0x1002, + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + /** + * Parsing: if set to 1, parsing is sensitive to case (lowercase/uppercase). + * + * @stable ICU 64 + */ + UNUM_PARSE_CASE_SENSITIVE = 0x1003, + + /** + * Formatting: if set to 1, whether to show the plus sign on non-negative numbers. + * + * For better control over sign display, use UNumberFormatter. + * + * @stable ICU 64 + */ + UNUM_SIGN_ALWAYS_SHOWN = 0x1004, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + +} UNumberFormatAttribute; + + +/** +* Get a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. +* @param fmt The formatter to query. +* @param attr The attribute to query; one of UNUM_PARSE_INT_ONLY, UNUM_GROUPING_USED, +* UNUM_DECIMAL_ALWAYS_SHOWN, UNUM_MAX_INTEGER_DIGITS, UNUM_MIN_INTEGER_DIGITS, UNUM_INTEGER_DIGITS, +* UNUM_MAX_FRACTION_DIGITS, UNUM_MIN_FRACTION_DIGITS, UNUM_FRACTION_DIGITS, UNUM_MULTIPLIER, +* UNUM_GROUPING_SIZE, UNUM_ROUNDING_MODE, UNUM_FORMAT_WIDTH, UNUM_PADDING_POSITION, UNUM_SECONDARY_GROUPING_SIZE, +* UNUM_SCALE, UNUM_MINIMUM_GROUPING_DIGITS. +* @return The value of attr, or -1 if the formatter doesn't have the requested attribute. The caller should use unum_hasAttribute() to tell if the attribute +* is available, rather than relaying on this function returning -1. +* @see unum_hasAttribute +* @see unum_setAttribute +* @see unum_getDoubleAttribute +* @see unum_setDoubleAttribute +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_getAttribute(const UNumberFormat* fmt, + UNumberFormatAttribute attr); + +/** +* Set a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. If the +* formatter does not understand the attribute, the call is ignored. Rule-based formatters only understand +* the lenient-parse attribute. The caller can use unum_hasAttribute() to find out if the formatter supports the attribute. +* @param fmt The formatter to set. +* @param attr The attribute to set; one of UNUM_PARSE_INT_ONLY, UNUM_GROUPING_USED, +* UNUM_DECIMAL_ALWAYS_SHOWN, UNUM_MAX_INTEGER_DIGITS, UNUM_MIN_INTEGER_DIGITS, UNUM_INTEGER_DIGITS, +* UNUM_MAX_FRACTION_DIGITS, UNUM_MIN_FRACTION_DIGITS, UNUM_FRACTION_DIGITS, UNUM_MULTIPLIER, +* UNUM_GROUPING_SIZE, UNUM_ROUNDING_MODE, UNUM_FORMAT_WIDTH, UNUM_PADDING_POSITION, UNUM_SECONDARY_GROUPING_SIZE, +* UNUM_LENIENT_PARSE, UNUM_SCALE, UNUM_MINIMUM_GROUPING_DIGITS. +* @param newValue The new value of attr. +* @see unum_hasAttribute +* @see unum_getAttribute +* @see unum_getDoubleAttribute +* @see unum_setDoubleAttribute +* @see unum_getTextAttribute +* @see unum_setTextAttribute +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +unum_setAttribute( UNumberFormat* fmt, + UNumberFormatAttribute attr, + int32_t newValue); + + +/** +* Get a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. +* If the formatter does not understand the attribute, -1 is returned. The caller should use unum_hasAttribute() +* to determine if the attribute is supported, rather than relying on this function returning -1. +* @param fmt The formatter to query. +* @param attr The attribute to query; e.g. UNUM_ROUNDING_INCREMENT. +* @return The value of attr, or -1 if the formatter doesn't understand the attribute. +* @see unum_hasAttribute +* @see unum_getAttribute +* @see unum_setAttribute +* @see unum_setDoubleAttribute +* @see unum_getTextAttribute +* @see unum_setTextAttribute +* @stable ICU 2.0 +*/ +U_CAPI double U_EXPORT2 +unum_getDoubleAttribute(const UNumberFormat* fmt, + UNumberFormatAttribute attr); + +/** +* Set a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. +* If the formatter does not understand the attribute, this call is ignored. The caller can use +* unum_hasAttribute() to tell in advance whether the formatter understands the attribute. +* @param fmt The formatter to set. +* @param attr The attribute to set; e.g. UNUM_ROUNDING_INCREMENT. +* @param newValue The new value of attr. +* @see unum_hasAttribute +* @see unum_getAttribute +* @see unum_setAttribute +* @see unum_getDoubleAttribute +* @see unum_getTextAttribute +* @see unum_setTextAttribute +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +unum_setDoubleAttribute( UNumberFormat* fmt, + UNumberFormatAttribute attr, + double newValue); + +/** The possible UNumberFormat text attributes @stable ICU 2.0*/ +typedef enum UNumberFormatTextAttribute { + /** Positive prefix */ + UNUM_POSITIVE_PREFIX, + /** Positive suffix */ + UNUM_POSITIVE_SUFFIX, + /** Negative prefix */ + UNUM_NEGATIVE_PREFIX, + /** Negative suffix */ + UNUM_NEGATIVE_SUFFIX, + /** The character used to pad to the format width. */ + UNUM_PADDING_CHARACTER, + /** The ISO currency code */ + UNUM_CURRENCY_CODE, + /** + * The default rule set, such as "%spellout-numbering-year:", "%spellout-cardinal:", + * "%spellout-ordinal-masculine-plural:", "%spellout-ordinal-feminine:", or + * "%spellout-ordinal-neuter:". The available public rulesets can be listed using + * unum_getTextAttribute with UNUM_PUBLIC_RULESETS. This is only available with + * rule-based formatters. + * @stable ICU 3.0 + */ + UNUM_DEFAULT_RULESET, + /** + * The public rule sets. This is only available with rule-based formatters. + * This is a read-only attribute. The public rulesets are returned as a + * single string, with each ruleset name delimited by ';' (semicolon). See the + * CLDR LDML spec for more information about RBNF rulesets: + * http://www.unicode.org/reports/tr35/tr35-numbers.html#Rule-Based_Number_Formatting + * @stable ICU 3.0 + */ + UNUM_PUBLIC_RULESETS +} UNumberFormatTextAttribute; + +/** +* Get a text attribute associated with a UNumberFormat. +* An example of a text attribute is the suffix for positive numbers. If the formatter +* does not understand the attribute, U_UNSUPPORTED_ERROR is returned as the status. +* Rule-based formatters only understand UNUM_DEFAULT_RULESET and UNUM_PUBLIC_RULESETS. +* @param fmt The formatter to query. +* @param tag The attribute to query; one of UNUM_POSITIVE_PREFIX, UNUM_POSITIVE_SUFFIX, +* UNUM_NEGATIVE_PREFIX, UNUM_NEGATIVE_SUFFIX, UNUM_PADDING_CHARACTER, UNUM_CURRENCY_CODE, +* UNUM_DEFAULT_RULESET, or UNUM_PUBLIC_RULESETS. +* @param result A pointer to a buffer to receive the attribute. +* @param resultLength The maximum size of result. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_setTextAttribute +* @see unum_getAttribute +* @see unum_setAttribute +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_getTextAttribute( const UNumberFormat* fmt, + UNumberFormatTextAttribute tag, + UChar* result, + int32_t resultLength, + UErrorCode* status); + +/** +* Set a text attribute associated with a UNumberFormat. +* An example of a text attribute is the suffix for positive numbers. Rule-based formatters +* only understand UNUM_DEFAULT_RULESET. +* @param fmt The formatter to set. +* @param tag The attribute to set; one of UNUM_POSITIVE_PREFIX, UNUM_POSITIVE_SUFFIX, +* UNUM_NEGATIVE_PREFIX, UNUM_NEGATIVE_SUFFIX, UNUM_PADDING_CHARACTER, UNUM_CURRENCY_CODE, +* or UNUM_DEFAULT_RULESET. +* @param newValue The new value of attr. +* @param newValueLength The length of newValue, or -1 if null-terminated. +* @param status A pointer to an UErrorCode to receive any errors +* @see unum_getTextAttribute +* @see unum_getAttribute +* @see unum_setAttribute +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +unum_setTextAttribute( UNumberFormat* fmt, + UNumberFormatTextAttribute tag, + const UChar* newValue, + int32_t newValueLength, + UErrorCode *status); + +/** + * Extract the pattern from a UNumberFormat. The pattern will follow + * the DecimalFormat pattern syntax. + * @param fmt The formatter to query. + * @param isPatternLocalized true if the pattern should be localized, + * false otherwise. This is ignored if the formatter is a rule-based + * formatter. + * @param result A pointer to a buffer to receive the pattern. + * @param resultLength The maximum size of result. + * @param status A pointer to an input-output UErrorCode. + * @return The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @see unum_applyPattern + * @see DecimalFormat + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +unum_toPattern( const UNumberFormat* fmt, + UBool isPatternLocalized, + UChar* result, + int32_t resultLength, + UErrorCode* status); + + +/** + * Constants for specifying a number format symbol. + * @stable ICU 2.0 + */ +typedef enum UNumberFormatSymbol { + /** The decimal separator */ + UNUM_DECIMAL_SEPARATOR_SYMBOL = 0, + /** The grouping separator */ + UNUM_GROUPING_SEPARATOR_SYMBOL = 1, + /** The pattern separator */ + UNUM_PATTERN_SEPARATOR_SYMBOL = 2, + /** The percent sign */ + UNUM_PERCENT_SYMBOL = 3, + /** Zero*/ + UNUM_ZERO_DIGIT_SYMBOL = 4, + /** Character representing a digit in the pattern */ + UNUM_DIGIT_SYMBOL = 5, + /** The minus sign */ + UNUM_MINUS_SIGN_SYMBOL = 6, + /** The plus sign */ + UNUM_PLUS_SIGN_SYMBOL = 7, + /** The currency symbol */ + UNUM_CURRENCY_SYMBOL = 8, + /** The international currency symbol */ + UNUM_INTL_CURRENCY_SYMBOL = 9, + /** The monetary separator */ + UNUM_MONETARY_SEPARATOR_SYMBOL = 10, + /** The exponential symbol */ + UNUM_EXPONENTIAL_SYMBOL = 11, + /** Per mill symbol */ + UNUM_PERMILL_SYMBOL = 12, + /** Escape padding character */ + UNUM_PAD_ESCAPE_SYMBOL = 13, + /** Infinity symbol */ + UNUM_INFINITY_SYMBOL = 14, + /** Nan symbol */ + UNUM_NAN_SYMBOL = 15, + /** Significant digit symbol + * @stable ICU 3.0 */ + UNUM_SIGNIFICANT_DIGIT_SYMBOL = 16, + /** The monetary grouping separator + * @stable ICU 3.6 + */ + UNUM_MONETARY_GROUPING_SEPARATOR_SYMBOL = 17, + /** One + * @stable ICU 4.6 + */ + UNUM_ONE_DIGIT_SYMBOL = 18, + /** Two + * @stable ICU 4.6 + */ + UNUM_TWO_DIGIT_SYMBOL = 19, + /** Three + * @stable ICU 4.6 + */ + UNUM_THREE_DIGIT_SYMBOL = 20, + /** Four + * @stable ICU 4.6 + */ + UNUM_FOUR_DIGIT_SYMBOL = 21, + /** Five + * @stable ICU 4.6 + */ + UNUM_FIVE_DIGIT_SYMBOL = 22, + /** Six + * @stable ICU 4.6 + */ + UNUM_SIX_DIGIT_SYMBOL = 23, + /** Seven + * @stable ICU 4.6 + */ + UNUM_SEVEN_DIGIT_SYMBOL = 24, + /** Eight + * @stable ICU 4.6 + */ + UNUM_EIGHT_DIGIT_SYMBOL = 25, + /** Nine + * @stable ICU 4.6 + */ + UNUM_NINE_DIGIT_SYMBOL = 26, + + /** Multiplication sign + * @stable ICU 54 + */ + UNUM_EXPONENT_MULTIPLICATION_SYMBOL = 27, + + +} UNumberFormatSymbol; + +/** +* Get a symbol associated with a UNumberFormat. +* A UNumberFormat uses symbols to represent the special locale-dependent +* characters in a number, for example the percent sign. This API is not +* supported for rule-based formatters. +* @param fmt The formatter to query. +* @param symbol The UNumberFormatSymbol constant for the symbol to get +* @param buffer The string buffer that will receive the symbol string; +* if it is NULL, then only the length of the symbol is returned +* @param size The size of the string buffer +* @param status A pointer to an UErrorCode to receive any errors +* @return The length of the symbol; the buffer is not modified if +* length>=size +* @see unum_setSymbol +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_getSymbol(const UNumberFormat *fmt, + UNumberFormatSymbol symbol, + UChar *buffer, + int32_t size, + UErrorCode *status); + +/** +* Set a symbol associated with a UNumberFormat. +* A UNumberFormat uses symbols to represent the special locale-dependent +* characters in a number, for example the percent sign. This API is not +* supported for rule-based formatters. +* @param fmt The formatter to set. +* @param symbol The UNumberFormatSymbol constant for the symbol to set +* @param value The string to set the symbol to +* @param length The length of the string, or -1 for a zero-terminated string +* @param status A pointer to an UErrorCode to receive any errors. +* @see unum_getSymbol +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +unum_setSymbol(UNumberFormat *fmt, + UNumberFormatSymbol symbol, + const UChar *value, + int32_t length, + UErrorCode *status); + + +/** + * Get the locale for this number format object. + * You can choose between valid and actual locale. + * @param fmt The formatter to get the locale from + * @param type type of the locale we're looking for (valid or actual) + * @param status error code for the operation + * @return the locale name + * @stable ICU 2.8 + */ +U_CAPI const char* U_EXPORT2 +unum_getLocaleByType(const UNumberFormat *fmt, + ULocDataLocaleType type, + UErrorCode* status); + +/** + * Set a particular UDisplayContext value in the formatter, such as + * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. + * @param fmt The formatter for which to set a UDisplayContext value. + * @param value The UDisplayContext value to set. + * @param status A pointer to an UErrorCode to receive any errors + * @stable ICU 53 + */ +U_CAPI void U_EXPORT2 +unum_setContext(UNumberFormat* fmt, UDisplayContext value, UErrorCode* status); + +/** + * Get the formatter's UDisplayContext value for the specified UDisplayContextType, + * such as UDISPCTX_TYPE_CAPITALIZATION. + * @param fmt The formatter to query. + * @param type The UDisplayContextType whose value to return + * @param status A pointer to an UErrorCode to receive any errors + * @return The UDisplayContextValue for the specified type. + * @stable ICU 53 + */ +U_CAPI UDisplayContext U_EXPORT2 +unum_getContext(const UNumberFormat *fmt, UDisplayContextType type, UErrorCode* status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// udat.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* + ******************************************************************************* + * Copyright (C) 1996-2016, International Business Machines + * Corporation and others. All Rights Reserved. + ******************************************************************************* +*/ + +#ifndef UDAT_H +#define UDAT_H + + +#if !UCONFIG_NO_FORMATTING + + + +/** + * \file + * \brief C API: DateFormat + * + *

Date Format C API

+ * + * Date Format C API consists of functions that convert dates and + * times from their internal representations to textual form and back again in a + * language-independent manner. Converting from the internal representation (milliseconds + * since midnight, January 1, 1970) to text is known as "formatting," and converting + * from text to millis is known as "parsing." We currently define only one concrete + * structure UDateFormat, which can handle pretty much all normal + * date formatting and parsing actions. + *

+ * Date Format helps you to format and parse dates for any locale. Your code can + * be completely independent of the locale conventions for months, days of the + * week, or even the calendar format: lunar vs. solar. + *

+ * To format a date for the current Locale with default time and date style, + * use one of the static factory methods: + *

+ * \code
+ *  UErrorCode status = U_ZERO_ERROR;
+ *  UChar *myString;
+ *  int32_t myStrlen = 0;
+ *  UDateFormat* dfmt = udat_open(UDAT_DEFAULT, UDAT_DEFAULT, NULL, NULL, -1, NULL, -1, &status);
+ *  myStrlen = udat_format(dfmt, myDate, NULL, myStrlen, NULL, &status);
+ *  if (status==U_BUFFER_OVERFLOW_ERROR){
+ *      status=U_ZERO_ERROR;
+ *      myString=(UChar*)malloc(sizeof(UChar) * (myStrlen+1) );
+ *      udat_format(dfmt, myDate, myString, myStrlen+1, NULL, &status);
+ *  }
+ * \endcode
+ * 
+ * If you are formatting multiple numbers, it is more efficient to get the + * format and use it multiple times so that the system doesn't have to fetch the + * information about the local language and country conventions multiple times. + *
+ * \code
+ *  UErrorCode status = U_ZERO_ERROR;
+ *  int32_t i, myStrlen = 0;
+ *  UChar* myString;
+ *  char buffer[1024];
+ *  UDate myDateArr[] = { 0.0, 100000000.0, 2000000000.0 }; // test values
+ *  UDateFormat* df = udat_open(UDAT_DEFAULT, UDAT_DEFAULT, NULL, NULL, -1, NULL, 0, &status);
+ *  for (i = 0; i < 3; i++) {
+ *      myStrlen = udat_format(df, myDateArr[i], NULL, myStrlen, NULL, &status);
+ *      if(status == U_BUFFER_OVERFLOW_ERROR){
+ *          status = U_ZERO_ERROR;
+ *          myString = (UChar*)malloc(sizeof(UChar) * (myStrlen+1) );
+ *          udat_format(df, myDateArr[i], myString, myStrlen+1, NULL, &status);
+ *          printf("%s\n", u_austrcpy(buffer, myString) );
+ *          free(myString);
+ *      }
+ *  }
+ * \endcode
+ * 
+ * To get specific fields of a date, you can use UFieldPosition to + * get specific fields. + *
+ * \code
+ *  UErrorCode status = U_ZERO_ERROR;
+ *  UFieldPosition pos;
+ *  UChar *myString;
+ *  int32_t myStrlen = 0;
+ *  char buffer[1024];
+ *
+ *  pos.field = 1;  // Same as the DateFormat::EField enum
+ *  UDateFormat* dfmt = udat_open(UDAT_DEFAULT, UDAT_DEFAULT, NULL, -1, NULL, 0, &status);
+ *  myStrlen = udat_format(dfmt, myDate, NULL, myStrlen, &pos, &status);
+ *  if (status==U_BUFFER_OVERFLOW_ERROR){
+ *      status=U_ZERO_ERROR;
+ *      myString=(UChar*)malloc(sizeof(UChar) * (myStrlen+1) );
+ *      udat_format(dfmt, myDate, myString, myStrlen+1, &pos, &status);
+ *  }
+ *  printf("date format: %s\n", u_austrcpy(buffer, myString));
+ *  buffer[pos.endIndex] = 0;   // NULL terminate the string.
+ *  printf("UFieldPosition position equals %s\n", &buffer[pos.beginIndex]);
+ * \endcode
+ * 
+ * To format a date for a different Locale, specify it in the call to + * udat_open() + *
+ * \code
+ *        UDateFormat* df = udat_open(UDAT_SHORT, UDAT_SHORT, "fr_FR", NULL, -1, NULL, 0, &status);
+ * \endcode
+ * 
+ * You can use a DateFormat API udat_parse() to parse. + *
+ * \code
+ *  UErrorCode status = U_ZERO_ERROR;
+ *  int32_t parsepos=0;
+ *  UDate myDate = udat_parse(df, myString, u_strlen(myString), &parsepos, &status);
+ * \endcode
+ * 
+ * You can pass in different options for the arguments for date and time style + * to control the length of the result; from SHORT to MEDIUM to LONG to FULL. + * The exact result depends on the locale, but generally: + * see UDateFormatStyle for more details + *
    + *
  • UDAT_SHORT is completely numeric, such as 12/13/52 or 3:30pm + *
  • UDAT_MEDIUM is longer, such as Jan 12, 1952 + *
  • UDAT_LONG is longer, such as January 12, 1952 or 3:30:32pm + *
  • UDAT_FULL is pretty completely specified, such as + * Tuesday, April 12, 1952 AD or 3:30:42pm PST. + *
+ * You can also set the time zone on the format if you wish. + *

+ * You can also use forms of the parse and format methods with Parse Position and + * UFieldPosition to allow you to + *

    + *
  • Progressively parse through pieces of a string. + *
  • Align any particular field, or find out where it is for selection + * on the screen. + *
+ *

Date and Time Patterns:

+ * + *

Date and time formats are specified by date and time pattern strings. + * Within date and time pattern strings, all unquoted ASCII letters [A-Za-z] are reserved + * as pattern letters representing calendar fields. UDateFormat supports + * the date and time formatting algorithm and pattern letters defined by + * UTS#35 + * Unicode Locale Data Markup Language (LDML) and further documented for ICU in the + * ICU + * User Guide.

+ */ + +/** A date formatter. + * For usage in C programs. + * @stable ICU 2.6 + */ +typedef void* UDateFormat; + +/** The possible date/time format styles + * @stable ICU 2.6 + */ +typedef enum UDateFormatStyle { + /** Full style */ + UDAT_FULL, + /** Long style */ + UDAT_LONG, + /** Medium style */ + UDAT_MEDIUM, + /** Short style */ + UDAT_SHORT, + /** Default style */ + UDAT_DEFAULT = UDAT_MEDIUM, + + /** Bitfield for relative date */ + UDAT_RELATIVE = (1 << 7), + + UDAT_FULL_RELATIVE = UDAT_FULL | UDAT_RELATIVE, + + UDAT_LONG_RELATIVE = UDAT_LONG | UDAT_RELATIVE, + + UDAT_MEDIUM_RELATIVE = UDAT_MEDIUM | UDAT_RELATIVE, + + UDAT_SHORT_RELATIVE = UDAT_SHORT | UDAT_RELATIVE, + + + /** No style */ + UDAT_NONE = -1, + + /** + * Use the pattern given in the parameter to udat_open + * @see udat_open + * @stable ICU 50 + */ + UDAT_PATTERN = -2, + +} UDateFormatStyle; + +/* Skeletons for dates. */ + +/** + * Constant for date skeleton with year. + * @stable ICU 4.0 + */ +#define UDAT_YEAR "y" +/** + * Constant for date skeleton with quarter. + * @stable ICU 51 + */ +#define UDAT_QUARTER "QQQQ" +/** + * Constant for date skeleton with abbreviated quarter. + * @stable ICU 51 + */ +#define UDAT_ABBR_QUARTER "QQQ" +/** + * Constant for date skeleton with year and quarter. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_QUARTER "yQQQQ" +/** + * Constant for date skeleton with year and abbreviated quarter. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_ABBR_QUARTER "yQQQ" +/** + * Constant for date skeleton with month. + * @stable ICU 4.0 + */ +#define UDAT_MONTH "MMMM" +/** + * Constant for date skeleton with abbreviated month. + * @stable ICU 4.0 + */ +#define UDAT_ABBR_MONTH "MMM" +/** + * Constant for date skeleton with numeric month. + * @stable ICU 4.0 + */ +#define UDAT_NUM_MONTH "M" +/** + * Constant for date skeleton with year and month. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_MONTH "yMMMM" +/** + * Constant for date skeleton with year and abbreviated month. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_ABBR_MONTH "yMMM" +/** + * Constant for date skeleton with year and numeric month. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_NUM_MONTH "yM" +/** + * Constant for date skeleton with day. + * @stable ICU 4.0 + */ +#define UDAT_DAY "d" +/** + * Constant for date skeleton with year, month, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_MONTH_DAY "yMMMMd" +/** + * Constant for date skeleton with year, abbreviated month, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_ABBR_MONTH_DAY "yMMMd" +/** + * Constant for date skeleton with year, numeric month, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_NUM_MONTH_DAY "yMd" +/** + * Constant for date skeleton with weekday. + * @stable ICU 51 + */ +#define UDAT_WEEKDAY "EEEE" +/** + * Constant for date skeleton with abbreviated weekday. + * @stable ICU 51 + */ +#define UDAT_ABBR_WEEKDAY "E" +/** + * Constant for date skeleton with year, month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_MONTH_WEEKDAY_DAY "yMMMMEEEEd" +/** + * Constant for date skeleton with year, abbreviated month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_ABBR_MONTH_WEEKDAY_DAY "yMMMEd" +/** + * Constant for date skeleton with year, numeric month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_NUM_MONTH_WEEKDAY_DAY "yMEd" +/** + * Constant for date skeleton with long month and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_MONTH_DAY "MMMMd" +/** + * Constant for date skeleton with abbreviated month and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_ABBR_MONTH_DAY "MMMd" +/** + * Constant for date skeleton with numeric month and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_NUM_MONTH_DAY "Md" +/** + * Constant for date skeleton with month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_MONTH_WEEKDAY_DAY "MMMMEEEEd" +/** + * Constant for date skeleton with abbreviated month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_ABBR_MONTH_WEEKDAY_DAY "MMMEd" +/** + * Constant for date skeleton with numeric month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_NUM_MONTH_WEEKDAY_DAY "MEd" + +/* Skeletons for times. */ + +/** + * Constant for date skeleton with hour, with the locale's preferred hour format (12 or 24). + * @stable ICU 4.0 + */ +#define UDAT_HOUR "j" +/** + * Constant for date skeleton with hour in 24-hour presentation. + * @stable ICU 51 + */ +#define UDAT_HOUR24 "H" +/** + * Constant for date skeleton with minute. + * @stable ICU 51 + */ +#define UDAT_MINUTE "m" +/** + * Constant for date skeleton with hour and minute, with the locale's preferred hour format (12 or 24). + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_HOUR_MINUTE "jm" +/** + * Constant for date skeleton with hour and minute in 24-hour presentation. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_HOUR24_MINUTE "Hm" +/** + * Constant for date skeleton with second. + * @stable ICU 51 + */ +#define UDAT_SECOND "s" +/** + * Constant for date skeleton with hour, minute, and second, + * with the locale's preferred hour format (12 or 24). + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_HOUR_MINUTE_SECOND "jms" +/** + * Constant for date skeleton with hour, minute, and second in + * 24-hour presentation. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_HOUR24_MINUTE_SECOND "Hms" +/** + * Constant for date skeleton with minute and second. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_MINUTE_SECOND "ms" + +/* Skeletons for time zones. */ + +/** + * Constant for generic location format, such as Los Angeles Time; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_LOCATION_TZ "VVVV" +/** + * Constant for generic non-location format, such as Pacific Time; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_GENERIC_TZ "vvvv" +/** + * Constant for generic non-location format, abbreviated if possible, such as PT; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_ABBR_GENERIC_TZ "v" +/** + * Constant for specific non-location format, such as Pacific Daylight Time; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_SPECIFIC_TZ "zzzz" +/** + * Constant for specific non-location format, abbreviated if possible, such as PDT; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_ABBR_SPECIFIC_TZ "z" +/** + * Constant for localized GMT/UTC format, such as GMT+8:00 or HPG-8:00; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_ABBR_UTC_TZ "ZZZZ" + +/* deprecated skeleton constants */ + + + +/** + * FieldPosition and UFieldPosition selectors for format fields + * defined by DateFormat and UDateFormat. + * @stable ICU 3.0 + */ +typedef enum UDateFormatField { + /** + * FieldPosition and UFieldPosition selector for 'G' field alignment, + * corresponding to the UCAL_ERA field. + * @stable ICU 3.0 + */ + UDAT_ERA_FIELD = 0, + + /** + * FieldPosition and UFieldPosition selector for 'y' field alignment, + * corresponding to the UCAL_YEAR field. + * @stable ICU 3.0 + */ + UDAT_YEAR_FIELD = 1, + + /** + * FieldPosition and UFieldPosition selector for 'M' field alignment, + * corresponding to the UCAL_MONTH field. + * @stable ICU 3.0 + */ + UDAT_MONTH_FIELD = 2, + + /** + * FieldPosition and UFieldPosition selector for 'd' field alignment, + * corresponding to the UCAL_DATE field. + * @stable ICU 3.0 + */ + UDAT_DATE_FIELD = 3, + + /** + * FieldPosition and UFieldPosition selector for 'k' field alignment, + * corresponding to the UCAL_HOUR_OF_DAY field. + * UDAT_HOUR_OF_DAY1_FIELD is used for the one-based 24-hour clock. + * For example, 23:59 + 01:00 results in 24:59. + * @stable ICU 3.0 + */ + UDAT_HOUR_OF_DAY1_FIELD = 4, + + /** + * FieldPosition and UFieldPosition selector for 'H' field alignment, + * corresponding to the UCAL_HOUR_OF_DAY field. + * UDAT_HOUR_OF_DAY0_FIELD is used for the zero-based 24-hour clock. + * For example, 23:59 + 01:00 results in 00:59. + * @stable ICU 3.0 + */ + UDAT_HOUR_OF_DAY0_FIELD = 5, + + /** + * FieldPosition and UFieldPosition selector for 'm' field alignment, + * corresponding to the UCAL_MINUTE field. + * @stable ICU 3.0 + */ + UDAT_MINUTE_FIELD = 6, + + /** + * FieldPosition and UFieldPosition selector for 's' field alignment, + * corresponding to the UCAL_SECOND field. + * @stable ICU 3.0 + */ + UDAT_SECOND_FIELD = 7, + + /** + * FieldPosition and UFieldPosition selector for 'S' field alignment, + * corresponding to the UCAL_MILLISECOND field. + * + * Note: Time formats that use 'S' can display a maximum of three + * significant digits for fractional seconds, corresponding to millisecond + * resolution and a fractional seconds sub-pattern of SSS. If the + * sub-pattern is S or SS, the fractional seconds value will be truncated + * (not rounded) to the number of display places specified. If the + * fractional seconds sub-pattern is longer than SSS, the additional + * display places will be filled with zeros. + * @stable ICU 3.0 + */ + UDAT_FRACTIONAL_SECOND_FIELD = 8, + + /** + * FieldPosition and UFieldPosition selector for 'E' field alignment, + * corresponding to the UCAL_DAY_OF_WEEK field. + * @stable ICU 3.0 + */ + UDAT_DAY_OF_WEEK_FIELD = 9, + + /** + * FieldPosition and UFieldPosition selector for 'D' field alignment, + * corresponding to the UCAL_DAY_OF_YEAR field. + * @stable ICU 3.0 + */ + UDAT_DAY_OF_YEAR_FIELD = 10, + + /** + * FieldPosition and UFieldPosition selector for 'F' field alignment, + * corresponding to the UCAL_DAY_OF_WEEK_IN_MONTH field. + * @stable ICU 3.0 + */ + UDAT_DAY_OF_WEEK_IN_MONTH_FIELD = 11, + + /** + * FieldPosition and UFieldPosition selector for 'w' field alignment, + * corresponding to the UCAL_WEEK_OF_YEAR field. + * @stable ICU 3.0 + */ + UDAT_WEEK_OF_YEAR_FIELD = 12, + + /** + * FieldPosition and UFieldPosition selector for 'W' field alignment, + * corresponding to the UCAL_WEEK_OF_MONTH field. + * @stable ICU 3.0 + */ + UDAT_WEEK_OF_MONTH_FIELD = 13, + + /** + * FieldPosition and UFieldPosition selector for 'a' field alignment, + * corresponding to the UCAL_AM_PM field. + * @stable ICU 3.0 + */ + UDAT_AM_PM_FIELD = 14, + + /** + * FieldPosition and UFieldPosition selector for 'h' field alignment, + * corresponding to the UCAL_HOUR field. + * UDAT_HOUR1_FIELD is used for the one-based 12-hour clock. + * For example, 11:30 PM + 1 hour results in 12:30 AM. + * @stable ICU 3.0 + */ + UDAT_HOUR1_FIELD = 15, + + /** + * FieldPosition and UFieldPosition selector for 'K' field alignment, + * corresponding to the UCAL_HOUR field. + * UDAT_HOUR0_FIELD is used for the zero-based 12-hour clock. + * For example, 11:30 PM + 1 hour results in 00:30 AM. + * @stable ICU 3.0 + */ + UDAT_HOUR0_FIELD = 16, + + /** + * FieldPosition and UFieldPosition selector for 'z' field alignment, + * corresponding to the UCAL_ZONE_OFFSET and + * UCAL_DST_OFFSET fields. + * @stable ICU 3.0 + */ + UDAT_TIMEZONE_FIELD = 17, + + /** + * FieldPosition and UFieldPosition selector for 'Y' field alignment, + * corresponding to the UCAL_YEAR_WOY field. + * @stable ICU 3.0 + */ + UDAT_YEAR_WOY_FIELD = 18, + + /** + * FieldPosition and UFieldPosition selector for 'e' field alignment, + * corresponding to the UCAL_DOW_LOCAL field. + * @stable ICU 3.0 + */ + UDAT_DOW_LOCAL_FIELD = 19, + + /** + * FieldPosition and UFieldPosition selector for 'u' field alignment, + * corresponding to the UCAL_EXTENDED_YEAR field. + * @stable ICU 3.0 + */ + UDAT_EXTENDED_YEAR_FIELD = 20, + + /** + * FieldPosition and UFieldPosition selector for 'g' field alignment, + * corresponding to the UCAL_JULIAN_DAY field. + * @stable ICU 3.0 + */ + UDAT_JULIAN_DAY_FIELD = 21, + + /** + * FieldPosition and UFieldPosition selector for 'A' field alignment, + * corresponding to the UCAL_MILLISECONDS_IN_DAY field. + * @stable ICU 3.0 + */ + UDAT_MILLISECONDS_IN_DAY_FIELD = 22, + + /** + * FieldPosition and UFieldPosition selector for 'Z' field alignment, + * corresponding to the UCAL_ZONE_OFFSET and + * UCAL_DST_OFFSET fields. + * @stable ICU 3.0 + */ + UDAT_TIMEZONE_RFC_FIELD = 23, + + /** + * FieldPosition and UFieldPosition selector for 'v' field alignment, + * corresponding to the UCAL_ZONE_OFFSET field. + * @stable ICU 3.4 + */ + UDAT_TIMEZONE_GENERIC_FIELD = 24, + /** + * FieldPosition selector for 'c' field alignment, + * corresponding to the {@link #UCAL_DOW_LOCAL} field. + * This displays the stand alone day name, if available. + * @stable ICU 3.4 + */ + UDAT_STANDALONE_DAY_FIELD = 25, + + /** + * FieldPosition selector for 'L' field alignment, + * corresponding to the {@link #UCAL_MONTH} field. + * This displays the stand alone month name, if available. + * @stable ICU 3.4 + */ + UDAT_STANDALONE_MONTH_FIELD = 26, + + /** + * FieldPosition selector for "Q" field alignment, + * corresponding to quarters. This is implemented + * using the {@link #UCAL_MONTH} field. This + * displays the quarter. + * @stable ICU 3.6 + */ + UDAT_QUARTER_FIELD = 27, + + /** + * FieldPosition selector for the "q" field alignment, + * corresponding to stand-alone quarters. This is + * implemented using the {@link #UCAL_MONTH} field. + * This displays the stand-alone quarter. + * @stable ICU 3.6 + */ + UDAT_STANDALONE_QUARTER_FIELD = 28, + + /** + * FieldPosition and UFieldPosition selector for 'V' field alignment, + * corresponding to the UCAL_ZONE_OFFSET field. + * @stable ICU 3.8 + */ + UDAT_TIMEZONE_SPECIAL_FIELD = 29, + + /** + * FieldPosition selector for "U" field alignment, + * corresponding to cyclic year names. This is implemented + * using the {@link #UCAL_YEAR} field. This displays + * the cyclic year name, if available. + * @stable ICU 49 + */ + UDAT_YEAR_NAME_FIELD = 30, + + /** + * FieldPosition selector for 'O' field alignment, + * corresponding to the UCAL_ZONE_OFFSET and UCAL_DST_OFFSETfields. + * This displays the localized GMT format. + * @stable ICU 51 + */ + UDAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD = 31, + + /** + * FieldPosition selector for 'X' field alignment, + * corresponding to the UCAL_ZONE_OFFSET and UCAL_DST_OFFSETfields. + * This displays the ISO 8601 local time offset format or UTC indicator ("Z"). + * @stable ICU 51 + */ + UDAT_TIMEZONE_ISO_FIELD = 32, + + /** + * FieldPosition selector for 'x' field alignment, + * corresponding to the UCAL_ZONE_OFFSET and UCAL_DST_OFFSET fields. + * This displays the ISO 8601 local time offset format. + * @stable ICU 51 + */ + UDAT_TIMEZONE_ISO_LOCAL_FIELD = 33, + + + /** + * FieldPosition selector for 'b' field alignment. + * Displays midnight and noon for 12am and 12pm, respectively, if available; + * otherwise fall back to AM / PM. + * @stable ICU 57 + */ + UDAT_AM_PM_MIDNIGHT_NOON_FIELD = 35, + + /* FieldPosition selector for 'B' field alignment. + * Displays flexible day periods, such as "in the morning", if available. + * @stable ICU 57 + */ + UDAT_FLEXIBLE_DAY_PERIOD_FIELD = 36, + + +} UDateFormatField; + + + + +/** + * Maps from a UDateFormatField to the corresponding UCalendarDateFields. + * + * Note 1: Since the mapping is many-to-one, there is no inverse mapping. + * + * Note 2: There is no UErrorCode parameter, so in case of error (UDateFormatField is + * unknown or has no corresponding UCalendarDateFields value), the function returns the + * current value of UCAL_FIELD_COUNT. However, that value may change from release to + * release and is consequently deprecated. For a future-proof runtime way of checking + * for errors: + * a) First save the value returned by the function when it is passed an invalid value + * such as "(UDateFormatField)-1". + * b) Then, to test for errors when passing some other UDateFormatField value, check + * whether the function returns that saved value. + * + * @param field the UDateFormatField. + * @return the UCalendarDateField. In case of error (UDateFormatField is unknown or has + * no corresponding UCalendarDateFields value) this will be the current value of + * UCAL_FIELD_COUNT, but that value may change from release to release. + * See Note 2 above. + * @stable ICU 4.4 + */ +U_CAPI UCalendarDateFields U_EXPORT2 +udat_toCalendarDateField(UDateFormatField field); + + +/** + * Open a new UDateFormat for formatting and parsing dates and times. + * A UDateFormat may be used to format dates in calls to {@link #udat_format }, + * and to parse dates in calls to {@link #udat_parse }. + * @param timeStyle The style used to format times; one of UDAT_FULL, UDAT_LONG, + * UDAT_MEDIUM, UDAT_SHORT, UDAT_DEFAULT, or UDAT_NONE (relative time styles + * are not currently supported). + * When the pattern parameter is used, pass in UDAT_PATTERN for both timeStyle and dateStyle. + * @param dateStyle The style used to format dates; one of UDAT_FULL, UDAT_LONG, + * UDAT_MEDIUM, UDAT_SHORT, UDAT_DEFAULT, UDAT_FULL_RELATIVE, UDAT_LONG_RELATIVE, + * UDAT_MEDIUM_RELATIVE, UDAT_SHORT_RELATIVE, or UDAT_NONE. + * When the pattern parameter is used, pass in UDAT_PATTERN for both timeStyle and dateStyle. + * As currently implemented, + * relative date formatting only affects a limited range of calendar days before or + * after the current date, based on the CLDR <field type="day">/<relative> data: For + * example, in English, "Yesterday", "Today", and "Tomorrow". Outside of this range, + * dates are formatted using the corresponding non-relative style. + * @param locale The locale specifying the formatting conventions + * @param tzID A timezone ID specifying the timezone to use. If 0, use + * the default timezone. + * @param tzIDLength The length of tzID, or -1 if null-terminated. + * @param pattern A pattern specifying the format to use. + * @param patternLength The number of characters in the pattern, or -1 if null-terminated. + * @param status A pointer to an UErrorCode to receive any errors + * @return A pointer to a UDateFormat to use for formatting dates and times, or 0 if + * an error occurred. + * @stable ICU 2.0 + */ +U_CAPI UDateFormat* U_EXPORT2 +udat_open(UDateFormatStyle timeStyle, + UDateFormatStyle dateStyle, + const char *locale, + const UChar *tzID, + int32_t tzIDLength, + const UChar *pattern, + int32_t patternLength, + UErrorCode *status); + + +/** +* Close a UDateFormat. +* Once closed, a UDateFormat may no longer be used. +* @param format The formatter to close. +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +udat_close(UDateFormat* format); + + +/** + * DateFormat boolean attributes + * + * @stable ICU 53 + */ +typedef enum UDateFormatBooleanAttribute { + /** + * indicates whether whitespace is allowed. Includes trailing dot tolerance. + * @stable ICU 53 + */ + UDAT_PARSE_ALLOW_WHITESPACE = 0, + /** + * indicates tolerance of numeric data when String data may be assumed. eg: UDAT_YEAR_NAME_FIELD, + * UDAT_STANDALONE_MONTH_FIELD, UDAT_DAY_OF_WEEK_FIELD + * @stable ICU 53 + */ + UDAT_PARSE_ALLOW_NUMERIC = 1, + /** + * indicates tolerance of a partial literal match + * e.g. accepting "--mon-02-march-2011" for a pattern of "'--: 'EEE-WW-MMMM-yyyy" + * @stable ICU 56 + */ + UDAT_PARSE_PARTIAL_LITERAL_MATCH = 2, + /** + * indicates tolerance of pattern mismatch between input data and specified format pattern. + * e.g. accepting "September" for a month pattern of MMM ("Sep") + * @stable ICU 56 + */ + UDAT_PARSE_MULTIPLE_PATTERNS_FOR_MATCH = 3, + + /* Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API, + * it is needed for layout of DateFormat object. */ +#ifndef U_FORCE_HIDE_DEPRECATED_API + /** + * One more than the highest normal UDateFormatBooleanAttribute value. + * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. + */ + UDAT_BOOLEAN_ATTRIBUTE_COUNT = 4 +#endif // U_FORCE_HIDE_DEPRECATED_API +} UDateFormatBooleanAttribute; + +/** + * Get a boolean attribute associated with a UDateFormat. + * An example would be a true value for a key of UDAT_PARSE_ALLOW_WHITESPACE indicating allowing whitespace leniency. + * If the formatter does not understand the attribute, -1 is returned. + * @param fmt The formatter to query. + * @param attr The attribute to query; e.g. UDAT_PARSE_ALLOW_WHITESPACE. + * @param status A pointer to an UErrorCode to receive any errors + * @return The value of attr. + * @stable ICU 53 + */ +U_CAPI UBool U_EXPORT2 +udat_getBooleanAttribute(const UDateFormat* fmt, UDateFormatBooleanAttribute attr, UErrorCode* status); + +/** + * Set a boolean attribute associated with a UDateFormat. + * An example of a boolean attribute is parse leniency control. If the formatter does not understand + * the attribute, the call is ignored. + * @param fmt The formatter to set. + * @param attr The attribute to set; one of UDAT_PARSE_ALLOW_WHITESPACE or UDAT_PARSE_ALLOW_NUMERIC + * @param newValue The new value of attr. + * @param status A pointer to an UErrorCode to receive any errors + * @stable ICU 53 + */ +U_CAPI void U_EXPORT2 +udat_setBooleanAttribute(UDateFormat *fmt, UDateFormatBooleanAttribute attr, UBool newValue, UErrorCode* status); +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Hour Cycle. + * @stable ICU 67 + */ +typedef enum UDateFormatHourCycle { + /** + * Hour in am/pm (0~11) + * @stable ICU 67 + */ + UDAT_HOUR_CYCLE_11, + + /** + * Hour in am/pm (1~12) + * @stable ICU 67 + */ + UDAT_HOUR_CYCLE_12, + + /** + * Hour in day (0~23) + * @stable ICU 67 + */ + UDAT_HOUR_CYCLE_23, + + /** + * Hour in day (1~24) + * @stable ICU 67 + */ + UDAT_HOUR_CYCLE_24 +} UDateFormatHourCycle; +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + +/** + * Open a copy of a UDateFormat. + * This function performs a deep copy. + * @param fmt The format to copy + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UDateFormat identical to fmt. + * @stable ICU 2.0 + */ +U_CAPI UDateFormat* U_EXPORT2 +udat_clone(const UDateFormat *fmt, + UErrorCode *status); + +/** +* Format a date using a UDateFormat. +* The date will be formatted using the conventions specified in {@link #udat_open } +* @param format The formatter to use +* @param dateToFormat The date to format +* @param result A pointer to a buffer to receive the formatted number. +* @param resultLength The maximum size of result. +* @param position A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* position data is returned. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_parse +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +udat_format( const UDateFormat* format, + UDate dateToFormat, + UChar* result, + int32_t resultLength, + UFieldPosition* position, + UErrorCode* status); + +/** +* Format a date using an UDateFormat. +* The date will be formatted using the conventions specified in {@link #udat_open } +* @param format The formatter to use +* @param calendar The calendar to format. The calendar instance might be +* mutated if fields are not yet fully calculated, though +* the function won't change the logical date and time held +* by the instance. +* @param result A pointer to a buffer to receive the formatted number. +* @param capacity The maximum size of result. +* @param position A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* position data is returned. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_format +* @see udat_parseCalendar +* @see UFieldPosition +* @stable ICU 55 +*/ +U_CAPI int32_t U_EXPORT2 +udat_formatCalendar( const UDateFormat* format, + UCalendar* calendar, + UChar* result, + int32_t capacity, + UFieldPosition* position, + UErrorCode* status); + +/** +* Format a date using a UDateFormat. +* The date will be formatted using the conventions specified in {@link #udat_open} +* @param format +* The formatter to use +* @param dateToFormat +* The date to format +* @param result +* A pointer to a buffer to receive the formatted number. +* @param resultLength +* The maximum size of result. +* @param fpositer +* A pointer to a UFieldPositionIterator created by {@link #ufieldpositer_open} +* (may be NULL if field position information is not needed). Any +* iteration information already present in the UFieldPositionIterator +* will be deleted, and the iterator will be reset to apply to the +* fields in the formatted string created by this function call; the +* field values provided by {@link #ufieldpositer_next} will be from the +* UDateFormatField enum. +* @param status +* A pointer to a UErrorCode to receive any errors +* @return +* The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_parse +* @see UFieldPositionIterator +* @stable ICU 55 +*/ +U_CAPI int32_t U_EXPORT2 +udat_formatForFields( const UDateFormat* format, + UDate dateToFormat, + UChar* result, + int32_t resultLength, + UFieldPositionIterator* fpositer, + UErrorCode* status); + +/** +* Format a date using a UDateFormat. +* The date will be formatted using the conventions specified in {@link #udat_open } +* @param format +* The formatter to use +* @param calendar +* The calendar to format. The calendar instance might be mutated if fields +* are not yet fully calculated, though the function won't change the logical +* date and time held by the instance. +* @param result +* A pointer to a buffer to receive the formatted number. +* @param capacity +* The maximum size of result. +* @param fpositer +* A pointer to a UFieldPositionIterator created by {@link #ufieldpositer_open} +* (may be NULL if field position information is not needed). Any +* iteration information already present in the UFieldPositionIterator +* will be deleted, and the iterator will be reset to apply to the +* fields in the formatted string created by this function call; the +* field values provided by {@link #ufieldpositer_next} will be from the +* UDateFormatField enum. +* @param status +* A pointer to a UErrorCode to receive any errors +* @return +* The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_format +* @see udat_parseCalendar +* @see UFieldPositionIterator +* @stable ICU 55 +*/ +U_CAPI int32_t U_EXPORT2 +udat_formatCalendarForFields( const UDateFormat* format, + UCalendar* calendar, + UChar* result, + int32_t capacity, + UFieldPositionIterator* fpositer, + UErrorCode* status); + + +/** +* Parse a string into an date/time using a UDateFormat. +* The date will be parsed using the conventions specified in {@link #udat_open }. +*

+* Note that the normal date formats associated with some calendars - such +* as the Chinese lunar calendar - do not specify enough fields to enable +* dates to be parsed unambiguously. In the case of the Chinese lunar +* calendar, while the year within the current 60-year cycle is specified, +* the number of such cycles since the start date of the calendar (in the +* UCAL_ERA field of the UCalendar object) is not normally part of the format, +* and parsing may assume the wrong era. For cases such as this it is +* recommended that clients parse using udat_parseCalendar with the UCalendar +* passed in set to the current date, or to a date within the era/cycle that +* should be assumed if absent in the format. +* +* @param format The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not 0, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not 0, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed date/time +* @see udat_format +* @stable ICU 2.0 +*/ +U_CAPI UDate U_EXPORT2 +udat_parse(const UDateFormat* format, + const UChar* text, + int32_t textLength, + int32_t *parsePos, + UErrorCode *status); + +/** +* Parse a string into an date/time using a UDateFormat. +* The date will be parsed using the conventions specified in {@link #udat_open }. +* @param format The formatter to use. +* @param calendar A calendar set on input to the date and time to be used for +* missing values in the date/time string being parsed, and set +* on output to the parsed date/time. When the calendar type is +* different from the internal calendar held by the UDateFormat +* instance, the internal calendar will be cloned to a work +* calendar set to the same milliseconds and time zone as this +* calendar parameter, field values will be parsed based on the +* work calendar, then the result (milliseconds and time zone) +* will be set in this calendar. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not 0, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not 0, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @see udat_format +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +udat_parseCalendar(const UDateFormat* format, + UCalendar* calendar, + const UChar* text, + int32_t textLength, + int32_t *parsePos, + UErrorCode *status); + +/** +* Determine if an UDateFormat will perform lenient parsing. +* With lenient parsing, the parser may use heuristics to interpret inputs that do not +* precisely match the pattern. With strict parsing, inputs must match the pattern. +* @param fmt The formatter to query +* @return true if fmt is set to perform lenient parsing, false otherwise. +* @see udat_setLenient +* @stable ICU 2.0 +*/ +U_CAPI UBool U_EXPORT2 +udat_isLenient(const UDateFormat* fmt); + +/** +* Specify whether an UDateFormat will perform lenient parsing. +* With lenient parsing, the parser may use heuristics to interpret inputs that do not +* precisely match the pattern. With strict parsing, inputs must match the pattern. +* @param fmt The formatter to set +* @param isLenient true if fmt should perform lenient parsing, false otherwise. +* @see dat_isLenient +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +udat_setLenient( UDateFormat* fmt, + UBool isLenient); + +/** +* Get the UCalendar associated with an UDateFormat. +* A UDateFormat uses a UCalendar to convert a raw value to, for example, +* the day of the week. +* @param fmt The formatter to query. +* @return A pointer to the UCalendar used by fmt. +* @see udat_setCalendar +* @stable ICU 2.0 +*/ +U_CAPI const UCalendar* U_EXPORT2 +udat_getCalendar(const UDateFormat* fmt); + +/** +* Set the UCalendar associated with an UDateFormat. +* A UDateFormat uses a UCalendar to convert a raw value to, for example, +* the day of the week. +* @param fmt The formatter to set. +* @param calendarToSet A pointer to an UCalendar to be used by fmt. +* @see udat_setCalendar +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +udat_setCalendar( UDateFormat* fmt, + const UCalendar* calendarToSet); + +/** +* Get the UNumberFormat associated with an UDateFormat. +* A UDateFormat uses a UNumberFormat to format numbers within a date, +* for example the day number. +* @param fmt The formatter to query. +* @return A pointer to the UNumberFormat used by fmt to format numbers. +* @see udat_setNumberFormat +* @stable ICU 2.0 +*/ +U_CAPI const UNumberFormat* U_EXPORT2 +udat_getNumberFormat(const UDateFormat* fmt); + +/** +* Get the UNumberFormat for specific field associated with an UDateFormat. +* For example: 'y' for year and 'M' for month +* @param fmt The formatter to query. +* @param field the field to query +* @return A pointer to the UNumberFormat used by fmt to format field numbers. +* @see udat_setNumberFormatForField +* @stable ICU 54 +*/ +U_CAPI const UNumberFormat* U_EXPORT2 +udat_getNumberFormatForField(const UDateFormat* fmt, UChar field); + +/** +* Set the UNumberFormat for specific field associated with an UDateFormat. +* It can be a single field like: "y"(year) or "M"(month) +* It can be several field combined together: "yM"(year and month) +* Note: +* 1 symbol field is enough for multiple symbol field (so "y" will override "yy", "yyy") +* If the field is not numeric, then override has no effect (like "MMM" will use abbreviation, not numerical field) +* +* @param fields the fields to set +* @param fmt The formatter to set. +* @param numberFormatToSet A pointer to the UNumberFormat to be used by fmt to format numbers. +* @param status error code passed around (memory allocation or invalid fields) +* @see udat_getNumberFormatForField +* @stable ICU 54 +*/ +U_CAPI void U_EXPORT2 +udat_adoptNumberFormatForFields( UDateFormat* fmt, + const UChar* fields, + UNumberFormat* numberFormatToSet, + UErrorCode* status); +/** +* Set the UNumberFormat associated with an UDateFormat. +* A UDateFormat uses a UNumberFormat to format numbers within a date, +* for example the day number. +* This method also clears per field NumberFormat instances previously +* set by {@see udat_setNumberFormatForField} +* @param fmt The formatter to set. +* @param numberFormatToSet A pointer to the UNumberFormat to be used by fmt to format numbers. +* @see udat_getNumberFormat +* @see udat_setNumberFormatForField +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +udat_setNumberFormat( UDateFormat* fmt, + const UNumberFormat* numberFormatToSet); +/** +* Adopt the UNumberFormat associated with an UDateFormat. +* A UDateFormat uses a UNumberFormat to format numbers within a date, +* for example the day number. +* @param fmt The formatter to set. +* @param numberFormatToAdopt A pointer to the UNumberFormat to be used by fmt to format numbers. +* @see udat_getNumberFormat +* @stable ICU 54 +*/ +U_CAPI void U_EXPORT2 +udat_adoptNumberFormat( UDateFormat* fmt, + UNumberFormat* numberFormatToAdopt); +/** +* Get a locale for which date/time formatting patterns are available. +* A UDateFormat in a locale returned by this function will perform the correct +* formatting and parsing for the locale. +* @param localeIndex The index of the desired locale. +* @return A locale for which date/time formatting patterns are available, or 0 if none. +* @see udat_countAvailable +* @stable ICU 2.0 +*/ +U_CAPI const char* U_EXPORT2 +udat_getAvailable(int32_t localeIndex); + +/** +* Determine how many locales have date/time formatting patterns available. +* This function is most useful as determining the loop ending condition for +* calls to {@link #udat_getAvailable }. +* @return The number of locales for which date/time formatting patterns are available. +* @see udat_getAvailable +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +udat_countAvailable(void); + +/** +* Get the year relative to which all 2-digit years are interpreted. +* For example, if the 2-digit start year is 2100, the year 99 will be +* interpreted as 2199. +* @param fmt The formatter to query. +* @param status A pointer to an UErrorCode to receive any errors +* @return The year relative to which all 2-digit years are interpreted. +* @see udat_Set2DigitYearStart +* @stable ICU 2.0 +*/ +U_CAPI UDate U_EXPORT2 +udat_get2DigitYearStart( const UDateFormat *fmt, + UErrorCode *status); + +/** +* Set the year relative to which all 2-digit years will be interpreted. +* For example, if the 2-digit start year is 2100, the year 99 will be +* interpreted as 2199. +* @param fmt The formatter to set. +* @param d The year relative to which all 2-digit years will be interpreted. +* @param status A pointer to an UErrorCode to receive any errors +* @see udat_Set2DigitYearStart +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +udat_set2DigitYearStart( UDateFormat *fmt, + UDate d, + UErrorCode *status); + +/** +* Extract the pattern from a UDateFormat. +* The pattern will follow the pattern syntax rules. +* @param fmt The formatter to query. +* @param localized true if the pattern should be localized, false otherwise. +* @param result A pointer to a buffer to receive the pattern. +* @param resultLength The maximum size of result. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_applyPattern +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +udat_toPattern( const UDateFormat *fmt, + UBool localized, + UChar *result, + int32_t resultLength, + UErrorCode *status); + +/** +* Set the pattern used by an UDateFormat. +* The pattern should follow the pattern syntax rules. +* @param format The formatter to set. +* @param localized true if the pattern is localized, false otherwise. +* @param pattern The new pattern +* @param patternLength The length of pattern, or -1 if null-terminated. +* @see udat_toPattern +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +udat_applyPattern( UDateFormat *format, + UBool localized, + const UChar *pattern, + int32_t patternLength); + +/** + * The possible types of date format symbols + * @stable ICU 2.6 + */ +typedef enum UDateFormatSymbolType { + /** The era names, for example AD */ + UDAT_ERAS, + /** The month names, for example February */ + UDAT_MONTHS, + /** The short month names, for example Feb. */ + UDAT_SHORT_MONTHS, + /** The CLDR-style format "wide" weekday names, for example Monday */ + UDAT_WEEKDAYS, + /** + * The CLDR-style format "abbreviated" (not "short") weekday names, for example "Mon." + * For the CLDR-style format "short" weekday names, use UDAT_SHORTER_WEEKDAYS. + */ + UDAT_SHORT_WEEKDAYS, + /** The AM/PM names, for example AM */ + UDAT_AM_PMS, + /** The localized characters */ + UDAT_LOCALIZED_CHARS, + /** The long era names, for example Anno Domini */ + UDAT_ERA_NAMES, + /** The narrow month names, for example F */ + UDAT_NARROW_MONTHS, + /** The CLDR-style format "narrow" weekday names, for example "M" */ + UDAT_NARROW_WEEKDAYS, + /** Standalone context versions of months */ + UDAT_STANDALONE_MONTHS, + UDAT_STANDALONE_SHORT_MONTHS, + UDAT_STANDALONE_NARROW_MONTHS, + /** The CLDR-style stand-alone "wide" weekday names */ + UDAT_STANDALONE_WEEKDAYS, + /** + * The CLDR-style stand-alone "abbreviated" (not "short") weekday names. + * For the CLDR-style stand-alone "short" weekday names, use UDAT_STANDALONE_SHORTER_WEEKDAYS. + */ + UDAT_STANDALONE_SHORT_WEEKDAYS, + /** The CLDR-style stand-alone "narrow" weekday names */ + UDAT_STANDALONE_NARROW_WEEKDAYS, + /** The quarters, for example 1st Quarter */ + UDAT_QUARTERS, + /** The short quarter names, for example Q1 */ + UDAT_SHORT_QUARTERS, + /** Standalone context versions of quarters */ + UDAT_STANDALONE_QUARTERS, + UDAT_STANDALONE_SHORT_QUARTERS, + /** + * The CLDR-style short weekday names, e.g. "Su", Mo", etc. + * These are named "SHORTER" to contrast with the constants using _SHORT_ + * above, which actually get the CLDR-style *abbreviated* versions of the + * corresponding names. + * @stable ICU 51 + */ + UDAT_SHORTER_WEEKDAYS, + /** + * Standalone version of UDAT_SHORTER_WEEKDAYS. + * @stable ICU 51 + */ + UDAT_STANDALONE_SHORTER_WEEKDAYS, + /** + * Cyclic year names (only supported for some calendars, and only for FORMAT usage; + * udat_setSymbols not supported for UDAT_CYCLIC_YEARS_WIDE) + * @stable ICU 54 + */ + UDAT_CYCLIC_YEARS_WIDE, + /** + * Cyclic year names (only supported for some calendars, and only for FORMAT usage) + * @stable ICU 54 + */ + UDAT_CYCLIC_YEARS_ABBREVIATED, + /** + * Cyclic year names (only supported for some calendars, and only for FORMAT usage; + * udat_setSymbols not supported for UDAT_CYCLIC_YEARS_NARROW) + * @stable ICU 54 + */ + UDAT_CYCLIC_YEARS_NARROW, + /** + * Calendar zodiac names (only supported for some calendars, and only for FORMAT usage; + * udat_setSymbols not supported for UDAT_ZODIAC_NAMES_WIDE) + * @stable ICU 54 + */ + UDAT_ZODIAC_NAMES_WIDE, + /** + * Calendar zodiac names (only supported for some calendars, and only for FORMAT usage) + * @stable ICU 54 + */ + UDAT_ZODIAC_NAMES_ABBREVIATED, + /** + * Calendar zodiac names (only supported for some calendars, and only for FORMAT usage; + * udat_setSymbols not supported for UDAT_ZODIAC_NAMES_NARROW) + * @stable ICU 54 + */ + UDAT_ZODIAC_NAMES_NARROW, +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + /** + * The narrow quarter names, for example 1 + * @stable ICU 70 + */ + UDAT_NARROW_QUARTERS, + + /** + * The narrow standalone quarter names, for example 1 + * @stable ICU 70 + */ + UDAT_STANDALONE_NARROW_QUARTERS +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +} UDateFormatSymbolType; + +struct UDateFormatSymbols; +/** Date format symbols. + * For usage in C programs. + * @stable ICU 2.6 + */ +typedef struct UDateFormatSymbols UDateFormatSymbols; + +/** +* Get the symbols associated with an UDateFormat. +* The symbols are what a UDateFormat uses to represent locale-specific data, +* for example month or day names. +* @param fmt The formatter to query. +* @param type The type of symbols to get. One of UDAT_ERAS, UDAT_MONTHS, UDAT_SHORT_MONTHS, +* UDAT_WEEKDAYS, UDAT_SHORT_WEEKDAYS, UDAT_AM_PMS, or UDAT_LOCALIZED_CHARS +* @param symbolIndex The desired symbol of type type. +* @param result A pointer to a buffer to receive the pattern. +* @param resultLength The maximum size of result. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_countSymbols +* @see udat_setSymbols +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +udat_getSymbols(const UDateFormat *fmt, + UDateFormatSymbolType type, + int32_t symbolIndex, + UChar *result, + int32_t resultLength, + UErrorCode *status); + +/** +* Count the number of particular symbols for an UDateFormat. +* This function is most useful as for determining the loop termination condition +* for calls to {@link #udat_getSymbols }. +* @param fmt The formatter to query. +* @param type The type of symbols to count. One of UDAT_ERAS, UDAT_MONTHS, UDAT_SHORT_MONTHS, +* UDAT_WEEKDAYS, UDAT_SHORT_WEEKDAYS, UDAT_AM_PMS, or UDAT_LOCALIZED_CHARS +* @return The number of symbols of type type. +* @see udat_getSymbols +* @see udat_setSymbols +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +udat_countSymbols( const UDateFormat *fmt, + UDateFormatSymbolType type); + +/** +* Set the symbols associated with an UDateFormat. +* The symbols are what a UDateFormat uses to represent locale-specific data, +* for example month or day names. +* @param format The formatter to set +* @param type The type of symbols to set. One of UDAT_ERAS, UDAT_MONTHS, UDAT_SHORT_MONTHS, +* UDAT_WEEKDAYS, UDAT_SHORT_WEEKDAYS, UDAT_AM_PMS, or UDAT_LOCALIZED_CHARS +* @param symbolIndex The index of the symbol to set of type type. +* @param value The new value +* @param valueLength The length of value, or -1 if null-terminated +* @param status A pointer to an UErrorCode to receive any errors +* @see udat_getSymbols +* @see udat_countSymbols +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +udat_setSymbols( UDateFormat *format, + UDateFormatSymbolType type, + int32_t symbolIndex, + UChar *value, + int32_t valueLength, + UErrorCode *status); + +/** + * Get the locale for this date format object. + * You can choose between valid and actual locale. + * @param fmt The formatter to get the locale from + * @param type type of the locale we're looking for (valid or actual) + * @param status error code for the operation + * @return the locale name + * @stable ICU 2.8 + */ +U_CAPI const char* U_EXPORT2 +udat_getLocaleByType(const UDateFormat *fmt, + ULocDataLocaleType type, + UErrorCode* status); + +/** + * Set a particular UDisplayContext value in the formatter, such as + * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. + * @param fmt The formatter for which to set a UDisplayContext value. + * @param value The UDisplayContext value to set. + * @param status A pointer to an UErrorCode to receive any errors + * @stable ICU 51 + */ +U_CAPI void U_EXPORT2 +udat_setContext(UDateFormat* fmt, UDisplayContext value, UErrorCode* status); + +/** + * Get the formatter's UDisplayContext value for the specified UDisplayContextType, + * such as UDISPCTX_TYPE_CAPITALIZATION. + * @param fmt The formatter to query. + * @param type The UDisplayContextType whose value to return + * @param status A pointer to an UErrorCode to receive any errors + * @return The UDisplayContextValue for the specified type. + * @stable ICU 53 + */ +U_CAPI UDisplayContext U_EXPORT2 +udat_getContext(const UDateFormat* fmt, UDisplayContextType type, UErrorCode* status); + + + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// udatpg.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* +* Copyright (C) 2007-2015, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: udatpg.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2007jul30 +* created by: Markus W. Scherer +*/ + +#ifndef __UDATPG_H__ +#define __UDATPG_H__ + + + +/** + * \file + * \brief C API: Wrapper for icu::DateTimePatternGenerator (unicode/dtptngen.h). + * + * UDateTimePatternGenerator provides flexible generation of date format patterns, + * like "yy-MM-dd". The user can build up the generator by adding successive + * patterns. Once that is done, a query can be made using a "skeleton", which is + * a pattern which just includes the desired fields and lengths. The generator + * will return the "best fit" pattern corresponding to that skeleton. + *

The main method people will use is udatpg_getBestPattern, since normally + * UDateTimePatternGenerator is pre-built with data from a particular locale. + * However, generators can be built directly from other data as well. + *

Issue: may be useful to also have a function that returns the list of + * fields in a pattern, in order, since we have that internally. + * That would be useful for getting the UI order of field elements. + */ + +/** + * Opaque type for a date/time pattern generator object. + * @stable ICU 3.8 + */ +typedef void *UDateTimePatternGenerator; + +/** + * Field number constants for udatpg_getAppendItemFormats() and similar functions. + * These constants are separate from UDateFormatField despite semantic overlap + * because some fields are merged for the date/time pattern generator. + * @stable ICU 3.8 + */ +typedef enum UDateTimePatternField { + /** @stable ICU 3.8 */ + UDATPG_ERA_FIELD, + /** @stable ICU 3.8 */ + UDATPG_YEAR_FIELD, + /** @stable ICU 3.8 */ + UDATPG_QUARTER_FIELD, + /** @stable ICU 3.8 */ + UDATPG_MONTH_FIELD, + /** @stable ICU 3.8 */ + UDATPG_WEEK_OF_YEAR_FIELD, + /** @stable ICU 3.8 */ + UDATPG_WEEK_OF_MONTH_FIELD, + /** @stable ICU 3.8 */ + UDATPG_WEEKDAY_FIELD, + /** @stable ICU 3.8 */ + UDATPG_DAY_OF_YEAR_FIELD, + /** @stable ICU 3.8 */ + UDATPG_DAY_OF_WEEK_IN_MONTH_FIELD, + /** @stable ICU 3.8 */ + UDATPG_DAY_FIELD, + /** @stable ICU 3.8 */ + UDATPG_DAYPERIOD_FIELD, + /** @stable ICU 3.8 */ + UDATPG_HOUR_FIELD, + /** @stable ICU 3.8 */ + UDATPG_MINUTE_FIELD, + /** @stable ICU 3.8 */ + UDATPG_SECOND_FIELD, + /** @stable ICU 3.8 */ + UDATPG_FRACTIONAL_SECOND_FIELD, + /** @stable ICU 3.8 */ + UDATPG_ZONE_FIELD, + + /* Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API, + * it is needed for layout of DateTimePatternGenerator object. */ +#ifndef U_FORCE_HIDE_DEPRECATED_API + /** + * One more than the highest normal UDateTimePatternField value. + * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. + */ + UDATPG_FIELD_COUNT +#endif // U_FORCE_HIDE_DEPRECATED_API +} UDateTimePatternField; + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +/** + * Field display name width constants for udatpg_getFieldDisplayName(). + * @stable ICU 61 + */ +typedef enum UDateTimePGDisplayWidth { + /** @stable ICU 61 */ + UDATPG_WIDE, + /** @stable ICU 61 */ + UDATPG_ABBREVIATED, + /** @stable ICU 61 */ + UDATPG_NARROW +} UDateTimePGDisplayWidth; +#endif // (NTDDI_VERSION >= NTDDI_WIN10_VB) + +/** + * Masks to control forcing the length of specified fields in the returned + * pattern to match those in the skeleton (when this would not happen + * otherwise). These may be combined to force the length of multiple fields. + * Used with udatpg_getBestPatternWithOptions, udatpg_replaceFieldTypesWithOptions. + * @stable ICU 4.4 + */ +typedef enum UDateTimePatternMatchOptions { + /** @stable ICU 4.4 */ + UDATPG_MATCH_NO_OPTIONS = 0, + /** @stable ICU 4.4 */ + UDATPG_MATCH_HOUR_FIELD_LENGTH = 1 << UDATPG_HOUR_FIELD, + /** @stable ICU 4.4 */ + UDATPG_MATCH_ALL_FIELDS_LENGTH = (1 << UDATPG_FIELD_COUNT) - 1 +} UDateTimePatternMatchOptions; + +/** + * Status return values from udatpg_addPattern(). + * @stable ICU 3.8 + */ +typedef enum UDateTimePatternConflict { + /** @stable ICU 3.8 */ + UDATPG_NO_CONFLICT, + /** @stable ICU 3.8 */ + UDATPG_BASE_CONFLICT, + /** @stable ICU 3.8 */ + UDATPG_CONFLICT, +} UDateTimePatternConflict; + +/** + * Open a generator according to a given locale. + * @param locale + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return a pointer to UDateTimePatternGenerator. + * @stable ICU 3.8 + */ +U_CAPI UDateTimePatternGenerator * U_EXPORT2 +udatpg_open(const char *locale, UErrorCode *pErrorCode); + +/** + * Open an empty generator, to be constructed with udatpg_addPattern(...) etc. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return a pointer to UDateTimePatternGenerator. + * @stable ICU 3.8 + */ +U_CAPI UDateTimePatternGenerator * U_EXPORT2 +udatpg_openEmpty(UErrorCode *pErrorCode); + +/** + * Close a generator. + * @param dtpg a pointer to UDateTimePatternGenerator. + * @stable ICU 3.8 + */ +U_CAPI void U_EXPORT2 +udatpg_close(UDateTimePatternGenerator *dtpg); + + +/** + * Create a copy pf a generator. + * @param dtpg a pointer to UDateTimePatternGenerator to be copied. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return a pointer to a new UDateTimePatternGenerator. + * @stable ICU 3.8 + */ +U_CAPI UDateTimePatternGenerator * U_EXPORT2 +udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode); + +/** + * Get the best pattern matching the input skeleton. It is guaranteed to + * have all of the fields in the skeleton. + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param skeleton + * The skeleton is a pattern containing only the variable fields. + * For example, "MMMdd" and "mmhh" are skeletons. + * @param length the length of skeleton + * @param bestPattern + * The best pattern found from the given skeleton. + * @param capacity the capacity of bestPattern. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of bestPattern. + * @stable ICU 3.8 + */ +U_CAPI int32_t U_EXPORT2 +udatpg_getBestPattern(UDateTimePatternGenerator *dtpg, + const UChar *skeleton, int32_t length, + UChar *bestPattern, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Get the best pattern matching the input skeleton. It is guaranteed to + * have all of the fields in the skeleton. + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param skeleton + * The skeleton is a pattern containing only the variable fields. + * For example, "MMMdd" and "mmhh" are skeletons. + * @param length the length of skeleton + * @param options + * Options for forcing the length of specified fields in the + * returned pattern to match those in the skeleton (when this + * would not happen otherwise). For default behavior, use + * UDATPG_MATCH_NO_OPTIONS. + * @param bestPattern + * The best pattern found from the given skeleton. + * @param capacity + * the capacity of bestPattern. + * @param pErrorCode + * a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of bestPattern. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg, + const UChar *skeleton, int32_t length, + UDateTimePatternMatchOptions options, + UChar *bestPattern, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Get a unique skeleton from a given pattern. For example, + * both "MMM-dd" and "dd/MMM" produce the skeleton "MMMdd". + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param unusedDtpg a pointer to UDateTimePatternGenerator. + * This parameter is no longer used. Callers may pass NULL. + * @param pattern input pattern, such as "dd/MMM". + * @param length the length of pattern. + * @param skeleton such as "MMMdd" + * @param capacity the capacity of skeleton. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of skeleton. + * @stable ICU 3.8 + */ +U_CAPI int32_t U_EXPORT2 +udatpg_getSkeleton(UDateTimePatternGenerator *unusedDtpg, + const UChar *pattern, int32_t length, + UChar *skeleton, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Get a unique base skeleton from a given pattern. This is the same + * as the skeleton, except that differences in length are minimized so + * as to only preserve the difference between string and numeric form. So + * for example, both "MMM-dd" and "d/MMM" produce the skeleton "MMMd" + * (notice the single d). + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param unusedDtpg a pointer to UDateTimePatternGenerator. + * This parameter is no longer used. Callers may pass NULL. + * @param pattern input pattern, such as "dd/MMM". + * @param length the length of pattern. + * @param baseSkeleton such as "Md" + * @param capacity the capacity of base skeleton. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of baseSkeleton. + * @stable ICU 3.8 + */ +U_CAPI int32_t U_EXPORT2 +udatpg_getBaseSkeleton(UDateTimePatternGenerator *unusedDtpg, + const UChar *pattern, int32_t length, + UChar *baseSkeleton, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Adds a pattern to the generator. If the pattern has the same skeleton as + * an existing pattern, and the override parameter is set, then the previous + * value is overridden. Otherwise, the previous value is retained. In either + * case, the conflicting status is set and previous vale is stored in + * conflicting pattern. + *

+ * Note that single-field patterns (like "MMM") are automatically added, and + * don't need to be added explicitly! + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pattern input pattern, such as "dd/MMM" + * @param patternLength the length of pattern. + * @param override When existing values are to be overridden use true, + * otherwise use false. + * @param conflictingPattern Previous pattern with the same skeleton. + * @param capacity the capacity of conflictingPattern. + * @param pLength a pointer to the length of conflictingPattern. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return conflicting status. The value could be UDATPG_NO_CONFLICT, + * UDATPG_BASE_CONFLICT or UDATPG_CONFLICT. + * @stable ICU 3.8 + */ +U_CAPI UDateTimePatternConflict U_EXPORT2 +udatpg_addPattern(UDateTimePatternGenerator *dtpg, + const UChar *pattern, int32_t patternLength, + UBool override, + UChar *conflictingPattern, int32_t capacity, int32_t *pLength, + UErrorCode *pErrorCode); + +/** + * An AppendItem format is a pattern used to append a field if there is no + * good match. For example, suppose that the input skeleton is "GyyyyMMMd", + * and there is no matching pattern internally, but there is a pattern + * matching "yyyyMMMd", say "d-MM-yyyy". Then that pattern is used, plus the + * G. The way these two are conjoined is by using the AppendItemFormat for G + * (era). So if that value is, say "{0}, {1}" then the final resulting + * pattern is "d-MM-yyyy, G". + *

+ * There are actually three available variables: {0} is the pattern so far, + * {1} is the element we are adding, and {2} is the name of the element. + *

+ * This reflects the way that the CLDR data is organized. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param field UDateTimePatternField, such as UDATPG_ERA_FIELD + * @param value pattern, such as "{0}, {1}" + * @param length the length of value. + * @stable ICU 3.8 + */ +U_CAPI void U_EXPORT2 +udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg, + UDateTimePatternField field, + const UChar *value, int32_t length); + +/** + * Getter corresponding to setAppendItemFormat. Values below 0 or at or + * above UDATPG_FIELD_COUNT are illegal arguments. + * + * @param dtpg A pointer to UDateTimePatternGenerator. + * @param field UDateTimePatternField, such as UDATPG_ERA_FIELD + * @param pLength A pointer that will receive the length of appendItemFormat. + * @return appendItemFormat for field. + * @stable ICU 3.8 + */ +U_CAPI const UChar * U_EXPORT2 +udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg, + UDateTimePatternField field, + int32_t *pLength); + +/** + * Set the name of field, eg "era" in English for ERA. These are only + * used if the corresponding AppendItemFormat is used, and if it contains a + * {2} variable. + *

+ * This reflects the way that the CLDR data is organized. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param field UDateTimePatternField + * @param value name for the field. + * @param length the length of value. + * @stable ICU 3.8 + */ +U_CAPI void U_EXPORT2 +udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg, + UDateTimePatternField field, + const UChar *value, int32_t length); + +/** + * Getter corresponding to setAppendItemNames. Values below 0 or at or above + * UDATPG_FIELD_COUNT are illegal arguments. Note: The more general function + * for getting date/time field display names is udatpg_getFieldDisplayName. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param field UDateTimePatternField, such as UDATPG_ERA_FIELD + * @param pLength A pointer that will receive the length of the name for field. + * @return name for field + * @see udatpg_getFieldDisplayName + * @stable ICU 3.8 + */ +U_CAPI const UChar * U_EXPORT2 +udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg, + UDateTimePatternField field, + int32_t *pLength); + +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +/** + * The general interface to get a display name for a particular date/time field, + * in one of several possible display widths. + * + * @param dtpg + * A pointer to the UDateTimePatternGenerator object with the localized + * display names. + * @param field + * The desired UDateTimePatternField, such as UDATPG_ERA_FIELD. + * @param width + * The desired UDateTimePGDisplayWidth, such as UDATPG_ABBREVIATED. + * @param fieldName + * A pointer to a buffer to receive the NULL-terminated display name. If the name + * fits into fieldName but cannot be NULL-terminated (length == capacity) then + * the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the name doesn't + * fit into fieldName then the error code is set to U_BUFFER_OVERFLOW_ERROR. + * @param capacity + * The size of fieldName (in UChars). + * @param pErrorCode + * A pointer to a UErrorCode to receive any errors + * @return + * The full length of the name; if greater than capacity, fieldName contains a + * truncated result. + * @stable ICU 61 + */ +U_CAPI int32_t U_EXPORT2 +udatpg_getFieldDisplayName(const UDateTimePatternGenerator *dtpg, + UDateTimePatternField field, + UDateTimePGDisplayWidth width, + UChar *fieldName, int32_t capacity, + UErrorCode *pErrorCode); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_VB) + +/** + * The DateTimeFormat is a message format pattern used to compose date and + * time patterns. The default pattern in the root locale is "{1} {0}", where + * {1} will be replaced by the date pattern and {0} will be replaced by the + * time pattern; however, other locales may specify patterns such as + * "{1}, {0}" or "{1} 'at' {0}", etc. + *

+ * This is used when the input skeleton contains both date and time fields, + * but there is not a close match among the added patterns. For example, + * suppose that this object was created by adding "dd-MMM" and "hh:mm", and + * its DateTimeFormat is the default "{1} {0}". Then if the input skeleton + * is "MMMdhmm", there is not an exact match, so the input skeleton is + * broken up into two components "MMMd" and "hmm". There are close matches + * for those two skeletons, so the result is put together with this pattern, + * resulting in "d-MMM h:mm". + * + * There are four DateTimeFormats in a UDateTimePatternGenerator object, + * corresponding to date styles UDAT_FULL..UDAT_SHORT. This method sets + * all of them to the specified pattern. To set them individually, see + * udatpg_setDateTimeFormatForStyle. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param dtFormat + * message format pattern, here {1} will be replaced by the date + * pattern and {0} will be replaced by the time pattern. + * @param length the length of dtFormat. + * @stable ICU 3.8 + */ +U_CAPI void U_EXPORT2 +udatpg_setDateTimeFormat(const UDateTimePatternGenerator *dtpg, + const UChar *dtFormat, int32_t length); + +/** + * Getter corresponding to setDateTimeFormat. + * + * There are four DateTimeFormats in a UDateTimePatternGenerator object, + * corresponding to date styles UDAT_FULL..UDAT_SHORT. This method gets + * the style for UDAT_MEDIUM (the default). To get them individually, see + * udatpg_getDateTimeFormatForStyle. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pLength A pointer that will receive the length of the format + * @return dateTimeFormat. + * @stable ICU 3.8 + */ +U_CAPI const UChar * U_EXPORT2 +udatpg_getDateTimeFormat(const UDateTimePatternGenerator *dtpg, + int32_t *pLength); + +#if !UCONFIG_NO_FORMATTING +#endif /* #if !UCONFIG_NO_FORMATTING */ + +/** + * The decimal value is used in formatting fractions of seconds. If the + * skeleton contains fractional seconds, then this is used with the + * fractional seconds. For example, suppose that the input pattern is + * "hhmmssSSSS", and the best matching pattern internally is "H:mm:ss", and + * the decimal string is ",". Then the resulting pattern is modified to be + * "H:mm:ss,SSSS" + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param decimal + * @param length the length of decimal. + * @stable ICU 3.8 + */ +U_CAPI void U_EXPORT2 +udatpg_setDecimal(UDateTimePatternGenerator *dtpg, + const UChar *decimal, int32_t length); + +/** + * Getter corresponding to setDecimal. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pLength A pointer that will receive the length of the decimal string. + * @return corresponding to the decimal point. + * @stable ICU 3.8 + */ +U_CAPI const UChar * U_EXPORT2 +udatpg_getDecimal(const UDateTimePatternGenerator *dtpg, + int32_t *pLength); + +/** + * Adjusts the field types (width and subtype) of a pattern to match what is + * in a skeleton. That is, if you supply a pattern like "d-M H:m", and a + * skeleton of "MMMMddhhmm", then the input pattern is adjusted to be + * "dd-MMMM hh:mm". This is used internally to get the best match for the + * input skeleton, but can also be used externally. + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pattern Input pattern + * @param patternLength the length of input pattern. + * @param skeleton + * @param skeletonLength the length of input skeleton. + * @param dest pattern adjusted to match the skeleton fields widths and subtypes. + * @param destCapacity the capacity of dest. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of dest. + * @stable ICU 3.8 + */ +U_CAPI int32_t U_EXPORT2 +udatpg_replaceFieldTypes(UDateTimePatternGenerator *dtpg, + const UChar *pattern, int32_t patternLength, + const UChar *skeleton, int32_t skeletonLength, + UChar *dest, int32_t destCapacity, + UErrorCode *pErrorCode); + +/** + * Adjusts the field types (width and subtype) of a pattern to match what is + * in a skeleton. That is, if you supply a pattern like "d-M H:m", and a + * skeleton of "MMMMddhhmm", then the input pattern is adjusted to be + * "dd-MMMM hh:mm". This is used internally to get the best match for the + * input skeleton, but can also be used externally. + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pattern Input pattern + * @param patternLength the length of input pattern. + * @param skeleton + * @param skeletonLength the length of input skeleton. + * @param options + * Options controlling whether the length of specified fields in the + * pattern are adjusted to match those in the skeleton (when this + * would not happen otherwise). For default behavior, use + * UDATPG_MATCH_NO_OPTIONS. + * @param dest pattern adjusted to match the skeleton fields widths and subtypes. + * @param destCapacity the capacity of dest. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of dest. + * @stable ICU 4.4 + */ +U_CAPI int32_t U_EXPORT2 +udatpg_replaceFieldTypesWithOptions(UDateTimePatternGenerator *dtpg, + const UChar *pattern, int32_t patternLength, + const UChar *skeleton, int32_t skeletonLength, + UDateTimePatternMatchOptions options, + UChar *dest, int32_t destCapacity, + UErrorCode *pErrorCode); + +/** + * Return a UEnumeration list of all the skeletons in canonical form. + * Call udatpg_getPatternForSkeleton() to get the corresponding pattern. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call + * @return a UEnumeration list of all the skeletons + * The caller must close the object. + * @stable ICU 3.8 + */ +U_CAPI UEnumeration * U_EXPORT2 +udatpg_openSkeletons(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode); + +/** + * Return a UEnumeration list of all the base skeletons in canonical form. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return a UEnumeration list of all the base skeletons + * The caller must close the object. + * @stable ICU 3.8 + */ +U_CAPI UEnumeration * U_EXPORT2 +udatpg_openBaseSkeletons(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode); + +/** + * Get the pattern corresponding to a given skeleton. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param skeleton + * @param skeletonLength pointer to the length of skeleton. + * @param pLength pointer to the length of return pattern. + * @return pattern corresponding to a given skeleton. + * @stable ICU 3.8 + */ +U_CAPI const UChar * U_EXPORT2 +udatpg_getPatternForSkeleton(const UDateTimePatternGenerator *dtpg, + const UChar *skeleton, int32_t skeletonLength, + int32_t *pLength); + +#endif // __UDATPG_H__ +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +#if !UCONFIG_NO_FORMATTING + +/** + * Return the default hour cycle for a locale. Uses the locale that the + * UDateTimePatternGenerator was initially created with. + * + * Cannot be used on an empty UDateTimePatternGenerator instance. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. Set to U_UNSUPPORTED_ERROR + * if used on an empty instance. + * @return the default hour cycle. + * @stable ICU 67 + */ +U_CAPI UDateFormatHourCycle U_EXPORT2 +udatpg_getDefaultHourCycle(const UDateTimePatternGenerator *dtpg, UErrorCode* pErrorCode); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + + + +// unum.h.bak +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* Copyright (C) 1997-2015, International Business Machines Corporation and others. +* All Rights Reserved. +* Modification History: +* +* Date Name Description +* 06/24/99 helena Integrated Alan's NF enhancements and Java2 bug fixes +******************************************************************************* +*/ + +#ifndef _UNUM +#define _UNUM + + +#if !UCONFIG_NO_FORMATTING + +/** + * \file + * \brief C API: Compatibility APIs for number formatting. + * + *

Number Format C API

+ * + *

IMPORTANT: New users with are strongly encouraged to + * see if unumberformatter.h fits their use case. Although not deprecated, + * this header is provided for backwards compatibility only. + * + * Number Format C API Provides functions for + * formatting and parsing a number. Also provides methods for + * determining which locales have number formats, and what their names + * are. + *

+ * UNumberFormat helps you to format and parse numbers for any locale. + * Your code can be completely independent of the locale conventions + * for decimal points, thousands-separators, or even the particular + * decimal digits used, or whether the number format is even decimal. + * There are different number format styles like decimal, currency, + * percent and spellout. + *

+ * To format a number for the current Locale, use one of the static + * factory methods: + *

+ * \code
+ *    UChar myString[20];
+ *    double myNumber = 7.0;
+ *    UErrorCode status = U_ZERO_ERROR;
+ *    UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
+ *    unum_formatDouble(nf, myNumber, myString, 20, NULL, &status);
+ *    printf(" Example 1: %s\n", austrdup(myString) ); //austrdup( a function used to convert UChar* to char*)
+ * \endcode
+ * 
+ * If you are formatting multiple numbers, it is more efficient to get + * the format and use it multiple times so that the system doesn't + * have to fetch the information about the local language and country + * conventions multiple times. + *
+ * \code
+ * uint32_t i, resultlength, reslenneeded;
+ * UErrorCode status = U_ZERO_ERROR;
+ * UFieldPosition pos;
+ * uint32_t a[] = { 123, 3333, -1234567 };
+ * const uint32_t a_len = sizeof(a) / sizeof(a[0]);
+ * UNumberFormat* nf;
+ * UChar* result = NULL;
+ *
+ * nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
+ * for (i = 0; i < a_len; i++) {
+ *    resultlength=0;
+ *    reslenneeded=unum_format(nf, a[i], NULL, resultlength, &pos, &status);
+ *    result = NULL;
+ *    if(status==U_BUFFER_OVERFLOW_ERROR){
+ *       status=U_ZERO_ERROR;
+ *       resultlength=reslenneeded+1;
+ *       result=(UChar*)malloc(sizeof(UChar) * resultlength);
+ *       unum_format(nf, a[i], result, resultlength, &pos, &status);
+ *    }
+ *    printf( " Example 2: %s\n", austrdup(result));
+ *    free(result);
+ * }
+ * \endcode
+ * 
+ * To format a number for a different Locale, specify it in the + * call to unum_open(). + *
+ * \code
+ *     UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, "fr_FR", NULL, &success)
+ * \endcode
+ * 
+ * You can use a NumberFormat API unum_parse() to parse. + *
+ * \code
+ *    UErrorCode status = U_ZERO_ERROR;
+ *    int32_t pos=0;
+ *    int32_t num;
+ *    num = unum_parse(nf, str, u_strlen(str), &pos, &status);
+ * \endcode
+ * 
+ * Use UNUM_DECIMAL to get the normal number format for that country. + * There are other static options available. Use UNUM_CURRENCY + * to get the currency number format for that country. Use UNUM_PERCENT + * to get a format for displaying percentages. With this format, a + * fraction from 0.53 is displayed as 53%. + *

+ * Use a pattern to create either a DecimalFormat or a RuleBasedNumberFormat + * formatter. The pattern must conform to the syntax defined for those + * formatters. + *

+ * You can also control the display of numbers with such function as + * unum_getAttributes() and unum_setAttributes(), which let you set the + * minimum fraction digits, grouping, etc. + * @see UNumberFormatAttributes for more details + *

+ * You can also use forms of the parse and format methods with + * ParsePosition and UFieldPosition to allow you to: + *

    + *
  • (a) progressively parse through pieces of a string. + *
  • (b) align the decimal point and other areas. + *
+ *

+ * It is also possible to change or set the symbols used for a particular + * locale like the currency symbol, the grouping separator , monetary separator + * etc by making use of functions unum_setSymbols() and unum_getSymbols(). + */ + +/** A number formatter. + * For usage in C programs. + * @stable ICU 2.0 + */ +typedef void* UNumberFormat; + +/** The possible number format styles. + * @stable ICU 2.0 + */ +typedef enum UNumberFormatStyle { + /** + * Decimal format defined by a pattern string. + * @stable ICU 3.0 + */ + UNUM_PATTERN_DECIMAL=0, + /** + * Decimal format ("normal" style). + * @stable ICU 2.0 + */ + UNUM_DECIMAL=1, + /** + * Currency format (generic). + * Defaults to UNUM_CURRENCY_STANDARD style + * (using currency symbol, e.g., "$1.00", with non-accounting + * style for negative values e.g. using minus sign). + * The specific style may be specified using the -cf- locale key. + * @stable ICU 2.0 + */ + UNUM_CURRENCY=2, + /** + * Percent format + * @stable ICU 2.0 + */ + UNUM_PERCENT=3, + /** + * Scientific format + * @stable ICU 2.1 + */ + UNUM_SCIENTIFIC=4, + /** + * Spellout rule-based format. The default ruleset can be specified/changed using + * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets + * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS. + * @stable ICU 2.0 + */ + UNUM_SPELLOUT=5, + /** + * Ordinal rule-based format . The default ruleset can be specified/changed using + * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets + * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS. + * @stable ICU 3.0 + */ + UNUM_ORDINAL=6, + /** + * Duration rule-based format + * @stable ICU 3.0 + */ + UNUM_DURATION=7, + /** + * Numbering system rule-based format + * @stable ICU 4.2 + */ + UNUM_NUMBERING_SYSTEM=8, + /** + * Rule-based format defined by a pattern string. + * @stable ICU 3.0 + */ + UNUM_PATTERN_RULEBASED=9, + /** + * Currency format with an ISO currency code, e.g., "USD1.00". + * @stable ICU 4.8 + */ + UNUM_CURRENCY_ISO=10, + /** + * Currency format with a pluralized currency name, + * e.g., "1.00 US dollar" and "3.00 US dollars". + * @stable ICU 4.8 + */ + UNUM_CURRENCY_PLURAL=11, + /** + * Currency format for accounting, e.g., "($3.00)" for + * negative currency amount instead of "-$3.00" ({@link #UNUM_CURRENCY}). + * Overrides any style specified using -cf- key in locale. + * @stable ICU 53 + */ + UNUM_CURRENCY_ACCOUNTING=12, + /** + * Currency format with a currency symbol given CASH usage, e.g., + * "NT$3" instead of "NT$3.23". + * @stable ICU 54 + */ + UNUM_CASH_CURRENCY=13, + /** + * Decimal format expressed using compact notation + * (short form, corresponds to UNumberCompactStyle=UNUM_SHORT) + * e.g. "23K", "45B" + * @stable ICU 56 + */ + UNUM_DECIMAL_COMPACT_SHORT=14, + /** + * Decimal format expressed using compact notation + * (long form, corresponds to UNumberCompactStyle=UNUM_LONG) + * e.g. "23 thousand", "45 billion" + * @stable ICU 56 + */ + UNUM_DECIMAL_COMPACT_LONG=15, + /** + * Currency format with a currency symbol, e.g., "$1.00", + * using non-accounting style for negative values (e.g. minus sign). + * Overrides any style specified using -cf- key in locale. + * @stable ICU 56 + */ + UNUM_CURRENCY_STANDARD=16, + + + /** + * Default format + * @stable ICU 2.0 + */ + UNUM_DEFAULT = UNUM_DECIMAL, + /** + * Alias for UNUM_PATTERN_DECIMAL + * @stable ICU 3.0 + */ + UNUM_IGNORE = UNUM_PATTERN_DECIMAL +} UNumberFormatStyle; + +/** The possible number format rounding modes. + * + *

+ * For more detail on rounding modes, see: + * https://unicode-org.github.io/icu/userguide/format_parse/numbers/rounding-modes + * + * @stable ICU 2.0 + */ +typedef enum UNumberFormatRoundingMode { + UNUM_ROUND_CEILING, + UNUM_ROUND_FLOOR, + UNUM_ROUND_DOWN, + UNUM_ROUND_UP, + /** + * Half-even rounding + * @stable, ICU 3.8 + */ + UNUM_ROUND_HALFEVEN, + UNUM_ROUND_HALFDOWN = UNUM_ROUND_HALFEVEN + 1, + UNUM_ROUND_HALFUP, + /** + * ROUND_UNNECESSARY reports an error if formatted result is not exact. + * @stable ICU 4.8 + */ + UNUM_ROUND_UNNECESSARY, + /** + * Rounds ties toward the odd number. + * @stable ICU 69 + */ + UNUM_ROUND_HALF_ODD, + /** + * Rounds ties toward +∞. + * @stable ICU 69 + */ + UNUM_ROUND_HALF_CEILING, + /** + * Rounds ties toward -∞. + * @stable ICU 69 + */ + UNUM_ROUND_HALF_FLOOR, +} UNumberFormatRoundingMode; + +/** The possible number format pad positions. + * @stable ICU 2.0 + */ +typedef enum UNumberFormatPadPosition { + UNUM_PAD_BEFORE_PREFIX, + UNUM_PAD_AFTER_PREFIX, + UNUM_PAD_BEFORE_SUFFIX, + UNUM_PAD_AFTER_SUFFIX +} UNumberFormatPadPosition; + +/** + * Constants for specifying short or long format. + * @stable ICU 51 + */ +typedef enum UNumberCompactStyle { + /** @stable ICU 51 */ + UNUM_SHORT, + /** @stable ICU 51 */ + UNUM_LONG + /** @stable ICU 51 */ +} UNumberCompactStyle; + +/** + * Constants for specifying currency spacing + * @stable ICU 4.8 + */ +enum UCurrencySpacing { + /** @stable ICU 4.8 */ + UNUM_CURRENCY_MATCH, + /** @stable ICU 4.8 */ + UNUM_CURRENCY_SURROUNDING_MATCH, + /** @stable ICU 4.8 */ + UNUM_CURRENCY_INSERT, + + /* Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API, + * it is needed for layout of DecimalFormatSymbols object. */ +#ifndef U_FORCE_HIDE_DEPRECATED_API + /** + * One more than the highest normal UCurrencySpacing value. + * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. + */ + UNUM_CURRENCY_SPACING_COUNT +#endif // U_FORCE_HIDE_DEPRECATED_API +}; +typedef enum UCurrencySpacing UCurrencySpacing; /**< @stable ICU 4.8 */ + + +/** + * FieldPosition and UFieldPosition selectors for format fields + * defined by NumberFormat and UNumberFormat. + * @stable ICU 49 + */ +typedef enum UNumberFormatFields { + /** @stable ICU 49 */ + UNUM_INTEGER_FIELD, + /** @stable ICU 49 */ + UNUM_FRACTION_FIELD, + /** @stable ICU 49 */ + UNUM_DECIMAL_SEPARATOR_FIELD, + /** @stable ICU 49 */ + UNUM_EXPONENT_SYMBOL_FIELD, + /** @stable ICU 49 */ + UNUM_EXPONENT_SIGN_FIELD, + /** @stable ICU 49 */ + UNUM_EXPONENT_FIELD, + /** @stable ICU 49 */ + UNUM_GROUPING_SEPARATOR_FIELD, + /** @stable ICU 49 */ + UNUM_CURRENCY_FIELD, + /** @stable ICU 49 */ + UNUM_PERCENT_FIELD, + /** @stable ICU 49 */ + UNUM_PERMILL_FIELD, + /** @stable ICU 49 */ + UNUM_SIGN_FIELD, + /** @stable ICU 64 */ + UNUM_MEASURE_UNIT_FIELD, + /** @stable ICU 64 */ + UNUM_COMPACT_FIELD, + +} UNumberFormatFields; + + +/** + * Selectors with special numeric values to use locale default minimum grouping + * digits for the DecimalFormat/UNumberFormat setMinimumGroupingDigits method. + * Do not use these constants with the [U]NumberFormatter API. + * + * @stable ICU 68 + */ +typedef enum UNumberFormatMinimumGroupingDigits { + /** + * Display grouping using the default strategy for all locales. + * @stable ICU 68 + */ + UNUM_MINIMUM_GROUPING_DIGITS_AUTO = -2, + /** + * Display grouping using locale defaults, except do not show grouping on + * values smaller than 10000 (such that there is a minimum of two digits + * before the first separator). + * @stable ICU 68 + */ + UNUM_MINIMUM_GROUPING_DIGITS_MIN2 = -3, +} UNumberFormatMinimumGroupingDigits; + +/** + * Create and return a new UNumberFormat for formatting and parsing + * numbers. A UNumberFormat may be used to format numbers by calling + * {@link #unum_format }, and to parse numbers by calling {@link #unum_parse }. + * The caller must call {@link #unum_close } when done to release resources + * used by this object. + * @param style The type of number format to open: one of + * UNUM_DECIMAL, UNUM_CURRENCY, UNUM_PERCENT, UNUM_SCIENTIFIC, + * UNUM_CURRENCY_ISO, UNUM_CURRENCY_PLURAL, UNUM_SPELLOUT, + * UNUM_ORDINAL, UNUM_DURATION, UNUM_NUMBERING_SYSTEM, + * UNUM_PATTERN_DECIMAL, UNUM_PATTERN_RULEBASED, or UNUM_DEFAULT. + * If UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED is passed then the + * number format is opened using the given pattern, which must conform + * to the syntax described in DecimalFormat or RuleBasedNumberFormat, + * respectively. + * + *

NOTE:: New users with are strongly encouraged to + * use unumf_openForSkeletonAndLocale instead of unum_open. + * + * @param pattern A pattern specifying the format to use. + * This parameter is ignored unless the style is + * UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED. + * @param patternLength The number of characters in the pattern, or -1 + * if null-terminated. This parameter is ignored unless the style is + * UNUM_PATTERN. + * @param locale A locale identifier to use to determine formatting + * and parsing conventions, or NULL to use the default locale. + * @param parseErr A pointer to a UParseError struct to receive the + * details of any parsing errors, or NULL if no parsing error details + * are desired. + * @param status A pointer to an input-output UErrorCode. + * @return A pointer to a newly created UNumberFormat, or NULL if an + * error occurred. + * @see unum_close + * @see DecimalFormat + * @stable ICU 2.0 + */ +U_CAPI UNumberFormat* U_EXPORT2 +unum_open( UNumberFormatStyle style, + const UChar* pattern, + int32_t patternLength, + const char* locale, + UParseError* parseErr, + UErrorCode* status); + + +/** +* Close a UNumberFormat. +* Once closed, a UNumberFormat may no longer be used. +* @param fmt The formatter to close. +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +unum_close(UNumberFormat* fmt); + + +/** + * Open a copy of a UNumberFormat. + * This function performs a deep copy. + * @param fmt The format to copy + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UNumberFormat identical to fmt. + * @stable ICU 2.0 + */ +U_CAPI UNumberFormat* U_EXPORT2 +unum_clone(const UNumberFormat *fmt, + UErrorCode *status); + +/** +* Format an integer using a UNumberFormat. +* The integer will be formatted according to the UNumberFormat's locale. +* @param fmt The formatter to use. +* @param number The number to format. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_formatInt64 +* @see unum_formatDouble +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_format( const UNumberFormat* fmt, + int32_t number, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, + UErrorCode* status); + +/** +* Format an int64 using a UNumberFormat. +* The int64 will be formatted according to the UNumberFormat's locale. +* @param fmt The formatter to use. +* @param number The number to format. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_format +* @see unum_formatDouble +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_formatInt64(const UNumberFormat *fmt, + int64_t number, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, + UErrorCode* status); + +/** +* Format a double using a UNumberFormat. +* The double will be formatted according to the UNumberFormat's locale. +* @param fmt The formatter to use. +* @param number The number to format. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_format +* @see unum_formatInt64 +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_formatDouble( const UNumberFormat* fmt, + double number, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, /* 0 if ignore */ + UErrorCode* status); + +/** +* Format a double using a UNumberFormat according to the UNumberFormat's locale, +* and initialize a UFieldPositionIterator that enumerates the subcomponents of +* the resulting string. +* +* @param format +* The formatter to use. +* @param number +* The number to format. +* @param result +* A pointer to a buffer to receive the NULL-terminated formatted +* number. If the formatted number fits into dest but cannot be +* NULL-terminated (length == resultLength) then the error code is set +* to U_STRING_NOT_TERMINATED_WARNING. If the formatted number doesn't +* fit into result then the error code is set to +* U_BUFFER_OVERFLOW_ERROR. +* @param resultLength +* The maximum size of result. +* @param fpositer +* A pointer to a UFieldPositionIterator created by {@link #ufieldpositer_open} +* (may be NULL if field position information is not needed, but in this +* case it's preferable to use {@link #unum_formatDouble}). Iteration +* information already present in the UFieldPositionIterator is deleted, +* and the iterator is reset to apply to the fields in the formatted +* string created by this function call. The field values and indexes +* returned by {@link #ufieldpositer_next} represent fields denoted by +* the UNumberFormatFields enum. Fields are not returned in a guaranteed +* order. Fields cannot overlap, but they may nest. For example, 1234 +* could format as "1,234" which might consist of a grouping separator +* field for ',' and an integer field encompassing the entire string. +* @param status +* A pointer to an UErrorCode to receive any errors +* @return +* The total buffer size needed; if greater than resultLength, the +* output was truncated. +* @see unum_formatDouble +* @see unum_parse +* @see unum_parseDouble +* @see UFieldPositionIterator +* @see UNumberFormatFields +* @stable ICU 59 +*/ +U_CAPI int32_t U_EXPORT2 +unum_formatDoubleForFields(const UNumberFormat* format, + double number, + UChar* result, + int32_t resultLength, + UFieldPositionIterator* fpositer, + UErrorCode* status); + + +/** +* Format a decimal number using a UNumberFormat. +* The number will be formatted according to the UNumberFormat's locale. +* The syntax of the input number is a "numeric string" +* as defined in the Decimal Arithmetic Specification, available at +* http://speleotrove.com/decimal +* @param fmt The formatter to use. +* @param number The number to format. +* @param length The length of the input number, or -1 if the input is nul-terminated. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case it is ignored. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_format +* @see unum_formatInt64 +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 4.4 +*/ +U_CAPI int32_t U_EXPORT2 +unum_formatDecimal( const UNumberFormat* fmt, + const char * number, + int32_t length, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, /* 0 if ignore */ + UErrorCode* status); + +/** + * Format a double currency amount using a UNumberFormat. + * The double will be formatted according to the UNumberFormat's locale. + * + * To format an exact decimal value with a currency, use + * `unum_setTextAttribute(UNUM_CURRENCY_CODE, ...)` followed by unum_formatDecimal. + * Your UNumberFormat must be created with the UNUM_CURRENCY style. Alternatively, + * consider using unumf_openForSkeletonAndLocale. + * + * @param fmt the formatter to use + * @param number the number to format + * @param currency the 3-letter null-terminated ISO 4217 currency code + * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If + * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) + * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number + * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. + * @param resultLength the maximum number of UChars to write to result + * @param pos a pointer to a UFieldPosition. On input, + * position->field is read. On output, position->beginIndex and + * position->endIndex indicate the beginning and ending indices of + * field number position->field, if such a field exists. This + * parameter may be NULL, in which case it is ignored. + * @param status a pointer to an input-output UErrorCode + * @return the total buffer size needed; if greater than resultLength, + * the output was truncated. + * @see unum_formatDouble + * @see unum_parseDoubleCurrency + * @see UFieldPosition + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +unum_formatDoubleCurrency(const UNumberFormat* fmt, + double number, + UChar* currency, + UChar* result, + int32_t resultLength, + UFieldPosition* pos, + UErrorCode* status); + +/** + * Format a UFormattable into a string. + * @param fmt the formatter to use + * @param number the number to format, as a UFormattable + * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If + * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) + * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number + * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. + * @param resultLength the maximum number of UChars to write to result + * @param pos a pointer to a UFieldPosition. On input, + * position->field is read. On output, position->beginIndex and + * position->endIndex indicate the beginning and ending indices of + * field number position->field, if such a field exists. This + * parameter may be NULL, in which case it is ignored. + * @param status a pointer to an input-output UErrorCode + * @return the total buffer size needed; if greater than resultLength, + * the output was truncated. Will return 0 on error. + * @see unum_parseToUFormattable + * @stable ICU 52 + */ +U_CAPI int32_t U_EXPORT2 +unum_formatUFormattable(const UNumberFormat* fmt, + const UFormattable *number, + UChar *result, + int32_t resultLength, + UFieldPosition *pos, + UErrorCode *status); + +/** +* Parse a string into an integer using a UNumberFormat. +* The string will be parsed according to the UNumberFormat's locale. +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed integer +* @see unum_parseInt64 +* @see unum_parseDouble +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_parse( const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + UErrorCode *status); + +/** +* Parse a string into an int64 using a UNumberFormat. +* The string will be parsed according to the UNumberFormat's locale. +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed integer +* @see unum_parse +* @see unum_parseDouble +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 2.8 +*/ +U_CAPI int64_t U_EXPORT2 +unum_parseInt64(const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + UErrorCode *status); + +/** +* Parse a string into a double using a UNumberFormat. +* The string will be parsed according to the UNumberFormat's locale. +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed double +* @see unum_parse +* @see unum_parseInt64 +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 2.0 +*/ +U_CAPI double U_EXPORT2 +unum_parseDouble( const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + UErrorCode *status); + + +/** +* Parse a number from a string into an unformatted numeric string using a UNumberFormat. +* The input string will be parsed according to the UNumberFormat's locale. +* The syntax of the output is a "numeric string" +* as defined in the Decimal Arithmetic Specification, available at +* http://speleotrove.com/decimal +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param outBuf A (char *) buffer to receive the parsed number as a string. The output string +* will be nul-terminated if there is sufficient space. +* @param outBufLength The size of the output buffer. May be zero, in which case +* the outBuf pointer may be NULL, and the function will return the +* size of the output string. +* @param status A pointer to an UErrorCode to receive any errors +* @return the length of the output string, not including any terminating nul. +* @see unum_parse +* @see unum_parseInt64 +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 4.4 +*/ +U_CAPI int32_t U_EXPORT2 +unum_parseDecimal(const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + char *outBuf, + int32_t outBufLength, + UErrorCode *status); + +/** + * Parse a string into a double and a currency using a UNumberFormat. + * The string will be parsed according to the UNumberFormat's locale. + * @param fmt the formatter to use + * @param text the text to parse + * @param textLength the length of text, or -1 if null-terminated + * @param parsePos a pointer to an offset index into text at which to + * begin parsing. On output, *parsePos will point after the last + * parsed character. This parameter may be NULL, in which case parsing + * begins at offset 0. + * @param currency a pointer to the buffer to receive the parsed null- + * terminated currency. This buffer must have a capacity of at least + * 4 UChars. + * @param status a pointer to an input-output UErrorCode + * @return the parsed double + * @see unum_parseDouble + * @see unum_formatDoubleCurrency + * @stable ICU 3.0 + */ +U_CAPI double U_EXPORT2 +unum_parseDoubleCurrency(const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t* parsePos, /* 0 = start */ + UChar* currency, + UErrorCode* status); + +/** + * Parse a UChar string into a UFormattable. + * Example code: + * \snippet test/cintltst/cnumtst.c unum_parseToUFormattable + * Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT + * and UNUM_DECIMAL_COMPACT_LONG. + * @param fmt the formatter to use + * @param result the UFormattable to hold the result. If NULL, a new UFormattable will be allocated (which the caller must close with ufmt_close). + * @param text the text to parse + * @param textLength the length of text, or -1 if null-terminated + * @param parsePos a pointer to an offset index into text at which to + * begin parsing. On output, *parsePos will point after the last + * parsed character. This parameter may be NULL in which case parsing + * begins at offset 0. + * @param status a pointer to an input-output UErrorCode + * @return the UFormattable. Will be ==result unless NULL was passed in for result, in which case it will be the newly opened UFormattable. + * @see ufmt_getType + * @see ufmt_close + * @stable ICU 52 + */ +U_CAPI UFormattable* U_EXPORT2 +unum_parseToUFormattable(const UNumberFormat* fmt, + UFormattable *result, + const UChar* text, + int32_t textLength, + int32_t* parsePos, /* 0 = start */ + UErrorCode* status); + +/** + * Set the pattern used by a UNumberFormat. This can only be used + * on a DecimalFormat, other formats return U_UNSUPPORTED_ERROR + * in the status. + * @param format The formatter to set. + * @param localized true if the pattern is localized, false otherwise. + * @param pattern The new pattern + * @param patternLength The length of pattern, or -1 if null-terminated. + * @param parseError A pointer to UParseError to receive information + * about errors occurred during parsing, or NULL if no parse error + * information is desired. + * @param status A pointer to an input-output UErrorCode. + * @see unum_toPattern + * @see DecimalFormat + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +unum_applyPattern( UNumberFormat *format, + UBool localized, + const UChar *pattern, + int32_t patternLength, + UParseError *parseError, + UErrorCode *status + ); + +/** +* Get a locale for which decimal formatting patterns are available. +* A UNumberFormat in a locale returned by this function will perform the correct +* formatting and parsing for the locale. The results of this call are not +* valid for rule-based number formats. +* @param localeIndex The index of the desired locale. +* @return A locale for which number formatting patterns are available, or 0 if none. +* @see unum_countAvailable +* @stable ICU 2.0 +*/ +U_CAPI const char* U_EXPORT2 +unum_getAvailable(int32_t localeIndex); + +/** +* Determine how many locales have decimal formatting patterns available. The +* results of this call are not valid for rule-based number formats. +* This function is useful for determining the loop ending condition for +* calls to {@link #unum_getAvailable }. +* @return The number of locales for which decimal formatting patterns are available. +* @see unum_getAvailable +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_countAvailable(void); + +#if UCONFIG_HAVE_PARSEALLINPUT +/* The UNumberFormatAttributeValue type cannot be #ifndef U_HIDE_INTERNAL_API, needed for .h variable declaration */ +/** + * @internal + */ +typedef enum UNumberFormatAttributeValue { + /** @internal */ + UNUM_FORMAT_ATTRIBUTE_VALUE_HIDDEN +} UNumberFormatAttributeValue; +#endif + +/** The possible UNumberFormat numeric attributes @stable ICU 2.0 */ +typedef enum UNumberFormatAttribute { + /** Parse integers only */ + UNUM_PARSE_INT_ONLY, + /** Use grouping separator */ + UNUM_GROUPING_USED, + /** Always show decimal point */ + UNUM_DECIMAL_ALWAYS_SHOWN, + /** Maximum integer digits */ + UNUM_MAX_INTEGER_DIGITS, + /** Minimum integer digits */ + UNUM_MIN_INTEGER_DIGITS, + /** Integer digits */ + UNUM_INTEGER_DIGITS, + /** Maximum fraction digits */ + UNUM_MAX_FRACTION_DIGITS, + /** Minimum fraction digits */ + UNUM_MIN_FRACTION_DIGITS, + /** Fraction digits */ + UNUM_FRACTION_DIGITS, + /** Multiplier */ + UNUM_MULTIPLIER, + /** Grouping size */ + UNUM_GROUPING_SIZE, + /** Rounding Mode */ + UNUM_ROUNDING_MODE, + /** Rounding increment */ + UNUM_ROUNDING_INCREMENT, + /** The width to which the output of format() is padded. */ + UNUM_FORMAT_WIDTH, + /** The position at which padding will take place. */ + UNUM_PADDING_POSITION, + /** Secondary grouping size */ + UNUM_SECONDARY_GROUPING_SIZE, + /** Use significant digits + * @stable ICU 3.0 */ + UNUM_SIGNIFICANT_DIGITS_USED, + /** Minimum significant digits + * @stable ICU 3.0 */ + UNUM_MIN_SIGNIFICANT_DIGITS, + /** Maximum significant digits + * @stable ICU 3.0 */ + UNUM_MAX_SIGNIFICANT_DIGITS, + /** Lenient parse mode used by rule-based formats. + * @stable ICU 3.0 + */ + UNUM_LENIENT_PARSE, +#if UCONFIG_HAVE_PARSEALLINPUT + /** Consume all input. (may use fastpath). Set to UNUM_YES (require fastpath), UNUM_NO (skip fastpath), or UNUM_MAYBE (heuristic). + * This is an internal ICU API. Do not use. + * @internal + */ + UNUM_PARSE_ALL_INPUT = 20, +#endif + /** + * Scale, which adjusts the position of the + * decimal point when formatting. Amounts will be multiplied by 10 ^ (scale) + * before they are formatted. The default value for the scale is 0 ( no adjustment ). + * + *

Example: setting the scale to 3, 123 formats as "123,000" + *

Example: setting the scale to -4, 123 formats as "0.0123" + * + * This setting is analogous to getMultiplierScale() and setMultiplierScale() in decimfmt.h. + * + * @stable ICU 51 */ + UNUM_SCALE = 21, + + /** + * Minimum grouping digits; most commonly set to 2 to print "1000" instead of "1,000". + * See DecimalFormat::getMinimumGroupingDigits(). + * + * For better control over grouping strategies, use UNumberFormatter. + * + * @stable ICU 64 + */ + UNUM_MINIMUM_GROUPING_DIGITS = 22, + + /** + * if this attribute is set to 0, it is set to UNUM_CURRENCY_STANDARD purpose, + * otherwise it is UNUM_CASH_CURRENCY purpose + * Default: 0 (UNUM_CURRENCY_STANDARD purpose) + * @stable ICU 54 + */ + UNUM_CURRENCY_USAGE = 23, + + + /** If 1, specifies that if setting the "max integer digits" attribute would truncate a value, set an error status rather than silently truncating. + * For example, formatting the value 1234 with 4 max int digits would succeed, but formatting 12345 would fail. There is no effect on parsing. + * Default: 0 (not set) + * @stable ICU 50 + */ + UNUM_FORMAT_FAIL_IF_MORE_THAN_MAX_DIGITS = 0x1000, + /** + * if this attribute is set to 1, specifies that, if the pattern doesn't contain an exponent, the exponent will not be parsed. If the pattern does contain an exponent, this attribute has no effect. + * Has no effect on formatting. + * Default: 0 (unset) + * @stable ICU 50 + */ + UNUM_PARSE_NO_EXPONENT = 0x1001, + + /** + * if this attribute is set to 1, specifies that, if the pattern contains a + * decimal mark the input is required to have one. If this attribute is set to 0, + * specifies that input does not have to contain a decimal mark. + * Has no effect on formatting. + * Default: 0 (unset) + * @stable ICU 54 + */ + UNUM_PARSE_DECIMAL_MARK_REQUIRED = 0x1002, + + /** + * Parsing: if set to 1, parsing is sensitive to case (lowercase/uppercase). + * + * @stable ICU 64 + */ + UNUM_PARSE_CASE_SENSITIVE = 0x1003, + + /** + * Formatting: if set to 1, whether to show the plus sign on non-negative numbers. + * + * For better control over sign display, use UNumberFormatter. + * + * @stable ICU 64 + */ + UNUM_SIGN_ALWAYS_SHOWN = 0x1004, + + +} UNumberFormatAttribute; + + +/** +* Get a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. +* @param fmt The formatter to query. +* @param attr The attribute to query; one of UNUM_PARSE_INT_ONLY, UNUM_GROUPING_USED, +* UNUM_DECIMAL_ALWAYS_SHOWN, UNUM_MAX_INTEGER_DIGITS, UNUM_MIN_INTEGER_DIGITS, UNUM_INTEGER_DIGITS, +* UNUM_MAX_FRACTION_DIGITS, UNUM_MIN_FRACTION_DIGITS, UNUM_FRACTION_DIGITS, UNUM_MULTIPLIER, +* UNUM_GROUPING_SIZE, UNUM_ROUNDING_MODE, UNUM_FORMAT_WIDTH, UNUM_PADDING_POSITION, UNUM_SECONDARY_GROUPING_SIZE, +* UNUM_SCALE, UNUM_MINIMUM_GROUPING_DIGITS. +* @return The value of attr, or -1 if the formatter doesn't have the requested attribute. The caller should use unum_hasAttribute() to tell if the attribute +* is available, rather than relaying on this function returning -1. +* @see unum_hasAttribute +* @see unum_setAttribute +* @see unum_getDoubleAttribute +* @see unum_setDoubleAttribute +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_getAttribute(const UNumberFormat* fmt, + UNumberFormatAttribute attr); + +/** +* Set a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. If the +* formatter does not understand the attribute, the call is ignored. Rule-based formatters only understand +* the lenient-parse attribute. The caller can use unum_hasAttribute() to find out if the formatter supports the attribute. +* @param fmt The formatter to set. +* @param attr The attribute to set; one of UNUM_PARSE_INT_ONLY, UNUM_GROUPING_USED, +* UNUM_DECIMAL_ALWAYS_SHOWN, UNUM_MAX_INTEGER_DIGITS, UNUM_MIN_INTEGER_DIGITS, UNUM_INTEGER_DIGITS, +* UNUM_MAX_FRACTION_DIGITS, UNUM_MIN_FRACTION_DIGITS, UNUM_FRACTION_DIGITS, UNUM_MULTIPLIER, +* UNUM_GROUPING_SIZE, UNUM_ROUNDING_MODE, UNUM_FORMAT_WIDTH, UNUM_PADDING_POSITION, UNUM_SECONDARY_GROUPING_SIZE, +* UNUM_LENIENT_PARSE, UNUM_SCALE, UNUM_MINIMUM_GROUPING_DIGITS. +* @param newValue The new value of attr. +* @see unum_hasAttribute +* @see unum_getAttribute +* @see unum_getDoubleAttribute +* @see unum_setDoubleAttribute +* @see unum_getTextAttribute +* @see unum_setTextAttribute +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +unum_setAttribute( UNumberFormat* fmt, + UNumberFormatAttribute attr, + int32_t newValue); + + +/** +* Get a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. +* If the formatter does not understand the attribute, -1 is returned. The caller should use unum_hasAttribute() +* to determine if the attribute is supported, rather than relying on this function returning -1. +* @param fmt The formatter to query. +* @param attr The attribute to query; e.g. UNUM_ROUNDING_INCREMENT. +* @return The value of attr, or -1 if the formatter doesn't understand the attribute. +* @see unum_hasAttribute +* @see unum_getAttribute +* @see unum_setAttribute +* @see unum_setDoubleAttribute +* @see unum_getTextAttribute +* @see unum_setTextAttribute +* @stable ICU 2.0 +*/ +U_CAPI double U_EXPORT2 +unum_getDoubleAttribute(const UNumberFormat* fmt, + UNumberFormatAttribute attr); + +/** +* Set a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. +* If the formatter does not understand the attribute, this call is ignored. The caller can use +* unum_hasAttribute() to tell in advance whether the formatter understands the attribute. +* @param fmt The formatter to set. +* @param attr The attribute to set; e.g. UNUM_ROUNDING_INCREMENT. +* @param newValue The new value of attr. +* @see unum_hasAttribute +* @see unum_getAttribute +* @see unum_setAttribute +* @see unum_getDoubleAttribute +* @see unum_getTextAttribute +* @see unum_setTextAttribute +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +unum_setDoubleAttribute( UNumberFormat* fmt, + UNumberFormatAttribute attr, + double newValue); + +/** The possible UNumberFormat text attributes @stable ICU 2.0*/ +typedef enum UNumberFormatTextAttribute { + /** Positive prefix */ + UNUM_POSITIVE_PREFIX, + /** Positive suffix */ + UNUM_POSITIVE_SUFFIX, + /** Negative prefix */ + UNUM_NEGATIVE_PREFIX, + /** Negative suffix */ + UNUM_NEGATIVE_SUFFIX, + /** The character used to pad to the format width. */ + UNUM_PADDING_CHARACTER, + /** The ISO currency code */ + UNUM_CURRENCY_CODE, + /** + * The default rule set, such as "%spellout-numbering-year:", "%spellout-cardinal:", + * "%spellout-ordinal-masculine-plural:", "%spellout-ordinal-feminine:", or + * "%spellout-ordinal-neuter:". The available public rulesets can be listed using + * unum_getTextAttribute with UNUM_PUBLIC_RULESETS. This is only available with + * rule-based formatters. + * @stable ICU 3.0 + */ + UNUM_DEFAULT_RULESET, + /** + * The public rule sets. This is only available with rule-based formatters. + * This is a read-only attribute. The public rulesets are returned as a + * single string, with each ruleset name delimited by ';' (semicolon). See the + * CLDR LDML spec for more information about RBNF rulesets: + * http://www.unicode.org/reports/tr35/tr35-numbers.html#Rule-Based_Number_Formatting + * @stable ICU 3.0 + */ + UNUM_PUBLIC_RULESETS +} UNumberFormatTextAttribute; + +/** +* Get a text attribute associated with a UNumberFormat. +* An example of a text attribute is the suffix for positive numbers. If the formatter +* does not understand the attribute, U_UNSUPPORTED_ERROR is returned as the status. +* Rule-based formatters only understand UNUM_DEFAULT_RULESET and UNUM_PUBLIC_RULESETS. +* @param fmt The formatter to query. +* @param tag The attribute to query; one of UNUM_POSITIVE_PREFIX, UNUM_POSITIVE_SUFFIX, +* UNUM_NEGATIVE_PREFIX, UNUM_NEGATIVE_SUFFIX, UNUM_PADDING_CHARACTER, UNUM_CURRENCY_CODE, +* UNUM_DEFAULT_RULESET, or UNUM_PUBLIC_RULESETS. +* @param result A pointer to a buffer to receive the attribute. +* @param resultLength The maximum size of result. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_setTextAttribute +* @see unum_getAttribute +* @see unum_setAttribute +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_getTextAttribute( const UNumberFormat* fmt, + UNumberFormatTextAttribute tag, + UChar* result, + int32_t resultLength, + UErrorCode* status); + +/** +* Set a text attribute associated with a UNumberFormat. +* An example of a text attribute is the suffix for positive numbers. Rule-based formatters +* only understand UNUM_DEFAULT_RULESET. +* @param fmt The formatter to set. +* @param tag The attribute to set; one of UNUM_POSITIVE_PREFIX, UNUM_POSITIVE_SUFFIX, +* UNUM_NEGATIVE_PREFIX, UNUM_NEGATIVE_SUFFIX, UNUM_PADDING_CHARACTER, UNUM_CURRENCY_CODE, +* or UNUM_DEFAULT_RULESET. +* @param newValue The new value of attr. +* @param newValueLength The length of newValue, or -1 if null-terminated. +* @param status A pointer to an UErrorCode to receive any errors +* @see unum_getTextAttribute +* @see unum_getAttribute +* @see unum_setAttribute +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +unum_setTextAttribute( UNumberFormat* fmt, + UNumberFormatTextAttribute tag, + const UChar* newValue, + int32_t newValueLength, + UErrorCode *status); + +/** + * Extract the pattern from a UNumberFormat. The pattern will follow + * the DecimalFormat pattern syntax. + * @param fmt The formatter to query. + * @param isPatternLocalized true if the pattern should be localized, + * false otherwise. This is ignored if the formatter is a rule-based + * formatter. + * @param result A pointer to a buffer to receive the pattern. + * @param resultLength The maximum size of result. + * @param status A pointer to an input-output UErrorCode. + * @return The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @see unum_applyPattern + * @see DecimalFormat + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +unum_toPattern( const UNumberFormat* fmt, + UBool isPatternLocalized, + UChar* result, + int32_t resultLength, + UErrorCode* status); + + +/** + * Constants for specifying a number format symbol. + * @stable ICU 2.0 + */ +typedef enum UNumberFormatSymbol { + /** The decimal separator */ + UNUM_DECIMAL_SEPARATOR_SYMBOL = 0, + /** The grouping separator */ + UNUM_GROUPING_SEPARATOR_SYMBOL = 1, + /** The pattern separator */ + UNUM_PATTERN_SEPARATOR_SYMBOL = 2, + /** The percent sign */ + UNUM_PERCENT_SYMBOL = 3, + /** Zero*/ + UNUM_ZERO_DIGIT_SYMBOL = 4, + /** Character representing a digit in the pattern */ + UNUM_DIGIT_SYMBOL = 5, + /** The minus sign */ + UNUM_MINUS_SIGN_SYMBOL = 6, + /** The plus sign */ + UNUM_PLUS_SIGN_SYMBOL = 7, + /** The currency symbol */ + UNUM_CURRENCY_SYMBOL = 8, + /** The international currency symbol */ + UNUM_INTL_CURRENCY_SYMBOL = 9, + /** The monetary separator */ + UNUM_MONETARY_SEPARATOR_SYMBOL = 10, + /** The exponential symbol */ + UNUM_EXPONENTIAL_SYMBOL = 11, + /** Per mill symbol */ + UNUM_PERMILL_SYMBOL = 12, + /** Escape padding character */ + UNUM_PAD_ESCAPE_SYMBOL = 13, + /** Infinity symbol */ + UNUM_INFINITY_SYMBOL = 14, + /** Nan symbol */ + UNUM_NAN_SYMBOL = 15, + /** Significant digit symbol + * @stable ICU 3.0 */ + UNUM_SIGNIFICANT_DIGIT_SYMBOL = 16, + /** The monetary grouping separator + * @stable ICU 3.6 + */ + UNUM_MONETARY_GROUPING_SEPARATOR_SYMBOL = 17, + /** One + * @stable ICU 4.6 + */ + UNUM_ONE_DIGIT_SYMBOL = 18, + /** Two + * @stable ICU 4.6 + */ + UNUM_TWO_DIGIT_SYMBOL = 19, + /** Three + * @stable ICU 4.6 + */ + UNUM_THREE_DIGIT_SYMBOL = 20, + /** Four + * @stable ICU 4.6 + */ + UNUM_FOUR_DIGIT_SYMBOL = 21, + /** Five + * @stable ICU 4.6 + */ + UNUM_FIVE_DIGIT_SYMBOL = 22, + /** Six + * @stable ICU 4.6 + */ + UNUM_SIX_DIGIT_SYMBOL = 23, + /** Seven + * @stable ICU 4.6 + */ + UNUM_SEVEN_DIGIT_SYMBOL = 24, + /** Eight + * @stable ICU 4.6 + */ + UNUM_EIGHT_DIGIT_SYMBOL = 25, + /** Nine + * @stable ICU 4.6 + */ + UNUM_NINE_DIGIT_SYMBOL = 26, + + /** Multiplication sign + * @stable ICU 54 + */ + UNUM_EXPONENT_MULTIPLICATION_SYMBOL = 27, + + +} UNumberFormatSymbol; + +/** +* Get a symbol associated with a UNumberFormat. +* A UNumberFormat uses symbols to represent the special locale-dependent +* characters in a number, for example the percent sign. This API is not +* supported for rule-based formatters. +* @param fmt The formatter to query. +* @param symbol The UNumberFormatSymbol constant for the symbol to get +* @param buffer The string buffer that will receive the symbol string; +* if it is NULL, then only the length of the symbol is returned +* @param size The size of the string buffer +* @param status A pointer to an UErrorCode to receive any errors +* @return The length of the symbol; the buffer is not modified if +* length>=size +* @see unum_setSymbol +* @stable ICU 2.0 +*/ +U_CAPI int32_t U_EXPORT2 +unum_getSymbol(const UNumberFormat *fmt, + UNumberFormatSymbol symbol, + UChar *buffer, + int32_t size, + UErrorCode *status); + +/** +* Set a symbol associated with a UNumberFormat. +* A UNumberFormat uses symbols to represent the special locale-dependent +* characters in a number, for example the percent sign. This API is not +* supported for rule-based formatters. +* @param fmt The formatter to set. +* @param symbol The UNumberFormatSymbol constant for the symbol to set +* @param value The string to set the symbol to +* @param length The length of the string, or -1 for a zero-terminated string +* @param status A pointer to an UErrorCode to receive any errors. +* @see unum_getSymbol +* @stable ICU 2.0 +*/ +U_CAPI void U_EXPORT2 +unum_setSymbol(UNumberFormat *fmt, + UNumberFormatSymbol symbol, + const UChar *value, + int32_t length, + UErrorCode *status); + + +/** + * Get the locale for this number format object. + * You can choose between valid and actual locale. + * @param fmt The formatter to get the locale from + * @param type type of the locale we're looking for (valid or actual) + * @param status error code for the operation + * @return the locale name + * @stable ICU 2.8 + */ +U_CAPI const char* U_EXPORT2 +unum_getLocaleByType(const UNumberFormat *fmt, + ULocDataLocaleType type, + UErrorCode* status); + +/** + * Set a particular UDisplayContext value in the formatter, such as + * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. + * @param fmt The formatter for which to set a UDisplayContext value. + * @param value The UDisplayContext value to set. + * @param status A pointer to an UErrorCode to receive any errors + * @stable ICU 53 + */ +U_CAPI void U_EXPORT2 +unum_setContext(UNumberFormat* fmt, UDisplayContext value, UErrorCode* status); + +/** + * Get the formatter's UDisplayContext value for the specified UDisplayContextType, + * such as UDISPCTX_TYPE_CAPITALIZATION. + * @param fmt The formatter to query. + * @param type The UDisplayContextType whose value to return + * @param status A pointer to an UErrorCode to receive any errors + * @return The UDisplayContextValue for the specified type. + * @stable ICU 53 + */ +U_CAPI UDisplayContext U_EXPORT2 +unum_getContext(const UNumberFormat *fmt, UDisplayContextType type, UErrorCode* status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +#if (NTDDI_VERSION >= NTDDI_WIN10_VB) +// unumberformatter.h +// Copyright (C) 2018 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html + +#ifndef __UNUMBERFORMATTER_H__ +#define __UNUMBERFORMATTER_H__ + + +#if !UCONFIG_NO_FORMATTING + + + +/** + * \file + * \brief C API: Localized number formatting; not recommended for C++. + * + * This is the C-compatible version of the NumberFormatter API introduced in ICU 60. C++ users should + * include unicode/numberformatter.h and use the proper C++ APIs. + * + * The C API accepts a number skeleton string for specifying the settings for formatting, which covers a + * very large subset of all possible number formatting features. For more information on number skeleton + * strings, see unicode/numberformatter.h. + * + * When using UNumberFormatter, which is treated as immutable, the results are exported to a mutable + * UFormattedNumber object, which you subsequently use for populating your string buffer or iterating over + * the fields. + * + * Example code: + *

+ * // Setup:
+ * UErrorCode ec = U_ZERO_ERROR;
+ * UNumberFormatter* uformatter = unumf_openForSkeletonAndLocale(u"precision-integer", -1, "en", &ec);
+ * UFormattedNumber* uresult = unumf_openResult(&ec);
+ * if (U_FAILURE(ec)) { return; }
+ *
+ * // Format a double:
+ * unumf_formatDouble(uformatter, 5142.3, uresult, &ec);
+ * if (U_FAILURE(ec)) { return; }
+ *
+ * // Export the string to a malloc'd buffer:
+ * int32_t len = unumf_resultToString(uresult, NULL, 0, &ec);
+ * // at this point, ec == U_BUFFER_OVERFLOW_ERROR
+ * ec = U_ZERO_ERROR;
+ * UChar* buffer = (UChar*) malloc((len+1)*sizeof(UChar));
+ * unumf_resultToString(uresult, buffer, len+1, &ec);
+ * if (U_FAILURE(ec)) { return; }
+ * // buffer should equal "5,142"
+ *
+ * // Cleanup:
+ * unumf_close(uformatter);
+ * unumf_closeResult(uresult);
+ * free(buffer);
+ * 
+ * + * If you are a C++ user linking against the C libraries, you can use the LocalPointer versions of these + * APIs. The following example uses LocalPointer with the decimal number and field position APIs: + * + *
+ * // Setup:
+ * LocalUNumberFormatterPointer uformatter(unumf_openForSkeletonAndLocale(u"percent", -1, "en", &ec));
+ * LocalUFormattedNumberPointer uresult(unumf_openResult(&ec));
+ * if (U_FAILURE(ec)) { return; }
+ *
+ * // Format a decimal number:
+ * unumf_formatDecimal(uformatter.getAlias(), "9.87E-3", -1, uresult.getAlias(), &ec);
+ * if (U_FAILURE(ec)) { return; }
+ *
+ * // Get the location of the percent sign:
+ * UFieldPosition ufpos = {UNUM_PERCENT_FIELD, 0, 0};
+ * unumf_resultNextFieldPosition(uresult.getAlias(), &ufpos, &ec);
+ * // ufpos should contain beginIndex=7 and endIndex=8 since the string is "0.00987%"
+ *
+ * // No need to do any cleanup since we are using LocalPointer.
+ * 
+ */ + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * An enum declaring how to render units, including currencies. Example outputs when formatting 123 USD and 123 + * meters in en-CA: + * + *

+ *

    + *
  • NARROW*: "$123.00" and "123 m" + *
  • SHORT: "US$ 123.00" and "123 m" + *
  • FULL_NAME: "123.00 US dollars" and "123 meters" + *
  • ISO_CODE: "USD 123.00" and undefined behavior + *
  • HIDDEN: "123.00" and "123" + *
+ * + *

+ * This enum is similar to {@link UMeasureFormatWidth}. + * + * @stable ICU 60 + */ +typedef enum UNumberUnitWidth { + /** + * Print an abbreviated version of the unit name. Similar to SHORT, but always use the shortest available + * abbreviation or symbol. This option can be used when the context hints at the identity of the unit. For more + * information on the difference between NARROW and SHORT, see SHORT. + * + *

+ * In CLDR, this option corresponds to the "Narrow" format for measure units and the "¤¤¤¤¤" placeholder for + * currencies. + * + * @stable ICU 60 + */ + UNUM_UNIT_WIDTH_NARROW = 0, + + /** + * Print an abbreviated version of the unit name. Similar to NARROW, but use a slightly wider abbreviation or + * symbol when there may be ambiguity. This is the default behavior. + * + *

+ * For example, in es-US, the SHORT form for Fahrenheit is "{0} °F", but the NARROW form is "{0}°", + * since Fahrenheit is the customary unit for temperature in that locale. + * + *

+ * In CLDR, this option corresponds to the "Short" format for measure units and the "¤" placeholder for + * currencies. + * + * @stable ICU 60 + */ + UNUM_UNIT_WIDTH_SHORT = 1, + + /** + * Print the full name of the unit, without any abbreviations. + * + *

+ * In CLDR, this option corresponds to the default format for measure units and the "¤¤¤" placeholder for + * currencies. + * + * @stable ICU 60 + */ + UNUM_UNIT_WIDTH_FULL_NAME = 2, + + /** + * Use the three-digit ISO XXX code in place of the symbol for displaying currencies. The behavior of this + * option is currently undefined for use with measure units. + * + *

+ * In CLDR, this option corresponds to the "¤¤" placeholder for currencies. + * + * @stable ICU 60 + */ + UNUM_UNIT_WIDTH_ISO_CODE = 3, +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) + /** + * Use the formal variant of the currency symbol; for example, "NT$" for the New Taiwan + * dollar in zh-TW. + * + *

+ * Behavior of this option with non-currency units is not defined at this time. + * + * @stable ICU 68 + */ + UNUM_UNIT_WIDTH_FORMAL = 4, + + /** + * Use the alternate variant of the currency symbol; for example, "TL" for the Turkish + * lira (TRY). + * + *

+ * Behavior of this option with non-currency units is not defined at this time. + * + * @stable ICU 68 + */ + UNUM_UNIT_WIDTH_VARIANT = 5, +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + + /** + * Format the number according to the specified unit, but do not display the unit. For currencies, apply + * monetary symbols and formats as with SHORT, but omit the currency symbol. For measure units, the behavior is + * equivalent to not specifying the unit at all. + * + * @stable ICU 60 + */ + UNUM_UNIT_WIDTH_HIDDEN = 6, + + // Do not conditionalize the following with #ifndef U_HIDE_INTERNAL_API, + // needed for unconditionalized struct MacroProps + /** + * One more than the highest UNumberUnitWidth value. + * + * @internal ICU 60: The numeric value may change over time; see ICU ticket #12420. + */ + UNUM_UNIT_WIDTH_COUNT = 7 +} UNumberUnitWidth; + +/** + * An enum declaring the strategy for when and how to display grouping separators (i.e., the + * separator, often a comma or period, after every 2-3 powers of ten). The choices are several + * pre-built strategies for different use cases that employ locale data whenever possible. Example + * outputs for 1234 and 1234567 in en-IN: + * + *

    + *
  • OFF: 1234 and 12345 + *
  • MIN2: 1234 and 12,34,567 + *
  • AUTO: 1,234 and 12,34,567 + *
  • ON_ALIGNED: 1,234 and 12,34,567 + *
  • THOUSANDS: 1,234 and 1,234,567 + *
+ * + *

+ * The default is AUTO, which displays grouping separators unless the locale data says that grouping + * is not customary. To force grouping for all numbers greater than 1000 consistently across locales, + * use ON_ALIGNED. On the other hand, to display grouping less frequently than the default, use MIN2 + * or OFF. See the docs of each option for details. + * + *

+ * Note: This enum specifies the strategy for grouping sizes. To set which character to use as the + * grouping separator, use the "symbols" setter. + * + * @stable ICU 63 + */ +typedef enum UNumberGroupingStrategy { + /** + * Do not display grouping separators in any locale. + * + * @stable ICU 61 + */ + UNUM_GROUPING_OFF, + + /** + * Display grouping using locale defaults, except do not show grouping on values smaller than + * 10000 (such that there is a minimum of two digits before the first separator). + * + *

+ * Note that locales may restrict grouping separators to be displayed only on 1 million or + * greater (for example, ee and hu) or disable grouping altogether (for example, bg currency). + * + *

+ * Locale data is used to determine whether to separate larger numbers into groups of 2 + * (customary in South Asia) or groups of 3 (customary in Europe and the Americas). + * + * @stable ICU 61 + */ + UNUM_GROUPING_MIN2, + + /** + * Display grouping using the default strategy for all locales. This is the default behavior. + * + *

+ * Note that locales may restrict grouping separators to be displayed only on 1 million or + * greater (for example, ee and hu) or disable grouping altogether (for example, bg currency). + * + *

+ * Locale data is used to determine whether to separate larger numbers into groups of 2 + * (customary in South Asia) or groups of 3 (customary in Europe and the Americas). + * + * @stable ICU 61 + */ + UNUM_GROUPING_AUTO, + + /** + * Always display the grouping separator on values of at least 1000. + * + *

+ * This option ignores the locale data that restricts or disables grouping, described in MIN2 and + * AUTO. This option may be useful to normalize the alignment of numbers, such as in a + * spreadsheet. + * + *

+ * Locale data is used to determine whether to separate larger numbers into groups of 2 + * (customary in South Asia) or groups of 3 (customary in Europe and the Americas). + * + * @stable ICU 61 + */ + UNUM_GROUPING_ON_ALIGNED, + + /** + * Use the Western defaults: groups of 3 and enabled for all numbers 1000 or greater. Do not use + * locale data for determining the grouping strategy. + * + * @stable ICU 61 + */ + UNUM_GROUPING_THOUSANDS + + +} UNumberGroupingStrategy; + +/** + * An enum declaring how to denote positive and negative numbers. Example outputs when formatting + * 123, 0, and -123 in en-US: + * + *

    + *
  • AUTO: "123", "0", and "-123" + *
  • ALWAYS: "+123", "+0", and "-123" + *
  • NEVER: "123", "0", and "123" + *
  • ACCOUNTING: "$123", "$0", and "($123)" + *
  • ACCOUNTING_ALWAYS: "+$123", "+$0", and "($123)" + *
  • EXCEPT_ZERO: "+123", "0", and "-123" + *
  • ACCOUNTING_EXCEPT_ZERO: "+$123", "$0", and "($123)" + *
+ * + *

+ * The exact format, including the position and the code point of the sign, differ by locale. + * + * @stable ICU 60 + */ +typedef enum UNumberSignDisplay { + /** + * Show the minus sign on negative numbers, and do not show the sign on positive numbers. This is the default + * behavior. + * + * If using this option, a sign will be displayed on negative zero, including negative numbers + * that round to zero. To hide the sign on negative zero, use the NEGATIVE option. + * + * @stable ICU 60 + */ + UNUM_SIGN_AUTO, + + /** + * Show the minus sign on negative numbers and the plus sign on positive numbers, including zero. + * To hide the sign on zero, see {@link UNUM_SIGN_EXCEPT_ZERO}. + * + * @stable ICU 60 + */ + UNUM_SIGN_ALWAYS, + + /** + * Do not show the sign on positive or negative numbers. + * + * @stable ICU 60 + */ + UNUM_SIGN_NEVER, + + /** + * Use the locale-dependent accounting format on negative numbers, and do not show the sign on positive numbers. + * + *

+ * The accounting format is defined in CLDR and varies by locale; in many Western locales, the format is a pair + * of parentheses around the number. + * + *

+ * Note: Since CLDR defines the accounting format in the monetary context only, this option falls back to the + * AUTO sign display strategy when formatting without a currency unit. This limitation may be lifted in the + * future. + * + * @stable ICU 60 + */ + UNUM_SIGN_ACCOUNTING, + + /** + * Use the locale-dependent accounting format on negative numbers, and show the plus sign on + * positive numbers, including zero. For more information on the accounting format, see the + * ACCOUNTING sign display strategy. To hide the sign on zero, see + * {@link UNUM_SIGN_ACCOUNTING_EXCEPT_ZERO}. + * + * @stable ICU 60 + */ + UNUM_SIGN_ACCOUNTING_ALWAYS, + + /** + * Show the minus sign on negative numbers and the plus sign on positive numbers. Do not show a + * sign on zero, numbers that round to zero, or NaN. + * + * @stable ICU 61 + */ + UNUM_SIGN_EXCEPT_ZERO, + + /** + * Use the locale-dependent accounting format on negative numbers, and show the plus sign on + * positive numbers. Do not show a sign on zero, numbers that round to zero, or NaN. For more + * information on the accounting format, see the ACCOUNTING sign display strategy. + * + * @stable ICU 61 + */ + UNUM_SIGN_ACCOUNTING_EXCEPT_ZERO, + + /** + * Same as AUTO, but do not show the sign on negative zero. + * + * @stable ICU 69 + */ + UNUM_SIGN_NEGATIVE, + + /** + * Same as ACCOUNTING, but do not show the sign on negative zero. + * + * @stable ICU 69 + */ + UNUM_SIGN_ACCOUNTING_NEGATIVE, + + // Do not conditionalize the following with #ifndef U_HIDE_INTERNAL_API, + // needed for unconditionalized struct MacroProps + /** + * One more than the highest UNumberSignDisplay value. + * + * @internal ICU 60: The numeric value may change over time; see ICU ticket #12420. + */ + UNUM_SIGN_COUNT = 9, +} UNumberSignDisplay; + +/** + * An enum declaring how to render the decimal separator. + * + *

+ *

    + *
  • UNUM_DECIMAL_SEPARATOR_AUTO: "1", "1.1" + *
  • UNUM_DECIMAL_SEPARATOR_ALWAYS: "1.", "1.1" + *
+ * + * @stable ICU 60 + */ +typedef enum UNumberDecimalSeparatorDisplay { + /** + * Show the decimal separator when there are one or more digits to display after the separator, and do not show + * it otherwise. This is the default behavior. + * + * @stable ICU 60 + */ + UNUM_DECIMAL_SEPARATOR_AUTO, + + /** + * Always show the decimal separator, even if there are no digits to display after the separator. + * + * @stable ICU 60 + */ + UNUM_DECIMAL_SEPARATOR_ALWAYS, + + // Do not conditionalize the following with #ifndef U_HIDE_INTERNAL_API, + // needed for unconditionalized struct MacroProps + /** + * One more than the highest UNumberDecimalSeparatorDisplay value. + * + * @internal ICU 60: The numeric value may change over time; see ICU ticket #12420. + */ + UNUM_DECIMAL_SEPARATOR_COUNT +} UNumberDecimalSeparatorDisplay; +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * An enum declaring how to render trailing zeros. + * + * - UNUM_TRAILING_ZERO_AUTO: 0.90, 1.00, 1.10 + * - UNUM_TRAILING_ZERO_HIDE_IF_WHOLE: 0.90, 1, 1.10 + * + * @stable ICU 69 + */ +typedef enum UNumberTrailingZeroDisplay { + /** + * Display trailing zeros according to the settings for minimum fraction and significant digits. + * + * @stable ICU 69 + */ + UNUM_TRAILING_ZERO_AUTO, + + /** + * Same as AUTO, but hide trailing zeros after the decimal separator if they are all zero. + * + * @stable ICU 69 + */ + UNUM_TRAILING_ZERO_HIDE_IF_WHOLE, +} UNumberTrailingZeroDisplay; +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +struct UNumberFormatter; +/** + * C-compatible version of icu::number::LocalizedNumberFormatter. + * + * NOTE: This is a C-compatible API; C++ users should build against numberformatter.h instead. + * + * @stable ICU 62 + */ +typedef struct UNumberFormatter UNumberFormatter; + +struct UFormattedNumber; +/** + * C-compatible version of icu::number::FormattedNumber. + * + * NOTE: This is a C-compatible API; C++ users should build against numberformatter.h instead. + * + * @stable ICU 62 + */ +typedef struct UFormattedNumber UFormattedNumber; + + +/** + * Creates a new UNumberFormatter for the given skeleton string and locale. This is currently the only + * method for creating a new UNumberFormatter. + * + * Objects of type UNumberFormatter returned by this method are threadsafe. + * + * For more details on skeleton strings, see the documentation in numberformatter.h. For more details on + * the usage of this API, see the documentation at the top of unumberformatter.h. + * + * For more information on number skeleton strings, see: + * https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html + * + * NOTE: This is a C-compatible API; C++ users should build against numberformatter.h instead. + * + * @param skeleton The skeleton string, like u"percent precision-integer" + * @param skeletonLen The number of UChars in the skeleton string, or -1 if it is NUL-terminated. + * @param locale The NUL-terminated locale ID. + * @param ec Set if an error occurs. + * @stable ICU 62 + */ +U_CAPI UNumberFormatter* U_EXPORT2 +unumf_openForSkeletonAndLocale(const UChar* skeleton, int32_t skeletonLen, const char* locale, + UErrorCode* ec); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Like unumf_openForSkeletonAndLocale, but accepts a UParseError, which will be populated with the + * location of a skeleton syntax error if such a syntax error exists. + * + * For more information on number skeleton strings, see: + * https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html + * + * @param skeleton The skeleton string, like u"percent precision-integer" + * @param skeletonLen The number of UChars in the skeleton string, or -1 if it is NUL-terminated. + * @param locale The NUL-terminated locale ID. + * @param perror A parse error struct populated if an error occurs when parsing. Can be NULL. + * If no error occurs, perror->offset will be set to -1. + * @param ec Set if an error occurs. + * @stable ICU 64 + */ +U_CAPI UNumberFormatter* U_EXPORT2 +unumf_openForSkeletonAndLocaleWithError( + const UChar* skeleton, int32_t skeletonLen, const char* locale, UParseError* perror, UErrorCode* ec); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + +/** + * Creates an object to hold the result of a UNumberFormatter + * operation. The object can be used repeatedly; it is cleared whenever + * passed to a format function. + * + * @param ec Set if an error occurs. + * @stable ICU 62 + */ +U_CAPI UFormattedNumber* U_EXPORT2 +unumf_openResult(UErrorCode* ec); + + +/** + * Uses a UNumberFormatter to format an integer to a UFormattedNumber. A string, field position, and other + * information can be retrieved from the UFormattedNumber. + * + * The UNumberFormatter can be shared between threads. Each thread should have its own local + * UFormattedNumber, however, for storing the result of the formatting operation. + * + * NOTE: This is a C-compatible API; C++ users should build against numberformatter.h instead. + * + * @param uformatter A formatter object created by unumf_openForSkeletonAndLocale or similar. + * @param value The number to be formatted. + * @param uresult The object that will be mutated to store the result; see unumf_openResult. + * @param ec Set if an error occurs. + * @stable ICU 62 + */ +U_CAPI void U_EXPORT2 +unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, + UErrorCode* ec); + + +/** + * Uses a UNumberFormatter to format a double to a UFormattedNumber. A string, field position, and other + * information can be retrieved from the UFormattedNumber. + * + * The UNumberFormatter can be shared between threads. Each thread should have its own local + * UFormattedNumber, however, for storing the result of the formatting operation. + * + * NOTE: This is a C-compatible API; C++ users should build against numberformatter.h instead. + * + * @param uformatter A formatter object created by unumf_openForSkeletonAndLocale or similar. + * @param value The number to be formatted. + * @param uresult The object that will be mutated to store the result; see unumf_openResult. + * @param ec Set if an error occurs. + * @stable ICU 62 + */ +U_CAPI void U_EXPORT2 +unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult, + UErrorCode* ec); + + +/** + * Uses a UNumberFormatter to format a decimal number to a UFormattedNumber. A string, field position, and + * other information can be retrieved from the UFormattedNumber. + * + * The UNumberFormatter can be shared between threads. Each thread should have its own local + * UFormattedNumber, however, for storing the result of the formatting operation. + * + * The syntax of the unformatted number is a "numeric string" as defined in the Decimal Arithmetic + * Specification, available at http://speleotrove.com/decimal + * + * NOTE: This is a C-compatible API; C++ users should build against numberformatter.h instead. + * + * @param uformatter A formatter object created by unumf_openForSkeletonAndLocale or similar. + * @param value The numeric string to be formatted. + * @param valueLen The length of the numeric string, or -1 if it is NUL-terminated. + * @param uresult The object that will be mutated to store the result; see unumf_openResult. + * @param ec Set if an error occurs. + * @stable ICU 62 + */ +U_CAPI void U_EXPORT2 +unumf_formatDecimal(const UNumberFormatter* uformatter, const char* value, int32_t valueLen, + UFormattedNumber* uresult, UErrorCode* ec); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Returns a representation of a UFormattedNumber as a UFormattedValue, + * which can be subsequently passed to any API requiring that type. + * + * The returned object is owned by the UFormattedNumber and is valid + * only as long as the UFormattedNumber is present and unchanged in memory. + * + * You can think of this method as a cast between types. + * + * @param uresult The object containing the formatted string. + * @param ec Set if an error occurs. + * @return A UFormattedValue owned by the input object. + * @stable ICU 64 + */ +U_CAPI const UFormattedValue* U_EXPORT2 +unumf_resultAsValue(const UFormattedNumber* uresult, UErrorCode* ec); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + +/** + * Extracts the result number string out of a UFormattedNumber to a UChar buffer if possible. + * If bufferCapacity is greater than the required length, a terminating NUL is written. + * If bufferCapacity is less than the required length, an error code is set. + * + * Also see ufmtval_getString, which returns a NUL-terminated string: + * + * int32_t len; + * const UChar* str = ufmtval_getString(unumf_resultAsValue(uresult, &ec), &len, &ec); + * + * NOTE: This is a C-compatible API; C++ users should build against numberformatter.h instead. + * + * @param uresult The object containing the formatted number. + * @param buffer Where to save the string output. + * @param bufferCapacity The number of UChars available in the buffer. + * @param ec Set if an error occurs. + * @return The required length. + * @stable ICU 62 + */ +U_CAPI int32_t U_EXPORT2 +unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity, + UErrorCode* ec); + + +/** + * Determines the start and end indices of the next occurrence of the given field in the + * output string. This allows you to determine the locations of, for example, the integer part, + * fraction part, or symbols. + * + * This is a simpler but less powerful alternative to {@link ufmtval_nextPosition}. + * + * If a field occurs just once, calling this method will find that occurrence and return it. If a + * field occurs multiple times, this method may be called repeatedly with the following pattern: + * + *
+ * UFieldPosition ufpos = {UNUM_GROUPING_SEPARATOR_FIELD, 0, 0};
+ * while (unumf_resultNextFieldPosition(uresult, ufpos, &ec)) {
+ *   // do something with ufpos.
+ * }
+ * 
+ * + * This method is useful if you know which field to query. If you want all available field position + * information, use unumf_resultGetAllFieldPositions(). + * + * NOTE: All fields of the UFieldPosition must be initialized before calling this method. + * + * @param uresult The object containing the formatted number. + * @param ufpos + * Input+output variable. On input, the "field" property determines which field to look up, + * and the "endIndex" property determines where to begin the search. On output, the + * "beginIndex" field is set to the beginning of the first occurrence of the field after the + * input "endIndex", and "endIndex" is set to the end of that occurrence of the field + * (exclusive index). If a field position is not found, the FieldPosition is not changed and + * the method returns false. + * @param ec Set if an error occurs. + * @stable ICU 62 + */ +U_CAPI UBool U_EXPORT2 +unumf_resultNextFieldPosition(const UFormattedNumber* uresult, UFieldPosition* ufpos, UErrorCode* ec); + + +/** + * Populates the given iterator with all fields in the formatted output string. This allows you to + * determine the locations of the integer part, fraction part, and sign. + * + * This is an alternative to the more powerful {@link ufmtval_nextPosition} API. + * + * If you need information on only one field, use {@link ufmtval_nextPosition} or + * {@link unumf_resultNextFieldPosition}. + * + * @param uresult The object containing the formatted number. + * @param ufpositer + * A pointer to a UFieldPositionIterator created by {@link #ufieldpositer_open}. Iteration + * information already present in the UFieldPositionIterator is deleted, and the iterator is reset + * to apply to the fields in the formatted string created by this function call. The field values + * and indexes returned by {@link #ufieldpositer_next} represent fields denoted by + * the UNumberFormatFields enum. Fields are not returned in a guaranteed order. Fields cannot + * overlap, but they may nest. For example, 1234 could format as "1,234" which might consist of a + * grouping separator field for ',' and an integer field encompassing the entire string. + * @param ec Set if an error occurs. + * @stable ICU 62 + */ +U_CAPI void U_EXPORT2 +unumf_resultGetAllFieldPositions(const UFormattedNumber* uresult, UFieldPositionIterator* ufpositer, + UErrorCode* ec); + +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +/** + * Extracts the formatted number as a "numeric string" conforming to the + * syntax defined in the Decimal Arithmetic Specification, available at + * http://speleotrove.com/decimal + * + * This endpoint is useful for obtaining the exact number being printed + * after scaling and rounding have been applied by the number formatter. + * + * @param uresult The input object containing the formatted number. + * @param dest the 8-bit char buffer into which the decimal number is placed + * @param destCapacity The size, in chars, of the destination buffer. May be zero + * for precomputing the required size. + * @param ec receives any error status. + * If U_BUFFER_OVERFLOW_ERROR: Returns number of chars for + * preflighting. + * @return Number of chars in the data. Does not include a trailing NUL. + * @stable ICU 68 + */ +U_CAPI int32_t U_EXPORT2 +unumf_resultToDecimalNumber( + const UFormattedNumber* uresult, + char* dest, + int32_t destCapacity, + UErrorCode* ec); +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) + +/** + * Releases the UNumberFormatter created by unumf_openForSkeletonAndLocale(). + * + * @param uformatter An object created by unumf_openForSkeletonAndLocale(). + * @stable ICU 62 + */ +U_CAPI void U_EXPORT2 +unumf_close(UNumberFormatter* uformatter); + + +/** + * Releases the UFormattedNumber created by unumf_openResult(). + * + * @param uresult An object created by unumf_openResult(). + * @stable ICU 62 + */ +U_CAPI void U_EXPORT2 +unumf_closeResult(UFormattedNumber* uresult); + + + +#endif /* #if !UCONFIG_NO_FORMATTING */ +#endif //__UNUMBERFORMATTER_H__ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_VB) + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + +// unumberrangeformatter.h +// Copyright (C) 2020 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html + +#ifndef __UNUMBERRANGEFORMATTER_H__ +#define __UNUMBERRANGEFORMATTER_H__ + + +#if !UCONFIG_NO_FORMATTING + + + +/** + * \file + * \brief C API: Localized number range formatting + * + * This is the C-compatible version of the NumberRangeFormatter API. C++ users + * should include unicode/numberrangeformatter.h and use the proper C++ APIs. + * + * First create a UNumberRangeFormatter, which is immutable, and then format to + * a UFormattedNumberRange. + * + * Example code: + *
+ * // Setup:
+ * UErrorCode ec = U_ZERO_ERROR;
+ * UNumberRangeFormatter* uformatter = unumrf_openForSkeletonCollapseIdentityFallbackAndLocaleWithError(
+ *     u"currency/USD precision-integer",
+ *     -1,
+ *     UNUM_RANGE_COLLAPSE_AUTO,
+ *     UNUM_IDENTITY_FALLBACK_APPROXIMATELY,
+ *     "en-US",
+ *     NULL,
+ *     &ec);
+ * UFormattedNumberRange* uresult = unumrf_openResult(&ec);
+ * if (U_FAILURE(ec)) { return; }
+ *
+ * // Format a double range:
+ * unumrf_formatDoubleRange(uformatter, 3.0, 5.0, uresult, &ec);
+ * if (U_FAILURE(ec)) { return; }
+ *
+ * // Get the result string:
+ * int32_t len;
+ * const UChar* str = ufmtval_getString(unumrf_resultAsValue(uresult, &ec), &len, &ec);
+ * if (U_FAILURE(ec)) { return; }
+ * // str should equal "$3 – $5"
+ *
+ * // Cleanup:
+ * unumf_close(uformatter);
+ * unumf_closeResult(uresult);
+ * 
+ * + * If you are a C++ user linking against the C libraries, you can use the LocalPointer versions of these + * APIs. The following example uses LocalPointer with the decimal number and field position APIs: + * + *
+ * // Setup:
+ * LocalUNumberRangeFormatterPointer uformatter(
+ *     unumrf_openForSkeletonCollapseIdentityFallbackAndLocaleWithError(...));
+ * LocalUFormattedNumberRangePointer uresult(unumrf_openResult(&ec));
+ * if (U_FAILURE(ec)) { return; }
+ *
+ * // Format a double number range:
+ * unumrf_formatDoubleRange(uformatter.getAlias(), 3.0, 5.0, uresult.getAlias(), &ec);
+ * if (U_FAILURE(ec)) { return; }
+ *
+ * // No need to do any cleanup since we are using LocalPointer.
+ * 
+ * + * You can also get field positions. For more information, see uformattedvalue.h. + */ + +/** + * Defines how to merge fields that are identical across the range sign. + * + * @stable ICU 63 + */ +typedef enum UNumberRangeCollapse { + /** + * Use locale data and heuristics to determine how much of the string to collapse. Could end up collapsing none, + * some, or all repeated pieces in a locale-sensitive way. + * + * The heuristics used for this option are subject to change over time. + * + * @stable ICU 63 + */ + UNUM_RANGE_COLLAPSE_AUTO, + + /** + * Do not collapse any part of the number. Example: "3.2 thousand kilograms – 5.3 thousand kilograms" + * + * @stable ICU 63 + */ + UNUM_RANGE_COLLAPSE_NONE, + + /** + * Collapse the unit part of the number, but not the notation, if present. Example: "3.2 thousand – 5.3 thousand + * kilograms" + * + * @stable ICU 63 + */ + UNUM_RANGE_COLLAPSE_UNIT, + + /** + * Collapse any field that is equal across the range sign. May introduce ambiguity on the magnitude of the + * number. Example: "3.2 – 5.3 thousand kilograms" + * + * @stable ICU 63 + */ + UNUM_RANGE_COLLAPSE_ALL +} UNumberRangeCollapse; + +/** + * Defines the behavior when the two numbers in the range are identical after rounding. To programmatically detect + * when the identity fallback is used, compare the lower and upper BigDecimals via FormattedNumber. + * + * @stable ICU 63 + * @see NumberRangeFormatter + */ +typedef enum UNumberRangeIdentityFallback { + /** + * Show the number as a single value rather than a range. Example: "$5" + * + * @stable ICU 63 + */ + UNUM_IDENTITY_FALLBACK_SINGLE_VALUE, + + /** + * Show the number using a locale-sensitive approximation pattern. If the numbers were the same before rounding, + * show the single value. Example: "~$5" or "$5" + * + * @stable ICU 63 + */ + UNUM_IDENTITY_FALLBACK_APPROXIMATELY_OR_SINGLE_VALUE, + + /** + * Show the number using a locale-sensitive approximation pattern. Use the range pattern always, even if the + * inputs are the same. Example: "~$5" + * + * @stable ICU 63 + */ + UNUM_IDENTITY_FALLBACK_APPROXIMATELY, + + /** + * Show the number as the range of two equal values. Use the range pattern always, even if the inputs are the + * same. Example (with RangeCollapse.NONE): "$5 – $5" + * + * @stable ICU 63 + */ + UNUM_IDENTITY_FALLBACK_RANGE +} UNumberRangeIdentityFallback; + +/** + * Used in the result class FormattedNumberRange to indicate to the user whether the numbers formatted in the range + * were equal or not, and whether or not the identity fallback was applied. + * + * @stable ICU 63 + * @see NumberRangeFormatter + */ +typedef enum UNumberRangeIdentityResult { + /** + * Used to indicate that the two numbers in the range were equal, even before any rounding rules were applied. + * + * @stable ICU 63 + * @see NumberRangeFormatter + */ + UNUM_IDENTITY_RESULT_EQUAL_BEFORE_ROUNDING, + + /** + * Used to indicate that the two numbers in the range were equal, but only after rounding rules were applied. + * + * @stable ICU 63 + * @see NumberRangeFormatter + */ + UNUM_IDENTITY_RESULT_EQUAL_AFTER_ROUNDING, + + /** + * Used to indicate that the two numbers in the range were not equal, even after rounding rules were applied. + * + * @stable ICU 63 + * @see NumberRangeFormatter + */ + UNUM_IDENTITY_RESULT_NOT_EQUAL, + + +} UNumberRangeIdentityResult; + + + + + +#if (NTDDI_VERSION >= NTDDI_WIN11_ZN) +struct UNumberRangeFormatter; +/** + * C-compatible version of icu::number::LocalizedNumberRangeFormatter. + * + * NOTE: This is a C-compatible API; C++ users should build against numberrangeformatter.h instead. + * + * @stable ICU 68 + */ +typedef struct UNumberRangeFormatter UNumberRangeFormatter; + + +struct UFormattedNumberRange; +/** + * C-compatible version of icu::number::FormattedNumberRange. + * + * NOTE: This is a C-compatible API; C++ users should build against numberrangeformatter.h instead. + * + * @stable ICU 68 + */ +typedef struct UFormattedNumberRange UFormattedNumberRange; + + +/** + * Creates a new UNumberFormatter for the given skeleton string, collapse option, identity fallback + * option, and locale. This is currently the only method for creating a new UNumberRangeFormatter. + * + * Objects of type UNumberRangeFormatter returned by this method are threadsafe. + * + * For more details on skeleton strings, see the documentation in numberrangeformatter.h. For more + * details on the usage of this API, see the documentation at the top of unumberrangeformatter.h. + * + * NOTE: This is a C-compatible API; C++ users should build against numberrangeformatter.h instead. + * + * @param skeleton The skeleton string, like u"percent precision-integer" + * @param skeletonLen The number of UChars in the skeleton string, or -1 if it is NUL-terminated. + * @param collapse Option for how to merge affixes (if unsure, use UNUM_RANGE_COLLAPSE_AUTO) + * @param identityFallback Option for resolving when both sides of the range are equal. + * @param locale The NUL-terminated locale ID. + * @param perror A parse error struct populated if an error occurs when parsing. Can be NULL. + * If no error occurs, perror->offset will be set to -1. + * @param ec Set if an error occurs. + * @stable ICU 68 + */ +U_CAPI UNumberRangeFormatter* U_EXPORT2 +unumrf_openForSkeletonWithCollapseAndIdentityFallback( + const UChar* skeleton, + int32_t skeletonLen, + UNumberRangeCollapse collapse, + UNumberRangeIdentityFallback identityFallback, + const char* locale, + UParseError* perror, + UErrorCode* ec); + + +/** + * Creates an object to hold the result of a UNumberRangeFormatter + * operation. The object can be used repeatedly; it is cleared whenever + * passed to a format function. + * + * @param ec Set if an error occurs. + * @stable ICU 68 + */ +U_CAPI UFormattedNumberRange* U_EXPORT2 +unumrf_openResult(UErrorCode* ec); + + +/** + * Uses a UNumberRangeFormatter to format a range of doubles. + * + * The UNumberRangeFormatter can be shared between threads. Each thread should have its own local + * UFormattedNumberRange, however, for storing the result of the formatting operation. + * + * NOTE: This is a C-compatible API; C++ users should build against numberrangeformatter.h instead. + * + * @param uformatter A formatter object; see unumberrangeformatter.h. + * @param first The first (usually smaller) number in the range. + * @param second The second (usually larger) number in the range. + * @param uresult The object that will be mutated to store the result; see unumrf_openResult. + * @param ec Set if an error occurs. + * @stable ICU 68 + */ +U_CAPI void U_EXPORT2 +unumrf_formatDoubleRange( + const UNumberRangeFormatter* uformatter, + double first, + double second, + UFormattedNumberRange* uresult, + UErrorCode* ec); + + +/** + * Uses a UNumberRangeFormatter to format a range of decimal numbers. + * + * With a decimal number string, you can specify an input with arbitrary precision. + * + * The UNumberRangeFormatter can be shared between threads. Each thread should have its own local + * UFormattedNumberRange, however, for storing the result of the formatting operation. + * + * NOTE: This is a C-compatible API; C++ users should build against numberrangeformatter.h instead. + * + * @param uformatter A formatter object; see unumberrangeformatter.h. + * @param first The first (usually smaller) number in the range. + * @param firstLen The length of the first decimal number string. + * @param second The second (usually larger) number in the range. + * @param secondLen The length of the second decimal number string. + * @param uresult The object that will be mutated to store the result; see unumrf_openResult. + * @param ec Set if an error occurs. + * @stable ICU 68 + */ +U_CAPI void U_EXPORT2 +unumrf_formatDecimalRange( + const UNumberRangeFormatter* uformatter, + const char* first, + int32_t firstLen, + const char* second, + int32_t secondLen, + UFormattedNumberRange* uresult, + UErrorCode* ec); + + +/** + * Returns a representation of a UFormattedNumberRange as a UFormattedValue, + * which can be subsequently passed to any API requiring that type. + * + * The returned object is owned by the UFormattedNumberRange and is valid + * only as long as the UFormattedNumber is present and unchanged in memory. + * + * You can think of this method as a cast between types. + * + * @param uresult The object containing the formatted number range. + * @param ec Set if an error occurs. + * @return A UFormattedValue owned by the input object. + * @stable ICU 68 + */ +U_CAPI const UFormattedValue* U_EXPORT2 +unumrf_resultAsValue(const UFormattedNumberRange* uresult, UErrorCode* ec); + + +/** + * Extracts the identity result from a UFormattedNumberRange. + * + * NOTE: This is a C-compatible API; C++ users should build against numberformatter.h instead. + * + * @param uresult The object containing the formatted number range. + * @param ec Set if an error occurs. + * @return The identity result; see UNumberRangeIdentityResult. + * @stable ICU 68 + */ +U_CAPI UNumberRangeIdentityResult U_EXPORT2 +unumrf_resultGetIdentityResult( + const UFormattedNumberRange* uresult, + UErrorCode* ec); + + +/** + * Extracts the first formatted number as a decimal number. This endpoint + * is useful for obtaining the exact number being printed after scaling + * and rounding have been applied by the number range formatting pipeline. + * + * The syntax of the unformatted number is a "numeric string" + * as defined in the Decimal Arithmetic Specification, available at + * http://speleotrove.com/decimal + * + * @param uresult The input object containing the formatted number range. + * @param dest the 8-bit char buffer into which the decimal number is placed + * @param destCapacity The size, in chars, of the destination buffer. May be zero + * for precomputing the required size. + * @param ec receives any error status. + * If U_BUFFER_OVERFLOW_ERROR: Returns number of chars for + * preflighting. + * @return Number of chars in the data. Does not include a trailing NUL. + * @stable ICU 68 + */ +U_CAPI int32_t U_EXPORT2 +unumrf_resultGetFirstDecimalNumber( + const UFormattedNumberRange* uresult, + char* dest, + int32_t destCapacity, + UErrorCode* ec); + + +/** + * Extracts the second formatted number as a decimal number. This endpoint + * is useful for obtaining the exact number being printed after scaling + * and rounding have been applied by the number range formatting pipeline. + * + * The syntax of the unformatted number is a "numeric string" + * as defined in the Decimal Arithmetic Specification, available at + * http://speleotrove.com/decimal + * + * @param uresult The input object containing the formatted number range. + * @param dest the 8-bit char buffer into which the decimal number is placed + * @param destCapacity The size, in chars, of the destination buffer. May be zero + * for precomputing the required size. + * @param ec receives any error status. + * If U_BUFFER_OVERFLOW_ERROR: Returns number of chars for + * preflighting. + * @return Number of chars in the data. Does not include a trailing NUL. + * @stable ICU 68 + */ +U_CAPI int32_t U_EXPORT2 +unumrf_resultGetSecondDecimalNumber( + const UFormattedNumberRange* uresult, + char* dest, + int32_t destCapacity, + UErrorCode* ec); + + +/** + * Releases the UNumberFormatter created by unumf_openForSkeletonAndLocale(). + * + * @param uformatter An object created by unumf_openForSkeletonAndLocale(). + * @stable ICU 68 + */ +U_CAPI void U_EXPORT2 +unumrf_close(UNumberRangeFormatter* uformatter); + + +/** + * Releases the UFormattedNumber created by unumf_openResult(). + * + * @param uresult An object created by unumf_openResult(). + * @stable ICU 68 + */ +U_CAPI void U_EXPORT2 +unumrf_closeResult(UFormattedNumberRange* uresult); + +#endif // (NTDDI_VERSION >= NTDDI_WIN11_ZN) +#endif /* #if !UCONFIG_NO_FORMATTING */ +#endif //__UNUMBERRANGEFORMATTER_H__ +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +// unumsys.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +***************************************************************************************** +* Copyright (C) 2013-2014, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UNUMSYS_H +#define UNUMSYS_H + + +#if !UCONFIG_NO_FORMATTING + + + +/** + * \file + * \brief C API: UNumberingSystem, information about numbering systems + * + * Defines numbering systems. A numbering system describes the scheme by which + * numbers are to be presented to the end user. In its simplest form, a numbering + * system describes the set of digit characters that are to be used to display + * numbers, such as Western digits, Thai digits, Arabic-Indic digits, etc., in a + * positional numbering system with a specified radix (typically 10). + * More complicated numbering systems are algorithmic in nature, and require use + * of an RBNF formatter (rule based number formatter), in order to calculate + * the characters to be displayed for a given number. Examples of algorithmic + * numbering systems include Roman numerals, Chinese numerals, and Hebrew numerals. + * Formatting rules for many commonly used numbering systems are included in + * the ICU package, based on the numbering system rules defined in CLDR. + * Alternate numbering systems can be specified to a locale by using the + * numbers locale keyword. + */ + +/** + * Opaque UNumberingSystem object for use in C programs. + * @stable ICU 52 + */ +struct UNumberingSystem; +typedef struct UNumberingSystem UNumberingSystem; /**< C typedef for struct UNumberingSystem. @stable ICU 52 */ + +/** + * Opens a UNumberingSystem object using the default numbering system for the specified + * locale. + * @param locale The locale for which the default numbering system should be opened. + * @param status A pointer to a UErrorCode to receive any errors. For example, this + * may be U_UNSUPPORTED_ERROR for a locale such as "en@numbers=xyz" that + * specifies a numbering system unknown to ICU. + * @return A UNumberingSystem for the specified locale, or NULL if an error + * occurred. + * @stable ICU 52 + */ +U_CAPI UNumberingSystem * U_EXPORT2 +unumsys_open(const char *locale, UErrorCode *status); + +/** + * Opens a UNumberingSystem object using the name of one of the predefined numbering + * systems specified by CLDR and known to ICU, such as "latn", "arabext", or "hanidec"; + * the full list is returned by unumsys_openAvailableNames. Note that some of the names + * listed at http://unicode.org/repos/cldr/tags/latest/common/bcp47/number.xml - e.g. + * default, native, traditional, finance - do not identify specific numbering systems, + * but rather key values that may only be used as part of a locale, which in turn + * defines how they are mapped to a specific numbering system such as "latn" or "hant". + * + * @param name The name of the numbering system for which a UNumberingSystem object + * should be opened. + * @param status A pointer to a UErrorCode to receive any errors. For example, this + * may be U_UNSUPPORTED_ERROR for a numbering system such as "xyz" that + * is unknown to ICU. + * @return A UNumberingSystem for the specified name, or NULL if an error + * occurred. + * @stable ICU 52 + */ +U_CAPI UNumberingSystem * U_EXPORT2 +unumsys_openByName(const char *name, UErrorCode *status); + +/** + * Close a UNumberingSystem object. Once closed it may no longer be used. + * @param unumsys The UNumberingSystem object to close. + * @stable ICU 52 + */ +U_CAPI void U_EXPORT2 +unumsys_close(UNumberingSystem *unumsys); + + +/** + * Returns an enumeration over the names of all of the predefined numbering systems known + * to ICU. + * The numbering system names will be in alphabetical (invariant) order. + * @param status A pointer to a UErrorCode to receive any errors. + * @return A pointer to a UEnumeration that must be closed with uenum_close(), + * or NULL if an error occurred. + * @stable ICU 52 + */ +U_CAPI UEnumeration * U_EXPORT2 +unumsys_openAvailableNames(UErrorCode *status); + +/** + * Returns the name of the specified UNumberingSystem object (if it is one of the + * predefined names known to ICU). + * @param unumsys The UNumberingSystem whose name is desired. + * @return A pointer to the name of the specified UNumberingSystem object, or + * NULL if the name is not one of the ICU predefined names. The pointer + * is only valid for the lifetime of the UNumberingSystem object. + * @stable ICU 52 + */ +U_CAPI const char * U_EXPORT2 +unumsys_getName(const UNumberingSystem *unumsys); + +/** + * Returns whether the given UNumberingSystem object is for an algorithmic (not purely + * positional) system. + * @param unumsys The UNumberingSystem whose algorithmic status is desired. + * @return true if the specified UNumberingSystem object is for an algorithmic + * system. + * @stable ICU 52 + */ +U_CAPI UBool U_EXPORT2 +unumsys_isAlgorithmic(const UNumberingSystem *unumsys); + +/** + * Returns the radix of the specified UNumberingSystem object. Simple positional + * numbering systems typically have radix 10, but might have a radix of e.g. 16 for + * hexadecimal. The radix is less well-defined for non-positional algorithmic systems. + * @param unumsys The UNumberingSystem whose radix is desired. + * @return The radix of the specified UNumberingSystem object. + * @stable ICU 52 + */ +U_CAPI int32_t U_EXPORT2 +unumsys_getRadix(const UNumberingSystem *unumsys); + +/** + * Get the description string of the specified UNumberingSystem object. For simple + * positional systems this is the ordered string of digits (with length matching + * the radix), e.g. "\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D" + * for "hanidec"; it would be "0123456789ABCDEF" for hexadecimal. For + * algorithmic systems this is the name of the RBNF ruleset used for formatting, + * e.g. "zh/SpelloutRules/%spellout-cardinal" for "hans" or "%greek-upper" for + * "grek". + * @param unumsys The UNumberingSystem whose description string is desired. + * @param result A pointer to a buffer to receive the description string. + * @param resultLength The maximum size of result. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @stable ICU 52 + */ +U_CAPI int32_t U_EXPORT2 +unumsys_getDescription(const UNumberingSystem *unumsys, UChar *result, + int32_t resultLength, UErrorCode *status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// upluralrules.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +***************************************************************************************** +* Copyright (C) 2010-2013, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UPLURALRULES_H +#define UPLURALRULES_H + + +#if !UCONFIG_NO_FORMATTING + + + + +// Forward-declaration +struct UFormattedNumber; +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +struct UFormattedNumberRange; +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * \file + * \brief C API: Plural rules, select plural keywords for numeric values. + * + * A UPluralRules object defines rules for mapping non-negative numeric + * values onto a small set of keywords. Rules are constructed from a text + * description, consisting of a series of keywords and conditions. + * The uplrules_select function examines each condition in order and + * returns the keyword for the first condition that matches the number. + * If none match, the default rule(other) is returned. + * + * For more information, see the + * LDML spec, Part 3.5 Language Plural Rules: + * https://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules + * + * Keywords: ICU locale data has 6 predefined values - + * 'zero', 'one', 'two', 'few', 'many' and 'other'. Callers need to check + * the value of keyword returned by the uplrules_select function. + * + * These are based on CLDR Language Plural Rules. For these + * predefined rules, see the CLDR page at + * https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html + */ + +/** + * Type of plurals and PluralRules. + * @stable ICU 50 + */ +enum UPluralType { + /** + * Plural rules for cardinal numbers: 1 file vs. 2 files. + * @stable ICU 50 + */ + UPLURAL_TYPE_CARDINAL, + /** + * Plural rules for ordinal numbers: 1st file, 2nd file, 3rd file, 4th file, etc. + * @stable ICU 50 + */ + UPLURAL_TYPE_ORDINAL, +}; +/** + * @stable ICU 50 + */ +typedef enum UPluralType UPluralType; + +/** + * Opaque UPluralRules object for use in C programs. + * @stable ICU 4.8 + */ +struct UPluralRules; +typedef struct UPluralRules UPluralRules; /**< C typedef for struct UPluralRules. @stable ICU 4.8 */ + +/** + * Opens a new UPluralRules object using the predefined cardinal-number plural rules for a + * given locale. + * Same as uplrules_openForType(locale, UPLURAL_TYPE_CARDINAL, status). + * @param locale The locale for which the rules are desired. + * @param status A pointer to a UErrorCode to receive any errors. + * @return A UPluralRules for the specified locale, or NULL if an error occurred. + * @stable ICU 4.8 + */ +U_CAPI UPluralRules* U_EXPORT2 +uplrules_open(const char *locale, UErrorCode *status); + +/** + * Opens a new UPluralRules object using the predefined plural rules for a + * given locale and the plural type. + * @param locale The locale for which the rules are desired. + * @param type The plural type (e.g., cardinal or ordinal). + * @param status A pointer to a UErrorCode to receive any errors. + * @return A UPluralRules for the specified locale, or NULL if an error occurred. + * @stable ICU 50 + */ +U_CAPI UPluralRules* U_EXPORT2 +uplrules_openForType(const char *locale, UPluralType type, UErrorCode *status); + +/** + * Closes a UPluralRules object. Once closed it may no longer be used. + * @param uplrules The UPluralRules object to close. + * @stable ICU 4.8 + */ +U_CAPI void U_EXPORT2 +uplrules_close(UPluralRules *uplrules); + + + + +/** + * Given a floating-point number, returns the keyword of the first rule that + * applies to the number, according to the supplied UPluralRules object. + * @param uplrules The UPluralRules object specifying the rules. + * @param number The number for which the rule has to be determined. + * @param keyword An output buffer to write the keyword of the rule that + * applies to number. + * @param capacity The capacity of the keyword buffer. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The length of the keyword. + * @stable ICU 4.8 + */ +U_CAPI int32_t U_EXPORT2 +uplrules_select(const UPluralRules *uplrules, + double number, + UChar *keyword, int32_t capacity, + UErrorCode *status); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Given a formatted number, returns the keyword of the first rule + * that applies to the number, according to the supplied UPluralRules object. + * + * A UFormattedNumber allows you to specify an exponent or trailing zeros, + * which can affect the plural category. To get a UFormattedNumber, see + * {@link UNumberFormatter}. + * + * @param uplrules The UPluralRules object specifying the rules. + * @param number The formatted number for which the rule has to be determined. + * @param keyword The destination buffer for the keyword of the rule that + * applies to the number. + * @param capacity The capacity of the keyword buffer. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The length of the keyword. + * @stable ICU 64 + */ +U_CAPI int32_t U_EXPORT2 +uplrules_selectFormatted(const UPluralRules *uplrules, + const struct UFormattedNumber* number, + UChar *keyword, int32_t capacity, + UErrorCode *status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +/** + * Creates a string enumeration of all plural rule keywords used in this + * UPluralRules object. The rule "other" is always present by default. + * @param uplrules The UPluralRules object specifying the rules for + * a given locale. + * @param status A pointer to a UErrorCode to receive any errors. + * @return a string enumeration over plural rule keywords, or NULL + * upon error. The caller is responsible for closing the result. + * @stable ICU 59 + */ +U_CAPI UEnumeration* U_EXPORT2 +uplrules_getKeywords(const UPluralRules *uplrules, + UErrorCode *status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// uregex.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 2004-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* file name: uregex.h +* encoding: UTF-8 +* indentation:4 +* +* created on: 2004mar09 +* created by: Andy Heninger +* +* ICU Regular Expressions, API for C +*/ + +/** + * \file + * \brief C API: Regular Expressions + * + *

This is a C wrapper around the C++ RegexPattern and RegexMatcher classes.

+ */ + +#ifndef UREGEX_H +#define UREGEX_H + + +#if !UCONFIG_NO_REGULAR_EXPRESSIONS + + + +struct URegularExpression; +/** + * Structure representing a compiled regular expression, plus the results + * of a match operation. + * @stable ICU 3.0 + */ +typedef struct URegularExpression URegularExpression; + + +/** + * Constants for Regular Expression Match Modes. + * @stable ICU 2.4 + */ +typedef enum URegexpFlag{ + + /** Enable case insensitive matching. @stable ICU 2.4 */ + UREGEX_CASE_INSENSITIVE = 2, + + /** Allow white space and comments within patterns @stable ICU 2.4 */ + UREGEX_COMMENTS = 4, + + /** If set, '.' matches line terminators, otherwise '.' matching stops at line end. + * @stable ICU 2.4 */ + UREGEX_DOTALL = 32, + + /** If set, treat the entire pattern as a literal string. + * Metacharacters or escape sequences in the input sequence will be given + * no special meaning. + * + * The flag UREGEX_CASE_INSENSITIVE retains its impact + * on matching when used in conjunction with this flag. + * The other flags become superfluous. + * + * @stable ICU 4.0 + */ + UREGEX_LITERAL = 16, + + /** Control behavior of "$" and "^" + * If set, recognize line terminators within string, + * otherwise, match only at start and end of input string. + * @stable ICU 2.4 */ + UREGEX_MULTILINE = 8, + + /** Unix-only line endings. + * When this mode is enabled, only \\u000a is recognized as a line ending + * in the behavior of ., ^, and $. + * @stable ICU 4.0 + */ + UREGEX_UNIX_LINES = 1, + + /** Unicode word boundaries. + * If set, \b uses the Unicode TR 29 definition of word boundaries. + * Warning: Unicode word boundaries are quite different from + * traditional regular expression word boundaries. See + * http://unicode.org/reports/tr29/#Word_Boundaries + * @stable ICU 2.8 + */ + UREGEX_UWORD = 256, + + /** Error on Unrecognized backslash escapes. + * If set, fail with an error on patterns that contain + * backslash-escaped ASCII letters without a known special + * meaning. If this flag is not set, these + * escaped letters represent themselves. + * @stable ICU 4.0 + */ + UREGEX_ERROR_ON_UNKNOWN_ESCAPES = 512 + +} URegexpFlag; + +/** + * Open (compile) an ICU regular expression. Compiles the regular expression in + * string form into an internal representation using the specified match mode flags. + * The resulting regular expression handle can then be used to perform various + * matching operations. + * + * + * @param pattern The Regular Expression pattern to be compiled. + * @param patternLength The length of the pattern, or -1 if the pattern is + * NUL terminated. + * @param flags Flags that alter the default matching behavior for + * the regular expression, UREGEX_CASE_INSENSITIVE, for + * example. For default behavior, set this parameter to zero. + * See enum URegexpFlag. All desired flags + * are bitwise-ORed together. + * @param pe Receives the position (line and column numbers) of any syntax + * error within the source regular expression string. If this + * information is not wanted, pass NULL for this parameter. + * @param status Receives error detected by this function. + * @stable ICU 3.0 + * + */ +U_CAPI URegularExpression * U_EXPORT2 +uregex_open( const UChar *pattern, + int32_t patternLength, + uint32_t flags, + UParseError *pe, + UErrorCode *status); + +/** + * Open (compile) an ICU regular expression. Compiles the regular expression in + * string form into an internal representation using the specified match mode flags. + * The resulting regular expression handle can then be used to perform various + * matching operations. + *

+ * The contents of the pattern UText will be extracted and saved. Ownership of the + * UText struct itself remains with the caller. This is to match the behavior of + * uregex_open(). + * + * @param pattern The Regular Expression pattern to be compiled. + * @param flags Flags that alter the default matching behavior for + * the regular expression, UREGEX_CASE_INSENSITIVE, for + * example. For default behavior, set this parameter to zero. + * See enum URegexpFlag. All desired flags + * are bitwise-ORed together. + * @param pe Receives the position (line and column numbers) of any syntax + * error within the source regular expression string. If this + * information is not wanted, pass NULL for this parameter. + * @param status Receives error detected by this function. + * + * @stable ICU 4.6 + */ +U_CAPI URegularExpression * U_EXPORT2 +uregex_openUText(UText *pattern, + uint32_t flags, + UParseError *pe, + UErrorCode *status); + +#if !UCONFIG_NO_CONVERSION +/** + * Open (compile) an ICU regular expression. The resulting regular expression + * handle can then be used to perform various matching operations. + *

+ * This function is the same as uregex_open, except that the pattern + * is supplied as an 8 bit char * string in the default code page. + * + * @param pattern The Regular Expression pattern to be compiled, + * NUL terminated. + * @param flags Flags that alter the default matching behavior for + * the regular expression, UREGEX_CASE_INSENSITIVE, for + * example. For default behavior, set this parameter to zero. + * See enum URegexpFlag. All desired flags + * are bitwise-ORed together. + * @param pe Receives the position (line and column numbers) of any syntax + * error within the source regular expression string. If this + * information is not wanted, pass NULL for this parameter. + * @param status Receives errors detected by this function. + * @return The URegularExpression object representing the compiled + * pattern. + * + * @stable ICU 3.0 + */ +U_CAPI URegularExpression * U_EXPORT2 +uregex_openC( const char *pattern, + uint32_t flags, + UParseError *pe, + UErrorCode *status); +#endif + + + +/** + * Close the regular expression, recovering all resources (memory) it + * was holding. + * + * @param regexp The regular expression to be closed. + * @stable ICU 3.0 + */ +U_CAPI void U_EXPORT2 +uregex_close(URegularExpression *regexp); + + +/** + * Make a copy of a compiled regular expression. Cloning a regular + * expression is faster than opening a second instance from the source + * form of the expression, and requires less memory. + *

+ * Note that the current input string and the position of any matched text + * within it are not cloned; only the pattern itself and the + * match mode flags are copied. + *

+ * Cloning can be particularly useful to threaded applications that perform + * multiple match operations in parallel. Each concurrent RE + * operation requires its own instance of a URegularExpression. + * + * @param regexp The compiled regular expression to be cloned. + * @param status Receives indication of any errors encountered + * @return the cloned copy of the compiled regular expression. + * @stable ICU 3.0 + */ +U_CAPI URegularExpression * U_EXPORT2 +uregex_clone(const URegularExpression *regexp, UErrorCode *status); + +/** + * Returns a pointer to the source form of the pattern for this regular expression. + * This function will work even if the pattern was originally specified as a UText. + * + * @param regexp The compiled regular expression. + * @param patLength This output parameter will be set to the length of the + * pattern string. A NULL pointer may be used here if the + * pattern length is not needed, as would be the case if + * the pattern is known in advance to be a NUL terminated + * string. + * @param status Receives errors detected by this function. + * @return a pointer to the pattern string. The storage for the string is + * owned by the regular expression object, and must not be + * altered or deleted by the application. The returned string + * will remain valid until the regular expression is closed. + * @stable ICU 3.0 + */ +U_CAPI const UChar * U_EXPORT2 +uregex_pattern(const URegularExpression *regexp, + int32_t *patLength, + UErrorCode *status); + +/** + * Returns the source text of the pattern for this regular expression. + * This function will work even if the pattern was originally specified as a UChar string. + * + * @param regexp The compiled regular expression. + * @param status Receives errors detected by this function. + * @return the pattern text. The storage for the text is owned by the regular expression + * object, and must not be altered or deleted. + * + * @stable ICU 4.6 + */ +U_CAPI UText * U_EXPORT2 +uregex_patternUText(const URegularExpression *regexp, + UErrorCode *status); + +/** + * Get the match mode flags that were specified when compiling this regular expression. + * @param status Receives errors detected by this function. + * @param regexp The compiled regular expression. + * @return The match mode flags + * @see URegexpFlag + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_flags(const URegularExpression *regexp, + UErrorCode *status); + + +/** + * Set the subject text string upon which the regular expression will look for matches. + * This function may be called any number of times, allowing the regular + * expression pattern to be applied to different strings. + *

+ * Regular expression matching operations work directly on the application's + * string data. No copy is made. The subject string data must not be + * altered after calling this function until after all regular expression + * operations involving this string data are completed. + *

+ * Zero length strings are permitted. In this case, no subsequent match + * operation will dereference the text string pointer. + * + * @param regexp The compiled regular expression. + * @param text The subject text string. + * @param textLength The length of the subject text, or -1 if the string + * is NUL terminated. + * @param status Receives errors detected by this function. + * @stable ICU 3.0 + */ +U_CAPI void U_EXPORT2 +uregex_setText(URegularExpression *regexp, + const UChar *text, + int32_t textLength, + UErrorCode *status); + + +/** + * Set the subject text string upon which the regular expression will look for matches. + * This function may be called any number of times, allowing the regular + * expression pattern to be applied to different strings. + *

+ * Regular expression matching operations work directly on the application's + * string data; only a shallow clone is made. The subject string data must not be + * altered after calling this function until after all regular expression + * operations involving this string data are completed. + * + * @param regexp The compiled regular expression. + * @param text The subject text string. + * @param status Receives errors detected by this function. + * + * @stable ICU 4.6 + */ +U_CAPI void U_EXPORT2 +uregex_setUText(URegularExpression *regexp, + UText *text, + UErrorCode *status); + +/** + * Get the subject text that is currently associated with this + * regular expression object. If the input was supplied using uregex_setText(), + * that pointer will be returned. Otherwise, the characters in the input will + * be extracted to a buffer and returned. In either case, ownership remains + * with the regular expression object. + * + * This function will work even if the input was originally specified as a UText. + * + * @param regexp The compiled regular expression. + * @param textLength The length of the string is returned in this output parameter. + * A NULL pointer may be used here if the + * text length is not needed, as would be the case if + * the text is known in advance to be a NUL terminated + * string. + * @param status Receives errors detected by this function. + * @return Pointer to the subject text string currently associated with + * this regular expression. + * @stable ICU 3.0 + */ +U_CAPI const UChar * U_EXPORT2 +uregex_getText(URegularExpression *regexp, + int32_t *textLength, + UErrorCode *status); + +/** + * Get the subject text that is currently associated with this + * regular expression object. + * + * This function will work even if the input was originally specified as a UChar string. + * + * @param regexp The compiled regular expression. + * @param dest A mutable UText in which to store the current input. + * If NULL, a new UText will be created as an immutable shallow clone + * of the actual input string. + * @param status Receives errors detected by this function. + * @return The subject text currently associated with this regular expression. + * If a pre-allocated UText was provided, it will always be used and returned. + * + * @stable ICU 4.6 + */ +U_CAPI UText * U_EXPORT2 +uregex_getUText(URegularExpression *regexp, + UText *dest, + UErrorCode *status); + +/** + * Set the subject text string upon which the regular expression is looking for matches + * without changing any other aspect of the matching state. + * The new and previous text strings must have the same content. + * + * This function is intended for use in environments where ICU is operating on + * strings that may move around in memory. It provides a mechanism for notifying + * ICU that the string has been relocated, and providing a new UText to access the + * string in its new position. + * + * Note that the regular expression implementation never copies the underlying text + * of a string being matched, but always operates directly on the original text + * provided by the user. Refreshing simply drops the references to the old text + * and replaces them with references to the new. + * + * Caution: this function is normally used only by very specialized + * system-level code. One example use case is with garbage collection + * that moves the text in memory. + * + * @param regexp The compiled regular expression. + * @param text The new (moved) text string. + * @param status Receives errors detected by this function. + * + * @stable ICU 4.8 + */ +U_CAPI void U_EXPORT2 +uregex_refreshUText(URegularExpression *regexp, + UText *text, + UErrorCode *status); + +/** + * Attempts to match the input string against the pattern. + * To succeed, the match must extend to the end of the string, + * or cover the complete match region. + * + * If startIndex >= zero the match operation starts at the specified + * index and must extend to the end of the input string. Any region + * that has been specified is reset. + * + * If startIndex == -1 the match must cover the input region, or the entire + * input string if no region has been set. This directly corresponds to + * Matcher.matches() in Java + * + * @param regexp The compiled regular expression. + * @param startIndex The input string (native) index at which to begin matching, or -1 + * to match the input Region. + * @param status Receives errors detected by this function. + * @return true if there is a match + * @stable ICU 3.0 + */ +U_CAPI UBool U_EXPORT2 +uregex_matches(URegularExpression *regexp, + int32_t startIndex, + UErrorCode *status); + +/** + * 64bit version of uregex_matches. + * Attempts to match the input string against the pattern. + * To succeed, the match must extend to the end of the string, + * or cover the complete match region. + * + * If startIndex >= zero the match operation starts at the specified + * index and must extend to the end of the input string. Any region + * that has been specified is reset. + * + * If startIndex == -1 the match must cover the input region, or the entire + * input string if no region has been set. This directly corresponds to + * Matcher.matches() in Java + * + * @param regexp The compiled regular expression. + * @param startIndex The input string (native) index at which to begin matching, or -1 + * to match the input Region. + * @param status Receives errors detected by this function. + * @return true if there is a match + * @stable ICU 4.6 + */ +U_CAPI UBool U_EXPORT2 +uregex_matches64(URegularExpression *regexp, + int64_t startIndex, + UErrorCode *status); + +/** + * Attempts to match the input string, starting from the specified index, against the pattern. + * The match may be of any length, and is not required to extend to the end + * of the input string. Contrast with uregex_matches(). + * + *

If startIndex is >= 0 any input region that was set for this + * URegularExpression is reset before the operation begins. + * + *

If the specified starting index == -1 the match begins at the start of the input + * region, or at the start of the full string if no region has been specified. + * This corresponds directly with Matcher.lookingAt() in Java. + * + *

If the match succeeds then more information can be obtained via the + * uregexp_start(), uregexp_end(), + * and uregex_group() functions.

+ * + * @param regexp The compiled regular expression. + * @param startIndex The input string (native) index at which to begin matching, or + * -1 to match the Input Region + * @param status A reference to a UErrorCode to receive any errors. + * @return true if there is a match. + * @stable ICU 3.0 + */ +U_CAPI UBool U_EXPORT2 +uregex_lookingAt(URegularExpression *regexp, + int32_t startIndex, + UErrorCode *status); + +/** + * 64bit version of uregex_lookingAt. + * Attempts to match the input string, starting from the specified index, against the pattern. + * The match may be of any length, and is not required to extend to the end + * of the input string. Contrast with uregex_matches(). + * + *

If startIndex is >= 0 any input region that was set for this + * URegularExpression is reset before the operation begins. + * + *

If the specified starting index == -1 the match begins at the start of the input + * region, or at the start of the full string if no region has been specified. + * This corresponds directly with Matcher.lookingAt() in Java. + * + *

If the match succeeds then more information can be obtained via the + * uregexp_start(), uregexp_end(), + * and uregex_group() functions.

+ * + * @param regexp The compiled regular expression. + * @param startIndex The input string (native) index at which to begin matching, or + * -1 to match the Input Region + * @param status A reference to a UErrorCode to receive any errors. + * @return true if there is a match. + * @stable ICU 4.6 + */ +U_CAPI UBool U_EXPORT2 +uregex_lookingAt64(URegularExpression *regexp, + int64_t startIndex, + UErrorCode *status); + +/** + * Find the first matching substring of the input string that matches the pattern. + * If startIndex is >= zero the search for a match begins at the specified index, + * and any match region is reset. This corresponds directly with + * Matcher.find(startIndex) in Java. + * + * If startIndex == -1 the search begins at the start of the input region, + * or at the start of the full string if no region has been specified. + * + * If a match is found, uregex_start(), uregex_end(), and + * uregex_group() will provide more information regarding the match. + * + * @param regexp The compiled regular expression. + * @param startIndex The position (native) in the input string to begin the search, or + * -1 to search within the Input Region. + * @param status A reference to a UErrorCode to receive any errors. + * @return true if a match is found. + * @stable ICU 3.0 + */ +U_CAPI UBool U_EXPORT2 +uregex_find(URegularExpression *regexp, + int32_t startIndex, + UErrorCode *status); + +/** + * 64bit version of uregex_find. + * Find the first matching substring of the input string that matches the pattern. + * If startIndex is >= zero the search for a match begins at the specified index, + * and any match region is reset. This corresponds directly with + * Matcher.find(startIndex) in Java. + * + * If startIndex == -1 the search begins at the start of the input region, + * or at the start of the full string if no region has been specified. + * + * If a match is found, uregex_start(), uregex_end(), and + * uregex_group() will provide more information regarding the match. + * + * @param regexp The compiled regular expression. + * @param startIndex The position (native) in the input string to begin the search, or + * -1 to search within the Input Region. + * @param status A reference to a UErrorCode to receive any errors. + * @return true if a match is found. + * @stable ICU 4.6 + */ +U_CAPI UBool U_EXPORT2 +uregex_find64(URegularExpression *regexp, + int64_t startIndex, + UErrorCode *status); + +/** + * Find the next pattern match in the input string. Begin searching + * the input at the location following the end of he previous match, + * or at the start of the string (or region) if there is no + * previous match. If a match is found, uregex_start(), uregex_end(), and + * uregex_group() will provide more information regarding the match. + * + * @param regexp The compiled regular expression. + * @param status A reference to a UErrorCode to receive any errors. + * @return true if a match is found. + * @see uregex_reset + * @stable ICU 3.0 + */ +U_CAPI UBool U_EXPORT2 +uregex_findNext(URegularExpression *regexp, + UErrorCode *status); + +/** + * Get the number of capturing groups in this regular expression's pattern. + * @param regexp The compiled regular expression. + * @param status A reference to a UErrorCode to receive any errors. + * @return the number of capture groups + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_groupCount(URegularExpression *regexp, + UErrorCode *status); + +/** + * Get the group number corresponding to a named capture group. + * The returned number can be used with any function that access + * capture groups by number. + * + * The function returns an error status if the specified name does not + * appear in the pattern. + * + * @param regexp The compiled regular expression. + * @param groupName The capture group name. + * @param nameLength The length of the name, or -1 if the name is a + * nul-terminated string. + * @param status A pointer to a UErrorCode to receive any errors. + * + * @stable ICU 55 + */ +U_CAPI int32_t U_EXPORT2 +uregex_groupNumberFromName(URegularExpression *regexp, + const UChar *groupName, + int32_t nameLength, + UErrorCode *status); + + +/** + * Get the group number corresponding to a named capture group. + * The returned number can be used with any function that access + * capture groups by number. + * + * The function returns an error status if the specified name does not + * appear in the pattern. + * + * @param regexp The compiled regular expression. + * @param groupName The capture group name, + * platform invariant characters only. + * @param nameLength The length of the name, or -1 if the name is + * nul-terminated. + * @param status A pointer to a UErrorCode to receive any errors. + * + * @stable ICU 55 + */ +U_CAPI int32_t U_EXPORT2 +uregex_groupNumberFromCName(URegularExpression *regexp, + const char *groupName, + int32_t nameLength, + UErrorCode *status); + +/** Extract the string for the specified matching expression or subexpression. + * Group #0 is the complete string of matched text. + * Group #1 is the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group to extract. Group 0 is the complete + * match. The value of this parameter must be + * less than or equal to the number of capture groups in + * the pattern. + * @param dest Buffer to receive the matching string data + * @param destCapacity Capacity of the dest buffer. + * @param status A reference to a UErrorCode to receive any errors. + * @return Length of matching data, + * or -1 if no applicable match. + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_group(URegularExpression *regexp, + int32_t groupNum, + UChar *dest, + int32_t destCapacity, + UErrorCode *status); + +/** Returns a shallow immutable clone of the entire input string with the current index set + * to the beginning of the requested capture group. The capture group length is also + * returned via groupLength. + * Group #0 is the complete string of matched text. + * Group #1 is the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group to extract. Group 0 is the complete + * match. The value of this parameter must be + * less than or equal to the number of capture groups in + * the pattern. + * @param dest A mutable UText in which to store the current input. + * If NULL, a new UText will be created as an immutable shallow clone + * of the entire input string. + * @param groupLength The group length of the desired capture group. Output parameter. + * @param status A reference to a UErrorCode to receive any errors. + * @return The subject text currently associated with this regular expression. + * If a pre-allocated UText was provided, it will always be used and returned. + + * + * @stable ICU 4.6 + */ +U_CAPI UText * U_EXPORT2 +uregex_groupUText(URegularExpression *regexp, + int32_t groupNum, + UText *dest, + int64_t *groupLength, + UErrorCode *status); + +/** + * Returns the index in the input string of the start of the text matched by the + * specified capture group during the previous match operation. Return -1 if + * the capture group was not part of the last match. + * Group #0 refers to the complete range of matched text. + * Group #1 refers to the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group number + * @param status A reference to a UErrorCode to receive any errors. + * @return the starting (native) position in the input of the text matched + * by the specified group. + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_start(URegularExpression *regexp, + int32_t groupNum, + UErrorCode *status); + +/** + * 64bit version of uregex_start. + * Returns the index in the input string of the start of the text matched by the + * specified capture group during the previous match operation. Return -1 if + * the capture group was not part of the last match. + * Group #0 refers to the complete range of matched text. + * Group #1 refers to the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group number + * @param status A reference to a UErrorCode to receive any errors. + * @return the starting (native) position in the input of the text matched + * by the specified group. + * @stable ICU 4.6 + */ +U_CAPI int64_t U_EXPORT2 +uregex_start64(URegularExpression *regexp, + int32_t groupNum, + UErrorCode *status); + +/** + * Returns the index in the input string of the position following the end + * of the text matched by the specified capture group. + * Return -1 if the capture group was not part of the last match. + * Group #0 refers to the complete range of matched text. + * Group #1 refers to the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group number + * @param status A reference to a UErrorCode to receive any errors. + * @return the (native) index of the position following the last matched character. + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_end(URegularExpression *regexp, + int32_t groupNum, + UErrorCode *status); + +/** + * 64bit version of uregex_end. + * Returns the index in the input string of the position following the end + * of the text matched by the specified capture group. + * Return -1 if the capture group was not part of the last match. + * Group #0 refers to the complete range of matched text. + * Group #1 refers to the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group number + * @param status A reference to a UErrorCode to receive any errors. + * @return the (native) index of the position following the last matched character. + * @stable ICU 4.6 + */ +U_CAPI int64_t U_EXPORT2 +uregex_end64(URegularExpression *regexp, + int32_t groupNum, + UErrorCode *status); + +/** + * Reset any saved state from the previous match. Has the effect of + * causing uregex_findNext to begin at the specified index, and causing + * uregex_start(), uregex_end() and uregex_group() to return an error + * indicating that there is no match information available. Clears any + * match region that may have been set. + * + * @param regexp The compiled regular expression. + * @param index The position (native) in the text at which a + * uregex_findNext() should begin searching. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 3.0 + */ +U_CAPI void U_EXPORT2 +uregex_reset(URegularExpression *regexp, + int32_t index, + UErrorCode *status); + +/** + * 64bit version of uregex_reset. + * Reset any saved state from the previous match. Has the effect of + * causing uregex_findNext to begin at the specified index, and causing + * uregex_start(), uregex_end() and uregex_group() to return an error + * indicating that there is no match information available. Clears any + * match region that may have been set. + * + * @param regexp The compiled regular expression. + * @param index The position (native) in the text at which a + * uregex_findNext() should begin searching. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.6 + */ +U_CAPI void U_EXPORT2 +uregex_reset64(URegularExpression *regexp, + int64_t index, + UErrorCode *status); + +/** + * Sets the limits of the matching region for this URegularExpression. + * The region is the part of the input string that will be considered when matching. + * Invoking this method resets any saved state from the previous match, + * then sets the region to start at the index specified by the start parameter + * and end at the index specified by the end parameter. + * + * Depending on the transparency and anchoring being used (see useTransparentBounds + * and useAnchoringBounds), certain constructs such as anchors may behave differently + * at or around the boundaries of the region + * + * The function will fail if start is greater than limit, or if either index + * is less than zero or greater than the length of the string being matched. + * + * @param regexp The compiled regular expression. + * @param regionStart The (native) index to begin searches at. + * @param regionLimit The (native) index to end searches at (exclusive). + * @param status A pointer to a UErrorCode to receive any errors. + * @stable ICU 4.0 + */ +U_CAPI void U_EXPORT2 +uregex_setRegion(URegularExpression *regexp, + int32_t regionStart, + int32_t regionLimit, + UErrorCode *status); + +/** + * 64bit version of uregex_setRegion. + * Sets the limits of the matching region for this URegularExpression. + * The region is the part of the input string that will be considered when matching. + * Invoking this method resets any saved state from the previous match, + * then sets the region to start at the index specified by the start parameter + * and end at the index specified by the end parameter. + * + * Depending on the transparency and anchoring being used (see useTransparentBounds + * and useAnchoringBounds), certain constructs such as anchors may behave differently + * at or around the boundaries of the region + * + * The function will fail if start is greater than limit, or if either index + * is less than zero or greater than the length of the string being matched. + * + * @param regexp The compiled regular expression. + * @param regionStart The (native) index to begin searches at. + * @param regionLimit The (native) index to end searches at (exclusive). + * @param status A pointer to a UErrorCode to receive any errors. + * @stable ICU 4.6 + */ +U_CAPI void U_EXPORT2 +uregex_setRegion64(URegularExpression *regexp, + int64_t regionStart, + int64_t regionLimit, + UErrorCode *status); + +/** + * Set the matching region and the starting index for subsequent matches + * in a single operation. + * This is useful because the usual function for setting the starting + * index, urgex_reset(), also resets any region limits. + * + * @param regexp The compiled regular expression. + * @param regionStart The (native) index to begin searches at. + * @param regionLimit The (native) index to end searches at (exclusive). + * @param startIndex The index in the input text at which the next + * match operation should begin. + * @param status A pointer to a UErrorCode to receive any errors. + * @stable ICU 4.6 + */ +U_CAPI void U_EXPORT2 +uregex_setRegionAndStart(URegularExpression *regexp, + int64_t regionStart, + int64_t regionLimit, + int64_t startIndex, + UErrorCode *status); + +/** + * Reports the start index of the matching region. Any matches found are limited to + * to the region bounded by regionStart (inclusive) and regionEnd (exclusive). + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The starting (native) index of this matcher's region. + * @stable ICU 4.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_regionStart(const URegularExpression *regexp, + UErrorCode *status); + +/** + * 64bit version of uregex_regionStart. + * Reports the start index of the matching region. Any matches found are limited to + * to the region bounded by regionStart (inclusive) and regionEnd (exclusive). + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The starting (native) index of this matcher's region. + * @stable ICU 4.6 + */ +U_CAPI int64_t U_EXPORT2 +uregex_regionStart64(const URegularExpression *regexp, + UErrorCode *status); + +/** + * Reports the end index (exclusive) of the matching region for this URegularExpression. + * Any matches found are limited to to the region bounded by regionStart (inclusive) + * and regionEnd (exclusive). + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The ending point (native) of this matcher's region. + * @stable ICU 4.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_regionEnd(const URegularExpression *regexp, + UErrorCode *status); + +/** + * 64bit version of uregex_regionEnd. + * Reports the end index (exclusive) of the matching region for this URegularExpression. + * Any matches found are limited to to the region bounded by regionStart (inclusive) + * and regionEnd (exclusive). + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The ending point (native) of this matcher's region. + * @stable ICU 4.6 + */ +U_CAPI int64_t U_EXPORT2 +uregex_regionEnd64(const URegularExpression *regexp, + UErrorCode *status); + +/** + * Queries the transparency of region bounds for this URegularExpression. + * See useTransparentBounds for a description of transparent and opaque bounds. + * By default, matching boundaries are opaque. + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return true if this matcher is using opaque bounds, false if it is not. + * @stable ICU 4.0 + */ +U_CAPI UBool U_EXPORT2 +uregex_hasTransparentBounds(const URegularExpression *regexp, + UErrorCode *status); + + +/** + * Sets the transparency of region bounds for this URegularExpression. + * Invoking this function with an argument of true will set matches to use transparent bounds. + * If the boolean argument is false, then opaque bounds will be used. + * + * Using transparent bounds, the boundaries of the matching region are transparent + * to lookahead, lookbehind, and boundary matching constructs. Those constructs can + * see text beyond the boundaries of the region while checking for a match. + * + * With opaque bounds, no text outside of the matching region is visible to lookahead, + * lookbehind, and boundary matching constructs. + * + * By default, opaque bounds are used. + * + * @param regexp The compiled regular expression. + * @param b true for transparent bounds; false for opaque bounds + * @param status A pointer to a UErrorCode to receive any errors. + * @stable ICU 4.0 + **/ +U_CAPI void U_EXPORT2 +uregex_useTransparentBounds(URegularExpression *regexp, + UBool b, + UErrorCode *status); + + +/** + * Return true if this URegularExpression is using anchoring bounds. + * By default, anchoring region bounds are used. + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return true if this matcher is using anchoring bounds. + * @stable ICU 4.0 + */ +U_CAPI UBool U_EXPORT2 +uregex_hasAnchoringBounds(const URegularExpression *regexp, + UErrorCode *status); + + +/** + * Set whether this URegularExpression is using Anchoring Bounds for its region. + * With anchoring bounds, pattern anchors such as ^ and $ will match at the start + * and end of the region. Without Anchoring Bounds, anchors will only match at + * the positions they would in the complete text. + * + * Anchoring Bounds are the default for regions. + * + * @param regexp The compiled regular expression. + * @param b true if to enable anchoring bounds; false to disable them. + * @param status A pointer to a UErrorCode to receive any errors. + * @stable ICU 4.0 + */ +U_CAPI void U_EXPORT2 +uregex_useAnchoringBounds(URegularExpression *regexp, + UBool b, + UErrorCode *status); + +/** + * Return true if the most recent matching operation touched the + * end of the text being processed. In this case, additional input text could + * change the results of that match. + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return true if the most recent match hit the end of input + * @stable ICU 4.0 + */ +U_CAPI UBool U_EXPORT2 +uregex_hitEnd(const URegularExpression *regexp, + UErrorCode *status); + +/** + * Return true the most recent match succeeded and additional input could cause + * it to fail. If this function returns false and a match was found, then more input + * might change the match but the match won't be lost. If a match was not found, + * then requireEnd has no meaning. + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return true if more input could cause the most recent match to no longer match. + * @stable ICU 4.0 + */ +U_CAPI UBool U_EXPORT2 +uregex_requireEnd(const URegularExpression *regexp, + UErrorCode *status); + + + + + +/** + * Replaces every substring of the input that matches the pattern + * with the given replacement string. This is a convenience function that + * provides a complete find-and-replace-all operation. + * + * This method scans the input string looking for matches of the pattern. + * Input that is not part of any match is copied unchanged to the + * destination buffer. Matched regions are replaced in the output + * buffer by the replacement string. The replacement string may contain + * references to capture groups; these take the form of $1, $2, etc. + * + * @param regexp The compiled regular expression. + * @param replacementText A string containing the replacement text. + * @param replacementLength The length of the replacement string, or + * -1 if it is NUL terminated. + * @param destBuf A (UChar *) buffer that will receive the result. + * @param destCapacity The capacity of the destination buffer. + * @param status A reference to a UErrorCode to receive any errors. + * @return The length of the string resulting from the find + * and replace operation. In the event that the + * destination capacity is inadequate, the return value + * is still the full length of the untruncated string. + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_replaceAll(URegularExpression *regexp, + const UChar *replacementText, + int32_t replacementLength, + UChar *destBuf, + int32_t destCapacity, + UErrorCode *status); + +/** + * Replaces every substring of the input that matches the pattern + * with the given replacement string. This is a convenience function that + * provides a complete find-and-replace-all operation. + * + * This method scans the input string looking for matches of the pattern. + * Input that is not part of any match is copied unchanged to the + * destination buffer. Matched regions are replaced in the output + * buffer by the replacement string. The replacement string may contain + * references to capture groups; these take the form of $1, $2, etc. + * + * @param regexp The compiled regular expression. + * @param replacement A string containing the replacement text. + * @param dest A mutable UText that will receive the result. + * If NULL, a new UText will be created (which may not be mutable). + * @param status A reference to a UErrorCode to receive any errors. + * @return A UText containing the results of the find and replace. + * If a pre-allocated UText was provided, it will always be used and returned. + * + * @stable ICU 4.6 + */ +U_CAPI UText * U_EXPORT2 +uregex_replaceAllUText(URegularExpression *regexp, + UText *replacement, + UText *dest, + UErrorCode *status); + +/** + * Replaces the first substring of the input that matches the pattern + * with the given replacement string. This is a convenience function that + * provides a complete find-and-replace operation. + * + * This method scans the input string looking for a match of the pattern. + * All input that is not part of the match is copied unchanged to the + * destination buffer. The matched region is replaced in the output + * buffer by the replacement string. The replacement string may contain + * references to capture groups; these take the form of $1, $2, etc. + * + * @param regexp The compiled regular expression. + * @param replacementText A string containing the replacement text. + * @param replacementLength The length of the replacement string, or + * -1 if it is NUL terminated. + * @param destBuf A (UChar *) buffer that will receive the result. + * @param destCapacity The capacity of the destination buffer. + * @param status a reference to a UErrorCode to receive any errors. + * @return The length of the string resulting from the find + * and replace operation. In the event that the + * destination capacity is inadequate, the return value + * is still the full length of the untruncated string. + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_replaceFirst(URegularExpression *regexp, + const UChar *replacementText, + int32_t replacementLength, + UChar *destBuf, + int32_t destCapacity, + UErrorCode *status); + +/** + * Replaces the first substring of the input that matches the pattern + * with the given replacement string. This is a convenience function that + * provides a complete find-and-replace operation. + * + * This method scans the input string looking for a match of the pattern. + * All input that is not part of the match is copied unchanged to the + * destination buffer. The matched region is replaced in the output + * buffer by the replacement string. The replacement string may contain + * references to capture groups; these take the form of $1, $2, etc. + * + * @param regexp The compiled regular expression. + * @param replacement A string containing the replacement text. + * @param dest A mutable UText that will receive the result. + * If NULL, a new UText will be created (which may not be mutable). + * @param status A reference to a UErrorCode to receive any errors. + * @return A UText containing the results of the find and replace. + * If a pre-allocated UText was provided, it will always be used and returned. + * + * @stable ICU 4.6 + */ +U_CAPI UText * U_EXPORT2 +uregex_replaceFirstUText(URegularExpression *regexp, + UText *replacement, + UText *dest, + UErrorCode *status); + +/** + * Implements a replace operation intended to be used as part of an + * incremental find-and-replace. + * + *

The input string, starting from the end of the previous match and ending at + * the start of the current match, is appended to the destination string. Then the + * replacement string is appended to the output string, + * including handling any substitutions of captured text.

+ * + *

A note on preflight computation of buffersize and error handling: + * Calls to uregex_appendReplacement() and uregex_appendTail() are + * designed to be chained, one after another, with the destination + * buffer pointer and buffer capacity updated after each in preparation + * to for the next. If the destination buffer is exhausted partway through such a + * sequence, a U_BUFFER_OVERFLOW_ERROR status will be returned. Normal + * ICU conventions are for a function to perform no action if it is + * called with an error status, but for this one case, uregex_appendRepacement() + * will operate normally so that buffer size computations will complete + * correctly. + * + *

For simple, prepackaged, non-incremental find-and-replace + * operations, see replaceFirst() or replaceAll().

+ * + * @param regexp The regular expression object. + * @param replacementText The string that will replace the matched portion of the + * input string as it is copied to the destination buffer. + * The replacement text may contain references ($1, for + * example) to capture groups from the match. + * @param replacementLength The length of the replacement text string, + * or -1 if the string is NUL terminated. + * @param destBuf The buffer into which the results of the + * find-and-replace are placed. On return, this pointer + * will be updated to refer to the beginning of the + * unused portion of buffer, leaving it in position for + * a subsequent call to this function. + * @param destCapacity The size of the output buffer, On return, this + * parameter will be updated to reflect the space remaining + * unused in the output buffer. + * @param status A reference to a UErrorCode to receive any errors. + * @return The length of the result string. In the event that + * destCapacity is inadequate, the full length of the + * untruncated output string is returned. + * + * @stable ICU 3.0 + * + */ +U_CAPI int32_t U_EXPORT2 +uregex_appendReplacement(URegularExpression *regexp, + const UChar *replacementText, + int32_t replacementLength, + UChar **destBuf, + int32_t *destCapacity, + UErrorCode *status); + +/** + * Implements a replace operation intended to be used as part of an + * incremental find-and-replace. + * + *

The input string, starting from the end of the previous match and ending at + * the start of the current match, is appended to the destination string. Then the + * replacement string is appended to the output string, + * including handling any substitutions of captured text.

+ * + *

For simple, prepackaged, non-incremental find-and-replace + * operations, see replaceFirst() or replaceAll().

+ * + * @param regexp The regular expression object. + * @param replacementText The string that will replace the matched portion of the + * input string as it is copied to the destination buffer. + * The replacement text may contain references ($1, for + * example) to capture groups from the match. + * @param dest A mutable UText that will receive the result. Must not be NULL. + * @param status A reference to a UErrorCode to receive any errors. + * + * @stable ICU 4.6 + */ +U_CAPI void U_EXPORT2 +uregex_appendReplacementUText(URegularExpression *regexp, + UText *replacementText, + UText *dest, + UErrorCode *status); + +/** + * As the final step in a find-and-replace operation, append the remainder + * of the input string, starting at the position following the last match, + * to the destination string. uregex_appendTail() is intended + * to be invoked after one or more invocations of the + * uregex_appendReplacement() function. + * + * @param regexp The regular expression object. This is needed to + * obtain the input string and with the position + * of the last match within it. + * @param destBuf The buffer in which the results of the + * find-and-replace are placed. On return, the pointer + * will be updated to refer to the beginning of the + * unused portion of buffer. + * @param destCapacity The size of the output buffer, On return, this + * value will be updated to reflect the space remaining + * unused in the output buffer. + * @param status A reference to a UErrorCode to receive any errors. + * @return The length of the result string. In the event that + * destCapacity is inadequate, the full length of the + * untruncated output string is returned. + * + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_appendTail(URegularExpression *regexp, + UChar **destBuf, + int32_t *destCapacity, + UErrorCode *status); + +/** + * As the final step in a find-and-replace operation, append the remainder + * of the input string, starting at the position following the last match, + * to the destination string. uregex_appendTailUText() is intended + * to be invoked after one or more invocations of the + * uregex_appendReplacementUText() function. + * + * @param regexp The regular expression object. This is needed to + * obtain the input string and with the position + * of the last match within it. + * @param dest A mutable UText that will receive the result. Must not be NULL. + * + * @param status Error code + * + * @return The destination UText. + * + * @stable ICU 4.6 + */ +U_CAPI UText * U_EXPORT2 +uregex_appendTailUText(URegularExpression *regexp, + UText *dest, + UErrorCode *status); + + /** + * Split a string into fields. Somewhat like split() from Perl. + * The pattern matches identify delimiters that separate the input + * into fields. The input data between the matches becomes the + * fields themselves. + * + * Each of the fields is copied from the input string to the destination + * buffer, and NUL terminated. The position of each field within + * the destination buffer is returned in the destFields array. + * + * If the delimiter pattern includes capture groups, the captured text will + * also appear in the destination array of output strings, interspersed + * with the fields. This is similar to Perl, but differs from Java, + * which ignores the presence of capture groups in the pattern. + * + * Trailing empty fields will always be returned, assuming sufficient + * destination capacity. This differs from the default behavior for Java + * and Perl where trailing empty fields are not returned. + * + * The number of strings produced by the split operation is returned. + * This count includes the strings from capture groups in the delimiter pattern. + * This behavior differs from Java, which ignores capture groups. + * + * @param regexp The compiled regular expression. + * @param destBuf A (UChar *) buffer to receive the fields that + * are extracted from the input string. These + * field pointers will refer to positions within the + * destination buffer supplied by the caller. Any + * extra positions within the destFields array will be + * set to NULL. + * @param destCapacity The capacity of the destBuf. + * @param requiredCapacity The actual capacity required of the destBuf. + * If destCapacity is too small, requiredCapacity will return + * the total capacity required to hold all of the output, and + * a U_BUFFER_OVERFLOW_ERROR will be returned. + * @param destFields An array to be filled with the position of each + * of the extracted fields within destBuf. + * @param destFieldsCapacity The number of elements in the destFields array. + * If the number of fields found is less than destFieldsCapacity, + * the extra destFields elements are set to zero. + * If destFieldsCapacity is too small, the trailing part of the + * input, including any field delimiters, is treated as if it + * were the last field - it is copied to the destBuf, and + * its position is in the destBuf is stored in the last element + * of destFields. This behavior mimics that of Perl. It is not + * an error condition, and no error status is returned when all destField + * positions are used. + * @param status A reference to a UErrorCode to receive any errors. + * @return The number of fields into which the input string was split. + * @stable ICU 3.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_split( URegularExpression *regexp, + UChar *destBuf, + int32_t destCapacity, + int32_t *requiredCapacity, + UChar *destFields[], + int32_t destFieldsCapacity, + UErrorCode *status); + + /** + * Split a string into fields. Somewhat like split() from Perl. + * The pattern matches identify delimiters that separate the input + * into fields. The input data between the matches becomes the + * fields themselves. + *

+ * The behavior of this function is not very closely aligned with uregex_split(); + * instead, it is based on (and implemented directly on top of) the C++ split method. + * + * @param regexp The compiled regular expression. + * @param destFields An array of mutable UText structs to receive the results of the split. + * If a field is NULL, a new UText is allocated to contain the results for + * that field. This new UText is not guaranteed to be mutable. + * @param destFieldsCapacity The number of elements in the destination array. + * If the number of fields found is less than destCapacity, the + * extra strings in the destination array are not altered. + * If the number of destination strings is less than the number + * of fields, the trailing part of the input string, including any + * field delimiters, is placed in the last destination string. + * This behavior mimics that of Perl. It is not an error condition, and no + * error status is returned when all destField positions are used. + * @param status A reference to a UErrorCode to receive any errors. + * @return The number of fields into which the input string was split. + * + * @stable ICU 4.6 + */ +U_CAPI int32_t U_EXPORT2 +uregex_splitUText(URegularExpression *regexp, + UText *destFields[], + int32_t destFieldsCapacity, + UErrorCode *status); + +/** + * Set a processing time limit for match operations with this URegularExpression. + * + * Some patterns, when matching certain strings, can run in exponential time. + * For practical purposes, the match operation may appear to be in an + * infinite loop. + * When a limit is set a match operation will fail with an error if the + * limit is exceeded. + *

+ * The units of the limit are steps of the match engine. + * Correspondence with actual processor time will depend on the speed + * of the processor and the details of the specific pattern, but will + * typically be on the order of milliseconds. + *

+ * By default, the matching time is not limited. + *

+ * + * @param regexp The compiled regular expression. + * @param limit The limit value, or 0 for no limit. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.0 + */ +U_CAPI void U_EXPORT2 +uregex_setTimeLimit(URegularExpression *regexp, + int32_t limit, + UErrorCode *status); + +/** + * Get the time limit for for matches with this URegularExpression. + * A return value of zero indicates that there is no limit. + * + * @param regexp The compiled regular expression. + * @param status A reference to a UErrorCode to receive any errors. + * @return the maximum allowed time for a match, in units of processing steps. + * @stable ICU 4.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_getTimeLimit(const URegularExpression *regexp, + UErrorCode *status); + +/** + * Set the amount of heap storage available for use by the match backtracking stack. + *

+ * ICU uses a backtracking regular expression engine, with the backtrack stack + * maintained on the heap. This function sets the limit to the amount of memory + * that can be used for this purpose. A backtracking stack overflow will + * result in an error from the match operation that caused it. + *

+ * A limit is desirable because a malicious or poorly designed pattern can use + * excessive memory, potentially crashing the process. A limit is enabled + * by default. + *

+ * @param regexp The compiled regular expression. + * @param limit The maximum size, in bytes, of the matching backtrack stack. + * A value of zero means no limit. + * The limit must be greater than or equal to zero. + * @param status A reference to a UErrorCode to receive any errors. + * + * @stable ICU 4.0 + */ +U_CAPI void U_EXPORT2 +uregex_setStackLimit(URegularExpression *regexp, + int32_t limit, + UErrorCode *status); + +/** + * Get the size of the heap storage available for use by the back tracking stack. + * + * @return the maximum backtracking stack size, in bytes, or zero if the + * stack size is unlimited. + * @stable ICU 4.0 + */ +U_CAPI int32_t U_EXPORT2 +uregex_getStackLimit(const URegularExpression *regexp, + UErrorCode *status); + + +/** + * Function pointer for a regular expression matching callback function. + * When set, a callback function will be called periodically during matching + * operations. If the call back function returns false, the matching + * operation will be terminated early. + * + * Note: the callback function must not call other functions on this + * URegularExpression. + * + * @param context context pointer. The callback function will be invoked + * with the context specified at the time that + * uregex_setMatchCallback() is called. + * @param steps the accumulated processing time, in match steps, + * for this matching operation. + * @return true to continue the matching operation. + * false to terminate the matching operation. + * @stable ICU 4.0 + */ +U_CDECL_BEGIN +typedef UBool U_CALLCONV URegexMatchCallback ( + const void *context, + int32_t steps); +U_CDECL_END + +/** + * Set a callback function for this URegularExpression. + * During matching operations the function will be called periodically, + * giving the application the opportunity to terminate a long-running + * match. + * + * @param regexp The compiled regular expression. + * @param callback A pointer to the user-supplied callback function. + * @param context User context pointer. The value supplied at the + * time the callback function is set will be saved + * and passed to the callback each time that it is called. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.0 + */ +U_CAPI void U_EXPORT2 +uregex_setMatchCallback(URegularExpression *regexp, + URegexMatchCallback *callback, + const void *context, + UErrorCode *status); + + +/** + * Get the callback function for this URegularExpression. + * + * @param regexp The compiled regular expression. + * @param callback Out parameter, receives a pointer to the user-supplied + * callback function. + * @param context Out parameter, receives the user context pointer that + * was set when uregex_setMatchCallback() was called. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.0 + */ +U_CAPI void U_EXPORT2 +uregex_getMatchCallback(const URegularExpression *regexp, + URegexMatchCallback **callback, + const void **context, + UErrorCode *status); + +/** + * Function pointer for a regular expression find callback function. + * + * When set, a callback function will be called during a find operation + * and for operations that depend on find, such as findNext, split and some replace + * operations like replaceFirst. + * The callback will usually be called after each attempt at a match, but this is not a + * guarantee that the callback will be invoked at each character. For finds where the + * match engine is invoked at each character, this may be close to true, but less likely + * for more optimized loops where the pattern is known to only start, and the match + * engine invoked, at certain characters. + * When invoked, this callback will specify the index at which a match operation is about + * to be attempted, giving the application the opportunity to terminate a long-running + * find operation. + * + * If the call back function returns false, the find operation will be terminated early. + * + * Note: the callback function must not call other functions on this + * URegularExpression + * + * @param context context pointer. The callback function will be invoked + * with the context specified at the time that + * uregex_setFindProgressCallback() is called. + * @param matchIndex the next index at which a match attempt will be attempted for this + * find operation. If this callback interrupts the search, this is the + * index at which a find/findNext operation may be re-initiated. + * @return true to continue the matching operation. + * false to terminate the matching operation. + * @stable ICU 4.6 + */ +U_CDECL_BEGIN +typedef UBool U_CALLCONV URegexFindProgressCallback ( + const void *context, + int64_t matchIndex); +U_CDECL_END + + +/** + * Set the find progress callback function for this URegularExpression. + * + * @param regexp The compiled regular expression. + * @param callback A pointer to the user-supplied callback function. + * @param context User context pointer. The value supplied at the + * time the callback function is set will be saved + * and passed to the callback each time that it is called. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.6 + */ +U_CAPI void U_EXPORT2 +uregex_setFindProgressCallback(URegularExpression *regexp, + URegexFindProgressCallback *callback, + const void *context, + UErrorCode *status); + +/** + * Get the find progress callback function for this URegularExpression. + * + * @param regexp The compiled regular expression. + * @param callback Out parameter, receives a pointer to the user-supplied + * callback function. + * @param context Out parameter, receives the user context pointer that + * was set when uregex_setFindProgressCallback() was called. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.6 + */ +U_CAPI void U_EXPORT2 +uregex_getFindProgressCallback(const URegularExpression *regexp, + URegexFindProgressCallback **callback, + const void **context, + UErrorCode *status); + +#endif /* !UCONFIG_NO_REGULAR_EXPRESSIONS */ +#endif /* UREGEX_H */ + +// uregion.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +***************************************************************************************** +* Copyright (C) 2014, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UREGION_H +#define UREGION_H + + +/** + * \file + * \brief C API: URegion (territory containment and mapping) + * + * URegion objects represent data associated with a particular Unicode Region Code, also known as a + * Unicode Region Subtag, which is defined based upon the BCP 47 standard. These include: + * * Two-letter codes defined by ISO 3166-1, with special LDML treatment of certain private-use or + * reserved codes; + * * A subset of 3-digit numeric codes defined by UN M.49. + * URegion objects can also provide mappings to and from additional codes. There are different types + * of regions that are important to distinguish: + *

+ * Macroregion - A code for a "macro geographical (continental) region, geographical sub-region, or + * selected economic and other grouping" as defined in UN M.49. These are typically 3-digit codes, + * but contain some 2-letter codes for LDML extensions, such as "QO" for Outlying Oceania. + * Macroregions are represented in ICU by one of three region types: WORLD (code 001), + * CONTINENTS (regions contained directly by WORLD), and SUBCONTINENTS (regions contained directly + * by a continent ). + *

+ * TERRITORY - A Region that is not a Macroregion. These are typically codes for countries, but also + * include areas that are not separate countries, such as the code "AQ" for Antarctica or the code + * "HK" for Hong Kong (SAR China). Overseas dependencies of countries may or may not have separate + * codes. The codes are typically 2-letter codes aligned with ISO 3166, but BCP47 allows for the use + * of 3-digit codes in the future. + *

+ * UNKNOWN - The code ZZ is defined by Unicode LDML for use in indicating that region is unknown, + * or that the value supplied as a region was invalid. + *

+ * DEPRECATED - Region codes that have been defined in the past but are no longer in modern usage, + * usually due to a country splitting into multiple territories or changing its name. + *

+ * GROUPING - A widely understood grouping of territories that has a well defined membership such + * that a region code has been assigned for it. Some of these are UN M.49 codes that don't fall into + * the world/continent/sub-continent hierarchy, while others are just well-known groupings that have + * their own region code. Region "EU" (European Union) is one such region code that is a grouping. + * Groupings will never be returned by the uregion_getContainingRegion, since a different type of region + * (WORLD, CONTINENT, or SUBCONTINENT) will always be the containing region instead. + * + * URegion objects are const/immutable, owned and maintained by ICU itself, so there are not functions + * to open or close them. + */ + +/** + * URegionType is an enumeration defining the different types of regions. Current possible + * values are URGN_WORLD, URGN_CONTINENT, URGN_SUBCONTINENT, URGN_TERRITORY, URGN_GROUPING, + * URGN_DEPRECATED, and URGN_UNKNOWN. + * + * @stable ICU 51 + */ +typedef enum URegionType { + /** + * Type representing the unknown region. + * @stable ICU 51 + */ + URGN_UNKNOWN, + + /** + * Type representing a territory. + * @stable ICU 51 + */ + URGN_TERRITORY, + + /** + * Type representing the whole world. + * @stable ICU 51 + */ + URGN_WORLD, + + /** + * Type representing a continent. + * @stable ICU 51 + */ + URGN_CONTINENT, + + /** + * Type representing a sub-continent. + * @stable ICU 51 + */ + URGN_SUBCONTINENT, + + /** + * Type representing a grouping of territories that is not to be used in + * the normal WORLD/CONTINENT/SUBCONTINENT/TERRITORY containment tree. + * @stable ICU 51 + */ + URGN_GROUPING, + + /** + * Type representing a region whose code has been deprecated, usually + * due to a country splitting into multiple territories or changing its name. + * @stable ICU 51 + */ + URGN_DEPRECATED, + +} URegionType; + +#if !UCONFIG_NO_FORMATTING + +/** + * Opaque URegion object for use in C programs. + * @stable ICU 52 + */ +struct URegion; +typedef struct URegion URegion; /**< @stable ICU 52 */ + +/** + * Returns a pointer to a URegion for the specified region code: A 2-letter or 3-letter ISO 3166 + * code, UN M.49 numeric code (superset of ISO 3166 numeric codes), or other valid Unicode Region + * Code as defined by the LDML specification. The code will be canonicalized internally. If the + * region code is NULL or not recognized, the appropriate error code will be set + * (U_ILLEGAL_ARGUMENT_ERROR). + * @stable ICU 52 + */ +U_CAPI const URegion* U_EXPORT2 +uregion_getRegionFromCode(const char *regionCode, UErrorCode *status); + +/** + * Returns a pointer to a URegion for the specified numeric region code. If the numeric region + * code is not recognized, the appropriate error code will be set (U_ILLEGAL_ARGUMENT_ERROR). + * @stable ICU 52 + */ +U_CAPI const URegion* U_EXPORT2 +uregion_getRegionFromNumericCode (int32_t code, UErrorCode *status); + +/** + * Returns an enumeration over the canonical codes of all known regions that match the given type. + * The enumeration must be closed with with uenum_close(). + * @stable ICU 52 + */ +U_CAPI UEnumeration* U_EXPORT2 +uregion_getAvailable(URegionType type, UErrorCode *status); + +/** + * Returns true if the specified uregion is equal to the specified otherRegion. + * @stable ICU 52 + */ +U_CAPI UBool U_EXPORT2 +uregion_areEqual(const URegion* uregion, const URegion* otherRegion); + +/** + * Returns a pointer to the URegion that contains the specified uregion. Returns NULL if the + * specified uregion is code "001" (World) or "ZZ" (Unknown region). For example, calling + * this method with region "IT" (Italy) returns the URegion for "039" (Southern Europe). + * @stable ICU 52 + */ +U_CAPI const URegion* U_EXPORT2 +uregion_getContainingRegion(const URegion* uregion); + +/** + * Return a pointer to the URegion that geographically contains this uregion and matches the + * specified type, moving multiple steps up the containment chain if necessary. Returns NULL if no + * containing region can be found that matches the specified type. Will return NULL if URegionType + * is URGN_GROUPING, URGN_DEPRECATED, or URGN_UNKNOWN which are not appropriate for this API. + * For example, calling this method with uregion "IT" (Italy) for type URGN_CONTINENT returns the + * URegion "150" (Europe). + * @stable ICU 52 + */ +U_CAPI const URegion* U_EXPORT2 +uregion_getContainingRegionOfType(const URegion* uregion, URegionType type); + +/** + * Return an enumeration over the canonical codes of all the regions that are immediate children + * of the specified uregion in the region hierarchy. These returned regions could be either macro + * regions, territories, or a mixture of the two, depending on the containment data as defined in + * CLDR. This API returns NULL if this uregion doesn't have any sub-regions. For example, calling + * this function for uregion "150" (Europe) returns an enumeration containing the various + * sub-regions of Europe: "039" (Southern Europe), "151" (Eastern Europe), "154" (Northern Europe), + * and "155" (Western Europe). The enumeration must be closed with with uenum_close(). + * @stable ICU 52 + */ +U_CAPI UEnumeration* U_EXPORT2 +uregion_getContainedRegions(const URegion* uregion, UErrorCode *status); + +/** + * Returns an enumeration over the canonical codes of all the regions that are children of the + * specified uregion anywhere in the region hierarchy and match the given type. This API may return + * an empty enumeration if this uregion doesn't have any sub-regions that match the given type. + * For example, calling this method with region "150" (Europe) and type URGN_TERRITORY" returns an + * enumeration containing all the territories in Europe: "FR" (France), "IT" (Italy), "DE" (Germany), + * etc. The enumeration must be closed with with uenum_close(). + * @stable ICU 52 + */ +U_CAPI UEnumeration* U_EXPORT2 +uregion_getContainedRegionsOfType(const URegion* uregion, URegionType type, UErrorCode *status); + +/** + * Returns true if the specified uregion contains the specified otherRegion anywhere in the region + * hierarchy. + * @stable ICU 52 + */ +U_CAPI UBool U_EXPORT2 +uregion_contains(const URegion* uregion, const URegion* otherRegion); + +/** + * If the specified uregion is deprecated, returns an enumeration over the canonical codes of the + * regions that are the preferred replacement regions for the specified uregion. If the specified + * uregion is not deprecated, returns NULL. For example, calling this method with uregion + * "SU" (Soviet Union) returns a list of the regions containing "RU" (Russia), "AM" (Armenia), + * "AZ" (Azerbaijan), etc... The enumeration must be closed with with uenum_close(). + * @stable ICU 52 + */ +U_CAPI UEnumeration* U_EXPORT2 +uregion_getPreferredValues(const URegion* uregion, UErrorCode *status); + +/** + * Returns the specified uregion's canonical code. + * @stable ICU 52 + */ +U_CAPI const char* U_EXPORT2 +uregion_getRegionCode(const URegion* uregion); + +/** + * Returns the specified uregion's numeric code, or a negative value if there is no numeric code + * for the specified uregion. + * @stable ICU 52 + */ +U_CAPI int32_t U_EXPORT2 +uregion_getNumericCode(const URegion* uregion); + +/** + * Returns the URegionType of the specified uregion. + * @stable ICU 52 + */ +U_CAPI URegionType U_EXPORT2 +uregion_getType(const URegion* uregion); + + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// ureldatefmt.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +***************************************************************************************** +* Copyright (C) 2016, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef URELDATEFMT_H +#define URELDATEFMT_H + + +#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION + + + +/** + * \file + * \brief C API: URelativeDateTimeFormatter, relative date formatting of unit + numeric offset. + * + * Provides simple formatting of relative dates, in two ways + *

    + *
  • relative dates with a quantity e.g "in 5 days"
  • + *
  • relative dates without a quantity e.g "next Tuesday"
  • + *
+ *

+ * This does not provide compound formatting for multiple units, + * other than the ability to combine a time string with a relative date, + * as in "next Tuesday at 3:45 PM". It also does not provide support + * for determining which unit to use, such as deciding between "in 7 days" + * and "in 1 week". + * + * @stable ICU 57 + */ + +/** + * The formatting style + * @stable ICU 54 + */ +typedef enum UDateRelativeDateTimeFormatterStyle { + /** + * Everything spelled out. + * @stable ICU 54 + */ + UDAT_STYLE_LONG, + + /** + * Abbreviations used when possible. + * @stable ICU 54 + */ + UDAT_STYLE_SHORT, + + /** + * Use the shortest possible form. + * @stable ICU 54 + */ + UDAT_STYLE_NARROW, + +} UDateRelativeDateTimeFormatterStyle; + +/** + * Represents the unit for formatting a relative date. e.g "in 5 days" + * or "next year" + * @stable ICU 57 + */ +typedef enum URelativeDateTimeUnit { + /** + * Specifies that relative unit is year, e.g. "last year", + * "in 5 years". + * @stable ICU 57 + */ + UDAT_REL_UNIT_YEAR, + /** + * Specifies that relative unit is quarter, e.g. "last quarter", + * "in 5 quarters". + * @stable ICU 57 + */ + UDAT_REL_UNIT_QUARTER, + /** + * Specifies that relative unit is month, e.g. "last month", + * "in 5 months". + * @stable ICU 57 + */ + UDAT_REL_UNIT_MONTH, + /** + * Specifies that relative unit is week, e.g. "last week", + * "in 5 weeks". + * @stable ICU 57 + */ + UDAT_REL_UNIT_WEEK, + /** + * Specifies that relative unit is day, e.g. "yesterday", + * "in 5 days". + * @stable ICU 57 + */ + UDAT_REL_UNIT_DAY, + /** + * Specifies that relative unit is hour, e.g. "1 hour ago", + * "in 5 hours". + * @stable ICU 57 + */ + UDAT_REL_UNIT_HOUR, + /** + * Specifies that relative unit is minute, e.g. "1 minute ago", + * "in 5 minutes". + * @stable ICU 57 + */ + UDAT_REL_UNIT_MINUTE, + /** + * Specifies that relative unit is second, e.g. "1 second ago", + * "in 5 seconds". + * @stable ICU 57 + */ + UDAT_REL_UNIT_SECOND, + /** + * Specifies that relative unit is Sunday, e.g. "last Sunday", + * "this Sunday", "next Sunday", "in 5 Sundays". + * @stable ICU 57 + */ + UDAT_REL_UNIT_SUNDAY, + /** + * Specifies that relative unit is Monday, e.g. "last Monday", + * "this Monday", "next Monday", "in 5 Mondays". + * @stable ICU 57 + */ + UDAT_REL_UNIT_MONDAY, + /** + * Specifies that relative unit is Tuesday, e.g. "last Tuesday", + * "this Tuesday", "next Tuesday", "in 5 Tuesdays". + * @stable ICU 57 + */ + UDAT_REL_UNIT_TUESDAY, + /** + * Specifies that relative unit is Wednesday, e.g. "last Wednesday", + * "this Wednesday", "next Wednesday", "in 5 Wednesdays". + * @stable ICU 57 + */ + UDAT_REL_UNIT_WEDNESDAY, + /** + * Specifies that relative unit is Thursday, e.g. "last Thursday", + * "this Thursday", "next Thursday", "in 5 Thursdays". + * @stable ICU 57 + */ + UDAT_REL_UNIT_THURSDAY, + /** + * Specifies that relative unit is Friday, e.g. "last Friday", + * "this Friday", "next Friday", "in 5 Fridays". + * @stable ICU 57 + */ + UDAT_REL_UNIT_FRIDAY, + /** + * Specifies that relative unit is Saturday, e.g. "last Saturday", + * "this Saturday", "next Saturday", "in 5 Saturdays". + * @stable ICU 57 + */ + UDAT_REL_UNIT_SATURDAY, +} URelativeDateTimeUnit; + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * FieldPosition and UFieldPosition selectors for format fields + * defined by RelativeDateTimeFormatter. + * @stable ICU 64 + */ +typedef enum URelativeDateTimeFormatterField { + /** + * Represents a literal text string, like "tomorrow" or "days ago". + * @stable ICU 64 + */ + UDAT_REL_LITERAL_FIELD, + /** + * Represents a number quantity, like "3" in "3 days ago". + * @stable ICU 64 + */ + UDAT_REL_NUMERIC_FIELD, +} URelativeDateTimeFormatterField; +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + +/** + * Opaque URelativeDateTimeFormatter object for use in C programs. + * @stable ICU 57 + */ +struct URelativeDateTimeFormatter; +typedef struct URelativeDateTimeFormatter URelativeDateTimeFormatter; /**< C typedef for struct URelativeDateTimeFormatter. @stable ICU 57 */ + + +/** + * Open a new URelativeDateTimeFormatter object for a given locale using the + * specified width and capitalizationContext, along with a number formatter + * (if desired) to override the default formatter that would be used for + * display of numeric field offsets. The default formatter typically rounds + * toward 0 and has a minimum of 0 fraction digits and a maximum of 3 + * fraction digits (i.e. it will show as many decimal places as necessary + * up to 3, without showing trailing 0s). + * + * @param locale + * The locale + * @param nfToAdopt + * A number formatter to set for this URelativeDateTimeFormatter + * object (instead of the default decimal formatter). Ownership of + * this UNumberFormat object will pass to the URelativeDateTimeFormatter + * object (the URelativeDateTimeFormatter adopts the UNumberFormat), + * which becomes responsible for closing it. If the caller wishes to + * retain ownership of the UNumberFormat object, the caller must clone + * it (with unum_clone) and pass the clone to ureldatefmt_open. May be + * NULL to use the default decimal formatter. + * @param width + * The width - wide, short, narrow, etc. + * @param capitalizationContext + * A value from UDisplayContext that pertains to capitalization, e.g. + * UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE. + * @param status + * A pointer to a UErrorCode to receive any errors. + * @return + * A pointer to a URelativeDateTimeFormatter object for the specified locale, + * or NULL if an error occurred. + * @stable ICU 57 + */ +U_CAPI URelativeDateTimeFormatter* U_EXPORT2 +ureldatefmt_open( const char* locale, + UNumberFormat* nfToAdopt, + UDateRelativeDateTimeFormatterStyle width, + UDisplayContext capitalizationContext, + UErrorCode* status ); + +/** + * Close a URelativeDateTimeFormatter object. Once closed it may no longer be used. + * @param reldatefmt + * The URelativeDateTimeFormatter object to close. + * @stable ICU 57 + */ +U_CAPI void U_EXPORT2 +ureldatefmt_close(URelativeDateTimeFormatter *reldatefmt); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +struct UFormattedRelativeDateTime; +/** + * Opaque struct to contain the results of a URelativeDateTimeFormatter operation. + * @stable ICU 64 + */ +typedef struct UFormattedRelativeDateTime UFormattedRelativeDateTime; + +/** + * Creates an object to hold the result of a URelativeDateTimeFormatter + * operation. The object can be used repeatedly; it is cleared whenever + * passed to a format function. + * + * @param ec Set if an error occurs. + * @return A pointer needing ownership. + * @stable ICU 64 + */ +U_CAPI UFormattedRelativeDateTime* U_EXPORT2 +ureldatefmt_openResult(UErrorCode* ec); + +/** + * Returns a representation of a UFormattedRelativeDateTime as a UFormattedValue, + * which can be subsequently passed to any API requiring that type. + * + * The returned object is owned by the UFormattedRelativeDateTime and is valid + * only as long as the UFormattedRelativeDateTime is present and unchanged in memory. + * + * You can think of this method as a cast between types. + * + * @param ufrdt The object containing the formatted string. + * @param ec Set if an error occurs. + * @return A UFormattedValue owned by the input object. + * @stable ICU 64 + */ +U_CAPI const UFormattedValue* U_EXPORT2 +ureldatefmt_resultAsValue(const UFormattedRelativeDateTime* ufrdt, UErrorCode* ec); + +/** + * Releases the UFormattedRelativeDateTime created by ureldatefmt_openResult. + * + * @param ufrdt The object to release. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ureldatefmt_closeResult(UFormattedRelativeDateTime* ufrdt); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + + +/** + * Format a combination of URelativeDateTimeUnit and numeric + * offset using a numeric style, e.g. "1 week ago", "in 1 week", + * "5 weeks ago", "in 5 weeks". + * + * @param reldatefmt + * The URelativeDateTimeFormatter object specifying the + * format conventions. + * @param offset + * The signed offset for the specified unit. This will + * be formatted according to this object's UNumberFormat + * object. + * @param unit + * The unit to use when formatting the relative + * date, e.g. UDAT_REL_UNIT_WEEK, UDAT_REL_UNIT_FRIDAY. + * @param result + * A pointer to a buffer to receive the formatted result. + * @param resultCapacity + * The maximum size of result. + * @param status + * A pointer to a UErrorCode to receive any errors. In + * case of error status, the contents of result are + * undefined. + * @return + * The length of the formatted result; may be greater + * than resultCapacity, in which case an error is returned. + * @stable ICU 57 + */ +U_CAPI int32_t U_EXPORT2 +ureldatefmt_formatNumeric( const URelativeDateTimeFormatter* reldatefmt, + double offset, + URelativeDateTimeUnit unit, + UChar* result, + int32_t resultCapacity, + UErrorCode* status); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Format a combination of URelativeDateTimeUnit and numeric + * offset using a numeric style, e.g. "1 week ago", "in 1 week", + * "5 weeks ago", "in 5 weeks". + * + * @param reldatefmt + * The URelativeDateTimeFormatter object specifying the + * format conventions. + * @param offset + * The signed offset for the specified unit. This will + * be formatted according to this object's UNumberFormat + * object. + * @param unit + * The unit to use when formatting the relative + * date, e.g. UDAT_REL_UNIT_WEEK, UDAT_REL_UNIT_FRIDAY. + * @param result + * A pointer to a UFormattedRelativeDateTime to populate. + * @param status + * A pointer to a UErrorCode to receive any errors. In + * case of error status, the contents of result are + * undefined. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ureldatefmt_formatNumericToResult( + const URelativeDateTimeFormatter* reldatefmt, + double offset, + URelativeDateTimeUnit unit, + UFormattedRelativeDateTime* result, + UErrorCode* status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * Format a combination of URelativeDateTimeUnit and numeric offset + * using a text style if possible, e.g. "last week", "this week", + * "next week", "yesterday", "tomorrow". Falls back to numeric + * style if no appropriate text term is available for the specified + * offset in the object's locale. + * + * @param reldatefmt + * The URelativeDateTimeFormatter object specifying the + * format conventions. + * @param offset + * The signed offset for the specified unit. + * @param unit + * The unit to use when formatting the relative + * date, e.g. UDAT_REL_UNIT_WEEK, UDAT_REL_UNIT_FRIDAY. + * @param result + * A pointer to a buffer to receive the formatted result. + * @param resultCapacity + * The maximum size of result. + * @param status + * A pointer to a UErrorCode to receive any errors. In + * case of error status, the contents of result are + * undefined. + * @return + * The length of the formatted result; may be greater + * than resultCapacity, in which case an error is returned. + * @stable ICU 57 + */ +U_CAPI int32_t U_EXPORT2 +ureldatefmt_format( const URelativeDateTimeFormatter* reldatefmt, + double offset, + URelativeDateTimeUnit unit, + UChar* result, + int32_t resultCapacity, + UErrorCode* status); + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) +/** + * Format a combination of URelativeDateTimeUnit and numeric offset + * using a text style if possible, e.g. "last week", "this week", + * "next week", "yesterday", "tomorrow". Falls back to numeric + * style if no appropriate text term is available for the specified + * offset in the object's locale. + * + * This method populates a UFormattedRelativeDateTime, which exposes more + * information than the string populated by format(). + * + * @param reldatefmt + * The URelativeDateTimeFormatter object specifying the + * format conventions. + * @param offset + * The signed offset for the specified unit. + * @param unit + * The unit to use when formatting the relative + * date, e.g. UDAT_REL_UNIT_WEEK, UDAT_REL_UNIT_FRIDAY. + * @param result + * A pointer to a UFormattedRelativeDateTime to populate. + * @param status + * A pointer to a UErrorCode to receive any errors. In + * case of error status, the contents of result are + * undefined. + * @stable ICU 64 + */ +U_CAPI void U_EXPORT2 +ureldatefmt_formatToResult( + const URelativeDateTimeFormatter* reldatefmt, + double offset, + URelativeDateTimeUnit unit, + UFormattedRelativeDateTime* result, + UErrorCode* status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + +/** + * Combines a relative date string and a time string in this object's + * locale. This is done with the same date-time separator used for the + * default calendar in this locale to produce a result such as + * "yesterday at 3:45 PM". + * + * @param reldatefmt + * The URelativeDateTimeFormatter object specifying the format conventions. + * @param relativeDateString + * The relative date string. + * @param relativeDateStringLen + * The length of relativeDateString; may be -1 if relativeDateString + * is zero-terminated. + * @param timeString + * The time string. + * @param timeStringLen + * The length of timeString; may be -1 if timeString is zero-terminated. + * @param result + * A pointer to a buffer to receive the formatted result. + * @param resultCapacity + * The maximum size of result. + * @param status + * A pointer to a UErrorCode to receive any errors. In case of error status, + * the contents of result are undefined. + * @return + * The length of the formatted result; may be greater than resultCapacity, + * in which case an error is returned. + * @stable ICU 57 + */ +U_CAPI int32_t U_EXPORT2 +ureldatefmt_combineDateAndTime( const URelativeDateTimeFormatter* reldatefmt, + const UChar * relativeDateString, + int32_t relativeDateStringLen, + const UChar * timeString, + int32_t timeStringLen, + UChar* result, + int32_t resultCapacity, + UErrorCode* status ); + +#endif /* !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION */ + +#endif + +// usearch.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +********************************************************************** +* Copyright (C) 2001-2011,2014 IBM and others. All rights reserved. +********************************************************************** +* Date Name Description +* 06/28/2001 synwee Creation. +********************************************************************** +*/ +#ifndef USEARCH_H +#define USEARCH_H + + +#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION + + + +/** + * \file + * \brief C API: StringSearch + * + * C APIs for an engine that provides language-sensitive text searching based + * on the comparison rules defined in a UCollator data struct, + * see ucol.h. This ensures that language eccentricity can be + * handled, e.g. for the German collator, characters ß and SS will be matched + * if case is chosen to be ignored. + * See the + * "ICU Collation Design Document" for more information. + *

+ * As of ICU4C 4.0 / ICU4J 53, the implementation uses a linear search. In previous versions, + * a modified form of the Boyer-Moore searching algorithm was used. For more information + * on the modified Boyer-Moore algorithm see + * + * "Efficient Text Searching in Java", published in Java Report + * in February, 1999. + *

+ * There are 2 match options for selection:
+ * Let S' be the sub-string of a text string S between the offsets start and + * end . + *
+ * A pattern string P matches a text string S at the offsets + * if + *

 
+ * option 1. Some canonical equivalent of P matches some canonical equivalent 
+ *           of S'
+ * option 2. P matches S' and if P starts or ends with a combining mark, 
+ *           there exists no non-ignorable combining mark before or after S' 
+ *           in S respectively. 
+ * 
+ * Option 2. will be the default. + *

+ * This search has APIs similar to that of other text iteration mechanisms + * such as the break iterators in ubrk.h. Using these + * APIs, it is easy to scan through text looking for all occurrences of + * a given pattern. This search iterator allows changing of direction by + * calling a reset followed by a next or previous. + * Though a direction change can occur without calling reset first, + * this operation comes with some speed penalty. + * Generally, match results in the forward direction will match the result + * matches in the backwards direction in the reverse order + *

+ * usearch.h provides APIs to specify the starting position + * within the text string to be searched, e.g. usearch_setOffset, + * usearch_preceding and usearch_following. Since the + * starting position will be set as it is specified, please take note that + * there are some dangerous positions which the search may render incorrect + * results: + *

    + *
  • The midst of a substring that requires normalization. + *
  • If the following match is to be found, the position should not be the + * second character which requires to be swapped with the preceding + * character. Vice versa, if the preceding match is to be found, + * position to search from should not be the first character which + * requires to be swapped with the next character. E.g certain Thai and + * Lao characters require swapping. + *
  • If a following pattern match is to be found, any position within a + * contracting sequence except the first will fail. Vice versa if a + * preceding pattern match is to be found, a invalid starting point + * would be any character within a contracting sequence except the last. + *
+ *

+ * A breakiterator can be used if only matches at logical breaks are desired. + * Using a breakiterator will only give you results that exactly matches the + * boundaries given by the breakiterator. For instance the pattern "e" will + * not be found in the string "\u00e9" if a character break iterator is used. + *

+ * Options are provided to handle overlapping matches. + * E.g. In English, overlapping matches produces the result 0 and 2 + * for the pattern "abab" in the text "ababab", where else mutually + * exclusive matches only produce the result of 0. + *

+ * Options are also provided to implement "asymmetric search" as described in + * + * UTS #10 Unicode Collation Algorithm, specifically the USearchAttribute + * USEARCH_ELEMENT_COMPARISON and its values. + *

+ * Though collator attributes will be taken into consideration while + * performing matches, there are no APIs here for setting and getting the + * attributes. These attributes can be set by getting the collator + * from usearch_getCollator and using the APIs in ucol.h. + * Lastly to update String Search to the new collator attributes, + * usearch_reset() has to be called. + *

+ * Restriction:
+ * Currently there are no composite characters that consists of a + * character with combining class > 0 before a character with combining + * class == 0. However, if such a character exists in the future, the + * search mechanism does not guarantee the results for option 1. + * + *

+ * Example of use:
+ *


+ * char *tgtstr = "The quick brown fox jumped over the lazy fox";
+ * char *patstr = "fox";
+ * UChar target[64];
+ * UChar pattern[16];
+ * UErrorCode status = U_ZERO_ERROR;
+ * u_uastrcpy(target, tgtstr);
+ * u_uastrcpy(pattern, patstr);
+ *
+ * UStringSearch *search = usearch_open(pattern, -1, target, -1, "en_US", 
+ *                                  NULL, &status);
+ * if (U_SUCCESS(status)) {
+ *     for (int pos = usearch_first(search, &status); 
+ *          pos != USEARCH_DONE; 
+ *          pos = usearch_next(search, &status))
+ *     {
+ *         printf("Found match at %d pos, length is %d\n", pos, 
+ *                                        usearch_getMatchedLength(search));
+ *     }
+ * }
+ *
+ * usearch_close(search);
+ * 
+ * @stable ICU 2.4 + */ + +/** +* DONE is returned by previous() and next() after all valid matches have +* been returned, and by first() and last() if there are no matches at all. +* @stable ICU 2.4 +*/ +#define USEARCH_DONE -1 + +/** +* Data structure for searching +* @stable ICU 2.4 +*/ +struct UStringSearch; +/** +* Data structure for searching +* @stable ICU 2.4 +*/ +typedef struct UStringSearch UStringSearch; + +/** +* @stable ICU 2.4 +*/ +typedef enum { + /** + * Option for overlapping matches + * @stable ICU 2.4 + */ + USEARCH_OVERLAP = 0, + /** + * Option to control how collation elements are compared. + * The default value will be USEARCH_STANDARD_ELEMENT_COMPARISON. + * @stable ICU 4.4 + */ + USEARCH_ELEMENT_COMPARISON = 2, + +} USearchAttribute; + +/** +* @stable ICU 2.4 +*/ +typedef enum { + /** + * Default value for any USearchAttribute + * @stable ICU 2.4 + */ + USEARCH_DEFAULT = -1, + /** + * Value for USEARCH_OVERLAP and USEARCH_CANONICAL_MATCH + * @stable ICU 2.4 + */ + USEARCH_OFF, + /** + * Value for USEARCH_OVERLAP and USEARCH_CANONICAL_MATCH + * @stable ICU 2.4 + */ + USEARCH_ON, + /** + * Value (default) for USEARCH_ELEMENT_COMPARISON; + * standard collation element comparison at the specified collator + * strength. + * @stable ICU 4.4 + */ + USEARCH_STANDARD_ELEMENT_COMPARISON, + /** + * Value for USEARCH_ELEMENT_COMPARISON; + * collation element comparison is modified to effectively provide + * behavior between the specified strength and strength - 1. Collation + * elements in the pattern that have the base weight for the specified + * strength are treated as "wildcards" that match an element with any + * other weight at that collation level in the searched text. For + * example, with a secondary-strength English collator, a plain 'e' in + * the pattern will match a plain e or an e with any diacritic in the + * searched text, but an e with diacritic in the pattern will only + * match an e with the same diacritic in the searched text. + * + * This supports "asymmetric search" as described in + * + * UTS #10 Unicode Collation Algorithm. + * + * @stable ICU 4.4 + */ + USEARCH_PATTERN_BASE_WEIGHT_IS_WILDCARD, + /** + * Value for USEARCH_ELEMENT_COMPARISON. + * collation element comparison is modified to effectively provide + * behavior between the specified strength and strength - 1. Collation + * elements in either the pattern or the searched text that have the + * base weight for the specified strength are treated as "wildcards" + * that match an element with any other weight at that collation level. + * For example, with a secondary-strength English collator, a plain 'e' + * in the pattern will match a plain e or an e with any diacritic in the + * searched text, but an e with diacritic in the pattern will only + * match an e with the same diacritic or a plain e in the searched text. + * + * This option is similar to "asymmetric search" as described in + * [UTS #10 Unicode Collation Algorithm](http://www.unicode.org/reports/tr10/#Asymmetric_Search), + * but also allows unmarked characters in the searched text to match + * marked or unmarked versions of that character in the pattern. + * + * @stable ICU 4.4 + */ + USEARCH_ANY_BASE_WEIGHT_IS_WILDCARD, + +} USearchAttributeValue; + +/* open and close ------------------------------------------------------ */ + +/** +* Creates a String Search iterator data struct using the argument locale language +* rule set. A collator will be created in the process, which will be owned by +* this String Search and will be deleted in usearch_close. +* +* The UStringSearch retains a pointer to both the pattern and text strings. +* The caller must not modify or delete them while using the UStringSearch. +* +* @param pattern for matching +* @param patternlength length of the pattern, -1 for null-termination +* @param text text string +* @param textlength length of the text string, -1 for null-termination +* @param locale name of locale for the rules to be used +* @param breakiter A BreakIterator that will be used to restrict the points +* at which matches are detected. If a match is found, but +* the match's start or end index is not a boundary as +* determined by the BreakIterator, the match will +* be rejected and another will be searched for. +* If this parameter is NULL, no break detection is +* attempted. +* @param status for errors if it occurs. If pattern or text is NULL, or if +* patternlength or textlength is 0 then an +* U_ILLEGAL_ARGUMENT_ERROR is returned. +* @return search iterator data structure, or NULL if there is an error. +* @stable ICU 2.4 +*/ +U_CAPI UStringSearch * U_EXPORT2 usearch_open(const UChar *pattern, + int32_t patternlength, + const UChar *text, + int32_t textlength, + const char *locale, + UBreakIterator *breakiter, + UErrorCode *status); + +/** +* Creates a String Search iterator data struct using the argument collator language +* rule set. Note, user retains the ownership of this collator, thus the +* responsibility of deletion lies with the user. + +* NOTE: String Search cannot be instantiated from a collator that has +* collate digits as numbers (CODAN) turned on (UCOL_NUMERIC_COLLATION). +* +* The UStringSearch retains a pointer to both the pattern and text strings. +* The caller must not modify or delete them while using the UStringSearch. +* +* @param pattern for matching +* @param patternlength length of the pattern, -1 for null-termination +* @param text text string +* @param textlength length of the text string, -1 for null-termination +* @param collator used for the language rules +* @param breakiter A BreakIterator that will be used to restrict the points +* at which matches are detected. If a match is found, but +* the match's start or end index is not a boundary as +* determined by the BreakIterator, the match will +* be rejected and another will be searched for. +* If this parameter is NULL, no break detection is +* attempted. +* @param status for errors if it occurs. If collator, pattern or text is NULL, +* or if patternlength or textlength is 0 then an +* U_ILLEGAL_ARGUMENT_ERROR is returned. +* @return search iterator data structure, or NULL if there is an error. +* @stable ICU 2.4 +*/ +U_CAPI UStringSearch * U_EXPORT2 usearch_openFromCollator( + const UChar *pattern, + int32_t patternlength, + const UChar *text, + int32_t textlength, + const UCollator *collator, + UBreakIterator *breakiter, + UErrorCode *status); + +/** + * Destroys and cleans up the String Search iterator data struct. + * If a collator was created in usearch_open, then it will be destroyed here. + * @param searchiter The UStringSearch to clean up + * @stable ICU 2.4 + */ +U_CAPI void U_EXPORT2 usearch_close(UStringSearch *searchiter); + + +/* get and set methods -------------------------------------------------- */ + +/** +* Sets the current position in the text string which the next search will +* start from. Clears previous states. +* This method takes the argument index and sets the position in the text +* string accordingly without checking if the index is pointing to a +* valid starting point to begin searching. +* Search positions that may render incorrect results are highlighted in the +* header comments +* @param strsrch search iterator data struct +* @param position position to start next search from. If position is less +* than or greater than the text range for searching, +* an U_INDEX_OUTOFBOUNDS_ERROR will be returned +* @param status error status if any. +* @stable ICU 2.4 +*/ +U_CAPI void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch, + int32_t position, + UErrorCode *status); + +/** +* Return the current index in the string text being searched. +* If the iteration has gone past the end of the text (or past the beginning +* for a backwards search), USEARCH_DONE is returned. +* @param strsrch search iterator data struct +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_CAPI int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch); + +/** +* Sets the text searching attributes located in the enum USearchAttribute +* with values from the enum USearchAttributeValue. +* USEARCH_DEFAULT can be used for all attributes for resetting. +* @param strsrch search iterator data struct +* @param attribute text attribute to be set +* @param value text attribute value +* @param status for errors if it occurs +* @see #usearch_getAttribute +* @stable ICU 2.4 +*/ +U_CAPI void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch, + USearchAttribute attribute, + USearchAttributeValue value, + UErrorCode *status); + +/** +* Gets the text searching attributes. +* @param strsrch search iterator data struct +* @param attribute text attribute to be retrieve +* @return text attribute value +* @see #usearch_setAttribute +* @stable ICU 2.4 +*/ +U_CAPI USearchAttributeValue U_EXPORT2 usearch_getAttribute( + const UStringSearch *strsrch, + USearchAttribute attribute); + +/** +* Returns the index to the match in the text string that was searched. +* This call returns a valid result only after a successful call to +* usearch_first, usearch_next, usearch_previous, +* or usearch_last. +* Just after construction, or after a searching method returns +* USEARCH_DONE, this method will return USEARCH_DONE. +*

+* Use usearch_getMatchedLength to get the matched string length. +* @param strsrch search iterator data struct +* @return index to a substring within the text string that is being +* searched. +* @see #usearch_first +* @see #usearch_next +* @see #usearch_previous +* @see #usearch_last +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_CAPI int32_t U_EXPORT2 usearch_getMatchedStart( + const UStringSearch *strsrch); + +/** +* Returns the length of text in the string which matches the search pattern. +* This call returns a valid result only after a successful call to +* usearch_first, usearch_next, usearch_previous, +* or usearch_last. +* Just after construction, or after a searching method returns +* USEARCH_DONE, this method will return 0. +* @param strsrch search iterator data struct +* @return The length of the match in the string text, or 0 if there is no +* match currently. +* @see #usearch_first +* @see #usearch_next +* @see #usearch_previous +* @see #usearch_last +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_CAPI int32_t U_EXPORT2 usearch_getMatchedLength( + const UStringSearch *strsrch); + +/** +* Returns the text that was matched by the most recent call to +* usearch_first, usearch_next, usearch_previous, +* or usearch_last. +* If the iterator is not pointing at a valid match (e.g. just after +* construction or after USEARCH_DONE has been returned, returns +* an empty string. If result is not large enough to store the matched text, +* result will be filled with the partial text and an U_BUFFER_OVERFLOW_ERROR +* will be returned in status. result will be null-terminated whenever +* possible. If the buffer fits the matched text exactly, a null-termination +* is not possible, then a U_STRING_NOT_TERMINATED_ERROR set in status. +* Pre-flighting can be either done with length = 0 or the API +* usearch_getMatchedLength. +* @param strsrch search iterator data struct +* @param result UChar buffer to store the matched string +* @param resultCapacity length of the result buffer +* @param status error returned if result is not large enough +* @return exact length of the matched text, not counting the null-termination +* @see #usearch_first +* @see #usearch_next +* @see #usearch_previous +* @see #usearch_last +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_CAPI int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch, + UChar *result, + int32_t resultCapacity, + UErrorCode *status); + +#if !UCONFIG_NO_BREAK_ITERATION + +/** +* Set the BreakIterator that will be used to restrict the points at which +* matches are detected. +* @param strsrch search iterator data struct +* @param breakiter A BreakIterator that will be used to restrict the points +* at which matches are detected. If a match is found, but +* the match's start or end index is not a boundary as +* determined by the BreakIterator, the match will +* be rejected and another will be searched for. +* If this parameter is NULL, no break detection is +* attempted. +* @param status for errors if it occurs +* @see #usearch_getBreakIterator +* @stable ICU 2.4 +*/ +U_CAPI void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch, + UBreakIterator *breakiter, + UErrorCode *status); + +/** +* Returns the BreakIterator that is used to restrict the points at which +* matches are detected. This will be the same object that was passed to the +* constructor or to usearch_setBreakIterator. Note that +* NULL +* is a legal value; it means that break detection should not be attempted. +* @param strsrch search iterator data struct +* @return break iterator used +* @see #usearch_setBreakIterator +* @stable ICU 2.4 +*/ +U_CAPI const UBreakIterator * U_EXPORT2 usearch_getBreakIterator( + const UStringSearch *strsrch); + +#endif + +/** +* Set the string text to be searched. Text iteration will hence begin at the +* start of the text string. This method is useful if you want to re-use an +* iterator to search for the same pattern within a different body of text. +* +* The UStringSearch retains a pointer to the text string. The caller must not +* modify or delete the string while using the UStringSearch. +* +* @param strsrch search iterator data struct +* @param text new string to look for match +* @param textlength length of the new string, -1 for null-termination +* @param status for errors if it occurs. If text is NULL, or textlength is 0 +* then an U_ILLEGAL_ARGUMENT_ERROR is returned with no change +* done to strsrch. +* @see #usearch_getText +* @stable ICU 2.4 +*/ +U_CAPI void U_EXPORT2 usearch_setText( UStringSearch *strsrch, + const UChar *text, + int32_t textlength, + UErrorCode *status); + +/** +* Return the string text to be searched. +* @param strsrch search iterator data struct +* @param length returned string text length +* @return string text +* @see #usearch_setText +* @stable ICU 2.4 +*/ +U_CAPI const UChar * U_EXPORT2 usearch_getText(const UStringSearch *strsrch, + int32_t *length); + +/** +* Gets the collator used for the language rules. +*

+* Deleting the returned UCollator before calling +* usearch_close would cause the string search to fail. +* usearch_close will delete the collator if this search owns it. +* @param strsrch search iterator data struct +* @return collator +* @stable ICU 2.4 +*/ +U_CAPI UCollator * U_EXPORT2 usearch_getCollator( + const UStringSearch *strsrch); + +/** +* Sets the collator used for the language rules. User retains the ownership +* of this collator, thus the responsibility of deletion lies with the user. +* This method causes internal data such as the pattern collation elements +* and shift tables to be recalculated, but the iterator's position is unchanged. +* @param strsrch search iterator data struct +* @param collator to be used +* @param status for errors if it occurs +* @stable ICU 2.4 +*/ +U_CAPI void U_EXPORT2 usearch_setCollator( UStringSearch *strsrch, + const UCollator *collator, + UErrorCode *status); + +/** +* Sets the pattern used for matching. +* Internal data like the pattern collation elements will be recalculated, but the +* iterator's position is unchanged. +* +* The UStringSearch retains a pointer to the pattern string. The caller must not +* modify or delete the string while using the UStringSearch. +* +* @param strsrch search iterator data struct +* @param pattern string +* @param patternlength pattern length, -1 for null-terminated string +* @param status for errors if it occurs. If text is NULL, or textlength is 0 +* then an U_ILLEGAL_ARGUMENT_ERROR is returned with no change +* done to strsrch. +* @stable ICU 2.4 +*/ +U_CAPI void U_EXPORT2 usearch_setPattern( UStringSearch *strsrch, + const UChar *pattern, + int32_t patternlength, + UErrorCode *status); + +/** +* Gets the search pattern +* @param strsrch search iterator data struct +* @param length return length of the pattern, -1 indicates that the pattern +* is null-terminated +* @return pattern string +* @stable ICU 2.4 +*/ +U_CAPI const UChar * U_EXPORT2 usearch_getPattern( + const UStringSearch *strsrch, + int32_t *length); + +/* methods ------------------------------------------------------------- */ + +/** +* Returns the first index at which the string text matches the search +* pattern. +* The iterator is adjusted so that its current index (as returned by +* usearch_getOffset) is the match position if one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE. +* @param strsrch search iterator data struct +* @param status for errors if it occurs +* @return The character index of the first match, or +* USEARCH_DONE if there are no matches. +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_CAPI int32_t U_EXPORT2 usearch_first(UStringSearch *strsrch, + UErrorCode *status); + +/** +* Returns the first index equal or greater than position at which +* the string text +* matches the search pattern. The iterator is adjusted so that its current +* index (as returned by usearch_getOffset) is the match position if +* one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE +*

+* Search positions that may render incorrect results are highlighted in the +* header comments. If position is less than or greater than the text range +* for searching, an U_INDEX_OUTOFBOUNDS_ERROR will be returned +* @param strsrch search iterator data struct +* @param position to start the search at +* @param status for errors if it occurs +* @return The character index of the first match following pos, +* or USEARCH_DONE if there are no matches. +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_CAPI int32_t U_EXPORT2 usearch_following(UStringSearch *strsrch, + int32_t position, + UErrorCode *status); + +/** +* Returns the last index in the target text at which it matches the search +* pattern. The iterator is adjusted so that its current +* index (as returned by usearch_getOffset) is the match position if +* one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE. +* @param strsrch search iterator data struct +* @param status for errors if it occurs +* @return The index of the first match, or USEARCH_DONE if there +* are no matches. +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_CAPI int32_t U_EXPORT2 usearch_last(UStringSearch *strsrch, + UErrorCode *status); + +/** +* Returns the first index less than position at which the string text +* matches the search pattern. The iterator is adjusted so that its current +* index (as returned by usearch_getOffset) is the match position if +* one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE +*

+* Search positions that may render incorrect results are highlighted in the +* header comments. If position is less than or greater than the text range +* for searching, an U_INDEX_OUTOFBOUNDS_ERROR will be returned. +*

+* When USEARCH_OVERLAP option is off, the last index of the +* result match is always less than position. +* When USERARCH_OVERLAP is on, the result match may span across +* position. +* @param strsrch search iterator data struct +* @param position index position the search is to begin at +* @param status for errors if it occurs +* @return The character index of the first match preceding pos, +* or USEARCH_DONE if there are no matches. +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_CAPI int32_t U_EXPORT2 usearch_preceding(UStringSearch *strsrch, + int32_t position, + UErrorCode *status); + +/** +* Returns the index of the next point at which the string text matches the +* search pattern, starting from the current position. +* The iterator is adjusted so that its current +* index (as returned by usearch_getOffset) is the match position if +* one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE +* @param strsrch search iterator data struct +* @param status for errors if it occurs +* @return The index of the next match after the current position, or +* USEARCH_DONE if there are no more matches. +* @see #usearch_first +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_CAPI int32_t U_EXPORT2 usearch_next(UStringSearch *strsrch, + UErrorCode *status); + +/** +* Returns the index of the previous point at which the string text matches +* the search pattern, starting at the current position. +* The iterator is adjusted so that its current +* index (as returned by usearch_getOffset) is the match position if +* one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE +* @param strsrch search iterator data struct +* @param status for errors if it occurs +* @return The index of the previous match before the current position, +* or USEARCH_DONE if there are no more matches. +* @see #usearch_last +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_CAPI int32_t U_EXPORT2 usearch_previous(UStringSearch *strsrch, + UErrorCode *status); + +/** +* Reset the iteration. +* Search will begin at the start of the text string if a forward iteration +* is initiated before a backwards iteration. Otherwise if a backwards +* iteration is initiated before a forwards iteration, the search will begin +* at the end of the text string. +* @param strsrch search iterator data struct +* @see #usearch_first +* @stable ICU 2.4 +*/ +U_CAPI void U_EXPORT2 usearch_reset(UStringSearch *strsrch); + + +#endif /* #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION */ + +#endif + +// uspoof.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +*************************************************************************** +* Copyright (C) 2008-2016, International Business Machines Corporation +* and others. All Rights Reserved. +*************************************************************************** +* file name: uspoof.h +* encoding: UTF-8 +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2008Feb13 +* created by: Andy Heninger +* +* Unicode Spoof Detection +*/ + +#ifndef USPOOF_H +#define USPOOF_H + + +#if !UCONFIG_NO_NORMALIZATION + + + + +/** + * \file + * \brief C API: Unicode Security and Spoofing Detection + * + *

+ * This class, based on Unicode Technical Report #36 and + * Unicode Technical Standard #39, has two main functions: + * + *

    + *
  1. Checking whether two strings are visually confusable with each other, such as "Harvest" and + * "Ηarvest", where the second string starts with the Greek capital letter Eta.
  2. + *
  3. Checking whether an individual string is likely to be an attempt at confusing the reader (spoof + * detection), such as "paypal" with some Latin characters substituted with Cyrillic look-alikes.
  4. + *
+ * + *

+ * Although originally designed as a method for flagging suspicious identifier strings such as URLs, + * USpoofChecker has a number of other practical use cases, such as preventing attempts to evade bad-word + * content filters. + * + *

+ * The functions of this class are exposed as C API, with a handful of syntactical conveniences for C++. + * + *

Confusables

+ * + *

+ * The following example shows how to use USpoofChecker to check for confusability between two strings: + * + * \code{.c} + * UErrorCode status = U_ZERO_ERROR; + * UChar* str1 = (UChar*) u"Harvest"; + * UChar* str2 = (UChar*) u"\u0397arvest"; // with U+0397 GREEK CAPITAL LETTER ETA + * + * USpoofChecker* sc = uspoof_open(&status); + * uspoof_setChecks(sc, USPOOF_CONFUSABLE, &status); + * + * int32_t bitmask = uspoof_areConfusable(sc, str1, -1, str2, -1, &status); + * UBool result = bitmask != 0; + * // areConfusable: 1 (status: U_ZERO_ERROR) + * printf("areConfusable: %d (status: %s)\n", result, u_errorName(status)); + * uspoof_close(sc); + * \endcode + * + *

+ * The call to {@link uspoof_open} creates a USpoofChecker object; the call to {@link uspoof_setChecks} + * enables confusable checking and disables all other checks; the call to {@link uspoof_areConfusable} performs the + * confusability test; and the following line extracts the result out of the return value. For best performance, + * the instance should be created once (e.g., upon application startup), and the efficient + * {@link uspoof_areConfusable} method can be used at runtime. + * + *

+ * The type {@link LocalUSpoofCheckerPointer} is exposed for C++ programmers. It will automatically call + * {@link uspoof_close} when the object goes out of scope: + * + * \code{.cpp} + * UErrorCode status = U_ZERO_ERROR; + * LocalUSpoofCheckerPointer sc(uspoof_open(&status)); + * uspoof_setChecks(sc.getAlias(), USPOOF_CONFUSABLE, &status); + * // ... + * \endcode + * + * UTS 39 defines two strings to be confusable if they map to the same skeleton string. A skeleton can + * be thought of as a "hash code". {@link uspoof_getSkeleton} computes the skeleton for a particular string, so + * the following snippet is equivalent to the example above: + * + * \code{.c} + * UErrorCode status = U_ZERO_ERROR; + * UChar* str1 = (UChar*) u"Harvest"; + * UChar* str2 = (UChar*) u"\u0397arvest"; // with U+0397 GREEK CAPITAL LETTER ETA + * + * USpoofChecker* sc = uspoof_open(&status); + * uspoof_setChecks(sc, USPOOF_CONFUSABLE, &status); + * + * // Get skeleton 1 + * int32_t skel1Len = uspoof_getSkeleton(sc, 0, str1, -1, NULL, 0, &status); + * UChar* skel1 = (UChar*) malloc(++skel1Len * sizeof(UChar)); + * status = U_ZERO_ERROR; + * uspoof_getSkeleton(sc, 0, str1, -1, skel1, skel1Len, &status); + * + * // Get skeleton 2 + * int32_t skel2Len = uspoof_getSkeleton(sc, 0, str2, -1, NULL, 0, &status); + * UChar* skel2 = (UChar*) malloc(++skel2Len * sizeof(UChar)); + * status = U_ZERO_ERROR; + * uspoof_getSkeleton(sc, 0, str2, -1, skel2, skel2Len, &status); + * + * // Are the skeletons the same? + * UBool result = u_strcmp(skel1, skel2) == 0; + * // areConfusable: 1 (status: U_ZERO_ERROR) + * printf("areConfusable: %d (status: %s)\n", result, u_errorName(status)); + * uspoof_close(sc); + * free(skel1); + * free(skel2); + * \endcode + * + * If you need to check if a string is confusable with any string in a dictionary of many strings, rather than calling + * {@link uspoof_areConfusable} many times in a loop, {@link uspoof_getSkeleton} can be used instead, as shown below: + * + * \code{.c} + * UErrorCode status = U_ZERO_ERROR; + * #define DICTIONARY_LENGTH 2 + * UChar* dictionary[DICTIONARY_LENGTH] = { (UChar*) u"lorem", (UChar*) u"ipsum" }; + * UChar* skeletons[DICTIONARY_LENGTH]; + * UChar* str = (UChar*) u"1orern"; + * + * // Setup: + * USpoofChecker* sc = uspoof_open(&status); + * uspoof_setChecks(sc, USPOOF_CONFUSABLE, &status); + * for (size_t i=0; iNote: Since the Unicode confusables mapping table is frequently updated, confusable skeletons are not + * guaranteed to be the same between ICU releases. We therefore recommend that you always compute confusable skeletons + * at runtime and do not rely on creating a permanent, or difficult to update, database of skeletons. + * + *

Spoof Detection

+ * + * The following snippet shows a minimal example of using USpoofChecker to perform spoof detection on a + * string: + * + * \code{.c} + * UErrorCode status = U_ZERO_ERROR; + * UChar* str = (UChar*) u"p\u0430ypal"; // with U+0430 CYRILLIC SMALL LETTER A + * + * // Get the default set of allowable characters: + * USet* allowed = uset_openEmpty(); + * uset_addAll(allowed, uspoof_getRecommendedSet(&status)); + * uset_addAll(allowed, uspoof_getInclusionSet(&status)); + * + * USpoofChecker* sc = uspoof_open(&status); + * uspoof_setAllowedChars(sc, allowed, &status); + * uspoof_setRestrictionLevel(sc, USPOOF_MODERATELY_RESTRICTIVE); + * + * int32_t bitmask = uspoof_check(sc, str, -1, NULL, &status); + * UBool result = bitmask != 0; + * // fails checks: 1 (status: U_ZERO_ERROR) + * printf("fails checks: %d (status: %s)\n", result, u_errorName(status)); + * uspoof_close(sc); + * uset_close(allowed); + * \endcode + * + * As in the case for confusability checking, it is good practice to create one USpoofChecker instance at + * startup, and call the cheaper {@link uspoof_check} online. We specify the set of + * allowed characters to be those with type RECOMMENDED or INCLUSION, according to the recommendation in UTS 39. + * + * In addition to {@link uspoof_check}, the function {@link uspoof_checkUTF8} is exposed for UTF8-encoded char* strings, + * and {@link uspoof_checkUnicodeString} is exposed for C++ programmers. + * + * If the {@link USPOOF_AUX_INFO} check is enabled, a limited amount of information on why a string failed the checks + * is available in the returned bitmask. For complete information, use the {@link uspoof_check2} class of functions + * with a {@link USpoofCheckResult} parameter: + * + * \code{.c} + * UErrorCode status = U_ZERO_ERROR; + * UChar* str = (UChar*) u"p\u0430ypal"; // with U+0430 CYRILLIC SMALL LETTER A + * + * // Get the default set of allowable characters: + * USet* allowed = uset_openEmpty(); + * uset_addAll(allowed, uspoof_getRecommendedSet(&status)); + * uset_addAll(allowed, uspoof_getInclusionSet(&status)); + * + * USpoofChecker* sc = uspoof_open(&status); + * uspoof_setAllowedChars(sc, allowed, &status); + * uspoof_setRestrictionLevel(sc, USPOOF_MODERATELY_RESTRICTIVE); + * + * USpoofCheckResult* checkResult = uspoof_openCheckResult(&status); + * int32_t bitmask = uspoof_check2(sc, str, -1, checkResult, &status); + * + * int32_t failures1 = bitmask; + * int32_t failures2 = uspoof_getCheckResultChecks(checkResult, &status); + * assert(failures1 == failures2); + * // checks that failed: 0x00000010 (status: U_ZERO_ERROR) + * printf("checks that failed: %#010x (status: %s)\n", failures1, u_errorName(status)); + * + * // Cleanup: + * uspoof_close(sc); + * uset_close(allowed); + * uspoof_closeCheckResult(checkResult); + * \endcode + * + * C++ users can take advantage of a few syntactical conveniences. The following snippet is functionally + * equivalent to the one above: + * + * \code{.cpp} + * UErrorCode status = U_ZERO_ERROR; + * UnicodeString str((UChar*) u"p\u0430ypal"); // with U+0430 CYRILLIC SMALL LETTER A + * + * // Get the default set of allowable characters: + * UnicodeSet allowed; + * allowed.addAll(*uspoof_getRecommendedUnicodeSet(&status)); + * allowed.addAll(*uspoof_getInclusionUnicodeSet(&status)); + * + * LocalUSpoofCheckerPointer sc(uspoof_open(&status)); + * uspoof_setAllowedChars(sc.getAlias(), allowed.toUSet(), &status); + * uspoof_setRestrictionLevel(sc.getAlias(), USPOOF_MODERATELY_RESTRICTIVE); + * + * LocalUSpoofCheckResultPointer checkResult(uspoof_openCheckResult(&status)); + * int32_t bitmask = uspoof_check2UnicodeString(sc.getAlias(), str, checkResult.getAlias(), &status); + * + * int32_t failures1 = bitmask; + * int32_t failures2 = uspoof_getCheckResultChecks(checkResult.getAlias(), &status); + * assert(failures1 == failures2); + * // checks that failed: 0x00000010 (status: U_ZERO_ERROR) + * printf("checks that failed: %#010x (status: %s)\n", failures1, u_errorName(status)); + * + * // Explicit cleanup not necessary. + * \endcode + * + * The return value is a bitmask of the checks that failed. In this case, there was one check that failed: + * {@link USPOOF_RESTRICTION_LEVEL}, corresponding to the fifth bit (16). The possible checks are: + * + *
    + *
  • RESTRICTION_LEVEL: flags strings that violate the + * Restriction Level test as specified in UTS + * 39; in most cases, this means flagging strings that contain characters from multiple different scripts.
  • + *
  • INVISIBLE: flags strings that contain invisible characters, such as zero-width spaces, or character + * sequences that are likely not to display, such as multiple occurrences of the same non-spacing mark.
  • + *
  • CHAR_LIMIT: flags strings that contain characters outside of a specified set of acceptable + * characters. See {@link uspoof_setAllowedChars} and {@link uspoof_setAllowedLocales}.
  • + *
  • MIXED_NUMBERS: flags strings that contain digits from multiple different numbering systems.
  • + *
+ * + *

+ * These checks can be enabled independently of each other. For example, if you were interested in checking for only the + * INVISIBLE and MIXED_NUMBERS conditions, you could do: + * + * \code{.c} + * UErrorCode status = U_ZERO_ERROR; + * UChar* str = (UChar*) u"8\u09EA"; // 8 mixed with U+09EA BENGALI DIGIT FOUR + * + * USpoofChecker* sc = uspoof_open(&status); + * uspoof_setChecks(sc, USPOOF_INVISIBLE | USPOOF_MIXED_NUMBERS, &status); + * + * int32_t bitmask = uspoof_check2(sc, str, -1, NULL, &status); + * UBool result = bitmask != 0; + * // fails checks: 1 (status: U_ZERO_ERROR) + * printf("fails checks: %d (status: %s)\n", result, u_errorName(status)); + * uspoof_close(sc); + * \endcode + * + * Here is an example in C++ showing how to compute the restriction level of a string: + * + * \code{.cpp} + * UErrorCode status = U_ZERO_ERROR; + * UnicodeString str((UChar*) u"p\u0430ypal"); // with U+0430 CYRILLIC SMALL LETTER A + * + * // Get the default set of allowable characters: + * UnicodeSet allowed; + * allowed.addAll(*uspoof_getRecommendedUnicodeSet(&status)); + * allowed.addAll(*uspoof_getInclusionUnicodeSet(&status)); + * + * LocalUSpoofCheckerPointer sc(uspoof_open(&status)); + * uspoof_setAllowedChars(sc.getAlias(), allowed.toUSet(), &status); + * uspoof_setRestrictionLevel(sc.getAlias(), USPOOF_MODERATELY_RESTRICTIVE); + * uspoof_setChecks(sc.getAlias(), USPOOF_RESTRICTION_LEVEL | USPOOF_AUX_INFO, &status); + * + * LocalUSpoofCheckResultPointer checkResult(uspoof_openCheckResult(&status)); + * int32_t bitmask = uspoof_check2UnicodeString(sc.getAlias(), str, checkResult.getAlias(), &status); + * + * URestrictionLevel restrictionLevel = uspoof_getCheckResultRestrictionLevel(checkResult.getAlias(), &status); + * // Since USPOOF_AUX_INFO was enabled, the restriction level is also available in the upper bits of the bitmask: + * assert((restrictionLevel & bitmask) == restrictionLevel); + * // Restriction level: 0x50000000 (status: U_ZERO_ERROR) + * printf("Restriction level: %#010x (status: %s)\n", restrictionLevel, u_errorName(status)); + * \endcode + * + * The code '0x50000000' corresponds to the restriction level USPOOF_MINIMALLY_RESTRICTIVE. Since + * USPOOF_MINIMALLY_RESTRICTIVE is weaker than USPOOF_MODERATELY_RESTRICTIVE, the string fails the check. + * + * Note: The Restriction Level is the most powerful of the checks. The full logic is documented in + * UTS 39, but the basic idea is that strings + * are restricted to contain characters from only a single script, except that most scripts are allowed to have + * Latin characters interspersed. Although the default restriction level is HIGHLY_RESTRICTIVE, it is + * recommended that users set their restriction level to MODERATELY_RESTRICTIVE, which allows Latin mixed + * with all other scripts except Cyrillic, Greek, and Cherokee, with which it is often confusable. For more details on + * the levels, see UTS 39 or {@link URestrictionLevel}. The Restriction Level test is aware of the set of + * allowed characters set in {@link uspoof_setAllowedChars}. Note that characters which have script code + * COMMON or INHERITED, such as numbers and punctuation, are ignored when computing whether a string has multiple + * scripts. + * + *

Additional Information

+ * + * A USpoofChecker instance may be used repeatedly to perform checks on any number of identifiers. + * + * Thread Safety: The test functions for checking a single identifier, or for testing whether + * two identifiers are possible confusable, are thread safe. They may called concurrently, from multiple threads, + * using the same USpoofChecker instance. + * + * More generally, the standard ICU thread safety rules apply: functions that take a const USpoofChecker parameter are + * thread safe. Those that take a non-const USpoofChecker are not thread safe.. + * + * @stable ICU 4.6 + */ + +U_CDECL_BEGIN + +struct USpoofChecker; +/** + * @stable ICU 4.2 + */ +typedef struct USpoofChecker USpoofChecker; /**< typedef for C of USpoofChecker */ + +struct USpoofCheckResult; +/** + * @see uspoof_openCheckResult + * @stable ICU 58 + */ +typedef struct USpoofCheckResult USpoofCheckResult; + +/** + * Enum for the kinds of checks that USpoofChecker can perform. + * These enum values are used both to select the set of checks that + * will be performed, and to report results from the check function. + * + * @stable ICU 4.2 + */ +typedef enum USpoofChecks { + /** + * When performing the two-string {@link uspoof_areConfusable} test, this flag in the return value indicates + * that the two strings are visually confusable and that they are from the same script, according to UTS 39 section + * 4. + * + * @see uspoof_areConfusable + * @stable ICU 4.2 + */ + USPOOF_SINGLE_SCRIPT_CONFUSABLE = 1, + + /** + * When performing the two-string {@link uspoof_areConfusable} test, this flag in the return value indicates + * that the two strings are visually confusable and that they are not from the same script, according to UTS + * 39 section 4. + * + * @see uspoof_areConfusable + * @stable ICU 4.2 + */ + USPOOF_MIXED_SCRIPT_CONFUSABLE = 2, + + /** + * When performing the two-string {@link uspoof_areConfusable} test, this flag in the return value indicates + * that the two strings are visually confusable and that they are not from the same script but both of them are + * single-script strings, according to UTS 39 section 4. + * + * @see uspoof_areConfusable + * @stable ICU 4.2 + */ + USPOOF_WHOLE_SCRIPT_CONFUSABLE = 4, + + /** + * Enable this flag in {@link uspoof_setChecks} to turn on all types of confusables. You may set + * the checks to some subset of SINGLE_SCRIPT_CONFUSABLE, MIXED_SCRIPT_CONFUSABLE, or WHOLE_SCRIPT_CONFUSABLE to + * make {@link uspoof_areConfusable} return only those types of confusables. + * + * @see uspoof_areConfusable + * @see uspoof_getSkeleton + * @stable ICU 58 + */ + USPOOF_CONFUSABLE = USPOOF_SINGLE_SCRIPT_CONFUSABLE | USPOOF_MIXED_SCRIPT_CONFUSABLE | USPOOF_WHOLE_SCRIPT_CONFUSABLE, + + + /** + * Check that an identifier is no looser than the specified RestrictionLevel. + * The default if {@link uspoof_setRestrictionLevel} is not called is HIGHLY_RESTRICTIVE. + * + * If USPOOF_AUX_INFO is enabled the actual restriction level of the + * identifier being tested will also be returned by uspoof_check(). + * + * @see URestrictionLevel + * @see uspoof_setRestrictionLevel + * @see USPOOF_AUX_INFO + * + * @stable ICU 51 + */ + USPOOF_RESTRICTION_LEVEL = 16, + + + /** Check an identifier for the presence of invisible characters, + * such as zero-width spaces, or character sequences that are + * likely not to display, such as multiple occurrences of the same + * non-spacing mark. This check does not test the input string as a whole + * for conformance to any particular syntax for identifiers. + */ + USPOOF_INVISIBLE = 32, + + /** Check that an identifier contains only characters from a specified set + * of acceptable characters. See {@link uspoof_setAllowedChars} and + * {@link uspoof_setAllowedLocales}. Note that a string that fails this check + * will also fail the {@link USPOOF_RESTRICTION_LEVEL} check. + */ + USPOOF_CHAR_LIMIT = 64, + + /** + * Check that an identifier does not mix numbers from different numbering systems. + * For more information, see UTS 39 section 5.3. + * + * @stable ICU 51 + */ + USPOOF_MIXED_NUMBERS = 128, + +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + /** + * Check that an identifier does not have a combining character following a character in which that + * combining character would be hidden; for example 'i' followed by a U+0307 combining dot. + * + * More specifically, the following characters are forbidden from preceding a U+0307: + *
    + *
  • Those with the Soft_Dotted Unicode property (which includes 'i' and 'j')
  • + *
  • Latin lowercase letter 'l'
  • + *
  • Dotless 'i' and 'j' ('ı' and 'È·', U+0131 and U+0237)
  • + *
  • Any character whose confusable prototype ends with such a character + * (Soft_Dotted, 'l', 'ı', or 'È·')
  • + *
+ * In addition, combining characters are allowed between the above characters and U+0307 except those + * with combining class 0 or combining class "Above" (230, same class as U+0307). + * + * This list and the number of combing characters considered by this check may grow over time. + * + * @stable ICU 62 + */ + USPOOF_HIDDEN_OVERLAY = 256, +#endif // (NTDDI_VERSION >= NTDDI_WIN10_CO) + + /** + * Enable all spoof checks. + * + * @stable ICU 4.6 + */ + USPOOF_ALL_CHECKS = 0xFFFF, + + /** + * Enable the return of auxillary (non-error) information in the + * upper bits of the check results value. + * + * If this "check" is not enabled, the results of {@link uspoof_check} will be + * zero when an identifier passes all of the enabled checks. + * + * If this "check" is enabled, (uspoof_check() & {@link USPOOF_ALL_CHECKS}) will + * be zero when an identifier passes all checks. + * + * @stable ICU 51 + */ + USPOOF_AUX_INFO = 0x40000000 + + } USpoofChecks; + + + /** + * Constants from UAX #39 for use in {@link uspoof_setRestrictionLevel}, and + * for returned identifier restriction levels in check results. + * + * @stable ICU 51 + * + * @see uspoof_setRestrictionLevel + * @see uspoof_check + */ + typedef enum URestrictionLevel { + /** + * All characters in the string are in the identifier profile and all characters in the string are in the + * ASCII range. + * + * @stable ICU 51 + */ + USPOOF_ASCII = 0x10000000, + /** + * The string classifies as ASCII-Only, or all characters in the string are in the identifier profile and + * the string is single-script, according to the definition in UTS 39 section 5.1. + * + * @stable ICU 53 + */ + USPOOF_SINGLE_SCRIPT_RESTRICTIVE = 0x20000000, + /** + * The string classifies as Single Script, or all characters in the string are in the identifier profile and + * the string is covered by any of the following sets of scripts, according to the definition in UTS 39 + * section 5.1: + *
    + *
  • Latin + Han + Bopomofo (or equivalently: Latn + Hanb)
  • + *
  • Latin + Han + Hiragana + Katakana (or equivalently: Latn + Jpan)
  • + *
  • Latin + Han + Hangul (or equivalently: Latn +Kore)
  • + *
+ * This is the default restriction in ICU. + * + * @stable ICU 51 + */ + USPOOF_HIGHLY_RESTRICTIVE = 0x30000000, + /** + * The string classifies as Highly Restrictive, or all characters in the string are in the identifier profile + * and the string is covered by Latin and any one other Recommended or Aspirational script, except Cyrillic, + * Greek, and Cherokee. + * + * @stable ICU 51 + */ + USPOOF_MODERATELY_RESTRICTIVE = 0x40000000, + /** + * All characters in the string are in the identifier profile. Allow arbitrary mixtures of scripts. + * + * @stable ICU 51 + */ + USPOOF_MINIMALLY_RESTRICTIVE = 0x50000000, + /** + * Any valid identifiers, including characters outside of the Identifier Profile. + * + * @stable ICU 51 + */ + USPOOF_UNRESTRICTIVE = 0x60000000, + /** + * Mask for selecting the Restriction Level bits from the return value of {@link uspoof_check}. + * + * @stable ICU 53 + */ + USPOOF_RESTRICTION_LEVEL_MASK = 0x7F000000, + } URestrictionLevel; + +/** + * Create a Unicode Spoof Checker, configured to perform all + * checks except for USPOOF_LOCALE_LIMIT and USPOOF_CHAR_LIMIT. + * Note that additional checks may be added in the future, + * resulting in the changes to the default checking behavior. + * + * @param status The error code, set if this function encounters a problem. + * @return the newly created Spoof Checker + * @stable ICU 4.2 + */ +U_CAPI USpoofChecker * U_EXPORT2 +uspoof_open(UErrorCode *status); + + +/** + * Open a Spoof checker from its serialized form, stored in 32-bit-aligned memory. + * Inverse of uspoof_serialize(). + * The memory containing the serialized data must remain valid and unchanged + * as long as the spoof checker, or any cloned copies of the spoof checker, + * are in use. Ownership of the memory remains with the caller. + * The spoof checker (and any clones) must be closed prior to deleting the + * serialized data. + * + * @param data a pointer to 32-bit-aligned memory containing the serialized form of spoof data + * @param length the number of bytes available at data; + * can be more than necessary + * @param pActualLength receives the actual number of bytes at data taken up by the data; + * can be NULL + * @param pErrorCode ICU error code + * @return the spoof checker. + * + * @see uspoof_open + * @see uspoof_serialize + * @stable ICU 4.2 + */ +U_CAPI USpoofChecker * U_EXPORT2 +uspoof_openFromSerialized(const void *data, int32_t length, int32_t *pActualLength, + UErrorCode *pErrorCode); + +/** + * Open a Spoof Checker from the source form of the spoof data. + * The input corresponds to the Unicode data file confusables.txt + * as described in Unicode UAX #39. The syntax of the source data + * is as described in UAX #39 for this file, and the content of + * this file is acceptable input. + * + * The character encoding of the (char *) input text is UTF-8. + * + * @param confusables a pointer to the confusable characters definitions, + * as found in file confusables.txt from unicode.org. + * @param confusablesLen The length of the confusables text, or -1 if the + * input string is zero terminated. + * @param confusablesWholeScript + * Deprecated in ICU 58. No longer used. + * @param confusablesWholeScriptLen + * Deprecated in ICU 58. No longer used. + * @param errType In the event of an error in the input, indicates + * which of the input files contains the error. + * The value is one of USPOOF_SINGLE_SCRIPT_CONFUSABLE or + * USPOOF_WHOLE_SCRIPT_CONFUSABLE, or + * zero if no errors are found. + * @param pe In the event of an error in the input, receives the position + * in the input text (line, offset) of the error. + * @param status an in/out ICU UErrorCode. Among the possible errors is + * U_PARSE_ERROR, which is used to report syntax errors + * in the input. + * @return A spoof checker that uses the rules from the input files. + * @stable ICU 4.2 + */ +U_CAPI USpoofChecker * U_EXPORT2 +uspoof_openFromSource(const char *confusables, int32_t confusablesLen, + const char *confusablesWholeScript, int32_t confusablesWholeScriptLen, + int32_t *errType, UParseError *pe, UErrorCode *status); + + +/** + * Close a Spoof Checker, freeing any memory that was being held by + * its implementation. + * @stable ICU 4.2 + */ +U_CAPI void U_EXPORT2 +uspoof_close(USpoofChecker *sc); + +/** + * Clone a Spoof Checker. The clone will be set to perform the same checks + * as the original source. + * + * @param sc The source USpoofChecker + * @param status The error code, set if this function encounters a problem. + * @return + * @stable ICU 4.2 + */ +U_CAPI USpoofChecker * U_EXPORT2 +uspoof_clone(const USpoofChecker *sc, UErrorCode *status); + + +/** + * Specify the bitmask of checks that will be performed by {@link uspoof_check}. Calling this method + * overwrites any checks that may have already been enabled. By default, all checks are enabled. + * + * To enable specific checks and disable all others, + * OR together only the bit constants for the desired checks. + * For example, to fail strings containing characters outside of + * the set specified by {@link uspoof_setAllowedChars} and + * also strings that contain digits from mixed numbering systems: + * + *
+ * {@code
+ * uspoof_setChecks(USPOOF_CHAR_LIMIT | USPOOF_MIXED_NUMBERS);
+ * }
+ * 
+ * + * To disable specific checks and enable all others, + * start with ALL_CHECKS and "AND away" the not-desired checks. + * For example, if you are not planning to use the {@link uspoof_areConfusable} functionality, + * it is good practice to disable the CONFUSABLE check: + * + *
+ * {@code
+ * uspoof_setChecks(USPOOF_ALL_CHECKS & ~USPOOF_CONFUSABLE);
+ * }
+ * 
+ * + * Note that methods such as {@link uspoof_setAllowedChars}, {@link uspoof_setAllowedLocales}, and + * {@link uspoof_setRestrictionLevel} will enable certain checks when called. Those methods will OR the check they + * enable onto the existing bitmask specified by this method. For more details, see the documentation of those + * methods. + * + * @param sc The USpoofChecker + * @param checks The set of checks that this spoof checker will perform. + * The value is a bit set, obtained by OR-ing together + * values from enum USpoofChecks. + * @param status The error code, set if this function encounters a problem. + * @stable ICU 4.2 + * + */ +U_CAPI void U_EXPORT2 +uspoof_setChecks(USpoofChecker *sc, int32_t checks, UErrorCode *status); + +/** + * Get the set of checks that this Spoof Checker has been configured to perform. + * + * @param sc The USpoofChecker + * @param status The error code, set if this function encounters a problem. + * @return The set of checks that this spoof checker will perform. + * The value is a bit set, obtained by OR-ing together + * values from enum USpoofChecks. + * @stable ICU 4.2 + * + */ +U_CAPI int32_t U_EXPORT2 +uspoof_getChecks(const USpoofChecker *sc, UErrorCode *status); + +/** + * Set the loosest restriction level allowed for strings. The default if this is not called is + * {@link USPOOF_HIGHLY_RESTRICTIVE}. Calling this method enables the {@link USPOOF_RESTRICTION_LEVEL} and + * {@link USPOOF_MIXED_NUMBERS} checks, corresponding to Sections 5.1 and 5.2 of UTS 39. To customize which checks are + * to be performed by {@link uspoof_check}, see {@link uspoof_setChecks}. + * + * @param sc The USpoofChecker + * @param restrictionLevel The loosest restriction level allowed. + * @see URestrictionLevel + * @stable ICU 51 + */ +U_CAPI void U_EXPORT2 +uspoof_setRestrictionLevel(USpoofChecker *sc, URestrictionLevel restrictionLevel); + + +/** + * Get the Restriction Level that will be tested if the checks include {@link USPOOF_RESTRICTION_LEVEL}. + * + * @return The restriction level + * @see URestrictionLevel + * @stable ICU 51 + */ +U_CAPI URestrictionLevel U_EXPORT2 +uspoof_getRestrictionLevel(const USpoofChecker *sc); + +/** + * Limit characters that are acceptable in identifiers being checked to those + * normally used with the languages associated with the specified locales. + * Any previously specified list of locales is replaced by the new settings. + * + * A set of languages is determined from the locale(s), and + * from those a set of acceptable Unicode scripts is determined. + * Characters from this set of scripts, along with characters from + * the "common" and "inherited" Unicode Script categories + * will be permitted. + * + * Supplying an empty string removes all restrictions; + * characters from any script will be allowed. + * + * The {@link USPOOF_CHAR_LIMIT} test is automatically enabled for this + * USpoofChecker when calling this function with a non-empty list + * of locales. + * + * The Unicode Set of characters that will be allowed is accessible + * via the uspoof_getAllowedChars() function. uspoof_setAllowedLocales() + * will replace any previously applied set of allowed characters. + * + * Adjustments, such as additions or deletions of certain classes of characters, + * can be made to the result of uspoof_setAllowedLocales() by + * fetching the resulting set with uspoof_getAllowedChars(), + * manipulating it with the Unicode Set API, then resetting the + * spoof detectors limits with uspoof_setAllowedChars(). + * + * @param sc The USpoofChecker + * @param localesList A list list of locales, from which the language + * and associated script are extracted. The locales + * are comma-separated if there is more than one. + * White space may not appear within an individual locale, + * but is ignored otherwise. + * The locales are syntactically like those from the + * HTTP Accept-Language header. + * If the localesList is empty, no restrictions will be placed on + * the allowed characters. + * + * @param status The error code, set if this function encounters a problem. + * @stable ICU 4.2 + */ +U_CAPI void U_EXPORT2 +uspoof_setAllowedLocales(USpoofChecker *sc, const char *localesList, UErrorCode *status); + +/** + * Get a list of locales for the scripts that are acceptable in strings + * to be checked. If no limitations on scripts have been specified, + * an empty string will be returned. + * + * uspoof_setAllowedChars() will reset the list of allowed to be empty. + * + * The format of the returned list is the same as that supplied to + * uspoof_setAllowedLocales(), but returned list may not be identical + * to the originally specified string; the string may be reformatted, + * and information other than languages from + * the originally specified locales may be omitted. + * + * @param sc The USpoofChecker + * @param status The error code, set if this function encounters a problem. + * @return A string containing a list of locales corresponding + * to the acceptable scripts, formatted like an + * HTTP Accept Language value. + * + * @stable ICU 4.2 + */ +U_CAPI const char * U_EXPORT2 +uspoof_getAllowedLocales(USpoofChecker *sc, UErrorCode *status); + + +/** + * Limit the acceptable characters to those specified by a Unicode Set. + * Any previously specified character limit is + * is replaced by the new settings. This includes limits on + * characters that were set with the uspoof_setAllowedLocales() function. + * + * The USPOOF_CHAR_LIMIT test is automatically enabled for this + * USpoofChecker by this function. + * + * @param sc The USpoofChecker + * @param chars A Unicode Set containing the list of + * characters that are permitted. Ownership of the set + * remains with the caller. The incoming set is cloned by + * this function, so there are no restrictions on modifying + * or deleting the USet after calling this function. + * @param status The error code, set if this function encounters a problem. + * @stable ICU 4.2 + */ +U_CAPI void U_EXPORT2 +uspoof_setAllowedChars(USpoofChecker *sc, const USet *chars, UErrorCode *status); + + +/** + * Get a USet for the characters permitted in an identifier. + * This corresponds to the limits imposed by the Set Allowed Characters + * functions. Limitations imposed by other checks will not be + * reflected in the set returned by this function. + * + * The returned set will be frozen, meaning that it cannot be modified + * by the caller. + * + * Ownership of the returned set remains with the Spoof Detector. The + * returned set will become invalid if the spoof detector is closed, + * or if a new set of allowed characters is specified. + * + * + * @param sc The USpoofChecker + * @param status The error code, set if this function encounters a problem. + * @return A USet containing the characters that are permitted by + * the USPOOF_CHAR_LIMIT test. + * @stable ICU 4.2 + */ +U_CAPI const USet * U_EXPORT2 +uspoof_getAllowedChars(const USpoofChecker *sc, UErrorCode *status); + + +/** + * Check the specified string for possible security issues. + * The text to be checked will typically be an identifier of some sort. + * The set of checks to be performed is specified with uspoof_setChecks(). + * + * \note + * Consider using the newer API, {@link uspoof_check2}, instead. + * The newer API exposes additional information from the check procedure + * and is otherwise identical to this method. + * + * @param sc The USpoofChecker + * @param id The identifier to be checked for possible security issues, + * in UTF-16 format. + * @param length the length of the string to be checked, expressed in + * 16 bit UTF-16 code units, or -1 if the string is + * zero terminated. + * @param position Deprecated in ICU 51. Always returns zero. + * Originally, an out parameter for the index of the first + * string position that failed a check. + * This parameter may be NULL. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * Spoofing or security issues detected with the input string are + * not reported here, but through the function's return value. + * @return An integer value with bits set for any potential security + * or spoofing issues detected. The bits are defined by + * enum USpoofChecks. (returned_value & USPOOF_ALL_CHECKS) + * will be zero if the input string passes all of the + * enabled checks. + * @see uspoof_check2 + * @stable ICU 4.2 + */ +U_CAPI int32_t U_EXPORT2 +uspoof_check(const USpoofChecker *sc, + const UChar *id, int32_t length, + int32_t *position, + UErrorCode *status); + + +/** + * Check the specified string for possible security issues. + * The text to be checked will typically be an identifier of some sort. + * The set of checks to be performed is specified with uspoof_setChecks(). + * + * \note + * Consider using the newer API, {@link uspoof_check2UTF8}, instead. + * The newer API exposes additional information from the check procedure + * and is otherwise identical to this method. + * + * @param sc The USpoofChecker + * @param id A identifier to be checked for possible security issues, in UTF8 format. + * @param length the length of the string to be checked, or -1 if the string is + * zero terminated. + * @param position Deprecated in ICU 51. Always returns zero. + * Originally, an out parameter for the index of the first + * string position that failed a check. + * This parameter may be NULL. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * Spoofing or security issues detected with the input string are + * not reported here, but through the function's return value. + * If the input contains invalid UTF-8 sequences, + * a status of U_INVALID_CHAR_FOUND will be returned. + * @return An integer value with bits set for any potential security + * or spoofing issues detected. The bits are defined by + * enum USpoofChecks. (returned_value & USPOOF_ALL_CHECKS) + * will be zero if the input string passes all of the + * enabled checks. + * @see uspoof_check2UTF8 + * @stable ICU 4.2 + */ +U_CAPI int32_t U_EXPORT2 +uspoof_checkUTF8(const USpoofChecker *sc, + const char *id, int32_t length, + int32_t *position, + UErrorCode *status); + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +/** + * Check the specified string for possible security issues. + * The text to be checked will typically be an identifier of some sort. + * The set of checks to be performed is specified with uspoof_setChecks(). + * + * @param sc The USpoofChecker + * @param id The identifier to be checked for possible security issues, + * in UTF-16 format. + * @param length the length of the string to be checked, or -1 if the string is + * zero terminated. + * @param checkResult An instance of USpoofCheckResult to be filled with + * details about the identifier. Can be NULL. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * Spoofing or security issues detected with the input string are + * not reported here, but through the function's return value. + * @return An integer value with bits set for any potential security + * or spoofing issues detected. The bits are defined by + * enum USpoofChecks. (returned_value & USPOOF_ALL_CHECKS) + * will be zero if the input string passes all of the + * enabled checks. Any information in this bitmask will be + * consistent with the information saved in the optional + * checkResult parameter. + * @see uspoof_openCheckResult + * @see uspoof_check2UTF8 + * @see uspoof_check2UnicodeString + * @stable ICU 58 + */ +U_CAPI int32_t U_EXPORT2 +uspoof_check2(const USpoofChecker *sc, + const UChar* id, int32_t length, + USpoofCheckResult* checkResult, + UErrorCode *status); + +/** + * Check the specified string for possible security issues. + * The text to be checked will typically be an identifier of some sort. + * The set of checks to be performed is specified with uspoof_setChecks(). + * + * This version of {@link uspoof_check} accepts a USpoofCheckResult, which + * returns additional information about the identifier. For more + * information, see {@link uspoof_openCheckResult}. + * + * @param sc The USpoofChecker + * @param id A identifier to be checked for possible security issues, in UTF8 format. + * @param length the length of the string to be checked, or -1 if the string is + * zero terminated. + * @param checkResult An instance of USpoofCheckResult to be filled with + * details about the identifier. Can be NULL. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * Spoofing or security issues detected with the input string are + * not reported here, but through the function's return value. + * @return An integer value with bits set for any potential security + * or spoofing issues detected. The bits are defined by + * enum USpoofChecks. (returned_value & USPOOF_ALL_CHECKS) + * will be zero if the input string passes all of the + * enabled checks. Any information in this bitmask will be + * consistent with the information saved in the optional + * checkResult parameter. + * @see uspoof_openCheckResult + * @see uspoof_check2 + * @see uspoof_check2UnicodeString + * @stable ICU 58 + */ +U_CAPI int32_t U_EXPORT2 +uspoof_check2UTF8(const USpoofChecker *sc, + const char *id, int32_t length, + USpoofCheckResult* checkResult, + UErrorCode *status); + +/** + * Create a USpoofCheckResult, used by the {@link uspoof_check2} class of functions to return + * information about the identifier. Information includes: + *
    + *
  • A bitmask of the checks that failed
  • + *
  • The identifier's restriction level (UTS 39 section 5.2)
  • + *
  • The set of numerics in the string (UTS 39 section 5.3)
  • + *
+ * The data held in a USpoofCheckResult is cleared whenever it is passed into a new call + * of {@link uspoof_check2}. + * + * @param status The error code, set if this function encounters a problem. + * @return the newly created USpoofCheckResult + * @see uspoof_check2 + * @see uspoof_check2UTF8 + * @see uspoof_check2UnicodeString + * @stable ICU 58 + */ +U_CAPI USpoofCheckResult* U_EXPORT2 +uspoof_openCheckResult(UErrorCode *status); + +/** + * Close a USpoofCheckResult, freeing any memory that was being held by + * its implementation. + * + * @param checkResult The instance of USpoofCheckResult to close + * @stable ICU 58 + */ +U_CAPI void U_EXPORT2 +uspoof_closeCheckResult(USpoofCheckResult *checkResult); + +/** + * Indicates which of the spoof check(s) have failed. The value is a bitwise OR of the constants for the tests + * in question: USPOOF_RESTRICTION_LEVEL, USPOOF_CHAR_LIMIT, and so on. + * + * @param checkResult The instance of USpoofCheckResult created by {@link uspoof_openCheckResult} + * @param status The error code, set if an error occurred. + * @return An integer value with bits set for any potential security + * or spoofing issues detected. The bits are defined by + * enum USpoofChecks. (returned_value & USPOOF_ALL_CHECKS) + * will be zero if the input string passes all of the + * enabled checks. + * @see uspoof_setChecks + * @stable ICU 58 + */ +U_CAPI int32_t U_EXPORT2 +uspoof_getCheckResultChecks(const USpoofCheckResult *checkResult, UErrorCode *status); + +/** + * Gets the restriction level that the text meets, if the USPOOF_RESTRICTION_LEVEL check + * was enabled; otherwise, undefined. + * + * @param checkResult The instance of USpoofCheckResult created by {@link uspoof_openCheckResult} + * @param status The error code, set if an error occurred. + * @return The restriction level contained in the USpoofCheckResult + * @see uspoof_setRestrictionLevel + * @stable ICU 58 + */ +U_CAPI URestrictionLevel U_EXPORT2 +uspoof_getCheckResultRestrictionLevel(const USpoofCheckResult *checkResult, UErrorCode *status); + +/** + * Gets the set of numerics found in the string, if the USPOOF_MIXED_NUMBERS check was enabled; + * otherwise, undefined. The set will contain the zero digit from each decimal number system found + * in the input string. Ownership of the returned USet remains with the USpoofCheckResult. + * The USet will be free'd when {@link uspoof_closeCheckResult} is called. + * + * @param checkResult The instance of USpoofCheckResult created by {@link uspoof_openCheckResult} + * @return The set of numerics contained in the USpoofCheckResult + * @param status The error code, set if an error occurred. + * @stable ICU 58 + */ +U_CAPI const USet* U_EXPORT2 +uspoof_getCheckResultNumerics(const USpoofCheckResult *checkResult, UErrorCode *status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +/** + * Check the whether two specified strings are visually confusable. + * + * If the strings are confusable, the return value will be nonzero, as long as + * {@link USPOOF_CONFUSABLE} was enabled in uspoof_setChecks(). + * + * The bits in the return value correspond to flags for each of the classes of + * confusables applicable to the two input strings. According to UTS 39 + * section 4, the possible flags are: + * + *
    + *
  • {@link USPOOF_SINGLE_SCRIPT_CONFUSABLE}
  • + *
  • {@link USPOOF_MIXED_SCRIPT_CONFUSABLE}
  • + *
  • {@link USPOOF_WHOLE_SCRIPT_CONFUSABLE}
  • + *
+ * + * If one or more of the above flags were not listed in uspoof_setChecks(), this + * function will never report that class of confusable. The check + * {@link USPOOF_CONFUSABLE} enables all three flags. + * + * + * @param sc The USpoofChecker + * @param id1 The first of the two identifiers to be compared for + * confusability. The strings are in UTF-16 format. + * @param length1 the length of the first identifier, expressed in + * 16 bit UTF-16 code units, or -1 if the string is + * nul terminated. + * @param id2 The second of the two identifiers to be compared for + * confusability. The identifiers are in UTF-16 format. + * @param length2 The length of the second identifiers, expressed in + * 16 bit UTF-16 code units, or -1 if the string is + * nul terminated. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * Confusability of the identifiers is not reported here, + * but through this function's return value. + * @return An integer value with bit(s) set corresponding to + * the type of confusability found, as defined by + * enum USpoofChecks. Zero is returned if the identifiers + * are not confusable. + * + * @stable ICU 4.2 + */ +U_CAPI int32_t U_EXPORT2 +uspoof_areConfusable(const USpoofChecker *sc, + const UChar *id1, int32_t length1, + const UChar *id2, int32_t length2, + UErrorCode *status); + + + +/** + * A version of {@link uspoof_areConfusable} accepting strings in UTF-8 format. + * + * @param sc The USpoofChecker + * @param id1 The first of the two identifiers to be compared for + * confusability. The strings are in UTF-8 format. + * @param length1 the length of the first identifiers, in bytes, or -1 + * if the string is nul terminated. + * @param id2 The second of the two identifiers to be compared for + * confusability. The strings are in UTF-8 format. + * @param length2 The length of the second string in bytes, or -1 + * if the string is nul terminated. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * Confusability of the strings is not reported here, + * but through this function's return value. + * @return An integer value with bit(s) set corresponding to + * the type of confusability found, as defined by + * enum USpoofChecks. Zero is returned if the strings + * are not confusable. + * + * @stable ICU 4.2 + * + * @see uspoof_areConfusable + */ +U_CAPI int32_t U_EXPORT2 +uspoof_areConfusableUTF8(const USpoofChecker *sc, + const char *id1, int32_t length1, + const char *id2, int32_t length2, + UErrorCode *status); + + + + +/** + * Get the "skeleton" for an identifier. + * Skeletons are a transformation of the input identifier; + * Two identifiers are confusable if their skeletons are identical. + * See Unicode UAX #39 for additional information. + * + * Using skeletons directly makes it possible to quickly check + * whether an identifier is confusable with any of some large + * set of existing identifiers, by creating an efficiently + * searchable collection of the skeletons. + * + * @param sc The USpoofChecker + * @param type Deprecated in ICU 58. You may pass any number. + * Originally, controlled which of the Unicode confusable data + * tables to use. + * @param id The input identifier whose skeleton will be computed. + * @param length The length of the input identifier, expressed in 16 bit + * UTF-16 code units, or -1 if the string is zero terminated. + * @param dest The output buffer, to receive the skeleton string. + * @param destCapacity The length of the output buffer, in 16 bit units. + * The destCapacity may be zero, in which case the function will + * return the actual length of the skeleton. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * @return The length of the skeleton string. The returned length + * is always that of the complete skeleton, even when the + * supplied buffer is too small (or of zero length) + * + * @stable ICU 4.2 + * @see uspoof_areConfusable + */ +U_CAPI int32_t U_EXPORT2 +uspoof_getSkeleton(const USpoofChecker *sc, + uint32_t type, + const UChar *id, int32_t length, + UChar *dest, int32_t destCapacity, + UErrorCode *status); + +/** + * Get the "skeleton" for an identifier. + * Skeletons are a transformation of the input identifier; + * Two identifiers are confusable if their skeletons are identical. + * See Unicode UAX #39 for additional information. + * + * Using skeletons directly makes it possible to quickly check + * whether an identifier is confusable with any of some large + * set of existing identifiers, by creating an efficiently + * searchable collection of the skeletons. + * + * @param sc The USpoofChecker + * @param type Deprecated in ICU 58. You may pass any number. + * Originally, controlled which of the Unicode confusable data + * tables to use. + * @param id The UTF-8 format identifier whose skeleton will be computed. + * @param length The length of the input string, in bytes, + * or -1 if the string is zero terminated. + * @param dest The output buffer, to receive the skeleton string. + * @param destCapacity The length of the output buffer, in bytes. + * The destCapacity may be zero, in which case the function will + * return the actual length of the skeleton. + * @param status The error code, set if an error occurred while attempting to + * perform the check. Possible Errors include U_INVALID_CHAR_FOUND + * for invalid UTF-8 sequences, and + * U_BUFFER_OVERFLOW_ERROR if the destination buffer is too small + * to hold the complete skeleton. + * @return The length of the skeleton string, in bytes. The returned length + * is always that of the complete skeleton, even when the + * supplied buffer is too small (or of zero length) + * + * @stable ICU 4.2 + */ +U_CAPI int32_t U_EXPORT2 +uspoof_getSkeletonUTF8(const USpoofChecker *sc, + uint32_t type, + const char *id, int32_t length, + char *dest, int32_t destCapacity, + UErrorCode *status); + +/** + * Get the set of Candidate Characters for Inclusion in Identifiers, as defined + * in http://unicode.org/Public/security/latest/xidmodifications.txt + * and documented in http://www.unicode.org/reports/tr39/, Unicode Security Mechanisms. + * + * The returned set is frozen. Ownership of the set remains with the ICU library; it must not + * be deleted by the caller. + * + * @param status The error code, set if a problem occurs while creating the set. + * + * @stable ICU 51 + */ +U_CAPI const USet * U_EXPORT2 +uspoof_getInclusionSet(UErrorCode *status); + +/** + * Get the set of characters from Recommended Scripts for Inclusion in Identifiers, as defined + * in http://unicode.org/Public/security/latest/xidmodifications.txt + * and documented in http://www.unicode.org/reports/tr39/, Unicode Security Mechanisms. + * + * The returned set is frozen. Ownership of the set remains with the ICU library; it must not + * be deleted by the caller. + * + * @param status The error code, set if a problem occurs while creating the set. + * + * @stable ICU 51 + */ +U_CAPI const USet * U_EXPORT2 +uspoof_getRecommendedSet(UErrorCode *status); + +/** + * Serialize the data for a spoof detector into a chunk of memory. + * The flattened spoof detection tables can later be used to efficiently + * instantiate a new Spoof Detector. + * + * The serialized spoof checker includes only the data compiled from the + * Unicode data tables by uspoof_openFromSource(); it does not include + * include any other state or configuration that may have been set. + * + * @param sc the Spoof Detector whose data is to be serialized. + * @param data a pointer to 32-bit-aligned memory to be filled with the data, + * can be NULL if capacity==0 + * @param capacity the number of bytes available at data, + * or 0 for preflighting + * @param status an in/out ICU UErrorCode; possible errors include: + * - U_BUFFER_OVERFLOW_ERROR if the data storage block is too small for serialization + * - U_ILLEGAL_ARGUMENT_ERROR the data or capacity parameters are bad + * @return the number of bytes written or needed for the spoof data + * + * @see utrie2_openFromSerialized() + * @stable ICU 4.2 + */ +U_CAPI int32_t U_EXPORT2 +uspoof_serialize(USpoofChecker *sc, + void *data, int32_t capacity, + UErrorCode *status); + +U_CDECL_END + + +#endif /* UCONFIG_NO_NORMALIZATION */ + +#endif /* USPOOF_H */ + +// utmscale.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* Copyright (C) 2004 - 2008, International Business Machines Corporation and +* others. All Rights Reserved. +******************************************************************************* +*/ + +#ifndef UTMSCALE_H +#define UTMSCALE_H + + +#if !UCONFIG_NO_FORMATTING + +/** + * \file + * \brief C API: Universal Time Scale + * + * There are quite a few different conventions for binary datetime, depending on different + * platforms and protocols. Some of these have severe drawbacks. For example, people using + * Unix time (seconds since Jan 1, 1970) think that they are safe until near the year 2038. + * But cases can and do arise where arithmetic manipulations causes serious problems. Consider + * the computation of the average of two datetimes, for example: if one calculates them with + * averageTime = (time1 + time2)/2, there will be overflow even with dates + * around the present. Moreover, even if these problems don't occur, there is the issue of + * conversion back and forth between different systems. + * + *

+ * Binary datetimes differ in a number of ways: the datatype, the unit, + * and the epoch (origin). We'll refer to these as time scales. For example: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Table 1: Binary Time Scales
SourceDatatypeUnitEpoch
UDTS_JAVA_TIMEint64_tmillisecondsJan 1, 1970
UDTS_UNIX_TIMEint32_t or int64_tsecondsJan 1, 1970
UDTS_ICU4C_TIMEdoublemillisecondsJan 1, 1970
UDTS_WINDOWS_FILE_TIMEint64_tticks (100 nanoseconds)Jan 1, 1601
UDTS_DOTNET_DATE_TIMEint64_tticks (100 nanoseconds)Jan 1, 0001
UDTS_MAC_OLD_TIMEint32_t or int64_tsecondsJan 1, 1904
UDTS_MAC_TIMEdoublesecondsJan 1, 2001
UDTS_EXCEL_TIME?daysDec 31, 1899
UDTS_DB2_TIME?daysDec 31, 1899
UDTS_UNIX_MICROSECONDS_TIMEint64_tmicrosecondsJan 1, 1970
+ * + *

+ * All of the epochs start at 00:00 am (the earliest possible time on the day in question), + * and are assumed to be UTC. + * + *

+ * The ranges for different datatypes are given in the following table (all values in years). + * The range of years includes the entire range expressible with positive and negative + * values of the datatype. The range of years for double is the range that would be allowed + * without losing precision to the corresponding unit. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Unitsint64_tdoubleint32_t
1 sec5.84542x1011285,420,920.94136.10
1 millisecond584,542,046.09285,420.920.14
1 microsecond584,542.05285.420.00
100 nanoseconds (tick)58,454.2028.540.00
1 nanosecond584.54204610.28540.00
+ * + *

+ * These functions implement a universal time scale which can be used as a 'pivot', + * and provide conversion functions to and from all other major time scales. + * This datetimes to be converted to the pivot time, safely manipulated, + * and converted back to any other datetime time scale. + * + *

+ * So what to use for this pivot? Java time has plenty of range, but cannot represent + * .NET System.DateTime values without severe loss of precision. ICU4C time addresses this by using a + * double that is otherwise equivalent to the Java time. However, there are disadvantages + * with doubles. They provide for much more graceful degradation in arithmetic operations. + * But they only have 53 bits of accuracy, which means that they will lose precision when + * converting back and forth to ticks. What would really be nice would be a + * long double (80 bits -- 64 bit mantissa), but that is not supported on most systems. + * + *

+ * The Unix extended time uses a structure with two components: time in seconds and a + * fractional field (microseconds). However, this is clumsy, slow, and + * prone to error (you always have to keep track of overflow and underflow in the + * fractional field). BigDecimal would allow for arbitrary precision and arbitrary range, + * but we do not want to use this as the normal type, because it is slow and does not + * have a fixed size. + * + *

+ * Because of these issues, we ended up concluding that the .NET framework's + * System.DateTime would be the best pivot. However, we use the full range + * allowed by the datatype, allowing for datetimes back to 29,000 BC and up to 29,000 AD. + * This time scale is very fine grained, does not lose precision, and covers a range that + * will meet almost all requirements. It will not handle the range that Java times do, + * but frankly, being able to handle dates before 29,000 BC or after 29,000 AD is of very limited interest. + * + */ + +/** + * UDateTimeScale values are used to specify the time scale used for + * conversion into or out if the universal time scale. + * + * @stable ICU 3.2 + */ +typedef enum UDateTimeScale { + /** + * Used in the JDK. Data is a Java long (int64_t). Value + * is milliseconds since January 1, 1970. + * + * @stable ICU 3.2 + */ + UDTS_JAVA_TIME = 0, + + /** + * Used on Unix systems. Data is int32_t or int64_t. Value + * is seconds since January 1, 1970. + * + * @stable ICU 3.2 + */ + UDTS_UNIX_TIME, + + /** + * Used in IUC4C. Data is a double. Value + * is milliseconds since January 1, 1970. + * + * @stable ICU 3.2 + */ + UDTS_ICU4C_TIME, + + /** + * Used in Windows for file times. Data is an int64_t. Value + * is ticks (1 tick == 100 nanoseconds) since January 1, 1601. + * + * @stable ICU 3.2 + */ + UDTS_WINDOWS_FILE_TIME, + + /** + * Used in the .NET framework's System.DateTime structure. Data is an int64_t. Value + * is ticks (1 tick == 100 nanoseconds) since January 1, 0001. + * + * @stable ICU 3.2 + */ + UDTS_DOTNET_DATE_TIME, + + /** + * Used in older Macintosh systems. Data is int32_t or int64_t. Value + * is seconds since January 1, 1904. + * + * @stable ICU 3.2 + */ + UDTS_MAC_OLD_TIME, + + /** + * Used in newer Macintosh systems. Data is a double. Value + * is seconds since January 1, 2001. + * + * @stable ICU 3.2 + */ + UDTS_MAC_TIME, + + /** + * Used in Excel. Data is an ?unknown?. Value + * is days since December 31, 1899. + * + * @stable ICU 3.2 + */ + UDTS_EXCEL_TIME, + + /** + * Used in DB2. Data is an ?unknown?. Value + * is days since December 31, 1899. + * + * @stable ICU 3.2 + */ + UDTS_DB2_TIME, + + /** + * Data is a long. Value is microseconds since January 1, 1970. + * Similar to Unix time (linear value from 1970) and struct timeval + * (microseconds resolution). + * + * @stable ICU 3.8 + */ + UDTS_UNIX_MICROSECONDS_TIME, + + +} UDateTimeScale; + +/** + * UTimeScaleValue values are used to specify the time scale values + * to utmscale_getTimeScaleValue. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ +typedef enum UTimeScaleValue { + /** + * The constant used to select the units vale + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_UNITS_VALUE = 0, + + /** + * The constant used to select the epoch offset value + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_EPOCH_OFFSET_VALUE=1, + + /** + * The constant used to select the minimum from value + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_FROM_MIN_VALUE=2, + + /** + * The constant used to select the maximum from value + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_FROM_MAX_VALUE=3, + + /** + * The constant used to select the minimum to value + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_TO_MIN_VALUE=4, + + /** + * The constant used to select the maximum to value + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_TO_MAX_VALUE=5, + + + +} UTimeScaleValue; + +/** + * Get a value associated with a particular time scale. + * + * @param timeScale The time scale + * @param value A constant representing the value to get + * @param status The status code. Set to U_ILLEGAL_ARGUMENT_ERROR if arguments are invalid. + * @return - the value. + * + * @stable ICU 3.2 + */ +U_CAPI int64_t U_EXPORT2 + utmscale_getTimeScaleValue(UDateTimeScale timeScale, UTimeScaleValue value, UErrorCode *status); + +/* Conversion to 'universal time scale' */ + +/** + * Convert a int64_t datetime from the given time scale to the universal time scale. + * + * @param otherTime The int64_t datetime + * @param timeScale The time scale to convert from + * @param status The status code. Set to U_ILLEGAL_ARGUMENT_ERROR if the conversion is out of range. + * + * @return The datetime converted to the universal time scale + * + * @stable ICU 3.2 + */ +U_CAPI int64_t U_EXPORT2 + utmscale_fromInt64(int64_t otherTime, UDateTimeScale timeScale, UErrorCode *status); + +/* Conversion from 'universal time scale' */ + +/** + * Convert a datetime from the universal time scale to a int64_t in the given time scale. + * + * @param universalTime The datetime in the universal time scale + * @param timeScale The time scale to convert to + * @param status The status code. Set to U_ILLEGAL_ARGUMENT_ERROR if the conversion is out of range. + * + * @return The datetime converted to the given time scale + * + * @stable ICU 3.2 + */ +U_CAPI int64_t U_EXPORT2 + utmscale_toInt64(int64_t universalTime, UDateTimeScale timeScale, UErrorCode *status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + + +// utrans.h +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/* +******************************************************************************* +* Copyright (C) 1997-2011,2014-2015 International Business Machines +* Corporation and others. All Rights Reserved. +******************************************************************************* +* Date Name Description +* 06/21/00 aliu Creation. +******************************************************************************* +*/ + +#ifndef UTRANS_H +#define UTRANS_H + + +#if !UCONFIG_NO_TRANSLITERATION + + + +/******************************************************************** + * General Notes + ******************************************************************** + */ +/** + * \file + * \brief C API: Transliterator + * + *

Transliteration

+ * The data structures and functions described in this header provide + * transliteration services. Transliteration services are implemented + * as C++ classes. The comments and documentation in this header + * assume the reader is familiar with the C++ headers translit.h and + * associated documentation. + * + * A significant but incomplete subset of the C++ transliteration + * services are available to C code through this header. In order to + * access more complex transliteration services, refer to the C++ + * headers and documentation. + * + * There are two sets of functions for working with transliterator IDs: + * + * An old, deprecated set uses char * IDs, which works for true and pure + * identifiers that these APIs were designed for, + * for example "Cyrillic-Latin". + * It does not work when the ID contains filters ("[:Script=Cyrl:]") + * or even a complete set of rules because then the ID string contains more + * than just "invariant" characters (see utypes.h). + * + * A new set of functions replaces the old ones and uses UChar * IDs, + * paralleling the UnicodeString IDs in the C++ API. (New in ICU 2.8.) + */ + +/******************************************************************** + * Data Structures + ********************************************************************/ + +/** + * An opaque transliterator for use in C. Open with utrans_openxxx() + * and close with utrans_close() when done. Equivalent to the C++ class + * Transliterator and its subclasses. + * @see Transliterator + * @stable ICU 2.0 + */ +typedef void* UTransliterator; + +/** + * Direction constant indicating the direction in a transliterator, + * e.g., the forward or reverse rules of a RuleBasedTransliterator. + * Specified when a transliterator is opened. An "A-B" transliterator + * transliterates A to B when operating in the forward direction, and + * B to A when operating in the reverse direction. + * @stable ICU 2.0 + */ +typedef enum UTransDirection { + + /** + * UTRANS_FORWARD means from <source> to <target> for a + * transliterator with ID <source>-<target>. For a transliterator + * opened using a rule, it means forward direction rules, e.g., + * "A > B". + */ + UTRANS_FORWARD, + + /** + * UTRANS_REVERSE means from <target> to <source> for a + * transliterator with ID <source>-<target>. For a transliterator + * opened using a rule, it means reverse direction rules, e.g., + * "A < B". + */ + UTRANS_REVERSE + +} UTransDirection; + +/** + * Position structure for utrans_transIncremental() incremental + * transliteration. This structure defines two substrings of the text + * being transliterated. The first region, [contextStart, + * contextLimit), defines what characters the transliterator will read + * as context. The second region, [start, limit), defines what + * characters will actually be transliterated. The second region + * should be a subset of the first. + * + *

After a transliteration operation, some of the indices in this + * structure will be modified. See the field descriptions for + * details. + * + *

contextStart <= start <= limit <= contextLimit + * + *

Note: All index values in this structure must be at code point + * boundaries. That is, none of them may occur between two code units + * of a surrogate pair. If any index does split a surrogate pair, + * results are unspecified. + * + * @stable ICU 2.0 + */ +typedef struct UTransPosition { + + /** + * Beginning index, inclusive, of the context to be considered for + * a transliteration operation. The transliterator will ignore + * anything before this index. INPUT/OUTPUT parameter: This parameter + * is updated by a transliteration operation to reflect the maximum + * amount of antecontext needed by a transliterator. + * @stable ICU 2.4 + */ + int32_t contextStart; + + /** + * Ending index, exclusive, of the context to be considered for a + * transliteration operation. The transliterator will ignore + * anything at or after this index. INPUT/OUTPUT parameter: This + * parameter is updated to reflect changes in the length of the + * text, but points to the same logical position in the text. + * @stable ICU 2.4 + */ + int32_t contextLimit; + + /** + * Beginning index, inclusive, of the text to be transliterated. + * INPUT/OUTPUT parameter: This parameter is advanced past + * characters that have already been transliterated by a + * transliteration operation. + * @stable ICU 2.4 + */ + int32_t start; + + /** + * Ending index, exclusive, of the text to be transliterated. + * INPUT/OUTPUT parameter: This parameter is updated to reflect + * changes in the length of the text, but points to the same + * logical position in the text. + * @stable ICU 2.4 + */ + int32_t limit; + +} UTransPosition; + +/******************************************************************** + * General API + ********************************************************************/ + +/** + * Open a custom transliterator, given a custom rules string + * OR + * a system transliterator, given its ID. + * Any non-NULL result from this function should later be closed with + * utrans_close(). + * + * @param id a valid transliterator ID + * @param idLength the length of the ID string, or -1 if NUL-terminated + * @param dir the desired direction + * @param rules the transliterator rules. See the C++ header rbt.h for + * rules syntax. If NULL then a system transliterator matching + * the ID is returned. + * @param rulesLength the length of the rules, or -1 if the rules + * are NUL-terminated. + * @param parseError a pointer to a UParseError struct to receive the details + * of any parsing errors. This parameter may be NULL if no + * parsing error details are desired. + * @param pErrorCode a pointer to the UErrorCode + * @return a transliterator pointer that may be passed to other + * utrans_xxx() functions, or NULL if the open call fails. + * @stable ICU 2.8 + */ +U_CAPI UTransliterator* U_EXPORT2 +utrans_openU(const UChar *id, + int32_t idLength, + UTransDirection dir, + const UChar *rules, + int32_t rulesLength, + UParseError *parseError, + UErrorCode *pErrorCode); + +/** + * Open an inverse of an existing transliterator. For this to work, + * the inverse must be registered with the system. For example, if + * the Transliterator "A-B" is opened, and then its inverse is opened, + * the result is the Transliterator "B-A", if such a transliterator is + * registered with the system. Otherwise the result is NULL and a + * failing UErrorCode is set. Any non-NULL result from this function + * should later be closed with utrans_close(). + * + * @param trans the transliterator to open the inverse of. + * @param status a pointer to the UErrorCode + * @return a pointer to a newly-opened transliterator that is the + * inverse of trans, or NULL if the open call fails. + * @stable ICU 2.0 + */ +U_CAPI UTransliterator* U_EXPORT2 +utrans_openInverse(const UTransliterator* trans, + UErrorCode* status); + +/** + * Create a copy of a transliterator. Any non-NULL result from this + * function should later be closed with utrans_close(). + * + * @param trans the transliterator to be copied. + * @param status a pointer to the UErrorCode + * @return a transliterator pointer that may be passed to other + * utrans_xxx() functions, or NULL if the clone call fails. + * @stable ICU 2.0 + */ +U_CAPI UTransliterator* U_EXPORT2 +utrans_clone(const UTransliterator* trans, + UErrorCode* status); + +/** + * Close a transliterator. Any non-NULL pointer returned by + * utrans_openXxx() or utrans_clone() should eventually be closed. + * @param trans the transliterator to be closed. + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +utrans_close(UTransliterator* trans); + + +/** + * Return the programmatic identifier for this transliterator. + * If this identifier is passed to utrans_openU(), it will open + * a transliterator equivalent to this one, if the ID has been + * registered. + * + * @param trans the transliterator to return the ID of. + * @param resultLength pointer to an output variable receiving the length + * of the ID string; can be NULL + * @return the NUL-terminated ID string. This pointer remains + * valid until utrans_close() is called on this transliterator. + * + * @stable ICU 2.8 + */ +U_CAPI const UChar * U_EXPORT2 +utrans_getUnicodeID(const UTransliterator *trans, + int32_t *resultLength); + +/** + * Register an open transliterator with the system. When + * utrans_open() is called with an ID string that is equal to that + * returned by utrans_getID(adoptedTrans,...), then + * utrans_clone(adoptedTrans,...) is returned. + * + *

NOTE: After this call the system owns the adoptedTrans and will + * close it. The user must not call utrans_close() on adoptedTrans. + * + * @param adoptedTrans a transliterator, typically the result of + * utrans_openRules(), to be registered with the system. + * @param status a pointer to the UErrorCode + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +utrans_register(UTransliterator* adoptedTrans, + UErrorCode* status); + +/** + * Unregister a transliterator from the system. After this call the + * system will no longer recognize the given ID when passed to + * utrans_open(). If the ID is invalid then nothing is done. + * + * @param id an ID to unregister + * @param idLength the length of id, or -1 if id is zero-terminated + * @stable ICU 2.8 + */ +U_CAPI void U_EXPORT2 +utrans_unregisterID(const UChar* id, int32_t idLength); + +/** + * Set the filter used by a transliterator. A filter can be used to + * make the transliterator pass certain characters through untouched. + * The filter is expressed using a UnicodeSet pattern. If the + * filterPattern is NULL or the empty string, then the transliterator + * will be reset to use no filter. + * + * @param trans the transliterator + * @param filterPattern a pattern string, in the form accepted by + * UnicodeSet, specifying which characters to apply the + * transliteration to. May be NULL or the empty string to indicate no + * filter. + * @param filterPatternLen the length of filterPattern, or -1 if + * filterPattern is zero-terminated + * @param status a pointer to the UErrorCode + * @see UnicodeSet + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +utrans_setFilter(UTransliterator* trans, + const UChar* filterPattern, + int32_t filterPatternLen, + UErrorCode* status); + +/** + * Return the number of system transliterators. + * It is recommended to use utrans_openIDs() instead. + * + * @return the number of system transliterators. + * @stable ICU 2.0 + */ +U_CAPI int32_t U_EXPORT2 +utrans_countAvailableIDs(void); + +/** + * Return a UEnumeration for the available transliterators. + * + * @param pErrorCode Pointer to the UErrorCode in/out parameter. + * @return UEnumeration for the available transliterators. + * Close with uenum_close(). + * + * @stable ICU 2.8 + */ +U_CAPI UEnumeration * U_EXPORT2 +utrans_openIDs(UErrorCode *pErrorCode); + +/******************************************************************** + * Transliteration API + ********************************************************************/ + +/** + * Transliterate a segment of a UReplaceable string. The string is + * passed in as a UReplaceable pointer rep and a UReplaceableCallbacks + * function pointer struct repFunc. Functions in the repFunc struct + * will be called in order to modify the rep string. + * + * @param trans the transliterator + * @param rep a pointer to the string. This will be passed to the + * repFunc functions. + * @param repFunc a set of function pointers that will be used to + * modify the string pointed to by rep. + * @param start the beginning index, inclusive; 0 <= start <= + * limit. + * @param limit pointer to the ending index, exclusive; start <= + * limit <= repFunc->length(rep). Upon return, *limit will + * contain the new limit index. The text previously occupying + * [start, limit) has been transliterated, possibly to a + * string of a different length, at [start, + * new-limit), where new-limit + * is the return value. + * @param status a pointer to the UErrorCode + * @stable ICU 2.0 + */ +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +U_CAPI void U_EXPORT2 +utrans_trans(const UTransliterator* trans, + UReplaceable* rep, + const UReplaceableCallbacks* repFunc, + int32_t start, + int32_t* limit, + UErrorCode* status); +#elif (NTDDI_VERSION >= NTDDI_WIN10_RS3) +U_CAPI void U_EXPORT2 +utrans_trans(const UTransliterator* trans, + UReplaceable* rep, + UReplaceableCallbacks* repFunc, + int32_t start, + int32_t* limit, + UErrorCode* status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +/** + * Transliterate the portion of the UReplaceable text buffer that can + * be transliterated unambiguously. This method is typically called + * after new text has been inserted, e.g. as a result of a keyboard + * event. The transliterator will try to transliterate characters of + * rep between index.cursor and + * index.limit. Characters before + * index.cursor will not be changed. + * + *

Upon return, values in index will be updated. + * index.start will be advanced to the first + * character that future calls to this method will read. + * index.cursor and index.limit will + * be adjusted to delimit the range of text that future calls to + * this method may change. + * + *

Typical usage of this method begins with an initial call + * with index.start and index.limit + * set to indicate the portion of text to be + * transliterated, and index.cursor == index.start. + * Thereafter, index can be used without + * modification in future calls, provided that all changes to + * text are made via this method. + * + *

This method assumes that future calls may be made that will + * insert new text into the buffer. As a result, it only performs + * unambiguous transliterations. After the last call to this method, + * there may be untransliterated text that is waiting for more input + * to resolve an ambiguity. In order to perform these pending + * transliterations, clients should call utrans_trans() with a start + * of index.start and a limit of index.end after the last call to this + * method has been made. + * + * @param trans the transliterator + * @param rep a pointer to the string. This will be passed to the + * repFunc functions. + * @param repFunc a set of function pointers that will be used to + * modify the string pointed to by rep. + * @param pos a struct containing the start and limit indices of the + * text to be read and the text to be transliterated + * @param status a pointer to the UErrorCode + * @stable ICU 2.0 + */ +#if (NTDDI_VERSION >= NTDDI_WIN10_RS5) +U_CAPI void U_EXPORT2 +utrans_transIncremental(const UTransliterator* trans, + UReplaceable* rep, + const UReplaceableCallbacks* repFunc, + UTransPosition* pos, + UErrorCode* status); +#elif (NTDDI_VERSION >= NTDDI_WIN10_RS3) +U_CAPI void U_EXPORT2 +utrans_transIncremental(const UTransliterator* trans, + UReplaceable* rep, + UReplaceableCallbacks* repFunc, + UTransPosition* pos, + UErrorCode* status); +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +/** + * Transliterate a segment of a UChar* string. The string is passed + * in in a UChar* buffer. The string is modified in place. If the + * result is longer than textCapacity, it is truncated. The actual + * length of the result is returned in *textLength, if textLength is + * non-NULL. *textLength may be greater than textCapacity, but only + * textCapacity UChars will be written to *text, including the zero + * terminator. + * + * @param trans the transliterator + * @param text a pointer to a buffer containing the text to be + * transliterated on input and the result text on output. + * @param textLength a pointer to the length of the string in text. + * If the length is -1 then the string is assumed to be + * zero-terminated. Upon return, the new length is stored in + * *textLength. If textLength is NULL then the string is assumed to + * be zero-terminated. + * @param textCapacity the length of the text buffer + * @param start the beginning index, inclusive; 0 <= start <= + * limit. + * @param limit pointer to the ending index, exclusive; start <= + * limit <= repFunc->length(rep). Upon return, *limit will + * contain the new limit index. The text previously occupying + * [start, limit) has been transliterated, possibly to a + * string of a different length, at [start, + * new-limit), where new-limit + * is the return value. + * @param status a pointer to the UErrorCode + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +utrans_transUChars(const UTransliterator* trans, + UChar* text, + int32_t* textLength, + int32_t textCapacity, + int32_t start, + int32_t* limit, + UErrorCode* status); + +/** + * Transliterate the portion of the UChar* text buffer that can be + * transliterated unambiguously. See utrans_transIncremental(). The + * string is passed in in a UChar* buffer. The string is modified in + * place. If the result is longer than textCapacity, it is truncated. + * The actual length of the result is returned in *textLength, if + * textLength is non-NULL. *textLength may be greater than + * textCapacity, but only textCapacity UChars will be written to + * *text, including the zero terminator. See utrans_transIncremental() + * for usage details. + * + * @param trans the transliterator + * @param text a pointer to a buffer containing the text to be + * transliterated on input and the result text on output. + * @param textLength a pointer to the length of the string in text. + * If the length is -1 then the string is assumed to be + * zero-terminated. Upon return, the new length is stored in + * *textLength. If textLength is NULL then the string is assumed to + * be zero-terminated. + * @param textCapacity the length of the text buffer + * @param pos a struct containing the start and limit indices of the + * text to be read and the text to be transliterated + * @param status a pointer to the UErrorCode + * @see utrans_transIncremental + * @stable ICU 2.0 + */ +U_CAPI void U_EXPORT2 +utrans_transIncrementalUChars(const UTransliterator* trans, + UChar* text, + int32_t* textLength, + int32_t textCapacity, + UTransPosition* pos, + UErrorCode* status); + +/** + * Create a rule string that can be passed to utrans_openU to recreate this + * transliterator. + * + * @param trans The transliterator + * @param escapeUnprintable if true then convert unprintable characters to their + * hex escape representations, \\uxxxx or \\Uxxxxxxxx. + * Unprintable characters are those other than + * U+000A, U+0020..U+007E. + * @param result A pointer to a buffer to receive the rules. + * @param resultLength The maximum size of result. + * @param status A pointer to the UErrorCode. In case of error status, the + * contents of result are undefined. + * @return int32_t The length of the rule string (may be greater than resultLength, + * in which case an error is returned). + * @stable ICU 53 + */ +U_CAPI int32_t U_EXPORT2 +utrans_toRules( const UTransliterator* trans, + UBool escapeUnprintable, + UChar* result, int32_t resultLength, + UErrorCode* status); + +/** + * Returns the set of all characters that may be modified in the input text by + * this UTransliterator, optionally ignoring the transliterator's current filter. + * @param trans The transliterator. + * @param ignoreFilter If false, the returned set incorporates the + * UTransliterator's current filter; if the filter is changed, + * the return value of this function will change. If true, the + * returned set ignores the effect of the UTransliterator's + * current filter. + * @param fillIn Pointer to a USet object to receive the modifiable characters + * set. Previous contents of fillIn are lost. If fillIn is + * NULL, then a new USet is created and returned. The caller + * owns the result and must dispose of it by calling uset_close. + * @param status A pointer to the UErrorCode. + * @return USet* Either fillIn, or if fillIn is NULL, a pointer to a + * newly-allocated USet that the user must close. In case of + * error, NULL is returned. + * @stable ICU 53 + */ +U_CAPI USet* U_EXPORT2 +utrans_getSourceSet(const UTransliterator* trans, + UBool ignoreFilter, + USet* fillIn, + UErrorCode* status); + +/* deprecated API ----------------------------------------------------------- */ + + +#endif /* #if !UCONFIG_NO_TRANSLITERATION */ + +#endif + +// vtzone.h +// No supported content + +#endif /* NTDDI_WIN10_RS3 */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/icucommon.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icucommon.h new file mode 100644 index 0000000000000000000000000000000000000000..d9f0b11cd25032645a1a2ea1099705bb103c7218 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icucommon.h @@ -0,0 +1,25867 @@ +// icucommon.h is autogenerated and merged from the ICU header files. +// Code unused or not supported in the Windows ICU SDK has been removed. + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#ifndef SUPPRESS_LEGACY_ICU_HEADER_WARNINGS + +// For more information on the ICU breaking change to use char16_t by default, please see the page here: +// https://go.microsoft.com/fwlink/?linkid=851033 + +#pragma message("The wchar_t versions of the ICU headers are no longer being updated, please use the char16_t based header icu.h instead; see https://go.microsoft.com/fwlink/?linkid=851033 for more info. To suppress this warning, define the macro SUPPRESS_LEGACY_ICU_HEADER_WARNINGS before including this header.") + +#endif /* SUPPRESS_LEGACY_ICU_HEADER_WARNINGS */ + +// Default Windows SDK ICU configuration options. +// Alternate selections are not supported in the Windows SDK. +#define U_DISABLE_RENAMING 1 +#define U_SHOW_CPLUSPLUS_API 0 +#define U_DEFAULT_SHOW_DRAFT 0 +#define U_HIDE_DRAFT_API 1 +#define U_HIDE_DEPRECATED_API 1 +#define U_HIDE_OBSOLETE_API 1 +#define U_HIDE_INTERNAL_API 1 +#define U_HAVE_STD_STRING 0 +#define U_NO_DEFAULT_INCLUDE_UTF_HEADERS 1 + +// appendable.h +// No supported content + +// brkiter.h +// No supported content + +// bytestream.h +// No supported content + +// bytestrie.h +// No supported content + +// bytestriebuilder.h +// No supported content + +// chariter.h +// No supported content + +// dbbi.h +// No supported content + +// docmain.h +// No supported content + +// dtintrv.h +// No supported content + +// enumset.h +// No supported content + +// errorcode.h +// No supported content + +// filteredbrk.h +// No supported content + +// icuplug.h +// No supported content + +// idna.h +// No supported content + +// listformatter.h +// No supported content + +// localpointer.h +// No supported content + +// locdspnm.h +// No supported content + +// locid.h +// No supported content + +// normalizer2.h +// No supported content + +// normlzr.h +// No supported content + +// parsepos.h +// No supported content + +// rbbi.h +// No supported content + +// rep.h +// No supported content + +// resbund.h +// No supported content + +// schriter.h +// No supported content + +// simpleformatter.h +// No supported content + +// std_string.h +// No supported content + +// strenum.h +// No supported content + +// stringpiece.h +// No supported content + +// symtable.h +// No supported content + +// ucharstrie.h +// No supported content + +// ucharstriebuilder.h +// No supported content + +// uchriter.h +// No supported content + +// uconfig.h +/* +********************************************************************** +* Copyright (C) 2002-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* file name: uconfig.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2002sep19 +* created by: Markus W. Scherer +*/ + +#ifndef __UCONFIG_H__ +#define __UCONFIG_H__ + + +/*! + * \file + * \brief User-configurable settings + * + * Miscellaneous switches: + * + * A number of macros affect a variety of minor aspects of ICU. + * Most of them used to be defined elsewhere (e.g., in utypes.h or platform.h) + * and moved here to make them easier to find. + * + * Switches for excluding parts of ICU library code modules: + * + * Changing these macros allows building partial, smaller libraries for special purposes. + * By default, all modules are built. + * The switches are fairly coarse, controlling large modules. + * Basic services cannot be turned off. + * + * Building with any of these options does not guarantee that the + * ICU build process will completely work. It is recommended that + * the ICU libraries and data be built using the normal build. + * At that time you should remove the data used by those services. + * After building the ICU data library, you should rebuild the ICU + * libraries with these switches customized to your needs. + * + * @stable ICU 2.4 + */ + +/** + * If this switch is defined, ICU will attempt to load a header file named "uconfig_local.h" + * prior to determining default settings for uconfig variables. + * + * @internal ICU 4.0 + */ +#if defined(UCONFIG_USE_LOCAL) +#include "uconfig_local.h" +#endif + +/** + * \def U_DEBUG + * Determines whether to include debugging code. + * Automatically set on Windows, but most compilers do not have + * related predefined macros. + * @internal + */ +#ifdef U_DEBUG + /* Use the predefined value. */ +#elif defined(_DEBUG) + /* + * _DEBUG is defined by Visual Studio debug compilation. + * Do *not* test for its NDEBUG macro: It is an orthogonal macro + * which disables assert(). + */ +# define U_DEBUG 1 +# else +# define U_DEBUG 0 +#endif + +/** + * Determines wheter to enable auto cleanup of libraries. + * @internal + */ +#ifndef UCLN_NO_AUTO_CLEANUP +#define UCLN_NO_AUTO_CLEANUP 1 +#endif + +/** + * \def U_DISABLE_RENAMING + * Determines whether to disable renaming or not. + * @internal + */ +#ifndef U_DISABLE_RENAMING +#endif + +/** + * \def U_NO_DEFAULT_INCLUDE_UTF_HEADERS + * Determines whether utypes.h includes utf.h, utf8.h, utf16.h and utf_old.h. + * utypes.h includes those headers if this macro is defined to 0. + * Otherwise, each those headers must be included explicitly when using one of their macros. + * Defaults to 0 for backward compatibility, except inside ICU. + * @stable ICU 49 + */ + +/** + * \def U_OVERRIDE_CXX_ALLOCATION + * Determines whether to override new and delete. + * ICU is normally built such that all of its C++ classes, via their UMemory base, + * override operators new and delete to use its internal, customizable, + * non-exception-throwing memory allocation functions. (Default value 1 for this macro.) + * + * This is especially important when the application and its libraries use multiple heaps. + * For example, on Windows, this allows the ICU DLL to be used by + * applications that statically link the C Runtime library. + * + * @stable ICU 2.2 + */ +#ifndef U_OVERRIDE_CXX_ALLOCATION +#define U_OVERRIDE_CXX_ALLOCATION 1 +#endif + +/** + * \def U_ENABLE_TRACING + * Determines whether to enable tracing. + * @internal + */ +#ifndef U_ENABLE_TRACING +#define U_ENABLE_TRACING 0 +#endif + +/** + * \def UCONFIG_ENABLE_PLUGINS + * Determines whether to enable ICU plugins. + * @internal + */ +#ifndef UCONFIG_ENABLE_PLUGINS +#define UCONFIG_ENABLE_PLUGINS 0 +#endif + +/** + * \def U_ENABLE_DYLOAD + * Whether to enable Dynamic loading in ICU. + * @internal + */ +#ifndef U_ENABLE_DYLOAD +#define U_ENABLE_DYLOAD 1 +#endif + +/** + * \def U_CHECK_DYLOAD + * Whether to test Dynamic loading as an OS capability. + * @internal + */ +#ifndef U_CHECK_DYLOAD +#define U_CHECK_DYLOAD 1 +#endif + +/** + * \def U_DEFAULT_SHOW_DRAFT + * Do we allow ICU users to use the draft APIs by default? + * @internal + */ +#ifndef U_DEFAULT_SHOW_DRAFT +#define U_DEFAULT_SHOW_DRAFT 1 +#endif + +/*===========================================================================*/ +/* Custom icu entry point renaming */ +/*===========================================================================*/ + +/** + * \def U_HAVE_LIB_SUFFIX + * 1 if a custom library suffix is set. + * @internal + */ +#ifdef U_HAVE_LIB_SUFFIX + /* Use the predefined value. */ +#elif defined(U_LIB_SUFFIX_C_NAME) +# define U_HAVE_LIB_SUFFIX 1 +#endif + +/** + * \def U_LIB_SUFFIX_C_NAME_STRING + * Defines the library suffix as a string with C syntax. + * @internal + */ +#ifdef U_LIB_SUFFIX_C_NAME_STRING + /* Use the predefined value. */ +#elif defined(U_LIB_SUFFIX_C_NAME) +# define CONVERT_TO_STRING(s) #s +# define U_LIB_SUFFIX_C_NAME_STRING CONVERT_TO_STRING(U_LIB_SUFFIX_C_NAME) +#else +# define U_LIB_SUFFIX_C_NAME_STRING "" +#endif + +/* common/i18n library switches --------------------------------------------- */ + +/** + * \def UCONFIG_ONLY_COLLATION + * This switch turns off modules that are not needed for collation. + * + * It does not turn off legacy conversion because that is necessary + * for ICU to work on EBCDIC platforms (for the default converter). + * If you want "only collation" and do not build for EBCDIC, + * then you can define UCONFIG_NO_CONVERSION or UCONFIG_NO_LEGACY_CONVERSION to 1 as well. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_ONLY_COLLATION +# define UCONFIG_ONLY_COLLATION 0 +#endif + +#if UCONFIG_ONLY_COLLATION + /* common library */ +# define UCONFIG_NO_BREAK_ITERATION 1 +# define UCONFIG_NO_IDNA 1 + + /* i18n library */ +# if UCONFIG_NO_COLLATION +# error Contradictory collation switches in uconfig.h. +# endif +# define UCONFIG_NO_FORMATTING 1 +# define UCONFIG_NO_TRANSLITERATION 1 +# define UCONFIG_NO_REGULAR_EXPRESSIONS 1 +#endif + +/* common library switches -------------------------------------------------- */ + +/** + * \def UCONFIG_NO_FILE_IO + * This switch turns off all file access in the common library + * where file access is only used for data loading. + * ICU data must then be provided in the form of a data DLL (or with an + * equivalent way to link to the data residing in an executable, + * as in building a combined library with both the common library's code and + * the data), or via udata_setCommonData(). + * Application data must be provided via udata_setAppData() or by using + * "open" functions that take pointers to data, for example ucol_openBinary(). + * + * File access is not used at all in the i18n library. + * + * File access cannot be turned off for the icuio library or for the ICU + * test suites and ICU tools. + * + * @stable ICU 3.6 + */ +#ifndef UCONFIG_NO_FILE_IO +# define UCONFIG_NO_FILE_IO 0 +#endif + +#if UCONFIG_NO_FILE_IO && defined(U_TIMEZONE_FILES_DIR) +# error Contradictory file io switches in uconfig.h. +#endif + +/** + * \def UCONFIG_NO_CONVERSION + * ICU will not completely build with this switch turned on. + * This switch turns off all converters. + * + * You may want to use this together with U_CHARSET_IS_UTF8 defined to 1 + * in utypes.h if char* strings in your environment are always in UTF-8. + * + * @stable ICU 3.2 + * @see U_CHARSET_IS_UTF8 + */ +#ifndef UCONFIG_NO_CONVERSION +# define UCONFIG_NO_CONVERSION 0 +#endif + +#if UCONFIG_NO_CONVERSION +# define UCONFIG_NO_LEGACY_CONVERSION 1 +#endif + +/** + * \def UCONFIG_ONLY_HTML_CONVERSION + * This switch turns off all of the converters NOT listed in + * the HTML encoding standard: + * http://www.w3.org/TR/encoding/#names-and-labels + * + * This is not possible on EBCDIC platforms + * because they need ibm-37 or ibm-1047 default converters. + * + * @stable ICU 55 + */ +#ifndef UCONFIG_ONLY_HTML_CONVERSION +# define UCONFIG_ONLY_HTML_CONVERSION 0 +#endif + +/** + * \def UCONFIG_NO_LEGACY_CONVERSION + * This switch turns off all converters except for + * - Unicode charsets (UTF-7/8/16/32, CESU-8, SCSU, BOCU-1) + * - US-ASCII + * - ISO-8859-1 + * + * Turning off legacy conversion is not possible on EBCDIC platforms + * because they need ibm-37 or ibm-1047 default converters. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_LEGACY_CONVERSION +# define UCONFIG_NO_LEGACY_CONVERSION 0 +#endif + +/** + * \def UCONFIG_NO_NORMALIZATION + * This switch turns off normalization. + * It implies turning off several other services as well, for example + * collation and IDNA. + * + * @stable ICU 2.6 + */ +#ifndef UCONFIG_NO_NORMALIZATION +# define UCONFIG_NO_NORMALIZATION 0 +#elif UCONFIG_NO_NORMALIZATION + /* common library */ + /* ICU 50 CJK dictionary BreakIterator uses normalization */ +# define UCONFIG_NO_BREAK_ITERATION 1 + /* IDNA (UTS #46) is implemented via normalization */ +# define UCONFIG_NO_IDNA 1 + + /* i18n library */ +# if UCONFIG_ONLY_COLLATION +# error Contradictory collation switches in uconfig.h. +# endif +# define UCONFIG_NO_COLLATION 1 +# define UCONFIG_NO_TRANSLITERATION 1 +#endif + +/** + * \def UCONFIG_NO_BREAK_ITERATION + * This switch turns off break iteration. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_BREAK_ITERATION +# define UCONFIG_NO_BREAK_ITERATION 0 +#endif + +/** + * \def UCONFIG_NO_IDNA + * This switch turns off IDNA. + * + * @stable ICU 2.6 + */ +#ifndef UCONFIG_NO_IDNA +# define UCONFIG_NO_IDNA 0 +#endif + +/** + * \def UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE + * Determines the default UMessagePatternApostropheMode. + * See the documentation for that enum. + * + * @stable ICU 4.8 + */ +#ifndef UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE +# define UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE UMSGPAT_APOS_DOUBLE_OPTIONAL +#endif + +/* i18n library switches ---------------------------------------------------- */ + +/** + * \def UCONFIG_NO_COLLATION + * This switch turns off collation and collation-based string search. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_COLLATION +# define UCONFIG_NO_COLLATION 0 +#endif + +/** + * \def UCONFIG_NO_FORMATTING + * This switch turns off formatting and calendar/timezone services. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_FORMATTING +# define UCONFIG_NO_FORMATTING 0 +#endif + +/** + * \def UCONFIG_NO_TRANSLITERATION + * This switch turns off transliteration. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_TRANSLITERATION +# define UCONFIG_NO_TRANSLITERATION 0 +#endif + +/** + * \def UCONFIG_NO_REGULAR_EXPRESSIONS + * This switch turns off regular expressions. + * + * @stable ICU 2.4 + */ +#ifndef UCONFIG_NO_REGULAR_EXPRESSIONS +# define UCONFIG_NO_REGULAR_EXPRESSIONS 0 +#endif + +/** + * \def UCONFIG_NO_SERVICE + * This switch turns off service registration. + * + * @stable ICU 3.2 + */ +#ifndef UCONFIG_NO_SERVICE +# define UCONFIG_NO_SERVICE 0 +#endif + +/** + * \def UCONFIG_HAVE_PARSEALLINPUT + * This switch turns on the "parse all input" attribute. Binary incompatible. + * + * @internal + */ +#ifndef UCONFIG_HAVE_PARSEALLINPUT +# define UCONFIG_HAVE_PARSEALLINPUT 1 +#endif + + +/** + * \def UCONFIG_FORMAT_FASTPATHS_49 + * This switch turns on other formatting fastpaths. Binary incompatible in object DecimalFormat and DecimalFormatSymbols + * + * @internal + */ +#ifndef UCONFIG_FORMAT_FASTPATHS_49 +# define UCONFIG_FORMAT_FASTPATHS_49 1 +#endif + +/** + * \def UCONFIG_NO_FILTERED_BREAK_ITERATION + * This switch turns off filtered break iteration code. + * + * @internal + */ +#ifndef UCONFIG_NO_FILTERED_BREAK_ITERATION +# define UCONFIG_NO_FILTERED_BREAK_ITERATION 0 +#endif + +#endif + +// udata.h +// No supported content + +// unifilt.h +// No supported content + +// unifunct.h +// No supported content + +// unimatch.h +// No supported content + +// uniset.h +// No supported content + +// unorm.h +// No supported content + +// urename.h +// No supported content + +// usetiter.h +// No supported content + +// utf32.h +// No supported content + +// utf_old.h +// No supported content + +// uvernum.h +// No supported content + +// platform.h +/* +****************************************************************************** +* +* Copyright (C) 1997-2016, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* +* FILE NAME : platform.h +* +* Date Name Description +* 05/13/98 nos Creation (content moved here from ptypes.h). +* 03/02/99 stephen Added AS400 support. +* 03/30/99 stephen Added Linux support. +* 04/13/99 stephen Reworked for autoconf. +****************************************************************************** +*/ + +#ifndef _PLATFORM_H +#define _PLATFORM_H + + +/** + * \file + * \brief Basic types for the platform. + * + * This file used to be generated by autoconf/configure. + * Starting with ICU 49, platform.h is a normal source file, + * to simplify cross-compiling and working with non-autoconf/make build systems. + * + * When a value in this file does not work on a platform, then please + * try to derive it from the U_PLATFORM value + * (for which we might need a new value constant in rare cases) + * and/or from other macros that are predefined by the compiler + * or defined in standard (POSIX or platform or compiler) headers. + * + * As a temporary workaround, you can add an explicit #define for some macros + * before it is first tested, or add an equivalent -D macro definition + * to the compiler's command line. + * + * Note: Some compilers provide ways to show the predefined macros. + * For example, with gcc you can compile an empty .c file and have the compiler + * print the predefined macros with + * \code + * gcc -E -dM -x c /dev/null | sort + * \endcode + * (You can provide an actual empty .c file rather than /dev/null. + * -x c++ is for C++.) + */ + +/** + * Define some things so that they can be documented. + * @internal + */ +#ifdef U_IN_DOXYGEN +/* + * Problem: "platform.h:335: warning: documentation for unknown define U_HAVE_STD_STRING found." means that U_HAVE_STD_STRING is not documented. + * Solution: #define any defines for non @internal API here, so that they are visible in the docs. If you just set PREDEFINED in Doxyfile.in, they won't be documented. + */ + +/* None for now. */ +#endif + +/** + * \def U_PLATFORM + * The U_PLATFORM macro defines the platform we're on. + * + * We used to define one different, value-less macro per platform. + * That made it hard to know the set of relevant platforms and macros, + * and hard to deal with variants of platforms. + * + * Starting with ICU 49, we define platforms as numeric macros, + * with ranges of values for related platforms and their variants. + * The U_PLATFORM macro is set to one of these values. + * + * Historical note from the Solaris Wikipedia article: + * AT&T and Sun collaborated on a project to merge the most popular Unix variants + * on the market at that time: BSD, System V, and Xenix. + * This became Unix System V Release 4 (SVR4). + * + * @internal + */ + +/** Unknown platform. @internal */ +#define U_PF_UNKNOWN 0 +/** Windows @internal */ +#define U_PF_WINDOWS 1000 +/** MinGW. Windows, calls to Win32 API, but using GNU gcc and binutils. @internal */ +#define U_PF_MINGW 1800 +/** + * Cygwin. Windows, calls to cygwin1.dll for Posix functions, + * using MSVC or GNU gcc and binutils. + * @internal + */ +#define U_PF_CYGWIN 1900 +/* Reserve 2000 for U_PF_UNIX? */ +/** HP-UX is based on UNIX System V. @internal */ +#define U_PF_HPUX 2100 +/** Solaris is a Unix operating system based on SVR4. @internal */ +#define U_PF_SOLARIS 2600 +/** BSD is a UNIX operating system derivative. @internal */ +#define U_PF_BSD 3000 +/** AIX is based on UNIX System V Releases and 4.3 BSD. @internal */ +#define U_PF_AIX 3100 +/** IRIX is based on UNIX System V with BSD extensions. @internal */ +#define U_PF_IRIX 3200 +/** + * Darwin is a POSIX-compliant operating system, composed of code developed by Apple, + * as well as code derived from NeXTSTEP, BSD, and other projects, + * built around the Mach kernel. + * Darwin forms the core set of components upon which Mac OS X, Apple TV, and iOS are based. + * (Original description modified from WikiPedia.) + * @internal + */ +#define U_PF_DARWIN 3500 +/** iPhone OS (iOS) is a derivative of Mac OS X. @internal */ +#define U_PF_IPHONE 3550 +/** QNX is a commercial Unix-like real-time operating system related to BSD. @internal */ +#define U_PF_QNX 3700 +/** Linux is a Unix-like operating system. @internal */ +#define U_PF_LINUX 4000 +/** + * Native Client is pretty close to Linux. + * See https://developer.chrome.com/native-client and + * http://www.chromium.org/nativeclient + * @internal + */ +#define U_PF_BROWSER_NATIVE_CLIENT 4020 +/** Android is based on Linux. @internal */ +#define U_PF_ANDROID 4050 +/* Maximum value for Linux-based platform is 4499 */ +/** z/OS is the successor to OS/390 which was the successor to MVS. @internal */ +#define U_PF_OS390 9000 +/** "IBM i" is the current name of what used to be i5/OS and earlier OS/400. @internal */ +#define U_PF_OS400 9400 + +#ifdef U_PLATFORM + /* Use the predefined value. */ +#elif defined(__MINGW32__) +# define U_PLATFORM U_PF_MINGW +#elif defined(__CYGWIN__) +# define U_PLATFORM U_PF_CYGWIN +#elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) +# define U_PLATFORM U_PF_WINDOWS +#elif defined(__ANDROID__) +# define U_PLATFORM U_PF_ANDROID + /* Android wchar_t support depends on the API level. */ +# include +#elif defined(__native_client__) +# define U_PLATFORM U_PF_BROWSER_NATIVE_CLIENT +#elif defined(linux) || defined(__linux__) || defined(__linux) +# define U_PLATFORM U_PF_LINUX +#elif defined(__APPLE__) && defined(__MACH__) +# include +# if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE /* variant of TARGET_OS_MAC */ +# define U_PLATFORM U_PF_IPHONE +# else +# define U_PLATFORM U_PF_DARWIN +# endif +#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__) +# if defined(__FreeBSD__) +# include +# endif +# define U_PLATFORM U_PF_BSD +#elif defined(sun) || defined(__sun) + /* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */ +# define U_PLATFORM U_PF_SOLARIS +# if defined(__GNUC__) + /* Solaris/GCC needs this header file to get the proper endianness. Normally, this + * header file is included with stddef.h but on Solairs/GCC, the GCC version of stddef.h + * is included which does not include this header file. + */ +# include +# endif +#elif defined(_AIX) || defined(__TOS_AIX__) +# define U_PLATFORM U_PF_AIX +#elif defined(_hpux) || defined(hpux) || defined(__hpux) +# define U_PLATFORM U_PF_HPUX +#elif defined(sgi) || defined(__sgi) +# define U_PLATFORM U_PF_IRIX +#elif defined(__QNX__) || defined(__QNXNTO__) +# define U_PLATFORM U_PF_QNX +#elif defined(__TOS_MVS__) +# define U_PLATFORM U_PF_OS390 +#elif defined(__OS400__) || defined(__TOS_OS400__) +# define U_PLATFORM U_PF_OS400 +#else +# define U_PLATFORM U_PF_UNKNOWN +#endif + +/** + * \def CYGWINMSVC + * Defined if this is Windows with Cygwin, but using MSVC rather than gcc. + * Otherwise undefined. + * @internal + */ +/* Commented out because this is already set in mh-cygwin-msvc +#if U_PLATFORM == U_PF_CYGWIN && defined(_MSC_VER) +# define CYGWINMSVC +#endif +*/ + +/** + * \def U_PLATFORM_USES_ONLY_WIN32_API + * Defines whether the platform uses only the Win32 API. + * Set to 1 for Windows/MSVC and MinGW but not Cygwin. + * @internal + */ +#ifdef U_PLATFORM_USES_ONLY_WIN32_API + /* Use the predefined value. */ +#elif (U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_MINGW) || defined(CYGWINMSVC) +# define U_PLATFORM_USES_ONLY_WIN32_API 1 +#else + /* Cygwin implements POSIX. */ +# define U_PLATFORM_USES_ONLY_WIN32_API 0 +#endif + +/** + * \def U_PLATFORM_HAS_WIN32_API + * Defines whether the Win32 API is available on the platform. + * Set to 1 for Windows/MSVC, MinGW and Cygwin. + * @internal + */ +#ifdef U_PLATFORM_HAS_WIN32_API + /* Use the predefined value. */ +#elif U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN +# define U_PLATFORM_HAS_WIN32_API 1 +#else +# define U_PLATFORM_HAS_WIN32_API 0 +#endif + + /** + * \def U_PLATFORM_HAS_WINUWP_API + * Defines whether target is intended for Universal Windows Platform API + * Set to 1 for Windows10 Release Solution Configuration + * @internal + */ +#ifdef U_PLATFORM_HAS_WINUWP_API + /* Use the predefined value. */ +#else +# define U_PLATFORM_HAS_WINUWP_API 0 +#endif + +/** + * \def U_PLATFORM_IMPLEMENTS_POSIX + * Defines whether the platform implements (most of) the POSIX API. + * Set to 1 for Cygwin and most other platforms. + * @internal + */ +#ifdef U_PLATFORM_IMPLEMENTS_POSIX + /* Use the predefined value. */ +#elif U_PLATFORM_USES_ONLY_WIN32_API +# define U_PLATFORM_IMPLEMENTS_POSIX 0 +#else +# define U_PLATFORM_IMPLEMENTS_POSIX 1 +#endif + +/** + * \def U_PLATFORM_IS_LINUX_BASED + * Defines whether the platform is Linux or one of its derivatives. + * @internal + */ +#ifdef U_PLATFORM_IS_LINUX_BASED + /* Use the predefined value. */ +#elif U_PF_LINUX <= U_PLATFORM && U_PLATFORM <= 4499 +# define U_PLATFORM_IS_LINUX_BASED 1 +#else +# define U_PLATFORM_IS_LINUX_BASED 0 +#endif + +/** + * \def U_PLATFORM_IS_DARWIN_BASED + * Defines whether the platform is Darwin or one of its derivatives. + * @internal + */ +#ifdef U_PLATFORM_IS_DARWIN_BASED + /* Use the predefined value. */ +#elif U_PF_DARWIN <= U_PLATFORM && U_PLATFORM <= U_PF_IPHONE +# define U_PLATFORM_IS_DARWIN_BASED 1 +#else +# define U_PLATFORM_IS_DARWIN_BASED 0 +#endif + +/** + * \def U_HAVE_STDINT_H + * Defines whether stdint.h is available. It is a C99 standard header. + * We used to include inttypes.h which includes stdint.h but we usually do not need + * the additional definitions from inttypes.h. + * @internal + */ +#ifdef U_HAVE_STDINT_H + /* Use the predefined value. */ +#elif U_PLATFORM_USES_ONLY_WIN32_API +# if defined(__BORLANDC__) || U_PLATFORM == U_PF_MINGW || (defined(_MSC_VER) && _MSC_VER>=1600) + /* Windows Visual Studio 9 and below do not have stdint.h & inttypes.h, but VS 2010 adds them. */ +# define U_HAVE_STDINT_H 1 +# else +# define U_HAVE_STDINT_H 0 +# endif +#elif U_PLATFORM == U_PF_SOLARIS + /* Solaris has inttypes.h but not stdint.h. */ +# define U_HAVE_STDINT_H 0 +#elif U_PLATFORM == U_PF_AIX && !defined(_AIX51) && defined(_POWER) + /* PPC AIX <= 4.3 has inttypes.h but not stdint.h. */ +# define U_HAVE_STDINT_H 0 +#else +# define U_HAVE_STDINT_H 1 +#endif + +/** + * \def U_HAVE_INTTYPES_H + * Defines whether inttypes.h is available. It is a C99 standard header. + * We include inttypes.h where it is available but stdint.h is not. + * @internal + */ +#ifdef U_HAVE_INTTYPES_H + /* Use the predefined value. */ +#elif U_PLATFORM == U_PF_SOLARIS + /* Solaris has inttypes.h but not stdint.h. */ +# define U_HAVE_INTTYPES_H 1 +#elif U_PLATFORM == U_PF_AIX && !defined(_AIX51) && defined(_POWER) + /* PPC AIX <= 4.3 has inttypes.h but not stdint.h. */ +# define U_HAVE_INTTYPES_H 1 +#else + /* Most platforms have both inttypes.h and stdint.h, or neither. */ +# define U_HAVE_INTTYPES_H U_HAVE_STDINT_H +#endif + +/** + * \def U_IOSTREAM_SOURCE + * Defines what support for C++ streams is available. + * + * If U_IOSTREAM_SOURCE is set to 199711, then <iostream> is available + * (the ISO/IEC C++ FDIS was published in November 1997), and then + * one should qualify streams using the std namespace in ICU header + * files. + * Starting with ICU 49, this is the only supported version. + * + * If U_IOSTREAM_SOURCE is set to 198506, then <iostream.h> is + * available instead (in June 1985 Stroustrup published + * "An Extensible I/O Facility for C++" at the summer USENIX conference). + * Starting with ICU 49, this version is not supported any more. + * + * If U_IOSTREAM_SOURCE is 0 (or any value less than 199711), + * then C++ streams are not available and + * support for them will be silently suppressed in ICU. + * + * @internal + */ +#ifndef U_IOSTREAM_SOURCE +#define U_IOSTREAM_SOURCE 199711 +#endif + +/** + * \def U_HAVE_STD_STRING + * Defines whether the standard C++ (STL) <string> header is available. + * @internal + */ + +/*===========================================================================*/ +/** @{ Compiler and environment features */ +/*===========================================================================*/ + +/** + * \def U_GCC_MAJOR_MINOR + * Indicates whether the compiler is gcc (test for != 0), + * and if so, contains its major (times 100) and minor version numbers. + * If the compiler is not gcc, then U_GCC_MAJOR_MINOR == 0. + * + * For example, for testing for whether we have gcc, and whether it's 4.6 or higher, + * use "#if U_GCC_MAJOR_MINOR >= 406". + * @internal + */ +#ifdef __GNUC__ +# define U_GCC_MAJOR_MINOR (__GNUC__ * 100 + __GNUC_MINOR__) +#else +# define U_GCC_MAJOR_MINOR 0 +#endif + +/** + * \def U_IS_BIG_ENDIAN + * Determines the endianness of the platform. + * @internal + */ +# define U_IS_BIG_ENDIAN 0 + +/** + * \def U_HAVE_PLACEMENT_NEW + * Determines whether to override placement new and delete for STL. + * @stable ICU 2.6 + */ +#ifdef U_HAVE_PLACEMENT_NEW + /* Use the predefined value. */ +#elif defined(__BORLANDC__) +# define U_HAVE_PLACEMENT_NEW 0 +#else +# define U_HAVE_PLACEMENT_NEW 1 +#endif + +/** + * \def U_HAVE_DEBUG_LOCATION_NEW + * Define this to define the MFC debug version of the operator new. + * + * @stable ICU 3.4 + */ +#ifdef U_HAVE_DEBUG_LOCATION_NEW + /* Use the predefined value. */ +#elif defined(_MSC_VER) +# define U_HAVE_DEBUG_LOCATION_NEW 1 +#else +# define U_HAVE_DEBUG_LOCATION_NEW 0 +#endif + +/* Compatibility with non clang compilers: http://clang.llvm.org/docs/LanguageExtensions.html */ +#ifndef __has_attribute +# define __has_attribute(x) 0 +#endif +#ifndef __has_cpp_attribute +# define __has_cpp_attribute(x) 0 +#endif +#ifndef __has_builtin +# define __has_builtin(x) 0 +#endif +#ifndef __has_feature +# define __has_feature(x) 0 +#endif +#ifndef __has_extension +# define __has_extension(x) 0 +#endif +#ifndef __has_warning +# define __has_warning(x) 0 +#endif + +/** + * \def U_MALLOC_ATTR + * Attribute to mark functions as malloc-like + * @internal + */ +#if defined(__GNUC__) && __GNUC__>=3 +# define U_MALLOC_ATTR __attribute__ ((__malloc__)) +#else +# define U_MALLOC_ATTR +#endif + +/** + * \def U_ALLOC_SIZE_ATTR + * Attribute to specify the size of the allocated buffer for malloc-like functions + * @internal + */ +#if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))) || __has_attribute(alloc_size) +# define U_ALLOC_SIZE_ATTR(X) __attribute__ ((alloc_size(X))) +# define U_ALLOC_SIZE_ATTR2(X,Y) __attribute__ ((alloc_size(X,Y))) +#else +# define U_ALLOC_SIZE_ATTR(X) +# define U_ALLOC_SIZE_ATTR2(X,Y) +#endif + +/** + * \def U_CPLUSPLUS_VERSION + * 0 if no C++; 1, 11, 14, ... if C++. + * Support for specific features cannot always be determined by the C++ version alone. + * @internal + */ +#ifdef U_CPLUSPLUS_VERSION +# if U_CPLUSPLUS_VERSION != 0 && !defined(__cplusplus) +# undef U_CPLUSPLUS_VERSION +# define U_CPLUSPLUS_VERSION 0 +# endif + /* Otherwise use the predefined value. */ +#elif !defined(__cplusplus) +# define U_CPLUSPLUS_VERSION 0 +#elif __cplusplus >= 201402L +# define U_CPLUSPLUS_VERSION 14 +#elif __cplusplus >= 201103L +# define U_CPLUSPLUS_VERSION 11 +#else + // C++98 or C++03 +# define U_CPLUSPLUS_VERSION 1 +#endif + +/** + * \def U_HAVE_RVALUE_REFERENCES + * Set to 1 if the compiler supports rvalue references. + * C++11 feature, necessary for move constructor & move assignment. + * @internal + */ +#ifdef U_HAVE_RVALUE_REFERENCES + /* Use the predefined value. */ +#elif U_CPLUSPLUS_VERSION >= 11 || __has_feature(cxx_rvalue_references) \ + || defined(__GXX_EXPERIMENTAL_CXX0X__) \ + || (defined(_MSC_VER) && _MSC_VER >= 1600) /* Visual Studio 2010 */ +# define U_HAVE_RVALUE_REFERENCES 1 +#else +# define U_HAVE_RVALUE_REFERENCES 0 +#endif + +/** + * \def U_NOEXCEPT + * "noexcept" if supported, otherwise empty. + * Some code, especially STL containers, uses move semantics of objects only + * if the move constructor and the move operator are declared as not throwing exceptions. + * @internal + */ +#ifdef U_NOEXCEPT + /* Use the predefined value. */ +#elif defined(_HAS_EXCEPTIONS) && !_HAS_EXCEPTIONS /* Visual Studio */ +# define U_NOEXCEPT +#elif U_CPLUSPLUS_VERSION >= 11 || __has_feature(cxx_noexcept) || __has_extension(cxx_noexcept) \ + || (defined(_MSC_VER) && _MSC_VER >= 1900) /* Visual Studio 2015 */ +# define U_NOEXCEPT noexcept +#else +# define U_NOEXCEPT +#endif + +/** + * \def U_FALLTHROUGH + * Annotate intentional fall-through between switch labels. + * http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough + * @internal + */ +#ifdef __cplusplus +# if __has_cpp_attribute(clang::fallthrough) || \ + (__has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")) +# define U_FALLTHROUGH [[clang::fallthrough]] +# else +# define U_FALLTHROUGH +# endif +#else +# define U_FALLTHROUGH +#endif + + +/** @} */ + +/*===========================================================================*/ +/** @{ Character data types */ +/*===========================================================================*/ + +/** + * U_CHARSET_FAMILY is equal to this value when the platform is an ASCII based platform. + * @stable ICU 2.0 + */ +#define U_ASCII_FAMILY 0 + +/** + * U_CHARSET_FAMILY is equal to this value when the platform is an EBCDIC based platform. + * @stable ICU 2.0 + */ +#define U_EBCDIC_FAMILY 1 + +/** + * \def U_CHARSET_FAMILY + * + *

These definitions allow to specify the encoding of text + * in the char data type as defined by the platform and the compiler. + * It is enough to determine the code point values of "invariant characters", + * which are the ones shared by all encodings that are in use + * on a given platform.

+ * + *

Those "invariant characters" should be all the uppercase and lowercase + * latin letters, the digits, the space, and "basic punctuation". + * Also, '\\n', '\\r', '\\t' should be available.

+ * + *

The list of "invariant characters" is:
+ * \code + * A-Z a-z 0-9 SPACE " % & ' ( ) * + , - . / : ; < = > ? _ + * \endcode + *
+ * (52 letters + 10 numbers + 20 punc/sym/space = 82 total)

+ * + *

This matches the IBM Syntactic Character Set (CS 640).

+ * + *

In other words, all the graphic characters in 7-bit ASCII should + * be safely accessible except the following:

+ * + * \code + * '\' + * '[' + * ']' + * '{' + * '}' + * '^' + * '~' + * '!' + * '#' + * '|' + * '$' + * '@' + * '`' + * \endcode + * @stable ICU 2.0 + */ +#ifdef U_CHARSET_FAMILY + /* Use the predefined value. */ +#elif U_PLATFORM == U_PF_OS390 && (!defined(__CHARSET_LIB) || !__CHARSET_LIB) +# define U_CHARSET_FAMILY U_EBCDIC_FAMILY +#elif U_PLATFORM == U_PF_OS400 && !defined(__UTF32__) +# define U_CHARSET_FAMILY U_EBCDIC_FAMILY +#else +# define U_CHARSET_FAMILY U_ASCII_FAMILY +#endif + +/** + * \def U_CHARSET_IS_UTF8 + * + * Hardcode the default charset to UTF-8. + * + * If this is set to 1, then + * - ICU will assume that all non-invariant char*, StringPiece, std::string etc. + * contain UTF-8 text, regardless of what the system API uses + * - some ICU code will use fast functions like u_strFromUTF8() + * rather than the more general and more heavy-weight conversion API (ucnv.h) + * - ucnv_getDefaultName() always returns "UTF-8" + * - ucnv_setDefaultName() is disabled and will not change the default charset + * - static builds of ICU are smaller + * - more functionality is available with the UCONFIG_NO_CONVERSION build-time + * configuration option (see unicode/uconfig.h) + * - the UCONFIG_NO_CONVERSION build option in uconfig.h is more usable + * + * @stable ICU 4.2 + * @see UCONFIG_NO_CONVERSION + */ +#ifdef U_CHARSET_IS_UTF8 + /* Use the predefined value. */ +#elif U_PLATFORM == U_PF_ANDROID || U_PLATFORM_IS_DARWIN_BASED +# define U_CHARSET_IS_UTF8 1 +#else +# define U_CHARSET_IS_UTF8 0 +#endif + +/** @} */ + +/*===========================================================================*/ +/** @{ Information about wchar support */ +/*===========================================================================*/ + +/** + * \def U_HAVE_WCHAR_H + * Indicates whether is available (1) or not (0). Set to 1 by default. + * + * @stable ICU 2.0 + */ +#ifdef U_HAVE_WCHAR_H + /* Use the predefined value. */ +#elif U_PLATFORM == U_PF_ANDROID && __ANDROID_API__ < 9 + /* + * Android before Gingerbread (Android 2.3, API level 9) did not support wchar_t. + * The type and header existed, but the library functions did not work as expected. + * The size of wchar_t was 1 but L"xyz" string literals had 32-bit units anyway. + */ +# define U_HAVE_WCHAR_H 0 +#else +# define U_HAVE_WCHAR_H 1 +#endif + +/** + * \def U_SIZEOF_WCHAR_T + * U_SIZEOF_WCHAR_T==sizeof(wchar_t) + * + * @stable ICU 2.0 + */ +#ifdef U_SIZEOF_WCHAR_T + /* Use the predefined value. */ +#elif (U_PLATFORM == U_PF_ANDROID && __ANDROID_API__ < 9) + /* + * Classic Mac OS and Mac OS X before 10.3 (Panther) did not support wchar_t or wstring. + * Newer Mac OS X has size 4. + */ +# define U_SIZEOF_WCHAR_T 1 +#elif U_PLATFORM_HAS_WIN32_API || U_PLATFORM == U_PF_CYGWIN +# define U_SIZEOF_WCHAR_T 2 +#elif U_PLATFORM == U_PF_AIX + /* + * AIX 6.1 information, section "Wide character data representation": + * "... the wchar_t datatype is 32-bit in the 64-bit environment and + * 16-bit in the 32-bit environment." + * and + * "All locales use Unicode for their wide character code values (process code), + * except the IBM-eucTW codeset." + */ +# ifdef __64BIT__ +# define U_SIZEOF_WCHAR_T 4 +# else +# define U_SIZEOF_WCHAR_T 2 +# endif +#elif U_PLATFORM == U_PF_OS390 + /* + * z/OS V1R11 information center, section "LP64 | ILP32": + * "In 31-bit mode, the size of long and pointers is 4 bytes and the size of wchar_t is 2 bytes. + * Under LP64, the size of long and pointer is 8 bytes and the size of wchar_t is 4 bytes." + */ +# ifdef _LP64 +# define U_SIZEOF_WCHAR_T 4 +# else +# define U_SIZEOF_WCHAR_T 2 +# endif +#elif U_PLATFORM == U_PF_OS400 +# if defined(__UTF32__) + /* + * LOCALETYPE(*LOCALEUTF) is specified. + * Wide-character strings are in UTF-32, + * narrow-character strings are in UTF-8. + */ +# define U_SIZEOF_WCHAR_T 4 +# elif defined(__UCS2__) + /* + * LOCALETYPE(*LOCALEUCS2) is specified. + * Wide-character strings are in UCS-2, + * narrow-character strings are in EBCDIC. + */ +# define U_SIZEOF_WCHAR_T 2 +#else + /* + * LOCALETYPE(*CLD) or LOCALETYPE(*LOCALE) is specified. + * Wide-character strings are in 16-bit EBCDIC, + * narrow-character strings are in EBCDIC. + */ +# define U_SIZEOF_WCHAR_T 2 +# endif +#else +# define U_SIZEOF_WCHAR_T 4 +#endif + +#ifndef U_HAVE_WCSCPY +#define U_HAVE_WCSCPY U_HAVE_WCHAR_H +#endif + +/** @} */ + +/** + * \def U_HAVE_CHAR16_T + * Defines whether the char16_t type is available for UTF-16 + * and u"abc" UTF-16 string literals are supported. + * This is a new standard type and standard string literal syntax in C++0x + * but has been available in some compilers before. + * @internal + */ +#ifdef U_HAVE_CHAR16_T + /* Use the predefined value. */ +#else + /* + * Notes: + * Visual Studio 10 (_MSC_VER>=1600) defines char16_t but + * does not support u"abc" string literals. + * gcc 4.4 defines the __CHAR16_TYPE__ macro to a usable type but + * does not support u"abc" string literals. + * C++11 and C11 require support for UTF-16 literals + */ +# if U_CPLUSPLUS_VERSION >= 11 || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) +# define U_HAVE_CHAR16_T 1 +# else +# define U_HAVE_CHAR16_T 0 +# endif +#endif + +/** + * @{ + * \def U_DECLARE_UTF16 + * Do not use this macro because it is not defined on all platforms. + * Use the UNICODE_STRING or U_STRING_DECL macros instead. + * @internal + */ +#ifdef U_DECLARE_UTF16 + /* Use the predefined value. */ +#elif U_HAVE_CHAR16_T \ + || (defined(__xlC__) && defined(__IBM_UTF_LITERAL) && U_SIZEOF_WCHAR_T != 2) \ + || (defined(__HP_aCC) && __HP_aCC >= 035000) \ + || (defined(__HP_cc) && __HP_cc >= 111106) +# define U_DECLARE_UTF16(string) u ## string +#elif U_SIZEOF_WCHAR_T == 2 \ + && (U_CHARSET_FAMILY == 0 || (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400 && defined(__UCS2__))) +# define U_DECLARE_UTF16(string) L ## string +#else + /* Leave U_DECLARE_UTF16 undefined. See unistr.h. */ +#endif + +/** @} */ + +/*===========================================================================*/ +/** @{ Symbol import-export control */ +/*===========================================================================*/ + +#ifdef U_EXPORT + /* Use the predefined value. */ +#elif defined(U_STATIC_IMPLEMENTATION) +# define U_EXPORT +#elif defined(__GNUC__) +# define U_EXPORT __attribute__((visibility("default"))) +#elif (defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x550) \ + || (defined(__SUNPRO_C) && __SUNPRO_C >= 0x550) +# define U_EXPORT __global +/*#elif defined(__HP_aCC) || defined(__HP_cc) +# define U_EXPORT __declspec(dllexport)*/ +#elif defined(_MSC_VER) +# define U_EXPORT __declspec(dllexport) +#else +# define U_EXPORT +#endif + +/* U_CALLCONV is releated to U_EXPORT2 */ +#ifdef U_EXPORT2 + /* Use the predefined value. */ +#elif defined(_MSC_VER) +# define U_EXPORT2 __cdecl +#else +# define U_EXPORT2 +#endif + +#ifdef U_IMPORT + /* Use the predefined value. */ +#elif defined(_MSC_VER) + /* Windows needs to export/import data. */ +# define U_IMPORT __declspec(dllimport) +#else +# define U_IMPORT +#endif + +/** + * \def U_CALLCONV + * Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary + * in callback function typedefs to make sure that the calling convention + * is compatible. + * + * This is only used for non-ICU-API functions. + * When a function is a public ICU API, + * you must use the U_CAPI and U_EXPORT2 qualifiers. + * @stable ICU 2.0 + */ +#if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) +# define U_CALLCONV __cdecl +#else +# define U_CALLCONV U_EXPORT2 +#endif + +/* @} */ + +#endif + +// ptypes.h +/* +****************************************************************************** +* +* Copyright (C) 1997-2012, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* +* FILE NAME : ptypes.h +* +* Date Name Description +* 05/13/98 nos Creation (content moved here from ptypes.h). +* 03/02/99 stephen Added AS400 support. +* 03/30/99 stephen Added Linux support. +* 04/13/99 stephen Reworked for autoconf. +* 09/18/08 srl Moved basic types back to ptypes.h from platform.h +****************************************************************************** +*/ + +/** + * \file + * \brief C API: Definitions of integer types of various widths + */ + +#ifndef _PTYPES_H +#define _PTYPES_H + +/** + * \def __STDC_LIMIT_MACROS + * According to the Linux stdint.h, the ISO C99 standard specifies that in C++ implementations + * macros like INT32_MIN and UINTPTR_MAX should only be defined if explicitly requested. + * We need to define __STDC_LIMIT_MACROS before including stdint.h in C++ code + * that uses such limit macros. + * @internal + */ +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS +#endif + +/* NULL, size_t, wchar_t */ +#include + +/* + * If all compilers provided all of the C99 headers and types, + * we would just unconditionally #include here + * and not need any of the stuff after including platform.h. + */ + +/* Find out if we have stdint.h etc. */ + +/*===========================================================================*/ +/* Generic data types */ +/*===========================================================================*/ + +/* If your platform does not have the header, you may + need to edit the typedefs in the #else section below. + Use #if...#else...#endif with predefined compiler macros if possible. */ +#if U_HAVE_STDINT_H + +/* + * We mostly need (which defines the standard integer types) but not . + * includes and adds the printf/scanf helpers PRId32, SCNx16 etc. + * which we almost never use, plus stuff like imaxabs() which we never use. + */ +#include + +#if U_PLATFORM == U_PF_OS390 +/* The features header is needed to get (u)int64_t sometimes. */ +#include +/* z/OS has , but some versions are missing uint8_t (APAR PK62248). */ +#if !defined(__uint8_t) +#define __uint8_t 1 +typedef unsigned char uint8_t; +#endif +#endif /* U_PLATFORM == U_PF_OS390 */ + +#elif U_HAVE_INTTYPES_H + +# include + +#else /* neither U_HAVE_STDINT_H nor U_HAVE_INTTYPES_H */ + +#if ! U_HAVE_INT8_T +typedef signed char int8_t; +#endif + +#if ! U_HAVE_UINT8_T +typedef unsigned char uint8_t; +#endif + +#if ! U_HAVE_INT16_T +typedef signed short int16_t; +#endif + +#if ! U_HAVE_UINT16_T +typedef unsigned short uint16_t; +#endif + +#if ! U_HAVE_INT32_T +typedef signed int int32_t; +#endif + +#if ! U_HAVE_UINT32_T +typedef unsigned int uint32_t; +#endif + +#if ! U_HAVE_INT64_T +#ifdef _MSC_VER + typedef signed __int64 int64_t; +#else + typedef signed long long int64_t; +#endif +#endif + +#if ! U_HAVE_UINT64_T +#ifdef _MSC_VER + typedef unsigned __int64 uint64_t; +#else + typedef unsigned long long uint64_t; +#endif +#endif + +#endif /* U_HAVE_STDINT_H / U_HAVE_INTTYPES_H */ + +#endif /* _PTYPES_H */ + +// umachine.h +/* +****************************************************************************** +* +* Copyright (C) 1999-2015, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* file name: umachine.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 1999sep13 +* created by: Markus W. Scherer +* +* This file defines basic types and constants for ICU to be +* platform-independent. umachine.h and utf.h are included into +* utypes.h to provide all the general definitions for ICU. +* All of these definitions used to be in utypes.h before +* the UTF-handling macros made this unmaintainable. +*/ + +#ifndef __UMACHINE_H__ +#define __UMACHINE_H__ + + +/** + * \file + * \brief Basic types and constants for UTF + * + *

Basic types and constants for UTF

+ * This file defines basic types and constants for utf.h to be + * platform-independent. umachine.h and utf.h are included into + * utypes.h to provide all the general definitions for ICU. + * All of these definitions used to be in utypes.h before + * the UTF-handling macros made this unmaintainable. + * + */ +/*==========================================================================*/ +/* Include platform-dependent definitions */ +/* which are contained in the platform-specific file platform.h */ +/*==========================================================================*/ + + +/* + * ANSI C headers: + * stddef.h defines wchar_t + */ +#include + +/*==========================================================================*/ +/* For C wrappers, we use the symbol U_STABLE. */ +/* This works properly if the includer is C or C++. */ +/* Functions are declared U_STABLE return-type U_EXPORT2 function-name()... */ +/*==========================================================================*/ + +/** + * \def U_CFUNC + * This is used in a declaration of a library private ICU C function. + * @stable ICU 2.4 + */ + +/** + * \def U_CDECL_BEGIN + * This is used to begin a declaration of a library private ICU C API. + * @stable ICU 2.4 + */ + +/** + * \def U_CDECL_END + * This is used to end a declaration of a library private ICU C API + * @stable ICU 2.4 + */ + +#ifdef __cplusplus +# define U_CFUNC extern "C" +# define U_CDECL_BEGIN extern "C" { +# define U_CDECL_END } +#else +# define U_CFUNC extern +# define U_CDECL_BEGIN +# define U_CDECL_END +#endif + +#ifndef U_ATTRIBUTE_DEPRECATED +/** + * \def U_ATTRIBUTE_DEPRECATED + * This is used for GCC specific attributes + * @internal + */ +#if U_GCC_MAJOR_MINOR >= 302 +# define U_ATTRIBUTE_DEPRECATED __attribute__ ((deprecated)) +/** + * \def U_ATTRIBUTE_DEPRECATED + * This is used for Visual C++ specific attributes + * @internal + */ +#elif defined(_MSC_VER) && (_MSC_VER >= 1400) +# define U_ATTRIBUTE_DEPRECATED __declspec(deprecated) +#else +# define U_ATTRIBUTE_DEPRECATED +#endif +#endif + +/** This is used to declare a function as a public ICU C API @stable ICU 2.0*/ +#define U_CAPI U_CFUNC U_EXPORT +/** This is used to declare a function as a stable public ICU C API*/ +#define U_STABLE U_CAPI +/** This is used to declare a function as a draft public ICU C API */ +#define U_DRAFT U_CAPI +/** This is used to declare a function as a deprecated public ICU C API */ +#define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED +/** This is used to declare a function as an obsolete public ICU C API */ +#define U_OBSOLETE U_CAPI +/** This is used to declare a function as an internal ICU C API */ +#define U_INTERNAL U_CAPI + +/** + * \def U_OVERRIDE + * Defined to the C++11 "override" keyword if available. + * Denotes a class or member which is an override of the base class. + * May result in an error if it applied to something not an override. + * @internal + */ + +/** + * \def U_FINAL + * Defined to the C++11 "final" keyword if available. + * Denotes a class or member which may not be overridden in subclasses. + * May result in an error if subclasses attempt to override. + * @internal + */ + +#if U_CPLUSPLUS_VERSION >= 11 +/* C++11 */ +#ifndef U_OVERRIDE +#define U_OVERRIDE override +#endif +#ifndef U_FINAL +#define U_FINAL final +#endif +#else +/* not C++11 - define to nothing */ +#ifndef U_OVERRIDE +#define U_OVERRIDE +#endif +#ifndef U_FINAL +#define U_FINAL +#endif +#endif + +/*==========================================================================*/ +/* limits for int32_t etc., like in POSIX inttypes.h */ +/*==========================================================================*/ + +#ifndef INT8_MIN +/** The smallest value an 8 bit signed integer can hold @stable ICU 2.0 */ +# define INT8_MIN ((int8_t)(-128)) +#endif +#ifndef INT16_MIN +/** The smallest value a 16 bit signed integer can hold @stable ICU 2.0 */ +# define INT16_MIN ((int16_t)(-32767-1)) +#endif +#ifndef INT32_MIN +/** The smallest value a 32 bit signed integer can hold @stable ICU 2.0 */ +# define INT32_MIN ((int32_t)(-2147483647-1)) +#endif + +#ifndef INT8_MAX +/** The largest value an 8 bit signed integer can hold @stable ICU 2.0 */ +# define INT8_MAX ((int8_t)(127)) +#endif +#ifndef INT16_MAX +/** The largest value a 16 bit signed integer can hold @stable ICU 2.0 */ +# define INT16_MAX ((int16_t)(32767)) +#endif +#ifndef INT32_MAX +/** The largest value a 32 bit signed integer can hold @stable ICU 2.0 */ +# define INT32_MAX ((int32_t)(2147483647)) +#endif + +#ifndef UINT8_MAX +/** The largest value an 8 bit unsigned integer can hold @stable ICU 2.0 */ +# define UINT8_MAX ((uint8_t)(255U)) +#endif +#ifndef UINT16_MAX +/** The largest value a 16 bit unsigned integer can hold @stable ICU 2.0 */ +# define UINT16_MAX ((uint16_t)(65535U)) +#endif +#ifndef UINT32_MAX +/** The largest value a 32 bit unsigned integer can hold @stable ICU 2.0 */ +# define UINT32_MAX ((uint32_t)(4294967295U)) +#endif + +#if defined(U_INT64_T_UNAVAILABLE) +# error int64_t is required for decimal format and rule-based number format. +#else +# ifndef INT64_C +/** + * Provides a platform independent way to specify a signed 64-bit integer constant. + * note: may be wrong for some 64 bit platforms - ensure your compiler provides INT64_C + * @stable ICU 2.8 + */ +# define INT64_C(c) c ## LL +# endif +# ifndef UINT64_C +/** + * Provides a platform independent way to specify an unsigned 64-bit integer constant. + * note: may be wrong for some 64 bit platforms - ensure your compiler provides UINT64_C + * @stable ICU 2.8 + */ +# define UINT64_C(c) c ## ULL +# endif +# ifndef U_INT64_MIN +/** The smallest value a 64 bit signed integer can hold @stable ICU 2.8 */ +# define U_INT64_MIN ((int64_t)(INT64_C(-9223372036854775807)-1)) +# endif +# ifndef U_INT64_MAX +/** The largest value a 64 bit signed integer can hold @stable ICU 2.8 */ +# define U_INT64_MAX ((int64_t)(INT64_C(9223372036854775807))) +# endif +# ifndef U_UINT64_MAX +/** The largest value a 64 bit unsigned integer can hold @stable ICU 2.8 */ +# define U_UINT64_MAX ((uint64_t)(UINT64_C(18446744073709551615))) +# endif +#endif + +/*==========================================================================*/ +/* Boolean data type */ +/*==========================================================================*/ + +/** The ICU boolean type @stable ICU 2.0 */ +typedef int8_t UBool; + +#ifndef TRUE +/** The TRUE value of a UBool @stable ICU 2.0 */ +# define TRUE 1 +#endif +#ifndef FALSE +/** The FALSE value of a UBool @stable ICU 2.0 */ +# define FALSE 0 +#endif + + +/*==========================================================================*/ +/* Unicode data types */ +/*==========================================================================*/ + +/* wchar_t-related definitions -------------------------------------------- */ + +/* + * \def U_WCHAR_IS_UTF16 + * Defined if wchar_t uses UTF-16. + * + * @stable ICU 2.0 + */ +/* + * \def U_WCHAR_IS_UTF32 + * Defined if wchar_t uses UTF-32. + * + * @stable ICU 2.0 + */ +#if !defined(U_WCHAR_IS_UTF16) && !defined(U_WCHAR_IS_UTF32) +# ifdef __STDC_ISO_10646__ +# if (U_SIZEOF_WCHAR_T==2) +# define U_WCHAR_IS_UTF16 +# elif (U_SIZEOF_WCHAR_T==4) +# define U_WCHAR_IS_UTF32 +# endif +# elif defined __UCS2__ +# if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T==2) +# define U_WCHAR_IS_UTF16 +# endif +# elif defined(__UCS4__) || (U_PLATFORM == U_PF_OS400 && defined(__UTF32__)) +# if (U_SIZEOF_WCHAR_T==4) +# define U_WCHAR_IS_UTF32 +# endif +# elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T==4 && U_PLATFORM_IS_LINUX_BASED) +# define U_WCHAR_IS_UTF32 +# elif U_PLATFORM_HAS_WIN32_API +# define U_WCHAR_IS_UTF16 +# endif +#endif + +/* UChar and UChar32 definitions -------------------------------------------- */ + +/** Number of bytes in a UChar. @stable ICU 2.0 */ +#define U_SIZEOF_UCHAR 2 + +/** + * \var UChar + * Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), + * or wchar_t if that is 16 bits wide; always assumed to be unsigned. + * If neither is available, then define UChar to be uint16_t. + * + * This makes the definition of UChar platform-dependent + * but allows direct string type compatibility with platforms with + * 16-bit wchar_t types. + * + * @stable ICU 4.4 + */ +#if defined(UCHAR_TYPE) + typedef UCHAR_TYPE UChar; +/* Not #elif U_HAVE_CHAR16_T -- because that is type-incompatible with pre-C++11 callers + typedef char16_t UChar; */ +#elif U_SIZEOF_WCHAR_T==2 + typedef wchar_t UChar; +#elif defined(__CHAR16_TYPE__) + typedef __CHAR16_TYPE__ UChar; +#else + typedef uint16_t UChar; +#endif + +/** + * Define UChar32 as a type for single Unicode code points. + * UChar32 is a signed 32-bit integer (same as int32_t). + * + * The Unicode code point range is 0..0x10ffff. + * All other values (negative or >=0x110000) are illegal as Unicode code points. + * They may be used as sentinel values to indicate "done", "error" + * or similar non-code point conditions. + * + * Before ICU 2.4 (Jitterbug 2146), UChar32 was defined + * to be wchar_t if that is 32 bits wide (wchar_t may be signed or unsigned) + * or else to be uint32_t. + * That is, the definition of UChar32 was platform-dependent. + * + * @see U_SENTINEL + * @stable ICU 2.4 + */ +typedef int32_t UChar32; + +/** + * This value is intended for sentinel values for APIs that + * (take or) return single code points (UChar32). + * It is outside of the Unicode code point range 0..0x10ffff. + * + * For example, a "done" or "error" value in a new API + * could be indicated with U_SENTINEL. + * + * ICU APIs designed before ICU 2.4 usually define service-specific "done" + * values, mostly 0xffff. + * Those may need to be distinguished from + * actual U+ffff text contents by calling functions like + * CharacterIterator::hasNext() or UnicodeString::length(). + * + * @return -1 + * @see UChar32 + * @stable ICU 2.4 + */ +#define U_SENTINEL (-1) + + +#endif + +// utf.h +/* +******************************************************************************* +* +* Copyright (C) 1999-2011, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: utf.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 1999sep09 +* created by: Markus W. Scherer +*/ + +/** + * \file + * \brief C API: Code point macros + * + * This file defines macros for checking whether a code point is + * a surrogate or a non-character etc. + * + * The UChar and UChar32 data types for Unicode code units and code points + * are defined in umachine.h because they can be machine-dependent. + * + * If U_NO_DEFAULT_INCLUDE_UTF_HEADERS is 0 then utf.h is included by utypes.h + * and itself includes utf8.h and utf16.h after some + * common definitions. + * If U_NO_DEFAULT_INCLUDE_UTF_HEADERS is 1 then each of these headers must be + * included explicitly if their definitions are used. + * + * utf8.h and utf16.h define macros for efficiently getting code points + * in and out of UTF-8/16 strings. + * utf16.h macros have "U16_" prefixes. + * utf8.h defines similar macros with "U8_" prefixes for UTF-8 string handling. + * + * ICU mostly processes 16-bit Unicode strings. + * Most of the time, such strings are well-formed UTF-16. + * Single, unpaired surrogates must be handled as well, and are treated in ICU + * like regular code points where possible. + * (Pairs of surrogate code points are indistinguishable from supplementary + * code points encoded as pairs of supplementary code units.) + * + * In fact, almost all Unicode code points in normal text (>99%) + * are on the BMP (<=U+ffff) and even <=U+d7ff. + * ICU functions handle supplementary code points (U+10000..U+10ffff) + * but are optimized for the much more frequently occurring BMP code points. + * + * umachine.h defines UChar to be an unsigned 16-bit integer. + * Where available, UChar is defined to be a char16_t + * or a wchar_t (if that is an unsigned 16-bit type), otherwise uint16_t. + * + * UChar32 is defined to be a signed 32-bit integer (int32_t), large enough for a 21-bit + * Unicode code point (Unicode scalar value, 0..0x10ffff). + * Before ICU 2.4, the definition of UChar32 was similarly platform-dependent as + * the definition of UChar. For details see the documentation for UChar32 itself. + * + * utf.h defines a small number of C macros for single Unicode code points. + * These are simple checks for surrogates and non-characters. + * For actual Unicode character properties see uchar.h. + * + * By default, string operations must be done with error checking in case + * a string is not well-formed UTF-16. + * The macros will detect if a surrogate code unit is unpaired + * (lead unit without trail unit or vice versa) and just return the unit itself + * as the code point. + * + * The regular "safe" macros require that the initial, passed-in string index + * is within bounds. They only check the index when they read more than one + * code unit. This is usually done with code similar to the following loop: + *
while(i
+ *
+ * When it is safe to assume that text is well-formed UTF-16
+ * (does not contain single, unpaired surrogates), then one can use
+ * U16_..._UNSAFE macros.
+ * These do not check for proper code unit sequences or truncated text and may
+ * yield wrong results or even cause a crash if they are used with "malformed"
+ * text.
+ * In practice, U16_..._UNSAFE macros will produce slightly less code but
+ * should not be faster because the processing is only different when a
+ * surrogate code unit is detected, which will be rare.
+ *
+ * Similarly for UTF-8, there are "safe" macros without a suffix,
+ * and U8_..._UNSAFE versions.
+ * The performance differences are much larger here because UTF-8 provides so
+ * many opportunities for malformed sequences.
+ * The unsafe UTF-8 macros are entirely implemented inside the macro definitions
+ * and are fast, while the safe UTF-8 macros call functions for all but the
+ * trivial (ASCII) cases.
+ * (ICU 3.6 optimizes U8_NEXT() and U8_APPEND() to handle most other common
+ * characters inline as well.)
+ *
+ * Unlike with UTF-16, malformed sequences cannot be expressed with distinct
+ * code point values (0..U+10ffff). They are indicated with negative values instead.
+ *
+ * For more information see the ICU User Guide Strings chapter
+ * (http://userguide.icu-project.org/strings).
+ *
+ * Usage:
+ * ICU coding guidelines for if() statements should be followed when using these macros.
+ * Compound statements (curly braces {}) must be used  for if-else-while... 
+ * bodies and all macro statements should be terminated with semicolon.
+ *
+ * @stable ICU 2.4
+ */
+
+#ifndef __UTF_H__
+#define __UTF_H__
+
+/* include the utfXX.h after the following definitions */
+
+/* single-code point definitions -------------------------------------------- */
+
+/**
+ * Is this code point a Unicode noncharacter?
+ * @param c 32-bit code point
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U_IS_UNICODE_NONCHAR(c) \
+    ((c)>=0xfdd0 && \
+     ((uint32_t)(c)<=0xfdef || ((c)&0xfffe)==0xfffe) && \
+     (uint32_t)(c)<=0x10ffff)
+
+/**
+ * Is c a Unicode code point value (0..U+10ffff)
+ * that can be assigned a character?
+ *
+ * Code points that are not characters include:
+ * - single surrogate code points (U+d800..U+dfff, 2048 code points)
+ * - the last two code points on each plane (U+__fffe and U+__ffff, 34 code points)
+ * - U+fdd0..U+fdef (new with Unicode 3.1, 32 code points)
+ * - the highest Unicode code point value is U+10ffff
+ *
+ * This means that all code points below U+d800 are character code points,
+ * and that boundary is tested first for performance.
+ *
+ * @param c 32-bit code point
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U_IS_UNICODE_CHAR(c) \
+    ((uint32_t)(c)<0xd800 || \
+        ((uint32_t)(c)>0xdfff && \
+         (uint32_t)(c)<=0x10ffff && \
+         !U_IS_UNICODE_NONCHAR(c)))
+
+/**
+ * Is this code point a BMP code point (U+0000..U+ffff)?
+ * @param c 32-bit code point
+ * @return TRUE or FALSE
+ * @stable ICU 2.8
+ */
+#define U_IS_BMP(c) ((uint32_t)(c)<=0xffff)
+
+/**
+ * Is this code point a supplementary code point (U+10000..U+10ffff)?
+ * @param c 32-bit code point
+ * @return TRUE or FALSE
+ * @stable ICU 2.8
+ */
+#define U_IS_SUPPLEMENTARY(c) ((uint32_t)((c)-0x10000)<=0xfffff)
+ 
+/**
+ * Is this code point a lead surrogate (U+d800..U+dbff)?
+ * @param c 32-bit code point
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
+
+/**
+ * Is this code point a trail surrogate (U+dc00..U+dfff)?
+ * @param c 32-bit code point
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
+
+/**
+ * Is this code point a surrogate (U+d800..U+dfff)?
+ * @param c 32-bit code point
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
+
+/**
+ * Assuming c is a surrogate code point (U_IS_SURROGATE(c)),
+ * is it a lead surrogate?
+ * @param c 32-bit code point
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
+
+/**
+ * Assuming c is a surrogate code point (U_IS_SURROGATE(c)),
+ * is it a trail surrogate?
+ * @param c 32-bit code point
+ * @return TRUE or FALSE
+ * @stable ICU 4.2
+ */
+#define U_IS_SURROGATE_TRAIL(c) (((c)&0x400)!=0)
+
+/* include the utfXX.h ------------------------------------------------------ */
+
+
+#endif  /* __UTF_H__ */
+
+// utf8.h
+/*
+*******************************************************************************
+*
+*   Copyright (C) 1999-2015, International Business Machines
+*   Corporation and others.  All Rights Reserved.
+*
+*******************************************************************************
+*   file name:  utf8.h
+*   encoding:   US-ASCII
+*   tab size:   8 (not used)
+*   indentation:4
+*
+*   created on: 1999sep13
+*   created by: Markus W. Scherer
+*/
+
+/**
+ * \file
+ * \brief C API: 8-bit Unicode handling macros
+ * 
+ * This file defines macros to deal with 8-bit Unicode (UTF-8) code units (bytes) and strings.
+ *
+ * For more information see utf.h and the ICU User Guide Strings chapter
+ * (http://userguide.icu-project.org/strings).
+ *
+ * Usage:
+ * ICU coding guidelines for if() statements should be followed when using these macros.
+ * Compound statements (curly braces {}) must be used  for if-else-while... 
+ * bodies and all macro statements should be terminated with semicolon.
+ */
+
+#ifndef __UTF8_H__
+#define __UTF8_H__
+
+#ifndef __UTF_H__
+#   include "icu/utf.h"
+#endif
+
+/* internal definitions ----------------------------------------------------- */
+
+/**
+ * \var utf8_countTrailBytes
+ * Internal array with numbers of trail bytes for any given byte used in
+ * lead byte position.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this file and thus must remain stable,
+ * and should not be hidden when other internal functions are hidden (otherwise
+ * public macros would fail to compile).
+ * @internal
+ */
+#ifdef U_UTF8_IMPL
+U_EXPORT const uint8_t 
+#elif defined(U_STATIC_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION)
+U_CFUNC const uint8_t
+#else
+U_CFUNC U_IMPORT const uint8_t /* U_IMPORT2? */ /*U_IMPORT*/ 
+#endif
+utf8_countTrailBytes[256];
+
+/**
+ * Counts the trail bytes for a UTF-8 lead byte.
+ * Returns 0 for 0..0xbf as well as for 0xfe and 0xff.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this file and thus must remain stable.
+ *
+ * Note: Beginning with ICU 50, the implementation uses a multi-condition expression
+ * which was shown in 2012 (on x86-64) to compile to fast, branch-free code.
+ * leadByte is evaluated multiple times.
+ *
+ * The pre-ICU 50 implementation used the exported array utf8_countTrailBytes:
+ * #define U8_COUNT_TRAIL_BYTES(leadByte) (utf8_countTrailBytes[leadByte])
+ * leadByte was evaluated exactly once.
+ *
+ * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff.
+ * @internal
+ */
+#define U8_COUNT_TRAIL_BYTES(leadByte) \
+    ((uint8_t)(leadByte)<0xf0 ? \
+        ((uint8_t)(leadByte)>=0xc0)+((uint8_t)(leadByte)>=0xe0) : \
+        (uint8_t)(leadByte)<0xfe ? 3+((uint8_t)(leadByte)>=0xf8)+((uint8_t)(leadByte)>=0xfc) : 0)
+
+/**
+ * Counts the trail bytes for a UTF-8 lead byte of a valid UTF-8 sequence.
+ * The maximum supported lead byte is 0xf4 corresponding to U+10FFFF.
+ * leadByte might be evaluated multiple times.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this file and thus must remain stable.
+ *
+ * @param leadByte The first byte of a UTF-8 sequence. Must be 0..0xff.
+ * @internal
+ */
+#define U8_COUNT_TRAIL_BYTES_UNSAFE(leadByte) \
+    (((leadByte)>=0xc0)+((leadByte)>=0xe0)+((leadByte)>=0xf0))
+
+/**
+ * Mask a UTF-8 lead byte, leave only the lower bits that form part of the code point value.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is called by public macros in this file and thus must remain stable.
+ * @internal
+ */
+#define U8_MASK_LEAD_BYTE(leadByte, countTrailBytes) ((leadByte)&=(1<<(6-(countTrailBytes)))-1)
+
+/**
+ * Function for handling "next code point" with error-checking.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is U_STABLE (not U_INTERNAL) since it is called by public macros in this
+ * file and thus must remain stable, and should not be hidden when other internal
+ * functions are hidden (otherwise public macros would fail to compile).
+ * @internal
+ */
+U_STABLE UChar32 U_EXPORT2
+utf8_nextCharSafeBody(const uint8_t *s, int32_t *pi, int32_t length, UChar32 c, UBool strict);
+
+/**
+ * Function for handling "append code point" with error-checking.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is U_STABLE (not U_INTERNAL) since it is called by public macros in this
+ * file and thus must remain stable, and should not be hidden when other internal
+ * functions are hidden (otherwise public macros would fail to compile).
+ * @internal
+ */
+U_STABLE int32_t U_EXPORT2
+utf8_appendCharSafeBody(uint8_t *s, int32_t i, int32_t length, UChar32 c, UBool *pIsError);
+
+/**
+ * Function for handling "previous code point" with error-checking.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is U_STABLE (not U_INTERNAL) since it is called by public macros in this
+ * file and thus must remain stable, and should not be hidden when other internal
+ * functions are hidden (otherwise public macros would fail to compile).
+ * @internal
+ */
+U_STABLE UChar32 U_EXPORT2
+utf8_prevCharSafeBody(const uint8_t *s, int32_t start, int32_t *pi, UChar32 c, UBool strict);
+
+/**
+ * Function for handling "skip backward one code point" with error-checking.
+ *
+ * This is internal since it is not meant to be called directly by external clients;
+ * however it is U_STABLE (not U_INTERNAL) since it is called by public macros in this
+ * file and thus must remain stable, and should not be hidden when other internal
+ * functions are hidden (otherwise public macros would fail to compile).
+ * @internal
+ */
+U_STABLE int32_t U_EXPORT2
+utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
+
+/* single-code point definitions -------------------------------------------- */
+
+/**
+ * Does this code unit (byte) encode a code point by itself (US-ASCII 0..0x7f)?
+ * @param c 8-bit code unit (byte)
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U8_IS_SINGLE(c) (((c)&0x80)==0)
+
+/**
+ * Is this code unit (byte) a UTF-8 lead byte?
+ * @param c 8-bit code unit (byte)
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U8_IS_LEAD(c) ((uint8_t)((c)-0xc0)<0x3e)
+
+/**
+ * Is this code unit (byte) a UTF-8 trail byte?
+ * @param c 8-bit code unit (byte)
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U8_IS_TRAIL(c) (((c)&0xc0)==0x80)
+
+/**
+ * How many code units (bytes) are used for the UTF-8 encoding
+ * of this Unicode code point?
+ * @param c 32-bit code point
+ * @return 1..4, or 0 if c is a surrogate or not a Unicode code point
+ * @stable ICU 2.4
+ */
+#define U8_LENGTH(c) \
+    ((uint32_t)(c)<=0x7f ? 1 : \
+        ((uint32_t)(c)<=0x7ff ? 2 : \
+            ((uint32_t)(c)<=0xd7ff ? 3 : \
+                ((uint32_t)(c)<=0xdfff || (uint32_t)(c)>0x10ffff ? 0 : \
+                    ((uint32_t)(c)<=0xffff ? 3 : 4)\
+                ) \
+            ) \
+        ) \
+    )
+
+/**
+ * The maximum number of UTF-8 code units (bytes) per Unicode code point (U+0000..U+10ffff).
+ * @return 4
+ * @stable ICU 2.4
+ */
+#define U8_MAX_LENGTH 4
+
+/**
+ * Get a code point from a string at a random-access offset,
+ * without changing the offset.
+ * The offset may point to either the lead byte or one of the trail bytes
+ * for a code point, in which case the macro will read all of the bytes
+ * for the code point.
+ * The result is undefined if the offset points to an illegal UTF-8
+ * byte sequence.
+ * Iteration through a string is more efficient with U8_NEXT_UNSAFE or U8_NEXT.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @param c output UChar32 variable
+ * @see U8_GET
+ * @stable ICU 2.4
+ */
+#define U8_GET_UNSAFE(s, i, c) { \
+    int32_t _u8_get_unsafe_index=(int32_t)(i); \
+    U8_SET_CP_START_UNSAFE(s, _u8_get_unsafe_index); \
+    U8_NEXT_UNSAFE(s, _u8_get_unsafe_index, c); \
+}
+
+/**
+ * Get a code point from a string at a random-access offset,
+ * without changing the offset.
+ * The offset may point to either the lead byte or one of the trail bytes
+ * for a code point, in which case the macro will read all of the bytes
+ * for the code point.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * If the offset points to an illegal UTF-8 byte sequence, then
+ * c is set to a negative value.
+ * Iteration through a string is more efficient with U8_NEXT_UNSAFE or U8_NEXT.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset
+ * @param i int32_t string offset, must be start<=i=0x80) { \
+        if((c)<0xe0) { \
+            (c)=(((c)&0x1f)<<6)|((s)[(i)++]&0x3f); \
+        } else if((c)<0xf0) { \
+            /* no need for (c&0xf) because the upper bits are truncated after <<12 in the cast to (UChar) */ \
+            (c)=(UChar)(((c)<<12)|(((s)[i]&0x3f)<<6)|((s)[(i)+1]&0x3f)); \
+            (i)+=2; \
+        } else { \
+            (c)=(((c)&7)<<18)|(((s)[i]&0x3f)<<12)|(((s)[(i)+1]&0x3f)<<6)|((s)[(i)+2]&0x3f); \
+            (i)+=3; \
+        } \
+    } \
+}
+
+/**
+ * Get a code point from a string at a code point boundary offset,
+ * and advance the offset to the next code point boundary.
+ * (Post-incrementing forward iteration.)
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * The offset may point to the lead byte of a multi-byte sequence,
+ * in which case the macro will read the whole sequence.
+ * If the offset points to a trail byte or an illegal UTF-8 sequence, then
+ * c is set to a negative value.
+ *
+ * @param s const uint8_t * string
+ * @param i int32_t string offset, must be i=0x80) { \
+        uint8_t __t1, __t2; \
+        if( /* handle U+1000..U+CFFF inline */ \
+            (0xe0<(c) && (c)<=0xec) && \
+            (((i)+1)<(length) || (length)<0) && \
+            (__t1=(uint8_t)((s)[i]-0x80))<=0x3f && \
+            (__t2=(uint8_t)((s)[(i)+1]-0x80))<= 0x3f \
+        ) { \
+            /* no need for (c&0xf) because the upper bits are truncated after <<12 in the cast to (UChar) */ \
+            (c)=(UChar)(((c)<<12)|(__t1<<6)|__t2); \
+            (i)+=2; \
+        } else if( /* handle U+0080..U+07FF inline */ \
+            ((c)<0xe0 && (c)>=0xc2) && \
+            ((i)!=(length)) && \
+            (__t1=(uint8_t)((s)[i]-0x80))<=0x3f \
+        ) { \
+            (c)=(((c)&0x1f)<<6)|__t1; \
+            ++(i); \
+        } else { \
+            /* function call for "complicated" and error cases */ \
+            (c)=utf8_nextCharSafeBody((const uint8_t *)s, &(i), (length), c, -1); \
+        } \
+    } \
+}
+
+/**
+ * Get a code point from a string at a code point boundary offset,
+ * and advance the offset to the next code point boundary.
+ * (Post-incrementing forward iteration.)
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * The offset may point to the lead byte of a multi-byte sequence,
+ * in which case the macro will read the whole sequence.
+ * If the offset points to a trail byte or an illegal UTF-8 sequence, then
+ * c is set to U+FFFD.
+ *
+ * This macro does not distinguish between a real U+FFFD in the text
+ * and U+FFFD returned for an ill-formed sequence.
+ * Use U8_NEXT() if that distinction is important.
+ *
+ * @param s const uint8_t * string
+ * @param i int32_t string offset, must be i=0x80) { \
+        uint8_t __t1, __t2; \
+        if( /* handle U+1000..U+CFFF inline */ \
+            (0xe0<(c) && (c)<=0xec) && \
+            (((i)+1)<(length) || (length)<0) && \
+            (__t1=(uint8_t)((s)[i]-0x80))<=0x3f && \
+            (__t2=(uint8_t)((s)[(i)+1]-0x80))<= 0x3f \
+        ) { \
+            /* no need for (c&0xf) because the upper bits are truncated after <<12 in the cast to (UChar) */ \
+            (c)=(UChar)(((c)<<12)|(__t1<<6)|__t2); \
+            (i)+=2; \
+        } else if( /* handle U+0080..U+07FF inline */ \
+            ((c)<0xe0 && (c)>=0xc2) && \
+            ((i)!=(length)) && \
+            (__t1=(uint8_t)((s)[i]-0x80))<=0x3f \
+        ) { \
+            (c)=(((c)&0x1f)<<6)|__t1; \
+            ++(i); \
+        } else { \
+            /* function call for "complicated" and error cases */ \
+            (c)=utf8_nextCharSafeBody((const uint8_t *)s, &(i), (length), c, -3); \
+        } \
+    } \
+}
+
+/**
+ * Append a code point to a string, overwriting 1 to 4 bytes.
+ * The offset points to the current end of the string contents
+ * and is advanced (post-increment).
+ * "Unsafe" macro, assumes a valid code point and sufficient space in the string.
+ * Otherwise, the result is undefined.
+ *
+ * @param s const uint8_t * string buffer
+ * @param i string offset
+ * @param c code point to append
+ * @see U8_APPEND
+ * @stable ICU 2.4
+ */
+#define U8_APPEND_UNSAFE(s, i, c) { \
+    if((uint32_t)(c)<=0x7f) { \
+        (s)[(i)++]=(uint8_t)(c); \
+    } else { \
+        if((uint32_t)(c)<=0x7ff) { \
+            (s)[(i)++]=(uint8_t)(((c)>>6)|0xc0); \
+        } else { \
+            if((uint32_t)(c)<=0xffff) { \
+                (s)[(i)++]=(uint8_t)(((c)>>12)|0xe0); \
+            } else { \
+                (s)[(i)++]=(uint8_t)(((c)>>18)|0xf0); \
+                (s)[(i)++]=(uint8_t)((((c)>>12)&0x3f)|0x80); \
+            } \
+            (s)[(i)++]=(uint8_t)((((c)>>6)&0x3f)|0x80); \
+        } \
+        (s)[(i)++]=(uint8_t)(((c)&0x3f)|0x80); \
+    } \
+}
+
+/**
+ * Append a code point to a string, overwriting 1 to 4 bytes.
+ * The offset points to the current end of the string contents
+ * and is advanced (post-increment).
+ * "Safe" macro, checks for a valid code point.
+ * If a non-ASCII code point is written, checks for sufficient space in the string.
+ * If the code point is not valid or trail bytes do not fit,
+ * then isError is set to TRUE.
+ *
+ * @param s const uint8_t * string buffer
+ * @param i int32_t string offset, must be i>6)|0xc0); \
+        (s)[(i)++]=(uint8_t)(((c)&0x3f)|0x80); \
+    } else if((uint32_t)(c)<=0xd7ff && (i)+2<(capacity)) { \
+        (s)[(i)++]=(uint8_t)(((c)>>12)|0xe0); \
+        (s)[(i)++]=(uint8_t)((((c)>>6)&0x3f)|0x80); \
+        (s)[(i)++]=(uint8_t)(((c)&0x3f)|0x80); \
+    } else { \
+        (i)=utf8_appendCharSafeBody(s, (i), (capacity), c, &(isError)); \
+    } \
+}
+
+/**
+ * Advance the string offset from one code point boundary to the next.
+ * (Post-incrementing iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @see U8_FWD_1
+ * @stable ICU 2.4
+ */
+#define U8_FWD_1_UNSAFE(s, i) { \
+    (i)+=1+U8_COUNT_TRAIL_BYTES_UNSAFE((uint8_t)(s)[i]); \
+}
+
+/**
+ * Advance the string offset from one code point boundary to the next.
+ * (Post-incrementing iteration.)
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const uint8_t * string
+ * @param i int32_t string offset, must be i(length) && (length)>=0) { \
+            __count=(uint8_t)((length)-(i)); \
+        } \
+        while(__count>0 && U8_IS_TRAIL((s)[i])) { \
+            ++(i); \
+            --__count; \
+        } \
+    } \
+}
+
+/**
+ * Advance the string offset from one code point boundary to the n-th next one,
+ * i.e., move forward by n code points.
+ * (Post-incrementing iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @param n number of code points to skip
+ * @see U8_FWD_N
+ * @stable ICU 2.4
+ */
+#define U8_FWD_N_UNSAFE(s, i, n) { \
+    int32_t __N=(n); \
+    while(__N>0) { \
+        U8_FWD_1_UNSAFE(s, i); \
+        --__N; \
+    } \
+}
+
+/**
+ * Advance the string offset from one code point boundary to the n-th next one,
+ * i.e., move forward by n code points.
+ * (Post-incrementing iteration.)
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const uint8_t * string
+ * @param i int32_t string offset, must be i0 && ((i)<(length) || ((length)<0 && (s)[i]!=0))) { \
+        U8_FWD_1(s, i, length); \
+        --__N; \
+    } \
+}
+
+/**
+ * Adjust a random-access offset to a code point boundary
+ * at the start of a code point.
+ * If the offset points to a UTF-8 trail byte,
+ * then the offset is moved backward to the corresponding lead byte.
+ * Otherwise, it is not modified.
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @see U8_SET_CP_START
+ * @stable ICU 2.4
+ */
+#define U8_SET_CP_START_UNSAFE(s, i) { \
+    while(U8_IS_TRAIL((s)[i])) { --(i); } \
+}
+
+/**
+ * Adjust a random-access offset to a code point boundary
+ * at the start of a code point.
+ * If the offset points to a UTF-8 trail byte,
+ * then the offset is moved backward to the corresponding lead byte.
+ * Otherwise, it is not modified.
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param i int32_t string offset, must be start<=i
+ * @see U8_SET_CP_START_UNSAFE
+ * @stable ICU 2.4
+ */
+#define U8_SET_CP_START(s, start, i) { \
+    if(U8_IS_TRAIL((s)[(i)])) { \
+        (i)=utf8_back1SafeBody(s, start, (i)); \
+    } \
+}
+
+/* definitions with backward iteration -------------------------------------- */
+
+/**
+ * Move the string offset from one code point boundary to the previous one
+ * and get the code point between them.
+ * (Pre-decrementing backward iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * The input offset may be the same as the string length.
+ * If the offset is behind a multi-byte sequence, then the macro will read
+ * the whole sequence.
+ * If the offset is behind a lead byte, then that itself
+ * will be returned as the code point.
+ * The result is undefined if the offset is behind an illegal UTF-8 sequence.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @param c output UChar32 variable
+ * @see U8_PREV
+ * @stable ICU 2.4
+ */
+#define U8_PREV_UNSAFE(s, i, c) { \
+    (c)=(uint8_t)(s)[--(i)]; \
+    if(U8_IS_TRAIL(c)) { \
+        uint8_t __b, __count=1, __shift=6; \
+\
+        /* c is a trail byte */ \
+        (c)&=0x3f; \
+        for(;;) { \
+            __b=(uint8_t)(s)[--(i)]; \
+            if(__b>=0xc0) { \
+                U8_MASK_LEAD_BYTE(__b, __count); \
+                (c)|=(UChar32)__b<<__shift; \
+                break; \
+            } else { \
+                (c)|=(UChar32)(__b&0x3f)<<__shift; \
+                ++__count; \
+                __shift+=6; \
+            } \
+        } \
+    } \
+}
+
+/**
+ * Move the string offset from one code point boundary to the previous one
+ * and get the code point between them.
+ * (Pre-decrementing backward iteration.)
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The input offset may be the same as the string length.
+ * If the offset is behind a multi-byte sequence, then the macro will read
+ * the whole sequence.
+ * If the offset is behind a lead byte, then that itself
+ * will be returned as the code point.
+ * If the offset is behind an illegal UTF-8 sequence, then c is set to a negative value.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param i int32_t string offset, must be start=0x80) { \
+        (c)=utf8_prevCharSafeBody((const uint8_t *)s, start, &(i), c, -1); \
+    } \
+}
+
+/**
+ * Move the string offset from one code point boundary to the previous one
+ * and get the code point between them.
+ * (Pre-decrementing backward iteration.)
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The input offset may be the same as the string length.
+ * If the offset is behind a multi-byte sequence, then the macro will read
+ * the whole sequence.
+ * If the offset is behind a lead byte, then that itself
+ * will be returned as the code point.
+ * If the offset is behind an illegal UTF-8 sequence, then c is set to U+FFFD.
+ *
+ * This macro does not distinguish between a real U+FFFD in the text
+ * and U+FFFD returned for an ill-formed sequence.
+ * Use U8_PREV() if that distinction is important.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param i int32_t string offset, must be start=0x80) { \
+        (c)=utf8_prevCharSafeBody((const uint8_t *)s, start, &(i), c, -3); \
+    } \
+}
+
+/**
+ * Move the string offset from one code point boundary to the previous one.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @see U8_BACK_1
+ * @stable ICU 2.4
+ */
+#define U8_BACK_1_UNSAFE(s, i) { \
+    while(U8_IS_TRAIL((s)[--(i)])) {} \
+}
+
+/**
+ * Move the string offset from one code point boundary to the previous one.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param i int32_t string offset, must be start0) { \
+        U8_BACK_1_UNSAFE(s, i); \
+        --__N; \
+    } \
+}
+
+/**
+ * Move the string offset from one code point boundary to the n-th one before it,
+ * i.e., move backward by n code points.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t index of the start of the string
+ * @param i int32_t string offset, must be start0 && (i)>(start)) { \
+        U8_BACK_1(s, start, i); \
+        --__N; \
+    } \
+}
+
+/**
+ * Adjust a random-access offset to a code point boundary after a code point.
+ * If the offset is behind a partial multi-byte sequence,
+ * then the offset is incremented to behind the whole sequence.
+ * Otherwise, it is not modified.
+ * The input offset may be the same as the string length.
+ * "Unsafe" macro, assumes well-formed UTF-8.
+ *
+ * @param s const uint8_t * string
+ * @param i string offset
+ * @see U8_SET_CP_LIMIT
+ * @stable ICU 2.4
+ */
+#define U8_SET_CP_LIMIT_UNSAFE(s, i) { \
+    U8_BACK_1_UNSAFE(s, i); \
+    U8_FWD_1_UNSAFE(s, i); \
+}
+
+/**
+ * Adjust a random-access offset to a code point boundary after a code point.
+ * If the offset is behind a partial multi-byte sequence,
+ * then the offset is incremented to behind the whole sequence.
+ * Otherwise, it is not modified.
+ * The input offset may be the same as the string length.
+ * "Safe" macro, checks for illegal sequences and for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const uint8_t * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param i int32_t string offset, must be start<=i<=length
+ * @param length int32_t string length
+ * @see U8_SET_CP_LIMIT_UNSAFE
+ * @stable ICU 2.4
+ */
+#define U8_SET_CP_LIMIT(s, start, i, length) { \
+    if((start)<(i) && ((i)<(length) || (length)<0)) { \
+        U8_BACK_1(s, start, i); \
+        U8_FWD_1(s, i, length); \
+    } \
+}
+
+#endif
+
+// utf16.h
+/*
+*******************************************************************************
+*
+*   Copyright (C) 1999-2012, International Business Machines
+*   Corporation and others.  All Rights Reserved.
+*
+*******************************************************************************
+*   file name:  utf16.h
+*   encoding:   US-ASCII
+*   tab size:   8 (not used)
+*   indentation:4
+*
+*   created on: 1999sep09
+*   created by: Markus W. Scherer
+*/
+
+/**
+ * \file
+ * \brief C API: 16-bit Unicode handling macros
+ * 
+ * This file defines macros to deal with 16-bit Unicode (UTF-16) code units and strings.
+ *
+ * For more information see utf.h and the ICU User Guide Strings chapter
+ * (http://userguide.icu-project.org/strings).
+ *
+ * Usage:
+ * ICU coding guidelines for if() statements should be followed when using these macros.
+ * Compound statements (curly braces {}) must be used  for if-else-while... 
+ * bodies and all macro statements should be terminated with semicolon.
+ */
+
+#ifndef __UTF16_H__
+#define __UTF16_H__
+
+#ifndef __UTF_H__
+#   include "icu/utf.h"
+#endif
+
+/* single-code point definitions -------------------------------------------- */
+
+/**
+ * Does this code unit alone encode a code point (BMP, not a surrogate)?
+ * @param c 16-bit code unit
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U16_IS_SINGLE(c) !U_IS_SURROGATE(c)
+
+/**
+ * Is this code unit a lead surrogate (U+d800..U+dbff)?
+ * @param c 16-bit code unit
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
+
+/**
+ * Is this code unit a trail surrogate (U+dc00..U+dfff)?
+ * @param c 16-bit code unit
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
+
+/**
+ * Is this code unit a surrogate (U+d800..U+dfff)?
+ * @param c 16-bit code unit
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
+
+/**
+ * Assuming c is a surrogate code point (U16_IS_SURROGATE(c)),
+ * is it a lead surrogate?
+ * @param c 16-bit code unit
+ * @return TRUE or FALSE
+ * @stable ICU 2.4
+ */
+#define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
+
+/**
+ * Assuming c is a surrogate code point (U16_IS_SURROGATE(c)),
+ * is it a trail surrogate?
+ * @param c 16-bit code unit
+ * @return TRUE or FALSE
+ * @stable ICU 4.2
+ */
+#define U16_IS_SURROGATE_TRAIL(c) (((c)&0x400)!=0)
+
+/**
+ * Helper constant for U16_GET_SUPPLEMENTARY.
+ * @internal
+ */
+#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
+
+/**
+ * Get a supplementary code point value (U+10000..U+10ffff)
+ * from its lead and trail surrogates.
+ * The result is undefined if the input values are not
+ * lead and trail surrogates.
+ *
+ * @param lead lead surrogate (U+d800..U+dbff)
+ * @param trail trail surrogate (U+dc00..U+dfff)
+ * @return supplementary code point (U+10000..U+10ffff)
+ * @stable ICU 2.4
+ */
+#define U16_GET_SUPPLEMENTARY(lead, trail) \
+    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
+
+
+/**
+ * Get the lead surrogate (0xd800..0xdbff) for a
+ * supplementary code point (0x10000..0x10ffff).
+ * @param supplementary 32-bit code point (U+10000..U+10ffff)
+ * @return lead surrogate (U+d800..U+dbff) for supplementary
+ * @stable ICU 2.4
+ */
+#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
+
+/**
+ * Get the trail surrogate (0xdc00..0xdfff) for a
+ * supplementary code point (0x10000..0x10ffff).
+ * @param supplementary 32-bit code point (U+10000..U+10ffff)
+ * @return trail surrogate (U+dc00..U+dfff) for supplementary
+ * @stable ICU 2.4
+ */
+#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
+
+/**
+ * How many 16-bit code units are used to encode this Unicode code point? (1 or 2)
+ * The result is not defined if c is not a Unicode code point (U+0000..U+10ffff).
+ * @param c 32-bit code point
+ * @return 1 or 2
+ * @stable ICU 2.4
+ */
+#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
+
+/**
+ * The maximum number of 16-bit code units per Unicode code point (U+0000..U+10ffff).
+ * @return 2
+ * @stable ICU 2.4
+ */
+#define U16_MAX_LENGTH 2
+
+/**
+ * Get a code point from a string at a random-access offset,
+ * without changing the offset.
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * The offset may point to either the lead or trail surrogate unit
+ * for a supplementary code point, in which case the macro will read
+ * the adjacent matching surrogate as well.
+ * The result is undefined if the offset points to a single, unpaired surrogate.
+ * Iteration through a string is more efficient with U16_NEXT_UNSAFE or U16_NEXT.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @param c output UChar32 variable
+ * @see U16_GET
+ * @stable ICU 2.4
+ */
+#define U16_GET_UNSAFE(s, i, c) { \
+    (c)=(s)[i]; \
+    if(U16_IS_SURROGATE(c)) { \
+        if(U16_IS_SURROGATE_LEAD(c)) { \
+            (c)=U16_GET_SUPPLEMENTARY((c), (s)[(i)+1]); \
+        } else { \
+            (c)=U16_GET_SUPPLEMENTARY((s)[(i)-1], (c)); \
+        } \
+    } \
+}
+
+/**
+ * Get a code point from a string at a random-access offset,
+ * without changing the offset.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The offset may point to either the lead or trail surrogate unit
+ * for a supplementary code point, in which case the macro will read
+ * the adjacent matching surrogate as well.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * If the offset points to a single, unpaired surrogate, then that itself
+ * will be returned as the code point.
+ * Iteration through a string is more efficient with U16_NEXT_UNSAFE or U16_NEXT.
+ *
+ * @param s const UChar * string
+ * @param start starting string offset (usually 0)
+ * @param i string offset, must be start<=i(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
+                (c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
+            } \
+        } \
+    } \
+}
+
+/* definitions with forward iteration --------------------------------------- */
+
+/**
+ * Get a code point from a string at a code point boundary offset,
+ * and advance the offset to the next code point boundary.
+ * (Post-incrementing forward iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * The offset may point to the lead surrogate unit
+ * for a supplementary code point, in which case the macro will read
+ * the following trail surrogate as well.
+ * If the offset points to a trail surrogate, then that itself
+ * will be returned as the code point.
+ * The result is undefined if the offset points to a single, unpaired lead surrogate.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @param c output UChar32 variable
+ * @see U16_NEXT
+ * @stable ICU 2.4
+ */
+#define U16_NEXT_UNSAFE(s, i, c) { \
+    (c)=(s)[(i)++]; \
+    if(U16_IS_LEAD(c)) { \
+        (c)=U16_GET_SUPPLEMENTARY((c), (s)[(i)++]); \
+    } \
+}
+
+/**
+ * Get a code point from a string at a code point boundary offset,
+ * and advance the offset to the next code point boundary.
+ * (Post-incrementing forward iteration.)
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * The offset may point to the lead surrogate unit
+ * for a supplementary code point, in which case the macro will read
+ * the following trail surrogate as well.
+ * If the offset points to a trail surrogate or
+ * to a single, unpaired lead surrogate, then that itself
+ * will be returned as the code point.
+ *
+ * @param s const UChar * string
+ * @param i string offset, must be i>10)+0xd7c0); \
+        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
+    } \
+}
+
+/**
+ * Append a code point to a string, overwriting 1 or 2 code units.
+ * The offset points to the current end of the string contents
+ * and is advanced (post-increment).
+ * "Safe" macro, checks for a valid code point.
+ * If a surrogate pair is written, checks for sufficient space in the string.
+ * If the code point is not valid or a trail surrogate does not fit,
+ * then isError is set to TRUE.
+ *
+ * @param s const UChar * string buffer
+ * @param i string offset, must be i>10)+0xd7c0); \
+        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
+    } else /* c>0x10ffff or not enough space */ { \
+        (isError)=TRUE; \
+    } \
+}
+
+/**
+ * Advance the string offset from one code point boundary to the next.
+ * (Post-incrementing iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @see U16_FWD_1
+ * @stable ICU 2.4
+ */
+#define U16_FWD_1_UNSAFE(s, i) { \
+    if(U16_IS_LEAD((s)[(i)++])) { \
+        ++(i); \
+    } \
+}
+
+/**
+ * Advance the string offset from one code point boundary to the next.
+ * (Post-incrementing iteration.)
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const UChar * string
+ * @param i string offset, must be i0) { \
+        U16_FWD_1_UNSAFE(s, i); \
+        --__N; \
+    } \
+}
+
+/**
+ * Advance the string offset from one code point boundary to the n-th next one,
+ * i.e., move forward by n code points.
+ * (Post-incrementing iteration.)
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const UChar * string
+ * @param i int32_t string offset, must be i0 && ((i)<(length) || ((length)<0 && (s)[i]!=0))) { \
+        U16_FWD_1(s, i, length); \
+        --__N; \
+    } \
+}
+
+/**
+ * Adjust a random-access offset to a code point boundary
+ * at the start of a code point.
+ * If the offset points to the trail surrogate of a surrogate pair,
+ * then the offset is decremented.
+ * Otherwise, it is not modified.
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @see U16_SET_CP_START
+ * @stable ICU 2.4
+ */
+#define U16_SET_CP_START_UNSAFE(s, i) { \
+    if(U16_IS_TRAIL((s)[i])) { \
+        --(i); \
+    } \
+}
+
+/**
+ * Adjust a random-access offset to a code point boundary
+ * at the start of a code point.
+ * If the offset points to the trail surrogate of a surrogate pair,
+ * then the offset is decremented.
+ * Otherwise, it is not modified.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * @param s const UChar * string
+ * @param start starting string offset (usually 0)
+ * @param i string offset, must be start<=i
+ * @see U16_SET_CP_START_UNSAFE
+ * @stable ICU 2.4
+ */
+#define U16_SET_CP_START(s, start, i) { \
+    if(U16_IS_TRAIL((s)[i]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
+        --(i); \
+    } \
+}
+
+/* definitions with backward iteration -------------------------------------- */
+
+/**
+ * Move the string offset from one code point boundary to the previous one
+ * and get the code point between them.
+ * (Pre-decrementing backward iteration.)
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * The input offset may be the same as the string length.
+ * If the offset is behind a trail surrogate unit
+ * for a supplementary code point, then the macro will read
+ * the preceding lead surrogate as well.
+ * If the offset is behind a lead surrogate, then that itself
+ * will be returned as the code point.
+ * The result is undefined if the offset is behind a single, unpaired trail surrogate.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @param c output UChar32 variable
+ * @see U16_PREV
+ * @stable ICU 2.4
+ */
+#define U16_PREV_UNSAFE(s, i, c) { \
+    (c)=(s)[--(i)]; \
+    if(U16_IS_TRAIL(c)) { \
+        (c)=U16_GET_SUPPLEMENTARY((s)[--(i)], (c)); \
+    } \
+}
+
+/**
+ * Move the string offset from one code point boundary to the previous one
+ * and get the code point between them.
+ * (Pre-decrementing backward iteration.)
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The input offset may be the same as the string length.
+ * If the offset is behind a trail surrogate unit
+ * for a supplementary code point, then the macro will read
+ * the preceding lead surrogate as well.
+ * If the offset is behind a lead surrogate or behind a single, unpaired
+ * trail surrogate, then that itself
+ * will be returned as the code point.
+ *
+ * @param s const UChar * string
+ * @param start starting string offset (usually 0)
+ * @param i string offset, must be start(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
+            --(i); \
+            (c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
+        } \
+    } \
+}
+
+/**
+ * Move the string offset from one code point boundary to the previous one.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @see U16_BACK_1
+ * @stable ICU 2.4
+ */
+#define U16_BACK_1_UNSAFE(s, i) { \
+    if(U16_IS_TRAIL((s)[--(i)])) { \
+        --(i); \
+    } \
+}
+
+/**
+ * Move the string offset from one code point boundary to the previous one.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * @param s const UChar * string
+ * @param start starting string offset (usually 0)
+ * @param i string offset, must be start(start) && U16_IS_LEAD((s)[(i)-1])) { \
+        --(i); \
+    } \
+}
+
+/**
+ * Move the string offset from one code point boundary to the n-th one before it,
+ * i.e., move backward by n code points.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @param n number of code points to skip
+ * @see U16_BACK_N
+ * @stable ICU 2.4
+ */
+#define U16_BACK_N_UNSAFE(s, i, n) { \
+    int32_t __N=(n); \
+    while(__N>0) { \
+        U16_BACK_1_UNSAFE(s, i); \
+        --__N; \
+    } \
+}
+
+/**
+ * Move the string offset from one code point boundary to the n-th one before it,
+ * i.e., move backward by n code points.
+ * (Pre-decrementing backward iteration.)
+ * The input offset may be the same as the string length.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * @param s const UChar * string
+ * @param start start of string
+ * @param i string offset, must be start0 && (i)>(start)) { \
+        U16_BACK_1(s, start, i); \
+        --__N; \
+    } \
+}
+
+/**
+ * Adjust a random-access offset to a code point boundary after a code point.
+ * If the offset is behind the lead surrogate of a surrogate pair,
+ * then the offset is incremented.
+ * Otherwise, it is not modified.
+ * The input offset may be the same as the string length.
+ * "Unsafe" macro, assumes well-formed UTF-16.
+ *
+ * @param s const UChar * string
+ * @param i string offset
+ * @see U16_SET_CP_LIMIT
+ * @stable ICU 2.4
+ */
+#define U16_SET_CP_LIMIT_UNSAFE(s, i) { \
+    if(U16_IS_LEAD((s)[(i)-1])) { \
+        ++(i); \
+    } \
+}
+
+/**
+ * Adjust a random-access offset to a code point boundary after a code point.
+ * If the offset is behind the lead surrogate of a surrogate pair,
+ * then the offset is incremented.
+ * Otherwise, it is not modified.
+ * The input offset may be the same as the string length.
+ * "Safe" macro, handles unpaired surrogates and checks for string boundaries.
+ *
+ * The length can be negative for a NUL-terminated string.
+ *
+ * @param s const UChar * string
+ * @param start int32_t starting string offset (usually 0)
+ * @param i int32_t string offset, start<=i<=length
+ * @param length int32_t string length
+ * @see U16_SET_CP_LIMIT_UNSAFE
+ * @stable ICU 2.4
+ */
+#define U16_SET_CP_LIMIT(s, start, i, length) { \
+    if((start)<(i) && ((i)<(length) || (length)<0) && U16_IS_LEAD((s)[(i)-1]) && U16_IS_TRAIL((s)[i])) { \
+        ++(i); \
+    } \
+}
+
+#endif
+
+// uversion.h
+/*
+*******************************************************************************
+*   Copyright (C) 2000-2011, International Business Machines
+*   Corporation and others.  All Rights Reserved.
+*******************************************************************************
+*
+*   file name:  uversion.h
+*   encoding:   US-ASCII
+*   tab size:   8 (not used)
+*   indentation:4
+*
+*   Created by: Vladimir Weinstein
+*
+*  Gets included by utypes.h and Windows .rc files
+*/
+
+/**
+ * \file
+ * \brief C API: API for accessing ICU version numbers. 
+ */
+/*===========================================================================*/
+/* Main ICU version information                                              */
+/*===========================================================================*/
+
+#ifndef UVERSION_H
+#define UVERSION_H
+
+
+/* Actual version info lives in uvernum.h */
+
+/** Maximum length of the copyright string.
+ *  @stable ICU 2.4
+ */
+#define U_COPYRIGHT_STRING_LENGTH  128
+
+/** An ICU version consists of up to 4 numbers from 0..255.
+ *  @stable ICU 2.4
+ */
+#define U_MAX_VERSION_LENGTH 4
+
+/** In a string, ICU version fields are delimited by dots.
+ *  @stable ICU 2.4
+ */
+#define U_VERSION_DELIMITER '.'
+
+/** The maximum length of an ICU version string.
+ *  @stable ICU 2.4
+ */
+#define U_MAX_VERSION_STRING_LENGTH 20
+
+/** The binary form of a version on ICU APIs is an array of 4 uint8_t.
+ *  To compare two versions, use memcmp(v1,v2,sizeof(UVersionInfo)).
+ *  @stable ICU 2.4
+ */
+typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH];
+
+/*===========================================================================*/
+/* C++ namespace if supported. Versioned unless versioning is disabled.      */
+/*===========================================================================*/
+
+/**
+ * This is used to end a declaration of a public ICU C++ API.
+ * When not compiling for C++, it does nothing.
+ * When compiling for C++, it ends the extern "C++" block begun by
+#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
+#   define U_NAMESPACE_QUALIFIER U_ICU_NAMESPACE::
+
+#   ifndef U_USING_ICU_NAMESPACE
+#       define U_USING_ICU_NAMESPACE 1
+#   endif
+#   if U_USING_ICU_NAMESPACE
+        U_NAMESPACE_USE
+#   endif
+#else
+#   define U_NAMESPACE_USE
+#   define U_NAMESPACE_QUALIFIER
+#endif
+
+/*===========================================================================*/
+/* General version helper functions. Definitions in putil.c                  */
+/*===========================================================================*/
+
+/**
+ * Parse a string with dotted-decimal version information and
+ * fill in a UVersionInfo structure with the result.
+ * Definition of this function lives in putil.c
+ *
+ * @param versionArray The destination structure for the version information.
+ * @param versionString A string with dotted-decimal version information,
+ *                      with up to four non-negative number fields with
+ *                      values of up to 255 each.
+ * @stable ICU 2.4
+ */
+U_STABLE void U_EXPORT2
+u_versionFromString(UVersionInfo versionArray, const char *versionString);
+
+/**
+ * Parse a Unicode string with dotted-decimal version information and
+ * fill in a UVersionInfo structure with the result.
+ * Definition of this function lives in putil.c
+ *
+ * @param versionArray The destination structure for the version information.
+ * @param versionString A Unicode string with dotted-decimal version
+ *                      information, with up to four non-negative number
+ *                      fields with values of up to 255 each.
+ * @stable ICU 4.2
+ */
+U_STABLE void U_EXPORT2
+u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
+
+
+/**
+ * Write a string with dotted-decimal version information according
+ * to the input UVersionInfo.
+ * Definition of this function lives in putil.c
+ *
+ * @param versionArray The version information to be written as a string.
+ * @param versionString A string buffer that will be filled in with
+ *                      a string corresponding to the numeric version
+ *                      information in versionArray.
+ *                      The buffer size must be at least U_MAX_VERSION_STRING_LENGTH.
+ * @stable ICU 2.4
+ */
+U_STABLE void U_EXPORT2
+u_versionToString(const UVersionInfo versionArray, char *versionString);
+
+/**
+ * Gets the ICU release version.  The version array stores the version information
+ * for ICU.  For example, release "1.3.31.2" is then represented as 0x01031F02.
+ * Definition of this function lives in putil.c
+ *
+ * @param versionArray the version # information, the result will be filled in
+ * @stable ICU 2.0
+ */
+U_STABLE void U_EXPORT2
+u_getVersion(UVersionInfo versionArray);
+#endif
+
+// utypes.h
+/*
+**********************************************************************
+*   Copyright (C) 1996-2016, International Business Machines
+*   Corporation and others.  All Rights Reserved.
+**********************************************************************
+*
+*  FILE NAME : UTYPES.H (formerly ptypes.h)
+*
+*   Date        Name        Description
+*   12/11/96    helena      Creation.
+*   02/27/97    aliu        Added typedefs for UClassID, int8, int16, int32,
+*                           uint8, uint16, and uint32.
+*   04/01/97    aliu        Added XP_CPLUSPLUS and modified to work under C as
+*                            well as C++.
+*                           Modified to use memcpy() for uprv_arrayCopy() fns.
+*   04/14/97    aliu        Added TPlatformUtilities.
+*   05/07/97    aliu        Added import/export specifiers (replacing the old
+*                           broken EXT_CLASS).  Added version number for our
+*                           code.  Cleaned up header.
+*    6/20/97    helena      Java class name change.
+*   08/11/98    stephen     UErrorCode changed from typedef to enum
+*   08/12/98    erm         Changed T_ANALYTIC_PACKAGE_VERSION to 3
+*   08/14/98    stephen     Added uprv_arrayCopy() for int8_t, int16_t, int32_t
+*   12/09/98    jfitz       Added BUFFER_OVERFLOW_ERROR (bug 1100066)
+*   04/20/99    stephen     Cleaned up & reworked for autoconf.
+*                           Renamed to utypes.h.
+*   05/05/99    stephen     Changed to use 
+*   12/07/99    helena      Moved copyright notice string from ucnv_bld.h here.
+*******************************************************************************
+*/
+
+#ifndef UTYPES_H
+#define UTYPES_H
+
+
+#include 
+
+
+/*!
+ * \file
+ * \brief Basic definitions for ICU, for both C and C++ APIs
+ *
+ * This file defines basic types, constants, and enumerations directly or
+ * indirectly by including other header files, especially utf.h for the
+ * basic character and string definitions and umachine.h for consistent
+ * integer and other types.
+ */
+
+
+/**
+ * \def U_SHOW_CPLUSPLUS_API
+ * @internal
+ */
+#ifdef __cplusplus
+#   ifndef U_SHOW_CPLUSPLUS_API
+#   endif
+#else
+#   undef U_SHOW_CPLUSPLUS_API
+#endif
+
+/** @{ API visibility control */
+
+/**
+ * \def U_HIDE_DRAFT_API
+ * Define this to 1 to request that draft API be "hidden"
+ * @internal
+ */
+/**
+ * \def U_HIDE_INTERNAL_API
+ * Define this to 1 to request that internal API be "hidden"
+ * @internal
+ */
+#if !U_DEFAULT_SHOW_DRAFT && !defined(U_SHOW_DRAFT_API)
+#endif
+#if !U_DEFAULT_SHOW_DRAFT && !defined(U_SHOW_INTERNAL_API)
+#endif
+
+/** @} */
+
+/*===========================================================================*/
+/* ICUDATA naming scheme                                                     */
+/*===========================================================================*/
+
+/**
+ * \def U_ICUDATA_TYPE_LETTER
+ *
+ * This is a platform-dependent string containing one letter:
+ * - b for big-endian, ASCII-family platforms
+ * - l for little-endian, ASCII-family platforms
+ * - e for big-endian, EBCDIC-family platforms
+ * This letter is part of the common data file name.
+ * @stable ICU 2.0
+ */
+
+/**
+ * \def U_ICUDATA_TYPE_LITLETTER
+ * The non-string form of U_ICUDATA_TYPE_LETTER
+ * @stable ICU 2.0
+ */
+#if U_CHARSET_FAMILY
+#   if U_IS_BIG_ENDIAN
+   /* EBCDIC - should always be BE */
+#     define U_ICUDATA_TYPE_LETTER "e"
+#     define U_ICUDATA_TYPE_LITLETTER e
+#   else
+#     error "Don't know what to do with little endian EBCDIC!"
+#     define U_ICUDATA_TYPE_LETTER "x"
+#     define U_ICUDATA_TYPE_LITLETTER x
+#   endif
+#else
+#   if U_IS_BIG_ENDIAN
+      /* Big-endian ASCII */
+#     define U_ICUDATA_TYPE_LETTER "b"
+#     define U_ICUDATA_TYPE_LITLETTER b
+#   else
+      /* Little-endian ASCII */
+#     define U_ICUDATA_TYPE_LETTER "l"
+#     define U_ICUDATA_TYPE_LITLETTER l
+#   endif
+#endif
+
+/**
+ * A single string literal containing the icudata stub name. i.e. 'icudt18e' for
+ * ICU 1.8.x on EBCDIC, etc..
+ * @stable ICU 2.0
+ */
+#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
+
+/**
+ *  U_ICU_ENTRY_POINT is the name of the DLL entry point to the ICU data library.
+ *    Defined as a literal, not a string.
+ *    Tricky Preprocessor use - ## operator replaces macro paramters with the literal string
+ *                              from the corresponding macro invocation, _before_ other macro substitutions.
+ *                              Need a nested \#defines to get the actual version numbers rather than
+ *                              the literal text U_ICU_VERSION_MAJOR_NUM into the name.
+ *                              The net result will be something of the form
+ *                                  \#define U_ICU_ENTRY_POINT icudt19_dat
+ * @stable ICU 2.4
+ */
+#define U_ICUDATA_ENTRY_POINT  U_DEF2_ICUDATA_ENTRY_POINT(U_ICU_VERSION_MAJOR_NUM,U_LIB_SUFFIX_C_NAME)
+
+
+/**
+ * \def NULL
+ * Define NULL if necessary, to 0 for C++ and to ((void *)0) for C.
+ * @stable ICU 2.0
+ */
+#ifndef NULL
+#ifdef __cplusplus
+#define NULL    0
+#else
+#define NULL    ((void *)0)
+#endif
+#endif
+
+/*===========================================================================*/
+/* Calendar/TimeZone data types                                              */
+/*===========================================================================*/
+
+/**
+ * Date and Time data type.
+ * This is a primitive data type that holds the date and time
+ * as the number of milliseconds since 1970-jan-01, 00:00 UTC.
+ * UTC leap seconds are ignored.
+ * @stable ICU 2.0
+ */
+typedef double UDate;
+
+/** The number of milliseconds per second @stable ICU 2.0 */
+#define U_MILLIS_PER_SECOND        (1000)
+/** The number of milliseconds per minute @stable ICU 2.0 */
+#define U_MILLIS_PER_MINUTE       (60000)
+/** The number of milliseconds per hour @stable ICU 2.0 */
+#define U_MILLIS_PER_HOUR       (3600000)
+/** The number of milliseconds per day @stable ICU 2.0 */
+#define U_MILLIS_PER_DAY       (86400000)
+
+/** 
+ * Maximum UDate value 
+ * @stable ICU 4.8 
+ */ 
+#define U_DATE_MAX DBL_MAX
+
+/**
+ * Minimum UDate value 
+ * @stable ICU 4.8 
+ */ 
+#define U_DATE_MIN -U_DATE_MAX
+
+/*===========================================================================*/
+/* Shared library/DLL import-export API control                              */
+/*===========================================================================*/
+
+/*
+ * Control of symbol import/export.
+ * ICU is separated into three libraries.
+ */
+
+/**
+ * \def U_COMBINED_IMPLEMENTATION
+ * Set to export library symbols from inside the ICU library
+ * when all of ICU is in a single library.
+ * This can be set as a compiler option while building ICU, and it
+ * needs to be the first one tested to override U_COMMON_API, U_I18N_API, etc.
+ * @stable ICU 2.0
+ */
+
+/**
+ * \def U_DATA_API
+ * Set to export library symbols from inside the stubdata library,
+ * and to import them from outside.
+ * @stable ICU 3.0
+ */
+
+/**
+ * \def U_COMMON_API
+ * Set to export library symbols from inside the common library,
+ * and to import them from outside.
+ * @stable ICU 2.0
+ */
+
+/**
+ * \def U_I18N_API
+ * Set to export library symbols from inside the i18n library,
+ * and to import them from outside.
+ * @stable ICU 2.0
+ */
+
+/**
+ * \def U_LAYOUT_API
+ * Set to export library symbols from inside the layout engine library,
+ * and to import them from outside.
+ * @stable ICU 2.0
+ */
+
+/**
+ * \def U_LAYOUTEX_API
+ * Set to export library symbols from inside the layout extensions library,
+ * and to import them from outside.
+ * @stable ICU 2.6
+ */
+
+/**
+ * \def U_IO_API
+ * Set to export library symbols from inside the ustdio library,
+ * and to import them from outside.
+ * @stable ICU 2.0
+ */
+
+/**
+ * \def U_TOOLUTIL_API
+ * Set to export library symbols from inside the toolutil library,
+ * and to import them from outside.
+ * @stable ICU 3.4
+ */
+
+#if defined(U_COMBINED_IMPLEMENTATION)
+#define U_DATA_API     U_EXPORT
+#define U_COMMON_API   U_EXPORT
+#define U_I18N_API     U_EXPORT
+#define U_LAYOUT_API   U_EXPORT
+#define U_LAYOUTEX_API U_EXPORT
+#define U_IO_API       U_EXPORT
+#define U_TOOLUTIL_API U_EXPORT
+#elif defined(U_STATIC_IMPLEMENTATION)
+#define U_DATA_API
+#define U_COMMON_API
+#define U_I18N_API
+#define U_LAYOUT_API
+#define U_LAYOUTEX_API
+#define U_IO_API
+#define U_TOOLUTIL_API
+#elif defined(U_COMMON_IMPLEMENTATION)
+#define U_DATA_API     U_IMPORT
+#define U_COMMON_API   U_EXPORT
+#define U_I18N_API     U_IMPORT
+#define U_LAYOUT_API   U_IMPORT
+#define U_LAYOUTEX_API U_IMPORT
+#define U_IO_API       U_IMPORT
+#define U_TOOLUTIL_API U_IMPORT
+#elif defined(U_I18N_IMPLEMENTATION)
+#define U_DATA_API     U_IMPORT
+#define U_COMMON_API   U_IMPORT
+#define U_I18N_API     U_EXPORT
+#define U_LAYOUT_API   U_IMPORT
+#define U_LAYOUTEX_API U_IMPORT
+#define U_IO_API       U_IMPORT
+#define U_TOOLUTIL_API U_IMPORT
+#elif defined(U_LAYOUT_IMPLEMENTATION)
+#define U_DATA_API     U_IMPORT
+#define U_COMMON_API   U_IMPORT
+#define U_I18N_API     U_IMPORT
+#define U_LAYOUT_API   U_EXPORT
+#define U_LAYOUTEX_API U_IMPORT
+#define U_IO_API       U_IMPORT
+#define U_TOOLUTIL_API U_IMPORT
+#elif defined(U_LAYOUTEX_IMPLEMENTATION)
+#define U_DATA_API     U_IMPORT
+#define U_COMMON_API   U_IMPORT
+#define U_I18N_API     U_IMPORT
+#define U_LAYOUT_API   U_IMPORT
+#define U_LAYOUTEX_API U_EXPORT
+#define U_IO_API       U_IMPORT
+#define U_TOOLUTIL_API U_IMPORT
+#elif defined(U_IO_IMPLEMENTATION)
+#define U_DATA_API     U_IMPORT
+#define U_COMMON_API   U_IMPORT
+#define U_I18N_API     U_IMPORT
+#define U_LAYOUT_API   U_IMPORT
+#define U_LAYOUTEX_API U_IMPORT
+#define U_IO_API       U_EXPORT
+#define U_TOOLUTIL_API U_IMPORT
+#elif defined(U_TOOLUTIL_IMPLEMENTATION)
+#define U_DATA_API     U_IMPORT
+#define U_COMMON_API   U_IMPORT
+#define U_I18N_API     U_IMPORT
+#define U_LAYOUT_API   U_IMPORT
+#define U_LAYOUTEX_API U_IMPORT
+#define U_IO_API       U_IMPORT
+#define U_TOOLUTIL_API U_EXPORT
+#else
+#define U_DATA_API     U_IMPORT
+#define U_COMMON_API   U_IMPORT
+#define U_I18N_API     U_IMPORT
+#define U_LAYOUT_API   U_IMPORT
+#define U_LAYOUTEX_API U_IMPORT
+#define U_IO_API       U_IMPORT
+#define U_TOOLUTIL_API U_IMPORT
+#endif
+
+/**
+ * \def U_STANDARD_CPP_NAMESPACE
+ * Control of C++ Namespace
+ * @stable ICU 2.0
+ */
+#ifdef __cplusplus
+#define U_STANDARD_CPP_NAMESPACE        ::
+#else
+#define U_STANDARD_CPP_NAMESPACE
+#endif
+
+
+/*===========================================================================*/
+/* Global delete operator                                                    */
+/*===========================================================================*/
+
+/*
+ * The ICU4C library must not use the global new and delete operators.
+ * These operators here are defined to enable testing for this.
+ * See Jitterbug 2581 for details of why this is necessary.
+ *
+ * Verification that ICU4C's memory usage is correct, i.e.,
+ * that global new/delete are not used:
+ *
+ * a) Check for imports of global new/delete (see uobject.cpp for details)
+ * b) Verify that new is never imported.
+ * c) Verify that delete is only imported from object code for interface/mixin classes.
+ * d) Add global delete and delete[] only for the ICU4C library itself
+ *    and define them in a way that crashes or otherwise easily shows a problem.
+ *
+ * The following implements d).
+ * The operator implementations crash; this is intentional and used for library debugging.
+ *
+ * Note: This is currently only done on Windows because
+ * some Linux/Unix compilers have problems with defining global new/delete.
+ * On Windows, it is _MSC_VER>=1200 for MSVC 6.0 and higher.
+ */
+#if defined(__cplusplus) && U_DEBUG && U_OVERRIDE_CXX_ALLOCATION && (_MSC_VER>=1200) && !defined(U_STATIC_IMPLEMENTATION) && (defined(U_COMMON_IMPLEMENTATION) || defined(U_I18N_IMPLEMENTATION) || defined(U_IO_IMPLEMENTATION) || defined(U_LAYOUT_IMPLEMENTATION) || defined(U_LAYOUTEX_IMPLEMENTATION))
+
+#endif
+
+/*===========================================================================*/
+/* UErrorCode */
+/*===========================================================================*/
+
+/**
+ * Error code to replace exception handling, so that the code is compatible with all C++ compilers,
+ * and to use the same mechanism for C and C++.
+ *
+ * \par
+ * ICU functions that take a reference (C++) or a pointer (C) to a UErrorCode
+ * first test if(U_FAILURE(errorCode)) { return immediately; }
+ * so that in a chain of such functions the first one that sets an error code
+ * causes the following ones to not perform any operations.
+ *
+ * \par
+ * Error codes should be tested using U_FAILURE() and U_SUCCESS().
+ * @stable ICU 2.0
+ */
+typedef enum UErrorCode {
+    /* The ordering of U_ERROR_INFO_START Vs U_USING_FALLBACK_WARNING looks weird
+     * and is that way because VC++ debugger displays first encountered constant,
+     * which is not the what the code is used for
+     */
+
+    U_USING_FALLBACK_WARNING  = -128,   /**< A resource bundle lookup returned a fallback result (not an error) */
+
+    U_ERROR_WARNING_START     = -128,   /**< Start of information results (semantically successful) */
+
+    U_USING_DEFAULT_WARNING   = -127,   /**< A resource bundle lookup returned a result from the root locale (not an error) */
+
+    U_SAFECLONE_ALLOCATED_WARNING = -126, /**< A SafeClone operation required allocating memory (informational only) */
+
+    U_STATE_OLD_WARNING       = -125,   /**< ICU has to use compatibility layer to construct the service. Expect performance/memory usage degradation. Consider upgrading */
+
+    U_STRING_NOT_TERMINATED_WARNING = -124,/**< An output string could not be NUL-terminated because output length==destCapacity. */
+
+    U_SORT_KEY_TOO_SHORT_WARNING = -123, /**< Number of levels requested in getBound is higher than the number of levels in the sort key */
+
+    U_AMBIGUOUS_ALIAS_WARNING = -122,   /**< This converter alias can go to different converter implementations */
+
+    U_DIFFERENT_UCA_VERSION = -121,     /**< ucol_open encountered a mismatch between UCA version and collator image version, so the collator was constructed from rules. No impact to further function */
+    
+    U_PLUGIN_CHANGED_LEVEL_WARNING = -120, /**< A plugin caused a level change. May not be an error, but later plugins may not load. */
+
+    U_ERROR_WARNING_LIMIT,              /**< This must always be the last warning value to indicate the limit for UErrorCode warnings (last warning code +1) */
+
+
+    U_ZERO_ERROR              =  0,     /**< No error, no warning. */
+
+    U_ILLEGAL_ARGUMENT_ERROR  =  1,     /**< Start of codes indicating failure */
+    U_MISSING_RESOURCE_ERROR  =  2,     /**< The requested resource cannot be found */
+    U_INVALID_FORMAT_ERROR    =  3,     /**< Data format is not what is expected */
+    U_FILE_ACCESS_ERROR       =  4,     /**< The requested file cannot be found */
+    U_INTERNAL_PROGRAM_ERROR  =  5,     /**< Indicates a bug in the library code */
+    U_MESSAGE_PARSE_ERROR     =  6,     /**< Unable to parse a message (message format) */
+    U_MEMORY_ALLOCATION_ERROR =  7,     /**< Memory allocation error */
+    U_INDEX_OUTOFBOUNDS_ERROR =  8,     /**< Trying to access the index that is out of bounds */
+    U_PARSE_ERROR             =  9,     /**< Equivalent to Java ParseException */
+    U_INVALID_CHAR_FOUND      = 10,     /**< Character conversion: Unmappable input sequence. In other APIs: Invalid character. */
+    U_TRUNCATED_CHAR_FOUND    = 11,     /**< Character conversion: Incomplete input sequence. */
+    U_ILLEGAL_CHAR_FOUND      = 12,     /**< Character conversion: Illegal input sequence/combination of input units. */
+    U_INVALID_TABLE_FORMAT    = 13,     /**< Conversion table file found, but corrupted */
+    U_INVALID_TABLE_FILE      = 14,     /**< Conversion table file not found */
+    U_BUFFER_OVERFLOW_ERROR   = 15,     /**< A result would not fit in the supplied buffer */
+    U_UNSUPPORTED_ERROR       = 16,     /**< Requested operation not supported in current context */
+    U_RESOURCE_TYPE_MISMATCH  = 17,     /**< an operation is requested over a resource that does not support it */
+    U_ILLEGAL_ESCAPE_SEQUENCE = 18,     /**< ISO-2022 illlegal escape sequence */
+    U_UNSUPPORTED_ESCAPE_SEQUENCE = 19, /**< ISO-2022 unsupported escape sequence */
+    U_NO_SPACE_AVAILABLE      = 20,     /**< No space available for in-buffer expansion for Arabic shaping */
+    U_CE_NOT_FOUND_ERROR      = 21,     /**< Currently used only while setting variable top, but can be used generally */
+    U_PRIMARY_TOO_LONG_ERROR  = 22,     /**< User tried to set variable top to a primary that is longer than two bytes */
+    U_STATE_TOO_OLD_ERROR     = 23,     /**< ICU cannot construct a service from this state, as it is no longer supported */
+    U_TOO_MANY_ALIASES_ERROR  = 24,     /**< There are too many aliases in the path to the requested resource.
+                                             It is very possible that a circular alias definition has occured */
+    U_ENUM_OUT_OF_SYNC_ERROR  = 25,     /**< UEnumeration out of sync with underlying collection */
+    U_INVARIANT_CONVERSION_ERROR = 26,  /**< Unable to convert a UChar* string to char* with the invariant converter. */
+    U_INVALID_STATE_ERROR     = 27,     /**< Requested operation can not be completed with ICU in its current state */
+    U_COLLATOR_VERSION_MISMATCH = 28,   /**< Collator version is not compatible with the base version */
+    U_USELESS_COLLATOR_ERROR  = 29,     /**< Collator is options only and no base is specified */
+    U_NO_WRITE_PERMISSION     = 30,     /**< Attempt to modify read-only or constant data. */
+
+    U_STANDARD_ERROR_LIMIT,             /**< This must always be the last value to indicate the limit for standard errors */
+    /*
+     * the error code range 0x10000 0x10100 are reserved for Transliterator
+     */
+    U_BAD_VARIABLE_DEFINITION=0x10000,/**< Missing '$' or duplicate variable name */
+    U_PARSE_ERROR_START = 0x10000,    /**< Start of Transliterator errors */
+    U_MALFORMED_RULE,                 /**< Elements of a rule are misplaced */
+    U_MALFORMED_SET,                  /**< A UnicodeSet pattern is invalid*/
+    U_MALFORMED_SYMBOL_REFERENCE,     /**< UNUSED as of ICU 2.4 */
+    U_MALFORMED_UNICODE_ESCAPE,       /**< A Unicode escape pattern is invalid*/
+    U_MALFORMED_VARIABLE_DEFINITION,  /**< A variable definition is invalid */
+    U_MALFORMED_VARIABLE_REFERENCE,   /**< A variable reference is invalid */
+    U_MISMATCHED_SEGMENT_DELIMITERS,  /**< UNUSED as of ICU 2.4 */
+    U_MISPLACED_ANCHOR_START,         /**< A start anchor appears at an illegal position */
+    U_MISPLACED_CURSOR_OFFSET,        /**< A cursor offset occurs at an illegal position */
+    U_MISPLACED_QUANTIFIER,           /**< A quantifier appears after a segment close delimiter */
+    U_MISSING_OPERATOR,               /**< A rule contains no operator */
+    U_MISSING_SEGMENT_CLOSE,          /**< UNUSED as of ICU 2.4 */
+    U_MULTIPLE_ANTE_CONTEXTS,         /**< More than one ante context */
+    U_MULTIPLE_CURSORS,               /**< More than one cursor */
+    U_MULTIPLE_POST_CONTEXTS,         /**< More than one post context */
+    U_TRAILING_BACKSLASH,             /**< A dangling backslash */
+    U_UNDEFINED_SEGMENT_REFERENCE,    /**< A segment reference does not correspond to a defined segment */
+    U_UNDEFINED_VARIABLE,             /**< A variable reference does not correspond to a defined variable */
+    U_UNQUOTED_SPECIAL,               /**< A special character was not quoted or escaped */
+    U_UNTERMINATED_QUOTE,             /**< A closing single quote is missing */
+    U_RULE_MASK_ERROR,                /**< A rule is hidden by an earlier more general rule */
+    U_MISPLACED_COMPOUND_FILTER,      /**< A compound filter is in an invalid location */
+    U_MULTIPLE_COMPOUND_FILTERS,      /**< More than one compound filter */
+    U_INVALID_RBT_SYNTAX,             /**< A "::id" rule was passed to the RuleBasedTransliterator parser */
+    U_INVALID_PROPERTY_PATTERN,       /**< UNUSED as of ICU 2.4 */
+    U_MALFORMED_PRAGMA,               /**< A 'use' pragma is invlalid */
+    U_UNCLOSED_SEGMENT,               /**< A closing ')' is missing */
+    U_ILLEGAL_CHAR_IN_SEGMENT,        /**< UNUSED as of ICU 2.4 */
+    U_VARIABLE_RANGE_EXHAUSTED,       /**< Too many stand-ins generated for the given variable range */
+    U_VARIABLE_RANGE_OVERLAP,         /**< The variable range overlaps characters used in rules */
+    U_ILLEGAL_CHARACTER,              /**< A special character is outside its allowed context */
+    U_INTERNAL_TRANSLITERATOR_ERROR,  /**< Internal transliterator system error */
+    U_INVALID_ID,                     /**< A "::id" rule specifies an unknown transliterator */
+    U_INVALID_FUNCTION,               /**< A "&fn()" rule specifies an unknown transliterator */
+    U_PARSE_ERROR_LIMIT,              /**< The limit for Transliterator errors */
+
+    /*
+     * the error code range 0x10100 0x10200 are reserved for formatting API parsing error
+     */
+    U_UNEXPECTED_TOKEN=0x10100,       /**< Syntax error in format pattern */
+    U_FMT_PARSE_ERROR_START=0x10100,  /**< Start of format library errors */
+    U_MULTIPLE_DECIMAL_SEPARATORS,    /**< More than one decimal separator in number pattern */
+    U_MULTIPLE_DECIMAL_SEPERATORS = U_MULTIPLE_DECIMAL_SEPARATORS, /**< Typo: kept for backward compatibility. Use U_MULTIPLE_DECIMAL_SEPARATORS */
+    U_MULTIPLE_EXPONENTIAL_SYMBOLS,   /**< More than one exponent symbol in number pattern */
+    U_MALFORMED_EXPONENTIAL_PATTERN,  /**< Grouping symbol in exponent pattern */
+    U_MULTIPLE_PERCENT_SYMBOLS,       /**< More than one percent symbol in number pattern */
+    U_MULTIPLE_PERMILL_SYMBOLS,       /**< More than one permill symbol in number pattern */
+    U_MULTIPLE_PAD_SPECIFIERS,        /**< More than one pad symbol in number pattern */
+    U_PATTERN_SYNTAX_ERROR,           /**< Syntax error in format pattern */
+    U_ILLEGAL_PAD_POSITION,           /**< Pad symbol misplaced in number pattern */
+    U_UNMATCHED_BRACES,               /**< Braces do not match in message pattern */
+    U_UNSUPPORTED_PROPERTY,           /**< UNUSED as of ICU 2.4 */
+    U_UNSUPPORTED_ATTRIBUTE,          /**< UNUSED as of ICU 2.4 */
+    U_ARGUMENT_TYPE_MISMATCH,         /**< Argument name and argument index mismatch in MessageFormat functions */
+    U_DUPLICATE_KEYWORD,              /**< Duplicate keyword in PluralFormat */
+    U_UNDEFINED_KEYWORD,              /**< Undefined Plural keyword */
+    U_DEFAULT_KEYWORD_MISSING,        /**< Missing DEFAULT rule in plural rules */
+    U_DECIMAL_NUMBER_SYNTAX_ERROR,    /**< Decimal number syntax error */
+    U_FORMAT_INEXACT_ERROR,           /**< Cannot format a number exactly and rounding mode is ROUND_UNNECESSARY @stable ICU 4.8 */
+    U_FMT_PARSE_ERROR_LIMIT,          /**< The limit for format library errors */
+
+    /*
+     * the error code range 0x10200 0x102ff are reserved for Break Iterator related error
+     */
+    U_BRK_INTERNAL_ERROR=0x10200,          /**< An internal error (bug) was detected.             */
+    U_BRK_ERROR_START=0x10200,             /**< Start of codes indicating Break Iterator failures */
+    U_BRK_HEX_DIGITS_EXPECTED,             /**< Hex digits expected as part of a escaped char in a rule. */
+    U_BRK_SEMICOLON_EXPECTED,              /**< Missing ';' at the end of a RBBI rule.            */
+    U_BRK_RULE_SYNTAX,                     /**< Syntax error in RBBI rule.                        */
+    U_BRK_UNCLOSED_SET,                    /**< UnicodeSet witing an RBBI rule missing a closing ']'.  */
+    U_BRK_ASSIGN_ERROR,                    /**< Syntax error in RBBI rule assignment statement.   */
+    U_BRK_VARIABLE_REDFINITION,            /**< RBBI rule $Variable redefined.                    */
+    U_BRK_MISMATCHED_PAREN,                /**< Mis-matched parentheses in an RBBI rule.          */
+    U_BRK_NEW_LINE_IN_QUOTED_STRING,       /**< Missing closing quote in an RBBI rule.            */
+    U_BRK_UNDEFINED_VARIABLE,              /**< Use of an undefined $Variable in an RBBI rule.    */
+    U_BRK_INIT_ERROR,                      /**< Initialization failure.  Probable missing ICU Data. */
+    U_BRK_RULE_EMPTY_SET,                  /**< Rule contains an empty Unicode Set.               */
+    U_BRK_UNRECOGNIZED_OPTION,             /**< !!option in RBBI rules not recognized.            */
+    U_BRK_MALFORMED_RULE_TAG,              /**< The {nnn} tag on a rule is mal formed             */
+    U_BRK_ERROR_LIMIT,                     /**< This must always be the last value to indicate the limit for Break Iterator failures */
+
+    /*
+     * The error codes in the range 0x10300-0x103ff are reserved for regular expression related errrs
+     */
+    U_REGEX_INTERNAL_ERROR=0x10300,       /**< An internal error (bug) was detected.              */
+    U_REGEX_ERROR_START=0x10300,          /**< Start of codes indicating Regexp failures          */
+    U_REGEX_RULE_SYNTAX,                  /**< Syntax error in regexp pattern.                    */
+    U_REGEX_INVALID_STATE,                /**< RegexMatcher in invalid state for requested operation */
+    U_REGEX_BAD_ESCAPE_SEQUENCE,          /**< Unrecognized backslash escape sequence in pattern  */
+    U_REGEX_PROPERTY_SYNTAX,              /**< Incorrect Unicode property                         */
+    U_REGEX_UNIMPLEMENTED,                /**< Use of regexp feature that is not yet implemented. */
+    U_REGEX_MISMATCHED_PAREN,             /**< Incorrectly nested parentheses in regexp pattern.  */
+    U_REGEX_NUMBER_TOO_BIG,               /**< Decimal number is too large.                       */
+    U_REGEX_BAD_INTERVAL,                 /**< Error in {min,max} interval                        */
+    U_REGEX_MAX_LT_MIN,                   /**< In {min,max}, max is less than min.                */
+    U_REGEX_INVALID_BACK_REF,             /**< Back-reference to a non-existent capture group.    */
+    U_REGEX_INVALID_FLAG,                 /**< Invalid value for match mode flags.                */
+    U_REGEX_LOOK_BEHIND_LIMIT,            /**< Look-Behind pattern matches must have a bounded maximum length.    */
+    U_REGEX_SET_CONTAINS_STRING,          /**< Regexps cannot have UnicodeSets containing strings.*/
+    U_REGEX_MISSING_CLOSE_BRACKET=U_REGEX_SET_CONTAINS_STRING+2, /**< Missing closing bracket on a bracket expression. */
+    U_REGEX_INVALID_RANGE,                /**< In a character range [x-y], x is greater than y.   */
+    U_REGEX_STACK_OVERFLOW,               /**< Regular expression backtrack stack overflow.       */
+    U_REGEX_TIME_OUT,                     /**< Maximum allowed match time exceeded                */
+    U_REGEX_STOPPED_BY_CALLER,            /**< Matching operation aborted by user callback fn.    */
+    U_REGEX_PATTERN_TOO_BIG,              /**< Pattern exceeds limits on size or complexity. @stable ICU 55 */
+    U_REGEX_INVALID_CAPTURE_GROUP_NAME,   /**< Invalid capture group name. @stable ICU 55 */
+    U_REGEX_ERROR_LIMIT=U_REGEX_STOPPED_BY_CALLER+3, /**< This must always be the last value to indicate the limit for regexp errors */
+
+    /*
+     * The error code in the range 0x10400-0x104ff are reserved for IDNA related error codes
+     */
+    U_IDNA_PROHIBITED_ERROR=0x10400,
+    U_IDNA_ERROR_START=0x10400,
+    U_IDNA_UNASSIGNED_ERROR,
+    U_IDNA_CHECK_BIDI_ERROR,
+    U_IDNA_STD3_ASCII_RULES_ERROR,
+    U_IDNA_ACE_PREFIX_ERROR,
+    U_IDNA_VERIFICATION_ERROR,
+    U_IDNA_LABEL_TOO_LONG_ERROR,
+    U_IDNA_ZERO_LENGTH_LABEL_ERROR,
+    U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR,
+    U_IDNA_ERROR_LIMIT,
+    /*
+     * Aliases for StringPrep
+     */
+    U_STRINGPREP_PROHIBITED_ERROR = U_IDNA_PROHIBITED_ERROR,
+    U_STRINGPREP_UNASSIGNED_ERROR = U_IDNA_UNASSIGNED_ERROR,
+    U_STRINGPREP_CHECK_BIDI_ERROR = U_IDNA_CHECK_BIDI_ERROR,
+    
+    /*
+     * The error code in the range 0x10500-0x105ff are reserved for Plugin related error codes
+     */
+    U_PLUGIN_ERROR_START=0x10500,         /**< Start of codes indicating plugin failures */
+    U_PLUGIN_TOO_HIGH=0x10500,            /**< The plugin's level is too high to be loaded right now. */
+    U_PLUGIN_DIDNT_SET_LEVEL,             /**< The plugin didn't call uplug_setPlugLevel in response to a QUERY */
+    U_PLUGIN_ERROR_LIMIT,                 /**< This must always be the last value to indicate the limit for plugin errors */
+
+    U_ERROR_LIMIT=U_PLUGIN_ERROR_LIMIT      /**< This must always be the last value to indicate the limit for UErrorCode (last error code +1) */
+} UErrorCode;
+
+/* Use the following to determine if an UErrorCode represents */
+/* operational success or failure. */
+
+#ifdef __cplusplus
+    /**
+     * Does the error code indicate success?
+     * @stable ICU 2.0
+     */
+    static
+    inline UBool U_SUCCESS(UErrorCode code) { return (UBool)(code<=U_ZERO_ERROR); }
+    /**
+     * Does the error code indicate a failure?
+     * @stable ICU 2.0
+     */
+    static
+    inline UBool U_FAILURE(UErrorCode code) { return (UBool)(code>U_ZERO_ERROR); }
+#else
+    /**
+     * Does the error code indicate success?
+     * @stable ICU 2.0
+     */
+#   define U_SUCCESS(x) ((x)<=U_ZERO_ERROR)
+    /**
+     * Does the error code indicate a failure?
+     * @stable ICU 2.0
+     */
+#   define U_FAILURE(x) ((x)>U_ZERO_ERROR)
+#endif
+
+/**
+ * Return a string for a UErrorCode value.
+ * The string will be the same as the name of the error code constant
+ * in the UErrorCode enum above.
+ * @stable ICU 2.0
+ */
+U_STABLE const char * U_EXPORT2
+u_errorName(UErrorCode code);
+
+
+#endif /* _UTYPES */
+
+// utrace.h
+/*
+*******************************************************************************
+*
+*   Copyright (C) 2003-2013, International Business Machines
+*   Corporation and others.  All Rights Reserved.
+*
+*******************************************************************************
+*   file name:  utrace.h
+*   encoding:   US-ASCII
+*   tab size:   8 (not used)
+*   indentation:4
+*
+*   created on: 2003aug06
+*   created by: Markus W. Scherer
+*
+*   Definitions for ICU tracing/logging.
+*
+*/
+
+#ifndef __UTRACE_H__
+#define __UTRACE_H__
+
+#include 
+
+/**
+ * \file
+ * \brief C API:  Definitions for ICU tracing/logging. 
+ *
+ * This provides API for debugging the internals of ICU without the use of
+ * a traditional debugger.
+ *
+ * By default, tracing is disabled in ICU. If you need to debug ICU with 
+ * tracing, please compile ICU with the --enable-tracing configure option.
+ */
+ 
+U_CDECL_BEGIN
+
+/**
+ * Trace severity levels.  Higher levels increase the verbosity of the trace output.
+ * @see utrace_setLevel
+ * @stable ICU 2.8
+ */
+typedef enum UTraceLevel {
+    /** Disable all tracing  @stable ICU 2.8*/
+    UTRACE_OFF=-1,
+    /** Trace error conditions only  @stable ICU 2.8*/
+    UTRACE_ERROR=0,
+    /** Trace errors and warnings  @stable ICU 2.8*/
+    UTRACE_WARNING=3,
+    /** Trace opens and closes of ICU services  @stable ICU 2.8*/
+    UTRACE_OPEN_CLOSE=5,
+    /** Trace an intermediate number of ICU operations  @stable ICU 2.8*/
+    UTRACE_INFO=7,
+    /** Trace the maximum number of ICU operations  @stable ICU 2.8*/
+    UTRACE_VERBOSE=9
+} UTraceLevel;
+
+/**
+ *  These are the ICU functions that will be traced when tracing is enabled.
+ *  @stable ICU 2.8
+ */
+typedef enum UTraceFunctionNumber {
+    UTRACE_FUNCTION_START=0,
+    UTRACE_U_INIT=UTRACE_FUNCTION_START,
+    UTRACE_U_CLEANUP,
+    UTRACE_FUNCTION_LIMIT,
+
+    UTRACE_CONVERSION_START=0x1000,
+    UTRACE_UCNV_OPEN=UTRACE_CONVERSION_START,
+    UTRACE_UCNV_OPEN_PACKAGE,
+    UTRACE_UCNV_OPEN_ALGORITHMIC,
+    UTRACE_UCNV_CLONE,
+    UTRACE_UCNV_CLOSE,
+    UTRACE_UCNV_FLUSH_CACHE,
+    UTRACE_UCNV_LOAD,
+    UTRACE_UCNV_UNLOAD,
+    UTRACE_CONVERSION_LIMIT,
+
+    UTRACE_COLLATION_START=0x2000,
+    UTRACE_UCOL_OPEN=UTRACE_COLLATION_START,
+    UTRACE_UCOL_CLOSE,
+    UTRACE_UCOL_STRCOLL,
+    UTRACE_UCOL_GET_SORTKEY,
+    UTRACE_UCOL_GETLOCALE,
+    UTRACE_UCOL_NEXTSORTKEYPART,
+    UTRACE_UCOL_STRCOLLITER,
+    UTRACE_UCOL_OPEN_FROM_SHORT_STRING,
+    UTRACE_UCOL_STRCOLLUTF8, /**< @stable ICU 50 */
+    UTRACE_COLLATION_LIMIT
+} UTraceFunctionNumber;
+
+/**
+ * Setter for the trace level.
+ * @param traceLevel A UTraceLevel value.
+ * @stable ICU 2.8
+ */
+U_STABLE void U_EXPORT2
+utrace_setLevel(int32_t traceLevel);
+
+/**
+ * Getter for the trace level.
+ * @return The UTraceLevel value being used by ICU.
+ * @stable ICU 2.8
+ */
+U_STABLE int32_t U_EXPORT2
+utrace_getLevel(void);
+
+/* Trace function pointers types  ----------------------------- */
+
+/**
+  *  Type signature for the trace function to be called when entering a function.
+  *  @param context value supplied at the time the trace functions are set.
+  *  @param fnNumber Enum value indicating the ICU function being entered.
+  *  @stable ICU 2.8
+  */
+typedef void U_CALLCONV
+UTraceEntry(const void *context, int32_t fnNumber);
+
+/**
+  *  Type signature for the trace function to be called when exiting from a function.
+  *  @param context value supplied at the time the trace functions are set.
+  *  @param fnNumber Enum value indicating the ICU function being exited.
+  *  @param fmt     A formatting string that describes the number and types
+  *                 of arguments included with the variable args.  The fmt
+  *                 string has the same form as the utrace_vformat format
+  *                 string.
+  *  @param args    A variable arguments list.  Contents are described by
+  *                 the fmt parameter.
+  *  @see   utrace_vformat
+  *  @stable ICU 2.8
+  */
+typedef void U_CALLCONV
+UTraceExit(const void *context, int32_t fnNumber, 
+           const char *fmt, va_list args);
+
+/**
+  *  Type signature for the trace function to be called from within an ICU function
+  *  to display data or messages.
+  *  @param context  value supplied at the time the trace functions are set.
+  *  @param fnNumber Enum value indicating the ICU function being exited.
+  *  @param level    The current tracing level
+  *  @param fmt      A format string describing the tracing data that is supplied
+  *                  as variable args
+  *  @param args     The data being traced, passed as variable args.
+  *  @stable ICU 2.8
+  */
+typedef void U_CALLCONV
+UTraceData(const void *context, int32_t fnNumber, int32_t level,
+           const char *fmt, va_list args);
+
+/**
+  *  Set ICU Tracing functions.  Installs application-provided tracing
+  *  functions into ICU.  After doing this, subsequent ICU operations
+  *  will call back to the installed functions, providing a trace
+  *  of the use of ICU.  Passing a NULL pointer for a tracing function
+  *  is allowed, and inhibits tracing action at points where that function
+  *  would be called.
+  *  

+ * Tracing and Threads: Tracing functions are global to a process, and + * will be called in response to ICU operations performed by any + * thread. If tracing of an individual thread is desired, the + * tracing functions must themselves filter by checking that the + * current thread is the desired thread. + * + * @param context an uninterpretted pointer. Whatever is passed in + * here will in turn be passed to each of the tracing + * functions UTraceEntry, UTraceExit and UTraceData. + * ICU does not use or alter this pointer. + * @param e Callback function to be called on entry to a + * a traced ICU function. + * @param x Callback function to be called on exit from a + * traced ICU function. + * @param d Callback function to be called from within a + * traced ICU function, for the purpose of providing + * data to the trace. + * + * @stable ICU 2.8 + */ +U_STABLE void U_EXPORT2 +utrace_setFunctions(const void *context, + UTraceEntry *e, UTraceExit *x, UTraceData *d); + +/** + * Get the currently installed ICU tracing functions. Note that a null function + * pointer will be returned if no trace function has been set. + * + * @param context The currently installed tracing context. + * @param e The currently installed UTraceEntry function. + * @param x The currently installed UTraceExit function. + * @param d The currently installed UTraceData function. + * @stable ICU 2.8 + */ +U_STABLE void U_EXPORT2 +utrace_getFunctions(const void **context, + UTraceEntry **e, UTraceExit **x, UTraceData **d); + + + +/* + * + * ICU trace format string syntax + * + * Format Strings are passed to UTraceData functions, and define the + * number and types of the trace data being passed on each call. + * + * The UTraceData function, which is supplied by the application, + * not by ICU, can either forward the trace data (passed via + * varargs) and the format string back to ICU for formatting into + * a displayable string, or it can interpret the format itself, + * and do as it wishes with the trace data. + * + * + * Goals for the format string + * - basic data output + * - easy to use for trace programmer + * - sufficient provision for data types for trace output readability + * - well-defined types and binary portable APIs + * + * Non-goals + * - printf compatibility + * - fancy formatting + * - argument reordering and other internationalization features + * + * ICU trace format strings contain plain text with argument inserts, + * much like standard printf format strings. + * Each insert begins with a '%', then optionally contains a 'v', + * then exactly one type character. + * Two '%' in a row represent a '%' instead of an insert. + * The trace format strings need not have \n at the end. + * + * + * Types + * ----- + * + * Type characters: + * - c A char character in the default codepage. + * - s A NUL-terminated char * string in the default codepage. + * - S A UChar * string. Requires two params, (ptr, length). Length=-1 for nul term. + * - b A byte (8-bit integer). + * - h A 16-bit integer. Also a 16 bit Unicode code unit. + * - d A 32-bit integer. Also a 20 bit Unicode code point value. + * - l A 64-bit integer. + * - p A data pointer. + * + * Vectors + * ------- + * + * If the 'v' is not specified, then one item of the specified type + * is passed in. + * If the 'v' (for "vector") is specified, then a vector of items of the + * specified type is passed in, via a pointer to the first item + * and an int32_t value for the length of the vector. + * Length==-1 means zero or NUL termination. Works for vectors of all types. + * + * Note: %vS is a vector of (UChar *) strings. The strings must + * be nul terminated as there is no way to provide a + * separate length parameter for each string. The length + * parameter (required for all vectors) is the number of + * strings, not the length of the strings. + * + * Examples + * -------- + * + * These examples show the parameters that will be passed to an application's + * UTraceData() function for various formats. + * + * - the precise formatting is up to the application! + * - the examples use type casts for arguments only to _show_ the types of + * arguments without needing variable declarations in the examples; + * the type casts will not be necessary in actual code + * + * UTraceDataFunc(context, fnNumber, level, + * "There is a character %c in the string %s.", // Format String + * (char)c, (const char *)s); // varargs parameters + * -> There is a character 0x42 'B' in the string "Bravo". + * + * UTraceDataFunc(context, fnNumber, level, + * "Vector of bytes %vb vector of chars %vc", + * (const uint8_t *)bytes, (int32_t)bytesLength, + * (const char *)chars, (int32_t)charsLength); + * -> Vector of bytes + * 42 63 64 3f [4] + * vector of chars + * "Bcd?"[4] + * + * UTraceDataFunc(context, fnNumber, level, + * "An int32_t %d and a whole bunch of them %vd", + * (int32_t)-5, (const int32_t *)ints, (int32_t)intsLength); + * -> An int32_t 0xfffffffb and a whole bunch of them + * fffffffb 00000005 0000010a [3] + * + */ + + + +/** + * Trace output Formatter. An application's UTraceData tracing functions may call + * back to this function to format the trace output in a + * human readable form. Note that a UTraceData function may choose + * to not format the data; it could, for example, save it in + * in the raw form it was received (more compact), leaving + * formatting for a later trace analyis tool. + * @param outBuf pointer to a buffer to receive the formatted output. Output + * will be nul terminated if there is space in the buffer - + * if the length of the requested output < the output buffer size. + * @param capacity Length of the output buffer. + * @param indent Number of spaces to indent the output. Intended to allow + * data displayed from nested functions to be indented for readability. + * @param fmt Format specification for the data to output + * @param args Data to be formatted. + * @return Length of formatted output, including the terminating NUL. + * If buffer capacity is insufficient, the required capacity is returned. + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +utrace_vformat(char *outBuf, int32_t capacity, + int32_t indent, const char *fmt, va_list args); + +/** + * Trace output Formatter. An application's UTraceData tracing functions may call + * this function to format any additional trace data, beyond that + * provided by default, in human readable form with the same + * formatting conventions used by utrace_vformat(). + * @param outBuf pointer to a buffer to receive the formatted output. Output + * will be nul terminated if there is space in the buffer - + * if the length of the requested output < the output buffer size. + * @param capacity Length of the output buffer. + * @param indent Number of spaces to indent the output. Intended to allow + * data displayed from nested functions to be indented for readability. + * @param fmt Format specification for the data to output + * @param ... Data to be formatted. + * @return Length of formatted output, including the terminating NUL. + * If buffer capacity is insufficient, the required capacity is returned. + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +utrace_format(char *outBuf, int32_t capacity, + int32_t indent, const char *fmt, ...); + + + +/* Trace function numbers --------------------------------------------------- */ + +/** + * Get the name of a function from its trace function number. + * + * @param fnNumber The trace number for an ICU function. + * @return The name string for the function. + * + * @see UTraceFunctionNumber + * @stable ICU 2.8 + */ +U_STABLE const char * U_EXPORT2 +utrace_functionName(int32_t fnNumber); + +U_CDECL_END + +#endif + +// ustringtrie.h +/* +******************************************************************************* +* Copyright (C) 2010-2012, International Business Machines +* Corporation and others. All Rights Reserved. +******************************************************************************* +* file name: udicttrie.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2010dec17 +* created by: Markus W. Scherer +*/ + +#ifndef __USTRINGTRIE_H__ +#define __USTRINGTRIE_H__ + +/** + * \file + * \brief C API: Helper definitions for dictionary trie APIs. + */ + + + +/** + * Return values for BytesTrie::next(), UCharsTrie::next() and similar methods. + * @see USTRINGTRIE_MATCHES + * @see USTRINGTRIE_HAS_VALUE + * @see USTRINGTRIE_HAS_NEXT + * @stable ICU 4.8 + */ +enum UStringTrieResult { + /** + * The input unit(s) did not continue a matching string. + * Once current()/next() return USTRINGTRIE_NO_MATCH, + * all further calls to current()/next() will also return USTRINGTRIE_NO_MATCH, + * until the trie is reset to its original state or to a saved state. + * @stable ICU 4.8 + */ + USTRINGTRIE_NO_MATCH, + /** + * The input unit(s) continued a matching string + * but there is no value for the string so far. + * (It is a prefix of a longer string.) + * @stable ICU 4.8 + */ + USTRINGTRIE_NO_VALUE, + /** + * The input unit(s) continued a matching string + * and there is a value for the string so far. + * This value will be returned by getValue(). + * No further input byte/unit can continue a matching string. + * @stable ICU 4.8 + */ + USTRINGTRIE_FINAL_VALUE, + /** + * The input unit(s) continued a matching string + * and there is a value for the string so far. + * This value will be returned by getValue(). + * Another input byte/unit can continue a matching string. + * @stable ICU 4.8 + */ + USTRINGTRIE_INTERMEDIATE_VALUE +}; + +/** + * Same as (result!=USTRINGTRIE_NO_MATCH). + * @param result A result from BytesTrie::first(), UCharsTrie::next() etc. + * @return true if the input bytes/units so far are part of a matching string/byte sequence. + * @stable ICU 4.8 + */ +#define USTRINGTRIE_MATCHES(result) ((result)!=USTRINGTRIE_NO_MATCH) + +/** + * Equivalent to (result==USTRINGTRIE_INTERMEDIATE_VALUE || result==USTRINGTRIE_FINAL_VALUE) but + * this macro evaluates result exactly once. + * @param result A result from BytesTrie::first(), UCharsTrie::next() etc. + * @return true if there is a value for the input bytes/units so far. + * @see BytesTrie::getValue + * @see UCharsTrie::getValue + * @stable ICU 4.8 + */ +#define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE) + +/** + * Equivalent to (result==USTRINGTRIE_NO_VALUE || result==USTRINGTRIE_INTERMEDIATE_VALUE) but + * this macro evaluates result exactly once. + * @param result A result from BytesTrie::first(), UCharsTrie::next() etc. + * @return true if another input byte/unit can continue a matching string. + * @stable ICU 4.8 + */ +#define USTRINGTRIE_HAS_NEXT(result) ((result)&1) + +#endif /* __USTRINGTRIE_H__ */ + +// ushape.h +/* +****************************************************************************** +* +* Copyright (C) 2000-2012, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* file name: ushape.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2000jun29 +* created by: Markus W. Scherer +*/ + +#ifndef __USHAPE_H__ +#define __USHAPE_H__ + + +/** + * \file + * \brief C API: Arabic shaping + * + */ + +/** + * Shape Arabic text on a character basis. + * + *

This function performs basic operations for "shaping" Arabic text. It is most + * useful for use with legacy data formats and legacy display technology + * (simple terminals). All operations are performed on Unicode characters.

+ * + *

Text-based shaping means that some character code points in the text are + * replaced by others depending on the context. It transforms one kind of text + * into another. In comparison, modern displays for Arabic text select + * appropriate, context-dependent font glyphs for each text element, which means + * that they transform text into a glyph vector.

+ * + *

Text transformations are necessary when modern display technology is not + * available or when text needs to be transformed to or from legacy formats that + * use "shaped" characters. Since the Arabic script is cursive, connecting + * adjacent letters to each other, computers select images for each letter based + * on the surrounding letters. This usually results in four images per Arabic + * letter: initial, middle, final, and isolated forms. In Unicode, on the other + * hand, letters are normally stored abstract, and a display system is expected + * to select the necessary glyphs. (This makes searching and other text + * processing easier because the same letter has only one code.) It is possible + * to mimic this with text transformations because there are characters in + * Unicode that are rendered as letters with a specific shape + * (or cursive connectivity). They were included for interoperability with + * legacy systems and codepages, and for unsophisticated display systems.

+ * + *

A second kind of text transformations is supported for Arabic digits: + * For compatibility with legacy codepages that only include European digits, + * it is possible to replace one set of digits by another, changing the + * character code points. These operations can be performed for either + * Arabic-Indic Digits (U+0660...U+0669) or Eastern (Extended) Arabic-Indic + * digits (U+06f0...U+06f9).

+ * + *

Some replacements may result in more or fewer characters (code points). + * By default, this means that the destination buffer may receive text with a + * length different from the source length. Some legacy systems rely on the + * length of the text to be constant. They expect extra spaces to be added + * or consumed either next to the affected character or at the end of the + * text.

+ * + *

For details about the available operations, see the description of the + * U_SHAPE_... options.

+ * + * @param source The input text. + * + * @param sourceLength The number of UChars in source. + * + * @param dest The destination buffer that will receive the results of the + * requested operations. It may be NULL only if + * destSize is 0. The source and destination must not + * overlap. + * + * @param destSize The size (capacity) of the destination buffer in UChars. + * If destSize is 0, then no output is produced, + * but the necessary buffer size is returned ("preflighting"). + * + * @param options This is a 32-bit set of flags that specify the operations + * that are performed on the input text. If no error occurs, + * then the result will always be written to the destination + * buffer. + * + * @param pErrorCode must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @return The number of UChars written to the destination buffer. + * If an error occured, then no output was written, or it may be + * incomplete. If U_BUFFER_OVERFLOW_ERROR is set, then + * the return value indicates the necessary destination buffer size. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_shapeArabic(const UChar *source, int32_t sourceLength, + UChar *dest, int32_t destSize, + uint32_t options, + UErrorCode *pErrorCode); + +/** + * Memory option: allow the result to have a different length than the source. + * Affects: LamAlef options + * @stable ICU 2.0 + */ +#define U_SHAPE_LENGTH_GROW_SHRINK 0 + +/** + * Memory option: allow the result to have a different length than the source. + * Affects: LamAlef options + * This option is an alias to U_SHAPE_LENGTH_GROW_SHRINK + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_RESIZE 0 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces next to modified characters. + * @stable ICU 2.0 + */ +#define U_SHAPE_LENGTH_FIXED_SPACES_NEAR 1 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces next to modified characters. + * Affects: LamAlef options + * This option is an alias to U_SHAPE_LENGTH_FIXED_SPACES_NEAR + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_NEAR 1 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces at the end of the text. + * @stable ICU 2.0 + */ +#define U_SHAPE_LENGTH_FIXED_SPACES_AT_END 2 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces at the end of the text. + * Affects: LamAlef options + * This option is an alias to U_SHAPE_LENGTH_FIXED_SPACES_AT_END + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_END 2 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces at the beginning of the text. + * @stable ICU 2.0 + */ +#define U_SHAPE_LENGTH_FIXED_SPACES_AT_BEGINNING 3 + +/** + * Memory option: the result must have the same length as the source. + * If more room is necessary, then try to consume spaces at the beginning of the text. + * Affects: LamAlef options + * This option is an alias to U_SHAPE_LENGTH_FIXED_SPACES_AT_BEGINNING + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_BEGIN 3 + + +/** + * Memory option: the result must have the same length as the source. + * Shaping Mode: For each LAMALEF character found, expand LAMALEF using space at end. + * If there is no space at end, use spaces at beginning of the buffer. If there + * is no space at beginning of the buffer, use spaces at the near (i.e. the space + * after the LAMALEF character). + * If there are no spaces found, an error U_NO_SPACE_AVAILABLE (as defined in utypes.h) + * will be set in pErrorCode + * + * Deshaping Mode: Perform the same function as the flag equals U_SHAPE_LAMALEF_END. + * Affects: LamAlef options + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_AUTO 0x10000 + +/** Bit mask for memory options. @stable ICU 2.0 */ +#define U_SHAPE_LENGTH_MASK 0x10003 /* Changed old value 3 */ + + +/** + * Bit mask for LamAlef memory options. + * @stable ICU 4.2 + */ +#define U_SHAPE_LAMALEF_MASK 0x10003 /* updated */ + +/** Direction indicator: the source is in logical (keyboard) order. @stable ICU 2.0 */ +#define U_SHAPE_TEXT_DIRECTION_LOGICAL 0 + +/** + * Direction indicator: + * the source is in visual RTL order, + * the rightmost displayed character stored first. + * This option is an alias to U_SHAPE_TEXT_DIRECTION_LOGICAL + * @stable ICU 4.2 + */ +#define U_SHAPE_TEXT_DIRECTION_VISUAL_RTL 0 + +/** + * Direction indicator: + * the source is in visual LTR order, + * the leftmost displayed character stored first. + * @stable ICU 2.0 + */ +#define U_SHAPE_TEXT_DIRECTION_VISUAL_LTR 4 + +/** Bit mask for direction indicators. @stable ICU 2.0 */ +#define U_SHAPE_TEXT_DIRECTION_MASK 4 + + +/** Letter shaping option: do not perform letter shaping. @stable ICU 2.0 */ +#define U_SHAPE_LETTERS_NOOP 0 + +/** Letter shaping option: replace abstract letter characters by "shaped" ones. @stable ICU 2.0 */ +#define U_SHAPE_LETTERS_SHAPE 8 + +/** Letter shaping option: replace "shaped" letter characters by abstract ones. @stable ICU 2.0 */ +#define U_SHAPE_LETTERS_UNSHAPE 0x10 + +/** + * Letter shaping option: replace abstract letter characters by "shaped" ones. + * The only difference with U_SHAPE_LETTERS_SHAPE is that Tashkeel letters + * are always "shaped" into the isolated form instead of the medial form + * (selecting code points from the Arabic Presentation Forms-B block). + * @stable ICU 2.0 + */ +#define U_SHAPE_LETTERS_SHAPE_TASHKEEL_ISOLATED 0x18 + + +/** Bit mask for letter shaping options. @stable ICU 2.0 */ +#define U_SHAPE_LETTERS_MASK 0x18 + + +/** Digit shaping option: do not perform digit shaping. @stable ICU 2.0 */ +#define U_SHAPE_DIGITS_NOOP 0 + +/** + * Digit shaping option: + * Replace European digits (U+0030...) by Arabic-Indic digits. + * @stable ICU 2.0 + */ +#define U_SHAPE_DIGITS_EN2AN 0x20 + +/** + * Digit shaping option: + * Replace Arabic-Indic digits by European digits (U+0030...). + * @stable ICU 2.0 + */ +#define U_SHAPE_DIGITS_AN2EN 0x40 + +/** + * Digit shaping option: + * Replace European digits (U+0030...) by Arabic-Indic digits if the most recent + * strongly directional character is an Arabic letter + * (u_charDirection() result U_RIGHT_TO_LEFT_ARABIC [AL]).
+ * The direction of "preceding" depends on the direction indicator option. + * For the first characters, the preceding strongly directional character + * (initial state) is assumed to be not an Arabic letter + * (it is U_LEFT_TO_RIGHT [L] or U_RIGHT_TO_LEFT [R]). + * @stable ICU 2.0 + */ +#define U_SHAPE_DIGITS_ALEN2AN_INIT_LR 0x60 + +/** + * Digit shaping option: + * Replace European digits (U+0030...) by Arabic-Indic digits if the most recent + * strongly directional character is an Arabic letter + * (u_charDirection() result U_RIGHT_TO_LEFT_ARABIC [AL]).
+ * The direction of "preceding" depends on the direction indicator option. + * For the first characters, the preceding strongly directional character + * (initial state) is assumed to be an Arabic letter. + * @stable ICU 2.0 + */ +#define U_SHAPE_DIGITS_ALEN2AN_INIT_AL 0x80 + +/** Not a valid option value. May be replaced by a new option. @stable ICU 2.0 */ +#define U_SHAPE_DIGITS_RESERVED 0xa0 + +/** Bit mask for digit shaping options. @stable ICU 2.0 */ +#define U_SHAPE_DIGITS_MASK 0xe0 + + +/** Digit type option: Use Arabic-Indic digits (U+0660...U+0669). @stable ICU 2.0 */ +#define U_SHAPE_DIGIT_TYPE_AN 0 + +/** Digit type option: Use Eastern (Extended) Arabic-Indic digits (U+06f0...U+06f9). @stable ICU 2.0 */ +#define U_SHAPE_DIGIT_TYPE_AN_EXTENDED 0x100 + +/** Not a valid option value. May be replaced by a new option. @stable ICU 2.0 */ +#define U_SHAPE_DIGIT_TYPE_RESERVED 0x200 + +/** Bit mask for digit type options. @stable ICU 2.0 */ +#define U_SHAPE_DIGIT_TYPE_MASK 0x300 /* I need to change this from 0x3f00 to 0x300 */ + +/** + * Tashkeel aggregation option: + * Replaces any combination of U+0651 with one of + * U+064C, U+064D, U+064E, U+064F, U+0650 with + * U+FC5E, U+FC5F, U+FC60, U+FC61, U+FC62 consecutively. + * @stable ICU 3.6 + */ +#define U_SHAPE_AGGREGATE_TASHKEEL 0x4000 +/** Tashkeel aggregation option: do not aggregate tashkeels. @stable ICU 3.6 */ +#define U_SHAPE_AGGREGATE_TASHKEEL_NOOP 0 +/** Bit mask for tashkeel aggregation. @stable ICU 3.6 */ +#define U_SHAPE_AGGREGATE_TASHKEEL_MASK 0x4000 + +/** + * Presentation form option: + * Don't replace Arabic Presentation Forms-A and Arabic Presentation Forms-B + * characters with 0+06xx characters, before shaping. + * @stable ICU 3.6 + */ +#define U_SHAPE_PRESERVE_PRESENTATION 0x8000 +/** Presentation form option: + * Replace Arabic Presentation Forms-A and Arabic Presentationo Forms-B with + * their unshaped correspondants in range 0+06xx, before shaping. + * @stable ICU 3.6 + */ +#define U_SHAPE_PRESERVE_PRESENTATION_NOOP 0 +/** Bit mask for preserve presentation form. @stable ICU 3.6 */ +#define U_SHAPE_PRESERVE_PRESENTATION_MASK 0x8000 + +/* Seen Tail option */ +/** + * Memory option: the result must have the same length as the source. + * Shaping mode: The SEEN family character will expand into two characters using space near + * the SEEN family character(i.e. the space after the character). + * If there are no spaces found, an error U_NO_SPACE_AVAILABLE (as defined in utypes.h) + * will be set in pErrorCode + * + * De-shaping mode: Any Seen character followed by Tail character will be + * replaced by one cell Seen and a space will replace the Tail. + * Affects: Seen options + * @stable ICU 4.2 + */ +#define U_SHAPE_SEEN_TWOCELL_NEAR 0x200000 + +/** + * Bit mask for Seen memory options. + * @stable ICU 4.2 + */ +#define U_SHAPE_SEEN_MASK 0x700000 + +/* YehHamza option */ +/** + * Memory option: the result must have the same length as the source. + * Shaping mode: The YEHHAMZA character will expand into two characters using space near it + * (i.e. the space after the character + * If there are no spaces found, an error U_NO_SPACE_AVAILABLE (as defined in utypes.h) + * will be set in pErrorCode + * + * De-shaping mode: Any Yeh (final or isolated) character followed by Hamza character will be + * replaced by one cell YehHamza and space will replace the Hamza. + * Affects: YehHamza options + * @stable ICU 4.2 + */ +#define U_SHAPE_YEHHAMZA_TWOCELL_NEAR 0x1000000 + + +/** + * Bit mask for YehHamza memory options. + * @stable ICU 4.2 + */ +#define U_SHAPE_YEHHAMZA_MASK 0x3800000 + +/* New Tashkeel options */ +/** + * Memory option: the result must have the same length as the source. + * Shaping mode: Tashkeel characters will be replaced by spaces. + * Spaces will be placed at beginning of the buffer + * + * De-shaping mode: N/A + * Affects: Tashkeel options + * @stable ICU 4.2 + */ +#define U_SHAPE_TASHKEEL_BEGIN 0x40000 + +/** + * Memory option: the result must have the same length as the source. + * Shaping mode: Tashkeel characters will be replaced by spaces. + * Spaces will be placed at end of the buffer + * + * De-shaping mode: N/A + * Affects: Tashkeel options + * @stable ICU 4.2 + */ +#define U_SHAPE_TASHKEEL_END 0x60000 + +/** + * Memory option: allow the result to have a different length than the source. + * Shaping mode: Tashkeel characters will be removed, buffer length will shrink. + * De-shaping mode: N/A + * + * Affect: Tashkeel options + * @stable ICU 4.2 + */ +#define U_SHAPE_TASHKEEL_RESIZE 0x80000 + +/** + * Memory option: the result must have the same length as the source. + * Shaping mode: Tashkeel characters will be replaced by Tatweel if it is connected to adjacent + * characters (i.e. shaped on Tatweel) or replaced by space if it is not connected. + * + * De-shaping mode: N/A + * Affects: YehHamza options + * @stable ICU 4.2 + */ +#define U_SHAPE_TASHKEEL_REPLACE_BY_TATWEEL 0xC0000 + +/** + * Bit mask for Tashkeel replacement with Space or Tatweel memory options. + * @stable ICU 4.2 + */ +#define U_SHAPE_TASHKEEL_MASK 0xE0000 + + +/* Space location Control options */ +/** + * This option affect the meaning of BEGIN and END options. if this option is not used the default + * for BEGIN and END will be as following: + * The Default (for both Visual LTR, Visual RTL and Logical Text) + * 1. BEGIN always refers to the start address of physical memory. + * 2. END always refers to the end address of physical memory. + * + * If this option is used it will swap the meaning of BEGIN and END only for Visual LTR text. + * + * The effect on BEGIN and END Memory Options will be as following: + * A. BEGIN For Visual LTR text: This will be the beginning (right side) of the visual text( + * corresponding to the physical memory address end for Visual LTR text, Same as END in + * default behavior) + * B. BEGIN For Logical text: Same as BEGIN in default behavior. + * C. END For Visual LTR text: This will be the end (left side) of the visual text (corresponding + * to the physical memory address beginning for Visual LTR text, Same as BEGIN in default behavior. + * D. END For Logical text: Same as END in default behavior). + * Affects: All LamAlef BEGIN, END and AUTO options. + * @stable ICU 4.2 + */ +#define U_SHAPE_SPACES_RELATIVE_TO_TEXT_BEGIN_END 0x4000000 + +/** + * Bit mask for swapping BEGIN and END for Visual LTR text + * @stable ICU 4.2 + */ +#define U_SHAPE_SPACES_RELATIVE_TO_TEXT_MASK 0x4000000 + +/** + * If this option is used, shaping will use the new Unicode code point for TAIL (i.e. 0xFE73). + * If this option is not specified (Default), old unofficial Unicode TAIL code point is used (i.e. 0x200B) + * De-shaping will not use this option as it will always search for both the new Unicode code point for the + * TAIL (i.e. 0xFE73) or the old unofficial Unicode TAIL code point (i.e. 0x200B) and de-shape the + * Seen-Family letter accordingly. + * + * Shaping Mode: Only shaping. + * De-shaping Mode: N/A. + * Affects: All Seen options + * @stable ICU 4.8 + */ +#define U_SHAPE_TAIL_NEW_UNICODE 0x8000000 + +/** + * Bit mask for new Unicode Tail option + * @stable ICU 4.8 + */ +#define U_SHAPE_TAIL_TYPE_MASK 0x8000000 + +#endif + +// uscript.h +/* + ********************************************************************** + * Copyright (C) 1997-2015, International Business Machines + * Corporation and others. All Rights Reserved. + ********************************************************************** + * + * File USCRIPT.H + * + * Modification History: + * + * Date Name Description + * 07/06/2001 Ram Creation. + ****************************************************************************** + */ + +#ifndef USCRIPT_H +#define USCRIPT_H + +/** + * \file + * \brief C API: Unicode Script Information + */ + +/** + * Constants for ISO 15924 script codes. + * + * The current set of script code constants supports at least all scripts + * that are encoded in the version of Unicode which ICU currently supports. + * The names of the constants are usually derived from the + * Unicode script property value aliases. + * See UAX #24 Unicode Script Property (http://www.unicode.org/reports/tr24/) + * and http://www.unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt . + * + * Starting with ICU 3.6, constants for most ISO 15924 script codes + * are included, for use with language tags, CLDR data, and similar. + * Some of those codes are not used in the Unicode Character Database (UCD). + * For example, there are no characters that have a UCD script property value of + * Hans or Hant. All Han ideographs have the Hani script property value in Unicode. + * + * Private-use codes Qaaa..Qabx are not included. + * + * Starting with ICU 55, script codes are only added when their scripts + * have been or will certainly be encoded in Unicode, + * and have been assigned Unicode script property value aliases, + * to ensure that their script names are stable and match the names of the constants. + * Script codes like Latf and Aran that are not subject to separate encoding + * may be added at any time. + * + * @stable ICU 2.2 + */ +typedef enum UScriptCode { + /* + * Note: UScriptCode constants and their ISO script code comments + * are parsed by preparseucd.py. + * It matches lines like + * USCRIPT_ = , / * * / + */ + + /** @stable ICU 2.2 */ + USCRIPT_INVALID_CODE = -1, + /** @stable ICU 2.2 */ + USCRIPT_COMMON = 0, /* Zyyy */ + /** @stable ICU 2.2 */ + USCRIPT_INHERITED = 1, /* Zinh */ /* "Code for inherited script", for non-spacing combining marks; also Qaai */ + /** @stable ICU 2.2 */ + USCRIPT_ARABIC = 2, /* Arab */ + /** @stable ICU 2.2 */ + USCRIPT_ARMENIAN = 3, /* Armn */ + /** @stable ICU 2.2 */ + USCRIPT_BENGALI = 4, /* Beng */ + /** @stable ICU 2.2 */ + USCRIPT_BOPOMOFO = 5, /* Bopo */ + /** @stable ICU 2.2 */ + USCRIPT_CHEROKEE = 6, /* Cher */ + /** @stable ICU 2.2 */ + USCRIPT_COPTIC = 7, /* Copt */ + /** @stable ICU 2.2 */ + USCRIPT_CYRILLIC = 8, /* Cyrl */ + /** @stable ICU 2.2 */ + USCRIPT_DESERET = 9, /* Dsrt */ + /** @stable ICU 2.2 */ + USCRIPT_DEVANAGARI = 10, /* Deva */ + /** @stable ICU 2.2 */ + USCRIPT_ETHIOPIC = 11, /* Ethi */ + /** @stable ICU 2.2 */ + USCRIPT_GEORGIAN = 12, /* Geor */ + /** @stable ICU 2.2 */ + USCRIPT_GOTHIC = 13, /* Goth */ + /** @stable ICU 2.2 */ + USCRIPT_GREEK = 14, /* Grek */ + /** @stable ICU 2.2 */ + USCRIPT_GUJARATI = 15, /* Gujr */ + /** @stable ICU 2.2 */ + USCRIPT_GURMUKHI = 16, /* Guru */ + /** @stable ICU 2.2 */ + USCRIPT_HAN = 17, /* Hani */ + /** @stable ICU 2.2 */ + USCRIPT_HANGUL = 18, /* Hang */ + /** @stable ICU 2.2 */ + USCRIPT_HEBREW = 19, /* Hebr */ + /** @stable ICU 2.2 */ + USCRIPT_HIRAGANA = 20, /* Hira */ + /** @stable ICU 2.2 */ + USCRIPT_KANNADA = 21, /* Knda */ + /** @stable ICU 2.2 */ + USCRIPT_KATAKANA = 22, /* Kana */ + /** @stable ICU 2.2 */ + USCRIPT_KHMER = 23, /* Khmr */ + /** @stable ICU 2.2 */ + USCRIPT_LAO = 24, /* Laoo */ + /** @stable ICU 2.2 */ + USCRIPT_LATIN = 25, /* Latn */ + /** @stable ICU 2.2 */ + USCRIPT_MALAYALAM = 26, /* Mlym */ + /** @stable ICU 2.2 */ + USCRIPT_MONGOLIAN = 27, /* Mong */ + /** @stable ICU 2.2 */ + USCRIPT_MYANMAR = 28, /* Mymr */ + /** @stable ICU 2.2 */ + USCRIPT_OGHAM = 29, /* Ogam */ + /** @stable ICU 2.2 */ + USCRIPT_OLD_ITALIC = 30, /* Ital */ + /** @stable ICU 2.2 */ + USCRIPT_ORIYA = 31, /* Orya */ + /** @stable ICU 2.2 */ + USCRIPT_RUNIC = 32, /* Runr */ + /** @stable ICU 2.2 */ + USCRIPT_SINHALA = 33, /* Sinh */ + /** @stable ICU 2.2 */ + USCRIPT_SYRIAC = 34, /* Syrc */ + /** @stable ICU 2.2 */ + USCRIPT_TAMIL = 35, /* Taml */ + /** @stable ICU 2.2 */ + USCRIPT_TELUGU = 36, /* Telu */ + /** @stable ICU 2.2 */ + USCRIPT_THAANA = 37, /* Thaa */ + /** @stable ICU 2.2 */ + USCRIPT_THAI = 38, /* Thai */ + /** @stable ICU 2.2 */ + USCRIPT_TIBETAN = 39, /* Tibt */ + /** Canadian_Aboriginal script. @stable ICU 2.6 */ + USCRIPT_CANADIAN_ABORIGINAL = 40, /* Cans */ + /** Canadian_Aboriginal script (alias). @stable ICU 2.2 */ + USCRIPT_UCAS = USCRIPT_CANADIAN_ABORIGINAL, + /** @stable ICU 2.2 */ + USCRIPT_YI = 41, /* Yiii */ + /* New scripts in Unicode 3.2 */ + /** @stable ICU 2.2 */ + USCRIPT_TAGALOG = 42, /* Tglg */ + /** @stable ICU 2.2 */ + USCRIPT_HANUNOO = 43, /* Hano */ + /** @stable ICU 2.2 */ + USCRIPT_BUHID = 44, /* Buhd */ + /** @stable ICU 2.2 */ + USCRIPT_TAGBANWA = 45, /* Tagb */ + + /* New scripts in Unicode 4 */ + /** @stable ICU 2.6 */ + USCRIPT_BRAILLE = 46, /* Brai */ + /** @stable ICU 2.6 */ + USCRIPT_CYPRIOT = 47, /* Cprt */ + /** @stable ICU 2.6 */ + USCRIPT_LIMBU = 48, /* Limb */ + /** @stable ICU 2.6 */ + USCRIPT_LINEAR_B = 49, /* Linb */ + /** @stable ICU 2.6 */ + USCRIPT_OSMANYA = 50, /* Osma */ + /** @stable ICU 2.6 */ + USCRIPT_SHAVIAN = 51, /* Shaw */ + /** @stable ICU 2.6 */ + USCRIPT_TAI_LE = 52, /* Tale */ + /** @stable ICU 2.6 */ + USCRIPT_UGARITIC = 53, /* Ugar */ + + /** New script code in Unicode 4.0.1 @stable ICU 3.0 */ + USCRIPT_KATAKANA_OR_HIRAGANA = 54,/*Hrkt */ + + /* New scripts in Unicode 4.1 */ + /** @stable ICU 3.4 */ + USCRIPT_BUGINESE = 55, /* Bugi */ + /** @stable ICU 3.4 */ + USCRIPT_GLAGOLITIC = 56, /* Glag */ + /** @stable ICU 3.4 */ + USCRIPT_KHAROSHTHI = 57, /* Khar */ + /** @stable ICU 3.4 */ + USCRIPT_SYLOTI_NAGRI = 58, /* Sylo */ + /** @stable ICU 3.4 */ + USCRIPT_NEW_TAI_LUE = 59, /* Talu */ + /** @stable ICU 3.4 */ + USCRIPT_TIFINAGH = 60, /* Tfng */ + /** @stable ICU 3.4 */ + USCRIPT_OLD_PERSIAN = 61, /* Xpeo */ + + /* New script codes from Unicode and ISO 15924 */ + /** @stable ICU 3.6 */ + USCRIPT_BALINESE = 62, /* Bali */ + /** @stable ICU 3.6 */ + USCRIPT_BATAK = 63, /* Batk */ + /** @stable ICU 3.6 */ + USCRIPT_BLISSYMBOLS = 64, /* Blis */ + /** @stable ICU 3.6 */ + USCRIPT_BRAHMI = 65, /* Brah */ + /** @stable ICU 3.6 */ + USCRIPT_CHAM = 66, /* Cham */ + /** @stable ICU 3.6 */ + USCRIPT_CIRTH = 67, /* Cirt */ + /** @stable ICU 3.6 */ + USCRIPT_OLD_CHURCH_SLAVONIC_CYRILLIC = 68, /* Cyrs */ + /** @stable ICU 3.6 */ + USCRIPT_DEMOTIC_EGYPTIAN = 69, /* Egyd */ + /** @stable ICU 3.6 */ + USCRIPT_HIERATIC_EGYPTIAN = 70, /* Egyh */ + /** @stable ICU 3.6 */ + USCRIPT_EGYPTIAN_HIEROGLYPHS = 71, /* Egyp */ + /** @stable ICU 3.6 */ + USCRIPT_KHUTSURI = 72, /* Geok */ + /** @stable ICU 3.6 */ + USCRIPT_SIMPLIFIED_HAN = 73, /* Hans */ + /** @stable ICU 3.6 */ + USCRIPT_TRADITIONAL_HAN = 74, /* Hant */ + /** @stable ICU 3.6 */ + USCRIPT_PAHAWH_HMONG = 75, /* Hmng */ + /** @stable ICU 3.6 */ + USCRIPT_OLD_HUNGARIAN = 76, /* Hung */ + /** @stable ICU 3.6 */ + USCRIPT_HARAPPAN_INDUS = 77, /* Inds */ + /** @stable ICU 3.6 */ + USCRIPT_JAVANESE = 78, /* Java */ + /** @stable ICU 3.6 */ + USCRIPT_KAYAH_LI = 79, /* Kali */ + /** @stable ICU 3.6 */ + USCRIPT_LATIN_FRAKTUR = 80, /* Latf */ + /** @stable ICU 3.6 */ + USCRIPT_LATIN_GAELIC = 81, /* Latg */ + /** @stable ICU 3.6 */ + USCRIPT_LEPCHA = 82, /* Lepc */ + /** @stable ICU 3.6 */ + USCRIPT_LINEAR_A = 83, /* Lina */ + /** @stable ICU 4.6 */ + USCRIPT_MANDAIC = 84, /* Mand */ + /** @stable ICU 3.6 */ + USCRIPT_MANDAEAN = USCRIPT_MANDAIC, + /** @stable ICU 3.6 */ + USCRIPT_MAYAN_HIEROGLYPHS = 85, /* Maya */ + /** @stable ICU 4.6 */ + USCRIPT_MEROITIC_HIEROGLYPHS = 86, /* Mero */ + /** @stable ICU 3.6 */ + USCRIPT_MEROITIC = USCRIPT_MEROITIC_HIEROGLYPHS, + /** @stable ICU 3.6 */ + USCRIPT_NKO = 87, /* Nkoo */ + /** @stable ICU 3.6 */ + USCRIPT_ORKHON = 88, /* Orkh */ + /** @stable ICU 3.6 */ + USCRIPT_OLD_PERMIC = 89, /* Perm */ + /** @stable ICU 3.6 */ + USCRIPT_PHAGS_PA = 90, /* Phag */ + /** @stable ICU 3.6 */ + USCRIPT_PHOENICIAN = 91, /* Phnx */ + /** @stable ICU 52 */ + USCRIPT_MIAO = 92, /* Plrd */ + /** @stable ICU 3.6 */ + USCRIPT_PHONETIC_POLLARD = USCRIPT_MIAO, + /** @stable ICU 3.6 */ + USCRIPT_RONGORONGO = 93, /* Roro */ + /** @stable ICU 3.6 */ + USCRIPT_SARATI = 94, /* Sara */ + /** @stable ICU 3.6 */ + USCRIPT_ESTRANGELO_SYRIAC = 95, /* Syre */ + /** @stable ICU 3.6 */ + USCRIPT_WESTERN_SYRIAC = 96, /* Syrj */ + /** @stable ICU 3.6 */ + USCRIPT_EASTERN_SYRIAC = 97, /* Syrn */ + /** @stable ICU 3.6 */ + USCRIPT_TENGWAR = 98, /* Teng */ + /** @stable ICU 3.6 */ + USCRIPT_VAI = 99, /* Vaii */ + /** @stable ICU 3.6 */ + USCRIPT_VISIBLE_SPEECH = 100,/* Visp */ + /** @stable ICU 3.6 */ + USCRIPT_CUNEIFORM = 101,/* Xsux */ + /** @stable ICU 3.6 */ + USCRIPT_UNWRITTEN_LANGUAGES = 102,/* Zxxx */ + /** @stable ICU 3.6 */ + USCRIPT_UNKNOWN = 103,/* Zzzz */ /* Unknown="Code for uncoded script", for unassigned code points */ + + /** @stable ICU 3.8 */ + USCRIPT_CARIAN = 104,/* Cari */ + /** @stable ICU 3.8 */ + USCRIPT_JAPANESE = 105,/* Jpan */ + /** @stable ICU 3.8 */ + USCRIPT_LANNA = 106,/* Lana */ + /** @stable ICU 3.8 */ + USCRIPT_LYCIAN = 107,/* Lyci */ + /** @stable ICU 3.8 */ + USCRIPT_LYDIAN = 108,/* Lydi */ + /** @stable ICU 3.8 */ + USCRIPT_OL_CHIKI = 109,/* Olck */ + /** @stable ICU 3.8 */ + USCRIPT_REJANG = 110,/* Rjng */ + /** @stable ICU 3.8 */ + USCRIPT_SAURASHTRA = 111,/* Saur */ + /** Sutton SignWriting @stable ICU 3.8 */ + USCRIPT_SIGN_WRITING = 112,/* Sgnw */ + /** @stable ICU 3.8 */ + USCRIPT_SUNDANESE = 113,/* Sund */ + /** @stable ICU 3.8 */ + USCRIPT_MOON = 114,/* Moon */ + /** @stable ICU 3.8 */ + USCRIPT_MEITEI_MAYEK = 115,/* Mtei */ + + /** @stable ICU 4.0 */ + USCRIPT_IMPERIAL_ARAMAIC = 116,/* Armi */ + /** @stable ICU 4.0 */ + USCRIPT_AVESTAN = 117,/* Avst */ + /** @stable ICU 4.0 */ + USCRIPT_CHAKMA = 118,/* Cakm */ + /** @stable ICU 4.0 */ + USCRIPT_KOREAN = 119,/* Kore */ + /** @stable ICU 4.0 */ + USCRIPT_KAITHI = 120,/* Kthi */ + /** @stable ICU 4.0 */ + USCRIPT_MANICHAEAN = 121,/* Mani */ + /** @stable ICU 4.0 */ + USCRIPT_INSCRIPTIONAL_PAHLAVI = 122,/* Phli */ + /** @stable ICU 4.0 */ + USCRIPT_PSALTER_PAHLAVI = 123,/* Phlp */ + /** @stable ICU 4.0 */ + USCRIPT_BOOK_PAHLAVI = 124,/* Phlv */ + /** @stable ICU 4.0 */ + USCRIPT_INSCRIPTIONAL_PARTHIAN = 125,/* Prti */ + /** @stable ICU 4.0 */ + USCRIPT_SAMARITAN = 126,/* Samr */ + /** @stable ICU 4.0 */ + USCRIPT_TAI_VIET = 127,/* Tavt */ + /** @stable ICU 4.0 */ + USCRIPT_MATHEMATICAL_NOTATION = 128,/* Zmth */ + /** @stable ICU 4.0 */ + USCRIPT_SYMBOLS = 129,/* Zsym */ + + /** @stable ICU 4.4 */ + USCRIPT_BAMUM = 130,/* Bamu */ + /** @stable ICU 4.4 */ + USCRIPT_LISU = 131,/* Lisu */ + /** @stable ICU 4.4 */ + USCRIPT_NAKHI_GEBA = 132,/* Nkgb */ + /** @stable ICU 4.4 */ + USCRIPT_OLD_SOUTH_ARABIAN = 133,/* Sarb */ + + /** @stable ICU 4.6 */ + USCRIPT_BASSA_VAH = 134,/* Bass */ + /** @stable ICU 54 */ + USCRIPT_DUPLOYAN = 135,/* Dupl */ + /** @stable ICU 4.6 */ + USCRIPT_ELBASAN = 136,/* Elba */ + /** @stable ICU 4.6 */ + USCRIPT_GRANTHA = 137,/* Gran */ + /** @stable ICU 4.6 */ + USCRIPT_KPELLE = 138,/* Kpel */ + /** @stable ICU 4.6 */ + USCRIPT_LOMA = 139,/* Loma */ + /** Mende Kikakui @stable ICU 4.6 */ + USCRIPT_MENDE = 140,/* Mend */ + /** @stable ICU 4.6 */ + USCRIPT_MEROITIC_CURSIVE = 141,/* Merc */ + /** @stable ICU 4.6 */ + USCRIPT_OLD_NORTH_ARABIAN = 142,/* Narb */ + /** @stable ICU 4.6 */ + USCRIPT_NABATAEAN = 143,/* Nbat */ + /** @stable ICU 4.6 */ + USCRIPT_PALMYRENE = 144,/* Palm */ + /** @stable ICU 54 */ + USCRIPT_KHUDAWADI = 145,/* Sind */ + /** @stable ICU 4.6 */ + USCRIPT_SINDHI = USCRIPT_KHUDAWADI, + /** @stable ICU 4.6 */ + USCRIPT_WARANG_CITI = 146,/* Wara */ + + /** @stable ICU 4.8 */ + USCRIPT_AFAKA = 147,/* Afak */ + /** @stable ICU 4.8 */ + USCRIPT_JURCHEN = 148,/* Jurc */ + /** @stable ICU 4.8 */ + USCRIPT_MRO = 149,/* Mroo */ + /** @stable ICU 4.8 */ + USCRIPT_NUSHU = 150,/* Nshu */ + /** @stable ICU 4.8 */ + USCRIPT_SHARADA = 151,/* Shrd */ + /** @stable ICU 4.8 */ + USCRIPT_SORA_SOMPENG = 152,/* Sora */ + /** @stable ICU 4.8 */ + USCRIPT_TAKRI = 153,/* Takr */ + /** @stable ICU 4.8 */ + USCRIPT_TANGUT = 154,/* Tang */ + /** @stable ICU 4.8 */ + USCRIPT_WOLEAI = 155,/* Wole */ + + /** @stable ICU 49 */ + USCRIPT_ANATOLIAN_HIEROGLYPHS = 156,/* Hluw */ + /** @stable ICU 49 */ + USCRIPT_KHOJKI = 157,/* Khoj */ + /** @stable ICU 49 */ + USCRIPT_TIRHUTA = 158,/* Tirh */ + + /** @stable ICU 52 */ + USCRIPT_CAUCASIAN_ALBANIAN = 159,/* Aghb */ + /** @stable ICU 52 */ + USCRIPT_MAHAJANI = 160,/* Mahj */ + + /** @stable ICU 54 */ + USCRIPT_AHOM = 161,/* Ahom */ + /** @stable ICU 54 */ + USCRIPT_HATRAN = 162,/* Hatr */ + /** @stable ICU 54 */ + USCRIPT_MODI = 163,/* Modi */ + /** @stable ICU 54 */ + USCRIPT_MULTANI = 164,/* Mult */ + /** @stable ICU 54 */ + USCRIPT_PAU_CIN_HAU = 165,/* Pauc */ + /** @stable ICU 54 */ + USCRIPT_SIDDHAM = 166,/* Sidd */ + + /** + * One higher than the last script code constant. + * This value increases as constants for script codes are added. + * + * There are constants for Unicode 7 script property values. + * There are constants for ISO 15924 script codes assigned on or before 2013-10-12. + * There are no constants for private use codes from Qaaa - Qabx + * except as used in the UCD. + * + * @stable ICU 2.2 + */ + USCRIPT_CODE_LIMIT = 167 +} UScriptCode; + +/** + * Gets the script codes associated with the given locale or ISO 15924 abbreviation or name. + * Fills in USCRIPT_MALAYALAM given "Malayam" OR "Mlym". + * Fills in USCRIPT_LATIN given "en" OR "en_US" + * If the required capacity is greater than the capacity of the destination buffer, + * then the error code is set to U_BUFFER_OVERFLOW_ERROR and the required capacity is returned. + * + *

Note: To search by short or long script alias only, use + * u_getPropertyValueEnum(UCHAR_SCRIPT, alias) instead. That does + * a fast lookup with no access of the locale data. + * + * @param nameOrAbbrOrLocale name of the script, as given in + * PropertyValueAliases.txt, or ISO 15924 code or locale + * @param fillIn the UScriptCode buffer to fill in the script code + * @param capacity the capacity (size) fo UScriptCode buffer passed in. + * @param err the error status code. + * @return The number of script codes filled in the buffer passed in + * @stable ICU 2.4 + */ +U_STABLE int32_t U_EXPORT2 +uscript_getCode(const char* nameOrAbbrOrLocale,UScriptCode* fillIn,int32_t capacity,UErrorCode *err); + +/** + * Returns the long Unicode script name, if there is one. + * Otherwise returns the 4-letter ISO 15924 script code. + * Returns "Malayam" given USCRIPT_MALAYALAM. + * + * @param scriptCode UScriptCode enum + * @return long script name as given in PropertyValueAliases.txt, or the 4-letter code, + * or NULL if scriptCode is invalid + * @stable ICU 2.4 + */ +U_STABLE const char* U_EXPORT2 +uscript_getName(UScriptCode scriptCode); + +/** + * Returns the 4-letter ISO 15924 script code, + * which is the same as the short Unicode script name if Unicode has names for the script. + * Returns "Mlym" given USCRIPT_MALAYALAM. + * + * @param scriptCode UScriptCode enum + * @return short script name (4-letter code), or NULL if scriptCode is invalid + * @stable ICU 2.4 + */ +U_STABLE const char* U_EXPORT2 +uscript_getShortName(UScriptCode scriptCode); + +/** + * Gets the script code associated with the given codepoint. + * Returns USCRIPT_MALAYALAM given 0x0D02 + * @param codepoint UChar32 codepoint + * @param err the error status code. + * @return The UScriptCode, or 0 if codepoint is invalid + * @stable ICU 2.4 + */ +U_STABLE UScriptCode U_EXPORT2 +uscript_getScript(UChar32 codepoint, UErrorCode *err); + +/** + * Do the Script_Extensions of code point c contain script sc? + * If c does not have explicit Script_Extensions, then this tests whether + * c has the Script property value sc. + * + * Some characters are commonly used in multiple scripts. + * For more information, see UAX #24: http://www.unicode.org/reports/tr24/. + * + * The Script_Extensions property is provisional. It may be modified or removed + * in future versions of the Unicode Standard, and thus in ICU. + * @param c code point + * @param sc script code + * @return TRUE if sc is in Script_Extensions(c) + * @stable ICU 49 + */ +U_STABLE UBool U_EXPORT2 +uscript_hasScript(UChar32 c, UScriptCode sc); + +/** + * Writes code point c's Script_Extensions as a list of UScriptCode values + * to the output scripts array and returns the number of script codes. + * - If c does have Script_Extensions, then the Script property value + * (normally Common or Inherited) is not included. + * - If c does not have Script_Extensions, then the one Script code is written to the output array. + * - If c is not a valid code point, then the one USCRIPT_UNKNOWN code is written. + * In other words, if the return value is 1, + * then the output array contains exactly c's single Script code. + * If the return value is n>=2, then the output array contains c's n Script_Extensions script codes. + * + * Some characters are commonly used in multiple scripts. + * For more information, see UAX #24: http://www.unicode.org/reports/tr24/. + * + * If there are more than capacity script codes to be written, then + * U_BUFFER_OVERFLOW_ERROR is set and the number of Script_Extensions is returned. + * (Usual ICU buffer handling behavior.) + * + * The Script_Extensions property is provisional. It may be modified or removed + * in future versions of the Unicode Standard, and thus in ICU. + * @param c code point + * @param scripts output script code array + * @param capacity capacity of the scripts array + * @param errorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return number of script codes in c's Script_Extensions, or 1 for the single Script value, + * written to scripts unless U_BUFFER_OVERFLOW_ERROR indicates insufficient capacity + * @stable ICU 49 + */ +U_STABLE int32_t U_EXPORT2 +uscript_getScriptExtensions(UChar32 c, + UScriptCode *scripts, int32_t capacity, + UErrorCode *errorCode); + +/** + * Script usage constants. + * See UAX #31 Unicode Identifier and Pattern Syntax. + * http://www.unicode.org/reports/tr31/#Table_Candidate_Characters_for_Exclusion_from_Identifiers + * + * @stable ICU 51 + */ +typedef enum UScriptUsage { + /** Not encoded in Unicode. @stable ICU 51 */ + USCRIPT_USAGE_NOT_ENCODED, + /** Unknown script usage. @stable ICU 51 */ + USCRIPT_USAGE_UNKNOWN, + /** Candidate for Exclusion from Identifiers. @stable ICU 51 */ + USCRIPT_USAGE_EXCLUDED, + /** Limited Use script. @stable ICU 51 */ + USCRIPT_USAGE_LIMITED_USE, + /** Aspirational Use script. @stable ICU 51 */ + USCRIPT_USAGE_ASPIRATIONAL, + /** Recommended script. @stable ICU 51 */ + USCRIPT_USAGE_RECOMMENDED +} UScriptUsage; + +/** + * Writes the script sample character string. + * This string normally consists of one code point but might be longer. + * The string is empty if the script is not encoded. + * + * @param script script code + * @param dest output string array + * @param capacity number of UChars in the dest array + * @param pErrorCode standard ICU in/out error code, must pass U_SUCCESS() on input + * @return the string length, even if U_BUFFER_OVERFLOW_ERROR + * @stable ICU 51 + */ +U_STABLE int32_t U_EXPORT2 +uscript_getSampleString(UScriptCode script, UChar *dest, int32_t capacity, UErrorCode *pErrorCode); + + +/** + * Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax. + * Returns USCRIPT_USAGE_NOT_ENCODED if the script is not encoded in Unicode. + * + * @param script script code + * @return script usage + * @see UScriptUsage + * @stable ICU 51 + */ +U_STABLE UScriptUsage U_EXPORT2 +uscript_getUsage(UScriptCode script); + +/** + * Returns TRUE if the script is written right-to-left. + * For example, Arab and Hebr. + * + * @param script script code + * @return TRUE if the script is right-to-left + * @stable ICU 51 + */ +U_STABLE UBool U_EXPORT2 +uscript_isRightToLeft(UScriptCode script); + +/** + * Returns TRUE if the script allows line breaks between letters (excluding hyphenation). + * Such a script typically requires dictionary-based line breaking. + * For example, Hani and Thai. + * + * @param script script code + * @return TRUE if the script allows line breaks between letters + * @stable ICU 51 + */ +U_STABLE UBool U_EXPORT2 +uscript_breaksBetweenLetters(UScriptCode script); + +/** + * Returns TRUE if in modern (or most recent) usage of the script case distinctions are customary. + * For example, Latn and Cyrl. + * + * @param script script code + * @return TRUE if the script is cased + * @stable ICU 51 + */ +U_STABLE UBool U_EXPORT2 +uscript_isCased(UScriptCode script); + +#endif + +// urep.h +/* +****************************************************************************** +* Copyright (C) 1997-2010, International Business Machines +* Corporation and others. All Rights Reserved. +****************************************************************************** +* Date Name Description +* 06/23/00 aliu Creation. +****************************************************************************** +*/ + +#ifndef __UREP_H +#define __UREP_H + + +U_CDECL_BEGIN + +/******************************************************************** + * General Notes + ******************************************************************** + * TODO + * Add usage scenario + * Add test code + * Talk about pinning + * Talk about "can truncate result if out of memory" + */ + +/******************************************************************** + * Data Structures + ********************************************************************/ +/** + * \file + * \brief C API: Callbacks for UReplaceable + */ +/** + * An opaque replaceable text object. This will be manipulated only + * through the caller-supplied UReplaceableFunctor struct. Related + * to the C++ class Replaceable. + * This is currently only used in the Transliterator C API, see utrans.h . + * @stable ICU 2.0 + */ +typedef void* UReplaceable; + +/** + * A set of function pointers that transliterators use to manipulate a + * UReplaceable. The caller should supply the required functions to + * manipulate their text appropriately. Related to the C++ class + * Replaceable. + * @stable ICU 2.0 + */ +typedef struct UReplaceableCallbacks { + + /** + * Function pointer that returns the number of UChar code units in + * this text. + * + * @param rep A pointer to "this" UReplaceable object. + * @return The length of the text. + * @stable ICU 2.0 + */ + int32_t (*length)(const UReplaceable* rep); + + /** + * Function pointer that returns a UChar code units at the given + * offset into this text; 0 <= offset < n, where n is the value + * returned by (*length)(rep). See unistr.h for a description of + * charAt() vs. char32At(). + * + * @param rep A pointer to "this" UReplaceable object. + * @param offset The index at which to fetch the UChar (code unit). + * @return The UChar (code unit) at offset, or U+FFFF if the offset is out of bounds. + * @stable ICU 2.0 + */ + UChar (*charAt)(const UReplaceable* rep, + int32_t offset); + + /** + * Function pointer that returns a UChar32 code point at the given + * offset into this text. See unistr.h for a description of + * charAt() vs. char32At(). + * + * @param rep A pointer to "this" UReplaceable object. + * @param offset The index at which to fetch the UChar32 (code point). + * @return The UChar32 (code point) at offset, or U+FFFF if the offset is out of bounds. + * @stable ICU 2.0 + */ + UChar32 (*char32At)(const UReplaceable* rep, + int32_t offset); + + /** + * Function pointer that replaces text between start and limit in + * this text with the given text. Attributes (out of band info) + * should be retained. + * + * @param rep A pointer to "this" UReplaceable object. + * @param start the starting index of the text to be replaced, + * inclusive. + * @param limit the ending index of the text to be replaced, + * exclusive. + * @param text the new text to replace the UChars from + * start..limit-1. + * @param textLength the number of UChars at text, or -1 if text + * is null-terminated. + * @stable ICU 2.0 + */ + void (*replace)(UReplaceable* rep, + int32_t start, + int32_t limit, + const UChar* text, + int32_t textLength); + + /** + * Function pointer that copies the characters in the range + * [start, limit) into the array dst. + * + * @param rep A pointer to "this" UReplaceable object. + * @param start offset of first character which will be copied + * into the array + * @param limit offset immediately following the last character to + * be copied + * @param dst array in which to copy characters. The length of + * dst must be at least (limit - start). + * @stable ICU 2.1 + */ + void (*extract)(UReplaceable* rep, + int32_t start, + int32_t limit, + UChar* dst); + + /** + * Function pointer that copies text between start and limit in + * this text to another index in the text. Attributes (out of + * band info) should be retained. After this call, there will be + * (at least) two copies of the characters originally located at + * start..limit-1. + * + * @param rep A pointer to "this" UReplaceable object. + * @param start the starting index of the text to be copied, + * inclusive. + * @param limit the ending index of the text to be copied, + * exclusive. + * @param dest the index at which the copy of the UChars should be + * inserted. + * @stable ICU 2.0 + */ + void (*copy)(UReplaceable* rep, + int32_t start, + int32_t limit, + int32_t dest); + +} UReplaceableCallbacks; + +U_CDECL_END + +#endif + +// uobject.h +/* +****************************************************************************** +* +* Copyright (C) 2002-2012, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* file name: uobject.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2002jun26 +* created by: Markus W. Scherer +*/ + +#ifndef __UOBJECT_H__ +#define __UOBJECT_H__ + + +/** + * \file + * \brief C++ API: Common ICU base class UObject. + */ + +/** + * @{ + * \def U_NO_THROW + * Define this to define the throw() specification so + * certain functions do not throw any exceptions + * + * UMemory operator new methods should have the throw() specification + * appended to them, so that the compiler adds the additional NULL check + * before calling constructors. Without, if operator new returns NULL the + * constructor is still called, and if the constructor references member + * data, (which it typically does), the result is a segmentation violation. + * + * @stable ICU 4.2 + */ +#ifndef U_NO_THROW +#define U_NO_THROW throw() +#endif + +/** @} */ + +/*===========================================================================*/ +/* UClassID-based RTTI */ +/*===========================================================================*/ + +/** + * UClassID is used to identify classes without using the compiler's RTTI. + * This was used before C++ compilers consistently supported RTTI. + * ICU 4.6 requires compiler RTTI to be turned on. + * + * Each class hierarchy which needs + * to implement polymorphic clone() or operator==() defines two methods, + * described in detail below. UClassID values can be compared using + * operator==(). Nothing else should be done with them. + * + * \par + * In class hierarchies that implement "poor man's RTTI", + * each concrete subclass implements getDynamicClassID() in the same way: + * + * \code + * class Derived { + * public: + * virtual UClassID getDynamicClassID() const + * { return Derived::getStaticClassID(); } + * } + * \endcode + * + * Each concrete class implements getStaticClassID() as well, which allows + * clients to test for a specific type. + * + * \code + * class Derived { + * public: + * static UClassID U_EXPORT2 getStaticClassID(); + * private: + * static char fgClassID; + * } + * + * // In Derived.cpp: + * UClassID Derived::getStaticClassID() + * { return (UClassID)&Derived::fgClassID; } + * char Derived::fgClassID = 0; // Value is irrelevant + * \endcode + * @stable ICU 2.0 + */ +typedef void* UClassID; + + +#endif + +// umisc.h +/* +********************************************************************** +* Copyright (C) 1999-2006, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* file name: umisc.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 1999oct15 +* created by: Markus W. Scherer +*/ + +#ifndef UMISC_H +#define UMISC_H + + +/** + * \file + * \brief C API:misc definitions + * + * This file contains miscellaneous definitions for the C APIs. + */ + +U_CDECL_BEGIN + +/** A struct representing a range of text containing a specific field + * @stable ICU 2.0 + */ +typedef struct UFieldPosition { + /** + * The field + * @stable ICU 2.0 + */ + int32_t field; + /** + * The start of the text range containing field + * @stable ICU 2.0 + */ + int32_t beginIndex; + /** + * The limit of the text range containing field + * @stable ICU 2.0 + */ + int32_t endIndex; +} UFieldPosition; + +#if !UCONFIG_NO_SERVICE +/** + * Opaque type returned by registerInstance, registerFactory and unregister for service registration. + * @stable ICU 2.6 + */ +typedef const void* URegistryKey; +#endif + +U_CDECL_END + +#endif + +// ulistformatter.h +/* +***************************************************************************************** +* Copyright (C) 2015-2016, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef ULISTFORMATTER_H +#define ULISTFORMATTER_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C API: Format a list in a locale-appropriate way. + * + * A UListFormatter is used to format a list of items in a locale-appropriate way, + * using data from CLDR. + * Example: Input data ["Alice", "Bob", "Charlie", "Delta"] will be formatted + * as "Alice, Bob, Charlie, and Delta" in English. + */ + +/** + * Opaque UListFormatter object for use in C + * @stable ICU 55 + */ +struct UListFormatter; +typedef struct UListFormatter UListFormatter; /**< C typedef for struct UListFormatter. @stable ICU 55 */ + +/** + * Open a new UListFormatter object using the rules for a given locale. + * @param locale + * The locale whose rules should be used; may be NULL for + * default locale. + * @param status + * A pointer to a standard ICU UErrorCode (input/output parameter). + * Its input value must pass the U_SUCCESS() test, or else the + * function returns immediately. The caller should check its output + * value with U_FAILURE(), or use with function chaining (see User + * Guide for details). + * @return + * A pointer to a UListFormatter object for the specified locale, + * or NULL if an error occurred. + * @stable ICU 55 + */ +U_STABLE UListFormatter* U_EXPORT2 +ulistfmt_open(const char* locale, + UErrorCode* status); + +/** + * Close a UListFormatter object. Once closed it may no longer be used. + * @param listfmt + * The UListFormatter object to close. + * @stable ICU 55 + */ +U_STABLE void U_EXPORT2 +ulistfmt_close(UListFormatter *listfmt); + + + +/** + * Formats a list of strings using the conventions established for the + * UListFormatter object. + * @param listfmt + * The UListFormatter object specifying the list conventions. + * @param strings + * An array of pointers to UChar strings; the array length is + * specified by stringCount. Must be non-NULL if stringCount > 0. + * @param stringLengths + * An array of string lengths corresponding to the strings[] + * parameter; any individual length value may be negative to indicate + * that the corresponding strings[] entry is 0-terminated, or + * stringLengths itself may be NULL if all of the strings are + * 0-terminated. If non-NULL, the stringLengths array must have + * stringCount entries. + * @param stringCount + * the number of entries in strings[], and the number of entries + * in the stringLengths array if it is not NULL. Must be >= 0. + * @param result + * A pointer to a buffer to receive the formatted list. + * @param resultCapacity + * The maximum size of result. + * @param status + * A pointer to a standard ICU UErrorCode (input/output parameter). + * Its input value must pass the U_SUCCESS() test, or else the + * function returns immediately. The caller should check its output + * value with U_FAILURE(), or use with function chaining (see User + * Guide for details). + * @return + * The total buffer size needed; if greater than resultLength, the + * output was truncated. May be <=0 if unable to determine the + * total buffer size needed (e.g. for illegal arguments). + * @stable ICU 55 + */ +U_DRAFT int32_t U_EXPORT2 +ulistfmt_format(const UListFormatter* listfmt, + const UChar* const strings[], + const int32_t * stringLengths, + int32_t stringCount, + UChar* result, + int32_t resultCapacity, + UErrorCode* status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// uiter.h +/* +******************************************************************************* +* +* Copyright (C) 2002-2011 International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: uiter.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2002jan18 +* created by: Markus W. Scherer +*/ + +#ifndef __UITER_H__ +#define __UITER_H__ + +/** + * \file + * \brief C API: Unicode Character Iteration + * + * @see UCharIterator + */ + + + +U_CDECL_BEGIN + +struct UCharIterator; +typedef struct UCharIterator UCharIterator; /**< C typedef for struct UCharIterator. @stable ICU 2.1 */ + +/** + * Origin constants for UCharIterator.getIndex() and UCharIterator.move(). + * @see UCharIteratorMove + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef enum UCharIteratorOrigin { + UITER_START, UITER_CURRENT, UITER_LIMIT, UITER_ZERO, UITER_LENGTH +} UCharIteratorOrigin; + +/** Constants for UCharIterator. @stable ICU 2.6 */ +enum { + /** + * Constant value that may be returned by UCharIteratorMove + * indicating that the final UTF-16 index is not known, but that the move succeeded. + * This can occur when moving relative to limit or length, or + * when moving relative to the current index after a setState() + * when the current UTF-16 index is not known. + * + * It would be very inefficient to have to count from the beginning of the text + * just to get the current/limit/length index after moving relative to it. + * The actual index can be determined with getIndex(UITER_CURRENT) + * which will count the UChars if necessary. + * + * @stable ICU 2.6 + */ + UITER_UNKNOWN_INDEX=-2 +}; + + +/** + * Constant for UCharIterator getState() indicating an error or + * an unknown state. + * Returned by uiter_getState()/UCharIteratorGetState + * when an error occurs. + * Also, some UCharIterator implementations may not be able to return + * a valid state for each position. This will be clearly documented + * for each such iterator (none of the public ones here). + * + * @stable ICU 2.6 + */ +#define UITER_NO_STATE ((uint32_t)0xffffffff) + +/** + * Function type declaration for UCharIterator.getIndex(). + * + * Gets the current position, or the start or limit of the + * iteration range. + * + * This function may perform slowly for UITER_CURRENT after setState() was called, + * or for UITER_LENGTH, because an iterator implementation may have to count + * UChars if the underlying storage is not UTF-16. + * + * @param iter the UCharIterator structure ("this pointer") + * @param origin get the 0, start, limit, length, or current index + * @return the requested index, or U_SENTINEL in an error condition + * + * @see UCharIteratorOrigin + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef int32_t U_CALLCONV +UCharIteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin); + +/** + * Function type declaration for UCharIterator.move(). + * + * Use iter->move(iter, index, UITER_ZERO) like CharacterIterator::setIndex(index). + * + * Moves the current position relative to the start or limit of the + * iteration range, or relative to the current position itself. + * The movement is expressed in numbers of code units forward + * or backward by specifying a positive or negative delta. + * Out of bounds movement will be pinned to the start or limit. + * + * This function may perform slowly for moving relative to UITER_LENGTH + * because an iterator implementation may have to count the rest of the + * UChars if the native storage is not UTF-16. + * + * When moving relative to the limit or length, or + * relative to the current position after setState() was called, + * move() may return UITER_UNKNOWN_INDEX (-2) to avoid an inefficient + * determination of the actual UTF-16 index. + * The actual index can be determined with getIndex(UITER_CURRENT) + * which will count the UChars if necessary. + * See UITER_UNKNOWN_INDEX for details. + * + * @param iter the UCharIterator structure ("this pointer") + * @param delta can be positive, zero, or negative + * @param origin move relative to the 0, start, limit, length, or current index + * @return the new index, or U_SENTINEL on an error condition, + * or UITER_UNKNOWN_INDEX when the index is not known. + * + * @see UCharIteratorOrigin + * @see UCharIterator + * @see UITER_UNKNOWN_INDEX + * @stable ICU 2.1 + */ +typedef int32_t U_CALLCONV +UCharIteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin); + +/** + * Function type declaration for UCharIterator.hasNext(). + * + * Check if current() and next() can still + * return another code unit. + * + * @param iter the UCharIterator structure ("this pointer") + * @return boolean value for whether current() and next() can still return another code unit + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef UBool U_CALLCONV +UCharIteratorHasNext(UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.hasPrevious(). + * + * Check if previous() can still return another code unit. + * + * @param iter the UCharIterator structure ("this pointer") + * @return boolean value for whether previous() can still return another code unit + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef UBool U_CALLCONV +UCharIteratorHasPrevious(UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.current(). + * + * Return the code unit at the current position, + * or U_SENTINEL if there is none (index is at the limit). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the current code unit + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef UChar32 U_CALLCONV +UCharIteratorCurrent(UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.next(). + * + * Return the code unit at the current index and increment + * the index (post-increment, like s[i++]), + * or return U_SENTINEL if there is none (index is at the limit). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the current code unit (and post-increment the current index) + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef UChar32 U_CALLCONV +UCharIteratorNext(UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.previous(). + * + * Decrement the index and return the code unit from there + * (pre-decrement, like s[--i]), + * or return U_SENTINEL if there is none (index is at the start). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the previous code unit (after pre-decrementing the current index) + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef UChar32 U_CALLCONV +UCharIteratorPrevious(UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.reservedFn(). + * Reserved for future use. + * + * @param iter the UCharIterator structure ("this pointer") + * @param something some integer argument + * @return some integer + * + * @see UCharIterator + * @stable ICU 2.1 + */ +typedef int32_t U_CALLCONV +UCharIteratorReserved(UCharIterator *iter, int32_t something); + +/** + * Function type declaration for UCharIterator.getState(). + * + * Get the "state" of the iterator in the form of a single 32-bit word. + * It is recommended that the state value be calculated to be as small as + * is feasible. For strings with limited lengths, fewer than 32 bits may + * be sufficient. + * + * This is used together with setState()/UCharIteratorSetState + * to save and restore the iterator position more efficiently than with + * getIndex()/move(). + * + * The iterator state is defined as a uint32_t value because it is designed + * for use in ucol_nextSortKeyPart() which provides 32 bits to store the state + * of the character iterator. + * + * With some UCharIterator implementations (e.g., UTF-8), + * getting and setting the UTF-16 index with existing functions + * (getIndex(UITER_CURRENT) followed by move(pos, UITER_ZERO)) is possible but + * relatively slow because the iterator has to "walk" from a known index + * to the requested one. + * This takes more time the farther it needs to go. + * + * An opaque state value allows an iterator implementation to provide + * an internal index (UTF-8: the source byte array index) for + * fast, constant-time restoration. + * + * After calling setState(), a getIndex(UITER_CURRENT) may be slow because + * the UTF-16 index may not be restored as well, but the iterator can deliver + * the correct text contents and move relative to the current position + * without performance degradation. + * + * Some UCharIterator implementations may not be able to return + * a valid state for each position, in which case they return UITER_NO_STATE instead. + * This will be clearly documented for each such iterator (none of the public ones here). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the state word + * + * @see UCharIterator + * @see UCharIteratorSetState + * @see UITER_NO_STATE + * @stable ICU 2.6 + */ +typedef uint32_t U_CALLCONV +UCharIteratorGetState(const UCharIterator *iter); + +/** + * Function type declaration for UCharIterator.setState(). + * + * Restore the "state" of the iterator using a state word from a getState() call. + * The iterator object need not be the same one as for which getState() was called, + * but it must be of the same type (set up using the same uiter_setXYZ function) + * and it must iterate over the same string + * (binary identical regardless of memory address). + * For more about the state word see UCharIteratorGetState. + * + * After calling setState(), a getIndex(UITER_CURRENT) may be slow because + * the UTF-16 index may not be restored as well, but the iterator can deliver + * the correct text contents and move relative to the current position + * without performance degradation. + * + * @param iter the UCharIterator structure ("this pointer") + * @param state the state word from a getState() call + * on a same-type, same-string iterator + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @see UCharIterator + * @see UCharIteratorGetState + * @stable ICU 2.6 + */ +typedef void U_CALLCONV +UCharIteratorSetState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode); + + +/** + * C API for code unit iteration. + * This can be used as a C wrapper around + * CharacterIterator, Replaceable, or implemented using simple strings, etc. + * + * There are two roles for using UCharIterator: + * + * A "provider" sets the necessary function pointers and controls the "protected" + * fields of the UCharIterator structure. A "provider" passes a UCharIterator + * into C APIs that need a UCharIterator as an abstract, flexible string interface. + * + * Implementations of such C APIs are "callers" of UCharIterator functions; + * they only use the "public" function pointers and never access the "protected" + * fields directly. + * + * The current() and next() functions only check the current index against the + * limit, and previous() only checks the current index against the start, + * to see if the iterator already reached the end of the iteration range. + * + * The assumption - in all iterators - is that the index is moved via the API, + * which means it won't go out of bounds, or the index is modified by + * user code that knows enough about the iterator implementation to set valid + * index values. + * + * UCharIterator functions return code unit values 0..0xffff, + * or U_SENTINEL if the iteration bounds are reached. + * + * @stable ICU 2.1 + */ +struct UCharIterator { + /** + * (protected) Pointer to string or wrapped object or similar. + * Not used by caller. + * @stable ICU 2.1 + */ + const void *context; + + /** + * (protected) Length of string or similar. + * Not used by caller. + * @stable ICU 2.1 + */ + int32_t length; + + /** + * (protected) Start index or similar. + * Not used by caller. + * @stable ICU 2.1 + */ + int32_t start; + + /** + * (protected) Current index or similar. + * Not used by caller. + * @stable ICU 2.1 + */ + int32_t index; + + /** + * (protected) Limit index or similar. + * Not used by caller. + * @stable ICU 2.1 + */ + int32_t limit; + + /** + * (protected) Used by UTF-8 iterators and possibly others. + * @stable ICU 2.1 + */ + int32_t reservedField; + + /** + * (public) Returns the current position or the + * start or limit index of the iteration range. + * + * @see UCharIteratorGetIndex + * @stable ICU 2.1 + */ + UCharIteratorGetIndex *getIndex; + + /** + * (public) Moves the current position relative to the start or limit of the + * iteration range, or relative to the current position itself. + * The movement is expressed in numbers of code units forward + * or backward by specifying a positive or negative delta. + * + * @see UCharIteratorMove + * @stable ICU 2.1 + */ + UCharIteratorMove *move; + + /** + * (public) Check if current() and next() can still + * return another code unit. + * + * @see UCharIteratorHasNext + * @stable ICU 2.1 + */ + UCharIteratorHasNext *hasNext; + + /** + * (public) Check if previous() can still return another code unit. + * + * @see UCharIteratorHasPrevious + * @stable ICU 2.1 + */ + UCharIteratorHasPrevious *hasPrevious; + + /** + * (public) Return the code unit at the current position, + * or U_SENTINEL if there is none (index is at the limit). + * + * @see UCharIteratorCurrent + * @stable ICU 2.1 + */ + UCharIteratorCurrent *current; + + /** + * (public) Return the code unit at the current index and increment + * the index (post-increment, like s[i++]), + * or return U_SENTINEL if there is none (index is at the limit). + * + * @see UCharIteratorNext + * @stable ICU 2.1 + */ + UCharIteratorNext *next; + + /** + * (public) Decrement the index and return the code unit from there + * (pre-decrement, like s[--i]), + * or return U_SENTINEL if there is none (index is at the start). + * + * @see UCharIteratorPrevious + * @stable ICU 2.1 + */ + UCharIteratorPrevious *previous; + + /** + * (public) Reserved for future use. Currently NULL. + * + * @see UCharIteratorReserved + * @stable ICU 2.1 + */ + UCharIteratorReserved *reservedFn; + + /** + * (public) Return the state of the iterator, to be restored later with setState(). + * This function pointer is NULL if the iterator does not implement it. + * + * @see UCharIteratorGet + * @stable ICU 2.6 + */ + UCharIteratorGetState *getState; + + /** + * (public) Restore the iterator state from the state word from a call + * to getState(). + * This function pointer is NULL if the iterator does not implement it. + * + * @see UCharIteratorSet + * @stable ICU 2.6 + */ + UCharIteratorSetState *setState; +}; + +/** + * Helper function for UCharIterator to get the code point + * at the current index. + * + * Return the code point that includes the code unit at the current position, + * or U_SENTINEL if there is none (index is at the limit). + * If the current code unit is a lead or trail surrogate, + * then the following or preceding surrogate is used to form + * the code point value. + * + * @param iter the UCharIterator structure ("this pointer") + * @return the current code point + * + * @see UCharIterator + * @see U16_GET + * @see UnicodeString::char32At() + * @stable ICU 2.1 + */ +U_STABLE UChar32 U_EXPORT2 +uiter_current32(UCharIterator *iter); + +/** + * Helper function for UCharIterator to get the next code point. + * + * Return the code point at the current index and increment + * the index (post-increment, like s[i++]), + * or return U_SENTINEL if there is none (index is at the limit). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the current code point (and post-increment the current index) + * + * @see UCharIterator + * @see U16_NEXT + * @stable ICU 2.1 + */ +U_STABLE UChar32 U_EXPORT2 +uiter_next32(UCharIterator *iter); + +/** + * Helper function for UCharIterator to get the previous code point. + * + * Decrement the index and return the code point from there + * (pre-decrement, like s[--i]), + * or return U_SENTINEL if there is none (index is at the start). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the previous code point (after pre-decrementing the current index) + * + * @see UCharIterator + * @see U16_PREV + * @stable ICU 2.1 + */ +U_STABLE UChar32 U_EXPORT2 +uiter_previous32(UCharIterator *iter); + +/** + * Get the "state" of the iterator in the form of a single 32-bit word. + * This is a convenience function that calls iter->getState(iter) + * if iter->getState is not NULL; + * if it is NULL or any other error occurs, then UITER_NO_STATE is returned. + * + * Some UCharIterator implementations may not be able to return + * a valid state for each position, in which case they return UITER_NO_STATE instead. + * This will be clearly documented for each such iterator (none of the public ones here). + * + * @param iter the UCharIterator structure ("this pointer") + * @return the state word + * + * @see UCharIterator + * @see UCharIteratorGetState + * @see UITER_NO_STATE + * @stable ICU 2.6 + */ +U_STABLE uint32_t U_EXPORT2 +uiter_getState(const UCharIterator *iter); + +/** + * Restore the "state" of the iterator using a state word from a getState() call. + * This is a convenience function that calls iter->setState(iter, state, pErrorCode) + * if iter->setState is not NULL; if it is NULL, then U_UNSUPPORTED_ERROR is set. + * + * @param iter the UCharIterator structure ("this pointer") + * @param state the state word from a getState() call + * on a same-type, same-string iterator + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @see UCharIterator + * @see UCharIteratorSetState + * @stable ICU 2.6 + */ +U_STABLE void U_EXPORT2 +uiter_setState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode); + +/** + * Set up a UCharIterator to iterate over a string. + * + * Sets the UCharIterator function pointers for iteration over the string s + * with iteration boundaries start=index=0 and length=limit=string length. + * The "provider" may set the start, index, and limit values at any time + * within the range 0..length. + * The length field will be ignored. + * + * The string pointer s is set into UCharIterator.context without copying + * or reallocating the string contents. + * + * getState() simply returns the current index. + * move() will always return the final index. + * + * @param iter UCharIterator structure to be set for iteration + * @param s String to iterate over + * @param length Length of s, or -1 if NUL-terminated + * + * @see UCharIterator + * @stable ICU 2.1 + */ +U_STABLE void U_EXPORT2 +uiter_setString(UCharIterator *iter, const UChar *s, int32_t length); + +/** + * Set up a UCharIterator to iterate over a UTF-16BE string + * (byte vector with a big-endian pair of bytes per UChar). + * + * Everything works just like with a normal UChar iterator (uiter_setString), + * except that UChars are assembled from byte pairs, + * and that the length argument here indicates an even number of bytes. + * + * getState() simply returns the current index. + * move() will always return the final index. + * + * @param iter UCharIterator structure to be set for iteration + * @param s UTF-16BE string to iterate over + * @param length Length of s as an even number of bytes, or -1 if NUL-terminated + * (NUL means pair of 0 bytes at even index from s) + * + * @see UCharIterator + * @see uiter_setString + * @stable ICU 2.6 + */ +U_STABLE void U_EXPORT2 +uiter_setUTF16BE(UCharIterator *iter, const char *s, int32_t length); + +/** + * Set up a UCharIterator to iterate over a UTF-8 string. + * + * Sets the UCharIterator function pointers for iteration over the UTF-8 string s + * with UTF-8 iteration boundaries 0 and length. + * The implementation counts the UTF-16 index on the fly and + * lazily evaluates the UTF-16 length of the text. + * + * The start field is used as the UTF-8 offset, the limit field as the UTF-8 length. + * When the reservedField is not 0, then it contains a supplementary code point + * and the UTF-16 index is between the two corresponding surrogates. + * At that point, the UTF-8 index is behind that code point. + * + * The UTF-8 string pointer s is set into UCharIterator.context without copying + * or reallocating the string contents. + * + * getState() returns a state value consisting of + * - the current UTF-8 source byte index (bits 31..1) + * - a flag (bit 0) that indicates whether the UChar position is in the middle + * of a surrogate pair + * (from a 4-byte UTF-8 sequence for the corresponding supplementary code point) + * + * getState() cannot also encode the UTF-16 index in the state value. + * move(relative to limit or length), or + * move(relative to current) after setState(), may return UITER_UNKNOWN_INDEX. + * + * @param iter UCharIterator structure to be set for iteration + * @param s UTF-8 string to iterate over + * @param length Length of s in bytes, or -1 if NUL-terminated + * + * @see UCharIterator + * @stable ICU 2.6 + */ +U_STABLE void U_EXPORT2 +uiter_setUTF8(UCharIterator *iter, const char *s, int32_t length); + + +U_CDECL_END + +#endif + +// uenum.h +/* +******************************************************************************* +* +* Copyright (C) 2002-2013, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: uenum.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:2 +* +* created on: 2002jul08 +* created by: Vladimir Weinstein +*/ + +#ifndef __UENUM_H +#define __UENUM_H + + + +/** + * \file + * \brief C API: String Enumeration + */ + +/** + * An enumeration object. + * For usage in C programs. + * @stable ICU 2.2 + */ +struct UEnumeration; +/** structure representing an enumeration object instance @stable ICU 2.2 */ +typedef struct UEnumeration UEnumeration; + +/** + * Disposes of resources in use by the iterator. If en is NULL, + * does nothing. After this call, any char* or UChar* pointer + * returned by uenum_unext() or uenum_next() is invalid. + * @param en UEnumeration structure pointer + * @stable ICU 2.2 + */ +U_STABLE void U_EXPORT2 +uenum_close(UEnumeration* en); + + +/** + * Returns the number of elements that the iterator traverses. If + * the iterator is out-of-sync with its service, status is set to + * U_ENUM_OUT_OF_SYNC_ERROR. + * This is a convenience function. It can end up being very + * expensive as all the items might have to be pre-fetched (depending + * on the type of data being traversed). Use with caution and only + * when necessary. + * @param en UEnumeration structure pointer + * @param status error code, can be U_ENUM_OUT_OF_SYNC_ERROR if the + * iterator is out of sync. + * @return number of elements in the iterator + * @stable ICU 2.2 + */ +U_STABLE int32_t U_EXPORT2 +uenum_count(UEnumeration* en, UErrorCode* status); + +/** + * Returns the next element in the iterator's list. If there are + * no more elements, returns NULL. If the iterator is out-of-sync + * with its service, status is set to U_ENUM_OUT_OF_SYNC_ERROR and + * NULL is returned. If the native service string is a char* string, + * it is converted to UChar* with the invariant converter. + * The result is terminated by (UChar)0. + * @param en the iterator object + * @param resultLength pointer to receive the length of the result + * (not including the terminating \\0). + * If the pointer is NULL it is ignored. + * @param status the error code, set to U_ENUM_OUT_OF_SYNC_ERROR if + * the iterator is out of sync with its service. + * @return a pointer to the string. The string will be + * zero-terminated. The return pointer is owned by this iterator + * and must not be deleted by the caller. The pointer is valid + * until the next call to any uenum_... method, including + * uenum_next() or uenum_unext(). When all strings have been + * traversed, returns NULL. + * @stable ICU 2.2 + */ +U_STABLE const UChar* U_EXPORT2 +uenum_unext(UEnumeration* en, + int32_t* resultLength, + UErrorCode* status); + +/** + * Returns the next element in the iterator's list. If there are + * no more elements, returns NULL. If the iterator is out-of-sync + * with its service, status is set to U_ENUM_OUT_OF_SYNC_ERROR and + * NULL is returned. If the native service string is a UChar* + * string, it is converted to char* with the invariant converter. + * The result is terminated by (char)0. If the conversion fails + * (because a character cannot be converted) then status is set to + * U_INVARIANT_CONVERSION_ERROR and the return value is undefined + * (but non-NULL). + * @param en the iterator object + * @param resultLength pointer to receive the length of the result + * (not including the terminating \\0). + * If the pointer is NULL it is ignored. + * @param status the error code, set to U_ENUM_OUT_OF_SYNC_ERROR if + * the iterator is out of sync with its service. Set to + * U_INVARIANT_CONVERSION_ERROR if the underlying native string is + * UChar* and conversion to char* with the invariant converter + * fails. This error pertains only to current string, so iteration + * might be able to continue successfully. + * @return a pointer to the string. The string will be + * zero-terminated. The return pointer is owned by this iterator + * and must not be deleted by the caller. The pointer is valid + * until the next call to any uenum_... method, including + * uenum_next() or uenum_unext(). When all strings have been + * traversed, returns NULL. + * @stable ICU 2.2 + */ +U_STABLE const char* U_EXPORT2 +uenum_next(UEnumeration* en, + int32_t* resultLength, + UErrorCode* status); + +/** + * Resets the iterator to the current list of service IDs. This + * re-establishes sync with the service and rewinds the iterator + * to start at the first element. + * @param en the iterator object + * @param status the error code, set to U_ENUM_OUT_OF_SYNC_ERROR if + * the iterator is out of sync with its service. + * @stable ICU 2.2 + */ +U_STABLE void U_EXPORT2 +uenum_reset(UEnumeration* en, UErrorCode* status); + + +/** + * Given an array of const UChar* strings, return a UEnumeration. String pointers from 0..count-1 must not be null. + * Do not free or modify either the string array or the characters it points to until this object has been destroyed with uenum_close. + * \snippet test/cintltst/uenumtst.c uenum_openUCharStringsEnumeration + * @param strings array of const UChar* strings (each null terminated). All storage is owned by the caller. + * @param count length of the array + * @param ec error code + * @return the new UEnumeration object. Caller is responsible for calling uenum_close to free memory. + * @see uenum_close + * @stable ICU 50 + */ +U_STABLE UEnumeration* U_EXPORT2 +uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count, + UErrorCode* ec); + +/* Note: next function is not hidden as draft, as it is used internally (it was formerly an internal function). */ + +/** + * Given an array of const char* strings (invariant chars only), return a UEnumeration. String pointers from 0..count-1 must not be null. + * Do not free or modify either the string array or the characters it points to until this object has been destroyed with uenum_close. + * \snippet test/cintltst/uenumtst.c uenum_openCharStringsEnumeration + * @param strings array of char* strings (each null terminated). All storage is owned by the caller. + * @param count length of the array + * @param ec error code + * @return the new UEnumeration object. Caller is responsible for calling uenum_close to free memory + * @see uenum_close + * @stable ICU 50 + */ +U_STABLE UEnumeration* U_EXPORT2 +uenum_openCharStringsEnumeration(const char* const strings[], int32_t count, + UErrorCode* ec); + +#endif + +// uloc.h +/* +********************************************************************** +* Copyright (C) 1997-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* +* File ULOC.H +* +* Modification History: +* +* Date Name Description +* 04/01/97 aliu Creation. +* 08/22/98 stephen JDK 1.2 sync. +* 12/08/98 rtg New C API for Locale +* 03/30/99 damiba overhaul +* 03/31/99 helena Javadoc for uloc functions. +* 04/15/99 Madhu Updated Javadoc +******************************************************************************** +*/ + +#ifndef ULOC_H +#define ULOC_H + + +/** + * \file + * \brief C API: Locale + * + *

ULoc C API for Locale

+ * A Locale represents a specific geographical, political, + * or cultural region. An operation that requires a Locale to perform + * its task is called locale-sensitive and uses the Locale + * to tailor information for the user. For example, displaying a number + * is a locale-sensitive operation--the number should be formatted + * according to the customs/conventions of the user's native country, + * region, or culture. In the C APIs, a locales is simply a const char string. + * + *

+ * You create a Locale with one of the three options listed below. + * Each of the component is separated by '_' in the locale string. + * \htmlonly

\endhtmlonly + *
+ * \code
+ *       newLanguage
+ * 
+ *       newLanguage + newCountry
+ * 
+ *       newLanguage + newCountry + newVariant
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * The first option is a valid ISO + * Language Code. These codes are the lower-case two-letter + * codes as defined by ISO-639. + * You can find a full list of these codes at a number of sites, such as: + *
+ * http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt + * + *

+ * The second option includes an additonal ISO Country + * Code. These codes are the upper-case two-letter codes + * as defined by ISO-3166. + * You can find a full list of these codes at a number of sites, such as: + *
+ * http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + * + *

+ * The third option requires another additonal information--the + * Variant. + * The Variant codes are vendor and browser-specific. + * For example, use WIN for Windows, MAC for Macintosh, and POSIX for POSIX. + * Where there are two variants, separate them with an underscore, and + * put the most important one first. For + * example, a Traditional Spanish collation might be referenced, with + * "ES", "ES", "Traditional_WIN". + * + *

+ * Because a Locale is just an identifier for a region, + * no validity check is performed when you specify a Locale. + * If you want to see whether particular resources are available for the + * Locale you asked for, you must query those resources. For + * example, ask the UNumberFormat for the locales it supports + * using its getAvailable method. + *
Note: When you ask for a resource for a particular + * locale, you get back the best available match, not necessarily + * precisely what you asked for. For more information, look at + * UResourceBundle. + * + *

+ * The Locale provides a number of convenient constants + * that you can use to specify the commonly used + * locales. For example, the following refers to a locale + * for the United States: + * \htmlonly

\endhtmlonly + *
+ * \code
+ *       ULOC_US
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * + *

+ * Once you've specified a locale you can query it for information about + * itself. Use uloc_getCountry to get the ISO Country Code and + * uloc_getLanguage to get the ISO Language Code. You can + * use uloc_getDisplayCountry to get the + * name of the country suitable for displaying to the user. Similarly, + * you can use uloc_getDisplayLanguage to get the name of + * the language suitable for displaying to the user. Interestingly, + * the uloc_getDisplayXXX methods are themselves locale-sensitive + * and have two versions: one that uses the default locale and one + * that takes a locale as an argument and displays the name or country in + * a language appropriate to that locale. + * + *

+ * The ICU provides a number of services that perform locale-sensitive + * operations. For example, the unum_xxx functions format + * numbers, currency, or percentages in a locale-sensitive manner. + *

+ * \htmlonly
\endhtmlonly + *
+ * \code
+ *     UErrorCode success = U_ZERO_ERROR;
+ *     UNumberFormat *nf;
+ *     const char* myLocale = "fr_FR";
+ * 
+ *     nf = unum_open( UNUM_DEFAULT, NULL, success );          
+ *     unum_close(nf);
+ *     nf = unum_open( UNUM_CURRENCY, NULL, success );
+ *     unum_close(nf);
+ *     nf = unum_open( UNUM_PERCENT, NULL, success );   
+ *     unum_close(nf);
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * Each of these methods has two variants; one with an explicit locale + * and one without; the latter using the default locale. + * \htmlonly
\endhtmlonly + *
+ * \code 
+ * 
+ *     nf = unum_open( UNUM_DEFAULT, myLocale, success );          
+ *     unum_close(nf);
+ *     nf = unum_open( UNUM_CURRENCY, myLocale, success );
+ *     unum_close(nf);
+ *     nf = unum_open( UNUM_PERCENT, myLocale, success );   
+ *     unum_close(nf);
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * A Locale is the mechanism for identifying the kind of services + * (UNumberFormat) that you would like to get. The locale is + * just a mechanism for identifying these services. + * + *

+ * Each international serivce that performs locale-sensitive operations + * allows you + * to get all the available objects of that type. You can sift + * through these objects by language, country, or variant, + * and use the display names to present a menu to the user. + * For example, you can create a menu of all the collation objects + * suitable for a given language. Such classes implement these + * three class methods: + * \htmlonly

\endhtmlonly + *
+ * \code
+ *       const char* uloc_getAvailable(int32_t index);
+ *       int32_t uloc_countAvailable();
+ *       int32_t
+ *       uloc_getDisplayName(const char* localeID,
+ *                 const char* inLocaleID, 
+ *                 UChar* result,
+ *                 int32_t maxResultSize,
+ *                  UErrorCode* err);
+ * 
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + *

+ * Concerning POSIX/RFC1766 Locale IDs, + * the getLanguage/getCountry/getVariant/getName functions do understand + * the POSIX type form of language_COUNTRY.ENCODING\@VARIANT + * and if there is not an ICU-stype variant, uloc_getVariant() for example + * will return the one listed after the \@at sign. As well, the hyphen + * "-" is recognized as a country/variant separator similarly to RFC1766. + * So for example, "en-us" will be interpreted as en_US. + * As a result, uloc_getName() is far from a no-op, and will have the + * effect of converting POSIX/RFC1766 IDs into ICU form, although it does + * NOT map any of the actual codes (i.e. russian->ru) in any way. + * Applications should call uloc_getName() at the point where a locale ID + * is coming from an external source (user entry, OS, web browser) + * and pass the resulting string to other ICU functions. For example, + * don't use de-de\@EURO as an argument to resourcebundle. + * + * @see UResourceBundle + */ + +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_CHINESE "zh" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_ENGLISH "en" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_FRENCH "fr" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_GERMAN "de" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_ITALIAN "it" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_JAPANESE "ja" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_KOREAN "ko" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_SIMPLIFIED_CHINESE "zh_CN" +/** Useful constant for this language. @stable ICU 2.0 */ +#define ULOC_TRADITIONAL_CHINESE "zh_TW" + +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_CANADA "en_CA" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_CANADA_FRENCH "fr_CA" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_CHINA "zh_CN" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_PRC "zh_CN" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_FRANCE "fr_FR" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_GERMANY "de_DE" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_ITALY "it_IT" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_JAPAN "ja_JP" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_KOREA "ko_KR" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_TAIWAN "zh_TW" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_UK "en_GB" +/** Useful constant for this country/region. @stable ICU 2.0 */ +#define ULOC_US "en_US" + +/** + * Useful constant for the maximum size of the language part of a locale ID. + * (including the terminating NULL). + * @stable ICU 2.0 + */ +#define ULOC_LANG_CAPACITY 12 + +/** + * Useful constant for the maximum size of the country part of a locale ID + * (including the terminating NULL). + * @stable ICU 2.0 + */ +#define ULOC_COUNTRY_CAPACITY 4 +/** + * Useful constant for the maximum size of the whole locale ID + * (including the terminating NULL and all keywords). + * @stable ICU 2.0 + */ +#define ULOC_FULLNAME_CAPACITY 157 + +/** + * Useful constant for the maximum size of the script part of a locale ID + * (including the terminating NULL). + * @stable ICU 2.8 + */ +#define ULOC_SCRIPT_CAPACITY 6 + +/** + * Useful constant for the maximum size of keywords in a locale + * @stable ICU 2.8 + */ +#define ULOC_KEYWORDS_CAPACITY 96 + +/** + * Useful constant for the maximum total size of keywords and their values in a locale + * @stable ICU 2.8 + */ +#define ULOC_KEYWORD_AND_VALUES_CAPACITY 100 + +/** + * Invariant character separating keywords from the locale string + * @stable ICU 2.8 + */ +#define ULOC_KEYWORD_SEPARATOR '@' + +/** + * Unicode code point for '@' separating keywords from the locale string. + * @see ULOC_KEYWORD_SEPARATOR + * @stable ICU 4.6 + */ +#define ULOC_KEYWORD_SEPARATOR_UNICODE 0x40 + +/** + * Invariant character for assigning value to a keyword + * @stable ICU 2.8 + */ +#define ULOC_KEYWORD_ASSIGN '=' + +/** + * Unicode code point for '=' for assigning value to a keyword. + * @see ULOC_KEYWORD_ASSIGN + * @stable ICU 4.6 + */ +#define ULOC_KEYWORD_ASSIGN_UNICODE 0x3D + +/** + * Invariant character separating keywords + * @stable ICU 2.8 + */ +#define ULOC_KEYWORD_ITEM_SEPARATOR ';' + +/** + * Unicode code point for ';' separating keywords + * @see ULOC_KEYWORD_ITEM_SEPARATOR + * @stable ICU 4.6 + */ +#define ULOC_KEYWORD_ITEM_SEPARATOR_UNICODE 0x3B + +/** + * Constants for *_getLocale() + * Allow user to select whether she wants information on + * requested, valid or actual locale. + * For example, a collator for "en_US_CALIFORNIA" was + * requested. In the current state of ICU (2.0), + * the requested locale is "en_US_CALIFORNIA", + * the valid locale is "en_US" (most specific locale supported by ICU) + * and the actual locale is "root" (the collation data comes unmodified + * from the UCA) + * The locale is considered supported by ICU if there is a core ICU bundle + * for that locale (although it may be empty). + * @stable ICU 2.1 + */ +typedef enum { + /** This is locale the data actually comes from + * @stable ICU 2.1 + */ + ULOC_ACTUAL_LOCALE = 0, + /** This is the most specific locale supported by ICU + * @stable ICU 2.1 + */ + ULOC_VALID_LOCALE = 1, + + + ULOC_DATA_LOCALE_TYPE_LIMIT = 3 +} ULocDataLocaleType ; + +#ifndef U_HIDE_SYSTEM_API +/** + * Gets ICU's default locale. + * The returned string is a snapshot in time, and will remain valid + * and unchanged even when uloc_setDefault() is called. + * The returned storage is owned by ICU, and must not be altered or deleted + * by the caller. + * + * @return the ICU default locale + * @system + * @stable ICU 2.0 + */ +U_STABLE const char* U_EXPORT2 +uloc_getDefault(void); + +/** + * Sets ICU's default locale. + * By default (without calling this function), ICU's default locale will be based + * on information obtained from the underlying system environment. + *

+ * Changes to ICU's default locale do not propagate back to the + * system environment. + *

+ * Changes to ICU's default locale to not affect any ICU services that + * may already be open based on the previous default locale value. + * + * @param localeID the new ICU default locale. A value of NULL will try to get + * the system's default locale. + * @param status the error information if the setting of default locale fails + * @system + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +uloc_setDefault(const char* localeID, + UErrorCode* status); +#endif /* U_HIDE_SYSTEM_API */ + +/** + * Gets the language code for the specified locale. + * + * @param localeID the locale to get the ISO language code with + * @param language the language code for localeID + * @param languageCapacity the size of the language buffer to store the + * language code with + * @param err error information if retrieving the language code failed + * @return the actual buffer size needed for the language code. If it's greater + * than languageCapacity, the returned language code will be truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getLanguage(const char* localeID, + char* language, + int32_t languageCapacity, + UErrorCode* err); + +/** + * Gets the script code for the specified locale. + * + * @param localeID the locale to get the ISO language code with + * @param script the language code for localeID + * @param scriptCapacity the size of the language buffer to store the + * language code with + * @param err error information if retrieving the language code failed + * @return the actual buffer size needed for the language code. If it's greater + * than scriptCapacity, the returned language code will be truncated. + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getScript(const char* localeID, + char* script, + int32_t scriptCapacity, + UErrorCode* err); + +/** + * Gets the country code for the specified locale. + * + * @param localeID the locale to get the country code with + * @param country the country code for localeID + * @param countryCapacity the size of the country buffer to store the + * country code with + * @param err error information if retrieving the country code failed + * @return the actual buffer size needed for the country code. If it's greater + * than countryCapacity, the returned country code will be truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getCountry(const char* localeID, + char* country, + int32_t countryCapacity, + UErrorCode* err); + +/** + * Gets the variant code for the specified locale. + * + * @param localeID the locale to get the variant code with + * @param variant the variant code for localeID + * @param variantCapacity the size of the variant buffer to store the + * variant code with + * @param err error information if retrieving the variant code failed + * @return the actual buffer size needed for the variant code. If it's greater + * than variantCapacity, the returned variant code will be truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getVariant(const char* localeID, + char* variant, + int32_t variantCapacity, + UErrorCode* err); + + +/** + * Gets the full name for the specified locale. + * Note: This has the effect of 'canonicalizing' the ICU locale ID to + * a certain extent. Upper and lower case are set as needed. + * It does NOT map aliased names in any way. + * See the top of this header file. + * This API supports preflighting. + * + * @param localeID the locale to get the full name with + * @param name fill in buffer for the name without keywords. + * @param nameCapacity capacity of the fill in buffer. + * @param err error information if retrieving the full name failed + * @return the actual buffer size needed for the full name. If it's greater + * than nameCapacity, the returned full name will be truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getName(const char* localeID, + char* name, + int32_t nameCapacity, + UErrorCode* err); + +/** + * Gets the full name for the specified locale. + * Note: This has the effect of 'canonicalizing' the string to + * a certain extent. Upper and lower case are set as needed, + * and if the components were in 'POSIX' format they are changed to + * ICU format. It does NOT map aliased names in any way. + * See the top of this header file. + * + * @param localeID the locale to get the full name with + * @param name the full name for localeID + * @param nameCapacity the size of the name buffer to store the + * full name with + * @param err error information if retrieving the full name failed + * @return the actual buffer size needed for the full name. If it's greater + * than nameCapacity, the returned full name will be truncated. + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +uloc_canonicalize(const char* localeID, + char* name, + int32_t nameCapacity, + UErrorCode* err); + +/** + * Gets the ISO language code for the specified locale. + * + * @param localeID the locale to get the ISO language code with + * @return language the ISO language code for localeID + * @stable ICU 2.0 + */ +U_STABLE const char* U_EXPORT2 +uloc_getISO3Language(const char* localeID); + + +/** + * Gets the ISO country code for the specified locale. + * + * @param localeID the locale to get the ISO country code with + * @return country the ISO country code for localeID + * @stable ICU 2.0 + */ +U_STABLE const char* U_EXPORT2 +uloc_getISO3Country(const char* localeID); + +/** + * Gets the Win32 LCID value for the specified locale. + * If the ICU locale is not recognized by Windows, 0 will be returned. + * + * LCIDs were deprecated with Windows Vista and Microsoft recommends + * developers to use BCP47 style tags instead (uloc_toLanguageTag.) + * + * @param localeID the locale to get the Win32 LCID value with + * @return country the Win32 LCID for localeID + * @stable ICU 2.0 + */ +U_STABLE uint32_t U_EXPORT2 +uloc_getLCID(const char* localeID); + +/** + * Gets the language name suitable for display for the specified locale. + * + * @param locale the locale to get the ISO language code with + * @param displayLocale Specifies the locale to be used to display the name. In other words, + * if the locale's language code is "en", passing Locale::getFrench() for + * inLocale would result in "Anglais", while passing Locale::getGerman() + * for inLocale would result in "Englisch". + * @param language the displayable language code for localeID + * @param languageCapacity the size of the language buffer to store the + * displayable language code with + * @param status error information if retrieving the displayable language code failed + * @return the actual buffer size needed for the displayable language code. If it's greater + * than languageCapacity, the returned language code will be truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getDisplayLanguage(const char* locale, + const char* displayLocale, + UChar* language, + int32_t languageCapacity, + UErrorCode* status); + +/** + * Gets the script name suitable for display for the specified locale. + * + * @param locale the locale to get the displayable script code with. NULL may be used to specify the default. + * @param displayLocale Specifies the locale to be used to display the name. In other words, + * if the locale's language code is "en", passing Locale::getFrench() for + * inLocale would result in "", while passing Locale::getGerman() + * for inLocale would result in "". NULL may be used to specify the default. + * @param script the displayable country code for localeID + * @param scriptCapacity the size of the script buffer to store the + * displayable script code with + * @param status error information if retrieving the displayable script code failed + * @return the actual buffer size needed for the displayable script code. If it's greater + * than scriptCapacity, the returned displayable script code will be truncated. + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getDisplayScript(const char* locale, + const char* displayLocale, + UChar* script, + int32_t scriptCapacity, + UErrorCode* status); + +/** + * Gets the country name suitable for display for the specified locale. + * Warning: this is for the region part of a valid locale ID; it cannot just be the region code (like "FR"). + * To get the display name for a region alone, or for other options, use ULocaleDisplayNames instead. + * + * @param locale the locale to get the displayable country code with. NULL may be used to specify the default. + * @param displayLocale Specifies the locale to be used to display the name. In other words, + * if the locale's language code is "en", passing Locale::getFrench() for + * inLocale would result in "Anglais", while passing Locale::getGerman() + * for inLocale would result in "Englisch". NULL may be used to specify the default. + * @param country the displayable country code for localeID + * @param countryCapacity the size of the country buffer to store the + * displayable country code with + * @param status error information if retrieving the displayable country code failed + * @return the actual buffer size needed for the displayable country code. If it's greater + * than countryCapacity, the returned displayable country code will be truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getDisplayCountry(const char* locale, + const char* displayLocale, + UChar* country, + int32_t countryCapacity, + UErrorCode* status); + + +/** + * Gets the variant name suitable for display for the specified locale. + * + * @param locale the locale to get the displayable variant code with. NULL may be used to specify the default. + * @param displayLocale Specifies the locale to be used to display the name. In other words, + * if the locale's language code is "en", passing Locale::getFrench() for + * inLocale would result in "Anglais", while passing Locale::getGerman() + * for inLocale would result in "Englisch". NULL may be used to specify the default. + * @param variant the displayable variant code for localeID + * @param variantCapacity the size of the variant buffer to store the + * displayable variant code with + * @param status error information if retrieving the displayable variant code failed + * @return the actual buffer size needed for the displayable variant code. If it's greater + * than variantCapacity, the returned displayable variant code will be truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getDisplayVariant(const char* locale, + const char* displayLocale, + UChar* variant, + int32_t variantCapacity, + UErrorCode* status); + +/** + * Gets the keyword name suitable for display for the specified locale. + * E.g: for the locale string de_DE\@collation=PHONEBOOK, this API gets the display + * string for the keyword collation. + * Usage: + * + * UErrorCode status = U_ZERO_ERROR; + * const char* keyword =NULL; + * int32_t keywordLen = 0; + * int32_t keywordCount = 0; + * UChar displayKeyword[256]; + * int32_t displayKeywordLen = 0; + * UEnumeration* keywordEnum = uloc_openKeywords("de_DE@collation=PHONEBOOK;calendar=TRADITIONAL", &status); + * for(keywordCount = uenum_count(keywordEnum, &status); keywordCount > 0 ; keywordCount--){ + * if(U_FAILURE(status)){ + * ...something went wrong so handle the error... + * break; + * } + * // the uenum_next returns NUL terminated string + * keyword = uenum_next(keywordEnum, &keywordLen, &status); + * displayKeywordLen = uloc_getDisplayKeyword(keyword, "en_US", displayKeyword, 256); + * ... do something interesting ..... + * } + * uenum_close(keywordEnum); + * + * @param keyword The keyword whose display string needs to be returned. + * @param displayLocale Specifies the locale to be used to display the name. In other words, + * if the locale's language code is "en", passing Locale::getFrench() for + * inLocale would result in "Anglais", while passing Locale::getGerman() + * for inLocale would result in "Englisch". NULL may be used to specify the default. + * @param dest the buffer to which the displayable keyword should be written. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param status error information if retrieving the displayable string failed. + * Should not be NULL and should not indicate failure on entry. + * @return the actual buffer size needed for the displayable variant code. + * @see #uloc_openKeywords + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getDisplayKeyword(const char* keyword, + const char* displayLocale, + UChar* dest, + int32_t destCapacity, + UErrorCode* status); +/** + * Gets the value of the keyword suitable for display for the specified locale. + * E.g: for the locale string de_DE\@collation=PHONEBOOK, this API gets the display + * string for PHONEBOOK, in the display locale, when "collation" is specified as the keyword. + * + * @param locale The locale to get the displayable variant code with. NULL may be used to specify the default. + * @param keyword The keyword for whose value should be used. + * @param displayLocale Specifies the locale to be used to display the name. In other words, + * if the locale's language code is "en", passing Locale::getFrench() for + * inLocale would result in "Anglais", while passing Locale::getGerman() + * for inLocale would result in "Englisch". NULL may be used to specify the default. + * @param dest the buffer to which the displayable keyword should be written. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param status error information if retrieving the displayable string failed. + * Should not be NULL and must not indicate failure on entry. + * @return the actual buffer size needed for the displayable variant code. + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getDisplayKeywordValue( const char* locale, + const char* keyword, + const char* displayLocale, + UChar* dest, + int32_t destCapacity, + UErrorCode* status); +/** + * Gets the full name suitable for display for the specified locale. + * + * @param localeID the locale to get the displayable name with. NULL may be used to specify the default. + * @param inLocaleID Specifies the locale to be used to display the name. In other words, + * if the locale's language code is "en", passing Locale::getFrench() for + * inLocale would result in "Anglais", while passing Locale::getGerman() + * for inLocale would result in "Englisch". NULL may be used to specify the default. + * @param result the displayable name for localeID + * @param maxResultSize the size of the name buffer to store the + * displayable full name with + * @param err error information if retrieving the displayable name failed + * @return the actual buffer size needed for the displayable name. If it's greater + * than maxResultSize, the returned displayable name will be truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getDisplayName(const char* localeID, + const char* inLocaleID, + UChar* result, + int32_t maxResultSize, + UErrorCode* err); + + +/** + * Gets the specified locale from a list of all available locales. + * The return value is a pointer to an item of + * a locale name array. Both this array and the pointers + * it contains are owned by ICU and should not be deleted or written through + * by the caller. The locale name is terminated by a null pointer. + * @param n the specific locale name index of the available locale list + * @return a specified locale name of all available locales + * @stable ICU 2.0 + */ +U_STABLE const char* U_EXPORT2 +uloc_getAvailable(int32_t n); + +/** + * Gets the size of the all available locale list. + * + * @return the size of the locale list + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 uloc_countAvailable(void); + +/** + * + * Gets a list of all available 2-letter language codes defined in ISO 639, + * plus additional 3-letter codes determined to be useful for locale generation as + * defined by Unicode CLDR. This is a pointer + * to an array of pointers to arrays of char. All of these pointers are owned + * by ICU-- do not delete them, and do not write through them. The array is + * terminated with a null pointer. + * @return a list of all available language codes + * @stable ICU 2.0 + */ +U_STABLE const char* const* U_EXPORT2 +uloc_getISOLanguages(void); + +/** + * + * Gets a list of all available 2-letter country codes defined in ISO 639. This is a + * pointer to an array of pointers to arrays of char. All of these pointers are + * owned by ICU-- do not delete them, and do not write through them. The array is + * terminated with a null pointer. + * @return a list of all available country codes + * @stable ICU 2.0 + */ +U_STABLE const char* const* U_EXPORT2 +uloc_getISOCountries(void); + +/** + * Truncate the locale ID string to get the parent locale ID. + * Copies the part of the string before the last underscore. + * The parent locale ID will be an empty string if there is no + * underscore, or if there is only one underscore at localeID[0]. + * + * @param localeID Input locale ID string. + * @param parent Output string buffer for the parent locale ID. + * @param parentCapacity Size of the output buffer. + * @param err A UErrorCode value. + * @return The length of the parent locale ID. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getParent(const char* localeID, + char* parent, + int32_t parentCapacity, + UErrorCode* err); + + + + +/** + * Gets the full name for the specified locale, like uloc_getName(), + * but without keywords. + * + * Note: This has the effect of 'canonicalizing' the string to + * a certain extent. Upper and lower case are set as needed, + * and if the components were in 'POSIX' format they are changed to + * ICU format. It does NOT map aliased names in any way. + * See the top of this header file. + * + * This API strips off the keyword part, so "de_DE\@collation=phonebook" + * will become "de_DE". + * This API supports preflighting. + * + * @param localeID the locale to get the full name with + * @param name fill in buffer for the name without keywords. + * @param nameCapacity capacity of the fill in buffer. + * @param err error information if retrieving the full name failed + * @return the actual buffer size needed for the full name. If it's greater + * than nameCapacity, the returned full name will be truncated. + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getBaseName(const char* localeID, + char* name, + int32_t nameCapacity, + UErrorCode* err); + +/** + * Gets an enumeration of keywords for the specified locale. Enumeration + * must get disposed of by the client using uenum_close function. + * + * @param localeID the locale to get the variant code with + * @param status error information if retrieving the keywords failed + * @return enumeration of keywords or NULL if there are no keywords. + * @stable ICU 2.8 + */ +U_STABLE UEnumeration* U_EXPORT2 +uloc_openKeywords(const char* localeID, + UErrorCode* status); + +/** + * Get the value for a keyword. Locale name does not need to be normalized. + * + * @param localeID locale name containing the keyword ("de_DE@currency=EURO;collation=PHONEBOOK") + * @param keywordName name of the keyword for which we want the value. Case insensitive. + * @param buffer receiving buffer + * @param bufferCapacity capacity of receiving buffer + * @param status containing error code - buffer not big enough. + * @return the length of keyword value + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getKeywordValue(const char* localeID, + const char* keywordName, + char* buffer, int32_t bufferCapacity, + UErrorCode* status); + + +/** + * Sets or removes the value of the specified keyword. + * + * For removing all keywords, use uloc_getBaseName(). + * + * NOTE: Unlike almost every other ICU function which takes a + * buffer, this function will NOT truncate the output text. If a + * BUFFER_OVERFLOW_ERROR is received, it means that the original + * buffer is untouched. This is done to prevent incorrect or possibly + * even malformed locales from being generated and used. + * + * @param keywordName name of the keyword to be set. Case insensitive. + * @param keywordValue value of the keyword to be set. If 0-length or + * NULL, will result in the keyword being removed. No error is given if + * that keyword does not exist. + * @param buffer input buffer containing locale to be modified. + * @param bufferCapacity capacity of receiving buffer + * @param status containing error code - buffer not big enough. + * @return the length needed for the buffer + * @see uloc_getKeywordValue + * @stable ICU 3.2 + */ +U_STABLE int32_t U_EXPORT2 +uloc_setKeywordValue(const char* keywordName, + const char* keywordValue, + char* buffer, int32_t bufferCapacity, + UErrorCode* status); + +/** + * Returns whether the locale's script is written right-to-left. + * If there is no script subtag, then the likely script is used, see uloc_addLikelySubtags(). + * If no likely script is known, then FALSE is returned. + * + * A script is right-to-left according to the CLDR script metadata + * which corresponds to whether the script's letters have Bidi_Class=R or AL. + * + * Returns TRUE for "ar" and "en-Hebr", FALSE for "zh" and "fa-Cyrl". + * + * @param locale input locale ID + * @return TRUE if the locale's script is written right-to-left + * @stable ICU 54 + */ +U_STABLE UBool U_EXPORT2 +uloc_isRightToLeft(const char *locale); + +/** + * enums for the return value for the character and line orientation + * functions. + * @stable ICU 4.0 + */ +typedef enum { + ULOC_LAYOUT_LTR = 0, /* left-to-right. */ + ULOC_LAYOUT_RTL = 1, /* right-to-left. */ + ULOC_LAYOUT_TTB = 2, /* top-to-bottom. */ + ULOC_LAYOUT_BTT = 3, /* bottom-to-top. */ + ULOC_LAYOUT_UNKNOWN +} ULayoutType; + +/** + * Get the layout character orientation for the specified locale. + * + * @param localeId locale name + * @param status Error status + * @return an enum indicating the layout orientation for characters. + * @stable ICU 4.0 + */ +U_STABLE ULayoutType U_EXPORT2 +uloc_getCharacterOrientation(const char* localeId, + UErrorCode *status); + +/** + * Get the layout line orientation for the specified locale. + * + * @param localeId locale name + * @param status Error status + * @return an enum indicating the layout orientation for lines. + * @stable ICU 4.0 + */ +U_STABLE ULayoutType U_EXPORT2 +uloc_getLineOrientation(const char* localeId, + UErrorCode *status); + +/** + * enums for the 'outResult' parameter return value + * @see uloc_acceptLanguageFromHTTP + * @see uloc_acceptLanguage + * @stable ICU 3.2 + */ +typedef enum { + ULOC_ACCEPT_FAILED = 0, /* No exact match was found. */ + ULOC_ACCEPT_VALID = 1, /* An exact match was found. */ + ULOC_ACCEPT_FALLBACK = 2 /* A fallback was found, for example, + Accept list contained 'ja_JP' + which matched available locale 'ja'. */ +} UAcceptResult; + + +/** + * Based on a HTTP header from a web browser and a list of available locales, + * determine an acceptable locale for the user. + * @param result - buffer to accept the result locale + * @param resultAvailable the size of the result buffer. + * @param outResult - An out parameter that contains the fallback status + * @param httpAcceptLanguage - "Accept-Language:" header as per HTTP. + * @param availableLocales - list of available locales to match + * @param status Error status, may be BUFFER_OVERFLOW_ERROR + * @return length needed for the locale. + * @stable ICU 3.2 + */ +U_STABLE int32_t U_EXPORT2 +uloc_acceptLanguageFromHTTP(char *result, int32_t resultAvailable, + UAcceptResult *outResult, + const char *httpAcceptLanguage, + UEnumeration* availableLocales, + UErrorCode *status); + +/** + * Based on a list of available locales, + * determine an acceptable locale for the user. + * @param result - buffer to accept the result locale + * @param resultAvailable the size of the result buffer. + * @param outResult - An out parameter that contains the fallback status + * @param acceptList - list of acceptable languages + * @param acceptListCount - count of acceptList items + * @param availableLocales - list of available locales to match + * @param status Error status, may be BUFFER_OVERFLOW_ERROR + * @return length needed for the locale. + * @stable ICU 3.2 + */ +U_STABLE int32_t U_EXPORT2 +uloc_acceptLanguage(char *result, int32_t resultAvailable, + UAcceptResult *outResult, const char **acceptList, + int32_t acceptListCount, + UEnumeration* availableLocales, + UErrorCode *status); + + +/** + * Gets the ICU locale ID for the specified Win32 LCID value. + * + * @param hostID the Win32 LCID to translate + * @param locale the output buffer for the ICU locale ID, which will be NUL-terminated + * if there is room. + * @param localeCapacity the size of the output buffer + * @param status an error is returned if the LCID is unrecognized or the output buffer + * is too small + * @return actual the actual size of the locale ID, not including NUL-termination + * @stable ICU 3.8 + */ +U_STABLE int32_t U_EXPORT2 +uloc_getLocaleForLCID(uint32_t hostID, char *locale, int32_t localeCapacity, + UErrorCode *status); + + +/** + * Add the likely subtags for a provided locale ID, per the algorithm described + * in the following CLDR technical report: + * + * http://www.unicode.org/reports/tr35/#Likely_Subtags + * + * If localeID is already in the maximal form, or there is no data available + * for maximization, it will be copied to the output buffer. For example, + * "und-Zzzz" cannot be maximized, since there is no reasonable maximization. + * + * Examples: + * + * "en" maximizes to "en_Latn_US" + * + * "de" maximizes to "de_Latn_US" + * + * "sr" maximizes to "sr_Cyrl_RS" + * + * "sh" maximizes to "sr_Latn_RS" (Note this will not reverse.) + * + * "zh_Hani" maximizes to "zh_Hans_CN" (Note this will not reverse.) + * + * @param localeID The locale to maximize + * @param maximizedLocaleID The maximized locale + * @param maximizedLocaleIDCapacity The capacity of the maximizedLocaleID buffer + * @param err Error information if maximizing the locale failed. If the length + * of the localeID and the null-terminator is greater than the maximum allowed size, + * or the localeId is not well-formed, the error code is U_ILLEGAL_ARGUMENT_ERROR. + * @return The actual buffer size needed for the maximized locale. If it's + * greater than maximizedLocaleIDCapacity, the returned ID will be truncated. + * On error, the return value is -1. + * @stable ICU 4.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_addLikelySubtags(const char* localeID, + char* maximizedLocaleID, + int32_t maximizedLocaleIDCapacity, + UErrorCode* err); + + +/** + * Minimize the subtags for a provided locale ID, per the algorithm described + * in the following CLDR technical report: + * + * http://www.unicode.org/reports/tr35/#Likely_Subtags + * + * If localeID is already in the minimal form, or there is no data available + * for minimization, it will be copied to the output buffer. Since the + * minimization algorithm relies on proper maximization, see the comments + * for uloc_addLikelySubtags for reasons why there might not be any data. + * + * Examples: + * + * "en_Latn_US" minimizes to "en" + * + * "de_Latn_US" minimizes to "de" + * + * "sr_Cyrl_RS" minimizes to "sr" + * + * "zh_Hant_TW" minimizes to "zh_TW" (The region is preferred to the + * script, and minimizing to "zh" would imply "zh_Hans_CN".) + * + * @param localeID The locale to minimize + * @param minimizedLocaleID The minimized locale + * @param minimizedLocaleIDCapacity The capacity of the minimizedLocaleID buffer + * @param err Error information if minimizing the locale failed. If the length + * of the localeID and the null-terminator is greater than the maximum allowed size, + * or the localeId is not well-formed, the error code is U_ILLEGAL_ARGUMENT_ERROR. + * @return The actual buffer size needed for the minimized locale. If it's + * greater than minimizedLocaleIDCapacity, the returned ID will be truncated. + * On error, the return value is -1. + * @stable ICU 4.0 + */ +U_STABLE int32_t U_EXPORT2 +uloc_minimizeSubtags(const char* localeID, + char* minimizedLocaleID, + int32_t minimizedLocaleIDCapacity, + UErrorCode* err); + +/** + * Returns a locale ID for the specified BCP47 language tag string. + * If the specified language tag contains any ill-formed subtags, + * the first such subtag and all following subtags are ignored. + *

+ * This implements the 'Language-Tag' production of BCP47, and so + * supports grandfathered (regular and irregular) as well as private + * use language tags. Private use tags are represented as 'x-whatever', + * and grandfathered tags are converted to their canonical replacements + * where they exist. Note that a few grandfathered tags have no modern + * replacement, these will be converted using the fallback described in + * the first paragraph, so some information might be lost. + * @param langtag the input BCP47 language tag. + * @param localeID the output buffer receiving a locale ID for the + * specified BCP47 language tag. + * @param localeIDCapacity the size of the locale ID output buffer. + * @param parsedLength if not NULL, successfully parsed length + * for the input language tag is set. + * @param err error information if receiving the locald ID + * failed. + * @return the length of the locale ID. + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +uloc_forLanguageTag(const char* langtag, + char* localeID, + int32_t localeIDCapacity, + int32_t* parsedLength, + UErrorCode* err); + +/** + * Returns a well-formed language tag for this locale ID. + *

+ * Note: When strict is FALSE, any locale + * fields which do not satisfy the BCP47 syntax requirement will + * be omitted from the result. When strict is + * TRUE, this function sets U_ILLEGAL_ARGUMENT_ERROR to the + * err if any locale fields do not satisfy the + * BCP47 syntax requirement. + * @param localeID the input locale ID + * @param langtag the output buffer receiving BCP47 language + * tag for the locale ID. + * @param langtagCapacity the size of the BCP47 language tag + * output buffer. + * @param strict boolean value indicating if the function returns + * an error for an ill-formed input locale ID. + * @param err error information if receiving the language + * tag failed. + * @return The length of the BCP47 language tag. + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +uloc_toLanguageTag(const char* localeID, + char* langtag, + int32_t langtagCapacity, + UBool strict, + UErrorCode* err); + +/** + * Converts the specified keyword (legacy key, or BCP 47 Unicode locale + * extension key) to the equivalent BCP 47 Unicode locale extension key. + * For example, BCP 47 Unicode locale extension key "co" is returned for + * the input keyword "collation". + *

+ * When the specified keyword is unknown, but satisfies the BCP syntax, + * then the pointer to the input keyword itself will be returned. + * For example, + * uloc_toUnicodeLocaleKey("ZZ") returns "ZZ". + * + * @param keyword the input locale keyword (either legacy key + * such as "collation" or BCP 47 Unicode locale extension + * key such as "co"). + * @return the well-formed BCP 47 Unicode locale extension key, + * or NULL if the specified locale keyword cannot be + * mapped to a well-formed BCP 47 Unicode locale extension + * key. + * @see uloc_toLegacyKey + * @stable ICU 54 + */ +U_STABLE const char* U_EXPORT2 +uloc_toUnicodeLocaleKey(const char* keyword); + +/** + * Converts the specified keyword value (legacy type, or BCP 47 + * Unicode locale extension type) to the well-formed BCP 47 Unicode locale + * extension type for the specified keyword (category). For example, BCP 47 + * Unicode locale extension type "phonebk" is returned for the input + * keyword value "phonebook", with the keyword "collation" (or "co"). + *

+ * When the specified keyword is not recognized, but the specified value + * satisfies the syntax of the BCP 47 Unicode locale extension type, + * or when the specified keyword allows 'variable' type and the specified + * value satisfies the syntax, then the pointer to the input type value itself + * will be returned. + * For example, + * uloc_toUnicodeLocaleType("Foo", "Bar") returns "Bar", + * uloc_toUnicodeLocaleType("variableTop", "00A4") returns "00A4". + * + * @param keyword the locale keyword (either legacy key such as + * "collation" or BCP 47 Unicode locale extension + * key such as "co"). + * @param value the locale keyword value (either legacy type + * such as "phonebook" or BCP 47 Unicode locale extension + * type such as "phonebk"). + * @return the well-formed BCP47 Unicode locale extension type, + * or NULL if the locale keyword value cannot be mapped to + * a well-formed BCP 47 Unicode locale extension type. + * @see uloc_toLegacyType + * @stable ICU 54 + */ +U_STABLE const char* U_EXPORT2 +uloc_toUnicodeLocaleType(const char* keyword, const char* value); + +/** + * Converts the specified keyword (BCP 47 Unicode locale extension key, or + * legacy key) to the legacy key. For example, legacy key "collation" is + * returned for the input BCP 47 Unicode locale extension key "co". + * + * @param keyword the input locale keyword (either BCP 47 Unicode locale + * extension key or legacy key). + * @return the well-formed legacy key, or NULL if the specified + * keyword cannot be mapped to a well-formed legacy key. + * @see toUnicodeLocaleKey + * @stable ICU 54 + */ +U_STABLE const char* U_EXPORT2 +uloc_toLegacyKey(const char* keyword); + +/** + * Converts the specified keyword value (BCP 47 Unicode locale extension type, + * or legacy type or type alias) to the canonical legacy type. For example, + * the legacy type "phonebook" is returned for the input BCP 47 Unicode + * locale extension type "phonebk" with the keyword "collation" (or "co"). + *

+ * When the specified keyword is not recognized, but the specified value + * satisfies the syntax of legacy key, or when the specified keyword + * allows 'variable' type and the specified value satisfies the syntax, + * then the pointer to the input type value itself will be returned. + * For example, + * uloc_toLegacyType("Foo", "Bar") returns "Bar", + * uloc_toLegacyType("vt", "00A4") returns "00A4". + * + * @param keyword the locale keyword (either legacy keyword such as + * "collation" or BCP 47 Unicode locale extension + * key such as "co"). + * @param value the locale keyword value (either BCP 47 Unicode locale + * extension type such as "phonebk" or legacy keyword value + * such as "phonebook"). + * @return the well-formed legacy type, or NULL if the specified + * keyword value cannot be mapped to a well-formed legacy + * type. + * @see toUnicodeLocaleType + * @stable ICU 54 + */ +U_STABLE const char* U_EXPORT2 +uloc_toLegacyType(const char* keyword, const char* value); + +#endif /*_ULOC*/ + +// ures.h +/* +********************************************************************** +* Copyright (C) 1997-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* +* File URES.H (formerly CRESBUND.H) +* +* Modification History: +* +* Date Name Description +* 04/01/97 aliu Creation. +* 02/22/99 damiba overhaul. +* 04/04/99 helena Fixed internal header inclusion. +* 04/15/99 Madhu Updated Javadoc +* 06/14/99 stephen Removed functions taking a filename suffix. +* 07/20/99 stephen Language-independent ypedef to void* +* 11/09/99 weiv Added ures_getLocale() +* 06/24/02 weiv Added support for resource sharing +****************************************************************************** +*/ + +#ifndef URES_H +#define URES_H + + +/** + * \file + * \brief C API: Resource Bundle + * + *

C API: Resource Bundle

+ * + * C API representing a collection of resource information pertaining to a given + * locale. A resource bundle provides a way of accessing locale- specific information in + * a data file. You create a resource bundle that manages the resources for a given + * locale and then ask it for individual resources. + *

+ * Resource bundles in ICU4C are currently defined using text files which conform to the following + * BNF definition. + * More on resource bundle concepts and syntax can be found in the + * Users Guide. + *

+ */ + +/** + * UResourceBundle is an opaque type for handles for resource bundles in C APIs. + * @stable ICU 2.0 + */ +struct UResourceBundle; + +/** + * @stable ICU 2.0 + */ +typedef struct UResourceBundle UResourceBundle; + +/** + * Numeric constants for types of resource items. + * @see ures_getType + * @stable ICU 2.0 + */ +typedef enum { + /** Resource type constant for "no resource". @stable ICU 2.6 */ + URES_NONE=-1, + + /** Resource type constant for 16-bit Unicode strings. @stable ICU 2.6 */ + URES_STRING=0, + + /** Resource type constant for binary data. @stable ICU 2.6 */ + URES_BINARY=1, + + /** Resource type constant for tables of key-value pairs. @stable ICU 2.6 */ + URES_TABLE=2, + + /** + * Resource type constant for aliases; + * internally stores a string which identifies the actual resource + * storing the data (can be in a different resource bundle). + * Resolved internally before delivering the actual resource through the API. + * @stable ICU 2.6 + */ + URES_ALIAS=3, + + /** + * Resource type constant for a single 28-bit integer, interpreted as + * signed or unsigned by the ures_getInt() or ures_getUInt() function. + * @see ures_getInt + * @see ures_getUInt + * @stable ICU 2.6 + */ + URES_INT=7, + + /** Resource type constant for arrays of resources. @stable ICU 2.6 */ + URES_ARRAY=8, + + /** + * Resource type constant for vectors of 32-bit integers. + * @see ures_getIntVector + * @stable ICU 2.6 + */ + URES_INT_VECTOR = 14, + + URES_LIMIT = 16 +} UResType; + +/* + * Functions to create and destroy resource bundles. + */ + +/** + * Opens a UResourceBundle, from which users can extract strings by using + * their corresponding keys. + * Note that the caller is responsible of calling ures_close on each succesfully + * opened resource bundle. + * @param packageName The packageName and locale together point to an ICU udata object, + * as defined by udata_open( packageName, "res", locale, err) + * or equivalent. Typically, packageName will refer to a (.dat) file, or to + * a package registered with udata_setAppData(). Using a full file or directory + * pathname for packageName is deprecated. If NULL, ICU data will be used. + * @param locale specifies the locale for which we want to open the resource + * if NULL, the default locale will be used. If strlen(locale) == 0 + * root locale will be used. + * + * @param status fills in the outgoing error code. + * The UErrorCode err parameter is used to return status information to the user. To + * check whether the construction succeeded or not, you should check the value of + * U_SUCCESS(err). If you wish more detailed information, you can check for + * informational status results which still indicate success. U_USING_FALLBACK_WARNING + * indicates that a fall back locale was used. For example, 'de_CH' was requested, + * but nothing was found there, so 'de' was used. U_USING_DEFAULT_WARNING indicates that + * the default locale data or root locale data was used; neither the requested locale + * nor any of its fall back locales could be found. Please see the users guide for more + * information on this topic. + * @return a newly allocated resource bundle. + * @see ures_close + * @stable ICU 2.0 + */ +U_STABLE UResourceBundle* U_EXPORT2 +ures_open(const char* packageName, + const char* locale, + UErrorCode* status); + + +/** This function does not care what kind of localeID is passed in. It simply opens a bundle with + * that name. Fallback mechanism is disabled for the new bundle. If the requested bundle contains + * an %%ALIAS directive, the results are undefined. + * @param packageName The packageName and locale together point to an ICU udata object, + * as defined by udata_open( packageName, "res", locale, err) + * or equivalent. Typically, packageName will refer to a (.dat) file, or to + * a package registered with udata_setAppData(). Using a full file or directory + * pathname for packageName is deprecated. If NULL, ICU data will be used. + * @param locale specifies the locale for which we want to open the resource + * if NULL, the default locale will be used. If strlen(locale) == 0 + * root locale will be used. + * + * @param status fills in the outgoing error code. Either U_ZERO_ERROR or U_MISSING_RESOURCE_ERROR + * @return a newly allocated resource bundle or NULL if it doesn't exist. + * @see ures_close + * @stable ICU 2.0 + */ +U_STABLE UResourceBundle* U_EXPORT2 +ures_openDirect(const char* packageName, + const char* locale, + UErrorCode* status); + +/** + * Same as ures_open() but takes a const UChar *path. + * This path will be converted to char * using the default converter, + * then ures_open() is called. + * + * @param packageName The packageName and locale together point to an ICU udata object, + * as defined by udata_open( packageName, "res", locale, err) + * or equivalent. Typically, packageName will refer to a (.dat) file, or to + * a package registered with udata_setAppData(). Using a full file or directory + * pathname for packageName is deprecated. If NULL, ICU data will be used. + * @param locale specifies the locale for which we want to open the resource + * if NULL, the default locale will be used. If strlen(locale) == 0 + * root locale will be used. + * @param status fills in the outgoing error code. + * @return a newly allocated resource bundle. + * @see ures_open + * @stable ICU 2.0 + */ +U_STABLE UResourceBundle* U_EXPORT2 +ures_openU(const UChar* packageName, + const char* locale, + UErrorCode* status); + + +/** + * Close a resource bundle, all pointers returned from the various ures_getXXX calls + * on this particular bundle should be considered invalid henceforth. + * + * @param resourceBundle a pointer to a resourceBundle struct. Can be NULL. + * @see ures_open + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ures_close(UResourceBundle* resourceBundle); + + + +/** + * Return the version number associated with this ResourceBundle as an + * UVersionInfo array. + * + * @param resB The resource bundle for which the version is checked. + * @param versionInfo A UVersionInfo array that is filled with the version number + * as specified in the resource bundle or its parent. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ures_getVersion(const UResourceBundle* resB, + UVersionInfo versionInfo); + + +/** + * Return the name of the Locale associated with this ResourceBundle. + * You can choose between requested, valid and real locale. + * + * @param resourceBundle resource bundle in question + * @param type You can choose between requested, valid and actual + * locale. For description see the definition of + * ULocDataLocaleType in uloc.h + * @param status just for catching illegal arguments + * @return A Locale name + * @stable ICU 2.8 + */ +U_STABLE const char* U_EXPORT2 +ures_getLocaleByType(const UResourceBundle* resourceBundle, + ULocDataLocaleType type, + UErrorCode* status); + + + +/** + * Returns a string from a string resource type + * + * @param resourceBundle a string resource + * @param len fills in the length of resulting string + * @param status fills in the outgoing error code + * could be U_MISSING_RESOURCE_ERROR if the key is not found + * Always check the value of status. Don't count on returning NULL. + * could be a non-failing error + * e.g.: U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING + * @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file. + * @see ures_getBinary + * @see ures_getIntVector + * @see ures_getInt + * @see ures_getUInt + * @stable ICU 2.0 + */ +U_STABLE const UChar* U_EXPORT2 +ures_getString(const UResourceBundle* resourceBundle, + int32_t* len, + UErrorCode* status); + +/** + * Returns a UTF-8 string from a string resource. + * The UTF-8 string may be returnable directly as a pointer, or + * it may need to be copied, or transformed from UTF-16 using u_strToUTF8() + * or equivalent. + * + * If forceCopy==TRUE, then the string is always written to the dest buffer + * and dest is returned. + * + * If forceCopy==FALSE, then the string is returned as a pointer if possible, + * without needing a dest buffer (it can be NULL). If the string needs to be + * copied or transformed, then it may be placed into dest at an arbitrary offset. + * + * If the string is to be written to dest, then U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING are set if appropriate, as usual. + * + * If the string is transformed from UTF-16, then a conversion error may occur + * if an unpaired surrogate is encountered. If the function is successful, then + * the output UTF-8 string is always well-formed. + * + * @param resB Resource bundle. + * @param dest Destination buffer. Can be NULL only if capacity=*length==0. + * @param length Input: Capacity of destination buffer. + * Output: Actual length of the UTF-8 string, not counting the + * terminating NUL, even in case of U_BUFFER_OVERFLOW_ERROR. + * Can be NULL, meaning capacity=0 and the string length is not + * returned to the caller. + * @param forceCopy If TRUE, then the output string will always be written to + * dest, with U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING set if appropriate. + * If FALSE, then the dest buffer may or may not contain a + * copy of the string. dest may or may not be modified. + * If a copy needs to be written, then the UErrorCode parameter + * indicates overflow etc. as usual. + * @param status Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to the UTF-8 string. It may be dest, or at some offset + * from dest (only if !forceCopy), or in unrelated memory. + * Always NUL-terminated unless the string was written to dest and + * length==capacity (in which case U_STRING_NOT_TERMINATED_WARNING is set). + * + * @see ures_getString + * @see u_strToUTF8 + * @stable ICU 3.6 + */ +U_STABLE const char * U_EXPORT2 +ures_getUTF8String(const UResourceBundle *resB, + char *dest, int32_t *length, + UBool forceCopy, + UErrorCode *status); + +/** + * Returns a binary data from a binary resource. + * + * @param resourceBundle a string resource + * @param len fills in the length of resulting byte chunk + * @param status fills in the outgoing error code + * could be U_MISSING_RESOURCE_ERROR if the key is not found + * Always check the value of status. Don't count on returning NULL. + * could be a non-failing error + * e.g.: U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING + * @return a pointer to a chunk of unsigned bytes which live in a memory mapped/DLL file. + * @see ures_getString + * @see ures_getIntVector + * @see ures_getInt + * @see ures_getUInt + * @stable ICU 2.0 + */ +U_STABLE const uint8_t* U_EXPORT2 +ures_getBinary(const UResourceBundle* resourceBundle, + int32_t* len, + UErrorCode* status); + +/** + * Returns a 32 bit integer array from a resource. + * + * @param resourceBundle an int vector resource + * @param len fills in the length of resulting byte chunk + * @param status fills in the outgoing error code + * could be U_MISSING_RESOURCE_ERROR if the key is not found + * Always check the value of status. Don't count on returning NULL. + * could be a non-failing error + * e.g.: U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING + * @return a pointer to a chunk of integers which live in a memory mapped/DLL file. + * @see ures_getBinary + * @see ures_getString + * @see ures_getInt + * @see ures_getUInt + * @stable ICU 2.0 + */ +U_STABLE const int32_t* U_EXPORT2 +ures_getIntVector(const UResourceBundle* resourceBundle, + int32_t* len, + UErrorCode* status); + +/** + * Returns an unsigned integer from a resource. + * This integer is originally 28 bits. + * + * @param resourceBundle a string resource + * @param status fills in the outgoing error code + * could be U_MISSING_RESOURCE_ERROR if the key is not found + * could be a non-failing error + * e.g.: U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING + * @return an integer value + * @see ures_getInt + * @see ures_getIntVector + * @see ures_getBinary + * @see ures_getString + * @stable ICU 2.0 + */ +U_STABLE uint32_t U_EXPORT2 +ures_getUInt(const UResourceBundle* resourceBundle, + UErrorCode *status); + +/** + * Returns a signed integer from a resource. + * This integer is originally 28 bit and the sign gets propagated. + * + * @param resourceBundle a string resource + * @param status fills in the outgoing error code + * could be U_MISSING_RESOURCE_ERROR if the key is not found + * could be a non-failing error + * e.g.: U_USING_FALLBACK_WARNING,U_USING_DEFAULT_WARNING + * @return an integer value + * @see ures_getUInt + * @see ures_getIntVector + * @see ures_getBinary + * @see ures_getString + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ures_getInt(const UResourceBundle* resourceBundle, + UErrorCode *status); + +/** + * Returns the size of a resource. Size for scalar types is always 1, + * and for vector/table types is the number of child resources. + * @warning Integer array is treated as a scalar type. There are no + * APIs to access individual members of an integer array. It + * is always returned as a whole. + * @param resourceBundle a resource + * @return number of resources in a given resource. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ures_getSize(const UResourceBundle *resourceBundle); + +/** + * Returns the type of a resource. Available types are defined in enum UResType + * + * @param resourceBundle a resource + * @return type of the given resource. + * @see UResType + * @stable ICU 2.0 + */ +U_STABLE UResType U_EXPORT2 +ures_getType(const UResourceBundle *resourceBundle); + +/** + * Returns the key associated with a given resource. Not all the resources have a key - only + * those that are members of a table. + * + * @param resourceBundle a resource + * @return a key associated to this resource, or NULL if it doesn't have a key + * @stable ICU 2.0 + */ +U_STABLE const char * U_EXPORT2 +ures_getKey(const UResourceBundle *resourceBundle); + +/* ITERATION API + This API provides means for iterating through a resource +*/ + +/** + * Resets the internal context of a resource so that iteration starts from the first element. + * + * @param resourceBundle a resource + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ures_resetIterator(UResourceBundle *resourceBundle); + +/** + * Checks whether the given resource has another element to iterate over. + * + * @param resourceBundle a resource + * @return TRUE if there are more elements, FALSE if there is no more elements + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +ures_hasNext(const UResourceBundle *resourceBundle); + +/** + * Returns the next resource in a given resource or NULL if there are no more resources + * to iterate over. Features a fill-in parameter. + * + * @param resourceBundle a resource + * @param fillIn if NULL a new UResourceBundle struct is allocated and must be closed by the caller. + * Alternatively, you can supply a struct to be filled by this function. + * @param status fills in the outgoing error code. You may still get a non NULL result even if an + * error occured. Check status instead. + * @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must close it + * @stable ICU 2.0 + */ +U_STABLE UResourceBundle* U_EXPORT2 +ures_getNextResource(UResourceBundle *resourceBundle, + UResourceBundle *fillIn, + UErrorCode *status); + +/** + * Returns the next string in a given resource or NULL if there are no more resources + * to iterate over. + * + * @param resourceBundle a resource + * @param len fill in length of the string + * @param key fill in for key associated with this string. NULL if no key + * @param status fills in the outgoing error code. If an error occured, we may return NULL, but don't + * count on it. Check status instead! + * @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file. + * @stable ICU 2.0 + */ +U_STABLE const UChar* U_EXPORT2 +ures_getNextString(UResourceBundle *resourceBundle, + int32_t* len, + const char ** key, + UErrorCode *status); + +/** + * Returns the resource in a given resource at the specified index. Features a fill-in parameter. + * + * @param resourceBundle the resource bundle from which to get a sub-resource + * @param indexR an index to the wanted resource. + * @param fillIn if NULL a new UResourceBundle struct is allocated and must be closed by the caller. + * Alternatively, you can supply a struct to be filled by this function. + * @param status fills in the outgoing error code. Don't count on NULL being returned if an error has + * occured. Check status instead. + * @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must close it + * @stable ICU 2.0 + */ +U_STABLE UResourceBundle* U_EXPORT2 +ures_getByIndex(const UResourceBundle *resourceBundle, + int32_t indexR, + UResourceBundle *fillIn, + UErrorCode *status); + +/** + * Returns the string in a given resource at the specified index. + * + * @param resourceBundle a resource + * @param indexS an index to the wanted string. + * @param len fill in length of the string + * @param status fills in the outgoing error code. If an error occured, we may return NULL, but don't + * count on it. Check status instead! + * @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file. + * @stable ICU 2.0 + */ +U_STABLE const UChar* U_EXPORT2 +ures_getStringByIndex(const UResourceBundle *resourceBundle, + int32_t indexS, + int32_t* len, + UErrorCode *status); + +/** + * Returns a UTF-8 string from a resource at the specified index. + * The UTF-8 string may be returnable directly as a pointer, or + * it may need to be copied, or transformed from UTF-16 using u_strToUTF8() + * or equivalent. + * + * If forceCopy==TRUE, then the string is always written to the dest buffer + * and dest is returned. + * + * If forceCopy==FALSE, then the string is returned as a pointer if possible, + * without needing a dest buffer (it can be NULL). If the string needs to be + * copied or transformed, then it may be placed into dest at an arbitrary offset. + * + * If the string is to be written to dest, then U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING are set if appropriate, as usual. + * + * If the string is transformed from UTF-16, then a conversion error may occur + * if an unpaired surrogate is encountered. If the function is successful, then + * the output UTF-8 string is always well-formed. + * + * @param resB Resource bundle. + * @param stringIndex An index to the wanted string. + * @param dest Destination buffer. Can be NULL only if capacity=*length==0. + * @param pLength Input: Capacity of destination buffer. + * Output: Actual length of the UTF-8 string, not counting the + * terminating NUL, even in case of U_BUFFER_OVERFLOW_ERROR. + * Can be NULL, meaning capacity=0 and the string length is not + * returned to the caller. + * @param forceCopy If TRUE, then the output string will always be written to + * dest, with U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING set if appropriate. + * If FALSE, then the dest buffer may or may not contain a + * copy of the string. dest may or may not be modified. + * If a copy needs to be written, then the UErrorCode parameter + * indicates overflow etc. as usual. + * @param status Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to the UTF-8 string. It may be dest, or at some offset + * from dest (only if !forceCopy), or in unrelated memory. + * Always NUL-terminated unless the string was written to dest and + * length==capacity (in which case U_STRING_NOT_TERMINATED_WARNING is set). + * + * @see ures_getStringByIndex + * @see u_strToUTF8 + * @stable ICU 3.6 + */ +U_STABLE const char * U_EXPORT2 +ures_getUTF8StringByIndex(const UResourceBundle *resB, + int32_t stringIndex, + char *dest, int32_t *pLength, + UBool forceCopy, + UErrorCode *status); + +/** + * Returns a resource in a given resource that has a given key. This procedure works only with table + * resources. Features a fill-in parameter. + * + * @param resourceBundle a resource + * @param key a key associated with the wanted resource + * @param fillIn if NULL a new UResourceBundle struct is allocated and must be closed by the caller. + * Alternatively, you can supply a struct to be filled by this function. + * @param status fills in the outgoing error code. + * @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must close it + * @stable ICU 2.0 + */ +U_STABLE UResourceBundle* U_EXPORT2 +ures_getByKey(const UResourceBundle *resourceBundle, + const char* key, + UResourceBundle *fillIn, + UErrorCode *status); + +/** + * Returns a string in a given resource that has a given key. This procedure works only with table + * resources. + * + * @param resB a resource + * @param key a key associated with the wanted string + * @param len fill in length of the string + * @param status fills in the outgoing error code. If an error occured, we may return NULL, but don't + * count on it. Check status instead! + * @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file. + * @stable ICU 2.0 + */ +U_STABLE const UChar* U_EXPORT2 +ures_getStringByKey(const UResourceBundle *resB, + const char* key, + int32_t* len, + UErrorCode *status); + +/** + * Returns a UTF-8 string from a resource and a key. + * This function works only with table resources. + * + * The UTF-8 string may be returnable directly as a pointer, or + * it may need to be copied, or transformed from UTF-16 using u_strToUTF8() + * or equivalent. + * + * If forceCopy==TRUE, then the string is always written to the dest buffer + * and dest is returned. + * + * If forceCopy==FALSE, then the string is returned as a pointer if possible, + * without needing a dest buffer (it can be NULL). If the string needs to be + * copied or transformed, then it may be placed into dest at an arbitrary offset. + * + * If the string is to be written to dest, then U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING are set if appropriate, as usual. + * + * If the string is transformed from UTF-16, then a conversion error may occur + * if an unpaired surrogate is encountered. If the function is successful, then + * the output UTF-8 string is always well-formed. + * + * @param resB Resource bundle. + * @param key A key associated with the wanted resource + * @param dest Destination buffer. Can be NULL only if capacity=*length==0. + * @param pLength Input: Capacity of destination buffer. + * Output: Actual length of the UTF-8 string, not counting the + * terminating NUL, even in case of U_BUFFER_OVERFLOW_ERROR. + * Can be NULL, meaning capacity=0 and the string length is not + * returned to the caller. + * @param forceCopy If TRUE, then the output string will always be written to + * dest, with U_BUFFER_OVERFLOW_ERROR and + * U_STRING_NOT_TERMINATED_WARNING set if appropriate. + * If FALSE, then the dest buffer may or may not contain a + * copy of the string. dest may or may not be modified. + * If a copy needs to be written, then the UErrorCode parameter + * indicates overflow etc. as usual. + * @param status Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to the UTF-8 string. It may be dest, or at some offset + * from dest (only if !forceCopy), or in unrelated memory. + * Always NUL-terminated unless the string was written to dest and + * length==capacity (in which case U_STRING_NOT_TERMINATED_WARNING is set). + * + * @see ures_getStringByKey + * @see u_strToUTF8 + * @stable ICU 3.6 + */ +U_STABLE const char * U_EXPORT2 +ures_getUTF8StringByKey(const UResourceBundle *resB, + const char *key, + char *dest, int32_t *pLength, + UBool forceCopy, + UErrorCode *status); + + +/** + * Create a string enumerator, owned by the caller, of all locales located within + * the specified resource tree. + * @param packageName name of the tree, such as (NULL) or U_ICUDATA_ALIAS or or "ICUDATA-coll" + * This call is similar to uloc_getAvailable(). + * @param status error code + * @stable ICU 3.2 + */ +U_STABLE UEnumeration* U_EXPORT2 +ures_openAvailableLocales(const char *packageName, UErrorCode *status); + + +#endif /*_URES*/ +/*eof*/ + +// udisplaycontext.h +/* +***************************************************************************************** +* Copyright (C) 2014-2016, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UDISPLAYCONTEXT_H +#define UDISPLAYCONTEXT_H + + +#if !UCONFIG_NO_FORMATTING + +/** + * \file + * \brief C API: Display context types (enum values) + */ + +/** + * Display context types, for getting values of a particular setting. + * Note, the specific numeric values are internal and may change. + * @stable ICU 51 + */ +enum UDisplayContextType { + /** + * Type to retrieve the dialect handling setting, e.g. + * UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES. + * @stable ICU 51 + */ + UDISPCTX_TYPE_DIALECT_HANDLING = 0, + /** + * Type to retrieve the capitalization context setting, e.g. + * UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, + * UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, etc. + * @stable ICU 51 + */ + UDISPCTX_TYPE_CAPITALIZATION = 1, + /** + * Type to retrieve the display length setting, e.g. + * UDISPCTX_LENGTH_FULL, UDISPCTX_LENGTH_SHORT. + * @stable ICU 54 + */ + UDISPCTX_TYPE_DISPLAY_LENGTH = 2 +}; +/** +* @stable ICU 51 +*/ +typedef enum UDisplayContextType UDisplayContextType; + +/** + * Display context settings. + * Note, the specific numeric values are internal and may change. + * @stable ICU 51 + */ +enum UDisplayContext { + /** + * ================================ + * DIALECT_HANDLING can be set to one of UDISPCTX_STANDARD_NAMES or + * UDISPCTX_DIALECT_NAMES. Use UDisplayContextType UDISPCTX_TYPE_DIALECT_HANDLING + * to get the value. + */ + /** + * A possible setting for DIALECT_HANDLING: + * use standard names when generating a locale name, + * e.g. en_GB displays as 'English (United Kingdom)'. + * @stable ICU 51 + */ + UDISPCTX_STANDARD_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 0, + /** + * A possible setting for DIALECT_HANDLING: + * use dialect names, when generating a locale name, + * e.g. en_GB displays as 'British English'. + * @stable ICU 51 + */ + UDISPCTX_DIALECT_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 1, + /** + * ================================ + * CAPITALIZATION can be set to one of UDISPCTX_CAPITALIZATION_NONE, + * UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, + * UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, + * UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU, or + * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. + * Use UDisplayContextType UDISPCTX_TYPE_CAPITALIZATION to get the value. + */ + /** + * The capitalization context to be used is unknown (this is the default value). + * @stable ICU 51 + */ + UDISPCTX_CAPITALIZATION_NONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 0, + /** + * The capitalization context if a date, date symbol or display name is to be + * formatted with capitalization appropriate for the middle of a sentence. + * @stable ICU 51 + */ + UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 1, + /** + * The capitalization context if a date, date symbol or display name is to be + * formatted with capitalization appropriate for the beginning of a sentence. + * @stable ICU 51 + */ + UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 2, + /** + * The capitalization context if a date, date symbol or display name is to be + * formatted with capitalization appropriate for a user-interface list or menu item. + * @stable ICU 51 + */ + UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 3, + /** + * The capitalization context if a date, date symbol or display name is to be + * formatted with capitalization appropriate for stand-alone usage such as an + * isolated name on a calendar page. + * @stable ICU 51 + */ + UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 4, + /** + * ================================ + * DISPLAY_LENGTH can be set to one of UDISPCTX_LENGTH_FULL or + * UDISPCTX_LENGTH_SHORT. Use UDisplayContextType UDISPCTX_TYPE_DISPLAY_LENGTH + * to get the value. + */ + /** + * A possible setting for DISPLAY_LENGTH: + * use full names when generating a locale name, + * e.g. "United States" for US. + * @stable ICU 54 + */ + UDISPCTX_LENGTH_FULL = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 0, + /** + * A possible setting for DISPLAY_LENGTH: + * use short names when generating a locale name, + * e.g. "U.S." for US. + * @stable ICU 54 + */ + UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1 +}; +/** +* @stable ICU 51 +*/ +typedef enum UDisplayContext UDisplayContext; + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// uldnames.h +/* +******************************************************************************* +* Copyright (C) 2010-2016, International Business Machines Corporation and +* others. All Rights Reserved. +******************************************************************************* +*/ + +#ifndef __ULDNAMES_H__ +#define __ULDNAMES_H__ + +/** + * \file + * \brief C API: Provides display names of Locale ids and their components. + */ + + +/** + * Enum used in LocaleDisplayNames::createInstance. + * @stable ICU 4.4 + */ +typedef enum { + /** + * Use standard names when generating a locale name, + * e.g. en_GB displays as 'English (United Kingdom)'. + * @stable ICU 4.4 + */ + ULDN_STANDARD_NAMES = 0, + /** + * Use dialect names, when generating a locale name, + * e.g. en_GB displays as 'British English'. + * @stable ICU 4.4 + */ + ULDN_DIALECT_NAMES +} UDialectHandling; + +/** + * Opaque C service object type for the locale display names API + * @stable ICU 4.4 + */ +struct ULocaleDisplayNames; + +/** + * C typedef for struct ULocaleDisplayNames. + * @stable ICU 4.4 + */ +typedef struct ULocaleDisplayNames ULocaleDisplayNames; + +#if !UCONFIG_NO_FORMATTING + +/** + * Returns an instance of LocaleDisplayNames that returns names + * formatted for the provided locale, using the provided + * dialectHandling. The usual value for dialectHandling is + * ULOC_STANDARD_NAMES. + * + * @param locale the display locale + * @param dialectHandling how to select names for locales + * @return a ULocaleDisplayNames instance + * @param pErrorCode the status code + * @stable ICU 4.4 + */ +U_STABLE ULocaleDisplayNames * U_EXPORT2 +uldn_open(const char * locale, + UDialectHandling dialectHandling, + UErrorCode *pErrorCode); + +/** + * Closes a ULocaleDisplayNames instance obtained from uldn_open(). + * @param ldn the ULocaleDisplayNames instance to be closed + * @stable ICU 4.4 + */ +U_STABLE void U_EXPORT2 +uldn_close(ULocaleDisplayNames *ldn); + + +/* getters for state */ + +/** + * Returns the locale used to determine the display names. This is + * not necessarily the same locale passed to {@link #uldn_open}. + * @param ldn the LocaleDisplayNames instance + * @return the display locale + * @stable ICU 4.4 + */ +U_STABLE const char * U_EXPORT2 +uldn_getLocale(const ULocaleDisplayNames *ldn); + +/** + * Returns the dialect handling used in the display names. + * @param ldn the LocaleDisplayNames instance + * @return the dialect handling enum + * @stable ICU 4.4 + */ +U_STABLE UDialectHandling U_EXPORT2 +uldn_getDialectHandling(const ULocaleDisplayNames *ldn); + +/* names for entire locales */ + +/** + * Returns the display name of the provided locale. + * @param ldn the LocaleDisplayNames instance + * @param locale the locale whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +uldn_localeDisplayName(const ULocaleDisplayNames *ldn, + const char *locale, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/* names for components of a locale */ + +/** + * Returns the display name of the provided language code. + * @param ldn the LocaleDisplayNames instance + * @param lang the language code whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +uldn_languageDisplayName(const ULocaleDisplayNames *ldn, + const char *lang, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided script. + * @param ldn the LocaleDisplayNames instance + * @param script the script whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +uldn_scriptDisplayName(const ULocaleDisplayNames *ldn, + const char *script, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided script code. + * @param ldn the LocaleDisplayNames instance + * @param scriptCode the script code whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +uldn_scriptCodeDisplayName(const ULocaleDisplayNames *ldn, + UScriptCode scriptCode, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided region code. + * @param ldn the LocaleDisplayNames instance + * @param region the region code whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +uldn_regionDisplayName(const ULocaleDisplayNames *ldn, + const char *region, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided variant + * @param ldn the LocaleDisplayNames instance + * @param variant the variant whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +uldn_variantDisplayName(const ULocaleDisplayNames *ldn, + const char *variant, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided locale key + * @param ldn the LocaleDisplayNames instance + * @param key the locale key whose display name to return + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +uldn_keyDisplayName(const ULocaleDisplayNames *ldn, + const char *key, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** + * Returns the display name of the provided value (used with the provided key). + * @param ldn the LocaleDisplayNames instance + * @param key the locale key + * @param value the locale key's value + * @param result receives the display name + * @param maxResultSize the size of the result buffer + * @param pErrorCode the status code + * @return the actual buffer size needed for the display name. If it's + * greater than maxResultSize, the returned name will be truncated. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +uldn_keyValueDisplayName(const ULocaleDisplayNames *ldn, + const char *key, + const char *value, + UChar *result, + int32_t maxResultSize, + UErrorCode *pErrorCode); + +/** +* Returns an instance of LocaleDisplayNames that returns names formatted +* for the provided locale, using the provided UDisplayContext settings. +* +* @param locale The display locale +* @param contexts List of one or more context settings (e.g. for dialect +* handling, capitalization, etc. +* @param length Number of items in the contexts list +* @param pErrorCode Pointer to UErrorCode input/output status. If at entry this indicates +* a failure status, the function will do nothing; otherwise this will be +* updated with any new status from the function. +* @return a ULocaleDisplayNames instance +* @stable ICU 51 +*/ +U_STABLE ULocaleDisplayNames * U_EXPORT2 +uldn_openForContext(const char * locale, UDisplayContext *contexts, + int32_t length, UErrorCode *pErrorCode); + +/** +* Returns the UDisplayContext value for the specified UDisplayContextType. +* @param ldn the ULocaleDisplayNames instance +* @param type the UDisplayContextType whose value to return +* @param pErrorCode Pointer to UErrorCode input/output status. If at entry this indicates +* a failure status, the function will do nothing; otherwise this will be +* updated with any new status from the function. +* @return the UDisplayContextValue for the specified type. +* @stable ICU 51 +*/ +U_STABLE UDisplayContext U_EXPORT2 +uldn_getContext(const ULocaleDisplayNames *ldn, UDisplayContextType type, + UErrorCode *pErrorCode); + +#endif /* !UCONFIG_NO_FORMATTING */ +#endif /* __ULDNAMES_H__ */ + +// ucurr.h +/* +********************************************************************** +* Copyright (c) 2002-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +*/ +#ifndef _UCURR_H_ +#define _UCURR_H_ + + +/** + * \file + * \brief C API: Encapsulates information about a currency. + * + * The ucurr API encapsulates information about a currency, as defined by + * ISO 4217. A currency is represented by a 3-character string + * containing its ISO 4217 code. This API can return various data + * necessary the proper display of a currency: + * + *

  • A display symbol, for a specific locale + *
  • The number of fraction digits to display + *
  • A rounding increment + *
+ * + * The DecimalFormat class uses these data to display + * currencies. + * @author Alan Liu + * @since ICU 2.2 + */ + +#if !UCONFIG_NO_FORMATTING + +/** + * Currency Usage used for Decimal Format + * @stable ICU 54 + */ +enum UCurrencyUsage { + /** + * a setting to specify currency usage which determines currency digit + * and rounding for standard usage, for example: "50.00 NT$" + * used as DEFAULT value + * @stable ICU 54 + */ + UCURR_USAGE_STANDARD=0, + /** + * a setting to specify currency usage which determines currency digit + * and rounding for cash usage, for example: "50 NT$" + * @stable ICU 54 + */ + UCURR_USAGE_CASH=1, + /** + * One higher than the last enum UCurrencyUsage constant. + * @stable ICU 54 + */ + UCURR_USAGE_COUNT=2 +}; +typedef enum UCurrencyUsage UCurrencyUsage; + +/** + * Finds a currency code for the given locale. + * @param locale the locale for which to retrieve a currency code. + * Currency can be specified by the "currency" keyword + * in which case it overrides the default currency code + * @param buff fill in buffer. Can be NULL for preflighting. + * @param buffCapacity capacity of the fill in buffer. Can be 0 for + * preflighting. If it is non-zero, the buff parameter + * must not be NULL. + * @param ec error code + * @return length of the currency string. It should always be 3. If 0, + * currency couldn't be found or the input values are + * invalid. + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +ucurr_forLocale(const char* locale, + UChar* buff, + int32_t buffCapacity, + UErrorCode* ec); + +/** + * Selector constants for ucurr_getName(). + * + * @see ucurr_getName + * @stable ICU 2.6 + */ +typedef enum UCurrNameStyle { + /** + * Selector for ucurr_getName indicating a symbolic name for a + * currency, such as "$" for USD. + * @stable ICU 2.6 + */ + UCURR_SYMBOL_NAME, + + /** + * Selector for ucurr_getName indicating the long name for a + * currency, such as "US Dollar" for USD. + * @stable ICU 2.6 + */ + UCURR_LONG_NAME +} UCurrNameStyle; + +#if !UCONFIG_NO_SERVICE +/** + * @stable ICU 2.6 + */ +typedef const void* UCurrRegistryKey; + +/** + * Register an (existing) ISO 4217 currency code for the given locale. + * Only the country code and the two variants EURO and PRE_EURO are + * recognized. + * @param isoCode the three-letter ISO 4217 currency code + * @param locale the locale for which to register this currency code + * @param status the in/out status code + * @return a registry key that can be used to unregister this currency code, or NULL + * if there was an error. + * @stable ICU 2.6 + */ +U_STABLE UCurrRegistryKey U_EXPORT2 +ucurr_register(const UChar* isoCode, + const char* locale, + UErrorCode* status); +/** + * Unregister the previously-registered currency definitions using the + * URegistryKey returned from ucurr_register. Key becomes invalid after + * a successful call and should not be used again. Any currency + * that might have been hidden by the original ucurr_register call is + * restored. + * @param key the registry key returned by a previous call to ucurr_register + * @param status the in/out status code, no special meanings are assigned + * @return TRUE if the currency for this key was successfully unregistered + * @stable ICU 2.6 + */ +U_STABLE UBool U_EXPORT2 +ucurr_unregister(UCurrRegistryKey key, UErrorCode* status); +#endif /* UCONFIG_NO_SERVICE */ + +/** + * Returns the display name for the given currency in the + * given locale. For example, the display name for the USD + * currency object in the en_US locale is "$". + * @param currency null-terminated 3-letter ISO 4217 code + * @param locale locale in which to display currency + * @param nameStyle selector for which kind of name to return + * @param isChoiceFormat fill-in set to TRUE if the returned value + * is a ChoiceFormat pattern; otherwise it is a static string + * @param len fill-in parameter to receive length of result + * @param ec error code + * @return pointer to display string of 'len' UChars. If the resource + * data contains no entry for 'currency', then 'currency' itself is + * returned. If *isChoiceFormat is TRUE, then the result is a + * ChoiceFormat pattern. Otherwise it is a static string. + * @stable ICU 2.6 + */ +U_STABLE const UChar* U_EXPORT2 +ucurr_getName(const UChar* currency, + const char* locale, + UCurrNameStyle nameStyle, + UBool* isChoiceFormat, + int32_t* len, + UErrorCode* ec); + +/** + * Returns the plural name for the given currency in the + * given locale. For example, the plural name for the USD + * currency object in the en_US locale is "US dollar" or "US dollars". + * @param currency null-terminated 3-letter ISO 4217 code + * @param locale locale in which to display currency + * @param isChoiceFormat fill-in set to TRUE if the returned value + * is a ChoiceFormat pattern; otherwise it is a static string + * @param pluralCount plural count + * @param len fill-in parameter to receive length of result + * @param ec error code + * @return pointer to display string of 'len' UChars. If the resource + * data contains no entry for 'currency', then 'currency' itself is + * returned. + * @stable ICU 4.2 + */ +U_STABLE const UChar* U_EXPORT2 +ucurr_getPluralName(const UChar* currency, + const char* locale, + UBool* isChoiceFormat, + const char* pluralCount, + int32_t* len, + UErrorCode* ec); + +/** + * Returns the number of the number of fraction digits that should + * be displayed for the given currency. + * This is equivalent to ucurr_getDefaultFractionDigitsForUsage(currency,UCURR_USAGE_STANDARD,ec); + * @param currency null-terminated 3-letter ISO 4217 code + * @param ec input-output error code + * @return a non-negative number of fraction digits to be + * displayed, or 0 if there is an error + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +ucurr_getDefaultFractionDigits(const UChar* currency, + UErrorCode* ec); + +/** + * Returns the number of the number of fraction digits that should + * be displayed for the given currency with usage. + * @param currency null-terminated 3-letter ISO 4217 code + * @param usage enum usage for the currency + * @param ec input-output error code + * @return a non-negative number of fraction digits to be + * displayed, or 0 if there is an error + * @stable ICU 54 + */ +U_STABLE int32_t U_EXPORT2 +ucurr_getDefaultFractionDigitsForUsage(const UChar* currency, + const UCurrencyUsage usage, + UErrorCode* ec); + +/** + * Returns the rounding increment for the given currency, or 0.0 if no + * rounding is done by the currency. + * This is equivalent to ucurr_getRoundingIncrementForUsage(currency,UCURR_USAGE_STANDARD,ec); + * @param currency null-terminated 3-letter ISO 4217 code + * @param ec input-output error code + * @return the non-negative rounding increment, or 0.0 if none, + * or 0.0 if there is an error + * @stable ICU 3.0 + */ +U_STABLE double U_EXPORT2 +ucurr_getRoundingIncrement(const UChar* currency, + UErrorCode* ec); + +/** + * Returns the rounding increment for the given currency, or 0.0 if no + * rounding is done by the currency given usage. + * @param currency null-terminated 3-letter ISO 4217 code + * @param usage enum usage for the currency + * @param ec input-output error code + * @return the non-negative rounding increment, or 0.0 if none, + * or 0.0 if there is an error + * @stable ICU 54 + */ +U_STABLE double U_EXPORT2 +ucurr_getRoundingIncrementForUsage(const UChar* currency, + const UCurrencyUsage usage, + UErrorCode* ec); + +/** + * Selector constants for ucurr_openCurrencies(). + * + * @see ucurr_openCurrencies + * @stable ICU 3.2 + */ +typedef enum UCurrCurrencyType { + /** + * Select all ISO-4217 currency codes. + * @stable ICU 3.2 + */ + UCURR_ALL = INT32_MAX, + /** + * Select only ISO-4217 commonly used currency codes. + * These currencies can be found in common use, and they usually have + * bank notes or coins associated with the currency code. + * This does not include fund codes, precious metals and other + * various ISO-4217 codes limited to special financial products. + * @stable ICU 3.2 + */ + UCURR_COMMON = 1, + /** + * Select ISO-4217 uncommon currency codes. + * These codes respresent fund codes, precious metals and other + * various ISO-4217 codes limited to special financial products. + * A fund code is a monetary resource associated with a currency. + * @stable ICU 3.2 + */ + UCURR_UNCOMMON = 2, + /** + * Select only deprecated ISO-4217 codes. + * These codes are no longer in general public use. + * @stable ICU 3.2 + */ + UCURR_DEPRECATED = 4, + /** + * Select only non-deprecated ISO-4217 codes. + * These codes are in general public use. + * @stable ICU 3.2 + */ + UCURR_NON_DEPRECATED = 8 +} UCurrCurrencyType; + +/** + * Provides a UEnumeration object for listing ISO-4217 codes. + * @param currType You can use one of several UCurrCurrencyType values for this + * variable. You can also | (or) them together to get a specific list of + * currencies. Most people will want to use the (UCURR_CURRENCY|UCURR_NON_DEPRECATED) value to + * get a list of current currencies. + * @param pErrorCode Error code + * @stable ICU 3.2 + */ +U_STABLE UEnumeration * U_EXPORT2 +ucurr_openISOCurrencies(uint32_t currType, UErrorCode *pErrorCode); + +/** + * Queries if the given ISO 4217 3-letter code is available on the specified date range. + * + * Note: For checking availability of a currency on a specific date, specify the date on both 'from' and 'to' + * + * When 'from' is U_DATE_MIN and 'to' is U_DATE_MAX, this method checks if the specified currency is available any time. + * If 'from' and 'to' are same UDate value, this method checks if the specified currency is available on that date. + * + * @param isoCode + * The ISO 4217 3-letter code. + * + * @param from + * The lower bound of the date range, inclusive. When 'from' is U_DATE_MIN, check the availability + * of the currency any date before 'to' + * + * @param to + * The upper bound of the date range, inclusive. When 'to' is U_DATE_MAX, check the availability of + * the currency any date after 'from' + * + * @param errorCode + * ICU error code + * + * @return TRUE if the given ISO 4217 3-letter code is supported on the specified date range. + * + * @stable ICU 4.8 + */ +U_STABLE UBool U_EXPORT2 +ucurr_isAvailable(const UChar* isoCode, + UDate from, + UDate to, + UErrorCode* errorCode); + +/** + * Finds the number of valid currency codes for the + * given locale and date. + * @param locale the locale for which to retrieve the + * currency count. + * @param date the date for which to retrieve the + * currency count for the given locale. + * @param ec error code + * @return the number of currency codes for the + * given locale and date. If 0, currency + * codes couldn't be found for the input + * values are invalid. + * @stable ICU 4.0 + */ +U_STABLE int32_t U_EXPORT2 +ucurr_countCurrencies(const char* locale, + UDate date, + UErrorCode* ec); + +/** + * Finds a currency code for the given locale and date + * @param locale the locale for which to retrieve a currency code. + * Currency can be specified by the "currency" keyword + * in which case it overrides the default currency code + * @param date the date for which to retrieve a currency code for + * the given locale. + * @param index the index within the available list of currency codes + * for the given locale on the given date. + * @param buff fill in buffer. Can be NULL for preflighting. + * @param buffCapacity capacity of the fill in buffer. Can be 0 for + * preflighting. If it is non-zero, the buff parameter + * must not be NULL. + * @param ec error code + * @return length of the currency string. It should always be 3. + * If 0, currency couldn't be found or the input values are + * invalid. + * @stable ICU 4.0 + */ +U_STABLE int32_t U_EXPORT2 +ucurr_forLocaleAndDate(const char* locale, + UDate date, + int32_t index, + UChar* buff, + int32_t buffCapacity, + UErrorCode* ec); + +/** + * Given a key and a locale, returns an array of string values in a preferred + * order that would make a difference. These are all and only those values where + * the open (creation) of the service with the locale formed from the input locale + * plus input keyword and that value has different behavior than creation with the + * input locale alone. + * @param key one of the keys supported by this service. For now, only + * "currency" is supported. + * @param locale the locale + * @param commonlyUsed if set to true it will return only commonly used values + * with the given locale in preferred order. Otherwise, + * it will return all the available values for the locale. + * @param status error status + * @return a string enumeration over keyword values for the given key and the locale. + * @stable ICU 4.2 + */ +U_STABLE UEnumeration* U_EXPORT2 +ucurr_getKeywordValuesForLocale(const char* key, + const char* locale, + UBool commonlyUsed, + UErrorCode* status); + +/** + * Returns the ISO 4217 numeric code for the currency. + *

Note: If the ISO 4217 numeric code is not assigned for the currency or + * the currency is unknown, this function returns 0. + * + * @param currency null-terminated 3-letter ISO 4217 code + * @return The ISO 4217 numeric code of the currency + * @stable ICU 49 + */ +U_STABLE int32_t U_EXPORT2 +ucurr_getNumericCode(const UChar* currency); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// ucnv_err.h +/* +********************************************************************** +* Copyright (C) 1999-2009, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** + * + * + * ucnv_err.h: + */ + +/** + * \file + * \brief C UConverter predefined error callbacks + * + *

Error Behaviour Functions

+ * Defines some error behaviour functions called by ucnv_{from,to}Unicode + * These are provided as part of ICU and many are stable, but they + * can also be considered only as an example of what can be done with + * callbacks. You may of course write your own. + * + * If you want to write your own, you may also find the functions from + * ucnv_cb.h useful when writing your own callbacks. + * + * These functions, although public, should NEVER be called directly. + * They should be used as parameters to the ucnv_setFromUCallback + * and ucnv_setToUCallback functions, to set the behaviour of a converter + * when it encounters ILLEGAL/UNMAPPED/INVALID sequences. + * + * usage example: 'STOP' doesn't need any context, but newContext + * could be set to something other than 'NULL' if needed. The available + * contexts in this header can modify the default behavior of the callback. + * + * \code + * UErrorCode err = U_ZERO_ERROR; + * UConverter *myConverter = ucnv_open("ibm-949", &err); + * const void *oldContext; + * UConverterFromUCallback oldAction; + * + * + * if (U_SUCCESS(err)) + * { + * ucnv_setFromUCallBack(myConverter, + * UCNV_FROM_U_CALLBACK_STOP, + * NULL, + * &oldAction, + * &oldContext, + * &status); + * } + * \endcode + * + * The code above tells "myConverter" to stop when it encounters an + * ILLEGAL/TRUNCATED/INVALID sequences when it is used to convert from + * Unicode -> Codepage. The behavior from Codepage to Unicode is not changed, + * and ucnv_setToUCallBack would need to be called in order to change + * that behavior too. + * + * Here is an example with a context: + * + * \code + * UErrorCode err = U_ZERO_ERROR; + * UConverter *myConverter = ucnv_open("ibm-949", &err); + * const void *oldContext; + * UConverterFromUCallback oldAction; + * + * + * if (U_SUCCESS(err)) + * { + * ucnv_setToUCallBack(myConverter, + * UCNV_TO_U_CALLBACK_SUBSTITUTE, + * UCNV_SUB_STOP_ON_ILLEGAL, + * &oldAction, + * &oldContext, + * &status); + * } + * \endcode + * + * The code above tells "myConverter" to stop when it encounters an + * ILLEGAL/TRUNCATED/INVALID sequences when it is used to convert from + * Codepage -> Unicode. Any unmapped and legal characters will be + * substituted to be the default substitution character. + */ + +#ifndef UCNV_ERR_H +#define UCNV_ERR_H + + +#if !UCONFIG_NO_CONVERSION + +/** Forward declaring the UConverter structure. @stable ICU 2.0 */ +struct UConverter; + +/** @stable ICU 2.0 */ +typedef struct UConverter UConverter; + +/** + * FROM_U, TO_U context options for sub callback + * @stable ICU 2.0 + */ +#define UCNV_SUB_STOP_ON_ILLEGAL "i" + +/** + * FROM_U, TO_U context options for skip callback + * @stable ICU 2.0 + */ +#define UCNV_SKIP_STOP_ON_ILLEGAL "i" + +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to ICU (%UXXXX) + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_ICU NULL +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to JAVA (\\uXXXX) + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_JAVA "J" +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to C (\\uXXXX \\UXXXXXXXX) + * TO_U_CALLBACK_ESCAPE option to escape the character value accoding to C (\\xXXXX) + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_C "C" +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to XML Decimal escape \htmlonly(&#DDDD;)\endhtmlonly + * TO_U_CALLBACK_ESCAPE context option to escape the character value accoding to XML Decimal escape \htmlonly(&#DDDD;)\endhtmlonly + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_XML_DEC "D" +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to XML Hex escape \htmlonly(&#xXXXX;)\endhtmlonly + * TO_U_CALLBACK_ESCAPE context option to escape the character value accoding to XML Hex escape \htmlonly(&#xXXXX;)\endhtmlonly + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_XML_HEX "X" +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to Unicode (U+XXXXX) + * @stable ICU 2.0 + */ +#define UCNV_ESCAPE_UNICODE "U" + +/** + * FROM_U_CALLBACK_ESCAPE context option to escape the code unit according to CSS2 conventions (\\HH..H, that is, + * a backslash, 1..6 hex digits, and a space) + * @stable ICU 4.0 + */ +#define UCNV_ESCAPE_CSS2 "S" + +/** + * The process condition code to be used with the callbacks. + * Codes which are greater than UCNV_IRREGULAR should be + * passed on to any chained callbacks. + * @stable ICU 2.0 + */ +typedef enum { + UCNV_UNASSIGNED = 0, /**< The code point is unassigned. + The error code U_INVALID_CHAR_FOUND will be set. */ + UCNV_ILLEGAL = 1, /**< The code point is illegal. For example, + \\x81\\x2E is illegal in SJIS because \\x2E + is not a valid trail byte for the \\x81 + lead byte. + Also, starting with Unicode 3.0.1, non-shortest byte sequences + in UTF-8 (like \\xC1\\xA1 instead of \\x61 for U+0061) + are also illegal, not just irregular. + The error code U_ILLEGAL_CHAR_FOUND will be set. */ + UCNV_IRREGULAR = 2, /**< The codepoint is not a regular sequence in + the encoding. For example, \\xED\\xA0\\x80..\\xED\\xBF\\xBF + are irregular UTF-8 byte sequences for single surrogate + code points. + The error code U_INVALID_CHAR_FOUND will be set. */ + UCNV_RESET = 3, /**< The callback is called with this reason when a + 'reset' has occured. Callback should reset all + state. */ + UCNV_CLOSE = 4, /**< Called when the converter is closed. The + callback should release any allocated memory.*/ + UCNV_CLONE = 5 /**< Called when ucnv_safeClone() is called on the + converter. the pointer available as the + 'context' is an alias to the original converters' + context pointer. If the context must be owned + by the new converter, the callback must clone + the data and call ucnv_setFromUCallback + (or setToUCallback) with the correct pointer. + @stable ICU 2.2 + */ +} UConverterCallbackReason; + + +/** + * The structure for the fromUnicode callback function parameter. + * @stable ICU 2.0 + */ +typedef struct { + uint16_t size; /**< The size of this struct. @stable ICU 2.0 */ + UBool flush; /**< The internal state of converter will be reset and data flushed if set to TRUE. @stable ICU 2.0 */ + UConverter *converter; /**< Pointer to the converter that is opened and to which this struct is passed as an argument. @stable ICU 2.0 */ + const UChar *source; /**< Pointer to the source source buffer. @stable ICU 2.0 */ + const UChar *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 */ + char *target; /**< Pointer to the target buffer. @stable ICU 2.0 */ + const char *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 */ + int32_t *offsets; /**< Pointer to the buffer that recieves the offsets. *offset = blah ; offset++;. @stable ICU 2.0 */ +} UConverterFromUnicodeArgs; + + +/** + * The structure for the toUnicode callback function parameter. + * @stable ICU 2.0 + */ +typedef struct { + uint16_t size; /**< The size of this struct @stable ICU 2.0 */ + UBool flush; /**< The internal state of converter will be reset and data flushed if set to TRUE. @stable ICU 2.0 */ + UConverter *converter; /**< Pointer to the converter that is opened and to which this struct is passed as an argument. @stable ICU 2.0 */ + const char *source; /**< Pointer to the source source buffer. @stable ICU 2.0 */ + const char *sourceLimit; /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0 */ + UChar *target; /**< Pointer to the target buffer. @stable ICU 2.0 */ + const UChar *targetLimit; /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0 */ + int32_t *offsets; /**< Pointer to the buffer that recieves the offsets. *offset = blah ; offset++;. @stable ICU 2.0 */ +} UConverterToUnicodeArgs; + + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This From Unicode callback STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * + * @param context Pointer to the callback's private data + * @param fromUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' UChars of the concerned Unicode sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint. + * @param reason Defines the reason the callback was invoked + * @param err This should always be set to a failure status prior to calling. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 UCNV_FROM_U_CALLBACK_STOP ( + const void *context, + UConverterFromUnicodeArgs *fromUArgs, + const UChar* codeUnits, + int32_t length, + UChar32 codePoint, + UConverterCallbackReason reason, + UErrorCode * err); + + + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This To Unicode callback STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * + * @param context Pointer to the callback's private data + * @param toUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' bytes of the concerned codepage sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param reason Defines the reason the callback was invoked + * @param err This should always be set to a failure status prior to calling. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP ( + const void *context, + UConverterToUnicodeArgs *toUArgs, + const char* codeUnits, + int32_t length, + UConverterCallbackReason reason, + UErrorCode * err); + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This From Unicode callback skips any ILLEGAL_SEQUENCE, or + * skips only UNASSINGED_SEQUENCE depending on the context parameter + * simply ignoring those characters. + * + * @param context The function currently recognizes the callback options: + * UCNV_SKIP_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * NULL: Skips any ILLEGAL_SEQUENCE + * @param fromUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' UChars of the concerned Unicode sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint. + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 UCNV_FROM_U_CALLBACK_SKIP ( + const void *context, + UConverterFromUnicodeArgs *fromUArgs, + const UChar* codeUnits, + int32_t length, + UChar32 codePoint, + UConverterCallbackReason reason, + UErrorCode * err); + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This From Unicode callback will Substitute the ILLEGAL SEQUENCE, or + * UNASSIGNED_SEQUENCE depending on context parameter, with the + * current substitution string for the converter. This is the default + * callback. + * + * @param context The function currently recognizes the callback options: + * UCNV_SUB_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * NULL: Substitutes any ILLEGAL_SEQUENCE + * @param fromUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' UChars of the concerned Unicode sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint. + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @see ucnv_setSubstChars + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 UCNV_FROM_U_CALLBACK_SUBSTITUTE ( + const void *context, + UConverterFromUnicodeArgs *fromUArgs, + const UChar* codeUnits, + int32_t length, + UChar32 codePoint, + UConverterCallbackReason reason, + UErrorCode * err); + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This From Unicode callback will Substitute the ILLEGAL SEQUENCE with the + * hexadecimal representation of the illegal codepoints + * + * @param context The function currently recognizes the callback options: + *
    + *
  • UCNV_ESCAPE_ICU: Substitues the ILLEGAL SEQUENCE with the hexadecimal + * representation in the format %UXXXX, e.g. "%uFFFE%u00AC%uC8FE"). + * In the Event the converter doesn't support the characters {%,U}[A-F][0-9], + * it will substitute the illegal sequence with the substitution characters. + * Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as + * %UD84D%UDC56
  • + *
  • UCNV_ESCAPE_JAVA: Substitues the ILLEGAL SEQUENCE with the hexadecimal + * representation in the format \\uXXXX, e.g. "\\uFFFE\\u00AC\\uC8FE"). + * In the Event the converter doesn't support the characters {\,u}[A-F][0-9], + * it will substitute the illegal sequence with the substitution characters. + * Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as + * \\uD84D\\uDC56
  • + *
  • UCNV_ESCAPE_C: Substitues the ILLEGAL SEQUENCE with the hexadecimal + * representation in the format \\uXXXX, e.g. "\\uFFFE\\u00AC\\uC8FE"). + * In the Event the converter doesn't support the characters {\,u,U}[A-F][0-9], + * it will substitute the illegal sequence with the substitution characters. + * Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as + * \\U00023456
  • + *
  • UCNV_ESCAPE_XML_DEC: Substitues the ILLEGAL SEQUENCE with the decimal + * representation in the format \htmlonly&#DDDDDDDD;, e.g. "&#65534;&#172;&#51454;")\endhtmlonly. + * In the Event the converter doesn't support the characters {&,#}[0-9], + * it will substitute the illegal sequence with the substitution characters. + * Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as + * &#144470; and Zero padding is ignored.
  • + *
  • UCNV_ESCAPE_XML_HEX:Substitues the ILLEGAL SEQUENCE with the decimal + * representation in the format \htmlonly&#xXXXX; e.g. "&#xFFFE;&#x00AC;&#xC8FE;")\endhtmlonly. + * In the Event the converter doesn't support the characters {&,#,x}[0-9], + * it will substitute the illegal sequence with the substitution characters. + * Note that codeUnit(32bit int eg: unit of a surrogate pair) is represented as + * \htmlonly&#x23456;\endhtmlonly
  • + *
+ * @param fromUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' UChars of the concerned Unicode sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint. + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 UCNV_FROM_U_CALLBACK_ESCAPE ( + const void *context, + UConverterFromUnicodeArgs *fromUArgs, + const UChar* codeUnits, + int32_t length, + UChar32 codePoint, + UConverterCallbackReason reason, + UErrorCode * err); + + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This To Unicode callback skips any ILLEGAL_SEQUENCE, or + * skips only UNASSINGED_SEQUENCE depending on the context parameter + * simply ignoring those characters. + * + * @param context The function currently recognizes the callback options: + * UCNV_SKIP_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * NULL: Skips any ILLEGAL_SEQUENCE + * @param toUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' bytes of the concerned codepage sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_SKIP ( + const void *context, + UConverterToUnicodeArgs *toUArgs, + const char* codeUnits, + int32_t length, + UConverterCallbackReason reason, + UErrorCode * err); + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This To Unicode callback will Substitute the ILLEGAL SEQUENCE,or + * UNASSIGNED_SEQUENCE depending on context parameter, with the + * Unicode substitution character, U+FFFD. + * + * @param context The function currently recognizes the callback options: + * UCNV_SUB_STOP_ON_ILLEGAL: STOPS at the ILLEGAL_SEQUENCE, + * returning the error code back to the caller immediately. + * NULL: Substitutes any ILLEGAL_SEQUENCE + * @param toUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' bytes of the concerned codepage sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_SUBSTITUTE ( + const void *context, + UConverterToUnicodeArgs *toUArgs, + const char* codeUnits, + int32_t length, + UConverterCallbackReason reason, + UErrorCode * err); + +/** + * DO NOT CALL THIS FUNCTION DIRECTLY! + * This To Unicode callback will Substitute the ILLEGAL SEQUENCE with the + * hexadecimal representation of the illegal bytes + * (in the format %XNN, e.g. "%XFF%X0A%XC8%X03"). + * + * @param context This function currently recognizes the callback options: + * UCNV_ESCAPE_ICU, UCNV_ESCAPE_JAVA, UCNV_ESCAPE_C, UCNV_ESCAPE_XML_DEC, + * UCNV_ESCAPE_XML_HEX and UCNV_ESCAPE_UNICODE. + * @param toUArgs Information about the conversion in progress + * @param codeUnits Points to 'length' bytes of the concerned codepage sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param reason Defines the reason the callback was invoked + * @param err Return value will be set to success if the callback was handled, + * otherwise this value will be set to a failure status. + * @stable ICU 2.0 + */ + +U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_ESCAPE ( + const void *context, + UConverterToUnicodeArgs *toUArgs, + const char* codeUnits, + int32_t length, + UConverterCallbackReason reason, + UErrorCode * err); + +#endif + +#endif + +/*UCNV_ERR_H*/ + +// ucnv.h +/* +********************************************************************** +* Copyright (C) 1999-2014, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** + * ucnv.h: + * External APIs for the ICU's codeset conversion library + * Bertrand A. Damiba + * + * Modification History: + * + * Date Name Description + * 04/04/99 helena Fixed internal header inclusion. + * 05/11/00 helena Added setFallback and usesFallback APIs. + * 06/29/2000 helena Major rewrite of the callback APIs. + * 12/07/2000 srl Update of documentation + */ + +/** + * \file + * \brief C API: Character conversion + * + *

Character Conversion C API

+ * + *

This API is used to convert codepage or character encoded data to and + * from UTF-16. You can open a converter with {@link ucnv_open() }. With that + * converter, you can get its properties, set options, convert your data and + * close the converter.

+ * + *

Since many software programs recogize different converter names for + * different types of converters, there are other functions in this API to + * iterate over the converter aliases. The functions {@link ucnv_getAvailableName() }, + * {@link ucnv_getAlias() } and {@link ucnv_getStandardName() } are some of the + * more frequently used alias functions to get this information.

+ * + *

When a converter encounters an illegal, irregular, invalid or unmappable character + * its default behavior is to use a substitution character to replace the + * bad byte sequence. This behavior can be changed by using {@link ucnv_setFromUCallBack() } + * or {@link ucnv_setToUCallBack() } on the converter. The header ucnv_err.h defines + * many other callback actions that can be used instead of a character substitution.

+ * + *

More information about this API can be found in our + * User's + * Guide.

+ */ + +#ifndef UCNV_H +#define UCNV_H + + +#ifndef __USET_H__ + +/** + * USet is the C API type for Unicode sets. + * It is forward-declared here to avoid including the header file if related + * conversion APIs are not used. + * See unicode/uset.h + * + * @see ucnv_getUnicodeSet + * @stable ICU 2.6 + */ +struct USet; +/** @stable ICU 2.6 */ +typedef struct USet USet; + +#endif + +#if !UCONFIG_NO_CONVERSION + +U_CDECL_BEGIN + +/** Maximum length of a converter name including the terminating NULL @stable ICU 2.0 */ +#define UCNV_MAX_CONVERTER_NAME_LENGTH 60 +/** Maximum length of a converter name including path and terminating NULL @stable ICU 2.0 */ +#define UCNV_MAX_FULL_FILE_NAME_LENGTH (600+UCNV_MAX_CONVERTER_NAME_LENGTH) + +/** Shift in for EBDCDIC_STATEFUL and iso2022 states @stable ICU 2.0 */ +#define UCNV_SI 0x0F +/** Shift out for EBDCDIC_STATEFUL and iso2022 states @stable ICU 2.0 */ +#define UCNV_SO 0x0E + +/** + * Enum for specifying basic types of converters + * @see ucnv_getType + * @stable ICU 2.0 + */ +typedef enum { + /** @stable ICU 2.0 */ + UCNV_UNSUPPORTED_CONVERTER = -1, + /** @stable ICU 2.0 */ + UCNV_SBCS = 0, + /** @stable ICU 2.0 */ + UCNV_DBCS = 1, + /** @stable ICU 2.0 */ + UCNV_MBCS = 2, + /** @stable ICU 2.0 */ + UCNV_LATIN_1 = 3, + /** @stable ICU 2.0 */ + UCNV_UTF8 = 4, + /** @stable ICU 2.0 */ + UCNV_UTF16_BigEndian = 5, + /** @stable ICU 2.0 */ + UCNV_UTF16_LittleEndian = 6, + /** @stable ICU 2.0 */ + UCNV_UTF32_BigEndian = 7, + /** @stable ICU 2.0 */ + UCNV_UTF32_LittleEndian = 8, + /** @stable ICU 2.0 */ + UCNV_EBCDIC_STATEFUL = 9, + /** @stable ICU 2.0 */ + UCNV_ISO_2022 = 10, + + /** @stable ICU 2.0 */ + UCNV_LMBCS_1 = 11, + /** @stable ICU 2.0 */ + UCNV_LMBCS_2, + /** @stable ICU 2.0 */ + UCNV_LMBCS_3, + /** @stable ICU 2.0 */ + UCNV_LMBCS_4, + /** @stable ICU 2.0 */ + UCNV_LMBCS_5, + /** @stable ICU 2.0 */ + UCNV_LMBCS_6, + /** @stable ICU 2.0 */ + UCNV_LMBCS_8, + /** @stable ICU 2.0 */ + UCNV_LMBCS_11, + /** @stable ICU 2.0 */ + UCNV_LMBCS_16, + /** @stable ICU 2.0 */ + UCNV_LMBCS_17, + /** @stable ICU 2.0 */ + UCNV_LMBCS_18, + /** @stable ICU 2.0 */ + UCNV_LMBCS_19, + /** @stable ICU 2.0 */ + UCNV_LMBCS_LAST = UCNV_LMBCS_19, + /** @stable ICU 2.0 */ + UCNV_HZ, + /** @stable ICU 2.0 */ + UCNV_SCSU, + /** @stable ICU 2.0 */ + UCNV_ISCII, + /** @stable ICU 2.0 */ + UCNV_US_ASCII, + /** @stable ICU 2.0 */ + UCNV_UTF7, + /** @stable ICU 2.2 */ + UCNV_BOCU1, + /** @stable ICU 2.2 */ + UCNV_UTF16, + /** @stable ICU 2.2 */ + UCNV_UTF32, + /** @stable ICU 2.2 */ + UCNV_CESU8, + /** @stable ICU 2.4 */ + UCNV_IMAP_MAILBOX, + /** @stable ICU 4.8 */ + UCNV_COMPOUND_TEXT, + + /* Number of converter types for which we have conversion routines. */ + UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES +} UConverterType; + +/** + * Enum for specifying which platform a converter ID refers to. + * The use of platform/CCSID is not recommended. See ucnv_openCCSID(). + * + * @see ucnv_getPlatform + * @see ucnv_openCCSID + * @see ucnv_getCCSID + * @stable ICU 2.0 + */ +typedef enum { + UCNV_UNKNOWN = -1, + UCNV_IBM = 0 +} UConverterPlatform; + +/** + * Function pointer for error callback in the codepage to unicode direction. + * Called when an error has occured in conversion to unicode, or on open/close of the callback (see reason). + * @param context Pointer to the callback's private data + * @param args Information about the conversion in progress + * @param codeUnits Points to 'length' bytes of the concerned codepage sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param reason Defines the reason the callback was invoked + * @param pErrorCode ICU error code in/out parameter. + * For converter callback functions, set to a conversion error + * before the call, and the callback may reset it to U_ZERO_ERROR. + * @see ucnv_setToUCallBack + * @see UConverterToUnicodeArgs + * @stable ICU 2.0 + */ +typedef void (U_EXPORT2 *UConverterToUCallback) ( + const void* context, + UConverterToUnicodeArgs *args, + const char *codeUnits, + int32_t length, + UConverterCallbackReason reason, + UErrorCode *pErrorCode); + +/** + * Function pointer for error callback in the unicode to codepage direction. + * Called when an error has occured in conversion from unicode, or on open/close of the callback (see reason). + * @param context Pointer to the callback's private data + * @param args Information about the conversion in progress + * @param codeUnits Points to 'length' UChars of the concerned Unicode sequence + * @param length Size (in bytes) of the concerned codepage sequence + * @param codePoint Single UChar32 (UTF-32) containing the concerend Unicode codepoint. + * @param reason Defines the reason the callback was invoked + * @param pErrorCode ICU error code in/out parameter. + * For converter callback functions, set to a conversion error + * before the call, and the callback may reset it to U_ZERO_ERROR. + * @see ucnv_setFromUCallBack + * @stable ICU 2.0 + */ +typedef void (U_EXPORT2 *UConverterFromUCallback) ( + const void* context, + UConverterFromUnicodeArgs *args, + const UChar* codeUnits, + int32_t length, + UChar32 codePoint, + UConverterCallbackReason reason, + UErrorCode *pErrorCode); + +U_CDECL_END + +/** + * Character that separates converter names from options and options from each other. + * @see ucnv_open + * @stable ICU 2.0 + */ +#define UCNV_OPTION_SEP_CHAR ',' + +/** + * String version of UCNV_OPTION_SEP_CHAR. + * @see ucnv_open + * @stable ICU 2.0 + */ +#define UCNV_OPTION_SEP_STRING "," + +/** + * Character that separates a converter option from its value. + * @see ucnv_open + * @stable ICU 2.0 + */ +#define UCNV_VALUE_SEP_CHAR '=' + +/** + * String version of UCNV_VALUE_SEP_CHAR. + * @see ucnv_open + * @stable ICU 2.0 + */ +#define UCNV_VALUE_SEP_STRING "=" + +/** + * Converter option for specifying a locale. + * For example, ucnv_open("SCSU,locale=ja", &errorCode); + * See convrtrs.txt. + * + * @see ucnv_open + * @stable ICU 2.0 + */ +#define UCNV_LOCALE_OPTION_STRING ",locale=" + +/** + * Converter option for specifying a version selector (0..9) for some converters. + * For example, + * \code + * ucnv_open("UTF-7,version=1", &errorCode); + * \endcode + * See convrtrs.txt. + * + * @see ucnv_open + * @stable ICU 2.4 + */ +#define UCNV_VERSION_OPTION_STRING ",version=" + +/** + * Converter option for EBCDIC SBCS or mixed-SBCS/DBCS (stateful) codepages. + * Swaps Unicode mappings for EBCDIC LF and NL codes, as used on + * S/390 (z/OS) Unix System Services (Open Edition). + * For example, ucnv_open("ibm-1047,swaplfnl", &errorCode); + * See convrtrs.txt. + * + * @see ucnv_open + * @stable ICU 2.4 + */ +#define UCNV_SWAP_LFNL_OPTION_STRING ",swaplfnl" + +/** + * Do a fuzzy compare of two converter/alias names. + * The comparison is case-insensitive, ignores leading zeroes if they are not + * followed by further digits, and ignores all but letters and digits. + * Thus the strings "UTF-8", "utf_8", "u*T@f08" and "Utf 8" are exactly equivalent. + * See section 1.4, Charset Alias Matching in Unicode Technical Standard #22 + * at http://www.unicode.org/reports/tr22/ + * + * @param name1 a converter name or alias, zero-terminated + * @param name2 a converter name or alias, zero-terminated + * @return 0 if the names match, or a negative value if the name1 + * lexically precedes name2, or a positive value if the name1 + * lexically follows name2. + * @stable ICU 2.0 + */ +U_STABLE int U_EXPORT2 +ucnv_compareNames(const char *name1, const char *name2); + + +/** + * Creates a UConverter object with the name of a coded character set specified as a C string. + * The actual name will be resolved with the alias file + * using a case-insensitive string comparison that ignores + * leading zeroes and all non-alphanumeric characters. + * E.g., the names "UTF8", "utf-8", "u*T@f08" and "Utf 8" are all equivalent. + * (See also ucnv_compareNames().) + * If NULL is passed for the converter name, it will create one with the + * getDefaultName return value. + * + *

A converter name for ICU 1.5 and above may contain options + * like a locale specification to control the specific behavior of + * the newly instantiated converter. + * The meaning of the options depends on the particular converter. + * If an option is not defined for or recognized by a given converter, then it is ignored.

+ * + *

Options are appended to the converter name string, with a + * UCNV_OPTION_SEP_CHAR between the name and the first option and + * also between adjacent options.

+ * + *

If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING.

+ * + *

The conversion behavior and names can vary between platforms. ICU may + * convert some characters differently from other platforms. Details on this topic + * are in the User's + * Guide. Aliases starting with a "cp" prefix have no specific meaning + * other than its an alias starting with the letters "cp". Please do not + * associate any meaning to these aliases.

+ * + * \snippet samples/ucnv/convsamp.cpp ucnv_open + * + * @param converterName Name of the coded character set table. + * This may have options appended to the string. + * IANA alias character set names, IBM CCSIDs starting with "ibm-", + * Windows codepage numbers starting with "windows-" are frequently + * used for this parameter. See ucnv_getAvailableName and + * ucnv_getAlias for a complete list that is available. + * If this parameter is NULL, the default converter will be used. + * @param err outgoing error status U_MEMORY_ALLOCATION_ERROR, U_FILE_ACCESS_ERROR + * @return the created Unicode converter object, or NULL if an error occured + * @see ucnv_openU + * @see ucnv_openCCSID + * @see ucnv_getAvailableName + * @see ucnv_getAlias + * @see ucnv_getDefaultName + * @see ucnv_close + * @see ucnv_compareNames + * @stable ICU 2.0 + */ +U_STABLE UConverter* U_EXPORT2 +ucnv_open(const char *converterName, UErrorCode *err); + + +/** + * Creates a Unicode converter with the names specified as unicode string. + * The name should be limited to the ASCII-7 alphanumerics range. + * The actual name will be resolved with the alias file + * using a case-insensitive string comparison that ignores + * leading zeroes and all non-alphanumeric characters. + * E.g., the names "UTF8", "utf-8", "u*T@f08" and "Utf 8" are all equivalent. + * (See also ucnv_compareNames().) + * If NULL is passed for the converter name, it will create + * one with the ucnv_getDefaultName() return value. + * If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING. + * + *

See ucnv_open for the complete details

+ * @param name Name of the UConverter table in a zero terminated + * Unicode string + * @param err outgoing error status U_MEMORY_ALLOCATION_ERROR, + * U_FILE_ACCESS_ERROR + * @return the created Unicode converter object, or NULL if an + * error occured + * @see ucnv_open + * @see ucnv_openCCSID + * @see ucnv_close + * @see ucnv_compareNames + * @stable ICU 2.0 + */ +U_STABLE UConverter* U_EXPORT2 +ucnv_openU(const UChar *name, + UErrorCode *err); + +/** + * Creates a UConverter object from a CCSID number and platform pair. + * Note that the usefulness of this function is limited to platforms with numeric + * encoding IDs. Only IBM and Microsoft platforms use numeric (16-bit) identifiers for + * encodings. + * + * In addition, IBM CCSIDs and Unicode conversion tables are not 1:1 related. + * For many IBM CCSIDs there are multiple (up to six) Unicode conversion tables, and + * for some Unicode conversion tables there are multiple CCSIDs. + * Some "alternate" Unicode conversion tables are provided by the + * IBM CDRA conversion table registry. + * The most prominent example of a systematic modification of conversion tables that is + * not provided in the form of conversion table files in the repository is + * that S/390 Unix System Services swaps the codes for Line Feed and New Line in all + * EBCDIC codepages, which requires such a swap in the Unicode conversion tables as well. + * + * Only IBM default conversion tables are accessible with ucnv_openCCSID(). + * ucnv_getCCSID() will return the same CCSID for all conversion tables that are associated + * with that CCSID. + * + * Currently, the only "platform" supported in the ICU converter API is UCNV_IBM. + * + * In summary, the use of CCSIDs and the associated API functions is not recommended. + * + * In order to open a converter with the default IBM CDRA Unicode conversion table, + * you can use this function or use the prefix "ibm-": + * \code + * char name[20]; + * sprintf(name, "ibm-%hu", ccsid); + * cnv=ucnv_open(name, &errorCode); + * \endcode + * + * In order to open a converter with the IBM S/390 Unix System Services variant + * of a Unicode/EBCDIC conversion table, + * you can use the prefix "ibm-" together with the option string UCNV_SWAP_LFNL_OPTION_STRING: + * \code + * char name[20]; + * sprintf(name, "ibm-%hu" UCNV_SWAP_LFNL_OPTION_STRING, ccsid); + * cnv=ucnv_open(name, &errorCode); + * \endcode + * + * In order to open a converter from a Microsoft codepage number, use the prefix "cp": + * \code + * char name[20]; + * sprintf(name, "cp%hu", codepageID); + * cnv=ucnv_open(name, &errorCode); + * \endcode + * + * If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING. + * + * @param codepage codepage number to create + * @param platform the platform in which the codepage number exists + * @param err error status U_MEMORY_ALLOCATION_ERROR, U_FILE_ACCESS_ERROR + * @return the created Unicode converter object, or NULL if an error + * occured. + * @see ucnv_open + * @see ucnv_openU + * @see ucnv_close + * @see ucnv_getCCSID + * @see ucnv_getPlatform + * @see UConverterPlatform + * @stable ICU 2.0 + */ +U_STABLE UConverter* U_EXPORT2 +ucnv_openCCSID(int32_t codepage, + UConverterPlatform platform, + UErrorCode * err); + +/** + *

Creates a UConverter object specified from a packageName and a converterName.

+ * + *

The packageName and converterName must point to an ICU udata object, as defined by + * udata_open( packageName, "cnv", converterName, err) or equivalent. + * Typically, packageName will refer to a (.dat) file, or to a package registered with + * udata_setAppData(). Using a full file or directory pathname for packageName is deprecated.

+ * + *

The name will NOT be looked up in the alias mechanism, nor will the converter be + * stored in the converter cache or the alias table. The only way to open further converters + * is call this function multiple times, or use the ucnv_safeClone() function to clone a + * 'master' converter.

+ * + *

A future version of ICU may add alias table lookups and/or caching + * to this function.

+ * + *

Example Use: + * cnv = ucnv_openPackage("myapp", "myconverter", &err); + *

+ * + * @param packageName name of the package (equivalent to 'path' in udata_open() call) + * @param converterName name of the data item to be used, without suffix. + * @param err outgoing error status U_MEMORY_ALLOCATION_ERROR, U_FILE_ACCESS_ERROR + * @return the created Unicode converter object, or NULL if an error occured + * @see udata_open + * @see ucnv_open + * @see ucnv_safeClone + * @see ucnv_close + * @stable ICU 2.2 + */ +U_STABLE UConverter* U_EXPORT2 +ucnv_openPackage(const char *packageName, const char *converterName, UErrorCode *err); + +/** + * Thread safe converter cloning operation. + * For most efficient operation, pass in a stackBuffer (and a *pBufferSize) + * with at least U_CNV_SAFECLONE_BUFFERSIZE bytes of space. + * If the buffer size is sufficient, then the clone will use the stack buffer; + * otherwise, it will be allocated, and *pBufferSize will indicate + * the actual size. (This should not occur with U_CNV_SAFECLONE_BUFFERSIZE.) + * + * You must ucnv_close() the clone in any case. + * + * If *pBufferSize==0, (regardless of whether stackBuffer==NULL or not) + * then *pBufferSize will be changed to a sufficient size + * for cloning this converter, + * without actually cloning the converter ("pure pre-flighting"). + * + * If *pBufferSize is greater than zero but not large enough for a stack-based + * clone, then the converter is cloned using newly allocated memory + * and *pBufferSize is changed to the necessary size. + * + * If the converter clone fits into the stack buffer but the stack buffer is not + * sufficiently aligned for the clone, then the clone will use an + * adjusted pointer and use an accordingly smaller buffer size. + * + * @param cnv converter to be cloned + * @param stackBuffer Deprecated functionality as of ICU 52, use NULL.
+ * user allocated space for the new clone. If NULL new memory will be allocated. + * If buffer is not large enough, new memory will be allocated. + * Clients can use the U_CNV_SAFECLONE_BUFFERSIZE. This will probably be enough to avoid memory allocations. + * @param pBufferSize Deprecated functionality as of ICU 52, use NULL or 1.
+ * pointer to size of allocated space. + * @param status to indicate whether the operation went on smoothly or there were errors + * An informational status value, U_SAFECLONE_ALLOCATED_WARNING, + * is used if any allocations were necessary. + * However, it is better to check if *pBufferSize grew for checking for + * allocations because warning codes can be overridden by subsequent + * function calls. + * @return pointer to the new clone + * @stable ICU 2.0 + */ +U_STABLE UConverter * U_EXPORT2 +ucnv_safeClone(const UConverter *cnv, + void *stackBuffer, + int32_t *pBufferSize, + UErrorCode *status); + + +/** + * Deletes the unicode converter and releases resources associated + * with just this instance. + * Does not free up shared converter tables. + * + * @param converter the converter object to be deleted + * @see ucnv_open + * @see ucnv_openU + * @see ucnv_openCCSID + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_close(UConverter * converter); + + +/** + * Fills in the output parameter, subChars, with the substitution characters + * as multiple bytes. + * If ucnv_setSubstString() set a Unicode string because the converter is + * stateful, then subChars will be an empty string. + * + * @param converter the Unicode converter + * @param subChars the subsitution characters + * @param len on input the capacity of subChars, on output the number + * of bytes copied to it + * @param err the outgoing error status code. + * If the substitution character array is too small, an + * U_INDEX_OUTOFBOUNDS_ERROR will be returned. + * @see ucnv_setSubstString + * @see ucnv_setSubstChars + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_getSubstChars(const UConverter *converter, + char *subChars, + int8_t *len, + UErrorCode *err); + +/** + * Sets the substitution chars when converting from unicode to a codepage. The + * substitution is specified as a string of 1-4 bytes, and may contain + * NULL bytes. + * The subChars must represent a single character. The caller needs to know the + * byte sequence of a valid character in the converter's charset. + * For some converters, for example some ISO 2022 variants, only single-byte + * substitution characters may be supported. + * The newer ucnv_setSubstString() function relaxes these limitations. + * + * @param converter the Unicode converter + * @param subChars the substitution character byte sequence we want set + * @param len the number of bytes in subChars + * @param err the error status code. U_INDEX_OUTOFBOUNDS_ERROR if + * len is bigger than the maximum number of bytes allowed in subchars + * @see ucnv_setSubstString + * @see ucnv_getSubstChars + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_setSubstChars(UConverter *converter, + const char *subChars, + int8_t len, + UErrorCode *err); + +/** + * Set a substitution string for converting from Unicode to a charset. + * The caller need not know the charset byte sequence for each charset. + * + * Unlike ucnv_setSubstChars() which is designed to set a charset byte sequence + * for a single character, this function takes a Unicode string with + * zero, one or more characters, and immediately verifies that the string can be + * converted to the charset. + * If not, or if the result is too long (more than 32 bytes as of ICU 3.6), + * then the function returns with an error accordingly. + * + * Also unlike ucnv_setSubstChars(), this function works for stateful charsets + * by converting on the fly at the point of substitution rather than setting + * a fixed byte sequence. + * + * @param cnv The UConverter object. + * @param s The Unicode string. + * @param length The number of UChars in s, or -1 for a NUL-terminated string. + * @param err Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * + * @see ucnv_setSubstChars + * @see ucnv_getSubstChars + * @stable ICU 3.6 + */ +U_STABLE void U_EXPORT2 +ucnv_setSubstString(UConverter *cnv, + const UChar *s, + int32_t length, + UErrorCode *err); + +/** + * Fills in the output parameter, errBytes, with the error characters from the + * last failing conversion. + * + * @param converter the Unicode converter + * @param errBytes the codepage bytes which were in error + * @param len on input the capacity of errBytes, on output the number of + * bytes which were copied to it + * @param err the error status code. + * If the substitution character array is too small, an + * U_INDEX_OUTOFBOUNDS_ERROR will be returned. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_getInvalidChars(const UConverter *converter, + char *errBytes, + int8_t *len, + UErrorCode *err); + +/** + * Fills in the output parameter, errChars, with the error characters from the + * last failing conversion. + * + * @param converter the Unicode converter + * @param errUChars the UChars which were in error + * @param len on input the capacity of errUChars, on output the number of + * UChars which were copied to it + * @param err the error status code. + * If the substitution character array is too small, an + * U_INDEX_OUTOFBOUNDS_ERROR will be returned. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_getInvalidUChars(const UConverter *converter, + UChar *errUChars, + int8_t *len, + UErrorCode *err); + +/** + * Resets the state of a converter to the default state. This is used + * in the case of an error, to restart a conversion from a known default state. + * It will also empty the internal output buffers. + * @param converter the Unicode converter + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_reset(UConverter *converter); + +/** + * Resets the to-Unicode part of a converter state to the default state. + * This is used in the case of an error to restart a conversion to + * Unicode to a known default state. It will also empty the internal + * output buffers used for the conversion to Unicode codepoints. + * @param converter the Unicode converter + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_resetToUnicode(UConverter *converter); + +/** + * Resets the from-Unicode part of a converter state to the default state. + * This is used in the case of an error to restart a conversion from + * Unicode to a known default state. It will also empty the internal output + * buffers used for the conversion from Unicode codepoints. + * @param converter the Unicode converter + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_resetFromUnicode(UConverter *converter); + +/** + * Returns the maximum number of bytes that are output per UChar in conversion + * from Unicode using this converter. + * The returned number can be used with UCNV_GET_MAX_BYTES_FOR_STRING + * to calculate the size of a target buffer for conversion from Unicode. + * + * Note: Before ICU 2.8, this function did not return reliable numbers for + * some stateful converters (EBCDIC_STATEFUL, ISO-2022) and LMBCS. + * + * This number may not be the same as the maximum number of bytes per + * "conversion unit". In other words, it may not be the intuitively expected + * number of bytes per character that would be published for a charset, + * and may not fulfill any other purpose than the allocation of an output + * buffer of guaranteed sufficient size for a given input length and converter. + * + * Examples for special cases that are taken into account: + * - Supplementary code points may convert to more bytes than BMP code points. + * This function returns bytes per UChar (UTF-16 code unit), not per + * Unicode code point, for efficient buffer allocation. + * - State-shifting output (SI/SO, escapes, etc.) from stateful converters. + * - When m input UChars are converted to n output bytes, then the maximum m/n + * is taken into account. + * + * The number returned here does not take into account + * (see UCNV_GET_MAX_BYTES_FOR_STRING): + * - callbacks which output more than one charset character sequence per call, + * like escape callbacks + * - initial and final non-character bytes that are output by some converters + * (automatic BOMs, initial escape sequence, final SI, etc.) + * + * Examples for returned values: + * - SBCS charsets: 1 + * - Shift-JIS: 2 + * - UTF-16: 2 (2 per BMP, 4 per surrogate _pair_, BOM not counted) + * - UTF-8: 3 (3 per BMP, 4 per surrogate _pair_) + * - EBCDIC_STATEFUL (EBCDIC mixed SBCS/DBCS): 3 (SO + DBCS) + * - ISO-2022: 3 (always outputs UTF-8) + * - ISO-2022-JP: 6 (4-byte escape sequences + DBCS) + * - ISO-2022-CN: 8 (4-byte designator sequences + 2-byte SS2/SS3 + DBCS) + * + * @param converter The Unicode converter. + * @return The maximum number of bytes per UChar (16 bit code unit) + * that are output by ucnv_fromUnicode(), + * to be used together with UCNV_GET_MAX_BYTES_FOR_STRING + * for buffer allocation. + * + * @see UCNV_GET_MAX_BYTES_FOR_STRING + * @see ucnv_getMinCharSize + * @stable ICU 2.0 + */ +U_STABLE int8_t U_EXPORT2 +ucnv_getMaxCharSize(const UConverter *converter); + +/** + * Calculates the size of a buffer for conversion from Unicode to a charset. + * The calculated size is guaranteed to be sufficient for this conversion. + * + * It takes into account initial and final non-character bytes that are output + * by some converters. + * It does not take into account callbacks which output more than one charset + * character sequence per call, like escape callbacks. + * The default (substitution) callback only outputs one charset character sequence. + * + * @param length Number of UChars to be converted. + * @param maxCharSize Return value from ucnv_getMaxCharSize() for the converter + * that will be used. + * @return Size of a buffer that will be large enough to hold the output bytes of + * converting length UChars with the converter that returned the maxCharSize. + * + * @see ucnv_getMaxCharSize + * @stable ICU 2.8 + */ +#define UCNV_GET_MAX_BYTES_FOR_STRING(length, maxCharSize) \ + (((int32_t)(length)+10)*(int32_t)(maxCharSize)) + +/** + * Returns the minimum byte length (per codepoint) for characters in this codepage. + * This is usually either 1 or 2. + * @param converter the Unicode converter + * @return the minimum number of bytes per codepoint allowed by this particular converter + * @see ucnv_getMaxCharSize + * @stable ICU 2.0 + */ +U_STABLE int8_t U_EXPORT2 +ucnv_getMinCharSize(const UConverter *converter); + +/** + * Returns the display name of the converter passed in based on the Locale + * passed in. If the locale contains no display name, the internal ASCII + * name will be filled in. + * + * @param converter the Unicode converter. + * @param displayLocale is the specific Locale we want to localised for + * @param displayName user provided buffer to be filled in + * @param displayNameCapacity size of displayName Buffer + * @param err error status code + * @return displayNameLength number of UChar needed in displayName + * @see ucnv_getName + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucnv_getDisplayName(const UConverter *converter, + const char *displayLocale, + UChar *displayName, + int32_t displayNameCapacity, + UErrorCode *err); + +/** + * Gets the internal, canonical name of the converter (zero-terminated). + * The lifetime of the returned string will be that of the converter + * passed to this function. + * @param converter the Unicode converter + * @param err UErrorCode status + * @return the internal name of the converter + * @see ucnv_getDisplayName + * @stable ICU 2.0 + */ +U_STABLE const char * U_EXPORT2 +ucnv_getName(const UConverter *converter, UErrorCode *err); + +/** + * Gets a codepage number associated with the converter. This is not guaranteed + * to be the one used to create the converter. Some converters do not represent + * platform registered codepages and return zero for the codepage number. + * The error code fill-in parameter indicates if the codepage number + * is available. + * Does not check if the converter is NULL or if converter's data + * table is NULL. + * + * Important: The use of CCSIDs is not recommended because it is limited + * to only two platforms in principle and only one (UCNV_IBM) in the current + * ICU converter API. + * Also, CCSIDs are insufficient to identify IBM Unicode conversion tables precisely. + * For more details see ucnv_openCCSID(). + * + * @param converter the Unicode converter + * @param err the error status code. + * @return If any error occurrs, -1 will be returned otherwise, the codepage number + * will be returned + * @see ucnv_openCCSID + * @see ucnv_getPlatform + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucnv_getCCSID(const UConverter *converter, + UErrorCode *err); + +/** + * Gets a codepage platform associated with the converter. Currently, + * only UCNV_IBM will be returned. + * Does not test if the converter is NULL or if converter's data + * table is NULL. + * @param converter the Unicode converter + * @param err the error status code. + * @return The codepage platform + * @stable ICU 2.0 + */ +U_STABLE UConverterPlatform U_EXPORT2 +ucnv_getPlatform(const UConverter *converter, + UErrorCode *err); + +/** + * Gets the type of the converter + * e.g. SBCS, MBCS, DBCS, UTF8, UTF16_BE, UTF16_LE, ISO_2022, + * EBCDIC_STATEFUL, LATIN_1 + * @param converter a valid, opened converter + * @return the type of the converter + * @stable ICU 2.0 + */ +U_STABLE UConverterType U_EXPORT2 +ucnv_getType(const UConverter * converter); + +/** + * Gets the "starter" (lead) bytes for converters of type MBCS. + * Will fill in an U_ILLEGAL_ARGUMENT_ERROR if converter passed in + * is not MBCS. Fills in an array of type UBool, with the value of the byte + * as offset to the array. For example, if (starters[0x20] == TRUE) at return, + * it means that the byte 0x20 is a starter byte in this converter. + * Context pointers are always owned by the caller. + * + * @param converter a valid, opened converter of type MBCS + * @param starters an array of size 256 to be filled in + * @param err error status, U_ILLEGAL_ARGUMENT_ERROR if the + * converter is not a type which can return starters. + * @see ucnv_getType + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_getStarters(const UConverter* converter, + UBool starters[256], + UErrorCode* err); + + +/** + * Selectors for Unicode sets that can be returned by ucnv_getUnicodeSet(). + * @see ucnv_getUnicodeSet + * @stable ICU 2.6 + */ +typedef enum UConverterUnicodeSet { + /** Select the set of roundtrippable Unicode code points. @stable ICU 2.6 */ + UCNV_ROUNDTRIP_SET, + /** Select the set of Unicode code points with roundtrip or fallback mappings. @stable ICU 4.0 */ + UCNV_ROUNDTRIP_AND_FALLBACK_SET, + /** Number of UConverterUnicodeSet selectors. @stable ICU 2.6 */ + UCNV_SET_COUNT +} UConverterUnicodeSet; + + +/** + * Returns the set of Unicode code points that can be converted by an ICU converter. + * + * Returns one of several kinds of set: + * + * 1. UCNV_ROUNDTRIP_SET + * + * The set of all Unicode code points that can be roundtrip-converted + * (converted without any data loss) with the converter (ucnv_fromUnicode()). + * This set will not include code points that have fallback mappings + * or are only the result of reverse fallback mappings. + * This set will also not include PUA code points with fallbacks, although + * ucnv_fromUnicode() will always uses those mappings despite ucnv_setFallback(). + * See UTR #22 "Character Mapping Markup Language" + * at http://www.unicode.org/reports/tr22/ + * + * This is useful for example for + * - checking that a string or document can be roundtrip-converted with a converter, + * without/before actually performing the conversion + * - testing if a converter can be used for text for typical text for a certain locale, + * by comparing its roundtrip set with the set of ExemplarCharacters from + * ICU's locale data or other sources + * + * 2. UCNV_ROUNDTRIP_AND_FALLBACK_SET + * + * The set of all Unicode code points that can be converted with the converter (ucnv_fromUnicode()) + * when fallbacks are turned on (see ucnv_setFallback()). + * This set includes all code points with roundtrips and fallbacks (but not reverse fallbacks). + * + * In the future, there may be more UConverterUnicodeSet choices to select + * sets with different properties. + * + * @param cnv The converter for which a set is requested. + * @param setFillIn A valid USet *. It will be cleared by this function before + * the converter's specific set is filled into the USet. + * @param whichSet A UConverterUnicodeSet selector; + * currently UCNV_ROUNDTRIP_SET is the only supported value. + * @param pErrorCode ICU error code in/out parameter. + * Must fulfill U_SUCCESS before the function call. + * + * @see UConverterUnicodeSet + * @see uset_open + * @see uset_close + * @stable ICU 2.6 + */ +U_STABLE void U_EXPORT2 +ucnv_getUnicodeSet(const UConverter *cnv, + USet *setFillIn, + UConverterUnicodeSet whichSet, + UErrorCode *pErrorCode); + +/** + * Gets the current calback function used by the converter when an illegal + * or invalid codepage sequence is found. + * Context pointers are always owned by the caller. + * + * @param converter the unicode converter + * @param action fillin: returns the callback function pointer + * @param context fillin: returns the callback's private void* context + * @see ucnv_setToUCallBack + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_getToUCallBack (const UConverter * converter, + UConverterToUCallback *action, + const void **context); + +/** + * Gets the current callback function used by the converter when illegal + * or invalid Unicode sequence is found. + * Context pointers are always owned by the caller. + * + * @param converter the unicode converter + * @param action fillin: returns the callback function pointer + * @param context fillin: returns the callback's private void* context + * @see ucnv_setFromUCallBack + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_getFromUCallBack (const UConverter * converter, + UConverterFromUCallback *action, + const void **context); + +/** + * Changes the callback function used by the converter when + * an illegal or invalid sequence is found. + * Context pointers are always owned by the caller. + * Predefined actions and contexts can be found in the ucnv_err.h header. + * + * @param converter the unicode converter + * @param newAction the new callback function + * @param newContext the new toUnicode callback context pointer. This can be NULL. + * @param oldAction fillin: returns the old callback function pointer. This can be NULL. + * @param oldContext fillin: returns the old callback's private void* context. This can be NULL. + * @param err The error code status + * @see ucnv_getToUCallBack + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_setToUCallBack (UConverter * converter, + UConverterToUCallback newAction, + const void* newContext, + UConverterToUCallback *oldAction, + const void** oldContext, + UErrorCode * err); + +/** + * Changes the current callback function used by the converter when + * an illegal or invalid sequence is found. + * Context pointers are always owned by the caller. + * Predefined actions and contexts can be found in the ucnv_err.h header. + * + * @param converter the unicode converter + * @param newAction the new callback function + * @param newContext the new fromUnicode callback context pointer. This can be NULL. + * @param oldAction fillin: returns the old callback function pointer. This can be NULL. + * @param oldContext fillin: returns the old callback's private void* context. This can be NULL. + * @param err The error code status + * @see ucnv_getFromUCallBack + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_setFromUCallBack (UConverter * converter, + UConverterFromUCallback newAction, + const void *newContext, + UConverterFromUCallback *oldAction, + const void **oldContext, + UErrorCode * err); + +/** + * Converts an array of unicode characters to an array of codepage + * characters. This function is optimized for converting a continuous + * stream of data in buffer-sized chunks, where the entire source and + * target does not fit in available buffers. + * + * The source pointer is an in/out parameter. It starts out pointing where the + * conversion is to begin, and ends up pointing after the last UChar consumed. + * + * Target similarly starts out pointer at the first available byte in the output + * buffer, and ends up pointing after the last byte written to the output. + * + * The converter always attempts to consume the entire source buffer, unless + * (1.) the target buffer is full, or (2.) a failing error is returned from the + * current callback function. When a successful error status has been + * returned, it means that all of the source buffer has been + * consumed. At that point, the caller should reset the source and + * sourceLimit pointers to point to the next chunk. + * + * At the end of the stream (flush==TRUE), the input is completely consumed + * when *source==sourceLimit and no error code is set. + * The converter object is then automatically reset by this function. + * (This means that a converter need not be reset explicitly between data + * streams if it finishes the previous stream without errors.) + * + * This is a stateful conversion. Additionally, even when all source data has + * been consumed, some data may be in the converters' internal state. + * Call this function repeatedly, updating the target pointers with + * the next empty chunk of target in case of a + * U_BUFFER_OVERFLOW_ERROR, and updating the source pointers + * with the next chunk of source when a successful error status is + * returned, until there are no more chunks of source data. + * @param converter the Unicode converter + * @param target I/O parameter. Input : Points to the beginning of the buffer to copy + * codepage characters to. Output : points to after the last codepage character copied + * to target. + * @param targetLimit the pointer just after last of the target buffer + * @param source I/O parameter, pointer to pointer to the source Unicode character buffer. + * @param sourceLimit the pointer just after the last of the source buffer + * @param offsets if NULL is passed, nothing will happen to it, otherwise it needs to have the same number + * of allocated cells as target. Will fill in offsets from target to source pointer + * e.g: offsets[3] is equal to 6, it means that the target[3] was a result of transcoding source[6] + * For output data carried across calls, and other data without a specific source character + * (such as from escape sequences or callbacks) -1 will be placed for offsets. + * @param flush set to TRUE if the current source buffer is the last available + * chunk of the source, FALSE otherwise. Note that if a failing status is returned, + * this function may have to be called multiple times with flush set to TRUE until + * the source buffer is consumed. + * @param err the error status. U_ILLEGAL_ARGUMENT_ERROR will be set if the + * converter is NULL. + * U_BUFFER_OVERFLOW_ERROR will be set if the target is full and there is + * still data to be written to the target. + * @see ucnv_fromUChars + * @see ucnv_convert + * @see ucnv_getMinCharSize + * @see ucnv_setToUCallBack + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_fromUnicode (UConverter * converter, + char **target, + const char *targetLimit, + const UChar ** source, + const UChar * sourceLimit, + int32_t* offsets, + UBool flush, + UErrorCode * err); + +/** + * Converts a buffer of codepage bytes into an array of unicode UChars + * characters. This function is optimized for converting a continuous + * stream of data in buffer-sized chunks, where the entire source and + * target does not fit in available buffers. + * + * The source pointer is an in/out parameter. It starts out pointing where the + * conversion is to begin, and ends up pointing after the last byte of source consumed. + * + * Target similarly starts out pointer at the first available UChar in the output + * buffer, and ends up pointing after the last UChar written to the output. + * It does NOT necessarily keep UChar sequences together. + * + * The converter always attempts to consume the entire source buffer, unless + * (1.) the target buffer is full, or (2.) a failing error is returned from the + * current callback function. When a successful error status has been + * returned, it means that all of the source buffer has been + * consumed. At that point, the caller should reset the source and + * sourceLimit pointers to point to the next chunk. + * + * At the end of the stream (flush==TRUE), the input is completely consumed + * when *source==sourceLimit and no error code is set + * The converter object is then automatically reset by this function. + * (This means that a converter need not be reset explicitly between data + * streams if it finishes the previous stream without errors.) + * + * This is a stateful conversion. Additionally, even when all source data has + * been consumed, some data may be in the converters' internal state. + * Call this function repeatedly, updating the target pointers with + * the next empty chunk of target in case of a + * U_BUFFER_OVERFLOW_ERROR, and updating the source pointers + * with the next chunk of source when a successful error status is + * returned, until there are no more chunks of source data. + * @param converter the Unicode converter + * @param target I/O parameter. Input : Points to the beginning of the buffer to copy + * UChars into. Output : points to after the last UChar copied. + * @param targetLimit the pointer just after the end of the target buffer + * @param source I/O parameter, pointer to pointer to the source codepage buffer. + * @param sourceLimit the pointer to the byte after the end of the source buffer + * @param offsets if NULL is passed, nothing will happen to it, otherwise it needs to have the same number + * of allocated cells as target. Will fill in offsets from target to source pointer + * e.g: offsets[3] is equal to 6, it means that the target[3] was a result of transcoding source[6] + * For output data carried across calls, and other data without a specific source character + * (such as from escape sequences or callbacks) -1 will be placed for offsets. + * @param flush set to TRUE if the current source buffer is the last available + * chunk of the source, FALSE otherwise. Note that if a failing status is returned, + * this function may have to be called multiple times with flush set to TRUE until + * the source buffer is consumed. + * @param err the error status. U_ILLEGAL_ARGUMENT_ERROR will be set if the + * converter is NULL. + * U_BUFFER_OVERFLOW_ERROR will be set if the target is full and there is + * still data to be written to the target. + * @see ucnv_fromUChars + * @see ucnv_convert + * @see ucnv_getMinCharSize + * @see ucnv_setFromUCallBack + * @see ucnv_getNextUChar + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_toUnicode(UConverter *converter, + UChar **target, + const UChar *targetLimit, + const char **source, + const char *sourceLimit, + int32_t *offsets, + UBool flush, + UErrorCode *err); + +/** + * Convert the Unicode string into a codepage string using an existing UConverter. + * The output string is NUL-terminated if possible. + * + * This function is a more convenient but less powerful version of ucnv_fromUnicode(). + * It is only useful for whole strings, not for streaming conversion. + * + * The maximum output buffer capacity required (barring output from callbacks) will be + * UCNV_GET_MAX_BYTES_FOR_STRING(srcLength, ucnv_getMaxCharSize(cnv)). + * + * @param cnv the converter object to be used (ucnv_resetFromUnicode() will be called) + * @param src the input Unicode string + * @param srcLength the input string length, or -1 if NUL-terminated + * @param dest destination string buffer, can be NULL if destCapacity==0 + * @param destCapacity the number of chars available at dest + * @param pErrorCode normal ICU error code; + * common error codes that may be set by this function include + * U_BUFFER_OVERFLOW_ERROR, U_STRING_NOT_TERMINATED_WARNING, + * U_ILLEGAL_ARGUMENT_ERROR, and conversion errors + * @return the length of the output string, not counting the terminating NUL; + * if the length is greater than destCapacity, then the string will not fit + * and a buffer of the indicated length would need to be passed in + * @see ucnv_fromUnicode + * @see ucnv_convert + * @see UCNV_GET_MAX_BYTES_FOR_STRING + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucnv_fromUChars(UConverter *cnv, + char *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Convert the codepage string into a Unicode string using an existing UConverter. + * The output string is NUL-terminated if possible. + * + * This function is a more convenient but less powerful version of ucnv_toUnicode(). + * It is only useful for whole strings, not for streaming conversion. + * + * The maximum output buffer capacity required (barring output from callbacks) will be + * 2*srcLength (each char may be converted into a surrogate pair). + * + * @param cnv the converter object to be used (ucnv_resetToUnicode() will be called) + * @param src the input codepage string + * @param srcLength the input string length, or -1 if NUL-terminated + * @param dest destination string buffer, can be NULL if destCapacity==0 + * @param destCapacity the number of UChars available at dest + * @param pErrorCode normal ICU error code; + * common error codes that may be set by this function include + * U_BUFFER_OVERFLOW_ERROR, U_STRING_NOT_TERMINATED_WARNING, + * U_ILLEGAL_ARGUMENT_ERROR, and conversion errors + * @return the length of the output string, not counting the terminating NUL; + * if the length is greater than destCapacity, then the string will not fit + * and a buffer of the indicated length would need to be passed in + * @see ucnv_toUnicode + * @see ucnv_convert + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucnv_toUChars(UConverter *cnv, + UChar *dest, int32_t destCapacity, + const char *src, int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Convert a codepage buffer into Unicode one character at a time. + * The input is completely consumed when the U_INDEX_OUTOFBOUNDS_ERROR is set. + * + * Advantage compared to ucnv_toUnicode() or ucnv_toUChars(): + * - Faster for small amounts of data, for most converters, e.g., + * US-ASCII, ISO-8859-1, UTF-8/16/32, and most "normal" charsets. + * (For complex converters, e.g., SCSU, UTF-7 and ISO 2022 variants, + * it uses ucnv_toUnicode() internally.) + * - Convenient. + * + * Limitations compared to ucnv_toUnicode(): + * - Always assumes flush=TRUE. + * This makes ucnv_getNextUChar() unsuitable for "streaming" conversion, + * that is, for where the input is supplied in multiple buffers, + * because ucnv_getNextUChar() will assume the end of the input at the end + * of the first buffer. + * - Does not provide offset output. + * + * It is possible to "mix" ucnv_getNextUChar() and ucnv_toUnicode() because + * ucnv_getNextUChar() uses the current state of the converter + * (unlike ucnv_toUChars() which always resets first). + * However, if ucnv_getNextUChar() is called after ucnv_toUnicode() + * stopped in the middle of a character sequence (with flush=FALSE), + * then ucnv_getNextUChar() will always use the slower ucnv_toUnicode() + * internally until the next character boundary. + * (This is new in ICU 2.6. In earlier releases, ucnv_getNextUChar() had to + * start at a character boundary.) + * + * Instead of using ucnv_getNextUChar(), it is recommended + * to convert using ucnv_toUnicode() or ucnv_toUChars() + * and then iterate over the text using U16_NEXT() or a UCharIterator (uiter.h) + * or a C++ CharacterIterator or similar. + * This allows streaming conversion and offset output, for example. + * + *

Handling of surrogate pairs and supplementary-plane code points:
+ * There are two different kinds of codepages that provide mappings for surrogate characters: + *

    + *
  • Codepages like UTF-8, UTF-32, and GB 18030 provide direct representations for Unicode + * code points U+10000-U+10ffff as well as for single surrogates U+d800-U+dfff. + * Each valid sequence will result in exactly one returned code point. + * If a sequence results in a single surrogate, then that will be returned + * by itself, even if a neighboring sequence encodes the matching surrogate.
  • + *
  • Codepages like SCSU and LMBCS (and UTF-16) provide direct representations only for BMP code points + * including surrogates. Code points in supplementary planes are represented with + * two sequences, each encoding a surrogate. + * For these codepages, matching pairs of surrogates will be combined into single + * code points for returning from this function. + * (Note that SCSU is actually a mix of these codepage types.)
  • + *

+ * + * @param converter an open UConverter + * @param source the address of a pointer to the codepage buffer, will be + * updated to point after the bytes consumed in the conversion call. + * @param sourceLimit points to the end of the input buffer + * @param err fills in error status (see ucnv_toUnicode) + * U_INDEX_OUTOFBOUNDS_ERROR will be set if the input + * is empty or does not convert to any output (e.g.: pure state-change + * codes SI/SO, escape sequences for ISO 2022, + * or if the callback did not output anything, ...). + * This function will not set a U_BUFFER_OVERFLOW_ERROR because + * the "buffer" is the return code. However, there might be subsequent output + * stored in the converter object + * that will be returned in following calls to this function. + * @return a UChar32 resulting from the partial conversion of source + * @see ucnv_toUnicode + * @see ucnv_toUChars + * @see ucnv_convert + * @stable ICU 2.0 + */ +U_STABLE UChar32 U_EXPORT2 +ucnv_getNextUChar(UConverter * converter, + const char **source, + const char * sourceLimit, + UErrorCode * err); + +/** + * Convert from one external charset to another using two existing UConverters. + * Internally, two conversions - ucnv_toUnicode() and ucnv_fromUnicode() - + * are used, "pivoting" through 16-bit Unicode. + * + * Important: For streaming conversion (multiple function calls for successive + * parts of a text stream), the caller must provide a pivot buffer explicitly, + * and must preserve the pivot buffer and associated pointers from one + * call to another. (The buffer may be moved if its contents and the relative + * pointer positions are preserved.) + * + * There is a similar function, ucnv_convert(), + * which has the following limitations: + * - it takes charset names, not converter objects, so that + * - two converters are opened for each call + * - only single-string conversion is possible, not streaming operation + * - it does not provide enough information to find out, + * in case of failure, whether the toUnicode or + * the fromUnicode conversion failed + * + * By contrast, ucnv_convertEx() + * - takes UConverter parameters instead of charset names + * - fully exposes the pivot buffer for streaming conversion and complete error handling + * + * ucnv_convertEx() also provides further convenience: + * - an option to reset the converters at the beginning + * (if reset==TRUE, see parameters; + * also sets *pivotTarget=*pivotSource=pivotStart) + * - allow NUL-terminated input + * (only a single NUL byte, will not work for charsets with multi-byte NULs) + * (if sourceLimit==NULL, see parameters) + * - terminate with a NUL on output + * (only a single NUL byte, not useful for charsets with multi-byte NULs), + * or set U_STRING_NOT_TERMINATED_WARNING if the output exactly fills + * the target buffer + * - the pivot buffer can be provided internally; + * possible only for whole-string conversion, not streaming conversion; + * in this case, the caller will not be able to get details about where an + * error occurred + * (if pivotStart==NULL, see below) + * + * The function returns when one of the following is true: + * - the entire source text has been converted successfully to the target buffer + * - a target buffer overflow occurred (U_BUFFER_OVERFLOW_ERROR) + * - a conversion error occurred + * (other U_FAILURE(), see description of pErrorCode) + * + * Limitation compared to the direct use of + * ucnv_fromUnicode() and ucnv_toUnicode(): + * ucnv_convertEx() does not provide offset information. + * + * Limitation compared to ucnv_fromUChars() and ucnv_toUChars(): + * ucnv_convertEx() does not support preflighting directly. + * + * Sample code for converting a single string from + * one external charset to UTF-8, ignoring the location of errors: + * + * \code + * int32_t + * myToUTF8(UConverter *cnv, + * const char *s, int32_t length, + * char *u8, int32_t capacity, + * UErrorCode *pErrorCode) { + * UConverter *utf8Cnv; + * char *target; + * + * if(U_FAILURE(*pErrorCode)) { + * return 0; + * } + * + * utf8Cnv=myGetCachedUTF8Converter(pErrorCode); + * if(U_FAILURE(*pErrorCode)) { + * return 0; + * } + * + * if(length<0) { + * length=strlen(s); + * } + * target=u8; + * ucnv_convertEx(utf8Cnv, cnv, + * &target, u8+capacity, + * &s, s+length, + * NULL, NULL, NULL, NULL, + * TRUE, TRUE, + * pErrorCode); + * + * myReleaseCachedUTF8Converter(utf8Cnv); + * + * // return the output string length, but without preflighting + * return (int32_t)(target-u8); + * } + * \endcode + * + * @param targetCnv Output converter, used to convert from the UTF-16 pivot + * to the target using ucnv_fromUnicode(). + * @param sourceCnv Input converter, used to convert from the source to + * the UTF-16 pivot using ucnv_toUnicode(). + * @param target I/O parameter, same as for ucnv_fromUChars(). + * Input: *target points to the beginning of the target buffer. + * Output: *target points to the first unit after the last char written. + * @param targetLimit Pointer to the first unit after the target buffer. + * @param source I/O parameter, same as for ucnv_toUChars(). + * Input: *source points to the beginning of the source buffer. + * Output: *source points to the first unit after the last char read. + * @param sourceLimit Pointer to the first unit after the source buffer. + * @param pivotStart Pointer to the UTF-16 pivot buffer. If pivotStart==NULL, + * then an internal buffer is used and the other pivot + * arguments are ignored and can be NULL as well. + * @param pivotSource I/O parameter, same as source in ucnv_fromUChars() for + * conversion from the pivot buffer to the target buffer. + * @param pivotTarget I/O parameter, same as target in ucnv_toUChars() for + * conversion from the source buffer to the pivot buffer. + * It must be pivotStart<=*pivotSource<=*pivotTarget<=pivotLimit + * and pivotStart[0..ucnv_countAvaiable()]) + * @return a pointer a string (library owned), or NULL if the index is out of bounds. + * @see ucnv_countAvailable + * @stable ICU 2.0 + */ +U_STABLE const char* U_EXPORT2 +ucnv_getAvailableName(int32_t n); + +/** + * Returns a UEnumeration to enumerate all of the canonical converter + * names, as per the alias file, regardless of the ability to open each + * converter. + * + * @return A UEnumeration object for getting all the recognized canonical + * converter names. + * @see ucnv_getAvailableName + * @see uenum_close + * @see uenum_next + * @stable ICU 2.4 + */ +U_STABLE UEnumeration * U_EXPORT2 +ucnv_openAllNames(UErrorCode *pErrorCode); + +/** + * Gives the number of aliases for a given converter or alias name. + * If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING. + * This method only enumerates the listed entries in the alias file. + * @param alias alias name + * @param pErrorCode error status + * @return number of names on alias list for given alias + * @stable ICU 2.0 + */ +U_STABLE uint16_t U_EXPORT2 +ucnv_countAliases(const char *alias, UErrorCode *pErrorCode); + +/** + * Gives the name of the alias at given index of alias list. + * This method only enumerates the listed entries in the alias file. + * If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING. + * @param alias alias name + * @param n index in alias list + * @param pErrorCode result of operation + * @return returns the name of the alias at given index + * @see ucnv_countAliases + * @stable ICU 2.0 + */ +U_STABLE const char * U_EXPORT2 +ucnv_getAlias(const char *alias, uint16_t n, UErrorCode *pErrorCode); + +/** + * Fill-up the list of alias names for the given alias. + * This method only enumerates the listed entries in the alias file. + * If the alias is ambiguous, then the preferred converter is used + * and the status is set to U_AMBIGUOUS_ALIAS_WARNING. + * @param alias alias name + * @param aliases fill-in list, aliases is a pointer to an array of + * ucnv_countAliases() string-pointers + * (const char *) that will be filled in. + * The strings themselves are owned by the library. + * @param pErrorCode result of operation + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_getAliases(const char *alias, const char **aliases, UErrorCode *pErrorCode); + +/** + * Return a new UEnumeration object for enumerating all the + * alias names for a given converter that are recognized by a standard. + * This method only enumerates the listed entries in the alias file. + * The convrtrs.txt file can be modified to change the results of + * this function. + * The first result in this list is the same result given by + * ucnv_getStandardName, which is the default alias for + * the specified standard name. The returned object must be closed with + * uenum_close when you are done with the object. + * + * @param convName original converter name + * @param standard name of the standard governing the names; MIME and IANA + * are such standards + * @param pErrorCode The error code + * @return A UEnumeration object for getting all aliases that are recognized + * by a standard. If any of the parameters are invalid, NULL + * is returned. + * @see ucnv_getStandardName + * @see uenum_close + * @see uenum_next + * @stable ICU 2.2 + */ +U_STABLE UEnumeration * U_EXPORT2 +ucnv_openStandardNames(const char *convName, + const char *standard, + UErrorCode *pErrorCode); + +/** + * Gives the number of standards associated to converter names. + * @return number of standards + * @stable ICU 2.0 + */ +U_STABLE uint16_t U_EXPORT2 +ucnv_countStandards(void); + +/** + * Gives the name of the standard at given index of standard list. + * @param n index in standard list + * @param pErrorCode result of operation + * @return returns the name of the standard at given index. Owned by the library. + * @stable ICU 2.0 + */ +U_STABLE const char * U_EXPORT2 +ucnv_getStandard(uint16_t n, UErrorCode *pErrorCode); + +/** + * Returns a standard name for a given converter name. + *

+ * Example alias table:
+ * conv alias1 { STANDARD1 } alias2 { STANDARD1* } + *

+ * Result of ucnv_getStandardName("conv", "STANDARD1") from example + * alias table:
+ * "alias2" + * + * @param name original converter name + * @param standard name of the standard governing the names; MIME and IANA + * are such standards + * @param pErrorCode result of operation + * @return returns the standard converter name; + * if a standard converter name cannot be determined, + * then NULL is returned. Owned by the library. + * @stable ICU 2.0 + */ +U_STABLE const char * U_EXPORT2 +ucnv_getStandardName(const char *name, const char *standard, UErrorCode *pErrorCode); + +/** + * This function will return the internal canonical converter name of the + * tagged alias. This is the opposite of ucnv_openStandardNames, which + * returns the tagged alias given the canonical name. + *

+ * Example alias table:
+ * conv alias1 { STANDARD1 } alias2 { STANDARD1* } + *

+ * Result of ucnv_getStandardName("alias1", "STANDARD1") from example + * alias table:
+ * "conv" + * + * @return returns the canonical converter name; + * if a standard or alias name cannot be determined, + * then NULL is returned. The returned string is + * owned by the library. + * @see ucnv_getStandardName + * @stable ICU 2.4 + */ +U_STABLE const char * U_EXPORT2 +ucnv_getCanonicalName(const char *alias, const char *standard, UErrorCode *pErrorCode); + +/** + * Returns the current default converter name. If you want to open + * a default converter, you do not need to use this function. + * It is faster if you pass a NULL argument to ucnv_open the + * default converter. + * + * If U_CHARSET_IS_UTF8 is defined to 1 in utypes.h then this function + * always returns "UTF-8". + * + * @return returns the current default converter name. + * Storage owned by the library + * @see ucnv_setDefaultName + * @stable ICU 2.0 + */ +U_STABLE const char * U_EXPORT2 +ucnv_getDefaultName(void); + +#ifndef U_HIDE_SYSTEM_API +/** + * This function is not thread safe. DO NOT call this function when ANY ICU + * function is being used from more than one thread! This function sets the + * current default converter name. If this function needs to be called, it + * should be called during application initialization. Most of the time, the + * results from ucnv_getDefaultName() or ucnv_open with a NULL string argument + * is sufficient for your application. + * + * If U_CHARSET_IS_UTF8 is defined to 1 in utypes.h then this function + * does nothing. + * + * @param name the converter name to be the default (must be known by ICU). + * @see ucnv_getDefaultName + * @system + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_setDefaultName(const char *name); +#endif /* U_HIDE_SYSTEM_API */ + +/** + * Fixes the backslash character mismapping. For example, in SJIS, the backslash + * character in the ASCII portion is also used to represent the yen currency sign. + * When mapping from Unicode character 0x005C, it's unclear whether to map the + * character back to yen or backslash in SJIS. This function will take the input + * buffer and replace all the yen sign characters with backslash. This is necessary + * when the user tries to open a file with the input buffer on Windows. + * This function will test the converter to see whether such mapping is + * required. You can sometimes avoid using this function by using the correct version + * of Shift-JIS. + * + * @param cnv The converter representing the target codepage. + * @param source the input buffer to be fixed + * @param sourceLen the length of the input buffer + * @see ucnv_isAmbiguous + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen); + +/** + * Determines if the converter contains ambiguous mappings of the same + * character or not. + * @param cnv the converter to be tested + * @return TRUE if the converter contains ambiguous mapping of the same + * character, FALSE otherwise. + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +ucnv_isAmbiguous(const UConverter *cnv); + +/** + * Sets the converter to use fallback mappings or not. + * Regardless of this flag, the converter will always use + * fallbacks from Unicode Private Use code points, as well as + * reverse fallbacks (to Unicode). + * For details see ".ucm File Format" + * in the Conversion Data chapter of the ICU User Guide: + * http://www.icu-project.org/userguide/conversion-data.html#ucmformat + * + * @param cnv The converter to set the fallback mapping usage on. + * @param usesFallback TRUE if the user wants the converter to take advantage of the fallback + * mapping, FALSE otherwise. + * @stable ICU 2.0 + * @see ucnv_usesFallback + */ +U_STABLE void U_EXPORT2 +ucnv_setFallback(UConverter *cnv, UBool usesFallback); + +/** + * Determines if the converter uses fallback mappings or not. + * This flag has restrictions, see ucnv_setFallback(). + * + * @param cnv The converter to be tested + * @return TRUE if the converter uses fallback, FALSE otherwise. + * @stable ICU 2.0 + * @see ucnv_setFallback + */ +U_STABLE UBool U_EXPORT2 +ucnv_usesFallback(const UConverter *cnv); + +/** + * Detects Unicode signature byte sequences at the start of the byte stream + * and returns the charset name of the indicated Unicode charset. + * NULL is returned when no Unicode signature is recognized. + * The number of bytes in the signature is output as well. + * + * The caller can ucnv_open() a converter using the charset name. + * The first code unit (UChar) from the start of the stream will be U+FEFF + * (the Unicode BOM/signature character) and can usually be ignored. + * + * For most Unicode charsets it is also possible to ignore the indicated + * number of initial stream bytes and start converting after them. + * However, there are stateful Unicode charsets (UTF-7 and BOCU-1) for which + * this will not work. Therefore, it is best to ignore the first output UChar + * instead of the input signature bytes. + *

+ * Usage: + * \snippet samples/ucnv/convsamp.cpp ucnv_detectUnicodeSignature + * + * @param source The source string in which the signature should be detected. + * @param sourceLength Length of the input string, or -1 if terminated with a NUL byte. + * @param signatureLength A pointer to int32_t to receive the number of bytes that make up the signature + * of the detected UTF. 0 if not detected. + * Can be a NULL pointer. + * @param pErrorCode ICU error code in/out parameter. + * Must fulfill U_SUCCESS before the function call. + * @return The name of the encoding detected. NULL if encoding is not detected. + * @stable ICU 2.4 + */ +U_STABLE const char* U_EXPORT2 +ucnv_detectUnicodeSignature(const char* source, + int32_t sourceLength, + int32_t *signatureLength, + UErrorCode *pErrorCode); + +/** + * Returns the number of UChars held in the converter's internal state + * because more input is needed for completing the conversion. This function is + * useful for mapping semantics of ICU's converter interface to those of iconv, + * and this information is not needed for normal conversion. + * @param cnv The converter in which the input is held + * @param status ICU error code in/out parameter. + * Must fulfill U_SUCCESS before the function call. + * @return The number of UChars in the state. -1 if an error is encountered. + * @stable ICU 3.4 + */ +U_STABLE int32_t U_EXPORT2 +ucnv_fromUCountPending(const UConverter* cnv, UErrorCode* status); + +/** + * Returns the number of chars held in the converter's internal state + * because more input is needed for completing the conversion. This function is + * useful for mapping semantics of ICU's converter interface to those of iconv, + * and this information is not needed for normal conversion. + * @param cnv The converter in which the input is held as internal state + * @param status ICU error code in/out parameter. + * Must fulfill U_SUCCESS before the function call. + * @return The number of chars in the state. -1 if an error is encountered. + * @stable ICU 3.4 + */ +U_STABLE int32_t U_EXPORT2 +ucnv_toUCountPending(const UConverter* cnv, UErrorCode* status); + +/** + * Returns whether or not the charset of the converter has a fixed number of bytes + * per charset character. + * An example of this are converters that are of the type UCNV_SBCS or UCNV_DBCS. + * Another example is UTF-32 which is always 4 bytes per character. + * A Unicode code point may be represented by more than one UTF-8 or UTF-16 code unit + * but a UTF-32 converter encodes each code point with 4 bytes. + * Note: This method is not intended to be used to determine whether the charset has a + * fixed ratio of bytes to Unicode codes units for any particular Unicode encoding form. + * FALSE is returned with the UErrorCode if error occurs or cnv is NULL. + * @param cnv The converter to be tested + * @param status ICU error code in/out paramter + * @return TRUE if the converter is fixed-width + * @stable ICU 4.8 + */ +U_STABLE UBool U_EXPORT2 +ucnv_isFixedWidth(UConverter *cnv, UErrorCode *status); + +#endif + +#endif +/*_UCNV*/ + +// ucnv_cb.h +/* +********************************************************************** +* Copyright (C) 2000-2004, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** + * ucnv_cb.h: + * External APIs for the ICU's codeset conversion library + * Helena Shih + * + * Modification History: + * + * Date Name Description + */ + +/** + * \file + * \brief C UConverter functions to aid the writers of callbacks + * + *

Callback API for UConverter

+ * + * These functions are provided here for the convenience of the callback + * writer. If you are just looking for callback functions to use, please + * see ucnv_err.h. DO NOT call these functions directly when you are + * working with converters, unless your code has been called as a callback + * via ucnv_setFromUCallback or ucnv_setToUCallback !! + * + * A note about error codes and overflow. Unlike other ICU functions, + * these functions do not expect the error status to be U_ZERO_ERROR. + * Callbacks must be much more careful about their error codes. + * The error codes used here are in/out parameters, which should be passed + * back in the callback's error parameter. + * + * For example, if you call ucnv_cbfromUWriteBytes to write data out + * to the output codepage, it may return U_BUFFER_OVERFLOW_ERROR if + * the data did not fit in the target. But this isn't a failing error, + * in fact, ucnv_cbfromUWriteBytes may be called AGAIN with the error + * status still U_BUFFER_OVERFLOW_ERROR to attempt to write further bytes, + * which will also go into the internal overflow buffers. + * + * Concerning offsets, the 'offset' parameters here are relative to the start + * of SOURCE. For example, Suppose the string "ABCD" was being converted + * from Unicode into a codepage which doesn't have a mapping for 'B'. + * 'A' will be written out correctly, but + * The FromU Callback will be called on an unassigned character for 'B'. + * At this point, this is the state of the world: + * Target: A [..] [points after A] + * Source: A B [C] D [points to C - B has been consumed] + * 0 1 2 3 + * codePoint = "B" [the unassigned codepoint] + * + * Now, suppose a callback wants to write the substitution character '?' to + * the target. It calls ucnv_cbFromUWriteBytes() to write the ?. + * It should pass ZERO as the offset, because the offset as far as the + * callback is concerned is relative to the SOURCE pointer [which points + * before 'C'.] If the callback goes into the args and consumes 'C' also, + * it would call FromUWriteBytes with an offset of 1 (and advance the source + * pointer). + * + */ + +#ifndef UCNV_CB_H +#define UCNV_CB_H + + +#if !UCONFIG_NO_CONVERSION + + +/** + * ONLY used by FromU callback functions. + * Writes out the specified byte output bytes to the target byte buffer or to converter internal buffers. + * + * @param args callback fromUnicode arguments + * @param source source bytes to write + * @param length length of bytes to write + * @param offsetIndex the relative offset index from callback. + * @param err error status. If U_BUFFER_OVERFLOW is returned, then U_BUFFER_OVERFLOW must + * be returned to the user, because it means that not all data could be written into the target buffer, and some is + * in the converter error buffer. + * @see ucnv_cbFromUWriteSub + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_cbFromUWriteBytes (UConverterFromUnicodeArgs *args, + const char* source, + int32_t length, + int32_t offsetIndex, + UErrorCode * err); + +/** + * ONLY used by FromU callback functions. + * This function will write out the correct substitution character sequence + * to the target. + * + * @param args callback fromUnicode arguments + * @param offsetIndex the relative offset index from the current source pointer to be used + * @param err error status. If U_BUFFER_OVERFLOW is returned, then U_BUFFER_OVERFLOW must + * be returned to the user, because it means that not all data could be written into the target buffer, and some is + * in the converter error buffer. + * @see ucnv_cbFromUWriteBytes + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucnv_cbFromUWriteSub (UConverterFromUnicodeArgs *args, + int32_t offsetIndex, + UErrorCode * err); + +/** + * ONLY used by fromU callback functions. + * This function will write out the error character(s) to the target UChar buffer. + * + * @param args callback fromUnicode arguments + * @param source pointer to pointer to first UChar to write [on exit: 1 after last UChar processed] + * @param sourceLimit pointer after last UChar to write + * @param offsetIndex the relative offset index from callback which will be set + * @param err error status U_BUFFER_OVERFLOW + * @see ucnv_cbToUWriteSub + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args, + const UChar** source, + const UChar* sourceLimit, + int32_t offsetIndex, + UErrorCode * err); + +/** + * ONLY used by ToU callback functions. + * This function will write out the specified characters to the target + * UChar buffer. + * + * @param args callback toUnicode arguments + * @param source source string to write + * @param length the length of source string + * @param offsetIndex the relative offset index which will be written. + * @param err error status U_BUFFER_OVERFLOW + * @see ucnv_cbToUWriteSub + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 ucnv_cbToUWriteUChars (UConverterToUnicodeArgs *args, + const UChar* source, + int32_t length, + int32_t offsetIndex, + UErrorCode * err); + +/** + * ONLY used by ToU callback functions. + * This function will write out the Unicode substitution character (U+FFFD). + * + * @param args callback fromUnicode arguments + * @param offsetIndex the relative offset index from callback. + * @param err error status U_BUFFER_OVERFLOW + * @see ucnv_cbToUWriteUChars + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 ucnv_cbToUWriteSub (UConverterToUnicodeArgs *args, + int32_t offsetIndex, + UErrorCode * err); +#endif + +#endif + +// uclean.h +/* +****************************************************************************** +* Copyright (C) 2001-2014, International Business Machines +* Corporation and others. All Rights Reserved. +****************************************************************************** +* file name: uclean.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2001July05 +* created by: George Rhoten +*/ + +#ifndef __UCLEAN_H__ +#define __UCLEAN_H__ + +/** + * \file + * \brief C API: Initialize and clean up ICU + */ + +/** + * Initialize ICU. + * + * Use of this function is optional. It is OK to simply use ICU + * services and functions without first having initialized + * ICU by calling u_init(). + * + * u_init() will attempt to load some part of ICU's data, and is + * useful as a test for configuration or installation problems that + * leave the ICU data inaccessible. A successful invocation of u_init() + * does not, however, guarantee that all ICU data is accessible. + * + * Multiple calls to u_init() cause no harm, aside from the small amount + * of time required. + * + * In old versions of ICU, u_init() was required in multi-threaded applications + * to ensure the thread safety of ICU. u_init() is no longer needed for this purpose. + * + * @param status An ICU UErrorCode parameter. It must not be NULL. + * An Error will be returned if some required part of ICU data can not + * be loaded or initialized. + * The function returns immediately if the input error code indicates a + * failure, as usual. + * + * @stable ICU 2.6 + */ +U_STABLE void U_EXPORT2 +u_init(UErrorCode *status); + +#ifndef U_HIDE_SYSTEM_API +/** + * Clean up the system resources, such as allocated memory or open files, + * used in all ICU libraries. This will free/delete all memory owned by the + * ICU libraries, and return them to their original load state. All open ICU + * items (collators, resource bundles, converters, etc.) must be closed before + * calling this function, otherwise ICU may not free its allocated memory + * (e.g. close your converters and resource bundles before calling this + * function). Generally, this function should be called once just before + * an application exits. For applications that dynamically load and unload + * the ICU libraries (relatively uncommon), u_cleanup() should be called + * just before the library unload. + *

+ * u_cleanup() also clears any ICU heap functions, mutex functions or + * trace functions that may have been set for the process. + * This has the effect of restoring ICU to its initial condition, before + * any of these override functions were installed. Refer to + * u_setMemoryFunctions(), u_setMutexFunctions and + * utrace_setFunctions(). If ICU is to be reinitialized after after + * calling u_cleanup(), these runtime override functions will need to + * be set up again if they are still required. + *

+ * u_cleanup() is not thread safe. All other threads should stop using ICU + * before calling this function. + *

+ * Any open ICU items will be left in an undefined state by u_cleanup(), + * and any subsequent attempt to use such an item will give unpredictable + * results. + *

+ * After calling u_cleanup(), an application may continue to use ICU by + * calling u_init(). An application must invoke u_init() first from one single + * thread before allowing other threads call u_init(). All threads existing + * at the time of the first thread's call to u_init() must also call + * u_init() themselves before continuing with other ICU operations. + *

+ * The use of u_cleanup() just before an application terminates is optional, + * but it should be called only once for performance reasons. The primary + * benefit is to eliminate reports of memory or resource leaks originating + * in ICU code from the results generated by heap analysis tools. + *

+ * Use this function with great care! + *

+ * + * @stable ICU 2.0 + * @system + */ +U_STABLE void U_EXPORT2 +u_cleanup(void); + + +/** + * Pointer type for a user supplied memory allocation function. + * @param context user supplied value, obtained from from u_setMemoryFunctions(). + * @param size The number of bytes to be allocated + * @return Pointer to the newly allocated memory, or NULL if the allocation failed. + * @stable ICU 2.8 + * @system + */ +typedef void *U_CALLCONV UMemAllocFn(const void *context, size_t size); +/** + * Pointer type for a user supplied memory re-allocation function. + * @param context user supplied value, obtained from from u_setMemoryFunctions(). + * @param size The number of bytes to be allocated + * @return Pointer to the newly allocated memory, or NULL if the allocation failed. + * @stable ICU 2.8 + * @system + */ +typedef void *U_CALLCONV UMemReallocFn(const void *context, void *mem, size_t size); +/** + * Pointer type for a user supplied memory free function. Behavior should be + * similar the standard C library free(). + * @param context user supplied value, obtained from from u_setMemoryFunctions(). + * @param mem Pointer to the memory block to be resized + * @param size The new size for the block + * @return Pointer to the resized memory block, or NULL if the resizing failed. + * @stable ICU 2.8 + * @system + */ +typedef void U_CALLCONV UMemFreeFn (const void *context, void *mem); + +/** + * Set the functions that ICU will use for memory allocation. + * Use of this function is optional; by default (without this function), ICU will + * use the standard C library malloc() and free() functions. + * This function can only be used when ICU is in an initial, unused state, before + * u_init() has been called. + * @param context This pointer value will be saved, and then (later) passed as + * a parameter to the memory functions each time they + * are called. + * @param a Pointer to a user-supplied malloc function. + * @param r Pointer to a user-supplied realloc function. + * @param f Pointer to a user-supplied free function. + * @param status Receives error values. + * @stable ICU 2.8 + * @system + */ +U_STABLE void U_EXPORT2 +u_setMemoryFunctions(const void *context, UMemAllocFn *a, UMemReallocFn *r, UMemFreeFn *f, + UErrorCode *status); + + +#endif /* U_HIDE_SYSTEM_API */ + +#endif + +// uchar.h +/* +********************************************************************** +* Copyright (C) 1997-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* +* File UCHAR.H +* +* Modification History: +* +* Date Name Description +* 04/02/97 aliu Creation. +* 03/29/99 helena Updated for C APIs. +* 4/15/99 Madhu Updated for C Implementation and Javadoc +* 5/20/99 Madhu Added the function u_getVersion() +* 8/19/1999 srl Upgraded scripts to Unicode 3.0 +* 8/27/1999 schererm UCharDirection constants: U_... +* 11/11/1999 weiv added u_isalnum(), cleaned comments +* 01/11/2000 helena Renamed u_getVersion to u_getUnicodeVersion(). +****************************************************************************** +*/ + +#ifndef UCHAR_H +#define UCHAR_H + + +U_CDECL_BEGIN + +/*==========================================================================*/ +/* Unicode version number */ +/*==========================================================================*/ +/** + * Unicode version number, default for the current ICU version. + * The actual Unicode Character Database (UCD) data is stored in uprops.dat + * and may be generated from UCD files from a different Unicode version. + * Call u_getUnicodeVersion to get the actual Unicode version of the data. + * + * @see u_getUnicodeVersion + * @stable ICU 2.0 + */ +#define U_UNICODE_VERSION "8.0" + +/** + * \file + * \brief C API: Unicode Properties + * + * This C API provides low-level access to the Unicode Character Database. + * In addition to raw property values, some convenience functions calculate + * derived properties, for example for Java-style programming. + * + * Unicode assigns each code point (not just assigned character) values for + * many properties. + * Most of them are simple boolean flags, or constants from a small enumerated list. + * For some properties, values are strings or other relatively more complex types. + * + * For more information see + * "About the Unicode Character Database" (http://www.unicode.org/ucd/) + * and the ICU User Guide chapter on Properties (http://icu-project.org/userguide/properties.html). + * + * Many functions are designed to match java.lang.Character functions. + * See the individual function documentation, + * and see the JDK 1.4 java.lang.Character documentation + * at http://java.sun.com/j2se/1.4/docs/api/java/lang/Character.html + * + * There are also functions that provide easy migration from C/POSIX functions + * like isblank(). Their use is generally discouraged because the C/POSIX + * standards do not define their semantics beyond the ASCII range, which means + * that different implementations exhibit very different behavior. + * Instead, Unicode properties should be used directly. + * + * There are also only a few, broad C/POSIX character classes, and they tend + * to be used for conflicting purposes. For example, the "isalpha()" class + * is sometimes used to determine word boundaries, while a more sophisticated + * approach would at least distinguish initial letters from continuation + * characters (the latter including combining marks). + * (In ICU, BreakIterator is the most sophisticated API for word boundaries.) + * Another example: There is no "istitle()" class for titlecase characters. + * + * ICU 3.4 and later provides API access for all twelve C/POSIX character classes. + * ICU implements them according to the Standard Recommendations in + * Annex C: Compatibility Properties of UTS #18 Unicode Regular Expressions + * (http://www.unicode.org/reports/tr18/#Compatibility_Properties). + * + * API access for C/POSIX character classes is as follows: + * - alpha: u_isUAlphabetic(c) or u_hasBinaryProperty(c, UCHAR_ALPHABETIC) + * - lower: u_isULowercase(c) or u_hasBinaryProperty(c, UCHAR_LOWERCASE) + * - upper: u_isUUppercase(c) or u_hasBinaryProperty(c, UCHAR_UPPERCASE) + * - punct: u_ispunct(c) + * - digit: u_isdigit(c) or u_charType(c)==U_DECIMAL_DIGIT_NUMBER + * - xdigit: u_isxdigit(c) or u_hasBinaryProperty(c, UCHAR_POSIX_XDIGIT) + * - alnum: u_hasBinaryProperty(c, UCHAR_POSIX_ALNUM) + * - space: u_isUWhiteSpace(c) or u_hasBinaryProperty(c, UCHAR_WHITE_SPACE) + * - blank: u_isblank(c) or u_hasBinaryProperty(c, UCHAR_POSIX_BLANK) + * - cntrl: u_charType(c)==U_CONTROL_CHAR + * - graph: u_hasBinaryProperty(c, UCHAR_POSIX_GRAPH) + * - print: u_hasBinaryProperty(c, UCHAR_POSIX_PRINT) + * + * Note: Some of the u_isxyz() functions in uchar.h predate, and do not match, + * the Standard Recommendations in UTS #18. Instead, they match Java + * functions according to their API documentation. + * + * \htmlonly + * The C/POSIX character classes are also available in UnicodeSet patterns, + * using patterns like [:graph:] or \p{graph}. + * \endhtmlonly + * + * Note: There are several ICU whitespace functions. + * Comparison: + * - u_isUWhiteSpace=UCHAR_WHITE_SPACE: Unicode White_Space property; + * most of general categories "Z" (separators) + most whitespace ISO controls + * (including no-break spaces, but excluding IS1..IS4 and ZWSP) + * - u_isWhitespace: Java isWhitespace; Z + whitespace ISO controls but excluding no-break spaces + * - u_isJavaSpaceChar: Java isSpaceChar; just Z (including no-break spaces) + * - u_isspace: Z + whitespace ISO controls (including no-break spaces) + * - u_isblank: "horizontal spaces" = TAB + Zs - ZWSP + */ + +/** + * Constants. + */ + +/** The lowest Unicode code point value. Code points are non-negative. @stable ICU 2.0 */ +#define UCHAR_MIN_VALUE 0 + +/** + * The highest Unicode code point value (scalar value) according to + * The Unicode Standard. This is a 21-bit value (20.1 bits, rounded up). + * For a single character, UChar32 is a simple type that can hold any code point value. + * + * @see UChar32 + * @stable ICU 2.0 + */ +#define UCHAR_MAX_VALUE 0x10ffff + +/** + * Get a single-bit bit set (a flag) from a bit number 0..31. + * @stable ICU 2.1 + */ +#define U_MASK(x) ((uint32_t)1<<(x)) + +/** + * Selection constants for Unicode properties. + * These constants are used in functions like u_hasBinaryProperty to select + * one of the Unicode properties. + * + * The properties APIs are intended to reflect Unicode properties as defined + * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR). + * For details about the properties see http://www.unicode.org/ucd/ . + * For names of Unicode properties see the UCD file PropertyAliases.txt. + * + * Important: If ICU is built with UCD files from Unicode versions below, e.g., 3.2, + * then properties marked with "new in Unicode 3.2" are not or not fully available. + * Check u_getUnicodeVersion to be sure. + * + * @see u_hasBinaryProperty + * @see u_getIntPropertyValue + * @see u_getUnicodeVersion + * @stable ICU 2.1 + */ +typedef enum UProperty { + /* + * Note: UProperty constants are parsed by preparseucd.py. + * It matches lines like + * UCHAR_=, + */ + + /* Note: Place UCHAR_ALPHABETIC before UCHAR_BINARY_START so that + debuggers display UCHAR_ALPHABETIC as the symbolic name for 0, + rather than UCHAR_BINARY_START. Likewise for other *_START + identifiers. */ + + /** Binary property Alphabetic. Same as u_isUAlphabetic, different from u_isalpha. + Lu+Ll+Lt+Lm+Lo+Nl+Other_Alphabetic @stable ICU 2.1 */ + UCHAR_ALPHABETIC=0, + /** First constant for binary Unicode properties. @stable ICU 2.1 */ + UCHAR_BINARY_START=UCHAR_ALPHABETIC, + /** Binary property ASCII_Hex_Digit. 0-9 A-F a-f @stable ICU 2.1 */ + UCHAR_ASCII_HEX_DIGIT=1, + /** Binary property Bidi_Control. + Format controls which have specific functions + in the Bidi Algorithm. @stable ICU 2.1 */ + UCHAR_BIDI_CONTROL=2, + /** Binary property Bidi_Mirrored. + Characters that may change display in RTL text. + Same as u_isMirrored. + See Bidi Algorithm, UTR 9. @stable ICU 2.1 */ + UCHAR_BIDI_MIRRORED=3, + /** Binary property Dash. Variations of dashes. @stable ICU 2.1 */ + UCHAR_DASH=4, + /** Binary property Default_Ignorable_Code_Point (new in Unicode 3.2). + Ignorable in most processing. + <2060..206F, FFF0..FFFB, E0000..E0FFF>+Other_Default_Ignorable_Code_Point+(Cf+Cc+Cs-White_Space) @stable ICU 2.1 */ + UCHAR_DEFAULT_IGNORABLE_CODE_POINT=5, + /** Binary property Deprecated (new in Unicode 3.2). + The usage of deprecated characters is strongly discouraged. @stable ICU 2.1 */ + UCHAR_DEPRECATED=6, + /** Binary property Diacritic. Characters that linguistically modify + the meaning of another character to which they apply. @stable ICU 2.1 */ + UCHAR_DIACRITIC=7, + /** Binary property Extender. + Extend the value or shape of a preceding alphabetic character, + e.g., length and iteration marks. @stable ICU 2.1 */ + UCHAR_EXTENDER=8, + /** Binary property Full_Composition_Exclusion. + CompositionExclusions.txt+Singleton Decompositions+ + Non-Starter Decompositions. @stable ICU 2.1 */ + UCHAR_FULL_COMPOSITION_EXCLUSION=9, + /** Binary property Grapheme_Base (new in Unicode 3.2). + For programmatic determination of grapheme cluster boundaries. + [0..10FFFF]-Cc-Cf-Cs-Co-Cn-Zl-Zp-Grapheme_Link-Grapheme_Extend-CGJ @stable ICU 2.1 */ + UCHAR_GRAPHEME_BASE=10, + /** Binary property Grapheme_Extend (new in Unicode 3.2). + For programmatic determination of grapheme cluster boundaries. + Me+Mn+Mc+Other_Grapheme_Extend-Grapheme_Link-CGJ @stable ICU 2.1 */ + UCHAR_GRAPHEME_EXTEND=11, + /** Binary property Grapheme_Link (new in Unicode 3.2). + For programmatic determination of grapheme cluster boundaries. @stable ICU 2.1 */ + UCHAR_GRAPHEME_LINK=12, + /** Binary property Hex_Digit. + Characters commonly used for hexadecimal numbers. @stable ICU 2.1 */ + UCHAR_HEX_DIGIT=13, + /** Binary property Hyphen. Dashes used to mark connections + between pieces of words, plus the Katakana middle dot. @stable ICU 2.1 */ + UCHAR_HYPHEN=14, + /** Binary property ID_Continue. + Characters that can continue an identifier. + DerivedCoreProperties.txt also says "NOTE: Cf characters should be filtered out." + ID_Start+Mn+Mc+Nd+Pc @stable ICU 2.1 */ + UCHAR_ID_CONTINUE=15, + /** Binary property ID_Start. + Characters that can start an identifier. + Lu+Ll+Lt+Lm+Lo+Nl @stable ICU 2.1 */ + UCHAR_ID_START=16, + /** Binary property Ideographic. + CJKV ideographs. @stable ICU 2.1 */ + UCHAR_IDEOGRAPHIC=17, + /** Binary property IDS_Binary_Operator (new in Unicode 3.2). + For programmatic determination of + Ideographic Description Sequences. @stable ICU 2.1 */ + UCHAR_IDS_BINARY_OPERATOR=18, + /** Binary property IDS_Trinary_Operator (new in Unicode 3.2). + For programmatic determination of + Ideographic Description Sequences. @stable ICU 2.1 */ + UCHAR_IDS_TRINARY_OPERATOR=19, + /** Binary property Join_Control. + Format controls for cursive joining and ligation. @stable ICU 2.1 */ + UCHAR_JOIN_CONTROL=20, + /** Binary property Logical_Order_Exception (new in Unicode 3.2). + Characters that do not use logical order and + require special handling in most processing. @stable ICU 2.1 */ + UCHAR_LOGICAL_ORDER_EXCEPTION=21, + /** Binary property Lowercase. Same as u_isULowercase, different from u_islower. + Ll+Other_Lowercase @stable ICU 2.1 */ + UCHAR_LOWERCASE=22, + /** Binary property Math. Sm+Other_Math @stable ICU 2.1 */ + UCHAR_MATH=23, + /** Binary property Noncharacter_Code_Point. + Code points that are explicitly defined as illegal + for the encoding of characters. @stable ICU 2.1 */ + UCHAR_NONCHARACTER_CODE_POINT=24, + /** Binary property Quotation_Mark. @stable ICU 2.1 */ + UCHAR_QUOTATION_MARK=25, + /** Binary property Radical (new in Unicode 3.2). + For programmatic determination of + Ideographic Description Sequences. @stable ICU 2.1 */ + UCHAR_RADICAL=26, + /** Binary property Soft_Dotted (new in Unicode 3.2). + Characters with a "soft dot", like i or j. + An accent placed on these characters causes + the dot to disappear. @stable ICU 2.1 */ + UCHAR_SOFT_DOTTED=27, + /** Binary property Terminal_Punctuation. + Punctuation characters that generally mark + the end of textual units. @stable ICU 2.1 */ + UCHAR_TERMINAL_PUNCTUATION=28, + /** Binary property Unified_Ideograph (new in Unicode 3.2). + For programmatic determination of + Ideographic Description Sequences. @stable ICU 2.1 */ + UCHAR_UNIFIED_IDEOGRAPH=29, + /** Binary property Uppercase. Same as u_isUUppercase, different from u_isupper. + Lu+Other_Uppercase @stable ICU 2.1 */ + UCHAR_UPPERCASE=30, + /** Binary property White_Space. + Same as u_isUWhiteSpace, different from u_isspace and u_isWhitespace. + Space characters+TAB+CR+LF-ZWSP-ZWNBSP @stable ICU 2.1 */ + UCHAR_WHITE_SPACE=31, + /** Binary property XID_Continue. + ID_Continue modified to allow closure under + normalization forms NFKC and NFKD. @stable ICU 2.1 */ + UCHAR_XID_CONTINUE=32, + /** Binary property XID_Start. ID_Start modified to allow + closure under normalization forms NFKC and NFKD. @stable ICU 2.1 */ + UCHAR_XID_START=33, + /** Binary property Case_Sensitive. Either the source of a case + mapping or _in_ the target of a case mapping. Not the same as + the general category Cased_Letter. @stable ICU 2.6 */ + UCHAR_CASE_SENSITIVE=34, + /** Binary property STerm (new in Unicode 4.0.1). + Sentence Terminal. Used in UAX #29: Text Boundaries + (http://www.unicode.org/reports/tr29/) + @stable ICU 3.0 */ + UCHAR_S_TERM=35, + /** Binary property Variation_Selector (new in Unicode 4.0.1). + Indicates all those characters that qualify as Variation Selectors. + For details on the behavior of these characters, + see StandardizedVariants.html and 15.6 Variation Selectors. + @stable ICU 3.0 */ + UCHAR_VARIATION_SELECTOR=36, + /** Binary property NFD_Inert. + ICU-specific property for characters that are inert under NFD, + i.e., they do not interact with adjacent characters. + See the documentation for the Normalizer2 class and the + Normalizer2::isInert() method. + @stable ICU 3.0 */ + UCHAR_NFD_INERT=37, + /** Binary property NFKD_Inert. + ICU-specific property for characters that are inert under NFKD, + i.e., they do not interact with adjacent characters. + See the documentation for the Normalizer2 class and the + Normalizer2::isInert() method. + @stable ICU 3.0 */ + UCHAR_NFKD_INERT=38, + /** Binary property NFC_Inert. + ICU-specific property for characters that are inert under NFC, + i.e., they do not interact with adjacent characters. + See the documentation for the Normalizer2 class and the + Normalizer2::isInert() method. + @stable ICU 3.0 */ + UCHAR_NFC_INERT=39, + /** Binary property NFKC_Inert. + ICU-specific property for characters that are inert under NFKC, + i.e., they do not interact with adjacent characters. + See the documentation for the Normalizer2 class and the + Normalizer2::isInert() method. + @stable ICU 3.0 */ + UCHAR_NFKC_INERT=40, + /** Binary Property Segment_Starter. + ICU-specific property for characters that are starters in terms of + Unicode normalization and combining character sequences. + They have ccc=0 and do not occur in non-initial position of the + canonical decomposition of any character + (like a-umlaut in NFD and a Jamo T in an NFD(Hangul LVT)). + ICU uses this property for segmenting a string for generating a set of + canonically equivalent strings, e.g. for canonical closure while + processing collation tailoring rules. + @stable ICU 3.0 */ + UCHAR_SEGMENT_STARTER=41, + /** Binary property Pattern_Syntax (new in Unicode 4.1). + See UAX #31 Identifier and Pattern Syntax + (http://www.unicode.org/reports/tr31/) + @stable ICU 3.4 */ + UCHAR_PATTERN_SYNTAX=42, + /** Binary property Pattern_White_Space (new in Unicode 4.1). + See UAX #31 Identifier and Pattern Syntax + (http://www.unicode.org/reports/tr31/) + @stable ICU 3.4 */ + UCHAR_PATTERN_WHITE_SPACE=43, + /** Binary property alnum (a C/POSIX character class). + Implemented according to the UTS #18 Annex C Standard Recommendation. + See the uchar.h file documentation. + @stable ICU 3.4 */ + UCHAR_POSIX_ALNUM=44, + /** Binary property blank (a C/POSIX character class). + Implemented according to the UTS #18 Annex C Standard Recommendation. + See the uchar.h file documentation. + @stable ICU 3.4 */ + UCHAR_POSIX_BLANK=45, + /** Binary property graph (a C/POSIX character class). + Implemented according to the UTS #18 Annex C Standard Recommendation. + See the uchar.h file documentation. + @stable ICU 3.4 */ + UCHAR_POSIX_GRAPH=46, + /** Binary property print (a C/POSIX character class). + Implemented according to the UTS #18 Annex C Standard Recommendation. + See the uchar.h file documentation. + @stable ICU 3.4 */ + UCHAR_POSIX_PRINT=47, + /** Binary property xdigit (a C/POSIX character class). + Implemented according to the UTS #18 Annex C Standard Recommendation. + See the uchar.h file documentation. + @stable ICU 3.4 */ + UCHAR_POSIX_XDIGIT=48, + /** Binary property Cased. For Lowercase, Uppercase and Titlecase characters. @stable ICU 4.4 */ + UCHAR_CASED=49, + /** Binary property Case_Ignorable. Used in context-sensitive case mappings. @stable ICU 4.4 */ + UCHAR_CASE_IGNORABLE=50, + /** Binary property Changes_When_Lowercased. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_LOWERCASED=51, + /** Binary property Changes_When_Uppercased. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_UPPERCASED=52, + /** Binary property Changes_When_Titlecased. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_TITLECASED=53, + /** Binary property Changes_When_Casefolded. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_CASEFOLDED=54, + /** Binary property Changes_When_Casemapped. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_CASEMAPPED=55, + /** Binary property Changes_When_NFKC_Casefolded. @stable ICU 4.4 */ + UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED=56, + /** One more than the last constant for binary Unicode properties. @stable ICU 2.1 */ + UCHAR_BINARY_LIMIT=61, + + /** Enumerated property Bidi_Class. + Same as u_charDirection, returns UCharDirection values. @stable ICU 2.2 */ + UCHAR_BIDI_CLASS=0x1000, + /** First constant for enumerated/integer Unicode properties. @stable ICU 2.2 */ + UCHAR_INT_START=UCHAR_BIDI_CLASS, + /** Enumerated property Block. + Same as ublock_getCode, returns UBlockCode values. @stable ICU 2.2 */ + UCHAR_BLOCK=0x1001, + /** Enumerated property Canonical_Combining_Class. + Same as u_getCombiningClass, returns 8-bit numeric values. @stable ICU 2.2 */ + UCHAR_CANONICAL_COMBINING_CLASS=0x1002, + /** Enumerated property Decomposition_Type. + Returns UDecompositionType values. @stable ICU 2.2 */ + UCHAR_DECOMPOSITION_TYPE=0x1003, + /** Enumerated property East_Asian_Width. + See http://www.unicode.org/reports/tr11/ + Returns UEastAsianWidth values. @stable ICU 2.2 */ + UCHAR_EAST_ASIAN_WIDTH=0x1004, + /** Enumerated property General_Category. + Same as u_charType, returns UCharCategory values. @stable ICU 2.2 */ + UCHAR_GENERAL_CATEGORY=0x1005, + /** Enumerated property Joining_Group. + Returns UJoiningGroup values. @stable ICU 2.2 */ + UCHAR_JOINING_GROUP=0x1006, + /** Enumerated property Joining_Type. + Returns UJoiningType values. @stable ICU 2.2 */ + UCHAR_JOINING_TYPE=0x1007, + /** Enumerated property Line_Break. + Returns ULineBreak values. @stable ICU 2.2 */ + UCHAR_LINE_BREAK=0x1008, + /** Enumerated property Numeric_Type. + Returns UNumericType values. @stable ICU 2.2 */ + UCHAR_NUMERIC_TYPE=0x1009, + /** Enumerated property Script. + Same as uscript_getScript, returns UScriptCode values. @stable ICU 2.2 */ + UCHAR_SCRIPT=0x100A, + /** Enumerated property Hangul_Syllable_Type, new in Unicode 4. + Returns UHangulSyllableType values. @stable ICU 2.6 */ + UCHAR_HANGUL_SYLLABLE_TYPE=0x100B, + /** Enumerated property NFD_Quick_Check. + Returns UNormalizationCheckResult values. @stable ICU 3.0 */ + UCHAR_NFD_QUICK_CHECK=0x100C, + /** Enumerated property NFKD_Quick_Check. + Returns UNormalizationCheckResult values. @stable ICU 3.0 */ + UCHAR_NFKD_QUICK_CHECK=0x100D, + /** Enumerated property NFC_Quick_Check. + Returns UNormalizationCheckResult values. @stable ICU 3.0 */ + UCHAR_NFC_QUICK_CHECK=0x100E, + /** Enumerated property NFKC_Quick_Check. + Returns UNormalizationCheckResult values. @stable ICU 3.0 */ + UCHAR_NFKC_QUICK_CHECK=0x100F, + /** Enumerated property Lead_Canonical_Combining_Class. + ICU-specific property for the ccc of the first code point + of the decomposition, or lccc(c)=ccc(NFD(c)[0]). + Useful for checking for canonically ordered text; + see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD . + Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */ + UCHAR_LEAD_CANONICAL_COMBINING_CLASS=0x1010, + /** Enumerated property Trail_Canonical_Combining_Class. + ICU-specific property for the ccc of the last code point + of the decomposition, or tccc(c)=ccc(NFD(c)[last]). + Useful for checking for canonically ordered text; + see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD . + Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */ + UCHAR_TRAIL_CANONICAL_COMBINING_CLASS=0x1011, + /** Enumerated property Grapheme_Cluster_Break (new in Unicode 4.1). + Used in UAX #29: Text Boundaries + (http://www.unicode.org/reports/tr29/) + Returns UGraphemeClusterBreak values. @stable ICU 3.4 */ + UCHAR_GRAPHEME_CLUSTER_BREAK=0x1012, + /** Enumerated property Sentence_Break (new in Unicode 4.1). + Used in UAX #29: Text Boundaries + (http://www.unicode.org/reports/tr29/) + Returns USentenceBreak values. @stable ICU 3.4 */ + UCHAR_SENTENCE_BREAK=0x1013, + /** Enumerated property Word_Break (new in Unicode 4.1). + Used in UAX #29: Text Boundaries + (http://www.unicode.org/reports/tr29/) + Returns UWordBreakValues values. @stable ICU 3.4 */ + UCHAR_WORD_BREAK=0x1014, + /** Enumerated property Bidi_Paired_Bracket_Type (new in Unicode 6.3). + Used in UAX #9: Unicode Bidirectional Algorithm + (http://www.unicode.org/reports/tr9/) + Returns UBidiPairedBracketType values. @stable ICU 52 */ + UCHAR_BIDI_PAIRED_BRACKET_TYPE=0x1015, + /** One more than the last constant for enumerated/integer Unicode properties. @stable ICU 2.2 */ + UCHAR_INT_LIMIT=0x1016, + + /** Bitmask property General_Category_Mask. + This is the General_Category property returned as a bit mask. + When used in u_getIntPropertyValue(c), same as U_MASK(u_charType(c)), + returns bit masks for UCharCategory values where exactly one bit is set. + When used with u_getPropertyValueName() and u_getPropertyValueEnum(), + a multi-bit mask is used for sets of categories like "Letters". + Mask values should be cast to uint32_t. + @stable ICU 2.4 */ + UCHAR_GENERAL_CATEGORY_MASK=0x2000, + /** First constant for bit-mask Unicode properties. @stable ICU 2.4 */ + UCHAR_MASK_START=UCHAR_GENERAL_CATEGORY_MASK, + /** One more than the last constant for bit-mask Unicode properties. @stable ICU 2.4 */ + UCHAR_MASK_LIMIT=0x2001, + + /** Double property Numeric_Value. + Corresponds to u_getNumericValue. @stable ICU 2.4 */ + UCHAR_NUMERIC_VALUE=0x3000, + /** First constant for double Unicode properties. @stable ICU 2.4 */ + UCHAR_DOUBLE_START=UCHAR_NUMERIC_VALUE, + /** One more than the last constant for double Unicode properties. @stable ICU 2.4 */ + UCHAR_DOUBLE_LIMIT=0x3001, + + /** String property Age. + Corresponds to u_charAge. @stable ICU 2.4 */ + UCHAR_AGE=0x4000, + /** First constant for string Unicode properties. @stable ICU 2.4 */ + UCHAR_STRING_START=UCHAR_AGE, + /** String property Bidi_Mirroring_Glyph. + Corresponds to u_charMirror. @stable ICU 2.4 */ + UCHAR_BIDI_MIRRORING_GLYPH=0x4001, + /** String property Case_Folding. + Corresponds to u_strFoldCase in ustring.h. @stable ICU 2.4 */ + UCHAR_CASE_FOLDING=0x4002, + /** String property Lowercase_Mapping. + Corresponds to u_strToLower in ustring.h. @stable ICU 2.4 */ + UCHAR_LOWERCASE_MAPPING=0x4004, + /** String property Name. + Corresponds to u_charName. @stable ICU 2.4 */ + UCHAR_NAME=0x4005, + /** String property Simple_Case_Folding. + Corresponds to u_foldCase. @stable ICU 2.4 */ + UCHAR_SIMPLE_CASE_FOLDING=0x4006, + /** String property Simple_Lowercase_Mapping. + Corresponds to u_tolower. @stable ICU 2.4 */ + UCHAR_SIMPLE_LOWERCASE_MAPPING=0x4007, + /** String property Simple_Titlecase_Mapping. + Corresponds to u_totitle. @stable ICU 2.4 */ + UCHAR_SIMPLE_TITLECASE_MAPPING=0x4008, + /** String property Simple_Uppercase_Mapping. + Corresponds to u_toupper. @stable ICU 2.4 */ + UCHAR_SIMPLE_UPPERCASE_MAPPING=0x4009, + /** String property Titlecase_Mapping. + Corresponds to u_strToTitle in ustring.h. @stable ICU 2.4 */ + UCHAR_TITLECASE_MAPPING=0x400A, + /** String property Uppercase_Mapping. + Corresponds to u_strToUpper in ustring.h. @stable ICU 2.4 */ + UCHAR_UPPERCASE_MAPPING=0x400C, + /** String property Bidi_Paired_Bracket (new in Unicode 6.3). + Corresponds to u_getBidiPairedBracket. @stable ICU 52 */ + UCHAR_BIDI_PAIRED_BRACKET=0x400D, + /** One more than the last constant for string Unicode properties. @stable ICU 2.4 */ + UCHAR_STRING_LIMIT=0x400E, + + /** Miscellaneous property Script_Extensions (new in Unicode 6.0). + Some characters are commonly used in multiple scripts. + For more information, see UAX #24: http://www.unicode.org/reports/tr24/. + Corresponds to uscript_hasScript and uscript_getScriptExtensions in uscript.h. + @stable ICU 4.6 */ + UCHAR_SCRIPT_EXTENSIONS=0x7000, + /** First constant for Unicode properties with unusual value types. @stable ICU 4.6 */ + UCHAR_OTHER_PROPERTY_START=UCHAR_SCRIPT_EXTENSIONS, + /** One more than the last constant for Unicode properties with unusual value types. + * @stable ICU 4.6 */ + UCHAR_OTHER_PROPERTY_LIMIT=0x7001, + /** Represents a nonexistent or invalid property or property value. @stable ICU 2.4 */ + UCHAR_INVALID_CODE = -1 +} UProperty; + +/** + * Data for enumerated Unicode general category types. + * See http://www.unicode.org/Public/UNIDATA/UnicodeData.html . + * @stable ICU 2.0 + */ +typedef enum UCharCategory +{ + /* + * Note: UCharCategory constants and their API comments are parsed by preparseucd.py. + * It matches pairs of lines like + * / ** comment... * / + * U_<[A-Z_]+> = , + */ + + /** Non-category for unassigned and non-character code points. @stable ICU 2.0 */ + U_UNASSIGNED = 0, + /** Cn "Other, Not Assigned (no characters in [UnicodeData.txt] have this property)" (same as U_UNASSIGNED!) @stable ICU 2.0 */ + U_GENERAL_OTHER_TYPES = 0, + /** Lu @stable ICU 2.0 */ + U_UPPERCASE_LETTER = 1, + /** Ll @stable ICU 2.0 */ + U_LOWERCASE_LETTER = 2, + /** Lt @stable ICU 2.0 */ + U_TITLECASE_LETTER = 3, + /** Lm @stable ICU 2.0 */ + U_MODIFIER_LETTER = 4, + /** Lo @stable ICU 2.0 */ + U_OTHER_LETTER = 5, + /** Mn @stable ICU 2.0 */ + U_NON_SPACING_MARK = 6, + /** Me @stable ICU 2.0 */ + U_ENCLOSING_MARK = 7, + /** Mc @stable ICU 2.0 */ + U_COMBINING_SPACING_MARK = 8, + /** Nd @stable ICU 2.0 */ + U_DECIMAL_DIGIT_NUMBER = 9, + /** Nl @stable ICU 2.0 */ + U_LETTER_NUMBER = 10, + /** No @stable ICU 2.0 */ + U_OTHER_NUMBER = 11, + /** Zs @stable ICU 2.0 */ + U_SPACE_SEPARATOR = 12, + /** Zl @stable ICU 2.0 */ + U_LINE_SEPARATOR = 13, + /** Zp @stable ICU 2.0 */ + U_PARAGRAPH_SEPARATOR = 14, + /** Cc @stable ICU 2.0 */ + U_CONTROL_CHAR = 15, + /** Cf @stable ICU 2.0 */ + U_FORMAT_CHAR = 16, + /** Co @stable ICU 2.0 */ + U_PRIVATE_USE_CHAR = 17, + /** Cs @stable ICU 2.0 */ + U_SURROGATE = 18, + /** Pd @stable ICU 2.0 */ + U_DASH_PUNCTUATION = 19, + /** Ps @stable ICU 2.0 */ + U_START_PUNCTUATION = 20, + /** Pe @stable ICU 2.0 */ + U_END_PUNCTUATION = 21, + /** Pc @stable ICU 2.0 */ + U_CONNECTOR_PUNCTUATION = 22, + /** Po @stable ICU 2.0 */ + U_OTHER_PUNCTUATION = 23, + /** Sm @stable ICU 2.0 */ + U_MATH_SYMBOL = 24, + /** Sc @stable ICU 2.0 */ + U_CURRENCY_SYMBOL = 25, + /** Sk @stable ICU 2.0 */ + U_MODIFIER_SYMBOL = 26, + /** So @stable ICU 2.0 */ + U_OTHER_SYMBOL = 27, + /** Pi @stable ICU 2.0 */ + U_INITIAL_PUNCTUATION = 28, + /** Pf @stable ICU 2.0 */ + U_FINAL_PUNCTUATION = 29, + /** One higher than the last enum UCharCategory constant. @stable ICU 2.0 */ + U_CHAR_CATEGORY_COUNT +} UCharCategory; + +/** + * U_GC_XX_MASK constants are bit flags corresponding to Unicode + * general category values. + * For each category, the nth bit is set if the numeric value of the + * corresponding UCharCategory constant is n. + * + * There are also some U_GC_Y_MASK constants for groups of general categories + * like L for all letter categories. + * + * @see u_charType + * @see U_GET_GC_MASK + * @see UCharCategory + * @stable ICU 2.1 + */ +#define U_GC_CN_MASK U_MASK(U_GENERAL_OTHER_TYPES) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_LU_MASK U_MASK(U_UPPERCASE_LETTER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_LL_MASK U_MASK(U_LOWERCASE_LETTER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_LT_MASK U_MASK(U_TITLECASE_LETTER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_LM_MASK U_MASK(U_MODIFIER_LETTER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_LO_MASK U_MASK(U_OTHER_LETTER) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_MN_MASK U_MASK(U_NON_SPACING_MARK) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_ME_MASK U_MASK(U_ENCLOSING_MARK) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_MC_MASK U_MASK(U_COMBINING_SPACING_MARK) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_ND_MASK U_MASK(U_DECIMAL_DIGIT_NUMBER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_NL_MASK U_MASK(U_LETTER_NUMBER) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_NO_MASK U_MASK(U_OTHER_NUMBER) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_ZS_MASK U_MASK(U_SPACE_SEPARATOR) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_ZL_MASK U_MASK(U_LINE_SEPARATOR) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_ZP_MASK U_MASK(U_PARAGRAPH_SEPARATOR) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_CC_MASK U_MASK(U_CONTROL_CHAR) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_CF_MASK U_MASK(U_FORMAT_CHAR) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_CO_MASK U_MASK(U_PRIVATE_USE_CHAR) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_CS_MASK U_MASK(U_SURROGATE) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PD_MASK U_MASK(U_DASH_PUNCTUATION) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PS_MASK U_MASK(U_START_PUNCTUATION) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PE_MASK U_MASK(U_END_PUNCTUATION) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PC_MASK U_MASK(U_CONNECTOR_PUNCTUATION) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PO_MASK U_MASK(U_OTHER_PUNCTUATION) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_SM_MASK U_MASK(U_MATH_SYMBOL) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_SC_MASK U_MASK(U_CURRENCY_SYMBOL) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_SK_MASK U_MASK(U_MODIFIER_SYMBOL) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_SO_MASK U_MASK(U_OTHER_SYMBOL) + +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PI_MASK U_MASK(U_INITIAL_PUNCTUATION) +/** Mask constant for a UCharCategory. @stable ICU 2.1 */ +#define U_GC_PF_MASK U_MASK(U_FINAL_PUNCTUATION) + + +/** Mask constant for multiple UCharCategory bits (L Letters). @stable ICU 2.1 */ +#define U_GC_L_MASK \ + (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK|U_GC_LM_MASK|U_GC_LO_MASK) + +/** Mask constant for multiple UCharCategory bits (LC Cased Letters). @stable ICU 2.1 */ +#define U_GC_LC_MASK \ + (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK) + +/** Mask constant for multiple UCharCategory bits (M Marks). @stable ICU 2.1 */ +#define U_GC_M_MASK (U_GC_MN_MASK|U_GC_ME_MASK|U_GC_MC_MASK) + +/** Mask constant for multiple UCharCategory bits (N Numbers). @stable ICU 2.1 */ +#define U_GC_N_MASK (U_GC_ND_MASK|U_GC_NL_MASK|U_GC_NO_MASK) + +/** Mask constant for multiple UCharCategory bits (Z Separators). @stable ICU 2.1 */ +#define U_GC_Z_MASK (U_GC_ZS_MASK|U_GC_ZL_MASK|U_GC_ZP_MASK) + +/** Mask constant for multiple UCharCategory bits (C Others). @stable ICU 2.1 */ +#define U_GC_C_MASK \ + (U_GC_CN_MASK|U_GC_CC_MASK|U_GC_CF_MASK|U_GC_CO_MASK|U_GC_CS_MASK) + +/** Mask constant for multiple UCharCategory bits (P Punctuation). @stable ICU 2.1 */ +#define U_GC_P_MASK \ + (U_GC_PD_MASK|U_GC_PS_MASK|U_GC_PE_MASK|U_GC_PC_MASK|U_GC_PO_MASK| \ + U_GC_PI_MASK|U_GC_PF_MASK) + +/** Mask constant for multiple UCharCategory bits (S Symbols). @stable ICU 2.1 */ +#define U_GC_S_MASK (U_GC_SM_MASK|U_GC_SC_MASK|U_GC_SK_MASK|U_GC_SO_MASK) + +/** + * This specifies the language directional property of a character set. + * @stable ICU 2.0 + */ +typedef enum UCharDirection { + /* + * Note: UCharDirection constants and their API comments are parsed by preparseucd.py. + * It matches pairs of lines like + * / ** comment... * / + * U_<[A-Z_]+> = , + */ + + /** L @stable ICU 2.0 */ + U_LEFT_TO_RIGHT = 0, + /** R @stable ICU 2.0 */ + U_RIGHT_TO_LEFT = 1, + /** EN @stable ICU 2.0 */ + U_EUROPEAN_NUMBER = 2, + /** ES @stable ICU 2.0 */ + U_EUROPEAN_NUMBER_SEPARATOR = 3, + /** ET @stable ICU 2.0 */ + U_EUROPEAN_NUMBER_TERMINATOR = 4, + /** AN @stable ICU 2.0 */ + U_ARABIC_NUMBER = 5, + /** CS @stable ICU 2.0 */ + U_COMMON_NUMBER_SEPARATOR = 6, + /** B @stable ICU 2.0 */ + U_BLOCK_SEPARATOR = 7, + /** S @stable ICU 2.0 */ + U_SEGMENT_SEPARATOR = 8, + /** WS @stable ICU 2.0 */ + U_WHITE_SPACE_NEUTRAL = 9, + /** ON @stable ICU 2.0 */ + U_OTHER_NEUTRAL = 10, + /** LRE @stable ICU 2.0 */ + U_LEFT_TO_RIGHT_EMBEDDING = 11, + /** LRO @stable ICU 2.0 */ + U_LEFT_TO_RIGHT_OVERRIDE = 12, + /** AL @stable ICU 2.0 */ + U_RIGHT_TO_LEFT_ARABIC = 13, + /** RLE @stable ICU 2.0 */ + U_RIGHT_TO_LEFT_EMBEDDING = 14, + /** RLO @stable ICU 2.0 */ + U_RIGHT_TO_LEFT_OVERRIDE = 15, + /** PDF @stable ICU 2.0 */ + U_POP_DIRECTIONAL_FORMAT = 16, + /** NSM @stable ICU 2.0 */ + U_DIR_NON_SPACING_MARK = 17, + /** BN @stable ICU 2.0 */ + U_BOUNDARY_NEUTRAL = 18, + /** FSI @stable ICU 52 */ + U_FIRST_STRONG_ISOLATE = 19, + /** LRI @stable ICU 52 */ + U_LEFT_TO_RIGHT_ISOLATE = 20, + /** RLI @stable ICU 52 */ + U_RIGHT_TO_LEFT_ISOLATE = 21, + /** PDI @stable ICU 52 */ + U_POP_DIRECTIONAL_ISOLATE = 22, + /** @stable ICU 2.0 */ + U_CHAR_DIRECTION_COUNT +} UCharDirection; + +/** + * Bidi Paired Bracket Type constants. + * + * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE + * @stable ICU 52 + */ +typedef enum UBidiPairedBracketType { + /* + * Note: UBidiPairedBracketType constants are parsed by preparseucd.py. + * It matches lines like + * U_BPT_ + */ + + /** Not a paired bracket. @stable ICU 52 */ + U_BPT_NONE, + /** Open paired bracket. @stable ICU 52 */ + U_BPT_OPEN, + /** Close paired bracket. @stable ICU 52 */ + U_BPT_CLOSE, + /** @stable ICU 52 */ + U_BPT_COUNT /* 3 */ +} UBidiPairedBracketType; + +/** + * Constants for Unicode blocks, see the Unicode Data file Blocks.txt + * @stable ICU 2.0 + */ +enum UBlockCode { + /* + * Note: UBlockCode constants are parsed by preparseucd.py. + * It matches lines like + * UBLOCK_ = , + */ + + /** New No_Block value in Unicode 4. @stable ICU 2.6 */ + UBLOCK_NO_BLOCK = 0, /*[none]*/ /* Special range indicating No_Block */ + + /** @stable ICU 2.0 */ + UBLOCK_BASIC_LATIN = 1, /*[0000]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LATIN_1_SUPPLEMENT=2, /*[0080]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LATIN_EXTENDED_A =3, /*[0100]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LATIN_EXTENDED_B =4, /*[0180]*/ + + /** @stable ICU 2.0 */ + UBLOCK_IPA_EXTENSIONS =5, /*[0250]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SPACING_MODIFIER_LETTERS =6, /*[02B0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_COMBINING_DIACRITICAL_MARKS =7, /*[0300]*/ + + /** + * Unicode 3.2 renames this block to "Greek and Coptic". + * @stable ICU 2.0 + */ + UBLOCK_GREEK =8, /*[0370]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CYRILLIC =9, /*[0400]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ARMENIAN =10, /*[0530]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HEBREW =11, /*[0590]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ARABIC =12, /*[0600]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SYRIAC =13, /*[0700]*/ + + /** @stable ICU 2.0 */ + UBLOCK_THAANA =14, /*[0780]*/ + + /** @stable ICU 2.0 */ + UBLOCK_DEVANAGARI =15, /*[0900]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BENGALI =16, /*[0980]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GURMUKHI =17, /*[0A00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GUJARATI =18, /*[0A80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ORIYA =19, /*[0B00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_TAMIL =20, /*[0B80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_TELUGU =21, /*[0C00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_KANNADA =22, /*[0C80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MALAYALAM =23, /*[0D00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SINHALA =24, /*[0D80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_THAI =25, /*[0E00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LAO =26, /*[0E80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_TIBETAN =27, /*[0F00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MYANMAR =28, /*[1000]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GEORGIAN =29, /*[10A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HANGUL_JAMO =30, /*[1100]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ETHIOPIC =31, /*[1200]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CHEROKEE =32, /*[13A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS =33, /*[1400]*/ + + /** @stable ICU 2.0 */ + UBLOCK_OGHAM =34, /*[1680]*/ + + /** @stable ICU 2.0 */ + UBLOCK_RUNIC =35, /*[16A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_KHMER =36, /*[1780]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MONGOLIAN =37, /*[1800]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LATIN_EXTENDED_ADDITIONAL =38, /*[1E00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GREEK_EXTENDED =39, /*[1F00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GENERAL_PUNCTUATION =40, /*[2000]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SUPERSCRIPTS_AND_SUBSCRIPTS =41, /*[2070]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CURRENCY_SYMBOLS =42, /*[20A0]*/ + + /** + * Unicode 3.2 renames this block to "Combining Diacritical Marks for Symbols". + * @stable ICU 2.0 + */ + UBLOCK_COMBINING_MARKS_FOR_SYMBOLS =43, /*[20D0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LETTERLIKE_SYMBOLS =44, /*[2100]*/ + + /** @stable ICU 2.0 */ + UBLOCK_NUMBER_FORMS =45, /*[2150]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ARROWS =46, /*[2190]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MATHEMATICAL_OPERATORS =47, /*[2200]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MISCELLANEOUS_TECHNICAL =48, /*[2300]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CONTROL_PICTURES =49, /*[2400]*/ + + /** @stable ICU 2.0 */ + UBLOCK_OPTICAL_CHARACTER_RECOGNITION =50, /*[2440]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ENCLOSED_ALPHANUMERICS =51, /*[2460]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BOX_DRAWING =52, /*[2500]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BLOCK_ELEMENTS =53, /*[2580]*/ + + /** @stable ICU 2.0 */ + UBLOCK_GEOMETRIC_SHAPES =54, /*[25A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_MISCELLANEOUS_SYMBOLS =55, /*[2600]*/ + + /** @stable ICU 2.0 */ + UBLOCK_DINGBATS =56, /*[2700]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BRAILLE_PATTERNS =57, /*[2800]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_RADICALS_SUPPLEMENT =58, /*[2E80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_KANGXI_RADICALS =59, /*[2F00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_IDEOGRAPHIC_DESCRIPTION_CHARACTERS =60, /*[2FF0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_SYMBOLS_AND_PUNCTUATION =61, /*[3000]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HIRAGANA =62, /*[3040]*/ + + /** @stable ICU 2.0 */ + UBLOCK_KATAKANA =63, /*[30A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BOPOMOFO =64, /*[3100]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HANGUL_COMPATIBILITY_JAMO =65, /*[3130]*/ + + /** @stable ICU 2.0 */ + UBLOCK_KANBUN =66, /*[3190]*/ + + /** @stable ICU 2.0 */ + UBLOCK_BOPOMOFO_EXTENDED =67, /*[31A0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ENCLOSED_CJK_LETTERS_AND_MONTHS =68, /*[3200]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_COMPATIBILITY =69, /*[3300]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A =70, /*[3400]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS =71, /*[4E00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_YI_SYLLABLES =72, /*[A000]*/ + + /** @stable ICU 2.0 */ + UBLOCK_YI_RADICALS =73, /*[A490]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HANGUL_SYLLABLES =74, /*[AC00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HIGH_SURROGATES =75, /*[D800]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HIGH_PRIVATE_USE_SURROGATES =76, /*[DB80]*/ + + /** @stable ICU 2.0 */ + UBLOCK_LOW_SURROGATES =77, /*[DC00]*/ + + /** + * Same as UBLOCK_PRIVATE_USE. + * Until Unicode 3.1.1, the corresponding block name was "Private Use", + * and multiple code point ranges had this block. + * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and + * adds separate blocks for the supplementary PUAs. + * + * @stable ICU 2.0 + */ + UBLOCK_PRIVATE_USE_AREA =78, /*[E000]*/ + /** + * Same as UBLOCK_PRIVATE_USE_AREA. + * Until Unicode 3.1.1, the corresponding block name was "Private Use", + * and multiple code point ranges had this block. + * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and + * adds separate blocks for the supplementary PUAs. + * + * @stable ICU 2.0 + */ + UBLOCK_PRIVATE_USE = UBLOCK_PRIVATE_USE_AREA, + + /** @stable ICU 2.0 */ + UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS =79, /*[F900]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ALPHABETIC_PRESENTATION_FORMS =80, /*[FB00]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ARABIC_PRESENTATION_FORMS_A =81, /*[FB50]*/ + + /** @stable ICU 2.0 */ + UBLOCK_COMBINING_HALF_MARKS =82, /*[FE20]*/ + + /** @stable ICU 2.0 */ + UBLOCK_CJK_COMPATIBILITY_FORMS =83, /*[FE30]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SMALL_FORM_VARIANTS =84, /*[FE50]*/ + + /** @stable ICU 2.0 */ + UBLOCK_ARABIC_PRESENTATION_FORMS_B =85, /*[FE70]*/ + + /** @stable ICU 2.0 */ + UBLOCK_SPECIALS =86, /*[FFF0]*/ + + /** @stable ICU 2.0 */ + UBLOCK_HALFWIDTH_AND_FULLWIDTH_FORMS =87, /*[FF00]*/ + + /* New blocks in Unicode 3.1 */ + + /** @stable ICU 2.0 */ + UBLOCK_OLD_ITALIC = 88, /*[10300]*/ + /** @stable ICU 2.0 */ + UBLOCK_GOTHIC = 89, /*[10330]*/ + /** @stable ICU 2.0 */ + UBLOCK_DESERET = 90, /*[10400]*/ + /** @stable ICU 2.0 */ + UBLOCK_BYZANTINE_MUSICAL_SYMBOLS = 91, /*[1D000]*/ + /** @stable ICU 2.0 */ + UBLOCK_MUSICAL_SYMBOLS = 92, /*[1D100]*/ + /** @stable ICU 2.0 */ + UBLOCK_MATHEMATICAL_ALPHANUMERIC_SYMBOLS = 93, /*[1D400]*/ + /** @stable ICU 2.0 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B = 94, /*[20000]*/ + /** @stable ICU 2.0 */ + UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = 95, /*[2F800]*/ + /** @stable ICU 2.0 */ + UBLOCK_TAGS = 96, /*[E0000]*/ + + /* New blocks in Unicode 3.2 */ + + /** @stable ICU 3.0 */ + UBLOCK_CYRILLIC_SUPPLEMENT = 97, /*[0500]*/ + /** + * Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement". + * @stable ICU 2.2 + */ + UBLOCK_CYRILLIC_SUPPLEMENTARY = UBLOCK_CYRILLIC_SUPPLEMENT, + /** @stable ICU 2.2 */ + UBLOCK_TAGALOG = 98, /*[1700]*/ + /** @stable ICU 2.2 */ + UBLOCK_HANUNOO = 99, /*[1720]*/ + /** @stable ICU 2.2 */ + UBLOCK_BUHID = 100, /*[1740]*/ + /** @stable ICU 2.2 */ + UBLOCK_TAGBANWA = 101, /*[1760]*/ + /** @stable ICU 2.2 */ + UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = 102, /*[27C0]*/ + /** @stable ICU 2.2 */ + UBLOCK_SUPPLEMENTAL_ARROWS_A = 103, /*[27F0]*/ + /** @stable ICU 2.2 */ + UBLOCK_SUPPLEMENTAL_ARROWS_B = 104, /*[2900]*/ + /** @stable ICU 2.2 */ + UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = 105, /*[2980]*/ + /** @stable ICU 2.2 */ + UBLOCK_SUPPLEMENTAL_MATHEMATICAL_OPERATORS = 106, /*[2A00]*/ + /** @stable ICU 2.2 */ + UBLOCK_KATAKANA_PHONETIC_EXTENSIONS = 107, /*[31F0]*/ + /** @stable ICU 2.2 */ + UBLOCK_VARIATION_SELECTORS = 108, /*[FE00]*/ + /** @stable ICU 2.2 */ + UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_A = 109, /*[F0000]*/ + /** @stable ICU 2.2 */ + UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_B = 110, /*[100000]*/ + + /* New blocks in Unicode 4 */ + + /** @stable ICU 2.6 */ + UBLOCK_LIMBU = 111, /*[1900]*/ + /** @stable ICU 2.6 */ + UBLOCK_TAI_LE = 112, /*[1950]*/ + /** @stable ICU 2.6 */ + UBLOCK_KHMER_SYMBOLS = 113, /*[19E0]*/ + /** @stable ICU 2.6 */ + UBLOCK_PHONETIC_EXTENSIONS = 114, /*[1D00]*/ + /** @stable ICU 2.6 */ + UBLOCK_MISCELLANEOUS_SYMBOLS_AND_ARROWS = 115, /*[2B00]*/ + /** @stable ICU 2.6 */ + UBLOCK_YIJING_HEXAGRAM_SYMBOLS = 116, /*[4DC0]*/ + /** @stable ICU 2.6 */ + UBLOCK_LINEAR_B_SYLLABARY = 117, /*[10000]*/ + /** @stable ICU 2.6 */ + UBLOCK_LINEAR_B_IDEOGRAMS = 118, /*[10080]*/ + /** @stable ICU 2.6 */ + UBLOCK_AEGEAN_NUMBERS = 119, /*[10100]*/ + /** @stable ICU 2.6 */ + UBLOCK_UGARITIC = 120, /*[10380]*/ + /** @stable ICU 2.6 */ + UBLOCK_SHAVIAN = 121, /*[10450]*/ + /** @stable ICU 2.6 */ + UBLOCK_OSMANYA = 122, /*[10480]*/ + /** @stable ICU 2.6 */ + UBLOCK_CYPRIOT_SYLLABARY = 123, /*[10800]*/ + /** @stable ICU 2.6 */ + UBLOCK_TAI_XUAN_JING_SYMBOLS = 124, /*[1D300]*/ + /** @stable ICU 2.6 */ + UBLOCK_VARIATION_SELECTORS_SUPPLEMENT = 125, /*[E0100]*/ + + /* New blocks in Unicode 4.1 */ + + /** @stable ICU 3.4 */ + UBLOCK_ANCIENT_GREEK_MUSICAL_NOTATION = 126, /*[1D200]*/ + /** @stable ICU 3.4 */ + UBLOCK_ANCIENT_GREEK_NUMBERS = 127, /*[10140]*/ + /** @stable ICU 3.4 */ + UBLOCK_ARABIC_SUPPLEMENT = 128, /*[0750]*/ + /** @stable ICU 3.4 */ + UBLOCK_BUGINESE = 129, /*[1A00]*/ + /** @stable ICU 3.4 */ + UBLOCK_CJK_STROKES = 130, /*[31C0]*/ + /** @stable ICU 3.4 */ + UBLOCK_COMBINING_DIACRITICAL_MARKS_SUPPLEMENT = 131, /*[1DC0]*/ + /** @stable ICU 3.4 */ + UBLOCK_COPTIC = 132, /*[2C80]*/ + /** @stable ICU 3.4 */ + UBLOCK_ETHIOPIC_EXTENDED = 133, /*[2D80]*/ + /** @stable ICU 3.4 */ + UBLOCK_ETHIOPIC_SUPPLEMENT = 134, /*[1380]*/ + /** @stable ICU 3.4 */ + UBLOCK_GEORGIAN_SUPPLEMENT = 135, /*[2D00]*/ + /** @stable ICU 3.4 */ + UBLOCK_GLAGOLITIC = 136, /*[2C00]*/ + /** @stable ICU 3.4 */ + UBLOCK_KHAROSHTHI = 137, /*[10A00]*/ + /** @stable ICU 3.4 */ + UBLOCK_MODIFIER_TONE_LETTERS = 138, /*[A700]*/ + /** @stable ICU 3.4 */ + UBLOCK_NEW_TAI_LUE = 139, /*[1980]*/ + /** @stable ICU 3.4 */ + UBLOCK_OLD_PERSIAN = 140, /*[103A0]*/ + /** @stable ICU 3.4 */ + UBLOCK_PHONETIC_EXTENSIONS_SUPPLEMENT = 141, /*[1D80]*/ + /** @stable ICU 3.4 */ + UBLOCK_SUPPLEMENTAL_PUNCTUATION = 142, /*[2E00]*/ + /** @stable ICU 3.4 */ + UBLOCK_SYLOTI_NAGRI = 143, /*[A800]*/ + /** @stable ICU 3.4 */ + UBLOCK_TIFINAGH = 144, /*[2D30]*/ + /** @stable ICU 3.4 */ + UBLOCK_VERTICAL_FORMS = 145, /*[FE10]*/ + + /* New blocks in Unicode 5.0 */ + + /** @stable ICU 3.6 */ + UBLOCK_NKO = 146, /*[07C0]*/ + /** @stable ICU 3.6 */ + UBLOCK_BALINESE = 147, /*[1B00]*/ + /** @stable ICU 3.6 */ + UBLOCK_LATIN_EXTENDED_C = 148, /*[2C60]*/ + /** @stable ICU 3.6 */ + UBLOCK_LATIN_EXTENDED_D = 149, /*[A720]*/ + /** @stable ICU 3.6 */ + UBLOCK_PHAGS_PA = 150, /*[A840]*/ + /** @stable ICU 3.6 */ + UBLOCK_PHOENICIAN = 151, /*[10900]*/ + /** @stable ICU 3.6 */ + UBLOCK_CUNEIFORM = 152, /*[12000]*/ + /** @stable ICU 3.6 */ + UBLOCK_CUNEIFORM_NUMBERS_AND_PUNCTUATION = 153, /*[12400]*/ + /** @stable ICU 3.6 */ + UBLOCK_COUNTING_ROD_NUMERALS = 154, /*[1D360]*/ + + /* New blocks in Unicode 5.1 */ + + /** @stable ICU 4.0 */ + UBLOCK_SUNDANESE = 155, /*[1B80]*/ + /** @stable ICU 4.0 */ + UBLOCK_LEPCHA = 156, /*[1C00]*/ + /** @stable ICU 4.0 */ + UBLOCK_OL_CHIKI = 157, /*[1C50]*/ + /** @stable ICU 4.0 */ + UBLOCK_CYRILLIC_EXTENDED_A = 158, /*[2DE0]*/ + /** @stable ICU 4.0 */ + UBLOCK_VAI = 159, /*[A500]*/ + /** @stable ICU 4.0 */ + UBLOCK_CYRILLIC_EXTENDED_B = 160, /*[A640]*/ + /** @stable ICU 4.0 */ + UBLOCK_SAURASHTRA = 161, /*[A880]*/ + /** @stable ICU 4.0 */ + UBLOCK_KAYAH_LI = 162, /*[A900]*/ + /** @stable ICU 4.0 */ + UBLOCK_REJANG = 163, /*[A930]*/ + /** @stable ICU 4.0 */ + UBLOCK_CHAM = 164, /*[AA00]*/ + /** @stable ICU 4.0 */ + UBLOCK_ANCIENT_SYMBOLS = 165, /*[10190]*/ + /** @stable ICU 4.0 */ + UBLOCK_PHAISTOS_DISC = 166, /*[101D0]*/ + /** @stable ICU 4.0 */ + UBLOCK_LYCIAN = 167, /*[10280]*/ + /** @stable ICU 4.0 */ + UBLOCK_CARIAN = 168, /*[102A0]*/ + /** @stable ICU 4.0 */ + UBLOCK_LYDIAN = 169, /*[10920]*/ + /** @stable ICU 4.0 */ + UBLOCK_MAHJONG_TILES = 170, /*[1F000]*/ + /** @stable ICU 4.0 */ + UBLOCK_DOMINO_TILES = 171, /*[1F030]*/ + + /* New blocks in Unicode 5.2 */ + + /** @stable ICU 4.4 */ + UBLOCK_SAMARITAN = 172, /*[0800]*/ + /** @stable ICU 4.4 */ + UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = 173, /*[18B0]*/ + /** @stable ICU 4.4 */ + UBLOCK_TAI_THAM = 174, /*[1A20]*/ + /** @stable ICU 4.4 */ + UBLOCK_VEDIC_EXTENSIONS = 175, /*[1CD0]*/ + /** @stable ICU 4.4 */ + UBLOCK_LISU = 176, /*[A4D0]*/ + /** @stable ICU 4.4 */ + UBLOCK_BAMUM = 177, /*[A6A0]*/ + /** @stable ICU 4.4 */ + UBLOCK_COMMON_INDIC_NUMBER_FORMS = 178, /*[A830]*/ + /** @stable ICU 4.4 */ + UBLOCK_DEVANAGARI_EXTENDED = 179, /*[A8E0]*/ + /** @stable ICU 4.4 */ + UBLOCK_HANGUL_JAMO_EXTENDED_A = 180, /*[A960]*/ + /** @stable ICU 4.4 */ + UBLOCK_JAVANESE = 181, /*[A980]*/ + /** @stable ICU 4.4 */ + UBLOCK_MYANMAR_EXTENDED_A = 182, /*[AA60]*/ + /** @stable ICU 4.4 */ + UBLOCK_TAI_VIET = 183, /*[AA80]*/ + /** @stable ICU 4.4 */ + UBLOCK_MEETEI_MAYEK = 184, /*[ABC0]*/ + /** @stable ICU 4.4 */ + UBLOCK_HANGUL_JAMO_EXTENDED_B = 185, /*[D7B0]*/ + /** @stable ICU 4.4 */ + UBLOCK_IMPERIAL_ARAMAIC = 186, /*[10840]*/ + /** @stable ICU 4.4 */ + UBLOCK_OLD_SOUTH_ARABIAN = 187, /*[10A60]*/ + /** @stable ICU 4.4 */ + UBLOCK_AVESTAN = 188, /*[10B00]*/ + /** @stable ICU 4.4 */ + UBLOCK_INSCRIPTIONAL_PARTHIAN = 189, /*[10B40]*/ + /** @stable ICU 4.4 */ + UBLOCK_INSCRIPTIONAL_PAHLAVI = 190, /*[10B60]*/ + /** @stable ICU 4.4 */ + UBLOCK_OLD_TURKIC = 191, /*[10C00]*/ + /** @stable ICU 4.4 */ + UBLOCK_RUMI_NUMERAL_SYMBOLS = 192, /*[10E60]*/ + /** @stable ICU 4.4 */ + UBLOCK_KAITHI = 193, /*[11080]*/ + /** @stable ICU 4.4 */ + UBLOCK_EGYPTIAN_HIEROGLYPHS = 194, /*[13000]*/ + /** @stable ICU 4.4 */ + UBLOCK_ENCLOSED_ALPHANUMERIC_SUPPLEMENT = 195, /*[1F100]*/ + /** @stable ICU 4.4 */ + UBLOCK_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = 196, /*[1F200]*/ + /** @stable ICU 4.4 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = 197, /*[2A700]*/ + + /* New blocks in Unicode 6.0 */ + + /** @stable ICU 4.6 */ + UBLOCK_MANDAIC = 198, /*[0840]*/ + /** @stable ICU 4.6 */ + UBLOCK_BATAK = 199, /*[1BC0]*/ + /** @stable ICU 4.6 */ + UBLOCK_ETHIOPIC_EXTENDED_A = 200, /*[AB00]*/ + /** @stable ICU 4.6 */ + UBLOCK_BRAHMI = 201, /*[11000]*/ + /** @stable ICU 4.6 */ + UBLOCK_BAMUM_SUPPLEMENT = 202, /*[16800]*/ + /** @stable ICU 4.6 */ + UBLOCK_KANA_SUPPLEMENT = 203, /*[1B000]*/ + /** @stable ICU 4.6 */ + UBLOCK_PLAYING_CARDS = 204, /*[1F0A0]*/ + /** @stable ICU 4.6 */ + UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS = 205, /*[1F300]*/ + /** @stable ICU 4.6 */ + UBLOCK_EMOTICONS = 206, /*[1F600]*/ + /** @stable ICU 4.6 */ + UBLOCK_TRANSPORT_AND_MAP_SYMBOLS = 207, /*[1F680]*/ + /** @stable ICU 4.6 */ + UBLOCK_ALCHEMICAL_SYMBOLS = 208, /*[1F700]*/ + /** @stable ICU 4.6 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D = 209, /*[2B740]*/ + + /* New blocks in Unicode 6.1 */ + + /** @stable ICU 49 */ + UBLOCK_ARABIC_EXTENDED_A = 210, /*[08A0]*/ + /** @stable ICU 49 */ + UBLOCK_ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS = 211, /*[1EE00]*/ + /** @stable ICU 49 */ + UBLOCK_CHAKMA = 212, /*[11100]*/ + /** @stable ICU 49 */ + UBLOCK_MEETEI_MAYEK_EXTENSIONS = 213, /*[AAE0]*/ + /** @stable ICU 49 */ + UBLOCK_MEROITIC_CURSIVE = 214, /*[109A0]*/ + /** @stable ICU 49 */ + UBLOCK_MEROITIC_HIEROGLYPHS = 215, /*[10980]*/ + /** @stable ICU 49 */ + UBLOCK_MIAO = 216, /*[16F00]*/ + /** @stable ICU 49 */ + UBLOCK_SHARADA = 217, /*[11180]*/ + /** @stable ICU 49 */ + UBLOCK_SORA_SOMPENG = 218, /*[110D0]*/ + /** @stable ICU 49 */ + UBLOCK_SUNDANESE_SUPPLEMENT = 219, /*[1CC0]*/ + /** @stable ICU 49 */ + UBLOCK_TAKRI = 220, /*[11680]*/ + + /* New blocks in Unicode 7.0 */ + + /** @stable ICU 54 */ + UBLOCK_BASSA_VAH = 221, /*[16AD0]*/ + /** @stable ICU 54 */ + UBLOCK_CAUCASIAN_ALBANIAN = 222, /*[10530]*/ + /** @stable ICU 54 */ + UBLOCK_COPTIC_EPACT_NUMBERS = 223, /*[102E0]*/ + /** @stable ICU 54 */ + UBLOCK_COMBINING_DIACRITICAL_MARKS_EXTENDED = 224, /*[1AB0]*/ + /** @stable ICU 54 */ + UBLOCK_DUPLOYAN = 225, /*[1BC00]*/ + /** @stable ICU 54 */ + UBLOCK_ELBASAN = 226, /*[10500]*/ + /** @stable ICU 54 */ + UBLOCK_GEOMETRIC_SHAPES_EXTENDED = 227, /*[1F780]*/ + /** @stable ICU 54 */ + UBLOCK_GRANTHA = 228, /*[11300]*/ + /** @stable ICU 54 */ + UBLOCK_KHOJKI = 229, /*[11200]*/ + /** @stable ICU 54 */ + UBLOCK_KHUDAWADI = 230, /*[112B0]*/ + /** @stable ICU 54 */ + UBLOCK_LATIN_EXTENDED_E = 231, /*[AB30]*/ + /** @stable ICU 54 */ + UBLOCK_LINEAR_A = 232, /*[10600]*/ + /** @stable ICU 54 */ + UBLOCK_MAHAJANI = 233, /*[11150]*/ + /** @stable ICU 54 */ + UBLOCK_MANICHAEAN = 234, /*[10AC0]*/ + /** @stable ICU 54 */ + UBLOCK_MENDE_KIKAKUI = 235, /*[1E800]*/ + /** @stable ICU 54 */ + UBLOCK_MODI = 236, /*[11600]*/ + /** @stable ICU 54 */ + UBLOCK_MRO = 237, /*[16A40]*/ + /** @stable ICU 54 */ + UBLOCK_MYANMAR_EXTENDED_B = 238, /*[A9E0]*/ + /** @stable ICU 54 */ + UBLOCK_NABATAEAN = 239, /*[10880]*/ + /** @stable ICU 54 */ + UBLOCK_OLD_NORTH_ARABIAN = 240, /*[10A80]*/ + /** @stable ICU 54 */ + UBLOCK_OLD_PERMIC = 241, /*[10350]*/ + /** @stable ICU 54 */ + UBLOCK_ORNAMENTAL_DINGBATS = 242, /*[1F650]*/ + /** @stable ICU 54 */ + UBLOCK_PAHAWH_HMONG = 243, /*[16B00]*/ + /** @stable ICU 54 */ + UBLOCK_PALMYRENE = 244, /*[10860]*/ + /** @stable ICU 54 */ + UBLOCK_PAU_CIN_HAU = 245, /*[11AC0]*/ + /** @stable ICU 54 */ + UBLOCK_PSALTER_PAHLAVI = 246, /*[10B80]*/ + /** @stable ICU 54 */ + UBLOCK_SHORTHAND_FORMAT_CONTROLS = 247, /*[1BCA0]*/ + /** @stable ICU 54 */ + UBLOCK_SIDDHAM = 248, /*[11580]*/ + /** @stable ICU 54 */ + UBLOCK_SINHALA_ARCHAIC_NUMBERS = 249, /*[111E0]*/ + /** @stable ICU 54 */ + UBLOCK_SUPPLEMENTAL_ARROWS_C = 250, /*[1F800]*/ + /** @stable ICU 54 */ + UBLOCK_TIRHUTA = 251, /*[11480]*/ + /** @stable ICU 54 */ + UBLOCK_WARANG_CITI = 252, /*[118A0]*/ + + /* New blocks in Unicode 8.0 */ + + /** @stable ICU 56 */ + UBLOCK_AHOM = 253, /*[11700]*/ + /** @stable ICU 56 */ + UBLOCK_ANATOLIAN_HIEROGLYPHS = 254, /*[14400]*/ + /** @stable ICU 56 */ + UBLOCK_CHEROKEE_SUPPLEMENT = 255, /*[AB70]*/ + /** @stable ICU 56 */ + UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E = 256, /*[2B820]*/ + /** @stable ICU 56 */ + UBLOCK_EARLY_DYNASTIC_CUNEIFORM = 257, /*[12480]*/ + /** @stable ICU 56 */ + UBLOCK_HATRAN = 258, /*[108E0]*/ + /** @stable ICU 56 */ + UBLOCK_MULTANI = 259, /*[11280]*/ + /** @stable ICU 56 */ + UBLOCK_OLD_HUNGARIAN = 260, /*[10C80]*/ + /** @stable ICU 56 */ + UBLOCK_SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS = 261, /*[1F900]*/ + /** @stable ICU 56 */ + UBLOCK_SUTTON_SIGNWRITING = 262, /*[1D800]*/ + + /** @stable ICU 2.0 */ + UBLOCK_COUNT = 263, + + /** @stable ICU 2.0 */ + UBLOCK_INVALID_CODE=-1 +}; + +/** @stable ICU 2.0 */ +typedef enum UBlockCode UBlockCode; + +/** + * East Asian Width constants. + * + * @see UCHAR_EAST_ASIAN_WIDTH + * @see u_getIntPropertyValue + * @stable ICU 2.2 + */ +typedef enum UEastAsianWidth { + /* + * Note: UEastAsianWidth constants are parsed by preparseucd.py. + * It matches lines like + * U_EA_ + */ + + U_EA_NEUTRAL, /*[N]*/ + U_EA_AMBIGUOUS, /*[A]*/ + U_EA_HALFWIDTH, /*[H]*/ + U_EA_FULLWIDTH, /*[F]*/ + U_EA_NARROW, /*[Na]*/ + U_EA_WIDE, /*[W]*/ + U_EA_COUNT +} UEastAsianWidth; + +/** + * Selector constants for u_charName(). + * u_charName() returns the "modern" name of a + * Unicode character; or the name that was defined in + * Unicode version 1.0, before the Unicode standard merged + * with ISO-10646; or an "extended" name that gives each + * Unicode code point a unique name. + * + * @see u_charName + * @stable ICU 2.0 + */ +typedef enum UCharNameChoice { + /** Unicode character name (Name property). @stable ICU 2.0 */ + U_UNICODE_CHAR_NAME, + /** Standard or synthetic character name. @stable ICU 2.0 */ + U_EXTENDED_CHAR_NAME = U_UNICODE_CHAR_NAME+2, + /** Corrected name from NameAliases.txt. @stable ICU 4.4 */ + U_CHAR_NAME_ALIAS, + /** @stable ICU 2.0 */ + U_CHAR_NAME_CHOICE_COUNT +} UCharNameChoice; + +/** + * Selector constants for u_getPropertyName() and + * u_getPropertyValueName(). These selectors are used to choose which + * name is returned for a given property or value. All properties and + * values have a long name. Most have a short name, but some do not. + * Unicode allows for additional names, beyond the long and short + * name, which would be indicated by U_LONG_PROPERTY_NAME + i, where + * i=1, 2,... + * + * @see u_getPropertyName() + * @see u_getPropertyValueName() + * @stable ICU 2.4 + */ +typedef enum UPropertyNameChoice { + U_SHORT_PROPERTY_NAME, + U_LONG_PROPERTY_NAME, + U_PROPERTY_NAME_CHOICE_COUNT +} UPropertyNameChoice; + +/** + * Decomposition Type constants. + * + * @see UCHAR_DECOMPOSITION_TYPE + * @stable ICU 2.2 + */ +typedef enum UDecompositionType { + /* + * Note: UDecompositionType constants are parsed by preparseucd.py. + * It matches lines like + * U_DT_ + */ + + U_DT_NONE, /*[none]*/ + U_DT_CANONICAL, /*[can]*/ + U_DT_COMPAT, /*[com]*/ + U_DT_CIRCLE, /*[enc]*/ + U_DT_FINAL, /*[fin]*/ + U_DT_FONT, /*[font]*/ + U_DT_FRACTION, /*[fra]*/ + U_DT_INITIAL, /*[init]*/ + U_DT_ISOLATED, /*[iso]*/ + U_DT_MEDIAL, /*[med]*/ + U_DT_NARROW, /*[nar]*/ + U_DT_NOBREAK, /*[nb]*/ + U_DT_SMALL, /*[sml]*/ + U_DT_SQUARE, /*[sqr]*/ + U_DT_SUB, /*[sub]*/ + U_DT_SUPER, /*[sup]*/ + U_DT_VERTICAL, /*[vert]*/ + U_DT_WIDE, /*[wide]*/ + U_DT_COUNT /* 18 */ +} UDecompositionType; + +/** + * Joining Type constants. + * + * @see UCHAR_JOINING_TYPE + * @stable ICU 2.2 + */ +typedef enum UJoiningType { + /* + * Note: UJoiningType constants are parsed by preparseucd.py. + * It matches lines like + * U_JT_ + */ + + U_JT_NON_JOINING, /*[U]*/ + U_JT_JOIN_CAUSING, /*[C]*/ + U_JT_DUAL_JOINING, /*[D]*/ + U_JT_LEFT_JOINING, /*[L]*/ + U_JT_RIGHT_JOINING, /*[R]*/ + U_JT_TRANSPARENT, /*[T]*/ + U_JT_COUNT /* 6 */ +} UJoiningType; + +/** + * Joining Group constants. + * + * @see UCHAR_JOINING_GROUP + * @stable ICU 2.2 + */ +typedef enum UJoiningGroup { + /* + * Note: UJoiningGroup constants are parsed by preparseucd.py. + * It matches lines like + * U_JG_ + */ + + U_JG_NO_JOINING_GROUP, + U_JG_AIN, + U_JG_ALAPH, + U_JG_ALEF, + U_JG_BEH, + U_JG_BETH, + U_JG_DAL, + U_JG_DALATH_RISH, + U_JG_E, + U_JG_FEH, + U_JG_FINAL_SEMKATH, + U_JG_GAF, + U_JG_GAMAL, + U_JG_HAH, + U_JG_TEH_MARBUTA_GOAL, /**< @stable ICU 4.6 */ + U_JG_HAMZA_ON_HEH_GOAL=U_JG_TEH_MARBUTA_GOAL, + U_JG_HE, + U_JG_HEH, + U_JG_HEH_GOAL, + U_JG_HETH, + U_JG_KAF, + U_JG_KAPH, + U_JG_KNOTTED_HEH, + U_JG_LAM, + U_JG_LAMADH, + U_JG_MEEM, + U_JG_MIM, + U_JG_NOON, + U_JG_NUN, + U_JG_PE, + U_JG_QAF, + U_JG_QAPH, + U_JG_REH, + U_JG_REVERSED_PE, + U_JG_SAD, + U_JG_SADHE, + U_JG_SEEN, + U_JG_SEMKATH, + U_JG_SHIN, + U_JG_SWASH_KAF, + U_JG_SYRIAC_WAW, + U_JG_TAH, + U_JG_TAW, + U_JG_TEH_MARBUTA, + U_JG_TETH, + U_JG_WAW, + U_JG_YEH, + U_JG_YEH_BARREE, + U_JG_YEH_WITH_TAIL, + U_JG_YUDH, + U_JG_YUDH_HE, + U_JG_ZAIN, + U_JG_FE, /**< @stable ICU 2.6 */ + U_JG_KHAPH, /**< @stable ICU 2.6 */ + U_JG_ZHAIN, /**< @stable ICU 2.6 */ + U_JG_BURUSHASKI_YEH_BARREE, /**< @stable ICU 4.0 */ + U_JG_FARSI_YEH, /**< @stable ICU 4.4 */ + U_JG_NYA, /**< @stable ICU 4.4 */ + U_JG_ROHINGYA_YEH, /**< @stable ICU 49 */ + U_JG_MANICHAEAN_ALEPH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_AYIN, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_BETH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_DALETH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_DHAMEDH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_FIVE, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_GIMEL, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_HETH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_HUNDRED, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_KAPH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_LAMEDH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_MEM, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_NUN, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_ONE, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_PE, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_QOPH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_RESH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_SADHE, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_SAMEKH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_TAW, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_TEN, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_TETH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_THAMEDH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_TWENTY, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_WAW, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_YODH, /**< @stable ICU 54 */ + U_JG_MANICHAEAN_ZAYIN, /**< @stable ICU 54 */ + U_JG_STRAIGHT_WAW, /**< @stable ICU 54 */ + U_JG_COUNT +} UJoiningGroup; + +/** + * Grapheme Cluster Break constants. + * + * @see UCHAR_GRAPHEME_CLUSTER_BREAK + * @stable ICU 3.4 + */ +typedef enum UGraphemeClusterBreak { + /* + * Note: UGraphemeClusterBreak constants are parsed by preparseucd.py. + * It matches lines like + * U_GCB_ + */ + + U_GCB_OTHER = 0, /*[XX]*/ + U_GCB_CONTROL = 1, /*[CN]*/ + U_GCB_CR = 2, /*[CR]*/ + U_GCB_EXTEND = 3, /*[EX]*/ + U_GCB_L = 4, /*[L]*/ + U_GCB_LF = 5, /*[LF]*/ + U_GCB_LV = 6, /*[LV]*/ + U_GCB_LVT = 7, /*[LVT]*/ + U_GCB_T = 8, /*[T]*/ + U_GCB_V = 9, /*[V]*/ + U_GCB_SPACING_MARK = 10, /*[SM]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */ + U_GCB_PREPEND = 11, /*[PP]*/ + U_GCB_REGIONAL_INDICATOR = 12, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */ + U_GCB_COUNT = 13 +} UGraphemeClusterBreak; + +/** + * Word Break constants. + * (UWordBreak is a pre-existing enum type in ubrk.h for word break status tags.) + * + * @see UCHAR_WORD_BREAK + * @stable ICU 3.4 + */ +typedef enum UWordBreakValues { + /* + * Note: UWordBreakValues constants are parsed by preparseucd.py. + * It matches lines like + * U_WB_ + */ + + U_WB_OTHER = 0, /*[XX]*/ + U_WB_ALETTER = 1, /*[LE]*/ + U_WB_FORMAT = 2, /*[FO]*/ + U_WB_KATAKANA = 3, /*[KA]*/ + U_WB_MIDLETTER = 4, /*[ML]*/ + U_WB_MIDNUM = 5, /*[MN]*/ + U_WB_NUMERIC = 6, /*[NU]*/ + U_WB_EXTENDNUMLET = 7, /*[EX]*/ + U_WB_CR = 8, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */ + U_WB_EXTEND = 9, /*[Extend]*/ + U_WB_LF = 10, /*[LF]*/ + U_WB_MIDNUMLET =11, /*[MB]*/ + U_WB_NEWLINE =12, /*[NL]*/ + U_WB_REGIONAL_INDICATOR = 13, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */ + U_WB_HEBREW_LETTER = 14, /*[HL]*/ /* from here on: new in Unicode 6.3/ICU 52 */ + U_WB_SINGLE_QUOTE = 15, /*[SQ]*/ + U_WB_DOUBLE_QUOTE = 16, /*[DQ]*/ + U_WB_COUNT = 17 +} UWordBreakValues; + +/** + * Sentence Break constants. + * + * @see UCHAR_SENTENCE_BREAK + * @stable ICU 3.4 + */ +typedef enum USentenceBreak { + /* + * Note: USentenceBreak constants are parsed by preparseucd.py. + * It matches lines like + * U_SB_ + */ + + U_SB_OTHER = 0, /*[XX]*/ + U_SB_ATERM = 1, /*[AT]*/ + U_SB_CLOSE = 2, /*[CL]*/ + U_SB_FORMAT = 3, /*[FO]*/ + U_SB_LOWER = 4, /*[LO]*/ + U_SB_NUMERIC = 5, /*[NU]*/ + U_SB_OLETTER = 6, /*[LE]*/ + U_SB_SEP = 7, /*[SE]*/ + U_SB_SP = 8, /*[SP]*/ + U_SB_STERM = 9, /*[ST]*/ + U_SB_UPPER = 10, /*[UP]*/ + U_SB_CR = 11, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */ + U_SB_EXTEND = 12, /*[EX]*/ + U_SB_LF = 13, /*[LF]*/ + U_SB_SCONTINUE = 14, /*[SC]*/ + U_SB_COUNT = 15 +} USentenceBreak; + +/** + * Line Break constants. + * + * @see UCHAR_LINE_BREAK + * @stable ICU 2.2 + */ +typedef enum ULineBreak { + /* + * Note: ULineBreak constants are parsed by preparseucd.py. + * It matches lines like + * U_LB_ + */ + + U_LB_UNKNOWN = 0, /*[XX]*/ + U_LB_AMBIGUOUS = 1, /*[AI]*/ + U_LB_ALPHABETIC = 2, /*[AL]*/ + U_LB_BREAK_BOTH = 3, /*[B2]*/ + U_LB_BREAK_AFTER = 4, /*[BA]*/ + U_LB_BREAK_BEFORE = 5, /*[BB]*/ + U_LB_MANDATORY_BREAK = 6, /*[BK]*/ + U_LB_CONTINGENT_BREAK = 7, /*[CB]*/ + U_LB_CLOSE_PUNCTUATION = 8, /*[CL]*/ + U_LB_COMBINING_MARK = 9, /*[CM]*/ + U_LB_CARRIAGE_RETURN = 10, /*[CR]*/ + U_LB_EXCLAMATION = 11, /*[EX]*/ + U_LB_GLUE = 12, /*[GL]*/ + U_LB_HYPHEN = 13, /*[HY]*/ + U_LB_IDEOGRAPHIC = 14, /*[ID]*/ + /** Renamed from the misspelled "inseperable" in Unicode 4.0.1/ICU 3.0 @stable ICU 3.0 */ + U_LB_INSEPARABLE = 15, /*[IN]*/ + U_LB_INSEPERABLE = U_LB_INSEPARABLE, + U_LB_INFIX_NUMERIC = 16, /*[IS]*/ + U_LB_LINE_FEED = 17, /*[LF]*/ + U_LB_NONSTARTER = 18, /*[NS]*/ + U_LB_NUMERIC = 19, /*[NU]*/ + U_LB_OPEN_PUNCTUATION = 20, /*[OP]*/ + U_LB_POSTFIX_NUMERIC = 21, /*[PO]*/ + U_LB_PREFIX_NUMERIC = 22, /*[PR]*/ + U_LB_QUOTATION = 23, /*[QU]*/ + U_LB_COMPLEX_CONTEXT = 24, /*[SA]*/ + U_LB_SURROGATE = 25, /*[SG]*/ + U_LB_SPACE = 26, /*[SP]*/ + U_LB_BREAK_SYMBOLS = 27, /*[SY]*/ + U_LB_ZWSPACE = 28, /*[ZW]*/ + U_LB_NEXT_LINE = 29, /*[NL]*/ /* from here on: new in Unicode 4/ICU 2.6 */ + U_LB_WORD_JOINER = 30, /*[WJ]*/ + U_LB_H2 = 31, /*[H2]*/ /* from here on: new in Unicode 4.1/ICU 3.4 */ + U_LB_H3 = 32, /*[H3]*/ + U_LB_JL = 33, /*[JL]*/ + U_LB_JT = 34, /*[JT]*/ + U_LB_JV = 35, /*[JV]*/ + U_LB_CLOSE_PARENTHESIS = 36, /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */ + U_LB_CONDITIONAL_JAPANESE_STARTER = 37,/*[CJ]*/ /* new in Unicode 6.1/ICU 49 */ + U_LB_HEBREW_LETTER = 38, /*[HL]*/ /* new in Unicode 6.1/ICU 49 */ + U_LB_REGIONAL_INDICATOR = 39,/*[RI]*/ /* new in Unicode 6.2/ICU 50 */ + U_LB_COUNT = 40 +} ULineBreak; + +/** + * Numeric Type constants. + * + * @see UCHAR_NUMERIC_TYPE + * @stable ICU 2.2 + */ +typedef enum UNumericType { + /* + * Note: UNumericType constants are parsed by preparseucd.py. + * It matches lines like + * U_NT_ + */ + + U_NT_NONE, /*[None]*/ + U_NT_DECIMAL, /*[de]*/ + U_NT_DIGIT, /*[di]*/ + U_NT_NUMERIC, /*[nu]*/ + U_NT_COUNT +} UNumericType; + +/** + * Hangul Syllable Type constants. + * + * @see UCHAR_HANGUL_SYLLABLE_TYPE + * @stable ICU 2.6 + */ +typedef enum UHangulSyllableType { + /* + * Note: UHangulSyllableType constants are parsed by preparseucd.py. + * It matches lines like + * U_HST_ + */ + + U_HST_NOT_APPLICABLE, /*[NA]*/ + U_HST_LEADING_JAMO, /*[L]*/ + U_HST_VOWEL_JAMO, /*[V]*/ + U_HST_TRAILING_JAMO, /*[T]*/ + U_HST_LV_SYLLABLE, /*[LV]*/ + U_HST_LVT_SYLLABLE, /*[LVT]*/ + U_HST_COUNT +} UHangulSyllableType; + +/** + * Check a binary Unicode property for a code point. + * + * Unicode, especially in version 3.2, defines many more properties than the + * original set in UnicodeData.txt. + * + * The properties APIs are intended to reflect Unicode properties as defined + * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR). + * For details about the properties see http://www.unicode.org/ucd/ . + * For names of Unicode properties see the UCD file PropertyAliases.txt. + * + * Important: If ICU is built with UCD files from Unicode versions below 3.2, + * then properties marked with "new in Unicode 3.2" are not or not fully available. + * + * @param c Code point to test. + * @param which UProperty selector constant, identifies which binary property to check. + * Must be UCHAR_BINARY_START<=which=0. + * True for characters with general category "Nd" (decimal digit numbers) + * as well as Latin letters a-f and A-F in both ASCII and Fullwidth ASCII. + * (That is, for letters with code points + * 0041..0046, 0061..0066, FF21..FF26, FF41..FF46.) + * + * In order to narrow the definition of hexadecimal digits to only ASCII + * characters, use (c<=0x7f && u_isxdigit(c)). + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return TRUE if the code point is a hexadecimal digit + * + * @stable ICU 2.6 + */ +U_STABLE UBool U_EXPORT2 +u_isxdigit(UChar32 c); + +/** + * Determines whether the specified code point is a punctuation character. + * True for characters with general categories "P" (punctuation). + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return TRUE if the code point is a punctuation character + * + * @stable ICU 2.6 + */ +U_STABLE UBool U_EXPORT2 +u_ispunct(UChar32 c); + +/** + * Determines whether the specified code point is a "graphic" character + * (printable, excluding spaces). + * TRUE for all characters except those with general categories + * "Cc" (control codes), "Cf" (format controls), "Cs" (surrogates), + * "Cn" (unassigned), and "Z" (separators). + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return TRUE if the code point is a "graphic" character + * + * @stable ICU 2.6 + */ +U_STABLE UBool U_EXPORT2 +u_isgraph(UChar32 c); + +/** + * Determines whether the specified code point is a "blank" or "horizontal space", + * a character that visibly separates words on a line. + * The following are equivalent definitions: + * + * TRUE for Unicode White_Space characters except for "vertical space controls" + * where "vertical space controls" are the following characters: + * U+000A (LF) U+000B (VT) U+000C (FF) U+000D (CR) U+0085 (NEL) U+2028 (LS) U+2029 (PS) + * + * same as + * + * TRUE for U+0009 (TAB) and characters with general category "Zs" (space separators) + * except Zero Width Space (ZWSP, U+200B). + * + * Note: There are several ICU whitespace functions; please see the uchar.h + * file documentation for a detailed comparison. + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return TRUE if the code point is a "blank" + * + * @stable ICU 2.6 + */ +U_STABLE UBool U_EXPORT2 +u_isblank(UChar32 c); + +/** + * Determines whether the specified code point is "defined", + * which usually means that it is assigned a character. + * True for general categories other than "Cn" (other, not assigned), + * i.e., true for all code points mentioned in UnicodeData.txt. + * + * Note that non-character code points (e.g., U+FDD0) are not "defined" + * (they are Cn), but surrogate code points are "defined" (Cs). + * + * Same as java.lang.Character.isDefined(). + * + * @param c the code point to be tested + * @return TRUE if the code point is assigned a character + * + * @see u_isdigit + * @see u_isalpha + * @see u_isalnum + * @see u_isupper + * @see u_islower + * @see u_istitle + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +u_isdefined(UChar32 c); + +/** + * Determines if the specified character is a space character or not. + * + * Note: There are several ICU whitespace functions; please see the uchar.h + * file documentation for a detailed comparison. + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the character to be tested + * @return true if the character is a space character; false otherwise. + * + * @see u_isJavaSpaceChar + * @see u_isWhitespace + * @see u_isUWhiteSpace + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +u_isspace(UChar32 c); + +/** + * Determine if the specified code point is a space character according to Java. + * True for characters with general categories "Z" (separators), + * which does not include control codes (e.g., TAB or Line Feed). + * + * Same as java.lang.Character.isSpaceChar(). + * + * Note: There are several ICU whitespace functions; please see the uchar.h + * file documentation for a detailed comparison. + * + * @param c the code point to be tested + * @return TRUE if the code point is a space character according to Character.isSpaceChar() + * + * @see u_isspace + * @see u_isWhitespace + * @see u_isUWhiteSpace + * @stable ICU 2.6 + */ +U_STABLE UBool U_EXPORT2 +u_isJavaSpaceChar(UChar32 c); + +/** + * Determines if the specified code point is a whitespace character according to Java/ICU. + * A character is considered to be a Java whitespace character if and only + * if it satisfies one of the following criteria: + * + * - It is a Unicode Separator character (categories "Z" = "Zs" or "Zl" or "Zp"), but is not + * also a non-breaking space (U+00A0 NBSP or U+2007 Figure Space or U+202F Narrow NBSP). + * - It is U+0009 HORIZONTAL TABULATION. + * - It is U+000A LINE FEED. + * - It is U+000B VERTICAL TABULATION. + * - It is U+000C FORM FEED. + * - It is U+000D CARRIAGE RETURN. + * - It is U+001C FILE SEPARATOR. + * - It is U+001D GROUP SEPARATOR. + * - It is U+001E RECORD SEPARATOR. + * - It is U+001F UNIT SEPARATOR. + * + * This API tries to sync with the semantics of Java's + * java.lang.Character.isWhitespace(), but it may not return + * the exact same results because of the Unicode version + * difference. + * + * Note: Unicode 4.0.1 changed U+200B ZERO WIDTH SPACE from a Space Separator (Zs) + * to a Format Control (Cf). Since then, isWhitespace(0x200b) returns false. + * See http://www.unicode.org/versions/Unicode4.0.1/ + * + * Note: There are several ICU whitespace functions; please see the uchar.h + * file documentation for a detailed comparison. + * + * @param c the code point to be tested + * @return TRUE if the code point is a whitespace character according to Java/ICU + * + * @see u_isspace + * @see u_isJavaSpaceChar + * @see u_isUWhiteSpace + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +u_isWhitespace(UChar32 c); + +/** + * Determines whether the specified code point is a control character + * (as defined by this function). + * A control character is one of the following: + * - ISO 8-bit control character (U+0000..U+001f and U+007f..U+009f) + * - U_CONTROL_CHAR (Cc) + * - U_FORMAT_CHAR (Cf) + * - U_LINE_SEPARATOR (Zl) + * - U_PARAGRAPH_SEPARATOR (Zp) + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return TRUE if the code point is a control character + * + * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT + * @see u_isprint + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +u_iscntrl(UChar32 c); + +/** + * Determines whether the specified code point is an ISO control code. + * True for U+0000..U+001f and U+007f..U+009f (general category "Cc"). + * + * Same as java.lang.Character.isISOControl(). + * + * @param c the code point to be tested + * @return TRUE if the code point is an ISO control code + * + * @see u_iscntrl + * @stable ICU 2.6 + */ +U_STABLE UBool U_EXPORT2 +u_isISOControl(UChar32 c); + +/** + * Determines whether the specified code point is a printable character. + * True for general categories other than "C" (controls). + * + * This is a C/POSIX migration function. + * See the comments about C/POSIX character classification functions in the + * documentation at the top of this header file. + * + * @param c the code point to be tested + * @return TRUE if the code point is a printable character + * + * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT + * @see u_iscntrl + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +u_isprint(UChar32 c); + +/** + * Determines whether the specified code point is a base character. + * True for general categories "L" (letters), "N" (numbers), + * "Mc" (spacing combining marks), and "Me" (enclosing marks). + * + * Note that this is different from the Unicode definition in + * chapter 3.5, conformance clause D13, + * which defines base characters to be all characters (not Cn) + * that do not graphically combine with preceding characters (M) + * and that are neither control (Cc) or format (Cf) characters. + * + * @param c the code point to be tested + * @return TRUE if the code point is a base character according to this function + * + * @see u_isalpha + * @see u_isdigit + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +u_isbase(UChar32 c); + +/** + * Returns the bidirectional category value for the code point, + * which is used in the Unicode bidirectional algorithm + * (UAX #9 http://www.unicode.org/reports/tr9/). + * Note that some unassigned code points have bidi values + * of R or AL because they are in blocks that are reserved + * for Right-To-Left scripts. + * + * Same as java.lang.Character.getDirectionality() + * + * @param c the code point to be tested + * @return the bidirectional category (UCharDirection) value + * + * @see UCharDirection + * @stable ICU 2.0 + */ +U_STABLE UCharDirection U_EXPORT2 +u_charDirection(UChar32 c); + +/** + * Determines whether the code point has the Bidi_Mirrored property. + * This property is set for characters that are commonly used in + * Right-To-Left contexts and need to be displayed with a "mirrored" + * glyph. + * + * Same as java.lang.Character.isMirrored(). + * Same as UCHAR_BIDI_MIRRORED + * + * @param c the code point to be tested + * @return TRUE if the character has the Bidi_Mirrored property + * + * @see UCHAR_BIDI_MIRRORED + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +u_isMirrored(UChar32 c); + +/** + * Maps the specified character to a "mirror-image" character. + * For characters with the Bidi_Mirrored property, implementations + * sometimes need a "poor man's" mapping to another Unicode + * character (code point) such that the default glyph may serve + * as the mirror-image of the default glyph of the specified + * character. This is useful for text conversion to and from + * codepages with visual order, and for displays without glyph + * selection capabilities. + * + * @param c the code point to be mapped + * @return another Unicode code point that may serve as a mirror-image + * substitute, or c itself if there is no such mapping or c + * does not have the Bidi_Mirrored property + * + * @see UCHAR_BIDI_MIRRORED + * @see u_isMirrored + * @stable ICU 2.0 + */ +U_STABLE UChar32 U_EXPORT2 +u_charMirror(UChar32 c); + +/** + * Maps the specified character to its paired bracket character. + * For Bidi_Paired_Bracket_Type!=None, this is the same as u_charMirror(). + * Otherwise c itself is returned. + * See http://www.unicode.org/reports/tr9/ + * + * @param c the code point to be mapped + * @return the paired bracket code point, + * or c itself if there is no such mapping + * (Bidi_Paired_Bracket_Type=None) + * + * @see UCHAR_BIDI_PAIRED_BRACKET + * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE + * @see u_charMirror + * @stable ICU 52 + */ +U_STABLE UChar32 U_EXPORT2 +u_getBidiPairedBracket(UChar32 c); + +/** + * Returns the general category value for the code point. + * + * Same as java.lang.Character.getType(). + * + * @param c the code point to be tested + * @return the general category (UCharCategory) value + * + * @see UCharCategory + * @stable ICU 2.0 + */ +U_STABLE int8_t U_EXPORT2 +u_charType(UChar32 c); + +/** + * Get a single-bit bit set for the general category of a character. + * This bit set can be compared bitwise with U_GC_SM_MASK, U_GC_L_MASK, etc. + * Same as U_MASK(u_charType(c)). + * + * @param c the code point to be tested + * @return a single-bit mask corresponding to the general category (UCharCategory) value + * + * @see u_charType + * @see UCharCategory + * @see U_GC_CN_MASK + * @stable ICU 2.1 + */ +#define U_GET_GC_MASK(c) U_MASK(u_charType(c)) + +/** + * Callback from u_enumCharTypes(), is called for each contiguous range + * of code points c (where start<=cnameChoice
, the character name written + * into the buffer is the "modern" name or the name that was defined + * in Unicode version 1.0. + * The name contains only "invariant" characters + * like A-Z, 0-9, space, and '-'. + * Unicode 1.0 names are only retrieved if they are different from the modern + * names and if the data file contains the data for them. gennames may or may + * not be called with a command line option to include 1.0 names in unames.dat. + * + * @param code The character (code point) for which to get the name. + * It must be 0<=code<=0x10ffff. + * @param nameChoice Selector for which name to get. + * @param buffer Destination address for copying the name. + * The name will always be zero-terminated. + * If there is no name, then the buffer will be set to the empty string. + * @param bufferLength ==sizeof(buffer) + * @param pErrorCode Pointer to a UErrorCode variable; + * check for U_SUCCESS() after u_charName() + * returns. + * @return The length of the name, or 0 if there is no name for this character. + * If the bufferLength is less than or equal to the length, then the buffer + * contains the truncated name and the returned length indicates the full + * length of the name. + * The length does not include the zero-termination. + * + * @see UCharNameChoice + * @see u_charFromName + * @see u_enumCharNames + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_charName(UChar32 code, UCharNameChoice nameChoice, + char *buffer, int32_t bufferLength, + UErrorCode *pErrorCode); + + +/** + * Find a Unicode character by its name and return its code point value. + * The name is matched exactly and completely. + * If the name does not correspond to a code point, pErrorCode + * is set to U_INVALID_CHAR_FOUND. + * A Unicode 1.0 name is matched only if it differs from the modern name. + * Unicode names are all uppercase. Extended names are lowercase followed + * by an uppercase hexadecimal number, and within angle brackets. + * + * @param nameChoice Selector for which name to match. + * @param name The name to match. + * @param pErrorCode Pointer to a UErrorCode variable + * @return The Unicode value of the code point with the given name, + * or an undefined value if there is no such code point. + * + * @see UCharNameChoice + * @see u_charName + * @see u_enumCharNames + * @stable ICU 1.7 + */ +U_STABLE UChar32 U_EXPORT2 +u_charFromName(UCharNameChoice nameChoice, + const char *name, + UErrorCode *pErrorCode); + +/** + * Type of a callback function for u_enumCharNames() that gets called + * for each Unicode character with the code point value and + * the character name. + * If such a function returns FALSE, then the enumeration is stopped. + * + * @param context The context pointer that was passed to u_enumCharNames(). + * @param code The Unicode code point for the character with this name. + * @param nameChoice Selector for which kind of names is enumerated. + * @param name The character's name, zero-terminated. + * @param length The length of the name. + * @return TRUE if the enumeration should continue, FALSE to stop it. + * + * @see UCharNameChoice + * @see u_enumCharNames + * @stable ICU 1.7 + */ +typedef UBool U_CALLCONV UEnumCharNamesFn(void *context, + UChar32 code, + UCharNameChoice nameChoice, + const char *name, + int32_t length); + +/** + * Enumerate all assigned Unicode characters between the start and limit + * code points (start inclusive, limit exclusive) and call a function + * for each, passing the code point value and the character name. + * For Unicode 1.0 names, only those are enumerated that differ from the + * modern names. + * + * @param start The first code point in the enumeration range. + * @param limit One more than the last code point in the enumeration range + * (the first one after the range). + * @param fn The function that is to be called for each character name. + * @param context An arbitrary pointer that is passed to the function. + * @param nameChoice Selector for which kind of names to enumerate. + * @param pErrorCode Pointer to a UErrorCode variable + * + * @see UCharNameChoice + * @see UEnumCharNamesFn + * @see u_charName + * @see u_charFromName + * @stable ICU 1.7 + */ +U_STABLE void U_EXPORT2 +u_enumCharNames(UChar32 start, UChar32 limit, + UEnumCharNamesFn *fn, + void *context, + UCharNameChoice nameChoice, + UErrorCode *pErrorCode); + +/** + * Return the Unicode name for a given property, as given in the + * Unicode database file PropertyAliases.txt. + * + * In addition, this function maps the property + * UCHAR_GENERAL_CATEGORY_MASK to the synthetic names "gcm" / + * "General_Category_Mask". These names are not in + * PropertyAliases.txt. + * + * @param property UProperty selector other than UCHAR_INVALID_CODE. + * If out of range, NULL is returned. + * + * @param nameChoice selector for which name to get. If out of range, + * NULL is returned. All properties have a long name. Most + * have a short name, but some do not. Unicode allows for + * additional names; if present these will be returned by + * U_LONG_PROPERTY_NAME + i, where i=1, 2,... + * + * @return a pointer to the name, or NULL if either the + * property or the nameChoice is out of range. If a given + * nameChoice returns NULL, then all larger values of + * nameChoice will return NULL, with one exception: if NULL is + * returned for U_SHORT_PROPERTY_NAME, then + * U_LONG_PROPERTY_NAME (and higher) may still return a + * non-NULL value. The returned pointer is valid until + * u_cleanup() is called. + * + * @see UProperty + * @see UPropertyNameChoice + * @stable ICU 2.4 + */ +U_STABLE const char* U_EXPORT2 +u_getPropertyName(UProperty property, + UPropertyNameChoice nameChoice); + +/** + * Return the UProperty enum for a given property name, as specified + * in the Unicode database file PropertyAliases.txt. Short, long, and + * any other variants are recognized. + * + * In addition, this function maps the synthetic names "gcm" / + * "General_Category_Mask" to the property + * UCHAR_GENERAL_CATEGORY_MASK. These names are not in + * PropertyAliases.txt. + * + * @param alias the property name to be matched. The name is compared + * using "loose matching" as described in PropertyAliases.txt. + * + * @return a UProperty enum, or UCHAR_INVALID_CODE if the given name + * does not match any property. + * + * @see UProperty + * @stable ICU 2.4 + */ +U_STABLE UProperty U_EXPORT2 +u_getPropertyEnum(const char* alias); + +/** + * Return the Unicode name for a given property value, as given in the + * Unicode database file PropertyValueAliases.txt. + * + * Note: Some of the names in PropertyValueAliases.txt can only be + * retrieved using UCHAR_GENERAL_CATEGORY_MASK, not + * UCHAR_GENERAL_CATEGORY. These include: "C" / "Other", "L" / + * "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P" + * / "Punctuation", "S" / "Symbol", and "Z" / "Separator". + * + * @param property UProperty selector constant. + * Must be UCHAR_BINARY_START<=which2<=radix<=36 or if the + * value of c is not a valid digit in the specified + * radix, -1 is returned. A character is a valid digit + * if at least one of the following is true: + *
    + *
  • The character has a decimal digit value. + * Such characters have the general category "Nd" (decimal digit numbers) + * and a Numeric_Type of Decimal. + * In this case the value is the character's decimal digit value.
  • + *
  • The character is one of the uppercase Latin letters + * 'A' through 'Z'. + * In this case the value is c-'A'+10.
  • + *
  • The character is one of the lowercase Latin letters + * 'a' through 'z'. + * In this case the value is ch-'a'+10.
  • + *
  • Latin letters from both the ASCII range (0061..007A, 0041..005A) + * as well as from the Fullwidth ASCII range (FF41..FF5A, FF21..FF3A) + * are recognized.
  • + *
+ * + * Same as java.lang.Character.digit(). + * + * @param ch the code point to be tested. + * @param radix the radix. + * @return the numeric value represented by the character in the + * specified radix, + * or -1 if there is no value or if the value exceeds the radix. + * + * @see UCHAR_NUMERIC_TYPE + * @see u_forDigit + * @see u_charDigitValue + * @see u_isdigit + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_digit(UChar32 ch, int8_t radix); + +/** + * Determines the character representation for a specific digit in + * the specified radix. If the value of radix is not a + * valid radix, or the value of digit is not a valid + * digit in the specified radix, the null character + * (U+0000) is returned. + *

+ * The radix argument is valid if it is greater than or + * equal to 2 and less than or equal to 36. + * The digit argument is valid if + * 0 <= digit < radix. + *

+ * If the digit is less than 10, then + * '0' + digit is returned. Otherwise, the value + * 'a' + digit - 10 is returned. + * + * Same as java.lang.Character.forDigit(). + * + * @param digit the number to convert to a character. + * @param radix the radix. + * @return the char representation of the specified digit + * in the specified radix. + * + * @see u_digit + * @see u_charDigitValue + * @see u_isdigit + * @stable ICU 2.0 + */ +U_STABLE UChar32 U_EXPORT2 +u_forDigit(int32_t digit, int8_t radix); + +/** + * Get the "age" of the code point. + * The "age" is the Unicode version when the code point was first + * designated (as a non-character or for Private Use) + * or assigned a character. + * This can be useful to avoid emitting code points to receiving + * processes that do not accept newer characters. + * The data is from the UCD file DerivedAge.txt. + * + * @param c The code point. + * @param versionArray The Unicode version number array, to be filled in. + * + * @stable ICU 2.1 + */ +U_STABLE void U_EXPORT2 +u_charAge(UChar32 c, UVersionInfo versionArray); + +/** + * Gets the Unicode version information. + * The version array is filled in with the version information + * for the Unicode standard that is currently used by ICU. + * For example, Unicode version 3.1.1 is represented as an array with + * the values { 3, 1, 1, 0 }. + * + * @param versionArray an output array that will be filled in with + * the Unicode version number + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +u_getUnicodeVersion(UVersionInfo versionArray); + +#if !UCONFIG_NO_NORMALIZATION +/** + * Get the FC_NFKC_Closure property string for a character. + * See Unicode Standard Annex #15 for details, search for "FC_NFKC_Closure" + * or for "FNC": http://www.unicode.org/reports/tr15/ + * + * @param c The character (code point) for which to get the FC_NFKC_Closure string. + * It must be 0<=c<=0x10ffff. + * @param dest Destination address for copying the string. + * The string will be zero-terminated if possible. + * If there is no FC_NFKC_Closure string, + * then the buffer will be set to the empty string. + * @param destCapacity ==sizeof(dest) + * @param pErrorCode Pointer to a UErrorCode variable. + * @return The length of the string, or 0 if there is no FC_NFKC_Closure string for this character. + * If the destCapacity is less than or equal to the length, then the buffer + * contains the truncated name and the returned length indicates the full + * length of the name. + * The length does not include the zero-termination. + * + * @stable ICU 2.2 + */ +U_STABLE int32_t U_EXPORT2 +u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode); + +#endif + + +U_CDECL_END + +#endif /*_UCHAR*/ +/*eof*/ + +// utext.h +/* +******************************************************************************* +* +* Copyright (C) 2004-2012, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: utext.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2004oct06 +* created by: Markus W. Scherer +*/ + +#ifndef __UTEXT_H__ +#define __UTEXT_H__ + +/** + * \file + * \brief C API: Abstract Unicode Text API + * + * The Text Access API provides a means to allow text that is stored in alternative + * formats to work with ICU services. ICU normally operates on text that is + * stored in UTF-16 format, in (UChar *) arrays for the C APIs or as type + * UnicodeString for C++ APIs. + * + * ICU Text Access allows other formats, such as UTF-8 or non-contiguous + * UTF-16 strings, to be placed in a UText wrapper and then passed to ICU services. + * + * There are three general classes of usage for UText: + * + * Application Level Use. This is the simplest usage - applications would + * use one of the utext_open() functions on their input text, and pass + * the resulting UText to the desired ICU service. + * + * Second is usage in ICU Services, such as break iteration, that will need to + * operate on input presented to them as a UText. These implementations + * will need to use the iteration and related UText functions to gain + * access to the actual text. + * + * The third class of UText users are "text providers." These are the + * UText implementations for the various text storage formats. An application + * or system with a unique text storage format can implement a set of + * UText provider functions for that format, which will then allow + * ICU services to operate on that format. + * + * + * Iterating over text + * + * Here is sample code for a forward iteration over the contents of a UText + * + * \code + * UChar32 c; + * UText *ut = whatever(); + * + * for (c=utext_next32From(ut, 0); c>=0; c=utext_next32(ut)) { + * // do whatever with the codepoint c here. + * } + * \endcode + * + * And here is similar code to iterate in the reverse direction, from the end + * of the text towards the beginning. + * + * \code + * UChar32 c; + * UText *ut = whatever(); + * int textLength = utext_nativeLength(ut); + * for (c=utext_previous32From(ut, textLength); c>=0; c=utext_previous32(ut)) { + * // do whatever with the codepoint c here. + * } + * \endcode + * + * Characters and Indexing + * + * Indexing into text by UText functions is nearly always in terms of the native + * indexing of the underlying text storage. The storage format could be UTF-8 + * or UTF-32, for example. When coding to the UText access API, no assumptions + * can be made regarding the size of characters, or how far an index + * may move when iterating between characters. + * + * All indices supplied to UText functions are pinned to the length of the + * text. An out-of-bounds index is not considered to be an error, but is + * adjusted to be in the range 0 <= index <= length of input text. + * + * + * When an index position is returned from a UText function, it will be + * a native index to the underlying text. In the case of multi-unit characters, + * it will always refer to the first position of the character, + * never to the interior. This is essentially the same thing as saying that + * a returned index will always point to a boundary between characters. + * + * When a native index is supplied to a UText function, all indices that + * refer to any part of a multi-unit character representation are considered + * to be equivalent. In the case of multi-unit characters, an incoming index + * will be logically normalized to refer to the start of the character. + * + * It is possible to test whether a native index is on a code point boundary + * by doing a utext_setNativeIndex() followed by a utext_getNativeIndex(). + * If the index is returned unchanged, it was on a code point boundary. If + * an adjusted index is returned, the original index referred to the + * interior of a character. + * + * Conventions for calling UText functions + * + * Most UText access functions have as their first parameter a (UText *) pointer, + * which specifies the UText to be used. Unless otherwise noted, the + * pointer must refer to a valid, open UText. Attempting to + * use a closed UText or passing a NULL pointer is a programming error and + * will produce undefined results or NULL pointer exceptions. + * + * The UText_Open family of functions can either open an existing (closed) + * UText, or heap allocate a new UText. Here is sample code for creating + * a stack-allocated UText. + * + * \code + * char *s = whatever(); // A utf-8 string + * U_ErrorCode status = U_ZERO_ERROR; + * UText ut = UTEXT_INITIALIZER; + * utext_openUTF8(ut, s, -1, &status); + * if (U_FAILURE(status)) { + * // error handling + * } else { + * // work with the UText + * } + * \endcode + * + * Any existing UText passed to an open function _must_ have been initialized, + * either by the UTEXT_INITIALIZER, or by having been originally heap-allocated + * by an open function. Passing NULL will cause the open function to + * heap-allocate and fully initialize a new UText. + * + */ + + + + + +U_CDECL_BEGIN + +struct UText; +typedef struct UText UText; /**< C typedef for struct UText. @stable ICU 3.6 */ + + +/*************************************************************************************** + * + * C Functions for creating UText wrappers around various kinds of text strings. + * + ****************************************************************************************/ + + +/** + * Close function for UText instances. + * Cleans up, releases any resources being held by an open UText. + *

+ * If the UText was originally allocated by one of the utext_open functions, + * the storage associated with the utext will also be freed. + * If the UText storage originated with the application, as it would with + * a local or static instance, the storage will not be deleted. + * + * An open UText can be reset to refer to new string by using one of the utext_open() + * functions without first closing the UText. + * + * @param ut The UText to be closed. + * @return NULL if the UText struct was deleted by the close. If the UText struct + * was originally provided by the caller to the open function, it is + * returned by this function, and may be safely used again in + * a subsequent utext_open. + * + * @stable ICU 3.4 + */ +U_STABLE UText * U_EXPORT2 +utext_close(UText *ut); + + +/** + * Open a read-only UText implementation for UTF-8 strings. + * + * \htmlonly + * Any invalid UTF-8 in the input will be handled in this way: + * a sequence of bytes that has the form of a truncated, but otherwise valid, + * UTF-8 sequence will be replaced by a single unicode replacement character, \uFFFD. + * Any other illegal bytes will each be replaced by a \uFFFD. + * \endhtmlonly + * + * @param ut Pointer to a UText struct. If NULL, a new UText will be created. + * If non-NULL, must refer to an initialized UText struct, which will then + * be reset to reference the specified UTF-8 string. + * @param s A UTF-8 string. Must not be NULL. + * @param length The length of the UTF-8 string in bytes, or -1 if the string is + * zero terminated. + * @param status Errors are returned here. + * @return A pointer to the UText. If a pre-allocated UText was provided, it + * will always be used and returned. + * @stable ICU 3.4 + */ +U_STABLE UText * U_EXPORT2 +utext_openUTF8(UText *ut, const char *s, int64_t length, UErrorCode *status); + + +/** + * Open a read-only UText for UChar * string. + * + * @param ut Pointer to a UText struct. If NULL, a new UText will be created. + * If non-NULL, must refer to an initialized UText struct, which will then + * be reset to reference the specified UChar string. + * @param s A UChar (UTF-16) string + * @param length The number of UChars in the input string, or -1 if the string is + * zero terminated. + * @param status Errors are returned here. + * @return A pointer to the UText. If a pre-allocated UText was provided, it + * will always be used and returned. + * @stable ICU 3.4 + */ +U_STABLE UText * U_EXPORT2 +utext_openUChars(UText *ut, const UChar *s, int64_t length, UErrorCode *status); + + + + +/** + * Clone a UText. This is much like opening a UText where the source text is itself + * another UText. + * + * A deep clone will copy both the UText data structures and the underlying text. + * The original and cloned UText will operate completely independently; modifications + * made to the text in one will not affect the other. Text providers are not + * required to support deep clones. The user of clone() must check the status return + * and be prepared to handle failures. + * + * The standard UText implementations for UTF8, UChar *, UnicodeString and + * Replaceable all support deep cloning. + * + * The UText returned from a deep clone will be writable, assuming that the text + * provider is able to support writing, even if the source UText had been made + * non-writable by means of UText_freeze(). + * + * A shallow clone replicates only the UText data structures; it does not make + * a copy of the underlying text. Shallow clones can be used as an efficient way to + * have multiple iterators active in a single text string that is not being + * modified. + * + * A shallow clone operation will not fail, barring truly exceptional conditions such + * as memory allocation failures. + * + * Shallow UText clones should be avoided if the UText functions that modify the + * text are expected to be used, either on the original or the cloned UText. + * Any such modifications can cause unpredictable behavior. Read Only + * shallow clones provide some protection against errors of this type by + * disabling text modification via the cloned UText. + * + * A shallow clone made with the readOnly parameter == FALSE will preserve the + * utext_isWritable() state of the source object. Note, however, that + * write operations must be avoided while more than one UText exists that refer + * to the same underlying text. + * + * A UText and its clone may be safely concurrently accessed by separate threads. + * This is true for read access only with shallow clones, and for both read and + * write access with deep clones. + * It is the responsibility of the Text Provider to ensure that this thread safety + * constraint is met. + * + * @param dest A UText struct to be filled in with the result of the clone operation, + * or NULL if the clone function should heap-allocate a new UText struct. + * If non-NULL, must refer to an already existing UText, which will then + * be reset to become the clone. + * @param src The UText to be cloned. + * @param deep TRUE to request a deep clone, FALSE for a shallow clone. + * @param readOnly TRUE to request that the cloned UText have read only access to the + * underlying text. + + * @param status Errors are returned here. For deep clones, U_UNSUPPORTED_ERROR + * will be returned if the text provider is unable to clone the + * original text. + * @return The newly created clone, or NULL if the clone operation failed. + * @stable ICU 3.4 + */ +U_STABLE UText * U_EXPORT2 +utext_clone(UText *dest, const UText *src, UBool deep, UBool readOnly, UErrorCode *status); + + +/** + * Compare two UText objects for equality. + * UTexts are equal if they are iterating over the same text, and + * have the same iteration position within the text. + * If either or both of the parameters are NULL, the comparison is FALSE. + * + * @param a The first of the two UTexts to compare. + * @param b The other UText to be compared. + * @return TRUE if the two UTexts are equal. + * @stable ICU 3.6 + */ +U_STABLE UBool U_EXPORT2 +utext_equals(const UText *a, const UText *b); + + +/***************************************************************************** + * + * Functions to work with the text represeted by a UText wrapper + * + *****************************************************************************/ + +/** + * Get the length of the text. Depending on the characteristics + * of the underlying text representation, this may be expensive. + * @see utext_isLengthExpensive() + * + * + * @param ut the text to be accessed. + * @return the length of the text, expressed in native units. + * + * @stable ICU 3.4 + */ +U_STABLE int64_t U_EXPORT2 +utext_nativeLength(UText *ut); + +/** + * Return TRUE if calculating the length of the text could be expensive. + * Finding the length of NUL terminated strings is considered to be expensive. + * + * Note that the value of this function may change + * as the result of other operations on a UText. + * Once the length of a string has been discovered, it will no longer + * be expensive to report it. + * + * @param ut the text to be accessed. + * @return TRUE if determining the length of the text could be time consuming. + * @stable ICU 3.4 + */ +U_STABLE UBool U_EXPORT2 +utext_isLengthExpensive(const UText *ut); + +/** + * Returns the code point at the requested index, + * or U_SENTINEL (-1) if it is out of bounds. + * + * If the specified index points to the interior of a multi-unit + * character - one of the trail bytes of a UTF-8 sequence, for example - + * the complete code point will be returned. + * + * The iteration position will be set to the start of the returned code point. + * + * This function is roughly equivalent to the the sequence + * utext_setNativeIndex(index); + * utext_current32(); + * (There is a subtle difference if the index is out of bounds by being less than zero - + * utext_setNativeIndex(negative value) sets the index to zero, after which utext_current() + * will return the char at zero. utext_char32At(negative index), on the other hand, will + * return the U_SENTINEL value of -1.) + * + * @param ut the text to be accessed + * @param nativeIndex the native index of the character to be accessed. If the index points + * to other than the first unit of a multi-unit character, it will be adjusted + * to the start of the character. + * @return the code point at the specified index. + * @stable ICU 3.4 + */ +U_STABLE UChar32 U_EXPORT2 +utext_char32At(UText *ut, int64_t nativeIndex); + + +/** + * + * Get the code point at the current iteration position, + * or U_SENTINEL (-1) if the iteration has reached the end of + * the input text. + * + * @param ut the text to be accessed. + * @return the Unicode code point at the current iterator position. + * @stable ICU 3.4 + */ +U_STABLE UChar32 U_EXPORT2 +utext_current32(UText *ut); + + +/** + * Get the code point at the current iteration position of the UText, and + * advance the position to the first index following the character. + * + * If the position is at the end of the text (the index following + * the last character, which is also the length of the text), + * return U_SENTINEL (-1) and do not advance the index. + * + * This is a post-increment operation. + * + * An inline macro version of this function, UTEXT_NEXT32(), + * is available for performance critical use. + * + * @param ut the text to be accessed. + * @return the Unicode code point at the iteration position. + * @see UTEXT_NEXT32 + * @stable ICU 3.4 + */ +U_STABLE UChar32 U_EXPORT2 +utext_next32(UText *ut); + + +/** + * Move the iterator position to the character (code point) whose + * index precedes the current position, and return that character. + * This is a pre-decrement operation. + * + * If the initial position is at the start of the text (index of 0) + * return U_SENTINEL (-1), and leave the position unchanged. + * + * An inline macro version of this function, UTEXT_PREVIOUS32(), + * is available for performance critical use. + * + * @param ut the text to be accessed. + * @return the previous UChar32 code point, or U_SENTINEL (-1) + * if the iteration has reached the start of the text. + * @see UTEXT_PREVIOUS32 + * @stable ICU 3.4 + */ +U_STABLE UChar32 U_EXPORT2 +utext_previous32(UText *ut); + + +/** + * Set the iteration index and return the code point at that index. + * Leave the iteration index at the start of the following code point. + * + * This function is the most efficient and convenient way to + * begin a forward iteration. The results are identical to the those + * from the sequence + * \code + * utext_setIndex(); + * utext_next32(); + * \endcode + * + * @param ut the text to be accessed. + * @param nativeIndex Iteration index, in the native units of the text provider. + * @return Code point which starts at or before index, + * or U_SENTINEL (-1) if it is out of bounds. + * @stable ICU 3.4 + */ +U_STABLE UChar32 U_EXPORT2 +utext_next32From(UText *ut, int64_t nativeIndex); + + + +/** + * Set the iteration index, and return the code point preceding the + * one specified by the initial index. Leave the iteration position + * at the start of the returned code point. + * + * This function is the most efficient and convenient way to + * begin a backwards iteration. + * + * @param ut the text to be accessed. + * @param nativeIndex Iteration index in the native units of the text provider. + * @return Code point preceding the one at the initial index, + * or U_SENTINEL (-1) if it is out of bounds. + * + * @stable ICU 3.4 + */ +U_STABLE UChar32 U_EXPORT2 +utext_previous32From(UText *ut, int64_t nativeIndex); + +/** + * Get the current iterator position, which can range from 0 to + * the length of the text. + * The position is a native index into the input text, in whatever format it + * may have (possibly UTF-8 for example), and may not always be the same as + * the corresponding UChar (UTF-16) index. + * The returned position will always be aligned to a code point boundary. + * + * @param ut the text to be accessed. + * @return the current index position, in the native units of the text provider. + * @stable ICU 3.4 + */ +U_STABLE int64_t U_EXPORT2 +utext_getNativeIndex(const UText *ut); + +/** + * Set the current iteration position to the nearest code point + * boundary at or preceding the specified index. + * The index is in the native units of the original input text. + * If the index is out of range, it will be pinned to be within + * the range of the input text. + *

+ * It will usually be more efficient to begin an iteration + * using the functions utext_next32From() or utext_previous32From() + * rather than setIndex(). + *

+ * Moving the index position to an adjacent character is best done + * with utext_next32(), utext_previous32() or utext_moveIndex32(). + * Attempting to do direct arithmetic on the index position is + * complicated by the fact that the size (in native units) of a + * character depends on the underlying representation of the character + * (UTF-8, UTF-16, UTF-32, arbitrary codepage), and is not + * easily knowable. + * + * @param ut the text to be accessed. + * @param nativeIndex the native unit index of the new iteration position. + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +utext_setNativeIndex(UText *ut, int64_t nativeIndex); + +/** + * Move the iterator postion by delta code points. The number of code points + * is a signed number; a negative delta will move the iterator backwards, + * towards the start of the text. + *

+ * The index is moved by delta code points + * forward or backward, but no further backward than to 0 and + * no further forward than to utext_nativeLength(). + * The resulting index value will be in between 0 and length, inclusive. + * + * @param ut the text to be accessed. + * @param delta the signed number of code points to move the iteration position. + * @return TRUE if the position could be moved the requested number of positions while + * staying within the range [0 - text length]. + * @stable ICU 3.4 + */ +U_STABLE UBool U_EXPORT2 +utext_moveIndex32(UText *ut, int32_t delta); + +/** + * Get the native index of the character preceeding the current position. + * If the iteration position is already at the start of the text, zero + * is returned. + * The value returned is the same as that obtained from the following sequence, + * but without the side effect of changing the iteration position. + * + * \code + * UText *ut = whatever; + * ... + * utext_previous(ut) + * utext_getNativeIndex(ut); + * \endcode + * + * This function is most useful during forwards iteration, where it will get the + * native index of the character most recently returned from utext_next(). + * + * @param ut the text to be accessed + * @return the native index of the character preceeding the current index position, + * or zero if the current position is at the start of the text. + * @stable ICU 3.6 + */ +U_STABLE int64_t U_EXPORT2 +utext_getPreviousNativeIndex(UText *ut); + + +/** + * + * Extract text from a UText into a UChar buffer. The range of text to be extracted + * is specified in the native indices of the UText provider. These may not necessarily + * be UTF-16 indices. + *

+ * The size (number of 16 bit UChars) of the data to be extracted is returned. The + * full number of UChars is returned, even when the extracted text is truncated + * because the specified buffer size is too small. + *

+ * The extracted string will (if you are a user) / must (if you are a text provider) + * be NUL-terminated if there is sufficient space in the destination buffer. This + * terminating NUL is not included in the returned length. + *

+ * The iteration index is left at the position following the last extracted character. + * + * @param ut the UText from which to extract data. + * @param nativeStart the native index of the first character to extract.\ + * If the specified index is out of range, + * it will be pinned to to be within 0 <= index <= textLength + * @param nativeLimit the native string index of the position following the last + * character to extract. If the specified index is out of range, + * it will be pinned to to be within 0 <= index <= textLength. + * nativeLimit must be >= nativeStart. + * @param dest the UChar (UTF-16) buffer into which the extracted text is placed + * @param destCapacity The size, in UChars, of the destination buffer. May be zero + * for precomputing the required size. + * @param status receives any error status. + * U_BUFFER_OVERFLOW_ERROR: the extracted text was truncated because the + * buffer was too small. Returns number of UChars for preflighting. + * @return Number of UChars in the data to be extracted. Does not include a trailing NUL. + * + * @stable ICU 3.4 + */ +U_STABLE int32_t U_EXPORT2 +utext_extract(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + UChar *dest, int32_t destCapacity, + UErrorCode *status); + + + +/************************************************************************************ + * + * #define inline versions of selected performance-critical text access functions + * Caution: do not use auto increment++ or decrement-- expressions + * as parameters to these macros. + * + * For most use, where there is no extreme performance constraint, the + * normal, non-inline functions are a better choice. The resulting code + * will be smaller, and, if the need ever arises, easier to debug. + * + * These are implemented as #defines rather than real functions + * because there is no fully portable way to do inline functions in plain C. + * + ************************************************************************************/ + + +/** + * inline version of utext_next32(), for performance-critical situations. + * + * Get the code point at the current iteration position of the UText, and + * advance the position to the first index following the character. + * This is a post-increment operation. + * Returns U_SENTINEL (-1) if the position is at the end of the + * text. + * + * @stable ICU 3.4 + */ +#define UTEXT_NEXT32(ut) \ + ((ut)->chunkOffset < (ut)->chunkLength && ((ut)->chunkContents)[(ut)->chunkOffset]<0xd800 ? \ + ((ut)->chunkContents)[((ut)->chunkOffset)++] : utext_next32(ut)) + +/** + * inline version of utext_previous32(), for performance-critical situations. + * + * Move the iterator position to the character (code point) whose + * index precedes the current position, and return that character. + * This is a pre-decrement operation. + * Returns U_SENTINEL (-1) if the position is at the start of the text. + * + * @stable ICU 3.4 + */ +#define UTEXT_PREVIOUS32(ut) \ + ((ut)->chunkOffset > 0 && \ + (ut)->chunkContents[(ut)->chunkOffset-1] < 0xd800 ? \ + (ut)->chunkContents[--((ut)->chunkOffset)] : utext_previous32(ut)) + +/** + * inline version of utext_getNativeIndex(), for performance-critical situations. + * + * Get the current iterator position, which can range from 0 to + * the length of the text. + * The position is a native index into the input text, in whatever format it + * may have (possibly UTF-8 for example), and may not always be the same as + * the corresponding UChar (UTF-16) index. + * The returned position will always be aligned to a code point boundary. + * + * @stable ICU 3.6 + */ +#define UTEXT_GETNATIVEINDEX(ut) \ + ((ut)->chunkOffset <= (ut)->nativeIndexingLimit? \ + (ut)->chunkNativeStart+(ut)->chunkOffset : \ + (ut)->pFuncs->mapOffsetToNative(ut)) + +/** + * inline version of utext_setNativeIndex(), for performance-critical situations. + * + * Set the current iteration position to the nearest code point + * boundary at or preceding the specified index. + * The index is in the native units of the original input text. + * If the index is out of range, it will be pinned to be within + * the range of the input text. + * + * @stable ICU 3.8 + */ +#define UTEXT_SETNATIVEINDEX(ut, ix) \ + { int64_t __offset = (ix) - (ut)->chunkNativeStart; \ + if (__offset>=0 && __offset<=(int64_t)(ut)->nativeIndexingLimit) { \ + (ut)->chunkOffset=(int32_t)__offset; \ + } else { \ + utext_setNativeIndex((ut), (ix)); } } + + + +/************************************************************************************ + * + * Functions related to writing or modifying the text. + * These will work only with modifiable UTexts. Attempting to + * modify a read-only UText will return an error status. + * + ************************************************************************************/ + + +/** + * Return TRUE if the text can be written (modified) with utext_replace() or + * utext_copy(). For the text to be writable, the text provider must + * be of a type that supports writing and the UText must not be frozen. + * + * Attempting to modify text when utext_isWriteable() is FALSE will fail - + * the text will not be modified, and an error will be returned from the function + * that attempted the modification. + * + * @param ut the UText to be tested. + * @return TRUE if the text is modifiable. + * + * @see utext_freeze() + * @see utext_replace() + * @see utext_copy() + * @stable ICU 3.4 + * + */ +U_STABLE UBool U_EXPORT2 +utext_isWritable(const UText *ut); + + +/** + * Test whether there is meta data associated with the text. + * @see Replaceable::hasMetaData() + * + * @param ut The UText to be tested + * @return TRUE if the underlying text includes meta data. + * @stable ICU 3.4 + */ +U_STABLE UBool U_EXPORT2 +utext_hasMetaData(const UText *ut); + + +/** + * Replace a range of the original text with a replacement text. + * + * Leaves the current iteration position at the position following the + * newly inserted replacement text. + * + * This function is only available on UText types that support writing, + * that is, ones where utext_isWritable() returns TRUE. + * + * When using this function, there should be only a single UText opened onto the + * underlying native text string. Behavior after a replace operation + * on a UText is undefined for any other additional UTexts that refer to the + * modified string. + * + * @param ut the UText representing the text to be operated on. + * @param nativeStart the native index of the start of the region to be replaced + * @param nativeLimit the native index of the character following the region to be replaced. + * @param replacementText pointer to the replacement text + * @param replacementLength length of the replacement text, or -1 if the text is NUL terminated. + * @param status receives any error status. Possible errors include + * U_NO_WRITE_PERMISSION + * + * @return The signed number of (native) storage units by which + * the length of the text expanded or contracted. + * + * @stable ICU 3.4 + */ +U_STABLE int32_t U_EXPORT2 +utext_replace(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + const UChar *replacementText, int32_t replacementLength, + UErrorCode *status); + + + +/** + * + * Copy or move a substring from one position to another within the text, + * while retaining any metadata associated with the text. + * This function is used to duplicate or reorder substrings. + * The destination index must not overlap the source range. + * + * The text to be copied or moved is inserted at destIndex; + * it does not replace or overwrite any existing text. + * + * The iteration position is left following the newly inserted text + * at the destination position. + * + * This function is only available on UText types that support writing, + * that is, ones where utext_isWritable() returns TRUE. + * + * When using this function, there should be only a single UText opened onto the + * underlying native text string. Behavior after a copy operation + * on a UText is undefined in any other additional UTexts that refer to the + * modified string. + * + * @param ut The UText representing the text to be operated on. + * @param nativeStart The native index of the start of the region to be copied or moved + * @param nativeLimit The native index of the character position following the region + * to be copied. + * @param destIndex The native destination index to which the source substring is + * copied or moved. + * @param move If TRUE, then the substring is moved, not copied/duplicated. + * @param status receives any error status. Possible errors include U_NO_WRITE_PERMISSION + * + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +utext_copy(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + int64_t destIndex, + UBool move, + UErrorCode *status); + + +/** + *

+ * Freeze a UText. This prevents any modification to the underlying text itself + * by means of functions operating on this UText. + *

+ *

+ * Once frozen, a UText can not be unfrozen. The intent is to ensure + * that a the text underlying a frozen UText wrapper cannot be modified via that UText. + *

+ *

+ * Caution: freezing a UText will disable changes made via the specific + * frozen UText wrapper only; it will not have any effect on the ability to + * directly modify the text by bypassing the UText. Any such backdoor modifications + * are always an error while UText access is occuring because the underlying + * text can get out of sync with UText's buffering. + *

+ * + * @param ut The UText to be frozen. + * @see utext_isWritable() + * @stable ICU 3.6 + */ +U_STABLE void U_EXPORT2 +utext_freeze(UText *ut); + + +/** + * UText provider properties (bit field indexes). + * + * @see UText + * @stable ICU 3.4 + */ +enum { + /** + * It is potentially time consuming for the provider to determine the length of the text. + * @stable ICU 3.4 + */ + UTEXT_PROVIDER_LENGTH_IS_EXPENSIVE = 1, + /** + * Text chunks remain valid and usable until the text object is modified or + * deleted, not just until the next time the access() function is called + * (which is the default). + * @stable ICU 3.4 + */ + UTEXT_PROVIDER_STABLE_CHUNKS = 2, + /** + * The provider supports modifying the text via the replace() and copy() + * functions. + * @see Replaceable + * @stable ICU 3.4 + */ + UTEXT_PROVIDER_WRITABLE = 3, + /** + * There is meta data associated with the text. + * @see Replaceable::hasMetaData() + * @stable ICU 3.4 + */ + UTEXT_PROVIDER_HAS_META_DATA = 4, + /** + * Text provider owns the text storage. + * Generally occurs as the result of a deep clone of the UText. + * When closing the UText, the associated text must + * also be closed/deleted/freed/ whatever is appropriate. + * @stable ICU 3.6 + */ + UTEXT_PROVIDER_OWNS_TEXT = 5 +}; + +/** + * Function type declaration for UText.clone(). + * + * clone a UText. Much like opening a UText where the source text is itself + * another UText. + * + * A deep clone will copy both the UText data structures and the underlying text. + * The original and cloned UText will operate completely independently; modifications + * made to the text in one will not effect the other. Text providers are not + * required to support deep clones. The user of clone() must check the status return + * and be prepared to handle failures. + * + * A shallow clone replicates only the UText data structures; it does not make + * a copy of the underlying text. Shallow clones can be used as an efficient way to + * have multiple iterators active in a single text string that is not being + * modified. + * + * A shallow clone operation must not fail except for truly exceptional conditions such + * as memory allocation failures. + * + * A UText and its clone may be safely concurrently accessed by separate threads. + * This is true for both shallow and deep clones. + * It is the responsibility of the Text Provider to ensure that this thread safety + * constraint is met. + + * + * @param dest A UText struct to be filled in with the result of the clone operation, + * or NULL if the clone function should heap-allocate a new UText struct. + * @param src The UText to be cloned. + * @param deep TRUE to request a deep clone, FALSE for a shallow clone. + * @param status Errors are returned here. For deep clones, U_UNSUPPORTED_ERROR + * should be returned if the text provider is unable to clone the + * original text. + * @return The newly created clone, or NULL if the clone operation failed. + * + * @stable ICU 3.4 + */ +typedef UText * U_CALLCONV +UTextClone(UText *dest, const UText *src, UBool deep, UErrorCode *status); + + +/** + * Function type declaration for UText.nativeLength(). + * + * @param ut the UText to get the length of. + * @return the length, in the native units of the original text string. + * @see UText + * @stable ICU 3.4 + */ +typedef int64_t U_CALLCONV +UTextNativeLength(UText *ut); + +/** + * Function type declaration for UText.access(). Get the description of the text chunk + * containing the text at a requested native index. The UText's iteration + * position will be left at the requested index. If the index is out + * of bounds, the iteration position will be left at the start or end + * of the string, as appropriate. + * + * Chunks must begin and end on code point boundaries. A single code point + * comprised of multiple storage units must never span a chunk boundary. + * + * + * @param ut the UText being accessed. + * @param nativeIndex Requested index of the text to be accessed. + * @param forward If TRUE, then the returned chunk must contain text + * starting from the index, so that start<=index + * The size (number of 16 bit UChars) in the data to be extracted is returned. The + * full amount is returned, even when the specified buffer size is smaller. + *

+ * The extracted string will (if you are a user) / must (if you are a text provider) + * be NUL-terminated if there is sufficient space in the destination buffer. + * + * @param ut the UText from which to extract data. + * @param nativeStart the native index of the first characer to extract. + * @param nativeLimit the native string index of the position following the last + * character to extract. + * @param dest the UChar (UTF-16) buffer into which the extracted text is placed + * @param destCapacity The size, in UChars, of the destination buffer. May be zero + * for precomputing the required size. + * @param status receives any error status. + * If U_BUFFER_OVERFLOW_ERROR: Returns number of UChars for + * preflighting. + * @return Number of UChars in the data. Does not include a trailing NUL. + * + * @stable ICU 3.4 + */ +typedef int32_t U_CALLCONV +UTextExtract(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + UChar *dest, int32_t destCapacity, + UErrorCode *status); + +/** + * Function type declaration for UText.replace(). + * + * Replace a range of the original text with a replacement text. + * + * Leaves the current iteration position at the position following the + * newly inserted replacement text. + * + * This function need only be implemented on UText types that support writing. + * + * When using this function, there should be only a single UText opened onto the + * underlying native text string. The function is responsible for updating the + * text chunk within the UText to reflect the updated iteration position, + * taking into account any changes to the underlying string's structure caused + * by the replace operation. + * + * @param ut the UText representing the text to be operated on. + * @param nativeStart the index of the start of the region to be replaced + * @param nativeLimit the index of the character following the region to be replaced. + * @param replacementText pointer to the replacement text + * @param replacmentLength length of the replacement text in UChars, or -1 if the text is NUL terminated. + * @param status receives any error status. Possible errors include + * U_NO_WRITE_PERMISSION + * + * @return The signed number of (native) storage units by which + * the length of the text expanded or contracted. + * + * @stable ICU 3.4 + */ +typedef int32_t U_CALLCONV +UTextReplace(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + const UChar *replacementText, int32_t replacmentLength, + UErrorCode *status); + +/** + * Function type declaration for UText.copy(). + * + * Copy or move a substring from one position to another within the text, + * while retaining any metadata associated with the text. + * This function is used to duplicate or reorder substrings. + * The destination index must not overlap the source range. + * + * The text to be copied or moved is inserted at destIndex; + * it does not replace or overwrite any existing text. + * + * This function need only be implemented for UText types that support writing. + * + * When using this function, there should be only a single UText opened onto the + * underlying native text string. The function is responsible for updating the + * text chunk within the UText to reflect the updated iteration position, + * taking into account any changes to the underlying string's structure caused + * by the replace operation. + * + * @param ut The UText representing the text to be operated on. + * @param nativeStart The index of the start of the region to be copied or moved + * @param nativeLimit The index of the character following the region to be replaced. + * @param nativeDest The destination index to which the source substring is copied or moved. + * @param move If TRUE, then the substring is moved, not copied/duplicated. + * @param status receives any error status. Possible errors include U_NO_WRITE_PERMISSION + * + * @stable ICU 3.4 + */ +typedef void U_CALLCONV +UTextCopy(UText *ut, + int64_t nativeStart, int64_t nativeLimit, + int64_t nativeDest, + UBool move, + UErrorCode *status); + +/** + * Function type declaration for UText.mapOffsetToNative(). + * Map from the current UChar offset within the current text chunk to + * the corresponding native index in the original source text. + * + * This is required only for text providers that do not use native UTF-16 indexes. + * + * @param ut the UText. + * @return Absolute (native) index corresponding to chunkOffset in the current chunk. + * The returned native index should always be to a code point boundary. + * + * @stable ICU 3.4 + */ +typedef int64_t U_CALLCONV +UTextMapOffsetToNative(const UText *ut); + +/** + * Function type declaration for UText.mapIndexToUTF16(). + * Map from a native index to a UChar offset within a text chunk. + * Behavior is undefined if the native index does not fall within the + * current chunk. + * + * This function is required only for text providers that do not use native UTF-16 indexes. + * + * @param ut The UText containing the text chunk. + * @param nativeIndex Absolute (native) text index, chunk->start<=index<=chunk->limit. + * @return Chunk-relative UTF-16 offset corresponding to the specified native + * index. + * + * @stable ICU 3.4 + */ +typedef int32_t U_CALLCONV +UTextMapNativeIndexToUTF16(const UText *ut, int64_t nativeIndex); + + +/** + * Function type declaration for UText.utextClose(). + * + * A Text Provider close function is only required for provider types that make + * allocations in their open function (or other functions) that must be + * cleaned when the UText is closed. + * + * The allocation of the UText struct itself and any "extra" storage + * associated with the UText is handled by the common UText implementation + * and does not require provider specific cleanup in a close function. + * + * Most UText provider implementations do not need to implement this function. + * + * @param ut A UText object to be closed. + * + * @stable ICU 3.4 + */ +typedef void U_CALLCONV +UTextClose(UText *ut); + + +/** + * (public) Function dispatch table for UText. + * Conceptually very much like a C++ Virtual Function Table. + * This struct defines the organization of the table. + * Each text provider implementation must provide an + * actual table that is initialized with the appropriate functions + * for the type of text being handled. + * @stable ICU 3.6 + */ +struct UTextFuncs { + /** + * (public) Function table size, sizeof(UTextFuncs) + * Intended for use should the table grow to accomodate added + * functions in the future, to allow tests for older format + * function tables that do not contain the extensions. + * + * Fields are placed for optimal alignment on + * 32/64/128-bit-pointer machines, by normally grouping together + * 4 32-bit fields, + * 4 pointers, + * 2 64-bit fields + * in sequence. + * @stable ICU 3.6 + */ + int32_t tableSize; + + /** + * (private) Alignment padding. + * Do not use, reserved for use by the UText framework only. + * @internal + */ + int32_t reserved1, /** @internal */ reserved2, /** @internal */ reserved3; + + + /** + * (public) Function pointer for UTextClone + * + * @see UTextClone + * @stable ICU 3.6 + */ + UTextClone *clone; + + /** + * (public) function pointer for UTextLength + * May be expensive to compute! + * + * @see UTextLength + * @stable ICU 3.6 + */ + UTextNativeLength *nativeLength; + + /** + * (public) Function pointer for UTextAccess. + * + * @see UTextAccess + * @stable ICU 3.6 + */ + UTextAccess *access; + + /** + * (public) Function pointer for UTextExtract. + * + * @see UTextExtract + * @stable ICU 3.6 + */ + UTextExtract *extract; + + /** + * (public) Function pointer for UTextReplace. + * + * @see UTextReplace + * @stable ICU 3.6 + */ + UTextReplace *replace; + + /** + * (public) Function pointer for UTextCopy. + * + * @see UTextCopy + * @stable ICU 3.6 + */ + UTextCopy *copy; + + /** + * (public) Function pointer for UTextMapOffsetToNative. + * + * @see UTextMapOffsetToNative + * @stable ICU 3.6 + */ + UTextMapOffsetToNative *mapOffsetToNative; + + /** + * (public) Function pointer for UTextMapNativeIndexToUTF16. + * + * @see UTextMapNativeIndexToUTF16 + * @stable ICU 3.6 + */ + UTextMapNativeIndexToUTF16 *mapNativeIndexToUTF16; + + /** + * (public) Function pointer for UTextClose. + * + * @see UTextClose + * @stable ICU 3.6 + */ + UTextClose *close; + + /** + * (private) Spare function pointer + * @internal + */ + UTextClose *spare1; + + /** + * (private) Spare function pointer + * @internal + */ + UTextClose *spare2; + + /** + * (private) Spare function pointer + * @internal + */ + UTextClose *spare3; + +}; +/** + * Function dispatch table for UText + * @see UTextFuncs + */ +typedef struct UTextFuncs UTextFuncs; + + /** + * UText struct. Provides the interface between the generic UText access code + * and the UText provider code that works on specific kinds of + * text (UTF-8, noncontiguous UTF-16, whatever.) + * + * Applications that are using predefined types of text providers + * to pass text data to ICU services will have no need to view the + * internals of the UText structs that they open. + * + * @stable ICU 3.6 + */ +struct UText { + /** + * (private) Magic. Used to help detect when UText functions are handed + * invalid or unitialized UText structs. + * utext_openXYZ() functions take an initialized, + * but not necessarily open, UText struct as an + * optional fill-in parameter. This magic field + * is used to check for that initialization. + * Text provider close functions must NOT clear + * the magic field because that would prevent + * reuse of the UText struct. + * @internal + */ + uint32_t magic; + + + /** + * (private) Flags for managing the allocation and freeing of + * memory associated with this UText. + * @internal + */ + int32_t flags; + + + /** + * Text provider properties. This set of flags is maintainted by the + * text provider implementation. + * @stable ICU 3.4 + */ + int32_t providerProperties; + + /** + * (public) sizeOfStruct=sizeof(UText) + * Allows possible backward compatible extension. + * + * @stable ICU 3.4 + */ + int32_t sizeOfStruct; + + /* ------ 16 byte alignment boundary ----------- */ + + + /** + * (protected) Native index of the first character position following + * the current chunk. + * @stable ICU 3.6 + */ + int64_t chunkNativeLimit; + + /** + * (protected) Size in bytes of the extra space (pExtra). + * @stable ICU 3.4 + */ + int32_t extraSize; + + /** + * (protected) The highest chunk offset where native indexing and + * chunk (UTF-16) indexing correspond. For UTF-16 sources, value + * will be equal to chunkLength. + * + * @stable ICU 3.6 + */ + int32_t nativeIndexingLimit; + + /* ---- 16 byte alignment boundary------ */ + + /** + * (protected) Native index of the first character in the text chunk. + * @stable ICU 3.6 + */ + int64_t chunkNativeStart; + + /** + * (protected) Current iteration position within the text chunk (UTF-16 buffer). + * This is the index to the character that will be returned by utext_next32(). + * @stable ICU 3.6 + */ + int32_t chunkOffset; + + /** + * (protected) Length the text chunk (UTF-16 buffer), in UChars. + * @stable ICU 3.6 + */ + int32_t chunkLength; + + /* ---- 16 byte alignment boundary-- */ + + + /** + * (protected) pointer to a chunk of text in UTF-16 format. + * May refer either to original storage of the source of the text, or + * if conversion was required, to a buffer owned by the UText. + * @stable ICU 3.6 + */ + const UChar *chunkContents; + + /** + * (public) Pointer to Dispatch table for accessing functions for this UText. + * @stable ICU 3.6 + */ + const UTextFuncs *pFuncs; + + /** + * (protected) Pointer to additional space requested by the + * text provider during the utext_open operation. + * @stable ICU 3.4 + */ + void *pExtra; + + /** + * (protected) Pointer to string or text-containin object or similar. + * This is the source of the text that this UText is wrapping, in a format + * that is known to the text provider functions. + * @stable ICU 3.4 + */ + const void *context; + + /* --- 16 byte alignment boundary--- */ + + /** + * (protected) Pointer fields available for use by the text provider. + * Not used by UText common code. + * @stable ICU 3.6 + */ + const void *p; + /** + * (protected) Pointer fields available for use by the text provider. + * Not used by UText common code. + * @stable ICU 3.6 + */ + const void *q; + /** + * (protected) Pointer fields available for use by the text provider. + * Not used by UText common code. + * @stable ICU 3.6 + */ + const void *r; + + /** + * Private field reserved for future use by the UText framework + * itself. This is not to be touched by the text providers. + * @internal ICU 3.4 + */ + void *privP; + + + /* --- 16 byte alignment boundary--- */ + + + /** + * (protected) Integer field reserved for use by the text provider. + * Not used by the UText framework, or by the client (user) of the UText. + * @stable ICU 3.4 + */ + int64_t a; + + /** + * (protected) Integer field reserved for use by the text provider. + * Not used by the UText framework, or by the client (user) of the UText. + * @stable ICU 3.4 + */ + int32_t b; + + /** + * (protected) Integer field reserved for use by the text provider. + * Not used by the UText framework, or by the client (user) of the UText. + * @stable ICU 3.4 + */ + int32_t c; + + /* ---- 16 byte alignment boundary---- */ + + + /** + * Private field reserved for future use by the UText framework + * itself. This is not to be touched by the text providers. + * @internal ICU 3.4 + */ + int64_t privA; + /** + * Private field reserved for future use by the UText framework + * itself. This is not to be touched by the text providers. + * @internal ICU 3.4 + */ + int32_t privB; + /** + * Private field reserved for future use by the UText framework + * itself. This is not to be touched by the text providers. + * @internal ICU 3.4 + */ + int32_t privC; +}; + + +/** + * Common function for use by Text Provider implementations to allocate and/or initialize + * a new UText struct. To be called in the implementation of utext_open() functions. + * If the supplied UText parameter is null, a new UText struct will be allocated on the heap. + * If the supplied UText is already open, the provider's close function will be called + * so that the struct can be reused by the open that is in progress. + * + * @param ut pointer to a UText struct to be re-used, or null if a new UText + * should be allocated. + * @param extraSpace The amount of additional space to be allocated as part + * of this UText, for use by types of providers that require + * additional storage. + * @param status Errors are returned here. + * @return pointer to the UText, allocated if necessary, with extra space set up if requested. + * @stable ICU 3.4 + */ +U_STABLE UText * U_EXPORT2 +utext_setup(UText *ut, int32_t extraSpace, UErrorCode *status); + + +/** + * initializer to be used with local (stack) instances of a UText + * struct. UText structs must be initialized before passing + * them to one of the utext_open functions. + * + * @stable ICU 3.6 + */ +#define UTEXT_INITIALIZER { \ + UTEXT_MAGIC, /* magic */ \ + 0, /* flags */ \ + 0, /* providerProps */ \ + sizeof(UText), /* sizeOfStruct */ \ + 0, /* chunkNativeLimit */ \ + 0, /* extraSize */ \ + 0, /* nativeIndexingLimit */ \ + 0, /* chunkNativeStart */ \ + 0, /* chunkOffset */ \ + 0, /* chunkLength */ \ + NULL, /* chunkContents */ \ + NULL, /* pFuncs */ \ + NULL, /* pExtra */ \ + NULL, /* context */ \ + NULL, NULL, NULL, /* p, q, r */ \ + NULL, /* privP */ \ + 0, 0, 0, /* a, b, c */ \ + 0, 0, 0 /* privA,B,C, */ \ + } + + +U_CDECL_END + + + +#endif + +// uset.h +/* +******************************************************************************* +* +* Copyright (C) 2002-2014, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: uset.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2002mar07 +* created by: Markus W. Scherer +* +* C version of UnicodeSet. +*/ + + +/** + * \file + * \brief C API: Unicode Set + * + *

This is a C wrapper around the C++ UnicodeSet class.

+ */ + +#ifndef __USET_H__ +#define __USET_H__ + + +#ifndef UCNV_H +struct USet; +/** + * A UnicodeSet. Use the uset_* API to manipulate. Create with + * uset_open*, and destroy with uset_close. + * @stable ICU 2.4 + */ +typedef struct USet USet; +#endif + +/** + * Bitmask values to be passed to uset_openPatternOptions() or + * uset_applyPattern() taking an option parameter. + * @stable ICU 2.4 + */ +enum { + /** + * Ignore white space within patterns unless quoted or escaped. + * @stable ICU 2.4 + */ + USET_IGNORE_SPACE = 1, + + /** + * Enable case insensitive matching. E.g., "[ab]" with this flag + * will match 'a', 'A', 'b', and 'B'. "[^ab]" with this flag will + * match all except 'a', 'A', 'b', and 'B'. This performs a full + * closure over case mappings, e.g. U+017F for s. + * + * The resulting set is a superset of the input for the code points but + * not for the strings. + * It performs a case mapping closure of the code points and adds + * full case folding strings for the code points, and reduces strings of + * the original set to their full case folding equivalents. + * + * This is designed for case-insensitive matches, for example + * in regular expressions. The full code point case closure allows checking of + * an input character directly against the closure set. + * Strings are matched by comparing the case-folded form from the closure + * set with an incremental case folding of the string in question. + * + * The closure set will also contain single code points if the original + * set contained case-equivalent strings (like U+00DF for "ss" or "Ss" etc.). + * This is not necessary (that is, redundant) for the above matching method + * but results in the same closure sets regardless of whether the original + * set contained the code point or a string. + * + * @stable ICU 2.4 + */ + USET_CASE_INSENSITIVE = 2, + + /** + * Enable case insensitive matching. E.g., "[ab]" with this flag + * will match 'a', 'A', 'b', and 'B'. "[^ab]" with this flag will + * match all except 'a', 'A', 'b', and 'B'. This adds the lower-, + * title-, and uppercase mappings as well as the case folding + * of each existing element in the set. + * @stable ICU 3.2 + */ + USET_ADD_CASE_MAPPINGS = 4 +}; + +/** + * Argument values for whether span() and similar functions continue while + * the current character is contained vs. not contained in the set. + * + * The functionality is straightforward for sets with only single code points, + * without strings (which is the common case): + * - USET_SPAN_CONTAINED and USET_SPAN_SIMPLE work the same. + * - USET_SPAN_CONTAINED and USET_SPAN_SIMPLE are inverses of USET_SPAN_NOT_CONTAINED. + * - span() and spanBack() partition any string the same way when + * alternating between span(USET_SPAN_NOT_CONTAINED) and + * span(either "contained" condition). + * - Using a complemented (inverted) set and the opposite span conditions + * yields the same results. + * + * When a set contains multi-code point strings, then these statements may not + * be true, depending on the strings in the set (for example, whether they + * overlap with each other) and the string that is processed. + * For a set with strings: + * - The complement of the set contains the opposite set of code points, + * but the same set of strings. + * Therefore, complementing both the set and the span conditions + * may yield different results. + * - When starting spans at different positions in a string + * (span(s, ...) vs. span(s+1, ...)) the ends of the spans may be different + * because a set string may start before the later position. + * - span(USET_SPAN_SIMPLE) may be shorter than + * span(USET_SPAN_CONTAINED) because it will not recursively try + * all possible paths. + * For example, with a set which contains the three strings "xy", "xya" and "ax", + * span("xyax", USET_SPAN_CONTAINED) will return 4 but + * span("xyax", USET_SPAN_SIMPLE) will return 3. + * span(USET_SPAN_SIMPLE) will never be longer than + * span(USET_SPAN_CONTAINED). + * - With either "contained" condition, span() and spanBack() may partition + * a string in different ways. + * For example, with a set which contains the two strings "ab" and "ba", + * and when processing the string "aba", + * span() will yield contained/not-contained boundaries of { 0, 2, 3 } + * while spanBack() will yield boundaries of { 0, 1, 3 }. + * + * Note: If it is important to get the same boundaries whether iterating forward + * or backward through a string, then either only span() should be used and + * the boundaries cached for backward operation, or an ICU BreakIterator + * could be used. + * + * Note: Unpaired surrogates are treated like surrogate code points. + * Similarly, set strings match only on code point boundaries, + * never in the middle of a surrogate pair. + * Illegal UTF-8 sequences are treated like U+FFFD. + * When processing UTF-8 strings, malformed set strings + * (strings with unpaired surrogates which cannot be converted to UTF-8) + * are ignored. + * + * @stable ICU 3.8 + */ +typedef enum USetSpanCondition { + /** + * Continues a span() while there is no set element at the current position. + * Increments by one code point at a time. + * Stops before the first set element (character or string). + * (For code points only, this is like while contains(current)==FALSE). + * + * When span() returns, the substring between where it started and the position + * it returned consists only of characters that are not in the set, + * and none of its strings overlap with the span. + * + * @stable ICU 3.8 + */ + USET_SPAN_NOT_CONTAINED = 0, + /** + * Spans the longest substring that is a concatenation of set elements (characters or strings). + * (For characters only, this is like while contains(current)==TRUE). + * + * When span() returns, the substring between where it started and the position + * it returned consists only of set elements (characters or strings) that are in the set. + * + * If a set contains strings, then the span will be the longest substring for which there + * exists at least one non-overlapping concatenation of set elements (characters or strings). + * This is equivalent to a POSIX regular expression for (OR of each set element)*. + * (Java/ICU/Perl regex stops at the first match of an OR.) + * + * @stable ICU 3.8 + */ + USET_SPAN_CONTAINED = 1, + /** + * Continues a span() while there is a set element at the current position. + * Increments by the longest matching element at each position. + * (For characters only, this is like while contains(current)==TRUE). + * + * When span() returns, the substring between where it started and the position + * it returned consists only of set elements (characters or strings) that are in the set. + * + * If a set only contains single characters, then this is the same + * as USET_SPAN_CONTAINED. + * + * If a set contains strings, then the span will be the longest substring + * with a match at each position with the longest single set element (character or string). + * + * Use this span condition together with other longest-match algorithms, + * such as ICU converters (ucnv_getUnicodeSet()). + * + * @stable ICU 3.8 + */ + USET_SPAN_SIMPLE = 2, + /** + * One more than the last span condition. + * @stable ICU 3.8 + */ + USET_SPAN_CONDITION_COUNT +} USetSpanCondition; + +enum { + /** + * Capacity of USerializedSet::staticArray. + * Enough for any single-code point set. + * Also provides padding for nice sizeof(USerializedSet). + * @stable ICU 2.4 + */ + USET_SERIALIZED_STATIC_ARRAY_CAPACITY=8 +}; + +/** + * A serialized form of a Unicode set. Limited manipulations are + * possible directly on a serialized set. See below. + * @stable ICU 2.4 + */ +typedef struct USerializedSet { + /** + * The serialized Unicode Set. + * @stable ICU 2.4 + */ + const uint16_t *array; + /** + * The length of the array that contains BMP characters. + * @stable ICU 2.4 + */ + int32_t bmpLength; + /** + * The total length of the array. + * @stable ICU 2.4 + */ + int32_t length; + /** + * A small buffer for the array to reduce memory allocations. + * @stable ICU 2.4 + */ + uint16_t staticArray[USET_SERIALIZED_STATIC_ARRAY_CAPACITY]; +} USerializedSet; + +/********************************************************************* + * USet API + *********************************************************************/ + +/** + * Create an empty USet object. + * Equivalent to uset_open(1, 0). + * @return a newly created USet. The caller must call uset_close() on + * it when done. + * @stable ICU 4.2 + */ +U_STABLE USet* U_EXPORT2 +uset_openEmpty(void); + +/** + * Creates a USet object that contains the range of characters + * start..end, inclusive. If start > end + * then an empty set is created (same as using uset_openEmpty()). + * @param start first character of the range, inclusive + * @param end last character of the range, inclusive + * @return a newly created USet. The caller must call uset_close() on + * it when done. + * @stable ICU 2.4 + */ +U_STABLE USet* U_EXPORT2 +uset_open(UChar32 start, UChar32 end); + +/** + * Creates a set from the given pattern. See the UnicodeSet class + * description for the syntax of the pattern language. + * @param pattern a string specifying what characters are in the set + * @param patternLength the length of the pattern, or -1 if null + * terminated + * @param ec the error code + * @stable ICU 2.4 + */ +U_STABLE USet* U_EXPORT2 +uset_openPattern(const UChar* pattern, int32_t patternLength, + UErrorCode* ec); + +/** + * Creates a set from the given pattern. See the UnicodeSet class + * description for the syntax of the pattern language. + * @param pattern a string specifying what characters are in the set + * @param patternLength the length of the pattern, or -1 if null + * terminated + * @param options bitmask for options to apply to the pattern. + * Valid options are USET_IGNORE_SPACE and USET_CASE_INSENSITIVE. + * @param ec the error code + * @stable ICU 2.4 + */ +U_STABLE USet* U_EXPORT2 +uset_openPatternOptions(const UChar* pattern, int32_t patternLength, + uint32_t options, + UErrorCode* ec); + +/** + * Disposes of the storage used by a USet object. This function should + * be called exactly once for objects returned by uset_open(). + * @param set the object to dispose of + * @stable ICU 2.4 + */ +U_STABLE void U_EXPORT2 +uset_close(USet* set); + + +/** + * Returns a copy of this object. + * If this set is frozen, then the clone will be frozen as well. + * Use uset_cloneAsThawed() for a mutable clone of a frozen set. + * @param set the original set + * @return the newly allocated copy of the set + * @see uset_cloneAsThawed + * @stable ICU 3.8 + */ +U_STABLE USet * U_EXPORT2 +uset_clone(const USet *set); + +/** + * Determines whether the set has been frozen (made immutable) or not. + * See the ICU4J Freezable interface for details. + * @param set the set + * @return TRUE/FALSE for whether the set has been frozen + * @see uset_freeze + * @see uset_cloneAsThawed + * @stable ICU 3.8 + */ +U_STABLE UBool U_EXPORT2 +uset_isFrozen(const USet *set); + +/** + * Freeze the set (make it immutable). + * Once frozen, it cannot be unfrozen and is therefore thread-safe + * until it is deleted. + * See the ICU4J Freezable interface for details. + * Freezing the set may also make some operations faster, for example + * uset_contains() and uset_span(). + * A frozen set will not be modified. (It remains frozen.) + * @param set the set + * @return the same set, now frozen + * @see uset_isFrozen + * @see uset_cloneAsThawed + * @stable ICU 3.8 + */ +U_STABLE void U_EXPORT2 +uset_freeze(USet *set); + +/** + * Clone the set and make the clone mutable. + * See the ICU4J Freezable interface for details. + * @param set the set + * @return the mutable clone + * @see uset_freeze + * @see uset_isFrozen + * @see uset_clone + * @stable ICU 3.8 + */ +U_STABLE USet * U_EXPORT2 +uset_cloneAsThawed(const USet *set); + +/** + * Causes the USet object to represent the range start - end. + * If start > end then this USet is set to an empty range. + * A frozen set will not be modified. + * @param set the object to set to the given range + * @param start first character in the set, inclusive + * @param end last character in the set, inclusive + * @stable ICU 3.2 + */ +U_STABLE void U_EXPORT2 +uset_set(USet* set, + UChar32 start, UChar32 end); + +/** + * Modifies the set to represent the set specified by the given + * pattern. See the UnicodeSet class description for the syntax of + * the pattern language. See also the User Guide chapter about UnicodeSet. + * Empties the set passed before applying the pattern. + * A frozen set will not be modified. + * @param set The set to which the pattern is to be applied. + * @param pattern A pointer to UChar string specifying what characters are in the set. + * The character at pattern[0] must be a '['. + * @param patternLength The length of the UChar string. -1 if NUL terminated. + * @param options A bitmask for options to apply to the pattern. + * Valid options are USET_IGNORE_SPACE and USET_CASE_INSENSITIVE. + * @param status Returns an error if the pattern cannot be parsed. + * @return Upon successful parse, the value is either + * the index of the character after the closing ']' + * of the parsed pattern. + * If the status code indicates failure, then the return value + * is the index of the error in the source. + * + * @stable ICU 2.8 + */ +U_STABLE int32_t U_EXPORT2 +uset_applyPattern(USet *set, + const UChar *pattern, int32_t patternLength, + uint32_t options, + UErrorCode *status); + +/** + * Modifies the set to contain those code points which have the given value + * for the given binary or enumerated property, as returned by + * u_getIntPropertyValue. Prior contents of this set are lost. + * A frozen set will not be modified. + * + * @param set the object to contain the code points defined by the property + * + * @param prop a property in the range UCHAR_BIN_START..UCHAR_BIN_LIMIT-1 + * or UCHAR_INT_START..UCHAR_INT_LIMIT-1 + * or UCHAR_MASK_START..UCHAR_MASK_LIMIT-1. + * + * @param value a value in the range u_getIntPropertyMinValue(prop).. + * u_getIntPropertyMaxValue(prop), with one exception. If prop is + * UCHAR_GENERAL_CATEGORY_MASK, then value should not be a UCharCategory, but + * rather a mask value produced by U_GET_GC_MASK(). This allows grouped + * categories such as [:L:] to be represented. + * + * @param ec error code input/output parameter + * + * @stable ICU 3.2 + */ +U_STABLE void U_EXPORT2 +uset_applyIntPropertyValue(USet* set, + UProperty prop, int32_t value, UErrorCode* ec); + +/** + * Modifies the set to contain those code points which have the + * given value for the given property. Prior contents of this + * set are lost. + * A frozen set will not be modified. + * + * @param set the object to contain the code points defined by the given + * property and value alias + * + * @param prop a string specifying a property alias, either short or long. + * The name is matched loosely. See PropertyAliases.txt for names and a + * description of loose matching. If the value string is empty, then this + * string is interpreted as either a General_Category value alias, a Script + * value alias, a binary property alias, or a special ID. Special IDs are + * matched loosely and correspond to the following sets: + * + * "ANY" = [\\u0000-\\U0010FFFF], + * "ASCII" = [\\u0000-\\u007F], + * "Assigned" = [:^Cn:]. + * + * @param propLength the length of the prop, or -1 if NULL + * + * @param value a string specifying a value alias, either short or long. + * The name is matched loosely. See PropertyValueAliases.txt for names + * and a description of loose matching. In addition to aliases listed, + * numeric values and canonical combining classes may be expressed + * numerically, e.g., ("nv", "0.5") or ("ccc", "220"). The value string + * may also be empty. + * + * @param valueLength the length of the value, or -1 if NULL + * + * @param ec error code input/output parameter + * + * @stable ICU 3.2 + */ +U_STABLE void U_EXPORT2 +uset_applyPropertyAlias(USet* set, + const UChar *prop, int32_t propLength, + const UChar *value, int32_t valueLength, + UErrorCode* ec); + +/** + * Return true if the given position, in the given pattern, appears + * to be the start of a UnicodeSet pattern. + * + * @param pattern a string specifying the pattern + * @param patternLength the length of the pattern, or -1 if NULL + * @param pos the given position + * @stable ICU 3.2 + */ +U_STABLE UBool U_EXPORT2 +uset_resemblesPattern(const UChar *pattern, int32_t patternLength, + int32_t pos); + +/** + * Returns a string representation of this set. If the result of + * calling this function is passed to a uset_openPattern(), it + * will produce another set that is equal to this one. + * @param set the set + * @param result the string to receive the rules, may be NULL + * @param resultCapacity the capacity of result, may be 0 if result is NULL + * @param escapeUnprintable if TRUE then convert unprintable + * character to their hex escape representations, \\uxxxx or + * \\Uxxxxxxxx. Unprintable characters are those other than + * U+000A, U+0020..U+007E. + * @param ec error code. + * @return length of string, possibly larger than resultCapacity + * @stable ICU 2.4 + */ +U_STABLE int32_t U_EXPORT2 +uset_toPattern(const USet* set, + UChar* result, int32_t resultCapacity, + UBool escapeUnprintable, + UErrorCode* ec); + +/** + * Adds the given character to the given USet. After this call, + * uset_contains(set, c) will return TRUE. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param c the character to add + * @stable ICU 2.4 + */ +U_STABLE void U_EXPORT2 +uset_add(USet* set, UChar32 c); + +/** + * Adds all of the elements in the specified set to this set if + * they're not already present. This operation effectively + * modifies this set so that its value is the union of the two + * sets. The behavior of this operation is unspecified if the specified + * collection is modified while the operation is in progress. + * A frozen set will not be modified. + * + * @param set the object to which to add the set + * @param additionalSet the source set whose elements are to be added to this set. + * @stable ICU 2.6 + */ +U_STABLE void U_EXPORT2 +uset_addAll(USet* set, const USet *additionalSet); + +/** + * Adds the given range of characters to the given USet. After this call, + * uset_contains(set, start, end) will return TRUE. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param start the first character of the range to add, inclusive + * @param end the last character of the range to add, inclusive + * @stable ICU 2.2 + */ +U_STABLE void U_EXPORT2 +uset_addRange(USet* set, UChar32 start, UChar32 end); + +/** + * Adds the given string to the given USet. After this call, + * uset_containsString(set, str, strLen) will return TRUE. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param str the string to add + * @param strLen the length of the string or -1 if null terminated. + * @stable ICU 2.4 + */ +U_STABLE void U_EXPORT2 +uset_addString(USet* set, const UChar* str, int32_t strLen); + +/** + * Adds each of the characters in this string to the set. Thus "ch" => {"c", "h"} + * If this set already any particular character, it has no effect on that character. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param str the source string + * @param strLen the length of the string or -1 if null terminated. + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +uset_addAllCodePoints(USet* set, const UChar *str, int32_t strLen); + +/** + * Removes the given character from the given USet. After this call, + * uset_contains(set, c) will return FALSE. + * A frozen set will not be modified. + * @param set the object from which to remove the character + * @param c the character to remove + * @stable ICU 2.4 + */ +U_STABLE void U_EXPORT2 +uset_remove(USet* set, UChar32 c); + +/** + * Removes the given range of characters from the given USet. After this call, + * uset_contains(set, start, end) will return FALSE. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param start the first character of the range to remove, inclusive + * @param end the last character of the range to remove, inclusive + * @stable ICU 2.2 + */ +U_STABLE void U_EXPORT2 +uset_removeRange(USet* set, UChar32 start, UChar32 end); + +/** + * Removes the given string to the given USet. After this call, + * uset_containsString(set, str, strLen) will return FALSE. + * A frozen set will not be modified. + * @param set the object to which to add the character + * @param str the string to remove + * @param strLen the length of the string or -1 if null terminated. + * @stable ICU 2.4 + */ +U_STABLE void U_EXPORT2 +uset_removeString(USet* set, const UChar* str, int32_t strLen); + +/** + * Removes from this set all of its elements that are contained in the + * specified set. This operation effectively modifies this + * set so that its value is the asymmetric set difference of + * the two sets. + * A frozen set will not be modified. + * @param set the object from which the elements are to be removed + * @param removeSet the object that defines which elements will be + * removed from this set + * @stable ICU 3.2 + */ +U_STABLE void U_EXPORT2 +uset_removeAll(USet* set, const USet* removeSet); + +/** + * Retain only the elements in this set that are contained in the + * specified range. If start > end then an empty range is + * retained, leaving the set empty. This is equivalent to + * a boolean logic AND, or a set INTERSECTION. + * A frozen set will not be modified. + * + * @param set the object for which to retain only the specified range + * @param start first character, inclusive, of range to be retained + * to this set. + * @param end last character, inclusive, of range to be retained + * to this set. + * @stable ICU 3.2 + */ +U_STABLE void U_EXPORT2 +uset_retain(USet* set, UChar32 start, UChar32 end); + +/** + * Retains only the elements in this set that are contained in the + * specified set. In other words, removes from this set all of + * its elements that are not contained in the specified set. This + * operation effectively modifies this set so that its value is + * the intersection of the two sets. + * A frozen set will not be modified. + * + * @param set the object on which to perform the retain + * @param retain set that defines which elements this set will retain + * @stable ICU 3.2 + */ +U_STABLE void U_EXPORT2 +uset_retainAll(USet* set, const USet* retain); + +/** + * Reallocate this objects internal structures to take up the least + * possible space, without changing this object's value. + * A frozen set will not be modified. + * + * @param set the object on which to perfrom the compact + * @stable ICU 3.2 + */ +U_STABLE void U_EXPORT2 +uset_compact(USet* set); + +/** + * Inverts this set. This operation modifies this set so that + * its value is its complement. This operation does not affect + * the multicharacter strings, if any. + * A frozen set will not be modified. + * @param set the set + * @stable ICU 2.4 + */ +U_STABLE void U_EXPORT2 +uset_complement(USet* set); + +/** + * Complements in this set all elements contained in the specified + * set. Any character in the other set will be removed if it is + * in this set, or will be added if it is not in this set. + * A frozen set will not be modified. + * + * @param set the set with which to complement + * @param complement set that defines which elements will be xor'ed + * from this set. + * @stable ICU 3.2 + */ +U_STABLE void U_EXPORT2 +uset_complementAll(USet* set, const USet* complement); + +/** + * Removes all of the elements from this set. This set will be + * empty after this call returns. + * A frozen set will not be modified. + * @param set the set + * @stable ICU 2.4 + */ +U_STABLE void U_EXPORT2 +uset_clear(USet* set); + +/** + * Close this set over the given attribute. For the attribute + * USET_CASE, the result is to modify this set so that: + * + * 1. For each character or string 'a' in this set, all strings or + * characters 'b' such that foldCase(a) == foldCase(b) are added + * to this set. + * + * 2. For each string 'e' in the resulting set, if e != + * foldCase(e), 'e' will be removed. + * + * Example: [aq\\u00DF{Bc}{bC}{Fi}] => [aAqQ\\u00DF\\uFB01{ss}{bc}{fi}] + * + * (Here foldCase(x) refers to the operation u_strFoldCase, and a + * == b denotes that the contents are the same, not pointer + * comparison.) + * + * A frozen set will not be modified. + * + * @param set the set + * + * @param attributes bitmask for attributes to close over. + * Currently only the USET_CASE bit is supported. Any undefined bits + * are ignored. + * @stable ICU 4.2 + */ +U_STABLE void U_EXPORT2 +uset_closeOver(USet* set, int32_t attributes); + +/** + * Remove all strings from this set. + * + * @param set the set + * @stable ICU 4.2 + */ +U_STABLE void U_EXPORT2 +uset_removeAllStrings(USet* set); + +/** + * Returns TRUE if the given USet contains no characters and no + * strings. + * @param set the set + * @return true if set is empty + * @stable ICU 2.4 + */ +U_STABLE UBool U_EXPORT2 +uset_isEmpty(const USet* set); + +/** + * Returns TRUE if the given USet contains the given character. + * This function works faster with a frozen set. + * @param set the set + * @param c The codepoint to check for within the set + * @return true if set contains c + * @stable ICU 2.4 + */ +U_STABLE UBool U_EXPORT2 +uset_contains(const USet* set, UChar32 c); + +/** + * Returns TRUE if the given USet contains all characters c + * where start <= c && c <= end. + * @param set the set + * @param start the first character of the range to test, inclusive + * @param end the last character of the range to test, inclusive + * @return TRUE if set contains the range + * @stable ICU 2.2 + */ +U_STABLE UBool U_EXPORT2 +uset_containsRange(const USet* set, UChar32 start, UChar32 end); + +/** + * Returns TRUE if the given USet contains the given string. + * @param set the set + * @param str the string + * @param strLen the length of the string or -1 if null terminated. + * @return true if set contains str + * @stable ICU 2.4 + */ +U_STABLE UBool U_EXPORT2 +uset_containsString(const USet* set, const UChar* str, int32_t strLen); + +/** + * Returns the index of the given character within this set, where + * the set is ordered by ascending code point. If the character + * is not in this set, return -1. The inverse of this method is + * charAt(). + * @param set the set + * @param c the character to obtain the index for + * @return an index from 0..size()-1, or -1 + * @stable ICU 3.2 + */ +U_STABLE int32_t U_EXPORT2 +uset_indexOf(const USet* set, UChar32 c); + +/** + * Returns the character at the given index within this set, where + * the set is ordered by ascending code point. If the index is + * out of range, return (UChar32)-1. The inverse of this method is + * indexOf(). + * @param set the set + * @param charIndex an index from 0..size()-1 to obtain the char for + * @return the character at the given index, or (UChar32)-1. + * @stable ICU 3.2 + */ +U_STABLE UChar32 U_EXPORT2 +uset_charAt(const USet* set, int32_t charIndex); + +/** + * Returns the number of characters and strings contained in the given + * USet. + * @param set the set + * @return a non-negative integer counting the characters and strings + * contained in set + * @stable ICU 2.4 + */ +U_STABLE int32_t U_EXPORT2 +uset_size(const USet* set); + +/** + * Returns the number of items in this set. An item is either a range + * of characters or a single multicharacter string. + * @param set the set + * @return a non-negative integer counting the character ranges + * and/or strings contained in set + * @stable ICU 2.4 + */ +U_STABLE int32_t U_EXPORT2 +uset_getItemCount(const USet* set); + +/** + * Returns an item of this set. An item is either a range of + * characters or a single multicharacter string. + * @param set the set + * @param itemIndex a non-negative integer in the range 0.. + * uset_getItemCount(set)-1 + * @param start pointer to variable to receive first character + * in range, inclusive + * @param end pointer to variable to receive last character in range, + * inclusive + * @param str buffer to receive the string, may be NULL + * @param strCapacity capacity of str, or 0 if str is NULL + * @param ec error code + * @return the length of the string (>= 2), or 0 if the item is a + * range, in which case it is the range *start..*end, or -1 if + * itemIndex is out of range + * @stable ICU 2.4 + */ +U_STABLE int32_t U_EXPORT2 +uset_getItem(const USet* set, int32_t itemIndex, + UChar32* start, UChar32* end, + UChar* str, int32_t strCapacity, + UErrorCode* ec); + +/** + * Returns true if set1 contains all the characters and strings + * of set2. It answers the question, 'Is set1 a superset of set2?' + * @param set1 set to be checked for containment + * @param set2 set to be checked for containment + * @return true if the test condition is met + * @stable ICU 3.2 + */ +U_STABLE UBool U_EXPORT2 +uset_containsAll(const USet* set1, const USet* set2); + +/** + * Returns true if this set contains all the characters + * of the given string. This is does not check containment of grapheme + * clusters, like uset_containsString. + * @param set set of characters to be checked for containment + * @param str string containing codepoints to be checked for containment + * @param strLen the length of the string or -1 if null terminated. + * @return true if the test condition is met + * @stable ICU 3.4 + */ +U_STABLE UBool U_EXPORT2 +uset_containsAllCodePoints(const USet* set, const UChar *str, int32_t strLen); + +/** + * Returns true if set1 contains none of the characters and strings + * of set2. It answers the question, 'Is set1 a disjoint set of set2?' + * @param set1 set to be checked for containment + * @param set2 set to be checked for containment + * @return true if the test condition is met + * @stable ICU 3.2 + */ +U_STABLE UBool U_EXPORT2 +uset_containsNone(const USet* set1, const USet* set2); + +/** + * Returns true if set1 contains some of the characters and strings + * of set2. It answers the question, 'Does set1 and set2 have an intersection?' + * @param set1 set to be checked for containment + * @param set2 set to be checked for containment + * @return true if the test condition is met + * @stable ICU 3.2 + */ +U_STABLE UBool U_EXPORT2 +uset_containsSome(const USet* set1, const USet* set2); + +/** + * Returns the length of the initial substring of the input string which + * consists only of characters and strings that are contained in this set + * (USET_SPAN_CONTAINED, USET_SPAN_SIMPLE), + * or only of characters and strings that are not contained + * in this set (USET_SPAN_NOT_CONTAINED). + * See USetSpanCondition for details. + * Similar to the strspn() C library function. + * Unpaired surrogates are treated according to contains() of their surrogate code points. + * This function works faster with a frozen set and with a non-negative string length argument. + * @param set the set + * @param s start of the string + * @param length of the string; can be -1 for NUL-terminated + * @param spanCondition specifies the containment condition + * @return the length of the initial substring according to the spanCondition; + * 0 if the start of the string does not fit the spanCondition + * @stable ICU 3.8 + * @see USetSpanCondition + */ +U_STABLE int32_t U_EXPORT2 +uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition); + +/** + * Returns the start of the trailing substring of the input string which + * consists only of characters and strings that are contained in this set + * (USET_SPAN_CONTAINED, USET_SPAN_SIMPLE), + * or only of characters and strings that are not contained + * in this set (USET_SPAN_NOT_CONTAINED). + * See USetSpanCondition for details. + * Unpaired surrogates are treated according to contains() of their surrogate code points. + * This function works faster with a frozen set and with a non-negative string length argument. + * @param set the set + * @param s start of the string + * @param length of the string; can be -1 for NUL-terminated + * @param spanCondition specifies the containment condition + * @return the start of the trailing substring according to the spanCondition; + * the string length if the end of the string does not fit the spanCondition + * @stable ICU 3.8 + * @see USetSpanCondition + */ +U_STABLE int32_t U_EXPORT2 +uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition); + +/** + * Returns the length of the initial substring of the input string which + * consists only of characters and strings that are contained in this set + * (USET_SPAN_CONTAINED, USET_SPAN_SIMPLE), + * or only of characters and strings that are not contained + * in this set (USET_SPAN_NOT_CONTAINED). + * See USetSpanCondition for details. + * Similar to the strspn() C library function. + * Malformed byte sequences are treated according to contains(0xfffd). + * This function works faster with a frozen set and with a non-negative string length argument. + * @param set the set + * @param s start of the string (UTF-8) + * @param length of the string; can be -1 for NUL-terminated + * @param spanCondition specifies the containment condition + * @return the length of the initial substring according to the spanCondition; + * 0 if the start of the string does not fit the spanCondition + * @stable ICU 3.8 + * @see USetSpanCondition + */ +U_STABLE int32_t U_EXPORT2 +uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition); + +/** + * Returns the start of the trailing substring of the input string which + * consists only of characters and strings that are contained in this set + * (USET_SPAN_CONTAINED, USET_SPAN_SIMPLE), + * or only of characters and strings that are not contained + * in this set (USET_SPAN_NOT_CONTAINED). + * See USetSpanCondition for details. + * Malformed byte sequences are treated according to contains(0xfffd). + * This function works faster with a frozen set and with a non-negative string length argument. + * @param set the set + * @param s start of the string (UTF-8) + * @param length of the string; can be -1 for NUL-terminated + * @param spanCondition specifies the containment condition + * @return the start of the trailing substring according to the spanCondition; + * the string length if the end of the string does not fit the spanCondition + * @stable ICU 3.8 + * @see USetSpanCondition + */ +U_STABLE int32_t U_EXPORT2 +uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition); + +/** + * Returns true if set1 contains all of the characters and strings + * of set2, and vis versa. It answers the question, 'Is set1 equal to set2?' + * @param set1 set to be checked for containment + * @param set2 set to be checked for containment + * @return true if the test condition is met + * @stable ICU 3.2 + */ +U_STABLE UBool U_EXPORT2 +uset_equals(const USet* set1, const USet* set2); + +/********************************************************************* + * Serialized set API + *********************************************************************/ + +/** + * Serializes this set into an array of 16-bit integers. Serialization + * (currently) only records the characters in the set; multicharacter + * strings are ignored. + * + * The array + * has following format (each line is one 16-bit integer): + * + * length = (n+2*m) | (m!=0?0x8000:0) + * bmpLength = n; present if m!=0 + * bmp[0] + * bmp[1] + * ... + * bmp[n-1] + * supp-high[0] + * supp-low[0] + * supp-high[1] + * supp-low[1] + * ... + * supp-high[m-1] + * supp-low[m-1] + * + * The array starts with a header. After the header are n bmp + * code points, then m supplementary code points. Either n or m + * or both may be zero. n+2*m is always <= 0x7FFF. + * + * If there are no supplementary characters (if m==0) then the + * header is one 16-bit integer, 'length', with value n. + * + * If there are supplementary characters (if m!=0) then the header + * is two 16-bit integers. The first, 'length', has value + * (n+2*m)|0x8000. The second, 'bmpLength', has value n. + * + * After the header the code points are stored in ascending order. + * Supplementary code points are stored as most significant 16 + * bits followed by least significant 16 bits. + * + * @param set the set + * @param dest pointer to buffer of destCapacity 16-bit integers. + * May be NULL only if destCapacity is zero. + * @param destCapacity size of dest, or zero. Must not be negative. + * @param pErrorCode pointer to the error code. Will be set to + * U_INDEX_OUTOFBOUNDS_ERROR if n+2*m > 0x7FFF. Will be set to + * U_BUFFER_OVERFLOW_ERROR if n+2*m+(m!=0?2:1) > destCapacity. + * @return the total length of the serialized format, including + * the header, that is, n+2*m+(m!=0?2:1), or 0 on error other + * than U_BUFFER_OVERFLOW_ERROR. + * @stable ICU 2.4 + */ +U_STABLE int32_t U_EXPORT2 +uset_serialize(const USet* set, uint16_t* dest, int32_t destCapacity, UErrorCode* pErrorCode); + +/** + * Given a serialized array, fill in the given serialized set object. + * @param fillSet pointer to result + * @param src pointer to start of array + * @param srcLength length of array + * @return true if the given array is valid, otherwise false + * @stable ICU 2.4 + */ +U_STABLE UBool U_EXPORT2 +uset_getSerializedSet(USerializedSet* fillSet, const uint16_t* src, int32_t srcLength); + +/** + * Set the USerializedSet to contain the given character (and nothing + * else). + * @param fillSet pointer to result + * @param c The codepoint to set + * @stable ICU 2.4 + */ +U_STABLE void U_EXPORT2 +uset_setSerializedToOne(USerializedSet* fillSet, UChar32 c); + +/** + * Returns TRUE if the given USerializedSet contains the given + * character. + * @param set the serialized set + * @param c The codepoint to check for within the set + * @return true if set contains c + * @stable ICU 2.4 + */ +U_STABLE UBool U_EXPORT2 +uset_serializedContains(const USerializedSet* set, UChar32 c); + +/** + * Returns the number of disjoint ranges of characters contained in + * the given serialized set. Ignores any strings contained in the + * set. + * @param set the serialized set + * @return a non-negative integer counting the character ranges + * contained in set + * @stable ICU 2.4 + */ +U_STABLE int32_t U_EXPORT2 +uset_getSerializedRangeCount(const USerializedSet* set); + +/** + * Returns a range of characters contained in the given serialized + * set. + * @param set the serialized set + * @param rangeIndex a non-negative integer in the range 0.. + * uset_getSerializedRangeCount(set)-1 + * @param pStart pointer to variable to receive first character + * in range, inclusive + * @param pEnd pointer to variable to receive last character in range, + * inclusive + * @return true if rangeIndex is valid, otherwise false + * @stable ICU 2.4 + */ +U_STABLE UBool U_EXPORT2 +uset_getSerializedRange(const USerializedSet* set, int32_t rangeIndex, + UChar32* pStart, UChar32* pEnd); + +#endif + +// unorm2.h +/* +******************************************************************************* +* +* Copyright (C) 2009-2015, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: unorm2.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2009dec15 +* created by: Markus W. Scherer +*/ + +#ifndef __UNORM2_H__ +#define __UNORM2_H__ + +/** + * \file + * \brief C API: New API for Unicode Normalization. + * + * Unicode normalization functionality for standard Unicode normalization or + * for using custom mapping tables. + * All instances of UNormalizer2 are unmodifiable/immutable. + * Instances returned by unorm2_getInstance() are singletons that must not be deleted by the caller. + * For more details see the Normalizer2 C++ class. + */ + + +/** + * Constants for normalization modes. + * For details about standard Unicode normalization forms + * and about the algorithms which are also used with custom mapping tables + * see http://www.unicode.org/unicode/reports/tr15/ + * @stable ICU 4.4 + */ +typedef enum { + /** + * Decomposition followed by composition. + * Same as standard NFC when using an "nfc" instance. + * Same as standard NFKC when using an "nfkc" instance. + * For details about standard Unicode normalization forms + * see http://www.unicode.org/unicode/reports/tr15/ + * @stable ICU 4.4 + */ + UNORM2_COMPOSE, + /** + * Map, and reorder canonically. + * Same as standard NFD when using an "nfc" instance. + * Same as standard NFKD when using an "nfkc" instance. + * For details about standard Unicode normalization forms + * see http://www.unicode.org/unicode/reports/tr15/ + * @stable ICU 4.4 + */ + UNORM2_DECOMPOSE, + /** + * "Fast C or D" form. + * If a string is in this form, then further decomposition without reordering + * would yield the same form as DECOMPOSE. + * Text in "Fast C or D" form can be processed efficiently with data tables + * that are "canonically closed", that is, that provide equivalent data for + * equivalent text, without having to be fully normalized. + * Not a standard Unicode normalization form. + * Not a unique form: Different FCD strings can be canonically equivalent. + * For details see http://www.unicode.org/notes/tn5/#FCD + * @stable ICU 4.4 + */ + UNORM2_FCD, + /** + * Compose only contiguously. + * Also known as "FCC" or "Fast C Contiguous". + * The result will often but not always be in NFC. + * The result will conform to FCD which is useful for processing. + * Not a standard Unicode normalization form. + * For details see http://www.unicode.org/notes/tn5/#FCC + * @stable ICU 4.4 + */ + UNORM2_COMPOSE_CONTIGUOUS +} UNormalization2Mode; + +/** + * Result values for normalization quick check functions. + * For details see http://www.unicode.org/reports/tr15/#Detecting_Normalization_Forms + * @stable ICU 2.0 + */ +typedef enum UNormalizationCheckResult { + /** + * The input string is not in the normalization form. + * @stable ICU 2.0 + */ + UNORM_NO, + /** + * The input string is in the normalization form. + * @stable ICU 2.0 + */ + UNORM_YES, + /** + * The input string may or may not be in the normalization form. + * This value is only returned for composition forms like NFC and FCC, + * when a backward-combining character is found for which the surrounding text + * would have to be analyzed further. + * @stable ICU 2.0 + */ + UNORM_MAYBE +} UNormalizationCheckResult; + +/** + * Opaque C service object type for the new normalization API. + * @stable ICU 4.4 + */ +struct UNormalizer2; +typedef struct UNormalizer2 UNormalizer2; /**< C typedef for struct UNormalizer2. @stable ICU 4.4 */ + +#if !UCONFIG_NO_NORMALIZATION + +/** + * Returns a UNormalizer2 instance for Unicode NFC normalization. + * Same as unorm2_getInstance(NULL, "nfc", UNORM2_COMPOSE, pErrorCode). + * Returns an unmodifiable singleton instance. Do not delete it. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested Normalizer2, if successful + * @stable ICU 49 + */ +U_STABLE const UNormalizer2 * U_EXPORT2 +unorm2_getNFCInstance(UErrorCode *pErrorCode); + +/** + * Returns a UNormalizer2 instance for Unicode NFD normalization. + * Same as unorm2_getInstance(NULL, "nfc", UNORM2_DECOMPOSE, pErrorCode). + * Returns an unmodifiable singleton instance. Do not delete it. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested Normalizer2, if successful + * @stable ICU 49 + */ +U_STABLE const UNormalizer2 * U_EXPORT2 +unorm2_getNFDInstance(UErrorCode *pErrorCode); + +/** + * Returns a UNormalizer2 instance for Unicode NFKC normalization. + * Same as unorm2_getInstance(NULL, "nfkc", UNORM2_COMPOSE, pErrorCode). + * Returns an unmodifiable singleton instance. Do not delete it. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested Normalizer2, if successful + * @stable ICU 49 + */ +U_STABLE const UNormalizer2 * U_EXPORT2 +unorm2_getNFKCInstance(UErrorCode *pErrorCode); + +/** + * Returns a UNormalizer2 instance for Unicode NFKD normalization. + * Same as unorm2_getInstance(NULL, "nfkc", UNORM2_DECOMPOSE, pErrorCode). + * Returns an unmodifiable singleton instance. Do not delete it. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested Normalizer2, if successful + * @stable ICU 49 + */ +U_STABLE const UNormalizer2 * U_EXPORT2 +unorm2_getNFKDInstance(UErrorCode *pErrorCode); + +/** + * Returns a UNormalizer2 instance for Unicode NFKC_Casefold normalization. + * Same as unorm2_getInstance(NULL, "nfkc_cf", UNORM2_COMPOSE, pErrorCode). + * Returns an unmodifiable singleton instance. Do not delete it. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested Normalizer2, if successful + * @stable ICU 49 + */ +U_STABLE const UNormalizer2 * U_EXPORT2 +unorm2_getNFKCCasefoldInstance(UErrorCode *pErrorCode); + +/** + * Returns a UNormalizer2 instance which uses the specified data file + * (packageName/name similar to ucnv_openPackage() and ures_open()/ResourceBundle) + * and which composes or decomposes text according to the specified mode. + * Returns an unmodifiable singleton instance. Do not delete it. + * + * Use packageName=NULL for data files that are part of ICU's own data. + * Use name="nfc" and UNORM2_COMPOSE/UNORM2_DECOMPOSE for Unicode standard NFC/NFD. + * Use name="nfkc" and UNORM2_COMPOSE/UNORM2_DECOMPOSE for Unicode standard NFKC/NFKD. + * Use name="nfkc_cf" and UNORM2_COMPOSE for Unicode standard NFKC_CF=NFKC_Casefold. + * + * @param packageName NULL for ICU built-in data, otherwise application data package name + * @param name "nfc" or "nfkc" or "nfkc_cf" or name of custom data file + * @param mode normalization mode (compose or decompose etc.) + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested UNormalizer2, if successful + * @stable ICU 4.4 + */ +U_STABLE const UNormalizer2 * U_EXPORT2 +unorm2_getInstance(const char *packageName, + const char *name, + UNormalization2Mode mode, + UErrorCode *pErrorCode); + +/** + * Constructs a filtered normalizer wrapping any UNormalizer2 instance + * and a filter set. + * Both are aliased and must not be modified or deleted while this object + * is used. + * The filter set should be frozen; otherwise the performance will suffer greatly. + * @param norm2 wrapped UNormalizer2 instance + * @param filterSet USet which determines the characters to be normalized + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the requested UNormalizer2, if successful + * @stable ICU 4.4 + */ +U_STABLE UNormalizer2 * U_EXPORT2 +unorm2_openFiltered(const UNormalizer2 *norm2, const USet *filterSet, UErrorCode *pErrorCode); + +/** + * Closes a UNormalizer2 instance from unorm2_openFiltered(). + * Do not close instances from unorm2_getInstance()! + * @param norm2 UNormalizer2 instance to be closed + * @stable ICU 4.4 + */ +U_STABLE void U_EXPORT2 +unorm2_close(UNormalizer2 *norm2); + + +/** + * Writes the normalized form of the source string to the destination string + * (replacing its contents) and returns the length of the destination string. + * The source and destination strings must be different buffers. + * @param norm2 UNormalizer2 instance + * @param src source string + * @param length length of the source string, or -1 if NUL-terminated + * @param dest destination string; its contents is replaced with normalized src + * @param capacity number of UChars that can be written to dest + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return dest + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +unorm2_normalize(const UNormalizer2 *norm2, + const UChar *src, int32_t length, + UChar *dest, int32_t capacity, + UErrorCode *pErrorCode); +/** + * Appends the normalized form of the second string to the first string + * (merging them at the boundary) and returns the length of the first string. + * The result is normalized if the first string was normalized. + * The first and second strings must be different buffers. + * @param norm2 UNormalizer2 instance + * @param first string, should be normalized + * @param firstLength length of the first string, or -1 if NUL-terminated + * @param firstCapacity number of UChars that can be written to first + * @param second string, will be normalized + * @param secondLength length of the source string, or -1 if NUL-terminated + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return first + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +unorm2_normalizeSecondAndAppend(const UNormalizer2 *norm2, + UChar *first, int32_t firstLength, int32_t firstCapacity, + const UChar *second, int32_t secondLength, + UErrorCode *pErrorCode); +/** + * Appends the second string to the first string + * (merging them at the boundary) and returns the length of the first string. + * The result is normalized if both the strings were normalized. + * The first and second strings must be different buffers. + * @param norm2 UNormalizer2 instance + * @param first string, should be normalized + * @param firstLength length of the first string, or -1 if NUL-terminated + * @param firstCapacity number of UChars that can be written to first + * @param second string, should be normalized + * @param secondLength length of the source string, or -1 if NUL-terminated + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return first + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +unorm2_append(const UNormalizer2 *norm2, + UChar *first, int32_t firstLength, int32_t firstCapacity, + const UChar *second, int32_t secondLength, + UErrorCode *pErrorCode); + +/** + * Gets the decomposition mapping of c. + * Roughly equivalent to normalizing the String form of c + * on a UNORM2_DECOMPOSE UNormalizer2 instance, but much faster, and except that this function + * returns a negative value and does not write a string + * if c does not have a decomposition mapping in this instance's data. + * This function is independent of the mode of the UNormalizer2. + * @param norm2 UNormalizer2 instance + * @param c code point + * @param decomposition String buffer which will be set to c's + * decomposition mapping, if there is one. + * @param capacity number of UChars that can be written to decomposition + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the non-negative length of c's decomposition, if there is one; otherwise a negative value + * @stable ICU 4.6 + */ +U_STABLE int32_t U_EXPORT2 +unorm2_getDecomposition(const UNormalizer2 *norm2, + UChar32 c, UChar *decomposition, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Gets the raw decomposition mapping of c. + * + * This is similar to the unorm2_getDecomposition() function but returns the + * raw decomposition mapping as specified in UnicodeData.txt or + * (for custom data) in the mapping files processed by the gennorm2 tool. + * By contrast, unorm2_getDecomposition() returns the processed, + * recursively-decomposed version of this mapping. + * + * When used on a standard NFKC Normalizer2 instance, + * unorm2_getRawDecomposition() returns the Unicode Decomposition_Mapping (dm) property. + * + * When used on a standard NFC Normalizer2 instance, + * it returns the Decomposition_Mapping only if the Decomposition_Type (dt) is Canonical (Can); + * in this case, the result contains either one or two code points (=1..4 UChars). + * + * This function is independent of the mode of the UNormalizer2. + * @param norm2 UNormalizer2 instance + * @param c code point + * @param decomposition String buffer which will be set to c's + * raw decomposition mapping, if there is one. + * @param capacity number of UChars that can be written to decomposition + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the non-negative length of c's raw decomposition, if there is one; otherwise a negative value + * @stable ICU 49 + */ +U_STABLE int32_t U_EXPORT2 +unorm2_getRawDecomposition(const UNormalizer2 *norm2, + UChar32 c, UChar *decomposition, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Performs pairwise composition of a & b and returns the composite if there is one. + * + * Returns a composite code point c only if c has a two-way mapping to a+b. + * In standard Unicode normalization, this means that + * c has a canonical decomposition to a+b + * and c does not have the Full_Composition_Exclusion property. + * + * This function is independent of the mode of the UNormalizer2. + * @param norm2 UNormalizer2 instance + * @param a A (normalization starter) code point. + * @param b Another code point. + * @return The non-negative composite code point if there is one; otherwise a negative value. + * @stable ICU 49 + */ +U_STABLE UChar32 U_EXPORT2 +unorm2_composePair(const UNormalizer2 *norm2, UChar32 a, UChar32 b); + +/** + * Gets the combining class of c. + * The default implementation returns 0 + * but all standard implementations return the Unicode Canonical_Combining_Class value. + * @param norm2 UNormalizer2 instance + * @param c code point + * @return c's combining class + * @stable ICU 49 + */ +U_STABLE uint8_t U_EXPORT2 +unorm2_getCombiningClass(const UNormalizer2 *norm2, UChar32 c); + +/** + * Tests if the string is normalized. + * Internally, in cases where the quickCheck() method would return "maybe" + * (which is only possible for the two COMPOSE modes) this method + * resolves to "yes" or "no" to provide a definitive result, + * at the cost of doing more work in those cases. + * @param norm2 UNormalizer2 instance + * @param s input string + * @param length length of the string, or -1 if NUL-terminated + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return TRUE if s is normalized + * @stable ICU 4.4 + */ +U_STABLE UBool U_EXPORT2 +unorm2_isNormalized(const UNormalizer2 *norm2, + const UChar *s, int32_t length, + UErrorCode *pErrorCode); + +/** + * Tests if the string is normalized. + * For the two COMPOSE modes, the result could be "maybe" in cases that + * would take a little more work to resolve definitively. + * Use spanQuickCheckYes() and normalizeSecondAndAppend() for a faster + * combination of quick check + normalization, to avoid + * re-checking the "yes" prefix. + * @param norm2 UNormalizer2 instance + * @param s input string + * @param length length of the string, or -1 if NUL-terminated + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return UNormalizationCheckResult + * @stable ICU 4.4 + */ +U_STABLE UNormalizationCheckResult U_EXPORT2 +unorm2_quickCheck(const UNormalizer2 *norm2, + const UChar *s, int32_t length, + UErrorCode *pErrorCode); + +/** + * Returns the end of the normalized substring of the input string. + * In other words, with end=spanQuickCheckYes(s, ec); + * the substring UnicodeString(s, 0, end) + * will pass the quick check with a "yes" result. + * + * The returned end index is usually one or more characters before the + * "no" or "maybe" character: The end index is at a normalization boundary. + * (See the class documentation for more about normalization boundaries.) + * + * When the goal is a normalized string and most input strings are expected + * to be normalized already, then call this method, + * and if it returns a prefix shorter than the input string, + * copy that prefix and use normalizeSecondAndAppend() for the remainder. + * @param norm2 UNormalizer2 instance + * @param s input string + * @param length length of the string, or -1 if NUL-terminated + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return "yes" span end index + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +unorm2_spanQuickCheckYes(const UNormalizer2 *norm2, + const UChar *s, int32_t length, + UErrorCode *pErrorCode); + +/** + * Tests if the character always has a normalization boundary before it, + * regardless of context. + * For details see the Normalizer2 base class documentation. + * @param norm2 UNormalizer2 instance + * @param c character to test + * @return TRUE if c has a normalization boundary before it + * @stable ICU 4.4 + */ +U_STABLE UBool U_EXPORT2 +unorm2_hasBoundaryBefore(const UNormalizer2 *norm2, UChar32 c); + +/** + * Tests if the character always has a normalization boundary after it, + * regardless of context. + * For details see the Normalizer2 base class documentation. + * @param norm2 UNormalizer2 instance + * @param c character to test + * @return TRUE if c has a normalization boundary after it + * @stable ICU 4.4 + */ +U_STABLE UBool U_EXPORT2 +unorm2_hasBoundaryAfter(const UNormalizer2 *norm2, UChar32 c); + +/** + * Tests if the character is normalization-inert. + * For details see the Normalizer2 base class documentation. + * @param norm2 UNormalizer2 instance + * @param c character to test + * @return TRUE if c is normalization-inert + * @stable ICU 4.4 + */ +U_STABLE UBool U_EXPORT2 +unorm2_isInert(const UNormalizer2 *norm2, UChar32 c); + +/** + * Option bit for unorm_compare: + * Both input strings are assumed to fulfill FCD conditions. + * @stable ICU 2.2 + */ +#define UNORM_INPUT_IS_FCD 0x20000 + +/** + * Option bit for unorm_compare: + * Perform case-insensitive comparison. + * @stable ICU 2.2 + */ +#define U_COMPARE_IGNORE_CASE 0x10000 + +#ifndef U_COMPARE_CODE_POINT_ORDER +/* see also unistr.h and ustring.h */ +/** + * Option bit for u_strCaseCompare, u_strcasecmp, unorm_compare, etc: + * Compare strings in code point order instead of code unit order. + * @stable ICU 2.2 + */ +#define U_COMPARE_CODE_POINT_ORDER 0x8000 +#endif + +/** + * Compares two strings for canonical equivalence. + * Further options include case-insensitive comparison and + * code point order (as opposed to code unit order). + * + * Canonical equivalence between two strings is defined as their normalized + * forms (NFD or NFC) being identical. + * This function compares strings incrementally instead of normalizing + * (and optionally case-folding) both strings entirely, + * improving performance significantly. + * + * Bulk normalization is only necessary if the strings do not fulfill the FCD + * conditions. Only in this case, and only if the strings are relatively long, + * is memory allocated temporarily. + * For FCD strings and short non-FCD strings there is no memory allocation. + * + * Semantically, this is equivalent to + * strcmp[CodePointOrder](NFD(foldCase(NFD(s1))), NFD(foldCase(NFD(s2)))) + * where code point order and foldCase are all optional. + * + * UAX 21 2.5 Caseless Matching specifies that for a canonical caseless match + * the case folding must be performed first, then the normalization. + * + * @param s1 First source string. + * @param length1 Length of first source string, or -1 if NUL-terminated. + * + * @param s2 Second source string. + * @param length2 Length of second source string, or -1 if NUL-terminated. + * + * @param options A bit set of options: + * - U_FOLD_CASE_DEFAULT or 0 is used for default options: + * Case-sensitive comparison in code unit order, and the input strings + * are quick-checked for FCD. + * + * - UNORM_INPUT_IS_FCD + * Set if the caller knows that both s1 and s2 fulfill the FCD conditions. + * If not set, the function will quickCheck for FCD + * and normalize if necessary. + * + * - U_COMPARE_CODE_POINT_ORDER + * Set to choose code point order instead of code unit order + * (see u_strCompare for details). + * + * - U_COMPARE_IGNORE_CASE + * Set to compare strings case-insensitively using case folding, + * instead of case-sensitively. + * If set, then the following case folding options are used. + * + * - Options as used with case-insensitive comparisons, currently: + * + * - U_FOLD_CASE_EXCLUDE_SPECIAL_I + * (see u_strCaseCompare for details) + * + * - regular normalization options shifted left by UNORM_COMPARE_NORM_OPTIONS_SHIFT + * + * @param pErrorCode ICU error code in/out parameter. + * Must fulfill U_SUCCESS before the function call. + * @return <0 or 0 or >0 as usual for string comparisons + * + * @see unorm_normalize + * @see UNORM_FCD + * @see u_strCompare + * @see u_strCaseCompare + * + * @stable ICU 2.2 + */ +U_STABLE int32_t U_EXPORT2 +unorm_compare(const UChar *s1, int32_t length1, + const UChar *s2, int32_t length2, + uint32_t options, + UErrorCode *pErrorCode); + +#endif /* !UCONFIG_NO_NORMALIZATION */ +#endif /* __UNORM2_H__ */ + +// ucnvsel.h +/* +******************************************************************************* +* +* Copyright (C) 2008-2011, International Business Machines +* Corporation, Google and others. All Rights Reserved. +* +******************************************************************************* +*/ +/* + * Author : eldawy@google.com (Mohamed Eldawy) + * ucnvsel.h + * + * Purpose: To generate a list of encodings capable of handling + * a given Unicode text + * + * Started 09-April-2008 + */ + +#ifndef __ICU_UCNV_SEL_H__ +#define __ICU_UCNV_SEL_H__ + + +#if !UCONFIG_NO_CONVERSION + + +/** + * \file + * + * A converter selector is built with a set of encoding/charset names + * and given an input string returns the set of names of the + * corresponding converters which can convert the string. + * + * A converter selector can be serialized into a buffer and reopened + * from the serialized form. + */ + +/** + * @{ + * The selector data structure + */ +struct UConverterSelector; +typedef struct UConverterSelector UConverterSelector; +/** @} */ + +/** + * Open a selector. + * If converterListSize is 0, build for all available converters. + * If excludedCodePoints is NULL, don't exclude any code points. + * + * @param converterList a pointer to encoding names needed to be involved. + * Can be NULL if converterListSize==0. + * The list and the names will be cloned, and the caller + * retains ownership of the original. + * @param converterListSize number of encodings in above list. + * If 0, builds a selector for all available converters. + * @param excludedCodePoints a set of code points to be excluded from consideration. + * That is, excluded code points in a string do not change + * the selection result. (They might be handled by a callback.) + * Use NULL to exclude nothing. + * @param whichSet what converter set to use? Use this to determine whether + * to consider only roundtrip mappings or also fallbacks. + * @param status an in/out ICU UErrorCode + * @return the new selector + * + * @stable ICU 4.2 + */ +U_STABLE UConverterSelector* U_EXPORT2 +ucnvsel_open(const char* const* converterList, int32_t converterListSize, + const USet* excludedCodePoints, + const UConverterUnicodeSet whichSet, UErrorCode* status); + +/** + * Closes a selector. + * If any Enumerations were returned by ucnv_select*, they become invalid. + * They can be closed before or after calling ucnv_closeSelector, + * but should never be used after the selector is closed. + * + * @see ucnv_selectForString + * @see ucnv_selectForUTF8 + * + * @param sel selector to close + * + * @stable ICU 4.2 + */ +U_STABLE void U_EXPORT2 +ucnvsel_close(UConverterSelector *sel); + + +/** + * Open a selector from its serialized form. + * The buffer must remain valid and unchanged for the lifetime of the selector. + * This is much faster than creating a selector from scratch. + * Using a serialized form from a different machine (endianness/charset) is supported. + * + * @param buffer pointer to the serialized form of a converter selector; + * must be 32-bit-aligned + * @param length the capacity of this buffer (can be equal to or larger than + * the actual data length) + * @param status an in/out ICU UErrorCode + * @return the new selector + * + * @stable ICU 4.2 + */ +U_STABLE UConverterSelector* U_EXPORT2 +ucnvsel_openFromSerialized(const void* buffer, int32_t length, UErrorCode* status); + +/** + * Serialize a selector into a linear buffer. + * The serialized form is portable to different machines. + * + * @param sel selector to consider + * @param buffer pointer to 32-bit-aligned memory to be filled with the + * serialized form of this converter selector + * @param bufferCapacity the capacity of this buffer + * @param status an in/out ICU UErrorCode + * @return the required buffer capacity to hold serialize data (even if the call fails + * with a U_BUFFER_OVERFLOW_ERROR, it will return the required capacity) + * + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +ucnvsel_serialize(const UConverterSelector* sel, + void* buffer, int32_t bufferCapacity, UErrorCode* status); + +/** + * Select converters that can map all characters in a UTF-16 string, + * ignoring the excluded code points. + * + * @param sel a selector + * @param s UTF-16 string + * @param length length of the string, or -1 if NUL-terminated + * @param status an in/out ICU UErrorCode + * @return an enumeration containing encoding names. + * The returned encoding names and their order will be the same as + * supplied when building the selector. + * + * @stable ICU 4.2 + */ +U_STABLE UEnumeration * U_EXPORT2 +ucnvsel_selectForString(const UConverterSelector* sel, + const UChar *s, int32_t length, UErrorCode *status); + +/** + * Select converters that can map all characters in a UTF-8 string, + * ignoring the excluded code points. + * + * @param sel a selector + * @param s UTF-8 string + * @param length length of the string, or -1 if NUL-terminated + * @param status an in/out ICU UErrorCode + * @return an enumeration containing encoding names. + * The returned encoding names and their order will be the same as + * supplied when building the selector. + * + * @stable ICU 4.2 + */ +U_STABLE UEnumeration * U_EXPORT2 +ucnvsel_selectForUTF8(const UConverterSelector* sel, + const char *s, int32_t length, UErrorCode *status); + +#endif /* !UCONFIG_NO_CONVERSION */ + +#endif /* __ICU_UCNV_SEL_H__ */ + +// ucat.h +/* +********************************************************************** +* Copyright (c) 2003-2004, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* Author: Alan Liu +* Created: March 19 2003 +* Since: ICU 2.6 +********************************************************************** +*/ +#ifndef UCAT_H +#define UCAT_H + + +/** + * \file + * \brief C API: Message Catalog Wrappers + * + * This C API provides look-alike functions that deliberately resemble + * the POSIX catopen, catclose, and catgets functions. The underlying + * implementation is in terms of ICU resource bundles, rather than + * POSIX message catalogs. + * + * The ICU resource bundles obey standard ICU inheritance policies. + * To facilitate this, sets and messages are flattened into one tier. + * This is done by creating resource bundle keys of the form + * <set_num>%<msg_num> where set_num is the set number and msg_num is + * the message number, formatted as decimal strings. + * + * Example: Consider a message catalog containing two sets: + * + * Set 1: Message 4 = "Good morning." + * Message 5 = "Good afternoon." + * Message 7 = "Good evening." + * Message 8 = "Good night." + * Set 4: Message 14 = "Please " + * Message 19 = "Thank you." + * Message 20 = "Sincerely," + * + * The ICU resource bundle source file would, assuming it is named + * "greet.txt", would look like this: + * + * greet + * { + * 1%4 { "Good morning." } + * 1%5 { "Good afternoon." } + * 1%7 { "Good evening." } + * 1%8 { "Good night." } + * + * 4%14 { "Please " } + * 4%19 { "Thank you." } + * 4%20 { "Sincerely," } + * } + * + * The catgets function is commonly used in combination with functions + * like printf and strftime. ICU components like message format can + * be used instead, although they use a different format syntax. + * There is an ICU package, icuio, that provides some of + * the POSIX-style formatting API. + */ + +U_CDECL_BEGIN + +/** + * An ICU message catalog descriptor, analogous to nl_catd. + * + * @stable ICU 2.6 + */ +typedef UResourceBundle* u_nl_catd; + +/** + * Open and return an ICU message catalog descriptor. The descriptor + * may be passed to u_catgets() to retrieve localized strings. + * + * @param name string containing the full path pointing to the + * directory where the resources reside followed by the package name + * e.g. "/usr/resource/my_app/resources/guimessages" on a Unix system. + * If NULL, ICU default data files will be used. + * + * Unlike POSIX, environment variables are not interpolated within the + * name. + * + * @param locale the locale for which we want to open the resource. If + * NULL, the default ICU locale will be used (see uloc_getDefault). If + * strlen(locale) == 0, the root locale will be used. + * + * @param ec input/output error code. Upon output, + * U_USING_FALLBACK_WARNING indicates that a fallback locale was + * used. For example, 'de_CH' was requested, but nothing was found + * there, so 'de' was used. U_USING_DEFAULT_WARNING indicates that the + * default locale data or root locale data was used; neither the + * requested locale nor any of its fallback locales were found. + * + * @return a message catalog descriptor that may be passed to + * u_catgets(). If the ec parameter indicates success, then the caller + * is responsible for calling u_catclose() to close the message + * catalog. If the ec parameter indicates failure, then NULL will be + * returned. + * + * @stable ICU 2.6 + */ +U_STABLE u_nl_catd U_EXPORT2 +u_catopen(const char* name, const char* locale, UErrorCode* ec); + +/** + * Close an ICU message catalog, given its descriptor. + * + * @param catd a message catalog descriptor to be closed. May be NULL, + * in which case no action is taken. + * + * @stable ICU 2.6 + */ +U_STABLE void U_EXPORT2 +u_catclose(u_nl_catd catd); + +/** + * Retrieve a localized string from an ICU message catalog. + * + * @param catd a message catalog descriptor returned by u_catopen. + * + * @param set_num the message catalog set number. Sets need not be + * numbered consecutively. + * + * @param msg_num the message catalog message number within the + * set. Messages need not be numbered consecutively. + * + * @param s the default string. This is returned if the string + * specified by the set_num and msg_num is not found. It must be + * zero-terminated. + * + * @param len fill-in parameter to receive the length of the result. + * May be NULL, in which case it is ignored. + * + * @param ec input/output error code. May be U_USING_FALLBACK_WARNING + * or U_USING_DEFAULT_WARNING. U_MISSING_RESOURCE_ERROR indicates that + * the set_num/msg_num tuple does not specify a valid message string + * in this catalog. + * + * @return a pointer to a zero-terminated UChar array which lives in + * an internal buffer area, typically a memory mapped/DLL file. The + * caller must NOT delete this pointer. If the call is unsuccessful + * for any reason, then s is returned. This includes the situation in + * which ec indicates a failing error code upon entry to this + * function. + * + * @stable ICU 2.6 + */ +U_STABLE const UChar* U_EXPORT2 +u_catgets(u_nl_catd catd, int32_t set_num, int32_t msg_num, + const UChar* s, + int32_t* len, UErrorCode* ec); + +U_CDECL_END + +#endif /*UCAT_H*/ +/*eof*/ + +// ubidi.h +/* +****************************************************************************** +* +* Copyright (C) 1999-2013, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* file name: ubidi.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 1999jul27 +* created by: Markus W. Scherer, updated by Matitiahu Allouche +*/ + +#ifndef UBIDI_H +#define UBIDI_H + + +/** + *\file + * \brief C API: Bidi algorithm + * + *

Bidi algorithm for ICU

+ * + * This is an implementation of the Unicode Bidirectional Algorithm. + * The algorithm is defined in the + * Unicode Standard Annex #9.

+ * + * Note: Libraries that perform a bidirectional algorithm and + * reorder strings accordingly are sometimes called "Storage Layout Engines". + * ICU's Bidi and shaping (u_shapeArabic()) APIs can be used at the core of such + * "Storage Layout Engines". + * + *

General remarks about the API:

+ * + * In functions with an error code parameter, + * the pErrorCode pointer must be valid + * and the value that it points to must not indicate a failure before + * the function call. Otherwise, the function returns immediately. + * After the function call, the value indicates success or failure.

+ * + * The "limit" of a sequence of characters is the position just after their + * last character, i.e., one more than that position.

+ * + * Some of the API functions provide access to "runs". + * Such a "run" is defined as a sequence of characters + * that are at the same embedding level + * after performing the Bidi algorithm.

+ * + * @author Markus W. Scherer + * @version 1.0 + * + * + *

Sample code for the ICU Bidi API

+ * + *
Rendering a paragraph with the ICU Bidi API
+ * + * This is (hypothetical) sample code that illustrates + * how the ICU Bidi API could be used to render a paragraph of text. + * Rendering code depends highly on the graphics system, + * therefore this sample code must make a lot of assumptions, + * which may or may not match any existing graphics system's properties. + * + *

The basic assumptions are:

+ *
    + *
  • Rendering is done from left to right on a horizontal line.
  • + *
  • A run of single-style, unidirectional text can be rendered at once.
  • + *
  • Such a run of text is passed to the graphics system with + * characters (code units) in logical order.
  • + *
  • The line-breaking algorithm is very complicated + * and Locale-dependent - + * and therefore its implementation omitted from this sample code.
  • + *
+ * + *
+ * \code
+ *#include "unicode/ubidi.h"
+ *
+ *typedef enum {
+ *     styleNormal=0, styleSelected=1,
+ *     styleBold=2, styleItalics=4,
+ *     styleSuper=8, styleSub=16
+ *} Style;
+ *
+ *typedef struct { int32_t limit; Style style; } StyleRun;
+ *
+ *int getTextWidth(const UChar *text, int32_t start, int32_t limit,
+ *                  const StyleRun *styleRuns, int styleRunCount);
+ *
+ * // set *pLimit and *pStyleRunLimit for a line
+ * // from text[start] and from styleRuns[styleRunStart]
+ * // using ubidi_getLogicalRun(para, ...)
+ *void getLineBreak(const UChar *text, int32_t start, int32_t *pLimit,
+ *                  UBiDi *para,
+ *                  const StyleRun *styleRuns, int styleRunStart, int *pStyleRunLimit,
+ *                  int *pLineWidth);
+ *
+ * // render runs on a line sequentially, always from left to right
+ *
+ * // prepare rendering a new line
+ * void startLine(UBiDiDirection textDirection, int lineWidth);
+ *
+ * // render a run of text and advance to the right by the run width
+ * // the text[start..limit-1] is always in logical order
+ * void renderRun(const UChar *text, int32_t start, int32_t limit,
+ *               UBiDiDirection textDirection, Style style);
+ *
+ * // We could compute a cross-product
+ * // from the style runs with the directional runs
+ * // and then reorder it.
+ * // Instead, here we iterate over each run type
+ * // and render the intersections -
+ * // with shortcuts in simple (and common) cases.
+ * // renderParagraph() is the main function.
+ *
+ * // render a directional run with
+ * // (possibly) multiple style runs intersecting with it
+ * void renderDirectionalRun(const UChar *text,
+ *                           int32_t start, int32_t limit,
+ *                           UBiDiDirection direction,
+ *                           const StyleRun *styleRuns, int styleRunCount) {
+ *     int i;
+ *
+ *     // iterate over style runs
+ *     if(direction==UBIDI_LTR) {
+ *         int styleLimit;
+ *
+ *         for(i=0; ilimit) { styleLimit=limit; }
+ *                 renderRun(text, start, styleLimit,
+ *                           direction, styleRun[i].style);
+ *                 if(styleLimit==limit) { break; }
+ *                 start=styleLimit;
+ *             }
+ *         }
+ *     } else {
+ *         int styleStart;
+ *
+ *         for(i=styleRunCount-1; i>=0; --i) {
+ *             if(i>0) {
+ *                 styleStart=styleRun[i-1].limit;
+ *             } else {
+ *                 styleStart=0;
+ *             }
+ *             if(limit>=styleStart) {
+ *                 if(styleStart=length
+ *
+ *         width=getTextWidth(text, 0, length, styleRuns, styleRunCount);
+ *         if(width<=lineWidth) {
+ *             // everything fits onto one line
+ *
+ *            // prepare rendering a new line from either left or right
+ *             startLine(paraLevel, width);
+ *
+ *             renderLine(para, text, 0, length,
+ *                        styleRuns, styleRunCount);
+ *         } else {
+ *             UBiDi *line;
+ *
+ *             // we need to render several lines
+ *             line=ubidi_openSized(length, 0, pErrorCode);
+ *             if(line!=NULL) {
+ *                 int32_t start=0, limit;
+ *                 int styleRunStart=0, styleRunLimit;
+ *
+ *                 for(;;) {
+ *                     limit=length;
+ *                     styleRunLimit=styleRunCount;
+ *                     getLineBreak(text, start, &limit, para,
+ *                                  styleRuns, styleRunStart, &styleRunLimit,
+ *                                 &width);
+ *                     ubidi_setLine(para, start, limit, line, pErrorCode);
+ *                     if(U_SUCCESS(*pErrorCode)) {
+ *                         // prepare rendering a new line
+ *                         // from either left or right
+ *                         startLine(paraLevel, width);
+ *
+ *                         renderLine(line, text, start, limit,
+ *                                    styleRuns+styleRunStart,
+ *                                    styleRunLimit-styleRunStart);
+ *                     }
+ *                     if(limit==length) { break; }
+ *                     start=limit;
+ *                     styleRunStart=styleRunLimit-1;
+ *                     if(start>=styleRuns[styleRunStart].limit) {
+ *                         ++styleRunStart;
+ *                     }
+ *                 }
+ *
+ *                 ubidi_close(line);
+ *             }
+ *        }
+ *    }
+ *
+ *     ubidi_close(para);
+ *}
+ *\endcode
+ * 
+ */ + +/*DOCXX_TAG*/ +/*@{*/ + +/** + * UBiDiLevel is the type of the level values in this + * Bidi implementation. + * It holds an embedding level and indicates the visual direction + * by its bit 0 (even/odd value).

+ * + * It can also hold non-level values for the + * paraLevel and embeddingLevels + * arguments of ubidi_setPara(); there: + *

    + *
  • bit 7 of an embeddingLevels[] + * value indicates whether the using application is + * specifying the level of a character to override whatever the + * Bidi implementation would resolve it to.
  • + *
  • paraLevel can be set to the + * pseudo-level values UBIDI_DEFAULT_LTR + * and UBIDI_DEFAULT_RTL.
  • + *
+ * + * @see ubidi_setPara + * + *

The related constants are not real, valid level values. + * UBIDI_DEFAULT_XXX can be used to specify + * a default for the paragraph level for + * when the ubidi_setPara() function + * shall determine it but there is no + * strongly typed character in the input.

+ * + * Note that the value for UBIDI_DEFAULT_LTR is even + * and the one for UBIDI_DEFAULT_RTL is odd, + * just like with normal LTR and RTL level values - + * these special values are designed that way. Also, the implementation + * assumes that UBIDI_MAX_EXPLICIT_LEVEL is odd. + * + * @see UBIDI_DEFAULT_LTR + * @see UBIDI_DEFAULT_RTL + * @see UBIDI_LEVEL_OVERRIDE + * @see UBIDI_MAX_EXPLICIT_LEVEL + * @stable ICU 2.0 + */ +typedef uint8_t UBiDiLevel; + +/** Paragraph level setting.

+ * + * Constant indicating that the base direction depends on the first strong + * directional character in the text according to the Unicode Bidirectional + * Algorithm. If no strong directional character is present, + * then set the paragraph level to 0 (left-to-right).

+ * + * If this value is used in conjunction with reordering modes + * UBIDI_REORDER_INVERSE_LIKE_DIRECT or + * UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL, the text to reorder + * is assumed to be visual LTR, and the text after reordering is required + * to be the corresponding logical string with appropriate contextual + * direction. The direction of the result string will be RTL if either + * the righmost or leftmost strong character of the source text is RTL + * or Arabic Letter, the direction will be LTR otherwise.

+ * + * If reordering option UBIDI_OPTION_INSERT_MARKS is set, an RLM may + * be added at the beginning of the result string to ensure round trip + * (that the result string, when reordered back to visual, will produce + * the original source text). + * @see UBIDI_REORDER_INVERSE_LIKE_DIRECT + * @see UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL + * @stable ICU 2.0 + */ +#define UBIDI_DEFAULT_LTR 0xfe + +/** Paragraph level setting.

+ * + * Constant indicating that the base direction depends on the first strong + * directional character in the text according to the Unicode Bidirectional + * Algorithm. If no strong directional character is present, + * then set the paragraph level to 1 (right-to-left).

+ * + * If this value is used in conjunction with reordering modes + * UBIDI_REORDER_INVERSE_LIKE_DIRECT or + * UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL, the text to reorder + * is assumed to be visual LTR, and the text after reordering is required + * to be the corresponding logical string with appropriate contextual + * direction. The direction of the result string will be RTL if either + * the righmost or leftmost strong character of the source text is RTL + * or Arabic Letter, or if the text contains no strong character; + * the direction will be LTR otherwise.

+ * + * If reordering option UBIDI_OPTION_INSERT_MARKS is set, an RLM may + * be added at the beginning of the result string to ensure round trip + * (that the result string, when reordered back to visual, will produce + * the original source text). + * @see UBIDI_REORDER_INVERSE_LIKE_DIRECT + * @see UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL + * @stable ICU 2.0 + */ +#define UBIDI_DEFAULT_RTL 0xff + +/** + * Maximum explicit embedding level. + * (The maximum resolved level can be up to UBIDI_MAX_EXPLICIT_LEVEL+1). + * @stable ICU 2.0 + */ +#define UBIDI_MAX_EXPLICIT_LEVEL 125 + +/** Bit flag for level input. + * Overrides directional properties. + * @stable ICU 2.0 + */ +#define UBIDI_LEVEL_OVERRIDE 0x80 + +/** + * Special value which can be returned by the mapping functions when a logical + * index has no corresponding visual index or vice-versa. This may happen + * for the logical-to-visual mapping of a Bidi control when option + * #UBIDI_OPTION_REMOVE_CONTROLS is specified. This can also happen + * for the visual-to-logical mapping of a Bidi mark (LRM or RLM) inserted + * by option #UBIDI_OPTION_INSERT_MARKS. + * @see ubidi_getVisualIndex + * @see ubidi_getVisualMap + * @see ubidi_getLogicalIndex + * @see ubidi_getLogicalMap + * @stable ICU 3.6 + */ +#define UBIDI_MAP_NOWHERE (-1) + +/** + * UBiDiDirection values indicate the text direction. + * @stable ICU 2.0 + */ +enum UBiDiDirection { + /** Left-to-right text. This is a 0 value. + *

    + *
  • As return value for ubidi_getDirection(), it means + * that the source string contains no right-to-left characters, or + * that the source string is empty and the paragraph level is even. + *
  • As return value for ubidi_getBaseDirection(), it + * means that the first strong character of the source string has + * a left-to-right direction. + *
+ * @stable ICU 2.0 + */ + UBIDI_LTR, + /** Right-to-left text. This is a 1 value. + *
    + *
  • As return value for ubidi_getDirection(), it means + * that the source string contains no left-to-right characters, or + * that the source string is empty and the paragraph level is odd. + *
  • As return value for ubidi_getBaseDirection(), it + * means that the first strong character of the source string has + * a right-to-left direction. + *
+ * @stable ICU 2.0 + */ + UBIDI_RTL, + /** Mixed-directional text. + *

As return value for ubidi_getDirection(), it means + * that the source string contains both left-to-right and + * right-to-left characters. + * @stable ICU 2.0 + */ + UBIDI_MIXED, + /** No strongly directional text. + *

As return value for ubidi_getBaseDirection(), it means + * that the source string is missing or empty, or contains neither left-to-right + * nor right-to-left characters. + * @stable ICU 4.6 + */ + UBIDI_NEUTRAL +}; + +/** @stable ICU 2.0 */ +typedef enum UBiDiDirection UBiDiDirection; + +/** + * Forward declaration of the UBiDi structure for the declaration of + * the API functions. Its fields are implementation-specific.

+ * This structure holds information about a paragraph (or multiple paragraphs) + * of text with Bidi-algorithm-related details, or about one line of + * such a paragraph.

+ * Reordering can be done on a line, or on one or more paragraphs which are + * then interpreted each as one single line. + * @stable ICU 2.0 + */ +struct UBiDi; + +/** @stable ICU 2.0 */ +typedef struct UBiDi UBiDi; + +/** + * Allocate a UBiDi structure. + * Such an object is initially empty. It is assigned + * the Bidi properties of a piece of text containing one or more paragraphs + * by ubidi_setPara() + * or the Bidi properties of a line within a paragraph by + * ubidi_setLine().

+ * This object can be reused for as long as it is not deallocated + * by calling ubidi_close().

+ * ubidi_setPara() and ubidi_setLine() will allocate + * additional memory for internal structures as necessary. + * + * @return An empty UBiDi object. + * @stable ICU 2.0 + */ +U_STABLE UBiDi * U_EXPORT2 +ubidi_open(void); + +/** + * Allocate a UBiDi structure with preallocated memory + * for internal structures. + * This function provides a UBiDi object like ubidi_open() + * with no arguments, but it also preallocates memory for internal structures + * according to the sizings supplied by the caller.

+ * Subsequent functions will not allocate any more memory, and are thus + * guaranteed not to fail because of lack of memory.

+ * The preallocation can be limited to some of the internal memory + * by setting some values to 0 here. That means that if, e.g., + * maxRunCount cannot be reasonably predetermined and should not + * be set to maxLength (the only failproof value) to avoid + * wasting memory, then maxRunCount could be set to 0 here + * and the internal structures that are associated with it will be allocated + * on demand, just like with ubidi_open(). + * + * @param maxLength is the maximum text or line length that internal memory + * will be preallocated for. An attempt to associate this object with a + * longer text will fail, unless this value is 0, which leaves the allocation + * up to the implementation. + * + * @param maxRunCount is the maximum anticipated number of same-level runs + * that internal memory will be preallocated for. An attempt to access + * visual runs on an object that was not preallocated for as many runs + * as the text was actually resolved to will fail, + * unless this value is 0, which leaves the allocation up to the implementation.

+ * The number of runs depends on the actual text and maybe anywhere between + * 1 and maxLength. It is typically small. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return An empty UBiDi object with preallocated memory. + * @stable ICU 2.0 + */ +U_STABLE UBiDi * U_EXPORT2 +ubidi_openSized(int32_t maxLength, int32_t maxRunCount, UErrorCode *pErrorCode); + +/** + * ubidi_close() must be called to free the memory + * associated with a UBiDi object.

+ * + * Important: + * A parent UBiDi object must not be destroyed or reused if + * it still has children. + * If a UBiDi object has become the child + * of another one (its parent) by calling + * ubidi_setLine(), then the child object must + * be destroyed (closed) or reused (by calling + * ubidi_setPara() or ubidi_setLine()) + * before the parent object. + * + * @param pBiDi is a UBiDi object. + * + * @see ubidi_setPara + * @see ubidi_setLine + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubidi_close(UBiDi *pBiDi); + + +/** + * Modify the operation of the Bidi algorithm such that it + * approximates an "inverse Bidi" algorithm. This function + * must be called before ubidi_setPara(). + * + *

The normal operation of the Bidi algorithm as described + * in the Unicode Technical Report is to take text stored in logical + * (keyboard, typing) order and to determine the reordering of it for visual + * rendering. + * Some legacy systems store text in visual order, and for operations + * with standard, Unicode-based algorithms, the text needs to be transformed + * to logical order. This is effectively the inverse algorithm of the + * described Bidi algorithm. Note that there is no standard algorithm for + * this "inverse Bidi" and that the current implementation provides only an + * approximation of "inverse Bidi".

+ * + *

With isInverse set to TRUE, + * this function changes the behavior of some of the subsequent functions + * in a way that they can be used for the inverse Bidi algorithm. + * Specifically, runs of text with numeric characters will be treated in a + * special way and may need to be surrounded with LRM characters when they are + * written in reordered sequence.

+ * + *

Output runs should be retrieved using ubidi_getVisualRun(). + * Since the actual input for "inverse Bidi" is visually ordered text and + * ubidi_getVisualRun() gets the reordered runs, these are actually + * the runs of the logically ordered output.

+ * + *

Calling this function with argument isInverse set to + * TRUE is equivalent to calling + * ubidi_setReorderingMode with argument + * reorderingMode + * set to #UBIDI_REORDER_INVERSE_NUMBERS_AS_L.
+ * Calling this function with argument isInverse set to + * FALSE is equivalent to calling + * ubidi_setReorderingMode with argument + * reorderingMode + * set to #UBIDI_REORDER_DEFAULT. + * + * @param pBiDi is a UBiDi object. + * + * @param isInverse specifies "forward" or "inverse" Bidi operation. + * + * @see ubidi_setPara + * @see ubidi_writeReordered + * @see ubidi_setReorderingMode + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubidi_setInverse(UBiDi *pBiDi, UBool isInverse); + +/** + * Is this Bidi object set to perform the inverse Bidi algorithm? + *

Note: calling this function after setting the reordering mode with + * ubidi_setReorderingMode will return TRUE if the + * reordering mode was set to #UBIDI_REORDER_INVERSE_NUMBERS_AS_L, + * FALSE for all other values.

+ * + * @param pBiDi is a UBiDi object. + * @return TRUE if the Bidi object is set to perform the inverse Bidi algorithm + * by handling numbers as L. + * + * @see ubidi_setInverse + * @see ubidi_setReorderingMode + * @stable ICU 2.0 + */ + +U_STABLE UBool U_EXPORT2 +ubidi_isInverse(UBiDi *pBiDi); + +/** + * Specify whether block separators must be allocated level zero, + * so that successive paragraphs will progress from left to right. + * This function must be called before ubidi_setPara(). + * Paragraph separators (B) may appear in the text. Setting them to level zero + * means that all paragraph separators (including one possibly appearing + * in the last text position) are kept in the reordered text after the text + * that they follow in the source text. + * When this feature is not enabled, a paragraph separator at the last + * position of the text before reordering will go to the first position + * of the reordered text when the paragraph level is odd. + * + * @param pBiDi is a UBiDi object. + * + * @param orderParagraphsLTR specifies whether paragraph separators (B) must + * receive level 0, so that successive paragraphs progress from left to right. + * + * @see ubidi_setPara + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +ubidi_orderParagraphsLTR(UBiDi *pBiDi, UBool orderParagraphsLTR); + +/** + * Is this Bidi object set to allocate level 0 to block separators so that + * successive paragraphs progress from left to right? + * + * @param pBiDi is a UBiDi object. + * @return TRUE if the Bidi object is set to allocate level 0 to block + * separators. + * + * @see ubidi_orderParagraphsLTR + * @stable ICU 3.4 + */ +U_STABLE UBool U_EXPORT2 +ubidi_isOrderParagraphsLTR(UBiDi *pBiDi); + +/** + * UBiDiReorderingMode values indicate which variant of the Bidi + * algorithm to use. + * + * @see ubidi_setReorderingMode + * @stable ICU 3.6 + */ +typedef enum UBiDiReorderingMode { + /** Regular Logical to Visual Bidi algorithm according to Unicode. + * This is a 0 value. + * @stable ICU 3.6 */ + UBIDI_REORDER_DEFAULT = 0, + /** Logical to Visual algorithm which handles numbers in a way which + * mimicks the behavior of Windows XP. + * @stable ICU 3.6 */ + UBIDI_REORDER_NUMBERS_SPECIAL, + /** Logical to Visual algorithm grouping numbers with adjacent R characters + * (reversible algorithm). + * @stable ICU 3.6 */ + UBIDI_REORDER_GROUP_NUMBERS_WITH_R, + /** Reorder runs only to transform a Logical LTR string to the Logical RTL + * string with the same display, or vice-versa.
+ * If this mode is set together with option + * #UBIDI_OPTION_INSERT_MARKS, some Bidi controls in the source + * text may be removed and other controls may be added to produce the + * minimum combination which has the required display. + * @stable ICU 3.6 */ + UBIDI_REORDER_RUNS_ONLY, + /** Visual to Logical algorithm which handles numbers like L + * (same algorithm as selected by ubidi_setInverse(TRUE). + * @see ubidi_setInverse + * @stable ICU 3.6 */ + UBIDI_REORDER_INVERSE_NUMBERS_AS_L, + /** Visual to Logical algorithm equivalent to the regular Logical to Visual + * algorithm. + * @stable ICU 3.6 */ + UBIDI_REORDER_INVERSE_LIKE_DIRECT, + /** Inverse Bidi (Visual to Logical) algorithm for the + * UBIDI_REORDER_NUMBERS_SPECIAL Bidi algorithm. + * @stable ICU 3.6 */ + UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL, + /** Number of values for reordering mode. + * @stable ICU 3.6 */ + UBIDI_REORDER_COUNT +} UBiDiReorderingMode; + +/** + * Modify the operation of the Bidi algorithm such that it implements some + * variant to the basic Bidi algorithm or approximates an "inverse Bidi" + * algorithm, depending on different values of the "reordering mode". + * This function must be called before ubidi_setPara(), and stays + * in effect until called again with a different argument. + * + *

The normal operation of the Bidi algorithm as described + * in the Unicode Standard Annex #9 is to take text stored in logical + * (keyboard, typing) order and to determine how to reorder it for visual + * rendering.

+ * + *

With the reordering mode set to a value other than + * #UBIDI_REORDER_DEFAULT, this function changes the behavior of + * some of the subsequent functions in a way such that they implement an + * inverse Bidi algorithm or some other algorithm variants.

+ * + *

Some legacy systems store text in visual order, and for operations + * with standard, Unicode-based algorithms, the text needs to be transformed + * into logical order. This is effectively the inverse algorithm of the + * described Bidi algorithm. Note that there is no standard algorithm for + * this "inverse Bidi", so a number of variants are implemented here.

+ * + *

In other cases, it may be desirable to emulate some variant of the + * Logical to Visual algorithm (e.g. one used in MS Windows), or perform a + * Logical to Logical transformation.

+ * + *
    + *
  • When the reordering mode is set to #UBIDI_REORDER_DEFAULT, + * the standard Bidi Logical to Visual algorithm is applied.
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_NUMBERS_SPECIAL, + * the algorithm used to perform Bidi transformations when calling + * ubidi_setPara should approximate the algorithm used in + * Microsoft Windows XP rather than strictly conform to the Unicode Bidi + * algorithm. + *
    + * The differences between the basic algorithm and the algorithm addressed + * by this option are as follows: + *
      + *
    • Within text at an even embedding level, the sequence "123AB" + * (where AB represent R or AL letters) is transformed to "123BA" by the + * Unicode algorithm and to "BA123" by the Windows algorithm.
    • + *
    • Arabic-Indic numbers (AN) are handled by the Windows algorithm just + * like regular numbers (EN).
    • + *
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_GROUP_NUMBERS_WITH_R, + * numbers located between LTR text and RTL text are associated with the RTL + * text. For instance, an LTR paragraph with content "abc 123 DEF" (where + * upper case letters represent RTL characters) will be transformed to + * "abc FED 123" (and not "abc 123 FED"), "DEF 123 abc" will be transformed + * to "123 FED abc" and "123 FED abc" will be transformed to "DEF 123 abc". + * This makes the algorithm reversible and makes it useful when round trip + * (from visual to logical and back to visual) must be achieved without + * adding LRM characters. However, this is a variation from the standard + * Unicode Bidi algorithm.
    + * The source text should not contain Bidi control characters other than LRM + * or RLM.
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_RUNS_ONLY, + * a "Logical to Logical" transformation must be performed: + *
      + *
    • If the default text level of the source text (argument paraLevel + * in ubidi_setPara) is even, the source text will be handled as + * LTR logical text and will be transformed to the RTL logical text which has + * the same LTR visual display.
    • + *
    • If the default level of the source text is odd, the source text + * will be handled as RTL logical text and will be transformed to the + * LTR logical text which has the same LTR visual display.
    • + *
    + * This mode may be needed when logical text which is basically Arabic or + * Hebrew, with possible included numbers or phrases in English, has to be + * displayed as if it had an even embedding level (this can happen if the + * displaying application treats all text as if it was basically LTR). + *
    + * This mode may also be needed in the reverse case, when logical text which is + * basically English, with possible included phrases in Arabic or Hebrew, has to + * be displayed as if it had an odd embedding level. + *
    + * Both cases could be handled by adding LRE or RLE at the head of the text, + * if the display subsystem supports these formatting controls. If it does not, + * the problem may be handled by transforming the source text in this mode + * before displaying it, so that it will be displayed properly.
    + * The source text should not contain Bidi control characters other than LRM + * or RLM.
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_INVERSE_NUMBERS_AS_L, an "inverse Bidi" algorithm + * is applied. + * Runs of text with numeric characters will be treated like LTR letters and + * may need to be surrounded with LRM characters when they are written in + * reordered sequence (the option #UBIDI_INSERT_LRM_FOR_NUMERIC can + * be used with function ubidi_writeReordered to this end. This + * mode is equivalent to calling ubidi_setInverse() with + * argument isInverse set to TRUE.
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_INVERSE_LIKE_DIRECT, the "direct" Logical to Visual + * Bidi algorithm is used as an approximation of an "inverse Bidi" algorithm. + * This mode is similar to mode #UBIDI_REORDER_INVERSE_NUMBERS_AS_L + * but is closer to the regular Bidi algorithm. + *
    + * For example, an LTR paragraph with the content "FED 123 456 CBA" (where + * upper case represents RTL characters) will be transformed to + * "ABC 456 123 DEF", as opposed to "DEF 123 456 ABC" + * with mode UBIDI_REORDER_INVERSE_NUMBERS_AS_L.
    + * When used in conjunction with option + * #UBIDI_OPTION_INSERT_MARKS, this mode generally + * adds Bidi marks to the output significantly more sparingly than mode + * #UBIDI_REORDER_INVERSE_NUMBERS_AS_L with option + * #UBIDI_INSERT_LRM_FOR_NUMERIC in calls to + * ubidi_writeReordered.
  • + * + *
  • When the reordering mode is set to + * #UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL, the Logical to Visual + * Bidi algorithm used in Windows XP is used as an approximation of an "inverse Bidi" algorithm. + *
    + * For example, an LTR paragraph with the content "abc FED123" (where + * upper case represents RTL characters) will be transformed to "abc 123DEF."
  • + *
+ * + *

In all the reordering modes specifying an "inverse Bidi" algorithm + * (i.e. those with a name starting with UBIDI_REORDER_INVERSE), + * output runs should be retrieved using + * ubidi_getVisualRun(), and the output text with + * ubidi_writeReordered(). The caller should keep in mind that in + * "inverse Bidi" modes the input is actually visually ordered text and + * reordered output returned by ubidi_getVisualRun() or + * ubidi_writeReordered() are actually runs or character string + * of logically ordered output.
+ * For all the "inverse Bidi" modes, the source text should not contain + * Bidi control characters other than LRM or RLM.

+ * + *

Note that option #UBIDI_OUTPUT_REVERSE of + * ubidi_writeReordered has no useful meaning and should not be + * used in conjunction with any value of the reordering mode specifying + * "inverse Bidi" or with value UBIDI_REORDER_RUNS_ONLY. + * + * @param pBiDi is a UBiDi object. + * @param reorderingMode specifies the required variant of the Bidi algorithm. + * + * @see UBiDiReorderingMode + * @see ubidi_setInverse + * @see ubidi_setPara + * @see ubidi_writeReordered + * @stable ICU 3.6 + */ +U_STABLE void U_EXPORT2 +ubidi_setReorderingMode(UBiDi *pBiDi, UBiDiReorderingMode reorderingMode); + +/** + * What is the requested reordering mode for a given Bidi object? + * + * @param pBiDi is a UBiDi object. + * @return the current reordering mode of the Bidi object + * @see ubidi_setReorderingMode + * @stable ICU 3.6 + */ +U_STABLE UBiDiReorderingMode U_EXPORT2 +ubidi_getReorderingMode(UBiDi *pBiDi); + +/** + * UBiDiReorderingOption values indicate which options are + * specified to affect the Bidi algorithm. + * + * @see ubidi_setReorderingOptions + * @stable ICU 3.6 + */ +typedef enum UBiDiReorderingOption { + /** + * option value for ubidi_setReorderingOptions: + * disable all the options which can be set with this function + * @see ubidi_setReorderingOptions + * @stable ICU 3.6 + */ + UBIDI_OPTION_DEFAULT = 0, + + /** + * option bit for ubidi_setReorderingOptions: + * insert Bidi marks (LRM or RLM) when needed to ensure correct result of + * a reordering to a Logical order + * + *

This option must be set or reset before calling + * ubidi_setPara.

+ * + *

This option is significant only with reordering modes which generate + * a result with Logical order, specifically:

+ *
    + *
  • #UBIDI_REORDER_RUNS_ONLY
  • + *
  • #UBIDI_REORDER_INVERSE_NUMBERS_AS_L
  • + *
  • #UBIDI_REORDER_INVERSE_LIKE_DIRECT
  • + *
  • #UBIDI_REORDER_INVERSE_FOR_NUMBERS_SPECIAL
  • + *
+ * + *

If this option is set in conjunction with reordering mode + * #UBIDI_REORDER_INVERSE_NUMBERS_AS_L or with calling + * ubidi_setInverse(TRUE), it implies + * option #UBIDI_INSERT_LRM_FOR_NUMERIC + * in calls to function ubidi_writeReordered().

+ * + *

For other reordering modes, a minimum number of LRM or RLM characters + * will be added to the source text after reordering it so as to ensure + * round trip, i.e. when applying the inverse reordering mode on the + * resulting logical text with removal of Bidi marks + * (option #UBIDI_OPTION_REMOVE_CONTROLS set before calling + * ubidi_setPara() or option #UBIDI_REMOVE_BIDI_CONTROLS + * in ubidi_writeReordered), the result will be identical to the + * source text in the first transformation. + * + *

This option will be ignored if specified together with option + * #UBIDI_OPTION_REMOVE_CONTROLS. It inhibits option + * UBIDI_REMOVE_BIDI_CONTROLS in calls to function + * ubidi_writeReordered() and it implies option + * #UBIDI_INSERT_LRM_FOR_NUMERIC in calls to function + * ubidi_writeReordered() if the reordering mode is + * #UBIDI_REORDER_INVERSE_NUMBERS_AS_L.

+ * + * @see ubidi_setReorderingMode + * @see ubidi_setReorderingOptions + * @stable ICU 3.6 + */ + UBIDI_OPTION_INSERT_MARKS = 1, + + /** + * option bit for ubidi_setReorderingOptions: + * remove Bidi control characters + * + *

This option must be set or reset before calling + * ubidi_setPara.

+ * + *

This option nullifies option #UBIDI_OPTION_INSERT_MARKS. + * It inhibits option #UBIDI_INSERT_LRM_FOR_NUMERIC in calls + * to function ubidi_writeReordered() and it implies option + * #UBIDI_REMOVE_BIDI_CONTROLS in calls to that function.

+ * + * @see ubidi_setReorderingMode + * @see ubidi_setReorderingOptions + * @stable ICU 3.6 + */ + UBIDI_OPTION_REMOVE_CONTROLS = 2, + + /** + * option bit for ubidi_setReorderingOptions: + * process the output as part of a stream to be continued + * + *

This option must be set or reset before calling + * ubidi_setPara.

+ * + *

This option specifies that the caller is interested in processing large + * text object in parts. + * The results of the successive calls are expected to be concatenated by the + * caller. Only the call for the last part will have this option bit off.

+ * + *

When this option bit is on, ubidi_setPara() may process + * less than the full source text in order to truncate the text at a meaningful + * boundary. The caller should call ubidi_getProcessedLength() + * immediately after calling ubidi_setPara() in order to + * determine how much of the source text has been processed. + * Source text beyond that length should be resubmitted in following calls to + * ubidi_setPara. The processed length may be less than + * the length of the source text if a character preceding the last character of + * the source text constitutes a reasonable boundary (like a block separator) + * for text to be continued.
+ * If the last character of the source text constitutes a reasonable + * boundary, the whole text will be processed at once.
+ * If nowhere in the source text there exists + * such a reasonable boundary, the processed length will be zero.
+ * The caller should check for such an occurrence and do one of the following: + *

  • submit a larger amount of text with a better chance to include + * a reasonable boundary.
  • + *
  • resubmit the same text after turning off option + * UBIDI_OPTION_STREAMING.
+ * In all cases, this option should be turned off before processing the last + * part of the text.

+ * + *

When the UBIDI_OPTION_STREAMING option is used, + * it is recommended to call ubidi_orderParagraphsLTR() with + * argument orderParagraphsLTR set to TRUE before + * calling ubidi_setPara so that later paragraphs may be + * concatenated to previous paragraphs on the right.

+ * + * @see ubidi_setReorderingMode + * @see ubidi_setReorderingOptions + * @see ubidi_getProcessedLength + * @see ubidi_orderParagraphsLTR + * @stable ICU 3.6 + */ + UBIDI_OPTION_STREAMING = 4 +} UBiDiReorderingOption; + +/** + * Specify which of the reordering options + * should be applied during Bidi transformations. + * + * @param pBiDi is a UBiDi object. + * @param reorderingOptions is a combination of zero or more of the following + * options: + * #UBIDI_OPTION_DEFAULT, #UBIDI_OPTION_INSERT_MARKS, + * #UBIDI_OPTION_REMOVE_CONTROLS, #UBIDI_OPTION_STREAMING. + * + * @see ubidi_getReorderingOptions + * @stable ICU 3.6 + */ +U_STABLE void U_EXPORT2 +ubidi_setReorderingOptions(UBiDi *pBiDi, uint32_t reorderingOptions); + +/** + * What are the reordering options applied to a given Bidi object? + * + * @param pBiDi is a UBiDi object. + * @return the current reordering options of the Bidi object + * @see ubidi_setReorderingOptions + * @stable ICU 3.6 + */ +U_STABLE uint32_t U_EXPORT2 +ubidi_getReorderingOptions(UBiDi *pBiDi); + +/** + * Set the context before a call to ubidi_setPara().

+ * + * ubidi_setPara() computes the left-right directionality for a given piece + * of text which is supplied as one of its arguments. Sometimes this piece + * of text (the "main text") should be considered in context, because text + * appearing before ("prologue") and/or after ("epilogue") the main text + * may affect the result of this computation.

+ * + * This function specifies the prologue and/or the epilogue for the next + * call to ubidi_setPara(). The characters specified as prologue and + * epilogue should not be modified by the calling program until the call + * to ubidi_setPara() has returned. If successive calls to ubidi_setPara() + * all need specification of a context, ubidi_setContext() must be called + * before each call to ubidi_setPara(). In other words, a context is not + * "remembered" after the following successful call to ubidi_setPara().

+ * + * If a call to ubidi_setPara() specifies UBIDI_DEFAULT_LTR or + * UBIDI_DEFAULT_RTL as paraLevel and is preceded by a call to + * ubidi_setContext() which specifies a prologue, the paragraph level will + * be computed taking in consideration the text in the prologue.

+ * + * When ubidi_setPara() is called without a previous call to + * ubidi_setContext, the main text is handled as if preceded and followed + * by strong directional characters at the current paragraph level. + * Calling ubidi_setContext() with specification of a prologue will change + * this behavior by handling the main text as if preceded by the last + * strong character appearing in the prologue, if any. + * Calling ubidi_setContext() with specification of an epilogue will change + * the behavior of ubidi_setPara() by handling the main text as if followed + * by the first strong character or digit appearing in the epilogue, if any.

+ * + * Note 1: if ubidi_setContext is called repeatedly without + * calling ubidi_setPara, the earlier calls have no effect, + * only the last call will be remembered for the next call to + * ubidi_setPara.

+ * + * Note 2: calling ubidi_setContext(pBiDi, NULL, 0, NULL, 0, &errorCode) + * cancels any previous setting of non-empty prologue or epilogue. + * The next call to ubidi_setPara() will process no + * prologue or epilogue.

+ * + * Note 3: users must be aware that even after setting the context + * before a call to ubidi_setPara() to perform e.g. a logical to visual + * transformation, the resulting string may not be identical to what it + * would have been if all the text, including prologue and epilogue, had + * been processed together.
+ * Example (upper case letters represent RTL characters):
+ *   prologue = "abc DE"
+ *   epilogue = none
+ *   main text = "FGH xyz"
+ *   paraLevel = UBIDI_LTR
+ *   display without prologue = "HGF xyz" + * ("HGF" is adjacent to "xyz")
+ *   display with prologue = "abc HGFED xyz" + * ("HGF" is not adjacent to "xyz")
+ * + * @param pBiDi is a paragraph UBiDi object. + * + * @param prologue is a pointer to the text which precedes the text that + * will be specified in a coming call to ubidi_setPara(). + * If there is no prologue to consider, then proLength + * must be zero and this pointer can be NULL. + * + * @param proLength is the length of the prologue; if proLength==-1 + * then the prologue must be zero-terminated. + * Otherwise proLength must be >= 0. If proLength==0, it means + * that there is no prologue to consider. + * + * @param epilogue is a pointer to the text which follows the text that + * will be specified in a coming call to ubidi_setPara(). + * If there is no epilogue to consider, then epiLength + * must be zero and this pointer can be NULL. + * + * @param epiLength is the length of the epilogue; if epiLength==-1 + * then the epilogue must be zero-terminated. + * Otherwise epiLength must be >= 0. If epiLength==0, it means + * that there is no epilogue to consider. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @see ubidi_setPara + * @stable ICU 4.8 + */ +U_STABLE void U_EXPORT2 +ubidi_setContext(UBiDi *pBiDi, + const UChar *prologue, int32_t proLength, + const UChar *epilogue, int32_t epiLength, + UErrorCode *pErrorCode); + +/** + * Perform the Unicode Bidi algorithm. It is defined in the + * Unicode Standard Anned #9, + * version 13, + * also described in The Unicode Standard, Version 4.0 .

+ * + * This function takes a piece of plain text containing one or more paragraphs, + * with or without externally specified embedding levels from styled + * text and computes the left-right-directionality of each character.

+ * + * If the entire text is all of the same directionality, then + * the function may not perform all the steps described by the algorithm, + * i.e., some levels may not be the same as if all steps were performed. + * This is not relevant for unidirectional text.
+ * For example, in pure LTR text with numbers the numbers would get + * a resolved level of 2 higher than the surrounding text according to + * the algorithm. This implementation may set all resolved levels to + * the same value in such a case.

+ * + * The text can be composed of multiple paragraphs. Occurrence of a block + * separator in the text terminates a paragraph, and whatever comes next starts + * a new paragraph. The exception to this rule is when a Carriage Return (CR) + * is followed by a Line Feed (LF). Both CR and LF are block separators, but + * in that case, the pair of characters is considered as terminating the + * preceding paragraph, and a new paragraph will be started by a character + * coming after the LF. + * + * @param pBiDi A UBiDi object allocated with ubidi_open() + * which will be set to contain the reordering information, + * especially the resolved levels for all the characters in text. + * + * @param text is a pointer to the text that the Bidi algorithm will be performed on. + * This pointer is stored in the UBiDi object and can be retrieved + * with ubidi_getText().
+ * Note: the text must be (at least) length long. + * + * @param length is the length of the text; if length==-1 then + * the text must be zero-terminated. + * + * @param paraLevel specifies the default level for the text; + * it is typically 0 (LTR) or 1 (RTL). + * If the function shall determine the paragraph level from the text, + * then paraLevel can be set to + * either #UBIDI_DEFAULT_LTR + * or #UBIDI_DEFAULT_RTL; if the text contains multiple + * paragraphs, the paragraph level shall be determined separately for + * each paragraph; if a paragraph does not include any strongly typed + * character, then the desired default is used (0 for LTR or 1 for RTL). + * Any other value between 0 and #UBIDI_MAX_EXPLICIT_LEVEL + * is also valid, with odd levels indicating RTL. + * + * @param embeddingLevels (in) may be used to preset the embedding and override levels, + * ignoring characters like LRE and PDF in the text. + * A level overrides the directional property of its corresponding + * (same index) character if the level has the + * #UBIDI_LEVEL_OVERRIDE bit set.

+ * Except for that bit, it must be + * paraLevel<=embeddingLevels[]<=UBIDI_MAX_EXPLICIT_LEVEL, + * with one exception: a level of zero may be specified for a paragraph + * separator even if paraLevel>0 when multiple paragraphs + * are submitted in the same call to ubidi_setPara().

+ * Caution: A copy of this pointer, not of the levels, + * will be stored in the UBiDi object; + * the embeddingLevels array must not be + * deallocated before the UBiDi structure is destroyed or reused, + * and the embeddingLevels + * should not be modified to avoid unexpected results on subsequent Bidi operations. + * However, the ubidi_setPara() and + * ubidi_setLine() functions may modify some or all of the levels.

+ * After the UBiDi object is reused or destroyed, the caller + * must take care of the deallocation of the embeddingLevels array.

+ * Note: the embeddingLevels array must be + * at least length long. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pErrorCode must be a valid pointer to an error code value. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubidi_setPara(UBiDi *pBiDi, const UChar *text, int32_t length, + UBiDiLevel paraLevel, UBiDiLevel *embeddingLevels, + UErrorCode *pErrorCode); + +/** + * ubidi_setLine() sets a UBiDi to + * contain the reordering information, especially the resolved levels, + * for all the characters in a line of text. This line of text is + * specified by referring to a UBiDi object representing + * this information for a piece of text containing one or more paragraphs, + * and by specifying a range of indexes in this text.

+ * In the new line object, the indexes will range from 0 to limit-start-1.

+ * + * This is used after calling ubidi_setPara() + * for a piece of text, and after line-breaking on that text. + * It is not necessary if each paragraph is treated as a single line.

+ * + * After line-breaking, rules (L1) and (L2) for the treatment of + * trailing WS and for reordering are performed on + * a UBiDi object that represents a line.

+ * + * Important: pLineBiDi shares data with + * pParaBiDi. + * You must destroy or reuse pLineBiDi before pParaBiDi. + * In other words, you must destroy or reuse the UBiDi object for a line + * before the object for its parent paragraph.

+ * + * The text pointer that was stored in pParaBiDi is also copied, + * and start is added to it so that it points to the beginning of the + * line for this object. + * + * @param pParaBiDi is the parent paragraph object. It must have been set + * by a successful call to ubidi_setPara. + * + * @param start is the line's first index into the text. + * + * @param limit is just behind the line's last index into the text + * (its last index +1).
+ * It must be 0<=startcontaining paragraph limit. + * If the specified line crosses a paragraph boundary, the function + * will terminate with error code U_ILLEGAL_ARGUMENT_ERROR. + * + * @param pLineBiDi is the object that will now represent a line of the text. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @see ubidi_setPara + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubidi_setLine(const UBiDi *pParaBiDi, + int32_t start, int32_t limit, + UBiDi *pLineBiDi, + UErrorCode *pErrorCode); + +/** + * Get the directionality of the text. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @return a value of UBIDI_LTR, UBIDI_RTL + * or UBIDI_MIXED + * that indicates if the entire text + * represented by this object is unidirectional, + * and which direction, or if it is mixed-directional. + * Note - The value UBIDI_NEUTRAL is never returned from this method. + * + * @see UBiDiDirection + * @stable ICU 2.0 + */ +U_STABLE UBiDiDirection U_EXPORT2 +ubidi_getDirection(const UBiDi *pBiDi); + +/** + * Gets the base direction of the text provided according + * to the Unicode Bidirectional Algorithm. The base direction + * is derived from the first character in the string with bidirectional + * character type L, R, or AL. If the first such character has type L, + * UBIDI_LTR is returned. If the first such character has + * type R or AL, UBIDI_RTL is returned. If the string does + * not contain any character of these types, then + * UBIDI_NEUTRAL is returned. + * + * This is a lightweight function for use when only the base direction + * is needed and no further bidi processing of the text is needed. + * + * @param text is a pointer to the text whose base + * direction is needed. + * Note: the text must be (at least) @c length long. + * + * @param length is the length of the text; + * if length==-1 then the text + * must be zero-terminated. + * + * @return UBIDI_LTR, UBIDI_RTL, + * UBIDI_NEUTRAL + * + * @see UBiDiDirection + * @stable ICU 4.6 + */ +U_STABLE UBiDiDirection U_EXPORT2 +ubidi_getBaseDirection(const UChar *text, int32_t length ); + +/** + * Get the pointer to the text. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @return The pointer to the text that the UBiDi object was created for. + * + * @see ubidi_setPara + * @see ubidi_setLine + * @stable ICU 2.0 + */ +U_STABLE const UChar * U_EXPORT2 +ubidi_getText(const UBiDi *pBiDi); + +/** + * Get the length of the text. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @return The length of the text that the UBiDi object was created for. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubidi_getLength(const UBiDi *pBiDi); + +/** + * Get the paragraph level of the text. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @return The paragraph level. If there are multiple paragraphs, their + * level may vary if the required paraLevel is UBIDI_DEFAULT_LTR or + * UBIDI_DEFAULT_RTL. In that case, the level of the first paragraph + * is returned. + * + * @see UBiDiLevel + * @see ubidi_getParagraph + * @see ubidi_getParagraphByIndex + * @stable ICU 2.0 + */ +U_STABLE UBiDiLevel U_EXPORT2 +ubidi_getParaLevel(const UBiDi *pBiDi); + +/** + * Get the number of paragraphs. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @return The number of paragraphs. + * @stable ICU 3.4 + */ +U_STABLE int32_t U_EXPORT2 +ubidi_countParagraphs(UBiDi *pBiDi); + +/** + * Get a paragraph, given a position within the text. + * This function returns information about a paragraph.
+ * Note: if the paragraph index is known, it is more efficient to + * retrieve the paragraph information using ubidi_getParagraphByIndex().

+ * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param charIndex is the index of a character within the text, in the + * range [0..ubidi_getProcessedLength(pBiDi)-1]. + * + * @param pParaStart will receive the index of the first character of the + * paragraph in the text. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pParaLimit will receive the limit of the paragraph. + * The l-value that you point to here may be the + * same expression (variable) as the one for + * charIndex. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pParaLevel will receive the level of the paragraph. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The index of the paragraph containing the specified position. + * + * @see ubidi_getProcessedLength + * @stable ICU 3.4 + */ +U_STABLE int32_t U_EXPORT2 +ubidi_getParagraph(const UBiDi *pBiDi, int32_t charIndex, int32_t *pParaStart, + int32_t *pParaLimit, UBiDiLevel *pParaLevel, + UErrorCode *pErrorCode); + +/** + * Get a paragraph, given the index of this paragraph. + * + * This function returns information about a paragraph.

+ * + * @param pBiDi is the paragraph UBiDi object. + * + * @param paraIndex is the number of the paragraph, in the + * range [0..ubidi_countParagraphs(pBiDi)-1]. + * + * @param pParaStart will receive the index of the first character of the + * paragraph in the text. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pParaLimit will receive the limit of the paragraph. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pParaLevel will receive the level of the paragraph. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +ubidi_getParagraphByIndex(const UBiDi *pBiDi, int32_t paraIndex, + int32_t *pParaStart, int32_t *pParaLimit, + UBiDiLevel *pParaLevel, UErrorCode *pErrorCode); + +/** + * Get the level for one character. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param charIndex the index of a character. It must be in the range + * [0..ubidi_getProcessedLength(pBiDi)]. + * + * @return The level for the character at charIndex (0 if charIndex is not + * in the valid range). + * + * @see UBiDiLevel + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_STABLE UBiDiLevel U_EXPORT2 +ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex); + +/** + * Get an array of levels for each character.

+ * + * Note that this function may allocate memory under some + * circumstances, unlike ubidi_getLevelAt(). + * + * @param pBiDi is the paragraph or line UBiDi object, whose + * text length must be strictly positive. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The levels array for the text, + * or NULL if an error occurs. + * + * @see UBiDiLevel + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_STABLE const UBiDiLevel * U_EXPORT2 +ubidi_getLevels(UBiDi *pBiDi, UErrorCode *pErrorCode); + +/** + * Get a logical run. + * This function returns information about a run and is used + * to retrieve runs in logical order.

+ * This is especially useful for line-breaking on a paragraph. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param logicalPosition is a logical position within the source text. + * + * @param pLogicalLimit will receive the limit of the corresponding run. + * The l-value that you point to here may be the + * same expression (variable) as the one for + * logicalPosition. + * This pointer can be NULL if this + * value is not necessary. + * + * @param pLevel will receive the level of the corresponding run. + * This pointer can be NULL if this + * value is not necessary. + * + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubidi_getLogicalRun(const UBiDi *pBiDi, int32_t logicalPosition, + int32_t *pLogicalLimit, UBiDiLevel *pLevel); + +/** + * Get the number of runs. + * This function may invoke the actual reordering on the + * UBiDi object, after ubidi_setPara() + * may have resolved only the levels of the text. Therefore, + * ubidi_countRuns() may have to allocate memory, + * and may fail doing so. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The number of runs. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubidi_countRuns(UBiDi *pBiDi, UErrorCode *pErrorCode); + +/** + * Get one run's logical start, length, and directionality, + * which can be 0 for LTR or 1 for RTL. + * In an RTL run, the character at the logical start is + * visually on the right of the displayed run. + * The length is the number of characters in the run.

+ * ubidi_countRuns() should be called + * before the runs are retrieved. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param runIndex is the number of the run in visual order, in the + * range [0..ubidi_countRuns(pBiDi)-1]. + * + * @param pLogicalStart is the first logical character index in the text. + * The pointer may be NULL if this index is not needed. + * + * @param pLength is the number of characters (at least one) in the run. + * The pointer may be NULL if this is not needed. + * + * @return the directionality of the run, + * UBIDI_LTR==0 or UBIDI_RTL==1, + * never UBIDI_MIXED, + * never UBIDI_NEUTRAL. + * + * @see ubidi_countRuns + * + * Example: + *

+ * \code
+ * int32_t i, count=ubidi_countRuns(pBiDi),
+ *         logicalStart, visualIndex=0, length;
+ * for(i=0; i0);
+ *     } else {
+ *         logicalStart+=length;  // logicalLimit
+ *         do { // RTL
+ *             show_char(text[--logicalStart], visualIndex++);
+ *         } while(--length>0);
+ *     }
+ * }
+ *\endcode
+ * 
+ * + * Note that in right-to-left runs, code like this places + * second surrogates before first ones (which is generally a bad idea) + * and combining characters before base characters. + *

+ * Use of ubidi_writeReordered(), optionally with the + * #UBIDI_KEEP_BASE_COMBINING option, can be considered in order + * to avoid these issues. + * @stable ICU 2.0 + */ +U_STABLE UBiDiDirection U_EXPORT2 +ubidi_getVisualRun(UBiDi *pBiDi, int32_t runIndex, + int32_t *pLogicalStart, int32_t *pLength); + +/** + * Get the visual position from a logical text position. + * If such a mapping is used many times on the same + * UBiDi object, then calling + * ubidi_getLogicalMap() is more efficient.

+ * + * The value returned may be #UBIDI_MAP_NOWHERE if there is no + * visual position because the corresponding text character is a Bidi control + * removed from output by the option #UBIDI_OPTION_REMOVE_CONTROLS. + *

+ * When the visual output is altered by using options of + * ubidi_writeReordered() such as UBIDI_INSERT_LRM_FOR_NUMERIC, + * UBIDI_KEEP_BASE_COMBINING, UBIDI_OUTPUT_REVERSE, + * UBIDI_REMOVE_BIDI_CONTROLS, the visual position returned may not + * be correct. It is advised to use, when possible, reordering options + * such as UBIDI_OPTION_INSERT_MARKS and UBIDI_OPTION_REMOVE_CONTROLS. + *

+ * Note that in right-to-left runs, this mapping places + * second surrogates before first ones (which is generally a bad idea) + * and combining characters before base characters. + * Use of ubidi_writeReordered(), optionally with the + * #UBIDI_KEEP_BASE_COMBINING option can be considered instead + * of using the mapping, in order to avoid these issues. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param logicalIndex is the index of a character in the text. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The visual position of this character. + * + * @see ubidi_getLogicalMap + * @see ubidi_getLogicalIndex + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubidi_getVisualIndex(UBiDi *pBiDi, int32_t logicalIndex, UErrorCode *pErrorCode); + +/** + * Get the logical text position from a visual position. + * If such a mapping is used many times on the same + * UBiDi object, then calling + * ubidi_getVisualMap() is more efficient.

+ * + * The value returned may be #UBIDI_MAP_NOWHERE if there is no + * logical position because the corresponding text character is a Bidi mark + * inserted in the output by option #UBIDI_OPTION_INSERT_MARKS. + *

+ * This is the inverse function to ubidi_getVisualIndex(). + *

+ * When the visual output is altered by using options of + * ubidi_writeReordered() such as UBIDI_INSERT_LRM_FOR_NUMERIC, + * UBIDI_KEEP_BASE_COMBINING, UBIDI_OUTPUT_REVERSE, + * UBIDI_REMOVE_BIDI_CONTROLS, the logical position returned may not + * be correct. It is advised to use, when possible, reordering options + * such as UBIDI_OPTION_INSERT_MARKS and UBIDI_OPTION_REMOVE_CONTROLS. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param visualIndex is the visual position of a character. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The index of this character in the text. + * + * @see ubidi_getVisualMap + * @see ubidi_getVisualIndex + * @see ubidi_getResultLength + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubidi_getLogicalIndex(UBiDi *pBiDi, int32_t visualIndex, UErrorCode *pErrorCode); + +/** + * Get a logical-to-visual index map (array) for the characters in the UBiDi + * (paragraph or line) object. + *

+ * Some values in the map may be #UBIDI_MAP_NOWHERE if the + * corresponding text characters are Bidi controls removed from the visual + * output by the option #UBIDI_OPTION_REMOVE_CONTROLS. + *

+ * When the visual output is altered by using options of + * ubidi_writeReordered() such as UBIDI_INSERT_LRM_FOR_NUMERIC, + * UBIDI_KEEP_BASE_COMBINING, UBIDI_OUTPUT_REVERSE, + * UBIDI_REMOVE_BIDI_CONTROLS, the visual positions returned may not + * be correct. It is advised to use, when possible, reordering options + * such as UBIDI_OPTION_INSERT_MARKS and UBIDI_OPTION_REMOVE_CONTROLS. + *

+ * Note that in right-to-left runs, this mapping places + * second surrogates before first ones (which is generally a bad idea) + * and combining characters before base characters. + * Use of ubidi_writeReordered(), optionally with the + * #UBIDI_KEEP_BASE_COMBINING option can be considered instead + * of using the mapping, in order to avoid these issues. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param indexMap is a pointer to an array of ubidi_getProcessedLength() + * indexes which will reflect the reordering of the characters. + * If option #UBIDI_OPTION_INSERT_MARKS is set, the number + * of elements allocated in indexMap must be no less than + * ubidi_getResultLength(). + * The array does not need to be initialized.

+ * The index map will result in indexMap[logicalIndex]==visualIndex. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @see ubidi_getVisualMap + * @see ubidi_getVisualIndex + * @see ubidi_getProcessedLength + * @see ubidi_getResultLength + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubidi_getLogicalMap(UBiDi *pBiDi, int32_t *indexMap, UErrorCode *pErrorCode); + +/** + * Get a visual-to-logical index map (array) for the characters in the UBiDi + * (paragraph or line) object. + *

+ * Some values in the map may be #UBIDI_MAP_NOWHERE if the + * corresponding text characters are Bidi marks inserted in the visual output + * by the option #UBIDI_OPTION_INSERT_MARKS. + *

+ * When the visual output is altered by using options of + * ubidi_writeReordered() such as UBIDI_INSERT_LRM_FOR_NUMERIC, + * UBIDI_KEEP_BASE_COMBINING, UBIDI_OUTPUT_REVERSE, + * UBIDI_REMOVE_BIDI_CONTROLS, the logical positions returned may not + * be correct. It is advised to use, when possible, reordering options + * such as UBIDI_OPTION_INSERT_MARKS and UBIDI_OPTION_REMOVE_CONTROLS. + * + * @param pBiDi is the paragraph or line UBiDi object. + * + * @param indexMap is a pointer to an array of ubidi_getResultLength() + * indexes which will reflect the reordering of the characters. + * If option #UBIDI_OPTION_REMOVE_CONTROLS is set, the number + * of elements allocated in indexMap must be no less than + * ubidi_getProcessedLength(). + * The array does not need to be initialized.

+ * The index map will result in indexMap[visualIndex]==logicalIndex. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @see ubidi_getLogicalMap + * @see ubidi_getLogicalIndex + * @see ubidi_getProcessedLength + * @see ubidi_getResultLength + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubidi_getVisualMap(UBiDi *pBiDi, int32_t *indexMap, UErrorCode *pErrorCode); + +/** + * This is a convenience function that does not use a UBiDi object. + * It is intended to be used for when an application has determined the levels + * of objects (character sequences) and just needs to have them reordered (L2). + * This is equivalent to using ubidi_getLogicalMap() on a + * UBiDi object. + * + * @param levels is an array with length levels that have been determined by + * the application. + * + * @param length is the number of levels in the array, or, semantically, + * the number of objects to be reordered. + * It must be length>0. + * + * @param indexMap is a pointer to an array of length + * indexes which will reflect the reordering of the characters. + * The array does not need to be initialized.

+ * The index map will result in indexMap[logicalIndex]==visualIndex. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubidi_reorderLogical(const UBiDiLevel *levels, int32_t length, int32_t *indexMap); + +/** + * This is a convenience function that does not use a UBiDi object. + * It is intended to be used for when an application has determined the levels + * of objects (character sequences) and just needs to have them reordered (L2). + * This is equivalent to using ubidi_getVisualMap() on a + * UBiDi object. + * + * @param levels is an array with length levels that have been determined by + * the application. + * + * @param length is the number of levels in the array, or, semantically, + * the number of objects to be reordered. + * It must be length>0. + * + * @param indexMap is a pointer to an array of length + * indexes which will reflect the reordering of the characters. + * The array does not need to be initialized.

+ * The index map will result in indexMap[visualIndex]==logicalIndex. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubidi_reorderVisual(const UBiDiLevel *levels, int32_t length, int32_t *indexMap); + +/** + * Invert an index map. + * The index mapping of the first map is inverted and written to + * the second one. + * + * @param srcMap is an array with length elements + * which defines the original mapping from a source array containing + * length elements to a destination array. + * Some elements of the source array may have no mapping in the + * destination array. In that case, their value will be + * the special value UBIDI_MAP_NOWHERE. + * All elements must be >=0 or equal to UBIDI_MAP_NOWHERE. + * Some elements may have a value >= length, if the + * destination array has more elements than the source array. + * There must be no duplicate indexes (two or more elements with the + * same value except UBIDI_MAP_NOWHERE). + * + * @param destMap is an array with a number of elements equal to 1 + the highest + * value in srcMap. + * destMap will be filled with the inverse mapping. + * If element with index i in srcMap has a value k different + * from UBIDI_MAP_NOWHERE, this means that element i of + * the source array maps to element k in the destination array. + * The inverse map will have value i in its k-th element. + * For all elements of the destination array which do not map to + * an element in the source array, the corresponding element in the + * inverse map will have a value equal to UBIDI_MAP_NOWHERE. + * + * @param length is the length of each array. + * @see UBIDI_MAP_NOWHERE + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubidi_invertMap(const int32_t *srcMap, int32_t *destMap, int32_t length); + +/** option flags for ubidi_writeReordered() */ + +/** + * option bit for ubidi_writeReordered(): + * keep combining characters after their base characters in RTL runs + * + * @see ubidi_writeReordered + * @stable ICU 2.0 + */ +#define UBIDI_KEEP_BASE_COMBINING 1 + +/** + * option bit for ubidi_writeReordered(): + * replace characters with the "mirrored" property in RTL runs + * by their mirror-image mappings + * + * @see ubidi_writeReordered + * @stable ICU 2.0 + */ +#define UBIDI_DO_MIRRORING 2 + +/** + * option bit for ubidi_writeReordered(): + * surround the run with LRMs if necessary; + * this is part of the approximate "inverse Bidi" algorithm + * + *

This option does not imply corresponding adjustment of the index + * mappings.

+ * + * @see ubidi_setInverse + * @see ubidi_writeReordered + * @stable ICU 2.0 + */ +#define UBIDI_INSERT_LRM_FOR_NUMERIC 4 + +/** + * option bit for ubidi_writeReordered(): + * remove Bidi control characters + * (this does not affect #UBIDI_INSERT_LRM_FOR_NUMERIC) + * + *

This option does not imply corresponding adjustment of the index + * mappings.

+ * + * @see ubidi_writeReordered + * @stable ICU 2.0 + */ +#define UBIDI_REMOVE_BIDI_CONTROLS 8 + +/** + * option bit for ubidi_writeReordered(): + * write the output in reverse order + * + *

This has the same effect as calling ubidi_writeReordered() + * first without this option, and then calling + * ubidi_writeReverse() without mirroring. + * Doing this in the same step is faster and avoids a temporary buffer. + * An example for using this option is output to a character terminal that + * is designed for RTL scripts and stores text in reverse order.

+ * + * @see ubidi_writeReordered + * @stable ICU 2.0 + */ +#define UBIDI_OUTPUT_REVERSE 16 + +/** + * Get the length of the source text processed by the last call to + * ubidi_setPara(). This length may be different from the length + * of the source text if option #UBIDI_OPTION_STREAMING + * has been set. + *
+ * Note that whenever the length of the text affects the execution or the + * result of a function, it is the processed length which must be considered, + * except for ubidi_setPara (which receives unprocessed source + * text) and ubidi_getLength (which returns the original length + * of the source text).
+ * In particular, the processed length is the one to consider in the following + * cases: + *
    + *
  • maximum value of the limit argument of + * ubidi_setLine
  • + *
  • maximum value of the charIndex argument of + * ubidi_getParagraph
  • + *
  • maximum value of the charIndex argument of + * ubidi_getLevelAt
  • + *
  • number of elements in the array returned by ubidi_getLevels
  • + *
  • maximum value of the logicalStart argument of + * ubidi_getLogicalRun
  • + *
  • maximum value of the logicalIndex argument of + * ubidi_getVisualIndex
  • + *
  • number of elements filled in the *indexMap argument of + * ubidi_getLogicalMap
  • + *
  • length of text processed by ubidi_writeReordered
  • + *
+ * + * @param pBiDi is the paragraph UBiDi object. + * + * @return The length of the part of the source text processed by + * the last call to ubidi_setPara. + * @see ubidi_setPara + * @see UBIDI_OPTION_STREAMING + * @stable ICU 3.6 + */ +U_STABLE int32_t U_EXPORT2 +ubidi_getProcessedLength(const UBiDi *pBiDi); + +/** + * Get the length of the reordered text resulting from the last call to + * ubidi_setPara(). This length may be different from the length + * of the source text if option #UBIDI_OPTION_INSERT_MARKS + * or option #UBIDI_OPTION_REMOVE_CONTROLS has been set. + *
+ * This resulting length is the one to consider in the following cases: + *
    + *
  • maximum value of the visualIndex argument of + * ubidi_getLogicalIndex
  • + *
  • number of elements of the *indexMap argument of + * ubidi_getVisualMap
  • + *
+ * Note that this length stays identical to the source text length if + * Bidi marks are inserted or removed using option bits of + * ubidi_writeReordered, or if option + * #UBIDI_REORDER_INVERSE_NUMBERS_AS_L has been set. + * + * @param pBiDi is the paragraph UBiDi object. + * + * @return The length of the reordered text resulting from + * the last call to ubidi_setPara. + * @see ubidi_setPara + * @see UBIDI_OPTION_INSERT_MARKS + * @see UBIDI_OPTION_REMOVE_CONTROLS + * @stable ICU 3.6 + */ +U_STABLE int32_t U_EXPORT2 +ubidi_getResultLength(const UBiDi *pBiDi); + +U_CDECL_BEGIN +/** + * value returned by UBiDiClassCallback callbacks when + * there is no need to override the standard Bidi class for a given code point. + * @see UBiDiClassCallback + * @stable ICU 3.6 + */ +#define U_BIDI_CLASS_DEFAULT U_CHAR_DIRECTION_COUNT + +/** + * Callback type declaration for overriding default Bidi class values with + * custom ones. + *

Usually, the function pointer will be propagated to a UBiDi + * object by calling the ubidi_setClassCallback() function; + * then the callback will be invoked by the UBA implementation any time the + * class of a character is to be determined.

+ * + * @param context is a pointer to the callback private data. + * + * @param c is the code point to get a Bidi class for. + * + * @return The directional property / Bidi class for the given code point + * c if the default class has been overridden, or + * #U_BIDI_CLASS_DEFAULT if the standard Bidi class value + * for c is to be used. + * @see ubidi_setClassCallback + * @see ubidi_getClassCallback + * @stable ICU 3.6 + */ +typedef UCharDirection U_CALLCONV +UBiDiClassCallback(const void *context, UChar32 c); + +U_CDECL_END + +/** + * Retrieve the Bidi class for a given code point. + *

If a #UBiDiClassCallback callback is defined and returns a + * value other than #U_BIDI_CLASS_DEFAULT, that value is used; + * otherwise the default class determination mechanism is invoked.

+ * + * @param pBiDi is the paragraph UBiDi object. + * + * @param c is the code point whose Bidi class must be retrieved. + * + * @return The Bidi class for character c based + * on the given pBiDi instance. + * @see UBiDiClassCallback + * @stable ICU 3.6 + */ +U_STABLE UCharDirection U_EXPORT2 +ubidi_getCustomizedClass(UBiDi *pBiDi, UChar32 c); + +/** + * Set the callback function and callback data used by the UBA + * implementation for Bidi class determination. + *

This may be useful for assigning Bidi classes to PUA characters, or + * for special application needs. For instance, an application may want to + * handle all spaces like L or R characters (according to the base direction) + * when creating the visual ordering of logical lines which are part of a report + * organized in columns: there should not be interaction between adjacent + * cells.

+ * + * @param pBiDi is the paragraph UBiDi object. + * + * @param newFn is the new callback function pointer. + * + * @param newContext is the new callback context pointer. This can be NULL. + * + * @param oldFn fillin: Returns the old callback function pointer. This can be + * NULL. + * + * @param oldContext fillin: Returns the old callback's context. This can be + * NULL. + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @see ubidi_getClassCallback + * @stable ICU 3.6 + */ +U_STABLE void U_EXPORT2 +ubidi_setClassCallback(UBiDi *pBiDi, UBiDiClassCallback *newFn, + const void *newContext, UBiDiClassCallback **oldFn, + const void **oldContext, UErrorCode *pErrorCode); + +/** + * Get the current callback function used for Bidi class determination. + * + * @param pBiDi is the paragraph UBiDi object. + * + * @param fn fillin: Returns the callback function pointer. + * + * @param context fillin: Returns the callback's private context. + * + * @see ubidi_setClassCallback + * @stable ICU 3.6 + */ +U_STABLE void U_EXPORT2 +ubidi_getClassCallback(UBiDi *pBiDi, UBiDiClassCallback **fn, const void **context); + +/** + * Take a UBiDi object containing the reordering + * information for a piece of text (one or more paragraphs) set by + * ubidi_setPara() or for a line of text set by + * ubidi_setLine() and write a reordered string to the + * destination buffer. + * + * This function preserves the integrity of characters with multiple + * code units and (optionally) combining characters. + * Characters in RTL runs can be replaced by mirror-image characters + * in the destination buffer. Note that "real" mirroring has + * to be done in a rendering engine by glyph selection + * and that for many "mirrored" characters there are no + * Unicode characters as mirror-image equivalents. + * There are also options to insert or remove Bidi control + * characters; see the description of the destSize + * and options parameters and of the option bit flags. + * + * @param pBiDi A pointer to a UBiDi object that + * is set by ubidi_setPara() or + * ubidi_setLine() and contains the reordering + * information for the text that it was defined for, + * as well as a pointer to that text.

+ * The text was aliased (only the pointer was stored + * without copying the contents) and must not have been modified + * since the ubidi_setPara() call. + * + * @param dest A pointer to where the reordered text is to be copied. + * The source text and dest[destSize] + * must not overlap. + * + * @param destSize The size of the dest buffer, + * in number of UChars. + * If the UBIDI_INSERT_LRM_FOR_NUMERIC + * option is set, then the destination length could be + * as large as + * ubidi_getLength(pBiDi)+2*ubidi_countRuns(pBiDi). + * If the UBIDI_REMOVE_BIDI_CONTROLS option + * is set, then the destination length may be less than + * ubidi_getLength(pBiDi). + * If none of these options is set, then the destination length + * will be exactly ubidi_getProcessedLength(pBiDi). + * + * @param options A bit set of options for the reordering that control + * how the reordered text is written. + * The options include mirroring the characters on a code + * point basis and inserting LRM characters, which is used + * especially for transforming visually stored text + * to logically stored text (although this is still an + * imperfect implementation of an "inverse Bidi" algorithm + * because it uses the "forward Bidi" algorithm at its core). + * The available options are: + * #UBIDI_DO_MIRRORING, + * #UBIDI_INSERT_LRM_FOR_NUMERIC, + * #UBIDI_KEEP_BASE_COMBINING, + * #UBIDI_OUTPUT_REVERSE, + * #UBIDI_REMOVE_BIDI_CONTROLS + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The length of the output string. + * + * @see ubidi_getProcessedLength + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubidi_writeReordered(UBiDi *pBiDi, + UChar *dest, int32_t destSize, + uint16_t options, + UErrorCode *pErrorCode); + +/** + * Reverse a Right-To-Left run of Unicode text. + * + * This function preserves the integrity of characters with multiple + * code units and (optionally) combining characters. + * Characters can be replaced by mirror-image characters + * in the destination buffer. Note that "real" mirroring has + * to be done in a rendering engine by glyph selection + * and that for many "mirrored" characters there are no + * Unicode characters as mirror-image equivalents. + * There are also options to insert or remove Bidi control + * characters. + * + * This function is the implementation for reversing RTL runs as part + * of ubidi_writeReordered(). For detailed descriptions + * of the parameters, see there. + * Since no Bidi controls are inserted here, the output string length + * will never exceed srcLength. + * + * @see ubidi_writeReordered + * + * @param src A pointer to the RTL run text. + * + * @param srcLength The length of the RTL run. + * + * @param dest A pointer to where the reordered text is to be copied. + * src[srcLength] and dest[destSize] + * must not overlap. + * + * @param destSize The size of the dest buffer, + * in number of UChars. + * If the UBIDI_REMOVE_BIDI_CONTROLS option + * is set, then the destination length may be less than + * srcLength. + * If this option is not set, then the destination length + * will be exactly srcLength. + * + * @param options A bit set of options for the reordering that control + * how the reordered text is written. + * See the options parameter in ubidi_writeReordered(). + * + * @param pErrorCode must be a valid pointer to an error code value. + * + * @return The length of the output string. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubidi_writeReverse(const UChar *src, int32_t srcLength, + UChar *dest, int32_t destSize, + uint16_t options, + UErrorCode *pErrorCode); + +/*#define BIDI_SAMPLE_CODE*/ +/*@}*/ + +#endif + +// stringtriebuilder.h +/* +******************************************************************************* +* Copyright (C) 2010-2012,2014, International Business Machines +* Corporation and others. All Rights Reserved. +******************************************************************************* +* file name: stringtriebuilder.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2010dec24 +* created by: Markus W. Scherer +*/ + +#ifndef __STRINGTRIEBUILDER_H__ +#define __STRINGTRIEBUILDER_H__ + + +/** + * \file + * \brief C++ API: Builder API for trie builders + */ + +// Forward declaration. +struct UHashtable; +typedef struct UHashtable UHashtable; + +/** + * Build options for BytesTrieBuilder and CharsTrieBuilder. + * @stable ICU 4.8 + */ +enum UStringTrieBuildOption { + /** + * Builds a trie quickly. + * @stable ICU 4.8 + */ + USTRINGTRIE_BUILD_FAST, + /** + * Builds a trie more slowly, attempting to generate + * a shorter but equivalent serialization. + * This build option also uses more memory. + * + * This option can be effective when many integer values are the same + * and string/byte sequence suffixes can be shared. + * Runtime speed is not expected to improve. + * @stable ICU 4.8 + */ + USTRINGTRIE_BUILD_SMALL +}; + + +#endif // __STRINGTRIEBUILDER_H__ + +// putil.h +/* +****************************************************************************** +* +* Copyright (C) 1997-2014, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* +* FILE NAME : putil.h +* +* Date Name Description +* 05/14/98 nos Creation (content moved here from utypes.h). +* 06/17/99 erm Added IEEE_754 +* 07/22/98 stephen Added IEEEremainder, max, min, trunc +* 08/13/98 stephen Added isNegativeInfinity, isPositiveInfinity +* 08/24/98 stephen Added longBitsFromDouble +* 03/02/99 stephen Removed openFile(). Added AS400 support. +* 04/15/99 stephen Converted to C +* 11/15/99 helena Integrated S/390 changes for IEEE support. +* 01/11/00 helena Added u_getVersion. +****************************************************************************** +*/ + +#ifndef PUTIL_H +#define PUTIL_H + + /** + * \file + * \brief C API: Platform Utilities + */ + +/*==========================================================================*/ +/* Platform utilities */ +/*==========================================================================*/ + +/** + * Platform utilities isolates the platform dependencies of the + * libarary. For each platform which this code is ported to, these + * functions may have to be re-implemented. + */ + + + +/** @} */ + +/** + * Convert char characters to UChar characters. + * This utility function is useful only for "invariant characters" + * that are encoded in the platform default encoding. + * They are a small, constant subset of the encoding and include + * just the latin letters, digits, and some punctuation. + * For details, see U_CHARSET_FAMILY. + * + * @param cs Input string, points to length + * character bytes from a subset of the platform encoding. + * @param us Output string, points to memory for length + * Unicode characters. + * @param length The number of characters to convert; this may + * include the terminating NUL. + * + * @see U_CHARSET_FAMILY + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +u_charsToUChars(const char *cs, UChar *us, int32_t length); + +/** + * Convert UChar characters to char characters. + * This utility function is useful only for "invariant characters" + * that can be encoded in the platform default encoding. + * They are a small, constant subset of the encoding and include + * just the latin letters, digits, and some punctuation. + * For details, see U_CHARSET_FAMILY. + * + * @param us Input string, points to length + * Unicode characters that can be encoded with the + * codepage-invariant subset of the platform encoding. + * @param cs Output string, points to memory for length + * character bytes. + * @param length The number of characters to convert; this may + * include the terminating NUL. + * + * @see U_CHARSET_FAMILY + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +u_UCharsToChars(const UChar *us, char *cs, int32_t length); + +#endif + +// ustring.h +/* +********************************************************************** +* Copyright (C) 1998-2014, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* +* File ustring.h +* +* Modification History: +* +* Date Name Description +* 12/07/98 bertrand Creation. +****************************************************************************** +*/ + +#ifndef USTRING_H +#define USTRING_H + + +/** + * \def UBRK_TYPEDEF_UBREAK_ITERATOR + * @internal + */ + +#ifndef UBRK_TYPEDEF_UBREAK_ITERATOR +# define UBRK_TYPEDEF_UBREAK_ITERATOR +/** Simple declaration for u_strToTitle() to avoid including unicode/ubrk.h. @stable ICU 2.1*/ + typedef struct UBreakIterator UBreakIterator; +#endif + +/** + * \file + * \brief C API: Unicode string handling functions + * + * These C API functions provide general Unicode string handling. + * + * Some functions are equivalent in name, signature, and behavior to the ANSI C + * functions. (For example, they do not check for bad arguments like NULL string pointers.) + * In some cases, only the thread-safe variant of such a function is implemented here + * (see u_strtok_r()). + * + * Other functions provide more Unicode-specific functionality like locale-specific + * upper/lower-casing and string comparison in code point order. + * + * ICU uses 16-bit Unicode (UTF-16) in the form of arrays of UChar code units. + * UTF-16 encodes each Unicode code point with either one or two UChar code units. + * (This is the default form of Unicode, and a forward-compatible extension of the original, + * fixed-width form that was known as UCS-2. UTF-16 superseded UCS-2 with Unicode 2.0 + * in 1996.) + * + * Some APIs accept a 32-bit UChar32 value for a single code point. + * + * ICU also handles 16-bit Unicode text with unpaired surrogates. + * Such text is not well-formed UTF-16. + * Code-point-related functions treat unpaired surrogates as surrogate code points, + * i.e., as separate units. + * + * Although UTF-16 is a variable-width encoding form (like some legacy multi-byte encodings), + * it is much more efficient even for random access because the code unit values + * for single-unit characters vs. lead units vs. trail units are completely disjoint. + * This means that it is easy to determine character (code point) boundaries from + * random offsets in the string. + * + * Unicode (UTF-16) string processing is optimized for the single-unit case. + * Although it is important to support supplementary characters + * (which use pairs of lead/trail code units called "surrogates"), + * their occurrence is rare. Almost all characters in modern use require only + * a single UChar code unit (i.e., their code point values are <=0xffff). + * + * For more details see the User Guide Strings chapter (http://icu-project.org/userguide/strings.html). + * For a discussion of the handling of unpaired surrogates see also + * Jitterbug 2145 and its icu mailing list proposal on 2002-sep-18. + */ + +/** + * \defgroup ustring_ustrlen String Length + * \ingroup ustring_strlen + */ +/*@{*/ +/** + * Determine the length of an array of UChar. + * + * @param s The array of UChars, NULL (U+0000) terminated. + * @return The number of UChars in chars, minus the terminator. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strlen(const UChar *s); +/*@}*/ + +/** + * Count Unicode code points in the length UChar code units of the string. + * A code point may occupy either one or two UChar code units. + * Counting code points involves reading all code units. + * + * This functions is basically the inverse of the U16_FWD_N() macro (see utf.h). + * + * @param s The input string. + * @param length The number of UChar code units to be checked, or -1 to count all + * code points before the first NUL (U+0000). + * @return The number of code points in the specified code units. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_countChar32(const UChar *s, int32_t length); + +/** + * Check if the string contains more Unicode code points than a certain number. + * This is more efficient than counting all code points in the entire string + * and comparing that number with a threshold. + * This function may not need to scan the string at all if the length is known + * (not -1 for NUL-termination) and falls within a certain range, and + * never needs to count more than 'number+1' code points. + * Logically equivalent to (u_countChar32(s, length)>number). + * A Unicode code point may occupy either one or two UChar code units. + * + * @param s The input string. + * @param length The length of the string, or -1 if it is NUL-terminated. + * @param number The number of code points in the string is compared against + * the 'number' parameter. + * @return Boolean value for whether the string contains more Unicode code points + * than 'number'. Same as (u_countChar32(s, length)>number). + * @stable ICU 2.4 + */ +U_STABLE UBool U_EXPORT2 +u_strHasMoreChar32Than(const UChar *s, int32_t length, int32_t number); + +/** + * Concatenate two ustrings. Appends a copy of src, + * including the null terminator, to dst. The initial copied + * character from src overwrites the null terminator in dst. + * + * @param dst The destination string. + * @param src The source string. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_STABLE UChar* U_EXPORT2 +u_strcat(UChar *dst, + const UChar *src); + +/** + * Concatenate two ustrings. + * Appends at most n characters from src to dst. + * Adds a terminating NUL. + * If src is too long, then only n-1 characters will be copied + * before the terminating NUL. + * If n<=0 then dst is not modified. + * + * @param dst The destination string. + * @param src The source string (can be NULL/invalid if n<=0). + * @param n The maximum number of characters to append; no-op if <=0. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_STABLE UChar* U_EXPORT2 +u_strncat(UChar *dst, + const UChar *src, + int32_t n); + +/** + * Find the first occurrence of a substring in a string. + * The substring is found at code point boundaries. + * That means that if the substring begins with + * a trail surrogate or ends with a lead surrogate, + * then it is found only if these surrogates stand alone in the text. + * Otherwise, the substring edge units would be matched against + * halves of surrogate pairs. + * + * @param s The string to search (NUL-terminated). + * @param substring The substring to find (NUL-terminated). + * @return A pointer to the first occurrence of substring in s, + * or s itself if the substring is empty, + * or NULL if substring is not in s. + * @stable ICU 2.0 + * + * @see u_strrstr + * @see u_strFindFirst + * @see u_strFindLast + */ +U_STABLE UChar * U_EXPORT2 +u_strstr(const UChar *s, const UChar *substring); + +/** + * Find the first occurrence of a substring in a string. + * The substring is found at code point boundaries. + * That means that if the substring begins with + * a trail surrogate or ends with a lead surrogate, + * then it is found only if these surrogates stand alone in the text. + * Otherwise, the substring edge units would be matched against + * halves of surrogate pairs. + * + * @param s The string to search. + * @param length The length of s (number of UChars), or -1 if it is NUL-terminated. + * @param substring The substring to find (NUL-terminated). + * @param subLength The length of substring (number of UChars), or -1 if it is NUL-terminated. + * @return A pointer to the first occurrence of substring in s, + * or s itself if the substring is empty, + * or NULL if substring is not in s. + * @stable ICU 2.4 + * + * @see u_strstr + * @see u_strFindLast + */ +U_STABLE UChar * U_EXPORT2 +u_strFindFirst(const UChar *s, int32_t length, const UChar *substring, int32_t subLength); + +/** + * Find the first occurrence of a BMP code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (NUL-terminated). + * @param c The BMP code point to find. + * @return A pointer to the first occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.0 + * + * @see u_strchr32 + * @see u_memchr + * @see u_strstr + * @see u_strFindFirst + */ +U_STABLE UChar * U_EXPORT2 +u_strchr(const UChar *s, UChar c); + +/** + * Find the first occurrence of a code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (NUL-terminated). + * @param c The code point to find. + * @return A pointer to the first occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.0 + * + * @see u_strchr + * @see u_memchr32 + * @see u_strstr + * @see u_strFindFirst + */ +U_STABLE UChar * U_EXPORT2 +u_strchr32(const UChar *s, UChar32 c); + +/** + * Find the last occurrence of a substring in a string. + * The substring is found at code point boundaries. + * That means that if the substring begins with + * a trail surrogate or ends with a lead surrogate, + * then it is found only if these surrogates stand alone in the text. + * Otherwise, the substring edge units would be matched against + * halves of surrogate pairs. + * + * @param s The string to search (NUL-terminated). + * @param substring The substring to find (NUL-terminated). + * @return A pointer to the last occurrence of substring in s, + * or s itself if the substring is empty, + * or NULL if substring is not in s. + * @stable ICU 2.4 + * + * @see u_strstr + * @see u_strFindFirst + * @see u_strFindLast + */ +U_STABLE UChar * U_EXPORT2 +u_strrstr(const UChar *s, const UChar *substring); + +/** + * Find the last occurrence of a substring in a string. + * The substring is found at code point boundaries. + * That means that if the substring begins with + * a trail surrogate or ends with a lead surrogate, + * then it is found only if these surrogates stand alone in the text. + * Otherwise, the substring edge units would be matched against + * halves of surrogate pairs. + * + * @param s The string to search. + * @param length The length of s (number of UChars), or -1 if it is NUL-terminated. + * @param substring The substring to find (NUL-terminated). + * @param subLength The length of substring (number of UChars), or -1 if it is NUL-terminated. + * @return A pointer to the last occurrence of substring in s, + * or s itself if the substring is empty, + * or NULL if substring is not in s. + * @stable ICU 2.4 + * + * @see u_strstr + * @see u_strFindLast + */ +U_STABLE UChar * U_EXPORT2 +u_strFindLast(const UChar *s, int32_t length, const UChar *substring, int32_t subLength); + +/** + * Find the last occurrence of a BMP code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (NUL-terminated). + * @param c The BMP code point to find. + * @return A pointer to the last occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.4 + * + * @see u_strrchr32 + * @see u_memrchr + * @see u_strrstr + * @see u_strFindLast + */ +U_STABLE UChar * U_EXPORT2 +u_strrchr(const UChar *s, UChar c); + +/** + * Find the last occurrence of a code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (NUL-terminated). + * @param c The code point to find. + * @return A pointer to the last occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.4 + * + * @see u_strrchr + * @see u_memchr32 + * @see u_strrstr + * @see u_strFindLast + */ +U_STABLE UChar * U_EXPORT2 +u_strrchr32(const UChar *s, UChar32 c); + +/** + * Locates the first occurrence in the string string of any of the characters + * in the string matchSet. + * Works just like C's strpbrk but with Unicode. + * + * @param string The string in which to search, NUL-terminated. + * @param matchSet A NUL-terminated string defining a set of code points + * for which to search in the text string. + * @return A pointer to the character in string that matches one of the + * characters in matchSet, or NULL if no such character is found. + * @stable ICU 2.0 + */ +U_STABLE UChar * U_EXPORT2 +u_strpbrk(const UChar *string, const UChar *matchSet); + +/** + * Returns the number of consecutive characters in string, + * beginning with the first, that do not occur somewhere in matchSet. + * Works just like C's strcspn but with Unicode. + * + * @param string The string in which to search, NUL-terminated. + * @param matchSet A NUL-terminated string defining a set of code points + * for which to search in the text string. + * @return The number of initial characters in string that do not + * occur in matchSet. + * @see u_strspn + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strcspn(const UChar *string, const UChar *matchSet); + +/** + * Returns the number of consecutive characters in string, + * beginning with the first, that occur somewhere in matchSet. + * Works just like C's strspn but with Unicode. + * + * @param string The string in which to search, NUL-terminated. + * @param matchSet A NUL-terminated string defining a set of code points + * for which to search in the text string. + * @return The number of initial characters in string that do + * occur in matchSet. + * @see u_strcspn + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strspn(const UChar *string, const UChar *matchSet); + +/** + * The string tokenizer API allows an application to break a string into + * tokens. Unlike strtok(), the saveState (the current pointer within the + * original string) is maintained in saveState. In the first call, the + * argument src is a pointer to the string. In subsequent calls to + * return successive tokens of that string, src must be specified as + * NULL. The value saveState is set by this function to maintain the + * function's position within the string, and on each subsequent call + * you must give this argument the same variable. This function does + * handle surrogate pairs. This function is similar to the strtok_r() + * the POSIX Threads Extension (1003.1c-1995) version. + * + * @param src String containing token(s). This string will be modified. + * After the first call to u_strtok_r(), this argument must + * be NULL to get to the next token. + * @param delim Set of delimiter characters (Unicode code points). + * @param saveState The current pointer within the original string, + * which is set by this function. The saveState + * parameter should the address of a local variable of type + * UChar *. (i.e. defined "Uhar *myLocalSaveState" and use + * &myLocalSaveState for this parameter). + * @return A pointer to the next token found in src, or NULL + * when there are no more tokens. + * @stable ICU 2.0 + */ +U_STABLE UChar * U_EXPORT2 +u_strtok_r(UChar *src, + const UChar *delim, + UChar **saveState); + +/** + * Compare two Unicode strings for bitwise equality (code unit order). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @return 0 if s1 and s2 are bitwise equal; a negative + * value if s1 is bitwise less than s2,; a positive + * value if s1 is bitwise greater than s2. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strcmp(const UChar *s1, + const UChar *s2); + +/** + * Compare two Unicode strings in code point order. + * See u_strCompare for details. + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @return a negative/zero/positive integer corresponding to whether + * the first string is less than/equal to/greater than the second one + * in code point order + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strcmpCodePointOrder(const UChar *s1, const UChar *s2); + +/** + * Compare two Unicode strings (binary order). + * + * The comparison can be done in code unit order or in code point order. + * They differ only in UTF-16 when + * comparing supplementary code points (U+10000..U+10ffff) + * to BMP code points near the end of the BMP (i.e., U+e000..U+ffff). + * In code unit order, high BMP code points sort after supplementary code points + * because they are stored as pairs of surrogates which are at U+d800..U+dfff. + * + * This functions works with strings of different explicitly specified lengths + * unlike the ANSI C-like u_strcmp() and u_memcmp() etc. + * NUL-terminated strings are possible with length arguments of -1. + * + * @param s1 First source string. + * @param length1 Length of first source string, or -1 if NUL-terminated. + * + * @param s2 Second source string. + * @param length2 Length of second source string, or -1 if NUL-terminated. + * + * @param codePointOrder Choose between code unit order (FALSE) + * and code point order (TRUE). + * + * @return <0 or 0 or >0 as usual for string comparisons + * + * @stable ICU 2.2 + */ +U_STABLE int32_t U_EXPORT2 +u_strCompare(const UChar *s1, int32_t length1, + const UChar *s2, int32_t length2, + UBool codePointOrder); + +/** + * Compare two Unicode strings (binary order) + * as presented by UCharIterator objects. + * Works otherwise just like u_strCompare(). + * + * Both iterators are reset to their start positions. + * When the function returns, it is undefined where the iterators + * have stopped. + * + * @param iter1 First source string iterator. + * @param iter2 Second source string iterator. + * @param codePointOrder Choose between code unit order (FALSE) + * and code point order (TRUE). + * + * @return <0 or 0 or >0 as usual for string comparisons + * + * @see u_strCompare + * + * @stable ICU 2.6 + */ +U_STABLE int32_t U_EXPORT2 +u_strCompareIter(UCharIterator *iter1, UCharIterator *iter2, UBool codePointOrder); + +#ifndef U_COMPARE_CODE_POINT_ORDER +/* see also unistr.h and unorm.h */ +/** + * Option bit for u_strCaseCompare, u_strcasecmp, unorm_compare, etc: + * Compare strings in code point order instead of code unit order. + * @stable ICU 2.2 + */ +#define U_COMPARE_CODE_POINT_ORDER 0x8000 +#endif + +/** + * Compare two strings case-insensitively using full case folding. + * This is equivalent to + * u_strCompare(u_strFoldCase(s1, options), + * u_strFoldCase(s2, options), + * (options&U_COMPARE_CODE_POINT_ORDER)!=0). + * + * The comparison can be done in UTF-16 code unit order or in code point order. + * They differ only when comparing supplementary code points (U+10000..U+10ffff) + * to BMP code points near the end of the BMP (i.e., U+e000..U+ffff). + * In code unit order, high BMP code points sort after supplementary code points + * because they are stored as pairs of surrogates which are at U+d800..U+dfff. + * + * This functions works with strings of different explicitly specified lengths + * unlike the ANSI C-like u_strcmp() and u_memcmp() etc. + * NUL-terminated strings are possible with length arguments of -1. + * + * @param s1 First source string. + * @param length1 Length of first source string, or -1 if NUL-terminated. + * + * @param s2 Second source string. + * @param length2 Length of second source string, or -1 if NUL-terminated. + * + * @param options A bit set of options: + * - U_FOLD_CASE_DEFAULT or 0 is used for default options: + * Comparison in code unit order with default case folding. + * + * - U_COMPARE_CODE_POINT_ORDER + * Set to choose code point order instead of code unit order + * (see u_strCompare for details). + * + * - U_FOLD_CASE_EXCLUDE_SPECIAL_I + * + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @return <0 or 0 or >0 as usual for string comparisons + * + * @stable ICU 2.2 + */ +U_STABLE int32_t U_EXPORT2 +u_strCaseCompare(const UChar *s1, int32_t length1, + const UChar *s2, int32_t length2, + uint32_t options, + UErrorCode *pErrorCode); + +/** + * Compare two ustrings for bitwise equality. + * Compares at most n characters. + * + * @param ucs1 A string to compare (can be NULL/invalid if n<=0). + * @param ucs2 A string to compare (can be NULL/invalid if n<=0). + * @param n The maximum number of characters to compare; always returns 0 if n<=0. + * @return 0 if s1 and s2 are bitwise equal; a negative + * value if s1 is bitwise less than s2; a positive + * value if s1 is bitwise greater than s2. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strncmp(const UChar *ucs1, + const UChar *ucs2, + int32_t n); + +/** + * Compare two Unicode strings in code point order. + * This is different in UTF-16 from u_strncmp() if supplementary characters are present. + * For details, see u_strCompare(). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @param n The maximum number of characters to compare. + * @return a negative/zero/positive integer corresponding to whether + * the first string is less than/equal to/greater than the second one + * in code point order + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strncmpCodePointOrder(const UChar *s1, const UChar *s2, int32_t n); + +/** + * Compare two strings case-insensitively using full case folding. + * This is equivalent to u_strcmp(u_strFoldCase(s1, options), u_strFoldCase(s2, options)). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @param options A bit set of options: + * - U_FOLD_CASE_DEFAULT or 0 is used for default options: + * Comparison in code unit order with default case folding. + * + * - U_COMPARE_CODE_POINT_ORDER + * Set to choose code point order instead of code unit order + * (see u_strCompare for details). + * + * - U_FOLD_CASE_EXCLUDE_SPECIAL_I + * + * @return A negative, zero, or positive integer indicating the comparison result. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strcasecmp(const UChar *s1, const UChar *s2, uint32_t options); + +/** + * Compare two strings case-insensitively using full case folding. + * This is equivalent to u_strcmp(u_strFoldCase(s1, at most n, options), + * u_strFoldCase(s2, at most n, options)). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @param n The maximum number of characters each string to case-fold and then compare. + * @param options A bit set of options: + * - U_FOLD_CASE_DEFAULT or 0 is used for default options: + * Comparison in code unit order with default case folding. + * + * - U_COMPARE_CODE_POINT_ORDER + * Set to choose code point order instead of code unit order + * (see u_strCompare for details). + * + * - U_FOLD_CASE_EXCLUDE_SPECIAL_I + * + * @return A negative, zero, or positive integer indicating the comparison result. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strncasecmp(const UChar *s1, const UChar *s2, int32_t n, uint32_t options); + +/** + * Compare two strings case-insensitively using full case folding. + * This is equivalent to u_strcmp(u_strFoldCase(s1, n, options), + * u_strFoldCase(s2, n, options)). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @param length The number of characters in each string to case-fold and then compare. + * @param options A bit set of options: + * - U_FOLD_CASE_DEFAULT or 0 is used for default options: + * Comparison in code unit order with default case folding. + * + * - U_COMPARE_CODE_POINT_ORDER + * Set to choose code point order instead of code unit order + * (see u_strCompare for details). + * + * - U_FOLD_CASE_EXCLUDE_SPECIAL_I + * + * @return A negative, zero, or positive integer indicating the comparison result. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_memcasecmp(const UChar *s1, const UChar *s2, int32_t length, uint32_t options); + +/** + * Copy a ustring. Adds a null terminator. + * + * @param dst The destination string. + * @param src The source string. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_STABLE UChar* U_EXPORT2 +u_strcpy(UChar *dst, + const UChar *src); + +/** + * Copy a ustring. + * Copies at most n characters. The result will be null terminated + * if the length of src is less than n. + * + * @param dst The destination string. + * @param src The source string (can be NULL/invalid if n<=0). + * @param n The maximum number of characters to copy; no-op if <=0. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_STABLE UChar* U_EXPORT2 +u_strncpy(UChar *dst, + const UChar *src, + int32_t n); + +#if !UCONFIG_NO_CONVERSION + +/** + * Copy a byte string encoded in the default codepage to a ustring. + * Adds a null terminator. + * Performs a host byte to UChar conversion + * + * @param dst The destination string. + * @param src The source string. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_STABLE UChar* U_EXPORT2 u_uastrcpy(UChar *dst, + const char *src ); + +/** + * Copy a byte string encoded in the default codepage to a ustring. + * Copies at most n characters. The result will be null terminated + * if the length of src is less than n. + * Performs a host byte to UChar conversion + * + * @param dst The destination string. + * @param src The source string. + * @param n The maximum number of characters to copy. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_STABLE UChar* U_EXPORT2 u_uastrncpy(UChar *dst, + const char *src, + int32_t n); + +/** + * Copy ustring to a byte string encoded in the default codepage. + * Adds a null terminator. + * Performs a UChar to host byte conversion + * + * @param dst The destination string. + * @param src The source string. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_STABLE char* U_EXPORT2 u_austrcpy(char *dst, + const UChar *src ); + +/** + * Copy ustring to a byte string encoded in the default codepage. + * Copies at most n characters. The result will be null terminated + * if the length of src is less than n. + * Performs a UChar to host byte conversion + * + * @param dst The destination string. + * @param src The source string. + * @param n The maximum number of characters to copy. + * @return A pointer to dst. + * @stable ICU 2.0 + */ +U_STABLE char* U_EXPORT2 u_austrncpy(char *dst, + const UChar *src, + int32_t n ); + +#endif + +/** + * Synonym for memcpy(), but with UChars only. + * @param dest The destination string + * @param src The source string (can be NULL/invalid if count<=0) + * @param count The number of characters to copy; no-op if <=0 + * @return A pointer to dest + * @stable ICU 2.0 + */ +U_STABLE UChar* U_EXPORT2 +u_memcpy(UChar *dest, const UChar *src, int32_t count); + +/** + * Synonym for memmove(), but with UChars only. + * @param dest The destination string + * @param src The source string (can be NULL/invalid if count<=0) + * @param count The number of characters to move; no-op if <=0 + * @return A pointer to dest + * @stable ICU 2.0 + */ +U_STABLE UChar* U_EXPORT2 +u_memmove(UChar *dest, const UChar *src, int32_t count); + +/** + * Initialize count characters of dest to c. + * + * @param dest The destination string. + * @param c The character to initialize the string. + * @param count The maximum number of characters to set. + * @return A pointer to dest. + * @stable ICU 2.0 + */ +U_STABLE UChar* U_EXPORT2 +u_memset(UChar *dest, UChar c, int32_t count); + +/** + * Compare the first count UChars of each buffer. + * + * @param buf1 The first string to compare. + * @param buf2 The second string to compare. + * @param count The maximum number of UChars to compare. + * @return When buf1 < buf2, a negative number is returned. + * When buf1 == buf2, 0 is returned. + * When buf1 > buf2, a positive number is returned. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_memcmp(const UChar *buf1, const UChar *buf2, int32_t count); + +/** + * Compare two Unicode strings in code point order. + * This is different in UTF-16 from u_memcmp() if supplementary characters are present. + * For details, see u_strCompare(). + * + * @param s1 A string to compare. + * @param s2 A string to compare. + * @param count The maximum number of characters to compare. + * @return a negative/zero/positive integer corresponding to whether + * the first string is less than/equal to/greater than the second one + * in code point order + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_memcmpCodePointOrder(const UChar *s1, const UChar *s2, int32_t count); + +/** + * Find the first occurrence of a BMP code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (contains count UChars). + * @param c The BMP code point to find. + * @param count The length of the string. + * @return A pointer to the first occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.0 + * + * @see u_strchr + * @see u_memchr32 + * @see u_strFindFirst + */ +U_STABLE UChar* U_EXPORT2 +u_memchr(const UChar *s, UChar c, int32_t count); + +/** + * Find the first occurrence of a code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (contains count UChars). + * @param c The code point to find. + * @param count The length of the string. + * @return A pointer to the first occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.0 + * + * @see u_strchr32 + * @see u_memchr + * @see u_strFindFirst + */ +U_STABLE UChar* U_EXPORT2 +u_memchr32(const UChar *s, UChar32 c, int32_t count); + +/** + * Find the last occurrence of a BMP code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (contains count UChars). + * @param c The BMP code point to find. + * @param count The length of the string. + * @return A pointer to the last occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.4 + * + * @see u_strrchr + * @see u_memrchr32 + * @see u_strFindLast + */ +U_STABLE UChar* U_EXPORT2 +u_memrchr(const UChar *s, UChar c, int32_t count); + +/** + * Find the last occurrence of a code point in a string. + * A surrogate code point is found only if its match in the text is not + * part of a surrogate pair. + * A NUL character is found at the string terminator. + * + * @param s The string to search (contains count UChars). + * @param c The code point to find. + * @param count The length of the string. + * @return A pointer to the last occurrence of c in s + * or NULL if c is not in s. + * @stable ICU 2.4 + * + * @see u_strrchr32 + * @see u_memrchr + * @see u_strFindLast + */ +U_STABLE UChar* U_EXPORT2 +u_memrchr32(const UChar *s, UChar32 c, int32_t count); + +/** + * Unicode String literals in C. + * We need one macro to declare a variable for the string + * and to statically preinitialize it if possible, + * and a second macro to dynamically intialize such a string variable if necessary. + * + * The macros are defined for maximum performance. + * They work only for strings that contain "invariant characters", i.e., + * only latin letters, digits, and some punctuation. + * See utypes.h for details. + * + * A pair of macros for a single string must be used with the same + * parameters. + * The string parameter must be a C string literal. + * The length of the string, not including the terminating + * NUL, must be specified as a constant. + * The U_STRING_DECL macro should be invoked exactly once for one + * such string variable before it is used. + * + * Usage: + *

+ *    U_STRING_DECL(ustringVar1, "Quick-Fox 2", 11);
+ *    U_STRING_DECL(ustringVar2, "jumps 5%", 8);
+ *    static UBool didInit=FALSE;
+ * 
+ *    int32_t function() {
+ *        if(!didInit) {
+ *            U_STRING_INIT(ustringVar1, "Quick-Fox 2", 11);
+ *            U_STRING_INIT(ustringVar2, "jumps 5%", 8);
+ *            didInit=TRUE;
+ *        }
+ *        return u_strcmp(ustringVar1, ustringVar2);
+ *    }
+ * 
+ * + * Note that the macros will NOT consistently work if their argument is another #define. + * The following will not work on all platforms, don't use it. + * + *
+ *     #define GLUCK "Mr. Gluck"
+ *     U_STRING_DECL(var, GLUCK, 9)
+ *     U_STRING_INIT(var, GLUCK, 9)
+ * 
+ * + * Instead, use the string literal "Mr. Gluck" as the argument to both macro + * calls. + * + * + * @stable ICU 2.0 + */ +#if defined(U_DECLARE_UTF16) +# define U_STRING_DECL(var, cs, length) static const UChar *var=(const UChar *)U_DECLARE_UTF16(cs) + /**@stable ICU 2.0 */ +# define U_STRING_INIT(var, cs, length) +#elif U_SIZEOF_WCHAR_T==U_SIZEOF_UCHAR && (U_CHARSET_FAMILY==U_ASCII_FAMILY || (U_SIZEOF_UCHAR == 2 && defined(U_WCHAR_IS_UTF16))) +# define U_STRING_DECL(var, cs, length) static const UChar var[(length)+1]=L ## cs + /**@stable ICU 2.0 */ +# define U_STRING_INIT(var, cs, length) +#elif U_SIZEOF_UCHAR==1 && U_CHARSET_FAMILY==U_ASCII_FAMILY +# define U_STRING_DECL(var, cs, length) static const UChar var[(length)+1]=cs + /**@stable ICU 2.0 */ +# define U_STRING_INIT(var, cs, length) +#else +# define U_STRING_DECL(var, cs, length) static UChar var[(length)+1] + /**@stable ICU 2.0 */ +# define U_STRING_INIT(var, cs, length) u_charsToUChars(cs, var, length+1) +#endif + +/** + * Unescape a string of characters and write the resulting + * Unicode characters to the destination buffer. The following escape + * sequences are recognized: + * + * \\uhhhh 4 hex digits; h in [0-9A-Fa-f] + * \\Uhhhhhhhh 8 hex digits + * \\xhh 1-2 hex digits + * \\x{h...} 1-8 hex digits + * \\ooo 1-3 octal digits; o in [0-7] + * \\cX control-X; X is masked with 0x1F + * + * as well as the standard ANSI C escapes: + * + * \\a => U+0007, \\b => U+0008, \\t => U+0009, \\n => U+000A, + * \\v => U+000B, \\f => U+000C, \\r => U+000D, \\e => U+001B, + * \\" => U+0022, \\' => U+0027, \\? => U+003F, \\\\ => U+005C + * + * Anything else following a backslash is generically escaped. For + * example, "[a\\-z]" returns "[a-z]". + * + * If an escape sequence is ill-formed, this method returns an empty + * string. An example of an ill-formed sequence is "\\u" followed by + * fewer than 4 hex digits. + * + * The above characters are recognized in the compiler's codepage, + * that is, they are coded as 'u', '\\', etc. Characters that are + * not parts of escape sequences are converted using u_charsToUChars(). + * + * This function is similar to UnicodeString::unescape() but not + * identical to it. The latter takes a source UnicodeString, so it + * does escape recognition but no conversion. + * + * @param src a zero-terminated string of invariant characters + * @param dest pointer to buffer to receive converted and unescaped + * text and, if there is room, a zero terminator. May be NULL for + * preflighting, in which case no UChars will be written, but the + * return value will still be valid. On error, an empty string is + * stored here (if possible). + * @param destCapacity the number of UChars that may be written at + * dest. Ignored if dest == NULL. + * @return the length of unescaped string. + * @see u_unescapeAt + * @see UnicodeString#unescape() + * @see UnicodeString#unescapeAt() + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_unescape(const char *src, + UChar *dest, int32_t destCapacity); + +U_CDECL_BEGIN +/** + * Callback function for u_unescapeAt() that returns a character of + * the source text given an offset and a context pointer. The context + * pointer will be whatever is passed into u_unescapeAt(). + * + * @param offset pointer to the offset that will be passed to u_unescapeAt(). + * @param context an opaque pointer passed directly into u_unescapeAt() + * @return the character represented by the escape sequence at + * offset + * @see u_unescapeAt + * @stable ICU 2.0 + */ +typedef UChar (U_CALLCONV *UNESCAPE_CHAR_AT)(int32_t offset, void *context); +U_CDECL_END + +/** + * Unescape a single sequence. The character at offset-1 is assumed + * (without checking) to be a backslash. This method takes a callback + * pointer to a function that returns the UChar at a given offset. By + * varying this callback, ICU functions are able to unescape char* + * strings, UnicodeString objects, and UFILE pointers. + * + * If offset is out of range, or if the escape sequence is ill-formed, + * (UChar32)0xFFFFFFFF is returned. See documentation of u_unescape() + * for a list of recognized sequences. + * + * @param charAt callback function that returns a UChar of the source + * text given an offset and a context pointer. + * @param offset pointer to the offset that will be passed to charAt. + * The offset value will be updated upon return to point after the + * last parsed character of the escape sequence. On error the offset + * is unchanged. + * @param length the number of characters in the source text. The + * last character of the source text is considered to be at offset + * length-1. + * @param context an opaque pointer passed directly into charAt. + * @return the character represented by the escape sequence at + * offset, or (UChar32)0xFFFFFFFF on error. + * @see u_unescape() + * @see UnicodeString#unescape() + * @see UnicodeString#unescapeAt() + * @stable ICU 2.0 + */ +U_STABLE UChar32 U_EXPORT2 +u_unescapeAt(UNESCAPE_CHAR_AT charAt, + int32_t *offset, + int32_t length, + void *context); + +/** + * Uppercase the characters in a string. + * Casing is locale-dependent and context-sensitive. + * The result may be longer or shorter than the original. + * The source string and the destination buffer are allowed to overlap. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param locale The locale to consider, or "" for the root locale or NULL for the default locale. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string. It may be greater than destCapacity. In that case, + * only some of the result was written to the destination buffer. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strToUpper(UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + const char *locale, + UErrorCode *pErrorCode); + +/** + * Lowercase the characters in a string. + * Casing is locale-dependent and context-sensitive. + * The result may be longer or shorter than the original. + * The source string and the destination buffer are allowed to overlap. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param locale The locale to consider, or "" for the root locale or NULL for the default locale. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string. It may be greater than destCapacity. In that case, + * only some of the result was written to the destination buffer. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strToLower(UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + const char *locale, + UErrorCode *pErrorCode); + +#if !UCONFIG_NO_BREAK_ITERATION + +/** + * Titlecase a string. + * Casing is locale-dependent and context-sensitive. + * Titlecasing uses a break iterator to find the first characters of words + * that are to be titlecased. It titlecases those characters and lowercases + * all others. + * + * The titlecase break iterator can be provided to customize for arbitrary + * styles, using rules and dictionaries beyond the standard iterators. + * It may be more efficient to always provide an iterator to avoid + * opening and closing one for each string. + * The standard titlecase iterator for the root locale implements the + * algorithm of Unicode TR 21. + * + * This function uses only the setText(), first() and next() methods of the + * provided break iterator. + * + * The result may be longer or shorter than the original. + * The source string and the destination buffer are allowed to overlap. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param titleIter A break iterator to find the first characters of words + * that are to be titlecased. + * If none is provided (NULL), then a standard titlecase + * break iterator is opened. + * @param locale The locale to consider, or "" for the root locale or NULL for the default locale. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string. It may be greater than destCapacity. In that case, + * only some of the result was written to the destination buffer. + * @stable ICU 2.1 + */ +U_STABLE int32_t U_EXPORT2 +u_strToTitle(UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + UBreakIterator *titleIter, + const char *locale, + UErrorCode *pErrorCode); + +#endif + +/** + * Case-folds the characters in a string. + * + * Case-folding is locale-independent and not context-sensitive, + * but there is an option for whether to include or exclude mappings for dotted I + * and dotless i that are marked with 'T' in CaseFolding.txt. + * + * The result may be longer or shorter than the original. + * The source string and the destination buffer are allowed to overlap. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param options Either U_FOLD_CASE_DEFAULT or U_FOLD_CASE_EXCLUDE_SPECIAL_I + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string. It may be greater than destCapacity. In that case, + * only some of the result was written to the destination buffer. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_strFoldCase(UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + uint32_t options, + UErrorCode *pErrorCode); + +#if defined(U_WCHAR_IS_UTF16) || defined(U_WCHAR_IS_UTF32) || !UCONFIG_NO_CONVERSION +/** + * Convert a UTF-16 string to a wchar_t string. + * If it is known at compile time that wchar_t strings are in UTF-16 or UTF-32, then + * this function simply calls the fast, dedicated function for that. + * Otherwise, two conversions UTF-16 -> default charset -> wchar_t* are performed. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of wchar_t's). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The pointer to destination buffer. + * @stable ICU 2.0 + */ +U_STABLE wchar_t* U_EXPORT2 +u_strToWCS(wchar_t *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar *src, + int32_t srcLength, + UErrorCode *pErrorCode); +/** + * Convert a wchar_t string to UTF-16. + * If it is known at compile time that wchar_t strings are in UTF-16 or UTF-32, then + * this function simply calls the fast, dedicated function for that. + * Otherwise, two conversions wchar_t* -> default charset -> UTF-16 are performed. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The pointer to destination buffer. + * @stable ICU 2.0 + */ +U_STABLE UChar* U_EXPORT2 +u_strFromWCS(UChar *dest, + int32_t destCapacity, + int32_t *pDestLength, + const wchar_t *src, + int32_t srcLength, + UErrorCode *pErrorCode); +#endif /* defined(U_WCHAR_IS_UTF16) || defined(U_WCHAR_IS_UTF32) || !UCONFIG_NO_CONVERSION */ + +/** + * Convert a UTF-16 string to UTF-8. + * If the input string is not well-formed, then the U_INVALID_CHAR_FOUND error code is set. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of chars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The pointer to destination buffer. + * @stable ICU 2.0 + * @see u_strToUTF8WithSub + * @see u_strFromUTF8 + */ +U_STABLE char* U_EXPORT2 +u_strToUTF8(char *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar *src, + int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Convert a UTF-8 string to UTF-16. + * If the input string is not well-formed, then the U_INVALID_CHAR_FOUND error code is set. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The pointer to destination buffer. + * @stable ICU 2.0 + * @see u_strFromUTF8WithSub + * @see u_strFromUTF8Lenient + */ +U_STABLE UChar* U_EXPORT2 +u_strFromUTF8(UChar *dest, + int32_t destCapacity, + int32_t *pDestLength, + const char *src, + int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Convert a UTF-16 string to UTF-8. + * + * Same as u_strToUTF8() except for the additional subchar which is output for + * illegal input sequences, instead of stopping with the U_INVALID_CHAR_FOUND error code. + * With subchar==U_SENTINEL, this function behaves exactly like u_strToUTF8(). + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of chars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param subchar The substitution character to use in place of an illegal input sequence, + * or U_SENTINEL if the function is to return with U_INVALID_CHAR_FOUND instead. + * A substitution character can be any valid Unicode code point (up to U+10FFFF) + * except for surrogate code points (U+D800..U+DFFF). + * The recommended value is U+FFFD "REPLACEMENT CHARACTER". + * @param pNumSubstitutions Output parameter receiving the number of substitutions if subchar>=0. + * Set to 0 if no substitutions occur or subchar<0. + * pNumSubstitutions can be NULL. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @see u_strToUTF8 + * @see u_strFromUTF8WithSub + * @stable ICU 3.6 + */ +U_STABLE char* U_EXPORT2 +u_strToUTF8WithSub(char *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar *src, + int32_t srcLength, + UChar32 subchar, int32_t *pNumSubstitutions, + UErrorCode *pErrorCode); + +/** + * Convert a UTF-8 string to UTF-16. + * + * Same as u_strFromUTF8() except for the additional subchar which is output for + * illegal input sequences, instead of stopping with the U_INVALID_CHAR_FOUND error code. + * With subchar==U_SENTINEL, this function behaves exactly like u_strFromUTF8(). + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param subchar The substitution character to use in place of an illegal input sequence, + * or U_SENTINEL if the function is to return with U_INVALID_CHAR_FOUND instead. + * A substitution character can be any valid Unicode code point (up to U+10FFFF) + * except for surrogate code points (U+D800..U+DFFF). + * The recommended value is U+FFFD "REPLACEMENT CHARACTER". + * @param pNumSubstitutions Output parameter receiving the number of substitutions if subchar>=0. + * Set to 0 if no substitutions occur or subchar<0. + * pNumSubstitutions can be NULL. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @see u_strFromUTF8 + * @see u_strFromUTF8Lenient + * @see u_strToUTF8WithSub + * @stable ICU 3.6 + */ +U_STABLE UChar* U_EXPORT2 +u_strFromUTF8WithSub(UChar *dest, + int32_t destCapacity, + int32_t *pDestLength, + const char *src, + int32_t srcLength, + UChar32 subchar, int32_t *pNumSubstitutions, + UErrorCode *pErrorCode); + +/** + * Convert a UTF-8 string to UTF-16. + * + * Same as u_strFromUTF8() except that this function is designed to be very fast, + * which it achieves by being lenient about malformed UTF-8 sequences. + * This function is intended for use in environments where UTF-8 text is + * expected to be well-formed. + * + * Its semantics are: + * - Well-formed UTF-8 text is correctly converted to well-formed UTF-16 text. + * - The function will not read beyond the input string, nor write beyond + * the destCapacity. + * - Malformed UTF-8 results in "garbage" 16-bit Unicode strings which may not + * be well-formed UTF-16. + * The function will resynchronize to valid code point boundaries + * within a small number of code points after an illegal sequence. + * - Non-shortest forms are not detected and will result in "spoofing" output. + * + * For further performance improvement, if srcLength is given (>=0), + * then it must be destCapacity>=srcLength. + * + * There is no inverse u_strToUTF8Lenient() function because there is practically + * no performance gain from not checking that a UTF-16 string is well-formed. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * Unlike for other ICU functions, if srcLength>=0 then it + * must be destCapacity>=srcLength. + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * Unlike for other ICU functions, if srcLength>=0 but + * destCapacity=0. + * Set to 0 if no substitutions occur or subchar<0. + * pNumSubstitutions can be NULL. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @see u_strToUTF32 + * @see u_strFromUTF32WithSub + * @stable ICU 4.2 + */ +U_STABLE UChar32* U_EXPORT2 +u_strToUTF32WithSub(UChar32 *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar *src, + int32_t srcLength, + UChar32 subchar, int32_t *pNumSubstitutions, + UErrorCode *pErrorCode); + +/** + * Convert a UTF-32 string to UTF-16. + * + * Same as u_strFromUTF32() except for the additional subchar which is output for + * illegal input sequences, instead of stopping with the U_INVALID_CHAR_FOUND error code. + * With subchar==U_SENTINEL, this function behaves exactly like u_strFromUTF32(). + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param subchar The substitution character to use in place of an illegal input sequence, + * or U_SENTINEL if the function is to return with U_INVALID_CHAR_FOUND instead. + * A substitution character can be any valid Unicode code point (up to U+10FFFF) + * except for surrogate code points (U+D800..U+DFFF). + * The recommended value is U+FFFD "REPLACEMENT CHARACTER". + * @param pNumSubstitutions Output parameter receiving the number of substitutions if subchar>=0. + * Set to 0 if no substitutions occur or subchar<0. + * pNumSubstitutions can be NULL. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @see u_strFromUTF32 + * @see u_strToUTF32WithSub + * @stable ICU 4.2 + */ +U_STABLE UChar* U_EXPORT2 +u_strFromUTF32WithSub(UChar *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar32 *src, + int32_t srcLength, + UChar32 subchar, int32_t *pNumSubstitutions, + UErrorCode *pErrorCode); + +/** + * Convert a 16-bit Unicode string to Java Modified UTF-8. + * See http://java.sun.com/javase/6/docs/api/java/io/DataInput.html#modified-utf-8 + * + * This function behaves according to the documentation for Java DataOutput.writeUTF() + * except that it does not encode the output length in the destination buffer + * and does not have an output length restriction. + * See http://java.sun.com/javase/6/docs/api/java/io/DataOutput.html#writeUTF(java.lang.String) + * + * The input string need not be well-formed UTF-16. + * (Therefore there is no subchar parameter.) + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of chars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @stable ICU 4.4 + * @see u_strToUTF8WithSub + * @see u_strFromJavaModifiedUTF8WithSub + */ +U_STABLE char* U_EXPORT2 +u_strToJavaModifiedUTF8( + char *dest, + int32_t destCapacity, + int32_t *pDestLength, + const UChar *src, + int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Convert a Java Modified UTF-8 string to a 16-bit Unicode string. + * If the input string is not well-formed and no substitution char is specified, + * then the U_INVALID_CHAR_FOUND error code is set. + * + * This function behaves according to the documentation for Java DataInput.readUTF() + * except that it takes a length parameter rather than + * interpreting the first two input bytes as the length. + * See http://java.sun.com/javase/6/docs/api/java/io/DataInput.html#readUTF() + * + * The output string may not be well-formed UTF-16. + * + * @param dest A buffer for the result string. The result will be zero-terminated if + * the buffer is large enough. + * @param destCapacity The size of the buffer (number of UChars). If it is 0, then + * dest may be NULL and the function will only return the length of the + * result without writing any of the result string (pre-flighting). + * @param pDestLength A pointer to receive the number of units written to the destination. If + * pDestLength!=NULL then *pDestLength is always set to the + * number of output units corresponding to the transformation of + * all the input units, even in case of a buffer overflow. + * @param src The original source string + * @param srcLength The length of the original string. If -1, then src must be zero-terminated. + * @param subchar The substitution character to use in place of an illegal input sequence, + * or U_SENTINEL if the function is to return with U_INVALID_CHAR_FOUND instead. + * A substitution character can be any valid Unicode code point (up to U+10FFFF) + * except for surrogate code points (U+D800..U+DFFF). + * The recommended value is U+FFFD "REPLACEMENT CHARACTER". + * @param pNumSubstitutions Output parameter receiving the number of substitutions if subchar>=0. + * Set to 0 if no substitutions occur or subchar<0. + * pNumSubstitutions can be NULL. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The pointer to destination buffer. + * @see u_strFromUTF8WithSub + * @see u_strFromUTF8Lenient + * @see u_strToJavaModifiedUTF8 + * @stable ICU 4.4 + */ +U_STABLE UChar* U_EXPORT2 +u_strFromJavaModifiedUTF8WithSub( + UChar *dest, + int32_t destCapacity, + int32_t *pDestLength, + const char *src, + int32_t srcLength, + UChar32 subchar, int32_t *pNumSubstitutions, + UErrorCode *pErrorCode); + +#endif + +// ucasemap.h +/* +******************************************************************************* +* +* Copyright (C) 2005-2012, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: ucasemap.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2005may06 +* created by: Markus W. Scherer +* +* Case mapping service object and functions using it. +*/ + +#ifndef __UCASEMAP_H__ +#define __UCASEMAP_H__ + + +/** + * \file + * \brief C API: Unicode case mapping functions using a UCaseMap service object. + * + * The service object takes care of memory allocations, data loading, and setup + * for the attributes, as usual. + * + * Currently, the functionality provided here does not overlap with uchar.h + * and ustring.h, except for ucasemap_toTitle(). + * + * ucasemap_utf8XYZ() functions operate directly on UTF-8 strings. + */ + +/** + * UCaseMap is an opaque service object for newer ICU case mapping functions. + * Older functions did not use a service object. + * @stable ICU 3.4 + */ +struct UCaseMap; +typedef struct UCaseMap UCaseMap; /**< C typedef for struct UCaseMap. @stable ICU 3.4 */ + +/** + * Open a UCaseMap service object for a locale and a set of options. + * The locale ID and options are preprocessed so that functions using the + * service object need not process them in each call. + * + * @param locale ICU locale ID, used for language-dependent + * upper-/lower-/title-casing according to the Unicode standard. + * Usual semantics: ""=root, NULL=default locale, etc. + * @param options Options bit set, used for case folding and string comparisons. + * Same flags as for u_foldCase(), u_strFoldCase(), + * u_strCaseCompare(), etc. + * Use 0 or U_FOLD_CASE_DEFAULT for default behavior. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return Pointer to a UCaseMap service object, if successful. + * + * @see U_FOLD_CASE_DEFAULT + * @see U_FOLD_CASE_EXCLUDE_SPECIAL_I + * @see U_TITLECASE_NO_LOWERCASE + * @see U_TITLECASE_NO_BREAK_ADJUSTMENT + * @stable ICU 3.4 + */ +U_STABLE UCaseMap * U_EXPORT2 +ucasemap_open(const char *locale, uint32_t options, UErrorCode *pErrorCode); + +/** + * Close a UCaseMap service object. + * @param csm Object to be closed. + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +ucasemap_close(UCaseMap *csm); + + +/** + * Get the locale ID that is used for language-dependent case mappings. + * @param csm UCaseMap service object. + * @return locale ID + * @stable ICU 3.4 + */ +U_STABLE const char * U_EXPORT2 +ucasemap_getLocale(const UCaseMap *csm); + +/** + * Get the options bit set that is used for case folding and string comparisons. + * @param csm UCaseMap service object. + * @return options bit set + * @stable ICU 3.4 + */ +U_STABLE uint32_t U_EXPORT2 +ucasemap_getOptions(const UCaseMap *csm); + +/** + * Set the locale ID that is used for language-dependent case mappings. + * + * @param csm UCaseMap service object. + * @param locale Locale ID, see ucasemap_open(). + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @see ucasemap_open + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +ucasemap_setLocale(UCaseMap *csm, const char *locale, UErrorCode *pErrorCode); + +/** + * Set the options bit set that is used for case folding and string comparisons. + * + * @param csm UCaseMap service object. + * @param options Options bit set, see ucasemap_open(). + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @see ucasemap_open + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +ucasemap_setOptions(UCaseMap *csm, uint32_t options, UErrorCode *pErrorCode); + +/** + * Do not lowercase non-initial parts of words when titlecasing. + * Option bit for titlecasing APIs that take an options bit set. + * + * By default, titlecasing will titlecase the first cased character + * of a word and lowercase all other characters. + * With this option, the other characters will not be modified. + * + * @see ucasemap_setOptions + * @see ucasemap_toTitle + * @see ucasemap_utf8ToTitle + * @see UnicodeString::toTitle + * @stable ICU 3.8 + */ +#define U_TITLECASE_NO_LOWERCASE 0x100 + +/** + * Do not adjust the titlecasing indexes from BreakIterator::next() indexes; + * titlecase exactly the characters at breaks from the iterator. + * Option bit for titlecasing APIs that take an options bit set. + * + * By default, titlecasing will take each break iterator index, + * adjust it by looking for the next cased character, and titlecase that one. + * Other characters are lowercased. + * + * This follows Unicode 4 & 5 section 3.13 Default Case Operations: + * + * R3 toTitlecase(X): Find the word boundaries based on Unicode Standard Annex + * #29, "Text Boundaries." Between each pair of word boundaries, find the first + * cased character F. If F exists, map F to default_title(F); then map each + * subsequent character C to default_lower(C). + * + * @see ucasemap_setOptions + * @see ucasemap_toTitle + * @see ucasemap_utf8ToTitle + * @see UnicodeString::toTitle + * @see U_TITLECASE_NO_LOWERCASE + * @stable ICU 3.8 + */ +#define U_TITLECASE_NO_BREAK_ADJUSTMENT 0x200 + +#if !UCONFIG_NO_BREAK_ITERATION + +/** + * Get the break iterator that is used for titlecasing. + * Do not modify the returned break iterator. + * @param csm UCaseMap service object. + * @return titlecasing break iterator + * @stable ICU 3.8 + */ +U_STABLE const UBreakIterator * U_EXPORT2 +ucasemap_getBreakIterator(const UCaseMap *csm); + +/** + * Set the break iterator that is used for titlecasing. + * The UCaseMap service object releases a previously set break iterator + * and "adopts" this new one, taking ownership of it. + * It will be released in a subsequent call to ucasemap_setBreakIterator() + * or ucasemap_close(). + * + * Break iterator operations are not thread-safe. Therefore, titlecasing + * functions use non-const UCaseMap objects. It is not possible to titlecase + * strings concurrently using the same UCaseMap. + * + * @param csm UCaseMap service object. + * @param iterToAdopt Break iterator to be adopted for titlecasing. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * + * @see ucasemap_toTitle + * @see ucasemap_utf8ToTitle + * @stable ICU 3.8 + */ +U_STABLE void U_EXPORT2 +ucasemap_setBreakIterator(UCaseMap *csm, UBreakIterator *iterToAdopt, UErrorCode *pErrorCode); + +/** + * Titlecase a UTF-16 string. This function is almost a duplicate of u_strToTitle(), + * except that it takes ucasemap_setOptions() into account and has performance + * advantages from being able to use a UCaseMap object for multiple case mapping + * operations, saving setup time. + * + * Casing is locale-dependent and context-sensitive. + * Titlecasing uses a break iterator to find the first characters of words + * that are to be titlecased. It titlecases those characters and lowercases + * all others. (This can be modified with ucasemap_setOptions().) + * + * Note: This function takes a non-const UCaseMap pointer because it will + * open a default break iterator if no break iterator was set yet, + * and effectively call ucasemap_setBreakIterator(); + * also because the break iterator is stateful and will be modified during + * the iteration. + * + * The titlecase break iterator can be provided to customize for arbitrary + * styles, using rules and dictionaries beyond the standard iterators. + * The standard titlecase iterator for the root locale implements the + * algorithm of Unicode TR 21. + * + * This function uses only the setUText(), first(), next() and close() methods of the + * provided break iterator. + * + * The result may be longer or shorter than the original. + * The source string and the destination buffer must not overlap. + * + * @param csm UCaseMap service object. This pointer is non-const! + * See the note above for details. + * @param dest A buffer for the result string. The result will be NUL-terminated if + * the buffer is large enough. + * The contents is undefined in case of failure. + * @param destCapacity The size of the buffer (number of bytes). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string. + * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string, if successful - or in case of a buffer overflow, + * in which case it will be greater than destCapacity. + * + * @see u_strToTitle + * @stable ICU 3.8 + */ +U_STABLE int32_t U_EXPORT2 +ucasemap_toTitle(UCaseMap *csm, + UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + UErrorCode *pErrorCode); + +#endif + +/** + * Lowercase the characters in a UTF-8 string. + * Casing is locale-dependent and context-sensitive. + * The result may be longer or shorter than the original. + * The source string and the destination buffer must not overlap. + * + * @param csm UCaseMap service object. + * @param dest A buffer for the result string. The result will be NUL-terminated if + * the buffer is large enough. + * The contents is undefined in case of failure. + * @param destCapacity The size of the buffer (number of bytes). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string. + * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string, if successful - or in case of a buffer overflow, + * in which case it will be greater than destCapacity. + * + * @see u_strToLower + * @stable ICU 3.4 + */ +U_STABLE int32_t U_EXPORT2 +ucasemap_utf8ToLower(const UCaseMap *csm, + char *dest, int32_t destCapacity, + const char *src, int32_t srcLength, + UErrorCode *pErrorCode); + +/** + * Uppercase the characters in a UTF-8 string. + * Casing is locale-dependent and context-sensitive. + * The result may be longer or shorter than the original. + * The source string and the destination buffer must not overlap. + * + * @param csm UCaseMap service object. + * @param dest A buffer for the result string. The result will be NUL-terminated if + * the buffer is large enough. + * The contents is undefined in case of failure. + * @param destCapacity The size of the buffer (number of bytes). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string. + * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string, if successful - or in case of a buffer overflow, + * in which case it will be greater than destCapacity. + * + * @see u_strToUpper + * @stable ICU 3.4 + */ +U_STABLE int32_t U_EXPORT2 +ucasemap_utf8ToUpper(const UCaseMap *csm, + char *dest, int32_t destCapacity, + const char *src, int32_t srcLength, + UErrorCode *pErrorCode); + +#if !UCONFIG_NO_BREAK_ITERATION + +/** + * Titlecase a UTF-8 string. + * Casing is locale-dependent and context-sensitive. + * Titlecasing uses a break iterator to find the first characters of words + * that are to be titlecased. It titlecases those characters and lowercases + * all others. (This can be modified with ucasemap_setOptions().) + * + * Note: This function takes a non-const UCaseMap pointer because it will + * open a default break iterator if no break iterator was set yet, + * and effectively call ucasemap_setBreakIterator(); + * also because the break iterator is stateful and will be modified during + * the iteration. + * + * The titlecase break iterator can be provided to customize for arbitrary + * styles, using rules and dictionaries beyond the standard iterators. + * The standard titlecase iterator for the root locale implements the + * algorithm of Unicode TR 21. + * + * This function uses only the setUText(), first(), next() and close() methods of the + * provided break iterator. + * + * The result may be longer or shorter than the original. + * The source string and the destination buffer must not overlap. + * + * @param csm UCaseMap service object. This pointer is non-const! + * See the note above for details. + * @param dest A buffer for the result string. The result will be NUL-terminated if + * the buffer is large enough. + * The contents is undefined in case of failure. + * @param destCapacity The size of the buffer (number of bytes). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string. + * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string, if successful - or in case of a buffer overflow, + * in which case it will be greater than destCapacity. + * + * @see u_strToTitle + * @see U_TITLECASE_NO_LOWERCASE + * @see U_TITLECASE_NO_BREAK_ADJUSTMENT + * @stable ICU 3.8 + */ +U_STABLE int32_t U_EXPORT2 +ucasemap_utf8ToTitle(UCaseMap *csm, + char *dest, int32_t destCapacity, + const char *src, int32_t srcLength, + UErrorCode *pErrorCode); + +#endif + +/** + * Case-folds the characters in a UTF-8 string. + * + * Case-folding is locale-independent and not context-sensitive, + * but there is an option for whether to include or exclude mappings for dotted I + * and dotless i that are marked with 'T' in CaseFolding.txt. + * + * The result may be longer or shorter than the original. + * The source string and the destination buffer must not overlap. + * + * @param csm UCaseMap service object. + * @param dest A buffer for the result string. The result will be NUL-terminated if + * the buffer is large enough. + * The contents is undefined in case of failure. + * @param destCapacity The size of the buffer (number of bytes). If it is 0, then + * dest may be NULL and the function will only return the length of the result + * without writing any of the result string. + * @param src The original string. + * @param srcLength The length of the original string. If -1, then src must be NUL-terminated. + * @param pErrorCode Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return The length of the result string, if successful - or in case of a buffer overflow, + * in which case it will be greater than destCapacity. + * + * @see u_strFoldCase + * @see ucasemap_setOptions + * @see U_FOLD_CASE_DEFAULT + * @see U_FOLD_CASE_EXCLUDE_SPECIAL_I + * @stable ICU 3.8 + */ +U_STABLE int32_t U_EXPORT2 +ucasemap_utf8FoldCase(const UCaseMap *csm, + char *dest, int32_t destCapacity, + const char *src, int32_t srcLength, + UErrorCode *pErrorCode); + +#endif + +// unistr.h +/* +********************************************************************** +* Copyright (C) 1998-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* +* File unistr.h +* +* Modification History: +* +* Date Name Description +* 09/25/98 stephen Creation. +* 11/11/98 stephen Changed per 11/9 code review. +* 04/20/99 stephen Overhauled per 4/16 code review. +* 11/18/99 aliu Made to inherit from Replaceable. Added method +* handleReplaceBetween(); other methods unchanged. +* 06/25/01 grhoten Remove dependency on iostream. +****************************************************************************** +*/ + +#ifndef UNISTR_H +#define UNISTR_H + +/** + * \file + * \brief C++ API: Unicode String + */ + + +struct UConverter; // unicode/ucnv.h + +#ifndef U_COMPARE_CODE_POINT_ORDER +/* see also ustring.h and unorm.h */ +/** + * Option bit for u_strCaseCompare, u_strcasecmp, unorm_compare, etc: + * Compare strings in code point order instead of code unit order. + * @stable ICU 2.2 + */ +#define U_COMPARE_CODE_POINT_ORDER 0x8000 +#endif + +#ifndef USTRING_H +/** + * \ingroup ustring_ustrlen + */ +U_STABLE int32_t U_EXPORT2 +u_strlen(const UChar *s); +#endif + +/** + * \def U_STRING_CASE_MAPPER_DEFINED + * @internal + */ +#ifndef U_STRING_CASE_MAPPER_DEFINED +#define U_STRING_CASE_MAPPER_DEFINED + +/** + * Internal string case mapping function type. + * @internal + */ +typedef int32_t U_CALLCONV +UStringCaseMapper(const UCaseMap *csm, + UChar *dest, int32_t destCapacity, + const UChar *src, int32_t srcLength, + UErrorCode *pErrorCode); + +#endif + + +#endif + +// parseerr.h +/* +********************************************************************** +* Copyright (C) 1999-2005, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* Date Name Description +* 03/14/00 aliu Creation. +* 06/27/00 aliu Change from C++ class to C struct +********************************************************************** +*/ +#ifndef PARSEERR_H +#define PARSEERR_H + + + +/** + * \file + * \brief C API: Parse Error Information + */ +/** + * The capacity of the context strings in UParseError. + * @stable ICU 2.0 + */ +enum { U_PARSE_CONTEXT_LEN = 16 }; + +/** + * A UParseError struct is used to returned detailed information about + * parsing errors. It is used by ICU parsing engines that parse long + * rules, patterns, or programs, where the text being parsed is long + * enough that more information than a UErrorCode is needed to + * localize the error. + * + *

The line, offset, and context fields are optional; parsing + * engines may choose not to use to use them. + * + *

The preContext and postContext strings include some part of the + * context surrounding the error. If the source text is "let for=7" + * and "for" is the error (e.g., because it is a reserved word), then + * some examples of what a parser might produce are the following: + * + *

+ * preContext   postContext
+ * ""           ""            The parser does not support context
+ * "let "       "=7"          Pre- and post-context only
+ * "let "       "for=7"       Pre- and post-context and error text
+ * ""           "for"         Error text only
+ * 
+ * + *

Examples of engines which use UParseError (or may use it in the + * future) are Transliterator, RuleBasedBreakIterator, and + * RegexPattern. + * + * @stable ICU 2.0 + */ +typedef struct UParseError { + + /** + * The line on which the error occured. If the parser uses this + * field, it sets it to the line number of the source text line on + * which the error appears, which will be be a value >= 1. If the + * parse does not support line numbers, the value will be <= 0. + * @stable ICU 2.0 + */ + int32_t line; + + /** + * The character offset to the error. If the line field is >= 1, + * then this is the offset from the start of the line. Otherwise, + * this is the offset from the start of the text. If the parser + * does not support this field, it will have a value < 0. + * @stable ICU 2.0 + */ + int32_t offset; + + /** + * Textual context before the error. Null-terminated. The empty + * string if not supported by parser. + * @stable ICU 2.0 + */ + UChar preContext[U_PARSE_CONTEXT_LEN]; + + /** + * The error itself and/or textual context after the error. + * Null-terminated. The empty string if not supported by parser. + * @stable ICU 2.0 + */ + UChar postContext[U_PARSE_CONTEXT_LEN]; + +} UParseError; + +#endif + +// usprep.h +/* + ******************************************************************************* + * + * Copyright (C) 2003-2014, International Business Machines + * Corporation and others. All Rights Reserved. + * + ******************************************************************************* + * file name: usprep.h + * encoding: US-ASCII + * tab size: 8 (not used) + * indentation:4 + * + * created on: 2003jul2 + * created by: Ram Viswanadha + */ + +#ifndef __USPREP_H__ +#define __USPREP_H__ + +/** + * \file + * \brief C API: Implements the StringPrep algorithm. + */ + + +/** + * + * StringPrep API implements the StingPrep framework as described by RFC 3454. + * StringPrep prepares Unicode strings for use in network protocols. + * Profiles of StingPrep are set of rules and data according to with the + * Unicode Strings are prepared. Each profiles contains tables which describe + * how a code point should be treated. The tables are broadly classied into + *

    + *
  • Unassinged Table: Contains code points that are unassigned + * in the Unicode Version supported by StringPrep. Currently + * RFC 3454 supports Unicode 3.2.
  • + *
  • Prohibited Table: Contains code points that are prohibted from + * the output of the StringPrep processing function.
  • + *
  • Mapping Table: Contains code ponts that are deleted from the output or case mapped.
  • + *
+ * + * The procedure for preparing Unicode strings: + *
    + *
  1. Map: For each character in the input, check if it has a mapping + * and, if so, replace it with its mapping.
  2. + *
  3. Normalize: Possibly normalize the result of step 1 using Unicode + * normalization.
  4. + *
  5. Prohibit: Check for any characters that are not allowed in the + * output. If any are found, return an error.
  6. + *
  7. Check bidi: Possibly check for right-to-left characters, and if + * any are found, make sure that the whole string satisfies the + * requirements for bidirectional strings. If the string does not + * satisfy the requirements for bidirectional strings, return an + * error.
  8. + *
+ * @author Ram Viswanadha + */ +#if !UCONFIG_NO_IDNA + + +/** + * The StringPrep profile + * @stable ICU 2.8 + */ +typedef struct UStringPrepProfile UStringPrepProfile; + + +/** + * Option to prohibit processing of unassigned code points in the input + * + * @see usprep_prepare + * @stable ICU 2.8 + */ +#define USPREP_DEFAULT 0x0000 + +/** + * Option to allow processing of unassigned code points in the input + * + * @see usprep_prepare + * @stable ICU 2.8 + */ +#define USPREP_ALLOW_UNASSIGNED 0x0001 + +/** + * enums for the standard stringprep profile types + * supported by usprep_openByType. + * @see usprep_openByType + * @stable ICU 4.2 + */ +typedef enum UStringPrepProfileType { + /** + * RFC3491 Nameprep + * @stable ICU 4.2 + */ + USPREP_RFC3491_NAMEPREP, + /** + * RFC3530 nfs4_cs_prep + * @stable ICU 4.2 + */ + USPREP_RFC3530_NFS4_CS_PREP, + /** + * RFC3530 nfs4_cs_prep with case insensitive option + * @stable ICU 4.2 + */ + USPREP_RFC3530_NFS4_CS_PREP_CI, + /** + * RFC3530 nfs4_cis_prep + * @stable ICU 4.2 + */ + USPREP_RFC3530_NFS4_CIS_PREP, + /** + * RFC3530 nfs4_mixed_prep for prefix + * @stable ICU 4.2 + */ + USPREP_RFC3530_NFS4_MIXED_PREP_PREFIX, + /** + * RFC3530 nfs4_mixed_prep for suffix + * @stable ICU 4.2 + */ + USPREP_RFC3530_NFS4_MIXED_PREP_SUFFIX, + /** + * RFC3722 iSCSI + * @stable ICU 4.2 + */ + USPREP_RFC3722_ISCSI, + /** + * RFC3920 XMPP Nodeprep + * @stable ICU 4.2 + */ + USPREP_RFC3920_NODEPREP, + /** + * RFC3920 XMPP Resourceprep + * @stable ICU 4.2 + */ + USPREP_RFC3920_RESOURCEPREP, + /** + * RFC4011 Policy MIB Stringprep + * @stable ICU 4.2 + */ + USPREP_RFC4011_MIB, + /** + * RFC4013 SASLprep + * @stable ICU 4.2 + */ + USPREP_RFC4013_SASLPREP, + /** + * RFC4505 trace + * @stable ICU 4.2 + */ + USPREP_RFC4505_TRACE, + /** + * RFC4518 LDAP + * @stable ICU 4.2 + */ + USPREP_RFC4518_LDAP, + /** + * RFC4518 LDAP for case ignore, numeric and stored prefix + * matching rules + * @stable ICU 4.2 + */ + USPREP_RFC4518_LDAP_CI +} UStringPrepProfileType; + +/** + * Creates a StringPrep profile from the data file. + * + * @param path string containing the full path pointing to the directory + * where the profile reside followed by the package name + * e.g. "/usr/resource/my_app/profiles/mydata" on a Unix system. + * if NULL, ICU default data files will be used. + * @param fileName name of the profile file to be opened + * @param status ICU error code in/out parameter. Must not be NULL. + * Must fulfill U_SUCCESS before the function call. + * @return Pointer to UStringPrepProfile that is opened. Should be closed by + * calling usprep_close() + * @see usprep_close() + * @stable ICU 2.8 + */ +U_STABLE UStringPrepProfile* U_EXPORT2 +usprep_open(const char* path, + const char* fileName, + UErrorCode* status); + +/** + * Creates a StringPrep profile for the specified profile type. + * + * @param type The profile type + * @param status ICU error code in/out parameter. Must not be NULL. + * Must fulfill U_SUCCESS before the function call. + * @return Pointer to UStringPrepProfile that is opened. Should be closed by + * calling usprep_close() + * @see usprep_close() + * @stable ICU 4.2 + */ +U_STABLE UStringPrepProfile* U_EXPORT2 +usprep_openByType(UStringPrepProfileType type, + UErrorCode* status); + +/** + * Closes the profile + * @param profile The profile to close + * @stable ICU 2.8 + */ +U_STABLE void U_EXPORT2 +usprep_close(UStringPrepProfile* profile); + + +/** + * Prepare the input buffer for use in applications with the given profile. This operation maps, normalizes(NFKC), + * checks for prohited and BiDi characters in the order defined by RFC 3454 + * depending on the options specified in the profile. + * + * @param prep The profile to use + * @param src Pointer to UChar buffer containing the string to prepare + * @param srcLength Number of characters in the source string + * @param dest Pointer to the destination buffer to receive the output + * @param destCapacity The capacity of destination array + * @param options A bit set of options: + * + * - USPREP_DEFAULT Prohibit processing of unassigned code points in the input + * + * - USPREP_ALLOW_UNASSIGNED Treat the unassigned code points are in the input + * as normal Unicode code points. + * + * @param parseError Pointer to UParseError struct to receive information on position + * of error if an error is encountered. Can be NULL. + * @param status ICU in/out error code parameter. + * U_INVALID_CHAR_FOUND if src contains + * unmatched single surrogates. + * U_INDEX_OUTOFBOUNDS_ERROR if src contains + * too many code points. + * U_BUFFER_OVERFLOW_ERROR if destCapacity is not enough + * @return The number of UChars in the destination buffer + * @stable ICU 2.8 + */ + +U_STABLE int32_t U_EXPORT2 +usprep_prepare( const UStringPrepProfile* prep, + const UChar* src, int32_t srcLength, + UChar* dest, int32_t destCapacity, + int32_t options, + UParseError* parseError, + UErrorCode* status ); + + +#endif /* #if !UCONFIG_NO_IDNA */ + +#endif + +// uidna.h +/* + ******************************************************************************* + * + * Copyright (C) 2003-2014, International Business Machines + * Corporation and others. All Rights Reserved. + * + ******************************************************************************* + * file name: uidna.h + * encoding: US-ASCII + * tab size: 8 (not used) + * indentation:4 + * + * created on: 2003feb1 + * created by: Ram Viswanadha + */ + +#ifndef __UIDNA_H__ +#define __UIDNA_H__ + + +#if !UCONFIG_NO_IDNA + + +/** + * \file + * \brief C API: Internationalizing Domain Names in Applications (IDNA) + * + * IDNA2008 is implemented according to UTS #46, see the IDNA C++ class in idna.h. + * + * The C API functions which do take a UIDNA * service object pointer + * implement UTS #46 and IDNA2008. + * + * IDNA2003 is obsolete. + * The C API functions which do not take a service object pointer + * implement IDNA2003. They are all deprecated. + */ + +/* + * IDNA option bit set values. + */ +enum { + /** + * Default options value: None of the other options are set. + * For use in static worker and factory methods. + * @stable ICU 2.6 + */ + UIDNA_DEFAULT=0, + /** + * Option to check whether the input conforms to the STD3 ASCII rules, + * for example the restriction of labels to LDH characters + * (ASCII Letters, Digits and Hyphen-Minus). + * For use in static worker and factory methods. + * @stable ICU 2.6 + */ + UIDNA_USE_STD3_RULES=2, + /** + * IDNA option to check for whether the input conforms to the BiDi rules. + * For use in static worker and factory methods. + *

This option is ignored by the IDNA2003 implementation. + * (IDNA2003 always performs a BiDi check.) + * @stable ICU 4.6 + */ + UIDNA_CHECK_BIDI=4, + /** + * IDNA option to check for whether the input conforms to the CONTEXTJ rules. + * For use in static worker and factory methods. + *

This option is ignored by the IDNA2003 implementation. + * (The CONTEXTJ check is new in IDNA2008.) + * @stable ICU 4.6 + */ + UIDNA_CHECK_CONTEXTJ=8, + /** + * IDNA option for nontransitional processing in ToASCII(). + * For use in static worker and factory methods. + *

By default, ToASCII() uses transitional processing. + *

This option is ignored by the IDNA2003 implementation. + * (This is only relevant for compatibility of newer IDNA implementations with IDNA2003.) + * @stable ICU 4.6 + */ + UIDNA_NONTRANSITIONAL_TO_ASCII=0x10, + /** + * IDNA option for nontransitional processing in ToUnicode(). + * For use in static worker and factory methods. + *

By default, ToUnicode() uses transitional processing. + *

This option is ignored by the IDNA2003 implementation. + * (This is only relevant for compatibility of newer IDNA implementations with IDNA2003.) + * @stable ICU 4.6 + */ + UIDNA_NONTRANSITIONAL_TO_UNICODE=0x20, + /** + * IDNA option to check for whether the input conforms to the CONTEXTO rules. + * For use in static worker and factory methods. + *

This option is ignored by the IDNA2003 implementation. + * (The CONTEXTO check is new in IDNA2008.) + *

This is for use by registries for IDNA2008 conformance. + * UTS #46 does not require the CONTEXTO check. + * @stable ICU 49 + */ + UIDNA_CHECK_CONTEXTO=0x40 +}; + +/** + * Opaque C service object type for the new IDNA API. + * @stable ICU 4.6 + */ +struct UIDNA; +typedef struct UIDNA UIDNA; /**< C typedef for struct UIDNA. @stable ICU 4.6 */ + +/** + * Returns a UIDNA instance which implements UTS #46. + * Returns an unmodifiable instance, owned by the caller. + * Cache it for multiple operations, and uidna_close() it when done. + * The instance is thread-safe, that is, it can be used concurrently. + * + * For details about the UTS #46 implementation see the IDNA C++ class in idna.h. + * + * @param options Bit set to modify the processing and error checking. + * See option bit set values in uidna.h. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return the UTS #46 UIDNA instance, if successful + * @stable ICU 4.6 + */ +U_STABLE UIDNA * U_EXPORT2 +uidna_openUTS46(uint32_t options, UErrorCode *pErrorCode); + +/** + * Closes a UIDNA instance. + * @param idna UIDNA instance to be closed + * @stable ICU 4.6 + */ +U_STABLE void U_EXPORT2 +uidna_close(UIDNA *idna); + + +/** + * Output container for IDNA processing errors. + * Initialize with UIDNA_INFO_INITIALIZER: + * \code + * UIDNAInfo info = UIDNA_INFO_INITIALIZER; + * int32_t length = uidna_nameToASCII(..., &info, &errorCode); + * if(U_SUCCESS(errorCode) && info.errors!=0) { ... } + * \endcode + * @stable ICU 4.6 + */ +typedef struct UIDNAInfo { + /** sizeof(UIDNAInfo) @stable ICU 4.6 */ + int16_t size; + /** + * Set to TRUE if transitional and nontransitional processing produce different results. + * For details see C++ IDNAInfo::isTransitionalDifferent(). + * @stable ICU 4.6 + */ + UBool isTransitionalDifferent; + UBool reservedB3; /**< Reserved field, do not use. @internal */ + /** + * Bit set indicating IDNA processing errors. 0 if no errors. + * See UIDNA_ERROR_... constants. + * @stable ICU 4.6 + */ + uint32_t errors; + int32_t reservedI2; /**< Reserved field, do not use. @internal */ + int32_t reservedI3; /**< Reserved field, do not use. @internal */ +} UIDNAInfo; + +/** + * Static initializer for a UIDNAInfo struct. + * @stable ICU 4.6 + */ +#define UIDNA_INFO_INITIALIZER { \ + (int16_t)sizeof(UIDNAInfo), \ + FALSE, FALSE, \ + 0, 0, 0 } + +/** + * Converts a single domain name label into its ASCII form for DNS lookup. + * If any processing step fails, then pInfo->errors will be non-zero and + * the result might not be an ASCII string. + * The label might be modified according to the types of errors. + * Labels with severe errors will be left in (or turned into) their Unicode form. + * + * The UErrorCode indicates an error only in exceptional cases, + * such as a U_MEMORY_ALLOCATION_ERROR. + * + * @param idna UIDNA instance + * @param label Input domain name label + * @param length Label length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_STABLE int32_t U_EXPORT2 +uidna_labelToASCII(const UIDNA *idna, + const UChar *label, int32_t length, + UChar *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a single domain name label into its Unicode form for human-readable display. + * If any processing step fails, then pInfo->errors will be non-zero. + * The label might be modified according to the types of errors. + * + * The UErrorCode indicates an error only in exceptional cases, + * such as a U_MEMORY_ALLOCATION_ERROR. + * + * @param idna UIDNA instance + * @param label Input domain name label + * @param length Label length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_STABLE int32_t U_EXPORT2 +uidna_labelToUnicode(const UIDNA *idna, + const UChar *label, int32_t length, + UChar *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a whole domain name into its ASCII form for DNS lookup. + * If any processing step fails, then pInfo->errors will be non-zero and + * the result might not be an ASCII string. + * The domain name might be modified according to the types of errors. + * Labels with severe errors will be left in (or turned into) their Unicode form. + * + * The UErrorCode indicates an error only in exceptional cases, + * such as a U_MEMORY_ALLOCATION_ERROR. + * + * @param idna UIDNA instance + * @param name Input domain name + * @param length Domain name length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_STABLE int32_t U_EXPORT2 +uidna_nameToASCII(const UIDNA *idna, + const UChar *name, int32_t length, + UChar *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a whole domain name into its Unicode form for human-readable display. + * If any processing step fails, then pInfo->errors will be non-zero. + * The domain name might be modified according to the types of errors. + * + * The UErrorCode indicates an error only in exceptional cases, + * such as a U_MEMORY_ALLOCATION_ERROR. + * + * @param idna UIDNA instance + * @param name Input domain name + * @param length Domain name length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_STABLE int32_t U_EXPORT2 +uidna_nameToUnicode(const UIDNA *idna, + const UChar *name, int32_t length, + UChar *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/* UTF-8 versions of the processing methods --------------------------------- */ + +/** + * Converts a single domain name label into its ASCII form for DNS lookup. + * UTF-8 version of uidna_labelToASCII(), same behavior. + * + * @param idna UIDNA instance + * @param label Input domain name label + * @param length Label length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_STABLE int32_t U_EXPORT2 +uidna_labelToASCII_UTF8(const UIDNA *idna, + const char *label, int32_t length, + char *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a single domain name label into its Unicode form for human-readable display. + * UTF-8 version of uidna_labelToUnicode(), same behavior. + * + * @param idna UIDNA instance + * @param label Input domain name label + * @param length Label length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_STABLE int32_t U_EXPORT2 +uidna_labelToUnicodeUTF8(const UIDNA *idna, + const char *label, int32_t length, + char *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a whole domain name into its ASCII form for DNS lookup. + * UTF-8 version of uidna_nameToASCII(), same behavior. + * + * @param idna UIDNA instance + * @param name Input domain name + * @param length Domain name length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_STABLE int32_t U_EXPORT2 +uidna_nameToASCII_UTF8(const UIDNA *idna, + const char *name, int32_t length, + char *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/** + * Converts a whole domain name into its Unicode form for human-readable display. + * UTF-8 version of uidna_nameToUnicode(), same behavior. + * + * @param idna UIDNA instance + * @param name Input domain name + * @param length Domain name length, or -1 if NUL-terminated + * @param dest Destination string buffer + * @param capacity Destination buffer capacity + * @param pInfo Output container of IDNA processing details. + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return destination string length + * @stable ICU 4.6 + */ +U_STABLE int32_t U_EXPORT2 +uidna_nameToUnicodeUTF8(const UIDNA *idna, + const char *name, int32_t length, + char *dest, int32_t capacity, + UIDNAInfo *pInfo, UErrorCode *pErrorCode); + +/* + * IDNA error bit set values. + * When a domain name or label fails a processing step or does not meet the + * validity criteria, then one or more of these error bits are set. + */ +enum { + /** + * A non-final domain name label (or the whole domain name) is empty. + * @stable ICU 4.6 + */ + UIDNA_ERROR_EMPTY_LABEL=1, + /** + * A domain name label is longer than 63 bytes. + * (See STD13/RFC1034 3.1. Name space specifications and terminology.) + * This is only checked in ToASCII operations, and only if the output label is all-ASCII. + * @stable ICU 4.6 + */ + UIDNA_ERROR_LABEL_TOO_LONG=2, + /** + * A domain name is longer than 255 bytes in its storage form. + * (See STD13/RFC1034 3.1. Name space specifications and terminology.) + * This is only checked in ToASCII operations, and only if the output domain name is all-ASCII. + * @stable ICU 4.6 + */ + UIDNA_ERROR_DOMAIN_NAME_TOO_LONG=4, + /** + * A label starts with a hyphen-minus ('-'). + * @stable ICU 4.6 + */ + UIDNA_ERROR_LEADING_HYPHEN=8, + /** + * A label ends with a hyphen-minus ('-'). + * @stable ICU 4.6 + */ + UIDNA_ERROR_TRAILING_HYPHEN=0x10, + /** + * A label contains hyphen-minus ('-') in the third and fourth positions. + * @stable ICU 4.6 + */ + UIDNA_ERROR_HYPHEN_3_4=0x20, + /** + * A label starts with a combining mark. + * @stable ICU 4.6 + */ + UIDNA_ERROR_LEADING_COMBINING_MARK=0x40, + /** + * A label or domain name contains disallowed characters. + * @stable ICU 4.6 + */ + UIDNA_ERROR_DISALLOWED=0x80, + /** + * A label starts with "xn--" but does not contain valid Punycode. + * That is, an xn-- label failed Punycode decoding. + * @stable ICU 4.6 + */ + UIDNA_ERROR_PUNYCODE=0x100, + /** + * A label contains a dot=full stop. + * This can occur in an input string for a single-label function. + * @stable ICU 4.6 + */ + UIDNA_ERROR_LABEL_HAS_DOT=0x200, + /** + * An ACE label does not contain a valid label string. + * The label was successfully ACE (Punycode) decoded but the resulting + * string had severe validation errors. For example, + * it might contain characters that are not allowed in ACE labels, + * or it might not be normalized. + * @stable ICU 4.6 + */ + UIDNA_ERROR_INVALID_ACE_LABEL=0x400, + /** + * A label does not meet the IDNA BiDi requirements (for right-to-left characters). + * @stable ICU 4.6 + */ + UIDNA_ERROR_BIDI=0x800, + /** + * A label does not meet the IDNA CONTEXTJ requirements. + * @stable ICU 4.6 + */ + UIDNA_ERROR_CONTEXTJ=0x1000, + /** + * A label does not meet the IDNA CONTEXTO requirements for punctuation characters. + * Some punctuation characters "Would otherwise have been DISALLOWED" + * but are allowed in certain contexts. (RFC 5892) + * @stable ICU 49 + */ + UIDNA_ERROR_CONTEXTO_PUNCTUATION=0x2000, + /** + * A label does not meet the IDNA CONTEXTO requirements for digits. + * Arabic-Indic Digits (U+066x) must not be mixed with Extended Arabic-Indic Digits (U+06Fx). + * @stable ICU 49 + */ + UIDNA_ERROR_CONTEXTO_DIGITS=0x4000 +}; + + +#endif /* #if !UCONFIG_NO_IDNA */ + +#endif + +// ubrk.h +/* +****************************************************************************** +* Copyright (C) 1996-2015, International Business Machines Corporation and others. +* All Rights Reserved. +****************************************************************************** +*/ + +#ifndef UBRK_H +#define UBRK_H + + +/** + * A text-break iterator. + * For usage in C programs. + */ +#ifndef UBRK_TYPEDEF_UBREAK_ITERATOR +# define UBRK_TYPEDEF_UBREAK_ITERATOR + /** + * Opaque type representing an ICU Break iterator object. + * @stable ICU 2.0 + */ + typedef struct UBreakIterator UBreakIterator; +#endif + +#if !UCONFIG_NO_BREAK_ITERATION + + +/** + * \file + * \brief C API: BreakIterator + * + *

BreakIterator C API

+ * + * The BreakIterator C API defines methods for finding the location + * of boundaries in text. Pointer to a UBreakIterator maintain a + * current position and scan over text returning the index of characters + * where boundaries occur. + *

+ * Line boundary analysis determines where a text string can be broken + * when line-wrapping. The mechanism correctly handles punctuation and + * hyphenated words. + *

+ * Note: The locale keyword "lb" can be used to modify line break + * behavior according to the CSS level 3 line-break options, see + * . For example: + * "ja@lb=strict", "zh@lb=loose". + *

+ * Sentence boundary analysis allows selection with correct + * interpretation of periods within numbers and abbreviations, and + * trailing punctuation marks such as quotation marks and parentheses. + *

+ * Note: The locale keyword "ss" can be used to enable use of + * segmentation suppression data (preventing breaks in English after + * abbreviations such as "Mr." or "Est.", for example), as follows: + * "en@ss=standard". + *

+ * Word boundary analysis is used by search and replace functions, as + * well as within text editing applications that allow the user to + * select words with a double click. Word selection provides correct + * interpretation of punctuation marks within and following + * words. Characters that are not part of a word, such as symbols or + * punctuation marks, have word-breaks on both sides. + *

+ * Character boundary analysis identifies the boundaries of + * "Extended Grapheme Clusters", which are groupings of codepoints + * that should be treated as character-like units for many text operations. + * Please see Unicode Standard Annex #29, Unicode Text Segmentation, + * http://www.unicode.org/reports/tr29/ for additional information + * on grapheme clusters and guidelines on their use. + *

+ * Title boundary analysis locates all positions, + * typically starts of words, that should be set to Title Case + * when title casing the text. + *

+ * The text boundary positions are found according to the rules + * described in Unicode Standard Annex #29, Text Boundaries, and + * Unicode Standard Annex #14, Line Breaking Properties. These + * are available at http://www.unicode.org/reports/tr14/ and + * http://www.unicode.org/reports/tr29/. + *

+ * In addition to the plain C API defined in this header file, an + * object oriented C++ API with equivalent functionality is defined in the + * file brkiter.h. + *

+ * Code snippets illustrating the use of the Break Iterator APIs + * are available in the ICU User Guide, + * http://icu-project.org/userguide/boundaryAnalysis.html + * and in the sample program icu/source/samples/break/break.cpp + */ + +/** The possible types of text boundaries. @stable ICU 2.0 */ +typedef enum UBreakIteratorType { + /** Character breaks @stable ICU 2.0 */ + UBRK_CHARACTER = 0, + /** Word breaks @stable ICU 2.0 */ + UBRK_WORD = 1, + /** Line breaks @stable ICU 2.0 */ + UBRK_LINE = 2, + /** Sentence breaks @stable ICU 2.0 */ + UBRK_SENTENCE = 3, + + UBRK_COUNT = 5 +} UBreakIteratorType; + +/** Value indicating all text boundaries have been returned. + * @stable ICU 2.0 + */ +#define UBRK_DONE ((int32_t) -1) + + +/** + * Enum constants for the word break tags returned by + * getRuleStatus(). A range of values is defined for each category of + * word, to allow for further subdivisions of a category in future releases. + * Applications should check for tag values falling within the range, rather + * than for single individual values. + * @stable ICU 2.2 +*/ +typedef enum UWordBreak { + /** Tag value for "words" that do not fit into any of other categories. + * Includes spaces and most punctuation. */ + UBRK_WORD_NONE = 0, + /** Upper bound for tags for uncategorized words. */ + UBRK_WORD_NONE_LIMIT = 100, + /** Tag value for words that appear to be numbers, lower limit. */ + UBRK_WORD_NUMBER = 100, + /** Tag value for words that appear to be numbers, upper limit. */ + UBRK_WORD_NUMBER_LIMIT = 200, + /** Tag value for words that contain letters, excluding + * hiragana, katakana or ideographic characters, lower limit. */ + UBRK_WORD_LETTER = 200, + /** Tag value for words containing letters, upper limit */ + UBRK_WORD_LETTER_LIMIT = 300, + /** Tag value for words containing kana characters, lower limit */ + UBRK_WORD_KANA = 300, + /** Tag value for words containing kana characters, upper limit */ + UBRK_WORD_KANA_LIMIT = 400, + /** Tag value for words containing ideographic characters, lower limit */ + UBRK_WORD_IDEO = 400, + /** Tag value for words containing ideographic characters, upper limit */ + UBRK_WORD_IDEO_LIMIT = 500 +} UWordBreak; + +/** + * Enum constants for the line break tags returned by getRuleStatus(). + * A range of values is defined for each category of + * word, to allow for further subdivisions of a category in future releases. + * Applications should check for tag values falling within the range, rather + * than for single individual values. + * @stable ICU 2.8 +*/ +typedef enum ULineBreakTag { + /** Tag value for soft line breaks, positions at which a line break + * is acceptable but not required */ + UBRK_LINE_SOFT = 0, + /** Upper bound for soft line breaks. */ + UBRK_LINE_SOFT_LIMIT = 100, + /** Tag value for a hard, or mandatory line break */ + UBRK_LINE_HARD = 100, + /** Upper bound for hard line breaks. */ + UBRK_LINE_HARD_LIMIT = 200 +} ULineBreakTag; + + + +/** + * Enum constants for the sentence break tags returned by getRuleStatus(). + * A range of values is defined for each category of + * sentence, to allow for further subdivisions of a category in future releases. + * Applications should check for tag values falling within the range, rather + * than for single individual values. + * @stable ICU 2.8 +*/ +typedef enum USentenceBreakTag { + /** Tag value for for sentences ending with a sentence terminator + * ('.', '?', '!', etc.) character, possibly followed by a + * hard separator (CR, LF, PS, etc.) + */ + UBRK_SENTENCE_TERM = 0, + /** Upper bound for tags for sentences ended by sentence terminators. */ + UBRK_SENTENCE_TERM_LIMIT = 100, + /** Tag value for for sentences that do not contain an ending + * sentence terminator ('.', '?', '!', etc.) character, but + * are ended only by a hard separator (CR, LF, PS, etc.) or end of input. + */ + UBRK_SENTENCE_SEP = 100, + /** Upper bound for tags for sentences ended by a separator. */ + UBRK_SENTENCE_SEP_LIMIT = 200 + /** Tag value for a hard, or mandatory line break */ +} USentenceBreakTag; + + +/** + * Open a new UBreakIterator for locating text boundaries for a specified locale. + * A UBreakIterator may be used for detecting character, line, word, + * and sentence breaks in text. + * @param type The type of UBreakIterator to open: one of UBRK_CHARACTER, UBRK_WORD, + * UBRK_LINE, UBRK_SENTENCE + * @param locale The locale specifying the text-breaking conventions. Note that + * locale keys such as "lb" and "ss" may be used to modify text break behavior, + * see general discussion of BreakIterator C API. + * @param text The text to be iterated over. + * @param textLength The number of characters in text, or -1 if null-terminated. + * @param status A UErrorCode to receive any errors. + * @return A UBreakIterator for the specified locale. + * @see ubrk_openRules + * @stable ICU 2.0 + */ +U_STABLE UBreakIterator* U_EXPORT2 +ubrk_open(UBreakIteratorType type, + const char *locale, + const UChar *text, + int32_t textLength, + UErrorCode *status); + +/** + * Open a new UBreakIterator for locating text boundaries using specified breaking rules. + * The rule syntax is ... (TBD) + * @param rules A set of rules specifying the text breaking conventions. + * @param rulesLength The number of characters in rules, or -1 if null-terminated. + * @param text The text to be iterated over. May be null, in which case ubrk_setText() is + * used to specify the text to be iterated. + * @param textLength The number of characters in text, or -1 if null-terminated. + * @param parseErr Receives position and context information for any syntax errors + * detected while parsing the rules. + * @param status A UErrorCode to receive any errors. + * @return A UBreakIterator for the specified rules. + * @see ubrk_open + * @stable ICU 2.2 + */ +U_STABLE UBreakIterator* U_EXPORT2 +ubrk_openRules(const UChar *rules, + int32_t rulesLength, + const UChar *text, + int32_t textLength, + UParseError *parseErr, + UErrorCode *status); + +/** + * Thread safe cloning operation + * @param bi iterator to be cloned + * @param stackBuffer Deprecated functionality as of ICU 52, use NULL.
+ * user allocated space for the new clone. If NULL new memory will be allocated. + * If buffer is not large enough, new memory will be allocated. + * Clients can use the U_BRK_SAFECLONE_BUFFERSIZE. + * @param pBufferSize Deprecated functionality as of ICU 52, use NULL or 1.
+ * pointer to size of allocated space. + * If *pBufferSize == 0, a sufficient size for use in cloning will + * be returned ('pre-flighting') + * If *pBufferSize is not enough for a stack-based safe clone, + * new memory will be allocated. + * @param status to indicate whether the operation went on smoothly or there were errors + * An informational status value, U_SAFECLONE_ALLOCATED_ERROR, is used if any allocations were necessary. + * @return pointer to the new clone + * @stable ICU 2.0 + */ +U_STABLE UBreakIterator * U_EXPORT2 +ubrk_safeClone( + const UBreakIterator *bi, + void *stackBuffer, + int32_t *pBufferSize, + UErrorCode *status); + + +/** +* Close a UBreakIterator. +* Once closed, a UBreakIterator may no longer be used. +* @param bi The break iterator to close. + * @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +ubrk_close(UBreakIterator *bi); + + +/** + * Sets an existing iterator to point to a new piece of text + * @param bi The iterator to use + * @param text The text to be set + * @param textLength The length of the text + * @param status The error code + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ubrk_setText(UBreakIterator* bi, + const UChar* text, + int32_t textLength, + UErrorCode* status); + + +/** + * Sets an existing iterator to point to a new piece of text. + * + * All index positions returned by break iterator functions are + * native indices from the UText. For example, when breaking UTF-8 + * encoded text, the break positions returned by \ref ubrk_next, \ref ubrk_previous, etc. + * will be UTF-8 string indices, not UTF-16 positions. + * + * @param bi The iterator to use + * @param text The text to be set. + * This function makes a shallow clone of the supplied UText. This means + * that the caller is free to immediately close or otherwise reuse the + * UText that was passed as a parameter, but that the underlying text itself + * must not be altered while being referenced by the break iterator. + * @param status The error code + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +ubrk_setUText(UBreakIterator* bi, + UText* text, + UErrorCode* status); + + + +/** + * Determine the most recently-returned text boundary. + * + * @param bi The break iterator to use. + * @return The character index most recently returned by \ref ubrk_next, \ref ubrk_previous, + * \ref ubrk_first, or \ref ubrk_last. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubrk_current(const UBreakIterator *bi); + +/** + * Advance the iterator to the boundary following the current boundary. + * + * @param bi The break iterator to use. + * @return The character index of the next text boundary, or UBRK_DONE + * if all text boundaries have been returned. + * @see ubrk_previous + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubrk_next(UBreakIterator *bi); + +/** + * Set the iterator position to the boundary preceding the current boundary. + * + * @param bi The break iterator to use. + * @return The character index of the preceding text boundary, or UBRK_DONE + * if all text boundaries have been returned. + * @see ubrk_next + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubrk_previous(UBreakIterator *bi); + +/** + * Set the iterator position to zero, the start of the text being scanned. + * @param bi The break iterator to use. + * @return The new iterator position (zero). + * @see ubrk_last + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubrk_first(UBreakIterator *bi); + +/** + * Set the iterator position to the index immediately beyond the last character in the text being scanned. + * This is not the same as the last character. + * @param bi The break iterator to use. + * @return The character offset immediately beyond the last character in the + * text being scanned. + * @see ubrk_first + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubrk_last(UBreakIterator *bi); + +/** + * Set the iterator position to the first boundary preceding the specified offset. + * The new position is always smaller than offset, or UBRK_DONE. + * @param bi The break iterator to use. + * @param offset The offset to begin scanning. + * @return The text boundary preceding offset, or UBRK_DONE. + * @see ubrk_following + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubrk_preceding(UBreakIterator *bi, + int32_t offset); + +/** + * Advance the iterator to the first boundary following the specified offset. + * The value returned is always greater than offset, or UBRK_DONE. + * @param bi The break iterator to use. + * @param offset The offset to begin scanning. + * @return The text boundary following offset, or UBRK_DONE. + * @see ubrk_preceding + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ubrk_following(UBreakIterator *bi, + int32_t offset); + +/** +* Get a locale for which text breaking information is available. +* A UBreakIterator in a locale returned by this function will perform the correct +* text breaking for the locale. +* @param index The index of the desired locale. +* @return A locale for which number text breaking information is available, or 0 if none. +* @see ubrk_countAvailable +* @stable ICU 2.0 +*/ +U_STABLE const char* U_EXPORT2 +ubrk_getAvailable(int32_t index); + +/** +* Determine how many locales have text breaking information available. +* This function is most useful as determining the loop ending condition for +* calls to \ref ubrk_getAvailable. +* @return The number of locales for which text breaking information is available. +* @see ubrk_getAvailable +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +ubrk_countAvailable(void); + + +/** +* Returns true if the specfied position is a boundary position. As a side +* effect, leaves the iterator pointing to the first boundary position at +* or after "offset". +* @param bi The break iterator to use. +* @param offset the offset to check. +* @return True if "offset" is a boundary position. +* @stable ICU 2.0 +*/ +U_STABLE UBool U_EXPORT2 +ubrk_isBoundary(UBreakIterator *bi, int32_t offset); + +/** + * Return the status from the break rule that determined the most recently + * returned break position. The values appear in the rule source + * within brackets, {123}, for example. For rules that do not specify a + * status, a default value of 0 is returned. + *

+ * For word break iterators, the possible values are defined in enum UWordBreak. + * @stable ICU 2.2 + */ +U_STABLE int32_t U_EXPORT2 +ubrk_getRuleStatus(UBreakIterator *bi); + +/** + * Get the statuses from the break rules that determined the most recently + * returned break position. The values appear in the rule source + * within brackets, {123}, for example. The default status value for rules + * that do not explicitly provide one is zero. + *

+ * For word break iterators, the possible values are defined in enum UWordBreak. + * @param bi The break iterator to use + * @param fillInVec an array to be filled in with the status values. + * @param capacity the length of the supplied vector. A length of zero causes + * the function to return the number of status values, in the + * normal way, without attemtping to store any values. + * @param status receives error codes. + * @return The number of rule status values from rules that determined + * the most recent boundary returned by the break iterator. + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +ubrk_getRuleStatusVec(UBreakIterator *bi, int32_t *fillInVec, int32_t capacity, UErrorCode *status); + +/** + * Return the locale of the break iterator. You can choose between the valid and + * the actual locale. + * @param bi break iterator + * @param type locale type (valid or actual) + * @param status error code + * @return locale string + * @stable ICU 2.8 + */ +U_STABLE const char* U_EXPORT2 +ubrk_getLocaleByType(const UBreakIterator *bi, ULocDataLocaleType type, UErrorCode* status); + +/** + * Set the subject text string upon which the break iterator is operating + * without changing any other aspect of the state. + * The new and previous text strings must have the same content. + * + * This function is intended for use in environments where ICU is operating on + * strings that may move around in memory. It provides a mechanism for notifying + * ICU that the string has been relocated, and providing a new UText to access the + * string in its new position. + * + * Note that the break iterator never copies the underlying text + * of a string being processed, but always operates directly on the original text + * provided by the user. Refreshing simply drops the references to the old text + * and replaces them with references to the new. + * + * Caution: this function is normally used only by very specialized + * system-level code. One example use case is with garbage collection + * that moves the text in memory. + * + * @param bi The break iterator. + * @param text The new (moved) text string. + * @param status Receives errors detected by this function. + * + * @stable ICU 49 + */ +U_STABLE void U_EXPORT2 +ubrk_refreshUText(UBreakIterator *bi, + UText *text, + UErrorCode *status); + +#endif /* #if !UCONFIG_NO_BREAK_ITERATION */ + +#endif + +// messagepattern.h +/* +******************************************************************************* +* Copyright (C) 2011-2013, International Business Machines +* Corporation and others. All Rights Reserved. +******************************************************************************* +* file name: messagepattern.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2011mar14 +* created by: Markus W. Scherer +*/ + +#ifndef __MESSAGEPATTERN_H__ +#define __MESSAGEPATTERN_H__ + +/** + * \file + * \brief C++ API: MessagePattern class: Parses and represents ICU MessageFormat patterns. + */ + + +#if !UCONFIG_NO_FORMATTING + + +/** + * Mode for when an apostrophe starts quoted literal text for MessageFormat output. + * The default is DOUBLE_OPTIONAL unless overridden via uconfig.h + * (UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE). + *

+ * A pair of adjacent apostrophes always results in a single apostrophe in the output, + * even when the pair is between two single, text-quoting apostrophes. + *

+ * The following table shows examples of desired MessageFormat.format() output + * with the pattern strings that yield that output. + *

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Desired outputDOUBLE_OPTIONALDOUBLE_REQUIRED
I see {many}I see '{many}'(same)
I said {'Wow!'}I said '{''Wow!''}'(same)
I don't knowI don't know OR
I don''t know
I don''t know
+ * @stable ICU 4.8 + * @see UCONFIG_MSGPAT_DEFAULT_APOSTROPHE_MODE + */ +enum UMessagePatternApostropheMode { + /** + * A literal apostrophe is represented by + * either a single or a double apostrophe pattern character. + * Within a MessageFormat pattern, a single apostrophe only starts quoted literal text + * if it immediately precedes a curly brace {}, + * or a pipe symbol | if inside a choice format, + * or a pound symbol # if inside a plural format. + *

+ * This is the default behavior starting with ICU 4.8. + * @stable ICU 4.8 + */ + UMSGPAT_APOS_DOUBLE_OPTIONAL, + /** + * A literal apostrophe must be represented by + * a double apostrophe pattern character. + * A single apostrophe always starts quoted literal text. + *

+ * This is the behavior of ICU 4.6 and earlier, and of the JDK. + * @stable ICU 4.8 + */ + UMSGPAT_APOS_DOUBLE_REQUIRED +}; +/** + * @stable ICU 4.8 + */ +typedef enum UMessagePatternApostropheMode UMessagePatternApostropheMode; + +/** + * MessagePattern::Part type constants. + * @stable ICU 4.8 + */ +enum UMessagePatternPartType { + /** + * Start of a message pattern (main or nested). + * The length is 0 for the top-level message + * and for a choice argument sub-message, otherwise 1 for the '{'. + * The value indicates the nesting level, starting with 0 for the main message. + *

+ * There is always a later MSG_LIMIT part. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_MSG_START, + /** + * End of a message pattern (main or nested). + * The length is 0 for the top-level message and + * the last sub-message of a choice argument, + * otherwise 1 for the '}' or (in a choice argument style) the '|'. + * The value indicates the nesting level, starting with 0 for the main message. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_MSG_LIMIT, + /** + * Indicates a substring of the pattern string which is to be skipped when formatting. + * For example, an apostrophe that begins or ends quoted text + * would be indicated with such a part. + * The value is undefined and currently always 0. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_SKIP_SYNTAX, + /** + * Indicates that a syntax character needs to be inserted for auto-quoting. + * The length is 0. + * The value is the character code of the insertion character. (U+0027=APOSTROPHE) + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_INSERT_CHAR, + /** + * Indicates a syntactic (non-escaped) # symbol in a plural variant. + * When formatting, replace this part's substring with the + * (value-offset) for the plural argument value. + * The value is undefined and currently always 0. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_REPLACE_NUMBER, + /** + * Start of an argument. + * The length is 1 for the '{'. + * The value is the ordinal value of the ArgType. Use getArgType(). + *

+ * This part is followed by either an ARG_NUMBER or ARG_NAME, + * followed by optional argument sub-parts (see UMessagePatternArgType constants) + * and finally an ARG_LIMIT part. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_ARG_START, + /** + * End of an argument. + * The length is 1 for the '}'. + * The value is the ordinal value of the ArgType. Use getArgType(). + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_ARG_LIMIT, + /** + * The argument number, provided by the value. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_ARG_NUMBER, + /** + * The argument name. + * The value is undefined and currently always 0. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_ARG_NAME, + /** + * The argument type. + * The value is undefined and currently always 0. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_ARG_TYPE, + /** + * The argument style text. + * The value is undefined and currently always 0. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_ARG_STYLE, + /** + * A selector substring in a "complex" argument style. + * The value is undefined and currently always 0. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_ARG_SELECTOR, + /** + * An integer value, for example the offset or an explicit selector value + * in a PluralFormat style. + * The part value is the integer value. + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_ARG_INT, + /** + * A numeric value, for example the offset or an explicit selector value + * in a PluralFormat style. + * The part value is an index into an internal array of numeric values; + * use getNumericValue(). + * @stable ICU 4.8 + */ + UMSGPAT_PART_TYPE_ARG_DOUBLE +}; +/** + * @stable ICU 4.8 + */ +typedef enum UMessagePatternPartType UMessagePatternPartType; + +/** + * Argument type constants. + * Returned by Part.getArgType() for ARG_START and ARG_LIMIT parts. + * + * Messages nested inside an argument are each delimited by MSG_START and MSG_LIMIT, + * with a nesting level one greater than the surrounding message. + * @stable ICU 4.8 + */ +enum UMessagePatternArgType { + /** + * The argument has no specified type. + * @stable ICU 4.8 + */ + UMSGPAT_ARG_TYPE_NONE, + /** + * The argument has a "simple" type which is provided by the ARG_TYPE part. + * An ARG_STYLE part might follow that. + * @stable ICU 4.8 + */ + UMSGPAT_ARG_TYPE_SIMPLE, + /** + * The argument is a ChoiceFormat with one or more + * ((ARG_INT | ARG_DOUBLE), ARG_SELECTOR, message) tuples. + * @stable ICU 4.8 + */ + UMSGPAT_ARG_TYPE_CHOICE, + /** + * The argument is a cardinal-number PluralFormat with an optional ARG_INT or ARG_DOUBLE offset + * (e.g., offset:1) + * and one or more (ARG_SELECTOR [explicit-value] message) tuples. + * If the selector has an explicit value (e.g., =2), then + * that value is provided by the ARG_INT or ARG_DOUBLE part preceding the message. + * Otherwise the message immediately follows the ARG_SELECTOR. + * @stable ICU 4.8 + */ + UMSGPAT_ARG_TYPE_PLURAL, + /** + * The argument is a SelectFormat with one or more (ARG_SELECTOR, message) pairs. + * @stable ICU 4.8 + */ + UMSGPAT_ARG_TYPE_SELECT, + /** + * The argument is an ordinal-number PluralFormat + * with the same style parts sequence and semantics as UMSGPAT_ARG_TYPE_PLURAL. + * @stable ICU 50 + */ + UMSGPAT_ARG_TYPE_SELECTORDINAL +}; +/** + * @stable ICU 4.8 + */ +typedef enum UMessagePatternArgType UMessagePatternArgType; + +/** + * \def UMSGPAT_ARG_TYPE_HAS_PLURAL_STYLE + * Returns TRUE if the argument type has a plural style part sequence and semantics, + * for example UMSGPAT_ARG_TYPE_PLURAL and UMSGPAT_ARG_TYPE_SELECTORDINAL. + * @stable ICU 50 + */ +#define UMSGPAT_ARG_TYPE_HAS_PLURAL_STYLE(argType) \ + ((argType)==UMSGPAT_ARG_TYPE_PLURAL || (argType)==UMSGPAT_ARG_TYPE_SELECTORDINAL) + +enum { + /** + * Return value from MessagePattern.validateArgumentName() for when + * the string is a valid "pattern identifier" but not a number. + * @stable ICU 4.8 + */ + UMSGPAT_ARG_NAME_NOT_NUMBER=-1, + + /** + * Return value from MessagePattern.validateArgumentName() for when + * the string is invalid. + * It might not be a valid "pattern identifier", + * or it have only ASCII digits but there is a leading zero or the number is too large. + * @stable ICU 4.8 + */ + UMSGPAT_ARG_NAME_NOT_VALID=-2 +}; + +/** + * Special value that is returned by getNumericValue(Part) when no + * numeric value is defined for a part. + * @see MessagePattern.getNumericValue() + * @stable ICU 4.8 + */ +#define UMSGPAT_NO_NUMERIC_VALUE ((double)(-123456789)) + + +#endif // !UCONFIG_NO_FORMATTING + +#endif // __MESSAGEPATTERN_H__ + +// icudataver.h +/* +****************************************************************************** +* +* Copyright (C) 2009-2013, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +*/ + + +/** + * \file + * \brief C API: access to ICU Data Version number + */ + +#ifndef __ICU_DATA_VER_H__ +#define __ICU_DATA_VER_H__ + + +/** + * @stable ICU 49 + */ +#define U_ICU_VERSION_BUNDLE "icuver" + +/** + * @stable ICU 49 + */ +#define U_ICU_DATA_KEY "DataVersion" + +/** + * Retrieves the data version from icuver and stores it in dataVersionFillin. + * + * @param dataVersionFillin icuver data version information to be filled in if not-null + * @param status stores the error code from the calls to resource bundle + * + * @stable ICU 49 + */ +U_STABLE void U_EXPORT2 u_getDataVersion(UVersionInfo dataVersionFillin, UErrorCode *status); + +#endif + +// caniter.h +/* + ******************************************************************************* + * Copyright (C) 1996-2014, International Business Machines Corporation and + * others. All Rights Reserved. + ******************************************************************************* + */ + +#ifndef CANITER_H +#define CANITER_H + + +#if !UCONFIG_NO_NORMALIZATION + + +/** + * \file + * \brief C++ API: Canonical Iterator + */ + +/** Should permutation skip characters with combining class zero + * Should be either TRUE or FALSE. This is a compile time option + * @stable ICU 2.4 + */ +#ifndef CANITER_SKIP_ZEROES +#define CANITER_SKIP_ZEROES TRUE +#endif + + +#endif /* #if !UCONFIG_NO_NORMALIZATION */ + +#endif + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/icui18n.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icui18n.h new file mode 100644 index 0000000000000000000000000000000000000000..990d00d6f4fac47a30bc278cadfa1e5565b0a0e9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icui18n.h @@ -0,0 +1,14005 @@ +// icui18n.h is autogenerated and merged from the ICU header files. +// Code unused or not supported in the Windows ICU SDK has been removed. +#include "icucommon.h" + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#ifndef SUPPRESS_LEGACY_ICU_HEADER_WARNINGS + +// For more information on the ICU breaking change to use char16_t by default, please see the page here: +// https://go.microsoft.com/fwlink/?linkid=851033 + +#pragma message("The wchar_t versions of the ICU headers are no longer being updated, please use the char16_t based header icu.h instead; see https://go.microsoft.com/fwlink/?linkid=851033 for more info. To suppress this warning, define the macro SUPPRESS_LEGACY_ICU_HEADER_WARNINGS before including this header.") + +#endif /* SUPPRESS_LEGACY_ICU_HEADER_WARNINGS */ + +// alphaindex.h +/* +******************************************************************************* +* +* Copyright (C) 2011-2014 International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +*/ + +#ifndef INDEXCHARS_H +#define INDEXCHARS_H + + +#if !UCONFIG_NO_COLLATION + +/** + * \file + * \brief C++ API: Index Characters + */ + +U_CDECL_BEGIN + +/** + * Constants for Alphabetic Index Label Types. + * The form of these enum constants anticipates having a plain C API + * for Alphabetic Indexes that will also use them. + * @stable ICU 4.8 + */ +typedef enum UAlphabeticIndexLabelType { + /** + * Normal Label, typically the starting letter of the names + * in the bucket with this label. + * @stable ICU 4.8 + */ + U_ALPHAINDEX_NORMAL = 0, + + /** + * Undeflow Label. The bucket with this label contains names + * in scripts that sort before any of the bucket labels in this index. + * @stable ICU 4.8 + */ + U_ALPHAINDEX_UNDERFLOW = 1, + + /** + * Inflow Label. The bucket with this label contains names + * in scripts that sort between two of the bucket labels in this index. + * Inflow labels are created when an index contains normal labels for + * multiple scripts, and skips other scripts that sort between some of the + * included scripts. + * @stable ICU 4.8 + */ + U_ALPHAINDEX_INFLOW = 2, + + /** + * Overflow Label. Te bucket with this label contains names in scripts + * that sort after all of the bucket labels in this index. + * @stable ICU 4.8 + */ + U_ALPHAINDEX_OVERFLOW = 3 +} UAlphabeticIndexLabelType; + + +struct UHashtable; +U_CDECL_END + + +#endif // !UCONFIG_NO_COLLATION +#endif + +// basictz.h +// No supported content + +// calendar.h +// No supported content + +// choicfmt.h +// No supported content + +// coleitr.h +// No supported content + +// coll.h +// No supported content + +// compactdecimalformat.h +// No supported content + +// curramt.h +// No supported content + +// currpinf.h +// No supported content + +// currunit.h +// No supported content + +// datefmt.h +// No supported content + +// dcfmtsym.h +// No supported content + +// decimfmt.h +// No supported content + +// dtfmtsym.h +// No supported content + +// dtitvfmt.h +// No supported content + +// dtitvinf.h +// No supported content + +// dtptngen.h +// No supported content + +// dtrule.h +// No supported content + +// fieldpos.h +// No supported content + +// fmtable.h +// No supported content + +// format.h +// No supported content + +// fpositer.h +// No supported content + +// gender.h +// No supported content + +// gregocal.h +// No supported content + +// measunit.h +// No supported content + +// measure.h +// No supported content + +// numfmt.h +// No supported content + +// numsys.h +/* +******************************************************************************* +* Copyright (C) 2010-2014, International Business Machines Corporation and +* others. All Rights Reserved. +******************************************************************************* +* +* +* File NUMSYS.H +* +* Modification History:* +* Date Name Description +* +******************************************************************************** +*/ + +#ifndef NUMSYS +#define NUMSYS + + +/** + * \def NUMSYS_NAME_CAPACITY + * Size of a numbering system name. + * @internal + */ +#define NUMSYS_NAME_CAPACITY 8 + + +/** + * \file + * \brief C++ API: NumberingSystem object + */ + +#if !UCONFIG_NO_FORMATTING + + + + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif // _NUMSYS + +// rbtz.h +// No supported content + +// regex.h +// No supported content + +// region.h +// No supported content + +// scientificnumberformatter.h +// No supported content + +// selfmt.h +/******************************************************************** + * COPYRIGHT: + * Copyright (c) 1997-2011, International Business Machines Corporation and + * others. All Rights Reserved. + * Copyright (C) 2010 , Yahoo! Inc. + ******************************************************************** + * + * File SELFMT.H + * + * Modification History: + * + * Date Name Description + * 11/11/09 kirtig Finished first cut of implementation. + ********************************************************************/ + +#ifndef SELFMT +#define SELFMT + + +/** + * \file + * \brief C++ API: SelectFormat object + */ + +#if !UCONFIG_NO_FORMATTING + + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif // _SELFMT + +// simpletz.h +// No supported content + +// smpdtfmt.h +// No supported content + +// sortkey.h +// No supported content + +// stsearch.h +// No supported content + +// tblcoll.h +// No supported content + +// timezone.h +// No supported content + +// tmunit.h +// No supported content + +// tmutamt.h +// No supported content + +// tmutfmt.h +// No supported content + +// translit.h +// No supported content + +// tznames.h +/* +******************************************************************************* +* Copyright (C) 2011-2015, International Business Machines Corporation and +* others. All Rights Reserved. +******************************************************************************* +*/ +#ifndef __TZNAMES_H +#define __TZNAMES_H + +/** + * \file + * \brief C++ API: TimeZoneNames + */ + +#if !UCONFIG_NO_FORMATTING + + +U_CDECL_BEGIN + +/** + * Constants for time zone display name types. + * @stable ICU 50 + */ +typedef enum UTimeZoneNameType { + /** + * Unknown display name type. + * @stable ICU 50 + */ + UTZNM_UNKNOWN = 0x00, + /** + * Long display name, such as "Eastern Time". + * @stable ICU 50 + */ + UTZNM_LONG_GENERIC = 0x01, + /** + * Long display name for standard time, such as "Eastern Standard Time". + * @stable ICU 50 + */ + UTZNM_LONG_STANDARD = 0x02, + /** + * Long display name for daylight saving time, such as "Eastern Daylight Time". + * @stable ICU 50 + */ + UTZNM_LONG_DAYLIGHT = 0x04, + /** + * Short display name, such as "ET". + * @stable ICU 50 + */ + UTZNM_SHORT_GENERIC = 0x08, + /** + * Short display name for standard time, such as "EST". + * @stable ICU 50 + */ + UTZNM_SHORT_STANDARD = 0x10, + /** + * Short display name for daylight saving time, such as "EDT". + * @stable ICU 50 + */ + UTZNM_SHORT_DAYLIGHT = 0x20, + /** + * Exemplar location name, such as "Los Angeles". + * @stable ICU 51 + */ + UTZNM_EXEMPLAR_LOCATION = 0x40 +} UTimeZoneNameType; + +U_CDECL_END + + +#endif +#endif + +// tzfmt.h +/* +******************************************************************************* +* Copyright (C) 2011-2015, International Business Machines Corporation and +* others. All Rights Reserved. +******************************************************************************* +*/ +#ifndef __TZFMT_H +#define __TZFMT_H + +/** + * \file + * \brief C++ API: TimeZoneFormat + */ + + +#if !UCONFIG_NO_FORMATTING + + +U_CDECL_BEGIN +/** + * Constants for time zone display format style used by format/parse APIs + * in TimeZoneFormat. + * @stable ICU 50 + */ +typedef enum UTimeZoneFormatStyle { + /** + * Generic location format, such as "United States Time (New York)", "Italy Time" + * @stable ICU 50 + */ + UTZFMT_STYLE_GENERIC_LOCATION, + /** + * Generic long non-location format, such as "Eastern Time". + * @stable ICU 50 + */ + UTZFMT_STYLE_GENERIC_LONG, + /** + * Generic short non-location format, such as "ET". + * @stable ICU 50 + */ + UTZFMT_STYLE_GENERIC_SHORT, + /** + * Specific long format, such as "Eastern Standard Time". + * @stable ICU 50 + */ + UTZFMT_STYLE_SPECIFIC_LONG, + /** + * Specific short format, such as "EST", "PDT". + * @stable ICU 50 + */ + UTZFMT_STYLE_SPECIFIC_SHORT, + /** + * Localized GMT offset format, such as "GMT-05:00", "UTC+0100" + * @stable ICU 50 + */ + UTZFMT_STYLE_LOCALIZED_GMT, + /** + * Short localized GMT offset format, such as "GMT-5", "UTC+1:30" + * This style is equivalent to the LDML date format pattern "O". + * @stable ICU 51 + */ + UTZFMT_STYLE_LOCALIZED_GMT_SHORT, + /** + * Short ISO 8601 local time difference (basic format) or the UTC indicator. + * For example, "-05", "+0530", and "Z"(UTC). + * This style is equivalent to the LDML date format pattern "X". + * @stable ICU 51 + */ + UTZFMT_STYLE_ISO_BASIC_SHORT, + /** + * Short ISO 8601 locale time difference (basic format). + * For example, "-05" and "+0530". + * This style is equivalent to the LDML date format pattern "x". + * @stable ICU 51 + */ + UTZFMT_STYLE_ISO_BASIC_LOCAL_SHORT, + /** + * Fixed width ISO 8601 local time difference (basic format) or the UTC indicator. + * For example, "-0500", "+0530", and "Z"(UTC). + * This style is equivalent to the LDML date format pattern "XX". + * @stable ICU 51 + */ + UTZFMT_STYLE_ISO_BASIC_FIXED, + /** + * Fixed width ISO 8601 local time difference (basic format). + * For example, "-0500" and "+0530". + * This style is equivalent to the LDML date format pattern "xx". + * @stable ICU 51 + */ + UTZFMT_STYLE_ISO_BASIC_LOCAL_FIXED, + /** + * ISO 8601 local time difference (basic format) with optional seconds field, or the UTC indicator. + * For example, "-0500", "+052538", and "Z"(UTC). + * This style is equivalent to the LDML date format pattern "XXXX". + * @stable ICU 51 + */ + UTZFMT_STYLE_ISO_BASIC_FULL, + /** + * ISO 8601 local time difference (basic format) with optional seconds field. + * For example, "-0500" and "+052538". + * This style is equivalent to the LDML date format pattern "xxxx". + * @stable ICU 51 + */ + UTZFMT_STYLE_ISO_BASIC_LOCAL_FULL, + /** + * Fixed width ISO 8601 local time difference (extended format) or the UTC indicator. + * For example, "-05:00", "+05:30", and "Z"(UTC). + * This style is equivalent to the LDML date format pattern "XXX". + * @stable ICU 51 + */ + UTZFMT_STYLE_ISO_EXTENDED_FIXED, + /** + * Fixed width ISO 8601 local time difference (extended format). + * For example, "-05:00" and "+05:30". + * This style is equivalent to the LDML date format pattern "xxx" and "ZZZZZ". + * @stable ICU 51 + */ + UTZFMT_STYLE_ISO_EXTENDED_LOCAL_FIXED, + /** + * ISO 8601 local time difference (extended format) with optional seconds field, or the UTC indicator. + * For example, "-05:00", "+05:25:38", and "Z"(UTC). + * This style is equivalent to the LDML date format pattern "XXXXX". + * @stable ICU 51 + */ + UTZFMT_STYLE_ISO_EXTENDED_FULL, + /** + * ISO 8601 local time difference (extended format) with optional seconds field. + * For example, "-05:00" and "+05:25:38". + * This style is equivalent to the LDML date format pattern "xxxxx". + * @stable ICU 51 + */ + UTZFMT_STYLE_ISO_EXTENDED_LOCAL_FULL, + /** + * Time Zone ID, such as "America/Los_Angeles". + * @stable ICU 51 + */ + UTZFMT_STYLE_ZONE_ID, + /** + * Short Time Zone ID (BCP 47 Unicode location extension, time zone type value), such as "uslax". + * @stable ICU 51 + */ + UTZFMT_STYLE_ZONE_ID_SHORT, + /** + * Exemplar location, such as "Los Angeles" and "Paris". + * @stable ICU 51 + */ + UTZFMT_STYLE_EXEMPLAR_LOCATION +} UTimeZoneFormatStyle; + +/** + * Constants for GMT offset pattern types. + * @stable ICU 50 + */ +typedef enum UTimeZoneFormatGMTOffsetPatternType { + /** + * Positive offset with hours and minutes fields + * @stable ICU 50 + */ + UTZFMT_PAT_POSITIVE_HM, + /** + * Positive offset with hours, minutes and seconds fields + * @stable ICU 50 + */ + UTZFMT_PAT_POSITIVE_HMS, + /** + * Negative offset with hours and minutes fields + * @stable ICU 50 + */ + UTZFMT_PAT_NEGATIVE_HM, + /** + * Negative offset with hours, minutes and seconds fields + * @stable ICU 50 + */ + UTZFMT_PAT_NEGATIVE_HMS, + /** + * Positive offset with hours field + * @stable ICU 51 + */ + UTZFMT_PAT_POSITIVE_H, + /** + * Negative offset with hours field + * @stable ICU 51 + */ + UTZFMT_PAT_NEGATIVE_H, + + /* The following cannot be #ifndef U_HIDE_INTERNAL_API, needed for other .h declarations */ + /** + * Number of UTimeZoneFormatGMTOffsetPatternType types. + * @internal + */ + UTZFMT_PAT_COUNT = 6 +} UTimeZoneFormatGMTOffsetPatternType; + +/** + * Constants for time types used by TimeZoneFormat APIs for + * receiving time type (standard time, daylight time or unknown). + * @stable ICU 50 + */ +typedef enum UTimeZoneFormatTimeType { + /** + * Unknown + * @stable ICU 50 + */ + UTZFMT_TIME_TYPE_UNKNOWN, + /** + * Standard time + * @stable ICU 50 + */ + UTZFMT_TIME_TYPE_STANDARD, + /** + * Daylight saving time + * @stable ICU 50 + */ + UTZFMT_TIME_TYPE_DAYLIGHT +} UTimeZoneFormatTimeType; + +/** + * Constants for parse option flags, used for specifying optional parse behavior. + * @stable ICU 50 + */ +typedef enum UTimeZoneFormatParseOption { + /** + * No option. + * @stable ICU 50 + */ + UTZFMT_PARSE_OPTION_NONE = 0x00, + /** + * When a time zone display name is not found within a set of display names + * used for the specified style, look for the name from display names used + * by other styles. + * @stable ICU 50 + */ + UTZFMT_PARSE_OPTION_ALL_STYLES = 0x01, + /** + * When parsing a time zone display name in UTZFMT_STYLE_SPECIFIC_SHORT, + * look for the IANA tz database compatible zone abbreviations in addition + * to the localized names coming from the {@link TimeZoneNames} currently + * used by the {@link TimeZoneFormat}. + * @stable ICU 54 + */ + UTZFMT_PARSE_OPTION_TZ_DATABASE_ABBREVIATIONS = 0x02 +} UTimeZoneFormatParseOption; + +U_CDECL_END + + +#endif /* !UCONFIG_NO_FORMATTING */ +#endif + +// tzrule.h +// No supported content + +// tztrans.h +// No supported content + +// ucal.h +/* + ******************************************************************************* + * Copyright (C) 1996-2015, International Business Machines Corporation and + * others. All Rights Reserved. + ******************************************************************************* + */ + +#ifndef UCAL_H +#define UCAL_H + + +#if !UCONFIG_NO_FORMATTING + +/** + * \file + * \brief C API: Calendar + * + *

Calendar C API

+ * + * UCalendar C API is used for converting between a UDate object + * and a set of integer fields such as UCAL_YEAR, UCAL_MONTH, + * UCAL_DAY, UCAL_HOUR, and so on. + * (A UDate object represents a specific instant in + * time with millisecond precision. See UDate + * for information about the UDate .) + * + *

+ * Types of UCalendar interpret a UDate + * according to the rules of a specific calendar system. The U_STABLE + * provides the enum UCalendarType with UCAL_TRADITIONAL and + * UCAL_GREGORIAN. + *

+ * Like other locale-sensitive C API, calendar API provides a + * function, ucal_open(), which returns a pointer to + * UCalendar whose time fields have been initialized + * with the current date and time. We need to specify the type of + * calendar to be opened and the timezoneId. + * \htmlonly

\endhtmlonly + *
+ * \code
+ * UCalendar *caldef;
+ * UChar *tzId;
+ * UErrorCode status;
+ * tzId=(UChar*)malloc(sizeof(UChar) * (strlen("PST") +1) );
+ * u_uastrcpy(tzId, "PST");
+ * caldef=ucal_open(tzID, u_strlen(tzID), NULL, UCAL_TRADITIONAL, &status);
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * + *

+ * A UCalendar object can produce all the time field values + * needed to implement the date-time formatting for a particular language + * and calendar style (for example, Japanese-Gregorian, Japanese-Traditional). + * + *

+ * When computing a UDate from time fields, two special circumstances + * may arise: there may be insufficient information to compute the + * UDate (such as only year and month but no day in the month), + * or there may be inconsistent information (such as "Tuesday, July 15, 1996" + * -- July 15, 1996 is actually a Monday). + * + *

+ * Insufficient information. The calendar will use default + * information to specify the missing fields. This may vary by calendar; for + * the Gregorian calendar, the default for a field is the same as that of the + * start of the epoch: i.e., UCAL_YEAR = 1970, UCAL_MONTH = JANUARY, UCAL_DATE = 1, etc. + * + *

+ * Inconsistent information. If fields conflict, the calendar + * will give preference to fields set more recently. For example, when + * determining the day, the calendar will look for one of the following + * combinations of fields. The most recent combination, as determined by the + * most recently set single field, will be used. + * + * \htmlonly

\endhtmlonly + *
+ * \code
+ * UCAL_MONTH + UCAL_DAY_OF_MONTH
+ * UCAL_MONTH + UCAL_WEEK_OF_MONTH + UCAL_DAY_OF_WEEK
+ * UCAL_MONTH + UCAL_DAY_OF_WEEK_IN_MONTH + UCAL_DAY_OF_WEEK
+ * UCAL_DAY_OF_YEAR
+ * UCAL_DAY_OF_WEEK + UCAL_WEEK_OF_YEAR
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * + * For the time of day: + * + * \htmlonly
\endhtmlonly + *
+ * \code
+ * UCAL_HOUR_OF_DAY
+ * UCAL_AM_PM + UCAL_HOUR
+ * \endcode
+ * 
+ * \htmlonly
\endhtmlonly + * + *

+ * Note: for some non-Gregorian calendars, different + * fields may be necessary for complete disambiguation. For example, a full + * specification of the historial Arabic astronomical calendar requires year, + * month, day-of-month and day-of-week in some cases. + * + *

+ * Note: There are certain possible ambiguities in + * interpretation of certain singular times, which are resolved in the + * following ways: + *

    + *
  1. 24:00:00 "belongs" to the following day. That is, + * 23:59 on Dec 31, 1969 < 24:00 on Jan 1, 1970 < 24:01:00 on Jan 1, 1970 + * + *
  2. Although historically not precise, midnight also belongs to "am", + * and noon belongs to "pm", so on the same day, + * 12:00 am (midnight) < 12:01 am, and 12:00 pm (noon) < 12:01 pm + *
+ * + *

+ * The date or time format strings are not part of the definition of a + * calendar, as those must be modifiable or overridable by the user at + * runtime. Use {@link icu::DateFormat} + * to format dates. + * + *

+ * Calendar provides an API for field "rolling", where fields + * can be incremented or decremented, but wrap around. For example, rolling the + * month up in the date December 12, 1996 results in + * January 12, 1996. + * + *

+ * Calendar also provides a date arithmetic function for + * adding the specified (signed) amount of time to a particular time field. + * For example, subtracting 5 days from the date September 12, 1996 + * results in September 7, 1996. + * + * @stable ICU 2.0 + */ + +/** + * The time zone ID reserved for unknown time zone. + * @stable ICU 4.8 + */ +#define UCAL_UNKNOWN_ZONE_ID "Etc/Unknown" + +/** A calendar. + * For usage in C programs. + * @stable ICU 2.0 + */ +typedef void* UCalendar; + +/** Possible types of UCalendars + * @stable ICU 2.0 + */ +enum UCalendarType { + /** + * Despite the name, UCAL_TRADITIONAL designates the locale's default calendar, + * which may be the Gregorian calendar or some other calendar. + * @stable ICU 2.0 + */ + UCAL_TRADITIONAL, + /** + * A better name for UCAL_TRADITIONAL. + * @stable ICU 4.2 + */ + UCAL_DEFAULT = UCAL_TRADITIONAL, + /** + * Unambiguously designates the Gregorian calendar for the locale. + * @stable ICU 2.0 + */ + UCAL_GREGORIAN +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarType UCalendarType; + +/** Possible fields in a UCalendar + * @stable ICU 2.0 + */ +enum UCalendarDateFields { + /** + * Field number indicating the era, e.g., AD or BC in the Gregorian (Julian) calendar. + * This is a calendar-specific value. + * @stable ICU 2.6 + */ + UCAL_ERA, + + /** + * Field number indicating the year. This is a calendar-specific value. + * @stable ICU 2.6 + */ + UCAL_YEAR, + + /** + * Field number indicating the month. This is a calendar-specific value. + * The first month of the year is + * JANUARY; the last depends on the number of months in a year. + * @see #UCAL_JANUARY + * @see #UCAL_FEBRUARY + * @see #UCAL_MARCH + * @see #UCAL_APRIL + * @see #UCAL_MAY + * @see #UCAL_JUNE + * @see #UCAL_JULY + * @see #UCAL_AUGUST + * @see #UCAL_SEPTEMBER + * @see #UCAL_OCTOBER + * @see #UCAL_NOVEMBER + * @see #UCAL_DECEMBER + * @see #UCAL_UNDECIMBER + * @stable ICU 2.6 + */ + UCAL_MONTH, + + /** + * Field number indicating the + * week number within the current year. The first week of the year, as + * defined by UCAL_FIRST_DAY_OF_WEEK and UCAL_MINIMAL_DAYS_IN_FIRST_WEEK + * attributes, has value 1. Subclasses define + * the value of UCAL_WEEK_OF_YEAR for days before the first week of + * the year. + * @see ucal_getAttribute + * @see ucal_setAttribute + * @stable ICU 2.6 + */ + UCAL_WEEK_OF_YEAR, + + /** + * Field number indicating the + * week number within the current month. The first week of the month, as + * defined by UCAL_FIRST_DAY_OF_WEEK and UCAL_MINIMAL_DAYS_IN_FIRST_WEEK + * attributes, has value 1. Subclasses define + * the value of WEEK_OF_MONTH for days before the first week of + * the month. + * @see ucal_getAttribute + * @see ucal_setAttribute + * @see #UCAL_FIRST_DAY_OF_WEEK + * @see #UCAL_MINIMAL_DAYS_IN_FIRST_WEEK + * @stable ICU 2.6 + */ + UCAL_WEEK_OF_MONTH, + + /** + * Field number indicating the + * day of the month. This is a synonym for DAY_OF_MONTH. + * The first day of the month has value 1. + * @see #UCAL_DAY_OF_MONTH + * @stable ICU 2.6 + */ + UCAL_DATE, + + /** + * Field number indicating the day + * number within the current year. The first day of the year has value 1. + * @stable ICU 2.6 + */ + UCAL_DAY_OF_YEAR, + + /** + * Field number indicating the day + * of the week. This field takes values SUNDAY, + * MONDAY, TUESDAY, WEDNESDAY, + * THURSDAY, FRIDAY, and SATURDAY. + * @see #UCAL_SUNDAY + * @see #UCAL_MONDAY + * @see #UCAL_TUESDAY + * @see #UCAL_WEDNESDAY + * @see #UCAL_THURSDAY + * @see #UCAL_FRIDAY + * @see #UCAL_SATURDAY + * @stable ICU 2.6 + */ + UCAL_DAY_OF_WEEK, + + /** + * Field number indicating the + * ordinal number of the day of the week within the current month. Together + * with the DAY_OF_WEEK field, this uniquely specifies a day + * within a month. Unlike WEEK_OF_MONTH and + * WEEK_OF_YEAR, this field's value does not depend on + * getFirstDayOfWeek() or + * getMinimalDaysInFirstWeek(). DAY_OF_MONTH 1 + * through 7 always correspond to DAY_OF_WEEK_IN_MONTH + * 1; 8 through 15 correspond to + * DAY_OF_WEEK_IN_MONTH 2, and so on. + * DAY_OF_WEEK_IN_MONTH 0 indicates the week before + * DAY_OF_WEEK_IN_MONTH 1. Negative values count back from the + * end of the month, so the last Sunday of a month is specified as + * DAY_OF_WEEK = SUNDAY, DAY_OF_WEEK_IN_MONTH = -1. Because + * negative values count backward they will usually be aligned differently + * within the month than positive values. For example, if a month has 31 + * days, DAY_OF_WEEK_IN_MONTH -1 will overlap + * DAY_OF_WEEK_IN_MONTH 5 and the end of 4. + * @see #UCAL_DAY_OF_WEEK + * @see #UCAL_WEEK_OF_MONTH + * @stable ICU 2.6 + */ + UCAL_DAY_OF_WEEK_IN_MONTH, + + /** + * Field number indicating + * whether the HOUR is before or after noon. + * E.g., at 10:04:15.250 PM the AM_PM is PM. + * @see #UCAL_AM + * @see #UCAL_PM + * @see #UCAL_HOUR + * @stable ICU 2.6 + */ + UCAL_AM_PM, + + /** + * Field number indicating the + * hour of the morning or afternoon. HOUR is used for the 12-hour + * clock. + * E.g., at 10:04:15.250 PM the HOUR is 10. + * @see #UCAL_AM_PM + * @see #UCAL_HOUR_OF_DAY + * @stable ICU 2.6 + */ + UCAL_HOUR, + + /** + * Field number indicating the + * hour of the day. HOUR_OF_DAY is used for the 24-hour clock. + * E.g., at 10:04:15.250 PM the HOUR_OF_DAY is 22. + * @see #UCAL_HOUR + * @stable ICU 2.6 + */ + UCAL_HOUR_OF_DAY, + + /** + * Field number indicating the + * minute within the hour. + * E.g., at 10:04:15.250 PM the UCAL_MINUTE is 4. + * @stable ICU 2.6 + */ + UCAL_MINUTE, + + /** + * Field number indicating the + * second within the minute. + * E.g., at 10:04:15.250 PM the UCAL_SECOND is 15. + * @stable ICU 2.6 + */ + UCAL_SECOND, + + /** + * Field number indicating the + * millisecond within the second. + * E.g., at 10:04:15.250 PM the UCAL_MILLISECOND is 250. + * @stable ICU 2.6 + */ + UCAL_MILLISECOND, + + /** + * Field number indicating the + * raw offset from GMT in milliseconds. + * @stable ICU 2.6 + */ + UCAL_ZONE_OFFSET, + + /** + * Field number indicating the + * daylight savings offset in milliseconds. + * @stable ICU 2.6 + */ + UCAL_DST_OFFSET, + + /** + * Field number + * indicating the extended year corresponding to the + * UCAL_WEEK_OF_YEAR field. This may be one greater or less + * than the value of UCAL_EXTENDED_YEAR. + * @stable ICU 2.6 + */ + UCAL_YEAR_WOY, + + /** + * Field number + * indicating the localized day of week. This will be a value from 1 + * to 7 inclusive, with 1 being the localized first day of the week. + * @stable ICU 2.6 + */ + UCAL_DOW_LOCAL, + + /** + * Year of this calendar system, encompassing all supra-year fields. For example, + * in Gregorian/Julian calendars, positive Extended Year values indicate years AD, + * 1 BC = 0 extended, 2 BC = -1 extended, and so on. + * @stable ICU 2.8 + */ + UCAL_EXTENDED_YEAR, + + /** + * Field number + * indicating the modified Julian day number. This is different from + * the conventional Julian day number in two regards. First, it + * demarcates days at local zone midnight, rather than noon GMT. + * Second, it is a local number; that is, it depends on the local time + * zone. It can be thought of as a single number that encompasses all + * the date-related fields. + * @stable ICU 2.8 + */ + UCAL_JULIAN_DAY, + + /** + * Ranges from 0 to 23:59:59.999 (regardless of DST). This field behaves exactly + * like a composite of all time-related fields, not including the zone fields. As such, + * it also reflects discontinuities of those fields on DST transition days. On a day + * of DST onset, it will jump forward. On a day of DST cessation, it will jump + * backward. This reflects the fact that it must be combined with the DST_OFFSET field + * to obtain a unique local time value. + * @stable ICU 2.8 + */ + UCAL_MILLISECONDS_IN_DAY, + + /** + * Whether or not the current month is a leap month (0 or 1). See the Chinese calendar for + * an example of this. + */ + UCAL_IS_LEAP_MONTH, + + /** + * Field count + * @stable ICU 2.6 + */ + UCAL_FIELD_COUNT, + + /** + * Field number indicating the + * day of the month. This is a synonym for UCAL_DATE. + * The first day of the month has value 1. + * @see #UCAL_DATE + * Synonym for UCAL_DATE + * @stable ICU 2.8 + **/ + UCAL_DAY_OF_MONTH=UCAL_DATE +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarDateFields UCalendarDateFields; + /** + * Useful constant for days of week. Note: Calendar day-of-week is 1-based. Clients + * who create locale resources for the field of first-day-of-week should be aware of + * this. For instance, in US locale, first-day-of-week is set to 1, i.e., UCAL_SUNDAY. + */ +/** Possible days of the week in a UCalendar + * @stable ICU 2.0 + */ +enum UCalendarDaysOfWeek { + /** Sunday */ + UCAL_SUNDAY = 1, + /** Monday */ + UCAL_MONDAY, + /** Tuesday */ + UCAL_TUESDAY, + /** Wednesday */ + UCAL_WEDNESDAY, + /** Thursday */ + UCAL_THURSDAY, + /** Friday */ + UCAL_FRIDAY, + /** Saturday */ + UCAL_SATURDAY +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarDaysOfWeek UCalendarDaysOfWeek; + +/** Possible months in a UCalendar. Note: Calendar month is 0-based. + * @stable ICU 2.0 + */ +enum UCalendarMonths { + /** January */ + UCAL_JANUARY, + /** February */ + UCAL_FEBRUARY, + /** March */ + UCAL_MARCH, + /** April */ + UCAL_APRIL, + /** May */ + UCAL_MAY, + /** June */ + UCAL_JUNE, + /** July */ + UCAL_JULY, + /** August */ + UCAL_AUGUST, + /** September */ + UCAL_SEPTEMBER, + /** October */ + UCAL_OCTOBER, + /** November */ + UCAL_NOVEMBER, + /** December */ + UCAL_DECEMBER, + /** Value of the UCAL_MONTH field indicating the + * thirteenth month of the year. Although the Gregorian calendar + * does not use this value, lunar calendars do. + */ + UCAL_UNDECIMBER +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarMonths UCalendarMonths; + +/** Possible AM/PM values in a UCalendar + * @stable ICU 2.0 + */ +enum UCalendarAMPMs { + /** AM */ + UCAL_AM, + /** PM */ + UCAL_PM +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarAMPMs UCalendarAMPMs; + +/** + * System time zone type constants used by filtering zones + * in ucal_openTimeZoneIDEnumeration. + * @see ucal_openTimeZoneIDEnumeration + * @stable ICU 4.8 + */ +enum USystemTimeZoneType { + /** + * Any system zones. + * @stable ICU 4.8 + */ + UCAL_ZONE_TYPE_ANY, + /** + * Canonical system zones. + * @stable ICU 4.8 + */ + UCAL_ZONE_TYPE_CANONICAL, + /** + * Canonical system zones associated with actual locations. + * @stable ICU 4.8 + */ + UCAL_ZONE_TYPE_CANONICAL_LOCATION +}; + +/** @stable ICU 4.8 */ +typedef enum USystemTimeZoneType USystemTimeZoneType; + +/** + * Create an enumeration over system time zone IDs with the given + * filter conditions. + * @param zoneType The system time zone type. + * @param region The ISO 3166 two-letter country code or UN M.49 + * three-digit area code. When NULL, no filtering + * done by region. + * @param rawOffset An offset from GMT in milliseconds, ignoring the + * effect of daylight savings time, if any. When NULL, + * no filtering done by zone offset. + * @param ec A pointer to an UErrorCode to receive any errors + * @return an enumeration object that the caller must dispose of + * using enum_close(), or NULL upon failure. In case of failure, + * *ec will indicate the error. + * @stable ICU 4.8 + */ +U_STABLE UEnumeration* U_EXPORT2 +ucal_openTimeZoneIDEnumeration(USystemTimeZoneType zoneType, const char* region, + const int32_t* rawOffset, UErrorCode* ec); + +/** + * Create an enumeration over all time zones. + * + * @param ec input/output error code + * + * @return an enumeration object that the caller must dispose of using + * uenum_close(), or NULL upon failure. In case of failure *ec will + * indicate the error. + * + * @stable ICU 2.6 + */ +U_STABLE UEnumeration* U_EXPORT2 +ucal_openTimeZones(UErrorCode* ec); + +/** + * Create an enumeration over all time zones associated with the given + * country. Some zones are affiliated with no country (e.g., "UTC"); + * these may also be retrieved, as a group. + * + * @param country the ISO 3166 two-letter country code, or NULL to + * retrieve zones not affiliated with any country + * + * @param ec input/output error code + * + * @return an enumeration object that the caller must dispose of using + * uenum_close(), or NULL upon failure. In case of failure *ec will + * indicate the error. + * + * @stable ICU 2.6 + */ +U_STABLE UEnumeration* U_EXPORT2 +ucal_openCountryTimeZones(const char* country, UErrorCode* ec); + +/** + * Return the default time zone. The default is determined initially + * by querying the host operating system. It may be changed with + * ucal_setDefaultTimeZone() or with the C++ TimeZone API. + * + * @param result A buffer to receive the result, or NULL + * + * @param resultCapacity The capacity of the result buffer + * + * @param ec input/output error code + * + * @return The result string length, not including the terminating + * null + * + * @stable ICU 2.6 + */ +U_STABLE int32_t U_EXPORT2 +ucal_getDefaultTimeZone(UChar* result, int32_t resultCapacity, UErrorCode* ec); + +/** + * Set the default time zone. + * + * @param zoneID null-terminated time zone ID + * + * @param ec input/output error code + * + * @stable ICU 2.6 + */ +U_STABLE void U_EXPORT2 +ucal_setDefaultTimeZone(const UChar* zoneID, UErrorCode* ec); + +/** + * Return the amount of time in milliseconds that the clock is + * advanced during daylight savings time for the given time zone, or + * zero if the time zone does not observe daylight savings time. + * + * @param zoneID null-terminated time zone ID + * + * @param ec input/output error code + * + * @return the number of milliseconds the time is advanced with + * respect to standard time when the daylight savings rules are in + * effect. This is always a non-negative number, most commonly either + * 3,600,000 (one hour) or zero. + * + * @stable ICU 2.6 + */ +U_STABLE int32_t U_EXPORT2 +ucal_getDSTSavings(const UChar* zoneID, UErrorCode* ec); + +/** + * Get the current date and time. + * The value returned is represented as milliseconds from the epoch. + * @return The current date and time. + * @stable ICU 2.0 + */ +U_STABLE UDate U_EXPORT2 +ucal_getNow(void); + +/** + * Open a UCalendar. + * A UCalendar may be used to convert a millisecond value to a year, + * month, and day. + *

+ * Note: When unknown TimeZone ID is specified or if the TimeZone ID specified is "Etc/Unknown", + * the UCalendar returned by the function is initialized with GMT zone with TimeZone ID + * UCAL_UNKNOWN_ZONE_ID ("Etc/Unknown") without any errors/warnings. If you want + * to check if a TimeZone ID is valid prior to this function, use ucal_getCanonicalTimeZoneID. + * + * @param zoneID The desired TimeZone ID. If 0, use the default time zone. + * @param len The length of zoneID, or -1 if null-terminated. + * @param locale The desired locale + * @param type The type of UCalendar to open. This can be UCAL_GREGORIAN to open the Gregorian + * calendar for the locale, or UCAL_DEFAULT to open the default calendar for the locale (the + * default calendar may also be Gregorian). To open a specific non-Gregorian calendar for the + * locale, use uloc_setKeywordValue to set the value of the calendar keyword for the locale + * and then pass the locale to ucal_open with UCAL_DEFAULT as the type. + * @param status A pointer to an UErrorCode to receive any errors + * @return A pointer to a UCalendar, or 0 if an error occurred. + * @see #UCAL_UNKNOWN_ZONE_ID + * @stable ICU 2.0 + */ +U_STABLE UCalendar* U_EXPORT2 +ucal_open(const UChar* zoneID, + int32_t len, + const char* locale, + UCalendarType type, + UErrorCode* status); + +/** + * Close a UCalendar. + * Once closed, a UCalendar may no longer be used. + * @param cal The UCalendar to close. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_close(UCalendar *cal); + + +/** + * Open a copy of a UCalendar. + * This function performs a deep copy. + * @param cal The calendar to copy + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UCalendar identical to cal. + * @stable ICU 4.0 + */ +U_STABLE UCalendar* U_EXPORT2 +ucal_clone(const UCalendar* cal, + UErrorCode* status); + +/** + * Set the TimeZone used by a UCalendar. + * A UCalendar uses a timezone for converting from Greenwich time to local time. + * @param cal The UCalendar to set. + * @param zoneID The desired TimeZone ID. If 0, use the default time zone. + * @param len The length of zoneID, or -1 if null-terminated. + * @param status A pointer to an UErrorCode to receive any errors. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_setTimeZone(UCalendar* cal, + const UChar* zoneID, + int32_t len, + UErrorCode* status); + +/** + * Get the ID of the UCalendar's time zone. + * + * @param cal The UCalendar to query. + * @param result Receives the UCalendar's time zone ID. + * @param resultLength The maximum size of result. + * @param status Receives the status. + * @return The total buffer size needed; if greater than resultLength, the output was truncated. + * @stable ICU 51 + */ +U_STABLE int32_t U_EXPORT2 +ucal_getTimeZoneID(const UCalendar *cal, + UChar *result, + int32_t resultLength, + UErrorCode *status); + +/** + * Possible formats for a UCalendar's display name + * @stable ICU 2.0 + */ +enum UCalendarDisplayNameType { + /** Standard display name */ + UCAL_STANDARD, + /** Short standard display name */ + UCAL_SHORT_STANDARD, + /** Daylight savings display name */ + UCAL_DST, + /** Short daylight savings display name */ + UCAL_SHORT_DST +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarDisplayNameType UCalendarDisplayNameType; + +/** + * Get the display name for a UCalendar's TimeZone. + * A display name is suitable for presentation to a user. + * @param cal The UCalendar to query. + * @param type The desired display name format; one of UCAL_STANDARD, UCAL_SHORT_STANDARD, + * UCAL_DST, UCAL_SHORT_DST + * @param locale The desired locale for the display name. + * @param result A pointer to a buffer to receive the formatted number. + * @param resultLength The maximum size of result. + * @param status A pointer to an UErrorCode to receive any errors + * @return The total buffer size needed; if greater than resultLength, the output was truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucal_getTimeZoneDisplayName(const UCalendar* cal, + UCalendarDisplayNameType type, + const char* locale, + UChar* result, + int32_t resultLength, + UErrorCode* status); + +/** + * Determine if a UCalendar is currently in daylight savings time. + * Daylight savings time is not used in all parts of the world. + * @param cal The UCalendar to query. + * @param status A pointer to an UErrorCode to receive any errors + * @return TRUE if cal is currently in daylight savings time, FALSE otherwise + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +ucal_inDaylightTime(const UCalendar* cal, + UErrorCode* status ); + +/** + * Sets the GregorianCalendar change date. This is the point when the switch from + * Julian dates to Gregorian dates occurred. Default is 00:00:00 local time, October + * 15, 1582. Previous to this time and date will be Julian dates. + * + * This function works only for Gregorian calendars. If the UCalendar is not + * an instance of a Gregorian calendar, then a U_UNSUPPORTED_ERROR + * error code is set. + * + * @param cal The calendar object. + * @param date The given Gregorian cutover date. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * + * @see GregorianCalendar::setGregorianChange + * @see ucal_getGregorianChange + * @stable ICU 3.6 + */ +U_STABLE void U_EXPORT2 +ucal_setGregorianChange(UCalendar *cal, UDate date, UErrorCode *pErrorCode); + +/** + * Gets the Gregorian Calendar change date. This is the point when the switch from + * Julian dates to Gregorian dates occurred. Default is 00:00:00 local time, October + * 15, 1582. Previous to this time and date will be Julian dates. + * + * This function works only for Gregorian calendars. If the UCalendar is not + * an instance of a Gregorian calendar, then a U_UNSUPPORTED_ERROR + * error code is set. + * + * @param cal The calendar object. + * @param pErrorCode Pointer to a standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @return The Gregorian cutover time for this calendar. + * + * @see GregorianCalendar::getGregorianChange + * @see ucal_setGregorianChange + * @stable ICU 3.6 + */ +U_STABLE UDate U_EXPORT2 +ucal_getGregorianChange(const UCalendar *cal, UErrorCode *pErrorCode); + +/** + * Types of UCalendar attributes + * @stable ICU 2.0 + */ +enum UCalendarAttribute { + /** + * Lenient parsing + * @stable ICU 2.0 + */ + UCAL_LENIENT, + /** + * First day of week + * @stable ICU 2.0 + */ + UCAL_FIRST_DAY_OF_WEEK, + /** + * Minimum number of days in first week + * @stable ICU 2.0 + */ + UCAL_MINIMAL_DAYS_IN_FIRST_WEEK, + /** + * The behavior for handling wall time repeating multiple times + * at negative time zone offset transitions + * @stable ICU 49 + */ + UCAL_REPEATED_WALL_TIME, + /** + * The behavior for handling skipped wall time at positive time + * zone offset transitions. + * @stable ICU 49 + */ + UCAL_SKIPPED_WALL_TIME +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarAttribute UCalendarAttribute; + +/** + * Options for handling ambiguous wall time at time zone + * offset transitions. + * @stable ICU 49 + */ +enum UCalendarWallTimeOption { + /** + * An ambiguous wall time to be interpreted as the latest. + * This option is valid for UCAL_REPEATED_WALL_TIME and + * UCAL_SKIPPED_WALL_TIME. + * @stable ICU 49 + */ + UCAL_WALLTIME_LAST, + /** + * An ambiguous wall time to be interpreted as the earliest. + * This option is valid for UCAL_REPEATED_WALL_TIME and + * UCAL_SKIPPED_WALL_TIME. + * @stable ICU 49 + */ + UCAL_WALLTIME_FIRST, + /** + * An ambiguous wall time to be interpreted as the next valid + * wall time. This option is valid for UCAL_SKIPPED_WALL_TIME. + * @stable ICU 49 + */ + UCAL_WALLTIME_NEXT_VALID +}; +/** @stable ICU 49 */ +typedef enum UCalendarWallTimeOption UCalendarWallTimeOption; + +/** + * Get a numeric attribute associated with a UCalendar. + * Numeric attributes include the first day of the week, or the minimal numbers + * of days in the first week of the month. + * @param cal The UCalendar to query. + * @param attr The desired attribute; one of UCAL_LENIENT, UCAL_FIRST_DAY_OF_WEEK, + * UCAL_MINIMAL_DAYS_IN_FIRST_WEEK, UCAL_REPEATED_WALL_TIME or UCAL_SKIPPED_WALL_TIME + * @return The value of attr. + * @see ucal_setAttribute + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucal_getAttribute(const UCalendar* cal, + UCalendarAttribute attr); + +/** + * Set a numeric attribute associated with a UCalendar. + * Numeric attributes include the first day of the week, or the minimal numbers + * of days in the first week of the month. + * @param cal The UCalendar to set. + * @param attr The desired attribute; one of UCAL_LENIENT, UCAL_FIRST_DAY_OF_WEEK, + * UCAL_MINIMAL_DAYS_IN_FIRST_WEEK, UCAL_REPEATED_WALL_TIME or UCAL_SKIPPED_WALL_TIME + * @param newValue The new value of attr. + * @see ucal_getAttribute + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_setAttribute(UCalendar* cal, + UCalendarAttribute attr, + int32_t newValue); + +/** + * Get a locale for which calendars are available. + * A UCalendar in a locale returned by this function will contain the correct + * day and month names for the locale. + * @param localeIndex The index of the desired locale. + * @return A locale for which calendars are available, or 0 if none. + * @see ucal_countAvailable + * @stable ICU 2.0 + */ +U_STABLE const char* U_EXPORT2 +ucal_getAvailable(int32_t localeIndex); + +/** + * Determine how many locales have calendars available. + * This function is most useful as determining the loop ending condition for + * calls to \ref ucal_getAvailable. + * @return The number of locales for which calendars are available. + * @see ucal_getAvailable + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucal_countAvailable(void); + +/** + * Get a UCalendar's current time in millis. + * The time is represented as milliseconds from the epoch. + * @param cal The UCalendar to query. + * @param status A pointer to an UErrorCode to receive any errors + * @return The calendar's current time in millis. + * @see ucal_setMillis + * @see ucal_setDate + * @see ucal_setDateTime + * @stable ICU 2.0 + */ +U_STABLE UDate U_EXPORT2 +ucal_getMillis(const UCalendar* cal, + UErrorCode* status); + +/** + * Set a UCalendar's current time in millis. + * The time is represented as milliseconds from the epoch. + * @param cal The UCalendar to set. + * @param dateTime The desired date and time. + * @param status A pointer to an UErrorCode to receive any errors + * @see ucal_getMillis + * @see ucal_setDate + * @see ucal_setDateTime + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_setMillis(UCalendar* cal, + UDate dateTime, + UErrorCode* status ); + +/** + * Set a UCalendar's current date. + * The date is represented as a series of 32-bit integers. + * @param cal The UCalendar to set. + * @param year The desired year. + * @param month The desired month; one of UCAL_JANUARY, UCAL_FEBRUARY, UCAL_MARCH, UCAL_APRIL, UCAL_MAY, + * UCAL_JUNE, UCAL_JULY, UCAL_AUGUST, UCAL_SEPTEMBER, UCAL_OCTOBER, UCAL_NOVEMBER, UCAL_DECEMBER, UCAL_UNDECIMBER + * @param date The desired day of the month. + * @param status A pointer to an UErrorCode to receive any errors + * @see ucal_getMillis + * @see ucal_setMillis + * @see ucal_setDateTime + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_setDate(UCalendar* cal, + int32_t year, + int32_t month, + int32_t date, + UErrorCode* status); + +/** + * Set a UCalendar's current date. + * The date is represented as a series of 32-bit integers. + * @param cal The UCalendar to set. + * @param year The desired year. + * @param month The desired month; one of UCAL_JANUARY, UCAL_FEBRUARY, UCAL_MARCH, UCAL_APRIL, UCAL_MAY, + * UCAL_JUNE, UCAL_JULY, UCAL_AUGUST, UCAL_SEPTEMBER, UCAL_OCTOBER, UCAL_NOVEMBER, UCAL_DECEMBER, UCAL_UNDECIMBER + * @param date The desired day of the month. + * @param hour The desired hour of day. + * @param minute The desired minute. + * @param second The desirec second. + * @param status A pointer to an UErrorCode to receive any errors + * @see ucal_getMillis + * @see ucal_setMillis + * @see ucal_setDate + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_setDateTime(UCalendar* cal, + int32_t year, + int32_t month, + int32_t date, + int32_t hour, + int32_t minute, + int32_t second, + UErrorCode* status); + +/** + * Returns TRUE if two UCalendars are equivalent. Equivalent + * UCalendars will behave identically, but they may be set to + * different times. + * @param cal1 The first of the UCalendars to compare. + * @param cal2 The second of the UCalendars to compare. + * @return TRUE if cal1 and cal2 are equivalent, FALSE otherwise. + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +ucal_equivalentTo(const UCalendar* cal1, + const UCalendar* cal2); + +/** + * Add a specified signed amount to a particular field in a UCalendar. + * This can modify more significant fields in the calendar. + * Adding a positive value always means moving forward in time, so for the Gregorian calendar, + * starting with 100 BC and adding +1 to year results in 99 BC (even though this actually reduces + * the numeric value of the field itself). + * @param cal The UCalendar to which to add. + * @param field The field to which to add the signed value; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param amount The signed amount to add to field. If the amount causes the value + * to exceed to maximum or minimum values for that field, other fields are modified + * to preserve the magnitude of the change. + * @param status A pointer to an UErrorCode to receive any errors + * @see ucal_roll + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_add(UCalendar* cal, + UCalendarDateFields field, + int32_t amount, + UErrorCode* status); + +/** + * Add a specified signed amount to a particular field in a UCalendar. + * This will not modify more significant fields in the calendar. + * Rolling by a positive value always means moving forward in time (unless the limit of the + * field is reached, in which case it may pin or wrap), so for Gregorian calendar, + * starting with 100 BC and rolling the year by +1 results in 99 BC. + * When eras have a definite beginning and end (as in the Chinese calendar, or as in most eras in the + * Japanese calendar) then rolling the year past either limit of the era will cause the year to wrap around. + * When eras only have a limit at one end, then attempting to roll the year past that limit will result in + * pinning the year at that limit. Note that for most calendars in which era 0 years move forward in time + * (such as Buddhist, Hebrew, or Islamic), it is possible for add or roll to result in negative years for + * era 0 (that is the only way to represent years before the calendar epoch). + * @param cal The UCalendar to which to add. + * @param field The field to which to add the signed value; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param amount The signed amount to add to field. If the amount causes the value + * to exceed to maximum or minimum values for that field, the field is pinned to a permissible + * value. + * @param status A pointer to an UErrorCode to receive any errors + * @see ucal_add + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_roll(UCalendar* cal, + UCalendarDateFields field, + int32_t amount, + UErrorCode* status); + +/** + * Get the current value of a field from a UCalendar. + * All fields are represented as 32-bit integers. + * @param cal The UCalendar to query. + * @param field The desired field; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param status A pointer to an UErrorCode to receive any errors + * @return The value of the desired field. + * @see ucal_set + * @see ucal_isSet + * @see ucal_clearField + * @see ucal_clear + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucal_get(const UCalendar* cal, + UCalendarDateFields field, + UErrorCode* status ); + +/** + * Set the value of a field in a UCalendar. + * All fields are represented as 32-bit integers. + * @param cal The UCalendar to set. + * @param field The field to set; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param value The desired value of field. + * @see ucal_get + * @see ucal_isSet + * @see ucal_clearField + * @see ucal_clear + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_set(UCalendar* cal, + UCalendarDateFields field, + int32_t value); + +/** + * Determine if a field in a UCalendar is set. + * All fields are represented as 32-bit integers. + * @param cal The UCalendar to query. + * @param field The desired field; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @return TRUE if field is set, FALSE otherwise. + * @see ucal_get + * @see ucal_set + * @see ucal_clearField + * @see ucal_clear + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +ucal_isSet(const UCalendar* cal, + UCalendarDateFields field); + +/** + * Clear a field in a UCalendar. + * All fields are represented as 32-bit integers. + * @param cal The UCalendar containing the field to clear. + * @param field The field to clear; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @see ucal_get + * @see ucal_set + * @see ucal_isSet + * @see ucal_clear + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_clearField(UCalendar* cal, + UCalendarDateFields field); + +/** + * Clear all fields in a UCalendar. + * All fields are represented as 32-bit integers. + * @param calendar The UCalendar to clear. + * @see ucal_get + * @see ucal_set + * @see ucal_isSet + * @see ucal_clearField + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucal_clear(UCalendar* calendar); + +/** + * Possible limit values for a UCalendar + * @stable ICU 2.0 + */ +enum UCalendarLimitType { + /** Minimum value */ + UCAL_MINIMUM, + /** Maximum value */ + UCAL_MAXIMUM, + /** Greatest minimum value */ + UCAL_GREATEST_MINIMUM, + /** Leaest maximum value */ + UCAL_LEAST_MAXIMUM, + /** Actual minimum value */ + UCAL_ACTUAL_MINIMUM, + /** Actual maximum value */ + UCAL_ACTUAL_MAXIMUM +}; + +/** @stable ICU 2.0 */ +typedef enum UCalendarLimitType UCalendarLimitType; + +/** + * Determine a limit for a field in a UCalendar. + * A limit is a maximum or minimum value for a field. + * @param cal The UCalendar to query. + * @param field The desired field; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param type The desired critical point; one of UCAL_MINIMUM, UCAL_MAXIMUM, UCAL_GREATEST_MINIMUM, + * UCAL_LEAST_MAXIMUM, UCAL_ACTUAL_MINIMUM, UCAL_ACTUAL_MAXIMUM + * @param status A pointer to an UErrorCode to receive any errors. + * @return The requested value. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucal_getLimit(const UCalendar* cal, + UCalendarDateFields field, + UCalendarLimitType type, + UErrorCode* status); + +/** Get the locale for this calendar object. You can choose between valid and actual locale. + * @param cal The calendar object + * @param type type of the locale we're looking for (valid or actual) + * @param status error code for the operation + * @return the locale name + * @stable ICU 2.8 + */ +U_STABLE const char * U_EXPORT2 +ucal_getLocaleByType(const UCalendar *cal, ULocDataLocaleType type, UErrorCode* status); + +/** + * Returns the timezone data version currently used by ICU. + * @param status error code for the operation + * @return the version string, such as "2007f" + * @stable ICU 3.8 + */ +U_STABLE const char * U_EXPORT2 +ucal_getTZDataVersion(UErrorCode* status); + +/** + * Returns the canonical system timezone ID or the normalized + * custom time zone ID for the given time zone ID. + * @param id The input timezone ID to be canonicalized. + * @param len The length of id, or -1 if null-terminated. + * @param result The buffer receives the canonical system timezone ID + * or the custom timezone ID in normalized format. + * @param resultCapacity The capacity of the result buffer. + * @param isSystemID Receives if the given ID is a known system + * timezone ID. + * @param status Receives the status. When the given timezone ID + * is neither a known system time zone ID nor a + * valid custom timezone ID, U_ILLEGAL_ARGUMENT_ERROR + * is set. + * @return The result string length, not including the terminating + * null. + * @stable ICU 4.0 + */ +U_STABLE int32_t U_EXPORT2 +ucal_getCanonicalTimeZoneID(const UChar* id, int32_t len, + UChar* result, int32_t resultCapacity, UBool *isSystemID, UErrorCode* status); +/** + * Get the resource keyword value string designating the calendar type for the UCalendar. + * @param cal The UCalendar to query. + * @param status The error code for the operation. + * @return The resource keyword value string. + * @stable ICU 4.2 + */ +U_STABLE const char * U_EXPORT2 +ucal_getType(const UCalendar *cal, UErrorCode* status); + +/** + * Given a key and a locale, returns an array of string values in a preferred + * order that would make a difference. These are all and only those values where + * the open (creation) of the service with the locale formed from the input locale + * plus input keyword and that value has different behavior than creation with the + * input locale alone. + * @param key one of the keys supported by this service. For now, only + * "calendar" is supported. + * @param locale the locale + * @param commonlyUsed if set to true it will return only commonly used values + * with the given locale in preferred order. Otherwise, + * it will return all the available values for the locale. + * @param status error status + * @return a string enumeration over keyword values for the given key and the locale. + * @stable ICU 4.2 + */ +U_STABLE UEnumeration* U_EXPORT2 +ucal_getKeywordValuesForLocale(const char* key, + const char* locale, + UBool commonlyUsed, + UErrorCode* status); + + +/** Weekday types, as returned by ucal_getDayOfWeekType(). + * @stable ICU 4.4 + */ +enum UCalendarWeekdayType { + /** + * Designates a full weekday (no part of the day is included in the weekend). + * @stable ICU 4.4 + */ + UCAL_WEEKDAY, + /** + * Designates a full weekend day (the entire day is included in the weekend). + * @stable ICU 4.4 + */ + UCAL_WEEKEND, + /** + * Designates a day that starts as a weekday and transitions to the weekend. + * Call ucal_getWeekendTransition() to get the time of transition. + * @stable ICU 4.4 + */ + UCAL_WEEKEND_ONSET, + /** + * Designates a day that starts as the weekend and transitions to a weekday. + * Call ucal_getWeekendTransition() to get the time of transition. + * @stable ICU 4.4 + */ + UCAL_WEEKEND_CEASE +}; + +/** @stable ICU 4.4 */ +typedef enum UCalendarWeekdayType UCalendarWeekdayType; + +/** + * Returns whether the given day of the week is a weekday, a weekend day, + * or a day that transitions from one to the other, for the locale and + * calendar system associated with this UCalendar (the locale's region is + * often the most determinant factor). If a transition occurs at midnight, + * then the days before and after the transition will have the + * type UCAL_WEEKDAY or UCAL_WEEKEND. If a transition occurs at a time + * other than midnight, then the day of the transition will have + * the type UCAL_WEEKEND_ONSET or UCAL_WEEKEND_CEASE. In this case, the + * function ucal_getWeekendTransition() will return the point of + * transition. + * @param cal The UCalendar to query. + * @param dayOfWeek The day of the week whose type is desired (UCAL_SUNDAY..UCAL_SATURDAY). + * @param status The error code for the operation. + * @return The UCalendarWeekdayType for the day of the week. + * @stable ICU 4.4 + */ +U_STABLE UCalendarWeekdayType U_EXPORT2 +ucal_getDayOfWeekType(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode* status); + +/** + * Returns the time during the day at which the weekend begins or ends in + * this calendar system. If ucal_getDayOfWeekType() returns UCAL_WEEKEND_ONSET + * for the specified dayOfWeek, return the time at which the weekend begins. + * If ucal_getDayOfWeekType() returns UCAL_WEEKEND_CEASE for the specified dayOfWeek, + * return the time at which the weekend ends. If ucal_getDayOfWeekType() returns + * some other UCalendarWeekdayType for the specified dayOfWeek, is it an error condition + * (U_ILLEGAL_ARGUMENT_ERROR). + * @param cal The UCalendar to query. + * @param dayOfWeek The day of the week for which the weekend transition time is + * desired (UCAL_SUNDAY..UCAL_SATURDAY). + * @param status The error code for the operation. + * @return The milliseconds after midnight at which the weekend begins or ends. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +ucal_getWeekendTransition(const UCalendar *cal, UCalendarDaysOfWeek dayOfWeek, UErrorCode *status); + +/** + * Returns TRUE if the given UDate is in the weekend in + * this calendar system. + * @param cal The UCalendar to query. + * @param date The UDate in question. + * @param status The error code for the operation. + * @return TRUE if the given UDate is in the weekend in + * this calendar system, FALSE otherwise. + * @stable ICU 4.4 + */ +U_STABLE UBool U_EXPORT2 +ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status); + +/** + * Return the difference between the target time and the time this calendar object is currently set to. + * If the target time is after the current calendar setting, the the returned value will be positive. + * The field parameter specifies the units of the return value. For example, if field is UCAL_MONTH + * and ucal_getFieldDifference returns 3, then the target time is 3 to less than 4 months after the + * current calendar setting. + * + * As a side effect of this call, this calendar is advanced toward target by the given amount. That is, + * calling this function has the side effect of calling ucal_add on this calendar with the specified + * field and an amount equal to the return value from this function. + * + * A typical way of using this function is to call it first with the largest field of interest, then + * with progressively smaller fields. + * + * @param cal The UCalendar to compare and update. + * @param target The target date to compare to the current calendar setting. + * @param field The field to compare; one of UCAL_ERA, UCAL_YEAR, UCAL_MONTH, + * UCAL_WEEK_OF_YEAR, UCAL_WEEK_OF_MONTH, UCAL_DATE, UCAL_DAY_OF_YEAR, UCAL_DAY_OF_WEEK, + * UCAL_DAY_OF_WEEK_IN_MONTH, UCAL_AM_PM, UCAL_HOUR, UCAL_HOUR_OF_DAY, UCAL_MINUTE, UCAL_SECOND, + * UCAL_MILLISECOND, UCAL_ZONE_OFFSET, UCAL_DST_OFFSET. + * @param status A pointer to an UErrorCode to receive any errors + * @return The date difference for the specified field. + * @stable ICU 4.8 + */ +U_STABLE int32_t U_EXPORT2 +ucal_getFieldDifference(UCalendar* cal, + UDate target, + UCalendarDateFields field, + UErrorCode* status); + +/** + * Time zone transition types for ucal_getTimeZoneTransitionDate + * @stable ICU 50 + */ +enum UTimeZoneTransitionType { + /** + * Get the next transition after the current date, + * i.e. excludes the current date + * @stable ICU 50 + */ + UCAL_TZ_TRANSITION_NEXT, + /** + * Get the next transition on or after the current date, + * i.e. may include the current date + * @stable ICU 50 + */ + UCAL_TZ_TRANSITION_NEXT_INCLUSIVE, + /** + * Get the previous transition before the current date, + * i.e. excludes the current date + * @stable ICU 50 + */ + UCAL_TZ_TRANSITION_PREVIOUS, + /** + * Get the previous transition on or before the current date, + * i.e. may include the current date + * @stable ICU 50 + */ + UCAL_TZ_TRANSITION_PREVIOUS_INCLUSIVE +}; + +typedef enum UTimeZoneTransitionType UTimeZoneTransitionType; /**< @stable ICU 50 */ + +/** +* Get the UDate for the next/previous time zone transition relative to +* the calendar's current date, in the time zone to which the calendar +* is currently set. If there is no known time zone transition of the +* requested type relative to the calendar's date, the function returns +* FALSE. +* @param cal The UCalendar to query. +* @param type The type of transition desired. +* @param transition A pointer to a UDate to be set to the transition time. +* If the function returns FALSE, the value set is unspecified. +* @param status A pointer to a UErrorCode to receive any errors. +* @return TRUE if a valid transition time is set in *transition, FALSE +* otherwise. +* @stable ICU 50 +*/ +U_STABLE UBool U_EXPORT2 +ucal_getTimeZoneTransitionDate(const UCalendar* cal, UTimeZoneTransitionType type, + UDate* transition, UErrorCode* status); + +/** +* Converts a system time zone ID to an equivalent Windows time zone ID. For example, +* Windows time zone ID "Pacific Standard Time" is returned for input "America/Los_Angeles". +* +*

There are system time zones that cannot be mapped to Windows zones. When the input +* system time zone ID is unknown or unmappable to a Windows time zone, then this +* function returns 0 as the result length, but the operation itself remains successful +* (no error status set on return). +* +*

This implementation utilizes +* Zone-Tzid mapping data. The mapping data is updated time to time. To get the latest changes, +* please read the ICU user guide section +* Updating the Time Zone Data. +* +* @param id A system time zone ID. +* @param len The length of id, or -1 if null-terminated. +* @param winid A buffer to receive a Windows time zone ID. +* @param winidCapacity The capacity of the result buffer winid. +* @param status Receives the status. +* @return The result string length, not including the terminating null. +* @see ucal_getTimeZoneIDForWindowsID +* +* @stable ICU 52 +*/ +U_STABLE int32_t U_EXPORT2 +ucal_getWindowsTimeZoneID(const UChar* id, int32_t len, + UChar* winid, int32_t winidCapacity, UErrorCode* status); + +/** +* Converts a Windows time zone ID to an equivalent system time zone ID +* for a region. For example, system time zone ID "America/Los_Angeles" is returned +* for input Windows ID "Pacific Standard Time" and region "US" (or null), +* "America/Vancouver" is returned for the same Windows ID "Pacific Standard Time" and +* region "CA". +* +*

Not all Windows time zones can be mapped to system time zones. When the input +* Windows time zone ID is unknown or unmappable to a system time zone, then this +* function returns 0 as the result length, but the operation itself remains successful +* (no error status set on return). +* +*

This implementation utilizes +* Zone-Tzid mapping data. The mapping data is updated time to time. To get the latest changes, +* please read the ICU user guide section +* Updating the Time Zone Data. +* +* @param winid A Windows time zone ID. +* @param len The length of winid, or -1 if null-terminated. +* @param region A null-terminated region code, or NULL if no regional preference. +* @param id A buffer to receive a system time zone ID. +* @param idCapacity The capacity of the result buffer id. +* @param status Receives the status. +* @return The result string length, not including the terminating null. +* @see ucal_getWindowsTimeZoneID +* +* @stable ICU 52 +*/ +U_STABLE int32_t U_EXPORT2 +ucal_getTimeZoneIDForWindowsID(const UChar* winid, int32_t len, const char* region, + UChar* id, int32_t idCapacity, UErrorCode* status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// ucol.h +/* +******************************************************************************* +* Copyright (c) 1996-2015, International Business Machines Corporation and others. +* All Rights Reserved. +******************************************************************************* +*/ + +#ifndef UCOL_H +#define UCOL_H + + +#if !UCONFIG_NO_COLLATION + + +/** + * \file + * \brief C API: Collator + * + *

Collator C API

+ * + * The C API for Collator performs locale-sensitive + * string comparison. You use this service to build + * searching and sorting routines for natural language text. + *

+ * For more information about the collation service see + * the User Guide. + *

+ * Collation service provides correct sorting orders for most locales supported in ICU. + * If specific data for a locale is not available, the orders eventually falls back + * to the CLDR root sort order. + *

+ * Sort ordering may be customized by providing your own set of rules. For more on + * this subject see the + * Collation Customization section of the User Guide. + *

+ * @see UCollationResult + * @see UNormalizationMode + * @see UCollationStrength + * @see UCollationElements + */ + +/** A collator. +* For usage in C programs. +*/ +struct UCollator; +/** structure representing a collator object instance + * @stable ICU 2.0 + */ +typedef struct UCollator UCollator; + + +/** + * UCOL_LESS is returned if source string is compared to be less than target + * string in the ucol_strcoll() method. + * UCOL_EQUAL is returned if source string is compared to be equal to target + * string in the ucol_strcoll() method. + * UCOL_GREATER is returned if source string is compared to be greater than + * target string in the ucol_strcoll() method. + * @see ucol_strcoll() + *

+ * Possible values for a comparison result + * @stable ICU 2.0 + */ +typedef enum { + /** string a == string b */ + UCOL_EQUAL = 0, + /** string a > string b */ + UCOL_GREATER = 1, + /** string a < string b */ + UCOL_LESS = -1 +} UCollationResult ; + + +/** Enum containing attribute values for controling collation behavior. + * Here are all the allowable values. Not every attribute can take every value. The only + * universal value is UCOL_DEFAULT, which resets the attribute value to the predefined + * value for that locale + * @stable ICU 2.0 + */ +typedef enum { + /** accepted by most attributes */ + UCOL_DEFAULT = -1, + + /** Primary collation strength */ + UCOL_PRIMARY = 0, + /** Secondary collation strength */ + UCOL_SECONDARY = 1, + /** Tertiary collation strength */ + UCOL_TERTIARY = 2, + /** Default collation strength */ + UCOL_DEFAULT_STRENGTH = UCOL_TERTIARY, + UCOL_CE_STRENGTH_LIMIT, + /** Quaternary collation strength */ + UCOL_QUATERNARY=3, + /** Identical collation strength */ + UCOL_IDENTICAL=15, + UCOL_STRENGTH_LIMIT, + + /** Turn the feature off - works for UCOL_FRENCH_COLLATION, + UCOL_CASE_LEVEL, UCOL_HIRAGANA_QUATERNARY_MODE + & UCOL_DECOMPOSITION_MODE*/ + UCOL_OFF = 16, + /** Turn the feature on - works for UCOL_FRENCH_COLLATION, + UCOL_CASE_LEVEL, UCOL_HIRAGANA_QUATERNARY_MODE + & UCOL_DECOMPOSITION_MODE*/ + UCOL_ON = 17, + + /** Valid for UCOL_ALTERNATE_HANDLING. Alternate handling will be shifted */ + UCOL_SHIFTED = 20, + /** Valid for UCOL_ALTERNATE_HANDLING. Alternate handling will be non ignorable */ + UCOL_NON_IGNORABLE = 21, + + /** Valid for UCOL_CASE_FIRST - + lower case sorts before upper case */ + UCOL_LOWER_FIRST = 24, + /** upper case sorts before lower case */ + UCOL_UPPER_FIRST = 25, + + UCOL_ATTRIBUTE_VALUE_COUNT + +} UColAttributeValue; + +/** + * Enum containing the codes for reordering segments of the collation table that are not script + * codes. These reordering codes are to be used in conjunction with the script codes. + * @see ucol_getReorderCodes + * @see ucol_setReorderCodes + * @see ucol_getEquivalentReorderCodes + * @see UScriptCode + * @stable ICU 4.8 + */ + typedef enum { + /** + * A special reordering code that is used to specify the default + * reordering codes for a locale. + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_DEFAULT = -1, + /** + * A special reordering code that is used to specify no reordering codes. + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_NONE = USCRIPT_UNKNOWN, + /** + * A special reordering code that is used to specify all other codes used for + * reordering except for the codes lised as UColReorderCode values and those + * listed explicitly in a reordering. + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_OTHERS = USCRIPT_UNKNOWN, + /** + * Characters with the space property. + * This is equivalent to the rule value "space". + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_SPACE = 0x1000, + /** + * The first entry in the enumeration of reordering groups. This is intended for use in + * range checking and enumeration of the reorder codes. + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_FIRST = UCOL_REORDER_CODE_SPACE, + /** + * Characters with the punctuation property. + * This is equivalent to the rule value "punct". + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_PUNCTUATION = 0x1001, + /** + * Characters with the symbol property. + * This is equivalent to the rule value "symbol". + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_SYMBOL = 0x1002, + /** + * Characters with the currency property. + * This is equivalent to the rule value "currency". + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_CURRENCY = 0x1003, + /** + * Characters with the digit property. + * This is equivalent to the rule value "digit". + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_DIGIT = 0x1004, + /** + * The limit of the reorder codes. This is intended for use in range checking + * and enumeration of the reorder codes. + * @stable ICU 4.8 + */ + UCOL_REORDER_CODE_LIMIT = 0x1005 +} UColReorderCode; + +/** + * Base letter represents a primary difference. Set comparison + * level to UCOL_PRIMARY to ignore secondary and tertiary differences. + * Use this to set the strength of a Collator object. + * Example of primary difference, "abc" < "abd" + * + * Diacritical differences on the same base letter represent a secondary + * difference. Set comparison level to UCOL_SECONDARY to ignore tertiary + * differences. Use this to set the strength of a Collator object. + * Example of secondary difference, "ä" >> "a". + * + * Uppercase and lowercase versions of the same character represents a + * tertiary difference. Set comparison level to UCOL_TERTIARY to include + * all comparison differences. Use this to set the strength of a Collator + * object. + * Example of tertiary difference, "abc" <<< "ABC". + * + * Two characters are considered "identical" when they have the same + * unicode spellings. UCOL_IDENTICAL. + * For example, "ä" == "ä". + * + * UCollationStrength is also used to determine the strength of sort keys + * generated from UCollator objects + * These values can be now found in the UColAttributeValue enum. + * @stable ICU 2.0 + **/ +typedef UColAttributeValue UCollationStrength; + +/** Attributes that collation service understands. All the attributes can take UCOL_DEFAULT + * value, as well as the values specific to each one. + * @stable ICU 2.0 + */ +typedef enum { + /** Attribute for direction of secondary weights - used in Canadian French. + * Acceptable values are UCOL_ON, which results in secondary weights + * being considered backwards and UCOL_OFF which treats secondary + * weights in the order they appear. + * @stable ICU 2.0 + */ + UCOL_FRENCH_COLLATION, + /** Attribute for handling variable elements. + * Acceptable values are UCOL_NON_IGNORABLE (default) + * which treats all the codepoints with non-ignorable + * primary weights in the same way, + * and UCOL_SHIFTED which causes codepoints with primary + * weights that are equal or below the variable top value + * to be ignored on primary level and moved to the quaternary + * level. + * @stable ICU 2.0 + */ + UCOL_ALTERNATE_HANDLING, + /** Controls the ordering of upper and lower case letters. + * Acceptable values are UCOL_OFF (default), which orders + * upper and lower case letters in accordance to their tertiary + * weights, UCOL_UPPER_FIRST which forces upper case letters to + * sort before lower case letters, and UCOL_LOWER_FIRST which does + * the opposite. + * @stable ICU 2.0 + */ + UCOL_CASE_FIRST, + /** Controls whether an extra case level (positioned before the third + * level) is generated or not. Acceptable values are UCOL_OFF (default), + * when case level is not generated, and UCOL_ON which causes the case + * level to be generated. Contents of the case level are affected by + * the value of UCOL_CASE_FIRST attribute. A simple way to ignore + * accent differences in a string is to set the strength to UCOL_PRIMARY + * and enable case level. + * @stable ICU 2.0 + */ + UCOL_CASE_LEVEL, + /** Controls whether the normalization check and necessary normalizations + * are performed. When set to UCOL_OFF (default) no normalization check + * is performed. The correctness of the result is guaranteed only if the + * input data is in so-called FCD form (see users manual for more info). + * When set to UCOL_ON, an incremental check is performed to see whether + * the input data is in the FCD form. If the data is not in the FCD form, + * incremental NFD normalization is performed. + * @stable ICU 2.0 + */ + UCOL_NORMALIZATION_MODE, + /** An alias for UCOL_NORMALIZATION_MODE attribute. + * @stable ICU 2.0 + */ + UCOL_DECOMPOSITION_MODE = UCOL_NORMALIZATION_MODE, + /** The strength attribute. Can be either UCOL_PRIMARY, UCOL_SECONDARY, + * UCOL_TERTIARY, UCOL_QUATERNARY or UCOL_IDENTICAL. The usual strength + * for most locales (except Japanese) is tertiary. + * + * Quaternary strength + * is useful when combined with shifted setting for alternate handling + * attribute and for JIS X 4061 collation, when it is used to distinguish + * between Katakana and Hiragana. + * Otherwise, quaternary level + * is affected only by the number of non-ignorable code points in + * the string. + * + * Identical strength is rarely useful, as it amounts + * to codepoints of the NFD form of the string. + * @stable ICU 2.0 + */ + UCOL_STRENGTH, + /** + * When turned on, this attribute makes + * substrings of digits sort according to their numeric values. + * + * This is a way to get '100' to sort AFTER '2'. Note that the longest + * digit substring that can be treated as a single unit is + * 254 digits (not counting leading zeros). If a digit substring is + * longer than that, the digits beyond the limit will be treated as a + * separate digit substring. + * + * A "digit" in this sense is a code point with General_Category=Nd, + * which does not include circled numbers, roman numerals, etc. + * Only a contiguous digit substring is considered, that is, + * non-negative integers without separators. + * There is no support for plus/minus signs, decimals, exponents, etc. + * + * @stable ICU 2.8 + */ + UCOL_NUMERIC_COLLATION = UCOL_STRENGTH + 2, + /** + * The number of UColAttribute constants. + * @stable ICU 2.0 + */ + UCOL_ATTRIBUTE_COUNT +} UColAttribute; + +/** Options for retrieving the rule string + * @stable ICU 2.0 + */ +typedef enum { + /** + * Retrieves the tailoring rules only. + * Same as calling the version of getRules() without UColRuleOption. + * @stable ICU 2.0 + */ + UCOL_TAILORING_ONLY, + /** + * Retrieves the "UCA rules" concatenated with the tailoring rules. + * The "UCA rules" are an approximation of the root collator's sort order. + * They are almost never used or useful at runtime and can be removed from the data. + * See http://userguide.icu-project.org/collation/customization#TOC-Building-on-Existing-Locales + * @stable ICU 2.0 + */ + UCOL_FULL_RULES +} UColRuleOption ; + +/** + * Open a UCollator for comparing strings. + * + * For some languages, multiple collation types are available; + * for example, "de@collation=phonebook". + * Starting with ICU 54, collation attributes can be specified via locale keywords as well, + * in the old locale extension syntax ("el@colCaseFirst=upper") + * or in language tag syntax ("el-u-kf-upper"). + * See User Guide: Collation API. + * + * The UCollator pointer is used in all the calls to the Collation + * service. After finished, collator must be disposed of by calling + * {@link #ucol_close }. + * @param loc The locale containing the required collation rules. + * Special values for locales can be passed in - + * if NULL is passed for the locale, the default locale + * collation rules will be used. If empty string ("") or + * "root" are passed, the root collator will be returned. + * @param status A pointer to a UErrorCode to receive any errors + * @return A pointer to a UCollator, or 0 if an error occurred. + * @see ucol_openRules + * @see ucol_safeClone + * @see ucol_close + * @stable ICU 2.0 + */ +U_STABLE UCollator* U_EXPORT2 +ucol_open(const char *loc, UErrorCode *status); + +/** + * Produce a UCollator instance according to the rules supplied. + * The rules are used to change the default ordering, defined in the + * UCA in a process called tailoring. The resulting UCollator pointer + * can be used in the same way as the one obtained by {@link #ucol_strcoll }. + * @param rules A string describing the collation rules. For the syntax + * of the rules please see users guide. + * @param rulesLength The length of rules, or -1 if null-terminated. + * @param normalizationMode The normalization mode: One of + * UCOL_OFF (expect the text to not need normalization), + * UCOL_ON (normalize), or + * UCOL_DEFAULT (set the mode according to the rules) + * @param strength The default collation strength; one of UCOL_PRIMARY, UCOL_SECONDARY, + * UCOL_TERTIARY, UCOL_IDENTICAL,UCOL_DEFAULT_STRENGTH - can be also set in the rules. + * @param parseError A pointer to UParseError to recieve information about errors + * occurred during parsing. This argument can currently be set + * to NULL, but at users own risk. Please provide a real structure. + * @param status A pointer to a UErrorCode to receive any errors + * @return A pointer to a UCollator. It is not guaranteed that NULL be returned in case + * of error - please use status argument to check for errors. + * @see ucol_open + * @see ucol_safeClone + * @see ucol_close + * @stable ICU 2.0 + */ +U_STABLE UCollator* U_EXPORT2 +ucol_openRules( const UChar *rules, + int32_t rulesLength, + UColAttributeValue normalizationMode, + UCollationStrength strength, + UParseError *parseError, + UErrorCode *status); + + + +/** + * Get a set containing the expansions defined by the collator. The set includes + * both the root collator's expansions and the expansions defined by the tailoring + * @param coll collator + * @param contractions if not NULL, the set to hold the contractions + * @param expansions if not NULL, the set to hold the expansions + * @param addPrefixes add the prefix contextual elements to contractions + * @param status to hold the error code + * + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +ucol_getContractionsAndExpansions( const UCollator *coll, + USet *contractions, USet *expansions, + UBool addPrefixes, UErrorCode *status); + +/** + * Close a UCollator. + * Once closed, a UCollator should not be used. Every open collator should + * be closed. Otherwise, a memory leak will result. + * @param coll The UCollator to close. + * @see ucol_open + * @see ucol_openRules + * @see ucol_safeClone + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucol_close(UCollator *coll); + + +/** + * Compare two strings. + * The strings will be compared using the options already specified. + * @param coll The UCollator containing the comparison rules. + * @param source The source string. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param target The target string. + * @param targetLength The length of target, or -1 if null-terminated. + * @return The result of comparing the strings; one of UCOL_EQUAL, + * UCOL_GREATER, UCOL_LESS + * @see ucol_greater + * @see ucol_greaterOrEqual + * @see ucol_equal + * @stable ICU 2.0 + */ +U_STABLE UCollationResult U_EXPORT2 +ucol_strcoll( const UCollator *coll, + const UChar *source, + int32_t sourceLength, + const UChar *target, + int32_t targetLength); + +/** +* Compare two strings in UTF-8. +* The strings will be compared using the options already specified. +* Note: When input string contains malformed a UTF-8 byte sequence, +* this function treats these bytes as REPLACEMENT CHARACTER (U+FFFD). +* @param coll The UCollator containing the comparison rules. +* @param source The source UTF-8 string. +* @param sourceLength The length of source, or -1 if null-terminated. +* @param target The target UTF-8 string. +* @param targetLength The length of target, or -1 if null-terminated. +* @param status A pointer to a UErrorCode to receive any errors +* @return The result of comparing the strings; one of UCOL_EQUAL, +* UCOL_GREATER, UCOL_LESS +* @see ucol_greater +* @see ucol_greaterOrEqual +* @see ucol_equal +* @stable ICU 50 +*/ +U_STABLE UCollationResult U_EXPORT2 +ucol_strcollUTF8( + const UCollator *coll, + const char *source, + int32_t sourceLength, + const char *target, + int32_t targetLength, + UErrorCode *status); + +/** + * Determine if one string is greater than another. + * This function is equivalent to {@link #ucol_strcoll } == UCOL_GREATER + * @param coll The UCollator containing the comparison rules. + * @param source The source string. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param target The target string. + * @param targetLength The length of target, or -1 if null-terminated. + * @return TRUE if source is greater than target, FALSE otherwise. + * @see ucol_strcoll + * @see ucol_greaterOrEqual + * @see ucol_equal + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +ucol_greater(const UCollator *coll, + const UChar *source, int32_t sourceLength, + const UChar *target, int32_t targetLength); + +/** + * Determine if one string is greater than or equal to another. + * This function is equivalent to {@link #ucol_strcoll } != UCOL_LESS + * @param coll The UCollator containing the comparison rules. + * @param source The source string. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param target The target string. + * @param targetLength The length of target, or -1 if null-terminated. + * @return TRUE if source is greater than or equal to target, FALSE otherwise. + * @see ucol_strcoll + * @see ucol_greater + * @see ucol_equal + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +ucol_greaterOrEqual(const UCollator *coll, + const UChar *source, int32_t sourceLength, + const UChar *target, int32_t targetLength); + +/** + * Compare two strings for equality. + * This function is equivalent to {@link #ucol_strcoll } == UCOL_EQUAL + * @param coll The UCollator containing the comparison rules. + * @param source The source string. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param target The target string. + * @param targetLength The length of target, or -1 if null-terminated. + * @return TRUE if source is equal to target, FALSE otherwise + * @see ucol_strcoll + * @see ucol_greater + * @see ucol_greaterOrEqual + * @stable ICU 2.0 + */ +U_STABLE UBool U_EXPORT2 +ucol_equal(const UCollator *coll, + const UChar *source, int32_t sourceLength, + const UChar *target, int32_t targetLength); + +/** + * Compare two UTF-8 encoded trings. + * The strings will be compared using the options already specified. + * @param coll The UCollator containing the comparison rules. + * @param sIter The source string iterator. + * @param tIter The target string iterator. + * @return The result of comparing the strings; one of UCOL_EQUAL, + * UCOL_GREATER, UCOL_LESS + * @param status A pointer to a UErrorCode to receive any errors + * @see ucol_strcoll + * @stable ICU 2.6 + */ +U_STABLE UCollationResult U_EXPORT2 +ucol_strcollIter( const UCollator *coll, + UCharIterator *sIter, + UCharIterator *tIter, + UErrorCode *status); + +/** + * Get the collation strength used in a UCollator. + * The strength influences how strings are compared. + * @param coll The UCollator to query. + * @return The collation strength; one of UCOL_PRIMARY, UCOL_SECONDARY, + * UCOL_TERTIARY, UCOL_QUATERNARY, UCOL_IDENTICAL + * @see ucol_setStrength + * @stable ICU 2.0 + */ +U_STABLE UCollationStrength U_EXPORT2 +ucol_getStrength(const UCollator *coll); + +/** + * Set the collation strength used in a UCollator. + * The strength influences how strings are compared. + * @param coll The UCollator to set. + * @param strength The desired collation strength; one of UCOL_PRIMARY, + * UCOL_SECONDARY, UCOL_TERTIARY, UCOL_QUATERNARY, UCOL_IDENTICAL, UCOL_DEFAULT + * @see ucol_getStrength + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucol_setStrength(UCollator *coll, + UCollationStrength strength); + +/** + * Retrieves the reordering codes for this collator. + * These reordering codes are a combination of UScript codes and UColReorderCode entries. + * @param coll The UCollator to query. + * @param dest The array to fill with the script ordering. + * @param destCapacity The length of dest. If it is 0, then dest may be NULL and the function + * will only return the length of the result without writing any codes (pre-flighting). + * @param pErrorCode Must be a valid pointer to an error code value, which must not indicate a + * failure before the function call. + * @return The number of reordering codes written to the dest array. + * @see ucol_setReorderCodes + * @see ucol_getEquivalentReorderCodes + * @see UScriptCode + * @see UColReorderCode + * @stable ICU 4.8 + */ +U_STABLE int32_t U_EXPORT2 +ucol_getReorderCodes(const UCollator* coll, + int32_t* dest, + int32_t destCapacity, + UErrorCode *pErrorCode); +/** + * Sets the reordering codes for this collator. + * Collation reordering allows scripts and some other groups of characters + * to be moved relative to each other. This reordering is done on top of + * the DUCET/CLDR standard collation order. Reordering can specify groups to be placed + * at the start and/or the end of the collation order. These groups are specified using + * UScript codes and UColReorderCode entries. + * + *

By default, reordering codes specified for the start of the order are placed in the + * order given after several special non-script blocks. These special groups of characters + * are space, punctuation, symbol, currency, and digit. These special groups are represented with + * UColReorderCode entries. Script groups can be intermingled with + * these special non-script groups if those special groups are explicitly specified in the reordering. + * + *

The special code OTHERS stands for any script that is not explicitly + * mentioned in the list of reordering codes given. Anything that is after OTHERS + * will go at the very end of the reordering in the order given. + * + *

The special reorder code DEFAULT will reset the reordering for this collator + * to the default for this collator. The default reordering may be the DUCET/CLDR order or may be a reordering that + * was specified when this collator was created from resource data or from rules. The + * DEFAULT code must be the sole code supplied when it is used. + * If not, then U_ILLEGAL_ARGUMENT_ERROR will be set. + * + *

The special reorder code NONE will remove any reordering for this collator. + * The result of setting no reordering will be to have the DUCET/CLDR ordering used. The + * NONE code must be the sole code supplied when it is used. + * + * @param coll The UCollator to set. + * @param reorderCodes An array of script codes in the new order. This can be NULL if the + * length is also set to 0. An empty array will clear any reordering codes on the collator. + * @param reorderCodesLength The length of reorderCodes. + * @param pErrorCode Must be a valid pointer to an error code value, which must not indicate a + * failure before the function call. + * @see ucol_getReorderCodes + * @see ucol_getEquivalentReorderCodes + * @see UScriptCode + * @see UColReorderCode + * @stable ICU 4.8 + */ +U_STABLE void U_EXPORT2 +ucol_setReorderCodes(UCollator* coll, + const int32_t* reorderCodes, + int32_t reorderCodesLength, + UErrorCode *pErrorCode); + +/** + * Retrieves the reorder codes that are grouped with the given reorder code. Some reorder + * codes will be grouped and must reorder together. + * Beginning with ICU 55, scripts only reorder together if they are primary-equal, + * for example Hiragana and Katakana. + * + * @param reorderCode The reorder code to determine equivalence for. + * @param dest The array to fill with the script ordering. + * @param destCapacity The length of dest. If it is 0, then dest may be NULL and the function + * will only return the length of the result without writing any codes (pre-flighting). + * @param pErrorCode Must be a valid pointer to an error code value, which must not indicate + * a failure before the function call. + * @return The number of reordering codes written to the dest array. + * @see ucol_setReorderCodes + * @see ucol_getReorderCodes + * @see UScriptCode + * @see UColReorderCode + * @stable ICU 4.8 + */ +U_STABLE int32_t U_EXPORT2 +ucol_getEquivalentReorderCodes(int32_t reorderCode, + int32_t* dest, + int32_t destCapacity, + UErrorCode *pErrorCode); + +/** + * Get the display name for a UCollator. + * The display name is suitable for presentation to a user. + * @param objLoc The locale of the collator in question. + * @param dispLoc The locale for display. + * @param result A pointer to a buffer to receive the attribute. + * @param resultLength The maximum size of result. + * @param status A pointer to a UErrorCode to receive any errors + * @return The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucol_getDisplayName( const char *objLoc, + const char *dispLoc, + UChar *result, + int32_t resultLength, + UErrorCode *status); + +/** + * Get a locale for which collation rules are available. + * A UCollator in a locale returned by this function will perform the correct + * collation for the locale. + * @param localeIndex The index of the desired locale. + * @return A locale for which collation rules are available, or 0 if none. + * @see ucol_countAvailable + * @stable ICU 2.0 + */ +U_STABLE const char* U_EXPORT2 +ucol_getAvailable(int32_t localeIndex); + +/** + * Determine how many locales have collation rules available. + * This function is most useful as determining the loop ending condition for + * calls to {@link #ucol_getAvailable }. + * @return The number of locales for which collation rules are available. + * @see ucol_getAvailable + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucol_countAvailable(void); + +#if !UCONFIG_NO_SERVICE +/** + * Create a string enumerator of all locales for which a valid + * collator may be opened. + * @param status input-output error code + * @return a string enumeration over locale strings. The caller is + * responsible for closing the result. + * @stable ICU 3.0 + */ +U_STABLE UEnumeration* U_EXPORT2 +ucol_openAvailableLocales(UErrorCode *status); +#endif + +/** + * Create a string enumerator of all possible keywords that are relevant to + * collation. At this point, the only recognized keyword for this + * service is "collation". + * @param status input-output error code + * @return a string enumeration over locale strings. The caller is + * responsible for closing the result. + * @stable ICU 3.0 + */ +U_STABLE UEnumeration* U_EXPORT2 +ucol_getKeywords(UErrorCode *status); + +/** + * Given a keyword, create a string enumeration of all values + * for that keyword that are currently in use. + * @param keyword a particular keyword as enumerated by + * ucol_getKeywords. If any other keyword is passed in, *status is set + * to U_ILLEGAL_ARGUMENT_ERROR. + * @param status input-output error code + * @return a string enumeration over collation keyword values, or NULL + * upon error. The caller is responsible for closing the result. + * @stable ICU 3.0 + */ +U_STABLE UEnumeration* U_EXPORT2 +ucol_getKeywordValues(const char *keyword, UErrorCode *status); + +/** + * Given a key and a locale, returns an array of string values in a preferred + * order that would make a difference. These are all and only those values where + * the open (creation) of the service with the locale formed from the input locale + * plus input keyword and that value has different behavior than creation with the + * input locale alone. + * @param key one of the keys supported by this service. For now, only + * "collation" is supported. + * @param locale the locale + * @param commonlyUsed if set to true it will return only commonly used values + * with the given locale in preferred order. Otherwise, + * it will return all the available values for the locale. + * @param status error status + * @return a string enumeration over keyword values for the given key and the locale. + * @stable ICU 4.2 + */ +U_STABLE UEnumeration* U_EXPORT2 +ucol_getKeywordValuesForLocale(const char* key, + const char* locale, + UBool commonlyUsed, + UErrorCode* status); + +/** + * Return the functionally equivalent locale for the specified + * input locale, with respect to given keyword, for the + * collation service. If two different input locale + keyword + * combinations produce the same result locale, then collators + * instantiated for these two different input locales will behave + * equivalently. The converse is not always true; two collators + * may in fact be equivalent, but return different results, due to + * internal details. The return result has no other meaning than + * that stated above, and implies nothing as to the relationship + * between the two locales. This is intended for use by + * applications who wish to cache collators, or otherwise reuse + * collators when possible. The functional equivalent may change + * over time. For more information, please see the + * Locales and Services section of the ICU User Guide. + * @param result fillin for the functionally equivalent result locale + * @param resultCapacity capacity of the fillin buffer + * @param keyword a particular keyword as enumerated by + * ucol_getKeywords. + * @param locale the specified input locale + * @param isAvailable if non-NULL, pointer to a fillin parameter that + * on return indicates whether the specified input locale was 'available' + * to the collation service. A locale is defined as 'available' if it + * physically exists within the collation locale data. + * @param status pointer to input-output error code + * @return the actual buffer size needed for the locale. If greater + * than resultCapacity, the returned full name will be truncated and + * an error code will be returned. + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +ucol_getFunctionalEquivalent(char* result, int32_t resultCapacity, + const char* keyword, const char* locale, + UBool* isAvailable, UErrorCode* status); + +/** + * Get the collation tailoring rules from a UCollator. + * The rules will follow the rule syntax. + * @param coll The UCollator to query. + * @param length + * @return The collation tailoring rules. + * @stable ICU 2.0 + */ +U_STABLE const UChar* U_EXPORT2 +ucol_getRules( const UCollator *coll, + int32_t *length); + + + +/** + * Get a sort key for a string from a UCollator. + * Sort keys may be compared using strcmp. + * + * Note that sort keys are often less efficient than simply doing comparison. + * For more details, see the ICU User Guide. + * + * Like ICU functions that write to an output buffer, the buffer contents + * is undefined if the buffer capacity (resultLength parameter) is too small. + * Unlike ICU functions that write a string to an output buffer, + * the terminating zero byte is counted in the sort key length. + * @param coll The UCollator containing the collation rules. + * @param source The string to transform. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param result A pointer to a buffer to receive the attribute. + * @param resultLength The maximum size of result. + * @return The size needed to fully store the sort key. + * If there was an internal error generating the sort key, + * a zero value is returned. + * @see ucol_keyHashCode + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucol_getSortKey(const UCollator *coll, + const UChar *source, + int32_t sourceLength, + uint8_t *result, + int32_t resultLength); + + +/** Gets the next count bytes of a sort key. Caller needs + * to preserve state array between calls and to provide + * the same type of UCharIterator set with the same string. + * The destination buffer provided must be big enough to store + * the number of requested bytes. + * + * The generated sort key may or may not be compatible with + * sort keys generated using ucol_getSortKey(). + * @param coll The UCollator containing the collation rules. + * @param iter UCharIterator containing the string we need + * the sort key to be calculated for. + * @param state Opaque state of sortkey iteration. + * @param dest Buffer to hold the resulting sortkey part + * @param count number of sort key bytes required. + * @param status error code indicator. + * @return the actual number of bytes of a sortkey. It can be + * smaller than count if we have reached the end of + * the sort key. + * @stable ICU 2.6 + */ +U_STABLE int32_t U_EXPORT2 +ucol_nextSortKeyPart(const UCollator *coll, + UCharIterator *iter, + uint32_t state[2], + uint8_t *dest, int32_t count, + UErrorCode *status); + +/** enum that is taken by ucol_getBound API + * See below for explanation + * do not change the values assigned to the + * members of this enum. Underlying code + * depends on them having these numbers + * @stable ICU 2.0 + */ +typedef enum { + /** lower bound */ + UCOL_BOUND_LOWER = 0, + /** upper bound that will match strings of exact size */ + UCOL_BOUND_UPPER = 1, + /** upper bound that will match all the strings that have the same initial substring as the given string */ + UCOL_BOUND_UPPER_LONG = 2, + UCOL_BOUND_VALUE_COUNT +} UColBoundMode; + +/** + * Produce a bound for a given sortkey and a number of levels. + * Return value is always the number of bytes needed, regardless of + * whether the result buffer was big enough or even valid.
+ * Resulting bounds can be used to produce a range of strings that are + * between upper and lower bounds. For example, if bounds are produced + * for a sortkey of string "smith", strings between upper and lower + * bounds with one level would include "Smith", "SMITH", "sMiTh".
+ * There are two upper bounds that can be produced. If UCOL_BOUND_UPPER + * is produced, strings matched would be as above. However, if bound + * produced using UCOL_BOUND_UPPER_LONG is used, the above example will + * also match "Smithsonian" and similar.
+ * For more on usage, see example in cintltst/capitst.c in procedure + * TestBounds. + * Sort keys may be compared using strcmp. + * @param source The source sortkey. + * @param sourceLength The length of source, or -1 if null-terminated. + * (If an unmodified sortkey is passed, it is always null + * terminated). + * @param boundType Type of bound required. It can be UCOL_BOUND_LOWER, which + * produces a lower inclusive bound, UCOL_BOUND_UPPER, that + * produces upper bound that matches strings of the same length + * or UCOL_BOUND_UPPER_LONG that matches strings that have the + * same starting substring as the source string. + * @param noOfLevels Number of levels required in the resulting bound (for most + * uses, the recommended value is 1). See users guide for + * explanation on number of levels a sortkey can have. + * @param result A pointer to a buffer to receive the resulting sortkey. + * @param resultLength The maximum size of result. + * @param status Used for returning error code if something went wrong. If the + * number of levels requested is higher than the number of levels + * in the source key, a warning (U_SORT_KEY_TOO_SHORT_WARNING) is + * issued. + * @return The size needed to fully store the bound. + * @see ucol_keyHashCode + * @stable ICU 2.1 + */ +U_STABLE int32_t U_EXPORT2 +ucol_getBound(const uint8_t *source, + int32_t sourceLength, + UColBoundMode boundType, + uint32_t noOfLevels, + uint8_t *result, + int32_t resultLength, + UErrorCode *status); + +/** + * Gets the version information for a Collator. Version is currently + * an opaque 32-bit number which depends, among other things, on major + * versions of the collator tailoring and UCA. + * @param coll The UCollator to query. + * @param info the version # information, the result will be filled in + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucol_getVersion(const UCollator* coll, UVersionInfo info); + +/** + * Gets the UCA version information for a Collator. Version is the + * UCA version number (3.1.1, 4.0). + * @param coll The UCollator to query. + * @param info the version # information, the result will be filled in + * @stable ICU 2.8 + */ +U_STABLE void U_EXPORT2 +ucol_getUCAVersion(const UCollator* coll, UVersionInfo info); + +/** + * Merges two sort keys. The levels are merged with their corresponding counterparts + * (primaries with primaries, secondaries with secondaries etc.). Between the values + * from the same level a separator is inserted. + * + * This is useful, for example, for combining sort keys from first and last names + * to sort such pairs. + * See http://www.unicode.org/reports/tr10/#Merging_Sort_Keys + * + * The recommended way to achieve "merged" sorting is by + * concatenating strings with U+FFFE between them. + * The concatenation has the same sort order as the merged sort keys, + * but merge(getSortKey(str1), getSortKey(str2)) may differ from getSortKey(str1 + '\uFFFE' + str2). + * Using strings with U+FFFE may yield shorter sort keys. + * + * For details about Sort Key Features see + * http://userguide.icu-project.org/collation/api#TOC-Sort-Key-Features + * + * It is possible to merge multiple sort keys by consecutively merging + * another one with the intermediate result. + * + * The length of the merge result is the sum of the lengths of the input sort keys. + * + * Example (uncompressed): + *

191B1D 01 050505 01 910505 00
+ * 1F2123 01 050505 01 910505 00
+ * will be merged as + *
191B1D 02 1F2123 01 050505 02 050505 01 910505 02 910505 00
+ * + * If the destination buffer is not big enough, then its contents are undefined. + * If any of source lengths are zero or any of the source pointers are NULL/undefined, + * the result is of size zero. + * + * @param src1 the first sort key + * @param src1Length the length of the first sort key, including the zero byte at the end; + * can be -1 if the function is to find the length + * @param src2 the second sort key + * @param src2Length the length of the second sort key, including the zero byte at the end; + * can be -1 if the function is to find the length + * @param dest the buffer where the merged sort key is written, + * can be NULL if destCapacity==0 + * @param destCapacity the number of bytes in the dest buffer + * @return the length of the merged sort key, src1Length+src2Length; + * can be larger than destCapacity, or 0 if an error occurs (only for illegal arguments), + * in which cases the contents of dest is undefined + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucol_mergeSortkeys(const uint8_t *src1, int32_t src1Length, + const uint8_t *src2, int32_t src2Length, + uint8_t *dest, int32_t destCapacity); + +/** + * Universal attribute setter + * @param coll collator which attributes are to be changed + * @param attr attribute type + * @param value attribute value + * @param status to indicate whether the operation went on smoothly or there were errors + * @see UColAttribute + * @see UColAttributeValue + * @see ucol_getAttribute + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status); + +/** + * Universal attribute getter + * @param coll collator which attributes are to be changed + * @param attr attribute type + * @return attribute value + * @param status to indicate whether the operation went on smoothly or there were errors + * @see UColAttribute + * @see UColAttributeValue + * @see ucol_setAttribute + * @stable ICU 2.0 + */ +U_STABLE UColAttributeValue U_EXPORT2 +ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status); + +/** + * Sets the variable top to the top of the specified reordering group. + * The variable top determines the highest-sorting character + * which is affected by UCOL_ALTERNATE_HANDLING. + * If that attribute is set to UCOL_NON_IGNORABLE, then the variable top has no effect. + * @param coll the collator + * @param group one of UCOL_REORDER_CODE_SPACE, UCOL_REORDER_CODE_PUNCTUATION, + * UCOL_REORDER_CODE_SYMBOL, UCOL_REORDER_CODE_CURRENCY; + * or UCOL_REORDER_CODE_DEFAULT to restore the default max variable group + * @param pErrorCode Standard ICU error code. Its input value must + * pass the U_SUCCESS() test, or else the function returns + * immediately. Check for U_FAILURE() on output or use with + * function chaining. (See User Guide for details.) + * @see ucol_getMaxVariable + * @stable ICU 53 + */ +U_STABLE void U_EXPORT2 +ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode); + +/** + * Returns the maximum reordering group whose characters are affected by UCOL_ALTERNATE_HANDLING. + * @param coll the collator + * @return the maximum variable reordering group. + * @see ucol_setMaxVariable + * @stable ICU 53 + */ +U_STABLE UColReorderCode U_EXPORT2 +ucol_getMaxVariable(const UCollator *coll); + + +/** + * Gets the variable top value of a Collator. + * @param coll collator which variable top needs to be retrieved + * @param status error code (not changed by function). If error code is set, + * the return value is undefined. + * @return the variable top primary weight + * @see ucol_getMaxVariable + * @see ucol_setVariableTop + * @see ucol_restoreVariableTop + * @stable ICU 2.0 + */ +U_STABLE uint32_t U_EXPORT2 ucol_getVariableTop(const UCollator *coll, UErrorCode *status); + + +/** + * Thread safe cloning operation. The result is a clone of a given collator. + * @param coll collator to be cloned + * @param stackBuffer Deprecated functionality as of ICU 52, use NULL.
+ * user allocated space for the new clone. + * If NULL new memory will be allocated. + * If buffer is not large enough, new memory will be allocated. + * Clients can use the U_COL_SAFECLONE_BUFFERSIZE. + * @param pBufferSize Deprecated functionality as of ICU 52, use NULL or 1.
+ * pointer to size of allocated space. + * If *pBufferSize == 0, a sufficient size for use in cloning will + * be returned ('pre-flighting') + * If *pBufferSize is not enough for a stack-based safe clone, + * new memory will be allocated. + * @param status to indicate whether the operation went on smoothly or there were errors + * An informational status value, U_SAFECLONE_ALLOCATED_ERROR, is used if any + * allocations were necessary. + * @return pointer to the new clone + * @see ucol_open + * @see ucol_openRules + * @see ucol_close + * @stable ICU 2.0 + */ +U_STABLE UCollator* U_EXPORT2 +ucol_safeClone(const UCollator *coll, + void *stackBuffer, + int32_t *pBufferSize, + UErrorCode *status); + + +/** + * Returns current rules. Delta defines whether full rules are returned or just the tailoring. + * Returns number of UChars needed to store rules. If buffer is NULL or bufferLen is not enough + * to store rules, will store up to available space. + * + * ucol_getRules() should normally be used instead. + * See http://userguide.icu-project.org/collation/customization#TOC-Building-on-Existing-Locales + * @param coll collator to get the rules from + * @param delta one of UCOL_TAILORING_ONLY, UCOL_FULL_RULES. + * @param buffer buffer to store the result in. If NULL, you'll get no rules. + * @param bufferLen length of buffer to store rules in. If less than needed you'll get only the part that fits in. + * @return current rules + * @stable ICU 2.0 + * @see UCOL_FULL_RULES + */ +U_STABLE int32_t U_EXPORT2 +ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen); + + +/** + * gets the locale name of the collator. If the collator + * is instantiated from the rules, then this function returns + * NULL. + * @param coll The UCollator for which the locale is needed + * @param type You can choose between requested, valid and actual + * locale. For description see the definition of + * ULocDataLocaleType in uloc.h + * @param status error code of the operation + * @return real locale name from which the collation data comes. + * If the collator was instantiated from rules, returns + * NULL. + * @stable ICU 2.8 + */ +U_STABLE const char * U_EXPORT2 +ucol_getLocaleByType(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status); + +/** + * Get a Unicode set that contains all the characters and sequences tailored in + * this collator. The result must be disposed of by using uset_close. + * @param coll The UCollator for which we want to get tailored chars + * @param status error code of the operation + * @return a pointer to newly created USet. Must be be disposed by using uset_close + * @see ucol_openRules + * @see uset_close + * @stable ICU 2.4 + */ +U_STABLE USet * U_EXPORT2 +ucol_getTailoredSet(const UCollator *coll, UErrorCode *status); + + +/** Creates a binary image of a collator. This binary image can be stored and + * later used to instantiate a collator using ucol_openBinary. + * This API supports preflighting. + * @param coll Collator + * @param buffer a fill-in buffer to receive the binary image + * @param capacity capacity of the destination buffer + * @param status for catching errors + * @return size of the image + * @see ucol_openBinary + * @stable ICU 3.2 + */ +U_STABLE int32_t U_EXPORT2 +ucol_cloneBinary(const UCollator *coll, + uint8_t *buffer, int32_t capacity, + UErrorCode *status); + +/** Opens a collator from a collator binary image created using + * ucol_cloneBinary. Binary image used in instantiation of the + * collator remains owned by the user and should stay around for + * the lifetime of the collator. The API also takes a base collator + * which must be the root collator. + * @param bin binary image owned by the user and required through the + * lifetime of the collator + * @param length size of the image. If negative, the API will try to + * figure out the length of the image + * @param base Base collator, for lookup of untailored characters. + * Must be the root collator, must not be NULL. + * The base is required to be present through the lifetime of the collator. + * @param status for catching errors + * @return newly created collator + * @see ucol_cloneBinary + * @stable ICU 3.2 + */ +U_STABLE UCollator* U_EXPORT2 +ucol_openBinary(const uint8_t *bin, int32_t length, + const UCollator *base, + UErrorCode *status); + + +#endif /* #if !UCONFIG_NO_COLLATION */ + +#endif + +// ucoleitr.h +/* +******************************************************************************* +* Copyright (C) 2001-2014, International Business Machines +* Corporation and others. All Rights Reserved. +******************************************************************************* +* +* File ucoleitr.h +* +* Modification History: +* +* Date Name Description +* 02/15/2001 synwee Modified all methods to process its own function +* instead of calling the equivalent c++ api (coleitr.h) +*******************************************************************************/ + +#ifndef UCOLEITR_H +#define UCOLEITR_H + + +#if !UCONFIG_NO_COLLATION + +/** + * This indicates an error has occured during processing or if no more CEs is + * to be returned. + * @stable ICU 2.0 + */ +#define UCOL_NULLORDER ((int32_t)0xFFFFFFFF) + + +/** + * The UCollationElements struct. + * For usage in C programs. + * @stable ICU 2.0 + */ +typedef struct UCollationElements UCollationElements; + +/** + * \file + * \brief C API: UCollationElements + * + * The UCollationElements API is used as an iterator to walk through each + * character of an international string. Use the iterator to return the + * ordering priority of the positioned character. The ordering priority of a + * character, which we refer to as a key, defines how a character is collated + * in the given collation object. + * For example, consider the following in Slovak and in traditional Spanish collation: + *
+ * .       "ca" -> the first key is key('c') and second key is key('a').
+ * .       "cha" -> the first key is key('ch') and second key is key('a').
+ * 
+ * And in German phonebook collation, + *
+ * .       "b"-> the first key is key('a'), the second key is key('e'), and
+ * .       the third key is key('b').
+ * 
+ *

Example of the iterator usage: (without error checking) + *

+ * .  void CollationElementIterator_Example()
+ * .  {
+ * .      UChar *s;
+ * .      t_int32 order, primaryOrder;
+ * .      UCollationElements *c;
+ * .      UCollatorOld *coll;
+ * .      UErrorCode success = U_ZERO_ERROR;
+ * .      s=(UChar*)malloc(sizeof(UChar) * (strlen("This is a test")+1) );
+ * .      u_uastrcpy(s, "This is a test");
+ * .      coll = ucol_open(NULL, &success);
+ * .      c = ucol_openElements(coll, str, u_strlen(str), &status);
+ * .      order = ucol_next(c, &success);
+ * .      ucol_reset(c);
+ * .      order = ucol_prev(c, &success);
+ * .      free(s);
+ * .      ucol_close(coll);
+ * .      ucol_closeElements(c);
+ * .  }
+ * 
+ *

+ * ucol_next() returns the collation order of the next. + * ucol_prev() returns the collation order of the previous character. + * The Collation Element Iterator moves only in one direction between calls to + * ucol_reset. That is, ucol_next() and ucol_prev can not be inter-used. + * Whenever ucol_prev is to be called after ucol_next() or vice versa, + * ucol_reset has to be called first to reset the status, shifting pointers to + * either the end or the start of the string. Hence at the next call of + * ucol_prev or ucol_next, the first or last collation order will be returned. + * If a change of direction is done without a ucol_reset, the result is + * undefined. + * The result of a forward iterate (ucol_next) and reversed result of the + * backward iterate (ucol_prev) on the same string are equivalent, if + * collation orders with the value 0 are ignored. + * Character based on the comparison level of the collator. A collation order + * consists of primary order, secondary order and tertiary order. The data + * type of the collation order is int32_t. + * + * @see UCollator + */ + +/** + * Open the collation elements for a string. + * + * @param coll The collator containing the desired collation rules. + * @param text The text to iterate over. + * @param textLength The number of characters in text, or -1 if null-terminated + * @param status A pointer to a UErrorCode to receive any errors. + * @return a struct containing collation element information + * @stable ICU 2.0 + */ +U_STABLE UCollationElements* U_EXPORT2 +ucol_openElements(const UCollator *coll, + const UChar *text, + int32_t textLength, + UErrorCode *status); + + +/** + * get a hash code for a key... Not very useful! + * @param key the given key. + * @param length the size of the key array. + * @return the hash code. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucol_keyHashCode(const uint8_t* key, int32_t length); + +/** + * Close a UCollationElements. + * Once closed, a UCollationElements may no longer be used. + * @param elems The UCollationElements to close. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucol_closeElements(UCollationElements *elems); + +/** + * Reset the collation elements to their initial state. + * This will move the 'cursor' to the beginning of the text. + * Property settings for collation will be reset to the current status. + * @param elems The UCollationElements to reset. + * @see ucol_next + * @see ucol_previous + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucol_reset(UCollationElements *elems); + +/** + * Get the ordering priority of the next collation element in the text. + * A single character may contain more than one collation element. + * @param elems The UCollationElements containing the text. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The next collation elements ordering, otherwise returns NULLORDER + * if an error has occured or if the end of string has been reached + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucol_next(UCollationElements *elems, UErrorCode *status); + +/** + * Get the ordering priority of the previous collation element in the text. + * A single character may contain more than one collation element. + * Note that internally a stack is used to store buffered collation elements. + * @param elems The UCollationElements containing the text. + * @param status A pointer to a UErrorCode to receive any errors. Noteably + * a U_BUFFER_OVERFLOW_ERROR is returned if the internal stack + * buffer has been exhausted. + * @return The previous collation elements ordering, otherwise returns + * NULLORDER if an error has occured or if the start of string has + * been reached. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucol_previous(UCollationElements *elems, UErrorCode *status); + +/** + * Get the maximum length of any expansion sequences that end with the + * specified comparison order. + * This is useful for .... ? + * @param elems The UCollationElements containing the text. + * @param order A collation order returned by previous or next. + * @return maximum size of the expansion sequences ending with the collation + * element or 1 if collation element does not occur at the end of any + * expansion sequence + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucol_getMaxExpansion(const UCollationElements *elems, int32_t order); + +/** + * Set the text containing the collation elements. + * Property settings for collation will remain the same. + * In order to reset the iterator to the current collation property settings, + * the API reset() has to be called. + * @param elems The UCollationElements to set. + * @param text The source text containing the collation elements. + * @param textLength The length of text, or -1 if null-terminated. + * @param status A pointer to a UErrorCode to receive any errors. + * @see ucol_getText + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucol_setText( UCollationElements *elems, + const UChar *text, + int32_t textLength, + UErrorCode *status); + +/** + * Get the offset of the current source character. + * This is an offset into the text of the character containing the current + * collation elements. + * @param elems The UCollationElements to query. + * @return The offset of the current source character. + * @see ucol_setOffset + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +ucol_getOffset(const UCollationElements *elems); + +/** + * Set the offset of the current source character. + * This is an offset into the text of the character to be processed. + * Property settings for collation will remain the same. + * In order to reset the iterator to the current collation property settings, + * the API reset() has to be called. + * @param elems The UCollationElements to set. + * @param offset The desired character offset. + * @param status A pointer to a UErrorCode to receive any errors. + * @see ucol_getOffset + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +ucol_setOffset(UCollationElements *elems, + int32_t offset, + UErrorCode *status); + +/** +* Get the primary order of a collation order. +* @param order the collation order +* @return the primary order of a collation order. +* @stable ICU 2.6 +*/ +U_STABLE int32_t U_EXPORT2 +ucol_primaryOrder (int32_t order); + +/** +* Get the secondary order of a collation order. +* @param order the collation order +* @return the secondary order of a collation order. +* @stable ICU 2.6 +*/ +U_STABLE int32_t U_EXPORT2 +ucol_secondaryOrder (int32_t order); + +/** +* Get the tertiary order of a collation order. +* @param order the collation order +* @return the tertiary order of a collation order. +* @stable ICU 2.6 +*/ +U_STABLE int32_t U_EXPORT2 +ucol_tertiaryOrder (int32_t order); + +#endif /* #if !UCONFIG_NO_COLLATION */ + +#endif + +// ucsdet.h +/* + ********************************************************************** + * Copyright (C) 2005-2013, International Business Machines + * Corporation and others. All Rights Reserved. + ********************************************************************** + * file name: ucsdet.h + * encoding: US-ASCII + * indentation:4 + * + * created on: 2005Aug04 + * created by: Andy Heninger + * + * ICU Character Set Detection, API for C + * + * Draft version 18 Oct 2005 + * + */ + +#ifndef __UCSDET_H +#define __UCSDET_H + + +#if !UCONFIG_NO_CONVERSION + + +/** + * \file + * \brief C API: Charset Detection API + * + * This API provides a facility for detecting the + * charset or encoding of character data in an unknown text format. + * The input data can be from an array of bytes. + *

+ * Character set detection is at best an imprecise operation. The detection + * process will attempt to identify the charset that best matches the characteristics + * of the byte data, but the process is partly statistical in nature, and + * the results can not be guaranteed to always be correct. + *

+ * For best accuracy in charset detection, the input data should be primarily + * in a single language, and a minimum of a few hundred bytes worth of plain text + * in the language are needed. The detection process will attempt to + * ignore html or xml style markup that could otherwise obscure the content. + */ + + +struct UCharsetDetector; +/** + * Structure representing a charset detector + * @stable ICU 3.6 + */ +typedef struct UCharsetDetector UCharsetDetector; + +struct UCharsetMatch; +/** + * Opaque structure representing a match that was identified + * from a charset detection operation. + * @stable ICU 3.6 + */ +typedef struct UCharsetMatch UCharsetMatch; + +/** + * Open a charset detector. + * + * @param status Any error conditions occurring during the open + * operation are reported back in this variable. + * @return the newly opened charset detector. + * @stable ICU 3.6 + */ +U_STABLE UCharsetDetector * U_EXPORT2 +ucsdet_open(UErrorCode *status); + +/** + * Close a charset detector. All storage and any other resources + * owned by this charset detector will be released. Failure to + * close a charset detector when finished with it can result in + * memory leaks in the application. + * + * @param ucsd The charset detector to be closed. + * @stable ICU 3.6 + */ +U_STABLE void U_EXPORT2 +ucsdet_close(UCharsetDetector *ucsd); + + +/** + * Set the input byte data whose charset is to detected. + * + * Ownership of the input text byte array remains with the caller. + * The input string must not be altered or deleted until the charset + * detector is either closed or reset to refer to different input text. + * + * @param ucsd the charset detector to be used. + * @param textIn the input text of unknown encoding. . + * @param len the length of the input text, or -1 if the text + * is NUL terminated. + * @param status any error conditions are reported back in this variable. + * + * @stable ICU 3.6 + */ +U_STABLE void U_EXPORT2 +ucsdet_setText(UCharsetDetector *ucsd, const char *textIn, int32_t len, UErrorCode *status); + + +/** Set the declared encoding for charset detection. + * The declared encoding of an input text is an encoding obtained + * by the user from an http header or xml declaration or similar source that + * can be provided as an additional hint to the charset detector. + * + * How and whether the declared encoding will be used during the + * detection process is TBD. + * + * @param ucsd the charset detector to be used. + * @param encoding an encoding for the current data obtained from + * a header or declaration or other source outside + * of the byte data itself. + * @param length the length of the encoding name, or -1 if the name string + * is NUL terminated. + * @param status any error conditions are reported back in this variable. + * + * @stable ICU 3.6 + */ +U_STABLE void U_EXPORT2 +ucsdet_setDeclaredEncoding(UCharsetDetector *ucsd, const char *encoding, int32_t length, UErrorCode *status); + + +/** + * Return the charset that best matches the supplied input data. + * + * Note though, that because the detection + * only looks at the start of the input data, + * there is a possibility that the returned charset will fail to handle + * the full set of input data. + *

+ * The returned UCharsetMatch object is owned by the UCharsetDetector. + * It will remain valid until the detector input is reset, or until + * the detector is closed. + *

+ * The function will fail if + *

    + *
  • no charset appears to match the data.
  • + *
  • no input text has been provided
  • + *
+ * + * @param ucsd the charset detector to be used. + * @param status any error conditions are reported back in this variable. + * @return a UCharsetMatch representing the best matching charset, + * or NULL if no charset matches the byte data. + * + * @stable ICU 3.6 + */ +U_STABLE const UCharsetMatch * U_EXPORT2 +ucsdet_detect(UCharsetDetector *ucsd, UErrorCode *status); + + +/** + * Find all charset matches that appear to be consistent with the input, + * returning an array of results. The results are ordered with the + * best quality match first. + * + * Because the detection only looks at a limited amount of the + * input byte data, some of the returned charsets may fail to handle + * the all of input data. + *

+ * The returned UCharsetMatch objects are owned by the UCharsetDetector. + * They will remain valid until the detector is closed or modified + * + *

+ * Return an error if + *

    + *
  • no charsets appear to match the input data.
  • + *
  • no input text has been provided
  • + *
+ * + * @param ucsd the charset detector to be used. + * @param matchesFound pointer to a variable that will be set to the + * number of charsets identified that are consistent with + * the input data. Output only. + * @param status any error conditions are reported back in this variable. + * @return A pointer to an array of pointers to UCharSetMatch objects. + * This array, and the UCharSetMatch instances to which it refers, + * are owned by the UCharsetDetector, and will remain valid until + * the detector is closed or modified. + * @stable ICU 3.6 + */ +U_STABLE const UCharsetMatch ** U_EXPORT2 +ucsdet_detectAll(UCharsetDetector *ucsd, int32_t *matchesFound, UErrorCode *status); + + + +/** + * Get the name of the charset represented by a UCharsetMatch. + * + * The storage for the returned name string is owned by the + * UCharsetMatch, and will remain valid while the UCharsetMatch + * is valid. + * + * The name returned is suitable for use with the ICU conversion APIs. + * + * @param ucsm The charset match object. + * @param status Any error conditions are reported back in this variable. + * @return The name of the matching charset. + * + * @stable ICU 3.6 + */ +U_STABLE const char * U_EXPORT2 +ucsdet_getName(const UCharsetMatch *ucsm, UErrorCode *status); + +/** + * Get a confidence number for the quality of the match of the byte + * data with the charset. Confidence numbers range from zero to 100, + * with 100 representing complete confidence and zero representing + * no confidence. + * + * The confidence values are somewhat arbitrary. They define an + * an ordering within the results for any single detection operation + * but are not generally comparable between the results for different input. + * + * A confidence value of ten does have a general meaning - it is used + * for charsets that can represent the input data, but for which there + * is no other indication that suggests that the charset is the correct one. + * Pure 7 bit ASCII data, for example, is compatible with a + * great many charsets, most of which will appear as possible matches + * with a confidence of 10. + * + * @param ucsm The charset match object. + * @param status Any error conditions are reported back in this variable. + * @return A confidence number for the charset match. + * + * @stable ICU 3.6 + */ +U_STABLE int32_t U_EXPORT2 +ucsdet_getConfidence(const UCharsetMatch *ucsm, UErrorCode *status); + +/** + * Get the RFC 3066 code for the language of the input data. + * + * The Charset Detection service is intended primarily for detecting + * charsets, not language. For some, but not all, charsets, a language is + * identified as a byproduct of the detection process, and that is what + * is returned by this function. + * + * CAUTION: + * 1. Language information is not available for input data encoded in + * all charsets. In particular, no language is identified + * for UTF-8 input data. + * + * 2. Closely related languages may sometimes be confused. + * + * If more accurate language detection is required, a linguistic + * analysis package should be used. + * + * The storage for the returned name string is owned by the + * UCharsetMatch, and will remain valid while the UCharsetMatch + * is valid. + * + * @param ucsm The charset match object. + * @param status Any error conditions are reported back in this variable. + * @return The RFC 3066 code for the language of the input data, or + * an empty string if the language could not be determined. + * + * @stable ICU 3.6 + */ +U_STABLE const char * U_EXPORT2 +ucsdet_getLanguage(const UCharsetMatch *ucsm, UErrorCode *status); + + +/** + * Get the entire input text as a UChar string, placing it into + * a caller-supplied buffer. A terminating + * NUL character will be appended to the buffer if space is available. + * + * The number of UChars in the output string, not including the terminating + * NUL, is returned. + * + * If the supplied buffer is smaller than required to hold the output, + * the contents of the buffer are undefined. The full output string length + * (in UChars) is returned as always, and can be used to allocate a buffer + * of the correct size. + * + * + * @param ucsm The charset match object. + * @param buf A UChar buffer to be filled with the converted text data. + * @param cap The capacity of the buffer in UChars. + * @param status Any error conditions are reported back in this variable. + * @return The number of UChars in the output string. + * + * @stable ICU 3.6 + */ +U_STABLE int32_t U_EXPORT2 +ucsdet_getUChars(const UCharsetMatch *ucsm, + UChar *buf, int32_t cap, UErrorCode *status); + + + +/** + * Get an iterator over the set of all detectable charsets - + * over the charsets that are known to the charset detection + * service. + * + * The returned UEnumeration provides access to the names of + * the charsets. + * + *

+ * The state of the Charset detector that is passed in does not + * affect the result of this function, but requiring a valid, open + * charset detector as a parameter insures that the charset detection + * service has been safely initialized and that the required detection + * data is available. + * + *

+ * Note: Multiple different charset encodings in a same family may use + * a single shared name in this implementation. For example, this method returns + * an array including "ISO-8859-1" (ISO Latin 1), but not including "windows-1252" + * (Windows Latin 1). However, actual detection result could be "windows-1252" + * when the input data matches Latin 1 code points with any points only available + * in "windows-1252". + * + * @param ucsd a Charset detector. + * @param status Any error conditions are reported back in this variable. + * @return an iterator providing access to the detectable charset names. + * @stable ICU 3.6 + */ +U_STABLE UEnumeration * U_EXPORT2 +ucsdet_getAllDetectableCharsets(const UCharsetDetector *ucsd, UErrorCode *status); + +/** + * Test whether input filtering is enabled for this charset detector. + * Input filtering removes text that appears to be HTML or xml + * markup from the input before applying the code page detection + * heuristics. + * + * @param ucsd The charset detector to check. + * @return TRUE if filtering is enabled. + * @stable ICU 3.6 + */ + +U_STABLE UBool U_EXPORT2 +ucsdet_isInputFilterEnabled(const UCharsetDetector *ucsd); + + +/** + * Enable filtering of input text. If filtering is enabled, + * text within angle brackets ("<" and ">") will be removed + * before detection, which will remove most HTML or xml markup. + * + * @param ucsd the charset detector to be modified. + * @param filter true to enable input text filtering. + * @return The previous setting. + * + * @stable ICU 3.6 + */ +U_STABLE UBool U_EXPORT2 +ucsdet_enableInputFilter(UCharsetDetector *ucsd, UBool filter); + + +#endif +#endif /* __UCSDET_H */ + + + +// udateintervalformat.h +/* +***************************************************************************************** +* Copyright (C) 2010-2012,2015 International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UDATEINTERVALFORMAT_H +#define UDATEINTERVALFORMAT_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C API: Format a date interval. + * + * A UDateIntervalFormat is used to format the range between two UDate values + * in a locale-sensitive way, using a skeleton that specifies the precision and + * completeness of the information to show. If the range smaller than the resolution + * specified by the skeleton, a single date format will be produced. If the range + * is larger than the format specified by the skeleton, a locale-specific fallback + * will be used to format the items missing from the skeleton. + * + * For example, if the range is 2010-03-04 07:56 - 2010-03-04 19:56 (12 hours) + * - The skeleton jm will produce + * for en_US, "7:56 AM - 7:56 PM" + * for en_GB, "7:56 - 19:56" + * - The skeleton MMMd will produce + * for en_US, "Mar 4" + * for en_GB, "4 Mar" + * If the range is 2010-03-04 07:56 - 2010-03-08 16:11 (4 days, 8 hours, 15 minutes) + * - The skeleton jm will produce + * for en_US, "3/4/2010 7:56 AM - 3/8/2010 4:11 PM" + * for en_GB, "4/3/2010 7:56 - 8/3/2010 16:11" + * - The skeleton MMMd will produce + * for en_US, "Mar 4-8" + * for en_GB, "4-8 Mar" + * + * Note: the "-" characters in the above sample output will actually be + * Unicode 2013, EN_DASH, in all but the last example. + * + * Note, in ICU 4.4 the standard skeletons for which date interval format data + * is usually available are as follows; best results will be obtained by using + * skeletons from this set, or those formed by combining these standard skeletons + * (note that for these skeletons, the length of digit field such as d, y, or + * M vs MM is irrelevant (but for non-digit fields such as MMM vs MMMM it is + * relevant). Note that a skeleton involving h or H generally explicitly requests + * that time style (12- or 24-hour time respectively). For a skeleton that + * requests the locale's default time style (h or H), use 'j' instead of h or H. + * h, H, hm, Hm, + * hv, Hv, hmv, Hmv, + * d, + * M, MMM, MMMM, + * Md, MMMd, + * MEd, MMMEd, + * y, + * yM, yMMM, yMMMM, + * yMd, yMMMd, + * yMEd, yMMMEd + * + * Locales for which ICU 4.4 seems to have a reasonable amount of this data + * include: + * af, am, ar, be, bg, bn, ca, cs, da, de (_AT), el, en (_AU,_CA,_GB,_IE,_IN...), + * eo, es (_AR,_CL,_CO,...,_US) et, fa, fi, fo, fr (_BE,_CH,_CA), fur, gsw, he, + * hr, hu, hy, is, it (_CH), ja, kk, km, ko, lt, lv, mk, ml, mt, nb, nl )_BE), + * nn, pl, pt (_PT), rm, ro, ru (_UA), sk, sl, so, sq, sr, sr_Latn, sv, th, to, + * tr, uk, ur, vi, zh (_SG), zh_Hant (_HK,_MO) + */ + +/** + * Opaque UDateIntervalFormat object for use in C programs. + * @stable ICU 4.8 + */ +struct UDateIntervalFormat; +typedef struct UDateIntervalFormat UDateIntervalFormat; /**< C typedef for struct UDateIntervalFormat. @stable ICU 4.8 */ + +/** + * Open a new UDateIntervalFormat object using the predefined rules for a + * given locale plus a specified skeleton. + * @param locale + * The locale for whose rules should be used; may be NULL for + * default locale. + * @param skeleton + * A pattern containing only the fields desired for the interval + * format, for example "Hm", "yMMMd", or "yMMMEdHm". + * @param skeletonLength + * The length of skeleton; may be -1 if the skeleton is zero-terminated. + * @param tzID + * A timezone ID specifying the timezone to use. If 0, use the default + * timezone. + * @param tzIDLength + * The length of tzID, or -1 if null-terminated. If 0, use the default + * timezone. + * @param status + * A pointer to a UErrorCode to receive any errors. + * @return + * A pointer to a UDateIntervalFormat object for the specified locale, + * or NULL if an error occurred. + * @stable ICU 4.8 + */ +U_STABLE UDateIntervalFormat* U_EXPORT2 +udtitvfmt_open(const char* locale, + const UChar* skeleton, + int32_t skeletonLength, + const UChar* tzID, + int32_t tzIDLength, + UErrorCode* status); + +/** + * Close a UDateIntervalFormat object. Once closed it may no longer be used. + * @param formatter + * The UDateIntervalFormat object to close. + * @stable ICU 4.8 + */ +U_STABLE void U_EXPORT2 +udtitvfmt_close(UDateIntervalFormat *formatter); + + + + +/** + * Formats a date/time range using the conventions established for the + * UDateIntervalFormat object. + * @param formatter + * The UDateIntervalFormat object specifying the format conventions. + * @param fromDate + * The starting point of the range. + * @param toDate + * The ending point of the range. + * @param result + * A pointer to a buffer to receive the formatted range. + * @param resultCapacity + * The maximum size of result. + * @param position + * A pointer to a UFieldPosition. On input, position->field is read. + * On output, position->beginIndex and position->endIndex indicate + * the beginning and ending indices of field number position->field, + * if such a field exists. This parameter may be NULL, in which case + * no field position data is returned. + * There may be multiple instances of a given field type in an + * interval format; in this case the position indices refer to the + * first instance. + * @param status + * A pointer to a UErrorCode to receive any errors. + * @return + * The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @stable ICU 4.8 + */ +U_STABLE int32_t U_EXPORT2 +udtitvfmt_format(const UDateIntervalFormat* formatter, + UDate fromDate, + UDate toDate, + UChar* result, + int32_t resultCapacity, + UFieldPosition* position, + UErrorCode* status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// udatpg.h +/* +******************************************************************************* +* +* Copyright (C) 2007-2015, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: udatpg.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2007jul30 +* created by: Markus W. Scherer +*/ + +#ifndef __UDATPG_H__ +#define __UDATPG_H__ + + +/** + * \file + * \brief C API: Wrapper for icu::DateTimePatternGenerator (unicode/dtptngen.h). + * + * UDateTimePatternGenerator provides flexible generation of date format patterns, + * like "yy-MM-dd". The user can build up the generator by adding successive + * patterns. Once that is done, a query can be made using a "skeleton", which is + * a pattern which just includes the desired fields and lengths. The generator + * will return the "best fit" pattern corresponding to that skeleton. + *

The main method people will use is udatpg_getBestPattern, since normally + * UDateTimePatternGenerator is pre-built with data from a particular locale. + * However, generators can be built directly from other data as well. + *

Issue: may be useful to also have a function that returns the list of + * fields in a pattern, in order, since we have that internally. + * That would be useful for getting the UI order of field elements. + */ + +/** + * Opaque type for a date/time pattern generator object. + * @stable ICU 3.8 + */ +typedef void *UDateTimePatternGenerator; + +/** + * Field number constants for udatpg_getAppendItemFormats() and similar functions. + * These constants are separate from UDateFormatField despite semantic overlap + * because some fields are merged for the date/time pattern generator. + * @stable ICU 3.8 + */ +typedef enum UDateTimePatternField { + /** @stable ICU 3.8 */ + UDATPG_ERA_FIELD, + /** @stable ICU 3.8 */ + UDATPG_YEAR_FIELD, + /** @stable ICU 3.8 */ + UDATPG_QUARTER_FIELD, + /** @stable ICU 3.8 */ + UDATPG_MONTH_FIELD, + /** @stable ICU 3.8 */ + UDATPG_WEEK_OF_YEAR_FIELD, + /** @stable ICU 3.8 */ + UDATPG_WEEK_OF_MONTH_FIELD, + /** @stable ICU 3.8 */ + UDATPG_WEEKDAY_FIELD, + /** @stable ICU 3.8 */ + UDATPG_DAY_OF_YEAR_FIELD, + /** @stable ICU 3.8 */ + UDATPG_DAY_OF_WEEK_IN_MONTH_FIELD, + /** @stable ICU 3.8 */ + UDATPG_DAY_FIELD, + /** @stable ICU 3.8 */ + UDATPG_DAYPERIOD_FIELD, + /** @stable ICU 3.8 */ + UDATPG_HOUR_FIELD, + /** @stable ICU 3.8 */ + UDATPG_MINUTE_FIELD, + /** @stable ICU 3.8 */ + UDATPG_SECOND_FIELD, + /** @stable ICU 3.8 */ + UDATPG_FRACTIONAL_SECOND_FIELD, + /** @stable ICU 3.8 */ + UDATPG_ZONE_FIELD, + /** @stable ICU 3.8 */ + UDATPG_FIELD_COUNT +} UDateTimePatternField; + +/** + * Masks to control forcing the length of specified fields in the returned + * pattern to match those in the skeleton (when this would not happen + * otherwise). These may be combined to force the length of multiple fields. + * Used with udatpg_getBestPatternWithOptions, udatpg_replaceFieldTypesWithOptions. + * @stable ICU 4.4 + */ +typedef enum UDateTimePatternMatchOptions { + /** @stable ICU 4.4 */ + UDATPG_MATCH_NO_OPTIONS = 0, + /** @stable ICU 4.4 */ + UDATPG_MATCH_HOUR_FIELD_LENGTH = 1 << UDATPG_HOUR_FIELD, + /** @stable ICU 4.4 */ + UDATPG_MATCH_ALL_FIELDS_LENGTH = (1 << UDATPG_FIELD_COUNT) - 1 +} UDateTimePatternMatchOptions; + +/** + * Status return values from udatpg_addPattern(). + * @stable ICU 3.8 + */ +typedef enum UDateTimePatternConflict { + /** @stable ICU 3.8 */ + UDATPG_NO_CONFLICT, + /** @stable ICU 3.8 */ + UDATPG_BASE_CONFLICT, + /** @stable ICU 3.8 */ + UDATPG_CONFLICT, + /** @stable ICU 3.8 */ + UDATPG_CONFLICT_COUNT +} UDateTimePatternConflict; + +/** + * Open a generator according to a given locale. + * @param locale + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return a pointer to UDateTimePatternGenerator. + * @stable ICU 3.8 + */ +U_STABLE UDateTimePatternGenerator * U_EXPORT2 +udatpg_open(const char *locale, UErrorCode *pErrorCode); + +/** + * Open an empty generator, to be constructed with udatpg_addPattern(...) etc. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return a pointer to UDateTimePatternGenerator. + * @stable ICU 3.8 + */ +U_STABLE UDateTimePatternGenerator * U_EXPORT2 +udatpg_openEmpty(UErrorCode *pErrorCode); + +/** + * Close a generator. + * @param dtpg a pointer to UDateTimePatternGenerator. + * @stable ICU 3.8 + */ +U_STABLE void U_EXPORT2 +udatpg_close(UDateTimePatternGenerator *dtpg); + + +/** + * Create a copy pf a generator. + * @param dtpg a pointer to UDateTimePatternGenerator to be copied. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return a pointer to a new UDateTimePatternGenerator. + * @stable ICU 3.8 + */ +U_STABLE UDateTimePatternGenerator * U_EXPORT2 +udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode); + +/** + * Get the best pattern matching the input skeleton. It is guaranteed to + * have all of the fields in the skeleton. + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param skeleton + * The skeleton is a pattern containing only the variable fields. + * For example, "MMMdd" and "mmhh" are skeletons. + * @param length the length of skeleton + * @param bestPattern + * The best pattern found from the given skeleton. + * @param capacity the capacity of bestPattern. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of bestPattern. + * @stable ICU 3.8 + */ +U_STABLE int32_t U_EXPORT2 +udatpg_getBestPattern(UDateTimePatternGenerator *dtpg, + const UChar *skeleton, int32_t length, + UChar *bestPattern, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Get the best pattern matching the input skeleton. It is guaranteed to + * have all of the fields in the skeleton. + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param skeleton + * The skeleton is a pattern containing only the variable fields. + * For example, "MMMdd" and "mmhh" are skeletons. + * @param length the length of skeleton + * @param options + * Options for forcing the length of specified fields in the + * returned pattern to match those in the skeleton (when this + * would not happen otherwise). For default behavior, use + * UDATPG_MATCH_NO_OPTIONS. + * @param bestPattern + * The best pattern found from the given skeleton. + * @param capacity + * the capacity of bestPattern. + * @param pErrorCode + * a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of bestPattern. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg, + const UChar *skeleton, int32_t length, + UDateTimePatternMatchOptions options, + UChar *bestPattern, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Get a unique skeleton from a given pattern. For example, + * both "MMM-dd" and "dd/MMM" produce the skeleton "MMMdd". + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param unusedDtpg a pointer to UDateTimePatternGenerator. + * This parameter is no longer used. Callers may pass NULL. + * @param pattern input pattern, such as "dd/MMM". + * @param length the length of pattern. + * @param skeleton such as "MMMdd" + * @param capacity the capacity of skeleton. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of skeleton. + * @stable ICU 3.8 + */ +U_STABLE int32_t U_EXPORT2 +udatpg_getSkeleton(UDateTimePatternGenerator *unusedDtpg, + const UChar *pattern, int32_t length, + UChar *skeleton, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Get a unique base skeleton from a given pattern. This is the same + * as the skeleton, except that differences in length are minimized so + * as to only preserve the difference between string and numeric form. So + * for example, both "MMM-dd" and "d/MMM" produce the skeleton "MMMd" + * (notice the single d). + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param unusedDtpg a pointer to UDateTimePatternGenerator. + * This parameter is no longer used. Callers may pass NULL. + * @param pattern input pattern, such as "dd/MMM". + * @param length the length of pattern. + * @param baseSkeleton such as "Md" + * @param capacity the capacity of base skeleton. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of baseSkeleton. + * @stable ICU 3.8 + */ +U_STABLE int32_t U_EXPORT2 +udatpg_getBaseSkeleton(UDateTimePatternGenerator *unusedDtpg, + const UChar *pattern, int32_t length, + UChar *baseSkeleton, int32_t capacity, + UErrorCode *pErrorCode); + +/** + * Adds a pattern to the generator. If the pattern has the same skeleton as + * an existing pattern, and the override parameter is set, then the previous + * value is overriden. Otherwise, the previous value is retained. In either + * case, the conflicting status is set and previous vale is stored in + * conflicting pattern. + *

+ * Note that single-field patterns (like "MMM") are automatically added, and + * don't need to be added explicitly! + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pattern input pattern, such as "dd/MMM" + * @param patternLength the length of pattern. + * @param override When existing values are to be overridden use true, + * otherwise use false. + * @param conflictingPattern Previous pattern with the same skeleton. + * @param capacity the capacity of conflictingPattern. + * @param pLength a pointer to the length of conflictingPattern. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return conflicting status. The value could be UDATPG_NO_CONFLICT, + * UDATPG_BASE_CONFLICT or UDATPG_CONFLICT. + * @stable ICU 3.8 + */ +U_STABLE UDateTimePatternConflict U_EXPORT2 +udatpg_addPattern(UDateTimePatternGenerator *dtpg, + const UChar *pattern, int32_t patternLength, + UBool override, + UChar *conflictingPattern, int32_t capacity, int32_t *pLength, + UErrorCode *pErrorCode); + +/** + * An AppendItem format is a pattern used to append a field if there is no + * good match. For example, suppose that the input skeleton is "GyyyyMMMd", + * and there is no matching pattern internally, but there is a pattern + * matching "yyyyMMMd", say "d-MM-yyyy". Then that pattern is used, plus the + * G. The way these two are conjoined is by using the AppendItemFormat for G + * (era). So if that value is, say "{0}, {1}" then the final resulting + * pattern is "d-MM-yyyy, G". + *

+ * There are actually three available variables: {0} is the pattern so far, + * {1} is the element we are adding, and {2} is the name of the element. + *

+ * This reflects the way that the CLDR data is organized. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param field UDateTimePatternField, such as UDATPG_ERA_FIELD + * @param value pattern, such as "{0}, {1}" + * @param length the length of value. + * @stable ICU 3.8 + */ +U_STABLE void U_EXPORT2 +udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg, + UDateTimePatternField field, + const UChar *value, int32_t length); + +/** + * Getter corresponding to setAppendItemFormat. Values below 0 or at or + * above UDATPG_FIELD_COUNT are illegal arguments. + * + * @param dtpg A pointer to UDateTimePatternGenerator. + * @param field UDateTimePatternField, such as UDATPG_ERA_FIELD + * @param pLength A pointer that will receive the length of appendItemFormat. + * @return appendItemFormat for field. + * @stable ICU 3.8 + */ +U_STABLE const UChar * U_EXPORT2 +udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg, + UDateTimePatternField field, + int32_t *pLength); + +/** + * Set the name of field, eg "era" in English for ERA. These are only + * used if the corresponding AppendItemFormat is used, and if it contains a + * {2} variable. + *

+ * This reflects the way that the CLDR data is organized. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param field UDateTimePatternField + * @param value name for the field. + * @param length the length of value. + * @stable ICU 3.8 + */ +U_STABLE void U_EXPORT2 +udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg, + UDateTimePatternField field, + const UChar *value, int32_t length); + +/** + * Getter corresponding to setAppendItemNames. Values below 0 or at or above + * UDATPG_FIELD_COUNT are illegal arguments. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param field UDateTimePatternField, such as UDATPG_ERA_FIELD + * @param pLength A pointer that will receive the length of the name for field. + * @return name for field + * @stable ICU 3.8 + */ +U_STABLE const UChar * U_EXPORT2 +udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg, + UDateTimePatternField field, + int32_t *pLength); + +/** + * The DateTimeFormat is a message format pattern used to compose date and + * time patterns. The default pattern in the root locale is "{1} {0}", where + * {1} will be replaced by the date pattern and {0} will be replaced by the + * time pattern; however, other locales may specify patterns such as + * "{1}, {0}" or "{1} 'at' {0}", etc. + *

+ * This is used when the input skeleton contains both date and time fields, + * but there is not a close match among the added patterns. For example, + * suppose that this object was created by adding "dd-MMM" and "hh:mm", and + * its DateTimeFormat is the default "{1} {0}". Then if the input skeleton + * is "MMMdhmm", there is not an exact match, so the input skeleton is + * broken up into two components "MMMd" and "hmm". There are close matches + * for those two skeletons, so the result is put together with this pattern, + * resulting in "d-MMM h:mm". + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param dtFormat + * message format pattern, here {1} will be replaced by the date + * pattern and {0} will be replaced by the time pattern. + * @param length the length of dtFormat. + * @stable ICU 3.8 + */ +U_STABLE void U_EXPORT2 +udatpg_setDateTimeFormat(const UDateTimePatternGenerator *dtpg, + const UChar *dtFormat, int32_t length); + +/** + * Getter corresponding to setDateTimeFormat. + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pLength A pointer that will receive the length of the format + * @return dateTimeFormat. + * @stable ICU 3.8 + */ +U_STABLE const UChar * U_EXPORT2 +udatpg_getDateTimeFormat(const UDateTimePatternGenerator *dtpg, + int32_t *pLength); + +/** + * The decimal value is used in formatting fractions of seconds. If the + * skeleton contains fractional seconds, then this is used with the + * fractional seconds. For example, suppose that the input pattern is + * "hhmmssSSSS", and the best matching pattern internally is "H:mm:ss", and + * the decimal string is ",". Then the resulting pattern is modified to be + * "H:mm:ss,SSSS" + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param decimal + * @param length the length of decimal. + * @stable ICU 3.8 + */ +U_STABLE void U_EXPORT2 +udatpg_setDecimal(UDateTimePatternGenerator *dtpg, + const UChar *decimal, int32_t length); + +/** + * Getter corresponding to setDecimal. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pLength A pointer that will receive the length of the decimal string. + * @return corresponding to the decimal point. + * @stable ICU 3.8 + */ +U_STABLE const UChar * U_EXPORT2 +udatpg_getDecimal(const UDateTimePatternGenerator *dtpg, + int32_t *pLength); + +/** + * Adjusts the field types (width and subtype) of a pattern to match what is + * in a skeleton. That is, if you supply a pattern like "d-M H:m", and a + * skeleton of "MMMMddhhmm", then the input pattern is adjusted to be + * "dd-MMMM hh:mm". This is used internally to get the best match for the + * input skeleton, but can also be used externally. + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pattern Input pattern + * @param patternLength the length of input pattern. + * @param skeleton + * @param skeletonLength the length of input skeleton. + * @param dest pattern adjusted to match the skeleton fields widths and subtypes. + * @param destCapacity the capacity of dest. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of dest. + * @stable ICU 3.8 + */ +U_STABLE int32_t U_EXPORT2 +udatpg_replaceFieldTypes(UDateTimePatternGenerator *dtpg, + const UChar *pattern, int32_t patternLength, + const UChar *skeleton, int32_t skeletonLength, + UChar *dest, int32_t destCapacity, + UErrorCode *pErrorCode); + +/** + * Adjusts the field types (width and subtype) of a pattern to match what is + * in a skeleton. That is, if you supply a pattern like "d-M H:m", and a + * skeleton of "MMMMddhhmm", then the input pattern is adjusted to be + * "dd-MMMM hh:mm". This is used internally to get the best match for the + * input skeleton, but can also be used externally. + * + * Note that this function uses a non-const UDateTimePatternGenerator: + * It uses a stateful pattern parser which is set up for each generator object, + * rather than creating one for each function call. + * Consecutive calls to this function do not affect each other, + * but this function cannot be used concurrently on a single generator object. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pattern Input pattern + * @param patternLength the length of input pattern. + * @param skeleton + * @param skeletonLength the length of input skeleton. + * @param options + * Options controlling whether the length of specified fields in the + * pattern are adjusted to match those in the skeleton (when this + * would not happen otherwise). For default behavior, use + * UDATPG_MATCH_NO_OPTIONS. + * @param dest pattern adjusted to match the skeleton fields widths and subtypes. + * @param destCapacity the capacity of dest. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return the length of dest. + * @stable ICU 4.4 + */ +U_STABLE int32_t U_EXPORT2 +udatpg_replaceFieldTypesWithOptions(UDateTimePatternGenerator *dtpg, + const UChar *pattern, int32_t patternLength, + const UChar *skeleton, int32_t skeletonLength, + UDateTimePatternMatchOptions options, + UChar *dest, int32_t destCapacity, + UErrorCode *pErrorCode); + +/** + * Return a UEnumeration list of all the skeletons in canonical form. + * Call udatpg_getPatternForSkeleton() to get the corresponding pattern. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call + * @return a UEnumeration list of all the skeletons + * The caller must close the object. + * @stable ICU 3.8 + */ +U_STABLE UEnumeration * U_EXPORT2 +udatpg_openSkeletons(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode); + +/** + * Return a UEnumeration list of all the base skeletons in canonical form. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param pErrorCode a pointer to the UErrorCode which must not indicate a + * failure before the function call. + * @return a UEnumeration list of all the base skeletons + * The caller must close the object. + * @stable ICU 3.8 + */ +U_STABLE UEnumeration * U_EXPORT2 +udatpg_openBaseSkeletons(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode); + +/** + * Get the pattern corresponding to a given skeleton. + * + * @param dtpg a pointer to UDateTimePatternGenerator. + * @param skeleton + * @param skeletonLength pointer to the length of skeleton. + * @param pLength pointer to the length of return pattern. + * @return pattern corresponding to a given skeleton. + * @stable ICU 3.8 + */ +U_STABLE const UChar * U_EXPORT2 +udatpg_getPatternForSkeleton(const UDateTimePatternGenerator *dtpg, + const UChar *skeleton, int32_t skeletonLength, + int32_t *pLength); + +#endif + +// ufieldpositer.h +/* +***************************************************************************************** +* Copyright (C) 2015-2016, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UFIELDPOSITER_H +#define UFIELDPOSITER_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C API: UFieldPositionIterator for use with format APIs. + * + * Usage: + * ufieldpositer_open creates an empty (unset) UFieldPositionIterator. + * This can be passed to format functions such as {@link #udat_formatForFields}, + * which will set it to apply to the fields in a particular formatted string. + * ufieldpositer_next can then be used to iterate over those fields, + * providing for each field its type (using values that are specific to the + * particular format type, such as date or number formats), as well as the + * start and end positions of the field in the formatted string. + * A given UFieldPositionIterator can be re-used for different format calls; + * each such call resets it to apply to that format string. + * ufieldpositer_close should be called to dispose of the UFieldPositionIterator + * when it is no longer needed. + * + * @see FieldPositionIterator + */ + +/** + * Opaque UFieldPositionIterator object for use in C. + * @stable ICU 55 + */ +struct UFieldPositionIterator; +typedef struct UFieldPositionIterator UFieldPositionIterator; /**< C typedef for struct UFieldPositionIterator. @stable ICU 55 */ + +/** + * Open a new, unset UFieldPositionIterator object. + * @param status + * A pointer to a UErrorCode to receive any errors. + * @return + * A pointer to an empty (unset) UFieldPositionIterator object, + * or NULL if an error occurred. + * @stable ICU 55 + */ +U_STABLE UFieldPositionIterator* U_EXPORT2 +ufieldpositer_open(UErrorCode* status); + +/** + * Close a UFieldPositionIterator object. Once closed it may no longer be used. + * @param fpositer + * A pointer to the UFieldPositionIterator object to close. + * @stable ICU 55 + */ +U_STABLE void U_EXPORT2 +ufieldpositer_close(UFieldPositionIterator *fpositer); + + + +/** + * Get information for the next field in the formatted string to which this + * UFieldPositionIterator currently applies, or return FALSE if there are + * no more fields. + * @param fpositer + * A pointer to the UFieldPositionIterator object containing iteration + * state for the format fields. + * @param beginIndex + * A pointer to an int32_t to receive information about the start offset + * of the field in the formatted string (undefined if the function + * returns a negative value). May be NULL if this information is not needed. + * @param endIndex + * A pointer to an int32_t to receive information about the end offset + * of the field in the formatted string (undefined if the function + * returns a negative value). May be NULL if this information is not needed. + * @return + * The field type (non-negative value), or a negative value if there are + * no more fields for which to provide information. If negative, then any + * values pointed to by beginIndex and endIndex are undefined. + * + * The values for field type depend on what type of formatter the + * UFieldPositionIterator has been set by; for a date formatter, the + * values from the UDateFormatField enum. For more information, see the + * descriptions of format functions that take a UFieldPositionIterator* + * parameter, such as {@link #udat_formatForFields}. + * + * @stable ICU 55 + */ +U_STABLE int32_t U_EXPORT2 +ufieldpositer_next(UFieldPositionIterator *fpositer, + int32_t *beginIndex, int32_t *endIndex); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// uformattable.h +/* +******************************************************************************** +* Copyright (C) 2013-2014, International Business Machines Corporation and others. +* All Rights Reserved. +******************************************************************************** +* +* File UFORMATTABLE.H +* +* Modification History: +* +* Date Name Description +* 2013 Jun 7 srl New +******************************************************************************** +*/ + +/** + * \file + * \brief C API: UFormattable is a thin wrapper for primitive types used for formatting and parsing. + * + * This is a C interface to the icu::Formattable class. Static functions on this class convert + * to and from this interface (via reinterpret_cast). Note that Formattables (and thus UFormattables) + * are mutable, and many operations (even getters) may actually modify the internal state. For this + * reason, UFormattables are not thread safe, and should not be shared between threads. + * + * See {@link unum_parseToUFormattable} for example code. + */ + +#ifndef UFORMATTABLE_H +#define UFORMATTABLE_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * Enum designating the type of a UFormattable instance. + * Practically, this indicates which of the getters would return without conversion + * or error. + * @see icu::Formattable::Type + * @stable ICU 52 + */ +typedef enum UFormattableType { + UFMT_DATE = 0, /**< ufmt_getDate() will return without conversion. @see ufmt_getDate*/ + UFMT_DOUBLE, /**< ufmt_getDouble() will return without conversion. @see ufmt_getDouble*/ + UFMT_LONG, /**< ufmt_getLong() will return without conversion. @see ufmt_getLong */ + UFMT_STRING, /**< ufmt_getUChars() will return without conversion. @see ufmt_getUChars*/ + UFMT_ARRAY, /**< ufmt_countArray() and ufmt_getArray() will return the value. @see ufmt_getArrayItemByIndex */ + UFMT_INT64, /**< ufmt_getInt64() will return without conversion. @see ufmt_getInt64 */ + UFMT_OBJECT, /**< ufmt_getObject() will return without conversion. @see ufmt_getObject*/ + UFMT_COUNT /**< Count of defined UFormattableType values */ +} UFormattableType; + + +/** + * Opaque type representing various types of data which may be used for formatting + * and parsing operations. + * @see icu::Formattable + * @stable ICU 52 + */ +typedef void *UFormattable; + +/** + * Initialize a UFormattable, to type UNUM_LONG, value 0 + * may return error if memory allocation failed. + * parameter status error code. + * See {@link unum_parseToUFormattable} for example code. + * @stable ICU 52 + * @return the new UFormattable + * @see ufmt_close + * @see icu::Formattable::Formattable() + */ +U_STABLE UFormattable* U_EXPORT2 +ufmt_open(UErrorCode* status); + +/** + * Cleanup any additional memory allocated by this UFormattable. + * @param fmt the formatter + * @stable ICU 52 + * @see ufmt_open + */ +U_STABLE void U_EXPORT2 +ufmt_close(UFormattable* fmt); + + +/** + * Return the type of this object + * @param fmt the UFormattable object + * @param status status code - U_ILLEGAL_ARGUMENT_ERROR is returned if the UFormattable contains data not supported by + * the API + * @return the value as a UFormattableType + * @see ufmt_isNumeric + * @see icu::Formattable::getType() const + * @stable ICU 52 + */ +U_STABLE UFormattableType U_EXPORT2 +ufmt_getType(const UFormattable* fmt, UErrorCode *status); + +/** + * Return whether the object is numeric. + * @param fmt the UFormattable object + * @return true if the object is a double, long, or int64 value, else false. + * @see ufmt_getType + * @see icu::Formattable::isNumeric() const + * @stable ICU 52 + */ +U_STABLE UBool U_EXPORT2 +ufmt_isNumeric(const UFormattable* fmt); + +/** + * Gets the UDate value of this object. If the type is not of type UFMT_DATE, + * status is set to U_INVALID_FORMAT_ERROR and the return value is + * undefined. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @return the value + * @stable ICU 52 + * @see icu::Formattable::getDate(UErrorCode&) const + */ +U_STABLE UDate U_EXPORT2 +ufmt_getDate(const UFormattable* fmt, UErrorCode *status); + +/** + * Gets the double value of this object. If the type is not a UFMT_DOUBLE, or + * if there are additional significant digits than fit in a double type, + * a conversion is performed with possible loss of precision. + * If the type is UFMT_OBJECT and the + * object is a Measure, then the result of + * getNumber().getDouble(status) is returned. If this object is + * neither a numeric type nor a Measure, then 0 is returned and + * the status is set to U_INVALID_FORMAT_ERROR. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @return the value + * @stable ICU 52 + * @see icu::Formattable::getDouble(UErrorCode&) const + */ +U_STABLE double U_EXPORT2 +ufmt_getDouble(UFormattable* fmt, UErrorCode *status); + +/** + * Gets the long (int32_t) value of this object. If the magnitude is too + * large to fit in a long, then the maximum or minimum long value, + * as appropriate, is returned and the status is set to + * U_INVALID_FORMAT_ERROR. If this object is of type UFMT_INT64 and + * it fits within a long, then no precision is lost. If it is of + * type kDouble or kDecimalNumber, then a conversion is peformed, with + * truncation of any fractional part. If the type is UFMT_OBJECT and + * the object is a Measure, then the result of + * getNumber().getLong(status) is returned. If this object is + * neither a numeric type nor a Measure, then 0 is returned and + * the status is set to U_INVALID_FORMAT_ERROR. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @return the value + * @stable ICU 52 + * @see icu::Formattable::getLong(UErrorCode&) const + */ +U_STABLE int32_t U_EXPORT2 +ufmt_getLong(UFormattable* fmt, UErrorCode *status); + + +/** + * Gets the int64_t value of this object. If this object is of a numeric + * type and the magnitude is too large to fit in an int64, then + * the maximum or minimum int64 value, as appropriate, is returned + * and the status is set to U_INVALID_FORMAT_ERROR. If the + * magnitude fits in an int64, then a casting conversion is + * peformed, with truncation of any fractional part. If the type + * is UFMT_OBJECT and the object is a Measure, then the result of + * getNumber().getDouble(status) is returned. If this object is + * neither a numeric type nor a Measure, then 0 is returned and + * the status is set to U_INVALID_FORMAT_ERROR. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @return the value + * @stable ICU 52 + * @see icu::Formattable::getInt64(UErrorCode&) const + */ +U_STABLE int64_t U_EXPORT2 +ufmt_getInt64(UFormattable* fmt, UErrorCode *status); + +/** + * Returns a pointer to the UObject contained within this + * formattable (as a const void*), or NULL if this object + * is not of type UFMT_OBJECT. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @return the value as a const void*. It is a polymorphic C++ object. + * @stable ICU 52 + * @see icu::Formattable::getObject() const + */ +U_STABLE const void *U_EXPORT2 +ufmt_getObject(const UFormattable* fmt, UErrorCode *status); + +/** + * Gets the string value of this object as a UChar string. If the type is not a + * string, status is set to U_INVALID_FORMAT_ERROR and a NULL pointer is returned. + * This function is not thread safe and may modify the UFormattable if need be to terminate the string. + * The returned pointer is not valid if any other functions are called on this UFormattable, or if the UFormattable is closed. + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors + * @param len if non null, contains the string length on return + * @return the null terminated string value - must not be referenced after any other functions are called on this UFormattable. + * @stable ICU 52 + * @see icu::Formattable::getString(UnicodeString&)const + */ +U_STABLE const UChar* U_EXPORT2 +ufmt_getUChars(UFormattable* fmt, int32_t *len, UErrorCode *status); + +/** + * Get the number of array objects contained, if an array type UFMT_ARRAY + * @param fmt the UFormattable object + * @param status the error code - any conversion or format errors. U_ILLEGAL_ARGUMENT_ERROR if not an array type. + * @return the number of array objects or undefined if not an array type + * @stable ICU 52 + * @see ufmt_getArrayItemByIndex + */ +U_STABLE int32_t U_EXPORT2 +ufmt_getArrayLength(const UFormattable* fmt, UErrorCode *status); + +/** + * Get the specified value from the array of UFormattables. Invalid if the object is not an array type UFMT_ARRAY + * @param fmt the UFormattable object + * @param n the number of the array to return (0 based). + * @param status the error code - any conversion or format errors. Returns an error if n is out of bounds. + * @return the nth array value, only valid while the containing UFormattable is valid. NULL if not an array. + * @stable ICU 52 + * @see icu::Formattable::getArray(int32_t&, UErrorCode&) const + */ +U_STABLE UFormattable * U_EXPORT2 +ufmt_getArrayItemByIndex(UFormattable* fmt, int32_t n, UErrorCode *status); + +/** + * Returns a numeric string representation of the number contained within this + * formattable, or NULL if this object does not contain numeric type. + * For values obtained by parsing, the returned decimal number retains + * the full precision and range of the original input, unconstrained by + * the limits of a double floating point or a 64 bit int. + * + * This function is not thread safe, and therfore is not declared const, + * even though it is logically const. + * The resulting buffer is owned by the UFormattable and is invalid if any other functions are + * called on the UFormattable. + * + * Possible errors include U_MEMORY_ALLOCATION_ERROR, and + * U_INVALID_STATE if the formattable object has not been set to + * a numeric type. + * @param fmt the UFormattable object + * @param len if non-null, on exit contains the string length (not including the terminating null) + * @param status the error code + * @return the character buffer as a NULL terminated string, which is owned by the object and must not be accessed if any other functions are called on this object. + * @stable ICU 52 + * @see icu::Formattable::getDecimalNumber(UErrorCode&) + */ +U_STABLE const char * U_EXPORT2 +ufmt_getDecNumChars(UFormattable *fmt, int32_t *len, UErrorCode *status); + +#endif + +#endif + +// ugender.h +/* +***************************************************************************************** +* Copyright (C) 2010-2013, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UGENDER_H +#define UGENDER_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C API: The purpose of this API is to compute the gender of a list as a + * whole given the gender of each element. + * + */ + +/** + * Genders + * @stable ICU 50 + */ +enum UGender { + /** + * Male gender. + * @stable ICU 50 + */ + UGENDER_MALE, + /** + * Female gender. + * @stable ICU 50 + */ + UGENDER_FEMALE, + /** + * Neutral gender. + * @stable ICU 50 + */ + UGENDER_OTHER +}; +/** + * @stable ICU 50 + */ +typedef enum UGender UGender; + +/** + * Opaque UGenderInfo object for use in C programs. + * @stable ICU 50 + */ +struct UGenderInfo; +typedef struct UGenderInfo UGenderInfo; + +/** + * Opens a new UGenderInfo object given locale. + * @param locale The locale for which the rules are desired. + * @param status UErrorCode pointer + * @return A UGenderInfo for the specified locale, or NULL if an error occurred. + * @stable ICU 50 + */ +U_STABLE const UGenderInfo* U_EXPORT2 +ugender_getInstance(const char *locale, UErrorCode *status); + + +/** + * Given a list, returns the gender of the list as a whole. + * @param genderInfo pointer that ugender_getInstance returns. + * @param genders the gender of each element in the list. + * @param size the size of the list. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The gender of the list. + * @stable ICU 50 + */ +U_STABLE UGender U_EXPORT2 +ugender_getListGender(const UGenderInfo* genderinfo, const UGender *genders, int32_t size, UErrorCode *status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// ulocdata.h +/* +****************************************************************************** +* * +* Copyright (C) 2003-2015, International Business Machines * +* Corporation and others. All Rights Reserved. * +* * +****************************************************************************** +* file name: ulocdata.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2003Oct21 +* created by: Ram Viswanadha +*/ + +#ifndef __ULOCDATA_H__ +#define __ULOCDATA_H__ + + +/** + * \file + * \brief C API: Provides access to locale data. + */ + +/** Forward declaration of the ULocaleData structure. @stable ICU 3.6 */ +struct ULocaleData; + +/** A locale data object. @stable ICU 3.6 */ +typedef struct ULocaleData ULocaleData; + + + +/** The possible types of exemplar character sets. + * @stable ICU 3.4 + */ +typedef enum ULocaleDataExemplarSetType { + /** Basic set @stable ICU 3.4 */ + ULOCDATA_ES_STANDARD=0, + /** Auxiliary set @stable ICU 3.4 */ + ULOCDATA_ES_AUXILIARY=1, + /** Index Character set @stable ICU 4.8 */ + ULOCDATA_ES_INDEX=2, + /** Punctuation set @stable ICU 51 */ + ULOCDATA_ES_PUNCTUATION=3, + /** One higher than the last valid type @stable ICU 3.4 */ + ULOCDATA_ES_COUNT=4 +} ULocaleDataExemplarSetType; + +/** The possible types of delimiters. + * @stable ICU 3.4 + */ +typedef enum ULocaleDataDelimiterType { + /** Quotation start @stable ICU 3.4 */ + ULOCDATA_QUOTATION_START = 0, + /** Quotation end @stable ICU 3.4 */ + ULOCDATA_QUOTATION_END = 1, + /** Alternate quotation start @stable ICU 3.4 */ + ULOCDATA_ALT_QUOTATION_START = 2, + /** Alternate quotation end @stable ICU 3.4 */ + ULOCDATA_ALT_QUOTATION_END = 3, + /** One higher than the last valid type @stable ICU 3.4 */ + ULOCDATA_DELIMITER_COUNT = 4 +} ULocaleDataDelimiterType; + +/** + * Opens a locale data object for the given locale + * + * @param localeID Specifies the locale associated with this locale + * data object. + * @param status Pointer to error status code. + * @stable ICU 3.4 + */ +U_STABLE ULocaleData* U_EXPORT2 +ulocdata_open(const char *localeID, UErrorCode *status); + +/** + * Closes a locale data object. + * + * @param uld The locale data object to close + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +ulocdata_close(ULocaleData *uld); + + +/** + * Sets the "no Substitute" attribute of the locale data + * object. If true, then any methods associated with the + * locale data object will return null when there is no + * data available for that method, given the locale ID + * supplied to ulocdata_open(). + * + * @param uld The locale data object to set. + * @param setting Value of the "no substitute" attribute. + * @stable ICU 3.4 + */ +U_STABLE void U_EXPORT2 +ulocdata_setNoSubstitute(ULocaleData *uld, UBool setting); + +/** + * Retrieves the current "no Substitute" value of the locale data + * object. If true, then any methods associated with the + * locale data object will return null when there is no + * data available for that method, given the locale ID + * supplied to ulocdata_open(). + * + * @param uld Pointer to the The locale data object to set. + * @return UBool Value of the "no substitute" attribute. + * @stable ICU 3.4 + */ +U_STABLE UBool U_EXPORT2 +ulocdata_getNoSubstitute(ULocaleData *uld); + +/** + * Returns the set of exemplar characters for a locale. + * + * @param uld Pointer to the locale data object from which the + * exemplar character set is to be retrieved. + * @param fillIn Pointer to a USet object to receive the + * exemplar character set for the given locale. Previous + * contents of fillIn are lost. If fillIn is NULL, + * then a new USet is created and returned. The caller + * owns the result and must dispose of it by calling + * uset_close. + * @param options Bitmask for options to apply to the exemplar pattern. + * Specify zero to retrieve the exemplar set as it is + * defined in the locale data. Specify + * USET_CASE_INSENSITIVE to retrieve a case-folded + * exemplar set. See uset_applyPattern for a complete + * list of valid options. The USET_IGNORE_SPACE bit is + * always set, regardless of the value of 'options'. + * @param extype Specifies the type of exemplar set to be retrieved. + * @param status Pointer to an input-output error code value; + * must not be NULL. Will be set to U_MISSING_RESOURCE_ERROR + * if the requested data is not available. + * @return USet* Either fillIn, or if fillIn is NULL, a pointer to + * a newly-allocated USet that the user must close. + * In case of error, NULL is returned. + * @stable ICU 3.4 + */ +U_STABLE USet* U_EXPORT2 +ulocdata_getExemplarSet(ULocaleData *uld, USet *fillIn, + uint32_t options, ULocaleDataExemplarSetType extype, UErrorCode *status); + +/** + * Returns one of the delimiter strings associated with a locale. + * + * @param uld Pointer to the locale data object from which the + * delimiter string is to be retrieved. + * @param type the type of delimiter to be retrieved. + * @param result A pointer to a buffer to receive the result. + * @param resultLength The maximum size of result. + * @param status Pointer to an error code value + * @return int32_t The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @stable ICU 3.4 + */ +U_STABLE int32_t U_EXPORT2 +ulocdata_getDelimiter(ULocaleData *uld, ULocaleDataDelimiterType type, UChar *result, int32_t resultLength, UErrorCode *status); + +/** + * Enumeration for representing the measurement systems. + * @stable ICU 2.8 + */ +typedef enum UMeasurementSystem { + UMS_SI, /**< Measurement system specified by SI otherwise known as Metric system. @stable ICU 2.8 */ + UMS_US, /**< Measurement system followed in the United States of America. @stable ICU 2.8 */ + UMS_UK, /**< Mix of metric and imperial units used in Great Britain. @stable ICU 55 */ + UMS_LIMIT +} UMeasurementSystem; + +/** + * Returns the measurement system used in the locale specified by the localeID. + * Please note that this API will change in ICU 3.6 and will use an ulocdata object. + * + * @param localeID The id of the locale for which the measurement system to be retrieved. + * @param status Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return UMeasurementSystem the measurement system used in the locale. + * @stable ICU 2.8 + */ +U_STABLE UMeasurementSystem U_EXPORT2 +ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status); + +/** + * Returns the element gives the normal business letter size, and customary units. + * The units for the numbers are always in milli-meters. + * For US since 8.5 and 11 do not yeild an integral value when converted to milli-meters, + * the values are rounded off. + * So for A4 size paper the height and width are 297 mm and 210 mm repectively, + * and for US letter size the height and width are 279 mm and 216 mm respectively. + * Please note that this API will change in ICU 3.6 and will use an ulocdata object. + * + * @param localeID The id of the locale for which the paper size information to be retrieved. + * @param height A pointer to int to recieve the height information. + * @param width A pointer to int to recieve the width information. + * @param status Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @stable ICU 2.8 + */ +U_STABLE void U_EXPORT2 +ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status); + +/** + * Return the current CLDR version used by the library. + * @param versionArray fillin that will recieve the version number + * @param status error code - could be U_MISSING_RESOURCE_ERROR if the version was not found. + * @stable ICU 4.2 + */ +U_STABLE void U_EXPORT2 +ulocdata_getCLDRVersion(UVersionInfo versionArray, UErrorCode *status); + +/** + * Returns locale display pattern associated with a locale. + * + * @param uld Pointer to the locale data object from which the + * exemplar character set is to be retrieved. + * @param pattern locale display pattern for locale. + * @param patternCapacity the size of the buffer to store the locale display + * pattern with. + * @param status Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return the actual buffer size needed for localeDisplayPattern. If it's greater + * than patternCapacity, the returned pattern will be truncated. + * + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +ulocdata_getLocaleDisplayPattern(ULocaleData *uld, + UChar *pattern, + int32_t patternCapacity, + UErrorCode *status); + + +/** + * Returns locale separator associated with a locale. + * + * @param uld Pointer to the locale data object from which the + * exemplar character set is to be retrieved. + * @param separator locale separator for locale. + * @param separatorCapacity the size of the buffer to store the locale + * separator with. + * @param status Must be a valid pointer to an error code value, + * which must not indicate a failure before the function call. + * @return the actual buffer size needed for localeSeparator. If it's greater + * than separatorCapacity, the returned separator will be truncated. + * + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +ulocdata_getLocaleSeparator(ULocaleData *uld, + UChar *separator, + int32_t separatorCapacity, + UErrorCode *status); +#endif + +// umsg.h +/******************************************************************** + * COPYRIGHT: + * Copyright (c) 1997-2011, International Business Machines Corporation and + * others. All Rights Reserved. + * Copyright (C) 2010 , Yahoo! Inc. + ******************************************************************** + * + * file name: umsg.h + * encoding: US-ASCII + * tab size: 8 (not used) + * indentation:4 + * + * Change history: + * + * 08/5/2001 Ram Added C wrappers for C++ API. + ********************************************************************/ + +#ifndef UMSG_H +#define UMSG_H + + +#if !UCONFIG_NO_FORMATTING + +#include + +/** + * \file + * \brief C API: MessageFormat + * + *

MessageFormat C API

+ * + *

MessageFormat prepares strings for display to users, + * with optional arguments (variables/placeholders). + * The arguments can occur in any order, which is necessary for translation + * into languages with different grammars. + * + *

The opaque UMessageFormat type is a thin C wrapper around + * a C++ MessageFormat. It is constructed from a pattern string + * with arguments in {curly braces} which will be replaced by formatted values. + * + *

Currently, the C API supports only numbered arguments. + * + *

For details about the pattern syntax and behavior, + * especially about the ASCII apostrophe vs. the + * real apostrophe (single quote) character \htmlonly’\endhtmlonly (U+2019), + * see the C++ MessageFormat class documentation. + * + *

Here are some examples of C API usage: + * Example 1: + *

+ * \code
+ *     UChar *result, *tzID, *str;
+ *     UChar pattern[100];
+ *     int32_t resultLengthOut, resultlength;
+ *     UCalendar *cal;
+ *     UDate d1;
+ *     UDateFormat *def1;
+ *     UErrorCode status = U_ZERO_ERROR;
+ *
+ *     str=(UChar*)malloc(sizeof(UChar) * (strlen("disturbance in force") +1));
+ *     u_uastrcpy(str, "disturbance in force");
+ *     tzID=(UChar*)malloc(sizeof(UChar) * 4);
+ *     u_uastrcpy(tzID, "PST");
+ *     cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status);
+ *     ucal_setDateTime(cal, 1999, UCAL_MARCH, 18, 0, 0, 0, &status);
+ *     d1=ucal_getMillis(cal, &status);
+ *     u_uastrcpy(pattern, "On {0, date, long}, there was a {1} on planet {2,number,integer}");
+ *     resultlength=0;
+ *     resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status, d1, str, 7);
+ *     if(status==U_BUFFER_OVERFLOW_ERROR){
+ *         status=U_ZERO_ERROR;
+ *         resultlength=resultLengthOut+1;
+ *         result=(UChar*)realloc(result, sizeof(UChar) * resultlength);
+ *         u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, d1, str, 7);
+ *     }
+ *     printf("%s\n", austrdup(result) );//austrdup( a function used to convert UChar* to char*)
+ *     //output>: "On March 18, 1999, there was a disturbance in force on planet 7
+ * \endcode
+ * 
+ * Typically, the message format will come from resources, and the + * arguments will be dynamically set at runtime. + *

+ * Example 2: + *

+ * \code
+ *     UChar* str;
+ *     UErrorCode status = U_ZERO_ERROR;
+ *     UChar *result;
+ *     UChar pattern[100];
+ *     int32_t resultlength, resultLengthOut, i;
+ *     double testArgs= { 100.0, 1.0, 0.0};
+ *
+ *     str=(UChar*)malloc(sizeof(UChar) * 10);
+ *     u_uastrcpy(str, "MyDisk");
+ *     u_uastrcpy(pattern, "The disk {1} contains {0,choice,0#no files|1#one file|1<{0,number,integer} files}");
+ *     for(i=0; i<3; i++){
+ *       resultlength=0; 
+ *       resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), NULL, resultlength, &status, testArgs[i], str); 
+ *       if(status==U_BUFFER_OVERFLOW_ERROR){
+ *         status=U_ZERO_ERROR;
+ *         resultlength=resultLengthOut+1;
+ *         result=(UChar*)malloc(sizeof(UChar) * resultlength);
+ *         u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, testArgs[i], str);
+ *       }
+ *       printf("%s\n", austrdup(result) );  //austrdup( a function used to convert UChar* to char*)
+ *       free(result);
+ *     }
+ *     // output, with different testArgs:
+ *     // output: The disk "MyDisk" contains 100 files.
+ *     // output: The disk "MyDisk" contains one file.
+ *     // output: The disk "MyDisk" contains no files.
+ * \endcode
+ *  
+ * + * + * Example 3: + *
+ * \code
+ * UChar* str;
+ * UChar* str1;
+ * UErrorCode status = U_ZERO_ERROR;
+ * UChar *result;
+ * UChar pattern[100];
+ * UChar expected[100];
+ * int32_t resultlength,resultLengthOut;
+
+ * str=(UChar*)malloc(sizeof(UChar) * 25);
+ * u_uastrcpy(str, "Kirti");
+ * str1=(UChar*)malloc(sizeof(UChar) * 25);
+ * u_uastrcpy(str1, "female");
+ * log_verbose("Testing message format with Select test #1\n:");
+ * u_uastrcpy(pattern, "{0} est {1, select, female {all\\u00E9e} other {all\\u00E9}} \\u00E0 Paris.");
+ * u_uastrcpy(expected, "Kirti est all\\u00E9e \\u00E0 Paris.");
+ * resultlength=0;
+ * resultLengthOut=u_formatMessage( "fr", pattern, u_strlen(pattern), NULL, resultlength, &status, str , str1);
+ * if(status==U_BUFFER_OVERFLOW_ERROR)
+ *  {
+ *      status=U_ZERO_ERROR;
+ *      resultlength=resultLengthOut+1;
+ *      result=(UChar*)malloc(sizeof(UChar) * resultlength);
+ *      u_formatMessage( "fr", pattern, u_strlen(pattern), result, resultlength, &status, str , str1);
+ *      if(u_strcmp(result, expected)==0)
+ *          log_verbose("PASS: MessagFormat successful on Select test#1\n");
+ *      else{
+ *          log_err("FAIL: Error in MessageFormat on Select test#1\n GOT %s EXPECTED %s\n", austrdup(result),
+ *          austrdup(expected) );
+ *      }
+ *      free(result);
+ * }
+ * \endcode
+ *  
+ */ + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param locale The locale for which the message will be formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments specified + * in pattern. + * @return The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @see u_parseMessage + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_formatMessage(const char *locale, + const UChar *pattern, + int32_t patternLength, + UChar *result, + int32_t resultLength, + UErrorCode *status, + ...); + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param locale The locale for which the message will be formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param ap A variable-length argument list containing the arguments specified + * @param status A pointer to an UErrorCode to receive any errors + * in pattern. + * @return The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @see u_parseMessage + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_vformatMessage( const char *locale, + const UChar *pattern, + int32_t patternLength, + UChar *result, + int32_t resultLength, + va_list ap, + UErrorCode *status); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #u_formatMessage }. + * @param locale The locale for which the message is formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments + * specified in pattern. + * @see u_formatMessage + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +u_parseMessage( const char *locale, + const UChar *pattern, + int32_t patternLength, + const UChar *source, + int32_t sourceLength, + UErrorCode *status, + ...); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #u_formatMessage }. + * @param locale The locale for which the message is formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param ap A variable-length argument list containing the arguments + * @param status A pointer to an UErrorCode to receive any errors + * specified in pattern. + * @see u_formatMessage + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +u_vparseMessage(const char *locale, + const UChar *pattern, + int32_t patternLength, + const UChar *source, + int32_t sourceLength, + va_list ap, + UErrorCode *status); + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param locale The locale for which the message will be formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments specified + * in pattern. + * @param parseError A pointer to UParseError to receive information about errors + * occurred during parsing. + * @return The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @see u_parseMessage + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_formatMessageWithError( const char *locale, + const UChar *pattern, + int32_t patternLength, + UChar *result, + int32_t resultLength, + UParseError *parseError, + UErrorCode *status, + ...); + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param locale The locale for which the message will be formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param parseError A pointer to UParseError to receive information about errors + * occurred during parsing. + * @param ap A variable-length argument list containing the arguments specified + * @param status A pointer to an UErrorCode to receive any errors + * in pattern. + * @return The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +u_vformatMessageWithError( const char *locale, + const UChar *pattern, + int32_t patternLength, + UChar *result, + int32_t resultLength, + UParseError* parseError, + va_list ap, + UErrorCode *status); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #u_formatMessage }. + * @param locale The locale for which the message is formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param parseError A pointer to UParseError to receive information about errors + * occurred during parsing. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments + * specified in pattern. + * @see u_formatMessage + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +u_parseMessageWithError(const char *locale, + const UChar *pattern, + int32_t patternLength, + const UChar *source, + int32_t sourceLength, + UParseError *parseError, + UErrorCode *status, + ...); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #u_formatMessage }. + * @param locale The locale for which the message is formatted + * @param pattern The pattern specifying the message's format + * @param patternLength The length of pattern + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param ap A variable-length argument list containing the arguments + * @param parseError A pointer to UParseError to receive information about errors + * occurred during parsing. + * @param status A pointer to an UErrorCode to receive any errors + * specified in pattern. + * @see u_formatMessage + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +u_vparseMessageWithError(const char *locale, + const UChar *pattern, + int32_t patternLength, + const UChar *source, + int32_t sourceLength, + va_list ap, + UParseError *parseError, + UErrorCode* status); + +/*----------------------- New experimental API --------------------------- */ +/** + * The message format object + * @stable ICU 2.0 + */ +typedef void* UMessageFormat; + + +/** + * Open a message formatter with given pattern and for the given locale. + * @param pattern A pattern specifying the format to use. + * @param patternLength Length of the pattern to use + * @param locale The locale for which the messages are formatted. + * @param parseError A pointer to UParseError struct to receive any errors + * occured during parsing. Can be NULL. + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UMessageFormat to use for formatting + * messages, or 0 if an error occurred. + * @stable ICU 2.0 + */ +U_STABLE UMessageFormat* U_EXPORT2 +umsg_open( const UChar *pattern, + int32_t patternLength, + const char *locale, + UParseError *parseError, + UErrorCode *status); + +/** + * Close a UMessageFormat. + * Once closed, a UMessageFormat may no longer be used. + * @param format The formatter to close. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +umsg_close(UMessageFormat* format); + + +/** + * Open a copy of a UMessageFormat. + * This function performs a deep copy. + * @param fmt The formatter to copy + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UDateFormat identical to fmt. + * @stable ICU 2.0 + */ +U_STABLE UMessageFormat U_EXPORT2 +umsg_clone(const UMessageFormat *fmt, + UErrorCode *status); + +/** + * Sets the locale. This locale is used for fetching default number or date + * format information. + * @param fmt The formatter to set + * @param locale The locale the formatter should use. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +umsg_setLocale(UMessageFormat *fmt, + const char* locale); + +/** + * Gets the locale. This locale is used for fetching default number or date + * format information. + * @param fmt The formatter to querry + * @return the locale. + * @stable ICU 2.0 + */ +U_STABLE const char* U_EXPORT2 +umsg_getLocale(const UMessageFormat *fmt); + +/** + * Sets the pattern. + * @param fmt The formatter to use + * @param pattern The pattern to be applied. + * @param patternLength Length of the pattern to use + * @param parseError Struct to receive information on position + * of error if an error is encountered.Can be NULL. + * @param status Output param set to success/failure code on + * exit. If the pattern is invalid, this will be + * set to a failure result. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +umsg_applyPattern( UMessageFormat *fmt, + const UChar* pattern, + int32_t patternLength, + UParseError* parseError, + UErrorCode* status); + +/** + * Gets the pattern. + * @param fmt The formatter to use + * @param result A pointer to a buffer to receive the pattern. + * @param resultLength The maximum size of result. + * @param status Output param set to success/failure code on + * exit. If the pattern is invalid, this will be + * set to a failure result. + * @return the pattern of the format + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +umsg_toPattern(const UMessageFormat *fmt, + UChar* result, + int32_t resultLength, + UErrorCode* status); + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param fmt The formatter to use + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments + * specified in pattern. + * @return The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +umsg_format( const UMessageFormat *fmt, + UChar *result, + int32_t resultLength, + UErrorCode *status, + ...); + +/** + * Format a message for a locale. + * This function may perform re-ordering of the arguments depending on the + * locale. For all numeric arguments, double is assumed unless the type is + * explicitly integer. All choice format arguments must be of type double. + * @param fmt The formatter to use + * @param result A pointer to a buffer to receive the formatted message. + * @param resultLength The maximum size of result. + * @param ap A variable-length argument list containing the arguments + * @param status A pointer to an UErrorCode to receive any errors + * specified in pattern. + * @return The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +umsg_vformat( const UMessageFormat *fmt, + UChar *result, + int32_t resultLength, + va_list ap, + UErrorCode *status); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #umsg_format }. + * @param fmt The formatter to use + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param count Output param to receive number of elements returned. + * @param status A pointer to an UErrorCode to receive any errors + * @param ... A variable-length argument list containing the arguments + * specified in pattern. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +umsg_parse( const UMessageFormat *fmt, + const UChar *source, + int32_t sourceLength, + int32_t *count, + UErrorCode *status, + ...); + +/** + * Parse a message. + * For numeric arguments, this function will always use doubles. Integer types + * should not be passed. + * This function is not able to parse all output from {@link #umsg_format }. + * @param fmt The formatter to use + * @param source The text to parse. + * @param sourceLength The length of source, or -1 if null-terminated. + * @param count Output param to receive number of elements returned. + * @param ap A variable-length argument list containing the arguments + * @param status A pointer to an UErrorCode to receive any errors + * specified in pattern. + * @see u_formatMessage + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +umsg_vparse(const UMessageFormat *fmt, + const UChar *source, + int32_t sourceLength, + int32_t *count, + va_list ap, + UErrorCode *status); + + +/** + * Convert an 'apostrophe-friendly' pattern into a standard + * pattern. Standard patterns treat all apostrophes as + * quotes, which is problematic in some languages, e.g. + * French, where apostrophe is commonly used. This utility + * assumes that only an unpaired apostrophe immediately before + * a brace is a true quote. Other unpaired apostrophes are paired, + * and the resulting standard pattern string is returned. + * + *

Note it is not guaranteed that the returned pattern + * is indeed a valid pattern. The only effect is to convert + * between patterns having different quoting semantics. + * + * @param pattern the 'apostrophe-friendly' patttern to convert + * @param patternLength the length of pattern, or -1 if unknown and pattern is null-terminated + * @param dest the buffer for the result, or NULL if preflight only + * @param destCapacity the length of the buffer, or 0 if preflighting + * @param ec the error code + * @return the length of the resulting text, not including trailing null + * if buffer has room for the trailing null, it is provided, otherwise + * not + * @stable ICU 3.4 + */ +U_STABLE int32_t U_EXPORT2 +umsg_autoQuoteApostrophe(const UChar* pattern, + int32_t patternLength, + UChar* dest, + int32_t destCapacity, + UErrorCode* ec); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// unirepl.h +// No supported content + +// unum.h +/* +******************************************************************************* +* Copyright (C) 1997-2015, International Business Machines Corporation and others. +* All Rights Reserved. +* Modification History: +* +* Date Name Description +* 06/24/99 helena Integrated Alan's NF enhancements and Java2 bug fixes +******************************************************************************* +*/ + +#ifndef _UNUM +#define _UNUM + + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C API: NumberFormat + * + *

Number Format C API

+ * + * Number Format C API Provides functions for + * formatting and parsing a number. Also provides methods for + * determining which locales have number formats, and what their names + * are. + *

+ * UNumberFormat helps you to format and parse numbers for any locale. + * Your code can be completely independent of the locale conventions + * for decimal points, thousands-separators, or even the particular + * decimal digits used, or whether the number format is even decimal. + * There are different number format styles like decimal, currency, + * percent and spellout. + *

+ * To format a number for the current Locale, use one of the static + * factory methods: + *

+ * \code
+ *    UChar myString[20];
+ *    double myNumber = 7.0;
+ *    UErrorCode status = U_ZERO_ERROR;
+ *    UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
+ *    unum_formatDouble(nf, myNumber, myString, 20, NULL, &status);
+ *    printf(" Example 1: %s\n", austrdup(myString) ); //austrdup( a function used to convert UChar* to char*)
+ * \endcode
+ * 
+ * If you are formatting multiple numbers, it is more efficient to get + * the format and use it multiple times so that the system doesn't + * have to fetch the information about the local language and country + * conventions multiple times. + *
+ * \code
+ * uint32_t i, resultlength, reslenneeded;
+ * UErrorCode status = U_ZERO_ERROR;
+ * UFieldPosition pos;
+ * uint32_t a[] = { 123, 3333, -1234567 };
+ * const uint32_t a_len = sizeof(a) / sizeof(a[0]);
+ * UNumberFormat* nf;
+ * UChar* result = NULL;
+ *
+ * nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
+ * for (i = 0; i < a_len; i++) {
+ *    resultlength=0;
+ *    reslenneeded=unum_format(nf, a[i], NULL, resultlength, &pos, &status);
+ *    result = NULL;
+ *    if(status==U_BUFFER_OVERFLOW_ERROR){
+ *       status=U_ZERO_ERROR;
+ *       resultlength=reslenneeded+1;
+ *       result=(UChar*)malloc(sizeof(UChar) * resultlength);
+ *       unum_format(nf, a[i], result, resultlength, &pos, &status);
+ *    }
+ *    printf( " Example 2: %s\n", austrdup(result));
+ *    free(result);
+ * }
+ * \endcode
+ * 
+ * To format a number for a different Locale, specify it in the + * call to unum_open(). + *
+ * \code
+ *     UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, "fr_FR", NULL, &success)
+ * \endcode
+ * 
+ * You can use a NumberFormat API unum_parse() to parse. + *
+ * \code
+ *    UErrorCode status = U_ZERO_ERROR;
+ *    int32_t pos=0;
+ *    int32_t num;
+ *    num = unum_parse(nf, str, u_strlen(str), &pos, &status);
+ * \endcode
+ * 
+ * Use UNUM_DECIMAL to get the normal number format for that country. + * There are other static options available. Use UNUM_CURRENCY + * to get the currency number format for that country. Use UNUM_PERCENT + * to get a format for displaying percentages. With this format, a + * fraction from 0.53 is displayed as 53%. + *

+ * Use a pattern to create either a DecimalFormat or a RuleBasedNumberFormat + * formatter. The pattern must conform to the syntax defined for those + * formatters. + *

+ * You can also control the display of numbers with such function as + * unum_getAttributes() and unum_setAttributes(), which let you set the + * miminum fraction digits, grouping, etc. + * @see UNumberFormatAttributes for more details + *

+ * You can also use forms of the parse and format methods with + * ParsePosition and UFieldPosition to allow you to: + *

    + *
  • (a) progressively parse through pieces of a string. + *
  • (b) align the decimal point and other areas. + *
+ *

+ * It is also possible to change or set the symbols used for a particular + * locale like the currency symbol, the grouping seperator , monetary seperator + * etc by making use of functions unum_setSymbols() and unum_getSymbols(). + */ + +/** A number formatter. + * For usage in C programs. + * @stable ICU 2.0 + */ +typedef void* UNumberFormat; + +/** The possible number format styles. + * @stable ICU 2.0 + */ +typedef enum UNumberFormatStyle { + /** + * Decimal format defined by a pattern string. + * @stable ICU 3.0 + */ + UNUM_PATTERN_DECIMAL=0, + /** + * Decimal format ("normal" style). + * @stable ICU 2.0 + */ + UNUM_DECIMAL=1, + /** + * Currency format (generic). + * Defaults to UNUM_CURRENCY_STANDARD style + * (using currency symbol, e.g., "$1.00", with non-accounting + * style for negative values e.g. using minus sign). + * The specific style may be specified using the -cf- locale key. + * @stable ICU 2.0 + */ + UNUM_CURRENCY=2, + /** + * Percent format + * @stable ICU 2.0 + */ + UNUM_PERCENT=3, + /** + * Scientific format + * @stable ICU 2.1 + */ + UNUM_SCIENTIFIC=4, + /** + * Spellout rule-based format. The default ruleset can be specified/changed using + * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets + * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS. + * @stable ICU 2.0 + */ + UNUM_SPELLOUT=5, + /** + * Ordinal rule-based format . The default ruleset can be specified/changed using + * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets + * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS. + * @stable ICU 3.0 + */ + UNUM_ORDINAL=6, + /** + * Duration rule-based format + * @stable ICU 3.0 + */ + UNUM_DURATION=7, + /** + * Numbering system rule-based format + * @stable ICU 4.2 + */ + UNUM_NUMBERING_SYSTEM=8, + /** + * Rule-based format defined by a pattern string. + * @stable ICU 3.0 + */ + UNUM_PATTERN_RULEBASED=9, + /** + * Currency format with an ISO currency code, e.g., "USD1.00". + * @stable ICU 4.8 + */ + UNUM_CURRENCY_ISO=10, + /** + * Currency format with a pluralized currency name, + * e.g., "1.00 US dollar" and "3.00 US dollars". + * @stable ICU 4.8 + */ + UNUM_CURRENCY_PLURAL=11, + /** + * Currency format for accounting, e.g., "($3.00)" for + * negative currency amount instead of "-$3.00" ({@link #UNUM_CURRENCY}). + * Overrides any style specified using -cf- key in locale. + * @stable ICU 53 + */ + UNUM_CURRENCY_ACCOUNTING=12, + /** + * Currency format with a currency symbol given CASH usage, e.g., + * "NT$3" instead of "NT$3.23". + * @stable ICU 54 + */ + UNUM_CASH_CURRENCY=13, + + /** + * One more than the highest number format style constant. + * @stable ICU 4.8 + */ + UNUM_FORMAT_STYLE_COUNT=17, + + /** + * Default format + * @stable ICU 2.0 + */ + UNUM_DEFAULT = UNUM_DECIMAL, + /** + * Alias for UNUM_PATTERN_DECIMAL + * @stable ICU 3.0 + */ + UNUM_IGNORE = UNUM_PATTERN_DECIMAL +} UNumberFormatStyle; + +/** The possible number format rounding modes. + * @stable ICU 2.0 + */ +typedef enum UNumberFormatRoundingMode { + UNUM_ROUND_CEILING, + UNUM_ROUND_FLOOR, + UNUM_ROUND_DOWN, + UNUM_ROUND_UP, + /** + * Half-even rounding + * @stable, ICU 3.8 + */ + UNUM_ROUND_HALFEVEN, + UNUM_ROUND_HALFDOWN = UNUM_ROUND_HALFEVEN + 1, + UNUM_ROUND_HALFUP, + /** + * ROUND_UNNECESSARY reports an error if formatted result is not exact. + * @stable ICU 4.8 + */ + UNUM_ROUND_UNNECESSARY +} UNumberFormatRoundingMode; + +/** The possible number format pad positions. + * @stable ICU 2.0 + */ +typedef enum UNumberFormatPadPosition { + UNUM_PAD_BEFORE_PREFIX, + UNUM_PAD_AFTER_PREFIX, + UNUM_PAD_BEFORE_SUFFIX, + UNUM_PAD_AFTER_SUFFIX +} UNumberFormatPadPosition; + +/** + * Constants for specifying short or long format. + * @stable ICU 51 + */ +typedef enum UNumberCompactStyle { + /** @stable ICU 51 */ + UNUM_SHORT, + /** @stable ICU 51 */ + UNUM_LONG + /** @stable ICU 51 */ +} UNumberCompactStyle; + +/** + * Constants for specifying currency spacing + * @stable ICU 4.8 + */ +enum UCurrencySpacing { + /** @stable ICU 4.8 */ + UNUM_CURRENCY_MATCH, + /** @stable ICU 4.8 */ + UNUM_CURRENCY_SURROUNDING_MATCH, + /** @stable ICU 4.8 */ + UNUM_CURRENCY_INSERT, + /** @stable ICU 4.8 */ + UNUM_CURRENCY_SPACING_COUNT +}; +typedef enum UCurrencySpacing UCurrencySpacing; /**< @stable ICU 4.8 */ + + +/** + * FieldPosition and UFieldPosition selectors for format fields + * defined by NumberFormat and UNumberFormat. + * @stable ICU 49 + */ +typedef enum UNumberFormatFields { + /** @stable ICU 49 */ + UNUM_INTEGER_FIELD, + /** @stable ICU 49 */ + UNUM_FRACTION_FIELD, + /** @stable ICU 49 */ + UNUM_DECIMAL_SEPARATOR_FIELD, + /** @stable ICU 49 */ + UNUM_EXPONENT_SYMBOL_FIELD, + /** @stable ICU 49 */ + UNUM_EXPONENT_SIGN_FIELD, + /** @stable ICU 49 */ + UNUM_EXPONENT_FIELD, + /** @stable ICU 49 */ + UNUM_GROUPING_SEPARATOR_FIELD, + /** @stable ICU 49 */ + UNUM_CURRENCY_FIELD, + /** @stable ICU 49 */ + UNUM_PERCENT_FIELD, + /** @stable ICU 49 */ + UNUM_PERMILL_FIELD, + /** @stable ICU 49 */ + UNUM_SIGN_FIELD, + /** @stable ICU 49 */ + UNUM_FIELD_COUNT +} UNumberFormatFields; + + +/** + * Create and return a new UNumberFormat for formatting and parsing + * numbers. A UNumberFormat may be used to format numbers by calling + * {@link #unum_format }, and to parse numbers by calling {@link #unum_parse }. + * The caller must call {@link #unum_close } when done to release resources + * used by this object. + * @param style The type of number format to open: one of + * UNUM_DECIMAL, UNUM_CURRENCY, UNUM_PERCENT, UNUM_SCIENTIFIC, + * UNUM_CURRENCY_ISO, UNUM_CURRENCY_PLURAL, UNUM_SPELLOUT, + * UNUM_ORDINAL, UNUM_DURATION, UNUM_NUMBERING_SYSTEM, + * UNUM_PATTERN_DECIMAL, UNUM_PATTERN_RULEBASED, or UNUM_DEFAULT. + * If UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED is passed then the + * number format is opened using the given pattern, which must conform + * to the syntax described in DecimalFormat or RuleBasedNumberFormat, + * respectively. + * @param pattern A pattern specifying the format to use. + * This parameter is ignored unless the style is + * UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED. + * @param patternLength The number of characters in the pattern, or -1 + * if null-terminated. This parameter is ignored unless the style is + * UNUM_PATTERN. + * @param locale A locale identifier to use to determine formatting + * and parsing conventions, or NULL to use the default locale. + * @param parseErr A pointer to a UParseError struct to receive the + * details of any parsing errors, or NULL if no parsing error details + * are desired. + * @param status A pointer to an input-output UErrorCode. + * @return A pointer to a newly created UNumberFormat, or NULL if an + * error occurred. + * @see unum_close + * @see DecimalFormat + * @stable ICU 2.0 + */ +U_STABLE UNumberFormat* U_EXPORT2 +unum_open( UNumberFormatStyle style, + const UChar* pattern, + int32_t patternLength, + const char* locale, + UParseError* parseErr, + UErrorCode* status); + + +/** +* Close a UNumberFormat. +* Once closed, a UNumberFormat may no longer be used. +* @param fmt The formatter to close. +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +unum_close(UNumberFormat* fmt); + + +/** + * Open a copy of a UNumberFormat. + * This function performs a deep copy. + * @param fmt The format to copy + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UNumberFormat identical to fmt. + * @stable ICU 2.0 + */ +U_STABLE UNumberFormat* U_EXPORT2 +unum_clone(const UNumberFormat *fmt, + UErrorCode *status); + +/** +* Format an integer using a UNumberFormat. +* The integer will be formatted according to the UNumberFormat's locale. +* @param fmt The formatter to use. +* @param number The number to format. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_formatInt64 +* @see unum_formatDouble +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +unum_format( const UNumberFormat* fmt, + int32_t number, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, + UErrorCode* status); + +/** +* Format an int64 using a UNumberFormat. +* The int64 will be formatted according to the UNumberFormat's locale. +* @param fmt The formatter to use. +* @param number The number to format. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_format +* @see unum_formatDouble +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +unum_formatInt64(const UNumberFormat *fmt, + int64_t number, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, + UErrorCode* status); + +/** +* Format a double using a UNumberFormat. +* The double will be formatted according to the UNumberFormat's locale. +* @param fmt The formatter to use. +* @param number The number to format. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_format +* @see unum_formatInt64 +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +unum_formatDouble( const UNumberFormat* fmt, + double number, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, /* 0 if ignore */ + UErrorCode* status); + +/** +* Format a decimal number using a UNumberFormat. +* The number will be formatted according to the UNumberFormat's locale. +* The syntax of the input number is a "numeric string" +* as defined in the Decimal Arithmetic Specification, available at +* http://speleotrove.com/decimal +* @param fmt The formatter to use. +* @param number The number to format. +* @param length The length of the input number, or -1 if the input is nul-terminated. +* @param result A pointer to a buffer to receive the NULL-terminated formatted number. If +* the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) +* then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number +* doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. +* @param resultLength The maximum size of result. +* @param pos A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case it is ignored. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_format +* @see unum_formatInt64 +* @see unum_parse +* @see unum_parseInt64 +* @see unum_parseDouble +* @see UFieldPosition +* @stable ICU 4.4 +*/ +U_STABLE int32_t U_EXPORT2 +unum_formatDecimal( const UNumberFormat* fmt, + const char * number, + int32_t length, + UChar* result, + int32_t resultLength, + UFieldPosition *pos, /* 0 if ignore */ + UErrorCode* status); + +/** + * Format a double currency amount using a UNumberFormat. + * The double will be formatted according to the UNumberFormat's locale. + * @param fmt the formatter to use + * @param number the number to format + * @param currency the 3-letter null-terminated ISO 4217 currency code + * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If + * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) + * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number + * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. + * @param resultLength the maximum number of UChars to write to result + * @param pos a pointer to a UFieldPosition. On input, + * position->field is read. On output, position->beginIndex and + * position->endIndex indicate the beginning and ending indices of + * field number position->field, if such a field exists. This + * parameter may be NULL, in which case it is ignored. + * @param status a pointer to an input-output UErrorCode + * @return the total buffer size needed; if greater than resultLength, + * the output was truncated. + * @see unum_formatDouble + * @see unum_parseDoubleCurrency + * @see UFieldPosition + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +unum_formatDoubleCurrency(const UNumberFormat* fmt, + double number, + UChar* currency, + UChar* result, + int32_t resultLength, + UFieldPosition* pos, + UErrorCode* status); + +/** + * Format a UFormattable into a string. + * @param fmt the formatter to use + * @param number the number to format, as a UFormattable + * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If + * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength) + * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number + * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR. + * @param resultLength the maximum number of UChars to write to result + * @param pos a pointer to a UFieldPosition. On input, + * position->field is read. On output, position->beginIndex and + * position->endIndex indicate the beginning and ending indices of + * field number position->field, if such a field exists. This + * parameter may be NULL, in which case it is ignored. + * @param status a pointer to an input-output UErrorCode + * @return the total buffer size needed; if greater than resultLength, + * the output was truncated. Will return 0 on error. + * @see unum_parseToUFormattable + * @stable ICU 52 + */ +U_STABLE int32_t U_EXPORT2 +unum_formatUFormattable(const UNumberFormat* fmt, + const UFormattable *number, + UChar *result, + int32_t resultLength, + UFieldPosition *pos, + UErrorCode *status); + +/** +* Parse a string into an integer using a UNumberFormat. +* The string will be parsed according to the UNumberFormat's locale. +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed integer +* @see unum_parseInt64 +* @see unum_parseDouble +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +unum_parse( const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + UErrorCode *status); + +/** +* Parse a string into an int64 using a UNumberFormat. +* The string will be parsed according to the UNumberFormat's locale. +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed integer +* @see unum_parse +* @see unum_parseDouble +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 2.8 +*/ +U_STABLE int64_t U_EXPORT2 +unum_parseInt64(const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + UErrorCode *status); + +/** +* Parse a string into a double using a UNumberFormat. +* The string will be parsed according to the UNumberFormat's locale. +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed double +* @see unum_parse +* @see unum_parseInt64 +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 2.0 +*/ +U_STABLE double U_EXPORT2 +unum_parseDouble( const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + UErrorCode *status); + + +/** +* Parse a number from a string into an unformatted numeric string using a UNumberFormat. +* The input string will be parsed according to the UNumberFormat's locale. +* The syntax of the output is a "numeric string" +* as defined in the Decimal Arithmetic Specification, available at +* http://speleotrove.com/decimal +* Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT +* and UNUM_DECIMAL_COMPACT_LONG. +* @param fmt The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not NULL, on output the offset at which parsing ended. +* @param outBuf A (char *) buffer to receive the parsed number as a string. The output string +* will be nul-terminated if there is sufficient space. +* @param outBufLength The size of the output buffer. May be zero, in which case +* the outBuf pointer may be NULL, and the function will return the +* size of the output string. +* @param status A pointer to an UErrorCode to receive any errors +* @return the length of the output string, not including any terminating nul. +* @see unum_parse +* @see unum_parseInt64 +* @see unum_format +* @see unum_formatInt64 +* @see unum_formatDouble +* @stable ICU 4.4 +*/ +U_STABLE int32_t U_EXPORT2 +unum_parseDecimal(const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t *parsePos /* 0 = start */, + char *outBuf, + int32_t outBufLength, + UErrorCode *status); + +/** + * Parse a string into a double and a currency using a UNumberFormat. + * The string will be parsed according to the UNumberFormat's locale. + * @param fmt the formatter to use + * @param text the text to parse + * @param textLength the length of text, or -1 if null-terminated + * @param parsePos a pointer to an offset index into text at which to + * begin parsing. On output, *parsePos will point after the last + * parsed character. This parameter may be NULL, in which case parsing + * begins at offset 0. + * @param currency a pointer to the buffer to receive the parsed null- + * terminated currency. This buffer must have a capacity of at least + * 4 UChars. + * @param status a pointer to an input-output UErrorCode + * @return the parsed double + * @see unum_parseDouble + * @see unum_formatDoubleCurrency + * @stable ICU 3.0 + */ +U_STABLE double U_EXPORT2 +unum_parseDoubleCurrency(const UNumberFormat* fmt, + const UChar* text, + int32_t textLength, + int32_t* parsePos, /* 0 = start */ + UChar* currency, + UErrorCode* status); + +/** + * Parse a UChar string into a UFormattable. + * Example code: + * \snippet test/cintltst/cnumtst.c unum_parseToUFormattable + * Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT + * and UNUM_DECIMAL_COMPACT_LONG. + * @param fmt the formatter to use + * @param result the UFormattable to hold the result. If NULL, a new UFormattable will be allocated (which the caller must close with ufmt_close). + * @param text the text to parse + * @param textLength the length of text, or -1 if null-terminated + * @param parsePos a pointer to an offset index into text at which to + * begin parsing. On output, *parsePos will point after the last + * parsed character. This parameter may be NULL in which case parsing + * begins at offset 0. + * @param status a pointer to an input-output UErrorCode + * @return the UFormattable. Will be ==result unless NULL was passed in for result, in which case it will be the newly opened UFormattable. + * @see ufmt_getType + * @see ufmt_close + * @stable ICU 52 + */ +U_STABLE UFormattable* U_EXPORT2 +unum_parseToUFormattable(const UNumberFormat* fmt, + UFormattable *result, + const UChar* text, + int32_t textLength, + int32_t* parsePos, /* 0 = start */ + UErrorCode* status); + +/** + * Set the pattern used by a UNumberFormat. This can only be used + * on a DecimalFormat, other formats return U_UNSUPPORTED_ERROR + * in the status. + * @param format The formatter to set. + * @param localized TRUE if the pattern is localized, FALSE otherwise. + * @param pattern The new pattern + * @param patternLength The length of pattern, or -1 if null-terminated. + * @param parseError A pointer to UParseError to recieve information + * about errors occurred during parsing, or NULL if no parse error + * information is desired. + * @param status A pointer to an input-output UErrorCode. + * @see unum_toPattern + * @see DecimalFormat + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +unum_applyPattern( UNumberFormat *format, + UBool localized, + const UChar *pattern, + int32_t patternLength, + UParseError *parseError, + UErrorCode *status + ); + +/** +* Get a locale for which decimal formatting patterns are available. +* A UNumberFormat in a locale returned by this function will perform the correct +* formatting and parsing for the locale. The results of this call are not +* valid for rule-based number formats. +* @param localeIndex The index of the desired locale. +* @return A locale for which number formatting patterns are available, or 0 if none. +* @see unum_countAvailable +* @stable ICU 2.0 +*/ +U_STABLE const char* U_EXPORT2 +unum_getAvailable(int32_t localeIndex); + +/** +* Determine how many locales have decimal formatting patterns available. The +* results of this call are not valid for rule-based number formats. +* This function is useful for determining the loop ending condition for +* calls to {@link #unum_getAvailable }. +* @return The number of locales for which decimal formatting patterns are available. +* @see unum_getAvailable +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +unum_countAvailable(void); + +#if UCONFIG_HAVE_PARSEALLINPUT +/* The UNumberFormatAttributeValue type cannot be #ifndef U_HIDE_INTERNAL_API, needed for .h variable declaration */ +/** + * @internal + */ +typedef enum UNumberFormatAttributeValue { + /** @internal */ + UNUM_FORMAT_ATTRIBUTE_VALUE_HIDDEN +} UNumberFormatAttributeValue; +#endif + +/** The possible UNumberFormat numeric attributes @stable ICU 2.0 */ +typedef enum UNumberFormatAttribute { + /** Parse integers only */ + UNUM_PARSE_INT_ONLY, + /** Use grouping separator */ + UNUM_GROUPING_USED, + /** Always show decimal point */ + UNUM_DECIMAL_ALWAYS_SHOWN, + /** Maximum integer digits */ + UNUM_MAX_INTEGER_DIGITS, + /** Minimum integer digits */ + UNUM_MIN_INTEGER_DIGITS, + /** Integer digits */ + UNUM_INTEGER_DIGITS, + /** Maximum fraction digits */ + UNUM_MAX_FRACTION_DIGITS, + /** Minimum fraction digits */ + UNUM_MIN_FRACTION_DIGITS, + /** Fraction digits */ + UNUM_FRACTION_DIGITS, + /** Multiplier */ + UNUM_MULTIPLIER, + /** Grouping size */ + UNUM_GROUPING_SIZE, + /** Rounding Mode */ + UNUM_ROUNDING_MODE, + /** Rounding increment */ + UNUM_ROUNDING_INCREMENT, + /** The width to which the output of format() is padded. */ + UNUM_FORMAT_WIDTH, + /** The position at which padding will take place. */ + UNUM_PADDING_POSITION, + /** Secondary grouping size */ + UNUM_SECONDARY_GROUPING_SIZE, + /** Use significant digits + * @stable ICU 3.0 */ + UNUM_SIGNIFICANT_DIGITS_USED, + /** Minimum significant digits + * @stable ICU 3.0 */ + UNUM_MIN_SIGNIFICANT_DIGITS, + /** Maximum significant digits + * @stable ICU 3.0 */ + UNUM_MAX_SIGNIFICANT_DIGITS, + /** Lenient parse mode used by rule-based formats. + * @stable ICU 3.0 + */ + UNUM_LENIENT_PARSE, +#if UCONFIG_HAVE_PARSEALLINPUT + /** Consume all input. (may use fastpath). Set to UNUM_YES (require fastpath), UNUM_NO (skip fastpath), or UNUM_MAYBE (heuristic). + * This is an internal ICU API. Do not use. + * @internal + */ + UNUM_PARSE_ALL_INPUT = 20, +#endif + /** + * Scale, which adjusts the position of the + * decimal point when formatting. Amounts will be multiplied by 10 ^ (scale) + * before they are formatted. The default value for the scale is 0 ( no adjustment ). + * + *

Example: setting the scale to 3, 123 formats as "123,000" + *

Example: setting the scale to -4, 123 formats as "0.0123" + * + * @stable ICU 51 */ + UNUM_SCALE = 21, + + /** + * if this attribute is set to 0, it is set to UNUM_CURRENCY_STANDARD purpose, + * otherwise it is UNUM_CURRENCY_CASH purpose + * Default: 0 (UNUM_CURRENCY_STANDARD purpose) + * @stable ICU 54 + */ + UNUM_CURRENCY_USAGE = 23, + + /* The following cannot be #ifndef U_HIDE_INTERNAL_API, needed in .h file variable declararions */ + /** One below the first bitfield-boolean item. + * All items after this one are stored in boolean form. + * @internal */ + UNUM_MAX_NONBOOLEAN_ATTRIBUTE = 0x0FFF, + + /** If 1, specifies that if setting the "max integer digits" attribute would truncate a value, set an error status rather than silently truncating. + * For example, formatting the value 1234 with 4 max int digits would succeed, but formatting 12345 would fail. There is no effect on parsing. + * Default: 0 (not set) + * @stable ICU 50 + */ + UNUM_FORMAT_FAIL_IF_MORE_THAN_MAX_DIGITS = 0x1000, + /** + * if this attribute is set to 1, specifies that, if the pattern doesn't contain an exponent, the exponent will not be parsed. If the pattern does contain an exponent, this attribute has no effect. + * Has no effect on formatting. + * Default: 0 (unset) + * @stable ICU 50 + */ + UNUM_PARSE_NO_EXPONENT, + + /** + * if this attribute is set to 1, specifies that, if the pattern contains a + * decimal mark the input is required to have one. If this attribute is set to 0, + * specifies that input does not have to contain a decimal mark. + * Has no effect on formatting. + * Default: 0 (unset) + * @stable ICU 54 + */ + UNUM_PARSE_DECIMAL_MARK_REQUIRED = 0x1002, + + /* The following cannot be #ifndef U_HIDE_INTERNAL_API, needed in .h file variable declararions */ + /** Limit of boolean attributes. + * @internal */ + UNUM_LIMIT_BOOLEAN_ATTRIBUTE = 0x1003 +} UNumberFormatAttribute; + +/** +* Get a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. +* @param fmt The formatter to query. +* @param attr The attribute to query; one of UNUM_PARSE_INT_ONLY, UNUM_GROUPING_USED, +* UNUM_DECIMAL_ALWAYS_SHOWN, UNUM_MAX_INTEGER_DIGITS, UNUM_MIN_INTEGER_DIGITS, UNUM_INTEGER_DIGITS, +* UNUM_MAX_FRACTION_DIGITS, UNUM_MIN_FRACTION_DIGITS, UNUM_FRACTION_DIGITS, UNUM_MULTIPLIER, +* UNUM_GROUPING_SIZE, UNUM_ROUNDING_MODE, UNUM_FORMAT_WIDTH, UNUM_PADDING_POSITION, UNUM_SECONDARY_GROUPING_SIZE, +* UNUM_SCALE, UNUM_MINIMUM_GROUPING_DIGITS. +* @return The value of attr. +* @see unum_setAttribute +* @see unum_getDoubleAttribute +* @see unum_setDoubleAttribute +* @see unum_getTextAttribute +* @see unum_setTextAttribute +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +unum_getAttribute(const UNumberFormat* fmt, + UNumberFormatAttribute attr); + +/** +* Set a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. If the +* formatter does not understand the attribute, the call is ignored. Rule-based formatters only understand +* the lenient-parse attribute. +* @param fmt The formatter to set. +* @param attr The attribute to set; one of UNUM_PARSE_INT_ONLY, UNUM_GROUPING_USED, +* UNUM_DECIMAL_ALWAYS_SHOWN, UNUM_MAX_INTEGER_DIGITS, UNUM_MIN_INTEGER_DIGITS, UNUM_INTEGER_DIGITS, +* UNUM_MAX_FRACTION_DIGITS, UNUM_MIN_FRACTION_DIGITS, UNUM_FRACTION_DIGITS, UNUM_MULTIPLIER, +* UNUM_GROUPING_SIZE, UNUM_ROUNDING_MODE, UNUM_FORMAT_WIDTH, UNUM_PADDING_POSITION, UNUM_SECONDARY_GROUPING_SIZE, +* UNUM_LENIENT_PARSE, UNUM_SCALE, UNUM_MINIMUM_GROUPING_DIGITS. +* @param newValue The new value of attr. +* @see unum_getAttribute +* @see unum_getDoubleAttribute +* @see unum_setDoubleAttribute +* @see unum_getTextAttribute +* @see unum_setTextAttribute +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +unum_setAttribute( UNumberFormat* fmt, + UNumberFormatAttribute attr, + int32_t newValue); + + +/** +* Get a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. +* If the formatter does not understand the attribute, -1 is returned. +* @param fmt The formatter to query. +* @param attr The attribute to query; e.g. UNUM_ROUNDING_INCREMENT. +* @return The value of attr. +* @see unum_getAttribute +* @see unum_setAttribute +* @see unum_setDoubleAttribute +* @see unum_getTextAttribute +* @see unum_setTextAttribute +* @stable ICU 2.0 +*/ +U_STABLE double U_EXPORT2 +unum_getDoubleAttribute(const UNumberFormat* fmt, + UNumberFormatAttribute attr); + +/** +* Set a numeric attribute associated with a UNumberFormat. +* An example of a numeric attribute is the number of integer digits a formatter will produce. +* If the formatter does not understand the attribute, this call is ignored. +* @param fmt The formatter to set. +* @param attr The attribute to set; e.g. UNUM_ROUNDING_INCREMENT. +* @param newValue The new value of attr. +* @see unum_getAttribute +* @see unum_setAttribute +* @see unum_getDoubleAttribute +* @see unum_getTextAttribute +* @see unum_setTextAttribute +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +unum_setDoubleAttribute( UNumberFormat* fmt, + UNumberFormatAttribute attr, + double newValue); + +/** The possible UNumberFormat text attributes @stable ICU 2.0*/ +typedef enum UNumberFormatTextAttribute { + /** Positive prefix */ + UNUM_POSITIVE_PREFIX, + /** Positive suffix */ + UNUM_POSITIVE_SUFFIX, + /** Negative prefix */ + UNUM_NEGATIVE_PREFIX, + /** Negative suffix */ + UNUM_NEGATIVE_SUFFIX, + /** The character used to pad to the format width. */ + UNUM_PADDING_CHARACTER, + /** The ISO currency code */ + UNUM_CURRENCY_CODE, + /** + * The default rule set, such as "%spellout-numbering-year:", "%spellout-cardinal:", + * "%spellout-ordinal-masculine-plural:", "%spellout-ordinal-feminine:", or + * "%spellout-ordinal-neuter:". The available public rulesets can be listed using + * unum_getTextAttribute with UNUM_PUBLIC_RULESETS. This is only available with + * rule-based formatters. + * @stable ICU 3.0 + */ + UNUM_DEFAULT_RULESET, + /** + * The public rule sets. This is only available with rule-based formatters. + * This is a read-only attribute. The public rulesets are returned as a + * single string, with each ruleset name delimited by ';' (semicolon). See the + * CLDR LDML spec for more information about RBNF rulesets: + * http://www.unicode.org/reports/tr35/tr35-numbers.html#Rule-Based_Number_Formatting + * @stable ICU 3.0 + */ + UNUM_PUBLIC_RULESETS +} UNumberFormatTextAttribute; + +/** +* Get a text attribute associated with a UNumberFormat. +* An example of a text attribute is the suffix for positive numbers. If the formatter +* does not understand the attribute, U_UNSUPPORTED_ERROR is returned as the status. +* Rule-based formatters only understand UNUM_DEFAULT_RULESET and UNUM_PUBLIC_RULESETS. +* @param fmt The formatter to query. +* @param tag The attribute to query; one of UNUM_POSITIVE_PREFIX, UNUM_POSITIVE_SUFFIX, +* UNUM_NEGATIVE_PREFIX, UNUM_NEGATIVE_SUFFIX, UNUM_PADDING_CHARACTER, UNUM_CURRENCY_CODE, +* UNUM_DEFAULT_RULESET, or UNUM_PUBLIC_RULESETS. +* @param result A pointer to a buffer to receive the attribute. +* @param resultLength The maximum size of result. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see unum_setTextAttribute +* @see unum_getAttribute +* @see unum_setAttribute +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +unum_getTextAttribute( const UNumberFormat* fmt, + UNumberFormatTextAttribute tag, + UChar* result, + int32_t resultLength, + UErrorCode* status); + +/** +* Set a text attribute associated with a UNumberFormat. +* An example of a text attribute is the suffix for positive numbers. Rule-based formatters +* only understand UNUM_DEFAULT_RULESET. +* @param fmt The formatter to set. +* @param tag The attribute to set; one of UNUM_POSITIVE_PREFIX, UNUM_POSITIVE_SUFFIX, +* UNUM_NEGATIVE_PREFIX, UNUM_NEGATIVE_SUFFIX, UNUM_PADDING_CHARACTER, UNUM_CURRENCY_CODE, +* or UNUM_DEFAULT_RULESET. +* @param newValue The new value of attr. +* @param newValueLength The length of newValue, or -1 if null-terminated. +* @param status A pointer to an UErrorCode to receive any errors +* @see unum_getTextAttribute +* @see unum_getAttribute +* @see unum_setAttribute +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +unum_setTextAttribute( UNumberFormat* fmt, + UNumberFormatTextAttribute tag, + const UChar* newValue, + int32_t newValueLength, + UErrorCode *status); + +/** + * Extract the pattern from a UNumberFormat. The pattern will follow + * the DecimalFormat pattern syntax. + * @param fmt The formatter to query. + * @param isPatternLocalized TRUE if the pattern should be localized, + * FALSE otherwise. This is ignored if the formatter is a rule-based + * formatter. + * @param result A pointer to a buffer to receive the pattern. + * @param resultLength The maximum size of result. + * @param status A pointer to an input-output UErrorCode. + * @return The total buffer size needed; if greater than resultLength, + * the output was truncated. + * @see unum_applyPattern + * @see DecimalFormat + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +unum_toPattern( const UNumberFormat* fmt, + UBool isPatternLocalized, + UChar* result, + int32_t resultLength, + UErrorCode* status); + + +/** + * Constants for specifying a number format symbol. + * @stable ICU 2.0 + */ +typedef enum UNumberFormatSymbol { + /** The decimal separator */ + UNUM_DECIMAL_SEPARATOR_SYMBOL = 0, + /** The grouping separator */ + UNUM_GROUPING_SEPARATOR_SYMBOL = 1, + /** The pattern separator */ + UNUM_PATTERN_SEPARATOR_SYMBOL = 2, + /** The percent sign */ + UNUM_PERCENT_SYMBOL = 3, + /** Zero*/ + UNUM_ZERO_DIGIT_SYMBOL = 4, + /** Character representing a digit in the pattern */ + UNUM_DIGIT_SYMBOL = 5, + /** The minus sign */ + UNUM_MINUS_SIGN_SYMBOL = 6, + /** The plus sign */ + UNUM_PLUS_SIGN_SYMBOL = 7, + /** The currency symbol */ + UNUM_CURRENCY_SYMBOL = 8, + /** The international currency symbol */ + UNUM_INTL_CURRENCY_SYMBOL = 9, + /** The monetary separator */ + UNUM_MONETARY_SEPARATOR_SYMBOL = 10, + /** The exponential symbol */ + UNUM_EXPONENTIAL_SYMBOL = 11, + /** Per mill symbol */ + UNUM_PERMILL_SYMBOL = 12, + /** Escape padding character */ + UNUM_PAD_ESCAPE_SYMBOL = 13, + /** Infinity symbol */ + UNUM_INFINITY_SYMBOL = 14, + /** Nan symbol */ + UNUM_NAN_SYMBOL = 15, + /** Significant digit symbol + * @stable ICU 3.0 */ + UNUM_SIGNIFICANT_DIGIT_SYMBOL = 16, + /** The monetary grouping separator + * @stable ICU 3.6 + */ + UNUM_MONETARY_GROUPING_SEPARATOR_SYMBOL = 17, + /** One + * @stable ICU 4.6 + */ + UNUM_ONE_DIGIT_SYMBOL = 18, + /** Two + * @stable ICU 4.6 + */ + UNUM_TWO_DIGIT_SYMBOL = 19, + /** Three + * @stable ICU 4.6 + */ + UNUM_THREE_DIGIT_SYMBOL = 20, + /** Four + * @stable ICU 4.6 + */ + UNUM_FOUR_DIGIT_SYMBOL = 21, + /** Five + * @stable ICU 4.6 + */ + UNUM_FIVE_DIGIT_SYMBOL = 22, + /** Six + * @stable ICU 4.6 + */ + UNUM_SIX_DIGIT_SYMBOL = 23, + /** Seven + * @stable ICU 4.6 + */ + UNUM_SEVEN_DIGIT_SYMBOL = 24, + /** Eight + * @stable ICU 4.6 + */ + UNUM_EIGHT_DIGIT_SYMBOL = 25, + /** Nine + * @stable ICU 4.6 + */ + UNUM_NINE_DIGIT_SYMBOL = 26, + + /** Multiplication sign + * @stable ICU 54 + */ + UNUM_EXPONENT_MULTIPLICATION_SYMBOL = 27, + + /** count symbol constants */ + UNUM_FORMAT_SYMBOL_COUNT = 28 +} UNumberFormatSymbol; + +/** +* Get a symbol associated with a UNumberFormat. +* A UNumberFormat uses symbols to represent the special locale-dependent +* characters in a number, for example the percent sign. This API is not +* supported for rule-based formatters. +* @param fmt The formatter to query. +* @param symbol The UNumberFormatSymbol constant for the symbol to get +* @param buffer The string buffer that will receive the symbol string; +* if it is NULL, then only the length of the symbol is returned +* @param size The size of the string buffer +* @param status A pointer to an UErrorCode to receive any errors +* @return The length of the symbol; the buffer is not modified if +* length>=size +* @see unum_setSymbol +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +unum_getSymbol(const UNumberFormat *fmt, + UNumberFormatSymbol symbol, + UChar *buffer, + int32_t size, + UErrorCode *status); + +/** +* Set a symbol associated with a UNumberFormat. +* A UNumberFormat uses symbols to represent the special locale-dependent +* characters in a number, for example the percent sign. This API is not +* supported for rule-based formatters. +* @param fmt The formatter to set. +* @param symbol The UNumberFormatSymbol constant for the symbol to set +* @param value The string to set the symbol to +* @param length The length of the string, or -1 for a zero-terminated string +* @param status A pointer to an UErrorCode to receive any errors. +* @see unum_getSymbol +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +unum_setSymbol(UNumberFormat *fmt, + UNumberFormatSymbol symbol, + const UChar *value, + int32_t length, + UErrorCode *status); + + +/** + * Get the locale for this number format object. + * You can choose between valid and actual locale. + * @param fmt The formatter to get the locale from + * @param type type of the locale we're looking for (valid or actual) + * @param status error code for the operation + * @return the locale name + * @stable ICU 2.8 + */ +U_STABLE const char* U_EXPORT2 +unum_getLocaleByType(const UNumberFormat *fmt, + ULocDataLocaleType type, + UErrorCode* status); + +/** + * Set a particular UDisplayContext value in the formatter, such as + * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. + * @param fmt The formatter for which to set a UDisplayContext value. + * @param value The UDisplayContext value to set. + * @param status A pointer to an UErrorCode to receive any errors + * @stable ICU 53 + */ +U_STABLE void U_EXPORT2 +unum_setContext(UNumberFormat* fmt, UDisplayContext value, UErrorCode* status); + +/** + * Get the formatter's UDisplayContext value for the specified UDisplayContextType, + * such as UDISPCTX_TYPE_CAPITALIZATION. + * @param fmt The formatter to query. + * @param type The UDisplayContextType whose value to return + * @param status A pointer to an UErrorCode to receive any errors + * @return The UDisplayContextValue for the specified type. + * @stable ICU 53 + */ +U_STABLE UDisplayContext U_EXPORT2 +unum_getContext(const UNumberFormat *fmt, UDisplayContextType type, UErrorCode* status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// udat.h +/* + ******************************************************************************* + * Copyright (C) 1996-2016, International Business Machines + * Corporation and others. All Rights Reserved. + ******************************************************************************* +*/ + +#ifndef UDAT_H +#define UDAT_H + + +#if !UCONFIG_NO_FORMATTING + +/** + * \file + * \brief C API: DateFormat + * + *

Date Format C API

+ * + * Date Format C API consists of functions that convert dates and + * times from their internal representations to textual form and back again in a + * language-independent manner. Converting from the internal representation (milliseconds + * since midnight, January 1, 1970) to text is known as "formatting," and converting + * from text to millis is known as "parsing." We currently define only one concrete + * structure UDateFormat, which can handle pretty much all normal + * date formatting and parsing actions. + *

+ * Date Format helps you to format and parse dates for any locale. Your code can + * be completely independent of the locale conventions for months, days of the + * week, or even the calendar format: lunar vs. solar. + *

+ * To format a date for the current Locale with default time and date style, + * use one of the static factory methods: + *

+ * \code
+ *  UErrorCode status = U_ZERO_ERROR;
+ *  UChar *myString;
+ *  int32_t myStrlen = 0;
+ *  UDateFormat* dfmt = udat_open(UDAT_DEFAULT, UDAT_DEFAULT, NULL, NULL, -1, NULL, -1, &status);
+ *  myStrlen = udat_format(dfmt, myDate, NULL, myStrlen, NULL, &status);
+ *  if (status==U_BUFFER_OVERFLOW_ERROR){
+ *      status=U_ZERO_ERROR;
+ *      myString=(UChar*)malloc(sizeof(UChar) * (myStrlen+1) );
+ *      udat_format(dfmt, myDate, myString, myStrlen+1, NULL, &status);
+ *  }
+ * \endcode
+ * 
+ * If you are formatting multiple numbers, it is more efficient to get the + * format and use it multiple times so that the system doesn't have to fetch the + * information about the local language and country conventions multiple times. + *
+ * \code
+ *  UErrorCode status = U_ZERO_ERROR;
+ *  int32_t i, myStrlen = 0;
+ *  UChar* myString;
+ *  char buffer[1024];
+ *  UDate myDateArr[] = { 0.0, 100000000.0, 2000000000.0 }; // test values
+ *  UDateFormat* df = udat_open(UDAT_DEFAULT, UDAT_DEFAULT, NULL, NULL, -1, NULL, 0, &status);
+ *  for (i = 0; i < 3; i++) {
+ *      myStrlen = udat_format(df, myDateArr[i], NULL, myStrlen, NULL, &status);
+ *      if(status == U_BUFFER_OVERFLOW_ERROR){
+ *          status = U_ZERO_ERROR;
+ *          myString = (UChar*)malloc(sizeof(UChar) * (myStrlen+1) );
+ *          udat_format(df, myDateArr[i], myString, myStrlen+1, NULL, &status);
+ *          printf("%s\n", u_austrcpy(buffer, myString) );
+ *          free(myString);
+ *      }
+ *  }
+ * \endcode
+ * 
+ * To get specific fields of a date, you can use UFieldPosition to + * get specific fields. + *
+ * \code
+ *  UErrorCode status = U_ZERO_ERROR;
+ *  UFieldPosition pos;
+ *  UChar *myString;
+ *  int32_t myStrlen = 0;
+ *  char buffer[1024];
+ *
+ *  pos.field = 1;  // Same as the DateFormat::EField enum
+ *  UDateFormat* dfmt = udat_open(UDAT_DEFAULT, UDAT_DEFAULT, NULL, -1, NULL, 0, &status);
+ *  myStrlen = udat_format(dfmt, myDate, NULL, myStrlen, &pos, &status);
+ *  if (status==U_BUFFER_OVERFLOW_ERROR){
+ *      status=U_ZERO_ERROR;
+ *      myString=(UChar*)malloc(sizeof(UChar) * (myStrlen+1) );
+ *      udat_format(dfmt, myDate, myString, myStrlen+1, &pos, &status);
+ *  }
+ *  printf("date format: %s\n", u_austrcpy(buffer, myString));
+ *  buffer[pos.endIndex] = 0;   // NULL terminate the string.
+ *  printf("UFieldPosition position equals %s\n", &buffer[pos.beginIndex]);
+ * \endcode
+ * 
+ * To format a date for a different Locale, specify it in the call to + * udat_open() + *
+ * \code
+ *        UDateFormat* df = udat_open(UDAT_SHORT, UDAT_SHORT, "fr_FR", NULL, -1, NULL, 0, &status);
+ * \endcode
+ * 
+ * You can use a DateFormat API udat_parse() to parse. + *
+ * \code
+ *  UErrorCode status = U_ZERO_ERROR;
+ *  int32_t parsepos=0;
+ *  UDate myDate = udat_parse(df, myString, u_strlen(myString), &parsepos, &status);
+ * \endcode
+ * 
+ * You can pass in different options for the arguments for date and time style + * to control the length of the result; from SHORT to MEDIUM to LONG to FULL. + * The exact result depends on the locale, but generally: + * see UDateFormatStyle for more details + *
    + *
  • UDAT_SHORT is completely numeric, such as 12/13/52 or 3:30pm + *
  • UDAT_MEDIUM is longer, such as Jan 12, 1952 + *
  • UDAT_LONG is longer, such as January 12, 1952 or 3:30:32pm + *
  • UDAT_FULL is pretty completely specified, such as + * Tuesday, April 12, 1952 AD or 3:30:42pm PST. + *
+ * You can also set the time zone on the format if you wish. + *

+ * You can also use forms of the parse and format methods with Parse Position and + * UFieldPosition to allow you to + *

    + *
  • Progressively parse through pieces of a string. + *
  • Align any particular field, or find out where it is for selection + * on the screen. + *
+ *

Date and Time Patterns:

+ * + *

Date and time formats are specified by date and time pattern strings. + * Within date and time pattern strings, all unquoted ASCII letters [A-Za-z] are reserved + * as pattern letters representing calendar fields. UDateFormat supports + * the date and time formatting algorithm and pattern letters defined by + * UTS#35 + * Unicode Locale Data Markup Language (LDML) and further documented for ICU in the + * ICU + * User Guide.

+ */ + +/** A date formatter. + * For usage in C programs. + * @stable ICU 2.6 + */ +typedef void* UDateFormat; + +/** The possible date/time format styles + * @stable ICU 2.6 + */ +typedef enum UDateFormatStyle { + /** Full style */ + UDAT_FULL, + /** Long style */ + UDAT_LONG, + /** Medium style */ + UDAT_MEDIUM, + /** Short style */ + UDAT_SHORT, + /** Default style */ + UDAT_DEFAULT = UDAT_MEDIUM, + + /** Bitfield for relative date */ + UDAT_RELATIVE = (1 << 7), + + UDAT_FULL_RELATIVE = UDAT_FULL | UDAT_RELATIVE, + + UDAT_LONG_RELATIVE = UDAT_LONG | UDAT_RELATIVE, + + UDAT_MEDIUM_RELATIVE = UDAT_MEDIUM | UDAT_RELATIVE, + + UDAT_SHORT_RELATIVE = UDAT_SHORT | UDAT_RELATIVE, + + + /** No style */ + UDAT_NONE = -1, + + /** + * Use the pattern given in the parameter to udat_open + * @see udat_open + * @stable ICU 50 + */ + UDAT_PATTERN = -2, + +} UDateFormatStyle; + +/* Skeletons for dates. */ + +/** + * Constant for date skeleton with year. + * @stable ICU 4.0 + */ +#define UDAT_YEAR "y" +/** + * Constant for date skeleton with quarter. + * @stable ICU 51 + */ +#define UDAT_QUARTER "QQQQ" +/** + * Constant for date skeleton with abbreviated quarter. + * @stable ICU 51 + */ +#define UDAT_ABBR_QUARTER "QQQ" +/** + * Constant for date skeleton with year and quarter. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_QUARTER "yQQQQ" +/** + * Constant for date skeleton with year and abbreviated quarter. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_ABBR_QUARTER "yQQQ" +/** + * Constant for date skeleton with month. + * @stable ICU 4.0 + */ +#define UDAT_MONTH "MMMM" +/** + * Constant for date skeleton with abbreviated month. + * @stable ICU 4.0 + */ +#define UDAT_ABBR_MONTH "MMM" +/** + * Constant for date skeleton with numeric month. + * @stable ICU 4.0 + */ +#define UDAT_NUM_MONTH "M" +/** + * Constant for date skeleton with year and month. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_MONTH "yMMMM" +/** + * Constant for date skeleton with year and abbreviated month. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_ABBR_MONTH "yMMM" +/** + * Constant for date skeleton with year and numeric month. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_NUM_MONTH "yM" +/** + * Constant for date skeleton with day. + * @stable ICU 4.0 + */ +#define UDAT_DAY "d" +/** + * Constant for date skeleton with year, month, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_MONTH_DAY "yMMMMd" +/** + * Constant for date skeleton with year, abbreviated month, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_ABBR_MONTH_DAY "yMMMd" +/** + * Constant for date skeleton with year, numeric month, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_NUM_MONTH_DAY "yMd" +/** + * Constant for date skeleton with weekday. + * @stable ICU 51 + */ +#define UDAT_WEEKDAY "EEEE" +/** + * Constant for date skeleton with abbreviated weekday. + * @stable ICU 51 + */ +#define UDAT_ABBR_WEEKDAY "E" +/** + * Constant for date skeleton with year, month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_MONTH_WEEKDAY_DAY "yMMMMEEEEd" +/** + * Constant for date skeleton with year, abbreviated month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_ABBR_MONTH_WEEKDAY_DAY "yMMMEd" +/** + * Constant for date skeleton with year, numeric month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_YEAR_NUM_MONTH_WEEKDAY_DAY "yMEd" +/** + * Constant for date skeleton with long month and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_MONTH_DAY "MMMMd" +/** + * Constant for date skeleton with abbreviated month and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_ABBR_MONTH_DAY "MMMd" +/** + * Constant for date skeleton with numeric month and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_NUM_MONTH_DAY "Md" +/** + * Constant for date skeleton with month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_MONTH_WEEKDAY_DAY "MMMMEEEEd" +/** + * Constant for date skeleton with abbreviated month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_ABBR_MONTH_WEEKDAY_DAY "MMMEd" +/** + * Constant for date skeleton with numeric month, weekday, and day. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_NUM_MONTH_WEEKDAY_DAY "MEd" + +/* Skeletons for times. */ + +/** + * Constant for date skeleton with hour, with the locale's preferred hour format (12 or 24). + * @stable ICU 4.0 + */ +#define UDAT_HOUR "j" +/** + * Constant for date skeleton with hour in 24-hour presentation. + * @stable ICU 51 + */ +#define UDAT_HOUR24 "H" +/** + * Constant for date skeleton with minute. + * @stable ICU 51 + */ +#define UDAT_MINUTE "m" +/** + * Constant for date skeleton with hour and minute, with the locale's preferred hour format (12 or 24). + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_HOUR_MINUTE "jm" +/** + * Constant for date skeleton with hour and minute in 24-hour presentation. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_HOUR24_MINUTE "Hm" +/** + * Constant for date skeleton with second. + * @stable ICU 51 + */ +#define UDAT_SECOND "s" +/** + * Constant for date skeleton with hour, minute, and second, + * with the locale's preferred hour format (12 or 24). + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_HOUR_MINUTE_SECOND "jms" +/** + * Constant for date skeleton with hour, minute, and second in + * 24-hour presentation. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_HOUR24_MINUTE_SECOND "Hms" +/** + * Constant for date skeleton with minute and second. + * Used in combinations date + time, date + time + zone, or time + zone. + * @stable ICU 4.0 + */ +#define UDAT_MINUTE_SECOND "ms" + +/* Skeletons for time zones. */ + +/** + * Constant for generic location format, such as Los Angeles Time; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_LOCATION_TZ "VVVV" +/** + * Constant for generic non-location format, such as Pacific Time; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_GENERIC_TZ "vvvv" +/** + * Constant for generic non-location format, abbreviated if possible, such as PT; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_ABBR_GENERIC_TZ "v" +/** + * Constant for specific non-location format, such as Pacific Daylight Time; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_SPECIFIC_TZ "zzzz" +/** + * Constant for specific non-location format, abbreviated if possible, such as PDT; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_ABBR_SPECIFIC_TZ "z" +/** + * Constant for localized GMT/UTC format, such as GMT+8:00 or HPG-8:00; + * used in combinations date + time + zone, or time + zone. + * @see LDML Date Format Patterns + * @see LDML Time Zone Fallback + * @stable ICU 51 + */ +#define UDAT_ABBR_UTC_TZ "ZZZZ" + +/* deprecated skeleton constants */ + + +/** + * FieldPosition and UFieldPosition selectors for format fields + * defined by DateFormat and UDateFormat. + * @stable ICU 3.0 + */ +typedef enum UDateFormatField { + /** + * FieldPosition and UFieldPosition selector for 'G' field alignment, + * corresponding to the UCAL_ERA field. + * @stable ICU 3.0 + */ + UDAT_ERA_FIELD = 0, + + /** + * FieldPosition and UFieldPosition selector for 'y' field alignment, + * corresponding to the UCAL_YEAR field. + * @stable ICU 3.0 + */ + UDAT_YEAR_FIELD = 1, + + /** + * FieldPosition and UFieldPosition selector for 'M' field alignment, + * corresponding to the UCAL_MONTH field. + * @stable ICU 3.0 + */ + UDAT_MONTH_FIELD = 2, + + /** + * FieldPosition and UFieldPosition selector for 'd' field alignment, + * corresponding to the UCAL_DATE field. + * @stable ICU 3.0 + */ + UDAT_DATE_FIELD = 3, + + /** + * FieldPosition and UFieldPosition selector for 'k' field alignment, + * corresponding to the UCAL_HOUR_OF_DAY field. + * UDAT_HOUR_OF_DAY1_FIELD is used for the one-based 24-hour clock. + * For example, 23:59 + 01:00 results in 24:59. + * @stable ICU 3.0 + */ + UDAT_HOUR_OF_DAY1_FIELD = 4, + + /** + * FieldPosition and UFieldPosition selector for 'H' field alignment, + * corresponding to the UCAL_HOUR_OF_DAY field. + * UDAT_HOUR_OF_DAY0_FIELD is used for the zero-based 24-hour clock. + * For example, 23:59 + 01:00 results in 00:59. + * @stable ICU 3.0 + */ + UDAT_HOUR_OF_DAY0_FIELD = 5, + + /** + * FieldPosition and UFieldPosition selector for 'm' field alignment, + * corresponding to the UCAL_MINUTE field. + * @stable ICU 3.0 + */ + UDAT_MINUTE_FIELD = 6, + + /** + * FieldPosition and UFieldPosition selector for 's' field alignment, + * corresponding to the UCAL_SECOND field. + * @stable ICU 3.0 + */ + UDAT_SECOND_FIELD = 7, + + /** + * FieldPosition and UFieldPosition selector for 'S' field alignment, + * corresponding to the UCAL_MILLISECOND field. + * + * Note: Time formats that use 'S' can display a maximum of three + * significant digits for fractional seconds, corresponding to millisecond + * resolution and a fractional seconds sub-pattern of SSS. If the + * sub-pattern is S or SS, the fractional seconds value will be truncated + * (not rounded) to the number of display places specified. If the + * fractional seconds sub-pattern is longer than SSS, the additional + * display places will be filled with zeros. + * @stable ICU 3.0 + */ + UDAT_FRACTIONAL_SECOND_FIELD = 8, + + /** + * FieldPosition and UFieldPosition selector for 'E' field alignment, + * corresponding to the UCAL_DAY_OF_WEEK field. + * @stable ICU 3.0 + */ + UDAT_DAY_OF_WEEK_FIELD = 9, + + /** + * FieldPosition and UFieldPosition selector for 'D' field alignment, + * corresponding to the UCAL_DAY_OF_YEAR field. + * @stable ICU 3.0 + */ + UDAT_DAY_OF_YEAR_FIELD = 10, + + /** + * FieldPosition and UFieldPosition selector for 'F' field alignment, + * corresponding to the UCAL_DAY_OF_WEEK_IN_MONTH field. + * @stable ICU 3.0 + */ + UDAT_DAY_OF_WEEK_IN_MONTH_FIELD = 11, + + /** + * FieldPosition and UFieldPosition selector for 'w' field alignment, + * corresponding to the UCAL_WEEK_OF_YEAR field. + * @stable ICU 3.0 + */ + UDAT_WEEK_OF_YEAR_FIELD = 12, + + /** + * FieldPosition and UFieldPosition selector for 'W' field alignment, + * corresponding to the UCAL_WEEK_OF_MONTH field. + * @stable ICU 3.0 + */ + UDAT_WEEK_OF_MONTH_FIELD = 13, + + /** + * FieldPosition and UFieldPosition selector for 'a' field alignment, + * corresponding to the UCAL_AM_PM field. + * @stable ICU 3.0 + */ + UDAT_AM_PM_FIELD = 14, + + /** + * FieldPosition and UFieldPosition selector for 'h' field alignment, + * corresponding to the UCAL_HOUR field. + * UDAT_HOUR1_FIELD is used for the one-based 12-hour clock. + * For example, 11:30 PM + 1 hour results in 12:30 AM. + * @stable ICU 3.0 + */ + UDAT_HOUR1_FIELD = 15, + + /** + * FieldPosition and UFieldPosition selector for 'K' field alignment, + * corresponding to the UCAL_HOUR field. + * UDAT_HOUR0_FIELD is used for the zero-based 12-hour clock. + * For example, 11:30 PM + 1 hour results in 00:30 AM. + * @stable ICU 3.0 + */ + UDAT_HOUR0_FIELD = 16, + + /** + * FieldPosition and UFieldPosition selector for 'z' field alignment, + * corresponding to the UCAL_ZONE_OFFSET and + * UCAL_DST_OFFSET fields. + * @stable ICU 3.0 + */ + UDAT_TIMEZONE_FIELD = 17, + + /** + * FieldPosition and UFieldPosition selector for 'Y' field alignment, + * corresponding to the UCAL_YEAR_WOY field. + * @stable ICU 3.0 + */ + UDAT_YEAR_WOY_FIELD = 18, + + /** + * FieldPosition and UFieldPosition selector for 'e' field alignment, + * corresponding to the UCAL_DOW_LOCAL field. + * @stable ICU 3.0 + */ + UDAT_DOW_LOCAL_FIELD = 19, + + /** + * FieldPosition and UFieldPosition selector for 'u' field alignment, + * corresponding to the UCAL_EXTENDED_YEAR field. + * @stable ICU 3.0 + */ + UDAT_EXTENDED_YEAR_FIELD = 20, + + /** + * FieldPosition and UFieldPosition selector for 'g' field alignment, + * corresponding to the UCAL_JULIAN_DAY field. + * @stable ICU 3.0 + */ + UDAT_JULIAN_DAY_FIELD = 21, + + /** + * FieldPosition and UFieldPosition selector for 'A' field alignment, + * corresponding to the UCAL_MILLISECONDS_IN_DAY field. + * @stable ICU 3.0 + */ + UDAT_MILLISECONDS_IN_DAY_FIELD = 22, + + /** + * FieldPosition and UFieldPosition selector for 'Z' field alignment, + * corresponding to the UCAL_ZONE_OFFSET and + * UCAL_DST_OFFSET fields. + * @stable ICU 3.0 + */ + UDAT_TIMEZONE_RFC_FIELD = 23, + + /** + * FieldPosition and UFieldPosition selector for 'v' field alignment, + * corresponding to the UCAL_ZONE_OFFSET field. + * @stable ICU 3.4 + */ + UDAT_TIMEZONE_GENERIC_FIELD = 24, + /** + * FieldPosition selector for 'c' field alignment, + * corresponding to the {@link #UCAL_DOW_LOCAL} field. + * This displays the stand alone day name, if available. + * @stable ICU 3.4 + */ + UDAT_STANDALONE_DAY_FIELD = 25, + + /** + * FieldPosition selector for 'L' field alignment, + * corresponding to the {@link #UCAL_MONTH} field. + * This displays the stand alone month name, if available. + * @stable ICU 3.4 + */ + UDAT_STANDALONE_MONTH_FIELD = 26, + + /** + * FieldPosition selector for "Q" field alignment, + * corresponding to quarters. This is implemented + * using the {@link #UCAL_MONTH} field. This + * displays the quarter. + * @stable ICU 3.6 + */ + UDAT_QUARTER_FIELD = 27, + + /** + * FieldPosition selector for the "q" field alignment, + * corresponding to stand-alone quarters. This is + * implemented using the {@link #UCAL_MONTH} field. + * This displays the stand-alone quarter. + * @stable ICU 3.6 + */ + UDAT_STANDALONE_QUARTER_FIELD = 28, + + /** + * FieldPosition and UFieldPosition selector for 'V' field alignment, + * corresponding to the UCAL_ZONE_OFFSET field. + * @stable ICU 3.8 + */ + UDAT_TIMEZONE_SPECIAL_FIELD = 29, + + /** + * FieldPosition selector for "U" field alignment, + * corresponding to cyclic year names. This is implemented + * using the {@link #UCAL_YEAR} field. This displays + * the cyclic year name, if available. + * @stable ICU 49 + */ + UDAT_YEAR_NAME_FIELD = 30, + + /** + * FieldPosition selector for 'O' field alignment, + * corresponding to the UCAL_ZONE_OFFSET and UCAL_DST_OFFSETfields. + * This displays the localized GMT format. + * @stable ICU 51 + */ + UDAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD = 31, + + /** + * FieldPosition selector for 'X' field alignment, + * corresponding to the UCAL_ZONE_OFFSET and UCAL_DST_OFFSETfields. + * This displays the ISO 8601 local time offset format or UTC indicator ("Z"). + * @stable ICU 51 + */ + UDAT_TIMEZONE_ISO_FIELD = 32, + + /** + * FieldPosition selector for 'x' field alignment, + * corresponding to the UCAL_ZONE_OFFSET and UCAL_DST_OFFSET fields. + * This displays the ISO 8601 local time offset format. + * @stable ICU 51 + */ + UDAT_TIMEZONE_ISO_LOCAL_FIELD = 33, + + + + + /** + * Number of FieldPosition and UFieldPosition selectors for + * DateFormat and UDateFormat. + * Valid selectors range from 0 to UDAT_FIELD_COUNT-1. + * This value is subject to change if new fields are defined + * in the future. + * @stable ICU 3.0 + */ + UDAT_FIELD_COUNT = 38 + +} UDateFormatField; + + + + +/** + * Maps from a UDateFormatField to the corresponding UCalendarDateFields. + * Note: since the mapping is many-to-one, there is no inverse mapping. + * @param field the UDateFormatField. + * @return the UCalendarDateField. This will be UCAL_FIELD_COUNT in case + * of error (e.g., the input field is UDAT_FIELD_COUNT). + * @stable ICU 4.4 + */ +U_STABLE UCalendarDateFields U_EXPORT2 +udat_toCalendarDateField(UDateFormatField field); + + +/** + * Open a new UDateFormat for formatting and parsing dates and times. + * A UDateFormat may be used to format dates in calls to {@link #udat_format }, + * and to parse dates in calls to {@link #udat_parse }. + * @param timeStyle The style used to format times; one of UDAT_FULL, UDAT_LONG, + * UDAT_MEDIUM, UDAT_SHORT, UDAT_DEFAULT, or UDAT_NONE (relative time styles + * are not currently supported). + * When the pattern parameter is used, pass in UDAT_PATTERN for both timeStyle and dateStyle. + * @param dateStyle The style used to format dates; one of UDAT_FULL, UDAT_LONG, + * UDAT_MEDIUM, UDAT_SHORT, UDAT_DEFAULT, UDAT_FULL_RELATIVE, UDAT_LONG_RELATIVE, + * UDAT_MEDIUM_RELATIVE, UDAT_SHORT_RELATIVE, or UDAT_NONE. + * When the pattern parameter is used, pass in UDAT_PATTERN for both timeStyle and dateStyle. + * As currently implemented, + * relative date formatting only affects a limited range of calendar days before or + * after the current date, based on the CLDR <field type="day">/<relative> data: For + * example, in English, "Yesterday", "Today", and "Tomorrow". Outside of this range, + * dates are formatted using the corresponding non-relative style. + * @param locale The locale specifying the formatting conventions + * @param tzID A timezone ID specifying the timezone to use. If 0, use + * the default timezone. + * @param tzIDLength The length of tzID, or -1 if null-terminated. + * @param pattern A pattern specifying the format to use. + * @param patternLength The number of characters in the pattern, or -1 if null-terminated. + * @param status A pointer to an UErrorCode to receive any errors + * @return A pointer to a UDateFormat to use for formatting dates and times, or 0 if + * an error occurred. + * @stable ICU 2.0 + */ +U_STABLE UDateFormat* U_EXPORT2 +udat_open(UDateFormatStyle timeStyle, + UDateFormatStyle dateStyle, + const char *locale, + const UChar *tzID, + int32_t tzIDLength, + const UChar *pattern, + int32_t patternLength, + UErrorCode *status); + + +/** +* Close a UDateFormat. +* Once closed, a UDateFormat may no longer be used. +* @param format The formatter to close. +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +udat_close(UDateFormat* format); + + +/** + * DateFormat boolean attributes + * + * @stable ICU 53 + */ +typedef enum UDateFormatBooleanAttribute { + /** + * indicates whether whitespace is allowed. Includes trailing dot tolerance. + * @stable ICU 53 + */ + UDAT_PARSE_ALLOW_WHITESPACE = 0, + /** + * indicates tolerance of numeric data when String data may be assumed. eg: UDAT_YEAR_NAME_FIELD, + * UDAT_STANDALONE_MONTH_FIELD, UDAT_DAY_OF_WEEK_FIELD + * @stable ICU 53 + */ + UDAT_PARSE_ALLOW_NUMERIC = 1, + /** + * count boolean date format constants + * @stable ICU 53 + */ + UDAT_BOOLEAN_ATTRIBUTE_COUNT = 4 +} UDateFormatBooleanAttribute; + +/** + * Get a boolean attribute associated with a UDateFormat. + * An example would be a true value for a key of UDAT_PARSE_ALLOW_WHITESPACE indicating allowing whitespace leniency. + * If the formatter does not understand the attribute, -1 is returned. + * @param fmt The formatter to query. + * @param attr The attribute to query; e.g. UDAT_PARSE_ALLOW_WHITESPACE. + * @param status A pointer to an UErrorCode to receive any errors + * @return The value of attr. + * @stable ICU 53 + */ +U_STABLE UBool U_EXPORT2 +udat_getBooleanAttribute(const UDateFormat* fmt, UDateFormatBooleanAttribute attr, UErrorCode* status); + +/** + * Set a boolean attribute associated with a UDateFormat. + * An example of a boolean attribute is parse leniency control. If the formatter does not understand + * the attribute, the call is ignored. + * @param fmt The formatter to set. + * @param attr The attribute to set; one of UDAT_PARSE_ALLOW_WHITESPACE or UDAT_PARSE_ALLOW_NUMERIC + * @param newValue The new value of attr. + * @param status A pointer to an UErrorCode to receive any errors + * @stable ICU 53 + */ +U_STABLE void U_EXPORT2 +udat_setBooleanAttribute(UDateFormat *fmt, UDateFormatBooleanAttribute attr, UBool newValue, UErrorCode* status); + + + + +/** + * Open a copy of a UDateFormat. + * This function performs a deep copy. + * @param fmt The format to copy + * @param status A pointer to an UErrorCode to receive any errors. + * @return A pointer to a UDateFormat identical to fmt. + * @stable ICU 2.0 + */ +U_STABLE UDateFormat* U_EXPORT2 +udat_clone(const UDateFormat *fmt, + UErrorCode *status); + +/** +* Format a date using a UDateFormat. +* The date will be formatted using the conventions specified in {@link #udat_open } +* @param format The formatter to use +* @param dateToFormat The date to format +* @param result A pointer to a buffer to receive the formatted number. +* @param resultLength The maximum size of result. +* @param position A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* position data is returned. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_parse +* @see UFieldPosition +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +udat_format( const UDateFormat* format, + UDate dateToFormat, + UChar* result, + int32_t resultLength, + UFieldPosition* position, + UErrorCode* status); + +/** +* Format a date using an UDateFormat. +* The date will be formatted using the conventions specified in {@link #udat_open } +* @param format The formatter to use +* @param calendar The calendar to format. The calendar instance might be +* mutated if fields are not yet fully calculated, though +* the function won't change the logical date and time held +* by the instance. +* @param result A pointer to a buffer to receive the formatted number. +* @param capacity The maximum size of result. +* @param position A pointer to a UFieldPosition. On input, position->field +* is read. On output, position->beginIndex and position->endIndex indicate +* the beginning and ending indices of field number position->field, if such +* a field exists. This parameter may be NULL, in which case no field +* position data is returned. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_format +* @see udat_parseCalendar +* @see UFieldPosition +* @stable ICU 55 +*/ +U_STABLE int32_t U_EXPORT2 +udat_formatCalendar( const UDateFormat* format, + UCalendar* calendar, + UChar* result, + int32_t capacity, + UFieldPosition* position, + UErrorCode* status); + +/** +* Format a date using a UDateFormat. +* The date will be formatted using the conventions specified in {@link #udat_open} +* @param format +* The formatter to use +* @param dateToFormat +* The date to format +* @param result +* A pointer to a buffer to receive the formatted number. +* @param resultLength +* The maximum size of result. +* @param fpositer +* A pointer to a UFieldPositionIterator created by {@link #ufieldpositer_open} +* (may be NULL if field position information is not needed). Any +* iteration information already present in the UFieldPositionIterator +* will be deleted, and the iterator will be reset to apply to the +* fields in the formatted string created by this function call; the +* field values provided by {@link #ufieldpositer_next} will be from the +* UDateFormatField enum. +* @param status +* A pointer to a UErrorCode to receive any errors +* @return +* The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_parse +* @see UFieldPositionIterator +* @stable ICU 55 +*/ +U_STABLE int32_t U_EXPORT2 +udat_formatForFields( const UDateFormat* format, + UDate dateToFormat, + UChar* result, + int32_t resultLength, + UFieldPositionIterator* fpositer, + UErrorCode* status); + +/** +* Format a date using a UDateFormat. +* The date will be formatted using the conventions specified in {@link #udat_open } +* @param format +* The formatter to use +* @param calendar +* The calendar to format. The calendar instance might be mutated if fields +* are not yet fully calculated, though the function won't change the logical +* date and time held by the instance. +* @param result +* A pointer to a buffer to receive the formatted number. +* @param capacity +* The maximum size of result. +* @param fpositer +* A pointer to a UFieldPositionIterator created by {@link #ufieldpositer_open} +* (may be NULL if field position information is not needed). Any +* iteration information already present in the UFieldPositionIterator +* will be deleted, and the iterator will be reset to apply to the +* fields in the formatted string created by this function call; the +* field values provided by {@link #ufieldpositer_next} will be from the +* UDateFormatField enum. +* @param status +* A pointer to a UErrorCode to receive any errors +* @return +* The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_format +* @see udat_parseCalendar +* @see UFieldPositionIterator +* @stable ICU 55 +*/ +U_STABLE int32_t U_EXPORT2 +udat_formatCalendarForFields( const UDateFormat* format, + UCalendar* calendar, + UChar* result, + int32_t capacity, + UFieldPositionIterator* fpositer, + UErrorCode* status); + + +/** +* Parse a string into an date/time using a UDateFormat. +* The date will be parsed using the conventions specified in {@link #udat_open }. +*

+* Note that the normal date formats associated with some calendars - such +* as the Chinese lunar calendar - do not specify enough fields to enable +* dates to be parsed unambiguously. In the case of the Chinese lunar +* calendar, while the year within the current 60-year cycle is specified, +* the number of such cycles since the start date of the calendar (in the +* UCAL_ERA field of the UCalendar object) is not normally part of the format, +* and parsing may assume the wrong era. For cases such as this it is +* recommended that clients parse using udat_parseCalendar with the UCalendar +* passed in set to the current date, or to a date within the era/cycle that +* should be assumed if absent in the format. +* +* @param format The formatter to use. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not 0, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not 0, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @return The value of the parsed date/time +* @see udat_format +* @stable ICU 2.0 +*/ +U_STABLE UDate U_EXPORT2 +udat_parse(const UDateFormat* format, + const UChar* text, + int32_t textLength, + int32_t *parsePos, + UErrorCode *status); + +/** +* Parse a string into an date/time using a UDateFormat. +* The date will be parsed using the conventions specified in {@link #udat_open }. +* @param format The formatter to use. +* @param calendar A calendar set on input to the date and time to be used for +* missing values in the date/time string being parsed, and set +* on output to the parsed date/time. When the calendar type is +* different from the internal calendar held by the UDateFormat +* instance, the internal calendar will be cloned to a work +* calendar set to the same milliseconds and time zone as this +* calendar parameter, field values will be parsed based on the +* work calendar, then the result (milliseconds and time zone) +* will be set in this calendar. +* @param text The text to parse. +* @param textLength The length of text, or -1 if null-terminated. +* @param parsePos If not 0, on input a pointer to an integer specifying the offset at which +* to begin parsing. If not 0, on output the offset at which parsing ended. +* @param status A pointer to an UErrorCode to receive any errors +* @see udat_format +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +udat_parseCalendar(const UDateFormat* format, + UCalendar* calendar, + const UChar* text, + int32_t textLength, + int32_t *parsePos, + UErrorCode *status); + +/** +* Determine if an UDateFormat will perform lenient parsing. +* With lenient parsing, the parser may use heuristics to interpret inputs that do not +* precisely match the pattern. With strict parsing, inputs must match the pattern. +* @param fmt The formatter to query +* @return TRUE if fmt is set to perform lenient parsing, FALSE otherwise. +* @see udat_setLenient +* @stable ICU 2.0 +*/ +U_STABLE UBool U_EXPORT2 +udat_isLenient(const UDateFormat* fmt); + +/** +* Specify whether an UDateFormat will perform lenient parsing. +* With lenient parsing, the parser may use heuristics to interpret inputs that do not +* precisely match the pattern. With strict parsing, inputs must match the pattern. +* @param fmt The formatter to set +* @param isLenient TRUE if fmt should perform lenient parsing, FALSE otherwise. +* @see dat_isLenient +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +udat_setLenient( UDateFormat* fmt, + UBool isLenient); + +/** +* Get the UCalendar associated with an UDateFormat. +* A UDateFormat uses a UCalendar to convert a raw value to, for example, +* the day of the week. +* @param fmt The formatter to query. +* @return A pointer to the UCalendar used by fmt. +* @see udat_setCalendar +* @stable ICU 2.0 +*/ +U_STABLE const UCalendar* U_EXPORT2 +udat_getCalendar(const UDateFormat* fmt); + +/** +* Set the UCalendar associated with an UDateFormat. +* A UDateFormat uses a UCalendar to convert a raw value to, for example, +* the day of the week. +* @param fmt The formatter to set. +* @param calendarToSet A pointer to an UCalendar to be used by fmt. +* @see udat_setCalendar +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +udat_setCalendar( UDateFormat* fmt, + const UCalendar* calendarToSet); + +/** +* Get the UNumberFormat associated with an UDateFormat. +* A UDateFormat uses a UNumberFormat to format numbers within a date, +* for example the day number. +* @param fmt The formatter to query. +* @return A pointer to the UNumberFormat used by fmt to format numbers. +* @see udat_setNumberFormat +* @stable ICU 2.0 +*/ +U_STABLE const UNumberFormat* U_EXPORT2 +udat_getNumberFormat(const UDateFormat* fmt); + +/** +* Get the UNumberFormat for specific field associated with an UDateFormat. +* For example: 'y' for year and 'M' for month +* @param fmt The formatter to query. +* @param field the field to query +* @return A pointer to the UNumberFormat used by fmt to format field numbers. +* @see udat_setNumberFormatForField +* @stable ICU 54 +*/ +U_STABLE const UNumberFormat* U_EXPORT2 +udat_getNumberFormatForField(const UDateFormat* fmt, UChar field); + +/** +* Set the UNumberFormat for specific field associated with an UDateFormat. +* It can be a single field like: "y"(year) or "M"(month) +* It can be several field combined together: "yM"(year and month) +* Note: +* 1 symbol field is enough for multiple symbol field (so "y" will override "yy", "yyy") +* If the field is not numeric, then override has no effect (like "MMM" will use abbreviation, not numerical field) +* +* @param fields the fields to set +* @param fmt The formatter to set. +* @param numberFormatToSet A pointer to the UNumberFormat to be used by fmt to format numbers. +* @param status error code passed around (memory allocation or invalid fields) +* @see udat_getNumberFormatForField +* @stable ICU 54 +*/ +U_STABLE void U_EXPORT2 +udat_adoptNumberFormatForFields( UDateFormat* fmt, + const UChar* fields, + UNumberFormat* numberFormatToSet, + UErrorCode* status); +/** +* Set the UNumberFormat associated with an UDateFormat. +* A UDateFormat uses a UNumberFormat to format numbers within a date, +* for example the day number. +* This method also clears per field NumberFormat instances previously +* set by {@see udat_setNumberFormatForField} +* @param fmt The formatter to set. +* @param numberFormatToSet A pointer to the UNumberFormat to be used by fmt to format numbers. +* @see udat_getNumberFormat +* @see udat_setNumberFormatForField +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +udat_setNumberFormat( UDateFormat* fmt, + const UNumberFormat* numberFormatToSet); +/** +* Adopt the UNumberFormat associated with an UDateFormat. +* A UDateFormat uses a UNumberFormat to format numbers within a date, +* for example the day number. +* @param fmt The formatter to set. +* @param numberFormatToAdopt A pointer to the UNumberFormat to be used by fmt to format numbers. +* @see udat_getNumberFormat +* @stable ICU 54 +*/ +U_STABLE void U_EXPORT2 +udat_adoptNumberFormat( UDateFormat* fmt, + UNumberFormat* numberFormatToAdopt); +/** +* Get a locale for which date/time formatting patterns are available. +* A UDateFormat in a locale returned by this function will perform the correct +* formatting and parsing for the locale. +* @param localeIndex The index of the desired locale. +* @return A locale for which date/time formatting patterns are available, or 0 if none. +* @see udat_countAvailable +* @stable ICU 2.0 +*/ +U_STABLE const char* U_EXPORT2 +udat_getAvailable(int32_t localeIndex); + +/** +* Determine how many locales have date/time formatting patterns available. +* This function is most useful as determining the loop ending condition for +* calls to {@link #udat_getAvailable }. +* @return The number of locales for which date/time formatting patterns are available. +* @see udat_getAvailable +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +udat_countAvailable(void); + +/** +* Get the year relative to which all 2-digit years are interpreted. +* For example, if the 2-digit start year is 2100, the year 99 will be +* interpreted as 2199. +* @param fmt The formatter to query. +* @param status A pointer to an UErrorCode to receive any errors +* @return The year relative to which all 2-digit years are interpreted. +* @see udat_Set2DigitYearStart +* @stable ICU 2.0 +*/ +U_STABLE UDate U_EXPORT2 +udat_get2DigitYearStart( const UDateFormat *fmt, + UErrorCode *status); + +/** +* Set the year relative to which all 2-digit years will be interpreted. +* For example, if the 2-digit start year is 2100, the year 99 will be +* interpreted as 2199. +* @param fmt The formatter to set. +* @param d The year relative to which all 2-digit years will be interpreted. +* @param status A pointer to an UErrorCode to receive any errors +* @see udat_Set2DigitYearStart +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +udat_set2DigitYearStart( UDateFormat *fmt, + UDate d, + UErrorCode *status); + +/** +* Extract the pattern from a UDateFormat. +* The pattern will follow the pattern syntax rules. +* @param fmt The formatter to query. +* @param localized TRUE if the pattern should be localized, FALSE otherwise. +* @param result A pointer to a buffer to receive the pattern. +* @param resultLength The maximum size of result. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_applyPattern +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +udat_toPattern( const UDateFormat *fmt, + UBool localized, + UChar *result, + int32_t resultLength, + UErrorCode *status); + +/** +* Set the pattern used by an UDateFormat. +* The pattern should follow the pattern syntax rules. +* @param format The formatter to set. +* @param localized TRUE if the pattern is localized, FALSE otherwise. +* @param pattern The new pattern +* @param patternLength The length of pattern, or -1 if null-terminated. +* @see udat_toPattern +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +udat_applyPattern( UDateFormat *format, + UBool localized, + const UChar *pattern, + int32_t patternLength); + +/** + * The possible types of date format symbols + * @stable ICU 2.6 + */ +typedef enum UDateFormatSymbolType { + /** The era names, for example AD */ + UDAT_ERAS, + /** The month names, for example February */ + UDAT_MONTHS, + /** The short month names, for example Feb. */ + UDAT_SHORT_MONTHS, + /** The CLDR-style format "wide" weekday names, for example Monday */ + UDAT_WEEKDAYS, + /** + * The CLDR-style format "abbreviated" (not "short") weekday names, for example "Mon." + * For the CLDR-style format "short" weekday names, use UDAT_SHORTER_WEEKDAYS. + */ + UDAT_SHORT_WEEKDAYS, + /** The AM/PM names, for example AM */ + UDAT_AM_PMS, + /** The localized characters */ + UDAT_LOCALIZED_CHARS, + /** The long era names, for example Anno Domini */ + UDAT_ERA_NAMES, + /** The narrow month names, for example F */ + UDAT_NARROW_MONTHS, + /** The CLDR-style format "narrow" weekday names, for example "M" */ + UDAT_NARROW_WEEKDAYS, + /** Standalone context versions of months */ + UDAT_STANDALONE_MONTHS, + UDAT_STANDALONE_SHORT_MONTHS, + UDAT_STANDALONE_NARROW_MONTHS, + /** The CLDR-style stand-alone "wide" weekday names */ + UDAT_STANDALONE_WEEKDAYS, + /** + * The CLDR-style stand-alone "abbreviated" (not "short") weekday names. + * For the CLDR-style stand-alone "short" weekday names, use UDAT_STANDALONE_SHORTER_WEEKDAYS. + */ + UDAT_STANDALONE_SHORT_WEEKDAYS, + /** The CLDR-style stand-alone "narrow" weekday names */ + UDAT_STANDALONE_NARROW_WEEKDAYS, + /** The quarters, for example 1st Quarter */ + UDAT_QUARTERS, + /** The short quarter names, for example Q1 */ + UDAT_SHORT_QUARTERS, + /** Standalone context versions of quarters */ + UDAT_STANDALONE_QUARTERS, + UDAT_STANDALONE_SHORT_QUARTERS, + /** + * The CLDR-style short weekday names, e.g. "Su", Mo", etc. + * These are named "SHORTER" to contrast with the constants using _SHORT_ + * above, which actually get the CLDR-style *abbreviated* versions of the + * corresponding names. + * @stable ICU 51 + */ + UDAT_SHORTER_WEEKDAYS, + /** + * Standalone version of UDAT_SHORTER_WEEKDAYS. + * @stable ICU 51 + */ + UDAT_STANDALONE_SHORTER_WEEKDAYS, + /** + * Cyclic year names (only supported for some calendars, and only for FORMAT usage; + * udat_setSymbols not supported for UDAT_CYCLIC_YEARS_WIDE) + * @stable ICU 54 + */ + UDAT_CYCLIC_YEARS_WIDE, + /** + * Cyclic year names (only supported for some calendars, and only for FORMAT usage) + * @stable ICU 54 + */ + UDAT_CYCLIC_YEARS_ABBREVIATED, + /** + * Cyclic year names (only supported for some calendars, and only for FORMAT usage; + * udat_setSymbols not supported for UDAT_CYCLIC_YEARS_NARROW) + * @stable ICU 54 + */ + UDAT_CYCLIC_YEARS_NARROW, + /** + * Calendar zodiac names (only supported for some calendars, and only for FORMAT usage; + * udat_setSymbols not supported for UDAT_ZODIAC_NAMES_WIDE) + * @stable ICU 54 + */ + UDAT_ZODIAC_NAMES_WIDE, + /** + * Calendar zodiac names (only supported for some calendars, and only for FORMAT usage) + * @stable ICU 54 + */ + UDAT_ZODIAC_NAMES_ABBREVIATED, + /** + * Calendar zodiac names (only supported for some calendars, and only for FORMAT usage; + * udat_setSymbols not supported for UDAT_ZODIAC_NAMES_NARROW) + * @stable ICU 54 + */ + UDAT_ZODIAC_NAMES_NARROW +} UDateFormatSymbolType; + +struct UDateFormatSymbols; +/** Date format symbols. + * For usage in C programs. + * @stable ICU 2.6 + */ +typedef struct UDateFormatSymbols UDateFormatSymbols; + +/** +* Get the symbols associated with an UDateFormat. +* The symbols are what a UDateFormat uses to represent locale-specific data, +* for example month or day names. +* @param fmt The formatter to query. +* @param type The type of symbols to get. One of UDAT_ERAS, UDAT_MONTHS, UDAT_SHORT_MONTHS, +* UDAT_WEEKDAYS, UDAT_SHORT_WEEKDAYS, UDAT_AM_PMS, or UDAT_LOCALIZED_CHARS +* @param symbolIndex The desired symbol of type type. +* @param result A pointer to a buffer to receive the pattern. +* @param resultLength The maximum size of result. +* @param status A pointer to an UErrorCode to receive any errors +* @return The total buffer size needed; if greater than resultLength, the output was truncated. +* @see udat_countSymbols +* @see udat_setSymbols +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +udat_getSymbols(const UDateFormat *fmt, + UDateFormatSymbolType type, + int32_t symbolIndex, + UChar *result, + int32_t resultLength, + UErrorCode *status); + +/** +* Count the number of particular symbols for an UDateFormat. +* This function is most useful as for detemining the loop termination condition +* for calls to {@link #udat_getSymbols }. +* @param fmt The formatter to query. +* @param type The type of symbols to count. One of UDAT_ERAS, UDAT_MONTHS, UDAT_SHORT_MONTHS, +* UDAT_WEEKDAYS, UDAT_SHORT_WEEKDAYS, UDAT_AM_PMS, or UDAT_LOCALIZED_CHARS +* @return The number of symbols of type type. +* @see udat_getSymbols +* @see udat_setSymbols +* @stable ICU 2.0 +*/ +U_STABLE int32_t U_EXPORT2 +udat_countSymbols( const UDateFormat *fmt, + UDateFormatSymbolType type); + +/** +* Set the symbols associated with an UDateFormat. +* The symbols are what a UDateFormat uses to represent locale-specific data, +* for example month or day names. +* @param format The formatter to set +* @param type The type of symbols to set. One of UDAT_ERAS, UDAT_MONTHS, UDAT_SHORT_MONTHS, +* UDAT_WEEKDAYS, UDAT_SHORT_WEEKDAYS, UDAT_AM_PMS, or UDAT_LOCALIZED_CHARS +* @param symbolIndex The index of the symbol to set of type type. +* @param value The new value +* @param valueLength The length of value, or -1 if null-terminated +* @param status A pointer to an UErrorCode to receive any errors +* @see udat_getSymbols +* @see udat_countSymbols +* @stable ICU 2.0 +*/ +U_STABLE void U_EXPORT2 +udat_setSymbols( UDateFormat *format, + UDateFormatSymbolType type, + int32_t symbolIndex, + UChar *value, + int32_t valueLength, + UErrorCode *status); + +/** + * Get the locale for this date format object. + * You can choose between valid and actual locale. + * @param fmt The formatter to get the locale from + * @param type type of the locale we're looking for (valid or actual) + * @param status error code for the operation + * @return the locale name + * @stable ICU 2.8 + */ +U_STABLE const char* U_EXPORT2 +udat_getLocaleByType(const UDateFormat *fmt, + ULocDataLocaleType type, + UErrorCode* status); + +/** + * Set a particular UDisplayContext value in the formatter, such as + * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. + * @param fmt The formatter for which to set a UDisplayContext value. + * @param value The UDisplayContext value to set. + * @param status A pointer to an UErrorCode to receive any errors + * @stable ICU 51 + */ +U_DRAFT void U_EXPORT2 +udat_setContext(UDateFormat* fmt, UDisplayContext value, UErrorCode* status); + +/** + * Get the formatter's UDisplayContext value for the specified UDisplayContextType, + * such as UDISPCTX_TYPE_CAPITALIZATION. + * @param fmt The formatter to query. + * @param type The UDisplayContextType whose value to return + * @param status A pointer to an UErrorCode to receive any errors + * @return The UDisplayContextValue for the specified type. + * @stable ICU 53 + */ +U_STABLE UDisplayContext U_EXPORT2 +udat_getContext(const UDateFormat* fmt, UDisplayContextType type, UErrorCode* status); + + + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// measfmt.h +/* +********************************************************************** +* Copyright (c) 2004-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* Author: Alan Liu +* Created: April 20, 2004 +* Since: ICU 3.0 +********************************************************************** +*/ +#ifndef MEASUREFORMAT_H +#define MEASUREFORMAT_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C++ API: Formatter for measure objects. + */ + +/** + * Constants for various widths. + * There are 4 widths: Wide, Short, Narrow, Numeric. + * For example, for English, when formatting "3 hours" + * Wide is "3 hours"; short is "3 hrs"; narrow is "3h"; + * formatting "3 hours 17 minutes" as numeric give "3:17" + * @stable ICU 53 + */ +enum UMeasureFormatWidth { + + // Wide, short, and narrow must be first and in this order. + /** + * Spell out measure units. + * @stable ICU 53 + */ + UMEASFMT_WIDTH_WIDE, + + /** + * Abbreviate measure units. + * @stable ICU 53 + */ + UMEASFMT_WIDTH_SHORT, + + /** + * Use symbols for measure units when possible. + * @stable ICU 53 + */ + UMEASFMT_WIDTH_NARROW, + + /** + * Completely omit measure units when possible. For example, format + * '5 hours, 37 minutes' as '5:37' + * @stable ICU 53 + */ + UMEASFMT_WIDTH_NUMERIC, + + /** + * Count of values in this enum. + * @stable ICU 53 + */ + UMEASFMT_WIDTH_COUNT = 4 +}; +/** @stable ICU 53 */ +typedef enum UMeasureFormatWidth UMeasureFormatWidth; + + +#endif // #if !UCONFIG_NO_FORMATTING +#endif // #ifndef MEASUREFORMAT_H + +// unumsys.h +/* +***************************************************************************************** +* Copyright (C) 2013-2014, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UNUMSYS_H +#define UNUMSYS_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C API: UNumberingSystem, information about numbering systems + * + * Defines numbering systems. A numbering system describes the scheme by which + * numbers are to be presented to the end user. In its simplest form, a numbering + * system describes the set of digit characters that are to be used to display + * numbers, such as Western digits, Thai digits, Arabic-Indic digits, etc., in a + * positional numbering system with a specified radix (typically 10). + * More complicated numbering systems are algorithmic in nature, and require use + * of an RBNF formatter (rule based number formatter), in order to calculate + * the characters to be displayed for a given number. Examples of algorithmic + * numbering systems include Roman numerals, Chinese numerals, and Hebrew numerals. + * Formatting rules for many commonly used numbering systems are included in + * the ICU package, based on the numbering system rules defined in CLDR. + * Alternate numbering systems can be specified to a locale by using the + * numbers locale keyword. + */ + +/** + * Opaque UNumberingSystem object for use in C programs. + * @stable ICU 52 + */ +struct UNumberingSystem; +typedef struct UNumberingSystem UNumberingSystem; /**< C typedef for struct UNumberingSystem. @stable ICU 52 */ + +/** + * Opens a UNumberingSystem object using the default numbering system for the specified + * locale. + * @param locale The locale for which the default numbering system should be opened. + * @param status A pointer to a UErrorCode to receive any errors. For example, this + * may be U_UNSUPPORTED_ERROR for a locale such as "en@numbers=xyz" that + * specifies a numbering system unknown to ICU. + * @return A UNumberingSystem for the specified locale, or NULL if an error + * occurred. + * @stable ICU 52 + */ +U_STABLE UNumberingSystem * U_EXPORT2 +unumsys_open(const char *locale, UErrorCode *status); + +/** + * Opens a UNumberingSystem object using the name of one of the predefined numbering + * systems specified by CLDR and known to ICU, such as "latn", "arabext", or "hanidec"; + * the full list is returned by unumsys_openAvailableNames. Note that some of the names + * listed at http://unicode.org/repos/cldr/tags/latest/common/bcp47/number.xml - e.g. + * default, native, traditional, finance - do not identify specific numbering systems, + * but rather key values that may only be used as part of a locale, which in turn + * defines how they are mapped to a specific numbering system such as "latn" or "hant". + * + * @param name The name of the numbering system for which a UNumberingSystem object + * should be opened. + * @param status A pointer to a UErrorCode to receive any errors. For example, this + * may be U_UNSUPPORTED_ERROR for a numbering system such as "xyz" that + * is unknown to ICU. + * @return A UNumberingSystem for the specified name, or NULL if an error + * occurred. + * @stable ICU 52 + */ +U_STABLE UNumberingSystem * U_EXPORT2 +unumsys_openByName(const char *name, UErrorCode *status); + +/** + * Close a UNumberingSystem object. Once closed it may no longer be used. + * @param unumsys The UNumberingSystem object to close. + * @stable ICU 52 + */ +U_STABLE void U_EXPORT2 +unumsys_close(UNumberingSystem *unumsys); + + +/** + * Returns an enumeration over the names of all of the predefined numbering systems known + * to ICU. + * @param status A pointer to a UErrorCode to receive any errors. + * @return A pointer to a UEnumeration that must be closed with uenum_close(), + * or NULL if an error occurred. + * @stable ICU 52 + */ +U_STABLE UEnumeration * U_EXPORT2 +unumsys_openAvailableNames(UErrorCode *status); + +/** + * Returns the name of the specified UNumberingSystem object (if it is one of the + * predefined names known to ICU). + * @param unumsys The UNumberingSystem whose name is desired. + * @return A pointer to the name of the specified UNumberingSystem object, or + * NULL if the name is not one of the ICU predefined names. The pointer + * is only valid for the lifetime of the UNumberingSystem object. + * @stable ICU 52 + */ +U_STABLE const char * U_EXPORT2 +unumsys_getName(const UNumberingSystem *unumsys); + +/** + * Returns whether the given UNumberingSystem object is for an algorithmic (not purely + * positional) system. + * @param unumsys The UNumberingSystem whose algorithmic status is desired. + * @return TRUE if the specified UNumberingSystem object is for an algorithmic + * system. + * @stable ICU 52 + */ +U_STABLE UBool U_EXPORT2 +unumsys_isAlgorithmic(const UNumberingSystem *unumsys); + +/** + * Returns the radix of the specified UNumberingSystem object. Simple positional + * numbering systems typically have radix 10, but might have a radix of e.g. 16 for + * hexadecimal. The radix is less well-defined for non-positional algorithmic systems. + * @param unumsys The UNumberingSystem whose radix is desired. + * @return The radix of the specified UNumberingSystem object. + * @stable ICU 52 + */ +U_STABLE int32_t U_EXPORT2 +unumsys_getRadix(const UNumberingSystem *unumsys); + +/** + * Get the description string of the specified UNumberingSystem object. For simple + * positional systems this is the ordered string of digits (with length matching + * the radix), e.g. "\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D" + * for "hanidec"; it would be "0123456789ABCDEF" for hexadecimal. For + * algorithmic systems this is the name of the RBNF ruleset used for formatting, + * e.g. "zh/SpelloutRules/%spellout-cardinal" for "hans" or "%greek-upper" for + * "grek". + * @param unumsys The UNumberingSystem whose description string is desired. + * @param result A pointer to a buffer to receive the description string. + * @param resultLength The maximum size of result. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The total buffer size needed; if greater than resultLength, the + * output was truncated. + * @stable ICU 52 + */ +U_STABLE int32_t U_EXPORT2 +unumsys_getDescription(const UNumberingSystem *unumsys, UChar *result, + int32_t resultLength, UErrorCode *status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// upluralrules.h +/* +***************************************************************************************** +* Copyright (C) 2010-2013, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UPLURALRULES_H +#define UPLURALRULES_H + + +#if !UCONFIG_NO_FORMATTING + + +/** + * \file + * \brief C API: Plural rules, select plural keywords for numeric values. + * + * A UPluralRules object defines rules for mapping non-negative numeric + * values onto a small set of keywords. Rules are constructed from a text + * description, consisting of a series of keywords and conditions. + * The uplrules_select function examines each condition in order and + * returns the keyword for the first condition that matches the number. + * If none match, the default rule(other) is returned. + * + * For more information, see the LDML spec, C.11 Language Plural Rules: + * http://www.unicode.org/reports/tr35/#Language_Plural_Rules + * + * Keywords: ICU locale data has 6 predefined values - + * 'zero', 'one', 'two', 'few', 'many' and 'other'. Callers need to check + * the value of keyword returned by the uplrules_select function. + * + * These are based on CLDR Language Plural Rules. For these + * predefined rules, see the CLDR page at + * http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html + */ + +/** + * Type of plurals and PluralRules. + * @stable ICU 50 + */ +enum UPluralType { + /** + * Plural rules for cardinal numbers: 1 file vs. 2 files. + * @stable ICU 50 + */ + UPLURAL_TYPE_CARDINAL, + /** + * Plural rules for ordinal numbers: 1st file, 2nd file, 3rd file, 4th file, etc. + * @stable ICU 50 + */ + UPLURAL_TYPE_ORDINAL, + /** + * Number of Plural rules types. + * @stable ICU 50 + */ + UPLURAL_TYPE_COUNT +}; +/** + * @stable ICU 50 + */ +typedef enum UPluralType UPluralType; + +/** + * Opaque UPluralRules object for use in C programs. + * @stable ICU 4.8 + */ +struct UPluralRules; +typedef struct UPluralRules UPluralRules; /**< C typedef for struct UPluralRules. @stable ICU 4.8 */ + +/** + * Opens a new UPluralRules object using the predefined cardinal-number plural rules for a + * given locale. + * Same as uplrules_openForType(locale, UPLURAL_TYPE_CARDINAL, status). + * @param locale The locale for which the rules are desired. + * @param status A pointer to a UErrorCode to receive any errors. + * @return A UPluralRules for the specified locale, or NULL if an error occurred. + * @stable ICU 4.8 + */ +U_STABLE UPluralRules* U_EXPORT2 +uplrules_open(const char *locale, UErrorCode *status); + +/** + * Opens a new UPluralRules object using the predefined plural rules for a + * given locale and the plural type. + * @param locale The locale for which the rules are desired. + * @param type The plural type (e.g., cardinal or ordinal). + * @param status A pointer to a UErrorCode to receive any errors. + * @return A UPluralRules for the specified locale, or NULL if an error occurred. + * @stable ICU 50 + */ +U_DRAFT UPluralRules* U_EXPORT2 +uplrules_openForType(const char *locale, UPluralType type, UErrorCode *status); + +/** + * Closes a UPluralRules object. Once closed it may no longer be used. + * @param uplrules The UPluralRules object to close. + * @stable ICU 4.8 + */ +U_STABLE void U_EXPORT2 +uplrules_close(UPluralRules *uplrules); + + + + +/** + * Given a number, returns the keyword of the first rule that + * applies to the number, according to the supplied UPluralRules object. + * @param uplrules The UPluralRules object specifying the rules. + * @param number The number for which the rule has to be determined. + * @param keyword The keyword of the rule that applies to number. + * @param capacity The capacity of keyword. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The length of keyword. + * @stable ICU 4.8 + */ +U_STABLE int32_t U_EXPORT2 +uplrules_select(const UPluralRules *uplrules, + double number, + UChar *keyword, int32_t capacity, + UErrorCode *status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// rbnf.h +/* +******************************************************************************* +* Copyright (C) 1997-2015, International Business Machines Corporation and others. +* All Rights Reserved. +******************************************************************************* +*/ + +#ifndef RBNF_H +#define RBNF_H + + +/** + * \file + * \brief C++ API: Rule Based Number Format + */ + +/** + * \def U_HAVE_RBNF + * This will be 0 if RBNF support is not included in ICU + * and 1 if it is. + * + * @stable ICU 2.4 + */ +#if UCONFIG_NO_FORMATTING +#define U_HAVE_RBNF 0 +#else +#define U_HAVE_RBNF 1 + + + +/* U_HAVE_RBNF */ +#endif + +/* RBNF_H */ +#endif + +// plurrule.h +/* +******************************************************************************* +* Copyright (C) 2008-2015, International Business Machines Corporation and +* others. All Rights Reserved. +******************************************************************************* +* +* +* File PLURRULE.H +* +* Modification History:* +* Date Name Description +* +******************************************************************************** +*/ + +#ifndef PLURRULE +#define PLURRULE + + +/** + * \file + * \brief C++ API: PluralRules object + */ + +#if !UCONFIG_NO_FORMATTING + + +/** + * Value returned by PluralRules::getUniqueKeywordValue() when there is no + * unique value to return. + * @stable ICU 4.8 + */ +#define UPLRULES_NO_UNIQUE_VALUE ((double)-0.00123456777) + + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif // _PLURRULE + +// plurfmt.h +/* +******************************************************************************* +* Copyright (C) 2007-2014, International Business Machines Corporation and +* others. All Rights Reserved. +******************************************************************************* +* + +* File PLURFMT.H +******************************************************************************** +*/ + +#ifndef PLURFMT +#define PLURFMT + + +/** + * \file + * \brief C++ API: PluralFormat object + */ + +#if !UCONFIG_NO_FORMATTING + + + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif // _PLURFMT + +// msgfmt.h +/* +* Copyright (C) 2007-2013, International Business Machines Corporation and +* others. All Rights Reserved. +******************************************************************************** +* +* File MSGFMT.H +* +* Modification History: +* +* Date Name Description +* 02/19/97 aliu Converted from java. +* 03/20/97 helena Finished first cut of implementation. +* 07/22/98 stephen Removed operator!= (defined in Format) +* 08/19/2002 srl Removing Javaisms +*******************************************************************************/ + +#ifndef MSGFMT_H +#define MSGFMT_H + + +/** + * \file + * \brief C++ API: Formats messages in a language-neutral way. + */ + +#if !UCONFIG_NO_FORMATTING + + +U_CDECL_BEGIN +// Forward declaration. +struct UHashtable; +typedef struct UHashtable UHashtable; /**< @internal */ +U_CDECL_END + + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif // _MSGFMT + +// uregex.h +/* +********************************************************************** +* Copyright (C) 2004-2016, International Business Machines +* Corporation and others. All Rights Reserved. +********************************************************************** +* file name: uregex.h +* encoding: US-ASCII +* indentation:4 +* +* created on: 2004mar09 +* created by: Andy Heninger +* +* ICU Regular Expressions, API for C +*/ + +/** + * \file + * \brief C API: Regular Expressions + * + *

This is a C wrapper around the C++ RegexPattern and RegexMatcher classes.

+ */ + +#ifndef UREGEX_H +#define UREGEX_H + + +#if !UCONFIG_NO_REGULAR_EXPRESSIONS + + +struct URegularExpression; +/** + * Structure representing a compiled regular expression, plus the results + * of a match operation. + * @stable ICU 3.0 + */ +typedef struct URegularExpression URegularExpression; + + +/** + * Constants for Regular Expression Match Modes. + * @stable ICU 2.4 + */ +typedef enum URegexpFlag{ + + /** Enable case insensitive matching. @stable ICU 2.4 */ + UREGEX_CASE_INSENSITIVE = 2, + + /** Allow white space and comments within patterns @stable ICU 2.4 */ + UREGEX_COMMENTS = 4, + + /** If set, '.' matches line terminators, otherwise '.' matching stops at line end. + * @stable ICU 2.4 */ + UREGEX_DOTALL = 32, + + /** If set, treat the entire pattern as a literal string. + * Metacharacters or escape sequences in the input sequence will be given + * no special meaning. + * + * The flag UREGEX_CASE_INSENSITIVE retains its impact + * on matching when used in conjunction with this flag. + * The other flags become superfluous. + * + * @stable ICU 4.0 + */ + UREGEX_LITERAL = 16, + + /** Control behavior of "$" and "^" + * If set, recognize line terminators within string, + * otherwise, match only at start and end of input string. + * @stable ICU 2.4 */ + UREGEX_MULTILINE = 8, + + /** Unix-only line endings. + * When this mode is enabled, only \\u000a is recognized as a line ending + * in the behavior of ., ^, and $. + * @stable ICU 4.0 + */ + UREGEX_UNIX_LINES = 1, + + /** Unicode word boundaries. + * If set, \b uses the Unicode TR 29 definition of word boundaries. + * Warning: Unicode word boundaries are quite different from + * traditional regular expression word boundaries. See + * http://unicode.org/reports/tr29/#Word_Boundaries + * @stable ICU 2.8 + */ + UREGEX_UWORD = 256, + + /** Error on Unrecognized backslash escapes. + * If set, fail with an error on patterns that contain + * backslash-escaped ASCII letters without a known special + * meaning. If this flag is not set, these + * escaped letters represent themselves. + * @stable ICU 4.0 + */ + UREGEX_ERROR_ON_UNKNOWN_ESCAPES = 512 + +} URegexpFlag; + +/** + * Open (compile) an ICU regular expression. Compiles the regular expression in + * string form into an internal representation using the specified match mode flags. + * The resulting regular expression handle can then be used to perform various + * matching operations. + * + * + * @param pattern The Regular Expression pattern to be compiled. + * @param patternLength The length of the pattern, or -1 if the pattern is + * NUL terminated. + * @param flags Flags that alter the default matching behavior for + * the regular expression, UREGEX_CASE_INSENSITIVE, for + * example. For default behavior, set this parameter to zero. + * See enum URegexpFlag. All desired flags + * are bitwise-ORed together. + * @param pe Receives the position (line and column numbers) of any syntax + * error within the source regular expression string. If this + * information is not wanted, pass NULL for this parameter. + * @param status Receives error detected by this function. + * @stable ICU 3.0 + * + */ +U_STABLE URegularExpression * U_EXPORT2 +uregex_open( const UChar *pattern, + int32_t patternLength, + uint32_t flags, + UParseError *pe, + UErrorCode *status); + +/** + * Open (compile) an ICU regular expression. Compiles the regular expression in + * string form into an internal representation using the specified match mode flags. + * The resulting regular expression handle can then be used to perform various + * matching operations. + *

+ * The contents of the pattern UText will be extracted and saved. Ownership of the + * UText struct itself remains with the caller. This is to match the behavior of + * uregex_open(). + * + * @param pattern The Regular Expression pattern to be compiled. + * @param flags Flags that alter the default matching behavior for + * the regular expression, UREGEX_CASE_INSENSITIVE, for + * example. For default behavior, set this parameter to zero. + * See enum URegexpFlag. All desired flags + * are bitwise-ORed together. + * @param pe Receives the position (line and column numbers) of any syntax + * error within the source regular expression string. If this + * information is not wanted, pass NULL for this parameter. + * @param status Receives error detected by this function. + * + * @stable ICU 4.6 + */ +U_STABLE URegularExpression * U_EXPORT2 +uregex_openUText(UText *pattern, + uint32_t flags, + UParseError *pe, + UErrorCode *status); + +/** + * Open (compile) an ICU regular expression. The resulting regular expression + * handle can then be used to perform various matching operations. + *

+ * This function is the same as uregex_open, except that the pattern + * is supplied as an 8 bit char * string in the default code page. + * + * @param pattern The Regular Expression pattern to be compiled, + * NUL terminated. + * @param flags Flags that alter the default matching behavior for + * the regular expression, UREGEX_CASE_INSENSITIVE, for + * example. For default behavior, set this parameter to zero. + * See enum URegexpFlag. All desired flags + * are bitwise-ORed together. + * @param pe Receives the position (line and column numbers) of any syntax + * error within the source regular expression string. If this + * information is not wanted, pass NULL for this parameter. + * @param status Receives errors detected by this function. + * @return The URegularExpression object representing the compiled + * pattern. + * + * @stable ICU 3.0 + */ +#if !UCONFIG_NO_CONVERSION +U_STABLE URegularExpression * U_EXPORT2 +uregex_openC( const char *pattern, + uint32_t flags, + UParseError *pe, + UErrorCode *status); +#endif + + + +/** + * Close the regular expression, recovering all resources (memory) it + * was holding. + * + * @param regexp The regular expression to be closed. + * @stable ICU 3.0 + */ +U_STABLE void U_EXPORT2 +uregex_close(URegularExpression *regexp); + + +/** + * Make a copy of a compiled regular expression. Cloning a regular + * expression is faster than opening a second instance from the source + * form of the expression, and requires less memory. + *

+ * Note that the current input string and the position of any matched text + * within it are not cloned; only the pattern itself and the + * match mode flags are copied. + *

+ * Cloning can be particularly useful to threaded applications that perform + * multiple match operations in parallel. Each concurrent RE + * operation requires its own instance of a URegularExpression. + * + * @param regexp The compiled regular expression to be cloned. + * @param status Receives indication of any errors encountered + * @return the cloned copy of the compiled regular expression. + * @stable ICU 3.0 + */ +U_STABLE URegularExpression * U_EXPORT2 +uregex_clone(const URegularExpression *regexp, UErrorCode *status); + +/** + * Returns a pointer to the source form of the pattern for this regular expression. + * This function will work even if the pattern was originally specified as a UText. + * + * @param regexp The compiled regular expression. + * @param patLength This output parameter will be set to the length of the + * pattern string. A NULL pointer may be used here if the + * pattern length is not needed, as would be the case if + * the pattern is known in advance to be a NUL terminated + * string. + * @param status Receives errors detected by this function. + * @return a pointer to the pattern string. The storage for the string is + * owned by the regular expression object, and must not be + * altered or deleted by the application. The returned string + * will remain valid until the regular expression is closed. + * @stable ICU 3.0 + */ +U_STABLE const UChar * U_EXPORT2 +uregex_pattern(const URegularExpression *regexp, + int32_t *patLength, + UErrorCode *status); + +/** + * Returns the source text of the pattern for this regular expression. + * This function will work even if the pattern was originally specified as a UChar string. + * + * @param regexp The compiled regular expression. + * @param status Receives errors detected by this function. + * @return the pattern text. The storage for the text is owned by the regular expression + * object, and must not be altered or deleted. + * + * @stable ICU 4.6 + */ +U_STABLE UText * U_EXPORT2 +uregex_patternUText(const URegularExpression *regexp, + UErrorCode *status); + +/** + * Get the match mode flags that were specified when compiling this regular expression. + * @param status Receives errors detected by this function. + * @param regexp The compiled regular expression. + * @return The match mode flags + * @see URegexpFlag + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_flags(const URegularExpression *regexp, + UErrorCode *status); + + +/** + * Set the subject text string upon which the regular expression will look for matches. + * This function may be called any number of times, allowing the regular + * expression pattern to be applied to different strings. + *

+ * Regular expression matching operations work directly on the application's + * string data. No copy is made. The subject string data must not be + * altered after calling this function until after all regular expression + * operations involving this string data are completed. + *

+ * Zero length strings are permitted. In this case, no subsequent match + * operation will dereference the text string pointer. + * + * @param regexp The compiled regular expression. + * @param text The subject text string. + * @param textLength The length of the subject text, or -1 if the string + * is NUL terminated. + * @param status Receives errors detected by this function. + * @stable ICU 3.0 + */ +U_STABLE void U_EXPORT2 +uregex_setText(URegularExpression *regexp, + const UChar *text, + int32_t textLength, + UErrorCode *status); + + +/** + * Set the subject text string upon which the regular expression will look for matches. + * This function may be called any number of times, allowing the regular + * expression pattern to be applied to different strings. + *

+ * Regular expression matching operations work directly on the application's + * string data; only a shallow clone is made. The subject string data must not be + * altered after calling this function until after all regular expression + * operations involving this string data are completed. + * + * @param regexp The compiled regular expression. + * @param text The subject text string. + * @param status Receives errors detected by this function. + * + * @stable ICU 4.6 + */ +U_STABLE void U_EXPORT2 +uregex_setUText(URegularExpression *regexp, + UText *text, + UErrorCode *status); + +/** + * Get the subject text that is currently associated with this + * regular expression object. If the input was supplied using uregex_setText(), + * that pointer will be returned. Otherwise, the characters in the input will + * be extracted to a buffer and returned. In either case, ownership remains + * with the regular expression object. + * + * This function will work even if the input was originally specified as a UText. + * + * @param regexp The compiled regular expression. + * @param textLength The length of the string is returned in this output parameter. + * A NULL pointer may be used here if the + * text length is not needed, as would be the case if + * the text is known in advance to be a NUL terminated + * string. + * @param status Receives errors detected by this function. + * @return Pointer to the subject text string currently associated with + * this regular expression. + * @stable ICU 3.0 + */ +U_STABLE const UChar * U_EXPORT2 +uregex_getText(URegularExpression *regexp, + int32_t *textLength, + UErrorCode *status); + +/** + * Get the subject text that is currently associated with this + * regular expression object. + * + * This function will work even if the input was originally specified as a UChar string. + * + * @param regexp The compiled regular expression. + * @param dest A mutable UText in which to store the current input. + * If NULL, a new UText will be created as an immutable shallow clone + * of the actual input string. + * @param status Receives errors detected by this function. + * @return The subject text currently associated with this regular expression. + * If a pre-allocated UText was provided, it will always be used and returned. + * + * @stable ICU 4.6 + */ +U_STABLE UText * U_EXPORT2 +uregex_getUText(URegularExpression *regexp, + UText *dest, + UErrorCode *status); + +/** + * Set the subject text string upon which the regular expression is looking for matches + * without changing any other aspect of the matching state. + * The new and previous text strings must have the same content. + * + * This function is intended for use in environments where ICU is operating on + * strings that may move around in memory. It provides a mechanism for notifying + * ICU that the string has been relocated, and providing a new UText to access the + * string in its new position. + * + * Note that the regular expression implementation never copies the underlying text + * of a string being matched, but always operates directly on the original text + * provided by the user. Refreshing simply drops the references to the old text + * and replaces them with references to the new. + * + * Caution: this function is normally used only by very specialized + * system-level code. One example use case is with garbage collection + * that moves the text in memory. + * + * @param regexp The compiled regular expression. + * @param text The new (moved) text string. + * @param status Receives errors detected by this function. + * + * @stable ICU 4.8 + */ +U_STABLE void U_EXPORT2 +uregex_refreshUText(URegularExpression *regexp, + UText *text, + UErrorCode *status); + +/** + * Attempts to match the input string against the pattern. + * To succeed, the match must extend to the end of the string, + * or cover the complete match region. + * + * If startIndex >= zero the match operation starts at the specified + * index and must extend to the end of the input string. Any region + * that has been specified is reset. + * + * If startIndex == -1 the match must cover the input region, or the entire + * input string if no region has been set. This directly corresponds to + * Matcher.matches() in Java + * + * @param regexp The compiled regular expression. + * @param startIndex The input string (native) index at which to begin matching, or -1 + * to match the input Region. + * @param status Receives errors detected by this function. + * @return TRUE if there is a match + * @stable ICU 3.0 + */ +U_STABLE UBool U_EXPORT2 +uregex_matches(URegularExpression *regexp, + int32_t startIndex, + UErrorCode *status); + +/** + * 64bit version of uregex_matches. + * Attempts to match the input string against the pattern. + * To succeed, the match must extend to the end of the string, + * or cover the complete match region. + * + * If startIndex >= zero the match operation starts at the specified + * index and must extend to the end of the input string. Any region + * that has been specified is reset. + * + * If startIndex == -1 the match must cover the input region, or the entire + * input string if no region has been set. This directly corresponds to + * Matcher.matches() in Java + * + * @param regexp The compiled regular expression. + * @param startIndex The input string (native) index at which to begin matching, or -1 + * to match the input Region. + * @param status Receives errors detected by this function. + * @return TRUE if there is a match + * @stable ICU 4.6 + */ +U_STABLE UBool U_EXPORT2 +uregex_matches64(URegularExpression *regexp, + int64_t startIndex, + UErrorCode *status); + +/** + * Attempts to match the input string, starting from the specified index, against the pattern. + * The match may be of any length, and is not required to extend to the end + * of the input string. Contrast with uregex_matches(). + * + *

If startIndex is >= 0 any input region that was set for this + * URegularExpression is reset before the operation begins. + * + *

If the specified starting index == -1 the match begins at the start of the input + * region, or at the start of the full string if no region has been specified. + * This corresponds directly with Matcher.lookingAt() in Java. + * + *

If the match succeeds then more information can be obtained via the + * uregexp_start(), uregexp_end(), + * and uregex_group() functions.

+ * + * @param regexp The compiled regular expression. + * @param startIndex The input string (native) index at which to begin matching, or + * -1 to match the Input Region + * @param status A reference to a UErrorCode to receive any errors. + * @return TRUE if there is a match. + * @stable ICU 3.0 + */ +U_STABLE UBool U_EXPORT2 +uregex_lookingAt(URegularExpression *regexp, + int32_t startIndex, + UErrorCode *status); + +/** + * 64bit version of uregex_lookingAt. + * Attempts to match the input string, starting from the specified index, against the pattern. + * The match may be of any length, and is not required to extend to the end + * of the input string. Contrast with uregex_matches(). + * + *

If startIndex is >= 0 any input region that was set for this + * URegularExpression is reset before the operation begins. + * + *

If the specified starting index == -1 the match begins at the start of the input + * region, or at the start of the full string if no region has been specified. + * This corresponds directly with Matcher.lookingAt() in Java. + * + *

If the match succeeds then more information can be obtained via the + * uregexp_start(), uregexp_end(), + * and uregex_group() functions.

+ * + * @param regexp The compiled regular expression. + * @param startIndex The input string (native) index at which to begin matching, or + * -1 to match the Input Region + * @param status A reference to a UErrorCode to receive any errors. + * @return TRUE if there is a match. + * @stable ICU 4.6 + */ +U_STABLE UBool U_EXPORT2 +uregex_lookingAt64(URegularExpression *regexp, + int64_t startIndex, + UErrorCode *status); + +/** + * Find the first matching substring of the input string that matches the pattern. + * If startIndex is >= zero the search for a match begins at the specified index, + * and any match region is reset. This corresponds directly with + * Matcher.find(startIndex) in Java. + * + * If startIndex == -1 the search begins at the start of the input region, + * or at the start of the full string if no region has been specified. + * + * If a match is found, uregex_start(), uregex_end(), and + * uregex_group() will provide more information regarding the match. + * + * @param regexp The compiled regular expression. + * @param startIndex The position (native) in the input string to begin the search, or + * -1 to search within the Input Region. + * @param status A reference to a UErrorCode to receive any errors. + * @return TRUE if a match is found. + * @stable ICU 3.0 + */ +U_STABLE UBool U_EXPORT2 +uregex_find(URegularExpression *regexp, + int32_t startIndex, + UErrorCode *status); + +/** + * 64bit version of uregex_find. + * Find the first matching substring of the input string that matches the pattern. + * If startIndex is >= zero the search for a match begins at the specified index, + * and any match region is reset. This corresponds directly with + * Matcher.find(startIndex) in Java. + * + * If startIndex == -1 the search begins at the start of the input region, + * or at the start of the full string if no region has been specified. + * + * If a match is found, uregex_start(), uregex_end(), and + * uregex_group() will provide more information regarding the match. + * + * @param regexp The compiled regular expression. + * @param startIndex The position (native) in the input string to begin the search, or + * -1 to search within the Input Region. + * @param status A reference to a UErrorCode to receive any errors. + * @return TRUE if a match is found. + * @stable ICU 4.6 + */ +U_STABLE UBool U_EXPORT2 +uregex_find64(URegularExpression *regexp, + int64_t startIndex, + UErrorCode *status); + +/** + * Find the next pattern match in the input string. Begin searching + * the input at the location following the end of he previous match, + * or at the start of the string (or region) if there is no + * previous match. If a match is found, uregex_start(), uregex_end(), and + * uregex_group() will provide more information regarding the match. + * + * @param regexp The compiled regular expression. + * @param status A reference to a UErrorCode to receive any errors. + * @return TRUE if a match is found. + * @see uregex_reset + * @stable ICU 3.0 + */ +U_STABLE UBool U_EXPORT2 +uregex_findNext(URegularExpression *regexp, + UErrorCode *status); + +/** + * Get the number of capturing groups in this regular expression's pattern. + * @param regexp The compiled regular expression. + * @param status A reference to a UErrorCode to receive any errors. + * @return the number of capture groups + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_groupCount(URegularExpression *regexp, + UErrorCode *status); + +/** + * Get the group number corresponding to a named capture group. + * The returned number can be used with any function that access + * capture groups by number. + * + * The function returns an error status if the specified name does not + * appear in the pattern. + * + * @param regexp The compiled regular expression. + * @param groupName The capture group name. + * @param nameLength The length of the name, or -1 if the name is a + * nul-terminated string. + * @param status A pointer to a UErrorCode to receive any errors. + * + * @stable ICU 55 + */ +U_STABLE int32_t U_EXPORT2 +uregex_groupNumberFromName(URegularExpression *regexp, + const UChar *groupName, + int32_t nameLength, + UErrorCode *status); + + +/** + * Get the group number corresponding to a named capture group. + * The returned number can be used with any function that access + * capture groups by number. + * + * The function returns an error status if the specified name does not + * appear in the pattern. + * + * @param regexp The compiled regular expression. + * @param groupName The capture group name, + * platform invariant characters only. + * @param nameLength The length of the name, or -1 if the name is + * nul-terminated. + * @param status A pointer to a UErrorCode to receive any errors. + * + * @stable ICU 55 + */ +U_STABLE int32_t U_EXPORT2 +uregex_groupNumberFromCName(URegularExpression *regexp, + const char *groupName, + int32_t nameLength, + UErrorCode *status); + +/** Extract the string for the specified matching expression or subexpression. + * Group #0 is the complete string of matched text. + * Group #1 is the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group to extract. Group 0 is the complete + * match. The value of this parameter must be + * less than or equal to the number of capture groups in + * the pattern. + * @param dest Buffer to receive the matching string data + * @param destCapacity Capacity of the dest buffer. + * @param status A reference to a UErrorCode to receive any errors. + * @return Length of matching data, + * or -1 if no applicable match. + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_group(URegularExpression *regexp, + int32_t groupNum, + UChar *dest, + int32_t destCapacity, + UErrorCode *status); + +/** Returns a shallow immutable clone of the entire input string with the current index set + * to the beginning of the requested capture group. The capture group length is also + * returned via groupLength. + * Group #0 is the complete string of matched text. + * Group #1 is the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group to extract. Group 0 is the complete + * match. The value of this parameter must be + * less than or equal to the number of capture groups in + * the pattern. + * @param dest A mutable UText in which to store the current input. + * If NULL, a new UText will be created as an immutable shallow clone + * of the entire input string. + * @param groupLength The group length of the desired capture group. Output parameter. + * @param status A reference to a UErrorCode to receive any errors. + * @return The subject text currently associated with this regular expression. + * If a pre-allocated UText was provided, it will always be used and returned. + + * + * @stable ICU 4.6 + */ +U_STABLE UText * U_EXPORT2 +uregex_groupUText(URegularExpression *regexp, + int32_t groupNum, + UText *dest, + int64_t *groupLength, + UErrorCode *status); + +/** + * Returns the index in the input string of the start of the text matched by the + * specified capture group during the previous match operation. Return -1 if + * the capture group was not part of the last match. + * Group #0 refers to the complete range of matched text. + * Group #1 refers to the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group number + * @param status A reference to a UErrorCode to receive any errors. + * @return the starting (native) position in the input of the text matched + * by the specified group. + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_start(URegularExpression *regexp, + int32_t groupNum, + UErrorCode *status); + +/** + * 64bit version of uregex_start. + * Returns the index in the input string of the start of the text matched by the + * specified capture group during the previous match operation. Return -1 if + * the capture group was not part of the last match. + * Group #0 refers to the complete range of matched text. + * Group #1 refers to the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group number + * @param status A reference to a UErrorCode to receive any errors. + * @return the starting (native) position in the input of the text matched + * by the specified group. + * @stable ICU 4.6 + */ +U_STABLE int64_t U_EXPORT2 +uregex_start64(URegularExpression *regexp, + int32_t groupNum, + UErrorCode *status); + +/** + * Returns the index in the input string of the position following the end + * of the text matched by the specified capture group. + * Return -1 if the capture group was not part of the last match. + * Group #0 refers to the complete range of matched text. + * Group #1 refers to the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group number + * @param status A reference to a UErrorCode to receive any errors. + * @return the (native) index of the position following the last matched character. + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_end(URegularExpression *regexp, + int32_t groupNum, + UErrorCode *status); + +/** + * 64bit version of uregex_end. + * Returns the index in the input string of the position following the end + * of the text matched by the specified capture group. + * Return -1 if the capture group was not part of the last match. + * Group #0 refers to the complete range of matched text. + * Group #1 refers to the text matched by the first set of capturing parentheses. + * + * @param regexp The compiled regular expression. + * @param groupNum The capture group number + * @param status A reference to a UErrorCode to receive any errors. + * @return the (native) index of the position following the last matched character. + * @stable ICU 4.6 + */ +U_STABLE int64_t U_EXPORT2 +uregex_end64(URegularExpression *regexp, + int32_t groupNum, + UErrorCode *status); + +/** + * Reset any saved state from the previous match. Has the effect of + * causing uregex_findNext to begin at the specified index, and causing + * uregex_start(), uregex_end() and uregex_group() to return an error + * indicating that there is no match information available. Clears any + * match region that may have been set. + * + * @param regexp The compiled regular expression. + * @param index The position (native) in the text at which a + * uregex_findNext() should begin searching. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 3.0 + */ +U_STABLE void U_EXPORT2 +uregex_reset(URegularExpression *regexp, + int32_t index, + UErrorCode *status); + +/** + * 64bit version of uregex_reset. + * Reset any saved state from the previous match. Has the effect of + * causing uregex_findNext to begin at the specified index, and causing + * uregex_start(), uregex_end() and uregex_group() to return an error + * indicating that there is no match information available. Clears any + * match region that may have been set. + * + * @param regexp The compiled regular expression. + * @param index The position (native) in the text at which a + * uregex_findNext() should begin searching. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.6 + */ +U_STABLE void U_EXPORT2 +uregex_reset64(URegularExpression *regexp, + int64_t index, + UErrorCode *status); + +/** + * Sets the limits of the matching region for this URegularExpression. + * The region is the part of the input string that will be considered when matching. + * Invoking this method resets any saved state from the previous match, + * then sets the region to start at the index specified by the start parameter + * and end at the index specified by the end parameter. + * + * Depending on the transparency and anchoring being used (see useTransparentBounds + * and useAnchoringBounds), certain constructs such as anchors may behave differently + * at or around the boundaries of the region + * + * The function will fail if start is greater than limit, or if either index + * is less than zero or greater than the length of the string being matched. + * + * @param regexp The compiled regular expression. + * @param regionStart The (native) index to begin searches at. + * @param regionLimit The (native) index to end searches at (exclusive). + * @param status A pointer to a UErrorCode to receive any errors. + * @stable ICU 4.0 + */ +U_STABLE void U_EXPORT2 +uregex_setRegion(URegularExpression *regexp, + int32_t regionStart, + int32_t regionLimit, + UErrorCode *status); + +/** + * 64bit version of uregex_setRegion. + * Sets the limits of the matching region for this URegularExpression. + * The region is the part of the input string that will be considered when matching. + * Invoking this method resets any saved state from the previous match, + * then sets the region to start at the index specified by the start parameter + * and end at the index specified by the end parameter. + * + * Depending on the transparency and anchoring being used (see useTransparentBounds + * and useAnchoringBounds), certain constructs such as anchors may behave differently + * at or around the boundaries of the region + * + * The function will fail if start is greater than limit, or if either index + * is less than zero or greater than the length of the string being matched. + * + * @param regexp The compiled regular expression. + * @param regionStart The (native) index to begin searches at. + * @param regionLimit The (native) index to end searches at (exclusive). + * @param status A pointer to a UErrorCode to receive any errors. + * @stable ICU 4.6 + */ +U_STABLE void U_EXPORT2 +uregex_setRegion64(URegularExpression *regexp, + int64_t regionStart, + int64_t regionLimit, + UErrorCode *status); + +/** + * Set the matching region and the starting index for subsequent matches + * in a single operation. + * This is useful because the usual function for setting the starting + * index, urgex_reset(), also resets any region limits. + * + * @param regexp The compiled regular expression. + * @param regionStart The (native) index to begin searches at. + * @param regionLimit The (native) index to end searches at (exclusive). + * @param startIndex The index in the input text at which the next + * match operation should begin. + * @param status A pointer to a UErrorCode to receive any errors. + * @stable ICU 4.6 + */ +U_STABLE void U_EXPORT2 +uregex_setRegionAndStart(URegularExpression *regexp, + int64_t regionStart, + int64_t regionLimit, + int64_t startIndex, + UErrorCode *status); + +/** + * Reports the start index of the matching region. Any matches found are limited to + * to the region bounded by regionStart (inclusive) and regionEnd (exclusive). + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The starting (native) index of this matcher's region. + * @stable ICU 4.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_regionStart(const URegularExpression *regexp, + UErrorCode *status); + +/** + * 64bit version of uregex_regionStart. + * Reports the start index of the matching region. Any matches found are limited to + * to the region bounded by regionStart (inclusive) and regionEnd (exclusive). + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The starting (native) index of this matcher's region. + * @stable ICU 4.6 + */ +U_STABLE int64_t U_EXPORT2 +uregex_regionStart64(const URegularExpression *regexp, + UErrorCode *status); + +/** + * Reports the end index (exclusive) of the matching region for this URegularExpression. + * Any matches found are limited to to the region bounded by regionStart (inclusive) + * and regionEnd (exclusive). + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The ending point (native) of this matcher's region. + * @stable ICU 4.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_regionEnd(const URegularExpression *regexp, + UErrorCode *status); + +/** + * 64bit version of uregex_regionEnd. + * Reports the end index (exclusive) of the matching region for this URegularExpression. + * Any matches found are limited to to the region bounded by regionStart (inclusive) + * and regionEnd (exclusive). + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return The ending point (native) of this matcher's region. + * @stable ICU 4.6 + */ +U_STABLE int64_t U_EXPORT2 +uregex_regionEnd64(const URegularExpression *regexp, + UErrorCode *status); + +/** + * Queries the transparency of region bounds for this URegularExpression. + * See useTransparentBounds for a description of transparent and opaque bounds. + * By default, matching boundaries are opaque. + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return TRUE if this matcher is using opaque bounds, false if it is not. + * @stable ICU 4.0 + */ +U_STABLE UBool U_EXPORT2 +uregex_hasTransparentBounds(const URegularExpression *regexp, + UErrorCode *status); + + +/** + * Sets the transparency of region bounds for this URegularExpression. + * Invoking this function with an argument of TRUE will set matches to use transparent bounds. + * If the boolean argument is FALSE, then opaque bounds will be used. + * + * Using transparent bounds, the boundaries of the matching region are transparent + * to lookahead, lookbehind, and boundary matching constructs. Those constructs can + * see text beyond the boundaries of the region while checking for a match. + * + * With opaque bounds, no text outside of the matching region is visible to lookahead, + * lookbehind, and boundary matching constructs. + * + * By default, opaque bounds are used. + * + * @param regexp The compiled regular expression. + * @param b TRUE for transparent bounds; FALSE for opaque bounds + * @param status A pointer to a UErrorCode to receive any errors. + * @stable ICU 4.0 + **/ +U_STABLE void U_EXPORT2 +uregex_useTransparentBounds(URegularExpression *regexp, + UBool b, + UErrorCode *status); + + +/** + * Return true if this URegularExpression is using anchoring bounds. + * By default, anchoring region bounds are used. + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return TRUE if this matcher is using anchoring bounds. + * @stable ICU 4.0 + */ +U_STABLE UBool U_EXPORT2 +uregex_hasAnchoringBounds(const URegularExpression *regexp, + UErrorCode *status); + + +/** + * Set whether this URegularExpression is using Anchoring Bounds for its region. + * With anchoring bounds, pattern anchors such as ^ and $ will match at the start + * and end of the region. Without Anchoring Bounds, anchors will only match at + * the positions they would in the complete text. + * + * Anchoring Bounds are the default for regions. + * + * @param regexp The compiled regular expression. + * @param b TRUE if to enable anchoring bounds; FALSE to disable them. + * @param status A pointer to a UErrorCode to receive any errors. + * @stable ICU 4.0 + */ +U_STABLE void U_EXPORT2 +uregex_useAnchoringBounds(URegularExpression *regexp, + UBool b, + UErrorCode *status); + +/** + * Return TRUE if the most recent matching operation touched the + * end of the text being processed. In this case, additional input text could + * change the results of that match. + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return TRUE if the most recent match hit the end of input + * @stable ICU 4.0 + */ +U_STABLE UBool U_EXPORT2 +uregex_hitEnd(const URegularExpression *regexp, + UErrorCode *status); + +/** + * Return TRUE the most recent match succeeded and additional input could cause + * it to fail. If this function returns false and a match was found, then more input + * might change the match but the match won't be lost. If a match was not found, + * then requireEnd has no meaning. + * + * @param regexp The compiled regular expression. + * @param status A pointer to a UErrorCode to receive any errors. + * @return TRUE if more input could cause the most recent match to no longer match. + * @stable ICU 4.0 + */ +U_STABLE UBool U_EXPORT2 +uregex_requireEnd(const URegularExpression *regexp, + UErrorCode *status); + + + + + +/** + * Replaces every substring of the input that matches the pattern + * with the given replacement string. This is a convenience function that + * provides a complete find-and-replace-all operation. + * + * This method scans the input string looking for matches of the pattern. + * Input that is not part of any match is copied unchanged to the + * destination buffer. Matched regions are replaced in the output + * buffer by the replacement string. The replacement string may contain + * references to capture groups; these take the form of $1, $2, etc. + * + * @param regexp The compiled regular expression. + * @param replacementText A string containing the replacement text. + * @param replacementLength The length of the replacement string, or + * -1 if it is NUL terminated. + * @param destBuf A (UChar *) buffer that will receive the result. + * @param destCapacity The capacity of the destination buffer. + * @param status A reference to a UErrorCode to receive any errors. + * @return The length of the string resulting from the find + * and replace operation. In the event that the + * destination capacity is inadequate, the return value + * is still the full length of the untruncated string. + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_replaceAll(URegularExpression *regexp, + const UChar *replacementText, + int32_t replacementLength, + UChar *destBuf, + int32_t destCapacity, + UErrorCode *status); + +/** + * Replaces every substring of the input that matches the pattern + * with the given replacement string. This is a convenience function that + * provides a complete find-and-replace-all operation. + * + * This method scans the input string looking for matches of the pattern. + * Input that is not part of any match is copied unchanged to the + * destination buffer. Matched regions are replaced in the output + * buffer by the replacement string. The replacement string may contain + * references to capture groups; these take the form of $1, $2, etc. + * + * @param regexp The compiled regular expression. + * @param replacement A string containing the replacement text. + * @param dest A mutable UText that will receive the result. + * If NULL, a new UText will be created (which may not be mutable). + * @param status A reference to a UErrorCode to receive any errors. + * @return A UText containing the results of the find and replace. + * If a pre-allocated UText was provided, it will always be used and returned. + * + * @stable ICU 4.6 + */ +U_STABLE UText * U_EXPORT2 +uregex_replaceAllUText(URegularExpression *regexp, + UText *replacement, + UText *dest, + UErrorCode *status); + +/** + * Replaces the first substring of the input that matches the pattern + * with the given replacement string. This is a convenience function that + * provides a complete find-and-replace operation. + * + * This method scans the input string looking for a match of the pattern. + * All input that is not part of the match is copied unchanged to the + * destination buffer. The matched region is replaced in the output + * buffer by the replacement string. The replacement string may contain + * references to capture groups; these take the form of $1, $2, etc. + * + * @param regexp The compiled regular expression. + * @param replacementText A string containing the replacement text. + * @param replacementLength The length of the replacement string, or + * -1 if it is NUL terminated. + * @param destBuf A (UChar *) buffer that will receive the result. + * @param destCapacity The capacity of the destination buffer. + * @param status a reference to a UErrorCode to receive any errors. + * @return The length of the string resulting from the find + * and replace operation. In the event that the + * destination capacity is inadequate, the return value + * is still the full length of the untruncated string. + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_replaceFirst(URegularExpression *regexp, + const UChar *replacementText, + int32_t replacementLength, + UChar *destBuf, + int32_t destCapacity, + UErrorCode *status); + +/** + * Replaces the first substring of the input that matches the pattern + * with the given replacement string. This is a convenience function that + * provides a complete find-and-replace operation. + * + * This method scans the input string looking for a match of the pattern. + * All input that is not part of the match is copied unchanged to the + * destination buffer. The matched region is replaced in the output + * buffer by the replacement string. The replacement string may contain + * references to capture groups; these take the form of $1, $2, etc. + * + * @param regexp The compiled regular expression. + * @param replacement A string containing the replacement text. + * @param dest A mutable UText that will receive the result. + * If NULL, a new UText will be created (which may not be mutable). + * @param status A reference to a UErrorCode to receive any errors. + * @return A UText containing the results of the find and replace. + * If a pre-allocated UText was provided, it will always be used and returned. + * + * @stable ICU 4.6 + */ +U_STABLE UText * U_EXPORT2 +uregex_replaceFirstUText(URegularExpression *regexp, + UText *replacement, + UText *dest, + UErrorCode *status); + +/** + * Implements a replace operation intended to be used as part of an + * incremental find-and-replace. + * + *

The input string, starting from the end of the previous match and ending at + * the start of the current match, is appended to the destination string. Then the + * replacement string is appended to the output string, + * including handling any substitutions of captured text.

+ * + *

A note on preflight computation of buffersize and error handling: + * Calls to uregex_appendReplacement() and uregex_appendTail() are + * designed to be chained, one after another, with the destination + * buffer pointer and buffer capacity updated after each in preparation + * to for the next. If the destination buffer is exhausted partway through such a + * sequence, a U_BUFFER_OVERFLOW_ERROR status will be returned. Normal + * ICU conventions are for a function to perform no action if it is + * called with an error status, but for this one case, uregex_appendRepacement() + * will operate normally so that buffer size computations will complete + * correctly. + * + *

For simple, prepackaged, non-incremental find-and-replace + * operations, see replaceFirst() or replaceAll().

+ * + * @param regexp The regular expression object. + * @param replacementText The string that will replace the matched portion of the + * input string as it is copied to the destination buffer. + * The replacement text may contain references ($1, for + * example) to capture groups from the match. + * @param replacementLength The length of the replacement text string, + * or -1 if the string is NUL terminated. + * @param destBuf The buffer into which the results of the + * find-and-replace are placed. On return, this pointer + * will be updated to refer to the beginning of the + * unused portion of buffer, leaving it in position for + * a subsequent call to this function. + * @param destCapacity The size of the output buffer, On return, this + * parameter will be updated to reflect the space remaining + * unused in the output buffer. + * @param status A reference to a UErrorCode to receive any errors. + * @return The length of the result string. In the event that + * destCapacity is inadequate, the full length of the + * untruncated output string is returned. + * + * @stable ICU 3.0 + * + */ +U_STABLE int32_t U_EXPORT2 +uregex_appendReplacement(URegularExpression *regexp, + const UChar *replacementText, + int32_t replacementLength, + UChar **destBuf, + int32_t *destCapacity, + UErrorCode *status); + +/** + * Implements a replace operation intended to be used as part of an + * incremental find-and-replace. + * + *

The input string, starting from the end of the previous match and ending at + * the start of the current match, is appended to the destination string. Then the + * replacement string is appended to the output string, + * including handling any substitutions of captured text.

+ * + *

For simple, prepackaged, non-incremental find-and-replace + * operations, see replaceFirst() or replaceAll().

+ * + * @param regexp The regular expression object. + * @param replacementText The string that will replace the matched portion of the + * input string as it is copied to the destination buffer. + * The replacement text may contain references ($1, for + * example) to capture groups from the match. + * @param dest A mutable UText that will receive the result. Must not be NULL. + * @param status A reference to a UErrorCode to receive any errors. + * + * @stable ICU 4.6 + */ +U_STABLE void U_EXPORT2 +uregex_appendReplacementUText(URegularExpression *regexp, + UText *replacementText, + UText *dest, + UErrorCode *status); + +/** + * As the final step in a find-and-replace operation, append the remainder + * of the input string, starting at the position following the last match, + * to the destination string. uregex_appendTail() is intended + * to be invoked after one or more invocations of the + * uregex_appendReplacement() function. + * + * @param regexp The regular expression object. This is needed to + * obtain the input string and with the position + * of the last match within it. + * @param destBuf The buffer in which the results of the + * find-and-replace are placed. On return, the pointer + * will be updated to refer to the beginning of the + * unused portion of buffer. + * @param destCapacity The size of the output buffer, On return, this + * value will be updated to reflect the space remaining + * unused in the output buffer. + * @param status A reference to a UErrorCode to receive any errors. + * @return The length of the result string. In the event that + * destCapacity is inadequate, the full length of the + * untruncated output string is returned. + * + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_appendTail(URegularExpression *regexp, + UChar **destBuf, + int32_t *destCapacity, + UErrorCode *status); + +/** + * As the final step in a find-and-replace operation, append the remainder + * of the input string, starting at the position following the last match, + * to the destination string. uregex_appendTailUText() is intended + * to be invoked after one or more invocations of the + * uregex_appendReplacementUText() function. + * + * @param regexp The regular expression object. This is needed to + * obtain the input string and with the position + * of the last match within it. + * @param dest A mutable UText that will receive the result. Must not be NULL. + * + * @param status Error code + * + * @return The destination UText. + * + * @stable ICU 4.6 + */ +U_STABLE UText * U_EXPORT2 +uregex_appendTailUText(URegularExpression *regexp, + UText *dest, + UErrorCode *status); + + /** + * Split a string into fields. Somewhat like split() from Perl. + * The pattern matches identify delimiters that separate the input + * into fields. The input data between the matches becomes the + * fields themselves. + * + * Each of the fields is copied from the input string to the destination + * buffer, and NUL terminated. The position of each field within + * the destination buffer is returned in the destFields array. + * + * If the delimiter pattern includes capture groups, the captured text will + * also appear in the destination array of output strings, interspersed + * with the fields. This is similar to Perl, but differs from Java, + * which ignores the presence of capture groups in the pattern. + * + * Trailing empty fields will always be returned, assuming sufficient + * destination capacity. This differs from the default behavior for Java + * and Perl where trailing empty fields are not returned. + * + * The number of strings produced by the split operation is returned. + * This count includes the strings from capture groups in the delimiter pattern. + * This behavior differs from Java, which ignores capture groups. + * + * @param regexp The compiled regular expression. + * @param destBuf A (UChar *) buffer to receive the fields that + * are extracted from the input string. These + * field pointers will refer to positions within the + * destination buffer supplied by the caller. Any + * extra positions within the destFields array will be + * set to NULL. + * @param destCapacity The capacity of the destBuf. + * @param requiredCapacity The actual capacity required of the destBuf. + * If destCapacity is too small, requiredCapacity will return + * the total capacity required to hold all of the output, and + * a U_BUFFER_OVERFLOW_ERROR will be returned. + * @param destFields An array to be filled with the position of each + * of the extracted fields within destBuf. + * @param destFieldsCapacity The number of elements in the destFields array. + * If the number of fields found is less than destFieldsCapacity, + * the extra destFields elements are set to zero. + * If destFieldsCapacity is too small, the trailing part of the + * input, including any field delimiters, is treated as if it + * were the last field - it is copied to the destBuf, and + * its position is in the destBuf is stored in the last element + * of destFields. This behavior mimics that of Perl. It is not + * an error condition, and no error status is returned when all destField + * positions are used. + * @param status A reference to a UErrorCode to receive any errors. + * @return The number of fields into which the input string was split. + * @stable ICU 3.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_split( URegularExpression *regexp, + UChar *destBuf, + int32_t destCapacity, + int32_t *requiredCapacity, + UChar *destFields[], + int32_t destFieldsCapacity, + UErrorCode *status); + + /** + * Split a string into fields. Somewhat like split() from Perl. + * The pattern matches identify delimiters that separate the input + * into fields. The input data between the matches becomes the + * fields themselves. + *

+ * The behavior of this function is not very closely aligned with uregex_split(); + * instead, it is based on (and implemented directly on top of) the C++ split method. + * + * @param regexp The compiled regular expression. + * @param destFields An array of mutable UText structs to receive the results of the split. + * If a field is NULL, a new UText is allocated to contain the results for + * that field. This new UText is not guaranteed to be mutable. + * @param destFieldsCapacity The number of elements in the destination array. + * If the number of fields found is less than destCapacity, the + * extra strings in the destination array are not altered. + * If the number of destination strings is less than the number + * of fields, the trailing part of the input string, including any + * field delimiters, is placed in the last destination string. + * This behavior mimics that of Perl. It is not an error condition, and no + * error status is returned when all destField positions are used. + * @param status A reference to a UErrorCode to receive any errors. + * @return The number of fields into which the input string was split. + * + * @stable ICU 4.6 + */ +U_STABLE int32_t U_EXPORT2 +uregex_splitUText(URegularExpression *regexp, + UText *destFields[], + int32_t destFieldsCapacity, + UErrorCode *status); + +/** + * Set a processing time limit for match operations with this URegularExpression. + * + * Some patterns, when matching certain strings, can run in exponential time. + * For practical purposes, the match operation may appear to be in an + * infinite loop. + * When a limit is set a match operation will fail with an error if the + * limit is exceeded. + *

+ * The units of the limit are steps of the match engine. + * Correspondence with actual processor time will depend on the speed + * of the processor and the details of the specific pattern, but will + * typically be on the order of milliseconds. + *

+ * By default, the matching time is not limited. + *

+ * + * @param regexp The compiled regular expression. + * @param limit The limit value, or 0 for no limit. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.0 + */ +U_STABLE void U_EXPORT2 +uregex_setTimeLimit(URegularExpression *regexp, + int32_t limit, + UErrorCode *status); + +/** + * Get the time limit for for matches with this URegularExpression. + * A return value of zero indicates that there is no limit. + * + * @param regexp The compiled regular expression. + * @param status A reference to a UErrorCode to receive any errors. + * @return the maximum allowed time for a match, in units of processing steps. + * @stable ICU 4.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_getTimeLimit(const URegularExpression *regexp, + UErrorCode *status); + +/** + * Set the amount of heap storage available for use by the match backtracking stack. + *

+ * ICU uses a backtracking regular expression engine, with the backtrack stack + * maintained on the heap. This function sets the limit to the amount of memory + * that can be used for this purpose. A backtracking stack overflow will + * result in an error from the match operation that caused it. + *

+ * A limit is desirable because a malicious or poorly designed pattern can use + * excessive memory, potentially crashing the process. A limit is enabled + * by default. + *

+ * @param regexp The compiled regular expression. + * @param limit The maximum size, in bytes, of the matching backtrack stack. + * A value of zero means no limit. + * The limit must be greater than or equal to zero. + * @param status A reference to a UErrorCode to receive any errors. + * + * @stable ICU 4.0 + */ +U_STABLE void U_EXPORT2 +uregex_setStackLimit(URegularExpression *regexp, + int32_t limit, + UErrorCode *status); + +/** + * Get the size of the heap storage available for use by the back tracking stack. + * + * @return the maximum backtracking stack size, in bytes, or zero if the + * stack size is unlimited. + * @stable ICU 4.0 + */ +U_STABLE int32_t U_EXPORT2 +uregex_getStackLimit(const URegularExpression *regexp, + UErrorCode *status); + + +/** + * Function pointer for a regular expression matching callback function. + * When set, a callback function will be called periodically during matching + * operations. If the call back function returns FALSE, the matching + * operation will be terminated early. + * + * Note: the callback function must not call other functions on this + * URegularExpression. + * + * @param context context pointer. The callback function will be invoked + * with the context specified at the time that + * uregex_setMatchCallback() is called. + * @param steps the accumulated processing time, in match steps, + * for this matching operation. + * @return TRUE to continue the matching operation. + * FALSE to terminate the matching operation. + * @stable ICU 4.0 + */ +U_CDECL_BEGIN +typedef UBool U_CALLCONV URegexMatchCallback ( + const void *context, + int32_t steps); +U_CDECL_END + +/** + * Set a callback function for this URegularExpression. + * During matching operations the function will be called periodically, + * giving the application the opportunity to terminate a long-running + * match. + * + * @param regexp The compiled regular expression. + * @param callback A pointer to the user-supplied callback function. + * @param context User context pointer. The value supplied at the + * time the callback function is set will be saved + * and passed to the callback each time that it is called. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.0 + */ +U_STABLE void U_EXPORT2 +uregex_setMatchCallback(URegularExpression *regexp, + URegexMatchCallback *callback, + const void *context, + UErrorCode *status); + + +/** + * Get the callback function for this URegularExpression. + * + * @param regexp The compiled regular expression. + * @param callback Out parameter, receives a pointer to the user-supplied + * callback function. + * @param context Out parameter, receives the user context pointer that + * was set when uregex_setMatchCallback() was called. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.0 + */ +U_STABLE void U_EXPORT2 +uregex_getMatchCallback(const URegularExpression *regexp, + URegexMatchCallback **callback, + const void **context, + UErrorCode *status); + +/** + * Function pointer for a regular expression find callback function. + * + * When set, a callback function will be called during a find operation + * and for operations that depend on find, such as findNext, split and some replace + * operations like replaceFirst. + * The callback will usually be called after each attempt at a match, but this is not a + * guarantee that the callback will be invoked at each character. For finds where the + * match engine is invoked at each character, this may be close to true, but less likely + * for more optimized loops where the pattern is known to only start, and the match + * engine invoked, at certain characters. + * When invoked, this callback will specify the index at which a match operation is about + * to be attempted, giving the application the opportunity to terminate a long-running + * find operation. + * + * If the call back function returns FALSE, the find operation will be terminated early. + * + * Note: the callback function must not call other functions on this + * URegularExpression + * + * @param context context pointer. The callback function will be invoked + * with the context specified at the time that + * uregex_setFindProgressCallback() is called. + * @param matchIndex the next index at which a match attempt will be attempted for this + * find operation. If this callback interrupts the search, this is the + * index at which a find/findNext operation may be re-initiated. + * @return TRUE to continue the matching operation. + * FALSE to terminate the matching operation. + * @stable ICU 4.6 + */ +U_CDECL_BEGIN +typedef UBool U_CALLCONV URegexFindProgressCallback ( + const void *context, + int64_t matchIndex); +U_CDECL_END + + +/** + * Set the find progress callback function for this URegularExpression. + * + * @param regexp The compiled regular expression. + * @param callback A pointer to the user-supplied callback function. + * @param context User context pointer. The value supplied at the + * time the callback function is set will be saved + * and passed to the callback each time that it is called. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.6 + */ +U_STABLE void U_EXPORT2 +uregex_setFindProgressCallback(URegularExpression *regexp, + URegexFindProgressCallback *callback, + const void *context, + UErrorCode *status); + +/** + * Get the find progress callback function for this URegularExpression. + * + * @param regexp The compiled regular expression. + * @param callback Out parameter, receives a pointer to the user-supplied + * callback function. + * @param context Out parameter, receives the user context pointer that + * was set when uregex_setFindProgressCallback() was called. + * @param status A reference to a UErrorCode to receive any errors. + * @stable ICU 4.6 + */ +U_STABLE void U_EXPORT2 +uregex_getFindProgressCallback(const URegularExpression *regexp, + URegexFindProgressCallback **callback, + const void **context, + UErrorCode *status); + +#endif /* !UCONFIG_NO_REGULAR_EXPRESSIONS */ +#endif /* UREGEX_H */ + +// uregion.h +/* +***************************************************************************************** +* Copyright (C) 2014, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef UREGION_H +#define UREGION_H + + +/** + * \file + * \brief C API: URegion (territory containment and mapping) + * + * URegion objects represent data associated with a particular Unicode Region Code, also known as a + * Unicode Region Subtag, which is defined based upon the BCP 47 standard. These include: + * * Two-letter codes defined by ISO 3166-1, with special LDML treatment of certain private-use or + * reserved codes; + * * A subset of 3-digit numeric codes defined by UN M.49. + * URegion objects can also provide mappings to and from additional codes. There are different types + * of regions that are important to distinguish: + *

+ * Macroregion - A code for a "macro geographical (continental) region, geographical sub-region, or + * selected economic and other grouping" as defined in UN M.49. These are typically 3-digit codes, + * but contain some 2-letter codes for LDML extensions, such as "QO" for Outlying Oceania. + * Macroregions are represented in ICU by one of three region types: WORLD (code 001), + * CONTINENTS (regions contained directly by WORLD), and SUBCONTINENTS (regions contained directly + * by a continent ). + *

+ * TERRITORY - A Region that is not a Macroregion. These are typically codes for countries, but also + * include areas that are not separate countries, such as the code "AQ" for Antarctica or the code + * "HK" for Hong Kong (SAR China). Overseas dependencies of countries may or may not have separate + * codes. The codes are typically 2-letter codes aligned with ISO 3166, but BCP47 allows for the use + * of 3-digit codes in the future. + *

+ * UNKNOWN - The code ZZ is defined by Unicode LDML for use in indicating that region is unknown, + * or that the value supplied as a region was invalid. + *

+ * DEPRECATED - Region codes that have been defined in the past but are no longer in modern usage, + * usually due to a country splitting into multiple territories or changing its name. + *

+ * GROUPING - A widely understood grouping of territories that has a well defined membership such + * that a region code has been assigned for it. Some of these are UN M.49 codes that don't fall into + * the world/continent/sub-continent hierarchy, while others are just well-known groupings that have + * their own region code. Region "EU" (European Union) is one such region code that is a grouping. + * Groupings will never be returned by the uregion_getContainingRegion, since a different type of region + * (WORLD, CONTINENT, or SUBCONTINENT) will always be the containing region instead. + * + * URegion objects are const/immutable, owned and maintained by ICU itself, so there are not functions + * to open or close them. + */ + +/** + * URegionType is an enumeration defining the different types of regions. Current possible + * values are URGN_WORLD, URGN_CONTINENT, URGN_SUBCONTINENT, URGN_TERRITORY, URGN_GROUPING, + * URGN_DEPRECATED, and URGN_UNKNOWN. + * + * @stable ICU 51 + */ +typedef enum URegionType { + /** + * Type representing the unknown region. + * @stable ICU 51 + */ + URGN_UNKNOWN, + + /** + * Type representing a territory. + * @stable ICU 51 + */ + URGN_TERRITORY, + + /** + * Type representing the whole world. + * @stable ICU 51 + */ + URGN_WORLD, + + /** + * Type representing a continent. + * @stable ICU 51 + */ + URGN_CONTINENT, + + /** + * Type representing a sub-continent. + * @stable ICU 51 + */ + URGN_SUBCONTINENT, + + /** + * Type representing a grouping of territories that is not to be used in + * the normal WORLD/CONTINENT/SUBCONTINENT/TERRITORY containment tree. + * @stable ICU 51 + */ + URGN_GROUPING, + + /** + * Type representing a region whose code has been deprecated, usually + * due to a country splitting into multiple territories or changing its name. + * @stable ICU 51 + */ + URGN_DEPRECATED, + + /** + * Maximum value for this unumeration. + * @stable ICU 51 + */ + URGN_LIMIT +} URegionType; + +#if !UCONFIG_NO_FORMATTING + +/** + * Opaque URegion object for use in C programs. + * @stable ICU 52 + */ +struct URegion; +typedef struct URegion URegion; /**< @stable ICU 52 */ + +/** + * Returns a pointer to a URegion for the specified region code: A 2-letter or 3-letter ISO 3166 + * code, UN M.49 numeric code (superset of ISO 3166 numeric codes), or other valid Unicode Region + * Code as defined by the LDML specification. The code will be canonicalized internally. If the + * region code is NULL or not recognized, the appropriate error code will be set + * (U_ILLEGAL_ARGUMENT_ERROR). + * @stable ICU 52 + */ +U_STABLE const URegion* U_EXPORT2 +uregion_getRegionFromCode(const char *regionCode, UErrorCode *status); + +/** + * Returns a pointer to a URegion for the specified numeric region code. If the numeric region + * code is not recognized, the appropriate error code will be set (U_ILLEGAL_ARGUMENT_ERROR). + * @stable ICU 52 + */ +U_STABLE const URegion* U_EXPORT2 +uregion_getRegionFromNumericCode (int32_t code, UErrorCode *status); + +/** + * Returns an enumeration over the canonical codes of all known regions that match the given type. + * The enumeration must be closed with with uenum_close(). + * @stable ICU 52 + */ +U_STABLE UEnumeration* U_EXPORT2 +uregion_getAvailable(URegionType type, UErrorCode *status); + +/** + * Returns true if the specified uregion is equal to the specified otherRegion. + * @stable ICU 52 + */ +U_STABLE UBool U_EXPORT2 +uregion_areEqual(const URegion* uregion, const URegion* otherRegion); + +/** + * Returns a pointer to the URegion that contains the specified uregion. Returns NULL if the + * specified uregion is code "001" (World) or "ZZ" (Unknown region). For example, calling + * this method with region "IT" (Italy) returns the URegion for "039" (Southern Europe). + * @stable ICU 52 + */ +U_STABLE const URegion* U_EXPORT2 +uregion_getContainingRegion(const URegion* uregion); + +/** + * Return a pointer to the URegion that geographically contains this uregion and matches the + * specified type, moving multiple steps up the containment chain if necessary. Returns NULL if no + * containing region can be found that matches the specified type. Will return NULL if URegionType + * is URGN_GROUPING, URGN_DEPRECATED, or URGN_UNKNOWN which are not appropriate for this API. + * For example, calling this method with uregion "IT" (Italy) for type URGN_CONTINENT returns the + * URegion "150" (Europe). + * @stable ICU 52 + */ +U_STABLE const URegion* U_EXPORT2 +uregion_getContainingRegionOfType(const URegion* uregion, URegionType type); + +/** + * Return an enumeration over the canonical codes of all the regions that are immediate children + * of the specified uregion in the region hierarchy. These returned regions could be either macro + * regions, territories, or a mixture of the two, depending on the containment data as defined in + * CLDR. This API returns NULL if this uregion doesn't have any sub-regions. For example, calling + * this function for uregion "150" (Europe) returns an enumeration containing the various + * sub-regions of Europe: "039" (Southern Europe), "151" (Eastern Europe), "154" (Northern Europe), + * and "155" (Western Europe). The enumeration must be closed with with uenum_close(). + * @stable ICU 52 + */ +U_STABLE UEnumeration* U_EXPORT2 +uregion_getContainedRegions(const URegion* uregion, UErrorCode *status); + +/** + * Returns an enumeration over the canonical codes of all the regions that are children of the + * specified uregion anywhere in the region hierarchy and match the given type. This API may return + * an empty enumeration if this uregion doesn't have any sub-regions that match the given type. + * For example, calling this method with region "150" (Europe) and type URGN_TERRITORY" returns an + * enumeration containing all the territories in Europe: "FR" (France), "IT" (Italy), "DE" (Germany), + * etc. The enumeration must be closed with with uenum_close(). + * @stable ICU 52 + */ +U_STABLE UEnumeration* U_EXPORT2 +uregion_getContainedRegionsOfType(const URegion* uregion, URegionType type, UErrorCode *status); + +/** + * Returns true if the specified uregion contains the specified otherRegion anywhere in the region + * hierarchy. + * @stable ICU 52 + */ +U_STABLE UBool U_EXPORT2 +uregion_contains(const URegion* uregion, const URegion* otherRegion); + +/** + * If the specified uregion is deprecated, returns an enumeration over the canonical codes of the + * regions that are the preferred replacement regions for the specified uregion. If the specified + * uregion is not deprecated, returns NULL. For example, calling this method with uregion + * "SU" (Soviet Union) returns a list of the regions containing "RU" (Russia), "AM" (Armenia), + * "AZ" (Azerbaijan), etc... The enumeration must be closed with with uenum_close(). + * @stable ICU 52 + */ +U_STABLE UEnumeration* U_EXPORT2 +uregion_getPreferredValues(const URegion* uregion, UErrorCode *status); + +/** + * Returns the specified uregion's canonical code. + * @stable ICU 52 + */ +U_STABLE const char* U_EXPORT2 +uregion_getRegionCode(const URegion* uregion); + +/** + * Returns the specified uregion's numeric code, or a negative value if there is no numeric code + * for the specified uregion. + * @stable ICU 52 + */ +U_STABLE int32_t U_EXPORT2 +uregion_getNumericCode(const URegion* uregion); + +/** + * Returns the URegionType of the specified uregion. + * @stable ICU 52 + */ +U_STABLE URegionType U_EXPORT2 +uregion_getType(const URegion* uregion); + + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + +// ureldatefmt.h +/* +***************************************************************************************** +* Copyright (C) 2016, International Business Machines +* Corporation and others. All Rights Reserved. +***************************************************************************************** +*/ + +#ifndef URELDATEFMT_H +#define URELDATEFMT_H + + +#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION + + +/** + * \file + * \brief C API: URelativeDateTimeFormatter, relative date formatting of unit + numeric offset. + * + * Provides simple formatting of relative dates, in two ways + *

    + *
  • relative dates with a quantity e.g "in 5 days"
  • + *
  • relative dates without a quantity e.g "next Tuesday"
  • + *
+ *

+ * This does not provide compound formatting for multiple units, + * other than the ability to combine a time string with a relative date, + * as in "next Tuesday at 3:45 PM". It also does not provide support + * for determining which unit to use, such as deciding between "in 7 days" + * and "in 1 week". + * + * @draft ICU 57 + */ + +/** + * The formatting style + * @stable ICU 54 + */ +typedef enum UDateRelativeDateTimeFormatterStyle { + /** + * Everything spelled out. + * @stable ICU 54 + */ + UDAT_STYLE_LONG, + + /** + * Abbreviations used when possible. + * @stable ICU 54 + */ + UDAT_STYLE_SHORT, + + /** + * Use the shortest possible form. + * @stable ICU 54 + */ + UDAT_STYLE_NARROW, + + /** + * The number of styles. + * @stable ICU 54 + */ + UDAT_STYLE_COUNT +} UDateRelativeDateTimeFormatterStyle; + + + +#endif /* !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION */ + +#endif + +// reldatefmt.h +/* +***************************************************************************** +* Copyright (C) 2014-2016, International Business Machines Corporation and +* others. +* All Rights Reserved. +***************************************************************************** +* +* File RELDATEFMT.H +***************************************************************************** +*/ + +#ifndef __RELDATEFMT_H +#define __RELDATEFMT_H + + +/** + * \file + * \brief C++ API: Formats relative dates such as "1 day ago" or "tomorrow" + */ + +#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION + +/** + * Represents the unit for formatting a relative date. e.g "in 5 days" + * or "in 3 months" + * @stable ICU 53 + */ +typedef enum UDateRelativeUnit { + + /** + * Seconds + * @stable ICU 53 + */ + UDAT_RELATIVE_SECONDS, + + /** + * Minutes + * @stable ICU 53 + */ + UDAT_RELATIVE_MINUTES, + + /** + * Hours + * @stable ICU 53 + */ + UDAT_RELATIVE_HOURS, + + /** + * Days + * @stable ICU 53 + */ + UDAT_RELATIVE_DAYS, + + /** + * Weeks + * @stable ICU 53 + */ + UDAT_RELATIVE_WEEKS, + + /** + * Months + * @stable ICU 53 + */ + UDAT_RELATIVE_MONTHS, + + /** + * Years + * @stable ICU 53 + */ + UDAT_RELATIVE_YEARS, + + /** + * Count of items in this enum. + * @stable ICU 53 + */ + UDAT_RELATIVE_UNIT_COUNT +} UDateRelativeUnit; + +/** + * Represents an absolute unit. + * @stable ICU 53 + */ +typedef enum UDateAbsoluteUnit { + + // Days of week have to remain together and in order from Sunday to + // Saturday. + /** + * Sunday + * @stable ICU 53 + */ + UDAT_ABSOLUTE_SUNDAY, + + /** + * Monday + * @stable ICU 53 + */ + UDAT_ABSOLUTE_MONDAY, + + /** + * Tuesday + * @stable ICU 53 + */ + UDAT_ABSOLUTE_TUESDAY, + + /** + * Wednesday + * @stable ICU 53 + */ + UDAT_ABSOLUTE_WEDNESDAY, + + /** + * Thursday + * @stable ICU 53 + */ + UDAT_ABSOLUTE_THURSDAY, + + /** + * Friday + * @stable ICU 53 + */ + UDAT_ABSOLUTE_FRIDAY, + + /** + * Saturday + * @stable ICU 53 + */ + UDAT_ABSOLUTE_SATURDAY, + + /** + * Day + * @stable ICU 53 + */ + UDAT_ABSOLUTE_DAY, + + /** + * Week + * @stable ICU 53 + */ + UDAT_ABSOLUTE_WEEK, + + /** + * Month + * @stable ICU 53 + */ + UDAT_ABSOLUTE_MONTH, + + /** + * Year + * @stable ICU 53 + */ + UDAT_ABSOLUTE_YEAR, + + /** + * Now + * @stable ICU 53 + */ + UDAT_ABSOLUTE_NOW, + + /** + * Count of items in this enum. + * @stable ICU 53 + */ + UDAT_ABSOLUTE_UNIT_COUNT +} UDateAbsoluteUnit; + +/** + * Represents a direction for an absolute unit e.g "Next Tuesday" + * or "Last Tuesday" + * @stable ICU 53 + */ +typedef enum UDateDirection { + + /** + * Two before. Not fully supported in every locale. + * @stable ICU 53 + */ + UDAT_DIRECTION_LAST_2, + + /** + * Last + * @stable ICU 53 + */ + UDAT_DIRECTION_LAST, + + /** + * This + * @stable ICU 53 + */ + UDAT_DIRECTION_THIS, + + /** + * Next + * @stable ICU 53 + */ + UDAT_DIRECTION_NEXT, + + /** + * Two after. Not fully supported in every locale. + * @stable ICU 53 + */ + UDAT_DIRECTION_NEXT_2, + + /** + * Plain, which means the absence of a qualifier. + * @stable ICU 53 + */ + UDAT_DIRECTION_PLAIN, + + /** + * Count of items in this enum. + * @stable ICU 53 + */ + UDAT_DIRECTION_COUNT +} UDateDirection; + + + +#endif /* !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION*/ +#endif + +// usearch.h +/* +********************************************************************** +* Copyright (C) 2001-2011,2014 IBM and others. All rights reserved. +********************************************************************** +* Date Name Description +* 06/28/2001 synwee Creation. +********************************************************************** +*/ +#ifndef USEARCH_H +#define USEARCH_H + + +#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION + + +/** + * \file + * \brief C API: StringSearch + * + * C Apis for an engine that provides language-sensitive text searching based + * on the comparison rules defined in a UCollator data struct, + * see ucol.h. This ensures that language eccentricity can be + * handled, e.g. for the German collator, characters ß and SS will be matched + * if case is chosen to be ignored. + * See the + * "ICU Collation Design Document" for more information. + *

+ * The implementation may use a linear search or a modified form of the Boyer-Moore + * search; for more information on the latter see + * + * "Efficient Text Searching in Java", published in Java Report + * in February, 1999. + *

+ * There are 2 match options for selection:
+ * Let S' be the sub-string of a text string S between the offsets start and + * end . + *
+ * A pattern string P matches a text string S at the offsets + * if + *

 
+ * option 1. Some canonical equivalent of P matches some canonical equivalent 
+ *           of S'
+ * option 2. P matches S' and if P starts or ends with a combining mark, 
+ *           there exists no non-ignorable combining mark before or after S' 
+ *           in S respectively. 
+ * 
+ * Option 2. will be the default. + *

+ * This search has APIs similar to that of other text iteration mechanisms + * such as the break iterators in ubrk.h. Using these + * APIs, it is easy to scan through text looking for all occurances of + * a given pattern. This search iterator allows changing of direction by + * calling a reset followed by a next or previous. + * Though a direction change can occur without calling reset first, + * this operation comes with some speed penalty. + * Generally, match results in the forward direction will match the result + * matches in the backwards direction in the reverse order + *

+ * usearch.h provides APIs to specify the starting position + * within the text string to be searched, e.g. usearch_setOffset, + * usearch_preceding and usearch_following. Since the + * starting position will be set as it is specified, please take note that + * there are some dangerous positions which the search may render incorrect + * results: + *

    + *
  • The midst of a substring that requires normalization. + *
  • If the following match is to be found, the position should not be the + * second character which requires to be swapped with the preceding + * character. Vice versa, if the preceding match is to be found, + * position to search from should not be the first character which + * requires to be swapped with the next character. E.g certain Thai and + * Lao characters require swapping. + *
  • If a following pattern match is to be found, any position within a + * contracting sequence except the first will fail. Vice versa if a + * preceding pattern match is to be found, a invalid starting point + * would be any character within a contracting sequence except the last. + *
+ *

+ * A breakiterator can be used if only matches at logical breaks are desired. + * Using a breakiterator will only give you results that exactly matches the + * boundaries given by the breakiterator. For instance the pattern "e" will + * not be found in the string "\u00e9" if a character break iterator is used. + *

+ * Options are provided to handle overlapping matches. + * E.g. In English, overlapping matches produces the result 0 and 2 + * for the pattern "abab" in the text "ababab", where else mutually + * exclusive matches only produce the result of 0. + *

+ * Options are also provided to implement "asymmetric search" as described in + * + * UTS #10 Unicode Collation Algorithm, specifically the USearchAttribute + * USEARCH_ELEMENT_COMPARISON and its values. + *

+ * Though collator attributes will be taken into consideration while + * performing matches, there are no APIs here for setting and getting the + * attributes. These attributes can be set by getting the collator + * from usearch_getCollator and using the APIs in ucol.h. + * Lastly to update String Search to the new collator attributes, + * usearch_reset() has to be called. + *

+ * Restriction:
+ * Currently there are no composite characters that consists of a + * character with combining class > 0 before a character with combining + * class == 0. However, if such a character exists in the future, the + * search mechanism does not guarantee the results for option 1. + * + *

+ * Example of use:
+ *


+ * char *tgtstr = "The quick brown fox jumped over the lazy fox";
+ * char *patstr = "fox";
+ * UChar target[64];
+ * UChar pattern[16];
+ * UErrorCode status = U_ZERO_ERROR;
+ * u_uastrcpy(target, tgtstr);
+ * u_uastrcpy(pattern, patstr);
+ *
+ * UStringSearch *search = usearch_open(pattern, -1, target, -1, "en_US", 
+ *                                  NULL, &status);
+ * if (U_SUCCESS(status)) {
+ *     for (int pos = usearch_first(search, &status); 
+ *          pos != USEARCH_DONE; 
+ *          pos = usearch_next(search, &status))
+ *     {
+ *         printf("Found match at %d pos, length is %d\n", pos, 
+ *                                        usearch_getMatchLength(search));
+ *     }
+ * }
+ *
+ * usearch_close(search);
+ * 
+ * @stable ICU 2.4 + */ + +/** +* DONE is returned by previous() and next() after all valid matches have +* been returned, and by first() and last() if there are no matches at all. +* @stable ICU 2.4 +*/ +#define USEARCH_DONE -1 + +/** +* Data structure for searching +* @stable ICU 2.4 +*/ +struct UStringSearch; +/** +* Data structure for searching +* @stable ICU 2.4 +*/ +typedef struct UStringSearch UStringSearch; + +/** +* @stable ICU 2.4 +*/ +typedef enum { + /** + * Option for overlapping matches + * @stable ICU 2.4 + */ + USEARCH_OVERLAP = 0, + /** + * Option to control how collation elements are compared. + * The default value will be USEARCH_STANDARD_ELEMENT_COMPARISON. + * @stable ICU 4.4 + */ + USEARCH_ELEMENT_COMPARISON = 2, + + /** + * Count of attribute types + * @stable ICU 2.4 + */ + USEARCH_ATTRIBUTE_COUNT = 3 +} USearchAttribute; + +/** +* @stable ICU 2.4 +*/ +typedef enum { + /** + * Default value for any USearchAttribute + * @stable ICU 2.4 + */ + USEARCH_DEFAULT = -1, + /** + * Value for USEARCH_OVERLAP and USEARCH_CANONICAL_MATCH + * @stable ICU 2.4 + */ + USEARCH_OFF, + /** + * Value for USEARCH_OVERLAP and USEARCH_CANONICAL_MATCH + * @stable ICU 2.4 + */ + USEARCH_ON, + /** + * Value (default) for USEARCH_ELEMENT_COMPARISON; + * standard collation element comparison at the specified collator + * strength. + * @stable ICU 4.4 + */ + USEARCH_STANDARD_ELEMENT_COMPARISON, + /** + * Value for USEARCH_ELEMENT_COMPARISON; + * collation element comparison is modified to effectively provide + * behavior between the specified strength and strength - 1. Collation + * elements in the pattern that have the base weight for the specified + * strength are treated as "wildcards" that match an element with any + * other weight at that collation level in the searched text. For + * example, with a secondary-strength English collator, a plain 'e' in + * the pattern will match a plain e or an e with any diacritic in the + * searched text, but an e with diacritic in the pattern will only + * match an e with the same diacritic in the searched text. + * + * This supports "asymmetric search" as described in + * + * UTS #10 Unicode Collation Algorithm. + * + * @stable ICU 4.4 + */ + USEARCH_PATTERN_BASE_WEIGHT_IS_WILDCARD, + /** + * Value for USEARCH_ELEMENT_COMPARISON. + * collation element comparison is modified to effectively provide + * behavior between the specified strength and strength - 1. Collation + * elements in either the pattern or the searched text that have the + * base weight for the specified strength are treated as "wildcards" + * that match an element with any other weight at that collation level. + * For example, with a secondary-strength English collator, a plain 'e' + * in the pattern will match a plain e or an e with any diacritic in the + * searched text, but an e with diacritic in the pattern will only + * match an e with the same diacritic or a plain e in the searched text. + * + * This option is similar to "asymmetric search" as described in + * + * UTS #10 Unicode Collation Algorithmusearch_close. +* @param pattern for matching +* @param patternlength length of the pattern, -1 for null-termination +* @param text text string +* @param textlength length of the text string, -1 for null-termination +* @param locale name of locale for the rules to be used +* @param breakiter A BreakIterator that will be used to restrict the points +* at which matches are detected. If a match is found, but +* the match's start or end index is not a boundary as +* determined by the BreakIterator, the match will +* be rejected and another will be searched for. +* If this parameter is NULL, no break detection is +* attempted. +* @param status for errors if it occurs. If pattern or text is NULL, or if +* patternlength or textlength is 0 then an +* U_ILLEGAL_ARGUMENT_ERROR is returned. +* @return search iterator data structure, or NULL if there is an error. +* @stable ICU 2.4 +*/ +U_STABLE UStringSearch * U_EXPORT2 usearch_open(const UChar *pattern, + int32_t patternlength, + const UChar *text, + int32_t textlength, + const char *locale, + UBreakIterator *breakiter, + UErrorCode *status); + +/** +* Creating a search iterator data struct using the argument collator language +* rule set. Note, user retains the ownership of this collator, thus the +* responsibility of deletion lies with the user. +* NOTE: string search cannot be instantiated from a collator that has +* collate digits as numbers (CODAN) turned on. +* @param pattern for matching +* @param patternlength length of the pattern, -1 for null-termination +* @param text text string +* @param textlength length of the text string, -1 for null-termination +* @param collator used for the language rules +* @param breakiter A BreakIterator that will be used to restrict the points +* at which matches are detected. If a match is found, but +* the match's start or end index is not a boundary as +* determined by the BreakIterator, the match will +* be rejected and another will be searched for. +* If this parameter is NULL, no break detection is +* attempted. +* @param status for errors if it occurs. If collator, pattern or text is NULL, +* or if patternlength or textlength is 0 then an +* U_ILLEGAL_ARGUMENT_ERROR is returned. +* @return search iterator data structure, or NULL if there is an error. +* @stable ICU 2.4 +*/ +U_STABLE UStringSearch * U_EXPORT2 usearch_openFromCollator( + const UChar *pattern, + int32_t patternlength, + const UChar *text, + int32_t textlength, + const UCollator *collator, + UBreakIterator *breakiter, + UErrorCode *status); + +/** +* Destroying and cleaning up the search iterator data struct. +* If a collator is created in usearch_open, it will be destroyed here. +* @param searchiter data struct to clean up +* @stable ICU 2.4 +*/ +U_STABLE void U_EXPORT2 usearch_close(UStringSearch *searchiter); + + +/* get and set methods -------------------------------------------------- */ + +/** +* Sets the current position in the text string which the next search will +* start from. Clears previous states. +* This method takes the argument index and sets the position in the text +* string accordingly without checking if the index is pointing to a +* valid starting point to begin searching. +* Search positions that may render incorrect results are highlighted in the +* header comments +* @param strsrch search iterator data struct +* @param position position to start next search from. If position is less +* than or greater than the text range for searching, +* an U_INDEX_OUTOFBOUNDS_ERROR will be returned +* @param status error status if any. +* @stable ICU 2.4 +*/ +U_STABLE void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch, + int32_t position, + UErrorCode *status); + +/** +* Return the current index in the string text being searched. +* If the iteration has gone past the end of the text (or past the beginning +* for a backwards search), USEARCH_DONE is returned. +* @param strsrch search iterator data struct +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_STABLE int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch); + +/** +* Sets the text searching attributes located in the enum USearchAttribute +* with values from the enum USearchAttributeValue. +* USEARCH_DEFAULT can be used for all attributes for resetting. +* @param strsrch search iterator data struct +* @param attribute text attribute to be set +* @param value text attribute value +* @param status for errors if it occurs +* @see #usearch_getAttribute +* @stable ICU 2.4 +*/ +U_STABLE void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch, + USearchAttribute attribute, + USearchAttributeValue value, + UErrorCode *status); + +/** +* Gets the text searching attributes. +* @param strsrch search iterator data struct +* @param attribute text attribute to be retrieve +* @return text attribute value +* @see #usearch_setAttribute +* @stable ICU 2.4 +*/ +U_STABLE USearchAttributeValue U_EXPORT2 usearch_getAttribute( + const UStringSearch *strsrch, + USearchAttribute attribute); + +/** +* Returns the index to the match in the text string that was searched. +* This call returns a valid result only after a successful call to +* usearch_first, usearch_next, usearch_previous, +* or usearch_last. +* Just after construction, or after a searching method returns +* USEARCH_DONE, this method will return USEARCH_DONE. +*

+* Use usearch_getMatchedLength to get the matched string length. +* @param strsrch search iterator data struct +* @return index to a substring within the text string that is being +* searched. +* @see #usearch_first +* @see #usearch_next +* @see #usearch_previous +* @see #usearch_last +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_STABLE int32_t U_EXPORT2 usearch_getMatchedStart( + const UStringSearch *strsrch); + +/** +* Returns the length of text in the string which matches the search pattern. +* This call returns a valid result only after a successful call to +* usearch_first, usearch_next, usearch_previous, +* or usearch_last. +* Just after construction, or after a searching method returns +* USEARCH_DONE, this method will return 0. +* @param strsrch search iterator data struct +* @return The length of the match in the string text, or 0 if there is no +* match currently. +* @see #usearch_first +* @see #usearch_next +* @see #usearch_previous +* @see #usearch_last +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_STABLE int32_t U_EXPORT2 usearch_getMatchedLength( + const UStringSearch *strsrch); + +/** +* Returns the text that was matched by the most recent call to +* usearch_first, usearch_next, usearch_previous, +* or usearch_last. +* If the iterator is not pointing at a valid match (e.g. just after +* construction or after USEARCH_DONE has been returned, returns +* an empty string. If result is not large enough to store the matched text, +* result will be filled with the partial text and an U_BUFFER_OVERFLOW_ERROR +* will be returned in status. result will be null-terminated whenever +* possible. If the buffer fits the matched text exactly, a null-termination +* is not possible, then a U_STRING_NOT_TERMINATED_ERROR set in status. +* Pre-flighting can be either done with length = 0 or the API +* usearch_getMatchLength. +* @param strsrch search iterator data struct +* @param result UChar buffer to store the matched string +* @param resultCapacity length of the result buffer +* @param status error returned if result is not large enough +* @return exact length of the matched text, not counting the null-termination +* @see #usearch_first +* @see #usearch_next +* @see #usearch_previous +* @see #usearch_last +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_STABLE int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch, + UChar *result, + int32_t resultCapacity, + UErrorCode *status); + +#if !UCONFIG_NO_BREAK_ITERATION + +/** +* Set the BreakIterator that will be used to restrict the points at which +* matches are detected. +* @param strsrch search iterator data struct +* @param breakiter A BreakIterator that will be used to restrict the points +* at which matches are detected. If a match is found, but +* the match's start or end index is not a boundary as +* determined by the BreakIterator, the match will +* be rejected and another will be searched for. +* If this parameter is NULL, no break detection is +* attempted. +* @param status for errors if it occurs +* @see #usearch_getBreakIterator +* @stable ICU 2.4 +*/ +U_STABLE void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch, + UBreakIterator *breakiter, + UErrorCode *status); + +/** +* Returns the BreakIterator that is used to restrict the points at which +* matches are detected. This will be the same object that was passed to the +* constructor or to usearch_setBreakIterator. Note that +* NULL +* is a legal value; it means that break detection should not be attempted. +* @param strsrch search iterator data struct +* @return break iterator used +* @see #usearch_setBreakIterator +* @stable ICU 2.4 +*/ +U_STABLE const UBreakIterator * U_EXPORT2 usearch_getBreakIterator( + const UStringSearch *strsrch); + +#endif + +/** +* Set the string text to be searched. Text iteration will hence begin at the +* start of the text string. This method is useful if you want to re-use an +* iterator to search for the same pattern within a different body of text. +* @param strsrch search iterator data struct +* @param text new string to look for match +* @param textlength length of the new string, -1 for null-termination +* @param status for errors if it occurs. If text is NULL, or textlength is 0 +* then an U_ILLEGAL_ARGUMENT_ERROR is returned with no change +* done to strsrch. +* @see #usearch_getText +* @stable ICU 2.4 +*/ +U_STABLE void U_EXPORT2 usearch_setText( UStringSearch *strsrch, + const UChar *text, + int32_t textlength, + UErrorCode *status); + +/** +* Return the string text to be searched. +* @param strsrch search iterator data struct +* @param length returned string text length +* @return string text +* @see #usearch_setText +* @stable ICU 2.4 +*/ +U_STABLE const UChar * U_EXPORT2 usearch_getText(const UStringSearch *strsrch, + int32_t *length); + +/** +* Gets the collator used for the language rules. +*

+* Deleting the returned UCollator before calling +* usearch_close would cause the string search to fail. +* usearch_close will delete the collator if this search owns it. +* @param strsrch search iterator data struct +* @return collator +* @stable ICU 2.4 +*/ +U_STABLE UCollator * U_EXPORT2 usearch_getCollator( + const UStringSearch *strsrch); + +/** +* Sets the collator used for the language rules. User retains the ownership +* of this collator, thus the responsibility of deletion lies with the user. +* This method causes internal data such as Boyer-Moore shift tables to +* be recalculated, but the iterator's position is unchanged. +* @param strsrch search iterator data struct +* @param collator to be used +* @param status for errors if it occurs +* @stable ICU 2.4 +*/ +U_STABLE void U_EXPORT2 usearch_setCollator( UStringSearch *strsrch, + const UCollator *collator, + UErrorCode *status); + +/** +* Sets the pattern used for matching. +* Internal data like the Boyer Moore table will be recalculated, but the +* iterator's position is unchanged. +* @param strsrch search iterator data struct +* @param pattern string +* @param patternlength pattern length, -1 for null-terminated string +* @param status for errors if it occurs. If text is NULL, or textlength is 0 +* then an U_ILLEGAL_ARGUMENT_ERROR is returned with no change +* done to strsrch. +* @stable ICU 2.4 +*/ +U_STABLE void U_EXPORT2 usearch_setPattern( UStringSearch *strsrch, + const UChar *pattern, + int32_t patternlength, + UErrorCode *status); + +/** +* Gets the search pattern +* @param strsrch search iterator data struct +* @param length return length of the pattern, -1 indicates that the pattern +* is null-terminated +* @return pattern string +* @stable ICU 2.4 +*/ +U_STABLE const UChar * U_EXPORT2 usearch_getPattern( + const UStringSearch *strsrch, + int32_t *length); + +/* methods ------------------------------------------------------------- */ + +/** +* Returns the first index at which the string text matches the search +* pattern. +* The iterator is adjusted so that its current index (as returned by +* usearch_getOffset) is the match position if one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE. +* @param strsrch search iterator data struct +* @param status for errors if it occurs +* @return The character index of the first match, or +* USEARCH_DONE if there are no matches. +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_STABLE int32_t U_EXPORT2 usearch_first(UStringSearch *strsrch, + UErrorCode *status); + +/** +* Returns the first index equal or greater than position at which +* the string text +* matches the search pattern. The iterator is adjusted so that its current +* index (as returned by usearch_getOffset) is the match position if +* one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE +*

+* Search positions that may render incorrect results are highlighted in the +* header comments. If position is less than or greater than the text range +* for searching, an U_INDEX_OUTOFBOUNDS_ERROR will be returned +* @param strsrch search iterator data struct +* @param position to start the search at +* @param status for errors if it occurs +* @return The character index of the first match following pos, +* or USEARCH_DONE if there are no matches. +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_STABLE int32_t U_EXPORT2 usearch_following(UStringSearch *strsrch, + int32_t position, + UErrorCode *status); + +/** +* Returns the last index in the target text at which it matches the search +* pattern. The iterator is adjusted so that its current +* index (as returned by usearch_getOffset) is the match position if +* one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE. +* @param strsrch search iterator data struct +* @param status for errors if it occurs +* @return The index of the first match, or USEARCH_DONE if there +* are no matches. +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_STABLE int32_t U_EXPORT2 usearch_last(UStringSearch *strsrch, + UErrorCode *status); + +/** +* Returns the first index less than position at which the string text +* matches the search pattern. The iterator is adjusted so that its current +* index (as returned by usearch_getOffset) is the match position if +* one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE +*

+* Search positions that may render incorrect results are highlighted in the +* header comments. If position is less than or greater than the text range +* for searching, an U_INDEX_OUTOFBOUNDS_ERROR will be returned. +*

+* When USEARCH_OVERLAP option is off, the last index of the +* result match is always less than position. +* When USERARCH_OVERLAP is on, the result match may span across +* position. +* @param strsrch search iterator data struct +* @param position index position the search is to begin at +* @param status for errors if it occurs +* @return The character index of the first match preceding pos, +* or USEARCH_DONE if there are no matches. +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_STABLE int32_t U_EXPORT2 usearch_preceding(UStringSearch *strsrch, + int32_t position, + UErrorCode *status); + +/** +* Returns the index of the next point at which the string text matches the +* search pattern, starting from the current position. +* The iterator is adjusted so that its current +* index (as returned by usearch_getOffset) is the match position if +* one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE +* @param strsrch search iterator data struct +* @param status for errors if it occurs +* @return The index of the next match after the current position, or +* USEARCH_DONE if there are no more matches. +* @see #usearch_first +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_STABLE int32_t U_EXPORT2 usearch_next(UStringSearch *strsrch, + UErrorCode *status); + +/** +* Returns the index of the previous point at which the string text matches +* the search pattern, starting at the current position. +* The iterator is adjusted so that its current +* index (as returned by usearch_getOffset) is the match position if +* one was found. +* If a match is not found, USEARCH_DONE will be returned and +* the iterator will be adjusted to the index USEARCH_DONE +* @param strsrch search iterator data struct +* @param status for errors if it occurs +* @return The index of the previous match before the current position, +* or USEARCH_DONE if there are no more matches. +* @see #usearch_last +* @see #usearch_getOffset +* @see #USEARCH_DONE +* @stable ICU 2.4 +*/ +U_STABLE int32_t U_EXPORT2 usearch_previous(UStringSearch *strsrch, + UErrorCode *status); + +/** +* Reset the iteration. +* Search will begin at the start of the text string if a forward iteration +* is initiated before a backwards iteration. Otherwise if a backwards +* iteration is initiated before a forwards iteration, the search will begin +* at the end of the text string. +* @param strsrch search iterator data struct +* @see #usearch_first +* @stable ICU 2.4 +*/ +U_STABLE void U_EXPORT2 usearch_reset(UStringSearch *strsrch); + + +#endif /* #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION */ + +#endif + +// search.h +/* +********************************************************************** +* Copyright (C) 2001-2011 IBM and others. All rights reserved. +********************************************************************** +* Date Name Description +* 03/22/2000 helena Creation. +********************************************************************** +*/ + +#ifndef SEARCH_H +#define SEARCH_H + + +/** + * \file + * \brief C++ API: SearchIterator object. + */ + +#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION + + +/** +* @stable ICU 2.0 +*/ +struct USearch; +/** +* @stable ICU 2.0 +*/ +typedef struct USearch USearch; + + +#endif /* #if !UCONFIG_NO_COLLATION */ + +#endif + + +// uspoof.h +/* +*************************************************************************** +* Copyright (C) 2008-2015, International Business Machines Corporation +* and others. All Rights Reserved. +*************************************************************************** +* file name: uspoof.h +* encoding: US-ASCII +* tab size: 8 (not used) +* indentation:4 +* +* created on: 2008Feb13 +* created by: Andy Heninger +* +* Unicode Spoof Detection +*/ + +#ifndef USPOOF_H +#define USPOOF_H + + +#if !UCONFIG_NO_NORMALIZATION + + + + +/** + * \file + * \brief Unicode Security and Spoofing Detection, C API. + * + * These functions are intended to check strings, typically + * identifiers of some type, such as URLs, for the presence of + * characters that are likely to be visually confusing - + * for cases where the displayed form of an identifier may + * not be what it appears to be. + * + * Unicode Technical Report #36, http://unicode.org/reports/tr36, and + * Unicode Technical Standard #39, http://unicode.org/reports/tr39 + * "Unicode security considerations", give more background on + * security an spoofing issues with Unicode identifiers. + * The tests and checks provided by this module implement the recommendations + * from those Unicode documents. + * + * The tests available on identifiers fall into two general categories: + * -# Single identifier tests. Check whether an identifier is + * potentially confusable with any other string, or is suspicious + * for other reasons. + * -# Two identifier tests. Check whether two specific identifiers are confusable. + * This does not consider whether either of strings is potentially + * confusable with any string other than the exact one specified. + * + * The steps to perform confusability testing are + * -# Open a USpoofChecker. + * -# Configure the USPoofChecker for the desired set of tests. The tests that will + * be performed are specified by a set of USpoofChecks flags. + * -# Perform the checks using the pre-configured USpoofChecker. The results indicate + * which (if any) of the selected tests have identified possible problems with the identifier. + * Results are reported as a set of USpoofChecks flags; this mirrors the form in which + * the set of tests to perform was originally specified to the USpoofChecker. + * + * A USpoofChecker may be used repeatedly to perform checks on any number of identifiers. + * + * Thread Safety: The test functions for checking a single identifier, or for testing + * whether two identifiers are possible confusable, are thread safe. + * They may called concurrently, from multiple threads, using the same USpoofChecker instance. + * + * More generally, the standard ICU thread safety rules apply: functions that take a + * const USpoofChecker parameter are thread safe. Those that take a non-const + * USpoofChecier are not thread safe. + * + * + * Descriptions of the available checks. + * + * When testing whether pairs of identifiers are confusable, with the uspoof_areConfusable() + * family of functions, the relevant tests are + * + * -# USPOOF_SINGLE_SCRIPT_CONFUSABLE: All of the characters from the two identifiers are + * from a single script, and the two identifiers are visually confusable. + * -# USPOOF_MIXED_SCRIPT_CONFUSABLE: At least one of the identifiers contains characters + * from more than one script, and the two identifiers are visually confusable. + * -# USPOOF_WHOLE_SCRIPT_CONFUSABLE: Each of the two identifiers is of a single script, but + * the two identifiers are from different scripts, and they are visually confusable. + * + * The safest approach is to enable all three of these checks as a group. + * + * USPOOF_ANY_CASE is a modifier for the above tests. If the identifiers being checked can + * be of mixed case and are used in a case-sensitive manner, this option should be specified. + * + * If the identifiers being checked are used in a case-insensitive manner, and if they are + * displayed to users in lower-case form only, the USPOOF_ANY_CASE option should not be + * specified. Confusabality issues involving upper case letters will not be reported. + * + * When performing tests on a single identifier, with the uspoof_check() family of functions, + * the relevant tests are: + * + * -# USPOOF_MIXED_SCRIPT_CONFUSABLE: the identifier contains characters from multiple + * scripts, and there exists an identifier of a single script that is visually confusable. + * -# USPOOF_WHOLE_SCRIPT_CONFUSABLE: the identifier consists of characters from a single + * script, and there exists a visually confusable identifier. + * The visually confusable identifier also consists of characters from a single script. + * but not the same script as the identifier being checked. + * -# USPOOF_ANY_CASE: modifies the mixed script and whole script confusables tests. If + * specified, the checks will consider confusable characters of any case. If this flag is not + * set, the test is performed assuming case folded identifiers. + * -# USPOOF_SINGLE_SCRIPT: check that the identifier contains only characters from a + * single script. (Characters from the 'common' and 'inherited' scripts are ignored.) + * This is not a test for confusable identifiers + * -# USPOOF_INVISIBLE: check an identifier for the presence of invisible characters, + * such as zero-width spaces, or character sequences that are + * likely not to display, such as multiple occurrences of the same + * non-spacing mark. This check does not test the input string as a whole + * for conformance to any particular syntax for identifiers. + * -# USPOOF_CHAR_LIMIT: check that an identifier contains only characters from a specified set + * of acceptable characters. See uspoof_setAllowedChars() and + * uspoof_setAllowedLocales(). + * + * Note on Scripts: + * Characters from the Unicode Scripts "Common" and "Inherited" are ignored when considering + * the script of an identifier. Common characters include digits and symbols that + * are normally used with text from more than one script. + * + * Identifier Skeletons: A skeleton is a transformation of an identifier, such that + * all identifiers that are confusable with each other have the same skeleton. + * Using skeletons, it is possible to build a dictionary data structure for + * a set of identifiers, and then quickly test whether a new identifier is + * confusable with an identifier already in the set. The uspoof_getSkeleton() + * family of functions will produce the skeleton from an identifier. + * + * Note that skeletons are not guaranteed to be stable between versions + * of Unicode or ICU, so an applications should not rely on creating a permanent, + * or difficult to update, database of skeletons. Instabilities result from + * identifying new pairs or sequences of characters that are visually + * confusable, and thus must be mapped to the same skeleton character(s). + * + * Skeletons are computed using the algorithm and data describe in Unicode UAX 39. + * The latest proposed update, UAX 39 Version 8 draft 1, says "the tables SL, SA, and ML + * were still problematic, and discouraged from use in [Uniocde] 7.0. + * They were thus removed from version 8.0" + * + * In light of this, the default mapping data included with ICU 55 uses the + * Unicode 7 MA (Multi script Any case) table data for the other type options + * (Single Script, Any Case), (Single Script, Lower Case) and (Multi Script, Lower Case). + */ + +struct USpoofChecker; +typedef struct USpoofChecker USpoofChecker; /**< typedef for C of USpoofChecker */ + +/** + * Enum for the kinds of checks that USpoofChecker can perform. + * These enum values are used both to select the set of checks that + * will be performed, and to report results from the check function. + * + * @stable ICU 4.2 + */ +typedef enum USpoofChecks { + /** Single script confusable test. + * When testing whether two identifiers are confusable, report that they are if + * both are from the same script and they are visually confusable. + * Note: this test is not applicable to a check of a single identifier. + */ + USPOOF_SINGLE_SCRIPT_CONFUSABLE = 1, + + /** Mixed script confusable test. + * When checking a single identifier, report a problem if + * the identifier contains multiple scripts, and + * is confusable with some other identifier in a single script + * When testing whether two identifiers are confusable, report that they are if + * the two IDs are visually confusable, + * and at least one contains characters from more than one script. + */ + USPOOF_MIXED_SCRIPT_CONFUSABLE = 2, + + /** Whole script confusable test. + * When checking a single identifier, report a problem if + * The identifier is of a single script, and + * there exists a confusable identifier in another script. + * When testing whether two identifiers are confusable, report that they are if + * each is of a single script, + * the scripts of the two identifiers are different, and + * the identifiers are visually confusable. + */ + USPOOF_WHOLE_SCRIPT_CONFUSABLE = 4, + + /** Any Case Modifier for confusable identifier tests. + If specified, consider all characters, of any case, when looking for confusables. + If USPOOF_ANY_CASE is not specified, identifiers being checked are assumed to have been + case folded. Upper case confusable characters will not be checked. + Selects between Lower Case Confusable and + Any Case Confusable. */ + USPOOF_ANY_CASE = 8, + + /** + * Check that an identifier is no looser than the specified RestrictionLevel. + * The default if uspoof_setRestrctionLevel() is not called is HIGHLY_RESTRICTIVE. + * + * If USPOOF_AUX_INFO is enabled the actual restriction level of the + * identifier being tested will also be returned by uspoof_check(). + * + * @see URestrictionLevel + * @see uspoof_setRestrictionLevel + * @see USPOOF_AUX_INFO + * + * @stable ICU 51 + */ + USPOOF_RESTRICTION_LEVEL = 16, + + + /** Check an identifier for the presence of invisible characters, + * such as zero-width spaces, or character sequences that are + * likely not to display, such as multiple occurrences of the same + * non-spacing mark. This check does not test the input string as a whole + * for conformance to any particular syntax for identifiers. + */ + USPOOF_INVISIBLE = 32, + + /** Check that an identifier contains only characters from a specified set + * of acceptable characters. See uspoof_setAllowedChars() and + * uspoof_setAllowedLocales(). + */ + USPOOF_CHAR_LIMIT = 64, + + /** + * Check that an identifier does not include decimal digits from + * more than one numbering system. + * + * @stable ICU 51 + */ + USPOOF_MIXED_NUMBERS = 128, + + /** + * Enable all spoof checks. + * + * @stable ICU 4.6 + */ + USPOOF_ALL_CHECKS = 0xFFFF, + + /** + * Enable the return of auxillary (non-error) information in the + * upper bits of the check results value. + * + * If this "check" is not enabled, the results of uspoof_check() will be zero when an + * identifier passes all of the enabled checks. + * + * If this "check" is enabled, (uspoof_check() & USPOOF_ALL_CHECKS) will be zero + * when an identifier passes all checks. + * + * @stable ICU 51 + */ + USPOOF_AUX_INFO = 0x40000000 + + } USpoofChecks; + + + /** + * Constants from UAX #39 for use in setRestrictionLevel(), and + * for returned identifier restriction levels in check results. + * @stable ICU 51 + */ + typedef enum URestrictionLevel { + /** + * Only ASCII characters: U+0000..U+007F + * + * @stable ICU 51 + */ + USPOOF_ASCII = 0x10000000, + /** + * All characters in each identifier must be from a single script. + * + * @stable ICU 53 + */ + USPOOF_SINGLE_SCRIPT_RESTRICTIVE = 0x20000000, + /** + * All characters in each identifier must be from a single script, or from the combinations: Latin + Han + + * Hiragana + Katakana; Latin + Han + Bopomofo; or Latin + Han + Hangul. Note that this level will satisfy the + * vast majority of Latin-script users; also that TR36 has ASCII instead of Latin. + * + * @stable ICU 51 + */ + USPOOF_HIGHLY_RESTRICTIVE = 0x30000000, + /** + * Allow Latin with other scripts except Cyrillic, Greek, Cherokee Otherwise, the same as Highly Restrictive + * + * @stable ICU 51 + */ + USPOOF_MODERATELY_RESTRICTIVE = 0x40000000, + /** + * Allow arbitrary mixtures of scripts. Otherwise, the same as Moderately Restrictive. + * + * @stable ICU 51 + */ + USPOOF_MINIMALLY_RESTRICTIVE = 0x50000000, + /** + * Any valid identifiers, including characters outside of the Identifier Profile. + * + * @stable ICU 51 + */ + USPOOF_UNRESTRICTIVE = 0x60000000, + /** + * Mask for selecting the Restriction Level bits from the return value of uspoof_check(). + * + * @stable ICU 53 + */ + USPOOF_RESTRICTION_LEVEL_MASK = 0x7F000000 + } URestrictionLevel; + +/** + * Create a Unicode Spoof Checker, configured to perform all + * checks except for USPOOF_LOCALE_LIMIT and USPOOF_CHAR_LIMIT. + * Note that additional checks may be added in the future, + * resulting in the changes to the default checking behavior. + * + * @param status The error code, set if this function encounters a problem. + * @return the newly created Spoof Checker + * @stable ICU 4.2 + */ +U_STABLE USpoofChecker * U_EXPORT2 +uspoof_open(UErrorCode *status); + + +/** + * Open a Spoof checker from its serialized form, stored in 32-bit-aligned memory. + * Inverse of uspoof_serialize(). + * The memory containing the serialized data must remain valid and unchanged + * as long as the spoof checker, or any cloned copies of the spoof checker, + * are in use. Ownership of the memory remains with the caller. + * The spoof checker (and any clones) must be closed prior to deleting the + * serialized data. + * + * @param data a pointer to 32-bit-aligned memory containing the serialized form of spoof data + * @param length the number of bytes available at data; + * can be more than necessary + * @param pActualLength receives the actual number of bytes at data taken up by the data; + * can be NULL + * @param pErrorCode ICU error code + * @return the spoof checker. + * + * @see uspoof_open + * @see uspoof_serialize + * @stable ICU 4.2 + */ +U_STABLE USpoofChecker * U_EXPORT2 +uspoof_openFromSerialized(const void *data, int32_t length, int32_t *pActualLength, + UErrorCode *pErrorCode); + +/** + * Open a Spoof Checker from the source form of the spoof data. + * The two inputs correspond to the Unicode data files confusables.txt + * and confusablesWholeScript.txt as described in Unicode UAX #39. + * The syntax of the source data is as described in UAX #39 for + * these files, and the content of these files is acceptable input. + * + * The character encoding of the (char *) input text is UTF-8. + * + * @param confusables a pointer to the confusable characters definitions, + * as found in file confusables.txt from unicode.org. + * @param confusablesLen The length of the confusables text, or -1 if the + * input string is zero terminated. + * @param confusablesWholeScript + * a pointer to the whole script confusables definitions, + * as found in the file confusablesWholeScript.txt from unicode.org. + * @param confusablesWholeScriptLen The length of the whole script confusables text, or + * -1 if the input string is zero terminated. + * @param errType In the event of an error in the input, indicates + * which of the input files contains the error. + * The value is one of USPOOF_SINGLE_SCRIPT_CONFUSABLE or + * USPOOF_WHOLE_SCRIPT_CONFUSABLE, or + * zero if no errors are found. + * @param pe In the event of an error in the input, receives the position + * in the input text (line, offset) of the error. + * @param status an in/out ICU UErrorCode. Among the possible errors is + * U_PARSE_ERROR, which is used to report syntax errors + * in the input. + * @return A spoof checker that uses the rules from the input files. + * @stable ICU 4.2 + */ +U_STABLE USpoofChecker * U_EXPORT2 +uspoof_openFromSource(const char *confusables, int32_t confusablesLen, + const char *confusablesWholeScript, int32_t confusablesWholeScriptLen, + int32_t *errType, UParseError *pe, UErrorCode *status); + + +/** + * Close a Spoof Checker, freeing any memory that was being held by + * its implementation. + * @stable ICU 4.2 + */ +U_STABLE void U_EXPORT2 +uspoof_close(USpoofChecker *sc); + + +/** + * Clone a Spoof Checker. The clone will be set to perform the same checks + * as the original source. + * + * @param sc The source USpoofChecker + * @param status The error code, set if this function encounters a problem. + * @return + * @stable ICU 4.2 + */ +U_STABLE USpoofChecker * U_EXPORT2 +uspoof_clone(const USpoofChecker *sc, UErrorCode *status); + + +/** + * Specify the set of checks that will be performed by the check + * functions of this Spoof Checker. + * + * @param sc The USpoofChecker + * @param checks The set of checks that this spoof checker will perform. + * The value is a bit set, obtained by OR-ing together + * values from enum USpoofChecks. + * @param status The error code, set if this function encounters a problem. + * @stable ICU 4.2 + * + */ +U_STABLE void U_EXPORT2 +uspoof_setChecks(USpoofChecker *sc, int32_t checks, UErrorCode *status); + +/** + * Get the set of checks that this Spoof Checker has been configured to perform. + * + * @param sc The USpoofChecker + * @param status The error code, set if this function encounters a problem. + * @return The set of checks that this spoof checker will perform. + * The value is a bit set, obtained by OR-ing together + * values from enum USpoofChecks. + * @stable ICU 4.2 + * + */ +U_STABLE int32_t U_EXPORT2 +uspoof_getChecks(const USpoofChecker *sc, UErrorCode *status); + +/** + * Set the loosest restriction level allowed. The default if this function + * is not called is HIGHLY_RESTRICTIVE. + * Calling this function also enables the RESTRICTION_LEVEL check. + * @param restrictionLevel The loosest restriction level allowed. + * @see URestrictionLevel + * @stable ICU 51 + */ +U_STABLE void U_EXPORT2 +uspoof_setRestrictionLevel(USpoofChecker *sc, URestrictionLevel restrictionLevel); + + +/** + * Get the Restriction Level that will be tested if the checks include RESTRICTION_LEVEL. + * + * @return The restriction level + * @see URestrictionLevel + * @stable ICU 51 + */ +U_STABLE URestrictionLevel U_EXPORT2 +uspoof_getRestrictionLevel(const USpoofChecker *sc); + +/** + * Limit characters that are acceptable in identifiers being checked to those + * normally used with the languages associated with the specified locales. + * Any previously specified list of locales is replaced by the new settings. + * + * A set of languages is determined from the locale(s), and + * from those a set of acceptable Unicode scripts is determined. + * Characters from this set of scripts, along with characters from + * the "common" and "inherited" Unicode Script categories + * will be permitted. + * + * Supplying an empty string removes all restrictions; + * characters from any script will be allowed. + * + * The USPOOF_CHAR_LIMIT test is automatically enabled for this + * USpoofChecker when calling this function with a non-empty list + * of locales. + * + * The Unicode Set of characters that will be allowed is accessible + * via the uspoof_getAllowedChars() function. uspoof_setAllowedLocales() + * will replace any previously applied set of allowed characters. + * + * Adjustments, such as additions or deletions of certain classes of characters, + * can be made to the result of uspoof_setAllowedLocales() by + * fetching the resulting set with uspoof_getAllowedChars(), + * manipulating it with the Unicode Set API, then resetting the + * spoof detectors limits with uspoof_setAllowedChars() + * + * @param sc The USpoofChecker + * @param localesList A list list of locales, from which the language + * and associated script are extracted. The locales + * are comma-separated if there is more than one. + * White space may not appear within an individual locale, + * but is ignored otherwise. + * The locales are syntactically like those from the + * HTTP Accept-Language header. + * If the localesList is empty, no restrictions will be placed on + * the allowed characters. + * + * @param status The error code, set if this function encounters a problem. + * @stable ICU 4.2 + */ +U_STABLE void U_EXPORT2 +uspoof_setAllowedLocales(USpoofChecker *sc, const char *localesList, UErrorCode *status); + +/** + * Get a list of locales for the scripts that are acceptable in strings + * to be checked. If no limitations on scripts have been specified, + * an empty string will be returned. + * + * uspoof_setAllowedChars() will reset the list of allowed to be empty. + * + * The format of the returned list is the same as that supplied to + * uspoof_setAllowedLocales(), but returned list may not be identical + * to the originally specified string; the string may be reformatted, + * and information other than languages from + * the originally specified locales may be omitted. + * + * @param sc The USpoofChecker + * @param status The error code, set if this function encounters a problem. + * @return A string containing a list of locales corresponding + * to the acceptable scripts, formatted like an + * HTTP Accept Language value. + * + * @stable ICU 4.2 + */ +U_STABLE const char * U_EXPORT2 +uspoof_getAllowedLocales(USpoofChecker *sc, UErrorCode *status); + + +/** + * Limit the acceptable characters to those specified by a Unicode Set. + * Any previously specified character limit is + * is replaced by the new settings. This includes limits on + * characters that were set with the uspoof_setAllowedLocales() function. + * + * The USPOOF_CHAR_LIMIT test is automatically enabled for this + * USpoofChecker by this function. + * + * @param sc The USpoofChecker + * @param chars A Unicode Set containing the list of + * characters that are permitted. Ownership of the set + * remains with the caller. The incoming set is cloned by + * this function, so there are no restrictions on modifying + * or deleting the USet after calling this function. + * @param status The error code, set if this function encounters a problem. + * @stable ICU 4.2 + */ +U_STABLE void U_EXPORT2 +uspoof_setAllowedChars(USpoofChecker *sc, const USet *chars, UErrorCode *status); + + +/** + * Get a USet for the characters permitted in an identifier. + * This corresponds to the limits imposed by the Set Allowed Characters + * functions. Limitations imposed by other checks will not be + * reflected in the set returned by this function. + * + * The returned set will be frozen, meaning that it cannot be modified + * by the caller. + * + * Ownership of the returned set remains with the Spoof Detector. The + * returned set will become invalid if the spoof detector is closed, + * or if a new set of allowed characters is specified. + * + * + * @param sc The USpoofChecker + * @param status The error code, set if this function encounters a problem. + * @return A USet containing the characters that are permitted by + * the USPOOF_CHAR_LIMIT test. + * @stable ICU 4.2 + */ +U_STABLE const USet * U_EXPORT2 +uspoof_getAllowedChars(const USpoofChecker *sc, UErrorCode *status); + + + + +/** + * Check the specified string for possible security issues. + * The text to be checked will typically be an identifier of some sort. + * The set of checks to be performed is specified with uspoof_setChecks(). + * + * @param sc The USpoofChecker + * @param id The identifier to be checked for possible security issues, + * in UTF-16 format. + * @param length the length of the string to be checked, expressed in + * 16 bit UTF-16 code units, or -1 if the string is + * zero terminated. + * @param position An out parameter. + * Originally, the index of the first string position that failed a check. + * Now, always returns zero. + * This parameter may be null. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * Spoofing or security issues detected with the input string are + * not reported here, but through the function's return value. + * @return An integer value with bits set for any potential security + * or spoofing issues detected. The bits are defined by + * enum USpoofChecks. (returned_value & USPOOF_ALL_CHECKS) + * will be zero if the input string passes all of the + * enabled checks. + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +uspoof_check(const USpoofChecker *sc, + const UChar *id, int32_t length, + int32_t *position, + UErrorCode *status); + + +/** + * Check the specified string for possible security issues. + * The text to be checked will typically be an identifier of some sort. + * The set of checks to be performed is specified with uspoof_setChecks(). + * + * @param sc The USpoofChecker + * @param id A identifier to be checked for possible security issues, in UTF8 format. + * @param length the length of the string to be checked, or -1 if the string is + * zero terminated. + * @param position An out parameter. + * Originally, the index of the first string position that failed a check. + * Now, always returns zero. + * This parameter may be null. + * @deprecated ICU 51 + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * Spoofing or security issues detected with the input string are + * not reported here, but through the function's return value. + * If the input contains invalid UTF-8 sequences, + * a status of U_INVALID_CHAR_FOUND will be returned. + * @return An integer value with bits set for any potential security + * or spoofing issues detected. The bits are defined by + * enum USpoofChecks. (returned_value & USPOOF_ALL_CHECKS) + * will be zero if the input string passes all of the + * enabled checks. + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +uspoof_checkUTF8(const USpoofChecker *sc, + const char *id, int32_t length, + int32_t *position, + UErrorCode *status); + + + + +/** + * Check the whether two specified strings are visually confusable. + * The types of confusability to be tested - single script, mixed script, + * or whole script - are determined by the check options set for the + * USpoofChecker. + * + * The tests to be performed are controlled by the flags + * USPOOF_SINGLE_SCRIPT_CONFUSABLE + * USPOOF_MIXED_SCRIPT_CONFUSABLE + * USPOOF_WHOLE_SCRIPT_CONFUSABLE + * At least one of these tests must be selected. + * + * USPOOF_ANY_CASE is a modifier for the tests. Select it if the identifiers + * may be of mixed case. + * If identifiers are case folded for comparison and + * display to the user, do not select the USPOOF_ANY_CASE option. + * + * + * @param sc The USpoofChecker + * @param id1 The first of the two identifiers to be compared for + * confusability. The strings are in UTF-16 format. + * @param length1 the length of the first identifer, expressed in + * 16 bit UTF-16 code units, or -1 if the string is + * nul terminated. + * @param id2 The second of the two identifiers to be compared for + * confusability. The identifiers are in UTF-16 format. + * @param length2 The length of the second identifiers, expressed in + * 16 bit UTF-16 code units, or -1 if the string is + * nul terminated. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * Confusability of the identifiers is not reported here, + * but through this function's return value. + * @return An integer value with bit(s) set corresponding to + * the type of confusability found, as defined by + * enum USpoofChecks. Zero is returned if the identifiers + * are not confusable. + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +uspoof_areConfusable(const USpoofChecker *sc, + const UChar *id1, int32_t length1, + const UChar *id2, int32_t length2, + UErrorCode *status); + + + +/** + * Check the whether two specified strings are visually confusable. + * The types of confusability to be tested - single script, mixed script, + * or whole script - are determined by the check options set for the + * USpoofChecker. + * + * @param sc The USpoofChecker + * @param id1 The first of the two identifiers to be compared for + * confusability. The strings are in UTF-8 format. + * @param length1 the length of the first identifiers, in bytes, or -1 + * if the string is nul terminated. + * @param id2 The second of the two identifiers to be compared for + * confusability. The strings are in UTF-8 format. + * @param length2 The length of the second string in bytes, or -1 + * if the string is nul terminated. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * Confusability of the strings is not reported here, + * but through this function's return value. + * @return An integer value with bit(s) set corresponding to + * the type of confusability found, as defined by + * enum USpoofChecks. Zero is returned if the strings + * are not confusable. + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +uspoof_areConfusableUTF8(const USpoofChecker *sc, + const char *id1, int32_t length1, + const char *id2, int32_t length2, + UErrorCode *status); + + + + + + +/** + * Get the "skeleton" for an identifier. + * Skeletons are a transformation of the input identifier; + * Two identifiers are confusable if their skeletons are identical. + * See Unicode UAX #39 for additional information. + * + * Using skeletons directly makes it possible to quickly check + * whether an identifier is confusable with any of some large + * set of existing identifiers, by creating an efficiently + * searchable collection of the skeletons. + * + * @param sc The USpoofChecker + * @param type The type of skeleton, corresponding to which + * of the Unicode confusable data tables to use. + * The default is Mixed-Script, Lowercase. + * Allowed options are USPOOF_SINGLE_SCRIPT_CONFUSABLE and + * USPOOF_ANY_CASE. The two flags may be ORed. + * @param id The input identifier whose skeleton will be computed. + * @param length The length of the input identifier, expressed in 16 bit + * UTF-16 code units, or -1 if the string is zero terminated. + * @param dest The output buffer, to receive the skeleton string. + * @param destCapacity The length of the output buffer, in 16 bit units. + * The destCapacity may be zero, in which case the function will + * return the actual length of the skeleton. + * @param status The error code, set if an error occurred while attempting to + * perform the check. + * @return The length of the skeleton string. The returned length + * is always that of the complete skeleton, even when the + * supplied buffer is too small (or of zero length) + * + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +uspoof_getSkeleton(const USpoofChecker *sc, + uint32_t type, + const UChar *id, int32_t length, + UChar *dest, int32_t destCapacity, + UErrorCode *status); + +/** + * Get the "skeleton" for an identifier. + * Skeletons are a transformation of the input identifier; + * Two identifiers are confusable if their skeletons are identical. + * See Unicode UAX #39 for additional information. + * + * Using skeletons directly makes it possible to quickly check + * whether an identifier is confusable with any of some large + * set of existing identifiers, by creating an efficiently + * searchable collection of the skeletons. + * + * @param sc The USpoofChecker + * @param type The type of skeleton, corresponding to which + * of the Unicode confusable data tables to use. + * The default is Mixed-Script, Lowercase. + * Allowed options are USPOOF_SINGLE_SCRIPT_CONFUSABLE and + * USPOOF_ANY_CASE. The two flags may be ORed. + * @param id The UTF-8 format identifier whose skeleton will be computed. + * @param length The length of the input string, in bytes, + * or -1 if the string is zero terminated. + * @param dest The output buffer, to receive the skeleton string. + * @param destCapacity The length of the output buffer, in bytes. + * The destCapacity may be zero, in which case the function will + * return the actual length of the skeleton. + * @param status The error code, set if an error occurred while attempting to + * perform the check. Possible Errors include U_INVALID_CHAR_FOUND + * for invalid UTF-8 sequences, and + * U_BUFFER_OVERFLOW_ERROR if the destination buffer is too small + * to hold the complete skeleton. + * @return The length of the skeleton string, in bytes. The returned length + * is always that of the complete skeleton, even when the + * supplied buffer is too small (or of zero length) + * + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +uspoof_getSkeletonUTF8(const USpoofChecker *sc, + uint32_t type, + const char *id, int32_t length, + char *dest, int32_t destCapacity, + UErrorCode *status); + + +/** + * Get the set of Candidate Characters for Inclusion in Identifiers, as defined + * in Unicode UAX #31, http://www.unicode.org/reports/tr31/#Table_Candidate_Characters_for_Inclusion_in_Identifiers + * + * The returned set is frozen. Ownership of the set remains with the ICU library; it must not + * be deleted by the caller. + * + * @param status The error code, set if a problem occurs while creating the set. + * + * @stable ICU 51 + */ +U_STABLE const USet * U_EXPORT2 +uspoof_getInclusionSet(UErrorCode *status); + +/** + * Get the set of characters from Recommended Scripts for Inclusion in Identifiers, as defined + * in Unicode UAX #31, http://www.unicode.org/reports/tr31/#Table_Recommended_Scripts + * + * The returned set is frozen. Ownership of the set remains with the ICU library; it must not + * be deleted by the caller. + * + * @param status The error code, set if a problem occurs while creating the set. + * + * @stable ICU 51 + */ +U_STABLE const USet * U_EXPORT2 +uspoof_getRecommendedSet(UErrorCode *status); + + +/** + * Serialize the data for a spoof detector into a chunk of memory. + * The flattened spoof detection tables can later be used to efficiently + * instantiate a new Spoof Detector. + * + * The serialized spoof checker includes only the data compiled from the + * Unicode data tables by uspoof_openFromSource(); it does not include + * include any other state or configuration that may have been set. + * + * @param sc the Spoof Detector whose data is to be serialized. + * @param data a pointer to 32-bit-aligned memory to be filled with the data, + * can be NULL if capacity==0 + * @param capacity the number of bytes available at data, + * or 0 for preflighting + * @param status an in/out ICU UErrorCode; possible errors include: + * - U_BUFFER_OVERFLOW_ERROR if the data storage block is too small for serialization + * - U_ILLEGAL_ARGUMENT_ERROR the data or capacity parameters are bad + * @return the number of bytes written or needed for the spoof data + * + * @see utrie2_openFromSerialized() + * @stable ICU 4.2 + */ +U_STABLE int32_t U_EXPORT2 +uspoof_serialize(USpoofChecker *sc, + void *data, int32_t capacity, + UErrorCode *status); + + +#endif + +#endif /* USPOOF_H */ + +// utmscale.h +/* +******************************************************************************* +* Copyright (C) 2004 - 2008, International Business Machines Corporation and +* others. All Rights Reserved. +******************************************************************************* +*/ + +#ifndef UTMSCALE_H +#define UTMSCALE_H + + +#if !UCONFIG_NO_FORMATTING + +/** + * \file + * \brief C API: Universal Time Scale + * + * There are quite a few different conventions for binary datetime, depending on different + * platforms and protocols. Some of these have severe drawbacks. For example, people using + * Unix time (seconds since Jan 1, 1970) think that they are safe until near the year 2038. + * But cases can and do arise where arithmetic manipulations causes serious problems. Consider + * the computation of the average of two datetimes, for example: if one calculates them with + * averageTime = (time1 + time2)/2, there will be overflow even with dates + * around the present. Moreover, even if these problems don't occur, there is the issue of + * conversion back and forth between different systems. + * + *

+ * Binary datetimes differ in a number of ways: the datatype, the unit, + * and the epoch (origin). We'll refer to these as time scales. For example: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Table 1: Binary Time Scales
SourceDatatypeUnitEpoch
UDTS_JAVA_TIMEint64_tmillisecondsJan 1, 1970
UDTS_UNIX_TIMEint32_t or int64_tsecondsJan 1, 1970
UDTS_ICU4C_TIMEdoublemillisecondsJan 1, 1970
UDTS_WINDOWS_FILE_TIMEint64_tticks (100 nanoseconds)Jan 1, 1601
UDTS_DOTNET_DATE_TIMEint64_tticks (100 nanoseconds)Jan 1, 0001
UDTS_MAC_OLD_TIMEint32_t or int64_tsecondsJan 1, 1904
UDTS_MAC_TIMEdoublesecondsJan 1, 2001
UDTS_EXCEL_TIME?daysDec 31, 1899
UDTS_DB2_TIME?daysDec 31, 1899
UDTS_UNIX_MICROSECONDS_TIMEint64_tmicrosecondsJan 1, 1970
+ * + *

+ * All of the epochs start at 00:00 am (the earliest possible time on the day in question), + * and are assumed to be UTC. + * + *

+ * The ranges for different datatypes are given in the following table (all values in years). + * The range of years includes the entire range expressible with positive and negative + * values of the datatype. The range of years for double is the range that would be allowed + * without losing precision to the corresponding unit. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Unitsint64_tdoubleint32_t
1 sec5.84542x1011285,420,920.94136.10
1 millisecond584,542,046.09285,420.920.14
1 microsecond584,542.05285.420.00
100 nanoseconds (tick)58,454.2028.540.00
1 nanosecond584.54204610.28540.00
+ * + *

+ * These functions implement a universal time scale which can be used as a 'pivot', + * and provide conversion functions to and from all other major time scales. + * This datetimes to be converted to the pivot time, safely manipulated, + * and converted back to any other datetime time scale. + * + *

+ * So what to use for this pivot? Java time has plenty of range, but cannot represent + * .NET System.DateTime values without severe loss of precision. ICU4C time addresses this by using a + * double that is otherwise equivalent to the Java time. However, there are disadvantages + * with doubles. They provide for much more graceful degradation in arithmetic operations. + * But they only have 53 bits of accuracy, which means that they will lose precision when + * converting back and forth to ticks. What would really be nice would be a + * long double (80 bits -- 64 bit mantissa), but that is not supported on most systems. + * + *

+ * The Unix extended time uses a structure with two components: time in seconds and a + * fractional field (microseconds). However, this is clumsy, slow, and + * prone to error (you always have to keep track of overflow and underflow in the + * fractional field). BigDecimal would allow for arbitrary precision and arbitrary range, + * but we do not want to use this as the normal type, because it is slow and does not + * have a fixed size. + * + *

+ * Because of these issues, we ended up concluding that the .NET framework's + * System.DateTime would be the best pivot. However, we use the full range + * allowed by the datatype, allowing for datetimes back to 29,000 BC and up to 29,000 AD. + * This time scale is very fine grained, does not lose precision, and covers a range that + * will meet almost all requirements. It will not handle the range that Java times do, + * but frankly, being able to handle dates before 29,000 BC or after 29,000 AD is of very limited interest. + * + */ + +/** + * UDateTimeScale values are used to specify the time scale used for + * conversion into or out if the universal time scale. + * + * @stable ICU 3.2 + */ +typedef enum UDateTimeScale { + /** + * Used in the JDK. Data is a Java long (int64_t). Value + * is milliseconds since January 1, 1970. + * + * @stable ICU 3.2 + */ + UDTS_JAVA_TIME = 0, + + /** + * Used on Unix systems. Data is int32_t or int64_t. Value + * is seconds since January 1, 1970. + * + * @stable ICU 3.2 + */ + UDTS_UNIX_TIME, + + /** + * Used in IUC4C. Data is a double. Value + * is milliseconds since January 1, 1970. + * + * @stable ICU 3.2 + */ + UDTS_ICU4C_TIME, + + /** + * Used in Windows for file times. Data is an int64_t. Value + * is ticks (1 tick == 100 nanoseconds) since January 1, 1601. + * + * @stable ICU 3.2 + */ + UDTS_WINDOWS_FILE_TIME, + + /** + * Used in the .NET framework's System.DateTime structure. Data is an int64_t. Value + * is ticks (1 tick == 100 nanoseconds) since January 1, 0001. + * + * @stable ICU 3.2 + */ + UDTS_DOTNET_DATE_TIME, + + /** + * Used in older Macintosh systems. Data is int32_t or int64_t. Value + * is seconds since January 1, 1904. + * + * @stable ICU 3.2 + */ + UDTS_MAC_OLD_TIME, + + /** + * Used in newer Macintosh systems. Data is a double. Value + * is seconds since January 1, 2001. + * + * @stable ICU 3.2 + */ + UDTS_MAC_TIME, + + /** + * Used in Excel. Data is an ?unknown?. Value + * is days since December 31, 1899. + * + * @stable ICU 3.2 + */ + UDTS_EXCEL_TIME, + + /** + * Used in DB2. Data is an ?unknown?. Value + * is days since December 31, 1899. + * + * @stable ICU 3.2 + */ + UDTS_DB2_TIME, + + /** + * Data is a long. Value is microseconds since January 1, 1970. + * Similar to Unix time (linear value from 1970) and struct timeval + * (microseconds resolution). + * + * @stable ICU 3.8 + */ + UDTS_UNIX_MICROSECONDS_TIME, + + /** + * The first unused time scale value. The limit of this enum + */ + UDTS_MAX_SCALE +} UDateTimeScale; + +/** + * UTimeScaleValue values are used to specify the time scale values + * to utmscale_getTimeScaleValue. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ +typedef enum UTimeScaleValue { + /** + * The constant used to select the units vale + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_UNITS_VALUE = 0, + + /** + * The constant used to select the epoch offset value + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_EPOCH_OFFSET_VALUE=1, + + /** + * The constant used to select the minimum from value + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_FROM_MIN_VALUE=2, + + /** + * The constant used to select the maximum from value + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_FROM_MAX_VALUE=3, + + /** + * The constant used to select the minimum to value + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_TO_MIN_VALUE=4, + + /** + * The constant used to select the maximum to value + * for a time scale. + * + * @see utmscale_getTimeScaleValue + * + * @stable ICU 3.2 + */ + UTSV_TO_MAX_VALUE=5, + + + /** + * The number of time scale values, in other words limit of this enum. + * + * @see utmscale_getTimeScaleValue + */ + UTSV_MAX_SCALE_VALUE=11 + +} UTimeScaleValue; + +/** + * Get a value associated with a particular time scale. + * + * @param timeScale The time scale + * @param value A constant representing the value to get + * @param status The status code. Set to U_ILLEGAL_ARGUMENT_ERROR if arguments are invalid. + * @return - the value. + * + * @stable ICU 3.2 + */ +U_STABLE int64_t U_EXPORT2 + utmscale_getTimeScaleValue(UDateTimeScale timeScale, UTimeScaleValue value, UErrorCode *status); + +/* Conversion to 'universal time scale' */ + +/** + * Convert a int64_t datetime from the given time scale to the universal time scale. + * + * @param otherTime The int64_t datetime + * @param timeScale The time scale to convert from + * @param status The status code. Set to U_ILLEGAL_ARGUMENT_ERROR if the conversion is out of range. + * + * @return The datetime converted to the universal time scale + * + * @stable ICU 3.2 + */ +U_STABLE int64_t U_EXPORT2 + utmscale_fromInt64(int64_t otherTime, UDateTimeScale timeScale, UErrorCode *status); + +/* Conversion from 'universal time scale' */ + +/** + * Convert a datetime from the universal time scale to a int64_t in the given time scale. + * + * @param universalTime The datetime in the universal time scale + * @param timeScale The time scale to convert to + * @param status The status code. Set to U_ILLEGAL_ARGUMENT_ERROR if the conversion is out of range. + * + * @return The datetime converted to the given time scale + * + * @stable ICU 3.2 + */ +U_STABLE int64_t U_EXPORT2 + utmscale_toInt64(int64_t universalTime, UDateTimeScale timeScale, UErrorCode *status); + +#endif /* #if !UCONFIG_NO_FORMATTING */ + +#endif + + +// utrans.h +/* +******************************************************************************* +* Copyright (C) 1997-2011,2014-2015 International Business Machines +* Corporation and others. All Rights Reserved. +******************************************************************************* +* Date Name Description +* 06/21/00 aliu Creation. +******************************************************************************* +*/ + +#ifndef UTRANS_H +#define UTRANS_H + + +#if !UCONFIG_NO_TRANSLITERATION + + +/******************************************************************** + * General Notes + ******************************************************************** + */ +/** + * \file + * \brief C API: Transliterator + * + *

Transliteration

+ * The data structures and functions described in this header provide + * transliteration services. Transliteration services are implemented + * as C++ classes. The comments and documentation in this header + * assume the reader is familiar with the C++ headers translit.h and + * associated documentation. + * + * A significant but incomplete subset of the C++ transliteration + * services are available to C code through this header. In order to + * access more complex transliteration services, refer to the C++ + * headers and documentation. + * + * There are two sets of functions for working with transliterator IDs: + * + * An old, deprecated set uses char * IDs, which works for true and pure + * identifiers that these APIs were designed for, + * for example "Cyrillic-Latin". + * It does not work when the ID contains filters ("[:Script=Cyrl:]") + * or even a complete set of rules because then the ID string contains more + * than just "invariant" characters (see utypes.h). + * + * A new set of functions replaces the old ones and uses UChar * IDs, + * paralleling the UnicodeString IDs in the C++ API. (New in ICU 2.8.) + */ + +/******************************************************************** + * Data Structures + ********************************************************************/ + +/** + * An opaque transliterator for use in C. Open with utrans_openxxx() + * and close with utrans_close() when done. Equivalent to the C++ class + * Transliterator and its subclasses. + * @see Transliterator + * @stable ICU 2.0 + */ +typedef void* UTransliterator; + +/** + * Direction constant indicating the direction in a transliterator, + * e.g., the forward or reverse rules of a RuleBasedTransliterator. + * Specified when a transliterator is opened. An "A-B" transliterator + * transliterates A to B when operating in the forward direction, and + * B to A when operating in the reverse direction. + * @stable ICU 2.0 + */ +typedef enum UTransDirection { + + /** + * UTRANS_FORWARD means from <source> to <target> for a + * transliterator with ID <source>-<target>. For a transliterator + * opened using a rule, it means forward direction rules, e.g., + * "A > B". + */ + UTRANS_FORWARD, + + /** + * UTRANS_REVERSE means from <target> to <source> for a + * transliterator with ID <source>-<target>. For a transliterator + * opened using a rule, it means reverse direction rules, e.g., + * "A < B". + */ + UTRANS_REVERSE + +} UTransDirection; + +/** + * Position structure for utrans_transIncremental() incremental + * transliteration. This structure defines two substrings of the text + * being transliterated. The first region, [contextStart, + * contextLimit), defines what characters the transliterator will read + * as context. The second region, [start, limit), defines what + * characters will actually be transliterated. The second region + * should be a subset of the first. + * + *

After a transliteration operation, some of the indices in this + * structure will be modified. See the field descriptions for + * details. + * + *

contextStart <= start <= limit <= contextLimit + * + *

Note: All index values in this structure must be at code point + * boundaries. That is, none of them may occur between two code units + * of a surrogate pair. If any index does split a surrogate pair, + * results are unspecified. + * + * @stable ICU 2.0 + */ +typedef struct UTransPosition { + + /** + * Beginning index, inclusive, of the context to be considered for + * a transliteration operation. The transliterator will ignore + * anything before this index. INPUT/OUTPUT parameter: This parameter + * is updated by a transliteration operation to reflect the maximum + * amount of antecontext needed by a transliterator. + * @stable ICU 2.4 + */ + int32_t contextStart; + + /** + * Ending index, exclusive, of the context to be considered for a + * transliteration operation. The transliterator will ignore + * anything at or after this index. INPUT/OUTPUT parameter: This + * parameter is updated to reflect changes in the length of the + * text, but points to the same logical position in the text. + * @stable ICU 2.4 + */ + int32_t contextLimit; + + /** + * Beginning index, inclusive, of the text to be transliteratd. + * INPUT/OUTPUT parameter: This parameter is advanced past + * characters that have already been transliterated by a + * transliteration operation. + * @stable ICU 2.4 + */ + int32_t start; + + /** + * Ending index, exclusive, of the text to be transliteratd. + * INPUT/OUTPUT parameter: This parameter is updated to reflect + * changes in the length of the text, but points to the same + * logical position in the text. + * @stable ICU 2.4 + */ + int32_t limit; + +} UTransPosition; + +/******************************************************************** + * General API + ********************************************************************/ + +/** + * Open a custom transliterator, given a custom rules string + * OR + * a system transliterator, given its ID. + * Any non-NULL result from this function should later be closed with + * utrans_close(). + * + * @param id a valid transliterator ID + * @param idLength the length of the ID string, or -1 if NUL-terminated + * @param dir the desired direction + * @param rules the transliterator rules. See the C++ header rbt.h for + * rules syntax. If NULL then a system transliterator matching + * the ID is returned. + * @param rulesLength the length of the rules, or -1 if the rules + * are NUL-terminated. + * @param parseError a pointer to a UParseError struct to receive the details + * of any parsing errors. This parameter may be NULL if no + * parsing error details are desired. + * @param pErrorCode a pointer to the UErrorCode + * @return a transliterator pointer that may be passed to other + * utrans_xxx() functions, or NULL if the open call fails. + * @stable ICU 2.8 + */ +U_STABLE UTransliterator* U_EXPORT2 +utrans_openU(const UChar *id, + int32_t idLength, + UTransDirection dir, + const UChar *rules, + int32_t rulesLength, + UParseError *parseError, + UErrorCode *pErrorCode); + +/** + * Open an inverse of an existing transliterator. For this to work, + * the inverse must be registered with the system. For example, if + * the Transliterator "A-B" is opened, and then its inverse is opened, + * the result is the Transliterator "B-A", if such a transliterator is + * registered with the system. Otherwise the result is NULL and a + * failing UErrorCode is set. Any non-NULL result from this function + * should later be closed with utrans_close(). + * + * @param trans the transliterator to open the inverse of. + * @param status a pointer to the UErrorCode + * @return a pointer to a newly-opened transliterator that is the + * inverse of trans, or NULL if the open call fails. + * @stable ICU 2.0 + */ +U_STABLE UTransliterator* U_EXPORT2 +utrans_openInverse(const UTransliterator* trans, + UErrorCode* status); + +/** + * Create a copy of a transliterator. Any non-NULL result from this + * function should later be closed with utrans_close(). + * + * @param trans the transliterator to be copied. + * @param status a pointer to the UErrorCode + * @return a transliterator pointer that may be passed to other + * utrans_xxx() functions, or NULL if the clone call fails. + * @stable ICU 2.0 + */ +U_STABLE UTransliterator* U_EXPORT2 +utrans_clone(const UTransliterator* trans, + UErrorCode* status); + +/** + * Close a transliterator. Any non-NULL pointer returned by + * utrans_openXxx() or utrans_clone() should eventually be closed. + * @param trans the transliterator to be closed. + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +utrans_close(UTransliterator* trans); + + +/** + * Return the programmatic identifier for this transliterator. + * If this identifier is passed to utrans_openU(), it will open + * a transliterator equivalent to this one, if the ID has been + * registered. + * + * @param trans the transliterator to return the ID of. + * @param resultLength pointer to an output variable receiving the length + * of the ID string; can be NULL + * @return the NUL-terminated ID string. This pointer remains + * valid until utrans_close() is called on this transliterator. + * + * @stable ICU 2.8 + */ +U_STABLE const UChar * U_EXPORT2 +utrans_getUnicodeID(const UTransliterator *trans, + int32_t *resultLength); + +/** + * Register an open transliterator with the system. When + * utrans_open() is called with an ID string that is equal to that + * returned by utrans_getID(adoptedTrans,...), then + * utrans_clone(adoptedTrans,...) is returned. + * + *

NOTE: After this call the system owns the adoptedTrans and will + * close it. The user must not call utrans_close() on adoptedTrans. + * + * @param adoptedTrans a transliterator, typically the result of + * utrans_openRules(), to be registered with the system. + * @param status a pointer to the UErrorCode + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +utrans_register(UTransliterator* adoptedTrans, + UErrorCode* status); + +/** + * Unregister a transliterator from the system. After this call the + * system will no longer recognize the given ID when passed to + * utrans_open(). If the ID is invalid then nothing is done. + * + * @param id an ID to unregister + * @param idLength the length of id, or -1 if id is zero-terminated + * @stable ICU 2.8 + */ +U_STABLE void U_EXPORT2 +utrans_unregisterID(const UChar* id, int32_t idLength); + +/** + * Set the filter used by a transliterator. A filter can be used to + * make the transliterator pass certain characters through untouched. + * The filter is expressed using a UnicodeSet pattern. If the + * filterPattern is NULL or the empty string, then the transliterator + * will be reset to use no filter. + * + * @param trans the transliterator + * @param filterPattern a pattern string, in the form accepted by + * UnicodeSet, specifying which characters to apply the + * transliteration to. May be NULL or the empty string to indicate no + * filter. + * @param filterPatternLen the length of filterPattern, or -1 if + * filterPattern is zero-terminated + * @param status a pointer to the UErrorCode + * @see UnicodeSet + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +utrans_setFilter(UTransliterator* trans, + const UChar* filterPattern, + int32_t filterPatternLen, + UErrorCode* status); + +/** + * Return the number of system transliterators. + * It is recommended to use utrans_openIDs() instead. + * + * @return the number of system transliterators. + * @stable ICU 2.0 + */ +U_STABLE int32_t U_EXPORT2 +utrans_countAvailableIDs(void); + +/** + * Return a UEnumeration for the available transliterators. + * + * @param pErrorCode Pointer to the UErrorCode in/out parameter. + * @return UEnumeration for the available transliterators. + * Close with uenum_close(). + * + * @stable ICU 2.8 + */ +U_STABLE UEnumeration * U_EXPORT2 +utrans_openIDs(UErrorCode *pErrorCode); + +/******************************************************************** + * Transliteration API + ********************************************************************/ + +/** + * Transliterate a segment of a UReplaceable string. The string is + * passed in as a UReplaceable pointer rep and a UReplaceableCallbacks + * function pointer struct repFunc. Functions in the repFunc struct + * will be called in order to modify the rep string. + * + * @param trans the transliterator + * @param rep a pointer to the string. This will be passed to the + * repFunc functions. + * @param repFunc a set of function pointers that will be used to + * modify the string pointed to by rep. + * @param start the beginning index, inclusive; 0 <= start <= + * limit. + * @param limit pointer to the ending index, exclusive; start <= + * limit <= repFunc->length(rep). Upon return, *limit will + * contain the new limit index. The text previously occupying + * [start, limit) has been transliterated, possibly to a + * string of a different length, at [start, + * new-limit), where new-limit + * is the return value. + * @param status a pointer to the UErrorCode + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +utrans_trans(const UTransliterator* trans, + UReplaceable* rep, + UReplaceableCallbacks* repFunc, + int32_t start, + int32_t* limit, + UErrorCode* status); + +/** + * Transliterate the portion of the UReplaceable text buffer that can + * be transliterated unambiguosly. This method is typically called + * after new text has been inserted, e.g. as a result of a keyboard + * event. The transliterator will try to transliterate characters of + * rep between index.cursor and + * index.limit. Characters before + * index.cursor will not be changed. + * + *

Upon return, values in index will be updated. + * index.start will be advanced to the first + * character that future calls to this method will read. + * index.cursor and index.limit will + * be adjusted to delimit the range of text that future calls to + * this method may change. + * + *

Typical usage of this method begins with an initial call + * with index.start and index.limit + * set to indicate the portion of text to be + * transliterated, and index.cursor == index.start. + * Thereafter, index can be used without + * modification in future calls, provided that all changes to + * text are made via this method. + * + *

This method assumes that future calls may be made that will + * insert new text into the buffer. As a result, it only performs + * unambiguous transliterations. After the last call to this method, + * there may be untransliterated text that is waiting for more input + * to resolve an ambiguity. In order to perform these pending + * transliterations, clients should call utrans_trans() with a start + * of index.start and a limit of index.end after the last call to this + * method has been made. + * + * @param trans the transliterator + * @param rep a pointer to the string. This will be passed to the + * repFunc functions. + * @param repFunc a set of function pointers that will be used to + * modify the string pointed to by rep. + * @param pos a struct containing the start and limit indices of the + * text to be read and the text to be transliterated + * @param status a pointer to the UErrorCode + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +utrans_transIncremental(const UTransliterator* trans, + UReplaceable* rep, + UReplaceableCallbacks* repFunc, + UTransPosition* pos, + UErrorCode* status); + +/** + * Transliterate a segment of a UChar* string. The string is passed + * in in a UChar* buffer. The string is modified in place. If the + * result is longer than textCapacity, it is truncated. The actual + * length of the result is returned in *textLength, if textLength is + * non-NULL. *textLength may be greater than textCapacity, but only + * textCapacity UChars will be written to *text, including the zero + * terminator. + * + * @param trans the transliterator + * @param text a pointer to a buffer containing the text to be + * transliterated on input and the result text on output. + * @param textLength a pointer to the length of the string in text. + * If the length is -1 then the string is assumed to be + * zero-terminated. Upon return, the new length is stored in + * *textLength. If textLength is NULL then the string is assumed to + * be zero-terminated. + * @param textCapacity a pointer to the length of the text buffer. + * Upon return, + * @param start the beginning index, inclusive; 0 <= start <= + * limit. + * @param limit pointer to the ending index, exclusive; start <= + * limit <= repFunc->length(rep). Upon return, *limit will + * contain the new limit index. The text previously occupying + * [start, limit) has been transliterated, possibly to a + * string of a different length, at [start, + * new-limit), where new-limit + * is the return value. + * @param status a pointer to the UErrorCode + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +utrans_transUChars(const UTransliterator* trans, + UChar* text, + int32_t* textLength, + int32_t textCapacity, + int32_t start, + int32_t* limit, + UErrorCode* status); + +/** + * Transliterate the portion of the UChar* text buffer that can be + * transliterated unambiguosly. See utrans_transIncremental(). The + * string is passed in in a UChar* buffer. The string is modified in + * place. If the result is longer than textCapacity, it is truncated. + * The actual length of the result is returned in *textLength, if + * textLength is non-NULL. *textLength may be greater than + * textCapacity, but only textCapacity UChars will be written to + * *text, including the zero terminator. See utrans_transIncremental() + * for usage details. + * + * @param trans the transliterator + * @param text a pointer to a buffer containing the text to be + * transliterated on input and the result text on output. + * @param textLength a pointer to the length of the string in text. + * If the length is -1 then the string is assumed to be + * zero-terminated. Upon return, the new length is stored in + * *textLength. If textLength is NULL then the string is assumed to + * be zero-terminated. + * @param textCapacity the length of the text buffer + * @param pos a struct containing the start and limit indices of the + * text to be read and the text to be transliterated + * @param status a pointer to the UErrorCode + * @see utrans_transIncremental + * @stable ICU 2.0 + */ +U_STABLE void U_EXPORT2 +utrans_transIncrementalUChars(const UTransliterator* trans, + UChar* text, + int32_t* textLength, + int32_t textCapacity, + UTransPosition* pos, + UErrorCode* status); + +/** + * Create a rule string that can be passed to utrans_openU to recreate this + * transliterator. + * + * @param trans The transliterator + * @param escapeUnprintable if TRUE then convert unprintable characters to their + * hex escape representations, \\uxxxx or \\Uxxxxxxxx. + * Unprintable characters are those other than + * U+000A, U+0020..U+007E. + * @param result A pointer to a buffer to receive the rules. + * @param resultLength The maximum size of result. + * @param status A pointer to the UErrorCode. In case of error status, the + * contents of result are undefined. + * @return int32_t The length of the rule string (may be greater than resultLength, + * in which case an error is returned). + * @stable ICU 53 + */ +U_STABLE int32_t U_EXPORT2 +utrans_toRules( const UTransliterator* trans, + UBool escapeUnprintable, + UChar* result, int32_t resultLength, + UErrorCode* status); + +/** + * Returns the set of all characters that may be modified in the input text by + * this UTransliterator, optionally ignoring the transliterator's current filter. + * @param trans The transliterator. + * @param ignoreFilter If FALSE, the returned set incorporates the + * UTransliterator's current filter; if the filter is changed, + * the return value of this function will change. If TRUE, the + * returned set ignores the effect of the UTransliterator's + * current filter. + * @param fillIn Pointer to a USet object to receive the modifiable characters + * set. Previous contents of fillIn are lost. If fillIn is + * NULL, then a new USet is created and returned. The caller + * owns the result and must dispose of it by calling uset_close. + * @param status A pointer to the UErrorCode. + * @return USet* Either fillIn, or if fillIn is NULL, a pointer to a + * newly-allocated USet that the user must close. In case of + * error, NULL is returned. + * @stable ICU 53 + */ +U_STABLE USet* U_EXPORT2 +utrans_getSourceSet(const UTransliterator* trans, + UBool ignoreFilter, + USet* fillIn, + UErrorCode* status); + +/* deprecated API ----------------------------------------------------------- */ + + +#endif /* #if !UCONFIG_NO_TRANSLITERATION */ + +#endif + +// vtzone.h +// No supported content + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_RS2) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/icwcfg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icwcfg.h new file mode 100644 index 0000000000000000000000000000000000000000..91f4c3f7c739adb829725f160e7519231b39fcdc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/icwcfg.h @@ -0,0 +1,114 @@ +/******************************************************************** + + ICWCFG.H + + Copyright(c) Microsoft Corporation, 1996-1998 + + *** N O T F O R E X T E R N A L R E L E A S E ******* + * + * This header file is not intended for distribution outside Microsoft. + * + *********************************************************** + + Header file for Internet Connection Wizard external configuration + routines found in INETCFG.DLL. + + Routines: + + CheckConnectionWizard - Checks which parts of ICW are installed + and if it has been run before. It optionally will start + either the full or manual path of ICW if it is insalled + but has not been run before. + + History: 10/22/96 Created + 10/24/96 Added defines and typedefs + 2/25/97 Added CreateDirectoryService -- jmazner + 4/24/97 Removed InetCreate*, these are now owned + by the Account Manager -- jmazner + + Support: This header file (and INETCFG.DLL) is supported by the + Internet Connection Wizard team (alias icwcore). Please + do not modify this directly. + +*********************************************************************/ + +#ifndef _ICWCFG_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// defines +// + +// ICW registry settings + +// HKEY_CURRENT_USER +#define ICW_REGPATHSETTINGS "Software\\Microsoft\\Internet Connection Wizard" +#define ICW_REGKEYCOMPLETED "Completed" + +// Maximum field lengths +#define ICW_MAX_ACCTNAME 256 +#define ICW_MAX_PASSWORD 256 // PWLEN +#define ICW_MAX_LOGONNAME 256 // UNLEN +#define ICW_MAX_SERVERNAME 64 +#define ICW_MAX_RASNAME 256 // RAS_MaxEntryName +#define ICW_MAX_EMAILNAME 64 +#define ICW_MAX_EMAILADDR 128 + +// Bit-mapped flags + +// CheckConnectionWizard input flags +#define ICW_CHECKSTATUS 0x0001 + +#define ICW_LAUNCHFULL 0x0100 +#define ICW_LAUNCHMANUAL 0x0200 +#define ICW_USE_SHELLNEXT 0x0400 +#define ICW_FULL_SMARTSTART 0x0800 + +// CheckConnectionWizard output flags +#define ICW_FULLPRESENT 0x0001 +#define ICW_MANUALPRESENT 0x0002 +#define ICW_ALREADYRUN 0x0004 + +#define ICW_LAUNCHEDFULL 0x0100 +#define ICW_LAUNCHEDMANUAL 0x0200 + +// InetCreateMailNewsAccount input flags +#define ICW_USEDEFAULTS 0x0001 + +#ifdef __cplusplus +extern "C" +{ +#endif // __cplusplus + + +// +// external function typedefs +// +typedef DWORD (WINAPI *PFNCHECKCONNECTIONWIZARD) (DWORD, LPDWORD); +typedef DWORD (WINAPI *PFNSETSHELLNEXT) (_In_ PSTR); + +// +// external function declarations +// +DWORD WINAPI CheckConnectionWizard(DWORD, LPDWORD); + +DWORD +WINAPI +SetShellNext( + _In_ PSTR szShellNext + ); + + +#ifdef __cplusplus +} +#endif // __cplusplus + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _ICWCFG_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ieautomation.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ieautomation.h new file mode 100644 index 0000000000000000000000000000000000000000..e6ede163dbfe83115e78cac65bde093a9897fcc8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ieautomation.h @@ -0,0 +1,474 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __ieautomation_h__ +#define __ieautomation_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEnumManagerFrames_FWD_DEFINED__ +#define __IEnumManagerFrames_FWD_DEFINED__ +typedef interface IEnumManagerFrames IEnumManagerFrames; + +#endif /* __IEnumManagerFrames_FWD_DEFINED__ */ + + +#ifndef __IInternetExplorerManager_FWD_DEFINED__ +#define __IInternetExplorerManager_FWD_DEFINED__ +typedef interface IInternetExplorerManager IInternetExplorerManager; + +#endif /* __IInternetExplorerManager_FWD_DEFINED__ */ + + +#ifndef __IInternetExplorerManager2_FWD_DEFINED__ +#define __IInternetExplorerManager2_FWD_DEFINED__ +typedef interface IInternetExplorerManager2 IInternetExplorerManager2; + +#endif /* __IInternetExplorerManager2_FWD_DEFINED__ */ + + +#ifndef __InternetExplorerManager_FWD_DEFINED__ +#define __InternetExplorerManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class InternetExplorerManager InternetExplorerManager; +#else +typedef struct InternetExplorerManager InternetExplorerManager; +#endif /* __cplusplus */ + +#endif /* __InternetExplorerManager_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_ieautomation_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// ieautomation.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [helpstring][uuid] */ DECLSPEC_UUID("44EC9B57-DCAB-4CDE-B373-EE94962950E3") +enum INTERNETEXPLORERCONFIGURATION + { + INTERNETEXPLORERCONFIGURATION_HOST = 0x1, + INTERNETEXPLORERCONFIGURATION_WEB_DRIVER = 0x2, + INTERNETEXPLORERCONFIGURATION_WEB_DRIVER_EDGE = 0x4 + } INTERNETEXPLORERCONFIGURATION; + + + +extern RPC_IF_HANDLE __MIDL_itf_ieautomation_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ieautomation_0000_0000_v0_0_s_ifspec; + +#ifndef __IEnumManagerFrames_INTERFACE_DEFINED__ +#define __IEnumManagerFrames_INTERFACE_DEFINED__ + +/* interface IEnumManagerFrames */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumManagerFrames; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3CAA826A-9B1F-4A79-BC81-F0430DED1648") + IEnumManagerFrames : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) HWND **ppWindows, + /* [out] */ __RPC__out ULONG *pceltFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Count( + /* [out] */ __RPC__out ULONG *pcelt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumManagerFrames **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumManagerFramesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumManagerFrames * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumManagerFrames * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumManagerFrames * This); + + DECLSPEC_XFGVIRT(IEnumManagerFrames, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumManagerFrames * This, + /* [in] */ ULONG celt, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(celt, *pceltFetched) HWND **ppWindows, + /* [out] */ __RPC__out ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumManagerFrames, Count) + HRESULT ( STDMETHODCALLTYPE *Count )( + __RPC__in IEnumManagerFrames * This, + /* [out] */ __RPC__out ULONG *pcelt); + + DECLSPEC_XFGVIRT(IEnumManagerFrames, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumManagerFrames * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumManagerFrames, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumManagerFrames * This); + + DECLSPEC_XFGVIRT(IEnumManagerFrames, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumManagerFrames * This, + /* [out] */ __RPC__deref_out_opt IEnumManagerFrames **ppEnum); + + END_INTERFACE + } IEnumManagerFramesVtbl; + + interface IEnumManagerFrames + { + CONST_VTBL struct IEnumManagerFramesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumManagerFrames_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumManagerFrames_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumManagerFrames_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumManagerFrames_Next(This,celt,ppWindows,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,ppWindows,pceltFetched) ) + +#define IEnumManagerFrames_Count(This,pcelt) \ + ( (This)->lpVtbl -> Count(This,pcelt) ) + +#define IEnumManagerFrames_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumManagerFrames_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumManagerFrames_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumManagerFrames_INTERFACE_DEFINED__ */ + + +#ifndef __IInternetExplorerManager_INTERFACE_DEFINED__ +#define __IInternetExplorerManager_INTERFACE_DEFINED__ + +/* interface IInternetExplorerManager */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IInternetExplorerManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ACC84351-04FF-44F9-B23F-655ED168C6D5") + IInternetExplorerManager : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateObject( + /* [in] */ DWORD dwConfig, + /* [string][unique][in] */ __RPC__in_opt_string LPCWSTR pszURL, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppv) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInternetExplorerManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInternetExplorerManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInternetExplorerManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInternetExplorerManager * This); + + DECLSPEC_XFGVIRT(IInternetExplorerManager, CreateObject) + HRESULT ( STDMETHODCALLTYPE *CreateObject )( + __RPC__in IInternetExplorerManager * This, + /* [in] */ DWORD dwConfig, + /* [string][unique][in] */ __RPC__in_opt_string LPCWSTR pszURL, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppv); + + END_INTERFACE + } IInternetExplorerManagerVtbl; + + interface IInternetExplorerManager + { + CONST_VTBL struct IInternetExplorerManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInternetExplorerManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInternetExplorerManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInternetExplorerManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInternetExplorerManager_CreateObject(This,dwConfig,pszURL,riid,ppv) \ + ( (This)->lpVtbl -> CreateObject(This,dwConfig,pszURL,riid,ppv) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInternetExplorerManager_INTERFACE_DEFINED__ */ + + +#ifndef __IInternetExplorerManager2_INTERFACE_DEFINED__ +#define __IInternetExplorerManager2_INTERFACE_DEFINED__ + +/* interface IInternetExplorerManager2 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IInternetExplorerManager2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DFBB5136-9259-4895-B4A7-C1934429919A") + IInternetExplorerManager2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE EnumFrameWindows( + /* [out] */ __RPC__deref_out_opt IEnumManagerFrames **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInternetExplorerManager2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInternetExplorerManager2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInternetExplorerManager2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInternetExplorerManager2 * This); + + DECLSPEC_XFGVIRT(IInternetExplorerManager2, EnumFrameWindows) + HRESULT ( STDMETHODCALLTYPE *EnumFrameWindows )( + __RPC__in IInternetExplorerManager2 * This, + /* [out] */ __RPC__deref_out_opt IEnumManagerFrames **ppEnum); + + END_INTERFACE + } IInternetExplorerManager2Vtbl; + + interface IInternetExplorerManager2 + { + CONST_VTBL struct IInternetExplorerManager2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInternetExplorerManager2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInternetExplorerManager2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInternetExplorerManager2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInternetExplorerManager2_EnumFrameWindows(This,ppEnum) \ + ( (This)->lpVtbl -> EnumFrameWindows(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInternetExplorerManager2_INTERFACE_DEFINED__ */ + + + +#ifndef __InternetExplorerAutomationLib_LIBRARY_DEFINED__ +#define __InternetExplorerAutomationLib_LIBRARY_DEFINED__ + +/* library InternetExplorerAutomationLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_InternetExplorerAutomationLib; + +EXTERN_C const CLSID CLSID_InternetExplorerManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("DF4FCC34-067A-4E0A-8352-4A1A5095346E") +InternetExplorerManager; +#endif +#endif /* __InternetExplorerAutomationLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_ieautomation_0000_0004 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_ieautomation_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_ieautomation_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ieautomation.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ieautomation.idl new file mode 100644 index 0000000000000000000000000000000000000000..73707bd6c1735d1147aa37dde422efc36b739365 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ieautomation.idl @@ -0,0 +1,126 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// ieautomation.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include +import "ocidl.idl"; + +typedef +[ + uuid(44EC9B57-DCAB-4CDE-B373-EE94962950E3), + helpstring("Constants for InternetExlorerManager's Configuration") +] + +// By default regardless of which enum is set, CLSID_InternetExplorerManager is always: +// - no frame merging +// - isolated from CLSID_InternetExplorer and other IE instances +// - TabProcGrowth = 1 +// - always run in non-EPM mode +enum INTERNETEXPLORERCONFIGURATION { + // INTERNETEXPLORERCONFIGURATION_HOST will have: + // - disable first run dialog and welcome page + // - disable crash and hang recover + // - disable toolbar and bho + // - only accept pszUrl as NULL and always return a low-IL webbrowser instance + INTERNETEXPLORERCONFIGURATION_HOST = 0x0001, + + // INTERNETEXPLORERCONFIGURATION_WEB_DRIVER is unused. + INTERNETEXPLORERCONFIGURATION_WEB_DRIVER = 0x0002, + + // INTERNETEXPLORERCONFIGURATION_WEB_DRIVER_EDGE is unused. + INTERNETEXPLORERCONFIGURATION_WEB_DRIVER_EDGE = 0x0004, +} INTERNETEXPLORERCONFIGURATION; + +[ + object, + uuid(3CAA826A-9B1F-4A79-BC81-F0430DED1648), // IID_IEnumManagerFrames + helpstring("IEnumManagerFrames Interface"), + pointer_default(unique) +] +interface IEnumManagerFrames : IUnknown +{ + HRESULT Next( + [in] ULONG celt, + [out, size_is(celt), length_is(*pceltFetched)] HWND ** ppWindows, + [out] ULONG * pceltFetched); + + HRESULT Count( + [out] ULONG * pcelt); + + HRESULT Skip( + [in] ULONG celt); + + HRESULT Reset(); + + HRESULT Clone( + [out] IEnumManagerFrames ** ppEnum); +}; + +[ + object, + uuid(ACC84351-04FF-44F9-B23F-655ED168C6D5), // IID_IInternetExplorerManager + helpstring("IInternetExplorerManager Interface"), + pointer_default(unique) +] +interface IInternetExplorerManager : IUnknown +{ + // CreateObject will create a browser object based on the dwConfig and the URL + HRESULT CreateObject([in] DWORD dwConfig, // INTERNETEXPLORERCONFIGURATION enumeration + [in, unique, string] LPCWSTR pszURL, // The url that likely to be navigated to + [in] REFIID riid, // Interface identifier + [out, iid_is(riid)] void **ppv); // Get the point to the object instance +}; + +[ + object, + uuid(DFBB5136-9259-4895-B4A7-C1934429919A), + helpstring("IInternetExplorerManager2 Interface"), + pointer_default(unique) +] +interface IInternetExplorerManager2 : IUnknown +{ + HRESULT EnumFrameWindows([out] IEnumManagerFrames ** ppEnum); +}; + +[ + uuid( CFCAFE7B-E20E-41B0-B27E-D62F6A36FED0 ), + version( 1.0 ), + helpstring( "InternetExplorerAutomation 1.0 Type Library") +] +library InternetExplorerAutomationLib +{ + [ + uuid(DF4FCC34-067A-4E0A-8352-4A1A5095346E), // CLSID_InternetExplorerManager + helpstring("Internet Explorer Manager"), + ] + coclass InternetExplorerManager + { + [default] interface IInternetExplorerManager; + interface IInternetExplorerManager2; + }; +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iewebdriver.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iewebdriver.h new file mode 100644 index 0000000000000000000000000000000000000000..601fbf0f1cf95395fd5911164aa829de0fb8ab63 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iewebdriver.h @@ -0,0 +1,462 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __iewebdriver_h__ +#define __iewebdriver_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IIEWebDriverSite_FWD_DEFINED__ +#define __IIEWebDriverSite_FWD_DEFINED__ +typedef interface IIEWebDriverSite IIEWebDriverSite; + +#endif /* __IIEWebDriverSite_FWD_DEFINED__ */ + + +#ifndef __IIEWebDriverManager_FWD_DEFINED__ +#define __IIEWebDriverManager_FWD_DEFINED__ +typedef interface IIEWebDriverManager IIEWebDriverManager; + +#endif /* __IIEWebDriverManager_FWD_DEFINED__ */ + + +#ifndef __IEWebDriverManager_FWD_DEFINED__ +#define __IEWebDriverManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IEWebDriverManager IEWebDriverManager; +#else +typedef struct IEWebDriverManager IEWebDriverManager; +#endif /* __cplusplus */ + +#endif /* __IEWebDriverManager_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_iewebdriver_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// iewebdriver.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_iewebdriver_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iewebdriver_0000_0000_v0_0_s_ifspec; + +#ifndef __IIEWebDriverSite_INTERFACE_DEFINED__ +#define __IIEWebDriverSite_INTERFACE_DEFINED__ + +/* interface IIEWebDriverSite */ +/* [unique][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IIEWebDriverSite; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FFB84444-453D-4FBC-9F9D-8DB5C471EC75") + IIEWebDriverSite : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE WindowOperation( + /* [in] */ DWORD operationCode, + /* [in] */ DWORD hWnd) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE DetachWebdriver( + /* [in] */ __RPC__in_opt IUnknown *pUnkWD) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetCapabilityValue( + /* [in] */ __RPC__in_opt IUnknown *pUnkWD, + /* [in] */ __RPC__in LPWSTR capName, + /* [out] */ __RPC__out VARIANT *capValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIEWebDriverSiteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIEWebDriverSite * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIEWebDriverSite * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIEWebDriverSite * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IIEWebDriverSite * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IIEWebDriverSite * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IIEWebDriverSite * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IIEWebDriverSite * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IIEWebDriverSite, WindowOperation) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *WindowOperation )( + __RPC__in IIEWebDriverSite * This, + /* [in] */ DWORD operationCode, + /* [in] */ DWORD hWnd); + + DECLSPEC_XFGVIRT(IIEWebDriverSite, DetachWebdriver) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DetachWebdriver )( + __RPC__in IIEWebDriverSite * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkWD); + + DECLSPEC_XFGVIRT(IIEWebDriverSite, GetCapabilityValue) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetCapabilityValue )( + __RPC__in IIEWebDriverSite * This, + /* [in] */ __RPC__in_opt IUnknown *pUnkWD, + /* [in] */ __RPC__in LPWSTR capName, + /* [out] */ __RPC__out VARIANT *capValue); + + END_INTERFACE + } IIEWebDriverSiteVtbl; + + interface IIEWebDriverSite + { + CONST_VTBL struct IIEWebDriverSiteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIEWebDriverSite_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIEWebDriverSite_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIEWebDriverSite_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIEWebDriverSite_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IIEWebDriverSite_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IIEWebDriverSite_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IIEWebDriverSite_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IIEWebDriverSite_WindowOperation(This,operationCode,hWnd) \ + ( (This)->lpVtbl -> WindowOperation(This,operationCode,hWnd) ) + +#define IIEWebDriverSite_DetachWebdriver(This,pUnkWD) \ + ( (This)->lpVtbl -> DetachWebdriver(This,pUnkWD) ) + +#define IIEWebDriverSite_GetCapabilityValue(This,pUnkWD,capName,capValue) \ + ( (This)->lpVtbl -> GetCapabilityValue(This,pUnkWD,capName,capValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIEWebDriverSite_INTERFACE_DEFINED__ */ + + +#ifndef __IIEWebDriverManager_INTERFACE_DEFINED__ +#define __IIEWebDriverManager_INTERFACE_DEFINED__ + +/* interface IIEWebDriverManager */ +/* [unique][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IIEWebDriverManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BD1DC630-6590-4CA2-A293-6BC72B2438D8") + IIEWebDriverManager : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ExecuteCommand( + /* [in] */ __RPC__in LPWSTR command, + /* [out] */ __RPC__deref_out_opt LPWSTR *response) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIEWebDriverManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIEWebDriverManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIEWebDriverManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIEWebDriverManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IIEWebDriverManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IIEWebDriverManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IIEWebDriverManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IIEWebDriverManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IIEWebDriverManager, ExecuteCommand) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ExecuteCommand )( + __RPC__in IIEWebDriverManager * This, + /* [in] */ __RPC__in LPWSTR command, + /* [out] */ __RPC__deref_out_opt LPWSTR *response); + + END_INTERFACE + } IIEWebDriverManagerVtbl; + + interface IIEWebDriverManager + { + CONST_VTBL struct IIEWebDriverManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIEWebDriverManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIEWebDriverManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIEWebDriverManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIEWebDriverManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IIEWebDriverManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IIEWebDriverManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IIEWebDriverManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IIEWebDriverManager_ExecuteCommand(This,command,response) \ + ( (This)->lpVtbl -> ExecuteCommand(This,command,response) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIEWebDriverManager_INTERFACE_DEFINED__ */ + + + +#ifndef __IEWebDriverLib_LIBRARY_DEFINED__ +#define __IEWebDriverLib_LIBRARY_DEFINED__ + +/* library IEWebDriverLib */ +/* [version][uuid] */ + + +EXTERN_C const IID LIBID_IEWebDriverLib; + +EXTERN_C const CLSID CLSID_IEWebDriverManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("90314AF2-5250-47B3-89D8-6295FC23BC22") +IEWebDriverManager; +#endif +#endif /* __IEWebDriverLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_iewebdriver_0000_0003 */ +/* [local] */ + +#define SID_SIEWebDriverManager IID_IIEWebDriverManager +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_iewebdriver_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iewebdriver_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iewebdriver.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iewebdriver.idl new file mode 100644 index 0000000000000000000000000000000000000000..b60f70027e4fd4a3025cc38570fb16618047090f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iewebdriver.idl @@ -0,0 +1,70 @@ +//+------------------------------------------------------------------------ +// +// Copyright (C) Microsoft Corporation +// +// File: IEWebDriver.idl +// +//------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// iewebdriver.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +[ + object, + uuid(FFB84444-453D-4FBC-9F9D-8DB5C471EC75), + dual, + nonextensible, + pointer_default(unique) +] +interface IIEWebDriverSite : IDispatch { + [id(2)] HRESULT WindowOperation([in] DWORD operationCode, [in] DWORD hWnd); + [id(3)] HRESULT DetachWebdriver([in] IUnknown * pUnkWD); + [id(4)] HRESULT GetCapabilityValue([in] IUnknown * pUnkWD, [in] LPWSTR capName, [out] VARIANT * capValue); +}; + +[ + object, + uuid(BD1DC630-6590-4CA2-A293-6BC72B2438D8), + dual, + nonextensible, + pointer_default(unique) +] +interface IIEWebDriverManager : IDispatch{ + [id(1)] HRESULT ExecuteCommand([in] LPWSTR command, [out] LPWSTR * response); +}; + +[ + uuid(B7BBFE94-693D-48EE-B236-A189FBB69937), + version(1.0), +] +library IEWebDriverLib +{ + importlib("stdole2.tlb"); + [ + uuid(90314AF2-5250-47B3-89D8-6295FC23BC22) + ] + coclass IEWebDriverManager + { + [default] interface IIEWebDriverManager; + interface IIEWebDriverSite; + }; +}; + +cpp_quote("#define SID_SIEWebDriverManager IID_IIEWebDriverManager") +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iextag.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iextag.h new file mode 100644 index 0000000000000000000000000000000000000000..558d86b66b7bbc27aed3d8e9aba28308179acd10 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iextag.h @@ -0,0 +1,2927 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __iextag_h__ +#define __iextag_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IPeerFactory_FWD_DEFINED__ +#define __IPeerFactory_FWD_DEFINED__ +typedef interface IPeerFactory IPeerFactory; + +#endif /* __IPeerFactory_FWD_DEFINED__ */ + + +#ifndef __IHomePage_FWD_DEFINED__ +#define __IHomePage_FWD_DEFINED__ +typedef interface IHomePage IHomePage; + +#endif /* __IHomePage_FWD_DEFINED__ */ + + +#ifndef __IIntelliForms_FWD_DEFINED__ +#define __IIntelliForms_FWD_DEFINED__ +typedef interface IIntelliForms IIntelliForms; + +#endif /* __IIntelliForms_FWD_DEFINED__ */ + + +#ifndef __Iwfolders_FWD_DEFINED__ +#define __Iwfolders_FWD_DEFINED__ +typedef interface Iwfolders Iwfolders; + +#endif /* __Iwfolders_FWD_DEFINED__ */ + + +#ifndef __IAnchorClick_FWD_DEFINED__ +#define __IAnchorClick_FWD_DEFINED__ +typedef interface IAnchorClick IAnchorClick; + +#endif /* __IAnchorClick_FWD_DEFINED__ */ + + +#ifndef __HTMLPersistEvents_FWD_DEFINED__ +#define __HTMLPersistEvents_FWD_DEFINED__ +typedef interface HTMLPersistEvents HTMLPersistEvents; + +#endif /* __HTMLPersistEvents_FWD_DEFINED__ */ + + +#ifndef __IHTMLUserDataOM_FWD_DEFINED__ +#define __IHTMLUserDataOM_FWD_DEFINED__ +typedef interface IHTMLUserDataOM IHTMLUserDataOM; + +#endif /* __IHTMLUserDataOM_FWD_DEFINED__ */ + + +#ifndef __IHTMLPersistDataOM_FWD_DEFINED__ +#define __IHTMLPersistDataOM_FWD_DEFINED__ +typedef interface IHTMLPersistDataOM IHTMLPersistDataOM; + +#endif /* __IHTMLPersistDataOM_FWD_DEFINED__ */ + + +#ifndef __IHTMLPersistData_FWD_DEFINED__ +#define __IHTMLPersistData_FWD_DEFINED__ +typedef interface IHTMLPersistData IHTMLPersistData; + +#endif /* __IHTMLPersistData_FWD_DEFINED__ */ + + +#ifndef __IDownloadBehavior_FWD_DEFINED__ +#define __IDownloadBehavior_FWD_DEFINED__ +typedef interface IDownloadBehavior IDownloadBehavior; + +#endif /* __IDownloadBehavior_FWD_DEFINED__ */ + + +#ifndef __LayoutRectEvents_FWD_DEFINED__ +#define __LayoutRectEvents_FWD_DEFINED__ +typedef interface LayoutRectEvents LayoutRectEvents; + +#endif /* __LayoutRectEvents_FWD_DEFINED__ */ + + +#ifndef __ILayoutRect_FWD_DEFINED__ +#define __ILayoutRect_FWD_DEFINED__ +typedef interface ILayoutRect ILayoutRect; + +#endif /* __ILayoutRect_FWD_DEFINED__ */ + + +#ifndef __IDeviceRect_FWD_DEFINED__ +#define __IDeviceRect_FWD_DEFINED__ +typedef interface IDeviceRect IDeviceRect; + +#endif /* __IDeviceRect_FWD_DEFINED__ */ + + +#ifndef __IHeaderFooter_FWD_DEFINED__ +#define __IHeaderFooter_FWD_DEFINED__ +typedef interface IHeaderFooter IHeaderFooter; + +#endif /* __IHeaderFooter_FWD_DEFINED__ */ + + +#ifndef __IHeaderFooter2_FWD_DEFINED__ +#define __IHeaderFooter2_FWD_DEFINED__ +typedef interface IHeaderFooter2 IHeaderFooter2; + +#endif /* __IHeaderFooter2_FWD_DEFINED__ */ + + +#ifndef __PeerFactory_FWD_DEFINED__ +#define __PeerFactory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class PeerFactory PeerFactory; +#else +typedef struct PeerFactory PeerFactory; +#endif /* __cplusplus */ + +#endif /* __PeerFactory_FWD_DEFINED__ */ + + +#ifndef __IntelliForms_FWD_DEFINED__ +#define __IntelliForms_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IntelliForms IntelliForms; +#else +typedef struct IntelliForms IntelliForms; +#endif /* __cplusplus */ + +#endif /* __IntelliForms_FWD_DEFINED__ */ + + +#ifndef __HomePage_FWD_DEFINED__ +#define __HomePage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class HomePage HomePage; +#else +typedef struct HomePage HomePage; +#endif /* __cplusplus */ + +#endif /* __HomePage_FWD_DEFINED__ */ + + +#ifndef __CPersistUserData_FWD_DEFINED__ +#define __CPersistUserData_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CPersistUserData CPersistUserData; +#else +typedef struct CPersistUserData CPersistUserData; +#endif /* __cplusplus */ + +#endif /* __CPersistUserData_FWD_DEFINED__ */ + + +#ifndef __CPersistDataPeer_FWD_DEFINED__ +#define __CPersistDataPeer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CPersistDataPeer CPersistDataPeer; +#else +typedef struct CPersistDataPeer CPersistDataPeer; +#endif /* __cplusplus */ + +#endif /* __CPersistDataPeer_FWD_DEFINED__ */ + + +#ifndef __CPersistShortcut_FWD_DEFINED__ +#define __CPersistShortcut_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CPersistShortcut CPersistShortcut; +#else +typedef struct CPersistShortcut CPersistShortcut; +#endif /* __cplusplus */ + +#endif /* __CPersistShortcut_FWD_DEFINED__ */ + + +#ifndef __CPersistHistory_FWD_DEFINED__ +#define __CPersistHistory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CPersistHistory CPersistHistory; +#else +typedef struct CPersistHistory CPersistHistory; +#endif /* __cplusplus */ + +#endif /* __CPersistHistory_FWD_DEFINED__ */ + + +#ifndef __CPersistSnapshot_FWD_DEFINED__ +#define __CPersistSnapshot_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CPersistSnapshot CPersistSnapshot; +#else +typedef struct CPersistSnapshot CPersistSnapshot; +#endif /* __cplusplus */ + +#endif /* __CPersistSnapshot_FWD_DEFINED__ */ + + +#ifndef __CDownloadBehavior_FWD_DEFINED__ +#define __CDownloadBehavior_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CDownloadBehavior CDownloadBehavior; +#else +typedef struct CDownloadBehavior CDownloadBehavior; +#endif /* __cplusplus */ + +#endif /* __CDownloadBehavior_FWD_DEFINED__ */ + + +#ifndef __wfolders_FWD_DEFINED__ +#define __wfolders_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class wfolders wfolders; +#else +typedef struct wfolders wfolders; +#endif /* __cplusplus */ + +#endif /* __wfolders_FWD_DEFINED__ */ + + +#ifndef __AnchorClick_FWD_DEFINED__ +#define __AnchorClick_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class AnchorClick AnchorClick; +#else +typedef struct AnchorClick AnchorClick; +#endif /* __cplusplus */ + +#endif /* __AnchorClick_FWD_DEFINED__ */ + + +#ifndef __CLayoutRect_FWD_DEFINED__ +#define __CLayoutRect_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CLayoutRect CLayoutRect; +#else +typedef struct CLayoutRect CLayoutRect; +#endif /* __cplusplus */ + +#endif /* __CLayoutRect_FWD_DEFINED__ */ + + +#ifndef __CDeviceRect_FWD_DEFINED__ +#define __CDeviceRect_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CDeviceRect CDeviceRect; +#else +typedef struct CDeviceRect CDeviceRect; +#endif /* __cplusplus */ + +#endif /* __CDeviceRect_FWD_DEFINED__ */ + + +#ifndef __CHeaderFooter_FWD_DEFINED__ +#define __CHeaderFooter_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CHeaderFooter CHeaderFooter; +#else +typedef struct CHeaderFooter CHeaderFooter; +#endif /* __cplusplus */ + +#endif /* __CHeaderFooter_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_iextag_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// iextag.h +//=--------------------------------------------------------------------------= +// (C) Copyright Microsoft Corporation. All Rights Reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_iextag_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iextag_0000_0000_v0_0_s_ifspec; + +#ifndef __IPeerFactory_INTERFACE_DEFINED__ +#define __IPeerFactory_INTERFACE_DEFINED__ + +/* interface IPeerFactory */ +/* [object][unique][helpstring][uuid] */ + + +EXTERN_C const IID IID_IPeerFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6663F9D3-B482-11d1-89C6-00C04FB6BFC4") + IPeerFactory : public IUnknown + { + public: + }; + + +#else /* C style interface */ + + typedef struct IPeerFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPeerFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPeerFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPeerFactory * This); + + END_INTERFACE + } IPeerFactoryVtbl; + + interface IPeerFactory + { + CONST_VTBL struct IPeerFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPeerFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPeerFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPeerFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPeerFactory_INTERFACE_DEFINED__ */ + + +#ifndef __IHomePage_INTERFACE_DEFINED__ +#define __IHomePage_INTERFACE_DEFINED__ + +/* interface IHomePage */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IHomePage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("766BF2AF-D650-11d1-9811-00C04FC31D2E") + IHomePage : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE navigateHomePage( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE setHomePage( + /* [in] */ __RPC__in BSTR bstrURL) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE isHomePage( + /* [in] */ __RPC__in BSTR bstrURL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *p) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHomePageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHomePage * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHomePage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHomePage * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IHomePage * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IHomePage * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IHomePage * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IHomePage * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IHomePage, navigateHomePage) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *navigateHomePage )( + __RPC__in IHomePage * This); + + DECLSPEC_XFGVIRT(IHomePage, setHomePage) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *setHomePage )( + __RPC__in IHomePage * This, + /* [in] */ __RPC__in BSTR bstrURL); + + DECLSPEC_XFGVIRT(IHomePage, isHomePage) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *isHomePage )( + __RPC__in IHomePage * This, + /* [in] */ __RPC__in BSTR bstrURL, + /* [retval][out] */ __RPC__out VARIANT_BOOL *p); + + END_INTERFACE + } IHomePageVtbl; + + interface IHomePage + { + CONST_VTBL struct IHomePageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHomePage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHomePage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHomePage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHomePage_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IHomePage_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IHomePage_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IHomePage_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IHomePage_navigateHomePage(This) \ + ( (This)->lpVtbl -> navigateHomePage(This) ) + +#define IHomePage_setHomePage(This,bstrURL) \ + ( (This)->lpVtbl -> setHomePage(This,bstrURL) ) + +#define IHomePage_isHomePage(This,bstrURL,p) \ + ( (This)->lpVtbl -> isHomePage(This,bstrURL,p) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHomePage_INTERFACE_DEFINED__ */ + + +#ifndef __IIntelliForms_INTERFACE_DEFINED__ +#define __IIntelliForms_INTERFACE_DEFINED__ + +/* interface IIntelliForms */ +/* [unique][dual][uuid][object] */ + + +EXTERN_C const IID IID_IIntelliForms; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B9F68E6-1AAA-11d2-BCA5-00C04FD929DB") + IIntelliForms : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_enabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_enabled( + /* [in] */ VARIANT_BOOL bVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIntelliFormsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIntelliForms * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIntelliForms * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIntelliForms * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IIntelliForms * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IIntelliForms * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IIntelliForms * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IIntelliForms * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IIntelliForms, get_enabled) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_enabled )( + __RPC__in IIntelliForms * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IIntelliForms, put_enabled) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_enabled )( + __RPC__in IIntelliForms * This, + /* [in] */ VARIANT_BOOL bVal); + + END_INTERFACE + } IIntelliFormsVtbl; + + interface IIntelliForms + { + CONST_VTBL struct IIntelliFormsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIntelliForms_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIntelliForms_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIntelliForms_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIntelliForms_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IIntelliForms_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IIntelliForms_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IIntelliForms_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IIntelliForms_get_enabled(This,pVal) \ + ( (This)->lpVtbl -> get_enabled(This,pVal) ) + +#define IIntelliForms_put_enabled(This,bVal) \ + ( (This)->lpVtbl -> put_enabled(This,bVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIntelliForms_INTERFACE_DEFINED__ */ + + +#ifndef __Iwfolders_INTERFACE_DEFINED__ +#define __Iwfolders_INTERFACE_DEFINED__ + +/* interface Iwfolders */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_Iwfolders; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BAE31F98-1B81-11D2-A97A-00C04F8ECB02") + Iwfolders : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE navigate( + /* [in] */ __RPC__in BSTR bstrUrl, + /* [out][retval] */ __RPC__deref_out_opt BSTR *pbstrRetVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE navigateFrame( + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ __RPC__in BSTR bstrTargetFrame, + /* [out][retval] */ __RPC__deref_out_opt BSTR *pbstrRetVal) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE navigateNoSite( + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ __RPC__in BSTR bstrTargetFrame, + /* [in] */ DWORD dwhwnd, + /* [in] */ __RPC__in_opt IUnknown *pwb) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IwfoldersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in Iwfolders * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in Iwfolders * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in Iwfolders * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in Iwfolders * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in Iwfolders * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in Iwfolders * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + Iwfolders * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(Iwfolders, navigate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *navigate )( + __RPC__in Iwfolders * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [out][retval] */ __RPC__deref_out_opt BSTR *pbstrRetVal); + + DECLSPEC_XFGVIRT(Iwfolders, navigateFrame) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *navigateFrame )( + __RPC__in Iwfolders * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ __RPC__in BSTR bstrTargetFrame, + /* [out][retval] */ __RPC__deref_out_opt BSTR *pbstrRetVal); + + DECLSPEC_XFGVIRT(Iwfolders, navigateNoSite) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *navigateNoSite )( + __RPC__in Iwfolders * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ __RPC__in BSTR bstrTargetFrame, + /* [in] */ DWORD dwhwnd, + /* [in] */ __RPC__in_opt IUnknown *pwb); + + END_INTERFACE + } IwfoldersVtbl; + + interface Iwfolders + { + CONST_VTBL struct IwfoldersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define Iwfolders_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define Iwfolders_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define Iwfolders_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define Iwfolders_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define Iwfolders_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define Iwfolders_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define Iwfolders_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define Iwfolders_navigate(This,bstrUrl,pbstrRetVal) \ + ( (This)->lpVtbl -> navigate(This,bstrUrl,pbstrRetVal) ) + +#define Iwfolders_navigateFrame(This,bstrUrl,bstrTargetFrame,pbstrRetVal) \ + ( (This)->lpVtbl -> navigateFrame(This,bstrUrl,bstrTargetFrame,pbstrRetVal) ) + +#define Iwfolders_navigateNoSite(This,bstrUrl,bstrTargetFrame,dwhwnd,pwb) \ + ( (This)->lpVtbl -> navigateNoSite(This,bstrUrl,bstrTargetFrame,dwhwnd,pwb) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __Iwfolders_INTERFACE_DEFINED__ */ + + +#ifndef __IAnchorClick_INTERFACE_DEFINED__ +#define __IAnchorClick_INTERFACE_DEFINED__ + +/* interface IAnchorClick */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IAnchorClick; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("13D5413B-33B9-11D2-95A7-00C04F8ECB02") + IAnchorClick : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ProcOnClick( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAnchorClickVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IAnchorClick * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IAnchorClick * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IAnchorClick * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IAnchorClick * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IAnchorClick * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IAnchorClick * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IAnchorClick * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IAnchorClick, ProcOnClick) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ProcOnClick )( + __RPC__in IAnchorClick * This); + + END_INTERFACE + } IAnchorClickVtbl; + + interface IAnchorClick + { + CONST_VTBL struct IAnchorClickVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAnchorClick_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAnchorClick_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAnchorClick_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAnchorClick_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IAnchorClick_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IAnchorClick_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IAnchorClick_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IAnchorClick_ProcOnClick(This) \ + ( (This)->lpVtbl -> ProcOnClick(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAnchorClick_INTERFACE_DEFINED__ */ + + +#ifndef __IHTMLUserDataOM_INTERFACE_DEFINED__ +#define __IHTMLUserDataOM_INTERFACE_DEFINED__ + +/* interface IHTMLUserDataOM */ +/* [object][uuid][dual][oleautomation] */ + + +EXTERN_C const IID IID_IHTMLUserDataOM; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3050f48f-98b5-11cf-bb82-00aa00bdce0b") + IHTMLUserDataOM : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_XMLDocument( + /* [out][retval] */ __RPC__deref_out_opt IDispatch **p) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE save( + /* [in] */ __RPC__in BSTR strName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE load( + /* [in] */ __RPC__in BSTR strName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE getAttribute( + /* [in] */ __RPC__in BSTR name, + /* [out][retval] */ __RPC__out VARIANT *pValue) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE setAttribute( + /* [in] */ __RPC__in BSTR name, + /* [in] */ VARIANT value) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE removeAttribute( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_expires( + /* [in] */ __RPC__in BSTR bstr) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_expires( + /* [out][retval] */ __RPC__deref_out_opt BSTR *pbstr) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHTMLUserDataOMVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHTMLUserDataOM * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHTMLUserDataOM * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHTMLUserDataOM * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IHTMLUserDataOM * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IHTMLUserDataOM * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IHTMLUserDataOM * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IHTMLUserDataOM * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IHTMLUserDataOM, get_XMLDocument) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_XMLDocument )( + __RPC__in IHTMLUserDataOM * This, + /* [out][retval] */ __RPC__deref_out_opt IDispatch **p); + + DECLSPEC_XFGVIRT(IHTMLUserDataOM, save) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *save )( + __RPC__in IHTMLUserDataOM * This, + /* [in] */ __RPC__in BSTR strName); + + DECLSPEC_XFGVIRT(IHTMLUserDataOM, load) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *load )( + __RPC__in IHTMLUserDataOM * This, + /* [in] */ __RPC__in BSTR strName); + + DECLSPEC_XFGVIRT(IHTMLUserDataOM, getAttribute) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *getAttribute )( + __RPC__in IHTMLUserDataOM * This, + /* [in] */ __RPC__in BSTR name, + /* [out][retval] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IHTMLUserDataOM, setAttribute) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *setAttribute )( + __RPC__in IHTMLUserDataOM * This, + /* [in] */ __RPC__in BSTR name, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(IHTMLUserDataOM, removeAttribute) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *removeAttribute )( + __RPC__in IHTMLUserDataOM * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IHTMLUserDataOM, put_expires) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_expires )( + __RPC__in IHTMLUserDataOM * This, + /* [in] */ __RPC__in BSTR bstr); + + DECLSPEC_XFGVIRT(IHTMLUserDataOM, get_expires) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_expires )( + __RPC__in IHTMLUserDataOM * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *pbstr); + + END_INTERFACE + } IHTMLUserDataOMVtbl; + + interface IHTMLUserDataOM + { + CONST_VTBL struct IHTMLUserDataOMVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHTMLUserDataOM_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHTMLUserDataOM_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHTMLUserDataOM_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHTMLUserDataOM_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IHTMLUserDataOM_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IHTMLUserDataOM_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IHTMLUserDataOM_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IHTMLUserDataOM_get_XMLDocument(This,p) \ + ( (This)->lpVtbl -> get_XMLDocument(This,p) ) + +#define IHTMLUserDataOM_save(This,strName) \ + ( (This)->lpVtbl -> save(This,strName) ) + +#define IHTMLUserDataOM_load(This,strName) \ + ( (This)->lpVtbl -> load(This,strName) ) + +#define IHTMLUserDataOM_getAttribute(This,name,pValue) \ + ( (This)->lpVtbl -> getAttribute(This,name,pValue) ) + +#define IHTMLUserDataOM_setAttribute(This,name,value) \ + ( (This)->lpVtbl -> setAttribute(This,name,value) ) + +#define IHTMLUserDataOM_removeAttribute(This,name) \ + ( (This)->lpVtbl -> removeAttribute(This,name) ) + +#define IHTMLUserDataOM_put_expires(This,bstr) \ + ( (This)->lpVtbl -> put_expires(This,bstr) ) + +#define IHTMLUserDataOM_get_expires(This,pbstr) \ + ( (This)->lpVtbl -> get_expires(This,pbstr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHTMLUserDataOM_INTERFACE_DEFINED__ */ + + +#ifndef __IHTMLPersistDataOM_INTERFACE_DEFINED__ +#define __IHTMLPersistDataOM_INTERFACE_DEFINED__ + +/* interface IHTMLPersistDataOM */ +/* [object][uuid][dual][oleautomation] */ + + +EXTERN_C const IID IID_IHTMLPersistDataOM; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3050f4c0-98b5-11cf-bb82-00aa00bdce0b") + IHTMLPersistDataOM : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_XMLDocument( + /* [out][retval] */ __RPC__deref_out_opt IDispatch **p) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE getAttribute( + /* [in] */ __RPC__in BSTR name, + /* [out][retval] */ __RPC__out VARIANT *pValue) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE setAttribute( + /* [in] */ __RPC__in BSTR name, + /* [in] */ VARIANT value) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE removeAttribute( + /* [in] */ __RPC__in BSTR name) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHTMLPersistDataOMVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHTMLPersistDataOM * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHTMLPersistDataOM * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHTMLPersistDataOM * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IHTMLPersistDataOM * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IHTMLPersistDataOM * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IHTMLPersistDataOM * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IHTMLPersistDataOM * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IHTMLPersistDataOM, get_XMLDocument) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_XMLDocument )( + __RPC__in IHTMLPersistDataOM * This, + /* [out][retval] */ __RPC__deref_out_opt IDispatch **p); + + DECLSPEC_XFGVIRT(IHTMLPersistDataOM, getAttribute) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *getAttribute )( + __RPC__in IHTMLPersistDataOM * This, + /* [in] */ __RPC__in BSTR name, + /* [out][retval] */ __RPC__out VARIANT *pValue); + + DECLSPEC_XFGVIRT(IHTMLPersistDataOM, setAttribute) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *setAttribute )( + __RPC__in IHTMLPersistDataOM * This, + /* [in] */ __RPC__in BSTR name, + /* [in] */ VARIANT value); + + DECLSPEC_XFGVIRT(IHTMLPersistDataOM, removeAttribute) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *removeAttribute )( + __RPC__in IHTMLPersistDataOM * This, + /* [in] */ __RPC__in BSTR name); + + END_INTERFACE + } IHTMLPersistDataOMVtbl; + + interface IHTMLPersistDataOM + { + CONST_VTBL struct IHTMLPersistDataOMVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHTMLPersistDataOM_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHTMLPersistDataOM_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHTMLPersistDataOM_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHTMLPersistDataOM_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IHTMLPersistDataOM_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IHTMLPersistDataOM_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IHTMLPersistDataOM_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IHTMLPersistDataOM_get_XMLDocument(This,p) \ + ( (This)->lpVtbl -> get_XMLDocument(This,p) ) + +#define IHTMLPersistDataOM_getAttribute(This,name,pValue) \ + ( (This)->lpVtbl -> getAttribute(This,name,pValue) ) + +#define IHTMLPersistDataOM_setAttribute(This,name,value) \ + ( (This)->lpVtbl -> setAttribute(This,name,value) ) + +#define IHTMLPersistDataOM_removeAttribute(This,name) \ + ( (This)->lpVtbl -> removeAttribute(This,name) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHTMLPersistDataOM_INTERFACE_DEFINED__ */ + + +#ifndef __IHTMLPersistData_INTERFACE_DEFINED__ +#define __IHTMLPersistData_INTERFACE_DEFINED__ + +/* interface IHTMLPersistData */ +/* [object][uuid][dual][oleautomation] */ + + +EXTERN_C const IID IID_IHTMLPersistData; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3050f4c5-98b5-11cf-bb82-00aa00bdce0b") + IHTMLPersistData : public IUnknown + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE save( + /* [in] */ __RPC__in_opt IUnknown *pUnk, + /* [in] */ long lType, + /* [out][retval] */ __RPC__out VARIANT_BOOL *fContinueBroacast) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE load( + /* [in] */ __RPC__in_opt IUnknown *pUnk, + /* [in] */ long lType, + /* [out][retval] */ __RPC__out VARIANT_BOOL *fDoDefault) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE queryType( + /* [in] */ long lType, + /* [out][retval] */ __RPC__out VARIANT_BOOL *pfSupportsType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHTMLPersistDataVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHTMLPersistData * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHTMLPersistData * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHTMLPersistData * This); + + DECLSPEC_XFGVIRT(IHTMLPersistData, save) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *save )( + __RPC__in IHTMLPersistData * This, + /* [in] */ __RPC__in_opt IUnknown *pUnk, + /* [in] */ long lType, + /* [out][retval] */ __RPC__out VARIANT_BOOL *fContinueBroacast); + + DECLSPEC_XFGVIRT(IHTMLPersistData, load) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *load )( + __RPC__in IHTMLPersistData * This, + /* [in] */ __RPC__in_opt IUnknown *pUnk, + /* [in] */ long lType, + /* [out][retval] */ __RPC__out VARIANT_BOOL *fDoDefault); + + DECLSPEC_XFGVIRT(IHTMLPersistData, queryType) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *queryType )( + __RPC__in IHTMLPersistData * This, + /* [in] */ long lType, + /* [out][retval] */ __RPC__out VARIANT_BOOL *pfSupportsType); + + END_INTERFACE + } IHTMLPersistDataVtbl; + + interface IHTMLPersistData + { + CONST_VTBL struct IHTMLPersistDataVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHTMLPersistData_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHTMLPersistData_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHTMLPersistData_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHTMLPersistData_save(This,pUnk,lType,fContinueBroacast) \ + ( (This)->lpVtbl -> save(This,pUnk,lType,fContinueBroacast) ) + +#define IHTMLPersistData_load(This,pUnk,lType,fDoDefault) \ + ( (This)->lpVtbl -> load(This,pUnk,lType,fDoDefault) ) + +#define IHTMLPersistData_queryType(This,lType,pfSupportsType) \ + ( (This)->lpVtbl -> queryType(This,lType,pfSupportsType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHTMLPersistData_INTERFACE_DEFINED__ */ + + +#ifndef __IDownloadBehavior_INTERFACE_DEFINED__ +#define __IDownloadBehavior_INTERFACE_DEFINED__ + +/* interface IDownloadBehavior */ +/* [object][uuid][dual][oleautomation] */ + + +EXTERN_C const IID IID_IDownloadBehavior; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3050f5bd-98b5-11cf-bb82-00aa00bdce0b") + IDownloadBehavior : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE startDownload( + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ __RPC__in_opt IDispatch *pdispCallback) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDownloadBehaviorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDownloadBehavior * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDownloadBehavior * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDownloadBehavior * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDownloadBehavior * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDownloadBehavior * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDownloadBehavior * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDownloadBehavior * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDownloadBehavior, startDownload) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *startDownload )( + __RPC__in IDownloadBehavior * This, + /* [in] */ __RPC__in BSTR bstrUrl, + /* [in] */ __RPC__in_opt IDispatch *pdispCallback); + + END_INTERFACE + } IDownloadBehaviorVtbl; + + interface IDownloadBehavior + { + CONST_VTBL struct IDownloadBehaviorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDownloadBehavior_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDownloadBehavior_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDownloadBehavior_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDownloadBehavior_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDownloadBehavior_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDownloadBehavior_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDownloadBehavior_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDownloadBehavior_startDownload(This,bstrUrl,pdispCallback) \ + ( (This)->lpVtbl -> startDownload(This,bstrUrl,pdispCallback) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDownloadBehavior_INTERFACE_DEFINED__ */ + + +#ifndef __ILayoutRect_INTERFACE_DEFINED__ +#define __ILayoutRect_INTERFACE_DEFINED__ + +/* interface ILayoutRect */ +/* [object][uuid][dual][oleautomation] */ + + +EXTERN_C const IID IID_ILayoutRect; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3050f665-98b5-11cf-bb82-00aa00bdce0b") + ILayoutRect : public IDispatch + { + public: + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_nextRect( + /* [in] */ __RPC__in BSTR bstrElementId) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_nextRect( + /* [out][retval] */ __RPC__deref_out_opt BSTR *pbstrElementId) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_contentSrc( + /* [in] */ VARIANT varContentSrc) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_contentSrc( + /* [out][retval] */ __RPC__out VARIANT *pvarContentSrc) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_honorPageBreaks( + /* [in] */ VARIANT_BOOL v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_honorPageBreaks( + /* [out][retval] */ __RPC__out VARIANT_BOOL *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_honorPageRules( + /* [in] */ VARIANT_BOOL v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_honorPageRules( + /* [out][retval] */ __RPC__out VARIANT_BOOL *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_nextRectElement( + /* [in] */ __RPC__in_opt IDispatch *pElem) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_nextRectElement( + /* [out][retval] */ __RPC__deref_out_opt IDispatch **ppElem) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_contentDocument( + /* [out][retval] */ __RPC__deref_out_opt IDispatch **pDoc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILayoutRectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILayoutRect * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILayoutRect * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILayoutRect * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ILayoutRect * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ILayoutRect * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ILayoutRect * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ILayoutRect * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ILayoutRect, put_nextRect) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nextRect )( + __RPC__in ILayoutRect * This, + /* [in] */ __RPC__in BSTR bstrElementId); + + DECLSPEC_XFGVIRT(ILayoutRect, get_nextRect) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextRect )( + __RPC__in ILayoutRect * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *pbstrElementId); + + DECLSPEC_XFGVIRT(ILayoutRect, put_contentSrc) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_contentSrc )( + __RPC__in ILayoutRect * This, + /* [in] */ VARIANT varContentSrc); + + DECLSPEC_XFGVIRT(ILayoutRect, get_contentSrc) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_contentSrc )( + __RPC__in ILayoutRect * This, + /* [out][retval] */ __RPC__out VARIANT *pvarContentSrc); + + DECLSPEC_XFGVIRT(ILayoutRect, put_honorPageBreaks) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_honorPageBreaks )( + __RPC__in ILayoutRect * This, + /* [in] */ VARIANT_BOOL v); + + DECLSPEC_XFGVIRT(ILayoutRect, get_honorPageBreaks) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_honorPageBreaks )( + __RPC__in ILayoutRect * This, + /* [out][retval] */ __RPC__out VARIANT_BOOL *p); + + DECLSPEC_XFGVIRT(ILayoutRect, put_honorPageRules) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_honorPageRules )( + __RPC__in ILayoutRect * This, + /* [in] */ VARIANT_BOOL v); + + DECLSPEC_XFGVIRT(ILayoutRect, get_honorPageRules) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_honorPageRules )( + __RPC__in ILayoutRect * This, + /* [out][retval] */ __RPC__out VARIANT_BOOL *p); + + DECLSPEC_XFGVIRT(ILayoutRect, put_nextRectElement) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nextRectElement )( + __RPC__in ILayoutRect * This, + /* [in] */ __RPC__in_opt IDispatch *pElem); + + DECLSPEC_XFGVIRT(ILayoutRect, get_nextRectElement) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextRectElement )( + __RPC__in ILayoutRect * This, + /* [out][retval] */ __RPC__deref_out_opt IDispatch **ppElem); + + DECLSPEC_XFGVIRT(ILayoutRect, get_contentDocument) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_contentDocument )( + __RPC__in ILayoutRect * This, + /* [out][retval] */ __RPC__deref_out_opt IDispatch **pDoc); + + END_INTERFACE + } ILayoutRectVtbl; + + interface ILayoutRect + { + CONST_VTBL struct ILayoutRectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILayoutRect_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILayoutRect_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILayoutRect_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILayoutRect_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ILayoutRect_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ILayoutRect_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ILayoutRect_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ILayoutRect_put_nextRect(This,bstrElementId) \ + ( (This)->lpVtbl -> put_nextRect(This,bstrElementId) ) + +#define ILayoutRect_get_nextRect(This,pbstrElementId) \ + ( (This)->lpVtbl -> get_nextRect(This,pbstrElementId) ) + +#define ILayoutRect_put_contentSrc(This,varContentSrc) \ + ( (This)->lpVtbl -> put_contentSrc(This,varContentSrc) ) + +#define ILayoutRect_get_contentSrc(This,pvarContentSrc) \ + ( (This)->lpVtbl -> get_contentSrc(This,pvarContentSrc) ) + +#define ILayoutRect_put_honorPageBreaks(This,v) \ + ( (This)->lpVtbl -> put_honorPageBreaks(This,v) ) + +#define ILayoutRect_get_honorPageBreaks(This,p) \ + ( (This)->lpVtbl -> get_honorPageBreaks(This,p) ) + +#define ILayoutRect_put_honorPageRules(This,v) \ + ( (This)->lpVtbl -> put_honorPageRules(This,v) ) + +#define ILayoutRect_get_honorPageRules(This,p) \ + ( (This)->lpVtbl -> get_honorPageRules(This,p) ) + +#define ILayoutRect_put_nextRectElement(This,pElem) \ + ( (This)->lpVtbl -> put_nextRectElement(This,pElem) ) + +#define ILayoutRect_get_nextRectElement(This,ppElem) \ + ( (This)->lpVtbl -> get_nextRectElement(This,ppElem) ) + +#define ILayoutRect_get_contentDocument(This,pDoc) \ + ( (This)->lpVtbl -> get_contentDocument(This,pDoc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILayoutRect_INTERFACE_DEFINED__ */ + + +#ifndef __IDeviceRect_INTERFACE_DEFINED__ +#define __IDeviceRect_INTERFACE_DEFINED__ + +/* interface IDeviceRect */ +/* [object][uuid][dual][oleautomation] */ + + +EXTERN_C const IID IID_IDeviceRect; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3050f6d5-98b5-11cf-bb82-00aa00bdce0b") + IDeviceRect : public IDispatch + { + public: + }; + + +#else /* C style interface */ + + typedef struct IDeviceRectVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDeviceRect * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDeviceRect * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDeviceRect * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDeviceRect * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDeviceRect * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDeviceRect * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDeviceRect * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } IDeviceRectVtbl; + + interface IDeviceRect + { + CONST_VTBL struct IDeviceRectVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDeviceRect_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDeviceRect_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDeviceRect_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDeviceRect_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDeviceRect_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDeviceRect_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDeviceRect_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDeviceRect_INTERFACE_DEFINED__ */ + + +#ifndef __IHeaderFooter_INTERFACE_DEFINED__ +#define __IHeaderFooter_INTERFACE_DEFINED__ + +/* interface IHeaderFooter */ +/* [object][uuid][dual][oleautomation] */ + + +EXTERN_C const IID IID_IHeaderFooter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3050f6ce-98b5-11cf-bb82-00aa00bdce0b") + IHeaderFooter : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_htmlHead( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_htmlFoot( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_textHead( + /* [in] */ __RPC__in BSTR v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_textHead( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_textFoot( + /* [in] */ __RPC__in BSTR v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_textFoot( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_page( + /* [in] */ DWORD v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_page( + /* [out][retval] */ __RPC__out DWORD *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_pageTotal( + /* [in] */ DWORD v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_pageTotal( + /* [out][retval] */ __RPC__out DWORD *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_URL( + /* [in] */ __RPC__in BSTR v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_URL( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_title( + /* [in] */ __RPC__in BSTR v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_title( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_dateShort( + /* [in] */ __RPC__in BSTR v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_dateShort( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_dateLong( + /* [in] */ __RPC__in BSTR v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_dateLong( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_timeShort( + /* [in] */ __RPC__in BSTR v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_timeShort( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_timeLong( + /* [in] */ __RPC__in BSTR v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_timeLong( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHeaderFooterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHeaderFooter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHeaderFooter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHeaderFooter * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IHeaderFooter * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IHeaderFooter * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IHeaderFooter * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IHeaderFooter * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_htmlHead) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_htmlHead )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_htmlFoot) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_htmlFoot )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_textHead) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_textHead )( + __RPC__in IHeaderFooter * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_textHead) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_textHead )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_textFoot) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_textFoot )( + __RPC__in IHeaderFooter * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_textFoot) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_textFoot )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_page) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_page )( + __RPC__in IHeaderFooter * This, + /* [in] */ DWORD v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_page) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_page )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__out DWORD *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_pageTotal) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_pageTotal )( + __RPC__in IHeaderFooter * This, + /* [in] */ DWORD v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_pageTotal) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_pageTotal )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__out DWORD *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_URL) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_URL )( + __RPC__in IHeaderFooter * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_URL) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_URL )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_title) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_title )( + __RPC__in IHeaderFooter * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_title) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_title )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_dateShort) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dateShort )( + __RPC__in IHeaderFooter * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_dateShort) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dateShort )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_dateLong) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dateLong )( + __RPC__in IHeaderFooter * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_dateLong) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dateLong )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_timeShort) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_timeShort )( + __RPC__in IHeaderFooter * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_timeShort) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_timeShort )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_timeLong) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_timeLong )( + __RPC__in IHeaderFooter * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_timeLong) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_timeLong )( + __RPC__in IHeaderFooter * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + END_INTERFACE + } IHeaderFooterVtbl; + + interface IHeaderFooter + { + CONST_VTBL struct IHeaderFooterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHeaderFooter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHeaderFooter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHeaderFooter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHeaderFooter_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IHeaderFooter_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IHeaderFooter_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IHeaderFooter_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IHeaderFooter_get_htmlHead(This,p) \ + ( (This)->lpVtbl -> get_htmlHead(This,p) ) + +#define IHeaderFooter_get_htmlFoot(This,p) \ + ( (This)->lpVtbl -> get_htmlFoot(This,p) ) + +#define IHeaderFooter_put_textHead(This,v) \ + ( (This)->lpVtbl -> put_textHead(This,v) ) + +#define IHeaderFooter_get_textHead(This,p) \ + ( (This)->lpVtbl -> get_textHead(This,p) ) + +#define IHeaderFooter_put_textFoot(This,v) \ + ( (This)->lpVtbl -> put_textFoot(This,v) ) + +#define IHeaderFooter_get_textFoot(This,p) \ + ( (This)->lpVtbl -> get_textFoot(This,p) ) + +#define IHeaderFooter_put_page(This,v) \ + ( (This)->lpVtbl -> put_page(This,v) ) + +#define IHeaderFooter_get_page(This,p) \ + ( (This)->lpVtbl -> get_page(This,p) ) + +#define IHeaderFooter_put_pageTotal(This,v) \ + ( (This)->lpVtbl -> put_pageTotal(This,v) ) + +#define IHeaderFooter_get_pageTotal(This,p) \ + ( (This)->lpVtbl -> get_pageTotal(This,p) ) + +#define IHeaderFooter_put_URL(This,v) \ + ( (This)->lpVtbl -> put_URL(This,v) ) + +#define IHeaderFooter_get_URL(This,p) \ + ( (This)->lpVtbl -> get_URL(This,p) ) + +#define IHeaderFooter_put_title(This,v) \ + ( (This)->lpVtbl -> put_title(This,v) ) + +#define IHeaderFooter_get_title(This,p) \ + ( (This)->lpVtbl -> get_title(This,p) ) + +#define IHeaderFooter_put_dateShort(This,v) \ + ( (This)->lpVtbl -> put_dateShort(This,v) ) + +#define IHeaderFooter_get_dateShort(This,p) \ + ( (This)->lpVtbl -> get_dateShort(This,p) ) + +#define IHeaderFooter_put_dateLong(This,v) \ + ( (This)->lpVtbl -> put_dateLong(This,v) ) + +#define IHeaderFooter_get_dateLong(This,p) \ + ( (This)->lpVtbl -> get_dateLong(This,p) ) + +#define IHeaderFooter_put_timeShort(This,v) \ + ( (This)->lpVtbl -> put_timeShort(This,v) ) + +#define IHeaderFooter_get_timeShort(This,p) \ + ( (This)->lpVtbl -> get_timeShort(This,p) ) + +#define IHeaderFooter_put_timeLong(This,v) \ + ( (This)->lpVtbl -> put_timeLong(This,v) ) + +#define IHeaderFooter_get_timeLong(This,p) \ + ( (This)->lpVtbl -> get_timeLong(This,p) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHeaderFooter_INTERFACE_DEFINED__ */ + + +#ifndef __IHeaderFooter2_INTERFACE_DEFINED__ +#define __IHeaderFooter2_INTERFACE_DEFINED__ + +/* interface IHeaderFooter2 */ +/* [object][uuid][dual][oleautomation] */ + + +EXTERN_C const IID IID_IHeaderFooter2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("305104a5-98b5-11cf-bb82-00aa00bdce0b") + IHeaderFooter2 : public IHeaderFooter + { + public: + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_font( + /* [in] */ __RPC__in BSTR v) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_font( + /* [out][retval] */ __RPC__deref_out_opt BSTR *p) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IHeaderFooter2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IHeaderFooter2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IHeaderFooter2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IHeaderFooter2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IHeaderFooter2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_htmlHead) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_htmlHead )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_htmlFoot) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_htmlFoot )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_textHead) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_textHead )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_textHead) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_textHead )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_textFoot) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_textFoot )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_textFoot) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_textFoot )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_page) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_page )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ DWORD v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_page) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_page )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__out DWORD *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_pageTotal) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_pageTotal )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ DWORD v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_pageTotal) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_pageTotal )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__out DWORD *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_URL) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_URL )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_URL) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_URL )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_title) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_title )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_title) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_title )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_dateShort) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dateShort )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_dateShort) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dateShort )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_dateLong) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dateLong )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_dateLong) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dateLong )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_timeShort) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_timeShort )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_timeShort) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_timeShort )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter, put_timeLong) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_timeLong )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter, get_timeLong) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_timeLong )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + DECLSPEC_XFGVIRT(IHeaderFooter2, put_font) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_font )( + __RPC__in IHeaderFooter2 * This, + /* [in] */ __RPC__in BSTR v); + + DECLSPEC_XFGVIRT(IHeaderFooter2, get_font) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_font )( + __RPC__in IHeaderFooter2 * This, + /* [out][retval] */ __RPC__deref_out_opt BSTR *p); + + END_INTERFACE + } IHeaderFooter2Vtbl; + + interface IHeaderFooter2 + { + CONST_VTBL struct IHeaderFooter2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IHeaderFooter2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IHeaderFooter2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IHeaderFooter2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IHeaderFooter2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IHeaderFooter2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IHeaderFooter2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IHeaderFooter2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IHeaderFooter2_get_htmlHead(This,p) \ + ( (This)->lpVtbl -> get_htmlHead(This,p) ) + +#define IHeaderFooter2_get_htmlFoot(This,p) \ + ( (This)->lpVtbl -> get_htmlFoot(This,p) ) + +#define IHeaderFooter2_put_textHead(This,v) \ + ( (This)->lpVtbl -> put_textHead(This,v) ) + +#define IHeaderFooter2_get_textHead(This,p) \ + ( (This)->lpVtbl -> get_textHead(This,p) ) + +#define IHeaderFooter2_put_textFoot(This,v) \ + ( (This)->lpVtbl -> put_textFoot(This,v) ) + +#define IHeaderFooter2_get_textFoot(This,p) \ + ( (This)->lpVtbl -> get_textFoot(This,p) ) + +#define IHeaderFooter2_put_page(This,v) \ + ( (This)->lpVtbl -> put_page(This,v) ) + +#define IHeaderFooter2_get_page(This,p) \ + ( (This)->lpVtbl -> get_page(This,p) ) + +#define IHeaderFooter2_put_pageTotal(This,v) \ + ( (This)->lpVtbl -> put_pageTotal(This,v) ) + +#define IHeaderFooter2_get_pageTotal(This,p) \ + ( (This)->lpVtbl -> get_pageTotal(This,p) ) + +#define IHeaderFooter2_put_URL(This,v) \ + ( (This)->lpVtbl -> put_URL(This,v) ) + +#define IHeaderFooter2_get_URL(This,p) \ + ( (This)->lpVtbl -> get_URL(This,p) ) + +#define IHeaderFooter2_put_title(This,v) \ + ( (This)->lpVtbl -> put_title(This,v) ) + +#define IHeaderFooter2_get_title(This,p) \ + ( (This)->lpVtbl -> get_title(This,p) ) + +#define IHeaderFooter2_put_dateShort(This,v) \ + ( (This)->lpVtbl -> put_dateShort(This,v) ) + +#define IHeaderFooter2_get_dateShort(This,p) \ + ( (This)->lpVtbl -> get_dateShort(This,p) ) + +#define IHeaderFooter2_put_dateLong(This,v) \ + ( (This)->lpVtbl -> put_dateLong(This,v) ) + +#define IHeaderFooter2_get_dateLong(This,p) \ + ( (This)->lpVtbl -> get_dateLong(This,p) ) + +#define IHeaderFooter2_put_timeShort(This,v) \ + ( (This)->lpVtbl -> put_timeShort(This,v) ) + +#define IHeaderFooter2_get_timeShort(This,p) \ + ( (This)->lpVtbl -> get_timeShort(This,p) ) + +#define IHeaderFooter2_put_timeLong(This,v) \ + ( (This)->lpVtbl -> put_timeLong(This,v) ) + +#define IHeaderFooter2_get_timeLong(This,p) \ + ( (This)->lpVtbl -> get_timeLong(This,p) ) + + +#define IHeaderFooter2_put_font(This,v) \ + ( (This)->lpVtbl -> put_font(This,v) ) + +#define IHeaderFooter2_get_font(This,p) \ + ( (This)->lpVtbl -> get_font(This,p) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IHeaderFooter2_INTERFACE_DEFINED__ */ + + + +#ifndef __IEXTagLib_LIBRARY_DEFINED__ +#define __IEXTagLib_LIBRARY_DEFINED__ + +/* library IEXTagLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_IEXTagLib; + +EXTERN_C const CLSID CLSID_PeerFactory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3050F4CF-98B5-11CF-BB82-00AA00BDCE0B") +PeerFactory; +#endif + +EXTERN_C const CLSID CLSID_IntelliForms; + +#ifdef __cplusplus + +class DECLSPEC_UUID("613AB92E-16BF-11d2-BCA5-00C04FD929DB") +IntelliForms; +#endif + +EXTERN_C const CLSID CLSID_HomePage; + +#ifdef __cplusplus + +class DECLSPEC_UUID("766BF2AE-D650-11d1-9811-00C04FC31D2E") +HomePage; +#endif + +EXTERN_C const CLSID CLSID_CPersistUserData; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3050f48e-98b5-11cf-bb82-00aa00bdce0b") +CPersistUserData; +#endif + +EXTERN_C const CLSID CLSID_CPersistDataPeer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3050f487-98b5-11cf-bb82-00aa00bdce0b") +CPersistDataPeer; +#endif + +EXTERN_C const CLSID CLSID_CPersistShortcut; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3050f4c6-98b5-11cf-bb82-00aa00bdce0b") +CPersistShortcut; +#endif + +EXTERN_C const CLSID CLSID_CPersistHistory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3050f4c8-98b5-11cf-bb82-00aa00bdce0b") +CPersistHistory; +#endif + +EXTERN_C const CLSID CLSID_CPersistSnapshot; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3050f4c9-98b5-11cf-bb82-00aa00bdce0b") +CPersistSnapshot; +#endif + +EXTERN_C const CLSID CLSID_CDownloadBehavior; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3050f5be-98b5-11cf-bb82-00aa00bdce0b") +CDownloadBehavior; +#endif + +EXTERN_C const CLSID CLSID_wfolders; + +#ifdef __cplusplus + +class DECLSPEC_UUID("BAE31F9A-1B81-11D2-A97A-00C04F8ECB02") +wfolders; +#endif + +EXTERN_C const CLSID CLSID_AnchorClick; + +#ifdef __cplusplus + +class DECLSPEC_UUID("13D5413C-33B9-11D2-95A7-00C04F8ECB02") +AnchorClick; +#endif + +EXTERN_C const CLSID CLSID_CLayoutRect; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3050f664-98b5-11cf-bb82-00aa00bdce0b") +CLayoutRect; +#endif + +EXTERN_C const CLSID CLSID_CDeviceRect; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3050f6d4-98b5-11cf-bb82-00aa00bdce0b") +CDeviceRect; +#endif + +EXTERN_C const CLSID CLSID_CHeaderFooter; + +#ifdef __cplusplus + +class DECLSPEC_UUID("3050f6cd-98b5-11cf-bb82-00aa00bdce0b") +CHeaderFooter; +#endif +#endif /* __IEXTagLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_iextag_0000_0016 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_iextag_0000_0016_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iextag_0000_0016_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER VARIANT_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in VARIANT * ); +unsigned char * __RPC_USER VARIANT_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out VARIANT * ); +void __RPC_USER VARIANT_UserFree64( __RPC__in unsigned long *, __RPC__in VARIANT * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iextag.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iextag.idl new file mode 100644 index 0000000000000000000000000000000000000000..3ea35813d41e244728421fa4a1b7d1d22d6980cf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iextag.idl @@ -0,0 +1,408 @@ +//+------------------------------------------------------------------------ +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: iextag.idl +// +// Abstract: This file will be processed by the MIDL tool to +// produce the type library (iextag.tlb) and marshalling code. + +//------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// iextag.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + + [ + + uuid(6663F9D3-B482-11d1-89C6-00C04FB6BFC4), + helpstring("IPeerFactory Interface"), + pointer_default(unique) + ] + interface IPeerFactory : IUnknown + { + }; + + [ + object, + uuid(766BF2AF-D650-11d1-9811-00C04FC31D2E), + dual, + helpstring("IHomePage Interface"), + pointer_default(unique) + ] + interface IHomePage : IDispatch + { + [id(1)] HRESULT navigateHomePage(); + [id(2)] HRESULT setHomePage([in] BSTR bstrURL); + [id(3)] HRESULT isHomePage([in] BSTR bstrURL, [out, retval] VARIANT_BOOL* p); + + }; + + [ + object, + uuid(9B9F68E6-1AAA-11d2-BCA5-00C04FD929DB), + dual, + pointer_default(unique) + ] + interface IIntelliForms : IDispatch + { + [propget, id(1)] HRESULT enabled([out, retval] VARIANT_BOOL *pVal); + [propput, id(1)] HRESULT enabled([in] VARIANT_BOOL bVal); + } + + [ + object, + uuid(BAE31F98-1B81-11D2-A97A-00C04F8ECB02), + dual, + helpstring("Iwfolders Interface"), + pointer_default(unique) + ] + interface Iwfolders : IDispatch + { + [id(1), helpstring("method navigate")] + HRESULT navigate([in] BSTR bstrUrl,[retval, out] BSTR * pbstrRetVal); + [id(2), helpstring("method navigateFrame")] + HRESULT navigateFrame([in] BSTR bstrUrl, + [in] BSTR bstrTargetFrame, + //bug#50463 [in] BSTR bstrProtocol, + [retval, out] BSTR * pbstrRetVal); + [id(3)] HRESULT navigateNoSite ([in] BSTR bstrUrl, + [in] BSTR bstrTargetFrame, + //bug#50463 [in] BSTR bstrProtocol, + [in] DWORD dwhwnd, + [in] IUnknown * pwb); + }; + + + [ + object, + uuid(13D5413B-33B9-11D2-95A7-00C04F8ECB02), + dual, + helpstring("IAnchorClick Interface"), + pointer_default(unique) + ] + interface IAnchorClick : IDispatch + { + [id(1), helpstring("ProcOnClick navigate")] + HRESULT ProcOnClick(); + }; + + [ + hidden, + uuid(3050f4c7-98b5-11cf-bb82-00aa00bdce0b) + ] + dispinterface HTMLPersistEvents + { + properties: + methods: + [id(1)] void onsave(); + [id(2)] void onload(); + }; + [ + odl, + oleautomation, + dual, + uuid(3050f48f-98b5-11cf-bb82-00aa00bdce0b) + ] + interface IHTMLUserDataOM : IDispatch + { + [propget, id(1)] HRESULT XMLDocument([retval, out] IDispatch* * p); + [id(2)] HRESULT save([in] BSTR strName); + [id(3)] HRESULT load([in] BSTR strName); + [id(4)] HRESULT getAttribute([in] BSTR name,[retval, out] VARIANT* pValue); + [id(5)] HRESULT setAttribute([in] BSTR name,[in] VARIANT value); + [id(6)] HRESULT removeAttribute([in] BSTR name); + [propput, id(7)] HRESULT expires([in] BSTR bstr); + [propget, id(7)] HRESULT expires([retval, out] BSTR * pbstr); + }; + [ + odl, + oleautomation, + dual, + uuid(3050f4c0-98b5-11cf-bb82-00aa00bdce0b) + ] + interface IHTMLPersistDataOM : IDispatch + { + [propget, id(3)] HRESULT XMLDocument([retval, out] IDispatch* * p); + [id(4)] HRESULT getAttribute([in] BSTR name,[retval, out] VARIANT* pValue); + [id(5)] HRESULT setAttribute([in] BSTR name,[in] VARIANT value); + [id(6)] HRESULT removeAttribute([in] BSTR name); + }; + [ + odl, + oleautomation, + dual, + uuid(3050f4c5-98b5-11cf-bb82-00aa00bdce0b) + ] + interface IHTMLPersistData : IUnknown + { + [id(1)] HRESULT save([in] IUnknown* pUnk,[in] long lType,[retval, out] VARIANT_BOOL* fContinueBroacast); + [id(2)] HRESULT load([in] IUnknown* pUnk,[in] long lType,[retval, out] VARIANT_BOOL* fDoDefault); + [id(3)] HRESULT queryType([in] long lType,[retval, out] VARIANT_BOOL* pfSupportsType); + }; + + + [ + odl, + oleautomation, + dual, + uuid(3050f5bd-98b5-11cf-bb82-00aa00bdce0b) + ] + interface IDownloadBehavior : IDispatch + { + [id(1)] HRESULT startDownload([in] BSTR bstrUrl, [in] IDispatch* pdispCallback); + }; + //----------------------------------------------------------- + [ + hidden, + uuid(3050f674-98b5-11cf-bb82-00aa00bdce0b) + ] + dispinterface LayoutRectEvents + { + properties: + methods: + [id(1)] void onpage(); + [id(2)] void onlayoutcomplete(); + }; + //----------------------------------------------------------- + [ + odl, + oleautomation, + dual, + uuid(3050f665-98b5-11cf-bb82-00aa00bdce0b) + ] + interface ILayoutRect : IDispatch + { + [propput, id(1)] HRESULT nextRect([in] BSTR bstrElementId); + [propget, id(1)] HRESULT nextRect([retval, out] BSTR * pbstrElementId); + [propput, id(2)] HRESULT contentSrc([in] VARIANT varContentSrc); + [propget, id(2)] HRESULT contentSrc([retval, out] VARIANT * pvarContentSrc); + [propput, id(3)] HRESULT honorPageBreaks([in] VARIANT_BOOL v); + [propget, id(3)] HRESULT honorPageBreaks([retval, out]VARIANT_BOOL * p); + [propput, id(4)] HRESULT honorPageRules([in] VARIANT_BOOL v); + [propget, id(4)] HRESULT honorPageRules([retval, out] VARIANT_BOOL * p); + [propput, id(5)] HRESULT nextRectElement([in] IDispatch * pElem ); + [propget, id(5)] HRESULT nextRectElement([retval, out] IDispatch ** ppElem); + [propget, id(6)] HRESULT contentDocument([retval, out] IDispatch ** pDoc); + }; + //----------------------------------------------------------- + [ + odl, + oleautomation, + dual, + uuid(3050f6d5-98b5-11cf-bb82-00aa00bdce0b) + ] + interface IDeviceRect : IDispatch + { + }; + //----------------------------------------------------------- + [ + odl, + oleautomation, + dual, + uuid(3050f6ce-98b5-11cf-bb82-00aa00bdce0b) + ] + interface IHeaderFooter : IDispatch + { + [propget, id(1)] HRESULT htmlHead([retval, out] BSTR * p); + [propget, id(2)] HRESULT htmlFoot([retval, out] BSTR * p); + [propput, id(3)] HRESULT textHead([in] BSTR v); + [propget, id(3)] HRESULT textHead([retval, out] BSTR * p); + [propput, id(4)] HRESULT textFoot([in] BSTR v); + [propget, id(4)] HRESULT textFoot([retval, out] BSTR * p); + [propput, id(5)] HRESULT page([in] DWORD v); + [propget, id(5)] HRESULT page([retval, out] DWORD * p); + [propput, id(6)] HRESULT pageTotal([in] DWORD v); + [propget, id(6)] HRESULT pageTotal([retval, out] DWORD * p); + [propput, id(7)] HRESULT URL([in] BSTR v); + [propget, id(7)] HRESULT URL([retval, out] BSTR * p); + [propput, id(8)] HRESULT title([in] BSTR v); + [propget, id(8)] HRESULT title([retval, out] BSTR * p); + [propput, id(9)] HRESULT dateShort([in] BSTR v); + [propget, id(9)] HRESULT dateShort([retval, out] BSTR * p); + [propput, id(10)] HRESULT dateLong([in] BSTR v); + [propget, id(10)] HRESULT dateLong([retval, out] BSTR * p); + [propput, id(11)] HRESULT timeShort([in] BSTR v); + [propget, id(11)] HRESULT timeShort([retval, out] BSTR * p); + [propput, id(12)] HRESULT timeLong([in] BSTR v); + [propget, id(12)] HRESULT timeLong([retval, out] BSTR * p); + }; + //----------------------------------------------------------- + [ + odl, + oleautomation, + dual, + uuid(305104a5-98b5-11cf-bb82-00aa00bdce0b) + ] + interface IHeaderFooter2 : IHeaderFooter + { + [propput, id(13)] HRESULT font([in] BSTR v); + [propget, id(13)] HRESULT font([retval, out] BSTR * p); + }; //----------------------------------------------------------- + +[ + uuid(7E8BC440-AEFF-11D1-89C2-00C04FB6BFC4), + version(1.0), + helpstring("iextag 1.0 Type Library") +] +library IEXTagLib +{ + importlib("stdole2.tlb"); + + //------------------------------------------------- + [ + uuid(3050F4CF-98B5-11CF-BB82-00AA00BDCE0B), + helpstring("PeerFactory Class") + ] + coclass PeerFactory + { + [default] interface IPeerFactory; + }; + //------------------------------------------------- + [ + uuid(613AB92E-16BF-11d2-BCA5-00C04FD929DB), + noncreatable + ] + coclass IntelliForms + { + [default] interface IIntelliForms; + } + //------------------------------------------------- + [ + uuid(766BF2AE-D650-11d1-9811-00C04FC31D2E), + noncreatable + ] + coclass HomePage + { + [default] interface IHomePage; + }; + //------------------------------------------------- + [ + uuid(3050f48e-98b5-11cf-bb82-00aa00bdce0b), + noncreatable + ] + coclass CPersistUserData + { + [default] interface IHTMLUserDataOM; + [source, default] dispinterface HTMLPersistEvents; + }; + //------------------------------------------------- + [ + uuid(3050f487-98b5-11cf-bb82-00aa00bdce0b), + noncreatable + ] + coclass CPersistDataPeer + { + [default] interface IHTMLPersistDataOM; + [source, default] dispinterface HTMLPersistEvents; + interface IHTMLPersistData; + }; + //------------------------------------------------- + [ + uuid(3050f4c6-98b5-11cf-bb82-00aa00bdce0b), + noncreatable + ] + coclass CPersistShortcut + { + [default] interface IHTMLPersistDataOM; + [source, default] dispinterface HTMLPersistEvents; + interface IHTMLPersistData; + }; + //------------------------------------------------- + [ + uuid(3050f4c8-98b5-11cf-bb82-00aa00bdce0b), + noncreatable + ] + coclass CPersistHistory + { + [default] interface IHTMLPersistDataOM; + [source, default] dispinterface HTMLPersistEvents; + interface IHTMLPersistData; + }; + //------------------------------------------------- + [ + uuid(3050f4c9-98b5-11cf-bb82-00aa00bdce0b), + noncreatable + ] + coclass CPersistSnapshot + { + [default] interface IHTMLPersistDataOM; + [source, default] dispinterface HTMLPersistEvents; + interface IHTMLPersistData; + }; + //------------------------------------------------- + [ + uuid(3050f5be-98b5-11cf-bb82-00aa00bdce0b) + ] + coclass CDownloadBehavior + { + [default] interface IDownloadBehavior; + }; + //------------------------------------------------- + [ + uuid(BAE31F9A-1B81-11D2-A97A-00C04F8ECB02), + helpstring("Web Folders Class"), + noncreatable + ] + coclass wfolders + { + [default] interface Iwfolders; + }; + //------------------------------------------------- + [ + uuid(13D5413C-33B9-11D2-95A7-00C04F8ECB02), + helpstring("AnchorClick Class"), + noncreatable + ] + coclass AnchorClick + { + [default] interface IAnchorClick; + }; + //------------------------------------------------- + [ + uuid(3050f664-98b5-11cf-bb82-00aa00bdce0b), + ] + coclass CLayoutRect + { + [default] interface ILayoutRect; + [source, default] dispinterface LayoutRectEvents; + }; + //------------------------------------------------- + [ + uuid(3050f6d4-98b5-11cf-bb82-00aa00bdce0b), + ] + coclass CDeviceRect + { + [default] interface IDeviceRect; + }; + //------------------------------------------------- + [ + uuid(3050f6cd-98b5-11cf-bb82-00aa00bdce0b), + ] + coclass CHeaderFooter + { + [default] interface IHeaderFooter2; + }; + +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iiisext.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iiisext.h new file mode 100644 index 0000000000000000000000000000000000000000..954d52d70a263b12a232423869a03cc482595565 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iiisext.h @@ -0,0 +1,3623 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 6.00.0363 */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif // __RPCNDR_H_VERSION__ + + +#ifndef __iiisext_h__ +#define __iiisext_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +/* Forward Declarations */ + +#ifndef __IISApplicationPool_FWD_DEFINED__ +#define __IISApplicationPool_FWD_DEFINED__ +typedef interface IISApplicationPool IISApplicationPool; +#endif /* __IISApplicationPool_FWD_DEFINED__ */ + + +#ifndef __IISApplicationPools_FWD_DEFINED__ +#define __IISApplicationPools_FWD_DEFINED__ +typedef interface IISApplicationPools IISApplicationPools; +#endif /* __IISApplicationPools_FWD_DEFINED__ */ + + +#ifndef __IISWebService_FWD_DEFINED__ +#define __IISWebService_FWD_DEFINED__ +typedef interface IISWebService IISWebService; +#endif /* __IISWebService_FWD_DEFINED__ */ + + +#ifndef __IISDsCrMap_FWD_DEFINED__ +#define __IISDsCrMap_FWD_DEFINED__ +typedef interface IISDsCrMap IISDsCrMap; +#endif /* __IISDsCrMap_FWD_DEFINED__ */ + + +#ifndef __IISApp_FWD_DEFINED__ +#define __IISApp_FWD_DEFINED__ +typedef interface IISApp IISApp; +#endif /* __IISApp_FWD_DEFINED__ */ + + +#ifndef __IISApp2_FWD_DEFINED__ +#define __IISApp2_FWD_DEFINED__ +typedef interface IISApp2 IISApp2; +#endif /* __IISApp2_FWD_DEFINED__ */ + + +#ifndef __IISApp3_FWD_DEFINED__ +#define __IISApp3_FWD_DEFINED__ +typedef interface IISApp3 IISApp3; +#endif /* __IISApp3_FWD_DEFINED__ */ + + +#ifndef __IISComputer_FWD_DEFINED__ +#define __IISComputer_FWD_DEFINED__ +typedef interface IISComputer IISComputer; +#endif /* __IISComputer_FWD_DEFINED__ */ + + +#ifndef __IISComputer2_FWD_DEFINED__ +#define __IISComputer2_FWD_DEFINED__ +typedef interface IISComputer2 IISComputer2; +#endif /* __IISComputer2_FWD_DEFINED__ */ + + +#ifndef __IISExtComputer_FWD_DEFINED__ +#define __IISExtComputer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IISExtComputer IISExtComputer; +#else +typedef struct IISExtComputer IISExtComputer; +#endif /* __cplusplus */ + +#endif /* __IISExtComputer_FWD_DEFINED__ */ + + +#ifndef __IISExtApp_FWD_DEFINED__ +#define __IISExtApp_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IISExtApp IISExtApp; +#else +typedef struct IISExtApp IISExtApp; +#endif /* __cplusplus */ + +#endif /* __IISExtApp_FWD_DEFINED__ */ + + +#ifndef __IISExtServer_FWD_DEFINED__ +#define __IISExtServer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IISExtServer IISExtServer; +#else +typedef struct IISExtServer IISExtServer; +#endif /* __cplusplus */ + +#endif /* __IISExtServer_FWD_DEFINED__ */ + + +#ifndef __IISExtDsCrMap_FWD_DEFINED__ +#define __IISExtDsCrMap_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IISExtDsCrMap IISExtDsCrMap; +#else +typedef struct IISExtDsCrMap IISExtDsCrMap; +#endif /* __cplusplus */ + +#endif /* __IISExtDsCrMap_FWD_DEFINED__ */ + + +#ifndef __IISExtApplicationPool_FWD_DEFINED__ +#define __IISExtApplicationPool_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IISExtApplicationPool IISExtApplicationPool; +#else +typedef struct IISExtApplicationPool IISExtApplicationPool; +#endif /* __cplusplus */ + +#endif /* __IISExtApplicationPool_FWD_DEFINED__ */ + + +#ifndef __IISExtApplicationPools_FWD_DEFINED__ +#define __IISExtApplicationPools_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IISExtApplicationPools IISExtApplicationPools; +#else +typedef struct IISExtApplicationPools IISExtApplicationPools; +#endif /* __cplusplus */ + +#endif /* __IISExtApplicationPools_FWD_DEFINED__ */ + + +#ifndef __IISExtWebService_FWD_DEFINED__ +#define __IISExtWebService_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IISExtWebService IISExtWebService; +#else +typedef struct IISExtWebService IISExtWebService; +#endif /* __cplusplus */ + +#endif /* __IISExtWebService_FWD_DEFINED__ */ + + +#ifdef __cplusplus +extern "C"{ +#endif + +void * __RPC_USER MIDL_user_allocate(size_t); +void __RPC_USER MIDL_user_free( void * ); + + +#ifndef __IISExt_LIBRARY_DEFINED__ +#define __IISExt_LIBRARY_DEFINED__ + +/* library IISExt */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_IISExt; + +#ifndef __IISApplicationPool_INTERFACE_DEFINED__ +#define __IISApplicationPool_INTERFACE_DEFINED__ + +/* interface IISApplicationPool */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IISApplicationPool; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0B3CB1E1-829A-4c06-8B09-F56DA1894C88") + IISApplicationPool : public IADs + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Recycle( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE EnumAppsInPool( + /* [retval][out] */ VARIANT *bstrBuffer) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Start( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Stop( void) = 0; + + }; + +#else /* C style interface */ + + typedef struct IISApplicationPoolVtbl + { + BEGIN_INTERFACE + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISApplicationPool * This, + /* [in][idldescattr] */ GUID *riid, + /* [out][idldescattr] */ void **ppvObj, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *AddRef )( + IISApplicationPool * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Release )( + IISApplicationPool * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IISApplicationPool * This, + /* [out][idldescattr] */ UINT *pctinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IISApplicationPool * This, + /* [in][idldescattr] */ UINT itinfo, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ void **pptinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IISApplicationPool * This, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ signed char **rgszNames, + /* [in][idldescattr] */ UINT cNames, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ signed long *rgdispid, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IISApplicationPool * This, + /* [in][idldescattr] */ signed long dispidMember, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ unsigned long lcid, + /* [in][idldescattr] */ unsigned short wFlags, + /* [in][idldescattr] */ DISPPARAMS *pdispparams, + /* [out][idldescattr] */ VARIANT *pvarResult, + /* [out][idldescattr] */ EXCEPINFO *pexcepinfo, + /* [out][idldescattr] */ UINT *puArgErr, + /* [retval][out] */ void *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + IISApplicationPool * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + IISApplicationPool * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + IISApplicationPool * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + IISApplicationPool * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + IISApplicationPool * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + IISApplicationPool * This, + /* [retval][out] */ BSTR *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IISApplicationPool * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + IISApplicationPool * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Get )( + IISApplicationPool * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Put )( + IISApplicationPool * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + IISApplicationPool * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + IISApplicationPool * This, + /* [in][idldescattr] */ signed long lnControlCode, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + IISApplicationPool * This, + /* [in][idldescattr] */ VARIANT vProperties, + /* [in][idldescattr] */ signed long lnReserved, + /* [retval][out] */ void *retval); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Recycle )( + IISApplicationPool * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnumAppsInPool )( + IISApplicationPool * This, + /* [retval][out] */ VARIANT *bstrBuffer); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Start )( + IISApplicationPool * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( + IISApplicationPool * This); + + END_INTERFACE + } IISApplicationPoolVtbl; + + interface IISApplicationPool + { + CONST_VTBL struct IISApplicationPoolVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISApplicationPool_QueryInterface(This,riid,ppvObj,retval) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObj,retval) + +#define IISApplicationPool_AddRef(This,retval) \ + (This)->lpVtbl -> AddRef(This,retval) + +#define IISApplicationPool_Release(This,retval) \ + (This)->lpVtbl -> Release(This,retval) + +#define IISApplicationPool_GetTypeInfoCount(This,pctinfo,retval) \ + (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo,retval) + +#define IISApplicationPool_GetTypeInfo(This,itinfo,lcid,pptinfo,retval) \ + (This)->lpVtbl -> GetTypeInfo(This,itinfo,lcid,pptinfo,retval) + +#define IISApplicationPool_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) \ + (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) + +#define IISApplicationPool_Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) \ + (This)->lpVtbl -> Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) + +#define IISApplicationPool_get_Name(This,retval) \ + (This)->lpVtbl -> get_Name(This,retval) + +#define IISApplicationPool_get_Class(This,retval) \ + (This)->lpVtbl -> get_Class(This,retval) + +#define IISApplicationPool_get_GUID(This,retval) \ + (This)->lpVtbl -> get_GUID(This,retval) + +#define IISApplicationPool_get_ADsPath(This,retval) \ + (This)->lpVtbl -> get_ADsPath(This,retval) + +#define IISApplicationPool_get_Parent(This,retval) \ + (This)->lpVtbl -> get_Parent(This,retval) + +#define IISApplicationPool_get_Schema(This,retval) \ + (This)->lpVtbl -> get_Schema(This,retval) + +#define IISApplicationPool_GetInfo(This,retval) \ + (This)->lpVtbl -> GetInfo(This,retval) + +#define IISApplicationPool_SetInfo(This,retval) \ + (This)->lpVtbl -> SetInfo(This,retval) + +#define IISApplicationPool_Get(This,bstrName,retval) \ + (This)->lpVtbl -> Get(This,bstrName,retval) + +#define IISApplicationPool_Put(This,bstrName,vProp,retval) \ + (This)->lpVtbl -> Put(This,bstrName,vProp,retval) + +#define IISApplicationPool_GetEx(This,bstrName,retval) \ + (This)->lpVtbl -> GetEx(This,bstrName,retval) + +#define IISApplicationPool_PutEx(This,lnControlCode,bstrName,vProp,retval) \ + (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp,retval) + +#define IISApplicationPool_GetInfoEx(This,vProperties,lnReserved,retval) \ + (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved,retval) + + +#define IISApplicationPool_Recycle(This) \ + (This)->lpVtbl -> Recycle(This) + +#define IISApplicationPool_EnumAppsInPool(This,bstrBuffer) \ + (This)->lpVtbl -> EnumAppsInPool(This,bstrBuffer) + +#define IISApplicationPool_Start(This) \ + (This)->lpVtbl -> Start(This) + +#define IISApplicationPool_Stop(This) \ + (This)->lpVtbl -> Stop(This) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApplicationPool_Recycle_Proxy( + IISApplicationPool * This); + + +void __RPC_STUB IISApplicationPool_Recycle_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApplicationPool_EnumAppsInPool_Proxy( + IISApplicationPool * This, + /* [retval][out] */ VARIANT *bstrBuffer); + + +void __RPC_STUB IISApplicationPool_EnumAppsInPool_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApplicationPool_Start_Proxy( + IISApplicationPool * This); + + +void __RPC_STUB IISApplicationPool_Start_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApplicationPool_Stop_Proxy( + IISApplicationPool * This); + + +void __RPC_STUB IISApplicationPool_Stop_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IISApplicationPool_INTERFACE_DEFINED__ */ + + +#ifndef __IISApplicationPools_INTERFACE_DEFINED__ +#define __IISApplicationPools_INTERFACE_DEFINED__ + +/* interface IISApplicationPools */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IISApplicationPools; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("587F123F-49B4-49dd-939E-F4547AA3FA75") + IISApplicationPools : public IADs + { + public: + }; + +#else /* C style interface */ + + typedef struct IISApplicationPoolsVtbl + { + BEGIN_INTERFACE + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISApplicationPools * This, + /* [in][idldescattr] */ GUID *riid, + /* [out][idldescattr] */ void **ppvObj, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *AddRef )( + IISApplicationPools * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Release )( + IISApplicationPools * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IISApplicationPools * This, + /* [out][idldescattr] */ UINT *pctinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IISApplicationPools * This, + /* [in][idldescattr] */ UINT itinfo, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ void **pptinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IISApplicationPools * This, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ signed char **rgszNames, + /* [in][idldescattr] */ UINT cNames, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ signed long *rgdispid, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IISApplicationPools * This, + /* [in][idldescattr] */ signed long dispidMember, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ unsigned long lcid, + /* [in][idldescattr] */ unsigned short wFlags, + /* [in][idldescattr] */ DISPPARAMS *pdispparams, + /* [out][idldescattr] */ VARIANT *pvarResult, + /* [out][idldescattr] */ EXCEPINFO *pexcepinfo, + /* [out][idldescattr] */ UINT *puArgErr, + /* [retval][out] */ void *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + IISApplicationPools * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + IISApplicationPools * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + IISApplicationPools * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + IISApplicationPools * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + IISApplicationPools * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + IISApplicationPools * This, + /* [retval][out] */ BSTR *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IISApplicationPools * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + IISApplicationPools * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Get )( + IISApplicationPools * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Put )( + IISApplicationPools * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + IISApplicationPools * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + IISApplicationPools * This, + /* [in][idldescattr] */ signed long lnControlCode, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + IISApplicationPools * This, + /* [in][idldescattr] */ VARIANT vProperties, + /* [in][idldescattr] */ signed long lnReserved, + /* [retval][out] */ void *retval); + + END_INTERFACE + } IISApplicationPoolsVtbl; + + interface IISApplicationPools + { + CONST_VTBL struct IISApplicationPoolsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISApplicationPools_QueryInterface(This,riid,ppvObj,retval) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObj,retval) + +#define IISApplicationPools_AddRef(This,retval) \ + (This)->lpVtbl -> AddRef(This,retval) + +#define IISApplicationPools_Release(This,retval) \ + (This)->lpVtbl -> Release(This,retval) + +#define IISApplicationPools_GetTypeInfoCount(This,pctinfo,retval) \ + (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo,retval) + +#define IISApplicationPools_GetTypeInfo(This,itinfo,lcid,pptinfo,retval) \ + (This)->lpVtbl -> GetTypeInfo(This,itinfo,lcid,pptinfo,retval) + +#define IISApplicationPools_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) \ + (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) + +#define IISApplicationPools_Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) \ + (This)->lpVtbl -> Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) + +#define IISApplicationPools_get_Name(This,retval) \ + (This)->lpVtbl -> get_Name(This,retval) + +#define IISApplicationPools_get_Class(This,retval) \ + (This)->lpVtbl -> get_Class(This,retval) + +#define IISApplicationPools_get_GUID(This,retval) \ + (This)->lpVtbl -> get_GUID(This,retval) + +#define IISApplicationPools_get_ADsPath(This,retval) \ + (This)->lpVtbl -> get_ADsPath(This,retval) + +#define IISApplicationPools_get_Parent(This,retval) \ + (This)->lpVtbl -> get_Parent(This,retval) + +#define IISApplicationPools_get_Schema(This,retval) \ + (This)->lpVtbl -> get_Schema(This,retval) + +#define IISApplicationPools_GetInfo(This,retval) \ + (This)->lpVtbl -> GetInfo(This,retval) + +#define IISApplicationPools_SetInfo(This,retval) \ + (This)->lpVtbl -> SetInfo(This,retval) + +#define IISApplicationPools_Get(This,bstrName,retval) \ + (This)->lpVtbl -> Get(This,bstrName,retval) + +#define IISApplicationPools_Put(This,bstrName,vProp,retval) \ + (This)->lpVtbl -> Put(This,bstrName,vProp,retval) + +#define IISApplicationPools_GetEx(This,bstrName,retval) \ + (This)->lpVtbl -> GetEx(This,bstrName,retval) + +#define IISApplicationPools_PutEx(This,lnControlCode,bstrName,vProp,retval) \ + (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp,retval) + +#define IISApplicationPools_GetInfoEx(This,vProperties,lnReserved,retval) \ + (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved,retval) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISApplicationPools_INTERFACE_DEFINED__ */ + + +#ifndef __IISWebService_INTERFACE_DEFINED__ +#define __IISWebService_INTERFACE_DEFINED__ + +/* interface IISWebService */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IISWebService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EE46D40C-1B38-4a02-898D-358E74DFC9D2") + IISWebService : public IADs + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetCurrentMode( + /* [retval][out] */ VARIANT *pvServerMode) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE CreateNewSite( + /* [in] */ BSTR bstrServerComment, + /* [in] */ VARIANT *pvServerBindings, + /* [in] */ BSTR bstrRootVDirPath, + /* [defaultvalue][in] */ VARIANT vServerID, + /* [retval][out] */ VARIANT *pvActualID) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE EnableApplication( + /* [in] */ BSTR bstrAppName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE RemoveApplication( + /* [in] */ BSTR bstrAppName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ListApplications( + /* [retval][out] */ VARIANT *bstrBuffer) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AddDependency( + /* [in] */ BSTR bstrApplication, + /* [in] */ BSTR bstrGroupID) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE RemoveDependency( + /* [in] */ BSTR bstrApplication, + /* [in] */ BSTR bstrGroupID) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE EnableWebServiceExtension( + /* [in] */ BSTR bstrExtension) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE DisableWebServiceExtension( + /* [in] */ BSTR bstrExtension) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ListWebServiceExtensions( + /* [retval][out] */ VARIANT *bstrBuffer) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE EnableExtensionFile( + /* [in] */ BSTR bstrExtensionFile) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE DisableExtensionFile( + /* [in] */ BSTR bstrExtensionFile) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AddExtensionFile( + /* [in] */ BSTR bstrExtensionFile, + /* [in] */ VARIANT bAccess, + /* [in] */ BSTR bstrGroupID, + /* [in] */ VARIANT bCanDelete, + /* [in] */ BSTR bstrDescription) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE DeleteExtensionFileRecord( + /* [in] */ BSTR bstrExtensionFile) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ListExtensionFiles( + /* [retval][out] */ VARIANT *bstrBuffer) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE QueryGroupIDStatus( + /* [in] */ BSTR bstrGroupID, + /* [retval][out] */ VARIANT *bstrBuffer) = 0; + + }; + +#else /* C style interface */ + + typedef struct IISWebServiceVtbl + { + BEGIN_INTERFACE + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISWebService * This, + /* [in][idldescattr] */ GUID *riid, + /* [out][idldescattr] */ void **ppvObj, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *AddRef )( + IISWebService * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Release )( + IISWebService * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IISWebService * This, + /* [out][idldescattr] */ UINT *pctinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IISWebService * This, + /* [in][idldescattr] */ UINT itinfo, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ void **pptinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IISWebService * This, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ signed char **rgszNames, + /* [in][idldescattr] */ UINT cNames, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ signed long *rgdispid, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IISWebService * This, + /* [in][idldescattr] */ signed long dispidMember, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ unsigned long lcid, + /* [in][idldescattr] */ unsigned short wFlags, + /* [in][idldescattr] */ DISPPARAMS *pdispparams, + /* [out][idldescattr] */ VARIANT *pvarResult, + /* [out][idldescattr] */ EXCEPINFO *pexcepinfo, + /* [out][idldescattr] */ UINT *puArgErr, + /* [retval][out] */ void *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + IISWebService * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + IISWebService * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + IISWebService * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + IISWebService * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + IISWebService * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + IISWebService * This, + /* [retval][out] */ BSTR *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IISWebService * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + IISWebService * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Get )( + IISWebService * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Put )( + IISWebService * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + IISWebService * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + IISWebService * This, + /* [in][idldescattr] */ signed long lnControlCode, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + IISWebService * This, + /* [in][idldescattr] */ VARIANT vProperties, + /* [in][idldescattr] */ signed long lnReserved, + /* [retval][out] */ void *retval); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrentMode )( + IISWebService * This, + /* [retval][out] */ VARIANT *pvServerMode); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CreateNewSite )( + IISWebService * This, + /* [in] */ BSTR bstrServerComment, + /* [in] */ VARIANT *pvServerBindings, + /* [in] */ BSTR bstrRootVDirPath, + /* [defaultvalue][in] */ VARIANT vServerID, + /* [retval][out] */ VARIANT *pvActualID); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableApplication )( + IISWebService * This, + /* [in] */ BSTR bstrAppName); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RemoveApplication )( + IISWebService * This, + /* [in] */ BSTR bstrAppName); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ListApplications )( + IISWebService * This, + /* [retval][out] */ VARIANT *bstrBuffer); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddDependency )( + IISWebService * This, + /* [in] */ BSTR bstrApplication, + /* [in] */ BSTR bstrGroupID); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RemoveDependency )( + IISWebService * This, + /* [in] */ BSTR bstrApplication, + /* [in] */ BSTR bstrGroupID); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableWebServiceExtension )( + IISWebService * This, + /* [in] */ BSTR bstrExtension); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DisableWebServiceExtension )( + IISWebService * This, + /* [in] */ BSTR bstrExtension); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ListWebServiceExtensions )( + IISWebService * This, + /* [retval][out] */ VARIANT *bstrBuffer); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnableExtensionFile )( + IISWebService * This, + /* [in] */ BSTR bstrExtensionFile); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DisableExtensionFile )( + IISWebService * This, + /* [in] */ BSTR bstrExtensionFile); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AddExtensionFile )( + IISWebService * This, + /* [in] */ BSTR bstrExtensionFile, + /* [in] */ VARIANT bAccess, + /* [in] */ BSTR bstrGroupID, + /* [in] */ VARIANT bCanDelete, + /* [in] */ BSTR bstrDescription); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DeleteExtensionFileRecord )( + IISWebService * This, + /* [in] */ BSTR bstrExtensionFile); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ListExtensionFiles )( + IISWebService * This, + /* [retval][out] */ VARIANT *bstrBuffer); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *QueryGroupIDStatus )( + IISWebService * This, + /* [in] */ BSTR bstrGroupID, + /* [retval][out] */ VARIANT *bstrBuffer); + + END_INTERFACE + } IISWebServiceVtbl; + + interface IISWebService + { + CONST_VTBL struct IISWebServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISWebService_QueryInterface(This,riid,ppvObj,retval) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObj,retval) + +#define IISWebService_AddRef(This,retval) \ + (This)->lpVtbl -> AddRef(This,retval) + +#define IISWebService_Release(This,retval) \ + (This)->lpVtbl -> Release(This,retval) + +#define IISWebService_GetTypeInfoCount(This,pctinfo,retval) \ + (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo,retval) + +#define IISWebService_GetTypeInfo(This,itinfo,lcid,pptinfo,retval) \ + (This)->lpVtbl -> GetTypeInfo(This,itinfo,lcid,pptinfo,retval) + +#define IISWebService_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) \ + (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) + +#define IISWebService_Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) \ + (This)->lpVtbl -> Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) + +#define IISWebService_get_Name(This,retval) \ + (This)->lpVtbl -> get_Name(This,retval) + +#define IISWebService_get_Class(This,retval) \ + (This)->lpVtbl -> get_Class(This,retval) + +#define IISWebService_get_GUID(This,retval) \ + (This)->lpVtbl -> get_GUID(This,retval) + +#define IISWebService_get_ADsPath(This,retval) \ + (This)->lpVtbl -> get_ADsPath(This,retval) + +#define IISWebService_get_Parent(This,retval) \ + (This)->lpVtbl -> get_Parent(This,retval) + +#define IISWebService_get_Schema(This,retval) \ + (This)->lpVtbl -> get_Schema(This,retval) + +#define IISWebService_GetInfo(This,retval) \ + (This)->lpVtbl -> GetInfo(This,retval) + +#define IISWebService_SetInfo(This,retval) \ + (This)->lpVtbl -> SetInfo(This,retval) + +#define IISWebService_Get(This,bstrName,retval) \ + (This)->lpVtbl -> Get(This,bstrName,retval) + +#define IISWebService_Put(This,bstrName,vProp,retval) \ + (This)->lpVtbl -> Put(This,bstrName,vProp,retval) + +#define IISWebService_GetEx(This,bstrName,retval) \ + (This)->lpVtbl -> GetEx(This,bstrName,retval) + +#define IISWebService_PutEx(This,lnControlCode,bstrName,vProp,retval) \ + (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp,retval) + +#define IISWebService_GetInfoEx(This,vProperties,lnReserved,retval) \ + (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved,retval) + + +#define IISWebService_GetCurrentMode(This,pvServerMode) \ + (This)->lpVtbl -> GetCurrentMode(This,pvServerMode) + +#define IISWebService_CreateNewSite(This,bstrServerComment,pvServerBindings,bstrRootVDirPath,vServerID,pvActualID) \ + (This)->lpVtbl -> CreateNewSite(This,bstrServerComment,pvServerBindings,bstrRootVDirPath,vServerID,pvActualID) + +#define IISWebService_EnableApplication(This,bstrAppName) \ + (This)->lpVtbl -> EnableApplication(This,bstrAppName) + +#define IISWebService_RemoveApplication(This,bstrAppName) \ + (This)->lpVtbl -> RemoveApplication(This,bstrAppName) + +#define IISWebService_ListApplications(This,bstrBuffer) \ + (This)->lpVtbl -> ListApplications(This,bstrBuffer) + +#define IISWebService_AddDependency(This,bstrApplication,bstrGroupID) \ + (This)->lpVtbl -> AddDependency(This,bstrApplication,bstrGroupID) + +#define IISWebService_RemoveDependency(This,bstrApplication,bstrGroupID) \ + (This)->lpVtbl -> RemoveDependency(This,bstrApplication,bstrGroupID) + +#define IISWebService_EnableWebServiceExtension(This,bstrExtension) \ + (This)->lpVtbl -> EnableWebServiceExtension(This,bstrExtension) + +#define IISWebService_DisableWebServiceExtension(This,bstrExtension) \ + (This)->lpVtbl -> DisableWebServiceExtension(This,bstrExtension) + +#define IISWebService_ListWebServiceExtensions(This,bstrBuffer) \ + (This)->lpVtbl -> ListWebServiceExtensions(This,bstrBuffer) + +#define IISWebService_EnableExtensionFile(This,bstrExtensionFile) \ + (This)->lpVtbl -> EnableExtensionFile(This,bstrExtensionFile) + +#define IISWebService_DisableExtensionFile(This,bstrExtensionFile) \ + (This)->lpVtbl -> DisableExtensionFile(This,bstrExtensionFile) + +#define IISWebService_AddExtensionFile(This,bstrExtensionFile,bAccess,bstrGroupID,bCanDelete,bstrDescription) \ + (This)->lpVtbl -> AddExtensionFile(This,bstrExtensionFile,bAccess,bstrGroupID,bCanDelete,bstrDescription) + +#define IISWebService_DeleteExtensionFileRecord(This,bstrExtensionFile) \ + (This)->lpVtbl -> DeleteExtensionFileRecord(This,bstrExtensionFile) + +#define IISWebService_ListExtensionFiles(This,bstrBuffer) \ + (This)->lpVtbl -> ListExtensionFiles(This,bstrBuffer) + +#define IISWebService_QueryGroupIDStatus(This,bstrGroupID,bstrBuffer) \ + (This)->lpVtbl -> QueryGroupIDStatus(This,bstrGroupID,bstrBuffer) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_GetCurrentMode_Proxy( + IISWebService * This, + /* [retval][out] */ VARIANT *pvServerMode); + + +void __RPC_STUB IISWebService_GetCurrentMode_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_CreateNewSite_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrServerComment, + /* [in] */ VARIANT *pvServerBindings, + /* [in] */ BSTR bstrRootVDirPath, + /* [defaultvalue][in] */ VARIANT vServerID, + /* [retval][out] */ VARIANT *pvActualID); + + +void __RPC_STUB IISWebService_CreateNewSite_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_EnableApplication_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrAppName); + + +void __RPC_STUB IISWebService_EnableApplication_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_RemoveApplication_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrAppName); + + +void __RPC_STUB IISWebService_RemoveApplication_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_ListApplications_Proxy( + IISWebService * This, + /* [retval][out] */ VARIANT *bstrBuffer); + + +void __RPC_STUB IISWebService_ListApplications_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_AddDependency_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrApplication, + /* [in] */ BSTR bstrGroupID); + + +void __RPC_STUB IISWebService_AddDependency_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_RemoveDependency_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrApplication, + /* [in] */ BSTR bstrGroupID); + + +void __RPC_STUB IISWebService_RemoveDependency_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_EnableWebServiceExtension_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrExtension); + + +void __RPC_STUB IISWebService_EnableWebServiceExtension_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_DisableWebServiceExtension_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrExtension); + + +void __RPC_STUB IISWebService_DisableWebServiceExtension_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_ListWebServiceExtensions_Proxy( + IISWebService * This, + /* [retval][out] */ VARIANT *bstrBuffer); + + +void __RPC_STUB IISWebService_ListWebServiceExtensions_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_EnableExtensionFile_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrExtensionFile); + + +void __RPC_STUB IISWebService_EnableExtensionFile_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_DisableExtensionFile_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrExtensionFile); + + +void __RPC_STUB IISWebService_DisableExtensionFile_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_AddExtensionFile_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrExtensionFile, + /* [in] */ VARIANT bAccess, + /* [in] */ BSTR bstrGroupID, + /* [in] */ VARIANT bCanDelete, + /* [in] */ BSTR bstrDescription); + + +void __RPC_STUB IISWebService_AddExtensionFile_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_DeleteExtensionFileRecord_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrExtensionFile); + + +void __RPC_STUB IISWebService_DeleteExtensionFileRecord_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_ListExtensionFiles_Proxy( + IISWebService * This, + /* [retval][out] */ VARIANT *bstrBuffer); + + +void __RPC_STUB IISWebService_ListExtensionFiles_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISWebService_QueryGroupIDStatus_Proxy( + IISWebService * This, + /* [in] */ BSTR bstrGroupID, + /* [retval][out] */ VARIANT *bstrBuffer); + + +void __RPC_STUB IISWebService_QueryGroupIDStatus_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IISWebService_INTERFACE_DEFINED__ */ + + +#ifndef __IISDsCrMap_INTERFACE_DEFINED__ +#define __IISDsCrMap_INTERFACE_DEFINED__ + +/* interface IISDsCrMap */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IISDsCrMap; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("edcd6a60-b053-11d0-a62f-00a0c922e752") + IISDsCrMap : public IADs + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE CreateMapping( + /* [in] */ VARIANT vCert, + /* [in] */ BSTR bstrNtAcct, + /* [in] */ BSTR bstrNtPwd, + /* [in] */ BSTR bstrName, + /* [in] */ LONG lEnabled) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE GetMapping( + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [out] */ VARIANT *pvCert, + /* [out] */ VARIANT *pbstrNtAcct, + /* [out] */ VARIANT *pbstrNtPwd, + /* [out] */ VARIANT *pbstrName, + /* [out] */ VARIANT *plEnabled) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE DeleteMapping( + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetEnabled( + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ LONG lEnabled) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetName( + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ BSTR bstrName) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetPwd( + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ BSTR bstrPwd) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SetAcct( + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ BSTR bstrAcct) = 0; + + }; + +#else /* C style interface */ + + typedef struct IISDsCrMapVtbl + { + BEGIN_INTERFACE + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDsCrMap * This, + /* [in][idldescattr] */ GUID *riid, + /* [out][idldescattr] */ void **ppvObj, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *AddRef )( + IISDsCrMap * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Release )( + IISDsCrMap * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IISDsCrMap * This, + /* [out][idldescattr] */ UINT *pctinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IISDsCrMap * This, + /* [in][idldescattr] */ UINT itinfo, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ void **pptinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IISDsCrMap * This, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ signed char **rgszNames, + /* [in][idldescattr] */ UINT cNames, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ signed long *rgdispid, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IISDsCrMap * This, + /* [in][idldescattr] */ signed long dispidMember, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ unsigned long lcid, + /* [in][idldescattr] */ unsigned short wFlags, + /* [in][idldescattr] */ DISPPARAMS *pdispparams, + /* [out][idldescattr] */ VARIANT *pvarResult, + /* [out][idldescattr] */ EXCEPINFO *pexcepinfo, + /* [out][idldescattr] */ UINT *puArgErr, + /* [retval][out] */ void *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + IISDsCrMap * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + IISDsCrMap * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + IISDsCrMap * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + IISDsCrMap * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + IISDsCrMap * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + IISDsCrMap * This, + /* [retval][out] */ BSTR *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IISDsCrMap * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + IISDsCrMap * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Get )( + IISDsCrMap * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Put )( + IISDsCrMap * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + IISDsCrMap * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + IISDsCrMap * This, + /* [in][idldescattr] */ signed long lnControlCode, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + IISDsCrMap * This, + /* [in][idldescattr] */ VARIANT vProperties, + /* [in][idldescattr] */ signed long lnReserved, + /* [retval][out] */ void *retval); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *CreateMapping )( + IISDsCrMap * This, + /* [in] */ VARIANT vCert, + /* [in] */ BSTR bstrNtAcct, + /* [in] */ BSTR bstrNtPwd, + /* [in] */ BSTR bstrName, + /* [in] */ LONG lEnabled); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *GetMapping )( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [out] */ VARIANT *pvCert, + /* [out] */ VARIANT *pbstrNtAcct, + /* [out] */ VARIANT *pbstrNtPwd, + /* [out] */ VARIANT *pbstrName, + /* [out] */ VARIANT *plEnabled); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DeleteMapping )( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetEnabled )( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ LONG lEnabled); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetName )( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ BSTR bstrName); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetPwd )( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ BSTR bstrPwd); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SetAcct )( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ BSTR bstrAcct); + + END_INTERFACE + } IISDsCrMapVtbl; + + interface IISDsCrMap + { + CONST_VTBL struct IISDsCrMapVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDsCrMap_QueryInterface(This,riid,ppvObj,retval) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObj,retval) + +#define IISDsCrMap_AddRef(This,retval) \ + (This)->lpVtbl -> AddRef(This,retval) + +#define IISDsCrMap_Release(This,retval) \ + (This)->lpVtbl -> Release(This,retval) + +#define IISDsCrMap_GetTypeInfoCount(This,pctinfo,retval) \ + (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo,retval) + +#define IISDsCrMap_GetTypeInfo(This,itinfo,lcid,pptinfo,retval) \ + (This)->lpVtbl -> GetTypeInfo(This,itinfo,lcid,pptinfo,retval) + +#define IISDsCrMap_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) \ + (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) + +#define IISDsCrMap_Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) \ + (This)->lpVtbl -> Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) + +#define IISDsCrMap_get_Name(This,retval) \ + (This)->lpVtbl -> get_Name(This,retval) + +#define IISDsCrMap_get_Class(This,retval) \ + (This)->lpVtbl -> get_Class(This,retval) + +#define IISDsCrMap_get_GUID(This,retval) \ + (This)->lpVtbl -> get_GUID(This,retval) + +#define IISDsCrMap_get_ADsPath(This,retval) \ + (This)->lpVtbl -> get_ADsPath(This,retval) + +#define IISDsCrMap_get_Parent(This,retval) \ + (This)->lpVtbl -> get_Parent(This,retval) + +#define IISDsCrMap_get_Schema(This,retval) \ + (This)->lpVtbl -> get_Schema(This,retval) + +#define IISDsCrMap_GetInfo(This,retval) \ + (This)->lpVtbl -> GetInfo(This,retval) + +#define IISDsCrMap_SetInfo(This,retval) \ + (This)->lpVtbl -> SetInfo(This,retval) + +#define IISDsCrMap_Get(This,bstrName,retval) \ + (This)->lpVtbl -> Get(This,bstrName,retval) + +#define IISDsCrMap_Put(This,bstrName,vProp,retval) \ + (This)->lpVtbl -> Put(This,bstrName,vProp,retval) + +#define IISDsCrMap_GetEx(This,bstrName,retval) \ + (This)->lpVtbl -> GetEx(This,bstrName,retval) + +#define IISDsCrMap_PutEx(This,lnControlCode,bstrName,vProp,retval) \ + (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp,retval) + +#define IISDsCrMap_GetInfoEx(This,vProperties,lnReserved,retval) \ + (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved,retval) + + +#define IISDsCrMap_CreateMapping(This,vCert,bstrNtAcct,bstrNtPwd,bstrName,lEnabled) \ + (This)->lpVtbl -> CreateMapping(This,vCert,bstrNtAcct,bstrNtPwd,bstrName,lEnabled) + +#define IISDsCrMap_GetMapping(This,lMethod,vKey,pvCert,pbstrNtAcct,pbstrNtPwd,pbstrName,plEnabled) \ + (This)->lpVtbl -> GetMapping(This,lMethod,vKey,pvCert,pbstrNtAcct,pbstrNtPwd,pbstrName,plEnabled) + +#define IISDsCrMap_DeleteMapping(This,lMethod,vKey) \ + (This)->lpVtbl -> DeleteMapping(This,lMethod,vKey) + +#define IISDsCrMap_SetEnabled(This,lMethod,vKey,lEnabled) \ + (This)->lpVtbl -> SetEnabled(This,lMethod,vKey,lEnabled) + +#define IISDsCrMap_SetName(This,lMethod,vKey,bstrName) \ + (This)->lpVtbl -> SetName(This,lMethod,vKey,bstrName) + +#define IISDsCrMap_SetPwd(This,lMethod,vKey,bstrPwd) \ + (This)->lpVtbl -> SetPwd(This,lMethod,vKey,bstrPwd) + +#define IISDsCrMap_SetAcct(This,lMethod,vKey,bstrAcct) \ + (This)->lpVtbl -> SetAcct(This,lMethod,vKey,bstrAcct) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISDsCrMap_CreateMapping_Proxy( + IISDsCrMap * This, + /* [in] */ VARIANT vCert, + /* [in] */ BSTR bstrNtAcct, + /* [in] */ BSTR bstrNtPwd, + /* [in] */ BSTR bstrName, + /* [in] */ LONG lEnabled); + + +void __RPC_STUB IISDsCrMap_CreateMapping_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISDsCrMap_GetMapping_Proxy( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [out] */ VARIANT *pvCert, + /* [out] */ VARIANT *pbstrNtAcct, + /* [out] */ VARIANT *pbstrNtPwd, + /* [out] */ VARIANT *pbstrName, + /* [out] */ VARIANT *plEnabled); + + +void __RPC_STUB IISDsCrMap_GetMapping_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISDsCrMap_DeleteMapping_Proxy( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey); + + +void __RPC_STUB IISDsCrMap_DeleteMapping_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISDsCrMap_SetEnabled_Proxy( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ LONG lEnabled); + + +void __RPC_STUB IISDsCrMap_SetEnabled_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISDsCrMap_SetName_Proxy( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ BSTR bstrName); + + +void __RPC_STUB IISDsCrMap_SetName_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISDsCrMap_SetPwd_Proxy( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ BSTR bstrPwd); + + +void __RPC_STUB IISDsCrMap_SetPwd_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISDsCrMap_SetAcct_Proxy( + IISDsCrMap * This, + /* [in] */ LONG lMethod, + /* [in] */ VARIANT vKey, + /* [in] */ BSTR bstrAcct); + + +void __RPC_STUB IISDsCrMap_SetAcct_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IISDsCrMap_INTERFACE_DEFINED__ */ + + +#ifndef __IISApp_INTERFACE_DEFINED__ +#define __IISApp_INTERFACE_DEFINED__ + +/* interface IISApp */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IISApp; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("46FBBB80-0192-11d1-9C39-00A0C922E703") + IISApp : public IADs + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppCreate( + /* [in] */ VARIANT_BOOL bSetInProcFlag) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppDelete( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppDeleteRecursive( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppUnLoad( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppUnLoadRecursive( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppDisable( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppDisableRecursive( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppEnable( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppEnableRecursive( void) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppGetStatus( + /* [out] */ DWORD *pdwStatus) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AspAppRestart( void) = 0; + + }; + +#else /* C style interface */ + + typedef struct IISAppVtbl + { + BEGIN_INTERFACE + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISApp * This, + /* [in][idldescattr] */ GUID *riid, + /* [out][idldescattr] */ void **ppvObj, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *AddRef )( + IISApp * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Release )( + IISApp * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IISApp * This, + /* [out][idldescattr] */ UINT *pctinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IISApp * This, + /* [in][idldescattr] */ UINT itinfo, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ void **pptinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IISApp * This, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ signed char **rgszNames, + /* [in][idldescattr] */ UINT cNames, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ signed long *rgdispid, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IISApp * This, + /* [in][idldescattr] */ signed long dispidMember, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ unsigned long lcid, + /* [in][idldescattr] */ unsigned short wFlags, + /* [in][idldescattr] */ DISPPARAMS *pdispparams, + /* [out][idldescattr] */ VARIANT *pvarResult, + /* [out][idldescattr] */ EXCEPINFO *pexcepinfo, + /* [out][idldescattr] */ UINT *puArgErr, + /* [retval][out] */ void *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + IISApp * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + IISApp * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + IISApp * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + IISApp * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + IISApp * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + IISApp * This, + /* [retval][out] */ BSTR *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IISApp * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + IISApp * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Get )( + IISApp * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Put )( + IISApp * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + IISApp * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + IISApp * This, + /* [in][idldescattr] */ signed long lnControlCode, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + IISApp * This, + /* [in][idldescattr] */ VARIANT vProperties, + /* [in][idldescattr] */ signed long lnReserved, + /* [retval][out] */ void *retval); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppCreate )( + IISApp * This, + /* [in] */ VARIANT_BOOL bSetInProcFlag); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDelete )( + IISApp * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDeleteRecursive )( + IISApp * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppUnLoad )( + IISApp * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppUnLoadRecursive )( + IISApp * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDisable )( + IISApp * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDisableRecursive )( + IISApp * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppEnable )( + IISApp * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppEnableRecursive )( + IISApp * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppGetStatus )( + IISApp * This, + /* [out] */ DWORD *pdwStatus); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AspAppRestart )( + IISApp * This); + + END_INTERFACE + } IISAppVtbl; + + interface IISApp + { + CONST_VTBL struct IISAppVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISApp_QueryInterface(This,riid,ppvObj,retval) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObj,retval) + +#define IISApp_AddRef(This,retval) \ + (This)->lpVtbl -> AddRef(This,retval) + +#define IISApp_Release(This,retval) \ + (This)->lpVtbl -> Release(This,retval) + +#define IISApp_GetTypeInfoCount(This,pctinfo,retval) \ + (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo,retval) + +#define IISApp_GetTypeInfo(This,itinfo,lcid,pptinfo,retval) \ + (This)->lpVtbl -> GetTypeInfo(This,itinfo,lcid,pptinfo,retval) + +#define IISApp_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) \ + (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) + +#define IISApp_Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) \ + (This)->lpVtbl -> Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) + +#define IISApp_get_Name(This,retval) \ + (This)->lpVtbl -> get_Name(This,retval) + +#define IISApp_get_Class(This,retval) \ + (This)->lpVtbl -> get_Class(This,retval) + +#define IISApp_get_GUID(This,retval) \ + (This)->lpVtbl -> get_GUID(This,retval) + +#define IISApp_get_ADsPath(This,retval) \ + (This)->lpVtbl -> get_ADsPath(This,retval) + +#define IISApp_get_Parent(This,retval) \ + (This)->lpVtbl -> get_Parent(This,retval) + +#define IISApp_get_Schema(This,retval) \ + (This)->lpVtbl -> get_Schema(This,retval) + +#define IISApp_GetInfo(This,retval) \ + (This)->lpVtbl -> GetInfo(This,retval) + +#define IISApp_SetInfo(This,retval) \ + (This)->lpVtbl -> SetInfo(This,retval) + +#define IISApp_Get(This,bstrName,retval) \ + (This)->lpVtbl -> Get(This,bstrName,retval) + +#define IISApp_Put(This,bstrName,vProp,retval) \ + (This)->lpVtbl -> Put(This,bstrName,vProp,retval) + +#define IISApp_GetEx(This,bstrName,retval) \ + (This)->lpVtbl -> GetEx(This,bstrName,retval) + +#define IISApp_PutEx(This,lnControlCode,bstrName,vProp,retval) \ + (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp,retval) + +#define IISApp_GetInfoEx(This,vProperties,lnReserved,retval) \ + (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved,retval) + + +#define IISApp_AppCreate(This,bSetInProcFlag) \ + (This)->lpVtbl -> AppCreate(This,bSetInProcFlag) + +#define IISApp_AppDelete(This) \ + (This)->lpVtbl -> AppDelete(This) + +#define IISApp_AppDeleteRecursive(This) \ + (This)->lpVtbl -> AppDeleteRecursive(This) + +#define IISApp_AppUnLoad(This) \ + (This)->lpVtbl -> AppUnLoad(This) + +#define IISApp_AppUnLoadRecursive(This) \ + (This)->lpVtbl -> AppUnLoadRecursive(This) + +#define IISApp_AppDisable(This) \ + (This)->lpVtbl -> AppDisable(This) + +#define IISApp_AppDisableRecursive(This) \ + (This)->lpVtbl -> AppDisableRecursive(This) + +#define IISApp_AppEnable(This) \ + (This)->lpVtbl -> AppEnable(This) + +#define IISApp_AppEnableRecursive(This) \ + (This)->lpVtbl -> AppEnableRecursive(This) + +#define IISApp_AppGetStatus(This,pdwStatus) \ + (This)->lpVtbl -> AppGetStatus(This,pdwStatus) + +#define IISApp_AspAppRestart(This) \ + (This)->lpVtbl -> AspAppRestart(This) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AppCreate_Proxy( + IISApp * This, + /* [in] */ VARIANT_BOOL bSetInProcFlag); + + +void __RPC_STUB IISApp_AppCreate_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AppDelete_Proxy( + IISApp * This); + + +void __RPC_STUB IISApp_AppDelete_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AppDeleteRecursive_Proxy( + IISApp * This); + + +void __RPC_STUB IISApp_AppDeleteRecursive_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AppUnLoad_Proxy( + IISApp * This); + + +void __RPC_STUB IISApp_AppUnLoad_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AppUnLoadRecursive_Proxy( + IISApp * This); + + +void __RPC_STUB IISApp_AppUnLoadRecursive_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AppDisable_Proxy( + IISApp * This); + + +void __RPC_STUB IISApp_AppDisable_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AppDisableRecursive_Proxy( + IISApp * This); + + +void __RPC_STUB IISApp_AppDisableRecursive_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AppEnable_Proxy( + IISApp * This); + + +void __RPC_STUB IISApp_AppEnable_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AppEnableRecursive_Proxy( + IISApp * This); + + +void __RPC_STUB IISApp_AppEnableRecursive_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AppGetStatus_Proxy( + IISApp * This, + /* [out] */ DWORD *pdwStatus); + + +void __RPC_STUB IISApp_AppGetStatus_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp_AspAppRestart_Proxy( + IISApp * This); + + +void __RPC_STUB IISApp_AspAppRestart_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IISApp_INTERFACE_DEFINED__ */ + + +#ifndef __IISApp2_INTERFACE_DEFINED__ +#define __IISApp2_INTERFACE_DEFINED__ + +/* interface IISApp2 */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IISApp2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("603DCBEA-7350-11d2-A7BE-0000F8085B95") + IISApp2 : public IISApp + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppCreate2( + /* [in] */ LONG lAppMode) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppGetStatus2( + /* [retval][out] */ LONG *lpStatus) = 0; + + }; + +#else /* C style interface */ + + typedef struct IISApp2Vtbl + { + BEGIN_INTERFACE + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISApp2 * This, + /* [in][idldescattr] */ GUID *riid, + /* [out][idldescattr] */ void **ppvObj, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *AddRef )( + IISApp2 * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Release )( + IISApp2 * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IISApp2 * This, + /* [out][idldescattr] */ UINT *pctinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IISApp2 * This, + /* [in][idldescattr] */ UINT itinfo, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ void **pptinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IISApp2 * This, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ signed char **rgszNames, + /* [in][idldescattr] */ UINT cNames, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ signed long *rgdispid, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IISApp2 * This, + /* [in][idldescattr] */ signed long dispidMember, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ unsigned long lcid, + /* [in][idldescattr] */ unsigned short wFlags, + /* [in][idldescattr] */ DISPPARAMS *pdispparams, + /* [out][idldescattr] */ VARIANT *pvarResult, + /* [out][idldescattr] */ EXCEPINFO *pexcepinfo, + /* [out][idldescattr] */ UINT *puArgErr, + /* [retval][out] */ void *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + IISApp2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + IISApp2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + IISApp2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + IISApp2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + IISApp2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + IISApp2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IISApp2 * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + IISApp2 * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Get )( + IISApp2 * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Put )( + IISApp2 * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + IISApp2 * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + IISApp2 * This, + /* [in][idldescattr] */ signed long lnControlCode, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + IISApp2 * This, + /* [in][idldescattr] */ VARIANT vProperties, + /* [in][idldescattr] */ signed long lnReserved, + /* [retval][out] */ void *retval); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppCreate )( + IISApp2 * This, + /* [in] */ VARIANT_BOOL bSetInProcFlag); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDelete )( + IISApp2 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDeleteRecursive )( + IISApp2 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppUnLoad )( + IISApp2 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppUnLoadRecursive )( + IISApp2 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDisable )( + IISApp2 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDisableRecursive )( + IISApp2 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppEnable )( + IISApp2 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppEnableRecursive )( + IISApp2 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppGetStatus )( + IISApp2 * This, + /* [out] */ DWORD *pdwStatus); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AspAppRestart )( + IISApp2 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppCreate2 )( + IISApp2 * This, + /* [in] */ LONG lAppMode); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppGetStatus2 )( + IISApp2 * This, + /* [retval][out] */ LONG *lpStatus); + + END_INTERFACE + } IISApp2Vtbl; + + interface IISApp2 + { + CONST_VTBL struct IISApp2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISApp2_QueryInterface(This,riid,ppvObj,retval) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObj,retval) + +#define IISApp2_AddRef(This,retval) \ + (This)->lpVtbl -> AddRef(This,retval) + +#define IISApp2_Release(This,retval) \ + (This)->lpVtbl -> Release(This,retval) + +#define IISApp2_GetTypeInfoCount(This,pctinfo,retval) \ + (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo,retval) + +#define IISApp2_GetTypeInfo(This,itinfo,lcid,pptinfo,retval) \ + (This)->lpVtbl -> GetTypeInfo(This,itinfo,lcid,pptinfo,retval) + +#define IISApp2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) \ + (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) + +#define IISApp2_Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) \ + (This)->lpVtbl -> Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) + +#define IISApp2_get_Name(This,retval) \ + (This)->lpVtbl -> get_Name(This,retval) + +#define IISApp2_get_Class(This,retval) \ + (This)->lpVtbl -> get_Class(This,retval) + +#define IISApp2_get_GUID(This,retval) \ + (This)->lpVtbl -> get_GUID(This,retval) + +#define IISApp2_get_ADsPath(This,retval) \ + (This)->lpVtbl -> get_ADsPath(This,retval) + +#define IISApp2_get_Parent(This,retval) \ + (This)->lpVtbl -> get_Parent(This,retval) + +#define IISApp2_get_Schema(This,retval) \ + (This)->lpVtbl -> get_Schema(This,retval) + +#define IISApp2_GetInfo(This,retval) \ + (This)->lpVtbl -> GetInfo(This,retval) + +#define IISApp2_SetInfo(This,retval) \ + (This)->lpVtbl -> SetInfo(This,retval) + +#define IISApp2_Get(This,bstrName,retval) \ + (This)->lpVtbl -> Get(This,bstrName,retval) + +#define IISApp2_Put(This,bstrName,vProp,retval) \ + (This)->lpVtbl -> Put(This,bstrName,vProp,retval) + +#define IISApp2_GetEx(This,bstrName,retval) \ + (This)->lpVtbl -> GetEx(This,bstrName,retval) + +#define IISApp2_PutEx(This,lnControlCode,bstrName,vProp,retval) \ + (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp,retval) + +#define IISApp2_GetInfoEx(This,vProperties,lnReserved,retval) \ + (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved,retval) + + +#define IISApp2_AppCreate(This,bSetInProcFlag) \ + (This)->lpVtbl -> AppCreate(This,bSetInProcFlag) + +#define IISApp2_AppDelete(This) \ + (This)->lpVtbl -> AppDelete(This) + +#define IISApp2_AppDeleteRecursive(This) \ + (This)->lpVtbl -> AppDeleteRecursive(This) + +#define IISApp2_AppUnLoad(This) \ + (This)->lpVtbl -> AppUnLoad(This) + +#define IISApp2_AppUnLoadRecursive(This) \ + (This)->lpVtbl -> AppUnLoadRecursive(This) + +#define IISApp2_AppDisable(This) \ + (This)->lpVtbl -> AppDisable(This) + +#define IISApp2_AppDisableRecursive(This) \ + (This)->lpVtbl -> AppDisableRecursive(This) + +#define IISApp2_AppEnable(This) \ + (This)->lpVtbl -> AppEnable(This) + +#define IISApp2_AppEnableRecursive(This) \ + (This)->lpVtbl -> AppEnableRecursive(This) + +#define IISApp2_AppGetStatus(This,pdwStatus) \ + (This)->lpVtbl -> AppGetStatus(This,pdwStatus) + +#define IISApp2_AspAppRestart(This) \ + (This)->lpVtbl -> AspAppRestart(This) + + +#define IISApp2_AppCreate2(This,lAppMode) \ + (This)->lpVtbl -> AppCreate2(This,lAppMode) + +#define IISApp2_AppGetStatus2(This,lpStatus) \ + (This)->lpVtbl -> AppGetStatus2(This,lpStatus) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp2_AppCreate2_Proxy( + IISApp2 * This, + /* [in] */ LONG lAppMode); + + +void __RPC_STUB IISApp2_AppCreate2_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp2_AppGetStatus2_Proxy( + IISApp2 * This, + /* [retval][out] */ LONG *lpStatus); + + +void __RPC_STUB IISApp2_AppGetStatus2_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IISApp2_INTERFACE_DEFINED__ */ + + +#ifndef __IISApp3_INTERFACE_DEFINED__ +#define __IISApp3_INTERFACE_DEFINED__ + +/* interface IISApp3 */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IISApp3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2812B639-8FAC-4510-96C5-71DDBD1F54FC") + IISApp3 : public IISApp2 + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE AppCreate3( + /* [in] */ LONG lAppMode, + /* [in] */ VARIANT bstrAppPooI, + /* [in] */ VARIANT bCreatePool) = 0; + + }; + +#else /* C style interface */ + + typedef struct IISApp3Vtbl + { + BEGIN_INTERFACE + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISApp3 * This, + /* [in][idldescattr] */ GUID *riid, + /* [out][idldescattr] */ void **ppvObj, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *AddRef )( + IISApp3 * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Release )( + IISApp3 * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IISApp3 * This, + /* [out][idldescattr] */ UINT *pctinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IISApp3 * This, + /* [in][idldescattr] */ UINT itinfo, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ void **pptinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IISApp3 * This, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ signed char **rgszNames, + /* [in][idldescattr] */ UINT cNames, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ signed long *rgdispid, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IISApp3 * This, + /* [in][idldescattr] */ signed long dispidMember, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ unsigned long lcid, + /* [in][idldescattr] */ unsigned short wFlags, + /* [in][idldescattr] */ DISPPARAMS *pdispparams, + /* [out][idldescattr] */ VARIANT *pvarResult, + /* [out][idldescattr] */ EXCEPINFO *pexcepinfo, + /* [out][idldescattr] */ UINT *puArgErr, + /* [retval][out] */ void *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + IISApp3 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + IISApp3 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + IISApp3 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + IISApp3 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + IISApp3 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + IISApp3 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IISApp3 * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + IISApp3 * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Get )( + IISApp3 * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Put )( + IISApp3 * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + IISApp3 * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + IISApp3 * This, + /* [in][idldescattr] */ signed long lnControlCode, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + IISApp3 * This, + /* [in][idldescattr] */ VARIANT vProperties, + /* [in][idldescattr] */ signed long lnReserved, + /* [retval][out] */ void *retval); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppCreate )( + IISApp3 * This, + /* [in] */ VARIANT_BOOL bSetInProcFlag); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDelete )( + IISApp3 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDeleteRecursive )( + IISApp3 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppUnLoad )( + IISApp3 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppUnLoadRecursive )( + IISApp3 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDisable )( + IISApp3 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppDisableRecursive )( + IISApp3 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppEnable )( + IISApp3 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppEnableRecursive )( + IISApp3 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppGetStatus )( + IISApp3 * This, + /* [out] */ DWORD *pdwStatus); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AspAppRestart )( + IISApp3 * This); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppCreate2 )( + IISApp3 * This, + /* [in] */ LONG lAppMode); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppGetStatus2 )( + IISApp3 * This, + /* [retval][out] */ LONG *lpStatus); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *AppCreate3 )( + IISApp3 * This, + /* [in] */ LONG lAppMode, + /* [in] */ VARIANT bstrAppPooI, + /* [in] */ VARIANT bCreatePool); + + END_INTERFACE + } IISApp3Vtbl; + + interface IISApp3 + { + CONST_VTBL struct IISApp3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISApp3_QueryInterface(This,riid,ppvObj,retval) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObj,retval) + +#define IISApp3_AddRef(This,retval) \ + (This)->lpVtbl -> AddRef(This,retval) + +#define IISApp3_Release(This,retval) \ + (This)->lpVtbl -> Release(This,retval) + +#define IISApp3_GetTypeInfoCount(This,pctinfo,retval) \ + (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo,retval) + +#define IISApp3_GetTypeInfo(This,itinfo,lcid,pptinfo,retval) \ + (This)->lpVtbl -> GetTypeInfo(This,itinfo,lcid,pptinfo,retval) + +#define IISApp3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) \ + (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) + +#define IISApp3_Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) \ + (This)->lpVtbl -> Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) + +#define IISApp3_get_Name(This,retval) \ + (This)->lpVtbl -> get_Name(This,retval) + +#define IISApp3_get_Class(This,retval) \ + (This)->lpVtbl -> get_Class(This,retval) + +#define IISApp3_get_GUID(This,retval) \ + (This)->lpVtbl -> get_GUID(This,retval) + +#define IISApp3_get_ADsPath(This,retval) \ + (This)->lpVtbl -> get_ADsPath(This,retval) + +#define IISApp3_get_Parent(This,retval) \ + (This)->lpVtbl -> get_Parent(This,retval) + +#define IISApp3_get_Schema(This,retval) \ + (This)->lpVtbl -> get_Schema(This,retval) + +#define IISApp3_GetInfo(This,retval) \ + (This)->lpVtbl -> GetInfo(This,retval) + +#define IISApp3_SetInfo(This,retval) \ + (This)->lpVtbl -> SetInfo(This,retval) + +#define IISApp3_Get(This,bstrName,retval) \ + (This)->lpVtbl -> Get(This,bstrName,retval) + +#define IISApp3_Put(This,bstrName,vProp,retval) \ + (This)->lpVtbl -> Put(This,bstrName,vProp,retval) + +#define IISApp3_GetEx(This,bstrName,retval) \ + (This)->lpVtbl -> GetEx(This,bstrName,retval) + +#define IISApp3_PutEx(This,lnControlCode,bstrName,vProp,retval) \ + (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp,retval) + +#define IISApp3_GetInfoEx(This,vProperties,lnReserved,retval) \ + (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved,retval) + + +#define IISApp3_AppCreate(This,bSetInProcFlag) \ + (This)->lpVtbl -> AppCreate(This,bSetInProcFlag) + +#define IISApp3_AppDelete(This) \ + (This)->lpVtbl -> AppDelete(This) + +#define IISApp3_AppDeleteRecursive(This) \ + (This)->lpVtbl -> AppDeleteRecursive(This) + +#define IISApp3_AppUnLoad(This) \ + (This)->lpVtbl -> AppUnLoad(This) + +#define IISApp3_AppUnLoadRecursive(This) \ + (This)->lpVtbl -> AppUnLoadRecursive(This) + +#define IISApp3_AppDisable(This) \ + (This)->lpVtbl -> AppDisable(This) + +#define IISApp3_AppDisableRecursive(This) \ + (This)->lpVtbl -> AppDisableRecursive(This) + +#define IISApp3_AppEnable(This) \ + (This)->lpVtbl -> AppEnable(This) + +#define IISApp3_AppEnableRecursive(This) \ + (This)->lpVtbl -> AppEnableRecursive(This) + +#define IISApp3_AppGetStatus(This,pdwStatus) \ + (This)->lpVtbl -> AppGetStatus(This,pdwStatus) + +#define IISApp3_AspAppRestart(This) \ + (This)->lpVtbl -> AspAppRestart(This) + + +#define IISApp3_AppCreate2(This,lAppMode) \ + (This)->lpVtbl -> AppCreate2(This,lAppMode) + +#define IISApp3_AppGetStatus2(This,lpStatus) \ + (This)->lpVtbl -> AppGetStatus2(This,lpStatus) + + +#define IISApp3_AppCreate3(This,lAppMode,bstrAppPooI,bCreatePool) \ + (This)->lpVtbl -> AppCreate3(This,lAppMode,bstrAppPooI,bCreatePool) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISApp3_AppCreate3_Proxy( + IISApp3 * This, + /* [in] */ LONG lAppMode, + /* [in] */ VARIANT bstrAppPooI, + /* [in] */ VARIANT bCreatePool); + + +void __RPC_STUB IISApp3_AppCreate3_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IISApp3_INTERFACE_DEFINED__ */ + + +#ifndef __IISComputer_INTERFACE_DEFINED__ +#define __IISComputer_INTERFACE_DEFINED__ + +/* interface IISComputer */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IISComputer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CF87A2E0-078B-11d1-9C3D-00A0C922E703") + IISComputer : public IADs + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Backup( + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Restore( + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE EnumBackups( + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lIndex, + /* [out] */ VARIANT *pvVersion, + /* [out] */ VARIANT *pvLocations, + /* [out] */ VARIANT *pvDate) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE DeleteBackup( + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion) = 0; + + }; + +#else /* C style interface */ + + typedef struct IISComputerVtbl + { + BEGIN_INTERFACE + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISComputer * This, + /* [in][idldescattr] */ GUID *riid, + /* [out][idldescattr] */ void **ppvObj, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *AddRef )( + IISComputer * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Release )( + IISComputer * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IISComputer * This, + /* [out][idldescattr] */ UINT *pctinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IISComputer * This, + /* [in][idldescattr] */ UINT itinfo, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ void **pptinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IISComputer * This, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ signed char **rgszNames, + /* [in][idldescattr] */ UINT cNames, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ signed long *rgdispid, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IISComputer * This, + /* [in][idldescattr] */ signed long dispidMember, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ unsigned long lcid, + /* [in][idldescattr] */ unsigned short wFlags, + /* [in][idldescattr] */ DISPPARAMS *pdispparams, + /* [out][idldescattr] */ VARIANT *pvarResult, + /* [out][idldescattr] */ EXCEPINFO *pexcepinfo, + /* [out][idldescattr] */ UINT *puArgErr, + /* [retval][out] */ void *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + IISComputer * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + IISComputer * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + IISComputer * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + IISComputer * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + IISComputer * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + IISComputer * This, + /* [retval][out] */ BSTR *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IISComputer * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + IISComputer * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Get )( + IISComputer * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Put )( + IISComputer * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + IISComputer * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + IISComputer * This, + /* [in][idldescattr] */ signed long lnControlCode, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + IISComputer * This, + /* [in][idldescattr] */ VARIANT vProperties, + /* [in][idldescattr] */ signed long lnReserved, + /* [retval][out] */ void *retval); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Backup )( + IISComputer * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Restore )( + IISComputer * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnumBackups )( + IISComputer * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lIndex, + /* [out] */ VARIANT *pvVersion, + /* [out] */ VARIANT *pvLocations, + /* [out] */ VARIANT *pvDate); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DeleteBackup )( + IISComputer * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion); + + END_INTERFACE + } IISComputerVtbl; + + interface IISComputer + { + CONST_VTBL struct IISComputerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISComputer_QueryInterface(This,riid,ppvObj,retval) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObj,retval) + +#define IISComputer_AddRef(This,retval) \ + (This)->lpVtbl -> AddRef(This,retval) + +#define IISComputer_Release(This,retval) \ + (This)->lpVtbl -> Release(This,retval) + +#define IISComputer_GetTypeInfoCount(This,pctinfo,retval) \ + (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo,retval) + +#define IISComputer_GetTypeInfo(This,itinfo,lcid,pptinfo,retval) \ + (This)->lpVtbl -> GetTypeInfo(This,itinfo,lcid,pptinfo,retval) + +#define IISComputer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) \ + (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) + +#define IISComputer_Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) \ + (This)->lpVtbl -> Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) + +#define IISComputer_get_Name(This,retval) \ + (This)->lpVtbl -> get_Name(This,retval) + +#define IISComputer_get_Class(This,retval) \ + (This)->lpVtbl -> get_Class(This,retval) + +#define IISComputer_get_GUID(This,retval) \ + (This)->lpVtbl -> get_GUID(This,retval) + +#define IISComputer_get_ADsPath(This,retval) \ + (This)->lpVtbl -> get_ADsPath(This,retval) + +#define IISComputer_get_Parent(This,retval) \ + (This)->lpVtbl -> get_Parent(This,retval) + +#define IISComputer_get_Schema(This,retval) \ + (This)->lpVtbl -> get_Schema(This,retval) + +#define IISComputer_GetInfo(This,retval) \ + (This)->lpVtbl -> GetInfo(This,retval) + +#define IISComputer_SetInfo(This,retval) \ + (This)->lpVtbl -> SetInfo(This,retval) + +#define IISComputer_Get(This,bstrName,retval) \ + (This)->lpVtbl -> Get(This,bstrName,retval) + +#define IISComputer_Put(This,bstrName,vProp,retval) \ + (This)->lpVtbl -> Put(This,bstrName,vProp,retval) + +#define IISComputer_GetEx(This,bstrName,retval) \ + (This)->lpVtbl -> GetEx(This,bstrName,retval) + +#define IISComputer_PutEx(This,lnControlCode,bstrName,vProp,retval) \ + (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp,retval) + +#define IISComputer_GetInfoEx(This,vProperties,lnReserved,retval) \ + (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved,retval) + + +#define IISComputer_Backup(This,bstrLocation,lVersion,lFlags) \ + (This)->lpVtbl -> Backup(This,bstrLocation,lVersion,lFlags) + +#define IISComputer_Restore(This,bstrLocation,lVersion,lFlags) \ + (This)->lpVtbl -> Restore(This,bstrLocation,lVersion,lFlags) + +#define IISComputer_EnumBackups(This,bstrLocation,lIndex,pvVersion,pvLocations,pvDate) \ + (This)->lpVtbl -> EnumBackups(This,bstrLocation,lIndex,pvVersion,pvLocations,pvDate) + +#define IISComputer_DeleteBackup(This,bstrLocation,lVersion) \ + (This)->lpVtbl -> DeleteBackup(This,bstrLocation,lVersion) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISComputer_Backup_Proxy( + IISComputer * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags); + + +void __RPC_STUB IISComputer_Backup_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISComputer_Restore_Proxy( + IISComputer * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags); + + +void __RPC_STUB IISComputer_Restore_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISComputer_EnumBackups_Proxy( + IISComputer * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lIndex, + /* [out] */ VARIANT *pvVersion, + /* [out] */ VARIANT *pvLocations, + /* [out] */ VARIANT *pvDate); + + +void __RPC_STUB IISComputer_EnumBackups_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISComputer_DeleteBackup_Proxy( + IISComputer * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion); + + +void __RPC_STUB IISComputer_DeleteBackup_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IISComputer_INTERFACE_DEFINED__ */ + + +#ifndef __IISComputer2_INTERFACE_DEFINED__ +#define __IISComputer2_INTERFACE_DEFINED__ + +/* interface IISComputer2 */ +/* [object][dual][oleautomation][uuid] */ + + +EXTERN_C const IID IID_IISComputer2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("63d89839-5762-4a68-b1b9-3507ea76cbbf") + IISComputer2 : public IISComputer + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE BackupWithPassword( + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags, + /* [in] */ BSTR bstrPassword) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE RestoreWithPassword( + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags, + /* [in] */ BSTR bstrPassword) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Export( + /* [in] */ BSTR bstrPassword, + /* [in] */ BSTR bstrFilename, + /* [in] */ BSTR bstrSourcePath, + /* [in] */ LONG lFlags) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE Import( + /* [in] */ BSTR bstrPassword, + /* [in] */ BSTR bstrFilename, + /* [in] */ BSTR bstrSourcePath, + /* [in] */ BSTR bstrDestPath, + /* [in] */ LONG lFlags) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE SaveData( void) = 0; + + }; + +#else /* C style interface */ + + typedef struct IISComputer2Vtbl + { + BEGIN_INTERFACE + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISComputer2 * This, + /* [in][idldescattr] */ GUID *riid, + /* [out][idldescattr] */ void **ppvObj, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *AddRef )( + IISComputer2 * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Release )( + IISComputer2 * This, + /* [retval][out] */ unsigned long *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + IISComputer2 * This, + /* [out][idldescattr] */ UINT *pctinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + IISComputer2 * This, + /* [in][idldescattr] */ UINT itinfo, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ void **pptinfo, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + IISComputer2 * This, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ signed char **rgszNames, + /* [in][idldescattr] */ UINT cNames, + /* [in][idldescattr] */ unsigned long lcid, + /* [out][idldescattr] */ signed long *rgdispid, + /* [retval][out] */ void *retval); + + /* [id][restricted][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IISComputer2 * This, + /* [in][idldescattr] */ signed long dispidMember, + /* [in][idldescattr] */ GUID *riid, + /* [in][idldescattr] */ unsigned long lcid, + /* [in][idldescattr] */ unsigned short wFlags, + /* [in][idldescattr] */ DISPPARAMS *pdispparams, + /* [out][idldescattr] */ VARIANT *pvarResult, + /* [out][idldescattr] */ EXCEPINFO *pexcepinfo, + /* [out][idldescattr] */ UINT *puArgErr, + /* [retval][out] */ void *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + IISComputer2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Class )( + IISComputer2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_GUID )( + IISComputer2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_ADsPath )( + IISComputer2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Parent )( + IISComputer2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][propget][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *get_Schema )( + IISComputer2 * This, + /* [retval][out] */ BSTR *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IISComputer2 * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *SetInfo )( + IISComputer2 * This, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Get )( + IISComputer2 * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *Put )( + IISComputer2 * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetEx )( + IISComputer2 * This, + /* [in][idldescattr] */ BSTR bstrName, + /* [retval][out] */ VARIANT *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *PutEx )( + IISComputer2 * This, + /* [in][idldescattr] */ signed long lnControlCode, + /* [in][idldescattr] */ BSTR bstrName, + /* [in][idldescattr] */ VARIANT vProp, + /* [retval][out] */ void *retval); + + /* [id][funcdescattr] */ HRESULT ( STDMETHODCALLTYPE *GetInfoEx )( + IISComputer2 * This, + /* [in][idldescattr] */ VARIANT vProperties, + /* [in][idldescattr] */ signed long lnReserved, + /* [retval][out] */ void *retval); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Backup )( + IISComputer2 * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Restore )( + IISComputer2 * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *EnumBackups )( + IISComputer2 * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lIndex, + /* [out] */ VARIANT *pvVersion, + /* [out] */ VARIANT *pvLocations, + /* [out] */ VARIANT *pvDate); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *DeleteBackup )( + IISComputer2 * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *BackupWithPassword )( + IISComputer2 * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags, + /* [in] */ BSTR bstrPassword); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RestoreWithPassword )( + IISComputer2 * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags, + /* [in] */ BSTR bstrPassword); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Export )( + IISComputer2 * This, + /* [in] */ BSTR bstrPassword, + /* [in] */ BSTR bstrFilename, + /* [in] */ BSTR bstrSourcePath, + /* [in] */ LONG lFlags); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *Import )( + IISComputer2 * This, + /* [in] */ BSTR bstrPassword, + /* [in] */ BSTR bstrFilename, + /* [in] */ BSTR bstrSourcePath, + /* [in] */ BSTR bstrDestPath, + /* [in] */ LONG lFlags); + + /* [id] */ HRESULT ( STDMETHODCALLTYPE *SaveData )( + IISComputer2 * This); + + END_INTERFACE + } IISComputer2Vtbl; + + interface IISComputer2 + { + CONST_VTBL struct IISComputer2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISComputer2_QueryInterface(This,riid,ppvObj,retval) \ + (This)->lpVtbl -> QueryInterface(This,riid,ppvObj,retval) + +#define IISComputer2_AddRef(This,retval) \ + (This)->lpVtbl -> AddRef(This,retval) + +#define IISComputer2_Release(This,retval) \ + (This)->lpVtbl -> Release(This,retval) + +#define IISComputer2_GetTypeInfoCount(This,pctinfo,retval) \ + (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo,retval) + +#define IISComputer2_GetTypeInfo(This,itinfo,lcid,pptinfo,retval) \ + (This)->lpVtbl -> GetTypeInfo(This,itinfo,lcid,pptinfo,retval) + +#define IISComputer2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) \ + (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgdispid,retval) + +#define IISComputer2_Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) \ + (This)->lpVtbl -> Invoke(This,dispidMember,riid,lcid,wFlags,pdispparams,pvarResult,pexcepinfo,puArgErr,retval) + +#define IISComputer2_get_Name(This,retval) \ + (This)->lpVtbl -> get_Name(This,retval) + +#define IISComputer2_get_Class(This,retval) \ + (This)->lpVtbl -> get_Class(This,retval) + +#define IISComputer2_get_GUID(This,retval) \ + (This)->lpVtbl -> get_GUID(This,retval) + +#define IISComputer2_get_ADsPath(This,retval) \ + (This)->lpVtbl -> get_ADsPath(This,retval) + +#define IISComputer2_get_Parent(This,retval) \ + (This)->lpVtbl -> get_Parent(This,retval) + +#define IISComputer2_get_Schema(This,retval) \ + (This)->lpVtbl -> get_Schema(This,retval) + +#define IISComputer2_GetInfo(This,retval) \ + (This)->lpVtbl -> GetInfo(This,retval) + +#define IISComputer2_SetInfo(This,retval) \ + (This)->lpVtbl -> SetInfo(This,retval) + +#define IISComputer2_Get(This,bstrName,retval) \ + (This)->lpVtbl -> Get(This,bstrName,retval) + +#define IISComputer2_Put(This,bstrName,vProp,retval) \ + (This)->lpVtbl -> Put(This,bstrName,vProp,retval) + +#define IISComputer2_GetEx(This,bstrName,retval) \ + (This)->lpVtbl -> GetEx(This,bstrName,retval) + +#define IISComputer2_PutEx(This,lnControlCode,bstrName,vProp,retval) \ + (This)->lpVtbl -> PutEx(This,lnControlCode,bstrName,vProp,retval) + +#define IISComputer2_GetInfoEx(This,vProperties,lnReserved,retval) \ + (This)->lpVtbl -> GetInfoEx(This,vProperties,lnReserved,retval) + + +#define IISComputer2_Backup(This,bstrLocation,lVersion,lFlags) \ + (This)->lpVtbl -> Backup(This,bstrLocation,lVersion,lFlags) + +#define IISComputer2_Restore(This,bstrLocation,lVersion,lFlags) \ + (This)->lpVtbl -> Restore(This,bstrLocation,lVersion,lFlags) + +#define IISComputer2_EnumBackups(This,bstrLocation,lIndex,pvVersion,pvLocations,pvDate) \ + (This)->lpVtbl -> EnumBackups(This,bstrLocation,lIndex,pvVersion,pvLocations,pvDate) + +#define IISComputer2_DeleteBackup(This,bstrLocation,lVersion) \ + (This)->lpVtbl -> DeleteBackup(This,bstrLocation,lVersion) + + +#define IISComputer2_BackupWithPassword(This,bstrLocation,lVersion,lFlags,bstrPassword) \ + (This)->lpVtbl -> BackupWithPassword(This,bstrLocation,lVersion,lFlags,bstrPassword) + +#define IISComputer2_RestoreWithPassword(This,bstrLocation,lVersion,lFlags,bstrPassword) \ + (This)->lpVtbl -> RestoreWithPassword(This,bstrLocation,lVersion,lFlags,bstrPassword) + +#define IISComputer2_Export(This,bstrPassword,bstrFilename,bstrSourcePath,lFlags) \ + (This)->lpVtbl -> Export(This,bstrPassword,bstrFilename,bstrSourcePath,lFlags) + +#define IISComputer2_Import(This,bstrPassword,bstrFilename,bstrSourcePath,bstrDestPath,lFlags) \ + (This)->lpVtbl -> Import(This,bstrPassword,bstrFilename,bstrSourcePath,bstrDestPath,lFlags) + +#define IISComputer2_SaveData(This) \ + (This)->lpVtbl -> SaveData(This) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISComputer2_BackupWithPassword_Proxy( + IISComputer2 * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags, + /* [in] */ BSTR bstrPassword); + + +void __RPC_STUB IISComputer2_BackupWithPassword_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISComputer2_RestoreWithPassword_Proxy( + IISComputer2 * This, + /* [in] */ BSTR bstrLocation, + /* [in] */ LONG lVersion, + /* [in] */ LONG lFlags, + /* [in] */ BSTR bstrPassword); + + +void __RPC_STUB IISComputer2_RestoreWithPassword_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISComputer2_Export_Proxy( + IISComputer2 * This, + /* [in] */ BSTR bstrPassword, + /* [in] */ BSTR bstrFilename, + /* [in] */ BSTR bstrSourcePath, + /* [in] */ LONG lFlags); + + +void __RPC_STUB IISComputer2_Export_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISComputer2_Import_Proxy( + IISComputer2 * This, + /* [in] */ BSTR bstrPassword, + /* [in] */ BSTR bstrFilename, + /* [in] */ BSTR bstrSourcePath, + /* [in] */ BSTR bstrDestPath, + /* [in] */ LONG lFlags); + + +void __RPC_STUB IISComputer2_Import_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + +/* [id] */ HRESULT STDMETHODCALLTYPE IISComputer2_SaveData_Proxy( + IISComputer2 * This); + + +void __RPC_STUB IISComputer2_SaveData_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IISComputer2_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_IISExtComputer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("91ef9258-afec-11d1-9868-00a0c922e703") +IISExtComputer; +#endif + +EXTERN_C const CLSID CLSID_IISExtApp; + +#ifdef __cplusplus + +class DECLSPEC_UUID("b4f34438-afec-11d1-9868-00a0c922e703") +IISExtApp; +#endif + +EXTERN_C const CLSID CLSID_IISExtServer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("c3b32488-afec-11d1-9868-00a0c922e703") +IISExtServer; +#endif + +EXTERN_C const CLSID CLSID_IISExtDsCrMap; + +#ifdef __cplusplus + +class DECLSPEC_UUID("bc36cde8-afeb-11d1-9868-00a0c922e703") +IISExtDsCrMap; +#endif + +EXTERN_C const CLSID CLSID_IISExtApplicationPool; + +#ifdef __cplusplus + +class DECLSPEC_UUID("E99F9D0C-FB39-402b-9EEB-AA185237BD34") +IISExtApplicationPool; +#endif + +EXTERN_C const CLSID CLSID_IISExtApplicationPools; + +#ifdef __cplusplus + +class DECLSPEC_UUID("95863074-A389-406a-A2D7-D98BFC95B905") +IISExtApplicationPools; +#endif + +EXTERN_C const CLSID CLSID_IISExtWebService; + +#ifdef __cplusplus + +class DECLSPEC_UUID("40B8F873-B30E-475d-BEC5-4D0EBB0DBAF3") +IISExtWebService; +#endif +#endif /* __IISExt_LIBRARY_DEFINED__ */ + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iisext_i.c b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iisext_i.c new file mode 100644 index 0000000000000000000000000000000000000000..8ee00f7719a87d40f39a3e71f5b15d3ed78b00e7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iisext_i.c @@ -0,0 +1,116 @@ + + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + +/* link this file in with the server and any clients */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +#ifdef __cplusplus +extern "C"{ +#endif + + +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef struct _IID +{ + unsigned long x; + unsigned short s1; + unsigned short s2; + unsigned char c[8]; +} IID; + +#endif // __IID_DEFINED__ + +#ifndef CLSID_DEFINED +#define CLSID_DEFINED +typedef IID CLSID; +#endif // CLSID_DEFINED + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} + +#endif // !_MIDL_USE_GUIDDEF_ + +MIDL_DEFINE_GUID(IID, LIBID_IISExt,0x2a56ea30,0xafeb,0x11d1,0x98,0x68,0x00,0xa0,0xc9,0x22,0xe7,0x03); + + +MIDL_DEFINE_GUID(IID, IID_IISApplicationPool,0x0B3CB1E1,0x829A,0x4c06,0x8B,0x09,0xF5,0x6D,0xA1,0x89,0x4C,0x88); + + +MIDL_DEFINE_GUID(IID, IID_IISApplicationPools,0x587F123F,0x49B4,0x49dd,0x93,0x9E,0xF4,0x54,0x7A,0xA3,0xFA,0x75); + + +MIDL_DEFINE_GUID(IID, IID_IISWebService,0xEE46D40C,0x1B38,0x4a02,0x89,0x8D,0x35,0x8E,0x74,0xDF,0xC9,0xD2); + + +MIDL_DEFINE_GUID(IID, IID_IISDsCrMap,0xedcd6a60,0xb053,0x11d0,0xa6,0x2f,0x00,0xa0,0xc9,0x22,0xe7,0x52); + + +MIDL_DEFINE_GUID(IID, IID_IISApp,0x46FBBB80,0x0192,0x11d1,0x9C,0x39,0x00,0xA0,0xC9,0x22,0xE7,0x03); + + +MIDL_DEFINE_GUID(IID, IID_IISApp2,0x603DCBEA,0x7350,0x11d2,0xA7,0xBE,0x00,0x00,0xF8,0x08,0x5B,0x95); + + +MIDL_DEFINE_GUID(IID, IID_IISApp3,0x2812B639,0x8FAC,0x4510,0x96,0xC5,0x71,0xDD,0xBD,0x1F,0x54,0xFC); + + +MIDL_DEFINE_GUID(IID, IID_IISComputer,0xCF87A2E0,0x078B,0x11d1,0x9C,0x3D,0x00,0xA0,0xC9,0x22,0xE7,0x03); + + +MIDL_DEFINE_GUID(IID, IID_IISComputer2,0x63d89839,0x5762,0x4a68,0xb1,0xb9,0x35,0x07,0xea,0x76,0xcb,0xbf); + + +MIDL_DEFINE_GUID(CLSID, CLSID_IISExtComputer,0x91ef9258,0xafec,0x11d1,0x98,0x68,0x00,0xa0,0xc9,0x22,0xe7,0x03); + + +MIDL_DEFINE_GUID(CLSID, CLSID_IISExtApp,0xb4f34438,0xafec,0x11d1,0x98,0x68,0x00,0xa0,0xc9,0x22,0xe7,0x03); + + +MIDL_DEFINE_GUID(CLSID, CLSID_IISExtServer,0xc3b32488,0xafec,0x11d1,0x98,0x68,0x00,0xa0,0xc9,0x22,0xe7,0x03); + + +MIDL_DEFINE_GUID(CLSID, CLSID_IISExtDsCrMap,0xbc36cde8,0xafeb,0x11d1,0x98,0x68,0x00,0xa0,0xc9,0x22,0xe7,0x03); + + +MIDL_DEFINE_GUID(CLSID, CLSID_IISExtApplicationPool,0xE99F9D0C,0xFB39,0x402b,0x9E,0xEB,0xAA,0x18,0x52,0x37,0xBD,0x34); + + +MIDL_DEFINE_GUID(CLSID, CLSID_IISExtApplicationPools,0x95863074,0xA389,0x406a,0xA2,0xD7,0xD9,0x8B,0xFC,0x95,0xB9,0x05); + + +MIDL_DEFINE_GUID(CLSID, CLSID_IISExtWebService,0x40B8F873,0xB30E,0x475d,0xBE,0xC5,0x4D,0x0E,0xBB,0x0D,0xBA,0xF3); + +#undef MIDL_DEFINE_GUID + +#ifdef __cplusplus +} +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iisrsta.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iisrsta.h new file mode 100644 index 0000000000000000000000000000000000000000..a0720bd123e8425e079190703629793dad8009b0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iisrsta.h @@ -0,0 +1,326 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __iisrsta_h__ +#define __iisrsta_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IIisServiceControl_FWD_DEFINED__ +#define __IIisServiceControl_FWD_DEFINED__ +typedef interface IIisServiceControl IIisServiceControl; + +#endif /* __IIisServiceControl_FWD_DEFINED__ */ + + +#ifndef __IisServiceControl_FWD_DEFINED__ +#define __IisServiceControl_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class IisServiceControl IisServiceControl; +#else +typedef struct IisServiceControl IisServiceControl; +#endif /* __cplusplus */ + +#endif /* __IisServiceControl_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_iisrsta_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +DEFINE_GUID(IID_IIisServiceControl, 0xE8FB8620, 0x588F, 0x11d2, 0x9d, 0x61, 0x0,0xc0, 0x4f, 0x79, 0xc5, 0xfe); +DEFINE_GUID(CLSID_IisServiceControl, 0xE8FB8621, 0x588F, 0x11d2, 0x9d, 0x61, 0x0,0xc0, 0x4f, 0x79, 0xc5, 0xfe); +DEFINE_GUID(LIBID_IISRSTALib, 0xE8FB8614, 0x588F, 0x11d2, 0x9d, 0x61, 0x0,0xc0, 0x4f, 0x79, 0xc5, 0xfe); + + +extern RPC_IF_HANDLE __MIDL_itf_iisrsta_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iisrsta_0000_0000_v0_0_s_ifspec; + +#ifndef __IIisServiceControl_INTERFACE_DEFINED__ +#define __IIisServiceControl_INTERFACE_DEFINED__ + +/* interface IIisServiceControl */ +/* [unique][helpstring][dual][uuid][object] */ + + +EXTERN_C const IID IID_IIisServiceControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E8FB8620-588F-11D2-9D61-00C04F79C5FE") + IIisServiceControl : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Stop( + DWORD dwTimeoutMsecs, + DWORD dwForce) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Start( + DWORD dwTimeoutMsecs) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Reboot( + DWORD dwTimeouMsecs, + DWORD dwForceAppsClosed) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Status( + /* [in] */ DWORD dwBufferSize, + /* [size_is][out] */ __RPC__out_ecount_full(dwBufferSize) unsigned char *pbBuffer, + /* [out] */ __RPC__out DWORD *pdwMDRequiredBufferSize, + /* [out] */ __RPC__out DWORD *pdwNumServices) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Kill( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIisServiceControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIisServiceControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIisServiceControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIisServiceControl * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IIisServiceControl * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IIisServiceControl * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IIisServiceControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IIisServiceControl * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IIisServiceControl, Stop) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Stop )( + __RPC__in IIisServiceControl * This, + DWORD dwTimeoutMsecs, + DWORD dwForce); + + DECLSPEC_XFGVIRT(IIisServiceControl, Start) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Start )( + __RPC__in IIisServiceControl * This, + DWORD dwTimeoutMsecs); + + DECLSPEC_XFGVIRT(IIisServiceControl, Reboot) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Reboot )( + __RPC__in IIisServiceControl * This, + DWORD dwTimeouMsecs, + DWORD dwForceAppsClosed); + + DECLSPEC_XFGVIRT(IIisServiceControl, Status) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Status )( + __RPC__in IIisServiceControl * This, + /* [in] */ DWORD dwBufferSize, + /* [size_is][out] */ __RPC__out_ecount_full(dwBufferSize) unsigned char *pbBuffer, + /* [out] */ __RPC__out DWORD *pdwMDRequiredBufferSize, + /* [out] */ __RPC__out DWORD *pdwNumServices); + + DECLSPEC_XFGVIRT(IIisServiceControl, Kill) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Kill )( + __RPC__in IIisServiceControl * This); + + END_INTERFACE + } IIisServiceControlVtbl; + + interface IIisServiceControl + { + CONST_VTBL struct IIisServiceControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIisServiceControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIisServiceControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIisServiceControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIisServiceControl_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IIisServiceControl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IIisServiceControl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IIisServiceControl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IIisServiceControl_Stop(This,dwTimeoutMsecs,dwForce) \ + ( (This)->lpVtbl -> Stop(This,dwTimeoutMsecs,dwForce) ) + +#define IIisServiceControl_Start(This,dwTimeoutMsecs) \ + ( (This)->lpVtbl -> Start(This,dwTimeoutMsecs) ) + +#define IIisServiceControl_Reboot(This,dwTimeouMsecs,dwForceAppsClosed) \ + ( (This)->lpVtbl -> Reboot(This,dwTimeouMsecs,dwForceAppsClosed) ) + +#define IIisServiceControl_Status(This,dwBufferSize,pbBuffer,pdwMDRequiredBufferSize,pdwNumServices) \ + ( (This)->lpVtbl -> Status(This,dwBufferSize,pbBuffer,pdwMDRequiredBufferSize,pdwNumServices) ) + +#define IIisServiceControl_Kill(This) \ + ( (This)->lpVtbl -> Kill(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIisServiceControl_INTERFACE_DEFINED__ */ + + + +#ifndef __IISRSTALib_LIBRARY_DEFINED__ +#define __IISRSTALib_LIBRARY_DEFINED__ + +/* library IISRSTALib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_IISRSTALib; + +EXTERN_C const CLSID CLSID_IisServiceControl; + +#ifdef __cplusplus + +class DECLSPEC_UUID("E8FB8621-588F-11D2-9D61-00C04F79C5FE") +IisServiceControl; +#endif +#endif /* __IISRSTALib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_iisrsta_0000_0002 */ +/* [local] */ + +typedef struct { +DWORD iServiceName; +DWORD iDisplayName; +SERVICE_STATUS ServiceStatus; +} SERIALIZED_ENUM_SERVICE_STATUS; +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_iisrsta_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iisrsta_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iiswebsocket.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iiswebsocket.h new file mode 100644 index 0000000000000000000000000000000000000000..1d7cb5d80bdfd087a6e3c30375532c73156fcb38 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iiswebsocket.h @@ -0,0 +1,109 @@ +/*++ + +Copyright (c) Microsoft. All rights reserved. + +Module Name: + + iiswebsocket.h + +Abstract: + + Header file for IIS Websocket API's. + +--*/ + +#ifndef _IISWEBSOCKET_H + +#ifdef _MSC_VER +#pragma once +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if NTDDI_VERSION >= NTDDI_WIN8 + +#define IIS_WEBSOCKET L"websockets" +#define IIS_WEBSOCKET_SERVER_VARIABLE "IIS_WEBSOCK" + +typedef +VOID +(WINAPI * PFN_WEBSOCKET_COMPLETION)( + HRESULT hrError, + VOID * pvCompletionContext, + DWORD cbIO, + BOOL fUTF8Encoded, + BOOL fFinalFragment, + BOOL fClose +); + +class IWebSocketContext : public IHttpStoredContext +{ +public: + + virtual + HRESULT + WriteFragment( + _In_ VOID * pData, + _Inout_ DWORD * pcbSent, + _In_ BOOL fAsync, + _In_ BOOL fUTF8Encoded, + _In_ BOOL fFinalFragment, + _In_ PFN_WEBSOCKET_COMPLETION pfnCompletion = NULL, + _In_ VOID * pvCompletionContext = NULL, + _Out_ BOOL * pfCompletionExpected = NULL + ) = 0; + + virtual + HRESULT + ReadFragment( + _Out_ VOID * pData, + _Inout_ DWORD * pcbData, + _In_ BOOL fAsync, + _Out_ BOOL * pfUTF8Encoded, + _Out_ BOOL * pfFinalFragment, + _Out_ BOOL * pfConnectionClose, + _In_ PFN_WEBSOCKET_COMPLETION pfnCompletion = NULL, + _In_ VOID * pvCompletionContext = NULL, + _Out_ BOOL * pfCompletionExpected = NULL + ) = 0; + + virtual + HRESULT + SendConnectionClose( + _In_ BOOL fAsync, + _In_ USHORT uStatusCode, + _In_ LPCWSTR pszReason = NULL, + _In_ PFN_WEBSOCKET_COMPLETION pfnCompletion = NULL, + _In_ VOID * pvCompletionContext = NULL, + _Out_ BOOL * pfCompletionExpected = NULL + ) = 0; + + virtual + HRESULT + GetCloseStatus( + _Out_ USHORT * pStatusCode, + _Out_ LPCWSTR * ppszReason = NULL, + _Out_ USHORT * pcchReason = NULL + ) = 0; + + virtual + VOID + CloseTcpConnection( + VOID + ) = 0; + + virtual + VOID + CancelOutstandingIO( + VOID + ) = 0; +}; + +#endif /* NTDDI_VERSION >= NTDDI_WIN8 */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#define _IISWEBSOCKET_H +#endif /* _IISWEBSOCKET_H */ \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/il21dec.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/il21dec.h new file mode 100644 index 0000000000000000000000000000000000000000..eaff0b9c137f32a5765a87834d38351fb0e2d2d2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/il21dec.h @@ -0,0 +1,120 @@ +//------------------------------------------------------------------------------ +// File: IL21Dec.h +// +// Desc: Line 21 Decoder related definitions and interfaces for ActiveMovie. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __IL21DEC__ +#define __IL21DEC__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +// +// Some enum data types used as line 21 decoder params by the interface +// +typedef enum _AM_LINE21_CCLEVEL { // should we use TC1, TC2 in stead? + AM_L21_CCLEVEL_TC2 = 0 +} AM_LINE21_CCLEVEL, *PAM_LINE21_CCLEVEL ; + +typedef enum _AM_LINE21_CCSERVICE { + AM_L21_CCSERVICE_None = 0, + AM_L21_CCSERVICE_Caption1, + AM_L21_CCSERVICE_Caption2, + AM_L21_CCSERVICE_Text1, + AM_L21_CCSERVICE_Text2, + AM_L21_CCSERVICE_XDS, + AM_L21_CCSERVICE_DefChannel = 10, + AM_L21_CCSERVICE_Invalid +} AM_LINE21_CCSERVICE, *PAM_LINE21_CCSERVICE ; + +typedef enum _AM_LINE21_CCSTATE { + AM_L21_CCSTATE_Off = 0, + AM_L21_CCSTATE_On +} AM_LINE21_CCSTATE, *PAM_LINE21_CCSTATE ; + +typedef enum _AM_LINE21_CCSTYLE { + AM_L21_CCSTYLE_None = 0, + AM_L21_CCSTYLE_PopOn, + AM_L21_CCSTYLE_PaintOn, + AM_L21_CCSTYLE_RollUp +} AM_LINE21_CCSTYLE, *PAM_LINE21_CCSTYLE ; + +typedef enum _AM_LINE21_DRAWBGMODE { + AM_L21_DRAWBGMODE_Opaque, + AM_L21_DRAWBGMODE_Transparent +} AM_LINE21_DRAWBGMODE, *PAM_LINE21_DRAWBGMODE ; + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// +// Line 21 Decoder standard COM interface +// +DECLARE_INTERFACE_(IAMLine21Decoder, IUnknown) +{ + // + // Decoder options to be used by apps + // + + // What is the decoder's level + STDMETHOD(GetDecoderLevel)(THIS_ AM_LINE21_CCLEVEL *lpLevel) PURE ; + // supported level value is AM_L21Level_TC2 only + // skipping the SetDecoderLevel( ) + + // Which of the services is being currently used + STDMETHOD(GetCurrentService)(THIS_ AM_LINE21_CCSERVICE *lpService) PURE ; + STDMETHOD(SetCurrentService)(THIS_ AM_LINE21_CCSERVICE Service) PURE ; + // supported service values are AM_L21Service_Caption1, + // AM_L21Service_Caption2, AM_L21Service_Text1, AM_L21Service_Text2, + // AM_L21Service_XDS, AM_L21Service_None) + + // Query/Set the service state (On/Off) + // supported state values are AM_L21State_On and AM_L21State_Off + STDMETHOD(GetServiceState)(THIS_ AM_LINE21_CCSTATE *lpState) PURE ; + STDMETHOD(SetServiceState)(THIS_ AM_LINE21_CCSTATE State) PURE ; + + // + // Output options to be used by downstream filters + // + + // What size, bitdepth etc should the output video be + STDMETHOD(GetOutputFormat)(THIS_ LPBITMAPINFOHEADER lpbmih) PURE ; + // GetOutputFormat() method, if successful, returns + // 1. S_FALSE if no output format has so far been defined by downstream filters + // 2. S_OK if an output format has already been defined by downstream filters + STDMETHOD(SetOutputFormat)(THIS_ LPBITMAPINFO lpbmi) PURE ; + + // Specify physical color to be used in colorkeying the background + // for overlay mixing + STDMETHOD(GetBackgroundColor)(THIS_ DWORD *pdwPhysColor) PURE ; + STDMETHOD(SetBackgroundColor)(THIS_ DWORD dwPhysColor) PURE ; + + // Specify if whole output bitmap should be redrawn for each sample + STDMETHOD(GetRedrawAlways)(THIS_ LPBOOL lpbOption) PURE ; + STDMETHOD(SetRedrawAlways)(THIS_ BOOL bOption) PURE ; + + // Specify if the caption text background should be opaque/transparent + STDMETHOD(GetDrawBackgroundMode)(THIS_ AM_LINE21_DRAWBGMODE *lpMode) PURE ; + STDMETHOD(SetDrawBackgroundMode)(THIS_ AM_LINE21_DRAWBGMODE Mode) PURE ; + // supported mode values are AM_L21_DrawBGMode_Opaque and + // AM_L21_DrawBGMode_Transparent + +} ; + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __IL21DEC__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi.h new file mode 100644 index 0000000000000000000000000000000000000000..1c968ff809bc2c89fbacb0ab51c53511505da7a1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi.h @@ -0,0 +1,1432 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __imapi_h__ +#define __imapi_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDiscRecorder_FWD_DEFINED__ +#define __IDiscRecorder_FWD_DEFINED__ +typedef interface IDiscRecorder IDiscRecorder; + +#endif /* __IDiscRecorder_FWD_DEFINED__ */ + + +#ifndef __IEnumDiscRecorders_FWD_DEFINED__ +#define __IEnumDiscRecorders_FWD_DEFINED__ +typedef interface IEnumDiscRecorders IEnumDiscRecorders; + +#endif /* __IEnumDiscRecorders_FWD_DEFINED__ */ + + +#ifndef __IEnumDiscMasterFormats_FWD_DEFINED__ +#define __IEnumDiscMasterFormats_FWD_DEFINED__ +typedef interface IEnumDiscMasterFormats IEnumDiscMasterFormats; + +#endif /* __IEnumDiscMasterFormats_FWD_DEFINED__ */ + + +#ifndef __IRedbookDiscMaster_FWD_DEFINED__ +#define __IRedbookDiscMaster_FWD_DEFINED__ +typedef interface IRedbookDiscMaster IRedbookDiscMaster; + +#endif /* __IRedbookDiscMaster_FWD_DEFINED__ */ + + +#ifndef __IJolietDiscMaster_FWD_DEFINED__ +#define __IJolietDiscMaster_FWD_DEFINED__ +typedef interface IJolietDiscMaster IJolietDiscMaster; + +#endif /* __IJolietDiscMaster_FWD_DEFINED__ */ + + +#ifndef __IDiscMasterProgressEvents_FWD_DEFINED__ +#define __IDiscMasterProgressEvents_FWD_DEFINED__ +typedef interface IDiscMasterProgressEvents IDiscMasterProgressEvents; + +#endif /* __IDiscMasterProgressEvents_FWD_DEFINED__ */ + + +#ifndef __IDiscMaster_FWD_DEFINED__ +#define __IDiscMaster_FWD_DEFINED__ +typedef interface IDiscMaster IDiscMaster; + +#endif /* __IDiscMaster_FWD_DEFINED__ */ + + +#ifndef __MSDiscRecorderObj_FWD_DEFINED__ +#define __MSDiscRecorderObj_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MSDiscRecorderObj MSDiscRecorderObj; +#else +typedef struct MSDiscRecorderObj MSDiscRecorderObj; +#endif /* __cplusplus */ + +#endif /* __MSDiscRecorderObj_FWD_DEFINED__ */ + + +#ifndef __MSDiscMasterObj_FWD_DEFINED__ +#define __MSDiscMasterObj_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MSDiscMasterObj MSDiscMasterObj; +#else +typedef struct MSDiscMasterObj MSDiscMasterObj; +#endif /* __cplusplus */ + +#endif /* __MSDiscMasterObj_FWD_DEFINED__ */ + + +#ifndef __MSEnumDiscRecordersObj_FWD_DEFINED__ +#define __MSEnumDiscRecordersObj_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MSEnumDiscRecordersObj MSEnumDiscRecordersObj; +#else +typedef struct MSEnumDiscRecordersObj MSEnumDiscRecordersObj; +#endif /* __cplusplus */ + +#endif /* __MSEnumDiscRecordersObj_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "propidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_imapi_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +// this assert will cause compilation breaks in clients whose code would cause stack corruption +// when writing to our boolean pointer +C_ASSERT(sizeof(boolean) == 1); + + +extern RPC_IF_HANDLE __MIDL_itf_imapi_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi_0000_0000_v0_0_s_ifspec; + +#ifndef __IDiscRecorder_INTERFACE_DEFINED__ +#define __IDiscRecorder_INTERFACE_DEFINED__ + +/* interface IDiscRecorder */ +/* [unique][helpstring][uuid][object] */ + + +enum MEDIA_TYPES + { + MEDIA_CDDA_CDROM = 1, + MEDIA_CD_ROM_XA = ( MEDIA_CDDA_CDROM + 1 ) , + MEDIA_CD_I = ( MEDIA_CD_ROM_XA + 1 ) , + MEDIA_CD_EXTRA = ( MEDIA_CD_I + 1 ) , + MEDIA_CD_OTHER = ( MEDIA_CD_EXTRA + 1 ) , + MEDIA_SPECIAL = ( MEDIA_CD_OTHER + 1 ) + } ; + +enum MEDIA_FLAGS + { + MEDIA_BLANK = 0x1, + MEDIA_RW = 0x2, + MEDIA_WRITABLE = 0x4, + MEDIA_FORMAT_UNUSABLE_BY_IMAPI = 0x8 + } ; + +enum RECORDER_TYPES + { + RECORDER_CDR = 0x1, + RECORDER_CDRW = 0x2 + } ; +#define RECORDER_DOING_NOTHING ( 0 ) + +#define RECORDER_OPENED ( 0x1 ) + +#define RECORDER_BURNING ( 0x2 ) + + +EXTERN_C const IID IID_IDiscRecorder; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("85AC9776-CA88-4cf2-894E-09598C078A41") + IDiscRecorder : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Init( + /* [size_is][in] */ __RPC__in_ecount_full(nulIDSize) byte *pbyUniqueID, + /* [in] */ ULONG nulIDSize, + /* [in] */ ULONG nulDriveNumber) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetRecorderGUID( + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(ulBufferSize) byte *pbyUniqueID, + /* [in] */ ULONG ulBufferSize, + /* [out] */ __RPC__out ULONG *pulReturnSizeRequired) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetRecorderType( + /* [out] */ __RPC__out long *fTypeCode) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDisplayNames( + /* [unique][out][in] */ __RPC__deref_opt_inout_opt BSTR *pbstrVendorID, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt BSTR *pbstrProductID, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt BSTR *pbstrRevision) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetBasePnPID( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrBasePnPID) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPath( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrPath) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetRecorderProperties( + /* [out] */ __RPC__deref_out_opt IPropertyStorage **ppPropStg) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetRecorderProperties( + /* [in] */ __RPC__in_opt IPropertyStorage *pPropStg) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetRecorderState( + /* [out] */ __RPC__out ULONG *pulDevStateFlags) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE OpenExclusive( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryMediaType( + /* [out] */ __RPC__out long *fMediaType, + /* [out] */ __RPC__out long *fMediaFlags) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryMediaInfo( + /* [out] */ __RPC__out byte *pbSessions, + /* [out] */ __RPC__out byte *pbLastTrack, + /* [out] */ __RPC__out ULONG *ulStartAddress, + /* [out] */ __RPC__out ULONG *ulNextWritable, + /* [out] */ __RPC__out ULONG *ulFreeBlocks) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Eject( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Erase( + /* [in] */ boolean bFullErase) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscRecorderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscRecorder * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscRecorder * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscRecorder * This); + + DECLSPEC_XFGVIRT(IDiscRecorder, Init) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Init )( + __RPC__in IDiscRecorder * This, + /* [size_is][in] */ __RPC__in_ecount_full(nulIDSize) byte *pbyUniqueID, + /* [in] */ ULONG nulIDSize, + /* [in] */ ULONG nulDriveNumber); + + DECLSPEC_XFGVIRT(IDiscRecorder, GetRecorderGUID) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRecorderGUID )( + __RPC__in IDiscRecorder * This, + /* [size_is][unique][out][in] */ __RPC__inout_ecount_full_opt(ulBufferSize) byte *pbyUniqueID, + /* [in] */ ULONG ulBufferSize, + /* [out] */ __RPC__out ULONG *pulReturnSizeRequired); + + DECLSPEC_XFGVIRT(IDiscRecorder, GetRecorderType) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRecorderType )( + __RPC__in IDiscRecorder * This, + /* [out] */ __RPC__out long *fTypeCode); + + DECLSPEC_XFGVIRT(IDiscRecorder, GetDisplayNames) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDisplayNames )( + __RPC__in IDiscRecorder * This, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt BSTR *pbstrVendorID, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt BSTR *pbstrProductID, + /* [unique][out][in] */ __RPC__deref_opt_inout_opt BSTR *pbstrRevision); + + DECLSPEC_XFGVIRT(IDiscRecorder, GetBasePnPID) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetBasePnPID )( + __RPC__in IDiscRecorder * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrBasePnPID); + + DECLSPEC_XFGVIRT(IDiscRecorder, GetPath) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPath )( + __RPC__in IDiscRecorder * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrPath); + + DECLSPEC_XFGVIRT(IDiscRecorder, GetRecorderProperties) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRecorderProperties )( + __RPC__in IDiscRecorder * This, + /* [out] */ __RPC__deref_out_opt IPropertyStorage **ppPropStg); + + DECLSPEC_XFGVIRT(IDiscRecorder, SetRecorderProperties) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetRecorderProperties )( + __RPC__in IDiscRecorder * This, + /* [in] */ __RPC__in_opt IPropertyStorage *pPropStg); + + DECLSPEC_XFGVIRT(IDiscRecorder, GetRecorderState) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetRecorderState )( + __RPC__in IDiscRecorder * This, + /* [out] */ __RPC__out ULONG *pulDevStateFlags); + + DECLSPEC_XFGVIRT(IDiscRecorder, OpenExclusive) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *OpenExclusive )( + __RPC__in IDiscRecorder * This); + + DECLSPEC_XFGVIRT(IDiscRecorder, QueryMediaType) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryMediaType )( + __RPC__in IDiscRecorder * This, + /* [out] */ __RPC__out long *fMediaType, + /* [out] */ __RPC__out long *fMediaFlags); + + DECLSPEC_XFGVIRT(IDiscRecorder, QueryMediaInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryMediaInfo )( + __RPC__in IDiscRecorder * This, + /* [out] */ __RPC__out byte *pbSessions, + /* [out] */ __RPC__out byte *pbLastTrack, + /* [out] */ __RPC__out ULONG *ulStartAddress, + /* [out] */ __RPC__out ULONG *ulNextWritable, + /* [out] */ __RPC__out ULONG *ulFreeBlocks); + + DECLSPEC_XFGVIRT(IDiscRecorder, Eject) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Eject )( + __RPC__in IDiscRecorder * This); + + DECLSPEC_XFGVIRT(IDiscRecorder, Erase) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Erase )( + __RPC__in IDiscRecorder * This, + /* [in] */ boolean bFullErase); + + DECLSPEC_XFGVIRT(IDiscRecorder, Close) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IDiscRecorder * This); + + END_INTERFACE + } IDiscRecorderVtbl; + + interface IDiscRecorder + { + CONST_VTBL struct IDiscRecorderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscRecorder_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscRecorder_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscRecorder_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscRecorder_Init(This,pbyUniqueID,nulIDSize,nulDriveNumber) \ + ( (This)->lpVtbl -> Init(This,pbyUniqueID,nulIDSize,nulDriveNumber) ) + +#define IDiscRecorder_GetRecorderGUID(This,pbyUniqueID,ulBufferSize,pulReturnSizeRequired) \ + ( (This)->lpVtbl -> GetRecorderGUID(This,pbyUniqueID,ulBufferSize,pulReturnSizeRequired) ) + +#define IDiscRecorder_GetRecorderType(This,fTypeCode) \ + ( (This)->lpVtbl -> GetRecorderType(This,fTypeCode) ) + +#define IDiscRecorder_GetDisplayNames(This,pbstrVendorID,pbstrProductID,pbstrRevision) \ + ( (This)->lpVtbl -> GetDisplayNames(This,pbstrVendorID,pbstrProductID,pbstrRevision) ) + +#define IDiscRecorder_GetBasePnPID(This,pbstrBasePnPID) \ + ( (This)->lpVtbl -> GetBasePnPID(This,pbstrBasePnPID) ) + +#define IDiscRecorder_GetPath(This,pbstrPath) \ + ( (This)->lpVtbl -> GetPath(This,pbstrPath) ) + +#define IDiscRecorder_GetRecorderProperties(This,ppPropStg) \ + ( (This)->lpVtbl -> GetRecorderProperties(This,ppPropStg) ) + +#define IDiscRecorder_SetRecorderProperties(This,pPropStg) \ + ( (This)->lpVtbl -> SetRecorderProperties(This,pPropStg) ) + +#define IDiscRecorder_GetRecorderState(This,pulDevStateFlags) \ + ( (This)->lpVtbl -> GetRecorderState(This,pulDevStateFlags) ) + +#define IDiscRecorder_OpenExclusive(This) \ + ( (This)->lpVtbl -> OpenExclusive(This) ) + +#define IDiscRecorder_QueryMediaType(This,fMediaType,fMediaFlags) \ + ( (This)->lpVtbl -> QueryMediaType(This,fMediaType,fMediaFlags) ) + +#define IDiscRecorder_QueryMediaInfo(This,pbSessions,pbLastTrack,ulStartAddress,ulNextWritable,ulFreeBlocks) \ + ( (This)->lpVtbl -> QueryMediaInfo(This,pbSessions,pbLastTrack,ulStartAddress,ulNextWritable,ulFreeBlocks) ) + +#define IDiscRecorder_Eject(This) \ + ( (This)->lpVtbl -> Eject(This) ) + +#define IDiscRecorder_Erase(This,bFullErase) \ + ( (This)->lpVtbl -> Erase(This,bFullErase) ) + +#define IDiscRecorder_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscRecorder_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDiscRecorders_INTERFACE_DEFINED__ +#define __IEnumDiscRecorders_INTERFACE_DEFINED__ + +/* interface IEnumDiscRecorders */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumDiscRecorders; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B1921E1-54AC-11d3-9144-00104BA11C5E") + IEnumDiscRecorders : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG cRecorders, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cRecorders, *pcFetched) IDiscRecorder **ppRecorder, + /* [out] */ __RPC__out ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG cRecorders) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDiscRecorders **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDiscRecordersVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDiscRecorders * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDiscRecorders * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDiscRecorders * This); + + DECLSPEC_XFGVIRT(IEnumDiscRecorders, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumDiscRecorders * This, + /* [in] */ ULONG cRecorders, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cRecorders, *pcFetched) IDiscRecorder **ppRecorder, + /* [out] */ __RPC__out ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumDiscRecorders, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDiscRecorders * This, + /* [in] */ ULONG cRecorders); + + DECLSPEC_XFGVIRT(IEnumDiscRecorders, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDiscRecorders * This); + + DECLSPEC_XFGVIRT(IEnumDiscRecorders, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDiscRecorders * This, + /* [out] */ __RPC__deref_out_opt IEnumDiscRecorders **ppEnum); + + END_INTERFACE + } IEnumDiscRecordersVtbl; + + interface IEnumDiscRecorders + { + CONST_VTBL struct IEnumDiscRecordersVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDiscRecorders_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDiscRecorders_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDiscRecorders_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDiscRecorders_Next(This,cRecorders,ppRecorder,pcFetched) \ + ( (This)->lpVtbl -> Next(This,cRecorders,ppRecorder,pcFetched) ) + +#define IEnumDiscRecorders_Skip(This,cRecorders) \ + ( (This)->lpVtbl -> Skip(This,cRecorders) ) + +#define IEnumDiscRecorders_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDiscRecorders_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumDiscRecorders_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumDiscMasterFormats_INTERFACE_DEFINED__ +#define __IEnumDiscMasterFormats_INTERFACE_DEFINED__ + +/* interface IEnumDiscMasterFormats */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IEnumDiscMasterFormats; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DDF445E1-54BA-11d3-9144-00104BA11C5E") + IEnumDiscMasterFormats : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG cFormats, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cFormats, *pcFetched) LPIID lpiidFormatID, + /* [out] */ __RPC__out ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG cFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumDiscMasterFormats **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumDiscMasterFormatsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumDiscMasterFormats * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumDiscMasterFormats * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumDiscMasterFormats * This); + + DECLSPEC_XFGVIRT(IEnumDiscMasterFormats, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + __RPC__in IEnumDiscMasterFormats * This, + /* [in] */ ULONG cFormats, + /* [length_is][size_is][out] */ __RPC__out_ecount_part(cFormats, *pcFetched) LPIID lpiidFormatID, + /* [out] */ __RPC__out ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumDiscMasterFormats, Skip) + HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumDiscMasterFormats * This, + /* [in] */ ULONG cFormats); + + DECLSPEC_XFGVIRT(IEnumDiscMasterFormats, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumDiscMasterFormats * This); + + DECLSPEC_XFGVIRT(IEnumDiscMasterFormats, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumDiscMasterFormats * This, + /* [out] */ __RPC__deref_out_opt IEnumDiscMasterFormats **ppEnum); + + END_INTERFACE + } IEnumDiscMasterFormatsVtbl; + + interface IEnumDiscMasterFormats + { + CONST_VTBL struct IEnumDiscMasterFormatsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumDiscMasterFormats_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumDiscMasterFormats_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumDiscMasterFormats_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumDiscMasterFormats_Next(This,cFormats,lpiidFormatID,pcFetched) \ + ( (This)->lpVtbl -> Next(This,cFormats,lpiidFormatID,pcFetched) ) + +#define IEnumDiscMasterFormats_Skip(This,cFormats) \ + ( (This)->lpVtbl -> Skip(This,cFormats) ) + +#define IEnumDiscMasterFormats_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumDiscMasterFormats_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumDiscMasterFormats_INTERFACE_DEFINED__ */ + + +#ifndef __IRedbookDiscMaster_INTERFACE_DEFINED__ +#define __IRedbookDiscMaster_INTERFACE_DEFINED__ + +/* interface IRedbookDiscMaster */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IRedbookDiscMaster; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E3BC42CD-4E5C-11D3-9144-00104BA11C5E") + IRedbookDiscMaster : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTotalAudioTracks( + /* [retval][out] */ __RPC__out long *pnTracks) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTotalAudioBlocks( + /* [retval][out] */ __RPC__out long *pnBlocks) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetUsedAudioBlocks( + /* [retval][out] */ __RPC__out long *pnBlocks) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetAvailableAudioTrackBlocks( + /* [retval][out] */ __RPC__out long *pnBlocks) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetAudioBlockSize( + /* [retval][out] */ __RPC__out long *pnBlockBytes) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateAudioTrack( + /* [in] */ long nBlocks) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddAudioTrackBlocks( + /* [size_is][in] */ __RPC__in_ecount_full(cb) byte *pby, + /* [in] */ long cb) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CloseAudioTrack( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRedbookDiscMasterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRedbookDiscMaster * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRedbookDiscMaster * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRedbookDiscMaster * This); + + DECLSPEC_XFGVIRT(IRedbookDiscMaster, GetTotalAudioTracks) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTotalAudioTracks )( + __RPC__in IRedbookDiscMaster * This, + /* [retval][out] */ __RPC__out long *pnTracks); + + DECLSPEC_XFGVIRT(IRedbookDiscMaster, GetTotalAudioBlocks) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTotalAudioBlocks )( + __RPC__in IRedbookDiscMaster * This, + /* [retval][out] */ __RPC__out long *pnBlocks); + + DECLSPEC_XFGVIRT(IRedbookDiscMaster, GetUsedAudioBlocks) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetUsedAudioBlocks )( + __RPC__in IRedbookDiscMaster * This, + /* [retval][out] */ __RPC__out long *pnBlocks); + + DECLSPEC_XFGVIRT(IRedbookDiscMaster, GetAvailableAudioTrackBlocks) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetAvailableAudioTrackBlocks )( + __RPC__in IRedbookDiscMaster * This, + /* [retval][out] */ __RPC__out long *pnBlocks); + + DECLSPEC_XFGVIRT(IRedbookDiscMaster, GetAudioBlockSize) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetAudioBlockSize )( + __RPC__in IRedbookDiscMaster * This, + /* [retval][out] */ __RPC__out long *pnBlockBytes); + + DECLSPEC_XFGVIRT(IRedbookDiscMaster, CreateAudioTrack) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateAudioTrack )( + __RPC__in IRedbookDiscMaster * This, + /* [in] */ long nBlocks); + + DECLSPEC_XFGVIRT(IRedbookDiscMaster, AddAudioTrackBlocks) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddAudioTrackBlocks )( + __RPC__in IRedbookDiscMaster * This, + /* [size_is][in] */ __RPC__in_ecount_full(cb) byte *pby, + /* [in] */ long cb); + + DECLSPEC_XFGVIRT(IRedbookDiscMaster, CloseAudioTrack) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CloseAudioTrack )( + __RPC__in IRedbookDiscMaster * This); + + END_INTERFACE + } IRedbookDiscMasterVtbl; + + interface IRedbookDiscMaster + { + CONST_VTBL struct IRedbookDiscMasterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRedbookDiscMaster_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRedbookDiscMaster_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRedbookDiscMaster_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRedbookDiscMaster_GetTotalAudioTracks(This,pnTracks) \ + ( (This)->lpVtbl -> GetTotalAudioTracks(This,pnTracks) ) + +#define IRedbookDiscMaster_GetTotalAudioBlocks(This,pnBlocks) \ + ( (This)->lpVtbl -> GetTotalAudioBlocks(This,pnBlocks) ) + +#define IRedbookDiscMaster_GetUsedAudioBlocks(This,pnBlocks) \ + ( (This)->lpVtbl -> GetUsedAudioBlocks(This,pnBlocks) ) + +#define IRedbookDiscMaster_GetAvailableAudioTrackBlocks(This,pnBlocks) \ + ( (This)->lpVtbl -> GetAvailableAudioTrackBlocks(This,pnBlocks) ) + +#define IRedbookDiscMaster_GetAudioBlockSize(This,pnBlockBytes) \ + ( (This)->lpVtbl -> GetAudioBlockSize(This,pnBlockBytes) ) + +#define IRedbookDiscMaster_CreateAudioTrack(This,nBlocks) \ + ( (This)->lpVtbl -> CreateAudioTrack(This,nBlocks) ) + +#define IRedbookDiscMaster_AddAudioTrackBlocks(This,pby,cb) \ + ( (This)->lpVtbl -> AddAudioTrackBlocks(This,pby,cb) ) + +#define IRedbookDiscMaster_CloseAudioTrack(This) \ + ( (This)->lpVtbl -> CloseAudioTrack(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRedbookDiscMaster_INTERFACE_DEFINED__ */ + + +#ifndef __IJolietDiscMaster_INTERFACE_DEFINED__ +#define __IJolietDiscMaster_INTERFACE_DEFINED__ + +/* interface IJolietDiscMaster */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IJolietDiscMaster; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E3BC42CE-4E5C-11D3-9144-00104BA11C5E") + IJolietDiscMaster : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTotalDataBlocks( + /* [retval][out] */ __RPC__out long *pnBlocks) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetUsedDataBlocks( + /* [retval][out] */ __RPC__out long *pnBlocks) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDataBlockSize( + /* [retval][out] */ __RPC__out long *pnBlockBytes) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE AddData( + /* [in] */ __RPC__in_opt IStorage *pStorage, + long lFileOverwrite) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetJolietProperties( + /* [out] */ __RPC__deref_out_opt IPropertyStorage **ppPropStg) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetJolietProperties( + /* [in] */ __RPC__in_opt IPropertyStorage *pPropStg) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IJolietDiscMasterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IJolietDiscMaster * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IJolietDiscMaster * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IJolietDiscMaster * This); + + DECLSPEC_XFGVIRT(IJolietDiscMaster, GetTotalDataBlocks) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTotalDataBlocks )( + __RPC__in IJolietDiscMaster * This, + /* [retval][out] */ __RPC__out long *pnBlocks); + + DECLSPEC_XFGVIRT(IJolietDiscMaster, GetUsedDataBlocks) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetUsedDataBlocks )( + __RPC__in IJolietDiscMaster * This, + /* [retval][out] */ __RPC__out long *pnBlocks); + + DECLSPEC_XFGVIRT(IJolietDiscMaster, GetDataBlockSize) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDataBlockSize )( + __RPC__in IJolietDiscMaster * This, + /* [retval][out] */ __RPC__out long *pnBlockBytes); + + DECLSPEC_XFGVIRT(IJolietDiscMaster, AddData) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *AddData )( + __RPC__in IJolietDiscMaster * This, + /* [in] */ __RPC__in_opt IStorage *pStorage, + long lFileOverwrite); + + DECLSPEC_XFGVIRT(IJolietDiscMaster, GetJolietProperties) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetJolietProperties )( + __RPC__in IJolietDiscMaster * This, + /* [out] */ __RPC__deref_out_opt IPropertyStorage **ppPropStg); + + DECLSPEC_XFGVIRT(IJolietDiscMaster, SetJolietProperties) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetJolietProperties )( + __RPC__in IJolietDiscMaster * This, + /* [in] */ __RPC__in_opt IPropertyStorage *pPropStg); + + END_INTERFACE + } IJolietDiscMasterVtbl; + + interface IJolietDiscMaster + { + CONST_VTBL struct IJolietDiscMasterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IJolietDiscMaster_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IJolietDiscMaster_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IJolietDiscMaster_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IJolietDiscMaster_GetTotalDataBlocks(This,pnBlocks) \ + ( (This)->lpVtbl -> GetTotalDataBlocks(This,pnBlocks) ) + +#define IJolietDiscMaster_GetUsedDataBlocks(This,pnBlocks) \ + ( (This)->lpVtbl -> GetUsedDataBlocks(This,pnBlocks) ) + +#define IJolietDiscMaster_GetDataBlockSize(This,pnBlockBytes) \ + ( (This)->lpVtbl -> GetDataBlockSize(This,pnBlockBytes) ) + +#define IJolietDiscMaster_AddData(This,pStorage,lFileOverwrite) \ + ( (This)->lpVtbl -> AddData(This,pStorage,lFileOverwrite) ) + +#define IJolietDiscMaster_GetJolietProperties(This,ppPropStg) \ + ( (This)->lpVtbl -> GetJolietProperties(This,ppPropStg) ) + +#define IJolietDiscMaster_SetJolietProperties(This,pPropStg) \ + ( (This)->lpVtbl -> SetJolietProperties(This,pPropStg) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IJolietDiscMaster_INTERFACE_DEFINED__ */ + + +#ifndef __IDiscMasterProgressEvents_INTERFACE_DEFINED__ +#define __IDiscMasterProgressEvents_INTERFACE_DEFINED__ + +/* interface IDiscMasterProgressEvents */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDiscMasterProgressEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EC9E51C1-4E5D-11D3-9144-00104BA11C5E") + IDiscMasterProgressEvents : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryCancel( + /* [retval][out] */ __RPC__out boolean *pbCancel) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE NotifyPnPActivity( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE NotifyAddProgress( + /* [in] */ long nCompletedSteps, + /* [in] */ long nTotalSteps) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE NotifyBlockProgress( + /* [in] */ long nCompleted, + /* [in] */ long nTotal) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE NotifyTrackProgress( + /* [in] */ long nCurrentTrack, + /* [in] */ long nTotalTracks) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE NotifyPreparingBurn( + /* [in] */ long nEstimatedSeconds) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE NotifyClosingDisc( + /* [in] */ long nEstimatedSeconds) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE NotifyBurnComplete( + /* [in] */ HRESULT status) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE NotifyEraseComplete( + /* [in] */ HRESULT status) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscMasterProgressEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscMasterProgressEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscMasterProgressEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscMasterProgressEvents * This); + + DECLSPEC_XFGVIRT(IDiscMasterProgressEvents, QueryCancel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryCancel )( + __RPC__in IDiscMasterProgressEvents * This, + /* [retval][out] */ __RPC__out boolean *pbCancel); + + DECLSPEC_XFGVIRT(IDiscMasterProgressEvents, NotifyPnPActivity) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *NotifyPnPActivity )( + __RPC__in IDiscMasterProgressEvents * This); + + DECLSPEC_XFGVIRT(IDiscMasterProgressEvents, NotifyAddProgress) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *NotifyAddProgress )( + __RPC__in IDiscMasterProgressEvents * This, + /* [in] */ long nCompletedSteps, + /* [in] */ long nTotalSteps); + + DECLSPEC_XFGVIRT(IDiscMasterProgressEvents, NotifyBlockProgress) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *NotifyBlockProgress )( + __RPC__in IDiscMasterProgressEvents * This, + /* [in] */ long nCompleted, + /* [in] */ long nTotal); + + DECLSPEC_XFGVIRT(IDiscMasterProgressEvents, NotifyTrackProgress) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *NotifyTrackProgress )( + __RPC__in IDiscMasterProgressEvents * This, + /* [in] */ long nCurrentTrack, + /* [in] */ long nTotalTracks); + + DECLSPEC_XFGVIRT(IDiscMasterProgressEvents, NotifyPreparingBurn) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *NotifyPreparingBurn )( + __RPC__in IDiscMasterProgressEvents * This, + /* [in] */ long nEstimatedSeconds); + + DECLSPEC_XFGVIRT(IDiscMasterProgressEvents, NotifyClosingDisc) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *NotifyClosingDisc )( + __RPC__in IDiscMasterProgressEvents * This, + /* [in] */ long nEstimatedSeconds); + + DECLSPEC_XFGVIRT(IDiscMasterProgressEvents, NotifyBurnComplete) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *NotifyBurnComplete )( + __RPC__in IDiscMasterProgressEvents * This, + /* [in] */ HRESULT status); + + DECLSPEC_XFGVIRT(IDiscMasterProgressEvents, NotifyEraseComplete) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *NotifyEraseComplete )( + __RPC__in IDiscMasterProgressEvents * This, + /* [in] */ HRESULT status); + + END_INTERFACE + } IDiscMasterProgressEventsVtbl; + + interface IDiscMasterProgressEvents + { + CONST_VTBL struct IDiscMasterProgressEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscMasterProgressEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscMasterProgressEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscMasterProgressEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscMasterProgressEvents_QueryCancel(This,pbCancel) \ + ( (This)->lpVtbl -> QueryCancel(This,pbCancel) ) + +#define IDiscMasterProgressEvents_NotifyPnPActivity(This) \ + ( (This)->lpVtbl -> NotifyPnPActivity(This) ) + +#define IDiscMasterProgressEvents_NotifyAddProgress(This,nCompletedSteps,nTotalSteps) \ + ( (This)->lpVtbl -> NotifyAddProgress(This,nCompletedSteps,nTotalSteps) ) + +#define IDiscMasterProgressEvents_NotifyBlockProgress(This,nCompleted,nTotal) \ + ( (This)->lpVtbl -> NotifyBlockProgress(This,nCompleted,nTotal) ) + +#define IDiscMasterProgressEvents_NotifyTrackProgress(This,nCurrentTrack,nTotalTracks) \ + ( (This)->lpVtbl -> NotifyTrackProgress(This,nCurrentTrack,nTotalTracks) ) + +#define IDiscMasterProgressEvents_NotifyPreparingBurn(This,nEstimatedSeconds) \ + ( (This)->lpVtbl -> NotifyPreparingBurn(This,nEstimatedSeconds) ) + +#define IDiscMasterProgressEvents_NotifyClosingDisc(This,nEstimatedSeconds) \ + ( (This)->lpVtbl -> NotifyClosingDisc(This,nEstimatedSeconds) ) + +#define IDiscMasterProgressEvents_NotifyBurnComplete(This,status) \ + ( (This)->lpVtbl -> NotifyBurnComplete(This,status) ) + +#define IDiscMasterProgressEvents_NotifyEraseComplete(This,status) \ + ( (This)->lpVtbl -> NotifyEraseComplete(This,status) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscMasterProgressEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IDiscMaster_INTERFACE_DEFINED__ +#define __IDiscMaster_INTERFACE_DEFINED__ + +/* interface IDiscMaster */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDiscMaster; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("520CCA62-51A5-11D3-9144-00104BA11C5E") + IDiscMaster : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Open( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EnumDiscMasterFormats( + /* [out] */ __RPC__deref_out_opt IEnumDiscMasterFormats **ppEnum) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetActiveDiscMasterFormat( + /* [out] */ __RPC__out LPIID lpiid) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetActiveDiscMasterFormat( + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppUnk) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EnumDiscRecorders( + /* [out] */ __RPC__deref_out_opt IEnumDiscRecorders **ppEnum) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetActiveDiscRecorder( + /* [out] */ __RPC__deref_out_opt IDiscRecorder **ppRecorder) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetActiveDiscRecorder( + /* [in] */ __RPC__in_opt IDiscRecorder *pRecorder) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ClearFormatContent( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ProgressAdvise( + /* [in] */ __RPC__in_opt IDiscMasterProgressEvents *pEvents, + /* [retval][out] */ __RPC__out UINT_PTR *pvCookie) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ProgressUnadvise( + /* [in] */ UINT_PTR vCookie) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RecordDisc( + /* [in] */ boolean bSimulate, + /* [in] */ boolean bEjectAfterBurn) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Close( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscMasterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscMaster * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscMaster * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscMaster * This); + + DECLSPEC_XFGVIRT(IDiscMaster, Open) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Open )( + __RPC__in IDiscMaster * This); + + DECLSPEC_XFGVIRT(IDiscMaster, EnumDiscMasterFormats) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumDiscMasterFormats )( + __RPC__in IDiscMaster * This, + /* [out] */ __RPC__deref_out_opt IEnumDiscMasterFormats **ppEnum); + + DECLSPEC_XFGVIRT(IDiscMaster, GetActiveDiscMasterFormat) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetActiveDiscMasterFormat )( + __RPC__in IDiscMaster * This, + /* [out] */ __RPC__out LPIID lpiid); + + DECLSPEC_XFGVIRT(IDiscMaster, SetActiveDiscMasterFormat) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetActiveDiscMasterFormat )( + __RPC__in IDiscMaster * This, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][out] */ __RPC__deref_out_opt void **ppUnk); + + DECLSPEC_XFGVIRT(IDiscMaster, EnumDiscRecorders) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnumDiscRecorders )( + __RPC__in IDiscMaster * This, + /* [out] */ __RPC__deref_out_opt IEnumDiscRecorders **ppEnum); + + DECLSPEC_XFGVIRT(IDiscMaster, GetActiveDiscRecorder) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetActiveDiscRecorder )( + __RPC__in IDiscMaster * This, + /* [out] */ __RPC__deref_out_opt IDiscRecorder **ppRecorder); + + DECLSPEC_XFGVIRT(IDiscMaster, SetActiveDiscRecorder) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetActiveDiscRecorder )( + __RPC__in IDiscMaster * This, + /* [in] */ __RPC__in_opt IDiscRecorder *pRecorder); + + DECLSPEC_XFGVIRT(IDiscMaster, ClearFormatContent) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ClearFormatContent )( + __RPC__in IDiscMaster * This); + + DECLSPEC_XFGVIRT(IDiscMaster, ProgressAdvise) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ProgressAdvise )( + __RPC__in IDiscMaster * This, + /* [in] */ __RPC__in_opt IDiscMasterProgressEvents *pEvents, + /* [retval][out] */ __RPC__out UINT_PTR *pvCookie); + + DECLSPEC_XFGVIRT(IDiscMaster, ProgressUnadvise) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ProgressUnadvise )( + __RPC__in IDiscMaster * This, + /* [in] */ UINT_PTR vCookie); + + DECLSPEC_XFGVIRT(IDiscMaster, RecordDisc) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RecordDisc )( + __RPC__in IDiscMaster * This, + /* [in] */ boolean bSimulate, + /* [in] */ boolean bEjectAfterBurn); + + DECLSPEC_XFGVIRT(IDiscMaster, Close) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Close )( + __RPC__in IDiscMaster * This); + + END_INTERFACE + } IDiscMasterVtbl; + + interface IDiscMaster + { + CONST_VTBL struct IDiscMasterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscMaster_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscMaster_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscMaster_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscMaster_Open(This) \ + ( (This)->lpVtbl -> Open(This) ) + +#define IDiscMaster_EnumDiscMasterFormats(This,ppEnum) \ + ( (This)->lpVtbl -> EnumDiscMasterFormats(This,ppEnum) ) + +#define IDiscMaster_GetActiveDiscMasterFormat(This,lpiid) \ + ( (This)->lpVtbl -> GetActiveDiscMasterFormat(This,lpiid) ) + +#define IDiscMaster_SetActiveDiscMasterFormat(This,riid,ppUnk) \ + ( (This)->lpVtbl -> SetActiveDiscMasterFormat(This,riid,ppUnk) ) + +#define IDiscMaster_EnumDiscRecorders(This,ppEnum) \ + ( (This)->lpVtbl -> EnumDiscRecorders(This,ppEnum) ) + +#define IDiscMaster_GetActiveDiscRecorder(This,ppRecorder) \ + ( (This)->lpVtbl -> GetActiveDiscRecorder(This,ppRecorder) ) + +#define IDiscMaster_SetActiveDiscRecorder(This,pRecorder) \ + ( (This)->lpVtbl -> SetActiveDiscRecorder(This,pRecorder) ) + +#define IDiscMaster_ClearFormatContent(This) \ + ( (This)->lpVtbl -> ClearFormatContent(This) ) + +#define IDiscMaster_ProgressAdvise(This,pEvents,pvCookie) \ + ( (This)->lpVtbl -> ProgressAdvise(This,pEvents,pvCookie) ) + +#define IDiscMaster_ProgressUnadvise(This,vCookie) \ + ( (This)->lpVtbl -> ProgressUnadvise(This,vCookie) ) + +#define IDiscMaster_RecordDisc(This,bSimulate,bEjectAfterBurn) \ + ( (This)->lpVtbl -> RecordDisc(This,bSimulate,bEjectAfterBurn) ) + +#define IDiscMaster_Close(This) \ + ( (This)->lpVtbl -> Close(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscMaster_INTERFACE_DEFINED__ */ + + + +#ifndef __IMAPILib_LIBRARY_DEFINED__ +#define __IMAPILib_LIBRARY_DEFINED__ + +/* library IMAPILib */ +/* [helpstring][version][uuid] */ + + + + + +EXTERN_C const IID LIBID_IMAPILib; + +EXTERN_C const CLSID CLSID_MSDiscRecorderObj; + +#ifdef __cplusplus + +class DECLSPEC_UUID("520CCA61-51A5-11D3-9144-00104BA11C5E") +MSDiscRecorderObj; +#endif + +EXTERN_C const CLSID CLSID_MSDiscMasterObj; + +#ifdef __cplusplus + +class DECLSPEC_UUID("520CCA63-51A5-11D3-9144-00104BA11C5E") +MSDiscMasterObj; +#endif + +EXTERN_C const CLSID CLSID_MSEnumDiscRecordersObj; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8A03567A-63CB-4BA8-BAF6-52119816D1EF") +MSEnumDiscRecordersObj; +#endif +#endif /* __IMAPILib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_imapi_0000_0008 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_imapi_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi_0000_0008_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2.h new file mode 100644 index 0000000000000000000000000000000000000000..5fac1da5e2701ab3ed51101bcc7c5cd93ff912bf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2.h @@ -0,0 +1,8870 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __imapi2_h__ +#define __imapi2_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDiscMaster2_FWD_DEFINED__ +#define __IDiscMaster2_FWD_DEFINED__ +typedef interface IDiscMaster2 IDiscMaster2; + +#endif /* __IDiscMaster2_FWD_DEFINED__ */ + + +#ifndef __DDiscMaster2Events_FWD_DEFINED__ +#define __DDiscMaster2Events_FWD_DEFINED__ +typedef interface DDiscMaster2Events DDiscMaster2Events; + +#endif /* __DDiscMaster2Events_FWD_DEFINED__ */ + + +#ifndef __IDiscRecorder2Ex_FWD_DEFINED__ +#define __IDiscRecorder2Ex_FWD_DEFINED__ +typedef interface IDiscRecorder2Ex IDiscRecorder2Ex; + +#endif /* __IDiscRecorder2Ex_FWD_DEFINED__ */ + + +#ifndef __IDiscRecorder2_FWD_DEFINED__ +#define __IDiscRecorder2_FWD_DEFINED__ +typedef interface IDiscRecorder2 IDiscRecorder2; + +#endif /* __IDiscRecorder2_FWD_DEFINED__ */ + + +#ifndef __IWriteEngine2_FWD_DEFINED__ +#define __IWriteEngine2_FWD_DEFINED__ +typedef interface IWriteEngine2 IWriteEngine2; + +#endif /* __IWriteEngine2_FWD_DEFINED__ */ + + +#ifndef __IWriteEngine2EventArgs_FWD_DEFINED__ +#define __IWriteEngine2EventArgs_FWD_DEFINED__ +typedef interface IWriteEngine2EventArgs IWriteEngine2EventArgs; + +#endif /* __IWriteEngine2EventArgs_FWD_DEFINED__ */ + + +#ifndef __DWriteEngine2Events_FWD_DEFINED__ +#define __DWriteEngine2Events_FWD_DEFINED__ +typedef interface DWriteEngine2Events DWriteEngine2Events; + +#endif /* __DWriteEngine2Events_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2_FWD_DEFINED__ +#define __IDiscFormat2_FWD_DEFINED__ +typedef interface IDiscFormat2 IDiscFormat2; + +#endif /* __IDiscFormat2_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2Erase_FWD_DEFINED__ +#define __IDiscFormat2Erase_FWD_DEFINED__ +typedef interface IDiscFormat2Erase IDiscFormat2Erase; + +#endif /* __IDiscFormat2Erase_FWD_DEFINED__ */ + + +#ifndef __DDiscFormat2EraseEvents_FWD_DEFINED__ +#define __DDiscFormat2EraseEvents_FWD_DEFINED__ +typedef interface DDiscFormat2EraseEvents DDiscFormat2EraseEvents; + +#endif /* __DDiscFormat2EraseEvents_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2Data_FWD_DEFINED__ +#define __IDiscFormat2Data_FWD_DEFINED__ +typedef interface IDiscFormat2Data IDiscFormat2Data; + +#endif /* __IDiscFormat2Data_FWD_DEFINED__ */ + + +#ifndef __DDiscFormat2DataEvents_FWD_DEFINED__ +#define __DDiscFormat2DataEvents_FWD_DEFINED__ +typedef interface DDiscFormat2DataEvents DDiscFormat2DataEvents; + +#endif /* __DDiscFormat2DataEvents_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2DataEventArgs_FWD_DEFINED__ +#define __IDiscFormat2DataEventArgs_FWD_DEFINED__ +typedef interface IDiscFormat2DataEventArgs IDiscFormat2DataEventArgs; + +#endif /* __IDiscFormat2DataEventArgs_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2TrackAtOnce_FWD_DEFINED__ +#define __IDiscFormat2TrackAtOnce_FWD_DEFINED__ +typedef interface IDiscFormat2TrackAtOnce IDiscFormat2TrackAtOnce; + +#endif /* __IDiscFormat2TrackAtOnce_FWD_DEFINED__ */ + + +#ifndef __DDiscFormat2TrackAtOnceEvents_FWD_DEFINED__ +#define __DDiscFormat2TrackAtOnceEvents_FWD_DEFINED__ +typedef interface DDiscFormat2TrackAtOnceEvents DDiscFormat2TrackAtOnceEvents; + +#endif /* __DDiscFormat2TrackAtOnceEvents_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2TrackAtOnceEventArgs_FWD_DEFINED__ +#define __IDiscFormat2TrackAtOnceEventArgs_FWD_DEFINED__ +typedef interface IDiscFormat2TrackAtOnceEventArgs IDiscFormat2TrackAtOnceEventArgs; + +#endif /* __IDiscFormat2TrackAtOnceEventArgs_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2RawCD_FWD_DEFINED__ +#define __IDiscFormat2RawCD_FWD_DEFINED__ +typedef interface IDiscFormat2RawCD IDiscFormat2RawCD; + +#endif /* __IDiscFormat2RawCD_FWD_DEFINED__ */ + + +#ifndef __DDiscFormat2RawCDEvents_FWD_DEFINED__ +#define __DDiscFormat2RawCDEvents_FWD_DEFINED__ +typedef interface DDiscFormat2RawCDEvents DDiscFormat2RawCDEvents; + +#endif /* __DDiscFormat2RawCDEvents_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2RawCDEventArgs_FWD_DEFINED__ +#define __IDiscFormat2RawCDEventArgs_FWD_DEFINED__ +typedef interface IDiscFormat2RawCDEventArgs IDiscFormat2RawCDEventArgs; + +#endif /* __IDiscFormat2RawCDEventArgs_FWD_DEFINED__ */ + + +#ifndef __IBurnVerification_FWD_DEFINED__ +#define __IBurnVerification_FWD_DEFINED__ +typedef interface IBurnVerification IBurnVerification; + +#endif /* __IBurnVerification_FWD_DEFINED__ */ + + +#ifndef __IWriteSpeedDescriptor_FWD_DEFINED__ +#define __IWriteSpeedDescriptor_FWD_DEFINED__ +typedef interface IWriteSpeedDescriptor IWriteSpeedDescriptor; + +#endif /* __IWriteSpeedDescriptor_FWD_DEFINED__ */ + + +#ifndef __IMultisession_FWD_DEFINED__ +#define __IMultisession_FWD_DEFINED__ +typedef interface IMultisession IMultisession; + +#endif /* __IMultisession_FWD_DEFINED__ */ + + +#ifndef __IMultisessionSequential_FWD_DEFINED__ +#define __IMultisessionSequential_FWD_DEFINED__ +typedef interface IMultisessionSequential IMultisessionSequential; + +#endif /* __IMultisessionSequential_FWD_DEFINED__ */ + + +#ifndef __IMultisessionSequential2_FWD_DEFINED__ +#define __IMultisessionSequential2_FWD_DEFINED__ +typedef interface IMultisessionSequential2 IMultisessionSequential2; + +#endif /* __IMultisessionSequential2_FWD_DEFINED__ */ + + +#ifndef __IMultisessionRandomWrite_FWD_DEFINED__ +#define __IMultisessionRandomWrite_FWD_DEFINED__ +typedef interface IMultisessionRandomWrite IMultisessionRandomWrite; + +#endif /* __IMultisessionRandomWrite_FWD_DEFINED__ */ + + +#ifndef __IStreamPseudoRandomBased_FWD_DEFINED__ +#define __IStreamPseudoRandomBased_FWD_DEFINED__ +typedef interface IStreamPseudoRandomBased IStreamPseudoRandomBased; + +#endif /* __IStreamPseudoRandomBased_FWD_DEFINED__ */ + + +#ifndef __IStreamConcatenate_FWD_DEFINED__ +#define __IStreamConcatenate_FWD_DEFINED__ +typedef interface IStreamConcatenate IStreamConcatenate; + +#endif /* __IStreamConcatenate_FWD_DEFINED__ */ + + +#ifndef __IStreamInterleave_FWD_DEFINED__ +#define __IStreamInterleave_FWD_DEFINED__ +typedef interface IStreamInterleave IStreamInterleave; + +#endif /* __IStreamInterleave_FWD_DEFINED__ */ + + +#ifndef __IRawCDImageCreator_FWD_DEFINED__ +#define __IRawCDImageCreator_FWD_DEFINED__ +typedef interface IRawCDImageCreator IRawCDImageCreator; + +#endif /* __IRawCDImageCreator_FWD_DEFINED__ */ + + +#ifndef __IRawCDImageTrackInfo_FWD_DEFINED__ +#define __IRawCDImageTrackInfo_FWD_DEFINED__ +typedef interface IRawCDImageTrackInfo IRawCDImageTrackInfo; + +#endif /* __IRawCDImageTrackInfo_FWD_DEFINED__ */ + + +#ifndef __IBlockRange_FWD_DEFINED__ +#define __IBlockRange_FWD_DEFINED__ +typedef interface IBlockRange IBlockRange; + +#endif /* __IBlockRange_FWD_DEFINED__ */ + + +#ifndef __IBlockRangeList_FWD_DEFINED__ +#define __IBlockRangeList_FWD_DEFINED__ +typedef interface IBlockRangeList IBlockRangeList; + +#endif /* __IBlockRangeList_FWD_DEFINED__ */ + + +#ifndef __IWriteEngine2EventArgs_FWD_DEFINED__ +#define __IWriteEngine2EventArgs_FWD_DEFINED__ +typedef interface IWriteEngine2EventArgs IWriteEngine2EventArgs; + +#endif /* __IWriteEngine2EventArgs_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2DataEventArgs_FWD_DEFINED__ +#define __IDiscFormat2DataEventArgs_FWD_DEFINED__ +typedef interface IDiscFormat2DataEventArgs IDiscFormat2DataEventArgs; + +#endif /* __IDiscFormat2DataEventArgs_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2TrackAtOnceEventArgs_FWD_DEFINED__ +#define __IDiscFormat2TrackAtOnceEventArgs_FWD_DEFINED__ +typedef interface IDiscFormat2TrackAtOnceEventArgs IDiscFormat2TrackAtOnceEventArgs; + +#endif /* __IDiscFormat2TrackAtOnceEventArgs_FWD_DEFINED__ */ + + +#ifndef __IDiscFormat2RawCDEventArgs_FWD_DEFINED__ +#define __IDiscFormat2RawCDEventArgs_FWD_DEFINED__ +typedef interface IDiscFormat2RawCDEventArgs IDiscFormat2RawCDEventArgs; + +#endif /* __IDiscFormat2RawCDEventArgs_FWD_DEFINED__ */ + + +#ifndef __IWriteSpeedDescriptor_FWD_DEFINED__ +#define __IWriteSpeedDescriptor_FWD_DEFINED__ +typedef interface IWriteSpeedDescriptor IWriteSpeedDescriptor; + +#endif /* __IWriteSpeedDescriptor_FWD_DEFINED__ */ + + +#ifndef __DDiscMaster2Events_FWD_DEFINED__ +#define __DDiscMaster2Events_FWD_DEFINED__ +typedef interface DDiscMaster2Events DDiscMaster2Events; + +#endif /* __DDiscMaster2Events_FWD_DEFINED__ */ + + +#ifndef __DWriteEngine2Events_FWD_DEFINED__ +#define __DWriteEngine2Events_FWD_DEFINED__ +typedef interface DWriteEngine2Events DWriteEngine2Events; + +#endif /* __DWriteEngine2Events_FWD_DEFINED__ */ + + +#ifndef __DDiscFormat2EraseEvents_FWD_DEFINED__ +#define __DDiscFormat2EraseEvents_FWD_DEFINED__ +typedef interface DDiscFormat2EraseEvents DDiscFormat2EraseEvents; + +#endif /* __DDiscFormat2EraseEvents_FWD_DEFINED__ */ + + +#ifndef __DDiscFormat2DataEvents_FWD_DEFINED__ +#define __DDiscFormat2DataEvents_FWD_DEFINED__ +typedef interface DDiscFormat2DataEvents DDiscFormat2DataEvents; + +#endif /* __DDiscFormat2DataEvents_FWD_DEFINED__ */ + + +#ifndef __DDiscFormat2TrackAtOnceEvents_FWD_DEFINED__ +#define __DDiscFormat2TrackAtOnceEvents_FWD_DEFINED__ +typedef interface DDiscFormat2TrackAtOnceEvents DDiscFormat2TrackAtOnceEvents; + +#endif /* __DDiscFormat2TrackAtOnceEvents_FWD_DEFINED__ */ + + +#ifndef __DDiscFormat2RawCDEvents_FWD_DEFINED__ +#define __DDiscFormat2RawCDEvents_FWD_DEFINED__ +typedef interface DDiscFormat2RawCDEvents DDiscFormat2RawCDEvents; + +#endif /* __DDiscFormat2RawCDEvents_FWD_DEFINED__ */ + + +#ifndef __IRawCDImageCreator_FWD_DEFINED__ +#define __IRawCDImageCreator_FWD_DEFINED__ +typedef interface IRawCDImageCreator IRawCDImageCreator; + +#endif /* __IRawCDImageCreator_FWD_DEFINED__ */ + + +#ifndef __IRawCDImageTrackInfo_FWD_DEFINED__ +#define __IRawCDImageTrackInfo_FWD_DEFINED__ +typedef interface IRawCDImageTrackInfo IRawCDImageTrackInfo; + +#endif /* __IRawCDImageTrackInfo_FWD_DEFINED__ */ + + +#ifndef __IBurnVerification_FWD_DEFINED__ +#define __IBurnVerification_FWD_DEFINED__ +typedef interface IBurnVerification IBurnVerification; + +#endif /* __IBurnVerification_FWD_DEFINED__ */ + + +#ifndef __IBlockRange_FWD_DEFINED__ +#define __IBlockRange_FWD_DEFINED__ +typedef interface IBlockRange IBlockRange; + +#endif /* __IBlockRange_FWD_DEFINED__ */ + + +#ifndef __IBlockRangeList_FWD_DEFINED__ +#define __IBlockRangeList_FWD_DEFINED__ +typedef interface IBlockRangeList IBlockRangeList; + +#endif /* __IBlockRangeList_FWD_DEFINED__ */ + + +#ifndef __MsftDiscMaster2_FWD_DEFINED__ +#define __MsftDiscMaster2_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftDiscMaster2 MsftDiscMaster2; +#else +typedef struct MsftDiscMaster2 MsftDiscMaster2; +#endif /* __cplusplus */ + +#endif /* __MsftDiscMaster2_FWD_DEFINED__ */ + + +#ifndef __MsftDiscRecorder2_FWD_DEFINED__ +#define __MsftDiscRecorder2_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftDiscRecorder2 MsftDiscRecorder2; +#else +typedef struct MsftDiscRecorder2 MsftDiscRecorder2; +#endif /* __cplusplus */ + +#endif /* __MsftDiscRecorder2_FWD_DEFINED__ */ + + +#ifndef __MsftWriteEngine2_FWD_DEFINED__ +#define __MsftWriteEngine2_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftWriteEngine2 MsftWriteEngine2; +#else +typedef struct MsftWriteEngine2 MsftWriteEngine2; +#endif /* __cplusplus */ + +#endif /* __MsftWriteEngine2_FWD_DEFINED__ */ + + +#ifndef __MsftDiscFormat2Erase_FWD_DEFINED__ +#define __MsftDiscFormat2Erase_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftDiscFormat2Erase MsftDiscFormat2Erase; +#else +typedef struct MsftDiscFormat2Erase MsftDiscFormat2Erase; +#endif /* __cplusplus */ + +#endif /* __MsftDiscFormat2Erase_FWD_DEFINED__ */ + + +#ifndef __MsftDiscFormat2Data_FWD_DEFINED__ +#define __MsftDiscFormat2Data_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftDiscFormat2Data MsftDiscFormat2Data; +#else +typedef struct MsftDiscFormat2Data MsftDiscFormat2Data; +#endif /* __cplusplus */ + +#endif /* __MsftDiscFormat2Data_FWD_DEFINED__ */ + + +#ifndef __MsftDiscFormat2TrackAtOnce_FWD_DEFINED__ +#define __MsftDiscFormat2TrackAtOnce_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftDiscFormat2TrackAtOnce MsftDiscFormat2TrackAtOnce; +#else +typedef struct MsftDiscFormat2TrackAtOnce MsftDiscFormat2TrackAtOnce; +#endif /* __cplusplus */ + +#endif /* __MsftDiscFormat2TrackAtOnce_FWD_DEFINED__ */ + + +#ifndef __MsftDiscFormat2RawCD_FWD_DEFINED__ +#define __MsftDiscFormat2RawCD_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftDiscFormat2RawCD MsftDiscFormat2RawCD; +#else +typedef struct MsftDiscFormat2RawCD MsftDiscFormat2RawCD; +#endif /* __cplusplus */ + +#endif /* __MsftDiscFormat2RawCD_FWD_DEFINED__ */ + + +#ifndef __MsftStreamZero_FWD_DEFINED__ +#define __MsftStreamZero_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftStreamZero MsftStreamZero; +#else +typedef struct MsftStreamZero MsftStreamZero; +#endif /* __cplusplus */ + +#endif /* __MsftStreamZero_FWD_DEFINED__ */ + + +#ifndef __MsftStreamPrng001_FWD_DEFINED__ +#define __MsftStreamPrng001_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftStreamPrng001 MsftStreamPrng001; +#else +typedef struct MsftStreamPrng001 MsftStreamPrng001; +#endif /* __cplusplus */ + +#endif /* __MsftStreamPrng001_FWD_DEFINED__ */ + + +#ifndef __MsftStreamConcatenate_FWD_DEFINED__ +#define __MsftStreamConcatenate_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftStreamConcatenate MsftStreamConcatenate; +#else +typedef struct MsftStreamConcatenate MsftStreamConcatenate; +#endif /* __cplusplus */ + +#endif /* __MsftStreamConcatenate_FWD_DEFINED__ */ + + +#ifndef __MsftStreamInterleave_FWD_DEFINED__ +#define __MsftStreamInterleave_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftStreamInterleave MsftStreamInterleave; +#else +typedef struct MsftStreamInterleave MsftStreamInterleave; +#endif /* __cplusplus */ + +#endif /* __MsftStreamInterleave_FWD_DEFINED__ */ + + +#ifndef __MsftWriteSpeedDescriptor_FWD_DEFINED__ +#define __MsftWriteSpeedDescriptor_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftWriteSpeedDescriptor MsftWriteSpeedDescriptor; +#else +typedef struct MsftWriteSpeedDescriptor MsftWriteSpeedDescriptor; +#endif /* __cplusplus */ + +#endif /* __MsftWriteSpeedDescriptor_FWD_DEFINED__ */ + + +#ifndef __MsftMultisessionSequential_FWD_DEFINED__ +#define __MsftMultisessionSequential_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftMultisessionSequential MsftMultisessionSequential; +#else +typedef struct MsftMultisessionSequential MsftMultisessionSequential; +#endif /* __cplusplus */ + +#endif /* __MsftMultisessionSequential_FWD_DEFINED__ */ + + +#ifndef __MsftMultisessionRandomWrite_FWD_DEFINED__ +#define __MsftMultisessionRandomWrite_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftMultisessionRandomWrite MsftMultisessionRandomWrite; +#else +typedef struct MsftMultisessionRandomWrite MsftMultisessionRandomWrite; +#endif /* __cplusplus */ + +#endif /* __MsftMultisessionRandomWrite_FWD_DEFINED__ */ + + +#ifndef __MsftRawCDImageCreator_FWD_DEFINED__ +#define __MsftRawCDImageCreator_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftRawCDImageCreator MsftRawCDImageCreator; +#else +typedef struct MsftRawCDImageCreator MsftRawCDImageCreator; +#endif /* __cplusplus */ + +#endif /* __MsftRawCDImageCreator_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "propidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_imapi2_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + + + + + + + + + + + + + + + + + + + + +#define IMAPI_SECTOR_SIZE ( 2048 ) + +#define IMAPI2_DEFAULT_COMMAND_TIMEOUT 10 +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_MEDIA_PHYSICAL_TYPE + { + IMAPI_MEDIA_TYPE_UNKNOWN = 0, + IMAPI_MEDIA_TYPE_CDROM = 0x1, + IMAPI_MEDIA_TYPE_CDR = 0x2, + IMAPI_MEDIA_TYPE_CDRW = 0x3, + IMAPI_MEDIA_TYPE_DVDROM = 0x4, + IMAPI_MEDIA_TYPE_DVDRAM = 0x5, + IMAPI_MEDIA_TYPE_DVDPLUSR = 0x6, + IMAPI_MEDIA_TYPE_DVDPLUSRW = 0x7, + IMAPI_MEDIA_TYPE_DVDPLUSR_DUALLAYER = 0x8, + IMAPI_MEDIA_TYPE_DVDDASHR = 0x9, + IMAPI_MEDIA_TYPE_DVDDASHRW = 0xa, + IMAPI_MEDIA_TYPE_DVDDASHR_DUALLAYER = 0xb, + IMAPI_MEDIA_TYPE_DISK = 0xc, + IMAPI_MEDIA_TYPE_DVDPLUSRW_DUALLAYER = 0xd, + IMAPI_MEDIA_TYPE_HDDVDROM = 0xe, + IMAPI_MEDIA_TYPE_HDDVDR = 0xf, + IMAPI_MEDIA_TYPE_HDDVDRAM = 0x10, + IMAPI_MEDIA_TYPE_BDROM = 0x11, + IMAPI_MEDIA_TYPE_BDR = 0x12, + IMAPI_MEDIA_TYPE_BDRE = 0x13, + IMAPI_MEDIA_TYPE_MAX = 0x13 + } IMAPI_MEDIA_PHYSICAL_TYPE; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_MEDIA_PHYSICAL_TYPE *PIMAPI_MEDIA_PHYSICAL_TYPE; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_MEDIA_WRITE_PROTECT_STATE + { + IMAPI_WRITEPROTECTED_UNTIL_POWERDOWN = 0x1, + IMAPI_WRITEPROTECTED_BY_CARTRIDGE = 0x2, + IMAPI_WRITEPROTECTED_BY_MEDIA_SPECIFIC_REASON = 0x4, + IMAPI_WRITEPROTECTED_BY_SOFTWARE_WRITE_PROTECT = 0x8, + IMAPI_WRITEPROTECTED_BY_DISC_CONTROL_BLOCK = 0x10, + IMAPI_WRITEPROTECTED_READ_ONLY_MEDIA = 0x4000 + } IMAPI_MEDIA_WRITE_PROTECT_STATE; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_MEDIA_WRITE_PROTECT_STATE *PIMAPI_MEDIA_WRITE_PROTECT_STATE; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_READ_TRACK_ADDRESS_TYPE + { + IMAPI_READ_TRACK_ADDRESS_TYPE_LBA = 0, + IMAPI_READ_TRACK_ADDRESS_TYPE_TRACK = 1, + IMAPI_READ_TRACK_ADDRESS_TYPE_SESSION = 2 + } IMAPI_READ_TRACK_ADDRESS_TYPE; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_READ_TRACK_ADDRESS_TYPE *PIMAPI_READ_TRACK_ADDRESS_TYPE; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_MODE_PAGE_REQUEST_TYPE + { + IMAPI_MODE_PAGE_REQUEST_TYPE_CURRENT_VALUES = 0, + IMAPI_MODE_PAGE_REQUEST_TYPE_CHANGEABLE_VALUES = 1, + IMAPI_MODE_PAGE_REQUEST_TYPE_DEFAULT_VALUES = 2, + IMAPI_MODE_PAGE_REQUEST_TYPE_SAVED_VALUES = 3 + } IMAPI_MODE_PAGE_REQUEST_TYPE; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_MODE_PAGE_REQUEST_TYPE *PIMAPI_MODE_PAGE_REQUEST_TYPE; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_MODE_PAGE_TYPE + { + IMAPI_MODE_PAGE_TYPE_READ_WRITE_ERROR_RECOVERY = 0x1, + IMAPI_MODE_PAGE_TYPE_MRW = 0x3, + IMAPI_MODE_PAGE_TYPE_WRITE_PARAMETERS = 0x5, + IMAPI_MODE_PAGE_TYPE_CACHING = 0x8, + IMAPI_MODE_PAGE_TYPE_INFORMATIONAL_EXCEPTIONS = 0x1c, + IMAPI_MODE_PAGE_TYPE_TIMEOUT_AND_PROTECT = 0x1d, + IMAPI_MODE_PAGE_TYPE_POWER_CONDITION = 0x1a, + IMAPI_MODE_PAGE_TYPE_LEGACY_CAPABILITIES = 0x2a + } IMAPI_MODE_PAGE_TYPE; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_MODE_PAGE_TYPE *PIMAPI_MODE_PAGE_TYPE; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_FEATURE_PAGE_TYPE + { + IMAPI_FEATURE_PAGE_TYPE_PROFILE_LIST = 0, + IMAPI_FEATURE_PAGE_TYPE_CORE = 0x1, + IMAPI_FEATURE_PAGE_TYPE_MORPHING = 0x2, + IMAPI_FEATURE_PAGE_TYPE_REMOVABLE_MEDIUM = 0x3, + IMAPI_FEATURE_PAGE_TYPE_WRITE_PROTECT = 0x4, + IMAPI_FEATURE_PAGE_TYPE_RANDOMLY_READABLE = 0x10, + IMAPI_FEATURE_PAGE_TYPE_CD_MULTIREAD = 0x1d, + IMAPI_FEATURE_PAGE_TYPE_CD_READ = 0x1e, + IMAPI_FEATURE_PAGE_TYPE_DVD_READ = 0x1f, + IMAPI_FEATURE_PAGE_TYPE_RANDOMLY_WRITABLE = 0x20, + IMAPI_FEATURE_PAGE_TYPE_INCREMENTAL_STREAMING_WRITABLE = 0x21, + IMAPI_FEATURE_PAGE_TYPE_SECTOR_ERASABLE = 0x22, + IMAPI_FEATURE_PAGE_TYPE_FORMATTABLE = 0x23, + IMAPI_FEATURE_PAGE_TYPE_HARDWARE_DEFECT_MANAGEMENT = 0x24, + IMAPI_FEATURE_PAGE_TYPE_WRITE_ONCE = 0x25, + IMAPI_FEATURE_PAGE_TYPE_RESTRICTED_OVERWRITE = 0x26, + IMAPI_FEATURE_PAGE_TYPE_CDRW_CAV_WRITE = 0x27, + IMAPI_FEATURE_PAGE_TYPE_MRW = 0x28, + IMAPI_FEATURE_PAGE_TYPE_ENHANCED_DEFECT_REPORTING = 0x29, + IMAPI_FEATURE_PAGE_TYPE_DVD_PLUS_RW = 0x2a, + IMAPI_FEATURE_PAGE_TYPE_DVD_PLUS_R = 0x2b, + IMAPI_FEATURE_PAGE_TYPE_RIGID_RESTRICTED_OVERWRITE = 0x2c, + IMAPI_FEATURE_PAGE_TYPE_CD_TRACK_AT_ONCE = 0x2d, + IMAPI_FEATURE_PAGE_TYPE_CD_MASTERING = 0x2e, + IMAPI_FEATURE_PAGE_TYPE_DVD_DASH_WRITE = 0x2f, + IMAPI_FEATURE_PAGE_TYPE_DOUBLE_DENSITY_CD_READ = 0x30, + IMAPI_FEATURE_PAGE_TYPE_DOUBLE_DENSITY_CD_R_WRITE = 0x31, + IMAPI_FEATURE_PAGE_TYPE_DOUBLE_DENSITY_CD_RW_WRITE = 0x32, + IMAPI_FEATURE_PAGE_TYPE_LAYER_JUMP_RECORDING = 0x33, + IMAPI_FEATURE_PAGE_TYPE_CD_RW_MEDIA_WRITE_SUPPORT = 0x37, + IMAPI_FEATURE_PAGE_TYPE_BD_PSEUDO_OVERWRITE = 0x38, + IMAPI_FEATURE_PAGE_TYPE_DVD_PLUS_R_DUAL_LAYER = 0x3b, + IMAPI_FEATURE_PAGE_TYPE_BD_READ = 0x40, + IMAPI_FEATURE_PAGE_TYPE_BD_WRITE = 0x41, + IMAPI_FEATURE_PAGE_TYPE_HD_DVD_READ = 0x50, + IMAPI_FEATURE_PAGE_TYPE_HD_DVD_WRITE = 0x51, + IMAPI_FEATURE_PAGE_TYPE_POWER_MANAGEMENT = 0x100, + IMAPI_FEATURE_PAGE_TYPE_SMART = 0x101, + IMAPI_FEATURE_PAGE_TYPE_EMBEDDED_CHANGER = 0x102, + IMAPI_FEATURE_PAGE_TYPE_CD_ANALOG_PLAY = 0x103, + IMAPI_FEATURE_PAGE_TYPE_MICROCODE_UPDATE = 0x104, + IMAPI_FEATURE_PAGE_TYPE_TIMEOUT = 0x105, + IMAPI_FEATURE_PAGE_TYPE_DVD_CSS = 0x106, + IMAPI_FEATURE_PAGE_TYPE_REAL_TIME_STREAMING = 0x107, + IMAPI_FEATURE_PAGE_TYPE_LOGICAL_UNIT_SERIAL_NUMBER = 0x108, + IMAPI_FEATURE_PAGE_TYPE_MEDIA_SERIAL_NUMBER = 0x109, + IMAPI_FEATURE_PAGE_TYPE_DISC_CONTROL_BLOCKS = 0x10a, + IMAPI_FEATURE_PAGE_TYPE_DVD_CPRM = 0x10b, + IMAPI_FEATURE_PAGE_TYPE_FIRMWARE_INFORMATION = 0x10c, + IMAPI_FEATURE_PAGE_TYPE_AACS = 0x10d, + IMAPI_FEATURE_PAGE_TYPE_VCPS = 0x110 + } IMAPI_FEATURE_PAGE_TYPE; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_FEATURE_PAGE_TYPE *PIMAPI_FEATURE_PAGE_TYPE; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_PROFILE_TYPE + { + IMAPI_PROFILE_TYPE_INVALID = 0, + IMAPI_PROFILE_TYPE_NON_REMOVABLE_DISK = 0x1, + IMAPI_PROFILE_TYPE_REMOVABLE_DISK = 0x2, + IMAPI_PROFILE_TYPE_MO_ERASABLE = 0x3, + IMAPI_PROFILE_TYPE_MO_WRITE_ONCE = 0x4, + IMAPI_PROFILE_TYPE_AS_MO = 0x5, + IMAPI_PROFILE_TYPE_CDROM = 0x8, + IMAPI_PROFILE_TYPE_CD_RECORDABLE = 0x9, + IMAPI_PROFILE_TYPE_CD_REWRITABLE = 0xa, + IMAPI_PROFILE_TYPE_DVDROM = 0x10, + IMAPI_PROFILE_TYPE_DVD_DASH_RECORDABLE = 0x11, + IMAPI_PROFILE_TYPE_DVD_RAM = 0x12, + IMAPI_PROFILE_TYPE_DVD_DASH_REWRITABLE = 0x13, + IMAPI_PROFILE_TYPE_DVD_DASH_RW_SEQUENTIAL = 0x14, + IMAPI_PROFILE_TYPE_DVD_DASH_R_DUAL_SEQUENTIAL = 0x15, + IMAPI_PROFILE_TYPE_DVD_DASH_R_DUAL_LAYER_JUMP = 0x16, + IMAPI_PROFILE_TYPE_DVD_PLUS_RW = 0x1a, + IMAPI_PROFILE_TYPE_DVD_PLUS_R = 0x1b, + IMAPI_PROFILE_TYPE_DDCDROM = 0x20, + IMAPI_PROFILE_TYPE_DDCD_RECORDABLE = 0x21, + IMAPI_PROFILE_TYPE_DDCD_REWRITABLE = 0x22, + IMAPI_PROFILE_TYPE_DVD_PLUS_RW_DUAL = 0x2a, + IMAPI_PROFILE_TYPE_DVD_PLUS_R_DUAL = 0x2b, + IMAPI_PROFILE_TYPE_BD_ROM = 0x40, + IMAPI_PROFILE_TYPE_BD_R_SEQUENTIAL = 0x41, + IMAPI_PROFILE_TYPE_BD_R_RANDOM_RECORDING = 0x42, + IMAPI_PROFILE_TYPE_BD_REWRITABLE = 0x43, + IMAPI_PROFILE_TYPE_HD_DVD_ROM = 0x50, + IMAPI_PROFILE_TYPE_HD_DVD_RECORDABLE = 0x51, + IMAPI_PROFILE_TYPE_HD_DVD_RAM = 0x52, + IMAPI_PROFILE_TYPE_NON_STANDARD = 0xffff + } IMAPI_PROFILE_TYPE; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_PROFILE_TYPE *PIMAPI_PROFILE_TYPE; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_FORMAT2_DATA_WRITE_ACTION + { + IMAPI_FORMAT2_DATA_WRITE_ACTION_VALIDATING_MEDIA = 0, + IMAPI_FORMAT2_DATA_WRITE_ACTION_FORMATTING_MEDIA = 0x1, + IMAPI_FORMAT2_DATA_WRITE_ACTION_INITIALIZING_HARDWARE = 0x2, + IMAPI_FORMAT2_DATA_WRITE_ACTION_CALIBRATING_POWER = 0x3, + IMAPI_FORMAT2_DATA_WRITE_ACTION_WRITING_DATA = 0x4, + IMAPI_FORMAT2_DATA_WRITE_ACTION_FINALIZATION = 0x5, + IMAPI_FORMAT2_DATA_WRITE_ACTION_COMPLETED = 0x6, + IMAPI_FORMAT2_DATA_WRITE_ACTION_VERIFYING = 0x7 + } IMAPI_FORMAT2_DATA_WRITE_ACTION; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_FORMAT2_DATA_WRITE_ACTION *PIMAPI_FORMAT2_DATA_WRITE_ACTION; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_FORMAT2_DATA_MEDIA_STATE + { + IMAPI_FORMAT2_DATA_MEDIA_STATE_UNKNOWN = 0, + IMAPI_FORMAT2_DATA_MEDIA_STATE_INFORMATIONAL_MASK = 0xf, + IMAPI_FORMAT2_DATA_MEDIA_STATE_UNSUPPORTED_MASK = 0xfc00, + IMAPI_FORMAT2_DATA_MEDIA_STATE_OVERWRITE_ONLY = 0x1, + IMAPI_FORMAT2_DATA_MEDIA_STATE_RANDOMLY_WRITABLE = 0x1, + IMAPI_FORMAT2_DATA_MEDIA_STATE_BLANK = 0x2, + IMAPI_FORMAT2_DATA_MEDIA_STATE_APPENDABLE = 0x4, + IMAPI_FORMAT2_DATA_MEDIA_STATE_FINAL_SESSION = 0x8, + IMAPI_FORMAT2_DATA_MEDIA_STATE_DAMAGED = 0x400, + IMAPI_FORMAT2_DATA_MEDIA_STATE_ERASE_REQUIRED = 0x800, + IMAPI_FORMAT2_DATA_MEDIA_STATE_NON_EMPTY_SESSION = 0x1000, + IMAPI_FORMAT2_DATA_MEDIA_STATE_WRITE_PROTECTED = 0x2000, + IMAPI_FORMAT2_DATA_MEDIA_STATE_FINALIZED = 0x4000, + IMAPI_FORMAT2_DATA_MEDIA_STATE_UNSUPPORTED_MEDIA = 0x8000 + } IMAPI_FORMAT2_DATA_MEDIA_STATE; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_FORMAT2_DATA_MEDIA_STATE *PIMAPI_FORMAT2_DATA_MEDIA_STATE; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_FORMAT2_TAO_WRITE_ACTION + { + IMAPI_FORMAT2_TAO_WRITE_ACTION_UNKNOWN = 0, + IMAPI_FORMAT2_TAO_WRITE_ACTION_PREPARING = 0x1, + IMAPI_FORMAT2_TAO_WRITE_ACTION_WRITING = 0x2, + IMAPI_FORMAT2_TAO_WRITE_ACTION_FINISHING = 0x3, + IMAPI_FORMAT2_TAO_WRITE_ACTION_VERIFYING = 0x4 + } IMAPI_FORMAT2_TAO_WRITE_ACTION; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_FORMAT2_TAO_WRITE_ACTION *PIMAPI_FORMAT2_TAO_WRITE_ACTION; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE + { + IMAPI_FORMAT2_RAW_CD_SUBCODE_PQ_ONLY = 0x1, + IMAPI_FORMAT2_RAW_CD_SUBCODE_IS_COOKED = 0x2, + IMAPI_FORMAT2_RAW_CD_SUBCODE_IS_RAW = 0x3 + } IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE *PIMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_FORMAT2_RAW_CD_WRITE_ACTION + { + IMAPI_FORMAT2_RAW_CD_WRITE_ACTION_UNKNOWN = 0, + IMAPI_FORMAT2_RAW_CD_WRITE_ACTION_PREPARING = 0x1, + IMAPI_FORMAT2_RAW_CD_WRITE_ACTION_WRITING = 0x2, + IMAPI_FORMAT2_RAW_CD_WRITE_ACTION_FINISHING = 0x3 + } IMAPI_FORMAT2_RAW_CD_WRITE_ACTION; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_FORMAT2_RAW_CD_WRITE_ACTION *PIMAPI_FORMAT2_RAW_CD_WRITE_ACTION; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_CD_SECTOR_TYPE + { + IMAPI_CD_SECTOR_AUDIO = 0, + IMAPI_CD_SECTOR_MODE_ZERO = 0x1, + IMAPI_CD_SECTOR_MODE1 = 0x2, + IMAPI_CD_SECTOR_MODE2FORM0 = 0x3, + IMAPI_CD_SECTOR_MODE2FORM1 = 0x4, + IMAPI_CD_SECTOR_MODE2FORM2 = 0x5, + IMAPI_CD_SECTOR_MODE1RAW = 0x6, + IMAPI_CD_SECTOR_MODE2FORM0RAW = 0x7, + IMAPI_CD_SECTOR_MODE2FORM1RAW = 0x8, + IMAPI_CD_SECTOR_MODE2FORM2RAW = 0x9 + } IMAPI_CD_SECTOR_TYPE; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_CD_SECTOR_TYPE *PIMAPI_CD_SECTOR_TYPE; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_CD_TRACK_DIGITAL_COPY_SETTING + { + IMAPI_CD_TRACK_DIGITAL_COPY_PERMITTED = 0, + IMAPI_CD_TRACK_DIGITAL_COPY_PROHIBITED = 0x1, + IMAPI_CD_TRACK_DIGITAL_COPY_SCMS = 0x2 + } IMAPI_CD_TRACK_DIGITAL_COPY_SETTING; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_CD_TRACK_DIGITAL_COPY_SETTING *PIMAPI_CD_TRACK_DIGITAL_COPY_SETTING; + +typedef /* [public][helpstring][v1_enum] */ +enum _IMAPI_BURN_VERIFICATION_LEVEL + { + IMAPI_BURN_VERIFICATION_NONE = 0, + IMAPI_BURN_VERIFICATION_QUICK = 1, + IMAPI_BURN_VERIFICATION_FULL = 2 + } IMAPI_BURN_VERIFICATION_LEVEL; + +typedef /* [public][helpstring][v1_enum] */ enum _IMAPI_BURN_VERIFICATION_LEVEL *PIMAPI_BURN_VERIFICATION_LEVEL; + +// begin_wpp config +// CUSTOM_TYPE(IMAPI_MEDIA_PHYSICAL_TYPE, ItemEnum(_IMAPI_MEDIA_PHYSICAL_TYPE)); +// CUSTOM_TYPE(IMAPI_MEDIA_WRITE_PROTECT_STATE, ItemEnum(_IMAPI_MEDIA_WRITE_PROTECT_STATE)); +// CUSTOM_TYPE(IMAPI_READ_TRACK_ADDRESS_TYPE, ItemEnum(_IMAPI_READ_TRACK_ADDRESS_TYPE)); +// CUSTOM_TYPE(IMAPI_MODE_PAGE_REQUEST_TYPE, ItemEnum(_IMAPI_MODE_PAGE_REQUEST_TYPE)); +// CUSTOM_TYPE(IMAPI_MODE_PAGE_TYPE, ItemEnum(_IMAPI_MODE_PAGE_TYPE)); +// CUSTOM_TYPE(IMAPI_FEATURE_PAGE_TYPE, ItemEnum(_IMAPI_FEATURE_PAGE_TYPE)); +// CUSTOM_TYPE(IMAPI_PROFILE_TYPE, ItemEnum(_IMAPI_PROFILE_TYPE)); +// CUSTOM_TYPE(IMAPI_FORMAT2_DATA_WRITE_ACTION, ItemEnum(_IMAPI_FORMAT2_DATA_WRITE_ACTION)); +// CUSTOM_TYPE(IMAPI_FORMAT2_DATA_MEDIA_STATE, ItemEnum(_IMAPI_FORMAT2_DATA_MEDIA_STATE)); +// CUSTOM_TYPE(IMAPI_FORMAT2_TAO_WRITE_ACTION, ItemEnum(_IMAPI_FORMAT2_TAO_WRITE_ACTION)); +// CUSTOM_TYPE(IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE, ItemEnum(_IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE)); +// CUSTOM_TYPE(IMAPI_FORMAT2_RAW_CD_WRITE_ACTION, ItemEnum(_IMAPI_FORMAT2_RAW_CD_WRITE_ACTION)); +// CUSTOM_TYPE(IMAPI_CD_SECTOR_DATA_TYPE, ItemEnum(_IMAPI_CD_SECTOR_TYPE)); +// CUSTOM_TYPE(IMAPI_CD_TRACK_DIGITAL_COPY_SETTING, ItemEnum(_IMAPI_CD_TRACK_DIGITAL_COPY_SETTING)); +// CUSTOM_TYPE(IMAPI_BURN_VERIFICATION_LEVEL, ItemEnum(_IMAPI_BURN_VERIFICATION_LEVEL)); +// end_wpp + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0000_v0_0_s_ifspec; + +#ifndef __IDiscMaster2_INTERFACE_DEFINED__ +#define __IDiscMaster2_INTERFACE_DEFINED__ + +/* interface IDiscMaster2 */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IDiscMaster2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354130-7F64-5B0F-8F00-5D77AFBE261E") + IDiscMaster2 : public IDispatch + { + public: + virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][ref][out] */ __RPC__deref_out_opt IEnumVARIANT **ppunk) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG index, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsSupportedEnvironment( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscMaster2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscMaster2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscMaster2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscMaster2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDiscMaster2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDiscMaster2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDiscMaster2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDiscMaster2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDiscMaster2, get__NewEnum) + /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IDiscMaster2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IEnumVARIANT **ppunk); + + DECLSPEC_XFGVIRT(IDiscMaster2, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IDiscMaster2 * This, + /* [in] */ LONG index, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IDiscMaster2, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IDiscMaster2 * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscMaster2, get_IsSupportedEnvironment) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsSupportedEnvironment )( + __RPC__in IDiscMaster2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + END_INTERFACE + } IDiscMaster2Vtbl; + + interface IDiscMaster2 + { + CONST_VTBL struct IDiscMaster2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscMaster2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscMaster2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscMaster2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscMaster2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDiscMaster2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDiscMaster2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDiscMaster2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDiscMaster2_get__NewEnum(This,ppunk) \ + ( (This)->lpVtbl -> get__NewEnum(This,ppunk) ) + +#define IDiscMaster2_get_Item(This,index,value) \ + ( (This)->lpVtbl -> get_Item(This,index,value) ) + +#define IDiscMaster2_get_Count(This,value) \ + ( (This)->lpVtbl -> get_Count(This,value) ) + +#define IDiscMaster2_get_IsSupportedEnvironment(This,value) \ + ( (This)->lpVtbl -> get_IsSupportedEnvironment(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscMaster2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0001 */ +/* [local] */ + +#define DISPID_DDISCMASTER2EVENTS_DEVICEADDED 0x100 +#define DISPID_DDISCMASTER2EVENTS_DEVICEREMOVED 0x101 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0001_v0_0_s_ifspec; + +#ifndef __DDiscMaster2Events_INTERFACE_DEFINED__ +#define __DDiscMaster2Events_INTERFACE_DEFINED__ + +/* interface DDiscMaster2Events */ +/* [helpstring][unique][uuid][oleautomation][nonextensible][object] */ + + +EXTERN_C const IID IID_DDiscMaster2Events; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354131-7F64-5B0F-8F00-5D77AFBE261E") + DDiscMaster2Events : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDeviceAdded( + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in BSTR uniqueId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE NotifyDeviceRemoved( + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in BSTR uniqueId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct DDiscMaster2EventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DDiscMaster2Events * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DDiscMaster2Events * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DDiscMaster2Events * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DDiscMaster2Events * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DDiscMaster2Events * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DDiscMaster2Events * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DDiscMaster2Events * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(DDiscMaster2Events, NotifyDeviceAdded) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDeviceAdded )( + __RPC__in DDiscMaster2Events * This, + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in BSTR uniqueId); + + DECLSPEC_XFGVIRT(DDiscMaster2Events, NotifyDeviceRemoved) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *NotifyDeviceRemoved )( + __RPC__in DDiscMaster2Events * This, + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in BSTR uniqueId); + + END_INTERFACE + } DDiscMaster2EventsVtbl; + + interface DDiscMaster2Events + { + CONST_VTBL struct DDiscMaster2EventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DDiscMaster2Events_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DDiscMaster2Events_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DDiscMaster2Events_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DDiscMaster2Events_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DDiscMaster2Events_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DDiscMaster2Events_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DDiscMaster2Events_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define DDiscMaster2Events_NotifyDeviceAdded(This,object,uniqueId) \ + ( (This)->lpVtbl -> NotifyDeviceAdded(This,object,uniqueId) ) + +#define DDiscMaster2Events_NotifyDeviceRemoved(This,object,uniqueId) \ + ( (This)->lpVtbl -> NotifyDeviceRemoved(This,object,uniqueId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DDiscMaster2Events_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0002 */ +/* [local] */ + +typedef /* [range] */ __RPC__range(0,0xffff) ULONG ULONG_IMAPI2_DVD_STRUCTURE; + +typedef /* [range] */ __RPC__range(0,0xfffffff) ULONG ULONG_IMAPI2_ADAPTER_DESCRIPTOR; + +typedef /* [range] */ __RPC__range(0,0xfffffff) ULONG ULONG_IMAPI2_DEVICE_DESCRIPTOR; + +typedef /* [range] */ __RPC__range(0,0x10002) ULONG ULONG_IMAPI2_DISC_INFORMATION; + +typedef /* [range] */ __RPC__range(0,0x10002) ULONG ULONG_IMAPI2_TRACK_INFORMATION; + +typedef /* [range] */ __RPC__range(0,0x100) ULONG ULONG_IMAPI2_FEATURE_PAGE; + +typedef /* [range] */ __RPC__range(0,0x101) ULONG ULONG_IMAPI2_MODE_PAGE; + +typedef /* [range] */ __RPC__range(0,0x10000) ULONG ULONG_IMAPI2_ALL_FEATURE_PAGES; + +typedef /* [range] */ __RPC__range(0,0x3f) ULONG ULONG_IMAPI2_ALL_PROFILES; + +typedef /* [range] */ __RPC__range(0,0x7ffb) ULONG ULONG_IMAPI2_ALL_MODE_PAGES; + +typedef /* [range] */ __RPC__range(1,0x7fffffff) ULONG ULONG_IMAPI2_NONZERO; + +typedef /* [range] */ __RPC__range(0,0x7fffffff) ULONG ULONG_IMAPI2_NOT_NEGATIVE; + + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0002_v0_0_s_ifspec; + +#ifndef __IDiscRecorder2Ex_INTERFACE_DEFINED__ +#define __IDiscRecorder2Ex_INTERFACE_DEFINED__ + +/* interface IDiscRecorder2Ex */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IDiscRecorder2Ex; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354132-7F64-5B0F-8F00-5D77AFBE261E") + IDiscRecorder2Ex : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SendCommandNoData( + /* [size_is][ref][in] */ __RPC__in_ecount_full(CdbSize) BYTE *Cdb, + /* [range][in] */ __RPC__in_range(6,16) ULONG CdbSize, + /* [ref][out] */ __RPC__out_ecount_full(18) BYTE SenseBuffer[ 18 ], + /* [in] */ ULONG Timeout) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SendCommandSendDataToDevice( + /* [size_is][ref][in] */ __RPC__in_ecount_full(CdbSize) BYTE *Cdb, + /* [range][in] */ __RPC__in_range(6,16) ULONG CdbSize, + /* [ref][out] */ __RPC__out_ecount_full(18) BYTE SenseBuffer[ 18 ], + /* [in] */ ULONG Timeout, + /* [size_is][ref][in] */ __RPC__in_ecount_full(BufferSize) BYTE *Buffer, + /* [in] */ ULONG_IMAPI2_NONZERO BufferSize) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SendCommandGetDataFromDevice( + /* [size_is][ref][in] */ __RPC__in_ecount_full(CdbSize) BYTE *Cdb, + /* [range][in] */ __RPC__in_range(6,16) ULONG CdbSize, + /* [ref][out] */ __RPC__out_ecount_full(18) BYTE SenseBuffer[ 18 ], + /* [in] */ ULONG Timeout, + /* [length_is][size_is][ref][out] */ __RPC__out_ecount_part(BufferSize, *BufferFetched) BYTE *Buffer, + /* [in] */ ULONG_IMAPI2_NONZERO BufferSize, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_NOT_NEGATIVE *BufferFetched) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ReadDvdStructure( + /* [range][in] */ __RPC__in_range(0,0xff) ULONG format, + /* [in] */ ULONG address, + /* [range][in] */ __RPC__in_range(0,0xff) ULONG layer, + /* [range][in] */ __RPC__in_range(0,0x3) ULONG agid, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*count) BYTE **data, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_DVD_STRUCTURE *count) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SendDvdStructure( + /* [range][in] */ __RPC__in_range(0,0xff) ULONG format, + /* [size_is][ref][in] */ __RPC__in_ecount_full(count) BYTE *data, + /* [in] */ ULONG_IMAPI2_DVD_STRUCTURE count) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetAdapterDescriptor( + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **data, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_ADAPTER_DESCRIPTOR *byteSize) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDeviceDescriptor( + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **data, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_DEVICE_DESCRIPTOR *byteSize) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDiscInformation( + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **discInformation, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_DISC_INFORMATION *byteSize) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTrackInformation( + /* [in] */ ULONG address, + /* [in] */ IMAPI_READ_TRACK_ADDRESS_TYPE addressType, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **trackInformation, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_TRACK_INFORMATION *byteSize) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetFeaturePage( + /* [in] */ IMAPI_FEATURE_PAGE_TYPE requestedFeature, + /* [in] */ BOOLEAN currentFeatureOnly, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **featureData, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_FEATURE_PAGE *byteSize) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetModePage( + /* [in] */ IMAPI_MODE_PAGE_TYPE requestedModePage, + /* [in] */ IMAPI_MODE_PAGE_REQUEST_TYPE requestType, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **modePageData, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_MODE_PAGE *byteSize) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetModePage( + /* [in] */ IMAPI_MODE_PAGE_REQUEST_TYPE requestType, + /* [size_is][ref][in] */ __RPC__in_ecount_full(byteSize) BYTE *data, + /* [in] */ ULONG_IMAPI2_MODE_PAGE byteSize) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSupportedFeaturePages( + /* [in] */ BOOLEAN currentFeatureOnly, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) IMAPI_FEATURE_PAGE_TYPE **featureData, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_ALL_FEATURE_PAGES *byteSize) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSupportedProfiles( + /* [in] */ BOOLEAN currentOnly, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*validProfiles) IMAPI_PROFILE_TYPE **profileTypes, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_ALL_PROFILES *validProfiles) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetSupportedModePages( + /* [in] */ IMAPI_MODE_PAGE_REQUEST_TYPE requestType, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*validPages) IMAPI_MODE_PAGE_TYPE **modePageTypes, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_ALL_MODE_PAGES *validPages) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetByteAlignmentMask( + /* [retval][ref][out] */ __RPC__out ULONG *value) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMaximumNonPageAlignedTransferSize( + /* [retval][ref][out] */ __RPC__out ULONG *value) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMaximumPageAlignedTransferSize( + /* [retval][ref][out] */ __RPC__out ULONG *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscRecorder2ExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscRecorder2Ex * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscRecorder2Ex * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscRecorder2Ex * This); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, SendCommandNoData) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SendCommandNoData )( + __RPC__in IDiscRecorder2Ex * This, + /* [size_is][ref][in] */ __RPC__in_ecount_full(CdbSize) BYTE *Cdb, + /* [range][in] */ __RPC__in_range(6,16) ULONG CdbSize, + /* [ref][out] */ __RPC__out_ecount_full(18) BYTE SenseBuffer[ 18 ], + /* [in] */ ULONG Timeout); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, SendCommandSendDataToDevice) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SendCommandSendDataToDevice )( + __RPC__in IDiscRecorder2Ex * This, + /* [size_is][ref][in] */ __RPC__in_ecount_full(CdbSize) BYTE *Cdb, + /* [range][in] */ __RPC__in_range(6,16) ULONG CdbSize, + /* [ref][out] */ __RPC__out_ecount_full(18) BYTE SenseBuffer[ 18 ], + /* [in] */ ULONG Timeout, + /* [size_is][ref][in] */ __RPC__in_ecount_full(BufferSize) BYTE *Buffer, + /* [in] */ ULONG_IMAPI2_NONZERO BufferSize); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, SendCommandGetDataFromDevice) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SendCommandGetDataFromDevice )( + __RPC__in IDiscRecorder2Ex * This, + /* [size_is][ref][in] */ __RPC__in_ecount_full(CdbSize) BYTE *Cdb, + /* [range][in] */ __RPC__in_range(6,16) ULONG CdbSize, + /* [ref][out] */ __RPC__out_ecount_full(18) BYTE SenseBuffer[ 18 ], + /* [in] */ ULONG Timeout, + /* [length_is][size_is][ref][out] */ __RPC__out_ecount_part(BufferSize, *BufferFetched) BYTE *Buffer, + /* [in] */ ULONG_IMAPI2_NONZERO BufferSize, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_NOT_NEGATIVE *BufferFetched); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, ReadDvdStructure) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ReadDvdStructure )( + __RPC__in IDiscRecorder2Ex * This, + /* [range][in] */ __RPC__in_range(0,0xff) ULONG format, + /* [in] */ ULONG address, + /* [range][in] */ __RPC__in_range(0,0xff) ULONG layer, + /* [range][in] */ __RPC__in_range(0,0x3) ULONG agid, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*count) BYTE **data, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_DVD_STRUCTURE *count); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, SendDvdStructure) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SendDvdStructure )( + __RPC__in IDiscRecorder2Ex * This, + /* [range][in] */ __RPC__in_range(0,0xff) ULONG format, + /* [size_is][ref][in] */ __RPC__in_ecount_full(count) BYTE *data, + /* [in] */ ULONG_IMAPI2_DVD_STRUCTURE count); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetAdapterDescriptor) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetAdapterDescriptor )( + __RPC__in IDiscRecorder2Ex * This, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **data, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_ADAPTER_DESCRIPTOR *byteSize); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetDeviceDescriptor) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDeviceDescriptor )( + __RPC__in IDiscRecorder2Ex * This, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **data, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_DEVICE_DESCRIPTOR *byteSize); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetDiscInformation) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDiscInformation )( + __RPC__in IDiscRecorder2Ex * This, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **discInformation, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_DISC_INFORMATION *byteSize); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetTrackInformation) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTrackInformation )( + __RPC__in IDiscRecorder2Ex * This, + /* [in] */ ULONG address, + /* [in] */ IMAPI_READ_TRACK_ADDRESS_TYPE addressType, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **trackInformation, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_TRACK_INFORMATION *byteSize); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetFeaturePage) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetFeaturePage )( + __RPC__in IDiscRecorder2Ex * This, + /* [in] */ IMAPI_FEATURE_PAGE_TYPE requestedFeature, + /* [in] */ BOOLEAN currentFeatureOnly, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **featureData, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_FEATURE_PAGE *byteSize); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetModePage) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetModePage )( + __RPC__in IDiscRecorder2Ex * This, + /* [in] */ IMAPI_MODE_PAGE_TYPE requestedModePage, + /* [in] */ IMAPI_MODE_PAGE_REQUEST_TYPE requestType, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) BYTE **modePageData, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_MODE_PAGE *byteSize); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, SetModePage) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetModePage )( + __RPC__in IDiscRecorder2Ex * This, + /* [in] */ IMAPI_MODE_PAGE_REQUEST_TYPE requestType, + /* [size_is][ref][in] */ __RPC__in_ecount_full(byteSize) BYTE *data, + /* [in] */ ULONG_IMAPI2_MODE_PAGE byteSize); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetSupportedFeaturePages) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSupportedFeaturePages )( + __RPC__in IDiscRecorder2Ex * This, + /* [in] */ BOOLEAN currentFeatureOnly, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*byteSize) IMAPI_FEATURE_PAGE_TYPE **featureData, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_ALL_FEATURE_PAGES *byteSize); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetSupportedProfiles) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSupportedProfiles )( + __RPC__in IDiscRecorder2Ex * This, + /* [in] */ BOOLEAN currentOnly, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*validProfiles) IMAPI_PROFILE_TYPE **profileTypes, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_ALL_PROFILES *validProfiles); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetSupportedModePages) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetSupportedModePages )( + __RPC__in IDiscRecorder2Ex * This, + /* [in] */ IMAPI_MODE_PAGE_REQUEST_TYPE requestType, + /* [size_is][size_is][ref][out] */ __RPC__deref_out_ecount_full_opt(*validPages) IMAPI_MODE_PAGE_TYPE **modePageTypes, + /* [ref][out] */ __RPC__out ULONG_IMAPI2_ALL_MODE_PAGES *validPages); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetByteAlignmentMask) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetByteAlignmentMask )( + __RPC__in IDiscRecorder2Ex * This, + /* [retval][ref][out] */ __RPC__out ULONG *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetMaximumNonPageAlignedTransferSize) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMaximumNonPageAlignedTransferSize )( + __RPC__in IDiscRecorder2Ex * This, + /* [retval][ref][out] */ __RPC__out ULONG *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2Ex, GetMaximumPageAlignedTransferSize) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMaximumPageAlignedTransferSize )( + __RPC__in IDiscRecorder2Ex * This, + /* [retval][ref][out] */ __RPC__out ULONG *value); + + END_INTERFACE + } IDiscRecorder2ExVtbl; + + interface IDiscRecorder2Ex + { + CONST_VTBL struct IDiscRecorder2ExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscRecorder2Ex_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscRecorder2Ex_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscRecorder2Ex_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscRecorder2Ex_SendCommandNoData(This,Cdb,CdbSize,SenseBuffer,Timeout) \ + ( (This)->lpVtbl -> SendCommandNoData(This,Cdb,CdbSize,SenseBuffer,Timeout) ) + +#define IDiscRecorder2Ex_SendCommandSendDataToDevice(This,Cdb,CdbSize,SenseBuffer,Timeout,Buffer,BufferSize) \ + ( (This)->lpVtbl -> SendCommandSendDataToDevice(This,Cdb,CdbSize,SenseBuffer,Timeout,Buffer,BufferSize) ) + +#define IDiscRecorder2Ex_SendCommandGetDataFromDevice(This,Cdb,CdbSize,SenseBuffer,Timeout,Buffer,BufferSize,BufferFetched) \ + ( (This)->lpVtbl -> SendCommandGetDataFromDevice(This,Cdb,CdbSize,SenseBuffer,Timeout,Buffer,BufferSize,BufferFetched) ) + +#define IDiscRecorder2Ex_ReadDvdStructure(This,format,address,layer,agid,data,count) \ + ( (This)->lpVtbl -> ReadDvdStructure(This,format,address,layer,agid,data,count) ) + +#define IDiscRecorder2Ex_SendDvdStructure(This,format,data,count) \ + ( (This)->lpVtbl -> SendDvdStructure(This,format,data,count) ) + +#define IDiscRecorder2Ex_GetAdapterDescriptor(This,data,byteSize) \ + ( (This)->lpVtbl -> GetAdapterDescriptor(This,data,byteSize) ) + +#define IDiscRecorder2Ex_GetDeviceDescriptor(This,data,byteSize) \ + ( (This)->lpVtbl -> GetDeviceDescriptor(This,data,byteSize) ) + +#define IDiscRecorder2Ex_GetDiscInformation(This,discInformation,byteSize) \ + ( (This)->lpVtbl -> GetDiscInformation(This,discInformation,byteSize) ) + +#define IDiscRecorder2Ex_GetTrackInformation(This,address,addressType,trackInformation,byteSize) \ + ( (This)->lpVtbl -> GetTrackInformation(This,address,addressType,trackInformation,byteSize) ) + +#define IDiscRecorder2Ex_GetFeaturePage(This,requestedFeature,currentFeatureOnly,featureData,byteSize) \ + ( (This)->lpVtbl -> GetFeaturePage(This,requestedFeature,currentFeatureOnly,featureData,byteSize) ) + +#define IDiscRecorder2Ex_GetModePage(This,requestedModePage,requestType,modePageData,byteSize) \ + ( (This)->lpVtbl -> GetModePage(This,requestedModePage,requestType,modePageData,byteSize) ) + +#define IDiscRecorder2Ex_SetModePage(This,requestType,data,byteSize) \ + ( (This)->lpVtbl -> SetModePage(This,requestType,data,byteSize) ) + +#define IDiscRecorder2Ex_GetSupportedFeaturePages(This,currentFeatureOnly,featureData,byteSize) \ + ( (This)->lpVtbl -> GetSupportedFeaturePages(This,currentFeatureOnly,featureData,byteSize) ) + +#define IDiscRecorder2Ex_GetSupportedProfiles(This,currentOnly,profileTypes,validProfiles) \ + ( (This)->lpVtbl -> GetSupportedProfiles(This,currentOnly,profileTypes,validProfiles) ) + +#define IDiscRecorder2Ex_GetSupportedModePages(This,requestType,modePageTypes,validPages) \ + ( (This)->lpVtbl -> GetSupportedModePages(This,requestType,modePageTypes,validPages) ) + +#define IDiscRecorder2Ex_GetByteAlignmentMask(This,value) \ + ( (This)->lpVtbl -> GetByteAlignmentMask(This,value) ) + +#define IDiscRecorder2Ex_GetMaximumNonPageAlignedTransferSize(This,value) \ + ( (This)->lpVtbl -> GetMaximumNonPageAlignedTransferSize(This,value) ) + +#define IDiscRecorder2Ex_GetMaximumPageAlignedTransferSize(This,value) \ + ( (This)->lpVtbl -> GetMaximumPageAlignedTransferSize(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscRecorder2Ex_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0003 */ +/* [local] */ + +#define DISPID_IDISCRECORDER2_EJECTMEDIA 0x100 +#define DISPID_IDISCRECORDER2_CLOSETRAY 0x101 +#define DISPID_IDISCRECORDER2_ACQUIREEXCLUSIVEACCESS 0x102 +#define DISPID_IDISCRECORDER2_RELEASEEXCLUSIVEACCESS 0x103 +#define DISPID_IDISCRECORDER2_DISABLEMCN 0x104 +#define DISPID_IDISCRECORDER2_ENABLEMCN 0x105 +#define DISPID_IDISCRECORDER2_INITIALIZEDISCRECORDER 0x106 +#define DISPID_IDISCRECORDER2_ACTIVEDISCRECORDER DISPID_VALUE +#define DISPID_IDISCRECORDER2_VENDORID 0x201 +#define DISPID_IDISCRECORDER2_PRODUCTID 0x202 +#define DISPID_IDISCRECORDER2_PRODUCTREVISION 0x203 +#define DISPID_IDISCRECORDER2_VOLUMENAME 0x204 +#define DISPID_IDISCRECORDER2_VOLUMEPATHNAMES 0x205 +#define DISPID_IDISCRECORDER2_DEVICECANLOADMEDIA 0x206 +#define DISPID_IDISCRECORDER2_LEGACYDEVICENUMBER 0x207 +#define DISPID_IDISCRECORDER2_SUPPORTEDFEATUREPAGES 0x208 +#define DISPID_IDISCRECORDER2_CURRENTFEATUREPAGES 0x209 +#define DISPID_IDISCRECORDER2_SUPPORTEDPROFILES 0x20A +#define DISPID_IDISCRECORDER2_CURRENTPROFILES 0x20B +#define DISPID_IDISCRECORDER2_SUPPORTEDMODEPAGES 0x20C +#define DISPID_IDISCRECORDER2_EXCLUSIVEACCESSOWNER 0x20D + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0003_v0_0_s_ifspec; + +#ifndef __IDiscRecorder2_INTERFACE_DEFINED__ +#define __IDiscRecorder2_INTERFACE_DEFINED__ + +/* interface IDiscRecorder2 */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IDiscRecorder2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354133-7F64-5B0F-8F00-5D77AFBE261E") + IDiscRecorder2 : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EjectMedia( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CloseTray( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AcquireExclusiveAccess( + /* [in] */ VARIANT_BOOL force, + /* [in] */ __RPC__in BSTR __MIDL__IDiscRecorder20000) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReleaseExclusiveAccess( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DisableMcn( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EnableMcn( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitializeDiscRecorder( + /* [in] */ __RPC__in BSTR recorderUniqueId) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ActiveDiscRecorder( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VendorId( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProductId( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProductRevision( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VolumeName( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VolumePathNames( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DeviceCanLoadMedia( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LegacyDeviceNumber( + /* [retval][ref][out] */ __RPC__out LONG *legacyDeviceNumber) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedFeaturePages( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentFeaturePages( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedProfiles( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentProfiles( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedModePages( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExclusiveAccessOwner( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscRecorder2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscRecorder2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscRecorder2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscRecorder2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDiscRecorder2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDiscRecorder2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDiscRecorder2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDiscRecorder2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDiscRecorder2, EjectMedia) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EjectMedia )( + __RPC__in IDiscRecorder2 * This); + + DECLSPEC_XFGVIRT(IDiscRecorder2, CloseTray) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CloseTray )( + __RPC__in IDiscRecorder2 * This); + + DECLSPEC_XFGVIRT(IDiscRecorder2, AcquireExclusiveAccess) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AcquireExclusiveAccess )( + __RPC__in IDiscRecorder2 * This, + /* [in] */ VARIANT_BOOL force, + /* [in] */ __RPC__in BSTR __MIDL__IDiscRecorder20000); + + DECLSPEC_XFGVIRT(IDiscRecorder2, ReleaseExclusiveAccess) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReleaseExclusiveAccess )( + __RPC__in IDiscRecorder2 * This); + + DECLSPEC_XFGVIRT(IDiscRecorder2, DisableMcn) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DisableMcn )( + __RPC__in IDiscRecorder2 * This); + + DECLSPEC_XFGVIRT(IDiscRecorder2, EnableMcn) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EnableMcn )( + __RPC__in IDiscRecorder2 * This); + + DECLSPEC_XFGVIRT(IDiscRecorder2, InitializeDiscRecorder) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitializeDiscRecorder )( + __RPC__in IDiscRecorder2 * This, + /* [in] */ __RPC__in BSTR recorderUniqueId); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_ActiveDiscRecorder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ActiveDiscRecorder )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_VendorId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VendorId )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_ProductId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductId )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_ProductRevision) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductRevision )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_VolumeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeName )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_VolumePathNames) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumePathNames )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_DeviceCanLoadMedia) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DeviceCanLoadMedia )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_LegacyDeviceNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LegacyDeviceNumber )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__out LONG *legacyDeviceNumber); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_SupportedFeaturePages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedFeaturePages )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_CurrentFeaturePages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentFeaturePages )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_SupportedProfiles) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedProfiles )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_CurrentProfiles) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentProfiles )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_SupportedModePages) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedModePages )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscRecorder2, get_ExclusiveAccessOwner) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExclusiveAccessOwner )( + __RPC__in IDiscRecorder2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + END_INTERFACE + } IDiscRecorder2Vtbl; + + interface IDiscRecorder2 + { + CONST_VTBL struct IDiscRecorder2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscRecorder2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscRecorder2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscRecorder2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscRecorder2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDiscRecorder2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDiscRecorder2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDiscRecorder2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDiscRecorder2_EjectMedia(This) \ + ( (This)->lpVtbl -> EjectMedia(This) ) + +#define IDiscRecorder2_CloseTray(This) \ + ( (This)->lpVtbl -> CloseTray(This) ) + +#define IDiscRecorder2_AcquireExclusiveAccess(This,force,__MIDL__IDiscRecorder20000) \ + ( (This)->lpVtbl -> AcquireExclusiveAccess(This,force,__MIDL__IDiscRecorder20000) ) + +#define IDiscRecorder2_ReleaseExclusiveAccess(This) \ + ( (This)->lpVtbl -> ReleaseExclusiveAccess(This) ) + +#define IDiscRecorder2_DisableMcn(This) \ + ( (This)->lpVtbl -> DisableMcn(This) ) + +#define IDiscRecorder2_EnableMcn(This) \ + ( (This)->lpVtbl -> EnableMcn(This) ) + +#define IDiscRecorder2_InitializeDiscRecorder(This,recorderUniqueId) \ + ( (This)->lpVtbl -> InitializeDiscRecorder(This,recorderUniqueId) ) + +#define IDiscRecorder2_get_ActiveDiscRecorder(This,value) \ + ( (This)->lpVtbl -> get_ActiveDiscRecorder(This,value) ) + +#define IDiscRecorder2_get_VendorId(This,value) \ + ( (This)->lpVtbl -> get_VendorId(This,value) ) + +#define IDiscRecorder2_get_ProductId(This,value) \ + ( (This)->lpVtbl -> get_ProductId(This,value) ) + +#define IDiscRecorder2_get_ProductRevision(This,value) \ + ( (This)->lpVtbl -> get_ProductRevision(This,value) ) + +#define IDiscRecorder2_get_VolumeName(This,value) \ + ( (This)->lpVtbl -> get_VolumeName(This,value) ) + +#define IDiscRecorder2_get_VolumePathNames(This,value) \ + ( (This)->lpVtbl -> get_VolumePathNames(This,value) ) + +#define IDiscRecorder2_get_DeviceCanLoadMedia(This,value) \ + ( (This)->lpVtbl -> get_DeviceCanLoadMedia(This,value) ) + +#define IDiscRecorder2_get_LegacyDeviceNumber(This,legacyDeviceNumber) \ + ( (This)->lpVtbl -> get_LegacyDeviceNumber(This,legacyDeviceNumber) ) + +#define IDiscRecorder2_get_SupportedFeaturePages(This,value) \ + ( (This)->lpVtbl -> get_SupportedFeaturePages(This,value) ) + +#define IDiscRecorder2_get_CurrentFeaturePages(This,value) \ + ( (This)->lpVtbl -> get_CurrentFeaturePages(This,value) ) + +#define IDiscRecorder2_get_SupportedProfiles(This,value) \ + ( (This)->lpVtbl -> get_SupportedProfiles(This,value) ) + +#define IDiscRecorder2_get_CurrentProfiles(This,value) \ + ( (This)->lpVtbl -> get_CurrentProfiles(This,value) ) + +#define IDiscRecorder2_get_SupportedModePages(This,value) \ + ( (This)->lpVtbl -> get_SupportedModePages(This,value) ) + +#define IDiscRecorder2_get_ExclusiveAccessOwner(This,value) \ + ( (This)->lpVtbl -> get_ExclusiveAccessOwner(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscRecorder2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0004 */ +/* [local] */ + +#define DISPID_IWRITEENGINE2_WRITESECTION 0x200 +#define DISPID_IWRITEENGINE2_CANCELWRITE 0x201 +#define DISPID_IWRITEENGINE2_DISCRECORDER 0x100 +#define DISPID_IWRITEENGINE2_USESTREAMINGWRITE12 0x101 +#define DISPID_IWRITEENGINE2_STARTINGSECTORSPERSECOND 0x102 +#define DISPID_IWRITEENGINE2_ENDINGSECTORSPERSECOND 0x103 +#define DISPID_IWRITEENGINE2_BYTESPERSECTOR 0x104 +#define DISPID_IWRITEENGINE2_WRITEINPROGRESS 0x105 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0004_v0_0_s_ifspec; + +#ifndef __IWriteEngine2_INTERFACE_DEFINED__ +#define __IWriteEngine2_INTERFACE_DEFINED__ + +/* interface IWriteEngine2 */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IWriteEngine2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354135-7F64-5B0F-8F00-5D77AFBE261E") + IWriteEngine2 : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteSection( + /* [in] */ __RPC__in_opt IStream *data, + /* [in] */ LONG startingBlockAddress, + /* [in] */ LONG numberOfBlocks) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CancelWrite( void) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Recorder( + /* [in] */ __RPC__in_opt IDiscRecorder2Ex *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Recorder( + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2Ex **value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseStreamingWrite12( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseStreamingWrite12( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StartingSectorsPerSecond( + /* [in] */ LONG value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartingSectorsPerSecond( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_EndingSectorsPerSecond( + /* [in] */ LONG value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EndingSectorsPerSecond( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BytesPerSector( + /* [in] */ LONG value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BytesPerSector( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WriteInProgress( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWriteEngine2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWriteEngine2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWriteEngine2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWriteEngine2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWriteEngine2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWriteEngine2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWriteEngine2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWriteEngine2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWriteEngine2, WriteSection) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteSection )( + __RPC__in IWriteEngine2 * This, + /* [in] */ __RPC__in_opt IStream *data, + /* [in] */ LONG startingBlockAddress, + /* [in] */ LONG numberOfBlocks); + + DECLSPEC_XFGVIRT(IWriteEngine2, CancelWrite) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CancelWrite )( + __RPC__in IWriteEngine2 * This); + + DECLSPEC_XFGVIRT(IWriteEngine2, put_Recorder) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Recorder )( + __RPC__in IWriteEngine2 * This, + /* [in] */ __RPC__in_opt IDiscRecorder2Ex *value); + + DECLSPEC_XFGVIRT(IWriteEngine2, get_Recorder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recorder )( + __RPC__in IWriteEngine2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2Ex **value); + + DECLSPEC_XFGVIRT(IWriteEngine2, put_UseStreamingWrite12) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseStreamingWrite12 )( + __RPC__in IWriteEngine2 * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IWriteEngine2, get_UseStreamingWrite12) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseStreamingWrite12 )( + __RPC__in IWriteEngine2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IWriteEngine2, put_StartingSectorsPerSecond) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StartingSectorsPerSecond )( + __RPC__in IWriteEngine2 * This, + /* [in] */ LONG value); + + DECLSPEC_XFGVIRT(IWriteEngine2, get_StartingSectorsPerSecond) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartingSectorsPerSecond )( + __RPC__in IWriteEngine2 * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2, put_EndingSectorsPerSecond) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_EndingSectorsPerSecond )( + __RPC__in IWriteEngine2 * This, + /* [in] */ LONG value); + + DECLSPEC_XFGVIRT(IWriteEngine2, get_EndingSectorsPerSecond) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EndingSectorsPerSecond )( + __RPC__in IWriteEngine2 * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2, put_BytesPerSector) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BytesPerSector )( + __RPC__in IWriteEngine2 * This, + /* [in] */ LONG value); + + DECLSPEC_XFGVIRT(IWriteEngine2, get_BytesPerSector) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BytesPerSector )( + __RPC__in IWriteEngine2 * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2, get_WriteInProgress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WriteInProgress )( + __RPC__in IWriteEngine2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + END_INTERFACE + } IWriteEngine2Vtbl; + + interface IWriteEngine2 + { + CONST_VTBL struct IWriteEngine2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWriteEngine2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWriteEngine2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWriteEngine2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWriteEngine2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWriteEngine2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWriteEngine2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWriteEngine2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWriteEngine2_WriteSection(This,data,startingBlockAddress,numberOfBlocks) \ + ( (This)->lpVtbl -> WriteSection(This,data,startingBlockAddress,numberOfBlocks) ) + +#define IWriteEngine2_CancelWrite(This) \ + ( (This)->lpVtbl -> CancelWrite(This) ) + +#define IWriteEngine2_put_Recorder(This,value) \ + ( (This)->lpVtbl -> put_Recorder(This,value) ) + +#define IWriteEngine2_get_Recorder(This,value) \ + ( (This)->lpVtbl -> get_Recorder(This,value) ) + +#define IWriteEngine2_put_UseStreamingWrite12(This,value) \ + ( (This)->lpVtbl -> put_UseStreamingWrite12(This,value) ) + +#define IWriteEngine2_get_UseStreamingWrite12(This,value) \ + ( (This)->lpVtbl -> get_UseStreamingWrite12(This,value) ) + +#define IWriteEngine2_put_StartingSectorsPerSecond(This,value) \ + ( (This)->lpVtbl -> put_StartingSectorsPerSecond(This,value) ) + +#define IWriteEngine2_get_StartingSectorsPerSecond(This,value) \ + ( (This)->lpVtbl -> get_StartingSectorsPerSecond(This,value) ) + +#define IWriteEngine2_put_EndingSectorsPerSecond(This,value) \ + ( (This)->lpVtbl -> put_EndingSectorsPerSecond(This,value) ) + +#define IWriteEngine2_get_EndingSectorsPerSecond(This,value) \ + ( (This)->lpVtbl -> get_EndingSectorsPerSecond(This,value) ) + +#define IWriteEngine2_put_BytesPerSector(This,value) \ + ( (This)->lpVtbl -> put_BytesPerSector(This,value) ) + +#define IWriteEngine2_get_BytesPerSector(This,value) \ + ( (This)->lpVtbl -> get_BytesPerSector(This,value) ) + +#define IWriteEngine2_get_WriteInProgress(This,value) \ + ( (This)->lpVtbl -> get_WriteInProgress(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWriteEngine2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0005 */ +/* [local] */ + +#define DISPID_IWRITEENGINE2EVENTARGS_STARTLBA 0x100 +#define DISPID_IWRITEENGINE2EVENTARGS_SECTORCOUNT 0x101 +#define DISPID_IWRITEENGINE2EVENTARGS_LASTREADLBA 0x102 +#define DISPID_IWRITEENGINE2EVENTARGS_LASTWRITTENLBA 0x103 +#define DISPID_IWRITEENGINE2EVENTARGS_TOTALDEVICEBUFFER 0x104 +#define DISPID_IWRITEENGINE2EVENTARGS_USEDDEVICEBUFFER 0x105 +#define DISPID_IWRITEENGINE2EVENTARGS_TOTALSYSTEMBUFFER 0x106 +#define DISPID_IWRITEENGINE2EVENTARGS_USEDSYSTEMBUFFER 0x107 +#define DISPID_IWRITEENGINE2EVENTARGS_FREESYSTEMBUFFER 0x108 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0005_v0_0_s_ifspec; + +#ifndef __IWriteEngine2EventArgs_INTERFACE_DEFINED__ +#define __IWriteEngine2EventArgs_INTERFACE_DEFINED__ + +/* interface IWriteEngine2EventArgs */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IWriteEngine2EventArgs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354136-7F64-5B0F-8F00-5D77AFBE261E") + IWriteEngine2EventArgs : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartLba( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SectorCount( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastReadLba( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastWrittenLba( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalSystemBuffer( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UsedSystemBuffer( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FreeSystemBuffer( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWriteEngine2EventArgsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWriteEngine2EventArgs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWriteEngine2EventArgs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWriteEngine2EventArgs * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWriteEngine2EventArgs * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWriteEngine2EventArgs * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWriteEngine2EventArgs * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWriteEngine2EventArgs * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_StartLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartLba )( + __RPC__in IWriteEngine2EventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_SectorCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SectorCount )( + __RPC__in IWriteEngine2EventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_LastReadLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastReadLba )( + __RPC__in IWriteEngine2EventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_LastWrittenLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastWrittenLba )( + __RPC__in IWriteEngine2EventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_TotalSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalSystemBuffer )( + __RPC__in IWriteEngine2EventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_UsedSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsedSystemBuffer )( + __RPC__in IWriteEngine2EventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_FreeSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeSystemBuffer )( + __RPC__in IWriteEngine2EventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + END_INTERFACE + } IWriteEngine2EventArgsVtbl; + + interface IWriteEngine2EventArgs + { + CONST_VTBL struct IWriteEngine2EventArgsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWriteEngine2EventArgs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWriteEngine2EventArgs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWriteEngine2EventArgs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWriteEngine2EventArgs_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWriteEngine2EventArgs_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWriteEngine2EventArgs_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWriteEngine2EventArgs_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWriteEngine2EventArgs_get_StartLba(This,value) \ + ( (This)->lpVtbl -> get_StartLba(This,value) ) + +#define IWriteEngine2EventArgs_get_SectorCount(This,value) \ + ( (This)->lpVtbl -> get_SectorCount(This,value) ) + +#define IWriteEngine2EventArgs_get_LastReadLba(This,value) \ + ( (This)->lpVtbl -> get_LastReadLba(This,value) ) + +#define IWriteEngine2EventArgs_get_LastWrittenLba(This,value) \ + ( (This)->lpVtbl -> get_LastWrittenLba(This,value) ) + +#define IWriteEngine2EventArgs_get_TotalSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_TotalSystemBuffer(This,value) ) + +#define IWriteEngine2EventArgs_get_UsedSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_UsedSystemBuffer(This,value) ) + +#define IWriteEngine2EventArgs_get_FreeSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_FreeSystemBuffer(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWriteEngine2EventArgs_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0006 */ +/* [local] */ + +#define DISPID_DWRITEENGINE2EVENTS_UPDATE 0x100 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0006_v0_0_s_ifspec; + +#ifndef __DWriteEngine2Events_INTERFACE_DEFINED__ +#define __DWriteEngine2Events_INTERFACE_DEFINED__ + +/* interface DWriteEngine2Events */ +/* [helpstring][unique][uuid][oleautomation][nonextensible][object] */ + + +EXTERN_C const IID IID_DWriteEngine2Events; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354137-7F64-5B0F-8F00-5D77AFBE261E") + DWriteEngine2Events : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Update( + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in_opt IDispatch *progress) = 0; + + }; + + +#else /* C style interface */ + + typedef struct DWriteEngine2EventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DWriteEngine2Events * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DWriteEngine2Events * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DWriteEngine2Events * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DWriteEngine2Events * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DWriteEngine2Events * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DWriteEngine2Events * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DWriteEngine2Events * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(DWriteEngine2Events, Update) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in DWriteEngine2Events * This, + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in_opt IDispatch *progress); + + END_INTERFACE + } DWriteEngine2EventsVtbl; + + interface DWriteEngine2Events + { + CONST_VTBL struct DWriteEngine2EventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DWriteEngine2Events_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DWriteEngine2Events_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DWriteEngine2Events_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DWriteEngine2Events_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DWriteEngine2Events_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DWriteEngine2Events_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DWriteEngine2Events_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define DWriteEngine2Events_Update(This,object,progress) \ + ( (This)->lpVtbl -> Update(This,object,progress) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DWriteEngine2Events_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0007 */ +/* [local] */ + +#define DISPID_IDISCFORMAT2_RECORDERSUPPORTED 0x800 +#define DISPID_IDISCFORMAT2_MEDIASUPPORTED 0x801 +#define DISPID_IDISCFORMAT2_MEDIAPHYSICALLYBLANK 0x700 +#define DISPID_IDISCFORMAT2_MEDIAHEURISTICALLYBLANK 0x701 +#define DISPID_IDISCFORMAT2_SUPPORTEDMEDIATYPES 0x702 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0007_v0_0_s_ifspec; + +#ifndef __IDiscFormat2_INTERFACE_DEFINED__ +#define __IDiscFormat2_INTERFACE_DEFINED__ + +/* interface IDiscFormat2 */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IDiscFormat2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354152-8F64-5B0F-8F00-5D77AFBE261E") + IDiscFormat2 : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsRecorderSupported( + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsCurrentMediaSupported( + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaPhysicallyBlank( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaHeuristicallyBlank( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedMediaTypes( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscFormat2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscFormat2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscFormat2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscFormat2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDiscFormat2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDiscFormat2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDiscFormat2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDiscFormat2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDiscFormat2, IsRecorderSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsRecorderSupported )( + __RPC__in IDiscFormat2 * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, IsCurrentMediaSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsCurrentMediaSupported )( + __RPC__in IDiscFormat2 * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_MediaPhysicallyBlank) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaPhysicallyBlank )( + __RPC__in IDiscFormat2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_MediaHeuristicallyBlank) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaHeuristicallyBlank )( + __RPC__in IDiscFormat2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_SupportedMediaTypes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedMediaTypes )( + __RPC__in IDiscFormat2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + END_INTERFACE + } IDiscFormat2Vtbl; + + interface IDiscFormat2 + { + CONST_VTBL struct IDiscFormat2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscFormat2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscFormat2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscFormat2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscFormat2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDiscFormat2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDiscFormat2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDiscFormat2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDiscFormat2_IsRecorderSupported(This,recorder,value) \ + ( (This)->lpVtbl -> IsRecorderSupported(This,recorder,value) ) + +#define IDiscFormat2_IsCurrentMediaSupported(This,recorder,value) \ + ( (This)->lpVtbl -> IsCurrentMediaSupported(This,recorder,value) ) + +#define IDiscFormat2_get_MediaPhysicallyBlank(This,value) \ + ( (This)->lpVtbl -> get_MediaPhysicallyBlank(This,value) ) + +#define IDiscFormat2_get_MediaHeuristicallyBlank(This,value) \ + ( (This)->lpVtbl -> get_MediaHeuristicallyBlank(This,value) ) + +#define IDiscFormat2_get_SupportedMediaTypes(This,value) \ + ( (This)->lpVtbl -> get_SupportedMediaTypes(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscFormat2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0008 */ +/* [local] */ + +#define DISPID_IDISCFORMAT2ERASE_RECORDER 0x100 +#define DISPID_IDISCFORMAT2ERASE_FULLERASE 0x101 +#define DISPID_IDISCFORMAT2ERASE_MEDIATYPE 0x102 +#define DISPID_IDISCFORMAT2ERASE_CLIENTNAME 0x103 +#define DISPID_IDISCFORMAT2ERASE_ERASEMEDIA 0x201 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0008_v0_0_s_ifspec; + +#ifndef __IDiscFormat2Erase_INTERFACE_DEFINED__ +#define __IDiscFormat2Erase_INTERFACE_DEFINED__ + +/* interface IDiscFormat2Erase */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IDiscFormat2Erase; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354156-8F64-5B0F-8F00-5D77AFBE261E") + IDiscFormat2Erase : public IDiscFormat2 + { + public: + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Recorder( + /* [in] */ __RPC__in_opt IDiscRecorder2 *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Recorder( + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FullErase( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FullErase( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPhysicalMediaType( + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_PHYSICAL_TYPE *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ClientName( + /* [in] */ __RPC__in BSTR value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ClientName( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE EraseMedia( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscFormat2EraseVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscFormat2Erase * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscFormat2Erase * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscFormat2Erase * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDiscFormat2Erase * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDiscFormat2Erase * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDiscFormat2Erase * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDiscFormat2Erase * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDiscFormat2, IsRecorderSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsRecorderSupported )( + __RPC__in IDiscFormat2Erase * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, IsCurrentMediaSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsCurrentMediaSupported )( + __RPC__in IDiscFormat2Erase * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_MediaPhysicallyBlank) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaPhysicallyBlank )( + __RPC__in IDiscFormat2Erase * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_MediaHeuristicallyBlank) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaHeuristicallyBlank )( + __RPC__in IDiscFormat2Erase * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_SupportedMediaTypes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedMediaTypes )( + __RPC__in IDiscFormat2Erase * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Erase, put_Recorder) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Recorder )( + __RPC__in IDiscFormat2Erase * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Erase, get_Recorder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recorder )( + __RPC__in IDiscFormat2Erase * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value); + + DECLSPEC_XFGVIRT(IDiscFormat2Erase, put_FullErase) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FullErase )( + __RPC__in IDiscFormat2Erase * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IDiscFormat2Erase, get_FullErase) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FullErase )( + __RPC__in IDiscFormat2Erase * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Erase, get_CurrentPhysicalMediaType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPhysicalMediaType )( + __RPC__in IDiscFormat2Erase * This, + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_PHYSICAL_TYPE *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Erase, put_ClientName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientName )( + __RPC__in IDiscFormat2Erase * This, + /* [in] */ __RPC__in BSTR value); + + DECLSPEC_XFGVIRT(IDiscFormat2Erase, get_ClientName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientName )( + __RPC__in IDiscFormat2Erase * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Erase, EraseMedia) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *EraseMedia )( + __RPC__in IDiscFormat2Erase * This); + + END_INTERFACE + } IDiscFormat2EraseVtbl; + + interface IDiscFormat2Erase + { + CONST_VTBL struct IDiscFormat2EraseVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscFormat2Erase_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscFormat2Erase_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscFormat2Erase_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscFormat2Erase_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDiscFormat2Erase_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDiscFormat2Erase_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDiscFormat2Erase_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDiscFormat2Erase_IsRecorderSupported(This,recorder,value) \ + ( (This)->lpVtbl -> IsRecorderSupported(This,recorder,value) ) + +#define IDiscFormat2Erase_IsCurrentMediaSupported(This,recorder,value) \ + ( (This)->lpVtbl -> IsCurrentMediaSupported(This,recorder,value) ) + +#define IDiscFormat2Erase_get_MediaPhysicallyBlank(This,value) \ + ( (This)->lpVtbl -> get_MediaPhysicallyBlank(This,value) ) + +#define IDiscFormat2Erase_get_MediaHeuristicallyBlank(This,value) \ + ( (This)->lpVtbl -> get_MediaHeuristicallyBlank(This,value) ) + +#define IDiscFormat2Erase_get_SupportedMediaTypes(This,value) \ + ( (This)->lpVtbl -> get_SupportedMediaTypes(This,value) ) + + +#define IDiscFormat2Erase_put_Recorder(This,value) \ + ( (This)->lpVtbl -> put_Recorder(This,value) ) + +#define IDiscFormat2Erase_get_Recorder(This,value) \ + ( (This)->lpVtbl -> get_Recorder(This,value) ) + +#define IDiscFormat2Erase_put_FullErase(This,value) \ + ( (This)->lpVtbl -> put_FullErase(This,value) ) + +#define IDiscFormat2Erase_get_FullErase(This,value) \ + ( (This)->lpVtbl -> get_FullErase(This,value) ) + +#define IDiscFormat2Erase_get_CurrentPhysicalMediaType(This,value) \ + ( (This)->lpVtbl -> get_CurrentPhysicalMediaType(This,value) ) + +#define IDiscFormat2Erase_put_ClientName(This,value) \ + ( (This)->lpVtbl -> put_ClientName(This,value) ) + +#define IDiscFormat2Erase_get_ClientName(This,value) \ + ( (This)->lpVtbl -> get_ClientName(This,value) ) + +#define IDiscFormat2Erase_EraseMedia(This) \ + ( (This)->lpVtbl -> EraseMedia(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscFormat2Erase_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0009 */ +/* [local] */ + +#define DISPID_IDISCFORMAT2ERASEEVENTS_UPDATE 0x200 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0009_v0_0_s_ifspec; + +#ifndef __DDiscFormat2EraseEvents_INTERFACE_DEFINED__ +#define __DDiscFormat2EraseEvents_INTERFACE_DEFINED__ + +/* interface DDiscFormat2EraseEvents */ +/* [helpstring][unique][uuid][oleautomation][nonextensible][object] */ + + +EXTERN_C const IID IID_DDiscFormat2EraseEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2735413A-7F64-5B0F-8F00-5D77AFBE261E") + DDiscFormat2EraseEvents : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Update( + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ LONG elapsedSeconds, + /* [in] */ LONG estimatedTotalSeconds) = 0; + + }; + + +#else /* C style interface */ + + typedef struct DDiscFormat2EraseEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DDiscFormat2EraseEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DDiscFormat2EraseEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DDiscFormat2EraseEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DDiscFormat2EraseEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DDiscFormat2EraseEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DDiscFormat2EraseEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DDiscFormat2EraseEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(DDiscFormat2EraseEvents, Update) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in DDiscFormat2EraseEvents * This, + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ LONG elapsedSeconds, + /* [in] */ LONG estimatedTotalSeconds); + + END_INTERFACE + } DDiscFormat2EraseEventsVtbl; + + interface DDiscFormat2EraseEvents + { + CONST_VTBL struct DDiscFormat2EraseEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DDiscFormat2EraseEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DDiscFormat2EraseEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DDiscFormat2EraseEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DDiscFormat2EraseEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DDiscFormat2EraseEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DDiscFormat2EraseEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DDiscFormat2EraseEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define DDiscFormat2EraseEvents_Update(This,object,elapsedSeconds,estimatedTotalSeconds) \ + ( (This)->lpVtbl -> Update(This,object,elapsedSeconds,estimatedTotalSeconds) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DDiscFormat2EraseEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0010 */ +/* [local] */ + +#define DISPID_IDISCFORMAT2DATA_RECORDER 0x100 +#define DISPID_IDISCFORMAT2DATA_BUFFERUNDERRUNFREEDISABLED 0x101 +#define DISPID_IDISCFORMAT2DATA_POSTGAPALREADYINIMAGE 0x104 +#define DISPID_IDISCFORMAT2DATA_CURRENTMEDIASTATUS 0x106 +#define DISPID_IDISCFORMAT2DATA_WRITEPROTECTSTATUS 0x107 +#define DISPID_IDISCFORMAT2DATA_TOTALSECTORS 0x108 +#define DISPID_IDISCFORMAT2DATA_FREESECTORS 0x109 +#define DISPID_IDISCFORMAT2DATA_NEXTWRITABLEADDRESS 0x10A +#define DISPID_IDISCFORMAT2DATA_STARTSECTOROFPREVIOUSSESSION 0x10B +#define DISPID_IDISCFORMAT2DATA_LASTSECTOROFPREVIOUSSESSION 0x10C +#define DISPID_IDISCFORMAT2DATA_FORCEMEDIATOBECLOSED 0x10D +#define DISPID_IDISCFORMAT2DATA_DISABLEDVDCOMPATIBILITYMODE 0x10E +#define DISPID_IDISCFORMAT2DATA_CURRENTMEDIATYPE 0x10F +#define DISPID_IDISCFORMAT2DATA_CLIENTNAME 0x110 +#define DISPID_IDISCFORMAT2DATA_REQUESTEDWRITESPEED 0x111 +#define DISPID_IDISCFORMAT2DATA_REQUESTEDROTATIONTYPEISPURECAV 0x112 +#define DISPID_IDISCFORMAT2DATA_CURRENTWRITESPEED 0x113 +#define DISPID_IDISCFORMAT2DATA_CURRENTROTATIONTYPEISPURECAV 0x114 +#define DISPID_IDISCFORMAT2DATA_SUPPORTEDWRITESPEEDS 0x115 +#define DISPID_IDISCFORMAT2DATA_SUPPORTEDWRITESPEEDDESCRIPTORS 0x116 +#define DISPID_IDISCFORMAT2DATA_FORCEOVERWRITE 0x117 +#define DISPID_IDISCFORMAT2DATA_MUTLISESSIONINTERFACES 0x118 +#define DISPID_IDISCFORMAT2DATA_WRITE 0x200 +#define DISPID_IDISCFORMAT2DATA_CANCELWRITE 0x201 +#define DISPID_IDISCFORMAT2DATA_SETWRITESPEED 0x202 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0010_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0010_v0_0_s_ifspec; + +#ifndef __IDiscFormat2Data_INTERFACE_DEFINED__ +#define __IDiscFormat2Data_INTERFACE_DEFINED__ + +/* interface IDiscFormat2Data */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IDiscFormat2Data; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354153-9F64-5B0F-8F00-5D77AFBE261E") + IDiscFormat2Data : public IDiscFormat2 + { + public: + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Recorder( + /* [in] */ __RPC__in_opt IDiscRecorder2 *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Recorder( + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BufferUnderrunFreeDisabled( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BufferUnderrunFreeDisabled( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PostgapAlreadyInImage( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PostgapAlreadyInImage( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentMediaStatus( + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_DATA_MEDIA_STATE *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WriteProtectStatus( + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_WRITE_PROTECT_STATE *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalSectorsOnMedia( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FreeSectorsOnMedia( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NextWritableAddress( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartAddressOfPreviousSession( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastWrittenAddressOfPreviousSession( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ForceMediaToBeClosed( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ForceMediaToBeClosed( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DisableConsumerDvdCompatibilityMode( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisableConsumerDvdCompatibilityMode( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPhysicalMediaType( + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_PHYSICAL_TYPE *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ClientName( + /* [in] */ __RPC__in BSTR value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ClientName( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RequestedWriteSpeed( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RequestedRotationTypeIsPureCAV( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentWriteSpeed( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentRotationTypeIsPureCAV( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedWriteSpeeds( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeeds) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedWriteSpeedDescriptors( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeedDescriptors) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ForceOverwrite( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ForceOverwrite( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MultisessionInterfaces( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Write( + /* [in] */ __RPC__in_opt IStream *data) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CancelWrite( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetWriteSpeed( + /* [in] */ LONG RequestedSectorsPerSecond, + /* [in] */ VARIANT_BOOL RotationTypeIsPureCAV) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscFormat2DataVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscFormat2Data * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscFormat2Data * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDiscFormat2Data * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDiscFormat2Data * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDiscFormat2, IsRecorderSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsRecorderSupported )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, IsCurrentMediaSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsCurrentMediaSupported )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_MediaPhysicallyBlank) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaPhysicallyBlank )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_MediaHeuristicallyBlank) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaHeuristicallyBlank )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_SupportedMediaTypes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedMediaTypes )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, put_Recorder) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Recorder )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_Recorder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recorder )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, put_BufferUnderrunFreeDisabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BufferUnderrunFreeDisabled )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_BufferUnderrunFreeDisabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferUnderrunFreeDisabled )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, put_PostgapAlreadyInImage) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PostgapAlreadyInImage )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_PostgapAlreadyInImage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PostgapAlreadyInImage )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_CurrentMediaStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentMediaStatus )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_DATA_MEDIA_STATE *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_WriteProtectStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WriteProtectStatus )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_WRITE_PROTECT_STATE *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_TotalSectorsOnMedia) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalSectorsOnMedia )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_FreeSectorsOnMedia) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeSectorsOnMedia )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_NextWritableAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NextWritableAddress )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_StartAddressOfPreviousSession) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartAddressOfPreviousSession )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_LastWrittenAddressOfPreviousSession) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastWrittenAddressOfPreviousSession )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, put_ForceMediaToBeClosed) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ForceMediaToBeClosed )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_ForceMediaToBeClosed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ForceMediaToBeClosed )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, put_DisableConsumerDvdCompatibilityMode) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisableConsumerDvdCompatibilityMode )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_DisableConsumerDvdCompatibilityMode) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisableConsumerDvdCompatibilityMode )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_CurrentPhysicalMediaType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPhysicalMediaType )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_PHYSICAL_TYPE *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, put_ClientName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientName )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ __RPC__in BSTR value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_ClientName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientName )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_RequestedWriteSpeed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestedWriteSpeed )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_RequestedRotationTypeIsPureCAV) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestedRotationTypeIsPureCAV )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_CurrentWriteSpeed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentWriteSpeed )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_CurrentRotationTypeIsPureCAV) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentRotationTypeIsPureCAV )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_SupportedWriteSpeeds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedWriteSpeeds )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeeds); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_SupportedWriteSpeedDescriptors) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedWriteSpeedDescriptors )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeedDescriptors); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, put_ForceOverwrite) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ForceOverwrite )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_ForceOverwrite) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ForceOverwrite )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, get_MultisessionInterfaces) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MultisessionInterfaces )( + __RPC__in IDiscFormat2Data * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, Write) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Write )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ __RPC__in_opt IStream *data); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, CancelWrite) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CancelWrite )( + __RPC__in IDiscFormat2Data * This); + + DECLSPEC_XFGVIRT(IDiscFormat2Data, SetWriteSpeed) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetWriteSpeed )( + __RPC__in IDiscFormat2Data * This, + /* [in] */ LONG RequestedSectorsPerSecond, + /* [in] */ VARIANT_BOOL RotationTypeIsPureCAV); + + END_INTERFACE + } IDiscFormat2DataVtbl; + + interface IDiscFormat2Data + { + CONST_VTBL struct IDiscFormat2DataVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscFormat2Data_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscFormat2Data_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscFormat2Data_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscFormat2Data_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDiscFormat2Data_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDiscFormat2Data_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDiscFormat2Data_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDiscFormat2Data_IsRecorderSupported(This,recorder,value) \ + ( (This)->lpVtbl -> IsRecorderSupported(This,recorder,value) ) + +#define IDiscFormat2Data_IsCurrentMediaSupported(This,recorder,value) \ + ( (This)->lpVtbl -> IsCurrentMediaSupported(This,recorder,value) ) + +#define IDiscFormat2Data_get_MediaPhysicallyBlank(This,value) \ + ( (This)->lpVtbl -> get_MediaPhysicallyBlank(This,value) ) + +#define IDiscFormat2Data_get_MediaHeuristicallyBlank(This,value) \ + ( (This)->lpVtbl -> get_MediaHeuristicallyBlank(This,value) ) + +#define IDiscFormat2Data_get_SupportedMediaTypes(This,value) \ + ( (This)->lpVtbl -> get_SupportedMediaTypes(This,value) ) + + +#define IDiscFormat2Data_put_Recorder(This,value) \ + ( (This)->lpVtbl -> put_Recorder(This,value) ) + +#define IDiscFormat2Data_get_Recorder(This,value) \ + ( (This)->lpVtbl -> get_Recorder(This,value) ) + +#define IDiscFormat2Data_put_BufferUnderrunFreeDisabled(This,value) \ + ( (This)->lpVtbl -> put_BufferUnderrunFreeDisabled(This,value) ) + +#define IDiscFormat2Data_get_BufferUnderrunFreeDisabled(This,value) \ + ( (This)->lpVtbl -> get_BufferUnderrunFreeDisabled(This,value) ) + +#define IDiscFormat2Data_put_PostgapAlreadyInImage(This,value) \ + ( (This)->lpVtbl -> put_PostgapAlreadyInImage(This,value) ) + +#define IDiscFormat2Data_get_PostgapAlreadyInImage(This,value) \ + ( (This)->lpVtbl -> get_PostgapAlreadyInImage(This,value) ) + +#define IDiscFormat2Data_get_CurrentMediaStatus(This,value) \ + ( (This)->lpVtbl -> get_CurrentMediaStatus(This,value) ) + +#define IDiscFormat2Data_get_WriteProtectStatus(This,value) \ + ( (This)->lpVtbl -> get_WriteProtectStatus(This,value) ) + +#define IDiscFormat2Data_get_TotalSectorsOnMedia(This,value) \ + ( (This)->lpVtbl -> get_TotalSectorsOnMedia(This,value) ) + +#define IDiscFormat2Data_get_FreeSectorsOnMedia(This,value) \ + ( (This)->lpVtbl -> get_FreeSectorsOnMedia(This,value) ) + +#define IDiscFormat2Data_get_NextWritableAddress(This,value) \ + ( (This)->lpVtbl -> get_NextWritableAddress(This,value) ) + +#define IDiscFormat2Data_get_StartAddressOfPreviousSession(This,value) \ + ( (This)->lpVtbl -> get_StartAddressOfPreviousSession(This,value) ) + +#define IDiscFormat2Data_get_LastWrittenAddressOfPreviousSession(This,value) \ + ( (This)->lpVtbl -> get_LastWrittenAddressOfPreviousSession(This,value) ) + +#define IDiscFormat2Data_put_ForceMediaToBeClosed(This,value) \ + ( (This)->lpVtbl -> put_ForceMediaToBeClosed(This,value) ) + +#define IDiscFormat2Data_get_ForceMediaToBeClosed(This,value) \ + ( (This)->lpVtbl -> get_ForceMediaToBeClosed(This,value) ) + +#define IDiscFormat2Data_put_DisableConsumerDvdCompatibilityMode(This,value) \ + ( (This)->lpVtbl -> put_DisableConsumerDvdCompatibilityMode(This,value) ) + +#define IDiscFormat2Data_get_DisableConsumerDvdCompatibilityMode(This,value) \ + ( (This)->lpVtbl -> get_DisableConsumerDvdCompatibilityMode(This,value) ) + +#define IDiscFormat2Data_get_CurrentPhysicalMediaType(This,value) \ + ( (This)->lpVtbl -> get_CurrentPhysicalMediaType(This,value) ) + +#define IDiscFormat2Data_put_ClientName(This,value) \ + ( (This)->lpVtbl -> put_ClientName(This,value) ) + +#define IDiscFormat2Data_get_ClientName(This,value) \ + ( (This)->lpVtbl -> get_ClientName(This,value) ) + +#define IDiscFormat2Data_get_RequestedWriteSpeed(This,value) \ + ( (This)->lpVtbl -> get_RequestedWriteSpeed(This,value) ) + +#define IDiscFormat2Data_get_RequestedRotationTypeIsPureCAV(This,value) \ + ( (This)->lpVtbl -> get_RequestedRotationTypeIsPureCAV(This,value) ) + +#define IDiscFormat2Data_get_CurrentWriteSpeed(This,value) \ + ( (This)->lpVtbl -> get_CurrentWriteSpeed(This,value) ) + +#define IDiscFormat2Data_get_CurrentRotationTypeIsPureCAV(This,value) \ + ( (This)->lpVtbl -> get_CurrentRotationTypeIsPureCAV(This,value) ) + +#define IDiscFormat2Data_get_SupportedWriteSpeeds(This,supportedSpeeds) \ + ( (This)->lpVtbl -> get_SupportedWriteSpeeds(This,supportedSpeeds) ) + +#define IDiscFormat2Data_get_SupportedWriteSpeedDescriptors(This,supportedSpeedDescriptors) \ + ( (This)->lpVtbl -> get_SupportedWriteSpeedDescriptors(This,supportedSpeedDescriptors) ) + +#define IDiscFormat2Data_put_ForceOverwrite(This,value) \ + ( (This)->lpVtbl -> put_ForceOverwrite(This,value) ) + +#define IDiscFormat2Data_get_ForceOverwrite(This,value) \ + ( (This)->lpVtbl -> get_ForceOverwrite(This,value) ) + +#define IDiscFormat2Data_get_MultisessionInterfaces(This,value) \ + ( (This)->lpVtbl -> get_MultisessionInterfaces(This,value) ) + +#define IDiscFormat2Data_Write(This,data) \ + ( (This)->lpVtbl -> Write(This,data) ) + +#define IDiscFormat2Data_CancelWrite(This) \ + ( (This)->lpVtbl -> CancelWrite(This) ) + +#define IDiscFormat2Data_SetWriteSpeed(This,RequestedSectorsPerSecond,RotationTypeIsPureCAV) \ + ( (This)->lpVtbl -> SetWriteSpeed(This,RequestedSectorsPerSecond,RotationTypeIsPureCAV) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscFormat2Data_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0011 */ +/* [local] */ + +#define DISPID_DDISCFORMAT2DATAEVENTS_UPDATE 0x200 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0011_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0011_v0_0_s_ifspec; + +#ifndef __DDiscFormat2DataEvents_INTERFACE_DEFINED__ +#define __DDiscFormat2DataEvents_INTERFACE_DEFINED__ + +/* interface DDiscFormat2DataEvents */ +/* [helpstring][unique][uuid][oleautomation][nonextensible][object] */ + + +EXTERN_C const IID IID_DDiscFormat2DataEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2735413C-7F64-5B0F-8F00-5D77AFBE261E") + DDiscFormat2DataEvents : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Update( + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in_opt IDispatch *progress) = 0; + + }; + + +#else /* C style interface */ + + typedef struct DDiscFormat2DataEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DDiscFormat2DataEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DDiscFormat2DataEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DDiscFormat2DataEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DDiscFormat2DataEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DDiscFormat2DataEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DDiscFormat2DataEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DDiscFormat2DataEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(DDiscFormat2DataEvents, Update) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in DDiscFormat2DataEvents * This, + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in_opt IDispatch *progress); + + END_INTERFACE + } DDiscFormat2DataEventsVtbl; + + interface DDiscFormat2DataEvents + { + CONST_VTBL struct DDiscFormat2DataEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DDiscFormat2DataEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DDiscFormat2DataEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DDiscFormat2DataEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DDiscFormat2DataEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DDiscFormat2DataEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DDiscFormat2DataEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DDiscFormat2DataEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define DDiscFormat2DataEvents_Update(This,object,progress) \ + ( (This)->lpVtbl -> Update(This,object,progress) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DDiscFormat2DataEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0012 */ +/* [local] */ + +#define DISPID_IDISCFORMAT2DATAEVENTARGS_ELAPSEDTIME 0x300 +#define DISPID_IDISCFORMAT2DATAEVENTARGS_ESTIMATEDREMAININGTIME 0x301 +#define DISPID_IDISCFORMAT2DATAEVENTARGS_ESTIMATEDTOTALTIME 0x302 +#define DISPID_IDISCFORMAT2DATAEVENTARGS_CURRENTACTION 0x303 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0012_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0012_v0_0_s_ifspec; + +#ifndef __IDiscFormat2DataEventArgs_INTERFACE_DEFINED__ +#define __IDiscFormat2DataEventArgs_INTERFACE_DEFINED__ + +/* interface IDiscFormat2DataEventArgs */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IDiscFormat2DataEventArgs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2735413D-7F64-5B0F-8F00-5D77AFBE261E") + IDiscFormat2DataEventArgs : public IWriteEngine2EventArgs + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ElapsedTime( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RemainingTime( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalTime( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentAction( + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_DATA_WRITE_ACTION *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscFormat2DataEventArgsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscFormat2DataEventArgs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscFormat2DataEventArgs * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDiscFormat2DataEventArgs * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_StartLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartLba )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_SectorCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SectorCount )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_LastReadLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastReadLba )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_LastWrittenLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastWrittenLba )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_TotalSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalSystemBuffer )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_UsedSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsedSystemBuffer )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_FreeSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeSystemBuffer )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2DataEventArgs, get_ElapsedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ElapsedTime )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2DataEventArgs, get_RemainingTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemainingTime )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2DataEventArgs, get_TotalTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalTime )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2DataEventArgs, get_CurrentAction) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentAction )( + __RPC__in IDiscFormat2DataEventArgs * This, + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_DATA_WRITE_ACTION *value); + + END_INTERFACE + } IDiscFormat2DataEventArgsVtbl; + + interface IDiscFormat2DataEventArgs + { + CONST_VTBL struct IDiscFormat2DataEventArgsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscFormat2DataEventArgs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscFormat2DataEventArgs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscFormat2DataEventArgs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscFormat2DataEventArgs_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDiscFormat2DataEventArgs_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDiscFormat2DataEventArgs_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDiscFormat2DataEventArgs_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDiscFormat2DataEventArgs_get_StartLba(This,value) \ + ( (This)->lpVtbl -> get_StartLba(This,value) ) + +#define IDiscFormat2DataEventArgs_get_SectorCount(This,value) \ + ( (This)->lpVtbl -> get_SectorCount(This,value) ) + +#define IDiscFormat2DataEventArgs_get_LastReadLba(This,value) \ + ( (This)->lpVtbl -> get_LastReadLba(This,value) ) + +#define IDiscFormat2DataEventArgs_get_LastWrittenLba(This,value) \ + ( (This)->lpVtbl -> get_LastWrittenLba(This,value) ) + +#define IDiscFormat2DataEventArgs_get_TotalSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_TotalSystemBuffer(This,value) ) + +#define IDiscFormat2DataEventArgs_get_UsedSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_UsedSystemBuffer(This,value) ) + +#define IDiscFormat2DataEventArgs_get_FreeSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_FreeSystemBuffer(This,value) ) + + +#define IDiscFormat2DataEventArgs_get_ElapsedTime(This,value) \ + ( (This)->lpVtbl -> get_ElapsedTime(This,value) ) + +#define IDiscFormat2DataEventArgs_get_RemainingTime(This,value) \ + ( (This)->lpVtbl -> get_RemainingTime(This,value) ) + +#define IDiscFormat2DataEventArgs_get_TotalTime(This,value) \ + ( (This)->lpVtbl -> get_TotalTime(This,value) ) + +#define IDiscFormat2DataEventArgs_get_CurrentAction(This,value) \ + ( (This)->lpVtbl -> get_CurrentAction(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscFormat2DataEventArgs_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0013 */ +/* [local] */ + +#define DISPID_IDISCFORMAT2TAO_RECORDER 0x100 +#define DISPID_IDISCFORMAT2TAO_BUFFERUNDERRUNFREEDISABLED 0x102 +#define DISPID_IDISCFORMAT2TAO_NUMBEROFEXISTINGTRACKS 0x103 +#define DISPID_IDISCFORMAT2TAO_TOTALSECTORSONMEDIA 0x104 +#define DISPID_IDISCFORMAT2TAO_FREESECTORSONMEDIA 0x105 +#define DISPID_IDISCFORMAT2TAO_USEDSECTORSONMEDIA 0x106 +#define DISPID_IDISCFORMAT2TAO_DONOTFINALIZEMEDIA 0x107 +#define DISPID_IDISCFORMAT2TAO_EXPECTEDTABLEOFCONTENTS 0x10A +#define DISPID_IDISCFORMAT2TAO_CURRENTMEDIATYPE 0x10B +#define DISPID_IDISCFORMAT2TAO_CLIENTNAME 0x10E +#define DISPID_IDISCFORMAT2TAO_REQUESTEDWRITESPEED 0x10F +#define DISPID_IDISCFORMAT2TAO_REQUESTEDROTATIONTYPEISPURECAV 0x110 +#define DISPID_IDISCFORMAT2TAO_CURRENTWRITESPEED 0x111 +#define DISPID_IDISCFORMAT2TAO_CURRENTROTATIONTYPEISPURECAV 0x112 +#define DISPID_IDISCFORMAT2TAO_SUPPORTEDWRITESPEEDS 0x113 +#define DISPID_IDISCFORMAT2TAO_SUPPORTEDWRITESPEEDDESCRIPTORS 0x114 +#define DISPID_IDISCFORMAT2TAO_PREPAREMEDIA 0x200 +#define DISPID_IDISCFORMAT2TAO_ADDAUDIOTRACK 0x201 +#define DISPID_IDISCFORMAT2TAO_CANCELADDTRACK 0x202 +#define DISPID_IDISCFORMAT2TAO_FINISHMEDIA 0x203 +#define DISPID_IDISCFORMAT2TAO_SETWRITESPEED 0x204 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0013_v0_0_s_ifspec; + +#ifndef __IDiscFormat2TrackAtOnce_INTERFACE_DEFINED__ +#define __IDiscFormat2TrackAtOnce_INTERFACE_DEFINED__ + +/* interface IDiscFormat2TrackAtOnce */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IDiscFormat2TrackAtOnce; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354154-8F64-5B0F-8F00-5D77AFBE261E") + IDiscFormat2TrackAtOnce : public IDiscFormat2 + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PrepareMedia( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddAudioTrack( + /* [in] */ __RPC__in_opt IStream *data) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CancelAddTrack( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReleaseMedia( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetWriteSpeed( + /* [in] */ LONG RequestedSectorsPerSecond, + /* [in] */ VARIANT_BOOL RotationTypeIsPureCAV) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Recorder( + /* [in] */ __RPC__in_opt IDiscRecorder2 *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Recorder( + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BufferUnderrunFreeDisabled( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BufferUnderrunFreeDisabled( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfExistingTracks( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalSectorsOnMedia( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FreeSectorsOnMedia( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UsedSectorsOnMedia( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DoNotFinalizeMedia( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DoNotFinalizeMedia( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExpectedTableOfContents( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPhysicalMediaType( + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_PHYSICAL_TYPE *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ClientName( + /* [in] */ __RPC__in BSTR value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ClientName( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RequestedWriteSpeed( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RequestedRotationTypeIsPureCAV( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentWriteSpeed( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentRotationTypeIsPureCAV( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedWriteSpeeds( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeeds) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedWriteSpeedDescriptors( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeedDescriptors) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscFormat2TrackAtOnceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscFormat2TrackAtOnce * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscFormat2TrackAtOnce * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDiscFormat2TrackAtOnce * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDiscFormat2, IsRecorderSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsRecorderSupported )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, IsCurrentMediaSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsCurrentMediaSupported )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_MediaPhysicallyBlank) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaPhysicallyBlank )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_MediaHeuristicallyBlank) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaHeuristicallyBlank )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_SupportedMediaTypes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedMediaTypes )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, PrepareMedia) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PrepareMedia )( + __RPC__in IDiscFormat2TrackAtOnce * This); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, AddAudioTrack) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddAudioTrack )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ __RPC__in_opt IStream *data); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, CancelAddTrack) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CancelAddTrack )( + __RPC__in IDiscFormat2TrackAtOnce * This); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, ReleaseMedia) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReleaseMedia )( + __RPC__in IDiscFormat2TrackAtOnce * This); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, SetWriteSpeed) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetWriteSpeed )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ LONG RequestedSectorsPerSecond, + /* [in] */ VARIANT_BOOL RotationTypeIsPureCAV); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, put_Recorder) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Recorder )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_Recorder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recorder )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, put_BufferUnderrunFreeDisabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BufferUnderrunFreeDisabled )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_BufferUnderrunFreeDisabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferUnderrunFreeDisabled )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_NumberOfExistingTracks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfExistingTracks )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_TotalSectorsOnMedia) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalSectorsOnMedia )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_FreeSectorsOnMedia) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeSectorsOnMedia )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_UsedSectorsOnMedia) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsedSectorsOnMedia )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, put_DoNotFinalizeMedia) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DoNotFinalizeMedia )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_DoNotFinalizeMedia) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DoNotFinalizeMedia )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_ExpectedTableOfContents) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExpectedTableOfContents )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_CurrentPhysicalMediaType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPhysicalMediaType )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_PHYSICAL_TYPE *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, put_ClientName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientName )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [in] */ __RPC__in BSTR value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_ClientName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientName )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_RequestedWriteSpeed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestedWriteSpeed )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_RequestedRotationTypeIsPureCAV) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestedRotationTypeIsPureCAV )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_CurrentWriteSpeed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentWriteSpeed )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_CurrentRotationTypeIsPureCAV) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentRotationTypeIsPureCAV )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_SupportedWriteSpeeds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedWriteSpeeds )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeeds); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnce, get_SupportedWriteSpeedDescriptors) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedWriteSpeedDescriptors )( + __RPC__in IDiscFormat2TrackAtOnce * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeedDescriptors); + + END_INTERFACE + } IDiscFormat2TrackAtOnceVtbl; + + interface IDiscFormat2TrackAtOnce + { + CONST_VTBL struct IDiscFormat2TrackAtOnceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscFormat2TrackAtOnce_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscFormat2TrackAtOnce_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscFormat2TrackAtOnce_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscFormat2TrackAtOnce_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDiscFormat2TrackAtOnce_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDiscFormat2TrackAtOnce_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDiscFormat2TrackAtOnce_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDiscFormat2TrackAtOnce_IsRecorderSupported(This,recorder,value) \ + ( (This)->lpVtbl -> IsRecorderSupported(This,recorder,value) ) + +#define IDiscFormat2TrackAtOnce_IsCurrentMediaSupported(This,recorder,value) \ + ( (This)->lpVtbl -> IsCurrentMediaSupported(This,recorder,value) ) + +#define IDiscFormat2TrackAtOnce_get_MediaPhysicallyBlank(This,value) \ + ( (This)->lpVtbl -> get_MediaPhysicallyBlank(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_MediaHeuristicallyBlank(This,value) \ + ( (This)->lpVtbl -> get_MediaHeuristicallyBlank(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_SupportedMediaTypes(This,value) \ + ( (This)->lpVtbl -> get_SupportedMediaTypes(This,value) ) + + +#define IDiscFormat2TrackAtOnce_PrepareMedia(This) \ + ( (This)->lpVtbl -> PrepareMedia(This) ) + +#define IDiscFormat2TrackAtOnce_AddAudioTrack(This,data) \ + ( (This)->lpVtbl -> AddAudioTrack(This,data) ) + +#define IDiscFormat2TrackAtOnce_CancelAddTrack(This) \ + ( (This)->lpVtbl -> CancelAddTrack(This) ) + +#define IDiscFormat2TrackAtOnce_ReleaseMedia(This) \ + ( (This)->lpVtbl -> ReleaseMedia(This) ) + +#define IDiscFormat2TrackAtOnce_SetWriteSpeed(This,RequestedSectorsPerSecond,RotationTypeIsPureCAV) \ + ( (This)->lpVtbl -> SetWriteSpeed(This,RequestedSectorsPerSecond,RotationTypeIsPureCAV) ) + +#define IDiscFormat2TrackAtOnce_put_Recorder(This,value) \ + ( (This)->lpVtbl -> put_Recorder(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_Recorder(This,value) \ + ( (This)->lpVtbl -> get_Recorder(This,value) ) + +#define IDiscFormat2TrackAtOnce_put_BufferUnderrunFreeDisabled(This,value) \ + ( (This)->lpVtbl -> put_BufferUnderrunFreeDisabled(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_BufferUnderrunFreeDisabled(This,value) \ + ( (This)->lpVtbl -> get_BufferUnderrunFreeDisabled(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_NumberOfExistingTracks(This,value) \ + ( (This)->lpVtbl -> get_NumberOfExistingTracks(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_TotalSectorsOnMedia(This,value) \ + ( (This)->lpVtbl -> get_TotalSectorsOnMedia(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_FreeSectorsOnMedia(This,value) \ + ( (This)->lpVtbl -> get_FreeSectorsOnMedia(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_UsedSectorsOnMedia(This,value) \ + ( (This)->lpVtbl -> get_UsedSectorsOnMedia(This,value) ) + +#define IDiscFormat2TrackAtOnce_put_DoNotFinalizeMedia(This,value) \ + ( (This)->lpVtbl -> put_DoNotFinalizeMedia(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_DoNotFinalizeMedia(This,value) \ + ( (This)->lpVtbl -> get_DoNotFinalizeMedia(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_ExpectedTableOfContents(This,value) \ + ( (This)->lpVtbl -> get_ExpectedTableOfContents(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_CurrentPhysicalMediaType(This,value) \ + ( (This)->lpVtbl -> get_CurrentPhysicalMediaType(This,value) ) + +#define IDiscFormat2TrackAtOnce_put_ClientName(This,value) \ + ( (This)->lpVtbl -> put_ClientName(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_ClientName(This,value) \ + ( (This)->lpVtbl -> get_ClientName(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_RequestedWriteSpeed(This,value) \ + ( (This)->lpVtbl -> get_RequestedWriteSpeed(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_RequestedRotationTypeIsPureCAV(This,value) \ + ( (This)->lpVtbl -> get_RequestedRotationTypeIsPureCAV(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_CurrentWriteSpeed(This,value) \ + ( (This)->lpVtbl -> get_CurrentWriteSpeed(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_CurrentRotationTypeIsPureCAV(This,value) \ + ( (This)->lpVtbl -> get_CurrentRotationTypeIsPureCAV(This,value) ) + +#define IDiscFormat2TrackAtOnce_get_SupportedWriteSpeeds(This,supportedSpeeds) \ + ( (This)->lpVtbl -> get_SupportedWriteSpeeds(This,supportedSpeeds) ) + +#define IDiscFormat2TrackAtOnce_get_SupportedWriteSpeedDescriptors(This,supportedSpeedDescriptors) \ + ( (This)->lpVtbl -> get_SupportedWriteSpeedDescriptors(This,supportedSpeedDescriptors) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscFormat2TrackAtOnce_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0014 */ +/* [local] */ + +#define DISPID_DDISCFORMAT2TAOEVENTS_UPDATE 0x200 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0014_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0014_v0_0_s_ifspec; + +#ifndef __DDiscFormat2TrackAtOnceEvents_INTERFACE_DEFINED__ +#define __DDiscFormat2TrackAtOnceEvents_INTERFACE_DEFINED__ + +/* interface DDiscFormat2TrackAtOnceEvents */ +/* [helpstring][unique][uuid][oleautomation][nonextensible][object] */ + + +EXTERN_C const IID IID_DDiscFormat2TrackAtOnceEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2735413F-7F64-5B0F-8F00-5D77AFBE261E") + DDiscFormat2TrackAtOnceEvents : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Update( + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in_opt IDispatch *progress) = 0; + + }; + + +#else /* C style interface */ + + typedef struct DDiscFormat2TrackAtOnceEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DDiscFormat2TrackAtOnceEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DDiscFormat2TrackAtOnceEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DDiscFormat2TrackAtOnceEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DDiscFormat2TrackAtOnceEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DDiscFormat2TrackAtOnceEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DDiscFormat2TrackAtOnceEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DDiscFormat2TrackAtOnceEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(DDiscFormat2TrackAtOnceEvents, Update) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in DDiscFormat2TrackAtOnceEvents * This, + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in_opt IDispatch *progress); + + END_INTERFACE + } DDiscFormat2TrackAtOnceEventsVtbl; + + interface DDiscFormat2TrackAtOnceEvents + { + CONST_VTBL struct DDiscFormat2TrackAtOnceEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DDiscFormat2TrackAtOnceEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DDiscFormat2TrackAtOnceEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DDiscFormat2TrackAtOnceEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DDiscFormat2TrackAtOnceEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DDiscFormat2TrackAtOnceEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DDiscFormat2TrackAtOnceEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DDiscFormat2TrackAtOnceEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define DDiscFormat2TrackAtOnceEvents_Update(This,object,progress) \ + ( (This)->lpVtbl -> Update(This,object,progress) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DDiscFormat2TrackAtOnceEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0015 */ +/* [local] */ + +#define DISPID_IDISCFORMAT2TAOEVENTARGS_CURRENTTRACKNUMBER 0x300 +#define DISPID_IDISCFORMAT2TAOEVENTARGS_CURRENTACTION 0x301 +#define DISPID_IDISCFORMAT2TAOEVENTARGS_ELAPSEDTIME 0x302 +#define DISPID_IDISCFORMAT2TAOEVENTARGS_ESTIMATEDREMAININGTIME 0x303 +#define DISPID_IDISCFORMAT2TAOEVENTARGS_ESTIMATEDTOTALTIME 0x304 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0015_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0015_v0_0_s_ifspec; + +#ifndef __IDiscFormat2TrackAtOnceEventArgs_INTERFACE_DEFINED__ +#define __IDiscFormat2TrackAtOnceEventArgs_INTERFACE_DEFINED__ + +/* interface IDiscFormat2TrackAtOnceEventArgs */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IDiscFormat2TrackAtOnceEventArgs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354140-7F64-5B0F-8F00-5D77AFBE261E") + IDiscFormat2TrackAtOnceEventArgs : public IWriteEngine2EventArgs + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentTrackNumber( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentAction( + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_TAO_WRITE_ACTION *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ElapsedTime( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RemainingTime( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscFormat2TrackAtOnceEventArgsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDiscFormat2TrackAtOnceEventArgs * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_StartLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartLba )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_SectorCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SectorCount )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_LastReadLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastReadLba )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_LastWrittenLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastWrittenLba )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_TotalSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalSystemBuffer )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_UsedSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsedSystemBuffer )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_FreeSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeSystemBuffer )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnceEventArgs, get_CurrentTrackNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentTrackNumber )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnceEventArgs, get_CurrentAction) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentAction )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_TAO_WRITE_ACTION *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnceEventArgs, get_ElapsedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ElapsedTime )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2TrackAtOnceEventArgs, get_RemainingTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemainingTime )( + __RPC__in IDiscFormat2TrackAtOnceEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + END_INTERFACE + } IDiscFormat2TrackAtOnceEventArgsVtbl; + + interface IDiscFormat2TrackAtOnceEventArgs + { + CONST_VTBL struct IDiscFormat2TrackAtOnceEventArgsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscFormat2TrackAtOnceEventArgs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscFormat2TrackAtOnceEventArgs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscFormat2TrackAtOnceEventArgs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscFormat2TrackAtOnceEventArgs_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDiscFormat2TrackAtOnceEventArgs_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDiscFormat2TrackAtOnceEventArgs_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDiscFormat2TrackAtOnceEventArgs_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDiscFormat2TrackAtOnceEventArgs_get_StartLba(This,value) \ + ( (This)->lpVtbl -> get_StartLba(This,value) ) + +#define IDiscFormat2TrackAtOnceEventArgs_get_SectorCount(This,value) \ + ( (This)->lpVtbl -> get_SectorCount(This,value) ) + +#define IDiscFormat2TrackAtOnceEventArgs_get_LastReadLba(This,value) \ + ( (This)->lpVtbl -> get_LastReadLba(This,value) ) + +#define IDiscFormat2TrackAtOnceEventArgs_get_LastWrittenLba(This,value) \ + ( (This)->lpVtbl -> get_LastWrittenLba(This,value) ) + +#define IDiscFormat2TrackAtOnceEventArgs_get_TotalSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_TotalSystemBuffer(This,value) ) + +#define IDiscFormat2TrackAtOnceEventArgs_get_UsedSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_UsedSystemBuffer(This,value) ) + +#define IDiscFormat2TrackAtOnceEventArgs_get_FreeSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_FreeSystemBuffer(This,value) ) + + +#define IDiscFormat2TrackAtOnceEventArgs_get_CurrentTrackNumber(This,value) \ + ( (This)->lpVtbl -> get_CurrentTrackNumber(This,value) ) + +#define IDiscFormat2TrackAtOnceEventArgs_get_CurrentAction(This,value) \ + ( (This)->lpVtbl -> get_CurrentAction(This,value) ) + +#define IDiscFormat2TrackAtOnceEventArgs_get_ElapsedTime(This,value) \ + ( (This)->lpVtbl -> get_ElapsedTime(This,value) ) + +#define IDiscFormat2TrackAtOnceEventArgs_get_RemainingTime(This,value) \ + ( (This)->lpVtbl -> get_RemainingTime(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscFormat2TrackAtOnceEventArgs_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0016 */ +/* [local] */ + +#define DISPID_IDISCFORMAT2RAWCD_RECORDER 0x100 +#define DISPID_IDISCFORMAT2RAWCD_BUFFERUNDERRUNFREEDISABLED 0x102 +#define DISPID_IDISCFORMAT2RAWCD_STARTOFNEXTSESSION 0x103 +#define DISPID_IDISCFORMAT2RAWCD_LASTPOSSIBLESTARTOFLEADOUT 0x104 +#define DISPID_IDISCFORMAT2RAWCD_CURRENTMEDIATYPE 0x105 +#define DISPID_IDISCFORMAT2RAWCD_SUPPORTEDDATASECTORTYPES 0x108 +#define DISPID_IDISCFORMAT2RAWCD_REQUESTEDDATASECTORTYPE 0x109 +#define DISPID_IDISCFORMAT2RAWCD_CLIENTNAME 0x10A +#define DISPID_IDISCFORMAT2RAWCD_REQUESTEDWRITESPEED 0x10B +#define DISPID_IDISCFORMAT2RAWCD_REQUESTEDROTATIONTYPEISPURECAV 0x10C +#define DISPID_IDISCFORMAT2RAWCD_CURRENTWRITESPEED 0x10D +#define DISPID_IDISCFORMAT2RAWCD_CURRENTROTATIONTYPEISPURECAV 0x10E +#define DISPID_IDISCFORMAT2RAWCD_SUPPORTEDWRITESPEEDS 0x10F +#define DISPID_IDISCFORMAT2RAWCD_SUPPORTEDWRITESPEEDDESCRIPTORS 0x110 +#define DISPID_IDISCFORMAT2RAWCD_PREPAREMEDIA 0x200 +#define DISPID_IDISCFORMAT2RAWCD_WRITEMEDIA 0x201 +#define DISPID_IDISCFORMAT2RAWCD_WRITEMEDIAWITHVALIDATION 0x202 +#define DISPID_IDISCFORMAT2RAWCD_CANCELWRITE 0x203 +#define DISPID_IDISCFORMAT2RAWCD_RELEASEMEDIA 0x204 +#define DISPID_IDISCFORMAT2RAWCD_SETWRITESPEED 0x205 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0016_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0016_v0_0_s_ifspec; + +#ifndef __IDiscFormat2RawCD_INTERFACE_DEFINED__ +#define __IDiscFormat2RawCD_INTERFACE_DEFINED__ + +/* interface IDiscFormat2RawCD */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IDiscFormat2RawCD; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354155-8F64-5B0F-8F00-5D77AFBE261E") + IDiscFormat2RawCD : public IDiscFormat2 + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE PrepareMedia( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteMedia( + /* [in] */ __RPC__in_opt IStream *data) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteMedia2( + /* [in] */ __RPC__in_opt IStream *data, + /* [in] */ LONG streamLeadInSectors) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CancelWrite( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReleaseMedia( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetWriteSpeed( + /* [in] */ LONG RequestedSectorsPerSecond, + /* [in] */ VARIANT_BOOL RotationTypeIsPureCAV) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Recorder( + /* [in] */ __RPC__in_opt IDiscRecorder2 *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Recorder( + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BufferUnderrunFreeDisabled( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BufferUnderrunFreeDisabled( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartOfNextSession( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastPossibleStartOfLeadout( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentPhysicalMediaType( + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_PHYSICAL_TYPE *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedSectorTypes( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_RequestedSectorType( + /* [in] */ IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RequestedSectorType( + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ClientName( + /* [in] */ __RPC__in BSTR value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ClientName( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RequestedWriteSpeed( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RequestedRotationTypeIsPureCAV( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentWriteSpeed( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentRotationTypeIsPureCAV( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedWriteSpeeds( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeeds) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SupportedWriteSpeedDescriptors( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeedDescriptors) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscFormat2RawCDVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscFormat2RawCD * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscFormat2RawCD * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDiscFormat2RawCD * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDiscFormat2RawCD * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDiscFormat2, IsRecorderSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsRecorderSupported )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, IsCurrentMediaSupported) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IsCurrentMediaSupported )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *recorder, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_MediaPhysicallyBlank) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaPhysicallyBlank )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_MediaHeuristicallyBlank) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaHeuristicallyBlank )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2, get_SupportedMediaTypes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedMediaTypes )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, PrepareMedia) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *PrepareMedia )( + __RPC__in IDiscFormat2RawCD * This); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, WriteMedia) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteMedia )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ __RPC__in_opt IStream *data); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, WriteMedia2) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteMedia2 )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ __RPC__in_opt IStream *data, + /* [in] */ LONG streamLeadInSectors); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, CancelWrite) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CancelWrite )( + __RPC__in IDiscFormat2RawCD * This); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, ReleaseMedia) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReleaseMedia )( + __RPC__in IDiscFormat2RawCD * This); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, SetWriteSpeed) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetWriteSpeed )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ LONG RequestedSectorsPerSecond, + /* [in] */ VARIANT_BOOL RotationTypeIsPureCAV); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, put_Recorder) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Recorder )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_Recorder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Recorder )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, put_BufferUnderrunFreeDisabled) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BufferUnderrunFreeDisabled )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_BufferUnderrunFreeDisabled) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BufferUnderrunFreeDisabled )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_StartOfNextSession) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartOfNextSession )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_LastPossibleStartOfLeadout) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastPossibleStartOfLeadout )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_CurrentPhysicalMediaType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentPhysicalMediaType )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_PHYSICAL_TYPE *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_SupportedSectorTypes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedSectorTypes )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, put_RequestedSectorType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_RequestedSectorType )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_RequestedSectorType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestedSectorType )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, put_ClientName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ClientName )( + __RPC__in IDiscFormat2RawCD * This, + /* [in] */ __RPC__in BSTR value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_ClientName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ClientName )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_RequestedWriteSpeed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestedWriteSpeed )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_RequestedRotationTypeIsPureCAV) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RequestedRotationTypeIsPureCAV )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_CurrentWriteSpeed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentWriteSpeed )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_CurrentRotationTypeIsPureCAV) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentRotationTypeIsPureCAV )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_SupportedWriteSpeeds) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedWriteSpeeds )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeeds); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCD, get_SupportedWriteSpeedDescriptors) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SupportedWriteSpeedDescriptors )( + __RPC__in IDiscFormat2RawCD * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *supportedSpeedDescriptors); + + END_INTERFACE + } IDiscFormat2RawCDVtbl; + + interface IDiscFormat2RawCD + { + CONST_VTBL struct IDiscFormat2RawCDVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscFormat2RawCD_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscFormat2RawCD_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscFormat2RawCD_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscFormat2RawCD_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDiscFormat2RawCD_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDiscFormat2RawCD_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDiscFormat2RawCD_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDiscFormat2RawCD_IsRecorderSupported(This,recorder,value) \ + ( (This)->lpVtbl -> IsRecorderSupported(This,recorder,value) ) + +#define IDiscFormat2RawCD_IsCurrentMediaSupported(This,recorder,value) \ + ( (This)->lpVtbl -> IsCurrentMediaSupported(This,recorder,value) ) + +#define IDiscFormat2RawCD_get_MediaPhysicallyBlank(This,value) \ + ( (This)->lpVtbl -> get_MediaPhysicallyBlank(This,value) ) + +#define IDiscFormat2RawCD_get_MediaHeuristicallyBlank(This,value) \ + ( (This)->lpVtbl -> get_MediaHeuristicallyBlank(This,value) ) + +#define IDiscFormat2RawCD_get_SupportedMediaTypes(This,value) \ + ( (This)->lpVtbl -> get_SupportedMediaTypes(This,value) ) + + +#define IDiscFormat2RawCD_PrepareMedia(This) \ + ( (This)->lpVtbl -> PrepareMedia(This) ) + +#define IDiscFormat2RawCD_WriteMedia(This,data) \ + ( (This)->lpVtbl -> WriteMedia(This,data) ) + +#define IDiscFormat2RawCD_WriteMedia2(This,data,streamLeadInSectors) \ + ( (This)->lpVtbl -> WriteMedia2(This,data,streamLeadInSectors) ) + +#define IDiscFormat2RawCD_CancelWrite(This) \ + ( (This)->lpVtbl -> CancelWrite(This) ) + +#define IDiscFormat2RawCD_ReleaseMedia(This) \ + ( (This)->lpVtbl -> ReleaseMedia(This) ) + +#define IDiscFormat2RawCD_SetWriteSpeed(This,RequestedSectorsPerSecond,RotationTypeIsPureCAV) \ + ( (This)->lpVtbl -> SetWriteSpeed(This,RequestedSectorsPerSecond,RotationTypeIsPureCAV) ) + +#define IDiscFormat2RawCD_put_Recorder(This,value) \ + ( (This)->lpVtbl -> put_Recorder(This,value) ) + +#define IDiscFormat2RawCD_get_Recorder(This,value) \ + ( (This)->lpVtbl -> get_Recorder(This,value) ) + +#define IDiscFormat2RawCD_put_BufferUnderrunFreeDisabled(This,value) \ + ( (This)->lpVtbl -> put_BufferUnderrunFreeDisabled(This,value) ) + +#define IDiscFormat2RawCD_get_BufferUnderrunFreeDisabled(This,value) \ + ( (This)->lpVtbl -> get_BufferUnderrunFreeDisabled(This,value) ) + +#define IDiscFormat2RawCD_get_StartOfNextSession(This,value) \ + ( (This)->lpVtbl -> get_StartOfNextSession(This,value) ) + +#define IDiscFormat2RawCD_get_LastPossibleStartOfLeadout(This,value) \ + ( (This)->lpVtbl -> get_LastPossibleStartOfLeadout(This,value) ) + +#define IDiscFormat2RawCD_get_CurrentPhysicalMediaType(This,value) \ + ( (This)->lpVtbl -> get_CurrentPhysicalMediaType(This,value) ) + +#define IDiscFormat2RawCD_get_SupportedSectorTypes(This,value) \ + ( (This)->lpVtbl -> get_SupportedSectorTypes(This,value) ) + +#define IDiscFormat2RawCD_put_RequestedSectorType(This,value) \ + ( (This)->lpVtbl -> put_RequestedSectorType(This,value) ) + +#define IDiscFormat2RawCD_get_RequestedSectorType(This,value) \ + ( (This)->lpVtbl -> get_RequestedSectorType(This,value) ) + +#define IDiscFormat2RawCD_put_ClientName(This,value) \ + ( (This)->lpVtbl -> put_ClientName(This,value) ) + +#define IDiscFormat2RawCD_get_ClientName(This,value) \ + ( (This)->lpVtbl -> get_ClientName(This,value) ) + +#define IDiscFormat2RawCD_get_RequestedWriteSpeed(This,value) \ + ( (This)->lpVtbl -> get_RequestedWriteSpeed(This,value) ) + +#define IDiscFormat2RawCD_get_RequestedRotationTypeIsPureCAV(This,value) \ + ( (This)->lpVtbl -> get_RequestedRotationTypeIsPureCAV(This,value) ) + +#define IDiscFormat2RawCD_get_CurrentWriteSpeed(This,value) \ + ( (This)->lpVtbl -> get_CurrentWriteSpeed(This,value) ) + +#define IDiscFormat2RawCD_get_CurrentRotationTypeIsPureCAV(This,value) \ + ( (This)->lpVtbl -> get_CurrentRotationTypeIsPureCAV(This,value) ) + +#define IDiscFormat2RawCD_get_SupportedWriteSpeeds(This,supportedSpeeds) \ + ( (This)->lpVtbl -> get_SupportedWriteSpeeds(This,supportedSpeeds) ) + +#define IDiscFormat2RawCD_get_SupportedWriteSpeedDescriptors(This,supportedSpeedDescriptors) \ + ( (This)->lpVtbl -> get_SupportedWriteSpeedDescriptors(This,supportedSpeedDescriptors) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscFormat2RawCD_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0017 */ +/* [local] */ + +#define DISPID_DDISCFORMAT2RAWCDEVENTS_UPDATE 0x200 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0017_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0017_v0_0_s_ifspec; + +#ifndef __DDiscFormat2RawCDEvents_INTERFACE_DEFINED__ +#define __DDiscFormat2RawCDEvents_INTERFACE_DEFINED__ + +/* interface DDiscFormat2RawCDEvents */ +/* [helpstring][unique][uuid][oleautomation][nonextensible][object] */ + + +EXTERN_C const IID IID_DDiscFormat2RawCDEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354142-7F64-5B0F-8F00-5D77AFBE261E") + DDiscFormat2RawCDEvents : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Update( + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in_opt IDispatch *progress) = 0; + + }; + + +#else /* C style interface */ + + typedef struct DDiscFormat2RawCDEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DDiscFormat2RawCDEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DDiscFormat2RawCDEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DDiscFormat2RawCDEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DDiscFormat2RawCDEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DDiscFormat2RawCDEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DDiscFormat2RawCDEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DDiscFormat2RawCDEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(DDiscFormat2RawCDEvents, Update) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in DDiscFormat2RawCDEvents * This, + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in_opt IDispatch *progress); + + END_INTERFACE + } DDiscFormat2RawCDEventsVtbl; + + interface DDiscFormat2RawCDEvents + { + CONST_VTBL struct DDiscFormat2RawCDEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DDiscFormat2RawCDEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DDiscFormat2RawCDEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DDiscFormat2RawCDEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DDiscFormat2RawCDEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DDiscFormat2RawCDEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DDiscFormat2RawCDEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DDiscFormat2RawCDEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define DDiscFormat2RawCDEvents_Update(This,object,progress) \ + ( (This)->lpVtbl -> Update(This,object,progress) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DDiscFormat2RawCDEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0018 */ +/* [local] */ + +#define DISPID_IDISCFORMAT2RAWCDEVENTARGS_CURRENTTRACKNUMBER 0x300 +#define DISPID_IDISCFORMAT2RAWCDEVENTARGS_CURRENTACTION 0x301 +#define DISPID_IDISCFORMAT2RAWCDEVENTARGS_ELAPSEDTIME 0x300 +#define DISPID_IDISCFORMAT2RAWCDEVENTARGS_ESTIMATEDREMAININGTIME 0x301 +#define DISPID_IDISCFORMAT2RAWCDEVENTARGS_ESTIMATEDTOTALTIME 0x302 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0018_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0018_v0_0_s_ifspec; + +#ifndef __IDiscFormat2RawCDEventArgs_INTERFACE_DEFINED__ +#define __IDiscFormat2RawCDEventArgs_INTERFACE_DEFINED__ + +/* interface IDiscFormat2RawCDEventArgs */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IDiscFormat2RawCDEventArgs; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354143-7F64-5B0F-8F00-5D77AFBE261E") + IDiscFormat2RawCDEventArgs : public IWriteEngine2EventArgs + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentAction( + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_RAW_CD_WRITE_ACTION *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ElapsedTime( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RemainingTime( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDiscFormat2RawCDEventArgsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDiscFormat2RawCDEventArgs * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDiscFormat2RawCDEventArgs * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDiscFormat2RawCDEventArgs * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_StartLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartLba )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_SectorCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SectorCount )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_LastReadLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastReadLba )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_LastWrittenLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastWrittenLba )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_TotalSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalSystemBuffer )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_UsedSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsedSystemBuffer )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IWriteEngine2EventArgs, get_FreeSystemBuffer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeSystemBuffer )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCDEventArgs, get_CurrentAction) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentAction )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_RAW_CD_WRITE_ACTION *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCDEventArgs, get_ElapsedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ElapsedTime )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IDiscFormat2RawCDEventArgs, get_RemainingTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemainingTime )( + __RPC__in IDiscFormat2RawCDEventArgs * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + END_INTERFACE + } IDiscFormat2RawCDEventArgsVtbl; + + interface IDiscFormat2RawCDEventArgs + { + CONST_VTBL struct IDiscFormat2RawCDEventArgsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDiscFormat2RawCDEventArgs_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDiscFormat2RawCDEventArgs_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDiscFormat2RawCDEventArgs_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDiscFormat2RawCDEventArgs_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDiscFormat2RawCDEventArgs_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDiscFormat2RawCDEventArgs_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDiscFormat2RawCDEventArgs_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDiscFormat2RawCDEventArgs_get_StartLba(This,value) \ + ( (This)->lpVtbl -> get_StartLba(This,value) ) + +#define IDiscFormat2RawCDEventArgs_get_SectorCount(This,value) \ + ( (This)->lpVtbl -> get_SectorCount(This,value) ) + +#define IDiscFormat2RawCDEventArgs_get_LastReadLba(This,value) \ + ( (This)->lpVtbl -> get_LastReadLba(This,value) ) + +#define IDiscFormat2RawCDEventArgs_get_LastWrittenLba(This,value) \ + ( (This)->lpVtbl -> get_LastWrittenLba(This,value) ) + +#define IDiscFormat2RawCDEventArgs_get_TotalSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_TotalSystemBuffer(This,value) ) + +#define IDiscFormat2RawCDEventArgs_get_UsedSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_UsedSystemBuffer(This,value) ) + +#define IDiscFormat2RawCDEventArgs_get_FreeSystemBuffer(This,value) \ + ( (This)->lpVtbl -> get_FreeSystemBuffer(This,value) ) + + +#define IDiscFormat2RawCDEventArgs_get_CurrentAction(This,value) \ + ( (This)->lpVtbl -> get_CurrentAction(This,value) ) + +#define IDiscFormat2RawCDEventArgs_get_ElapsedTime(This,value) \ + ( (This)->lpVtbl -> get_ElapsedTime(This,value) ) + +#define IDiscFormat2RawCDEventArgs_get_RemainingTime(This,value) \ + ( (This)->lpVtbl -> get_RemainingTime(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDiscFormat2RawCDEventArgs_INTERFACE_DEFINED__ */ + + +#ifndef __IBurnVerification_INTERFACE_DEFINED__ +#define __IBurnVerification_INTERFACE_DEFINED__ + +/* interface IBurnVerification */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IBurnVerification; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D2FFD834-958B-426d-8470-2A13879C6A91") + IBurnVerification : public IUnknown + { + public: + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BurnVerificationLevel( + /* [in] */ IMAPI_BURN_VERIFICATION_LEVEL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BurnVerificationLevel( + /* [retval][ref][out] */ __RPC__out IMAPI_BURN_VERIFICATION_LEVEL *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBurnVerificationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBurnVerification * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBurnVerification * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBurnVerification * This); + + DECLSPEC_XFGVIRT(IBurnVerification, put_BurnVerificationLevel) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BurnVerificationLevel )( + __RPC__in IBurnVerification * This, + /* [in] */ IMAPI_BURN_VERIFICATION_LEVEL value); + + DECLSPEC_XFGVIRT(IBurnVerification, get_BurnVerificationLevel) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BurnVerificationLevel )( + __RPC__in IBurnVerification * This, + /* [retval][ref][out] */ __RPC__out IMAPI_BURN_VERIFICATION_LEVEL *value); + + END_INTERFACE + } IBurnVerificationVtbl; + + interface IBurnVerification + { + CONST_VTBL struct IBurnVerificationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBurnVerification_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBurnVerification_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBurnVerification_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBurnVerification_put_BurnVerificationLevel(This,value) \ + ( (This)->lpVtbl -> put_BurnVerificationLevel(This,value) ) + +#define IBurnVerification_get_BurnVerificationLevel(This,value) \ + ( (This)->lpVtbl -> get_BurnVerificationLevel(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBurnVerification_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0020 */ +/* [local] */ + +#define IMAPI_SECTORS_PER_SECOND_AT_1X_CD 75 +#define IMAPI_SECTORS_PER_SECOND_AT_1X_DVD 680 +#define IMAPI_SECTORS_PER_SECOND_AT_1X_BD 2195 +#define IMAPI_SECTORS_PER_SECOND_AT_1X_HD_DVD 4568 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0020_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0020_v0_0_s_ifspec; + +#ifndef __IWriteSpeedDescriptor_INTERFACE_DEFINED__ +#define __IWriteSpeedDescriptor_INTERFACE_DEFINED__ + +/* interface IWriteSpeedDescriptor */ +/* [helpstring][unique][uuid][dual][object] */ + + +EXTERN_C const IID IID_IWriteSpeedDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354144-7F64-5B0F-8F00-5D77AFBE261E") + IWriteSpeedDescriptor : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaType( + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_PHYSICAL_TYPE *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RotationTypeIsPureCAV( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WriteSpeed( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWriteSpeedDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWriteSpeedDescriptor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWriteSpeedDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWriteSpeedDescriptor * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWriteSpeedDescriptor * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWriteSpeedDescriptor * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWriteSpeedDescriptor * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWriteSpeedDescriptor * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWriteSpeedDescriptor, get_MediaType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaType )( + __RPC__in IWriteSpeedDescriptor * This, + /* [retval][ref][out] */ __RPC__out IMAPI_MEDIA_PHYSICAL_TYPE *value); + + DECLSPEC_XFGVIRT(IWriteSpeedDescriptor, get_RotationTypeIsPureCAV) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RotationTypeIsPureCAV )( + __RPC__in IWriteSpeedDescriptor * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IWriteSpeedDescriptor, get_WriteSpeed) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WriteSpeed )( + __RPC__in IWriteSpeedDescriptor * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + END_INTERFACE + } IWriteSpeedDescriptorVtbl; + + interface IWriteSpeedDescriptor + { + CONST_VTBL struct IWriteSpeedDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWriteSpeedDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWriteSpeedDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWriteSpeedDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWriteSpeedDescriptor_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWriteSpeedDescriptor_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWriteSpeedDescriptor_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWriteSpeedDescriptor_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWriteSpeedDescriptor_get_MediaType(This,value) \ + ( (This)->lpVtbl -> get_MediaType(This,value) ) + +#define IWriteSpeedDescriptor_get_RotationTypeIsPureCAV(This,value) \ + ( (This)->lpVtbl -> get_RotationTypeIsPureCAV(This,value) ) + +#define IWriteSpeedDescriptor_get_WriteSpeed(This,value) \ + ( (This)->lpVtbl -> get_WriteSpeed(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWriteSpeedDescriptor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0021 */ +/* [local] */ + +#define DISPID_IMULTISESSION_SUPPORTEDONCURRENTMEDIA 0x100 +#define DISPID_IMULTISESSION_INUSE 0x101 +#define DISPID_IMULTISESSION_IMPORTRECORDER 0x102 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0021_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0021_v0_0_s_ifspec; + +#ifndef __IMultisession_INTERFACE_DEFINED__ +#define __IMultisession_INTERFACE_DEFINED__ + +/* interface IMultisession */ +/* [helpstring][unique][uuid][dual][object] */ + + +EXTERN_C const IID IID_IMultisession; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354150-7F64-5B0F-8F00-5D77AFBE261E") + IMultisession : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsSupportedOnCurrentMediaState( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_InUse( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_InUse( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ImportRecorder( + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMultisessionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMultisession * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMultisession * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMultisession * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMultisession * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMultisession * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMultisession * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMultisession * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMultisession, get_IsSupportedOnCurrentMediaState) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsSupportedOnCurrentMediaState )( + __RPC__in IMultisession * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IMultisession, put_InUse) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InUse )( + __RPC__in IMultisession * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IMultisession, get_InUse) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InUse )( + __RPC__in IMultisession * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IMultisession, get_ImportRecorder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImportRecorder )( + __RPC__in IMultisession * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value); + + END_INTERFACE + } IMultisessionVtbl; + + interface IMultisession + { + CONST_VTBL struct IMultisessionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMultisession_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMultisession_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMultisession_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMultisession_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMultisession_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMultisession_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMultisession_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMultisession_get_IsSupportedOnCurrentMediaState(This,value) \ + ( (This)->lpVtbl -> get_IsSupportedOnCurrentMediaState(This,value) ) + +#define IMultisession_put_InUse(This,value) \ + ( (This)->lpVtbl -> put_InUse(This,value) ) + +#define IMultisession_get_InUse(This,value) \ + ( (This)->lpVtbl -> get_InUse(This,value) ) + +#define IMultisession_get_ImportRecorder(This,value) \ + ( (This)->lpVtbl -> get_ImportRecorder(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMultisession_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0022 */ +/* [local] */ + +#define DISPID_IMULTISESSION_FIRSTDATASESSION 0x200 +#define DISPID_IMULTISESSION_STARTSECTOROFPREVIOUSSESSION 0x201 +#define DISPID_IMULTISESSION_LASTSECTOROFPREVIOUSSESSION 0x202 +#define DISPID_IMULTISESSION_NEXTWRITABLEADDRESS 0x203 +#define DISPID_IMULTISESSION_FREESECTORS 0x204 +#define DISPID_IMULTISESSION_WRITEUNITSIZE 0x205 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0022_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0022_v0_0_s_ifspec; + +#ifndef __IMultisessionSequential_INTERFACE_DEFINED__ +#define __IMultisessionSequential_INTERFACE_DEFINED__ + +/* interface IMultisessionSequential */ +/* [helpstring][unique][uuid][dual][object] */ + + +EXTERN_C const IID IID_IMultisessionSequential; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354151-7F64-5B0F-8F00-5D77AFBE261E") + IMultisessionSequential : public IMultisession + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsFirstDataSession( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartAddressOfPreviousSession( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastWrittenAddressOfPreviousSession( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NextWritableAddress( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FreeSectorsOnMedia( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMultisessionSequentialVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMultisessionSequential * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMultisessionSequential * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMultisessionSequential * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMultisessionSequential * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMultisessionSequential * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMultisessionSequential * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMultisessionSequential * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMultisession, get_IsSupportedOnCurrentMediaState) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsSupportedOnCurrentMediaState )( + __RPC__in IMultisessionSequential * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IMultisession, put_InUse) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InUse )( + __RPC__in IMultisessionSequential * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IMultisession, get_InUse) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InUse )( + __RPC__in IMultisessionSequential * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IMultisession, get_ImportRecorder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImportRecorder )( + __RPC__in IMultisessionSequential * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value); + + DECLSPEC_XFGVIRT(IMultisessionSequential, get_IsFirstDataSession) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsFirstDataSession )( + __RPC__in IMultisessionSequential * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IMultisessionSequential, get_StartAddressOfPreviousSession) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartAddressOfPreviousSession )( + __RPC__in IMultisessionSequential * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IMultisessionSequential, get_LastWrittenAddressOfPreviousSession) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastWrittenAddressOfPreviousSession )( + __RPC__in IMultisessionSequential * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IMultisessionSequential, get_NextWritableAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NextWritableAddress )( + __RPC__in IMultisessionSequential * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IMultisessionSequential, get_FreeSectorsOnMedia) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeSectorsOnMedia )( + __RPC__in IMultisessionSequential * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + END_INTERFACE + } IMultisessionSequentialVtbl; + + interface IMultisessionSequential + { + CONST_VTBL struct IMultisessionSequentialVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMultisessionSequential_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMultisessionSequential_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMultisessionSequential_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMultisessionSequential_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMultisessionSequential_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMultisessionSequential_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMultisessionSequential_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMultisessionSequential_get_IsSupportedOnCurrentMediaState(This,value) \ + ( (This)->lpVtbl -> get_IsSupportedOnCurrentMediaState(This,value) ) + +#define IMultisessionSequential_put_InUse(This,value) \ + ( (This)->lpVtbl -> put_InUse(This,value) ) + +#define IMultisessionSequential_get_InUse(This,value) \ + ( (This)->lpVtbl -> get_InUse(This,value) ) + +#define IMultisessionSequential_get_ImportRecorder(This,value) \ + ( (This)->lpVtbl -> get_ImportRecorder(This,value) ) + + +#define IMultisessionSequential_get_IsFirstDataSession(This,value) \ + ( (This)->lpVtbl -> get_IsFirstDataSession(This,value) ) + +#define IMultisessionSequential_get_StartAddressOfPreviousSession(This,value) \ + ( (This)->lpVtbl -> get_StartAddressOfPreviousSession(This,value) ) + +#define IMultisessionSequential_get_LastWrittenAddressOfPreviousSession(This,value) \ + ( (This)->lpVtbl -> get_LastWrittenAddressOfPreviousSession(This,value) ) + +#define IMultisessionSequential_get_NextWritableAddress(This,value) \ + ( (This)->lpVtbl -> get_NextWritableAddress(This,value) ) + +#define IMultisessionSequential_get_FreeSectorsOnMedia(This,value) \ + ( (This)->lpVtbl -> get_FreeSectorsOnMedia(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMultisessionSequential_INTERFACE_DEFINED__ */ + + +#ifndef __IMultisessionSequential2_INTERFACE_DEFINED__ +#define __IMultisessionSequential2_INTERFACE_DEFINED__ + +/* interface IMultisessionSequential2 */ +/* [helpstring][unique][uuid][dual][object] */ + + +EXTERN_C const IID IID_IMultisessionSequential2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B507CA22-2204-11DD-966A-001AA01BBC58") + IMultisessionSequential2 : public IMultisessionSequential + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WriteUnitSize( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMultisessionSequential2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMultisessionSequential2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMultisessionSequential2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMultisessionSequential2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMultisessionSequential2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMultisessionSequential2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMultisessionSequential2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMultisessionSequential2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMultisession, get_IsSupportedOnCurrentMediaState) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsSupportedOnCurrentMediaState )( + __RPC__in IMultisessionSequential2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IMultisession, put_InUse) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InUse )( + __RPC__in IMultisessionSequential2 * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IMultisession, get_InUse) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InUse )( + __RPC__in IMultisessionSequential2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IMultisession, get_ImportRecorder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImportRecorder )( + __RPC__in IMultisessionSequential2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value); + + DECLSPEC_XFGVIRT(IMultisessionSequential, get_IsFirstDataSession) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsFirstDataSession )( + __RPC__in IMultisessionSequential2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IMultisessionSequential, get_StartAddressOfPreviousSession) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartAddressOfPreviousSession )( + __RPC__in IMultisessionSequential2 * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IMultisessionSequential, get_LastWrittenAddressOfPreviousSession) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastWrittenAddressOfPreviousSession )( + __RPC__in IMultisessionSequential2 * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IMultisessionSequential, get_NextWritableAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NextWritableAddress )( + __RPC__in IMultisessionSequential2 * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IMultisessionSequential, get_FreeSectorsOnMedia) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeSectorsOnMedia )( + __RPC__in IMultisessionSequential2 * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IMultisessionSequential2, get_WriteUnitSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WriteUnitSize )( + __RPC__in IMultisessionSequential2 * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + END_INTERFACE + } IMultisessionSequential2Vtbl; + + interface IMultisessionSequential2 + { + CONST_VTBL struct IMultisessionSequential2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMultisessionSequential2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMultisessionSequential2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMultisessionSequential2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMultisessionSequential2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMultisessionSequential2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMultisessionSequential2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMultisessionSequential2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMultisessionSequential2_get_IsSupportedOnCurrentMediaState(This,value) \ + ( (This)->lpVtbl -> get_IsSupportedOnCurrentMediaState(This,value) ) + +#define IMultisessionSequential2_put_InUse(This,value) \ + ( (This)->lpVtbl -> put_InUse(This,value) ) + +#define IMultisessionSequential2_get_InUse(This,value) \ + ( (This)->lpVtbl -> get_InUse(This,value) ) + +#define IMultisessionSequential2_get_ImportRecorder(This,value) \ + ( (This)->lpVtbl -> get_ImportRecorder(This,value) ) + + +#define IMultisessionSequential2_get_IsFirstDataSession(This,value) \ + ( (This)->lpVtbl -> get_IsFirstDataSession(This,value) ) + +#define IMultisessionSequential2_get_StartAddressOfPreviousSession(This,value) \ + ( (This)->lpVtbl -> get_StartAddressOfPreviousSession(This,value) ) + +#define IMultisessionSequential2_get_LastWrittenAddressOfPreviousSession(This,value) \ + ( (This)->lpVtbl -> get_LastWrittenAddressOfPreviousSession(This,value) ) + +#define IMultisessionSequential2_get_NextWritableAddress(This,value) \ + ( (This)->lpVtbl -> get_NextWritableAddress(This,value) ) + +#define IMultisessionSequential2_get_FreeSectorsOnMedia(This,value) \ + ( (This)->lpVtbl -> get_FreeSectorsOnMedia(This,value) ) + + +#define IMultisessionSequential2_get_WriteUnitSize(This,value) \ + ( (This)->lpVtbl -> get_WriteUnitSize(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMultisessionSequential2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0024 */ +/* [local] */ + +#define DISPID_IMULTISESSION_LASTWRITTENADDRESS 0x206 +#define DISPID_IMULTISESSION_SECTORSONMEDIA 0x207 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0024_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0024_v0_0_s_ifspec; + +#ifndef __IMultisessionRandomWrite_INTERFACE_DEFINED__ +#define __IMultisessionRandomWrite_INTERFACE_DEFINED__ + +/* interface IMultisessionRandomWrite */ +/* [helpstring][unique][uuid][dual][object] */ + + +EXTERN_C const IID IID_IMultisessionRandomWrite; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B507CA23-2204-11DD-966A-001AA01BBC58") + IMultisessionRandomWrite : public IMultisession + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WriteUnitSize( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastWrittenAddress( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalSectorsOnMedia( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMultisessionRandomWriteVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMultisessionRandomWrite * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMultisessionRandomWrite * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMultisessionRandomWrite * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IMultisessionRandomWrite * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IMultisessionRandomWrite * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IMultisessionRandomWrite * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IMultisessionRandomWrite * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IMultisession, get_IsSupportedOnCurrentMediaState) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsSupportedOnCurrentMediaState )( + __RPC__in IMultisessionRandomWrite * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IMultisession, put_InUse) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_InUse )( + __RPC__in IMultisessionRandomWrite * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IMultisession, get_InUse) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_InUse )( + __RPC__in IMultisessionRandomWrite * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IMultisession, get_ImportRecorder) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImportRecorder )( + __RPC__in IMultisessionRandomWrite * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IDiscRecorder2 **value); + + DECLSPEC_XFGVIRT(IMultisessionRandomWrite, get_WriteUnitSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WriteUnitSize )( + __RPC__in IMultisessionRandomWrite * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IMultisessionRandomWrite, get_LastWrittenAddress) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastWrittenAddress )( + __RPC__in IMultisessionRandomWrite * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IMultisessionRandomWrite, get_TotalSectorsOnMedia) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalSectorsOnMedia )( + __RPC__in IMultisessionRandomWrite * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + END_INTERFACE + } IMultisessionRandomWriteVtbl; + + interface IMultisessionRandomWrite + { + CONST_VTBL struct IMultisessionRandomWriteVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMultisessionRandomWrite_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMultisessionRandomWrite_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMultisessionRandomWrite_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMultisessionRandomWrite_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IMultisessionRandomWrite_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IMultisessionRandomWrite_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IMultisessionRandomWrite_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IMultisessionRandomWrite_get_IsSupportedOnCurrentMediaState(This,value) \ + ( (This)->lpVtbl -> get_IsSupportedOnCurrentMediaState(This,value) ) + +#define IMultisessionRandomWrite_put_InUse(This,value) \ + ( (This)->lpVtbl -> put_InUse(This,value) ) + +#define IMultisessionRandomWrite_get_InUse(This,value) \ + ( (This)->lpVtbl -> get_InUse(This,value) ) + +#define IMultisessionRandomWrite_get_ImportRecorder(This,value) \ + ( (This)->lpVtbl -> get_ImportRecorder(This,value) ) + + +#define IMultisessionRandomWrite_get_WriteUnitSize(This,value) \ + ( (This)->lpVtbl -> get_WriteUnitSize(This,value) ) + +#define IMultisessionRandomWrite_get_LastWrittenAddress(This,value) \ + ( (This)->lpVtbl -> get_LastWrittenAddress(This,value) ) + +#define IMultisessionRandomWrite_get_TotalSectorsOnMedia(This,value) \ + ( (This)->lpVtbl -> get_TotalSectorsOnMedia(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMultisessionRandomWrite_INTERFACE_DEFINED__ */ + + +#ifndef __IStreamPseudoRandomBased_INTERFACE_DEFINED__ +#define __IStreamPseudoRandomBased_INTERFACE_DEFINED__ + +/* interface IStreamPseudoRandomBased */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IStreamPseudoRandomBased; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354145-7F64-5B0F-8F00-5D77AFBE261E") + IStreamPseudoRandomBased : public IStream + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE put_Seed( + /* [in] */ ULONG value) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_Seed( + /* [out] */ __RPC__out ULONG *value) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE put_ExtendedSeed( + /* [size_is][in] */ __RPC__in_ecount_full(eCount) ULONG *values, + /* [in] */ ULONG eCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE get_ExtendedSeed( + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*eCount) ULONG **values, + /* [out] */ __RPC__out ULONG *eCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IStreamPseudoRandomBasedVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IStreamPseudoRandomBased * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IStreamPseudoRandomBased * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IStreamPseudoRandomBased * This); + + DECLSPEC_XFGVIRT(ISequentialStream, Read) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )( + IStreamPseudoRandomBased * This, + /* [annotation] */ + _Out_writes_bytes_to_(cb, *pcbRead) void *pv, + /* [annotation][in] */ + _In_ ULONG cb, + /* [annotation] */ + _Out_opt_ ULONG *pcbRead); + + DECLSPEC_XFGVIRT(ISequentialStream, Write) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )( + IStreamPseudoRandomBased * This, + /* [annotation] */ + _In_reads_bytes_(cb) const void *pv, + /* [annotation][in] */ + _In_ ULONG cb, + /* [annotation] */ + _Out_opt_ ULONG *pcbWritten); + + DECLSPEC_XFGVIRT(IStream, Seek) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )( + IStreamPseudoRandomBased * This, + /* [in] */ LARGE_INTEGER dlibMove, + /* [in] */ DWORD dwOrigin, + /* [annotation] */ + _Out_opt_ ULARGE_INTEGER *plibNewPosition); + + DECLSPEC_XFGVIRT(IStream, SetSize) + HRESULT ( STDMETHODCALLTYPE *SetSize )( + __RPC__in IStreamPseudoRandomBased * This, + /* [in] */ ULARGE_INTEGER libNewSize); + + DECLSPEC_XFGVIRT(IStream, CopyTo) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )( + IStreamPseudoRandomBased * This, + /* [annotation][unique][in] */ + _In_ IStream *pstm, + /* [in] */ ULARGE_INTEGER cb, + /* [annotation] */ + _Out_opt_ ULARGE_INTEGER *pcbRead, + /* [annotation] */ + _Out_opt_ ULARGE_INTEGER *pcbWritten); + + DECLSPEC_XFGVIRT(IStream, Commit) + HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IStreamPseudoRandomBased * This, + /* [in] */ DWORD grfCommitFlags); + + DECLSPEC_XFGVIRT(IStream, Revert) + HRESULT ( STDMETHODCALLTYPE *Revert )( + __RPC__in IStreamPseudoRandomBased * This); + + DECLSPEC_XFGVIRT(IStream, LockRegion) + HRESULT ( STDMETHODCALLTYPE *LockRegion )( + __RPC__in IStreamPseudoRandomBased * This, + /* [in] */ ULARGE_INTEGER libOffset, + /* [in] */ ULARGE_INTEGER cb, + /* [in] */ DWORD dwLockType); + + DECLSPEC_XFGVIRT(IStream, UnlockRegion) + HRESULT ( STDMETHODCALLTYPE *UnlockRegion )( + __RPC__in IStreamPseudoRandomBased * This, + /* [in] */ ULARGE_INTEGER libOffset, + /* [in] */ ULARGE_INTEGER cb, + /* [in] */ DWORD dwLockType); + + DECLSPEC_XFGVIRT(IStream, Stat) + HRESULT ( STDMETHODCALLTYPE *Stat )( + __RPC__in IStreamPseudoRandomBased * This, + /* [out] */ __RPC__out STATSTG *pstatstg, + /* [in] */ DWORD grfStatFlag); + + DECLSPEC_XFGVIRT(IStream, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IStreamPseudoRandomBased * This, + /* [out] */ __RPC__deref_out_opt IStream **ppstm); + + DECLSPEC_XFGVIRT(IStreamPseudoRandomBased, put_Seed) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *put_Seed )( + __RPC__in IStreamPseudoRandomBased * This, + /* [in] */ ULONG value); + + DECLSPEC_XFGVIRT(IStreamPseudoRandomBased, get_Seed) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_Seed )( + __RPC__in IStreamPseudoRandomBased * This, + /* [out] */ __RPC__out ULONG *value); + + DECLSPEC_XFGVIRT(IStreamPseudoRandomBased, put_ExtendedSeed) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *put_ExtendedSeed )( + __RPC__in IStreamPseudoRandomBased * This, + /* [size_is][in] */ __RPC__in_ecount_full(eCount) ULONG *values, + /* [in] */ ULONG eCount); + + DECLSPEC_XFGVIRT(IStreamPseudoRandomBased, get_ExtendedSeed) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *get_ExtendedSeed )( + __RPC__in IStreamPseudoRandomBased * This, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*eCount) ULONG **values, + /* [out] */ __RPC__out ULONG *eCount); + + END_INTERFACE + } IStreamPseudoRandomBasedVtbl; + + interface IStreamPseudoRandomBased + { + CONST_VTBL struct IStreamPseudoRandomBasedVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IStreamPseudoRandomBased_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IStreamPseudoRandomBased_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IStreamPseudoRandomBased_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IStreamPseudoRandomBased_Read(This,pv,cb,pcbRead) \ + ( (This)->lpVtbl -> Read(This,pv,cb,pcbRead) ) + +#define IStreamPseudoRandomBased_Write(This,pv,cb,pcbWritten) \ + ( (This)->lpVtbl -> Write(This,pv,cb,pcbWritten) ) + + +#define IStreamPseudoRandomBased_Seek(This,dlibMove,dwOrigin,plibNewPosition) \ + ( (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition) ) + +#define IStreamPseudoRandomBased_SetSize(This,libNewSize) \ + ( (This)->lpVtbl -> SetSize(This,libNewSize) ) + +#define IStreamPseudoRandomBased_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \ + ( (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten) ) + +#define IStreamPseudoRandomBased_Commit(This,grfCommitFlags) \ + ( (This)->lpVtbl -> Commit(This,grfCommitFlags) ) + +#define IStreamPseudoRandomBased_Revert(This) \ + ( (This)->lpVtbl -> Revert(This) ) + +#define IStreamPseudoRandomBased_LockRegion(This,libOffset,cb,dwLockType) \ + ( (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType) ) + +#define IStreamPseudoRandomBased_UnlockRegion(This,libOffset,cb,dwLockType) \ + ( (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType) ) + +#define IStreamPseudoRandomBased_Stat(This,pstatstg,grfStatFlag) \ + ( (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag) ) + +#define IStreamPseudoRandomBased_Clone(This,ppstm) \ + ( (This)->lpVtbl -> Clone(This,ppstm) ) + + +#define IStreamPseudoRandomBased_put_Seed(This,value) \ + ( (This)->lpVtbl -> put_Seed(This,value) ) + +#define IStreamPseudoRandomBased_get_Seed(This,value) \ + ( (This)->lpVtbl -> get_Seed(This,value) ) + +#define IStreamPseudoRandomBased_put_ExtendedSeed(This,values,eCount) \ + ( (This)->lpVtbl -> put_ExtendedSeed(This,values,eCount) ) + +#define IStreamPseudoRandomBased_get_ExtendedSeed(This,values,eCount) \ + ( (This)->lpVtbl -> get_ExtendedSeed(This,values,eCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IStreamPseudoRandomBased_INTERFACE_DEFINED__ */ + + +#ifndef __IStreamConcatenate_INTERFACE_DEFINED__ +#define __IStreamConcatenate_INTERFACE_DEFINED__ + +/* interface IStreamConcatenate */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IStreamConcatenate; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354146-7F64-5B0F-8F00-5D77AFBE261E") + IStreamConcatenate : public IStream + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ __RPC__in_opt IStream *stream1, + /* [in] */ __RPC__in_opt IStream *stream2) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Initialize2( + /* [size_is][in] */ __RPC__in_ecount_full(streamCount) IStream **streams, + /* [in] */ ULONG streamCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Append( + /* [in] */ __RPC__in_opt IStream *stream) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Append2( + /* [size_is][in] */ __RPC__in_ecount_full(streamCount) IStream **streams, + /* [in] */ ULONG streamCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IStreamConcatenateVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IStreamConcatenate * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IStreamConcatenate * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IStreamConcatenate * This); + + DECLSPEC_XFGVIRT(ISequentialStream, Read) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )( + IStreamConcatenate * This, + /* [annotation] */ + _Out_writes_bytes_to_(cb, *pcbRead) void *pv, + /* [annotation][in] */ + _In_ ULONG cb, + /* [annotation] */ + _Out_opt_ ULONG *pcbRead); + + DECLSPEC_XFGVIRT(ISequentialStream, Write) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )( + IStreamConcatenate * This, + /* [annotation] */ + _In_reads_bytes_(cb) const void *pv, + /* [annotation][in] */ + _In_ ULONG cb, + /* [annotation] */ + _Out_opt_ ULONG *pcbWritten); + + DECLSPEC_XFGVIRT(IStream, Seek) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )( + IStreamConcatenate * This, + /* [in] */ LARGE_INTEGER dlibMove, + /* [in] */ DWORD dwOrigin, + /* [annotation] */ + _Out_opt_ ULARGE_INTEGER *plibNewPosition); + + DECLSPEC_XFGVIRT(IStream, SetSize) + HRESULT ( STDMETHODCALLTYPE *SetSize )( + __RPC__in IStreamConcatenate * This, + /* [in] */ ULARGE_INTEGER libNewSize); + + DECLSPEC_XFGVIRT(IStream, CopyTo) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )( + IStreamConcatenate * This, + /* [annotation][unique][in] */ + _In_ IStream *pstm, + /* [in] */ ULARGE_INTEGER cb, + /* [annotation] */ + _Out_opt_ ULARGE_INTEGER *pcbRead, + /* [annotation] */ + _Out_opt_ ULARGE_INTEGER *pcbWritten); + + DECLSPEC_XFGVIRT(IStream, Commit) + HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IStreamConcatenate * This, + /* [in] */ DWORD grfCommitFlags); + + DECLSPEC_XFGVIRT(IStream, Revert) + HRESULT ( STDMETHODCALLTYPE *Revert )( + __RPC__in IStreamConcatenate * This); + + DECLSPEC_XFGVIRT(IStream, LockRegion) + HRESULT ( STDMETHODCALLTYPE *LockRegion )( + __RPC__in IStreamConcatenate * This, + /* [in] */ ULARGE_INTEGER libOffset, + /* [in] */ ULARGE_INTEGER cb, + /* [in] */ DWORD dwLockType); + + DECLSPEC_XFGVIRT(IStream, UnlockRegion) + HRESULT ( STDMETHODCALLTYPE *UnlockRegion )( + __RPC__in IStreamConcatenate * This, + /* [in] */ ULARGE_INTEGER libOffset, + /* [in] */ ULARGE_INTEGER cb, + /* [in] */ DWORD dwLockType); + + DECLSPEC_XFGVIRT(IStream, Stat) + HRESULT ( STDMETHODCALLTYPE *Stat )( + __RPC__in IStreamConcatenate * This, + /* [out] */ __RPC__out STATSTG *pstatstg, + /* [in] */ DWORD grfStatFlag); + + DECLSPEC_XFGVIRT(IStream, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IStreamConcatenate * This, + /* [out] */ __RPC__deref_out_opt IStream **ppstm); + + DECLSPEC_XFGVIRT(IStreamConcatenate, Initialize) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IStreamConcatenate * This, + /* [in] */ __RPC__in_opt IStream *stream1, + /* [in] */ __RPC__in_opt IStream *stream2); + + DECLSPEC_XFGVIRT(IStreamConcatenate, Initialize2) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Initialize2 )( + __RPC__in IStreamConcatenate * This, + /* [size_is][in] */ __RPC__in_ecount_full(streamCount) IStream **streams, + /* [in] */ ULONG streamCount); + + DECLSPEC_XFGVIRT(IStreamConcatenate, Append) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Append )( + __RPC__in IStreamConcatenate * This, + /* [in] */ __RPC__in_opt IStream *stream); + + DECLSPEC_XFGVIRT(IStreamConcatenate, Append2) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Append2 )( + __RPC__in IStreamConcatenate * This, + /* [size_is][in] */ __RPC__in_ecount_full(streamCount) IStream **streams, + /* [in] */ ULONG streamCount); + + END_INTERFACE + } IStreamConcatenateVtbl; + + interface IStreamConcatenate + { + CONST_VTBL struct IStreamConcatenateVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IStreamConcatenate_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IStreamConcatenate_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IStreamConcatenate_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IStreamConcatenate_Read(This,pv,cb,pcbRead) \ + ( (This)->lpVtbl -> Read(This,pv,cb,pcbRead) ) + +#define IStreamConcatenate_Write(This,pv,cb,pcbWritten) \ + ( (This)->lpVtbl -> Write(This,pv,cb,pcbWritten) ) + + +#define IStreamConcatenate_Seek(This,dlibMove,dwOrigin,plibNewPosition) \ + ( (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition) ) + +#define IStreamConcatenate_SetSize(This,libNewSize) \ + ( (This)->lpVtbl -> SetSize(This,libNewSize) ) + +#define IStreamConcatenate_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \ + ( (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten) ) + +#define IStreamConcatenate_Commit(This,grfCommitFlags) \ + ( (This)->lpVtbl -> Commit(This,grfCommitFlags) ) + +#define IStreamConcatenate_Revert(This) \ + ( (This)->lpVtbl -> Revert(This) ) + +#define IStreamConcatenate_LockRegion(This,libOffset,cb,dwLockType) \ + ( (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType) ) + +#define IStreamConcatenate_UnlockRegion(This,libOffset,cb,dwLockType) \ + ( (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType) ) + +#define IStreamConcatenate_Stat(This,pstatstg,grfStatFlag) \ + ( (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag) ) + +#define IStreamConcatenate_Clone(This,ppstm) \ + ( (This)->lpVtbl -> Clone(This,ppstm) ) + + +#define IStreamConcatenate_Initialize(This,stream1,stream2) \ + ( (This)->lpVtbl -> Initialize(This,stream1,stream2) ) + +#define IStreamConcatenate_Initialize2(This,streams,streamCount) \ + ( (This)->lpVtbl -> Initialize2(This,streams,streamCount) ) + +#define IStreamConcatenate_Append(This,stream) \ + ( (This)->lpVtbl -> Append(This,stream) ) + +#define IStreamConcatenate_Append2(This,streams,streamCount) \ + ( (This)->lpVtbl -> Append2(This,streams,streamCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IStreamConcatenate_INTERFACE_DEFINED__ */ + + +#ifndef __IStreamInterleave_INTERFACE_DEFINED__ +#define __IStreamInterleave_INTERFACE_DEFINED__ + +/* interface IStreamInterleave */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IStreamInterleave; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("27354147-7F64-5B0F-8F00-5D77AFBE261E") + IStreamInterleave : public IStream + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [size_is][in] */ __RPC__in_ecount_full(streamCount) IStream **streams, + /* [size_is][in] */ __RPC__in_ecount_full(streamCount) ULONG *interleaveSizes, + /* [range][in] */ __RPC__in_range(1,0x7fffffff) ULONG streamCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IStreamInterleaveVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IStreamInterleave * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IStreamInterleave * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IStreamInterleave * This); + + DECLSPEC_XFGVIRT(ISequentialStream, Read) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )( + IStreamInterleave * This, + /* [annotation] */ + _Out_writes_bytes_to_(cb, *pcbRead) void *pv, + /* [annotation][in] */ + _In_ ULONG cb, + /* [annotation] */ + _Out_opt_ ULONG *pcbRead); + + DECLSPEC_XFGVIRT(ISequentialStream, Write) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )( + IStreamInterleave * This, + /* [annotation] */ + _In_reads_bytes_(cb) const void *pv, + /* [annotation][in] */ + _In_ ULONG cb, + /* [annotation] */ + _Out_opt_ ULONG *pcbWritten); + + DECLSPEC_XFGVIRT(IStream, Seek) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )( + IStreamInterleave * This, + /* [in] */ LARGE_INTEGER dlibMove, + /* [in] */ DWORD dwOrigin, + /* [annotation] */ + _Out_opt_ ULARGE_INTEGER *plibNewPosition); + + DECLSPEC_XFGVIRT(IStream, SetSize) + HRESULT ( STDMETHODCALLTYPE *SetSize )( + __RPC__in IStreamInterleave * This, + /* [in] */ ULARGE_INTEGER libNewSize); + + DECLSPEC_XFGVIRT(IStream, CopyTo) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )( + IStreamInterleave * This, + /* [annotation][unique][in] */ + _In_ IStream *pstm, + /* [in] */ ULARGE_INTEGER cb, + /* [annotation] */ + _Out_opt_ ULARGE_INTEGER *pcbRead, + /* [annotation] */ + _Out_opt_ ULARGE_INTEGER *pcbWritten); + + DECLSPEC_XFGVIRT(IStream, Commit) + HRESULT ( STDMETHODCALLTYPE *Commit )( + __RPC__in IStreamInterleave * This, + /* [in] */ DWORD grfCommitFlags); + + DECLSPEC_XFGVIRT(IStream, Revert) + HRESULT ( STDMETHODCALLTYPE *Revert )( + __RPC__in IStreamInterleave * This); + + DECLSPEC_XFGVIRT(IStream, LockRegion) + HRESULT ( STDMETHODCALLTYPE *LockRegion )( + __RPC__in IStreamInterleave * This, + /* [in] */ ULARGE_INTEGER libOffset, + /* [in] */ ULARGE_INTEGER cb, + /* [in] */ DWORD dwLockType); + + DECLSPEC_XFGVIRT(IStream, UnlockRegion) + HRESULT ( STDMETHODCALLTYPE *UnlockRegion )( + __RPC__in IStreamInterleave * This, + /* [in] */ ULARGE_INTEGER libOffset, + /* [in] */ ULARGE_INTEGER cb, + /* [in] */ DWORD dwLockType); + + DECLSPEC_XFGVIRT(IStream, Stat) + HRESULT ( STDMETHODCALLTYPE *Stat )( + __RPC__in IStreamInterleave * This, + /* [out] */ __RPC__out STATSTG *pstatstg, + /* [in] */ DWORD grfStatFlag); + + DECLSPEC_XFGVIRT(IStream, Clone) + HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IStreamInterleave * This, + /* [out] */ __RPC__deref_out_opt IStream **ppstm); + + DECLSPEC_XFGVIRT(IStreamInterleave, Initialize) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IStreamInterleave * This, + /* [size_is][in] */ __RPC__in_ecount_full(streamCount) IStream **streams, + /* [size_is][in] */ __RPC__in_ecount_full(streamCount) ULONG *interleaveSizes, + /* [range][in] */ __RPC__in_range(1,0x7fffffff) ULONG streamCount); + + END_INTERFACE + } IStreamInterleaveVtbl; + + interface IStreamInterleave + { + CONST_VTBL struct IStreamInterleaveVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IStreamInterleave_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IStreamInterleave_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IStreamInterleave_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IStreamInterleave_Read(This,pv,cb,pcbRead) \ + ( (This)->lpVtbl -> Read(This,pv,cb,pcbRead) ) + +#define IStreamInterleave_Write(This,pv,cb,pcbWritten) \ + ( (This)->lpVtbl -> Write(This,pv,cb,pcbWritten) ) + + +#define IStreamInterleave_Seek(This,dlibMove,dwOrigin,plibNewPosition) \ + ( (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition) ) + +#define IStreamInterleave_SetSize(This,libNewSize) \ + ( (This)->lpVtbl -> SetSize(This,libNewSize) ) + +#define IStreamInterleave_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \ + ( (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten) ) + +#define IStreamInterleave_Commit(This,grfCommitFlags) \ + ( (This)->lpVtbl -> Commit(This,grfCommitFlags) ) + +#define IStreamInterleave_Revert(This) \ + ( (This)->lpVtbl -> Revert(This) ) + +#define IStreamInterleave_LockRegion(This,libOffset,cb,dwLockType) \ + ( (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType) ) + +#define IStreamInterleave_UnlockRegion(This,libOffset,cb,dwLockType) \ + ( (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType) ) + +#define IStreamInterleave_Stat(This,pstatstg,grfStatFlag) \ + ( (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag) ) + +#define IStreamInterleave_Clone(This,ppstm) \ + ( (This)->lpVtbl -> Clone(This,ppstm) ) + + +#define IStreamInterleave_Initialize(This,streams,interleaveSizes,streamCount) \ + ( (This)->lpVtbl -> Initialize(This,streams,interleaveSizes,streamCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IStreamInterleave_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0028 */ +/* [local] */ + +#define DISPID_IRAWCDIMAGECREATOR_CREATERESULTIMAGE 0x200 +#define DISPID_IRAWCDIMAGECREATOR_ADDTRACK 0x201 +#define DISPID_IRAWCDIMAGECREATOR_ADDSPECIALPREGAP 0x202 +#define DISPID_IRAWCDIMAGECREATOR_ADDSUBCODERWGENERATOR 0x203 +#define DISPID_IRAWCDIMAGECREATOR_RESULTINGIMAGETYPE 0x100 +#define DISPID_IRAWCDIMAGECREATOR_STARTOFLEADOUT 0x101 +#define DISPID_IRAWCDIMAGECREATOR_STARTOFLEADOUTLIMIT 0x102 +#define DISPID_IRAWCDIMAGECREATOR_DISABLEGAPLESSAUDIO 0x103 +#define DISPID_IRAWCDIMAGECREATOR_MEDIACATALOGNUMBER 0x104 +#define DISPID_IRAWCDIMAGECREATOR_STARTINGTRACKNUMBER 0x105 +#define DISPID_IRAWCDIMAGECREATOR_TRACKINFO 0x106 +#define DISPID_IRAWCDIMAGECREATOR_NUMBEROFEXISTINGTRACKS 0x107 +#define DISPID_IRAWCDIMAGECREATOR_USEDSECTORSONDISC 0x108 +#define DISPID_IRAWCDIMAGECREATOR_EXPECTEDTABLEOFCONTENTS 0x109 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0028_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0028_v0_0_s_ifspec; + +#ifndef __IRawCDImageCreator_INTERFACE_DEFINED__ +#define __IRawCDImageCreator_INTERFACE_DEFINED__ + +/* interface IRawCDImageCreator */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IRawCDImageCreator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("25983550-9D65-49CE-B335-40630D901227") + IRawCDImageCreator : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateResultImage( + /* [retval][out] */ __RPC__deref_out_opt IStream **resultStream) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddTrack( + /* [in] */ IMAPI_CD_SECTOR_TYPE dataType, + /* [in] */ __RPC__in_opt IStream *data, + /* [retval][out] */ __RPC__out LONG *trackIndex) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddSpecialPregap( + /* [in] */ __RPC__in_opt IStream *data) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddSubcodeRWGenerator( + /* [in] */ __RPC__in_opt IStream *subcode) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ResultingImageType( + /* [in] */ IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ResultingImageType( + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartOfLeadout( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StartOfLeadoutLimit( + /* [in] */ LONG value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartOfLeadoutLimit( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DisableGaplessAudio( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DisableGaplessAudio( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MediaCatalogNumber( + /* [in] */ __RPC__in BSTR value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MediaCatalogNumber( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StartingTrackNumber( + /* [range][in] */ __RPC__in_range(1,99) LONG value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartingTrackNumber( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TrackInfo( + /* [in] */ LONG trackIndex, + /* [retval][ref][out] */ __RPC__deref_out_opt IRawCDImageTrackInfo **value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfExistingTracks( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastUsedUserSectorInImage( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ExpectedTableOfContents( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRawCDImageCreatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRawCDImageCreator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRawCDImageCreator * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IRawCDImageCreator * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IRawCDImageCreator * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, CreateResultImage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateResultImage )( + __RPC__in IRawCDImageCreator * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **resultStream); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, AddTrack) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddTrack )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ IMAPI_CD_SECTOR_TYPE dataType, + /* [in] */ __RPC__in_opt IStream *data, + /* [retval][out] */ __RPC__out LONG *trackIndex); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, AddSpecialPregap) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddSpecialPregap )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ __RPC__in_opt IStream *data); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, AddSubcodeRWGenerator) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddSubcodeRWGenerator )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ __RPC__in_opt IStream *subcode); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, put_ResultingImageType) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ResultingImageType )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, get_ResultingImageType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ResultingImageType )( + __RPC__in IRawCDImageCreator * This, + /* [retval][ref][out] */ __RPC__out IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE *value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, get_StartOfLeadout) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartOfLeadout )( + __RPC__in IRawCDImageCreator * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, put_StartOfLeadoutLimit) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StartOfLeadoutLimit )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ LONG value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, get_StartOfLeadoutLimit) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartOfLeadoutLimit )( + __RPC__in IRawCDImageCreator * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, put_DisableGaplessAudio) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DisableGaplessAudio )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, get_DisableGaplessAudio) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DisableGaplessAudio )( + __RPC__in IRawCDImageCreator * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, put_MediaCatalogNumber) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MediaCatalogNumber )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ __RPC__in BSTR value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, get_MediaCatalogNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MediaCatalogNumber )( + __RPC__in IRawCDImageCreator * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, put_StartingTrackNumber) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StartingTrackNumber )( + __RPC__in IRawCDImageCreator * This, + /* [range][in] */ __RPC__in_range(1,99) LONG value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, get_StartingTrackNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartingTrackNumber )( + __RPC__in IRawCDImageCreator * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, get_TrackInfo) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TrackInfo )( + __RPC__in IRawCDImageCreator * This, + /* [in] */ LONG trackIndex, + /* [retval][ref][out] */ __RPC__deref_out_opt IRawCDImageTrackInfo **value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, get_NumberOfExistingTracks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfExistingTracks )( + __RPC__in IRawCDImageCreator * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, get_LastUsedUserSectorInImage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastUsedUserSectorInImage )( + __RPC__in IRawCDImageCreator * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IRawCDImageCreator, get_ExpectedTableOfContents) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ExpectedTableOfContents )( + __RPC__in IRawCDImageCreator * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + END_INTERFACE + } IRawCDImageCreatorVtbl; + + interface IRawCDImageCreator + { + CONST_VTBL struct IRawCDImageCreatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRawCDImageCreator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRawCDImageCreator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRawCDImageCreator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRawCDImageCreator_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IRawCDImageCreator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IRawCDImageCreator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IRawCDImageCreator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IRawCDImageCreator_CreateResultImage(This,resultStream) \ + ( (This)->lpVtbl -> CreateResultImage(This,resultStream) ) + +#define IRawCDImageCreator_AddTrack(This,dataType,data,trackIndex) \ + ( (This)->lpVtbl -> AddTrack(This,dataType,data,trackIndex) ) + +#define IRawCDImageCreator_AddSpecialPregap(This,data) \ + ( (This)->lpVtbl -> AddSpecialPregap(This,data) ) + +#define IRawCDImageCreator_AddSubcodeRWGenerator(This,subcode) \ + ( (This)->lpVtbl -> AddSubcodeRWGenerator(This,subcode) ) + +#define IRawCDImageCreator_put_ResultingImageType(This,value) \ + ( (This)->lpVtbl -> put_ResultingImageType(This,value) ) + +#define IRawCDImageCreator_get_ResultingImageType(This,value) \ + ( (This)->lpVtbl -> get_ResultingImageType(This,value) ) + +#define IRawCDImageCreator_get_StartOfLeadout(This,value) \ + ( (This)->lpVtbl -> get_StartOfLeadout(This,value) ) + +#define IRawCDImageCreator_put_StartOfLeadoutLimit(This,value) \ + ( (This)->lpVtbl -> put_StartOfLeadoutLimit(This,value) ) + +#define IRawCDImageCreator_get_StartOfLeadoutLimit(This,value) \ + ( (This)->lpVtbl -> get_StartOfLeadoutLimit(This,value) ) + +#define IRawCDImageCreator_put_DisableGaplessAudio(This,value) \ + ( (This)->lpVtbl -> put_DisableGaplessAudio(This,value) ) + +#define IRawCDImageCreator_get_DisableGaplessAudio(This,value) \ + ( (This)->lpVtbl -> get_DisableGaplessAudio(This,value) ) + +#define IRawCDImageCreator_put_MediaCatalogNumber(This,value) \ + ( (This)->lpVtbl -> put_MediaCatalogNumber(This,value) ) + +#define IRawCDImageCreator_get_MediaCatalogNumber(This,value) \ + ( (This)->lpVtbl -> get_MediaCatalogNumber(This,value) ) + +#define IRawCDImageCreator_put_StartingTrackNumber(This,value) \ + ( (This)->lpVtbl -> put_StartingTrackNumber(This,value) ) + +#define IRawCDImageCreator_get_StartingTrackNumber(This,value) \ + ( (This)->lpVtbl -> get_StartingTrackNumber(This,value) ) + +#define IRawCDImageCreator_get_TrackInfo(This,trackIndex,value) \ + ( (This)->lpVtbl -> get_TrackInfo(This,trackIndex,value) ) + +#define IRawCDImageCreator_get_NumberOfExistingTracks(This,value) \ + ( (This)->lpVtbl -> get_NumberOfExistingTracks(This,value) ) + +#define IRawCDImageCreator_get_LastUsedUserSectorInImage(This,value) \ + ( (This)->lpVtbl -> get_LastUsedUserSectorInImage(This,value) ) + +#define IRawCDImageCreator_get_ExpectedTableOfContents(This,value) \ + ( (This)->lpVtbl -> get_ExpectedTableOfContents(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRawCDImageCreator_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0029 */ +/* [local] */ + +#define DISPID_IRAWCDTRACKINFO_STARTINGLBA 0x100 +#define DISPID_IRAWCDTRACKINFO_SECTORCOUNT 0x101 +#define DISPID_IRAWCDTRACKINFO_TRACKNUMBER 0x102 +#define DISPID_IRAWCDTRACKINFO_SECTORTYPE 0x103 +#define DISPID_IRAWCDTRACKINFO_ISRC 0x104 +#define DISPID_IRAWCDTRACKINFO_DIGITALAUDIOCOPYSETTING 0x105 +#define DISPID_IRAWCDTRACKINFO_AUDIOHASPREEMPHASIS 0x106 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0029_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0029_v0_0_s_ifspec; + +#ifndef __IRawCDImageTrackInfo_INTERFACE_DEFINED__ +#define __IRawCDImageTrackInfo_INTERFACE_DEFINED__ + +/* interface IRawCDImageTrackInfo */ +/* [helpstring][unique][uuid][dual][nonextensible][object] */ + + +EXTERN_C const IID IID_IRawCDImageTrackInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("25983551-9D65-49CE-B335-40630D901227") + IRawCDImageTrackInfo : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartingLba( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SectorCount( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TrackNumber( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SectorType( + /* [retval][ref][out] */ __RPC__out IMAPI_CD_SECTOR_TYPE *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ISRC( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ISRC( + /* [in] */ __RPC__in BSTR value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DigitalAudioCopySetting( + /* [retval][ref][out] */ __RPC__out IMAPI_CD_TRACK_DIGITAL_COPY_SETTING *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DigitalAudioCopySetting( + /* [in] */ IMAPI_CD_TRACK_DIGITAL_COPY_SETTING value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AudioHasPreemphasis( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_AudioHasPreemphasis( + /* [in] */ VARIANT_BOOL value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TrackIndexes( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddTrackIndex( + /* [range][in] */ __RPC__in_range(0,0x7fffffff) LONG lbaOffset) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ClearTrackIndex( + /* [range][in] */ __RPC__in_range(0,0x7fffffff) LONG lbaOffset) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IRawCDImageTrackInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IRawCDImageTrackInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IRawCDImageTrackInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IRawCDImageTrackInfo * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IRawCDImageTrackInfo * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IRawCDImageTrackInfo * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IRawCDImageTrackInfo * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IRawCDImageTrackInfo * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, get_StartingLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartingLba )( + __RPC__in IRawCDImageTrackInfo * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, get_SectorCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SectorCount )( + __RPC__in IRawCDImageTrackInfo * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, get_TrackNumber) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TrackNumber )( + __RPC__in IRawCDImageTrackInfo * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, get_SectorType) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SectorType )( + __RPC__in IRawCDImageTrackInfo * This, + /* [retval][ref][out] */ __RPC__out IMAPI_CD_SECTOR_TYPE *value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, get_ISRC) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ISRC )( + __RPC__in IRawCDImageTrackInfo * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, put_ISRC) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ISRC )( + __RPC__in IRawCDImageTrackInfo * This, + /* [in] */ __RPC__in BSTR value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, get_DigitalAudioCopySetting) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DigitalAudioCopySetting )( + __RPC__in IRawCDImageTrackInfo * This, + /* [retval][ref][out] */ __RPC__out IMAPI_CD_TRACK_DIGITAL_COPY_SETTING *value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, put_DigitalAudioCopySetting) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DigitalAudioCopySetting )( + __RPC__in IRawCDImageTrackInfo * This, + /* [in] */ IMAPI_CD_TRACK_DIGITAL_COPY_SETTING value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, get_AudioHasPreemphasis) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AudioHasPreemphasis )( + __RPC__in IRawCDImageTrackInfo * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, put_AudioHasPreemphasis) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_AudioHasPreemphasis )( + __RPC__in IRawCDImageTrackInfo * This, + /* [in] */ VARIANT_BOOL value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, get_TrackIndexes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TrackIndexes )( + __RPC__in IRawCDImageTrackInfo * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, AddTrackIndex) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddTrackIndex )( + __RPC__in IRawCDImageTrackInfo * This, + /* [range][in] */ __RPC__in_range(0,0x7fffffff) LONG lbaOffset); + + DECLSPEC_XFGVIRT(IRawCDImageTrackInfo, ClearTrackIndex) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ClearTrackIndex )( + __RPC__in IRawCDImageTrackInfo * This, + /* [range][in] */ __RPC__in_range(0,0x7fffffff) LONG lbaOffset); + + END_INTERFACE + } IRawCDImageTrackInfoVtbl; + + interface IRawCDImageTrackInfo + { + CONST_VTBL struct IRawCDImageTrackInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IRawCDImageTrackInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IRawCDImageTrackInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IRawCDImageTrackInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IRawCDImageTrackInfo_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IRawCDImageTrackInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IRawCDImageTrackInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IRawCDImageTrackInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IRawCDImageTrackInfo_get_StartingLba(This,value) \ + ( (This)->lpVtbl -> get_StartingLba(This,value) ) + +#define IRawCDImageTrackInfo_get_SectorCount(This,value) \ + ( (This)->lpVtbl -> get_SectorCount(This,value) ) + +#define IRawCDImageTrackInfo_get_TrackNumber(This,value) \ + ( (This)->lpVtbl -> get_TrackNumber(This,value) ) + +#define IRawCDImageTrackInfo_get_SectorType(This,value) \ + ( (This)->lpVtbl -> get_SectorType(This,value) ) + +#define IRawCDImageTrackInfo_get_ISRC(This,value) \ + ( (This)->lpVtbl -> get_ISRC(This,value) ) + +#define IRawCDImageTrackInfo_put_ISRC(This,value) \ + ( (This)->lpVtbl -> put_ISRC(This,value) ) + +#define IRawCDImageTrackInfo_get_DigitalAudioCopySetting(This,value) \ + ( (This)->lpVtbl -> get_DigitalAudioCopySetting(This,value) ) + +#define IRawCDImageTrackInfo_put_DigitalAudioCopySetting(This,value) \ + ( (This)->lpVtbl -> put_DigitalAudioCopySetting(This,value) ) + +#define IRawCDImageTrackInfo_get_AudioHasPreemphasis(This,value) \ + ( (This)->lpVtbl -> get_AudioHasPreemphasis(This,value) ) + +#define IRawCDImageTrackInfo_put_AudioHasPreemphasis(This,value) \ + ( (This)->lpVtbl -> put_AudioHasPreemphasis(This,value) ) + +#define IRawCDImageTrackInfo_get_TrackIndexes(This,value) \ + ( (This)->lpVtbl -> get_TrackIndexes(This,value) ) + +#define IRawCDImageTrackInfo_AddTrackIndex(This,lbaOffset) \ + ( (This)->lpVtbl -> AddTrackIndex(This,lbaOffset) ) + +#define IRawCDImageTrackInfo_ClearTrackIndex(This,lbaOffset) \ + ( (This)->lpVtbl -> ClearTrackIndex(This,lbaOffset) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IRawCDImageTrackInfo_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0030 */ +/* [local] */ + +#define DISPID_IBLOCKRANGE_STARTLBA 0x100 +#define DISPID_IBLOCKRANGE_ENDLBA 0x101 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0030_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0030_v0_0_s_ifspec; + +#ifndef __IBlockRange_INTERFACE_DEFINED__ +#define __IBlockRange_INTERFACE_DEFINED__ + +/* interface IBlockRange */ +/* [helpstring][unique][uuid][dual][object] */ + + +EXTERN_C const IID IID_IBlockRange; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B507CA25-2204-11DD-966A-001AA01BBC58") + IBlockRange : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StartLba( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EndLba( + /* [retval][ref][out] */ __RPC__out LONG *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBlockRangeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBlockRange * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBlockRange * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBlockRange * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBlockRange * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBlockRange * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBlockRange * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBlockRange * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBlockRange, get_StartLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartLba )( + __RPC__in IBlockRange * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + DECLSPEC_XFGVIRT(IBlockRange, get_EndLba) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EndLba )( + __RPC__in IBlockRange * This, + /* [retval][ref][out] */ __RPC__out LONG *value); + + END_INTERFACE + } IBlockRangeVtbl; + + interface IBlockRange + { + CONST_VTBL struct IBlockRangeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBlockRange_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBlockRange_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBlockRange_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBlockRange_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBlockRange_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBlockRange_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBlockRange_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBlockRange_get_StartLba(This,value) \ + ( (This)->lpVtbl -> get_StartLba(This,value) ) + +#define IBlockRange_get_EndLba(This,value) \ + ( (This)->lpVtbl -> get_EndLba(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBlockRange_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0031 */ +/* [local] */ + +#define DISPID_IBLOCKRANGELIST_BLOCKRANGES 0x100 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0031_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0031_v0_0_s_ifspec; + +#ifndef __IBlockRangeList_INTERFACE_DEFINED__ +#define __IBlockRangeList_INTERFACE_DEFINED__ + +/* interface IBlockRangeList */ +/* [helpstring][unique][uuid][dual][object] */ + + +EXTERN_C const IID IID_IBlockRangeList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B507CA26-2204-11DD-966A-001AA01BBC58") + IBlockRangeList : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockRanges( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBlockRangeListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBlockRangeList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBlockRangeList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBlockRangeList * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBlockRangeList * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBlockRangeList * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBlockRangeList * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBlockRangeList * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBlockRangeList, get_BlockRanges) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockRanges )( + __RPC__in IBlockRangeList * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *value); + + END_INTERFACE + } IBlockRangeListVtbl; + + interface IBlockRangeList + { + CONST_VTBL struct IBlockRangeListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBlockRangeList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBlockRangeList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBlockRangeList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBlockRangeList_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBlockRangeList_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBlockRangeList_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBlockRangeList_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBlockRangeList_get_BlockRanges(This,value) \ + ( (This)->lpVtbl -> get_BlockRanges(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBlockRangeList_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2_0000_0032 */ +/* [local] */ + + +// +// IMAPIv2 version information for TYPELib loading +// +#define IMAPILib2_MajorVersion 1 +#define IMAPILib2_MinorVersion 0 +#define LIBID_IMAPILib2 LIBID_IMAPI2 + + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0032_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0032_v0_0_s_ifspec; + + +#ifndef __IMAPI2_LIBRARY_DEFINED__ +#define __IMAPI2_LIBRARY_DEFINED__ + +/* library IMAPI2 */ +/* [helpstring][version][uuid] */ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +EXTERN_C const IID LIBID_IMAPI2; + +EXTERN_C const CLSID CLSID_MsftDiscMaster2; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2735412E-7F64-5B0F-8F00-5D77AFBE261E") +MsftDiscMaster2; +#endif + +EXTERN_C const CLSID CLSID_MsftDiscRecorder2; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2735412D-7F64-5B0F-8F00-5D77AFBE261E") +MsftDiscRecorder2; +#endif + +EXTERN_C const CLSID CLSID_MsftWriteEngine2; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2735412C-7F64-5B0F-8F00-5D77AFBE261E") +MsftWriteEngine2; +#endif + +EXTERN_C const CLSID CLSID_MsftDiscFormat2Erase; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2735412B-7F64-5B0F-8F00-5D77AFBE261E") +MsftDiscFormat2Erase; +#endif + +EXTERN_C const CLSID CLSID_MsftDiscFormat2Data; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2735412A-7F64-5B0F-8F00-5D77AFBE261E") +MsftDiscFormat2Data; +#endif + +EXTERN_C const CLSID CLSID_MsftDiscFormat2TrackAtOnce; + +#ifdef __cplusplus + +class DECLSPEC_UUID("27354129-7F64-5B0F-8F00-5D77AFBE261E") +MsftDiscFormat2TrackAtOnce; +#endif + +EXTERN_C const CLSID CLSID_MsftDiscFormat2RawCD; + +#ifdef __cplusplus + +class DECLSPEC_UUID("27354128-7F64-5B0F-8F00-5D77AFBE261E") +MsftDiscFormat2RawCD; +#endif + +EXTERN_C const CLSID CLSID_MsftStreamZero; + +#ifdef __cplusplus + +class DECLSPEC_UUID("27354127-7F64-5B0F-8F00-5D77AFBE261E") +MsftStreamZero; +#endif + +EXTERN_C const CLSID CLSID_MsftStreamPrng001; + +#ifdef __cplusplus + +class DECLSPEC_UUID("27354126-7F64-5B0F-8F00-5D77AFBE261E") +MsftStreamPrng001; +#endif + +EXTERN_C const CLSID CLSID_MsftStreamConcatenate; + +#ifdef __cplusplus + +class DECLSPEC_UUID("27354125-7F64-5B0F-8F00-5D77AFBE261E") +MsftStreamConcatenate; +#endif + +EXTERN_C const CLSID CLSID_MsftStreamInterleave; + +#ifdef __cplusplus + +class DECLSPEC_UUID("27354124-7F64-5B0F-8F00-5D77AFBE261E") +MsftStreamInterleave; +#endif + +EXTERN_C const CLSID CLSID_MsftWriteSpeedDescriptor; + +#ifdef __cplusplus + +class DECLSPEC_UUID("27354123-7F64-5B0F-8F00-5D77AFBE261E") +MsftWriteSpeedDescriptor; +#endif + +EXTERN_C const CLSID CLSID_MsftMultisessionSequential; + +#ifdef __cplusplus + +class DECLSPEC_UUID("27354122-7F64-5B0F-8F00-5D77AFBE261E") +MsftMultisessionSequential; +#endif + +EXTERN_C const CLSID CLSID_MsftMultisessionRandomWrite; + +#ifdef __cplusplus + +class DECLSPEC_UUID("B507CA24-2204-11DD-966A-001AA01BBC58") +MsftMultisessionRandomWrite; +#endif + +EXTERN_C const CLSID CLSID_MsftRawCDImageCreator; + +#ifdef __cplusplus + +class DECLSPEC_UUID("25983561-9D65-49CE-B335-40630D901227") +MsftRawCDImageCreator; +#endif +#endif /* __IMAPI2_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_imapi2_0000_0033 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0033_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2_0000_0033_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2.idl new file mode 100644 index 0000000000000000000000000000000000000000..74c07a15498f6c8481992b276c333c3c9fc85556 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2.idl @@ -0,0 +1,2739 @@ +/* Copyright (c) Microsoft Corporation. All rights reserved. */ +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +import "oaidl.idl"; // what are these, and why are they needed? +import "ocidl.idl"; // what are these, and why are they needed? +//import "stdole32.tlb"; +import "propidl.idl"; // what are these, and why are they needed? +import "oleidl.idl"; +import "objidl.idl"; + +/* +#ifndef DEVICE_TYPE + #define DEVICE_TYPE ULONG // ntddstor doesn't define this +#endif +#define _NTSCSI_USER_MODE_ 1 // CDBs and such only +#include // CDB and similiar +#include // STORAGE_DEVICE_DESCRIPTOR and similiar +*/ + +// NAMING OF INTERFACES: +// Use IDescriptiveName for dual or v-table only interfaces +// Use DDescriptiveName for IDispatch-only interfaces + +// All interfaces here are scriptable unless otherwise noted: +interface IDiscMaster2; +interface IDiscRecorder2; +interface IDiscRecorder2Ex; +interface IWriteEngine2; +interface IWriteEngine2EventArgs; +interface IDiscFormat2; +interface IDiscFormat2Erase; +interface IDiscFormat2Data; +interface IDiscFormat2DataEventArgs; +interface IDiscFormat2TrackAtOnce; +interface IDiscFormat2TrackAtOnceEventArgs; +interface IDiscFormat2RawCD; +interface IDiscFormat2RawCDEventArgs; +interface IBurnVerification; +interface IWriteSpeedDescriptor; +interface IMultisession; +interface IMultisessionSequential; +interface IMultisessionRandomWrite; +interface IRawCDImageCreator; +interface IRawCDImageTrackInfo; + + +// NOTE: Event interfaces cannot be dual if supported by VB or IE. +interface DDiscMaster2Events; +//interface DDiscRecorder2Events; +interface DWriteEngine2Events; +interface DDiscFormat2EraseEvents; +interface DDiscFormat2DataEvents; +interface DDiscFormat2TrackAtOnceEvents; +interface DDiscFormat2RawCDEvents; + + +const ULONG IMAPI_SECTOR_SIZE = 2048; + +cpp_quote("#define IMAPI2_DEFAULT_COMMAND_TIMEOUT 10") + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000002), + helpstring( "Physical type of the optical media" ), + public +] +typedef enum _IMAPI_MEDIA_PHYSICAL_TYPE { + [ helpstring( "Media not present or unrecognized" ) ] IMAPI_MEDIA_TYPE_UNKNOWN = 0x00, + [ helpstring( "CD-ROM media" ) ] IMAPI_MEDIA_TYPE_CDROM = 0x01, + [ helpstring( "CD-R media" ) ] IMAPI_MEDIA_TYPE_CDR = 0x02, + [ helpstring( "CD-RW media" ) ] IMAPI_MEDIA_TYPE_CDRW = 0x03, + [ helpstring( "DVD-ROM media" ) ] IMAPI_MEDIA_TYPE_DVDROM = 0x04, + [ helpstring( "DVD-RAM media" ) ] IMAPI_MEDIA_TYPE_DVDRAM = 0x05, + [ helpstring( "DVD+R media" ) ] IMAPI_MEDIA_TYPE_DVDPLUSR = 0x06, + [ helpstring( "DVD+RW media" ) ] IMAPI_MEDIA_TYPE_DVDPLUSRW = 0x07, + [ helpstring( "DVD+R dual layer media" ) ] IMAPI_MEDIA_TYPE_DVDPLUSR_DUALLAYER = 0x08, + [ helpstring( "DVD-R media" ) ] IMAPI_MEDIA_TYPE_DVDDASHR = 0x09, + [ helpstring( "DVD-RW media" ) ] IMAPI_MEDIA_TYPE_DVDDASHRW = 0x0A, + [ helpstring( "DVD-R dual layer media" ) ] IMAPI_MEDIA_TYPE_DVDDASHR_DUALLAYER = 0x0B, + [ helpstring( "Randomly writable media" ) ] IMAPI_MEDIA_TYPE_DISK = 0x0C, + [ helpstring( "DVD+RW dual layer media" ) ] IMAPI_MEDIA_TYPE_DVDPLUSRW_DUALLAYER = 0x0D, + [ helpstring( "HD DVD-ROM media" ) ] IMAPI_MEDIA_TYPE_HDDVDROM = 0x0E, + [ helpstring( "HD DVD-R media" ) ] IMAPI_MEDIA_TYPE_HDDVDR = 0x0F, + [ helpstring( "HD DVD-RAM media" ) ] IMAPI_MEDIA_TYPE_HDDVDRAM = 0x10, + [ helpstring( "BD-ROM media" ) ] IMAPI_MEDIA_TYPE_BDROM = 0x11, + [ helpstring( "BD-R media" ) ] IMAPI_MEDIA_TYPE_BDR = 0x12, + [ helpstring( "BD-RE media" ) ] IMAPI_MEDIA_TYPE_BDRE = 0x13, + [ helpstring( "Max value for a media type" ) ] IMAPI_MEDIA_TYPE_MAX = 0x13, +} IMAPI_MEDIA_PHYSICAL_TYPE, *PIMAPI_MEDIA_PHYSICAL_TYPE; + +// this should be a FLAGS setting... how to mark this as such in IDL???? +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000003), + helpstring( "Detected write protection type of the media" ), + public +] +typedef enum _IMAPI_MEDIA_WRITE_PROTECT_STATE { + [ helpstring( "Software Write Protected Until Powerdown" ) ] IMAPI_WRITEPROTECTED_UNTIL_POWERDOWN = 0x0001, // (all media) READ_DVD_STRUCTURE format C0h; Timeout and Protect Mode Page + [ helpstring( "Cartridge Write Protect" ) ] IMAPI_WRITEPROTECTED_BY_CARTRIDGE = 0x0002, // (DVD media) READ_DVD_STRUCTURE formats C0h, 09h + [ helpstring( "Media Specific Write Inhibit" ) ] IMAPI_WRITEPROTECTED_BY_MEDIA_SPECIFIC_REASON = 0x0004, // (DVD media) READ_DVD_STRUCTURE formats C0h, 09h + [ helpstring( "Persistent Write Protect" ) ] IMAPI_WRITEPROTECTED_BY_SOFTWARE_WRITE_PROTECT = 0x0008, // (DVD media) READ_DVD_STRUCTURE format C0h + [ helpstring( "Write Inhibit by Disc Control Block" ) ] IMAPI_WRITEPROTECTED_BY_DISC_CONTROL_BLOCK = 0x0010, // ( DVD+RW? ) READ_DVD_STRUCTURE format 30h + [ helpstring( "Read-only media" ) ] IMAPI_WRITEPROTECTED_READ_ONLY_MEDIA = 0x4000, // (all media) The basic media type is read-only +} IMAPI_MEDIA_WRITE_PROTECT_STATE, *PIMAPI_MEDIA_WRITE_PROTECT_STATE; + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000004), + helpstring( "Address type provided for reading track information" ), + public +] +typedef enum _IMAPI_READ_TRACK_ADDRESS_TYPE { + [ helpstring( "Read track information by providing an LBA in the track" ) ] IMAPI_READ_TRACK_ADDRESS_TYPE_LBA = 0, + [ helpstring( "Read track information by providing the track number" ) ] IMAPI_READ_TRACK_ADDRESS_TYPE_TRACK = 1, + [ helpstring( "Read track information for the first track in the provided session number" ) ] IMAPI_READ_TRACK_ADDRESS_TYPE_SESSION = 2, +} IMAPI_READ_TRACK_ADDRESS_TYPE, *PIMAPI_READ_TRACK_ADDRESS_TYPE; + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000005), + helpstring( "Mode page data type to request" ), + public +] +typedef enum _IMAPI_MODE_PAGE_REQUEST_TYPE { + [ helpstring( "Request the current mode page" ) ] IMAPI_MODE_PAGE_REQUEST_TYPE_CURRENT_VALUES = 0, + [ helpstring( "Request the changeable bitmask for a mode page" ) ] IMAPI_MODE_PAGE_REQUEST_TYPE_CHANGEABLE_VALUES = 1, + [ helpstring( "Request the default mode page" ) ] IMAPI_MODE_PAGE_REQUEST_TYPE_DEFAULT_VALUES = 2, + [ helpstring( "Request the saved mode page (if supported by device)" ) ] IMAPI_MODE_PAGE_REQUEST_TYPE_SAVED_VALUES = 3, +} IMAPI_MODE_PAGE_REQUEST_TYPE, *PIMAPI_MODE_PAGE_REQUEST_TYPE; + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000006), + helpstring( "Type of the mode page data" ), + public +] +typedef enum _IMAPI_MODE_PAGE_TYPE +{ + [ helpstring( "The parameters to use for error recovery during read and write operations") ] + IMAPI_MODE_PAGE_TYPE_READ_WRITE_ERROR_RECOVERY = 0x01, + [ helpstring( "Mt. Rainier (MRW) mode page for controlling MRW-specific features") ] + IMAPI_MODE_PAGE_TYPE_MRW = 0x03, + [ helpstring( "The parameters required to setup writing to and from some legacy media types") ] + IMAPI_MODE_PAGE_TYPE_WRITE_PARAMETERS = 0x05, + [ helpstring( "The parameters to enable or disable the use of caching for read and/or write operations") ] + IMAPI_MODE_PAGE_TYPE_CACHING = 0x08, + [ helpstring( "The parameters for exception reporting mechanisms which result in specific sense codes errors when failures are predicted") ] + IMAPI_MODE_PAGE_TYPE_INFORMATIONAL_EXCEPTIONS = 0x1C, //? + [ helpstring( "Default timeouts for commands") ] + IMAPI_MODE_PAGE_TYPE_TIMEOUT_AND_PROTECT = 0x1D, + [ helpstring( "The parameters which define how long the logical unit delays before changing its power state") ] + IMAPI_MODE_PAGE_TYPE_POWER_CONDITION = 0x1A, + [ helpstring( "Legacy device capabilities, superceded by the feature pages returned by GetConfiguration command") ] + IMAPI_MODE_PAGE_TYPE_LEGACY_CAPABILITIES = 0x2A, +} IMAPI_MODE_PAGE_TYPE, *PIMAPI_MODE_PAGE_TYPE; + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000006), + helpstring( "Type of the feature page data" ), + public +] +typedef enum _IMAPI_FEATURE_PAGE_TYPE +{ + IMAPI_FEATURE_PAGE_TYPE_PROFILE_LIST = 0x0000, + IMAPI_FEATURE_PAGE_TYPE_CORE = 0x0001, + IMAPI_FEATURE_PAGE_TYPE_MORPHING = 0x0002, + IMAPI_FEATURE_PAGE_TYPE_REMOVABLE_MEDIUM = 0x0003, + IMAPI_FEATURE_PAGE_TYPE_WRITE_PROTECT = 0x0004, + IMAPI_FEATURE_PAGE_TYPE_RANDOMLY_READABLE = 0x0010, + IMAPI_FEATURE_PAGE_TYPE_CD_MULTIREAD = 0x001D, + IMAPI_FEATURE_PAGE_TYPE_CD_READ = 0x001E, + IMAPI_FEATURE_PAGE_TYPE_DVD_READ = 0x001F, + IMAPI_FEATURE_PAGE_TYPE_RANDOMLY_WRITABLE = 0x0020, + IMAPI_FEATURE_PAGE_TYPE_INCREMENTAL_STREAMING_WRITABLE = 0x0021, + IMAPI_FEATURE_PAGE_TYPE_SECTOR_ERASABLE = 0x0022, + IMAPI_FEATURE_PAGE_TYPE_FORMATTABLE = 0x0023, + IMAPI_FEATURE_PAGE_TYPE_HARDWARE_DEFECT_MANAGEMENT = 0x0024, + IMAPI_FEATURE_PAGE_TYPE_WRITE_ONCE = 0x0025, + IMAPI_FEATURE_PAGE_TYPE_RESTRICTED_OVERWRITE = 0x0026, + IMAPI_FEATURE_PAGE_TYPE_CDRW_CAV_WRITE = 0x0027, + IMAPI_FEATURE_PAGE_TYPE_MRW = 0x0028, + IMAPI_FEATURE_PAGE_TYPE_ENHANCED_DEFECT_REPORTING = 0x0029, + IMAPI_FEATURE_PAGE_TYPE_DVD_PLUS_RW = 0x002A, + IMAPI_FEATURE_PAGE_TYPE_DVD_PLUS_R = 0x002B, + IMAPI_FEATURE_PAGE_TYPE_RIGID_RESTRICTED_OVERWRITE = 0x002C, + IMAPI_FEATURE_PAGE_TYPE_CD_TRACK_AT_ONCE = 0x002D, + IMAPI_FEATURE_PAGE_TYPE_CD_MASTERING = 0x002E, + IMAPI_FEATURE_PAGE_TYPE_DVD_DASH_WRITE = 0x002F, + IMAPI_FEATURE_PAGE_TYPE_DOUBLE_DENSITY_CD_READ = 0x0030, + IMAPI_FEATURE_PAGE_TYPE_DOUBLE_DENSITY_CD_R_WRITE = 0x0031, + IMAPI_FEATURE_PAGE_TYPE_DOUBLE_DENSITY_CD_RW_WRITE = 0x0032, + IMAPI_FEATURE_PAGE_TYPE_LAYER_JUMP_RECORDING = 0x0033, + IMAPI_FEATURE_PAGE_TYPE_CD_RW_MEDIA_WRITE_SUPPORT = 0x0037, + IMAPI_FEATURE_PAGE_TYPE_BD_PSEUDO_OVERWRITE = 0x0038, + IMAPI_FEATURE_PAGE_TYPE_DVD_PLUS_R_DUAL_LAYER = 0x003B, + IMAPI_FEATURE_PAGE_TYPE_BD_READ = 0x0040, + IMAPI_FEATURE_PAGE_TYPE_BD_WRITE = 0x0041, + IMAPI_FEATURE_PAGE_TYPE_HD_DVD_READ = 0x0050, + IMAPI_FEATURE_PAGE_TYPE_HD_DVD_WRITE = 0x0051, + IMAPI_FEATURE_PAGE_TYPE_POWER_MANAGEMENT = 0x0100, + IMAPI_FEATURE_PAGE_TYPE_SMART = 0x0101, + IMAPI_FEATURE_PAGE_TYPE_EMBEDDED_CHANGER = 0x0102, + IMAPI_FEATURE_PAGE_TYPE_CD_ANALOG_PLAY = 0x0103, + IMAPI_FEATURE_PAGE_TYPE_MICROCODE_UPDATE = 0x0104, + IMAPI_FEATURE_PAGE_TYPE_TIMEOUT = 0x0105, + IMAPI_FEATURE_PAGE_TYPE_DVD_CSS = 0x0106, + IMAPI_FEATURE_PAGE_TYPE_REAL_TIME_STREAMING = 0x0107, + IMAPI_FEATURE_PAGE_TYPE_LOGICAL_UNIT_SERIAL_NUMBER = 0x0108, + IMAPI_FEATURE_PAGE_TYPE_MEDIA_SERIAL_NUMBER = 0x0109, + IMAPI_FEATURE_PAGE_TYPE_DISC_CONTROL_BLOCKS = 0x010A, + IMAPI_FEATURE_PAGE_TYPE_DVD_CPRM = 0x010B, + IMAPI_FEATURE_PAGE_TYPE_FIRMWARE_INFORMATION = 0x010C, + IMAPI_FEATURE_PAGE_TYPE_AACS = 0x010D, + IMAPI_FEATURE_PAGE_TYPE_VCPS = 0x0110, +} IMAPI_FEATURE_PAGE_TYPE, *PIMAPI_FEATURE_PAGE_TYPE; + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000006), + helpstring( "Type of the profile in feature page data" ), + public +] +typedef enum _IMAPI_PROFILE_TYPE +{ + IMAPI_PROFILE_TYPE_INVALID = 0x0000, + IMAPI_PROFILE_TYPE_NON_REMOVABLE_DISK = 0x0001, + IMAPI_PROFILE_TYPE_REMOVABLE_DISK = 0x0002, + IMAPI_PROFILE_TYPE_MO_ERASABLE = 0x0003, + IMAPI_PROFILE_TYPE_MO_WRITE_ONCE = 0x0004, + IMAPI_PROFILE_TYPE_AS_MO = 0x0005, + // Reserved 0x0006 - 0x0007 + IMAPI_PROFILE_TYPE_CDROM = 0x0008, + IMAPI_PROFILE_TYPE_CD_RECORDABLE = 0x0009, + IMAPI_PROFILE_TYPE_CD_REWRITABLE = 0x000A, + // Reserved 0x000B - 0x000F + IMAPI_PROFILE_TYPE_DVDROM = 0x0010, + IMAPI_PROFILE_TYPE_DVD_DASH_RECORDABLE = 0x0011, + IMAPI_PROFILE_TYPE_DVD_RAM = 0x0012, + IMAPI_PROFILE_TYPE_DVD_DASH_REWRITABLE = 0x0013, + IMAPI_PROFILE_TYPE_DVD_DASH_RW_SEQUENTIAL = 0x0014, + IMAPI_PROFILE_TYPE_DVD_DASH_R_DUAL_SEQUENTIAL = 0x0015, + IMAPI_PROFILE_TYPE_DVD_DASH_R_DUAL_LAYER_JUMP = 0x0016, + // Reserved 0x0017 - 0x0019 + IMAPI_PROFILE_TYPE_DVD_PLUS_RW = 0x001A, + IMAPI_PROFILE_TYPE_DVD_PLUS_R = 0x001B, + // Reserved 0x001B - 001F + IMAPI_PROFILE_TYPE_DDCDROM = 0x0020, + IMAPI_PROFILE_TYPE_DDCD_RECORDABLE = 0x0021, + IMAPI_PROFILE_TYPE_DDCD_REWRITABLE = 0x0022, + // Reserved 0x0023 - 0x0029 + IMAPI_PROFILE_TYPE_DVD_PLUS_RW_DUAL = 0x002A, + IMAPI_PROFILE_TYPE_DVD_PLUS_R_DUAL = 0x002B, + // Reserved 0x002C - 0x003F + IMAPI_PROFILE_TYPE_BD_ROM = 0x0040, + IMAPI_PROFILE_TYPE_BD_R_SEQUENTIAL = 0x0041, + IMAPI_PROFILE_TYPE_BD_R_RANDOM_RECORDING = 0x0042, + IMAPI_PROFILE_TYPE_BD_REWRITABLE = 0x0043, + // Reserved 0x0044 - 0x004F + IMAPI_PROFILE_TYPE_HD_DVD_ROM = 0x0050, + IMAPI_PROFILE_TYPE_HD_DVD_RECORDABLE = 0x0051, + IMAPI_PROFILE_TYPE_HD_DVD_RAM = 0x0052, + // Reserved 0x0053 - 0xFFFE + IMAPI_PROFILE_TYPE_NON_STANDARD = 0xFFFF, +} IMAPI_PROFILE_TYPE, *PIMAPI_PROFILE_TYPE; + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000006), + helpstring( "The current action being performed for the data write" ), + public +] +typedef enum _IMAPI_FORMAT2_DATA_WRITE_ACTION +{ + [helpstring("Validating the current media is supported")] + IMAPI_FORMAT2_DATA_WRITE_ACTION_VALIDATING_MEDIA = 0x00, + [helpstring("Formatting media, when required (i.e. DVD+RW)")] + IMAPI_FORMAT2_DATA_WRITE_ACTION_FORMATTING_MEDIA = 0x01, + [helpstring("Initializing the drive")] + IMAPI_FORMAT2_DATA_WRITE_ACTION_INITIALIZING_HARDWARE = 0x02, + [helpstring("Calibrating the drive's write power")] + IMAPI_FORMAT2_DATA_WRITE_ACTION_CALIBRATING_POWER = 0x03, + [helpstring("Writing user data to the media")] + IMAPI_FORMAT2_DATA_WRITE_ACTION_WRITING_DATA = 0x04, + [helpstring("Finalizing the media (synchronizing the cache, closing tracks/sessions, etc.")] + IMAPI_FORMAT2_DATA_WRITE_ACTION_FINALIZATION = 0x05, + [helpstring("The write process has completed")] + IMAPI_FORMAT2_DATA_WRITE_ACTION_COMPLETED = 0x06, + [helpstring("Performing requested burn verification")] + IMAPI_FORMAT2_DATA_WRITE_ACTION_VERIFYING = 0x07, +} IMAPI_FORMAT2_DATA_WRITE_ACTION, *PIMAPI_FORMAT2_DATA_WRITE_ACTION; + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000006), + helpstring( "Set of flags to indicate current media state" ), + public +] +typedef enum _IMAPI_FORMAT2_DATA_MEDIA_STATE +{ + [hidden, helpstring("Unknown")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_UNKNOWN = 0x0000, + [helpstring("Mask of 'supported/informational' media flags")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_INFORMATIONAL_MASK = 0x000F, + [helpstring("Mask of 'not supported' media flags")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_UNSUPPORTED_MASK = 0xFC00, + + [helpstring("Media may only be overwritten")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_OVERWRITE_ONLY = 0x0001, + IMAPI_FORMAT2_DATA_MEDIA_STATE_RANDOMLY_WRITABLE = 0x0001, // deprecated, need to replace usage + + [helpstring("Media is blank")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_BLANK = 0x0002, + [helpstring("Media is appendable")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_APPENDABLE = 0x0004, + [helpstring("Media may only be written to one more time, or does not support multiple sessions")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_FINAL_SESSION = 0x0008, + + [helpstring("Media is not usable by data writer (may require erase or other recovery)")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_DAMAGED = 0x0400, + [helpstring("Media must be erased before use")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_ERASE_REQUIRED = 0x0800, + [helpstring("Media has a partially written last session, which is not supported")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_NON_EMPTY_SESSION = 0x1000, + [helpstring("Media (or drive) is write protected")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_WRITE_PROTECTED = 0x2000, + [helpstring("Media cannot be written to (finalized)")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_FINALIZED = 0x4000, + [helpstring("Media is not supported by data writer")] + IMAPI_FORMAT2_DATA_MEDIA_STATE_UNSUPPORTED_MEDIA = 0x8000, + + +} IMAPI_FORMAT2_DATA_MEDIA_STATE, *PIMAPI_FORMAT2_DATA_MEDIA_STATE; + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000007), + helpstring( "Current action when writing to CD in Track-at-Once mode" ), + public +] +typedef enum _IMAPI_FORMAT2_TAO_WRITE_ACTION +{ + [hidden, helpstring("Unknown")] + IMAPI_FORMAT2_TAO_WRITE_ACTION_UNKNOWN = 0x0000, + [helpstring("Preparing to write track")] + IMAPI_FORMAT2_TAO_WRITE_ACTION_PREPARING = 0x0001, + [helpstring("writing the track")] + IMAPI_FORMAT2_TAO_WRITE_ACTION_WRITING = 0x0002, + [helpstring("closing the track")] + IMAPI_FORMAT2_TAO_WRITE_ACTION_FINISHING = 0x0003, + [helpstring("verifying track data")] + IMAPI_FORMAT2_TAO_WRITE_ACTION_VERIFYING = 0x0004, +} IMAPI_FORMAT2_TAO_WRITE_ACTION, *PIMAPI_FORMAT2_TAO_WRITE_ACTION; + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000008), + helpstring( "Data sector type to use when writing to CD in Disc-At-Once (RAW) mode" ), + public +] +typedef enum _IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE +{ + [helpstring("Raw Main Channel P an Q Sub-channel data (type 0x01)")] + IMAPI_FORMAT2_RAW_CD_SUBCODE_PQ_ONLY = 0x0001, + [helpstring("Raw Main Channel With Cooked P-W Subcode (type 0x02)")] + IMAPI_FORMAT2_RAW_CD_SUBCODE_IS_COOKED = 0x0002, + [helpstring("Raw Main Channel With Raw P-W Subcode (type 0x03)")] + IMAPI_FORMAT2_RAW_CD_SUBCODE_IS_RAW = 0x0003, +} IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE, *PIMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE; + +[ + v1_enum, + //uuid(e2ae82b7-229d-4428-b3d2-500000000009), + helpstring( "Current action when writing to the CD in Disc-At-Once (RAW) mode" ), + public +] +typedef enum _IMAPI_FORMAT2_RAW_CD_WRITE_ACTION +{ + [hidden, helpstring("Unknown")] + IMAPI_FORMAT2_RAW_CD_WRITE_ACTION_UNKNOWN = 0x0000, + [helpstring("Preparing to write media")] + IMAPI_FORMAT2_RAW_CD_WRITE_ACTION_PREPARING = 0x0001, + [helpstring("writing the media")] + IMAPI_FORMAT2_RAW_CD_WRITE_ACTION_WRITING = 0x0002, + [helpstring("finishing writing the media")] + IMAPI_FORMAT2_RAW_CD_WRITE_ACTION_FINISHING = 0x0003, +} IMAPI_FORMAT2_RAW_CD_WRITE_ACTION, *PIMAPI_FORMAT2_RAW_CD_WRITE_ACTION; + +[ + v1_enum, + //uuid(2598354F-9D65-49CE-B335-40630D901227), + helpstring( "The CD sector type for provided data" ), + public +] +typedef enum _IMAPI_CD_SECTOR_TYPE { + [ helpstring( "2352 bytes per sector of audio data" ) ] IMAPI_CD_SECTOR_AUDIO = 0x00, + [ helpstring( "2336 bytes per sector of zeros, rare" ) ] IMAPI_CD_SECTOR_MODE_ZERO = 0x01, + [ helpstring( "2048 bytes per sector of user data" ) ] IMAPI_CD_SECTOR_MODE1 = 0x02, + [ helpstring( "2336 bytes per sector, rare XA form" ) ] IMAPI_CD_SECTOR_MODE2FORM0 = 0x03, + [ helpstring( "2048 bytes per sector, data XA form" ) ] IMAPI_CD_SECTOR_MODE2FORM1 = 0x04, + [ helpstring( "2336 bytes per sector, VideoCD form" ) ] IMAPI_CD_SECTOR_MODE2FORM2 = 0x05, + [ helpstring( "2352 bytes per sector, Mode1 data (with EDC/ECC/scrambling)" ) ] IMAPI_CD_SECTOR_MODE1RAW = 0x06, + [ helpstring( "2352 bytes per sector, Mode2Form0 data (with EDC/ECC/scrambling)" ) ] IMAPI_CD_SECTOR_MODE2FORM0RAW = 0x07, + [ helpstring( "2352 bytes per sector, Mode2Form1 data (with EDC/ECC/scrambling)" ) ] IMAPI_CD_SECTOR_MODE2FORM1RAW = 0x08, + [ helpstring( "2352 bytes per sector, Mode2Form2 data (with EDC/ECC/scrambling)" ) ] IMAPI_CD_SECTOR_MODE2FORM2RAW = 0x09, +} IMAPI_CD_SECTOR_TYPE, *PIMAPI_CD_SECTOR_TYPE; + +[ + v1_enum, + //uuid(2598354E-9D65-49CE-B335-40630D901227), + helpstring( "The audio track digital copy setting" ), + public +] +typedef enum _IMAPI_CD_TRACK_DIGITAL_COPY_SETTING { + [ helpstring( "Digital Copies Allowed" ) ] IMAPI_CD_TRACK_DIGITAL_COPY_PERMITTED = 0x00, + [ helpstring( "Digital Copies Not Allowed" ) ] IMAPI_CD_TRACK_DIGITAL_COPY_PROHIBITED = 0x01, + [ helpstring( "Copy of an Original Copy Prohibited Track" ) ] IMAPI_CD_TRACK_DIGITAL_COPY_SCMS = 0x02, +} IMAPI_CD_TRACK_DIGITAL_COPY_SETTING, *PIMAPI_CD_TRACK_DIGITAL_COPY_SETTING; + +[ + v1_enum, + helpstring( "Burn verification level" ), + public +] +typedef enum _IMAPI_BURN_VERIFICATION_LEVEL { + [ helpstring( "No write verification" ) ] IMAPI_BURN_VERIFICATION_NONE = 0, + [ helpstring( "Quick write verification" ) ] IMAPI_BURN_VERIFICATION_QUICK = 1, + [ helpstring( "Full write verification" ) ] IMAPI_BURN_VERIFICATION_FULL = 2, +} IMAPI_BURN_VERIFICATION_LEVEL, *PIMAPI_BURN_VERIFICATION_LEVEL; + + +cpp_quote("// begin_wpp config") +cpp_quote("// CUSTOM_TYPE(IMAPI_MEDIA_PHYSICAL_TYPE, ItemEnum(_IMAPI_MEDIA_PHYSICAL_TYPE));") +cpp_quote("// CUSTOM_TYPE(IMAPI_MEDIA_WRITE_PROTECT_STATE, ItemEnum(_IMAPI_MEDIA_WRITE_PROTECT_STATE));") +cpp_quote("// CUSTOM_TYPE(IMAPI_READ_TRACK_ADDRESS_TYPE, ItemEnum(_IMAPI_READ_TRACK_ADDRESS_TYPE));") +cpp_quote("// CUSTOM_TYPE(IMAPI_MODE_PAGE_REQUEST_TYPE, ItemEnum(_IMAPI_MODE_PAGE_REQUEST_TYPE));") +cpp_quote("// CUSTOM_TYPE(IMAPI_MODE_PAGE_TYPE, ItemEnum(_IMAPI_MODE_PAGE_TYPE));") +cpp_quote("// CUSTOM_TYPE(IMAPI_FEATURE_PAGE_TYPE, ItemEnum(_IMAPI_FEATURE_PAGE_TYPE));") +cpp_quote("// CUSTOM_TYPE(IMAPI_PROFILE_TYPE, ItemEnum(_IMAPI_PROFILE_TYPE));") +cpp_quote("// CUSTOM_TYPE(IMAPI_FORMAT2_DATA_WRITE_ACTION, ItemEnum(_IMAPI_FORMAT2_DATA_WRITE_ACTION));") +cpp_quote("// CUSTOM_TYPE(IMAPI_FORMAT2_DATA_MEDIA_STATE, ItemEnum(_IMAPI_FORMAT2_DATA_MEDIA_STATE));") +cpp_quote("// CUSTOM_TYPE(IMAPI_FORMAT2_TAO_WRITE_ACTION, ItemEnum(_IMAPI_FORMAT2_TAO_WRITE_ACTION));") +cpp_quote("// CUSTOM_TYPE(IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE, ItemEnum(_IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE));") +cpp_quote("// CUSTOM_TYPE(IMAPI_FORMAT2_RAW_CD_WRITE_ACTION, ItemEnum(_IMAPI_FORMAT2_RAW_CD_WRITE_ACTION));") +cpp_quote("// CUSTOM_TYPE(IMAPI_CD_SECTOR_DATA_TYPE, ItemEnum(_IMAPI_CD_SECTOR_TYPE));") +cpp_quote("// CUSTOM_TYPE(IMAPI_CD_TRACK_DIGITAL_COPY_SETTING, ItemEnum(_IMAPI_CD_TRACK_DIGITAL_COPY_SETTING));") +cpp_quote("// CUSTOM_TYPE(IMAPI_BURN_VERIFICATION_LEVEL, ItemEnum(_IMAPI_BURN_VERIFICATION_LEVEL));") +cpp_quote("// end_wpp") + +//////////////////////////////////////////////////////////////////////////////// +[ + object, nonextensible, + dual, + uuid(27354130-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("IDiscMaster2 is used to get an enumerator for the set of CD/DVD (optical) devices on the system") +] +interface IDiscMaster2 : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(DISPID_NEWENUM), + hidden, restricted, + helpstring("Enumerates the list of CD/DVD devices on the system (VT_BSTR)") + ] + HRESULT _NewEnum( [out,ref,retval] IEnumVARIANT ** ppunk ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(DISPID_VALUE), + helpstring("Gets a single recorder's ID (ZERO BASED INDEX)") + ] + HRESULT Item( [in] LONG index, [out,ref,retval] BSTR * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(1), + helpstring("The current number of recorders in the system.") + ] + HRESULT Count( [out,ref,retval] LONG * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(2), + helpstring("Whether IMAPI is running in an environment with optical devices and permission to access them.") + ] + HRESULT IsSupportedEnvironment( [out,ref,retval] VARIANT_BOOL * value ); +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_DDISCMASTER2EVENTS_DEVICEADDED 0x100") +cpp_quote("#define DISPID_DDISCMASTER2EVENTS_DEVICEREMOVED 0x101") +[ + object, nonextensible, + oleautomation, + uuid(27354131-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Provides notification of the arrival/removal of CD/DVD (optical) devices.") +] +interface DDiscMaster2Events : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + id(0x100), + helpstring("A device was added to the system") + ] + HRESULT NotifyDeviceAdded( + [in] IDispatch /* IDiscMaster2 */ * object, + [in] BSTR uniqueId + ); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x101), + helpstring("A device was removed from the system") + ] + HRESULT NotifyDeviceRemoved( + [in] IDispatch /* IDiscMaster2 */ * object, + [in] BSTR uniqueId + ); +} +//////////////////////////////////////////////////////////////////////////////// +// to help properly describe output possibilities, a few typedef's are +// required for IDR2Ex. In each case, clients can just pass a ULONG. +// this also greatly assists PREfix/PREfast validation, by creating +// more appropriate SAL annotations. +// Need to describe here because IDL cannot have an out parameter +// properly described as having a valid range unless it's typedef'd. + +// DVD structure size is limited to 64k due to two-byte allocation field +typedef [range(0,0x0000FFFF)] ULONG ULONG_IMAPI2_DVD_STRUCTURE ; +// Adapter/Device descriptor are not implicitly limited in size +typedef [range(0,0x0FFFFFFF)] ULONG ULONG_IMAPI2_ADAPTER_DESCRIPTOR ; +typedef [range(0,0x0FFFFFFF)] ULONG ULONG_IMAPI2_DEVICE_DESCRIPTOR ; +// Disc/Track information are limited to 64k+2 due to two-byte size field +typedef [range(0,0x00010002)] ULONG ULONG_IMAPI2_DISC_INFORMATION ; +typedef [range(0,0x00010002)] ULONG ULONG_IMAPI2_TRACK_INFORMATION ; +// A single feature page is limited to 252 + 4 bytes +typedef [range(0,0x00000100)] ULONG ULONG_IMAPI2_FEATURE_PAGE ; +// A single mode page is limited in size 255 + 2 bytes +typedef [range(0,0x00000101)] ULONG ULONG_IMAPI2_MODE_PAGE ; +// The number of features is limited to a two-byte field +typedef [range(0,0x00010000)] ULONG ULONG_IMAPI2_ALL_FEATURE_PAGES ; +// The number of profiles obtainable is how many fit into a single feature +// A single feature can hold 252 additional bytes of data. Each profile +// takes exactly four bytes. So, the maximum count is 252/4 == 0x3F +typedef [range(0,0x0000003F)] ULONG ULONG_IMAPI2_ALL_PROFILES ; +// All mode pages, via MODE_SENSE10, is limited to two-byte size field +// Mode parameter header is 8 bytes, and each page is at least two bytes +// So, the maximum count of pages is (0xFFFF - 8) / 2 == 0x7FFB +typedef [range(0,0x00007FFB)] ULONG ULONG_IMAPI2_ALL_MODE_PAGES ; +// This is just the generic "anything but zero is OK" value +typedef [range(1,0x7FFFFFFF)] ULONG ULONG_IMAPI2_NONZERO ; +// This is just the generic "everything that isn't negative" value +typedef [range(0,0x7FFFFFFF)] ULONG ULONG_IMAPI2_NOT_NEGATIVE ; + +//////////////////////////////////////////////////////////////////////////////// +[ + object, + uuid(27354132-7F64-5B0F-8F00-5D77AFBE261E), + // To generate Async_IDiscRecorder2Ex interface: + // async_uuid(e2ae82b7-229d-4428-b3d2-00000001FFFF), + pointer_default(unique), + helpstring("Represents a single CD/DVD type device, enabling additional commands requiring advanced marshalling code.") +] +interface IDiscRecorder2Ex : IUnknown +{ + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Send a command to the device that does not transfer any data") + ] + HRESULT SendCommandNoData( + [in,ref,size_is(CdbSize)] BYTE * Cdb, // NOTE -- why not use CDB? not supporting >16 bytes anyways + [in,range(6,16)] ULONG CdbSize, + [out,ref] BYTE SenseBuffer[18], // NOTE -- use SENSE_DATA structure + [in] ULONG Timeout + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Send a command to the device that requires data sent to the device") + ] + HRESULT SendCommandSendDataToDevice( + [in,ref,size_is(CdbSize)] BYTE * Cdb, // NOTE -- why not use CDB? not supporting >16 bytes anyways + [in,range(6,16)] ULONG CdbSize, + [out,ref] BYTE SenseBuffer[18], // NOTE -- use SENSE_DATA structure + [in] ULONG Timeout, + [in,ref,size_is(BufferSize)] BYTE * Buffer, + [in] ULONG_IMAPI2_NONZERO BufferSize + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Send a command to the device that requests data from the device") + ] + HRESULT SendCommandGetDataFromDevice( + [in,ref,size_is(CdbSize)] BYTE * Cdb, // NOTE -- why not use CDB? not supporting >16 bytes anyways + [in,range(6,16)] ULONG CdbSize, + [out,ref] BYTE SenseBuffer[18], // NOTE -- use SENSE_DATA structure + [in] ULONG Timeout, + [out,ref,size_is(BufferSize),length_is(*BufferFetched)] BYTE * Buffer, + [in] ULONG_IMAPI2_NONZERO BufferSize, + [out,ref] ULONG_IMAPI2_NOT_NEGATIVE * BufferFetched + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Read a DVD Structure from the media") + ] + HRESULT ReadDvdStructure( + [in,range(0,0xFF)] ULONG format, + [in] ULONG address, + [in,range(0,0xFF)] ULONG layer, + [in,range(0,0x03)] ULONG agid, + [out,ref,size_is(,*count)] BYTE ** data, + [out,ref] ULONG_IMAPI2_DVD_STRUCTURE * count + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Send a DVD Structure to the media") + ] + HRESULT SendDvdStructure( + [in,range(0,0xFF)] ULONG format, + [in,ref,size_is(count)] BYTE * data, + [in] ULONG_IMAPI2_DVD_STRUCTURE count + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Get the full adapter descriptor (via IOCTL_STORAGE_QUERY_PROPERTY).") + ] + HRESULT GetAdapterDescriptor( + [out,ref,size_is(,*byteSize)] BYTE ** data, + [out,ref] ULONG_IMAPI2_ADAPTER_DESCRIPTOR * byteSize + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Get the full device descriptor (via IOCTL_STORAGE_QUERY_PROPERTY).") + ] + HRESULT GetDeviceDescriptor( + [out,ref,size_is(,*byteSize)] BYTE ** data, + [out,ref] ULONG_IMAPI2_DEVICE_DESCRIPTOR * byteSize + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Gets data from a READ_DISC_INFORMATION command") + ] + HRESULT GetDiscInformation( + [out,ref,size_is(,*byteSize)] BYTE ** discInformation, + [out,ref] ULONG_IMAPI2_DISC_INFORMATION * byteSize + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Gets data from a READ_TRACK_INFORMATION command") + ] + HRESULT GetTrackInformation( + [in] ULONG address, + [in] IMAPI_READ_TRACK_ADDRESS_TYPE addressType, + [out,ref,size_is(,*byteSize)] BYTE ** trackInformation, + [out,ref] ULONG_IMAPI2_TRACK_INFORMATION * byteSize + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Gets a feature's data from a GET_CONFIGURATION command") + ] + HRESULT GetFeaturePage( + [in] IMAPI_FEATURE_PAGE_TYPE requestedFeature, + [in] BOOLEAN currentFeatureOnly, + [out,ref,size_is(,*byteSize)] BYTE ** featureData, + [out,ref] ULONG_IMAPI2_FEATURE_PAGE * byteSize + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Gets data from a MODE_SENSE10 command") + ] + HRESULT GetModePage( + [in] IMAPI_MODE_PAGE_TYPE requestedModePage, + [in] IMAPI_MODE_PAGE_REQUEST_TYPE requestType, + [out,ref,size_is(,*byteSize)] BYTE ** modePageData, + [out,ref] ULONG_IMAPI2_MODE_PAGE * byteSize + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Sets mode page data using MODE_SELECT10 command") + ] + HRESULT SetModePage( + [in] IMAPI_MODE_PAGE_REQUEST_TYPE requestType, + [in,ref,size_is(byteSize)] BYTE * data, + [in] ULONG_IMAPI2_MODE_PAGE byteSize + ); + + // The following functions are supported here to allow easy access by + // C/C++ clients. They also exist in a IDiscRecorder2 (scriptable) as properties. + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Gets a list of all feature pages supported by the device") + ] + HRESULT GetSupportedFeaturePages( + [in] BOOLEAN currentFeatureOnly, + [out,ref,size_is(,*byteSize)] IMAPI_FEATURE_PAGE_TYPE ** featureData, + [out,ref] ULONG_IMAPI2_ALL_FEATURE_PAGES * byteSize + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Gets a list of all PROFILES supported by the device") + ] + HRESULT GetSupportedProfiles( + [in] BOOLEAN currentOnly, + [out,ref,size_is(,*validProfiles)] IMAPI_PROFILE_TYPE ** profileTypes, + [out,ref] ULONG_IMAPI2_ALL_PROFILES * validProfiles + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Gets a list of all MODE PAGES supported by the device") + ] + HRESULT GetSupportedModePages( + [in] IMAPI_MODE_PAGE_REQUEST_TYPE requestType, + [out,ref,size_is(,*validPages)] IMAPI_MODE_PAGE_TYPE ** modePageTypes, + [out,ref] ULONG_IMAPI2_ALL_MODE_PAGES * validPages + ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("The byte alignment requirement mask for this device.") + ] + HRESULT GetByteAlignmentMask( [out,ref,retval] ULONG * value ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("The maximum non-page-aligned transfer size for this device.") + ] + HRESULT GetMaximumNonPageAlignedTransferSize( [out,ref,retval] ULONG * value ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("The maximum non-page-aligned transfer size for this device.") + ] + HRESULT GetMaximumPageAlignedTransferSize( [out,ref,retval] ULONG * value ); +} + +cpp_quote("#define DISPID_IDISCRECORDER2_EJECTMEDIA 0x100") +cpp_quote("#define DISPID_IDISCRECORDER2_CLOSETRAY 0x101") +cpp_quote("#define DISPID_IDISCRECORDER2_ACQUIREEXCLUSIVEACCESS 0x102") +cpp_quote("#define DISPID_IDISCRECORDER2_RELEASEEXCLUSIVEACCESS 0x103") +cpp_quote("#define DISPID_IDISCRECORDER2_DISABLEMCN 0x104") +cpp_quote("#define DISPID_IDISCRECORDER2_ENABLEMCN 0x105") +cpp_quote("#define DISPID_IDISCRECORDER2_INITIALIZEDISCRECORDER 0x106") +cpp_quote("#define DISPID_IDISCRECORDER2_ACTIVEDISCRECORDER DISPID_VALUE") +cpp_quote("#define DISPID_IDISCRECORDER2_VENDORID 0x201") +cpp_quote("#define DISPID_IDISCRECORDER2_PRODUCTID 0x202") +cpp_quote("#define DISPID_IDISCRECORDER2_PRODUCTREVISION 0x203") +cpp_quote("#define DISPID_IDISCRECORDER2_VOLUMENAME 0x204") +cpp_quote("#define DISPID_IDISCRECORDER2_VOLUMEPATHNAMES 0x205") +cpp_quote("#define DISPID_IDISCRECORDER2_DEVICECANLOADMEDIA 0x206") +cpp_quote("#define DISPID_IDISCRECORDER2_LEGACYDEVICENUMBER 0x207") +cpp_quote("#define DISPID_IDISCRECORDER2_SUPPORTEDFEATUREPAGES 0x208") +cpp_quote("#define DISPID_IDISCRECORDER2_CURRENTFEATUREPAGES 0x209") +cpp_quote("#define DISPID_IDISCRECORDER2_SUPPORTEDPROFILES 0x20A") +cpp_quote("#define DISPID_IDISCRECORDER2_CURRENTPROFILES 0x20B") +cpp_quote("#define DISPID_IDISCRECORDER2_SUPPORTEDMODEPAGES 0x20C") +cpp_quote("#define DISPID_IDISCRECORDER2_EXCLUSIVEACCESSOWNER 0x20D") +[ + object, nonextensible, + dual, + uuid(27354133-7F64-5B0F-8F00-5D77AFBE261E), + // To generate Async_IDiscRecorder2 interface: + // async_uuid(e2ae82b7-229d-4428-b3d2-000000010006), + pointer_default(unique), + helpstring("Represents a single CD/DVD type device, and enables many common operations via a simplified API.") +] +interface IDiscRecorder2 : IDispatch +{ + + [ ////////////////////////////////////////////////////////////////////////// + id(0x100), + helpstring("Ejects the media (if any) and opens the tray") + ] + HRESULT EjectMedia(void); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x101), + helpstring("Close the media tray and load any media in the tray.") + ] + HRESULT CloseTray(void); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x102), + helpstring("Acquires exclusive access to device. May be called multiple times.") + ] + HRESULT AcquireExclusiveAccess( [in] VARIANT_BOOL force, [in] BSTR ); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x103), + helpstring("Releases exclusive access to device. Call once per AcquireExclusiveAccess().") + ] + HRESULT ReleaseExclusiveAccess(); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x104), + helpstring("Disables Media Change Notification (MCN).") + ] + HRESULT DisableMcn(void); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x105), + helpstring("Re-enables Media Change Notification after a call to DisableMcn()") + ] + HRESULT EnableMcn(void); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x106), + helpstring("Initialize the recorder, opening a handle to the specified recorder.") + ] + HRESULT InitializeDiscRecorder( [in] BSTR recorderUniqueId ); + + //////////////////////////////////////////////////////////////////////////// + // properties.... + //////////////////////////////////////////////////////////////////////////// + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(DISPID_VALUE), // the default property + helpstring("The unique ID used to initialize the recorder.") + ] + HRESULT ActiveDiscRecorder( [out,ref,retval] BSTR * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x201), + helpstring("The vendor ID in the device's INQUIRY data.") + ] + HRESULT VendorId( [out,ref,retval] BSTR * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x202), + helpstring("The Product ID in the device's INQUIRY data.") + ] + HRESULT ProductId( [out,ref,retval] BSTR * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x203), + helpstring("The Product Revision in the device's INQUIRY data.") + ] + HRESULT ProductRevision( [out,ref,retval] BSTR * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x204), + helpstring("Get the unique volume name (this is not a drive letter).") + ] + HRESULT VolumeName( [out,ref,retval] BSTR * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x205), + helpstring("Drive letters and NTFS mount points to access the recorder.") + ] + HRESULT VolumePathNames( [out,ref,retval] SAFEARRAY(VARIANT) * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x206), + helpstring("Gets whether the device can load the media tray") + ] + HRESULT DeviceCanLoadMedia( [out,ref,retval] VARIANT_BOOL * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x207), + helpstring("Gets the legacy 'device number' associated with the recorder. This number is not guaranteed to be static.") + ] + HRESULT LegacyDeviceNumber([out,ref,retval] LONG * legacyDeviceNumber + ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x208), + helpstring("Gets a list of all feature pages supported by the device") + ] + HRESULT SupportedFeaturePages( [out,ref,retval] SAFEARRAY(VARIANT) * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x209), + helpstring("Gets a list of all feature pages with 'current' bit set to true") + ] + HRESULT CurrentFeaturePages( [out,ref,retval] SAFEARRAY(VARIANT) * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x20A), + helpstring("Gets a list of all profiles supported by the device") + ] + HRESULT SupportedProfiles( [out,ref,retval] SAFEARRAY(VARIANT) * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x20B), + helpstring("Gets a list of all profiles with 'currentP' bit set to true") + ] + HRESULT CurrentProfiles( [out,ref,retval] SAFEARRAY(VARIANT) * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x20C), + helpstring("Gets a list of all MODE PAGES supported by the device") + ] + HRESULT SupportedModePages( [out,ref,retval] SAFEARRAY(VARIANT) * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x20D), + helpstring("Queries the device to determine who, if anyone, has acquired exclusive access") + ] + HRESULT ExclusiveAccessOwner( [out,ref,retval] BSTR * value ); +} + +//////////////////////////////////////////////////////////////////////////////// +//[ +// object, nonextensible, +// oleautomation, +// uuid(27354134-7F64-5B0F-8F00-5D77AFBE261E), +// pointer_default(unique), +// helpstring("Provides notifications of per-device events (PNP, media, etc) via a simplified API.") +//] +//interface DDiscRecorder2Events : IDispatch +//{ +// [helpstring("All DBT_CUSTOMEVENT events, unprocessed and unfiltered.")] +// HRESULT NotifyAllCustomEvents(); +// [helpstring("DBT_CUSTOMEVENT, type GUID_IO_MEDIA_ARRIVAL")] +// HRESULT NotifyMediaArrival(); +// [helpstring("DBT_CUSTOMEVENT, type GUID_IO_MEDIA_REMOVAL, media actually removed")] +// HRESULT NotifyMediaRemoval(); +// [helpstring("DBT_CUSTOMEVENT, type GUID_IO_MEDIA_REMOVAL, media not available due to legacy applications")] +// HRESULT NotifyMediaUnavailable(); +//} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IWRITEENGINE2_WRITESECTION 0x200") +cpp_quote("#define DISPID_IWRITEENGINE2_CANCELWRITE 0x201") +cpp_quote("#define DISPID_IWRITEENGINE2_DISCRECORDER 0x100") +cpp_quote("#define DISPID_IWRITEENGINE2_USESTREAMINGWRITE12 0x101") +cpp_quote("#define DISPID_IWRITEENGINE2_STARTINGSECTORSPERSECOND 0x102") +cpp_quote("#define DISPID_IWRITEENGINE2_ENDINGSECTORSPERSECOND 0x103") +cpp_quote("#define DISPID_IWRITEENGINE2_BYTESPERSECTOR 0x104") +cpp_quote("#define DISPID_IWRITEENGINE2_WRITEINPROGRESS 0x105") +[ + object, nonextensible, + dual, + uuid(27354135-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Write Engine") +] +interface IWriteEngine2 : IDispatch +{ + //// METHODS //// + + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Writes data provided in the IStream to the device") + ] + HRESULT WriteSection( + [in] IStream* data, + [in] LONG startingBlockAddress, + [in] LONG numberOfBlocks + ); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x201), + helpstring("Cancels the current write operation") + ] + HRESULT CancelWrite(); + + //// PROPERTIES //// + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x100), + helpstring("The disc recorder to use") + ] + HRESULT Recorder( [in] IDiscRecorder2Ex* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("The disc recorder to use") + ] + HRESULT Recorder( [out,ref,retval] IDiscRecorder2Ex** value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x101), + helpstring("If true, uses WRITE12 with the AV bit set to one; else uses WRITE10") + ] + HRESULT UseStreamingWrite12( [in] VARIANT_BOOL value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x101), + helpstring("If true, uses WRITE12 with the AV bit set to one; else uses WRITE10") + ] + HRESULT UseStreamingWrite12( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x102), + helpstring("The approximate number of sectors per second the device can write at the start of the write process. This is used to optimize sleep time in the write engine.") + ] + HRESULT StartingSectorsPerSecond( [in] LONG value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x102), + helpstring("The approximate number of sectors per second the device can write at the start of the write process. This is used to optimize sleep time in the write engine.") + ] + HRESULT StartingSectorsPerSecond( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x103), + helpstring("The approximate number of sectors per second the device can write at the end of the write process. This is used to optimize sleep time in the write engine.") + ] + HRESULT EndingSectorsPerSecond( [in] LONG value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x103), + helpstring("The approximate number of sectors per second the device can write at the end of the write process. This is used to optimize sleep time in the write engine.") + ] + HRESULT EndingSectorsPerSecond( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x104), + helpstring("The number of bytes to use for each sector during writing.") + ] + HRESULT BytesPerSector( [in] LONG value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x104), + helpstring("The number of bytes to use for each sector during writing.") + ] + HRESULT BytesPerSector( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x105), + helpstring("Simple check to see if the object is currently writing to media.") + ] + HRESULT WriteInProgress( [out,ref,retval] VARIANT_BOOL* value ); +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IWRITEENGINE2EVENTARGS_STARTLBA 0x100") +cpp_quote("#define DISPID_IWRITEENGINE2EVENTARGS_SECTORCOUNT 0x101") +cpp_quote("#define DISPID_IWRITEENGINE2EVENTARGS_LASTREADLBA 0x102") +cpp_quote("#define DISPID_IWRITEENGINE2EVENTARGS_LASTWRITTENLBA 0x103") +cpp_quote("#define DISPID_IWRITEENGINE2EVENTARGS_TOTALDEVICEBUFFER 0x104") +cpp_quote("#define DISPID_IWRITEENGINE2EVENTARGS_USEDDEVICEBUFFER 0x105") +cpp_quote("#define DISPID_IWRITEENGINE2EVENTARGS_TOTALSYSTEMBUFFER 0x106") +cpp_quote("#define DISPID_IWRITEENGINE2EVENTARGS_USEDSYSTEMBUFFER 0x107") +cpp_quote("#define DISPID_IWRITEENGINE2EVENTARGS_FREESYSTEMBUFFER 0x108") +[ + object, nonextensible, + dual, + uuid(27354136-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("CD Write Engine") +] +interface IWriteEngine2EventArgs : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("The starting logical block address for the current write operation.") + ] + HRESULT StartLba( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x101), + helpstring("The number of sectors being written for the current write operation.") + ] + HRESULT SectorCount( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x102), + helpstring("The last logical block address of data read for the current write operation.") + ] + HRESULT LastReadLba( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x103), + helpstring("The last logical block address of data written for the current write operation") + ] + HRESULT LastWrittenLba( [out,ref,retval] LONG* value ); + + //[ ////////////////////////////////////////////////////////////////////////// + // propget, id(0x104), + // helpstring("The total bytes available on the device's internal buffer") + //] + //HRESULT TotalDeviceBuffer( [out,ref,retval] LONG* value ); + + //[ ////////////////////////////////////////////////////////////////////////// + // propget, id(0x105), + // helpstring("The number of bytes used on the device's internal buffer") + //] + //HRESULT UsedDeviceBuffer( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x106), + helpstring("The total bytes available in the system's cache buffer") + ] + HRESULT TotalSystemBuffer( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x107), + helpstring("The used bytes in the system's cache buffer") + ] + HRESULT UsedSystemBuffer( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x108), + helpstring("The free bytes in the system's cache buffer") + ] + HRESULT FreeSystemBuffer( [out,ref,retval] LONG* value ); +} +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_DWRITEENGINE2EVENTS_UPDATE 0x100") +[ + object, nonextensible, + oleautomation, + uuid(27354137-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Provides notification of the progress of the WriteEngine2 writing.") +] +interface DWriteEngine2Events : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + id(0x100), + helpstring("Update to current progress") + ] + HRESULT Update( [in] IDispatch /* IWriteEngine2 */ * object, [in] IDispatch /* IWriteEngine2EventArgs */ * progress ); +} +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IDISCFORMAT2_RECORDERSUPPORTED 0x800") +cpp_quote("#define DISPID_IDISCFORMAT2_MEDIASUPPORTED 0x801") +cpp_quote("#define DISPID_IDISCFORMAT2_MEDIAPHYSICALLYBLANK 0x700") +cpp_quote("#define DISPID_IDISCFORMAT2_MEDIAHEURISTICALLYBLANK 0x701") +cpp_quote("#define DISPID_IDISCFORMAT2_SUPPORTEDMEDIATYPES 0x702") + +[ + object, nonextensible, + dual, + uuid(27354152-8F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Common Disc Format (writer) Operations") +] +interface IDiscFormat2 : IDispatch +{ + //// METHODS //// + [ ////////////////////////////////////////////////////////////////////////// + id(0x800), + helpstring("Determines if the recorder object supports the given format") + ] + HRESULT IsRecorderSupported([in] IDiscRecorder2 * recorder, [out, ref, retval] VARIANT_BOOL* value); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x801), + helpstring("Determines if the current media in a supported recorder object supports the given format") + ] + HRESULT IsCurrentMediaSupported([in] IDiscRecorder2 * recorder, [out, ref, retval] VARIANT_BOOL* value); + + //// PROPERTIES //// + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x700), + helpstring("Determines if the current media is reported as physically blank by the drive") + ] + HRESULT MediaPhysicallyBlank([out, ref, retval] VARIANT_BOOL* value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x701), + helpstring("Attempts to determine if the media is blank using heuristics (mainly for DVD+RW and DVD-RAM media)") + ] + HRESULT MediaHeuristicallyBlank([out, ref, retval] VARIANT_BOOL* value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x702), + helpstring("Supported media types") + ] + HRESULT SupportedMediaTypes([out,ref,retval] SAFEARRAY(VARIANT) *value); +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IDISCFORMAT2ERASE_RECORDER 0x100") +cpp_quote("#define DISPID_IDISCFORMAT2ERASE_FULLERASE 0x101") +cpp_quote("#define DISPID_IDISCFORMAT2ERASE_MEDIATYPE 0x102") +cpp_quote("#define DISPID_IDISCFORMAT2ERASE_CLIENTNAME 0x103") +cpp_quote("#define DISPID_IDISCFORMAT2ERASE_ERASEMEDIA 0x201") +[ + object, nonextensible, + dual, + uuid(27354156-8F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Optical media erase") +] +interface IDiscFormat2Erase : IDiscFormat2 +{ + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x100), + helpstring("Sets the recorder object to use for an erase operation") + ] + HRESULT Recorder([in] IDiscRecorder2 * value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("Gets the recorder object to use for an erase operation") + ] + HRESULT Recorder([out,ref,retval] IDiscRecorder2 ** value); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x101), + helpstring("Gets the recorder object to use for an erase operation") + ] + HRESULT FullErase( [in] VARIANT_BOOL value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x101), + helpstring("Gets the recorder object to use for an erase operation") + ] + HRESULT FullErase( [out,ref,retval] VARIANT_BOOL * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x102), + helpstring("Get the current physical media type.") + ] + HRESULT CurrentPhysicalMediaType( [out,ref,retval] IMAPI_MEDIA_PHYSICAL_TYPE * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x103), + helpstring("The friendly name of the client (used to determine recorder reservation conflicts).") + ] + HRESULT ClientName( [in] BSTR value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x103), + helpstring("The friendly name of the client (used to determine recorder reservation conflicts).") + ] + HRESULT ClientName( [out,ref,retval] BSTR* value ); + + + [ ////////////////////////////////////////////////////////////////////////// + id(0x201), + helpstring("Erases the media in the active disc recorder") + ] + HRESULT EraseMedia(); +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IDISCFORMAT2ERASEEVENTS_UPDATE 0x200") +[ + object, nonextensible, + oleautomation, + uuid(2735413A-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Provides notification of media erase progress.") +] +interface DDiscFormat2EraseEvents : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Erase progress") + ] + HRESULT Update( [in] IDispatch /* IDiscFormat2Erase */ * object, [in] LONG elapsedSeconds, [in] LONG estimatedTotalSeconds); +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IDISCFORMAT2DATA_RECORDER 0x100") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_BUFFERUNDERRUNFREEDISABLED 0x101") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_POSTGAPALREADYINIMAGE 0x104") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_CURRENTMEDIASTATUS 0x106") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_WRITEPROTECTSTATUS 0x107") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_TOTALSECTORS 0x108") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_FREESECTORS 0x109") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_NEXTWRITABLEADDRESS 0x10A") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_STARTSECTOROFPREVIOUSSESSION 0x10B") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_LASTSECTOROFPREVIOUSSESSION 0x10C") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_FORCEMEDIATOBECLOSED 0x10D") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_DISABLEDVDCOMPATIBILITYMODE 0x10E") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_CURRENTMEDIATYPE 0x10F") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_CLIENTNAME 0x110") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_REQUESTEDWRITESPEED 0x111") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_REQUESTEDROTATIONTYPEISPURECAV 0x112") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_CURRENTWRITESPEED 0x113") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_CURRENTROTATIONTYPEISPURECAV 0x114") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_SUPPORTEDWRITESPEEDS 0x115") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_SUPPORTEDWRITESPEEDDESCRIPTORS 0x116") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_FORCEOVERWRITE 0x117") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_MUTLISESSIONINTERFACES 0x118") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_WRITE 0x200") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_CANCELWRITE 0x201") +cpp_quote("#define DISPID_IDISCFORMAT2DATA_SETWRITESPEED 0x202") +[ + object, nonextensible, + dual, + uuid(27354153-9F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Data Writer") +] +interface IDiscFormat2Data : IDiscFormat2 +{ + //// PROPERTIES //// + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x100), + helpstring("The disc recorder to use") + ] + HRESULT Recorder( [in] IDiscRecorder2* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("The disc recorder to use") + ] + HRESULT Recorder( [out,ref,retval] IDiscRecorder2** value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x101), + helpstring("Buffer Underrun Free recording should be disabled") + ] + HRESULT BufferUnderrunFreeDisabled( [in] VARIANT_BOOL value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x101), + helpstring("Buffer Underrun Free recording should be disabled") + ] + HRESULT BufferUnderrunFreeDisabled( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x104), + helpstring("Postgap is included in image") + ] + HRESULT PostgapAlreadyInImage( [in] VARIANT_BOOL value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x104), + helpstring("Postgap is included in image") + ] + HRESULT PostgapAlreadyInImage( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x106), + helpstring("The state (usability) of the current media") + ] + HRESULT CurrentMediaStatus( [out,ref,retval] IMAPI_FORMAT2_DATA_MEDIA_STATE *value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x107), + helpstring("The write protection state of the current media.") + ] + HRESULT WriteProtectStatus( [out,ref,retval] IMAPI_MEDIA_WRITE_PROTECT_STATE *value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x108), + helpstring("Total sectors available on the media (used + free).") + ] + HRESULT TotalSectorsOnMedia( [out,ref,retval] LONG * value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x109), + helpstring("Free sectors available on the media.") + ] + HRESULT FreeSectorsOnMedia( [out,ref,retval] LONG * value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10A), + helpstring("Next writable address on the media (also used sectors).") + ] + HRESULT NextWritableAddress( [out,ref,retval] LONG * value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10B), + helpstring("The first sector in the previous session on the media.") + ] + HRESULT StartAddressOfPreviousSession([out,ref,retval] LONG * value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10C), + helpstring("The last sector in the previous session on the media.") + ] + HRESULT LastWrittenAddressOfPreviousSession([out,ref,retval] LONG * value); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x10D), + helpstring("Prevent further additions to the file system") + ] + HRESULT ForceMediaToBeClosed( [in] VARIANT_BOOL value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10D), + helpstring("Prevent further additions to the file system") + ] + HRESULT ForceMediaToBeClosed( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x10E), + helpstring("Default is to maximize compatibility with DVD-ROM. May be disabled to reduce time to finish writing the disc or increase usable space on the media for later writing.") + ] + HRESULT DisableConsumerDvdCompatibilityMode( [in] VARIANT_BOOL value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10E), + helpstring("Default is to maximize compatibility with DVD-ROM. May be disabled to reduce time to finish writing the disc or increase usable space on the media for later writing.") + ] + HRESULT DisableConsumerDvdCompatibilityMode( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10F), + helpstring("Get the current physical media type.") + ] + HRESULT CurrentPhysicalMediaType( [out,ref,retval] IMAPI_MEDIA_PHYSICAL_TYPE * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x110), + helpstring("The friendly name of the client (used to determine recorder reservation conflicts).") + ] + HRESULT ClientName( [in] BSTR value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x110), + helpstring("The friendly name of the client (used to determine recorder reservation conflicts).") + ] + HRESULT ClientName( [out,ref,retval] BSTR* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x111), + helpstring("The last requested write speed.") + ] + HRESULT RequestedWriteSpeed( [out,ref,retval] LONG* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x112), + helpstring("The last requested rotation type.") + ] + HRESULT RequestedRotationTypeIsPureCAV( [out,ref,retval] VARIANT_BOOL* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x113), + helpstring("The drive's current write speed.") + ] + HRESULT CurrentWriteSpeed( [out,ref,retval] LONG* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x114), + helpstring("The drive's current rotation type.") + ] + HRESULT CurrentRotationTypeIsPureCAV( [out,ref,retval] VARIANT_BOOL* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x115), + helpstring("Gets an array of the write speeds supported for the attached disc recorder and current media") + ] + HRESULT SupportedWriteSpeeds( [out,ref,retval] SAFEARRAY(VARIANT) *supportedSpeeds); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x116), + helpstring("Gets an array of the detailed write configurations supported for the attached disc recorder and current media") + ] + HRESULT SupportedWriteSpeedDescriptors( [out,ref,retval] SAFEARRAY(VARIANT) *supportedSpeedDescriptors); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x117), + helpstring("Forces the Datawriter to overwrite the disc on overwritable media types") + ] + HRESULT ForceOverwrite( [in] VARIANT_BOOL value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x117), + helpstring("Forces the Datawriter to overwrite the disc on overwritable media types") + ] + HRESULT ForceOverwrite( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x118), + helpstring("Returns the array of available multi-session interfaces. The array shall not be empty") + ] + HRESULT MultisessionInterfaces([out,ref,retval] SAFEARRAY(VARIANT) *value); + + + //// METHODS //// + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Writes all the data provided in the IStream to the device") + ] + HRESULT Write( + [in] IStream* data + ); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x201), + helpstring("Cancels the current write operation") + ] + HRESULT CancelWrite(); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x202), + helpstring("Sets the write speed (in sectors per second) of the attached disc recorder") + ] + HRESULT SetWriteSpeed([in] LONG RequestedSectorsPerSecond, [in] VARIANT_BOOL RotationTypeIsPureCAV); + +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_DDISCFORMAT2DATAEVENTS_UPDATE 0x200") +[ + object, nonextensible, + oleautomation, + uuid(2735413C-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Data Writer") +] +interface DDiscFormat2DataEvents : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Update to current progress") + ] + HRESULT Update( [in] IDispatch /* IDiscFormat2Data */ * object, [in] IDispatch /* IDiscFormat2DataEventArgs */ * progress ); +} + +//////////////////////////////////////////////////////////////////////////////// +// note: dispid's 0x100-0x2FF are for IWriteEngine2EventArgs +cpp_quote("#define DISPID_IDISCFORMAT2DATAEVENTARGS_ELAPSEDTIME 0x300") +cpp_quote("#define DISPID_IDISCFORMAT2DATAEVENTARGS_ESTIMATEDREMAININGTIME 0x301") +cpp_quote("#define DISPID_IDISCFORMAT2DATAEVENTARGS_ESTIMATEDTOTALTIME 0x302") +cpp_quote("#define DISPID_IDISCFORMAT2DATAEVENTARGS_CURRENTACTION 0x303") +[ + object, nonextensible, + dual, + uuid(2735413D-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Track-at-once Data Writer") +] +interface IDiscFormat2DataEventArgs : IWriteEngine2EventArgs +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x300), + helpstring("The total elapsed time for the current write operation.") + ] + HRESULT ElapsedTime( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x301), + helpstring("The estimated time remaining for the write operation.") + ] + HRESULT RemainingTime( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x302), + helpstring("The estimated total time for the write operation.") + ] + HRESULT TotalTime( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x303), + helpstring("The current write action.") + ] + HRESULT CurrentAction( [out,ref,retval] IMAPI_FORMAT2_DATA_WRITE_ACTION* value ); + +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IDISCFORMAT2TAO_RECORDER 0x100") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_BUFFERUNDERRUNFREEDISABLED 0x102") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_NUMBEROFEXISTINGTRACKS 0x103") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_TOTALSECTORSONMEDIA 0x104") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_FREESECTORSONMEDIA 0x105") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_USEDSECTORSONMEDIA 0x106") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_DONOTFINALIZEMEDIA 0x107") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_EXPECTEDTABLEOFCONTENTS 0x10A") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_CURRENTMEDIATYPE 0x10B") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_CLIENTNAME 0x10E") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_REQUESTEDWRITESPEED 0x10F") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_REQUESTEDROTATIONTYPEISPURECAV 0x110") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_CURRENTWRITESPEED 0x111") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_CURRENTROTATIONTYPEISPURECAV 0x112") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_SUPPORTEDWRITESPEEDS 0x113") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_SUPPORTEDWRITESPEEDDESCRIPTORS 0x114") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_PREPAREMEDIA 0x200") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_ADDAUDIOTRACK 0x201") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_CANCELADDTRACK 0x202") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_FINISHMEDIA 0x203") +cpp_quote("#define DISPID_IDISCFORMAT2TAO_SETWRITESPEED 0x204") +[ + object, nonextensible, + dual, + uuid(27354154-8F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("CD Track-at-Once Audio Writer") +] +interface IDiscFormat2TrackAtOnce : IDiscFormat2 +{ + //// METHODS //// + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Locks the current media for use by this writer.") + ] + HRESULT PrepareMedia(); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x201), + helpstring("Immediately writes a new audio track to the locked media.") + ] + HRESULT AddAudioTrack([in] IStream* data); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x202), + helpstring("Cancels the current addition of a track.") + ] + HRESULT CancelAddTrack(); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x203), + helpstring("Finishes use of the locked media.") + ] + HRESULT ReleaseMedia(); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x204), + helpstring("Sets the write speed (in sectors per second) of the attached disc recorder") + ] + HRESULT SetWriteSpeed([in] LONG RequestedSectorsPerSecond, [in] VARIANT_BOOL RotationTypeIsPureCAV); + + //// PROPERTIES //// + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x100), + helpstring("The disc recorder to use") + ] + HRESULT Recorder( [in] IDiscRecorder2* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("The disc recorder to use") + ] + HRESULT Recorder( [out,ref,retval] IDiscRecorder2** value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x102), + helpstring("Buffer Underrun Free recording should be disabled") + ] + HRESULT BufferUnderrunFreeDisabled( [in] VARIANT_BOOL value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x102), + helpstring("Buffer Underrun Free recording should be disabled") + ] + HRESULT BufferUnderrunFreeDisabled( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x103), + helpstring("Number of tracks already written to the locked media") + ] + HRESULT NumberOfExistingTracks( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x104), + helpstring("Total sectors available on locked media if writing one continuous audio track") + ] + HRESULT TotalSectorsOnMedia( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x105), + helpstring("Number of sectors available for adding a new track to the media") + ] + HRESULT FreeSectorsOnMedia( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x106), + helpstring("Number of sectors used on the locked media, including overhead (space between tracks)") + ] + HRESULT UsedSectorsOnMedia( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x107), + helpstring("Set the media to be left 'open' after writing, to allow multisession discs.") + ] + HRESULT DoNotFinalizeMedia( [in] VARIANT_BOOL value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x107), + helpstring("Set the media to be left 'open' after writing, to allow multisession discs.") + ] + HRESULT DoNotFinalizeMedia( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10A), + helpstring("The expected TOC if the media is closed without adding additional tracks.") + ] + HRESULT ExpectedTableOfContents( [out,ref,retval] SAFEARRAY(VARIANT) *value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10B), + helpstring("Get the current physical media type.") + ] + HRESULT CurrentPhysicalMediaType( [out,ref,retval] IMAPI_MEDIA_PHYSICAL_TYPE * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x10E), + helpstring("The friendly name of the client (used to determine recorder reservation conflicts).") + ] + HRESULT ClientName( [in] BSTR value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10E), + helpstring("The friendly name of the client (used to determine recorder reservation conflicts).") + ] + HRESULT ClientName( [out,ref,retval] BSTR* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10F), + helpstring("The last requested write speed.") + ] + HRESULT RequestedWriteSpeed( [out,ref,retval] LONG* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x110), + helpstring("The last requested rotation type.") + ] + HRESULT RequestedRotationTypeIsPureCAV( [out,ref,retval] VARIANT_BOOL* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x111), + helpstring("The drive's current write speed.") + ] + HRESULT CurrentWriteSpeed( [out,ref,retval] LONG* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x112), + helpstring("The drive's current rotation type.") + ] + HRESULT CurrentRotationTypeIsPureCAV( [out,ref,retval] VARIANT_BOOL* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x113), + helpstring("Gets an array of the write speeds supported for the attached disc recorder and current media") + ] + HRESULT SupportedWriteSpeeds( [out,ref,retval] SAFEARRAY(VARIANT) *supportedSpeeds); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x114), + helpstring("Gets an array of the detailed write configurations supported for the attached disc recorder and current media") + ] + HRESULT SupportedWriteSpeedDescriptors( [out,ref,retval] SAFEARRAY(VARIANT) *supportedSpeedDescriptors); + +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_DDISCFORMAT2TAOEVENTS_UPDATE 0x200") +[ + object, nonextensible, + oleautomation, + uuid(2735413F-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("CD Track-at-Once Audio Writer Events") +] +interface DDiscFormat2TrackAtOnceEvents : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Update to current progress") + ] + HRESULT Update( [in] IDispatch /* IDiscFormat2TrackAtOnce */ * object, [in] IDispatch /* IDiscFormat2TrackAtOnceEventArgs */ * progress ); +} + +//////////////////////////////////////////////////////////////////////////////// +// note: dispid's 0x100-0x2FF are for IWriteEngine2EventArgs +cpp_quote("#define DISPID_IDISCFORMAT2TAOEVENTARGS_CURRENTTRACKNUMBER 0x300") +cpp_quote("#define DISPID_IDISCFORMAT2TAOEVENTARGS_CURRENTACTION 0x301") +cpp_quote("#define DISPID_IDISCFORMAT2TAOEVENTARGS_ELAPSEDTIME 0x302") +cpp_quote("#define DISPID_IDISCFORMAT2TAOEVENTARGS_ESTIMATEDREMAININGTIME 0x303") +cpp_quote("#define DISPID_IDISCFORMAT2TAOEVENTARGS_ESTIMATEDTOTALTIME 0x304") +[ + object, nonextensible, + dual, + uuid(27354140-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("CD Track-at-once Audio Writer Event Arguments") +] +interface IDiscFormat2TrackAtOnceEventArgs : IWriteEngine2EventArgs +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x300), + helpstring("The total elapsed time for the current write operation.") + ] + HRESULT CurrentTrackNumber( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x301), + helpstring("The current write action.") + ] + HRESULT CurrentAction( [out,ref,retval] IMAPI_FORMAT2_TAO_WRITE_ACTION* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x302), + helpstring("The elapsed time for the current track write or media finishing operation.") + ] + HRESULT ElapsedTime( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x303), + helpstring("The estimated time remaining for the current track write or media finishing operation.") + ] + HRESULT RemainingTime( [out,ref,retval] LONG* value ); +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_RECORDER 0x100") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_BUFFERUNDERRUNFREEDISABLED 0x102") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_STARTOFNEXTSESSION 0x103") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_LASTPOSSIBLESTARTOFLEADOUT 0x104") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_CURRENTMEDIATYPE 0x105") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_SUPPORTEDDATASECTORTYPES 0x108") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_REQUESTEDDATASECTORTYPE 0x109") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_CLIENTNAME 0x10A") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_REQUESTEDWRITESPEED 0x10B") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_REQUESTEDROTATIONTYPEISPURECAV 0x10C") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_CURRENTWRITESPEED 0x10D") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_CURRENTROTATIONTYPEISPURECAV 0x10E") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_SUPPORTEDWRITESPEEDS 0x10F") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_SUPPORTEDWRITESPEEDDESCRIPTORS 0x110") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_PREPAREMEDIA 0x200") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_WRITEMEDIA 0x201") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_WRITEMEDIAWITHVALIDATION 0x202") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_CANCELWRITE 0x203") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_RELEASEMEDIA 0x204") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCD_SETWRITESPEED 0x205") +[ + object, nonextensible, + dual, + uuid(27354155-8F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("CD Disc-At-Once RAW Writer") +] +interface IDiscFormat2RawCD : IDiscFormat2 +{ + //// METHODS //// + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Locks the current media for use by this writer.") + ] + HRESULT PrepareMedia(); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x201), + helpstring("Writes a RAW image that starts at 95:00:00 (MSF) to the currently inserted blank CD media.") + ] + HRESULT WriteMedia([in] IStream* data); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x202), + helpstring("Writes a RAW image to the currently inserted blank CD media. A stream starting at 95:00:00 (-5 minutes) would use 5*60*75 + 150 sectors pregap == 22,650 for the number of sectors") + ] + HRESULT WriteMedia2([in] IStream* data, [in] LONG streamLeadInSectors); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x203), + helpstring("Cancels the current write.") + ] + HRESULT CancelWrite(); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x204), + helpstring("Finishes use of the locked media.") + ] + HRESULT ReleaseMedia(); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x205), + helpstring("Sets the write speed (in sectors per second) of the attached disc recorder") + ] + HRESULT SetWriteSpeed([in] LONG RequestedSectorsPerSecond, [in] VARIANT_BOOL RotationTypeIsPureCAV); + + + //// PROPERTIES //// + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x100), + helpstring("The disc recorder to use") + ] + HRESULT Recorder( [in] IDiscRecorder2* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("The disc recorder to use") + ] + HRESULT Recorder( [out,ref,retval] IDiscRecorder2** value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x102), + helpstring("Buffer Underrun Free recording should be disabled") + ] + HRESULT BufferUnderrunFreeDisabled( [in] VARIANT_BOOL value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x102), + helpstring("Buffer Underrun Free recording should be disabled") + ] + HRESULT BufferUnderrunFreeDisabled( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x103), + helpstring("The first sector of the next session. May be negative for blank media.") + ] + HRESULT StartOfNextSession( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x104), + helpstring("The last possible start for the leadout area. Can be used to calculate available space on media.") + ] + HRESULT LastPossibleStartOfLeadout( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x105), + helpstring("Get the current physical media type.") + ] + HRESULT CurrentPhysicalMediaType( [out,ref,retval] IMAPI_MEDIA_PHYSICAL_TYPE * value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x108), + helpstring("Supported data sector types for the current recorder") + ] + HRESULT SupportedSectorTypes( [out,ref,retval] SAFEARRAY(VARIANT) *value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x109), + helpstring("Requested data sector to use during write of the stream") + ] + HRESULT RequestedSectorType( [in] IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x109), + helpstring("Requested data sector to use during write of the stream") + ] + HRESULT RequestedSectorType( [out,ref,retval] IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x10A), + helpstring("The friendly name of the client (used to determine recorder reservation conflicts).") + ] + HRESULT ClientName( [in] BSTR value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10A), + helpstring("The friendly name of the client (used to determine recorder reservation conflicts).") + ] + HRESULT ClientName( [out,ref,retval] BSTR* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10B), + helpstring("The last requested write speed.") + ] + HRESULT RequestedWriteSpeed( [out,ref,retval] LONG* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10C), + helpstring("The last requested rotation type.") + ] + HRESULT RequestedRotationTypeIsPureCAV( [out,ref,retval] VARIANT_BOOL* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10D), + helpstring("The drive's current write speed.") + ] + HRESULT CurrentWriteSpeed( [out,ref,retval] LONG* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10E), + helpstring("The drive's current rotation type.") + ] + HRESULT CurrentRotationTypeIsPureCAV( [out,ref,retval] VARIANT_BOOL* value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x10F), + helpstring("Gets an array of the write speeds supported for the attached disc recorder and current media") + ] + HRESULT SupportedWriteSpeeds( [out,ref,retval] SAFEARRAY(VARIANT) *supportedSpeeds); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x110), + helpstring("Gets an array of the detailed write configurations supported for the attached disc recorder and current media") + ] + HRESULT SupportedWriteSpeedDescriptors( [out,ref,retval] SAFEARRAY(VARIANT) *supportedSpeedDescriptors); +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_DDISCFORMAT2RAWCDEVENTS_UPDATE 0x200") +[ + object, nonextensible, + oleautomation, + uuid(27354142-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("CD Disc-At-Once RAW Writer Events") +] +interface DDiscFormat2RawCDEvents : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Update to current progress") + ] + HRESULT Update( [in] IDispatch /* IDiscFormat2CDRaw */ * object, [in] IDispatch /* IDiscFormat2RawCDEventArgs */ * progress ); +} + +//////////////////////////////////////////////////////////////////////////////// +// note: dispid's 0x100-0x2FF are for IWriteEngine2EventArgs +cpp_quote("#define DISPID_IDISCFORMAT2RAWCDEVENTARGS_CURRENTTRACKNUMBER 0x300") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCDEVENTARGS_CURRENTACTION 0x301") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCDEVENTARGS_ELAPSEDTIME 0x300") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCDEVENTARGS_ESTIMATEDREMAININGTIME 0x301") +cpp_quote("#define DISPID_IDISCFORMAT2RAWCDEVENTARGS_ESTIMATEDTOTALTIME 0x302") +[ + object, nonextensible, + dual, + uuid(27354143-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("CD Disc-At-Once RAW Writer Event Arguments") +] +interface IDiscFormat2RawCDEventArgs : IWriteEngine2EventArgs +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x301), + helpstring("The current write action.") + ] + HRESULT CurrentAction( [out,ref,retval] IMAPI_FORMAT2_RAW_CD_WRITE_ACTION* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x302), + helpstring("The elapsed time for the current track write or media finishing operation.") + ] + HRESULT ElapsedTime( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x303), + helpstring("The estimated time remaining for the current track write or media finishing operation.") + ] + HRESULT RemainingTime( [out,ref,retval] LONG* value ); +} + + +[ + object, + uuid(D2FFD834-958B-426d-8470-2A13879C6A91), + pointer_default(unique), + helpstring("An interface to control burn verification for a burning object") +] +interface IBurnVerification : IUnknown +{ + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x400), + helpstring("The requested level of burn verification.") + ] + HRESULT BurnVerificationLevel( [in] IMAPI_BURN_VERIFICATION_LEVEL value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x400), + helpstring("The requested level of burn verification.") + ] + HRESULT BurnVerificationLevel( [out,ref,retval] IMAPI_BURN_VERIFICATION_LEVEL *value ); +} + + + +cpp_quote("#define IMAPI_SECTORS_PER_SECOND_AT_1X_CD 75") +cpp_quote("#define IMAPI_SECTORS_PER_SECOND_AT_1X_DVD 680") +cpp_quote("#define IMAPI_SECTORS_PER_SECOND_AT_1X_BD 2195") +cpp_quote("#define IMAPI_SECTORS_PER_SECOND_AT_1X_HD_DVD 4568") + +[ + object, + dual, + uuid(27354144-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("A single optical drive Write Speed Configuration") + +] +interface IWriteSpeedDescriptor : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x101), + helpstring("The type of media that this descriptor is valid for.") + ] + HRESULT MediaType( [out,ref,retval] IMAPI_MEDIA_PHYSICAL_TYPE *value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x102), + helpstring("Whether or not this descriptor represents a writing configuration that uses Pure CAV rotation control.") + ] + HRESULT RotationTypeIsPureCAV( [out,ref,retval] VARIANT_BOOL *value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x103), + helpstring("The maximum speed at which the media will be written in the write configuration represented by this descriptor.") + ] + HRESULT WriteSpeed( [out,ref,retval] LONG *value ); +} + + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IMULTISESSION_SUPPORTEDONCURRENTMEDIA 0x100") +cpp_quote("#define DISPID_IMULTISESSION_INUSE 0x101") +cpp_quote("#define DISPID_IMULTISESSION_IMPORTRECORDER 0x102") +[ + object, dual, + uuid(27354150-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Generic multisession support interface.") +] +interface IMultisession : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("Is it possible to write this multi-session type on the current media in its present state.") + ] + HRESULT IsSupportedOnCurrentMediaState( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x101), + helpstring("Is this multi-session type the one to use on current media") + ] + HRESULT InUse( [in] VARIANT_BOOL value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x101), + helpstring("Is this multi-session type the one to use on current media") + ] + HRESULT InUse( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x102), + helpstring("The disc recorder to use to import previous session(s)") + ] + HRESULT ImportRecorder( [out,ref,retval] IDiscRecorder2** value ); +} + +cpp_quote("#define DISPID_IMULTISESSION_FIRSTDATASESSION 0x200") +cpp_quote("#define DISPID_IMULTISESSION_STARTSECTOROFPREVIOUSSESSION 0x201") +cpp_quote("#define DISPID_IMULTISESSION_LASTSECTOROFPREVIOUSSESSION 0x202") +cpp_quote("#define DISPID_IMULTISESSION_NEXTWRITABLEADDRESS 0x203") +cpp_quote("#define DISPID_IMULTISESSION_FREESECTORS 0x204") +cpp_quote("#define DISPID_IMULTISESSION_WRITEUNITSIZE 0x205") +[ + object, dual, + uuid(27354151-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Sequential multisession support interface") +] +interface IMultisessionSequential : IMultisession +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x200), + helpstring("Is this the first data session on the media?") + ] + HRESULT IsFirstDataSession([out,ref,retval] VARIANT_BOOL * value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x201), + helpstring("The first sector in the previous session on the media.") + ] + HRESULT StartAddressOfPreviousSession([out,ref,retval] LONG * value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x202), + helpstring("The last sector in the previous session on the media.") + ] + HRESULT LastWrittenAddressOfPreviousSession([out,ref,retval] LONG * value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x203), + helpstring("Next writable address on the media (also used sectors).") + ] + HRESULT NextWritableAddress( [out,ref,retval] LONG * value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x204), + helpstring("Free sectors available on the media.") + ] + HRESULT FreeSectorsOnMedia( [out,ref,retval] LONG * value); +} + +[ + object, dual, + uuid(B507CA22-2204-11DD-966A-001AA01BBC58), + pointer_default(unique), + helpstring("Sequential multisession support interface (rev.2)") +] +interface IMultisessionSequential2 : IMultisessionSequential +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x205), + helpstring("Write unit size (writes must be performed in these units).") + ] + HRESULT WriteUnitSize([out,ref,retval] LONG *value); +} + +cpp_quote("#define DISPID_IMULTISESSION_LASTWRITTENADDRESS 0x206") +cpp_quote("#define DISPID_IMULTISESSION_SECTORSONMEDIA 0x207") + [ + object, dual, + uuid(B507CA23-2204-11DD-966A-001AA01BBC58), + pointer_default(unique), + helpstring("Random write multisession support interface.") +] +interface IMultisessionRandomWrite : IMultisession +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x205), + helpstring("Write unit size (writes must be performed in these units).") + ] + HRESULT WriteUnitSize([out,ref,retval] LONG *value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x206), + helpstring("The last sector written on the media.") + ] + HRESULT LastWrittenAddress([out,ref,retval] LONG *value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x207), + helpstring("The total number of sectors available on the media.") + ] + HRESULT TotalSectorsOnMedia([out,ref,retval] LONG *value); +} + + +//////////////////////////////////////////////////////////////////////////////// +[ + object, + uuid(27354145-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Pseudo-random based IStream data (implementation dependent)") +] +interface IStreamPseudoRandomBased : IStream +{ + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Seeds the random number generator and seeks to start of stream") + ] + HRESULT put_Seed( [in] ULONG value ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Seeds the random number generator and seeks to start of stream") + ] + HRESULT get_Seed( [out] ULONG * value ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Extended seed method for the random number generator (seeks to start of stream)") + ] + HRESULT put_ExtendedSeed( [in, size_is(eCount)] ULONG * values, [in] ULONG eCount ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Extended seed method for the random number generator (seeks to start of stream)") + ] + HRESULT get_ExtendedSeed( [out, size_is(,*eCount)] ULONG ** values, [out] ULONG * eCount ); +} +//////////////////////////////////////////////////////////////////////////////// + +[ + object, + uuid(27354146-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Stream concatenation") +] +interface IStreamConcatenate : IStream +{ + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Initialize the stream with two IStreams") + ] + HRESULT Initialize( [in] IStream* stream1, [in] IStream* stream2 ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Initialize the stream with an array of IStreams") + ] + HRESULT Initialize2( [in,size_is(streamCount)] IStream** streams, [in] ULONG streamCount ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Append another stream (grow)") + ] + HRESULT Append( [in] IStream* stream ); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Append an array of streams (grow)") + ] + HRESULT Append2( [in,size_is(streamCount)] IStream** streams, [in] ULONG streamCount ); +} +//////////////////////////////////////////////////////////////////////////////// + +[ + object, + uuid(27354147-7F64-5B0F-8F00-5D77AFBE261E), + pointer_default(unique), + helpstring("Stream interleave: each stream gets interleaveSize bytes, then cycles to the next stream") +] +interface IStreamInterleave : IStream +{ + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Initialize the stream with an array of IStreams and interleave sizes") + ] + HRESULT Initialize( [in,size_is(streamCount)] IStream** streams, + [in,size_is(streamCount)] ULONG* interleaveSizes, + [in,range(1,0x7FFFFFFF) ] ULONG streamCount + ); +} + + + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_CREATERESULTIMAGE 0x200") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_ADDTRACK 0x201") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_ADDSPECIALPREGAP 0x202") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_ADDSUBCODERWGENERATOR 0x203") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_RESULTINGIMAGETYPE 0x100") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_STARTOFLEADOUT 0x101") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_STARTOFLEADOUTLIMIT 0x102") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_DISABLEGAPLESSAUDIO 0x103") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_MEDIACATALOGNUMBER 0x104") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_STARTINGTRACKNUMBER 0x105") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_TRACKINFO 0x106") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_NUMBEROFEXISTINGTRACKS 0x107") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_USEDSECTORSONDISC 0x108") +cpp_quote("#define DISPID_IRAWCDIMAGECREATOR_EXPECTEDTABLEOFCONTENTS 0x109") +[ + object, nonextensible, + dual, + uuid(25983550-9D65-49CE-B335-40630D901227), + pointer_default(unique), + helpstring("CD Raw CD (Disc-at-Once) Image Creator") +] +interface IRawCDImageCreator : IDispatch +{ + //// METHODS //// + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Creates the result stream.") + ] + HRESULT CreateResultImage( [out,retval] IStream ** resultStream ); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x201), + helpstring("Adds a track to the media (defaults to audio, always 2352 bytes/sector).") + ] + HRESULT AddTrack( [in] IMAPI_CD_SECTOR_TYPE dataType, [in] IStream* data, [out,retval] LONG * trackIndex ); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x202), + helpstring("Adds a special pregap to the first track, and implies an audio CD") + ] + HRESULT AddSpecialPregap( [in] IStream* data ); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x203), + helpstring("Adds an R-W subcode generation object to supply R-W subcode (i.e. CD-Text or CD-G).") + ] + HRESULT AddSubcodeRWGenerator( [in] IStream* subcode ); + + + //// PROPERTIES //// + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x100), + helpstring("") + ] + HRESULT ResultingImageType( [in] IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("") + ] + HRESULT ResultingImageType( [out,ref,retval] IMAPI_FORMAT2_RAW_CD_DATA_SECTOR_TYPE* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x101), + helpstring("Equal to (final user LBA+1), defines minimum disc size image can be written to.") + ] + HRESULT StartOfLeadout( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x102), + helpstring("") + ] + HRESULT StartOfLeadoutLimit( [in] LONG value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x102), + helpstring("") + ] + HRESULT StartOfLeadoutLimit( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x103), + helpstring("Disables gapless recording of consecutive audio tracks.") + ] + HRESULT DisableGaplessAudio( [in] VARIANT_BOOL value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x103), + helpstring("Disables gapless recording of consecutive audio tracks.") + ] + HRESULT DisableGaplessAudio( [out,ref,retval] VARIANT_BOOL* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x104), + helpstring("The Media Catalog Number for the CD image") + ] + HRESULT MediaCatalogNumber( [in] BSTR value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x104), + helpstring("The Media Catalog Number for the CD image") + ] + HRESULT MediaCatalogNumber( [out,ref,retval] BSTR* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x105), + helpstring("The starting track number (only for pure audio CDs)") + ] + HRESULT StartingTrackNumber( [in,range(1,99)] LONG value ); + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x105), + helpstring("The starting track number (only for pure audio CDs)") + ] + HRESULT StartingTrackNumber( [out,ref,retval] LONG* value ); + + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x106), + helpstring("Track-specific information") + ] + HRESULT TrackInfo( [in] LONG trackIndex, [out,ref,retval] IRawCDImageTrackInfo ** value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x107), + helpstring("") + ] + HRESULT NumberOfExistingTracks( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x108), + helpstring("") + ] + HRESULT LastUsedUserSectorInImage( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x109), + helpstring("") + ] + HRESULT ExpectedTableOfContents( [out,ref,retval] SAFEARRAY(VARIANT) *value ); +} + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IRAWCDTRACKINFO_STARTINGLBA 0x100") +cpp_quote("#define DISPID_IRAWCDTRACKINFO_SECTORCOUNT 0x101") +cpp_quote("#define DISPID_IRAWCDTRACKINFO_TRACKNUMBER 0x102") +cpp_quote("#define DISPID_IRAWCDTRACKINFO_SECTORTYPE 0x103") +cpp_quote("#define DISPID_IRAWCDTRACKINFO_ISRC 0x104") +cpp_quote("#define DISPID_IRAWCDTRACKINFO_DIGITALAUDIOCOPYSETTING 0x105") +cpp_quote("#define DISPID_IRAWCDTRACKINFO_AUDIOHASPREEMPHASIS 0x106") +[ + object, nonextensible, + dual, + uuid(25983551-9D65-49CE-B335-40630D901227), + pointer_default(unique), + helpstring("CD Raw CD (Disc-at-Once) Per-Track Information") +] +interface IRawCDImageTrackInfo : IDispatch +{ + //// PROPERTIES //// + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("The LBA of the first user sector in this track.") + ] + HRESULT StartingLba( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x101), + helpstring("The number of user sectors in this track.") + ] + HRESULT SectorCount( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x102), + helpstring("The track number assigned for this track.") + ] + HRESULT TrackNumber( [out,ref,retval] LONG* value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x103), + helpstring("The type of data being recorded on the current sector.") + ] + HRESULT SectorType( [out,ref,retval] IMAPI_CD_SECTOR_TYPE* value ); + + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x104), + helpstring("The International Standard Recording Code (ISRC) for this track.") + ] + HRESULT ISRC( [out,ref,retval] BSTR* value ); + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x104), + helpstring("The International Standard Recording Code (ISRC) for this track.") + ] + HRESULT ISRC( [in] BSTR value ); + + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x105), + helpstring("The digital audio copy setting for this track.") + ] + HRESULT DigitalAudioCopySetting( [out,ref,retval] IMAPI_CD_TRACK_DIGITAL_COPY_SETTING* value ); + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x105), + helpstring("The digital audio copy setting for this track.") + ] + HRESULT DigitalAudioCopySetting( [in] IMAPI_CD_TRACK_DIGITAL_COPY_SETTING value ); + + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x106), + helpstring("The audio provided already has preemphasis applied (rare).") + ] + HRESULT AudioHasPreemphasis( [out,ref,retval] VARIANT_BOOL* value ); + [ ////////////////////////////////////////////////////////////////////////// + propput, id(0x106), + helpstring("The audio provided already has preemphasis applied (rare).") + ] + HRESULT AudioHasPreemphasis( [in] VARIANT_BOOL value ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x107), + helpstring("The list of current track-relative indexes within the CD track.") + ] + HRESULT TrackIndexes( [out,ref,retval] SAFEARRAY(VARIANT) * value ); + + //// METHODS //// + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Add the specified LBA (relative to the start of the track) as an index.") + ] + HRESULT AddTrackIndex( [in,range(0,0x7FFFFFFF)] LONG lbaOffset); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x201), + helpstring("Removes the specified LBA (relative to the start of the track) as an index.") + ] + HRESULT ClearTrackIndex( [in, range(0,0x7FFFFFFF)] LONG lbaOffset); +} + + +//////////////////////////////////////////////////////////////////////////////// +cpp_quote("#define DISPID_IBLOCKRANGE_STARTLBA 0x100") +cpp_quote("#define DISPID_IBLOCKRANGE_ENDLBA 0x101") +[ + object, + dual, + uuid(B507CA25-2204-11DD-966A-001AA01BBC58), + pointer_default(unique), + helpstring("A continuous LBA range") +] +interface IBlockRange : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("The first LBA in the range.") + ] + HRESULT StartLba([out,ref,retval] LONG *value); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x101), + helpstring("The last LBA in the range.") + ] + HRESULT EndLba([out,ref,retval] LONG *value); +} + +cpp_quote("#define DISPID_IBLOCKRANGELIST_BLOCKRANGES 0x100") +[ + object, + dual, + uuid(B507CA26-2204-11DD-966A-001AA01BBC58), + pointer_default(unique), + helpstring("A list of continuous LBA ranges") +] +interface IBlockRangeList : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("Returns an array of LBA ranges.") + ] + HRESULT BlockRanges([out,ref,retval] SAFEARRAY(VARIANT) *value); +} + + + +//////////////////////////////////////////////////////////////////////////////// + +cpp_quote("") +cpp_quote("//") +cpp_quote("// IMAPIv2 version information for TYPELib loading") +cpp_quote("//") +cpp_quote("#define IMAPILib2_MajorVersion 1") +cpp_quote("#define IMAPILib2_MinorVersion 0") +cpp_quote("#define LIBID_IMAPILib2 LIBID_IMAPI2") +cpp_quote("") +[ + uuid(2735412F-7F64-5B0F-8F00-5D77AFBE261E), + version(1.0), + helpstring("Microsoft IMAPI2 Base Functionality") +] +library IMAPI2 +{ + importlib("stdole2.tlb"); + + + // reference the enums and event args to ensure they show up in the type library + + enum IMAPI_MEDIA_PHYSICAL_TYPE; + enum IMAPI_MEDIA_WRITE_PROTECT_STATE; + enum IMAPI_READ_TRACK_ADDRESS_TYPE; + enum IMAPI_MODE_PAGE_REQUEST_TYPE; + enum IMAPI_MODE_PAGE_TYPE; + enum IMAPI_FEATURE_PAGE_TYPE; + enum IMAPI_PROFILE_TYPE; + enum IMAPI_FORMAT2_DATA_WRITE_ACTION; + enum IMAPI_FORMAT2_DATA_MEDIA_STATE; + enum IMAPI_FORMAT2_TAO_WRITE_ACTION; + enum IMAPI_FORMAT2_RAW_DATA_BLOCK_TYPE; + enum IMAPI_FORMAT2_RAW_WRITE_ACTION; + enum IMAPI_CD_SECTOR_DATA_TYPE; + enum IMAPI_CD_TRACK_DIGITAL_COPY_SETTING; + enum IMAPI_BURN_VERIFICATION_LEVEL; + + + interface IWriteEngine2EventArgs; + interface IDiscFormat2DataEventArgs; + interface IDiscFormat2TrackAtOnceEventArgs; + interface IDiscFormat2RawCDEventArgs; + interface IWriteSpeedDescriptor; + interface DDiscMaster2Events; + interface DWriteEngine2Events; + interface DDiscFormat2EraseEvents; + interface DDiscFormat2DataEvents; + interface DDiscFormat2TrackAtOnceEvents; + interface DDiscFormat2RawCDEvents; + interface IRawCDImageCreator; + interface IRawCDImageTrackInfo; + interface IBurnVerification; + interface IBlockRange; + interface IBlockRangeList; + + + [ + uuid(2735412E-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 Disc Master"), + ] + coclass MsftDiscMaster2 + { + [default] interface IDiscMaster2; + interface IConnectionPointContainer; + [default,source] interface DDiscMaster2Events; + }; + + [ + uuid(2735412D-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 Disc Recorder"), + ] + coclass MsftDiscRecorder2 + { + [default] interface IDiscRecorder2; + interface IDiscRecorder2Ex; + }; + + [ + uuid(2735412C-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 CD Write Engine"), + ] + coclass MsftWriteEngine2 + { + [default] interface IWriteEngine2; + interface IConnectionPointContainer; + [default,source] interface DWriteEngine2Events; + }; + + [ + uuid(2735412B-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 Media Erase/Blank"), + ] + coclass MsftDiscFormat2Erase + { + [default] interface IDiscFormat2Erase; + interface IConnectionPointContainer; + [default,source] interface DDiscFormat2EraseEvents; + }; + + [ + uuid(2735412A-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 Data Writer"), + ] + coclass MsftDiscFormat2Data + { + [default] interface IDiscFormat2Data; + interface IBurnVerification; + interface IConnectionPointContainer; + [default,source] interface DDiscFormat2DataEvents; + }; + + [ + uuid(27354129-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 Track-at-Once Audio CD Writer"), + ] + coclass MsftDiscFormat2TrackAtOnce + { + [default] interface IDiscFormat2TrackAtOnce; + interface IBurnVerification; + interface IConnectionPointContainer; + [default,source] interface DDiscFormat2TrackAtOnceEvents; + }; + + [ + uuid(27354128-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 Disc-at-Once RAW CD Image Writer"), + ] + coclass MsftDiscFormat2RawCD + { + [default] interface IDiscFormat2RawCD; + interface IConnectionPointContainer; + [default,source] interface DDiscFormat2RawCDEvents; + }; + + + [ + uuid(27354127-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 /dev/zero Stream "), + ] + coclass MsftStreamZero + { + [default] interface IStream; + }; + + [ + uuid(27354126-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 PRNG based Stream (LCG: 0x19660D, 0x3C6EF35F)"), + ] + coclass MsftStreamPrng001 + { + [default] interface IStreamPseudoRandomBased; + }; + + [ + uuid(27354125-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 concatenation stream"), + ] + coclass MsftStreamConcatenate + { + [default] interface IStreamConcatenate; + }; + + [ + uuid(27354124-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 interleave stream"), + ] + coclass MsftStreamInterleave + { + [default] interface IStreamInterleave; + }; + + [ + noncreatable, + uuid(27354123-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 Write Speed Descriptor"), + ] + coclass MsftWriteSpeedDescriptor + { + [default] interface IWriteSpeedDescriptor; + }; + + [ + noncreatable, + uuid(27354122-7F64-5B0F-8F00-5D77AFBE261E), + helpstring("Microsoft IMAPIv2 sequential Multi-session"), + ] + coclass MsftMultisessionSequential + { + [default] interface IMultisessionSequential2; + interface IMultisessionSequential; + }; + [ + noncreatable, + uuid(B507CA24-2204-11DD-966A-001AA01BBC58), + helpstring("Microsoft IMAPIv2 random write Multi-session"), + ] + coclass MsftMultisessionRandomWrite + { + [default] interface IMultisessionRandomWrite; + }; + + [ + uuid(25983561-9D65-49CE-B335-40630D901227), + helpstring("Microsoft IMAPIv2 RAW CD Image Creator"), + ] + coclass MsftRawCDImageCreator + { + [default] interface IRawCDImageCreator; + }; +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2error.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2error.h new file mode 100644 index 0000000000000000000000000000000000000000..ede2b75fd8667629d3637462c3bd4f8686613a6c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2error.h @@ -0,0 +1,925 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects +Copyright (c) Microsoft Corporation. All rights reserved. +--*/ + +#ifndef _IMAPI2ERROR_ +#define _IMAPI2ERROR_ + + +// +// Error Messages used throughout IMAPIv2 +// Range: 0x80AA0000 - 0x80AA00FF +// + +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +-+-+-+-+-+---------------------+-------------------------------+ +// |S|R|C|N|r| Facility | Code | +// +-+-+-+-+-+---------------------+-------------------------------+ +// +// where +// +// S - Severity - indicates success/fail +// +// 0 - Success +// 1 - Fail (COERROR) +// +// R - reserved portion of the facility code, corresponds to NT's +// second severity bit. +// +// C - reserved portion of the facility code, corresponds to NT's +// C field. +// +// N - reserved portion of the facility code. Used to indicate a +// mapped NT status value. +// +// r - reserved portion of the facility code. Reserved for internal +// use. Used to indicate HRESULT values that are not status +// values, but are instead message ids for display strings. +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// + + +// +// Define the severity codes +// + + +// +// MessageId: E_IMAPI_REQUEST_CANCELLED +// +// MessageText: +// +// The request was cancelled. +// +#define E_IMAPI_REQUEST_CANCELLED ((HRESULT)0xC0AA0002L) + +// +// MessageId: E_IMAPI_RECORDER_REQUIRED +// +// MessageText: +// +// The request requires a current disc recorder to be selected. +// +#define E_IMAPI_RECORDER_REQUIRED ((HRESULT)0xC0AA0003L) + +// +// MessageId: S_IMAPI_SPEEDADJUSTED +// +// MessageText: +// +// The requested write speed was not supported by the drive and the speed was adjusted. +// +#define S_IMAPI_SPEEDADJUSTED ((HRESULT)0x00AA0004L) + +// +// MessageId: S_IMAPI_ROTATIONADJUSTED +// +// MessageText: +// +// The requested rotation type was not supported by the drive and the rotation type was adjusted. +// +#define S_IMAPI_ROTATIONADJUSTED ((HRESULT)0x00AA0005L) + +// +// MessageId: S_IMAPI_BOTHADJUSTED +// +// MessageText: +// +// The requested write speed and rotation type were not supported by the drive and they were both adjusted. +// +#define S_IMAPI_BOTHADJUSTED ((HRESULT)0x00AA0006L) + +// +// MessageId: E_IMAPI_BURN_VERIFICATION_FAILED +// +// MessageText: +// +// The disc did not pass burn verification and may contain corrupt data or be unusable. +// +#define E_IMAPI_BURN_VERIFICATION_FAILED ((HRESULT)0xC0AA0007L) + + +// +// Error Messages for IDiscMaster2 +// Range: 0x80AA0100 - 0x80AA01FF +// + + +// +// Error Messages for IDiscRecorder2 +// Range: 0x80AA0200 - 0x80AA02FF +// + +// +// MessageId: S_IMAPI_COMMAND_HAS_SENSE_DATA +// +// MessageText: +// +// The device accepted the command, but returned sense data, indicating an error. +// +#define S_IMAPI_COMMAND_HAS_SENSE_DATA ((HRESULT)0x00AA0200L) + +// +// MessageId: E_IMAPI_RECORDER_NO_SUCH_MODE_PAGE +// +// MessageText: +// +// The device reported that the requested mode page (and type) is not present. +// +#define E_IMAPI_RECORDER_NO_SUCH_MODE_PAGE ((HRESULT)0xC0AA0201L) + +// +// MessageId: E_IMAPI_RECORDER_MEDIA_NO_MEDIA +// +// MessageText: +// +// There is no media in the device. +// +#define E_IMAPI_RECORDER_MEDIA_NO_MEDIA ((HRESULT)0xC0AA0202L) + +// +// MessageId: E_IMAPI_RECORDER_MEDIA_INCOMPATIBLE +// +// MessageText: +// +// The media is not compatible or of unknown physical format. +// +#define E_IMAPI_RECORDER_MEDIA_INCOMPATIBLE ((HRESULT)0xC0AA0203L) + +// +// MessageId: E_IMAPI_RECORDER_MEDIA_UPSIDE_DOWN +// +// MessageText: +// +// The media is inserted upside down. +// +#define E_IMAPI_RECORDER_MEDIA_UPSIDE_DOWN ((HRESULT)0xC0AA0204L) + +// +// MessageId: E_IMAPI_RECORDER_MEDIA_BECOMING_READY +// +// MessageText: +// +// The drive reported that it is in the process of becoming ready. Please try the request again later. +// +#define E_IMAPI_RECORDER_MEDIA_BECOMING_READY ((HRESULT)0xC0AA0205L) + +// +// MessageId: E_IMAPI_RECORDER_MEDIA_FORMAT_IN_PROGRESS +// +// MessageText: +// +// The media is currently being formatted. Please wait for the format to complete before attempting to use the media. +// +#define E_IMAPI_RECORDER_MEDIA_FORMAT_IN_PROGRESS ((HRESULT)0xC0AA0206L) + +// +// MessageId: E_IMAPI_RECORDER_MEDIA_BUSY +// +// MessageText: +// +// The drive reported that it is performing a long-running operation, such as finishing a write. The drive may be unusable for a long period of time. +// +#define E_IMAPI_RECORDER_MEDIA_BUSY ((HRESULT)0xC0AA0207L) + +// +// MessageId: E_IMAPI_RECORDER_INVALID_MODE_PARAMETERS +// +// MessageText: +// +// The drive reported that the combination of parameters provided in the mode page for a MODE SELECT command were not supported. +// +#define E_IMAPI_RECORDER_INVALID_MODE_PARAMETERS ((HRESULT)0xC0AA0208L) + +// +// MessageId: E_IMAPI_RECORDER_MEDIA_WRITE_PROTECTED +// +// MessageText: +// +// The drive reported that the media is write protected. +// +#define E_IMAPI_RECORDER_MEDIA_WRITE_PROTECTED ((HRESULT)0xC0AA0209L) + +// +// MessageId: E_IMAPI_RECORDER_NO_SUCH_FEATURE +// +// MessageText: +// +// The feature page requested is not supported by the device. +// +#define E_IMAPI_RECORDER_NO_SUCH_FEATURE ((HRESULT)0xC0AA020AL) + +// +// MessageId: E_IMAPI_RECORDER_FEATURE_IS_NOT_CURRENT +// +// MessageText: +// +// The feature page requested is supported, but is not marked as current. +// +#define E_IMAPI_RECORDER_FEATURE_IS_NOT_CURRENT ((HRESULT)0xC0AA020BL) + +// +// MessageId: E_IMAPI_RECORDER_GET_CONFIGURATION_NOT_SUPPORTED +// +// MessageText: +// +// The drive does not support the GET CONFIGURATION command. +// +#define E_IMAPI_RECORDER_GET_CONFIGURATION_NOT_SUPPORTED ((HRESULT)0xC0AA020CL) + +// +// MessageId: E_IMAPI_RECORDER_COMMAND_TIMEOUT +// +// MessageText: +// +// The device failed to accept the command within the timeout period. This may be caused by the device having entered an inconsistent state, or the timeout value for the command may need to be increased. +// +#define E_IMAPI_RECORDER_COMMAND_TIMEOUT ((HRESULT)0xC0AA020DL) + +// +// MessageId: E_IMAPI_RECORDER_DVD_STRUCTURE_NOT_PRESENT +// +// MessageText: +// +// The DVD structure is not present. This may be caused by incompatible drive/medium used. +// +#define E_IMAPI_RECORDER_DVD_STRUCTURE_NOT_PRESENT ((HRESULT)0xC0AA020EL) + +// +// MessageId: E_IMAPI_RECORDER_MEDIA_SPEED_MISMATCH +// +// MessageText: +// +// The media's speed is incompatible with the device. This may be caused by using higher or lower speed media than the range of speeds supported by the device. +// +#define E_IMAPI_RECORDER_MEDIA_SPEED_MISMATCH ((HRESULT)0xC0AA020FL) + +// +// MessageId: E_IMAPI_RECORDER_LOCKED +// +// MessageText: +// +// The device associated with this recorder during the last operation has been exclusively locked, causing this operation to failed. +// +#define E_IMAPI_RECORDER_LOCKED ((HRESULT)0xC0AA0210L) + +// +// MessageId: E_IMAPI_RECORDER_CLIENT_NAME_IS_NOT_VALID +// +// MessageText: +// +// The client name is not valid. +// +#define E_IMAPI_RECORDER_CLIENT_NAME_IS_NOT_VALID ((HRESULT)0xC0AA0211L) + +// +// MessageId: E_IMAPI_RECORDER_MEDIA_NOT_FORMATTED +// +// MessageText: +// +// The media is not formatted. Please format the media before attempting to use it. +// +#define E_IMAPI_RECORDER_MEDIA_NOT_FORMATTED ((HRESULT)0xC0AA0212L) + +// +// MessageId: E_IMAPI_RECORDER_INVALID_RESPONSE_FROM_DEVICE +// +// MessageText: +// +// The device reported unexpected or invalid data for a command. +// +#define E_IMAPI_RECORDER_INVALID_RESPONSE_FROM_DEVICE ((HRESULT)0xC0AA02FFL) + + +// +// Error Messages for IWriteEngine2 +// Range: 0x80AA0300 - 0x80AA03FF +// + +// +// MessageId: E_IMAPI_LOSS_OF_STREAMING +// +// MessageText: +// +// The write failed because the drive did not receive data quickly enough to continue writing. Moving the source data to the local computer, reducing the write speed, or enabling a "buffer underrun free" setting may resolve this issue. +// +#define E_IMAPI_LOSS_OF_STREAMING ((HRESULT)0xC0AA0300L) + +// +// MessageId: E_IMAPI_UNEXPECTED_RESPONSE_FROM_DEVICE +// +// MessageText: +// +// The write failed because the drive returned error information that could not be recovered from. +// +#define E_IMAPI_UNEXPECTED_RESPONSE_FROM_DEVICE ((HRESULT)0xC0AA0301L) + +// +// MessageId: S_IMAPI_WRITE_NOT_IN_PROGRESS +// +// MessageText: +// +// There is no write operation currently in progress. +// +#define S_IMAPI_WRITE_NOT_IN_PROGRESS ((HRESULT)0x00AA0302L) + + +// +// Error Messages for IDiscFormat2Data +// Range: 0x80AA0400 - 0x80AA04FF +// + +// +// MessageId: E_IMAPI_DF2DATA_WRITE_IN_PROGRESS +// +// MessageText: +// +// There is currently a write operation in progress. +// +#define E_IMAPI_DF2DATA_WRITE_IN_PROGRESS ((HRESULT)0xC0AA0400L) + +// +// MessageId: E_IMAPI_DF2DATA_WRITE_NOT_IN_PROGRESS +// +// MessageText: +// +// There is no write operation currently in progress. +// +#define E_IMAPI_DF2DATA_WRITE_NOT_IN_PROGRESS ((HRESULT)0xC0AA0401L) + +// +// MessageId: E_IMAPI_DF2DATA_INVALID_MEDIA_STATE +// +// MessageText: +// +// The requested operation is only valid with supported media. +// +#define E_IMAPI_DF2DATA_INVALID_MEDIA_STATE ((HRESULT)0xC0AA0402L) + +// +// MessageId: E_IMAPI_DF2DATA_STREAM_NOT_SUPPORTED +// +// MessageText: +// +// The provided stream to write is not supported. +// +#define E_IMAPI_DF2DATA_STREAM_NOT_SUPPORTED ((HRESULT)0xC0AA0403L) + +// +// MessageId: E_IMAPI_DF2DATA_STREAM_TOO_LARGE_FOR_CURRENT_MEDIA +// +// MessageText: +// +// The provided stream to write is too large for the currently inserted media. +// +#define E_IMAPI_DF2DATA_STREAM_TOO_LARGE_FOR_CURRENT_MEDIA ((HRESULT)0xC0AA0404L) + +// +// MessageId: E_IMAPI_DF2DATA_MEDIA_NOT_BLANK +// +// MessageText: +// +// Overwriting non-blank media is not allowed without the ForceOverwrite property set to VARIANT_TRUE. +// +#define E_IMAPI_DF2DATA_MEDIA_NOT_BLANK ((HRESULT)0xC0AA0405L) + +// +// MessageId: E_IMAPI_DF2DATA_MEDIA_IS_NOT_SUPPORTED +// +// MessageText: +// +// The current media type is unsupported. +// +#define E_IMAPI_DF2DATA_MEDIA_IS_NOT_SUPPORTED ((HRESULT)0xC0AA0406L) + +// +// MessageId: E_IMAPI_DF2DATA_RECORDER_NOT_SUPPORTED +// +// MessageText: +// +// This device does not support the operations required by this disc format. +// +#define E_IMAPI_DF2DATA_RECORDER_NOT_SUPPORTED ((HRESULT)0xC0AA0407L) + +// +// MessageId: E_IMAPI_DF2DATA_CLIENT_NAME_IS_NOT_VALID +// +// MessageText: +// +// The client name is not valid. +// +#define E_IMAPI_DF2DATA_CLIENT_NAME_IS_NOT_VALID ((HRESULT)0xC0AA0408L) + + +// +// Error Messages for IDiscFormat2TrackAtOnce +// Range: 0x80AA0500 - 0x80AA05FF +// + +// +// MessageId: E_IMAPI_DF2TAO_WRITE_IN_PROGRESS +// +// MessageText: +// +// There is currently a write operation in progress. +// +#define E_IMAPI_DF2TAO_WRITE_IN_PROGRESS ((HRESULT)0xC0AA0500L) + +// +// MessageId: E_IMAPI_DF2TAO_WRITE_NOT_IN_PROGRESS +// +// MessageText: +// +// There is no write operation currently in progress. +// +#define E_IMAPI_DF2TAO_WRITE_NOT_IN_PROGRESS ((HRESULT)0xC0AA0501L) + +// +// MessageId: E_IMAPI_DF2TAO_MEDIA_IS_NOT_PREPARED +// +// MessageText: +// +// The requested operation is only valid when media has been "prepared". +// +#define E_IMAPI_DF2TAO_MEDIA_IS_NOT_PREPARED ((HRESULT)0xC0AA0502L) + +// +// MessageId: E_IMAPI_DF2TAO_MEDIA_IS_PREPARED +// +// MessageText: +// +// The requested operation is not valid when media has been "prepared" but not released. +// +#define E_IMAPI_DF2TAO_MEDIA_IS_PREPARED ((HRESULT)0xC0AA0503L) + +// +// MessageId: E_IMAPI_DF2TAO_PROPERTY_FOR_BLANK_MEDIA_ONLY +// +// MessageText: +// +// The property cannot be changed once the media has been written to. +// +#define E_IMAPI_DF2TAO_PROPERTY_FOR_BLANK_MEDIA_ONLY ((HRESULT)0xC0AA0504L) + +// +// MessageId: E_IMAPI_DF2TAO_TABLE_OF_CONTENTS_EMPTY_DISC +// +// MessageText: +// +// The table of contents cannot be retrieved from an empty disc. +// +#define E_IMAPI_DF2TAO_TABLE_OF_CONTENTS_EMPTY_DISC ((HRESULT)0xC0AA0505L) + +// +// MessageId: E_IMAPI_DF2TAO_MEDIA_IS_NOT_BLANK +// +// MessageText: +// +// Only blank CD-R/RW media is supported. +// +#define E_IMAPI_DF2TAO_MEDIA_IS_NOT_BLANK ((HRESULT)0xC0AA0506L) + +// +// MessageId: E_IMAPI_DF2TAO_MEDIA_IS_NOT_SUPPORTED +// +// MessageText: +// +// Only blank CD-R/RW media is supported. +// +#define E_IMAPI_DF2TAO_MEDIA_IS_NOT_SUPPORTED ((HRESULT)0xC0AA0507L) + +// +// MessageId: E_IMAPI_DF2TAO_TRACK_LIMIT_REACHED +// +// MessageText: +// +// CD-R and CD-RW media support a maximum of 99 audio tracks. +// +#define E_IMAPI_DF2TAO_TRACK_LIMIT_REACHED ((HRESULT)0xC0AA0508L) + +// +// MessageId: E_IMAPI_DF2TAO_NOT_ENOUGH_SPACE +// +// MessageText: +// +// There is not enough space left on the media to add the provided audio track. +// +#define E_IMAPI_DF2TAO_NOT_ENOUGH_SPACE ((HRESULT)0xC0AA0509L) + +// +// MessageId: E_IMAPI_DF2TAO_NO_RECORDER_SPECIFIED +// +// MessageText: +// +// You cannot prepare the media until you choose a recorder to use. +// +#define E_IMAPI_DF2TAO_NO_RECORDER_SPECIFIED ((HRESULT)0xC0AA050AL) + +// +// MessageId: E_IMAPI_DF2TAO_INVALID_ISRC +// +// MessageText: +// +// The ISRC provided is not valid. +// +#define E_IMAPI_DF2TAO_INVALID_ISRC ((HRESULT)0xC0AA050BL) + +// +// MessageId: E_IMAPI_DF2TAO_INVALID_MCN +// +// MessageText: +// +// The Media Catalog Number provided is not valid. +// +#define E_IMAPI_DF2TAO_INVALID_MCN ((HRESULT)0xC0AA050CL) + +// +// MessageId: E_IMAPI_DF2TAO_STREAM_NOT_SUPPORTED +// +// MessageText: +// +// The provided audio stream is not valid. +// +#define E_IMAPI_DF2TAO_STREAM_NOT_SUPPORTED ((HRESULT)0xC0AA050DL) + +// +// MessageId: E_IMAPI_DF2TAO_RECORDER_NOT_SUPPORTED +// +// MessageText: +// +// This device does not support the operations required by this disc format. +// +#define E_IMAPI_DF2TAO_RECORDER_NOT_SUPPORTED ((HRESULT)0xC0AA050EL) + +// +// MessageId: E_IMAPI_DF2TAO_CLIENT_NAME_IS_NOT_VALID +// +// MessageText: +// +// The client name is not valid. +// +#define E_IMAPI_DF2TAO_CLIENT_NAME_IS_NOT_VALID ((HRESULT)0xC0AA050FL) + + +// +// Error Messages for IDiscFormat2RawCD +// Range: 0x80AA0600 - 0x80AA06FF +// +// 0x0605, 0x0608, 0x060B, 0x060C are not used + +// +// MessageId: E_IMAPI_DF2RAW_WRITE_IN_PROGRESS +// +// MessageText: +// +// There is currently a write operation in progress. +// +#define E_IMAPI_DF2RAW_WRITE_IN_PROGRESS ((HRESULT)0xC0AA0600L) + +// +// MessageId: E_IMAPI_DF2RAW_WRITE_NOT_IN_PROGRESS +// +// MessageText: +// +// There is no write operation currently in progress. +// +#define E_IMAPI_DF2RAW_WRITE_NOT_IN_PROGRESS ((HRESULT)0xC0AA0601L) + +// +// MessageId: E_IMAPI_DF2RAW_MEDIA_IS_NOT_PREPARED +// +// MessageText: +// +// The requested operation is only valid when media has been "prepared". +// +#define E_IMAPI_DF2RAW_MEDIA_IS_NOT_PREPARED ((HRESULT)0xC0AA0602L) + +// +// MessageId: E_IMAPI_DF2RAW_MEDIA_IS_PREPARED +// +// MessageText: +// +// The requested operation is not valid when media has been "prepared" but not released. +// +#define E_IMAPI_DF2RAW_MEDIA_IS_PREPARED ((HRESULT)0xC0AA0603L) + +// +// MessageId: E_IMAPI_DF2RAW_CLIENT_NAME_IS_NOT_VALID +// +// MessageText: +// +// The client name is not valid. +// +#define E_IMAPI_DF2RAW_CLIENT_NAME_IS_NOT_VALID ((HRESULT)0xC0AA0604L) + +// +// MessageId: E_IMAPI_DF2RAW_MEDIA_IS_NOT_BLANK +// +// MessageText: +// +// Only blank CD-R/RW media is supported. +// +#define E_IMAPI_DF2RAW_MEDIA_IS_NOT_BLANK ((HRESULT)0xC0AA0606L) + +// +// MessageId: E_IMAPI_DF2RAW_MEDIA_IS_NOT_SUPPORTED +// +// MessageText: +// +// Only blank CD-R/RW media is supported. +// +#define E_IMAPI_DF2RAW_MEDIA_IS_NOT_SUPPORTED ((HRESULT)0xC0AA0607L) + +// +// MessageId: E_IMAPI_DF2RAW_NOT_ENOUGH_SPACE +// +// MessageText: +// +// There is not enough space on the media to add the provided session. +// +#define E_IMAPI_DF2RAW_NOT_ENOUGH_SPACE ((HRESULT)0xC0AA0609L) + +// +// MessageId: E_IMAPI_DF2RAW_NO_RECORDER_SPECIFIED +// +// MessageText: +// +// You cannot prepare the media until you choose a recorder to use. +// +#define E_IMAPI_DF2RAW_NO_RECORDER_SPECIFIED ((HRESULT)0xC0AA060AL) + +// +// MessageId: E_IMAPI_DF2RAW_STREAM_NOT_SUPPORTED +// +// MessageText: +// +// The provided audio stream is not valid. +// +#define E_IMAPI_DF2RAW_STREAM_NOT_SUPPORTED ((HRESULT)0xC0AA060DL) + +// +// MessageId: E_IMAPI_DF2RAW_DATA_BLOCK_TYPE_NOT_SUPPORTED +// +// MessageText: +// +// The requested data block type is not supported by the current device. +// +#define E_IMAPI_DF2RAW_DATA_BLOCK_TYPE_NOT_SUPPORTED ((HRESULT)0xC0AA060EL) + +// +// MessageId: E_IMAPI_DF2RAW_STREAM_LEADIN_TOO_SHORT +// +// MessageText: +// +// The stream does not contain a sufficient number of sectors in the leadin for the current media. +// +#define E_IMAPI_DF2RAW_STREAM_LEADIN_TOO_SHORT ((HRESULT)0xC0AA060FL) + +// +// MessageId: E_IMAPI_DF2RAW_RECORDER_NOT_SUPPORTED +// +// MessageText: +// +// This device does not support the operations required by this disc format. +// +#define E_IMAPI_DF2RAW_RECORDER_NOT_SUPPORTED ((HRESULT)0xC0AA0610L) + + +// +// Error Messages for IDiscFormat2Erase +// Range: 0x80AA0900 - 0x80AA09FF +// + +// +// MessageId: E_IMAPI_ERASE_RECORDER_IN_USE +// +// MessageText: +// +// The format is currently using the disc recorder for an erase operation. +// Please wait for the erase to complete before attempting to set or clear the +// current disc recorder. +// +#define E_IMAPI_ERASE_RECORDER_IN_USE ((HRESULT)0x80AA0900L) + +// +// MessageId: E_IMAPI_ERASE_ONLY_ONE_RECORDER_SUPPORTED +// +// MessageText: +// +// The erase format only supports one recorder. You must clear the current +// recorder before setting a new one. +// +#define E_IMAPI_ERASE_ONLY_ONE_RECORDER_SUPPORTED ((HRESULT)0x80AA0901L) + +// +// MessageId: E_IMAPI_ERASE_DISC_INFORMATION_TOO_SMALL +// +// MessageText: +// +// The drive did not report sufficient data for a READ DISC INFORMATION command. +// The drive may not be supported, or the media may not be correct. +// +#define E_IMAPI_ERASE_DISC_INFORMATION_TOO_SMALL ((HRESULT)0x80AA0902L) + +// +// MessageId: E_IMAPI_ERASE_MODE_PAGE_2A_TOO_SMALL +// +// MessageText: +// +// The drive did not report sufficient data for a MODE SENSE (page 0x2A) command. +// The drive may not be supported, or the media may not be correct. +// +#define E_IMAPI_ERASE_MODE_PAGE_2A_TOO_SMALL ((HRESULT)0x80AA0903L) + +// +// MessageId: E_IMAPI_ERASE_MEDIA_IS_NOT_ERASABLE +// +// MessageText: +// +// The drive reported that the media is not erasable. +// +#define E_IMAPI_ERASE_MEDIA_IS_NOT_ERASABLE ((HRESULT)0x80AA0904L) + +// +// MessageId: E_IMAPI_ERASE_DRIVE_FAILED_ERASE_COMMAND +// +// MessageText: +// +// The drive failed the erase command. +// +#define E_IMAPI_ERASE_DRIVE_FAILED_ERASE_COMMAND ((HRESULT)0x80AA0905L) + +// +// MessageId: E_IMAPI_ERASE_TOOK_LONGER_THAN_ONE_HOUR +// +// MessageText: +// +// The drive did not complete the erase in one hour. The drive may require a power cycle, media removal, or other manual intervention to resume proper operation. +// +#define E_IMAPI_ERASE_TOOK_LONGER_THAN_ONE_HOUR ((HRESULT)0x80AA0906L) + +// +// MessageId: E_IMAPI_ERASE_UNEXPECTED_DRIVE_RESPONSE_DURING_ERASE +// +// MessageText: +// +// The drive returned an unexpected error during the erase. The the media may be +// unusable, the erase may be complete, or the drive may still be in the process +// of erasing the disc. +// +#define E_IMAPI_ERASE_UNEXPECTED_DRIVE_RESPONSE_DURING_ERASE ((HRESULT)0x80AA0907L) + +// +// MessageId: E_IMAPI_ERASE_DRIVE_FAILED_SPINUP_COMMAND +// +// MessageText: +// +// The drive returned an error for a START UNIT (spinup) command. Manual intervention may be required. +// +#define E_IMAPI_ERASE_DRIVE_FAILED_SPINUP_COMMAND ((HRESULT)0x80AA0908L) + +// +// MessageId: E_IMAPI_ERASE_MEDIA_IS_NOT_SUPPORTED +// +// MessageText: +// +// The current media type is unsupported. +// +#define E_IMAPI_ERASE_MEDIA_IS_NOT_SUPPORTED ((HRESULT)0xC0AA0909L) + +// +// MessageId: E_IMAPI_ERASE_RECORDER_NOT_SUPPORTED +// +// MessageText: +// +// This device does not support the operations required by this disc format. +// +#define E_IMAPI_ERASE_RECORDER_NOT_SUPPORTED ((HRESULT)0xC0AA090AL) + +// +// MessageId: E_IMAPI_ERASE_CLIENT_NAME_IS_NOT_VALID +// +// MessageText: +// +// The client name is not valid. +// +#define E_IMAPI_ERASE_CLIENT_NAME_IS_NOT_VALID ((HRESULT)0xC0AA090BL) + + +// +// Error Messages for IRawCDImageCreator +// Range: 0x80AA0A00 - 0x80AA0AFF +// + +// +// MessageId: E_IMAPI_RAW_IMAGE_IS_READ_ONLY +// +// MessageText: +// +// The image has become read-only from a call to CreateResultImage(). +// The object can no longer be modified. +// +#define E_IMAPI_RAW_IMAGE_IS_READ_ONLY ((HRESULT)0x80AA0A00L) + +// +// MessageId: E_IMAPI_RAW_IMAGE_TOO_MANY_TRACKS +// +// MessageText: +// +// No more tracks may be added, as CD media is restricted to track numbers +// between 1 and 99. +// +#define E_IMAPI_RAW_IMAGE_TOO_MANY_TRACKS ((HRESULT)0x80AA0A01L) + +// +// MessageId: E_IMAPI_RAW_IMAGE_SECTOR_TYPE_NOT_SUPPORTED +// +// MessageText: +// +// The requested sector type is not supported. +// +#define E_IMAPI_RAW_IMAGE_SECTOR_TYPE_NOT_SUPPORTED ((HRESULT)0x80AA0A02L) + +// +// MessageId: E_IMAPI_RAW_IMAGE_NO_TRACKS +// +// MessageText: +// +// Tracks must be added to the image before using this function. +// +#define E_IMAPI_RAW_IMAGE_NO_TRACKS ((HRESULT)0x80AA0A03L) + +// +// MessageId: E_IMAPI_RAW_IMAGE_TRACKS_ALREADY_ADDED +// +// MessageText: +// +// Tracks may not be added to the image prior to the use of this function. +// +#define E_IMAPI_RAW_IMAGE_TRACKS_ALREADY_ADDED ((HRESULT)0x80AA0A04L) + +// +// MessageId: E_IMAPI_RAW_IMAGE_INSUFFICIENT_SPACE +// +// MessageText: +// +// Adding the track would result in exceeding the limit for the start of the leadout. +// +#define E_IMAPI_RAW_IMAGE_INSUFFICIENT_SPACE ((HRESULT)0x80AA0A05L) + +// +// MessageId: E_IMAPI_RAW_IMAGE_TOO_MANY_TRACK_INDEXES +// +// MessageText: +// +// Adding the track index would result in exceeding the 99 index limit. +// +#define E_IMAPI_RAW_IMAGE_TOO_MANY_TRACK_INDEXES ((HRESULT)0x80AA0A06L) + +// +// MessageId: E_IMAPI_RAW_IMAGE_TRACK_INDEX_NOT_FOUND +// +// MessageText: +// +// The specified LBA offset is not in the list of track indexes. +// +#define E_IMAPI_RAW_IMAGE_TRACK_INDEX_NOT_FOUND ((HRESULT)0x80AA0A07L) + +// +// MessageId: S_IMAPI_RAW_IMAGE_TRACK_INDEX_ALREADY_EXISTS +// +// MessageText: +// +// The specified LBA offset is already in the list of track indexes. +// +#define S_IMAPI_RAW_IMAGE_TRACK_INDEX_ALREADY_EXISTS ((HRESULT)0x00AA0A08L) + +// +// MessageId: E_IMAPI_RAW_IMAGE_TRACK_INDEX_OFFSET_ZERO_CANNOT_BE_CLEARED +// +// MessageText: +// +// Index 1 (LBA offset zero) may not be cleared. +// +#define E_IMAPI_RAW_IMAGE_TRACK_INDEX_OFFSET_ZERO_CANNOT_BE_CLEARED ((HRESULT)0x80AA0A09L) + +// +// MessageId: E_IMAPI_RAW_IMAGE_TRACK_INDEX_TOO_CLOSE_TO_OTHER_INDEX +// +// MessageText: +// +// Each index must have a minimum size of ten sectors. +// +#define E_IMAPI_RAW_IMAGE_TRACK_INDEX_TOO_CLOSE_TO_OTHER_INDEX ((HRESULT)0x80AA0A0AL) + +#endif /* _IMAPI2ERROR_ */ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2fs.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2fs.h new file mode 100644 index 0000000000000000000000000000000000000000..7afec15555d0d912cd33df9aa55cf54836c71061 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2fs.h @@ -0,0 +1,5898 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __imapi2fs_h__ +#define __imapi2fs_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IBootOptions_FWD_DEFINED__ +#define __IBootOptions_FWD_DEFINED__ +typedef interface IBootOptions IBootOptions; + +#endif /* __IBootOptions_FWD_DEFINED__ */ + + +#ifndef __IProgressItem_FWD_DEFINED__ +#define __IProgressItem_FWD_DEFINED__ +typedef interface IProgressItem IProgressItem; + +#endif /* __IProgressItem_FWD_DEFINED__ */ + + +#ifndef __IEnumProgressItems_FWD_DEFINED__ +#define __IEnumProgressItems_FWD_DEFINED__ +typedef interface IEnumProgressItems IEnumProgressItems; + +#endif /* __IEnumProgressItems_FWD_DEFINED__ */ + + +#ifndef __IProgressItems_FWD_DEFINED__ +#define __IProgressItems_FWD_DEFINED__ +typedef interface IProgressItems IProgressItems; + +#endif /* __IProgressItems_FWD_DEFINED__ */ + + +#ifndef __IFileSystemImageResult_FWD_DEFINED__ +#define __IFileSystemImageResult_FWD_DEFINED__ +typedef interface IFileSystemImageResult IFileSystemImageResult; + +#endif /* __IFileSystemImageResult_FWD_DEFINED__ */ + + +#ifndef __IFileSystemImageResult2_FWD_DEFINED__ +#define __IFileSystemImageResult2_FWD_DEFINED__ +typedef interface IFileSystemImageResult2 IFileSystemImageResult2; + +#endif /* __IFileSystemImageResult2_FWD_DEFINED__ */ + + +#ifndef __IFsiItem_FWD_DEFINED__ +#define __IFsiItem_FWD_DEFINED__ +typedef interface IFsiItem IFsiItem; + +#endif /* __IFsiItem_FWD_DEFINED__ */ + + +#ifndef __IEnumFsiItems_FWD_DEFINED__ +#define __IEnumFsiItems_FWD_DEFINED__ +typedef interface IEnumFsiItems IEnumFsiItems; + +#endif /* __IEnumFsiItems_FWD_DEFINED__ */ + + +#ifndef __IFsiFileItem_FWD_DEFINED__ +#define __IFsiFileItem_FWD_DEFINED__ +typedef interface IFsiFileItem IFsiFileItem; + +#endif /* __IFsiFileItem_FWD_DEFINED__ */ + + +#ifndef __IFsiFileItem2_FWD_DEFINED__ +#define __IFsiFileItem2_FWD_DEFINED__ +typedef interface IFsiFileItem2 IFsiFileItem2; + +#endif /* __IFsiFileItem2_FWD_DEFINED__ */ + + +#ifndef __IFsiNamedStreams_FWD_DEFINED__ +#define __IFsiNamedStreams_FWD_DEFINED__ +typedef interface IFsiNamedStreams IFsiNamedStreams; + +#endif /* __IFsiNamedStreams_FWD_DEFINED__ */ + + +#ifndef __IFsiDirectoryItem_FWD_DEFINED__ +#define __IFsiDirectoryItem_FWD_DEFINED__ +typedef interface IFsiDirectoryItem IFsiDirectoryItem; + +#endif /* __IFsiDirectoryItem_FWD_DEFINED__ */ + + +#ifndef __IFsiDirectoryItem2_FWD_DEFINED__ +#define __IFsiDirectoryItem2_FWD_DEFINED__ +typedef interface IFsiDirectoryItem2 IFsiDirectoryItem2; + +#endif /* __IFsiDirectoryItem2_FWD_DEFINED__ */ + + +#ifndef __IFileSystemImage_FWD_DEFINED__ +#define __IFileSystemImage_FWD_DEFINED__ +typedef interface IFileSystemImage IFileSystemImage; + +#endif /* __IFileSystemImage_FWD_DEFINED__ */ + + +#ifndef __IFileSystemImage2_FWD_DEFINED__ +#define __IFileSystemImage2_FWD_DEFINED__ +typedef interface IFileSystemImage2 IFileSystemImage2; + +#endif /* __IFileSystemImage2_FWD_DEFINED__ */ + + +#ifndef __IFileSystemImage3_FWD_DEFINED__ +#define __IFileSystemImage3_FWD_DEFINED__ +typedef interface IFileSystemImage3 IFileSystemImage3; + +#endif /* __IFileSystemImage3_FWD_DEFINED__ */ + + +#ifndef __DFileSystemImageEvents_FWD_DEFINED__ +#define __DFileSystemImageEvents_FWD_DEFINED__ +typedef interface DFileSystemImageEvents DFileSystemImageEvents; + +#endif /* __DFileSystemImageEvents_FWD_DEFINED__ */ + + +#ifndef __DFileSystemImageImportEvents_FWD_DEFINED__ +#define __DFileSystemImageImportEvents_FWD_DEFINED__ +typedef interface DFileSystemImageImportEvents DFileSystemImageImportEvents; + +#endif /* __DFileSystemImageImportEvents_FWD_DEFINED__ */ + + +#ifndef __IIsoImageManager_FWD_DEFINED__ +#define __IIsoImageManager_FWD_DEFINED__ +typedef interface IIsoImageManager IIsoImageManager; + +#endif /* __IIsoImageManager_FWD_DEFINED__ */ + + +#ifndef __DFileSystemImageEvents_FWD_DEFINED__ +#define __DFileSystemImageEvents_FWD_DEFINED__ +typedef interface DFileSystemImageEvents DFileSystemImageEvents; + +#endif /* __DFileSystemImageEvents_FWD_DEFINED__ */ + + +#ifndef __DFileSystemImageImportEvents_FWD_DEFINED__ +#define __DFileSystemImageImportEvents_FWD_DEFINED__ +typedef interface DFileSystemImageImportEvents DFileSystemImageImportEvents; + +#endif /* __DFileSystemImageImportEvents_FWD_DEFINED__ */ + + +#ifndef __BootOptions_FWD_DEFINED__ +#define __BootOptions_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BootOptions BootOptions; +#else +typedef struct BootOptions BootOptions; +#endif /* __cplusplus */ + +#endif /* __BootOptions_FWD_DEFINED__ */ + + +#ifndef __FsiStream_FWD_DEFINED__ +#define __FsiStream_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsiStream FsiStream; +#else +typedef struct FsiStream FsiStream; +#endif /* __cplusplus */ + +#endif /* __FsiStream_FWD_DEFINED__ */ + + +#ifndef __FileSystemImageResult_FWD_DEFINED__ +#define __FileSystemImageResult_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FileSystemImageResult FileSystemImageResult; +#else +typedef struct FileSystemImageResult FileSystemImageResult; +#endif /* __cplusplus */ + +#endif /* __FileSystemImageResult_FWD_DEFINED__ */ + + +#ifndef __ProgressItem_FWD_DEFINED__ +#define __ProgressItem_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ProgressItem ProgressItem; +#else +typedef struct ProgressItem ProgressItem; +#endif /* __cplusplus */ + +#endif /* __ProgressItem_FWD_DEFINED__ */ + + +#ifndef __EnumProgressItems_FWD_DEFINED__ +#define __EnumProgressItems_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnumProgressItems EnumProgressItems; +#else +typedef struct EnumProgressItems EnumProgressItems; +#endif /* __cplusplus */ + +#endif /* __EnumProgressItems_FWD_DEFINED__ */ + + +#ifndef __ProgressItems_FWD_DEFINED__ +#define __ProgressItems_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ProgressItems ProgressItems; +#else +typedef struct ProgressItems ProgressItems; +#endif /* __cplusplus */ + +#endif /* __ProgressItems_FWD_DEFINED__ */ + + +#ifndef __FsiDirectoryItem_FWD_DEFINED__ +#define __FsiDirectoryItem_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsiDirectoryItem FsiDirectoryItem; +#else +typedef struct FsiDirectoryItem FsiDirectoryItem; +#endif /* __cplusplus */ + +#endif /* __FsiDirectoryItem_FWD_DEFINED__ */ + + +#ifndef __FsiFileItem_FWD_DEFINED__ +#define __FsiFileItem_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsiFileItem FsiFileItem; +#else +typedef struct FsiFileItem FsiFileItem; +#endif /* __cplusplus */ + +#endif /* __FsiFileItem_FWD_DEFINED__ */ + + +#ifndef __EnumFsiItems_FWD_DEFINED__ +#define __EnumFsiItems_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnumFsiItems EnumFsiItems; +#else +typedef struct EnumFsiItems EnumFsiItems; +#endif /* __cplusplus */ + +#endif /* __EnumFsiItems_FWD_DEFINED__ */ + + +#ifndef __FsiNamedStreams_FWD_DEFINED__ +#define __FsiNamedStreams_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class FsiNamedStreams FsiNamedStreams; +#else +typedef struct FsiNamedStreams FsiNamedStreams; +#endif /* __cplusplus */ + +#endif /* __FsiNamedStreams_FWD_DEFINED__ */ + + +#ifndef __MsftFileSystemImage_FWD_DEFINED__ +#define __MsftFileSystemImage_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftFileSystemImage MsftFileSystemImage; +#else +typedef struct MsftFileSystemImage MsftFileSystemImage; +#endif /* __cplusplus */ + +#endif /* __MsftFileSystemImage_FWD_DEFINED__ */ + + +#ifndef __MsftIsoImageManager_FWD_DEFINED__ +#define __MsftIsoImageManager_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class MsftIsoImageManager MsftIsoImageManager; +#else +typedef struct MsftIsoImageManager MsftIsoImageManager; +#endif /* __cplusplus */ + +#endif /* __MsftIsoImageManager_FWD_DEFINED__ */ + + +#ifndef __BlockRange_FWD_DEFINED__ +#define __BlockRange_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BlockRange BlockRange; +#else +typedef struct BlockRange BlockRange; +#endif /* __cplusplus */ + +#endif /* __BlockRange_FWD_DEFINED__ */ + + +#ifndef __BlockRangeList_FWD_DEFINED__ +#define __BlockRangeList_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class BlockRangeList BlockRangeList; +#else +typedef struct BlockRangeList BlockRangeList; +#endif /* __cplusplus */ + +#endif /* __BlockRangeList_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "imapi2.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_imapi2fs_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define IMAPI2FS_BOOT_ENTRY_COUNT_MAX 32 +typedef /* [helpstring][public][v1_enum] */ +enum FsiItemType + { + FsiItemNotFound = 0, + FsiItemDirectory = 1, + FsiItemFile = 2 + } FsiItemType; + +typedef /* [helpstring][public][v1_enum] */ +enum FsiFileSystems + { + FsiFileSystemNone = 0, + FsiFileSystemISO9660 = 1, + FsiFileSystemJoliet = 2, + FsiFileSystemUDF = 4, + FsiFileSystemUnknown = 0x40000000 + } FsiFileSystems; + +typedef /* [helpstring][public][v1_enum] */ +enum EmulationType + { + EmulationNone = 0, + Emulation12MFloppy = 1, + Emulation144MFloppy = 2, + Emulation288MFloppy = 3, + EmulationHardDisk = 4 + } EmulationType; + +typedef /* [helpstring][public][v1_enum] */ +enum PlatformId + { + PlatformX86 = 0, + PlatformPowerPC = 1, + PlatformMac = 2, + PlatformEFI = 0xef + } PlatformId; + + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0000_v0_0_s_ifspec; + +#ifndef __IBootOptions_INTERFACE_DEFINED__ +#define __IBootOptions_INTERFACE_DEFINED__ + +/* interface IBootOptions */ +/* [helpstring][uuid][oleautomation][nonextensible][dual][unique][object] */ + + +EXTERN_C const IID IID_IBootOptions; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FD4-975B-59BE-A960-9A2A262853A5") + IBootOptions : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BootImage( + /* [retval][out] */ __RPC__deref_out_opt IStream **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Manufacturer( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Manufacturer( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PlatformId( + /* [retval][out] */ __RPC__out PlatformId *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PlatformId( + /* [in] */ PlatformId newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Emulation( + /* [retval][out] */ __RPC__out EmulationType *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Emulation( + /* [in] */ EmulationType newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ImageSize( + /* [retval][out] */ __RPC__out ULONG *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AssignBootImage( + /* [in] */ __RPC__in_opt IStream *newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IBootOptionsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IBootOptions * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IBootOptions * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IBootOptions * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IBootOptions * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IBootOptions * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IBootOptions * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IBootOptions * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IBootOptions, get_BootImage) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BootImage )( + __RPC__in IBootOptions * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **pVal); + + DECLSPEC_XFGVIRT(IBootOptions, get_Manufacturer) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Manufacturer )( + __RPC__in IBootOptions * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IBootOptions, put_Manufacturer) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Manufacturer )( + __RPC__in IBootOptions * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IBootOptions, get_PlatformId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PlatformId )( + __RPC__in IBootOptions * This, + /* [retval][out] */ __RPC__out PlatformId *pVal); + + DECLSPEC_XFGVIRT(IBootOptions, put_PlatformId) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PlatformId )( + __RPC__in IBootOptions * This, + /* [in] */ PlatformId newVal); + + DECLSPEC_XFGVIRT(IBootOptions, get_Emulation) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Emulation )( + __RPC__in IBootOptions * This, + /* [retval][out] */ __RPC__out EmulationType *pVal); + + DECLSPEC_XFGVIRT(IBootOptions, put_Emulation) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Emulation )( + __RPC__in IBootOptions * This, + /* [in] */ EmulationType newVal); + + DECLSPEC_XFGVIRT(IBootOptions, get_ImageSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImageSize )( + __RPC__in IBootOptions * This, + /* [retval][out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(IBootOptions, AssignBootImage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AssignBootImage )( + __RPC__in IBootOptions * This, + /* [in] */ __RPC__in_opt IStream *newVal); + + END_INTERFACE + } IBootOptionsVtbl; + + interface IBootOptions + { + CONST_VTBL struct IBootOptionsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IBootOptions_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IBootOptions_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IBootOptions_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IBootOptions_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IBootOptions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IBootOptions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IBootOptions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IBootOptions_get_BootImage(This,pVal) \ + ( (This)->lpVtbl -> get_BootImage(This,pVal) ) + +#define IBootOptions_get_Manufacturer(This,pVal) \ + ( (This)->lpVtbl -> get_Manufacturer(This,pVal) ) + +#define IBootOptions_put_Manufacturer(This,newVal) \ + ( (This)->lpVtbl -> put_Manufacturer(This,newVal) ) + +#define IBootOptions_get_PlatformId(This,pVal) \ + ( (This)->lpVtbl -> get_PlatformId(This,pVal) ) + +#define IBootOptions_put_PlatformId(This,newVal) \ + ( (This)->lpVtbl -> put_PlatformId(This,newVal) ) + +#define IBootOptions_get_Emulation(This,pVal) \ + ( (This)->lpVtbl -> get_Emulation(This,pVal) ) + +#define IBootOptions_put_Emulation(This,newVal) \ + ( (This)->lpVtbl -> put_Emulation(This,newVal) ) + +#define IBootOptions_get_ImageSize(This,pVal) \ + ( (This)->lpVtbl -> get_ImageSize(This,pVal) ) + +#define IBootOptions_AssignBootImage(This,newVal) \ + ( (This)->lpVtbl -> AssignBootImage(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IBootOptions_INTERFACE_DEFINED__ */ + + +#ifndef __IProgressItem_INTERFACE_DEFINED__ +#define __IProgressItem_INTERFACE_DEFINED__ + +/* interface IProgressItem */ +/* [helpstring][uuid][oleautomation][nonextensible][dual][unique][object] */ + + +EXTERN_C const IID IID_IProgressItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FD5-975B-59BE-A960-9A2A262853A5") + IProgressItem : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Description( + /* [retval][out] */ __RPC__deref_out_opt BSTR *desc) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FirstBlock( + /* [retval][out] */ __RPC__out ULONG *block) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastBlock( + /* [retval][out] */ __RPC__out ULONG *block) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockCount( + /* [retval][out] */ __RPC__out ULONG *blocks) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProgressItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProgressItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProgressItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProgressItem * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IProgressItem * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IProgressItem * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IProgressItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IProgressItem * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IProgressItem, get_Description) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Description )( + __RPC__in IProgressItem * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *desc); + + DECLSPEC_XFGVIRT(IProgressItem, get_FirstBlock) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirstBlock )( + __RPC__in IProgressItem * This, + /* [retval][out] */ __RPC__out ULONG *block); + + DECLSPEC_XFGVIRT(IProgressItem, get_LastBlock) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastBlock )( + __RPC__in IProgressItem * This, + /* [retval][out] */ __RPC__out ULONG *block); + + DECLSPEC_XFGVIRT(IProgressItem, get_BlockCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockCount )( + __RPC__in IProgressItem * This, + /* [retval][out] */ __RPC__out ULONG *blocks); + + END_INTERFACE + } IProgressItemVtbl; + + interface IProgressItem + { + CONST_VTBL struct IProgressItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProgressItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProgressItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProgressItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProgressItem_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IProgressItem_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IProgressItem_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IProgressItem_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IProgressItem_get_Description(This,desc) \ + ( (This)->lpVtbl -> get_Description(This,desc) ) + +#define IProgressItem_get_FirstBlock(This,block) \ + ( (This)->lpVtbl -> get_FirstBlock(This,block) ) + +#define IProgressItem_get_LastBlock(This,block) \ + ( (This)->lpVtbl -> get_LastBlock(This,block) ) + +#define IProgressItem_get_BlockCount(This,blocks) \ + ( (This)->lpVtbl -> get_BlockCount(This,blocks) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProgressItem_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumProgressItems_INTERFACE_DEFINED__ +#define __IEnumProgressItems_INTERFACE_DEFINED__ + +/* interface IEnumProgressItems */ +/* [helpstring][uuid][unique][object] */ + + +EXTERN_C const IID IID_IEnumProgressItems; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FD6-975B-59BE-A960-9A2A262853A5") + IEnumProgressItems : public IUnknown + { + public: + virtual /* [helpstring][local] */ HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [size_is][out] */ IProgressItem **rgelt, + /* [out] */ ULONG *pceltFetched) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumProgressItems **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumProgressItemsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumProgressItems * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumProgressItems * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumProgressItems * This); + + DECLSPEC_XFGVIRT(IEnumProgressItems, Next) + /* [helpstring][local] */ HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumProgressItems * This, + /* [in] */ ULONG celt, + /* [size_is][out] */ IProgressItem **rgelt, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumProgressItems, Skip) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumProgressItems * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumProgressItems, Reset) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumProgressItems * This); + + DECLSPEC_XFGVIRT(IEnumProgressItems, Clone) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumProgressItems * This, + /* [out] */ __RPC__deref_out_opt IEnumProgressItems **ppEnum); + + END_INTERFACE + } IEnumProgressItemsVtbl; + + interface IEnumProgressItems + { + CONST_VTBL struct IEnumProgressItemsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumProgressItems_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumProgressItems_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumProgressItems_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumProgressItems_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumProgressItems_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumProgressItems_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumProgressItems_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [helpstring][call_as] */ HRESULT STDMETHODCALLTYPE IEnumProgressItems_RemoteNext_Proxy( + __RPC__in IEnumProgressItems * This, + /* [range][in] */ __RPC__in_range(1,0x7fffffff) ULONG celt, + /* [size_is][out] */ __RPC__out_ecount_full(celt) IProgressItem **rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched); + + +void __RPC_STUB IEnumProgressItems_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumProgressItems_INTERFACE_DEFINED__ */ + + +#ifndef __IProgressItems_INTERFACE_DEFINED__ +#define __IProgressItems_INTERFACE_DEFINED__ + +/* interface IProgressItems */ +/* [helpstring][uuid][oleautomation][nonextensible][dual][unique][object] */ + + +EXTERN_C const IID IID_IProgressItems; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FD7-975B-59BE-A960-9A2A262853A5") + IProgressItems : public IDispatch + { + public: + virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **NewEnum) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ long Index, + /* [retval][out] */ __RPC__deref_out_opt IProgressItem **item) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out long *Count) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ProgressItemFromBlock( + /* [in] */ ULONG block, + /* [retval][out] */ __RPC__deref_out_opt IProgressItem **item) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ProgressItemFromDescription( + /* [in] */ __RPC__in BSTR description, + /* [retval][out] */ __RPC__deref_out_opt IProgressItem **item) = 0; + + virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumProgressItems( + /* [retval][out] */ __RPC__deref_out_opt IEnumProgressItems **NewEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProgressItemsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProgressItems * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProgressItems * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProgressItems * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IProgressItems * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IProgressItems * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IProgressItems * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IProgressItems * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IProgressItems, get__NewEnum) + /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IProgressItems * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **NewEnum); + + DECLSPEC_XFGVIRT(IProgressItems, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IProgressItems * This, + /* [in] */ long Index, + /* [retval][out] */ __RPC__deref_out_opt IProgressItem **item); + + DECLSPEC_XFGVIRT(IProgressItems, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IProgressItems * This, + /* [retval][out] */ __RPC__out long *Count); + + DECLSPEC_XFGVIRT(IProgressItems, ProgressItemFromBlock) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ProgressItemFromBlock )( + __RPC__in IProgressItems * This, + /* [in] */ ULONG block, + /* [retval][out] */ __RPC__deref_out_opt IProgressItem **item); + + DECLSPEC_XFGVIRT(IProgressItems, ProgressItemFromDescription) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ProgressItemFromDescription )( + __RPC__in IProgressItems * This, + /* [in] */ __RPC__in BSTR description, + /* [retval][out] */ __RPC__deref_out_opt IProgressItem **item); + + DECLSPEC_XFGVIRT(IProgressItems, get_EnumProgressItems) + /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumProgressItems )( + __RPC__in IProgressItems * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumProgressItems **NewEnum); + + END_INTERFACE + } IProgressItemsVtbl; + + interface IProgressItems + { + CONST_VTBL struct IProgressItemsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProgressItems_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProgressItems_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProgressItems_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProgressItems_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IProgressItems_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IProgressItems_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IProgressItems_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IProgressItems_get__NewEnum(This,NewEnum) \ + ( (This)->lpVtbl -> get__NewEnum(This,NewEnum) ) + +#define IProgressItems_get_Item(This,Index,item) \ + ( (This)->lpVtbl -> get_Item(This,Index,item) ) + +#define IProgressItems_get_Count(This,Count) \ + ( (This)->lpVtbl -> get_Count(This,Count) ) + +#define IProgressItems_ProgressItemFromBlock(This,block,item) \ + ( (This)->lpVtbl -> ProgressItemFromBlock(This,block,item) ) + +#define IProgressItems_ProgressItemFromDescription(This,description,item) \ + ( (This)->lpVtbl -> ProgressItemFromDescription(This,description,item) ) + +#define IProgressItems_get_EnumProgressItems(This,NewEnum) \ + ( (This)->lpVtbl -> get_EnumProgressItems(This,NewEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProgressItems_INTERFACE_DEFINED__ */ + + +#ifndef __IFileSystemImageResult_INTERFACE_DEFINED__ +#define __IFileSystemImageResult_INTERFACE_DEFINED__ + +/* interface IFileSystemImageResult */ +/* [helpstring][uuid][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFileSystemImageResult; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FD8-975B-59BE-A960-9A2A262853A5") + IFileSystemImageResult : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ImageStream( + /* [retval][out] */ __RPC__deref_out_opt IStream **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProgressItems( + /* [retval][out] */ __RPC__deref_out_opt IProgressItems **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalBlocks( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockSize( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DiscId( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFileSystemImageResultVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFileSystemImageResult * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFileSystemImageResult * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFileSystemImageResult * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFileSystemImageResult * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFileSystemImageResult * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFileSystemImageResult * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFileSystemImageResult * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFileSystemImageResult, get_ImageStream) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImageStream )( + __RPC__in IFileSystemImageResult * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **pVal); + + DECLSPEC_XFGVIRT(IFileSystemImageResult, get_ProgressItems) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgressItems )( + __RPC__in IFileSystemImageResult * This, + /* [retval][out] */ __RPC__deref_out_opt IProgressItems **pVal); + + DECLSPEC_XFGVIRT(IFileSystemImageResult, get_TotalBlocks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalBlocks )( + __RPC__in IFileSystemImageResult * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImageResult, get_BlockSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockSize )( + __RPC__in IFileSystemImageResult * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImageResult, get_DiscId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscId )( + __RPC__in IFileSystemImageResult * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + END_INTERFACE + } IFileSystemImageResultVtbl; + + interface IFileSystemImageResult + { + CONST_VTBL struct IFileSystemImageResultVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFileSystemImageResult_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFileSystemImageResult_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFileSystemImageResult_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFileSystemImageResult_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFileSystemImageResult_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFileSystemImageResult_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFileSystemImageResult_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFileSystemImageResult_get_ImageStream(This,pVal) \ + ( (This)->lpVtbl -> get_ImageStream(This,pVal) ) + +#define IFileSystemImageResult_get_ProgressItems(This,pVal) \ + ( (This)->lpVtbl -> get_ProgressItems(This,pVal) ) + +#define IFileSystemImageResult_get_TotalBlocks(This,pVal) \ + ( (This)->lpVtbl -> get_TotalBlocks(This,pVal) ) + +#define IFileSystemImageResult_get_BlockSize(This,pVal) \ + ( (This)->lpVtbl -> get_BlockSize(This,pVal) ) + +#define IFileSystemImageResult_get_DiscId(This,pVal) \ + ( (This)->lpVtbl -> get_DiscId(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFileSystemImageResult_INTERFACE_DEFINED__ */ + + +#ifndef __IFileSystemImageResult2_INTERFACE_DEFINED__ +#define __IFileSystemImageResult2_INTERFACE_DEFINED__ + +/* interface IFileSystemImageResult2 */ +/* [helpstring][uuid][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFileSystemImageResult2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B507CA29-2204-11DD-966A-001AA01BBC58") + IFileSystemImageResult2 : public IFileSystemImageResult + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ModifiedBlocks( + /* [retval][ref][out] */ __RPC__deref_out_opt IBlockRangeList **pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFileSystemImageResult2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFileSystemImageResult2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFileSystemImageResult2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFileSystemImageResult2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFileSystemImageResult2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFileSystemImageResult2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFileSystemImageResult2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFileSystemImageResult2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFileSystemImageResult, get_ImageStream) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImageStream )( + __RPC__in IFileSystemImageResult2 * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **pVal); + + DECLSPEC_XFGVIRT(IFileSystemImageResult, get_ProgressItems) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgressItems )( + __RPC__in IFileSystemImageResult2 * This, + /* [retval][out] */ __RPC__deref_out_opt IProgressItems **pVal); + + DECLSPEC_XFGVIRT(IFileSystemImageResult, get_TotalBlocks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalBlocks )( + __RPC__in IFileSystemImageResult2 * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImageResult, get_BlockSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockSize )( + __RPC__in IFileSystemImageResult2 * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImageResult, get_DiscId) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DiscId )( + __RPC__in IFileSystemImageResult2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImageResult2, get_ModifiedBlocks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ModifiedBlocks )( + __RPC__in IFileSystemImageResult2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IBlockRangeList **pVal); + + END_INTERFACE + } IFileSystemImageResult2Vtbl; + + interface IFileSystemImageResult2 + { + CONST_VTBL struct IFileSystemImageResult2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFileSystemImageResult2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFileSystemImageResult2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFileSystemImageResult2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFileSystemImageResult2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFileSystemImageResult2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFileSystemImageResult2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFileSystemImageResult2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFileSystemImageResult2_get_ImageStream(This,pVal) \ + ( (This)->lpVtbl -> get_ImageStream(This,pVal) ) + +#define IFileSystemImageResult2_get_ProgressItems(This,pVal) \ + ( (This)->lpVtbl -> get_ProgressItems(This,pVal) ) + +#define IFileSystemImageResult2_get_TotalBlocks(This,pVal) \ + ( (This)->lpVtbl -> get_TotalBlocks(This,pVal) ) + +#define IFileSystemImageResult2_get_BlockSize(This,pVal) \ + ( (This)->lpVtbl -> get_BlockSize(This,pVal) ) + +#define IFileSystemImageResult2_get_DiscId(This,pVal) \ + ( (This)->lpVtbl -> get_DiscId(This,pVal) ) + + +#define IFileSystemImageResult2_get_ModifiedBlocks(This,pVal) \ + ( (This)->lpVtbl -> get_ModifiedBlocks(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFileSystemImageResult2_INTERFACE_DEFINED__ */ + + +#ifndef __IFsiItem_INTERFACE_DEFINED__ +#define __IFsiItem_INTERFACE_DEFINED__ + +/* interface IFsiItem */ +/* [helpstring][uuid][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFsiItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FD9-975B-59BE-A960-9A2A262853A5") + IFsiItem : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FullPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CreationTime( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CreationTime( + /* [in] */ DATE newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastAccessedTime( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LastAccessedTime( + /* [in] */ DATE newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LastModifiedTime( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_LastModifiedTime( + /* [in] */ DATE newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsHidden( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_IsHidden( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE FileSystemName( + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE FileSystemPath( + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsiItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsiItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsiItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsiItem * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsiItem * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsiItem * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsiItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsiItem * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsiItem, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsiItem * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_FullPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FullPath )( + __RPC__in IFsiItem * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IFsiItem * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_CreationTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CreationTime )( + __RPC__in IFsiItem * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_LastAccessedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastAccessedTime )( + __RPC__in IFsiItem * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_LastAccessedTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastAccessedTime )( + __RPC__in IFsiItem * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_LastModifiedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastModifiedTime )( + __RPC__in IFsiItem * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_LastModifiedTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastModifiedTime )( + __RPC__in IFsiItem * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_IsHidden) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsHidden )( + __RPC__in IFsiItem * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_IsHidden) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsHidden )( + __RPC__in IFsiItem * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFsiItem, FileSystemName) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FileSystemName )( + __RPC__in IFsiItem * This, + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, FileSystemPath) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FileSystemPath )( + __RPC__in IFsiItem * This, + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + END_INTERFACE + } IFsiItemVtbl; + + interface IFsiItem + { + CONST_VTBL struct IFsiItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsiItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsiItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsiItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsiItem_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsiItem_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsiItem_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsiItem_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsiItem_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) + +#define IFsiItem_get_FullPath(This,pVal) \ + ( (This)->lpVtbl -> get_FullPath(This,pVal) ) + +#define IFsiItem_get_CreationTime(This,pVal) \ + ( (This)->lpVtbl -> get_CreationTime(This,pVal) ) + +#define IFsiItem_put_CreationTime(This,newVal) \ + ( (This)->lpVtbl -> put_CreationTime(This,newVal) ) + +#define IFsiItem_get_LastAccessedTime(This,pVal) \ + ( (This)->lpVtbl -> get_LastAccessedTime(This,pVal) ) + +#define IFsiItem_put_LastAccessedTime(This,newVal) \ + ( (This)->lpVtbl -> put_LastAccessedTime(This,newVal) ) + +#define IFsiItem_get_LastModifiedTime(This,pVal) \ + ( (This)->lpVtbl -> get_LastModifiedTime(This,pVal) ) + +#define IFsiItem_put_LastModifiedTime(This,newVal) \ + ( (This)->lpVtbl -> put_LastModifiedTime(This,newVal) ) + +#define IFsiItem_get_IsHidden(This,pVal) \ + ( (This)->lpVtbl -> get_IsHidden(This,pVal) ) + +#define IFsiItem_put_IsHidden(This,newVal) \ + ( (This)->lpVtbl -> put_IsHidden(This,newVal) ) + +#define IFsiItem_FileSystemName(This,fileSystem,pVal) \ + ( (This)->lpVtbl -> FileSystemName(This,fileSystem,pVal) ) + +#define IFsiItem_FileSystemPath(This,fileSystem,pVal) \ + ( (This)->lpVtbl -> FileSystemPath(This,fileSystem,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsiItem_INTERFACE_DEFINED__ */ + + +#ifndef __IEnumFsiItems_INTERFACE_DEFINED__ +#define __IEnumFsiItems_INTERFACE_DEFINED__ + +/* interface IEnumFsiItems */ +/* [helpstring][uuid][unique][object] */ + + +EXTERN_C const IID IID_IEnumFsiItems; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FDA-975B-59BE-A960-9A2A262853A5") + IEnumFsiItems : public IUnknown + { + public: + virtual /* [helpstring][local] */ HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG celt, + /* [size_is][out] */ IFsiItem **rgelt, + /* [out] */ ULONG *pceltFetched) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Skip( + /* [in] */ ULONG celt) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Clone( + /* [out] */ __RPC__deref_out_opt IEnumFsiItems **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumFsiItemsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEnumFsiItems * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEnumFsiItems * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEnumFsiItems * This); + + DECLSPEC_XFGVIRT(IEnumFsiItems, Next) + /* [helpstring][local] */ HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumFsiItems * This, + /* [in] */ ULONG celt, + /* [size_is][out] */ IFsiItem **rgelt, + /* [out] */ ULONG *pceltFetched); + + DECLSPEC_XFGVIRT(IEnumFsiItems, Skip) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Skip )( + __RPC__in IEnumFsiItems * This, + /* [in] */ ULONG celt); + + DECLSPEC_XFGVIRT(IEnumFsiItems, Reset) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IEnumFsiItems * This); + + DECLSPEC_XFGVIRT(IEnumFsiItems, Clone) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *Clone )( + __RPC__in IEnumFsiItems * This, + /* [out] */ __RPC__deref_out_opt IEnumFsiItems **ppEnum); + + END_INTERFACE + } IEnumFsiItemsVtbl; + + interface IEnumFsiItems + { + CONST_VTBL struct IEnumFsiItemsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumFsiItems_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumFsiItems_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumFsiItems_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumFsiItems_Next(This,celt,rgelt,pceltFetched) \ + ( (This)->lpVtbl -> Next(This,celt,rgelt,pceltFetched) ) + +#define IEnumFsiItems_Skip(This,celt) \ + ( (This)->lpVtbl -> Skip(This,celt) ) + +#define IEnumFsiItems_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IEnumFsiItems_Clone(This,ppEnum) \ + ( (This)->lpVtbl -> Clone(This,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + +/* [helpstring][call_as] */ HRESULT STDMETHODCALLTYPE IEnumFsiItems_RemoteNext_Proxy( + __RPC__in IEnumFsiItems * This, + /* [range][in] */ __RPC__in_range(0,0x7fffffff) ULONG celt, + /* [size_is][out] */ __RPC__out_ecount_full(celt) IFsiItem **rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched); + + +void __RPC_STUB IEnumFsiItems_RemoteNext_Stub( + IRpcStubBuffer *This, + IRpcChannelBuffer *_pRpcChannelBuffer, + PRPC_MESSAGE _pRpcMessage, + DWORD *_pdwStubPhase); + + + +#endif /* __IEnumFsiItems_INTERFACE_DEFINED__ */ + + +#ifndef __IFsiFileItem_INTERFACE_DEFINED__ +#define __IFsiFileItem_INTERFACE_DEFINED__ + +/* interface IFsiFileItem */ +/* [helpstring][uuid][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFsiFileItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FDB-975B-59BE-A960-9A2A262853A5") + IFsiFileItem : public IFsiItem + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DataSize( + /* [retval][out] */ __RPC__out LONGLONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DataSize32BitLow( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DataSize32BitHigh( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Data( + /* [retval][out] */ __RPC__deref_out_opt IStream **pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_Data( + /* [in] */ __RPC__in_opt IStream *newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsiFileItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsiFileItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsiFileItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsiFileItem * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsiFileItem * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsiFileItem * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsiFileItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsiFileItem * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsiItem, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsiFileItem * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_FullPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FullPath )( + __RPC__in IFsiFileItem * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IFsiFileItem * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_CreationTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CreationTime )( + __RPC__in IFsiFileItem * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_LastAccessedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastAccessedTime )( + __RPC__in IFsiFileItem * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_LastAccessedTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastAccessedTime )( + __RPC__in IFsiFileItem * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_LastModifiedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastModifiedTime )( + __RPC__in IFsiFileItem * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_LastModifiedTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastModifiedTime )( + __RPC__in IFsiFileItem * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_IsHidden) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsHidden )( + __RPC__in IFsiFileItem * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_IsHidden) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsHidden )( + __RPC__in IFsiFileItem * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFsiItem, FileSystemName) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FileSystemName )( + __RPC__in IFsiFileItem * This, + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, FileSystemPath) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FileSystemPath )( + __RPC__in IFsiFileItem * This, + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem, get_DataSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DataSize )( + __RPC__in IFsiFileItem * This, + /* [retval][out] */ __RPC__out LONGLONG *pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem, get_DataSize32BitLow) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DataSize32BitLow )( + __RPC__in IFsiFileItem * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem, get_DataSize32BitHigh) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DataSize32BitHigh )( + __RPC__in IFsiFileItem * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem, get_Data) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Data )( + __RPC__in IFsiFileItem * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem, put_Data) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Data )( + __RPC__in IFsiFileItem * This, + /* [in] */ __RPC__in_opt IStream *newVal); + + END_INTERFACE + } IFsiFileItemVtbl; + + interface IFsiFileItem + { + CONST_VTBL struct IFsiFileItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsiFileItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsiFileItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsiFileItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsiFileItem_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsiFileItem_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsiFileItem_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsiFileItem_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsiFileItem_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) + +#define IFsiFileItem_get_FullPath(This,pVal) \ + ( (This)->lpVtbl -> get_FullPath(This,pVal) ) + +#define IFsiFileItem_get_CreationTime(This,pVal) \ + ( (This)->lpVtbl -> get_CreationTime(This,pVal) ) + +#define IFsiFileItem_put_CreationTime(This,newVal) \ + ( (This)->lpVtbl -> put_CreationTime(This,newVal) ) + +#define IFsiFileItem_get_LastAccessedTime(This,pVal) \ + ( (This)->lpVtbl -> get_LastAccessedTime(This,pVal) ) + +#define IFsiFileItem_put_LastAccessedTime(This,newVal) \ + ( (This)->lpVtbl -> put_LastAccessedTime(This,newVal) ) + +#define IFsiFileItem_get_LastModifiedTime(This,pVal) \ + ( (This)->lpVtbl -> get_LastModifiedTime(This,pVal) ) + +#define IFsiFileItem_put_LastModifiedTime(This,newVal) \ + ( (This)->lpVtbl -> put_LastModifiedTime(This,newVal) ) + +#define IFsiFileItem_get_IsHidden(This,pVal) \ + ( (This)->lpVtbl -> get_IsHidden(This,pVal) ) + +#define IFsiFileItem_put_IsHidden(This,newVal) \ + ( (This)->lpVtbl -> put_IsHidden(This,newVal) ) + +#define IFsiFileItem_FileSystemName(This,fileSystem,pVal) \ + ( (This)->lpVtbl -> FileSystemName(This,fileSystem,pVal) ) + +#define IFsiFileItem_FileSystemPath(This,fileSystem,pVal) \ + ( (This)->lpVtbl -> FileSystemPath(This,fileSystem,pVal) ) + + +#define IFsiFileItem_get_DataSize(This,pVal) \ + ( (This)->lpVtbl -> get_DataSize(This,pVal) ) + +#define IFsiFileItem_get_DataSize32BitLow(This,pVal) \ + ( (This)->lpVtbl -> get_DataSize32BitLow(This,pVal) ) + +#define IFsiFileItem_get_DataSize32BitHigh(This,pVal) \ + ( (This)->lpVtbl -> get_DataSize32BitHigh(This,pVal) ) + +#define IFsiFileItem_get_Data(This,pVal) \ + ( (This)->lpVtbl -> get_Data(This,pVal) ) + +#define IFsiFileItem_put_Data(This,newVal) \ + ( (This)->lpVtbl -> put_Data(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsiFileItem_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2fs_0000_0009 */ +/* [local] */ + + + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0009_v0_0_s_ifspec; + +#ifndef __IFsiFileItem2_INTERFACE_DEFINED__ +#define __IFsiFileItem2_INTERFACE_DEFINED__ + +/* interface IFsiFileItem2 */ +/* [helpstring][uuid][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFsiFileItem2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("199D0C19-11E1-40eb-8EC2-C8C822A07792") + IFsiFileItem2 : public IFsiFileItem + { + public: + virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_FsiNamedStreams( + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiNamedStreams **streams) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsNamedStream( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddStream( + /* [in] */ __RPC__in BSTR name, + /* [in] */ __RPC__in_opt IStream *streamData) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveStream( + /* [in] */ __RPC__in BSTR name) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_IsRealTime( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_IsRealTime( + /* [in] */ VARIANT_BOOL newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsiFileItem2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsiFileItem2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsiFileItem2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsiFileItem2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsiFileItem2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsiItem, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsiFileItem2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_FullPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FullPath )( + __RPC__in IFsiFileItem2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IFsiFileItem2 * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_CreationTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CreationTime )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_LastAccessedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastAccessedTime )( + __RPC__in IFsiFileItem2 * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_LastAccessedTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastAccessedTime )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_LastModifiedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastModifiedTime )( + __RPC__in IFsiFileItem2 * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_LastModifiedTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastModifiedTime )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_IsHidden) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsHidden )( + __RPC__in IFsiFileItem2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_IsHidden) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsHidden )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFsiItem, FileSystemName) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FileSystemName )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, FileSystemPath) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FileSystemPath )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem, get_DataSize) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DataSize )( + __RPC__in IFsiFileItem2 * This, + /* [retval][out] */ __RPC__out LONGLONG *pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem, get_DataSize32BitLow) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DataSize32BitLow )( + __RPC__in IFsiFileItem2 * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem, get_DataSize32BitHigh) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DataSize32BitHigh )( + __RPC__in IFsiFileItem2 * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem, get_Data) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Data )( + __RPC__in IFsiFileItem2 * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem, put_Data) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_Data )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ __RPC__in_opt IStream *newVal); + + DECLSPEC_XFGVIRT(IFsiFileItem2, get_FsiNamedStreams) + /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FsiNamedStreams )( + __RPC__in IFsiFileItem2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiNamedStreams **streams); + + DECLSPEC_XFGVIRT(IFsiFileItem2, get_IsNamedStream) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsNamedStream )( + __RPC__in IFsiFileItem2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem2, AddStream) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddStream )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ __RPC__in BSTR name, + /* [in] */ __RPC__in_opt IStream *streamData); + + DECLSPEC_XFGVIRT(IFsiFileItem2, RemoveStream) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveStream )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ __RPC__in BSTR name); + + DECLSPEC_XFGVIRT(IFsiFileItem2, get_IsRealTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsRealTime )( + __RPC__in IFsiFileItem2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFsiFileItem2, put_IsRealTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsRealTime )( + __RPC__in IFsiFileItem2 * This, + /* [in] */ VARIANT_BOOL newVal); + + END_INTERFACE + } IFsiFileItem2Vtbl; + + interface IFsiFileItem2 + { + CONST_VTBL struct IFsiFileItem2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsiFileItem2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsiFileItem2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsiFileItem2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsiFileItem2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsiFileItem2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsiFileItem2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsiFileItem2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsiFileItem2_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) + +#define IFsiFileItem2_get_FullPath(This,pVal) \ + ( (This)->lpVtbl -> get_FullPath(This,pVal) ) + +#define IFsiFileItem2_get_CreationTime(This,pVal) \ + ( (This)->lpVtbl -> get_CreationTime(This,pVal) ) + +#define IFsiFileItem2_put_CreationTime(This,newVal) \ + ( (This)->lpVtbl -> put_CreationTime(This,newVal) ) + +#define IFsiFileItem2_get_LastAccessedTime(This,pVal) \ + ( (This)->lpVtbl -> get_LastAccessedTime(This,pVal) ) + +#define IFsiFileItem2_put_LastAccessedTime(This,newVal) \ + ( (This)->lpVtbl -> put_LastAccessedTime(This,newVal) ) + +#define IFsiFileItem2_get_LastModifiedTime(This,pVal) \ + ( (This)->lpVtbl -> get_LastModifiedTime(This,pVal) ) + +#define IFsiFileItem2_put_LastModifiedTime(This,newVal) \ + ( (This)->lpVtbl -> put_LastModifiedTime(This,newVal) ) + +#define IFsiFileItem2_get_IsHidden(This,pVal) \ + ( (This)->lpVtbl -> get_IsHidden(This,pVal) ) + +#define IFsiFileItem2_put_IsHidden(This,newVal) \ + ( (This)->lpVtbl -> put_IsHidden(This,newVal) ) + +#define IFsiFileItem2_FileSystemName(This,fileSystem,pVal) \ + ( (This)->lpVtbl -> FileSystemName(This,fileSystem,pVal) ) + +#define IFsiFileItem2_FileSystemPath(This,fileSystem,pVal) \ + ( (This)->lpVtbl -> FileSystemPath(This,fileSystem,pVal) ) + + +#define IFsiFileItem2_get_DataSize(This,pVal) \ + ( (This)->lpVtbl -> get_DataSize(This,pVal) ) + +#define IFsiFileItem2_get_DataSize32BitLow(This,pVal) \ + ( (This)->lpVtbl -> get_DataSize32BitLow(This,pVal) ) + +#define IFsiFileItem2_get_DataSize32BitHigh(This,pVal) \ + ( (This)->lpVtbl -> get_DataSize32BitHigh(This,pVal) ) + +#define IFsiFileItem2_get_Data(This,pVal) \ + ( (This)->lpVtbl -> get_Data(This,pVal) ) + +#define IFsiFileItem2_put_Data(This,newVal) \ + ( (This)->lpVtbl -> put_Data(This,newVal) ) + + +#define IFsiFileItem2_get_FsiNamedStreams(This,streams) \ + ( (This)->lpVtbl -> get_FsiNamedStreams(This,streams) ) + +#define IFsiFileItem2_get_IsNamedStream(This,pVal) \ + ( (This)->lpVtbl -> get_IsNamedStream(This,pVal) ) + +#define IFsiFileItem2_AddStream(This,name,streamData) \ + ( (This)->lpVtbl -> AddStream(This,name,streamData) ) + +#define IFsiFileItem2_RemoveStream(This,name) \ + ( (This)->lpVtbl -> RemoveStream(This,name) ) + +#define IFsiFileItem2_get_IsRealTime(This,pVal) \ + ( (This)->lpVtbl -> get_IsRealTime(This,pVal) ) + +#define IFsiFileItem2_put_IsRealTime(This,newVal) \ + ( (This)->lpVtbl -> put_IsRealTime(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsiFileItem2_INTERFACE_DEFINED__ */ + + +#ifndef __IFsiNamedStreams_INTERFACE_DEFINED__ +#define __IFsiNamedStreams_INTERFACE_DEFINED__ + +/* interface IFsiNamedStreams */ +/* [helpstring][uuid][nonextensible][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFsiNamedStreams; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ED79BA56-5294-4250-8D46-F9AECEE23459") + IFsiNamedStreams : public IDispatch + { + public: + virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][ref][out] */ __RPC__deref_out_opt IEnumVARIANT **NewEnum) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ LONG index, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiFileItem2 **item) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][ref][out] */ __RPC__out LONG *count) = 0; + + virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumNamedStreams( + /* [retval][ref][out] */ __RPC__deref_out_opt IEnumFsiItems **NewEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsiNamedStreamsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsiNamedStreams * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsiNamedStreams * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsiNamedStreams * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsiNamedStreams * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsiNamedStreams * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsiNamedStreams * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsiNamedStreams * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsiNamedStreams, get__NewEnum) + /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFsiNamedStreams * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IEnumVARIANT **NewEnum); + + DECLSPEC_XFGVIRT(IFsiNamedStreams, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFsiNamedStreams * This, + /* [in] */ LONG index, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiFileItem2 **item); + + DECLSPEC_XFGVIRT(IFsiNamedStreams, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFsiNamedStreams * This, + /* [retval][ref][out] */ __RPC__out LONG *count); + + DECLSPEC_XFGVIRT(IFsiNamedStreams, get_EnumNamedStreams) + /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumNamedStreams )( + __RPC__in IFsiNamedStreams * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IEnumFsiItems **NewEnum); + + END_INTERFACE + } IFsiNamedStreamsVtbl; + + interface IFsiNamedStreams + { + CONST_VTBL struct IFsiNamedStreamsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsiNamedStreams_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsiNamedStreams_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsiNamedStreams_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsiNamedStreams_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsiNamedStreams_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsiNamedStreams_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsiNamedStreams_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsiNamedStreams_get__NewEnum(This,NewEnum) \ + ( (This)->lpVtbl -> get__NewEnum(This,NewEnum) ) + +#define IFsiNamedStreams_get_Item(This,index,item) \ + ( (This)->lpVtbl -> get_Item(This,index,item) ) + +#define IFsiNamedStreams_get_Count(This,count) \ + ( (This)->lpVtbl -> get_Count(This,count) ) + +#define IFsiNamedStreams_get_EnumNamedStreams(This,NewEnum) \ + ( (This)->lpVtbl -> get_EnumNamedStreams(This,NewEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsiNamedStreams_INTERFACE_DEFINED__ */ + + +#ifndef __IFsiDirectoryItem_INTERFACE_DEFINED__ +#define __IFsiDirectoryItem_INTERFACE_DEFINED__ + +/* interface IFsiDirectoryItem */ +/* [helpstring][uuid][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFsiDirectoryItem; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FDC-975B-59BE-A960-9A2A262853A5") + IFsiDirectoryItem : public IFsiItem + { + public: + virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get__NewEnum( + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **NewEnum) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsiItem **item) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *Count) = 0; + + virtual /* [helpstring][restricted][hidden][id][propget] */ HRESULT STDMETHODCALLTYPE get_EnumFsiItems( + /* [retval][out] */ __RPC__deref_out_opt IEnumFsiItems **NewEnum) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddDirectory( + /* [in] */ __RPC__in BSTR path) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddFile( + /* [in] */ __RPC__in BSTR path, + /* [in] */ __RPC__in_opt IStream *fileData) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddTree( + /* [in] */ __RPC__in BSTR sourceDirectory, + /* [in] */ VARIANT_BOOL includeBaseDirectory) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Add( + /* [in] */ __RPC__in_opt IFsiItem *item) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Remove( + /* [in] */ __RPC__in BSTR path) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RemoveTree( + /* [in] */ __RPC__in BSTR path) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsiDirectoryItemVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsiDirectoryItem * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsiDirectoryItem * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsiDirectoryItem * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsiDirectoryItem * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsiItem, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsiDirectoryItem * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_FullPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FullPath )( + __RPC__in IFsiDirectoryItem * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IFsiDirectoryItem * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_CreationTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CreationTime )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_LastAccessedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastAccessedTime )( + __RPC__in IFsiDirectoryItem * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_LastAccessedTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastAccessedTime )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_LastModifiedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastModifiedTime )( + __RPC__in IFsiDirectoryItem * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_LastModifiedTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastModifiedTime )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_IsHidden) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsHidden )( + __RPC__in IFsiDirectoryItem * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_IsHidden) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsHidden )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFsiItem, FileSystemName) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FileSystemName )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, FileSystemPath) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FileSystemPath )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, get__NewEnum) + /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFsiDirectoryItem * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **NewEnum); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsiItem **item); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFsiDirectoryItem * This, + /* [retval][out] */ __RPC__out LONG *Count); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, get_EnumFsiItems) + /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumFsiItems )( + __RPC__in IFsiDirectoryItem * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumFsiItems **NewEnum); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, AddDirectory) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddDirectory )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ __RPC__in BSTR path); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, AddFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddFile )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ __RPC__in BSTR path, + /* [in] */ __RPC__in_opt IStream *fileData); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, AddTree) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddTree )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ __RPC__in BSTR sourceDirectory, + /* [in] */ VARIANT_BOOL includeBaseDirectory); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ __RPC__in_opt IFsiItem *item); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ __RPC__in BSTR path); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, RemoveTree) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveTree )( + __RPC__in IFsiDirectoryItem * This, + /* [in] */ __RPC__in BSTR path); + + END_INTERFACE + } IFsiDirectoryItemVtbl; + + interface IFsiDirectoryItem + { + CONST_VTBL struct IFsiDirectoryItemVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsiDirectoryItem_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsiDirectoryItem_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsiDirectoryItem_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsiDirectoryItem_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsiDirectoryItem_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsiDirectoryItem_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsiDirectoryItem_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsiDirectoryItem_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) + +#define IFsiDirectoryItem_get_FullPath(This,pVal) \ + ( (This)->lpVtbl -> get_FullPath(This,pVal) ) + +#define IFsiDirectoryItem_get_CreationTime(This,pVal) \ + ( (This)->lpVtbl -> get_CreationTime(This,pVal) ) + +#define IFsiDirectoryItem_put_CreationTime(This,newVal) \ + ( (This)->lpVtbl -> put_CreationTime(This,newVal) ) + +#define IFsiDirectoryItem_get_LastAccessedTime(This,pVal) \ + ( (This)->lpVtbl -> get_LastAccessedTime(This,pVal) ) + +#define IFsiDirectoryItem_put_LastAccessedTime(This,newVal) \ + ( (This)->lpVtbl -> put_LastAccessedTime(This,newVal) ) + +#define IFsiDirectoryItem_get_LastModifiedTime(This,pVal) \ + ( (This)->lpVtbl -> get_LastModifiedTime(This,pVal) ) + +#define IFsiDirectoryItem_put_LastModifiedTime(This,newVal) \ + ( (This)->lpVtbl -> put_LastModifiedTime(This,newVal) ) + +#define IFsiDirectoryItem_get_IsHidden(This,pVal) \ + ( (This)->lpVtbl -> get_IsHidden(This,pVal) ) + +#define IFsiDirectoryItem_put_IsHidden(This,newVal) \ + ( (This)->lpVtbl -> put_IsHidden(This,newVal) ) + +#define IFsiDirectoryItem_FileSystemName(This,fileSystem,pVal) \ + ( (This)->lpVtbl -> FileSystemName(This,fileSystem,pVal) ) + +#define IFsiDirectoryItem_FileSystemPath(This,fileSystem,pVal) \ + ( (This)->lpVtbl -> FileSystemPath(This,fileSystem,pVal) ) + + +#define IFsiDirectoryItem_get__NewEnum(This,NewEnum) \ + ( (This)->lpVtbl -> get__NewEnum(This,NewEnum) ) + +#define IFsiDirectoryItem_get_Item(This,path,item) \ + ( (This)->lpVtbl -> get_Item(This,path,item) ) + +#define IFsiDirectoryItem_get_Count(This,Count) \ + ( (This)->lpVtbl -> get_Count(This,Count) ) + +#define IFsiDirectoryItem_get_EnumFsiItems(This,NewEnum) \ + ( (This)->lpVtbl -> get_EnumFsiItems(This,NewEnum) ) + +#define IFsiDirectoryItem_AddDirectory(This,path) \ + ( (This)->lpVtbl -> AddDirectory(This,path) ) + +#define IFsiDirectoryItem_AddFile(This,path,fileData) \ + ( (This)->lpVtbl -> AddFile(This,path,fileData) ) + +#define IFsiDirectoryItem_AddTree(This,sourceDirectory,includeBaseDirectory) \ + ( (This)->lpVtbl -> AddTree(This,sourceDirectory,includeBaseDirectory) ) + +#define IFsiDirectoryItem_Add(This,item) \ + ( (This)->lpVtbl -> Add(This,item) ) + +#define IFsiDirectoryItem_Remove(This,path) \ + ( (This)->lpVtbl -> Remove(This,path) ) + +#define IFsiDirectoryItem_RemoveTree(This,path) \ + ( (This)->lpVtbl -> RemoveTree(This,path) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsiDirectoryItem_INTERFACE_DEFINED__ */ + + +#ifndef __IFsiDirectoryItem2_INTERFACE_DEFINED__ +#define __IFsiDirectoryItem2_INTERFACE_DEFINED__ + +/* interface IFsiDirectoryItem2 */ +/* [helpstring][uuid][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFsiDirectoryItem2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F7FB4B9B-6D96-4d7b-9115-201B144811EF") + IFsiDirectoryItem2 : public IFsiDirectoryItem + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE AddTreeWithNamedStreams( + /* [in] */ __RPC__in BSTR sourceDirectory, + /* [in] */ VARIANT_BOOL includeBaseDirectory) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFsiDirectoryItem2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFsiDirectoryItem2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFsiDirectoryItem2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFsiDirectoryItem2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFsiDirectoryItem2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFsiItem, get_Name) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( + __RPC__in IFsiDirectoryItem2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_FullPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FullPath )( + __RPC__in IFsiDirectoryItem2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_CreationTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreationTime )( + __RPC__in IFsiDirectoryItem2 * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_CreationTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CreationTime )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_LastAccessedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastAccessedTime )( + __RPC__in IFsiDirectoryItem2 * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_LastAccessedTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastAccessedTime )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_LastModifiedTime) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LastModifiedTime )( + __RPC__in IFsiDirectoryItem2 * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_LastModifiedTime) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_LastModifiedTime )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ DATE newVal); + + DECLSPEC_XFGVIRT(IFsiItem, get_IsHidden) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_IsHidden )( + __RPC__in IFsiDirectoryItem2 * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, put_IsHidden) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_IsHidden )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFsiItem, FileSystemName) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FileSystemName )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiItem, FileSystemPath) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *FileSystemPath )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ FsiFileSystems fileSystem, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, get__NewEnum) + /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get__NewEnum )( + __RPC__in IFsiDirectoryItem2 * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumVARIANT **NewEnum); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ __RPC__in BSTR path, + /* [retval][out] */ __RPC__deref_out_opt IFsiItem **item); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IFsiDirectoryItem2 * This, + /* [retval][out] */ __RPC__out LONG *Count); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, get_EnumFsiItems) + /* [helpstring][restricted][hidden][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EnumFsiItems )( + __RPC__in IFsiDirectoryItem2 * This, + /* [retval][out] */ __RPC__deref_out_opt IEnumFsiItems **NewEnum); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, AddDirectory) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddDirectory )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ __RPC__in BSTR path); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, AddFile) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddFile )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ __RPC__in BSTR path, + /* [in] */ __RPC__in_opt IStream *fileData); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, AddTree) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddTree )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ __RPC__in BSTR sourceDirectory, + /* [in] */ VARIANT_BOOL includeBaseDirectory); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, Add) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Add )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ __RPC__in_opt IFsiItem *item); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, Remove) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Remove )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ __RPC__in BSTR path); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem, RemoveTree) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RemoveTree )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ __RPC__in BSTR path); + + DECLSPEC_XFGVIRT(IFsiDirectoryItem2, AddTreeWithNamedStreams) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *AddTreeWithNamedStreams )( + __RPC__in IFsiDirectoryItem2 * This, + /* [in] */ __RPC__in BSTR sourceDirectory, + /* [in] */ VARIANT_BOOL includeBaseDirectory); + + END_INTERFACE + } IFsiDirectoryItem2Vtbl; + + interface IFsiDirectoryItem2 + { + CONST_VTBL struct IFsiDirectoryItem2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFsiDirectoryItem2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFsiDirectoryItem2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFsiDirectoryItem2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFsiDirectoryItem2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFsiDirectoryItem2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFsiDirectoryItem2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFsiDirectoryItem2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFsiDirectoryItem2_get_Name(This,pVal) \ + ( (This)->lpVtbl -> get_Name(This,pVal) ) + +#define IFsiDirectoryItem2_get_FullPath(This,pVal) \ + ( (This)->lpVtbl -> get_FullPath(This,pVal) ) + +#define IFsiDirectoryItem2_get_CreationTime(This,pVal) \ + ( (This)->lpVtbl -> get_CreationTime(This,pVal) ) + +#define IFsiDirectoryItem2_put_CreationTime(This,newVal) \ + ( (This)->lpVtbl -> put_CreationTime(This,newVal) ) + +#define IFsiDirectoryItem2_get_LastAccessedTime(This,pVal) \ + ( (This)->lpVtbl -> get_LastAccessedTime(This,pVal) ) + +#define IFsiDirectoryItem2_put_LastAccessedTime(This,newVal) \ + ( (This)->lpVtbl -> put_LastAccessedTime(This,newVal) ) + +#define IFsiDirectoryItem2_get_LastModifiedTime(This,pVal) \ + ( (This)->lpVtbl -> get_LastModifiedTime(This,pVal) ) + +#define IFsiDirectoryItem2_put_LastModifiedTime(This,newVal) \ + ( (This)->lpVtbl -> put_LastModifiedTime(This,newVal) ) + +#define IFsiDirectoryItem2_get_IsHidden(This,pVal) \ + ( (This)->lpVtbl -> get_IsHidden(This,pVal) ) + +#define IFsiDirectoryItem2_put_IsHidden(This,newVal) \ + ( (This)->lpVtbl -> put_IsHidden(This,newVal) ) + +#define IFsiDirectoryItem2_FileSystemName(This,fileSystem,pVal) \ + ( (This)->lpVtbl -> FileSystemName(This,fileSystem,pVal) ) + +#define IFsiDirectoryItem2_FileSystemPath(This,fileSystem,pVal) \ + ( (This)->lpVtbl -> FileSystemPath(This,fileSystem,pVal) ) + + +#define IFsiDirectoryItem2_get__NewEnum(This,NewEnum) \ + ( (This)->lpVtbl -> get__NewEnum(This,NewEnum) ) + +#define IFsiDirectoryItem2_get_Item(This,path,item) \ + ( (This)->lpVtbl -> get_Item(This,path,item) ) + +#define IFsiDirectoryItem2_get_Count(This,Count) \ + ( (This)->lpVtbl -> get_Count(This,Count) ) + +#define IFsiDirectoryItem2_get_EnumFsiItems(This,NewEnum) \ + ( (This)->lpVtbl -> get_EnumFsiItems(This,NewEnum) ) + +#define IFsiDirectoryItem2_AddDirectory(This,path) \ + ( (This)->lpVtbl -> AddDirectory(This,path) ) + +#define IFsiDirectoryItem2_AddFile(This,path,fileData) \ + ( (This)->lpVtbl -> AddFile(This,path,fileData) ) + +#define IFsiDirectoryItem2_AddTree(This,sourceDirectory,includeBaseDirectory) \ + ( (This)->lpVtbl -> AddTree(This,sourceDirectory,includeBaseDirectory) ) + +#define IFsiDirectoryItem2_Add(This,item) \ + ( (This)->lpVtbl -> Add(This,item) ) + +#define IFsiDirectoryItem2_Remove(This,path) \ + ( (This)->lpVtbl -> Remove(This,path) ) + +#define IFsiDirectoryItem2_RemoveTree(This,path) \ + ( (This)->lpVtbl -> RemoveTree(This,path) ) + + +#define IFsiDirectoryItem2_AddTreeWithNamedStreams(This,sourceDirectory,includeBaseDirectory) \ + ( (This)->lpVtbl -> AddTreeWithNamedStreams(This,sourceDirectory,includeBaseDirectory) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFsiDirectoryItem2_INTERFACE_DEFINED__ */ + + +#ifndef __IFileSystemImage_INTERFACE_DEFINED__ +#define __IFileSystemImage_INTERFACE_DEFINED__ + +/* interface IFileSystemImage */ +/* [helpstring][uuid][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFileSystemImage; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FE1-975B-59BE-A960-9A2A262853A5") + IFileSystemImage : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Root( + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiDirectoryItem **pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SessionStartBlock( + /* [retval][ref][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_SessionStartBlock( + /* [in] */ LONG newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FreeMediaBlocks( + /* [retval][ref][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FreeMediaBlocks( + /* [in] */ LONG newVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetMaxMediaBlocksFromDevice( + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UsedBlocks( + /* [retval][ref][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VolumeName( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_VolumeName( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ImportedVolumeName( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BootImageOptions( + /* [retval][ref][out] */ __RPC__deref_out_opt IBootOptions **pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BootImageOptions( + /* [in] */ __RPC__in_opt IBootOptions *newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FileCount( + /* [retval][ref][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DirectoryCount( + /* [retval][ref][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_WorkingDirectory( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_WorkingDirectory( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ChangePoint( + /* [retval][ref][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StrictFileSystemCompliance( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StrictFileSystemCompliance( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UseRestrictedCharacterSet( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UseRestrictedCharacterSet( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FileSystemsToCreate( + /* [retval][ref][out] */ __RPC__out FsiFileSystems *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_FileSystemsToCreate( + /* [in] */ FsiFileSystems newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FileSystemsSupported( + /* [retval][ref][out] */ __RPC__out FsiFileSystems *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_UDFRevision( + /* [in] */ LONG newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UDFRevision( + /* [retval][ref][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_UDFRevisionsSupported( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ChooseImageDefaults( + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ChooseImageDefaultsForMediaType( + /* [in] */ IMAPI_MEDIA_PHYSICAL_TYPE value) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ISO9660InterchangeLevel( + /* [in] */ LONG newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ISO9660InterchangeLevel( + /* [retval][ref][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ISO9660InterchangeLevelsSupported( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateResultImage( + /* [retval][ref][out] */ __RPC__deref_out_opt IFileSystemImageResult **resultStream) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Exists( + /* [in] */ __RPC__in BSTR fullPath, + /* [retval][ref][out] */ __RPC__out FsiItemType *itemType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CalculateDiscIdentifier( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *discIdentifier) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IdentifyFileSystemsOnDisc( + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *fileSystems) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetDefaultFileSystemForImport( + /* [in] */ FsiFileSystems fileSystems, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *importDefault) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportFileSystem( + /* [retval][ref][out] */ __RPC__out FsiFileSystems *importedFileSystem) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ImportSpecificFileSystem( + /* [in] */ FsiFileSystems fileSystemToUse) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE RollbackToChangePoint( + /* [in] */ LONG changePoint) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LockInChangePoint( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateDirectoryItem( + /* [in] */ __RPC__in BSTR name, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiDirectoryItem **newItem) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateFileItem( + /* [in] */ __RPC__in BSTR name, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiFileItem **newItem) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VolumeNameUDF( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VolumeNameJoliet( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_VolumeNameISO9660( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_StageFiles( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_StageFiles( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MultisessionInterfaces( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MultisessionInterfaces( + /* [in] */ __RPC__in SAFEARRAY * newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFileSystemImageVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFileSystemImage * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFileSystemImage * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFileSystemImage * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFileSystemImage * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFileSystemImage * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_Root) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Root )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiDirectoryItem **pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_SessionStartBlock) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionStartBlock )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_SessionStartBlock) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SessionStartBlock )( + __RPC__in IFileSystemImage * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FreeMediaBlocks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeMediaBlocks )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_FreeMediaBlocks) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FreeMediaBlocks )( + __RPC__in IFileSystemImage * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, SetMaxMediaBlocksFromDevice) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetMaxMediaBlocksFromDevice )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UsedBlocks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsedBlocks )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeName )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_VolumeName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VolumeName )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ImportedVolumeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImportedVolumeName )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_BootImageOptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BootImageOptions )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IBootOptions **pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_BootImageOptions) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BootImageOptions )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in_opt IBootOptions *newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FileCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileCount )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_DirectoryCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DirectoryCount )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_WorkingDirectory) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WorkingDirectory )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_WorkingDirectory) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_WorkingDirectory )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ChangePoint) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChangePoint )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_StrictFileSystemCompliance) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StrictFileSystemCompliance )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_StrictFileSystemCompliance) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StrictFileSystemCompliance )( + __RPC__in IFileSystemImage * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UseRestrictedCharacterSet) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseRestrictedCharacterSet )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_UseRestrictedCharacterSet) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseRestrictedCharacterSet )( + __RPC__in IFileSystemImage * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FileSystemsToCreate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileSystemsToCreate )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_FileSystemsToCreate) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileSystemsToCreate )( + __RPC__in IFileSystemImage * This, + /* [in] */ FsiFileSystems newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FileSystemsSupported) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileSystemsSupported )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_UDFRevision) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UDFRevision )( + __RPC__in IFileSystemImage * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UDFRevision) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UDFRevision )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UDFRevisionsSupported) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UDFRevisionsSupported )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, ChooseImageDefaults) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChooseImageDefaults )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder); + + DECLSPEC_XFGVIRT(IFileSystemImage, ChooseImageDefaultsForMediaType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChooseImageDefaultsForMediaType )( + __RPC__in IFileSystemImage * This, + /* [in] */ IMAPI_MEDIA_PHYSICAL_TYPE value); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_ISO9660InterchangeLevel) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ISO9660InterchangeLevel )( + __RPC__in IFileSystemImage * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ISO9660InterchangeLevel) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ISO9660InterchangeLevel )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ISO9660InterchangeLevelsSupported) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ISO9660InterchangeLevelsSupported )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, CreateResultImage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateResultImage )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IFileSystemImageResult **resultStream); + + DECLSPEC_XFGVIRT(IFileSystemImage, Exists) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Exists )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in BSTR fullPath, + /* [retval][ref][out] */ __RPC__out FsiItemType *itemType); + + DECLSPEC_XFGVIRT(IFileSystemImage, CalculateDiscIdentifier) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CalculateDiscIdentifier )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *discIdentifier); + + DECLSPEC_XFGVIRT(IFileSystemImage, IdentifyFileSystemsOnDisc) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IdentifyFileSystemsOnDisc )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *fileSystems); + + DECLSPEC_XFGVIRT(IFileSystemImage, GetDefaultFileSystemForImport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDefaultFileSystemForImport )( + __RPC__in IFileSystemImage * This, + /* [in] */ FsiFileSystems fileSystems, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *importDefault); + + DECLSPEC_XFGVIRT(IFileSystemImage, ImportFileSystem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportFileSystem )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *importedFileSystem); + + DECLSPEC_XFGVIRT(IFileSystemImage, ImportSpecificFileSystem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportSpecificFileSystem )( + __RPC__in IFileSystemImage * This, + /* [in] */ FsiFileSystems fileSystemToUse); + + DECLSPEC_XFGVIRT(IFileSystemImage, RollbackToChangePoint) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RollbackToChangePoint )( + __RPC__in IFileSystemImage * This, + /* [in] */ LONG changePoint); + + DECLSPEC_XFGVIRT(IFileSystemImage, LockInChangePoint) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LockInChangePoint )( + __RPC__in IFileSystemImage * This); + + DECLSPEC_XFGVIRT(IFileSystemImage, CreateDirectoryItem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateDirectoryItem )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiDirectoryItem **newItem); + + DECLSPEC_XFGVIRT(IFileSystemImage, CreateFileItem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateFileItem )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiFileItem **newItem); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeNameUDF) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeNameUDF )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeNameJoliet) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeNameJoliet )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeNameISO9660) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeNameISO9660 )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_StageFiles) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StageFiles )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_StageFiles) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StageFiles )( + __RPC__in IFileSystemImage * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_MultisessionInterfaces) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MultisessionInterfaces )( + __RPC__in IFileSystemImage * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_MultisessionInterfaces) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MultisessionInterfaces )( + __RPC__in IFileSystemImage * This, + /* [in] */ __RPC__in SAFEARRAY * newVal); + + END_INTERFACE + } IFileSystemImageVtbl; + + interface IFileSystemImage + { + CONST_VTBL struct IFileSystemImageVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFileSystemImage_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFileSystemImage_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFileSystemImage_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFileSystemImage_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFileSystemImage_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFileSystemImage_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFileSystemImage_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFileSystemImage_get_Root(This,pVal) \ + ( (This)->lpVtbl -> get_Root(This,pVal) ) + +#define IFileSystemImage_get_SessionStartBlock(This,pVal) \ + ( (This)->lpVtbl -> get_SessionStartBlock(This,pVal) ) + +#define IFileSystemImage_put_SessionStartBlock(This,newVal) \ + ( (This)->lpVtbl -> put_SessionStartBlock(This,newVal) ) + +#define IFileSystemImage_get_FreeMediaBlocks(This,pVal) \ + ( (This)->lpVtbl -> get_FreeMediaBlocks(This,pVal) ) + +#define IFileSystemImage_put_FreeMediaBlocks(This,newVal) \ + ( (This)->lpVtbl -> put_FreeMediaBlocks(This,newVal) ) + +#define IFileSystemImage_SetMaxMediaBlocksFromDevice(This,discRecorder) \ + ( (This)->lpVtbl -> SetMaxMediaBlocksFromDevice(This,discRecorder) ) + +#define IFileSystemImage_get_UsedBlocks(This,pVal) \ + ( (This)->lpVtbl -> get_UsedBlocks(This,pVal) ) + +#define IFileSystemImage_get_VolumeName(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeName(This,pVal) ) + +#define IFileSystemImage_put_VolumeName(This,newVal) \ + ( (This)->lpVtbl -> put_VolumeName(This,newVal) ) + +#define IFileSystemImage_get_ImportedVolumeName(This,pVal) \ + ( (This)->lpVtbl -> get_ImportedVolumeName(This,pVal) ) + +#define IFileSystemImage_get_BootImageOptions(This,pVal) \ + ( (This)->lpVtbl -> get_BootImageOptions(This,pVal) ) + +#define IFileSystemImage_put_BootImageOptions(This,newVal) \ + ( (This)->lpVtbl -> put_BootImageOptions(This,newVal) ) + +#define IFileSystemImage_get_FileCount(This,pVal) \ + ( (This)->lpVtbl -> get_FileCount(This,pVal) ) + +#define IFileSystemImage_get_DirectoryCount(This,pVal) \ + ( (This)->lpVtbl -> get_DirectoryCount(This,pVal) ) + +#define IFileSystemImage_get_WorkingDirectory(This,pVal) \ + ( (This)->lpVtbl -> get_WorkingDirectory(This,pVal) ) + +#define IFileSystemImage_put_WorkingDirectory(This,newVal) \ + ( (This)->lpVtbl -> put_WorkingDirectory(This,newVal) ) + +#define IFileSystemImage_get_ChangePoint(This,pVal) \ + ( (This)->lpVtbl -> get_ChangePoint(This,pVal) ) + +#define IFileSystemImage_get_StrictFileSystemCompliance(This,pVal) \ + ( (This)->lpVtbl -> get_StrictFileSystemCompliance(This,pVal) ) + +#define IFileSystemImage_put_StrictFileSystemCompliance(This,newVal) \ + ( (This)->lpVtbl -> put_StrictFileSystemCompliance(This,newVal) ) + +#define IFileSystemImage_get_UseRestrictedCharacterSet(This,pVal) \ + ( (This)->lpVtbl -> get_UseRestrictedCharacterSet(This,pVal) ) + +#define IFileSystemImage_put_UseRestrictedCharacterSet(This,newVal) \ + ( (This)->lpVtbl -> put_UseRestrictedCharacterSet(This,newVal) ) + +#define IFileSystemImage_get_FileSystemsToCreate(This,pVal) \ + ( (This)->lpVtbl -> get_FileSystemsToCreate(This,pVal) ) + +#define IFileSystemImage_put_FileSystemsToCreate(This,newVal) \ + ( (This)->lpVtbl -> put_FileSystemsToCreate(This,newVal) ) + +#define IFileSystemImage_get_FileSystemsSupported(This,pVal) \ + ( (This)->lpVtbl -> get_FileSystemsSupported(This,pVal) ) + +#define IFileSystemImage_put_UDFRevision(This,newVal) \ + ( (This)->lpVtbl -> put_UDFRevision(This,newVal) ) + +#define IFileSystemImage_get_UDFRevision(This,pVal) \ + ( (This)->lpVtbl -> get_UDFRevision(This,pVal) ) + +#define IFileSystemImage_get_UDFRevisionsSupported(This,pVal) \ + ( (This)->lpVtbl -> get_UDFRevisionsSupported(This,pVal) ) + +#define IFileSystemImage_ChooseImageDefaults(This,discRecorder) \ + ( (This)->lpVtbl -> ChooseImageDefaults(This,discRecorder) ) + +#define IFileSystemImage_ChooseImageDefaultsForMediaType(This,value) \ + ( (This)->lpVtbl -> ChooseImageDefaultsForMediaType(This,value) ) + +#define IFileSystemImage_put_ISO9660InterchangeLevel(This,newVal) \ + ( (This)->lpVtbl -> put_ISO9660InterchangeLevel(This,newVal) ) + +#define IFileSystemImage_get_ISO9660InterchangeLevel(This,pVal) \ + ( (This)->lpVtbl -> get_ISO9660InterchangeLevel(This,pVal) ) + +#define IFileSystemImage_get_ISO9660InterchangeLevelsSupported(This,pVal) \ + ( (This)->lpVtbl -> get_ISO9660InterchangeLevelsSupported(This,pVal) ) + +#define IFileSystemImage_CreateResultImage(This,resultStream) \ + ( (This)->lpVtbl -> CreateResultImage(This,resultStream) ) + +#define IFileSystemImage_Exists(This,fullPath,itemType) \ + ( (This)->lpVtbl -> Exists(This,fullPath,itemType) ) + +#define IFileSystemImage_CalculateDiscIdentifier(This,discIdentifier) \ + ( (This)->lpVtbl -> CalculateDiscIdentifier(This,discIdentifier) ) + +#define IFileSystemImage_IdentifyFileSystemsOnDisc(This,discRecorder,fileSystems) \ + ( (This)->lpVtbl -> IdentifyFileSystemsOnDisc(This,discRecorder,fileSystems) ) + +#define IFileSystemImage_GetDefaultFileSystemForImport(This,fileSystems,importDefault) \ + ( (This)->lpVtbl -> GetDefaultFileSystemForImport(This,fileSystems,importDefault) ) + +#define IFileSystemImage_ImportFileSystem(This,importedFileSystem) \ + ( (This)->lpVtbl -> ImportFileSystem(This,importedFileSystem) ) + +#define IFileSystemImage_ImportSpecificFileSystem(This,fileSystemToUse) \ + ( (This)->lpVtbl -> ImportSpecificFileSystem(This,fileSystemToUse) ) + +#define IFileSystemImage_RollbackToChangePoint(This,changePoint) \ + ( (This)->lpVtbl -> RollbackToChangePoint(This,changePoint) ) + +#define IFileSystemImage_LockInChangePoint(This) \ + ( (This)->lpVtbl -> LockInChangePoint(This) ) + +#define IFileSystemImage_CreateDirectoryItem(This,name,newItem) \ + ( (This)->lpVtbl -> CreateDirectoryItem(This,name,newItem) ) + +#define IFileSystemImage_CreateFileItem(This,name,newItem) \ + ( (This)->lpVtbl -> CreateFileItem(This,name,newItem) ) + +#define IFileSystemImage_get_VolumeNameUDF(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeNameUDF(This,pVal) ) + +#define IFileSystemImage_get_VolumeNameJoliet(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeNameJoliet(This,pVal) ) + +#define IFileSystemImage_get_VolumeNameISO9660(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeNameISO9660(This,pVal) ) + +#define IFileSystemImage_get_StageFiles(This,pVal) \ + ( (This)->lpVtbl -> get_StageFiles(This,pVal) ) + +#define IFileSystemImage_put_StageFiles(This,newVal) \ + ( (This)->lpVtbl -> put_StageFiles(This,newVal) ) + +#define IFileSystemImage_get_MultisessionInterfaces(This,pVal) \ + ( (This)->lpVtbl -> get_MultisessionInterfaces(This,pVal) ) + +#define IFileSystemImage_put_MultisessionInterfaces(This,newVal) \ + ( (This)->lpVtbl -> put_MultisessionInterfaces(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFileSystemImage_INTERFACE_DEFINED__ */ + + +#ifndef __IFileSystemImage2_INTERFACE_DEFINED__ +#define __IFileSystemImage2_INTERFACE_DEFINED__ + +/* interface IFileSystemImage2 */ +/* [helpstring][uuid][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFileSystemImage2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D7644B2C-1537-4767-B62F-F1387B02DDFD") + IFileSystemImage2 : public IFileSystemImage + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BootImageOptionsArray( + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BootImageOptionsArray( + /* [in] */ __RPC__in SAFEARRAY * newVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFileSystemImage2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFileSystemImage2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFileSystemImage2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFileSystemImage2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFileSystemImage2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_Root) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Root )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiDirectoryItem **pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_SessionStartBlock) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionStartBlock )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_SessionStartBlock) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SessionStartBlock )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FreeMediaBlocks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeMediaBlocks )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_FreeMediaBlocks) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FreeMediaBlocks )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, SetMaxMediaBlocksFromDevice) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetMaxMediaBlocksFromDevice )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UsedBlocks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsedBlocks )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeName )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_VolumeName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VolumeName )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ImportedVolumeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImportedVolumeName )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_BootImageOptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BootImageOptions )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IBootOptions **pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_BootImageOptions) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BootImageOptions )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in_opt IBootOptions *newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FileCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileCount )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_DirectoryCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DirectoryCount )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_WorkingDirectory) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WorkingDirectory )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_WorkingDirectory) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_WorkingDirectory )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ChangePoint) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChangePoint )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_StrictFileSystemCompliance) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StrictFileSystemCompliance )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_StrictFileSystemCompliance) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StrictFileSystemCompliance )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UseRestrictedCharacterSet) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseRestrictedCharacterSet )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_UseRestrictedCharacterSet) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseRestrictedCharacterSet )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FileSystemsToCreate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileSystemsToCreate )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_FileSystemsToCreate) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileSystemsToCreate )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ FsiFileSystems newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FileSystemsSupported) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileSystemsSupported )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_UDFRevision) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UDFRevision )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UDFRevision) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UDFRevision )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UDFRevisionsSupported) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UDFRevisionsSupported )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, ChooseImageDefaults) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChooseImageDefaults )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder); + + DECLSPEC_XFGVIRT(IFileSystemImage, ChooseImageDefaultsForMediaType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChooseImageDefaultsForMediaType )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ IMAPI_MEDIA_PHYSICAL_TYPE value); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_ISO9660InterchangeLevel) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ISO9660InterchangeLevel )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ISO9660InterchangeLevel) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ISO9660InterchangeLevel )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ISO9660InterchangeLevelsSupported) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ISO9660InterchangeLevelsSupported )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, CreateResultImage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateResultImage )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IFileSystemImageResult **resultStream); + + DECLSPEC_XFGVIRT(IFileSystemImage, Exists) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Exists )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in BSTR fullPath, + /* [retval][ref][out] */ __RPC__out FsiItemType *itemType); + + DECLSPEC_XFGVIRT(IFileSystemImage, CalculateDiscIdentifier) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CalculateDiscIdentifier )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *discIdentifier); + + DECLSPEC_XFGVIRT(IFileSystemImage, IdentifyFileSystemsOnDisc) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IdentifyFileSystemsOnDisc )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *fileSystems); + + DECLSPEC_XFGVIRT(IFileSystemImage, GetDefaultFileSystemForImport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDefaultFileSystemForImport )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ FsiFileSystems fileSystems, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *importDefault); + + DECLSPEC_XFGVIRT(IFileSystemImage, ImportFileSystem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportFileSystem )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *importedFileSystem); + + DECLSPEC_XFGVIRT(IFileSystemImage, ImportSpecificFileSystem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportSpecificFileSystem )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ FsiFileSystems fileSystemToUse); + + DECLSPEC_XFGVIRT(IFileSystemImage, RollbackToChangePoint) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RollbackToChangePoint )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ LONG changePoint); + + DECLSPEC_XFGVIRT(IFileSystemImage, LockInChangePoint) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LockInChangePoint )( + __RPC__in IFileSystemImage2 * This); + + DECLSPEC_XFGVIRT(IFileSystemImage, CreateDirectoryItem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateDirectoryItem )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiDirectoryItem **newItem); + + DECLSPEC_XFGVIRT(IFileSystemImage, CreateFileItem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateFileItem )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiFileItem **newItem); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeNameUDF) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeNameUDF )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeNameJoliet) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeNameJoliet )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeNameISO9660) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeNameISO9660 )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_StageFiles) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StageFiles )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_StageFiles) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StageFiles )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_MultisessionInterfaces) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MultisessionInterfaces )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_MultisessionInterfaces) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MultisessionInterfaces )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in SAFEARRAY * newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage2, get_BootImageOptionsArray) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BootImageOptionsArray )( + __RPC__in IFileSystemImage2 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage2, put_BootImageOptionsArray) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BootImageOptionsArray )( + __RPC__in IFileSystemImage2 * This, + /* [in] */ __RPC__in SAFEARRAY * newVal); + + END_INTERFACE + } IFileSystemImage2Vtbl; + + interface IFileSystemImage2 + { + CONST_VTBL struct IFileSystemImage2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFileSystemImage2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFileSystemImage2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFileSystemImage2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFileSystemImage2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFileSystemImage2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFileSystemImage2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFileSystemImage2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFileSystemImage2_get_Root(This,pVal) \ + ( (This)->lpVtbl -> get_Root(This,pVal) ) + +#define IFileSystemImage2_get_SessionStartBlock(This,pVal) \ + ( (This)->lpVtbl -> get_SessionStartBlock(This,pVal) ) + +#define IFileSystemImage2_put_SessionStartBlock(This,newVal) \ + ( (This)->lpVtbl -> put_SessionStartBlock(This,newVal) ) + +#define IFileSystemImage2_get_FreeMediaBlocks(This,pVal) \ + ( (This)->lpVtbl -> get_FreeMediaBlocks(This,pVal) ) + +#define IFileSystemImage2_put_FreeMediaBlocks(This,newVal) \ + ( (This)->lpVtbl -> put_FreeMediaBlocks(This,newVal) ) + +#define IFileSystemImage2_SetMaxMediaBlocksFromDevice(This,discRecorder) \ + ( (This)->lpVtbl -> SetMaxMediaBlocksFromDevice(This,discRecorder) ) + +#define IFileSystemImage2_get_UsedBlocks(This,pVal) \ + ( (This)->lpVtbl -> get_UsedBlocks(This,pVal) ) + +#define IFileSystemImage2_get_VolumeName(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeName(This,pVal) ) + +#define IFileSystemImage2_put_VolumeName(This,newVal) \ + ( (This)->lpVtbl -> put_VolumeName(This,newVal) ) + +#define IFileSystemImage2_get_ImportedVolumeName(This,pVal) \ + ( (This)->lpVtbl -> get_ImportedVolumeName(This,pVal) ) + +#define IFileSystemImage2_get_BootImageOptions(This,pVal) \ + ( (This)->lpVtbl -> get_BootImageOptions(This,pVal) ) + +#define IFileSystemImage2_put_BootImageOptions(This,newVal) \ + ( (This)->lpVtbl -> put_BootImageOptions(This,newVal) ) + +#define IFileSystemImage2_get_FileCount(This,pVal) \ + ( (This)->lpVtbl -> get_FileCount(This,pVal) ) + +#define IFileSystemImage2_get_DirectoryCount(This,pVal) \ + ( (This)->lpVtbl -> get_DirectoryCount(This,pVal) ) + +#define IFileSystemImage2_get_WorkingDirectory(This,pVal) \ + ( (This)->lpVtbl -> get_WorkingDirectory(This,pVal) ) + +#define IFileSystemImage2_put_WorkingDirectory(This,newVal) \ + ( (This)->lpVtbl -> put_WorkingDirectory(This,newVal) ) + +#define IFileSystemImage2_get_ChangePoint(This,pVal) \ + ( (This)->lpVtbl -> get_ChangePoint(This,pVal) ) + +#define IFileSystemImage2_get_StrictFileSystemCompliance(This,pVal) \ + ( (This)->lpVtbl -> get_StrictFileSystemCompliance(This,pVal) ) + +#define IFileSystemImage2_put_StrictFileSystemCompliance(This,newVal) \ + ( (This)->lpVtbl -> put_StrictFileSystemCompliance(This,newVal) ) + +#define IFileSystemImage2_get_UseRestrictedCharacterSet(This,pVal) \ + ( (This)->lpVtbl -> get_UseRestrictedCharacterSet(This,pVal) ) + +#define IFileSystemImage2_put_UseRestrictedCharacterSet(This,newVal) \ + ( (This)->lpVtbl -> put_UseRestrictedCharacterSet(This,newVal) ) + +#define IFileSystemImage2_get_FileSystemsToCreate(This,pVal) \ + ( (This)->lpVtbl -> get_FileSystemsToCreate(This,pVal) ) + +#define IFileSystemImage2_put_FileSystemsToCreate(This,newVal) \ + ( (This)->lpVtbl -> put_FileSystemsToCreate(This,newVal) ) + +#define IFileSystemImage2_get_FileSystemsSupported(This,pVal) \ + ( (This)->lpVtbl -> get_FileSystemsSupported(This,pVal) ) + +#define IFileSystemImage2_put_UDFRevision(This,newVal) \ + ( (This)->lpVtbl -> put_UDFRevision(This,newVal) ) + +#define IFileSystemImage2_get_UDFRevision(This,pVal) \ + ( (This)->lpVtbl -> get_UDFRevision(This,pVal) ) + +#define IFileSystemImage2_get_UDFRevisionsSupported(This,pVal) \ + ( (This)->lpVtbl -> get_UDFRevisionsSupported(This,pVal) ) + +#define IFileSystemImage2_ChooseImageDefaults(This,discRecorder) \ + ( (This)->lpVtbl -> ChooseImageDefaults(This,discRecorder) ) + +#define IFileSystemImage2_ChooseImageDefaultsForMediaType(This,value) \ + ( (This)->lpVtbl -> ChooseImageDefaultsForMediaType(This,value) ) + +#define IFileSystemImage2_put_ISO9660InterchangeLevel(This,newVal) \ + ( (This)->lpVtbl -> put_ISO9660InterchangeLevel(This,newVal) ) + +#define IFileSystemImage2_get_ISO9660InterchangeLevel(This,pVal) \ + ( (This)->lpVtbl -> get_ISO9660InterchangeLevel(This,pVal) ) + +#define IFileSystemImage2_get_ISO9660InterchangeLevelsSupported(This,pVal) \ + ( (This)->lpVtbl -> get_ISO9660InterchangeLevelsSupported(This,pVal) ) + +#define IFileSystemImage2_CreateResultImage(This,resultStream) \ + ( (This)->lpVtbl -> CreateResultImage(This,resultStream) ) + +#define IFileSystemImage2_Exists(This,fullPath,itemType) \ + ( (This)->lpVtbl -> Exists(This,fullPath,itemType) ) + +#define IFileSystemImage2_CalculateDiscIdentifier(This,discIdentifier) \ + ( (This)->lpVtbl -> CalculateDiscIdentifier(This,discIdentifier) ) + +#define IFileSystemImage2_IdentifyFileSystemsOnDisc(This,discRecorder,fileSystems) \ + ( (This)->lpVtbl -> IdentifyFileSystemsOnDisc(This,discRecorder,fileSystems) ) + +#define IFileSystemImage2_GetDefaultFileSystemForImport(This,fileSystems,importDefault) \ + ( (This)->lpVtbl -> GetDefaultFileSystemForImport(This,fileSystems,importDefault) ) + +#define IFileSystemImage2_ImportFileSystem(This,importedFileSystem) \ + ( (This)->lpVtbl -> ImportFileSystem(This,importedFileSystem) ) + +#define IFileSystemImage2_ImportSpecificFileSystem(This,fileSystemToUse) \ + ( (This)->lpVtbl -> ImportSpecificFileSystem(This,fileSystemToUse) ) + +#define IFileSystemImage2_RollbackToChangePoint(This,changePoint) \ + ( (This)->lpVtbl -> RollbackToChangePoint(This,changePoint) ) + +#define IFileSystemImage2_LockInChangePoint(This) \ + ( (This)->lpVtbl -> LockInChangePoint(This) ) + +#define IFileSystemImage2_CreateDirectoryItem(This,name,newItem) \ + ( (This)->lpVtbl -> CreateDirectoryItem(This,name,newItem) ) + +#define IFileSystemImage2_CreateFileItem(This,name,newItem) \ + ( (This)->lpVtbl -> CreateFileItem(This,name,newItem) ) + +#define IFileSystemImage2_get_VolumeNameUDF(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeNameUDF(This,pVal) ) + +#define IFileSystemImage2_get_VolumeNameJoliet(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeNameJoliet(This,pVal) ) + +#define IFileSystemImage2_get_VolumeNameISO9660(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeNameISO9660(This,pVal) ) + +#define IFileSystemImage2_get_StageFiles(This,pVal) \ + ( (This)->lpVtbl -> get_StageFiles(This,pVal) ) + +#define IFileSystemImage2_put_StageFiles(This,newVal) \ + ( (This)->lpVtbl -> put_StageFiles(This,newVal) ) + +#define IFileSystemImage2_get_MultisessionInterfaces(This,pVal) \ + ( (This)->lpVtbl -> get_MultisessionInterfaces(This,pVal) ) + +#define IFileSystemImage2_put_MultisessionInterfaces(This,newVal) \ + ( (This)->lpVtbl -> put_MultisessionInterfaces(This,newVal) ) + + +#define IFileSystemImage2_get_BootImageOptionsArray(This,pVal) \ + ( (This)->lpVtbl -> get_BootImageOptionsArray(This,pVal) ) + +#define IFileSystemImage2_put_BootImageOptionsArray(This,newVal) \ + ( (This)->lpVtbl -> put_BootImageOptionsArray(This,newVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFileSystemImage2_INTERFACE_DEFINED__ */ + + +#ifndef __IFileSystemImage3_INTERFACE_DEFINED__ +#define __IFileSystemImage3_INTERFACE_DEFINED__ + +/* interface IFileSystemImage3 */ +/* [helpstring][uuid][oleautomation][dual][unique][object] */ + + +EXTERN_C const IID IID_IFileSystemImage3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7CFF842C-7E97-4807-8304-910DD8F7C051") + IFileSystemImage3 : public IFileSystemImage2 + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CreateRedundantUdfMetadataFiles( + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CreateRedundantUdfMetadataFiles( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ProbeSpecificFileSystem( + /* [in] */ FsiFileSystems fileSystemToProbe, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *isAppendable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFileSystemImage3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFileSystemImage3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFileSystemImage3 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IFileSystemImage3 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IFileSystemImage3 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_Root) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Root )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiDirectoryItem **pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_SessionStartBlock) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionStartBlock )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_SessionStartBlock) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_SessionStartBlock )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FreeMediaBlocks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FreeMediaBlocks )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_FreeMediaBlocks) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FreeMediaBlocks )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, SetMaxMediaBlocksFromDevice) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetMaxMediaBlocksFromDevice )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UsedBlocks) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UsedBlocks )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeName )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_VolumeName) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_VolumeName )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ImportedVolumeName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImportedVolumeName )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_BootImageOptions) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BootImageOptions )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IBootOptions **pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_BootImageOptions) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BootImageOptions )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in_opt IBootOptions *newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FileCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileCount )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_DirectoryCount) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DirectoryCount )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_WorkingDirectory) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_WorkingDirectory )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_WorkingDirectory) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_WorkingDirectory )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ChangePoint) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChangePoint )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_StrictFileSystemCompliance) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StrictFileSystemCompliance )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_StrictFileSystemCompliance) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StrictFileSystemCompliance )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UseRestrictedCharacterSet) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UseRestrictedCharacterSet )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_UseRestrictedCharacterSet) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UseRestrictedCharacterSet )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FileSystemsToCreate) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileSystemsToCreate )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_FileSystemsToCreate) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_FileSystemsToCreate )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ FsiFileSystems newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_FileSystemsSupported) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FileSystemsSupported )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_UDFRevision) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_UDFRevision )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UDFRevision) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UDFRevision )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_UDFRevisionsSupported) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_UDFRevisionsSupported )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, ChooseImageDefaults) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChooseImageDefaults )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder); + + DECLSPEC_XFGVIRT(IFileSystemImage, ChooseImageDefaultsForMediaType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ChooseImageDefaultsForMediaType )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ IMAPI_MEDIA_PHYSICAL_TYPE value); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_ISO9660InterchangeLevel) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ISO9660InterchangeLevel )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ LONG newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ISO9660InterchangeLevel) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ISO9660InterchangeLevel )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_ISO9660InterchangeLevelsSupported) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ISO9660InterchangeLevelsSupported )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, CreateResultImage) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateResultImage )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt IFileSystemImageResult **resultStream); + + DECLSPEC_XFGVIRT(IFileSystemImage, Exists) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Exists )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in BSTR fullPath, + /* [retval][ref][out] */ __RPC__out FsiItemType *itemType); + + DECLSPEC_XFGVIRT(IFileSystemImage, CalculateDiscIdentifier) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CalculateDiscIdentifier )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *discIdentifier); + + DECLSPEC_XFGVIRT(IFileSystemImage, IdentifyFileSystemsOnDisc) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *IdentifyFileSystemsOnDisc )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in_opt IDiscRecorder2 *discRecorder, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *fileSystems); + + DECLSPEC_XFGVIRT(IFileSystemImage, GetDefaultFileSystemForImport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetDefaultFileSystemForImport )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ FsiFileSystems fileSystems, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *importDefault); + + DECLSPEC_XFGVIRT(IFileSystemImage, ImportFileSystem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportFileSystem )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out FsiFileSystems *importedFileSystem); + + DECLSPEC_XFGVIRT(IFileSystemImage, ImportSpecificFileSystem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ImportSpecificFileSystem )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ FsiFileSystems fileSystemToUse); + + DECLSPEC_XFGVIRT(IFileSystemImage, RollbackToChangePoint) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *RollbackToChangePoint )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ LONG changePoint); + + DECLSPEC_XFGVIRT(IFileSystemImage, LockInChangePoint) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LockInChangePoint )( + __RPC__in IFileSystemImage3 * This); + + DECLSPEC_XFGVIRT(IFileSystemImage, CreateDirectoryItem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateDirectoryItem )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiDirectoryItem **newItem); + + DECLSPEC_XFGVIRT(IFileSystemImage, CreateFileItem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateFileItem )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in BSTR name, + /* [retval][ref][out] */ __RPC__deref_out_opt IFsiFileItem **newItem); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeNameUDF) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeNameUDF )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeNameJoliet) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeNameJoliet )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_VolumeNameISO9660) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_VolumeNameISO9660 )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_StageFiles) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StageFiles )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_StageFiles) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_StageFiles )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, get_MultisessionInterfaces) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MultisessionInterfaces )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage, put_MultisessionInterfaces) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MultisessionInterfaces )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in SAFEARRAY * newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage2, get_BootImageOptionsArray) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BootImageOptionsArray )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__deref_out_opt SAFEARRAY * *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage2, put_BootImageOptionsArray) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BootImageOptionsArray )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ __RPC__in SAFEARRAY * newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage3, get_CreateRedundantUdfMetadataFiles) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CreateRedundantUdfMetadataFiles )( + __RPC__in IFileSystemImage3 * This, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IFileSystemImage3, put_CreateRedundantUdfMetadataFiles) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CreateRedundantUdfMetadataFiles )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IFileSystemImage3, ProbeSpecificFileSystem) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ProbeSpecificFileSystem )( + __RPC__in IFileSystemImage3 * This, + /* [in] */ FsiFileSystems fileSystemToProbe, + /* [retval][ref][out] */ __RPC__out VARIANT_BOOL *isAppendable); + + END_INTERFACE + } IFileSystemImage3Vtbl; + + interface IFileSystemImage3 + { + CONST_VTBL struct IFileSystemImage3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFileSystemImage3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFileSystemImage3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFileSystemImage3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFileSystemImage3_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IFileSystemImage3_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IFileSystemImage3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IFileSystemImage3_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IFileSystemImage3_get_Root(This,pVal) \ + ( (This)->lpVtbl -> get_Root(This,pVal) ) + +#define IFileSystemImage3_get_SessionStartBlock(This,pVal) \ + ( (This)->lpVtbl -> get_SessionStartBlock(This,pVal) ) + +#define IFileSystemImage3_put_SessionStartBlock(This,newVal) \ + ( (This)->lpVtbl -> put_SessionStartBlock(This,newVal) ) + +#define IFileSystemImage3_get_FreeMediaBlocks(This,pVal) \ + ( (This)->lpVtbl -> get_FreeMediaBlocks(This,pVal) ) + +#define IFileSystemImage3_put_FreeMediaBlocks(This,newVal) \ + ( (This)->lpVtbl -> put_FreeMediaBlocks(This,newVal) ) + +#define IFileSystemImage3_SetMaxMediaBlocksFromDevice(This,discRecorder) \ + ( (This)->lpVtbl -> SetMaxMediaBlocksFromDevice(This,discRecorder) ) + +#define IFileSystemImage3_get_UsedBlocks(This,pVal) \ + ( (This)->lpVtbl -> get_UsedBlocks(This,pVal) ) + +#define IFileSystemImage3_get_VolumeName(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeName(This,pVal) ) + +#define IFileSystemImage3_put_VolumeName(This,newVal) \ + ( (This)->lpVtbl -> put_VolumeName(This,newVal) ) + +#define IFileSystemImage3_get_ImportedVolumeName(This,pVal) \ + ( (This)->lpVtbl -> get_ImportedVolumeName(This,pVal) ) + +#define IFileSystemImage3_get_BootImageOptions(This,pVal) \ + ( (This)->lpVtbl -> get_BootImageOptions(This,pVal) ) + +#define IFileSystemImage3_put_BootImageOptions(This,newVal) \ + ( (This)->lpVtbl -> put_BootImageOptions(This,newVal) ) + +#define IFileSystemImage3_get_FileCount(This,pVal) \ + ( (This)->lpVtbl -> get_FileCount(This,pVal) ) + +#define IFileSystemImage3_get_DirectoryCount(This,pVal) \ + ( (This)->lpVtbl -> get_DirectoryCount(This,pVal) ) + +#define IFileSystemImage3_get_WorkingDirectory(This,pVal) \ + ( (This)->lpVtbl -> get_WorkingDirectory(This,pVal) ) + +#define IFileSystemImage3_put_WorkingDirectory(This,newVal) \ + ( (This)->lpVtbl -> put_WorkingDirectory(This,newVal) ) + +#define IFileSystemImage3_get_ChangePoint(This,pVal) \ + ( (This)->lpVtbl -> get_ChangePoint(This,pVal) ) + +#define IFileSystemImage3_get_StrictFileSystemCompliance(This,pVal) \ + ( (This)->lpVtbl -> get_StrictFileSystemCompliance(This,pVal) ) + +#define IFileSystemImage3_put_StrictFileSystemCompliance(This,newVal) \ + ( (This)->lpVtbl -> put_StrictFileSystemCompliance(This,newVal) ) + +#define IFileSystemImage3_get_UseRestrictedCharacterSet(This,pVal) \ + ( (This)->lpVtbl -> get_UseRestrictedCharacterSet(This,pVal) ) + +#define IFileSystemImage3_put_UseRestrictedCharacterSet(This,newVal) \ + ( (This)->lpVtbl -> put_UseRestrictedCharacterSet(This,newVal) ) + +#define IFileSystemImage3_get_FileSystemsToCreate(This,pVal) \ + ( (This)->lpVtbl -> get_FileSystemsToCreate(This,pVal) ) + +#define IFileSystemImage3_put_FileSystemsToCreate(This,newVal) \ + ( (This)->lpVtbl -> put_FileSystemsToCreate(This,newVal) ) + +#define IFileSystemImage3_get_FileSystemsSupported(This,pVal) \ + ( (This)->lpVtbl -> get_FileSystemsSupported(This,pVal) ) + +#define IFileSystemImage3_put_UDFRevision(This,newVal) \ + ( (This)->lpVtbl -> put_UDFRevision(This,newVal) ) + +#define IFileSystemImage3_get_UDFRevision(This,pVal) \ + ( (This)->lpVtbl -> get_UDFRevision(This,pVal) ) + +#define IFileSystemImage3_get_UDFRevisionsSupported(This,pVal) \ + ( (This)->lpVtbl -> get_UDFRevisionsSupported(This,pVal) ) + +#define IFileSystemImage3_ChooseImageDefaults(This,discRecorder) \ + ( (This)->lpVtbl -> ChooseImageDefaults(This,discRecorder) ) + +#define IFileSystemImage3_ChooseImageDefaultsForMediaType(This,value) \ + ( (This)->lpVtbl -> ChooseImageDefaultsForMediaType(This,value) ) + +#define IFileSystemImage3_put_ISO9660InterchangeLevel(This,newVal) \ + ( (This)->lpVtbl -> put_ISO9660InterchangeLevel(This,newVal) ) + +#define IFileSystemImage3_get_ISO9660InterchangeLevel(This,pVal) \ + ( (This)->lpVtbl -> get_ISO9660InterchangeLevel(This,pVal) ) + +#define IFileSystemImage3_get_ISO9660InterchangeLevelsSupported(This,pVal) \ + ( (This)->lpVtbl -> get_ISO9660InterchangeLevelsSupported(This,pVal) ) + +#define IFileSystemImage3_CreateResultImage(This,resultStream) \ + ( (This)->lpVtbl -> CreateResultImage(This,resultStream) ) + +#define IFileSystemImage3_Exists(This,fullPath,itemType) \ + ( (This)->lpVtbl -> Exists(This,fullPath,itemType) ) + +#define IFileSystemImage3_CalculateDiscIdentifier(This,discIdentifier) \ + ( (This)->lpVtbl -> CalculateDiscIdentifier(This,discIdentifier) ) + +#define IFileSystemImage3_IdentifyFileSystemsOnDisc(This,discRecorder,fileSystems) \ + ( (This)->lpVtbl -> IdentifyFileSystemsOnDisc(This,discRecorder,fileSystems) ) + +#define IFileSystemImage3_GetDefaultFileSystemForImport(This,fileSystems,importDefault) \ + ( (This)->lpVtbl -> GetDefaultFileSystemForImport(This,fileSystems,importDefault) ) + +#define IFileSystemImage3_ImportFileSystem(This,importedFileSystem) \ + ( (This)->lpVtbl -> ImportFileSystem(This,importedFileSystem) ) + +#define IFileSystemImage3_ImportSpecificFileSystem(This,fileSystemToUse) \ + ( (This)->lpVtbl -> ImportSpecificFileSystem(This,fileSystemToUse) ) + +#define IFileSystemImage3_RollbackToChangePoint(This,changePoint) \ + ( (This)->lpVtbl -> RollbackToChangePoint(This,changePoint) ) + +#define IFileSystemImage3_LockInChangePoint(This) \ + ( (This)->lpVtbl -> LockInChangePoint(This) ) + +#define IFileSystemImage3_CreateDirectoryItem(This,name,newItem) \ + ( (This)->lpVtbl -> CreateDirectoryItem(This,name,newItem) ) + +#define IFileSystemImage3_CreateFileItem(This,name,newItem) \ + ( (This)->lpVtbl -> CreateFileItem(This,name,newItem) ) + +#define IFileSystemImage3_get_VolumeNameUDF(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeNameUDF(This,pVal) ) + +#define IFileSystemImage3_get_VolumeNameJoliet(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeNameJoliet(This,pVal) ) + +#define IFileSystemImage3_get_VolumeNameISO9660(This,pVal) \ + ( (This)->lpVtbl -> get_VolumeNameISO9660(This,pVal) ) + +#define IFileSystemImage3_get_StageFiles(This,pVal) \ + ( (This)->lpVtbl -> get_StageFiles(This,pVal) ) + +#define IFileSystemImage3_put_StageFiles(This,newVal) \ + ( (This)->lpVtbl -> put_StageFiles(This,newVal) ) + +#define IFileSystemImage3_get_MultisessionInterfaces(This,pVal) \ + ( (This)->lpVtbl -> get_MultisessionInterfaces(This,pVal) ) + +#define IFileSystemImage3_put_MultisessionInterfaces(This,newVal) \ + ( (This)->lpVtbl -> put_MultisessionInterfaces(This,newVal) ) + + +#define IFileSystemImage3_get_BootImageOptionsArray(This,pVal) \ + ( (This)->lpVtbl -> get_BootImageOptionsArray(This,pVal) ) + +#define IFileSystemImage3_put_BootImageOptionsArray(This,newVal) \ + ( (This)->lpVtbl -> put_BootImageOptionsArray(This,newVal) ) + + +#define IFileSystemImage3_get_CreateRedundantUdfMetadataFiles(This,pVal) \ + ( (This)->lpVtbl -> get_CreateRedundantUdfMetadataFiles(This,pVal) ) + +#define IFileSystemImage3_put_CreateRedundantUdfMetadataFiles(This,newVal) \ + ( (This)->lpVtbl -> put_CreateRedundantUdfMetadataFiles(This,newVal) ) + +#define IFileSystemImage3_ProbeSpecificFileSystem(This,fileSystemToProbe,isAppendable) \ + ( (This)->lpVtbl -> ProbeSpecificFileSystem(This,fileSystemToProbe,isAppendable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFileSystemImage3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2fs_0000_0016 */ +/* [local] */ + +#define DISPID_DFILESYSTEMIMAGEEVENTS_UPDATE 0x100 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0016_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0016_v0_0_s_ifspec; + +#ifndef __DFileSystemImageEvents_INTERFACE_DEFINED__ +#define __DFileSystemImageEvents_INTERFACE_DEFINED__ + +/* interface DFileSystemImageEvents */ +/* [helpstring][unique][uuid][oleautomation][nonextensible][object] */ + + +EXTERN_C const IID IID_DFileSystemImageEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2C941FDF-975B-59BE-A960-9A2A262853A5") + DFileSystemImageEvents : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Update( + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in BSTR currentFile, + /* [in] */ LONG copiedSectors, + /* [in] */ LONG totalSectors) = 0; + + }; + + +#else /* C style interface */ + + typedef struct DFileSystemImageEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DFileSystemImageEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DFileSystemImageEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DFileSystemImageEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DFileSystemImageEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DFileSystemImageEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DFileSystemImageEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DFileSystemImageEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(DFileSystemImageEvents, Update) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Update )( + __RPC__in DFileSystemImageEvents * This, + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ __RPC__in BSTR currentFile, + /* [in] */ LONG copiedSectors, + /* [in] */ LONG totalSectors); + + END_INTERFACE + } DFileSystemImageEventsVtbl; + + interface DFileSystemImageEvents + { + CONST_VTBL struct DFileSystemImageEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DFileSystemImageEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DFileSystemImageEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DFileSystemImageEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DFileSystemImageEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DFileSystemImageEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DFileSystemImageEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DFileSystemImageEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define DFileSystemImageEvents_Update(This,object,currentFile,copiedSectors,totalSectors) \ + ( (This)->lpVtbl -> Update(This,object,currentFile,copiedSectors,totalSectors) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DFileSystemImageEvents_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2fs_0000_0017 */ +/* [local] */ + +#define DISPID_DFILESYSTEMIMAGEIMPORTEVENTS_UPDATEIMPORT 0x101 + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0017_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0017_v0_0_s_ifspec; + +#ifndef __DFileSystemImageImportEvents_INTERFACE_DEFINED__ +#define __DFileSystemImageImportEvents_INTERFACE_DEFINED__ + +/* interface DFileSystemImageImportEvents */ +/* [helpstring][unique][uuid][oleautomation][nonextensible][object] */ + + +EXTERN_C const IID IID_DFileSystemImageImportEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D25C30F9-4087-4366-9E24-E55BE286424B") + DFileSystemImageImportEvents : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE UpdateImport( + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ FsiFileSystems fileSystem, + /* [in] */ __RPC__in BSTR currentItem, + /* [in] */ LONG importedDirectoryItems, + /* [in] */ LONG totalDirectoryItems, + /* [in] */ LONG importedFileItems, + /* [in] */ LONG totalFileItems) = 0; + + }; + + +#else /* C style interface */ + + typedef struct DFileSystemImageImportEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in DFileSystemImageImportEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in DFileSystemImageImportEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in DFileSystemImageImportEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in DFileSystemImageImportEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in DFileSystemImageImportEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in DFileSystemImageImportEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + DFileSystemImageImportEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(DFileSystemImageImportEvents, UpdateImport) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *UpdateImport )( + __RPC__in DFileSystemImageImportEvents * This, + /* [in] */ __RPC__in_opt IDispatch *object, + /* [in] */ FsiFileSystems fileSystem, + /* [in] */ __RPC__in BSTR currentItem, + /* [in] */ LONG importedDirectoryItems, + /* [in] */ LONG totalDirectoryItems, + /* [in] */ LONG importedFileItems, + /* [in] */ LONG totalFileItems); + + END_INTERFACE + } DFileSystemImageImportEventsVtbl; + + interface DFileSystemImageImportEvents + { + CONST_VTBL struct DFileSystemImageImportEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define DFileSystemImageImportEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define DFileSystemImageImportEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define DFileSystemImageImportEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define DFileSystemImageImportEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define DFileSystemImageImportEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define DFileSystemImageImportEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define DFileSystemImageImportEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define DFileSystemImageImportEvents_UpdateImport(This,object,fileSystem,currentItem,importedDirectoryItems,totalDirectoryItems,importedFileItems,totalFileItems) \ + ( (This)->lpVtbl -> UpdateImport(This,object,fileSystem,currentItem,importedDirectoryItems,totalDirectoryItems,importedFileItems,totalFileItems) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __DFileSystemImageImportEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IIsoImageManager_INTERFACE_DEFINED__ +#define __IIsoImageManager_INTERFACE_DEFINED__ + +/* interface IIsoImageManager */ +/* [helpstring][unique][uuid][object] */ + + +EXTERN_C const IID IID_IIsoImageManager; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6CA38BE5-FBBB-4800-95A1-A438865EB0D4") + IIsoImageManager : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Path( + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Stream( + /* [retval][out] */ __RPC__deref_out_opt IStream **data) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetPath( + /* [in] */ __RPC__in BSTR Val) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetStream( + /* [in] */ __RPC__in_opt IStream *data) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Validate( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsoImageManagerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IIsoImageManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IIsoImageManager * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IIsoImageManager * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IIsoImageManager * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IIsoImageManager * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IIsoImageManager * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IIsoImageManager * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IIsoImageManager, get_Path) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Path )( + __RPC__in IIsoImageManager * This, + /* [retval][ref][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IIsoImageManager, get_Stream) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Stream )( + __RPC__in IIsoImageManager * This, + /* [retval][out] */ __RPC__deref_out_opt IStream **data); + + DECLSPEC_XFGVIRT(IIsoImageManager, SetPath) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetPath )( + __RPC__in IIsoImageManager * This, + /* [in] */ __RPC__in BSTR Val); + + DECLSPEC_XFGVIRT(IIsoImageManager, SetStream) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetStream )( + __RPC__in IIsoImageManager * This, + /* [in] */ __RPC__in_opt IStream *data); + + DECLSPEC_XFGVIRT(IIsoImageManager, Validate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Validate )( + __RPC__in IIsoImageManager * This); + + END_INTERFACE + } IIsoImageManagerVtbl; + + interface IIsoImageManager + { + CONST_VTBL struct IIsoImageManagerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsoImageManager_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsoImageManager_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsoImageManager_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsoImageManager_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IIsoImageManager_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IIsoImageManager_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IIsoImageManager_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IIsoImageManager_get_Path(This,pVal) \ + ( (This)->lpVtbl -> get_Path(This,pVal) ) + +#define IIsoImageManager_get_Stream(This,data) \ + ( (This)->lpVtbl -> get_Stream(This,data) ) + +#define IIsoImageManager_SetPath(This,Val) \ + ( (This)->lpVtbl -> SetPath(This,Val) ) + +#define IIsoImageManager_SetStream(This,data) \ + ( (This)->lpVtbl -> SetStream(This,data) ) + +#define IIsoImageManager_Validate(This) \ + ( (This)->lpVtbl -> Validate(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsoImageManager_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imapi2fs_0000_0019 */ +/* [local] */ + + +// +// IMAPIv2 FileSystemImaging version information for TYPELib loading +// +#define IMAPI2FS_MajorVersion 1 +#define IMAPI2FS_MinorVersion 0 +#define IMAPI2FS_FullVersion_STR "1.0" +#define IMAPI2FS_FullVersion_WSTR L"1.0" + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0019_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0019_v0_0_s_ifspec; + + +#ifndef __IMAPI2FS_LIBRARY_DEFINED__ +#define __IMAPI2FS_LIBRARY_DEFINED__ + +/* library IMAPI2FS */ +/* [helpstring][uuid][version] */ + + + + +EXTERN_C const IID LIBID_IMAPI2FS; + +EXTERN_C const CLSID CLSID_BootOptions; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2C941FCE-975B-59BE-A960-9A2A262853A5") +BootOptions; +#endif + +EXTERN_C const CLSID CLSID_FsiStream; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2C941FCD-975B-59BE-A960-9A2A262853A5") +FsiStream; +#endif + +EXTERN_C const CLSID CLSID_FileSystemImageResult; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2C941FCC-975B-59BE-A960-9A2A262853A5") +FileSystemImageResult; +#endif + +EXTERN_C const CLSID CLSID_ProgressItem; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2C941FCB-975B-59BE-A960-9A2A262853A5") +ProgressItem; +#endif + +EXTERN_C const CLSID CLSID_EnumProgressItems; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2C941FCA-975B-59BE-A960-9A2A262853A5") +EnumProgressItems; +#endif + +EXTERN_C const CLSID CLSID_ProgressItems; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2C941FC9-975B-59BE-A960-9A2A262853A5") +ProgressItems; +#endif + +EXTERN_C const CLSID CLSID_FsiDirectoryItem; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2C941FC8-975B-59BE-A960-9A2A262853A5") +FsiDirectoryItem; +#endif + +EXTERN_C const CLSID CLSID_FsiFileItem; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2C941FC7-975B-59BE-A960-9A2A262853A5") +FsiFileItem; +#endif + +EXTERN_C const CLSID CLSID_EnumFsiItems; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2C941FC6-975B-59BE-A960-9A2A262853A5") +EnumFsiItems; +#endif + +EXTERN_C const CLSID CLSID_FsiNamedStreams; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C6B6F8ED-6D19-44b4-B539-B159B793A32D") +FsiNamedStreams; +#endif + +EXTERN_C const CLSID CLSID_MsftFileSystemImage; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2C941FC5-975B-59BE-A960-9A2A262853A5") +MsftFileSystemImage; +#endif + +EXTERN_C const CLSID CLSID_MsftIsoImageManager; + +#ifdef __cplusplus + +class DECLSPEC_UUID("CEEE3B62-8F56-4056-869B-EF16917E3EFC") +MsftIsoImageManager; +#endif + +EXTERN_C const CLSID CLSID_BlockRange; + +#ifdef __cplusplus + +class DECLSPEC_UUID("B507CA27-2204-11DD-966A-001AA01BBC58") +BlockRange; +#endif + +EXTERN_C const CLSID CLSID_BlockRangeList; + +#ifdef __cplusplus + +class DECLSPEC_UUID("B507CA28-2204-11DD-966A-001AA01BBC58") +BlockRangeList; +#endif +#endif /* __IMAPI2FS_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_imapi2fs_0000_0020 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0020_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imapi2fs_0000_0020_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +/* [helpstring][local] */ HRESULT STDMETHODCALLTYPE IEnumProgressItems_Next_Proxy( + IEnumProgressItems * This, + /* [in] */ ULONG celt, + /* [size_is][out] */ IProgressItem **rgelt, + /* [out] */ ULONG *pceltFetched); + + +/* [helpstring][call_as] */ HRESULT STDMETHODCALLTYPE IEnumProgressItems_Next_Stub( + __RPC__in IEnumProgressItems * This, + /* [range][in] */ __RPC__in_range(1,0x7fffffff) ULONG celt, + /* [size_is][out] */ __RPC__out_ecount_full(celt) IProgressItem **rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched); + +/* [helpstring][local] */ HRESULT STDMETHODCALLTYPE IEnumFsiItems_Next_Proxy( + IEnumFsiItems * This, + /* [in] */ ULONG celt, + /* [size_is][out] */ IFsiItem **rgelt, + /* [out] */ ULONG *pceltFetched); + + +/* [helpstring][call_as] */ HRESULT STDMETHODCALLTYPE IEnumFsiItems_Next_Stub( + __RPC__in IEnumFsiItems * This, + /* [range][in] */ __RPC__in_range(0,0x7fffffff) ULONG celt, + /* [size_is][out] */ __RPC__out_ecount_full(celt) IFsiItem **rgelt, + /* [out] */ __RPC__out ULONG *pceltFetched); + + + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2fs.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2fs.idl new file mode 100644 index 0000000000000000000000000000000000000000..bb565ae292e44ebc26da856085047d68540e3fbd --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2fs.idl @@ -0,0 +1,1229 @@ +// FileSystemImaging.idl : IDL source for the FileSystemImaging family of interfaces +// + +// This file will be processed by the MIDL tool to +// produce the type library (FileSystemImaging.tlb) and marshalling code. + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "imapi2.idl"; + +cpp_quote("#define IMAPI2FS_BOOT_ENTRY_COUNT_MAX 32") + +[ + v1_enum, public, + helpstring("File system item type") +] +typedef enum FsiItemType { + FsiItemNotFound = 0, + FsiItemDirectory = 1, + FsiItemFile = 2, +} FsiItemType; + +[ + v1_enum, public, + helpstring("Type of file system") +] +typedef enum FsiFileSystems { + FsiFileSystemNone = 0, + FsiFileSystemISO9660 = 1, + FsiFileSystemJoliet = 2, + FsiFileSystemUDF = 4, + FsiFileSystemUnknown = 0x40000000, +} FsiFileSystems; + +[ + v1_enum, public, + helpstring("Boot emulation type") +] +typedef enum EmulationType { + EmulationNone = 0, + Emulation12MFloppy = 1, + Emulation144MFloppy = 2, + Emulation288MFloppy = 3, + EmulationHardDisk = 4, +} EmulationType; + +[ + v1_enum, public, + helpstring("Boot platform type") +] +typedef enum PlatformId { + PlatformX86 = 0, + PlatformPowerPC = 1, + PlatformMac = 2, + PlatformEFI = 0xEF, +} PlatformId; + +[ + object, pointer_default(unique), + dual, nonextensible, oleautomation, + uuid(2C941FD4-975B-59BE-A960-9A2A262853A5), + helpstring("Boot options") +] +interface IBootOptions : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(1), + helpstring("Get boot image data stream") + ] + HRESULT BootImage([out,retval] IStream **pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(2), + helpstring("Get boot manufacturer") + ] + HRESULT Manufacturer([out,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(2), + helpstring("Put boot manufacturer") + ] + HRESULT Manufacturer([in] BSTR newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(3), + helpstring("Get boot platform identifier") + ] + HRESULT PlatformId([out,retval] PlatformId *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(3), + helpstring("Put boot platform identifier") + ] + HRESULT PlatformId([in] PlatformId newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(4), + helpstring("Get boot emulation type") + ] + HRESULT Emulation([out,retval] EmulationType *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(4), + helpstring("Put boot emulation type") + ] + HRESULT Emulation([in] EmulationType newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(5), + helpstring("Get boot image size") + ] + HRESULT ImageSize([out,retval] ULONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + id(20), + helpstring("Set the boot image data stream, emulation type, and image size") + ] + HRESULT AssignBootImage([in] IStream *newVal); + +}; + +[ + object, pointer_default(unique), + dual, nonextensible, oleautomation, + uuid(2C941FD5-975B-59BE-A960-9A2A262853A5), + helpstring("FileSystemImageResult progress item") +] +interface IProgressItem : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(1), + helpstring("Progress item description") + ] + HRESULT Description([out,retval] BSTR *desc ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(2), + helpstring("First block in the range of blocks used by the progress item") + ] + HRESULT FirstBlock([out,retval] ULONG *block); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(3), + helpstring("Last block in the range of blocks used by the progress item") + ] + HRESULT LastBlock([out,retval] ULONG *block); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(4), + helpstring("Number of blocks used by the progress item") + ] + HRESULT BlockCount([out,retval] ULONG *blocks); +}; + +[ + object, pointer_default(unique), + uuid(2C941FD6-975B-59BE-A960-9A2A262853A5), + helpstring("FileSystemImageResult progress item enumerator") +] +interface IEnumProgressItems : IUnknown +{ + [ ////////////////////////////////////////////////////////////////////////// + local, + helpstring("Get next items in the enumeration") + ] + HRESULT Next([in] ULONG celt, [out,size_is(celt)] IProgressItem **rgelt , [out] ULONG *pceltFetched); + + [ ////////////////////////////////////////////////////////////////////////// + call_as(Next), + helpstring("Remoting support for Next (allow NULL pointer for item count when requesting single item)") + ] + HRESULT RemoteNext([in,range(1,0x7FFFFFFF)] ULONG celt, [out,size_is(celt)] IProgressItem **rgelt , [out] ULONG *pceltFetched); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Skip items in the enumeration") + ] + HRESULT Skip([in] ULONG celt); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Reset the enumerator") + ] + HRESULT Reset(); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Make a copy of the enumerator") + ] + HRESULT Clone([out] IEnumProgressItems **ppEnum ); +}; + +[ + object, pointer_default(unique), + dual, nonextensible, oleautomation, + uuid(2C941FD7-975B-59BE-A960-9A2A262853A5), + helpstring("Progress item block mapping collection") +] +interface IProgressItems : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(DISPID_NEWENUM), + hidden, restricted, + helpstring("Get an enumerator for the collection") + ] + HRESULT _NewEnum([out,retval] IEnumVARIANT **NewEnum ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(DISPID_VALUE), + helpstring("Find the block mapping from the specified index") + ] + HRESULT Item([in] long Index, [out,retval] IProgressItem **item ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(1), + helpstring("Number of items in the collection") + ] + HRESULT Count([out,retval] long *Count); + + [ ////////////////////////////////////////////////////////////////////////// + id(2), + helpstring("Find the block mapping from the specified block") + ] + HRESULT ProgressItemFromBlock([in] ULONG block, [out,retval] IProgressItem **item ); + + [ ////////////////////////////////////////////////////////////////////////// + id(3), + helpstring("Find the block mapping from the specified item description") + ] + HRESULT ProgressItemFromDescription([in] BSTR description, [out,retval] IProgressItem **item ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(4), + hidden,restricted, + helpstring("Get a non-variant enumerator") + ] + HRESULT EnumProgressItems([out,retval] IEnumProgressItems **NewEnum ); +}; + +[ + object, pointer_default(unique), + dual, oleautomation, + uuid(2C941FD8-975B-59BE-A960-9A2A262853A5), + helpstring("FileSystemImage result stream") +] +interface IFileSystemImageResult : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(1), + helpstring("Image stream") + ] + HRESULT ImageStream([out,retval] IStream **pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(2), + helpstring("Progress item block mapping collection") + ] + HRESULT ProgressItems([out,retval] IProgressItems **pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(3), + helpstring("Number of blocks in the result image") + ] + HRESULT TotalBlocks([out,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(4), + helpstring("Number of bytes in a block") + ] + HRESULT BlockSize([out,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(5), + helpstring("Disc Identifier (for identifing imported session of multi-session disc)") + ] + HRESULT DiscId([out,retval] BSTR *pVal); +}; + +[ + object, pointer_default(unique), + dual, oleautomation, + uuid(B507CA29-2204-11DD-966A-001AA01BBC58), + helpstring("FileSystemImage result stream (rev.2)") +] +interface IFileSystemImageResult2 : IFileSystemImageResult +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(6), + helpstring("List of modified block ranges in the result stream") + ] + HRESULT ModifiedBlocks([out,ref,retval] IBlockRangeList **pVal); +} + +[ + object, pointer_default(unique), + dual, oleautomation, + uuid(2C941FD9-975B-59BE-A960-9A2A262853A5), + helpstring("FileSystemImage item") +] +interface IFsiItem : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(11), + helpstring("Item name") + ] + HRESULT Name([out,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(12), + helpstring("Full path") + ] + HRESULT FullPath([out,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(13), + helpstring("Date and time of creation") + ] + HRESULT CreationTime([out,retval] DATE *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(13), + helpstring("Date and time of creation") + ] + HRESULT CreationTime([in] DATE newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(14), + helpstring("Date and time of last access") + ] + HRESULT LastAccessedTime([out,retval] DATE *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(14), + helpstring("Date and time of last access") + ] + HRESULT LastAccessedTime([in] DATE newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(15), + helpstring("Date and time of last modification") + ] + HRESULT LastModifiedTime([out,retval] DATE *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(15), + helpstring("Date and time of last modification") + ] + HRESULT LastModifiedTime([in] DATE newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(16), + helpstring("Flag indicating if item is hidden") + ] + HRESULT IsHidden([out,retval] VARIANT_BOOL *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(16), + helpstring("Flag indicating if item is hidden") + ] + HRESULT IsHidden([in] VARIANT_BOOL newVal); + + [ ////////////////////////////////////////////////////////////////////////// + id(17), + helpstring("Name of item in the specified file system") + ] + HRESULT FileSystemName([in] FsiFileSystems fileSystem, [out,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + id(18), + helpstring("Name of item in the specified file system") + ] + HRESULT FileSystemPath([in] FsiFileSystems fileSystem, [out,retval] BSTR *pVal ); +}; + +[ + object, pointer_default(unique), + uuid(2C941FDA-975B-59BE-A960-9A2A262853A5), + helpstring("FileSystemImage item enumerator") +] +interface IEnumFsiItems : IUnknown +{ + [ ////////////////////////////////////////////////////////////////////////// + local, + helpstring("Get next items in the enumeration") + ] + HRESULT Next([in] ULONG celt, [out,size_is(celt)] IFsiItem **rgelt , [out] ULONG *pceltFetched); + + [ ////////////////////////////////////////////////////////////////////////// + call_as(Next), + helpstring("Remoting support for Next (allow NULL pointer for item count when requesting single item)") + ] + HRESULT RemoteNext([in,range(0,0x7FFFFFFF)] ULONG celt, [out,size_is(celt)] IFsiItem **rgelt , [out] ULONG *pceltFetched); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Skip items in the enumeration") + ] + HRESULT Skip([in] ULONG celt); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Reset the enumerator") + ] + HRESULT Reset(); + + [ ////////////////////////////////////////////////////////////////////////// + helpstring("Make a copy of the enumerator") + ] + HRESULT Clone([out] IEnumFsiItems **ppEnum ); +}; + +[ + object, pointer_default(unique), + dual, oleautomation, + uuid(2C941FDB-975B-59BE-A960-9A2A262853A5), + helpstring("FileSystemImage file item") +] +interface IFsiFileItem : IFsiItem +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(41), + helpstring("Data byte count") + ] + HRESULT DataSize([out,retval] LONGLONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(42), + helpstring("Lower 32 bits of the data byte count") + ] + HRESULT DataSize32BitLow([out,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(43), + helpstring("Upper 32 bits of the data byte count") + ] + HRESULT DataSize32BitHigh([out,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(44), + helpstring("Data stream") + ] + HRESULT Data([out,retval] IStream **pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(44), + helpstring("Data stream") + ] + HRESULT Data([in] IStream *newVal); +}; + +// Forward declaration for interface IFsiNamedStreams +interface IFsiNamedStreams; + +[ + object, pointer_default(unique), + dual, oleautomation, + uuid(199D0C19-11E1-40eb-8EC2-C8C822A07792), + helpstring("FileSystemImage file item (rev.2)") +] +interface IFsiFileItem2 : IFsiFileItem +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(45), + hidden,restricted, + helpstring("Get the list of the named streams of the file") + ] + HRESULT FsiNamedStreams([out,ref,retval] IFsiNamedStreams **streams); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(46), + helpstring("Flag indicating if file item is a named stream of a file") + ] + HRESULT IsNamedStream([out,ref,retval] VARIANT_BOOL *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + id(47), + helpstring("Add a new named stream to the collection") + ] + HRESULT AddStream([in] BSTR name, [in] IStream *streamData); + + [ ////////////////////////////////////////////////////////////////////////// + id(48), + helpstring("Remove a specific named stream from the collection") + ] + HRESULT RemoveStream([in] BSTR name); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(49), + helpstring("Flag indicating if file is Real-Time") + ] + HRESULT IsRealTime([out,ref,retval] VARIANT_BOOL *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(49), + helpstring("Flag indicating if file is Real-Time") + ] + HRESULT IsRealTime([in] VARIANT_BOOL newVal); +}; + +[ + object, pointer_default(unique), + dual, oleautomation, nonextensible, + uuid(ED79BA56-5294-4250-8D46-F9AECEE23459), + helpstring("Named stream collection") +] +interface IFsiNamedStreams : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(DISPID_NEWENUM), + hidden, restricted, + helpstring("Get an enumerator for the named stream collection") + ] + HRESULT _NewEnum([out,ref,retval] IEnumVARIANT **NewEnum); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(DISPID_VALUE), + helpstring("Get a named stream from the collection") + ] + HRESULT Item([in] LONG index, [out,ref,retval] IFsiFileItem2 **item); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(81), + helpstring("Number of named streams in the collection") + ] + HRESULT Count([out,ref,retval] LONG *count); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(82), + hidden,restricted, + helpstring("Get a non-variant enumerator for the named stream collection") + ] + HRESULT EnumNamedStreams([out,ref,retval] IEnumFsiItems **NewEnum); +} + +[ + object, pointer_default(unique), + dual, oleautomation, + uuid(2C941FDC-975B-59BE-A960-9A2A262853A5), + helpstring("FileSystemImage directory item") +] +interface IFsiDirectoryItem : IFsiItem +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(DISPID_NEWENUM), + hidden, restricted, + helpstring("Get an enumerator for the collection") + ] + HRESULT _NewEnum([out,retval] IEnumVARIANT **NewEnum ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(DISPID_VALUE), + helpstring("Get the item with the given relative path") + ] + HRESULT Item([in] BSTR path, [out,retval] IFsiItem **item ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(1), + helpstring("Number of items in the collection") + ] + HRESULT Count([out,retval] LONG *Count); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(2), + hidden,restricted, + helpstring("Get a non-variant enumerator") + ] + HRESULT EnumFsiItems([out,retval] IEnumFsiItems **NewEnum ); + + [ ////////////////////////////////////////////////////////////////////////// + id(30), + helpstring("Add a directory with the specified relative path") + ] + HRESULT AddDirectory([in] BSTR path); + + [ ////////////////////////////////////////////////////////////////////////// + id(31), + helpstring("Add a file with the specified relative path and data") + ] + HRESULT AddFile([in] BSTR path, [in] IStream *fileData); + + [ ////////////////////////////////////////////////////////////////////////// + id(32), + helpstring("Add files and directories from the specified source directory") + ] + HRESULT AddTree([in] BSTR sourceDirectory, [in] VARIANT_BOOL includeBaseDirectory); + + [ ////////////////////////////////////////////////////////////////////////// + id(33), + helpstring("Add an item") + ] + HRESULT Add([in] IFsiItem *item); + + [ ////////////////////////////////////////////////////////////////////////// + id(34), + helpstring("Remove an item with the specified relative path") + ] + HRESULT Remove([in] BSTR path); + + [ ////////////////////////////////////////////////////////////////////////// + id(35), + helpstring("Remove a subtree with the specified relative path") + ] + HRESULT RemoveTree([in] BSTR path); +}; + +[ + object, pointer_default(unique), + dual, oleautomation, + uuid(F7FB4B9B-6D96-4d7b-9115-201B144811EF), + helpstring("FileSystemImage directory item (rev.2)") +] +interface IFsiDirectoryItem2 : IFsiDirectoryItem +{ + [ ////////////////////////////////////////////////////////////////////////// + id(36), + helpstring("Add files and directories from the specified source directory" + " including named streams") + ] + HRESULT AddTreeWithNamedStreams([in] BSTR sourceDirectory, + [in] VARIANT_BOOL includeBaseDirectory); +}; + +[ + object, pointer_default(unique), + dual, oleautomation, + uuid(2C941FE1-975B-59BE-A960-9A2A262853A5), + helpstring("File system image") +] +interface IFileSystemImage : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0), + helpstring("Root directory item") + ] + HRESULT Root([out,ref,retval] IFsiDirectoryItem **pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(1), + helpstring("Disc start block for the image") + ] + HRESULT SessionStartBlock([out,ref,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(1), + helpstring("Disc start block for the image") + ] + HRESULT SessionStartBlock([in] LONG newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(2), + helpstring("Maximum number of blocks available for the image") + ] + HRESULT FreeMediaBlocks([out,ref,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(2), + helpstring("Maximum number of blocks available for the image") + ] + HRESULT FreeMediaBlocks([in] LONG newVal); + + [ ////////////////////////////////////////////////////////////////////////// + id(36), + helpstring("Set maximum number of blocks available based on the recorder supported discs. 0 for unknown maximum may be set.") + ] + HRESULT SetMaxMediaBlocksFromDevice([in] IDiscRecorder2 *discRecorder); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(3), + helpstring("Number of blocks in use") + ] + HRESULT UsedBlocks([out,ref,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(4), + helpstring("Volume name") + ] + HRESULT VolumeName([out,ref,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(4), + helpstring("Volume name") + ] + HRESULT VolumeName([in] BSTR newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(5), + helpstring("Imported Volume name") + ] + HRESULT ImportedVolumeName([out,ref,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(6), + helpstring("Boot image and boot options") + ] + HRESULT BootImageOptions([out,ref,retval] IBootOptions **pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(6), + helpstring("Boot image and boot options") + ] + HRESULT BootImageOptions([in] IBootOptions *newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(7), + helpstring("Number of files in the image") + ] + HRESULT FileCount([out,ref,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(8), + helpstring("Number of directories in the image") + ] + HRESULT DirectoryCount([out,ref,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(9), + helpstring("Temp directory for stash files") + ] + HRESULT WorkingDirectory([out,ref,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(9), + helpstring("Temp directory for stash files") + ] + HRESULT WorkingDirectory([in] BSTR newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(10), + helpstring("Change point identifier") + ] + HRESULT ChangePoint([out,ref,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(11), + helpstring("Strict file system compliance option") + ] + HRESULT StrictFileSystemCompliance([out,ref,retval] VARIANT_BOOL *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(11), + helpstring("Strict file system compliance option") + ] + HRESULT StrictFileSystemCompliance([in] VARIANT_BOOL newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(12), + helpstring("If true, indicates restricted character set is being used for file and directory names") + ] + HRESULT UseRestrictedCharacterSet([out,ref,retval] VARIANT_BOOL *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(12), + helpstring("Set to true to restrict character set for file and directory names") + ] + HRESULT UseRestrictedCharacterSet([in] VARIANT_BOOL newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(13), + helpstring("File systems to create") + ] + HRESULT FileSystemsToCreate([out,ref,retval] FsiFileSystems *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(13), + helpstring("File systems to create") + ] + HRESULT FileSystemsToCreate([in] FsiFileSystems newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(14), + helpstring("File systems supported") + ] + HRESULT FileSystemsSupported([out,ref,retval] FsiFileSystems *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(37), + helpstring("UDF revision") + ] + HRESULT UDFRevision([in] LONG newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(37), + helpstring("UDF revision") + ] + HRESULT UDFRevision([out,ref,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(31), + helpstring("UDF revision(s) supported") + ] + HRESULT UDFRevisionsSupported([out,ref,retval] SAFEARRAY(VARIANT) *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + id(32), + helpstring("Select filesystem types and image size based on the current media") + ] + HRESULT ChooseImageDefaults([in] IDiscRecorder2 *discRecorder); + + [ ////////////////////////////////////////////////////////////////////////// + id(33), + helpstring("Select filesystem types and image size based on the media type") + ] + HRESULT ChooseImageDefaultsForMediaType([in] IMAPI_MEDIA_PHYSICAL_TYPE value); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(34), + helpstring("ISO compatibility level to create") + ] + HRESULT ISO9660InterchangeLevel([in] LONG newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(34), + helpstring("ISO compatibility level to create") + ] + HRESULT ISO9660InterchangeLevel([out,ref,retval] LONG *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(38), + helpstring("ISO compatibility level(s) supported") + ] + HRESULT ISO9660InterchangeLevelsSupported([out,ref,retval] SAFEARRAY(VARIANT) *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + id(15), + helpstring("Create result image stream") + ] + HRESULT CreateResultImage([out,ref,retval] IFileSystemImageResult **resultStream ); + + [ ////////////////////////////////////////////////////////////////////////// + id(16), + helpstring("Check for existance an item in the file system") + ] + HRESULT Exists([in] BSTR fullPath, [out,ref,retval] FsiItemType *itemType); + + [ ////////////////////////////////////////////////////////////////////////// + id(18), + helpstring("Return a string useful for identifying the current disc") + ] + HRESULT CalculateDiscIdentifier([out,ref,retval] BSTR *discIdentifier ); + + [ ////////////////////////////////////////////////////////////////////////// + id(19), + helpstring("Identify file systems on a given disc") + ] + HRESULT IdentifyFileSystemsOnDisc([in] IDiscRecorder2 *discRecorder, [out,ref,retval] FsiFileSystems *fileSystems); + + [ ////////////////////////////////////////////////////////////////////////// + id(20), + helpstring("Identify which of the specified file systems would be imported by default") + ] + HRESULT GetDefaultFileSystemForImport([in] FsiFileSystems fileSystems, [out,ref,retval] FsiFileSystems *importDefault); + + [ ////////////////////////////////////////////////////////////////////////// + id(21), + helpstring("Import the default file system on the current disc") + ] + HRESULT ImportFileSystem([out,ref,retval] FsiFileSystems *importedFileSystem); + + [ ////////////////////////////////////////////////////////////////////////// + id(22), + helpstring("Import a specific file system on the current disc") + ] + HRESULT ImportSpecificFileSystem([in] FsiFileSystems fileSystemToUse); + + [ ////////////////////////////////////////////////////////////////////////// + id(23), + helpstring("Roll back to the specified change point") + ] + HRESULT RollbackToChangePoint([in] LONG changePoint); + + [ ////////////////////////////////////////////////////////////////////////// + id(24), + helpstring("Lock in changes") + ] + HRESULT LockInChangePoint(); + + [ ////////////////////////////////////////////////////////////////////////// + id(25), + helpstring("Create a directory item with the specified name") + ] + HRESULT CreateDirectoryItem([in] BSTR name, [out,ref,retval] IFsiDirectoryItem **newItem ); + + [ ////////////////////////////////////////////////////////////////////////// + id(26), + helpstring("Create a file item with the specified name") + ] + HRESULT CreateFileItem([in] BSTR name, [out,ref,retval] IFsiFileItem **newItem ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(27), + helpstring("Volume name") + ] + HRESULT VolumeNameUDF([out,ref,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(28), + helpstring("Volume name") + ] + HRESULT VolumeNameJoliet([out,ref,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(29), + helpstring("Volume name") + ] + HRESULT VolumeNameISO9660([out,ref,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(30), + helpstring("Indicates whether or not IMAPI should stage the filesystem before the burn") + ] + HRESULT StageFiles([out,ref,retval] VARIANT_BOOL *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(30), + helpstring("Set to false to force IMAPI to not stage the filesystem prior to the burn") + ] + HRESULT StageFiles([in] VARIANT_BOOL newVal); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(40), + helpstring("Get array of available multi-session interfaces.") + ] + HRESULT MultisessionInterfaces([out,ref,retval] SAFEARRAY(VARIANT) *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(40), + helpstring("Set array of available multi-session interfaces.") + ] + HRESULT MultisessionInterfaces([in] SAFEARRAY(VARIANT) newVal); +}; + +[ + object, pointer_default(unique), + dual, oleautomation, + uuid(D7644B2C-1537-4767-B62F-F1387B02DDFD), + helpstring("File system image (rev.2)") +] +interface IFileSystemImage2 : IFileSystemImage +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(60), + helpstring("Get boot options array for supporting multi-boot") + ] + HRESULT BootImageOptionsArray([out,ref,retval] SAFEARRAY(VARIANT) *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(60), + helpstring("Set boot options array for supporting multi-boot") + ] + HRESULT BootImageOptionsArray([in] SAFEARRAY(VARIANT) newVal); +} + +[ + object, pointer_default(unique), + dual, oleautomation, + uuid(7CFF842C-7E97-4807-8304-910DD8F7C051), + helpstring("File system image (rev.3)") +] +interface IFileSystemImage3 : IFileSystemImage2 +{ + [ ////////////////////////////////////////////////////////////////////////// + propget, id(61), + helpstring("If true, indicates that UDF Metadata and Metadata Mirror " + "files are truly redundant, i.e. reference different extents") + ] + HRESULT CreateRedundantUdfMetadataFiles([out,ref,retval] VARIANT_BOOL *pVal); + + [ ////////////////////////////////////////////////////////////////////////// + propput, id(61), + helpstring("Set to true to force UDF Metadata and Metadata Mirror files " + "to be truly redundant, i.e. reference different extents") + ] + HRESULT CreateRedundantUdfMetadataFiles([in] VARIANT_BOOL newVal); + + [ ////////////////////////////////////////////////////////////////////////// + id(70), + helpstring("Probe if a specific file system on the disc is appendable through IMAPI") + ] + HRESULT ProbeSpecificFileSystem([in] FsiFileSystems fileSystemToProbe, [out,ref,retval] VARIANT_BOOL *isAppendable); +}; + +//////////////////////////////////////////////////////////////////////////////// + +cpp_quote("#define DISPID_DFILESYSTEMIMAGEEVENTS_UPDATE 0x100") +[ + object, nonextensible, + oleautomation, + uuid(2C941FDF-975B-59BE-A960-9A2A262853A5), + pointer_default(unique), + helpstring("Provides notification of file system creation progress") +] +interface DFileSystemImageEvents : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + id(0x100), + helpstring("File Import Progress") + ] + HRESULT Update([in] IDispatch /* IFileSystemImage */ * object, + [in] BSTR currentFile, + [in] LONG copiedSectors, + [in] LONG totalSectors); +} + +cpp_quote("#define DISPID_DFILESYSTEMIMAGEIMPORTEVENTS_UPDATEIMPORT 0x101") +[ + object, nonextensible, + oleautomation, + uuid(D25C30F9-4087-4366-9E24-E55BE286424B), + pointer_default(unique), + helpstring("Provides notification of file system import progress") +] +interface DFileSystemImageImportEvents : IDispatch +{ + [ ////////////////////////////////////////////////////////////////////////// + id(0x101), + helpstring("File System Import Progress") + ] + HRESULT UpdateImport([in] IDispatch /* IFileSystemImage3 */ *object, + [in] FsiFileSystems fileSystem, + [in] BSTR currentItem, + [in] LONG importedDirectoryItems, + [in] LONG totalDirectoryItems, + [in] LONG importedFileItems, + [in] LONG totalFileItems); +} + +[ + object, + uuid(6CA38BE5-FBBB-4800-95A1-A438865EB0D4), + pointer_default(unique), + helpstring("ISO Image Manager: Helper object for ISO image file manipulation") +] +interface IIsoImageManager : IDispatch +{ + //// PROPERTIES //// + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x100), + helpstring("Path to the ISO image file") + ] + HRESULT Path( [out,ref,retval] BSTR *pVal ); + + [ ////////////////////////////////////////////////////////////////////////// + propget, id(0x101), + helpstring("Stream from the ISO image") + ] + HRESULT Stream( [out,retval] IStream** data ); + + //// METHODS //// + + [ ////////////////////////////////////////////////////////////////////////// + id(0x200), + helpstring("Set path to the ISO image file, overwrites stream") + ] + HRESULT SetPath( [in] BSTR Val ); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x201), + helpstring("Set stream from the ISO image, overwrites path") + ] + HRESULT SetStream( [in] IStream* data ); + + [ ////////////////////////////////////////////////////////////////////////// + id(0x202), + helpstring("Validate if the ISO image file is a valid file") + ] + HRESULT Validate(); +} +//////////////////////////////////////////////////////////////////////////////// + +cpp_quote("") +cpp_quote("//") +cpp_quote("// IMAPIv2 FileSystemImaging version information for TYPELib loading") +cpp_quote("//") +cpp_quote("#define IMAPI2FS_MajorVersion 1 " ) +cpp_quote("#define IMAPI2FS_MinorVersion 0 " ) +cpp_quote("#define IMAPI2FS_FullVersion_STR \"1.0\"") +cpp_quote("#define IMAPI2FS_FullVersion_WSTR L\"1.0\"") + +[ + version(1.0), + uuid(2C941FD0-975B-59BE-A960-9A2A262853A5), + helpstring("Microsoft IMAPI2 File System Image Creator") +] +library IMAPI2FS +{ + importlib("stdole2.tlb"); + + interface DFileSystemImageEvents; + interface DFileSystemImageImportEvents; + + [ + uuid(2C941FCE-975B-59BE-A960-9A2A262853A5), + helpstring("Boot options") + ] + coclass BootOptions + { + [default] interface IBootOptions; + }; + + [ + noncreatable, + uuid(2C941FCD-975B-59BE-A960-9A2A262853A5), + helpstring("Stream") + ] + coclass FsiStream { + [default] interface IStream; + }; + + [ + noncreatable, + uuid(2C941FCC-975B-59BE-A960-9A2A262853A5), + helpstring("FileSystemImage result stream") + ] + coclass FileSystemImageResult { + [default] interface IFileSystemImageResult2; + interface IFileSystemImageResult; + }; + + [ + noncreatable, + uuid(2C941FCB-975B-59BE-A960-9A2A262853A5), + helpstring("Progress item block mapping") + ] + coclass ProgressItem { + [default] interface IProgressItem; + }; + + [ + noncreatable, + uuid(2C941FCA-975B-59BE-A960-9A2A262853A5), + helpstring("Progress item block mapping enumerator") + ] + coclass EnumProgressItems { + [default] interface IEnumProgressItems; + }; + + [ + noncreatable, + uuid(2C941FC9-975B-59BE-A960-9A2A262853A5), + helpstring("Progress item block mapping collection") + ] + coclass ProgressItems { + [default] interface IProgressItems; + }; + + [ + noncreatable, + uuid(2C941FC8-975B-59BE-A960-9A2A262853A5), + helpstring("Directory item") + ] + coclass FsiDirectoryItem { + [default] interface IFsiDirectoryItem2; + interface IFsiDirectoryItem; + interface IFsiItem; + }; + + [ + noncreatable, + uuid(2C941FC7-975B-59BE-A960-9A2A262853A5), + helpstring("File item") + ] + coclass FsiFileItem { + [default] interface IFsiFileItem2; + interface IFsiFileItem; + interface IFsiItem; + }; + + [ + noncreatable, + uuid(2C941FC6-975B-59BE-A960-9A2A262853A5), + helpstring("FileSystemImage item enumerator") + ] + coclass EnumFsiItems { + [default] interface IEnumFsiItems; + }; + + [ + noncreatable, + uuid(C6B6F8ED-6D19-44b4-B539-B159B793A32D), + helpstring("Named stream collection") + ] + coclass FsiNamedStreams { + [default] interface IFsiNamedStreams; + }; + + [ + uuid(2C941FC5-975B-59BE-A960-9A2A262853A5), + helpstring("File system image") + ] + coclass MsftFileSystemImage { + [default] interface IFileSystemImage3; + interface IFileSystemImage2; + [default,source] interface DFileSystemImageEvents; + [source] interface DFileSystemImageImportEvents; + interface IConnectionPointContainer; + interface IFileSystemImage; + }; + + [ + uuid(CEEE3B62-8F56-4056-869B-EF16917E3EFC), + helpstring("Microsoft IMAPIv2 Iso Image Manager"), + ] + coclass MsftIsoImageManager + { + [default] interface IIsoImageManager; + }; + + [ + noncreatable, + uuid(B507CA27-2204-11DD-966A-001AA01BBC58), + helpstring("A range of LBAs") + ] + coclass BlockRange { + [default] interface IBlockRange; + }; + [ + noncreatable, + uuid(B507CA28-2204-11DD-966A-001AA01BBC58), + helpstring("A list of LBA ranges") + ] + coclass BlockRangeList { + [default] interface IBlockRangeList; + }; +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2fserror.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2fserror.h new file mode 100644 index 0000000000000000000000000000000000000000..1b5026262cc8d8e68158356584bd6e59a8e29cbf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapi2fserror.h @@ -0,0 +1,644 @@ +// FileSystemImageMsg.h + +// Help for constructing this file was provided by +// ms-help://MS.MSDNQTR.2003FEB.1033/tools/tools/about_message_text_files.htm +// Refer to this documentation for message text syntax. +#pragma once +//Since the message codes are also included in the header file produced from the .idl, don't include them here +#ifndef _SKIP_FSI_ERROR_MESSAGE_CODES +// ----- Catch-all error(s) -- should not actually occur, indicative of internal state error -------- +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +-+-+-+-+-+---------------------+-------------------------------+ +// |S|R|C|N|r| Facility | Code | +// +-+-+-+-+-+---------------------+-------------------------------+ +// +// where +// +// S - Severity - indicates success/fail +// +// 0 - Success +// 1 - Fail (COERROR) +// +// R - reserved portion of the facility code, corresponds to NT's +// second severity bit. +// +// C - reserved portion of the facility code, corresponds to NT's +// C field. +// +// N - reserved portion of the facility code. Used to indicate a +// mapped NT status value. +// +// r - reserved portion of the facility code. Reserved for internal +// use. Used to indicate HRESULT values that are not status +// values, but are instead message ids for display strings. +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_IMAPI2 0xAA + + +// +// Define the severity codes +// + + +// +// MessageId: IMAPI_E_FSI_INTERNAL_ERROR +// +// MessageText: +// +// Internal file system error occurred. +// +#define IMAPI_E_FSI_INTERNAL_ERROR ((HRESULT)0xC0AAB100L) + +// ---------------- Miscellenous interface errors ------------------ +// +// MessageId: IMAPI_E_INVALID_PARAM +// +// MessageText: +// +// The value specified for parameter '%1!ls!' is not valid. +// +#define IMAPI_E_INVALID_PARAM ((HRESULT)0xC0AAB101L) + +// NOTE: the quote characters delimiting the parameter name are used by the Managed Shim +// to parse the parameter name from the message text for exception handling +// Don't remove or change these quote-delimiters w/o also changing the exception mapping +// in the managed shim. +// +// MessageId: IMAPI_E_READONLY +// +// MessageText: +// +// FileSystemImage object is in read only mode. +// +#define IMAPI_E_READONLY ((HRESULT)0xC0AAB102L) + +// +// MessageId: IMAPI_E_NO_OUTPUT +// +// MessageText: +// +// No output file system specified. +// +#define IMAPI_E_NO_OUTPUT ((HRESULT)0xC0AAB103L) + +// +// MessageId: IMAPI_E_INVALID_VOLUME_NAME +// +// MessageText: +// +// The specified Volume Identifier is either too long or contains one or more invalid characters. +// +#define IMAPI_E_INVALID_VOLUME_NAME ((HRESULT)0xC0AAB104L) + +// +// MessageId: IMAPI_E_INVALID_DATE +// +// MessageText: +// +// Invalid file dates. %1!ls! time is earlier than %2!ls! time. +// +#define IMAPI_E_INVALID_DATE ((HRESULT)0xC0AAB105L) + +// +// MessageId: IMAPI_E_FILE_SYSTEM_NOT_EMPTY +// +// MessageText: +// +// The file system must be empty for this function. +// +#define IMAPI_E_FILE_SYSTEM_NOT_EMPTY ((HRESULT)0xC0AAB106L) + +// ---------------- Errors associated with state of item ------------------ +// +// MessageId: IMAPI_E_NOT_FILE +// +// MessageText: +// +// Specified path '%1!ls!' does not identify a file. +// +#define IMAPI_E_NOT_FILE ((HRESULT)0xC0AAB108L) + +// +// MessageId: IMAPI_E_NOT_DIR +// +// MessageText: +// +// Specified path '%1!ls!' does not identify a directory. +// +#define IMAPI_E_NOT_DIR ((HRESULT)0xC0AAB109L) + +// +// MessageId: IMAPI_E_DIR_NOT_EMPTY +// +// MessageText: +// +// The directory '%1!s!' is not empty. +// +#define IMAPI_E_DIR_NOT_EMPTY ((HRESULT)0xC0AAB10AL) + +// +// MessageId: IMAPI_E_NOT_IN_FILE_SYSTEM +// +// MessageText: +// +// '%1!ls!' is not part of the file system. It must be added to complete this operation. +// +#define IMAPI_E_NOT_IN_FILE_SYSTEM ((HRESULT)0xC0AAB10BL) + +// ---------------- Errors associated with file/directory naming problems ------------------ +// +// MessageId: IMAPI_E_INVALID_PATH +// +// MessageText: +// +// Path '%1!s!' is badly formed or contains invalid characters. +// +#define IMAPI_E_INVALID_PATH ((HRESULT)0xC0AAB110L) + +// +// MessageId: IMAPI_E_RESTRICTED_NAME_VIOLATION +// +// MessageText: +// +// The name '%1!ls!' specified is not legal: Name of file or directory object created while the UseRestrictedCharacterSet property is set may only contain ANSI characters. +// +#define IMAPI_E_RESTRICTED_NAME_VIOLATION ((HRESULT)0xC0AAB111L) + +// +// MessageId: IMAPI_E_DUP_NAME +// +// MessageText: +// +// '%1!ls!' name already exists. +// +#define IMAPI_E_DUP_NAME ((HRESULT)0xC0AAB112L) + +// +// MessageId: IMAPI_E_NO_UNIQUE_NAME +// +// MessageText: +// +// Attempt to add '%1!ls!' failed: cannot create a file-system-specific unique name for the %2!ls! file system. +// +#define IMAPI_E_NO_UNIQUE_NAME ((HRESULT)0xC0AAB113L) + +// -------------- Errors reported when specified item not found in hierarchy --------------- +// +// MessageId: IMAPI_E_ITEM_NOT_FOUND +// +// MessageText: +// +// Cannot find item '%1!ls!' in FileSystemImage hierarchy. +// +#define IMAPI_E_ITEM_NOT_FOUND ((HRESULT)0xC0AAB118L) + +// +// MessageId: IMAPI_E_FILE_NOT_FOUND +// +// MessageText: +// +// The file '%1!s!' not found in FileSystemImage hierarchy. +// +#define IMAPI_E_FILE_NOT_FOUND ((HRESULT)0xC0AAB119L) + +// +// MessageId: IMAPI_E_DIR_NOT_FOUND +// +// MessageText: +// +// The directory '%1!s!' not found in FileSystemImage hierarchy. +// +#define IMAPI_E_DIR_NOT_FOUND ((HRESULT)0xC0AAB11AL) + +// ---------------- Image-size exceeds limit errors ------------------ +// +// MessageId: IMAPI_E_IMAGE_SIZE_LIMIT +// +// MessageText: +// +// Adding '%1!ls!' would result in a result image having a size larger than the current configured limit. +// +#define IMAPI_E_IMAGE_SIZE_LIMIT ((HRESULT)0xC0AAB120L) + +// +// MessageId: IMAPI_E_IMAGE_TOO_BIG +// +// MessageText: +// +// Value specified for FreeMediaBlocks property is too small for estimated image size based on current data. +// +#define IMAPI_E_IMAGE_TOO_BIG ((HRESULT)0xC0AAB121L) + +// ---------------- User file-data stream errors ------------------ +// +// MessageId: IMAPI_E_DATA_STREAM_INCONSISTENCY +// +// MessageText: +// +// Data stream supplied for file '%1!ls!' is inconsistent: expected %2!I64d! bytes, found %3!I64d!. +// +#define IMAPI_E_DATA_STREAM_INCONSISTENCY ((HRESULT)0xC0AAB128L) + +// +// MessageId: IMAPI_E_DATA_STREAM_READ_FAILURE +// +// MessageText: +// +// Cannot read data from stream supplied for file '%1!ls!'. +// +#define IMAPI_E_DATA_STREAM_READ_FAILURE ((HRESULT)0xC0AAB129L) + +// +// MessageId: IMAPI_E_DATA_STREAM_CREATE_FAILURE +// +// MessageText: +// +// The following error was encountered when trying to create data stream for '%1!ls!': +// +#define IMAPI_E_DATA_STREAM_CREATE_FAILURE ((HRESULT)0xC0AAB12AL) + +// +// MessageId: IMAPI_E_DIRECTORY_READ_FAILURE +// +// MessageText: +// +// The following error was encountered when trying to enumerate files in directory '%1!ls!': +// +#define IMAPI_E_DIRECTORY_READ_FAILURE ((HRESULT)0xC0AAB12BL) + +// ---------------- FileSystem-specific limitations ------------------ +// +// MessageId: IMAPI_E_TOO_MANY_DIRS +// +// MessageText: +// +// This file system image has too many directories for the %1!ls! file system. +// +#define IMAPI_E_TOO_MANY_DIRS ((HRESULT)0xC0AAB130L) + +// +// MessageId: IMAPI_E_ISO9660_LEVELS +// +// MessageText: +// +// ISO9660 is limited to 8 levels of directories. +// +#define IMAPI_E_ISO9660_LEVELS ((HRESULT)0xC0AAB131L) + +// +// MessageId: IMAPI_E_DATA_TOO_BIG +// +// MessageText: +// +// Data file is too large for '%1!ls!' file system. +// +#define IMAPI_E_DATA_TOO_BIG ((HRESULT)0xC0AAB132L) + +// +// MessageId: IMAPI_E_INCOMPATIBLE_PREVIOUS_SESSION +// +// MessageText: +// +// Operation failed because of incompatible layout of the previous session imported from the medium. +// +#define IMAPI_E_INCOMPATIBLE_PREVIOUS_SESSION ((HRESULT)0xC0AAB133L) + +// ---------------- Errors associated with stash-file operations ------------------ +// +// MessageId: IMAPI_E_STASHFILE_OPEN_FAILURE +// +// MessageText: +// +// Cannot initialize %1!ls! stash file. +// +#define IMAPI_E_STASHFILE_OPEN_FAILURE ((HRESULT)0xC0AAB138L) + +// +// MessageId: IMAPI_E_STASHFILE_SEEK_FAILURE +// +// MessageText: +// +// Error seeking in '%1!ls!' stash file. +// +#define IMAPI_E_STASHFILE_SEEK_FAILURE ((HRESULT)0xC0AAB139L) + +// +// MessageId: IMAPI_E_STASHFILE_WRITE_FAILURE +// +// MessageText: +// +// Error encountered writing to '%1!ls!' stash file. +// +#define IMAPI_E_STASHFILE_WRITE_FAILURE ((HRESULT)0xC0AAB13AL) + +// +// MessageId: IMAPI_E_STASHFILE_READ_FAILURE +// +// MessageText: +// +// Error encountered reading from '%1!ls!' stash file. +// +#define IMAPI_E_STASHFILE_READ_FAILURE ((HRESULT)0xC0AAB13BL) + +// ---------------- Errors associated with attempt to set working directory ------------------ +// +// MessageId: IMAPI_E_INVALID_WORKING_DIRECTORY +// +// MessageText: +// +// The working directory '%1!ls!' is not valid. +// +#define IMAPI_E_INVALID_WORKING_DIRECTORY ((HRESULT)0xC0AAB140L) + +// +// MessageId: IMAPI_E_WORKING_DIRECTORY_SPACE +// +// MessageText: +// +// Cannot set working directory to '%1!ls!'. Space available is %2!I64d! bytes, approximately %3!I64d! bytes required. +// +#define IMAPI_E_WORKING_DIRECTORY_SPACE ((HRESULT)0xC0AAB141L) + +// +// MessageId: IMAPI_E_STASHFILE_MOVE +// +// MessageText: +// +// Attempt to move the data stash file to directory '%1!ls!' was not successful. +// +#define IMAPI_E_STASHFILE_MOVE ((HRESULT)0xC0AAB142L) + +// ---------------- Errors associated with Boot Image object ------------------ +// +// MessageId: IMAPI_E_BOOT_IMAGE_DATA +// +// MessageText: +// +// The boot object could not be added to the image. +// +#define IMAPI_E_BOOT_IMAGE_DATA ((HRESULT)0xC0AAB148L) + +// +// MessageId: IMAPI_E_BOOT_OBJECT_CONFLICT +// +// MessageText: +// +// A boot object can only be included in an initial disc image. +// +#define IMAPI_E_BOOT_OBJECT_CONFLICT ((HRESULT)0xC0AAB149L) + +// +// MessageId: IMAPI_E_BOOT_EMULATION_IMAGE_SIZE_MISMATCH +// +// MessageText: +// +// The emulation type requested does not match the boot image size. +// +#define IMAPI_E_BOOT_EMULATION_IMAGE_SIZE_MISMATCH ((HRESULT)0xC0AAB14AL) + +// ---------------- Errors associated with import operation ------------------ +// +// MessageId: IMAPI_E_EMPTY_DISC +// +// MessageText: +// +// Optical media is empty. +// +#define IMAPI_E_EMPTY_DISC ((HRESULT)0xC0AAB150L) + +// +// MessageId: IMAPI_E_NO_SUPPORTED_FILE_SYSTEM +// +// MessageText: +// +// The specified disc does not contain one of the supported file systems. +// +#define IMAPI_E_NO_SUPPORTED_FILE_SYSTEM ((HRESULT)0xC0AAB151L) + +// +// MessageId: IMAPI_E_FILE_SYSTEM_NOT_FOUND +// +// MessageText: +// +// The specified disc does not contain a '%1!ls!' file system. +// +#define IMAPI_E_FILE_SYSTEM_NOT_FOUND ((HRESULT)0xC0AAB152L) + +// +// MessageId: IMAPI_E_FILE_SYSTEM_READ_CONSISTENCY_ERROR +// +// MessageText: +// +// Consistency error encountered while importing the '%1!ls!' file system. +// +#define IMAPI_E_FILE_SYSTEM_READ_CONSISTENCY_ERROR ((HRESULT)0xC0AAB153L) + +// +// MessageId: IMAPI_E_FILE_SYSTEM_FEATURE_NOT_SUPPORTED +// +// MessageText: +// +// The '%1!ls!'file system on the selected disc contains a feature not supported for import. +// +#define IMAPI_E_FILE_SYSTEM_FEATURE_NOT_SUPPORTED ((HRESULT)0xC0AAB154L) + +// +// MessageId: IMAPI_E_IMPORT_TYPE_COLLISION_FILE_EXISTS_AS_DIRECTORY +// +// MessageText: +// +// Could not import %2!ls! file system from disc. The file '%1!ls!' already exists within the image hierarchy as a directory. +// +#define IMAPI_E_IMPORT_TYPE_COLLISION_FILE_EXISTS_AS_DIRECTORY ((HRESULT)0xC0AAB155L) + +// +// MessageId: IMAPI_E_IMPORT_SEEK_FAILURE +// +// MessageText: +// +// Cannot seek to block %1!I64d! on source disc. +// +#define IMAPI_E_IMPORT_SEEK_FAILURE ((HRESULT)0xC0AAB156L) + +// +// MessageId: IMAPI_E_IMPORT_READ_FAILURE +// +// MessageText: +// +// Import from previous session failed due to an error reading a block on the media (most likely block %1!u!). +// +#define IMAPI_E_IMPORT_READ_FAILURE ((HRESULT)0xC0AAB157L) + +// +// MessageId: IMAPI_E_DISC_MISMATCH +// +// MessageText: +// +// Current disc is not the same one from which file system was imported. +// +#define IMAPI_E_DISC_MISMATCH ((HRESULT)0xC0AAB158L) + +// +// MessageId: IMAPI_E_IMPORT_MEDIA_NOT_ALLOWED +// +// MessageText: +// +// IMAPI does not allow multi-session with the current media type. +// +#define IMAPI_E_IMPORT_MEDIA_NOT_ALLOWED ((HRESULT)0xC0AAB159L) + +// +// MessageId: IMAPI_E_UDF_NOT_WRITE_COMPATIBLE +// +// MessageText: +// +// IMAPI can not do multi-session with the current media because it does not support a compatible UDF revision for write. +// +#define IMAPI_E_UDF_NOT_WRITE_COMPATIBLE ((HRESULT)0xC0AAB15AL) + +// +// MessageId: IMAPI_E_INCOMPATIBLE_MULTISESSION_TYPE +// +// MessageText: +// +// IMAPI does not support the multisession type requested. +// +#define IMAPI_E_INCOMPATIBLE_MULTISESSION_TYPE ((HRESULT)0xC0AAB15BL) + +// +// MessageId: IMAPI_E_NO_COMPATIBLE_MULTISESSION_TYPE +// +// MessageText: +// +// IMAPI supports none of the multisession type(s) provided on the current media. +// +#define IMAPI_E_NO_COMPATIBLE_MULTISESSION_TYPE ((HRESULT)0xC0AAB15CL) + +// +// MessageId: IMAPI_E_MULTISESSION_NOT_SET +// +// MessageText: +// +// MultisessionInterfaces property must be set prior calling this method. +// +#define IMAPI_E_MULTISESSION_NOT_SET ((HRESULT)0xC0AAB15DL) + +// +// MessageId: IMAPI_E_IMPORT_TYPE_COLLISION_DIRECTORY_EXISTS_AS_FILE +// +// MessageText: +// +// Could not import %2!ls! file system from disc. The directory '%1!ls!' already exists within the image hierarchy as a file. +// +#define IMAPI_E_IMPORT_TYPE_COLLISION_DIRECTORY_EXISTS_AS_FILE ((HRESULT)0xC0AAB15EL) + +// +// MessageId: IMAPI_S_IMAGE_FEATURE_NOT_SUPPORTED +// +// MessageText: +// +// Feature is not supported for the current file system revision, image will be created without this feature. +// +#define IMAPI_S_IMAGE_FEATURE_NOT_SUPPORTED ((HRESULT)0x00AAB15FL) + +// +// MessageId: IMAPI_E_PROPERTY_NOT_ACCESSIBLE +// +// MessageText: +// +// Property '%1!ls!' is not accessible +// +#define IMAPI_E_PROPERTY_NOT_ACCESSIBLE ((HRESULT)0xC0AAB160L) + +// +// MessageId: IMAPI_E_UDF_REVISION_CHANGE_NOT_ALLOWED +// +// MessageText: +// +// UDF revision cannot be changed because of the previously imported session +// +#define IMAPI_E_UDF_REVISION_CHANGE_NOT_ALLOWED ((HRESULT)0xC0AAB161L) + +// +// MessageId: IMAPI_E_BAD_MULTISESSION_PARAMETER +// +// MessageText: +// +// One of the multisession parameters cannot be retrieved or has a wrong value. +// +#define IMAPI_E_BAD_MULTISESSION_PARAMETER ((HRESULT)0xC0AAB162L) + +// +// MessageId: IMAPI_E_FILE_SYSTEM_CHANGE_NOT_ALLOWED +// +// MessageText: +// +// You cannot change the file system to be created, because the file system in the imported session and the one in the new session must match. +// +#define IMAPI_E_FILE_SYSTEM_CHANGE_NOT_ALLOWED ((HRESULT)0xC0AAB163L) + +// ------ Error messages for IIsoImageManager (range: 0x80AAB200 - 0x80AAB2FF) ------ +// +// MessageId: IMAPI_E_IMAGEMANAGER_IMAGE_NOT_ALIGNED +// +// MessageText: +// +// The image is not 2kb aligned. Only 2048 bytes aligned images are supported. +// +#define IMAPI_E_IMAGEMANAGER_IMAGE_NOT_ALIGNED ((HRESULT)0xC0AAB200L) + +// +// MessageId: IMAPI_E_IMAGEMANAGER_NO_VALID_VD_FOUND +// +// MessageText: +// +// No valid file system Volume Descriptor was found in the iso image. This image format is not supported and the resulting disc might not be readable. +// +#define IMAPI_E_IMAGEMANAGER_NO_VALID_VD_FOUND ((HRESULT)0xC0AAB201L) + +// +// MessageId: IMAPI_E_IMAGEMANAGER_NO_IMAGE +// +// MessageText: +// +// No image was set (neither path nor stream was given). +// +#define IMAPI_E_IMAGEMANAGER_NO_IMAGE ((HRESULT)0xC0AAB202L) + +// +// MessageId: IMAPI_E_IMAGEMANAGER_IMAGE_TOO_BIG +// +// MessageText: +// +// Image size exceeds MAXLONG sectors - too big. +// +#define IMAPI_E_IMAGEMANAGER_IMAGE_TOO_BIG ((HRESULT)0xC0AAB203L) + +// ----------- Empty message, should not occur, used for internal purposes ------------------ +// +// MessageId: 0x0000FFFFL (No symbolic name defined) +// +// MessageText: +// +// (empty message) +// + + +#endif // #ifndef _SKIP_FSI_ERROR_MESSAGE_CODES +#define IMAPI_ERROR_FIRST (unsigned int)0xB100 +#define IMAPI_ERROR_LAST (unsigned int)0xB2FF +#define IMAPIError(hr) ((HRESULT_FACILITY(hr) == FACILITY_IMAPI2) && (HRESULT_CODE(hr) <= IMAPI_ERROR_LAST) && (HRESULT_CODE(hr) >= IMAPI_ERROR_FIRST)) +#define IMAPI_FSI_ERROR_FIRST (unsigned int)0xB100 +#define IMAPI_FSI_ERROR_LAST (unsigned int)0xB2FF +#define IMAPIFsiError(hr) ((HRESULT_FACILITY(hr) == FACILITY_IMAPI2) && (HRESULT_CODE(hr) <= IMAPI_FSI_ERROR_LAST) && (HRESULT_CODE(hr) >= IMAPI_FSI_ERROR_FIRST)) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapierror.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapierror.h new file mode 100644 index 0000000000000000000000000000000000000000..f70071418ca3b99b2e869dd037c4ac49f793f53d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imapierror.h @@ -0,0 +1,56 @@ +/* Copyright (c) Microsoft Corporation. All rights reserved. */ + +#ifndef __IMAPIERROR_H_ +#define __IMAPIERROR_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include + +const HRESULT IMAPI_S_PROPERTIESIGNORED = MAKE_HRESULT( SEVERITY_SUCCESS, FACILITY_ITF, 0x200 + 0 ); +const HRESULT IMAPI_S_BUFFER_TO_SMALL = MAKE_HRESULT( SEVERITY_SUCCESS, FACILITY_ITF, 0x200 + 1 ); +const HRESULT IMAPI_E_NOTOPENED = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 11 ); +const HRESULT IMAPI_E_NOTINITIALIZED = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 12 ); +const HRESULT IMAPI_E_USERABORT = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 13 ); +const HRESULT IMAPI_E_GENERIC = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 14 ); +const HRESULT IMAPI_E_MEDIUM_NOTPRESENT = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 15 ); +const HRESULT IMAPI_E_MEDIUM_INVALIDTYPE = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 16 ); +const HRESULT IMAPI_E_DEVICE_NOPROPERTIES = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 17 ); +const HRESULT IMAPI_E_DEVICE_NOTACCESSIBLE = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 18 ); +const HRESULT IMAPI_E_DEVICE_NOTPRESENT = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 19 ); +const HRESULT IMAPI_E_DEVICE_INVALIDTYPE = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 20 ); +const HRESULT IMAPI_E_INITIALIZE_WRITE = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 21 ); +const HRESULT IMAPI_E_INITIALIZE_ENDWRITE = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 22 ); +const HRESULT IMAPI_E_FILESYSTEM = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 23 ); +const HRESULT IMAPI_E_FILEACCESS = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 24 ); +const HRESULT IMAPI_E_DISCINFO = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 25 ); +const HRESULT IMAPI_E_TRACKNOTOPEN = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 26 ); +const HRESULT IMAPI_E_TRACKOPEN = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 27 ); +const HRESULT IMAPI_E_DISCFULL = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 28 ); +const HRESULT IMAPI_E_BADJOLIETNAME = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 29 ); +const HRESULT IMAPI_E_INVALIDIMAGE = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 30 ); +const HRESULT IMAPI_E_NOACTIVEFORMAT = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 31 ); +const HRESULT IMAPI_E_NOACTIVERECORDER = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 32 ); +const HRESULT IMAPI_E_WRONGFORMAT = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 33 ); +const HRESULT IMAPI_E_ALREADYOPEN = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 34 ); +const HRESULT IMAPI_E_WRONGDISC = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 35 ); +const HRESULT IMAPI_E_FILEEXISTS = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 36 ); +const HRESULT IMAPI_E_STASHINUSE = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 37 ); +const HRESULT IMAPI_E_DEVICE_STILL_IN_USE = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 38 ); +const HRESULT IMAPI_E_LOSS_OF_STREAMING = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 39 ); +const HRESULT IMAPI_E_COMPRESSEDSTASH = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 40 ); +const HRESULT IMAPI_E_ENCRYPTEDSTASH = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 41 ); +const HRESULT IMAPI_E_NOTENOUGHDISKFORSTASH = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 42 ); +const HRESULT IMAPI_E_REMOVABLESTASH = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 43 ); +const HRESULT IMAPI_E_CANNOT_WRITE_TO_MEDIA = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 44 ); +const HRESULT IMAPI_E_TRACK_NOT_BIG_ENOUGH = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 45 ); +const HRESULT IMAPI_E_BOOTIMAGE_AND_NONBLANK_DISC = MAKE_HRESULT( SEVERITY_ERROR, FACILITY_ITF, 0x200 + 46 ); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ime_cmodes.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ime_cmodes.h new file mode 100644 index 0000000000000000000000000000000000000000..b75df3f21828dbd9df44b5d20f64c8e7aec9b1b8 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ime_cmodes.h @@ -0,0 +1,24 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#pragma once + +#ifndef _IME_CMODES_ +#define _IME_CMODES_ + +// bit field for conversion mode +#define IME_CMODE_ALPHANUMERIC 0x0000 +#define IME_CMODE_NATIVE 0x0001 +#define IME_CMODE_CHINESE IME_CMODE_NATIVE +#define IME_CMODE_HANGUL IME_CMODE_NATIVE +#define IME_CMODE_JAPANESE IME_CMODE_NATIVE +#define IME_CMODE_KATAKANA 0x0002 // only effect under IME_CMODE_NATIVE +#define IME_CMODE_LANGUAGE 0x0003 +#define IME_CMODE_FULLSHAPE 0x0008 +#define IME_CMODE_ROMAN 0x0010 +#define IME_CMODE_CHARCODE 0x0020 +#define IME_CMODE_HANJACONVERT 0x0040 +#define IME_CMODE_NATIVESYMBOL 0x0080 + +#endif /* _IME_CMODES_*/ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imepad.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imepad.h new file mode 100644 index 0000000000000000000000000000000000000000..5d990dd62793bce004d00d57a640020c6a841d7d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imepad.h @@ -0,0 +1,643 @@ +/****************************************************************************** +* * +* imepad.h - - Interface for the Windows IMEPAD, IMEPADAPPLET * +* * +* Version 15.0 * +* * +* Copyright (c) Microsoft Corporation. All Rights Reserved. * +* * +******************************************************************************/ + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +#ifndef _IME_PAD_H_ +#define _IME_PAD_H_ +#include +#include + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +//---------------------------------------------------------------- +// ImePadApplet's Category ID +//---------------------------------------------------------------- +// {4A0F8E31-C3EE-11d1-AFEF-00805F0C8B6D} +DEFINE_GUID(CATID_MSIME_IImePadApplet_VER7, +0x4a0f8e31, 0xc3ee, 0x11d1, 0xaf, 0xef, 0x0, 0x80, 0x5f, 0xc, 0x8b, 0x6d); + +//---------------------------------------------------------------- +// ImePadApplet's Category ID version 8.0.0 +//---------------------------------------------------------------- +// {56F7A792-FEF1-11d3-8463-00C04F7A06E5} +DEFINE_GUID(CATID_MSIME_IImePadApplet_VER80, +0x56f7a792, 0xfef1, 0x11d3, 0x84, 0x63, 0x0, 0xc0, 0x4f, 0x7a, 0x6, 0xe5); + +//---------------------------------------------------------------- +// ImePadApplet's Category ID version 8.1.0 +//---------------------------------------------------------------- +// {656520B0-BB88-11d4-84C0-00C04F7A06E5} +DEFINE_GUID(CATID_MSIME_IImePadApplet_VER81, +0x656520b0, 0xbb88, 0x11d4, 0x84, 0xc0, 0x0, 0xc0, 0x4f, 0x7a, 0x6, 0xe5); + +//---------------------------------------------------------------- +// ImePadApplet's Category ID version 9.0.0 +//---------------------------------------------------------------- +// {FAAE51BF-5E5B-4A1D-8DE1-17C1D9E1728D} +DEFINE_GUID(CATID_MSIME_IImePadApplet900, +0xfaae51bf, 0x5e5b, 0x4a1d, 0x8d, 0xe1, 0x17, 0xc1, 0xd9, 0xe1, 0x72, 0x8d); + +//---------------------------------------------------------------- +// ImePadApplet's Category ID version 10.0.0 +//---------------------------------------------------------------- +// {E081E1D6-2389-43cb-B66F-609F823D9F9C} +DEFINE_GUID(CATID_MSIME_IImePadApplet1000, +0xe081e1d6, 0x2389, 0x43cb, 0xb6, 0x6f, 0x60, 0x9f, 0x82, 0x3d, 0x9f, 0x9c); + +//---------------------------------------------------------------- +// ImePadApplet's Category ID version 12.0.0 +//---------------------------------------------------------------- +// {A47FB5FC-7D15-4223-A789-B781BF9AE667} +DEFINE_GUID(CATID_MSIME_IImePadApplet1200, +0xa47fb5fc, 0x7d15, 0x4223, 0xa7, 0x89, 0xb7, 0x81, 0xbf, 0x9a, 0xe6, 0x67); + +//---------------------------------------------------------------- +// ImePadApplet's Category ID version 14.0.0 +//---------------------------------------------------------------- +// {7566CAD1-4EC9-4478-9FE9-8ED766619EDF} +DEFINE_GUID(CATID_MSIME_IImePadApplet, +0x7566cad1, 0x4ec9, 0x4478, 0x9f, 0xe9, 0x8e, 0xd7, 0x66, 0x61, 0x9e, 0xdf); + +//---------------------------------------------------------------- +// Interface ID +//---------------------------------------------------------------- +// {5D8E643A-C3A9-11d1-AFEF-00805F0C8B6D} +DEFINE_GUID(IID_IImePad, +0x5d8e643a, 0xc3a9, 0x11d1, 0xaf, 0xef, 0x0, 0x80, 0x5f, 0xc, 0x8b, 0x6d); + +// {5D8E643B-C3A9-11d1-AFEF-00805F0C8B6D} +DEFINE_GUID(IID_IImePadApplet, +0x5d8e643b, 0xc3a9, 0x11d1, 0xaf, 0xef, 0x0, 0x80, 0x5f, 0xc, 0x8b, 0x6d); + +// {5D8E643C-C3A9-11d1-AFEF-00805F0C8B6D} +DEFINE_GUID(IID_IImeSpecifyApplets, +0x5d8e643c, 0xc3a9, 0x11d1, 0xaf, 0xef, 0x0, 0x80, 0x5f, 0xc, 0x8b, 0x6d); + + +#pragma pack(8) + +typedef struct tagAPPLETIDLIST { + INT count; + IID *pIIDList; +}APPLETIDLIST, *LPAPPLETIDLIST; + +//structure for IMEPADREQ_INSERTSTRINGCANDIDATE +typedef struct tagIMESTRINGCANDIDATE { + UINT uCount; + LPWSTR lpwstr[1]; +}IMESTRINGCANDIDATE, *LPIMESTRINGCANDIDATE; + +//structure for IMEPADREQ_INSERTITEMCANDIDATE +typedef struct tagIMEITEM { + INT cbSize; + INT iType; + LPVOID lpItemData; +}IMEITEM, *LPIMEITEM; + +typedef struct tagIMEITEMCANDIDATE { + UINT uCount; + IMEITEM imeItem[1]; +}IMEITEMCANDIDATE, *LPIMEITEMCANDIDATE; + +//---------------------------------------------------------------- +// Character Id in FarEast +//---------------------------------------------------------------- +#define FEID_NONE 0x00 +#define FEID_CHINESE_TRADITIONAL 0x01 +#define FEID_CHINESE_SIMPLIFIED 0x02 +#define FEID_CHINESE_HONGKONG 0x03 +#define FEID_CHINESE_SINGAPORE 0x04 +#define FEID_JAPANESE 0x05 +#define FEID_KOREAN 0x06 +#define FEID_KOREAN_JOHAB 0x07 + +//---------------------------------------------------------------- +// String with FarEast id +//---------------------------------------------------------------- +typedef struct tabIMESTRINGINFO { + DWORD dwFarEastId; + LPWSTR lpwstr; +}IMESTRINGINFO, *LPIMESTRINGINFO; +typedef const IMESTRINGINFO *LPCIMESTRINGINFO; + +#define INFOMASK_NONE 0x00000000 +#define INFOMASK_QUERY_CAND 0x00000001 +#define INFOMASK_APPLY_CAND 0x00000002 +#define INFOMASK_APPLY_CAND_EX 0x00000004 +#define INFOMASK_STRING_FIX 0x00010000 +#define INFOMASK_HIDE_CAND 0x00020000 +#define INFOMASK_BLOCK_CAND 0x00040000 + +//---------------------------------------------------------------- +//FarEast data type +//---------------------------------------------------------------- +#define IMEFAREASTINFO_TYPE_DEFAULT 0 +#define IMEFAREASTINFO_TYPE_READING 1 +#define IMEFAREASTINFO_TYPE_COMMENT 2 +#define IMEFAREASTINFO_TYPE_COSTTIME 3 + + +//---------------------------------------------------------------- +//FarEast specified data. +//---------------------------------------------------------------- +typedef struct tabIMEFAREASTINFO { + DWORD dwSize; //total structure size. + DWORD dwType; //Data type. + DWORD dwData[1]; //fareast spec data. +}IMEFAREASTINFO, *LPIMEFAREASTINFO; + +//---------------------------------------------------------------- +// String candidate info +//---------------------------------------------------------------- +typedef struct tagIMESTRINGCANDIDATEINFO { + DWORD dwFarEastId; + LPIMEFAREASTINFO lpFarEastInfo; + DWORD fInfoMask; + INT iSelIndex; + UINT uCount; + LPWSTR lpwstr[1]; +}IMESTRINGCANDIDATEINFO, *LPIMESTRINGCANDIDATEINFO; + +//---------------------------------------------------------------- +//Composition string's information +//---------------------------------------------------------------- +typedef struct tagIMECOMPOSITIONSTRINGINFO { + INT iCompStrLen; + INT iCaretPos; + INT iEditStart; + INT iEditLen; + INT iTargetStart; + INT iTargetLen; +}IMECOMPOSITIONSTRINGINFO, *LPIMECOMPOSITIONSTRINGINFO; + +//---------------------------------------------------------------- +//Composition string's each character +//---------------------------------------------------------------- +typedef struct tagIMECHARINFO { + WCHAR wch; + DWORD dwCharInfo; +}IMECHARINFO, *LPIMECHARINFO; + +//---------------------------------------------------------------- +//IMECHARINFO's dwCharInfo bit mask +//---------------------------------------------------------------- +#define CHARINFO_APPLETID_MASK 0xFF000000 +#define CHARINFO_FEID_MASK 0x00F00000 +#define CHARINFO_CHARID_MASK 0x0000FFFF + +#define APPLETIDFROMCHARINFO(charInfo) (((DWORD)(charInfo) & CHARINFO_APPLETID_MASK) >> 24) +#define FEIDFROMCHARINFO(charInfo) (((DWORD)(charInfo) & CHARINFO_FEID_MASK) >> 20) +#define CHARIDFROMCHARINFO(charInfo) ((DWORD)(charInfo) & CHARINFO_CHARID_MASK) + +//===== IImePadApplet Configuration =============================== +#define MAX_APPLETTITLE 64 +#define MAX_FONTFACE 32 +typedef struct tagAPPLETCFG { + DWORD dwConfig; //set combination of IPACFG_XXXX + WCHAR wchTitle[MAX_APPLETTITLE]; //set applet's title name; + WCHAR wchTitleFontFace[MAX_FONTFACE]; //set title's font face. + DWORD dwCharSet; //set character set. + INT iCategory; //set IPACID_XXXX + HICON hIcon; //set Icon Handle for ImePad Appelt's menu. + LANGID langID; //set Applet langID. + WORD dummy; + LPARAM lReserved1; +}IMEAPPLETCFG, *LPIMEAPPLETCFG; + +//---------------------------------------------------------------- +// APPLETCFG dwConfig mask +// +#define IPACFG_NONE 0x00000000L +#define IPACFG_PROPERTY 0x00000001L //Applet has property. +#define IPACFG_HELP 0x00000002L //Applet has help. +#define IPACFG_TITLE 0x00010000L //Title is set. +#define IPACFG_TITLEFONTFACE 0x00020000L //wchFontFace, dwCharSet is valid. +#define IPACFG_CATEGORY 0x00040000L //category has set. +#define IPACFG_LANG 0x00000010L //LangID has set. +//---------------------------------------------------------------- +// APPLETCFG iCategory +// +#define IPACID_NONE 0x0000 +#define IPACID_SOFTKEY 0x0001 +#define IPACID_HANDWRITING 0x0002 +#define IPACID_STROKESEARCH 0x0003 +#define IPACID_RADICALSEARCH 0x0004 +#define IPACID_SYMBOLSEARCH 0x0005 +#define IPACID_VOICE 0x0006 +#define IPACID_EPWING 0x0007 +#define IPACID_OCR 0x0008 +#define IPACID_CHARLIST 0x0009 +#define IPACID_USER 0x0100 + + +typedef struct tagIMEAPPLETUI { + HWND hwnd; //Window handle of Applet. + DWORD dwStyle; //set combination of IPAWS_XXX. + INT width; //set Applet's initial width. + INT height; //set Applet's initial height. + INT minWidth; //set min width. Valid only IPAWS_MINSIZEFIXED style has set. + INT minHeight; //set min height. Valid only IPAWS_MINSIZEFIXED style has set. + INT maxWidth; //set max width. Valid only IPAWS_MAXSIZEFIXED style has set. + INT maxHeight; //set max height. Valid only IPAWS_MAXSIZEFIXED style has set. + LPARAM lReserved1; //reserved area. + LPARAM lReserved2; //reserved area. +}IMEAPPLETUI, *LPIMEAPPLETUI; + +#pragma pack() + + +//Default insert position +#define IPR_DEFAULT_INSERTPOS ((WORD)0xFFFF) + + +//==== IImePad Request ID ========================================== +#define IMEPADREQ_FIRST 0x1000 +//---------------------------------------------------------------- +// IMEPADREQ_INSERTSTRING +// wParam = (WPARMA)(LPWSTR)lpwstr; //address of Unicode text string. +// lParam = 0; //not used. +//---------------------------------------------------------------- +#define IMEPADREQ_INSERTSTRING (IMEPADREQ_FIRST + 1) + +//---------------------------------------------------------------- +// IMEPADREQ_INSERTSTRINGCANDIDATE +// wParam = (WPARAM)(LPIMESTRINGCANDIDATE)lpStrCand; //address of IMESTRINGCANDIDATE +// lParam = 0; //not used. +//---------------------------------------------------------------- +#define IMEPADREQ_INSERTSTRINGCANDIDATE (IMEPADREQ_FIRST + 2) + +//---------------------------------------------------------------- +// IMEPADREQ_INSERTITEMCANDIDATE +// Not implemented in version 7.1.0 +// wParam = 0; +// lParam = 0; +//---------------------------------------------------------------- +#define IMEPADREQ_INSERTITEMCANDIDATE (IMEPADREQ_FIRST + 3) + +//---------------------------------------------------------------- +// IMEPADREQ_SENDCONTROL +// wParam = (WPARAM)imePadCtrl; //control code (IMEPADCTRL_XXXX) +// lParam = 0; //not used. +//---------------------------------------------------------------- +#define IMEPADREQ_SENDCONTROL (IMEPADREQ_FIRST + 4) + +//---------------------------------------------------------------- +// IMEPADREQ_SENDKEYCONTROL +// wParam = MAKEWPARAM(ctlMask, updown); +// ctlMask is IMEKEYCTRLMASK_XXX combination +// upDown is IMEKEYCTRL_UP or DOWN +// lParam = (LPARAM)wvKey; //Virtual keycode. +//---------------------------------------------------------------- +#define IMEPADREQ_SENDKEYCONTROL (IMEPADREQ_FIRST + 5) + +//---------------------------------------------------------------- +// IMEPADREQ_GETCOMPOSITIONSTRING +// wParam = (WPARAM)(LPWSTR)lpwstr; //address of Unicode string buffer. +// lParam = (LPARAM)(UINT)cchMax; //buffer max count. +//---------------------------------------------------------------- +#define IMEPADREQ_GETCOMPOSITIONSTRING (IMEPADREQ_FIRST + 6) + +//---------------------------------------------------------------- +// IMEPADREQ_GETSELECTEDSTRING +// Not implemented in version 6.0.0 +// wParam = 0; +// lParam = 0; +//---------------------------------------------------------------- +#define IMEPADREQ_GETSELECTEDSTRING (IMEPADREQ_FIRST + 7) + +//---------------------------------------------------------------- +// IMEPADREQ_SETAPPLETSIZE +// wParam = MAKEWPARAM(width, height); // Applet's width & height +// lParam = 0; // not used. +//---------------------------------------------------------------- +#define IMEPADREQ_SETAPPLETSIZE (IMEPADREQ_FIRST + 8) + +//---------------------------------------------------------------- +// IMEPADREQ_SETAPPLETDATA +// wParam = (WPARAM)(PBYTE)pByte; //address of applet's data. +// lParam = (LPARAM)(INT)size; //byte size of pByte. +//---------------------------------------------------------------- +#define IMEPADREQ_SETAPPLETDATA (IMEPADREQ_FIRST + 9) + +//---------------------------------------------------------------- +// IMEPADREQ_GETAPPLETDATA +// wParam = (WPARAM)(PBYTE)pByte; //address of applet's data. +// lParam = (LPARAM)(INT)size; //byte size of pByte. +//---------------------------------------------------------------- +#define IMEPADREQ_GETAPPLETDATA (IMEPADREQ_FIRST + 10) + +//---------------------------------------------------------------- +// IMEPADREQ_SETTITLEFONT +// wParam = (WPARAM)(LPWSTR)lpwstrFontFace; //FontFace name +// lParam = (LPARAM)(INT)charSet; //character set +//---------------------------------------------------------------- +#define IMEPADREQ_SETTITLEFONT (IMEPADREQ_FIRST + 11) + +//---------------------------------------------------------------- +// IMEPADREQ_GETCOMPOSITIONSTRINGINFO +// wParam = (WPARAM)(LPIMECOMPOSITIONSTRINGINFO)lpImeCompInfo. +// //IMECOMPOSITIONSTRINGINFO struct address. +// lParam = 0; //no use. +//---------------------------------------------------------------- +#define IMEPADREQ_GETCOMPOSITIONSTRINGINFO (IMEPADREQ_FIRST + 12) + +//---------------------------------------------------------------- +// IMEPADREQ_GETCOMPOSITIONSTRINGID +// wParam = (WPARAM)(LPIMECHARINFO)lpCharInfo; +// lParam = (LPARAM)(INT)dwMaxLen; +//---------------------------------------------------------------- +#define IMEPADREQ_GETCOMPOSITIONSTRINGID (IMEPADREQ_FIRST + 13) + +//---------------------------------------------------------------- +// IMEPADREQ_INSERTSTRINGCANDIDATEINFO +// wParam = (WPARAM)(LPIMESTRINGCANDIDATEINFO)lpCandInfo; +// lParam = (LPARAM)(WORD)wStartPos; +//---------------------------------------------------------------- +#define IMEPADREQ_INSERTSTRINGCANDIDATEINFO (IMEPADREQ_FIRST + 14) + +//---------------------------------------------------------------- +// IMEPADREQ_CHANGESTRINGCANDIDATEINFO +// wParam = (WPARAM)(LPIMESTRINGCANDIDATEINFO)lpCandInfo; +// lParam = MAKELPARAM(startPos, length); +//---------------------------------------------------------------- +#define IMEPADREQ_CHANGESTRINGCANDIDATEINFO (IMEPADREQ_FIRST + 15) + +//---------------------------------------------------------------- +// IMEPADREQ_DELETESTRING +// wParam = MAKEWPARAM(wStartPos, wLength); +// lParam = 0; //not used. +//---------------------------------------------------------------- +#define IMEPADREQ_DELETESTRING (IMEPADREQ_FIRST + 16) + +//---------------------------------------------------------------- +// IMEPADREQ_CHANGESTRING +// wParam = (WPARAM)(LPWSTR)lpwstr; +// lParam = MAKELPARAM(wStartPos, wLength); +//---------------------------------------------------------------- +#define IMEPADREQ_CHANGESTRING (IMEPADREQ_FIRST + 17) + +//---------------------------------------------------------------- +// IMEPADREQ_INSERTSTRINGINFO +// wParam = (WPARAM)(LPIMESTRINGINFO)lpStrInfo; +// lParam = dwStartPos +//---------------------------------------------------------------- +#define IMEPADREQ_INSERTSTRINGINFO (IMEPADREQ_FIRST + 18) + +//---------------------------------------------------------------- +// IMEPADREQ_CHANGESTRINGINFO +// wParam = (WPARAM)(LPIMESTRINGINFO)lpStrInfo; +// lParam = MAKELPARAM(wStartPos, wLength); +//---------------------------------------------------------------- +#define IMEPADREQ_CHANGESTRINGINFO (IMEPADREQ_FIRST + 19) + +//---------------------------------------------------------------- +// IMEPADREQ_GETAPPLHWND +// wParam = (WPARAM)(HWND *)lpHwnd; +// lParam = 0; not used. +//---------------------------------------------------------------- +#define IMEPADREQ_GETAPPLHWND (IMEPADREQ_FIRST + 20) + +//---------------------------------------------------------------- +// IMEPADREQ_FORCEIMEPADWINDOWSHOW +// wParam = (WPARAM)(BOOL)fShowForce +// lParam = 0; not used. +//---------------------------------------------------------------- +#define IMEPADREQ_FORCEIMEPADWINDOWSHOW (IMEPADREQ_FIRST + 21) + +//---------------------------------------------------------------- +// IMEPADREQ_POSTMODALNOTIFY +// wParam = (WPARAM)notifycode +// lParam = (LPARAM)dwData. +//---------------------------------------------------------------- +#define IMEPADREQ_POSTMODALNOTIFY (IMEPADREQ_FIRST + 22) + +//---------------------------------------------------------------- +// IMEPADREQ_GETDEFAULTUILANGID +// wParam = (WPARAM)(LANGID *)pLangID; +// lParam = 0; not used +//---------------------------------------------------------------- +#define IMEPADREQ_GETDEFAULTUILANGID (IMEPADREQ_FIRST + 23) + +//---------------------------------------------------------------- +// IMEPADREQ_GETCURRENTUILANGID +// wParam = (WPARAM)(LANGID *)pLangID; +// lParam = 0; not used +//---------------------------------------------------------------- +#define IMEPADREQ_GETCURRENTUILANGID (IMEPADREQ_FIRST + 24) + +//---------------------------------------------------------------- +// IMEPADREQ_GETAPPLETUISTYLE +// wParam = (WPARAM)(DWORD *)pdwStyle; +// lParam = 0; not used. +//---------------------------------------------------------------- +#define IMEPADREQ_GETAPPLETUISTYLE (IMEPADREQ_FIRST + 25) + +//---------------------------------------------------------------- +// IMEPADREQ_SETAPPLETUISTYLE +// wParam = (WPARAM)(DWORD)dwStyle; +// lParam = 0; not used. +//---------------------------------------------------------------- +#define IMEPADREQ_SETAPPLETUISTYLE (IMEPADREQ_FIRST + 26) + +//---------------------------------------------------------------- +// IMEPADREQ_ISAPPLETACTIVE +// wParam = (WPARAM)(BOOL *)pfActive; +// lParam = 0; not used. +//---------------------------------------------------------------- +#define IMEPADREQ_ISAPPLETACTIVE (IMEPADREQ_FIRST + 27) + +//---------------------------------------------------------------- +// IMEPADREQ_ISIMEPADWINDOWVISIBLE +// wParam = (WPARAM)(BOOL *)pfVisible; +// lParam = 0; not used. +//---------------------------------------------------------------- +#define IMEPADREQ_ISIMEPADWINDOWVISIBLE (IMEPADREQ_FIRST + 28) + +//---------------------------------------------------------------- +// IMEPADREQ_SETAPPLETMINMAXSIZE +// wParam = MAKEWPARAM(width, height); // Applet's width & height +// lParam = MAKELPARAM(fMax, fNoMove); // Set Max size or Min size, +// // And move or not move. +//---------------------------------------------------------------- +#define IMEPADREQ_SETAPPLETMINMAXSIZE (IMEPADREQ_FIRST + 29) + +//---------------------------------------------------------------- +// IMEPADREQ_GETCONVERSIONSTATUS +// wParam = (WPARAM)(DWORD *)pdwConversionMode; //conversion mode. +// lParam = (LPARAM)(DWORD *)pdwSentenceMode; //sentence mode. +//---------------------------------------------------------------- +#define IMEPADREQ_GETCONVERSIONSTATUS (IMEPADREQ_FIRST + 30) + +//---------------------------------------------------------------- +// IMEPADREQ_GETVERSION +// wParam = (WPARAM)(DWORD *)pdwVerMS; +// lParam = (LPARAM)(DWORD *)pdwVerLS; +//---------------------------------------------------------------- +#define IMEPADREQ_GETVERSION (IMEPADREQ_FIRST + 31) + +//---------------------------------------------------------------- +// IMEPADREQ_GETCURRENTIMEINFO +// wParam = (WPARAM)(DWORD *)pdwImeLangID; +// lParam = (LPARAM)(DWORD *)pdwImeInputID; +//---------------------------------------------------------------- +#define IMEPADREQ_GETCURRENTIMEINFO (IMEPADREQ_FIRST + 32) + + +//===== IMEPADREQ_SENDCONTROL reques parameter ====================== +#define IMEPADCTRL_CONVERTALL 1 +#define IMEPADCTRL_DETERMINALL 2 +#define IMEPADCTRL_DETERMINCHAR 3 +#define IMEPADCTRL_CLEARALL 4 +#define IMEPADCTRL_CARETSET 5 +#define IMEPADCTRL_CARETLEFT 6 +#define IMEPADCTRL_CARETRIGHT 7 +#define IMEPADCTRL_CARETTOP 8 +#define IMEPADCTRL_CARETBOTTOM 9 +#define IMEPADCTRL_CARETBACKSPACE 10 +#define IMEPADCTRL_CARETDELETE 11 +#define IMEPADCTRL_PHRASEDELETE 12 +#define IMEPADCTRL_INSERTSPACE 13 +#define IMEPADCTRL_INSERTFULLSPACE 14 +#define IMEPADCTRL_INSERTHALFSPACE 15 +#define IMEPADCTRL_ONIME 16 +#define IMEPADCTRL_OFFIME 17 +#define IMEPADCTRL_ONPRECONVERSION 18 +#define IMEPADCTRL_OFFPRECONVERSION 19 +#define IMEPADCTRL_PHONETICCANDIDATE 20 + + +//hot key definition +#define IMEKEYCTRLMASK_ALT 0x0001 +#define IMEKEYCTRLMASK_CTRL 0x0002 +#define IMEKEYCTRLMASK_SHIFT 0x0004 + +#define IMEKEYCTRL_UP 1 +#define IMEKEYCTRL_DOWN 0 + +//===== IImePadApplet Notify ID ===================================== +#define IMEPN_FIRST 0x0100 +#define IMEPN_ACTIVATE (IMEPN_FIRST + 1) +#define IMEPN_INACTIVATE (IMEPN_FIRST + 2) +#define IMEPN_SHOW (IMEPN_FIRST + 4) +#define IMEPN_HIDE (IMEPN_FIRST + 5) +#define IMEPN_SIZECHANGING (IMEPN_FIRST + 6) +#define IMEPN_SIZECHANGED (IMEPN_FIRST + 7) +#define IMEPN_CONFIG (IMEPN_FIRST + 8) +#define IMEPN_HELP (IMEPN_FIRST + 9) +#define IMEPN_QUERYCAND (IMEPN_FIRST +10) +#define IMEPN_APPLYCAND (IMEPN_FIRST +11) +#define IMEPN_APPLYCANDEX (IMEPN_FIRST +12) +#define IMEPN_SETTINGCHANGED (IMEPN_FIRST +13) + +#define IMEPN_USER (IMEPN_FIRST + 100) + + +/*------------------------------------------------------------------------------ + %%Owner: KotaroY + %%Id: 77a6c36a-c7b1-4165-801e-cf320fec71b4 +------------------------------------------------------------------------------*/ +typedef struct tagAPPLYCANDEXPARAM +{ + + DWORD dwSize; + LPWSTR lpwstrDisplay; + LPWSTR lpwstrReading; + DWORD dwReserved; + +} APPLYCANDEXPARAM, *LPAPPLYCANDEXPARAM; + + +//===== IImePadApplet window style ================================ +#define IPAWS_ENABLED 0x00000001L //Show Applet as Enabled window. +#define IPAWS_SIZINGNOTIFY 0x00000004L //send IMEPN_SIZECHANGING(ED) notify to applet. +#define IPAWS_VERTICALFIXED 0x00000100L //Vertically fixed. +#define IPAWS_HORIZONTALFIXED 0x00000200L //Horizontally fixed. +#define IPAWS_SIZEFIXED 0x00000300L //size is fixed. +#define IPAWS_MAXWIDTHFIXED 0x00001000L //max width is fixed. +#define IPAWS_MAXHEIGHTFIXED 0x00002000L //max height is fixed. +#define IPAWS_MAXSIZEFIXED 0x00003000L //max size is fixed. +#define IPAWS_MINWIDTHFIXED 0x00010000L //min width is fixed. +#define IPAWS_MINHEIGHTFIXED 0x00020000L //min height is fixed. +#define IPAWS_MINSIZEFIXED 0x00030000L //min size is fixed. + + +#ifdef __cplusplus + +//======IImePad IImePadApplet Interface definition=============== + + + +DECLARE_INTERFACE_(IImeSpecifyApplets, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /*** IImeSpecifyApplet methods ***/ + STDMETHOD(GetAppletIIDList)(THIS_ + REFIID refiid, + LPAPPLETIDLIST lpIIDList) PURE; +}; + + +DECLARE_INTERFACE_(IImePadApplet, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release) (THIS) PURE; + /*** IImePadApplet methods ***/ + STDMETHOD(Initialize)(THIS_ IUnknown *lpIImePad) PURE; + STDMETHOD(Terminate) (THIS) PURE; + STDMETHOD(GetAppletConfig)(THIS_ LPIMEAPPLETCFG lpAppletCfg) PURE; + STDMETHOD(CreateUI)(THIS_ + HWND hwndParent, + LPIMEAPPLETUI lpImeAppletUI) PURE; + STDMETHOD(Notify)(THIS_ + IUnknown *lpImePad, + INT notify, + WPARAM wParam, + LPARAM lParam) PURE; +}; + +DECLARE_INTERFACE_(IImePad, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID* ppvObj) PURE; + STDMETHOD_(ULONG, AddRef) (THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /*** IImePad methods ***/ + STDMETHOD(Request)(THIS_ + IImePadApplet *pIImePadApplet, + INT reqId, + WPARAM wParam, + LPARAM lParam) PURE; +}; + +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +}; +#endif + +#endif //_IME_PAD_H_ + +#endif // (NTDDI >= NTDDI_WIN8) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imgerror.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imgerror.h new file mode 100644 index 0000000000000000000000000000000000000000..bf8c3b23406b44ffa9fd1739887d68591c6d4144 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imgerror.h @@ -0,0 +1,462 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __imgerror_h__ +#define __imgerror_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IImgErrorInfo_FWD_DEFINED__ +#define __IImgErrorInfo_FWD_DEFINED__ +typedef interface IImgErrorInfo IImgErrorInfo; + +#endif /* __IImgErrorInfo_FWD_DEFINED__ */ + + +#ifndef __IImgCreateErrorInfo_FWD_DEFINED__ +#define __IImgCreateErrorInfo_FWD_DEFINED__ +typedef interface IImgCreateErrorInfo IImgCreateErrorInfo; + +#endif /* __IImgCreateErrorInfo_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_imgerror_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_imgerror_0000_0000_0001 + { + BSTR description; + GUID guid; + DWORD helpContext; + BSTR helpFile; + BSTR source; + BSTR devDescription; + GUID errorID; + ULONG cUserParameters; + /* [size_is] */ BSTR *aUserParameters; + BSTR userFallback; + DWORD exceptionID; + } ImgErrorInfo; + + + +extern RPC_IF_HANDLE __MIDL_itf_imgerror_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imgerror_0000_0000_v0_0_s_ifspec; + +#ifndef __IImgErrorInfo_INTERFACE_DEFINED__ +#define __IImgErrorInfo_INTERFACE_DEFINED__ + +/* interface IImgErrorInfo */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IImgErrorInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2bce4ece-d30e-445a-9423-6829be945ad8") + IImgErrorInfo : public IErrorInfo + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDeveloperDescription( + /* [annotation][out] */ + _Out_ BSTR *pbstrDevDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUserErrorId( + /* [annotation][out] */ + _Out_ GUID *pErrorId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUserParameterCount( + /* [annotation][out] */ + _Out_ ULONG *pcUserParams) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUserParameter( + /* [annotation][in] */ + _In_ ULONG cParam, + /* [annotation][out] */ + _Out_ BSTR *pbstrParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUserFallback( + /* [annotation][out] */ + _Out_ BSTR *pbstrFallback) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExceptionId( + /* [annotation][out] */ + _Out_ DWORD *pExceptionId) = 0; + + virtual HRESULT STDMETHODCALLTYPE DetachErrorInfo( + /* [annotation][out] */ + _Out_ ImgErrorInfo *pErrorInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IImgErrorInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IImgErrorInfo * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IImgErrorInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IImgErrorInfo * This); + + DECLSPEC_XFGVIRT(IErrorInfo, GetGUID) + HRESULT ( STDMETHODCALLTYPE *GetGUID )( + IImgErrorInfo * This, + /* [out] */ GUID *pGUID); + + DECLSPEC_XFGVIRT(IErrorInfo, GetSource) + HRESULT ( STDMETHODCALLTYPE *GetSource )( + IImgErrorInfo * This, + /* [out] */ BSTR *pBstrSource); + + DECLSPEC_XFGVIRT(IErrorInfo, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + IImgErrorInfo * This, + /* [out] */ BSTR *pBstrDescription); + + DECLSPEC_XFGVIRT(IErrorInfo, GetHelpFile) + HRESULT ( STDMETHODCALLTYPE *GetHelpFile )( + IImgErrorInfo * This, + /* [out] */ BSTR *pBstrHelpFile); + + DECLSPEC_XFGVIRT(IErrorInfo, GetHelpContext) + HRESULT ( STDMETHODCALLTYPE *GetHelpContext )( + IImgErrorInfo * This, + /* [out] */ DWORD *pdwHelpContext); + + DECLSPEC_XFGVIRT(IImgErrorInfo, GetDeveloperDescription) + HRESULT ( STDMETHODCALLTYPE *GetDeveloperDescription )( + IImgErrorInfo * This, + /* [annotation][out] */ + _Out_ BSTR *pbstrDevDescription); + + DECLSPEC_XFGVIRT(IImgErrorInfo, GetUserErrorId) + HRESULT ( STDMETHODCALLTYPE *GetUserErrorId )( + IImgErrorInfo * This, + /* [annotation][out] */ + _Out_ GUID *pErrorId); + + DECLSPEC_XFGVIRT(IImgErrorInfo, GetUserParameterCount) + HRESULT ( STDMETHODCALLTYPE *GetUserParameterCount )( + IImgErrorInfo * This, + /* [annotation][out] */ + _Out_ ULONG *pcUserParams); + + DECLSPEC_XFGVIRT(IImgErrorInfo, GetUserParameter) + HRESULT ( STDMETHODCALLTYPE *GetUserParameter )( + IImgErrorInfo * This, + /* [annotation][in] */ + _In_ ULONG cParam, + /* [annotation][out] */ + _Out_ BSTR *pbstrParam); + + DECLSPEC_XFGVIRT(IImgErrorInfo, GetUserFallback) + HRESULT ( STDMETHODCALLTYPE *GetUserFallback )( + IImgErrorInfo * This, + /* [annotation][out] */ + _Out_ BSTR *pbstrFallback); + + DECLSPEC_XFGVIRT(IImgErrorInfo, GetExceptionId) + HRESULT ( STDMETHODCALLTYPE *GetExceptionId )( + IImgErrorInfo * This, + /* [annotation][out] */ + _Out_ DWORD *pExceptionId); + + DECLSPEC_XFGVIRT(IImgErrorInfo, DetachErrorInfo) + HRESULT ( STDMETHODCALLTYPE *DetachErrorInfo )( + IImgErrorInfo * This, + /* [annotation][out] */ + _Out_ ImgErrorInfo *pErrorInfo); + + END_INTERFACE + } IImgErrorInfoVtbl; + + interface IImgErrorInfo + { + CONST_VTBL struct IImgErrorInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IImgErrorInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IImgErrorInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IImgErrorInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IImgErrorInfo_GetGUID(This,pGUID) \ + ( (This)->lpVtbl -> GetGUID(This,pGUID) ) + +#define IImgErrorInfo_GetSource(This,pBstrSource) \ + ( (This)->lpVtbl -> GetSource(This,pBstrSource) ) + +#define IImgErrorInfo_GetDescription(This,pBstrDescription) \ + ( (This)->lpVtbl -> GetDescription(This,pBstrDescription) ) + +#define IImgErrorInfo_GetHelpFile(This,pBstrHelpFile) \ + ( (This)->lpVtbl -> GetHelpFile(This,pBstrHelpFile) ) + +#define IImgErrorInfo_GetHelpContext(This,pdwHelpContext) \ + ( (This)->lpVtbl -> GetHelpContext(This,pdwHelpContext) ) + + +#define IImgErrorInfo_GetDeveloperDescription(This,pbstrDevDescription) \ + ( (This)->lpVtbl -> GetDeveloperDescription(This,pbstrDevDescription) ) + +#define IImgErrorInfo_GetUserErrorId(This,pErrorId) \ + ( (This)->lpVtbl -> GetUserErrorId(This,pErrorId) ) + +#define IImgErrorInfo_GetUserParameterCount(This,pcUserParams) \ + ( (This)->lpVtbl -> GetUserParameterCount(This,pcUserParams) ) + +#define IImgErrorInfo_GetUserParameter(This,cParam,pbstrParam) \ + ( (This)->lpVtbl -> GetUserParameter(This,cParam,pbstrParam) ) + +#define IImgErrorInfo_GetUserFallback(This,pbstrFallback) \ + ( (This)->lpVtbl -> GetUserFallback(This,pbstrFallback) ) + +#define IImgErrorInfo_GetExceptionId(This,pExceptionId) \ + ( (This)->lpVtbl -> GetExceptionId(This,pExceptionId) ) + +#define IImgErrorInfo_DetachErrorInfo(This,pErrorInfo) \ + ( (This)->lpVtbl -> DetachErrorInfo(This,pErrorInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IImgErrorInfo_INTERFACE_DEFINED__ */ + + +#ifndef __IImgCreateErrorInfo_INTERFACE_DEFINED__ +#define __IImgCreateErrorInfo_INTERFACE_DEFINED__ + +/* interface IImgCreateErrorInfo */ +/* [ref][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IImgCreateErrorInfo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1c55a64c-07cd-4fb5-90f7-b753d91f0c9e") + IImgCreateErrorInfo : public ICreateErrorInfo + { + public: + virtual HRESULT STDMETHODCALLTYPE AttachToErrorInfo( + /* [annotation][out][in] */ + _Inout_ ImgErrorInfo *pErrorInfo) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IImgCreateErrorInfoVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IImgCreateErrorInfo * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IImgCreateErrorInfo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IImgCreateErrorInfo * This); + + DECLSPEC_XFGVIRT(ICreateErrorInfo, SetGUID) + HRESULT ( STDMETHODCALLTYPE *SetGUID )( + IImgCreateErrorInfo * This, + /* [in] */ REFGUID rguid); + + DECLSPEC_XFGVIRT(ICreateErrorInfo, SetSource) + HRESULT ( STDMETHODCALLTYPE *SetSource )( + IImgCreateErrorInfo * This, + /* [in] */ LPOLESTR szSource); + + DECLSPEC_XFGVIRT(ICreateErrorInfo, SetDescription) + HRESULT ( STDMETHODCALLTYPE *SetDescription )( + IImgCreateErrorInfo * This, + /* [in] */ LPOLESTR szDescription); + + DECLSPEC_XFGVIRT(ICreateErrorInfo, SetHelpFile) + HRESULT ( STDMETHODCALLTYPE *SetHelpFile )( + IImgCreateErrorInfo * This, + /* [in] */ LPOLESTR szHelpFile); + + DECLSPEC_XFGVIRT(ICreateErrorInfo, SetHelpContext) + HRESULT ( STDMETHODCALLTYPE *SetHelpContext )( + IImgCreateErrorInfo * This, + /* [in] */ DWORD dwHelpContext); + + DECLSPEC_XFGVIRT(IImgCreateErrorInfo, AttachToErrorInfo) + HRESULT ( STDMETHODCALLTYPE *AttachToErrorInfo )( + IImgCreateErrorInfo * This, + /* [annotation][out][in] */ + _Inout_ ImgErrorInfo *pErrorInfo); + + END_INTERFACE + } IImgCreateErrorInfoVtbl; + + interface IImgCreateErrorInfo + { + CONST_VTBL struct IImgCreateErrorInfoVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IImgCreateErrorInfo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IImgCreateErrorInfo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IImgCreateErrorInfo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IImgCreateErrorInfo_SetGUID(This,rguid) \ + ( (This)->lpVtbl -> SetGUID(This,rguid) ) + +#define IImgCreateErrorInfo_SetSource(This,szSource) \ + ( (This)->lpVtbl -> SetSource(This,szSource) ) + +#define IImgCreateErrorInfo_SetDescription(This,szDescription) \ + ( (This)->lpVtbl -> SetDescription(This,szDescription) ) + +#define IImgCreateErrorInfo_SetHelpFile(This,szHelpFile) \ + ( (This)->lpVtbl -> SetHelpFile(This,szHelpFile) ) + +#define IImgCreateErrorInfo_SetHelpContext(This,dwHelpContext) \ + ( (This)->lpVtbl -> SetHelpContext(This,dwHelpContext) ) + + +#define IImgCreateErrorInfo_AttachToErrorInfo(This,pErrorInfo) \ + ( (This)->lpVtbl -> AttachToErrorInfo(This,pErrorInfo) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IImgCreateErrorInfo_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_imgerror_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_imgerror_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_imgerror_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imgerror.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imgerror.idl new file mode 100644 index 0000000000000000000000000000000000000000..9e4982a0050c8479d66e1f9aa544cb624f83e266 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imgerror.idl @@ -0,0 +1,132 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// Contains the definition of the IImgErrorInfo interface used to describe +// extra error state. This inherits from the COM IErrorInfo interface. +// +// Notes: +// IImgErrorInfo stores its state in an ImgErrorInfo structure that can +// be detached from the class implementation. IImgErrorInfo is NOT thread +// safe. +// +// History: +// 2003/10/20-mlawrenc +// Created - removed from imgdata.idl to provide better sanitization +// from the rest of the imgdata interface, also in prepartaion +// of moving to Musl. +// +//---------------------------------------------------------------------------- +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; + +// +// Interfaces used for extended error information. +// +interface IImgErrorInfo; +interface IImgCreateErrorInfo; + +typedef struct +{ + // + // IErrorInfo fields + // + BSTR description; + GUID guid; + DWORD helpContext; + BSTR helpFile; + BSTR source; + + // + // IImgErrorInfo fields + // + BSTR devDescription; + GUID errorID; + ULONG cUserParameters; + [size_is(cUserParameters)] BSTR *aUserParameters; + BSTR userFallback; + DWORD exceptionID; + +} ImgErrorInfo; + +[ + object, + uuid(2bce4ece-d30e-445a-9423-6829be945ad8), + local, + helpstring("Extended error information class, this is used to allow our exceptions to chain correctly across DLL/Machine boundaries."), + pointer_default(ref) +] +interface IImgErrorInfo : IErrorInfo +{ + HRESULT + GetDeveloperDescription( + [out, annotation("_Out_")] BSTR *pbstrDevDescription + ); + + HRESULT + GetUserErrorId( + [out, annotation("_Out_")] GUID *pErrorId + ); + + HRESULT + GetUserParameterCount( + [out, annotation("_Out_")] ULONG *pcUserParams + ); + + HRESULT + GetUserParameter( + [in, annotation("_In_")] ULONG cParam, + [out, annotation("_Out_")] BSTR *pbstrParam + ); + + HRESULT + GetUserFallback( + [out, annotation("_Out_")] BSTR *pbstrFallback + ); + + HRESULT + GetExceptionId( + [out, annotation("_Out_")] DWORD *pExceptionId + ); + + HRESULT + DetachErrorInfo( + [out, annotation("_Out_")] ImgErrorInfo *pErrorInfo + ); +} + +[ + object, + uuid(1c55a64c-07cd-4fb5-90f7-b753d91f0c9e), + local, + helpstring("Class that can be used to create extended error information."), + pointer_default(ref) +] +interface IImgCreateErrorInfo : ICreateErrorInfo +{ + HRESULT + AttachToErrorInfo( + [in, out, annotation("_Inout_")] ImgErrorInfo *pErrorInfo + ); +} + + + + + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imm.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imm.h new file mode 100644 index 0000000000000000000000000000000000000000..b7ebb2e69d9318621d0801f20b8f05f69cd0a454 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imm.h @@ -0,0 +1,781 @@ +#include + +/**********************************************************************/ +/* imm.h - Input Method Manager definitions */ +/* */ +/* Copyright (c) Microsoft Corporation. All rights reserved. */ +/**********************************************************************/ + +#ifndef _IMM_ +#define _IMM_ + + +#ifdef __cplusplus +extern "C" { +#endif + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) // padding added after data member +#endif + + +#ifndef _IMM_SDK_DEFINED_ +#define _IMM_SDK_DEFINED_ + + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#if (WINVER >= 0x040A) +DECLARE_HANDLE(HIMC); +DECLARE_HANDLE(HIMCC); +#else +typedef DWORD HIMC; +typedef DWORD HIMCC; +#endif /* WINVER >= 0x040A */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef HKL FAR *LPHKL; +typedef UINT FAR *LPUINT; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef struct tagCOMPOSITIONFORM { + DWORD dwStyle; + POINT ptCurrentPos; + RECT rcArea; +} COMPOSITIONFORM, *PCOMPOSITIONFORM, NEAR *NPCOMPOSITIONFORM, FAR *LPCOMPOSITIONFORM; + + +typedef struct tagCANDIDATEFORM { + DWORD dwIndex; + DWORD dwStyle; + POINT ptCurrentPos; + RECT rcArea; +} CANDIDATEFORM, *PCANDIDATEFORM, NEAR *NPCANDIDATEFORM, FAR *LPCANDIDATEFORM; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagCANDIDATELIST { + DWORD dwSize; + DWORD dwStyle; + DWORD dwCount; + DWORD dwSelection; + DWORD dwPageStart; + DWORD dwPageSize; + DWORD dwOffset[1]; +} CANDIDATELIST, *PCANDIDATELIST, NEAR *NPCANDIDATELIST, FAR *LPCANDIDATELIST; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef struct tagREGISTERWORDA { + LPSTR lpReading; + LPSTR lpWord; +} REGISTERWORDA, *PREGISTERWORDA, NEAR *NPREGISTERWORDA, FAR *LPREGISTERWORDA; +typedef struct tagREGISTERWORDW { + LPWSTR lpReading; + LPWSTR lpWord; +} REGISTERWORDW, *PREGISTERWORDW, NEAR *NPREGISTERWORDW, FAR *LPREGISTERWORDW; +#ifdef UNICODE +typedef REGISTERWORDW REGISTERWORD; +typedef PREGISTERWORDW PREGISTERWORD; +typedef NPREGISTERWORDW NPREGISTERWORD; +typedef LPREGISTERWORDW LPREGISTERWORD; +#else +typedef REGISTERWORDA REGISTERWORD; +typedef PREGISTERWORDA PREGISTERWORD; +typedef NPREGISTERWORDA NPREGISTERWORD; +typedef LPREGISTERWORDA LPREGISTERWORD; +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#if (WINVER >= 0x040A) + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagRECONVERTSTRING { + DWORD dwSize; + DWORD dwVersion; + DWORD dwStrLen; + DWORD dwStrOffset; + DWORD dwCompStrLen; + DWORD dwCompStrOffset; + DWORD dwTargetStrLen; + DWORD dwTargetStrOffset; +} RECONVERTSTRING, *PRECONVERTSTRING, NEAR *NPRECONVERTSTRING, FAR *LPRECONVERTSTRING; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* WINVER >= 0x040A */ + +#define STYLE_DESCRIPTION_SIZE 32 + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef struct tagSTYLEBUFA { + DWORD dwStyle; + CHAR szDescription[STYLE_DESCRIPTION_SIZE]; +} STYLEBUFA, *PSTYLEBUFA, NEAR *NPSTYLEBUFA, FAR *LPSTYLEBUFA; +typedef struct tagSTYLEBUFW { + DWORD dwStyle; + WCHAR szDescription[STYLE_DESCRIPTION_SIZE]; +} STYLEBUFW, *PSTYLEBUFW, NEAR *NPSTYLEBUFW, FAR *LPSTYLEBUFW; +#ifdef UNICODE +typedef STYLEBUFW STYLEBUF; +typedef PSTYLEBUFW PSTYLEBUF; +typedef NPSTYLEBUFW NPSTYLEBUF; +typedef LPSTYLEBUFW LPSTYLEBUF; +#else +typedef STYLEBUFA STYLEBUF; +typedef PSTYLEBUFA PSTYLEBUF; +typedef NPSTYLEBUFA NPSTYLEBUF; +typedef LPSTYLEBUFA LPSTYLEBUF; +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#if (WINVER >= 0x040A) + +#define IMEMENUITEM_STRING_SIZE 80 + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagIMEMENUITEMINFOA { + UINT cbSize; + UINT fType; + UINT fState; + UINT wID; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + DWORD dwItemData; + CHAR szString[IMEMENUITEM_STRING_SIZE]; + HBITMAP hbmpItem; +} IMEMENUITEMINFOA, *PIMEMENUITEMINFOA, NEAR *NPIMEMENUITEMINFOA, FAR *LPIMEMENUITEMINFOA; +typedef struct tagIMEMENUITEMINFOW { + UINT cbSize; + UINT fType; + UINT fState; + UINT wID; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + DWORD dwItemData; + WCHAR szString[IMEMENUITEM_STRING_SIZE]; + HBITMAP hbmpItem; +} IMEMENUITEMINFOW, *PIMEMENUITEMINFOW, NEAR *NPIMEMENUITEMINFOW, FAR *LPIMEMENUITEMINFOW; +#ifdef UNICODE +typedef IMEMENUITEMINFOW IMEMENUITEMINFO; +typedef PIMEMENUITEMINFOW PIMEMENUITEMINFO; +typedef NPIMEMENUITEMINFOW NPIMEMENUITEMINFO; +typedef LPIMEMENUITEMINFOW LPIMEMENUITEMINFO; +#else +typedef IMEMENUITEMINFOA IMEMENUITEMINFO; +typedef PIMEMENUITEMINFOA PIMEMENUITEMINFO; +typedef NPIMEMENUITEMINFOA NPIMEMENUITEMINFO; +typedef LPIMEMENUITEMINFOA LPIMEMENUITEMINFO; +#endif // UNICODE + +typedef struct tagIMECHARPOSITION { + DWORD dwSize; + DWORD dwCharPos; + POINT pt; + UINT cLineHeight; + RECT rcDocument; +} IMECHARPOSITION, *PIMECHARPOSITION, NEAR *NPIMECHARPOSITION, FAR *LPIMECHARPOSITION; + +typedef BOOL (CALLBACK* IMCENUMPROC)(HIMC, LPARAM); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* WINVER >= 0x040A */ + + + +// prototype of IMM API + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +HKL WINAPI ImmInstallIMEA(_In_ LPCSTR lpszIMEFileName, _In_ LPCSTR lpszLayoutText); +HKL WINAPI ImmInstallIMEW(_In_ LPCWSTR lpszIMEFileName, _In_ LPCWSTR lpszLayoutText); +#ifdef UNICODE +#define ImmInstallIME ImmInstallIMEW +#else +#define ImmInstallIME ImmInstallIMEA +#endif // !UNICODE + +HWND WINAPI ImmGetDefaultIMEWnd(IN HWND); + +UINT WINAPI ImmGetDescriptionA(IN HKL, _Out_writes_opt_(uBufLen) LPSTR lpszDescription, IN UINT uBufLen); +UINT WINAPI ImmGetDescriptionW(IN HKL, _Out_writes_opt_(uBufLen) LPWSTR lpszDescription, IN UINT uBufLen); +#ifdef UNICODE +#define ImmGetDescription ImmGetDescriptionW +#else +#define ImmGetDescription ImmGetDescriptionA +#endif // !UNICODE + +UINT WINAPI ImmGetIMEFileNameA(IN HKL, _Out_writes_opt_(uBufLen) LPSTR lpszFileName, IN UINT uBufLen); +UINT WINAPI ImmGetIMEFileNameW(IN HKL, _Out_writes_opt_(uBufLen) LPWSTR lpszFileName, IN UINT uBufLen); +#ifdef UNICODE +#define ImmGetIMEFileName ImmGetIMEFileNameW +#else +#define ImmGetIMEFileName ImmGetIMEFileNameA +#endif // !UNICODE + +DWORD WINAPI ImmGetProperty(IN HKL, IN DWORD); + +BOOL WINAPI ImmIsIME(IN HKL); + +BOOL WINAPI ImmSimulateHotKey(IN HWND, IN DWORD); + +HIMC WINAPI ImmCreateContext(void); +BOOL WINAPI ImmDestroyContext(IN HIMC); +HIMC WINAPI ImmGetContext(IN HWND); +BOOL WINAPI ImmReleaseContext(IN HWND, IN HIMC); +HIMC WINAPI ImmAssociateContext(IN HWND, IN HIMC); +#if (WINVER >= 0x040A) +BOOL WINAPI ImmAssociateContextEx(_In_ HWND, _In_ HIMC, _In_ DWORD); +#endif /* WINVER >= 0x040A */ + +LONG WINAPI ImmGetCompositionStringA(IN HIMC, IN DWORD, _Out_writes_bytes_opt_(dwBufLen) LPVOID lpBuf, IN DWORD dwBufLen); +LONG WINAPI ImmGetCompositionStringW(IN HIMC, IN DWORD, _Out_writes_bytes_opt_(dwBufLen) LPVOID lpBuf, IN DWORD dwBufLen); +#ifdef UNICODE +#define ImmGetCompositionString ImmGetCompositionStringW +#else +#define ImmGetCompositionString ImmGetCompositionStringA +#endif // !UNICODE + +BOOL WINAPI ImmSetCompositionStringA(IN HIMC, IN DWORD dwIndex, _In_reads_bytes_opt_(dwCompLen) LPVOID lpComp, IN DWORD dwCompLen, _In_reads_bytes_opt_(dwReadLen) LPVOID lpRead, IN DWORD dwReadLen); +BOOL WINAPI ImmSetCompositionStringW(IN HIMC, IN DWORD dwIndex, _In_reads_bytes_opt_(dwCompLen) LPVOID lpComp, IN DWORD dwCompLen, _In_reads_bytes_opt_(dwReadLen) LPVOID lpRead, IN DWORD dwReadLen); +#ifdef UNICODE +#define ImmSetCompositionString ImmSetCompositionStringW +#else +#define ImmSetCompositionString ImmSetCompositionStringA +#endif // !UNICODE + +DWORD WINAPI ImmGetCandidateListCountA(IN HIMC, _Out_ LPDWORD lpdwListCount); +DWORD WINAPI ImmGetCandidateListCountW(IN HIMC, _Out_ LPDWORD lpdwListCount); +#ifdef UNICODE +#define ImmGetCandidateListCount ImmGetCandidateListCountW +#else +#define ImmGetCandidateListCount ImmGetCandidateListCountA +#endif // !UNICODE + +DWORD WINAPI ImmGetCandidateListA(IN HIMC, IN DWORD deIndex, _Out_writes_bytes_opt_(dwBufLen) LPCANDIDATELIST lpCandList, IN DWORD dwBufLen); +DWORD WINAPI ImmGetCandidateListW(IN HIMC, IN DWORD deIndex, _Out_writes_bytes_opt_(dwBufLen) LPCANDIDATELIST lpCandList, IN DWORD dwBufLen); +#ifdef UNICODE +#define ImmGetCandidateList ImmGetCandidateListW +#else +#define ImmGetCandidateList ImmGetCandidateListA +#endif // !UNICODE + +DWORD WINAPI ImmGetGuideLineA(_In_ HIMC, _In_ DWORD dwIndex, _Out_writes_bytes_opt_(dwBufLen) LPSTR lpBuf, _In_ DWORD dwBufLen); +DWORD WINAPI ImmGetGuideLineW(_In_ HIMC, _In_ DWORD dwIndex, _Out_writes_bytes_opt_(dwBufLen) LPWSTR lpBuf, _In_ DWORD dwBufLen); +#ifdef UNICODE +#define ImmGetGuideLine ImmGetGuideLineW +#else +#define ImmGetGuideLine ImmGetGuideLineA +#endif // !UNICODE + +BOOL WINAPI ImmGetConversionStatus(IN HIMC, _Out_opt_ LPDWORD lpfdwConversion, _Out_opt_ LPDWORD lpfdwSentence); +BOOL WINAPI ImmSetConversionStatus(IN HIMC, IN DWORD, IN DWORD); +BOOL WINAPI ImmGetOpenStatus(IN HIMC); +BOOL WINAPI ImmSetOpenStatus(IN HIMC, IN BOOL); + +#if defined(_WINGDI_) && !defined(NOGDI) +BOOL WINAPI ImmGetCompositionFontA(IN HIMC, _Out_ LPLOGFONTA lplf); +BOOL WINAPI ImmGetCompositionFontW(IN HIMC, _Out_ LPLOGFONTW lplf); +#ifdef UNICODE +#define ImmGetCompositionFont ImmGetCompositionFontW +#else +#define ImmGetCompositionFont ImmGetCompositionFontA +#endif // !UNICODE + +BOOL WINAPI ImmSetCompositionFontA(IN HIMC, _In_ LPLOGFONTA lplf); +BOOL WINAPI ImmSetCompositionFontW(IN HIMC, _In_ LPLOGFONTW lplf); +#ifdef UNICODE +#define ImmSetCompositionFont ImmSetCompositionFontW +#else +#define ImmSetCompositionFont ImmSetCompositionFontA +#endif // !UNICODE +#endif // defined(_WINGDI_) && !defined(NOGDI) + +BOOL WINAPI ImmConfigureIMEA(IN HKL, IN HWND, IN DWORD, IN LPVOID); +BOOL WINAPI ImmConfigureIMEW(IN HKL, IN HWND, IN DWORD, IN LPVOID); +#ifdef UNICODE +#define ImmConfigureIME ImmConfigureIMEW +#else +#define ImmConfigureIME ImmConfigureIMEA +#endif // !UNICODE + +LRESULT WINAPI ImmEscapeA(IN HKL, IN HIMC, IN UINT, IN LPVOID); +LRESULT WINAPI ImmEscapeW(IN HKL, IN HIMC, IN UINT, IN LPVOID); +#ifdef UNICODE +#define ImmEscape ImmEscapeW +#else +#define ImmEscape ImmEscapeA +#endif // !UNICODE + +DWORD WINAPI ImmGetConversionListA(IN HKL, IN HIMC, _In_ LPCSTR lpSrc, _Out_writes_bytes_(dwBufLen) LPCANDIDATELIST lpDst, IN DWORD dwBufLen, IN UINT uFlag); +DWORD WINAPI ImmGetConversionListW(IN HKL, IN HIMC, _In_ LPCWSTR lpSrc, _Out_writes_bytes_(dwBufLen) LPCANDIDATELIST lpDst, IN DWORD dwBufLen, IN UINT uFlag); +#ifdef UNICODE +#define ImmGetConversionList ImmGetConversionListW +#else +#define ImmGetConversionList ImmGetConversionListA +#endif // !UNICODE + +BOOL WINAPI ImmNotifyIME(IN HIMC, IN DWORD dwAction, IN DWORD dwIndex, IN DWORD dwValue); + +BOOL WINAPI ImmGetStatusWindowPos(IN HIMC, _Out_ LPPOINT lpptPos); +BOOL WINAPI ImmSetStatusWindowPos(IN HIMC, _In_ LPPOINT lpptPos); +BOOL WINAPI ImmGetCompositionWindow(IN HIMC, _Out_ LPCOMPOSITIONFORM lpCompForm); +BOOL WINAPI ImmSetCompositionWindow(IN HIMC, _In_ LPCOMPOSITIONFORM lpCompForm); +BOOL WINAPI ImmGetCandidateWindow(IN HIMC, IN DWORD, _Out_ LPCANDIDATEFORM lpCandidate); +BOOL WINAPI ImmSetCandidateWindow(IN HIMC, _In_ LPCANDIDATEFORM lpCandidate); + +BOOL WINAPI ImmIsUIMessageA(IN HWND, IN UINT, IN WPARAM, IN LPARAM); +BOOL WINAPI ImmIsUIMessageW(IN HWND, IN UINT, IN WPARAM, IN LPARAM); +#ifdef UNICODE +#define ImmIsUIMessage ImmIsUIMessageW +#else +#define ImmIsUIMessage ImmIsUIMessageA +#endif // !UNICODE + +UINT WINAPI ImmGetVirtualKey(IN HWND); + +typedef int (CALLBACK *REGISTERWORDENUMPROCA)(_In_ LPCSTR lpszReading, DWORD, _In_ LPCSTR lpszString, LPVOID); +typedef int (CALLBACK *REGISTERWORDENUMPROCW)(_In_ LPCWSTR lpszReading, DWORD, _In_ LPCWSTR lpszString, LPVOID); +#ifdef UNICODE +#define REGISTERWORDENUMPROC REGISTERWORDENUMPROCW +#else +#define REGISTERWORDENUMPROC REGISTERWORDENUMPROCA +#endif // !UNICODE + +BOOL WINAPI ImmRegisterWordA(IN HKL, _In_ LPCSTR lpszReading, IN DWORD, _In_ LPCSTR lpszRegister); +BOOL WINAPI ImmRegisterWordW(IN HKL, _In_ LPCWSTR lpszReading, IN DWORD, _In_ LPCWSTR lpszRegister); +#ifdef UNICODE +#define ImmRegisterWord ImmRegisterWordW +#else +#define ImmRegisterWord ImmRegisterWordA +#endif // !UNICODE + +BOOL WINAPI ImmUnregisterWordA(IN HKL, _In_ LPCSTR lpszReading, IN DWORD, _In_ LPCSTR lpszUnregister); +BOOL WINAPI ImmUnregisterWordW(IN HKL, _In_ LPCWSTR lpszReading, IN DWORD, _In_ LPCWSTR lpszUnregister); +#ifdef UNICODE +#define ImmUnregisterWord ImmUnregisterWordW +#else +#define ImmUnregisterWord ImmUnregisterWordA +#endif // !UNICODE + +UINT WINAPI ImmGetRegisterWordStyleA(IN HKL, IN UINT nItem, _Out_writes_(nItem) LPSTYLEBUFA lpStyleBuf); +UINT WINAPI ImmGetRegisterWordStyleW(IN HKL, IN UINT nItem, _Out_writes_(nItem) LPSTYLEBUFW lpStyleBuf); +#ifdef UNICODE +#define ImmGetRegisterWordStyle ImmGetRegisterWordStyleW +#else +#define ImmGetRegisterWordStyle ImmGetRegisterWordStyleA +#endif // !UNICODE + +UINT WINAPI ImmEnumRegisterWordA(IN HKL, IN REGISTERWORDENUMPROCA, _In_opt_ LPCSTR lpszReading, IN DWORD, _In_opt_ LPCSTR lpszRegister, IN LPVOID); +UINT WINAPI ImmEnumRegisterWordW(IN HKL, IN REGISTERWORDENUMPROCW, _In_opt_ LPCWSTR lpszReading, IN DWORD, _In_opt_ LPCWSTR lpszRegister, IN LPVOID); +#ifdef UNICODE +#define ImmEnumRegisterWord ImmEnumRegisterWordW +#else +#define ImmEnumRegisterWord ImmEnumRegisterWordA +#endif // !UNICODE + +#if (WINVER >= 0x040A) +BOOL WINAPI ImmDisableIME(IN DWORD); +BOOL WINAPI ImmEnumInputContext(DWORD idThread, IMCENUMPROC lpfn, LPARAM lParam); +DWORD WINAPI ImmGetImeMenuItemsA(IN HIMC, IN DWORD, IN DWORD, _Out_opt_ LPIMEMENUITEMINFOA lpImeParentMenu, _Out_writes_bytes_opt_(dwSize) LPIMEMENUITEMINFOA lpImeMenu, IN DWORD dwSize); +DWORD WINAPI ImmGetImeMenuItemsW(IN HIMC, IN DWORD, IN DWORD, _Out_opt_ LPIMEMENUITEMINFOW lpImeParentMenu, _Out_writes_bytes_opt_(dwSize) LPIMEMENUITEMINFOW lpImeMenu, IN DWORD dwSize); +#ifdef UNICODE +#define ImmGetImeMenuItems ImmGetImeMenuItemsW +#else +#define ImmGetImeMenuItems ImmGetImeMenuItemsA +#endif // !UNICODE + +BOOL WINAPI ImmDisableTextFrameService(DWORD idThread); +#endif /* WINVER >= 0x040A */ + +#if (WINVER >= 0x0602) +BOOL WINAPI ImmDisableLegacyIME(void); +#endif /* WINVER >= 0x0602 */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +// wParam for WM_IME_CONTROL +#define IMC_GETCANDIDATEPOS 0x0007 +#define IMC_SETCANDIDATEPOS 0x0008 +#define IMC_GETCOMPOSITIONFONT 0x0009 +#define IMC_SETCOMPOSITIONFONT 0x000A +#define IMC_GETCOMPOSITIONWINDOW 0x000B +#define IMC_SETCOMPOSITIONWINDOW 0x000C +#define IMC_GETSTATUSWINDOWPOS 0x000F +#define IMC_SETSTATUSWINDOWPOS 0x0010 +#define IMC_CLOSESTATUSWINDOW 0x0021 +#define IMC_OPENSTATUSWINDOW 0x0022 + + +// dwAction for ImmNotifyIME +#define NI_OPENCANDIDATE 0x0010 +#define NI_CLOSECANDIDATE 0x0011 +#define NI_SELECTCANDIDATESTR 0x0012 +#define NI_CHANGECANDIDATELIST 0x0013 +#define NI_FINALIZECONVERSIONRESULT 0x0014 +#define NI_COMPOSITIONSTR 0x0015 +#define NI_SETCANDIDATE_PAGESTART 0x0016 +#define NI_SETCANDIDATE_PAGESIZE 0x0017 +#define NI_IMEMENUSELECTED 0x0018 + +// lParam for WM_IME_SETCONTEXT +#define ISC_SHOWUICANDIDATEWINDOW 0x00000001 +#define ISC_SHOWUICOMPOSITIONWINDOW 0x80000000 +#define ISC_SHOWUIGUIDELINE 0x40000000 +#define ISC_SHOWUIALLCANDIDATEWINDOW 0x0000000F +#define ISC_SHOWUIALL 0xC000000F + + +// dwIndex for ImmNotifyIME/NI_COMPOSITIONSTR +#define CPS_COMPLETE 0x0001 +#define CPS_CONVERT 0x0002 +#define CPS_REVERT 0x0003 +#define CPS_CANCEL 0x0004 + +// the modifiers of hot key +#define MOD_ALT 0x0001 +#define MOD_CONTROL 0x0002 +#define MOD_SHIFT 0x0004 + +#define MOD_LEFT 0x8000 +#define MOD_RIGHT 0x4000 + +#define MOD_ON_KEYUP 0x0800 +#define MOD_IGNORE_ALL_MODIFIER 0x0400 + + +// Windows for Simplified Chinese Edition hot key ID from 0x10 - 0x2F +#define IME_CHOTKEY_IME_NONIME_TOGGLE 0x10 +#define IME_CHOTKEY_SHAPE_TOGGLE 0x11 +#define IME_CHOTKEY_SYMBOL_TOGGLE 0x12 + +// Windows for Japanese Edition hot key ID from 0x30 - 0x4F +#define IME_JHOTKEY_CLOSE_OPEN 0x30 + +// Windows for Korean Edition hot key ID from 0x50 - 0x6F +#define IME_KHOTKEY_SHAPE_TOGGLE 0x50 +#define IME_KHOTKEY_HANJACONVERT 0x51 +#define IME_KHOTKEY_ENGLISH 0x52 + +// Windows for Traditional Chinese Edition hot key ID from 0x70 - 0x8F +#define IME_THOTKEY_IME_NONIME_TOGGLE 0x70 +#define IME_THOTKEY_SHAPE_TOGGLE 0x71 +#define IME_THOTKEY_SYMBOL_TOGGLE 0x72 + +// direct switch hot key ID from 0x100 - 0x11F +#define IME_HOTKEY_DSWITCH_FIRST 0x100 +#define IME_HOTKEY_DSWITCH_LAST 0x11F + +// IME private hot key from 0x200 - 0x21F +#define IME_HOTKEY_PRIVATE_FIRST 0x200 +#define IME_ITHOTKEY_RESEND_RESULTSTR 0x200 +#define IME_ITHOTKEY_PREVIOUS_COMPOSITION 0x201 +#define IME_ITHOTKEY_UISTYLE_TOGGLE 0x202 +#define IME_ITHOTKEY_RECONVERTSTRING 0x203 +#define IME_HOTKEY_PRIVATE_LAST 0x21F + + +// parameter of ImmGetCompositionString +#define GCS_COMPREADSTR 0x0001 +#define GCS_COMPREADATTR 0x0002 +#define GCS_COMPREADCLAUSE 0x0004 +#define GCS_COMPSTR 0x0008 +#define GCS_COMPATTR 0x0010 +#define GCS_COMPCLAUSE 0x0020 +#define GCS_CURSORPOS 0x0080 +#define GCS_DELTASTART 0x0100 +#define GCS_RESULTREADSTR 0x0200 +#define GCS_RESULTREADCLAUSE 0x0400 +#define GCS_RESULTSTR 0x0800 +#define GCS_RESULTCLAUSE 0x1000 + +// style bit flags for WM_IME_COMPOSITION +#define CS_INSERTCHAR 0x2000 +#define CS_NOMOVECARET 0x4000 + +// IME version constants +#define IMEVER_0310 0x0003000A +#define IMEVER_0400 0x00040000 + + +// IME property bits +#define IME_PROP_AT_CARET 0x00010000 +#define IME_PROP_SPECIAL_UI 0x00020000 +#define IME_PROP_CANDLIST_START_FROM_1 0x00040000 +#define IME_PROP_UNICODE 0x00080000 +#define IME_PROP_COMPLETE_ON_UNSELECT 0x00100000 + + +// IME UICapability bits +#define UI_CAP_2700 0x00000001 +#define UI_CAP_ROT90 0x00000002 +#define UI_CAP_ROTANY 0x00000004 + +// ImmSetCompositionString Capability bits +#define SCS_CAP_COMPSTR 0x00000001 +#define SCS_CAP_MAKEREAD 0x00000002 +#define SCS_CAP_SETRECONVERTSTRING 0x00000004 + + +// IME WM_IME_SELECT inheritance Capability bits +#define SELECT_CAP_CONVERSION 0x00000001 +#define SELECT_CAP_SENTENCE 0x00000002 + + +// ID for deIndex of ImmGetGuideLine +#define GGL_LEVEL 0x00000001 +#define GGL_INDEX 0x00000002 +#define GGL_STRING 0x00000003 +#define GGL_PRIVATE 0x00000004 + + +// ID for dwLevel of GUIDELINE Structure +#define GL_LEVEL_NOGUIDELINE 0x00000000 +#define GL_LEVEL_FATAL 0x00000001 +#define GL_LEVEL_ERROR 0x00000002 +#define GL_LEVEL_WARNING 0x00000003 +#define GL_LEVEL_INFORMATION 0x00000004 + + +// ID for dwIndex of GUIDELINE Structure +#define GL_ID_UNKNOWN 0x00000000 +#define GL_ID_NOMODULE 0x00000001 +#define GL_ID_NODICTIONARY 0x00000010 +#define GL_ID_CANNOTSAVE 0x00000011 +#define GL_ID_NOCONVERT 0x00000020 +#define GL_ID_TYPINGERROR 0x00000021 +#define GL_ID_TOOMANYSTROKE 0x00000022 +#define GL_ID_READINGCONFLICT 0x00000023 +#define GL_ID_INPUTREADING 0x00000024 +#define GL_ID_INPUTRADICAL 0x00000025 +#define GL_ID_INPUTCODE 0x00000026 +#define GL_ID_INPUTSYMBOL 0x00000027 +#define GL_ID_CHOOSECANDIDATE 0x00000028 +#define GL_ID_REVERSECONVERSION 0x00000029 +#define GL_ID_PRIVATE_FIRST 0x00008000 +#define GL_ID_PRIVATE_LAST 0x0000FFFF + + +// ID for dwIndex of ImmGetProperty +#define IGP_GETIMEVERSION (DWORD)(-4) +#define IGP_PROPERTY 0x00000004 +#define IGP_CONVERSION 0x00000008 +#define IGP_SENTENCE 0x0000000c +#define IGP_UI 0x00000010 +#define IGP_SETCOMPSTR 0x00000014 +#define IGP_SELECT 0x00000018 + +// dwIndex for ImmSetCompositionString API +#define SCS_SETSTR (GCS_COMPREADSTR|GCS_COMPSTR) +#define SCS_CHANGEATTR (GCS_COMPREADATTR|GCS_COMPATTR) +#define SCS_CHANGECLAUSE (GCS_COMPREADCLAUSE|GCS_COMPCLAUSE) +#define SCS_SETRECONVERTSTRING 0x00010000 +#define SCS_QUERYRECONVERTSTRING 0x00020000 + +// attribute for COMPOSITIONSTRING Structure +#define ATTR_INPUT 0x00 +#define ATTR_TARGET_CONVERTED 0x01 +#define ATTR_CONVERTED 0x02 +#define ATTR_TARGET_NOTCONVERTED 0x03 +#define ATTR_INPUT_ERROR 0x04 +#define ATTR_FIXEDCONVERTED 0x05 + +// bit field for IMC_SETCOMPOSITIONWINDOW, IMC_SETCANDIDATEWINDOW +#define CFS_DEFAULT 0x0000 +#define CFS_RECT 0x0001 +#define CFS_POINT 0x0002 +#define CFS_FORCE_POSITION 0x0020 +#define CFS_CANDIDATEPOS 0x0040 +#define CFS_EXCLUDE 0x0080 + +// conversion direction for ImmGetConversionList +#define GCL_CONVERSION 0x0001 +#define GCL_REVERSECONVERSION 0x0002 +#define GCL_REVERSE_LENGTH 0x0003 + + +#include + +// bit field for conversion mode +// IME_CMODE_HANGEUL is old name of IME_CMODE_HANGUL. It will be gone eventually. +#define IME_CMODE_HANGEUL IME_CMODE_NATIVE +#define IME_CMODE_SOFTKBD 0x0080 +#define IME_CMODE_NOCONVERSION 0x0100 +#define IME_CMODE_EUDC 0x0200 +#define IME_CMODE_SYMBOL 0x0400 +#define IME_CMODE_FIXED 0x0800 +#define IME_CMODE_RESERVED 0xF0000000 + +// bit field for sentence mode +#define IME_SMODE_NONE 0x0000 +#define IME_SMODE_PLAURALCLAUSE 0x0001 +#define IME_SMODE_SINGLECONVERT 0x0002 +#define IME_SMODE_AUTOMATIC 0x0004 +#define IME_SMODE_PHRASEPREDICT 0x0008 +#define IME_SMODE_CONVERSATION 0x0010 +#define IME_SMODE_RESERVED 0x0000F000 + + +// style of candidate +#define IME_CAND_UNKNOWN 0x0000 +#define IME_CAND_READ 0x0001 +#define IME_CAND_CODE 0x0002 +#define IME_CAND_MEANING 0x0003 +#define IME_CAND_RADICAL 0x0004 +#define IME_CAND_STROKE 0x0005 + +// wParam of report message WM_IME_NOTIFY +#define IMN_CLOSESTATUSWINDOW 0x0001 +#define IMN_OPENSTATUSWINDOW 0x0002 +#define IMN_CHANGECANDIDATE 0x0003 +#define IMN_CLOSECANDIDATE 0x0004 +#define IMN_OPENCANDIDATE 0x0005 +#define IMN_SETCONVERSIONMODE 0x0006 +#define IMN_SETSENTENCEMODE 0x0007 +#define IMN_SETOPENSTATUS 0x0008 +#define IMN_SETCANDIDATEPOS 0x0009 +#define IMN_SETCOMPOSITIONFONT 0x000A +#define IMN_SETCOMPOSITIONWINDOW 0x000B +#define IMN_SETSTATUSWINDOWPOS 0x000C +#define IMN_GUIDELINE 0x000D +#define IMN_PRIVATE 0x000E + +#if (WINVER >= 0x040A) +// wParam of report message WM_IME_REQUEST +#define IMR_COMPOSITIONWINDOW 0x0001 +#define IMR_CANDIDATEWINDOW 0x0002 +#define IMR_COMPOSITIONFONT 0x0003 +#define IMR_RECONVERTSTRING 0x0004 +#define IMR_CONFIRMRECONVERTSTRING 0x0005 +#define IMR_QUERYCHARPOSITION 0x0006 +#define IMR_DOCUMENTFEED 0x0007 +#endif /* WINVER >= 0x040A */ + +// error code of ImmGetCompositionString +#define IMM_ERROR_NODATA (-1) +#define IMM_ERROR_GENERAL (-2) + + +// dialog mode of ImmConfigureIME +#define IME_CONFIG_GENERAL 1 +#define IME_CONFIG_REGISTERWORD 2 +#define IME_CONFIG_SELECTDICTIONARY 3 + + +// flags for ImmEscape +#define IME_ESC_QUERY_SUPPORT 0x0003 +#define IME_ESC_RESERVED_FIRST 0x0004 +#define IME_ESC_RESERVED_LAST 0x07FF +#define IME_ESC_PRIVATE_FIRST 0x0800 +#define IME_ESC_PRIVATE_LAST 0x0FFF + +#define IME_ESC_SEQUENCE_TO_INTERNAL 0x1001 +#define IME_ESC_GET_EUDC_DICTIONARY 0x1003 +#define IME_ESC_SET_EUDC_DICTIONARY 0x1004 +#define IME_ESC_MAX_KEY 0x1005 +#define IME_ESC_IME_NAME 0x1006 +#define IME_ESC_SYNC_HOTKEY 0x1007 +#define IME_ESC_HANJA_MODE 0x1008 +#define IME_ESC_AUTOMATA 0x1009 +#define IME_ESC_PRIVATE_HOTKEY 0x100a +#define IME_ESC_GETHELPFILENAME 0x100b + +// style of word registration +#define IME_REGWORD_STYLE_EUDC 0x00000001 +#define IME_REGWORD_STYLE_USER_FIRST 0x80000000 +#define IME_REGWORD_STYLE_USER_LAST 0xFFFFFFFF + + +#if (WINVER >= 0x040A) + +// dwFlags for ImmAssociateContextEx +#define IACE_CHILDREN 0x0001 +#define IACE_DEFAULT 0x0010 +#define IACE_IGNORENOCONTEXT 0x0020 + +// dwFlags for ImmGetImeMenuItems +#define IGIMIF_RIGHTMENU 0x0001 + +// dwType for ImmGetImeMenuItems +#define IGIMII_CMODE 0x0001 +#define IGIMII_SMODE 0x0002 +#define IGIMII_CONFIGURE 0x0004 +#define IGIMII_TOOLS 0x0008 +#define IGIMII_HELP 0x0010 +#define IGIMII_OTHER 0x0020 +#define IGIMII_INPUTTOOLS 0x0040 + +// fType of IMEMENUITEMINFO structure +#define IMFT_RADIOCHECK 0x00001 +#define IMFT_SEPARATOR 0x00002 +#define IMFT_SUBMENU 0x00004 + +// fState of IMEMENUITEMINFO structure +#define IMFS_GRAYED MFS_GRAYED +#define IMFS_DISABLED MFS_DISABLED +#define IMFS_CHECKED MFS_CHECKED +#define IMFS_HILITE MFS_HILITE +#define IMFS_ENABLED MFS_ENABLED +#define IMFS_UNCHECKED MFS_UNCHECKED +#define IMFS_UNHILITE MFS_UNHILITE +#define IMFS_DEFAULT MFS_DEFAULT + +#endif /* WINVER >= 0x040A */ + +// type of soft keyboard +// for Windows Tranditional Chinese Edition +#define SOFTKEYBOARD_TYPE_T1 0x0001 +// for Windows Simplified Chinese Edition +#define SOFTKEYBOARD_TYPE_C1 0x0002 + + +#endif // _IMM_SDK_DEFINED_ + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#ifdef __cplusplus +} +#endif + +#endif // _IMM_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/immdev.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/immdev.h new file mode 100644 index 0000000000000000000000000000000000000000..5295f270015bff2e46628499ee78ad48ac54a9f6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/immdev.h @@ -0,0 +1,1087 @@ +/**********************************************************************/ +/* immdev.h - Input Method Manager definitions */ +/* for IME developers */ +/* */ +/* Copyright (c) Microsoft Corporation. All rights reserved. */ +/**********************************************************************/ + +#ifndef _IMMDEV_ +#define _IMMDEV_ + + +#ifdef __cplusplus +extern "C" { +#endif + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) // padding added after data member +#endif + + +#ifndef _IMM_SDK_DEFINED_ +#define _IMM_SDK_DEFINED_ + + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#if (WINVER >= 0x040A) +DECLARE_HANDLE(HIMC); +DECLARE_HANDLE(HIMCC); +#else +typedef DWORD HIMC; +typedef DWORD HIMCC; +#endif /* WINVER >= 0x040A */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef HKL FAR *LPHKL; +typedef UINT FAR *LPUINT; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef struct tagCOMPOSITIONFORM { + DWORD dwStyle; + POINT ptCurrentPos; + RECT rcArea; +} COMPOSITIONFORM, *PCOMPOSITIONFORM, NEAR *NPCOMPOSITIONFORM, FAR *LPCOMPOSITIONFORM; + + +typedef struct tagCANDIDATEFORM { + DWORD dwIndex; + DWORD dwStyle; + POINT ptCurrentPos; + RECT rcArea; +} CANDIDATEFORM, *PCANDIDATEFORM, NEAR *NPCANDIDATEFORM, FAR *LPCANDIDATEFORM; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagCANDIDATELIST { + DWORD dwSize; + DWORD dwStyle; + DWORD dwCount; + DWORD dwSelection; + DWORD dwPageStart; + DWORD dwPageSize; + DWORD dwOffset[1]; +} CANDIDATELIST, *PCANDIDATELIST, NEAR *NPCANDIDATELIST, FAR *LPCANDIDATELIST; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef struct tagREGISTERWORDA { + LPSTR lpReading; + LPSTR lpWord; +} REGISTERWORDA, *PREGISTERWORDA, NEAR *NPREGISTERWORDA, FAR *LPREGISTERWORDA; +typedef struct tagREGISTERWORDW { + LPWSTR lpReading; + LPWSTR lpWord; +} REGISTERWORDW, *PREGISTERWORDW, NEAR *NPREGISTERWORDW, FAR *LPREGISTERWORDW; +#ifdef UNICODE +typedef REGISTERWORDW REGISTERWORD; +typedef PREGISTERWORDW PREGISTERWORD; +typedef NPREGISTERWORDW NPREGISTERWORD; +typedef LPREGISTERWORDW LPREGISTERWORD; +#else +typedef REGISTERWORDA REGISTERWORD; +typedef PREGISTERWORDA PREGISTERWORD; +typedef NPREGISTERWORDA NPREGISTERWORD; +typedef LPREGISTERWORDA LPREGISTERWORD; +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#if (WINVER >= 0x040A) + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagRECONVERTSTRING { + DWORD dwSize; + DWORD dwVersion; + DWORD dwStrLen; + DWORD dwStrOffset; + DWORD dwCompStrLen; + DWORD dwCompStrOffset; + DWORD dwTargetStrLen; + DWORD dwTargetStrOffset; +} RECONVERTSTRING, *PRECONVERTSTRING, NEAR *NPRECONVERTSTRING, FAR *LPRECONVERTSTRING; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* WINVER >= 0x040A */ + +#define STYLE_DESCRIPTION_SIZE 32 + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +typedef struct tagSTYLEBUFA { + DWORD dwStyle; + CHAR szDescription[STYLE_DESCRIPTION_SIZE]; +} STYLEBUFA, *PSTYLEBUFA, NEAR *NPSTYLEBUFA, FAR *LPSTYLEBUFA; +typedef struct tagSTYLEBUFW { + DWORD dwStyle; + WCHAR szDescription[STYLE_DESCRIPTION_SIZE]; +} STYLEBUFW, *PSTYLEBUFW, NEAR *NPSTYLEBUFW, FAR *LPSTYLEBUFW; +#ifdef UNICODE +typedef STYLEBUFW STYLEBUF; +typedef PSTYLEBUFW PSTYLEBUF; +typedef NPSTYLEBUFW NPSTYLEBUF; +typedef LPSTYLEBUFW LPSTYLEBUF; +#else +typedef STYLEBUFA STYLEBUF; +typedef PSTYLEBUFA PSTYLEBUF; +typedef NPSTYLEBUFA NPSTYLEBUF; +typedef LPSTYLEBUFA LPSTYLEBUF; +#endif // UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#if (WINVER >= 0x040A) + +#define IMEMENUITEM_STRING_SIZE 80 + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagIMEMENUITEMINFOA { + UINT cbSize; + UINT fType; + UINT fState; + UINT wID; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + DWORD dwItemData; + CHAR szString[IMEMENUITEM_STRING_SIZE]; + HBITMAP hbmpItem; +} IMEMENUITEMINFOA, *PIMEMENUITEMINFOA, NEAR *NPIMEMENUITEMINFOA, FAR *LPIMEMENUITEMINFOA; +typedef struct tagIMEMENUITEMINFOW { + UINT cbSize; + UINT fType; + UINT fState; + UINT wID; + HBITMAP hbmpChecked; + HBITMAP hbmpUnchecked; + DWORD dwItemData; + WCHAR szString[IMEMENUITEM_STRING_SIZE]; + HBITMAP hbmpItem; +} IMEMENUITEMINFOW, *PIMEMENUITEMINFOW, NEAR *NPIMEMENUITEMINFOW, FAR *LPIMEMENUITEMINFOW; +#ifdef UNICODE +typedef IMEMENUITEMINFOW IMEMENUITEMINFO; +typedef PIMEMENUITEMINFOW PIMEMENUITEMINFO; +typedef NPIMEMENUITEMINFOW NPIMEMENUITEMINFO; +typedef LPIMEMENUITEMINFOW LPIMEMENUITEMINFO; +#else +typedef IMEMENUITEMINFOA IMEMENUITEMINFO; +typedef PIMEMENUITEMINFOA PIMEMENUITEMINFO; +typedef NPIMEMENUITEMINFOA NPIMEMENUITEMINFO; +typedef LPIMEMENUITEMINFOA LPIMEMENUITEMINFO; +#endif // UNICODE + +typedef struct tagIMECHARPOSITION { + DWORD dwSize; + DWORD dwCharPos; + POINT pt; + UINT cLineHeight; + RECT rcDocument; +} IMECHARPOSITION, *PIMECHARPOSITION, NEAR *NPIMECHARPOSITION, FAR *LPIMECHARPOSITION; + +typedef BOOL (CALLBACK* IMCENUMPROC)(HIMC, LPARAM); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* WINVER >= 0x040A */ + + + +// prototype of IMM API + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +HKL WINAPI ImmInstallIMEA(_In_ LPCSTR lpszIMEFileName, _In_ LPCSTR lpszLayoutText); +HKL WINAPI ImmInstallIMEW(_In_ LPCWSTR lpszIMEFileName, _In_ LPCWSTR lpszLayoutText); +#ifdef UNICODE +#define ImmInstallIME ImmInstallIMEW +#else +#define ImmInstallIME ImmInstallIMEA +#endif // !UNICODE + +HWND WINAPI ImmGetDefaultIMEWnd(IN HWND); + +UINT WINAPI ImmGetDescriptionA(IN HKL, _Out_writes_opt_(uBufLen) LPSTR lpszDescription, IN UINT uBufLen); +UINT WINAPI ImmGetDescriptionW(IN HKL, _Out_writes_opt_(uBufLen) LPWSTR lpszDescription, IN UINT uBufLen); +#ifdef UNICODE +#define ImmGetDescription ImmGetDescriptionW +#else +#define ImmGetDescription ImmGetDescriptionA +#endif // !UNICODE + +UINT WINAPI ImmGetIMEFileNameA(IN HKL, _Out_writes_opt_(uBufLen) LPSTR lpszFileName, IN UINT uBufLen); +UINT WINAPI ImmGetIMEFileNameW(IN HKL, _Out_writes_opt_(uBufLen) LPWSTR lpszFileName, IN UINT uBufLen); +#ifdef UNICODE +#define ImmGetIMEFileName ImmGetIMEFileNameW +#else +#define ImmGetIMEFileName ImmGetIMEFileNameA +#endif // !UNICODE + +DWORD WINAPI ImmGetProperty(IN HKL, IN DWORD); + +BOOL WINAPI ImmIsIME(IN HKL); + +BOOL WINAPI ImmSimulateHotKey(IN HWND, IN DWORD); + +HIMC WINAPI ImmCreateContext(void); +BOOL WINAPI ImmDestroyContext(IN HIMC); +HIMC WINAPI ImmGetContext(IN HWND); +BOOL WINAPI ImmReleaseContext(IN HWND, IN HIMC); +HIMC WINAPI ImmAssociateContext(IN HWND, IN HIMC); +#if (WINVER >= 0x040A) +BOOL WINAPI ImmAssociateContextEx(_In_ HWND, _In_ HIMC, _In_ DWORD); +#endif /* WINVER >= 0x040A */ + +LONG WINAPI ImmGetCompositionStringA(IN HIMC, IN DWORD, _Out_writes_bytes_opt_(dwBufLen) LPVOID lpBuf, IN DWORD dwBufLen); +LONG WINAPI ImmGetCompositionStringW(IN HIMC, IN DWORD, _Out_writes_bytes_opt_(dwBufLen) LPVOID lpBuf, IN DWORD dwBufLen); +#ifdef UNICODE +#define ImmGetCompositionString ImmGetCompositionStringW +#else +#define ImmGetCompositionString ImmGetCompositionStringA +#endif // !UNICODE + +BOOL WINAPI ImmSetCompositionStringA(IN HIMC, IN DWORD dwIndex, _In_reads_bytes_opt_(dwCompLen) LPVOID lpComp, IN DWORD dwCompLen, _In_reads_bytes_opt_(dwReadLen) LPVOID lpRead, IN DWORD dwReadLen); +BOOL WINAPI ImmSetCompositionStringW(IN HIMC, IN DWORD dwIndex, _In_reads_bytes_opt_(dwCompLen) LPVOID lpComp, IN DWORD dwCompLen, _In_reads_bytes_opt_(dwReadLen) LPVOID lpRead, IN DWORD dwReadLen); +#ifdef UNICODE +#define ImmSetCompositionString ImmSetCompositionStringW +#else +#define ImmSetCompositionString ImmSetCompositionStringA +#endif // !UNICODE + +DWORD WINAPI ImmGetCandidateListCountA(IN HIMC, _Out_ LPDWORD lpdwListCount); +DWORD WINAPI ImmGetCandidateListCountW(IN HIMC, _Out_ LPDWORD lpdwListCount); +#ifdef UNICODE +#define ImmGetCandidateListCount ImmGetCandidateListCountW +#else +#define ImmGetCandidateListCount ImmGetCandidateListCountA +#endif // !UNICODE + +DWORD WINAPI ImmGetCandidateListA(IN HIMC, IN DWORD deIndex, _Out_writes_bytes_opt_(dwBufLen) LPCANDIDATELIST lpCandList, IN DWORD dwBufLen); +DWORD WINAPI ImmGetCandidateListW(IN HIMC, IN DWORD deIndex, _Out_writes_bytes_opt_(dwBufLen) LPCANDIDATELIST lpCandList, IN DWORD dwBufLen); +#ifdef UNICODE +#define ImmGetCandidateList ImmGetCandidateListW +#else +#define ImmGetCandidateList ImmGetCandidateListA +#endif // !UNICODE + +DWORD WINAPI ImmGetGuideLineA(_In_ HIMC, _In_ DWORD dwIndex, _Out_writes_bytes_opt_(dwBufLen) LPSTR lpBuf, _In_ DWORD dwBufLen); +DWORD WINAPI ImmGetGuideLineW(_In_ HIMC, _In_ DWORD dwIndex, _Out_writes_bytes_opt_(dwBufLen) LPWSTR lpBuf, _In_ DWORD dwBufLen); +#ifdef UNICODE +#define ImmGetGuideLine ImmGetGuideLineW +#else +#define ImmGetGuideLine ImmGetGuideLineA +#endif // !UNICODE + +BOOL WINAPI ImmGetConversionStatus(IN HIMC, _Out_opt_ LPDWORD lpfdwConversion, _Out_opt_ LPDWORD lpfdwSentence); +BOOL WINAPI ImmSetConversionStatus(IN HIMC, IN DWORD, IN DWORD); +BOOL WINAPI ImmGetOpenStatus(IN HIMC); +BOOL WINAPI ImmSetOpenStatus(IN HIMC, IN BOOL); + +#if defined(_WINGDI_) && !defined(NOGDI) +BOOL WINAPI ImmGetCompositionFontA(IN HIMC, _Out_ LPLOGFONTA lplf); +BOOL WINAPI ImmGetCompositionFontW(IN HIMC, _Out_ LPLOGFONTW lplf); +#ifdef UNICODE +#define ImmGetCompositionFont ImmGetCompositionFontW +#else +#define ImmGetCompositionFont ImmGetCompositionFontA +#endif // !UNICODE + +BOOL WINAPI ImmSetCompositionFontA(IN HIMC, _In_ LPLOGFONTA lplf); +BOOL WINAPI ImmSetCompositionFontW(IN HIMC, _In_ LPLOGFONTW lplf); +#ifdef UNICODE +#define ImmSetCompositionFont ImmSetCompositionFontW +#else +#define ImmSetCompositionFont ImmSetCompositionFontA +#endif // !UNICODE +#endif // defined(_WINGDI_) && !defined(NOGDI) + +BOOL WINAPI ImmConfigureIMEA(IN HKL, IN HWND, IN DWORD, IN LPVOID); +BOOL WINAPI ImmConfigureIMEW(IN HKL, IN HWND, IN DWORD, IN LPVOID); +#ifdef UNICODE +#define ImmConfigureIME ImmConfigureIMEW +#else +#define ImmConfigureIME ImmConfigureIMEA +#endif // !UNICODE + +LRESULT WINAPI ImmEscapeA(IN HKL, IN HIMC, IN UINT, IN LPVOID); +LRESULT WINAPI ImmEscapeW(IN HKL, IN HIMC, IN UINT, IN LPVOID); +#ifdef UNICODE +#define ImmEscape ImmEscapeW +#else +#define ImmEscape ImmEscapeA +#endif // !UNICODE + +DWORD WINAPI ImmGetConversionListA(IN HKL, IN HIMC, _In_ LPCSTR lpSrc, _Out_writes_bytes_(dwBufLen) LPCANDIDATELIST lpDst, IN DWORD dwBufLen, IN UINT uFlag); +DWORD WINAPI ImmGetConversionListW(IN HKL, IN HIMC, _In_ LPCWSTR lpSrc, _Out_writes_bytes_(dwBufLen) LPCANDIDATELIST lpDst, IN DWORD dwBufLen, IN UINT uFlag); +#ifdef UNICODE +#define ImmGetConversionList ImmGetConversionListW +#else +#define ImmGetConversionList ImmGetConversionListA +#endif // !UNICODE + +BOOL WINAPI ImmNotifyIME(IN HIMC, IN DWORD dwAction, IN DWORD dwIndex, IN DWORD dwValue); + +BOOL WINAPI ImmGetStatusWindowPos(IN HIMC, _Out_ LPPOINT lpptPos); +BOOL WINAPI ImmSetStatusWindowPos(IN HIMC, _In_ LPPOINT lpptPos); +BOOL WINAPI ImmGetCompositionWindow(IN HIMC, _Out_ LPCOMPOSITIONFORM lpCompForm); +BOOL WINAPI ImmSetCompositionWindow(IN HIMC, _In_ LPCOMPOSITIONFORM lpCompForm); +BOOL WINAPI ImmGetCandidateWindow(IN HIMC, IN DWORD, _Out_ LPCANDIDATEFORM lpCandidate); +BOOL WINAPI ImmSetCandidateWindow(IN HIMC, _In_ LPCANDIDATEFORM lpCandidate); + +BOOL WINAPI ImmIsUIMessageA(IN HWND, IN UINT, IN WPARAM, IN LPARAM); +BOOL WINAPI ImmIsUIMessageW(IN HWND, IN UINT, IN WPARAM, IN LPARAM); +#ifdef UNICODE +#define ImmIsUIMessage ImmIsUIMessageW +#else +#define ImmIsUIMessage ImmIsUIMessageA +#endif // !UNICODE + +UINT WINAPI ImmGetVirtualKey(IN HWND); + +typedef int (CALLBACK *REGISTERWORDENUMPROCA)(_In_ LPCSTR lpszReading, DWORD, _In_ LPCSTR lpszString, LPVOID); +typedef int (CALLBACK *REGISTERWORDENUMPROCW)(_In_ LPCWSTR lpszReading, DWORD, _In_ LPCWSTR lpszString, LPVOID); +#ifdef UNICODE +#define REGISTERWORDENUMPROC REGISTERWORDENUMPROCW +#else +#define REGISTERWORDENUMPROC REGISTERWORDENUMPROCA +#endif // !UNICODE + +BOOL WINAPI ImmRegisterWordA(IN HKL, _In_ LPCSTR lpszReading, IN DWORD, _In_ LPCSTR lpszRegister); +BOOL WINAPI ImmRegisterWordW(IN HKL, _In_ LPCWSTR lpszReading, IN DWORD, _In_ LPCWSTR lpszRegister); +#ifdef UNICODE +#define ImmRegisterWord ImmRegisterWordW +#else +#define ImmRegisterWord ImmRegisterWordA +#endif // !UNICODE + +BOOL WINAPI ImmUnregisterWordA(IN HKL, _In_ LPCSTR lpszReading, IN DWORD, _In_ LPCSTR lpszUnregister); +BOOL WINAPI ImmUnregisterWordW(IN HKL, _In_ LPCWSTR lpszReading, IN DWORD, _In_ LPCWSTR lpszUnregister); +#ifdef UNICODE +#define ImmUnregisterWord ImmUnregisterWordW +#else +#define ImmUnregisterWord ImmUnregisterWordA +#endif // !UNICODE + +UINT WINAPI ImmGetRegisterWordStyleA(IN HKL, IN UINT nItem, _Out_writes_(nItem) LPSTYLEBUFA lpStyleBuf); +UINT WINAPI ImmGetRegisterWordStyleW(IN HKL, IN UINT nItem, _Out_writes_(nItem) LPSTYLEBUFW lpStyleBuf); +#ifdef UNICODE +#define ImmGetRegisterWordStyle ImmGetRegisterWordStyleW +#else +#define ImmGetRegisterWordStyle ImmGetRegisterWordStyleA +#endif // !UNICODE + +UINT WINAPI ImmEnumRegisterWordA(IN HKL, IN REGISTERWORDENUMPROCA, _In_opt_ LPCSTR lpszReading, IN DWORD, _In_opt_ LPCSTR lpszRegister, IN LPVOID); +UINT WINAPI ImmEnumRegisterWordW(IN HKL, IN REGISTERWORDENUMPROCW, _In_opt_ LPCWSTR lpszReading, IN DWORD, _In_opt_ LPCWSTR lpszRegister, IN LPVOID); +#ifdef UNICODE +#define ImmEnumRegisterWord ImmEnumRegisterWordW +#else +#define ImmEnumRegisterWord ImmEnumRegisterWordA +#endif // !UNICODE + +#if (WINVER >= 0x040A) +BOOL WINAPI ImmDisableIME(IN DWORD); +BOOL WINAPI ImmEnumInputContext(DWORD idThread, IMCENUMPROC lpfn, LPARAM lParam); +DWORD WINAPI ImmGetImeMenuItemsA(IN HIMC, IN DWORD, IN DWORD, _Out_opt_ LPIMEMENUITEMINFOA lpImeParentMenu, _Out_writes_bytes_opt_(dwSize) LPIMEMENUITEMINFOA lpImeMenu, IN DWORD dwSize); +DWORD WINAPI ImmGetImeMenuItemsW(IN HIMC, IN DWORD, IN DWORD, _Out_opt_ LPIMEMENUITEMINFOW lpImeParentMenu, _Out_writes_bytes_opt_(dwSize) LPIMEMENUITEMINFOW lpImeMenu, IN DWORD dwSize); +#ifdef UNICODE +#define ImmGetImeMenuItems ImmGetImeMenuItemsW +#else +#define ImmGetImeMenuItems ImmGetImeMenuItemsA +#endif // !UNICODE + +BOOL WINAPI ImmDisableTextFrameService(DWORD idThread); +#endif /* WINVER >= 0x040A */ + +#if (WINVER >= 0x0602) +BOOL WINAPI ImmDisableLegacyIME(void); +#endif /* WINVER >= 0x0602 */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +// wParam for WM_IME_CONTROL +#define IMC_GETCANDIDATEPOS 0x0007 +#define IMC_SETCANDIDATEPOS 0x0008 +#define IMC_GETCOMPOSITIONFONT 0x0009 +#define IMC_SETCOMPOSITIONFONT 0x000A +#define IMC_GETCOMPOSITIONWINDOW 0x000B +#define IMC_SETCOMPOSITIONWINDOW 0x000C +#define IMC_GETSTATUSWINDOWPOS 0x000F +#define IMC_SETSTATUSWINDOWPOS 0x0010 +#define IMC_CLOSESTATUSWINDOW 0x0021 +#define IMC_OPENSTATUSWINDOW 0x0022 + + +// dwAction for ImmNotifyIME +#define NI_OPENCANDIDATE 0x0010 +#define NI_CLOSECANDIDATE 0x0011 +#define NI_SELECTCANDIDATESTR 0x0012 +#define NI_CHANGECANDIDATELIST 0x0013 +#define NI_FINALIZECONVERSIONRESULT 0x0014 +#define NI_COMPOSITIONSTR 0x0015 +#define NI_SETCANDIDATE_PAGESTART 0x0016 +#define NI_SETCANDIDATE_PAGESIZE 0x0017 +#define NI_IMEMENUSELECTED 0x0018 + +// lParam for WM_IME_SETCONTEXT +#define ISC_SHOWUICANDIDATEWINDOW 0x00000001 +#define ISC_SHOWUICOMPOSITIONWINDOW 0x80000000 +#define ISC_SHOWUIGUIDELINE 0x40000000 +#define ISC_SHOWUIALLCANDIDATEWINDOW 0x0000000F +#define ISC_SHOWUIALL 0xC000000F + + +// dwIndex for ImmNotifyIME/NI_COMPOSITIONSTR +#define CPS_COMPLETE 0x0001 +#define CPS_CONVERT 0x0002 +#define CPS_REVERT 0x0003 +#define CPS_CANCEL 0x0004 + +// the modifiers of hot key +#define MOD_ALT 0x0001 +#define MOD_CONTROL 0x0002 +#define MOD_SHIFT 0x0004 + +#define MOD_LEFT 0x8000 +#define MOD_RIGHT 0x4000 + +#define MOD_ON_KEYUP 0x0800 +#define MOD_IGNORE_ALL_MODIFIER 0x0400 + + +// Windows for Simplified Chinese Edition hot key ID from 0x10 - 0x2F +#define IME_CHOTKEY_IME_NONIME_TOGGLE 0x10 +#define IME_CHOTKEY_SHAPE_TOGGLE 0x11 +#define IME_CHOTKEY_SYMBOL_TOGGLE 0x12 + +// Windows for Japanese Edition hot key ID from 0x30 - 0x4F +#define IME_JHOTKEY_CLOSE_OPEN 0x30 + +// Windows for Korean Edition hot key ID from 0x50 - 0x6F +#define IME_KHOTKEY_SHAPE_TOGGLE 0x50 +#define IME_KHOTKEY_HANJACONVERT 0x51 +#define IME_KHOTKEY_ENGLISH 0x52 + +// Windows for Traditional Chinese Edition hot key ID from 0x70 - 0x8F +#define IME_THOTKEY_IME_NONIME_TOGGLE 0x70 +#define IME_THOTKEY_SHAPE_TOGGLE 0x71 +#define IME_THOTKEY_SYMBOL_TOGGLE 0x72 + +// direct switch hot key ID from 0x100 - 0x11F +#define IME_HOTKEY_DSWITCH_FIRST 0x100 +#define IME_HOTKEY_DSWITCH_LAST 0x11F + +// IME private hot key from 0x200 - 0x21F +#define IME_HOTKEY_PRIVATE_FIRST 0x200 +#define IME_ITHOTKEY_RESEND_RESULTSTR 0x200 +#define IME_ITHOTKEY_PREVIOUS_COMPOSITION 0x201 +#define IME_ITHOTKEY_UISTYLE_TOGGLE 0x202 +#define IME_ITHOTKEY_RECONVERTSTRING 0x203 +#define IME_HOTKEY_PRIVATE_LAST 0x21F + + +// parameter of ImmGetCompositionString +#define GCS_COMPREADSTR 0x0001 +#define GCS_COMPREADATTR 0x0002 +#define GCS_COMPREADCLAUSE 0x0004 +#define GCS_COMPSTR 0x0008 +#define GCS_COMPATTR 0x0010 +#define GCS_COMPCLAUSE 0x0020 +#define GCS_CURSORPOS 0x0080 +#define GCS_DELTASTART 0x0100 +#define GCS_RESULTREADSTR 0x0200 +#define GCS_RESULTREADCLAUSE 0x0400 +#define GCS_RESULTSTR 0x0800 +#define GCS_RESULTCLAUSE 0x1000 + +// style bit flags for WM_IME_COMPOSITION +#define CS_INSERTCHAR 0x2000 +#define CS_NOMOVECARET 0x4000 + +// IME version constants +#define IMEVER_0310 0x0003000A +#define IMEVER_0400 0x00040000 + + +// IME property bits +#define IME_PROP_AT_CARET 0x00010000 +#define IME_PROP_SPECIAL_UI 0x00020000 +#define IME_PROP_CANDLIST_START_FROM_1 0x00040000 +#define IME_PROP_UNICODE 0x00080000 +#define IME_PROP_COMPLETE_ON_UNSELECT 0x00100000 + + +// IME UICapability bits +#define UI_CAP_2700 0x00000001 +#define UI_CAP_ROT90 0x00000002 +#define UI_CAP_ROTANY 0x00000004 + +// ImmSetCompositionString Capability bits +#define SCS_CAP_COMPSTR 0x00000001 +#define SCS_CAP_MAKEREAD 0x00000002 +#define SCS_CAP_SETRECONVERTSTRING 0x00000004 + + +// IME WM_IME_SELECT inheritance Capability bits +#define SELECT_CAP_CONVERSION 0x00000001 +#define SELECT_CAP_SENTENCE 0x00000002 + + +// ID for deIndex of ImmGetGuideLine +#define GGL_LEVEL 0x00000001 +#define GGL_INDEX 0x00000002 +#define GGL_STRING 0x00000003 +#define GGL_PRIVATE 0x00000004 + + +// ID for dwLevel of GUIDELINE Structure +#define GL_LEVEL_NOGUIDELINE 0x00000000 +#define GL_LEVEL_FATAL 0x00000001 +#define GL_LEVEL_ERROR 0x00000002 +#define GL_LEVEL_WARNING 0x00000003 +#define GL_LEVEL_INFORMATION 0x00000004 + + +// ID for dwIndex of GUIDELINE Structure +#define GL_ID_UNKNOWN 0x00000000 +#define GL_ID_NOMODULE 0x00000001 +#define GL_ID_NODICTIONARY 0x00000010 +#define GL_ID_CANNOTSAVE 0x00000011 +#define GL_ID_NOCONVERT 0x00000020 +#define GL_ID_TYPINGERROR 0x00000021 +#define GL_ID_TOOMANYSTROKE 0x00000022 +#define GL_ID_READINGCONFLICT 0x00000023 +#define GL_ID_INPUTREADING 0x00000024 +#define GL_ID_INPUTRADICAL 0x00000025 +#define GL_ID_INPUTCODE 0x00000026 +#define GL_ID_INPUTSYMBOL 0x00000027 +#define GL_ID_CHOOSECANDIDATE 0x00000028 +#define GL_ID_REVERSECONVERSION 0x00000029 +#define GL_ID_PRIVATE_FIRST 0x00008000 +#define GL_ID_PRIVATE_LAST 0x0000FFFF + + +// ID for dwIndex of ImmGetProperty +#define IGP_GETIMEVERSION (DWORD)(-4) +#define IGP_PROPERTY 0x00000004 +#define IGP_CONVERSION 0x00000008 +#define IGP_SENTENCE 0x0000000c +#define IGP_UI 0x00000010 +#define IGP_SETCOMPSTR 0x00000014 +#define IGP_SELECT 0x00000018 + +// dwIndex for ImmSetCompositionString API +#define SCS_SETSTR (GCS_COMPREADSTR|GCS_COMPSTR) +#define SCS_CHANGEATTR (GCS_COMPREADATTR|GCS_COMPATTR) +#define SCS_CHANGECLAUSE (GCS_COMPREADCLAUSE|GCS_COMPCLAUSE) +#define SCS_SETRECONVERTSTRING 0x00010000 +#define SCS_QUERYRECONVERTSTRING 0x00020000 + +// attribute for COMPOSITIONSTRING Structure +#define ATTR_INPUT 0x00 +#define ATTR_TARGET_CONVERTED 0x01 +#define ATTR_CONVERTED 0x02 +#define ATTR_TARGET_NOTCONVERTED 0x03 +#define ATTR_INPUT_ERROR 0x04 +#define ATTR_FIXEDCONVERTED 0x05 + +// bit field for IMC_SETCOMPOSITIONWINDOW, IMC_SETCANDIDATEWINDOW +#define CFS_DEFAULT 0x0000 +#define CFS_RECT 0x0001 +#define CFS_POINT 0x0002 +#define CFS_FORCE_POSITION 0x0020 +#define CFS_CANDIDATEPOS 0x0040 +#define CFS_EXCLUDE 0x0080 + +// conversion direction for ImmGetConversionList +#define GCL_CONVERSION 0x0001 +#define GCL_REVERSECONVERSION 0x0002 +#define GCL_REVERSE_LENGTH 0x0003 + + +#include + +// bit field for conversion mode +// IME_CMODE_HANGEUL is old name of IME_CMODE_HANGUL. It will be gone eventually. +#define IME_CMODE_HANGEUL IME_CMODE_NATIVE +#define IME_CMODE_SOFTKBD 0x0080 +#define IME_CMODE_NOCONVERSION 0x0100 +#define IME_CMODE_EUDC 0x0200 +#define IME_CMODE_SYMBOL 0x0400 +#define IME_CMODE_FIXED 0x0800 +#define IME_CMODE_RESERVED 0xF0000000 + +// bit field for sentence mode +#define IME_SMODE_NONE 0x0000 +#define IME_SMODE_PLAURALCLAUSE 0x0001 +#define IME_SMODE_SINGLECONVERT 0x0002 +#define IME_SMODE_AUTOMATIC 0x0004 +#define IME_SMODE_PHRASEPREDICT 0x0008 +#define IME_SMODE_CONVERSATION 0x0010 +#define IME_SMODE_RESERVED 0x0000F000 + + +// style of candidate +#define IME_CAND_UNKNOWN 0x0000 +#define IME_CAND_READ 0x0001 +#define IME_CAND_CODE 0x0002 +#define IME_CAND_MEANING 0x0003 +#define IME_CAND_RADICAL 0x0004 +#define IME_CAND_STROKE 0x0005 + +// wParam of report message WM_IME_NOTIFY +#define IMN_CLOSESTATUSWINDOW 0x0001 +#define IMN_OPENSTATUSWINDOW 0x0002 +#define IMN_CHANGECANDIDATE 0x0003 +#define IMN_CLOSECANDIDATE 0x0004 +#define IMN_OPENCANDIDATE 0x0005 +#define IMN_SETCONVERSIONMODE 0x0006 +#define IMN_SETSENTENCEMODE 0x0007 +#define IMN_SETOPENSTATUS 0x0008 +#define IMN_SETCANDIDATEPOS 0x0009 +#define IMN_SETCOMPOSITIONFONT 0x000A +#define IMN_SETCOMPOSITIONWINDOW 0x000B +#define IMN_SETSTATUSWINDOWPOS 0x000C +#define IMN_GUIDELINE 0x000D +#define IMN_PRIVATE 0x000E + +#if (WINVER >= 0x040A) +// wParam of report message WM_IME_REQUEST +#define IMR_COMPOSITIONWINDOW 0x0001 +#define IMR_CANDIDATEWINDOW 0x0002 +#define IMR_COMPOSITIONFONT 0x0003 +#define IMR_RECONVERTSTRING 0x0004 +#define IMR_CONFIRMRECONVERTSTRING 0x0005 +#define IMR_QUERYCHARPOSITION 0x0006 +#define IMR_DOCUMENTFEED 0x0007 +#endif /* WINVER >= 0x040A */ + +// error code of ImmGetCompositionString +#define IMM_ERROR_NODATA (-1) +#define IMM_ERROR_GENERAL (-2) + + +// dialog mode of ImmConfigureIME +#define IME_CONFIG_GENERAL 1 +#define IME_CONFIG_REGISTERWORD 2 +#define IME_CONFIG_SELECTDICTIONARY 3 + + +// flags for ImmEscape +#define IME_ESC_QUERY_SUPPORT 0x0003 +#define IME_ESC_RESERVED_FIRST 0x0004 +#define IME_ESC_RESERVED_LAST 0x07FF +#define IME_ESC_PRIVATE_FIRST 0x0800 +#define IME_ESC_PRIVATE_LAST 0x0FFF + +#define IME_ESC_SEQUENCE_TO_INTERNAL 0x1001 +#define IME_ESC_GET_EUDC_DICTIONARY 0x1003 +#define IME_ESC_SET_EUDC_DICTIONARY 0x1004 +#define IME_ESC_MAX_KEY 0x1005 +#define IME_ESC_IME_NAME 0x1006 +#define IME_ESC_SYNC_HOTKEY 0x1007 +#define IME_ESC_HANJA_MODE 0x1008 +#define IME_ESC_AUTOMATA 0x1009 +#define IME_ESC_PRIVATE_HOTKEY 0x100a +#define IME_ESC_GETHELPFILENAME 0x100b + +// style of word registration +#define IME_REGWORD_STYLE_EUDC 0x00000001 +#define IME_REGWORD_STYLE_USER_FIRST 0x80000000 +#define IME_REGWORD_STYLE_USER_LAST 0xFFFFFFFF + + +#if (WINVER >= 0x040A) + +// dwFlags for ImmAssociateContextEx +#define IACE_CHILDREN 0x0001 +#define IACE_DEFAULT 0x0010 +#define IACE_IGNORENOCONTEXT 0x0020 + +// dwFlags for ImmGetImeMenuItems +#define IGIMIF_RIGHTMENU 0x0001 + +// dwType for ImmGetImeMenuItems +#define IGIMII_CMODE 0x0001 +#define IGIMII_SMODE 0x0002 +#define IGIMII_CONFIGURE 0x0004 +#define IGIMII_TOOLS 0x0008 +#define IGIMII_HELP 0x0010 +#define IGIMII_OTHER 0x0020 +#define IGIMII_INPUTTOOLS 0x0040 + +// fType of IMEMENUITEMINFO structure +#define IMFT_RADIOCHECK 0x00001 +#define IMFT_SEPARATOR 0x00002 +#define IMFT_SUBMENU 0x00004 + +// fState of IMEMENUITEMINFO structure +#define IMFS_GRAYED MFS_GRAYED +#define IMFS_DISABLED MFS_DISABLED +#define IMFS_CHECKED MFS_CHECKED +#define IMFS_HILITE MFS_HILITE +#define IMFS_ENABLED MFS_ENABLED +#define IMFS_UNCHECKED MFS_UNCHECKED +#define IMFS_UNHILITE MFS_UNHILITE +#define IMFS_DEFAULT MFS_DEFAULT + +#endif /* WINVER >= 0x040A */ + +// type of soft keyboard +// for Windows Tranditional Chinese Edition +#define SOFTKEYBOARD_TYPE_T1 0x0001 +// for Windows Simplified Chinese Edition +#define SOFTKEYBOARD_TYPE_C1 0x0002 + + +#endif // _IMM_SDK_DEFINED_ + +#ifndef _IMM_DDK_DEFINED_ +#define _IMM_DDK_DEFINED_ + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagCOMPOSITIONSTRING { + DWORD dwSize; + DWORD dwCompReadAttrLen; + DWORD dwCompReadAttrOffset; + DWORD dwCompReadClauseLen; + DWORD dwCompReadClauseOffset; + DWORD dwCompReadStrLen; + DWORD dwCompReadStrOffset; + DWORD dwCompAttrLen; + DWORD dwCompAttrOffset; + DWORD dwCompClauseLen; + DWORD dwCompClauseOffset; + DWORD dwCompStrLen; + DWORD dwCompStrOffset; + DWORD dwCursorPos; + DWORD dwDeltaStart; + DWORD dwResultReadClauseLen; + DWORD dwResultReadClauseOffset; + DWORD dwResultReadStrLen; + DWORD dwResultReadStrOffset; + DWORD dwResultClauseLen; + DWORD dwResultClauseOffset; + DWORD dwResultStrLen; + DWORD dwResultStrOffset; + DWORD dwPrivateSize; + DWORD dwPrivateOffset; +} COMPOSITIONSTRING, *PCOMPOSITIONSTRING, NEAR *NPCOMPOSITIONSTRING, FAR *LPCOMPOSITIONSTRING; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagGUIDELINE { + DWORD dwSize; + DWORD dwLevel; + DWORD dwIndex; + DWORD dwStrLen; + DWORD dwStrOffset; + DWORD dwPrivateSize; + DWORD dwPrivateOffset; +} GUIDELINE, *PGUIDELINE, NEAR *NPGUIDELINE, FAR *LPGUIDELINE; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#if (WINVER >= 0x040A) + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagTRANSMSG { + UINT message; + WPARAM wParam; + LPARAM lParam; +} TRANSMSG, *PTRANSMSG, NEAR *NPTRANSMSG, FAR *LPTRANSMSG; + +typedef struct tagTRANSMSGLIST { + UINT uMsgCount; + TRANSMSG TransMsg[1]; +} TRANSMSGLIST, *PTRANSMSGLIST, NEAR *NPTRANSMSGLIST, FAR *LPTRANSMSGLIST; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* WINVER >= 0x040A */ + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagCANDIDATEINFO { + DWORD dwSize; + DWORD dwCount; + DWORD dwOffset[32]; + DWORD dwPrivateSize; + DWORD dwPrivateOffset; +} CANDIDATEINFO, *PCANDIDATEINFO, NEAR *NPCANDIDATEINFO, FAR *LPCANDIDATEINFO; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagINPUTCONTEXT { + HWND hWnd; + BOOL fOpen; + POINT ptStatusWndPos; + POINT ptSoftKbdPos; + DWORD fdwConversion; + DWORD fdwSentence; + union { + LOGFONTA A; + LOGFONTW W; + } lfFont; + COMPOSITIONFORM cfCompForm; + CANDIDATEFORM cfCandForm[4]; + HIMCC hCompStr; + HIMCC hCandInfo; + HIMCC hGuideLine; + HIMCC hPrivate; + DWORD dwNumMsgBuf; + HIMCC hMsgBuf; + DWORD fdwInit; + DWORD dwReserve[3]; +} INPUTCONTEXT, *PINPUTCONTEXT, NEAR *NPINPUTCONTEXT, FAR *LPINPUTCONTEXT; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct tagIMEINFO { + DWORD dwPrivateDataSize; + DWORD fdwProperty; + DWORD fdwConversionCaps; + DWORD fdwSentenceCaps; + DWORD fdwUICaps; + DWORD fdwSCSCaps; + DWORD fdwSelectCaps; +} IMEINFO, *PIMEINFO, NEAR *NPIMEINFO, FAR *LPIMEINFO; + +typedef struct tagSOFTKBDDATA { + UINT uCount; + WORD wCode[1][256]; +} SOFTKBDDATA, *PSOFTKBDDATA, NEAR *NPSOFTKBDDATA, FAR * LPSOFTKBDDATA; + +BOOL WINAPI ImmGetHotKey(IN DWORD, _Out_ LPUINT lpuModifiers, _Out_ LPUINT lpuVKey, _Out_ LPHKL phKL); +BOOL WINAPI ImmSetHotKey(IN DWORD, IN UINT, IN UINT, IN HKL); +BOOL WINAPI ImmGenerateMessage(IN HIMC); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#if (WINVER >= 0x040A) + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +LRESULT WINAPI ImmRequestMessageA(IN HIMC, IN WPARAM, IN LPARAM); +LRESULT WINAPI ImmRequestMessageW(IN HIMC, IN WPARAM, IN LPARAM); +#ifdef UNICODE +#define ImmRequestMessage ImmRequestMessageW +#else +#define ImmRequestMessage ImmRequestMessageA +#endif // !UNICODE + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* WINVER >= 0x040A */ + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// +// Prototype of soft keyboard APIs +// + +HWND WINAPI ImmCreateSoftKeyboard(IN UINT, IN HWND, IN int, IN int); +BOOL WINAPI ImmDestroySoftKeyboard(IN HWND); +BOOL WINAPI ImmShowSoftKeyboard(IN HWND, IN int); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +LPINPUTCONTEXT WINAPI ImmLockIMC(IN HIMC); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +BOOL WINAPI ImmUnlockIMC(IN HIMC); +DWORD WINAPI ImmGetIMCLockCount(IN HIMC); + + HIMCC WINAPI ImmCreateIMCC(IN DWORD); +HIMCC WINAPI ImmDestroyIMCC(IN HIMCC); +LPVOID WINAPI ImmLockIMCC(IN HIMCC); +BOOL WINAPI ImmUnlockIMCC(IN HIMCC); +DWORD WINAPI ImmGetIMCCLockCount(IN HIMCC); + HIMCC WINAPI ImmReSizeIMCC(IN HIMCC, IN DWORD); +DWORD WINAPI ImmGetIMCCSize(IN HIMCC); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +// the window extra offset +#define IMMGWL_IMC 0 +#define IMMGWL_PRIVATE (sizeof(LONG)) + +#ifdef _WIN64 +#undef IMMGWL_IMC +#undef IMMGWL_PRIVATE +#endif /* _WIN64 */ + +#define IMMGWLP_IMC 0 +#define IMMGWLP_PRIVATE (sizeof(LONG_PTR)) + + +// for NI_CONTEXTUPDATED +#define IMC_SETCONVERSIONMODE 0x0002 +#define IMC_SETSENTENCEMODE 0x0004 +#define IMC_SETOPENSTATUS 0x0006 + +// wParam for WM_IME_CONTROL to the soft keyboard +#define IMC_GETSOFTKBDFONT 0x0011 +#define IMC_SETSOFTKBDFONT 0x0012 +#define IMC_GETSOFTKBDPOS 0x0013 +#define IMC_SETSOFTKBDPOS 0x0014 +#define IMC_GETSOFTKBDSUBTYPE 0x0015 +#define IMC_SETSOFTKBDSUBTYPE 0x0016 +#define IMC_SETSOFTKBDDATA 0x0018 + + +// dwAction for ImmNotifyIME +#define NI_CONTEXTUPDATED 0x0003 +// dwSystemInfoFlags bits +#define IME_SYSINFO_WINLOGON 0x0001 + +#define GCS_COMP (GCS_COMPSTR|GCS_COMPATTR|GCS_COMPCLAUSE) +#define GCS_COMPREAD (GCS_COMPREADSTR|GCS_COMPREADATTR |GCS_COMPREADCLAUSE) +#define GCS_RESULT (GCS_RESULTSTR|GCS_RESULTCLAUSE) +#define GCS_RESULTREAD (GCS_RESULTREADSTR|GCS_RESULTREADCLAUSE) + + +// bits of fdwInit of INPUTCONTEXT +#define INIT_STATUSWNDPOS 0x00000001 +#define INIT_CONVERSION 0x00000002 +#define INIT_SENTENCE 0x00000004 +#define INIT_LOGFONT 0x00000008 +#define INIT_COMPFORM 0x00000010 +#define INIT_SOFTKBDPOS 0x00000020 + +// IME property bits +#define IME_PROP_END_UNLOAD 0x00000001 +#define IME_PROP_KBD_CHAR_FIRST 0x00000002 +#define IME_PROP_IGNORE_UPKEYS 0x00000004 +#define IME_PROP_NEED_ALTKEY 0x00000008 +#define IME_PROP_NO_KEYS_ON_CLOSE 0x00000010 +#define IME_PROP_ACCEPT_WIDE_VKEY 0x00000020 + +// IME UICapability bits +#define UI_CAP_SOFTKBD 0x00010000 + +#define IMN_SOFTKBDDESTROYED 0x0011 + + +// flags for ImmEscape + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +// prototype of IME APIs +BOOL WINAPI ImeInquire(_In_ LPIMEINFO lpIMEInfo, _Out_writes_(IME_UI_CLASS_NAME_SIZE) LPTSTR lpszUIClass, IN DWORD dwSystemInfoFlags); +BOOL WINAPI ImeConfigure(IN HKL, IN HWND, IN DWORD, IN LPVOID); +DWORD WINAPI ImeConversionList(HIMC, _In_ LPCTSTR lpSource, _Out_writes_bytes_(dwBufLen) LPCANDIDATELIST lpDest, DWORD dwBufLen, UINT uFlag); +BOOL WINAPI ImeDestroy(UINT); +LRESULT WINAPI ImeEscape(HIMC, UINT, LPVOID); +BOOL WINAPI ImeProcessKey(IN HIMC, IN UINT, IN LPARAM, _In_reads_bytes_(256) CONST LPBYTE lpbKeyState); +BOOL WINAPI ImeSelect(IN HIMC, IN BOOL); +BOOL WINAPI ImeSetActiveContext(IN HIMC, IN BOOL); +#if (WINVER >= 0x040A) +UINT WINAPI ImeToAsciiEx(IN UINT uVirtKey, IN UINT uScaCode, _In_reads_bytes_(256) CONST LPBYTE lpbKeyState, _Out_writes_bytes_(sizeof(TRANSMSGLIST) + (sizeof(TRANSMSG) * (lpTransBuf->uMsgCount ? lpTransBuf->uMsgCount - 1 : 0))) LPTRANSMSGLIST lpTransBuf, IN UINT fuState, IN HIMC); +#else +UINT WINAPI ImeToAsciiEx(IN UINT uVirtKey, IN UINT uScaCode, _In_reads_bytes_(256) CONST LPBYTE lpbKeyState, _Out_ LPDWORD lpdwTransBuf, IN UINT fuState, IN HIMC hIMC); +#endif /* WINVER >= 0x040A */ +BOOL WINAPI NotifyIME(IN HIMC, IN DWORD, IN DWORD, IN DWORD); +BOOL WINAPI ImeRegisterWord(_In_ LPCTSTR lpszReading, IN DWORD, _In_ LPCTSTR lpszString); +BOOL WINAPI ImeUnregisterWord(_In_ LPCTSTR lpszReading, IN DWORD, _In_ LPCTSTR lpszString); +UINT WINAPI ImeGetRegisterWordStyle(IN UINT nItem, _Out_writes_(nItem) LPSTYLEBUF lpStyleBuf); +UINT WINAPI ImeEnumRegisterWord(IN REGISTERWORDENUMPROC, _In_opt_ LPCTSTR lpszReading, IN DWORD, _In_opt_ LPCTSTR lpszString, IN LPVOID); +BOOL WINAPI ImeSetCompositionString(IN HIMC, IN DWORD dwIndex, _In_reads_bytes_(dwCompLen) LPVOID lpComp, IN DWORD dwCompLen, _In_reads_bytes_(dwReadLen) LPVOID lpRead, IN DWORD dwReadLen); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +// String buffer length of ImeInquire +#define IME_UI_CLASS_NAME_SIZE 16 + +// String buffer length of ImeEscape +#define IME_ESC_STRING_BUFFER_SIZE 80 + +#endif // _IMM_DDK_DEFINED_ + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#ifdef __cplusplus +} +#endif + +#endif // _IMMDEV_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imnact.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imnact.idl new file mode 100644 index 0000000000000000000000000000000000000000..90c0ba8c40c6c72b4e059246e75bf89b96feba91 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imnact.idl @@ -0,0 +1,803 @@ +// -------------------------------------------------------------------------------- +// Imnact.idl +// Copyright (c)1993-1998 Microsoft Corporation, All Rights Reserved +// Steven J. Bailey +// -------------------------------------------------------------------------------- +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "objidl.idl"; + +interface IImnAccount; + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// Imnact.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//---------------------------------------------------------------------------=") +cpp_quote("// Internet Mail and News Account Manager Interfaces.") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// GUIDS") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#if !defined( WIN16 ) || defined( __cplusplus )") +cpp_quote("// {8D4B04E1-1331-11d0-81B8-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(CLSID_ImnAccountManager, 0x8d4b04e1, 0x1331, 0x11d0, 0x81, 0xb8, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {FD465484-1384-11d0-ABBD-0020AFDFD10A}") +cpp_quote("DEFINE_GUID(IID_IPropertyContainer, 0xfd465484, 0x1384, 0x11d0, 0xab, 0xbd, 0x0, 0x20, 0xaf, 0xdf, 0xd1, 0xa);") +cpp_quote("") +cpp_quote("// {FD465481-1384-11d0-ABBD-0020AFDFD10A}") +cpp_quote("DEFINE_GUID(IID_IImnAccountManager, 0xfd465481, 0x1384, 0x11d0, 0xab, 0xbd, 0x0, 0x20, 0xaf, 0xdf, 0xd1, 0xa);") +cpp_quote("") +cpp_quote("// {C43DFC6F-62BB-11d2-A727-00C04F79E7C8}") +cpp_quote("DEFINE_GUID(IID_IImnAccountManager2, 0xc43dfc6f, 0x62bb, 0x11d2, 0xa7, 0x27, 0x0, 0xc0, 0x4f, 0x79, 0xe7, 0xc8);") +cpp_quote("") +cpp_quote("// {FD465482-1384-11d0-ABBD-0020AFDFD10A}") +cpp_quote("DEFINE_GUID(IID_IImnAccount, 0xfd465482, 0x1384, 0x11d0, 0xab, 0xbd, 0x0, 0x20, 0xaf, 0xdf, 0xd1, 0xa);") +cpp_quote("") +cpp_quote("// {FD465483-1384-11d0-ABBD-0020AFDFD10A}") +cpp_quote("DEFINE_GUID(IID_IImnEnumAccounts, 0xfd465483, 0x1384, 0x11d0, 0xab, 0xbd, 0x0, 0x20, 0xaf, 0xdf, 0xd1, 0xa);") +cpp_quote("") +cpp_quote("// {8D0AED11-1638-11d0-81B9-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_IImnAdviseMigrateServer, 0x8d0aed11, 0x1638, 0x11d0, 0x81, 0xb9, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {0A06BD31-166F-11d0-81B9-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_IImnAdviseAccount, 0xa06bd31, 0x166f, 0x11d0, 0x81, 0xb9, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("#endif //!WIN16 || __cplusplus") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// Exported C Functions") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#if !defined(_IMNACCT_)") +cpp_quote("#define IMNACCTAPI DECLSPEC_IMPORT HRESULT WINAPI") +cpp_quote("#define IMNACCTAPI_(_type_) DECLSPEC_IMPORT _type_ WINAPI") +cpp_quote("#else") +cpp_quote("#define IMNACCTAPI HRESULT WINAPI") +cpp_quote("#define IMNACCTAPI_(_type_) _type_ WINAPI") +cpp_quote("#endif") +cpp_quote("#ifdef __cplusplus") +cpp_quote("extern \"C\" {") +cpp_quote("#endif") +cpp_quote("") +cpp_quote("IMNACCTAPI HrCreateAccountManager(IImnAccountManager **ppAccountManager);") +cpp_quote("IMNACCTAPI ValidEmailAddress(LPCSTR lpAddress);") +cpp_quote("") +cpp_quote("#ifdef __cplusplus") +cpp_quote("}") +cpp_quote("#endif") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// Errors") +cpp_quote("// --------------------------------------------------------------------------------") +//;begin_internal +// +// NOTE: All inetcomm error codes must reside between CC00 and CFFF (a 1k block). +// This has been approved by Johann Posch (johannp) +// We further subdevide this range as follows: +// CC00-CCFF IMNXPORT results +// CD00-CDFF IMNACCT results +// CE00-CEFF MIMEOLE results +// CF00-CFFF undefined, do not use +// (t-erikne 03/24/97) +// +//;end_internal +cpp_quote("#ifndef FACILITY_INTERNET") +cpp_quote("#define FACILITY_INTERNET 12") +cpp_quote("#endif") +cpp_quote("#ifndef HR_E") +cpp_quote("#define HR_E(n) MAKE_SCODE(SEVERITY_ERROR, FACILITY_INTERNET, n)") +cpp_quote("#endif") +cpp_quote("#ifndef HR_S") +cpp_quote("#define HR_S(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_INTERNET, n)") +cpp_quote("#endif") +cpp_quote("#ifndef HR_CODE") +cpp_quote("#define HR_CODE(hr) (INT)(hr & 0xffff)") +cpp_quote("#endif") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// General Errors") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define E_RegCreateKeyFailed HR_E(0xCD00)") +cpp_quote("#define E_RegQueryInfoKeyFailed HR_E(0xCD01)") +cpp_quote("#define E_UserCancel HR_E(0xCD02)") +cpp_quote("#define E_RegOpenKeyFailed HR_E(0xCD03)") +cpp_quote("#define E_RegSetValueFailed HR_E(0xCD04)") +cpp_quote("#define E_RegDeleteKeyFailed HR_E(0xCD05)") +cpp_quote("#define E_DuplicateAccountName HR_E(0xCD06)") +cpp_quote("#define S_NonStandardValue HR_S(0xCD07)") +cpp_quote("#define E_InvalidValue HR_E(0xCD08)") +cpp_quote("#define S_AlreadyInitialized HR_S(0xCD09)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// IPropertyContainer Errors") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define E_NoPropData HR_E(0xCDA0)") +cpp_quote("#define E_BufferTooSmall HR_E(0xCDA1)") +cpp_quote("#define E_BadPropType HR_E(0xCDA2)") +cpp_quote("#define E_BufferSizeMismatch HR_E(0xCDA3)") +cpp_quote("#define E_InvalidBooleanValue HR_E(0xCDA4)") +cpp_quote("#define E_InvalidMinMaxValue HR_E(0xCDA5)") +cpp_quote("#define E_PropNotFound HR_E(0xCDA6)") +cpp_quote("#define E_InvalidPropTag HR_E(0xCDA7)") +cpp_quote("#define E_InvalidPropertySet HR_E(0xCDA8)") +cpp_quote("#define E_EnumFinished HR_E(0xCDA9)") //N should be S_FALSE? +cpp_quote("#define S_NoSaveNeeded HR_S(0xCDAA)") +cpp_quote("#define S_PasswordDeleted HR_S(0xCDAB)") +cpp_quote("#define S_PasswordNotFound HR_S(0xCDAC)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// ImnAccountManager errors") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define E_NoAccounts HR_E(0xCDD0)") +cpp_quote("#define E_BadFriendlyName HR_E(0xCDD1)") +cpp_quote("#define E_NoIdentities HR_E(0xCDD2)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// RAS Connection Types") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define CF_AUTO_CONNECT FLAG02 // Automatically connect") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// Property Macros") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define PROPTAG_MASK ((ULONG)0x0000FFFF)") +cpp_quote("#define PROPTAG_TYPE(ulPropTag) (PROPTYPE)(((ULONG)(ulPropTag)) & PROPTAG_MASK)") +cpp_quote("#define PROPTAG_ID(ulPropTag) (((ULONG)(ulPropTag))>>16)") +cpp_quote("#define PROPTAG(ulPropType,ulPropID) ((((ULONG)(ulPropID))<<16)|((ULONG)(ulPropType)))") +cpp_quote("#define MAX_PROPID ((ULONG) 0xFFFF)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// IImnAccount Properties") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define AP_FIRST 0X1234") +cpp_quote("// per account properties") +cpp_quote("#define AP_ACCOUNT_NAME PROPTAG(TYPE_STRING, AP_FIRST+1)") +cpp_quote("#define AP_ACCOUNT_FIRST AP_ACCOUNT_NAME") +cpp_quote("#define AP_TEMP_ACCOUNT PROPTAG(TYPE_DWORD, AP_FIRST+3)") +cpp_quote("#define AP_LAST_UPDATED PROPTAG(TYPE_FILETIME, AP_FIRST+4)") +cpp_quote("#define AP_RAS_CONNECTION_TYPE PROPTAG(TYPE_DWORD, AP_FIRST+5)") +cpp_quote("#define AP_RAS_CONNECTOID PROPTAG(TYPE_STRING, AP_FIRST+6)") +cpp_quote("#define AP_RAS_CONNECTION_FLAGS PROPTAG(TYPE_DWORD, AP_FIRST+7)") +cpp_quote("#define AP_ACCOUNT_ID PROPTAG(TYPE_STRING, AP_FIRST+9)") +cpp_quote("#define AP_RAS_BACKUP_CONNECTOID PROPTAG(TYPE_STRING, AP_FIRST+10)") +cpp_quote("#define AP_SERVICE PROPTAG(TYPE_STRING, AP_FIRST+11)") +cpp_quote("#define AP_AVAIL_OFFLINE PROPTAG(TYPE_DWORD, AP_FIRST+12)") +cpp_quote("#define AP_UNIQUE_ID PROPTAG(TYPE_BINARY, AP_FIRST+13)") +cpp_quote("#define AP_SERVER_READ_ONLY PROPTAG(TYPE_BOOL, AP_FIRST+14)") +cpp_quote("#define AP_ACCOUNT_LAST AP_SERVER_READ_ONLY") +cpp_quote("") +cpp_quote("// IMAP properties") +cpp_quote("#define AP_IMAP_SERVER PROPTAG(TYPE_STRING, AP_FIRST+100)") +cpp_quote("#define AP_IMAP_FIRST AP_IMAP_SERVER") +cpp_quote("#define AP_IMAP_USERNAME PROPTAG(TYPE_STRING, AP_FIRST+101)") +cpp_quote("#define AP_IMAP_PASSWORD PROPTAG(TYPE_PASS, AP_FIRST+102)") +cpp_quote("#define AP_IMAP_USE_SICILY PROPTAG(TYPE_BOOL, AP_FIRST+104)") +cpp_quote("#define AP_IMAP_PORT PROPTAG(TYPE_DWORD, AP_FIRST+105)") +cpp_quote("#define AP_IMAP_SSL PROPTAG(TYPE_BOOL, AP_FIRST+106)") +cpp_quote("#define AP_IMAP_TIMEOUT PROPTAG(TYPE_DWORD, AP_FIRST+107)") +cpp_quote("#define AP_IMAP_ROOT_FOLDER PROPTAG(TYPE_STRING, AP_FIRST+108)") +cpp_quote("#define AP_IMAP_DATA_DIR PROPTAG(TYPE_STRING, AP_FIRST+109)") +cpp_quote("#define AP_IMAP_USE_LSUB PROPTAG(TYPE_BOOL, AP_FIRST+111)") +cpp_quote("#define AP_IMAP_POLL PROPTAG(TYPE_BOOL, AP_FIRST+112)") +cpp_quote("#define AP_IMAP_FULL_LIST PROPTAG(TYPE_BOOL, AP_FIRST+113)") +cpp_quote("#define AP_IMAP_NOOP_INTERVAL PROPTAG(TYPE_DWORD, AP_FIRST+114)") +cpp_quote("#define AP_IMAP_SVRSPECIALFLDRS PROPTAG(TYPE_BOOL, AP_FIRST+116)") +cpp_quote("#define AP_IMAP_SENTITEMSFLDR PROPTAG(TYPE_STRING, AP_FIRST+117)") +cpp_quote("#define AP_IMAP_DRAFTSFLDR PROPTAG(TYPE_STRING, AP_FIRST+119)") +cpp_quote("#define AP_IMAP_PROMPT_PASSWORD PROPTAG(TYPE_BOOL, AP_FIRST+124)") +cpp_quote("#define AP_IMAP_DIRTY PROPTAG(TYPE_DWORD, AP_FIRST+125)") +cpp_quote("#define AP_IMAP_POLL_ALL_FOLDERS PROPTAG(TYPE_BOOL, AP_FIRST+126)") +// The following two propertie are only available on Longhorn and beyond. +cpp_quote("#define AP_IMAP_DELETEDITEMSFLDR PROPTAG(TYPE_STRING, AP_FIRST+127)") +cpp_quote("#define AP_IMAP_JUNKFLDR PROPTAG(TYPE_STRING, AP_FIRST+128)") +cpp_quote("#define AP_IMAP_LAST AP_IMAP_JUNKFLDR") +cpp_quote("") +cpp_quote("// LDAP properties") +cpp_quote("#define AP_LDAP_SERVER PROPTAG(TYPE_STRING, AP_FIRST+200)") +cpp_quote("#define AP_LDAP_FIRST AP_LDAP_SERVER") +cpp_quote("#define AP_LDAP_USERNAME PROPTAG(TYPE_STRING, AP_FIRST+201)") +cpp_quote("#define AP_LDAP_PASSWORD PROPTAG(TYPE_PASS, AP_FIRST+202)") +cpp_quote("#define AP_LDAP_AUTHENTICATION PROPTAG(TYPE_DWORD, AP_FIRST+203)") +cpp_quote("#define AP_LDAP_TIMEOUT PROPTAG(TYPE_DWORD, AP_FIRST+204)") +cpp_quote("#define AP_LDAP_SEARCH_RETURN PROPTAG(TYPE_DWORD, AP_FIRST+205)") +cpp_quote("#define AP_LDAP_SEARCH_BASE PROPTAG(TYPE_STRING, AP_FIRST+206)") +cpp_quote("#define AP_LDAP_SERVER_ID PROPTAG(TYPE_DWORD, AP_FIRST+207)") +cpp_quote("#define AP_LDAP_RESOLVE_FLAG PROPTAG(TYPE_DWORD, AP_FIRST+208)") +cpp_quote("#define AP_LDAP_URL PROPTAG(TYPE_STRING, AP_FIRST+209)") +cpp_quote("#define AP_LDAP_PORT PROPTAG(TYPE_DWORD, AP_FIRST+210)") +cpp_quote("#define AP_LDAP_SSL PROPTAG(TYPE_BOOL, AP_FIRST+211)") +cpp_quote("#define AP_LDAP_LOGO PROPTAG(TYPE_STRING, AP_FIRST+212)") +cpp_quote("#define AP_LDAP_USE_BIND_DN PROPTAG(TYPE_DWORD, AP_FIRST+213)") +cpp_quote("#define AP_LDAP_SIMPLE_SEARCH PROPTAG(TYPE_DWORD, AP_FIRST+214)") +cpp_quote("#define AP_LDAP_ADVANCED_SEARCH_ATTR PROPTAG(TYPE_STRING, AP_FIRST+215)") +cpp_quote("#define AP_LDAP_PAGED_RESULTS PROPTAG(TYPE_DWORD, AP_FIRST+216)") +cpp_quote("#define AP_LDAP_NTDS PROPTAG(TYPE_DWORD, AP_FIRST+217)") +cpp_quote("#define AP_LDAP_LAST AP_LDAP_NTDS") +cpp_quote("") +cpp_quote("// HTTPMail properties") +cpp_quote("#define AP_HTTPMAIL_SERVER PROPTAG(TYPE_STRING, AP_FIRST+250)") +cpp_quote("#define AP_HTTPMAIL_FIRST AP_HTTPMAIL_SERVER") +cpp_quote("#define AP_HTTPMAIL_USERNAME PROPTAG(TYPE_STRING, AP_FIRST+251)") +cpp_quote("#define AP_HTTPMAIL_PASSWORD PROPTAG(TYPE_PASS, AP_FIRST+252)") +cpp_quote("#define AP_HTTPMAIL_PROMPT_PASSWORD PROPTAG(TYPE_BOOL, AP_FIRST+253)") +cpp_quote("#define AP_HTTPMAIL_USE_SICILY PROPTAG(TYPE_DWORD, AP_FIRST+254)") +cpp_quote("#define AP_HTTPMAIL_FRIENDLY_NAME PROPTAG(TYPE_STRING, AP_FIRST+255)") +cpp_quote("#define AP_HTTPMAIL_DOMAIN_MSN PROPTAG(TYPE_BOOL, AP_FIRST+256)") +cpp_quote("#define AP_HTTPMAIL_POLL PROPTAG(TYPE_BOOL, AP_FIRST+257)") +cpp_quote("#define AP_HTTPMAIL_ADURL PROPTAG(TYPE_STRING, AP_FIRST+258)") +cpp_quote("#define AP_HTTPMAIL_SHOW_ADBAR PROPTAG(TYPE_BOOL, AP_FIRST+259)") +cpp_quote("#define AP_HTTPMAIL_MINPOLLINGINTERVAL PROPTAG(TYPE_ULARGEINTEGER, AP_FIRST+260)") +cpp_quote("#define AP_HTTPMAIL_GOTPOLLINGINTERVAL PROPTAG(TYPE_BOOL, AP_FIRST+261)") +cpp_quote("#define AP_HTTPMAIL_LASTPOLLEDTIME PROPTAG(TYPE_ULARGEINTEGER, AP_FIRST+262)") +cpp_quote("#define AP_HTTPMAIL_ROOTTIMESTAMP PROPTAG(TYPE_STRING, AP_FIRST+263)") +cpp_quote("#define AP_HTTPMAIL_ROOTINBOXTIMESTAMP PROPTAG(TYPE_STRING, AP_FIRST+264)") +cpp_quote("#define AP_HTTPMAIL_INBOXTIMESTAMP PROPTAG(TYPE_STRING, AP_FIRST+265)") +cpp_quote("#define AP_HTTPMAIL_MAXPOLLINGINTERVAL PROPTAG(TYPE_ULARGEINTEGER, AP_FIRST+266)") +cpp_quote("#define AP_HTTPMAIL_ADBAR PROPTAG(TYPE_STRING, AP_FIRST+267)") +cpp_quote("#define AP_HTTPMAIL_CONTACTS PROPTAG(TYPE_STRING, AP_FIRST+268)") +cpp_quote("#define AP_HTTPMAIL_INBOX PROPTAG(TYPE_STRING, AP_FIRST+269)") +cpp_quote("#define AP_HTTPMAIL_OUTBOX PROPTAG(TYPE_STRING, AP_FIRST+270)") +cpp_quote("#define AP_HTTPMAIL_SENDMSG PROPTAG(TYPE_STRING, AP_FIRST+271)") +cpp_quote("#define AP_HTTPMAIL_SENTITEMS PROPTAG(TYPE_STRING, AP_FIRST+272)") +cpp_quote("#define AP_HTTPMAIL_DELETEDITEMS PROPTAG(TYPE_STRING, AP_FIRST+273)") +cpp_quote("#define AP_HTTPMAIL_DRAFTS PROPTAG(TYPE_STRING, AP_FIRST+274)") +cpp_quote("#define AP_HTTPMAIL_MSGFOLDERROOT PROPTAG(TYPE_STRING, AP_FIRST+275)") +cpp_quote("#define AP_HTTPMAIL_SIG PROPTAG(TYPE_STRING, AP_FIRST+276)") +cpp_quote("#define AP_HTTPMAIL_HASROOTPROPS PROPTAG(TYPE_BOOL, AP_FIRST+277)") +cpp_quote("#define AP_HTTPMAIL_LAST AP_HTTPMAIL_HASROOTPROPS") +cpp_quote("") +cpp_quote("// NNTP properties") +cpp_quote("#define AP_NNTP_SERVER PROPTAG(TYPE_STRING, AP_FIRST+300)") +cpp_quote("#define AP_NNTP_FIRST AP_NNTP_SERVER") +cpp_quote("#define AP_NNTP_USERNAME PROPTAG(TYPE_STRING, AP_FIRST+301)") +cpp_quote("#define AP_NNTP_PASSWORD PROPTAG(TYPE_PASS, AP_FIRST+302)") +cpp_quote("#define AP_NNTP_USE_SICILY PROPTAG(TYPE_BOOL, AP_FIRST+304)") +cpp_quote("#define AP_NNTP_PORT PROPTAG(TYPE_DWORD, AP_FIRST+305)") +cpp_quote("#define AP_NNTP_SSL PROPTAG(TYPE_BOOL, AP_FIRST+306)") +cpp_quote("#define AP_NNTP_TIMEOUT PROPTAG(TYPE_DWORD, AP_FIRST+307)") +cpp_quote("#define AP_NNTP_DISPLAY_NAME PROPTAG(TYPE_STRING, AP_FIRST+308)") +cpp_quote("#define AP_NNTP_ORG_NAME PROPTAG(TYPE_STRING, AP_FIRST+309)") +cpp_quote("#define AP_NNTP_EMAIL_ADDRESS PROPTAG(TYPE_STRING, AP_FIRST+310)") +cpp_quote("#define AP_NNTP_REPLY_EMAIL_ADDRESS PROPTAG(TYPE_STRING, AP_FIRST+311)") +cpp_quote("#define AP_NNTP_SPLIT_MESSAGES PROPTAG(TYPE_BOOL, AP_FIRST+312)") +cpp_quote("#define AP_NNTP_SPLIT_SIZE PROPTAG(TYPE_DWORD, AP_FIRST+313)") +cpp_quote("#define AP_NNTP_USE_DESCRIPTIONS PROPTAG(TYPE_BOOL, AP_FIRST+314)") +cpp_quote("#define AP_NNTP_DATA_DIR PROPTAG(TYPE_STRING, AP_FIRST+315)") +cpp_quote("#define AP_NNTP_POLL PROPTAG(TYPE_BOOL, AP_FIRST+316)") +cpp_quote("#define AP_NNTP_POST_FORMAT PROPTAG(TYPE_DWORD, AP_FIRST+317)") +cpp_quote("#define AP_NNTP_SIGNATURE PROPTAG(TYPE_STRING, AP_FIRST+318)") +cpp_quote("#define AP_NNTP_PROMPT_PASSWORD PROPTAG(TYPE_BOOL, AP_FIRST+319)") +cpp_quote("#define AP_NNTP_COMMUNITIES PROPTAG(TYPE_DWORD, AP_FIRST+320)") +cpp_quote("#define AP_NNTP_PASSPORT_MEMBERNAME PROPTAG(TYPE_STRING, AP_FIRST+321)") +cpp_quote("#define AP_NNTP_COMMUNITYSERVERDATA PROPTAG(TYPE_BINARY, AP_FIRST+322)") +cpp_quote("#define AP_NNTP_PASSPORTSESSIONDATA PROPTAG(TYPE_BINARY, AP_FIRST+323)") +cpp_quote("#define AP_NNTP_USER_INFORMATION PROPTAG(TYPE_DWORD, AP_FIRST+324)") +cpp_quote("#define AP_NNTP_LAST AP_NNTP_USER_INFORMATION") +cpp_quote("") +cpp_quote("// POP3 properties") +cpp_quote("#define AP_POP3_SERVER PROPTAG(TYPE_STRING, AP_FIRST+400)") +cpp_quote("#define AP_POP3_FIRST AP_POP3_SERVER") +cpp_quote("#define AP_POP3_USERNAME PROPTAG(TYPE_STRING, AP_FIRST+401)") +cpp_quote("#define AP_POP3_PASSWORD PROPTAG(TYPE_PASS, AP_FIRST+402)") +cpp_quote("#define AP_POP3_USE_SICILY PROPTAG(TYPE_BOOL, AP_FIRST+404)") +cpp_quote("#define AP_POP3_PORT PROPTAG(TYPE_DWORD, AP_FIRST+405)") +cpp_quote("#define AP_POP3_SSL PROPTAG(TYPE_BOOL, AP_FIRST+406)") +cpp_quote("#define AP_POP3_TIMEOUT PROPTAG(TYPE_DWORD, AP_FIRST+407)") +cpp_quote("#define AP_POP3_LEAVE_ON_SERVER PROPTAG(TYPE_BOOL, AP_FIRST+408)") +cpp_quote("#define AP_POP3_REMOVE_DELETED PROPTAG(TYPE_BOOL, AP_FIRST+409)") +cpp_quote("#define AP_POP3_REMOVE_EXPIRED PROPTAG(TYPE_BOOL, AP_FIRST+410)") +cpp_quote("#define AP_POP3_EXPIRE_DAYS PROPTAG(TYPE_DWORD, AP_FIRST+411)") +cpp_quote("#define AP_POP3_SKIP PROPTAG(TYPE_BOOL, AP_FIRST+412)") +cpp_quote("#define AP_POP3_OUTLOOK_CACHE_NAME PROPTAG(TYPE_STRING, AP_FIRST+413)") +cpp_quote("#define AP_POP3_PROMPT_PASSWORD PROPTAG(TYPE_BOOL, AP_FIRST+414)") +cpp_quote("#define AP_POP3_LAST AP_POP3_PROMPT_PASSWORD") +cpp_quote("") +cpp_quote("// SMTP properties") +cpp_quote("#define AP_SMTP_SERVER PROPTAG(TYPE_STRING, AP_FIRST+500)") +cpp_quote("#define AP_SMTP_FIRST AP_SMTP_SERVER") +cpp_quote("#define AP_SMTP_USERNAME PROPTAG(TYPE_STRING, AP_FIRST+501)") +cpp_quote("#define AP_SMTP_PASSWORD PROPTAG(TYPE_PASS, AP_FIRST+502)") +cpp_quote("#define AP_SMTP_USE_SICILY PROPTAG(TYPE_DWORD, AP_FIRST+504) // SMTPAUTHTYEP") +cpp_quote("#define AP_SMTP_PORT PROPTAG(TYPE_DWORD, AP_FIRST+505)") +cpp_quote("#define AP_SMTP_SSL PROPTAG(TYPE_BOOL, AP_FIRST+506)") +cpp_quote("#define AP_SMTP_TIMEOUT PROPTAG(TYPE_DWORD, AP_FIRST+507)") +cpp_quote("#define AP_SMTP_DISPLAY_NAME PROPTAG(TYPE_STRING, AP_FIRST+508)") +cpp_quote("#define AP_SMTP_ORG_NAME PROPTAG(TYPE_STRING, AP_FIRST+509)") +cpp_quote("#define AP_SMTP_EMAIL_ADDRESS PROPTAG(TYPE_STRING, AP_FIRST+510)") +cpp_quote("#define AP_SMTP_REPLY_EMAIL_ADDRESS PROPTAG(TYPE_STRING, AP_FIRST+511)") +cpp_quote("#define AP_SMTP_SPLIT_MESSAGES PROPTAG(TYPE_BOOL, AP_FIRST+512)") +cpp_quote("#define AP_SMTP_SPLIT_SIZE PROPTAG(TYPE_DWORD, AP_FIRST+513)") +cpp_quote("#define AP_SMTP_CERTIFICATE PROPTAG(TYPE_BINARY, AP_FIRST+514)") +cpp_quote("#define AP_SMTP_SIGNATURE PROPTAG(TYPE_STRING, AP_FIRST+515)") +cpp_quote("#define AP_SMTP_PROMPT_PASSWORD PROPTAG(TYPE_BOOL, AP_FIRST+516)") +cpp_quote("#define AP_SMTP_ENCRYPT_CERT PROPTAG(TYPE_BINARY, AP_FIRST+517)") +cpp_quote("#define AP_SMTP_ENCRYPT_ALGTH PROPTAG(TYPE_BINARY, AP_FIRST+518)") +cpp_quote("#define AP_SMTP_LAST AP_SMTP_ENCRYPT_ALGTH") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// Account Flags") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define ACCT_FLAG_NEWS ((DWORD)1)") +cpp_quote("#define ACCT_FLAG_MAIL ((DWORD)2)") +cpp_quote("#define ACCT_FLAG_DIR_SERV ((DWORD)4)") +cpp_quote("#define ACCT_FLAG_ALL (ACCT_FLAG_NEWS | ACCT_FLAG_MAIL | ACCT_FLAG_DIR_SERV)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// Server Types") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define SRV_NNTP ((DWORD)1)") +cpp_quote("#define SRV_IMAP ((DWORD)2)") +cpp_quote("#define SRV_POP3 ((DWORD)4)") +cpp_quote("#define SRV_SMTP ((DWORD)8)") +cpp_quote("#define SRV_LDAP ((DWORD)16)") +cpp_quote("#define SRV_HTTPMAIL ((DWORD)32)") +cpp_quote("#define SRV_MAIL ((DWORD)(SRV_IMAP | SRV_POP3 | SRV_SMTP | SRV_HTTPMAIL))") +cpp_quote("#define SRV_ALL ((DWORD)(SRV_NNTP | SRV_IMAP | SRV_POP3 | SRV_SMTP | SRV_LDAP | SRV_HTTPMAIL))") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// LDAP Authentication Types") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define LDAP_AUTH_ANONYMOUS ((DWORD)0)") +cpp_quote("#define LDAP_AUTH_PASSWORD ((DWORD)1)") +cpp_quote("#define LDAP_AUTH_MEMBER_SYSTEM ((DWORD)2)") +cpp_quote("#define LDAP_AUTH_MAX ((DWORD)2)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// LDAP Paged Result Support Types") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define LDAP_PRESULT_UNKNOWN ((DWORD)0)") +cpp_quote("#define LDAP_PRESULT_SUPPORTED ((DWORD)1)") +cpp_quote("#define LDAP_PRESULT_NOTSUPPORTED ((DWORD)2)") +cpp_quote("#define LDAP_PRESULT_MAX ((DWORD)2)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// LDAP NTDS Types") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define LDAP_NTDS_UNKNOWN ((DWORD)0)") +cpp_quote("#define LDAP_NTDS_IS ((DWORD)1)") +cpp_quote("#define LDAP_NTDS_ISNOT ((DWORD)2)") +cpp_quote("#define LDAP_NTDS_MAX ((DWORD)2)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// AP_NNTP_POST_FORMAT types") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define POST_USE_DEFAULT ((DWORD)0)") +cpp_quote("#define POST_USE_PLAIN_TEXT ((DWORD)1)") +cpp_quote("#define POST_USE_HTML ((DWORD)2)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// AP_NNTP_USER_INFORMATION types") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define NNTP_USER_AUTOCONFIG ((DWORD)0)") // Suggested display name and email address +cpp_quote("#define NNTP_USER_NOTIFIED ((DWORD)1)") // User information has been viewed, but not approved +cpp_quote("#define NNTP_USER_DONTSHOW ((DWORD)2)") // Approval of user information was deferred +cpp_quote("#define NNTP_USER_APPROVED ((DWORD)3)") // User information is approved, or was entered manually +cpp_quote("") +cpp_quote("// -----------------------------------------------------------------------------") +cpp_quote("// Account Manager Notification Types") +cpp_quote("// -----------------------------------------------------------------------------") +cpp_quote("#define AN_ACCOUNT_DELETED WM_USER + 1") +cpp_quote("#define AN_ACCOUNT_ADDED WM_USER + 2") +cpp_quote("#define AN_ACCOUNT_CHANGED WM_USER + 3") +cpp_quote("#define AN_DEFAULT_CHANGED WM_USER + 4") +cpp_quote("#define AN_SERVERTYPES_CHANGED WM_USER + 5") +cpp_quote("#define AN_ACCOUNT_PREDELETE WM_USER + 6") +cpp_quote("") +cpp_quote("// IImnAccountManager::AccountListDialog flags") +cpp_quote("// IImnAccount::ShowProperties flags") +cpp_quote("#define ACCTDLG_NO_IMAP 0x0001") +cpp_quote("#define ACCTDLG_NO_REMOVEDELETE 0x0002") +cpp_quote("#define ACCTDLG_NO_BREAKMESSAGES 0x0004") +cpp_quote("#define ACCTDLG_NO_REMOVEAFTER 0x0008") +cpp_quote("#define ACCTDLG_NO_SENDRECEIVE 0x0010") +cpp_quote("#define ACCTDLG_NO_NEWSPOLL 0x0020") +cpp_quote("#define ACCTDLG_NO_SECURITY 0x0040") +cpp_quote("#define ACCTDLG_BACKUP_CONNECT 0x0080") +cpp_quote("#define ACCTDLG_NO_IMAPPOLL 0x0100") +cpp_quote("#define ACCTDLG_NO_NEW_POP 0x0200") +cpp_quote("#define ACCTDLG_SHOWIMAPSPECIAL 0x0400") +cpp_quote("#define ACCTDLG_INTERNETCONNECTION 0x0800") +cpp_quote("#define ACCTDLG_HTTPMAIL 0x1000") +cpp_quote("#define ACCTDLG_REVOCATION 0x2000") +cpp_quote("#define ACCTDLG_OE 0x4000") +cpp_quote("#define ACCTDLG_PASSPORT 0x8000") +cpp_quote("#define ACCTDLG_ALL 0xffff") +cpp_quote("") +cpp_quote("// AP_RAS_CONNECTION_TYPE values") +cpp_quote("#define CONNECTION_TYPE_LAN 0") +cpp_quote("#define CONNECTION_TYPE_MANUAL 1") +cpp_quote("#define CONNECTION_TYPE_RAS 2") +cpp_quote("#define CONNECTION_TYPE_INETSETTINGS 3") +cpp_quote("") +cpp_quote("// IImnAccount::DoWizard flags") +cpp_quote("#define ACCT_WIZ_MIGRATE 0x0001") +cpp_quote("#define ACCT_WIZ_MAILIMPORT 0x0002") +cpp_quote("#define ACCT_WIZ_OUTLOOK 0x0004") +cpp_quote("#define ACCT_WIZ_NEWSIMPORT 0x0008") +cpp_quote("#define ACCT_WIZ_NO_NEW_POP 0x0010") +cpp_quote("#define ACCT_WIZ_INTERNETCONNECTION 0x0020") +cpp_quote("#define ACCT_WIZ_HTTPMAIL 0x0040") +cpp_quote("#define ACCT_WIZ_OE 0x0080") +cpp_quote("#define ACCT_WIZ_COMMUNITIES 0x0100") +cpp_quote("") +cpp_quote("// IImnAccount::InitEx flags") +cpp_quote("#define ACCT_INIT_ATHENA 0x0001") +cpp_quote("#define ACCT_INIT_OUTLOOK 0x0002") +cpp_quote("") +cpp_quote(" // AP_IMAP_DIRTY flags") +cpp_quote("#define IMAP_FLDRLIST_DIRTY 0x0001") +cpp_quote("#define IMAP_OE4MIGRATE_DIRTY 0x0002") +cpp_quote("#define IMAP_SENTITEMS_DIRTY 0x0004") +cpp_quote("#define IMAP_DRAFTS_DIRTY 0x0008") +cpp_quote("#define IMAP_DELETEDITEMS_DIRTY 0x0010") +cpp_quote("#define IMAP_JUNK_DIRTY 0x0020") + +// -------------------------------------------------------------------------------- +// SMTP Authentication Types +// -------------------------------------------------------------------------------- +typedef enum tagSMTPAUTHTYPE { + SMTP_AUTH_NONE, + SMTP_AUTH_SICILY, + SMTP_AUTH_USE_POP3ORIMAP_SETTINGS, + SMTP_AUTH_USE_SMTP_SETTINGS, +} SMTPAUTHTYPE; + +// -------------------------------------------------------------------------------- +// String Lengths +// -------------------------------------------------------------------------------- +const SHORT CCHMAX_ORG_NAME = 256; +const SHORT CCHMAX_DISPLAY_NAME = 256; +const SHORT CCHMAX_ACCOUNT_NAME = 256; +const SHORT CCHMAX_SERVER_NAME = 256; +const SHORT CCHMAX_PASSWORD = 256; +const SHORT CCHMAX_USERNAME = 256; +const SHORT CCHMAX_EMAIL_ADDRESS = 256; +const SHORT CCHMAX_CONNECTOID = 256; +const SHORT CCHMAX_SEARCH_BASE = 256; +const SHORT CCHMAX_ROOT_FOLDER = 256; +const SHORT CCHMAX_SIGNATURE = 16; +const SHORT CCHMAX_SERVICE = 256; + +// -------------------------------------------------------------------------------- +// IImnAdviseAccount +// -------------------------------------------------------------------------------- +[ + object, + uuid(0A06BD31-166F-11d0-81B9-00C04FD85AB4), + pointer_default(unique) +] +interface IImnAdviseAccount : IUnknown +{ + import "unknwn.idl"; + + typedef enum { + + ACCT_NEWS = 0, + ACCT_MAIL, + ACCT_DIR_SERV, + ACCT_LAST + + } ACCTTYPE; + + typedef struct tagAccountContext + { + ACCTTYPE AcctType; + LPSTR pszAccountID; + LPSTR pszOldName; // set if name changes or account deleted + DWORD dwServerType; + } ACTX; + + HRESULT AdviseAccount( + [in] DWORD dwAdviseType, + [in] ACTX *pAcctCtx); +} + +// -------------------------------------------------------------------------------- +// IImnAdviseMigrateServer +// -------------------------------------------------------------------------------- +[ + object, + uuid(8D0AED11-1638-11d0-81B9-00C04FD85AB4), + pointer_default(unique) +] +interface IImnAdviseMigrateServer : IUnknown +{ + import "unknwn.idl"; + + HRESULT MigrateServer( + [in] DWORD dwSrvType, + [in] IImnAccount *pAccount); +} + +// -------------------------------------------------------------------------------- +// IImnEnumAccounts +// -------------------------------------------------------------------------------- +[ + object, + uuid(FD465483-1384-11d0-ABBD-0020AFDFD10A), + pointer_default(unique) +] +interface IImnEnumAccounts : IUnknown +{ + import "unknwn.idl"; + + HRESULT GetCount( + [out] ULONG *pcItems); + + HRESULT SortByAccountName(void); + + HRESULT GetNext( + [out] IImnAccount **ppAccount); + + HRESULT Reset(void); +} + +// -------------------------------------------------------------------------------- +// IImnAccountManager +// -------------------------------------------------------------------------------- +[ + object, + uuid(FD465481-1384-11d0-ABBD-0020AFDFD10A), + pointer_default(unique) +] +interface IImnAccountManager : IUnknown +{ + import "unknwn.idl"; + + typedef struct tagACCTLISTINFO + { + DWORD cbSize; + ACCTTYPE AcctTypeInit; + DWORD dwAcctFlags; + DWORD dwFlags; + } ACCTLISTINFO; + + HRESULT Init( + [in] IImnAdviseMigrateServer *pAdviseMigrateServer); + + HRESULT CreateAccountObject( + [in] ACCTTYPE AcctType, + [out] IImnAccount **ppAccount); + + HRESULT Enumerate( + [in] DWORD dwSrvTypes, + [out] IImnEnumAccounts **ppEnumAccounts); + + HRESULT GetAccountCount( + [in] ACCTTYPE AcctType, + [out] ULONG *pcServers); + + HRESULT FindAccount( + [in] DWORD dwPropTag, + [in] LPCSTR pszSearchData, + [out] IImnAccount **ppAccount); + + HRESULT GetDefaultAccount( + [in] ACCTTYPE AcctType, + [out] IImnAccount **ppAccount); + +midl_pragma warning (disable: 2495) + HRESULT GetDefaultAccountName( + [in] ACCTTYPE AcctType, + [out, size_is(cchMax), annotation("_Out_writes_(cchMax)")] LPSTR pszAccount, + [in] ULONG cchMax); +midl_pragma warning (default: 2495) + + HRESULT ProcessNotification( + [in] UINT uMsg, + [in] WPARAM wParam, + [in] LPARAM lParam); + + HRESULT ValidateDefaultSendAccount(void); + + HRESULT AccountListDialog( + [in] HWND hwnd, + [in] ACCTLISTINFO *pinfo); + + HRESULT Advise( + [in] IImnAdviseAccount *pAdviseAccount, + [out] DWORD *pdwConnection); + + HRESULT Unadvise( + [in] DWORD dwConnection); + + HRESULT GetUniqueAccountName( + [in] LPSTR szName, + [in] UINT cch); + + HRESULT InitEx( + [in] IImnAdviseMigrateServer *pAdviseMigrateServer, + [in] DWORD dwFlags); +} + +// -------------------------------------------------------------------------------- +// IImnAccountManager2 +// -------------------------------------------------------------------------------- +[ + object, + uuid(C43DFC6F-62BB-11d2-A727-00C04F79E7C8), + pointer_default(unique) +] +interface IImnAccountManager2 : IImnAccountManager +{ + import "unknwn.idl"; + + HRESULT InitUser( + [in] IImnAdviseMigrateServer *pAdviseMigrateServer, + [in] REFGUID rguidID, + [in] DWORD dwFlags); + + HRESULT GetIncompleteAccount( + [in] ACCTTYPE AcctType, + [in,ref]LPSTR pszAccountId, + [in] ULONG cchMax); + + HRESULT SetIncompleteAccount( + [in] ACCTTYPE AcctType, + [in,unique] LPCSTR pszAccountId); +} + +// -------------------------------------------------------------------------------- +// IPropertyContainer +// -------------------------------------------------------------------------------- +[ + object, + uuid(FD465484-1384-11d0-ABBD-0020AFDFD10A), + pointer_default(unique) +] +interface IPropertyContainer : IUnknown +{ + import "unknwn.idl"; + + typedef enum { + + TYPE_ERROR = 1000, // Unknown data type - or data type is in error + TYPE_DWORD, // Unsigned 32 bit value + TYPE_LONG, // Signed 32 bit value + TYPE_WORD, // Unsigned 16 bit value + TYPE_SHORT, // Signed 16 bit value + TYPE_BYTE, // Unsigned 8 bit value + TYPE_CHAR, // Signed 8 bit value + TYPE_FILETIME, // FILETIME stucture + TYPE_STRING, // Fixed-length null-term string + TYPE_BINARY, // Fixed-length binary data + TYPE_FLAGS, // Flags fields + TYPE_STREAM, // Stream data type + TYPE_WSTRING, // UNICODE fixed-length null-term string + TYPE_BOOL, // BOOL checked to be equal to 1 or 0 + TYPE_PASS, // Neeto burrito password mosquito + TYPE_ULARGEINTEGER, //ULARGE_INTEGER structure + TYPE_LAST + + } PROPTYPE; + + HRESULT GetProp( + [in] DWORD dwPropTag, + [in,size_is(*pcb),ref] BYTE *pb, + [in] ULONG *pcb); + + HRESULT GetPropDw( + [in] DWORD dwPropTag, + [out] DWORD *pdw); + +midl_pragma warning (disable: 2495) + HRESULT GetPropSz( + [in] DWORD dwPropTag, + [out, size_is(cchMax), annotation("_Out_writes_(cchMax)")] LPSTR psz, + [in] ULONG cchMax); +midl_pragma warning (default: 2495) + + HRESULT SetProp( + [in] DWORD dwPropTag, + [in,size_is(cb),unique] BYTE *pb, + [in] ULONG cb); + + HRESULT SetPropDw( + [in] DWORD dwPropTag, + [in] DWORD dw); + +midl_pragma warning (disable: 2495) + HRESULT SetPropSz( + [in] DWORD dwPropTag, + [in,unique, annotation("_In_")] LPSTR psz); +midl_pragma warning (default: 2495) +} + +// -------------------------------------------------------------------------------- +// IImnAccount +// -------------------------------------------------------------------------------- +[ + object, + uuid(FD465482-1384-11d0-ABBD-0020AFDFD10A), + pointer_default(unique) +] +interface IImnAccount : IPropertyContainer +{ + import "unknwn.idl"; + + HRESULT Exist(void); + HRESULT SetAsDefault(void); + HRESULT Delete(void); + HRESULT SaveChanges(void); + + HRESULT GetAccountType( + [out] ACCTTYPE *pAcctType); + HRESULT GetServerTypes( + [out] DWORD *pdwSrvTypes); + + HRESULT ShowProperties( + [in] HWND hwnd, + [in] DWORD dwFlags); + + HRESULT ValidateProperty( + [in] DWORD dwPropTag, + [in,size_is(cb)] BYTE *pb, + [in] ULONG cb); + + HRESULT DoWizard( + [in] HWND hwnd, + [in] DWORD dwFlags); + + HRESULT DoImportWizard( + [in] HWND hwnd, + [in] CLSID clsid, + [in] DWORD dwFlags); +} + +// +// This definition is for C files in 16bit WAB, because of two reasons: +// +// 1. IID definitions generated by MIDL is not compatible with 16bit DEFINE_GUID +// 2. DEFINE_GUID should be placed LATER than the declaration generated by MIDL +// +cpp_quote("#if defined( WIN16 ) && !defined( __cplusplus )") +cpp_quote("// {8D4B04E1-1331-11d0-81B8-00C04FD85AB4}") +cpp_quote("EXTERN_C const IID CLSID_ImnAccountManager =") +cpp_quote(" { 0x8d4b04e1, 0x1331, 0x11d0, { 0x81, 0xb8, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4 } };") +cpp_quote("") +cpp_quote("// {FD465484-1384-11d0-ABBD-0020AFDFD10A}") +cpp_quote("EXTERN_C const IID IID_IPropertyContainer =") +cpp_quote(" { 0xfd465484, 0x1384, 0x11d0, { 0xab, 0xbd, 0x0, 0x20, 0xaf, 0xdf, 0xd1, 0xa } };") +cpp_quote("") +cpp_quote("// {FD465481-1384-11d0-ABBD-0020AFDFD10A}") +cpp_quote("EXTERN_C const IID IID_IImnAccountManager =") +cpp_quote(" { 0xfd465481, 0x1384, 0x11d0, { 0xab, 0xbd, 0x0, 0x20, 0xaf, 0xdf, 0xd1, 0xa } };") +cpp_quote("") +cpp_quote("// {C43DFC6F-62BB-11d2-A727-00C04F79E7C8}") +cpp_quote("EXTERN_C const IID IID_IImnAccountManager2 =") +cpp_quote(" { 0xc43dfc6f, 0x62bb, 0x11d2, { 0xa7, 0x27, 0x0, 0xc0, 0x4f, 0x79, 0xe7, 0xc8 } };") +cpp_quote("") +cpp_quote("// {FD465482-1384-11d0-ABBD-0020AFDFD10A}") +cpp_quote("EXTERN_C const IID IID_IImnAccount =") +cpp_quote(" { 0xfd465482, 0x1384, 0x11d0, { 0xab, 0xbd, 0x0, 0x20, 0xaf, 0xdf, 0xd1, 0xa } };") +cpp_quote("") +cpp_quote("// {FD465483-1384-11d0-ABBD-0020AFDFD10A}") +cpp_quote("EXTERN_C const IID IID_IImnEnumAccounts =") +cpp_quote(" { 0xfd465483, 0x1384, 0x11d0, { 0xab, 0xbd, 0x0, 0x20, 0xaf, 0xdf, 0xd1, 0xa } };") +cpp_quote("") +cpp_quote("// {8D0AED11-1638-11d0-81B9-00C04FD85AB4}") +cpp_quote("EXTERN_C const IID IID_IImnAdviseMigrateServer =") +cpp_quote(" { 0x8d0aed11, 0x1638, 0x11d0, { 0x81, 0xb9, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4 } };") +cpp_quote("") +cpp_quote("// {0A06BD31-166F-11d0-81B9-00C04FD85AB4}") +cpp_quote("EXTERN_C const IID IID_IImnAdviseAccount =") +cpp_quote(" { 0xa06bd31, 0x166f, 0x11d0, { 0x81, 0xb9, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4 } };") +cpp_quote("") +cpp_quote("#endif //WIN16 && !__cplusplus") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/imnxport.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imnxport.idl new file mode 100644 index 0000000000000000000000000000000000000000..f8795c235cfa52d34650d0af8fa301ecd92ed8aa --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/imnxport.idl @@ -0,0 +1,5054 @@ +// -------------------------------------------------------------------------------- +// IMNXPORT.IDL +// Copyright (c)1993-1998 Microsoft Corporation, All Rights Reserved +// +// Authors: +// Steven J. Bailey (sbailey) +// Steve Serdy (steveser) +// Raymond Cheng (raych) +// Greg Friedman (gregfrie) +// +// Date: 11/12/96 +// -------------------------------------------------------------------------------- +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "imnact.idl"; +interface IInternetTransport; +interface ISMTPTransport; +interface IPOP3Transport; +interface INNTPTransport; +interface IRASTransport; +interface IIMAPTransport; +interface IHTTPMailTransport; +interface IPropFindResponse; + +cpp_quote("#if 0") +typedef HANDLE HDPA; +cpp_quote("#endif") + +cpp_quote("//--------------------------------------------------------------------------------") +cpp_quote("// IMNXPORT.H") +cpp_quote("//--------------------------------------------------------------------------------") +cpp_quote("// (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//--------------------------------------------------------------------------------") +cpp_quote("") +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// Dependencies") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("#include ") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// GUIDS") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// {CA30CC91-B1B3-11d0-85D0-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(CLSID_IInternetMessageUrl, 0xca30cc91, 0xb1b3, 0x11d0, 0x85, 0xd0, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {0DF2C7E1-3435-11d0-81D0-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_ITransportCallback, 0xdf2c7e1, 0x3435, 0x11d0, 0x81, 0xd0, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {1F636C01-364E-11d0-81D3-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_IInternetTransport, 0x1f636c01, 0x364e, 0x11d0, 0x81, 0xd3, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {1F636C02-364E-11d0-81D3-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_ISMTPCallback, 0x1f636c02, 0x364e, 0x11d0, 0x81, 0xd3, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {FD853CE6-7F86-11d0-8252-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(CLSID_ISMTPTransport, 0xfd853ce6, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("// {0DF2C7E2-3435-11d0-81D0-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_ISMTPTransport, 0xdf2c7e2, 0x3435, 0x11d0, 0x81, 0xd0, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("// {0DF2C7EC-3435-11d0-81D0-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_ISMTPTransport2, 0xdf2c7eC, 0x3435, 0x11d0, 0x81, 0xd0, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {0DF2C7E3-3435-11d0-81D0-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_IPOP3Callback, 0xdf2c7e3, 0x3435, 0x11d0, 0x81, 0xd0, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {FD853CE7-7F86-11d0-8252-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(CLSID_IPOP3Transport, 0xfd853ce7, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("// {0DF2C7E4-3435-11d0-81D0-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_IPOP3Transport, 0xdf2c7e4, 0x3435, 0x11d0, 0x81, 0xd0, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {0DF2C7E5-3435-11d0-81D0-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_INNTPCallback, 0xdf2c7e5, 0x3435, 0x11d0, 0x81, 0xd0, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {FD853CE8-7F86-11d0-8252-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(CLSID_INNTPTransport, 0xfd853ce8, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("// {0DF2C7E6-3435-11d0-81D0-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_INNTPTransport, 0xdf2c7e6, 0x3435, 0x11d0, 0x81, 0xd0, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("// {0DF2C7ED-3435-11d0-81D0-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_INNTPTransport2, 0xdf2c7eD, 0x3435, 0x11d0, 0x81, 0xd0, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {36D88911-3CD6-11d0-81DF-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_IRASCallback, 0x36d88911, 0x3cd6, 0x11d0, 0x81, 0xdf, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {FD853CE9-7F86-11d0-8252-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(CLSID_IRASTransport, 0xfd853ce9, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("// {8A950001-3CCF-11d0-81DF-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_IRASTransport, 0x8a950001, 0x3ccf, 0x11d0, 0x81, 0xdf, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {FD853CEA-7F86-11d0-8252-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(CLSID_IRangeList, 0xfd853cea, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("// {8C438160-4EF6-11d0-874F-00AA00530EE9}") +cpp_quote("DEFINE_GUID(IID_IRangeList, 0x8c438160, 0x4ef6, 0x11d0, 0x87, 0x4f, 0x0, 0xaa, 0x0, 0x53, 0xe, 0xe9);") +cpp_quote("") +cpp_quote("// {E9E9D8A3-4EDD-11d0-874F-00AA00530EE9}") +cpp_quote("DEFINE_GUID(IID_IIMAPCallback, 0xe9e9d8a3, 0x4edd, 0x11d0, 0x87, 0x4f, 0x0, 0xaa, 0x0, 0x53, 0xe, 0xe9);") +cpp_quote("") +cpp_quote("// {FD853CEB-7F86-11d0-8252-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(CLSID_IIMAPTransport, 0xfd853ceb, 0x7f86, 0x11d0, 0x82, 0x52, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("// {E9E9D8A8-4EDD-11d0-874F-00AA00530EE9}") +cpp_quote("DEFINE_GUID(IID_IIMAPTransport, 0xe9e9d8a8, 0x4edd, 0x11d0, 0x87, 0x4f, 0x0, 0xaa, 0x0, 0x53, 0xe, 0xe9);") +cpp_quote("") +cpp_quote("// {DA8283C0-37C5-11d2-ACD9-0080C7B6E3C5}") +cpp_quote("DEFINE_GUID(IID_IIMAPTransport2, 0xda8283c0, 0x37c5, 0x11d2, 0xac, 0xd9, 0x0, 0x80, 0xc7, 0xb6, 0xe3, 0xc5);") +cpp_quote("") +cpp_quote("// {07849A11-B520-11d0-85D5-00C04FD85AB4}") +cpp_quote("DEFINE_GUID(IID_IBindMessageStream, 0x7849a11, 0xb520, 0x11d0, 0x85, 0xd5, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);") +cpp_quote("") +cpp_quote("// {CA30F3FF-C9AC-11d1-9A3A-00C04FA309D4}") +cpp_quote("DEFINE_GUID(IID_ITransportCallbackService, 0xca30f3ff, 0xc9ac, 0x11d1, 0x9a, 0x3a, 0x0, 0xc0, 0x4f, 0xa3, 0x9, 0xd4);") +cpp_quote("") +cpp_quote("// {19F6481C-E5F0-11d1-A86E-0000F8084F96}") +cpp_quote("DEFINE_GUID(IID_IHTTPMailCallback, 0x19f6481c, 0xe5f0, 0x11d1, 0xa8, 0x6e, 0x0, 0x0, 0xf8, 0x8, 0x4f, 0x96);") +cpp_quote("") +cpp_quote("// {5A580C11-E5EB-11d1-A86E-0000F8084F96}") +cpp_quote("DEFINE_GUID(CLSID_IHTTPMailTransport,0x5a580c11, 0xe5eb, 0x11d1, 0xa8, 0x6e, 0x0, 0x0, 0xf8, 0x8, 0x4f, 0x96);") +cpp_quote("// {B8BDE03C-E548-11d1-A86E-0000F8084F96}") +cpp_quote("DEFINE_GUID(IID_IHTTPMailTransport, 0xb8bde03c, 0xe548, 0x11d1, 0xa8, 0x6e, 0x0, 0x0, 0xf8, 0x8, 0x4f, 0x96);") +cpp_quote("") +cpp_quote("// {82758005-D38A-11d3-8E81-00C04F79E13B}") +cpp_quote("DEFINE_GUID(IID_IHTTPMailTransport2, 0x82758005, 0xd38a, 0x11d3, 0x8e, 0x81, 0x0, 0xc0, 0x4f, 0x79, 0xe1, 0x3b);") +cpp_quote("") +cpp_quote("// {BB847B8A-054A-11d2-A894-0000F8084F96}") +cpp_quote("DEFINE_GUID(CLSID_IPropFindRequest, 0xbb847b8a, 0x54a, 0x11d2, 0xa8, 0x94, 0x0, 0x0, 0xf8, 0x8, 0x4f, 0x96);") +cpp_quote("// {5CFC6308-0544-11d2-A894-0000F8084F96}") +cpp_quote("DEFINE_GUID(IID_IPropFindRequest, 0x5cfc6308, 0x544, 0x11d2, 0xa8, 0x94, 0x0, 0x0, 0xf8, 0x8, 0x4f, 0x96);") +cpp_quote("") +cpp_quote("// {0DEE87DE-0547-11d2-A894-0000F8084F96}") +cpp_quote("DEFINE_GUID(IID_IPropFindMultiResponse, 0xdee87de, 0x547, 0x11d2, 0xa8, 0x94, 0x0, 0x0, 0xf8, 0x8, 0x4f, 0x96);") +cpp_quote("") +cpp_quote("// {8A523716-0548-11d2-A894-0000F8084F96}") +cpp_quote("DEFINE_GUID(IID_IPropFindResponse, 0x8a523716, 0x548, 0x11d2, 0xa8, 0x94, 0x0, 0x0, 0xf8, 0x8, 0x4f, 0x96);") +cpp_quote("") +cpp_quote("// {72A58FF8-227D-11d2-A8B5-0000F8084F96}") +cpp_quote("DEFINE_GUID(IID_IDAVNamespaceArbiter, 0x72a58ff8, 0x227d, 0x11d2, 0xa8, 0xb5, 0x0, 0x0, 0xf8, 0x8, 0x4f, 0x96);") +cpp_quote("") +cpp_quote("// {EA678830-235D-11d2-A8B6-0000F8084F96}") +cpp_quote("DEFINE_GUID(CLSID_IPropPatchRequest, 0xea678830, 0x235d, 0x11d2, 0xa8, 0xb6, 0x0, 0x0, 0xf8, 0x8, 0x4f, 0x96);") +cpp_quote("// {AB8B8D2A-227F-11d2-A8B5-0000F8084F96}") +cpp_quote("DEFINE_GUID(IID_IPropPatchRequest, 0xab8b8d2a, 0x227f, 0x11d2, 0xa8, 0xb5, 0x0, 0x0, 0xf8, 0x8, 0x4f, 0x96);") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// Errors") +cpp_quote("// --------------------------------------------------------------------------------") +//;begin_internal +// +// NOTE: All inetcomm error codes must reside between CC00 and CFFF (a 1k block). +// This has been approved by Johann Posch (johannp) +// We further subdivide this range as follows: +// CC00-CCFF IMNXPORT results +// CD00-CDFF IMNACCT results +// CE00-CEFF MIMEOLE results +// CF00-CFFF undefined, do not use +// (t-erikne 03/24/97) +// +//;end_internal +cpp_quote("#ifndef FACILITY_INTERNET") +cpp_quote("#define FACILITY_INTERNET 12") +cpp_quote("#endif") +cpp_quote("#ifndef HR_E") +cpp_quote("#define HR_E(n) MAKE_SCODE(SEVERITY_ERROR, FACILITY_INTERNET, n)") +cpp_quote("#endif") +cpp_quote("#ifndef HR_S") +cpp_quote("#define HR_S(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_INTERNET, n)") +cpp_quote("#endif") +cpp_quote("#ifndef HR_CODE") +cpp_quote("#define HR_CODE(hr) (INT)(hr & 0xffff)") +cpp_quote("#endif") +cpp_quote("") +//;begin_internal +// HRESULTS are even further subdivided in this file +// NOTE: you should never progammatically rely on this ordering +// it simply gives you a visual cue in the DOUTs +// CC00-CC2F General +// CC30-CC3F HTTPMail (first range) +// CC40-CC5F WINSOCK +// CC60-CC8F SMTP +// CC90-CC9F POP3 +// CCA0-CCBF NNTP +// CCC0-CCCF RAS +// CCD0-CCEF IMAP +// CCF0-CCFF HTTPMail (second range) +//;end_internal +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// General Imnxport Return Values") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define IXP_E_LOAD_SICILY_FAILED HR_E(0xCC00)") // hrFailedToLoadSicily +cpp_quote("#define IXP_E_INVALID_CERT_CN HR_E(0xCC01)") // hrInvalidCertCN +cpp_quote("#define IXP_E_INVALID_CERT_DATE HR_E(0xCC02)") // hrInvalidCertDate +cpp_quote("#define IXP_E_ALREADY_CONNECTED HR_E(0xCC03)") // hrAlreadyConnected +cpp_quote("#define IXP_E_CONN HR_E(0xCC04)") // hrConn +cpp_quote("#define IXP_E_NOT_CONNECTED HR_E(0xCC05)") // hrNotConnected +cpp_quote("#define IXP_E_CONN_SEND HR_E(0xCC06)") // hrConnSend +cpp_quote("#define IXP_E_WOULD_BLOCK HR_E(0xCC07)") // hrWouldBlock +cpp_quote("#define IXP_E_INVALID_STATE HR_E(0xCC08)") // hrInvalidState +cpp_quote("#define IXP_E_CONN_RECV HR_E(0xCC09)") // hrConnRecv +cpp_quote("#define IXP_E_INCOMPLETE HR_E(0xCC0A)") // hrIncomplete +cpp_quote("#define IXP_E_BUSY HR_E(0xCC0B)") +cpp_quote("#define IXP_E_NOT_INIT HR_E(0xCC0C)") +cpp_quote("#define IXP_E_CANT_FIND_HOST HR_E(0xCC0D)") +cpp_quote("#define IXP_E_FAILED_TO_CONNECT HR_E(0xCC0E)") +cpp_quote("#define IXP_E_CONNECTION_DROPPED HR_E(0xCC0F)") +cpp_quote("#define IXP_E_INVALID_ADDRESS HR_E(0xCC10)") +cpp_quote("#define IXP_E_INVALID_ADDRESS_LIST HR_E(0xCC11)") +cpp_quote("#define IXP_E_SOCKET_READ_ERROR HR_E(0xCC12)") +cpp_quote("#define IXP_E_SOCKET_WRITE_ERROR HR_E(0xCC13)") +cpp_quote("#define IXP_E_SOCKET_INIT_ERROR HR_E(0xCC14)") +cpp_quote("#define IXP_E_SOCKET_CONNECT_ERROR HR_E(0xCC15)") +cpp_quote("#define IXP_E_INVALID_ACCOUNT HR_E(0xCC16)") +cpp_quote("#define IXP_E_USER_CANCEL HR_E(0xCC17)") +cpp_quote("#define IXP_E_SICILY_LOGON_FAILED HR_E(0xCC18)") // hrSicilyLogonFailed +cpp_quote("#define IXP_E_TIMEOUT HR_E(0xCC19)") +cpp_quote("#define IXP_E_SECURE_CONNECT_FAILED HR_E(0xCC1A)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// WINSOCK Errors") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define IXP_E_WINSOCK_WSASYSNOTREADY HR_E(0xCC40)") +cpp_quote("#define IXP_E_WINSOCK_WSAVERNOTSUPPORTED HR_E(0xCC41)") +cpp_quote("#define IXP_E_WINSOCK_WSAEPROCLIM HR_E(0xCC42)") +cpp_quote("#define IXP_E_WINSOCK_WSAEFAULT HR_E(0xCC43)") +cpp_quote("#define IXP_E_WINSOCK_FAILED_WSASTARTUP HR_E(0xCC44)") +cpp_quote("#define IXP_E_WINSOCK_WSAEINPROGRESS HR_E(0xCC45)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// SMTP Command Response Values") +cpp_quote("//--------------------------------------------------------------------------------") +cpp_quote("#define IXP_E_SMTP_RESPONSE_ERROR HR_E(0xCC60)") +cpp_quote("#define IXP_E_SMTP_UNKNOWN_RESPONSE_CODE HR_E(0xCC61)") +cpp_quote("#define IXP_E_SMTP_500_SYNTAX_ERROR HR_E(0xCC62)") +cpp_quote("#define IXP_E_SMTP_501_PARAM_SYNTAX HR_E(0xCC63)") +cpp_quote("#define IXP_E_SMTP_502_COMMAND_NOTIMPL HR_E(0xCC64)") +cpp_quote("#define IXP_E_SMTP_503_COMMAND_SEQ HR_E(0xCC65)") +cpp_quote("#define IXP_E_SMTP_504_COMMAND_PARAM_NOTIMPL HR_E(0xCC66)") +cpp_quote("#define IXP_E_SMTP_421_NOT_AVAILABLE HR_E(0xCC67)") +cpp_quote("#define IXP_E_SMTP_450_MAILBOX_BUSY HR_E(0xCC68)") +cpp_quote("#define IXP_E_SMTP_550_MAILBOX_NOT_FOUND HR_E(0xCC69)") +cpp_quote("#define IXP_E_SMTP_451_ERROR_PROCESSING HR_E(0xCC6A)") +cpp_quote("#define IXP_E_SMTP_551_USER_NOT_LOCAL HR_E(0xCC6B)") +cpp_quote("#define IXP_E_SMTP_452_NO_SYSTEM_STORAGE HR_E(0xCC6C)") +cpp_quote("#define IXP_E_SMTP_552_STORAGE_OVERFLOW HR_E(0xCC6D)") +cpp_quote("#define IXP_E_SMTP_553_MAILBOX_NAME_SYNTAX HR_E(0xCC6E)") +cpp_quote("#define IXP_E_SMTP_554_TRANSACT_FAILED HR_E(0xCC6F)") +cpp_quote("") +cpp_quote("#define IXP_S_SMTP_211_SYSTEM_STATUS HR_S(0xCC70)") +cpp_quote("#define IXP_S_SMTP_214_HELP_MESSAGE HR_S(0xCC71)") +cpp_quote("#define IXP_S_SMTP_220_READY HR_S(0xCC72)") +cpp_quote("#define IXP_S_SMTP_221_CLOSING HR_S(0xCC73)") +cpp_quote("#define IXP_S_SMTP_250_MAIL_ACTION_OKAY HR_S(0xCC74)") +cpp_quote("#define IXP_S_SMTP_251_FORWARDING_MAIL HR_S(0xCC75)") +cpp_quote("#define IXP_S_SMTP_354_START_MAIL_INPUT HR_S(0xCC76)") +cpp_quote("#define IXP_S_SMTP_CONTINUE HR_S(0xCC77)") +cpp_quote("#define IXP_S_SMTP_334_AUTH_READY_RESPONSE HR_S(0xCC78)") +cpp_quote("#define IXP_S_SMTP_245_AUTH_SUCCESS HR_S(0xCC79)") +cpp_quote("") +cpp_quote("#define IXP_E_SMTP_REJECTED_SENDER HR_E(0xCC78)") +cpp_quote("#define IXP_E_SMTP_REJECTED_RECIPIENTS HR_E(0xCC79)") +cpp_quote("#define IXP_E_SMTP_NO_SENDER HR_E(0xCC7A)") +cpp_quote("#define IXP_E_SMTP_NO_RECIPIENTS HR_E(0xCC7B)") +cpp_quote("#define IXP_E_SMTP_530_STARTTLS_REQUIRED HR_E(0xCC7C)") +cpp_quote("#define IXP_E_SMTP_NO_STARTTLS_SUPPORT HR_E(0xCC7D)") +cpp_quote("#define IXP_S_SMTP_NO_DSN_SUPPORT HR_E(0xCC7E)") +cpp_quote("#define IXP_E_SMTP_454_STARTTLS_FAILED HR_E(0xCC7F)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// POP3 Command Response Values") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define IXP_E_POP3_RESPONSE_ERROR HR_E(0xCC90)") +cpp_quote("#define IXP_E_POP3_INVALID_USER_NAME HR_E(0xCC91)") // hrPOP3BadUserName +cpp_quote("#define IXP_E_POP3_INVALID_PASSWORD HR_E(0xCC92)") // hrPOP3BadPassword +cpp_quote("#define IXP_E_POP3_PARSE_FAILURE HR_E(0xCC93)") +cpp_quote("#define IXP_E_POP3_NEED_STAT HR_E(0xCC94)") +cpp_quote("#define IXP_E_POP3_NO_MESSAGES HR_E(0xCC95)") +cpp_quote("#define IXP_E_POP3_NO_MARKED_MESSAGES HR_E(0xCC96)") +cpp_quote("#define IXP_E_POP3_POPID_OUT_OF_RANGE HR_E(0xCC97)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// NNTP Command Response Values") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define IXP_E_NNTP_RESPONSE_ERROR HR_E(0xCCA0)") // hrInvalidResponse +cpp_quote("#define IXP_E_NNTP_NEWGROUPS_FAILED HR_E(0xCCA1)") +cpp_quote("#define IXP_E_NNTP_LIST_FAILED HR_E(0xCCA2)") +cpp_quote("#define IXP_E_NNTP_LISTGROUP_FAILED HR_E(0xCCA3)") +cpp_quote("#define IXP_E_NNTP_GROUP_FAILED HR_E(0xCCA4)") +cpp_quote("#define IXP_E_NNTP_GROUP_NOTFOUND HR_E(0xCCA5)") +cpp_quote("#define IXP_E_NNTP_ARTICLE_FAILED HR_E(0xCCA6)") +cpp_quote("#define IXP_E_NNTP_HEAD_FAILED HR_E(0xCCA7)") +cpp_quote("#define IXP_E_NNTP_BODY_FAILED HR_E(0xCCA8)") +cpp_quote("#define IXP_E_NNTP_POST_FAILED HR_E(0xCCA9)") +cpp_quote("#define IXP_E_NNTP_NEXT_FAILED HR_E(0xCCAA)") +cpp_quote("#define IXP_E_NNTP_DATE_FAILED HR_E(0xCCAB)") +cpp_quote("#define IXP_E_NNTP_HEADERS_FAILED HR_E(0xCCAC)") +cpp_quote("#define IXP_E_NNTP_XHDR_FAILED HR_E(0xCCAD)") +cpp_quote("#define IXP_E_NNTP_INVALID_USERPASS HR_E(0xCCAE)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// NNTP Server Response Values") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define IXP_NNTP_DATE_RESPONSE 111") +cpp_quote("#define IXP_NNTP_POST_ALLOWED 200") +cpp_quote("#define IXP_NNTP_POST_NOTALLOWED 201") +cpp_quote("#define IXP_NNTP_GROUP_SELECTED 211") +cpp_quote("#define IXP_NNTP_LIST_DATA_FOLLOWS 215") +cpp_quote("#define IXP_NNTP_ARTICLE_FOLLOWS 220") +cpp_quote("#define IXP_NNTP_HEAD_FOLLOWS 221") +cpp_quote("#define IXP_NNTP_BODY_FOLLOWS 222") +cpp_quote("#define IXP_NNTP_ARTICLE_RETRIEVED 223") +cpp_quote("#define IXP_NNTP_OVERVIEW_FOLLOWS 224") +cpp_quote("#define IXP_NNTP_NEWNEWSGROUPS_FOLLOWS 231") +cpp_quote("#define IXP_NNTP_ARTICLE_POSTED_OK 240") +cpp_quote("#define IXP_NNTP_AUTHORIZATION_ACCEPTED 250") +cpp_quote("#define IXP_NNTP_AUTH_OK 281") +cpp_quote("#define IXP_NNTP_SEND_ARTICLE_TO_POST 340") +cpp_quote("#define IXP_NNTP_CONTINUE_AUTHORIZATION 350") +cpp_quote("#define IXP_NNTP_PASSWORD_REQUIRED 381") +cpp_quote("#define IXP_NNTP_NO_SUCH_NEWSGROUP 411") +cpp_quote("#define IXP_NNTP_NO_NEXT_ARTICLE 421") +cpp_quote("#define IXP_NNTP_NO_PREV_ARTICLE 422") +cpp_quote("#define IXP_NNTP_NO_SUCH_ARTICLE_NUM 423") +cpp_quote("#define IXP_NNTP_NO_SUCH_ARTICLE_FOUND 430") +cpp_quote("#define IXP_NNTP_POSTING_NOT_ALLOWED 441") +cpp_quote("#define IXP_NNTP_PROTOCOLS_SUPPORTED 485") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// RAS Errors") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define IXP_S_RAS_NOT_NEEDED HR_S(0xCCC0)") +cpp_quote("#define IXP_S_RAS_USING_CURRENT HR_S(0xCCC1)") +cpp_quote("#define IXP_E_RAS_NOT_INSTALLED HR_E(0xCCC2)") +cpp_quote("#define IXP_E_RAS_PROCS_NOT_FOUND HR_E(0xCCC3)") +cpp_quote("#define IXP_E_RAS_ERROR HR_E(0xCCC4)") +cpp_quote("#define IXP_E_RAS_INVALID_CONNECTOID HR_E(0xCCC5)") +cpp_quote("#define IXP_E_RAS_GET_DIAL_PARAMS HR_E(0xCCC6)") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// IMAP Return Codes") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#define IXP_S_IMAP_UNRECOGNIZED_RESP HR_S(0xCCD0) // Did not recognize IMAP response CODE") +cpp_quote("#define IXP_S_IMAP_VERBATIM_MBOX HR_S(0xCCE1) // Could not xlate mbox to target CP (or it's disabled): copying verbatim") +cpp_quote("") +cpp_quote("#define IXP_E_IMAP_LOGINFAILURE HR_E(0xCCD1) // LOGIN cmd failed") +cpp_quote("#define IXP_E_IMAP_TAGGED_NO_RESPONSE HR_E(0xCCD2) // Received tagged NO response") +cpp_quote("#define IXP_E_IMAP_BAD_RESPONSE HR_E(0xCCD3) // Received tagged BAD response") +cpp_quote("#define IXP_E_IMAP_SVR_SYNTAXERR HR_E(0xCCD4) // Syntax error in svr response") +cpp_quote("#define IXP_E_IMAP_NOTIMAPSERVER HR_E(0xCCD5) // This is not an IMAP server") +cpp_quote("#define IXP_E_IMAP_BUFFER_OVERFLOW HR_E(0xCCD6) // Buffer overflow occurred") +cpp_quote("#define IXP_E_IMAP_RECVR_ERROR HR_E(0xCCD7) // An error occurred in the recvr code") +cpp_quote("#define IXP_E_IMAP_INCOMPLETE_LINE HR_E(0xCCD8) // Received incomplete line") +cpp_quote("#define IXP_E_IMAP_CONNECTION_REFUSED HR_E(0xCCD9) // Received BYE on greeting") +cpp_quote("#define IXP_E_IMAP_UNRECOGNIZED_RESP HR_E(0xCCDA) // Did not recognize IMAP response") +cpp_quote("#define IXP_E_IMAP_CHANGEDUID HR_E(0xCCDB) // UID changed unexpectedly!") +cpp_quote("#define IXP_E_IMAP_UIDORDER HR_E(0xCCDC) // UIDs not strictly ascending!") +cpp_quote("#define IXP_E_IMAP_UNSOLICITED_BYE HR_E(0xCCDD) // Server issued UNSOLICITED BYE") +cpp_quote("#define IXP_E_IMAP_IMPROPER_SVRSTATE HR_E(0xCCDE) // eg, Attempt to send FETCH before SELECT finishes") +cpp_quote("#define IXP_E_IMAP_AUTH_NOT_POSSIBLE HR_E(0xCCDF) // No common authentication methods btwn client/svr") +cpp_quote("#define IXP_E_IMAP_OUT_OF_AUTH_METHODS HR_E(0xCCE0) // We tried >= 1 auth method, no more left to try") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// HTTPMail Return Codes") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// http errors are discontiguous.") +cpp_quote("#define IXP_E_HTTP_USE_PROXY HR_E(0xCC30) // http status 305") +cpp_quote("#define IXP_E_HTTP_BAD_REQUEST HR_E(0xCC31) // http status 400") +cpp_quote("#define IXP_E_HTTP_UNAUTHORIZED HR_E(0xCC32) // http status 401") +cpp_quote("#define IXP_E_HTTP_FORBIDDEN HR_E(0xCC33) // http status 403") +cpp_quote("#define IXP_E_HTTP_NOT_FOUND HR_E(0xCC34) // http status 404") +cpp_quote("#define IXP_E_HTTP_METHOD_NOT_ALLOW HR_E(0xCC35) // http status 405") +cpp_quote("#define IXP_E_HTTP_NOT_ACCEPTABLE HR_E(0xCC36) // http status 406") +cpp_quote("#define IXP_E_HTTP_PROXY_AUTH_REQ HR_E(0xCC37) // http status 407") +cpp_quote("#define IXP_E_HTTP_REQUEST_TIMEOUT HR_E(0xCC38) // http status 408") +cpp_quote("#define IXP_E_HTTP_CONFLICT HR_E(0xCC39) // http status 409") +cpp_quote("#define IXP_E_HTTP_GONE HR_E(0xCC3A) // http status 410") +cpp_quote("#define IXP_E_HTTP_LENGTH_REQUIRED HR_E(0xCC3B) // http status 411") +cpp_quote("#define IXP_E_HTTP_PRECOND_FAILED HR_E(0xCC3C) // http status 412") +cpp_quote("#define IXP_E_HTTP_INTERNAL_ERROR HR_E(0xCC3D) // http status 500") +cpp_quote("#define IXP_E_HTTP_NOT_IMPLEMENTED HR_E(0xCC3E) // http status 501") +cpp_quote("#define IXP_E_HTTP_BAD_GATEWAY HR_E(0xCC3F) // http status 502") +cpp_quote("// begin second range") +cpp_quote("#define IXP_E_HTTP_SERVICE_UNAVAIL HR_E(0xCCF0) // http status 503") +cpp_quote("#define IXP_E_HTTP_GATEWAY_TIMEOUT HR_E(0xCCF1) // http status 504") +cpp_quote("#define IXP_E_HTTP_VERS_NOT_SUP HR_E(0xCCF2) // http status 505") +cpp_quote("#define IXP_E_HTTP_INSUFFICIENT_STORAGE HR_E(0xCCF3) // http status 425 or 507") +cpp_quote("#define IXP_E_HTTP_ROOT_PROP_NOT_FOUND HR_E(0xCCF4) // see IHTTPMailTransport::GetProperty") +cpp_quote("#define IXP_E_HTTP_NOT_MODIFIED HR_E(0xCCF5) // http status 304") +cpp_quote("#define IXP_E_HTTP_PAYMENT_REQUIRED HR_E(0xCCF6) // http status 402") +cpp_quote("#define IXP_E_HTTP_DAV_ACCESS_TURNED_OFF HR_E(0xCCF7) // http status 404 + x-dav-errror 1204") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// String Length Constants") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("") + + // --------------------------------------------------------------------------------------- + // All of the transports in this file work in an asyncronous mode. It is assumed that + // the client application has a message pump on the thread in which a transport object + // is created. + // --------------------------------------------------------------------------------------- + + // --------------------------------------------------------------------------------------- + // String Lengths + // --------------------------------------------------------------------------------------- + const SHORT CCHMAX_DOMAIN = 256; + const SHORT CCHMAX_PHONE_NUMBER = 128; // RAS_MaxPhoneNumber + + // --------------------------------------------------------------------------------------- + // Default Port Numbers + // --------------------------------------------------------------------------------------- + const DWORD DEFAULT_IMAP_PORT = 143; + const DWORD DEFAULT_POP3_PORT = 110; + const DWORD DEFAULT_SMTP_PORT = 25; + const DWORD DEFAULT_NNTP_PORT = 119; + + // --------------------------------------------------------------------------------------- + // Internet Address Type + // + // There are only two address types because the SMTP protocol only distinguishes + // between a sender (ADDR_FROM) and recipients. ADDR_TO should include all Bcc, Cc and + // To recipients. + // + // additional DSN flags may be anded in and will result in a DSN request only if the + // SMTP server supports DSNs (rfc1891) and the transport connected with an EHLO command + // --------------------------------------------------------------------------------------- + typedef enum tagINETADDRTYPE { + ADDR_TO, // Recipient of the message (To, CC, Bcc, etc) + ADDR_FROM, // Sender of the message + ADDR_DSN_NEVER = 16, // suppress all delivery status notification + ADDR_DSN_SUCCESS = 32, // request DSN on successful delivery + ADDR_DSN_FAILURE = 64, // request DSN on delivery failure + ADDR_DSN_DELAY = 128 // request DSN if delivery is delayed + } INETADDRTYPE; + + const DWORD ADDR_TOFROM_MASK = 0x1; // INETADDRTYPE & ADDR_TOFROM_MASK gives raw type + const DWORD ADDR_DSN_MASK = 0xf0; + + // --------------------------------------------------------------------------------------- + // DSNRET + // controls what whether full message or headers only will be returned with DSNs + // --------------------------------------------------------------------------------------- + typedef enum tagDSNRET { + DSNRET_DEFAULT, // use SMTP server default + DSNRET_HDRS, // return 822 headers only + DSNRET_FULL, // return full message - headers + body + } DSNRET; + + // --------------------------------------------------------------------------------------- + // Internet Address + // --------------------------------------------------------------------------------------- + typedef struct tagINETADDR { + INETADDRTYPE addrtype; + CHAR szEmail[CCHMAX_EMAIL_ADDRESS]; // A person's e-mail address + } INETADDR, *LPINETADDR; + + // --------------------------------------------------------------------------------------- + // Internet Address List + // --------------------------------------------------------------------------------------- + typedef struct tagINETADDRLIST { + ULONG cAddress; // Number of elements in prgInetAddr + LPINETADDR prgAddress; // Array of internet addresses + } INETADDRLIST, *LPINETADDRLIST; + + // ----------------------------------------------------------------------------------- + // RAS Connection Type + // ----------------------------------------------------------------------------------- + typedef enum tagRASCONNTYPE { + RAS_CONNECT_LAN, + RAS_CONNECT_MANUAL, + RAS_CONNECT_RAS + } RASCONNTYPE; + + // ----------------------------------------------------------------------------------- + // HTTPMAIL Root Property Types + // ----------------------------------------------------------------------------------- + typedef enum tagHTTPMAILPROPTYPE { + HTTPMAIL_PROP_INVALID, + HTTPMAIL_PROP_ADBAR, + HTTPMAIL_PROP_CONTACTS, + HTTPMAIL_PROP_INBOX, + HTTPMAIL_PROP_OUTBOX, + HTTPMAIL_PROP_SENDMSG, + HTTPMAIL_PROP_SENTITEMS, + HTTPMAIL_PROP_DELETEDITEMS, + HTTPMAIL_PROP_DRAFTS, + HTTPMAIL_PROP_MSGFOLDERROOT, + HTTPMAIL_PROP_SIG, + HTTPMAIL_PROP_MAXPOLLINGINTERVAL, + HTTPMAIL_PROP_LAST + } HTTPMAILPROPTYPE; + + // ----------------------------------------------------------------------------------- + // HTTPMAIL Special Folder Types + // ----------------------------------------------------------------------------------- + typedef enum tagHTTPMAILSPECIALFOLDER { + HTTPMAIL_SF_NONE = 0, + HTTPMAIL_SF_UNRECOGNIZED, + HTTPMAIL_SF_INBOX, + HTTPMAIL_SF_DELETEDITEMS, + HTTPMAIL_SF_DRAFTS, + HTTPMAIL_SF_OUTBOX, + HTTPMAIL_SF_SENTITEMS, + HTTPMAIL_SF_CONTACTS, + HTTPMAIL_SF_CALENDAR, + HTTPMAIL_SF_MSNPROMO, + HTTPMAIL_SF_BULKMAIL, + HTTPMAIL_SF_LAST + } HTTPMAILSPECIALFOLDER; + + // ----------------------------------------------------------------------------------- + // HTTPMAIL Contact Types + // ----------------------------------------------------------------------------------- + typedef enum tagHTTPMAILCONTACTTYPE { + HTTPMAIL_CT_CONTACT = 0, // default + HTTPMAIL_CT_GROUP, + HTTPMAIL_CT_LAST + } HTTPMAILCONTACTTYPE; + + // ----------------------------------------------------------------------------------- + // DAV Namespaces + // ----------------------------------------------------------------------------------- + const DWORD DAVNAMESPACE_UNKNOWN = 0xFFFFFFFF; + const DWORD DAVNAMESPACE_DAV = 0; + const DWORD DAVNAMESPACE_HOTMAIL = 1; + const DWORD DAVNAMESPACE_HTTPMAIL = 2; + const DWORD DAVNAMESPACE_MAIL = 3; + const DWORD DAVNAMESPACE_CONTACTS = 4; + + // --------------------------------------------------------------------------------------- + // Internet Server Flags... + // --------------------------------------------------------------------------------------- + cpp_quote("#define ISF_SMTP_USEIPFORHELO 0x00000001 // For HELO or EHLO Command") + cpp_quote("#define ISF_ALWAYSPROMPTFORPASSWORD 0x00000002 // For HELO or EHLO Command") // Never save password (boolean) + cpp_quote("#define ISF_SSLONSAMEPORT 0x00000004 // For SMTP Only - use STARTTLS") // For STARTTLS Support + cpp_quote("#define ISF_QUERYDSNSUPPORT 0x00000008 // For SMTP Only - issue EHLO on connect and check for DSN") + cpp_quote("#define ISF_QUERYAUTHSUPPORT 0x00000010 // For SMTP Only - issue EHLO on connect and check for AUTH") + + // --------------------------------------------------------------------------------------- + // Internet Server Information... + // --------------------------------------------------------------------------------------- + typedef struct INETSERVER { + CHAR szAccount[CCHMAX_ACCOUNT_NAME]; // IMN Account Name + CHAR szUserName[CCHMAX_USERNAME]; // User's connection name + CHAR szPassword[CCHMAX_PASSWORD]; // User's password + CHAR szServerName[CCHMAX_SERVER_NAME]; // Server name (or IP address string) + CHAR szConnectoid[CCHMAX_CONNECTOID]; // RAS Connection Name + RASCONNTYPE rasconntype; // RAS connection type + DWORD dwPort; // Port name + BOOL fSSL; // Using SSL + BOOL fTrySicily; // Try using sicily authentication + DWORD dwTimeout; // Timeout in seconds + DWORD dwFlags; // ISF_xxx Flags (above) + } INETSERVER, *LPINETSERVER; + + // ----------------------------------------------------------------------------------- + // Internet Transport Types + // ----------------------------------------------------------------------------------- + typedef enum tagIXPTYPE { + IXP_NNTP, // NNTP (News) + IXP_SMTP, // SMTP (Send) + IXP_POP3, // POP3 (Recv) + IXP_IMAP, // IMAP (Recv / remote store) + IXP_RAS, + IXP_HTTPMail, // HTTPMail (Recv / remote store) + IXP_HTTP // Community News + } IXPTYPE; + + // ----------------------------------------------------------------------------------- + // IXPSTATUS - Transport Status Types + // + // These values are returned in the ITransportCallback::OnStatus callback method + // and in the IInternetTransport::GetStatus member. + // ----------------------------------------------------------------------------------- + typedef enum tagIXPSTATUS + { + IXP_FINDINGHOST, // Attempting to find host (IP/host name resolution) + IXP_CONNECTING, // TCP/IP connection is in progress + IXP_SECURING, // TCP/IP socket connection has been established, securing an SSL connection + IXP_CONNECTED, // TCP/IP socket connection has been established, waiting for protcol response + IXP_AUTHORIZING, // Performing authorization with the server + IXP_AUTHRETRY, // Retrying authorization + IXP_AUTHORIZED, // Authorization successful (transient state, heads directly to IXP_CONNECTED after) + IXP_DISCONNECTING, // The connection is being closed + IXP_DISCONNECTED, // The transport has been disconnected from the server + IXP_SENDING, // (Wininet) Sending data to the server + IXP_SENT, // (Wininet) The data has been sent to the server + IXP_RECEIVING, // (Wininet) Receiving the server's response + IXP_RECEIVED, // (Wininet) The server's response has been received + IXP_COMPLETE, // (Wininet) The asynchronous operation is complete + IXP_LAST // Last status value (for boundschecking purposes) + } IXPSTATUS; + + + // DEPTH_INFINITY : this constant can be passed to any member of IHTTPMailTransport + // that takes a DWORD parameter to specify depth in a propfind request. + + const DWORD DEPTH_INFINITY = 0xFFFFFFFE; + + // IHTTPMailTransport::MemberInfo Flags. + + typedef DWORD MEMBERINFOFLAGS; + const MEMBERINFOFLAGS HTTP_MEMBERINFO_COMMONPROPS = 0x00000000; + const MEMBERINFOFLAGS HTTP_MEMBERINFO_FOLDERPROPS = 0x00000001; // common props and folder props + const MEMBERINFOFLAGS HTTP_MEMBERINFO_MESSAGEPROPS = 0x00000002; // common props and message props + + const MEMBERINFOFLAGS HTTP_MEMBERINFO_ALLPROPS = (HTTP_MEMBERINFO_FOLDERPROPS | HTTP_MEMBERINFO_MESSAGEPROPS); + + // ***NB: You have to be careful when changing IMAP_MSGFLAGS. + // The function, IMAPMsgFlagsToARF in imapfldr.cpp will have to be updated. + typedef DWORD IMAP_MSGFLAGS; // Message flags returned by FLAGS response, + // PERMANENTFLAGS response code and FETCH + const IMAP_MSGFLAGS IMAP_MSG_NOFLAGS = 0x00000000; + const IMAP_MSGFLAGS IMAP_MSG_ANSWERED = 0x00000001; + const IMAP_MSGFLAGS IMAP_MSG_FLAGGED = 0x00000002; + const IMAP_MSGFLAGS IMAP_MSG_DELETED = 0x00000004; + const IMAP_MSGFLAGS IMAP_MSG_SEEN = 0x00000008; + const IMAP_MSGFLAGS IMAP_MSG_DRAFT = 0x00000010; + const IMAP_MSGFLAGS IMAP_MSG_ALLFLAGS = 0x0000001F; // Keep this updated + + // --------------------------------------------------------------------------------------- + // IID_ITransportCallbackService + // --------------------------------------------------------------------------------------- + [ + uuid(CA30F3FF-C9AC-11d1-9A3A-00C04FA309D4), + local, + ] + interface ITransportCallbackService : IUnknown + { + HRESULT GetParentWindow( + [in] DWORD dwReserved, + [out] HWND *phwndParent); + + HRESULT GetAccount( + [out] LPDWORD pdwServerType, // SRV_xxx Bit + [out] IImnAccount **ppAccount); + } + + // --------------------------------------------------------------------------------------- + // IID_ITransportCallback + // --------------------------------------------------------------------------------------- + [ + uuid(0DF2C7E1-3435-11d0-81D0-00C04FD85AB4), + helpstring("Base Transport Callback Interface"), + local, + ] + interface ITransportCallback : IUnknown + { + // ----------------------------------------------------------------------------------- + // IXPRESULT + // + // This structure holds information about a server response or a transport result / + // error. + // ----------------------------------------------------------------------------------- + typedef struct tagIXPRESULT { + HRESULT hrResult; // Error Code + LPSTR pszResponse; // Last server response + UINT uiServerError; // Server generated error number + HRESULT hrServerError; // Associated HRESULT of server error + DWORD dwSocketError; // Socket error as defined in winsock.h + LPSTR pszProblem; // Additional information + } IXPRESULT, *LPIXPRESULT; + + // ----------------------------------------------------------------------------------- + // OnTimeout + // + // Description: + // This method is called by a transport when a timeout period has expired. A timeout + // is defined as a period of time in which no activity has occurred. A client + // can specify a timeout in the INETSERVER structure that is passed to the + // IInternetTransport::Connect method. + // + // When this method is called, the client MUST return a value that indicates + // whether the transport should wait another dwTimeout (seconds), or should + // terminate the connection to the server. + // + // Parameters: + // pdwTimeout Specifies the current timeout value in seconds. A + // client can reset this value to a new timeout value, + // and return S_OK in which case the client will + // continue waiting for the new timeout period. + // pTransport The transport that generated the timeout + // + // Returns: + // S_OK Tells the transport to wait another timeout period + // as specified by the value of *pdwTimeout (seconds). + // S_FALSE Tells the transport to terminate it's connection and + // return to the disconnected state. + // + // ----------------------------------------------------------------------------------- + HRESULT OnTimeout( + [in,out] + DWORD *pdwTimeout, + [in] + IInternetTransport *pTransport); + + // ----------------------------------------------------------------------------------- + // OnLogonPrompt + // + // Description: + // This method is called when the transport requires logon information. The client + // is expected to prompt the user and fill the szUserName, szPassword fields of + // the INETSERVER structure passed in. The client should not attempt to change + // any other fields in this structure, they should be used only for display. + // + // Parameters: + // pInetServer Information about the current internet server. + // pTransport The transport that generated the timeout + // + // Returns: + // S_OK The user entered new logon information and the + // transport should try to re-connect. + // S_FALSE The user wants to cancel the current logon attempt. + // If this value is returned, the transport returns + // to the disconnected state. + // + // ----------------------------------------------------------------------------------- + HRESULT OnLogonPrompt( + [in,out] + LPINETSERVER pInetServer, + [in] + IInternetTransport *pTransport); + + // ----------------------------------------------------------------------------------- + // OnPrompt + // + // Description: + // This method is called when the transport requires user input. This method is called + // in the following cases: + // + // 1) hrError == IXP_E_INVALID_CERT_CN, Invalid certificate, SSL error + // 2) hrError == IXP_E_INVALID_CERT_DATE, Invalid certificate date, SSL error + // + // Parameters: + // hrError HRESULT of reason for user prompt, usually an error + // pszText Suggested text of question to be displayed + // pszCaption Suggested caption of messagebox + // uType Same parameter as passed into MessageBox (Yes, no, etc) + // pTransport The transport object that generated the OnPrompt + // + // Returns + // INT This method should return the same value as the + // standard windows MessageBox API function. + // + // ----------------------------------------------------------------------------------- + INT OnPrompt( + [in] + HRESULT hrError, + [in] + LPCTSTR pszText, + [in] + LPCTSTR pszCaption, + [in] + UINT uType, + [in] + IInternetTransport *pTransport); + + // ----------------------------------------------------------------------------------- + // OnStatus + // + // Description: + // This method is called to allow the client to provide a user with a high level + // progress indicator. + // + // Parameters: + // ixpstatus Current status of the transport, described above + // pTransport Transport object that generated the OnStatus call + // + // Returns: + // HRESULT A client should always return S_OK + // + // ----------------------------------------------------------------------------------- + HRESULT OnStatus( + [in] + IXPSTATUS ixpstatus, + [in] + IInternetTransport *pTransport); + + // ----------------------------------------------------------------------------------- + // OnError + // + // Description: + // This method is called when a transport encounters a fatal error that will most + // likely result is a disconnection from the server. Normal protocol errors are + // returned through each transports OnResponse metho. This method is used to handle + // high-level errors such eas TCP/IP and connection failures. + // + // Parameters: + // ixpstatus Current status of the transport (described above) + // pResult Error information + // pTransport Transport object that generated the OnError call + // + // Return Values: + // HRESULT A client should always return S_OK + // + // ----------------------------------------------------------------------------------- + HRESULT OnError( + [in] + IXPSTATUS ixpstatus, + [in] + LPIXPRESULT pResult, + [in] + IInternetTransport *pTransport); + + // ----------------------------------------------------------------------------------- + // OnCommand + // + // Description: + // This method is called for every command send to the server and for every respsonse + // received from the server. This method is provided ONLY for logging and debugging + // purposes. If you pass FALSE for fCommandLogging in the call to + // IInternetTransport::Connect, this method will not be called. There is a small + // amount of overhead when this function is called. + // + // Parameters: + // cmdtype Is this a Send Line or a Response Line + // pszLine Data send to or received from the server + // hrResponse HRESULT of response code (see codes above). If this + // is a failure code, then it indicates that the + // transport just received an error from the server + // and the current operation is going to fail, possible. + // pTransport Transport that generated the call to OnCommand + // + // Returns: + // S_OK The client should always return S_OK + // + // ----------------------------------------------------------------------------------- + typedef enum tagCMDTYPE { + CMD_SEND, + CMD_RESP + } CMDTYPE; + + HRESULT OnCommand( + [in] + CMDTYPE cmdtype, + [in, annotation("_In_z_")] + LPSTR pszLine, + [in] + HRESULT hrResponse, + [in] + IInternetTransport *pTransport); + } + + // --------------------------------------------------------------------------------------- + // IID_IInternetTransport + // --------------------------------------------------------------------------------------- + [ + uuid(1F636C01-364E-11d0-81D3-00C04FD85AB4), + helpstring("Internet Transport Interface"), + local, + ] + interface IInternetTransport : IUnknown + { + + // Interface Constants + const boolean iitAUTHENTICATE = TRUE; + const boolean iitDONT_AUTHENTICATE = FALSE; + const boolean iitENABLE_ONCOMMAND = TRUE; + const boolean iitDISABLE_ONCOMMAND = FALSE; + + + // ----------------------------------------------------------------------------------- + // GetServerInfo + // + // Description: + // Allows the client to retreive server information for the transport. The data in + // this structure is valid only after a call to IInternetTransport::Connect. + // + // Parameters: + // pInetServer Current server information for the transport + // + // Returns: + // E_INVALIDARG pInetServer is NULL + // + // ----------------------------------------------------------------------------------- + HRESULT GetServerInfo( + [in,out] + LPINETSERVER pInetServer); + + // ----------------------------------------------------------------------------------- + // GetIXPType + // + // Description: + // This method returns the IXPTYPE of the transport. + // + // Parameters: + // None + // + // Returns: + // IXPTYPE Internet Transport Type + // + // ----------------------------------------------------------------------------------- + IXPTYPE GetIXPType(void); + + // ----------------------------------------------------------------------------------- + // IsState + // + // Description: + // This method allows a client to query the transport for validity of different states. + // + // Parameters: + // isstate The State in which to query + // + // Returns: + // IXP_E_NOT_INIT The transport has not been initialized + // IXP_E_NOT_CONNECTED The transport is not connected (return if isstate != IXP_IS_CONNECTED) + // S_OK The IXP_IS_xxx state is true + // S_FALSE The IXP_IS_xxx state is false + // + // ----------------------------------------------------------------------------------- + typedef enum tagIXPISSTATE { + IXP_IS_CONNECTED, // Is the transport currently connected + IXP_IS_BUSY, // Is the transport currently processing a command + IXP_IS_READY, // Is the transport ready for input + IXP_IS_AUTHENTICATED, // Has the transport performed authentication + } IXPISSTATE; + + HRESULT IsState( + [in] + IXPISSTATE isstate); + + // ----------------------------------------------------------------------------------- + // InetServerFromAccount + // + // Description: + // This method takes an Internet Mail and News Account object and returns a filled + // INETSERVER structure. + // + // Parameters: + // pAccount Internet Mail and News Account + // pInetServer Upon successful return contains server information + // required to call IInternetTransport::Connect. + // + // Return Values: + // E_INVALIDARG pAccount is NULL or pInetServer is NULL + // + // ----------------------------------------------------------------------------------- + HRESULT InetServerFromAccount( + [in] + IImnAccount *pAccount, + [in,out] + LPINETSERVER pInetServer); + + // ----------------------------------------------------------------------------------- + // Connect + // + // Description: + // Connects the transport to the server specified in pInetServer struct. This call + // is asyncronous. Each transport defines that terminal connect state. For example, + // for SMTP, the connect state (::Connect is done) is defined by the SMTP_CONNECTED, + // state. + // + // Parameters: + // pInetServer Internet Server connection information. + // fAuthenticate Tells the transport whether of or not to perform + // authentication with the server. If you client + // passes FALSE, it is responsible for authentication. + // fCommandLogging If you pass FALSE, the ITransportCallback::OnCommand + // method will never be called. + // + // Returns: + // E_INVALIDARG pInetServer is NULL, or a member of it is invalid + // E_OUTOFMEMORY An memory allocation failed + // E_FAIL Socket initialization or connection failed. + // IXP_E_ALREADY_CONNECTED The transport is currently connected and busy + // IXP_E_NOT_INIT The transport has not been Initialized + // IXP_E_SOCKET_INIT_ERROR Unable to initilize the TCP/IP socket connection + // IXP_E_SOCKET_CONNECT_ERROR Unable to connect the TCP/IP socket + // + // In general this function succeeds, even if the server does not exist. If the + // server can not be found, the client will receive error information through + // ITransportCallback::OnError, and the terminal connection state can be detected + // when ITransportCallback::OnStatus(IXP_DISCONNECTED) is called. + // + // ----------------------------------------------------------------------------------- + HRESULT Connect( + [in] + LPINETSERVER pInetServer, + [in] + boolean fAuthenticate, + [in] + boolean fCommandLogging); + + // ----------------------------------------------------------------------------------- + // HandsOffCallback + // + // Description: + // This method forces the Transport to release the callback interface that was + // passed into the InitNew method of the transport. After this method is called, + // no more calls will be made to the callback function. This method is provided + // so that clients can resolve possible circurlar references. + // + // Parameters: + // None + // + // Returns: + // S_OK The callback was release + // S_FALSE There is currently no callback registered + // + // ----------------------------------------------------------------------------------- + HRESULT HandsOffCallback(void); + + // ----------------------------------------------------------------------------------- + // Disconnect + // + // Description: + // This method disconnects the transport. This method may cause the transport to + // send a command, such as the QUIT command, to the server. This is the clean + // method of terminating the connection to the server, as opposed to DropConnection. + // + // Parameters: + // None + // + // Returns: + // S_OK The connection has been dropped. + // IXP_E_NOT_INIT The transport has not been Initialized + // IXP_E_NOT_CONNECTED The transport is not connected. + // + // ----------------------------------------------------------------------------------- + HRESULT Disconnect(void); + + // ----------------------------------------------------------------------------------- + // DropConnection + // + // Description: + // This method disconnects the transport. This is an un-clean way, but guaranteed + // method of dropping the connection between the client and the server. To allow + // the protocol to shutdown in a normal fashion, call Disconnect. + // + // Parameters: + // None + // + // Returns: + // S_OK The connection has been dropped. + // IXP_E_NOT_INIT The transport has not been Initialized + // IXP_E_NOT_CONNECTED The transport is not connected. + // + // ----------------------------------------------------------------------------------- + HRESULT DropConnection(void); + + + // ----------------------------------------------------------------------------------- + // GetStatus + // + // Description: + // This function returns the current status of the transport. + // + // Parameters: + // IXPSTATUS *pCurrentStatus [out] - current status of the transport is returned here. + // + // Returns: + // HRESULT indicating success or failure. + // ----------------------------------------------------------------------------------- + HRESULT GetStatus([out]IXPSTATUS *pCurrentStatus); + } + + // --------------------------------------------------------------------------------------- + // IID_ISMTPCallback + // --------------------------------------------------------------------------------------- + [ + uuid(1F636C02-364E-11d0-81D3-00C04FD85AB4), + helpstring("SMTP Callback Interface"), + local, + ] + interface ISMTPCallback : ITransportCallback + { + // ----------------------------------------------------------------------------------- + // SMTPCOMMAND + // ----------------------------------------------------------------------------------- + typedef enum tagSMTPCOMMAND { + SMTP_NONE, + SMTP_BANNER, + SMTP_CONNECTED, + SMTP_SEND_MESSAGE, + SMTP_AUTH, + SMTP_EHLO, + SMTP_HELO, + SMTP_MAIL, + SMTP_RCPT, + SMTP_RSET, + SMTP_QUIT, + SMTP_DATA, + SMTP_DOT, + SMTP_SEND_STREAM, + SMTP_CUSTOM + } SMTPCOMMAND; + + // ----------------------------------------------------------------------------------- + // SMTPSTREAM return OnResponse - command == SMTP_SEND_STREAM + // ----------------------------------------------------------------------------------- + typedef struct tagSMTPSTREAM { + DWORD cbIncrement; + DWORD cbCurrent; + DWORD cbTotal; + } SMTPSTREAM, *LPSMTPSTREAM; + + // ----------------------------------------------------------------------------------- + // SMTPRESPONSE + // + // Description: + // command SMTPCOMMAND that generated the response + // fDone Is the command finished. If TRUE, the client + // can issue another command through ISMTPTransport, + // otherwise, the client should continue to pump + // messages until fDone = TRUE is received. + // rIxpResult Result Information for the response. If + // rIxpResult::hrResult specifies a FAILED result, + // the structure contains other information. + // pTransport Transport that generated the OnResponse call. + // + // ----------------------------------------------------------------------------------- + typedef struct tagSMTPRESPONSE { + SMTPCOMMAND command; // Command in which the response was generated for + BOOL fDone; // Is this an SMTP continuation response? + IXPRESULT rIxpResult; // Result Information + ISMTPTransport *pTransport; // Pointer to the SMTP transport that generated the response + + // This is a union of response information based on the command + [switch_type(SMTPCOMMAND), switch_is((SMTPCOMMAND)command)] + union { + [case(SMTP_SEND_STREAM)] SMTPSTREAM rStreamInfo; + [default]; + }; + } SMTPRESPONSE, *LPSMTPRESPONSE; + + // ----------------------------------------------------------------------------------- + // OnResponse + // + // Description: + // Called by ISMTPTransport when a command response is received from the SMTP server. + // + // Parameters: + // pResponse Response information + // + // Return Values: + // S_OK The client should always return S_OK + // + // ----------------------------------------------------------------------------------- + HRESULT OnResponse( + [in] + LPSMTPRESPONSE pResponse); + } + + // --------------------------------------------------------------------------------------- + // IID_ISMTPTransport + // --------------------------------------------------------------------------------------- + [ + uuid(0DF2C7E2-3435-11d0-81D0-00C04FD85AB4), + helpstring("SMTP Transport Interface"), + local, + ] + interface ISMTPTransport : IInternetTransport + { + // ----------------------------------------------------------------------------------- + // SMTPMESSAGE + // ----------------------------------------------------------------------------------- + typedef struct tagSMTPMESSAGE { + ULONG cbSize; // Size of the message in bytes + LPSTREAM pstmMsg; // Stream containing ANSI MIME/rfc822 message stream + INETADDRLIST rAddressList; // Internet Address List containing sender and recipients + } SMTPMESSAGE, *LPSMTPMESSAGE; + + // ----------------------------------------------------------------------------------- + // InitNew + // + // Description: + // This method Initializes the internet transport. This method be called before + // the transport can doing anything. + // + // Parameters: + // pszLogFilePath Full file path in which to log the protocol commands. + // NULL is a valid value (no logging) + // pCallback(required) Specifies the Transport callback interface. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT InitNew( + [in, annotation("_In_opt_")] + LPSTR pszLogFilePath, + [in] + ISMTPCallback *pCallback); + + // ----------------------------------------------------------------------------------- + // SendMessage + // + // Description: + // This method initiates the sending process. IInternetTransport::Connect must have + // been called before this method is called (i.e. the transport must be in the + // ready state). This method calls OnProgress throughout the transmission of + // pMessage->pstmMsg so that the client can display progress. When the message is + // fisnished, or if an error ocurrs, ITransportCallback::OnComplete is called. + // + // Parameters: + // pMessage(required) Contains the information for the message to send. This + // method duplicates the contents of pMessage and AddRefs, + // pMessage->pstmMsg so that the client can free pMessage + // immediately after calling this method. + // + // Returns: + // E_INVALIDARG pMessage is invalid or one of its members is invalid + // E_OUTOFMEMORY A memory allocation failed + // IXP_E_BUSY The transport is busy + // IXP_E_INVALID_ADDRESS_LIST SMTPMESSAGE::rInetAddrList contains invalid entries + // IXP_E_NOT_CONNECTED IInternetTransport::Connect has not been called, or + // the current connection has been lost. The transport + // will not automatically re-connect. + // + // ----------------------------------------------------------------------------------- + HRESULT SendMessage( + [in] + LPSMTPMESSAGE pMessage); + + // ----------------------------------------------------------------------------------- + // CommandMAIL + // ----------------------------------------------------------------------------------- + HRESULT CommandMAIL( + [in, annotation("_In_z_")] + LPSTR pszEmailFrom); + + // ----------------------------------------------------------------------------------- + // CommandRCPT + // ----------------------------------------------------------------------------------- + HRESULT CommandRCPT( + [in, annotation("_In_z_")] + LPSTR pszEmailTo); + + // ----------------------------------------------------------------------------------- + // CommandEHLO + // ----------------------------------------------------------------------------------- + HRESULT CommandEHLO(void); + + // ----------------------------------------------------------------------------------- + // CommandHELO + // ----------------------------------------------------------------------------------- + HRESULT CommandHELO(void); + + // ----------------------------------------------------------------------------------- + // CommandHELO + // ----------------------------------------------------------------------------------- + HRESULT CommandAUTH( + [in, annotation("_In_z_")] + LPSTR pszAuthType); + + // ----------------------------------------------------------------------------------- + // CommandQUIT + // ----------------------------------------------------------------------------------- + HRESULT CommandQUIT(void); + + // ----------------------------------------------------------------------------------- + // CommandRSET + // ----------------------------------------------------------------------------------- + HRESULT CommandRSET(void); + + // ----------------------------------------------------------------------------------- + // CommandDATA + // ----------------------------------------------------------------------------------- + HRESULT CommandDATA(void); + + // ----------------------------------------------------------------------------------- + // CommandDOT + // ----------------------------------------------------------------------------------- + HRESULT CommandDOT(void); + + // ----------------------------------------------------------------------------------- + // SendDataStream - This method does a CommandDOT when it is finished. + // ----------------------------------------------------------------------------------- + HRESULT SendDataStream( + [in] + IStream *pStream, + [in] + ULONG cbSize); + } + + // --------------------------------------------------------------------------------------- + // IID_ISMTPTransport2 + // --------------------------------------------------------------------------------------- + [ + uuid(0DF2C7EC-3435-11d0-81D0-00C04FD85AB4), + helpstring("SMTP Transport Interface"), + local, + ] + interface ISMTPTransport2 : ISMTPTransport + { + + // ----------------------------------------------------------------------------------- + // SMTPMESSAGE2 + // + // Adds DSN (rfc1891) support. To receive DSNs the SMTP server must implement rfc1891 + // and the SMTP transport must be initialized with an EHLO command + // ----------------------------------------------------------------------------------- + typedef struct tagSMTPMESSAGE2 { + SMTPMESSAGE smtpMsg; // SMTPMESSAGE structure + LPSTR pszDSNENVID; // value for MAIL ENVID paramter + DSNRET dsnRet; // value for MAIL RET parameter + DWORD dwReserved; + DWORD dwReserved2; + } SMTPMESSAGE2, *LPSMTPMESSAGE2; + + //*************************************************************************** + // Function: SetWindow + // + // Purpose: + // This function creates a new window for async winsock processing + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT SetWindow(void); + + //*************************************************************************** + // Function: ResetWindow + // + // Purpose: + // This function closes a window for async winsock processing + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT ResetWindow(void); + + // ----------------------------------------------------------------------------------- + // SendMessage2 + // + // Description: + // This method initiates the sending process. IInternetTransport::Connect must have + // been called before this method is called (i.e. the transport must be in the + // ready state). This method calls OnProgress throughout the transmission of + // pMessage->pstmMsg so that the client can display progress. When the message is + // fisnished, or if an error ocurrs, ITransportCallback::OnComplete is called. + // + // Parameters: + // pMessage(required) Contains the information for the message to send. This + // method duplicates the contents of pMessage and AddRefs, + // pMessage->pstmMsg so that the client can free pMessage + // immediately after calling this method. + // + // Returns: + // E_INVALIDARG pMessage is invalid or one of its members is invalid + // E_OUTOFMEMORY A memory allocation failed + // IXP_E_BUSY The transport is busy + // IXP_E_INVALID_ADDRESS_LIST SMTPMESSAGE::rInetAddrList contains invalid entries + // IXP_E_NOT_CONNECTED IInternetTransport::Connect has not been called, or + // the current connection has been lost. The transport + // will not automatically re-connect. + // + // ----------------------------------------------------------------------------------- + HRESULT SendMessage2( + [in] + LPSMTPMESSAGE2 pMessage); + + // ----------------------------------------------------------------------------------- + // CommandRCPT2 + // ----------------------------------------------------------------------------------- + HRESULT CommandRCPT2( + [in, annotation("_In_z_")] + LPSTR pszEmailTo, + [in] + INETADDRTYPE atDSN); + } + + // --------------------------------------------------------------------------------------- + // IID_IDAVNamespaceArbiter + // --------------------------------------------------------------------------------------- + [ + uuid(72A58FF8-227D-11d2-A8B5-0000F8084F96), + helpstring("DAV Namespace Arbiter"), + local, + ] + interface IDAVNamespaceArbiter : IUnknown + { + HRESULT AddNamespace( + [in] + LPCSTR pszNamespace, + [out] + DWORD *pdwNamespaceID); + + HRESULT GetNamespaceID( + [in] + LPCSTR pszNamespace, + [out] + DWORD *pdwNamespaceID); + + HRESULT GetNamespacePrefix( + [in] + DWORD dwNamespaceID, + [out, annotation("_Outptr_")] + LPSTR *ppszNamespacePrefix); + } + + // --------------------------------------------------------------------------------------- + // IID_IPropPatchRequest + // --------------------------------------------------------------------------------------- + [ + uuid(AB8B8D2A-227F-11d2-A8B5-0000F8084F96), + helpstring("DAV PropPatch Request"), + local, + ] + interface IPropPatchRequest : IDAVNamespaceArbiter + { + HRESULT SetProperty( + [in] + DWORD dwNamespaceID, + [in] + LPCSTR pszPropertyName, + [in] + LPCSTR pszNewValue); + + HRESULT RemoveProperty( + [in] + DWORD dwNamespaceID, + [in] + LPCSTR pszPropertyName); + + HRESULT GenerateXML( + [out, annotation("_Outptr_")] + LPSTR *pszXML); + } + + // --------------------------------------------------------------------------------------- + // IID_IPropFindRequest + // --------------------------------------------------------------------------------------- + [ + uuid(5CFC6308-0544-11d2-A894-0000F8084F96), + helpstring("DAV PropFind Request"), + local, + ] + interface IPropFindRequest : IDAVNamespaceArbiter + { + HRESULT AddProperty( + [in] + DWORD dwNamespaceID, + [in] + LPCSTR pszPropertyName); + + HRESULT GenerateXML( + [out, annotation("_Outptr_")] + LPSTR *pszXML); + } + + // --------------------------------------------------------------------------------------- + // IID_IPropFindMultiResponse + // --------------------------------------------------------------------------------------- + [ + uuid(0DEE87DE-0547-11d2-A894-0000F8084F96), + helpstring("DAV PropFind MultiResponse"), + local, + ] + interface IPropFindMultiResponse : IUnknown + { + BOOL IsComplete(void); + + HRESULT GetLength( + [out] + ULONG *pulLength); + + HRESULT GetResponse( + [in] + ULONG ulIndex, + [out] + IPropFindResponse **ppResponse); + } + + // --------------------------------------------------------------------------------------- + // IID_IPropFindResponse + // --------------------------------------------------------------------------------------- + [ + uuid(8A523716-0548-11d2-A894-0000F8084F96), + helpstring("DAV PropFind Response"), + local, + ] + interface IPropFindResponse : IUnknown + { + BOOL IsComplete(void); + + HRESULT GetHref( + [out, annotation("_Outptr_")] + LPSTR *ppszHref); + + HRESULT GetProperty( + [in] + DWORD dwNamespaceID, + [in] + LPCSTR pszPropertyName, + [out, annotation("_Outptr_")] + LPSTR *ppszPropertyValue); + } + + // --------------------------------------------------------------------------------------- + // IID_IHTTPMailCallback + // --------------------------------------------------------------------------------------- + [ + uuid(19F6481C-E5F0-11d1-A86E-0000F8084F96), + helpstring("HTTPMail Callback Interface"), + local, + ] + interface IHTTPMailCallback : ITransportCallback + { + + // ----------------------------------------------------------------------------------- + // HTTPMAILCOMMAND + // ----------------------------------------------------------------------------------- + typedef enum tagHTTPMAILCOMMAND + { + HTTPMAIL_NONE, + HTTPMAIL_GETPROP, + HTTPMAIL_GET, + HTTPMAIL_PUT, + HTTPMAIL_POST, + HTTPMAIL_DELETE, + HTTPMAIL_BDELETE, + HTTPMAIL_PROPFIND, + HTTPMAIL_PROPPATCH, + HTTPMAIL_MKCOL, + HTTPMAIL_COPY, + HTTPMAIL_BCOPY, + HTTPMAIL_MOVE, + HTTPMAIL_BMOVE, + HTTPMAIL_MEMBERINFO, + HTTPMAIL_FINDFOLDERS, + HTTPMAIL_MARKREAD, + HTTPMAIL_SENDMESSAGE, + HTTPMAIL_LISTCONTACTS, + HTTPMAIL_CONTACTINFO, + HTTPMAIL_POSTCONTACT, + HTTPMAIL_PATCHCONTACT, + HTTPMAIL_WAITROOTPROP + } HTTPMAILCOMMAND; + + // ----------------------------------------------------------------------------------- + // HTTPMAILGETPROP + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMAILGETPROP + { + HTTPMAILPROPTYPE type; + LPSTR pszProp; + DWORD dwProp; + } HTTPMAILGETPROP, *LPHTTPMAILGETPROP; + + // ----------------------------------------------------------------------------------- + // HTTPMAILGET + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMAILGET + { + BOOL fTotalKnown; // server provided a content-length (cbTotal is valid) + DWORD cbIncrement; // bytes in this response + DWORD cbCurrent; // bytes downloaded so far + DWORD cbTotal; // total bytes in the response (if fTotalKnown == TRUE) + LPVOID pvBody; // content bytes + LPSTR pszContentType; + } HTTPMAILGET, *LPHTTPMAILGET; + + // ----------------------------------------------------------------------------------- + // HTTPMAILPOST + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMAILPOST + { + LPSTR pszLocation; + BOOL fResend; + DWORD cbIncrement; + DWORD cbCurrent; + DWORD cbTotal; + } HTTPMAILPOST, *LPHTTPMAILPOST; + + // ----------------------------------------------------------------------------------- + // HTTPMAILPROPFIND + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMAILPROPFIND + { + IPropFindMultiResponse *pMultiResponse; // parsed propfind response + } HTTPMAILPROPFIND, *LPHTTPMAILPROPFIND; + + // ----------------------------------------------------------------------------------- + // HTTPMAILLOCATION + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMAILLOCATION + { + LPSTR pszLocation; + } HTTPMAILLOCATION, *LPHTTPMAILLOCATION; + + // ----------------------------------------------------------------------------------- + // HTTPMAILBCOPYMOVE + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMAILBCOPYMOVE + { + LPSTR pszHref; + LPSTR pszLocation; + HRESULT hrResult; + } HTTPMAILBCOPYMOVE, *LPHTTPMAILBCOPYMOVE; + + // ----------------------------------------------------------------------------------- + // HTTPMAILBCOPYMOVELIST + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMAILBCOPYMOVELIST + { + ULONG cBCopyMove; + LPHTTPMAILBCOPYMOVE prgBCopyMove; + } HTTPMAILBCOPYMOVELIST, *LPHTTPMAILBCOPYMOVELIST; + + // ----------------------------------------------------------------------------------- + // HTTPMAILMEMBERINFO + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMEMBERINFO + { + // common properties + + LPSTR pszHref; + BOOL fIsFolder; + + // folder properties + + LPSTR pszDisplayName; + BOOL fHasSubs; + BOOL fNoSubs; + DWORD dwUnreadCount; + DWORD dwVisibleCount; + HTTPMAILSPECIALFOLDER tySpecial; + + // message properties + + BOOL fRead; + BOOL fHasAttachment; + LPSTR pszTo; + LPSTR pszFrom; + LPSTR pszSubject; + LPSTR pszDate; + DWORD dwContentLength; + } HTTPMEMBERINFO, *LPHTTPMEMBERINFO; + + // ----------------------------------------------------------------------------------- + // HTTPMEMBERINFOLIST + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMEMBERINFOLIST + { + ULONG cMemberInfo; // count of elements in prgMemberInfo + LPHTTPMEMBERINFO prgMemberInfo; // array of HTTPMEMBERINFO + LPSTR pszRootTimeStamp; + LPSTR pszFolderTimeStamp; + } HTTPMEMBERINFOLIST, *LPHTTPMEMBERINFOLIST; + + // ----------------------------------------------------------------------------------- + // HTTPMEMBERERROR + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMEMBERERROR + { + LPSTR pszHref; + HRESULT hrResult; + } HTTPMEMBERERROR, *LPHTTPMEMBERERROR; + + // ----------------------------------------------------------------------------------- + // HTTPMEMBERERRORLIST + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMEMBERERRORLIST + { + ULONG cMemberError; + LPHTTPMEMBERERROR prgMemberError; + } HTTPMEMBERERRORLIST, *LPHTTPMEMBERERRORLIST; + + // ----------------------------------------------------------------------------------- + // HTTPCONTACTID + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPCONTACTID + { + LPSTR pszHref; + LPSTR pszId; + HTTPMAILCONTACTTYPE tyContact; + LPSTR pszModified; + } HTTPCONTACTID, *LPHTTPCONTACTID; + + // ----------------------------------------------------------------------------------- + // HTTPCONTACTIDLIST + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPCONTACTIDLIST + { + ULONG cContactId; // number of elements in prgContactId + LPHTTPCONTACTID prgContactId; // array cf contact ids + } HTTPCONTACTIDLIST, *LPHTTPCONTACTIDLIST; + + // ----------------------------------------------------------------------------------- + // HTTPCONTACTINFO + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPCONTACTINFO + { + LPSTR pszHref; + LPSTR pszId; + HTTPMAILCONTACTTYPE tyContact; + LPSTR pszModified; + LPSTR pszDisplayName; + LPSTR pszGivenName; + LPSTR pszSurname; + LPSTR pszNickname; + LPSTR pszEmail; + LPSTR pszHomeStreet; + LPSTR pszHomeCity; + LPSTR pszHomeState; + LPSTR pszHomePostalCode; + LPSTR pszHomeCountry; + LPSTR pszCompany; + LPSTR pszWorkStreet; + LPSTR pszWorkCity; + LPSTR pszWorkState; + LPSTR pszWorkPostalCode; + LPSTR pszWorkCountry; + LPSTR pszHomePhone; + LPSTR pszHomeFax; + LPSTR pszWorkPhone; + LPSTR pszWorkFax; + LPSTR pszMobilePhone; + LPSTR pszOtherPhone; + LPSTR pszBday; + LPSTR pszPager; + } HTTPCONTACTINFO, *LPHTTPCONTACTINFO; + + // ----------------------------------------------------------------------------------- + // HTTPCONTACTINFOLIST + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPCONTACTINFOLIST + { + ULONG cContactInfo; + LPHTTPCONTACTINFO prgContactInfo; + } HTTPCONTACTINFOLIST, *LPHTTPCONTACTINFOLIST; + + // ----------------------------------------------------------------------------------- + // HTTPMAILRESPONSE + // ----------------------------------------------------------------------------------- + typedef struct tagHTTPMAILRESPONSE + { + HTTPMAILCOMMAND command; // Command for which the response was generated + DWORD dwContext; // Client context + BOOL fDone; // Is this the last response for the command + IXPRESULT rIxpResult; // Result information + IHTTPMailTransport *pTransport; // Pointer to the HTTPMail transport that generated the response + + // This is a union of response information based on the command + [switch_type(HTTPMAILCOMMAND), switch_is((HTTPMAILCOMMAND)command)] + union + { + [case(HTTPMAIL_GETPROP)] HTTPMAILGETPROP rGetPropInfo; + [case(HTTPMAIL_GET)] HTTPMAILGET rGetInfo; + [case(HTTPMAIL_PUT)] HTTPMAILPOST rPutInfo; + [case(HTTPMAIL_POST)] HTTPMAILPOST rPostInfo; + [case(HTTPMAIL_PROPFIND)] HTTPMAILPROPFIND rPropFindInfo; + [case(HTTPMAIL_MKCOL)]HTTPMAILLOCATION rMkColInfo; + [case(HTTPMAIL_COPY)]HTTPMAILLOCATION rCopyMoveInfo; + [case(HTTPMAIL_BCOPY)]HTTPMAILBCOPYMOVELIST rBCopyMoveList; + [case(HTTPMAIL_MEMBERINFO)] HTTPMEMBERINFOLIST rMemberInfoList; // response for MemberInfo, FindFolders + [case(HTTPMAIL_MARKREAD)] HTTPMEMBERERRORLIST rMemberErrorList; // response for MarkRead, BDELETE + [case(HTTPMAIL_SENDMESSAGE)] HTTPMAILPOST rSendMessageInfo; + [case(HTTPMAIL_LISTCONTACTS)] HTTPCONTACTIDLIST rContactIdList; + [case(HTTPMAIL_CONTACTINFO)] HTTPCONTACTINFOLIST rContactInfoList; + [case(HTTPMAIL_POSTCONTACT)] HTTPCONTACTID rPostContactInfo; + [case(HTTPMAIL_PATCHCONTACT)] HTTPCONTACTID rPatchContactInfo; + [default]; + }; + } HTTPMAILRESPONSE, *LPHTTPMAILRESPONSE; + + // ----------------------------------------------------------------------------------- + // OnResponse + // + // Description + // Called by IHTTPMailTransport when a command response is received from the HTTP server + // + // Paramters + // pResponse Response information + // + // Return values: + // S_OK The client should always return S_OK + // + // ----------------------------------------------------------------------------------- + HRESULT OnResponse( + [in] + LPHTTPMAILRESPONSE pResponse); + + HRESULT GetParentWindow( + [out] + HWND *phwndParent); + } + + // --------------------------------------------------------------------------------------- + // IID_IHTTPMailTransport + // --------------------------------------------------------------------------------------- + [ + uuid(B8BDE03C-E548-11d1-A86E-0000F8084F96), + helpstring("HTTPMail Internet Transport Interface"), + local, + ] + interface IHTTPMailTransport : IInternetTransport + { + typedef struct tagHTTPTARGETLIST + { + ULONG cTarget; + LPCSTR *prgTarget; + } HTTPTARGETLIST, *LPHTTPTARGETLIST; + + + // ----------------------------------------------------------------------------------- + // InitNew + // + // Description: + // This method Initializes the internet transport. This method be called before + // the transport can doing anything. + // + // Parameters: + // pszUserAgent User agent string sent in http queries + // + // pszLogFilePath Full file path in which to log the protocol commands. + // NULL is a valid value (no logging) + // pCallback(required) Specifies the Transport callback interface. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT InitNew( + [in] + LPCSTR pszUserAgent, + [in, annotation("_In_opt_")] + LPCSTR pszLogFilePath, + [in] + IHTTPMailCallback *pCallback); + + // ----------------------------------------------------------------------------------- + // CommandGET + // rgszAcceptTypes is a null terminated list of accept types. + // ----------------------------------------------------------------------------------- + HRESULT CommandGET( + [in] + LPCSTR pszPath, + [in] + LPCSTR *rgszAcceptTypes, + [in] + BOOL fTranslate, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // CommandPUT + // ----------------------------------------------------------------------------------- + HRESULT CommandPUT( + [in] + LPCSTR pszPath, + [in] + LPVOID lpvData, + [in] + ULONG cbSize, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // CommandPOST + // ----------------------------------------------------------------------------------- + HRESULT CommandPOST( + [in] + LPCSTR pszPath, + [in] + IStream *pStream, + [in] + LPCSTR pszContentType, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // CommandDELETE + // ----------------------------------------------------------------------------------- + HRESULT CommandDELETE( + [in] + LPCSTR pszPath, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // CommandBDELETE + // ----------------------------------------------------------------------------------- + HRESULT CommandBDELETE( + [in] + LPCSTR pszSourceCollection, + [in] + LPHTTPTARGETLIST pTargets, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // CommandPROPFIND + // ----------------------------------------------------------------------------------- + HRESULT CommandPROPFIND( + [in] + LPCSTR pszPath, + [in] + IPropFindRequest *pRequest, + [in] + DWORD dwDepth, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // CommandPROPPATCH + // ----------------------------------------------------------------------------------- + HRESULT CommandPROPPATCH( + [in] + LPCSTR pszPath, + [in] + IPropPatchRequest *pRequest, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // CommandMKCOL + // ----------------------------------------------------------------------------------- + HRESULT CommandMKCOL( + [in] + LPCSTR pszPath, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // CommandCOPY + // ----------------------------------------------------------------------------------- + HRESULT CommandCOPY( + [in] + LPCSTR pszPath, + [in] + LPCSTR pszDestination, + [in] + BOOL fAllowRename, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // CommandBCOPY + // ----------------------------------------------------------------------------------- + HRESULT CommandBCOPY( + [in] + LPCSTR pszSourceCollection, + [in] + LPHTTPTARGETLIST pTargets, + [in] + LPCSTR pszDestCollection, + [in] + LPHTTPTARGETLIST pDestinations, + [in] + BOOL fAllowRename, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // CommandMOVE + // ----------------------------------------------------------------------------------- + HRESULT CommandMOVE( + [in] + LPCSTR pszPath, + [in] + LPCSTR pszDestination, + [in] + BOOL fAllowRename, + [in] + DWORD dwContext); + + + // ----------------------------------------------------------------------------------- + // CommandBMOVE + // ----------------------------------------------------------------------------------- + HRESULT CommandBMOVE( + [in] + LPCSTR pszSourceCollection, + [in] + LPHTTPTARGETLIST pTargets, + [in] + LPCSTR pszDestCollection, + [in] + LPHTTPTARGETLIST pDestinations, + [in] + BOOL fAllowRename, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // GetProperty + // Retrieves the requested account property synchronously or asynchronously. + // If the property is immediately available, it is returned synchronously, + // and the result of the function is S_OK. In the sync case, it is the caller's + // responsibility to free the property string by calling CoTaskMemFree. + // If the property is not available immediately, the function result is + // E_PENDING, and the result is returned via a call to the callback's + // OnResponse method. + // + // The caller can force the call to return async by passing a null ppszProp. + // The call CANNOT force the call to return sync. + // + // Returns: if requesting the root props succeeded, and the server returned + // xml that did not contain the specific root property requested by the client, + // the return value will be IXP_E_HTTP_ROOT_PROP_NOT_FOUND. + // ----------------------------------------------------------------------------------- + HRESULT GetProperty( + [in] + HTTPMAILPROPTYPE proptype, + [out, annotation("_Outptr_")] + LPSTR *ppszProp); + + // ----------------------------------------------------------------------------------- + // MemberInfo + // + // Description: + // This method is called to discover folders, messages, and specific properties + // of folders and messages. + // + // Parameters: + // + // pszPath null terminated string that is the complete path + // to the resource (or collection) + // examples: + // a message: "http://www.hotmail.com/inbox/msg12345 + // a folder: "http://www.hotmail.com/inbox/" + // MEMBERINFOFLAGS flags that define which properties should be requested + // dwDepth maps to the DAV depth header. Can be an integer or the + // constant DEPTH_INFINITY. A depth of 0 means request + // properties on the resource at pszPath. A depth of + // 1 means request properties on the resource at pszPath + // and at all of its first-level children, etc. + // fIncludeRoot boolean indicating whether or not to include the item + // at pszPath in the response. Maps to the "noroot" token + // optionally included in the DAV depth header. To request + // properties on all of the first-level members of a + // resource, and omit the resource itself from the response, + // set dwDepth = 1 and fIncludeRoot = FALSE. + // ----------------------------------------------------------------------------------- + HRESULT MemberInfo( + [in] + LPCSTR pszPath, + [in] + MEMBERINFOFLAGS flags, + [in] + DWORD dwDepth, + [in] + BOOL fIncludeRoot, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // FindFolders + // + // Description: + // This method is called to discover the collection hierarchy that exists underneath + // the pszPath URL. The response is identical to the MemberInfo response. This method + // causes a non-DAV 1.0 verb (SEARCH) to be sent to the server. Callers should be + // prepared to fallback to other forms of folder discovery if this method fails. + // + // Parameters: + // + // pszPath null terminated string that is the complete path + // to the root of the folder hiearchy. The collection at + // pszPath will not be included in the response. + // + // dwContext context provided by caller. + // ----------------------------------------------------------------------------------- + HRESULT FindFolders( + [in] + LPCSTR pszPath, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // MarkRead + // ----------------------------------------------------------------------------------- + HRESULT MarkRead( + [in] + LPCSTR pszPath, + [in] + LPHTTPTARGETLIST pTargets, + [in] + BOOL fMarkRead, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // SendMessage: + // Send a message using an http server that supports the http-based RFC821 + // send protocol. + // + // Parameters: + // + // pszPath "sendmsg" url. server url that can receive + // "POST" commands with request bodies that + // conform to the http mail spec. + // pszFrom The "from" address associated with the outbound + // mail. This address must be of the form: + // foo@baz.com + // pTargets List of e-mail address that will receive + // copies of the message. This list should include + // all direct recipients as well as "cc" and "bcc" + // recipients. Addresses must be of the form: + // foo@baz.com + // fSaveInSent Indicates whether or not the server should save + // a copy of the outbound message in the users + // "Sent Items" folder. It is up to the server + // to determine the specific behavior associated + // with saving an outboundmessage. + // pMessageStream A stream that contains an rfc822 compliant + // message. The contents of this stream are not + // validated by this API. It is the responsibility + // of the caller to insure that the message is + // rfc822 compliant. + // dwContext A dword which indentifies the specific request. + // This dword will be included in all async responses, + // and enables the caller to uniquely identify the request. + // ----------------------------------------------------------------------------------- + HRESULT SendMessage( + [in] + LPCSTR pszPath, + [in] + LPCSTR pszFrom, + [in] + LPHTTPTARGETLIST pTargets, + [in] + BOOL fSaveInSent, + [in] + IStream *pMessageStream, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // ListContacts + // ----------------------------------------------------------------------------------- + HRESULT ListContacts( + [in] + LPCSTR pszPath, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // ListContactInfos : temporary method. pszPath is assumed to be a collection. + // returns all contacts in the specified collection. this method will go away + // when the hotmail server supports bpropfind. response is contained in the + // rContactInfoList and the command is the same as ContactInfo. + // ----------------------------------------------------------------------------------- + HRESULT ListContactInfos( + [in] + LPCSTR pszCollectionPath, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // ContactInfo + // ----------------------------------------------------------------------------------- + HRESULT ContactInfo( + [in] + LPCSTR pszPath, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // PostContact + // ----------------------------------------------------------------------------------- + HRESULT PostContact( + [in] + LPCSTR pszPath, + [in] + LPHTTPCONTACTINFO pciInfo, + [in] + DWORD dwContext); + + // ----------------------------------------------------------------------------------- + // PatchContact + // ----------------------------------------------------------------------------------- + HRESULT PatchContact( + [in] + LPCSTR pszPath, + [in] + LPHTTPCONTACTINFO pciInfo, + [in] + DWORD dwContext); + } + + //------------------------------------------------------------------------------------ + // IID_IHTTPMailTransport2 + //------------------------------------------------------------------------------------ + [ + uuid(82758005-D38A-11d3-8E81-00C04F79E13B), + helpstring("HTTPMail Internet Transport Interface2"), + ] + interface IHTTPMailTransport2 : IUnknown + { +midl_pragma warning (disable: 2495) // annotation is allowed on local interface and local methods only + HRESULT RootMemberInfo( + [in] + LPCSTR pszPath, + [in] + MEMBERINFOFLAGS flags, + [in] + DWORD dwDepth, + [in] + BOOL fIncludeRoot, + [in] + DWORD dwContext, + [annotation("_In_z_")] + LPSTR pszRootTimeStamp, + [annotation("_In_z_")] + LPSTR pszInboxTimeStamp); + + HRESULT FolderMemberInfo( + [in] + LPCSTR pszPath, + [in] + MEMBERINFOFLAGS flags, + [in] + DWORD dwDepth, + [in] + BOOL fIncludeRoot, + [in] + DWORD dwContext, + [annotation("_In_z_")] + LPSTR pszFolderTimeStamp, + [annotation("_In_z_")] + LPSTR pszFolderName); +midl_pragma warning(default:2495) + + //------------------------------------------------------------------------------------ + // GetPropertyDw + // This behaves similar to GetProperty but retrieves a dword property + //------------------------------------------------------------------------------------ + HRESULT GetPropertyDw( + [in] + HTTPMAILPROPTYPE proptype, + [out] + LPDWORD lpdwProp); + } + + // --------------------------------------------------------------------------------------- + // IID_IPOP3Callback + // --------------------------------------------------------------------------------------- + [ + uuid(0DF2C7E3-3435-11d0-81D0-00C04FD85AB4), + helpstring("POP3 Callback Interface"), + local, + ] + interface IPOP3Callback : ITransportCallback + { + // ----------------------------------------------------------------------------------- + // POP3COMMAND + // ----------------------------------------------------------------------------------- + typedef enum tagPOP3COMMAND { + POP3_NONE, + POP3_BANNER, + POP3_CONNECTED, + POP3_USER, + POP3_PASS, + POP3_AUTH, + POP3_UIDL, + POP3_STAT, + POP3_LIST, + POP3_DELE, + POP3_RETR, + POP3_TOP, + POP3_NOOP, + POP3_QUIT, + POP3_RSET, + POP3_CUSTOM + } POP3COMMAND; + + // ----------------------------------------------------------------------------------- + // POP3RETR + // ----------------------------------------------------------------------------------- + typedef struct tagPOP3RETR { + BOOL fHeader; // The full rfc/mime header has been downloaded. + BOOL fBody; // The body has been downloaded. + DWORD dwPopId; // POP session message id + DWORD cbSoFar; // Number of bytes downloaded since start of download + LPSTR pszLines; // Lines of the message (do not free this). + ULONG cbLines; // Number of bytes in pszLines + } POP3RETR, *LPPOP3RETR; + + // ----------------------------------------------------------------------------------- + // POP3TOP + // ----------------------------------------------------------------------------------- + typedef struct tagPOP3TOP { + BOOL fHeader; // The header has been downloaded. + BOOL fBody; // The body has been downloaded. + DWORD dwPopId; // POP session message id + DWORD cPreviewLines; // Number of lines being previewed + DWORD cbSoFar; // Number of bytes downloaded since start of download + LPSTR pszLines; // Header lines + ULONG cbLines; // Number of bytes in pszLines + } POP3TOP, *LPPOP3TOP; + + // ----------------------------------------------------------------------------------- + // POP3LIST + // ----------------------------------------------------------------------------------- + typedef struct tagPOP3LIST { + DWORD dwPopId; // POP session message id + DWORD cbSize; // Message Size + } POP3LIST, *LPPOP3LIST; + + // ----------------------------------------------------------------------------------- + // POP3UIDL + // ----------------------------------------------------------------------------------- + typedef struct tagPOP3UIDL { + DWORD dwPopId; // POP session message id + LPSTR pszUidl; // POP UIDL + } POP3UIDL, *LPPOP3UIDL; + + // ----------------------------------------------------------------------------------- + // POP3STAT + // ----------------------------------------------------------------------------------- + typedef struct tagPOP3STAT { + DWORD cMessages; // Number of messages on the server + DWORD cbMessages; // Number of bytes of messages on the server + } POP3STAT, *LPPOP3STAT; + + // ----------------------------------------------------------------------------------- + // POP3RESPONSE + // ----------------------------------------------------------------------------------- + typedef struct tagPOP3RESPONSE { + POP3COMMAND command; // Command in which the response was generated for + BOOL fDone; // Was this the last response for this command + IXPRESULT rIxpResult; // Result Information + IPOP3Transport *pTransport; // Pointer to the POP3 transport that generated the response + BOOL fValidInfo; // The data in the union below is valid. This can be FALSE due to the + // fact that the fDone == TRUE response can be received with + // no data. + + // This is a union of response information based on the command + [switch_type(POP3COMMAND), switch_is((POP3COMMAND)command)] + union { + [case(POP3_UIDL)] POP3UIDL rUidlInfo; + [case(POP3_STAT)] POP3STAT rStatInfo; + [case(POP3_LIST)] POP3LIST rListInfo; + [case(POP3_DELE)] DWORD dwPopId; + [case(POP3_RETR)] POP3RETR rRetrInfo; + [case(POP3_TOP)] POP3TOP rTopInfo; + [default]; + }; + } POP3RESPONSE, *LPPOP3RESPONSE; + + // ----------------------------------------------------------------------------------- + // OnResponse + // ----------------------------------------------------------------------------------- + HRESULT OnResponse( + [in] + LPPOP3RESPONSE pResponse); + } + + // --------------------------------------------------------------------------------------- + // IID_IPOP3Transport + // --------------------------------------------------------------------------------------- + [ + uuid(0DF2C7E4-3435-11d0-81D0-00C04FD85AB4), + helpstring("POP3 Internet Transport Interface"), + local, + ] + interface IPOP3Transport : IInternetTransport + { + // ----------------------------------------------------------------------------------- + // POP3 Group/List/Single Item commands + // ----------------------------------------------------------------------------------- + typedef enum tagPOP3CMDTYPE { + POP3CMD_GET_POPID, + POP3CMD_GET_MARKED, + POP3CMD_GET_ALL + } POP3CMDTYPE; + + // ----------------------------------------------------------------------------------- + // InitNew + // + // Description: + // This method Initializes the internet transport. This method be called before + // the transport can doing anything. + // + // Parameters: + // pszLogFilePath Full file path in which to log the protocol commands. + // NULL is a valid value (no logging) + // pCallback(required) Specifies the Transport callback interface. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT InitNew( + [in, annotation("_In_opt_")] + LPSTR pszLogFilePath, + [in] + IPOP3Callback *pCallback); + + // ----------------------------------------------------------------------------------- + // MarkItem + // ----------------------------------------------------------------------------------- + typedef enum tagPOP3MARKTYPE { + POP3_MARK_FOR_TOP = 0x00000001, + POP3_MARK_FOR_RETR = 0x00000002, + POP3_MARK_FOR_DELE = 0x00000004, + POP3_MARK_FOR_UIDL = 0x00000008, + POP3_MARK_FOR_LIST = 0x00000010 + } POP3MARKTYPE; + + HRESULT MarkItem( + [in] + POP3MARKTYPE marktype, + [in] + DWORD dwPopId, + [in] + boolean fMarked); + + // ----------------------------------------------------------------------------------- + // CommandAUTH + // ----------------------------------------------------------------------------------- + HRESULT CommandAUTH( + [in, annotation("_In_z_")] + LPSTR pszAuthType); + + // ----------------------------------------------------------------------------------- + // CommandUSER + // ----------------------------------------------------------------------------------- + HRESULT CommandUSER( + [in, annotation("_In_z_")] + LPSTR pszUserName); + + // ----------------------------------------------------------------------------------- + // CommandPass + // ----------------------------------------------------------------------------------- + HRESULT CommandPASS( + [in, annotation("_In_z_")] + LPSTR pszPassword); + + // ----------------------------------------------------------------------------------- + // CommandLIST + // ----------------------------------------------------------------------------------- + HRESULT CommandLIST( + [in] + POP3CMDTYPE cmdtype, + [in] + DWORD dwPopId); + + // ----------------------------------------------------------------------------------- + // CommandTOP + // ----------------------------------------------------------------------------------- + HRESULT CommandTOP( + [in] + POP3CMDTYPE cmdtype, + [in] + DWORD dwPopId, + [in] + DWORD cPreviewLines); + + // ----------------------------------------------------------------------------------- + // CommandQUIT + // ----------------------------------------------------------------------------------- + HRESULT CommandQUIT(void); + + // ----------------------------------------------------------------------------------- + // CommandSTAT + // ----------------------------------------------------------------------------------- + HRESULT CommandSTAT(void); + + // ----------------------------------------------------------------------------------- + // CommandNOOP + // ----------------------------------------------------------------------------------- + HRESULT CommandNOOP(void); + + // ----------------------------------------------------------------------------------- + // CommandRSET + // ----------------------------------------------------------------------------------- + HRESULT CommandRSET(void); + + // ----------------------------------------------------------------------------------- + // CommandUIDL + // ----------------------------------------------------------------------------------- + HRESULT CommandUIDL( + [in] + POP3CMDTYPE cmdtype, + [in] + DWORD dwPopId); + + // ----------------------------------------------------------------------------------- + // CommandDELE + // ----------------------------------------------------------------------------------- + HRESULT CommandDELE( + [in] + POP3CMDTYPE cmdtype, + [in] + DWORD dwPopId); + + // ----------------------------------------------------------------------------------- + // CommandRETR + // ----------------------------------------------------------------------------------- + HRESULT CommandRETR( + [in] + POP3CMDTYPE cmdtype, + [in] + DWORD dwPopId); + } + + + // --------------------------------------------------------------------------------------- + // IID_INNTPCallback + // --------------------------------------------------------------------------------------- + [ + uuid(0DF2C7E6-3435-11d0-81D0-00C04FD85AB4), + helpstring("NNTP Callback Interface"), + local, + ] + interface INNTPCallback : ITransportCallback + { + // ----------------------------------------------------------------------------------- + // NNTPSTATE - These are the various states the NNTP Transport can be in. These + // states are also used to determine which type of data is being returned + // in the client's OnResponse() callback. + // ----------------------------------------------------------------------------------- + typedef enum tagNNTPSTATE { + NS_DISCONNECTED, // not connected + NS_CONNECT, // awaiting connect response + NS_AUTHINFO, // awaiting authorization + NS_POST, // awaiting CommandPOST() to complete + NS_IDLE, // connected (& authorized if necessary) + NS_LIST, // awaiting LIST data + NS_LISTGROUP, // awaiting LISTGROUP data + NS_NEWGROUPS, // awaiting NEWGROUPS data + NS_GROUP, // awaiting GROUP response + NS_LAST, // awaiting LAST response + NS_NEXT, // awaiting NEXT response + NS_STAT, // awaiting STAT response + NS_ARTICLE, // awaiting ARTICLE data + NS_HEAD, // awaiting HEAD data + NS_BODY, // awaiting BODY data + NS_DATE, // awaiting DATE response + NS_MODE, // awaiting MODE response + NS_QUIT, // awaiting QUIT response + NS_HEADERS, // awaiting XOVER or XHDR data from GetHeaders() + NS_XHDR, // awaiting XHDR data + } NNTPSTATE; + + + // ----------------------------------------------------------------------------------- + // NNTPGROUP - This is the response from the CommandGROUP() function. The data is + // the current status of the group that was switched to. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPGROUP { + DWORD dwCount; // Estimated number of articles in the group + DWORD dwFirst; // First article number in the group + DWORD dwLast; // Last article number in the group + LPSTR pszGroup; // Name of the group + } NNTPGROUP, *LPNNTPGROUP; + + + // ----------------------------------------------------------------------------------- + // NNTPNEXT - This structure will be used for the response from CommandNEXT(), + // CommandLAST(), and CommandSTAT(). The data returned is the article + // number and message id for the article that is selected by the command + // that was issued. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPNEXT { + DWORD dwArticleNum; // Article number + LPSTR pszMessageId; // Message ID + } NNTPNEXT, *LPNNTPNEXT; + + + // ----------------------------------------------------------------------------------- + // NNTPARTICLE - This structure returns the data from a CommandARTICLE() function. + // Depending on the size of the article being retrieved, the callback + // may recieve multiple calls for a single article. When fDone is TRUE + // then all of the article data has been retrieved. pszLines is not + // accumulated over all of the callbacks, it is the client's + // responsibility to assemble all of the pszLines that are returned to + // build the message. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPARTICLE { + DWORD dwArticleNum; // Article number + LPSTR pszMessageId; // Message ID + LPSTR pszLines; // Lines of the message + ULONG cbLines; // Number of bytes in pszLines + ULONG cLines; // Number of lines in pszLines + DWORD dwReserved; // Reserved for system use + } NNTPARTICLE, *LPNNTPARTICLE; + + + // ----------------------------------------------------------------------------------- + // NNTPLIST - This structure is the data returned from the CommandLIST() function. + // Since the NNTP LIST command can have multiple extensions, the data + // returned is relatively unparsed to provide greater flexibility to the + // client. The data is returned in array of NULL terminated strings that + // contain the lines returned from the server. When fDone is TRUE, then + // all of the data has been retrieved. rgszLines is not accumulated by + // the transport between calls to OnResponse(). It is the client's + // responsibility to store this information as it comes in. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPLIST { + DWORD cLines; // Number of lines returned + LPSTR *rgszLines; // Array of lines returned by the LIST command. The + // number of lines in rgszLines is cLines. The recipient + // must call INNTPCallback::FreeListResponse() to free + // this structure. + } NNTPLIST, *LPNNTPLIST; + + // ----------------------------------------------------------------------------------- + // NNTPLISTGROUP - This structure is sent in response to a CommandLISTGROUP() call. + // rgArticles is an array of article numbers that are contained in + // the newsgroup. Since there can be quite a few articles, + // OnResponse() may be called multiple times with the data as it + // arrives. rgArticles is not accumulated between calls to + // OnResponse() so it is up to the client to store this information + // as it arrives. fDone will be TRUE when all the information has + // been returned. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPLISTGROUP { + DWORD cArticles; // Number of article numbers in rgArticles + DWORD *rgArticles; // Array of article numbers available in the group + } NNTPLISTGROUP, *LPNNTPLISTGROUP; + + // ----------------------------------------------------------------------------------- + // NNTPHEADER - This structure contains the parsed information for a single header + // returned from the GetHeaders() command. An array of these headers + // is contained in the NNTPHEADERRESP struct. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPHEADER { + DWORD dwArticleNum; // Article number + LPSTR pszSubject; // Article subject + LPSTR pszFrom; // Who the article is from + LPSTR pszDate; // Date the article was posted + LPSTR pszMessageId; // Message id + LPSTR pszReferences; // References + DWORD dwBytes; // Size of the message in bytes (might not be filled in) + DWORD dwLines; // Size of the message in lines + LPSTR pszXref; // XREF: header for cross post managment + } NNTPHEADER, *LPNNTPHEADER; + + + // ----------------------------------------------------------------------------------- + // NNTPHEADERRESP - This structure will be returned in response to the GetHeaders() + // command. Since the number of headers requested may be large, + // OnResponse() may be called multiple times in response to this + // command. rgHeaders is not accumulated by the transport between + // calls to OnResponse() therefore it is the responsibility of the + // caller to store this information as it is retrieved. When all + // the data is retrieved, then fDone will be set to TRUE. Since + // not all servers provide the XREF: header in their XOVER records, + // fSupportsXRef will be set to TRUE if the pszXref field in + // NNTPHEADER is valid. If this is FALSE, the client can retrieve + // this header with a call to CommandXHDR(). + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPHEADERRESP { + DWORD cHeaders; // Number of headers in rgHeaders + LPNNTPHEADER rgHeaders; // Array of header structures + BOOL fSupportsXRef; // TRUE if the headers have a valid pszXref value. + // Otherwise, the client needs to issue an XHdr to + // retrieve that value if they're interested. + DWORD_PTR dwReserved; // Reserved for system use + } NNTPHEADERRESP, *LPNNTPHEADERRESP; + + + // ----------------------------------------------------------------------------------- + // NNTPXHDR - An array of these structures will be returned in the NNTPXHDRRESP + // structure. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPXHDR { + DWORD dwArticleNum; // Article number this header is for + LPSTR pszHeader; // Requested article header for this article + } NNTPXHDR, *LPNNTPXHDR; + + + // ----------------------------------------------------------------------------------- + // NNTPXHDRRESP - This will be returned in response to a CommandXHDR() call. Since + // the number of headers returned is potentially large, OnResponse() + // may be called multiple times in response to this command. rgHeaders + // is not accumulated between calls to OnResponse(), therefore it is + // up to the client to store this data as it arrives. fDone will be + // set to TRUE when all of the headers have been returned. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPXHDRRESP { + DWORD cHeaders; // Number of header values in rgHeaders + LPNNTPXHDR rgHeaders; // Array of NNTPXHDR structs containing the requested headers + DWORD_PTR dwReserved; // Reserved for system use + } NNTPXHDRRESP, *LPNNTPXHDRRESP; + + // ----------------------------------------------------------------------------------- + // NNTPRESPONSE - This structure is the general holder for all of the data returned + // from the INNTPTransport commands. The state member tells the + // receiver which command this data is in response to. If fMustRelease + // is TRUE, then when the client is done with this data, it should + // call INNTPTransport::ReleaseResponse() to free that memory. See + // the explanation of the various structures to see the details on + // each type of response. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPRESPONSE { + NNTPSTATE state; // Command in which the response was generated for + BOOL fMustRelease; // TRUE if the data contained within this struct must be + // freed with a call to INNTPTransport::ReleaseResponse() + BOOL fDone; // TRUE when there is no more data that will arrive for this + // command + IXPRESULT rIxpResult; // Result Information + INNTPTransport *pTransport; // Pointer to the NNTP transport that generated the response + + // This is a union of response information based on the command + [switch_type(NNTPSTATE), switch_is((NNTPSTATE) state)] + union { + [case(NS_GROUP)] NNTPGROUP rGroup; + [case(NS_LAST)] NNTPNEXT rLast; + [case(NS_NEXT)] NNTPNEXT rNext; + [case(NS_STAT)] NNTPNEXT rStat; + [case(NS_ARTICLE)] NNTPARTICLE rArticle; + [case(NS_HEAD)] NNTPARTICLE rHead; + [case(NS_BODY)] NNTPARTICLE rBody; + [case(NS_LIST)] NNTPLIST rList; + [case(NS_LISTGROUP)] NNTPLISTGROUP rListGroup; + [case(NS_NEWGROUPS)] NNTPLIST rNewgroups; + [case(NS_DATE)] SYSTEMTIME rDate; + [case(NS_HEADERS)] NNTPHEADERRESP rHeaders; + [case(NS_XHDR)] NNTPXHDRRESP rXhdr; + [default]; + }; + } NNTPRESPONSE, *LPNNTPRESPONSE; + + // ----------------------------------------------------------------------------------- + // OnResponse + // ----------------------------------------------------------------------------------- + HRESULT OnResponse( + [in] + LPNNTPRESPONSE pResponse); + } + + // --------------------------------------------------------------------------------------- + // IID_INNTPTransport + // --------------------------------------------------------------------------------------- + [ + uuid(0DF2C7E5-3435-11d0-81D0-00C04FD85AB4), + helpstring("NNTP Internet Transport Interface"), + local, + ] + interface INNTPTransport : IInternetTransport + { + // ----------------------------------------------------------------------------------- + // AUTHTYPE + // ----------------------------------------------------------------------------------- + typedef enum tagAUTHTYPE { + AUTHTYPE_USERPASS, + AUTHTYPE_SIMPLE, + AUTHTYPE_SASL + } AUTHTYPE; + + // ----------------------------------------------------------------------------------- + // AUTHINFO - This structure is used to specify the type of authentication to use + // in the CommandAUTHINFO() command. For AUTHTYPE_USERPASS and + // AUTHTYPE_SIMPLE, pszUser and pszPass are the user name and password + // to send with the command. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPAUTHINFO { + AUTHTYPE authtype; + LPSTR pszUser; + LPSTR pszPass; + } NNTPAUTHINFO, *LPNNTPAUTHINFO; + + // ----------------------------------------------------------------------------------- + // ARTICLEIDTYPE + // ----------------------------------------------------------------------------------- + typedef enum tagARTICLEIDTYPE { + AID_MSGID, + AID_ARTICLENUM + } ARTICLEIDTYPE; + + // ----------------------------------------------------------------------------------- + // ARTICLEID + // + // This structure is used to specify an article id to the various NNTP commands that + // require one (i.e. ARTICLE, BODY, STAT). These commands accept either a message-id + // or if the user is current in a the context of a newsgroup the article number within + // that group. When filling in this structure the user should set idType to either + // AID_MSGID of pszMessageId is valid, or AID_ARTICLENUM if dwArticleNum. + // ----------------------------------------------------------------------------------- + typedef struct ARTICLEID { + ARTICLEIDTYPE idType; + [switch_type(ARTICLEIDTYPE), switch_is((ARTICLEIDTYPE)idType)] + union { + [case(AID_MSGID)] + LPSTR pszMessageId; + [case(AID_ARTICLENUM)] + DWORD_PTR dwArticleNum; + [default]; + }; + } ARTICLEID, *LPARTICLEID; + + // ----------------------------------------------------------------------------------- + // NNTPMESSAGE + // + // This structure provides the information needed to post a message to the news server + // using the POST command. + // ----------------------------------------------------------------------------------- + typedef struct tagNNTPMESSAGE { + ULONG cbSize; // Size of the message in bytes + LPSTREAM pstmMsg; // Stream containing a ANSI MIME/rfc822/rfc1036 message stream + } NNTPMESSAGE, *LPNNTPMESSAGE; + + + // ----------------------------------------------------------------------------------- + // RANGE + // + // The range structure allows the caller to provide arguments for commands that allow + // a range of headers to be retrieved. The range structure can be used to specify a + // single number (ie XOVER 2010), or bounded range (ie XOVER 2000-2010) to request all + // of the headers within that range [inclusive]. Use the idType field to specify + // which range you are requesting. + // ----------------------------------------------------------------------------------- + typedef enum tagRANGETYPE { + RT_SINGLE, // num + RT_RANGE, // num-num + } RANGETYPE; + + typedef struct tagRANGE { + RANGETYPE idType; + DWORD dwFirst; + DWORD dwLast; + } RANGE, *LPRANGE; + + + // ----------------------------------------------------------------------------------- + // InitNew + // + // Description: + // This method Initializes the internet transport. This method be called before + // the transport can doing anything. + // + // Parameters: + // pszLogFilePath Full file path in which to log the protocol commands. + // NULL is a valid value (no logging) + // pCallback(required) Specifies the Transport callback interface. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT InitNew( + [in, annotation("_In_opt_")] + LPSTR pszLogFilePath, + [in] + INNTPCallback *pCallback); + + // ----------------------------------------------------------------------------------- + // CommandAUTHINFO + // + // Description: + // The function issues an NNTPAUTHINFO command to the server along with the information + // provided in the pszAuth parameter. RFC 977 provides the following formats as + // valid AUTHINFO commands: + // + // AUTHINFO USER name|PASS password + // AUTHINFO SIMPLE + // user password + // + // + // Parameters: + // pAuthInfo + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandAUTHINFO( + [in] + LPNNTPAUTHINFO pAuthInfo); + + + // ----------------------------------------------------------------------------------- + // CommandGROUP + // + // Description: + // The function issues an GROUP command to the server. The server's response string + // will be returned to the INNTPCallback::OnResponse(). + // + // Parameters: + // pszGroup Name of the newsgroup to enter. + // + // Returns: + // E_INVALIDARG pszGroup is not a valid string pointer + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandGROUP( + [in, annotation("_In_z_")] + LPSTR pszGroup); + + // ----------------------------------------------------------------------------------- + // CommandLAST + // + // Description: + // This function issues the LAST command to the server. This has the effect of + // moving the current article pointer to the article immediately preceeding the + // current article pointer in the newsgroup. This command is only valid if a GROUP + // command has been issued previously. The article number and message-id pointed to + // by the new current article pointer are returned in INNTPCallback::OnResponse(). + // + // Returns: + // S_OK + // E_OUTOFMEMORY + // IXP_E_NOT_INIT + // IXP_E_NOT_CONNECTED + // IXP_E_BUSY + // + // ----------------------------------------------------------------------------------- + HRESULT CommandLAST(void); + + + // ----------------------------------------------------------------------------------- + // CommandNEXT + // + // Description: + // This function issues the NEXT command to the server. This has the effect of + // moving the current article pointer to the article immediately after the current + // article pointer in the newsgroup. This command is only valid if a GROUP command + // has been issued previously. The article number and message-id pointed to by the + // new current article pointer are returned in INNTPCallback::OnResponse(). + // + // Returns: + // S_OK + // E_OUTOFMEMORY + // IXP_E_NOT_INIT + // IXP_E_NOT_CONNECTED + // IXP_E_BUSY + // + // ----------------------------------------------------------------------------------- + HRESULT CommandNEXT(void); + + + // ----------------------------------------------------------------------------------- + // CommandSTAT + // + // Description: + // The function issues a STAT command to the server. If an article is specified + // then this command has the effect of moving the current article pointer to the + // specified message and returns the article number and message-id of the new current + // article. Otherwise, the function will return the article number and message-id + // of the current article. + // + // Parameters: + // pArticleId (optional) Article number or message-id of the article to + // retrieve status for. If a message-id is specified + // the current article pointer will NOT be updated. + // + // Returns: + // E_INVALIDARG pArticleId is not valid + // E_OUTOFMEMORY An memory allocation failed + // IXP_E_NOT_INIT + // IXP_E_NOT_CONNECTED + // IXP_E_BUSY + // + // ----------------------------------------------------------------------------------- + HRESULT CommandSTAT( + [in] + LPARTICLEID pArticleId); + + + // ----------------------------------------------------------------------------------- + // CommandARTICLE + // + // Description: + // This function is used to request an article from the server. If the caller has + // previously issued a GROUP command then the article can be specified by either + // article number or message-id. If the GROUP command has not been issued, then the + // article can only be requested by message-id. + // + // Parameters: + // pArticleId Either the article number or message-id of the article + // to retrieve. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandARTICLE( + [in] + LPARTICLEID pArticleId); + + // ----------------------------------------------------------------------------------- + // CommandHEAD + // + // Description: + // This function retrieves just the header for the requested article. If the caller + // has previously issued a GROUP command, then the article can be specified by either + // article number or message-id. Otherwise, the article must be requested by + // message-id. The provided stream will be filled and returned to the caller in + // INNTPCallback::OnResponse(). + // + // Parameters: + // pArticleId Structure specifying the article to retreive the + // header for. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandHEAD( + [in] + LPARTICLEID pArticleId); + + // ----------------------------------------------------------------------------------- + // CommandBODY + // + // Description: + // This function retrieves just the body for the requested article. If the caller + // has previously issued a GROUP command, then the article can be specified by either + // article number or message-id. Otherwise, the article must be requested by + // message-id. The provided stream will be filled and returned to the caller in + // INNTPCallback::OnResponse(). + // + // Parameters: + // pArticleId Structure specifying the article to retreive the + // body for. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandBODY( + [in] + LPARTICLEID pArticleId); + + // ----------------------------------------------------------------------------------- + // CommandPOST + // + // Description: + // Posts the specified message to the server. + // + // Parameters: + // pMessage Specifies a stream that contains a valid RFC1036 + // message. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandPOST( + [in] + LPNNTPMESSAGE pMessage); + + // ----------------------------------------------------------------------------------- + // CommandLIST + // + // Description: + // Sends a LIST command to the news server. If pszArgs is NULL, then the command will + // retrieve a list of newsgroups available on the news server. The pszArgs parameter + // can be used to issue one of the various extensions to the LIST command, ie. + // LIST NEWSGROUPS, LIST ACTIVE, LIST OVERVIEW.FMT, or LIST SUBSCRIPTIONS. See + // RFC 977 at http://ds.internic.net/rfc/rfc977.txt for a full list of extensions. + // + // Parameters: + // pszArgs Any optional parameters that the user wants to + // send with the LIST command. See the "Description" + // above for more details. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandLIST( + [in, annotation("_In_z_")] + LPSTR pszArgs); + + + // ----------------------------------------------------------------------------------- + // CommandLISTGROUP + // + // Description: + // Retrieves a list of all the article numbers in a particular news group. If the + // caller specifies a newsgroup name, then the articles are listed for the specified + // newsgroup. Otherwise, the currently selected newsgroup is listed. NOTE - this + // command will reset the current article pointer is reset to the first article in + // the newsgroup that was specified. + // + // Parameters: + // pszGroup Optional newsgroup name to list articles for. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandLISTGROUP( + [in, annotation("_In_z_")] + LPSTR pszGroup); + + + // ----------------------------------------------------------------------------------- + // CommandNEWGROUPS + // + // Description: + // Retrieves the list of newsgroups which have been added to the server since the + // date specified in stLast. The caller can restrict the list by specifying a list + // of distributions in pszDist. For example: + // + // CommandNEWGROUPS(&stLast, "alt.tv") + // + // will return the list of newsgroups that begin with "alt.tv" that have been added + // to the server since the time in stLast. + // + // Parameters: + // pstLast The time to specify as the last time groups were checked. + // pszDist Distributions to check. This can be a single dist + // such as "alt" or a list of dists such as "alt.tv,comp". + // The list of distributions must be separated by commas. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandNEWGROUPS( + [in] + SYSTEMTIME *pstLast, + [in, annotation("_In_z_")] + LPSTR pszDist); + + // ----------------------------------------------------------------------------------- + // CommandDATE + // + // Description: + // Retrieves the date and time from the news server. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandDATE(void); + + + // ----------------------------------------------------------------------------------- + // CommandMODE + // + // Description: + // Issues a MODE command to the server. pszMode is a required argument, an example + // of which are "MODE READER" to tell the server that the connection is for a user + // instead of another server. Refer to RFC977 for more details. + // + // Parameters: + // pszMode Required argument to the MODE command. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandMODE( + [in, annotation("_In_z_")] + LPSTR pszMode); + + + // ----------------------------------------------------------------------------------- + // CommandXHDR + // + // Description: + // Issues an XHDR command to the server. This command can specify a range of + // messages or a single message to retrieve the header from. If pRange is NULL and + // pszMessageId is NULL the the header is retrieved from the message pointed to by + // the server's current message pointer (see STAT, NEXT, LAST). + // + // Parameters: + // pszHeader Which header to retrieve. IE "subject" or "xref" + // pRange (optional) Range of messages to retrieve the header from + // pszMessageId (optional) Message ID of the mesage to retrieve the header from + // + // Returns: + // + // ----------------------------------------------------------------------------------- + HRESULT CommandXHDR( + [in, annotation("_In_z_")] + LPSTR pszHeader, + [in] + LPRANGE pRange, + [in, annotation("_In_z_")] + LPSTR pszMessageId); + + + + // ----------------------------------------------------------------------------------- + // CommandQUIT() + // + // Description: + // Issues a QUIT command to the server and terminates the connect. + // + // Returns: + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT CommandQUIT(void); + + + // ----------------------------------------------------------------------------------- + // GetHeaders + // + // Description: + // Retrieves an array of headers from the server. If a GROUP command has not been + // previously sent this command is not valid. + // + // This function will first try to retrieve the specifed range of headers using + // the XOVER command. If the server doesn't support XOVER, then the function will + // try other methods such as a series of XHDR commands. + // + // Parameters: + // pRange The range of headers to request. See the + // documentation for the RANGE structure above to see + // how to specify a range. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // E_OUTOFMEMORY An memory allocation failed + // + // ----------------------------------------------------------------------------------- + HRESULT GetHeaders( + [in] + LPRANGE pRange); + + + // ----------------------------------------------------------------------------------- + // ReleaseResponse() + // + // Description: + // This function is used to free data returned to the client's OnResponse() callback. + // + // Parameters: + // pResponse A pointer to the NNTPRESPONSE structure passed to the + // OnResponse() callback. + // + // Returns: + // E_INVALIDARG An invalid parameter was passed in + // + // ----------------------------------------------------------------------------------- + HRESULT ReleaseResponse( + [in] + LPNNTPRESPONSE pResponse); + } + + // --------------------------------------------------------------------------------------- + // IID_INNTPTransport2 + // --------------------------------------------------------------------------------------- + [ + uuid(0DF2C7ED-3435-11d0-81D0-00C04FD85AB4), + helpstring("NNTP Transport 2 Interface"), + local, + ] + interface INNTPTransport2 : INNTPTransport + { + //*************************************************************************** + // Function: SetWindow + // + // Purpose: + // This function creates a new window for async winsock processing + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT SetWindow(void); + + + //*************************************************************************** + // Function: ResetWindow + // + // Purpose: + // This function closes a window for async winsock processing + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT ResetWindow(void); + } + + // --------------------------------------------------------------------------------------- + // IID_IRASCallback + // --------------------------------------------------------------------------------------- + [ + uuid(36D88911-3CD6-11d0-81DF-00C04FD85AB4), + helpstring("RAS Callback Interface"), + local, + ] + interface IRASCallback : IUnknown + { + // ----------------------------------------------------------------------------------- + // OnReconnect + // ----------------------------------------------------------------------------------- + HRESULT OnReconnect( + [in, annotation("_In_z_")] + LPSTR pszCurrentConnectoid, + [in, annotation("_In_z_")] + LPSTR pszNewConnectoid, + [in] + IRASTransport *pTransport); + + // ----------------------------------------------------------------------------------- + // OnLogonPrompt + // ----------------------------------------------------------------------------------- + typedef struct tagIXPRASLOGON { + CHAR szConnectoid[CCHMAX_CONNECTOID]; + CHAR szUserName[CCHMAX_USERNAME]; + CHAR szPassword[CCHMAX_PASSWORD]; + CHAR szDomain[CCHMAX_DOMAIN]; + CHAR szPhoneNumber[CCHMAX_PHONE_NUMBER]; + BOOL fSavePassword; + } IXPRASLOGON, *LPIXPRASLOGON; + + HRESULT OnLogonPrompt( + [in,out] + LPIXPRASLOGON pRasLogon, + [in] + IRASTransport *pTransport); + + // ----------------------------------------------------------------------------------- + // OnRasDialStatus + // ----------------------------------------------------------------------------------- + cpp_quote("#ifndef RASCONNSTATE") + typedef DWORD RASCONNSTATE; + cpp_quote("#endif") + HRESULT OnRasDialStatus( + [in] + RASCONNSTATE rasconnstate, + [in] + DWORD dwError, + [in] + IRASTransport *pTransport); + + // ----------------------------------------------------------------------------------- + // OnDisconnect + // + // Description: + // This method allows the client to decide if the current RAS connection should + // be hungup. This is useful, especially on application shutdown, in which case + // the user may want to leave their RAS connection established even after the + // application using the connection goes away. This client could show UI on this + // callback to prompt the user. + // + // Parameters: + // pTransport The RAS transport that generated the OnDisconnect call + // + // Returns: + // S_OK The client can return S_OK to "hangup" the current + // RAS connnection. + // S_FALSE The client can return S_FALSE to leave the connection + // established. + // ----------------------------------------------------------------------------------- + HRESULT OnDisconnect( + [in, annotation("_In_z_")] + LPSTR pszCurrentConnectoid, + [in] + boolean fConnectionOwner, + [in] + IRASTransport *pTransport); + } + + // --------------------------------------------------------------------------------------- + // IID_IRASTransport + // --------------------------------------------------------------------------------------- + [ + uuid(8A950001-3CCF-11d0-81DF-00C04FD85AB4), + helpstring("RAS Transport Interface"), + local, + ] + interface IRASTransport : IInternetTransport + { + // ----------------------------------------------------------------------------------- + // InitNew + // ----------------------------------------------------------------------------------- + HRESULT InitNew( + [in] + IRASCallback *pCallback); + + // ----------------------------------------------------------------------------------- + // GetCurrentConnectoid - Returns Connectoid name of the current RAS Connection. + // If not connected, IXP_E_NOT_CONNECTED is returned. cchMax must be greater than or + // equal to CCHMAX_CONNECTOID, or E_INVALIDARG will be returned. + // ----------------------------------------------------------------------------------- + HRESULT GetCurrentConnectoid( + [in,ref, annotation("_In_z_") ] + LPSTR pszConnectoid, + [in] + ULONG cchMax); + + // ---------------------------------------------------------- + // GetRasErrorString + // ---------------------------------------------------------- + HRESULT GetRasErrorString ( + [in] + UINT uRasErrorValue, + [in,ref, annotation("_In_z_") ] + LPSTR pszErrorString, + [in] + ULONG cchMax, + [out] + DWORD *pdwRASResult); + + // ---------------------------------------------------------- + // FillConnectoidCombo + // ---------------------------------------------------------- + HRESULT FillConnectoidCombo( + [in] + HWND hwndComboBox, + [in] + boolean fUpdateOnly, + [out] + DWORD *pdwRASResult); + + // ---------------------------------------------------------- + // EditConnectoid + // ---------------------------------------------------------- + HRESULT EditConnectoid( + [in] + HWND hwndParent, + [in, annotation("_In_z_")] + LPSTR pszConnectoid, + [out] + DWORD *pdwRASResult); + + // ---------------------------------------------------------- + // CreateConnectoid + // ---------------------------------------------------------- + HRESULT CreateConnectoid( + [in] + HWND hwndParent, + [out] + DWORD *pdwRASResult); + } + + + + // *************************************************************************************** + // --------------------------------------------------------------------------------------- + // IID_IRangeList + // --------------------------------------------------------------------------------------- + [ + uuid(8C438160-4EF6-11d0-874F-00AA00530EE9), + helpstring("Rangelist Interface: used to represent a range of messages."), + local, + ] + interface IRangeList : IUnknown + { + // ---------------------------------- + // IID_IRangeList Interface Constants + // ---------------------------------- + const ULONG RL_RANGE_ERROR = ((ULONG)-1); // [out] Indicates that no match could be found + const ULONG RL_LAST_MESSAGE = ((ULONG)-1); // [in] Equivalent to "*" in an IMAP range list + + + // ---------------------------------- + // IID_IRangeList Interface Functions + // ---------------------------------- + + //*********************************************************************** + // Function: Clear + // Purpose: Clears all entries in the rangelist. Note that no memory + // is freed by this operation. + // Returns: S_OK. This function cannot fail. + //*********************************************************************** + HRESULT Clear(void); + + + //*********************************************************************** + // Function: IsInRange + // Purpose: Determines whether the given value is in the rangelist. + // Arguments: + // [in] const ULONG value - the value to test against the rangelist. + // + // Returns: S_OK if given value is in the rangelist, else S_FALSE. + //*********************************************************************** + HRESULT IsInRange([in] const ULONG value); + + + //*********************************************************************** + // Function: Min + // Arguments: + // [out] ULONG *pulMin - the minimum value in the rangelist is returned + // here. For example, for the rangelist "10-20,31,44,50-65", this + // function returns 10. If the rangelist is empty, a value of + // RL_RANGE_ERROR is returned. + // Returns: S_OK. This function cannot fail. + //*********************************************************************** + HRESULT Min([out] ULONG *pulMin); + + + //*********************************************************************** + // Function: Max + // Arguments: + // [out] ULONG *pulMax - the maximum value in the rangelist is returned + // here. For example, for the rangelist "10-20,31,44,50-65", this + // function returns 65. If the rangelist is empty, a value of + // RL_RANGE_ERROR is returned. + // Returns: S_OK. This function cannot fail. + //*********************************************************************** + HRESULT Max([out] ULONG *pulMax); // return the maximum in-range value + + + //*********************************************************************** + // Function: Save + // Purpose: This function returns a copy of the internal rangelist + // representation which may be loaded later via the Load() function. + // NOTE THAT THE INTERNAL RANGELIST REPRESENTATION IS NOT SUITABLE FOR + // NETWORK TRANSMITTAL. + // Arguments: + // [out] byte **ppbDestination - if successful, this function returns + // a pointer to a copy of the internal rangelist representation + // suitable for use with the Load() command (but not for + // network transmittal). + // [out] ULONG *pulSizeOfDestination - if successful, this function + // returns the size of the data pointed to by *ppbDestination. + // + // Returns: HRESULT indicating success or failure. Failure to allocate + // memory is typically the reason for failure. + //*********************************************************************** + HRESULT Save([out] byte **ppbDestination, + [out] ULONG *pulSizeOfDestination); + + + //*********************************************************************** + // Function: Load + // Purpose: This function loads the given internal rangelist + // representation, obtained via the Save() function, thus restoring + // the rangelist which was saved. + // Arguments: + // [in] byte *pbSource - a pointer to the internal rangelist + // representation obtained using the Save() function. + // [in] ULONG ulSizeOfSource - the size of the data pointed to by + // pbSource. + // + // Returns: HRESULT indicating success or failure. + //*********************************************************************** + HRESULT Load([in, size_is(ulSizeOfSource)] byte *pbSource, + [in] const ULONG ulSizeOfSource); + + + //*********************************************************************** + // Function: AddRange + // Purpose: This function adds a range of values to the rangelist. + // For example, to add 19-99 to the rangelist, call AddRange(19,99). + // Arguments: + // [in] ULONG low - low number of the range to add to the rangelist. + // [in] ULONG high - high number of the range to add to the rangelist. + // + // Returns: HRESULT indicating success or failure. + //*********************************************************************** + HRESULT AddRange([in] const ULONG low, + [in] const ULONG high); + + + + //*********************************************************************** + // Function: AddSingleValue + // Purpose: This function adds a single value to the rangelist. + // For example, to add 69 to the rangelist, call AddRange(69). + // Arguments: + // [in] ULONG value - the single value to add to the rangelist. + // + // Returns: HRESULT indicating success or failure. + //*********************************************************************** + HRESULT AddSingleValue([in] const ULONG value); + + + //*********************************************************************** + // Function: AddRangeList + // Purpose: This function adds a rangelist to the rangelist. + // Arguments: + // [in] IRangeList *prl - the rangelist to add to the rangelist. + // + // Returns: HRESULT indicating success or failure. + //*********************************************************************** + HRESULT AddRangeList([in] const IRangeList *prl); + + + //*********************************************************************** + // Function: DeleteRange + // Purpose: This function deletes a range of values from the rangelist. + // For example, to remove 7-11 from the rangelist, call DeleteRange(7,11). + // Arguments: + // [in] ULONG low - low number of the range to remove from the rangelist. + // [in] ULONG high - high number of the range to remove from the rangelist. + // + // Returns: HRESULT indicating success or failure. + //*********************************************************************** + HRESULT DeleteRange([in] const ULONG low, + [in] const ULONG high); + + + + //*********************************************************************** + // Function: DeleteSingleValue + // Purpose: This function removes a single value from the rangelist. + // For example, to remove 42 to the rangelist, call DeleteRange(42). + // Arguments: + // [in] ULONG value - the single value to remove from the rangelist. + // + // Returns: HRESULT indicating success or failure. + //*********************************************************************** + HRESULT DeleteSingleValue([in] const ULONG value); + + + //*********************************************************************** + // Function: DeleteRangeList + // Purpose: This function removes a rangelist from the rangelist. + // Arguments: + // [in] IRangeList *prl - the rangelist to remove from the rangelist. + // + // Returns: HRESULT indicating success or failure. + //*********************************************************************** + HRESULT DeleteRangeList([in] const IRangeList *prl); + + + //*********************************************************************** + // Function: MinOfRange + // Purpose: This function finds the range that the given value belongs + // to, and returns the minimum of that range. For example, for the + // rangelist "10-20,30,40-50", MinOfRange(45) returns 40. + // Arguments: + // [in] ULONG value - a value in the range for which you would like to + // find the minimum. + // [out] ULONG *pulMinOfRange - the minimum value in the range of which + // "value" is a member is returned here. If "value" is not in + // the rangelist, a value of RL_RANGE_ERROR is returned. + // Returns: S_OK. This function cannot fail. + //*********************************************************************** + HRESULT MinOfRange([in] const ULONG value, + [out] ULONG *pulMinOfRange); + + + //*********************************************************************** + // Function: MaxOfRange + // Purpose: This function finds the range that the given value belongs + // to, and returns the maximum of that range. For example, for the + // rangelist "10-20,30,40-50", MaxOfRange(15) returns 20. + // Arguments: + // [in] ULONG value - a value in the range for which you would like to + // find the maximum. + // [out] ULONG *pulMaxOfRange - the maximum value in the range of which + // "value" is a member is returned here. If "value" is not in the + // rangelist, a value of RL_RANGE_ERROR is returned. + // Returns: S_OK. This function cannot fail. + //*********************************************************************** + HRESULT MaxOfRange([in] const ULONG value, + [out] ULONG *pulMaxOfRange); + + + //*********************************************************************** + // Function: RangeToIMAPString + // Purpose: This function outputs the rangelist as an IMAP message set, + // as specified by the "set" terminal in RFC 1730/2060 (IMAP). + // Arguments: + // [out] LPSTR *ppszDestination - an IMAP message set string is + // returned here. It is the responsibility of the caller to CoTaskMemFree + // this buffer when he is done with it. Pass in NULL if not interested. + // [out] LPDWORD pdwLengthOfDestination - the length of the IMAP + // message set string returned by this function (does not include + // null-terminator). Pass in NULL if not interested. + // Returns: HRESULT indicating success or failure. + //*********************************************************************** + HRESULT RangeToIMAPString([out, annotation("_Outptr_result_buffer_(*pdwLengthOfDestination)")] LPSTR *ppszDestination, + [out, annotation("_Out_opt_")] LPDWORD pdwLengthOfDestination); + + + //*********************************************************************** + // Function: Next + // Purpose: This function returns the smallest value in the rangelist + // which is greater than the given value. For instance, for a rangelist + // 5-10, the call Next(7) would return 8. + // Arguments: + // [in] ULONG current - the value for which you'd like to find the next + // number in the rangelist. + // [out] ULONG *pulNext - the smallest number in the rangelist greater + // than "value" is returned here, or RL_RANGE_ERROR if no such + // number could be found. + // Returns: S_OK. This function cannot fail. + //*********************************************************************** + HRESULT Next([in] const ULONG current, [out] ULONG *pulNext); + + + //*********************************************************************** + // Function: Prev + // Purpose: This function returns the largest value in the rangelist + // which is smaller than the given value. For instance, for a rangelist + // 5-10, the call Prev(7) would return 6. + // Arguments: + // [in] ULONG current - the value for which you'd like to find the + // previous number in the rangelist. + // [out] ULONG *pulPrev - the largest number in the rangelist smaller + // than "value" is returned here, or RL_RANGE_ERROR if no such + // number could be found. + // Returns: S_OK. This function cannot fail. + //*********************************************************************** + HRESULT Prev([in] const ULONG current, [out] ULONG *pulPrev); + + + //*********************************************************************** + // Function: Cardinality + // Purpose: This function counts the members in the rangelist set. For + // example, for the rangelist 1-11, Cardinality() returns 11. + // Arguments: + // [out] ULONG *pulCardinality - The number of members in the + // rangelist set is returned here. + // Returns: S_OK. This function cannot fail. + //*********************************************************************** + HRESULT Cardinality(ULONG *pulCardinality); + + + //*********************************************************************** + // Function: CardinalityFrom + // Purpose: This function counts the members in the rangelist set which + // are larger than the given starting point. For example, for the + // rangelist 1-11, Cardinality(10) returns 2. + // Arguments: + // [in] ULONG ulStartPoint - represents 1 less than the lowest number + // which should be considered in the cardinality count. + // [out] ULONG *pulCardinalityFrom - The number of members in the + // rangelist set which are larger than the given starting point + // is returned here. + // Returns: S_OK. This function cannot fail. + //*********************************************************************** + HRESULT CardinalityFrom([in] const ULONG ulStartPoint, + [out] ULONG *pulCardinalityFrom); + + } // interface IRangeList + + + + // *************************************************************************************** + // --------------------------------------------------------------------------------------- + // IID_IIMAPCallback + // --------------------------------------------------------------------------------------- + [ + uuid(E9E9D8A3-4EDD-11d0-874F-00AA00530EE9), + helpstring("IMAP Callback Interface: used to notify an IID_IIMAPTransport client of IMAP server events."), + local, + ] + interface IIMAPCallback : ITransportCallback + { + + // ------------------------------------- + // IID_IIMAPCallback Interface Constants + // ------------------------------------- + typedef DWORD IMAP_MBOXFLAGS; // Mailbox flags returned by the LIST/LSUB command + const IMAP_MBOXFLAGS IMAP_MBOX_NOFLAGS = 0x00000000; + const IMAP_MBOXFLAGS IMAP_MBOX_MARKED = 0x00000001; + const IMAP_MBOXFLAGS IMAP_MBOX_NOINFERIORS = 0x00000002; + const IMAP_MBOXFLAGS IMAP_MBOX_NOSELECT = 0x00000004; + const IMAP_MBOXFLAGS IMAP_MBOX_UNMARKED = 0x00000008; + const IMAP_MBOXFLAGS IMAP_MBOX_ALLFLAGS = 0x0000000F; // Keep this updated + + + // -------------------------------------- + // IID_IIMAPCallback Interface Data Types + // -------------------------------------- + // The following enumeration identifies the types of IMAP_RESPONSE structures + typedef enum tagIMAP_RESPONSE_TYPE { + irtERROR_NOTIFICATION, // Indicates an error has been encountered during response parsing + irtCOMMAND_COMPLETION, // Indicates this IMAP command is completed + irtSERVER_ALERT, // ALERT response (see IMAP spec) + irtPARSE_ERROR, // PARSE response (see IMAP spec) + irtMAILBOX_UPDATE, // EXISTS, RECENT, or UNSEEN responses (see IMAP spec) + irtDELETED_MSG, // EXPUNGE response (see IMAP spec) + irtFETCH_BODY, // Partial body from a message, returned via FETCH + irtUPDATE_MSG, // FETCH response (see IMAP spec) + irtAPPLICABLE_FLAGS, // FLAGS response (see IMAP spec) + irtPERMANENT_FLAGS, // PERMANENTFLAGS response code (see IMAP spec) + irtUIDVALIDITY, // UIDVALIDITY response code (see IMAP spec) + irtREADWRITE_STATUS, // READ-WRITE or READ-ONLY response code (see IMAP spec) + irtTRYCREATE, // TRYCREATE response code (see IMAP spec) + irtSEARCH, // SEARCH response (see IMAP spec) + irtMAILBOX_LISTING, // LIST or LSUB response (see IMAP spec) + irtMAILBOX_STATUS, // STATUS response (see IMAP spec) + irtAPPEND_PROGRESS, // Progress of APPEND stream upload + irtUPDATE_MSG_EX // Extended FETCH response (see IMAP spec) + } IMAP_RESPONSE_TYPE; + + + // Fetch body part - body parts requested by the client are returned piece-by-piece + // as they are received from the server, using this structure. After the entire FETCH + // response is received, the client will also receive a FETCH_CMD_RESULTS structure + // (see below) with the remaining requested information. + typedef struct tagFETCH_BODY_PART { + DWORD dwMsgSeqNum; // Message sequence number to which this FETCH resp applies + + LPSTR pszBodyTag; // Pointer to the IMAP tag identifying this body part (eg, + // "RFC822.PEEK", or "BODY[2.2]<0.2048>"). NOTE that we terminate + // the tag at the FIRST SPACE. This means that even though you sent + // "BODY[HEADER.FIELDS (foo baz)]", the tag returned will only be + // "BODY[HEADER.FIELDS". + + DWORD dwTotalBytes; // Total number of bytes expected for this body part + DWORD dwSizeOfData; // The number of bytes pointed to by pszData + DWORD dwOffset; // Offset of the start of this data buffer + BOOL fDone; // TRUE when this is the last data buffer + LPSTR pszData; // A pointer to the body part data + + LPARAM lpFetchCookie1; // User-settable values, initially set to 0. These will persist + LPARAM lpFetchCookie2; // throughout the FETCH response, ie, for all FETCH_BODY_PART + // responses (even if multiple body parts are fetched), and for + // the final FETCH_CMD_RESULTS structure. + } FETCH_BODY_PART; + + + // Fetch results structure - holds data from a FETCH response. Since FETCH + // responses can be unsolicited, the recipient must check that a data item is + // valid before attempting to use it. + typedef struct tagFETCH_CMD_RESULTS { + DWORD dwMsgSeqNum; // Message sequence number to which this FETCH resp applies + + BOOL bMsgFlags; // TRUE if MsgFlags (below) contains valid data + IMAP_MSGFLAGS mfMsgFlags; // Used to return the FLAGS tag of a FETCH response + + BOOL bRFC822Size; // TRUE if dwRFC822Size (below) contains valid data + DWORD dwRFC822Size; // Used to return the RFC822.SIZE tag of a FETCH response + + BOOL bUID; // TRUE if dwUID (below) contains valid data + DWORD dwUID; // Used to return the UID tag of a FETCH response + + BOOL bInternalDate; // TRUE if ftInternalDate (below) contains valid data + FILETIME ftInternalDate; // Used to return the INTERNALDATE tag of a FETCH response + + LPARAM lpFetchCookie1; // User-settable values. These will persist throughout + LPARAM lpFetchCookie2; // the FETCH, ie, for all FETCH_BODY_PART responses (even + // if multiple body parts are fetched), and for the final + // FETCH_CMD_RESULTS structure. + } FETCH_CMD_RESULTS; + + + typedef struct tagIMAPADDR { + LPSTR pszName; // See formal syntax for "addr_name", RFC2060 + LPSTR pszADL; // See formal syntax for "addr_adl", RFC2060 + LPSTR pszMailbox; // See formal syntax for "addr_mailbox", RFC2060 + LPSTR pszHost; // See formal syntax for "addr_host", RFC2060 + struct tagIMAPADDR *pNext; // Pointer to next address + } IMAPADDR; + + + typedef struct tagFETCH_CMD_RESULTS_EX { + // *** First part of this structure is exactly like FETCH_CMD_RESULTS *** + DWORD dwMsgSeqNum; // Message sequence number to which this FETCH resp applies + + BOOL bMsgFlags; // TRUE if MsgFlags (below) contains valid data + IMAP_MSGFLAGS mfMsgFlags; // Used to return the FLAGS tag of a FETCH response + + BOOL bRFC822Size; // TRUE if dwRFC822Size (below) contains valid data + DWORD dwRFC822Size; // Used to return the RFC822.SIZE tag of a FETCH response + + BOOL bUID; // TRUE if dwUID (below) contains valid data + DWORD dwUID; // Used to return the UID tag of a FETCH response + + BOOL bInternalDate; // TRUE if ftInternalDate (below) contains valid data + FILETIME ftInternalDate; // Used to return the INTERNALDATE tag of a FETCH response + + LPARAM lpFetchCookie1; // User-settable values. These will persist throughout + LPARAM lpFetchCookie2; // the FETCH, ie, for all FETCH_BODY_PART responses (even + // if multiple body parts are fetched), and for the final + // FETCH_CMD_RESULTS structure. + + + // *** Second part of this structure contains the extensions *** + BOOL bEnvelope; // TRUE if we received an ENVELOPE response + FILETIME ftENVDate; // Date returned via ENVELOPE + LPSTR pszENVSubject; // "Subject" returned via ENVELOPE + IMAPADDR *piaENVFrom; // "From" addresses returned via ENVELOPE + IMAPADDR *piaENVSender; // "Sender" addresses returned via ENVELOPE + IMAPADDR *piaENVReplyTo; // "ReplyTo" addresses returned via ENVELOPE + IMAPADDR *piaENVTo; // "To" addresses returned via ENVELOPE + IMAPADDR *piaENVCc; // "Cc" addresses returned via ENVELOPE + IMAPADDR *piaENVBcc; // "Bcc" addresses returned via ENVELOPE + LPSTR pszENVInReplyTo; // "InReplyTo" returned via ENVELOPE + LPSTR pszENVMessageID; // "MessageID" returned via ENVELOPE + + DWORD dwReserved1; + DWORD dwReserved2; + DWORD dwReserved3; + } FETCH_CMD_RESULTS_EX; + + + // The following structure is used to track and communicate EXISTS, + // RECENT and UNSEEN responses from the IMAP server + typedef struct tagMBOX_MSGCOUNT { + BOOL bGotExistsResponse; + DWORD dwExists; + + BOOL bGotRecentResponse; + DWORD dwRecent; + + BOOL bGotUnseenResponse; + DWORD dwUnseen; + } MBOX_MSGCOUNT; + + // The following structure returns the results of a LIST or LSUB response + typedef struct tagIMAP_LISTLSUB_RESPONSE { + LPSTR pszMailboxName; + IMAP_MBOXFLAGS imfMboxFlags; + char cHierarchyChar; + } IMAP_LISTLSUB_RESPONSE; + + // The following structure returns the results of a STATUS response + typedef struct tagIMAP_STATUS_RESPONSE { + LPSTR pszMailboxName; + + BOOL fMessages; + DWORD dwMessages; + BOOL fRecent; + DWORD dwRecent; + BOOL fUIDNext; + DWORD dwUIDNext; + BOOL fUIDValidity; + DWORD dwUIDValidity; + BOOL fUnseen; + DWORD dwUnseen; + } IMAP_STATUS_RESPONSE; + + + // The following structure returns the progress of the current APPEND command + typedef struct tagAPPEND_PROGRESS { + DWORD dwUploaded; + DWORD dwTotal; + } APPEND_PROGRESS; + + + // The following union can hold the results of many types of IMAP responses + typedef [switch_type(IMAP_RESPONSE_TYPE)] union tagIMAP_RESPONSE_DATA { + [case (irtMAILBOX_UPDATE)] MBOX_MSGCOUNT *pmcMsgCount; // For mailbox update (EXISTS, RECENT, UNSEEN) data + [case (irtDELETED_MSG)] DWORD dwDeletedMsgSeqNum; // For EXPUNGE response data + [case (irtFETCH_BODY)] FETCH_BODY_PART *pFetchBodyPart; // For body parts (eg, RFC822) retrieved via FETCH + [case (irtUPDATE_MSG)] FETCH_CMD_RESULTS *pFetchResults; // For message update (FETCH) data + [case (irtAPPLICABLE_FLAGS, irtPERMANENT_FLAGS)] + IMAP_MSGFLAGS imfImapMessageFlags; // For FLAGS response or PERMANENTFLAGS response code data + [case (irtUIDVALIDITY)] DWORD dwUIDValidity; // For UIDVALIDITY response code data + [case (irtREADWRITE_STATUS)] BOOL bReadWrite; // For READ-WRITE or READ-ONLY response code data + [case (irtSEARCH)] IRangeList *prlSearchResults; // For SEARCH response data + [case (irtMAILBOX_LISTING)] + IMAP_LISTLSUB_RESPONSE illrdMailboxListing; // For LIST or LSUB response data + [case (irtMAILBOX_STATUS)] + IMAP_STATUS_RESPONSE *pisrStatusResponse; // For STATUS response data + [case (irtAPPEND_PROGRESS)] + APPEND_PROGRESS *papAppendProgress; + [case (irtUPDATE_MSG_EX)] FETCH_CMD_RESULTS_EX + *pFetchResultsEx; // For message update (FETCH) data + } IMAP_RESPONSE_DATA; + + // The following structure is used to represent all IMAP responses + typedef struct tagIMAP_RESPONSE { + WPARAM wParam; // This is 0 if unsolicited response or unresolvable + LPARAM lParam; // This is 0 if unsolicited response or unresolvable + HRESULT hrResult; + LPSTR lpszResponseText; + IMAP_RESPONSE_TYPE irtResponseType; + [switch_is(irtResponseType)] IMAP_RESPONSE_DATA irdResponseData; + } IMAP_RESPONSE; + + + //----------------------------------------------------------------------- + // IID_IIMAPCallback Interface Functions + //----------------------------------------------------------------------- + + //*********************************************************************** + // Function: OnResponse + // Purpose: This function is used to report IMAP server responses to + // IMAP commands (or unsolicited responses). + // Arguments: + // [in] IMAP_RESPONSE *pirIMAPResponse - a pointer to an IMAP response + // structure is returned to the IID_IIMAPTransport user via + // this callback. + // Returns: This function should always return S_OK. + //*********************************************************************** + HRESULT OnResponse([in] const IMAP_RESPONSE *pirIMAPResponse); + + } // interface IIMAPCallback + + + + // *************************************************************************************** + // --------------------------------------------------------------------------------------- + // IID_IIMAPTransport + // --------------------------------------------------------------------------------------- + [ + uuid(E9E9D8A8-4EDD-11d0-874F-00AA00530EE9), + helpstring("IMAP Transport Interface: used to send IMAP commands to an IMAP server."), + local, + ] + interface IIMAPTransport : IInternetTransport + { + // ------------------------------------- + // IID_IIMAPTransport Interface Constants + // ------------------------------------- + // The following DWORDs are returned by IIMAPTransport::Capability + const DWORD IMAP_CAPABILITY_IMAP4 = 0x00000001; + const DWORD IMAP_CAPABILITY_IMAP4rev1 = 0x00000002; + const DWORD IMAP_CAPABILITY_IDLE = 0x00000004; + const DWORD IMAP_CAPABILITY_ALLFLAGS = 0x00000007; // Keep this updated + + + + //----------------------------------------------------------------------- + // IID_IIMAPTransport Interface Functions + //----------------------------------------------------------------------- + //*************************************************************************** + // Function: InitNew + // + // Purpose: + // This function initializes the CImap4Agent class. This function + // must be the next function called after instantiating the CImap4Agent class. + // + // Arguments: + // LPSTR pszLogFilePath [in] - path to a log file (where all input and + // output is logged), if the caller wishes to log IMAP transactions. + // IIMAPCallback *pCBHandler [in] - pointer to a IIMAPCallback object. + // This object allows the CImap4Agent class to report all IMAP response + // results to its user. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT InitNew([in, annotation("_In_opt_")] LPSTR pszLogFilePath, + [in] IIMAPCallback *pCBHandler); + + + //*************************************************************************** + // Function: NewIRangeList + // + // Purpose: + // This function returns a pointer to an IRangeList. Its purpose is to + // allow full functionality from an IIMAPTransport pointer without needing + // to resort to CoCreateInstance to get an IRangeList. + // + // Arguments: + // IRangeList **pprlNewRangeList [out] - if successful, the function + // returns a pointer to the new IRangeList. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT NewIRangeList([out] IRangeList **pprlNewRangeList); + + + //*************************************************************************** + // Function: Capability + // + // Purpose: + // The CImap4Agent class always asks for the server's CAPABILITIES after + // a connection is established. The result is saved in a register and + // is available by calling this function. + // + // Arguments: + // [out] DWORD *pdwCapabilityFlags - this function returns a DWORD with + // bit-flags specifying which capabilities this IMAP server + // supports. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT Capability([out] DWORD *pdwCapabilityFlags); + + + //*************************************************************************** + // Function: Select + // + // Purpose: + // This function issues a SELECT command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR lpszMailboxName - pointer to IMAP-compliant mailbox name + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Select([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszMailboxName); + + + //*************************************************************************** + // Function: Examine + // + // Purpose: + // This function issues an EXAMINE command to the IMAP server. + // + // Arguments: + // Same as for the Select() function. + // + // Returns: + // Same as for the Select() function. + //*************************************************************************** + HRESULT Examine([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszMailboxName); + + + //*************************************************************************** + // Function: Create + // + // Purpose: + // This function issues a CREATE command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR lpszMailboxName - IMAP-compliant name of the mailbox. + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Create([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszMailboxName); + + + //*************************************************************************** + // Function: Delete + // + // Purpose: + // This function issues a DELETE command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR lpszMailboxName - IMAP-compliant name of the mailbox. + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Delete([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszMailboxName); + + + //*************************************************************************** + // Function: Rename + // + // Purpose: + // This function issues a RENAME command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR lpszMailboxName - CURRENT IMAP-compliant name of the mailbox. + // LPSTR lpszNewMailboxName - NEW IMAP-compliant name of the mailbox. + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Rename([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszMailboxName, + [in, annotation("_In_z_")] LPSTR lpszNewMailboxName); + + + //*************************************************************************** + // Function: Subscribe + // + // Purpose: + // This function issues a SUBSCRIBE command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR lpszMailboxName - IMAP-compliant name of the mailbox. + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Subscribe([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszMailboxName); + + + //*************************************************************************** + // Function: Unsubscribe + // + // Purpose: + // This function issues an UNSUBSCRIBE command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR lpszMailboxName - IMAP-compliant name of the mailbox. + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Unsubscribe([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszMailboxName); + + + //*************************************************************************** + // Function: List + // + // Purpose: + // This function issues a LIST command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR lpszMailboxNameReference - IMAP-compliant reference for mbox name + // LPSTR lpszMailboxNamePattern - IMAP-compliant pattern for mailbox name + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT List([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszMailboxNameReference, + [in, annotation("_In_z_")] LPSTR lpszMailboxNamePattern); + + + //*************************************************************************** + // Function: Lsub + // + // Purpose: + // This function issues a LSUB command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR lpszMailboxNameReference - IMAP-compliant reference for mbox name + // LPSTR lpszMailboxNamePattern - IMAP-compliant pattern for mailbox name. + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Lsub([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszMailboxNameReference, + [in, annotation("_In_z_")] LPSTR lpszMailboxNamePattern); + + + //*************************************************************************** + // Function: Append + // + // Purpose: + // This function issues an APPEND command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR lpszMailboxName - IMAP-compliant mailbox name to append message to. + // LPSTR lpszMessageFlags - IMAP-compliant list of msg flags to set for msg. + // Set to NULL to set no message flags. (Avoid passing "()" due to old Cyrus + // server bug). $REVIEW: This should be changed to IMAP_MSGFLAGS!!! + // FILETIME ftMessageDateTime - date/time to associate with msg (GMT/UTC) + // LPSTREAM lpstmMessageToSave - the message to save, in RFC822 format. + // No need to rewind the stream, this is done by CConnection::SendStream. + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Append([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszMailboxName, + [in, annotation("_In_z_")] LPSTR lpszMessageFlags, + [in] FILETIME ftMessageDateTime, + [in] LPSTREAM lpstmMessageToSave); + + + //*************************************************************************** + // Function: Close + // + // Purpose: + // This function issues a CLOSE command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Close([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler); + + + //*************************************************************************** + // Function: Expunge + // + // Purpose: + // This function issues an EXPUNGE command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // + // Returns: + // HRESULT indicating success or failure on send operation. + //*************************************************************************** + HRESULT Expunge([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler); + + + //*************************************************************************** + // Function: Search + // + // Purpose: + // This function issues a SEARCH command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR lpszSearchCriteria - IMAP-compliant list of search criteria + // boolean bReturnUIDs - if TRUE, we prepend "UID" to command. + // IRangeList *pMsgRange [in] - range of messages over which to operate + // the search. This argument should be NULL to exclude the message + // set from the search criteria. + // boolean bUIDRangeList [in] - TRUE if pMsgRange refers to a UID range, + // FALSE if pMsgRange refers to a message sequence number range. If + // pMsgRange is NULL, this argument is ignored. + // + // Returns: + // HRESULT indicating success or failure on send operation. + //*************************************************************************** + HRESULT Search([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR lpszSearchCriteria, + [in] boolean bReturnUIDs, + [in] IRangeList *pMsgRange, + [in] boolean bUIDRangeList); + + + //*************************************************************************** + // Function: Fetch + // + // Purpose: + // This function issues a FETCH command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // IRangeList *pMsgRange [in] - range of messages to fetch. The caller + // should pass NULL if he is using UIDs and he wants to generate his + // own message set (in lpszFetchArgs). If the caller is using msg + // seq nums, this argument MUST be specified to allow this class to + // resequence the msg nums as required. + // boolean bUIDMsgRange [in] - if TRUE, prepends "UID" to FETCH command and + // treats pMsgRange as a UID range. + // LPSTR lpszFetchArgs - arguments to the FETCH command + // + // + // Returns: + // HRESULT indicating success or failure of the send operation. + //*************************************************************************** + HRESULT Fetch([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in] IRangeList *pMsgRange, + [in] boolean bUIDMsgRange, + [in, annotation("_In_z_")] LPSTR lpszFetchArgs); + + + //*************************************************************************** + // Function: Store + // + // Purpose: + // This function issues a STORE command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // IRangeList *pMsgRange [in] - range of messages to store. The caller + // should pass NULL if he is using UIDs and he wants to generate his + // own message set (in lpszStoreArgs). If the caller is using msg + // seq nums, this argument MUST be specified to allow this class to + // resequence the msg nums as required. + // boolean bUIDRangeList [in] - if TRUE, we prepend "UID" to the STORE command + // LPSTR lpszStoreArgs - arguments for the STORE command. + // + // Returns: + // HRESULT indicating success or failure of the send operation. + //*************************************************************************** + HRESULT Store([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in] IRangeList *pMsgRange, + [in] boolean bUIDRangeList, + [in, annotation("_In_z_")] LPSTR lpszStoreArgs); + + + //*************************************************************************** + // Function: Copy + // + // Purpose: + // This function issues a COPY command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // IRangeList *pMsgRange [in] - the range of messages to copy. This + // argument must be supplied. + // boolean bUIDRangeList [in] - if TRUE, prepends "UID" to COPY command + // LPSTR lpszMailboxName [in] - C String of mailbox name + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Copy([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in] IRangeList *pMsgRange, + [in] boolean bUIDRangeList, + [in, annotation("_In_z_")] LPSTR lpszMailboxName); + + + //*************************************************************************** + // Function: Noop + // + // Purpose: + // This function issues a NOOP command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // + // Returns: + // HRESULT indicating success or failure of send operation. + //*************************************************************************** + HRESULT Noop([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler); + + + + + + //--------------------------------------------------------------------------- + // Message Sequence Number to UID member functions - the caller may use + // these functions to map from MSN's to UID's, if the caller uses UIDs + // to refer to messages. If the caller uses MSN's, there is no need to + // invoke the following functions. + //--------------------------------------------------------------------------- + + + //*************************************************************************** + // Function: ResizeMsgSeqNumTable + // + // Purpose: + // This function is called whenever we receive an EXISTS response. It + // resizes the MsgSeqNumToUID table to match the current size of the mailbox. + // + // Arguments: + // DWORD dwSizeOfMbox [in] - the number returned via the EXISTS response. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT ResizeMsgSeqNumTable([in] DWORD dwSizeOfMbox); + + + //*************************************************************************** + // Function: UpdateSeqNumToUID + // + // Purpose: + // This function is called whenever we receive a FETCH response which has + // both a message sequence number and a UID number. It updates the + // MsgSeqNumToUID table so that given msg seq number maps to the given UID. + // + // Arguments: + // DWORD dwMsgSeqNum [in] - the message sequence number of the FETCH + // response. + // DWORD dwUID [in] - the UID of the given message sequence number. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT UpdateSeqNumToUID([in] DWORD dwMsgSeqNum, + [in] DWORD dwUID); + + + //*************************************************************************** + // Function: RemoveSequenceNum + // + // Purpose: + // This function is called whenever we receive an EXPUNGE response. It + // removes the given message sequence number from the MsgSeqNumToUID table, + // and compacts the table so that all message sequence numbers following + // the deleted one are re-sequenced. + // + // Arguments: + // DWORD dwDeletedMsgSeqNum [in] - message sequence number of deleted msg. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT RemoveSequenceNum([in] DWORD dwDeletedMsgSeqNum); + + + //*************************************************************************** + // Function: MsgSeqNumToUID + // + // Purpose: + // This function takes a message sequence number and converts it to a UID + // based on the MsgSeqNumToUID table. + // + // Arguments: + // DWORD dwMsgSeqNum [in] - the sequence number for which the caller wants + // to know the UID. + // DWORD *pdwUID [out] - the UID associated with the given sequence number + // is returned here. If none could be found, this function returns 0. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT MsgSeqNumToUID([in] DWORD dwMsgSeqNum, [out] DWORD *pdwUID); + + + //*************************************************************************** + // Function: GetMsgSeqNumToUIDArray + // + // Purpose: + // This function returns a copy of the MsgSeqNumToUID array. The caller + // will want to do this to delete messages from the cache which no longer + // exist on the server, for example. + // + // Arguments: + // DWORD **ppdwMsgSeqNumToUIDArray [out] - the function returns a pointer + // to the copy of the MsgSeqNumToUID array in this argument. Note that + // it is the caller's responsibility to MemFree the array. If no array + // is available, or it is empty, the returned pointer value is NULL. + // DWORD *pdwNumberOfElements [out] - the function returns the size of + // the MsgSeqNumToUID array. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT GetMsgSeqNumToUIDArray([out] DWORD **ppdwMsgSeqNumToUIDArray, + [out] DWORD *pdwNumberOfElements); + + + //*************************************************************************** + // Function: GetHighestMsgSeqNum + // + // Purpose: + // This function returns the highest message sequence number reported in + // the MsgSeqNumToUID array. + // + // Arguments: + // DWORD *pdwHighestMSN [out] - the highest message sequence number in the + // table is returned here. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT GetHighestMsgSeqNum([out] DWORD *pdwHighestMSN); + + + //*************************************************************************** + // Function: ResetMsgSeqNumToUID + // + // Purpose: + // This function resets the variables used to maintain the MsgSeqNumToUID + // table. This function is AUTOMATICALLY called whenever the MsgSeqNumToUID + // table becomes invalid (say, when a new mailbox is selected, or we are + // disconnected). This function shouldn't normally need to be called, but + // I've placed it here just in case someone needs it. + // + // Returns: + // S_OK. This function cannot fail. + //*************************************************************************** + HRESULT ResetMsgSeqNumToUID(void); + + + //--------------------------------------------------------------------------- + // Leaving Message Sequence Number to UID member functions zone + //--------------------------------------------------------------------------- + + //*************************************************************************** + // Function: SetDefaultCBHandler + // + // Purpose: This function changes the current default IIMAPCallback handler + // to the given one. + // + // Arguments: + // IIMAPCallback *pCBHandler [in] - a pointer to the new callback handler. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT SetDefaultCBHandler([in] IIMAPCallback *pCBHandler); + + + //*************************************************************************** + // Function: Status + // + // Purpose: + // This function issues a STATUS command to the IMAP server. + // + // Arguments: + // WPARAM wParam [in] - (see below) + // LPARAM lParam [in] - the wParam and lParam form a unique ID assigned by + // the caller to this IMAP command and its responses. Can be anything, + // but note that the value of 0, 0 is reserved for unsolicited responses. + // IIMAPCallback *pCBHandler [in] - the CB handler to use to process the + // responses for this command. If this is NULL, the default CB handler + // is used. + // LPSTR pszMailboxName [in] - the mailbox which you want to get the + // STATUS of. + // LPSTR pszStatusCmdArgs [in] - the arguments for the STATUS command, + // eg, "(MESSAGES UNSEEN)". + // + // Returns: + // HRESULT indicating success or failure of the send operation. + //*************************************************************************** + HRESULT Status([in] WPARAM wParam, + [in] LPARAM lParam, + [in] IIMAPCallback *pCBHandler, + [in, annotation("_In_z_")] LPSTR pszMailboxName, + [in, annotation("_In_z_")] LPSTR pszStatusCmdArgs); + + + } // interface IIMAPTransport + + + + // *************************************************************************************** + // --------------------------------------------------------------------------------------- + // IID_IIMAPTransport2 + // --------------------------------------------------------------------------------------- + [ + uuid(DA8283C0-37C5-11d2-ACD9-0080C7B6E3C5), + helpstring("IMAP Transport Interface 2: Extension to IIMAPTransport."), + local, + ] + interface IIMAPTransport2 : IIMAPTransport + { + + //----------------------------------------------------------------------- + // IID_IIMAPTransport Interface Functions + //----------------------------------------------------------------------- + + //*************************************************************************** + // Function: SetDefaultCP + // + // Purpose: + // This function allows the caller to tell IIMAPTransport what codepage to + // use for IMAP mailbox names. After calling this function, all mailbox names + // submitted to IIMAPTransport will be translated from the default codepage, + // and all mailbox names returned from the server will be translated to + // the default codepage before being returned via IIMAPCallback. + // + // Arguments: + // DWORD dwTranslateFlags [in] - enables/disables automatic translation to + // and from default codepage and IMAP-modified UTF-7. If disabled, caller + // wishes all mailbox names to be passed verbatim to/from IMAP server. + // Note that by default we translate for IMAP4 servers, even with its + // round-trippability problems, because this is how we used to do it + // in the past. + // UINT uiCodePage [in] - the default codepage to use for translations. + // By default this value is the CP returned by GetACP(). + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT SetDefaultCP([in] DWORD dwTranslateFlags, + [in] UINT uiCodePage); + + // TranslateFlags + const DWORD IMAP_MBOXXLATE_DEFAULT = 0x00000000; // Always translate, even for IMAP4 + const DWORD IMAP_MBOXXLATE_DISABLE = 0x00000001; // Always disable + const DWORD IMAP_MBOXXLATE_DISABLEIMAP4 = 0x00000002; // Disable for IMAP4, translate for IMAP4rev1 + const DWORD IMAP_MBOXXLATE_VERBATIMOK = 0x00000004; // Non-translatable mbox names can be returned verbatim + // Note if translation disabled, all mboxes will be + // returned with IXP_S_IMAP_VERBATIM_MBOX + const DWORD IMAP_MBOXXLATE_RETAINCP = 0x00000008; // Don't change codepage with this call + + + //*************************************************************************** + // Function: MultiByteToModifiedUTF7 + // + // Purpose: + // This function takes a MultiByte string and converts it to modified IMAP + // UTF7, which is described in RFC2060. This function is only needed if the + // user has disabled transparent mailbox translation using SetDefaultCP(FALSE,0). + // + // Arguments: + // LPCSTR pszSource [in] - pointer to the MultiByte string to convert to UTF7. + // LPSTR *ppszDestination [out] - a pointer to a string buffer containing + // the UTF7 equivalent of pszSource is returned here. It is the caller's + // responsibility to MemFree this string. + // UINT uiSourceCP [in] - indicates the codepage for pszSource + // Note that no translation is performed if SetDefaultCP(FALSE,.) was called. + // DWORD dwFlags [in] - Reserved. Leave as 0. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT MultiByteToModifiedUTF7([in] LPCSTR pszSource, + [out, annotation("_Outptr_")] LPSTR *ppszDestination, + [in] UINT uiSourceCP, + [in] DWORD dwFlags); + + + //*************************************************************************** + // Function: ModifiedUTF7ToMultiByte + // + // Purpose: + // This function takes a modified IMAP UTF-7 string (as defined in RFC2060) + // and converts it to a multi-byte string. This function is only needed if the + // user has disabled transparent mailbox translation using SetDefaultCP(FALSE,0). + // + // Arguments: + // LPCSTR pszSource [in] - a null-terminated string containing the modified + // IMAP UTF-7 string to convert to multibyte. + // LPSTR *ppszDestination [out] - this function returns a pointer to the + // null-terminated multibyte string (in the system codepage) obtained + // from pszSource. It is the caller's responsiblity to MemFree this + // string when it is done with it. + // UINT uiDestintationCP [in] - indicates the desired codepage for the + // destination string. Note that no translation is performed if + // SetDefaultCP(FALSE,.) was called. + // DWORD dwFlags [in] - Reserved. Leave as 0. + // + // Returns: + // HRESULT indicating success or failure. Success result codes include: + // S_OK - pszSource successfully converted to modified UTF-7 + // IXP_S_IMAP_VERBATIM_MBOX - pszSource could not be converted to multibyte, + // so ppszDestination contains a duplicate of pszSource. If target CP + // is Unicode, pszSource is converted to Unicode with the assumption + // that it is USASCII. IMAP_MBOXXLATE_VERBATIMOK must have been set via + // SetDefaultCP in order to get this behaviour. + //*************************************************************************** + HRESULT ModifiedUTF7ToMultiByte([in] LPCSTR pszSource, + [out, annotation("_Outptr_")] LPSTR *ppszDestination, + [in] UINT uiDestinationCP, + [in] DWORD dwFlags); + + + //*************************************************************************** + // Function: SetIdleMode + // + // Purpose: + // The IMAP IDLE extension allows the server to unilaterally report changes + // to the currently selected mailbox: new email, flag updates, and message + // expunges. IIMAPTransport always enters IDLE mode when no IMAP commands + // are pending, but it turns out that this can result in unnecessary + // entry and exit of IDLE mode when the caller tries to sequence IMAP commands. + // This function allows the caller to disable the use of the IDLE extension. + // + // Arguments: + // DWORD dwIdleFlags [in] - enables or disables the use of the IDLE extension. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT SetIdleMode([in] DWORD dwIdleFlags); + + // Idle Flags + const DWORD IMAP_IDLE_DISABLE = 0x00000000; + const DWORD IMAP_IDLE_ENABLE = 0x00000001; + + + //*************************************************************************** + // Function: EnableFetchEx + // + // Purpose: + // IIMAPTransport only understood a subset of FETCH response tags. Notable + // omissions included ENVELOPE and BODYSTRUCTURE. Calling this function + // changes the behaviour of IIMAPTransport::Fetch. Instead of returning + // FETCH responses via IIMAPCallback::OnResponse(irtUPDATE_MSG), + // the FETCH response is returned via OnResponse(irtUPDATE_MSG_EX). + // Other FETCH-related responses remain unaffected (eg, irtFETCH_BODY). + // + // Arguments: + // DWORD dwFetchExFlags [in] - enables or disables FETCH extensions. + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT EnableFetchEx([in] DWORD dwFetchExFlags); + + // FetchEx flags + const DWORD IMAP_FETCHEX_DISABLE = 0x00000000; + const DWORD IMAP_FETCHEX_ENABLE = 0x00000001; + + + //*************************************************************************** + // Function: SetWindow + // + // Purpose: + // This function creates a new window for async winsock processing + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT SetWindow(void); + + + //*************************************************************************** + // Function: ResetWindow + // + // Purpose: + // This function closes a window for async winsock processing + // + // Returns: + // HRESULT indicating success or failure. + //*************************************************************************** + HRESULT ResetWindow(void); + + } // interface IIMAPTransport2 + + +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// Exported C Functions") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("#if !defined(_IMNXPORT_)") +cpp_quote("#define IMNXPORTAPI DECLSPEC_IMPORT HRESULT WINAPI") +cpp_quote("#else") +cpp_quote("#define IMNXPORTAPI HRESULT WINAPI") +cpp_quote("#endif") +cpp_quote("#ifdef __cplusplus") +cpp_quote("extern \"C\" {") +cpp_quote("#endif") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// CreateRASTransport") +cpp_quote("// ") +cpp_quote("// Description:") +cpp_quote("// This method creates a IRASTransport object. The client must initialize the") +cpp_quote("// object by calling IRASTransport::InitNew") +cpp_quote("// ") +cpp_quote("// Parameters:") +cpp_quote("// ppTransport Upon successful return, contains the a pointer to") +cpp_quote("// an IRASTransport interface") +cpp_quote("// ") +cpp_quote("// Return Values:") +cpp_quote("// S_OK Successful.") +cpp_quote("// E_INVALIDARG ppTransport is NULL") +cpp_quote("// E_OUTOFMEMORY Memory allocation failure...") +cpp_quote("// ") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("IMNXPORTAPI CreateRASTransport(") +cpp_quote(" /* out */ _Outptr_ IRASTransport **ppTransport);") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// CreateNNTPTransport") +cpp_quote("// ") +cpp_quote("// Description:") +cpp_quote("// This method creates a INNTPTransport object. The client must initialize the") +cpp_quote("// object by calling INNTPTransport::InitNew") +cpp_quote("// ") +cpp_quote("// Parameters:") +cpp_quote("// ppTransport Upon successful return, contains the a pointer to") +cpp_quote("// an INNTPTransport interface") +cpp_quote("// ") +cpp_quote("// Return Values:") +cpp_quote("// S_OK Successful.") +cpp_quote("// E_INVALIDARG ppTransport is NULL") +cpp_quote("// E_OUTOFMEMORY Memory allocation failure...") +cpp_quote("// ") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("IMNXPORTAPI CreateNNTPTransport(") +cpp_quote(" /* out */ _Outptr_ INNTPTransport **ppTransport);") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// CreateSMTPTransport") +cpp_quote("// ") +cpp_quote("// Description:") +cpp_quote("// This method creates a ISMTPTransport object. The client must initialize the") +cpp_quote("// object by calling ISMTPTransport::InitNew") +cpp_quote("// ") +cpp_quote("// Parameters:") +cpp_quote("// ppTransport Upon successful return, contains the a pointer to") +cpp_quote("// an ISMTPTransport interface") +cpp_quote("// ") +cpp_quote("// Return Values:") +cpp_quote("// S_OK Successful.") +cpp_quote("// E_INVALIDARG ppTransport is NULL") +cpp_quote("// E_OUTOFMEMORY Memory allocation failure...") +cpp_quote("// ") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("IMNXPORTAPI CreateSMTPTransport(") +cpp_quote(" /* out */ _Outptr_ ISMTPTransport **ppTransport);") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// CreatePOP3Transport") +cpp_quote("// ") +cpp_quote("// Description:") +cpp_quote("// This method creates a IPOP3Transport object. The client must initialize the") +cpp_quote("// object by calling IPOP3Transport::InitNew") +cpp_quote("// ") +cpp_quote("// Parameters:") +cpp_quote("// ppTransport Upon successful return, contains the a pointer to") +cpp_quote("// an IPOP3Transport interface") +cpp_quote("// ") +cpp_quote("// Return Values:") +cpp_quote("// S_OK Successful.") +cpp_quote("// E_INVALIDARG ppTransport is NULL") +cpp_quote("// E_OUTOFMEMORY Memory allocation failure...") +cpp_quote("// ") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("IMNXPORTAPI CreatePOP3Transport(") +cpp_quote(" /* out */ _Outptr_ IPOP3Transport **ppTransport);") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// CreateIMAPTransport") +cpp_quote("// ") +cpp_quote("// Description:") +cpp_quote("// This method creates a IIMAPTransport object. The client must initialize the") +cpp_quote("// object by calling IIMAPTransport::InitNew") +cpp_quote("// ") +cpp_quote("// Parameters:") +cpp_quote("// ppTransport Upon successful return, contains the a pointer to") +cpp_quote("// an IIMAPTransport interface") +cpp_quote("// ") +cpp_quote("// Return Values:") +cpp_quote("// S_OK Successful.") +cpp_quote("// E_INVALIDARG ppTransport is NULL") +cpp_quote("// E_OUTOFMEMORY Memory allocation failure...") +cpp_quote("// ") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("IMNXPORTAPI CreateIMAPTransport(") +cpp_quote(" /* out */ _Outptr_ IIMAPTransport **ppTransport);") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// CreateIMAPTransport2") +cpp_quote("// ") +cpp_quote("// Description:") +cpp_quote("// This method creates an IIMAPTransport2 object. The client must initialize the") +cpp_quote("// object by calling IIMAPTransport2::InitNew") +cpp_quote("// ") +cpp_quote("// Parameters:") +cpp_quote("// ppTransport Upon successful return, contains the a pointer to") +cpp_quote("// an IIMAPTransport2 interface") +cpp_quote("// ") +cpp_quote("// Return Values:") +cpp_quote("// S_OK Successful.") +cpp_quote("// E_INVALIDARG ppTransport is NULL") +cpp_quote("// E_OUTOFMEMORY Memory allocation failure...") +cpp_quote("// ") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("IMNXPORTAPI CreateIMAPTransport2(") +cpp_quote(" /* out */ _Outptr_ IIMAPTransport2 **ppTransport);") +cpp_quote("") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("// CreateRangeList") +cpp_quote("// ") +cpp_quote("// Description:") +cpp_quote("// This method creates a IRangeList object.") +cpp_quote("// ") +cpp_quote("// Parameters:") +cpp_quote("// ppRangeList Upon successful return, contains the a pointer to") +cpp_quote("// an IRangeList interface") +cpp_quote("// ") +cpp_quote("// Return Values:") +cpp_quote("// S_OK Successful.") +cpp_quote("// E_INVALIDARG ppRangeList is NULL") +cpp_quote("// E_OUTOFMEMORY Memory allocation failure...") +cpp_quote("// ") +cpp_quote("// --------------------------------------------------------------------------------") +cpp_quote("IMNXPORTAPI CreateRangeList(") +cpp_quote(" /* out */ _Outptr_ IRangeList **ppRangeList);") +cpp_quote("") +cpp_quote("#ifdef __cplusplus") +cpp_quote("}") +cpp_quote("#endif") +cpp_quote("") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/inddef.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inddef.idl new file mode 100644 index 0000000000000000000000000000000000000000..f3c57d575f07e6fd6b1e0d34bd96862a9866cf68 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inddef.idl @@ -0,0 +1,115 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: inddef.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a68-2a1c-11ce-ade5-00aa0044773d) + + +interface IIndexDefinition : IUnknown { + +#ifdef _WIN64 //Use casting by ULONG in attribute size_is under 64-bit environment. + + [local] + HRESULT CreateIndex( + [in, annotation("_In_")] DBID * pTableID, + [in, annotation("_In_opt_")] DBID * pIndexID, + [in] DBORDINAL cIndexColumnDescs, + [in, size_is((ULONG)cIndexColumnDescs), annotation("_In_reads_(cIndexColumnDescs)")] + const DBINDEXCOLUMNDESC rgIndexColumnDescs[], + [in] ULONG cPropertySets, + [in, out, size_is(cPropertySets), annotation("_Inout_updates_(cPropertySets)")] + DBPROPSET rgPropertySets[], + [out, annotation("_Outptr_opt_")] DBID ** ppIndexID + ); + +#ifndef NO_REMOTE + + [call_as(CreateIndex)] + HRESULT RemoteCreateIndex( + [in] DBID * pTableID, + [in, unique] DBID * pIndexID, + [in] DBORDINAL cIndexColumnDescs, + [in, size_is((ULONG)cIndexColumnDescs)] const DBINDEXCOLUMNDESC *rgIndexColumnDescs, + [in] ULONG cPropertySets, + [in, unique, size_is(cPropertySets)] DBPROPSET *rgPropertySets, + [in, out, unique] DBID ** ppIndexID, + [in] ULONG cTotalProps, + [out, size_is(cTotalProps)] DBPROPSTATUS *rgPropStatus, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#endif + +#else //No casting by ULONG for 32-bit. + + [local] + HRESULT CreateIndex( + [in, annotation("_In_")] DBID * pTableID, + [in, annotation("_In_opt_")] DBID * pIndexID, + [in] DBORDINAL cIndexColumnDescs, + [in, size_is(cIndexColumnDescs), annotation("_In_reads_(cIndexColumnDescs)")] + const DBINDEXCOLUMNDESC rgIndexColumnDescs[], + [in] ULONG cPropertySets, + [in, out, size_is(cPropertySets), annotation("_Inout_updates_(cPropertySets)")] + DBPROPSET rgPropertySets[], + [out, annotation("_Outptr_opt_result_maybenull_")] DBID ** ppIndexID + ); + +#ifndef NO_REMOTE + + [call_as(CreateIndex)] + HRESULT RemoteCreateIndex( + [in] DBID * pTableID, + [in, unique] DBID * pIndexID, + [in] DBORDINAL cIndexColumnDescs, + [in, size_is(cIndexColumnDescs)] const DBINDEXCOLUMNDESC *rgIndexColumnDescs, + [in] ULONG cPropertySets, + [in, unique, size_is(cPropertySets)] DBPROPSET *rgPropertySets, + [in, out, unique] DBID ** ppIndexID, + [in] ULONG cTotalProps, + [out, size_is(cTotalProps)] DBPROPSTATUS *rgPropStatus, + [out] IErrorInfo ** ppErrorInfoRem + ); + +#endif + +#endif + + [local] + HRESULT DropIndex( + [in, unique, annotation("_In_")] DBID * pTableID, + [in, unique, annotation("_In_opt_")] DBID * pIndexID + ); + + [call_as(DropIndex)] + HRESULT RemoteDropIndex( + [in, unique] DBID * pTableID, + [in, unique] DBID * pIndexID, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/indexsrv.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/indexsrv.h new file mode 100644 index 0000000000000000000000000000000000000000..8f76ad4c69c8755ab586393f2d231d276a3da9e1 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/indexsrv.h @@ -0,0 +1,1145 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __indexsrv_h__ +#define __indexsrv_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IPhraseSink_FWD_DEFINED__ +#define __IPhraseSink_FWD_DEFINED__ +typedef interface IPhraseSink IPhraseSink; + +#endif /* __IPhraseSink_FWD_DEFINED__ */ + + +#ifndef __IWordSink_FWD_DEFINED__ +#define __IWordSink_FWD_DEFINED__ +typedef interface IWordSink IWordSink; + +#endif /* __IWordSink_FWD_DEFINED__ */ + + +#ifndef __IWordBreaker_FWD_DEFINED__ +#define __IWordBreaker_FWD_DEFINED__ +typedef interface IWordBreaker IWordBreaker; + +#endif /* __IWordBreaker_FWD_DEFINED__ */ + + +#ifndef __IWordFormSink_FWD_DEFINED__ +#define __IWordFormSink_FWD_DEFINED__ +typedef interface IWordFormSink IWordFormSink; + +#endif /* __IWordFormSink_FWD_DEFINED__ */ + + +#ifndef __IStemmer_FWD_DEFINED__ +#define __IStemmer_FWD_DEFINED__ +typedef interface IStemmer IStemmer; + +#endif /* __IStemmer_FWD_DEFINED__ */ + + +#ifndef __ISimpleCommandCreator_FWD_DEFINED__ +#define __ISimpleCommandCreator_FWD_DEFINED__ +typedef interface ISimpleCommandCreator ISimpleCommandCreator; + +#endif /* __ISimpleCommandCreator_FWD_DEFINED__ */ + + +#ifndef __IColumnMapper_FWD_DEFINED__ +#define __IColumnMapper_FWD_DEFINED__ +typedef interface IColumnMapper IColumnMapper; + +#endif /* __IColumnMapper_FWD_DEFINED__ */ + + +#ifndef __IColumnMapperCreator_FWD_DEFINED__ +#define __IColumnMapperCreator_FWD_DEFINED__ +typedef interface IColumnMapperCreator IColumnMapperCreator; + +#endif /* __IColumnMapperCreator_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "filter.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_indexsrv_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0000_v0_0_s_ifspec; + +#ifndef __IPhraseSink_INTERFACE_DEFINED__ +#define __IPhraseSink_INTERFACE_DEFINED__ + +/* interface IPhraseSink */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IPhraseSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CC906FF0-C058-101A-B554-08002B33B0E6") + IPhraseSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE PutSmallPhrase( + /* [size_is][in] */ const WCHAR *pwcNoun, + /* [in] */ ULONG cwcNoun, + /* [size_is][in] */ const WCHAR *pwcModifier, + /* [in] */ ULONG cwcModifier, + /* [in] */ ULONG ulAttachmentType) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutPhrase( + /* [size_is][in] */ const WCHAR *pwcPhrase, + /* [in] */ ULONG cwcPhrase) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPhraseSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPhraseSink * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPhraseSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPhraseSink * This); + + DECLSPEC_XFGVIRT(IPhraseSink, PutSmallPhrase) + HRESULT ( STDMETHODCALLTYPE *PutSmallPhrase )( + IPhraseSink * This, + /* [size_is][in] */ const WCHAR *pwcNoun, + /* [in] */ ULONG cwcNoun, + /* [size_is][in] */ const WCHAR *pwcModifier, + /* [in] */ ULONG cwcModifier, + /* [in] */ ULONG ulAttachmentType); + + DECLSPEC_XFGVIRT(IPhraseSink, PutPhrase) + HRESULT ( STDMETHODCALLTYPE *PutPhrase )( + IPhraseSink * This, + /* [size_is][in] */ const WCHAR *pwcPhrase, + /* [in] */ ULONG cwcPhrase); + + END_INTERFACE + } IPhraseSinkVtbl; + + interface IPhraseSink + { + CONST_VTBL struct IPhraseSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPhraseSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPhraseSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPhraseSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPhraseSink_PutSmallPhrase(This,pwcNoun,cwcNoun,pwcModifier,cwcModifier,ulAttachmentType) \ + ( (This)->lpVtbl -> PutSmallPhrase(This,pwcNoun,cwcNoun,pwcModifier,cwcModifier,ulAttachmentType) ) + +#define IPhraseSink_PutPhrase(This,pwcPhrase,cwcPhrase) \ + ( (This)->lpVtbl -> PutPhrase(This,pwcPhrase,cwcPhrase) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPhraseSink_INTERFACE_DEFINED__ */ + + +#ifndef __IWordSink_INTERFACE_DEFINED__ +#define __IWordSink_INTERFACE_DEFINED__ + +/* interface IWordSink */ +/* [unique][uuid][object][local] */ + +#ifndef _tagWORDREP_BREAK_TYPE_DEFINED +typedef +enum tagWORDREP_BREAK_TYPE + { + WORDREP_BREAK_EOW = 0, + WORDREP_BREAK_EOS = 1, + WORDREP_BREAK_EOP = 2, + WORDREP_BREAK_EOC = 3 + } WORDREP_BREAK_TYPE; + +#define _tagWORDREP_BREAK_TYPE_DEFINED +#define _WORDREP_BREAK_TYPE_DEFINED +#endif + +EXTERN_C const IID IID_IWordSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CC907054-C058-101A-B554-08002B33B0E6") + IWordSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE PutWord( + /* [in] */ ULONG cwc, + /* [size_is][in] */ const WCHAR *pwcInBuf, + /* [in] */ ULONG cwcSrcLen, + /* [in] */ ULONG cwcSrcPos) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutAltWord( + /* [in] */ ULONG cwc, + /* [size_is][in] */ const WCHAR *pwcInBuf, + /* [in] */ ULONG cwcSrcLen, + /* [in] */ ULONG cwcSrcPos) = 0; + + virtual HRESULT STDMETHODCALLTYPE StartAltPhrase( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndAltPhrase( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutBreak( + /* [in] */ WORDREP_BREAK_TYPE breakType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWordSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IWordSink * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IWordSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IWordSink * This); + + DECLSPEC_XFGVIRT(IWordSink, PutWord) + HRESULT ( STDMETHODCALLTYPE *PutWord )( + IWordSink * This, + /* [in] */ ULONG cwc, + /* [size_is][in] */ const WCHAR *pwcInBuf, + /* [in] */ ULONG cwcSrcLen, + /* [in] */ ULONG cwcSrcPos); + + DECLSPEC_XFGVIRT(IWordSink, PutAltWord) + HRESULT ( STDMETHODCALLTYPE *PutAltWord )( + IWordSink * This, + /* [in] */ ULONG cwc, + /* [size_is][in] */ const WCHAR *pwcInBuf, + /* [in] */ ULONG cwcSrcLen, + /* [in] */ ULONG cwcSrcPos); + + DECLSPEC_XFGVIRT(IWordSink, StartAltPhrase) + HRESULT ( STDMETHODCALLTYPE *StartAltPhrase )( + IWordSink * This); + + DECLSPEC_XFGVIRT(IWordSink, EndAltPhrase) + HRESULT ( STDMETHODCALLTYPE *EndAltPhrase )( + IWordSink * This); + + DECLSPEC_XFGVIRT(IWordSink, PutBreak) + HRESULT ( STDMETHODCALLTYPE *PutBreak )( + IWordSink * This, + /* [in] */ WORDREP_BREAK_TYPE breakType); + + END_INTERFACE + } IWordSinkVtbl; + + interface IWordSink + { + CONST_VTBL struct IWordSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWordSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWordSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWordSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWordSink_PutWord(This,cwc,pwcInBuf,cwcSrcLen,cwcSrcPos) \ + ( (This)->lpVtbl -> PutWord(This,cwc,pwcInBuf,cwcSrcLen,cwcSrcPos) ) + +#define IWordSink_PutAltWord(This,cwc,pwcInBuf,cwcSrcLen,cwcSrcPos) \ + ( (This)->lpVtbl -> PutAltWord(This,cwc,pwcInBuf,cwcSrcLen,cwcSrcPos) ) + +#define IWordSink_StartAltPhrase(This) \ + ( (This)->lpVtbl -> StartAltPhrase(This) ) + +#define IWordSink_EndAltPhrase(This) \ + ( (This)->lpVtbl -> EndAltPhrase(This) ) + +#define IWordSink_PutBreak(This,breakType) \ + ( (This)->lpVtbl -> PutBreak(This,breakType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWordSink_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_indexsrv_0000_0002 */ +/* [local] */ + +#ifndef _tagTEXT_SOURCE_DEFINED + +typedef HRESULT ( __stdcall *PFNFILLTEXTBUFFER )( + struct tagTEXT_SOURCE *pTextSource); + +typedef struct tagTEXT_SOURCE + { + PFNFILLTEXTBUFFER pfnFillTextBuffer; + const WCHAR *awcBuffer; + ULONG iEnd; + ULONG iCur; + } TEXT_SOURCE; + +#define _tagTEXT_SOURCE_DEFINED +#define _TEXT_SOURCE_DEFINED +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0002_v0_0_s_ifspec; + +#ifndef __IWordBreaker_INTERFACE_DEFINED__ +#define __IWordBreaker_INTERFACE_DEFINED__ + +/* interface IWordBreaker */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IWordBreaker; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D53552C8-77E3-101A-B552-08002B33B0E6") + IWordBreaker : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Init( + /* [in] */ BOOL fQuery, + /* [in] */ ULONG ulMaxTokenSize, + /* [out] */ BOOL *pfLicense) = 0; + + virtual HRESULT STDMETHODCALLTYPE BreakText( + /* [in] */ TEXT_SOURCE *pTextSource, + /* [in] */ IWordSink *pWordSink, + /* [in] */ IPhraseSink *pPhraseSink) = 0; + + virtual HRESULT STDMETHODCALLTYPE ComposePhrase( + /* [size_is][in] */ const WCHAR *pwcNoun, + /* [in] */ ULONG cwcNoun, + /* [size_is][in] */ const WCHAR *pwcModifier, + /* [in] */ ULONG cwcModifier, + /* [in] */ ULONG ulAttachmentType, + /* [size_is][out] */ WCHAR *pwcPhrase, + /* [out][in] */ ULONG *pcwcPhrase) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLicenseToUse( + /* [string][out] */ const WCHAR **ppwcsLicense) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWordBreakerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IWordBreaker * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IWordBreaker * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IWordBreaker * This); + + DECLSPEC_XFGVIRT(IWordBreaker, Init) + HRESULT ( STDMETHODCALLTYPE *Init )( + IWordBreaker * This, + /* [in] */ BOOL fQuery, + /* [in] */ ULONG ulMaxTokenSize, + /* [out] */ BOOL *pfLicense); + + DECLSPEC_XFGVIRT(IWordBreaker, BreakText) + HRESULT ( STDMETHODCALLTYPE *BreakText )( + IWordBreaker * This, + /* [in] */ TEXT_SOURCE *pTextSource, + /* [in] */ IWordSink *pWordSink, + /* [in] */ IPhraseSink *pPhraseSink); + + DECLSPEC_XFGVIRT(IWordBreaker, ComposePhrase) + HRESULT ( STDMETHODCALLTYPE *ComposePhrase )( + IWordBreaker * This, + /* [size_is][in] */ const WCHAR *pwcNoun, + /* [in] */ ULONG cwcNoun, + /* [size_is][in] */ const WCHAR *pwcModifier, + /* [in] */ ULONG cwcModifier, + /* [in] */ ULONG ulAttachmentType, + /* [size_is][out] */ WCHAR *pwcPhrase, + /* [out][in] */ ULONG *pcwcPhrase); + + DECLSPEC_XFGVIRT(IWordBreaker, GetLicenseToUse) + HRESULT ( STDMETHODCALLTYPE *GetLicenseToUse )( + IWordBreaker * This, + /* [string][out] */ const WCHAR **ppwcsLicense); + + END_INTERFACE + } IWordBreakerVtbl; + + interface IWordBreaker + { + CONST_VTBL struct IWordBreakerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWordBreaker_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWordBreaker_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWordBreaker_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWordBreaker_Init(This,fQuery,ulMaxTokenSize,pfLicense) \ + ( (This)->lpVtbl -> Init(This,fQuery,ulMaxTokenSize,pfLicense) ) + +#define IWordBreaker_BreakText(This,pTextSource,pWordSink,pPhraseSink) \ + ( (This)->lpVtbl -> BreakText(This,pTextSource,pWordSink,pPhraseSink) ) + +#define IWordBreaker_ComposePhrase(This,pwcNoun,cwcNoun,pwcModifier,cwcModifier,ulAttachmentType,pwcPhrase,pcwcPhrase) \ + ( (This)->lpVtbl -> ComposePhrase(This,pwcNoun,cwcNoun,pwcModifier,cwcModifier,ulAttachmentType,pwcPhrase,pcwcPhrase) ) + +#define IWordBreaker_GetLicenseToUse(This,ppwcsLicense) \ + ( (This)->lpVtbl -> GetLicenseToUse(This,ppwcsLicense) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWordBreaker_INTERFACE_DEFINED__ */ + + +#ifndef __IWordFormSink_INTERFACE_DEFINED__ +#define __IWordFormSink_INTERFACE_DEFINED__ + +/* interface IWordFormSink */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IWordFormSink; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fe77c330-7f42-11ce-be57-00aa0051fe20") + IWordFormSink : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE PutAltWord( + /* [size_is][in] */ const WCHAR *pwcInBuf, + /* [in] */ ULONG cwc) = 0; + + virtual HRESULT STDMETHODCALLTYPE PutWord( + /* [size_is][in] */ const WCHAR *pwcInBuf, + /* [in] */ ULONG cwc) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWordFormSinkVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IWordFormSink * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IWordFormSink * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IWordFormSink * This); + + DECLSPEC_XFGVIRT(IWordFormSink, PutAltWord) + HRESULT ( STDMETHODCALLTYPE *PutAltWord )( + IWordFormSink * This, + /* [size_is][in] */ const WCHAR *pwcInBuf, + /* [in] */ ULONG cwc); + + DECLSPEC_XFGVIRT(IWordFormSink, PutWord) + HRESULT ( STDMETHODCALLTYPE *PutWord )( + IWordFormSink * This, + /* [size_is][in] */ const WCHAR *pwcInBuf, + /* [in] */ ULONG cwc); + + END_INTERFACE + } IWordFormSinkVtbl; + + interface IWordFormSink + { + CONST_VTBL struct IWordFormSinkVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWordFormSink_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWordFormSink_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWordFormSink_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWordFormSink_PutAltWord(This,pwcInBuf,cwc) \ + ( (This)->lpVtbl -> PutAltWord(This,pwcInBuf,cwc) ) + +#define IWordFormSink_PutWord(This,pwcInBuf,cwc) \ + ( (This)->lpVtbl -> PutWord(This,pwcInBuf,cwc) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWordFormSink_INTERFACE_DEFINED__ */ + + +#ifndef __IStemmer_INTERFACE_DEFINED__ +#define __IStemmer_INTERFACE_DEFINED__ + +/* interface IStemmer */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IStemmer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("efbaf140-7f42-11ce-be57-00aa0051fe20") + IStemmer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Init( + /* [in] */ ULONG ulMaxTokenSize, + /* [out] */ BOOL *pfLicense) = 0; + + virtual HRESULT STDMETHODCALLTYPE GenerateWordForms( + /* [in] */ const WCHAR *pwcInBuf, + /* [in] */ ULONG cwc, + /* [in] */ IWordFormSink *pStemSink) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLicenseToUse( + /* [string][out] */ const WCHAR **ppwcsLicense) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IStemmerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IStemmer * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IStemmer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IStemmer * This); + + DECLSPEC_XFGVIRT(IStemmer, Init) + HRESULT ( STDMETHODCALLTYPE *Init )( + IStemmer * This, + /* [in] */ ULONG ulMaxTokenSize, + /* [out] */ BOOL *pfLicense); + + DECLSPEC_XFGVIRT(IStemmer, GenerateWordForms) + HRESULT ( STDMETHODCALLTYPE *GenerateWordForms )( + IStemmer * This, + /* [in] */ const WCHAR *pwcInBuf, + /* [in] */ ULONG cwc, + /* [in] */ IWordFormSink *pStemSink); + + DECLSPEC_XFGVIRT(IStemmer, GetLicenseToUse) + HRESULT ( STDMETHODCALLTYPE *GetLicenseToUse )( + IStemmer * This, + /* [string][out] */ const WCHAR **ppwcsLicense); + + END_INTERFACE + } IStemmerVtbl; + + interface IStemmer + { + CONST_VTBL struct IStemmerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IStemmer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IStemmer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IStemmer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IStemmer_Init(This,ulMaxTokenSize,pfLicense) \ + ( (This)->lpVtbl -> Init(This,ulMaxTokenSize,pfLicense) ) + +#define IStemmer_GenerateWordForms(This,pwcInBuf,cwc,pStemSink) \ + ( (This)->lpVtbl -> GenerateWordForms(This,pwcInBuf,cwc,pStemSink) ) + +#define IStemmer_GetLicenseToUse(This,ppwcsLicense) \ + ( (This)->lpVtbl -> GetLicenseToUse(This,ppwcsLicense) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IStemmer_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_indexsrv_0000_0005 */ +/* [local] */ + + + + +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0005_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0005_v0_0_s_ifspec; + +#ifndef __ISimpleCommandCreator_INTERFACE_DEFINED__ +#define __ISimpleCommandCreator_INTERFACE_DEFINED__ + +/* interface ISimpleCommandCreator */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_ISimpleCommandCreator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5e341ab7-02d0-11d1-900c-00a0c9063796") + ISimpleCommandCreator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateICommand( + IUnknown **ppIUnknown, + IUnknown *pOuterUnk) = 0; + + virtual HRESULT STDMETHODCALLTYPE VerifyCatalog( + const WCHAR *pwszMachine, + const WCHAR *pwszCatalogName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefaultCatalog( + WCHAR *pwszCatalogName, + ULONG cwcIn, + ULONG *pcwcOut) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISimpleCommandCreatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + ISimpleCommandCreator * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + ISimpleCommandCreator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + ISimpleCommandCreator * This); + + DECLSPEC_XFGVIRT(ISimpleCommandCreator, CreateICommand) + HRESULT ( STDMETHODCALLTYPE *CreateICommand )( + ISimpleCommandCreator * This, + IUnknown **ppIUnknown, + IUnknown *pOuterUnk); + + DECLSPEC_XFGVIRT(ISimpleCommandCreator, VerifyCatalog) + HRESULT ( STDMETHODCALLTYPE *VerifyCatalog )( + ISimpleCommandCreator * This, + const WCHAR *pwszMachine, + const WCHAR *pwszCatalogName); + + DECLSPEC_XFGVIRT(ISimpleCommandCreator, GetDefaultCatalog) + HRESULT ( STDMETHODCALLTYPE *GetDefaultCatalog )( + ISimpleCommandCreator * This, + WCHAR *pwszCatalogName, + ULONG cwcIn, + ULONG *pcwcOut); + + END_INTERFACE + } ISimpleCommandCreatorVtbl; + + interface ISimpleCommandCreator + { + CONST_VTBL struct ISimpleCommandCreatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISimpleCommandCreator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISimpleCommandCreator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISimpleCommandCreator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISimpleCommandCreator_CreateICommand(This,ppIUnknown,pOuterUnk) \ + ( (This)->lpVtbl -> CreateICommand(This,ppIUnknown,pOuterUnk) ) + +#define ISimpleCommandCreator_VerifyCatalog(This,pwszMachine,pwszCatalogName) \ + ( (This)->lpVtbl -> VerifyCatalog(This,pwszMachine,pwszCatalogName) ) + +#define ISimpleCommandCreator_GetDefaultCatalog(This,pwszCatalogName,cwcIn,pcwcOut) \ + ( (This)->lpVtbl -> GetDefaultCatalog(This,pwszCatalogName,cwcIn,pcwcOut) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISimpleCommandCreator_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_indexsrv_0000_0006 */ +/* [local] */ + +#define CLSID_CISimpleCommandCreator {0xc7b6c04a, 0xcbb5, 0x11d0, {0xbb, 0x4c, 0x0, 0xc0, 0x4f, 0xc2, 0xf4, 0x10 } } +typedef struct tagDBID DBID; + +typedef WORD DBTYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0006_v0_0_s_ifspec; + +#ifndef __IColumnMapper_INTERFACE_DEFINED__ +#define __IColumnMapper_INTERFACE_DEFINED__ + +/* interface IColumnMapper */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IColumnMapper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0b63e37a-9ccc-11d0-bcdb-00805fccce04") + IColumnMapper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPropInfoFromName( + /* [string][in] */ const WCHAR *wcsPropName, + /* [out] */ DBID **ppPropId, + /* [out] */ DBTYPE *pPropType, + /* [out] */ unsigned int *puiWidth) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPropInfoFromId( + /* [in] */ const DBID *pPropId, + /* [out] */ WCHAR **pwcsName, + /* [out] */ DBTYPE *pPropType, + /* [out] */ unsigned int *puiWidth) = 0; + + virtual HRESULT STDMETHODCALLTYPE EnumPropInfo( + /* [in] */ ULONG iEntry, + /* [out] */ const WCHAR **pwcsName, + /* [out] */ DBID **ppPropId, + /* [out] */ DBTYPE *pPropType, + /* [out] */ unsigned int *puiWidth) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsMapUpToDate( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IColumnMapperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IColumnMapper * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IColumnMapper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IColumnMapper * This); + + DECLSPEC_XFGVIRT(IColumnMapper, GetPropInfoFromName) + HRESULT ( STDMETHODCALLTYPE *GetPropInfoFromName )( + IColumnMapper * This, + /* [string][in] */ const WCHAR *wcsPropName, + /* [out] */ DBID **ppPropId, + /* [out] */ DBTYPE *pPropType, + /* [out] */ unsigned int *puiWidth); + + DECLSPEC_XFGVIRT(IColumnMapper, GetPropInfoFromId) + HRESULT ( STDMETHODCALLTYPE *GetPropInfoFromId )( + IColumnMapper * This, + /* [in] */ const DBID *pPropId, + /* [out] */ WCHAR **pwcsName, + /* [out] */ DBTYPE *pPropType, + /* [out] */ unsigned int *puiWidth); + + DECLSPEC_XFGVIRT(IColumnMapper, EnumPropInfo) + HRESULT ( STDMETHODCALLTYPE *EnumPropInfo )( + IColumnMapper * This, + /* [in] */ ULONG iEntry, + /* [out] */ const WCHAR **pwcsName, + /* [out] */ DBID **ppPropId, + /* [out] */ DBTYPE *pPropType, + /* [out] */ unsigned int *puiWidth); + + DECLSPEC_XFGVIRT(IColumnMapper, IsMapUpToDate) + HRESULT ( STDMETHODCALLTYPE *IsMapUpToDate )( + IColumnMapper * This); + + END_INTERFACE + } IColumnMapperVtbl; + + interface IColumnMapper + { + CONST_VTBL struct IColumnMapperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IColumnMapper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IColumnMapper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IColumnMapper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IColumnMapper_GetPropInfoFromName(This,wcsPropName,ppPropId,pPropType,puiWidth) \ + ( (This)->lpVtbl -> GetPropInfoFromName(This,wcsPropName,ppPropId,pPropType,puiWidth) ) + +#define IColumnMapper_GetPropInfoFromId(This,pPropId,pwcsName,pPropType,puiWidth) \ + ( (This)->lpVtbl -> GetPropInfoFromId(This,pPropId,pwcsName,pPropType,puiWidth) ) + +#define IColumnMapper_EnumPropInfo(This,iEntry,pwcsName,ppPropId,pPropType,puiWidth) \ + ( (This)->lpVtbl -> EnumPropInfo(This,iEntry,pwcsName,ppPropId,pPropType,puiWidth) ) + +#define IColumnMapper_IsMapUpToDate(This) \ + ( (This)->lpVtbl -> IsMapUpToDate(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IColumnMapper_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_indexsrv_0000_0007 */ +/* [local] */ + +#define LOCAL_MACHINE ( L"." ) + +#define SYSTEM_DEFAULT_CAT ( L"__SystemDefault__" ) + +#define INDEX_SERVER_DEFAULT_CAT ( L"__IndexServerDefault__" ) + + + +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0007_v0_0_s_ifspec; + +#ifndef __IColumnMapperCreator_INTERFACE_DEFINED__ +#define __IColumnMapperCreator_INTERFACE_DEFINED__ + +/* interface IColumnMapperCreator */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IColumnMapperCreator; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0b63e37b-9ccc-11d0-bcdb-00805fccce04") + IColumnMapperCreator : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetColumnMapper( + /* [string][in] */ const WCHAR *wcsMachineName, + /* [string][in] */ const WCHAR *wcsCatalogName, + /* [out] */ IColumnMapper **ppColumnMapper) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IColumnMapperCreatorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IColumnMapperCreator * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IColumnMapperCreator * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IColumnMapperCreator * This); + + DECLSPEC_XFGVIRT(IColumnMapperCreator, GetColumnMapper) + HRESULT ( STDMETHODCALLTYPE *GetColumnMapper )( + IColumnMapperCreator * This, + /* [string][in] */ const WCHAR *wcsMachineName, + /* [string][in] */ const WCHAR *wcsCatalogName, + /* [out] */ IColumnMapper **ppColumnMapper); + + END_INTERFACE + } IColumnMapperCreatorVtbl; + + interface IColumnMapperCreator + { + CONST_VTBL struct IColumnMapperCreatorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IColumnMapperCreator_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IColumnMapperCreator_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IColumnMapperCreator_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IColumnMapperCreator_GetColumnMapper(This,wcsMachineName,wcsCatalogName,ppColumnMapper) \ + ( (This)->lpVtbl -> GetColumnMapper(This,wcsMachineName,wcsCatalogName,ppColumnMapper) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IColumnMapperCreator_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_indexsrv_0000_0008 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_indexsrv_0000_0008_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/infocard.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/infocard.h new file mode 100644 index 0000000000000000000000000000000000000000..b07850136f236da2fbdfd0784df3ac23e46a33ca --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/infocard.h @@ -0,0 +1,471 @@ +//----------------------------------------------------------------------------- +// Copyright (c) Microsoft Corporation. All rights reserved. +//----------------------------------------------------------------------------- +#pragma once + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#define CARDSPACECALL __stdcall + +typedef enum _HandleType +{ + Asymmetric = 1, + Symmetric = 2, + Transform = 3, + Hash = 4 +} HandleType; + + +// This enum represents the padding method to use for filling out short blocks. +// "None" means no padding (whole blocks required). +// "PKCS7" is the padding mode defined in RFC 2898, Section 6.1.1, Step 4, generalized +// to whatever block size is required. +// "Zeros" means pad with zero bytes to fill out the last block. +// "ISO 10126" is the same as PKCS5 except that it fills the bytes before the last one with +// random bytes. "ANSI X.923" fills the bytes with zeros and puts the number of padding +// bytes in the last byte. + +typedef enum _PaddingMode +{ + None = 1, + PKCS7 = 2, + Zeros = 3, + ANSIX923 = 4, + ISO10126 = 5 +} PaddingMode; + +typedef enum _Direction +{ + DirectionEncrypt = 1, + DirectionDecrypt = 2 +} Direction; + +// +// Parameter structs. +// +typedef struct _INFORMATIONCARD_ASYMMETRIC_CRYPTO_PARAMETERS +{ + int keySize; + LPWSTR keyExchangeAlgorithm; + LPWSTR signatureAlgorithm; +} INFORMATIONCARD_ASYMMETRIC_CRYPTO_PARAMETERS, *PINFORMATIONCARD_ASYMMETRIC_CRYPTO_PARAMETERS; + +typedef struct _INFORMATIONCARD_SYMMETRIC_CRYPTO_PARAMETERS +{ + int keySize; + int blockSize; + int feedbackSize; +} INFORMATIONCARD_SYMMETRIC_CRYPTO_PARAMETERS, *PINFORMATIONCARD_SYMMETRIC_CRYPTO_PARAMETERS; + +typedef struct _INFORMATIONCARD_TRANSFORM_CRYPTO_PARAMETERS +{ + int inputBlockSize; + int outputBlockSize; + BOOL canTransformMultipleBlocks; + BOOL canReuseTransform; +} INFORMATIONCARD_TRANSFORM_CRYPTO_PARAMETERS, *PINFORMATIONCARD_TRANSFORM_CRYPTO_PARAMETERS; + +typedef struct _INFORMATIONCARD_HASH_CRYPTO_PARAMETERS +{ + int hashSize; + INFORMATIONCARD_TRANSFORM_CRYPTO_PARAMETERS transform; +} INFORMATIONCARD_HASH_CRYPTO_PARAMETERS, *PINFORMATIONCARD_HASH_CRYPTO_PARAMETERS; + + +typedef struct _INFORMATIONCARD_CRYPTO_HANDLE +{ + HandleType type; + LONGLONG expiration; + // + // points to the appropriate parameter struct above depending on the type. + // + PVOID cryptoParameters; +} INFORMATIONCARD_CRYPTO_HANDLE, *PINFORMATIONCARD_CRYPTO_HANDLE; + +// +// Infomation associated with a request for a security token +// +#pragma pack(1) +typedef struct _GENERIC_XML_TOKEN +{ + + FILETIME createDate; + FILETIME expiryDate; + LPWSTR xmlToken; + LPWSTR internalTokenReference; + LPWSTR externalTokenReference; + + +} GENERIC_XML_TOKEN,*PGENERIC_XML_TOKEN; + +#pragma pack() + +typedef struct _POLICY_ELEMENT +{ + LPCWSTR targetEndpointAddress; + LPCWSTR issuerEndpointAddress; + LPCWSTR issuedTokenParameters; + LPCWSTR privacyNoticeLink; + DWORD privacyNoticeVersion; + BOOL useManagedPresentation; +} POLICY_ELEMENT, *PPOLICY_ELEMENT; + +typedef struct _ENDPOINTADDRESS +{ + LPCWSTR serviceUrl; + LPCWSTR policyUrl; + DATA_BLOB rawCertificate; +}ENDPOINTADDRESS, *PENDPOINTADDRESS; + +typedef struct _ENDPOINTADDRESS2 +{ + LPCWSTR serviceUrl; + LPCWSTR policyUrl; + DWORD identityType; + PVOID identityBytes; +}ENDPOINTADDRESS2, *PENDPOINTADDRESS2; + +typedef struct _CERTIFICATE_CHAIN_BLOB +{ + DWORD certCount; + DATA_BLOB* rawCertificates; +}CERTIFICATE_CHAIN_BLOB, *PCERTIFICATE_CHAIN_BLOB; + +typedef struct _CLAIMLIST +{ + DWORD count; + LPCWSTR* claims; +}CLAIMLIST, *PCLAIMLIST; + +typedef struct _RECIPIENTPOLICY +{ + ENDPOINTADDRESS recipient; + ENDPOINTADDRESS issuer; + LPCWSTR tokenType; + CLAIMLIST requiredClaims; + CLAIMLIST optionalClaims; + LPCWSTR privacyUrl; + UINT privacyVersion; +}RECIPIENTPOLICY, *PRECIPIENTPOLICY; + +typedef struct _RECIPIENTPOLICY2 +{ + ENDPOINTADDRESS2 recipient; + ENDPOINTADDRESS2 issuer; + LPCWSTR tokenType; + CLAIMLIST requiredClaims; + CLAIMLIST optionalClaims; + LPCWSTR privacyUrl; + UINT privacyVersion; +}RECIPIENTPOLICY2, *PRECIPIENTPOLICY2; + +#define RECIPIENTPOLICYV1 1 +#define RECIPIENTPOLICYV2 2 + +HRESULT +CARDSPACECALL GetToken( + __in DWORD cPolicyChain, + __in_ecount( cPolicyChain ) PPOLICY_ELEMENT pPolicyChain, + __deref_out PGENERIC_XML_TOKEN* securityToken, + __deref_out PINFORMATIONCARD_CRYPTO_HANDLE* phProofTokenCrypto ); + +HRESULT +CARDSPACECALL +ManageCardSpace(); + +HRESULT +CARDSPACECALL +ImportInformationCard( __in LPCWSTR fileName ); + +HRESULT +CARDSPACECALL Encrypt( + __in PINFORMATIONCARD_CRYPTO_HANDLE hCrypto, + __in BOOL fOAEP, + __in DWORD cbInData, + __in_bcount( cbInData ) PBYTE pInData, + __out DWORD *pcbOutData, + __out_bcount( *pcbOutData ) PBYTE* ppOutData ); + +HRESULT +CARDSPACECALL Decrypt( + __in PINFORMATIONCARD_CRYPTO_HANDLE hCrypto, + __in BOOL fOAEP, + __in DWORD cbInData, + __in_bcount( cbInData )PBYTE pInData, + __out DWORD* pcbOutData, + __out_bcount( *pcbOutData ) PBYTE* ppOutData ); + +HRESULT +CARDSPACECALL SignHash( + __in PINFORMATIONCARD_CRYPTO_HANDLE hCrypto, + __in DWORD cbHash, + __in_bcount( cbHash ) PBYTE pHash, + __in LPCWSTR hashAlgOid, + __out DWORD* pcbSig, + __out_bcount( *pcbSig ) PBYTE* ppSig ); + +HRESULT +CARDSPACECALL VerifyHash( + __in PINFORMATIONCARD_CRYPTO_HANDLE hCrypto, + __in DWORD cbHash, + __in_bcount( cbHash ) BYTE* pHash, + __in LPCWSTR hashAlgOid, + __in DWORD cbSig, + __in_bcount( cbSig ) BYTE* pSig, + __out BOOL* pfVerified ); + +HRESULT +CARDSPACECALL GetCryptoTransform( + __in PINFORMATIONCARD_CRYPTO_HANDLE hSymmetricCrypto, + __in DWORD mode, + __in PaddingMode padding, + __in DWORD feedbackSize, + __in Direction direction, + __in DWORD cbIV, + __in_bcount( cbIV ) BYTE* pIV, + __deref_out PINFORMATIONCARD_CRYPTO_HANDLE* pphTransform ); + +HRESULT +CARDSPACECALL GetKeyedHash( + __in PINFORMATIONCARD_CRYPTO_HANDLE hSymmetricCrypto, + __deref_out PINFORMATIONCARD_CRYPTO_HANDLE* pphHash ); + +HRESULT +CARDSPACECALL TransformBlock( + __in PINFORMATIONCARD_CRYPTO_HANDLE hCrypto, + __in DWORD cbInData, + __in_bcount( cbInData ) PBYTE pInData, + __out DWORD* pcbOutData, + __out_bcount( *pcbOutData ) PBYTE* ppOutData ); + +HRESULT +CARDSPACECALL TransformFinalBlock( + __in PINFORMATIONCARD_CRYPTO_HANDLE hCrypto, + __in DWORD cbInData, + __in_bcount( cbInData ) PBYTE pInData, + __out DWORD* pcbOutData, + __out_bcount( *pcbOutData ) PBYTE* ppOutData ); + +HRESULT +CARDSPACECALL HashCore( + __in PINFORMATIONCARD_CRYPTO_HANDLE hCrypto, + __in DWORD cbInData, + __in_bcount( cbInData ) PBYTE pInData ); + +HRESULT +CARDSPACECALL HashFinal( + __in PINFORMATIONCARD_CRYPTO_HANDLE hCrypto, + __in DWORD cbInData, + __in_bcount( cbInData ) PBYTE pInData, + __out DWORD* pcbOutData, + __out_bcount( *pcbOutData ) PBYTE* ppOutData ); + +BOOL +CARDSPACECALL FreeToken( __in PGENERIC_XML_TOKEN pAllocMemory ); + +HRESULT +CARDSPACECALL CloseCryptoHandle( __in PINFORMATIONCARD_CRYPTO_HANDLE hCrypto ); + +HRESULT +CARDSPACECALL GenerateDerivedKey( + __in PINFORMATIONCARD_CRYPTO_HANDLE hCrypto, + __in DWORD cbLabel, + __in_bcount( cbLabel ) PBYTE pLabel, + __in DWORD cbNonce, + __in_bcount( cbNonce ) PBYTE pNonce, + __in DWORD derivedKeyLength, + __in DWORD offset, + __in LPCWSTR algId, + __out DWORD* pcbKey, + __out_bcount( *pcbKey ) PBYTE* ppKey ); + +HRESULT +CARDSPACECALL GetBrowserToken( + __in DWORD dwParamType, + __in PVOID pParam, + __out_opt DWORD* pcbToken, + __out_bcount_opt(*pcbToken) PBYTE* ppToken ); + +#ifdef __cplusplus +} +#endif + + +#ifndef E_ICARD_COMMUNICATION +#define E_ICARD_COMMUNICATION ((HRESULT)0xC0050100L) +#endif + + +#ifndef E_ICARD_DATA_ACCESS +#define E_ICARD_DATA_ACCESS ((HRESULT)0xC0050101L) +#endif + + +#ifndef E_ICARD_EXPORT +#define E_ICARD_EXPORT ((HRESULT)0xC0050102L) +#endif + + +#ifndef E_ICARD_IDENTITY +#define E_ICARD_IDENTITY ((HRESULT)0xC0050103L) +#endif + + +#ifndef E_ICARD_IMPORT +#define E_ICARD_IMPORT ((HRESULT)0xC0050104L) +#endif + + +#ifndef E_ICARD_ARGUMENT +#define E_ICARD_ARGUMENT ((HRESULT)0xC0050105L) +#endif + + +#ifndef E_ICARD_REQUEST +#define E_ICARD_REQUEST ((HRESULT)0xC0050106L) +#endif + + +#ifndef E_ICARD_INFORMATIONCARD +#define E_ICARD_INFORMATIONCARD ((HRESULT)0xC0050107L) +#endif + + +#ifndef E_ICARD_STOREKEY +#define E_ICARD_STOREKEY ((HRESULT)0xC0050108L) +#endif + + +#ifndef E_ICARD_LOGOVALIDATION +#define E_ICARD_LOGOVALIDATION ((HRESULT)0xC0050109L) +#endif + + +#ifndef E_ICARD_PASSWORDVALIDATION +#define E_ICARD_PASSWORDVALIDATION ((HRESULT)0xC005010AL) +#endif + + +#ifndef E_ICARD_POLICY +#define E_ICARD_POLICY ((HRESULT)0xC005010BL) +#endif + + +#ifndef E_ICARD_PROCESSDIED +#define E_ICARD_PROCESSDIED ((HRESULT)0xC005010CL) +#endif + + +#ifndef E_ICARD_SERVICEBUSY +#define E_ICARD_SERVICEBUSY ((HRESULT)0xC005010DL) +#endif + + +#ifndef E_ICARD_SERVICE +#define E_ICARD_SERVICE ((HRESULT)0xC005010EL) +#endif + + +#ifndef E_ICARD_SHUTTINGDOWN +#define E_ICARD_SHUTTINGDOWN ((HRESULT)0xC005010FL) +#endif + + +#ifndef E_ICARD_TOKENCREATION +#define E_ICARD_TOKENCREATION ((HRESULT)0xC0050110L) +#endif + + +#ifndef E_ICARD_TRUSTEXCHANGE +#define E_ICARD_TRUSTEXCHANGE ((HRESULT)0xC0050111L) +#endif + + +#ifndef E_ICARD_UNTRUSTED +#define E_ICARD_UNTRUSTED ((HRESULT)0xC0050112L) +#endif + + +#ifndef E_ICARD_USERCANCELLED +#define E_ICARD_USERCANCELLED ((HRESULT)0xC0050113L) +#endif + + +#ifndef E_ICARD_STORE_IMPORT +#define E_ICARD_STORE_IMPORT ((HRESULT)0xC0050114L) +#endif + + +#ifndef E_ICARD_FAIL +#define E_ICARD_FAIL ((HRESULT)0xC0050115L) +#endif + + +#ifndef E_ICARD_UI_INITIALIZATION +#define E_ICARD_UI_INITIALIZATION ((HRESULT)0xC005011AL) +#endif + +#ifndef E_ICARD_REFRESH_REQUIRED +#define E_ICARD_REFRESH_REQUIRED ((HRESULT)0xC0050180L) +#endif + + +#ifndef E_ICARD_MISSING_APPLIESTO +#define E_ICARD_MISSING_APPLIESTO ((HRESULT)0xC0050181L) +#endif + + +#ifndef E_ICARD_INVALID_PROOF_KEY +#define E_ICARD_INVALID_PROOF_KEY ((HRESULT)0xC0050182L) +#endif + + +#ifndef E_ICARD_UNKNOWN_REFERENCE +#define E_ICARD_UNKNOWN_REFERENCE ((HRESULT)0xC0050183L) +#endif + + +#ifndef E_ICARD_FAILED_REQUIRED_CLAIMS +#define E_ICARD_FAILED_REQUIRED_CLAIMS ((HRESULT)0xC0050184L) +#endif + + +#ifndef AUDIT_CARD_WRITTEN +#define AUDIT_CARD_WRITTEN ((HRESULT)0x40050200L) +#endif + + +#ifndef AUDIT_CARD_DELETE +#define AUDIT_CARD_DELETE ((HRESULT)0x40050201L) +#endif + + +#ifndef AUDIT_CARD_IMPORT +#define AUDIT_CARD_IMPORT ((HRESULT)0x40050202L) +#endif + + +#ifndef AUDIT_STORE_IMPORT +#define AUDIT_STORE_IMPORT ((HRESULT)0x40050203L) +#endif + + +#ifndef AUDIT_STORE_EXPORT +#define AUDIT_STORE_EXPORT ((HRESULT)0x40050204L) +#endif + + +#ifndef AUDIT_STORE_DELETE +#define AUDIT_STORE_DELETE ((HRESULT)0x40050205L) +#endif + +#ifndef AUDIT_SERVICE_IDLE_STOP +#define AUDIT_SERVICE_IDLE_STOP ((HRESULT)0x40050206L) +#endif diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/infotech.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/infotech.h new file mode 100644 index 0000000000000000000000000000000000000000..83ce06fff2ff13467136019d603b276540f26808 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/infotech.h @@ -0,0 +1,700 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#ifndef __INFOTECH_H__ +#define __INFOTECH_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include +#include + + +// {1F403BB1-9997-11d0-A850-00AA006C7D01} +DEFINE_GUID(IID_IITPropList, +0x1f403bb1, 0x9997, 0x11d0, 0xa8, 0x50, 0x0, 0xaa, 0x0, 0x6c, 0x7d, 0x1); + +// {4662daae-d393-11d0-9a56-00c04fb68bf7} +DEFINE_GUID(CLSID_IITPropList, +0x4662daae, 0xd393, 0x11d0, 0x9a, 0x56, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +typedef DWORD PROPID; + +// Operations you can do on a property +#define PROP_ADD 0x00000000 +#define PROP_DELETE 0x00000001 +#define PROP_UPDATE 0x00000002 + +// Type of data +#define TYPE_VALUE 0x00000000 +#define TYPE_POINTER 0x00000001 +#define TYPE_STRING 0x00000002 + +// Class definition of CProperty +class CProperty +{ +public: + PROPID dwPropID; // property ID + DWORD cbData; // Amount of data + DWORD dwType; // What type this is + union + { + LPWSTR lpszwData; // String + LPVOID lpvData; // Any kind of data + DWORD dwValue; // Numerical data + }; + BOOL fPersist; // TRUE to persist this property + +}; + +typedef CProperty* LPPROP; + + +// Interface def. for IITPropList +DECLARE_INTERFACE_(IITPropList, IPersistStreamInit) +{ + + // dwOperation = operation (add, delete, update, etc.) to perform on property list + STDMETHOD(Set)(PROPID PropID, DWORD dwData, DWORD dwOperation) PURE; + STDMETHOD(Set)(PROPID PropID, LPVOID lpvData, DWORD cbData, DWORD dwOperation) PURE; + STDMETHOD(Set)(PROPID PropID, LPCWSTR lpszwString, DWORD dwOperation) PURE; + STDMETHOD(Add)(CProperty& Prop) PURE; + + STDMETHOD(Get)(PROPID PropID, CProperty& Property) PURE; + STDMETHOD(Clear)() PURE; + + // set persistence state on property + STDMETHOD(SetPersist)(PROPID PropID, BOOL fPersist) PURE; // single property + STDMETHOD(SetPersist)(BOOL fPersist) PURE; // all properties in list + + // for enumerating properties + STDMETHOD(GetFirst)(CProperty& Property) PURE; + STDMETHOD(GetNext)(CProperty& Property) PURE; + STDMETHOD(GetPropCount)(LONG &cProp) PURE; + + // persist header and data separately + STDMETHOD(SaveHeader)(LPVOID lpvData, DWORD dwHdrSize) PURE; + STDMETHOD(SaveData)(LPVOID lpvHeader, DWORD dwHdrSize, LPVOID lpvData, DWORD dwBufSize) PURE; + STDMETHOD(GetHeaderSize)(DWORD& dwHdrSize) PURE; + STDMETHOD(GetDataSize)(LPVOID lpvHeader, DWORD dwHdrSize, DWORD& dwDataSize) PURE; + STDMETHOD(SaveDataToStream)(LPVOID lpvHeader, DWORD dwHdrSize, IStream* pStream) PURE; + + // persist to a memory buffer + STDMETHOD(LoadFromMem)(LPVOID lpvData, DWORD dwBufSize) PURE; + STDMETHOD(SaveToMem)(LPVOID lpvData, DWORD dwBufSize) PURE; + +}; + +typedef IITPropList* LPITPROPLIST; + + +// {8fa0d5a2-dedf-11d0-9a61-00c04fb68bf7} (changed from IT 3.0) +DEFINE_GUID(IID_IITDatabase, +0x8fa0d5a2, 0xdedf, 0x11d0, 0x9a, 0x61, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +#ifdef ITPROXY + +// {66673452-8C23-11d0-A84E-00AA006C7D01} +DEFINE_GUID(CLSID_IITDatabase, +0x66673452, 0x8c23, 0x11d0, 0xa8, 0x4e, 0x0, 0xaa, 0x0, 0x6c, 0x7d, 0x1); + +#else + +// {4662daa9-d393-11d0-9a56-00c04fb68bf7} (changed from IT 3.0) +DEFINE_GUID(CLSID_IITDatabaseLocal, +0x4662daa9, 0xd393, 0x11d0, 0x9a, 0x56, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +#endif // ITPROXY + + +// This value is invalid for dwObjInstance params in IITDatabase methods. +#define IITDB_OBJINST_NULL ((DWORD) 0xFFFFFFFF) + + +DECLARE_INTERFACE_(IITDatabase, IUnknown) +{ + STDMETHOD(Open)(LPCWSTR lpszHost, LPCWSTR lpszMoniker, DWORD dwFlags) PURE; + STDMETHOD(Close)(void) PURE; + + // Creates an unnamed object that can be referenced in the future + // by *pdwObjInstance. Note that the value in *pdwObjInstance will be + // persisted by the database when it is asked to save + + STDMETHOD(CreateObject)(REFCLSID rclsid, DWORD *pdwObjInstance) PURE; + + // Retrieves a specified IUnknown-based interface on the object identified + // by dwObjInstance. + STDMETHOD(GetObject)(DWORD dwObjInstance, REFIID riid, LPVOID *ppvObj) PURE; + + // To obtain a pointer to a named object's persistence the object's full + // name (including any object-specific type prefix) should be passed in + // lpswszObject. If *lpwszObject is NULL, then the database's own storage + // will be returned. If lpwszObject is NULL, then dwObjInstance will be + // used to identify the object and locate its persistence. On exit, + // *ppvPersistence will be either an IStorage* or an IStream*, depending + // on what the caller specified with the fStream param. The caller should + // assume that only read operations can be performed on *ppvPersistence. + // If the specified object's persistence doesn't exist, or if it exists + // but is of the wrong type, then STG_E_FILENOTFOUND will be returned. + STDMETHOD(GetObjectPersistence)(LPCWSTR lpwszObject, DWORD dwObjInstance, + LPVOID *ppvPersistence, BOOL fStream) PURE; +}; + +typedef IITDatabase* LPITDB; + +// Document property macros +#define STDPROP_UID 1 +#define STDPROP_TITLE 2 +#define STDPROP_USERDATA 3 +#define STDPROP_KEY 4 + +#define STDPROP_SORTKEY 100 +#define STDPROP_DISPLAYKEY 101 +#define STDPROP_SORTORDINAL 102 + +#define STDPROP_INDEX_TEXT 200 +#define STDPROP_INDEX_VFLD 201 +#define STDPROP_INDEX_DTYPE 202 +#define STDPROP_INDEX_LENGTH 203 +#define STDPROP_INDEX_BREAK 204 + +#define STDPROP_INDEX_TERM 210 +#define STDPROP_INDEX_TERM_RAW_LENGTH 211 + +#define STDPROP_USERPROP_BASE 0x00010000 +#define STDPROP_USERPROP_MAX 0x7FFFFFFF + +// Property destinations for word wheels +#define SZ_WWDEST_GLOBAL L"GLOBAL" +#define SZ_WWDEST_KEY L"KEY" +#define SZ_WWDEST_OCC L"OCC" + + +// {4662daa2-d393-11d0-9a56-00c04fb68bf7} +DEFINE_GUID(CLSID_IITCmdInt, +0x4662daa2, 0xd393, 0x11d0, 0x9a, 0x56, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +// {4662daa3-d393-11d0-9a56-00c04fb68bf7} +DEFINE_GUID(CLSID_IITSvMgr, +0x4662daa3, 0xd393, 0x11d0, 0x9a, 0x56, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +// {4CF34C30-9BF9-11d0-8764-00A0C913F764} +DEFINE_GUID(IID_IITCmdInt, +0x4cf34c30, 0x9bf9, 0x11d0, 0x87, 0x64, 0x0, 0xa0, 0xc9, 0x13, 0xf7, 0x64); + +// {4E7DA031-9C11-11d0-8764-00A0C913F764} +DEFINE_GUID(IID_IITSvMgr, +0x4e7da031, 0x9c11, 0x11d0, 0x87, 0x64, 0x0, 0xa0, 0xc9, 0x13, 0xf7, 0x64); + +// {4662daa5-d393-11d0-9a56-00c04fb68bf7} +DEFINE_GUID(CLSID_IITWordWheelUpdate, +0x4662daa5, 0xd393, 0x11d0, 0x9a, 0x56, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +// {8fa0d5a5-dedf-11d0-9a61-00c04fb68bf7} +DEFINE_GUID(IID_IITBuildCollect, +0x8fa0d5a5, 0xdedf, 0x11d0, 0x9a, 0x61, 0x0, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +// {4662daa4-d393-11d0-9a56-00c04fb68bf7} +DEFINE_GUID(CLSID_IITGroupUpdate, +0x4662daa4, 0xd393, 0x11d0, 0x9a, 0x56, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +// {8fa0d5aa-dedf-11d0-9a61-00c04fb68bf7} +DEFINE_GUID(CLSID_IITIndexBuild, +0x8fa0d5aa, 0xdedf, 0x11d0, 0x9a, 0x61, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +// {8fa0d5ab-dedf-11d0-9a61-00c04fb68bf7} +DEFINE_GUID(CLSID_IITWWFilterBuild, +0x8fa0d5ab, 0xdedf, 0x11d0, 0x9a, 0x61, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + + +// Word Breaker Defines: + +// {8fa0d5a4-dedf-11d0-9a61-00c04fb68bf7} +DEFINE_GUID(IID_IITWordWheel, +0x8fa0d5a4, 0xdedf, 0x11d0, 0x9a, 0x61, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +#ifdef ITPROXY + +// {D73725C2-8C12-11d0-A84E-00AA006C7D01} +DEFINE_GUID(CLSID_IITWordWheel, +0xd73725c2, 0x8c12, 0x11d0, 0xa8, 0x4e, 0x0, 0xaa, 0x0, 0x6c, 0x7d, 0x1); + +#else + +// {4662daa8-d393-11d0-9a56-00c04fb68bf7} +DEFINE_GUID(CLSID_IITWordWheelLocal, +0x4662daa8, 0xd393, 0x11d0, 0x9a, 0x56, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +#endif // ITPROXY + +// Word-wheel open flags +#define ITWW_OPEN_CONNECT 0x00000000 // connect to server on open (the default) +#define ITWW_OPEN_NOCONNECT 0x00000001 // don't connect to server on open + +// Constants for IITWordWheel::Lookup. +#define ITWW_CBKEY_MAX 1024 // Max size of keys allowed in Word Wheels. + +// Forward declarations +interface IITDatabase; +interface IITResultSet; +interface IITGroup; +interface IITPropList; +interface IITQuery; + +DECLARE_INTERFACE_(IITWordWheel, IUnknown) +{ + + STDMETHOD(Open)(IITDatabase* lpITDB, LPCWSTR lpszMoniker, DWORD dwFlags=0) PURE; + STDMETHOD(Close)(void) PURE; + + // Returns the code page ID and locale ID that the word wheel was built and + // sorted with. + STDMETHOD(GetLocaleInfo)(DWORD *pdwCodePageID, LCID *plcid) PURE; + + // Returns in *pdwObjInstance the ID of the external sort instance being used by + // this word wheel. The instance ID can be passed to IITDatabase::GetObject to + // to obtain an interface pointer on the instantiated instance. If the word + // wheel doesn't use external sorting, then IITDB_OBJINST_NULL. + STDMETHOD(GetSorterInstance)(DWORD *pdwObjInstance) PURE; + + STDMETHOD(Count)(LONG *pcEntries) PURE; + + // To be safe, the length of lpvKeyBuf should always be at least ITWW_CBKEY_MAX. + STDMETHOD(Lookup)(LONG lEntry, LPVOID lpvKeyBuf, DWORD cbKeyBuf) PURE; + STDMETHOD(Lookup)(LONG lEntry, IITResultSet* lpITResult, LONG cEntries) PURE; + STDMETHOD(Lookup)(LPCVOID lpcvPrefix, BOOL fExactMatch, LONG *plEntry) PURE; + + STDMETHOD(SetGroup)(IITGroup* piitGroup) PURE; + STDMETHOD(GetGroup)(IITGroup** ppiitGroup) PURE; + + STDMETHOD(GetDataCount)(LONG lEntry, DWORD *pdwCount) PURE; + STDMETHOD(GetData)(LONG lEntry, IITResultSet* lpITResult) PURE; + STDMETHOD(GetDataColumns)(IITResultSet* pRS) PURE; +}; + +typedef IITWordWheel* LPITWORDWHEEL; + + +// IWordBreaker, IWordSink, IPhraseSink, IStem + +#ifndef __IStemSink_FWD_DEFINED__ +#define __IStemSink_FWD_DEFINED__ +typedef interface IStemSink IStemSink; +#endif /* __IStemSink_FWD_DEFINED__ */ + + +#ifndef __IStemmer_FWD_DEFINED__ +#define __IStemmer_FWD_DEFINED__ +typedef interface IStemmer IStemmer; +#endif /* __IStemmer_FWD_DEFINED__ */ + + +#ifndef __IStemmerConfig_FWD_DEFINED__ +#define __IStemmerConfig_FWD_DEFINED__ +typedef interface IStemmerConfig IStemmerConfig; +#endif /* __IStemmerConfig_FWD_DEFINED__ */ + + +DECLARE_INTERFACE_(IStemmer, IUnknown) +{ + STDMETHOD(Init)(ULONG ulMaxTokenSize, BOOL *pfLicense) PURE; + STDMETHOD(GetLicenseToUse)(WCHAR const **ppwcsLicense) PURE; + STDMETHOD(StemWord)(WCHAR const *pwcInBuf, ULONG cwc, + IStemSink *pStemSink) PURE; +}; + +typedef IStemmer *PISTEM; + + +DECLARE_INTERFACE_(IStemSink, IUnknown) +{ + STDMETHOD(PutAltWord)(WCHAR const *pwcInBuf, ULONG cwc) PURE; + STDMETHOD(PutWord)(WCHAR const *pwcInBuf, ULONG cwc) PURE; +}; + +typedef IStemSink *PISTEMSNK; + + +DECLARE_INTERFACE_(IStemmerConfig, IUnknown) +{ + // Sets/gets locale info that will affect the stemming + // behavior of IStemmer::StemWord. + // Returns S_OK if locale described by params is supported + // by the breaker object; E_INVALIDARG otherwise. + STDMETHOD(SetLocaleInfo)(DWORD dwCodePageID, LCID lcid) PURE; + STDMETHOD(GetLocaleInfo)(DWORD *pdwCodePageID, LCID *plcid) PURE; + + // Sets/gets info that controls certain aspects of stemming. + // This method currently accepts only the following set of flags + // in grfStemFlags: + // In the future, additional information may be passed in through + // dwReserved. + STDMETHOD(SetControlInfo)(DWORD grfStemFlags, DWORD dwReserved) PURE; + STDMETHOD(GetControlInfo)(DWORD *pgrfStemFlags, DWORD *pdwReserved) PURE; + + // Will load external stemmer data, such as word part lists, etc. + // The format of the data in the stream is entirely + // implementation-specific. + STDMETHOD(LoadExternalStemmerData)(IStream *pStream, + DWORD dwExtDataType) PURE; +}; + +typedef IStemmerConfig *PISTEMC; + + +#ifndef __IPhraseSink_FWD_DEFINED__ +#define __IPhraseSink_FWD_DEFINED__ +typedef interface IPhraseSink IPhraseSink; +#endif /* __IPhraseSink_FWD_DEFINED__ */ + + +#ifndef __IWordSink_FWD_DEFINED__ +#define __IWordSink_FWD_DEFINED__ +typedef interface IWordSink IWordSink; +#endif /* __IWordSink_FWD_DEFINED__ */ + + +#ifndef __IWordBreaker_FWD_DEFINED__ +#define __IWordBreaker_FWD_DEFINED__ +typedef interface IWordBreaker IWordBreaker; +#endif /* __IWordBreaker_FWD_DEFINED__ */ + + +#ifndef __IWordBreakerConfig_FWD_DEFINED__ +#define __IWordBreakerConfig_FWD_DEFINED__ +typedef interface IWordBreakerConfig IWordBreakerConfig; +#endif /* __IWordBreakerConfig_FWD_DEFINED__ */ + + +#ifndef __IITStopWordList_FWD_DEFINED__ +#define __IITStopWordList_FWD_DEFINED__ +typedef interface IITStopWordList IITStopWordList; +#endif /* __IITStopWordList_FWD_DEFINED__ */ + + +// Supporting definitions for IWordBreaker. +typedef struct tagTEXT_SOURCE TEXT_SOURCE; +typedef SCODE (__stdcall *PFNFILLTEXTBUFFER)(TEXT_SOURCE *pTextSource); + +typedef struct tagTEXT_SOURCE +{ + PFNFILLTEXTBUFFER pfnFillTextBuffer; + WCHAR *awcBuffer; + ULONG iEnd; + ULONG iCur; +} TEXT_SOURCE; + + +DECLARE_INTERFACE_(IWordBreaker, IUnknown) +{ + STDMETHOD(Init)(BOOL fQuery, ULONG ulMaxTokenSize, BOOL *pfLicense) PURE; + STDMETHOD(BreakText)(TEXT_SOURCE *pTextSource, IWordSink *pWordSink, + IPhraseSink *pPhraseSink) PURE; + STDMETHOD(ComposePhrase)(WCHAR const *pwcNoun, ULONG cwcNoun, + WCHAR const *pwcModifier, ULONG cwcModifier, + ULONG ulAttachmentType, WCHAR *pwcPhrase, + ULONG *pcwcPhrase) PURE; + STDMETHOD(GetLicenseToUse)(WCHAR const **ppwcsLicense) PURE; +}; + +typedef IWordBreaker *PIWBRK; + + +// Break word types that can be passed to +// IWordBreakerConfig::SetBreakWordType. +#define IITWBC_BREAKTYPE_TEXT ((DWORD) 0) +#define IITWBC_BREAKTYPE_NUMBER ((DWORD) 1) +#define IITWBC_BREAKTYPE_DATE ((DWORD) 2) +#define IITWBC_BREAKTYPE_TIME ((DWORD) 3) +#define IITWBC_BREAKTYPE_EPOCH ((DWORD) 4) + + +// Breaker control flags that can be passed to +// IWordBreakerConfig::SetControlInfo. +#define IITWBC_BREAK_ACCEPT_WILDCARDS 0x00000001 // Interpret wildcard chars as such. +#define IITWBC_BREAK_AND_STEM 0x00000002 // Stem words after breaking them. + +// External data types that can be passed to +// IWordBreakerConfig::LoadExternalBreakerData. +#define IITWBC_EXTDATA_CHARTABLE ((DWORD) 0) +#define IITWBC_EXTDATA_STOPWORDLIST ((DWORD) 1) + + +DECLARE_INTERFACE_(IWordBreakerConfig, IUnknown) +{ + // Sets/gets locale info that will affect the word breaking + // behavior of IWordBreaker::BreakText. + // Returns S_OK if locale described by params is supported + // by the breaker object; E_INVALIDARG otherwise. + STDMETHOD(SetLocaleInfo)(DWORD dwCodePageID, LCID lcid) PURE; + STDMETHOD(GetLocaleInfo)(DWORD *pdwCodePageID, LCID *plcid) PURE; + + // Sets/gets the type of words the breaker should expect + // to see in all subsequent calls to IWordBreaker::BreakText. + // Returns S_OK if the type is understood by the breaker + // object; E_INVALIDARG otherwise. + STDMETHOD(SetBreakWordType)(DWORD dwBreakWordType) PURE; + STDMETHOD(GetBreakWordType)(DWORD *pdwBreakWordType) PURE; + + // Sets/gets info that controls certain aspects of word breaking. + // This method currently accepts only the following set of flags + // in grfBreakFlags: + // IITWBC_BREAK_ACCEPT_WILDCARDS + // IITWBC_BREAK_AND_STEM + // In the future, additional information may be passed in through + // dwReserved. + STDMETHOD(SetControlInfo)(DWORD grfBreakFlags, DWORD dwReserved) PURE; + STDMETHOD(GetControlInfo)(DWORD *pgrfBreakFlags, DWORD *pdwReserved) PURE; + + // Will load external breaker data, such as a table containing + // char-by-char break information or a list of stop words. + // Although the format of the data in the stream is entirely + // implementation-specific, this interface does define a couple + // of general types for that data which can be passed in + // dwStreamDataType: + // IITWBC_EXTDATA_CHARTABLE + // IITWBC_EXTDATA_STOPWORDLIST + STDMETHOD(LoadExternalBreakerData)(IStream *pStream, + DWORD dwExtDataType) PURE; + + // These methods allow a stemmer to be associated with the breaker. The + // breaker will take responsibility for calling + // IPersistStreamInit::Load/Save when it is loaded/saved if the stemmer + // supports that interface. + STDMETHOD(SetWordStemmer)(REFCLSID rclsid, IStemmer *pStemmer) PURE; + STDMETHOD(GetWordStemmer)(IStemmer **ppStemmer) PURE; +}; + +// +// The InfoTech error codes +// +#define E_NOTEXIST _HRESULT_TYPEDEF_(0x80001000L) +#define E_DUPLICATE _HRESULT_TYPEDEF_(0x80001001L) +#define E_BADVERSION _HRESULT_TYPEDEF_(0x80001002L) +#define E_BADFILE _HRESULT_TYPEDEF_(0x80001003L) +#define E_BADFORMAT _HRESULT_TYPEDEF_(0x80001004L) +#define E_NOPERMISSION _HRESULT_TYPEDEF_(0x80001005L) +#define E_ASSERT _HRESULT_TYPEDEF_(0x80001006L) +#define E_INTERRUPT _HRESULT_TYPEDEF_(0x80001007L) +#define E_NOTSUPPORTED _HRESULT_TYPEDEF_(0x80001008L) +#define E_OUTOFRANGE _HRESULT_TYPEDEF_(0x80001009L) +#define E_GROUPIDTOOBIG _HRESULT_TYPEDEF_(0x8000100AL) +#define E_TOOMANYTITLES _HRESULT_TYPEDEF_(0x8000100BL) +#define E_NOMERGEDDATA _HRESULT_TYPEDEF_(0x8000100CL) +#define E_NOTFOUND _HRESULT_TYPEDEF_(0x8000100DL) +#define E_CANTFINDDLL _HRESULT_TYPEDEF_(0x8000100EL) +#define E_NOHANDLE _HRESULT_TYPEDEF_(0x8000100FL) +#define E_GETLASTERROR _HRESULT_TYPEDEF_(0x80001010L) +#define E_BADPARAM _HRESULT_TYPEDEF_(0x80001011L) +#define E_INVALIDSTATE _HRESULT_TYPEDEF_(0x80001012L) +#define E_NOTOPEN _HRESULT_TYPEDEF_(0x80001013L) +#define E_ALREADYOPEN _HRESULT_TYPEDEF_(0x80001013L) +#define E_UNKNOWN_TRANSPORT _HRESULT_TYPEDEF_(0x80001016L) +#define E_UNSUPPORTED_TRANSPORT _HRESULT_TYPEDEF_(0x80001017L) +#define E_BADFILTERSIZE _HRESULT_TYPEDEF_(0x80001018L) +#define E_TOOMANYOBJECTS _HRESULT_TYPEDEF_(0x80001019L) +#define E_NAMETOOLONG _HRESULT_TYPEDEF_(0x80001020L) + +#define E_FILECREATE _HRESULT_TYPEDEF_(0x80001030L) +#define E_FILECLOSE _HRESULT_TYPEDEF_(0x80001031L) +#define E_FILEREAD _HRESULT_TYPEDEF_(0x80001032L) +#define E_FILESEEK _HRESULT_TYPEDEF_(0x80001033L) +#define E_FILEWRITE _HRESULT_TYPEDEF_(0x80001034L) +#define E_FILEDELETE _HRESULT_TYPEDEF_(0x80001035L) +#define E_FILEINVALID _HRESULT_TYPEDEF_(0x80001036L) +#define E_FILENOTFOUND _HRESULT_TYPEDEF_(0x80001037L) +#define E_DISKFULL _HRESULT_TYPEDEF_(0x80001038L) + +#define E_TOOMANYTOPICS _HRESULT_TYPEDEF_(0x80001050L) +#define E_TOOMANYDUPS _HRESULT_TYPEDEF_(0x80001051L) +#define E_TREETOOBIG _HRESULT_TYPEDEF_(0x80001052L) +#define E_BADBREAKER _HRESULT_TYPEDEF_(0x80001053L) +#define E_BADVALUE _HRESULT_TYPEDEF_(0x80001054L) +#define E_ALL_WILD _HRESULT_TYPEDEF_(0x80001055L) +#define E_TOODEEP _HRESULT_TYPEDEF_(0x80001056L) +#define E_EXPECTEDTERM _HRESULT_TYPEDEF_(0x80001057L) +#define E_MISSLPAREN _HRESULT_TYPEDEF_(0x80001058L) +#define E_MISSRPAREN _HRESULT_TYPEDEF_(0x80001059L) +#define E_MISSQUOTE _HRESULT_TYPEDEF_(0x8000105AL) +#define E_NULLQUERY _HRESULT_TYPEDEF_(0x8000105BL) +#define E_STOPWORD _HRESULT_TYPEDEF_(0x8000105CL) +#define E_BADRANGEOP _HRESULT_TYPEDEF_(0x8000105DL) +#define E_UNMATCHEDTYPE _HRESULT_TYPEDEF_(0x8000105EL) +#define E_WORDTOOLONG _HRESULT_TYPEDEF_(0x8000105FL) +#define E_BADINDEXFLAGS _HRESULT_TYPEDEF_(0x80001060L) +#define E_WILD_IN_DTYPE _HRESULT_TYPEDEF_(0x80001061L) +#define E_NOSTEMMER _HRESULT_TYPEDEF_(0x80001062L) + +// Property list and result set errors +#define E_MISSINGPROP _HRESULT_TYPEDEF_(0x80001080L) +#define E_PROPLISTNOTEMPTY _HRESULT_TYPEDEF_(0x80001081L) +#define E_PROPLISTEMPTY _HRESULT_TYPEDEF_(0x80001082L) +#define E_ALREADYINIT _HRESULT_TYPEDEF_(0x80001083L) +#define E_NOTINIT _HRESULT_TYPEDEF_(0x80001084L) +#define E_RESULTSETEMPTY _HRESULT_TYPEDEF_(0x80001085L) +#define E_TOOMANYCOLUMNS _HRESULT_TYPEDEF_(0x80001086L) +#define E_NOKEYPROP _HRESULT_TYPEDEF_(0x80001087L) + + + +// ITResultSet interface declaration + +// {3BB91D41-998B-11d0-A850-00AA006C7D01} +DEFINE_GUID(IID_IITResultSet, +0x3bb91d41, 0x998b, 0x11d0, 0xa8, 0x50, 0x0, 0xaa, 0x0, 0x6c, 0x7d, 0x1); + +// {4662daa7-d393-11d0-9a56-00c04fb68bf7} +DEFINE_GUID(CLSID_IITResultSet, +0x4662daa7, 0xd393, 0x11d0, 0x9a, 0x56, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +// maximum number of columns in a row set +#define MAX_COLUMNS 256 + +// Column priorities +typedef enum +{ + PRIORITY_LOW = 0, + PRIORITY_NORMAL = 1, + PRIORITY_HIGH = 2, + +} PRIORITY; + + +// Forward declarations +class CProperty; + +typedef struct tagROWSTATUS +{ + LONG lRowFirst; + LONG cRows; + LONG cProperties; + LONG cRowsTotal; + +} ROWSTATUS, *LPROWSTATUS; + + +typedef struct tagCOLUMNSTATUS +{ + LONG cPropCount; + LONG cPropsLoaded; + +} COLUMNSTATUS, *LPCOLUMNSTATUS; + + +// Used by IITResultSet::SetColumnHeap. +typedef SCODE (__stdcall *PFNCOLHEAPFREE)(LPVOID); + + +DECLARE_INTERFACE_(IITResultSet, IUnknown) +{ + // Initialization + STDMETHOD(SetColumnPriority)(LONG lColumnIndex, PRIORITY ColumnPriority) PURE; + STDMETHOD(SetColumnHeap)(LONG lColumnIndex, LPVOID lpvHeap, + PFNCOLHEAPFREE pfnColHeapFree) PURE; + STDMETHOD(SetKeyProp)(PROPID PropID) PURE; + STDMETHOD(Add)(LPVOID lpvHdr) PURE; + STDMETHOD(Add)(PROPID PropID, LPVOID lpvDefaultData, DWORD cbData, PRIORITY Priority) PURE; + STDMETHOD(Add)(PROPID PropID, LPCWSTR lpszwDefault, PRIORITY Priority) PURE; + STDMETHOD(Add)(PROPID PropID, DWORD dwDefaultData, PRIORITY Priority) PURE; + + // Build result set + STDMETHOD(Append)(LPVOID lpvHdr, LPVOID lpvData) PURE; + STDMETHOD(Set)(LONG lRowIndex, LPVOID lpvHdr, LPVOID lpvData) PURE; + STDMETHOD(Set)(LONG lRowIndex, LONG lColumnIndex, DWORD_PTR dwData) PURE; + STDMETHOD(Set)(LONG lRowIndex, LONG lColumnIndex, LPCWSTR lpwStr) PURE; + STDMETHOD(Set)(LONG lRowIndex, LONG lColumnIndex, LPVOID lpvData, DWORD cbData) PURE; + STDMETHOD(Copy)(IITResultSet* pRSCopy) PURE; + STDMETHOD(AppendRows)(IITResultSet* pResSrc, LONG lRowSrcFirst, LONG cSrcRows, + LONG& lRowFirstDest) PURE; + + // Obtain info about result set + STDMETHOD(Get)(LONG lRowIndex, LONG lColumnIndex, CProperty& Prop) PURE; + STDMETHOD(GetKeyProp)(PROPID& KeyPropID) PURE; + STDMETHOD(GetColumnPriority)(LONG lColumnIndex, PRIORITY& ColumnPriority) PURE; + STDMETHOD(GetRowCount)(LONG& lNumberOfRows) PURE; + STDMETHOD(GetColumnCount)(LONG& lNumberOfColumns) PURE; + STDMETHOD(GetColumn)(LONG lColumnIndex, PROPID& PropID) PURE; + STDMETHOD(GetColumn)(LONG lColumnIndex, PROPID& PropID, DWORD& dwType, LPVOID& lpvDefaultValue, + DWORD& cbSize, PRIORITY& ColumnPriority) PURE; + + STDMETHOD(GetColumnFromPropID)(PROPID PropID, LONG& lColumnIndex) PURE; + + // Clear result set + STDMETHOD(Clear)() PURE; + STDMETHOD(ClearRows)() PURE; + STDMETHOD(Free)() PURE; + + // Asynchronous support + STDMETHOD(IsCompleted)() PURE; // returns S_OK or S_FALSE + STDMETHOD(Cancel)() PURE; + STDMETHOD(Pause)(BOOL fPause) PURE; + + STDMETHOD(GetRowStatus)(LONG lRowFirst, LONG cRows, LPROWSTATUS lpRowStatus) PURE; + STDMETHOD(GetColumnStatus)(LPCOLUMNSTATUS lpColStatus) PURE; +}; + +typedef IITResultSet* LPITRS; + + +//---------------------------------------------------------------------- +//------ Word Breaking Definitions ------------ +//---------------------------------------------------------------------- + +// {D53552C8-77E3-101A-B552-08002B33B0E6} +DEFINE_GUID(IID_IWordBreaker, +0xD53552C8, 0x77E3, 0x101A, 0xB5, 0x52, 0x08, 0x00, 0x2B, 0x33, 0xB0, 0xE6); + +// {CC907054-C058-101A-B554-08002B33B0E6} +DEFINE_GUID(IID_IWordSink, +0xCC907054, 0xC058, 0x101A, 0xB5, 0x54, 0x08, 0x00, 0x2B, 0x33, 0xB0, 0xE6); + +// {CC906FF0-C058-101A-B554-08002B33B0E6} +DEFINE_GUID(IID_IPhraseSink, +0xCC906FF0, 0xC058, 0x101A, 0xB5, 0x54, 0x08, 0x00, 0x2B, 0x33, 0xB0, 0xE6); + +// {8fa0d5a6-dedf-11d0-9a61-00c04fb68bf7} +DEFINE_GUID(IID_IWordBreakerConfig, +0x8fa0d5a6, 0xdedf, 0x11d0, 0x9a, 0x61, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +// {4662daaf-d393-11d0-9a56-00c04fb68bf7} +DEFINE_GUID(CLSID_ITStdBreaker, +0x4662daaf, 0xd393, 0x11d0, 0x9a, 0x56, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + + +//---------------------------------------------------------------------- +//------ Stop Word List Definitions ------------ +//---------------------------------------------------------------------- + +// {8fa0d5ad-dedf-11d0-9a61-00c04fb68bf7} +DEFINE_GUID(IID_IITStopWordList, +0x8fa0d5ad, 0xdedf, 0x11d0, 0x9a, 0x61, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + + +//---------------------------------------------------------------------- +//------ Stemming Definitions ------------ +//---------------------------------------------------------------------- + +// {efbaf140-7f42-11ce-be57-00aa0051fe20} +DEFINE_GUID(IID_IStemmer, +0xefbaf140, 0x7f42, 0x11ce, 0xbe, 0x57, 0x00, 0xaa, 0x00, 0x51, 0xfe, 0x20); + +// {fe77c330-7f42-11ce-be57-00aa0051fe20} +DEFINE_GUID(IID_IStemSink, +0xfe77c330, 0x7f42, 0x11ce, 0xbe, 0x57, 0x00, 0xaa, 0x00, 0x51, 0xfe, 0x20); + +// {8fa0d5a7-dedf-11d0-9a61-00c04fb68bf7} +DEFINE_GUID(IID_IStemmerConfig, +0x8fa0d5a7, 0xdedf, 0x11d0, 0x9a, 0x61, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + +// {8fa0d5a8-dedf-11d0-9a61-00c04fb68bf7} +DEFINE_GUID(CLSID_ITEngStemmer, +0x8fa0d5a8, 0xdedf, 0x11d0, 0x9a, 0x61, 0x00, 0xc0, 0x4f, 0xb6, 0x8b, 0xf7); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __INFOTECH_H__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/inked.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inked.h new file mode 100644 index 0000000000000000000000000000000000000000..395086642e8dc0d650cb97bd53c6ee0f5c429470 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inked.h @@ -0,0 +1,1438 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __inked_h__ +#define __inked_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IInkEdit_FWD_DEFINED__ +#define __IInkEdit_FWD_DEFINED__ +typedef interface IInkEdit IInkEdit; + +#endif /* __IInkEdit_FWD_DEFINED__ */ + + +#ifndef ___IInkEditEvents_FWD_DEFINED__ +#define ___IInkEditEvents_FWD_DEFINED__ +typedef interface _IInkEditEvents _IInkEditEvents; + +#endif /* ___IInkEditEvents_FWD_DEFINED__ */ + + +#ifndef __InkEdit_FWD_DEFINED__ +#define __InkEdit_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class InkEdit InkEdit; +#else +typedef struct InkEdit InkEdit; +#endif /* __cplusplus */ + +#endif /* __InkEdit_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "msinkaut.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_inked_0000_0000 */ +/* [local] */ + + +/////////////////////////////////////////////////////////////////////////////// +// +// InkEdit Win32 API +// +/////////////////////////////////////////////////////////////////////////////// + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define INKEDIT_CLASSW L"INKEDIT" + +#ifdef UNICODE +#define INKEDIT_CLASS INKEDIT_CLASSW +#else +#define INKEDIT_CLASS "INKEDIT" +#endif + +// InkEdit Constants + +// InkEdit Structures + +struct IEC_STROKEINFO +{ + NMHDR nmhdr; + IInkCursor * Cursor; + IInkStrokeDisp * Stroke; +}; + +struct IEC_GESTUREINFO +{ + NMHDR nmhdr; + IInkCursor * Cursor; + IInkStrokes * Strokes; + VARIANT Gestures; +}; + +struct IEC_RECOGNITIONRESULTINFO +{ + NMHDR nmhdr; + IInkRecognitionResult * RecognitionResult; +}; + +// InkEdit messages + +#define IEC__BASE (WM_USER + 0x0200) +#define EM_GETINKMODE (IEC__BASE + 1) +#define EM_SETINKMODE (IEC__BASE + 2) +#define EM_GETINKINSERTMODE (IEC__BASE + 3) +#define EM_SETINKINSERTMODE (IEC__BASE + 4) +#define EM_GETDRAWATTR (IEC__BASE + 5) +#define EM_SETDRAWATTR (IEC__BASE + 6) +#define EM_GETRECOTIMEOUT (IEC__BASE + 7) +#define EM_SETRECOTIMEOUT (IEC__BASE + 8) +#define EM_GETGESTURESTATUS (IEC__BASE + 9) +#define EM_SETGESTURESTATUS (IEC__BASE + 10) +#define EM_GETRECOGNIZER (IEC__BASE + 11) +#define EM_SETRECOGNIZER (IEC__BASE + 12) +#define EM_GETFACTOID (IEC__BASE + 13) +#define EM_SETFACTOID (IEC__BASE + 14) +#define EM_GETSELINK (IEC__BASE + 15) +#define EM_SETSELINK (IEC__BASE + 16) +#define EM_GETMOUSEICON (IEC__BASE + 17) +#define EM_SETMOUSEICON (IEC__BASE + 18) +#define EM_GETMOUSEPOINTER (IEC__BASE + 19) +#define EM_SETMOUSEPOINTER (IEC__BASE + 20) +#define EM_GETSTATUS (IEC__BASE + 21) +#define EM_RECOGNIZE (IEC__BASE + 22) +#define EM_GETUSEMOUSEFORINPUT (IEC__BASE + 23) +#define EM_SETUSEMOUSEFORINPUT (IEC__BASE + 24) +#define EM_SETSELINKDISPLAYMODE (IEC__BASE + 25) +#define EM_GETSELINKDISPLAYMODE (IEC__BASE + 26) + +/////////////////////////////////////////////////////////////////////////////// + +// InkEdit notifications + +#define IECN__BASE (0x0800) +#define IECN_STROKE (IECN__BASE + 1) +#define IECN_GESTURE (IECN__BASE + 2) +#define IECN_RECOGNITIONRESULT (IECN__BASE + 3) + + + + +extern RPC_IF_HANDLE __MIDL_itf_inked_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inked_0000_0000_v0_0_s_ifspec; + + +#ifndef __INKEDLib_LIBRARY_DEFINED__ +#define __INKEDLib_LIBRARY_DEFINED__ + +/* library INKEDLib */ +/* [helpcontext][helpstring][version][uuid] */ + +typedef /* [helpcontext][helpstring] */ +enum MouseButton + { + NO_BUTTON = 0, + LEFT_BUTTON = 0x1, + RIGHT_BUTTON = 0x2, + MIDDLE_BUTTON = 0x4 + } MouseButton; + +typedef /* [helpcontext][helpstring] */ +enum SelAlignmentConstants + { + rtfLeft = 0, + rtfRight = 1, + rtfCenter = 2 + } SelAlignmentConstants; + +typedef /* [hidden] */ +enum DISPID_InkEdit + { + DISPID_Text = DISPID_VALUE, + DISPID_TextRTF = ( DISPID_Text + 1 ) , + DISPID_Hwnd = ( DISPID_TextRTF + 1 ) , + DISPID_DisableNoScroll = ( DISPID_Hwnd + 1 ) , + DISPID_Locked = ( DISPID_DisableNoScroll + 1 ) , + DISPID_Enabled = ( DISPID_Locked + 1 ) , + DISPID_MaxLength = ( DISPID_Enabled + 1 ) , + DISPID_MultiLine = ( DISPID_MaxLength + 1 ) , + DISPID_ScrollBars = ( DISPID_MultiLine + 1 ) , + DISPID_RTSelStart = ( DISPID_ScrollBars + 1 ) , + DISPID_RTSelLength = ( DISPID_RTSelStart + 1 ) , + DISPID_RTSelText = ( DISPID_RTSelLength + 1 ) , + DISPID_SelAlignment = ( DISPID_RTSelText + 1 ) , + DISPID_SelBold = ( DISPID_SelAlignment + 1 ) , + DISPID_SelCharOffset = ( DISPID_SelBold + 1 ) , + DISPID_SelColor = ( DISPID_SelCharOffset + 1 ) , + DISPID_SelFontName = ( DISPID_SelColor + 1 ) , + DISPID_SelFontSize = ( DISPID_SelFontName + 1 ) , + DISPID_SelItalic = ( DISPID_SelFontSize + 1 ) , + DISPID_SelRTF = ( DISPID_SelItalic + 1 ) , + DISPID_SelUnderline = ( DISPID_SelRTF + 1 ) , + DISPID_DragIcon = ( DISPID_SelUnderline + 1 ) , + DISPID_Status = ( DISPID_DragIcon + 1 ) , + DISPID_UseMouseForInput = ( DISPID_Status + 1 ) , + DISPID_InkMode = ( DISPID_UseMouseForInput + 1 ) , + DISPID_InkInsertMode = ( DISPID_InkMode + 1 ) , + DISPID_RecoTimeout = ( DISPID_InkInsertMode + 1 ) , + DISPID_DrawAttr = ( DISPID_RecoTimeout + 1 ) , + DISPID_Recognizer = ( DISPID_DrawAttr + 1 ) , + DISPID_Factoid = ( DISPID_Recognizer + 1 ) , + DISPID_SelInk = ( DISPID_Factoid + 1 ) , + DISPID_SelInksDisplayMode = ( DISPID_SelInk + 1 ) , + DISPID_Recognize = ( DISPID_SelInksDisplayMode + 1 ) , + DISPID_GetGestStatus = ( DISPID_Recognize + 1 ) , + DISPID_SetGestStatus = ( DISPID_GetGestStatus + 1 ) , + DISPID_Refresh = ( DISPID_SetGestStatus + 1 ) + } DISPID_InkEdit; + +typedef /* [hidden] */ +enum DISPID_InkEditEvents + { + DISPID_IeeChange = 1, + DISPID_IeeSelChange = 2, + DISPID_IeeKeyDown = 3, + DISPID_IeeKeyUp = 4, + DISPID_IeeMouseUp = 5, + DISPID_IeeMouseDown = 6, + DISPID_IeeKeyPress = 7, + DISPID_IeeDblClick = 8, + DISPID_IeeClick = 9, + DISPID_IeeMouseMove = 10, + DISPID_IeeCursorDown = 21, + DISPID_IeeStroke = 22, + DISPID_IeeGesture = 23, + DISPID_IeeRecognitionResult = 24 + } DISPID_InkEditEvents; + + +EXTERN_C const IID LIBID_INKEDLib; + +#ifndef __IInkEdit_INTERFACE_DEFINED__ +#define __IInkEdit_INTERFACE_DEFINED__ + +/* interface IInkEdit */ +/* [unique][helpcontext][helpstring][dual][uuid][object] */ + +typedef /* [helpcontext][helpstring] */ +enum InkMode + { + IEM_Disabled = 0, + IEM_Ink = 1, + IEM_InkAndGesture = 2 + } InkMode; + +typedef /* [helpcontext][helpstring] */ +enum InkInsertMode + { + IEM_InsertText = 0, + IEM_InsertInk = 1 + } InkInsertMode; + +typedef /* [helpcontext][helpstring] */ +enum InkEditStatus + { + IES_Idle = 0, + IES_Collecting = 1, + IES_Recognizing = 2 + } InkEditStatus; + +typedef /* [helpcontext][helpstring] */ +enum InkDisplayMode + { + IDM_Ink = 0, + IDM_Text = 1 + } InkDisplayMode; + +typedef /* [helpcontext][helpstring] */ +enum AppearanceConstants + { + rtfFlat = 0, + rtfThreeD = 1 + } AppearanceConstants; + +typedef /* [helpcontext][helpstring] */ +enum BorderStyleConstants + { + rtfNoBorder = 0, + rtfFixedSingle = 1 + } BorderStyleConstants; + +typedef /* [helpcontext][helpstring] */ +enum ScrollBarsConstants + { + rtfNone = 0, + rtfHorizontal = 1, + rtfVertical = 2, + rtfBoth = 3 + } ScrollBarsConstants; + + +EXTERN_C const IID IID_IInkEdit; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F2127A19-FBFB-4AED-8464-3F36D78CFEFB") + IInkEdit : public IDispatch + { + public: + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out InkEditStatus *pStatus) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_UseMouseForInput( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_UseMouseForInput( + /* [defaultvalue][in] */ VARIANT_BOOL newVal = ( VARIANT_BOOL )-1) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_InkMode( + /* [retval][out] */ __RPC__out InkMode *pVal) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_InkMode( + /* [defaultvalue][in] */ InkMode newVal = IEM_InkAndGesture) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_InkInsertMode( + /* [retval][out] */ __RPC__out InkInsertMode *pVal) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_InkInsertMode( + /* [defaultvalue][in] */ InkInsertMode newVal = IEM_InsertText) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_DrawingAttributes( + /* [retval][out] */ __RPC__deref_out_opt IInkDrawingAttributes **pVal) = 0; + + virtual /* [helpcontext][helpstring][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_DrawingAttributes( + /* [in] */ __RPC__in_opt IInkDrawingAttributes *newVal) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_RecognitionTimeout( + /* [retval][out] */ __RPC__out long *pVal) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_RecognitionTimeout( + /* [in] */ long newVal) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Recognizer( + /* [retval][out] */ __RPC__deref_out_opt IInkRecognizer **pVal) = 0; + + virtual /* [helpcontext][helpstring][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Recognizer( + /* [in] */ __RPC__in_opt IInkRecognizer *newVal) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Factoid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Factoid( + /* [in] */ __RPC__in BSTR newVal) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelInks( + /* [retval][out] */ __RPC__out VARIANT *pSelInk) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelInks( + /* [in] */ VARIANT SelInk) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelInksDisplayMode( + /* [retval][out] */ __RPC__out InkDisplayMode *pInkDisplayMode) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelInksDisplayMode( + /* [in] */ InkDisplayMode InkDisplayMode) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Recognize( void) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE GetGestureStatus( + /* [in] */ InkApplicationGesture Gesture, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pListen) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE SetGestureStatus( + /* [in] */ InkApplicationGesture Gesture, + /* [in] */ VARIANT_BOOL Listen) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_BackColor( + /* [in] */ OLE_COLOR clr) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BackColor( + /* [retval][out] */ __RPC__out OLE_COLOR *pclr) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Appearance( + /* [retval][out] */ __RPC__out AppearanceConstants *pAppearance) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Appearance( + /* [in] */ AppearanceConstants pAppearance) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_BorderStyle( + /* [retval][out] */ __RPC__out BorderStyleConstants *pBorderStyle) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_BorderStyle( + /* [in] */ BorderStyleConstants pBorderStyle) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Hwnd( + /* [retval][out] */ __RPC__out OLE_HANDLE *pohHwnd) = 0; + + virtual /* [helpcontext][helpstring][bindable][propget][id] */ HRESULT STDMETHODCALLTYPE get_Font( + /* [retval][out] */ __RPC__deref_out_opt IFontDisp **ppFont) = 0; + + virtual /* [helpcontext][helpstring][bindable][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_Font( + /* [in] */ __RPC__in_opt IFontDisp *ppFont) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Text( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrText) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Text( + /* [in] */ __RPC__in BSTR pbstrText) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_MouseIcon( + /* [retval][out] */ __RPC__deref_out_opt IPictureDisp **MouseIcon) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MouseIcon( + /* [in] */ __RPC__in_opt IPictureDisp *MouseIcon) = 0; + + virtual /* [helpcontext][helpstring][propputref][id] */ HRESULT STDMETHODCALLTYPE putref_MouseIcon( + /* [in] */ __RPC__in_opt IPictureDisp *MouseIcon) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_MousePointer( + /* [retval][out] */ __RPC__out InkMousePointer *MousePointer) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MousePointer( + /* [in] */ InkMousePointer MousePointer) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Locked( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Locked( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_Enabled( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_Enabled( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_MaxLength( + /* [retval][out] */ __RPC__out long *plMaxLength) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MaxLength( + /* [in] */ long lMaxLength) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_MultiLine( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_MultiLine( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_ScrollBars( + /* [retval][out] */ __RPC__out ScrollBarsConstants *pVal) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_ScrollBars( + /* [in] */ ScrollBarsConstants newVal) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_DisableNoScroll( + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_DisableNoScroll( + /* [in] */ VARIANT_BOOL newVal) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelAlignment( + /* [retval][out] */ __RPC__out VARIANT *pvarSelAlignment) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelAlignment( + /* [in] */ VARIANT pvarSelAlignment) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelBold( + /* [retval][out] */ __RPC__out VARIANT *pvarSelBold) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelBold( + /* [in] */ VARIANT pvarSelBold) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelItalic( + /* [retval][out] */ __RPC__out VARIANT *pvarSelItalic) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelItalic( + /* [in] */ VARIANT pvarSelItalic) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelUnderline( + /* [retval][out] */ __RPC__out VARIANT *pvarSelUnderline) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelUnderline( + /* [in] */ VARIANT pvarSelUnderline) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelColor( + /* [retval][out] */ __RPC__out VARIANT *pvarSelColor) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelColor( + /* [in] */ VARIANT pvarSelColor) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelFontName( + /* [retval][out] */ __RPC__out VARIANT *pvarSelFontName) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelFontName( + /* [in] */ VARIANT pvarSelFontName) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelFontSize( + /* [retval][out] */ __RPC__out VARIANT *pvarSelFontSize) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelFontSize( + /* [in] */ VARIANT pvarSelFontSize) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelCharOffset( + /* [retval][out] */ __RPC__out VARIANT *pvarSelCharOffset) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelCharOffset( + /* [in] */ VARIANT pvarSelCharOffset) = 0; + + virtual /* [helpcontext][helpstring][defaultbind][displaybind][bindable][propget][id] */ HRESULT STDMETHODCALLTYPE get_TextRTF( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTextRTF) = 0; + + virtual /* [helpcontext][helpstring][displaybind][bindable][propput][id] */ HRESULT STDMETHODCALLTYPE put_TextRTF( + /* [in] */ __RPC__in BSTR pbstrTextRTF) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelStart( + /* [retval][out] */ __RPC__out long *plSelStart) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelStart( + /* [in] */ long plSelStart) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelLength( + /* [retval][out] */ __RPC__out long *plSelLength) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelLength( + /* [in] */ long plSelLength) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelText( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSelText) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelText( + /* [in] */ __RPC__in BSTR pbstrSelText) = 0; + + virtual /* [helpcontext][helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_SelRTF( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSelRTF) = 0; + + virtual /* [helpcontext][helpstring][propput][id] */ HRESULT STDMETHODCALLTYPE put_SelRTF( + /* [in] */ __RPC__in BSTR pbstrSelRTF) = 0; + + virtual /* [helpcontext][helpstring][id] */ HRESULT STDMETHODCALLTYPE Refresh( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInkEditVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInkEdit * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInkEdit * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IInkEdit * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IInkEdit * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IInkEdit * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IInkEdit, get_Status) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out InkEditStatus *pStatus); + + DECLSPEC_XFGVIRT(IInkEdit, get_UseMouseForInput) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_UseMouseForInput )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IInkEdit, put_UseMouseForInput) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_UseMouseForInput )( + __RPC__in IInkEdit * This, + /* [defaultvalue][in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_InkMode) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_InkMode )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out InkMode *pVal); + + DECLSPEC_XFGVIRT(IInkEdit, put_InkMode) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_InkMode )( + __RPC__in IInkEdit * This, + /* [defaultvalue][in] */ InkMode newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_InkInsertMode) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_InkInsertMode )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out InkInsertMode *pVal); + + DECLSPEC_XFGVIRT(IInkEdit, put_InkInsertMode) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_InkInsertMode )( + __RPC__in IInkEdit * This, + /* [defaultvalue][in] */ InkInsertMode newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_DrawingAttributes) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DrawingAttributes )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__deref_out_opt IInkDrawingAttributes **pVal); + + DECLSPEC_XFGVIRT(IInkEdit, putref_DrawingAttributes) + /* [helpcontext][helpstring][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_DrawingAttributes )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in_opt IInkDrawingAttributes *newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_RecognitionTimeout) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_RecognitionTimeout )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out long *pVal); + + DECLSPEC_XFGVIRT(IInkEdit, put_RecognitionTimeout) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_RecognitionTimeout )( + __RPC__in IInkEdit * This, + /* [in] */ long newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_Recognizer) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Recognizer )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__deref_out_opt IInkRecognizer **pVal); + + DECLSPEC_XFGVIRT(IInkEdit, putref_Recognizer) + /* [helpcontext][helpstring][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Recognizer )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in_opt IInkRecognizer *newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_Factoid) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Factoid )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IInkEdit, put_Factoid) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Factoid )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in BSTR newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelInks) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelInks )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT *pSelInk); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelInks) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelInks )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT SelInk); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelInksDisplayMode) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelInksDisplayMode )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out InkDisplayMode *pInkDisplayMode); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelInksDisplayMode) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelInksDisplayMode )( + __RPC__in IInkEdit * This, + /* [in] */ InkDisplayMode InkDisplayMode); + + DECLSPEC_XFGVIRT(IInkEdit, Recognize) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Recognize )( + __RPC__in IInkEdit * This); + + DECLSPEC_XFGVIRT(IInkEdit, GetGestureStatus) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetGestureStatus )( + __RPC__in IInkEdit * This, + /* [in] */ InkApplicationGesture Gesture, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pListen); + + DECLSPEC_XFGVIRT(IInkEdit, SetGestureStatus) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetGestureStatus )( + __RPC__in IInkEdit * This, + /* [in] */ InkApplicationGesture Gesture, + /* [in] */ VARIANT_BOOL Listen); + + DECLSPEC_XFGVIRT(IInkEdit, put_BackColor) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BackColor )( + __RPC__in IInkEdit * This, + /* [in] */ OLE_COLOR clr); + + DECLSPEC_XFGVIRT(IInkEdit, get_BackColor) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BackColor )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out OLE_COLOR *pclr); + + DECLSPEC_XFGVIRT(IInkEdit, get_Appearance) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Appearance )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out AppearanceConstants *pAppearance); + + DECLSPEC_XFGVIRT(IInkEdit, put_Appearance) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Appearance )( + __RPC__in IInkEdit * This, + /* [in] */ AppearanceConstants pAppearance); + + DECLSPEC_XFGVIRT(IInkEdit, get_BorderStyle) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_BorderStyle )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out BorderStyleConstants *pBorderStyle); + + DECLSPEC_XFGVIRT(IInkEdit, put_BorderStyle) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_BorderStyle )( + __RPC__in IInkEdit * This, + /* [in] */ BorderStyleConstants pBorderStyle); + + DECLSPEC_XFGVIRT(IInkEdit, get_Hwnd) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Hwnd )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out OLE_HANDLE *pohHwnd); + + DECLSPEC_XFGVIRT(IInkEdit, get_Font) + /* [helpcontext][helpstring][bindable][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Font )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__deref_out_opt IFontDisp **ppFont); + + DECLSPEC_XFGVIRT(IInkEdit, putref_Font) + /* [helpcontext][helpstring][bindable][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_Font )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in_opt IFontDisp *ppFont); + + DECLSPEC_XFGVIRT(IInkEdit, get_Text) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Text )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrText); + + DECLSPEC_XFGVIRT(IInkEdit, put_Text) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Text )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in BSTR pbstrText); + + DECLSPEC_XFGVIRT(IInkEdit, get_MouseIcon) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MouseIcon )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__deref_out_opt IPictureDisp **MouseIcon); + + DECLSPEC_XFGVIRT(IInkEdit, put_MouseIcon) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MouseIcon )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in_opt IPictureDisp *MouseIcon); + + DECLSPEC_XFGVIRT(IInkEdit, putref_MouseIcon) + /* [helpcontext][helpstring][propputref][id] */ HRESULT ( STDMETHODCALLTYPE *putref_MouseIcon )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in_opt IPictureDisp *MouseIcon); + + DECLSPEC_XFGVIRT(IInkEdit, get_MousePointer) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MousePointer )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out InkMousePointer *MousePointer); + + DECLSPEC_XFGVIRT(IInkEdit, put_MousePointer) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MousePointer )( + __RPC__in IInkEdit * This, + /* [in] */ InkMousePointer MousePointer); + + DECLSPEC_XFGVIRT(IInkEdit, get_Locked) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Locked )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IInkEdit, put_Locked) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Locked )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_Enabled) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_Enabled )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IInkEdit, put_Enabled) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_Enabled )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_MaxLength) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MaxLength )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out long *plMaxLength); + + DECLSPEC_XFGVIRT(IInkEdit, put_MaxLength) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MaxLength )( + __RPC__in IInkEdit * This, + /* [in] */ long lMaxLength); + + DECLSPEC_XFGVIRT(IInkEdit, get_MultiLine) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_MultiLine )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IInkEdit, put_MultiLine) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_MultiLine )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_ScrollBars) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_ScrollBars )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out ScrollBarsConstants *pVal); + + DECLSPEC_XFGVIRT(IInkEdit, put_ScrollBars) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_ScrollBars )( + __RPC__in IInkEdit * This, + /* [in] */ ScrollBarsConstants newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_DisableNoScroll) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_DisableNoScroll )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *pVal); + + DECLSPEC_XFGVIRT(IInkEdit, put_DisableNoScroll) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_DisableNoScroll )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT_BOOL newVal); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelAlignment) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelAlignment )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSelAlignment); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelAlignment) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelAlignment )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT pvarSelAlignment); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelBold) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelBold )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSelBold); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelBold) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelBold )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT pvarSelBold); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelItalic) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelItalic )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSelItalic); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelItalic) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelItalic )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT pvarSelItalic); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelUnderline) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelUnderline )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSelUnderline); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelUnderline) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelUnderline )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT pvarSelUnderline); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelColor) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelColor )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSelColor); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelColor) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelColor )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT pvarSelColor); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelFontName) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelFontName )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSelFontName); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelFontName) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelFontName )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT pvarSelFontName); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelFontSize) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelFontSize )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSelFontSize); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelFontSize) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelFontSize )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT pvarSelFontSize); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelCharOffset) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelCharOffset )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out VARIANT *pvarSelCharOffset); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelCharOffset) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelCharOffset )( + __RPC__in IInkEdit * This, + /* [in] */ VARIANT pvarSelCharOffset); + + DECLSPEC_XFGVIRT(IInkEdit, get_TextRTF) + /* [helpcontext][helpstring][defaultbind][displaybind][bindable][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_TextRTF )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrTextRTF); + + DECLSPEC_XFGVIRT(IInkEdit, put_TextRTF) + /* [helpcontext][helpstring][displaybind][bindable][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_TextRTF )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in BSTR pbstrTextRTF); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelStart) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelStart )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out long *plSelStart); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelStart) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelStart )( + __RPC__in IInkEdit * This, + /* [in] */ long plSelStart); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelLength) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelLength )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__out long *plSelLength); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelLength) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelLength )( + __RPC__in IInkEdit * This, + /* [in] */ long plSelLength); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelText) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelText )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSelText); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelText) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelText )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in BSTR pbstrSelText); + + DECLSPEC_XFGVIRT(IInkEdit, get_SelRTF) + /* [helpcontext][helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_SelRTF )( + __RPC__in IInkEdit * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrSelRTF); + + DECLSPEC_XFGVIRT(IInkEdit, put_SelRTF) + /* [helpcontext][helpstring][propput][id] */ HRESULT ( STDMETHODCALLTYPE *put_SelRTF )( + __RPC__in IInkEdit * This, + /* [in] */ __RPC__in BSTR pbstrSelRTF); + + DECLSPEC_XFGVIRT(IInkEdit, Refresh) + /* [helpcontext][helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Refresh )( + __RPC__in IInkEdit * This); + + END_INTERFACE + } IInkEditVtbl; + + interface IInkEdit + { + CONST_VTBL struct IInkEditVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInkEdit_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInkEdit_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInkEdit_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInkEdit_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IInkEdit_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IInkEdit_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IInkEdit_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IInkEdit_get_Status(This,pStatus) \ + ( (This)->lpVtbl -> get_Status(This,pStatus) ) + +#define IInkEdit_get_UseMouseForInput(This,pVal) \ + ( (This)->lpVtbl -> get_UseMouseForInput(This,pVal) ) + +#define IInkEdit_put_UseMouseForInput(This,newVal) \ + ( (This)->lpVtbl -> put_UseMouseForInput(This,newVal) ) + +#define IInkEdit_get_InkMode(This,pVal) \ + ( (This)->lpVtbl -> get_InkMode(This,pVal) ) + +#define IInkEdit_put_InkMode(This,newVal) \ + ( (This)->lpVtbl -> put_InkMode(This,newVal) ) + +#define IInkEdit_get_InkInsertMode(This,pVal) \ + ( (This)->lpVtbl -> get_InkInsertMode(This,pVal) ) + +#define IInkEdit_put_InkInsertMode(This,newVal) \ + ( (This)->lpVtbl -> put_InkInsertMode(This,newVal) ) + +#define IInkEdit_get_DrawingAttributes(This,pVal) \ + ( (This)->lpVtbl -> get_DrawingAttributes(This,pVal) ) + +#define IInkEdit_putref_DrawingAttributes(This,newVal) \ + ( (This)->lpVtbl -> putref_DrawingAttributes(This,newVal) ) + +#define IInkEdit_get_RecognitionTimeout(This,pVal) \ + ( (This)->lpVtbl -> get_RecognitionTimeout(This,pVal) ) + +#define IInkEdit_put_RecognitionTimeout(This,newVal) \ + ( (This)->lpVtbl -> put_RecognitionTimeout(This,newVal) ) + +#define IInkEdit_get_Recognizer(This,pVal) \ + ( (This)->lpVtbl -> get_Recognizer(This,pVal) ) + +#define IInkEdit_putref_Recognizer(This,newVal) \ + ( (This)->lpVtbl -> putref_Recognizer(This,newVal) ) + +#define IInkEdit_get_Factoid(This,pVal) \ + ( (This)->lpVtbl -> get_Factoid(This,pVal) ) + +#define IInkEdit_put_Factoid(This,newVal) \ + ( (This)->lpVtbl -> put_Factoid(This,newVal) ) + +#define IInkEdit_get_SelInks(This,pSelInk) \ + ( (This)->lpVtbl -> get_SelInks(This,pSelInk) ) + +#define IInkEdit_put_SelInks(This,SelInk) \ + ( (This)->lpVtbl -> put_SelInks(This,SelInk) ) + +#define IInkEdit_get_SelInksDisplayMode(This,pInkDisplayMode) \ + ( (This)->lpVtbl -> get_SelInksDisplayMode(This,pInkDisplayMode) ) + +#define IInkEdit_put_SelInksDisplayMode(This,InkDisplayMode) \ + ( (This)->lpVtbl -> put_SelInksDisplayMode(This,InkDisplayMode) ) + +#define IInkEdit_Recognize(This) \ + ( (This)->lpVtbl -> Recognize(This) ) + +#define IInkEdit_GetGestureStatus(This,Gesture,pListen) \ + ( (This)->lpVtbl -> GetGestureStatus(This,Gesture,pListen) ) + +#define IInkEdit_SetGestureStatus(This,Gesture,Listen) \ + ( (This)->lpVtbl -> SetGestureStatus(This,Gesture,Listen) ) + +#define IInkEdit_put_BackColor(This,clr) \ + ( (This)->lpVtbl -> put_BackColor(This,clr) ) + +#define IInkEdit_get_BackColor(This,pclr) \ + ( (This)->lpVtbl -> get_BackColor(This,pclr) ) + +#define IInkEdit_get_Appearance(This,pAppearance) \ + ( (This)->lpVtbl -> get_Appearance(This,pAppearance) ) + +#define IInkEdit_put_Appearance(This,pAppearance) \ + ( (This)->lpVtbl -> put_Appearance(This,pAppearance) ) + +#define IInkEdit_get_BorderStyle(This,pBorderStyle) \ + ( (This)->lpVtbl -> get_BorderStyle(This,pBorderStyle) ) + +#define IInkEdit_put_BorderStyle(This,pBorderStyle) \ + ( (This)->lpVtbl -> put_BorderStyle(This,pBorderStyle) ) + +#define IInkEdit_get_Hwnd(This,pohHwnd) \ + ( (This)->lpVtbl -> get_Hwnd(This,pohHwnd) ) + +#define IInkEdit_get_Font(This,ppFont) \ + ( (This)->lpVtbl -> get_Font(This,ppFont) ) + +#define IInkEdit_putref_Font(This,ppFont) \ + ( (This)->lpVtbl -> putref_Font(This,ppFont) ) + +#define IInkEdit_get_Text(This,pbstrText) \ + ( (This)->lpVtbl -> get_Text(This,pbstrText) ) + +#define IInkEdit_put_Text(This,pbstrText) \ + ( (This)->lpVtbl -> put_Text(This,pbstrText) ) + +#define IInkEdit_get_MouseIcon(This,MouseIcon) \ + ( (This)->lpVtbl -> get_MouseIcon(This,MouseIcon) ) + +#define IInkEdit_put_MouseIcon(This,MouseIcon) \ + ( (This)->lpVtbl -> put_MouseIcon(This,MouseIcon) ) + +#define IInkEdit_putref_MouseIcon(This,MouseIcon) \ + ( (This)->lpVtbl -> putref_MouseIcon(This,MouseIcon) ) + +#define IInkEdit_get_MousePointer(This,MousePointer) \ + ( (This)->lpVtbl -> get_MousePointer(This,MousePointer) ) + +#define IInkEdit_put_MousePointer(This,MousePointer) \ + ( (This)->lpVtbl -> put_MousePointer(This,MousePointer) ) + +#define IInkEdit_get_Locked(This,pVal) \ + ( (This)->lpVtbl -> get_Locked(This,pVal) ) + +#define IInkEdit_put_Locked(This,newVal) \ + ( (This)->lpVtbl -> put_Locked(This,newVal) ) + +#define IInkEdit_get_Enabled(This,pVal) \ + ( (This)->lpVtbl -> get_Enabled(This,pVal) ) + +#define IInkEdit_put_Enabled(This,newVal) \ + ( (This)->lpVtbl -> put_Enabled(This,newVal) ) + +#define IInkEdit_get_MaxLength(This,plMaxLength) \ + ( (This)->lpVtbl -> get_MaxLength(This,plMaxLength) ) + +#define IInkEdit_put_MaxLength(This,lMaxLength) \ + ( (This)->lpVtbl -> put_MaxLength(This,lMaxLength) ) + +#define IInkEdit_get_MultiLine(This,pVal) \ + ( (This)->lpVtbl -> get_MultiLine(This,pVal) ) + +#define IInkEdit_put_MultiLine(This,newVal) \ + ( (This)->lpVtbl -> put_MultiLine(This,newVal) ) + +#define IInkEdit_get_ScrollBars(This,pVal) \ + ( (This)->lpVtbl -> get_ScrollBars(This,pVal) ) + +#define IInkEdit_put_ScrollBars(This,newVal) \ + ( (This)->lpVtbl -> put_ScrollBars(This,newVal) ) + +#define IInkEdit_get_DisableNoScroll(This,pVal) \ + ( (This)->lpVtbl -> get_DisableNoScroll(This,pVal) ) + +#define IInkEdit_put_DisableNoScroll(This,newVal) \ + ( (This)->lpVtbl -> put_DisableNoScroll(This,newVal) ) + +#define IInkEdit_get_SelAlignment(This,pvarSelAlignment) \ + ( (This)->lpVtbl -> get_SelAlignment(This,pvarSelAlignment) ) + +#define IInkEdit_put_SelAlignment(This,pvarSelAlignment) \ + ( (This)->lpVtbl -> put_SelAlignment(This,pvarSelAlignment) ) + +#define IInkEdit_get_SelBold(This,pvarSelBold) \ + ( (This)->lpVtbl -> get_SelBold(This,pvarSelBold) ) + +#define IInkEdit_put_SelBold(This,pvarSelBold) \ + ( (This)->lpVtbl -> put_SelBold(This,pvarSelBold) ) + +#define IInkEdit_get_SelItalic(This,pvarSelItalic) \ + ( (This)->lpVtbl -> get_SelItalic(This,pvarSelItalic) ) + +#define IInkEdit_put_SelItalic(This,pvarSelItalic) \ + ( (This)->lpVtbl -> put_SelItalic(This,pvarSelItalic) ) + +#define IInkEdit_get_SelUnderline(This,pvarSelUnderline) \ + ( (This)->lpVtbl -> get_SelUnderline(This,pvarSelUnderline) ) + +#define IInkEdit_put_SelUnderline(This,pvarSelUnderline) \ + ( (This)->lpVtbl -> put_SelUnderline(This,pvarSelUnderline) ) + +#define IInkEdit_get_SelColor(This,pvarSelColor) \ + ( (This)->lpVtbl -> get_SelColor(This,pvarSelColor) ) + +#define IInkEdit_put_SelColor(This,pvarSelColor) \ + ( (This)->lpVtbl -> put_SelColor(This,pvarSelColor) ) + +#define IInkEdit_get_SelFontName(This,pvarSelFontName) \ + ( (This)->lpVtbl -> get_SelFontName(This,pvarSelFontName) ) + +#define IInkEdit_put_SelFontName(This,pvarSelFontName) \ + ( (This)->lpVtbl -> put_SelFontName(This,pvarSelFontName) ) + +#define IInkEdit_get_SelFontSize(This,pvarSelFontSize) \ + ( (This)->lpVtbl -> get_SelFontSize(This,pvarSelFontSize) ) + +#define IInkEdit_put_SelFontSize(This,pvarSelFontSize) \ + ( (This)->lpVtbl -> put_SelFontSize(This,pvarSelFontSize) ) + +#define IInkEdit_get_SelCharOffset(This,pvarSelCharOffset) \ + ( (This)->lpVtbl -> get_SelCharOffset(This,pvarSelCharOffset) ) + +#define IInkEdit_put_SelCharOffset(This,pvarSelCharOffset) \ + ( (This)->lpVtbl -> put_SelCharOffset(This,pvarSelCharOffset) ) + +#define IInkEdit_get_TextRTF(This,pbstrTextRTF) \ + ( (This)->lpVtbl -> get_TextRTF(This,pbstrTextRTF) ) + +#define IInkEdit_put_TextRTF(This,pbstrTextRTF) \ + ( (This)->lpVtbl -> put_TextRTF(This,pbstrTextRTF) ) + +#define IInkEdit_get_SelStart(This,plSelStart) \ + ( (This)->lpVtbl -> get_SelStart(This,plSelStart) ) + +#define IInkEdit_put_SelStart(This,plSelStart) \ + ( (This)->lpVtbl -> put_SelStart(This,plSelStart) ) + +#define IInkEdit_get_SelLength(This,plSelLength) \ + ( (This)->lpVtbl -> get_SelLength(This,plSelLength) ) + +#define IInkEdit_put_SelLength(This,plSelLength) \ + ( (This)->lpVtbl -> put_SelLength(This,plSelLength) ) + +#define IInkEdit_get_SelText(This,pbstrSelText) \ + ( (This)->lpVtbl -> get_SelText(This,pbstrSelText) ) + +#define IInkEdit_put_SelText(This,pbstrSelText) \ + ( (This)->lpVtbl -> put_SelText(This,pbstrSelText) ) + +#define IInkEdit_get_SelRTF(This,pbstrSelRTF) \ + ( (This)->lpVtbl -> get_SelRTF(This,pbstrSelRTF) ) + +#define IInkEdit_put_SelRTF(This,pbstrSelRTF) \ + ( (This)->lpVtbl -> put_SelRTF(This,pbstrSelRTF) ) + +#define IInkEdit_Refresh(This) \ + ( (This)->lpVtbl -> Refresh(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInkEdit_INTERFACE_DEFINED__ */ + + +#ifndef ___IInkEditEvents_DISPINTERFACE_DEFINED__ +#define ___IInkEditEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface _IInkEditEvents */ +/* [helpcontext][helpstring][uuid] */ + + +EXTERN_C const IID DIID__IInkEditEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E3B0B797-A72E-46DB-A0D7-6C9EBA8E9BBC") + _IInkEditEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct _IInkEditEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _IInkEditEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _IInkEditEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _IInkEditEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _IInkEditEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _IInkEditEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _IInkEditEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _IInkEditEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } _IInkEditEventsVtbl; + + interface _IInkEditEvents + { + CONST_VTBL struct _IInkEditEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define _IInkEditEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define _IInkEditEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define _IInkEditEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define _IInkEditEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define _IInkEditEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define _IInkEditEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define _IInkEditEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* ___IInkEditEvents_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_InkEdit; + +#ifdef __cplusplus + +class DECLSPEC_UUID("E5CA59F5-57C4-4DD8-9BD6-1DEEEDD27AF4") +InkEdit; +#endif +#endif /* __INKEDLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_inked_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_inked_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inked_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/inked_i.c b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inked_i.c new file mode 100644 index 0000000000000000000000000000000000000000..1cd6e0c7209abe72591f3caec2e1d4c7ab5a694b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inked_i.c @@ -0,0 +1,77 @@ + + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + +/* link this file in with the server and any clients */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +#ifdef __cplusplus +extern "C"{ +#endif + + +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef struct _IID +{ + unsigned long x; + unsigned short s1; + unsigned short s2; + unsigned char c[8]; +} IID; + +#endif // __IID_DEFINED__ + +#ifndef CLSID_DEFINED +#define CLSID_DEFINED +typedef IID CLSID; +#endif // CLSID_DEFINED + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} + +#endif // !_MIDL_USE_GUIDDEF_ + +MIDL_DEFINE_GUID(IID, LIBID_INKEDLib,0x8405D0DF,0x9FDD,0x4829,0xAE,0xAD,0x8E,0x2B,0x0A,0x18,0xFE,0xA4); + + +MIDL_DEFINE_GUID(IID, IID_IInkEdit,0xF2127A19,0xFBFB,0x4AED,0x84,0x64,0x3F,0x36,0xD7,0x8C,0xFE,0xFB); + + +MIDL_DEFINE_GUID(IID, DIID__IInkEditEvents,0xE3B0B797,0xA72E,0x46DB,0xA0,0xD7,0x6C,0x9E,0xBA,0x8E,0x9B,0xBC); + + +MIDL_DEFINE_GUID(CLSID, CLSID_InkEdit,0xE5CA59F5,0x57C4,0x4DD8,0x9B,0xD6,0x1D,0xEE,0xED,0xD2,0x7A,0xF4); + +#undef MIDL_DEFINE_GUID + +#ifdef __cplusplus +} +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/inkrenderer.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inkrenderer.h new file mode 100644 index 0000000000000000000000000000000000000000..51ee098c2e31df2eb247e96c7dc28a2df0b3f843 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inkrenderer.h @@ -0,0 +1,322 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __inkrenderer_h__ +#define __inkrenderer_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IInkD2DRenderer_FWD_DEFINED__ +#define __IInkD2DRenderer_FWD_DEFINED__ +typedef interface IInkD2DRenderer IInkD2DRenderer; + +#endif /* __IInkD2DRenderer_FWD_DEFINED__ */ + + +#ifndef __IInkD2DRenderer2_FWD_DEFINED__ +#define __IInkD2DRenderer2_FWD_DEFINED__ +typedef interface IInkD2DRenderer2 IInkD2DRenderer2; + +#endif /* __IInkD2DRenderer2_FWD_DEFINED__ */ + + +#ifndef __InkD2DRenderer_FWD_DEFINED__ +#define __InkD2DRenderer_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class InkD2DRenderer InkD2DRenderer; +#else +typedef struct InkD2DRenderer InkD2DRenderer; +#endif /* __cplusplus */ + +#endif /* __InkD2DRenderer_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "inspectable.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_inkrenderer_0000_0000 */ +/* [local] */ + +#include +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +typedef /* [public][public] */ +enum __MIDL___MIDL_itf_inkrenderer_0000_0000_0001 + { + USE_SYSTEM_COLORS_WHEN_NECESSARY = 0, + USE_SYSTEM_COLORS = 1, + USE_ORIGINAL_COLORS = 2 + } INK_HIGH_CONTRAST_ADJUSTMENT; + + + +extern RPC_IF_HANDLE __MIDL_itf_inkrenderer_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inkrenderer_0000_0000_v0_0_s_ifspec; + +#ifndef __IInkD2DRenderer_INTERFACE_DEFINED__ +#define __IInkD2DRenderer_INTERFACE_DEFINED__ + +/* interface IInkD2DRenderer */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IInkD2DRenderer; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("407fb1de-f85a-4150-97cf-b7fb274fb4f8") + IInkD2DRenderer : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Draw( + /* [in] */ __RPC__in_opt IUnknown *pD2D1DeviceContext, + /* [in] */ __RPC__in_opt IUnknown *pInkStrokeIterable, + /* [in] */ BOOL fHighContrast) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInkD2DRendererVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInkD2DRenderer * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInkD2DRenderer * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInkD2DRenderer * This); + + DECLSPEC_XFGVIRT(IInkD2DRenderer, Draw) + HRESULT ( STDMETHODCALLTYPE *Draw )( + __RPC__in IInkD2DRenderer * This, + /* [in] */ __RPC__in_opt IUnknown *pD2D1DeviceContext, + /* [in] */ __RPC__in_opt IUnknown *pInkStrokeIterable, + /* [in] */ BOOL fHighContrast); + + END_INTERFACE + } IInkD2DRendererVtbl; + + interface IInkD2DRenderer + { + CONST_VTBL struct IInkD2DRendererVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInkD2DRenderer_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInkD2DRenderer_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInkD2DRenderer_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInkD2DRenderer_Draw(This,pD2D1DeviceContext,pInkStrokeIterable,fHighContrast) \ + ( (This)->lpVtbl -> Draw(This,pD2D1DeviceContext,pInkStrokeIterable,fHighContrast) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInkD2DRenderer_INTERFACE_DEFINED__ */ + + +#ifndef __IInkD2DRenderer2_INTERFACE_DEFINED__ +#define __IInkD2DRenderer2_INTERFACE_DEFINED__ + +/* interface IInkD2DRenderer2 */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IInkD2DRenderer2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0a95dcd9-4578-4b71-b20b-bf664d4bfeee") + IInkD2DRenderer2 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Draw( + /* [in] */ __RPC__in_opt IUnknown *pD2D1DeviceContext, + /* [in] */ __RPC__in_opt IUnknown *pInkStrokeIterable, + /* [in] */ INK_HIGH_CONTRAST_ADJUSTMENT highContrastAdjustment) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInkD2DRenderer2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInkD2DRenderer2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInkD2DRenderer2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInkD2DRenderer2 * This); + + DECLSPEC_XFGVIRT(IInkD2DRenderer2, Draw) + HRESULT ( STDMETHODCALLTYPE *Draw )( + __RPC__in IInkD2DRenderer2 * This, + /* [in] */ __RPC__in_opt IUnknown *pD2D1DeviceContext, + /* [in] */ __RPC__in_opt IUnknown *pInkStrokeIterable, + /* [in] */ INK_HIGH_CONTRAST_ADJUSTMENT highContrastAdjustment); + + END_INTERFACE + } IInkD2DRenderer2Vtbl; + + interface IInkD2DRenderer2 + { + CONST_VTBL struct IInkD2DRenderer2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInkD2DRenderer2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInkD2DRenderer2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInkD2DRenderer2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInkD2DRenderer2_Draw(This,pD2D1DeviceContext,pInkStrokeIterable,highContrastAdjustment) \ + ( (This)->lpVtbl -> Draw(This,pD2D1DeviceContext,pInkStrokeIterable,highContrastAdjustment) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInkD2DRenderer2_INTERFACE_DEFINED__ */ + + + +#ifndef __InkD2DRendererLib_LIBRARY_DEFINED__ +#define __InkD2DRendererLib_LIBRARY_DEFINED__ + +/* library InkD2DRendererLib */ +/* [uuid] */ + + +EXTERN_C const IID LIBID_InkD2DRendererLib; + +EXTERN_C const CLSID CLSID_InkD2DRenderer; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4044e60c-7b01-4671-a97c-04e0210a07a5") +InkD2DRenderer; +#endif +#endif /* __InkD2DRendererLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_inkrenderer_0000_0003 */ +/* [local] */ + +#endif // NTDDI_VERSION >= NTDDI_WINTHRESHOLD +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_inkrenderer_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inkrenderer_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/inkrenderer.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inkrenderer.idl new file mode 100644 index 0000000000000000000000000000000000000000..d78afc4df86a5272318ed5c727237db9648e2d94 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inkrenderer.idl @@ -0,0 +1,55 @@ +cpp_quote("#include ") + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +import "oaidl.idl"; +import "ocidl.idl"; +import "inspectable.idl"; + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD)") + +// INK_HIGH_CONTRAST_ADJUSTMENT enum +// should have have the same values +// that InkHighContrastAdjustment from +// windows.ui.input.inking.idl +typedef enum +{ + USE_SYSTEM_COLORS_WHEN_NECESSARY = 0, + USE_SYSTEM_COLORS = 1, + USE_ORIGINAL_COLORS =2, +} INK_HIGH_CONTRAST_ADJUSTMENT; + +// Interfaces +[object, uuid(407fb1de-f85a-4150-97cf-b7fb274fb4f8)] +interface IInkD2DRenderer : IUnknown +{ + HRESULT Draw([in] IUnknown *pD2D1DeviceContext, + [in] IUnknown *pInkStrokeIterable, + [in] BOOL fHighContrast); +} + +// Interfaces +[object, uuid(0a95dcd9-4578-4b71-b20b-bf664d4bfeee)] +interface IInkD2DRenderer2 : IUnknown +{ + HRESULT Draw([in] IUnknown *pD2D1DeviceContext, + [in] IUnknown *pInkStrokeIterable, + [in] INK_HIGH_CONTRAST_ADJUSTMENT highContrastAdjustment); +} + +[uuid(390d0ab0-19e2-46bb-862e-b09f3cdcf8b9)] +library InkD2DRendererLib +{ + [uuid(4044e60c-7b01-4671-a97c-04e0210a07a5)] + coclass InkD2DRenderer + { + [default] interface IInkD2DRenderer; + interface IInkD2DRenderer2; + } +}; + +cpp_quote("#endif // NTDDI_VERSION >= NTDDI_WINTHRESHOLD") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/inkrenderer_i.c b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inkrenderer_i.c new file mode 100644 index 0000000000000000000000000000000000000000..c35f525cea92dff269ec42f63f0eb8bba7565593 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inkrenderer_i.c @@ -0,0 +1,77 @@ + + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + +/* link this file in with the server and any clients */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +#ifdef __cplusplus +extern "C"{ +#endif + + +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef struct _IID +{ + unsigned long x; + unsigned short s1; + unsigned short s2; + unsigned char c[8]; +} IID; + +#endif // __IID_DEFINED__ + +#ifndef CLSID_DEFINED +#define CLSID_DEFINED +typedef IID CLSID; +#endif // CLSID_DEFINED + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} + +#endif // !_MIDL_USE_GUIDDEF_ + +MIDL_DEFINE_GUID(IID, IID_IInkD2DRenderer,0x407fb1de,0xf85a,0x4150,0x97,0xcf,0xb7,0xfb,0x27,0x4f,0xb4,0xf8); + + +MIDL_DEFINE_GUID(IID, IID_IInkD2DRenderer2,0x0a95dcd9,0x4578,0x4b71,0xb2,0x0b,0xbf,0x66,0x4d,0x4b,0xfe,0xee); + + +MIDL_DEFINE_GUID(IID, LIBID_InkD2DRendererLib,0x390d0ab0,0x19e2,0x46bb,0x86,0x2e,0xb0,0x9f,0x3c,0xdc,0xf8,0xb9); + + +MIDL_DEFINE_GUID(CLSID, CLSID_InkD2DRenderer,0x4044e60c,0x7b01,0x4671,0xa9,0x7c,0x04,0xe0,0x21,0x0a,0x07,0xa5); + +#undef MIDL_DEFINE_GUID + +#ifdef __cplusplus +} +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpaneinterop.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpaneinterop.h new file mode 100644 index 0000000000000000000000000000000000000000..c1c676ca4776466cd3c875d13a6bb75f3868b1ca --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpaneinterop.h @@ -0,0 +1,222 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __inputpaneinterop_h__ +#define __inputpaneinterop_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IInputPaneInterop_FWD_DEFINED__ +#define __IInputPaneInterop_FWD_DEFINED__ +typedef interface IInputPaneInterop IInputPaneInterop; + +#endif /* __IInputPaneInterop_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "inspectable.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_inputpaneinterop_0000_0000 */ +/* [local] */ + +#include +#if (NTDDI_VERSION >= NTDDI_WIN10_RS1) +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_inputpaneinterop_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inputpaneinterop_0000_0000_v0_0_s_ifspec; + +#ifndef __IInputPaneInterop_INTERFACE_DEFINED__ +#define __IInputPaneInterop_INTERFACE_DEFINED__ + +/* interface IInputPaneInterop */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IInputPaneInterop; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("75CF2C57-9195-4931-8332-F0B409E916AF") + IInputPaneInterop : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE GetForWindow( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **inputPane) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInputPaneInteropVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInputPaneInterop * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInputPaneInterop * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInputPaneInterop * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + __RPC__in IInputPaneInterop * This, + /* [out] */ __RPC__out ULONG *iidCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*iidCount) IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + __RPC__in IInputPaneInterop * This, + /* [out] */ __RPC__deref_out_opt HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + __RPC__in IInputPaneInterop * This, + /* [out] */ __RPC__out TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IInputPaneInterop, GetForWindow) + HRESULT ( STDMETHODCALLTYPE *GetForWindow )( + __RPC__in IInputPaneInterop * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **inputPane); + + END_INTERFACE + } IInputPaneInteropVtbl; + + interface IInputPaneInterop + { + CONST_VTBL struct IInputPaneInteropVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInputPaneInterop_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInputPaneInterop_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInputPaneInterop_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInputPaneInterop_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IInputPaneInterop_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IInputPaneInterop_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IInputPaneInterop_GetForWindow(This,appWindow,riid,inputPane) \ + ( (This)->lpVtbl -> GetForWindow(This,appWindow,riid,inputPane) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInputPaneInterop_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_inputpaneinterop_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif //(NTDDI_VERSION >= NTDDI_WIN10_RS1) + + +extern RPC_IF_HANDLE __MIDL_itf_inputpaneinterop_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inputpaneinterop_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpaneinterop.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpaneinterop.idl new file mode 100644 index 0000000000000000000000000000000000000000..8c31557601850ac8f685fb308105bf56cb90556c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpaneinterop.idl @@ -0,0 +1,30 @@ +/* InputPaneInterop.idl +* +* IDL defines for COM APIs to support interop with Windows.UI.ViewManagement.CInputPaneEventSourceFactory +* +* Copyright (c) Microsoft Corporation. All rights reserved +*/ + +import "inspectable.idl"; + +cpp_quote("#include ") + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10_RS1)") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +[ + uuid(75CF2C57-9195-4931-8332-F0B409E916AF), +] +interface IInputPaneInterop : IInspectable +{ + // create an instance of InputPane inited with the hwnd + HRESULT GetForWindow([in] HWND appWindow, [in] REFIID riid, + [out, retval, iid_is(riid)] void** inputPane); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WIN10_RS1)") \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpanelconfiguration.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpanelconfiguration.h new file mode 100644 index 0000000000000000000000000000000000000000..4180d0a4d77ee03ff270acf9e963bb3899b401ff --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpanelconfiguration.h @@ -0,0 +1,301 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __inputpanelconfiguration_h__ +#define __inputpanelconfiguration_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IInputPanelConfiguration_FWD_DEFINED__ +#define __IInputPanelConfiguration_FWD_DEFINED__ +typedef interface IInputPanelConfiguration IInputPanelConfiguration; + +#endif /* __IInputPanelConfiguration_FWD_DEFINED__ */ + + +#ifndef __IInputPanelInvocationConfiguration_FWD_DEFINED__ +#define __IInputPanelInvocationConfiguration_FWD_DEFINED__ +typedef interface IInputPanelInvocationConfiguration IInputPanelInvocationConfiguration; + +#endif /* __IInputPanelInvocationConfiguration_FWD_DEFINED__ */ + + +#ifndef __InputPanelConfiguration_FWD_DEFINED__ +#define __InputPanelConfiguration_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class InputPanelConfiguration InputPanelConfiguration; +#else +typedef struct InputPanelConfiguration InputPanelConfiguration; +#endif /* __cplusplus */ + +#endif /* __InputPanelConfiguration_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_inputpanelconfiguration_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if (NTDDI_VERSION >= NTDDI_WIN8) + + +extern RPC_IF_HANDLE __MIDL_itf_inputpanelconfiguration_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inputpanelconfiguration_0000_0000_v0_0_s_ifspec; + +#ifndef __IInputPanelConfiguration_INTERFACE_DEFINED__ +#define __IInputPanelConfiguration_INTERFACE_DEFINED__ + +/* interface IInputPanelConfiguration */ +/* [object][helpstring][unique][uuid] */ + + +EXTERN_C const IID IID_IInputPanelConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("41C81592-514C-48BD-A22E-E6AF638521A6") + IInputPanelConfiguration : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE EnableFocusTracking( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInputPanelConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInputPanelConfiguration * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInputPanelConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInputPanelConfiguration * This); + + DECLSPEC_XFGVIRT(IInputPanelConfiguration, EnableFocusTracking) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *EnableFocusTracking )( + __RPC__in IInputPanelConfiguration * This); + + END_INTERFACE + } IInputPanelConfigurationVtbl; + + interface IInputPanelConfiguration + { + CONST_VTBL struct IInputPanelConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInputPanelConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInputPanelConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInputPanelConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInputPanelConfiguration_EnableFocusTracking(This) \ + ( (This)->lpVtbl -> EnableFocusTracking(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInputPanelConfiguration_INTERFACE_DEFINED__ */ + + +#ifndef __IInputPanelInvocationConfiguration_INTERFACE_DEFINED__ +#define __IInputPanelInvocationConfiguration_INTERFACE_DEFINED__ + +/* interface IInputPanelInvocationConfiguration */ +/* [object][helpstring][unique][uuid] */ + + +EXTERN_C const IID IID_IInputPanelInvocationConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A213F136-3B45-4362-A332-EFB6547CD432") + IInputPanelInvocationConfiguration : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RequireTouchInEditControl( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInputPanelInvocationConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInputPanelInvocationConfiguration * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInputPanelInvocationConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInputPanelInvocationConfiguration * This); + + DECLSPEC_XFGVIRT(IInputPanelInvocationConfiguration, RequireTouchInEditControl) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RequireTouchInEditControl )( + __RPC__in IInputPanelInvocationConfiguration * This); + + END_INTERFACE + } IInputPanelInvocationConfigurationVtbl; + + interface IInputPanelInvocationConfiguration + { + CONST_VTBL struct IInputPanelInvocationConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInputPanelInvocationConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInputPanelInvocationConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInputPanelInvocationConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInputPanelInvocationConfiguration_RequireTouchInEditControl(This) \ + ( (This)->lpVtbl -> RequireTouchInEditControl(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInputPanelInvocationConfiguration_INTERFACE_DEFINED__ */ + + + +#ifndef __InputPanelConfigurationLib_LIBRARY_DEFINED__ +#define __InputPanelConfigurationLib_LIBRARY_DEFINED__ + +/* library InputPanelConfigurationLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_InputPanelConfigurationLib; + +EXTERN_C const CLSID CLSID_InputPanelConfiguration; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2853ADD3-F096-4C63-A78F-7FA3EA837FB7") +InputPanelConfiguration; +#endif +#endif /* __InputPanelConfigurationLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_inputpanelconfiguration_0000_0003 */ +/* [local] */ + +#endif // NTDDI_VERSION >= NTDDI_WIN8 +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_inputpanelconfiguration_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_inputpanelconfiguration_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpanelconfiguration_i.c b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpanelconfiguration_i.c new file mode 100644 index 0000000000000000000000000000000000000000..47a30858c2b0425edd2f9f45389f05f9f5b2b51f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/inputpanelconfiguration_i.c @@ -0,0 +1,77 @@ + + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + +/* link this file in with the server and any clients */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +#ifdef __cplusplus +extern "C"{ +#endif + + +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef struct _IID +{ + unsigned long x; + unsigned short s1; + unsigned short s2; + unsigned char c[8]; +} IID; + +#endif // __IID_DEFINED__ + +#ifndef CLSID_DEFINED +#define CLSID_DEFINED +typedef IID CLSID; +#endif // CLSID_DEFINED + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} + +#endif // !_MIDL_USE_GUIDDEF_ + +MIDL_DEFINE_GUID(IID, IID_IInputPanelConfiguration,0x41C81592,0x514C,0x48BD,0xA2,0x2E,0xE6,0xAF,0x63,0x85,0x21,0xA6); + + +MIDL_DEFINE_GUID(IID, IID_IInputPanelInvocationConfiguration,0xA213F136,0x3B45,0x4362,0xA3,0x32,0xEF,0xB6,0x54,0x7C,0xD4,0x32); + + +MIDL_DEFINE_GUID(IID, LIBID_InputPanelConfigurationLib,0x82E4F0B2,0x5440,0x42E4,0x8E,0xD9,0xA9,0x15,0xD1,0x21,0x6C,0x79); + + +MIDL_DEFINE_GUID(CLSID, CLSID_InputPanelConfiguration,0x2853ADD3,0xF096,0x4C63,0xA7,0x8F,0x7F,0xA3,0xEA,0x83,0x7F,0xB7); + +#undef MIDL_DEFINE_GUID + +#ifdef __cplusplus +} +#endif + + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/interlockedapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/interlockedapi.h new file mode 100644 index 0000000000000000000000000000000000000000..98ff2d30b05fc0371b8f0599b8a69d6c372589af --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/interlockedapi.h @@ -0,0 +1,113 @@ +/******************************************************************************** +* * +* interlockedapi.h -- ApiSet Contract for api-ms-win-core-interlocked-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _INTERLOCKAPI_H_ +#define _INTERLOCKAPI_H_ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +#ifndef NOWINBASEINTERLOCK + +#ifndef _NTOS_ + +#endif /* _NTOS_ */ + +#endif /* NOWINBASEINTERLOCK */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#ifndef NOWINBASEINTERLOCK + +#ifndef _NTOS_ + +#if defined(_SLIST_HEADER_) && !defined(_NTOSP_) + +WINBASEAPI +VOID +WINAPI +InitializeSListHead( + _Out_ PSLIST_HEADER ListHead + ); + +WINBASEAPI +PSLIST_ENTRY +WINAPI +InterlockedPopEntrySList( + _Inout_ PSLIST_HEADER ListHead + ); + +WINBASEAPI +PSLIST_ENTRY +WINAPI +InterlockedPushEntrySList( + _Inout_ PSLIST_HEADER ListHead, + _Inout_ __drv_aliasesMem PSLIST_ENTRY ListEntry + ); + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +#define InterlockedPushListSList InterlockedPushListSListEx + +WINBASEAPI +PSLIST_ENTRY +WINAPI +InterlockedPushListSListEx( + _Inout_ PSLIST_HEADER ListHead, + _Inout_ PSLIST_ENTRY List, + _Inout_ PSLIST_ENTRY ListEnd, + _In_ ULONG Count + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN8) + +WINBASEAPI +PSLIST_ENTRY +WINAPI +InterlockedFlushSList( + _Inout_ PSLIST_HEADER ListHead + ); + +WINBASEAPI +USHORT +WINAPI +QueryDepthSList( + _In_ PSLIST_HEADER ListHead + ); + +#endif /* SLIST_HEADER_ */ + +#endif /* _NTOS_ */ + +#endif /* NOWINBASEINTERLOCK */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _INTERLOCKAPI_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ioapiset.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ioapiset.h new file mode 100644 index 0000000000000000000000000000000000000000..95290f723c221af68bc74c5446b7dfdfea084b73 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ioapiset.h @@ -0,0 +1,172 @@ +/******************************************************************************** +* * +* ioapiset.h -- ApiSet Contract for api-ms-win-core-io-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _IO_APISET_H_ +#define _IO_APISET_H_ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +_Ret_maybenull_ +HANDLE +WINAPI +CreateIoCompletionPort( + _In_ HANDLE FileHandle, + _In_opt_ HANDLE ExistingCompletionPort, + _In_ ULONG_PTR CompletionKey, + _In_ DWORD NumberOfConcurrentThreads + ); + +WINBASEAPI +BOOL +WINAPI +GetQueuedCompletionStatus( + _In_ HANDLE CompletionPort, + _Out_ LPDWORD lpNumberOfBytesTransferred, + _Out_ PULONG_PTR lpCompletionKey, + _Out_ LPOVERLAPPED* lpOverlapped, + _In_ DWORD dwMilliseconds + ); + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +BOOL +WINAPI +GetQueuedCompletionStatusEx( + _In_ HANDLE CompletionPort, + _Out_writes_to_(ulCount,*ulNumEntriesRemoved) LPOVERLAPPED_ENTRY lpCompletionPortEntries, + _In_ ULONG ulCount, + _Out_ PULONG ulNumEntriesRemoved, + _In_ DWORD dwMilliseconds, + _In_ BOOL fAlertable + ); + +#endif // _WIN32_WINNT >= 0x0600 + +WINBASEAPI +BOOL +WINAPI +PostQueuedCompletionStatus( + _In_ HANDLE CompletionPort, + _In_ DWORD dwNumberOfBytesTransferred, + _In_ ULONG_PTR dwCompletionKey, + _In_opt_ LPOVERLAPPED lpOverlapped + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Application Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +DeviceIoControl( + _In_ HANDLE hDevice, + _In_ DWORD dwIoControlCode, + _In_reads_bytes_opt_(nInBufferSize) LPVOID lpInBuffer, + _In_ DWORD nInBufferSize, + _Out_writes_bytes_to_opt_(nOutBufferSize,*lpBytesReturned) LPVOID lpOutBuffer, + _In_ DWORD nOutBufferSize, + _Out_opt_ LPDWORD lpBytesReturned, + _Inout_opt_ LPOVERLAPPED lpOverlapped + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +GetOverlappedResult( + _In_ HANDLE hFile, + _In_ LPOVERLAPPED lpOverlapped, + _Out_ LPDWORD lpNumberOfBytesTransferred, + _In_ BOOL bWait + ); + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +BOOL +WINAPI +CancelIoEx( + _In_ HANDLE hFile, + _In_opt_ LPOVERLAPPED lpOverlapped + ); + +#endif // _WIN32_WINNT >= 0x0600 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +CancelIo( + _In_ HANDLE hFile + ); + +WINBASEAPI +BOOL +WINAPI +GetOverlappedResultEx( + _In_ HANDLE hFile, + _In_ LPOVERLAPPED lpOverlapped, + _Out_ LPDWORD lpNumberOfBytesTransferred, + _In_ DWORD dwMilliseconds, + _In_ BOOL bAlertable + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +BOOL +WINAPI +CancelSynchronousIo( + _In_ HANDLE hThread + ); + +#endif // _WIN32_WINNT >= 0x0600 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _IO_APISET_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ioringapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ioringapi.h new file mode 100644 index 0000000000000000000000000000000000000000..f7ec762e06ae0f5e4e0c560c7bba701a09f13aed --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ioringapi.h @@ -0,0 +1,315 @@ +/******************************************************************* +* * +* ioringapi.h -- ApiSet Contract for api-ms-win-core-ioring-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +*******************************************************************/ + +#ifndef _APISET_IORING_ +#define _APISET_IORING_ + +#include +#include +#include +#include +#include +#include +#include +#include + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#ifdef NTDDI_WIN10_CO +#if (NTDDI_VERSION >= NTDDI_WIN10_CO) + +// Opaque `HANDLE` for an IORING +// Release resources held by this using CloseIoRing(); [NOT CloseHandle()!] +DECLARE_HANDLE(HIORING); + +// Flags to alter the behavior of the kernel for a submission queue entry +typedef enum IORING_SQE_FLAGS +{ + IOSQE_FLAGS_NONE = 0, +#ifdef NTDDI_WIN10_NI +#if (NTDDI_VERSION >= NTDDI_WIN10_NI) + IOSQE_FLAGS_DRAIN_PRECEDING_OPS = 0x00000001, +#endif +#endif +} IORING_SQE_FLAGS; +DEFINE_ENUM_FLAG_OPERATORS( IORING_SQE_FLAGS ) + +// Flags to configure the kernel behavior of an IoRing. The implementation will +// fail the create call if it does not understand any of the required flags and +// ignores any advisory flags that it does not understand. +typedef enum IORING_CREATE_REQUIRED_FLAGS +{ + IORING_CREATE_REQUIRED_FLAGS_NONE = 0, +} IORING_CREATE_REQUIRED_FLAGS; +DEFINE_ENUM_FLAG_OPERATORS( IORING_CREATE_REQUIRED_FLAGS ) + +typedef enum IORING_CREATE_ADVISORY_FLAGS +{ + IORING_CREATE_ADVISORY_FLAGS_NONE = 0, + + // Requests the IORING implementation to skip parameter checks in the builder APIs. + // Ordinarily the builder APIs perform checks to catch programming errors as early as possible. + // This flag is used to disable that if the implementation understands it (as an advisory flag + // it has no effect on an implementation that doesn't understand it so it is safe to use on all + // versions). Normally, this is used in RELEASE builds to eliminate the redundant checks. Errors + // from invalid parameters are still checked in the kernel and any errors appear in the completion + // queue entries for the operation. + IORING_CREATE_SKIP_BUILDER_PARAM_CHECKS = 0x00000001, +} IORING_CREATE_ADVISORY_FLAGS; +DEFINE_ENUM_FLAG_OPERATORS( IORING_CREATE_ADVISORY_FLAGS ) + +typedef struct IORING_CREATE_FLAGS +{ + IORING_CREATE_REQUIRED_FLAGS Required; + IORING_CREATE_ADVISORY_FLAGS Advisory; +} IORING_CREATE_FLAGS; + +typedef struct IORING_INFO +{ + IORING_VERSION IoRingVersion; + IORING_CREATE_FLAGS Flags; + UINT32 SubmissionQueueSize; + UINT32 CompletionQueueSize; +} IORING_INFO; + +typedef struct IORING_CAPABILITIES +{ + IORING_VERSION MaxVersion; + UINT32 MaxSubmissionQueueSize; + UINT32 MaxCompletionQueueSize; + IORING_FEATURE_FLAGS FeatureFlags; +} IORING_CAPABILITIES; + +// enum used as discriminator for references to resources that +// support preregistration in an IORING +typedef enum IORING_REF_KIND +{ + IORING_REF_RAW, + IORING_REF_REGISTERED, +} IORING_REF_KIND; + +typedef struct IORING_HANDLE_REF +{ +#ifdef __cplusplus + explicit IORING_HANDLE_REF(HANDLE h) + : Kind(IORING_REF_KIND::IORING_REF_RAW) + , Handle(h) + {} + + explicit IORING_HANDLE_REF(UINT32 index) + : Kind(IORING_REF_KIND::IORING_REF_REGISTERED) + , Handle(index) + {} +#endif + + IORING_REF_KIND Kind; + union HandleUnion + { +#ifdef __cplusplus + HandleUnion(HANDLE h) + : Handle(h) + {} + + HandleUnion(UINT32 index) + : Index(index) + {} +#endif + // Handle to the file object if Kind == IORING_REF_RAW + HANDLE Handle; + + // Index of registered file handle if Kind == IORING_REF_REGISTERED + UINT32 Index; + } Handle; +} IORING_HANDLE_REF; + +#ifdef __cplusplus +#define IoRingHandleRefFromHandle(h) IORING_HANDLE_REF(static_cast(h)) +#define IoRingHandleRefFromIndex(i) IORING_HANDLE_REF(static_cast(i)) +#else +#define IoRingHandleRefFromHandle(h) {IORING_REF_RAW, {.Handle = h}} +#define IoRingHandleRefFromIndex(i) {IORING_REF_REGISTERED, {.Index = i}} +#endif + +typedef struct IORING_BUFFER_REF +{ +#ifdef __cplusplus + explicit IORING_BUFFER_REF(void* address) + : Kind(IORING_REF_KIND::IORING_REF_RAW) + , Buffer(address) + {} + + explicit IORING_BUFFER_REF(IORING_REGISTERED_BUFFER registeredBuffer) + : Kind(IORING_REF_KIND::IORING_REF_REGISTERED) + , Buffer(registeredBuffer) + {} + + IORING_BUFFER_REF(UINT32 index, UINT32 offset) + : IORING_BUFFER_REF(IORING_REGISTERED_BUFFER{index, offset}) + {} +#endif + + IORING_REF_KIND Kind; + union BufferUnion + { +#ifdef __cplusplus + BufferUnion(void* address) + : Address(address) + {} + + BufferUnion(IORING_REGISTERED_BUFFER indexAndOffset) + : IndexAndOffset(indexAndOffset) + {} +#endif + // Address of the buffer if Kind == IORING_REF_RAW + void* Address; + + // Registered buffer details if Kind == IORING_REF_REGISTERED + IORING_REGISTERED_BUFFER IndexAndOffset; + }Buffer; +} IORING_BUFFER_REF; + +#ifdef __cplusplus +#define IoRingBufferRefFromPointer(p) IORING_BUFFER_REF(static_cast(p)) +#define IoRingBufferRefFromIndexAndOffset(i,o) IORING_BUFFER_REF((i),(o)) +#else +#define IoRingBufferRefFromPointer(p) {IORING_REF_RAW, {.Address = p}} +#define IoRingBufferRefFromIndexAndOffset(i,o) {IORING_REF_REGISTERED, {.IndexAndOffset = {(i),(o)}}} +#endif + +typedef struct IORING_CQE +{ + UINT_PTR UserData; + HRESULT ResultCode; + ULONG_PTR Information; +} IORING_CQE; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_CO +#endif // ifdef NTDDI_WIN10_CO + +#ifdef __cplusplus +extern "C" { +#endif + +STDAPI QueryIoRingCapabilities(_Out_ IORING_CAPABILITIES* capabilities); + +STDAPI_(BOOL) IsIoRingOpSupported(_In_ HIORING ioRing, IORING_OP_CODE op); + +STDAPI +CreateIoRing( + IORING_VERSION ioringVersion, + IORING_CREATE_FLAGS flags, + UINT32 submissionQueueSize, + UINT32 completionQueueSize, + _Out_ HIORING* h + ); + +STDAPI GetIoRingInfo(_In_ HIORING ioRing, _Out_ IORING_INFO* info); + +STDAPI SubmitIoRing(_In_ HIORING ioRing, UINT32 waitOperations, UINT32 milliseconds, _Out_opt_ UINT32* submittedEntries); + +STDAPI CloseIoRing(_In_ _Post_ptr_invalid_ HIORING ioRing); + +STDAPI PopIoRingCompletion(_In_ HIORING ioRing, _Out_ IORING_CQE* cqe); + +STDAPI SetIoRingCompletionEvent(_In_ HIORING ioRing, _In_ HANDLE hEvent); + +// Submission Queue entry builders + +// Builds a submission queue entry for IORING_OP_CANCEL +STDAPI BuildIoRingCancelRequest(_In_ HIORING ioRing, _In_ IORING_HANDLE_REF file, UINT_PTR opToCancel, UINT_PTR userData); + +// Builds a submission queue entry for IORING_OP_READ +STDAPI +BuildIoRingReadFile( + _In_ HIORING ioRing, + IORING_HANDLE_REF fileRef, + IORING_BUFFER_REF dataRef, + UINT32 numberOfBytesToRead, + UINT64 fileOffset, + UINT_PTR userData, + IORING_SQE_FLAGS sqeFlags + ); + +// Builds a submission queue entry for IORING_OP_REGISTER_FILES +STDAPI +BuildIoRingRegisterFileHandles( + _In_ HIORING ioRing, + UINT32 count, + _In_reads_(count) HANDLE const handles[], + UINT_PTR userData + ); + +// Builds a submission queue entry for IORING_OP_REGISTER_BUFFERS +STDAPI +BuildIoRingRegisterBuffers( + _In_ HIORING ioRing, + UINT32 count, + _In_reads_(count) IORING_BUFFER_INFO const buffers[], + UINT_PTR userData + ); + +#pragma region api-ms-win-core-ioring-l1-1-1 +STDAPI +BuildIoRingWriteFile( + _In_ HIORING ioRing, + IORING_HANDLE_REF fileRef, + IORING_BUFFER_REF bufferRef, + UINT32 numberOfBytesToWrite, + UINT64 fileOffset, + FILE_WRITE_FLAGS writeFlags, + UINT_PTR userData, + IORING_SQE_FLAGS sqeFlags + ); + +STDAPI +BuildIoRingFlushFile( + _In_ HIORING ioRing, + IORING_HANDLE_REF fileRef, + FILE_FLUSH_MODE flushMode, + UINT_PTR userData, + IORING_SQE_FLAGS sqeFlags + ); + +#pragma endregion // api-ms-win-core-ioring-l1-1-1 + +#pragma region api-ms-win-core-ioring-l1-1-2 +STDAPI +BuildIoRingReadFileScatter( + _In_ HIORING ioRing, + IORING_HANDLE_REF fileRef, + UINT32 segmentCount, + _In_reads_(segmentCount) FILE_SEGMENT_ELEMENT segmentArray[], + UINT32 numberOfBytesToRead, + UINT64 fileOffset, + UINT_PTR userData, + IORING_SQE_FLAGS sqeFlags + ); + +STDAPI +BuildIoRingWriteFileGather( + _In_ HIORING ioRing, + IORING_HANDLE_REF fileRef, + UINT32 segmentCount, + _In_reads_(segmentCount) FILE_SEGMENT_ELEMENT segmentArray[], + UINT32 numberOfBytesToWrite, + UINT64 fileOffset, + FILE_WRITE_FLAGS writeFlags, + UINT_PTR userData, + IORING_SQE_FLAGS sqeFlags + ); + +#pragma endregion // api-ms-win-core-ioring-l1-1-2 + +#ifdef __cplusplus +} //extern "C" +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion // Application Family or OneCore Family + +#endif // _APISET_IORING_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iphlpapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iphlpapi.h new file mode 100644 index 0000000000000000000000000000000000000000..15b1d4a0e7c1c157ef70b2bb0505f853996599a4 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iphlpapi.h @@ -0,0 +1,1463 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + iphlpapi.h + +Abstract: + Header file for functions to interact with the IP Stack for MIB-II and + related functionality + +--*/ + +#ifndef __IPHLPAPI_H__ +#define __IPHLPAPI_H__ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +////////////////////////////////////////////////////////////////////////////// +// // +// Establish DLL function linkage if supported by the current build // +// environment and not previously defined. // +// // +////////////////////////////////////////////////////////////////////////////// + +#ifndef IPHLPAPI_DLL_LINKAGE +#ifdef DECLSPEC_IMPORT +#define IPHLPAPI_DLL_LINKAGE DECLSPEC_IMPORT +#else +#define IPHLPAPI_DLL_LINKAGE +#endif +#endif + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#ifdef __cplusplus +extern "C" { +#endif + +////////////////////////////////////////////////////////////////////////////// +// // +// IPRTRMIB.H has the definitions of the structures used to set and get // +// information // +// // +////////////////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +////////////////////////////////////////////////////////////////////////////// +// // +// The GetXXXTable APIs take a buffer and a size of buffer. If the buffer // +// is not large enough, the APIs return ERROR_INSUFFICIENT_BUFFER and // +// *pdwSize is the required buffer size // +// The bOrder is a BOOLEAN, which if TRUE sorts the table according to // +// MIB-II (RFC XXXX) // +// // +////////////////////////////////////////////////////////////////////////////// + + +////////////////////////////////////////////////////////////////////////////// +// // +// Retrieves the number of interfaces in the system. These include LAN and // +// WAN interfaces // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetNumberOfInterfaces( + _Out_ PDWORD pdwNumIf + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Gets the MIB-II ifEntry // +// The dwIndex field of the MIB_IFROW should be set to the index of the // +// interface being queried // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetIfEntry( + _Inout_ PMIB_IFROW pIfRow + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Gets the MIB-II IfTable // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetIfTable( + _Out_writes_bytes_opt_(*pdwSize) PMIB_IFTABLE pIfTable, + _Inout_ PULONG pdwSize, + _In_ BOOL bOrder + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Gets the Interface to IP Address mapping // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetIpAddrTable( + _Out_writes_bytes_opt_(*pdwSize) PMIB_IPADDRTABLE pIpAddrTable, + _Inout_ PULONG pdwSize, + _In_ BOOL bOrder + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Gets the current IP Address to Physical Address (ARP) mapping // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetIpNetTable( + _Out_writes_bytes_opt_(*SizePointer) PMIB_IPNETTABLE IpNetTable, + _Inout_ PULONG SizePointer, + _In_ BOOL Order + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Gets the IP Routing Table (RFX XXXX) // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetIpForwardTable( + _Out_writes_bytes_opt_(*pdwSize) PMIB_IPFORWARDTABLE pIpForwardTable, + _Inout_ PULONG pdwSize, + _In_ BOOL bOrder + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Gets TCP Connection/UDP Listener Table // +// // +////////////////////////////////////////////////////////////////////////////// + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetTcpTable( + _Out_writes_bytes_opt_(*SizePointer) PMIB_TCPTABLE TcpTable, + _Inout_ PULONG SizePointer, + _In_ BOOL Order + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetExtendedTcpTable( + _Out_writes_bytes_opt_(*pdwSize) PVOID pTcpTable, + _Inout_ + _When_(ulAf == AF_INET, _Deref_in_range_(>=, sizeof(MIB_TCPTABLE))) + _When_( + (TableClass == TCP_TABLE_OWNER_PID_LISTENER || + TableClass == TCP_TABLE_OWNER_PID_CONNECTIONS || + TableClass == TCP_TABLE_OWNER_PID_ALL) && ulAf == AF_INET6, + _Deref_in_range_(>=, sizeof(MIB_TCP6TABLE_OWNER_PID))) + _When_( + (TableClass == TCP_TABLE_OWNER_MODULE_LISTENER || + TableClass == TCP_TABLE_OWNER_MODULE_CONNECTIONS || + TableClass == TCP_TABLE_OWNER_MODULE_ALL) && ulAf == AF_INET6, + _Deref_in_range_(>=, sizeof(MIB_TCP6TABLE_OWNER_MODULE))) + PDWORD pdwSize, + _In_ BOOL bOrder, + _In_ ULONG ulAf, + _In_ TCP_TABLE_CLASS TableClass, + _In_ ULONG Reserved + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetOwnerModuleFromTcpEntry( + _In_ PMIB_TCPROW_OWNER_MODULE pTcpEntry, + _In_ TCPIP_OWNER_MODULE_INFO_CLASS Class, + _Out_writes_bytes_(*pdwSize) PVOID pBuffer, + _Inout_ PDWORD pdwSize + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetUdpTable( + _Out_writes_bytes_opt_(*SizePointer) PMIB_UDPTABLE UdpTable, + _Inout_ PULONG SizePointer, + _In_ BOOL Order + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetExtendedUdpTable( + _Out_writes_bytes_opt_(*pdwSize) PVOID pUdpTable, + _Inout_ PDWORD pdwSize, + _In_ BOOL bOrder, + _In_ ULONG ulAf, + _In_ UDP_TABLE_CLASS TableClass, + _In_ ULONG Reserved + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetOwnerModuleFromUdpEntry( + _In_ PMIB_UDPROW_OWNER_MODULE pUdpEntry, + _In_ TCPIP_OWNER_MODULE_INFO_CLASS Class, + _Out_writes_bytes_(*pdwSize) PVOID pBuffer, + _Inout_ PDWORD pdwSize + ); + +#if (NTDDI_VERSION >= NTDDI_VISTA) +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetTcpTable2( + _Out_writes_bytes_opt_(*SizePointer) PMIB_TCPTABLE2 TcpTable, + _Inout_ PULONG SizePointer, + _In_ BOOL Order + ); +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if (NTDDI_VERSION < NTDDI_VISTA) +// +// Deprecated APIs, Added for documentation. +// + +DWORD +AllocateAndGetTcpExTableFromStack( + _Outptr_ PVOID *ppTcpTable, + _In_ BOOL bOrder, + _In_ HANDLE hHeap, + _In_ DWORD dwFlags, + _In_ DWORD dwFamily + ); + +DWORD +AllocateAndGetUdpExTableFromStack( + _Outptr_ PVOID *ppUdpTable, + _In_ BOOL bOrder, + _In_ HANDLE hHeap, + _In_ DWORD dwFlags, + _In_ DWORD dwFamily + ); + +#endif // (NTDDI_VERSION < NTDDI_VISTA) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#ifdef _WS2IPDEF_ +// +// The following definitions require Winsock2. +// + +#if (NTDDI_VERSION >= NTDDI_VISTA) +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetTcp6Table( + _Out_writes_bytes_(*SizePointer) PMIB_TCP6TABLE TcpTable, + _Inout_ PULONG SizePointer, + _In_ BOOL Order + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetTcp6Table2( + _Out_writes_bytes_(*SizePointer) PMIB_TCP6TABLE2 TcpTable, + _Inout_ PULONG SizePointer, + _In_ BOOL Order + ); + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#ifdef WINAPI + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetPerTcpConnectionEStats( + _In_ PMIB_TCPROW Row, + _In_ TCP_ESTATS_TYPE EstatsType, + _Out_writes_bytes_opt_(RwSize) PUCHAR Rw, + _In_ ULONG RwVersion, + _In_ ULONG RwSize, + _Out_writes_bytes_opt_(RosSize) PUCHAR Ros, + _In_ ULONG RosVersion, + _In_ ULONG RosSize, + _Out_writes_bytes_opt_(RodSize) PUCHAR Rod, + _In_ ULONG RodVersion, + _In_ ULONG RodSize + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +SetPerTcpConnectionEStats( + _In_ PMIB_TCPROW Row, + _In_ TCP_ESTATS_TYPE EstatsType, + _In_reads_bytes_(RwSize) PUCHAR Rw, + _In_ ULONG RwVersion, + _In_ ULONG RwSize, + _In_ ULONG Offset + ); + +#ifdef _WS2IPDEF_ + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetPerTcp6ConnectionEStats( + _In_ PMIB_TCP6ROW Row, + _In_ TCP_ESTATS_TYPE EstatsType, + _Out_writes_bytes_opt_(RwSize) PUCHAR Rw, + _In_ ULONG RwVersion, + _In_ ULONG RwSize, + _Out_writes_bytes_opt_(RosSize) PUCHAR Ros, + _In_ ULONG RosVersion, + _In_ ULONG RosSize, + _Out_writes_bytes_opt_(RodSize) PUCHAR Rod, + _In_ ULONG RodVersion, + _In_ ULONG RodSize + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +SetPerTcp6ConnectionEStats( + _In_ PMIB_TCP6ROW Row, + _In_ TCP_ESTATS_TYPE EstatsType, + _In_reads_bytes_(RwSize) PUCHAR Rw, + _In_ ULONG RwVersion, + _In_ ULONG RwSize, + _In_ ULONG Offset + ); + +#endif // _WS2IPDEF_ + +#endif // WINAPI + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetOwnerModuleFromTcp6Entry( + _In_ PMIB_TCP6ROW_OWNER_MODULE pTcpEntry, + _In_ TCPIP_OWNER_MODULE_INFO_CLASS Class, + _Out_writes_bytes_(*pdwSize) PVOID pBuffer, + _Inout_ PDWORD pdwSize + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetUdp6Table( + _Out_writes_bytes_opt_(*SizePointer) PMIB_UDP6TABLE Udp6Table, + _Inout_ PULONG SizePointer, + _In_ BOOL Order + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetOwnerModuleFromUdp6Entry( + _In_ PMIB_UDP6ROW_OWNER_MODULE pUdpEntry, + _In_ TCPIP_OWNER_MODULE_INFO_CLASS Class, + _Out_writes_bytes_(*pdwSize) PVOID pBuffer, + _Inout_ PDWORD pdwSize + ); + +#endif // _WS2IPDEF_ + +// +// Because this function isn't marked with WINAPI, it is not marked with +// IPHLPAPI_DLL_LINKAGE in order to prevent build breaks with managed projects. +// +DWORD +GetOwnerModuleFromPidAndInfo( + _In_ ULONG ulPid, + _In_ ULONGLONG *pInfo, + _In_ TCPIP_OWNER_MODULE_INFO_CLASS Class, + _Out_writes_bytes_(*pdwSize) PVOID pBuffer, + _Inout_ PDWORD pdwSize + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Gets IP/ICMP/TCP/UDP Statistics // +// // +////////////////////////////////////////////////////////////////////////////// + +#if (NTDDI_VERSION >= NTDDI_WIN2K) +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetIpStatistics( + _Out_ PMIB_IPSTATS Statistics + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (NTDDI_VERSION >= NTDDI_WIN2K) +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetIcmpStatistics( + _Out_ PMIB_ICMP Statistics + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (NTDDI_VERSION >= NTDDI_WIN2K) +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetTcpStatistics( + _Out_ PMIB_TCPSTATS Statistics + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetUdpStatistics( + _Out_ PMIB_UDPSTATS Stats + ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WINXP) +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +SetIpStatisticsEx( + _In_ PMIB_IPSTATS Statistics, + _In_ ULONG Family + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (NTDDI_VERSION >= NTDDI_WINXP) +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetIpStatisticsEx( + _Out_ PMIB_IPSTATS Statistics, + _In_ ULONG Family + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetIcmpStatisticsEx( + _Out_ PMIB_ICMP_EX Statistics, + _In_ ULONG Family + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetTcpStatisticsEx( + _Out_ PMIB_TCPSTATS Statistics, + _In_ ULONG Family + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetUdpStatisticsEx( + _Out_ PMIB_UDPSTATS Statistics, + _In_ ULONG Family + ); +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS3) +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetTcpStatisticsEx2( + _Out_ PMIB_TCPSTATS2 Statistics, + _In_ ULONG Family + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetUdpStatisticsEx2( + _Out_ PMIB_UDPSTATS2 Statistics, + _In_ ULONG Family + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +////////////////////////////////////////////////////////////////////////////// +// // +// Used to set the ifAdminStatus on an interface. The only fields of the // +// MIB_IFROW that are relevant are the dwIndex (index of the interface // +// whose status needs to be set) and the dwAdminStatus which can be either // +// MIB_IF_ADMIN_STATUS_UP or MIB_IF_ADMIN_STATUS_DOWN // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +SetIfEntry( + _In_ PMIB_IFROW pIfRow + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Used to create, modify or delete a route. In all cases the // +// dwForwardIfIndex, dwForwardDest, dwForwardMask, dwForwardNextHop and // +// dwForwardPolicy MUST BE SPECIFIED. Currently dwForwardPolicy is unused // +// and MUST BE 0. // +// For a set, the complete MIB_IPFORWARDROW structure must be specified // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +CreateIpForwardEntry( + _In_ PMIB_IPFORWARDROW pRoute + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +SetIpForwardEntry( + _In_ PMIB_IPFORWARDROW pRoute + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +DeleteIpForwardEntry( + _In_ PMIB_IPFORWARDROW pRoute + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Used to set the ipForwarding to ON or OFF (currently only ON->OFF is // +// allowed) and to set the defaultTTL. If only one of the fields needs to // +// be modified and the other needs to be the same as before the other field // +// needs to be set to MIB_USE_CURRENT_TTL or MIB_USE_CURRENT_FORWARDING as // +// the case may be // +// // +////////////////////////////////////////////////////////////////////////////// + +#if (NTDDI_VERSION >= NTDDI_WIN2K) +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +SetIpStatistics( + _In_ PMIB_IPSTATS pIpStats + ); +#endif + +////////////////////////////////////////////////////////////////////////////// +// // +// Used to set the defaultTTL. // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +SetIpTTL( + _In_ UINT nTTL + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Used to create, modify or delete an ARP entry. In all cases the dwIndex // +// dwAddr field MUST BE SPECIFIED. // +// For a set, the complete MIB_IPNETROW structure must be specified // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +CreateIpNetEntry( + _In_ PMIB_IPNETROW pArpEntry + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +SetIpNetEntry( + _In_ PMIB_IPNETROW pArpEntry + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +DeleteIpNetEntry( + _In_ PMIB_IPNETROW pArpEntry + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +FlushIpNetTable( + _In_ DWORD dwIfIndex + ); + + +////////////////////////////////////////////////////////////////////////////// +// // +// Used to create or delete a Proxy ARP entry. The dwIndex is the index of // +// the interface on which to PARP for the dwAddress. If the interface is // +// of a type that doesnt support ARP, e.g. PPP, then the call will fail // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +CreateProxyArpEntry( + _In_ DWORD dwAddress, + _In_ DWORD dwMask, + _In_ DWORD dwIfIndex + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +DeleteProxyArpEntry( + _In_ DWORD dwAddress, + _In_ DWORD dwMask, + _In_ DWORD dwIfIndex + ); + +////////////////////////////////////////////////////////////////////////////// +// // +// Used to set the state of a TCP Connection. The only state that it can be // +// set to is MIB_TCP_STATE_DELETE_TCB. The complete MIB_TCPROW structure // +// MUST BE SPECIFIED // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +SetTcpEntry( + _In_ PMIB_TCPROW pTcpRow + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetInterfaceInfo( + _Out_writes_bytes_opt_(*dwOutBufLen) PIP_INTERFACE_INFO pIfTable, + _Inout_ PULONG dwOutBufLen + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetUniDirectionalAdapterInfo( + _Out_writes_bytes_opt_(*dwOutBufLen) PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS pIPIfInfo, + _Inout_ PULONG dwOutBufLen + ); + +#if (NTDDI_VERSION >= NTDDI_WIN2KSP1) +#ifndef NHPALLOCATEANDGETINTERFACEINFOFROMSTACK_DEFINED +#define NHPALLOCATEANDGETINTERFACEINFOFROMSTACK_DEFINED + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +NhpAllocateAndGetInterfaceInfoFromStack( + _Outptr_ IP_INTERFACE_NAME_INFO **ppTable, + _Out_ PDWORD pdwCount, + _In_ BOOL bOrder, + _In_ HANDLE hHeap, + _In_ DWORD dwFlags + ); + +#endif +#endif // (NTDDI_VERSION >= NTDDI_WIN2KSP1) + +////////////////////////////////////////////////////////////////////////////// +// // +// Gets the "best" outgoing interface for the specified destination address // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetBestInterface( + _In_ IPAddr dwDestAddr, + _Out_ PDWORD pdwBestIfIndex + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#pragma warning(push) +#pragma warning(disable:4115) +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetBestInterfaceEx( + _In_ struct sockaddr *pDestAddr, + _Out_ PDWORD pdwBestIfIndex + ); +#pragma warning(pop) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +////////////////////////////////////////////////////////////////////////////// +// // +// Gets the best (longest matching prefix) route for the given destination // +// If the source address is also specified (i.e. is not 0x00000000), and // +// there are multiple "best" routes to the given destination, the returned // +// route will be one that goes out over the interface which has an address // +// that matches the source address // +// // +////////////////////////////////////////////////////////////////////////////// + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetBestRoute( + _In_ DWORD dwDestAddr, + _In_opt_ DWORD dwSourceAddr, + _Out_ PMIB_IPFORWARDROW pBestRoute + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +NotifyAddrChange( + _Out_ PHANDLE Handle, + _In_ LPOVERLAPPED overlapped + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +NotifyRouteChange( + _Out_ PHANDLE Handle, + _In_ LPOVERLAPPED overlapped + ); + +IPHLPAPI_DLL_LINKAGE +BOOL +WINAPI +CancelIPChangeNotify( + _In_ LPOVERLAPPED notifyOverlapped + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetAdapterIndex( + _In_ LPWSTR AdapterName, + _Inout_ PULONG IfIndex + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +AddIPAddress( + _In_ IPAddr Address, + _In_ IPMask IpMask, + _In_ DWORD IfIndex, + _Out_ PULONG NTEContext, + _Out_ PULONG NTEInstance + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +DeleteIPAddress( + _In_ ULONG NTEContext + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (NTDDI_VERSION >= NTDDI_WIN2KSP1) +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetNetworkParams( + _Out_writes_bytes_opt_(*pOutBufLen) PFIXED_INFO pFixedInfo, + _Inout_ PULONG pOutBufLen + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetAdaptersInfo( + _Out_writes_bytes_opt_(*SizePointer) PIP_ADAPTER_INFO AdapterInfo, + _Inout_ PULONG SizePointer + ); + +IPHLPAPI_DLL_LINKAGE +PIP_ADAPTER_ORDER_MAP +WINAPI +GetAdapterOrderMap( + VOID + ); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#ifdef _WINSOCK2API_ + +// +// The following functions require Winsock2. +// + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +GetAdaptersAddresses( + _In_ ULONG Family, + _In_ ULONG Flags, + _Reserved_ PVOID Reserved, + _Out_writes_bytes_opt_(*SizePointer) PIP_ADAPTER_ADDRESSES AdapterAddresses, + _Inout_ PULONG SizePointer + ); + +#endif + +#if (NTDDI_VERSION >= NTDDI_WIN2KSP1) +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetPerAdapterInfo( + _In_ ULONG IfIndex, + _Out_writes_bytes_opt_(*pOutBufLen) PIP_PER_ADAPTER_INFO pPerAdapterInfo, + _Inout_ PULONG pOutBufLen + ); +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (NTDDI_VERSION >= NTDDI_WIN10_FE) + +typedef struct _INTERFACE_HARDWARE_TIMESTAMP_CAPABILITIES +{ + BOOLEAN PtpV2OverUdpIPv4EventMessageReceive; + BOOLEAN PtpV2OverUdpIPv4AllMessageReceive; + BOOLEAN PtpV2OverUdpIPv4EventMessageTransmit; + BOOLEAN PtpV2OverUdpIPv4AllMessageTransmit; + BOOLEAN PtpV2OverUdpIPv6EventMessageReceive; + BOOLEAN PtpV2OverUdpIPv6AllMessageReceive; + BOOLEAN PtpV2OverUdpIPv6EventMessageTransmit; + BOOLEAN PtpV2OverUdpIPv6AllMessageTransmit; + BOOLEAN AllReceive; + BOOLEAN AllTransmit; + BOOLEAN TaggedTransmit; +} INTERFACE_HARDWARE_TIMESTAMP_CAPABILITIES, *PINTERFACE_HARDWARE_TIMESTAMP_CAPABILITIES; + +typedef struct _INTERFACE_SOFTWARE_TIMESTAMP_CAPABILITIES +{ + BOOLEAN AllReceive; + BOOLEAN AllTransmit; + BOOLEAN TaggedTransmit; +} INTERFACE_SOFTWARE_TIMESTAMP_CAPABILITIES, *PINTERFACE_SOFTWARE_TIMESTAMP_CAPABILITIES; + +typedef struct _INTERFACE_TIMESTAMP_CAPABILITIES +{ + ULONG64 HardwareClockFrequencyHz; + BOOLEAN SupportsCrossTimestamp; + INTERFACE_HARDWARE_TIMESTAMP_CAPABILITIES HardwareCapabilities; + INTERFACE_SOFTWARE_TIMESTAMP_CAPABILITIES SoftwareCapabilities; +} INTERFACE_TIMESTAMP_CAPABILITIES, *PINTERFACE_TIMESTAMP_CAPABILITIES; + +typedef struct _INTERFACE_HARDWARE_CROSSTIMESTAMP +{ + ULONG64 SystemTimestamp1; + ULONG64 HardwareClockTimestamp; + ULONG64 SystemTimestamp2; +} INTERFACE_HARDWARE_CROSSTIMESTAMP, *PINTERFACE_HARDWARE_CROSSTIMESTAMP; + +DECLARE_HANDLE(HIFTIMESTAMPCHANGE); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetInterfaceActiveTimestampCapabilities( + _In_ CONST NET_LUID *InterfaceLuid, + _Out_ PINTERFACE_TIMESTAMP_CAPABILITIES TimestampCapabilites + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetInterfaceSupportedTimestampCapabilities( + _In_ CONST NET_LUID *InterfaceLuid, + _Out_ PINTERFACE_TIMESTAMP_CAPABILITIES TimestampCapabilites + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +CaptureInterfaceHardwareCrossTimestamp( + _In_ CONST NET_LUID *InterfaceLuid, + _Inout_ PINTERFACE_HARDWARE_CROSSTIMESTAMP CrossTimestamp + ); + +typedef +VOID +CALLBACK +INTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK( + _In_ PVOID CallerContext + ); + +typedef +INTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK *PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK; + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +RegisterInterfaceTimestampConfigChange( + _In_ PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK Callback, + _In_opt_ PVOID CallerContext, + _Out_ HIFTIMESTAMPCHANGE *NotificationHandle + ); + +IPHLPAPI_DLL_LINKAGE +VOID +WINAPI +UnregisterInterfaceTimestampConfigChange( + _In_ HIFTIMESTAMPCHANGE NotificationHandle + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetInterfaceCurrentTimestampCapabilities( + _In_ CONST NET_LUID *InterfaceLuid, + _Inout_ PINTERFACE_TIMESTAMP_CAPABILITIES TimestampCapabilites + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetInterfaceHardwareTimestampCapabilities( + _In_ CONST NET_LUID *InterfaceLuid, + _Inout_ PINTERFACE_TIMESTAMP_CAPABILITIES TimestampCapabilites + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +NotifyIfTimestampConfigChange( + _In_opt_ PVOID CallerContext, + _In_ PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK Callback, + _Out_ HIFTIMESTAMPCHANGE *NotificationHandle + ); + +IPHLPAPI_DLL_LINKAGE +VOID +WINAPI +CancelIfTimestampConfigChange( + _In_ HIFTIMESTAMPCHANGE NotificationHandle + ); + +#elif (NTDDI_VERSION >= NTDDI_WIN10_RS5) + +#define INTERFACE_TIMESTAMP_CAPABILITIES_VERSION_1 0x01 +#define INTERFACE_HARDWARE_CROSSTIMESTAMP_VERSION_1 0x01 + +typedef struct _INTERFACE_TIMESTAMP_CAPABILITY_FLAGS +{ + BOOLEAN PtpV2OverUdpIPv4EventMsgReceiveHw; + BOOLEAN PtpV2OverUdpIPv4AllMsgReceiveHw; + BOOLEAN PtpV2OverUdpIPv4EventMsgTransmitHw; + BOOLEAN PtpV2OverUdpIPv4AllMsgTransmitHw; + BOOLEAN PtpV2OverUdpIPv6EventMsgReceiveHw; + BOOLEAN PtpV2OverUdpIPv6AllMsgReceiveHw; + BOOLEAN PtpV2OverUdpIPv6EventMsgTransmitHw; + BOOLEAN PtpV2OverUdpIPv6AllMsgTransmitHw; + BOOLEAN AllReceiveHw; + BOOLEAN AllTransmitHw; + BOOLEAN TaggedTransmitHw; + BOOLEAN AllReceiveSw; + BOOLEAN AllTransmitSw; + BOOLEAN TaggedTransmitSw; + +} INTERFACE_TIMESTAMP_CAPABILITY_FLAGS, *PINTERFACE_TIMESTAMP_CAPABILITY_FLAGS; + +typedef struct _INTERFACE_TIMESTAMP_CAPABILITIES +{ + ULONG Version; + ULONG64 HardwareClockFrequencyHz; + BOOLEAN CrossTimestamp; + ULONG64 Reserved1; + ULONG64 Reserved2; + INTERFACE_TIMESTAMP_CAPABILITY_FLAGS TimestampFlags; +} INTERFACE_TIMESTAMP_CAPABILITIES, *PINTERFACE_TIMESTAMP_CAPABILITIES; + +typedef struct _INTERFACE_HARDWARE_CROSSTIMESTAMP +{ + ULONG Version; + ULONG Flags; + ULONG64 SystemTimestamp1; + ULONG64 HardwareClockTimestamp; + ULONG64 SystemTimestamp2; + +} INTERFACE_HARDWARE_CROSSTIMESTAMP, *PINTERFACE_HARDWARE_CROSSTIMESTAMP; + +DECLARE_HANDLE(HIFTIMESTAMPCHANGE); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetInterfaceCurrentTimestampCapabilities( + _In_ CONST NET_LUID *InterfaceLuid, + _Inout_ PINTERFACE_TIMESTAMP_CAPABILITIES TimestampCapabilites + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetInterfaceHardwareTimestampCapabilities( + _In_ CONST NET_LUID *InterfaceLuid, + _Inout_ PINTERFACE_TIMESTAMP_CAPABILITIES TimestampCapabilites + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +CaptureInterfaceHardwareCrossTimestamp( + _In_ CONST NET_LUID *InterfaceLuid, + _Inout_ PINTERFACE_HARDWARE_CROSSTIMESTAMP CrossTimestamp + ); + +typedef +VOID +CALLBACK +INTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK( + _In_ PVOID CallerContext + ); + +typedef +INTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK *PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK; + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +NotifyIfTimestampConfigChange( + _In_opt_ PVOID CallerContext, + _In_ PINTERFACE_TIMESTAMP_CONFIG_CHANGE_CALLBACK Callback, + _Out_ HIFTIMESTAMPCHANGE *NotificationHandle + ); + +IPHLPAPI_DLL_LINKAGE +VOID +WINAPI +CancelIfTimestampConfigChange( + _In_ HIFTIMESTAMPCHANGE NotificationHandle + ); + +#endif // (NTDDI_VERSION >= NTDDI_WIN10_FE) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +IpReleaseAddress( + _In_ PIP_ADAPTER_INDEX_MAP AdapterInfo + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +IpRenewAddress( + _In_ PIP_ADAPTER_INDEX_MAP AdapterInfo + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +SendARP( + _In_ IPAddr DestIP, + _In_ IPAddr SrcIP, + _Out_writes_bytes_(*PhyAddrLen) PVOID pMacAddr, + _Inout_ PULONG PhyAddrLen + ); + +IPHLPAPI_DLL_LINKAGE +BOOL +WINAPI +GetRTTAndHopCount( + _In_ IPAddr DestIpAddress, + _Out_ PULONG HopCount, + _In_ ULONG MaxHops, + _Out_ PULONG RTT + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetFriendlyIfIndex( + _In_ DWORD IfIndex + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +EnableRouter( + _Out_ HANDLE* pHandle, + _Out_ OVERLAPPED* pOverlapped + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +UnenableRouter( + _In_ OVERLAPPED* pOverlapped, + _Out_opt_ LPDWORD lpdwEnableCount + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +DisableMediaSense( + _Out_ HANDLE *pHandle, + _In_ OVERLAPPED *pOverLapped + ); + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +RestoreMediaSense( + _In_ OVERLAPPED* pOverlapped, + _Out_opt_ LPDWORD lpdwEnableCount + ); + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +GetIpErrorString( + _In_ IP_STATUS ErrorCode, + _Out_writes_opt_(*Size + 1) PWSTR Buffer, + _Inout_ PDWORD Size + ); + +#if (NTDDI_VERSION >= NTDDI_VISTA) +#ifdef _WS2DEF_ +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +ResolveNeighbor( + _In_ SOCKADDR *NetworkAddress, + _Out_writes_bytes_(*PhysicalAddressLength) PVOID PhysicalAddress, + _Inout_ PULONG PhysicalAddressLength + ); +#endif +#endif + +// +// Port reservation API routines. +// + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +CreatePersistentTcpPortReservation( + _In_ USHORT StartPort, + _In_ USHORT NumberOfPorts, + _Out_ PULONG64 Token + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +CreatePersistentUdpPortReservation( + _In_ USHORT StartPort, + _In_ USHORT NumberOfPorts, + _Out_ PULONG64 Token + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +DeletePersistentTcpPortReservation( + _In_ USHORT StartPort, + _In_ USHORT NumberOfPorts + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +DeletePersistentUdpPortReservation( + _In_ USHORT StartPort, + _In_ USHORT NumberOfPorts + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +LookupPersistentTcpPortReservation( + _In_ USHORT StartPort, + _In_ USHORT NumberOfPorts, + _Out_ PULONG64 Token + ); + +IPHLPAPI_DLL_LINKAGE +ULONG +WINAPI +LookupPersistentUdpPortReservation( + _In_ USHORT StartPort, + _In_ USHORT NumberOfPorts, + _Out_ PULONG64 Token + ); + + +// +// Network String parsing API +// + +#define NET_STRING_IPV4_ADDRESS 0x00000001 + // The string identifies an IPv4 Host/router using literal address. + // (port or prefix not allowed) +#define NET_STRING_IPV4_SERVICE 0x00000002 + // The string identifies an IPv4 service using literal address. + // (port required; prefix not allowed) +#define NET_STRING_IPV4_NETWORK 0x00000004 + // The string identifies an IPv4 network. + // (prefix required; port not allowed) +#define NET_STRING_IPV6_ADDRESS 0x00000008 + // The string identifies an IPv6 Host/router using literal address. + // (port or prefix not allowed; scope-id allowed) +#define NET_STRING_IPV6_ADDRESS_NO_SCOPE 0x00000010 + // The string identifies an IPv6 Host/router using literal address + // where the interface context is already known. + // (port or prefix not allowed; scope-id not allowed) +#define NET_STRING_IPV6_SERVICE 0x00000020 + // The string identifies an IPv6 service using literal address. + // (port required; prefix not allowed; scope-id allowed) +#define NET_STRING_IPV6_SERVICE_NO_SCOPE 0x00000040 + // The string identifies an IPv6 service using literal address + // where the interface context is already known. + // (port required; prefix not allowed; scope-id not allowed) +#define NET_STRING_IPV6_NETWORK 0x00000080 + // The string identifies an IPv6 network. + // (prefix required; port or scope-id not allowed) +#define NET_STRING_NAMED_ADDRESS 0x00000100 + // The string identifies an Internet Host using DNS. + // (port or prefix or scope-id not allowed) +#define NET_STRING_NAMED_SERVICE 0x00000200 + // The string identifies an Internet service using DNS. + // (port required; prefix or scope-id not allowed) + +#define NET_STRING_IP_ADDRESS (NET_STRING_IPV4_ADDRESS | \ + NET_STRING_IPV6_ADDRESS) + +#define NET_STRING_IP_ADDRESS_NO_SCOPE (NET_STRING_IPV4_ADDRESS | \ + NET_STRING_IPV6_ADDRESS_NO_SCOPE) + +#define NET_STRING_IP_SERVICE (NET_STRING_IPV4_SERVICE | \ + NET_STRING_IPV6_SERVICE) + +#define NET_STRING_IP_SERVICE_NO_SCOPE (NET_STRING_IPV4_SERVICE | \ + NET_STRING_IPV6_SERVICE_NO_SCOPE) + +#define NET_STRING_IP_NETWORK (NET_STRING_IPV4_NETWORK | \ + NET_STRING_IPV6_NETWORK) + +#define NET_STRING_ANY_ADDRESS (NET_STRING_NAMED_ADDRESS | \ + NET_STRING_IP_ADDRESS) + +#define NET_STRING_ANY_ADDRESS_NO_SCOPE (NET_STRING_NAMED_ADDRESS | \ + NET_STRING_IP_ADDRESS_NO_SCOPE) + +#define NET_STRING_ANY_SERVICE (NET_STRING_NAMED_SERVICE | \ + NET_STRING_IP_SERVICE) + +#define NET_STRING_ANY_SERVICE_NO_SCOPE (NET_STRING_NAMED_SERVICE | \ + NET_STRING_IP_SERVICE_NO_SCOPE) + +typedef enum NET_ADDRESS_FORMAT_ +{ + NET_ADDRESS_FORMAT_UNSPECIFIED = 0, + + NET_ADDRESS_DNS_NAME, + NET_ADDRESS_IPV4, + NET_ADDRESS_IPV6 + +} NET_ADDRESS_FORMAT; + +#if defined (_WS2DEF_) && defined (_WS2IPDEF_) && defined(_WINDNS_INCLUDED_) + // app must include winsock2.h, ws2ipdef.h, and windns.h to use this API + +typedef struct NET_ADDRESS_INFO_ +{ + NET_ADDRESS_FORMAT Format; + + union + { + struct { + WCHAR Address[DNS_MAX_NAME_BUFFER_LENGTH]; + WCHAR Port[6]; + } NamedAddress; + + SOCKADDR_IN Ipv4Address; + SOCKADDR_IN6 Ipv6Address; + SOCKADDR IpAddress; + }; + +} NET_ADDRESS_INFO, *PNET_ADDRESS_INFO; + +IPHLPAPI_DLL_LINKAGE +DWORD +WINAPI +ParseNetworkString( + _In_z_ CONST WCHAR* NetworkString, + _In_ DWORD Types, + _Out_opt_ PNET_ADDRESS_INFO AddressInfo, + _Out_opt_ USHORT* PortNumber, + _Out_opt_ BYTE* PrefixLength + ); + +#endif + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#if (NTDDI_VERSION >= NTDDI_VISTA) + +#include + +#endif // (NTDDI_VERSION >= NTDDI_VISTA) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#ifdef __cplusplus +} +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#endif //__IPHLPAPI_H__ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iscsidsc.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iscsidsc.h new file mode 100644 index 0000000000000000000000000000000000000000..2b0657fc58c0ad0b7c43b83738dc2a423da4955d --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iscsidsc.h @@ -0,0 +1,1556 @@ +//*************************************************************************** +// +// iscsidsc.h +// +// Module: Public iScsi Discovery header +// +// Purpose: +// +// Copyright (c) 2002 Microsoft Corporation +// +//*************************************************************************** + +#ifndef _ISCSI_ISCSIDSC_ +#define _ISCSI_ISCSIDSC_ + +#ifndef MIDL_PASS +#ifndef MOFCOMP_PASS +#include +#include +#endif +#endif + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ISCSI) + +// +// Maxiumum length of a Initiator Name +// +#define MAX_ISCSI_HBANAME_LEN 256 + + +// +// Maximum length of an iscsi name +// +#define MAX_ISCSI_NAME_LEN 223 +#define MAX_ISCSI_ALIAS_LEN 255 + + +// +// Maxiumum length of a portal names +// +#define MAX_ISCSI_PORTAL_NAME_LEN 256 +#define MAX_ISCSI_PORTAL_ALIAS_LEN 256 + +// +// Maximum length of a text address +// +#define MAX_ISCSI_TEXT_ADDRESS_LEN 256 + +// +// Maxiumum length of a text port address. It can be a DNS name or a . +// name +// +#define MAX_ISCSI_PORTAL_ADDRESS_LEN MAX_ISCSI_TEXT_ADDRESS_LEN + +// +// Maximum length of a discovery domain name +// +#define MAX_ISCSI_DISCOVERY_DOMAIN_LEN 256 + + +// +// For apis that take a port number, this specifies that any port can +// be used +// +#define ISCSI_ANY_INITIATOR_PORT ((ULONG)-1) + +// +// For apis that take a port number this specifies that all ports +// should be used +// +#define ISCSI_ALL_INITIATOR_PORTS ((ULONG)-1) + +// +// Maximum length of a RADIUS server address + +// two terminating characters +// +#define MAX_RADIUS_ADDRESS_LEN 41 + + +#ifdef MOFCOMP_PASS +// +// Definitions for iscsi security flags. These flags provide +// information about the security expectations of a target portal and +// are needed to insure a successful IKE/IPSEC negotiation. Note that +// the flags and values are taken directly from the iSNS spec +// +#define ISCSI_SECURITY_FLAGS uint64 + + // 1 = Tunnel Mode Preferred; 0 = No Preference +#define ISCSI_SECURITY_FLAG_TUNNEL_MODE_PREFERRED "0x00000040" + + // 1 = Transport Mode Preferred; 0 = No Preference +#define ISCSI_SECURITY_FLAG_TRANSPORT_MODE_PREFERRED "0x00000020" + + // 1 = PFS Enabled; 0 = PFS Disabled +#define ISCSI_SECURITY_FLAG_PFS_ENABLED "0x00000010" + + // 1 = Aggressive Mode Enabled; 0 = Disabled +#define ISCSI_SECURITY_FLAG_AGGRESSIVE_MODE_ENABLED "0x00000008" + + // 1 = Main Mode Enabled; 0 = MM Disabled +#define ISCSI_SECURITY_FLAG_MAIN_MODE_ENABLED "0x00000004" + + // 1 = IKE/IPSec Enabled; 0 = IKE/IPSec Disabled +#define ISCSI_SECURITY_FLAG_IKE_IPSEC_ENABLED "0x00000002" + + // If set then all other ISCSI_SECURITY_FLAGS are valid +#define ISCSI_SECURITY_FLAG_VALID "0x00000001" + +#define SECURITY_FLAG_QUALIFIERS \ + description("Security flags") : amended, \ + BitMap{ \ + ISCSI_SECURITY_FLAG_TUNNEL_MODE_PREFERRED, \ + ISCSI_SECURITY_FLAG_TRANSPORT_MODE_PREFERRED, \ + ISCSI_SECURITY_FLAG_PFS_ENABLED, \ + ISCSI_SECURITY_FLAG_AGGRESSIVE_MODE_ENABLED, \ + ISCSI_SECURITY_FLAG_MAIN_MODE_ENABLED, \ + ISCSI_SECURITY_FLAG_IKE_IPSEC_ENABLED, \ + ISCSI_SECURITY_FLAG_VALID \ + }, \ + BitValues{ \ + "Tunnel mode preferred", \ + "Transport mode preferred", \ + "PFS Enabled", \ + "Aggressive mode enabled", \ + "Main Mode Enabled", \ + "IKE/IPSec Enabled", \ + "ISCSI_SECURITY_FLAGS are valid" \ + } : amended + + +#define ISCSI_SECURITY_FLAGS_CPPQUOTE \ +"//\n" \ +"// Definitions for iscsi security flags. These flags provide\n" \ +"// information about the security expectations of a target portal and\n" \ +"// are needed to insure a successful IKE/IPSEC negotiation. Note that\n" \ +"// the flags and values are taken directly from the iSNS spec\n" \ +"//\n" \ +"\n" \ +" // 1 = Tunnel Mode Preferred; 0 = No Preference\n" \ +"#define ISCSI_SECURITY_FLAG_TUNNEL_MODE_PREFERRED 0x00000040\n" \ +"\n" \ +" // 1 = Transport Mode Preferred; 0 = No Preference\n" \ +"#define ISCSI_SECURITY_FLAG_TRANSPORT_MODE_PREFERRED 0x00000020\n" \ +" \n" \ +" // 1 = PFS Enabled; 0 = PFS Disabled\n" \ +"#define ISCSI_SECURITY_FLAG_PFS_ENABLED 0x00000010\n" \ +" \n" \ +" // 1 = Aggressive Mode Enabled; 0 = Disabled\n" \ +"#define ISCSI_SECURITY_FLAG_AGGRESSIVE_MODE_ENABLED 0x00000008\n" \ +" \n" \ +" // 1 = Main Mode Enabled; 0 = MM Disabled\n" \ +"#define ISCSI_SECURITY_FLAG_MAIN_MODE_ENABLED 0x00000004\n" \ +" \n" \ +" // 1 = IKE/IPSec Enabled; 0 = IKE/IPSec Disabled\n" \ +"#define ISCSI_SECURITY_FLAG_IKE_IPSEC_ENABLED 0x00000002\n" \ +"\n" \ +" // If set then all other ISCSI_SECURITY_FLAGS are valid \n" \ +"#define ISCSI_SECURITY_FLAG_VALID 0x00000001 \n" \ +"\n" + +// +// definitions for ISCSI_LOGIN_OPTIONS. This structure is used to pass +// information that affects the login negotiation of session +// + +#define ISCSI_DIGEST_TYPE_NONE "0" +#define ISCSI_DIGEST_TYPE_CRC32C "1" + +#define ISCSI_DIGEST_CPPQUOTE \ +"#ifndef _ISCSI_ISCSIDSC_\n" \ +"typedef enum\n" \ +"{\n" \ +" ISCSI_DIGEST_TYPE_NONE = 0,\n" \ +" ISCSI_DIGEST_TYPE_CRC32C = 1\n" \ +"} ISCSI_DIGEST_TYPES, *PISCSI_DIGEST_TYPES;\n" \ +"\n" \ +"typedef enum\n" \ +"{\n" \ +" ISCSI_NO_AUTH_TYPE = 0,\n" \ +" ISCSI_CHAP_AUTH_TYPE = 1,\n" \ +" ISCSI_MUTUAL_CHAP_AUTH_TYPE = 2 \n" \ +"} ISCSI_AUTH_TYPES, *PISCSI_AUTH_TYPES;\n" \ +"#endif\n" + +#define ISCSI_LOGIN_FLAGS_CPPQUOTE \ +"//\n" \ +"// bit flags for ISCSI_LOGIN_FLAGS\n" \ +"//\n" \ +"#ifndef _ISCSI_ISCSIDSC_\n" \ +"#define ISCSI_LOGIN_FLAGS ULONG\n\n" \ +"#define ISCSI_LOGIN_FLAG_REQUIRE_IPSEC 0x00000001\n" \ +"#define ISCSI_LOGIN_FLAG_MULTIPATH_ENABLED 0x00000002\n" \ +"#define ISCSI_LOGIN_FLAG_RESERVED1 0x00000004\n" \ +"#define ISCSI_LOGIN_FLAG_ALLOW_PORTAL_HOPPING 0x00000008\n" \ +"#define ISCSI_LOGIN_FLAG_USE_RADIUS_RESPONSE 0x00000010\n" \ +"#define ISCSI_LOGIN_FLAG_USE_RADIUS_VERIFICATION 0x00000020\n" \ +"\n" \ +"#endif\n" + +#define ISCSI_LOGIN_FLAGS_QUALIFIERS \ + BitValues{"Require IPSEC", "Multipath Enabled", "Reserved1", "Allow Portal Hopping"}, \ + BitMap{ "0x00000001", "0x00000002", "0x00000004", "0x00000008" } + +#define ISCSI_LOGIN_FLAGS uint32 + +#define ISCSI_AUTH_TYPES_QUALIFIERS \ + Values{"No Authentication", \ + "CHAP", \ + "Mutual CHAP" \ + } : amended, \ + ValueMap{"0", "1", "2"} + +#define ISCSI_AUTH_TYPES_CPPQUOTE \ + +#define ISCSI_AUTH_TYPES uint32 + +// +// Login options flags +// +#define ISCSI_LOGIN_OPTIONS_INFO_SPECIFIED uint32 + +#define ISCSI_LOGIN_OPTIONS_HEADER_DIGEST "0x00000001" +#define ISCSI_LOGIN_OPTIONS_DATA_DIGEST "0x00000002" +#define ISCSI_LOGIN_OPTIONS_MAXIMUM_CONNECTIONS "0x00000004" +#define ISCSI_LOGIN_OPTIONS_DEFAULT_TIME_2_WAIT "0x00000008" +#define ISCSI_LOGIN_OPTIONS_DEFAULT_TIME_2_RETAIN "0x00000010" +#define ISCSI_LOGIN_OPTIONS_USERNAME "0x00000020" +#define ISCSI_LOGIN_OPTIONS_PASSWORD "0x00000040" +#define ISCSI_LOGIN_OPTIONS_AUTH_TYPE "0x00000080" + +#define ISCSI_LOGIN_OPTIONS_INFO_CPPQUOTE \ +"//\n" \ +"// Bit flags for InformationSpecifies\n" \ +"//\n" \ +"#define ISCSI_LOGIN_OPTIONS_HEADER_DIGEST 0x00000001\n" \ +"#define ISCSI_LOGIN_OPTIONS_DATA_DIGEST 0x00000002\n" \ +"#define ISCSI_LOGIN_OPTIONS_MAXIMUM_CONNECTIONS 0x00000004\n" \ +"#define ISCSI_LOGIN_OPTIONS_DEFAULT_TIME_2_WAIT 0x00000008\n" \ +"#define ISCSI_LOGIN_OPTIONS_DEFAULT_TIME_2_RETAIN 0x00000010\n" \ +"#define ISCSI_LOGIN_OPTIONS_USERNAME 0x00000020\n" \ +"#define ISCSI_LOGIN_OPTIONS_PASSWORD 0x00000040\n" \ +"#define ISCSI_LOGIN_OPTIONS_AUTH_TYPE 0x00000080\n" \ +"\n" + +#define ISCSI_LOGIN_OPTIONS_INFO_QUALIFIERS \ + BitMap{ ISCSI_LOGIN_OPTIONS_HEADER_DIGEST, \ + ISCSI_LOGIN_OPTIONS_DATA_DIGEST, \ + ISCSI_LOGIN_OPTIONS_MAXIMUM_CONNECTIONS, \ + ISCSI_LOGIN_OPTIONS_DEFAULT_TIME_2_WAIT, \ + ISCSI_LOGIN_OPTIONS_DEFAULT_TIME_2_RETAIN \ + }, \ + BitValues{"HeaderDigest", "DataDigest", "MaxConnections", \ + "DefaultTime2Wait", "DefaultTime2Retain" } : amended + + +// +// IKE Identification payload types +// +#define ID_IPV4_ADDR "1" +#define ID_FQDN "2" +#define ID_USER_FQDN "3" +#define ID_IPV6_ADDR "5" + +#define IKE_IDENTIFICATION_TYPE_QUALIFIERS \ + ValueMap{ ID_IPV4_ADDR, \ + ID_FQDN, \ + ID_USER_FQDN, \ + ID_IPV6_ADDR \ + }, \ + Values{ "ID_IPV4_ADDR", \ + "ID_FQDN", \ + "ID_USER_FQDN", \ + "ID_IPV6_ADDR" \ + } + +#define IKE_AUTHENTICATION_PAYLOAD_TYPE_CPPQUOTE \ +"//\n" \ +"// IKE Identification payload types (from RFC 2407)\n" \ +"//\n" \ +"#define ID_IPV4_ADDR 1\n" \ +"#define ID_FQDN 2\n" \ +"#define ID_USER_FQDN 3\n" \ +"#define ID_IPV6_ADDR 5\n" \ +"\n" + + +#else + +// +// Definitions for iscsi security flags. These flags provide +// information about the security expectations of a target portal and +// are needed to insure a successful IKE/IPSEC negotiation. Note that +// the flags and values are taken directly from the iSNS spec +// +typedef ULONGLONG ISCSI_SECURITY_FLAGS; +typedef ISCSI_SECURITY_FLAGS *PISCSI_SECURITY_FLAGS; + + + // 1 = Tunnel Mode Preferred; 0 = No Preference +#define ISCSI_SECURITY_FLAG_TUNNEL_MODE_PREFERRED 0x00000040 + + // 1 = Transport Mode Preferred; 0 = No Preference +#define ISCSI_SECURITY_FLAG_TRANSPORT_MODE_PREFERRED 0x00000020 + + // 1 = PFS Enabled; 0 = PFS Disabled +#define ISCSI_SECURITY_FLAG_PFS_ENABLED 0x00000010 + + // 1 = Aggressive Mode Enabled; 0 = Disabled +#define ISCSI_SECURITY_FLAG_AGGRESSIVE_MODE_ENABLED 0x00000008 + + // 1 = Main Mode Enabled; 0 = MM Disabled +#define ISCSI_SECURITY_FLAG_MAIN_MODE_ENABLED 0x00000004 + + // 1 = IKE/IPSec Enabled; 0 = IKE/IPSec Disabled +#define ISCSI_SECURITY_FLAG_IKE_IPSEC_ENABLED 0x00000002 + + // If set then all other ISCSI_SECURITY_FLAGS are valid +#define ISCSI_SECURITY_FLAG_VALID 0x00000001 + +// +// definitions for ISCSI_LOGIN_OPTIONS. This structure is used to pass +// information that affects the login negotiation of session +// + +typedef enum +{ + ISCSI_DIGEST_TYPE_NONE = 0, + ISCSI_DIGEST_TYPE_CRC32C = 1 +} ISCSI_DIGEST_TYPES, *PISCSI_DIGEST_TYPES; + +// +// bit flags for ISCSI_LOGIN_FLAGS +// +typedef ULONG ISCSI_LOGIN_FLAGS, *PISCSI_LOGIN_FLAGS; + +#define ISCSI_LOGIN_FLAG_REQUIRE_IPSEC 0x00000001 +#define ISCSI_LOGIN_FLAG_MULTIPATH_ENABLED 0x00000002 +#define ISCSI_LOGIN_FLAG_RESERVED1 0x00000004 +#define ISCSI_LOGIN_FLAG_ALLOW_PORTAL_HOPPING 0x00000008 +#define ISCSI_LOGIN_FLAG_USE_RADIUS_RESPONSE 0x00000010 +#define ISCSI_LOGIN_FLAG_USE_RADIUS_VERIFICATION 0x00000020 + + +// +// Bit flags for InformationSpecifies +// + +typedef ULONG ISCSI_LOGIN_OPTIONS_INFO_SPECIFIED; +typedef ISCSI_LOGIN_OPTIONS_INFO_SPECIFIED *PISCSI_LOGIN_OPTIONS_INFO_SPECIFIED; + +#define ISCSI_LOGIN_OPTIONS_HEADER_DIGEST 0x00000001 +#define ISCSI_LOGIN_OPTIONS_DATA_DIGEST 0x00000002 +#define ISCSI_LOGIN_OPTIONS_MAXIMUM_CONNECTIONS 0x00000004 +#define ISCSI_LOGIN_OPTIONS_DEFAULT_TIME_2_WAIT 0x00000008 +#define ISCSI_LOGIN_OPTIONS_DEFAULT_TIME_2_RETAIN 0x00000010 +#define ISCSI_LOGIN_OPTIONS_USERNAME 0x00000020 +#define ISCSI_LOGIN_OPTIONS_PASSWORD 0x00000040 +#define ISCSI_LOGIN_OPTIONS_AUTH_TYPE 0x00000080 + + +#define ISCSI_LOGIN_OPTIONS_VERSION 0 + +typedef enum +{ + ISCSI_NO_AUTH_TYPE = 0, + ISCSI_CHAP_AUTH_TYPE = 1, + ISCSI_MUTUAL_CHAP_AUTH_TYPE = 2 +} ISCSI_AUTH_TYPES, *PISCSI_AUTH_TYPES; + +typedef struct +{ + ULONG Version; // ISCSI_LOGIN_OPTIONS_VERSION + + // Bit field indicating which information is specified + ISCSI_LOGIN_OPTIONS_INFO_SPECIFIED InformationSpecified; + + ISCSI_LOGIN_FLAGS LoginFlags; + + ISCSI_AUTH_TYPES AuthType; + + ISCSI_DIGEST_TYPES HeaderDigest; + ISCSI_DIGEST_TYPES DataDigest; + ULONG MaximumConnections; + ULONG DefaultTime2Wait; + ULONG DefaultTime2Retain; + + // + // Username and passwords are used for iscsi authentication and are + // defined as defined as binary blobs. They have different meanings + // based upon the different iSCSI authentication method used. + // For CHAP the username is the CHAP Name (CHAP_N) + // and the password is the shared secret of the target. If the + // Username is not specified then the service will use the + // initiator node name as the CHAP Name + // + // If they are strings then they are expected + // to be ANSI strings. + // + ULONG UsernameLength; + ULONG PasswordLength; +#ifdef MIDL_PASS + [size_is(UsernameLength)] +#endif + PUCHAR Username; +#ifdef MIDL_PASS + [size_is(PasswordLength)] +#endif + PUCHAR Password; +} ISCSI_LOGIN_OPTIONS, *PISCSI_LOGIN_OPTIONS; + + +// +// This defines flags that affect how a target is managed and its +// information stored +// +typedef ULONG ISCSI_TARGET_FLAGS; +typedef ISCSI_TARGET_FLAGS *PISCSI_TARGET_FLAGS; + +// +// if this flag is set then the target will never be reported unless it +// is also discovered dynamically. +// +#define ISCSI_TARGET_FLAG_HIDE_STATIC_TARGET 0x00000002 + +// +// If this flag is set then the target information passed will be +// merged with any target information already statically configured for +// the target +// +#define ISCSI_TARGET_FLAG_MERGE_TARGET_INFORMATION 0x00000004 + + +// +// IKE Identification payload types (from RFC 2407) +// +typedef UCHAR IKE_IDENTIFICATION_PAYLOAD_TYPE, *PIKE_IDENTIFICATION_PAYLOAD_TYPE; + +#define ID_IPV4_ADDR 1 +#define ID_FQDN 2 +#define ID_USER_FQDN 3 +#define ID_IPV6_ADDR 5 + + + +// +// Methods and data structures for those methods that can be used +// for IKE authentication in the SetIScsiIKEInfo api +// +typedef enum +{ + IKE_AUTHENTICATION_PRESHARED_KEY_METHOD = 1 +} IKE_AUTHENTICATION_METHOD, *PIKE_AUTHENTICATION_METHOD; + +typedef struct +{ + ISCSI_SECURITY_FLAGS SecurityFlags; + IKE_IDENTIFICATION_PAYLOAD_TYPE IdType; + ULONG IdLengthInBytes; + PUCHAR Id; + ULONG KeyLengthInBytes; + PUCHAR Key; +} IKE_AUTHENTICATION_PRESHARED_KEY, *PIKE_AUTHENTICATION_PRESHARED_KEY; + +typedef struct +{ + IKE_AUTHENTICATION_METHOD AuthMethod; + union + { + IKE_AUTHENTICATION_PRESHARED_KEY PsKey; + }; +} IKE_AUTHENTICATION_INFORMATION, *PIKE_AUTHENTICATION_INFORMATION; + +#endif + +#ifndef MOFCOMP_PASS + +#ifdef _ISDSCP_ +#define ISDSC_API WINAPI +#else +#define ISDSC_API DECLSPEC_IMPORT WINAPI +#endif + + +// +// Each iscsi session and connection has a unique session or connection +// id that is used to reference the session. It it not related to the +// actual ISID +// +typedef struct _ISCSI_UNIQUE_SESSION_ID +{ + ULONGLONG AdapterUnique; + ULONGLONG AdapterSpecific; +} ISCSI_UNIQUE_SESSION_ID, *PISCSI_UNIQUE_SESSION_ID, + ISCSI_UNIQUE_CONNECTION_ID, *PISCSI_UNIQUE_CONNECTION_ID; + +// +// This specifies a mapping from a target LUN to a OS LUN +// + +typedef struct +{ + ULONG OSLUN; + ULONGLONG TargetLUN; +} SCSI_LUN_LIST, *PSCSI_LUN_LIST; + +typedef struct +{ + WCHAR InitiatorName[MAX_ISCSI_HBANAME_LEN]; + WCHAR TargetName[MAX_ISCSI_NAME_LEN + 1]; + WCHAR OSDeviceName[MAX_PATH]; /* \device\ScsiPort3 */ + ISCSI_UNIQUE_SESSION_ID SessionId; + ULONG OSBusNumber; + ULONG OSTargetNumber; + ULONG LUNCount; +#ifdef MIDL_PASS + [size_is(LUNCount)] +#endif + PSCSI_LUN_LIST LUNList; +} ISCSI_TARGET_MAPPINGW, *PISCSI_TARGET_MAPPINGW; + +typedef struct +{ + CHAR InitiatorName[MAX_ISCSI_HBANAME_LEN]; + CHAR TargetName[MAX_ISCSI_NAME_LEN + 1]; + CHAR OSDeviceName[MAX_PATH]; /* \device\ScsiPort3 */ + ISCSI_UNIQUE_SESSION_ID SessionId; + ULONG OSBusNumber; + ULONG OSTargetNumber; + ULONG LUNCount; +#ifdef MIDL_PASS + [size_is(LUNCount)] +#endif + PSCSI_LUN_LIST LUNList; +} ISCSI_TARGET_MAPPINGA, *PISCSI_TARGET_MAPPINGA; + +#ifdef UNICODE +typedef ISCSI_TARGET_MAPPINGW ISCSI_TARGET_MAPPING; +typedef PISCSI_TARGET_MAPPINGW PISCSI_TARGET_MAPPING; +#else +typedef ISCSI_TARGET_MAPPINGA ISCSI_TARGET_MAPPING; +typedef PISCSI_TARGET_MAPPINGA PISCSI_TARGET_MAPPING; +#endif // UNICODE + +typedef struct +{ + WCHAR SymbolicName[MAX_ISCSI_PORTAL_NAME_LEN]; + WCHAR Address[MAX_ISCSI_PORTAL_ADDRESS_LEN]; + USHORT Socket; +} ISCSI_TARGET_PORTALW, *PISCSI_TARGET_PORTALW; + +typedef struct +{ + CHAR SymbolicName[MAX_ISCSI_PORTAL_NAME_LEN]; + CHAR Address[MAX_ISCSI_PORTAL_ADDRESS_LEN]; + USHORT Socket; +} ISCSI_TARGET_PORTALA, *PISCSI_TARGET_PORTALA; + +#ifdef UNICODE +typedef ISCSI_TARGET_PORTALW ISCSI_TARGET_PORTAL; +typedef PISCSI_TARGET_PORTALW PISCSI_TARGET_PORTAL; +#else +typedef ISCSI_TARGET_PORTALA ISCSI_TARGET_PORTAL; +typedef PISCSI_TARGET_PORTALA PISCSI_TARGET_PORTAL; +#endif // UNICODE + +typedef struct +{ + WCHAR InitiatorName[MAX_ISCSI_HBANAME_LEN]; + ULONG InitiatorPortNumber; + WCHAR SymbolicName[MAX_ISCSI_PORTAL_NAME_LEN]; + WCHAR Address[MAX_ISCSI_PORTAL_ADDRESS_LEN]; + USHORT Socket; +} ISCSI_TARGET_PORTAL_INFOW, *PISCSI_TARGET_PORTAL_INFOW; + +typedef struct +{ + CHAR InitiatorName[MAX_ISCSI_HBANAME_LEN]; + ULONG InitiatorPortNumber; + CHAR SymbolicName[MAX_ISCSI_PORTAL_NAME_LEN]; + CHAR Address[MAX_ISCSI_PORTAL_ADDRESS_LEN]; + USHORT Socket; +} ISCSI_TARGET_PORTAL_INFOA, *PISCSI_TARGET_PORTAL_INFOA; + +#ifdef UNICODE +typedef ISCSI_TARGET_PORTAL_INFOW ISCSI_TARGET_PORTAL_INFO; +typedef PISCSI_TARGET_PORTAL_INFOW PISCSI_TARGET_PORTAL_INFO; +#else +typedef ISCSI_TARGET_PORTAL_INFOA ISCSI_TARGET_PORTAL_INFO; +typedef PISCSI_TARGET_PORTAL_INFOA PISCSI_TARGET_PORTAL_INFO; +#endif // UNICODE + +typedef struct +{ + WCHAR InitiatorName[MAX_ISCSI_HBANAME_LEN]; + ULONG InitiatorPortNumber; + WCHAR SymbolicName[MAX_ISCSI_PORTAL_NAME_LEN]; + WCHAR Address[MAX_ISCSI_PORTAL_ADDRESS_LEN]; + USHORT Socket; + ISCSI_SECURITY_FLAGS SecurityFlags; + ISCSI_LOGIN_OPTIONS LoginOptions; +} ISCSI_TARGET_PORTAL_INFO_EXW, *PISCSI_TARGET_PORTAL_INFO_EXW; + +typedef struct +{ + CHAR InitiatorName[MAX_ISCSI_HBANAME_LEN]; + ULONG InitiatorPortNumber; + CHAR SymbolicName[MAX_ISCSI_PORTAL_NAME_LEN]; + CHAR Address[MAX_ISCSI_PORTAL_ADDRESS_LEN]; + USHORT Socket; + ISCSI_SECURITY_FLAGS SecurityFlags; + ISCSI_LOGIN_OPTIONS LoginOptions; +} ISCSI_TARGET_PORTAL_INFO_EXA, *PISCSI_TARGET_PORTAL_INFO_EXA; + +#ifdef UNICODE +typedef ISCSI_TARGET_PORTAL_INFO_EXW ISCSI_TARGET_PORTAL_INFO_EX; +typedef PISCSI_TARGET_PORTAL_INFO_EXW PISCSI_TARGET_PORTAL_INFO_EX; +#else +typedef ISCSI_TARGET_PORTAL_INFO_EXA ISCSI_TARGET_PORTAL_INFO_EX; +typedef PISCSI_TARGET_PORTAL_INFO_EXA PISCSI_TARGET_PORTAL_INFO_EX; +#endif // UNICODE + +typedef struct +{ + ULONG Count; + ISCSI_TARGET_PORTALW Portals[1]; +} ISCSI_TARGET_PORTAL_GROUPW, *PISCSI_TARGET_PORTAL_GROUPW; + +typedef struct +{ + ULONG Count; + ISCSI_TARGET_PORTALA Portals[1]; +} ISCSI_TARGET_PORTAL_GROUPA, *PISCSI_TARGET_PORTAL_GROUPA; + +#ifdef UNICODE +typedef ISCSI_TARGET_PORTAL_GROUPW ISCSI_TARGET_PORTAL_GROUP; +typedef PISCSI_TARGET_PORTAL_GROUPW PISCSI_TARGET_PORTAL_GROUP; +#else +typedef ISCSI_TARGET_PORTAL_GROUPA ISCSI_TARGET_PORTAL_GROUP; +typedef PISCSI_TARGET_PORTAL_GROUPA PISCSI_TARGET_PORTAL_GROUP; +#endif // UNICODE + + +typedef struct +{ + ISCSI_UNIQUE_CONNECTION_ID ConnectionId; // TODO: add connectionid to mof + PWCHAR InitiatorAddress; + PWCHAR TargetAddress; + USHORT InitiatorSocket; + USHORT TargetSocket; + UCHAR CID[2]; +} ISCSI_CONNECTION_INFOW, *PISCSI_CONNECTION_INFOW; + +typedef struct +{ + ISCSI_UNIQUE_SESSION_ID SessionId; + PWCHAR InitiatorName; + PWCHAR TargetNodeName; + PWCHAR TargetName; + UCHAR ISID[6]; + UCHAR TSID[2]; + ULONG ConnectionCount; + PISCSI_CONNECTION_INFOW Connections; +} ISCSI_SESSION_INFOW, *PISCSI_SESSION_INFOW; + + +typedef struct +{ + ISCSI_UNIQUE_CONNECTION_ID ConnectionId; // TODO: add connectionid to mof + PCHAR InitiatorAddress; + PCHAR TargetAddress; + USHORT InitiatorSocket; + USHORT TargetSocket; + UCHAR CID[2]; +} ISCSI_CONNECTION_INFOA, *PISCSI_CONNECTION_INFOA; + +typedef struct +{ + ISCSI_UNIQUE_SESSION_ID SessionId; + PCHAR InitiatorName; + PCHAR TargetNodeName; + PCHAR TargetName; + UCHAR ISID[6]; + UCHAR TSID[2]; + ULONG ConnectionCount; + PISCSI_CONNECTION_INFOA Connections; +} ISCSI_SESSION_INFOA, *PISCSI_SESSION_INFOA; + + +#ifdef UNICODE +typedef ISCSI_SESSION_INFOW ISCSI_SESSION_INFO; +typedef PISCSI_SESSION_INFOW PISCSI_SESSION_INFO; + +typedef ISCSI_CONNECTION_INFOW ISCSI_CONNECTION_INFO; +typedef PISCSI_CONNECTION_INFOW PISCSI_CONNECTION_INFO; +#else +typedef ISCSI_SESSION_INFOA ISCSI_SESSION_INFO; +typedef PISCSI_SESSION_INFOA PISCSI_SESSION_INFO; + +typedef ISCSI_CONNECTION_INFOA ISCSI_CONNECTION_INFO; +typedef PISCSI_CONNECTION_INFOA PISCSI_CONNECTION_INFO; +#endif + +typedef struct +{ + ISCSI_UNIQUE_CONNECTION_ID ConnectionId; + UCHAR State; + UCHAR Protocol; + UCHAR HeaderDigest; + UCHAR DataDigest; + ULONG MaxRecvDataSegmentLength; + ISCSI_AUTH_TYPES AuthType; + ULONGLONG EstimatedThroughput; + ULONG MaxDatagramSize; +} ISCSI_CONNECTION_INFO_EX, *PISCSI_CONNECTION_INFO_EX; + +typedef struct +{ + ISCSI_UNIQUE_SESSION_ID SessionId; + BOOLEAN InitialR2t; + BOOLEAN ImmediateData; + UCHAR Type; + BOOLEAN DataSequenceInOrder; + BOOLEAN DataPduInOrder; + UCHAR ErrorRecoveryLevel; + ULONG MaxOutstandingR2t; + ULONG FirstBurstLength; + ULONG MaxBurstLength; + ULONG MaximumConnections; + ULONG ConnectionCount; + PISCSI_CONNECTION_INFO_EX Connections; +} ISCSI_SESSION_INFO_EX, *PISCSI_SESSION_INFO_EX; + +#ifndef MIDL_PASS +typedef struct +{ + WCHAR InitiatorName[MAX_ISCSI_HBANAME_LEN]; + WCHAR TargetName[MAX_ISCSI_NAME_LEN + 1]; + SCSI_ADDRESS ScsiAddress; + GUID DeviceInterfaceType; + WCHAR DeviceInterfaceName[MAX_PATH]; + WCHAR LegacyName[MAX_PATH]; + STORAGE_DEVICE_NUMBER StorageDeviceNumber; + DWORD /* DEVINST */ DeviceInstance; +} ISCSI_DEVICE_ON_SESSIONW, *PISCSI_DEVICE_ON_SESSIONW; + +typedef struct +{ + CHAR InitiatorName[MAX_ISCSI_HBANAME_LEN]; + CHAR TargetName[MAX_ISCSI_NAME_LEN + 1]; + SCSI_ADDRESS ScsiAddress; + GUID DeviceInterfaceType; + CHAR DeviceInterfaceName[MAX_PATH]; + CHAR LegacyName[MAX_PATH]; + STORAGE_DEVICE_NUMBER StorageDeviceNumber; + DWORD /* DEVINST */ DeviceInstance; +} ISCSI_DEVICE_ON_SESSIONA, *PISCSI_DEVICE_ON_SESSIONA; + +#ifdef UNICODE +typedef ISCSI_DEVICE_ON_SESSIONW ISCSI_DEVICE_ON_SESSION; +typedef PISCSI_DEVICE_ON_SESSIONW PISCSI_DEVICE_ON_SESSION; +#else +typedef ISCSI_DEVICE_ON_SESSIONA ISCSI_DEVICE_ON_SESSION; +typedef PISCSI_DEVICE_ON_SESSIONA PISCSI_DEVICE_ON_SESSION; +#endif + +#endif + +typedef struct +{ + WCHAR TargetName[MAX_ISCSI_NAME_LEN + 1]; + BOOLEAN IsInformationalSession; + WCHAR InitiatorInstance[MAX_ISCSI_HBANAME_LEN]; + ULONG InitiatorPortNumber; + ISCSI_TARGET_PORTALW TargetPortal; + ISCSI_SECURITY_FLAGS SecurityFlags; + PISCSI_TARGET_MAPPINGW Mappings; + ISCSI_LOGIN_OPTIONS LoginOptions; +} PERSISTENT_ISCSI_LOGIN_INFOW, *PPERSISTENT_ISCSI_LOGIN_INFOW; + +typedef struct +{ + CHAR TargetName[MAX_ISCSI_NAME_LEN + 1]; + BOOLEAN IsInformationalSession; + CHAR InitiatorInstance[MAX_ISCSI_HBANAME_LEN]; + ULONG InitiatorPortNumber; + ISCSI_TARGET_PORTALA TargetPortal; + ISCSI_SECURITY_FLAGS SecurityFlags; + PISCSI_TARGET_MAPPINGA Mappings; + ISCSI_LOGIN_OPTIONS LoginOptions; +} PERSISTENT_ISCSI_LOGIN_INFOA, *PPERSISTENT_ISCSI_LOGIN_INFOA; + +#ifdef UNICODE +typedef PERSISTENT_ISCSI_LOGIN_INFOW PERSISTENT_ISCSI_LOGIN_INFO; +typedef PPERSISTENT_ISCSI_LOGIN_INFOW PPERSISTENT_ISCSI_LOGIN_INFO; +#else +typedef PERSISTENT_ISCSI_LOGIN_INFOA PERSISTENT_ISCSI_LOGIN_INFO; +typedef PPERSISTENT_ISCSI_LOGIN_INFOA PPERSISTENT_ISCSI_LOGIN_INFO; +#endif + + +// +// definitions of information that can be queried and set via the +// GetIScsiTargetInformation and SetIScsiTargetInformation apis +// +typedef enum +{ + ISCSI_TCP_PROTOCOL_TYPE +} TARGETPROTOCOLTYPE, *PTARGETPROTOCOLTYPE; + +typedef enum +{ + // Requires DiscoveryMechansim parameter + ProtocolType, // Protocol used to communicate with TARGET - TARGETPROTOCOLTYPE + + // Requires DiscoveryMechansim parameter + TargetAlias, // Alias Name - WCHAR Alias[MAX_ISCSI_TARGET_ALIAS_LEN] + + // + DiscoveryMechanisms, // Discovery mechanisms - strings + + // Requires DiscoveryMechansim parameter + PortalGroups, // Portal Groups - array of portal groups, preceeded by a ULONG count. Each Portal Group must be aliagned on a 4 byte boundry + + // Requires DiscoveryMechansim parameter + // ISCSI_TARGET_MAPPING + PersistentTargetMappings, + + // Requires DiscoveryMechansim parameter + InitiatorName, // Name of initiator that can connect to target + + // Requires DiscoveryMechansim parameter + TargetFlags, // TargetFlags + + LoginOptions // Requires DiscoveryMechansim parameter + // ISCSI_LOGIN_OPTIONS + +} TARGET_INFORMATION_CLASS, *PTARGET_INFORMATION_CLASS; + + +typedef struct +{ + ULONG MajorVersion; + ULONG MinorVersion; + ULONG BuildNumber; +} ISCSI_VERSION_INFO, *PISCSI_VERSION_INFO; + + + +#if ! (defined(MIDL_PASS)) + +ISDSC_STATUS ISDSC_API GetIScsiVersionInformation( + PISCSI_VERSION_INFO VersionInfo + ); + +ISDSC_STATUS ISDSC_API GetIScsiTargetInformationW( + IN _In_ PWSTR TargetName, + IN _In_opt_ PWSTR DiscoveryMechanism, + IN TARGET_INFORMATION_CLASS InfoClass, + IN OUT PULONG BufferSize, + OUT PVOID Buffer + ); + +ISDSC_STATUS ISDSC_API GetIScsiTargetInformationA( + IN _In_ PSTR TargetName, + IN _In_opt_ PSTR DiscoveryMechanism, + IN TARGET_INFORMATION_CLASS InfoClass, + IN OUT PULONG BufferSize, + OUT PVOID Buffer + ); + +#ifdef UNICODE +#define GetIScsiTargetInformation GetIScsiTargetInformationW +#else +#define GetIScsiTargetInformation GetIScsiTargetInformationA +#endif // UNICODE + +ISDSC_STATUS ISDSC_API AddIScsiConnectionW( + IN PISCSI_UNIQUE_SESSION_ID UniqueSessionId, + IN PVOID Reserved, + IN ULONG InitiatorPortNumber, + IN PISCSI_TARGET_PORTALW TargetPortal, + IN OPTIONAL ISCSI_SECURITY_FLAGS SecurityFlags, + IN OPTIONAL PISCSI_LOGIN_OPTIONS LoginOptions, + IN OPTIONAL ULONG KeySize, + IN OPTIONAL _In_reads_opt_(KeySize) PCHAR Key, + OUT OPTIONAL PISCSI_UNIQUE_CONNECTION_ID ConnectionId + ); + +ISDSC_STATUS ISDSC_API AddIScsiConnectionA( + IN PISCSI_UNIQUE_SESSION_ID UniqueSessionId, + IN PVOID Reserved, + IN ULONG InitiatorPortNumber, + IN PISCSI_TARGET_PORTALA TargetPortal, + IN OPTIONAL ISCSI_SECURITY_FLAGS SecurityFlags, + IN OPTIONAL PISCSI_LOGIN_OPTIONS LoginOptions, + IN OPTIONAL ULONG KeySize, + IN OPTIONAL _In_reads_opt_(KeySize) PCHAR Key, + OUT OPTIONAL PISCSI_UNIQUE_CONNECTION_ID ConnectionId + ); + +#ifdef UNICODE +#define AddIScsiConnection AddIScsiConnectionW +#else +#define AddIScsiConnection AddIScsiConnectionA +#endif // UNICODE + + +ISDSC_STATUS ISDSC_API RemoveIScsiConnection( + IN PISCSI_UNIQUE_SESSION_ID UniqueSessionId, + IN PISCSI_UNIQUE_CONNECTION_ID ConnectionId + ); + +ISDSC_STATUS ISDSC_API ReportIScsiTargetsW( + IN BOOLEAN ForceUpdate, + IN OUT PULONG BufferSize, + OUT _Inout_updates_opt_(*BufferSize) PWCHAR Buffer + ); + +ISDSC_STATUS ISDSC_API ReportIScsiTargetsA( + IN BOOLEAN ForceUpdate, + IN OUT PULONG BufferSize, + OUT _Inout_updates_opt_(*BufferSize) PCHAR Buffer + ); + +#ifdef UNICODE +#define ReportIScsiTargets ReportIScsiTargetsW +#else +#define ReportIScsiTargets ReportIScsiTargetsA +#endif + + +ISDSC_STATUS ISDSC_API AddIScsiStaticTargetW( + IN _In_ PWSTR TargetName, + IN OPTIONAL _In_opt_ PWSTR TargetAlias, + IN ISCSI_TARGET_FLAGS TargetFlags, + IN BOOLEAN Persist, + IN OPTIONAL PISCSI_TARGET_MAPPINGW Mappings, + IN OPTIONAL PISCSI_LOGIN_OPTIONS LoginOptions, + IN OPTIONAL PISCSI_TARGET_PORTAL_GROUPW PortalGroup + ); + +ISDSC_STATUS ISDSC_API AddIScsiStaticTargetA( + IN _In_ PSTR TargetName, + IN OPTIONAL _In_opt_ PSTR TargetAlias, + IN ISCSI_TARGET_FLAGS TargetFlags, + IN BOOLEAN Persist, + IN OPTIONAL PISCSI_TARGET_MAPPINGA Mappings, + IN OPTIONAL PISCSI_LOGIN_OPTIONS LoginOptions, + IN OPTIONAL PISCSI_TARGET_PORTAL_GROUPA PortalGroup + ); + +#ifdef UNICODE +#define AddIScsiStaticTarget AddIScsiStaticTargetW +#else +#define AddIScsiStaticTarget AddIScsiStaticTargetA +#endif + +ISDSC_STATUS ISDSC_API RemoveIScsiStaticTargetW( + IN _In_ PWSTR TargetName + ); + +ISDSC_STATUS ISDSC_API RemoveIScsiStaticTargetA( + IN _In_ PSTR TargetName + ); + +#ifdef UNICODE +#define RemoveIScsiStaticTarget RemoveIScsiStaticTargetW +#else +#define RemoveIScsiStaticTarget RemoveIScsiStaticTargetA +#endif + +ISDSC_STATUS ISDSC_API AddIScsiSendTargetPortalW( + IN OPTIONAL _In_opt_ PWSTR InitiatorInstance, + IN OPTIONAL ULONG InitiatorPortNumber, + IN OPTIONAL PISCSI_LOGIN_OPTIONS LoginOptions, + IN OPTIONAL ISCSI_SECURITY_FLAGS SecurityFlags, + IN PISCSI_TARGET_PORTALW Portal + ); + +ISDSC_STATUS ISDSC_API AddIScsiSendTargetPortalA( + IN OPTIONAL _In_opt_ PSTR InitiatorInstance, + IN OPTIONAL ULONG InitiatorPortNumber, + IN OPTIONAL PISCSI_LOGIN_OPTIONS LoginOptions, + IN OPTIONAL ISCSI_SECURITY_FLAGS SecurityFlags, + IN PISCSI_TARGET_PORTALA Portal + ); + +#ifdef UNICODE +#define AddIScsiSendTargetPortal AddIScsiSendTargetPortalW +#else +#define AddIScsiSendTargetPortal AddIScsiSendTargetPortalA +#endif + +ISDSC_STATUS ISDSC_API RemoveIScsiSendTargetPortalW( + IN OPTIONAL PWSTR _In_opt_ InitiatorInstance, + IN OPTIONAL ULONG InitiatorPortNumber, + IN PISCSI_TARGET_PORTALW Portal + ); + +ISDSC_STATUS ISDSC_API RemoveIScsiSendTargetPortalA( + IN OPTIONAL PSTR _In_opt_ InitiatorInstance, + IN OPTIONAL ULONG InitiatorPortNumber, + IN PISCSI_TARGET_PORTALA Portal + ); + +#ifdef UNICODE +#define RemoveIScsiSendTargetPortal RemoveIScsiSendTargetPortalW +#else +#define RemoveIScsiSendTargetPortal RemoveIScsiSendTargetPortalA +#endif + +ISDSC_STATUS ISDSC_API RefreshIScsiSendTargetPortalW( + IN OPTIONAL PWSTR _In_opt_ InitiatorInstance, + IN OPTIONAL ULONG InitiatorPortNumber, + IN PISCSI_TARGET_PORTALW Portal + ); + +ISDSC_STATUS ISDSC_API RefreshIScsiSendTargetPortalA( + IN OPTIONAL PSTR _In_opt_ InitiatorInstance, + IN OPTIONAL ULONG InitiatorPortNumber, + IN PISCSI_TARGET_PORTALA Portal + ); + +#ifdef UNICODE +#define RefreshIScsiSendTargetPortal RefreshIScsiSendTargetPortalW +#else +#define RefreshIScsiSendTargetPortal RefreshIScsiSendTargetPortalA +#endif + + +ISDSC_STATUS ISDSC_API ReportIScsiSendTargetPortalsW( + IN OUT PULONG PortalCount, + IN OUT PISCSI_TARGET_PORTAL_INFOW PortalInfo + ); + +ISDSC_STATUS ISDSC_API ReportIScsiSendTargetPortalsA( + IN OUT PULONG PortalCount, + IN OUT PISCSI_TARGET_PORTAL_INFOA PortalInfo + ); +#ifdef UNICODE +#define ReportIScsiSendTargetPortals ReportIScsiSendTargetPortalsW +#else +#define ReportIScsiSendTargetPortals ReportIScsiSendTargetPortalsA +#endif + +ISDSC_STATUS ISDSC_API ReportIScsiSendTargetPortalsExW( + OUT PULONG PortalCount, + IN OUT PULONG PortalInfoSize, + IN OUT PISCSI_TARGET_PORTAL_INFO_EXW PortalInfo + ); + +ISDSC_STATUS ISDSC_API ReportIScsiSendTargetPortalsExA( + OUT PULONG PortalCount, + IN OUT PULONG PortalInfoSize, + IN OUT PISCSI_TARGET_PORTAL_INFO_EXA PortalInfo + ); +#ifdef UNICODE +#define ReportIScsiSendTargetPortalsEx ReportIScsiSendTargetPortalsExW +#else +#define ReportIScsiSendTargetPortalsEx ReportIScsiSendTargetPortalsExA +#endif + + +ISDSC_STATUS ISDSC_API LoginIScsiTargetW( + IN _In_ PWSTR TargetName, + IN BOOLEAN IsInformationalSession, + IN OPTIONAL _In_opt_ PWSTR InitiatorInstance, + IN OPTIONAL ULONG InitiatorPortNumber, + IN OPTIONAL PISCSI_TARGET_PORTALW TargetPortal, + IN OPTIONAL ISCSI_SECURITY_FLAGS SecurityFlags, + IN OPTIONAL PISCSI_TARGET_MAPPINGW Mappings, + IN OPTIONAL PISCSI_LOGIN_OPTIONS LoginOptions, + IN OPTIONAL ULONG KeySize, + IN OPTIONAL _In_reads_opt_(KeySize) PCHAR Key, + IN BOOLEAN IsPersistent, + OUT PISCSI_UNIQUE_SESSION_ID UniqueSessionId, + OUT PISCSI_UNIQUE_CONNECTION_ID UniqueConnectionId + ); + +ISDSC_STATUS ISDSC_API LoginIScsiTargetA( + IN PSTR _In_ TargetName, + IN BOOLEAN IsInformationalSession, + IN OPTIONAL _In_opt_ PSTR InitiatorInstance, + IN OPTIONAL ULONG InitiatorPortNumber, + IN OPTIONAL PISCSI_TARGET_PORTALA TargetPortal, + IN OPTIONAL ISCSI_SECURITY_FLAGS SecurityFlags, + IN OPTIONAL PISCSI_TARGET_MAPPINGA Mappings, + IN OPTIONAL PISCSI_LOGIN_OPTIONS LoginOptions, + IN OPTIONAL ULONG KeySize, + IN OPTIONAL _In_reads_opt_(KeySize) PCHAR Key, + IN BOOLEAN IsPersistent, + OUT PISCSI_UNIQUE_SESSION_ID UniqueSessionId, + OUT PISCSI_UNIQUE_CONNECTION_ID UniqueConnectionId + ); + +#ifdef UNICODE +#define LoginIScsiTarget LoginIScsiTargetW +#else +#define LoginIScsiTarget LoginIScsiTargetA +#endif + + +ISDSC_STATUS ISDSC_API ReportIScsiPersistentLoginsW( + OUT ULONG *Count, + IN OUT PPERSISTENT_ISCSI_LOGIN_INFOW PersistentLoginInfo, + IN OUT PULONG BufferSizeInBytes + ); + +ISDSC_STATUS ISDSC_API ReportIScsiPersistentLoginsA( + OUT ULONG *Count, + IN OUT PPERSISTENT_ISCSI_LOGIN_INFOA PersistentLoginInfo, + IN OUT PULONG BufferSizeInBytes + ); + +#ifdef UNICODE +#define ReportIScsiPersistentLogins ReportIScsiPersistentLoginsW +#else +#define ReportIScsiPersistentLogins ReportIScsiPersistentLoginsA +#endif + + + +ISDSC_STATUS ISDSC_API LogoutIScsiTarget( + IN PISCSI_UNIQUE_SESSION_ID UniqueSessionId + ); + +ISDSC_STATUS ISDSC_API RemoveIScsiPersistentTargetW( + IN PWSTR _In_ InitiatorInstance, + IN OPTIONAL ULONG InitiatorPortNumber, + IN PWSTR _In_ TargetName, + IN PISCSI_TARGET_PORTALW Portal + ); + +ISDSC_STATUS ISDSC_API RemoveIScsiPersistentTargetA( + IN PSTR _In_ InitiatorInstance, + IN OPTIONAL ULONG InitiatorPortNumber, + IN PSTR _In_ TargetName, + IN PISCSI_TARGET_PORTALA Portal + ); + +#ifdef UNICODE +#define RemoveIScsiPersistentTarget RemoveIScsiPersistentTargetW +#else +#define RemoveIScsiPersistentTarget RemoveIScsiPersistentTargetA +#endif + +ISDSC_STATUS ISDSC_API SendScsiInquiry( + IN PISCSI_UNIQUE_SESSION_ID UniqueSessionId, + IN ULONGLONG Lun, + IN UCHAR EvpdCmddt, + IN UCHAR PageCode, + OUT PUCHAR ScsiStatus, + IN OUT PULONG ResponseSize, + OUT PUCHAR ResponseBuffer, + IN OUT PULONG SenseSize, + OUT PUCHAR SenseBuffer + ); + +ISDSC_STATUS ISDSC_API SendScsiReadCapacity( + IN PISCSI_UNIQUE_SESSION_ID UniqueSessionId, + IN ULONGLONG Lun, + OUT PUCHAR ScsiStatus, + IN OUT PULONG ResponseSize, + OUT PUCHAR ResponseBuffer, + IN OUT PULONG SenseSize, + OUT PUCHAR SenseBuffer + ); + +ISDSC_STATUS ISDSC_API SendScsiReportLuns( + IN PISCSI_UNIQUE_SESSION_ID UniqueSessionId, + OUT PUCHAR ScsiStatus, + IN OUT PULONG ResponseSize, + OUT PUCHAR ResponseBuffer, + IN OUT PULONG SenseSize, + OUT PUCHAR SenseBuffer + ); + +ISDSC_STATUS ISDSC_API ReportIScsiInitiatorListW( + IN OUT ULONG *BufferSize, + OUT _Inout_updates_opt_(*BufferSize) PWCHAR Buffer + ); + +ISDSC_STATUS ISDSC_API ReportIScsiInitiatorListA( + IN OUT PULONG BufferSize, + OUT _Inout_updates_opt_(*BufferSize) PCHAR Buffer + ); + +#ifdef UNICODE +#define ReportIScsiInitiatorList ReportIScsiInitiatorListW +#else +#define ReportIScsiInitiatorList ReportIScsiInitiatorListA +#endif + + +ISDSC_STATUS ISDSC_API ReportActiveIScsiTargetMappingsW( + IN OUT PULONG BufferSize, + OUT PULONG MappingCount, + OUT PISCSI_TARGET_MAPPINGW Mappings + ); + +ISDSC_STATUS ISDSC_API ReportActiveIScsiTargetMappingsA( + IN OUT PULONG BufferSize, + OUT PULONG MappingCount, + OUT PISCSI_TARGET_MAPPINGA Mappings + ); + +#ifdef UNICODE +#define ReportActiveIScsiTargetMappings ReportActiveIScsiTargetMappingsW +#else +#define ReportActiveIScsiTargetMappings ReportActiveIScsiTargetMappingsA +#endif + +ISDSC_STATUS ISDSC_API SetIScsiTunnelModeOuterAddressW( + IN OPTIONAL _In_opt_ PWSTR InitiatorName, + IN ULONG InitiatorPortNumber, + IN PWSTR _In_opt_ DestinationAddress, + IN PWSTR _In_opt_ OuterModeAddress, + IN BOOLEAN Persist + ); + +ISDSC_STATUS ISDSC_API SetIScsiTunnelModeOuterAddressA( + IN OPTIONAL _In_opt_ PSTR InitiatorName, + IN ULONG InitiatorPortNumber, + IN PSTR _In_opt_ DestinationAddress, + IN PSTR _In_opt_ OuterModeAddress, + IN BOOLEAN Persist + ); + +#ifdef UNICODE +#define SetIScsiTunnelModeOuterAddress SetIScsiTunnelModeOuterAddressW +#else +#define SetIScsiTunnelModeOuterAddress SetIScsiTunnelModeOuterAddressA +#endif + + +ISDSC_STATUS ISDSC_API SetIScsiIKEInfoW( + IN OPTIONAL _In_opt_ PWSTR InitiatorName, + IN ULONG InitiatorPortNumber, + IN PIKE_AUTHENTICATION_INFORMATION AuthInfo, + IN BOOLEAN Persist + ); + +ISDSC_STATUS ISDSC_API SetIScsiIKEInfoA( + IN OPTIONAL _In_opt_ PSTR InitiatorName, + IN ULONG InitiatorPortNumber, + IN PIKE_AUTHENTICATION_INFORMATION AuthInfo, + IN BOOLEAN Persist + ); + +#ifdef UNICODE +#define SetIScsiIKEInfo SetIScsiIKEInfoW +#else +#define SetIScsiIKEInfo SetIScsiIKEInfoA +#endif + +ISDSC_STATUS ISDSC_API GetIScsiIKEInfoW( + IN OPTIONAL _In_opt_ PWSTR InitiatorName, + IN ULONG InitiatorPortNumber, + IN PULONG Reserved, + IN OUT PIKE_AUTHENTICATION_INFORMATION AuthInfo + ); + +ISDSC_STATUS ISDSC_API GetIScsiIKEInfoA( + IN OPTIONAL _In_opt_ PSTR InitiatorName, + IN ULONG InitiatorPortNumber, + IN PULONG Reserved, + IN OUT PIKE_AUTHENTICATION_INFORMATION AuthInfo + ); + +#ifdef UNICODE +#define GetIScsiIKEInfo GetIScsiIKEInfoW +#else +#define GetIScsiIKEInfo GetIScsiIKEInfoA +#endif + +ISDSC_STATUS ISDSC_API SetIScsiGroupPresharedKey( + IN ULONG KeyLength, + IN PUCHAR Key, + BOOLEAN Persist + ); + +ISDSC_STATUS ISDSC_API SetIScsiInitiatorCHAPSharedSecret( + IN ULONG SharedSecretLength, + IN PUCHAR SharedSecret + ); + +ISDSC_STATUS ISDSC_API SetIScsiInitiatorRADIUSSharedSecret( + IN ULONG SharedSecretLength, + IN PUCHAR SharedSecret + ); + +ISDSC_STATUS ISDSC_API SetIScsiInitiatorNodeNameW( + IN OPTIONAL _In_opt_ PWSTR InitiatorNodeName + ); + +ISDSC_STATUS ISDSC_API SetIScsiInitiatorNodeNameA( + IN OPTIONAL _In_opt_ PSTR InitiatorNodeName + ); + +#ifdef UNICODE +#define SetIScsiInitiatorNodeName SetIScsiInitiatorNodeNameW +#else +#define SetIScsiInitiatorNodeName SetIScsiInitiatorNodeNameA +#endif + +ISDSC_STATUS ISDSC_API GetIScsiInitiatorNodeNameW( + _Out_writes_(MAX_ISCSI_NAME_LEN+1) PWCHAR InitiatorNodeName + ); + +ISDSC_STATUS ISDSC_API GetIScsiInitiatorNodeNameA( + _Out_writes_(MAX_ISCSI_NAME_LEN+1) PCHAR InitiatorNodeName + ); + +#ifdef UNICODE +#define GetIScsiInitiatorNodeName GetIScsiInitiatorNodeNameW +#else +#define GetIScsiInitiatorNodeName GetIScsiInitiatorNodeNameA +#endif + +ISDSC_STATUS ISDSC_API AddISNSServerW( + IN _In_ PWSTR Address + ); + +ISDSC_STATUS ISDSC_API AddISNSServerA( + IN _In_ PSTR Address + ); + +#ifdef UNICODE +#define AddISNSServer AddISNSServerW +#else +#define AddISNSServer AddISNSServerA +#endif + + +ISDSC_STATUS ISDSC_API RemoveISNSServerW( + IN _In_ PWSTR Address + ); + +ISDSC_STATUS ISDSC_API RemoveISNSServerA( + IN _In_ PSTR Address + ); +#ifdef UNICODE +#define RemoveISNSServer RemoveISNSServerW +#else +#define RemoveISNSServer RemoveISNSServerA +#endif + +ISDSC_STATUS ISDSC_API RefreshISNSServerW( + IN _In_ PWSTR Address + ); + +ISDSC_STATUS ISDSC_API RefreshISNSServerA( + IN _In_ PSTR Address + ); +#ifdef UNICODE +#define RefreshISNSServer RefreshISNSServerW +#else +#define RefreshISNSServer RefreshISNSServerA +#endif + +ISDSC_STATUS ISDSC_API ReportISNSServerListW( + IN OUT PULONG BufferSizeInChar, + OUT _Out_writes_opt_(*BufferSizeInChar) PWCHAR Buffer + ); + +ISDSC_STATUS ISDSC_API ReportISNSServerListA( + IN OUT PULONG BufferSizeInChar, + OUT _Out_writes_opt_(*BufferSizeInChar) PCHAR Buffer + ); +#ifdef UNICODE +#define ReportISNSServerList ReportISNSServerListW +#else +#define ReportISNSServerList ReportISNSServerListA +#endif + + + +ISDSC_STATUS ISDSC_API GetIScsiSessionListW( + IN OUT ULONG *BufferSize, + OUT ULONG *SessionCount, + OUT OPTIONAL PISCSI_SESSION_INFOW SessionInfo + ); + +ISDSC_STATUS ISDSC_API GetIScsiSessionListA( + IN OUT ULONG *BufferSize, + OUT ULONG *SessionCount, + OUT OPTIONAL PISCSI_SESSION_INFOA SessionInfo + ); +#ifdef UNICODE +#define GetIScsiSessionList GetIScsiSessionListW +#else +#define GetIScsiSessionList GetIScsiSessionListA +#endif + +ISDSC_STATUS ISDSC_API GetIScsiSessionListEx ( + IN OUT ULONG *BufferSize, + OUT ULONG *SessionCountPtr, + OUT OPTIONAL PISCSI_SESSION_INFO_EX SessionInfo +); + +ISDSC_STATUS ISDSC_API GetDevicesForIScsiSessionW( + IN PISCSI_UNIQUE_SESSION_ID UniqueSessionId, + IN OUT ULONG *DeviceCount, + OUT PISCSI_DEVICE_ON_SESSIONW Devices +); + +ISDSC_STATUS ISDSC_API GetDevicesForIScsiSessionA( + IN PISCSI_UNIQUE_SESSION_ID UniqueSessionId, + IN OUT ULONG *DeviceCount, + OUT PISCSI_DEVICE_ON_SESSIONA Devices +); + +#ifdef UNICODE +#define GetDevicesForIScsiSession GetDevicesForIScsiSessionW +#else +#define GetDevicesForIScsiSession GetDevicesForIScsiSessionA +#endif + +ISDSC_STATUS ISDSC_API SetupPersistentIScsiVolumes( + ); + +ISDSC_STATUS ISDSC_API SetupPersistentIScsiDevices( + ); + +ISDSC_STATUS ISDSC_API AddPersistentIScsiDeviceW( + IN _In_ PWSTR DevicePath +); + +ISDSC_STATUS ISDSC_API AddPersistentIScsiDeviceA( + IN _In_ PSTR DevicePath +); + +#ifdef UNICODE +#define AddPersistentIScsiDevice AddPersistentIScsiDeviceW +#else +#define AddPersistentIScsiDevice AddPersistentIScsiDeviceA +#endif + +ISDSC_STATUS ISDSC_API RemovePersistentIScsiDeviceW( + IN _In_ PWSTR DevicePath +); + +ISDSC_STATUS ISDSC_API RemovePersistentIScsiDeviceA( + IN _In_ PSTR DevicePath +); + +#ifdef UNICODE +#define RemovePersistentIScsiDevice RemovePersistentIScsiDeviceW +#else +#define RemovePersistentIScsiDevice RemovePersistentIScsiDeviceA +#endif + +ISDSC_STATUS ISDSC_API ClearPersistentIScsiDevices( +); + +ISDSC_STATUS ISDSC_API ReportPersistentIScsiDevicesW( + IN OUT PULONG BufferSizeInChar, + OUT _Out_writes_opt_(*BufferSizeInChar) PWCHAR Buffer +); + +ISDSC_STATUS ISDSC_API ReportPersistentIScsiDevicesA( + IN OUT PULONG BufferSizeInChar, + OUT _Out_writes_opt_(*BufferSizeInChar) PCHAR Buffer +); + +#ifdef UNICODE +#define ReportPersistentIScsiDevices ReportPersistentIScsiDevicesW +#else +#define ReportPersistentIScsiDevices ReportPersistentIScsiDevicesA +#endif + +ISDSC_STATUS ISDSC_API ReportIScsiTargetPortalsW( + IN OPTIONAL _In_opt_ PWSTR InitiatorName, + IN PWSTR _In_ TargetName, + IN OPTIONAL PUSHORT TargetPortalTag, + IN OUT PULONG ElementCount, + OUT PISCSI_TARGET_PORTALW Portals + ); + +ISDSC_STATUS ISDSC_API ReportIScsiTargetPortalsA( + IN OPTIONAL _In_opt_ PSTR InitiatorName, + IN PSTR _In_ TargetName, + IN OPTIONAL PUSHORT TargetPortalTag, + IN OUT PULONG ElementCount, + OUT PISCSI_TARGET_PORTALA Portals + ); + +#ifdef UNICODE +#define ReportIScsiTargetPortals ReportIScsiTargetPortalsW +#else +#define ReportIScsiTargetPortals ReportIScsiTargetPortalsA +#endif + +ISDSC_STATUS ISDSC_API AddRadiusServerW( + IN _In_ PWSTR Address + ); + +ISDSC_STATUS ISDSC_API AddRadiusServerA( + IN _In_ PSTR Address + ); + +#ifdef UNICODE +#define AddRadiusServer AddRadiusServerW +#else +#define AddRadiusServer AddRadiusServerA +#endif + + +ISDSC_STATUS ISDSC_API RemoveRadiusServerW( + IN _In_ PWSTR Address + ); + +ISDSC_STATUS ISDSC_API RemoveRadiusServerA( + IN _In_ PSTR Address + ); +#ifdef UNICODE +#define RemoveRadiusServer RemoveRadiusServerW +#else +#define RemoveRadiusServer RemoveRadiusServerA +#endif + + +ISDSC_STATUS ISDSC_API ReportRadiusServerListW( + IN OUT PULONG BufferSizeInChar, + OUT _Out_writes_opt_(*BufferSizeInChar) PWCHAR Buffer + ); + +ISDSC_STATUS ISDSC_API ReportRadiusServerListA( + IN OUT PULONG BufferSizeInChar, + OUT _Out_writes_opt_(*BufferSizeInChar) PCHAR Buffer + ); +#ifdef UNICODE +#define ReportRadiusServerList ReportRadiusServerListW +#else +#define ReportRadiusServerList ReportRadiusServerListA +#endif + +#endif // MIDL_PASS + +#endif // ! MOFCOMP_PASS + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ISCSI) + +#ifdef __cplusplus +} +#endif + +#endif + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iwscapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iwscapi.h new file mode 100644 index 0000000000000000000000000000000000000000..20cc193885dd9bbf3f07f88f3b1bf43da7501cd5 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iwscapi.h @@ -0,0 +1,1231 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __iwscapi_h__ +#define __iwscapi_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IWscProduct_FWD_DEFINED__ +#define __IWscProduct_FWD_DEFINED__ +typedef interface IWscProduct IWscProduct; + +#endif /* __IWscProduct_FWD_DEFINED__ */ + + +#ifndef __IWscProduct2_FWD_DEFINED__ +#define __IWscProduct2_FWD_DEFINED__ +typedef interface IWscProduct2 IWscProduct2; + +#endif /* __IWscProduct2_FWD_DEFINED__ */ + + +#ifndef __IWscProduct3_FWD_DEFINED__ +#define __IWscProduct3_FWD_DEFINED__ +typedef interface IWscProduct3 IWscProduct3; + +#endif /* __IWscProduct3_FWD_DEFINED__ */ + + +#ifndef __IWSCProductList_FWD_DEFINED__ +#define __IWSCProductList_FWD_DEFINED__ +typedef interface IWSCProductList IWSCProductList; + +#endif /* __IWSCProductList_FWD_DEFINED__ */ + + +#ifndef __IWSCDefaultProduct_FWD_DEFINED__ +#define __IWSCDefaultProduct_FWD_DEFINED__ +typedef interface IWSCDefaultProduct IWSCDefaultProduct; + +#endif /* __IWSCDefaultProduct_FWD_DEFINED__ */ + + +#ifndef __WSCProductList_FWD_DEFINED__ +#define __WSCProductList_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class WSCProductList WSCProductList; +#else +typedef struct WSCProductList WSCProductList; +#endif /* __cplusplus */ + +#endif /* __WSCProductList_FWD_DEFINED__ */ + + +#ifndef __WSCDefaultProduct_FWD_DEFINED__ +#define __WSCDefaultProduct_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class WSCDefaultProduct WSCDefaultProduct; +#else +typedef struct WSCDefaultProduct WSCDefaultProduct; +#endif /* __cplusplus */ + +#endif /* __WSCDefaultProduct_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_iwscapi_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#ifndef __WSC_SECURITY_PRODUCT_SUBSTATUS__ +#define __WSC_SECURITY_PRODUCT_SUBSTATUS__ +typedef +enum WSC_SECURITY_PRODUCT_SUBSTATUS + { + WSC_SECURITY_PRODUCT_SUBSTATUS_NOT_SET = 0, + WSC_SECURITY_PRODUCT_SUBSTATUS_NO_ACTION = 1, + WSC_SECURITY_PRODUCT_SUBSTATUS_ACTION_RECOMMENDED = 2, + WSC_SECURITY_PRODUCT_SUBSTATUS_ACTION_NEEDED = 3 + } WSC_SECURITY_PRODUCT_SUBSTATUS; + +#endif +#ifndef __WSC_SECURITY_PRODUCT_STATE__ +#define __WSC_SECURITY_PRODUCT_STATE__ +typedef +enum WSC_SECURITY_PRODUCT_STATE + { + WSC_SECURITY_PRODUCT_STATE_ON = 0, + WSC_SECURITY_PRODUCT_STATE_OFF = 1, + WSC_SECURITY_PRODUCT_STATE_SNOOZED = 2, + WSC_SECURITY_PRODUCT_STATE_EXPIRED = 3 + } WSC_SECURITY_PRODUCT_STATE; + +#endif +#ifndef __SECURITY_PRODUCT_TYPE__ +#define __SECURITY_PRODUCT_TYPE__ +typedef +enum _SECURITY_PRODUCT_TYPE + { + SECURITY_PRODUCT_TYPE_ANTIVIRUS = 0, + SECURITY_PRODUCT_TYPE_FIREWALL = 1, + SECURITY_PRODUCT_TYPE_ANTISPYWARE = 2 + } SECURITY_PRODUCT_TYPE; + +#endif +#ifndef __WSC_SECURITY_SIGNATURE_STATUS__ +#define __WSC_SECURITY_SIGNATURE_STATUS__ +typedef +enum _WSC_SECURITY_SIGNATURE_STATUS + { + WSC_SECURITY_PRODUCT_OUT_OF_DATE = 0, + WSC_SECURITY_PRODUCT_UP_TO_DATE = 1 + } WSC_SECURITY_SIGNATURE_STATUS; + +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_iwscapi_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iwscapi_0000_0000_v0_0_s_ifspec; + +#ifndef __IWscProduct_INTERFACE_DEFINED__ +#define __IWscProduct_INTERFACE_DEFINED__ + +/* interface IWscProduct */ +/* [unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IWscProduct; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8C38232E-3A45-4A27-92B0-1A16A975F669") + IWscProduct : public IDispatch + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProductName( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProductState( + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_STATE *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SignatureStatus( + /* [retval][out] */ __RPC__out WSC_SECURITY_SIGNATURE_STATUS *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_RemediationPath( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProductStateTimestamp( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProductGuid( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ProductIsDefault( + /* [retval][out] */ __RPC__out BOOL *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWscProductVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWscProduct * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWscProduct * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWscProduct * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWscProduct * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWscProduct * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWscProduct * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWscProduct * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductName )( + __RPC__in IWscProduct * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductState) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductState )( + __RPC__in IWscProduct * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_STATE *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_SignatureStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureStatus )( + __RPC__in IWscProduct * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_SIGNATURE_STATUS *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_RemediationPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemediationPath )( + __RPC__in IWscProduct * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductStateTimestamp) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductStateTimestamp )( + __RPC__in IWscProduct * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductGuid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductGuid )( + __RPC__in IWscProduct * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductIsDefault) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductIsDefault )( + __RPC__in IWscProduct * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + END_INTERFACE + } IWscProductVtbl; + + interface IWscProduct + { + CONST_VTBL struct IWscProductVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWscProduct_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWscProduct_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWscProduct_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWscProduct_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWscProduct_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWscProduct_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWscProduct_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWscProduct_get_ProductName(This,pVal) \ + ( (This)->lpVtbl -> get_ProductName(This,pVal) ) + +#define IWscProduct_get_ProductState(This,pVal) \ + ( (This)->lpVtbl -> get_ProductState(This,pVal) ) + +#define IWscProduct_get_SignatureStatus(This,pVal) \ + ( (This)->lpVtbl -> get_SignatureStatus(This,pVal) ) + +#define IWscProduct_get_RemediationPath(This,pVal) \ + ( (This)->lpVtbl -> get_RemediationPath(This,pVal) ) + +#define IWscProduct_get_ProductStateTimestamp(This,pVal) \ + ( (This)->lpVtbl -> get_ProductStateTimestamp(This,pVal) ) + +#define IWscProduct_get_ProductGuid(This,pVal) \ + ( (This)->lpVtbl -> get_ProductGuid(This,pVal) ) + +#define IWscProduct_get_ProductIsDefault(This,pVal) \ + ( (This)->lpVtbl -> get_ProductIsDefault(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWscProduct_INTERFACE_DEFINED__ */ + + +#ifndef __IWscProduct2_INTERFACE_DEFINED__ +#define __IWscProduct2_INTERFACE_DEFINED__ + +/* interface IWscProduct2 */ +/* [unique][dual][uuid][object] */ + + +EXTERN_C const IID IID_IWscProduct2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F896CA54-FE09-4403-86D4-23CB488D81D8") + IWscProduct2 : public IWscProduct + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AntivirusScanSubstatus( + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AntivirusSettingsSubstatus( + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AntivirusProtectionUpdateSubstatus( + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FirewallDomainProfileSubstatus( + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FirewallPrivateProfileSubstatus( + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_FirewallPublicProfileSubstatus( + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWscProduct2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWscProduct2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWscProduct2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWscProduct2 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWscProduct2 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWscProduct2 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWscProduct2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWscProduct2 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductName )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductState) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductState )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_STATE *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_SignatureStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureStatus )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_SIGNATURE_STATUS *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_RemediationPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemediationPath )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductStateTimestamp) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductStateTimestamp )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductGuid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductGuid )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductIsDefault) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductIsDefault )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IWscProduct2, get_AntivirusScanSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AntivirusScanSubstatus )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct2, get_AntivirusSettingsSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AntivirusSettingsSubstatus )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct2, get_AntivirusProtectionUpdateSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AntivirusProtectionUpdateSubstatus )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct2, get_FirewallDomainProfileSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirewallDomainProfileSubstatus )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct2, get_FirewallPrivateProfileSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirewallPrivateProfileSubstatus )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct2, get_FirewallPublicProfileSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirewallPublicProfileSubstatus )( + __RPC__in IWscProduct2 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + END_INTERFACE + } IWscProduct2Vtbl; + + interface IWscProduct2 + { + CONST_VTBL struct IWscProduct2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWscProduct2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWscProduct2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWscProduct2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWscProduct2_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWscProduct2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWscProduct2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWscProduct2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWscProduct2_get_ProductName(This,pVal) \ + ( (This)->lpVtbl -> get_ProductName(This,pVal) ) + +#define IWscProduct2_get_ProductState(This,pVal) \ + ( (This)->lpVtbl -> get_ProductState(This,pVal) ) + +#define IWscProduct2_get_SignatureStatus(This,pVal) \ + ( (This)->lpVtbl -> get_SignatureStatus(This,pVal) ) + +#define IWscProduct2_get_RemediationPath(This,pVal) \ + ( (This)->lpVtbl -> get_RemediationPath(This,pVal) ) + +#define IWscProduct2_get_ProductStateTimestamp(This,pVal) \ + ( (This)->lpVtbl -> get_ProductStateTimestamp(This,pVal) ) + +#define IWscProduct2_get_ProductGuid(This,pVal) \ + ( (This)->lpVtbl -> get_ProductGuid(This,pVal) ) + +#define IWscProduct2_get_ProductIsDefault(This,pVal) \ + ( (This)->lpVtbl -> get_ProductIsDefault(This,pVal) ) + + +#define IWscProduct2_get_AntivirusScanSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_AntivirusScanSubstatus(This,peStatus) ) + +#define IWscProduct2_get_AntivirusSettingsSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_AntivirusSettingsSubstatus(This,peStatus) ) + +#define IWscProduct2_get_AntivirusProtectionUpdateSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_AntivirusProtectionUpdateSubstatus(This,peStatus) ) + +#define IWscProduct2_get_FirewallDomainProfileSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_FirewallDomainProfileSubstatus(This,peStatus) ) + +#define IWscProduct2_get_FirewallPrivateProfileSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_FirewallPrivateProfileSubstatus(This,peStatus) ) + +#define IWscProduct2_get_FirewallPublicProfileSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_FirewallPublicProfileSubstatus(This,peStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWscProduct2_INTERFACE_DEFINED__ */ + + +#ifndef __IWscProduct3_INTERFACE_DEFINED__ +#define __IWscProduct3_INTERFACE_DEFINED__ + +/* interface IWscProduct3 */ +/* [unique][dual][uuid][object] */ + + +EXTERN_C const IID IID_IWscProduct3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("55536524-D1D1-4726-8C7C-04996A1904E7") + IWscProduct3 : public IWscProduct2 + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AntivirusDaysUntilExpired( + /* [retval][out] */ __RPC__out DWORD *pdwDays) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWscProduct3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWscProduct3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWscProduct3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWscProduct3 * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWscProduct3 * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWscProduct3 * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWscProduct3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWscProduct3 * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductName) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductName )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductState) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductState )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_STATE *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_SignatureStatus) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SignatureStatus )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_SIGNATURE_STATUS *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_RemediationPath) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_RemediationPath )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductStateTimestamp) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductStateTimestamp )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductGuid) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductGuid )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pVal); + + DECLSPEC_XFGVIRT(IWscProduct, get_ProductIsDefault) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProductIsDefault )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__out BOOL *pVal); + + DECLSPEC_XFGVIRT(IWscProduct2, get_AntivirusScanSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AntivirusScanSubstatus )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct2, get_AntivirusSettingsSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AntivirusSettingsSubstatus )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct2, get_AntivirusProtectionUpdateSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AntivirusProtectionUpdateSubstatus )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct2, get_FirewallDomainProfileSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirewallDomainProfileSubstatus )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct2, get_FirewallPrivateProfileSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirewallPrivateProfileSubstatus )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct2, get_FirewallPublicProfileSubstatus) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FirewallPublicProfileSubstatus )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__out WSC_SECURITY_PRODUCT_SUBSTATUS *peStatus); + + DECLSPEC_XFGVIRT(IWscProduct3, get_AntivirusDaysUntilExpired) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AntivirusDaysUntilExpired )( + __RPC__in IWscProduct3 * This, + /* [retval][out] */ __RPC__out DWORD *pdwDays); + + END_INTERFACE + } IWscProduct3Vtbl; + + interface IWscProduct3 + { + CONST_VTBL struct IWscProduct3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWscProduct3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWscProduct3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWscProduct3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWscProduct3_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWscProduct3_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWscProduct3_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWscProduct3_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWscProduct3_get_ProductName(This,pVal) \ + ( (This)->lpVtbl -> get_ProductName(This,pVal) ) + +#define IWscProduct3_get_ProductState(This,pVal) \ + ( (This)->lpVtbl -> get_ProductState(This,pVal) ) + +#define IWscProduct3_get_SignatureStatus(This,pVal) \ + ( (This)->lpVtbl -> get_SignatureStatus(This,pVal) ) + +#define IWscProduct3_get_RemediationPath(This,pVal) \ + ( (This)->lpVtbl -> get_RemediationPath(This,pVal) ) + +#define IWscProduct3_get_ProductStateTimestamp(This,pVal) \ + ( (This)->lpVtbl -> get_ProductStateTimestamp(This,pVal) ) + +#define IWscProduct3_get_ProductGuid(This,pVal) \ + ( (This)->lpVtbl -> get_ProductGuid(This,pVal) ) + +#define IWscProduct3_get_ProductIsDefault(This,pVal) \ + ( (This)->lpVtbl -> get_ProductIsDefault(This,pVal) ) + + +#define IWscProduct3_get_AntivirusScanSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_AntivirusScanSubstatus(This,peStatus) ) + +#define IWscProduct3_get_AntivirusSettingsSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_AntivirusSettingsSubstatus(This,peStatus) ) + +#define IWscProduct3_get_AntivirusProtectionUpdateSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_AntivirusProtectionUpdateSubstatus(This,peStatus) ) + +#define IWscProduct3_get_FirewallDomainProfileSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_FirewallDomainProfileSubstatus(This,peStatus) ) + +#define IWscProduct3_get_FirewallPrivateProfileSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_FirewallPrivateProfileSubstatus(This,peStatus) ) + +#define IWscProduct3_get_FirewallPublicProfileSubstatus(This,peStatus) \ + ( (This)->lpVtbl -> get_FirewallPublicProfileSubstatus(This,peStatus) ) + + +#define IWscProduct3_get_AntivirusDaysUntilExpired(This,pdwDays) \ + ( (This)->lpVtbl -> get_AntivirusDaysUntilExpired(This,pdwDays) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWscProduct3_INTERFACE_DEFINED__ */ + + +#ifndef __IWSCProductList_INTERFACE_DEFINED__ +#define __IWSCProductList_INTERFACE_DEFINED__ + +/* interface IWSCProductList */ +/* [unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IWSCProductList; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("722A338C-6E8E-4E72-AC27-1417FB0C81C2") + IWSCProductList : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ULONG provider) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count( + /* [retval][out] */ __RPC__out LONG *pVal) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Item( + /* [in] */ ULONG index, + /* [retval][out] */ __RPC__deref_out_opt IWscProduct **pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWSCProductListVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWSCProductList * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWSCProductList * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWSCProductList * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWSCProductList * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWSCProductList * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWSCProductList * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWSCProductList * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWSCProductList, Initialize) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + __RPC__in IWSCProductList * This, + /* [in] */ ULONG provider); + + DECLSPEC_XFGVIRT(IWSCProductList, get_Count) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Count )( + __RPC__in IWSCProductList * This, + /* [retval][out] */ __RPC__out LONG *pVal); + + DECLSPEC_XFGVIRT(IWSCProductList, get_Item) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Item )( + __RPC__in IWSCProductList * This, + /* [in] */ ULONG index, + /* [retval][out] */ __RPC__deref_out_opt IWscProduct **pVal); + + END_INTERFACE + } IWSCProductListVtbl; + + interface IWSCProductList + { + CONST_VTBL struct IWSCProductListVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWSCProductList_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWSCProductList_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWSCProductList_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWSCProductList_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWSCProductList_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWSCProductList_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWSCProductList_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWSCProductList_Initialize(This,provider) \ + ( (This)->lpVtbl -> Initialize(This,provider) ) + +#define IWSCProductList_get_Count(This,pVal) \ + ( (This)->lpVtbl -> get_Count(This,pVal) ) + +#define IWSCProductList_get_Item(This,index,pVal) \ + ( (This)->lpVtbl -> get_Item(This,index,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWSCProductList_INTERFACE_DEFINED__ */ + + +#ifndef __IWSCDefaultProduct_INTERFACE_DEFINED__ +#define __IWSCDefaultProduct_INTERFACE_DEFINED__ + +/* interface IWSCDefaultProduct */ +/* [unique][helpstring][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IWSCDefaultProduct; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0476d69c-f21a-11e5-9ce9-5e5517507c66") + IWSCDefaultProduct : public IDispatch + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetDefaultProduct( + /* [in] */ SECURITY_PRODUCT_TYPE eType, + /* [in] */ __RPC__in BSTR pGuid) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWSCDefaultProductVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWSCDefaultProduct * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWSCDefaultProduct * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWSCDefaultProduct * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IWSCDefaultProduct * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IWSCDefaultProduct * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IWSCDefaultProduct * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IWSCDefaultProduct * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IWSCDefaultProduct, SetDefaultProduct) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetDefaultProduct )( + __RPC__in IWSCDefaultProduct * This, + /* [in] */ SECURITY_PRODUCT_TYPE eType, + /* [in] */ __RPC__in BSTR pGuid); + + END_INTERFACE + } IWSCDefaultProductVtbl; + + interface IWSCDefaultProduct + { + CONST_VTBL struct IWSCDefaultProductVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWSCDefaultProduct_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWSCDefaultProduct_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWSCDefaultProduct_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWSCDefaultProduct_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IWSCDefaultProduct_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IWSCDefaultProduct_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IWSCDefaultProduct_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IWSCDefaultProduct_SetDefaultProduct(This,eType,pGuid) \ + ( (This)->lpVtbl -> SetDefaultProduct(This,eType,pGuid) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWSCDefaultProduct_INTERFACE_DEFINED__ */ + + + +#ifndef __wscAPILib_LIBRARY_DEFINED__ +#define __wscAPILib_LIBRARY_DEFINED__ + +/* library wscAPILib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_wscAPILib; + +EXTERN_C const CLSID CLSID_WSCProductList; + +#ifdef __cplusplus + +class DECLSPEC_UUID("17072F7B-9ABE-4A74-A261-1EB76B55107A") +WSCProductList; +#endif + +EXTERN_C const CLSID CLSID_WSCDefaultProduct; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2981a36e-f22d-11e5-9ce9-5e5517507c66") +WSCDefaultProduct; +#endif +#endif /* __wscAPILib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_iwscapi_0000_0006 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_iwscapi_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_iwscapi_0000_0006_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/iwstdec.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iwstdec.h new file mode 100644 index 0000000000000000000000000000000000000000..4ad8c107d35a346c5e9e8c07588b50ad66435b5b --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/iwstdec.h @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// File: iwstdec.h +// +// Desc: WST Decoder related definitions and interfaces for ActiveMovie +// +// Copyright (c) 1999 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ +// + +#ifndef __IWSTDEC__ +#define __IWSTDEC__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// +// Some data types used as WST decoder parameters by the interface +// +typedef struct _AM_WST_PAGE { + DWORD dwPageNr ; + DWORD dwSubPageNr ; + BYTE *pucPageData; +} AM_WST_PAGE, *PAM_WST_PAGE ; + +typedef enum _AM_WST_LEVEL { + AM_WST_LEVEL_1_5 = 0 +} AM_WST_LEVEL, *PAM_WST_LEVEL ; + +typedef enum _AM_WST_SERVICE { + AM_WST_SERVICE_None = 0, + AM_WST_SERVICE_Text, + AM_WST_SERVICE_IDS, + AM_WST_SERVICE_Invalid +} AM_WST_SERVICE, *PAM_WST_SERVICE ; + +typedef enum _AM_WST_STATE { + AM_WST_STATE_Off = 0, + AM_WST_STATE_On +} AM_WST_STATE, *PAM_WST_STATE ; + +typedef enum _AM_WST_STYLE { + AM_WST_STYLE_None = 0, + AM_WST_STYLE_Invers +} AM_WST_STYLE, *PAM_WST_STYLE ; + +typedef enum _AM_WST_DRAWBGMODE { + AM_WST_DRAWBGMODE_Opaque, + AM_WST_DRAWBGMODE_Transparent +} AM_WST_DRAWBGMODE, *PAM_WST_DRAWBGMODE ; + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// +// WST Decoder standard COM interface +// +DECLARE_INTERFACE_(IAMWstDecoder, IUnknown) +{ + // + // Decoder options to be used by apps + // + + // What is the decoder's level + STDMETHOD(GetDecoderLevel)(THIS_ AM_WST_LEVEL *lpLevel) PURE ; + +// STDMETHOD(SetDecoderLevel)(THIS_ AM_WST_LEVEL Level) PURE ; + + // Which of the services is being currently used + STDMETHOD(GetCurrentService)(THIS_ AM_WST_SERVICE *lpService) PURE ; +// STDMETHOD(SetCurrentService)(THIS_ AM_WST_SERVICE Service) PURE ; + + // Query/Set the service state (On/Off) + // supported state values are AM_WSTState_On and AM_WSTState_Off + STDMETHOD(GetServiceState)(THIS_ AM_WST_STATE *lpState) PURE ; + STDMETHOD(SetServiceState)(THIS_ AM_WST_STATE State) PURE ; + + // + // Output options to be used by downstream filters + // + + // What size, bitdepth etc should the output video be + STDMETHOD(GetOutputFormat)(THIS_ LPBITMAPINFOHEADER lpbmih) PURE ; + // GetOutputFormat() method, if successful, returns + // 1. S_FALSE if no output format has so far been defined by downstream filters + // 2. S_OK if an output format has already been defined by downstream filters + STDMETHOD(SetOutputFormat)(THIS_ LPBITMAPINFO lpbmi) PURE ; + + // Specify physical color to be used in colorkeying the background + // for overlay mixing + STDMETHOD(GetBackgroundColor)(THIS_ DWORD *pdwPhysColor) PURE ; + STDMETHOD(SetBackgroundColor)(THIS_ DWORD dwPhysColor) PURE ; + + // Specify if whole output bitmap should be redrawn for each sample + STDMETHOD(GetRedrawAlways)(THIS_ LPBOOL lpbOption) PURE ; + STDMETHOD(SetRedrawAlways)(THIS_ BOOL bOption) PURE ; + + // Specify if the caption text background should be opaque/transparent + STDMETHOD(GetDrawBackgroundMode)(THIS_ AM_WST_DRAWBGMODE *lpMode) PURE ; + STDMETHOD(SetDrawBackgroundMode)(THIS_ AM_WST_DRAWBGMODE Mode) PURE ; + // supported mode values are AM_WST_DrawBGMode_Opaque and + // AM_WST_DrawBGMode_Transparent + + STDMETHOD(SetAnswerMode)(THIS_ BOOL bAnswer) PURE ; + STDMETHOD(GetAnswerMode)(THIS_ BOOL* pbAnswer) PURE ; + + STDMETHOD(SetHoldPage)(THIS_ BOOL bHoldPage) PURE ; + STDMETHOD(GetHoldPage)(THIS_ BOOL* pbHoldPage) PURE ; + + STDMETHOD(GetCurrentPage)(THIS_ PAM_WST_PAGE pWstPage) PURE; + STDMETHOD(SetCurrentPage)(THIS_ AM_WST_PAGE WstPage) PURE; + +} ; + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __IWSTDEC__ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/jobapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jobapi.h new file mode 100644 index 0000000000000000000000000000000000000000..611069d3b2998dc6437ee06a284d08eb46f911ad --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jobapi.h @@ -0,0 +1,48 @@ +/******************************************************************************** +* * +* jobapiset.h -- ApiSet Contract for api-ms-win-core-job-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _JOBAPISET_H_ +#define _JOBAPISET_H_ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#if (_WIN32_WINNT >= 0x0501) + +WINBASEAPI +BOOL +WINAPI +IsProcessInJob( + _In_ HANDLE ProcessHandle, + _In_opt_ HANDLE JobHandle, + _Out_ PBOOL Result + ); + +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _JOBAPISET_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/jobapi2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jobapi2.h new file mode 100644 index 0000000000000000000000000000000000000000..636d693b5973b99af442a377f1512b767e47c0ea --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jobapi2.h @@ -0,0 +1,122 @@ +/******************************************************************************** +* * +* jobapiset2.h -- ApiSet Contract for api-ms-win-core-job-l2 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#pragma once +#ifndef _JOBAPISET2_H_ +#define _JOBAPISET2_H_ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or OneCore Family + +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +typedef struct JOBOBJECT_IO_RATE_CONTROL_INFORMATION { + LONG64 MaxIops; + LONG64 MaxBandwidth; + LONG64 ReservationIops; + PCWSTR VolumeName; + ULONG BaseIoSize; + ULONG ControlFlags; +} JOBOBJECT_IO_RATE_CONTROL_INFORMATION; + +WINBASEAPI +HANDLE +WINAPI +CreateJobObjectW( + _In_opt_ LPSECURITY_ATTRIBUTES lpJobAttributes, + _In_opt_ LPCWSTR lpName + ); + +WINBASEAPI +VOID +WINAPI +FreeMemoryJobObject( + _In_ _Frees_ptr_ VOID* Buffer + ); + +WINBASEAPI +HANDLE +WINAPI +OpenJobObjectW( + _In_ DWORD dwDesiredAccess, + _In_ BOOL bInheritHandle, + _In_ LPCWSTR lpName + ); + +WINBASEAPI +BOOL +WINAPI +AssignProcessToJobObject( + _In_ HANDLE hJob, + _In_ HANDLE hProcess + ); + +WINBASEAPI +BOOL +WINAPI +TerminateJobObject( + _In_ HANDLE hJob, + _In_ UINT uExitCode + ); + +WINBASEAPI +BOOL +WINAPI +SetInformationJobObject( + _In_ HANDLE hJob, + _In_ JOBOBJECTINFOCLASS JobObjectInformationClass, + _In_reads_bytes_(cbJobObjectInformationLength) LPVOID lpJobObjectInformation, + _In_ DWORD cbJobObjectInformationLength + ); + +WINBASEAPI +DWORD +WINAPI +SetIoRateControlInformationJobObject( + _In_ HANDLE hJob, + _In_ JOBOBJECT_IO_RATE_CONTROL_INFORMATION* IoRateControlInfo + ); + +WINBASEAPI +BOOL +WINAPI +QueryInformationJobObject( + _In_opt_ HANDLE hJob, + _In_ JOBOBJECTINFOCLASS JobObjectInformationClass, + _Out_writes_bytes_to_(cbJobObjectInformationLength, *lpReturnLength) LPVOID lpJobObjectInformation, + _In_ DWORD cbJobObjectInformationLength, + _Out_opt_ LPDWORD lpReturnLength + ); + +WINBASEAPI +DWORD +WINAPI +QueryIoRateControlInformationJobObject( + _In_opt_ HANDLE hJob, + _In_opt_ PCWSTR VolumeName, + _Outptr_result_buffer_(*InfoBlockCount) JOBOBJECT_IO_RATE_CONTROL_INFORMATION** InfoBlocks, + _Out_ ULONG* InfoBlockCount + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ + +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _JOBAPISET2_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/joystickapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/joystickapi.h new file mode 100644 index 0000000000000000000000000000000000000000..57d6e6d0f632bacc40404c67b90618b94335b885 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/joystickapi.h @@ -0,0 +1,437 @@ +/******************************************************************************** +* * +* joystickapi.h -- ApiSet Contract for api-ms-win-mm-joystick-l1-1-0 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _JOYSTICKAPI_H_ +#define _JOYSTICKAPI_H_ + +#include +#include + +#include // mm common definitions + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef MMNOJOY +/**************************************************************************** + + Joystick support + +****************************************************************************/ + +/* joystick error return values */ +#define JOYERR_NOERROR (0) /* no error */ +#define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */ +#define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */ +#define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */ + +/* constants used with JOYINFO and JOYINFOEX structures and MM_JOY* messages */ +#define JOY_BUTTON1 0x0001 +#define JOY_BUTTON2 0x0002 +#define JOY_BUTTON3 0x0004 +#define JOY_BUTTON4 0x0008 +#define JOY_BUTTON1CHG 0x0100 +#define JOY_BUTTON2CHG 0x0200 +#define JOY_BUTTON3CHG 0x0400 +#define JOY_BUTTON4CHG 0x0800 + +/* constants used with JOYINFOEX */ +#define JOY_BUTTON5 0x00000010l +#define JOY_BUTTON6 0x00000020l +#define JOY_BUTTON7 0x00000040l +#define JOY_BUTTON8 0x00000080l +#define JOY_BUTTON9 0x00000100l +#define JOY_BUTTON10 0x00000200l +#define JOY_BUTTON11 0x00000400l +#define JOY_BUTTON12 0x00000800l +#define JOY_BUTTON13 0x00001000l +#define JOY_BUTTON14 0x00002000l +#define JOY_BUTTON15 0x00004000l +#define JOY_BUTTON16 0x00008000l +#define JOY_BUTTON17 0x00010000l +#define JOY_BUTTON18 0x00020000l +#define JOY_BUTTON19 0x00040000l +#define JOY_BUTTON20 0x00080000l +#define JOY_BUTTON21 0x00100000l +#define JOY_BUTTON22 0x00200000l +#define JOY_BUTTON23 0x00400000l +#define JOY_BUTTON24 0x00800000l +#define JOY_BUTTON25 0x01000000l +#define JOY_BUTTON26 0x02000000l +#define JOY_BUTTON27 0x04000000l +#define JOY_BUTTON28 0x08000000l +#define JOY_BUTTON29 0x10000000l +#define JOY_BUTTON30 0x20000000l +#define JOY_BUTTON31 0x40000000l +#define JOY_BUTTON32 0x80000000l + +/* constants used with JOYINFOEX structure */ +#define JOY_POVCENTERED (WORD) -1 +#define JOY_POVFORWARD 0 +#define JOY_POVRIGHT 9000 +#define JOY_POVBACKWARD 18000 +#define JOY_POVLEFT 27000 + +#define JOY_RETURNX 0x00000001l +#define JOY_RETURNY 0x00000002l +#define JOY_RETURNZ 0x00000004l +#define JOY_RETURNR 0x00000008l +#define JOY_RETURNU 0x00000010l /* axis 5 */ +#define JOY_RETURNV 0x00000020l /* axis 6 */ +#define JOY_RETURNPOV 0x00000040l +#define JOY_RETURNBUTTONS 0x00000080l +#define JOY_RETURNRAWDATA 0x00000100l +#define JOY_RETURNPOVCTS 0x00000200l +#define JOY_RETURNCENTERED 0x00000400l +#define JOY_USEDEADZONE 0x00000800l +#define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \ + JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \ + JOY_RETURNPOV | JOY_RETURNBUTTONS) +#define JOY_CAL_READALWAYS 0x00010000l +#define JOY_CAL_READXYONLY 0x00020000l +#define JOY_CAL_READ3 0x00040000l +#define JOY_CAL_READ4 0x00080000l +#define JOY_CAL_READXONLY 0x00100000l +#define JOY_CAL_READYONLY 0x00200000l +#define JOY_CAL_READ5 0x00400000l +#define JOY_CAL_READ6 0x00800000l +#define JOY_CAL_READZONLY 0x01000000l +#define JOY_CAL_READRONLY 0x02000000l +#define JOY_CAL_READUONLY 0x04000000l +#define JOY_CAL_READVONLY 0x08000000l + +/* joystick ID constants */ +#define JOYSTICKID1 0 +#define JOYSTICKID2 1 + +/* joystick driver capabilites */ +#define JOYCAPS_HASZ 0x0001 +#define JOYCAPS_HASR 0x0002 +#define JOYCAPS_HASU 0x0004 +#define JOYCAPS_HASV 0x0008 +#define JOYCAPS_HASPOV 0x0010 +#define JOYCAPS_POV4DIR 0x0020 +#define JOYCAPS_POVCTS 0x0040 + +/* joystick device capabilities data structure */ +#ifdef _WIN32 + +typedef struct tagJOYCAPSA { + WORD wMid; /* manufacturer ID */ + WORD wPid; /* product ID */ + CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */ + UINT wXmin; /* minimum x position value */ + UINT wXmax; /* maximum x position value */ + UINT wYmin; /* minimum y position value */ + UINT wYmax; /* maximum y position value */ + UINT wZmin; /* minimum z position value */ + UINT wZmax; /* maximum z position value */ + UINT wNumButtons; /* number of buttons */ + UINT wPeriodMin; /* minimum message period when captured */ + UINT wPeriodMax; /* maximum message period when captured */ +#if (WINVER >= 0x0400) + UINT wRmin; /* minimum r position value */ + UINT wRmax; /* maximum r position value */ + UINT wUmin; /* minimum u (5th axis) position value */ + UINT wUmax; /* maximum u (5th axis) position value */ + UINT wVmin; /* minimum v (6th axis) position value */ + UINT wVmax; /* maximum v (6th axis) position value */ + UINT wCaps; /* joystick capabilites */ + UINT wMaxAxes; /* maximum number of axes supported */ + UINT wNumAxes; /* number of axes in use */ + UINT wMaxButtons; /* maximum number of buttons supported */ + CHAR szRegKey[MAXPNAMELEN];/* registry key */ + CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME]; /* OEM VxD in use */ +#endif +} JOYCAPSA, *PJOYCAPSA, *NPJOYCAPSA, *LPJOYCAPSA; +typedef struct tagJOYCAPSW { + WORD wMid; /* manufacturer ID */ + WORD wPid; /* product ID */ + WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */ + UINT wXmin; /* minimum x position value */ + UINT wXmax; /* maximum x position value */ + UINT wYmin; /* minimum y position value */ + UINT wYmax; /* maximum y position value */ + UINT wZmin; /* minimum z position value */ + UINT wZmax; /* maximum z position value */ + UINT wNumButtons; /* number of buttons */ + UINT wPeriodMin; /* minimum message period when captured */ + UINT wPeriodMax; /* maximum message period when captured */ +#if (WINVER >= 0x0400) + UINT wRmin; /* minimum r position value */ + UINT wRmax; /* maximum r position value */ + UINT wUmin; /* minimum u (5th axis) position value */ + UINT wUmax; /* maximum u (5th axis) position value */ + UINT wVmin; /* minimum v (6th axis) position value */ + UINT wVmax; /* maximum v (6th axis) position value */ + UINT wCaps; /* joystick capabilites */ + UINT wMaxAxes; /* maximum number of axes supported */ + UINT wNumAxes; /* number of axes in use */ + UINT wMaxButtons; /* maximum number of buttons supported */ + WCHAR szRegKey[MAXPNAMELEN];/* registry key */ + WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME]; /* OEM VxD in use */ +#endif +} JOYCAPSW, *PJOYCAPSW, *NPJOYCAPSW, *LPJOYCAPSW; +#ifdef UNICODE +typedef JOYCAPSW JOYCAPS; +typedef PJOYCAPSW PJOYCAPS; +typedef NPJOYCAPSW NPJOYCAPS; +typedef LPJOYCAPSW LPJOYCAPS; +#else +typedef JOYCAPSA JOYCAPS; +typedef PJOYCAPSA PJOYCAPS; +typedef NPJOYCAPSA NPJOYCAPS; +typedef LPJOYCAPSA LPJOYCAPS; +#endif // UNICODE +typedef struct tagJOYCAPS2A { + WORD wMid; /* manufacturer ID */ + WORD wPid; /* product ID */ + CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */ + UINT wXmin; /* minimum x position value */ + UINT wXmax; /* maximum x position value */ + UINT wYmin; /* minimum y position value */ + UINT wYmax; /* maximum y position value */ + UINT wZmin; /* minimum z position value */ + UINT wZmax; /* maximum z position value */ + UINT wNumButtons; /* number of buttons */ + UINT wPeriodMin; /* minimum message period when captured */ + UINT wPeriodMax; /* maximum message period when captured */ + UINT wRmin; /* minimum r position value */ + UINT wRmax; /* maximum r position value */ + UINT wUmin; /* minimum u (5th axis) position value */ + UINT wUmax; /* maximum u (5th axis) position value */ + UINT wVmin; /* minimum v (6th axis) position value */ + UINT wVmax; /* maximum v (6th axis) position value */ + UINT wCaps; /* joystick capabilites */ + UINT wMaxAxes; /* maximum number of axes supported */ + UINT wNumAxes; /* number of axes in use */ + UINT wMaxButtons; /* maximum number of buttons supported */ + CHAR szRegKey[MAXPNAMELEN];/* registry key */ + CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME]; /* OEM VxD in use */ + GUID ManufacturerGuid; /* for extensible MID mapping */ + GUID ProductGuid; /* for extensible PID mapping */ + GUID NameGuid; /* for name lookup in registry */ +} JOYCAPS2A, *PJOYCAPS2A, *NPJOYCAPS2A, *LPJOYCAPS2A; +typedef struct tagJOYCAPS2W { + WORD wMid; /* manufacturer ID */ + WORD wPid; /* product ID */ + WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */ + UINT wXmin; /* minimum x position value */ + UINT wXmax; /* maximum x position value */ + UINT wYmin; /* minimum y position value */ + UINT wYmax; /* maximum y position value */ + UINT wZmin; /* minimum z position value */ + UINT wZmax; /* maximum z position value */ + UINT wNumButtons; /* number of buttons */ + UINT wPeriodMin; /* minimum message period when captured */ + UINT wPeriodMax; /* maximum message period when captured */ + UINT wRmin; /* minimum r position value */ + UINT wRmax; /* maximum r position value */ + UINT wUmin; /* minimum u (5th axis) position value */ + UINT wUmax; /* maximum u (5th axis) position value */ + UINT wVmin; /* minimum v (6th axis) position value */ + UINT wVmax; /* maximum v (6th axis) position value */ + UINT wCaps; /* joystick capabilites */ + UINT wMaxAxes; /* maximum number of axes supported */ + UINT wNumAxes; /* number of axes in use */ + UINT wMaxButtons; /* maximum number of buttons supported */ + WCHAR szRegKey[MAXPNAMELEN];/* registry key */ + WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME]; /* OEM VxD in use */ + GUID ManufacturerGuid; /* for extensible MID mapping */ + GUID ProductGuid; /* for extensible PID mapping */ + GUID NameGuid; /* for name lookup in registry */ +} JOYCAPS2W, *PJOYCAPS2W, *NPJOYCAPS2W, *LPJOYCAPS2W; +#ifdef UNICODE +typedef JOYCAPS2W JOYCAPS2; +typedef PJOYCAPS2W PJOYCAPS2; +typedef NPJOYCAPS2W NPJOYCAPS2; +typedef LPJOYCAPS2W LPJOYCAPS2; +#else +typedef JOYCAPS2A JOYCAPS2; +typedef PJOYCAPS2A PJOYCAPS2; +typedef NPJOYCAPS2A NPJOYCAPS2; +typedef LPJOYCAPS2A LPJOYCAPS2; +#endif // UNICODE + +#else +typedef struct joycaps_tag { + WORD wMid; /* manufacturer ID */ + WORD wPid; /* product ID */ + char szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */ + UINT wXmin; /* minimum x position value */ + UINT wXmax; /* maximum x position value */ + UINT wYmin; /* minimum y position value */ + UINT wYmax; /* maximum y position value */ + UINT wZmin; /* minimum z position value */ + UINT wZmax; /* maximum z position value */ + UINT wNumButtons; /* number of buttons */ + UINT wPeriodMin; /* minimum message period when captured */ + UINT wPeriodMax; /* maximum message period when captured */ +#if (WINVER >= 0x0400) + UINT wRmin; /* minimum r position value */ + UINT wRmax; /* maximum r position value */ + UINT wUmin; /* minimum u (5th axis) position value */ + UINT wUmax; /* maximum u (5th axis) position value */ + UINT wVmin; /* minimum v (6th axis) position value */ + UINT wVmax; /* maximum v (6th axis) position value */ + UINT wCaps; /* joystick capabilites */ + UINT wMaxAxes; /* maximum number of axes supported */ + UINT wNumAxes; /* number of axes in use */ + UINT wMaxButtons; /* maximum number of buttons supported */ + char szRegKey[MAXPNAMELEN]; /* registry key */ + char szOEMVxD[MAX_JOYSTICKOEMVXDNAME]; /* OEM VxD in use */ +#endif +} JOYCAPS, *PJOYCAPS, NEAR *NPJOYCAPS, FAR *LPJOYCAPS; +#endif + +/* joystick information data structure */ +typedef struct joyinfo_tag { + UINT wXpos; /* x position */ + UINT wYpos; /* y position */ + UINT wZpos; /* z position */ + UINT wButtons; /* button states */ +} JOYINFO, *PJOYINFO, NEAR *NPJOYINFO, FAR *LPJOYINFO; + +#if (WINVER >= 0x0400) +typedef struct joyinfoex_tag { + DWORD dwSize; /* size of structure */ + DWORD dwFlags; /* flags to indicate what to return */ + DWORD dwXpos; /* x position */ + DWORD dwYpos; /* y position */ + DWORD dwZpos; /* z position */ + DWORD dwRpos; /* rudder/4th axis position */ + DWORD dwUpos; /* 5th axis position */ + DWORD dwVpos; /* 6th axis position */ + DWORD dwButtons; /* button states */ + DWORD dwButtonNumber; /* current button number pressed */ + DWORD dwPOV; /* point of view state */ + DWORD dwReserved1; /* reserved for communication between winmm & driver */ + DWORD dwReserved2; /* reserved for future expansion */ +} JOYINFOEX, *PJOYINFOEX, NEAR *NPJOYINFOEX, FAR *LPJOYINFOEX; +#endif + +/* joystick function prototypes */ + +#if (WINVER >= 0x0400) +WINMMAPI +MMRESULT +WINAPI +joyGetPosEx( + _In_ UINT uJoyID, + _Out_ LPJOYINFOEX pji + ); + +#endif /* WINVER >= 0x0400 */ + +WINMMAPI +UINT +WINAPI +joyGetNumDevs( + void + ); + +#ifdef _WIN32 + +WINMMAPI +MMRESULT +WINAPI +joyGetDevCapsA( + _In_ UINT_PTR uJoyID, + _Out_writes_bytes_(cbjc) LPJOYCAPSA pjc, + _In_ UINT cbjc + ); + +WINMMAPI +MMRESULT +WINAPI +joyGetDevCapsW( + _In_ UINT_PTR uJoyID, + _Out_writes_bytes_(cbjc) LPJOYCAPSW pjc, + _In_ UINT cbjc + ); + +#ifdef UNICODE +#define joyGetDevCaps joyGetDevCapsW +#else +#define joyGetDevCaps joyGetDevCapsA +#endif // !UNICODE + +#else +MMRESULT WINAPI joyGetDevCaps(UINT uJoyID, LPJOYCAPS pjc, UINT cbjc); +#endif + +WINMMAPI +MMRESULT +WINAPI +joyGetPos( + _In_ UINT uJoyID, + _Out_ LPJOYINFO pji + ); + +WINMMAPI +MMRESULT +WINAPI +joyGetThreshold( + _In_ UINT uJoyID, + _Out_ LPUINT puThreshold + ); + +WINMMAPI +MMRESULT +WINAPI +joyReleaseCapture( + _In_ UINT uJoyID + ); + +WINMMAPI +MMRESULT +WINAPI +joySetCapture( + _In_ HWND hwnd, + _In_ UINT uJoyID, + _In_ UINT uPeriod, + _In_ BOOL fChanged + ); + +WINMMAPI +MMRESULT +WINAPI +joySetThreshold( + _In_ UINT uJoyID, + _In_ UINT uThreshold + ); + +#if (WINVER >= 0x0400) +WINMMAPI +MMRESULT +WINAPI +joyConfigChanged( + _In_ DWORD dwFlags + ); + +#endif + +#endif /* ifndef MMNOJOY */ + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _JOYSTICKAPI_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/jscript9diag.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jscript9diag.h new file mode 100644 index 0000000000000000000000000000000000000000..b9ff70207f0a8367a2132548435778c21b0360ac --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jscript9diag.h @@ -0,0 +1,1347 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 500 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __jscript9diag_h__ +#define __jscript9diag_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IJsDebug_FWD_DEFINED__ +#define __IJsDebug_FWD_DEFINED__ +typedef interface IJsDebug IJsDebug; + +#endif /* __IJsDebug_FWD_DEFINED__ */ + + +#ifndef __IJsDebugProcess_FWD_DEFINED__ +#define __IJsDebugProcess_FWD_DEFINED__ +typedef interface IJsDebugProcess IJsDebugProcess; + +#endif /* __IJsDebugProcess_FWD_DEFINED__ */ + + +#ifndef __IJsDebugStackWalker_FWD_DEFINED__ +#define __IJsDebugStackWalker_FWD_DEFINED__ +typedef interface IJsDebugStackWalker IJsDebugStackWalker; + +#endif /* __IJsDebugStackWalker_FWD_DEFINED__ */ + + +#ifndef __IJsDebugFrame_FWD_DEFINED__ +#define __IJsDebugFrame_FWD_DEFINED__ +typedef interface IJsDebugFrame IJsDebugFrame; + +#endif /* __IJsDebugFrame_FWD_DEFINED__ */ + + +#ifndef __IJsDebugProperty_FWD_DEFINED__ +#define __IJsDebugProperty_FWD_DEFINED__ +typedef interface IJsDebugProperty IJsDebugProperty; + +#endif /* __IJsDebugProperty_FWD_DEFINED__ */ + + +#ifndef __IJsEnumDebugProperty_FWD_DEFINED__ +#define __IJsEnumDebugProperty_FWD_DEFINED__ +typedef interface IJsEnumDebugProperty IJsEnumDebugProperty; + +#endif /* __IJsEnumDebugProperty_FWD_DEFINED__ */ + + +#ifndef __IJsDebugBreakPoint_FWD_DEFINED__ +#define __IJsDebugBreakPoint_FWD_DEFINED__ +typedef interface IJsDebugBreakPoint IJsDebugBreakPoint; + +#endif /* __IJsDebugBreakPoint_FWD_DEFINED__ */ + + +#ifndef __IEnumJsStackFrames_FWD_DEFINED__ +#define __IEnumJsStackFrames_FWD_DEFINED__ +typedef interface IEnumJsStackFrames IEnumJsStackFrames; + +#endif /* __IEnumJsStackFrames_FWD_DEFINED__ */ + + +#ifndef __IJsDebugDataTarget_FWD_DEFINED__ +#define __IJsDebugDataTarget_FWD_DEFINED__ +typedef interface IJsDebugDataTarget IJsDebugDataTarget; + +#endif /* __IJsDebugDataTarget_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_jscript9diag_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + + + + + + + +#define FACILITY_JsDEBUG 0xdc7 +// The Js runtime and the Js diag do not match. +#define E_JsDEBUG_MISMATCHED_RUNTIME MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x1) +// Thread is not known to have any JS code, and will have no frames. +#define E_JsDEBUG_UNKNOWN_THREAD MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x2) +// Frame is outside of the interpreter. For example, portions of the Js dll which are +// logically not part of the interpreter. +#define E_JsDEBUG_OUTSIDE_OF_VM MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x4) +// Specified memory address could not be written/read from +#define E_JsDEBUG_INVALID_MEMORY_ADDRESS MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x5) +// No source location found to bind the breakpoint +#define E_JsDEBUG_SOURCE_LOCATION_NOT_FOUND MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x6) +// Runtime not in debug mode +#define E_JsDEBUG_RUNTIME_NOT_IN_DEBUG_MODE MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x7) + + +extern RPC_IF_HANDLE __MIDL_itf_jscript9diag_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_jscript9diag_0000_0000_v0_0_s_ifspec; + +#ifndef __IJsDebug_INTERFACE_DEFINED__ +#define __IJsDebug_INTERFACE_DEFINED__ + +/* interface IJsDebug */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IJsDebug; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BE0E89DA-2AC5-4C04-AC5E-59956AAE3613") + IJsDebug : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OpenVirtualProcess( + /* [in] */ DWORD processId, + /* [in] */ UINT64 runtimeJsBaseAddress, + /* [in] */ IJsDebugDataTarget *pDataTarget, + /* [out] */ IJsDebugProcess **ppProcess) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IJsDebugVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IJsDebug * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IJsDebug * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IJsDebug * This); + + DECLSPEC_XFGVIRT(IJsDebug, OpenVirtualProcess) + HRESULT ( STDMETHODCALLTYPE *OpenVirtualProcess )( + IJsDebug * This, + /* [in] */ DWORD processId, + /* [in] */ UINT64 runtimeJsBaseAddress, + /* [in] */ IJsDebugDataTarget *pDataTarget, + /* [out] */ IJsDebugProcess **ppProcess); + + END_INTERFACE + } IJsDebugVtbl; + + interface IJsDebug + { + CONST_VTBL struct IJsDebugVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IJsDebug_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IJsDebug_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IJsDebug_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IJsDebug_OpenVirtualProcess(This,processId,runtimeJsBaseAddress,pDataTarget,ppProcess) \ + ( (This)->lpVtbl -> OpenVirtualProcess(This,processId,runtimeJsBaseAddress,pDataTarget,ppProcess) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IJsDebug_INTERFACE_DEFINED__ */ + + +#ifndef __IJsDebugProcess_INTERFACE_DEFINED__ +#define __IJsDebugProcess_INTERFACE_DEFINED__ + +/* interface IJsDebugProcess */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IJsDebugProcess; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3D587168-6A2D-4041-BD3B-0DE674502862") + IJsDebugProcess : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateStackWalker( + /* [in] */ DWORD threadId, + /* [out] */ IJsDebugStackWalker **ppStackWalker) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateBreakPoint( + /* [in] */ UINT64 documentId, + /* [in] */ DWORD characterOffset, + /* [in] */ DWORD characterCount, + /* [in] */ BOOL isEnabled, + /* [out] */ IJsDebugBreakPoint **ppDebugBreakPoint) = 0; + + virtual HRESULT STDMETHODCALLTYPE PerformAsyncBreak( + /* [in] */ DWORD threadId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExternalStepAddress( + /* [out] */ UINT64 *pCodeAddress) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IJsDebugProcessVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IJsDebugProcess * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IJsDebugProcess * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IJsDebugProcess * This); + + DECLSPEC_XFGVIRT(IJsDebugProcess, CreateStackWalker) + HRESULT ( STDMETHODCALLTYPE *CreateStackWalker )( + IJsDebugProcess * This, + /* [in] */ DWORD threadId, + /* [out] */ IJsDebugStackWalker **ppStackWalker); + + DECLSPEC_XFGVIRT(IJsDebugProcess, CreateBreakPoint) + HRESULT ( STDMETHODCALLTYPE *CreateBreakPoint )( + IJsDebugProcess * This, + /* [in] */ UINT64 documentId, + /* [in] */ DWORD characterOffset, + /* [in] */ DWORD characterCount, + /* [in] */ BOOL isEnabled, + /* [out] */ IJsDebugBreakPoint **ppDebugBreakPoint); + + DECLSPEC_XFGVIRT(IJsDebugProcess, PerformAsyncBreak) + HRESULT ( STDMETHODCALLTYPE *PerformAsyncBreak )( + IJsDebugProcess * This, + /* [in] */ DWORD threadId); + + DECLSPEC_XFGVIRT(IJsDebugProcess, GetExternalStepAddress) + HRESULT ( STDMETHODCALLTYPE *GetExternalStepAddress )( + IJsDebugProcess * This, + /* [out] */ UINT64 *pCodeAddress); + + END_INTERFACE + } IJsDebugProcessVtbl; + + interface IJsDebugProcess + { + CONST_VTBL struct IJsDebugProcessVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IJsDebugProcess_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IJsDebugProcess_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IJsDebugProcess_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IJsDebugProcess_CreateStackWalker(This,threadId,ppStackWalker) \ + ( (This)->lpVtbl -> CreateStackWalker(This,threadId,ppStackWalker) ) + +#define IJsDebugProcess_CreateBreakPoint(This,documentId,characterOffset,characterCount,isEnabled,ppDebugBreakPoint) \ + ( (This)->lpVtbl -> CreateBreakPoint(This,documentId,characterOffset,characterCount,isEnabled,ppDebugBreakPoint) ) + +#define IJsDebugProcess_PerformAsyncBreak(This,threadId) \ + ( (This)->lpVtbl -> PerformAsyncBreak(This,threadId) ) + +#define IJsDebugProcess_GetExternalStepAddress(This,pCodeAddress) \ + ( (This)->lpVtbl -> GetExternalStepAddress(This,pCodeAddress) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IJsDebugProcess_INTERFACE_DEFINED__ */ + + +#ifndef __IJsDebugStackWalker_INTERFACE_DEFINED__ +#define __IJsDebugStackWalker_INTERFACE_DEFINED__ + +/* interface IJsDebugStackWalker */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IJsDebugStackWalker; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DB24B094-73C4-456C-A4EC-E90EA00BDFE3") + IJsDebugStackWalker : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetNext( + /* [out] */ IJsDebugFrame **ppFrame) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IJsDebugStackWalkerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IJsDebugStackWalker * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IJsDebugStackWalker * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IJsDebugStackWalker * This); + + DECLSPEC_XFGVIRT(IJsDebugStackWalker, GetNext) + HRESULT ( STDMETHODCALLTYPE *GetNext )( + IJsDebugStackWalker * This, + /* [out] */ IJsDebugFrame **ppFrame); + + END_INTERFACE + } IJsDebugStackWalkerVtbl; + + interface IJsDebugStackWalker + { + CONST_VTBL struct IJsDebugStackWalkerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IJsDebugStackWalker_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IJsDebugStackWalker_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IJsDebugStackWalker_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IJsDebugStackWalker_GetNext(This,ppFrame) \ + ( (This)->lpVtbl -> GetNext(This,ppFrame) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IJsDebugStackWalker_INTERFACE_DEFINED__ */ + + +#ifndef __IJsDebugFrame_INTERFACE_DEFINED__ +#define __IJsDebugFrame_INTERFACE_DEFINED__ + +/* interface IJsDebugFrame */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IJsDebugFrame; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C9196637-AB9D-44B2-BAD2-13B95B3F390E") + IJsDebugFrame : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetStackRange( + /* [out] */ UINT64 *pStart, + /* [out] */ UINT64 *pEnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [out] */ BSTR *pName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDocumentPositionWithId( + /* [out] */ UINT64 *pDocumentId, + /* [out] */ DWORD *pCharacterOffset, + /* [out] */ DWORD *pStatementCharCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDocumentPositionWithName( + /* [out] */ BSTR *pDocumentName, + /* [out] */ DWORD *pLine, + /* [out] */ DWORD *pColumn) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDebugProperty( + /* [out] */ IJsDebugProperty **ppDebugProperty) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReturnAddress( + /* [out] */ UINT64 *pReturnAddress) = 0; + + virtual HRESULT STDMETHODCALLTYPE Evaluate( + /* [in] */ LPCOLESTR pExpressionText, + /* [out] */ IJsDebugProperty **ppDebugProperty, + /* [out] */ BSTR *pError) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IJsDebugFrameVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IJsDebugFrame * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IJsDebugFrame * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IJsDebugFrame * This); + + DECLSPEC_XFGVIRT(IJsDebugFrame, GetStackRange) + HRESULT ( STDMETHODCALLTYPE *GetStackRange )( + IJsDebugFrame * This, + /* [out] */ UINT64 *pStart, + /* [out] */ UINT64 *pEnd); + + DECLSPEC_XFGVIRT(IJsDebugFrame, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + IJsDebugFrame * This, + /* [out] */ BSTR *pName); + + DECLSPEC_XFGVIRT(IJsDebugFrame, GetDocumentPositionWithId) + HRESULT ( STDMETHODCALLTYPE *GetDocumentPositionWithId )( + IJsDebugFrame * This, + /* [out] */ UINT64 *pDocumentId, + /* [out] */ DWORD *pCharacterOffset, + /* [out] */ DWORD *pStatementCharCount); + + DECLSPEC_XFGVIRT(IJsDebugFrame, GetDocumentPositionWithName) + HRESULT ( STDMETHODCALLTYPE *GetDocumentPositionWithName )( + IJsDebugFrame * This, + /* [out] */ BSTR *pDocumentName, + /* [out] */ DWORD *pLine, + /* [out] */ DWORD *pColumn); + + DECLSPEC_XFGVIRT(IJsDebugFrame, GetDebugProperty) + HRESULT ( STDMETHODCALLTYPE *GetDebugProperty )( + IJsDebugFrame * This, + /* [out] */ IJsDebugProperty **ppDebugProperty); + + DECLSPEC_XFGVIRT(IJsDebugFrame, GetReturnAddress) + HRESULT ( STDMETHODCALLTYPE *GetReturnAddress )( + IJsDebugFrame * This, + /* [out] */ UINT64 *pReturnAddress); + + DECLSPEC_XFGVIRT(IJsDebugFrame, Evaluate) + HRESULT ( STDMETHODCALLTYPE *Evaluate )( + IJsDebugFrame * This, + /* [in] */ LPCOLESTR pExpressionText, + /* [out] */ IJsDebugProperty **ppDebugProperty, + /* [out] */ BSTR *pError); + + END_INTERFACE + } IJsDebugFrameVtbl; + + interface IJsDebugFrame + { + CONST_VTBL struct IJsDebugFrameVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IJsDebugFrame_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IJsDebugFrame_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IJsDebugFrame_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IJsDebugFrame_GetStackRange(This,pStart,pEnd) \ + ( (This)->lpVtbl -> GetStackRange(This,pStart,pEnd) ) + +#define IJsDebugFrame_GetName(This,pName) \ + ( (This)->lpVtbl -> GetName(This,pName) ) + +#define IJsDebugFrame_GetDocumentPositionWithId(This,pDocumentId,pCharacterOffset,pStatementCharCount) \ + ( (This)->lpVtbl -> GetDocumentPositionWithId(This,pDocumentId,pCharacterOffset,pStatementCharCount) ) + +#define IJsDebugFrame_GetDocumentPositionWithName(This,pDocumentName,pLine,pColumn) \ + ( (This)->lpVtbl -> GetDocumentPositionWithName(This,pDocumentName,pLine,pColumn) ) + +#define IJsDebugFrame_GetDebugProperty(This,ppDebugProperty) \ + ( (This)->lpVtbl -> GetDebugProperty(This,ppDebugProperty) ) + +#define IJsDebugFrame_GetReturnAddress(This,pReturnAddress) \ + ( (This)->lpVtbl -> GetReturnAddress(This,pReturnAddress) ) + +#define IJsDebugFrame_Evaluate(This,pExpressionText,ppDebugProperty,pError) \ + ( (This)->lpVtbl -> Evaluate(This,pExpressionText,ppDebugProperty,pError) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IJsDebugFrame_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_jscript9diag_0000_0004 */ +/* [local] */ + +typedef +enum JS_PROPERTY_MEMBERS + { + JS_PROPERTY_MEMBERS_ALL = 0, + JS_PROPERTY_MEMBERS_ARGUMENTS = 1 + } JS_PROPERTY_MEMBERS; + +typedef /* [v1_enum] */ +enum JS_PROPERTY_ATTRIBUTES + { + JS_PROPERTY_ATTRIBUTE_NONE = 0, + JS_PROPERTY_HAS_CHILDREN = 0x1, + JS_PROPERTY_FAKE = 0x2, + JS_PROPERTY_METHOD = 0x4, + JS_PROPERTY_READONLY = 0x8, + JS_PROPERTY_NATIVE_WINRT_POINTER = 0x10, + JS_PROPERTY_FRAME_INTRYBLOCK = 0x20, + JS_PROPERTY_FRAME_INCATCHBLOCK = 0x40, + JS_PROPERTY_FRAME_INFINALLYBLOCK = 0x80 + } JS_PROPERTY_ATTRIBUTES; + +typedef struct tagJsDebugPropertyInfo + { + BSTR name; + BSTR type; + BSTR value; + BSTR fullName; + JS_PROPERTY_ATTRIBUTES attr; + } JsDebugPropertyInfo; + + + +extern RPC_IF_HANDLE __MIDL_itf_jscript9diag_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_jscript9diag_0000_0004_v0_0_s_ifspec; + +#ifndef __IJsDebugProperty_INTERFACE_DEFINED__ +#define __IJsDebugProperty_INTERFACE_DEFINED__ + +/* interface IJsDebugProperty */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IJsDebugProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F8FFCF2B-3AA4-4320-85C3-52A312BA9633") + IJsDebugProperty : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetPropertyInfo( + /* [in] */ UINT nRadix, + /* [out] */ JsDebugPropertyInfo *pPropertyInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMembers( + /* [in] */ JS_PROPERTY_MEMBERS members, + /* [out] */ IJsEnumDebugProperty **ppEnum) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IJsDebugPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IJsDebugProperty * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IJsDebugProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IJsDebugProperty * This); + + DECLSPEC_XFGVIRT(IJsDebugProperty, GetPropertyInfo) + HRESULT ( STDMETHODCALLTYPE *GetPropertyInfo )( + IJsDebugProperty * This, + /* [in] */ UINT nRadix, + /* [out] */ JsDebugPropertyInfo *pPropertyInfo); + + DECLSPEC_XFGVIRT(IJsDebugProperty, GetMembers) + HRESULT ( STDMETHODCALLTYPE *GetMembers )( + IJsDebugProperty * This, + /* [in] */ JS_PROPERTY_MEMBERS members, + /* [out] */ IJsEnumDebugProperty **ppEnum); + + END_INTERFACE + } IJsDebugPropertyVtbl; + + interface IJsDebugProperty + { + CONST_VTBL struct IJsDebugPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IJsDebugProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IJsDebugProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IJsDebugProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IJsDebugProperty_GetPropertyInfo(This,nRadix,pPropertyInfo) \ + ( (This)->lpVtbl -> GetPropertyInfo(This,nRadix,pPropertyInfo) ) + +#define IJsDebugProperty_GetMembers(This,members,ppEnum) \ + ( (This)->lpVtbl -> GetMembers(This,members,ppEnum) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IJsDebugProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IJsEnumDebugProperty_INTERFACE_DEFINED__ +#define __IJsEnumDebugProperty_INTERFACE_DEFINED__ + +/* interface IJsEnumDebugProperty */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IJsEnumDebugProperty; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4092432F-2F0F-4FE1-B638-5B74A52CDCBE") + IJsEnumDebugProperty : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG count, + /* [length_is][size_is][out] */ IJsDebugProperty **ppDebugProperty, + /* [out] */ ULONG *pActualCount) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCount( + /* [out] */ ULONG *pCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IJsEnumDebugPropertyVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IJsEnumDebugProperty * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IJsEnumDebugProperty * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IJsEnumDebugProperty * This); + + DECLSPEC_XFGVIRT(IJsEnumDebugProperty, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IJsEnumDebugProperty * This, + /* [in] */ ULONG count, + /* [length_is][size_is][out] */ IJsDebugProperty **ppDebugProperty, + /* [out] */ ULONG *pActualCount); + + DECLSPEC_XFGVIRT(IJsEnumDebugProperty, GetCount) + HRESULT ( STDMETHODCALLTYPE *GetCount )( + IJsEnumDebugProperty * This, + /* [out] */ ULONG *pCount); + + END_INTERFACE + } IJsEnumDebugPropertyVtbl; + + interface IJsEnumDebugProperty + { + CONST_VTBL struct IJsEnumDebugPropertyVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IJsEnumDebugProperty_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IJsEnumDebugProperty_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IJsEnumDebugProperty_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IJsEnumDebugProperty_Next(This,count,ppDebugProperty,pActualCount) \ + ( (This)->lpVtbl -> Next(This,count,ppDebugProperty,pActualCount) ) + +#define IJsEnumDebugProperty_GetCount(This,pCount) \ + ( (This)->lpVtbl -> GetCount(This,pCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IJsEnumDebugProperty_INTERFACE_DEFINED__ */ + + +#ifndef __IJsDebugBreakPoint_INTERFACE_DEFINED__ +#define __IJsDebugBreakPoint_INTERFACE_DEFINED__ + +/* interface IJsDebugBreakPoint */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IJsDebugBreakPoint; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DF6773E3-ED8D-488B-8A3E-5812577D1542") + IJsDebugBreakPoint : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE IsEnabled( + /* [out] */ BOOL *pIsEnabled) = 0; + + virtual HRESULT STDMETHODCALLTYPE Enable( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Disable( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Delete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDocumentPosition( + /* [out] */ UINT64 *pDocumentId, + /* [out] */ DWORD *pCharacterOffset, + /* [out] */ DWORD *pStatementCharCount) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IJsDebugBreakPointVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IJsDebugBreakPoint * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IJsDebugBreakPoint * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IJsDebugBreakPoint * This); + + DECLSPEC_XFGVIRT(IJsDebugBreakPoint, IsEnabled) + HRESULT ( STDMETHODCALLTYPE *IsEnabled )( + IJsDebugBreakPoint * This, + /* [out] */ BOOL *pIsEnabled); + + DECLSPEC_XFGVIRT(IJsDebugBreakPoint, Enable) + HRESULT ( STDMETHODCALLTYPE *Enable )( + IJsDebugBreakPoint * This); + + DECLSPEC_XFGVIRT(IJsDebugBreakPoint, Disable) + HRESULT ( STDMETHODCALLTYPE *Disable )( + IJsDebugBreakPoint * This); + + DECLSPEC_XFGVIRT(IJsDebugBreakPoint, Delete) + HRESULT ( STDMETHODCALLTYPE *Delete )( + IJsDebugBreakPoint * This); + + DECLSPEC_XFGVIRT(IJsDebugBreakPoint, GetDocumentPosition) + HRESULT ( STDMETHODCALLTYPE *GetDocumentPosition )( + IJsDebugBreakPoint * This, + /* [out] */ UINT64 *pDocumentId, + /* [out] */ DWORD *pCharacterOffset, + /* [out] */ DWORD *pStatementCharCount); + + END_INTERFACE + } IJsDebugBreakPointVtbl; + + interface IJsDebugBreakPoint + { + CONST_VTBL struct IJsDebugBreakPointVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IJsDebugBreakPoint_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IJsDebugBreakPoint_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IJsDebugBreakPoint_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IJsDebugBreakPoint_IsEnabled(This,pIsEnabled) \ + ( (This)->lpVtbl -> IsEnabled(This,pIsEnabled) ) + +#define IJsDebugBreakPoint_Enable(This) \ + ( (This)->lpVtbl -> Enable(This) ) + +#define IJsDebugBreakPoint_Disable(This) \ + ( (This)->lpVtbl -> Disable(This) ) + +#define IJsDebugBreakPoint_Delete(This) \ + ( (This)->lpVtbl -> Delete(This) ) + +#define IJsDebugBreakPoint_GetDocumentPosition(This,pDocumentId,pCharacterOffset,pStatementCharCount) \ + ( (This)->lpVtbl -> GetDocumentPosition(This,pDocumentId,pCharacterOffset,pStatementCharCount) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IJsDebugBreakPoint_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_jscript9diag_0000_0007 */ +/* [local] */ + +typedef /* [public][public] */ struct __MIDL___MIDL_itf_jscript9diag_0000_0007_0001 + { + UINT64 InstructionOffset; + UINT64 ReturnOffset; + UINT64 FrameOffset; + UINT64 StackOffset; + } JS_NATIVE_FRAME; + + + +extern RPC_IF_HANDLE __MIDL_itf_jscript9diag_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_jscript9diag_0000_0007_v0_0_s_ifspec; + +#ifndef __IEnumJsStackFrames_INTERFACE_DEFINED__ +#define __IEnumJsStackFrames_INTERFACE_DEFINED__ + +/* interface IEnumJsStackFrames */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IEnumJsStackFrames; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5E7DA34B-FB51-4791-ABE7-CB5BDF419755") + IEnumJsStackFrames : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Next( + /* [in] */ ULONG cFrameCount, + /* [length_is][size_is][out] */ JS_NATIVE_FRAME *pFrames, + /* [out] */ ULONG *pcFetched) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumJsStackFramesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumJsStackFrames * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumJsStackFrames * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumJsStackFrames * This); + + DECLSPEC_XFGVIRT(IEnumJsStackFrames, Next) + HRESULT ( STDMETHODCALLTYPE *Next )( + IEnumJsStackFrames * This, + /* [in] */ ULONG cFrameCount, + /* [length_is][size_is][out] */ JS_NATIVE_FRAME *pFrames, + /* [out] */ ULONG *pcFetched); + + DECLSPEC_XFGVIRT(IEnumJsStackFrames, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + IEnumJsStackFrames * This); + + END_INTERFACE + } IEnumJsStackFramesVtbl; + + interface IEnumJsStackFrames + { + CONST_VTBL struct IEnumJsStackFramesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumJsStackFrames_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumJsStackFrames_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumJsStackFrames_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumJsStackFrames_Next(This,cFrameCount,pFrames,pcFetched) \ + ( (This)->lpVtbl -> Next(This,cFrameCount,pFrames,pcFetched) ) + +#define IEnumJsStackFrames_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumJsStackFrames_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_jscript9diag_0000_0008 */ +/* [local] */ + +typedef /* [v1_enum] */ +enum JsDebugReadMemoryFlags + { + None = 0, + JsDebugAllowPartialRead = 0x1 + } JsDebugReadMemoryFlags; + + + +extern RPC_IF_HANDLE __MIDL_itf_jscript9diag_0000_0008_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_jscript9diag_0000_0008_v0_0_s_ifspec; + +#ifndef __IJsDebugDataTarget_INTERFACE_DEFINED__ +#define __IJsDebugDataTarget_INTERFACE_DEFINED__ + +/* interface IJsDebugDataTarget */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IJsDebugDataTarget; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("53B28977-53A1-48E5-9000-5D0DFA893931") + IJsDebugDataTarget : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ReadMemory( + /* [in] */ UINT64 address, + /* [in] */ JsDebugReadMemoryFlags flags, + /* [length_is][size_is][out] */ BYTE *pBuffer, + /* [in] */ DWORD size, + /* [out] */ DWORD *pBytesRead) = 0; + + virtual HRESULT STDMETHODCALLTYPE WriteMemory( + /* [in] */ UINT64 address, + /* [size_is][in] */ const BYTE *pMemory, + /* [in] */ DWORD size) = 0; + + virtual HRESULT STDMETHODCALLTYPE AllocateVirtualMemory( + /* [in] */ UINT64 address, + /* [in] */ DWORD size, + /* [in] */ DWORD allocationType, + /* [in] */ DWORD pageProtection, + /* [out] */ UINT64 *pAllocatedAddress) = 0; + + virtual HRESULT STDMETHODCALLTYPE FreeVirtualMemory( + /* [in] */ UINT64 address, + /* [in] */ DWORD size, + /* [in] */ DWORD freeType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTlsValue( + /* [in] */ DWORD threadId, + /* [in] */ UINT32 tlsIndex, + /* [out] */ UINT64 *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReadBSTR( + /* [in] */ UINT64 address, + /* [out] */ BSTR *pString) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReadNullTerminatedString( + /* [in] */ UINT64 address, + /* [in] */ UINT16 characterSize, + /* [in] */ UINT32 maxCharacters, + /* [out] */ BSTR *pString) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateStackFrameEnumerator( + /* [in] */ DWORD threadId, + /* [out] */ IEnumJsStackFrames **ppEnumerator) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetThreadContext( + /* [in] */ DWORD threadId, + /* [in] */ ULONG32 contextFlags, + /* [in] */ ULONG32 contextSize, + /* [size_is][out] */ void *pContext) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IJsDebugDataTargetVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IJsDebugDataTarget * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IJsDebugDataTarget * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IJsDebugDataTarget * This); + + DECLSPEC_XFGVIRT(IJsDebugDataTarget, ReadMemory) + HRESULT ( STDMETHODCALLTYPE *ReadMemory )( + IJsDebugDataTarget * This, + /* [in] */ UINT64 address, + /* [in] */ JsDebugReadMemoryFlags flags, + /* [length_is][size_is][out] */ BYTE *pBuffer, + /* [in] */ DWORD size, + /* [out] */ DWORD *pBytesRead); + + DECLSPEC_XFGVIRT(IJsDebugDataTarget, WriteMemory) + HRESULT ( STDMETHODCALLTYPE *WriteMemory )( + IJsDebugDataTarget * This, + /* [in] */ UINT64 address, + /* [size_is][in] */ const BYTE *pMemory, + /* [in] */ DWORD size); + + DECLSPEC_XFGVIRT(IJsDebugDataTarget, AllocateVirtualMemory) + HRESULT ( STDMETHODCALLTYPE *AllocateVirtualMemory )( + IJsDebugDataTarget * This, + /* [in] */ UINT64 address, + /* [in] */ DWORD size, + /* [in] */ DWORD allocationType, + /* [in] */ DWORD pageProtection, + /* [out] */ UINT64 *pAllocatedAddress); + + DECLSPEC_XFGVIRT(IJsDebugDataTarget, FreeVirtualMemory) + HRESULT ( STDMETHODCALLTYPE *FreeVirtualMemory )( + IJsDebugDataTarget * This, + /* [in] */ UINT64 address, + /* [in] */ DWORD size, + /* [in] */ DWORD freeType); + + DECLSPEC_XFGVIRT(IJsDebugDataTarget, GetTlsValue) + HRESULT ( STDMETHODCALLTYPE *GetTlsValue )( + IJsDebugDataTarget * This, + /* [in] */ DWORD threadId, + /* [in] */ UINT32 tlsIndex, + /* [out] */ UINT64 *pValue); + + DECLSPEC_XFGVIRT(IJsDebugDataTarget, ReadBSTR) + HRESULT ( STDMETHODCALLTYPE *ReadBSTR )( + IJsDebugDataTarget * This, + /* [in] */ UINT64 address, + /* [out] */ BSTR *pString); + + DECLSPEC_XFGVIRT(IJsDebugDataTarget, ReadNullTerminatedString) + HRESULT ( STDMETHODCALLTYPE *ReadNullTerminatedString )( + IJsDebugDataTarget * This, + /* [in] */ UINT64 address, + /* [in] */ UINT16 characterSize, + /* [in] */ UINT32 maxCharacters, + /* [out] */ BSTR *pString); + + DECLSPEC_XFGVIRT(IJsDebugDataTarget, CreateStackFrameEnumerator) + HRESULT ( STDMETHODCALLTYPE *CreateStackFrameEnumerator )( + IJsDebugDataTarget * This, + /* [in] */ DWORD threadId, + /* [out] */ IEnumJsStackFrames **ppEnumerator); + + DECLSPEC_XFGVIRT(IJsDebugDataTarget, GetThreadContext) + HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( + IJsDebugDataTarget * This, + /* [in] */ DWORD threadId, + /* [in] */ ULONG32 contextFlags, + /* [in] */ ULONG32 contextSize, + /* [size_is][out] */ void *pContext); + + END_INTERFACE + } IJsDebugDataTargetVtbl; + + interface IJsDebugDataTarget + { + CONST_VTBL struct IJsDebugDataTargetVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IJsDebugDataTarget_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IJsDebugDataTarget_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IJsDebugDataTarget_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IJsDebugDataTarget_ReadMemory(This,address,flags,pBuffer,size,pBytesRead) \ + ( (This)->lpVtbl -> ReadMemory(This,address,flags,pBuffer,size,pBytesRead) ) + +#define IJsDebugDataTarget_WriteMemory(This,address,pMemory,size) \ + ( (This)->lpVtbl -> WriteMemory(This,address,pMemory,size) ) + +#define IJsDebugDataTarget_AllocateVirtualMemory(This,address,size,allocationType,pageProtection,pAllocatedAddress) \ + ( (This)->lpVtbl -> AllocateVirtualMemory(This,address,size,allocationType,pageProtection,pAllocatedAddress) ) + +#define IJsDebugDataTarget_FreeVirtualMemory(This,address,size,freeType) \ + ( (This)->lpVtbl -> FreeVirtualMemory(This,address,size,freeType) ) + +#define IJsDebugDataTarget_GetTlsValue(This,threadId,tlsIndex,pValue) \ + ( (This)->lpVtbl -> GetTlsValue(This,threadId,tlsIndex,pValue) ) + +#define IJsDebugDataTarget_ReadBSTR(This,address,pString) \ + ( (This)->lpVtbl -> ReadBSTR(This,address,pString) ) + +#define IJsDebugDataTarget_ReadNullTerminatedString(This,address,characterSize,maxCharacters,pString) \ + ( (This)->lpVtbl -> ReadNullTerminatedString(This,address,characterSize,maxCharacters,pString) ) + +#define IJsDebugDataTarget_CreateStackFrameEnumerator(This,threadId,ppEnumerator) \ + ( (This)->lpVtbl -> CreateStackFrameEnumerator(This,threadId,ppEnumerator) ) + +#define IJsDebugDataTarget_GetThreadContext(This,threadId,contextFlags,contextSize,pContext) \ + ( (This)->lpVtbl -> GetThreadContext(This,threadId,contextFlags,contextSize,pContext) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IJsDebugDataTarget_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_jscript9diag_0000_0009 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_jscript9diag_0000_0009_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_jscript9diag_0000_0009_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/jscript9diag.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jscript9diag.idl new file mode 100644 index 0000000000000000000000000000000000000000..fef7c9e8ba2db049c7c0301664a0ec98f0593615 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jscript9diag.idl @@ -0,0 +1,439 @@ +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; +import "ocidl.idl"; + +interface IJsDebug; +interface IJsDebugProcess; +interface IJsDebugStackWalker; +interface IJsDebugDataTarget; +interface IJsDebugEventCallback; +interface IJsDebugFrame; +interface IJsDebugProperty; +interface IJsEnumDebugProperty; +interface IJsDebugBreakPoint; + +cpp_quote("#define FACILITY_JsDEBUG 0xdc7") + +cpp_quote("// The Js runtime and the Js diag do not match.") +cpp_quote("#define E_JsDEBUG_MISMATCHED_RUNTIME MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x1)") +cpp_quote("// Thread is not known to have any JS code, and will have no frames.") +cpp_quote("#define E_JsDEBUG_UNKNOWN_THREAD MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x2)") +cpp_quote("// Frame is outside of the interpreter. For example, portions of the Js dll which are") +cpp_quote("// logically not part of the interpreter.") +cpp_quote("#define E_JsDEBUG_OUTSIDE_OF_VM MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x4)") +cpp_quote("// Specified memory address could not be written/read from") +cpp_quote("#define E_JsDEBUG_INVALID_MEMORY_ADDRESS MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x5)") +cpp_quote("// No source location found to bind the breakpoint") +cpp_quote("#define E_JsDEBUG_SOURCE_LOCATION_NOT_FOUND MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x6)") +cpp_quote("// Runtime not in debug mode") +cpp_quote("#define E_JsDEBUG_RUNTIME_NOT_IN_DEBUG_MODE MAKE_HRESULT(1, FACILITY_JsDEBUG, 0x7)") +#ifndef MIDL_PASS +#define CONST const +#else +#define CONST +#endif + +// Entry point interface into the Js debugging API. +[ + local, object, uuid(BE0E89DA-2AC5-4C04-AC5E-59956AAE3613), pointer_default(unique) +] +interface IJsDebug: IUnknown +{ + // Factory method used to create a new virtual process object. + // + // ProcessId: Process Id to attach the debugger to. + // RuntimeJsBaseAddress: The base address at which the Js runtime has loaded into the + // target process. + // pDataTarget: Debugger supplied interface to query for state of the process. + // ppProcess: New debug process object + // + // Error conditions: + // E_JsDEBUG_MISMATCHED_RUNTIME if Jscript9diag and Jscript9 do not match. + HRESULT OpenVirtualProcess( + [in] DWORD processId, + [in] UINT64 runtimeJsBaseAddress, + [in] IJsDebugDataTarget* pDataTarget, + [out] IJsDebugProcess** ppProcess + ); +}; + +// Provides routines for inspecting/controlling the target process +[ + local, object, uuid(3D587168-6A2D-4041-BD3B-0DE674502862), pointer_default(unique) +] +interface IJsDebugProcess: IUnknown +{ + // Factory method for stack walker. This may fail with + // E_JsDEBUG_UNKNOWN_THREAD if the thread does not have javascript on it + // This method may only be called while the target process is stopped. + HRESULT CreateStackWalker( + [in] DWORD threadId, + [out] IJsDebugStackWalker** ppStackWalker); + + // Sets the breakpoint at the specified document position + // documentId: Pointer to IDebugDocumentText + // characterOffset: Character offset from the beginning of the file. + // characterCount: Length of the document text within which the breakpoint should be inserted + // ppDebugbreakPoint: Object representing the breakpoint that got created. + HRESULT CreateBreakPoint( + [in] UINT64 documentId, + [in] DWORD characterOffset, + [in] DWORD characterCount, + [in] BOOL isEnabled, + [out] IJsDebugBreakPoint** ppDebugBreakPoint); + + // Puts the script engine in break mode causing it to + // break on the next script instruction. + HRESULT PerformAsyncBreak( + [in] DWORD threadId); + + // Gets a code address close to external projection function call. + HRESULT GetExternalStepAddress( + [out] UINT64 *pCodeAddress); +}; + +// Stack walker for a particular thread. Stack walkers can only be created +// while the target is stopped, and are invalid once the target process has been +// continued again. +[ + local, object, uuid(DB24B094-73C4-456C-A4EC-E90EA00BDFE3), pointer_default(unique) +] +interface IJsDebugStackWalker: IUnknown +{ + // Gets the next frame + // Error conditions: + // E_JsDEBUG_OUTSIDE_OF_VM : When there are no more stack frames to be enumerated + HRESULT GetNext( + [out] IJsDebugFrame** ppFrame); +}; + +// Object represeting a stack frame +[ + local, object, uuid(C9196637-AB9D-44B2-BAD2-13B95B3F390E), pointer_default(unique) +] +interface IJsDebugFrame: IUnknown +{ + // Returns the absolute address range of the logical javascript stack frame. (This is useful for piecing together interleaved stack + // traces gathered from multiple runtimes. ) The start of a stack range is the bottom most stack pointer of the frame, and + // the end of a stack range is the top most stack pointer of the frame. + // The start > end as the stack grows from high to low address. The start, end stack pointers can encompass + // multiple physical machine stack frames (for interpreted javascript runtime frames) + HRESULT GetStackRange( + [out] UINT64 *pStart, + [out] UINT64 *pEnd); + + // Get the user-friendly name of stack frame. + HRESULT GetName( + [out] BSTR* pName); + + // Returns the current position of this stack frame within the user-level document. + // pDocumentId: Unique ID for a source document (pointer to the IDebugDocumentText) + // pCharacterOffset: The zero-based character offset from the start of the script. + // pStatementCharCount: the length of current statement, which starts at *pCharacterOffset, in characters. + HRESULT GetDocumentPositionWithId( + [out] UINT64* pDocumentId, + [out] DWORD* pCharacterOffset, + [out] DWORD* pStatementCharCount); + + // Returns the current position of this stack frame within the user-level document. + // pDocumentName: For static scripts, a URL to document. For dynamic scripts, a buffer is returned. + // pLine: 1-based line position within the document + // pColumn: 1-based line position within the document + HRESULT GetDocumentPositionWithName( + [out] BSTR* pDocumentName, + [out] DWORD* pLine, + [out] DWORD* pColumn); + + // Returns a property browser for this stack frame. + HRESULT GetDebugProperty( + [out] IJsDebugProperty** ppDebugProperty); + + // Returns the return address pushed at the 'start' (see GetStackRange) of the frame + HRESULT GetReturnAddress( + [out] UINT64 *pReturnAddress); + + // Evaluate an expression in the context of this stack frame. Returns: + // S_OK: Evaluation succeeds, *ppDebugProperty contains evaluation result. + // S_FALSE: Evaluation throws an error (or possibly involved evaluation operation not supported), *pError contains error message. + HRESULT Evaluate( + [in] LPCOLESTR pExpressionText, + [out] IJsDebugProperty** ppDebugProperty, + [out] BSTR* pError); +}; + +typedef enum JS_PROPERTY_MEMBERS +{ + JS_PROPERTY_MEMBERS_ALL = 0, + JS_PROPERTY_MEMBERS_ARGUMENTS = 1, +} JS_PROPERTY_MEMBERS; + +[v1_enum] +typedef enum JS_PROPERTY_ATTRIBUTES +{ + JS_PROPERTY_ATTRIBUTE_NONE = 0, + + JS_PROPERTY_HAS_CHILDREN = 0x1, + JS_PROPERTY_FAKE = 0x2, + JS_PROPERTY_METHOD = 0x4, + JS_PROPERTY_READONLY = 0x8, + JS_PROPERTY_NATIVE_WINRT_POINTER = 0x10, + JS_PROPERTY_FRAME_INTRYBLOCK = 0x20, // this frame is in a try block + JS_PROPERTY_FRAME_INCATCHBLOCK = 0x40, // this frame is in a catch block + JS_PROPERTY_FRAME_INFINALLYBLOCK = 0x80, // this frame is in a finally block +} JS_PROPERTY_ATTRIBUTES; + +typedef struct tagJsDebugPropertyInfo +{ + BSTR name; + BSTR type; + BSTR value; + BSTR fullName; + JS_PROPERTY_ATTRIBUTES attr; +} JsDebugPropertyInfo; + +// IJsDebugProperty +[ + local, object, uuid(F8FFCF2B-3AA4-4320-85C3-52A312BA9633), pointer_default(unique) +] +interface IJsDebugProperty : IUnknown +{ + // Get Information for this object + HRESULT GetPropertyInfo( + [in] UINT nRadix, + [out] JsDebugPropertyInfo* pPropertyInfo); + + // Get members + HRESULT GetMembers( + [in] JS_PROPERTY_MEMBERS members, + [out] IJsEnumDebugProperty** ppEnum); +}; + +// IJsEnumDebugProperty +[ + local, object, uuid(4092432F-2F0F-4FE1-B638-5B74A52CDCBE), pointer_default(unique) +] +interface IJsEnumDebugProperty : IUnknown +{ + // Read properties + HRESULT Next( + [in] ULONG count, + [out, size_is(count), length_is(*pActualCount)] IJsDebugProperty** ppDebugProperty, + [out] ULONG* pActualCount); + + // Get total count of properties + HRESULT GetCount( + [out] ULONG* pCount); +}; + +// Interface representing a breakpoint +[ + local, object, uuid(DF6773E3-ED8D-488B-8A3E-5812577D1542), pointer_default(unique) +] +interface IJsDebugBreakPoint: IUnknown +{ + // Determines if the breakpoint is enabled. + // Returns E_UNEXPECTED if called on a deleted breakpoint. + HRESULT IsEnabled([out] BOOL* pIsEnabled); + + // Enables the breakpoint + // Returns E_UNEXPECTED if called on a deleted breakpoint. + // Returns S_FALSE if called on an already enabled breapoint. + HRESULT Enable(); + + // Disables the breakpoint + // Returns E_UNEXPECTED if called on a deleted breakpoint. + // Returns S_FALSE if called on an already disabled breapoint. + HRESULT Disable(); + + // Deletes the breakpoint + // Returns S_FALSE if called on a deleted breakpoint. + HRESULT Delete(); + + // Returns the position of the statement where the breakpoint was bound. + // pDocumentId: Unique ID for a source document (pointer to the IDebugDocumentText) + // pCharacterOffset: The zero-based character offset from the start of the script. + // pStatementCharCount: the length of current statement, which starts at *pCharacterOffset, in characters. + HRESULT GetDocumentPosition( + [out] UINT64* pDocumentId, + [out] DWORD* pCharacterOffset, + [out] DWORD* pStatementCharCount); +} + +// Represents a stack frame. +// Used by IJsStackFrameEnumerator. +typedef struct +{ + UINT64 InstructionOffset; + UINT64 ReturnOffset; + UINT64 FrameOffset; + UINT64 StackOffset; +} JS_NATIVE_FRAME; + +// Implemented by debugger to provide stack unwinding support to jscript9diag. +[ + local, object, uuid(5E7DA34B-FB51-4791-ABE7-CB5BDF419755), pointer_default(unique) +] +interface IEnumJsStackFrames: IUnknown +{ + // Retrieves next cFrameCount frames into array provided by the caller. + HRESULT Next( + [in] ULONG cFrameCount, + [out, size_is(cFrameCount), length_is(*pcFetched)] JS_NATIVE_FRAME* pFrames, + [out] ULONG * pcFetched); + + // Reset to position before 1st element. + HRESULT Reset(void); +} + +[v1_enum] +typedef enum JsDebugReadMemoryFlags +{ + // Indicates that the caller wants the default behavior for ReadMemory. + None = 0x0, + // Indicates that the caller wants the read operation to succeed if only part of + // the memory read succeeded. If this is set, an E_JsDEBUG_INVALID_MEMORY_ADDRESS error + // will only be raised if 'Address' is invalid. If this flag is clear, a + // E_JsDEBUG_INVALID_MEMORY_ADDRESS error will be raised if any portion of the requested + // memory was unreadable. + JsDebugAllowPartialRead = 0x1 +} JsDebugReadMemoryFlags; + + +[ + local, object, uuid(53B28977-53A1-48E5-9000-5D0DFA893931), pointer_default(unique) +] +interface IJsDebugDataTarget: IUnknown +{ + // Read the memory of the target process. + // Address : [In] The base address from which to read the target process's + // memory. + // Flags : [In] Flags controlling the behavior of ReadMemory + // pBuffer : [In,Out] A buffer that receives the contents from the address + // space of the target process. On failure, the content of this buffer is + // unspecified. + // Size : [In] The number of bytes to be read from the process. + // pBytesRead : [Out] Indicates the number of bytes read from the + // target process. If JsDebugAllowPartialRead is clear, on success this + // value will always be exactly equal to the input size. If + // JsDebugAllowPartialRead is specified, on success, this value will be + // greater than zero. + // Return value : S_OK is returned on success, and failure codes are used for any + // error. E_JsDEBUG_INVALID_MEMORY_ADDRESS indicates that the address is not valid. See + // 'JsDebugAllowPartialRead' documentation for more information. + HRESULT ReadMemory( + [in] UINT64 address, + [in] JsDebugReadMemoryFlags flags, + [out, size_is(size), length_is(*pBytesRead)] BYTE* pBuffer, + [in] DWORD size, + [out] DWORD* pBytesRead); + + // Writes memory to the target process. Before data transfer occurs, the system + // verifies that all data in the base address and memory of the specified size is + // accessible for write access, and if it is not accessible, the function raises an + // E_JsDEBUG_INVALID_MEMORY_ADDRESS error. + // address : [In] The base address from which to write the target process's memory. + // pMemory : [In] Data to be written in the address space of the specified process. + HRESULT WriteMemory( + [in] UINT64 address, + [in, size_is(size)] CONST BYTE* pMemory, + [in] DWORD size); + + + // Reserves and/or commits a region of memory within the virtual address space of the + // target process. The function initializes the memory it allocates to zero, unless + // MEM_RESET is used. For additional information, see the VirtualAlloc Win32 API in + // MSDN. + // address : [In] Address within the target process where the memory should + // be committed or reserved. This value is typically zero, in which case the system + // chooses an address. + // size : [In] The size of the region of memory to allocate, in bytes. The + // system will automatically round up to the next page boundary. + // allocationType : [In] Indicates the type of allocation to perform. This is + // typically MEM_COMMIT | MEM_RESERVE (0x3000) which reserves and commits an + // allocation in one step. + // pageProtection : [In] The memory protection for the region of pages to be + // allocated. If the pages are being committed, you can specify any one of the memory + // protection constants (ex: PAGE_READWRITE, PAGE_EXECUTE). + // pAllocatedAddress: [Out] Base address of the allocated region of pages. + HRESULT AllocateVirtualMemory( + [in] UINT64 address, + [in] DWORD size, + [in] DWORD allocationType, + [in] DWORD pageProtection, + [out] UINT64* pAllocatedAddress); + + // Releases and/or decommits a region of memory within the virtual address space of + // the target process. For additional information, see the VirtualFree Win32 API in + // MSDN. + // address : [In] Address within the target process where the memory should + // be freed. + // size : [In] Number of bytes to decommit. To release a region of memory, + // this value must be zero. + // freeType : [In] Indicates the type of free operation to perform. This is + // typically MEM_RELEASE (0x8000), which releases the specified region of pages. + // After the operation, the pages are in the free state. MEM_DECOMMIT (0x4000) can be + // used instead to decommit the pages without releasing them. + HRESULT FreeVirtualMemory( + [in] UINT64 address, + [in] DWORD size, + [in] DWORD freeType); + + + // Retrieves the value in the debuggee thread's thread local storage (TLS) slot for + // the specified TLS index. Each thread of a process has its own slot for each TLS + // index. + // threadId : [In] Thread running in the target process to read from + // tlsIndex : [In] The TLS index that was allocated when the target process + // called the TlsAlloc function. + // pValue : [Out] The pointer-sized value which was stored in the thread's + // TLS slot. If the target thread is 32-bit, the upper 32-bits of this value will be + // zero. + HRESULT GetTlsValue( + [in] DWORD threadId, + [in] UINT32 tlsIndex, + [out] UINT64* pValue + ); + + // Reads a BSTR from the debug target + // E_JsDEBUG_INVALID_MEMORY_ADDRESS indicates that the address is not valid. + HRESULT ReadBSTR( + [in] UINT64 address, + [out] BSTR* pString + ); + + // Read at most maxCharacters from the target. + // characerSize: size of each character in the string + // maxCharacters should be reasonable. Any request for more than 128MB of memory will fail. If the string is larger than + // maxCharacters, the result string will be truncated after maxCharacters. + // Returns S_FALSE if truncated + // E_JsDEBUG_INVALID_MEMORY_ADDRESS indicates that the address is not valid. + HRESULT ReadNullTerminatedString( + [in] UINT64 address, + [in] UINT16 characterSize, + [in] UINT32 maxCharacters, + [out] BSTR* pString + ); + + // Creates enumerator for stack frames + HRESULT CreateStackFrameEnumerator( + [in] DWORD threadId, + [out] IEnumJsStackFrames** ppEnumerator); + + // Retrieves context for given thread. + // Used by JS on x86/amd64 to get initial top frame base offset. + HRESULT GetThreadContext( + [in] DWORD threadId, + // This is same as the ContextFlags field of CONTEXT (see winnt.h, search for CONTEXT_ALL). + [in] ULONG32 contextFlags, + // The size of the buffer specified by pContext. + [in] ULONG32 contextSize, + // Receives platform-specific CONTEXT structure into buffer specified by pContext. + [out, size_is(contextSize)] void* pContext); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/jsrt.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jsrt.h new file mode 100644 index 0000000000000000000000000000000000000000..680ee2096d9c75e57c6ee754c004d3ff878d4dee --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jsrt.h @@ -0,0 +1,40 @@ +// Copyright (C) Microsoft. All rights reserved. + +/// \mainpage Chakra Hosting API Reference +/// +/// Chakra is Microsoft's JavaScript engine. It is an integral part of Internet Explorer but can +/// also be hosted independently by other applications. This reference describes the APIs available +/// to applications to host Chakra. +/// +/// As of Windows 10, Chakra is forked into two binary implementations. The binary in jscript9.dll +/// is frozen at Internet Explorer 11, plus security and other servicing fixes, but the underlying +/// platform is the same. The binary in chakra.dll is considered "edge-mode," and is a +/// continuously-updating platform, consistent with the evergreen browsers environment. +/// +/// To compile using edge-mode, you must #define USE_EDGEMODE_JSRT before including this header +/// file in your project, and link against chakrart.lib. If you want to continue using the +/// jscript9.dll implementation, do not define the edge-mode macro, and link against jsrt.lib. + +/// \file +/// \brief The base Chakra hosting API. +/// +/// This file contains a flat C API layer. This is the API exported by jscript9.dll. + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _JSRT_ +#define _JSRT_ + +#if NTDDI_VERSION >= NTDDI_WIN7 + +#ifdef USE_EDGEMODE_JSRT +#include +#else +#include +#endif // USE_EDGEMODE_JSRT + +#endif // NTDDI_VERSION + +#endif // _JSRT_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/jsrt9.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jsrt9.h new file mode 100644 index 0000000000000000000000000000000000000000..6038fa57707c9e250e7328b59db327e87fb9c04e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/jsrt9.h @@ -0,0 +1,2040 @@ +// Copyright (C) Microsoft. All rights reserved. + +/// \mainpage Chakra Hosting API Reference +/// +/// Chakra is Microsoft's JavaScript engine. It is an integral part of Internet Explorer but can +/// also be hosted independently by other applications. This reference describes the APIs available +/// to applications to host Chakra. + +/// \file +/// \brief The base Chakra hosting API. +/// +/// This file contains a flat C API layer. This is the API exported by jscript9.dll. + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _JSRT_ +#error "You should include instead of or ." +#endif + +#if defined(_CHAKRART_H_) || defined(USE_EDGEMODE_JSRT) +#error "It is invalid to include both jscript9-mode and edge-mode JsRT headers. To target edge-mode, use #define USE_EDGEMODE_JSRT and then include jsrt.h, ensuring that you link against chakrart.lib. To use jscript9 mode, simply include jsrt.h and link against jsrt.lib." +#endif + +#ifndef _JSRT9_H_ +#define _JSRT9_H_ + +#if NTDDI_VERSION >= NTDDI_WIN7 + +#include +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + ///

+ /// An error code returned from a Chakra hosting API. + /// + typedef _Return_type_success_(return == 0) enum JsErrorCode : unsigned int + { + /// + /// Success error code. + /// + JsNoError = 0, + + /// + /// Category of errors that relates to incorrect usage of the API itself. + /// + JsErrorCategoryUsage = 0x10000, + /// + /// An argument to a hosting API was invalid. + /// + JsErrorInvalidArgument, + /// + /// An argument to a hosting API was null in a context where null is not allowed. + /// + JsErrorNullArgument, + /// + /// The hosting API requires that a context be current, but there is no current context. + /// + JsErrorNoCurrentContext, + /// + /// The engine is in an exception state and no APIs can be called until the exception is + /// cleared. + /// + JsErrorInExceptionState, + /// + /// A hosting API is not yet implemented. + /// + JsErrorNotImplemented, + /// + /// A hosting API was called on the wrong thread. + /// + JsErrorWrongThread, + /// + /// A runtime that is still in use cannot be disposed. + /// + JsErrorRuntimeInUse, + /// + /// A bad serialized script was used, or the serialized script was serialized by a + /// different version of the Chakra engine. + /// + JsErrorBadSerializedScript, + /// + /// The runtime is in a disabled state. + /// + JsErrorInDisabledState, + /// + /// Runtime does not support reliable script interruption. + /// + JsErrorCannotDisableExecution, + /// + /// A heap enumeration is currently underway in the script context. + /// + JsErrorHeapEnumInProgress, + /// + /// A hosting API that operates on object values was called with a non-object value. + /// + JsErrorArgumentNotObject, + /// + /// A script context is in the middle of a profile callback. + /// + JsErrorInProfileCallback, + /// + /// A thread service callback is currently underway. + /// + JsErrorInThreadServiceCallback, + /// + /// Scripts cannot be serialized in debug contexts. + /// + JsErrorCannotSerializeDebugScript, + /// + /// The context cannot be put into a debug state because it is already in a debug state. + /// + JsErrorAlreadyDebuggingContext, + /// + /// The context cannot start profiling because it is already profiling. + /// + JsErrorAlreadyProfilingContext, + /// + /// Idle notification given when the host did not enable idle processing. + /// + JsErrorIdleNotEnabled, + + /// + /// Category of errors that relates to errors occurring within the engine itself. + /// + JsErrorCategoryEngine = 0x20000, + /// + /// The Chakra engine has run out of memory. + /// + JsErrorOutOfMemory, + + /// + /// Category of errors that relates to errors in a script. + /// + JsErrorCategoryScript = 0x30000, + /// + /// A JavaScript exception occurred while running a script. + /// + JsErrorScriptException, + /// + /// JavaScript failed to compile. + /// + JsErrorScriptCompile, + /// + /// A script was terminated due to a request to suspend a runtime. + /// + JsErrorScriptTerminated, + /// + /// A script was terminated because it tried to use eval or function and eval + /// was disabled. + /// + JsErrorScriptEvalDisabled, + + /// + /// Category of errors that are fatal and signify failure of the engine. + /// + JsErrorCategoryFatal = 0x40000, + /// + /// A fatal error in the engine has occurred. + /// + JsErrorFatal, + }JsErrorCode; + + /// + /// A handle to a Chakra runtime. + /// + /// + /// + /// Each Chakra runtime has its own independent execution engine, JIT compiler, and garbage + /// collected heap. As such, each runtime is completely isolated from other runtimes. + /// + /// + /// Runtimes can be used on any thread, but only one thread can call into a runtime at any + /// time. + /// + /// + /// NOTE: A JsRuntimeHandle, unlike other object references in the Chakra hosting API, + /// is not garbage collected since it contains the garbage collected heap itself. A runtime + /// will continue to exist until JsDisposeRuntime is called. + /// + /// + typedef void *JsRuntimeHandle; + + /// + /// An invalid runtime handle. + /// + const JsRuntimeHandle JS_INVALID_RUNTIME_HANDLE = NULL; + + /// + /// A reference to an object owned by the Chakra garbage collector. + /// + /// + /// A Chakra runtime will automatically track JsRef references as long as they are + /// stored in local variables or in parameters (i.e. on the stack). Storing a JsRef + /// somewhere other than on the stack requires calling JsAddRef and JsRelease to + /// manage the lifetime of the object, otherwise the garbage collector may free the object + /// while it is still in use. + /// + typedef void *JsRef; + + /// + /// An invalid reference. + /// + const JsRef JS_INVALID_REFERENCE = NULL; + + /// + /// A reference to a script context. + /// + /// + /// + /// Each script context contains its own global object, distinct from the global object in + /// other script contexts. + /// + /// + /// Many Chakra hosting APIs require an "active" script context, which can be set using + /// JsSetCurrentContext. Chakra hosting APIs that require a current context to be set + /// will note that explicitly in their documentation. + /// + /// + typedef JsRef JsContextRef; + + /// + /// A reference to a JavaScript value. + /// + /// + /// A JavaScript value is one of the following types of values: undefined, null, Boolean, + /// string, number, or object. + /// + typedef JsRef JsValueRef; + + /// + /// A cookie that identifies a script for debugging purposes. + /// + typedef DWORD_PTR JsSourceContext; + + /// + /// An empty source context. + /// + const JsSourceContext JS_SOURCE_CONTEXT_NONE = (JsSourceContext)-1; + + /// + /// A property identifier. + /// + /// + /// Property identifiers are used to refer to properties of JavaScript objects instead of using + /// strings. + /// + typedef JsRef JsPropertyIdRef; + + /// + /// Attributes of a runtime. + /// + typedef enum JsRuntimeAttributes + { + /// + /// No special attributes. + /// + JsRuntimeAttributeNone = 0x00000000, + /// + /// The runtime will not do any work (such as garbage collection) on background threads. + /// + JsRuntimeAttributeDisableBackgroundWork = 0x00000001, + /// + /// The runtime should support reliable script interruption. This increases the number of + /// places where the runtime will check for a script interrupt request at the cost of a + /// small amount of runtime performance. + /// + JsRuntimeAttributeAllowScriptInterrupt = 0x00000002, + /// + /// Host will call JsIdle, so enable idle processing. Otherwise, the runtime will + /// manage memory slightly more aggressively. + /// + JsRuntimeAttributeEnableIdleProcessing = 0x00000004, + /// + /// Runtime will not generate native code. + /// + JsRuntimeAttributeDisableNativeCodeGeneration = 0x00000008, + /// + /// Using eval or function constructor will throw an exception. + /// + JsRuntimeAttributeDisableEval = 0x00000010, + }JsRuntimeAttributes; + + /// + /// Allocation callback event type. + /// + typedef enum JsMemoryEventType + { + /// + /// Indicates a request for memory allocation. + /// + JsMemoryAllocate = 0, + /// + /// Indicates a memory freeing event. + /// + JsMemoryFree = 1, + /// + /// Indicates a failed allocation event. + /// + JsMemoryFailure = 2 + }JsMemoryEventType; + + /// + /// User implemented callback routine for memory allocation events + /// + /// + /// Use JsSetRuntimeMemoryAllocationCallback to register this callback. + /// + /// + /// The state passed to JsSetRuntimeMemoryAllocationCallback. + /// + /// The type of type allocation event. + /// The size of the allocation. + /// + /// For the JsMemoryAllocate event, returning true allows the runtime to continue + /// with the allocation. Returning false indicates the allocation request is rejected. The + /// return value is ignored for other allocation events. + /// + typedef bool (CALLBACK * JsMemoryAllocationCallback)(_In_opt_ void *callbackState, _In_ JsMemoryEventType allocationEvent, _In_ size_t allocationSize); + + /// + /// A callback called before collection. + /// + /// + /// Use JsSetBeforeCollectCallback to register this callback. + /// + /// The state passed to JsSetBeforeCollectCallback. + typedef void (CALLBACK *JsBeforeCollectCallback)(_In_opt_ void *callbackState); + + /// + /// A background work item callback. + /// + /// + /// This is passed to the host's thread service (if provided) to allow the host to + /// invoke the work item callback on the background thread of its choice. + /// + /// Data argument passed to the thread service. + typedef void (CALLBACK *JsBackgroundWorkItemCallback)(_In_opt_ void *callbackState); + + /// + /// A thread service callback. + /// + /// + /// The host can specify a background thread service when calling JsCreateRuntime. If + /// specified, then background work items will be passed to the host using this callback. The + /// host is expected to either begin executing the background work item immediately and return + /// true or return false and the runtime will handle the work item in-thread. + /// + /// The callback for the background work item. + /// The data argument to be passed to the callback. + typedef bool (CALLBACK *JsThreadServiceCallback)(_In_ JsBackgroundWorkItemCallback callback, _In_opt_ void *callbackState); + + /// + /// Version of the runtime. + /// + typedef enum JsRuntimeVersion + { + /// + /// Create runtime with IE10 version. + /// + JsRuntimeVersion10 = 0, + /// + /// Create runtime with IE11 version. + /// + JsRuntimeVersion11 = 1, + }JsRuntimeVersion; + + /// + /// Create runtime with highest version present on the machine at runtime. + /// + __declspec(deprecated("JsRuntimeVersionEdge is frozen at runtime version 11 when including the jscript9-mode JavaScript Runtime header. To opt into true edge-mode, define USE_EDGEMODE_JSRT before including jsrt.h. For more information, go to https://go.microsoft.com/fwlink/?LinkId=522493")) const JsRuntimeVersion JsRuntimeVersionEdge = (JsRuntimeVersion)-1; + + /// + /// Creates a new runtime. + /// + /// The attributes of the runtime to be created. + /// The version of the runtime to be created. + /// The thread service for the runtime. Can be null. + /// The runtime created. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateRuntime( + _In_ JsRuntimeAttributes attributes, + _In_ JsRuntimeVersion runtimeVersion, + _In_opt_ JsThreadServiceCallback threadService, + _Out_ JsRuntimeHandle *runtime); + + /// + /// Performs a full garbage collection. + /// + /// The runtime in which the garbage collection will be performed. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCollectGarbage( + _In_ JsRuntimeHandle runtime); + + /// + /// Disposes a runtime. + /// + /// + /// Once a runtime has been disposed, all resources owned by it are invalid and cannot be used. + /// If the runtime is active (i.e. it is set to be current on a particular thread), it cannot + /// be disposed. + /// + /// The runtime to dispose. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDisposeRuntime( + _In_ JsRuntimeHandle runtime); + + /// + /// Gets the current memory usage for a runtime. + /// + /// + /// Memory usage can be always be retrieved, regardless of whether or not the runtime is active + /// on another thread. + /// + /// The runtime whose memory usage is to be retrieved. + /// The runtime's current memory usage, in bytes. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetRuntimeMemoryUsage( + _In_ JsRuntimeHandle runtime, + _Out_ size_t *memoryUsage); + + /// + /// Gets the current memory limit for a runtime. + /// + /// + /// The memory limit of a runtime can be always be retrieved, regardless of whether or not the + /// runtime is active on another thread. + /// + /// The runtime whose memory limit is to be retrieved. + /// + /// The runtime's current memory limit, in bytes, or -1 if no limit has been set. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetRuntimeMemoryLimit( + _In_ JsRuntimeHandle runtime, + _Out_ size_t *memoryLimit); + + /// + /// Sets the current memory limit for a runtime. + /// + /// + /// + /// A memory limit will cause any operation which exceeds the limit to fail with an "out of + /// memory" error. Setting a runtime's memory limit to -1 means that the runtime has no memory + /// limit. New runtimes default to having no memory limit. If the new memory limit exceeds + /// current usage, the call will succeed and any future allocations in this runtime will fail + /// until the runtime's memory usage drops below the limit. + /// + /// + /// A runtime's memory limit can be always be set, regardless of whether or not the runtime is + /// active on another thread. + /// + /// + /// The runtime whose memory limit is to be set. + /// + /// The new runtime memory limit, in bytes, or -1 for no memory limit. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetRuntimeMemoryLimit( + _In_ JsRuntimeHandle runtime, + _In_ size_t memoryLimit); + + /// + /// Sets a memory allocation callback for specified runtime + /// + /// + /// + /// Registering a memory allocation callback will cause the runtime to call back to the host + /// whenever it acquires memory from, or releases memory to, the OS. The callback routine is + /// called before the runtime memory manager allocates a block of memory. The allocation will + /// be rejected if the callback returns false. The runtime memory manager will also invoke the + /// callback routine after freeing a block of memory, as well as after allocation failures. + /// + /// + /// The callback is invoked on the current runtime execution thread, therefore execution is + /// blocked until the callback completes. + /// + /// + /// The return value of the callback is not stored; previously rejected allocations will not + /// prevent the runtime from invoking the callback again later for new memory allocations. + /// + /// + /// The runtime for which to register the allocation callback. + /// + /// User provided state that will be passed back to the callback. + /// + /// + /// Memory allocation callback to be called for memory allocation events. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetRuntimeMemoryAllocationCallback( + _In_ JsRuntimeHandle runtime, + _In_opt_ void *callbackState, + _In_ JsMemoryAllocationCallback allocationCallback); + + /// + /// Sets a callback function that is called by the runtime before garbage collection. + /// + /// + /// + /// The callback is invoked on the current runtime execution thread, therefore execution is + /// blocked until the callback completes. + /// + /// + /// The callback can be used by hosts to prepare for garbage collection. For example, by + /// releasing unnecessary references on Chakra objects. + /// + /// + /// The runtime for which to register the allocation callback. + /// + /// User provided state that will be passed back to the callback. + /// + /// The callback function being set. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetRuntimeBeforeCollectCallback( + _In_ JsRuntimeHandle runtime, + _In_opt_ void *callbackState, + _In_ JsBeforeCollectCallback beforeCollectCallback); + + /// + /// Adds a reference to a garbage collected object. + /// + /// + /// This only needs to be called on JsRef handles that are not going to be stored + /// somewhere on the stack. Calling JsAddRef ensures that the object the JsRef + /// refers to will not be freed until JsRelease is called. + /// + /// The object to add a reference to. + /// The object's new reference count (can pass in null). + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsAddRef( + _In_ JsRef ref, + _Out_opt_ unsigned int *count); + + /// + /// Releases a reference to a garbage collected object. + /// + /// + /// Removes a reference to a JsRef handle that was created by JsAddRef. + /// + /// The object to add a reference to. + /// The object's new reference count (can pass in null). + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsRelease( + _In_ JsRef ref, + _Out_opt_ unsigned int *count); + + /// + /// Creates a script context for running scripts. + /// + /// + /// Each script context has its own global object that is isolated from all other script + /// contexts. + /// + /// The runtime the script context is being created in. + /// + /// The debug application to use for debugging. This parameter can be null, in which case + /// debugging is not enabled for the context. + /// + /// The created script context. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateContext( + _In_ JsRuntimeHandle runtime, + _In_ IDebugApplication *debugApplication, + _Out_ JsContextRef *newContext); + + /// + /// Gets the current script context on the thread. + /// + /// + /// The current script context on the thread, null if there is no current script context. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetCurrentContext( + _Out_ JsContextRef *currentContext); + + /// + /// Sets the current script context on the thread. + /// + /// The script context to make current. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetCurrentContext( + _In_ JsContextRef context); + + /// + /// Gets the runtime that the context belongs to. + /// + /// The context to get the runtime from. + /// The runtime the context belongs to. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetRuntime( + _In_ JsContextRef context, + _Out_ JsRuntimeHandle *runtime); + + /// + /// Starts debugging in the current context. + /// + /// The debug application to use for debugging. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsStartDebugging( + _In_ IDebugApplication *debugApplication); + + + + /// + /// Tells the runtime to do any idle processing it need to do. + /// + /// + /// + /// If idle processing has been enabled for the current runtime, calling JsIdle will + /// inform the current runtime that the host is idle and that the runtime can perform + /// memory cleanup tasks. + /// + /// + /// JsIdle can also return the number of system ticks until there will be more idle work + /// for the runtime to do. Calling JsIdle before this number of ticks has passed will do + /// no work. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// The next system tick when there will be more idle work to do. Can be null. Returns the + /// maximum number of ticks if there no upcoming idle work to do. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsIdle( + _Out_opt_ unsigned int *nextIdleTick); + + /// + /// Parses a script and returns a function representing the script. + /// + /// + /// Requires an active script context. + /// + /// The script to parse. + /// + /// A cookie identifying the script that can be used by debuggable script contexts. + /// + /// The location the script came from. + /// A function representing the script code. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsParseScript( + _In_z_ const wchar_t *script, + _In_ JsSourceContext sourceContext, + _In_z_ const wchar_t *sourceUrl, + _Out_ JsValueRef *result); + + /// + /// Executes a script. + /// + /// + /// Requires an active script context. + /// + /// The script to run. + /// + /// A cookie identifying the script that can be used by debuggable script contexts. + /// + /// The location the script came from. + /// The result of the script, if any. This parameter can be null. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsRunScript( + _In_z_ const wchar_t *script, + _In_ JsSourceContext sourceContext, + _In_z_ const wchar_t *sourceUrl, + _Out_ JsValueRef *result); + + /// + /// Serializes a parsed script to a buffer than can be reused. + /// + /// + /// + /// JsSerializeScript parses a script and then stores the parsed form of the script in a + /// runtime-independent format. The serialized script then can be deserialized in any + /// runtime without requiring the script to be re-parsed. + /// + /// + /// Requires an active script context. + /// + /// + /// The script to serialize. + /// The buffer to put the serialized script into. Can be null. + /// + /// On entry, the size of the buffer, in bytes; on exit, the size of the buffer, in bytes, + /// required to hold the serialized script. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSerializeScript( + _In_z_ const wchar_t *script, + _Out_writes_to_opt_(*bufferSize, *bufferSize) BYTE *buffer, + _Inout_ unsigned long *bufferSize); + + /// + /// Parses a serialized script and returns a function representing the script. + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The runtime will hold on to the buffer until all instances of any functions created from + /// the buffer are garbage collected. + /// + /// + /// The script to parse. + /// The serialized script. + /// + /// A cookie identifying the script that can be used by debuggable script contexts. + /// + /// The location the script came from. + /// A function representing the script code. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsParseSerializedScript( + _In_z_ const wchar_t *script, + _In_ BYTE *buffer, + _In_ JsSourceContext sourceContext, + _In_z_ const wchar_t *sourceUrl, + _Out_ JsValueRef *result); + + /// + /// Runs a serialized script. + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The runtime will hold on to the buffer until all instances of any functions created from + /// the buffer are garbage collected. + /// + /// + /// The source code of the serialized script. + /// The serialized script. + /// + /// A cookie identifying the script that can be used by debuggable script contexts. + /// + /// The location the script came from. + /// + /// The result of running the script, if any. This parameter can be null. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsRunSerializedScript( + _In_z_ const wchar_t *script, + _In_ BYTE *buffer, + _In_ JsSourceContext sourceContext, + _In_z_ const wchar_t *sourceUrl, + _Out_ JsValueRef *result); + + /// + /// Gets the property ID associated with the name. + /// + /// + /// + /// Property IDs are specific to a context and cannot be used across contexts. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// The name of the property ID to get or create. The name may consist of only digits. + /// + /// The property ID in this runtime for the given name. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetPropertyIdFromName( + _In_z_ const wchar_t *name, + _Out_ JsPropertyIdRef *propertyId); + + /// + /// Gets the name associated with the property ID. + /// + /// + /// + /// Requires an active script context. + /// + /// + /// The returned buffer is valid as long as the runtime is alive and cannot be used + /// once the runtime has been disposed. + /// + /// + /// The property ID to get the name of. + /// The name associated with the property ID. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetPropertyNameFromId( + _In_ JsPropertyIdRef propertyId, + _Outptr_result_z_ const wchar_t **name); + + /// + /// Gets the value of undefined in the current script context. + /// + /// + /// Requires an active script context. + /// + /// The undefined value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetUndefinedValue( + _Out_ JsValueRef *undefinedValue); + + /// + /// Gets the value of null in the current script context. + /// + /// + /// Requires an active script context. + /// + /// The null value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetNullValue( + _Out_ JsValueRef *nullValue); + + /// + /// Gets the value of true in the current script context. + /// + /// + /// Requires an active script context. + /// + /// The true value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetTrueValue( + _Out_ JsValueRef *trueValue); + + /// + /// Gets the value of false in the current script context. + /// + /// + /// Requires an active script context. + /// + /// The false value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetFalseValue( + _Out_ JsValueRef *falseValue); + + /// + /// Creates a Boolean value from a bool value. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsBoolToBoolean( + _In_ bool value, + _Out_ JsValueRef *booleanValue); + + /// + /// Retrieves the bool value of a Boolean value. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsBooleanToBool( + _In_ JsValueRef value, + _Out_ bool *boolValue); + + /// + /// Converts the value to Boolean using standard JavaScript semantics. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsConvertValueToBoolean( + _In_ JsValueRef value, + _Out_ JsValueRef *booleanValue); + + /// + /// The JavaScript type of a JsValueRef. + /// + typedef enum JsValueType + { + /// + /// The value is the undefined value. + /// + JsUndefined = 0, + /// + /// The value is the null value. + /// + JsNull = 1, + /// + /// The value is a JavaScript number value. + /// + JsNumber = 2, + /// + /// The value is a JavaScript string value. + /// + JsString = 3, + /// + /// The value is a JavaScript Boolean value. + /// + JsBoolean = 4, + /// + /// The value is a JavaScript object value. + /// + JsObject = 5, + /// + /// The value is a JavaScript function object value. + /// + JsFunction = 6, + /// + /// The value is a JavaScript error object value. + /// + JsError = 7, + /// + /// The value is a JavaScript array object value. + /// + JsArray = 8, + }JsValueType; + + /// + /// Gets the JavaScript type of a JsValueRef. + /// + /// + /// Requires an active script context. + /// + /// The value whose type is to be returned. + /// The type of the value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetValueType( + _In_ JsValueRef value, + _Out_ JsValueType *type); + + /// + /// Creates a number value from a double value. + /// + /// + /// Requires an active script context. + /// + /// The double to convert to a number value. + /// The new number value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDoubleToNumber( + _In_ double doubleValue, + _Out_ JsValueRef *value); + + /// + /// Creates a number value from an int value. + /// + /// + /// Requires an active script context. + /// + /// The int to convert to a number value. + /// The new number value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsIntToNumber( + _In_ int intValue, + _Out_ JsValueRef *value); + + /// + /// Retrieves the double value of a number value. + /// + /// + /// + /// This function retrieves the value of a number value. It will fail with + /// JsErrorInvalidArgument if the type of the value is not number. + /// + /// + /// Requires an active script context. + /// + /// + /// The number value to convert to a double value. + /// The double value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsNumberToDouble( + _In_ JsValueRef value, + _Out_ double *doubleValue); + + /// + /// Converts the value to number using standard JavaScript semantics. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsConvertValueToNumber( + _In_ JsValueRef value, + _Out_ JsValueRef *numberValue); + + /// + /// Gets the length of a string value. + /// + /// + /// Requires an active script context. + /// + /// The string value to get the length of. + /// The length of the string. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetStringLength( + _In_ JsValueRef stringValue, + _Out_ int *length); + + /// + /// Creates a string value from a string pointer. + /// + /// + /// Requires an active script context. + /// + /// The string pointer to convert to a string value. + /// The length of the string to convert. + /// The new string value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsPointerToString( + _In_reads_(stringLength) const wchar_t *stringValue, + _In_ size_t stringLength, + _Out_ JsValueRef *value); + + /// + /// Retrieves the string pointer of a string value. + /// + /// + /// + /// This function retrieves the string pointer of a string value. It will fail with + /// JsErrorInvalidArgument if the type of the value is not string. The lifetime + /// of the string returned will be the same as the lifetime of the value it came from, however + /// the string pointer is not considered a reference to the value (and so will not keep it + /// from being collected). + /// + /// + /// Requires an active script context. + /// + /// + /// The string value to convert to a string pointer. + /// The string pointer. + /// The length of the string. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsStringToPointer( + _In_ JsValueRef value, + _Outptr_result_buffer_(*stringLength) const wchar_t **stringValue, + _Out_ size_t *stringLength); + + /// + /// Converts the value to string using standard JavaScript semantics. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsConvertValueToString( + _In_ JsValueRef value, + _Out_ JsValueRef *stringValue); + + /// + /// Creates a JavaScript value that is a projection of the passed in VARIANT. + /// + /// + /// + /// The projected value can be used by script to call a COM automation object from script. + /// Hosts are responsible for enforcing COM threading rules. + /// + /// + /// Requires an active script context. + /// + /// + /// A VARIANT to be projected. + /// A JavaScript value that is a projection of the VARIANT. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsVariantToValue( + _In_ VARIANT *variant, + _Out_ JsValueRef *value); + + /// + /// Initializes the passed in VARIANT as a projection of a JavaScript value. + /// + /// + /// + /// The projection VARIANT can be used by COM automation clients to call into the + /// projected JavaScript object. + /// + /// + /// Requires an active script context. + /// + /// + /// A JavaScript value to project as a VARIANT. + /// + /// A pointer to a VARIANT struct that will be initialized as a projection. + /// + STDAPI_(JsErrorCode) + JsValueToVariant( + _In_ JsValueRef object, + _Out_ VARIANT *variant); + + /// + /// Gets the global object in the current script context. + /// + /// + /// Requires an active script context. + /// + /// The global object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetGlobalObject( + _Out_ JsValueRef *globalObject); + + /// + /// Creates a new object. + /// + /// + /// Requires an active script context. + /// + /// The new object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateObject( + _Out_ JsValueRef *object); + + /// + /// A finalizer callback. + /// + /// + /// The external data that was passed in when creating the object being finalized. + /// + typedef void (CALLBACK *JsFinalizeCallback)(_In_opt_ void *data); + + /// + /// Creates a new object that stores some external data. + /// + /// + /// Requires an active script context. + /// + /// External data that the object will represent. May be null. + /// + /// A callback for when the object is finalized. May be null. + /// + /// The new object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateExternalObject( + _In_opt_ void *data, + _In_opt_ JsFinalizeCallback finalizeCallback, + _Out_ JsValueRef *object); + + /// + /// Converts the value to object using standard JavaScript semantics. + /// + /// + /// Requires an active script context. + /// + /// The value to be converted. + /// The converted value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsConvertValueToObject( + _In_ JsValueRef value, + _Out_ JsValueRef *object); + + /// + /// Returns the prototype of an object. + /// + /// + /// Requires an active script context. + /// + /// The object whose prototype is to be returned. + /// The object's prototype. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetPrototype( + _In_ JsValueRef object, + _Out_ JsValueRef *prototypeObject); + + /// + /// Sets the prototype of an object. + /// + /// + /// Requires an active script context. + /// + /// The object whose prototype is to be changed. + /// The object's new prototype. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetPrototype( + _In_ JsValueRef object, + _In_ JsValueRef prototypeObject); + + /// + /// Returns a value that indicates whether an object is extensible or not. + /// + /// + /// Requires an active script context. + /// + /// The object to test. + /// Whether the object is extensible or not. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetExtensionAllowed( + _In_ JsValueRef object, + _Out_ bool *value); + + /// + /// Makes an object non-extensible. + /// + /// + /// Requires an active script context. + /// + /// The object to make non-extensible. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsPreventExtension( + _In_ JsValueRef object); + + /// + /// Gets an object's property. + /// + /// + /// Requires an active script context. + /// + /// The object that contains the property. + /// The ID of the property. + /// The value of the property. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetProperty( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _Out_ JsValueRef *value); + + /// + /// Gets a property descriptor for an object's own property. + /// + /// + /// Requires an active script context. + /// + /// The object that has the property. + /// The ID of the property. + /// The property descriptor. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetOwnPropertyDescriptor( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _Out_ JsValueRef *propertyDescriptor); + + /// + /// Gets the list of all properties on the object. + /// + /// + /// Requires an active script context. + /// + /// The object from which to get the property names. + /// An array of property names. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetOwnPropertyNames( + _In_ JsValueRef object, + _Out_ JsValueRef *propertyNames); + + /// + /// Puts an object's property. + /// + /// + /// Requires an active script context. + /// + /// The object that contains the property. + /// The ID of the property. + /// The new value of the property. + /// The property set should follow strict mode rules. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetProperty( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _In_ JsValueRef value, + _In_ bool useStrictRules); + + /// + /// Determines whether an object has a property. + /// + /// + /// Requires an active script context. + /// + /// The object that may contain the property. + /// The ID of the property. + /// Whether the object (or a prototype) has the property. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsHasProperty( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _Out_ bool *hasProperty); + + /// + /// Deletes an object's property. + /// + /// + /// Requires an active script context. + /// + /// The object that contains the property. + /// The ID of the property. + /// Whether the property was deleted. + /// The property set should follow strict mode rules. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDeleteProperty( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _In_ bool useStrictRules, + _Out_ JsValueRef *result); + + /// + /// Defines a new object's own property from a property descriptor. + /// + /// + /// Requires an active script context. + /// + /// The object that has the property. + /// The ID of the property. + /// The property descriptor. + /// Whether the property was defined. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDefineProperty( + _In_ JsValueRef object, + _In_ JsPropertyIdRef propertyId, + _In_ JsValueRef propertyDescriptor, + _Out_ bool *result); + + /// + /// Tests whether an object has a value at the specified index. + /// + /// + /// Requires an active script context. + /// + /// The object to operate on. + /// The index to test. + /// Whether the object has an value at the specified index. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsHasIndexedProperty( + _In_ JsValueRef object, + _In_ JsValueRef index, + _Out_ bool *result); + + /// + /// Retrieve the value at the specified index of an object. + /// + /// + /// Requires an active script context. + /// + /// The object to operate on. + /// The index to retrieve. + /// The retrieved value. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetIndexedProperty( + _In_ JsValueRef object, + _In_ JsValueRef index, + _Out_ JsValueRef *result); + + /// + /// Set the value at the specified index of an object. + /// + /// + /// Requires an active script context. + /// + /// The object to operate on. + /// The index to set. + /// The value to set. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetIndexedProperty( + _In_ JsValueRef object, + _In_ JsValueRef index, + _In_ JsValueRef value); + + /// + /// Delete the value at the specified index of an object. + /// + /// + /// Requires an active script context. + /// + /// The object to operate on. + /// The index to delete. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDeleteIndexedProperty( + _In_ JsValueRef object, + _In_ JsValueRef index); + + /// + /// Compare two JavaScript values for equality. + /// + /// + /// + /// This function is equivalent to the == operator in Javascript. + /// + /// + /// Requires an active script context. + /// + /// + /// The first object to compare. + /// The second object to compare. + /// Whether the values are equal. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsEquals( + _In_ JsValueRef object1, + _In_ JsValueRef object2, + _Out_ bool *result); + + /// + /// Compare two JavaScript values for strict equality. + /// + /// + /// + /// This function is equivalent to the === operator in Javascript. + /// + /// + /// Requires an active script context. + /// + /// + /// The first object to compare. + /// The second object to compare. + /// Whether the values are strictly equal. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsStrictEquals( + _In_ JsValueRef object1, + _In_ JsValueRef object2, + _Out_ bool *result); + + /// + /// Determines whether an object is an external object. + /// + /// + /// Requires an active script context. + /// + /// The object. + /// Whether the object is an external object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsHasExternalData( + _In_ JsValueRef object, + _Out_ bool *value); + + /// + /// Retrieves the data from an external object. + /// + /// + /// Requires an active script context. + /// + /// The external object. + /// + /// The external data stored in the object. Can be null if no external data is stored in the + /// object. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetExternalData( + _In_ JsValueRef object, + _Out_ void **externalData); + + /// + /// Sets the external data on an external object. + /// + /// + /// Requires an active script context. + /// + /// The external object. + /// + /// The external data to be stored in the object. Can be null if no external data is + /// to be stored in the object. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetExternalData( + _In_ JsValueRef object, + _In_opt_ void *externalData); + + /// + /// Creates a Javascript array object. + /// + /// + /// Requires an active script context. + /// + /// The initial length of the array. + /// The new array object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateArray( + _In_ unsigned int length, + _Out_ JsValueRef *result); + + /// + /// Invokes a function. + /// + /// + /// Requires an active script context. + /// + /// The function to invoke. + /// The arguments to the call. + /// The number of arguments being passed in to the function. + /// The value returned from the function invocation, if any. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCallFunction( + _In_ JsValueRef function, + _In_reads_(argumentCount) JsValueRef *arguments, + _In_ unsigned short argumentCount, + _Out_opt_ JsValueRef *result); + + /// + /// Invokes a function as a constructor. + /// + /// + /// Requires an active script context. + /// + /// The function to invoke as a constructor. + /// The arguments to the call. + /// The number of arguments being passed in to the function. + /// The value returned from the function invocation. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsConstructObject( + _In_ JsValueRef function, + _In_reads_(argumentCount) JsValueRef *arguments, + _In_ unsigned short argumentCount, + _Out_ JsValueRef *result); + + /// + /// A function callback. + /// + /// + /// A function object that represents the function being invoked. + /// + /// Indicates whether this is a regular call or a 'new' call. + /// The arguments to the call. + /// The number of arguments. + /// + /// The state passed to JsCreateFunction. + /// + /// The result of the call, if any. + typedef _Ret_maybenull_ JsValueRef(CALLBACK * JsNativeFunction)(_In_ JsValueRef callee, _In_ bool isConstructCall, _In_ JsValueRef *arguments, _In_ unsigned short argumentCount, _In_opt_ void *callbackState); + + /// + /// Creates a new JavaScript function. + /// + /// + /// Requires an active script context. + /// + /// The method to call when the function is invoked. + /// + /// User provided state that will be passed back to the callback. + /// + /// The new function object. + /// The result of the call, if any. + STDAPI_(JsErrorCode) + JsCreateFunction( + _In_ JsNativeFunction nativeFunction, + _In_opt_ void *callbackState, + _Out_ JsValueRef *function); + + /// + /// Creates a new JavaScript error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Creates a new JavaScript RangeError error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateRangeError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Creates a new JavaScript ReferenceError error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateReferenceError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Creates a new JavaScript SyntaxError error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateSyntaxError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Creates a new JavaScript TypeError error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateTypeError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Creates a new JavaScript URIError error object + /// + /// + /// Requires an active script context. + /// + /// Message for the error object. + /// The new error object. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsCreateURIError( + _In_ JsValueRef message, + _Out_ JsValueRef *error); + + /// + /// Determines whether the runtime of the current context is in an exception state. + /// + /// + /// + /// If a call into the runtime results in an exception (either as the result of running a + /// script or due to something like a conversion failure), the runtime is placed into an + /// "exception state." All calls into any context created by the runtime (except for the + /// exception APIs) will fail with JsErrorInExceptionState until the exception is + /// cleared. + /// + /// + /// If the runtime of the current context is in the exception state when a callback returns + /// into the engine, the engine will automatically rethrow the exception. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// Whether the runtime of the current context is in the exception state. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsHasException( + _Out_ bool *hasException); + + /// + /// Returns the exception that caused the runtime of the current context to be in the + /// exception state and resets the exception state for that runtime. + /// + /// + /// + /// If the runtime of the current context is not in an exception state, this API will return + /// JsErrorInvalidArgument. If the runtime is disabled, this will return an exception + /// indicating that the script was terminated, but it will not clear the exception (the + /// exception will be cleared if the runtime is re-enabled using + /// JsEnableRuntimeExecution). + /// + /// + /// Requires an active script context. + /// + /// + /// The exception for the runtime of the current context. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsGetAndClearException( + _Out_ JsValueRef *exception); + + /// + /// Sets the runtime of the current context to an exception state. + /// + /// + /// + /// If the runtime of the current context is already in an exception state, this API will + /// return JsErrorInExceptionState. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// The JavaScript exception to set for the runtime of the current context. + /// + /// + /// JsNoError if the engine was set into an exception state, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsSetException( + _In_ JsValueRef exception); + + /// + /// Suspends script execution and terminates any running scripts in a runtime. + /// + /// + /// + /// Calls to a suspended runtime will fail until JsEnableRuntimeExecution is called. + /// + /// + /// This API does not have to be called on the thread the runtime is active on. Although the + /// runtime will be set into a suspended state, an executing script may not be suspended + /// immediately; a running script will be terminated with an uncatchable exception as soon as + /// possible. + /// + /// + /// Suspending execution in a runtime that is already suspended is a no-op. + /// + /// + /// The runtime to be suspended. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsDisableRuntimeExecution( + _In_ JsRuntimeHandle runtime); + + /// + /// Enables script execution in a runtime. + /// + /// + /// Enabling script execution in a runtime that already has script execution enabled is a + /// no-op. + /// + /// The runtime to be enabled. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsEnableRuntimeExecution( + _In_ JsRuntimeHandle runtime); + + /// + /// Returns a value that indicates whether script execution is disabled in the runtime. + /// + /// Specifies the runtime to check if execution is disabled. + /// If execution is disabled, true, false otherwise. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsIsRuntimeExecutionDisabled( + _In_ JsRuntimeHandle runtime, + _Out_ bool *isDisabled); + + /// + /// Starts profiling in the current context. + /// + /// + /// Requires an active script context. + /// + /// The profiling callback to use. + /// The profiling events to callback with. + /// A context to pass to the profiling callback. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsStartProfiling( + _In_ IActiveScriptProfilerCallback *callback, + _In_ PROFILER_EVENT_MASK eventMask, + _In_ unsigned long context); + + /// + /// Stops profiling in the current context. + /// + /// + /// + /// Will not return an error if profiling has not started. + /// + /// + /// Requires an active script context. + /// + /// + /// + /// The reason for stopping profiling to pass to the profiler callback. + /// + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsStopProfiling( + _In_ HRESULT reason); + + /// + /// Enumerates the heap of the current context. + /// + /// + /// + /// While the heap is being enumerated, the current context cannot be removed, and all calls to + /// modify the state of the context will fail until the heap enumerator is released. + /// + /// + /// Requires an active script context. + /// + /// + /// The heap enumerator. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsEnumerateHeap( + _Out_ IActiveScriptProfilerHeapEnum **enumerator); + + /// + /// Returns a value that indicates whether the heap of the current context is being enumerated. + /// + /// + /// Requires an active script context. + /// + /// Whether the heap is being enumerated. + /// + /// The code JsNoError if the operation succeeded, a failure code otherwise. + /// + STDAPI_(JsErrorCode) + JsIsEnumeratingHeap( + _Out_ bool *isEnumeratingHeap); + + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma endregion + +#endif // NTDDI_VERSION + +#endif // _JSRT9_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/kbd.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/kbd.h new file mode 100644 index 0000000000000000000000000000000000000000..d1495e2d19bae07f1527afa099e100b836834264 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/kbd.h @@ -0,0 +1,2182 @@ +/****************************** Module Header ******************************\ +* Module Name: kbd.h +* +* Copyright (c) Microsoft Corporation. All rights reserved. +* +* Keyboard table values that form the basis for languages and keyboard types. +* The basis is US, kbd type 4 - all others are a variation on this. +* This file is included by all kbd**.h files. +* +* History: +\***************************************************************************/ + +#ifndef _KBD_ +#define _KBD_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if defined(BUILD_WOW6432) + #define KBD_LONG_POINTER __ptr64 +#else + #define KBD_LONG_POINTER +#endif + + +/****************************************************************************\ +* +* Keyboard Layers. Used in kdb??.dll and in usersrv.dll +* +\****************************************************************************/ + +/* + * KE.usFlaggedVk values, also used in the keyboard layer tables. + */ +#define KBDEXT (USHORT)0x0100 +#define KBDMULTIVK (USHORT)0x0200 +#define KBDSPECIAL (USHORT)0x0400 +#define KBDNUMPAD (USHORT)0x0800 +#define KBDUNICODE (USHORT)0x1000 +#define KBDINJECTEDVK (USHORT)0x2000 +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define KBDMAPPEDVK (USHORT)0x4000 +#endif +#define KBDBREAK (USHORT)0x8000 + +/* + * Key message lParam bits + */ +#define EXTENDED_BIT 0x01000000 +#define DONTCARE_BIT 0x02000000 +#define FAKE_KEYSTROKE 0x02000000 +#define ALTNUMPAD_BIT 0x04000000 // copied from windows\inc\wincon.w + +/* + * Keyboard Shift State defines. These correspond to the bit mask defined + * by the VkKeyScan() API. + */ +#define KBDBASE 0 +#define KBDSHIFT 1 +#define KBDCTRL 2 +#define KBDALT 4 +// three symbols KANA, ROYA, LOYA are for FE +#define KBDKANA 8 +#define KBDROYA 0x10 +#define KBDLOYA 0x20 +#define KBDGRPSELTAP 0x80 + +/* + * Handy diacritics + */ +#define GRAVE 0x0300 +#define ACUTE 0x0301 +#define CIRCUMFLEX 0x0302 +#define TILDE 0x0303 +#define MACRON 0x0304 +#define OVERSCORE 0x0305 +#define BREVE 0x0306 +#define DOT_ABOVE 0x0307 +#define UMLAUT 0x0308 +#define DIARESIS UMLAUT +#define HOOK_ABOVE 0x0309 +#define RING 0x030A +#define DOUBLE_ACUTE 0x030B +#define HACEK 0x030C + +#define CEDILLA 0x0327 +#define OGONEK 0x0328 +#define TONOS 0x0384 +#define DIARESIS_TONOS 0x0385 + + +#define wszGRAVE L"\x0300" +#define wszACUTE L"\x0301" +#define wszCIRCUMFLEX L"\x0302" +#define wszTILDE L"\x0303" +#define wszMACRON L"\x0304" +#define wszOVERSCORE L"\x0305" +#define wszBREVE L"\x0306" +#define wszDOT_ABOVE L"\x0307" +#define wszUMLAUT L"\x0308" +#define wszHOOK_ABOVE L"\x0309" +#define wszRING L"\x030A" +#define wszDOUBLE_ACUTE L"\x030B" +#define wszHACEK L"\x030C" + +#define wszCEDILLA L"\x0327" +#define wszOGONEK L"\x0328" +#define wszTONOS L"\x0384" +#define wszDIARESIS_TONOS L"\x0385" + +#define IDS_FROM_SCANCODE(prefix, base) \ + (0xc000 + ((0x ## prefix) >= 0xE0 ? 0x100 : 0) + (0x ## base)) + +/***************************************************************************\ +* MODIFIER KEYS +* +* All keyboards have "Modifier" keys which are used to alter the behaviour of +* some of the other keys. These shifter keys are usually: +* Shift (left and/or right Shift key) +* Ctrl (left and/or right Ctrl key) +* Alt (left and/or right Alt key) +* AltGr (right Alt key only) +* +* NOTE: +* All keyboards use the Shift key. +* All keyboards use a Ctrl key to generate ASCII control characters. +* All keyboards with a number pad use the Alt key and the NumPad to +* generate characters by number. +* Keyboards using AltGr as a Modifier Key usually translate the Virtual +* ScanCode to Virtual Keys VK_CTRL + VK_ALT at input time: the Modifier +* tables should be written to treat Ctrl + Alt as a valid shifter +* key combination in these cases. +* +* By holding down 0 or more of these Modifier keys, a "shift state" is +* obtained : the shift state may affect the translation of Virtual Scancodes +* to Virtual Keys and/or the translation of Virtuals Key to Characters. +* +* EXAMPLES: +* +* Each key on a particular keyboard may be marked with up to five different +* characters in five different positions: +* +* .-------. +* /| |\ +* : | 2 4 | : +* | | | | +* | | | | +* | | 1 3 | | +* | |_______| | +* | / \ | +* |/ 5 \| +* `-----------' +* +* A key may also be able to generate a character that is not marked on it: +* these are ASCII Control chars, lower-case letters and/or "invisible keys". +* .-------. +* An example of an "Invisible Key": /| |\ +* : | > | : +* The German M24 keyboard 2 should produce the | | | | +* '|' character when ALT SHIFT is is held down | | | | +* while the '<' key (shown here) is pressed: | | < \ | | +* This keyboard has four other invisible | |_______| | +* characters. France, Italy and Spain also | / \ | +* support invisible characters on the M24 |/ \| +* Keyboard 2 with ALT SHIFT depressed. `-----------' +* +* The keyboard table must list the keys that contribute to it's shift state, +* and indicate which combinations are valid. This is done with +* aCharModifiers[] - convert combinations of Modifier Keys to Bitmasks. +* and +* aModification[]; - convert Modifier Bitmasks to enumerated Modifications +* +* AN EXAMPLE OF VALID AND INVALID MODIFIER KEY COMBINATIONS +* +* The US English keyboard has 3 Modifier keys: +* Shift (left or right); Ctrl (left or right); and Alt (left or right). +* +* The only valid combinations of these Modifier Keys are: +* none pressed : Character at position (1) on the key. +* Shift : Character at position (2) on the key. +* Ctrl : Ascii Control characters +* Shift + Ctrl : Ascii Control characters +* Alt : Character-by-number on the numpad +* +* The invalid combinations (that do not generate any characters) are: +* Shift + Alt +* Alt + Ctrl +* Shift + Alt + Ctrl +* +* Something (???) : +* ----------------- +* Modifier keys Character produced +* ------------------------- ------------------ +* 0 No shifter key depressed position 1 +* 1 Shift key is depressed position 2 +* 2 AltGr (r.h. Alt) depressed position 4 or 5 (whichever is marked) +* +* However, note that 3 shifter keys (SHIFT, can be combined in a +* characters, depending on the Keyboards +* Consider the following keyboards: +* +* .-------. STRANGE KBD PECULIAR KBD +* /| |\ ================== ================== +* : | 2 4 | : 1 - +* | | | | 2 - SHIFT SHIFT +* | | | | 3 - MENU MENU +* | | 1 3 | | 4 - SHIFT + MENU SHIFT + MENU +* | |_______| | 5 - no such keys CTRL + MENU +* | / \ | +* |/ 5 \| +* `-----------' +* Both STRANGE and PECULIAR keyboards could have aVkToBits[] = +* { VK_SHIFT , KBDSHIFT }, // 0x01 +* { VK_CONTROL, KBDCTRL }, // 0x02 +* { VK_MENU , KBDALT }, // 0x04 +* { 0, 0 } +* +* The STRANGE keyboard has 4 distinct shift states, while the PECULIAR kbd +* has 5. However, note that 3 shifter bits can be combined in a +* total of 2^3 == 8 ways. Each such combination must be related to one (or +* none) of the enumerated shift states. +* Each shifter key combination can be represented by three binary bits: +* Bit 0 is set if VK_SHIFT is down +* Bit 1 is set if VK_CONTROL is down +* Bit 2 is set if VK_MENU is down +* +* Example: If the STRANGE keyboard generates no characters in combination +* when just the ALT key is held down, nor when the SHIFT, CTRL and ALT keys +* are all held down, then the tables might look like this: +* +* VK_MENU, +* VK_CTRL, 0 +* }; +* aModification[] = { +* 0, // 0 0 0 = 000 +* 1, // 0 0 1 = 001 SHIFT +* SHFT_INVALID, // 0 1 0 = 010 ALT +* 2, // 0 1 1 = 011 SHIFT ALT +* 3, // 1 0 0 = 100 CTRL +* 4, // 1 0 1 = 101 SHIFT CTRL +* 5, // 1 1 0 = 110 CTRL ALT +* SHFT_INVALID // 1 1 1 = 111 SHIFT CTRL ALT +* }; +* +* +\***************************************************************************/ + +/***************************************************************************\ +* VK_TO_BIT - associate a Virtual Key with a Modifier bitmask. +* +* Vk - the Virtual key (eg: VK_SHIFT, VK_RMENU, VK_CONTROL etc.) +* Special Values: +* 0 null terminator +* ModBits - a combination of KBDALT, KBDCTRL, KBDSHIFT and kbd-specific bits +* Any kbd-specific shift bits must be the lowest-order bits other +* than KBDSHIFT, KBDCTRL and KBDALT (0, 1 & 2) +* +* Those languages that use AltGr (VK_RMENU) to shift keys convert it to +* CTRL+ALT with the KBDSPECIAL bit in the ausVK[] entry for VK_RMENU +* and by having an entry in aVkToPfnOem[] to simulate the right Vk sequence. +* +\***************************************************************************/ +typedef struct { + BYTE Vk; + BYTE ModBits; +} VK_TO_BIT, *KBD_LONG_POINTER PVK_TO_BIT; + +/***************************************************************************\ +* pModNumber - a table to map shift bits to enumerated shift states +* +* Table attributes: Ordered table +* +* Maps all possible shifter key combinations to an enumerated shift state. +* The size of the table depends on the value of the highest order bit used +* in aCharModifiers[*].ModBits +* +* Special values for aModification[*] +* SHFT_INVALID - no characters produced with this shift state. +LATER: (ianja) no SHFT_CTRL - control characters encoded in tables like others +* SHFT_CTRL - standard control character production (all keyboards must +* be able to produce CTRL-C == 0x0003 etc.) +* Other - enumerated shift state (not less than 0) +* +* This table is indexed by the Modifier Bits to obtain an Modification Number. +* +* CONTROL MENU SHIFT +* +* aModification[] = { +* 0, // 0 0 0 = 000 +* 1, // 0 0 1 = 001 SHIFT +* SHFT_INVALID, // 0 1 0 = 010 ALT +* 2, // 0 1 1 = 011 SHIFT ALT +* 3, // 1 0 0 = 100 CTRL +* 4, // 1 0 1 = 101 SHIFT CTRL +* 5, // 1 1 0 = 110 CTRL ALT +* SHFT_INVALID // 1 1 1 = 111 SHIFT CTRL ALT +* }; +* +\***************************************************************************/ + +#pragma warning(push) +#pragma warning(disable : 4200) // zero-sized array in struct/union + +typedef struct { + PVK_TO_BIT pVkToBit; // Virtual Keys -> Mod bits + WORD wMaxModBits; // max Modification bit combination value + BYTE ModNumber[]; // Mod bits -> Modification Number +} MODIFIERS, *KBD_LONG_POINTER PMODIFIERS; + +#pragma warning(pop) + + +#define SHFT_INVALID 0x0F + +/***************************************************************************\ +* VSC_VK - Associate a Virtual Scancode with a Virtual Key +* Vsc - Virtual Scancode +* Vk - Virtual Key | flags +* Used by VKFromVSC() for scancodes prefixed 0xE0 or 0xE1 +\***************************************************************************/ +typedef struct _VSC_VK { + BYTE Vsc; + USHORT Vk; +} VSC_VK, *KBD_LONG_POINTER PVSC_VK; + +/***************************************************************************\ +* VK_VSC - Associate a Virtual Key with a Virtual Scancode +* Vk - Virtual Key +* Vsc - Virtual Scancode +* Used by MapVirtualKey for Virtual Keys not appearing in ausVK[] +\***************************************************************************/ +typedef struct _VK_VSC { + BYTE Vk; + BYTE Vsc; +} VK_VSC, *KBD_LONG_POINTER PVK_VSC; + +/***************************************************************************\ +* +* VK_TO_WCHARS - Associate a Virtual Key with UNICODE characters +* +* VirtualKey - The Virtual Key. +* wch[] - An array of characters, one for each shift state that +* applies to the specified Virtual Key. +* +* Special values for VirtualKey: +* -1 - This entry contains dead chars for the previous entry +* 0 - Terminates a VK_TO_WCHARS[] table +* +* Special values for Attributes: +* CAPLOK - The CAPS-LOCK key affects this key like SHIFT +* SGCAPS - CapsLock uppercases the unshifted char (Swiss-German) +* +* Special values for wch[*]: +* WCH_NONE - No character is generated by pressing this key with the +* current shift state. +* WCH_DEAD - The character is a dead-key: the next VK_TO_WCHARS[] entry +* will contain the values of the dead characters (diaresis) +* that can be produced by the Virtual Key. +* WCH_LGTR - The character is a ligature. The characters generated by +* this keystroke are found in the ligature table. +* +\***************************************************************************/ +#define WCH_NONE 0xF000 +#define WCH_DEAD 0xF001 +#define WCH_LGTR 0xF002 + +#define CAPLOK 0x01 +#define SGCAPS 0x02 +#define CAPLOKALTGR 0x04 +// KANALOK is for FE +#define KANALOK 0x08 +#define GRPSELTAP 0x80 + +/* + * Macro for VK to WCHAR with "n" shift states + */ +#define TYPEDEF_VK_TO_WCHARS(n) typedef struct _VK_TO_WCHARS##n { \ + BYTE VirtualKey; \ + BYTE Attributes; \ + WCHAR wch[n]; \ + } VK_TO_WCHARS##n, *KBD_LONG_POINTER PVK_TO_WCHARS##n; + +/* + * To facilitate coding the table scanning routine. + */ + +/* + * Table element types (for various numbers of shift states), used + * to facilitate static initializations of tables. + * VK_TO_WCHARS1 and PVK_TO_WCHARS1 may be used as the generic type + */ +TYPEDEF_VK_TO_WCHARS(1) // VK_TO_WCHARS1, *PVK_TO_WCHARS1; +TYPEDEF_VK_TO_WCHARS(2) // VK_TO_WCHARS2, *PVK_TO_WCHARS2; +TYPEDEF_VK_TO_WCHARS(3) // VK_TO_WCHARS3, *PVK_TO_WCHARS3; +TYPEDEF_VK_TO_WCHARS(4) // VK_TO_WCHARS4, *PVK_TO_WCHARS4; +TYPEDEF_VK_TO_WCHARS(5) // VK_TO_WCHARS5, *PVK_TO_WCHARS5; +TYPEDEF_VK_TO_WCHARS(6) // VK_TO_WCHARS6, *PVK_TO_WCHARS5; +TYPEDEF_VK_TO_WCHARS(7) // VK_TO_WCHARS7, *PVK_TO_WCHARS7; +// these three (8,9,10) are for FE +TYPEDEF_VK_TO_WCHARS(8) // VK_TO_WCHARS8, *PVK_TO_WCHARS8; +TYPEDEF_VK_TO_WCHARS(9) // VK_TO_WCHARS9, *PVK_TO_WCHARS9; +TYPEDEF_VK_TO_WCHARS(10) // VK_TO_WCHARS10, *PVK_TO_WCHARS10; + +/***************************************************************************\ +* +* VK_TO_WCHAR_TABLE - Describe a table of VK_TO_WCHARS1 +* +* pVkToWchars - points to the table. +* nModifications - the number of shift-states supported by this table. +* (this is the number of elements in pVkToWchars[*].wch[]) +* +* A keyboard may have several such tables: all keys with the same number of +* shift-states are grouped together in one table. +* +* Special values for pVktoWchars: +* NULL - Terminates a VK_TO_WCHAR_TABLE[] list. +* +\***************************************************************************/ + +typedef struct _VK_TO_WCHAR_TABLE { + PVK_TO_WCHARS1 pVkToWchars; + BYTE nModifications; + BYTE cbSize; +} VK_TO_WCHAR_TABLE, *KBD_LONG_POINTER PVK_TO_WCHAR_TABLE; + +/***************************************************************************\ +* +* Dead Key (diaresis) tables +* +\***************************************************************************/ +typedef struct { + DWORD dwBoth; // diacritic & char + WCHAR wchComposed; + USHORT uFlags; +} DEADKEY, *KBD_LONG_POINTER PDEADKEY; + +#define DEADTRANS(ch, accent, comp, flags) { MAKELONG(ch, accent), comp, flags} + +/* + * Bit values for uFlags + */ +#define DKF_DEAD 0x0001 + +/***************************************************************************\ +* +* Ligature table +* +\***************************************************************************/ +/* + * Macro for ligature with "n" characters + */ +#define TYPEDEF_LIGATURE(n) typedef struct _LIGATURE##n { \ + BYTE VirtualKey; \ + WORD ModificationNumber; \ + WCHAR wch[n]; \ + } LIGATURE##n, *KBD_LONG_POINTER PLIGATURE##n; + +/* + * To facilitate coding the table scanning routine. + */ + +/* + * Table element types (for various numbers of ligatures), used + * to facilitate static initializations of tables. + * + * LIGATURE1 and PLIGATURE1 are used as the generic type + */ +TYPEDEF_LIGATURE(1) // LIGATURE1, *PLIGATURE1; +TYPEDEF_LIGATURE(2) // LIGATURE2, *PLIGATURE2; +TYPEDEF_LIGATURE(3) // LIGATURE3, *PLIGATURE3; +TYPEDEF_LIGATURE(4) // LIGATURE4, *PLIGATURE4; +TYPEDEF_LIGATURE(5) // LIGATURE5, *PLIGATURE5; + +/***************************************************************************\ +* VSC_LPWSTR - associate a Virtual Scancode with a Text string +* +* Uses: +* GetKeyNameText(), aKeyNames[] Map virtual scancode to name of key +* +\***************************************************************************/ +typedef struct { + BYTE vsc; + WCHAR *KBD_LONG_POINTER pwsz; +} VSC_LPWSTR, *KBD_LONG_POINTER PVSC_LPWSTR; + +typedef WCHAR *KBD_LONG_POINTER DEADKEY_LPWSTR; + +/* + * Along with ligature support we're adding a proper version number. + * The previous version number (actually just unused bits...) was + * always zero. The version number will live in the high word of + * fLocaleFlags. + */ +#define KBD_VERSION 1 +#define GET_KBD_VERSION(p) (HIWORD((p)->fLocaleFlags)) + +/* + * Attributes such as AltGr, LRM_RLM, ShiftLock are stored in the the low word + * of fLocaleFlags (layout specific) or in gdwKeyboardAttributes (all layouts) + */ +#define KLLF_ALTGR 0x0001 +#define KLLF_SHIFTLOCK 0x0002 +#define KLLF_LRM_RLM 0x0004 + +/* + * Some attributes are per-layout (specific to an individual layout), some + * attributes are per-user (apply globally to all layouts). Some are both. + */ +#define KLLF_LAYOUT_ATTRS (KLLF_SHIFTLOCK | KLLF_ALTGR | KLLF_LRM_RLM) +#define KLLF_GLOBAL_ATTRS (KLLF_SHIFTLOCK) + +/* + * Flags passed in to the KeyboardLayout API (KLF_*) as can be converted to + * internal (KLLF_*) attributes: + */ +#define KLL_ATTR_FROM_KLF(x) ((x) >> 15) +#define KLL_LAYOUT_ATTR_FROM_KLF(x) (KLL_ATTR_FROM_KLF(x) & KLLF_LAYOUT_ATTRS) +#define KLL_GLOBAL_ATTR_FROM_KLF(x) (KLL_ATTR_FROM_KLF(x) & KLLF_GLOBAL_ATTRS) + +/* + * If KLF_SHIFTLOCK & KLF_LRM_RLM are defined, we can check the KLLF_* values + */ +#ifdef KLF_SHIFTLOCK +#if KLLF_SHIFTLOCK != KLL_ATTR_FROM_KLF(KLF_SHIFTLOCK) + #error KLLF_SHIFTLOCK != KLL_ATTR_FROM_KLF(KLF_SHIFTLOCK) +#endif +#endif // KLF_SHIFTLOCK +#ifdef KLF_LRM_RLM +#if KLLF_LRM_RLM != KLL_ATTR_FROM_KLF(KLF_LRM_RLM) + #error KLLF_LRM_RLM != KLL_ATTR_FROM_KLF(KLF_LRM_RLM) +#endif +#endif // KLF_LRM_RLM + +/***************************************************************************\ +* KBDTABLES +* +* This structure describes all the tables that implement the keyboard layer. +* +* When switching to a new layer, we get a new KBDTABLES structure: all key +* processing tables are accessed indirectly through this structure. +* +\***************************************************************************/ + +typedef struct tagKbdLayer { + /* + * Modifier keys + */ + PMODIFIERS pCharModifiers; + + /* + * Characters + */ + PVK_TO_WCHAR_TABLE pVkToWcharTable; // ptr to tbl of ptrs to tbl + + /* + * Diacritics + */ + PDEADKEY pDeadKey; + + /* + * Names of Keys + */ + PVSC_LPWSTR pKeyNames; + PVSC_LPWSTR pKeyNamesExt; + WCHAR *KBD_LONG_POINTER *KBD_LONG_POINTER pKeyNamesDead; + + /* + * Scan codes to Virtual Keys + */ + USHORT *KBD_LONG_POINTER pusVSCtoVK; + BYTE bMaxVSCtoVK; + PVSC_VK pVSCtoVK_E0; // Scancode has E0 prefix + PVSC_VK pVSCtoVK_E1; // Scancode has E1 prefix + + /* + * Locale-specific special processing + */ + DWORD fLocaleFlags; + + /* + * Ligatures + */ + BYTE nLgMax; + BYTE cbLgEntry; + PLIGATURE1 pLigature; + +#if (NTDDI_VERSION >= NTDDI_WINXP) + + /* + * Type and subtype. These are optional. + */ + DWORD dwType; // Keyboard Type + DWORD dwSubType; // Keyboard SubType: may contain OemId + +#endif + +} KBDTABLES, *KBD_LONG_POINTER PKBDTABLES; + +/* + * FarEast-specific special... + */ +typedef struct _VK_FUNCTION_PARAM { + BYTE NLSFEProcIndex; + ULONG NLSFEProcParam; +} VK_FPARAM, *KBD_LONG_POINTER PVK_FPARAM; + +typedef struct _VK_TO_FUNCTION_TABLE { + BYTE Vk; + BYTE NLSFEProcType; + BYTE NLSFEProcCurrent; + // Index[0] : Base + // Index[1] : Shift + // Index[2] : Control + // Index[3] : Shift+Control + // Index[4] : Alt + // Index[5] : Shift+Alt + // Index[6] : Control+Alt + // Index[7] : Shift+Control+Alt + BYTE NLSFEProcSwitch; // 8 bits + VK_FPARAM NLSFEProc[8]; + VK_FPARAM NLSFEProcAlt[8]; +} VK_F, *KBD_LONG_POINTER PVK_F; + +typedef struct tagKbdNlsLayer { + USHORT OEMIdentifier; + USHORT LayoutInformation; + UINT NumOfVkToF; + PVK_F pVkToF; + // + // The pusMouseVKey array provides a translation from the virtual key + // value to an index. The index is used to select the appropriate + // routine to process the virtual key, as well as to select extra + // information that is used by this routine during its processing. + // If this value is NULL, following default will be used. + // + // ausMouseVKey[] = { + // VK_CLEAR, // Numpad 5: Click active button + // VK_PRIOR, // Numpad 9: Up & Right + // VK_NEXT, // Numpad 3: Down & Right + // VK_END, // Numpad 1: Down & Left + // VK_HOME, // Numpad 7: Up & Left + // VK_LEFT, // Numpad 4: Left + // VK_UP, // Numpad 8: Up + // VK_RIGHT, // Numpad 6: Right + // VK_DOWN, // Numpad 2: Down + // VK_INSERT, // Numpad 0: Active button down + // VK_DELETE, // Numpad .: Active button up + // VK_MULTIPLY, // Numpad *: Select both buttons + // VK_ADD, // Numpad +: Double click active button + // VK_SUBTRACT, // Numpad -: Select right button + // VK_DEVIDE|KBDEXT, // Numpad /: Select left button + // VK_NUMLOCK|KBDEXT}; // Num Lock + // + INT NumOfMouseVKey; + USHORT *KBD_LONG_POINTER pusMouseVKey; +} KBDNLSTABLES, *KBD_LONG_POINTER PKBDNLSTABLES; + +#if (NTDDI_VERSION >= NTDDI_WINXP) +/* + * The maximum number of layout tables in a DLL + */ +#define KBDTABLE_MULTI_MAX (8) + +/* + * Multiple keyboard layout table in a DLL + */ +typedef struct tagKBDTABLE_DESC { + WCHAR wszDllName[32]; + DWORD dwType; // Keyboard type ID + DWORD dwSubType; // Combined SubType ID (OEMID : SubType) +} KBDTABLE_DESC, *KBD_LONG_POINTER PKBDTABLE_DESC; + +typedef struct tagKBDTABLE_MULTI { + UINT nTables; + KBDTABLE_DESC aKbdTables[KBDTABLE_MULTI_MAX]; +} KBDTABLE_MULTI, *KBD_LONG_POINTER PKBDTABLE_MULTI; + + +/* + * Format of the registry value for the Dynamic Layout Switching + */ +typedef struct tagKBD_TYPE_INFO { + DWORD dwVersion; + DWORD dwType; + DWORD dwSubType; +} KBD_TYPE_INFO, *PKBD_TYPE_INFO; + +// +// Keyboard type +// +#define KEYBOARD_TYPE_GENERIC_101 (4) +// +// Keyboard Type = 7 : Japanese Keyboard +// Keyboard Type = 8 : Korean Keyboard +// +#define KEYBOARD_TYPE_JAPAN (7) +#define KEYBOARD_TYPE_KOREA (8) + +// Unknown keyboard type +#define KEYBOARD_TYPE_UNKNOWN (0x51) + +#endif + + +// +// OEM Ids - KBDNLSTABLES.OEMIdentifier +// +// PSS ID Number: Q130054 +// Article last modified on 05-16-1995 +// +// 3.10 1.20 | 3.50 1.20 +// WINDOWS | WINDOWS NT +// +// --------------------------------------------------------------------- +// The information in this article applies to: +// - Microsoft Windows Software Development Kit (SDK) for Windows +// version 3.1 +// - Microsoft Win32 Software Development Kit (SDK) version 3.5 +// - Microsoft Win32s version 1.2 +// --------------------------------------------------------------------- +// SUMMARY +// ======= +// Because of the variety of computer manufacturers (NEC, Fujitsu, IBMJ, and +// so on) in Japan, sometimes Windows-based applications need to know which +// OEM (original equipment manufacturer) manufactured the computer that is +// running the application. This article explains how. +// +// MORE INFORMATION +// ================ +// There is no documented way to detect the manufacturer of the computer that +// is currently running an application. However, a Windows-based application +// can detect the type of OEM Windows by using the return value of the +// GetKeyboardType() function. +// +// If an application uses the GetKeyboardType API, it can get OEM ID by +// specifying "1" (keyboard subtype) as argument of the function. Each OEM ID +// is listed here: +// +// OEM Windows OEM ID +// ------------------------------ +// Microsoft 00H (DOS/V) +// all AX 01H +// EPSON 04H +// Fujitsu 05H +// IBMJ 07H +// Matsushita 0AH +// NEC 0DH +// Toshiba 12H +// +// Application programs can use these OEM IDs to distinguish the type of OEM +// Windows. Note, however, that this method is not documented, so Microsoft +// may not support it in the future version of Windows. +// +// As a rule, application developers should write hardware-independent code, +// especially when making Windows-based applications. If they need to make a +// hardware-dependent application, they must prepare the separated program +// file for each different hardware architecture. +// +// Additional reference words: 3.10 1.20 3.50 1.20 kbinf +// KBCategory: kbhw +// KBSubcategory: wintldev +// ============================================================================= +// Copyright (c) Microsoft Corporation. All rights reserved. +// +#define NLSKBD_OEM_MICROSOFT 0x00 +#define NLSKBD_OEM_AX 0x01 +#define NLSKBD_OEM_EPSON 0x04 +#define NLSKBD_OEM_FUJITSU 0x05 +#define NLSKBD_OEM_IBM 0x07 +#define NLSKBD_OEM_MATSUSHITA 0x0A +#define NLSKBD_OEM_NEC 0x0D +#define NLSKBD_OEM_TOSHIBA 0x12 +#define NLSKBD_OEM_DEC 0x18 // only NT +// +// Microsoft (default) - keyboards hardware/layout +// +#define MICROSOFT_KBD_101_TYPE 0 +#define MICROSOFT_KBD_AX_TYPE 1 +#define MICROSOFT_KBD_106_TYPE 2 +#define MICROSOFT_KBD_002_TYPE 3 +#define MICROSOFT_KBD_001_TYPE 4 +#define MICROSOFT_KBD_FUNC 12 +// +// AX consortium - keyboards hardware/layout +// +#define AX_KBD_DESKTOP_TYPE 1 +// +// Fujitsu - keyboards hardware/layout +// +#define FMR_KBD_JIS_TYPE 0 +#define FMR_KBD_OASYS_TYPE 1 +#define FMV_KBD_OASYS_TYPE 2 +// +// NEC - keyboards hardware/layout +// +#define NEC_KBD_NORMAL_TYPE 1 +#define NEC_KBD_N_MODE_TYPE 2 +#define NEC_KBD_H_MODE_TYPE 3 +#define NEC_KBD_LAPTOP_TYPE 4 +#define NEC_KBD_106_TYPE 5 +// +// Toshiba - keyboards hardware/layout +// +#define TOSHIBA_KBD_DESKTOP_TYPE 13 +#define TOSHIBA_KBD_LAPTOP_TYPE 15 +// +// DEC - keyboards hardware/layout +// +#define DEC_KBD_ANSI_LAYOUT_TYPE 1 // only NT +#define DEC_KBD_JIS_LAYOUT_TYPE 2 // only NT + +#if (NTDDI_VERSION >= NTDDI_WINXP) +// +// Korean keyboard subtype +// +#define MICROSOFT_KBD_101A_TYPE MICROSOFT_KBD_101_TYPE +#define MICROSOFT_KBD_101B_TYPE 4 +#define MICROSOFT_KBD_101C_TYPE 5 +#define MICROSOFT_KBD_103_TYPE 6 +#endif + +// +// Keyboard layout information - KBDNLSTABLE.LayoutInformation +// + +// +// If this flag is on, System sends notification to keyboard +// drivers (leyout/kernel mode). when IME (Input-Mehod-Editor) +// status become changed. +// +#define NLSKBD_INFO_SEND_IME_NOTIFICATION 0x0001 + +// +// If this flag is on, System will use VK_HOME/VK_KANA instead of +// VK_NUMLOCK/VK_SCROLL for Accessibility toggle keys. +// + Typically, NEC PC-9800 Series will use this bit, because +// they does not have 'NumLock' and 'ScrollLock' keys. +// +#define NLSKBD_INFO_ACCESSIBILITY_KEYMAP 0x0002 + +// +// If this flag is on, System will return 101 or 106 Japanese +// keyboard type/subtype id, when GetKeyboardType() is called. +// +#define NLSKBD_INFO_EMURATE_101_KEYBOARD 0x0010 +#define NLSKBD_INFO_EMURATE_106_KEYBOARD 0x0020 + +// +// Keyboard layout function types +// +// - VK_F.NLSFEProcType +// +#define KBDNLS_TYPE_NULL 0 +#define KBDNLS_TYPE_NORMAL 1 +#define KBDNLS_TYPE_TOGGLE 2 + +// +// - VK_F.NLSFEProcCurrent +// +#define KBDNLS_INDEX_NORMAL 1 +#define KBDNLS_INDEX_ALT 2 + +// +// - VK_F.NLSFEProc[] +// +#define KBDNLS_NULL 0 // Invalid function +#define KBDNLS_NOEVENT 1 // Drop keyevent +#define KBDNLS_SEND_BASE_VK 2 // Send Base VK_xxx +#define KBDNLS_SEND_PARAM_VK 3 // Send Parameter VK_xxx +#define KBDNLS_KANALOCK 4 // VK_KANA (with hardware lock) +#define KBDNLS_ALPHANUM 5 // VK_DBE_ALPHANUMERIC +#define KBDNLS_HIRAGANA 6 // VK_DBE_HIRAGANA +#define KBDNLS_KATAKANA 7 // VK_DBE_KATAKANA +#define KBDNLS_SBCSDBCS 8 // VK_DBE_SBCSCHAR/VK_DBE_DBCSCHAR +#define KBDNLS_ROMAN 9 // VK_DBE_ROMAN/VK_DBE_NOROMAN +#define KBDNLS_CODEINPUT 10 // VK_DBE_CODEINPUT/VK_DBE_NOCODEINPUT +#define KBDNLS_HELP_OR_END 11 // VK_HELP or VK_END [NEC PC-9800 Only] +#define KBDNLS_HOME_OR_CLEAR 12 // VK_HOME or VK_CLEAR [NEC PC-9800 Only] +#define KBDNLS_NUMPAD 13 // VK_NUMPAD? for Numpad key [NEC PC-9800 Only] +#define KBDNLS_KANAEVENT 14 // VK_KANA [Fujitsu FMV oyayubi Only] +#define KBDNLS_CONV_OR_NONCONV 15 // VK_CONVERT and VK_NONCONVERT [Fujitsu FMV oyayubi Only] + +#if (NTDDI_VERSION < NTDDI_WINXP) +// +// Keyboard Type = 7 : Japanese Keyboard +// Keyboard Type = 8 : Korean Keyboard +// +#define JAPANESE_KEYBOARD(Id) ((Id).Type == 7) +#define KOREAN_KEYBOARD(Id) ((Id).Type == 8) + +#else + +#define JAPANESE_KEYBOARD(Id) ((Id).Type == KEYBOARD_TYPE_JAPAN) +#define KOREAN_KEYBOARD(Id) ((Id).Type == KEYBOARD_TYPE_KOREA) + +#endif + +// Fujitsu Oyayubi-shift keyboard +#define FUJITSU_KBD_CONSOLE(Id) (JAPANESE_KEYBOARD(Id) && \ + (Id).Subtype == ((NLSKBD_OEM_FUJITSU<<4)|FMV_KBD_OASYS_TYPE)) + // This number 0x00020002 is registered in registry key as + // HKLM\System\CurrentControlSet\Control\Terminal Server\KeyboardType Mapping\JPN +#define FUJITSU_KBD_REMOTE(Id) (JAPANESE_KEYBOARD(Id) && \ + (Id).SubType == 0x00020002) + +#define KBD_LAYOUT_LANG(hkl) (PRIMARYLANGID(HandleToUlong(hkl))) + +#define JAPANESE_KBD_LAYOUT(hkl) (KBD_LAYOUT_LANG(hkl) == LANG_JAPANESE) +#define KOREAN_KBD_LAYOUT(hkl) (KBD_LAYOUT_LANG(hkl) == LANG_KOREAN) + +// end of FE specific + +/***************************************************************************\ +* Macros for ausVK[] values (used below) +* +* These macros prefix each argument with VK_ to produce the name of a Virtual +* Key defined in "winuser.h" (eg: ESCAPE becomes VK_ESCAPE). +\***************************************************************************/ +#ifndef KBD_TYPE +#define KBD_TYPE 4 +#endif + +/* + * _NE() selects the Virtual Key according to keyboard type + */ +#if (KBD_TYPE == 1) +#define _NE(v1,v2,v3,v4,v5,v6) (VK_##v1) +#elif (KBD_TYPE == 2) +#define _NE(v1,v2,v3,v4,v5,v6) (VK_##v2) +#elif (KBD_TYPE == 3) +#define _NE(v1,v2,v3,v4,v5,v6) (VK_##v3) +#elif (KBD_TYPE == 4) +#define _NE(v1,v2,v3,v4,v5,v6) (VK_##v4) +#elif (KBD_TYPE == 5) +#define _NE(v1,v2,v3,v4,v5,v6) (VK_##v5) +#elif (KBD_TYPE == 6) +#define _NE(v1,v2,v3,v4,v5,v6) (VK_##v6) +#elif (KBD_TYPE == 7) +#define _NE(v7,v8,v16,v10,v11,v12,v13) (VK_##v7) +#elif (KBD_TYPE == 8) +#define _NE(v7,v8,v16,v10,v11,v12,v13) (VK_##v8) +#elif (KBD_TYPE == 10) +#define _NE(v7,v8,v16,v10,v11,v12,v13) (VK_##v10) +#elif (KBD_TYPE == 11) +#define _NE(v7,v8,v16,v10,v11,v12,v13) (VK_##v11) +#elif (KBD_TYPE == 12) +#define _NE(v7,v8,v16,v10,v11,v12,v13) (VK_##v12) +#elif (KBD_TYPE == 13) +#define _NE(v7,v8,v16,v10,v11,v12,v13) (VK_##v13) +#elif (KBD_TYPE == 16) +#define _NE(v7,v8,v16,v10,v11,v12,v13) (VK_##v16) +#elif (KBD_TYPE == 20) +#define _NE(v20,v21,v22) (VK_##v20) +#elif (KBD_TYPE == 21) +#define _NE(v20,v21,v22) (VK_##v21) +#elif (KBD_TYPE == 22) +#define _NE(v20,v21,v22) (VK_##v22) +#elif (KBD_TYPE == 30) +#define _NE(v30,v33,v34) (VK_##v30) +#elif (KBD_TYPE == 33) +#define _NE(v30,v33,v34) (VK_##v33) +#elif (KBD_TYPE == 34) +#define _NE(v30,v33,v34) (VK_##v34) +#elif (KBD_TYPE == 40) +#define _NE(v40,v41) (VK_##v40) +#elif (KBD_TYPE == 41) +#define _NE(v40,v41) (VK_##v41) +#endif + +/* + * _EQ() selects the same Virtual Key for all keyboard types + */ +#if (KBD_TYPE <= 6) +#define _EQ( v4 ) (VK_##v4) +#elif (KBD_TYPE >= 7) && (KBD_TYPE <= 16) +#define _EQ( v8 ) (VK_##v8) +#elif (KBD_TYPE > 20) && (KBD_TYPE <= 22) +#define _EQ(v20 ) (VK_##v20) +#elif (KBD_TYPE >= 30) && (KBD_TYPE <= 34) +#define _EQ( v30 ) (VK_##v30) +#elif (KBD_TYPE == 37) +#define _EQ( v37 ) (VK_##v37) +#elif (KBD_TYPE >= 40) && (KBD_TYPE <= 41) +#define _EQ( v40 ) (VK_##v40) +#endif + +/* + * A bit of trickery for virtual key names 'A' to 'Z' and '0' to '9' so + * that they are not converted to a VK_* name. + * With this macro, VK_'A' equates to 'A' etc. + */ +#define VK_ +#define VK__none_ 0xFF +#define VK_ABNT_C1 0xC1 +#define VK_ABNT_C2 0xC2 + +#if (KBD_TYPE <= 6) +/***************************************************************************\ +* T** - Values for ausVK[] (Virtual Scan Code to Virtual Key conversion) +* +* These values are for Scancode Set 3 and the USA. +* Other languages substitute their own values where required (files kbd**.h) +* +* Six sets of keyboards are supported, according to KBD_TYPE: +* +* KBD_TYPE Keyboard (examples) +* ======== ======================================================= +* 1 AT&T '301' & '302'; Olivetti 83-key; PC-XT 84-key; etc. +* 2 Olivetti M24 102-key +* 3 HP Vectra (DIN); Olivetti 86-key; etc. +* 4 * Enhanced 101/102-key; Olivetti A; etc. +* 5 Nokia (Ericsson) type 5 (1050, etc.) +* 6 Nokia (Ericsson) type 6 (9140) +* +* * If KBD_TYPE is not defined, the default is type 4. +* +* KB3270 comments refers to KB 3270 keyboards in native emulation mode (DIP +* switches all OFF), and the Scancode Map used to convert its scancodes to +* standard scancode set 1. +* KB3270 <= 57 - this entry is reached by mapping from scancode 0x57 +* to an arbitrary scancode: the VK is what counts +* KB3270 => HOME - this scancode is mapped to the scancode for VK_HOME +* KB3270 - no mapping involved, a scancode for KB3270 only +* +* _EQ() : all keyboard types have the same virtual key for this scancode +* _NE() : different virtual keys for this scancode, depending on kbd type +* +* +------+ +--------+--------+--------+--------+--------+--------+ +* | Scan | | kbd | kbd | kbd | kbd | kbd | kbd | +* | code | | type 1 | type 2 | type 3 | type 4 | type 5 | type 6 | +\****+-------+-+--------+--------+--------+--------+--------+--------+******/ +#define T00 _EQ( _none_ ) +#define T01 _EQ( ESCAPE ) +#define T02 _EQ( '1' ) +#define T03 _EQ( '2' ) +#define T04 _EQ( '3' ) +#define T05 _EQ( '4' ) +#define T06 _EQ( '5' ) +#define T07 _EQ( '6' ) +#define T08 _EQ( '7' ) +#define T09 _EQ( '8' ) +#define T0A _EQ( '9' ) +#define T0B _EQ( '0' ) +#define T0C _EQ( OEM_MINUS ) +#define T0D _NE(OEM_PLUS,OEM_4, OEM_PLUS,OEM_PLUS,OEM_PLUS,OEM_PLUS) +#define T0E _EQ( BACK ) +#define T0F _EQ( TAB ) +#define T10 _EQ( 'Q' ) +#define T11 _EQ( 'W' ) +#define T12 _EQ( 'E' ) +#define T13 _EQ( 'R' ) +#define T14 _EQ( 'T' ) +#define T15 _EQ( 'Y' ) +#define T16 _EQ( 'U' ) +#define T17 _EQ( 'I' ) +#define T18 _EQ( 'O' ) +#define T19 _EQ( 'P' ) +#define T1A _NE(OEM_4, OEM_6, OEM_4, OEM_4, OEM_4, OEM_4 ) +#define T1B _NE(OEM_6, OEM_1, OEM_6, OEM_6, OEM_6, OEM_6 ) +#define T1C _EQ( RETURN ) +#define T1D _EQ( LCONTROL ) +#define T1E _EQ( 'A' ) +#define T1F _EQ( 'S' ) +#define T20 _EQ( 'D' ) +#define T21 _EQ( 'F' ) +#define T22 _EQ( 'G' ) +#define T23 _EQ( 'H' ) +#define T24 _EQ( 'J' ) +#define T25 _EQ( 'K' ) +#define T26 _EQ( 'L' ) +#define T27 _NE(OEM_1, OEM_PLUS,OEM_1, OEM_1, OEM_1, OEM_1 ) +#define T28 _NE(OEM_7, OEM_3, OEM_7, OEM_7, OEM_3, OEM_3 ) +#define T29 _NE(OEM_3, OEM_7, OEM_3, OEM_3, OEM_7, OEM_7 ) +#define T2A _EQ( LSHIFT ) +#define T2B _EQ( OEM_5 ) +#define T2C _EQ( 'Z' ) +#define T2D _EQ( 'X' ) +#define T2E _EQ( 'C' ) +#define T2F _EQ( 'V' ) +#define T30 _EQ( 'B' ) +#define T31 _EQ( 'N' ) +#define T32 _EQ( 'M' ) +#define T33 _EQ( OEM_COMMA ) +#define T34 _EQ( OEM_PERIOD ) +#define T35 _EQ( OEM_2 ) +#define T36 _EQ( RSHIFT ) +#define T37 _EQ( MULTIPLY ) +#define T38 _EQ( LMENU ) +#define T39 _EQ( ' ' ) +#define T3A _EQ( CAPITAL ) +#define T3B _EQ( F1 ) +#define T3C _EQ( F2 ) +#define T3D _EQ( F3 ) +#define T3E _EQ( F4 ) +#define T3F _EQ( F5 ) +#define T40 _EQ( F6 ) +#define T41 _EQ( F7 ) +#define T42 _EQ( F8 ) +#define T43 _EQ( F9 ) +#define T44 _EQ( F10 ) +#define T45 _EQ( NUMLOCK ) +#define T46 _EQ( SCROLL ) +#define T47 _EQ( HOME ) +#define T48 _EQ( UP ) +#define T49 _EQ( PRIOR ) +#define T4A _EQ( SUBTRACT ) +#define T4B _EQ( LEFT ) +#define T4C _EQ( CLEAR ) +#define T4D _EQ( RIGHT ) +#define T4E _EQ( ADD ) +#define T4F _EQ( END ) +#define T50 _EQ( DOWN ) +#define T51 _EQ( NEXT ) +#define T52 _EQ( INSERT ) +#define T53 _EQ( DELETE ) +#define T54 _EQ( SNAPSHOT ) +#define T55 _EQ( _none_ ) // KB3270 => DOWN +#define T56 _NE(OEM_102, HELP, OEM_102, OEM_102, _none_, OEM_PA2 ) // KB3270 => LEFT +#define T57 _NE(F11, RETURN, F11, F11, _none_, HELP ) // KB3270 => ZOOM +#define T58 _NE(F12, LEFT, F12, F12, _none_, OEM_102 ) // KB3270 => HELP +#define T59 _EQ( CLEAR ) +#define T5A _EQ( OEM_WSCTRL )// WSCtrl +#define T5B _EQ( OEM_FINISH )// Finish +#define T5C _EQ( OEM_JUMP )// Jump +#define T5D _EQ( EREOF ) +#define T5E _EQ( OEM_BACKTAB ) // KB3270 <= 7E +#define T5F _EQ( OEM_AUTO ) // KB3270 +#define T60 _EQ( _none_ ) +#define T61 _EQ( _none_ ) +#define T62 _EQ( ZOOM ) // KB3270 <= 57 +#define T63 _EQ( HELP ) // KB3270 <= 58 +#define T64 _EQ( F13 ) +#define T65 _EQ( F14 ) +#define T66 _EQ( F15 ) +#define T67 _EQ( F16 ) +#define T68 _EQ( F17 ) +#define T69 _EQ( F18 ) +#define T6A _EQ( F19 ) +#define T6B _EQ( F20 ) +#define T6C _EQ( F21 ) +#define T6D _EQ( F22 ) +#define T6E _EQ( F23 ) +#define T6F _EQ( OEM_PA3 ) // KB3270 +#define T70 _EQ( _none_ ) +#define T71 _EQ( OEM_RESET ) // KB3270 +#define T72 _EQ( _none_ ) +#define T73 _EQ( ABNT_C1 ) +#define T74 _EQ( _none_ ) +#define T75 _EQ( _none_ ) // KB3270 => RETURN +#define T76 _EQ( F24 ) +#define T77 _EQ( _none_ ) // KB3270 => HOME +#define T78 _EQ( _none_ ) // KB3270 => UP +#define T79 _EQ( _none_ ) // KB3270 => DELETE +#define T7A _EQ( _none_ ) // KB3270 => INSERT +#define T7B _EQ( OEM_PA1 ) // KB3270 +#define T7C _EQ( TAB ) // KB3270 => TAB +#define T7D _EQ( _none_ ) // KB3270 => RIGHT +#define T7E _EQ( ABNT_C2 ) // KB3270 => BACKTAB +#define T7F _EQ( OEM_PA2 ) // KB3270 + +#define X10 _EQ( MEDIA_PREV_TRACK ) // SpeedRacer +#define X19 _EQ( MEDIA_NEXT_TRACK ) // SpeedRacer +#define X1C _EQ( RETURN ) +#define X1D _EQ( RCONTROL ) +#define X20 _EQ( VOLUME_MUTE ) // SpeedRacer +#define X21 _EQ( LAUNCH_APP2 ) // SpeedRacer (Calculator?) +#define X22 _EQ( MEDIA_PLAY_PAUSE ) // SpeedRacer +#define X24 _EQ( MEDIA_STOP ) // SpeedRacer +#define X2E _EQ( VOLUME_DOWN ) // SpeedRacer +#define X30 _EQ( VOLUME_UP ) // SpeedRacer +#define X32 _EQ( BROWSER_HOME ) // SpeedRacer +#define X35 _EQ( DIVIDE ) +#define X37 _EQ( SNAPSHOT ) +#define X38 _EQ( RMENU ) +#define X46 _EQ( CANCEL ) +#define X47 _EQ( HOME ) +#define X48 _EQ( UP ) +#define X49 _EQ( PRIOR ) +#define X4B _EQ( LEFT ) +#define X4D _EQ( RIGHT ) +#define X4F _EQ( END ) +#define X50 _EQ( DOWN ) +#define X51 _NE(NEXT, F1, NEXT, NEXT, _none_, OEM_PA2 ) +#define X52 _EQ( INSERT ) +#define X53 _EQ( DELETE ) +#define X5B _EQ( LWIN ) +#define X5C _EQ( RWIN ) +#define X5D _EQ( APPS ) +#define X5E _EQ( POWER ) +#define X5F _EQ( SLEEP ) // SpeedRacer +#define X65 _EQ( BROWSER_SEARCH ) // SpeedRacer +#define X66 _EQ( BROWSER_FAVORITES ) // SpeedRacer +#define X67 _EQ( BROWSER_REFRESH ) // SpeedRacer +#define X68 _EQ( BROWSER_STOP ) // SpeedRacer +#define X69 _EQ( BROWSER_FORWARD ) // SpeedRacer +#define X6A _EQ( BROWSER_BACK ) // SpeedRacer +#define X6B _EQ( LAUNCH_APP1 ) // SpeedRacer (my computer?) +#define X6C _EQ( LAUNCH_MAIL ) // SpeedRacer +#define X6D _EQ( LAUNCH_MEDIA_SELECT ) // SpeedRacer + + + /* + * The break key is sent to us as E1,LCtrl,NumLock + * We must convert the E1+LCtrl to BREAK, then ignore the Numlock + */ +#define Y1D _EQ( PAUSE ) + +#elif (KBD_TYPE >= 7) && (KBD_TYPE <= 16) +/***********************************************************************************\ +* T** - Values for ausVK[] (Virtual Scan Code to Virtual Key conversion) +* +* Three sets of keyboards are supported, according to KBD_TYPE: +* +* KBD_TYPE Keyboard (examples) +* ======== ===================================== +* 7 Japanese IBM type 002 keyboard. +* 8 * Japanese OADG (106) keyboard. +* 10 Korean 101 (type A) keyboard. +* 11 Korean 101 (type B) keyboard. +* 12 Korean 101 (type C) keyboard. +* 13 Korean 103 keyboard. +* 16 Japanese AX keyboard. +* +* +------+ +----------+----------+----------+----------+----------+----------+----------+ +* | Scan | | kbd | kbd | kbd | kbd | kbd | kbd | kbd | +* | code | | type 7 | type 8 | type 16 | type 10 | type 11 | type 12 | type 13 | +\****+-------+-+----------+----------+----------+----------+----------+----------+----------+*/ +#define T00 _EQ( _none_ ) +#define T01 _EQ( ESCAPE ) +#define T02 _EQ( '1' ) +#define T03 _EQ( '2' ) +#define T04 _EQ( '3' ) +#define T05 _EQ( '4' ) +#define T06 _EQ( '5' ) +#define T07 _EQ( '6' ) +#define T08 _EQ( '7' ) +#define T09 _EQ( '8' ) +#define T0A _EQ( '9' ) +#define T0B _EQ( '0' ) +#define T0C _EQ( OEM_MINUS ) +#define T0D _NE(OEM_7, OEM_7, OEM_PLUS, OEM_PLUS, OEM_PLUS, OEM_PLUS, OEM_PLUS ) +#define T0E _EQ( BACK ) +#define T0F _EQ( TAB ) +#define T10 _EQ( 'Q' ) +#define T11 _EQ( 'W' ) +#define T12 _EQ( 'E' ) +#define T13 _EQ( 'R' ) +#define T14 _EQ( 'T' ) +#define T15 _EQ( 'Y' ) +#define T16 _EQ( 'U' ) +#define T17 _EQ( 'I' ) +#define T18 _EQ( 'O' ) +#define T19 _EQ( 'P' ) +#define T1A _NE(OEM_4, OEM_3, OEM_4, OEM_4, OEM_4, OEM_4, OEM_4 ) +#define T1B _NE(OEM_6, OEM_4, OEM_6, OEM_6, OEM_6, OEM_6, OEM_6 ) +#define T1C _EQ( RETURN ) +#define T1D _EQ( LCONTROL ) +#define T1E _EQ( 'A' ) +#define T1F _EQ( 'S' ) +#define T20 _EQ( 'D' ) +#define T21 _EQ( 'F' ) +#define T22 _EQ( 'G' ) +#define T23 _EQ( 'H' ) +#define T24 _EQ( 'J' ) +#define T25 _EQ( 'K' ) +#define T26 _EQ( 'L' ) +#define T27 _NE(OEM_PLUS, OEM_PLUS, OEM_1, OEM_1, OEM_1, OEM_1, OEM_1 ) +#define T28 _NE(OEM_1, OEM_1, OEM_7, OEM_7, OEM_7, OEM_7, OEM_7 ) +#define T29 _NE(OEM_3, DBE_SBCSCHAR,OEM_3, OEM_3, OEM_3, OEM_3, OEM_3 ) +#define T2A _EQ( LSHIFT ) +#define T2B _NE(OEM_5, OEM_6, OEM_5, OEM_5, OEM_5, OEM_5, OEM_5 ) +#define T2C _EQ( 'Z' ) +#define T2D _EQ( 'X' ) +#define T2E _EQ( 'C' ) +#define T2F _EQ( 'V' ) +#define T30 _EQ( 'B' ) +#define T31 _EQ( 'N' ) +#define T32 _EQ( 'M' ) +#define T33 _EQ( OEM_COMMA ) +#define T34 _EQ( OEM_PERIOD ) +#define T35 _EQ( OEM_2 ) +#define T36 _EQ( RSHIFT ) +#define T37 _EQ( MULTIPLY ) +#define T38 _EQ( LMENU ) +#define T39 _EQ( ' ' ) +#define T3A _NE(DBE_ALPHANUMERIC,DBE_ALPHANUMERIC,CAPITAL,CAPITAL,CAPITAL,CAPITAL,CAPITAL ) +#define T3B _EQ( F1 ) +#define T3C _EQ( F2 ) +#define T3D _EQ( F3 ) +#define T3E _EQ( F4 ) +#define T3F _EQ( F5 ) +#define T40 _EQ( F6 ) +#define T41 _EQ( F7 ) +#define T42 _EQ( F8 ) +#define T43 _EQ( F9 ) +#define T44 _EQ( F10 ) +#define T45 _EQ( NUMLOCK ) +#define T46 _EQ( SCROLL ) +#define T47 _EQ( HOME ) +#define T48 _EQ( UP ) +#define T49 _EQ( PRIOR ) +#define T4A _EQ( SUBTRACT ) +#define T4B _EQ( LEFT ) +#define T4C _EQ( CLEAR ) +#define T4D _EQ( RIGHT ) +#define T4E _EQ( ADD ) +#define T4F _EQ( END ) +#define T50 _EQ( DOWN ) +#define T51 _EQ( NEXT ) +#define T52 _EQ( INSERT ) +#define T53 _EQ( DELETE ) +#define T54 _EQ( SNAPSHOT ) +#define T55 _EQ( _none_ ) +#define T56 _NE(_none_, _none_, OEM_102, OEM_102, OEM_102, OEM_102, OEM_102 ) +#define T57 _EQ( F11 ) +#define T58 _EQ( F12 ) +#define T59 _EQ( CLEAR ) +#define T5A _NE(NONAME, NONAME, NONCONVERT,OEM_WSCTRL,OEM_WSCTRL,OEM_WSCTRL,OEM_WSCTRL) +#define T5B _NE(NONAME, NONAME, CONVERT, OEM_FINISH,OEM_FINISH,OEM_FINISH,OEM_FINISH) +#define T5C _NE(NONAME, NONAME, OEM_AX, OEM_JUMP, OEM_JUMP, OEM_JUMP, OEM_JUMP ) +#define T5D _EQ( EREOF ) +#define T5E _NE(_none_, _none_, _none_, OEM_BACKTAB,OEM_BACKTAB,OEM_BACKTAB,OEM_BACKTAB) +#define T5F _NE(NONAME, NONAME, NONAME, OEM_AUTO, OEM_AUTO, OEM_AUTO, OEM_AUTO ) +#define T60 _EQ( _none_ ) +#define T61 _NE(_none_, _none_, _none_, ZOOM, ZOOM, ZOOM, ZOOM ) +#define T62 _NE(_none_, _none_, _none_, HELP, HELP, HELP, HELP ) +#define T63 _EQ( _none_ ) +#define T64 _EQ( F13 ) +#define T65 _EQ( F14 ) +#define T66 _EQ( F15 ) +#define T67 _EQ( F16 ) +#define T68 _EQ( F17 ) +#define T69 _EQ( F18 ) +#define T6A _EQ( F19 ) +#define T6B _EQ( F20 ) +#define T6C _EQ( F21 ) +#define T6D _EQ( F22 ) +#define T6E _EQ( F23 ) +#define T6F _NE(_none_, _none_, _none_, OEM_PA3, OEM_PA3, OEM_PA3, OEM_PA3 ) +#define T70 _NE(DBE_KATAKANA,DBE_HIRAGANA,_none_,_none_, _none_, _none_, _none_ ) +#define T71 _NE(_none_, _none_, _none_, OEM_RESET, OEM_RESET, OEM_RESET, OEM_RESET ) +#define T72 _EQ( _none_ ) +#define T73 _NE(OEM_102, OEM_102, _none_, ABNT_C1, ABNT_C1, ABNT_C1, ABNT_C1 ) +#define T74 _EQ( _none_ ) +#define T75 _EQ( _none_ ) +#define T76 _EQ( F24 ) +#define T77 _NE(DBE_SBCSCHAR,_none_, _none_, _none_, _none_, _none_, _none_ ) +#define T78 _EQ( _none_ ) +#define T79 _NE(CONVERT, CONVERT, _none_, _none_, _none_, _none_, _none_ ) +#define T7A _EQ( _none_ ) +#define T7B _NE(NONCONVERT,NONCONVERT,_none_, OEM_PA1, OEM_PA1, OEM_PA1, OEM_PA1 ) +#define T7C _EQ( TAB ) +#define T7D _NE(_none_, OEM_5, _none_, _none_, _none_, _none_, _none_ ) +#define T7E _EQ( ABNT_C2 ) +#define T7F _EQ( OEM_PA2 ) + +#define X10 _EQ( MEDIA_PREV_TRACK ) // SpeedRacer +#define X19 _EQ( MEDIA_NEXT_TRACK ) // SpeedRacer +#define X1C _EQ( RETURN ) +#define X1D _NE(RCONTROL, RCONTROL,DBE_KATAKANA,HANJA, HANGEUL, RCONTROL, RCONTROL ) +#define X20 _EQ( VOLUME_MUTE ) // SpeedRacer +#define X21 _EQ( LAUNCH_APP2 ) // SpeedRacer +#define X22 _EQ( MEDIA_PLAY_PAUSE ) // SpeedRacer +#define X24 _EQ( MEDIA_STOP ) // SpeedRacer +#define X2E _EQ( VOLUME_DOWN ) // SpeedRacer +#define X30 _EQ( VOLUME_UP ) // SpeedRacer +#define X32 _EQ( BROWSER_HOME ) // SpeedRacer +#define X33 _NE(OEM_8, _none_, _none_, _none_, _none_, _none_, _none_ ) +#define X35 _EQ( DIVIDE ) +#define X37 _EQ( SNAPSHOT ) +#define X38 _NE(DBE_HIRAGANA,RMENU, KANJI, HANGEUL, HANJA, RMENU, RMENU ) +#define X42 _EQ( _none_ ) +#define X43 _EQ( _none_ ) +#define X44 _EQ( _none_ ) +#define X46 _EQ( CANCEL ) +#define X47 _EQ( HOME ) +#define X48 _EQ( UP ) +#define X49 _EQ( PRIOR ) +#define X4B _EQ( LEFT ) +#define X4D _EQ( RIGHT ) +#define X4F _EQ( END ) +#define X50 _EQ( DOWN ) +#define X51 _EQ( NEXT ) +#define X52 _EQ( INSERT ) +#define X53 _EQ( DELETE ) +#define X5B _EQ( LWIN ) +#define X5C _EQ( RWIN ) +#define X5D _EQ( APPS ) +#define X5E _EQ( POWER ) +#define X5F _EQ( SLEEP ) +#define X65 _EQ( BROWSER_SEARCH ) // SpeedRacer +#define X66 _EQ( BROWSER_FAVORITES ) // SpeedRacer +#define X67 _EQ( BROWSER_REFRESH ) // SpeedRacer +#define X68 _EQ( BROWSER_STOP ) // SpeedRacer +#define X69 _EQ( BROWSER_FORWARD ) // SpeedRacer +#define X6A _EQ( BROWSER_BACK ) // SpeedRacer +#define X6B _EQ( LAUNCH_APP1 ) // SpeedRacer +#define X6C _EQ( LAUNCH_MAIL ) // SpeedRacer +#define X6D _EQ( LAUNCH_MEDIA_SELECT ) // SpeedRacer +#define XF1 _NE(_none_, IME_OFF, _none_, HANJA, HANJA, HANJA, HANJA ) +#define XF2 _NE(_none_, IME_ON, _none_, HANGEUL, HANGEUL, HANGEUL, HANGEUL ) + + /* + * The break key is sent to us as E1,LCtrl,NumLock + * We must convert the E1+LCtrl to BREAK, then ignore the Numlock + */ +#define Y1D _EQ( PAUSE ) + +#elif (KBD_TYPE > 20) && (KBD_TYPE <= 22) +/***********************************************************************\ +* T** - Values for ausVK[] (Virtual Scan Code to Virtual Key conversion) +* +* Three sets of keyboards are supported, according to KBD_TYPE: +* +* KBD_TYPE Keyboard (examples) +* ======== ===================================== +* 20 Fujitsu FMR JIS keyboard. +* 21 Fujitsu FMR OYAYUBI keyboard. +* 22 * Fujitsu FMV OYAYUBI keyboard. +* +* +------+ +----------+----------+----------+ +* | Scan | | kbd | kbd | kbd | +* | code | | type 20 | type 21 | type 22 | +\****+-------+-+----------+----------+----------+***********************/ +#define T00 _EQ( _none_ ) +#define T01 _EQ( ESCAPE ) +#define T02 _EQ( '1' ) +#define T03 _EQ( '2' ) +#define T04 _EQ( '3' ) +#define T05 _EQ( '4' ) +#define T06 _EQ( '5' ) +#define T07 _EQ( '6' ) +#define T08 _EQ( '7' ) +#define T09 _EQ( '8' ) +#define T0A _EQ( '9' ) +#define T0B _EQ( '0' ) +#define T0C _EQ( OEM_MINUS ) +#define T0D _EQ( OEM_7 ) +#define T0E _NE(OEM_5, OEM_5, BACK ) +#define T0F _NE(BACK, BACK, TAB ) +#define T10 _NE(TAB, TAB, 'Q' ) +#define T11 _NE('Q', 'Q', 'W' ) +#define T12 _NE('W', 'W', 'E' ) +#define T13 _NE('E', 'E', 'R' ) +#define T14 _NE('R', 'R', 'T' ) +#define T15 _NE('T', 'T', 'Y' ) +#define T16 _NE('Y', 'Y', 'U' ) +#define T17 _NE('U', 'U', 'I' ) +#define T18 _NE('I', 'I', 'O' ) +#define T19 _NE('O', 'O', 'P' ) +#define T1A _NE('P', 'P', OEM_3 ) +#define T1B _NE(OEM_3, OEM_3, OEM_4 ) +#define T1C _NE(OEM_4, OEM_4, RETURN ) +#define T1D _NE(RETURN, RETURN, LCONTROL ) +#define T1E _EQ( 'A' ) +#define T1F _EQ( 'S' ) +#define T20 _EQ( 'D' ) +#define T21 _EQ( 'F' ) +#define T22 _EQ( 'G' ) +#define T23 _EQ( 'H' ) +#define T24 _EQ( 'J' ) +#define T25 _EQ( 'K' ) +#define T26 _EQ( 'L' ) +#define T27 _EQ( OEM_PLUS ) +#define T28 _EQ( OEM_1 ) +#define T29 _NE(OEM_6, OEM_6, DBE_SBCSCHAR) +#define T2A _NE('Z', 'Z', LSHIFT ) +#define T2B _NE('X', 'X', OEM_6 ) +#define T2C _NE('C', 'C', 'Z' ) +#define T2D _NE('V', 'V', 'X' ) +#define T2E _NE('B', 'B', 'C' ) +#define T2F _NE('N', 'N', 'V' ) +#define T30 _NE('M', 'M', 'B' ) +#define T31 _NE(OEM_COMMA, OEM_COMMA, 'N' ) +#define T32 _NE(OEM_PERIOD,OEM_PERIOD,'M' ) +#define T33 _NE(OEM_2, OEM_2, OEM_COMMA ) +#define T34 _NE(OEM_8, OEM_8, OEM_PERIOD) +#define T35 _NE(' ', ' ', OEM_2 ) +#define T36 _NE(MULTIPLY, MULTIPLY, RSHIFT ) +#define T37 _NE(DIVIDE, DIVIDE, MULTIPLY ) +#define T38 _NE(ADD, ADD, LMENU ) +#define T39 _NE(SUBTRACT, SUBTRACT, ' ' ) +#define T3A _NE(NUMPAD7, NUMPAD7, DBE_ALPHANUMERIC) +#define T3B _NE(NUMPAD8, NUMPAD8, F1 ) +#define T3C _NE(NUMPAD9, NUMPAD9, F2 ) +#define T3D _NE(EQUAL, EQUAL, F3 ) +#define T3E _NE(NUMPAD4, NUMPAD4, F4 ) +#define T3F _NE(NUMPAD5, NUMPAD5, F5 ) +#define T40 _NE(NUMPAD6, NUMPAD6, F6 ) +#define T41 _NE(SEPARATOR, SEPARATOR, F7 ) +#define T42 _NE(NUMPAD1, NUMPAD1, F8 ) +#define T43 _NE(NUMPAD2, NUMPAD2, F9 ) +#define T44 _NE(NUMPAD3, NUMPAD3, F10 ) +#define T45 _NE(RETURN, RETURN, NUMLOCK ) +#define T46 _NE(NUMPAD0, NUMPAD0, SCROLL ) +#define T47 _NE(DECIMAL, DECIMAL, HOME ) +#define T48 _NE(INSERT, INSERT, UP ) +#define T49 _NE(OEM_00, OEM_00, PRIOR ) +#define T4A _NE(OEM_000, OEM_000, SUBTRACT ) +#define T4B _NE(DELETE, DELETE, LEFT ) +#define T4C _NE(_none_, _none_, CLEAR ) +#define T4D _NE(UP, UP, RIGHT ) +#define T4E _NE(HOME, HOME, ADD ) +#define T4F _NE(LEFT, LEFT, END ) +#define T50 _EQ( DOWN ) +#define T51 _NE(RIGHT, RIGHT, NEXT ) +#define T52 _NE(LCONTROL, LCONTROL, INSERT ) +#define T53 _NE(LSHIFT, LSHIFT, DELETE ) +#define T54 _NE(_none_, _none_, SNAPSHOT ) +#define T55 _NE(CAPITAL, _none_, _none_ ) +#define T56 _NE(DBE_HIRAGANA,_none_, _none_ ) +#define T57 _NE(NONCONVERT,NONCONVERT,F11 ) +#define T58 _NE(CONVERT, CONVERT, F12 ) +#define T59 _NE(KANJI, KANJI, CLEAR ) +#define T5A _NE(DBE_KATAKANA,_none_, NONAME ) +#define T5B _NE(F12, F12, NONAME ) +#define T5C _NE(LMENU, LMENU, NONAME ) +#define T5D _NE(F1, F1, EREOF ) +#define T5E _NE(F2, F2, _none_ ) +#define T5F _NE(F3, F3, NONAME ) +#define T60 _NE(F4, F4, _none_ ) +#define T61 _NE(F5, F5, _none_ ) +#define T62 _NE(F6, F6, _none_ ) +#define T63 _NE(F7, F7, _none_ ) +#define T64 _NE(F8, F8, F13 ) +#define T65 _NE(F9, F9, F14 ) +#define T66 _NE(F10, F10, F15 ) +#define T67 _NE(_none_, OEM_LOYA, F16 ) +#define T68 _NE(_none_, OEM_ROYA, F17 ) +#define T69 _NE(F11, F11, F18 ) +#define T6A _NE(_none_, DBE_ALPHANUMERIC,F19 ) +#define T6B _NE(OEM_JISHO, OEM_JISHO, F20 ) +#define T6C _NE(OEM_MASSHOU,OEM_MASSHOU,F21 ) +#define T6D _NE(_none_, _none_, F22 ) +#define T6E _NE(PRIOR, PRIOR, F23 ) +#define T6F _NE(_none_, DBE_KATAKANA,_none_ ) +#define T70 _NE(NEXT, NEXT, DBE_HIRAGANA) +#define T71 _EQ( _none_ ) +#define T72 _NE(CANCEL, CANCEL, _none_ ) +#define T73 _NE(EXECUTE, EXECUTE, OEM_102 ) +#define T74 _NE(F13, F13, _none_ ) +#define T75 _NE(F14, F14, _none_ ) +#define T76 _NE(F15, F15, F24 ) +#define T77 _NE(F16, F16, _none_ ) +#define T78 _NE(CLEAR, CLEAR, _none_ ) +#define T79 _NE(HELP, HELP, CONVERT ) +#define T7A _NE(END, END, _none_ ) +#define T7B _NE(SCROLL, SCROLL, NONCONVERT) +#define T7C _NE(PAUSE, PAUSE, TAB ) +#define T7D _NE(SNAPSHOT, SNAPSHOT, OEM_5 ) +#define T7E _NE(_none_, _none_, ABNT_C2 ) +#define T7F _NE(_none_, _none_, OEM_PA2 ) + +#define X1C _NE(_none_, _none_, RETURN ) +#define X1D _NE(_none_, _none_, RCONTROL ) +#define X33 _EQ( _none_ ) +#define X35 _NE(_none_, _none_, DIVIDE ) +#define X37 _NE(_none_, _none_, SNAPSHOT ) +#define X38 _NE(_none_, _none_, RMENU ) +#define X42 _EQ( _none_ ) +#define X43 _EQ( _none_ ) +#define X44 _EQ( _none_ ) +#define X46 _NE(_none_, _none_, CANCEL ) +#define X47 _NE(_none_, _none_, HOME ) +#define X48 _NE(_none_, _none_, UP ) +#define X49 _NE(_none_, _none_, PRIOR ) +#define X4B _NE(_none_, _none_, LEFT ) +#define X4D _NE(_none_, _none_, RIGHT ) +#define X4F _NE(_none_, _none_, END ) +#define X50 _NE(_none_, _none_, DOWN ) +#define X51 _NE(_none_, _none_, NEXT ) +#define X52 _NE(_none_, _none_, INSERT ) +#define X53 _NE(_none_, _none_, DELETE ) +#define X5B _NE(_none_, _none_, LWIN ) +#define X5C _NE(_none_, _none_, RWIN ) +#define X5D _NE(_none_, _none_, APPS ) +#define X5E _EQ( POWER ) +#define X5F _EQ( SLEEP ) +#define X60 _NE(SCROLL, SCROLL, _none_ ) +#define X61 _NE(HOME, HOME, _none_ ) +#define X62 _NE(END, END, _none_ ) +#define X63 _EQ( _none_ ) +#define X64 _EQ( _none_ ) +#define X65 _EQ( _none_ ) +#define X66 _EQ( _none_ ) +#define X6D _NE(OEM_TOUROKU,OEM_TOUROKU,_none_ ) +#define X71 _NE(DBE_SBCSCHAR,DBE_SBCSCHAR,_none_) +#define X74 _EQ( _none_ ) +#define X75 _EQ( _none_ ) +#define X76 _EQ( _none_ ) +#define X77 _EQ( _none_ ) +#define X78 _EQ( _none_ ) +#define X79 _EQ( _none_ ) +#define X7A _EQ( _none_ ) +#define X7B _EQ( _none_ ) + + /* + * The break key is sent to us as E1,LCtrl,NumLock + * We must convert the E1+LCtrl to BREAK, then ignore the Numlock + * which must be ignored. Alternatively, translate Ctrl-Numlock + * to break, but don't let the CTRL through as a WM_KEYUP/DOWN) ? + */ +#define Y1D _EQ( PAUSE ) + +#elif (KBD_TYPE >= 30) && (KBD_TYPE <= 34) +/***********************************************************************\ +* T** - Values for ausVK[] (Virtual Scan Code to Virtual Key conversion) +* +* Three sets of keyboards are supported, according to KBD_TYPE: +* +* KBD_TYPE Keyboard (examples) +* ======== ===================================== +* 30 * NEC PC-9800 Normal Keyboard. +* 31 NEC PC-9800 Document processor Keyboard. - not supported on NT5 +* 32 NEC PC-9800 106 Keyboard. - same as KBD_TYPE 8 +* 33 NEC PC-9800 for Hydra: PC-9800 Keyboard on Windows NT 5.0. +* NEC PC-98NX for Hydra: PC-9800 Keyboard on Windows 95/NT. +* 34 NEC PC-9800 for Hydra: PC-9800 Keyboard on Windows NT 3.51/4.0. +* +* +------+ +----------+----------+----------+ +* | Scan | | kbd | kbd | kbd | +* | code | | type 30 | type 33 | type 34 | +\****+-------+-+----------+----------+----------+***********************/ +#define T00 _EQ(_none_ ) +#define T01 _EQ(ESCAPE ) +#define T02 _EQ('1' ) +#define T03 _EQ('2' ) +#define T04 _EQ('3' ) +#define T05 _EQ('4' ) +#define T06 _EQ('5' ) +#define T07 _EQ('6' ) +#define T08 _EQ('7' ) +#define T09 _EQ('8' ) +#define T0A _EQ('9' ) +#define T0B _EQ('0' ) +#define T0C _EQ(OEM_MINUS ) +#define T0D _NE(OEM_7, OEM_7, OEM_PLUS ) +#define T0E _EQ(BACK ) +#define T0F _EQ(TAB ) +#define T10 _EQ('Q' ) +#define T11 _EQ('W' ) +#define T12 _EQ('E' ) +#define T13 _EQ('R' ) +#define T14 _EQ('T' ) +#define T15 _EQ('Y' ) +#define T16 _EQ('U' ) +#define T17 _EQ('I' ) +#define T18 _EQ('O' ) +#define T19 _EQ('P' ) +#define T1A _NE(OEM_3, OEM_3, OEM_4 ) +#define T1B _NE(OEM_4, OEM_4, OEM_6 ) +#define T1C _EQ(RETURN ) +#define T1D _EQ(LCONTROL ) +#define T1E _EQ('A' ) +#define T1F _EQ('S' ) +#define T20 _EQ('D' ) +#define T21 _EQ('F' ) +#define T22 _EQ('G' ) +#define T23 _EQ('H' ) +#define T24 _EQ('J' ) +#define T25 _EQ('K' ) +#define T26 _EQ('L' ) +#define T27 _NE(OEM_PLUS, OEM_PLUS, OEM_1 ) +#define T28 _NE(OEM_1, OEM_1, OEM_7 ) +#define T29 _NE(DBE_SBCSCHAR, \ + DBE_SBCSCHAR, \ + OEM_3 ) +#define T2A _EQ(LSHIFT ) +#define T2B _NE(OEM_6, OEM_6, OEM_5 ) +#define T2C _EQ('Z' ) +#define T2D _EQ('X' ) +#define T2E _EQ('C' ) +#define T2F _EQ('V' ) +#define T30 _EQ('B' ) +#define T31 _EQ('N' ) +#define T32 _EQ('M' ) +#define T33 _EQ(OEM_COMMA ) +#define T34 _EQ(OEM_PERIOD ) +#define T35 _EQ(OEM_2 ) +#define T36 _EQ(RSHIFT ) +#define T37 _EQ(MULTIPLY ) +#define T38 _EQ(LMENU ) +#define T39 _EQ(' ' ) +#define T3A _EQ(CAPITAL ) +#define T3B _EQ(F1 ) +#define T3C _EQ(F2 ) +#define T3D _EQ(F3 ) +#define T3E _EQ(F4 ) +#define T3F _EQ(F5 ) +#define T40 _EQ(F6 ) +#define T41 _EQ(F7 ) +#define T42 _EQ(F8 ) +#define T43 _EQ(F9 ) +#define T44 _EQ(F10 ) +#define T45 _EQ(NUMLOCK ) +#define T46 _EQ(SCROLL ) +#define T47 _EQ(HOME ) +#define T48 _EQ(UP ) +#define T49 _EQ(PRIOR ) +#define T4A _EQ(SUBTRACT ) +#define T4B _EQ(LEFT ) +#define T4C _EQ(CLEAR ) +#define T4D _EQ(RIGHT ) +#define T4E _EQ(ADD ) +#define T4F _EQ(END ) +#define T50 _EQ(DOWN ) +#define T51 _EQ(NEXT ) +#define T52 _EQ(INSERT ) +#define T53 _EQ(DELETE ) +#define T54 _EQ(SNAPSHOT ) +#define T55 _NE(_none_, _none_, OEM_8 ) +#define T56 _EQ(_none_ ) +#define T57 _EQ(F11 ) +#define T58 _EQ(F12 ) +#define T59 _EQ(OEM_NEC_EQUAL ) +#define T5A _NE(NONAME, NONAME, NONCONVERT) +#define T5B _NE(_none_, _none_, NONAME ) +#define T5C _EQ(SEPARATOR ) +#define T5D _EQ(F13 ) +#define T5E _EQ(F14 ) +#define T5F _EQ(F15 ) +#define T60 _EQ(_none_ ) +#define T61 _EQ(_none_ ) +#define T62 _EQ(_none_ ) +#define T63 _EQ(_none_ ) +#define T64 _NE(_none_, _none_, F13 ) +#define T65 _NE(_none_, _none_, F14 ) +#define T66 _NE(_none_, _none_, F15 ) +#define T67 _NE(_none_, _none_, F16 ) +#define T68 _NE(_none_, _none_, F17 ) +#define T69 _NE(_none_, _none_, F18 ) +#define T6A _NE(_none_, _none_, F19 ) +#define T6B _NE(_none_, _none_, F20 ) +#define T6C _NE(_none_, _none_, F21 ) +#define T6D _NE(_none_, _none_, F22 ) +#define T6E _NE(_none_, _none_, F23 ) +#define T6F _EQ(_none_ ) +#define T70 _NE(KANA, KANA, DBE_HIRAGANA) +#define T71 _EQ(_none_ ) +#define T72 _EQ(_none_ ) +#define T73 _NE(OEM_8, OEM_8, _none_ ) +#define T74 _NE(_none_, OEM_NEC_EQUAL, \ + _none_ ) +#define T75 _NE(_none_, SEPARATOR, _none_ ) +#define T76 _NE(_none_, _none_, F24 ) +#define T77 _NE(_none_, _none_, DBE_SBCSCHAR) +#define T78 _EQ(_none_ ) +#define T79 _EQ(CONVERT ) +#define T7A _EQ(_none_ ) +#define T7B _EQ(NONCONVERT ) +#define T7C _NE(TAB, _none_, _none_ ) +#define T7D _NE(OEM_5, OEM_5, _none_ ) +#define T7E _NE(ABNT_C2, ABNT_C2, _none_ ) +#define T7F _NE(OEM_PA2, OEM_PA2, _none_ ) + +#define X1C _EQ(RETURN ) +#define X1D _NE(RCONTROL, RCONTROL, KANA ) +#define X33 _EQ(_none_ ) +#define X35 _EQ(DIVIDE ) +#define X37 _EQ(SNAPSHOT ) +#define X38 _NE(_none_, _none_, KANJI ) +#define X42 _NE(_none_, _none_, RCONTROL ) +#define X43 _NE(_none_, _none_, RMENU ) +#define X44 _EQ(_none_ ) +#define X46 _EQ(CANCEL ) +#define X47 _EQ(HOME ) +#define X48 _EQ(UP ) +#define X49 _EQ(PRIOR ) +#define X4B _EQ(LEFT ) +#define X4D _EQ(RIGHT ) +#define X4F _EQ(END ) +#define X50 _EQ(DOWN ) +#define X51 _EQ(NEXT ) +#define X52 _EQ(INSERT ) +#define X53 _EQ(DELETE ) +#define X5B _EQ(LWIN ) +#define X5C _EQ(RWIN ) +#define X5D _EQ(APPS ) +#define X5E _EQ(POWER ) +#define X5F _EQ(SLEEP ) +#define X60 _EQ(_none_ ) +#define X61 _EQ(_none_ ) +#define X62 _EQ(_none_ ) +#define X63 _EQ(_none_ ) +#define X64 _EQ(_none_ ) +#define X65 _EQ(_none_ ) +#define X66 _EQ(_none_ ) +#define X6D _EQ(_none_ ) +#define X71 _EQ(_none_ ) +#define X74 _EQ(_none_ ) +#define X75 _EQ(_none_ ) +#define X76 _EQ(_none_ ) +#define X77 _EQ(_none_ ) +#define X78 _EQ(_none_ ) +#define X79 _EQ(_none_ ) +#define X7A _EQ(_none_ ) +#define X7B _EQ(_none_ ) + /* + * The break key is sent to us as E1,LCtrl,NumLock + * We must convert the E1+LCtrl to BREAK, then ignore the Numlock + * which must be ignored. Alternatively, translate Ctrl-Numlock + * to break, but don't let the CTRL through as a WM_KEYUP/DOWN) ? + */ +#define Y1D _EQ(PAUSE ) + +#elif (KBD_TYPE == 37) +/***********************************************************************\ +* T** - Values for ausVK[] (Virtual Scan Code to Virtual Key conversion) +* +* Three sets of keyboards are supported, according to KBD_TYPE: +* +* KBD_TYPE Keyboard (examples) +* ======== ===================================== +* 37 * NEC PC-9800 for Hydra: PC-9800 Keyboard on Windows 95. +* +* +------+ +----------+ +* | Scan | | kbd | +* | code | | type 37 | +\****+-------+-+----------+*********************************************/ +#define T00 _EQ(ESCAPE ) +#define T01 _EQ('1' ) +#define T02 _EQ('2' ) +#define T03 _EQ('3' ) +#define T04 _EQ('4' ) +#define T05 _EQ('5' ) +#define T06 _EQ('6' ) +#define T07 _EQ('7' ) +#define T08 _EQ('8' ) +#define T09 _EQ('9' ) +#define T0A _EQ('0' ) +#define T0B _EQ(OEM_MINUS ) +#define T0C _EQ(OEM_7 ) +#define T0D _EQ(OEM_5 ) +#define T0E _EQ(BACK ) +#define T0F _EQ(TAB ) +#define T10 _EQ('Q' ) +#define T11 _EQ('W' ) +#define T12 _EQ('E' ) +#define T13 _EQ('R' ) +#define T14 _EQ('T' ) +#define T15 _EQ('Y' ) +#define T16 _EQ('U' ) +#define T17 _EQ('I' ) +#define T18 _EQ('O' ) +#define T19 _EQ('P' ) +#define T1A _EQ(OEM_3 ) +#define T1B _EQ(OEM_4 ) +#define T1C _EQ(RETURN ) +#define T1D _EQ('A' ) +#define T1E _EQ('S' ) +#define T1F _EQ('D' ) +#define T20 _EQ('F' ) +#define T21 _EQ('G' ) +#define T22 _EQ('H' ) +#define T23 _EQ('J' ) +#define T24 _EQ('K' ) +#define T25 _EQ('L' ) +#define T26 _EQ(OEM_PLUS ) +#define T27 _EQ(OEM_1 ) +#define T28 _EQ(OEM_6 ) +#define T29 _EQ('Z' ) +#define T2A _EQ('X' ) +#define T2B _EQ('C' ) +#define T2C _EQ('V' ) +#define T2D _EQ('B' ) +#define T2E _EQ('N' ) +#define T2F _EQ('M' ) +#define T30 _EQ(OEM_COMMA ) +#define T31 _EQ(OEM_PERIOD) +#define T32 _EQ(OEM_2 ) +#define T33 _EQ(OEM_8 ) +#define T34 _EQ(' ' ) +#define T35 _EQ(CONVERT ) +#define T36 _EQ(NEXT ) +#define T37 _EQ(PRIOR ) +#define T38 _EQ(INSERT ) +#define T39 _EQ(DELETE ) +#define T3A _EQ(UP ) +#define T3B _EQ(LEFT ) +#define T3C _EQ(RIGHT ) +#define T3D _EQ(DOWN ) +#define T3E _EQ(HOME ) +#define T3F _EQ(END ) +#define T40 _EQ(SUBTRACT ) +#define T41 _EQ(DIVIDE ) +#define T42 _EQ(NUMPAD7 ) +#define T43 _EQ(NUMPAD8 ) +#define T44 _EQ(NUMPAD9 ) +#define T45 _EQ(MULTIPLY ) +#define T46 _EQ(NUMPAD4 ) +#define T47 _EQ(NUMPAD5 ) +#define T48 _EQ(NUMPAD6 ) +#define T49 _EQ(ADD ) +#define T4A _EQ(NUMPAD1 ) +#define T4B _EQ(NUMPAD2 ) +#define T4C _EQ(NUMPAD3 ) +#define T4D _EQ(OEM_NEC_EQUAL) +#define T4E _EQ(NUMPAD0 ) +#define T4F _EQ(SEPARATOR ) +#define T50 _EQ(DECIMAL ) +#define T51 _EQ(NONCONVERT) +#define T52 _EQ(F11 ) +#define T53 _EQ(F12 ) +#define T54 _EQ(F13 ) +#define T55 _EQ(F14 ) +#define T56 _EQ(F15 ) +#define T57 _EQ(_none_ ) +#define T58 _EQ(_none_ ) +#define T59 _EQ(_none_ ) +#define T5A _EQ(_none_ ) +#define T5B _EQ(_none_ ) +#define T5C _EQ(RETURN ) +#define T5D _EQ(_none_ ) +#define T5E _EQ(_none_ ) +#define T5F _EQ(_none_ ) +#define T60 _EQ(CANCEL ) +#define T61 _EQ(SNAPSHOT ) +#define T62 _EQ(F1 ) +#define T63 _EQ(F2 ) +#define T64 _EQ(F3 ) +#define T65 _EQ(F4 ) +#define T66 _EQ(F5 ) +#define T67 _EQ(F6 ) +#define T68 _EQ(F7 ) +#define T69 _EQ(F8 ) +#define T6A _EQ(F9 ) +#define T6B _EQ(F10 ) +#define T6C _EQ(_none_ ) +#define T6D _EQ(_none_ ) +#define T6E _EQ(_none_ ) +#define T6F _EQ(_none_ ) +#define T70 _EQ(LSHIFT ) +#define T71 _EQ(CAPITAL ) +#define T72 _EQ(KANA ) +#define T73 _EQ(LMENU ) +#define T74 _EQ(LCONTROL ) +#define T75 _EQ(_none_ ) +#define T76 _EQ(_none_ ) +#define T77 _EQ(LWIN ) +#define T78 _EQ(RWIN ) +#define T79 _EQ(APPS ) +#define T7A _EQ(_none_ ) +#define T7B _EQ(_none_ ) +#define T7C _EQ(_none_ ) +#define T7D _EQ(RSHIFT ) +#define T7E _EQ(ABNT_C2 ) +#define T7F _EQ(OEM_PA2 ) + + /* + * The break key is sent to us as E1,LCtrl,NumLock + * We must conevrt the E1+LCtrl to BREAK, then ignore the Numlock + * which must be ignored. Alternatively, translate Ctrl-Numlock + * to break, but don't let the CTRL through as a WM_KEYUP/DOWN) ? + */ +#define Y1D _EQ(PAUSE ) + +#elif (KBD_TYPE >= 40) && (KBD_TYPE <= 41) +/***********************************************************************\ +* T** - Values for ausVK[] (Virtual Scan Code to Virtual Key conversion) +* +* Two sets of keyboards are supported, according to KBD_TYPE: +* +* KBD_TYPE Keyboard (examples) +* ======== ===================================== +* 40 * DEC LK411-JJ (JIS layout) keyboard +* 41 DEC LK411-AJ (ANSI layout) keyboard +* +* +------+ +-----------+-----------+ +* | Scan | | kbd | kbd | +* | code | | LK411-JJ | LK411-AJ | +\*****+------+-+-----------+-----------+********************************/ +#define T00 _EQ( _none_ ) +#define T01 _EQ( ESCAPE ) +#define T02 _EQ( '1' ) +#define T03 _EQ( '2' ) +#define T04 _EQ( '3' ) +#define T05 _EQ( '4' ) +#define T06 _EQ( '5' ) +#define T07 _EQ( '6' ) +#define T08 _EQ( '7' ) +#define T09 _EQ( '8' ) +#define T0A _EQ( '9' ) +#define T0B _EQ( '0' ) +#define T0C _EQ( OEM_MINUS ) +#define T0D _NE( OEM_7, OEM_PLUS ) // "^"/"=" +#define T0E _EQ( BACK ) +#define T0F _EQ( TAB ) +#define T10 _EQ( 'Q' ) +#define T11 _EQ( 'W' ) +#define T12 _EQ( 'E' ) +#define T13 _EQ( 'R' ) +#define T14 _EQ( 'T' ) +#define T15 _EQ( 'Y' ) +#define T16 _EQ( 'U' ) +#define T17 _EQ( 'I' ) +#define T18 _EQ( 'O' ) +#define T19 _EQ( 'P' ) +#define T1A _NE( OEM_3, OEM_4 ) // "@"/"[" +#define T1B _NE( OEM_4, OEM_6 ) // "["/"]" +#define T1C _EQ( RETURN ) +#define T1D _EQ( LCONTROL ) +#define T1E _EQ( 'A' ) +#define T1F _EQ( 'S' ) +#define T20 _EQ( 'D' ) +#define T21 _EQ( 'F' ) +#define T22 _EQ( 'G' ) +#define T23 _EQ( 'H' ) +#define T24 _EQ( 'J' ) +#define T25 _EQ( 'K' ) +#define T26 _EQ( 'L' ) +#define T27 _NE( OEM_PLUS, OEM_1 ) // ";" +#define T28 _NE( OEM_1, OEM_7 ) // ":"/"'" +#define T29 _NE( _none_, DBE_SBCSCHAR ) // LK411AJ uses "<>" as SBCS/DBCS key +#define T2A _EQ( LSHIFT ) +#define T2B _NE( OEM_6, OEM_5 ) // "]"/"\" +#define T2C _EQ( 'Z' ) +#define T2D _EQ( 'X' ) +#define T2E _EQ( 'C' ) +#define T2F _EQ( 'V' ) +#define T30 _EQ( 'B' ) +#define T31 _EQ( 'N' ) +#define T32 _EQ( 'M' ) +#define T33 _EQ( OEM_COMMA ) +#define T34 _EQ( OEM_PERIOD ) +#define T35 _EQ( OEM_2 ) // "/" +#define T36 _EQ( RSHIFT ) +#define T37 _EQ( MULTIPLY ) // PF3 : "*" +#define T38 _EQ( LMENU ) // Alt(Left) +#define T39 _EQ( ' ' ) // Space +#define T3A _EQ( CAPITAL ) // LOCK : Caps Lock +#define T3B _EQ( F1 ) +#define T3C _EQ( F2 ) +#define T3D _EQ( F3 ) +#define T3E _EQ( F4 ) +#define T3F _EQ( F5 ) +#define T40 _EQ( F6 ) +#define T41 _EQ( F7 ) +#define T42 _EQ( F8 ) +#define T43 _EQ( F9 ) +#define T44 _EQ( F10 ) +#define T45 _EQ( NUMLOCK ) // PF1 : Num Lock +#define T46 _EQ( SCROLL ) // F19 : Scroll Lock +#define T47 _EQ( HOME ) // KP7 : Home +#define T48 _EQ( UP ) // KP8 : Up +#define T49 _EQ( PRIOR ) // KP9 : Page Up +#define T4A _EQ( SUBTRACT ) // PF4 : "-" +#define T4B _EQ( LEFT ) // KP4 : Left +#define T4C _EQ( CLEAR ) // KP5 : Clear +#define T4D _EQ( RIGHT ) // KP6 : Right +#define T4E _EQ( ADD ) // KP, : Add +#define T4F _EQ( END ) // KP1 : End +#define T50 _EQ( DOWN ) // KP2 : Down +#define T51 _EQ( NEXT ) // KP3 : Next +#define T52 _EQ( INSERT ) // KP0 : Ins +#define T53 _EQ( DELETE ) // KP. : Del +#define T54 _EQ( SNAPSHOT ) +#define T55 _EQ( _none_ ) +#define T56 _EQ( _none_ ) +#define T57 _EQ( F11 ) +#define T58 _EQ( F12 ) +#define T59 _EQ( _none_ ) +#define T5A _EQ( _none_ ) +#define T5B _EQ( _none_ ) +#define T5C _EQ( _none_ ) +#define T5D _EQ( _none_ ) +#define T5E _EQ( _none_ ) +#define T5F _EQ( _none_ ) +#define T60 _EQ( _none_ ) +#define T61 _EQ( _none_ ) +#define T62 _EQ( _none_ ) +#define T63 _EQ( _none_ ) +#define T64 _EQ( _none_ ) +#define T65 _EQ( _none_ ) +#define T66 _EQ( _none_ ) +#define T67 _EQ( _none_ ) +#define T68 _EQ( _none_ ) +#define T69 _EQ( _none_ ) +#define T6A _EQ( _none_ ) +#define T6B _EQ( _none_ ) +#define T6C _EQ( _none_ ) +#define T6D _EQ( _none_ ) +#define T6E _EQ( _none_ ) +#define T6F _EQ( _none_ ) +#define T70 _EQ( DBE_HIRAGANA ) // Hiragana/Katakana +#define T71 _EQ( _none_ ) +#define T72 _EQ( _none_ ) +#define T73 _NE( OEM_102, _none_ ) // LK411JJ, Katakana "Ro" +#define T74 _EQ( _none_ ) +#define T75 _EQ( _none_ ) +#define T76 _EQ( _none_ ) +#define T77 _EQ( _none_ ) +#define T78 _EQ( _none_ ) +#define T79 _EQ( CONVERT ) // Henkan +#define T7A _EQ( _none_ ) +#define T7B _EQ( NONCONVERT ) // Mu-Henkan +#define T7C _EQ( _none_ ) +#define T7D _NE( OEM_5, _none_ ) // LK411JJ, Yen(Back-slash) +#define T7E _EQ( _none_ ) +#define T7F _EQ( _none_ ) + +#define X0F _EQ( KANA ) // Kana +#define X1C _EQ( RETURN ) // Enter +#define X1D _EQ( RCONTROL ) // Comp : Right Control +#define X33 _EQ( _none_ ) +#define X35 _EQ( DIVIDE ) // PF2: "/" +#define X37 _EQ( SNAPSHOT ) // F18: PrintScreen +#define X38 _EQ( RMENU ) // Alt(Right) +#define X3D _EQ( F13 ) +#define X3E _EQ( F14 ) +#define X3F _EQ( F15 ) // Help : F15 +#define X40 _EQ( F16 ) // Do : F16 +#define X41 _EQ( F17 ) +#define X42 _EQ( _none_ ) +#define X43 _EQ( _none_ ) +#define X44 _EQ( _none_ ) +#define X46 _EQ( CANCEL ) +#define X47 _EQ( HOME ) // Find : HOME +#define X48 _EQ( UP ) +#define X49 _EQ( PRIOR ) // Prev : PageUp +#define X4B _EQ( LEFT ) +#define X4D _EQ( RIGHT ) +#define X4E _EQ( ADD ) // KP- (Minus but "Add") +#define X4F _EQ( END ) // Select : END +#define X50 _EQ( DOWN ) +#define X51 _EQ( NEXT ) // Next : PageDown +#define X52 _EQ( INSERT ) +#define X53 _EQ( DELETE ) // Remove +#define X5B _EQ( _none_ ) +#define X5C _EQ( _none_ ) +#define X5D _EQ( _none_ ) +#define X5E _EQ( POWER ) +#define X5F _EQ( SLEEP ) + /* + * The break key is sent to us as E1,LCtrl,NumLock + * We must convert the E1+LCtrl to BREAK, then ignore the Numlock + */ +#define Y1D _EQ( PAUSE ) + +#endif // KBD_TYPE + +#define SCANCODE_LSHIFT 0x2A +#define SCANCODE_RSHIFT 0x36 +#define SCANCODE_CTRL 0x1D +#define SCANCODE_ALT 0x38 +#define SCANCODE_SIMULATED (FAKE_KEYSTROKE >> 16) + +#define SCANCODE_NUMPAD_FIRST 0x47 +#define SCANCODE_NUMPAD_LAST 0x52 + +#define SCANCODE_LWIN 0x5B +#define SCANCODE_RWIN 0x5C + +#define SCANCODE_THAI_LAYOUT_TOGGLE 0x29 + + + +#if (NTDDI_VERSION >= NTDDI_WINXP) +#define VK_DBE_ALPHANUMERIC 0x0f0 +#define VK_DBE_KATAKANA 0x0f1 +#define VK_DBE_HIRAGANA 0x0f2 +#define VK_DBE_SBCSCHAR 0x0f3 +#define VK_DBE_DBCSCHAR 0x0f4 +#define VK_DBE_ROMAN 0x0f5 +#define VK_DBE_NOROMAN 0x0f6 +#define VK_DBE_ENTERWORDREGISTERMODE 0x0f7 +#define VK_DBE_ENTERIMECONFIGMODE 0x0f8 +#define VK_DBE_FLUSHSTRING 0x0f9 +#define VK_DBE_CODEINPUT 0x0fa +#define VK_DBE_NOCODEINPUT 0x0fb +#define VK_DBE_DETERMINESTRING 0x0fc +#define VK_DBE_ENTERDLGCONVERSIONMODE 0x0fd + +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _KBD_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/keycredmgr.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/keycredmgr.h new file mode 100644 index 0000000000000000000000000000000000000000..bdee4270cd59c4cda6e5b0510af4c40e5520cac3 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/keycredmgr.h @@ -0,0 +1,76 @@ +// Copyright (C) Microsoft Corporation. All rights reserved. + +#ifdef _MSC_VER +#pragma once +#endif //_MSC_VER + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +// Flags about key credential manager status + +typedef enum KeyCredentialManagerOperationErrorStates { + KeyCredentialManagerOperationErrorStateNone = 0x0, + KeyCredentialManagerOperationErrorStateDeviceJoinFailure = 0x01, + KeyCredentialManagerOperationErrorStateTokenFailure = 0x02, + KeyCredentialManagerOperationErrorStateCertificateFailure = 0x04, + KeyCredentialManagerOperationErrorStateRemoteSessionFailure = 0x08, + KeyCredentialManagerOperationErrorStatePolicyFailure = 0x10, + KeyCredentialManagerOperationErrorStateHardwareFailure = 0x20, + KeyCredentialManagerOperationErrorStatePinExistsFailure = 0x40 +} KeyCredentialManagerOperationErrorStates; +DEFINE_ENUM_FLAG_OPERATORS(KeyCredentialManagerOperationErrorStates); + +// Operation types + +typedef enum KeyCredentialManagerOperationType { + KeyCredentialManagerProvisioning = 0, + KeyCredentialManagerPinChange = 1, + KeyCredentialManagerPinReset = 2, +} KeyCredentialManagerOperationType; + + +typedef struct KeyCredentialManagerInfo { + GUID containerId; +} KeyCredentialManagerInfo; + + +STDAPI +KeyCredentialManagerGetOperationErrorStates( + _In_ KeyCredentialManagerOperationType keyCredentialManagerOperationType, + _Out_ BOOL* isReady, + _Out_ KeyCredentialManagerOperationErrorStates* keyCredentialManagerOperationErrorStates); + + +STDAPI +KeyCredentialManagerShowUIOperation( + _In_ HWND hWndOwner, + _In_ KeyCredentialManagerOperationType keyCredentialManagerOperationType); + + +STDAPI +KeyCredentialManagerGetInformation( + _Outptr_ KeyCredentialManagerInfo** keyCredentialManagerInfo); + + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + +VOID +KeyCredentialManagerFreeInformation( + _In_ KeyCredentialManagerInfo* keyCredentialManagerInfo); + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif /* NTDDI_VERSION >= NTDDI_WIN10_RS4 */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma once \ No newline at end of file diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/knownfolderpathscom.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/knownfolderpathscom.h new file mode 100644 index 0000000000000000000000000000000000000000..51d058bcae951974fc99275e67a240676e6051cf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/knownfolderpathscom.h @@ -0,0 +1,524 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __knownfolderpathscom_h__ +#define __knownfolderpathscom_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IUserDataPathsInterop_FWD_DEFINED__ +#define __IUserDataPathsInterop_FWD_DEFINED__ +typedef interface IUserDataPathsInterop IUserDataPathsInterop; + +#endif /* __IUserDataPathsInterop_FWD_DEFINED__ */ + + +#ifndef __ISystemDataPathsInterop_FWD_DEFINED__ +#define __ISystemDataPathsInterop_FWD_DEFINED__ +typedef interface ISystemDataPathsInterop ISystemDataPathsInterop; + +#endif /* __ISystemDataPathsInterop_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_knownfolderpathscom_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_knownfolderpathscom_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_knownfolderpathscom_0000_0000_v0_0_s_ifspec; + +#ifndef __IUserDataPathsInterop_INTERFACE_DEFINED__ +#define __IUserDataPathsInterop_INTERFACE_DEFINED__ + +/* interface IUserDataPathsInterop */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IUserDataPathsInterop; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F12EF0B5-BEFB-46C9-9EE5-8A0681F13F8C") + IUserDataPathsInterop : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_AdminTools( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CDBurning( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_NetworkShortcuts( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Programs( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_SendTo( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_StartMenu( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Startup( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IUserDataPathsInteropVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IUserDataPathsInterop * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IUserDataPathsInterop * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IUserDataPathsInterop * This); + + DECLSPEC_XFGVIRT(IUserDataPathsInterop, get_AdminTools) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_AdminTools )( + __RPC__in IUserDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(IUserDataPathsInterop, get_CDBurning) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CDBurning )( + __RPC__in IUserDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(IUserDataPathsInterop, get_NetworkShortcuts) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_NetworkShortcuts )( + __RPC__in IUserDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(IUserDataPathsInterop, get_Programs) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Programs )( + __RPC__in IUserDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(IUserDataPathsInterop, get_SendTo) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_SendTo )( + __RPC__in IUserDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(IUserDataPathsInterop, get_StartMenu) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_StartMenu )( + __RPC__in IUserDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(IUserDataPathsInterop, get_Startup) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Startup )( + __RPC__in IUserDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + END_INTERFACE + } IUserDataPathsInteropVtbl; + + interface IUserDataPathsInterop + { + CONST_VTBL struct IUserDataPathsInteropVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IUserDataPathsInterop_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IUserDataPathsInterop_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IUserDataPathsInterop_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IUserDataPathsInterop_get_AdminTools(This,value) \ + ( (This)->lpVtbl -> get_AdminTools(This,value) ) + +#define IUserDataPathsInterop_get_CDBurning(This,value) \ + ( (This)->lpVtbl -> get_CDBurning(This,value) ) + +#define IUserDataPathsInterop_get_NetworkShortcuts(This,value) \ + ( (This)->lpVtbl -> get_NetworkShortcuts(This,value) ) + +#define IUserDataPathsInterop_get_Programs(This,value) \ + ( (This)->lpVtbl -> get_Programs(This,value) ) + +#define IUserDataPathsInterop_get_SendTo(This,value) \ + ( (This)->lpVtbl -> get_SendTo(This,value) ) + +#define IUserDataPathsInterop_get_StartMenu(This,value) \ + ( (This)->lpVtbl -> get_StartMenu(This,value) ) + +#define IUserDataPathsInterop_get_Startup(This,value) \ + ( (This)->lpVtbl -> get_Startup(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IUserDataPathsInterop_INTERFACE_DEFINED__ */ + + +#ifndef __ISystemDataPathsInterop_INTERFACE_DEFINED__ +#define __ISystemDataPathsInterop_INTERFACE_DEFINED__ + +/* interface ISystemDataPathsInterop */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ISystemDataPathsInterop; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("864D0B26-3A37-4251-9A02-B231198DE060") + ISystemDataPathsInterop : public IUnknown + { + public: + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CommonAdminTools( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CommonOemLinks( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CommonPrograms( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CommonStartMenu( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CommonStartup( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_CommonTemplates( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_LocalizedResources( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProgramFiles( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProgramFilesCommon( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProgramFilesCommonHost( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProgramFilesCommonX64( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProgramFilesCommonX86( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProgramFilesCommonArm( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProgramFilesHost( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProgramFilesX64( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProgramFilesX86( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_ProgramFilesArm( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Resource( + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ISystemDataPathsInteropVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ISystemDataPathsInterop * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ISystemDataPathsInterop * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ISystemDataPathsInterop * This); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_CommonAdminTools) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommonAdminTools )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_CommonOemLinks) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommonOemLinks )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_CommonPrograms) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommonPrograms )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_CommonStartMenu) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommonStartMenu )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_CommonStartup) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommonStartup )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_CommonTemplates) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_CommonTemplates )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_LocalizedResources) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_LocalizedResources )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_ProgramFiles) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramFiles )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_ProgramFilesCommon) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramFilesCommon )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_ProgramFilesCommonHost) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramFilesCommonHost )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_ProgramFilesCommonX64) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramFilesCommonX64 )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_ProgramFilesCommonX86) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramFilesCommonX86 )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_ProgramFilesCommonArm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramFilesCommonArm )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_ProgramFilesHost) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramFilesHost )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_ProgramFilesX64) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramFilesX64 )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_ProgramFilesX86) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramFilesX86 )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_ProgramFilesArm) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_ProgramFilesArm )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + DECLSPEC_XFGVIRT(ISystemDataPathsInterop, get_Resource) + /* [propget] */ HRESULT ( STDMETHODCALLTYPE *get_Resource )( + __RPC__in ISystemDataPathsInterop * This, + /* [retval][string][out] */ __RPC__deref_out_opt_string LPWSTR *value); + + END_INTERFACE + } ISystemDataPathsInteropVtbl; + + interface ISystemDataPathsInterop + { + CONST_VTBL struct ISystemDataPathsInteropVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ISystemDataPathsInterop_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ISystemDataPathsInterop_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ISystemDataPathsInterop_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ISystemDataPathsInterop_get_CommonAdminTools(This,value) \ + ( (This)->lpVtbl -> get_CommonAdminTools(This,value) ) + +#define ISystemDataPathsInterop_get_CommonOemLinks(This,value) \ + ( (This)->lpVtbl -> get_CommonOemLinks(This,value) ) + +#define ISystemDataPathsInterop_get_CommonPrograms(This,value) \ + ( (This)->lpVtbl -> get_CommonPrograms(This,value) ) + +#define ISystemDataPathsInterop_get_CommonStartMenu(This,value) \ + ( (This)->lpVtbl -> get_CommonStartMenu(This,value) ) + +#define ISystemDataPathsInterop_get_CommonStartup(This,value) \ + ( (This)->lpVtbl -> get_CommonStartup(This,value) ) + +#define ISystemDataPathsInterop_get_CommonTemplates(This,value) \ + ( (This)->lpVtbl -> get_CommonTemplates(This,value) ) + +#define ISystemDataPathsInterop_get_LocalizedResources(This,value) \ + ( (This)->lpVtbl -> get_LocalizedResources(This,value) ) + +#define ISystemDataPathsInterop_get_ProgramFiles(This,value) \ + ( (This)->lpVtbl -> get_ProgramFiles(This,value) ) + +#define ISystemDataPathsInterop_get_ProgramFilesCommon(This,value) \ + ( (This)->lpVtbl -> get_ProgramFilesCommon(This,value) ) + +#define ISystemDataPathsInterop_get_ProgramFilesCommonHost(This,value) \ + ( (This)->lpVtbl -> get_ProgramFilesCommonHost(This,value) ) + +#define ISystemDataPathsInterop_get_ProgramFilesCommonX64(This,value) \ + ( (This)->lpVtbl -> get_ProgramFilesCommonX64(This,value) ) + +#define ISystemDataPathsInterop_get_ProgramFilesCommonX86(This,value) \ + ( (This)->lpVtbl -> get_ProgramFilesCommonX86(This,value) ) + +#define ISystemDataPathsInterop_get_ProgramFilesCommonArm(This,value) \ + ( (This)->lpVtbl -> get_ProgramFilesCommonArm(This,value) ) + +#define ISystemDataPathsInterop_get_ProgramFilesHost(This,value) \ + ( (This)->lpVtbl -> get_ProgramFilesHost(This,value) ) + +#define ISystemDataPathsInterop_get_ProgramFilesX64(This,value) \ + ( (This)->lpVtbl -> get_ProgramFilesX64(This,value) ) + +#define ISystemDataPathsInterop_get_ProgramFilesX86(This,value) \ + ( (This)->lpVtbl -> get_ProgramFilesX86(This,value) ) + +#define ISystemDataPathsInterop_get_ProgramFilesArm(This,value) \ + ( (This)->lpVtbl -> get_ProgramFilesArm(This,value) ) + +#define ISystemDataPathsInterop_get_Resource(This,value) \ + ( (This)->lpVtbl -> get_Resource(This,value) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ISystemDataPathsInterop_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_knownfolderpathscom_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_knownfolderpathscom_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_knownfolderpathscom_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/knownfolderpathscom.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/knownfolderpathscom.idl new file mode 100644 index 0000000000000000000000000000000000000000..45684f45ced8cd3e72f50354930439f6c51cd2f2 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/knownfolderpathscom.idl @@ -0,0 +1,59 @@ +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "oaidl.idl"; + +[ + object, + uuid(F12EF0B5-BEFB-46C9-9EE5-8A0681F13F8C), + pointer_default(unique) +] +interface IUserDataPathsInterop : IUnknown +{ + [propget] HRESULT AdminTools([out, string, retval] LPWSTR* value); + [propget] HRESULT CDBurning([out, string, retval] LPWSTR* value); + [propget] HRESULT NetworkShortcuts([out, string, retval] LPWSTR* value); + [propget] HRESULT Programs([out, string, retval] LPWSTR* value); + [propget] HRESULT SendTo([out, string, retval] LPWSTR* value); + [propget] HRESULT StartMenu([out, string, retval] LPWSTR* value); + [propget] HRESULT Startup([out, string, retval] LPWSTR* value); +} + +[ + object, + uuid(864D0B26-3A37-4251-9A02-B231198DE060), + pointer_default(unique) +] +interface ISystemDataPathsInterop : IUnknown +{ + [propget] HRESULT CommonAdminTools([out, string, retval] LPWSTR* value); + [propget] HRESULT CommonOemLinks([out, string, retval] LPWSTR* value); + [propget] HRESULT CommonPrograms([out, string, retval] LPWSTR* value); + [propget] HRESULT CommonStartMenu([out, string, retval] LPWSTR* value); + [propget] HRESULT CommonStartup([out, string, retval] LPWSTR* value); + [propget] HRESULT CommonTemplates([out, string, retval] LPWSTR* value); + [propget] HRESULT LocalizedResources([out, string, retval] LPWSTR* value); + [propget] HRESULT ProgramFiles([out, string, retval] LPWSTR* value); + [propget] HRESULT ProgramFilesCommon([out, string, retval] LPWSTR* value); + [propget] HRESULT ProgramFilesCommonHost([out, string, retval] LPWSTR* value); + [propget] HRESULT ProgramFilesCommonX64([out, string, retval] LPWSTR* value); + [propget] HRESULT ProgramFilesCommonX86([out, string, retval] LPWSTR* value); + [propget] HRESULT ProgramFilesCommonArm([out, string, retval] LPWSTR* value); + [propget] HRESULT ProgramFilesHost([out, string, retval] LPWSTR* value); + [propget] HRESULT ProgramFilesX64([out, string, retval] LPWSTR* value); + [propget] HRESULT ProgramFilesX86([out, string, retval] LPWSTR* value); + [propget] HRESULT ProgramFilesArm([out, string, retval] LPWSTR* value); + [propget] HRESULT Resource([out, string, retval] LPWSTR* value); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ksopmapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ksopmapi.h new file mode 100644 index 0000000000000000000000000000000000000000..dd453b7d053266727aba754ba6532d7979c142e9 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ksopmapi.h @@ -0,0 +1,133 @@ +//*@@@+++@@@@****************************************************************** +// +// Microsoft Windows Media Foundation +// Copyright (C) Microsoft Corporation. All rights reserved. +// +// ksopmapi.h - definitions for kernel mode code OPM communication +// +//*@@@---@@@@****************************************************************** + +#ifndef _KSOPMAPI_ +#define _KSOPMAPI_ + +#if defined (_MSC_VER) && (_MSC_VER >= 1020) && !defined(__midl) +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#if (WINVER >= _WIN32_WINNT_WIN7) + +//============================================================================= +// Description: +// +// Ks Property set to use with AVStram drivers +// KSPROPSETID_OPMVideoOutput {06F414BB-F43A-4fe2-A566-774B4C81F0DB} +#ifdef DEFINE_GUIDSTRUCT +#define STATIC_KSPROPSETID_OPMVideoOutput \ +0x6f414bb, 0xf43a, 0x4fe2, 0xa5, 0x66, 0x77, 0x4b, 0x4c, 0x81, 0xf0, 0xdb +DEFINE_GUIDSTRUCT("06F414BB-F43A-4fe2-A566-774B4C81F0DB", KSPROPSETID_OPMVideoOutput); +#define KSPROPSETID_OPMVideoOutput DEFINE_GUIDNAMED(KSPROPSETID_OPMVideoOutput) +#endif + +typedef enum +{ + // Output is OPM_RANDOM_NUMBER followed by certifiate + KSMETHOD_OPMVIDEOOUTPUT_STARTINITIALIZATION = 0, + + // Input OPM_ENCRYPTED_INITIALIZATION_PARAMETERS + // Output OPM_STANDARD_INFORMATION + KSMETHOD_OPMVIDEOOUTPUT_FINISHINITIALIZATION = 1, + + // Input is OPM_GET_INFO_PARAMETERS, output is OPM_REQUESTED_INFORMATION + // Use KsMethod - both input and output in the buffer (not after the KSMETHOD structure) + KSMETHOD_OPMVIDEOOUTPUT_GETINFORMATION = 2 +} KSMETHOD_OPMVIDEOOUTPUT; + +// Currently on this GetInformation call is supported +DEFINE_GUID( OPM_GET_CODEC_INFO, 0x4f374491, 0x8f5f, 0x4445, 0x9d, 0xba, 0x95, 0x58, 0x8f, 0x6b, 0x58, 0xb4); + +typedef struct _OPM_RANDOM_NUMBER +{ + BYTE abRandomNumber[ 16 ]; +}OPM_RANDOM_NUMBER, *POPM_RANDOM_NUMBER; + +enum +{ + OPM_OMAC_SIZE = 16, + OPM_128_BIT_RANDOM_NUMBER_SIZE = 16, + OPM_ENCRYPTED_INITIALIZATION_PARAMETERS_SIZE = 256, + OPM_CONFIGURE_SETTING_DATA_SIZE = 4056, + OPM_GET_INFORMATION_PARAMETERS_SIZE = 4056, + OPM_REQUESTED_INFORMATION_SIZE = 4076, + OPM_HDCP_KEY_SELECTION_VECTOR_SIZE = 5, + OPM_PROTECTION_TYPE_SIZE = 4, + OPM_BUS_TYPE_MASK = 0xFFFF, + OPM_BUS_IMPLEMENTATION_MODIFIER_MASK = 0x7FFF, +}; + +typedef struct _OPM_OMAC +{ + BYTE abOMAC[OPM_OMAC_SIZE]; + +} OPM_OMAC; + +typedef struct _OPM_GET_INFO_PARAMETERS +{ + OPM_OMAC omac; + OPM_RANDOM_NUMBER rnRandomNumber; + GUID guidInformation; + ULONG ulSequenceNumber; + ULONG cbParametersSize; + BYTE abParameters[OPM_GET_INFORMATION_PARAMETERS_SIZE]; + +} OPM_GET_INFO_PARAMETERS; + +typedef struct _OPM_REQUESTED_INFORMATION +{ + OPM_OMAC omac; + ULONG cbRequestedInformationSize; + BYTE abRequestedInformation[OPM_REQUESTED_INFORMATION_SIZE]; + +} OPM_REQUESTED_INFORMATION; + +typedef struct _OPM_ENCRYPTED_INITIALIZATION_PARAMETERS +{ + BYTE abEncryptedInitializationParameters[OPM_ENCRYPTED_INITIALIZATION_PARAMETERS_SIZE]; + +} OPM_ENCRYPTED_INITIALIZATION_PARAMETERS; + +typedef struct _OPM_STANDARD_INFORMATION +{ + OPM_RANDOM_NUMBER rnRandomNumber; + ULONG ulStatusFlags; + ULONG ulInformation; + ULONG ulReserved; + ULONG ulReserved2; + +} OPM_STANDARD_INFORMATION; + +typedef struct _OPM_GET_CODEC_INFO_PARAMETERS +{ + DWORD cbVerifier; + BYTE Verifier[OPM_GET_INFORMATION_PARAMETERS_SIZE - 4]; // Class ID of MFT or symbolic link for AVStream + // drivers +} OPM_GET_CODEC_INFO_PARAMETERS; + +typedef struct _OPM_GET_CODEC_INFO_INFORMATION +{ + OPM_RANDOM_NUMBER rnRandomNumber; + DWORD Merit; // Merit assigned to the codec +} OPM_GET_CODEC_INFO_INFORMATION; + +#endif // (WINVER >= _WIN32_WINNT_WIN7) + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif//_KSOPMAPI_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/ktmw32.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ktmw32.h new file mode 100644 index 0000000000000000000000000000000000000000..c62087e6b53e6cb0b043e7cf5f10d86b7fa996dc --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/ktmw32.h @@ -0,0 +1,353 @@ +/*++ + +Copyright (c) 2000 Microsoft Corporation + +Module Name: + + ktmw32.h + +Abstract: + + Public API include file for the TM subcomponent of the NTOS project + +Author: + + Jon Cargille (jcargill) 5-Jun-2001 + +Revision History: + +--*/ + +#ifndef _KTMUSER_ +#define _KTMUSER_ + +#include + +#pragma region Desktop Family or BootableSku Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_BOOTABLESKU) + + +#ifdef __cplusplus +extern "C" { +#endif + + +// +// Win32-level transaction manager API calls +// + +HANDLE +APIENTRY +CreateTransaction ( + IN LPSECURITY_ATTRIBUTES lpTransactionAttributes OPTIONAL, + IN LPGUID UOW OPTIONAL, + IN DWORD CreateOptions OPTIONAL, + IN DWORD IsolationLevel OPTIONAL, + IN DWORD IsolationFlags OPTIONAL, + IN DWORD Timeout OPTIONAL, + _In_opt_ LPWSTR Description + ); + +HANDLE +APIENTRY +OpenTransaction ( + IN DWORD dwDesiredAccess, + IN LPGUID TransactionId + ); + +BOOL +APIENTRY +CommitTransaction ( + IN HANDLE TransactionHandle + ); + +BOOL +APIENTRY +CommitTransactionAsync ( + IN HANDLE TransactionHandle + ); + +BOOL +APIENTRY +RollbackTransaction ( + IN HANDLE TransactionHandle + ); + +BOOL +APIENTRY +RollbackTransactionAsync ( + IN HANDLE TransactionHandle + ); + +BOOL +APIENTRY +GetTransactionId ( + IN HANDLE TransactionHandle, + OUT LPGUID TransactionId + ); + + +BOOL +APIENTRY +GetTransactionInformation ( + IN HANDLE TransactionHandle, + OUT PDWORD Outcome OPTIONAL, + OUT PDWORD IsolationLevel OPTIONAL, + OUT PDWORD IsolationFlags OPTIONAL, + OUT PDWORD Timeout OPTIONAL, + _In_ DWORD BufferLength, + _Out_writes_to_opt_(BufferLength, return + 1) LPWSTR Description + ); + +BOOL +APIENTRY +SetTransactionInformation ( + IN HANDLE TransactionHandle, + IN DWORD IsolationLevel OPTIONAL, + IN DWORD IsolationFlags OPTIONAL, + IN DWORD Timeout OPTIONAL, + _In_opt_ LPWSTR Description + ); + +HANDLE +APIENTRY +CreateTransactionManager ( + IN LPSECURITY_ATTRIBUTES lpTransactionAttributes OPTIONAL, + _In_ LPWSTR LogFileName, + IN ULONG CreateOptions OPTIONAL, + IN ULONG CommitStrength OPTIONAL + ); + +HANDLE +APIENTRY +OpenTransactionManager ( + _In_ LPWSTR LogFileName, + IN ACCESS_MASK DesiredAccess, + IN ULONG OpenOptions OPTIONAL + ); + +HANDLE +APIENTRY +OpenTransactionManagerById ( + _In_ LPGUID TransactionManagerId, + IN ACCESS_MASK DesiredAccess, + IN ULONG OpenOptions OPTIONAL + ); + +BOOL +APIENTRY +RenameTransactionManager ( + _In_ LPWSTR LogFileName, + IN LPGUID ExistingTransactionManagerGuid + ); + +BOOL +APIENTRY +RollforwardTransactionManager ( + IN HANDLE TransactionManagerHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +BOOL +APIENTRY +RecoverTransactionManager ( + IN HANDLE TransactionManagerHandle + ); + +BOOL +GetCurrentClockTransactionManager( + IN HANDLE TransactionManagerHandle, + OUT PLARGE_INTEGER TmVirtualClock + ); + +BOOL +GetTransactionManagerId( + IN HANDLE TransactionManagerHandle, + OUT LPGUID TransactionManagerId + ); + +HANDLE +APIENTRY +CreateResourceManager ( + IN LPSECURITY_ATTRIBUTES lpResourceManagerAttributes OPTIONAL, + IN LPGUID ResourceManagerId, + IN DWORD CreateOptions OPTIONAL, + IN HANDLE TmHandle, + _In_opt_ LPWSTR Description + ); + +HANDLE +APIENTRY +OpenResourceManager ( + IN DWORD dwDesiredAccess, + IN HANDLE TmHandle, + IN LPGUID ResourceManagerId + ); + +BOOL +APIENTRY +RecoverResourceManager ( + IN HANDLE ResourceManagerHandle + ); + +BOOL +APIENTRY +GetNotificationResourceManager ( + IN HANDLE ResourceManagerHandle, + OUT PTRANSACTION_NOTIFICATION TransactionNotification, + IN ULONG NotificationLength, + IN DWORD dwMilliseconds OPTIONAL, + OUT PULONG ReturnLength OPTIONAL + ); + +BOOL +APIENTRY +GetNotificationResourceManagerAsync ( + IN HANDLE ResourceManagerHandle, + OUT PTRANSACTION_NOTIFICATION TransactionNotification, + IN ULONG TransactionNotificationLength, + OUT PULONG ReturnLength, + IN LPOVERLAPPED lpOverlapped + ); + +BOOL +APIENTRY +SetResourceManagerCompletionPort( + IN HANDLE ResourceManagerHandle, + IN HANDLE IoCompletionPortHandle, + IN ULONG_PTR CompletionKey + ); + +HANDLE +APIENTRY +CreateEnlistment ( + IN LPSECURITY_ATTRIBUTES lpEnlistmentAttributes OPTIONAL, + IN HANDLE ResourceManagerHandle, + IN HANDLE TransactionHandle, + IN NOTIFICATION_MASK NotificationMask, + IN DWORD CreateOptions OPTIONAL, + IN PVOID EnlistmentKey OPTIONAL + ); + +HANDLE +APIENTRY +OpenEnlistment ( + IN DWORD dwDesiredAccess, + IN HANDLE ResourceManagerHandle, + IN LPGUID EnlistmentId + ); + + +BOOL +APIENTRY +RecoverEnlistment ( + IN HANDLE EnlistmentHandle, + IN PVOID EnlistmentKey OPTIONAL + ); + + +BOOL +APIENTRY +GetEnlistmentRecoveryInformation ( + IN HANDLE EnlistmentHandle, + IN ULONG BufferSize, + OUT PVOID Buffer, + OUT PULONG BufferUsed OPTIONAL + ); + +BOOL +APIENTRY +GetEnlistmentId ( + IN HANDLE EnlistmentHandle, + OUT LPGUID EnlistmentId + ); + +BOOL +APIENTRY +SetEnlistmentRecoveryInformation ( + IN HANDLE EnlistmentHandle, + IN ULONG BufferSize, + IN PVOID Buffer + ); + +BOOL +APIENTRY +PrepareEnlistment ( + IN HANDLE EnlistmentHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +BOOL +APIENTRY +PrePrepareEnlistment ( + IN HANDLE EnlistmentHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +BOOL +APIENTRY +CommitEnlistment ( + IN HANDLE EnlistmentHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +BOOL +APIENTRY +RollbackEnlistment ( + IN HANDLE EnlistmentHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +BOOL +APIENTRY +PrePrepareComplete ( + IN HANDLE EnlistmentHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +BOOL +APIENTRY +PrepareComplete ( + IN HANDLE EnlistmentHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +BOOL +APIENTRY +ReadOnlyEnlistment ( + IN HANDLE EnlistmentHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +BOOL +APIENTRY +CommitComplete ( + IN HANDLE EnlistmentHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +BOOL +APIENTRY +RollbackComplete ( + IN HANDLE EnlistmentHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +BOOL +APIENTRY +SinglePhaseReject ( + IN HANDLE EnlistmentHandle, + IN PLARGE_INTEGER TmVirtualClock + ); + +#ifdef __cplusplus +} +#endif + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_BOOTABLESKU) */ +#pragma endregion + +#endif // _KTMUSER_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/l2cmn.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/l2cmn.h new file mode 100644 index 0000000000000000000000000000000000000000..e66b6aeda61605042e1845af079c07c6597169d6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/l2cmn.h @@ -0,0 +1,113 @@ +/*++ + +Copyright (c) 2004 Microsoft Corporation + +Module Name: + + l2cmn.h + +Abstract: + + Definitions and data strcutures for common layer 2 + +Environment: + + User mode only + +--*/ + +#ifndef _L2CMN_H +#define _L2CMN_H + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// Profile name max length, in characters +#define L2_PROFILE_MAX_NAME_LENGTH 256 + +// If a notification needs to be private that is only consumed by internal components +// then it should be part of l2cmnpriv.h + + +// the types of notification +// This signifies what kind of notification is to be passed on , the +// 0X0000FFFF signifies all public notifications , so all notfications that need to be public +// should be in this range and have a single bit set as these flags can be combined. +#define L2_NOTIFICATION_SOURCE_NONE 0 +#define L2_NOTIFICATION_SOURCE_DOT3_AUTO_CONFIG 0X00000001 +#define L2_NOTIFICATION_SOURCE_SECURITY 0X00000002 +#define L2_NOTIFICATION_SOURCE_ONEX 0X00000004 +#define L2_NOTIFICATION_SOURCE_WLAN_ACM 0X00000008 +#define L2_NOTIFICATION_SOURCE_WLAN_MSM 0X00000010 +#define L2_NOTIFICATION_SOURCE_WLAN_SECURITY 0X00000020 +#define L2_NOTIFICATION_SOURCE_WLAN_IHV 0X00000040 +#define L2_NOTIFICATION_SOURCE_WLAN_HNWK 0X00000080 +#define L2_NOTIFICATION_SOURCE_WCM 0X00000100 +#define L2_NOTIFICATION_SOURCE_WCM_CSP 0X00000200 +#define L2_NOTIFICATION_SOURCE_WFD 0X00000400 +#define L2_NOTIFICATION_SOURCE_WLAN_DEVICE_SERVICE 0X00000800 + +#define L2_NOTIFICATION_SOURCE_ALL 0X0000FFFF +#define L2_NOTIFICATION_CODE_PUBLIC_BEGIN 0X00000000 +#define L2_NOTIFICATION_CODE_GROUP_SIZE 0x00001000 +#define L2_NOTIFICATION_CODE_V2_BEGIN (L2_NOTIFICATION_CODE_PUBLIC_BEGIN+L2_NOTIFICATION_CODE_GROUP_SIZE) + +// L2 reason code +// reason code bases +#define L2_REASON_CODE_GROUP_SIZE 0x10000 +#define L2_REASON_CODE_GEN_BASE 0x10000 +#define L2_REASON_CODE_DOT11_AC_BASE (L2_REASON_CODE_GEN_BASE+L2_REASON_CODE_GROUP_SIZE) +#define L2_REASON_CODE_DOT11_MSM_BASE (L2_REASON_CODE_DOT11_AC_BASE+L2_REASON_CODE_GROUP_SIZE) +#define L2_REASON_CODE_DOT11_SECURITY_BASE (L2_REASON_CODE_DOT11_MSM_BASE+L2_REASON_CODE_GROUP_SIZE) +#define L2_REASON_CODE_ONEX_BASE (L2_REASON_CODE_DOT11_SECURITY_BASE+L2_REASON_CODE_GROUP_SIZE) +#define L2_REASON_CODE_DOT3_AC_BASE (L2_REASON_CODE_ONEX_BASE+L2_REASON_CODE_GROUP_SIZE) +#define L2_REASON_CODE_DOT3_MSM_BASE (L2_REASON_CODE_DOT3_AC_BASE+L2_REASON_CODE_GROUP_SIZE) +#define L2_REASON_CODE_PROFILE_BASE (L2_REASON_CODE_DOT3_MSM_BASE+L2_REASON_CODE_GROUP_SIZE) +#define L2_REASON_CODE_IHV_BASE (L2_REASON_CODE_PROFILE_BASE+L2_REASON_CODE_GROUP_SIZE) +#define L2_REASON_CODE_WIMAX_BASE (L2_REASON_CODE_IHV_BASE+L2_REASON_CODE_GROUP_SIZE) +#define L2_REASON_CODE_RESERVED_BASE (L2_REASON_CODE_WIMAX_BASE+L2_REASON_CODE_GROUP_SIZE) + +// the common reason codes +#define L2_REASON_CODE_SUCCESS 0 + +// general reason code +#define L2_REASON_CODE_UNKNOWN (L2_REASON_CODE_GEN_BASE+1) + +// common profile section missing +#define L2_REASON_CODE_PROFILE_MISSING 0x00000001 + +// This structure is the notification structure which needs to be filled in by each component +// The interface guid is filled in only by the AC +// The NotificationSource signifies the type above +// and NotificationCode is one of the enum values +typedef struct _L2_NOTIFICATION_DATA { + DWORD NotificationSource; + DWORD NotificationCode; + GUID InterfaceGuid; + DWORD dwDataSize; + +#ifdef __midl + [unique, size_is(dwDataSize)] PBYTE pData; +#else + _Field_size_bytes_(dwDataSize) PVOID pData; +#endif + +} L2_NOTIFICATION_DATA, *PL2_NOTIFICATION_DATA; + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _L2CMN_H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/lamparray.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lamparray.h new file mode 100644 index 0000000000000000000000000000000000000000..a51035cff861d7d6c32a7e179fe7ad781483a8cf --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lamparray.h @@ -0,0 +1,237 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. + +#pragma once + +#if !defined(__cplusplus) +#error C++11 required +#endif + +#include +#include + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +extern "C" { + +enum class LampPurposes : uint32_t +{ + Undefined = 0x00, + Control = 0x01, + Accent = 0x02, + Branding = 0x04, + Status = 0x08, + Illumination = 0x10, + Presentation = 0x20, +}; + +DEFINE_ENUM_FLAG_OPERATORS(LampPurposes); + +enum class LampArrayKind : uint32_t +{ + Undefined = 0, + Keyboard = 1, + Mouse = 2, + GameController = 3, + Peripheral = 4, + Scene = 5, + Notification = 6, + Chassis = 7, + Wearable = 8, + Furniture = 9, + Art = 10, + Headset = 11, + Microphone = 12, + Speaker = 13 +}; + +enum class LampArrayEnumerationKind : uint32_t +{ + Async = 1, + Blocking = 2 +}; + +enum class LampArrayStatus : uint32_t +{ + None = 0x00000000, + Connected = 0x00000001, + Available = 0x00000002 +}; + +DEFINE_ENUM_FLAG_OPERATORS(LampArrayStatus); + +typedef interface ILampArray ILampArray; +typedef interface ILampInfo ILampInfo; + +typedef uint64_t LampArrayCallbackToken; + +inline constexpr uint64_t LAMPARRAY_INVALID_CALLBACK_TOKEN_VALUE = 0x0000000000000000ULL; + +typedef void (CALLBACK * LampArrayCallback)( + _In_opt_ void * context, + bool isAttached, + _In_ ILampArray * lampArray); + +typedef void (CALLBACK * LampArrayStatusCallback)( + _In_opt_ void * context, + LampArrayStatus currentStatus, + LampArrayStatus previousStatus, + _In_ ILampArray * lampArray); + +struct LampArrayColor +{ + uint8_t r; + uint8_t g; + uint8_t b; + uint8_t a; +}; + +struct LampArrayPosition +{ + float xInMeters; + float yInMeters; + float zInMeters; +}; + +#undef INTERFACE +#define INTERFACE ILampInfo +DECLARE_INTERFACE_IID_(INTERFACE, IUnknown, "AE82EDD1-6B75-43CF-9BEA-F600A49A320C") +{ + _Must_inspect_result_ + IFACEMETHOD(QueryInterface)(THIS_ + _In_ REFIID riid, + _COM_Outptr_ void ** ppvObj) PURE; + + IFACEMETHOD_(ULONG, AddRef)(THIS) PURE; + + IFACEMETHOD_(ULONG, Release)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetIndex)(THIS) PURE; + + IFACEMETHOD_(LampPurposes, GetPurposes)(THIS) PURE; + + IFACEMETHOD_(void, GetPosition)(THIS_ + _Out_ LampArrayPosition * position) PURE; + + IFACEMETHOD_(uint32_t, GetRedLevelCount)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetGreenLevelCount)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetBlueLevelCount)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetGainLevelCount)(THIS) PURE; + + IFACEMETHOD_(bool, GetFixedColor)(THIS_ + _Out_ LampArrayColor * fixedColor) PURE; + + IFACEMETHOD_(LampArrayColor, GetNearestSupportedColor)(THIS_ + LampArrayColor desiredColor) PURE; + + IFACEMETHOD_(uint64_t, GetUpdateLatencyInMicroseconds)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetScanCode)(THIS) PURE; +}; + +#undef INTERFACE +#define INTERFACE ILampArray +DECLARE_INTERFACE_IID_(INTERFACE, IUnknown, "45577878-466D-40ED-AB72-C448C70E1252") +{ + _Must_inspect_result_ + IFACEMETHOD(QueryInterface)(THIS_ + _In_ REFIID riid, + _COM_Outptr_ void ** ppvObj) PURE; + + IFACEMETHOD_(ULONG, AddRef)(THIS) PURE; + + IFACEMETHOD_(ULONG, Release)(THIS) PURE; + + IFACEMETHOD_(void, GetDeviceId)(THIS_ + _Out_ APP_LOCAL_DEVICE_ID * deviceId) PURE; + + IFACEMETHOD_(uint16_t, GetVendorId)(THIS) PURE; + + IFACEMETHOD_(uint16_t, GetProductId)(THIS) PURE; + + IFACEMETHOD_(uint16_t, GetHardwareVersion)(THIS) PURE; + + IFACEMETHOD_(LampArrayKind, GetLampArrayKind)(THIS) PURE; + + IFACEMETHOD_(uint32_t, GetLampCount)(THIS) PURE; + + IFACEMETHOD_(uint64_t, GetMinUpdateIntervalInMicroseconds)(THIS) PURE; + + IFACEMETHOD_(void, GetBoundingBox)(THIS_ + _Out_ LampArrayPosition * boundingBox) PURE; + + IFACEMETHOD_(bool, GetIsEnabled)(THIS) PURE; + + IFACEMETHOD_(void, SetIsEnabled)(THIS_ + bool isEnabled) PURE; + + IFACEMETHOD_(double, GetBrightnessLevel)(THIS) PURE; + + IFACEMETHOD_(void, SetBrightnessLevel)(THIS_ + double brightnessLevel) PURE; + + IFACEMETHOD_(bool, SupportsScanCodes)(THIS) PURE; + + _Must_inspect_result_ + IFACEMETHOD(GetLampInfo)(THIS_ + uint32_t lampIndex, + _COM_Outptr_ ILampInfo ** lampInfo) PURE; + + IFACEMETHOD_(uint32_t, GetIndicesCountForPurposes)(THIS_ + LampPurposes lampPurposes) PURE; + + IFACEMETHOD_(void, GetIndicesForPurposes)(THIS_ + LampPurposes lampPurposes, + uint32_t lampIndicesCount, + _Out_writes_(lampIndicesCount) uint32_t * lampIndices) PURE; + + IFACEMETHOD_(void, SetColor)(THIS_ + LampArrayColor desiredColor) PURE; + + IFACEMETHOD_(void, SetColorsForIndices)(THIS_ + uint32_t lampIndicesCount, + _In_reads_(lampIndicesCount) const uint32_t * lampIndices, + _In_reads_(lampIndicesCount) const LampArrayColor * desiredColors) PURE; + + IFACEMETHOD_(void, SetColorsForScanCodes)(THIS_ + uint32_t scanCodesCount, + _In_reads_(scanCodesCount) const uint32_t * scanCodes, + _In_reads_(scanCodesCount) const LampArrayColor * desiredColors) PURE; +}; + +#undef INTERFACE + +STDAPI RegisterLampArrayCallback( + _In_ LampArrayCallback lampArrayCallback, + _In_opt_ void * context, + _Out_ _Result_zeroonfailure_ LampArrayCallbackToken * callbackToken); + +STDAPI RegisterLampArrayStatusCallback( + _In_ LampArrayStatusCallback callbackFunc, + LampArrayEnumerationKind enumerationKind, + _In_opt_ void * context, + _Out_ _Result_zeroonfailure_ LampArrayCallbackToken * callbackToken); + +STDAPI_(bool) UnregisterLampArrayCallback( + LampArrayCallbackToken callbackToken, + uint64_t timeoutInMicroseconds); + +STDAPI TrySetLampArrayWorkerThreadAffinityMask( + uint64_t threadAffinityMask); + +} // extern "C" + +#endif // #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +// +// MessageId: LAMPARRAY_E_CALLBACK_REGISTRATION_WRONG_THREAD +// +// MessageText: +// +// The callback is being registered or unregistered from within a registered callback, which is not supported. +// +#define LAMPARRAY_E_CALLBACK_REGISTRATION_WRONG_THREAD _HRESULT_TYPEDEF_(0x84980001L) diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/libloaderapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/libloaderapi.h new file mode 100644 index 0000000000000000000000000000000000000000..b40e7819c5593063d371c4894ebc455b6f9e32e7 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/libloaderapi.h @@ -0,0 +1,659 @@ +/******************************************************************************** +* * +* libloaderapi.h -- ApiSet Contract for api-ms-win-core-libraryloader-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _APISETLIBLOADER_ +#define _APISETLIBLOADER_ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +#define FIND_RESOURCE_DIRECTORY_TYPES (0x0100) +#define FIND_RESOURCE_DIRECTORY_NAMES (0x0200) +#define FIND_RESOURCE_DIRECTORY_LANGUAGES (0x0400) + +#define RESOURCE_ENUM_LN (0x0001) +#define RESOURCE_ENUM_MUI (0x0002) +#define RESOURCE_ENUM_MUI_SYSTEM (0x0004) +#define RESOURCE_ENUM_VALIDATE (0x0008) +#define RESOURCE_ENUM_MODULE_EXACT (0x0010) + +#define SUPPORT_LANG_NUMBER 32 + +typedef struct tagENUMUILANG { + ULONG NumOfEnumUILang; // Acutall number of enumerated languages + ULONG SizeOfEnumUIBuffer; // Buffer size of pMUIEnumUILanguages + LANGID *pEnumUIBuffer; +} ENUMUILANG, *PENUMUILANG; + +#ifdef STRICT + +typedef BOOL (CALLBACK* ENUMRESLANGPROCA)( + _In_opt_ HMODULE hModule, + _In_ LPCSTR lpType, + _In_ LPCSTR lpName, + _In_ WORD wLanguage, + _In_ LONG_PTR lParam); +typedef BOOL (CALLBACK* ENUMRESLANGPROCW)( + _In_opt_ HMODULE hModule, + _In_ LPCWSTR lpType, + _In_ LPCWSTR lpName, + _In_ WORD wLanguage, + _In_ LONG_PTR lParam); +#ifdef UNICODE +#define ENUMRESLANGPROC ENUMRESLANGPROCW +#else +#define ENUMRESLANGPROC ENUMRESLANGPROCA +#endif // !UNICODE + +typedef BOOL (CALLBACK* ENUMRESNAMEPROCA)( + _In_opt_ HMODULE hModule, + _In_ LPCSTR lpType, + _In_ LPSTR lpName, + _In_ LONG_PTR lParam); +typedef BOOL (CALLBACK* ENUMRESNAMEPROCW)( + _In_opt_ HMODULE hModule, + _In_ LPCWSTR lpType, + _In_ LPWSTR lpName, + _In_ LONG_PTR lParam); +#ifdef UNICODE +#define ENUMRESNAMEPROC ENUMRESNAMEPROCW +#else +#define ENUMRESNAMEPROC ENUMRESNAMEPROCA +#endif // !UNICODE + +typedef BOOL (CALLBACK* ENUMRESTYPEPROCA)( + _In_opt_ HMODULE hModule, + _In_ LPSTR lpType, + _In_ LONG_PTR lParam + ); +typedef BOOL (CALLBACK* ENUMRESTYPEPROCW)( + _In_opt_ HMODULE hModule, + _In_ LPWSTR lpType, + _In_ LONG_PTR lParam + ); +#ifdef UNICODE +#define ENUMRESTYPEPROC ENUMRESTYPEPROCW +#else +#define ENUMRESTYPEPROC ENUMRESTYPEPROCA +#endif // !UNICODE + +#else + +typedef FARPROC ENUMRESTYPEPROCA; +typedef FARPROC ENUMRESTYPEPROCW; +#ifdef UNICODE +typedef ENUMRESTYPEPROCW ENUMRESTYPEPROC; +#else +typedef ENUMRESTYPEPROCA ENUMRESTYPEPROC; +#endif // UNICODE +typedef FARPROC ENUMRESNAMEPROCA; +typedef FARPROC ENUMRESNAMEPROCW; +#ifdef UNICODE +typedef ENUMRESNAMEPROCW ENUMRESNAMEPROC; +#else +typedef ENUMRESNAMEPROCA ENUMRESNAMEPROC; +#endif // UNICODE +typedef FARPROC ENUMRESLANGPROCA; +typedef FARPROC ENUMRESLANGPROCW; +#ifdef UNICODE +typedef ENUMRESLANGPROCW ENUMRESLANGPROC; +#else +typedef ENUMRESLANGPROCA ENUMRESLANGPROC; +#endif // UNICODE + +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +BOOL +WINAPI +DisableThreadLibraryCalls( + _In_ HMODULE hLibModule + ); + +WINBASEAPI +_Ret_maybenull_ +HRSRC +WINAPI +FindResourceExW( + _In_opt_ HMODULE hModule, + _In_ LPCWSTR lpType, + _In_ LPCWSTR lpName, + _In_ WORD wLanguage + ); + +#ifdef UNICODE +#define FindResourceEx FindResourceExW +#endif + +#if (_WIN32_WINNT >= _WIN32_WINNT_WIN7) + +WINBASEAPI +int +WINAPI +FindStringOrdinal( + _In_ DWORD dwFindStringOrdinalFlags, + _In_reads_(cchSource) LPCWSTR lpStringSource, + _In_ int cchSource, + _In_reads_(cchValue) LPCWSTR lpStringValue, + _In_ int cchValue, + _In_ BOOL bIgnoreCase + ); + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN7) + +WINBASEAPI +BOOL +WINAPI +FreeLibrary( + _In_ HMODULE hLibModule + ); + +WINBASEAPI +DECLSPEC_NORETURN +VOID +WINAPI +FreeLibraryAndExitThread( + _In_ HMODULE hLibModule, + _In_ DWORD dwExitCode + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +WINAPI +FreeResource( + _In_ HGLOBAL hResData + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +_Success_(return != 0) +_Ret_range_(1,nSize) +DWORD +WINAPI +GetModuleFileNameA( + _In_opt_ HMODULE hModule, + _Out_writes_to_(nSize,((return < nSize) ? (return + 1) : nSize)) LPSTR lpFilename, + _In_ DWORD nSize + ); + +WINBASEAPI +_Success_(return != 0) +_Ret_range_(1,nSize) +DWORD +WINAPI +GetModuleFileNameW( + _In_opt_ HMODULE hModule, + _Out_writes_to_(nSize,((return < nSize) ? (return + 1) : nSize)) LPWSTR lpFilename, + _In_ DWORD nSize + ); + +#ifdef UNICODE +#define GetModuleFileName GetModuleFileNameW +#else +#define GetModuleFileName GetModuleFileNameA +#endif // !UNICODE + +WINBASEAPI +_When_(lpModuleName == NULL,_Ret_notnull_) +_When_(lpModuleName != NULL,_Ret_maybenull_) +HMODULE +WINAPI +GetModuleHandleA( + _In_opt_ LPCSTR lpModuleName + ); + +WINBASEAPI +_When_(lpModuleName == NULL,_Ret_notnull_) +_When_(lpModuleName != NULL,_Ret_maybenull_) +HMODULE +WINAPI +GetModuleHandleW( + _In_opt_ LPCWSTR lpModuleName + ); + +#ifdef UNICODE +#define GetModuleHandle GetModuleHandleW +#else +#define GetModuleHandle GetModuleHandleA +#endif // !UNICODE + +#if !defined(RC_INVOKED) + +#define GET_MODULE_HANDLE_EX_FLAG_PIN (0x00000001) +#define GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT (0x00000002) +#define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS (0x00000004) + +typedef +BOOL +(WINAPI* +PGET_MODULE_HANDLE_EXA)( + _In_ DWORD dwFlags, + _In_opt_ LPCSTR lpModuleName, + _Outptr_ HMODULE* phModule + ); +typedef +BOOL +(WINAPI* +PGET_MODULE_HANDLE_EXW)( + _In_ DWORD dwFlags, + _In_opt_ LPCWSTR lpModuleName, + _Outptr_ HMODULE* phModule + ); +#ifdef UNICODE +#define PGET_MODULE_HANDLE_EX PGET_MODULE_HANDLE_EXW +#else +#define PGET_MODULE_HANDLE_EX PGET_MODULE_HANDLE_EXA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +GetModuleHandleExA( + _In_ DWORD dwFlags, + _In_opt_ LPCSTR lpModuleName, + _Out_ HMODULE* phModule + ); + +WINBASEAPI +BOOL +WINAPI +GetModuleHandleExW( + _In_ DWORD dwFlags, + _In_opt_ LPCWSTR lpModuleName, + _Out_ HMODULE* phModule + ); + +#ifdef UNICODE +#define GetModuleHandleEx GetModuleHandleExW +#else +#define GetModuleHandleEx GetModuleHandleExA +#endif // !UNICODE + +#endif + +WINBASEAPI +FARPROC +WINAPI +GetProcAddress( + _In_ HMODULE hModule, + _In_ LPCSTR lpProcName + ); + +#define CURRENT_IMPORT_REDIRECTION_VERSION 1 + +typedef struct _REDIRECTION_FUNCTION_DESCRIPTOR { + PCSTR DllName; + PCSTR FunctionName; + PVOID RedirectionTarget; +} REDIRECTION_FUNCTION_DESCRIPTOR, *PREDIRECTION_FUNCTION_DESCRIPTOR; + +typedef const REDIRECTION_FUNCTION_DESCRIPTOR *PCREDIRECTION_FUNCTION_DESCRIPTOR; + +typedef struct _REDIRECTION_DESCRIPTOR { + ULONG Version; + ULONG FunctionCount; + PCREDIRECTION_FUNCTION_DESCRIPTOR Redirections; +} REDIRECTION_DESCRIPTOR, *PREDIRECTION_DESCRIPTOR; + +typedef const REDIRECTION_DESCRIPTOR *PCREDIRECTION_DESCRIPTOR; + +WINBASEAPI +_Ret_maybenull_ +HMODULE +WINAPI +LoadLibraryExA( + _In_ LPCSTR lpLibFileName, + _Reserved_ HANDLE hFile, + _In_ DWORD dwFlags + ); + +WINBASEAPI +_Ret_maybenull_ +HMODULE +WINAPI +LoadLibraryExW( + _In_ LPCWSTR lpLibFileName, + _Reserved_ HANDLE hFile, + _In_ DWORD dwFlags + ); + +#ifdef UNICODE +#define LoadLibraryEx LoadLibraryExW +#else +#define LoadLibraryEx LoadLibraryExA +#endif // !UNICODE + +#define DONT_RESOLVE_DLL_REFERENCES 0x00000001 +#define LOAD_LIBRARY_AS_DATAFILE 0x00000002 +// reserved for internal LOAD_PACKAGED_LIBRARY: 0x00000004 +#define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008 +#define LOAD_IGNORE_CODE_AUTHZ_LEVEL 0x00000010 +#define LOAD_LIBRARY_AS_IMAGE_RESOURCE 0x00000020 +#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 0x00000040 +#define LOAD_LIBRARY_REQUIRE_SIGNED_TARGET 0x00000080 +#define LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR 0x00000100 +#define LOAD_LIBRARY_SEARCH_APPLICATION_DIR 0x00000200 +#define LOAD_LIBRARY_SEARCH_USER_DIRS 0x00000400 +#define LOAD_LIBRARY_SEARCH_SYSTEM32 0x00000800 +#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS 0x00001000 + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS1) + +#define LOAD_LIBRARY_SAFE_CURRENT_DIRS 0x00002000 + +#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER 0x00004000 + +#else + +// +// For anything building for downlevel, set the flag to be the same as LOAD_LIBRARY_SEARCH_SYSTEM32 +// such that they're treated the same when running on older version of OS. +// + +#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER LOAD_LIBRARY_SEARCH_SYSTEM32 + +#endif // (_APISET_LIBLOADER_VER >= 0x0202) + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS2) + +#define LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY 0x00008000 + +#endif + +WINBASEAPI +_Ret_maybenull_ +HGLOBAL +WINAPI +LoadResource( + _In_opt_ HMODULE hModule, + _In_ HRSRC hResInfo + ); + +WINUSERAPI +int +WINAPI +LoadStringA( + _In_opt_ HINSTANCE hInstance, + _In_ UINT uID, + _Out_writes_to_(cchBufferMax,return + 1) LPSTR lpBuffer, + _In_ int cchBufferMax + ); + +WINUSERAPI +int +WINAPI +LoadStringW( + _In_opt_ HINSTANCE hInstance, + _In_ UINT uID, + _Out_writes_to_(cchBufferMax,return + 1) LPWSTR lpBuffer, + _In_ int cchBufferMax + ); + +#ifdef UNICODE +#define LoadString LoadStringW +#else +#define LoadString LoadStringA +#endif // !UNICODE + +WINBASEAPI +LPVOID +WINAPI +LockResource( + _In_ HGLOBAL hResData + ); + +WINBASEAPI +DWORD +WINAPI +SizeofResource( + _In_opt_ HMODULE hModule, + _In_ HRSRC hResInfo + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region App Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +typedef PVOID DLL_DIRECTORY_COOKIE, *PDLL_DIRECTORY_COOKIE; + +WINBASEAPI +DLL_DIRECTORY_COOKIE +WINAPI +AddDllDirectory( + _In_ PCWSTR NewDirectory + ); + +WINBASEAPI +BOOL +WINAPI +RemoveDllDirectory( + _In_ DLL_DIRECTORY_COOKIE Cookie + ); + +WINBASEAPI +BOOL +WINAPI +SetDefaultDllDirectories( + _In_ DWORD DirectoryFlags + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#if (_WIN32_WINNT >= _WIN32_WINNT_VISTA) + +WINBASEAPI +BOOL +APIENTRY +EnumResourceLanguagesExA( + _In_opt_ HMODULE hModule, + _In_ LPCSTR lpType, + _In_ LPCSTR lpName, + _In_ ENUMRESLANGPROCA lpEnumFunc, + _In_opt_ LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + +WINBASEAPI +BOOL +APIENTRY +EnumResourceLanguagesExW( + _In_opt_ HMODULE hModule, + _In_ LPCWSTR lpType, + _In_ LPCWSTR lpName, + _In_ ENUMRESLANGPROCW lpEnumFunc, + _In_opt_ LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + +#ifdef UNICODE +#define EnumResourceLanguagesEx EnumResourceLanguagesExW +#else +#define EnumResourceLanguagesEx EnumResourceLanguagesExA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +EnumResourceNamesExA( + _In_opt_ HMODULE hModule, + _In_ LPCSTR lpType, + _In_ ENUMRESNAMEPROCA lpEnumFunc, + _In_ LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + +WINBASEAPI +BOOL +WINAPI +EnumResourceNamesExW( + _In_opt_ HMODULE hModule, + _In_ LPCWSTR lpType, + _In_ ENUMRESNAMEPROCW lpEnumFunc, + _In_ LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + +#ifdef UNICODE +#define EnumResourceNamesEx EnumResourceNamesExW +#else +#define EnumResourceNamesEx EnumResourceNamesExA +#endif // !UNICODE + +WINBASEAPI +BOOL +WINAPI +EnumResourceTypesExA( + _In_opt_ HMODULE hModule, + _In_ ENUMRESTYPEPROCA lpEnumFunc, + _In_ LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + +WINBASEAPI +BOOL +WINAPI +EnumResourceTypesExW( + _In_opt_ HMODULE hModule, + _In_ ENUMRESTYPEPROCW lpEnumFunc, + _In_ LONG_PTR lParam, + DWORD dwFlags, + LANGID LangId + ); + +#ifdef UNICODE +#define EnumResourceTypesEx EnumResourceTypesExW +#else +#define EnumResourceTypesEx EnumResourceTypesExA +#endif // !UNICODE + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_VISTA) + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +_Ret_maybenull_ +HRSRC +WINAPI +FindResourceW( + _In_opt_ HMODULE hModule, + _In_ LPCWSTR lpName, + _In_ LPCWSTR lpType + ); + +#ifdef UNICODE +#define FindResource FindResourceW +#endif + +WINBASEAPI +_Ret_maybenull_ +HMODULE +WINAPI +LoadLibraryA( + _In_ LPCSTR lpLibFileName + ); + +WINBASEAPI +_Ret_maybenull_ +HMODULE +WINAPI +LoadLibraryW( + _In_ LPCWSTR lpLibFileName + ); + +#ifdef UNICODE +#define LoadLibrary LoadLibraryW +#else +#define LoadLibrary LoadLibraryA +#endif // !UNICODE + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +BOOL +WINAPI +EnumResourceNamesW( + _In_opt_ HMODULE hModule, + _In_ LPCWSTR lpType, + _In_ ENUMRESNAMEPROCW lpEnumFunc, + _In_ LONG_PTR lParam + ); + +WINBASEAPI +BOOL +WINAPI +EnumResourceNamesA( + _In_opt_ HMODULE hModule, + _In_ LPCSTR lpType, + _In_ ENUMRESNAMEPROCA lpEnumFunc, + _In_ LONG_PTR lParam + ); + +#ifdef UNICODE +#define EnumResourceNames EnumResourceNamesW +#else +#define EnumResourceNames EnumResourceNamesA +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _APISETLIBLOADER_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/libloaderapi2.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/libloaderapi2.h new file mode 100644 index 0000000000000000000000000000000000000000..c8e8e79cbe66fc06ded7be71d6725e0c4f9e4c41 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/libloaderapi2.h @@ -0,0 +1,68 @@ +/******************************************************************************** +* * +* libloaderapi2.h -- ApiSet Contract for api-ms-win-core-libraryloader-l2 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _APISETLIBLOADER2_ +#define _APISETLIBLOADER2_ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0602) + +WINBASEAPI +_Ret_maybenull_ +HMODULE +WINAPI +LoadPackagedLibrary( + _In_ LPCWSTR lpwLibFileName, + _Reserved_ DWORD Reserved + ); + +#endif // _WIN32_WINNT >= 0x0602 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +#if (_WIN32_WINNT >= 0x0602) + +WINBASEAPI +BOOL +WINAPI +QueryOptionalDelayLoadedAPI( + _In_ HMODULE hParentModule, + _In_ LPCSTR lpDllName, + _In_ LPCSTR lpProcName, + _Reserved_ DWORD Reserved + ); + +#endif // _WIN32_WINNT >= 0x0602 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _APISETLIBLOADER2_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/listeneradapter.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/listeneradapter.h new file mode 100644 index 0000000000000000000000000000000000000000..78c3a32cbc10c0d085db0d52c9134ff9ffb458ea --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/listeneradapter.h @@ -0,0 +1,395 @@ +/*++ + +Copyright (c) 1998-2005 Microsoft Corporation + +Module Name: + + listeneradapter.h + +Abstract: + + The exported routines for the wbhstipm dll. + +--*/ + +#ifndef _LISTENER_ADAPTER_H_ +#define _LISTENER_ADAPTER_H_ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// +// +// +// Enumerations +// + +// +// callback function definitions +// + +// +// *** Config Manager Callback functions *** +// + +// +// Notifies the listener adapter that the configuration +// manager has connected. After this call the listener +// adapter can expect configuration notifications to fire so +// it can setup the listener to wait on incoming requests. +// This notification will always proceed any configuration +// notifications, and is a signal that they listener adapter +// should be in a clean state and ready to receive new +// configuration. +// +// WAS does not wait on the completion of this notification. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_CONFIG_MANAGER_CONNECTED)( + IN VOID * pContext + ); + +// +// Notifies the listener adapter that the WAS service +// has disconnected. This may happen if WAS were to +// crash. In this case, the listener adapter is expected +// to cleanup everything that WAS configured. Once WAS +// restarts it will provide any running listener adapters +// with configuration info again, so the listener adapter +// has to prepare to be re-configured. +// +// WAS does not wait on the completion of this notification. +// +// +typedef VOID +(*PFN_WEBHOST_LISTENER_CONFIG_MANAGER_DISCONNECT)( + IN VOID * pContext, + IN HRESULT hr + ); + + +// +// Notifies a listener adapter that WAS has completed passing +// all configuration for the service. No more configuration +// will be passed until change notifications cause it. At this +// point a listener adapter should activate all configured +// applications, not before. Before this notification the listener +// adapter may have partial configuration data and may mis-route +// due to not realizing that another application that changes +// the routing exists. It is also at this point that a service +// waiting on all applications and app pools to be configured +// can declare itself started. +// +// WAS does not wait on the completion of this notification. +// +// +typedef VOID +(*PFN_WEBHOST_LISTENER_CONFIG_MANAGER_INITIALIZATION_COMPLETED)( + IN VOID * pContext + ); + + +// +// *** App Pool Callback functions *** +// + +// +// The application in the eyes of this listener adapter +// has been created. In other words, an application that +// wants to participate in this app pool has been configured +// to use this protocol. +// +// WAS does not wait on the completion of this notification. +// + +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_POOL_CREATED)( + IN VOID * pContext, + IN LPCWSTR AppPoolId, + IN PSID PSID + ); + +// +// A notification the the app pool in the eyes of this +// listener is being deleted. Once this call completes, +// the listener adapter should be capable of creating +// this app pool again should it be told to. +// +// WAS does not wait on the completion of this notification. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_POOL_DELETED)( + IN VOID * pContext, + IN LPCWSTR AppPoolId + ); + +// +// A notification that worker processes running +// under this app pool will be running with a new +// identity. +// +// WAS does wait on the completion of this notification. +// +// Once all all of the listener adapters have completed +// this notification any recycles neccessary will be +// performed, and worker processes will again be able to launch. +// A listener adapter blocking on this routine can block +// all others in the app pool from starting worker processes. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_POOL_IDENTITY_CHANGED)( + IN VOID * pContext, + IN LPCWSTR AppPoolId, + IN PSID PSID + ); + +// +// Notify's a listener adapter that the state of an +// app pool has changed. Either the app pool is now capable +// of launching and running worker processes, or the app +// pool is now disabled and will not run worker processes. +// +// WAS does not wait on the completion of this notification. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_POOL_STATE_CHANGED)( + IN VOID * pContext, + IN LPCWSTR AppPoolId, + IN BOOL fIsEnabled + ); + +// +// Notify's a listener adapter that it is possible to +// launch other instances of this listener channel. The listener +// adapter should call start listener channel when it receives the +// next request to be processed. The listener adapter +// should not call start listener channel after that until it is +// once again told to through this function. +// +// WAS does not wait on the completion of this notification. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_POOL_CAN_OPEN_NEW_LISTENER_CHANNEL_INSTANCE)( + IN VOID * pContext, + IN LPCWSTR AppPoolId, + IN DWORD ListenerChannelId + ); + +// +// Notify's a listener adapter that all instances of a particular +// listener channel have been stopped. During shutdown a listener adapter +// should wait on this before stopping, otherwise restarting +// may have problems, with listener channels all ready being in use. +// +// WAS does not wait on the completion of this notification. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_POOL_ALL_LISTENER_CHANNEL_INSTANCES_STOPPED)( + IN VOID * pContext, + IN LPCWSTR AppPoolId, + IN DWORD ListenerChannelId + ); + +// +// *** App Pool Callback functions *** +// + +// +// Notifies the listener adapter that an application exists in +// the eyes of this listener adapter. Whether the listener +// adapter chooses to configure this application with the listener +// is up to the listener adapter. The RequestsBlocked value tells the +// listener adapter that while you should listen on this application +// you should not process requests. It is to block requests from going +// to parent applications because the child does not support the +// protocol. +// +// WAS does not wait on the completion of this notification. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_CREATED)( + IN VOID * pContext, + IN LPCWSTR AppKey, + IN LPCWSTR Path, + IN DWORD SiteId, + IN LPCWSTR AppPoolId, + IN PBYTE Bindings, + IN DWORD NumberOfBindings, + IN BOOL RequestsBlocked + ); + +// +// Notifies the listener adapter that the application no longer +// should exist in the listener adapters eyes. This may mean +// that the application was deleted, or that all applications for +// this site no longer use this protocol. +// +// WAS does not wait on the completion of this notification. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_DELETED)( + IN VOID * pContext, + IN LPCWSTR AppKey + ); + +// +// Notifies the listener adapter that the bindings for a particular +// application have changed. +// +// WAS does not wait on the completion of this notification. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_BINDINGS_CHANGED)( + IN VOID * pContext, + IN LPCWSTR AppKey, + IN PBYTE Bindings, + IN DWORD NumberOfBindings + ); + +// +// Notifies the listener adapter that the app pool for a particular +// application have changed. +// +// WAS does not wait on the completion of this notification. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_APP_POOL_CHANGED)( + IN VOID * pContext, + IN LPCWSTR AppKey, + IN LPCWSTR AppPoolId + ); + +// +// Notifies the listener adapter that it should either no longer +// reject requests for the application, or that it should start +// rejecting requests for the application. +// +// WAS does not wait on the completion of this notification. +// +typedef VOID +(*PFN_WEBHOST_LISTENER_APPLICATION_REQUESTS_BLOCKED_CHANGED)( + IN VOID * pContext, + IN LPCWSTR AppKey, + IN BOOL RequestsBlocked + ); + +// +// Callback structure +// +struct WEBHOST_LISTENER_CALLBACKS +{ + DWORD dwBytesInCallbackStructure; + PFN_WEBHOST_LISTENER_CONFIG_MANAGER_CONNECTED pfnWebhostListenerConfigManagerConnected; + PFN_WEBHOST_LISTENER_CONFIG_MANAGER_DISCONNECT pfnWebhostListenerConfigManagerDisconnected; + PFN_WEBHOST_LISTENER_CONFIG_MANAGER_INITIALIZATION_COMPLETED pfnWebhostListenerConfigManagerInitializationCompleted; + + PFN_WEBHOST_LISTENER_APPLICATION_POOL_CREATED pfnWebhostListenerApplicationPoolCreated; + PFN_WEBHOST_LISTENER_APPLICATION_POOL_DELETED pfnWebhostListenerApplicationPoolDeleted; + PFN_WEBHOST_LISTENER_APPLICATION_POOL_IDENTITY_CHANGED pfnWebhostListenerApplicationPoolIdentityChanged; + PFN_WEBHOST_LISTENER_APPLICATION_POOL_STATE_CHANGED pfnWebhostListenerApplicationPoolStateChanged; + PFN_WEBHOST_LISTENER_APPLICATION_POOL_CAN_OPEN_NEW_LISTENER_CHANNEL_INSTANCE pfnWebhostListenerApplicationPoolCanOpenNewListenerChannelInstance; + PFN_WEBHOST_LISTENER_APPLICATION_POOL_ALL_LISTENER_CHANNEL_INSTANCES_STOPPED pfnWebhostListenerApplicationPoolAllListenerChannelInstancesStopped; + + PFN_WEBHOST_LISTENER_APPLICATION_CREATED pfnWebhostListenerApplicationCreated; + PFN_WEBHOST_LISTENER_APPLICATION_DELETED pfnWebhostListenerApplicationDeleted; + PFN_WEBHOST_LISTENER_APPLICATION_BINDINGS_CHANGED pfnWebhostListenerApplicationBindingsChanged; + PFN_WEBHOST_LISTENER_APPLICATION_APP_POOL_CHANGED pfnWebhostListenerApplicationAppPoolChanged; + PFN_WEBHOST_LISTENER_APPLICATION_REQUESTS_BLOCKED_CHANGED pfnWebhostListenerApplicationRequestsBlockedChanged; +}; + +// +// exported functions +// + +// +// Webhost client can call to determine +// the version of webhost it is running +// against. This information will allow +// it to understand what exported functions +// it should expect. +// +HRESULT +WebhostGetVersion( + OUT DWORD* pMajorVersion, + OUT DWORD* pMinorVersion + ); + +// +// Registers a protocol for WAS to honor +// when it is running. The ProtocolHandle returned +// can be used to activate other calls against +// the registered protocol. +// +// pListenerCallbacks will be +// +HRESULT +WebhostRegisterProtocol( + IN LPCWSTR ProtocolId, + IN VOID* pListenerCallbacks, + IN VOID * pContext, + OUT DWORD* pProtocolHandle + ); + +// +// Before a protocol goes down, it should first +// stop any listener channels that were running, and wait for +// those listener channels to stop (detemined through private means). +// Then it should unregister the protocol with the W3SVC +// client library. +// +HRESULT +WebhostUnregisterProtocol( + IN DWORD ProtocolHandle + ); + +// +// This will request a listener channel be started in a +// worker process for this app pool. +// +// It is a failure to call if the client +// library is not in a connected state. +// +HRESULT +WebhostOpenListenerChannelInstance( + IN DWORD ProtocolHandle, + IN LPCWSTR AppPoolId, + IN DWORD ListenerChannelId, + IN PBYTE ListenerChannelBlob, + IN DWORD ListenerChannelBlobByteCount + ); + +// +// Function will stop all instances of +// this listener channel. It is not a failure to call +// with no listener channels running. It is a failure +// to call if not in a connected state. +// +HRESULT +WebhostCloseAllListenerChannelInstances( + IN DWORD ProtocolHandle, + IN LPCWSTR AppPoolId, + IN DWORD ListenerChannelId + ); + +// +// ========================================================================================= +// + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _LISTENER_ADAPTER_H_ + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmon.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmon.h new file mode 100644 index 0000000000000000000000000000000000000000..a5369996d95770a2a03a8207090a34279cf703ef --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmon.h @@ -0,0 +1,43 @@ +/*++ + +Copyright (c) 1991-1999 Microsoft Corporation +All rights reserved + +Module Name: + + lmon.h + +--*/ + + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +typedef struct _PORT_INFO_FFA { + LPSTR pName; + DWORD cbMonitorData; + LPBYTE pMonitorData; +} PORT_INFO_FFA, *PPORT_INFO_FFA, *LPPORT_INFO_FFA; + +typedef struct _PORT_INFO_FFW { + LPWSTR pName; + DWORD cbMonitorData; + LPBYTE pMonitorData; +} PORT_INFO_FFW, *PPORT_INFO_FFW, *LPPORT_INFO_FFW; + +#ifdef UNICODE +#define PORT_INFO_FF PORT_INFO_FFW +#define PPORT_INFO_FF PPORT_INFO_FFW +#define LPPORT_INFO_FF LPPORT_INFO_FFW +#else +#define PORT_INFO_FF PORT_INFO_FFA +#define PPORT_INFO_FF PPORT_INFO_FFA +#define LPPORT_INFO_FF LPPORT_INFO_FFA +#endif // UNICODE + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmstats.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmstats.h new file mode 100644 index 0000000000000000000000000000000000000000..3b4bd799f9ef01efaf27af7cc79989b5b2f1607f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmstats.h @@ -0,0 +1,199 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmstats.h + +Abstract: + + This module defines the API function prototypes and data structures + for the following groups of NT API functions: + NetStatistics + +Environment: + + User Mode - Win32 + +Notes: + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +--*/ + +#ifndef _LMSTATS_ +#define _LMSTATS_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +// +// Function Prototypes - Statistics +// + +NET_API_STATUS NET_API_FUNCTION +NetStatisticsGet ( + _In_ LPTSTR ServerName, + _In_ LPTSTR Service, + _In_ DWORD Level, + _In_ DWORD Options, + _Outptr_ LPBYTE *Buffer + ); + +// +// Data Structures - Statistics +// + +#ifdef LM20_WORKSTATION_STATISTICS +typedef struct _STAT_WORKSTATION_0 { + DWORD stw0_start; + DWORD stw0_numNCB_r; + DWORD stw0_numNCB_s; + DWORD stw0_numNCB_a; + DWORD stw0_fiNCB_r; + DWORD stw0_fiNCB_s; + DWORD stw0_fiNCB_a; + DWORD stw0_fcNCB_r; + DWORD stw0_fcNCB_s; + DWORD stw0_fcNCB_a; + DWORD stw0_sesstart; + DWORD stw0_sessfailcon; + DWORD stw0_sessbroke; + DWORD stw0_uses; + DWORD stw0_usefail; + DWORD stw0_autorec; + DWORD stw0_bytessent_r_lo; + DWORD stw0_bytessent_r_hi; + DWORD stw0_bytesrcvd_r_lo; + DWORD stw0_bytesrcvd_r_hi; + DWORD stw0_bytessent_s_lo; + DWORD stw0_bytessent_s_hi; + DWORD stw0_bytesrcvd_s_lo; + DWORD stw0_bytesrcvd_s_hi; + DWORD stw0_bytessent_a_lo; + DWORD stw0_bytessent_a_hi; + DWORD stw0_bytesrcvd_a_lo; + DWORD stw0_bytesrcvd_a_hi; + DWORD stw0_reqbufneed; + DWORD stw0_bigbufneed; +} STAT_WORKSTATION_0, *PSTAT_WORKSTATION_0, *LPSTAT_WORKSTATION_0; +#else + +// +// NB: The following structure is REDIR_STATISTICS in sdk\inc\ntddnfs.h. If you +// change the structure, change it in both places +// + +typedef struct _STAT_WORKSTATION_0 { + LARGE_INTEGER StatisticsStartTime; + + LARGE_INTEGER BytesReceived; + LARGE_INTEGER SmbsReceived; + LARGE_INTEGER PagingReadBytesRequested; + LARGE_INTEGER NonPagingReadBytesRequested; + LARGE_INTEGER CacheReadBytesRequested; + LARGE_INTEGER NetworkReadBytesRequested; + + LARGE_INTEGER BytesTransmitted; + LARGE_INTEGER SmbsTransmitted; + LARGE_INTEGER PagingWriteBytesRequested; + LARGE_INTEGER NonPagingWriteBytesRequested; + LARGE_INTEGER CacheWriteBytesRequested; + LARGE_INTEGER NetworkWriteBytesRequested; + + DWORD InitiallyFailedOperations; + DWORD FailedCompletionOperations; + + DWORD ReadOperations; + DWORD RandomReadOperations; + DWORD ReadSmbs; + DWORD LargeReadSmbs; + DWORD SmallReadSmbs; + + DWORD WriteOperations; + DWORD RandomWriteOperations; + DWORD WriteSmbs; + DWORD LargeWriteSmbs; + DWORD SmallWriteSmbs; + + DWORD RawReadsDenied; + DWORD RawWritesDenied; + + DWORD NetworkErrors; + + // Connection/Session counts + DWORD Sessions; + DWORD FailedSessions; + DWORD Reconnects; + DWORD CoreConnects; + DWORD Lanman20Connects; + DWORD Lanman21Connects; + DWORD LanmanNtConnects; + DWORD ServerDisconnects; + DWORD HungSessions; + DWORD UseCount; + DWORD FailedUseCount; + + // + // Queue Lengths (updates protected by RdrMpxTableSpinLock NOT + // RdrStatisticsSpinlock) + // + + DWORD CurrentCommands; + +} STAT_WORKSTATION_0, *PSTAT_WORKSTATION_0, *LPSTAT_WORKSTATION_0; +#endif + +typedef struct _STAT_SERVER_0 { + DWORD sts0_start; + DWORD sts0_fopens; + DWORD sts0_devopens; + DWORD sts0_jobsqueued; + DWORD sts0_sopens; + DWORD sts0_stimedout; + DWORD sts0_serrorout; + DWORD sts0_pwerrors; + DWORD sts0_permerrors; + DWORD sts0_syserrors; + DWORD sts0_bytessent_low; + DWORD sts0_bytessent_high; + DWORD sts0_bytesrcvd_low; + DWORD sts0_bytesrcvd_high; + DWORD sts0_avresponse; + DWORD sts0_reqbufneed; + DWORD sts0_bigbufneed; +} STAT_SERVER_0, *PSTAT_SERVER_0, *LPSTAT_SERVER_0; + + +// +// Special Values and Constants +// + +#define STATSOPT_CLR 1 +#define STATS_NO_VALUE ((unsigned long) -1L) +#define STATS_OVERFLOW ((unsigned long) -2L) + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _LMSTATS.H diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmuseflg.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmuseflg.h new file mode 100644 index 0000000000000000000000000000000000000000..2b24767adebebdea7ebcc632cae535a8fa5edd0f --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmuseflg.h @@ -0,0 +1,52 @@ +/*++ BUILD Version: 0001 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmuseflg.h + +Abstract: + + This file contains deletion force levels for deleting a connection. + +Environment: + + User Mode - Win32 + +Notes: + + This file has no dependencies. It is included by lmwksta.h and + lmuse.h. + +Revision History: + +--*/ + +#ifndef _LMUSEFLG_ +#define _LMUSEFLG_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +// +// Definition for NetWkstaTransportDel and NetUseDel deletion force levels and flags. The lower 16 bits +// define the force levels and the upper 16 bits are the use flags defined in lmuse.h +// + +#define USE_NOFORCE 0 +#define USE_FORCE 1 +#define USE_LOTS_OF_FORCE 2 + +#define FORCE_LEVEL(LEVELFLAGS) ((LEVELFLAGS) & 0xffff) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _LMUSEFLG_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmwksta.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmwksta.h new file mode 100644 index 0000000000000000000000000000000000000000..7191233a81d28860972a2c1dd458f2bd12677e2e --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lmwksta.h @@ -0,0 +1,566 @@ +/*++ BUILD Version: 0006 // Increment this if a change has global effects + +Copyright (c) 1991-1999 Microsoft Corporation + +Module Name: + + lmwksta.h + +Abstract: + + This file contains structures, function prototypes, and definitions + for the NetWorkstation and NetWkstaTransport API. + +Environment: + + User Mode - Win32 + Portable to any flat, 32-bit environment. (Uses Win32 typedefs.) + Requires ANSI C extensions: slash-slash comments, long external names. + +Notes: + + You must include NETCONS.H before this file, since this file depends + on values defined in NETCONS.H. + +--*/ + +#ifndef _LMWKSTA_ +#define _LMWKSTA_ + +#if _MSC_VER > 1000 +#pragma once +#endif +#include + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include // Deletion force level flags + +#if _MSC_VER >= 1200 +#pragma warning(push) +#pragma warning(disable:4820) // padding added after data member +#endif + +// +// Function Prototypes +// + +NET_API_STATUS NET_API_FUNCTION +NetWkstaGetInfo ( + _In_opt_ LMSTR servername OPTIONAL, + _In_ DWORD level, + _Outptr_opt_result_buffer_(_Inexpressible_("size varies with level")) OUT LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetWkstaSetInfo ( + _In_opt_ LMSTR servername OPTIONAL, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buffer, + _Out_opt_ OUT LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetWkstaUserGetInfo ( + _In_opt_ LMSTR reserved, + _In_ DWORD level, + _Outptr_result_buffer_(_Inexpressible_("varies")) OUT LPBYTE *bufptr + ); + +NET_API_STATUS NET_API_FUNCTION +NetWkstaUserSetInfo ( + _In_opt_ LMSTR reserved, + _In_ DWORD level, + _In_reads_(_Inexpressible_("varies")) LPBYTE buf, + _Out_opt_ LPDWORD parm_err OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetWkstaUserEnum ( + _In_opt_ LMSTR servername OPTIONAL, + IN DWORD level, + _Out_opt_ LPBYTE *bufptr, + IN DWORD prefmaxlen, + _Out_opt_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resumehandle OPTIONAL + ); + +NET_API_STATUS NET_API_FUNCTION +NetWkstaTransportAdd ( + _In_opt_ LPTSTR servername, + _In_ DWORD level, + _When_( level == 0, _In_reads_bytes_(sizeof(WKSTA_TRANSPORT_INFO_0))) + LPBYTE buf, + _Out_opt_ LPDWORD parm_err + ); + +NET_API_STATUS NET_API_FUNCTION +NetWkstaTransportDel ( + _In_opt_ IN LMSTR servername OPTIONAL, + _In_opt_ IN LMSTR transportname, + IN DWORD ucond + ); + +_Check_return_ +_Success_( return == NERR_Success || return == ERROR_MORE_DATA ) +NET_API_STATUS NET_API_FUNCTION +NetWkstaTransportEnum( + _In_opt_ LPTSTR servername, + _In_ DWORD level, + _When_( level == 0, _Outptr_result_bytebuffer_(*entriesread * sizeof(WKSTA_TRANSPORT_INFO_0)) ) + LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _Inout_opt_ LPDWORD resume_handle + ); + +// +// Data Structures +// + +// +// NetWkstaGetInfo and NetWkstaSetInfo +// + +// +// NetWkstaGetInfo only. System information - guest access +// +typedef struct _WKSTA_INFO_100 { + DWORD wki100_platform_id; + LMSTR wki100_computername; + LMSTR wki100_langroup; + DWORD wki100_ver_major; + DWORD wki100_ver_minor; +}WKSTA_INFO_100, *PWKSTA_INFO_100, *LPWKSTA_INFO_100; + +// +// NetWkstaGetInfo only. System information - user access +// +typedef struct _WKSTA_INFO_101 { + DWORD wki101_platform_id; + LMSTR wki101_computername; + LMSTR wki101_langroup; + DWORD wki101_ver_major; + DWORD wki101_ver_minor; + LMSTR wki101_lanroot; +}WKSTA_INFO_101, *PWKSTA_INFO_101, *LPWKSTA_INFO_101; + +// +// NetWkstaGetInfo only. System information - admin or operator access +// +typedef struct _WKSTA_INFO_102 { + DWORD wki102_platform_id; + LMSTR wki102_computername; + LMSTR wki102_langroup; + DWORD wki102_ver_major; + DWORD wki102_ver_minor; + LMSTR wki102_lanroot; + DWORD wki102_logged_on_users; +}WKSTA_INFO_102, *PWKSTA_INFO_102, *LPWKSTA_INFO_102; + +// +// Down-level NetWkstaGetInfo and NetWkstaSetInfo. +// +// DOS specific workstation information - +// admin or domain operator access +// +typedef struct _WKSTA_INFO_302{ + DWORD wki302_char_wait; + DWORD wki302_collection_time; + DWORD wki302_maximum_collection_count; + DWORD wki302_keep_conn; + DWORD wki302_keep_search; + DWORD wki302_max_cmds; + DWORD wki302_num_work_buf; + DWORD wki302_siz_work_buf; + DWORD wki302_max_wrk_cache; + DWORD wki302_sess_timeout; + DWORD wki302_siz_error; + DWORD wki302_num_alerts; + DWORD wki302_num_services; + DWORD wki302_errlog_sz; + DWORD wki302_print_buf_time; + DWORD wki302_num_char_buf; + DWORD wki302_siz_char_buf; + LMSTR wki302_wrk_heuristics; + DWORD wki302_mailslots; + DWORD wki302_num_dgram_buf; +}WKSTA_INFO_302, *PWKSTA_INFO_302, *LPWKSTA_INFO_302; + +// +// Down-level NetWkstaGetInfo and NetWkstaSetInfo +// +// OS/2 specific workstation information - +// admin or domain operator access +// +typedef struct _WKSTA_INFO_402{ + DWORD wki402_char_wait; + DWORD wki402_collection_time; + DWORD wki402_maximum_collection_count; + DWORD wki402_keep_conn; + DWORD wki402_keep_search; + DWORD wki402_max_cmds; + DWORD wki402_num_work_buf; + DWORD wki402_siz_work_buf; + DWORD wki402_max_wrk_cache; + DWORD wki402_sess_timeout; + DWORD wki402_siz_error; + DWORD wki402_num_alerts; + DWORD wki402_num_services; + DWORD wki402_errlog_sz; + DWORD wki402_print_buf_time; + DWORD wki402_num_char_buf; + DWORD wki402_siz_char_buf; + LMSTR wki402_wrk_heuristics; + DWORD wki402_mailslots; + DWORD wki402_num_dgram_buf; + DWORD wki402_max_threads; +}WKSTA_INFO_402, *PWKSTA_INFO_402, *LPWKSTA_INFO_402; + +// +// Same-level NetWkstaGetInfo and NetWkstaSetInfo. +// +// NT specific workstation information - +// admin or domain operator access +// +typedef struct _WKSTA_INFO_502{ + DWORD wki502_char_wait; + DWORD wki502_collection_time; + DWORD wki502_maximum_collection_count; + DWORD wki502_keep_conn; + DWORD wki502_max_cmds; + DWORD wki502_sess_timeout; + DWORD wki502_siz_char_buf; + DWORD wki502_max_threads; + + DWORD wki502_lock_quota; + DWORD wki502_lock_increment; + DWORD wki502_lock_maximum; + DWORD wki502_pipe_increment; + DWORD wki502_pipe_maximum; + DWORD wki502_cache_file_timeout; + DWORD wki502_dormant_file_limit; + DWORD wki502_read_ahead_throughput; + + DWORD wki502_num_mailslot_buffers; + DWORD wki502_num_srv_announce_buffers; + DWORD wki502_max_illegal_datagram_events; + DWORD wki502_illegal_datagram_event_reset_frequency; + BOOL wki502_log_election_packets; + + BOOL wki502_use_opportunistic_locking; + BOOL wki502_use_unlock_behind; + BOOL wki502_use_close_behind; + BOOL wki502_buf_named_pipes; + BOOL wki502_use_lock_read_unlock; + BOOL wki502_utilize_nt_caching; + BOOL wki502_use_raw_read; + BOOL wki502_use_raw_write; + BOOL wki502_use_write_raw_data; + BOOL wki502_use_encryption; + BOOL wki502_buf_files_deny_write; + BOOL wki502_buf_read_only_files; + BOOL wki502_force_core_create_mode; + BOOL wki502_use_512_byte_max_transfer; +}WKSTA_INFO_502, *PWKSTA_INFO_502, *LPWKSTA_INFO_502; + + +// +// The following info-levels are only valid for NetWkstaSetInfo +// + +// +// The following levels are supported on down-level systems (LAN Man 2.x) +// as well as NT systems: +// +typedef struct _WKSTA_INFO_1010 { + DWORD wki1010_char_wait; +} WKSTA_INFO_1010, *PWKSTA_INFO_1010, *LPWKSTA_INFO_1010; + +typedef struct _WKSTA_INFO_1011 { + DWORD wki1011_collection_time; +} WKSTA_INFO_1011, *PWKSTA_INFO_1011, *LPWKSTA_INFO_1011; + +typedef struct _WKSTA_INFO_1012 { + DWORD wki1012_maximum_collection_count; +} WKSTA_INFO_1012, *PWKSTA_INFO_1012, *LPWKSTA_INFO_1012; + +// +// The following level are supported on down-level systems (LAN Man 2.x) +// only: +// +typedef struct _WKSTA_INFO_1027 { + DWORD wki1027_errlog_sz; +} WKSTA_INFO_1027, *PWKSTA_INFO_1027, *LPWKSTA_INFO_1027; + +typedef struct _WKSTA_INFO_1028 { + DWORD wki1028_print_buf_time; +} WKSTA_INFO_1028, *PWKSTA_INFO_1028, *LPWKSTA_INFO_1028; + +typedef struct _WKSTA_INFO_1032 { + DWORD wki1032_wrk_heuristics; +} WKSTA_INFO_1032, *PWKSTA_INFO_1032, *LPWKSTA_INFO_1032; + +// +// The following levels are settable on NT systems, and have no +// effect on down-level systems (i.e. LANMan 2.x) since these +// fields cannot be set on them: +// +typedef struct _WKSTA_INFO_1013 { + DWORD wki1013_keep_conn; +} WKSTA_INFO_1013, *PWKSTA_INFO_1013, *LPWKSTA_INFO_1013; + +typedef struct _WKSTA_INFO_1018 { + DWORD wki1018_sess_timeout; +} WKSTA_INFO_1018, *PWKSTA_INFO_1018, *LPWKSTA_INFO_1018; + +typedef struct _WKSTA_INFO_1023 { + DWORD wki1023_siz_char_buf; +} WKSTA_INFO_1023, *PWKSTA_INFO_1023, *LPWKSTA_INFO_1023; + +typedef struct _WKSTA_INFO_1033 { + DWORD wki1033_max_threads; +} WKSTA_INFO_1033, *PWKSTA_INFO_1033, *LPWKSTA_INFO_1033; + +// +// The following levels are only supported on NT systems: +// +typedef struct _WKSTA_INFO_1041 { + DWORD wki1041_lock_quota; +} WKSTA_INFO_1041, *PWKSTA_INFO_1041, *LPWKSTA_INFO_1041; + +typedef struct _WKSTA_INFO_1042 { + DWORD wki1042_lock_increment; +} WKSTA_INFO_1042, *PWKSTA_INFO_1042, *LPWKSTA_INFO_1042; + +typedef struct _WKSTA_INFO_1043 { + DWORD wki1043_lock_maximum; +} WKSTA_INFO_1043, *PWKSTA_INFO_1043, *LPWKSTA_INFO_1043; + +typedef struct _WKSTA_INFO_1044 { + DWORD wki1044_pipe_increment; +} WKSTA_INFO_1044, *PWKSTA_INFO_1044, *LPWKSTA_INFO_1044; + +typedef struct _WKSTA_INFO_1045 { + DWORD wki1045_pipe_maximum; +} WKSTA_INFO_1045, *PWKSTA_INFO_1045, *LPWKSTA_INFO_1045; + +typedef struct _WKSTA_INFO_1046 { + DWORD wki1046_dormant_file_limit; +} WKSTA_INFO_1046, *PWKSTA_INFO_1046, *LPWKSTA_INFO_1046; + +typedef struct _WKSTA_INFO_1047 { + DWORD wki1047_cache_file_timeout; +} WKSTA_INFO_1047, *PWKSTA_INFO_1047, *LPWKSTA_INFO_1047; + +typedef struct _WKSTA_INFO_1048 { + BOOL wki1048_use_opportunistic_locking; +} WKSTA_INFO_1048, *PWKSTA_INFO_1048, *LPWKSTA_INFO_1048; + +typedef struct _WKSTA_INFO_1049 { + BOOL wki1049_use_unlock_behind; +} WKSTA_INFO_1049, *PWKSTA_INFO_1049, *LPWKSTA_INFO_1049; + +typedef struct _WKSTA_INFO_1050 { + BOOL wki1050_use_close_behind; +} WKSTA_INFO_1050, *PWKSTA_INFO_1050, *LPWKSTA_INFO_1050; + +typedef struct _WKSTA_INFO_1051 { + BOOL wki1051_buf_named_pipes; +} WKSTA_INFO_1051, *PWKSTA_INFO_1051, *LPWKSTA_INFO_1051; + +typedef struct _WKSTA_INFO_1052 { + BOOL wki1052_use_lock_read_unlock; +} WKSTA_INFO_1052, *PWKSTA_INFO_1052, *LPWKSTA_INFO_1052; + +typedef struct _WKSTA_INFO_1053 { + BOOL wki1053_utilize_nt_caching; +} WKSTA_INFO_1053, *PWKSTA_INFO_1053, *LPWKSTA_INFO_1053; + +typedef struct _WKSTA_INFO_1054 { + BOOL wki1054_use_raw_read; +} WKSTA_INFO_1054, *PWKSTA_INFO_1054, *LPWKSTA_INFO_1054; + +typedef struct _WKSTA_INFO_1055 { + BOOL wki1055_use_raw_write; +} WKSTA_INFO_1055, *PWKSTA_INFO_1055, *LPWKSTA_INFO_1055; + +typedef struct _WKSTA_INFO_1056 { + BOOL wki1056_use_write_raw_data; +} WKSTA_INFO_1056, *PWKSTA_INFO_1056, *LPWKSTA_INFO_1056; + +typedef struct _WKSTA_INFO_1057 { + BOOL wki1057_use_encryption; +} WKSTA_INFO_1057, *PWKSTA_INFO_1057, *LPWKSTA_INFO_1057; + +typedef struct _WKSTA_INFO_1058 { + BOOL wki1058_buf_files_deny_write; +} WKSTA_INFO_1058, *PWKSTA_INFO_1058, *LPWKSTA_INFO_1058; + +typedef struct _WKSTA_INFO_1059 { + BOOL wki1059_buf_read_only_files; +} WKSTA_INFO_1059, *PWKSTA_INFO_1059, *LPWKSTA_INFO_1059; + +typedef struct _WKSTA_INFO_1060 { + BOOL wki1060_force_core_create_mode; +} WKSTA_INFO_1060, *PWKSTA_INFO_1060, *LPWKSTA_INFO_1060; + +typedef struct _WKSTA_INFO_1061 { + BOOL wki1061_use_512_byte_max_transfer; +} WKSTA_INFO_1061, *PWKSTA_INFO_1061, *LPWKSTA_INFO_1061; + +typedef struct _WKSTA_INFO_1062 { + DWORD wki1062_read_ahead_throughput; +} WKSTA_INFO_1062, *PWKSTA_INFO_1062, *LPWKSTA_INFO_1062; + + +// +// NetWkstaUserGetInfo (local only) and NetWkstaUserEnum - +// no access restrictions. +// +typedef struct _WKSTA_USER_INFO_0 { + LMSTR wkui0_username; +}WKSTA_USER_INFO_0, *PWKSTA_USER_INFO_0, *LPWKSTA_USER_INFO_0; + +// +// NetWkstaUserGetInfo (local only) and NetWkstaUserEnum - +// no access restrictions. +// +typedef struct _WKSTA_USER_INFO_1 { + LMSTR wkui1_username; + LMSTR wkui1_logon_domain; + LMSTR wkui1_oth_domains; + LMSTR wkui1_logon_server; +}WKSTA_USER_INFO_1, *PWKSTA_USER_INFO_1, *LPWKSTA_USER_INFO_1; + +// +// NetWkstaUserSetInfo - local access. +// +typedef struct _WKSTA_USER_INFO_1101 { + LMSTR wkui1101_oth_domains; +} WKSTA_USER_INFO_1101, *PWKSTA_USER_INFO_1101, + *LPWKSTA_USER_INFO_1101; + + +// +// NetWkstaTransportAdd - admin access +// +typedef struct _WKSTA_TRANSPORT_INFO_0 { + DWORD wkti0_quality_of_service; + DWORD wkti0_number_of_vcs; + LMSTR wkti0_transport_name; + LMSTR wkti0_transport_address; + BOOL wkti0_wan_ish; +}WKSTA_TRANSPORT_INFO_0, *PWKSTA_TRANSPORT_INFO_0, + *LPWKSTA_TRANSPORT_INFO_0; + + +// +// Special Values and Constants +// + +// +// Identifiers for use as NetWkstaSetInfo parmnum parameter +// + +// +// One of these values indicates the parameter within an information +// structure that is invalid when ERROR_INVALID_PARAMETER is returned by +// NetWkstaSetInfo. +// + +#define WKSTA_PLATFORM_ID_PARMNUM 100 +#define WKSTA_COMPUTERNAME_PARMNUM 1 +#define WKSTA_LANGROUP_PARMNUM 2 +#define WKSTA_VER_MAJOR_PARMNUM 4 +#define WKSTA_VER_MINOR_PARMNUM 5 +#define WKSTA_LOGGED_ON_USERS_PARMNUM 6 +#define WKSTA_LANROOT_PARMNUM 7 +#define WKSTA_LOGON_DOMAIN_PARMNUM 8 +#define WKSTA_LOGON_SERVER_PARMNUM 9 +#define WKSTA_CHARWAIT_PARMNUM 10 // Supported by down-level. +#define WKSTA_CHARTIME_PARMNUM 11 // Supported by down-level. +#define WKSTA_CHARCOUNT_PARMNUM 12 // Supported by down-level. +#define WKSTA_KEEPCONN_PARMNUM 13 +#define WKSTA_KEEPSEARCH_PARMNUM 14 +#define WKSTA_MAXCMDS_PARMNUM 15 +#define WKSTA_NUMWORKBUF_PARMNUM 16 +#define WKSTA_MAXWRKCACHE_PARMNUM 17 +#define WKSTA_SESSTIMEOUT_PARMNUM 18 +#define WKSTA_SIZERROR_PARMNUM 19 +#define WKSTA_NUMALERTS_PARMNUM 20 +#define WKSTA_NUMSERVICES_PARMNUM 21 +#define WKSTA_NUMCHARBUF_PARMNUM 22 +#define WKSTA_SIZCHARBUF_PARMNUM 23 +#define WKSTA_ERRLOGSZ_PARMNUM 27 // Supported by down-level. +#define WKSTA_PRINTBUFTIME_PARMNUM 28 // Supported by down-level. +#define WKSTA_SIZWORKBUF_PARMNUM 29 +#define WKSTA_MAILSLOTS_PARMNUM 30 +#define WKSTA_NUMDGRAMBUF_PARMNUM 31 +#define WKSTA_WRKHEURISTICS_PARMNUM 32 // Supported by down-level. +#define WKSTA_MAXTHREADS_PARMNUM 33 + +#define WKSTA_LOCKQUOTA_PARMNUM 41 +#define WKSTA_LOCKINCREMENT_PARMNUM 42 +#define WKSTA_LOCKMAXIMUM_PARMNUM 43 +#define WKSTA_PIPEINCREMENT_PARMNUM 44 +#define WKSTA_PIPEMAXIMUM_PARMNUM 45 +#define WKSTA_DORMANTFILELIMIT_PARMNUM 46 +#define WKSTA_CACHEFILETIMEOUT_PARMNUM 47 +#define WKSTA_USEOPPORTUNISTICLOCKING_PARMNUM 48 +#define WKSTA_USEUNLOCKBEHIND_PARMNUM 49 +#define WKSTA_USECLOSEBEHIND_PARMNUM 50 +#define WKSTA_BUFFERNAMEDPIPES_PARMNUM 51 +#define WKSTA_USELOCKANDREADANDUNLOCK_PARMNUM 52 +#define WKSTA_UTILIZENTCACHING_PARMNUM 53 +#define WKSTA_USERAWREAD_PARMNUM 54 +#define WKSTA_USERAWWRITE_PARMNUM 55 +#define WKSTA_USEWRITERAWWITHDATA_PARMNUM 56 +#define WKSTA_USEENCRYPTION_PARMNUM 57 +#define WKSTA_BUFFILESWITHDENYWRITE_PARMNUM 58 +#define WKSTA_BUFFERREADONLYFILES_PARMNUM 59 +#define WKSTA_FORCECORECREATEMODE_PARMNUM 60 +#define WKSTA_USE512BYTESMAXTRANSFER_PARMNUM 61 +#define WKSTA_READAHEADTHRUPUT_PARMNUM 62 + + +// +// One of these values indicates the parameter within an information +// structure that is invalid when ERROR_INVALID_PARAMETER is returned by +// NetWkstaUserSetInfo. +// + +#define WKSTA_OTH_DOMAINS_PARMNUM 101 + + +// +// One of these values indicates the parameter within an information +// structure that is invalid when ERROR_INVALID_PARAMETER is returned by +// NetWkstaTransportAdd. +// + +#define TRANSPORT_QUALITYOFSERVICE_PARMNUM 201 +#define TRANSPORT_NAME_PARMNUM 202 + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _LMWKSTA_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/locationapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/locationapi.h new file mode 100644 index 0000000000000000000000000000000000000000..a9a5dfee540c3127469765c2b24249bdbb320fe6 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/locationapi.h @@ -0,0 +1,2609 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __locationapi_h__ +#define __locationapi_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __ILocationReport_FWD_DEFINED__ +#define __ILocationReport_FWD_DEFINED__ +typedef interface ILocationReport ILocationReport; + +#endif /* __ILocationReport_FWD_DEFINED__ */ + + +#ifndef __ILatLongReport_FWD_DEFINED__ +#define __ILatLongReport_FWD_DEFINED__ +typedef interface ILatLongReport ILatLongReport; + +#endif /* __ILatLongReport_FWD_DEFINED__ */ + + +#ifndef __ICivicAddressReport_FWD_DEFINED__ +#define __ICivicAddressReport_FWD_DEFINED__ +typedef interface ICivicAddressReport ICivicAddressReport; + +#endif /* __ICivicAddressReport_FWD_DEFINED__ */ + + +#ifndef __ILocation_FWD_DEFINED__ +#define __ILocation_FWD_DEFINED__ +typedef interface ILocation ILocation; + +#endif /* __ILocation_FWD_DEFINED__ */ + + +#ifndef __ILocationPower_FWD_DEFINED__ +#define __ILocationPower_FWD_DEFINED__ +typedef interface ILocationPower ILocationPower; + +#endif /* __ILocationPower_FWD_DEFINED__ */ + + +#ifndef __IDefaultLocation_FWD_DEFINED__ +#define __IDefaultLocation_FWD_DEFINED__ +typedef interface IDefaultLocation IDefaultLocation; + +#endif /* __IDefaultLocation_FWD_DEFINED__ */ + + +#ifndef __ILocationEvents_FWD_DEFINED__ +#define __ILocationEvents_FWD_DEFINED__ +typedef interface ILocationEvents ILocationEvents; + +#endif /* __ILocationEvents_FWD_DEFINED__ */ + + +#ifndef __IDispLatLongReport_FWD_DEFINED__ +#define __IDispLatLongReport_FWD_DEFINED__ +typedef interface IDispLatLongReport IDispLatLongReport; + +#endif /* __IDispLatLongReport_FWD_DEFINED__ */ + + +#ifndef __IDispCivicAddressReport_FWD_DEFINED__ +#define __IDispCivicAddressReport_FWD_DEFINED__ +typedef interface IDispCivicAddressReport IDispCivicAddressReport; + +#endif /* __IDispCivicAddressReport_FWD_DEFINED__ */ + + +#ifndef __ILocationReportFactory_FWD_DEFINED__ +#define __ILocationReportFactory_FWD_DEFINED__ +typedef interface ILocationReportFactory ILocationReportFactory; + +#endif /* __ILocationReportFactory_FWD_DEFINED__ */ + + +#ifndef __ILatLongReportFactory_FWD_DEFINED__ +#define __ILatLongReportFactory_FWD_DEFINED__ +typedef interface ILatLongReportFactory ILatLongReportFactory; + +#endif /* __ILatLongReportFactory_FWD_DEFINED__ */ + + +#ifndef __ICivicAddressReportFactory_FWD_DEFINED__ +#define __ICivicAddressReportFactory_FWD_DEFINED__ +typedef interface ICivicAddressReportFactory ICivicAddressReportFactory; + +#endif /* __ICivicAddressReportFactory_FWD_DEFINED__ */ + + +#ifndef __Location_FWD_DEFINED__ +#define __Location_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class Location Location; +#else +typedef struct Location Location; +#endif /* __cplusplus */ + +#endif /* __Location_FWD_DEFINED__ */ + + +#ifndef __DefaultLocation_FWD_DEFINED__ +#define __DefaultLocation_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DefaultLocation DefaultLocation; +#else +typedef struct DefaultLocation DefaultLocation; +#endif /* __cplusplus */ + +#endif /* __DefaultLocation_FWD_DEFINED__ */ + + +#ifndef __LatLongReport_FWD_DEFINED__ +#define __LatLongReport_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class LatLongReport LatLongReport; +#else +typedef struct LatLongReport LatLongReport; +#endif /* __cplusplus */ + +#endif /* __LatLongReport_FWD_DEFINED__ */ + + +#ifndef __CivicAddressReport_FWD_DEFINED__ +#define __CivicAddressReport_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CivicAddressReport CivicAddressReport; +#else +typedef struct CivicAddressReport CivicAddressReport; +#endif /* __cplusplus */ + +#endif /* __CivicAddressReport_FWD_DEFINED__ */ + + +#ifndef ___ILatLongReportFactoryEvents_FWD_DEFINED__ +#define ___ILatLongReportFactoryEvents_FWD_DEFINED__ +typedef interface _ILatLongReportFactoryEvents _ILatLongReportFactoryEvents; + +#endif /* ___ILatLongReportFactoryEvents_FWD_DEFINED__ */ + + +#ifndef ___ICivicAddressReportFactoryEvents_FWD_DEFINED__ +#define ___ICivicAddressReportFactoryEvents_FWD_DEFINED__ +typedef interface _ICivicAddressReportFactoryEvents _ICivicAddressReportFactoryEvents; + +#endif /* ___ICivicAddressReportFactoryEvents_FWD_DEFINED__ */ + + +#ifndef __LatLongReportFactory_FWD_DEFINED__ +#define __LatLongReportFactory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class LatLongReportFactory LatLongReportFactory; +#else +typedef struct LatLongReportFactory LatLongReportFactory; +#endif /* __cplusplus */ + +#endif /* __LatLongReportFactory_FWD_DEFINED__ */ + + +#ifndef __CivicAddressReportFactory_FWD_DEFINED__ +#define __CivicAddressReportFactory_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CivicAddressReportFactory CivicAddressReportFactory; +#else +typedef struct CivicAddressReportFactory CivicAddressReportFactory; +#endif /* __cplusplus */ + +#endif /* __CivicAddressReportFactory_FWD_DEFINED__ */ + + +#ifndef __DispLatLongReport_FWD_DEFINED__ +#define __DispLatLongReport_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DispLatLongReport DispLatLongReport; +#else +typedef struct DispLatLongReport DispLatLongReport; +#endif /* __cplusplus */ + +#endif /* __DispLatLongReport_FWD_DEFINED__ */ + + +#ifndef __DispCivicAddressReport_FWD_DEFINED__ +#define __DispCivicAddressReport_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DispCivicAddressReport DispCivicAddressReport; +#else +typedef struct DispCivicAddressReport DispCivicAddressReport; +#endif /* __cplusplus */ + +#endif /* __DispCivicAddressReport_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "SensorsApi.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_locationapi_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include +#include +#include +#define LOCATION_API_VERSION 1 +typedef +enum LOCATION_REPORT_STATUS + { + REPORT_NOT_SUPPORTED = 0, + REPORT_ERROR = 1, + REPORT_ACCESS_DENIED = 2, + REPORT_INITIALIZING = 3, + REPORT_RUNNING = 4 + } LOCATION_REPORT_STATUS; + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_locationapi_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_locationapi_0000_0000_v0_0_s_ifspec; + +#ifndef __ILocationReport_INTERFACE_DEFINED__ +#define __ILocationReport_INTERFACE_DEFINED__ + +/* interface ILocationReport */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ILocationReport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C8B7F7EE-75D0-4db9-B62D-7A0F369CA456") + ILocationReport : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSensorID( + /* [retval][out] */ __RPC__out SENSOR_ID *pSensorID) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTimestamp( + /* [retval][out] */ __RPC__out SYSTEMTIME *pCreationTime) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetValue( + /* [in] */ __RPC__in REFPROPERTYKEY pKey, + /* [retval][out] */ __RPC__out PROPVARIANT *pValue) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILocationReportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILocationReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILocationReport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILocationReport * This); + + DECLSPEC_XFGVIRT(ILocationReport, GetSensorID) + HRESULT ( STDMETHODCALLTYPE *GetSensorID )( + __RPC__in ILocationReport * This, + /* [retval][out] */ __RPC__out SENSOR_ID *pSensorID); + + DECLSPEC_XFGVIRT(ILocationReport, GetTimestamp) + HRESULT ( STDMETHODCALLTYPE *GetTimestamp )( + __RPC__in ILocationReport * This, + /* [retval][out] */ __RPC__out SYSTEMTIME *pCreationTime); + + DECLSPEC_XFGVIRT(ILocationReport, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ILocationReport * This, + /* [in] */ __RPC__in REFPROPERTYKEY pKey, + /* [retval][out] */ __RPC__out PROPVARIANT *pValue); + + END_INTERFACE + } ILocationReportVtbl; + + interface ILocationReport + { + CONST_VTBL struct ILocationReportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILocationReport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILocationReport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILocationReport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILocationReport_GetSensorID(This,pSensorID) \ + ( (This)->lpVtbl -> GetSensorID(This,pSensorID) ) + +#define ILocationReport_GetTimestamp(This,pCreationTime) \ + ( (This)->lpVtbl -> GetTimestamp(This,pCreationTime) ) + +#define ILocationReport_GetValue(This,pKey,pValue) \ + ( (This)->lpVtbl -> GetValue(This,pKey,pValue) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILocationReport_INTERFACE_DEFINED__ */ + + +#ifndef __ILatLongReport_INTERFACE_DEFINED__ +#define __ILatLongReport_INTERFACE_DEFINED__ + +/* interface ILatLongReport */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ILatLongReport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("7FED806D-0EF8-4f07-80AC-36A0BEAE3134") + ILatLongReport : public ILocationReport + { + public: + virtual HRESULT STDMETHODCALLTYPE GetLatitude( + /* [retval][out] */ __RPC__out DOUBLE *pLatitude) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLongitude( + /* [retval][out] */ __RPC__out DOUBLE *pLongitude) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetErrorRadius( + /* [retval][out] */ __RPC__out DOUBLE *pErrorRadius) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAltitude( + /* [retval][out] */ __RPC__out DOUBLE *pAltitude) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAltitudeError( + /* [retval][out] */ __RPC__out DOUBLE *pAltitudeError) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILatLongReportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILatLongReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILatLongReport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILatLongReport * This); + + DECLSPEC_XFGVIRT(ILocationReport, GetSensorID) + HRESULT ( STDMETHODCALLTYPE *GetSensorID )( + __RPC__in ILatLongReport * This, + /* [retval][out] */ __RPC__out SENSOR_ID *pSensorID); + + DECLSPEC_XFGVIRT(ILocationReport, GetTimestamp) + HRESULT ( STDMETHODCALLTYPE *GetTimestamp )( + __RPC__in ILatLongReport * This, + /* [retval][out] */ __RPC__out SYSTEMTIME *pCreationTime); + + DECLSPEC_XFGVIRT(ILocationReport, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ILatLongReport * This, + /* [in] */ __RPC__in REFPROPERTYKEY pKey, + /* [retval][out] */ __RPC__out PROPVARIANT *pValue); + + DECLSPEC_XFGVIRT(ILatLongReport, GetLatitude) + HRESULT ( STDMETHODCALLTYPE *GetLatitude )( + __RPC__in ILatLongReport * This, + /* [retval][out] */ __RPC__out DOUBLE *pLatitude); + + DECLSPEC_XFGVIRT(ILatLongReport, GetLongitude) + HRESULT ( STDMETHODCALLTYPE *GetLongitude )( + __RPC__in ILatLongReport * This, + /* [retval][out] */ __RPC__out DOUBLE *pLongitude); + + DECLSPEC_XFGVIRT(ILatLongReport, GetErrorRadius) + HRESULT ( STDMETHODCALLTYPE *GetErrorRadius )( + __RPC__in ILatLongReport * This, + /* [retval][out] */ __RPC__out DOUBLE *pErrorRadius); + + DECLSPEC_XFGVIRT(ILatLongReport, GetAltitude) + HRESULT ( STDMETHODCALLTYPE *GetAltitude )( + __RPC__in ILatLongReport * This, + /* [retval][out] */ __RPC__out DOUBLE *pAltitude); + + DECLSPEC_XFGVIRT(ILatLongReport, GetAltitudeError) + HRESULT ( STDMETHODCALLTYPE *GetAltitudeError )( + __RPC__in ILatLongReport * This, + /* [retval][out] */ __RPC__out DOUBLE *pAltitudeError); + + END_INTERFACE + } ILatLongReportVtbl; + + interface ILatLongReport + { + CONST_VTBL struct ILatLongReportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILatLongReport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILatLongReport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILatLongReport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILatLongReport_GetSensorID(This,pSensorID) \ + ( (This)->lpVtbl -> GetSensorID(This,pSensorID) ) + +#define ILatLongReport_GetTimestamp(This,pCreationTime) \ + ( (This)->lpVtbl -> GetTimestamp(This,pCreationTime) ) + +#define ILatLongReport_GetValue(This,pKey,pValue) \ + ( (This)->lpVtbl -> GetValue(This,pKey,pValue) ) + + +#define ILatLongReport_GetLatitude(This,pLatitude) \ + ( (This)->lpVtbl -> GetLatitude(This,pLatitude) ) + +#define ILatLongReport_GetLongitude(This,pLongitude) \ + ( (This)->lpVtbl -> GetLongitude(This,pLongitude) ) + +#define ILatLongReport_GetErrorRadius(This,pErrorRadius) \ + ( (This)->lpVtbl -> GetErrorRadius(This,pErrorRadius) ) + +#define ILatLongReport_GetAltitude(This,pAltitude) \ + ( (This)->lpVtbl -> GetAltitude(This,pAltitude) ) + +#define ILatLongReport_GetAltitudeError(This,pAltitudeError) \ + ( (This)->lpVtbl -> GetAltitudeError(This,pAltitudeError) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILatLongReport_INTERFACE_DEFINED__ */ + + +#ifndef __ICivicAddressReport_INTERFACE_DEFINED__ +#define __ICivicAddressReport_INTERFACE_DEFINED__ + +/* interface ICivicAddressReport */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ICivicAddressReport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C0B19F70-4ADF-445d-87F2-CAD8FD711792") + ICivicAddressReport : public ILocationReport + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAddressLine1( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrAddress1) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAddressLine2( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrAddress2) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCity( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCity) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStateProvince( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrStateProvince) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPostalCode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPostalCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountryRegion( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCountryRegion) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDetailLevel( + /* [retval][out] */ __RPC__out DWORD *pDetailLevel) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICivicAddressReportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICivicAddressReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICivicAddressReport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICivicAddressReport * This); + + DECLSPEC_XFGVIRT(ILocationReport, GetSensorID) + HRESULT ( STDMETHODCALLTYPE *GetSensorID )( + __RPC__in ICivicAddressReport * This, + /* [retval][out] */ __RPC__out SENSOR_ID *pSensorID); + + DECLSPEC_XFGVIRT(ILocationReport, GetTimestamp) + HRESULT ( STDMETHODCALLTYPE *GetTimestamp )( + __RPC__in ICivicAddressReport * This, + /* [retval][out] */ __RPC__out SYSTEMTIME *pCreationTime); + + DECLSPEC_XFGVIRT(ILocationReport, GetValue) + HRESULT ( STDMETHODCALLTYPE *GetValue )( + __RPC__in ICivicAddressReport * This, + /* [in] */ __RPC__in REFPROPERTYKEY pKey, + /* [retval][out] */ __RPC__out PROPVARIANT *pValue); + + DECLSPEC_XFGVIRT(ICivicAddressReport, GetAddressLine1) + HRESULT ( STDMETHODCALLTYPE *GetAddressLine1 )( + __RPC__in ICivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrAddress1); + + DECLSPEC_XFGVIRT(ICivicAddressReport, GetAddressLine2) + HRESULT ( STDMETHODCALLTYPE *GetAddressLine2 )( + __RPC__in ICivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrAddress2); + + DECLSPEC_XFGVIRT(ICivicAddressReport, GetCity) + HRESULT ( STDMETHODCALLTYPE *GetCity )( + __RPC__in ICivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCity); + + DECLSPEC_XFGVIRT(ICivicAddressReport, GetStateProvince) + HRESULT ( STDMETHODCALLTYPE *GetStateProvince )( + __RPC__in ICivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrStateProvince); + + DECLSPEC_XFGVIRT(ICivicAddressReport, GetPostalCode) + HRESULT ( STDMETHODCALLTYPE *GetPostalCode )( + __RPC__in ICivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrPostalCode); + + DECLSPEC_XFGVIRT(ICivicAddressReport, GetCountryRegion) + HRESULT ( STDMETHODCALLTYPE *GetCountryRegion )( + __RPC__in ICivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrCountryRegion); + + DECLSPEC_XFGVIRT(ICivicAddressReport, GetDetailLevel) + HRESULT ( STDMETHODCALLTYPE *GetDetailLevel )( + __RPC__in ICivicAddressReport * This, + /* [retval][out] */ __RPC__out DWORD *pDetailLevel); + + END_INTERFACE + } ICivicAddressReportVtbl; + + interface ICivicAddressReport + { + CONST_VTBL struct ICivicAddressReportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICivicAddressReport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICivicAddressReport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICivicAddressReport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICivicAddressReport_GetSensorID(This,pSensorID) \ + ( (This)->lpVtbl -> GetSensorID(This,pSensorID) ) + +#define ICivicAddressReport_GetTimestamp(This,pCreationTime) \ + ( (This)->lpVtbl -> GetTimestamp(This,pCreationTime) ) + +#define ICivicAddressReport_GetValue(This,pKey,pValue) \ + ( (This)->lpVtbl -> GetValue(This,pKey,pValue) ) + + +#define ICivicAddressReport_GetAddressLine1(This,pbstrAddress1) \ + ( (This)->lpVtbl -> GetAddressLine1(This,pbstrAddress1) ) + +#define ICivicAddressReport_GetAddressLine2(This,pbstrAddress2) \ + ( (This)->lpVtbl -> GetAddressLine2(This,pbstrAddress2) ) + +#define ICivicAddressReport_GetCity(This,pbstrCity) \ + ( (This)->lpVtbl -> GetCity(This,pbstrCity) ) + +#define ICivicAddressReport_GetStateProvince(This,pbstrStateProvince) \ + ( (This)->lpVtbl -> GetStateProvince(This,pbstrStateProvince) ) + +#define ICivicAddressReport_GetPostalCode(This,pbstrPostalCode) \ + ( (This)->lpVtbl -> GetPostalCode(This,pbstrPostalCode) ) + +#define ICivicAddressReport_GetCountryRegion(This,pbstrCountryRegion) \ + ( (This)->lpVtbl -> GetCountryRegion(This,pbstrCountryRegion) ) + +#define ICivicAddressReport_GetDetailLevel(This,pDetailLevel) \ + ( (This)->lpVtbl -> GetDetailLevel(This,pDetailLevel) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICivicAddressReport_INTERFACE_DEFINED__ */ + + +#ifndef __ILocation_INTERFACE_DEFINED__ +#define __ILocation_INTERFACE_DEFINED__ + +/* interface ILocation */ +/* [unique][uuid][object] */ + + + +EXTERN_C const IID IID_ILocation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("AB2ECE69-56D9-4F28-B525-DE1B0EE44237") + ILocation : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterForReport( + /* [in] */ __RPC__in_opt ILocationEvents *pEvents, + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ DWORD dwRequestedReportInterval) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterForReport( + /* [in] */ __RPC__in REFIID reportType) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReport( + /* [in] */ __RPC__in REFIID reportType, + /* [retval][out] */ __RPC__deref_out_opt ILocationReport **ppLocationReport) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReportStatus( + /* [in] */ __RPC__in REFIID reportType, + /* [retval][out] */ __RPC__out enum LOCATION_REPORT_STATUS *pStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReportInterval( + /* [in] */ __RPC__in REFIID reportType, + /* [retval][out] */ __RPC__out DWORD *pMilliseconds) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetReportInterval( + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ DWORD millisecondsRequested) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDesiredAccuracy( + /* [in] */ __RPC__in REFIID reportType, + /* [retval][out] */ __RPC__out enum LOCATION_DESIRED_ACCURACY *pDesiredAccuracy) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetDesiredAccuracy( + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ enum LOCATION_DESIRED_ACCURACY desiredAccuracy) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestPermissions( + /* [unique][in] */ __RPC__in_opt HWND hParent, + /* [size_is][in] */ __RPC__in_ecount_full(count) IID *pReportTypes, + /* [in] */ ULONG count, + /* [in] */ BOOL fModal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILocationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILocation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILocation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILocation * This); + + DECLSPEC_XFGVIRT(ILocation, RegisterForReport) + HRESULT ( STDMETHODCALLTYPE *RegisterForReport )( + __RPC__in ILocation * This, + /* [in] */ __RPC__in_opt ILocationEvents *pEvents, + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ DWORD dwRequestedReportInterval); + + DECLSPEC_XFGVIRT(ILocation, UnregisterForReport) + HRESULT ( STDMETHODCALLTYPE *UnregisterForReport )( + __RPC__in ILocation * This, + /* [in] */ __RPC__in REFIID reportType); + + DECLSPEC_XFGVIRT(ILocation, GetReport) + HRESULT ( STDMETHODCALLTYPE *GetReport )( + __RPC__in ILocation * This, + /* [in] */ __RPC__in REFIID reportType, + /* [retval][out] */ __RPC__deref_out_opt ILocationReport **ppLocationReport); + + DECLSPEC_XFGVIRT(ILocation, GetReportStatus) + HRESULT ( STDMETHODCALLTYPE *GetReportStatus )( + __RPC__in ILocation * This, + /* [in] */ __RPC__in REFIID reportType, + /* [retval][out] */ __RPC__out enum LOCATION_REPORT_STATUS *pStatus); + + DECLSPEC_XFGVIRT(ILocation, GetReportInterval) + HRESULT ( STDMETHODCALLTYPE *GetReportInterval )( + __RPC__in ILocation * This, + /* [in] */ __RPC__in REFIID reportType, + /* [retval][out] */ __RPC__out DWORD *pMilliseconds); + + DECLSPEC_XFGVIRT(ILocation, SetReportInterval) + HRESULT ( STDMETHODCALLTYPE *SetReportInterval )( + __RPC__in ILocation * This, + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ DWORD millisecondsRequested); + + DECLSPEC_XFGVIRT(ILocation, GetDesiredAccuracy) + HRESULT ( STDMETHODCALLTYPE *GetDesiredAccuracy )( + __RPC__in ILocation * This, + /* [in] */ __RPC__in REFIID reportType, + /* [retval][out] */ __RPC__out enum LOCATION_DESIRED_ACCURACY *pDesiredAccuracy); + + DECLSPEC_XFGVIRT(ILocation, SetDesiredAccuracy) + HRESULT ( STDMETHODCALLTYPE *SetDesiredAccuracy )( + __RPC__in ILocation * This, + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ enum LOCATION_DESIRED_ACCURACY desiredAccuracy); + + DECLSPEC_XFGVIRT(ILocation, RequestPermissions) + HRESULT ( STDMETHODCALLTYPE *RequestPermissions )( + __RPC__in ILocation * This, + /* [unique][in] */ __RPC__in_opt HWND hParent, + /* [size_is][in] */ __RPC__in_ecount_full(count) IID *pReportTypes, + /* [in] */ ULONG count, + /* [in] */ BOOL fModal); + + END_INTERFACE + } ILocationVtbl; + + interface ILocation + { + CONST_VTBL struct ILocationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILocation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILocation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILocation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILocation_RegisterForReport(This,pEvents,reportType,dwRequestedReportInterval) \ + ( (This)->lpVtbl -> RegisterForReport(This,pEvents,reportType,dwRequestedReportInterval) ) + +#define ILocation_UnregisterForReport(This,reportType) \ + ( (This)->lpVtbl -> UnregisterForReport(This,reportType) ) + +#define ILocation_GetReport(This,reportType,ppLocationReport) \ + ( (This)->lpVtbl -> GetReport(This,reportType,ppLocationReport) ) + +#define ILocation_GetReportStatus(This,reportType,pStatus) \ + ( (This)->lpVtbl -> GetReportStatus(This,reportType,pStatus) ) + +#define ILocation_GetReportInterval(This,reportType,pMilliseconds) \ + ( (This)->lpVtbl -> GetReportInterval(This,reportType,pMilliseconds) ) + +#define ILocation_SetReportInterval(This,reportType,millisecondsRequested) \ + ( (This)->lpVtbl -> SetReportInterval(This,reportType,millisecondsRequested) ) + +#define ILocation_GetDesiredAccuracy(This,reportType,pDesiredAccuracy) \ + ( (This)->lpVtbl -> GetDesiredAccuracy(This,reportType,pDesiredAccuracy) ) + +#define ILocation_SetDesiredAccuracy(This,reportType,desiredAccuracy) \ + ( (This)->lpVtbl -> SetDesiredAccuracy(This,reportType,desiredAccuracy) ) + +#define ILocation_RequestPermissions(This,hParent,pReportTypes,count,fModal) \ + ( (This)->lpVtbl -> RequestPermissions(This,hParent,pReportTypes,count,fModal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILocation_INTERFACE_DEFINED__ */ + + +#ifndef __ILocationPower_INTERFACE_DEFINED__ +#define __ILocationPower_INTERFACE_DEFINED__ + +/* interface ILocationPower */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_ILocationPower; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("193E7729-AB6B-4b12-8617-7596E1BB191C") + ILocationPower : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Connect( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Disconnect( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILocationPowerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILocationPower * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILocationPower * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILocationPower * This); + + DECLSPEC_XFGVIRT(ILocationPower, Connect) + HRESULT ( STDMETHODCALLTYPE *Connect )( + __RPC__in ILocationPower * This); + + DECLSPEC_XFGVIRT(ILocationPower, Disconnect) + HRESULT ( STDMETHODCALLTYPE *Disconnect )( + __RPC__in ILocationPower * This); + + END_INTERFACE + } ILocationPowerVtbl; + + interface ILocationPower + { + CONST_VTBL struct ILocationPowerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILocationPower_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILocationPower_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILocationPower_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILocationPower_Connect(This) \ + ( (This)->lpVtbl -> Connect(This) ) + +#define ILocationPower_Disconnect(This) \ + ( (This)->lpVtbl -> Disconnect(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILocationPower_INTERFACE_DEFINED__ */ + + +#ifndef __IDefaultLocation_INTERFACE_DEFINED__ +#define __IDefaultLocation_INTERFACE_DEFINED__ + +/* interface IDefaultLocation */ +/* [unique][uuid][object] */ + + +EXTERN_C const IID IID_IDefaultLocation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A65AF77E-969A-4a2e-8ACA-33BB7CBB1235") + IDefaultLocation : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetReport( + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ __RPC__in_opt ILocationReport *pLocationReport) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReport( + /* [in] */ __RPC__in REFIID reportType, + /* [retval][out] */ __RPC__deref_out_opt ILocationReport **ppLocationReport) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDefaultLocationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDefaultLocation * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDefaultLocation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDefaultLocation * This); + + DECLSPEC_XFGVIRT(IDefaultLocation, SetReport) + HRESULT ( STDMETHODCALLTYPE *SetReport )( + __RPC__in IDefaultLocation * This, + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ __RPC__in_opt ILocationReport *pLocationReport); + + DECLSPEC_XFGVIRT(IDefaultLocation, GetReport) + HRESULT ( STDMETHODCALLTYPE *GetReport )( + __RPC__in IDefaultLocation * This, + /* [in] */ __RPC__in REFIID reportType, + /* [retval][out] */ __RPC__deref_out_opt ILocationReport **ppLocationReport); + + END_INTERFACE + } IDefaultLocationVtbl; + + interface IDefaultLocation + { + CONST_VTBL struct IDefaultLocationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDefaultLocation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDefaultLocation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDefaultLocation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDefaultLocation_SetReport(This,reportType,pLocationReport) \ + ( (This)->lpVtbl -> SetReport(This,reportType,pLocationReport) ) + +#define IDefaultLocation_GetReport(This,reportType,ppLocationReport) \ + ( (This)->lpVtbl -> GetReport(This,reportType,ppLocationReport) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDefaultLocation_INTERFACE_DEFINED__ */ + + +#ifndef __ILocationEvents_INTERFACE_DEFINED__ +#define __ILocationEvents_INTERFACE_DEFINED__ + +/* interface ILocationEvents */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_ILocationEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CAE02BBF-798B-4508-A207-35A7906DC73D") + ILocationEvents : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnLocationChanged( + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ __RPC__in_opt ILocationReport *pLocationReport) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnStatusChanged( + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ LOCATION_REPORT_STATUS newStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILocationEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILocationEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILocationEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILocationEvents * This); + + DECLSPEC_XFGVIRT(ILocationEvents, OnLocationChanged) + HRESULT ( STDMETHODCALLTYPE *OnLocationChanged )( + __RPC__in ILocationEvents * This, + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ __RPC__in_opt ILocationReport *pLocationReport); + + DECLSPEC_XFGVIRT(ILocationEvents, OnStatusChanged) + HRESULT ( STDMETHODCALLTYPE *OnStatusChanged )( + __RPC__in ILocationEvents * This, + /* [in] */ __RPC__in REFIID reportType, + /* [in] */ LOCATION_REPORT_STATUS newStatus); + + END_INTERFACE + } ILocationEventsVtbl; + + interface ILocationEvents + { + CONST_VTBL struct ILocationEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILocationEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILocationEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILocationEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILocationEvents_OnLocationChanged(This,reportType,pLocationReport) \ + ( (This)->lpVtbl -> OnLocationChanged(This,reportType,pLocationReport) ) + +#define ILocationEvents_OnStatusChanged(This,reportType,newStatus) \ + ( (This)->lpVtbl -> OnStatusChanged(This,reportType,newStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILocationEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IDispLatLongReport_INTERFACE_DEFINED__ +#define __IDispLatLongReport_INTERFACE_DEFINED__ + +/* interface IDispLatLongReport */ +/* [unique][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IDispLatLongReport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8AE32723-389B-4A11-9957-5BDD48FC9617") + IDispLatLongReport : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Latitude( + /* [retval][out] */ __RPC__out DOUBLE *pVal) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Longitude( + /* [retval][out] */ __RPC__out DOUBLE *pVal) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ErrorRadius( + /* [retval][out] */ __RPC__out DOUBLE *pVal) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Altitude( + /* [retval][out] */ __RPC__out DOUBLE *pVal) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AltitudeError( + /* [retval][out] */ __RPC__out DOUBLE *pVal) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Timestamp( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDispLatLongReportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDispLatLongReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDispLatLongReport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDispLatLongReport * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDispLatLongReport * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDispLatLongReport * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDispLatLongReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDispLatLongReport * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDispLatLongReport, get_Latitude) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Latitude )( + __RPC__in IDispLatLongReport * This, + /* [retval][out] */ __RPC__out DOUBLE *pVal); + + DECLSPEC_XFGVIRT(IDispLatLongReport, get_Longitude) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Longitude )( + __RPC__in IDispLatLongReport * This, + /* [retval][out] */ __RPC__out DOUBLE *pVal); + + DECLSPEC_XFGVIRT(IDispLatLongReport, get_ErrorRadius) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ErrorRadius )( + __RPC__in IDispLatLongReport * This, + /* [retval][out] */ __RPC__out DOUBLE *pVal); + + DECLSPEC_XFGVIRT(IDispLatLongReport, get_Altitude) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Altitude )( + __RPC__in IDispLatLongReport * This, + /* [retval][out] */ __RPC__out DOUBLE *pVal); + + DECLSPEC_XFGVIRT(IDispLatLongReport, get_AltitudeError) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AltitudeError )( + __RPC__in IDispLatLongReport * This, + /* [retval][out] */ __RPC__out DOUBLE *pVal); + + DECLSPEC_XFGVIRT(IDispLatLongReport, get_Timestamp) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Timestamp )( + __RPC__in IDispLatLongReport * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + END_INTERFACE + } IDispLatLongReportVtbl; + + interface IDispLatLongReport + { + CONST_VTBL struct IDispLatLongReportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDispLatLongReport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDispLatLongReport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDispLatLongReport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDispLatLongReport_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDispLatLongReport_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDispLatLongReport_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDispLatLongReport_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDispLatLongReport_get_Latitude(This,pVal) \ + ( (This)->lpVtbl -> get_Latitude(This,pVal) ) + +#define IDispLatLongReport_get_Longitude(This,pVal) \ + ( (This)->lpVtbl -> get_Longitude(This,pVal) ) + +#define IDispLatLongReport_get_ErrorRadius(This,pVal) \ + ( (This)->lpVtbl -> get_ErrorRadius(This,pVal) ) + +#define IDispLatLongReport_get_Altitude(This,pVal) \ + ( (This)->lpVtbl -> get_Altitude(This,pVal) ) + +#define IDispLatLongReport_get_AltitudeError(This,pVal) \ + ( (This)->lpVtbl -> get_AltitudeError(This,pVal) ) + +#define IDispLatLongReport_get_Timestamp(This,pVal) \ + ( (This)->lpVtbl -> get_Timestamp(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDispLatLongReport_INTERFACE_DEFINED__ */ + + +#ifndef __IDispCivicAddressReport_INTERFACE_DEFINED__ +#define __IDispCivicAddressReport_INTERFACE_DEFINED__ + +/* interface IDispCivicAddressReport */ +/* [unique][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IDispCivicAddressReport; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("16FF1A34-9E30-42c3-B44D-E22513B5767A") + IDispCivicAddressReport : public IDispatch + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AddressLine1( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pAddress1) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_AddressLine2( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pAddress2) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_City( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pCity) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_StateProvince( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pStateProvince) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_PostalCode( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pPostalCode) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CountryRegion( + /* [retval][out] */ __RPC__deref_out_opt BSTR *pCountryRegion) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DetailLevel( + /* [retval][out] */ __RPC__out ULONG *pDetailLevel) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Timestamp( + /* [retval][out] */ __RPC__out DATE *pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDispCivicAddressReportVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDispCivicAddressReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDispCivicAddressReport * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDispCivicAddressReport * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDispCivicAddressReport * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDispCivicAddressReport * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDispCivicAddressReport * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDispCivicAddressReport * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(IDispCivicAddressReport, get_AddressLine1) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AddressLine1 )( + __RPC__in IDispCivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pAddress1); + + DECLSPEC_XFGVIRT(IDispCivicAddressReport, get_AddressLine2) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AddressLine2 )( + __RPC__in IDispCivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pAddress2); + + DECLSPEC_XFGVIRT(IDispCivicAddressReport, get_City) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_City )( + __RPC__in IDispCivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pCity); + + DECLSPEC_XFGVIRT(IDispCivicAddressReport, get_StateProvince) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_StateProvince )( + __RPC__in IDispCivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pStateProvince); + + DECLSPEC_XFGVIRT(IDispCivicAddressReport, get_PostalCode) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PostalCode )( + __RPC__in IDispCivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pPostalCode); + + DECLSPEC_XFGVIRT(IDispCivicAddressReport, get_CountryRegion) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CountryRegion )( + __RPC__in IDispCivicAddressReport * This, + /* [retval][out] */ __RPC__deref_out_opt BSTR *pCountryRegion); + + DECLSPEC_XFGVIRT(IDispCivicAddressReport, get_DetailLevel) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DetailLevel )( + __RPC__in IDispCivicAddressReport * This, + /* [retval][out] */ __RPC__out ULONG *pDetailLevel); + + DECLSPEC_XFGVIRT(IDispCivicAddressReport, get_Timestamp) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Timestamp )( + __RPC__in IDispCivicAddressReport * This, + /* [retval][out] */ __RPC__out DATE *pVal); + + END_INTERFACE + } IDispCivicAddressReportVtbl; + + interface IDispCivicAddressReport + { + CONST_VTBL struct IDispCivicAddressReportVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDispCivicAddressReport_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDispCivicAddressReport_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDispCivicAddressReport_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDispCivicAddressReport_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDispCivicAddressReport_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDispCivicAddressReport_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDispCivicAddressReport_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define IDispCivicAddressReport_get_AddressLine1(This,pAddress1) \ + ( (This)->lpVtbl -> get_AddressLine1(This,pAddress1) ) + +#define IDispCivicAddressReport_get_AddressLine2(This,pAddress2) \ + ( (This)->lpVtbl -> get_AddressLine2(This,pAddress2) ) + +#define IDispCivicAddressReport_get_City(This,pCity) \ + ( (This)->lpVtbl -> get_City(This,pCity) ) + +#define IDispCivicAddressReport_get_StateProvince(This,pStateProvince) \ + ( (This)->lpVtbl -> get_StateProvince(This,pStateProvince) ) + +#define IDispCivicAddressReport_get_PostalCode(This,pPostalCode) \ + ( (This)->lpVtbl -> get_PostalCode(This,pPostalCode) ) + +#define IDispCivicAddressReport_get_CountryRegion(This,pCountryRegion) \ + ( (This)->lpVtbl -> get_CountryRegion(This,pCountryRegion) ) + +#define IDispCivicAddressReport_get_DetailLevel(This,pDetailLevel) \ + ( (This)->lpVtbl -> get_DetailLevel(This,pDetailLevel) ) + +#define IDispCivicAddressReport_get_Timestamp(This,pVal) \ + ( (This)->lpVtbl -> get_Timestamp(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDispCivicAddressReport_INTERFACE_DEFINED__ */ + + +#ifndef __ILocationReportFactory_INTERFACE_DEFINED__ +#define __ILocationReportFactory_INTERFACE_DEFINED__ + +/* interface ILocationReportFactory */ +/* [unique][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_ILocationReportFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2DAEC322-90B2-47e4-BB08-0DA841935A6B") + ILocationReportFactory : public IDispatch + { + public: + virtual /* [id] */ HRESULT STDMETHODCALLTYPE ListenForReports( + /* [defaultvalue][in] */ ULONG requestedReportInterval = 0) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE StopListeningForReports( void) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_Status( + /* [retval][out] */ __RPC__out ULONG *pVal) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_ReportInterval( + /* [retval][out] */ __RPC__out ULONG *pMilliseconds) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_ReportInterval( + /* [in] */ ULONG millisecondsRequested) = 0; + + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_DesiredAccuracy( + /* [retval][out] */ __RPC__out ULONG *pDesiredAccuracy) = 0; + + virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_DesiredAccuracy( + /* [in] */ ULONG desiredAccuracy) = 0; + + virtual /* [id] */ HRESULT STDMETHODCALLTYPE RequestPermissions( + /* [in] */ __RPC__in ULONG *hWnd) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILocationReportFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILocationReportFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILocationReportFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILocationReportFactory * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ILocationReportFactory * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ILocationReportFactory * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ILocationReportFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ILocationReportFactory * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ILocationReportFactory, ListenForReports) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ListenForReports )( + __RPC__in ILocationReportFactory * This, + /* [defaultvalue][in] */ ULONG requestedReportInterval); + + DECLSPEC_XFGVIRT(ILocationReportFactory, StopListeningForReports) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *StopListeningForReports )( + __RPC__in ILocationReportFactory * This); + + DECLSPEC_XFGVIRT(ILocationReportFactory, get_Status) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in ILocationReportFactory * This, + /* [retval][out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(ILocationReportFactory, get_ReportInterval) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportInterval )( + __RPC__in ILocationReportFactory * This, + /* [retval][out] */ __RPC__out ULONG *pMilliseconds); + + DECLSPEC_XFGVIRT(ILocationReportFactory, put_ReportInterval) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReportInterval )( + __RPC__in ILocationReportFactory * This, + /* [in] */ ULONG millisecondsRequested); + + DECLSPEC_XFGVIRT(ILocationReportFactory, get_DesiredAccuracy) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DesiredAccuracy )( + __RPC__in ILocationReportFactory * This, + /* [retval][out] */ __RPC__out ULONG *pDesiredAccuracy); + + DECLSPEC_XFGVIRT(ILocationReportFactory, put_DesiredAccuracy) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DesiredAccuracy )( + __RPC__in ILocationReportFactory * This, + /* [in] */ ULONG desiredAccuracy); + + DECLSPEC_XFGVIRT(ILocationReportFactory, RequestPermissions) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RequestPermissions )( + __RPC__in ILocationReportFactory * This, + /* [in] */ __RPC__in ULONG *hWnd); + + END_INTERFACE + } ILocationReportFactoryVtbl; + + interface ILocationReportFactory + { + CONST_VTBL struct ILocationReportFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILocationReportFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILocationReportFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILocationReportFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILocationReportFactory_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ILocationReportFactory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ILocationReportFactory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ILocationReportFactory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ILocationReportFactory_ListenForReports(This,requestedReportInterval) \ + ( (This)->lpVtbl -> ListenForReports(This,requestedReportInterval) ) + +#define ILocationReportFactory_StopListeningForReports(This) \ + ( (This)->lpVtbl -> StopListeningForReports(This) ) + +#define ILocationReportFactory_get_Status(This,pVal) \ + ( (This)->lpVtbl -> get_Status(This,pVal) ) + +#define ILocationReportFactory_get_ReportInterval(This,pMilliseconds) \ + ( (This)->lpVtbl -> get_ReportInterval(This,pMilliseconds) ) + +#define ILocationReportFactory_put_ReportInterval(This,millisecondsRequested) \ + ( (This)->lpVtbl -> put_ReportInterval(This,millisecondsRequested) ) + +#define ILocationReportFactory_get_DesiredAccuracy(This,pDesiredAccuracy) \ + ( (This)->lpVtbl -> get_DesiredAccuracy(This,pDesiredAccuracy) ) + +#define ILocationReportFactory_put_DesiredAccuracy(This,desiredAccuracy) \ + ( (This)->lpVtbl -> put_DesiredAccuracy(This,desiredAccuracy) ) + +#define ILocationReportFactory_RequestPermissions(This,hWnd) \ + ( (This)->lpVtbl -> RequestPermissions(This,hWnd) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILocationReportFactory_INTERFACE_DEFINED__ */ + + +#ifndef __ILatLongReportFactory_INTERFACE_DEFINED__ +#define __ILatLongReportFactory_INTERFACE_DEFINED__ + +/* interface ILatLongReportFactory */ +/* [unique][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_ILatLongReportFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3F0804CB-B114-447D-83DD-390174EBB082") + ILatLongReportFactory : public ILocationReportFactory + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_LatLongReport( + /* [retval][out] */ __RPC__deref_out_opt IDispLatLongReport **pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ILatLongReportFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ILatLongReportFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ILatLongReportFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ILatLongReportFactory * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ILatLongReportFactory * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ILatLongReportFactory * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ILatLongReportFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ILatLongReportFactory * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ILocationReportFactory, ListenForReports) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ListenForReports )( + __RPC__in ILatLongReportFactory * This, + /* [defaultvalue][in] */ ULONG requestedReportInterval); + + DECLSPEC_XFGVIRT(ILocationReportFactory, StopListeningForReports) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *StopListeningForReports )( + __RPC__in ILatLongReportFactory * This); + + DECLSPEC_XFGVIRT(ILocationReportFactory, get_Status) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in ILatLongReportFactory * This, + /* [retval][out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(ILocationReportFactory, get_ReportInterval) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportInterval )( + __RPC__in ILatLongReportFactory * This, + /* [retval][out] */ __RPC__out ULONG *pMilliseconds); + + DECLSPEC_XFGVIRT(ILocationReportFactory, put_ReportInterval) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReportInterval )( + __RPC__in ILatLongReportFactory * This, + /* [in] */ ULONG millisecondsRequested); + + DECLSPEC_XFGVIRT(ILocationReportFactory, get_DesiredAccuracy) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DesiredAccuracy )( + __RPC__in ILatLongReportFactory * This, + /* [retval][out] */ __RPC__out ULONG *pDesiredAccuracy); + + DECLSPEC_XFGVIRT(ILocationReportFactory, put_DesiredAccuracy) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DesiredAccuracy )( + __RPC__in ILatLongReportFactory * This, + /* [in] */ ULONG desiredAccuracy); + + DECLSPEC_XFGVIRT(ILocationReportFactory, RequestPermissions) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RequestPermissions )( + __RPC__in ILatLongReportFactory * This, + /* [in] */ __RPC__in ULONG *hWnd); + + DECLSPEC_XFGVIRT(ILatLongReportFactory, get_LatLongReport) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LatLongReport )( + __RPC__in ILatLongReportFactory * This, + /* [retval][out] */ __RPC__deref_out_opt IDispLatLongReport **pVal); + + END_INTERFACE + } ILatLongReportFactoryVtbl; + + interface ILatLongReportFactory + { + CONST_VTBL struct ILatLongReportFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ILatLongReportFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ILatLongReportFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ILatLongReportFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ILatLongReportFactory_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ILatLongReportFactory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ILatLongReportFactory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ILatLongReportFactory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ILatLongReportFactory_ListenForReports(This,requestedReportInterval) \ + ( (This)->lpVtbl -> ListenForReports(This,requestedReportInterval) ) + +#define ILatLongReportFactory_StopListeningForReports(This) \ + ( (This)->lpVtbl -> StopListeningForReports(This) ) + +#define ILatLongReportFactory_get_Status(This,pVal) \ + ( (This)->lpVtbl -> get_Status(This,pVal) ) + +#define ILatLongReportFactory_get_ReportInterval(This,pMilliseconds) \ + ( (This)->lpVtbl -> get_ReportInterval(This,pMilliseconds) ) + +#define ILatLongReportFactory_put_ReportInterval(This,millisecondsRequested) \ + ( (This)->lpVtbl -> put_ReportInterval(This,millisecondsRequested) ) + +#define ILatLongReportFactory_get_DesiredAccuracy(This,pDesiredAccuracy) \ + ( (This)->lpVtbl -> get_DesiredAccuracy(This,pDesiredAccuracy) ) + +#define ILatLongReportFactory_put_DesiredAccuracy(This,desiredAccuracy) \ + ( (This)->lpVtbl -> put_DesiredAccuracy(This,desiredAccuracy) ) + +#define ILatLongReportFactory_RequestPermissions(This,hWnd) \ + ( (This)->lpVtbl -> RequestPermissions(This,hWnd) ) + + +#define ILatLongReportFactory_get_LatLongReport(This,pVal) \ + ( (This)->lpVtbl -> get_LatLongReport(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ILatLongReportFactory_INTERFACE_DEFINED__ */ + + +#ifndef __ICivicAddressReportFactory_INTERFACE_DEFINED__ +#define __ICivicAddressReportFactory_INTERFACE_DEFINED__ + +/* interface ICivicAddressReportFactory */ +/* [unique][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_ICivicAddressReportFactory; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BF773B93-C64F-4bee-BEB2-67C0B8DF66E0") + ICivicAddressReportFactory : public ILocationReportFactory + { + public: + virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_CivicAddressReport( + /* [retval][out] */ __RPC__deref_out_opt IDispCivicAddressReport **pVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct ICivicAddressReportFactoryVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in ICivicAddressReportFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in ICivicAddressReportFactory * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in ICivicAddressReportFactory * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in ICivicAddressReportFactory * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in ICivicAddressReportFactory * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in ICivicAddressReportFactory * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + ICivicAddressReportFactory * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + DECLSPEC_XFGVIRT(ILocationReportFactory, ListenForReports) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *ListenForReports )( + __RPC__in ICivicAddressReportFactory * This, + /* [defaultvalue][in] */ ULONG requestedReportInterval); + + DECLSPEC_XFGVIRT(ILocationReportFactory, StopListeningForReports) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *StopListeningForReports )( + __RPC__in ICivicAddressReportFactory * This); + + DECLSPEC_XFGVIRT(ILocationReportFactory, get_Status) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Status )( + __RPC__in ICivicAddressReportFactory * This, + /* [retval][out] */ __RPC__out ULONG *pVal); + + DECLSPEC_XFGVIRT(ILocationReportFactory, get_ReportInterval) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ReportInterval )( + __RPC__in ICivicAddressReportFactory * This, + /* [retval][out] */ __RPC__out ULONG *pMilliseconds); + + DECLSPEC_XFGVIRT(ILocationReportFactory, put_ReportInterval) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ReportInterval )( + __RPC__in ICivicAddressReportFactory * This, + /* [in] */ ULONG millisecondsRequested); + + DECLSPEC_XFGVIRT(ILocationReportFactory, get_DesiredAccuracy) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_DesiredAccuracy )( + __RPC__in ICivicAddressReportFactory * This, + /* [retval][out] */ __RPC__out ULONG *pDesiredAccuracy); + + DECLSPEC_XFGVIRT(ILocationReportFactory, put_DesiredAccuracy) + /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_DesiredAccuracy )( + __RPC__in ICivicAddressReportFactory * This, + /* [in] */ ULONG desiredAccuracy); + + DECLSPEC_XFGVIRT(ILocationReportFactory, RequestPermissions) + /* [id] */ HRESULT ( STDMETHODCALLTYPE *RequestPermissions )( + __RPC__in ICivicAddressReportFactory * This, + /* [in] */ __RPC__in ULONG *hWnd); + + DECLSPEC_XFGVIRT(ICivicAddressReportFactory, get_CivicAddressReport) + /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CivicAddressReport )( + __RPC__in ICivicAddressReportFactory * This, + /* [retval][out] */ __RPC__deref_out_opt IDispCivicAddressReport **pVal); + + END_INTERFACE + } ICivicAddressReportFactoryVtbl; + + interface ICivicAddressReportFactory + { + CONST_VTBL struct ICivicAddressReportFactoryVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define ICivicAddressReportFactory_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define ICivicAddressReportFactory_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define ICivicAddressReportFactory_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define ICivicAddressReportFactory_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define ICivicAddressReportFactory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define ICivicAddressReportFactory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define ICivicAddressReportFactory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + + +#define ICivicAddressReportFactory_ListenForReports(This,requestedReportInterval) \ + ( (This)->lpVtbl -> ListenForReports(This,requestedReportInterval) ) + +#define ICivicAddressReportFactory_StopListeningForReports(This) \ + ( (This)->lpVtbl -> StopListeningForReports(This) ) + +#define ICivicAddressReportFactory_get_Status(This,pVal) \ + ( (This)->lpVtbl -> get_Status(This,pVal) ) + +#define ICivicAddressReportFactory_get_ReportInterval(This,pMilliseconds) \ + ( (This)->lpVtbl -> get_ReportInterval(This,pMilliseconds) ) + +#define ICivicAddressReportFactory_put_ReportInterval(This,millisecondsRequested) \ + ( (This)->lpVtbl -> put_ReportInterval(This,millisecondsRequested) ) + +#define ICivicAddressReportFactory_get_DesiredAccuracy(This,pDesiredAccuracy) \ + ( (This)->lpVtbl -> get_DesiredAccuracy(This,pDesiredAccuracy) ) + +#define ICivicAddressReportFactory_put_DesiredAccuracy(This,desiredAccuracy) \ + ( (This)->lpVtbl -> put_DesiredAccuracy(This,desiredAccuracy) ) + +#define ICivicAddressReportFactory_RequestPermissions(This,hWnd) \ + ( (This)->lpVtbl -> RequestPermissions(This,hWnd) ) + + +#define ICivicAddressReportFactory_get_CivicAddressReport(This,pVal) \ + ( (This)->lpVtbl -> get_CivicAddressReport(This,pVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __ICivicAddressReportFactory_INTERFACE_DEFINED__ */ + + + +#ifndef __LocationApiLib_LIBRARY_DEFINED__ +#define __LocationApiLib_LIBRARY_DEFINED__ + +/* library LocationApiLib */ +/* [version][uuid] */ + + +EXTERN_C const IID LIBID_LocationApiLib; + +EXTERN_C const CLSID CLSID_Location; + +#ifdef __cplusplus + +class DECLSPEC_UUID("E5B8E079-EE6D-4E33-A438-C87F2E959254") +Location; +#endif + +EXTERN_C const CLSID CLSID_DefaultLocation; + +#ifdef __cplusplus + +class DECLSPEC_UUID("8B7FBFE0-5CD7-494a-AF8C-283A65707506") +DefaultLocation; +#endif + +EXTERN_C const CLSID CLSID_LatLongReport; + +#ifdef __cplusplus + +class DECLSPEC_UUID("ED81C073-1F84-4ca8-A161-183C776BC651") +LatLongReport; +#endif + +EXTERN_C const CLSID CLSID_CivicAddressReport; + +#ifdef __cplusplus + +class DECLSPEC_UUID("D39E7BDD-7D05-46b8-8721-80CF035F57D7") +CivicAddressReport; +#endif + +#ifndef ___ILatLongReportFactoryEvents_DISPINTERFACE_DEFINED__ +#define ___ILatLongReportFactoryEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface _ILatLongReportFactoryEvents */ +/* [uuid] */ + + +EXTERN_C const IID DIID__ILatLongReportFactoryEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("16EE6CB7-AB3C-424B-849F-269BE551FCBC") + _ILatLongReportFactoryEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct _ILatLongReportFactoryEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ILatLongReportFactoryEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ILatLongReportFactoryEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ILatLongReportFactoryEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ILatLongReportFactoryEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ILatLongReportFactoryEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ILatLongReportFactoryEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ILatLongReportFactoryEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } _ILatLongReportFactoryEventsVtbl; + + interface _ILatLongReportFactoryEvents + { + CONST_VTBL struct _ILatLongReportFactoryEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define _ILatLongReportFactoryEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define _ILatLongReportFactoryEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define _ILatLongReportFactoryEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define _ILatLongReportFactoryEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define _ILatLongReportFactoryEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define _ILatLongReportFactoryEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define _ILatLongReportFactoryEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* ___ILatLongReportFactoryEvents_DISPINTERFACE_DEFINED__ */ + + +#ifndef ___ICivicAddressReportFactoryEvents_DISPINTERFACE_DEFINED__ +#define ___ICivicAddressReportFactoryEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface _ICivicAddressReportFactoryEvents */ +/* [uuid] */ + + +EXTERN_C const IID DIID__ICivicAddressReportFactoryEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C96039FF-72EC-4617-89BD-84D88BEDC722") + _ICivicAddressReportFactoryEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct _ICivicAddressReportFactoryEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _ICivicAddressReportFactoryEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _ICivicAddressReportFactoryEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _ICivicAddressReportFactoryEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in _ICivicAddressReportFactoryEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in _ICivicAddressReportFactoryEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in _ICivicAddressReportFactoryEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + _ICivicAddressReportFactoryEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } _ICivicAddressReportFactoryEventsVtbl; + + interface _ICivicAddressReportFactoryEvents + { + CONST_VTBL struct _ICivicAddressReportFactoryEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define _ICivicAddressReportFactoryEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define _ICivicAddressReportFactoryEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define _ICivicAddressReportFactoryEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define _ICivicAddressReportFactoryEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define _ICivicAddressReportFactoryEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define _ICivicAddressReportFactoryEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define _ICivicAddressReportFactoryEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* ___ICivicAddressReportFactoryEvents_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_LatLongReportFactory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("9DCC3CC8-8609-4863-BAD4-03601F4C65E8") +LatLongReportFactory; +#endif + +EXTERN_C const CLSID CLSID_CivicAddressReportFactory; + +#ifdef __cplusplus + +class DECLSPEC_UUID("2A11F42C-3E81-4ad4-9CBE-45579D89671A") +CivicAddressReportFactory; +#endif + +EXTERN_C const CLSID CLSID_DispLatLongReport; + +#ifdef __cplusplus + +class DECLSPEC_UUID("7A7C3277-8F84-4636-95B2-EBB5507FF77E") +DispLatLongReport; +#endif + +EXTERN_C const CLSID CLSID_DispCivicAddressReport; + +#ifdef __cplusplus + +class DECLSPEC_UUID("4C596AEC-8544-4082-BA9F-EB0A7D8E65C6") +DispCivicAddressReport; +#endif +#endif /* __LocationApiLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_locationapi_0000_0013 */ +/* [local] */ + +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#pragma deprecated(ICivicAddressReport) // Please do not use ICivicAddressReport, use Geolocation WinRT APIs instead. +#pragma deprecated(IDefaultLocation) // Please do not use IDefaultLocation, use Geolocation WinRT APIs instead. +#pragma deprecated(IDispLatLongReport) // Please do not use IDispLatLongReport, use Geolocation WinRT APIs instead. +#pragma deprecated(IDispCivicAddressReport) // Please do not use IDispCivicAddressReport, use Geolocation WinRT APIs instead. +#pragma deprecated(ILatLongReport) // Please do not use ILatLongReport, use Geolocation WinRT APIs instead. +#pragma deprecated(ILocation) // Please do not use ILocation, use Geolocation WinRT APIs instead. +#pragma deprecated(ILocationEvents) // Please do not use ILocationEvents, use Geolocation WinRT APIs instead. +#pragma deprecated(ILocationPower) // Please do not use ILocationPower, use Geolocation WinRT APIs instead. +#pragma deprecated(ILocationReport) // Please do not use ILocationReport, use Geolocation WinRT APIs instead. +#endif // (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_locationapi_0000_0013_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_locationapi_0000_0013_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER LPSAFEARRAY_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in LPSAFEARRAY * ); +unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out LPSAFEARRAY * ); +void __RPC_USER LPSAFEARRAY_UserFree64( __RPC__in unsigned long *, __RPC__in LPSAFEARRAY * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/lowlevelmonitorconfigurationapi.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lowlevelmonitorconfigurationapi.h new file mode 100644 index 0000000000000000000000000000000000000000..38f5623b7911ca83ed780b6ccec436461610b1eb --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lowlevelmonitorconfigurationapi.h @@ -0,0 +1,69 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +#ifndef LowLevelMonitorConfigurationAPI_h +#define LowLevelMonitorConfigurationAPI_h + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +#pragma pack( push, 1 ) + +typedef struct _MC_TIMING_REPORT +{ + DWORD dwHorizontalFrequencyInHZ; + DWORD dwVerticalFrequencyInHZ; + BYTE bTimingStatusByte; + +} MC_TIMING_REPORT, *LPMC_TIMING_REPORT; + +typedef enum _MC_VCP_CODE_TYPE +{ + MC_MOMENTARY, + MC_SET_PARAMETER + +} MC_VCP_CODE_TYPE, *LPMC_VCP_CODE_TYPE; + +_BOOL WINAPI GetVCPFeatureAndVCPFeatureReply + ( + HANDLE hMonitor, + BYTE bVCPCode, + _Out_opt_ LPMC_VCP_CODE_TYPE pvct, + _Out_ LPDWORD pdwCurrentValue, + _Out_opt_ LPDWORD pdwMaximumValue + ); + +_BOOL WINAPI SetVCPFeature( HANDLE hMonitor, BYTE bVCPCode, DWORD dwNewValue ); + +_BOOL WINAPI SaveCurrentSettings( HANDLE hMonitor ); + +_BOOL WINAPI GetCapabilitiesStringLength( HANDLE hMonitor, _Out_ LPDWORD pdwCapabilitiesStringLengthInCharacters ); + +_BOOL WINAPI CapabilitiesRequestAndCapabilitiesReply + ( + HANDLE hMonitor, + _Out_writes_(dwCapabilitiesStringLengthInCharacters) LPSTR pszASCIICapabilitiesString, + DWORD dwCapabilitiesStringLengthInCharacters + ); + +_BOOL WINAPI GetTimingReport( HANDLE hMonitor, _Out_ LPMC_TIMING_REPORT pmtrMonitorTimingReport ); + +#pragma pack( pop ) + +#ifdef __cplusplus +} +#endif // __cplusplus + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // LowLevelMonitorConfigurationAPI_h diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/lzexpand.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lzexpand.h new file mode 100644 index 0000000000000000000000000000000000000000..88e197e4df0cfa70a11977047dbb7a60f13a4835 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/lzexpand.h @@ -0,0 +1,171 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + lzexpand.h + +Abstract: + + Public interface to LZEXP?.LIB. + +Author: + + +Revision History: + +--*/ + +#ifndef _LZEXPAND_ +#define _LZEXPAND_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +/* +** Error Return Codes +*/ + +#define LZERROR_BADINHANDLE (-1) /* invalid input handle */ +#define LZERROR_BADOUTHANDLE (-2) /* invalid output handle */ +#define LZERROR_READ (-3) /* corrupt compressed file format */ +#define LZERROR_WRITE (-4) /* out of space for output file */ +#define LZERROR_GLOBALLOC (-5) /* insufficient memory for LZFile struct */ +#define LZERROR_GLOBLOCK (-6) /* bad global handle */ +#define LZERROR_BADVALUE (-7) /* input parameter out of acceptable range*/ +#define LZERROR_UNKNOWNALG (-8) /* compression algorithm not recognized */ + + +/* +** Prototypes +*/ + +_Success_(return >= 0) +_Check_return_ +INT +APIENTRY +LZStart( + VOID + ); + +VOID +APIENTRY +LZDone( + VOID + ); + + +_Success_(return >= 0) +_Check_return_ +LONG +APIENTRY +CopyLZFile( + _In_ INT hfSource, + _In_ INT hfDest + ); + +_Success_(return >= 0) +_Check_return_ +LONG +APIENTRY +LZCopy( + _In_ INT hfSource, + _In_ INT hfDest + ); + +_Success_(return >= 0) +_Check_return_ +INT +APIENTRY +LZInit( + _In_ INT hfSource + ); + +_Success_(return >= 0) +_Check_return_ +INT +APIENTRY +GetExpandedNameA( + _In_ LPSTR lpszSource, + _Out_writes_(MAX_PATH) LPSTR lpszBuffer + ); +_Success_(return >= 0) +_Check_return_ +INT +APIENTRY +GetExpandedNameW( + _In_ LPWSTR lpszSource, + _Out_writes_(MAX_PATH) LPWSTR lpszBuffer + ); +#ifdef UNICODE +#define GetExpandedName GetExpandedNameW +#else +#define GetExpandedName GetExpandedNameA +#endif // !UNICODE + +_Success_(return >= 0) +_Check_return_ +INT +APIENTRY +LZOpenFileA( + _In_ LPSTR lpFileName, + _Inout_ LPOFSTRUCT lpReOpenBuf, + _In_ WORD wStyle + ); +_Success_(return >= 0) +_Check_return_ +INT +APIENTRY +LZOpenFileW( + _In_ LPWSTR lpFileName, + _Inout_ LPOFSTRUCT lpReOpenBuf, + _In_ WORD wStyle + ); +#ifdef UNICODE +#define LZOpenFile LZOpenFileW +#else +#define LZOpenFile LZOpenFileA +#endif // !UNICODE + +_Success_(return >= 0) +_Check_return_ +LONG +APIENTRY +LZSeek( + _In_ INT hFile, + _In_ LONG lOffset, + _In_ INT iOrigin + ); + +_Success_(return >= 0) +_Check_return_ +INT +APIENTRY +LZRead( + _In_ INT hFile, + _Out_writes_bytes_to_(cbRead, return) CHAR* lpBuffer, + _In_ INT cbRead + ); + +VOID +APIENTRY +LZClose( + _In_ INT hFile + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + + +#endif // _LZEXPAND_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/madcapcl.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/madcapcl.h new file mode 100644 index 0000000000000000000000000000000000000000..381c04598dacf18e54ea5a2efcb632e1796939e0 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/madcapcl.h @@ -0,0 +1,269 @@ +// Copyright (c) 1990-1999 Microsoft Corporation +#ifndef _MADCAPCL_H_ +#define _MADCAPCL_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include + +#if _MSC_VER > 1000 +#pragma once +#endif + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +#define MCAST_CLIENT_ID_LEN 17 + +enum { + MCAST_API_VERSION_0 = 0, + MCAST_API_VERSION_1 +}; + +#define MCAST_API_CURRENT_VERSION MCAST_API_VERSION_1 + +typedef unsigned short IP_ADDR_FAMILY; + +typedef union _IPNG_ADDRESS { + DWORD IpAddrV4; + BYTE IpAddrV6[16]; +} IPNG_ADDRESS, *PIPNG_ADDRESS; + + +/*++ +Description: + + This union is used to pass both IPv4 and IPv6 style address. + +Members: + + IpAddrV4 - IPv4 style address + + IpAddrV6 - IPv6 style address + +--*/ + +typedef struct _MCAST_CLIENT_UID { + LPBYTE ClientUID; + DWORD ClientUIDLength; +} MCAST_CLIENT_UID, *LPMCAST_CLIENT_UID; + +/*++ +Description: + + This describes the unique clientID for each request. + +Members: + + ClientUID - Buffer containing the clientID + + ClientUIDLength - The size of the above buffer in bytes. + +--*/ + + +typedef struct _MCAST_SCOPE_CTX { + IPNG_ADDRESS ScopeID; + IPNG_ADDRESS Interface; + IPNG_ADDRESS ServerID; +} MCAST_SCOPE_CTX, *PMCAST_SCOPE_CTX; + +/*++ +Description: + + This defines the handle of the scope from which the address + is to be allocated/renewed/released. + +Members: + + ScopeID - Scope ID is essentially first ip of the scope + + Interface - Interface on which this scope was found + + ServerID - IPAddress of the MADCAP server + +--*/ + + +typedef struct _MCAST_SCOPE_ENTRY { + MCAST_SCOPE_CTX ScopeCtx; + IPNG_ADDRESS LastAddr; + DWORD TTL; + UNICODE_STRING ScopeDesc; +} MCAST_SCOPE_ENTRY, *PMCAST_SCOPE_ENTRY; + +/*++ +Description: + + This structure contains all the info pertaining to a given multicast + scope. + +Members: + + ScopeCtx - the handle for this scope + + LastAddr - last addr of the scope + + TTL - TTL value of this scope. + + ScopeDesc - user friendly description of scope + +--*/ + + + +typedef struct _MCAST_LEASE_REQUEST { + LONG LeaseStartTime; + LONG MaxLeaseStartTime; + DWORD LeaseDuration; + DWORD MinLeaseDuration; + IPNG_ADDRESS ServerAddress; + WORD MinAddrCount; + WORD AddrCount; + PBYTE pAddrBuf; +} MCAST_LEASE_REQUEST, *PMCAST_LEASE_REQUEST; + +/*++ +Description: + + This structure is used to describe the request parameters for + requesting/renewing/releasing multicast addresses + +Members: + + LeaseStartTime - desired start time of the lease, pass 0 if desired start time + is current time. The desired time is specified in the number of seconds elapsed + since midnight (00:00:00), January 1, 1970, coordinated universal time. + + MaxLeaseStartTime - the maximum start time that the client is willing to accept. + Where time is the number of seconds elapsed since midnight (00:00:00), + January 1, 1970, coordinated universal time. + + LeaseDuration - desired lease time for the request, pass 0 if default + lease time is requested. + + MinLeaseDuration - the minimum lease time that the client is willing + to accept + + ServerAddress - server's ip address where this lease whas renewed/requested. + pass 0 if unknown (e.g in McastRequestAddress) + + MinAddrCount - minimum number of addresses that the client is willing + to accept + + AddrCount - the desired number of addresses requested/allocated/renewed. + This also specifies the size of the array specified by Addr. + + pAddrBuf - buffer containing specific addresses being requested/renewed/released. + For IPv4 it is a pointer to 4 byte addresses and for IPv6 it + points to 16 byte chunks. Pass NULL if no specific addresses + are requested. + +Remarks: + + In MCAST_API_VERSION_1 version, the MaxLeaseStartTime, MinLeaseDuration and + MinAddrCount are ignored by the API implementation. However, the clients should + set appropriate desired values for these members so as when the OS update brings + new implementation of the APIs then the clients can take advantage of it. + +--*/ + + +typedef struct _MCAST_LEASE_RESPONSE { + LONG LeaseStartTime; + LONG LeaseEndTime; + IPNG_ADDRESS ServerAddress; + WORD AddrCount; + PBYTE pAddrBuf; +} MCAST_LEASE_RESPONSE, *PMCAST_LEASE_RESPONSE; + +/*++ + +Description: + + This structure is used to pass the response of the operation of + requesting/renewing/releasing multicast addresses. + +Members: + + LeaseStartTime - start time of the lease in number of seconds elapsed since + midnight (00:00:00), January 1, 1970, coordinated universal time. + + LeaseEndTime - time when lease ends, where time is the number of seconds elapsed + since midnight (00:00:00), January 1, 1970, coordinated universal time. + + ServerAddress - server's ip address where this lease is renewed/requested. + + AddrCount - number of addresses requested/allocated/renewed. + This also specifies the size of the array specified by Addr. + + Addr - buffer containing addresses being requested/renewed/released. For IPv4 + it is a pointer to 4 byte addresses and for IPv6 it points to 16 byte chunks + +--*/ + +DWORD +APIENTRY +McastApiStartup( + IN OUT PDWORD Version + ); + +VOID +APIENTRY +McastApiCleanup( + VOID + ); + +DWORD +APIENTRY +McastGenUID( + IN OUT LPMCAST_CLIENT_UID pRequestID + ); + +DWORD +APIENTRY +McastEnumerateScopes( + IN IP_ADDR_FAMILY AddrFamily, + IN BOOL ReQuery, + IN OUT PMCAST_SCOPE_ENTRY pScopeList, + IN OUT PDWORD pScopeLen, + OUT PDWORD pScopeCount + ); + +DWORD +APIENTRY +McastRequestAddress( + IN IP_ADDR_FAMILY AddrFamily, + IN LPMCAST_CLIENT_UID pRequestID, + IN PMCAST_SCOPE_CTX pScopeCtx, + IN PMCAST_LEASE_REQUEST pAddrRequest, + IN OUT PMCAST_LEASE_RESPONSE pAddrResponse + ); + +DWORD +APIENTRY +McastRenewAddress( + IN IP_ADDR_FAMILY AddrFamily, + IN LPMCAST_CLIENT_UID pRequestID, + IN PMCAST_LEASE_REQUEST pRenewRequest, + IN OUT PMCAST_LEASE_RESPONSE pRenewResponse + ); + +DWORD +APIENTRY +McastReleaseAddress( + IN IP_ADDR_FAMILY AddrFamily, + IN LPMCAST_CLIENT_UID pRequestID, + IN PMCAST_LEASE_REQUEST pReleaseRequest + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif +#endif // _MADCAPCL_H_ diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/magnification.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/magnification.h new file mode 100644 index 0000000000000000000000000000000000000000..1efaf5a48464e0cafc06185f53b415f06b98b93c --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/magnification.h @@ -0,0 +1,104 @@ +// ------------------------------------------------------------- +// magnification.h +// +// Magnification Control API +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// ------------------------------------------------------------- + + +#ifndef _INC_MAGNIFIER +#define _INC_MAGNIFIER + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef __wincodec_h__ +#include +#endif + +#ifdef __cplusplus // If used by C++ code, +extern "C" { // we need to export the C interface +#endif + +#ifdef _WIN32 + +// Magnifier Class Name +#define WC_MAGNIFIERA "Magnifier" +#define WC_MAGNIFIERW L"Magnifier" + +#ifdef UNICODE +#define WC_MAGNIFIER WC_MAGNIFIERW +#else +#define WC_MAGNIFIER WC_MAGNIFIERA +#endif + +#else +#define WC_MAGNIFIER "Magnifier" +#endif + +// Magnifier Window Styles +#define MS_SHOWMAGNIFIEDCURSOR 0x0001L +#define MS_CLIPAROUNDCURSOR 0x0002L +#define MS_INVERTCOLORS 0x0004L + + +// Filter Modes +#define MW_FILTERMODE_EXCLUDE 0 +#define MW_FILTERMODE_INCLUDE 1 + +typedef struct tagMAGTRANSFORM +{ + float v[3][3]; +} MAGTRANSFORM, *PMAGTRANSFORM; + +typedef struct tagMAGIMAGEHEADER +{ + UINT width; + UINT height; + WICPixelFormatGUID format; + UINT stride; + UINT offset; + SIZE_T cbSize; +} MAGIMAGEHEADER, *PMAGIMAGEHEADER; + +typedef struct tagMAGCOLOREFFECT +{ + float transform[5][5]; +} MAGCOLOREFFECT, *PMAGCOLOREFFECT; + +typedef BOOL (CALLBACK* MagImageScalingCallback)(HWND hwnd, void * srcdata, MAGIMAGEHEADER srcheader, void * destdata, MAGIMAGEHEADER destheader, RECT unclipped, RECT clipped, HRGN dirty ); + +// Public Functions +BOOL WINAPI MagInitialize(); +BOOL WINAPI MagUninitialize(); + +BOOL WINAPI MagSetWindowSource(HWND hwnd, RECT rect); +BOOL WINAPI MagGetWindowSource(HWND hwnd, RECT *pRect); +BOOL WINAPI MagSetWindowTransform(HWND hwnd, PMAGTRANSFORM pTransform); +BOOL WINAPI MagGetWindowTransform(HWND hwnd, PMAGTRANSFORM pTransform); +BOOL WINAPI MagSetWindowFilterList(HWND hwnd, DWORD dwFilterMode, int count, HWND *pHWND ); +int WINAPI MagGetWindowFilterList(HWND hwnd, DWORD *pdwFilterMode, int count, HWND *pHWND ); +BOOL WINAPI MagSetImageScalingCallback(HWND hwnd, MagImageScalingCallback callback ); +MagImageScalingCallback WINAPI MagGetImageScalingCallback(HWND hwnd ); +BOOL WINAPI MagSetColorEffect(HWND hwnd, PMAGCOLOREFFECT pEffect); +BOOL WINAPI MagGetColorEffect(HWND hwnd, PMAGCOLOREFFECT pEffect); +BOOL WINAPI MagSetFullscreenTransform(_In_ float magLevel, _In_ int xOffset, _In_ int yOffset); +BOOL WINAPI MagGetFullscreenTransform(_Out_ float *pMagLevel, _Out_ int *pxOffset, _Out_ int *pyOffset); +BOOL WINAPI MagSetFullscreenColorEffect(_In_ PMAGCOLOREFFECT pEffect); +BOOL WINAPI MagGetFullscreenColorEffect(_Out_ PMAGCOLOREFFECT pEffect); +BOOL WINAPI MagSetInputTransform(_In_ BOOL fEnabled, _In_ const LPRECT pRectSource, _In_ const LPRECT pRectDest); +BOOL WINAPI MagGetInputTransform(_Out_ BOOL *pfEnabled, _Out_ LPRECT pRectSource, _Out_ LPRECT pRectDest); +BOOL WINAPI MagShowSystemCursor(_In_ BOOL fShowCursor); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // !_INC_MAGNIFIER diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/manipulations.h b/msvc/Windows Kits/10/Include/10.0.26100.0/um/manipulations.h new file mode 100644 index 0000000000000000000000000000000000000000..333707a18272e22fc82f51f47eaf253e9c526c40 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/manipulations.h @@ -0,0 +1,1256 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __manipulations_h__ +#define __manipulations_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef ___IManipulationEvents_FWD_DEFINED__ +#define ___IManipulationEvents_FWD_DEFINED__ +typedef interface _IManipulationEvents _IManipulationEvents; + +#endif /* ___IManipulationEvents_FWD_DEFINED__ */ + + +#ifndef __IInertiaProcessor_FWD_DEFINED__ +#define __IInertiaProcessor_FWD_DEFINED__ +typedef interface IInertiaProcessor IInertiaProcessor; + +#endif /* __IInertiaProcessor_FWD_DEFINED__ */ + + +#ifndef __IManipulationProcessor_FWD_DEFINED__ +#define __IManipulationProcessor_FWD_DEFINED__ +typedef interface IManipulationProcessor IManipulationProcessor; + +#endif /* __IManipulationProcessor_FWD_DEFINED__ */ + + +#ifndef __InertiaProcessor_FWD_DEFINED__ +#define __InertiaProcessor_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class InertiaProcessor InertiaProcessor; +#else +typedef struct InertiaProcessor InertiaProcessor; +#endif /* __cplusplus */ + +#endif /* __InertiaProcessor_FWD_DEFINED__ */ + + +#ifndef __ManipulationProcessor_FWD_DEFINED__ +#define __ManipulationProcessor_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ManipulationProcessor ManipulationProcessor; +#else +typedef struct ManipulationProcessor ManipulationProcessor; +#endif /* __cplusplus */ + +#endif /* __ManipulationProcessor_FWD_DEFINED__ */ + + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_manipulations_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [v1_enum] */ +enum MANIPULATION_PROCESSOR_MANIPULATIONS + { + MANIPULATION_NONE = 0, + MANIPULATION_TRANSLATE_X = 0x1, + MANIPULATION_TRANSLATE_Y = 0x2, + MANIPULATION_SCALE = 0x4, + MANIPULATION_ROTATE = 0x8, + MANIPULATION_ALL = 0xf + } MANIPULATION_PROCESSOR_MANIPULATIONS; + +DEFINE_ENUM_FLAG_OPERATORS(MANIPULATION_PROCESSOR_MANIPULATIONS) +// Floating point constants. +DECLSPEC_SELECTANY extern const float POSITIVE_INFINITY = ((float)(1e308 * 10)); +DECLSPEC_SELECTANY extern const float NEGATIVE_INFINITY = ((float)(-1e308 * 10)); +DECLSPEC_SELECTANY extern const float NaN = ((float)((1e308 * 10)*0.)); +typedef unsigned long MANIPULATOR_ID; + + + +extern RPC_IF_HANDLE __MIDL_itf_manipulations_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_manipulations_0000_0000_v0_0_s_ifspec; + + +#ifndef __ManipulationsLib_LIBRARY_DEFINED__ +#define __ManipulationsLib_LIBRARY_DEFINED__ + +/* library ManipulationsLib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_ManipulationsLib; + +#ifndef ___IManipulationEvents_INTERFACE_DEFINED__ +#define ___IManipulationEvents_INTERFACE_DEFINED__ + +/* interface _IManipulationEvents */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID__IManipulationEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4f62c8da-9c53-4b22-93df-927a862bbb03") + _IManipulationEvents : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ManipulationStarted( + /* [in] */ FLOAT x, + /* [in] */ FLOAT y) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ManipulationDelta( + /* [in] */ FLOAT x, + /* [in] */ FLOAT y, + /* [in] */ FLOAT translationDeltaX, + /* [in] */ FLOAT translationDeltaY, + /* [in] */ FLOAT scaleDelta, + /* [in] */ FLOAT expansionDelta, + /* [in] */ FLOAT rotationDelta, + /* [in] */ FLOAT cumulativeTranslationX, + /* [in] */ FLOAT cumulativeTranslationY, + /* [in] */ FLOAT cumulativeScale, + /* [in] */ FLOAT cumulativeExpansion, + /* [in] */ FLOAT cumulativeRotation) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE ManipulationCompleted( + /* [in] */ FLOAT x, + /* [in] */ FLOAT y, + /* [in] */ FLOAT cumulativeTranslationX, + /* [in] */ FLOAT cumulativeTranslationY, + /* [in] */ FLOAT cumulativeScale, + /* [in] */ FLOAT cumulativeExpansion, + /* [in] */ FLOAT cumulativeRotation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct _IManipulationEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in _IManipulationEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in _IManipulationEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in _IManipulationEvents * This); + + DECLSPEC_XFGVIRT(_IManipulationEvents, ManipulationStarted) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ManipulationStarted )( + __RPC__in _IManipulationEvents * This, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y); + + DECLSPEC_XFGVIRT(_IManipulationEvents, ManipulationDelta) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ManipulationDelta )( + __RPC__in _IManipulationEvents * This, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y, + /* [in] */ FLOAT translationDeltaX, + /* [in] */ FLOAT translationDeltaY, + /* [in] */ FLOAT scaleDelta, + /* [in] */ FLOAT expansionDelta, + /* [in] */ FLOAT rotationDelta, + /* [in] */ FLOAT cumulativeTranslationX, + /* [in] */ FLOAT cumulativeTranslationY, + /* [in] */ FLOAT cumulativeScale, + /* [in] */ FLOAT cumulativeExpansion, + /* [in] */ FLOAT cumulativeRotation); + + DECLSPEC_XFGVIRT(_IManipulationEvents, ManipulationCompleted) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *ManipulationCompleted )( + __RPC__in _IManipulationEvents * This, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y, + /* [in] */ FLOAT cumulativeTranslationX, + /* [in] */ FLOAT cumulativeTranslationY, + /* [in] */ FLOAT cumulativeScale, + /* [in] */ FLOAT cumulativeExpansion, + /* [in] */ FLOAT cumulativeRotation); + + END_INTERFACE + } _IManipulationEventsVtbl; + + interface _IManipulationEvents + { + CONST_VTBL struct _IManipulationEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define _IManipulationEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define _IManipulationEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define _IManipulationEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define _IManipulationEvents_ManipulationStarted(This,x,y) \ + ( (This)->lpVtbl -> ManipulationStarted(This,x,y) ) + +#define _IManipulationEvents_ManipulationDelta(This,x,y,translationDeltaX,translationDeltaY,scaleDelta,expansionDelta,rotationDelta,cumulativeTranslationX,cumulativeTranslationY,cumulativeScale,cumulativeExpansion,cumulativeRotation) \ + ( (This)->lpVtbl -> ManipulationDelta(This,x,y,translationDeltaX,translationDeltaY,scaleDelta,expansionDelta,rotationDelta,cumulativeTranslationX,cumulativeTranslationY,cumulativeScale,cumulativeExpansion,cumulativeRotation) ) + +#define _IManipulationEvents_ManipulationCompleted(This,x,y,cumulativeTranslationX,cumulativeTranslationY,cumulativeScale,cumulativeExpansion,cumulativeRotation) \ + ( (This)->lpVtbl -> ManipulationCompleted(This,x,y,cumulativeTranslationX,cumulativeTranslationY,cumulativeScale,cumulativeExpansion,cumulativeRotation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* ___IManipulationEvents_INTERFACE_DEFINED__ */ + + +#ifndef __IInertiaProcessor_INTERFACE_DEFINED__ +#define __IInertiaProcessor_INTERFACE_DEFINED__ + +/* interface IInertiaProcessor */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IInertiaProcessor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("18b00c6d-c5ee-41b1-90a9-9d4a929095ad") + IInertiaProcessor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE get_InitialOriginX( + /* [out] */ __RPC__out FLOAT *x) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_InitialOriginX( + /* [in] */ FLOAT x) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_InitialOriginY( + /* [out] */ __RPC__out FLOAT *y) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_InitialOriginY( + /* [in] */ FLOAT y) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_InitialVelocityX( + /* [out] */ __RPC__out FLOAT *x) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_InitialVelocityX( + /* [in] */ FLOAT x) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_InitialVelocityY( + /* [out] */ __RPC__out FLOAT *y) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_InitialVelocityY( + /* [in] */ FLOAT y) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_InitialAngularVelocity( + /* [out] */ __RPC__out FLOAT *velocity) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_InitialAngularVelocity( + /* [in] */ FLOAT velocity) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_InitialExpansionVelocity( + /* [out] */ __RPC__out FLOAT *velocity) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_InitialExpansionVelocity( + /* [in] */ FLOAT velocity) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_InitialRadius( + /* [out] */ __RPC__out FLOAT *radius) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_InitialRadius( + /* [in] */ FLOAT radius) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_BoundaryLeft( + /* [out] */ __RPC__out FLOAT *left) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_BoundaryLeft( + /* [in] */ FLOAT left) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_BoundaryTop( + /* [out] */ __RPC__out FLOAT *top) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_BoundaryTop( + /* [in] */ FLOAT top) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_BoundaryRight( + /* [out] */ __RPC__out FLOAT *right) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_BoundaryRight( + /* [in] */ FLOAT right) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_BoundaryBottom( + /* [out] */ __RPC__out FLOAT *bottom) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_BoundaryBottom( + /* [in] */ FLOAT bottom) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_ElasticMarginLeft( + /* [out] */ __RPC__out FLOAT *left) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_ElasticMarginLeft( + /* [in] */ FLOAT left) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_ElasticMarginTop( + /* [out] */ __RPC__out FLOAT *top) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_ElasticMarginTop( + /* [in] */ FLOAT top) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_ElasticMarginRight( + /* [out] */ __RPC__out FLOAT *right) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_ElasticMarginRight( + /* [in] */ FLOAT right) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_ElasticMarginBottom( + /* [out] */ __RPC__out FLOAT *bottom) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_ElasticMarginBottom( + /* [in] */ FLOAT bottom) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_DesiredDisplacement( + /* [out] */ __RPC__out FLOAT *displacement) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_DesiredDisplacement( + /* [in] */ FLOAT displacement) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_DesiredRotation( + /* [out] */ __RPC__out FLOAT *rotation) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_DesiredRotation( + /* [in] */ FLOAT rotation) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_DesiredExpansion( + /* [out] */ __RPC__out FLOAT *expansion) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_DesiredExpansion( + /* [in] */ FLOAT expansion) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_DesiredDeceleration( + /* [out] */ __RPC__out FLOAT *deceleration) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_DesiredDeceleration( + /* [in] */ FLOAT deceleration) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_DesiredAngularDeceleration( + /* [out] */ __RPC__out FLOAT *deceleration) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_DesiredAngularDeceleration( + /* [in] */ FLOAT deceleration) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_DesiredExpansionDeceleration( + /* [out] */ __RPC__out FLOAT *deceleration) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_DesiredExpansionDeceleration( + /* [in] */ FLOAT deceleration) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_InitialTimestamp( + /* [out] */ __RPC__out DWORD *timestamp) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_InitialTimestamp( + /* [in] */ DWORD timestamp) = 0; + + virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE Process( + /* [out] */ __RPC__out BOOL *completed) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessTime( + /* [in] */ DWORD timestamp, + /* [out] */ __RPC__out BOOL *completed) = 0; + + virtual HRESULT STDMETHODCALLTYPE Complete( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CompleteTime( + /* [in] */ DWORD timestamp) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IInertiaProcessorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IInertiaProcessor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IInertiaProcessor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IInertiaProcessor * This); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_InitialOriginX) + HRESULT ( STDMETHODCALLTYPE *get_InitialOriginX )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *x); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_InitialOriginX) + HRESULT ( STDMETHODCALLTYPE *put_InitialOriginX )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT x); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_InitialOriginY) + HRESULT ( STDMETHODCALLTYPE *get_InitialOriginY )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *y); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_InitialOriginY) + HRESULT ( STDMETHODCALLTYPE *put_InitialOriginY )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT y); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_InitialVelocityX) + HRESULT ( STDMETHODCALLTYPE *get_InitialVelocityX )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *x); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_InitialVelocityX) + HRESULT ( STDMETHODCALLTYPE *put_InitialVelocityX )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT x); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_InitialVelocityY) + HRESULT ( STDMETHODCALLTYPE *get_InitialVelocityY )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *y); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_InitialVelocityY) + HRESULT ( STDMETHODCALLTYPE *put_InitialVelocityY )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT y); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_InitialAngularVelocity) + HRESULT ( STDMETHODCALLTYPE *get_InitialAngularVelocity )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *velocity); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_InitialAngularVelocity) + HRESULT ( STDMETHODCALLTYPE *put_InitialAngularVelocity )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT velocity); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_InitialExpansionVelocity) + HRESULT ( STDMETHODCALLTYPE *get_InitialExpansionVelocity )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *velocity); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_InitialExpansionVelocity) + HRESULT ( STDMETHODCALLTYPE *put_InitialExpansionVelocity )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT velocity); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_InitialRadius) + HRESULT ( STDMETHODCALLTYPE *get_InitialRadius )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *radius); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_InitialRadius) + HRESULT ( STDMETHODCALLTYPE *put_InitialRadius )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT radius); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_BoundaryLeft) + HRESULT ( STDMETHODCALLTYPE *get_BoundaryLeft )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *left); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_BoundaryLeft) + HRESULT ( STDMETHODCALLTYPE *put_BoundaryLeft )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT left); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_BoundaryTop) + HRESULT ( STDMETHODCALLTYPE *get_BoundaryTop )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *top); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_BoundaryTop) + HRESULT ( STDMETHODCALLTYPE *put_BoundaryTop )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT top); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_BoundaryRight) + HRESULT ( STDMETHODCALLTYPE *get_BoundaryRight )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *right); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_BoundaryRight) + HRESULT ( STDMETHODCALLTYPE *put_BoundaryRight )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT right); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_BoundaryBottom) + HRESULT ( STDMETHODCALLTYPE *get_BoundaryBottom )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *bottom); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_BoundaryBottom) + HRESULT ( STDMETHODCALLTYPE *put_BoundaryBottom )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT bottom); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_ElasticMarginLeft) + HRESULT ( STDMETHODCALLTYPE *get_ElasticMarginLeft )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *left); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_ElasticMarginLeft) + HRESULT ( STDMETHODCALLTYPE *put_ElasticMarginLeft )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT left); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_ElasticMarginTop) + HRESULT ( STDMETHODCALLTYPE *get_ElasticMarginTop )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *top); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_ElasticMarginTop) + HRESULT ( STDMETHODCALLTYPE *put_ElasticMarginTop )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT top); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_ElasticMarginRight) + HRESULT ( STDMETHODCALLTYPE *get_ElasticMarginRight )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *right); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_ElasticMarginRight) + HRESULT ( STDMETHODCALLTYPE *put_ElasticMarginRight )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT right); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_ElasticMarginBottom) + HRESULT ( STDMETHODCALLTYPE *get_ElasticMarginBottom )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *bottom); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_ElasticMarginBottom) + HRESULT ( STDMETHODCALLTYPE *put_ElasticMarginBottom )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT bottom); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_DesiredDisplacement) + HRESULT ( STDMETHODCALLTYPE *get_DesiredDisplacement )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *displacement); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_DesiredDisplacement) + HRESULT ( STDMETHODCALLTYPE *put_DesiredDisplacement )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT displacement); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_DesiredRotation) + HRESULT ( STDMETHODCALLTYPE *get_DesiredRotation )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *rotation); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_DesiredRotation) + HRESULT ( STDMETHODCALLTYPE *put_DesiredRotation )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT rotation); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_DesiredExpansion) + HRESULT ( STDMETHODCALLTYPE *get_DesiredExpansion )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *expansion); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_DesiredExpansion) + HRESULT ( STDMETHODCALLTYPE *put_DesiredExpansion )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT expansion); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_DesiredDeceleration) + HRESULT ( STDMETHODCALLTYPE *get_DesiredDeceleration )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *deceleration); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_DesiredDeceleration) + HRESULT ( STDMETHODCALLTYPE *put_DesiredDeceleration )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT deceleration); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_DesiredAngularDeceleration) + HRESULT ( STDMETHODCALLTYPE *get_DesiredAngularDeceleration )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *deceleration); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_DesiredAngularDeceleration) + HRESULT ( STDMETHODCALLTYPE *put_DesiredAngularDeceleration )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT deceleration); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_DesiredExpansionDeceleration) + HRESULT ( STDMETHODCALLTYPE *get_DesiredExpansionDeceleration )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out FLOAT *deceleration); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_DesiredExpansionDeceleration) + HRESULT ( STDMETHODCALLTYPE *put_DesiredExpansionDeceleration )( + __RPC__in IInertiaProcessor * This, + /* [in] */ FLOAT deceleration); + + DECLSPEC_XFGVIRT(IInertiaProcessor, get_InitialTimestamp) + HRESULT ( STDMETHODCALLTYPE *get_InitialTimestamp )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out DWORD *timestamp); + + DECLSPEC_XFGVIRT(IInertiaProcessor, put_InitialTimestamp) + HRESULT ( STDMETHODCALLTYPE *put_InitialTimestamp )( + __RPC__in IInertiaProcessor * This, + /* [in] */ DWORD timestamp); + + DECLSPEC_XFGVIRT(IInertiaProcessor, Reset) + HRESULT ( STDMETHODCALLTYPE *Reset )( + __RPC__in IInertiaProcessor * This); + + DECLSPEC_XFGVIRT(IInertiaProcessor, Process) + HRESULT ( STDMETHODCALLTYPE *Process )( + __RPC__in IInertiaProcessor * This, + /* [out] */ __RPC__out BOOL *completed); + + DECLSPEC_XFGVIRT(IInertiaProcessor, ProcessTime) + HRESULT ( STDMETHODCALLTYPE *ProcessTime )( + __RPC__in IInertiaProcessor * This, + /* [in] */ DWORD timestamp, + /* [out] */ __RPC__out BOOL *completed); + + DECLSPEC_XFGVIRT(IInertiaProcessor, Complete) + HRESULT ( STDMETHODCALLTYPE *Complete )( + __RPC__in IInertiaProcessor * This); + + DECLSPEC_XFGVIRT(IInertiaProcessor, CompleteTime) + HRESULT ( STDMETHODCALLTYPE *CompleteTime )( + __RPC__in IInertiaProcessor * This, + /* [in] */ DWORD timestamp); + + END_INTERFACE + } IInertiaProcessorVtbl; + + interface IInertiaProcessor + { + CONST_VTBL struct IInertiaProcessorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IInertiaProcessor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IInertiaProcessor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IInertiaProcessor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IInertiaProcessor_get_InitialOriginX(This,x) \ + ( (This)->lpVtbl -> get_InitialOriginX(This,x) ) + +#define IInertiaProcessor_put_InitialOriginX(This,x) \ + ( (This)->lpVtbl -> put_InitialOriginX(This,x) ) + +#define IInertiaProcessor_get_InitialOriginY(This,y) \ + ( (This)->lpVtbl -> get_InitialOriginY(This,y) ) + +#define IInertiaProcessor_put_InitialOriginY(This,y) \ + ( (This)->lpVtbl -> put_InitialOriginY(This,y) ) + +#define IInertiaProcessor_get_InitialVelocityX(This,x) \ + ( (This)->lpVtbl -> get_InitialVelocityX(This,x) ) + +#define IInertiaProcessor_put_InitialVelocityX(This,x) \ + ( (This)->lpVtbl -> put_InitialVelocityX(This,x) ) + +#define IInertiaProcessor_get_InitialVelocityY(This,y) \ + ( (This)->lpVtbl -> get_InitialVelocityY(This,y) ) + +#define IInertiaProcessor_put_InitialVelocityY(This,y) \ + ( (This)->lpVtbl -> put_InitialVelocityY(This,y) ) + +#define IInertiaProcessor_get_InitialAngularVelocity(This,velocity) \ + ( (This)->lpVtbl -> get_InitialAngularVelocity(This,velocity) ) + +#define IInertiaProcessor_put_InitialAngularVelocity(This,velocity) \ + ( (This)->lpVtbl -> put_InitialAngularVelocity(This,velocity) ) + +#define IInertiaProcessor_get_InitialExpansionVelocity(This,velocity) \ + ( (This)->lpVtbl -> get_InitialExpansionVelocity(This,velocity) ) + +#define IInertiaProcessor_put_InitialExpansionVelocity(This,velocity) \ + ( (This)->lpVtbl -> put_InitialExpansionVelocity(This,velocity) ) + +#define IInertiaProcessor_get_InitialRadius(This,radius) \ + ( (This)->lpVtbl -> get_InitialRadius(This,radius) ) + +#define IInertiaProcessor_put_InitialRadius(This,radius) \ + ( (This)->lpVtbl -> put_InitialRadius(This,radius) ) + +#define IInertiaProcessor_get_BoundaryLeft(This,left) \ + ( (This)->lpVtbl -> get_BoundaryLeft(This,left) ) + +#define IInertiaProcessor_put_BoundaryLeft(This,left) \ + ( (This)->lpVtbl -> put_BoundaryLeft(This,left) ) + +#define IInertiaProcessor_get_BoundaryTop(This,top) \ + ( (This)->lpVtbl -> get_BoundaryTop(This,top) ) + +#define IInertiaProcessor_put_BoundaryTop(This,top) \ + ( (This)->lpVtbl -> put_BoundaryTop(This,top) ) + +#define IInertiaProcessor_get_BoundaryRight(This,right) \ + ( (This)->lpVtbl -> get_BoundaryRight(This,right) ) + +#define IInertiaProcessor_put_BoundaryRight(This,right) \ + ( (This)->lpVtbl -> put_BoundaryRight(This,right) ) + +#define IInertiaProcessor_get_BoundaryBottom(This,bottom) \ + ( (This)->lpVtbl -> get_BoundaryBottom(This,bottom) ) + +#define IInertiaProcessor_put_BoundaryBottom(This,bottom) \ + ( (This)->lpVtbl -> put_BoundaryBottom(This,bottom) ) + +#define IInertiaProcessor_get_ElasticMarginLeft(This,left) \ + ( (This)->lpVtbl -> get_ElasticMarginLeft(This,left) ) + +#define IInertiaProcessor_put_ElasticMarginLeft(This,left) \ + ( (This)->lpVtbl -> put_ElasticMarginLeft(This,left) ) + +#define IInertiaProcessor_get_ElasticMarginTop(This,top) \ + ( (This)->lpVtbl -> get_ElasticMarginTop(This,top) ) + +#define IInertiaProcessor_put_ElasticMarginTop(This,top) \ + ( (This)->lpVtbl -> put_ElasticMarginTop(This,top) ) + +#define IInertiaProcessor_get_ElasticMarginRight(This,right) \ + ( (This)->lpVtbl -> get_ElasticMarginRight(This,right) ) + +#define IInertiaProcessor_put_ElasticMarginRight(This,right) \ + ( (This)->lpVtbl -> put_ElasticMarginRight(This,right) ) + +#define IInertiaProcessor_get_ElasticMarginBottom(This,bottom) \ + ( (This)->lpVtbl -> get_ElasticMarginBottom(This,bottom) ) + +#define IInertiaProcessor_put_ElasticMarginBottom(This,bottom) \ + ( (This)->lpVtbl -> put_ElasticMarginBottom(This,bottom) ) + +#define IInertiaProcessor_get_DesiredDisplacement(This,displacement) \ + ( (This)->lpVtbl -> get_DesiredDisplacement(This,displacement) ) + +#define IInertiaProcessor_put_DesiredDisplacement(This,displacement) \ + ( (This)->lpVtbl -> put_DesiredDisplacement(This,displacement) ) + +#define IInertiaProcessor_get_DesiredRotation(This,rotation) \ + ( (This)->lpVtbl -> get_DesiredRotation(This,rotation) ) + +#define IInertiaProcessor_put_DesiredRotation(This,rotation) \ + ( (This)->lpVtbl -> put_DesiredRotation(This,rotation) ) + +#define IInertiaProcessor_get_DesiredExpansion(This,expansion) \ + ( (This)->lpVtbl -> get_DesiredExpansion(This,expansion) ) + +#define IInertiaProcessor_put_DesiredExpansion(This,expansion) \ + ( (This)->lpVtbl -> put_DesiredExpansion(This,expansion) ) + +#define IInertiaProcessor_get_DesiredDeceleration(This,deceleration) \ + ( (This)->lpVtbl -> get_DesiredDeceleration(This,deceleration) ) + +#define IInertiaProcessor_put_DesiredDeceleration(This,deceleration) \ + ( (This)->lpVtbl -> put_DesiredDeceleration(This,deceleration) ) + +#define IInertiaProcessor_get_DesiredAngularDeceleration(This,deceleration) \ + ( (This)->lpVtbl -> get_DesiredAngularDeceleration(This,deceleration) ) + +#define IInertiaProcessor_put_DesiredAngularDeceleration(This,deceleration) \ + ( (This)->lpVtbl -> put_DesiredAngularDeceleration(This,deceleration) ) + +#define IInertiaProcessor_get_DesiredExpansionDeceleration(This,deceleration) \ + ( (This)->lpVtbl -> get_DesiredExpansionDeceleration(This,deceleration) ) + +#define IInertiaProcessor_put_DesiredExpansionDeceleration(This,deceleration) \ + ( (This)->lpVtbl -> put_DesiredExpansionDeceleration(This,deceleration) ) + +#define IInertiaProcessor_get_InitialTimestamp(This,timestamp) \ + ( (This)->lpVtbl -> get_InitialTimestamp(This,timestamp) ) + +#define IInertiaProcessor_put_InitialTimestamp(This,timestamp) \ + ( (This)->lpVtbl -> put_InitialTimestamp(This,timestamp) ) + +#define IInertiaProcessor_Reset(This) \ + ( (This)->lpVtbl -> Reset(This) ) + +#define IInertiaProcessor_Process(This,completed) \ + ( (This)->lpVtbl -> Process(This,completed) ) + +#define IInertiaProcessor_ProcessTime(This,timestamp,completed) \ + ( (This)->lpVtbl -> ProcessTime(This,timestamp,completed) ) + +#define IInertiaProcessor_Complete(This) \ + ( (This)->lpVtbl -> Complete(This) ) + +#define IInertiaProcessor_CompleteTime(This,timestamp) \ + ( (This)->lpVtbl -> CompleteTime(This,timestamp) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IInertiaProcessor_INTERFACE_DEFINED__ */ + + +#ifndef __IManipulationProcessor_INTERFACE_DEFINED__ +#define __IManipulationProcessor_INTERFACE_DEFINED__ + +/* interface IManipulationProcessor */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IManipulationProcessor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A22AC519-8300-48a0-BEF4-F1BE8737DBA4") + IManipulationProcessor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE get_SupportedManipulations( + /* [out] */ __RPC__out MANIPULATION_PROCESSOR_MANIPULATIONS *manipulations) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_SupportedManipulations( + /* [in] */ MANIPULATION_PROCESSOR_MANIPULATIONS manipulations) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_PivotPointX( + /* [out] */ __RPC__out FLOAT *pivotPointX) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_PivotPointX( + /* [in] */ FLOAT pivotPointX) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_PivotPointY( + /* [out] */ __RPC__out FLOAT *pivotPointY) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_PivotPointY( + /* [in] */ FLOAT pivotPointY) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_PivotRadius( + /* [out] */ __RPC__out FLOAT *pivotRadius) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_PivotRadius( + /* [in] */ FLOAT pivotRadius) = 0; + + virtual HRESULT STDMETHODCALLTYPE CompleteManipulation( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessDown( + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessMove( + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessUp( + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessDownWithTime( + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y, + /* [in] */ DWORD timestamp) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessMoveWithTime( + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y, + /* [in] */ DWORD timestamp) = 0; + + virtual HRESULT STDMETHODCALLTYPE ProcessUpWithTime( + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y, + /* [in] */ DWORD timestamp) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVelocityX( + /* [out] */ __RPC__out FLOAT *velocityX) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVelocityY( + /* [out] */ __RPC__out FLOAT *velocityY) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExpansionVelocity( + /* [out] */ __RPC__out FLOAT *expansionVelocity) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAngularVelocity( + /* [out] */ __RPC__out FLOAT *angularVelocity) = 0; + + virtual HRESULT STDMETHODCALLTYPE get_MinimumScaleRotateRadius( + /* [out] */ __RPC__out FLOAT *minRadius) = 0; + + virtual HRESULT STDMETHODCALLTYPE put_MinimumScaleRotateRadius( + /* [in] */ FLOAT minRadius) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IManipulationProcessorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IManipulationProcessor * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IManipulationProcessor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IManipulationProcessor * This); + + DECLSPEC_XFGVIRT(IManipulationProcessor, get_SupportedManipulations) + HRESULT ( STDMETHODCALLTYPE *get_SupportedManipulations )( + __RPC__in IManipulationProcessor * This, + /* [out] */ __RPC__out MANIPULATION_PROCESSOR_MANIPULATIONS *manipulations); + + DECLSPEC_XFGVIRT(IManipulationProcessor, put_SupportedManipulations) + HRESULT ( STDMETHODCALLTYPE *put_SupportedManipulations )( + __RPC__in IManipulationProcessor * This, + /* [in] */ MANIPULATION_PROCESSOR_MANIPULATIONS manipulations); + + DECLSPEC_XFGVIRT(IManipulationProcessor, get_PivotPointX) + HRESULT ( STDMETHODCALLTYPE *get_PivotPointX )( + __RPC__in IManipulationProcessor * This, + /* [out] */ __RPC__out FLOAT *pivotPointX); + + DECLSPEC_XFGVIRT(IManipulationProcessor, put_PivotPointX) + HRESULT ( STDMETHODCALLTYPE *put_PivotPointX )( + __RPC__in IManipulationProcessor * This, + /* [in] */ FLOAT pivotPointX); + + DECLSPEC_XFGVIRT(IManipulationProcessor, get_PivotPointY) + HRESULT ( STDMETHODCALLTYPE *get_PivotPointY )( + __RPC__in IManipulationProcessor * This, + /* [out] */ __RPC__out FLOAT *pivotPointY); + + DECLSPEC_XFGVIRT(IManipulationProcessor, put_PivotPointY) + HRESULT ( STDMETHODCALLTYPE *put_PivotPointY )( + __RPC__in IManipulationProcessor * This, + /* [in] */ FLOAT pivotPointY); + + DECLSPEC_XFGVIRT(IManipulationProcessor, get_PivotRadius) + HRESULT ( STDMETHODCALLTYPE *get_PivotRadius )( + __RPC__in IManipulationProcessor * This, + /* [out] */ __RPC__out FLOAT *pivotRadius); + + DECLSPEC_XFGVIRT(IManipulationProcessor, put_PivotRadius) + HRESULT ( STDMETHODCALLTYPE *put_PivotRadius )( + __RPC__in IManipulationProcessor * This, + /* [in] */ FLOAT pivotRadius); + + DECLSPEC_XFGVIRT(IManipulationProcessor, CompleteManipulation) + HRESULT ( STDMETHODCALLTYPE *CompleteManipulation )( + __RPC__in IManipulationProcessor * This); + + DECLSPEC_XFGVIRT(IManipulationProcessor, ProcessDown) + HRESULT ( STDMETHODCALLTYPE *ProcessDown )( + __RPC__in IManipulationProcessor * This, + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y); + + DECLSPEC_XFGVIRT(IManipulationProcessor, ProcessMove) + HRESULT ( STDMETHODCALLTYPE *ProcessMove )( + __RPC__in IManipulationProcessor * This, + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y); + + DECLSPEC_XFGVIRT(IManipulationProcessor, ProcessUp) + HRESULT ( STDMETHODCALLTYPE *ProcessUp )( + __RPC__in IManipulationProcessor * This, + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y); + + DECLSPEC_XFGVIRT(IManipulationProcessor, ProcessDownWithTime) + HRESULT ( STDMETHODCALLTYPE *ProcessDownWithTime )( + __RPC__in IManipulationProcessor * This, + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y, + /* [in] */ DWORD timestamp); + + DECLSPEC_XFGVIRT(IManipulationProcessor, ProcessMoveWithTime) + HRESULT ( STDMETHODCALLTYPE *ProcessMoveWithTime )( + __RPC__in IManipulationProcessor * This, + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y, + /* [in] */ DWORD timestamp); + + DECLSPEC_XFGVIRT(IManipulationProcessor, ProcessUpWithTime) + HRESULT ( STDMETHODCALLTYPE *ProcessUpWithTime )( + __RPC__in IManipulationProcessor * This, + /* [in] */ MANIPULATOR_ID manipulatorId, + /* [in] */ FLOAT x, + /* [in] */ FLOAT y, + /* [in] */ DWORD timestamp); + + DECLSPEC_XFGVIRT(IManipulationProcessor, GetVelocityX) + HRESULT ( STDMETHODCALLTYPE *GetVelocityX )( + __RPC__in IManipulationProcessor * This, + /* [out] */ __RPC__out FLOAT *velocityX); + + DECLSPEC_XFGVIRT(IManipulationProcessor, GetVelocityY) + HRESULT ( STDMETHODCALLTYPE *GetVelocityY )( + __RPC__in IManipulationProcessor * This, + /* [out] */ __RPC__out FLOAT *velocityY); + + DECLSPEC_XFGVIRT(IManipulationProcessor, GetExpansionVelocity) + HRESULT ( STDMETHODCALLTYPE *GetExpansionVelocity )( + __RPC__in IManipulationProcessor * This, + /* [out] */ __RPC__out FLOAT *expansionVelocity); + + DECLSPEC_XFGVIRT(IManipulationProcessor, GetAngularVelocity) + HRESULT ( STDMETHODCALLTYPE *GetAngularVelocity )( + __RPC__in IManipulationProcessor * This, + /* [out] */ __RPC__out FLOAT *angularVelocity); + + DECLSPEC_XFGVIRT(IManipulationProcessor, get_MinimumScaleRotateRadius) + HRESULT ( STDMETHODCALLTYPE *get_MinimumScaleRotateRadius )( + __RPC__in IManipulationProcessor * This, + /* [out] */ __RPC__out FLOAT *minRadius); + + DECLSPEC_XFGVIRT(IManipulationProcessor, put_MinimumScaleRotateRadius) + HRESULT ( STDMETHODCALLTYPE *put_MinimumScaleRotateRadius )( + __RPC__in IManipulationProcessor * This, + /* [in] */ FLOAT minRadius); + + END_INTERFACE + } IManipulationProcessorVtbl; + + interface IManipulationProcessor + { + CONST_VTBL struct IManipulationProcessorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IManipulationProcessor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IManipulationProcessor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IManipulationProcessor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IManipulationProcessor_get_SupportedManipulations(This,manipulations) \ + ( (This)->lpVtbl -> get_SupportedManipulations(This,manipulations) ) + +#define IManipulationProcessor_put_SupportedManipulations(This,manipulations) \ + ( (This)->lpVtbl -> put_SupportedManipulations(This,manipulations) ) + +#define IManipulationProcessor_get_PivotPointX(This,pivotPointX) \ + ( (This)->lpVtbl -> get_PivotPointX(This,pivotPointX) ) + +#define IManipulationProcessor_put_PivotPointX(This,pivotPointX) \ + ( (This)->lpVtbl -> put_PivotPointX(This,pivotPointX) ) + +#define IManipulationProcessor_get_PivotPointY(This,pivotPointY) \ + ( (This)->lpVtbl -> get_PivotPointY(This,pivotPointY) ) + +#define IManipulationProcessor_put_PivotPointY(This,pivotPointY) \ + ( (This)->lpVtbl -> put_PivotPointY(This,pivotPointY) ) + +#define IManipulationProcessor_get_PivotRadius(This,pivotRadius) \ + ( (This)->lpVtbl -> get_PivotRadius(This,pivotRadius) ) + +#define IManipulationProcessor_put_PivotRadius(This,pivotRadius) \ + ( (This)->lpVtbl -> put_PivotRadius(This,pivotRadius) ) + +#define IManipulationProcessor_CompleteManipulation(This) \ + ( (This)->lpVtbl -> CompleteManipulation(This) ) + +#define IManipulationProcessor_ProcessDown(This,manipulatorId,x,y) \ + ( (This)->lpVtbl -> ProcessDown(This,manipulatorId,x,y) ) + +#define IManipulationProcessor_ProcessMove(This,manipulatorId,x,y) \ + ( (This)->lpVtbl -> ProcessMove(This,manipulatorId,x,y) ) + +#define IManipulationProcessor_ProcessUp(This,manipulatorId,x,y) \ + ( (This)->lpVtbl -> ProcessUp(This,manipulatorId,x,y) ) + +#define IManipulationProcessor_ProcessDownWithTime(This,manipulatorId,x,y,timestamp) \ + ( (This)->lpVtbl -> ProcessDownWithTime(This,manipulatorId,x,y,timestamp) ) + +#define IManipulationProcessor_ProcessMoveWithTime(This,manipulatorId,x,y,timestamp) \ + ( (This)->lpVtbl -> ProcessMoveWithTime(This,manipulatorId,x,y,timestamp) ) + +#define IManipulationProcessor_ProcessUpWithTime(This,manipulatorId,x,y,timestamp) \ + ( (This)->lpVtbl -> ProcessUpWithTime(This,manipulatorId,x,y,timestamp) ) + +#define IManipulationProcessor_GetVelocityX(This,velocityX) \ + ( (This)->lpVtbl -> GetVelocityX(This,velocityX) ) + +#define IManipulationProcessor_GetVelocityY(This,velocityY) \ + ( (This)->lpVtbl -> GetVelocityY(This,velocityY) ) + +#define IManipulationProcessor_GetExpansionVelocity(This,expansionVelocity) \ + ( (This)->lpVtbl -> GetExpansionVelocity(This,expansionVelocity) ) + +#define IManipulationProcessor_GetAngularVelocity(This,angularVelocity) \ + ( (This)->lpVtbl -> GetAngularVelocity(This,angularVelocity) ) + +#define IManipulationProcessor_get_MinimumScaleRotateRadius(This,minRadius) \ + ( (This)->lpVtbl -> get_MinimumScaleRotateRadius(This,minRadius) ) + +#define IManipulationProcessor_put_MinimumScaleRotateRadius(This,minRadius) \ + ( (This)->lpVtbl -> put_MinimumScaleRotateRadius(This,minRadius) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IManipulationProcessor_INTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_InertiaProcessor; + +#ifdef __cplusplus + +class DECLSPEC_UUID("abb27087-4ce0-4e58-a0cb-e24df96814be") +InertiaProcessor; +#endif + +EXTERN_C const CLSID CLSID_ManipulationProcessor; + +#ifdef __cplusplus + +class DECLSPEC_UUID("597D4FB0-47FD-4aff-89B9-C6CFAE8CF08E") +ManipulationProcessor; +#endif +#endif /* __ManipulationsLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_manipulations_0000_0001 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_manipulations_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_manipulations_0000_0001_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/manipulations.idl b/msvc/Windows Kits/10/Include/10.0.26100.0/um/manipulations.idl new file mode 100644 index 0000000000000000000000000000000000000000..f59148b91cc5da5d85cde22dad24f1d42e20d177 --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/manipulations.idl @@ -0,0 +1,285 @@ +// manipulations.idl + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +typedef [v1_enum] enum MANIPULATION_PROCESSOR_MANIPULATIONS +{ + MANIPULATION_NONE = 0x00000000, + MANIPULATION_TRANSLATE_X = 0x00000001, + MANIPULATION_TRANSLATE_Y = 0x00000002, + MANIPULATION_SCALE = 0x00000004, + MANIPULATION_ROTATE = 0x00000008, + MANIPULATION_ALL = 0x0000000F +} MANIPULATION_PROCESSOR_MANIPULATIONS; +cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(MANIPULATION_PROCESSOR_MANIPULATIONS)") + +cpp_quote("// Floating point constants.") +cpp_quote("DECLSPEC_SELECTANY extern const float POSITIVE_INFINITY = ((float)(1e308 * 10));") +cpp_quote("DECLSPEC_SELECTANY extern const float NEGATIVE_INFINITY = ((float)(-1e308 * 10));") +cpp_quote("DECLSPEC_SELECTANY extern const float NaN = ((float)((1e308 * 10)*0.));") + + +// Manipulation ID typically provided by the WM_TOUCH param TOUCHINPUT.id. +typedef unsigned long MANIPULATOR_ID; + +[ + uuid(935610b3-6f81-450f-85d5-42d3d26c5c11), + version(1.0), + helpstring("Manipulations Library 1.0") +] +library ManipulationsLib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + + //////// Manipulation objects (begin) ////////////////// + + + //////////////////////////////////////////////////////////////////////////////////// + // _IManipulationEvents interface + // Public COM event interface for Manipulation and Inertia Processors + //////////////////////////////////////////////////////////////////////////////////// + [ + object, + uuid(4f62c8da-9c53-4b22-93df-927a862bbb03), + helpstring("_IManipulationEvents interface"), + pointer_default(unique) + ] + interface _IManipulationEvents : IUnknown + { + [helpstring("event ManipulationStarted Returns the beginning position of a new manipulation")] + HRESULT ManipulationStarted([in] FLOAT x, [in] FLOAT y); + [helpstring("event ManipulationDelta Returns the change in position from the manipulation underway (rotation in radians)")] + HRESULT ManipulationDelta([in] FLOAT x, [in] FLOAT y, + [in] FLOAT translationDeltaX, + [in] FLOAT translationDeltaY, + [in] FLOAT scaleDelta, + [in] FLOAT expansionDelta, + [in] FLOAT rotationDelta, + [in] FLOAT cumulativeTranslationX, + [in] FLOAT cumulativeTranslationY, + [in] FLOAT cumulativeScale, + [in] FLOAT cumulativeExpansion, + [in] FLOAT cumulativeRotation); + [helpstring("event ManipulationCompleted Returns the final position change from the manipulation (rotation in radians)")] + HRESULT ManipulationCompleted([in] FLOAT x, [in] FLOAT y, + [in] FLOAT cumulativeTranslationX, + [in] FLOAT cumulativeTranslationY, + [in] FLOAT cumulativeScale, + [in] FLOAT cumulativeExpansion, + [in] FLOAT cumulativeRotation); + } + + //////////////////////////////////////////////////////////////////////////////////// + // IInertiaProcessor interface + // Public COM interface for Inertia Processor + //////////////////////////////////////////////////////////////////////////////////// + [ + object, + uuid(18b00c6d-c5ee-41b1-90a9-9d4a929095ad), + helpstring("IInertiaProcessor interface"), + pointer_default(unique) + ] + interface IInertiaProcessor : IUnknown + { + // Note: Coordinates are in caller-specified units. + + // Initial origin, default {0,0}. + HRESULT get_InitialOriginX([out]FLOAT *x); + HRESULT put_InitialOriginX([in]FLOAT x); + HRESULT get_InitialOriginY([out]FLOAT *y); + HRESULT put_InitialOriginY([in]FLOAT y); + + // Initial velocity, in units per msec, default 0, 0. + HRESULT get_InitialVelocityX([out]FLOAT *x); + HRESULT put_InitialVelocityX([in]FLOAT x); + HRESULT get_InitialVelocityY([out]FLOAT *y); + HRESULT put_InitialVelocityY([in]FLOAT y); + + // Initial angular velocity, in clockwise radians per msec, default 0 + HRESULT get_InitialAngularVelocity([out]FLOAT *velocity); + HRESULT put_InitialAngularVelocity([in]FLOAT velocity); + + // Expansion velocity - how fast average radius gets changed, + // in units per msec, default 0. + HRESULT get_InitialExpansionVelocity([out]FLOAT *velocity); + HRESULT put_InitialExpansionVelocity([in]FLOAT velocity); + + // Initial average radius of the object. + // NOTE: This parameter must be specified if InitialExpensionVelocity + // is specified. + HRESULT get_InitialRadius([out]FLOAT *radius); + HRESULT put_InitialRadius([in]FLOAT radius); + + // Bounds, how far the object can travel in any direction, for + // example, distance to the control boundary. + // Default (NEGATIVE_INFINITY, POSITIVE_INFINITY) + HRESULT get_BoundaryLeft([out]FLOAT *left); + HRESULT put_BoundaryLeft([in]FLOAT left); + HRESULT get_BoundaryTop([out]FLOAT *top); + HRESULT put_BoundaryTop([in]FLOAT top); + HRESULT get_BoundaryRight([out]FLOAT *right); + HRESULT put_BoundaryRight([in]FLOAT right); + HRESULT get_BoundaryBottom([out]FLOAT *bottom); + HRESULT put_BoundaryBottom([in]FLOAT bottom); + + // Size of the elastic region for bouncing, + // default {0, 0, 0, 0}. + HRESULT get_ElasticMarginLeft([out]FLOAT *left); + HRESULT put_ElasticMarginLeft([in]FLOAT left); + HRESULT get_ElasticMarginTop([out]FLOAT *top); + HRESULT put_ElasticMarginTop([in]FLOAT top); + HRESULT get_ElasticMarginRight([out]FLOAT *right); + HRESULT put_ElasticMarginRight([in]FLOAT right); + HRESULT get_ElasticMarginBottom([out]FLOAT *bottom); + HRESULT put_ElasticMarginBottom([in]FLOAT bottom); + + // Desired distance the object needs to travel. + // Default is NaN. + // This value is mutually exclusive with DesiredDeceleration. + HRESULT get_DesiredDisplacement([out]FLOAT *displacement); + HRESULT put_DesiredDisplacement([in]FLOAT displacement); + + // Desired rotation when the object stops, in radians. + // Default is NaN. + // This value is mutually exclusive with DesiredAngularDeceleration. + HRESULT get_DesiredRotation([out]FLOAT *rotation); + HRESULT put_DesiredRotation([in]FLOAT rotation); + + // Desired change in the object average radius. + // Default is NaN. + // This value is mutually exclusive with DesiredExpansionDeceleration + HRESULT get_DesiredExpansion([out]FLOAT *expansion); + HRESULT put_DesiredExpansion([in]FLOAT expansion); + + // Desired absolute deceleration, in units per square msec. + // Default is NaN. + // This value is mutually exclusive with DesiredTranslation. + HRESULT get_DesiredDeceleration([out]FLOAT *deceleration); + HRESULT put_DesiredDeceleration([in]FLOAT deceleration); + HRESULT get_DesiredAngularDeceleration([out]FLOAT *deceleration); + HRESULT put_DesiredAngularDeceleration([in]FLOAT deceleration); + HRESULT get_DesiredExpansionDeceleration([out]FLOAT *deceleration); + HRESULT put_DesiredExpansionDeceleration([in]FLOAT deceleration); + + // Initial timestamp. + HRESULT get_InitialTimestamp([out]DWORD *timestamp); + HRESULT put_InitialTimestamp([in]DWORD timestamp); + + // Initializes the processor with initial timestamp. + HRESULT Reset(); + + // Processes the given tick, can raise Delta or Completed event + // depending on whether extrapolation is completed or not. + // If extrapolation finished at the previous tick, the method + // is no-op. + // Returns false if extrapolation is already completed. + HRESULT Process([out]BOOL *completed); + + // Processes the given tick, can raise Delta or Completed event + // depending on whether extrapolation is completed or not. + // If extrapolation finished at the previous tick, the method + // is no-op. + // Timestamp is in QueryPerformanceCounter() units. + // Returns false if extrapolation is already completed. + HRESULT ProcessTime([in]DWORD timestamp, [out]BOOL *completed); + + // Processes the given tick and raises Completed event. + HRESULT Complete(); + + // Processes the given tick and raises Completed event. + HRESULT CompleteTime([in]DWORD timestamp); // in QueryPerformanceCounter() units + } + + + //////////////////////////////////////////////////////////////////////////////////// + // IManipulationProcessor interface + // Public COM Interface for Manipulation Processor (WM_TOUCH-based) + //////////////////////////////////////////////////////////////////////////////////// + [ + object, + uuid(A22AC519-8300-48a0-BEF4-F1BE8737DBA4), + // DEFINE_GUID(<>, 0xa22ac519, 0x8300, 0x48a0, 0xbe, 0xf4, 0xf1, 0xbe, 0x87, 0x37, 0xdb, 0xa4); + // static const GUID <> = { 0xa22ac519, 0x8300, 0x48a0, { 0xbe, 0xf4, 0xf1, 0xbe, 0x87, 0x37, 0xdb, 0xa4 } }; + helpstring("IManipulationProcessor interface"), + pointer_default(unique) + ] + interface IManipulationProcessor : IUnknown + { + // Get/set the desired manipulation types (Translate, Rotate, Scale). + HRESULT get_SupportedManipulations([out]MANIPULATION_PROCESSOR_MANIPULATIONS *manipulations); + HRESULT put_SupportedManipulations([in]MANIPULATION_PROCESSOR_MANIPULATIONS manipulations); + + // Get/set the X and Y pivot points for rotation. + HRESULT get_PivotPointX([out]FLOAT *pivotPointX); + HRESULT put_PivotPointX([in]FLOAT pivotPointX); + HRESULT get_PivotPointY([out]FLOAT *pivotPointY); + HRESULT put_PivotPointY([in]FLOAT pivotPointY); + + // Get/set the radius for rotation. + HRESULT get_PivotRadius([out]FLOAT *pivotRadius); + HRESULT put_PivotRadius([in]FLOAT pivotRadius); + + // Explicitly declare the current manipulation completed, + // which resets the state of the manipulation processor. + HRESULT CompleteManipulation(); + + // Down/Move/Up methods. These are the workhorse methods for providing individual + // contact point data to the ManipulationProcessor during a real-time manipulation, + // and are typically called from within the message handler for the input device(s). + HRESULT ProcessDown([in]MANIPULATOR_ID manipulatorId, [in]FLOAT x, [in]FLOAT y); + HRESULT ProcessMove([in]MANIPULATOR_ID manipulatorId, [in]FLOAT x, [in]FLOAT y); + HRESULT ProcessUp([in]MANIPULATOR_ID manipulatorId, [in]FLOAT x, [in]FLOAT y); + HRESULT ProcessDownWithTime([in]MANIPULATOR_ID manipulatorId, [in]FLOAT x, [in]FLOAT y, [in]DWORD timestamp); + HRESULT ProcessMoveWithTime([in]MANIPULATOR_ID manipulatorId, [in]FLOAT x, [in]FLOAT y, [in]DWORD timestamp); + HRESULT ProcessUpWithTime([in]MANIPULATOR_ID manipulatorId, [in]FLOAT x, [in]FLOAT y, [in]DWORD timestamp); + + // Velocity access methods. These methods are provided to poll the X,Y translation, + // scale expansion, and angular rotation velocities. + HRESULT GetVelocityX([out]FLOAT *velocityX); + HRESULT GetVelocityY([out]FLOAT *velocityY); + HRESULT GetExpansionVelocity([out]FLOAT *expansionVelocity); + HRESULT GetAngularVelocity([out]FLOAT *angularVelocity); + + // Get/set the minimum scale and rotation radius. + HRESULT get_MinimumScaleRotateRadius([out]FLOAT *minRadius); + HRESULT put_MinimumScaleRotateRadius([in]FLOAT minRadius); + } + + + /////////////////////////////////////////////////// + // CoCreateable objects + /////////////////////////////////////////////////// + + // InertiaProcessor object + [ + uuid(abb27087-4ce0-4e58-a0cb-e24df96814be), + helpstring("InertiaProcessor Class") + ] + coclass InertiaProcessor + { + [default] interface IInertiaProcessor; + [default, source] interface _IManipulationEvents; + }; + + // ManipulationProcessor object + [ + uuid(597D4FB0-47FD-4aff-89B9-C6CFAE8CF08E), + helpstring("ManipulationProcessor Class") + ] + coclass ManipulationProcessor + { + [default] interface IManipulationProcessor; + [default, source] interface _IManipulationEvents; + }; + +}; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/msvc/Windows Kits/10/Include/10.0.26100.0/um/manipulations_i.c b/msvc/Windows Kits/10/Include/10.0.26100.0/um/manipulations_i.c new file mode 100644 index 0000000000000000000000000000000000000000..69c3d1fe0eaa7eb6afe382ade079cd51dd1cb98a --- /dev/null +++ b/msvc/Windows Kits/10/Include/10.0.26100.0/um/manipulations_i.c @@ -0,0 +1,83 @@ + + +/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ + +/* link this file in with the server and any clients */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +#ifdef __cplusplus +extern "C"{ +#endif + + +#include +#include + +#ifdef _MIDL_USE_GUIDDEF_ + +#ifndef INITGUID +#define INITGUID +#include +#undef INITGUID +#else +#include +#endif + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) + +#else // !_MIDL_USE_GUIDDEF_ + +#ifndef __IID_DEFINED__ +#define __IID_DEFINED__ + +typedef struct _IID +{ + unsigned long x; + unsigned short s1; + unsigned short s2; + unsigned char c[8]; +} IID; + +#endif // __IID_DEFINED__ + +#ifndef CLSID_DEFINED +#define CLSID_DEFINED +typedef IID CLSID; +#endif // CLSID_DEFINED + +#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} + +#endif // !_MIDL_USE_GUIDDEF_ + +MIDL_DEFINE_GUID(IID, LIBID_ManipulationsLib,0x935610b3,0x6f81,0x450f,0x85,0xd5,0x42,0xd3,0xd2,0x6c,0x5c,0x11); + + +MIDL_DEFINE_GUID(IID, IID__IManipulationEvents,0x4f62c8da,0x9c53,0x4b22,0x93,0xdf,0x92,0x7a,0x86,0x2b,0xbb,0x03); + + +MIDL_DEFINE_GUID(IID, IID_IInertiaProcessor,0x18b00c6d,0xc5ee,0x41b1,0x90,0xa9,0x9d,0x4a,0x92,0x90,0x95,0xad); + + +MIDL_DEFINE_GUID(IID, IID_IManipulationProcessor,0xA22AC519,0x8300,0x48a0,0xBE,0xF4,0xF1,0xBE,0x87,0x37,0xDB,0xA4); + + +MIDL_DEFINE_GUID(CLSID, CLSID_InertiaProcessor,0xabb27087,0x4ce0,0x4e58,0xa0,0xcb,0xe2,0x4d,0xf9,0x68,0x14,0xbe); + + +MIDL_DEFINE_GUID(CLSID, CLSID_ManipulationProcessor,0x597D4FB0,0x47FD,0x4aff,0x89,0xB9,0xC6,0xCF,0xAE,0x8C,0xF0,0x8E); + +#undef MIDL_DEFINE_GUID + +#ifdef __cplusplus +} +#endif + + +